]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
btrace: check for indirect jump return in _Unwind_RaiseException
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
2cb2ba9a
MM
12018-10-10 Markus Metzger <markus.t.metzger@intel.com>
2
3 * btrace.c (ftrace_update_function): Add indirect jump heuristic.
4
eff98030
TT
52018-10-09 Tom Tromey <tom@tromey.com>
6
7 * configure: Rebuild.
8 * sanitize.m4 (AM_GDB_UBSAN): Default to no.
9 * NEWS: Update --enable-ubsan documentation.
10
04fd5eed
GB
112018-10-09 Gary Benson <gbenson@redhat.com>
12
13 * dwarf2read.c (create_dwp_hash_table): Fix buffer overrun
14 found by Coverity.
15
a0c3048e
TT
162018-10-08 Tom Tromey <tom@tromey.com>
17
18 * riscv-fbsd-tdep.c (riscv_fbsd_sigframe_init): Remove unused
19 variable.
20 (riscv_fbsd_init_abi): Likewise.
21
a51bb70c
WP
222018-10-08 Weimin Pan <weimin.pan@oracle.com>
23 * valops.c (value_struct_elt_for_reference): Rename local variable
24 to work around the shadowing a previous local warning.
25
74792ff7
JB
262018-10-08 John Baldwin <jhb@FreeBSD.org>
27
28 * Makefile.in (ALLDEPFILES): Add riscv-fbsd-nat.c.
29 * NEWS: Mention new FreeBSD/riscv native configuration.
30 * configure.host: Add riscv*-*-freebsd*.
31 * configure.nat: Likewise.
32 * riscv-fbsd-nat.c: New file.
33
ed65e20b
JB
342018-10-08 John Baldwin <jhb@FreeBSD.org>
35
36 * Makefile.in (ALL_TARGET_OBS): Add riscv-fbsd-tdep.o.
37 (HFILES_NO_SRCDIR): Add riscv-fbsd-tdep.h.
38 (ALLDEPFILES): Add riscv-fbsd-tdep.c.
39 * NEWS: Mention new FreeBSD/riscv target.
40 * configure.tgt: Add riscv*-*-freebsd*.
41 * riscv-fbsd-tdep.c: New file.
42 * riscv-fbsd-tdep.h: New file.
43
498f7407
JB
442018-10-08 John Baldwin <jhb@FreeBSD.org>
45
46 * regcache.h (struct regcache_map_entry): Note that this type can
47 be used with traditional frame caches.
48 * trad-frame.c (trad_frame_set_reg_regmap): New.
49 * trad-frame.h (trad_frame_set_reg_regmap): New.
50
9f6b697b
WP
512018-10-08 Weimin Pan <weimin.pan@oracle.com>
52
53 PR c++/16841
54 * valops.c (get_virtual_base_offset): New function.
55 (value_struct_elt_for_reference): Use it to get virtual base offset
56 and add it in calculating class member address.
57
c258c396
JD
582018-10-08 John Darrington <john@darrington.wattle.id.au>
59
60 * dwarf2read.c (dwarf2_cu) <producer_is_codewarrior>: New field.
61 (check_producer): Check if the producer is codewarrior.
62 (producer_is_codewarrior): New function.
63 (lnp_state_machine::record_line): Ignore is_stmt flag for records
64 produced by codewarrior.
65 (dwarf2_cu::dwarf2_cu): Initialize producer_is_codewarrior.
66
add5ded5
TT
672018-10-06 Tom Tromey <tom@tromey.com>
68
69 PR python/19399:
70 * python/py-inferior.c: Add "architecture" entry.
71 (infpy_architecture): New function.
72
51e78fc5
TT
732018-10-06 Tom Tromey <tom@tromey.com>
74
75 PR python/21765:
76 * python/py-symbol.c (gdbpy_initialize_symbols): Redefine
77 SYMBOL_VARIABLES_DOMAIN, SYMBOL_FUNCTIONS_DOMAIN,
78 SYMBOL_TYPES_DOMAIN. Define SYMBOL_MODULE_DOMAIN,
79 SYMBOL_COMMON_BLOCK_DOMAIN, SYMBOL_LOC_COMMON_BLOCK.
80
a8a5dbca
TT
812018-10-06 Tom Tromey <tom@tromey.com>
82
83 PR build/17077:
84 * Makefile.in (OPCODES_CFLAGS): Remove "-I$(OPCODES_SRC)/..".
85 * arc-tdep.c, frv-tdep.c, lm32-tdep.c, mep-tdep.c,
86 microblaze-tdep.c, or1k-tdep.h: Use ../opcodes, not opcodes, in
87 #include.
88
2a8be203
TT
892018-10-06 Tom Tromey <tom@tromey.com>
90
91 * python/py-breakpoint.c (bppy_get_location): Handle a
92 bp_breakpoint without a location.
93
2fb009bb
TT
942018-10-06 Tom Tromey <tom@tromey.com>
95
96 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq)
97 (_RegEx): Reformat help text.
98 * python/lib/gdb/function/caller_is.py (CallerIs, CallerMatches)
99 (AnyCallerIs, AnyCallerMatches): Reformat help text.
100 * python/lib/gdb/function/as_string.py (_AsString): Reformat help
101 text.
102 * python/lib/gdb/command/xmethods.py (InfoXMethod)
103 (EnableXMethod, DisableXMethod): Remove help indentation.
104 Capitalize meta-syntactic variables.
105 * python/lib/gdb/command/unwinders.py (InfoUnwinder)
106 (EnableUnwinder, DisableUnwinder): Remove help indentation.
107 Capitalize meta-syntactic variables.
108 * python/lib/gdb/command/explore.py (ExploreCommand)
109 (ExploreValueCommand, ExploreTypeCommand): Reformat help text.
110 * python/lib/gdb/command/type_printers.py (InfoTypePrinter)
111 (EnableTypePrinter, DisableTypePrinter): Remove help indentation.
112 * python/lib/gdb/command/pretty_printers.py (InfoPrettyPrinter):
113 Remove help indentation.
114 (EnablePrettyPrinter, DisablePrettyPrinter): Likewise.
115 * python/lib/gdb/command/frame_filters.py (EnableFrameFilter)
116 (DisableFrameFilter, SetFrameFilterPriority)
117 (ShowFrameFilterPriority, InfoFrameFilter): Reword help text.
118
7a956928
TT
1192018-10-06 Tom Tromey <tom@tromey.com>
120
121 PR tui/28819:
122 * tui/tui-io.c (gdb_wgetch): New function.
123 (tui_mld_getc, tui_getc): Use it.
124
f8740dc5
TT
1252018-10-05 Tom Tromey <tom@tromey.com>
126
127 * sol-thread.c (sol_thread_target::wait): Rename inner
128 "save_ptid".
129
96643e35
TT
1302018-10-04 Tom Tromey <tom@tromey.com>
131
132 * configure: Rebuild.
133 * warning.m4 (AM_GDB_WARNINGS): Add -Wshadow=local.
134
d951f98b
TT
1352018-10-04 Tom Tromey <tom@tromey.com>
136
137 * guile/scm-frame.c (gdbscm_frame_read_var): Remove inner
138 declaration of "block".
139
b8c88847
TT
1402018-10-04 Tom Tromey <tom@tromey.com>
141
142 * common/filestuff.c (fdwalk): Remove inner declaration of
143 "result".
144
ef789dc4
TT
1452018-10-04 Tom Tromey <tom@tromey.com>
146
147 * msp430-tdep.c (msp430_push_dummy_call): Rename inner
148 "structs_addr" and hoist declaration.
149
3fba72f7
TT
1502018-10-04 Tom Tromey <tom@tromey.com>
151
152 * linux-tdep.c (linux_make_mappings_corefile_notes): Introduce new
153 variable "size".
154
795afcbb
TT
1552018-10-04 Tom Tromey <tom@tromey.com>
156
157 * mdebugread.c (parse_partial_symbols): Use std::string.
158
b926417a
TT
1592018-10-04 Tom Tromey <tom@tromey.com>
160
161 * ctf.c (SET_ARRAY_FIELD): Rename "u32".
162 * p-valprint.c (pascal_val_print): Split inner "i" variable.
163 * xtensa-tdep.c (xtensa_push_dummy_call): Declare "i" in loop
164 header.
165 * xstormy16-tdep.c (xstormy16_push_dummy_call): Declare "val" in
166 more inner scope.
167 * xcoffread.c (read_xcoff_symtab): Rename inner "symbol".
168 * varobj.c (varobj_update): Rename inner "newobj",
169 "type_changed".
170 * valprint.c (generic_emit_char): Rename inner "buf".
171 * valops.c (find_overload_match): Rename inner "temp".
172 (value_struct_elt_for_reference): Declare "v" in more inner
173 scope.
174 * v850-tdep.c (v850_push_dummy_call): Rename "len".
175 * unittests/array-view-selftests.c (run_tests): Rename inner
176 "vec".
177 * tui/tui-stack.c (tui_show_frame_info): Declare "i" in loop
178 header.
179 * tracepoint.c (merge_uploaded_trace_state_variables): Declare
180 "tsv" in more inner scope.
181 (print_one_static_tracepoint_marker): Rename inner
182 "tuple_emitter".
183 * tic6x-tdep.c (tic6x_analyze_prologue): Declare "inst" lower.
184 (tic6x_push_dummy_call): Don't redeclare "addr".
185 * target-float.c: Declare "dto" lower.
186 * symtab.c (lookup_local_symbol): Rename inner "sym".
187 (find_pc_sect_line): Rename inner "pc".
188 * stack.c (print_frame): Don't redeclare "gdbarch".
189 (return_command): Rename inner "gdbarch".
190 * s390-tdep.c (s390_prologue_frame_unwind_cache): Renam inner
191 "sp".
192 * rust-lang.c (rust_internal_print_type): Declare "i" in loop
193 header.
194 * rs6000-tdep.c (ppc_process_record): Rename inner "addr".
195 * riscv-tdep.c (riscv_push_dummy_call): Declare "info" in inner
196 scope.
197 * remote.c (remote_target::update_thread_list): Don't redeclare
198 "tp".
199 (remote_target::process_initial_stop_replies): Rename inner
200 "thread".
201 (remote_target::remote_parse_stop_reply): Don't redeclare "p".
202 (remote_target::wait_as): Don't redeclare "stop_reply".
203 (remote_target::get_thread_local_address): Rename inner
204 "result".
205 (remote_target::get_tib_address): Likewise.
206
207 * regcache.c (cooked_read_test): Rename "regnum".
208 * record-btrace.c (cmd_record_btrace_start): Rename inner
209 "exception".
210 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Declare "i" in
211 loop header.
212 * ppc-linux-tdep.c (ppc_linux_syscall_record): Declare "i" in loop
213 header.
214 (ppu2spu_sniffer): Rename inner "buf".
215 * parse.c (operator_check_standard): Rename inner "type",
216 "objfile".
217 * p-valprint.c (pascal_val_print): Introduce new scope for
218 "low_bound", "high_bound".
219 * p-exp.y (yylex): Declare "i" in loop header.
220 * objfiles.c (objfile_relocate1): Declare "i" in loop header.
221 Lower declaration of "s".
222 * nios2-tdep.c (nios2_analyze_prologue): Declare "i" in loop
223 header.
224 (nios2_push_dummy_call): Rename "len".
225 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Rename static
226 "buf".
227 (linux_xfer_osdata_fds, linux_xfer_osdata_shm)
228 (linux_xfer_osdata_sem, linux_xfer_osdata_msg)
229 (linux_xfer_osdata_modules): Likewise.
230 * mips-tdep.c (mips_eabi_push_dummy_call): Rename outer "len".
231 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
232 (mips_o64_push_dummy_call): Likewise.
233 * microblaze-tdep.c (microblaze_analyze_prologue): Rename inner
234 "op".
235 * mi/mi-main.c (list_available_thread_groups): Rename inner
236 "tuple_emitter".
237 (mi_cmd_data_read_memory): Rename inner "opts".
238 * mi/mi-cmd-var.c (varobj_update_one): Rename inner
239 "tuple_emitter".
240 * mep-tdep.c (mep_analyze_prologue): Declare "rn" in loop header.
241 * mdebugread.c (parse_symbol): Rename inner "b". Declare "f" in
242 more inner scope.
243 (parse_partial_symbols): Rename inner "pst", "p", "name"
244 * main.c (captured_main_1): Rename inner "i"s.
245 * machoread.c (macho_symfile_read_all_oso): Don't redeclare
246 "oso2".
247 * linux-tdep.c (linux_info_proc): Rename inner "filename".
248 * linespec.c (linespec_lexer_lex_string): Rename inner "p".
249 * infrun.c (handle_no_resumed): Don't redeclare "thread".
250 (handle_signal_stop): Rename inner "gdbarch".
251 (handle_command): Declare "signum" in loop header.
252 * ia64-tdep.c (ia64_pseudo_register_read): Don't redeclare
253 "status".
254 (examine_prologue): Rename inner "sol" and "sof".
255 (ia64_extract_return_value): Rename inner "val". Declare another
256 "val" in a more inner scope.
257 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Declare "buf" in
258 inner scope.
259 * guile/scm-symbol.c (gdbscm_lookup_symbol): Rename inner
260 "except".
261 * findvar.c (default_read_var_value): Don't redeclare "addr".
262 * f-exp.y (yylex): Declare "i" in loop header.
263 * eval.c (evaluate_subexp_standard): Don't redeclare "type".
264 Rename inner "type", "expect_type".
265 (evaluate_subexp_for_sizeof): Rename inner "pc".
266 * elfread.c (elf_symfile_read): Rename inner "abfd".
267 * dwarf2read.c (read_debug_names_from_section): Don't redeclare
268 "bytes_read".
269 (process_psymtab_comp_unit_reader): Don't redeclare "gdbarch".
270 (add_partial_subprogram): Rename inner "lowpc" and "highpc".
271 (dwarf_decode_line_header): Rename inner "lh".
272 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Don't redeclare
273 "offset". Declare "i" in loop header.
274 (disassemble_dwarf_expression): Rename inner "addr_size".
275 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Rename
276 inner "result".
277 (dwarf_expr_context::execute_stack_op): Rename inner "offset".
278 * dwarf2-frame.c (decode_frame_entry_1): Rename inner "length"s.
279 * disasm.c (do_mixed_source_and_assembly_deprecated): Rename inner
280 "inner_list_emitter".
281 (do_mixed_source_and_assembly): Rename inner "tuple_emitter".
282 * disasm-selftests.c (print_one_insn_test): Wrap "bplen"
283 declaration in a block.
284 * csky-tdep.c (csky_analyze_prologue): Declare "offset" lower.
285 * cp-valprint.c (cp_print_value_fields): Don't redeclare
286 "obstack_final_size".
287 * cp-support.c (inspect_type): Declare "i" in loop header.
288 * compile/compile.c (compile_instance::insert_symbol_error):
289 Rename inner "e".
290 * common/agent.c (agent_run_command): Remove inner "ret"
291 declaration.
292 * coffread.c (coff_symfile_read): Rename inner "name".
293 (coff_symfile_read): Rename inner "abfd".
294 * cli/cli-utils.c (get_number_trailer): Rename inner "val".
295 * cli/cli-cmds.c (print_disassembly): Rename inner "low" and
296 "high".
297 * c-exp.y (lex_one_token): Move "len" declaration lower.
298 * breakpoint.c (create_longjmp_master_breakpoint): Don't redeclare
299 "gdbarch".
300 (create_exception_master_breakpoint): Likewise. Don't redeclare
301 "b".
302 (watch_command_1): Declare "mark" later.
303 (clear_command): Don't shadow "a" or "b".
304 (delete_command): Rename inner "b".
305 (delete_trace_command): Likewise.
306 * arm-tdep.c (thumb_process_displaced_32bit_insn): Rename inner
307 "op".
308 (arm_gdbarch_init): Remove inner "e_flags".
309 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Declare
310 "offset" in inner blocks.
311
1f88d0c8
SM
3122018-10-04 Simon Marchi <simon.marchi@ericsson.com>
313
314 * dwarf-index-write.c (file_write): Don't write if the vector is
315 empty.
316
5c4481cc
TV
3172018-10-05 Tom de Vries <tdevries@suse.de>
318
319 * python/py-progspace.c (pspy_solib_name): Fix type mismatch in
320 PyArg_ParseTuple call.
321
96b1ad86
TV
3222018-10-05 Tom de Vries <tdevries@suse.de>
323
324 * python/py-record-btrace.c (recpy_bt_goto): Fix type mismatch in
325 PyArg_ParseTuple call.
326
d2f7dcb2
JB
3272018-10-04 Joel Brobecker <brobecker@adacore.com>
328
329 * psymtab.c (recursively_search_psymtabs): Reformat parameters
330 to avoid exceeding 80 characters per line limit.
331
5ca8c39f
TT
3322018-10-04 Tom Tromey <tom@tromey.com>
333
334 * symfile.c (syms_from_objfile_1, finish_new_objfile)
335 (reread_symbols): Update.
336 * complaints.h (clear_complaints): Remove argument.
337 * complaints.c (enum complaint_series): Remove.
338 (series): Remove global.
339 (complaint_internal): Update.
340 (clear_complaints): Remove argument.
341
e79497a1
TT
3422018-10-04 Tom Tromey <tom@tromey.com>
343
344 * symfile.c (symbol_file_add_with_addrs): Do not print "no
345 debugging symbols" message if there is a separate debug objfile.
346
3453e7e4
TT
3472018-10-04 Tom Tromey <tom@tromey.com>
348
349 PR cli/19551:
350 * symfile.c (symbol_file_add_with_addrs): Update output.
351 * psymtab.c (require_partial_symbols): Update output.
352
6afcf761
TT
3532018-10-04 Tom Tromey <tom@tromey.com>
354
355 PR cli/22234:
356 * complaints.c: Emit \n.
357
22068491
TT
3582018-10-04 Tom Tromey <tom@tromey.com>
359
360 * symfile.c (symbol_file_add_with_addrs, symbol_file_clear)
361 (separate_debug_file_exists, find_separate_debug_file)
362 (add_symbol_file_command, reread_symbols, allocate_symtab)
363 (allocate_compunit_symtab): Use filtered printing, not
364 unfiltered.
365 * psymtab.c (require_partial_symbols, dump_psymtab)
366 (allocate_psymtab): Use filtered printing, not unfiltered.
367
9fdd7193
TT
3682018-10-04 Tom Tromey <tom@tromey.com>
369
370 * complaints.c (complaint_internal): Correctly check complaint
371 count.
372
3f2cf4dc
TT
3732018-10-04 Tom Tromey <tom@tromey.com>
374
375 * complaints.h (struct complaints): Remove declaration.
376 * complaints.c (clear_complaints): Remove an unused variable.
377
4f9bdf7f
RO
3782018-10-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
379
380 * MAINTAINERS (Write After Approval): Add self.
381
875e5398
TT
3822018-10-03 Tom Tromey <tom@tromey.com>
383
384 * guile/scm-value.c (gdbscm_value_to_string): Initialize
385 "buffer_contents".
386 * coffread.c (coff_symtab_read): Initialize "newobj".
387
8634679f
SM
3882018-10-03 Simon Marchi <simon.marchi@polymtl.ca>
389
390 * dwarf2read.c (read_func_scope): Remove struct keyword in
391 range-based for.
392
f35d5ade
TT
3932018-10-03 Tom Tromey <tom@tromey.com>
394
395 * README: Mention --enable-ubsan.
396 * NEWS: Mention --enable-ubsan.
397 * acinclude.m4: Include sanitize.m4.
398 * configure: Rebuild.
399 * configure.ac: Call AM_GDB_UBSAN.
400 * sanitize.m4: New file.
401
1dffa580
TT
4022018-10-03 Tom Tromey <tom@tromey.com>
403
404 * expression.h (enum exp_opcode): Use uint8_t as base type.
405 * expprint.c (op_name): Handle invalid opcodes.
406
5e70ee09
TT
4072018-10-03 Tom Tromey <tom@tromey.com>
408
409 * parse.c (prefixify_expression): Add assert.
410 (parse_exp_in_context_1): Throw exception if the expression is
411 empty.
412
4dd1b460
TT
4132018-10-03 Tom Tromey <tom@tromey.com>
414
415 * dwarf2read.c (read_signed_leb128): Work in ULONGEST.
416
20562150
TT
4172018-10-03 Tom Tromey <tom@tromey.com>
418
419 * c-exp.y (parse_number): Work in unsigned. Remove casts.
420
d359392f
TT
4212018-10-03 Tom Tromey <tom@tromey.com>
422
423 * dwarf2read.c (read_subrange_type): Make "negative_mask"
424 unsigned.
425
0101665f
TT
4262018-10-03 Tom Tromey <tom@tromey.com>
427
428 * findvar.c (extract_integer): Do work in an unsigned type.
429
ad69edbb
TT
4302018-10-03 Tom Tromey <tom@tromey.com>
431
432 * common/enum-flags.h (enum_flags::operator~): Add static assert.
433 * symfile-add-flags.h (enum symfile_add_flag): Use unsigned as
434 base type.
435 * objfile-flags.h (enum objfile_flag): Use unsigned as base type.
436 * gdbtypes.h (enum type_instance_flag_value): Use unsigned as base
437 type.
438 * c-lang.h (enum c_string_type_values): Use unsigned as base
439 type.
440 * btrace.h (enum btrace_thread_flag): Use unsigned as base type.
441
780942fc
TT
4422018-10-03 Tom Tromey <tom@tromey.com>
443
444 * dwarf2-frame.h (dwarf2_frame_state_reg_info)
445 <~dwarf2_frame_state_reg_info>: Update.
446 <dwarf2_frame_state_reg_info>: Update.
447 <alloc_regs>: Add assertion. Update.
448 <reg>: Now a std::vector.
449 <num_regs>: Remove.
450 <swap>: Update.
451 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
452 (execute_cfa_program_test, dwarf2_frame_cache): Update.
453
10657c04
TT
4542018-10-03 Tom Tromey <tom@tromey.com>
455
456 * namespace.c (add_using_directive): Don't pass NULL to memcpy.
457
34c0fc00
PW
4582018-10-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
459
460 * tid-parse.c (tid_is_in_list): Fix wrong 'See' comment.
461
2398abf8
TT
4622018-10-02 Tom Tromey <tom@tromey.com>
463
464 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Use pulongest.
465
c1168a2f
JD
4662018-10-02 John Darrington <john@darrington.wattle.id.au>
467
468 * NEWS: Mention changed commands.
469 * ser-uds.c: New file.
470 * configure.ac (SER_HARDWIRE): Add ser-uds.o.
471 * configure: Regenerate.
472 * Makefile.in: Add new file.
473 * serial.c (serial_open): Check if filename is a socket
474 and lookup the appropriate interface accordingly.
475
05c71722
AH
4762018-10-01 Alan Hayward <alan.hayward@arm.com>
477
478 * aarch64-linux-tdep.c (AARCH64_SIGCONTEXT_RESERVED_OFFSET): Add
479 define.
480 (AARCH64_EXTRA_MAGIC): Likewise.
481 (AARCH64_FPSIMD_MAGIC): Likewise.
482 (AARCH64_SVE_MAGIC): Likewise.
483 (AARCH64_EXTRA_DATAP_OFFSET): Likewise.
484 (AARCH64_FPSIMD_FPSR_OFFSET): Likewise.
485 (AARCH64_FPSIMD_FPCR_OFFSET): Likewise.
486 (AARCH64_FPSIMD_V0_OFFSET): Likewise.
487 (AARCH64_FPSIMD_VREG_SIZE): Likewise.
488 (AARCH64_SVE_CONTEXT_VL_OFFSET): Likewise.
489 (AARCH64_SVE_CONTEXT_REGS_OFFSET): Likewise.
490 (AARCH64_SVE_CONTEXT_P_REGS_OFFSET): Likewise.
491 (AARCH64_SVE_CONTEXT_FFR_OFFSET): Likewise.
492 (AARCH64_SVE_CONTEXT_SIZE): Likewise.
493 (read_aarch64_ctx): Add function.
494 (aarch64_linux_sigframe_init): Detect FP registers.
495
c74e7cb9
AH
4962018-10-01 Alan Hayward <alan.hayward@arm.com>
497
498 * aarch64-tdep.c (AARCH64_Q0_REGNUM): Move to here.
499 (AARCH64_D0_REGNUM): Likewise.
500 (AARCH64_S0_REGNUM): Likewise.
501 (AARCH64_H0_REGNUM): Likewise.
502 (AARCH64_B0_REGNUM): Likewise.
503 (AARCH64_SVE_V0_REGNUM): Likewise.
504 * arch/aarch64.h (AARCH64_Q0_REGNUM): Move from here.
505 (AARCH64_D0_REGNUM): Likewise.
506 (AARCH64_S0_REGNUM): Likewise.
507 (AARCH64_H0_REGNUM): Likewise.
508 (AARCH64_B0_REGNUM): Likewise.
509 (AARCH64_SVE_V0_REGNUM): Likewise.
510
12b164e9
GB
5112018-10-01 Gary Benson <gbenson@redhat.com>
512
513 * gdb_proc_service.h (gdb_prfpregset_t): Remove typedef.
514 * proc-service.c (ps_lgetfpregs, ps_lsetfpregs): Use
515 prfpregset_t instead of gdb_prfpregset_t.
516 * configure.ac (PRFPREGSET_T_BROKEN): Remove check.
517 * configure, config.in: Rebuild.
518
7c619dbd
GB
5192018-10-01 Gary Benson <gbenson@redhat.com>
520
521 * common/gdb_proc_service.h: New file, factored out from...
522 * gdb_proc_service.h: Moved common code to the above file.
523 * Makefile.in (HFILES_NO_SRCDIR): Add the above new file.
524
358ffcf2
GB
5252018-10-01 Gary Benson <gbenson@redhat.com>
526
527 * gdb_proc_service.h: Use elf_gregset_t if prgregset_t is
528 undefined. Use elf_fpregset_t if prfpregset_t is undefined.
529
43b7e92b
GB
5302018-10-01 Gary Benson <gbenson@redhat.com>
531
532 * configure.ac: Check if sys/procfs.h defines elf_fpregset_t.
533 (AC_CHECK_HEADERS): Check for linux/elf.h.
534 * configure, config.in: Rebuild.
535 * gdb_proc_service.h: Include linux/elf.h if sys/procfs.h
536 doesn't define elf_fpregset_t.
537
3795e814
GB
5382018-10-01 Gary Benson <gbenson@redhat.com>
539
540 * gdb_proc_service.h: Whitespace change.
541
4176f14d
TT
5422018-10-01 Tom Tromey <tom@tromey.com>
543
544 * unittests/scoped_mmap-selftests.c: Don't check HAVE_UNISTD_H.
545 * unittests/scoped_fd-selftests.c: Don't check HAVE_UNISTD_H.
546 * common/scoped_fd.h: Don't check HAVE_UNISTD_H.
547
a95746f9
TT
5482018-10-01 Tom Tromey <tom@tromey.com>
549
550 * README: Minor change.
551
dd203782
PA
5522018-09-30 Pedro Alves <palves@redhat.com>
553
554 * darwin-nat-info.c (darwin_debug_regions_recurse)
555 (info_mach_exceptions_command): Remove unused local variables.
556 * darwin-nat.c (darwin_decode_notify_message)
557 (darwin_nat_target::resume, darwin_nat_target::mourn_inferior)
558 (darwin_stop_inferior, darwin_setup_exceptions)
559 (darwin_nat_target::kill, darwin_attach_pid, darwin_ptrace_him)
560 (darwin_nat_target::attach, darwin_nat_target::detach)
561 (darwin_read_write_inferior, darwin_read_dyld_info): Remove unused
562 local variables.
563 * i386-darwin-nat.c (i386_darwin_dr_set): Remove unused local
564 variables.
565
c82a2e6f
TT
5662018-09-29 Tom Tromey <tom@tromey.com>
567
568 * README: Remove some leftover text.
569
7f0bd420
TT
5702018-09-29 Tom Tromey <tom@tromey.com>
571
572 * PROBLEMS: Rewrite.
573 * README: Update.
574
f37bc8b1
JB
5752018-09-28 John Baldwin <jhb@FreeBSD.org>
576
577 * disasm-selftests.c (print_one_insn_test): Add bfd_arch_riscv to
578 case with explicit breakpoint kind.
579 * riscv-tdep.c (show_use_compressed_breakpoints): Remove
580 'additional_info' and related logic.
581 (riscv_debug_breakpoints): New variable.
582 (riscv_breakpoint_kind_from_pc): Use the length of the existing
583 instruction to determine the breakpoint kind.
584 (_initialize_riscv_tdep): Add 'set/show debug riscv breakpoints'
585 flag. Update description of 'set/show riscv
586 use-compressed-breakpoints' flag.
587
f67ffa6a
AB
5882018-09-28 Andrew Burgess <andrew.burgess@embecosm.com>
589
590 (NEWS): Mention changes to frame related commands.
591 * cli/cli-decode.c (add_cmd_suppress_notification): New function.
592 (add_prefix_cmd_suppress_notification): New function.
593 (add_com_suppress_notification): Call
594 add_cmd_suppress_notification.
595 * command.h (add_cmd_suppress_notification): Declare.
596 (add_prefix_cmd_suppress_notification): Declare.
597 * mi/mi-cmd-stack.c: Add 'safe-ctype.h' include.
598 (parse_frame_specification): Moved from stack.c, with
599 simplification to handle a single argument.
600 (mi_cmd_stack_select_frame): Use parse_frame_specification, the
601 switch to the selected frame. Add a header comment.
602 * stack.c: Remove 'safe-ctype.h' include.
603 (find_frame_for_function): Add declaration.
604 (find_frame_for_address): New function.
605 (parse_frame_specification): Moved into mi/mi-cmd-stack.c.
606 (frame_selection_by_function_completer): New function.
607 (info_frame_command): Rename to...
608 (info_frame_command_core): ...this, and update parameter types.
609 (select_frame_command): Rename to...
610 (select_frame_command_core): ...this, and update parameter types.
611 (frame_command): Rename to...
612 (frame_command_core): ...this, and update parameter types.
613 (class frame_command_helper): New class to wrap implementations of
614 frame related sub-commands.
615 (frame_apply_cmd_list): New static global.
616 (frame_cmd_list): Make static.
617 (select_frame_cmd_list): New global for sub-commands.
618 (info_frame_cmd_list): New global for sub-commands.
619 (_initialize_stack): Register sub-commands for 'frame',
620 'select-frame', and 'info frame'. Update 'frame apply' commands
621 to use frame_apply_cmd_list. Move function local static
622 frame_apply_list to file static frame_apply_cmd_list for
623 consistency.
624 * stack.h (select_frame_command): Delete declarationn.
625 (select_frame_for_mi): Declare new function.
626
d354055e
AB
6272018-09-26 Andrew Burgess <andrew.burgess@embecosm.com>
628
629 * riscv-tdep.c (riscv_insn::decode): Decode c.lui.
630 (riscv_scan_prologue): Split handling of AUIPC, LUI, ADD, ADDI,
631 and NOP.
632
85392414
SM
6332018-09-26 Simon Marchi <simon.marchi@ericsson.com>
634
635 * elf32-nds32.c (elf32_nds32_allocate_dynrelocs): Remove.
636
896ee098
TT
6372018-09-26 Tom Tromey <tom@tromey.com>
638
639 * valops.c (auto_abandon): Remove dead code.
640
57dbb3af
TT
6412018-09-26 Tom Tromey <tom@tromey.com>
642
643 * tui/tui-win.c (WIN_HEIGHT_USAGE): Remove extra ">"s.
644
b5a9bfbe
TT
6452018-09-24 Tom Tromey <tom@tromey.com>
646
647 * common/pathstuff.c (get_standard_cache_dir): Make
648 "xdg_cache_home" and "home" const.
649 * top.c (init_history): Make "tmpenv" const.
650 * main.c (get_init_files): Make "homedir" const.
651
ae778caf
TT
6522018-09-23 Tom Tromey <tom@tromey.com>
653
654 PR python/18852:
655 * python/py-param.c (get_set_value): Use gdbpy_handle_exception.
656
2b4ad2fe
TT
6572018-09-23 Tom Tromey <tom@tromey.com>
658
659 * python/py-function.c (fnpy_call): Use gdbpy_handle_exception.
660 * python/py-cmd.c (cmdpy_function): Use gdbpy_handle_exception.
661 * python/python-internal.h (gdbpy_handle_exception): Declare.
662 * python/py-utils.c (gdbpy_handle_exception): New function.
663
fd3ba736
TT
6642018-09-23 Tom Tromey <tom@tromey.com>
665
666 PR python/17284:
667 * python/py-type.c (typy_template_argument): Check for negative
668 argument number.
669
39a24317
TT
6702018-09-23 Tom Tromey <tom@tromey.com>
671
672 PR python/14062:
673 * python/python.c (gdbpy_run_events): Do not ignore exceptions.
674
f5769a2c
TT
6752018-09-23 Tom Tromey <tom@tromey.com>
676
677 PR python/18170:
678 * python/py-value.c (valpy_int): Allow conversion from pointer
679 type.
680
1c1e54f6
TT
6812018-09-23 Tom Tromey <tom@tromey.com>
682
683 PR python/20126:
684 * python/py-value.c (valpy_int): Respect type sign.
685
fb4fa946
TT
6862018-09-23 Tom Tromey <tom@tromey.com>
687
688 PR python/18352;
689 * python/py-value.c (valpy_float): Allow conversions from int or
690 char.
691 (valpy_int, valpy_long): Allow conversions from float.
692
65773341
TT
6932018-09-23 Tom Tromey <tom@tromey.com>
694
695 * ctf.c (ctf_start): Use gdb_fopen_cloexec.
696 * common/scoped_mmap.c (mmap_file): Use gdb_open_cloexec.
697
1db88d22
RO
6982018-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
699
700 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Also recognize
701 __sighndlr.
702 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Likewise.
703
a44294f5
JT
7042018-08-02 Jon Turney <jon.turney@dronecode.org.uk>
705
706 * windows-nat.c (windows_nat_target::wait): Remove a spurious
707 target_terminal::ours().
708
0c0a40e0
SM
7092018-09-23 Simon Marchi <simon.marchi@ericsson.com>
710
711 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): Change type
712 of vl to ULONGEST.
713
4daf1902
YS
7142018-09-21 Yacov Simhony <ysimhony@gmail.com>
715
716 * breakpoint.c (update_inserted_breakpoint_locations): Remove
717 redundant condition.
718
c475f569
RO
7192018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
720
721 * proc-utils.h (PROC_CTL_WORD_TYPE): Remove.
722
723 * procfs.c: Don't check for PR_MODEL_NATIVE definition.
724 * sparc-sol2-nat.c: Likewise. Remove Linux, __arch64__ references.
725 * sol-thread.c (ps_pdmodel): Don't guard definition.
726
727 * procfs.c: Fix formatting.
728
729 * procfs.c (sysset_t_alloc): Remove.
730 (create_procinfo): Use XNEW instead of sysset_t_alloc.
731 (procfs_debug_inferior): Likewise.
732 (procfs_set_exec_trap): Likewise.
733 (proc_set_traced_sysentry): Don't allocate argp dynamically.
734 (proc_set_traced_sysexit): Likewise.
735
736 * procfs.c (create_procinfo): Use xsnprintf to fix ARI warning.
737 (dead_procinfo): Likewise.
738 (proc_warn): Likewise.
739 (proc_error): Likewise.
740 (proc_get_LDT_entry): Likewise.
741 (do_attach): Likewise.
742 (procfs_target::pid_to_str): Likewise.
743 (iterate_over_mappings): Likewise.
744
745 * procfs.c (create_procinfo): Fix ARI warning.
746 (proc_get_status): Likewise.
747 (proc_stop_process): Likewise.
748 (proc_run_process): Likewise.
749 (proc_kill): Likewise.
750 (proc_get_LDT_entry): Likewise.
751 (procfs_find_LDT_entry): Likewise.
752 (proc_update_threads): Likewise.
753 (proc_iterate_over_threads): Likewise.
754 (do_attach): Likewise.
755 (procfs_xfer_memory): Likewise.
756 (invalidate_cache): Likewise.
757 (procfs_target::resume): Likewise.
758 (procfs_init_inferior): Likewise.
759 (procfs_set_exec_trap): Likewise.
760 (procfs_target::thread_alive): Likewise.
761 (procfs_target::pid_to_exec_file): Likewise.
762 (iterate_over_mappings): Likewise.
763 (procfs_target::make_corefile_notes): Likewise.
764 * sol-thread.c (sol_thread_target::thread_alive): Likewise.
765
766 * procfs.c (procfs_find_LDT_entry): Silence ARI warning.
767 (procfs_find_LDT_entry): Likewise.
768 * sol-thread.c (ps_lgetLDT): Likewise.
769
4206c05e
RO
7702018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
771
772 PR tdep/17903
773 * procfs.c (procfs_target): Declare pid_to_exec_file.
774 (procfs_target::pid_to_exec_file): New.
775
3d282ac3
RO
7762018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
777
778 * auxv.c (default_print_auxv_entry): Reflect AT_SUN_CAP_HW1
779 renaming.
780 Handle AT_SUN_EMULATOR, AT_SUN_BRANDNAME, AT_SUN_BRAND_AUX1,
781 AT_SUN_BRAND_AUX2, AT_SUN_BRAND_AUX3, AT_SUN_CAP_HW2.
782
8c93fae6
RO
7832018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
784
785 * i386-v4-nat.c (regmap, supply_gregset, fill_gregset)
786 (supply_fpregset, fill_fpregset): Move ...
787 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64]: ... here.
788 Remove HAVE_GREGSET_T, HAVE_FPREGET_T guards.
789 Remove references to ioctl-based procfs.
790 Include <sys/reg.h>.
791 Remove PR_MODEL_NATIVE guards.
792 * configure.nat <sol2, i386> (NATDEPFILES): Remove i386-v4-nat.o.
793 * Makefile.in (ALLDEPFILES): Remove i386-v4-nat.c.
794
79b32f4a
XR
7952018-09-19 Xavier Roirand <roirand@adacore.com>
796
797 PR gdb/20981:
798 * solib-darwin.c (darwin_get_dyld_bfd): New function.
799 (darwin_solib_get_all_image_info_addr_at_init): Update call.
800 (darwin_solib_create_inferior_hook): Handle unrelocated dyld.
801
07147793
JB
8022018-09-19 John Baldwin <jhb@FreeBSD.org>
803
804 * fbsd-tdep.c (fbsd_print_sockaddr_in): Style fix.
805 (fbsd_print_sockaddr_in6): Likewise.
806
23be8da7
RB
8072018-09-19 Richard Bunt <richard.bunt@arm.com>
808 Chris January <chris.january@arm.com>
809
810 * eval.c (skip_undetermined_arglist): Skip argument list helper.
811 (evaluate_subexp_standard): Return a dummy type when
812 honoring EVAL_SKIP in OP_VAR_VALUE and handle skipping in the
813 OP_F77_UNDETERMINED_ARGLIST case.
814 * expression.h (enum noside): Update comment.
815
7307a73a
RO
8162018-09-19 George Vasick <george.vasick@oracle.com>
817
818 * solib-svr4.c (svr4_same_1): Also handle amd64 ld.so.1.
819
13db92d3
RO
8202018-09-19 Stefan Teleman <stefan.teleman@oracle.com>
821 April Chin <april.chin@oracle.com>
822 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
823
824 * procfs.c (MAX_PROC_NAME_SIZE): Allow for 6-digit PID_MAX and
825 uint_t lwpid_t.
826 (create_procinfo): Print pids in /proc without leading zeros.
827
3d50f170
SL
8282018-09-18 Sandra Loosemore <sandra@codesourcery.com>
829
830 * nios2-tdep.c (nios2_gcc_target_options): New.
831 (nios2_gdb_arch_init): Install new hook.
832
b567ca63
SM
8332018-09-18 Simon Marchi <simon.marchi@ericsson.com>
834
835 * patches/0001-Fix-PR-gdb-23558-Use-system-s-getcwd-when-cross-comp.patch:
836 New file.
837 * update-gnulib.sh: Apply patch.
838 * configure: Re-generate.
839
73f1bd76
JB
8402018-09-18 John Baldwin <jhb@FreeBSD.org>
841
842 * infcmd.c (_initialize_infcmd): Remove "running" from "info proc"
843 description. Make "info proc" command descriptions more
844 consistent.
845
8b113111
JB
8462018-09-18 John Baldwin <jhb@FreeBSD.org>
847
848 * NEWS: Mention 'info proc files' command.
849
7e69672e
JB
8502018-09-18 John Baldwin <jhb@FreeBSD.org>
851
852 * fbsd-nat.c (fbsd_nat_target::info_proc): List open file
853 descriptors for IP_FILES and IP_ALL.
854
57c2a98a
JB
8552018-09-18 John Baldwin <jhb@FreeBSD.org>
856
857 * fbsd-tdep.c (KF_FLAGS, KF_OFFSET, KF_VNODE_TYPE, KF_SOCK_DOMAIN)
858 (KF_SOCK_TYPE, KF_SOCK_PROTOCOL, KF_SA_LOCAL, KF_SA_PEER)
859 (KINFO_FILE_TYPE_SOCKET, KINFO_FILE_TYPE_PIPE)
860 (KINFO_FILE_TYPE_FIFO, KINFO_FILE_TYPE_KQUEUE)
861 (KINFO_FILE_TYPE_CRYPTO, KINFO_FILE_TYPE_MQUEUE)
862 (KINFO_FILE_TYPE_SHM, KINFO_FILE_TYPE_SEM, KINFO_FILE_TYPE_PTS)
863 (KINFO_FILE_TYPE_PROCDESC, KINFO_FILE_FD_TYPE_ROOT)
864 (KINFO_FILE_FD_TYPE_JAIL, KINFO_FILE_FD_TYPE_TRACE)
865 (KINFO_FILE_FD_TYPE_CTTY, KINFO_FILE_FLAG_READ)
866 (KINFO_FILE_FLAG_WRITE, KINFO_FILE_FLAG_APPEND)
867 (KINFO_FILE_FLAG_ASYNC, KINFO_FILE_FLAG_FSYNC)
868 (KINFO_FILE_FLAG_NONBLOCK, KINFO_FILE_FLAG_DIRECT)
869 (KINFO_FILE_FLAG_HASLOCK, KINFO_FILE_FLAG_EXEC)
870 (KINFO_FILE_VTYPE_VREG, KINFO_FILE_VTYPE_VDIR)
871 (KINFO_FILE_VTYPE_VCHR, KINFO_FILE_VTYPE_VLNK)
872 (KINFO_FILE_VTYPE_VSOCK, KINFO_FILE_VTYPE_VFIFO, FBSD_AF_UNIX)
873 (FBSD_AF_INET, FBSD_AF_INET6, FBSD_SOCK_STREAM, FBSD_SOCK_DGRAM)
874 (FBSD_SOCK_SEQPACKET, FBSD_IPPROTO_ICMP, FBSD_IPPROTO_TCP)
875 (FBSD_IPPROTO_UDP, FBSD_IPPROTO_SCTP): New defines.
876 (struct fbsd_sockaddr_in, struct fbsd_sockaddr_in6)
877 (struct fbsd_sockaddr_un): New types.
878 (fbsd_file_fd, fbsd_file_type, fbsd_file_flags, fbsd_ipproto)
879 (fbsd_print_sockaddr_in, fbsd_print_sockaddr_in6)
880 (fbsd_info_proc_files_header, fbsd_info_proc_files_entry)
881 (fbsd_core_info_proc_files): New functions.
882 (fbsd_core_info_proc): List open file descriptors for IP_FILES and
883 IP_ALL.
884 * fbsd-tdep.h (fbsd_info_proc_files_header)
885 (fbsd_info_proc_files_entry): New.
886
e98ee8c4
JB
8872018-09-18 John Baldwin <jhb@FreeBSD.org>
888
889 * defs.h (enum info_proc_what) [IP_FILES]: New value.
890 * infcmd.c (info_proc_cmd_files): New function.
891 (_initialize_infcmd): Register 'info proc files' command.
892
725e2999
JB
8932018-09-18 John Baldwin <jhb@FreeBSD.org>
894
895 * gnulib/aclocal-m4-deps.mk: Re-generate.
896 * gnulib/aclocal.m4: Re-generate.
897 * gnulib/config.in: Re-generate.
898 * gnulib/configure: Re-generate.
899 * gnulib/import/Makefile.am: Re-generate.
900 * gnulib/import/Makefile.in: Re-generate.
901 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
902 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
903 * gnulib/import/arpa_inet.in.h: New file.
904 * gnulib/import/inet_ntop.c: New file.
905 * gnulib/import/m4/arpa_inet_h.m4: New file.
906 * gnulib/import/m4/inet_ntop.m4: New file.
907 * gnulib/import/m4/netinet_in_h.m4: New file.
908 * gnulib/import/m4/socklen.m4: New file.
909 * gnulib/import/m4/sockpfaf.m4: New file.
910 * gnulib/import/m4/stdalign.m4: New file.
911 * gnulib/import/m4/sys_uio_h.m4: New file.
912 * gnulib/import/netinet_in.in.h: New file.
913 * gnulib/import/stdalign.in.h: New file.
914 * gnulib/import/sys_socket.c: New file.
915 * gnulib/import/sys_socket.in.h: New file.
916 * gnulib/import/sys_uio.in.h: New file.
917 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add inet_ntop
918 module.
919
2afffa7f
JB
9202018-09-18 John Baldwin <jhb@FreeBSD.org>
921
922 * gnulib/aclocal-m4-deps.mk: New file.
923 * gnulib/update-gnulib.sh: Generate "aclocal-m4-deps.mk"
924 deterministically.
925
9f235e09
JB
9262018-09-18 John Baldwin <jhb@FreeBSD.org>
927
928 * fbsd-tdep.c (fbsd_core_vnode_path): Use KF_PATH instead of
929 KVE_PATH.
930
40f03055
TT
9312018-09-18 Tom Tromey <tom@tromey.com>
932
933 * compile/compile-object-load.c (struct
934 link_hash_table_cleanup_data): Add constructor and destructor.
935 Use DISABLE_COPY_AND_ASSIGN.
936 (~link_hash_table_cleanup_data): Rename from
937 link_hash_table_free. Now a destructor.
938 (copy_sections): Use gdb::unique_xmalloc_ptr. Remove cleanups.
939
c9e0a7e3
TT
9402018-09-18 Tom Tromey <tom@tromey.com>
941
942 * compile/compile-object-run.c (do_module_cleanup): Use delete.
943 * compile/compile-object-load.c (struct munmap_list): Move to
944 header file.
945 (munmap_list::add): Rename from munmap_list_add; rewrite.
946 (munmap_list::~munmap_list): Rename from munmap_list_free.
947 (munmap_listp_free_cleanup): Remove.
948 (compile_object_load): Update.
949 * compile/compile-object-load.h (struct munmap_list): Move from
950 compile-object-load.c. Rewrite.
951
3ff2c72e
AH
9522018-09-18 Alan Hayward <alan.hayward@arm.com>
953
954 * aarch64-tdep.c (pass_in_v): Use register size.
955 (aarch64_extract_return_value): Likewise.
956 (aarch64_store_return_value): Likewise.
957
206c1947
RO
9582018-09-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
959
960 * utils.c (dump_core) [HAVE_SETRLIMIT]: Cast RLIM_INFINITY to
961 rlim_t.
962
6eb5dbce
PW
9632018-09-17 Philippe Waroquiers <philippe.waroquiers@skynet.be>
964
965 * python/lib/gdb/command/frame_filters.py (EnableFrameFilter):
966 Fix short help line.
967
ae292b3a
TT
9682018-09-17 Tom Tromey <tom@tromey.com>
969
970 PR python/20445:
971 * configure: Rebuild.
972 * configure.ac: Conditionally use -DNDEBUG for Python.
973
da658607
TT
9742018-09-17 Tom Tromey <tom@tromey.com>
975
976 * configure: Rebuild.
977 * configure.ac: Use gmp as a library dependency when checking for
978 mpfr.
979
d35da542
PA
9802018-09-17 Pedro Alves <palves@redhat.com>
981
982 * python/py-inferior.c (find_inferior_object): Delete.
983
461464f2
SM
9842018-09-17 Simon Marchi <simon.marchi@ericsson.com>
985
986 * compile/compile-cplus-types.c
987 (compile_cplus_instance::enter_scope): Don't use new_scope after
988 std::move.
989
e6cd1dc1
TT
9902018-09-17 Tom Tromey <tom@tromey.com>
991
992 * common/pathstuff.c (get_standard_cache_dir): Use
993 ~/Library/Caches on macOS.
994 * common/pathstuff.h (get_standard_cache_dir): Update comment.
995
8588b356
SM
9962018-09-17 Simon Marchi <simon.marchi@polymtl.ca>
997
998 PR python/23669
999 * breakpoint.c (commands_cmd_element): New.
1000 (_initialize_breakpoint): Assign commands_cmd_element.
1001 * breakpoint.h (commands_cmd_element): New.
1002 * cli/cli-script.c (while_cmd_element, if_command,
1003 define_cmd_element): New.
1004 (command_name_equals): Remove.
1005 (process_next_line): Compare commands by pointer, not by name.
1006 (_initialize_cli_script): Assign the various cmd_list_element
1007 variables.
1008 * compile/compile.c (compile_cmd_element): New.
1009 (_initialize_compile): Assign compile_cmd_element.
1010 * compile/compile.h (compile_cmd_element): New.
1011 * guile/guile.c (guile_cmd_element): New.
1012 (install_gdb_commands): Assign guile_cmd_element.
1013 * guile/guile.h (guile_cmd_element): New.
1014 * python/python.c (python_cmd_element): New.
1015 (_initialize_python): Assign python_cmd_element.
1016 * python/python.h (python_cmd_element): New.
1017 * tracepoint.c (while_stepping_cmd_element): New.
1018 (_initialize_tracepoint): Assign while_stepping_cmd_element.
1019 * tracepoint.h (while_stepping_cmd_element): New.
1020
cb524840
TT
10212018-09-17 Tom Tromey <tom@tromey.com>
1022
1023 * infrun.c (save_infcall_suspend_state): Return
1024 infcall_suspend_state_up.
1025 (save_infcall_control_state): Return infcall_control_state_up.
1026 * inferior.h (save_infcall_suspend_state)
1027 (save_infcall_control_state): Declare later. Return unique
1028 pointers.
1029
2d844eaf
TT
10302018-09-17 Tom Tromey <tom@tromey.com>
1031
1032 * infrun.c (struct stop_context): Declare constructor,
1033 destructor, "changed" method.
1034 (stop_context::stop_context): Rename from save_stop_context.
1035 (stop_context::~stop_context): Rename from
1036 release_stop_context_cleanup.
1037 (normal_stop): Update.
1038 (stop_context::changed): Rename from stop_context_changed. Return
1039 bool.
1040
c7c4d3fa
TT
10412018-09-17 Tom Tromey <tom@tromey.com>
1042
1043 * inferior.h (struct infcall_suspend_state_deleter): New.
1044 (infcall_suspend_state_up): New typedef.
1045 (struct infcall_control_state_deleter): New.
1046 (infcall_control_state_up): New typedef.
1047 (make_cleanup_restore_infcall_suspend_state)
1048 (make_cleanup_restore_infcall_control_state): Don't declare.
1049 * infcall.c (call_function_by_hand_dummy): Update.
1050 * infrun.c (do_restore_infcall_suspend_state_cleanup)
1051 (make_cleanup_restore_infcall_suspend_state): Remove.
1052 (do_restore_infcall_control_state_cleanup)
1053 (make_cleanup_restore_infcall_control_state): Remove.
1054
ee841dd8
TT
10552018-09-17 Tom Tromey <tom@tromey.com>
1056
1057 * gdbthread.h (struct thread_control_state): Add initializer.
1058 (class thread_info) <control>: Remove initializer.
1059 * inferior.h (struct inferior_control_state): Add initializer.
1060 (class inferior) <control>: Remove initializer.
1061 (exit_inferior_1): Update.
1062 * infrun.c (struct infcall_control_state): Add constructors.
1063 (save_infcall_control_state): Use new.
1064 (restore_infcall_control_state, discard_infcall_control_state):
1065 Use delete.
1066
117f580a
TT
10672018-09-17 Tom Tromey <tom@tromey.com>
1068
1069 * infrun.c (struct infcall_suspend_state) <registers>: Now a
1070 unique_ptr.
1071 <siginfo_data>: Now a unique_xmalloc_ptr.
1072 (save_infcall_suspend_state, restore_infcall_suspend_state)
1073 (discard_infcall_suspend_state)
1074 (get_infcall_suspend_state_regcache): Update.
1075
dd848631
TT
10762018-09-17 Tom Tromey <tom@tromey.com>
1077
1078 * gdbthread.h (struct thread_suspend_state): Add initializers.
1079 (class thread_info) <suspend>: Remove initializer.
1080 * infrun.c (struct infcall_suspend_state): Add initializers.
1081 (save_infcall_suspend_state): Use new.
1082 (discard_infcall_suspend_state): Use delete.
1083
1a338907
TT
10842018-09-16 Tom Tromey <tom@tromey.com>
1085
1086 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
1087 Remove.
1088 * python/py-varobj.c (py_varobj_iter_ctor): Change pyiter to
1089 rvalue reference. Remove CPYCHECKER_STEALS_REFERENCE_TO_ARG.
1090 (py_varobj_iter_new): Likewise.
1091 (py_varobj_get_iterator): Use gdbpy_ref.
1092
4a137fec
TT
10932018-09-16 Tom Tromey <tom@tromey.com>
1094
1095 * python/py-threadevent.c (py_get_event_thread): Simplify.
1096 * python/py-inferior.c (infpy_thread_from_thread_handle):
1097 Return immediately after calling thread_to_thread_object. Use
1098 Py_RETURN_NONE.
1099 (thread_to_thread_object): Set the exception on a NULL return.
1100
8ff03f0b
SM
11012018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
1102
1103 * Makefile.in (LIBGDB_OBS): Sort COMMON_OBS.
1104
94c8b725
TT
11052018-09-16 Tom Tromey <tom@tromey.com>
1106
1107 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
1108 Remove.
1109
db1337cc
TT
11102018-09-16 Tom Tromey <tom@tromey.com>
1111
1112 * python/python-internal.h (thread_to_thread_object): Change
1113 return type.
1114 * python/py-inferior.c (thread_to_thread_object): Return a new
1115 reference.
1116 (infpy_thread_from_thread_handle): Update.
1117 * python/py-infthread.c (gdbpy_selected_thread): Update.
1118 * python/py-stopevent.c (create_stop_event_object): Update.
1119 * python/py-threadevent.c (py_get_event_thread): Return a new
1120 reference.
1121 (py_get_event_thread): Update.
1122 * python/py-event.h (py_get_event_thread): Change return type.
1123 * python/py-continueevent.c (create_continue_event_object):
1124 Update.
1125
0a9db5ad
TT
11262018-09-16 Tom Tromey <tom@tromey.com>
1127
1128 * python/py-progspace.c (pspy_get_objfiles): Update.
1129 * python/python-internal.h (objfile_to_objfile_object): Change
1130 return type.
1131 * python/py-newobjfileevent.c (create_new_objfile_event_object):
1132 Update.
1133 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
1134 Update.
1135 * python/python.c (gdbpy_get_current_objfile): Update.
1136 (gdbpy_objfiles): Update.
1137 * python/py-objfile.c (objfpy_get_owner, gdbpy_lookup_objfile):
1138 Update.
1139 (objfile_to_objfile_object): Return a new reference.
1140 * python/py-symtab.c (stpy_get_objfile): Update.
1141 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
1142 Update.
1143
3c7aa307
TT
11442018-09-16 Tom Tromey <tom@tromey.com>
1145
1146 * python/py-inferior.c (infpy_get_progspace): Update.
1147 * python/python-internal.h (pspace_to_pspace_object): Change
1148 return type.
1149 * python/py-newobjfileevent.c
1150 (create_clear_objfiles_event_object): Update.
1151 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
1152 Update.
1153 * python/python.c (gdbpy_get_current_progspace): Update.
1154 (gdbpy_progspaces): Update.
1155 * python/py-progspace.c (pspace_to_pspace_object): Return a new
1156 reference.
1157 * python/py-objfile.c (objfpy_get_progspace): Update.
1158 * python/py-prettyprint.c (find_pretty_printer_from_progspace):
1159 Update.
1160
8743a9cd
TT
11612018-09-16 Tom Tromey <tom@tromey.com>
1162
1163 * python/lib/gdb/__init__.py (current_progspace, objfiles)
1164 (solib_name, block_for_pc, find_pc_line): New functions.
1165 (execute_unwinders): Update.
1166 * python/py-block.c (gdbpy_block_for_pc): Remove.
1167 * python/py-inferior.c (infpy_get_progspace): New function.
1168 (inferior_object_getset) <progspace>: Add.
1169 * python/py-progspace.c (pspy_objfiles): Rewrite.
1170 (pspy_solib_name, pspy_block_for_pc)
1171 (pspy_find_pc_line, pspy_is_valid): New functions.
1172 (progspace_object_methods): Add entries for solib_name,
1173 block_for_pc, find_pc_line, is_valid.
1174 * python/python-internal.h (gdbpy_block_for_pc)
1175 (build_objfiles_list): Don't declare.
1176 * python/python.c: Don't include solib.h.
1177 (gdbpy_solib_name, gdbpy_find_pc_line)
1178 (gdbpy_get_current_progspace, build_objfiles_list)
1179 (gdbpy_objfiles): Remove.
1180 (GdbMethods) <current_progspace, objfiles, block_for_pc,
1181 solib_name, find_pc_line>: Remove entries.
1182
65e65158
TT
11832018-09-16 Tom Tromey <tom@tromey.com>
1184
1185 * top.c (new_ui_command): Use GNU style for metasyntactic
1186 variables.
1187 * breakpoint.c (stopat_command): Use GNU style for metasyntactic
1188 variables.
1189 * maint.c (maintenance_translate_address): Remove "<>" around
1190 text.
1191 * interps.c (interpreter_exec_cmd): Use GNU style for
1192 metasyntactic variables.
1193 * nto-procfs.c (nto_procfs_target_info): Use GNU style for
1194 metasyntactic variables.
1195 * tracepoint.c (tfind_range_command): Use GNU style for
1196 metasyntactic variables.
1197 (tfind_outside_command): Likewise.
1198 (_initialize_tracepoint): Likewise.
1199 * remote.c (extended_remote_target::create_inferior): Use GNU
1200 style for metasyntactic variables.
1201 * sparc64-tdep.c (adi_examine_command): Use GNU style for
1202 metasyntactic variables.
1203 (adi_assign_command): Likewise.
1204
f4bab6ff
TT
12052018-09-16 Tom Tromey <tom@tromey.com>
1206
1207 * disasm.c (show_disassembler_options_sfunc): Use GNU style for
1208 metasyntactic variables. Print message if no disassembler options
1209 are available.
1210
cbaaa0ca
TT
12112018-09-15 Tom Tromey <tom@tromey.com>
1212
1213 * infcmd.c (get_inferior_args): Return const char *.
1214 * inferior.h (get_inferior_args): Return type now const.
1215 * linux-tdep.c (linux_fill_prpsinfo): Update.
1216 * procfs.c (procfs_target::make_corefile_notes): Update.
1217
a3a6aef4
TT
12182018-09-07 Tom Tromey <tom@tromey.com>
1219
1220 * python/python.c (execute_gdb_command): Call bpstat_do_actions
1221 inside the TRY.
1222
f70e088f
SL
12232018-09-14 Sandra Loosemore <sandra@codesourcery.com>
1224
1225 * nios2-tdep.c (nios2_type_align): New.
1226 (nios2_gdb_arch_init): Install type_align hook.
1227
2fabdf33
AB
12282018-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
1229
1230 * eval.c (fake_method::fake_method): Call xzalloc directly for a
1231 type that is neither object file owned, nor gdbarch owned.
1232 * gdbtypes.c (get_type_gdbarch): Add an assert that returned
1233 gdbarch is non-NULL.
1234 (alloc_type_instance): Allocate non-objfile owned types on the
1235 gdbarch obstack.
1236 (copy_type_recursive): Allocate TYPE_FIELDS and TYPE_RANGE_DATA
1237 using TYPE_ALLOC to ensure memory is allocated on the correct
1238 obstack.
1239 * gdbtypes.h (TYPE_ALLOC): Allocate space on either the objfile
1240 obstack, or the gdbarch obstack.
1241 (TYPE_ZALLOC): Rewrite using TYPE_ALLOC.
1242
b4b08fa2
TT
12432018-09-14 Tom Tromey <tom@tromey.com>
1244
1245 * infcall.c (call_function_by_hand_dummy): Remove unnecessary
1246 block.
1247
87b240d4
TT
12482018-09-14 Tom Tromey <tom@tromey.com>
1249
1250 * nat/fork-inferior.c (get_startup_shell): Remove "static".
1251
7d221512
TT
12522018-09-13 Tom Tromey <tom@tromey.com>
1253
1254 * python/py-inferior.c (infpy_thread_from_thread_handle): Now
1255 static.
1256
97e67fc6
TT
12572018-09-13 Tom Tromey <tom@tromey.com>
1258
1259 * exec.c (try_open_exec_file): Use std::string.
1260
803c08d0
TT
12612018-09-13 Tom Tromey <tom@tromey.com>
1262
1263 * utils.h (gdb_bfd_errmsg): Return std::string.
1264 * exec.c (exec_file_attach): Update.
1265 * compile/compile-object-load.c (compile_object_load): Update.
1266 * utils.c (gdb_bfd_errmsg): Return std::string.
1267
5b4cbbe3
TT
12682018-09-13 Tom Tromey <tom@tromey.com>
1269
1270 * procfs.c (struct procinfo_deleter): New.
1271 (procinfo_up): New typedef.
1272 (do_destroy_procinfo_cleanup): Remove.
1273 (procfs_target::info_proc): Use procinfo_up. Remove cleanups.
1274
db68fbe2
TT
12752018-09-13 Tom Tromey <tom@tromey.com>
1276
1277 * source.c (add_path): Use gdb::unique_xmalloc_ptr.
1278
0ae1a321
SM
12792018-09-13 Simon Marchi <simon.marchi@ericsson.com>
12802018-09-13 Tom Tromey <tom@tromey.com>
1281
1282 * python/py-progspace.c (PSPY_REQUIRE_VALID): New macro.
1283 (pspy_get_objfiles): New function.
1284 (progspace_object_methods): New.
1285 (pspace_object_type): Add tp_methods callback.
1286 * python/python-internal.h (build_objfiles_list): New
1287 declaration.
1288 * python/python.c (build_objfiles_list): New function.
1289 (gdbpy_objfiles): Implement using build_objfiles_list.
1290 * NEWS: Mention the Progspace.objfiles method.
1291
a40bf0c2
SM
12922018-09-13 Simon Marchi <simon.marchi@ericsson.com>
1293
1294 * python/py-inferior.c (infpy_get_progspace): New function.
1295 (inferior_object_getset): Add progspace property.
1296 * NEWS: Mention the new property.
1297
4a3fe98f
TT
12982018-09-13 Tom Tromey <tom@tromey.com>
1299
1300 PR rust/23650:
1301 * rust-lang.c (rust_evaluate_subexp): Use field name, not "foo".
1302
098b2108
TT
13032018-09-13 Tom Tromey <tom@tromey.com>
1304
1305 PR rust/23626:
1306 * rust-lang.c (rust_enum_variant): Now static.
1307 (rust_empty_enum_p): New function.
1308 (rust_print_enum, rust_evaluate_subexp, rust_print_struct_def):
1309 Handle empty enum.
1310
1256af7d
SM
13112018-09-13 Simon Marchi <simon.marchi@ericsson.com>
1312
1313 * python/py-inferior.c (infpy_repr): New.
1314 (inferior_object_type): Register infpy_repr.
1315 * python/py-objfile.c (objfpy_repr): New.
1316 (objfile_object_type): Register objfpy_repr.
1317
f117a62c
JB
13182018-09-12 John Baldwin <jhb@FreeBSD.org>
1319
1320 * fbsd-nat.c (fbsd_nat_target::info_proc): Remove unused variable.
1321
88f22c34
JB
13222018-09-12 John Baldwin <jhb@FreeBSD.org>
1323
1324 * aarch64-fbsd-tdep.h (AARCH64_FBSD_SIZEOF_GREGSET): Fix comment
1325 typo.
1326
3c025cfe
SDJ
13272018-09-12 Sergio Durigan Junior <sergiodj@redhat.com>
1328
1329 * common/common-utils.c: Don't include '<sys/stat.h>'.
1330 (is_regular_file): Move to...
1331 * common/filestuff.c (is_regular_file): ... here.
1332 * common/common-utils.h (is_regular_file): Move to...
1333 * common/filestuff.h (is_regular_file): ... here.
1334
3e68067f
SM
13352018-09-12 Simon Marchi <simon.marchi@ericsson.com>
1336
1337 * skip.c (debug_skip): New variable.
1338 (skiplist_entry::do_skip_file_p): Add debug output.
1339 (skiplist_entry::do_skip_gfile_p): Likewise.
1340 (skiplist_entry::skip_function_p): Likewise.
1341 (_initialize_step_skip): Create debug command.
1342 * NEWS: Mention set/show debug skip.
1343
d6be54ef
XR
13442018-09-11 Xavier Roirand <roirand@adacore.com>
1345
1346 * darwin-nat.c (should_disable_startup_with_shell):
1347 New function.
1348 (darwin_nat_target::create_inferior): Add call.
1349
de1ec836
XR
13502018-09-11 Xavier Roirand <roirand@adacore.com>
1351
1352 * darwin-nat.h (struct darwin_thread_info) <gdb_port,
1353 inf_port, msg_state>: Initialize.
1354 (struct darwin_thread_info) <signaled, single_step>: Change
1355 type and initialize.
1356 (struct darwin_thread_info) <event>: Initialize.
1357
e2fc52e7
SDJ
13582018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
1359
1360 PR gdb/23555
1361 PR gdb/23558
1362 * gnulib/import/m4/getcwd-path-max.m4: Add cross-compilation
1363 guesses.
1364
5e8754f9
SDJ
13652018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
1366
1367 Revert:
1368 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
1369
1370 PR gdb/23555
1371 PR gdb/23558
1372 * gnulib/aclocal.m4: Regenerate.
1373 * gnulib/config.in: Regenerate.
1374 * gnulib/configure: Regenerate.
1375 * gnulib/import/Makefile.am: Update.
1376 * gnulib/import/Makefile.in: Update.
1377 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
1378 * gnulib/import/_Noreturn.h: ... this.
1379 * gnulib/import/alloca.in.h: Update.
1380 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
1381 * gnulib/import/arg-nonnull.h: ... this.
1382 * gnulib/import/assure.h: Update.
1383 * gnulib/import/at-func.c: Update.
1384 * gnulib/import/basename-lgpl.c: Update.
1385 * gnulib/import/extra/snippet/c++defs.h: Rename to...
1386 * gnulib/import/c++defs.h: ... this.
1387 * gnulib/import/canonicalize-lgpl.c: Update.
1388 * gnulib/import/cdefs.h: Update.
1389 * gnulib/import/chdir-long.c: Update.
1390 * gnulib/import/chdir-long.h: Update.
1391 * gnulib/import/cloexec.c: Update.
1392 * gnulib/import/cloexec.h: Update.
1393 * gnulib/import/close.c: Update.
1394 * gnulib/import/closedir.c: Update.
1395 * gnulib/import/config.charset: Update.
1396 * gnulib/import/dirent-private.h: Update.
1397 * gnulib/import/dirent.in.h: Update.
1398 * gnulib/import/dirfd.c: Update.
1399 * gnulib/import/dirname-lgpl.c: Update.
1400 * gnulib/import/dirname.h: Update.
1401 * gnulib/import/dosname.h: Update.
1402 * gnulib/import/dup-safer-flag.c: Update.
1403 * gnulib/import/dup-safer.c: Update.
1404 * gnulib/import/dup.c: Update.
1405 * gnulib/import/dup2.c: Update.
1406 * gnulib/import/errno.in.h: Update.
1407 * gnulib/import/error.c: Update.
1408 * gnulib/import/error.h: Update.
1409 * gnulib/import/exitfail.c: Update.
1410 * gnulib/import/exitfail.h: Update.
1411 * gnulib/import/extra/update-copyright: Update.
1412 * gnulib/import/fchdir.c: Update.
1413 * gnulib/import/fcntl.c: Update.
1414 * gnulib/import/fcntl.in.h: Update.
1415 * gnulib/import/fd-hook.c: Update.
1416 * gnulib/import/fd-hook.h: Update.
1417 * gnulib/import/fd-safer-flag.c: Update.
1418 * gnulib/import/fd-safer.c: Update.
1419 * gnulib/import/fdopendir.c: Update.
1420 * gnulib/import/filename.h: Update.
1421 * gnulib/import/filenamecat-lgpl.c: Update.
1422 * gnulib/import/filenamecat.h: Update.
1423 * gnulib/import/flexmember.h: Update.
1424 * gnulib/import/float+.h: Update.
1425 * gnulib/import/float.c: Update.
1426 * gnulib/import/float.in.h: Update.
1427 * gnulib/import/fnmatch.c: Update.
1428 * gnulib/import/fnmatch.in.h: Update.
1429 * gnulib/import/fnmatch_loop.c: Update.
1430 * gnulib/import/fpucw.h: Update.
1431 * gnulib/import/frexp.c: Update.
1432 * gnulib/import/frexpl.c: Update.
1433 * gnulib/import/fstat.c: Update.
1434 * gnulib/import/fstatat.c: Update.
1435 * gnulib/import/getcwd-lgpl.c: Update.
1436 * gnulib/import/getcwd.c: Update.
1437 * gnulib/import/getdtablesize.c: Update.
1438 * gnulib/import/getlogin_r.c: Update.
1439 * gnulib/import/getprogname.c: Update.
1440 * gnulib/import/getprogname.h: Update.
1441 * gnulib/import/gettext.h: Update.
1442 * gnulib/import/gettimeofday.c: Update.
1443 * gnulib/import/glob-libc.h: Update.
1444 * gnulib/import/glob.c: Update.
1445 * gnulib/import/glob.in.h: Update.
1446 * gnulib/import/glob_internal.h: Update.
1447 * gnulib/import/glob_pattern_p.c: Update.
1448 * gnulib/import/globfree.c: Update.
1449 * gnulib/import/hard-locale.c: Update.
1450 * gnulib/import/hard-locale.h: Update.
1451 * gnulib/import/intprops.h: Update.
1452 * gnulib/import/inttypes.in.h: Update.
1453 * gnulib/import/isnan.c: Update.
1454 * gnulib/import/isnand-nolibm.h: Update.
1455 * gnulib/import/isnand.c: Update.
1456 * gnulib/import/isnanl-nolibm.h: Update.
1457 * gnulib/import/isnanl.c: Update.
1458 * gnulib/import/itold.c: Update.
1459 * gnulib/import/libc-config.h: Update.
1460 * gnulib/import/limits.in.h: Update.
1461 * gnulib/import/localcharset.c: Update.
1462 * gnulib/import/localcharset.h: Update.
1463 * gnulib/import/localtime-buffer.c: Update.
1464 * gnulib/import/localtime-buffer.h: Update.
1465 * gnulib/import/lstat.c: Update.
1466 * gnulib/import/m4/00gnulib.m4: Update.
1467 * gnulib/import/m4/__inline.m4: Update.
1468 * gnulib/import/m4/absolute-header.m4: Update.
1469 * gnulib/import/m4/alloca.m4: Update.
1470 * gnulib/import/m4/builtin-expect.m4: Update.
1471 * gnulib/import/m4/canonicalize.m4: Update.
1472 * gnulib/import/m4/chdir-long.m4: Update.
1473 * gnulib/import/m4/close.m4: Update.
1474 * gnulib/import/m4/closedir.m4: Update.
1475 * gnulib/import/m4/configmake.m4: Update.
1476 * gnulib/import/m4/d-ino.m4: Update.
1477 * gnulib/import/m4/d-type.m4: Update.
1478 * gnulib/import/m4/dirent_h.m4: Update.
1479 * gnulib/import/m4/dirfd.m4: Update.
1480 * gnulib/import/m4/dirname.m4: Update.
1481 * gnulib/import/m4/double-slash-root.m4: Update.
1482 * gnulib/import/m4/dup.m4: Update.
1483 * gnulib/import/m4/dup2.m4: Update.
1484 * gnulib/import/m4/eealloc.m4: Update.
1485 * gnulib/import/m4/environ.m4: Update.
1486 * gnulib/import/m4/errno_h.m4: Update.
1487 * gnulib/import/m4/error.m4: Update.
1488 * gnulib/import/m4/exponentd.m4: Update.
1489 * gnulib/import/m4/exponentl.m4: Update.
1490 * gnulib/import/m4/extensions.m4: Update.
1491 * gnulib/import/m4/extern-inline.m4: Update.
1492 * gnulib/import/m4/fchdir.m4: Update.
1493 * gnulib/import/m4/fcntl-o.m4: Update.
1494 * gnulib/import/m4/fcntl.m4: Update.
1495 * gnulib/import/m4/fcntl_h.m4: Update.
1496 * gnulib/import/m4/fdopendir.m4: Update.
1497 * gnulib/import/m4/filenamecat.m4: Update.
1498 * gnulib/import/m4/flexmember.m4: Update.
1499 * gnulib/import/m4/float_h.m4: Update.
1500 * gnulib/import/m4/fnmatch.m4: Update.
1501 * gnulib/import/m4/fnmatch_h.m4: Update.
1502 * gnulib/import/m4/fpieee.m4: Update.
1503 * gnulib/import/m4/frexp.m4: Update.
1504 * gnulib/import/m4/frexpl.m4: Update.
1505 * gnulib/import/m4/fstat.m4: Update.
1506 * gnulib/import/m4/fstatat.m4: Update.
1507 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
1508 * gnulib/import/m4/getcwd-path-max.m4: Update.
1509 * gnulib/import/m4/getcwd.m4: Update.
1510 * gnulib/import/m4/getdtablesize.m4: Update.
1511 * gnulib/import/m4/getlogin.m4: Update.
1512 * gnulib/import/m4/getlogin_r.m4: Update.
1513 * gnulib/import/m4/getpagesize.m4: Update.
1514 * gnulib/import/m4/getprogname.m4: Update.
1515 * gnulib/import/m4/gettimeofday.m4: Update.
1516 * gnulib/import/m4/glibc21.m4: Update.
1517 * gnulib/import/m4/glob.m4: Update.
1518 * gnulib/import/m4/glob_h.m4: Update.
1519 * gnulib/import/m4/gnulib-cache.m4: Update.
1520 * gnulib/import/m4/gnulib-common.m4: Update.
1521 * gnulib/import/m4/gnulib-comp.m4: Update.
1522 * gnulib/import/m4/gnulib-tool.m4: Update.
1523 * gnulib/import/m4/hard-locale.m4: Update.
1524 * gnulib/import/m4/include_next.m4: Update.
1525 * gnulib/import/m4/inttypes-pri.m4: Update.
1526 * gnulib/import/m4/inttypes.m4: Update.
1527 * gnulib/import/m4/isnand.m4: Update.
1528 * gnulib/import/m4/isnanl.m4: Update.
1529 * gnulib/import/m4/largefile.m4: Update.
1530 * gnulib/import/m4/limits-h.m4: Update.
1531 * gnulib/import/m4/localcharset.m4: Update.
1532 * gnulib/import/m4/locale-fr.m4: Update.
1533 * gnulib/import/m4/locale-ja.m4: Update.
1534 * gnulib/import/m4/locale-zh.m4: Update.
1535 * gnulib/import/m4/localtime-buffer.m4: Update.
1536 * gnulib/import/m4/longlong.m4: Update.
1537 * gnulib/import/m4/lstat.m4: Update.
1538 * gnulib/import/m4/malloc.m4: Update.
1539 * gnulib/import/m4/malloca.m4: Update.
1540 * gnulib/import/m4/math_h.m4: Update.
1541 * gnulib/import/m4/mbrtowc.m4: Update.
1542 * gnulib/import/m4/mbsinit.m4: Update.
1543 * gnulib/import/m4/mbsrtowcs.m4: Update.
1544 * gnulib/import/m4/mbstate_t.m4: Update.
1545 * gnulib/import/m4/memchr.m4: Update.
1546 * gnulib/import/m4/memmem.m4: Update.
1547 * gnulib/import/m4/mempcpy.m4: Update.
1548 * gnulib/import/m4/memrchr.m4: Update.
1549 * gnulib/import/m4/mkdir.m4: Update.
1550 * gnulib/import/m4/mkstemp.m4: Update.
1551 * gnulib/import/m4/mmap-anon.m4: Update.
1552 * gnulib/import/m4/mode_t.m4: Update.
1553 * gnulib/import/m4/msvc-inval.m4: Update.
1554 * gnulib/import/m4/msvc-nothrow.m4: Update.
1555 * gnulib/import/m4/multiarch.m4: Update.
1556 * gnulib/import/m4/nocrash.m4: Update.
1557 * gnulib/import/m4/off_t.m4: Update.
1558 * gnulib/import/m4/onceonly.m4: Update.
1559 * gnulib/import/m4/open-cloexec.m4: Update.
1560 * gnulib/import/m4/open.m4: Update.
1561 * gnulib/import/m4/openat.m4: Update.
1562 * gnulib/import/m4/opendir.m4: Update.
1563 * gnulib/import/m4/pathmax.m4: Update.
1564 * gnulib/import/m4/rawmemchr.m4: Update.
1565 * gnulib/import/m4/readdir.m4: Update.
1566 * gnulib/import/m4/readlink.m4: Update.
1567 * gnulib/import/m4/realloc.m4: Update.
1568 * gnulib/import/m4/rename.m4: Update.
1569 * gnulib/import/m4/rewinddir.m4: Update.
1570 * gnulib/import/m4/rmdir.m4: Update.
1571 * gnulib/import/m4/save-cwd.m4: Update.
1572 * gnulib/import/m4/secure_getenv.m4: Update.
1573 * gnulib/import/m4/setenv.m4: Update.
1574 * gnulib/import/m4/signal_h.m4: Update.
1575 * gnulib/import/m4/ssize_t.m4: Update.
1576 * gnulib/import/m4/stat-time.m4: Update.
1577 * gnulib/import/m4/stat.m4: Update.
1578 * gnulib/import/m4/std-gnu11.m4: Update.
1579 * gnulib/import/m4/stdbool.m4: Update.
1580 * gnulib/import/m4/stddef_h.m4: Update.
1581 * gnulib/import/m4/stdint.m4: Update.
1582 * gnulib/import/m4/stdio_h.m4: Update.
1583 * gnulib/import/m4/stdlib_h.m4: Update.
1584 * gnulib/import/m4/strchrnul.m4: Update.
1585 * gnulib/import/m4/strdup.m4: Update.
1586 * gnulib/import/m4/strerror.m4: Update.
1587 * gnulib/import/m4/string_h.m4: Update.
1588 * gnulib/import/m4/strstr.m4: Update.
1589 * gnulib/import/m4/strtok_r.m4: Update.
1590 * gnulib/import/m4/sys_socket_h.m4: Update.
1591 * gnulib/import/m4/sys_stat_h.m4: Update.
1592 * gnulib/import/m4/sys_time_h.m4: Update.
1593 * gnulib/import/m4/sys_types_h.m4: Update.
1594 * gnulib/import/m4/tempname.m4: Update.
1595 * gnulib/import/m4/time_h.m4: Update.
1596 * gnulib/import/m4/unistd-safer.m4: Update.
1597 * gnulib/import/m4/unistd_h.m4: Update.
1598 * gnulib/import/m4/warn-on-use.m4: Update.
1599 * gnulib/import/m4/wchar_h.m4: Update.
1600 * gnulib/import/m4/wchar_t.m4: Update.
1601 * gnulib/import/m4/wctype_h.m4: Update.
1602 * gnulib/import/m4/wint_t.m4: Update.
1603 * gnulib/import/malloc.c: Update.
1604 * gnulib/import/malloc/scratch_buffer.h: Update.
1605 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
1606 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
1607 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
1608 * gnulib/import/malloca.c: Update.
1609 * gnulib/import/malloca.h: Update.
1610 * gnulib/import/malloca.valgrind: Update.
1611 * gnulib/import/math.in.h: Update.
1612 * gnulib/import/mbrtowc.c: Update.
1613 * gnulib/import/mbsinit.c: Update.
1614 * gnulib/import/mbsrtowcs-impl.h: Update.
1615 * gnulib/import/mbsrtowcs-state.c: Update.
1616 * gnulib/import/mbsrtowcs.c: Update.
1617 * gnulib/import/memchr.c: Update.
1618 * gnulib/import/memmem.c: Update.
1619 * gnulib/import/mempcpy.c: Update.
1620 * gnulib/import/memrchr.c: Update.
1621 * gnulib/import/mkdir.c: Update.
1622 * gnulib/import/mkstemp.c: Update.
1623 * gnulib/import/msvc-inval.c: Update.
1624 * gnulib/import/msvc-inval.h: Update.
1625 * gnulib/import/msvc-nothrow.c: Update.
1626 * gnulib/import/msvc-nothrow.h: Update.
1627 * gnulib/import/open.c: Update.
1628 * gnulib/import/openat-die.c: Update.
1629 * gnulib/import/openat-priv.h: Update.
1630 * gnulib/import/openat-proc.c: Update.
1631 * gnulib/import/openat.c: Update.
1632 * gnulib/import/openat.h: Update.
1633 * gnulib/import/opendir.c: Update.
1634 * gnulib/import/pathmax.h: Update.
1635 * gnulib/import/pipe-safer.c: Update.
1636 * gnulib/import/rawmemchr.c: Update.
1637 * gnulib/import/readdir.c: Update.
1638 * gnulib/import/readlink.c: Update.
1639 * gnulib/import/realloc.c: Update.
1640 * gnulib/import/ref-add.sin: Update.
1641 * gnulib/import/ref-del.sin: Update.
1642 * gnulib/import/rename.c: Update.
1643 * gnulib/import/rewinddir.c: Update.
1644 * gnulib/import/rmdir.c: Update.
1645 * gnulib/import/same-inode.h: Update.
1646 * gnulib/import/save-cwd.c: Update.
1647 * gnulib/import/save-cwd.h: Update.
1648 * gnulib/import/scratch_buffer.h: Update.
1649 * gnulib/import/secure_getenv.c: Update.
1650 * gnulib/import/setenv.c: Update.
1651 * gnulib/import/signal.in.h: Update.
1652 * gnulib/import/stat-time.c: Update.
1653 * gnulib/import/stat-time.h: Update.
1654 * gnulib/import/stat-w32.c: Update.
1655 * gnulib/import/stat-w32.h: Update.
1656 * gnulib/import/stat.c: Update.
1657 * gnulib/import/stdbool.in.h: Update.
1658 * gnulib/import/stddef.in.h: Update.
1659 * gnulib/import/stdint.in.h: Update.
1660 * gnulib/import/stdio.in.h: Update.
1661 * gnulib/import/stdlib.in.h: Update.
1662 * gnulib/import/str-two-way.h: Update.
1663 * gnulib/import/strchrnul.c: Update.
1664 * gnulib/import/strdup.c: Update.
1665 * gnulib/import/streq.h: Update.
1666 * gnulib/import/strerror-override.c: Update.
1667 * gnulib/import/strerror-override.h: Update.
1668 * gnulib/import/strerror.c: Update.
1669 * gnulib/import/string.in.h: Update.
1670 * gnulib/import/stripslash.c: Update.
1671 * gnulib/import/strnlen1.c: Update.
1672 * gnulib/import/strnlen1.h: Update.
1673 * gnulib/import/strstr.c: Update.
1674 * gnulib/import/strtok_r.c: Update.
1675 * gnulib/import/sys_stat.in.h: Update.
1676 * gnulib/import/sys_time.in.h: Update.
1677 * gnulib/import/sys_types.in.h: Update.
1678 * gnulib/import/tempname.c: Update.
1679 * gnulib/import/tempname.h: Update.
1680 * gnulib/import/time.in.h: Update.
1681 * gnulib/import/unistd--.h: Update.
1682 * gnulib/import/unistd-safer.h: Update.
1683 * gnulib/import/unistd.in.h: Update.
1684 * gnulib/import/unsetenv.c: Update.
1685 * gnulib/import/verify.h: Update.
1686 * gnulib/import/extra/snippet/warn-on-use.h: Update.
1687 * gnulib/import/wchar.in.h: Update.
1688 * gnulib/import/wctype.in.h: Update.
1689 * gnulib/import/xalloc-oversized.h: Update.
1690 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
1691 "53e2c179f26a890fa6685af4b6c1397ee370433b".
1692
8ec23583
SM
16932018-09-10 Simon Marchi <simon.marchi@ericsson.com>
1694
1695 * record-btrace.c (get_thread_current_frame): Remove
1696 old_inferior_ptid.
1697
1f5d1570
JG
16982018-09-10 Jerome Guitton <guitton@adacore.com>
1699
1700 * ada-lang.c (ada_value_struct_elt): Call ada_to_fixed_type
1701 with check_tag to 1 if and only if the type is tagged and the
1702 component being searched cannot been found in the current
1703 view. Otherwise, always call ada_to_fixed_type with
1704 check_tag to 0.
1705
d91e9ea8
XR
17062018-09-10 Xavier Roirand <roirand@adacore.com>
1707
1708 * ada-lang.c (ada_is_access_to_unconstrained_array): Remove static
1709 declaration.
1710 * ada-lang.h: add ada_is_access_to_unconstrained_array prototype.
1711 * ada-varobj.c (ada_varobj_get_number_of_children,
1712 ada_varobj_describe_child, ada_value_is_changeable_p): Cleanup code.
1713
cc330e39
XR
17142018-09-10 Xavier Roirand <roirand@adacore.com>
1715
1716 * ada-valprint.c (ada_value_print): Use type instead of
1717 enclosing type.
1718
b9c50e9a
XR
17192018-09-10 Xavier Roirand <roirand@adacore.com>
1720
1721 * ada-lang.c (ada_value_subscript): Handle case when parameter is
1722 an array of access to unconstrained array.
1723
736ade86
XR
17242018-09-10 Xavier Roirand <roirand@adacore.com>
1725
1726 * ada-lang.c (ada_is_access_to_unconstrained_array): New function.
1727 (ada_check_typedef): Use it.
1728
2963898f
XR
17292018-09-10 Xavier Roirand <roirand@adacore.com>
1730
1731 * ada-varobj.c (ada_varobj_describe_struct_child)
1732 (ada_varobj_describe_child): Handle union case like struct one.
1733
a154931e
TT
17342018-09-10 Tom Tromey <tom@tromey.com>
1735
1736 PR python/18380:
1737 * python/python.c (_initialize_python): Make example in "python"
1738 help work in Python 3.
1739
23c4651c
EZ
17402018-09-10 Eli Zaretskii <eliz@gnu.org>
1741
1742 * Makefile.in (transformed_name): Use INSTALL_SCRIPT instead of
1743 INSTALL_PROGRAM to install gdb-add-index.sh. Don't append
1744 $(EXEEXT) to the script, as it is not a program.
1745
a5c5eda7
SM
17462018-09-09 Simon Marchi <simon.marchi@ericsson.com>
1747
1748 * python/py-prettyprint.c (pretty_print_one_value): Return
1749 gdbpy_ref<>.
1750 (print_string_repr): Adjust.
1751 (apply_varobj_pretty_printer): Return gdbpy_ref<>.
1752 * python/python-internal.h (apply_varobj_pretty_printer): Return
1753 gdbpy_ref<>.
1754 * varobj.c (varobj_value_get_print_value): Adjust.
1755
332cf4c9
TT
17562018-09-08 Tom Tromey <tom@tromey.com>
1757
1758 PR python/16047:
1759 * python/py-prettyprint.c (pretty_print_one_value): Check for
1760 to_string method.
1761
424da6cf
JB
17622018-09-08 Joel Brobecker <brobecker@adacore.com>
1763
1764 * ada-lang.c (resolve_subexp): Pass correct OPLEN in call to
1765 replace_operator_with_call.
1766
95f39a5b
JB
17672018-09-08 Joel Brobecker <brobecker@adacore.com>
1768
1769 * ada-lang.c (ada_value_cast): Remove unnecessary parentheses.
1770
16b9eb7b
JB
17712018-09-08 Joel Brobecker <brobecker@adacore.com>
1772
1773 * ada-typeprint.c (print_range): Print the bounds using TYPE
1774 rather than its TYPE_TARGET_TYPE.
1775
d8ce9127
JB
17762018-09-08 Joel Brobecker <brobecker@adacore.com>
1777
1778 * ada-lang.c (ada_to_fixed_value): Minor reformatting in
1779 call to ada_to_fixed_value_create.
1780
0d81f350
JG
17812018-09-08 Jerome Guitton <guitton@adacore.com>
1782
1783 * ada-lang.c (ada_decode): strip dot prefix in symbol name.
1784
57aff202
JB
17852018-09-08 Joel Brobecker <brobecker@adacore.com>
1786
1787 * ada-lang.c (ada_exception_sal): Replace gdb_assert calls
1788 by calls to error.
1789
fb44b1a7
JB
17902018-09-08 Joel Brobecker <brobecker@adacore.com>
1791
1792 * ada-lang.c (ada_unhandled_exception_name_addr_from_raise):
1793 Move update of loop variable "fi".
1794
2a62dfa9
JB
17952018-09-08 Joel Brobecker <brobecker@adacore.com>
1796
1797 * ada-lang.c (value_assign_to_component): In the case of
1798 big-endian targets, extract the bits of the given VAL
1799 using an src_offset of zero if container is not a scalar.
1800
739ab2e9
SS
18012018-09-06 Simon Ser <contact@emersion.fr>
1802
1803 PR gdb/23105
1804 * fbsd-nat.c (fbsd_nat_target::xfer_partial): Add support for
1805 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
1806 * fbsd-tdep.c (fbsd_make_note_desc): New.
1807 (fbsd_make_corefile_notes): Write NT_PROCSTAT_AUXV,
1808 NT_PROCSTAT_VMMAP and NT_PROCSTAT_PS_STRINGS notes.
1809 * target.h (enum target_object) Add FreeBSD-specific
1810 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
1811
d82b3862
SM
18122018-09-06 Simon Marchi <simon.marchi@ericsson.com>
1813
1814 * compile/compile-c.h (generate_c_for_variable_locations):
1815 Change reference to pointer.
1816 * compile/compile-c-support.c (compile_program) <compute>:
1817 Likewise.
1818 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
1819 (generate_c_for_for_one_variable): Likewise
1820 (generate_c_for_variable_locations): Likewise
1821 * compile/compile-c-types.c (compile_c_instance::convert_type):
1822 Likewise
1823 * compile/compile-cplus-symbols.c (convert_one_symbol):
1824 std::move the scope passed to enter_scope.
1825 * compile/compile-cplus-types.c
1826 (compile_cplus_instance::enter_scope): Make parameter
1827 rvalue-reference.
1828 (compile_cplus_instance::new_scope): Change reference to
1829 pointer.
1830 (compile_cplus_instance::convert_type): Likewise
1831 (compile_cplus_convert_typedef): std::move the scope passed to
1832 enter_scope.
1833 (compile_cplus_convert_struct_or_union): Likewise.
1834 (compile_cplus_convert_enum): Likewise.
1835 (compile_cplus_convert_namespace): Likewise.
1836 * compile/compile-cplus.h (compile_cplus_instance)
1837 <enter_scope>: Make parameter rvalue-reference.
1838 * compile/compile-internal.h (compile_instance)
1839 <get_cached_type>: Likewise
1840 * compile/compile-loc2c.c (push): Likewise
1841 (pushf): Likewise
1842 (unary): Likewise
1843 (binary): Likewise
1844 (print_label): Likewise
1845 (pushf_register_address): Likewise
1846 (pushf_register): Likewise
1847 (do_compile_dwarf_expr_to_c): Likewise
1848 (compile_dwarf_expr_to_c): Likewise
1849 (compile_dwarf_bounds_to_c): Likewise
1850 * compile/compile.c (compile_instance::get_cached_type):
1851 Likewise
1852 * compile/compile.h (compile_dwarf_expr_to_c): Likewise.
1853 (compile_dwarf_bounds_to_c): Likewise
1854 * dwarf2loc.c (locexpr_generate_c_location): Likewise.
1855 (dwarf2_compile_property_to_c): Likewise
1856 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise
1857 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
1858 Likewise
1859
cc5a5ae5
SM
18602018-09-06 Simon Marchi <simon.marchi@ericsson.com>
1861
1862 * tui/tui-data.h (struct tui_win_element) <highlight>: Remove.
1863 * tui/tui-data.c (init_content_element): Don't initialize it.
1864
137be540
SM
18652018-09-06 Simon Marchi <simon.marchi@ericsson.com>
1866
1867 * tui/tui-data.h (struct tui_win_info)
1868 <detail::opaque>: Remove.
1869 * tui/tui-data.c (init_win_info): Remove assignment.
1870
f1628857
TT
18712018-09-05 Tom Tromey <tom@tromey.com>
1872
1873 * warning.m4 (AM_GDB_WARNINGS): Add -Wformat when testing
1874 -Wformat-nonliteral.
1875 * target-float.c (host_float_ops<T>::to_string)
1876 (host_float_ops<T>::from_string): Use
1877 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
1878 * configure: Rebuild.
1879
af39b1c2
SM
18802018-09-05 Simon Marchi <simon.marchi@ericsson.com>
1881
1882 * printcmd.c (printf_c_string): Use
1883 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
1884 (printf_wide_c_string, printf_pointer, ui_printf): Likewise.
1885
081bca4d
TT
18862018-09-05 Tom Tromey <tom@tromey.com>
1887
1888 * cli/cli-cmds.c (shell_escape, edit_command): Remove cast.
1889
e4a62c65
TV
18902018-09-05 Tom de Vries <tdevries@suse.de>
1891
1892 * dwarf2loc.c (sect_variable_value): Call indirect_synthetic_pointer
1893 with resolve_abstract_p == true.
1894 (indirect_synthetic_pointer): Add resolve_abstract_p parameter,
1895 defaulting to false. Propagate resolve_abstract_p to
1896 dwarf2_fetch_die_loc_sect_off.
1897 * dwarf2loc.h (dwarf2_fetch_die_loc_sect_off): Add resolve_abstract_p
1898 parameter, defaulting to false.
1899 * dwarf2read.c (read_variable): Add variable to abstract_to_concrete.
1900 (dwarf2_fetch_die_loc_sect_off): Add and handle resolve_abstract_p
1901 parameter.
1902 * dwarf2read.h (struct die_info): Forward-declare.
1903 (die_info_ptr): New typedef.
1904 (struct dwarf2_per_objfile): Add abstract_to_concrete field.
1905
2b69821e
JB
19062018-09-05 Joel Brobecker <brobecker@adacore.com>
1907
1908 GDB 8.2 released.
1909
fcc9b044
SDJ
19102018-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
1911 Pedro Alves <palves@redhat.com>
1912
1913 * gnulib/Makefile.in (aclocal_m4_deps): Move to
1914 "aclocal-m4-deps.mk". Include file here.
1915 $(srcdir)/aclocal.m4: Add "configure.ac".
1916 * gnulib/aclocal-m4-deps.mk: New file.
1917 * gnulib/update-gnulib.sh: Automatically update
1918 "aclocal-m4-deps.mk".
1919
d53d5436
TT
19202018-09-04 Tom Tromey <tom@tromey.com>
1921
1922 * configure: Rebuild.
1923 * configure.ac: Remove multi-ice code.
1924
8dc9fd87
TT
19252018-09-04 Tom Tromey <tom@tromey.com>
1926
1927 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS): Remove.
1928 (ada-exp.o): Update.
1929
3322c5d9
TT
19302018-09-04 Tom Tromey <tom@tromey.com>
1931
1932 * Makefile.in (printcmd.o, target-float.o): Remove.
1933 (GDB_WARN_CFLAGS_NO_FORMAT): Remove.
1934
ba2bf2aa
TT
19352018-09-04 Tom Tromey <tom@tromey.com>
1936
1937 * gnulib/Makefile.in: Remove obsolete comment.
1938 * Makefile.in: Remove obsolete comment.
1939
6c9d681b
AB
19402018-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
1941
1942 * riscv-tdep.c (riscv_frame_cache): Fix ARI warning, don't end a
1943 line with '+'.
1944
78a3b0fa
AB
19452018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
1946
1947 * riscv-tdep.c: Add 'prologue-value.h' include.
1948 (struct riscv_unwind_cache): New struct.
1949 (riscv_debug_unwinder): New global.
1950 (riscv_scan_prologue): Update arguments, capture register details
1951 from prologue scan.
1952 (riscv_skip_prologue): Reformat arguments line, move end of
1953 prologue calculation into riscv_scan_prologue.
1954 (riscv_frame_cache): Update return type, create
1955 riscv_unwind_cache, scan the prologue, and fill in remaining cache
1956 details.
1957 (riscv_frame_this_id): Use frame id computed in riscv_frame_cache.
1958 (riscv_frame_prev_register): Use the trad_frame within the
1959 riscv_unwind_cache.
1960 (_initialize_riscv_tdep): Add 'set/show debug riscv unwinder'
1961 flag.
1962
23e60e7a
AB
19632018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
1964
1965 * trad-frame.h (trad_frame_set_realreg): Declare.
1966 (trad_frame_set_addr): Declare.
1967 * trad-frame.c (trad_frame_set_realreg): Define new function.
1968 (trad_frame_set_addr): Define new function.
1969 (trad_frame_set_reg_realreg): Use new function.
1970 (trad_frame_set_reg_addr): Use new function.
1971
5c889512
KS
19722018-09-01 Keith Seitz <keiths@redhat.com>
1973
1974 * compile/compile-cplus-types.c (compile_cplus_debug_output_1): Use
1975 pulongest instead of "%lld".
1976 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol): Remove
1977 ATTRIBUTE_UNUSED.
1978
c8c81635
TT
19792018-08-31 Tom Tromey <tom@tromey.com>
1980
1981 * dwarf2read.c (dwarf2_add_field): Set the TYPE_LENGTH of the
1982 variant part type.
1983
0c888588
PA
19842018-08-31 Pedro Alves <palves@redhat.com>
1985
1986 * gdbarch.h: Regenerate.
1987
7ea65f08
PA
19882018-08-31 Pedro Alves <palves@redhat.com>
1989
1990 * gdbarch.sh (have_nonsteppable_watchpoint): Add comment.
1991 * target.h (Hardware watchpoint interfaces): Describe
1992 continuable/steppable/non-steppable watchpoints.
1993 * gdbarch.h, gdbarch.c: Regenerate.
1994
7eb65faf
PA
19952018-08-31 Pedro Alves <palves@redhat.com>
1996
1997 * nto-procfs.c (nto_procfs_target::have_continuable_watchpoint):
1998 Delete.
1999 * s390-linux-nat.c
2000 (s390_linux_nat_target::have_continuable_watchpoint): Delete.
2001 * target.h (target_ops::have_continuable_watchpoint): Delete.
2002 (target_have_continuable_watchpoint): Delete.
2003 * x86-nat.h (x86_nat_target::have_continuable_watchpoint): Delete.
2004 * target-delegates.c: Regenerate.
2005
dab999b1
SDJ
20062018-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
2007
2008 * gnulib/Makefile.in (aclocal_m4_deps): Update according to
2009 the files present in "gnulib/import/m4/".
2010
ff3a05b3
AB
20112018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
2012
2013 * riscv-tdep.c (riscv_insn::decode): Decode c.addi4spn, c.sd,
2014 c.sw, c.swsp, and c.sdsp.
2015
0b3f9efc
AB
20162018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
2017
2018 * riscv-tdep.c (struct riscv_inferior_data): Delete.
2019 (riscv_read_misa_reg): Don't cache value read into inferior data.
2020 (riscv_new_inferior_data): Delete.
2021 (riscv_inferior_data_cleanup): Delete.
2022 (riscv_inferior_data): Delete.
2023 (riscv_invalidate_inferior_data): Delete.
2024 (_initialize_riscv_tdep): Remove initialisation of inferior data.
2025
a0dc02a6
SM
20262018-08-30 Simon Marchi <simon.marchi@ericsson.com>
2027
2028 * compile/compile-cplus-types.c
2029 (compile_cplus_instance::leave_scope): Take the address of scope
2030 object.
2031 (compile_cplus_instance::convert_qualified_base): Compare quals
2032 to 0.
2033
fdad7678
KS
20342018-08-30 Keith Seitz <keiths@redhat.com>
2035
2036 * compile/compile-cplus-types.c (compile_cplus_instance::enter_scope):
2037 Use "%s" and host_address_to_string instead of "%p" in printf.
2038
078a0207
KS
20392018-08-29 Keith Seitz <keiths@redhat.com>
2040
2041 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Add compile-cplus-symbols.c
2042 and compile-cplus-types.c.
2043 (HFILES_NO_SRCDIR): Add gcc-cp-plugin.h.
2044 * c-lang.c (cplus_language_defn): Set C++ compile functions.
2045 * c-lang.h (cplus_get_compile_context, cplus_compute_program):
2046 Declare.
2047 * compile/compile-c-support.c: Include compile-cplus.h.
2048 (load_libcompile): Templatize.
2049 (get_compile_context): "New" function.
2050 (c_get_compile_context): Use get_compile_context.
2051 (cplus_get_compile_context): New function.
2052 (cplus_push_user_expression, cplus_pop_user_expression)
2053 (cplus_add_code_header, cplus_add_input, cplus_compile_program)
2054 (cplus_compute_program): Define new structs/functions.
2055 * compile/compile-cplus-symmbols.c: New file.
2056 * compile/compile-cplus-types.c: New file.
2057 * compile/compile-cplus.h: New file.
2058 * compile/compile-internal.h (debug_compile_oracle, GCC_TYPE_NONE):
2059 Declare.
2060 * compile/compile-object-load.c (get_out_value_type): Use
2061 strncmp_iw when comparing symbol names.
2062 (compile_object_load): Add mst_bss and mst_data.
2063 * compile/compile.c (_initialize_compile): Remove
2064 -Wno-implicit-function-declaration from `compile_args'.
2065 * compile/gcc-cp-plugin.h: New file.
2066 * NEWS: Mention C++ compile support and new debug options.
2067
fcaad03c
KS
20682018-08-29 Keith Seitz <keiths@redhat.com>
2069
2070 * linespec.c (collect_info::add_symbol): Make virtual.
2071 (struct symbol_searcher_collect_info): New struct.
2072 (symbol_searcher::find_all_symbols): New method.
2073 * symtab.h (class symbol_searcher): New class.
2074
7e41c8db
KS
20752018-08-29 Keith Seitz <keiths@redhat.com>
2076
2077 * linespec.c (struct linespec) <function_symbols, label_symbols>:
2078 Change to vector of block_symbol. Update all users.
2079 (struct collect_info) <symbols>: Likewise.
2080 (collect_info::add_symbol): Take block_symbol as argument.
2081 Update all callers.
2082 (decode_compound_collector) <m_symbols>: Change type to vector
2083 of block_symbol. Update all users.
2084 (decode_compound_collector::operator ()): Change parameter type
2085 to block_symbol.
2086 (find_method, find_function_symbols, find_linespec_symbols)
2087 (find_label_symbols_in_block, find_label_symbols): Change symbol
2088 vectors to block_symbol vectors.
2089 * symtab.h (symbol_found_callback_ftype): Change parameter type to
2090 block_symbol.
2091
63e8c3da
KS
20922018-08-29 Keith Seitz <keiths@redhat.com>
2093
2094 * linespec.c (symbolp): Remove typedef and VEC definitions.
2095 (bound_minimal_symbol_d): Likewise.
2096
4dedf84d
KS
20972018-08-29 Keith Seitz <keiths@redhat.com>
2098
2099 * linespec.c (decode_compound_collector::decode_compound_collector):
2100 Remove initialization for `m_symtabs'.
2101 (decode_compound_collector::release_symbols): Change return type
2102 to std::vector. Update all callers.
2103 (class decode_compound_collector) <m_symbols>: Change type to
2104 std::vector.
2105 (lookup_prefix_sym): Change return type to std::vector. Update all
2106 callers.
2107 (compare_symbols): Remove.
2108 (std_compare_symbols): Rename to `compare_symbols'.
2109 (find_method): Change `sym_classes' parameter to std::vector.
2110 Update all callers. Use std::sort to sort sym_classes.
2111 (find_linespec_symbols): Remove cleanup.
2112
c2a031c5
KS
21132018-08-29 Keith Seitz <keiths@redhat.com>
2114
2115 * linespec.c (struct linespec) <minimal_symbols>: Change type to
2116 std::vector. Update all users.
2117 (convert_linespec_to_sals): Use std::sort to sort minimal symbols.
2118 (struct collect_info) <minimal_symbols>: Likewise.
2119 (compare_msymbols): Return bool. Change parameters to const
2120 bound_minimal_symbol references.
2121 (find_method, find_function_symbols, find_linespec_symbols): Change
2122 `minsyms' parameter to std::vector. Update all callers.
2123
3553eadc
KS
21242018-08-29 Keith Seitz <keiths@redhat.com>
2125
2126 * linespec.c (struct linespec) <label_symbols>: Change type to
2127 std::vector. Update all users.
2128 (find_label_symbols_in_block): Change `result' parameter to
2129 std::vector. Update all callers.
2130 (find_label_symbols): Return std::vector. Update all callers.
2131
7243d011
KS
21322018-08-29 Keith Seitz <keiths@redhat.com>
2133
2134 * linespec.c (struct linespec) <function_symbols>: Change type to
2135 std::vector. Update all users.
2136 (struct collect_info) <function_symbols>: Likewise.
2137 (convert_linespec_to_sals): Use std::sort to sort function_symbols.
2138 (std_compare_symbols): New function.
2139 (find_method, find_function_symbols, find_linespec_symbols)
2140 (find_label_symbols_in_block): Change `symbols' parameter to
2141 std::vector. Update all callers.
2142 (find_label_symbols): Likewise for `function_symbols' and
2143 `label_funcs_ret'.
2144
2a908241
KS
21452018-08-29 Keith Seitz <keiths@redhat.com>
2146
2147 * linespec.c (symtab_vector_up): Define.
2148 (struct linespec) <file_symtabs>: Change type to std::vector *.
2149 Update all uses.
2150 (struct collect_info) <file_symtabs>: Likewise.
2151 (collect_symtabs_from_filename): Return symtab_vector_up.
2152 Update all callers.
2153 (decode_objc): Remove cleanup.
2154 (symtab_collector::symtab_collector): Initialize `m_symtabs'.
2155 (symtab_collector::release_symtabs): Return symtab_vector_up.
2156 Update all callers.
2157 (class symtab_collector) <m_symtabs>: Change type to symtab_vector_up.
2158 Update all users.
2159 (collect_symtabs_from_filename, symtabs_from_filename): Return
2160 symtab_vector_up. Update all callers.
2161
f6c4e3e8
TT
21622018-08-29 Tom Tromey <tom@tromey.com>
2163
2164 * csky-tdep.c (csky_analyze_prologue): Use
2165 core_addr_to_string_nz.
2166
73c13fe6
TT
21672018-08-29 Tom Tromey <tom@tromey.com>
2168
2169 * windows-nat.c (struct xlate_exception) <them>: Change type to
2170 DWORD.
2171 (xlate): Fix formatting. Remove last entry.
2172 (struct xlate_exception, xlate): Comment out.
2173 (windows_nat_target::resume): Use ranged for.
2174
4d3928d7
JW
21752018-08-29 Jim Wilson <jimw@sifive.com>
2176
2177 * riscv-linux-nat.c: Include elf/common.h instead of elf.h.
2178 (riscv_linux_nat_target::fetch_registers): Use NT_FPREGSET instead
2179 of NT_PRFPREG.
2180 (riscv_linux_nat_target::store_registers): Likewise.
2181
7a6dbc2f
SDJ
21822018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
2183
2184 PR gdb/23555
2185 PR gdb/23558
2186 * gnulib/aclocal.m4: Regenerate.
2187 * gnulib/config.in: Regenerate.
2188 * gnulib/configure: Regenerate.
2189 * gnulib/import/Makefile.am: Update.
2190 * gnulib/import/Makefile.in: Update.
2191 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
2192 * gnulib/import/_Noreturn.h: ... this.
2193 * gnulib/import/alloca.in.h: Update.
2194 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
2195 * gnulib/import/arg-nonnull.h: ... this.
2196 * gnulib/import/assure.h: Update.
2197 * gnulib/import/at-func.c: Update.
2198 * gnulib/import/basename-lgpl.c: Update.
2199 * gnulib/import/extra/snippet/c++defs.h: Rename to...
2200 * gnulib/import/c++defs.h: ... this.
2201 * gnulib/import/canonicalize-lgpl.c: Update.
2202 * gnulib/import/cdefs.h: Update.
2203 * gnulib/import/chdir-long.c: Update.
2204 * gnulib/import/chdir-long.h: Update.
2205 * gnulib/import/cloexec.c: Update.
2206 * gnulib/import/cloexec.h: Update.
2207 * gnulib/import/close.c: Update.
2208 * gnulib/import/closedir.c: Update.
2209 * gnulib/import/config.charset: Update.
2210 * gnulib/import/dirent-private.h: Update.
2211 * gnulib/import/dirent.in.h: Update.
2212 * gnulib/import/dirfd.c: Update.
2213 * gnulib/import/dirname-lgpl.c: Update.
2214 * gnulib/import/dirname.h: Update.
2215 * gnulib/import/dosname.h: Update.
2216 * gnulib/import/dup-safer-flag.c: Update.
2217 * gnulib/import/dup-safer.c: Update.
2218 * gnulib/import/dup.c: Update.
2219 * gnulib/import/dup2.c: Update.
2220 * gnulib/import/errno.in.h: Update.
2221 * gnulib/import/error.c: Update.
2222 * gnulib/import/error.h: Update.
2223 * gnulib/import/exitfail.c: Update.
2224 * gnulib/import/exitfail.h: Update.
2225 * gnulib/import/extra/update-copyright: Update.
2226 * gnulib/import/fchdir.c: Update.
2227 * gnulib/import/fcntl.c: Update.
2228 * gnulib/import/fcntl.in.h: Update.
2229 * gnulib/import/fd-hook.c: Update.
2230 * gnulib/import/fd-hook.h: Update.
2231 * gnulib/import/fd-safer-flag.c: Update.
2232 * gnulib/import/fd-safer.c: Update.
2233 * gnulib/import/fdopendir.c: Update.
2234 * gnulib/import/filename.h: Update.
2235 * gnulib/import/filenamecat-lgpl.c: Update.
2236 * gnulib/import/filenamecat.h: Update.
2237 * gnulib/import/flexmember.h: Update.
2238 * gnulib/import/float+.h: Update.
2239 * gnulib/import/float.c: Update.
2240 * gnulib/import/float.in.h: Update.
2241 * gnulib/import/fnmatch.c: Update.
2242 * gnulib/import/fnmatch.in.h: Update.
2243 * gnulib/import/fnmatch_loop.c: Update.
2244 * gnulib/import/fpucw.h: Update.
2245 * gnulib/import/frexp.c: Update.
2246 * gnulib/import/frexpl.c: Update.
2247 * gnulib/import/fstat.c: Update.
2248 * gnulib/import/fstatat.c: Update.
2249 * gnulib/import/getcwd-lgpl.c: Update.
2250 * gnulib/import/getcwd.c: Update.
2251 * gnulib/import/getdtablesize.c: Update.
2252 * gnulib/import/getlogin_r.c: Update.
2253 * gnulib/import/getprogname.c: Update.
2254 * gnulib/import/getprogname.h: Update.
2255 * gnulib/import/gettext.h: Update.
2256 * gnulib/import/gettimeofday.c: Update.
2257 * gnulib/import/glob-libc.h: Update.
2258 * gnulib/import/glob.c: Update.
2259 * gnulib/import/glob.in.h: Update.
2260 * gnulib/import/glob_internal.h: Update.
2261 * gnulib/import/glob_pattern_p.c: Update.
2262 * gnulib/import/globfree.c: Update.
2263 * gnulib/import/hard-locale.c: Update.
2264 * gnulib/import/hard-locale.h: Update.
2265 * gnulib/import/intprops.h: Update.
2266 * gnulib/import/inttypes.in.h: Update.
2267 * gnulib/import/isnan.c: Update.
2268 * gnulib/import/isnand-nolibm.h: Update.
2269 * gnulib/import/isnand.c: Update.
2270 * gnulib/import/isnanl-nolibm.h: Update.
2271 * gnulib/import/isnanl.c: Update.
2272 * gnulib/import/itold.c: Update.
2273 * gnulib/import/libc-config.h: Update.
2274 * gnulib/import/limits.in.h: Update.
2275 * gnulib/import/localcharset.c: Update.
2276 * gnulib/import/localcharset.h: Update.
2277 * gnulib/import/localtime-buffer.c: Update.
2278 * gnulib/import/localtime-buffer.h: Update.
2279 * gnulib/import/lstat.c: Update.
2280 * gnulib/import/m4/00gnulib.m4: Update.
2281 * gnulib/import/m4/__inline.m4: Update.
2282 * gnulib/import/m4/absolute-header.m4: Update.
2283 * gnulib/import/m4/alloca.m4: Update.
2284 * gnulib/import/m4/builtin-expect.m4: Update.
2285 * gnulib/import/m4/canonicalize.m4: Update.
2286 * gnulib/import/m4/chdir-long.m4: Update.
2287 * gnulib/import/m4/close.m4: Update.
2288 * gnulib/import/m4/closedir.m4: Update.
2289 * gnulib/import/m4/configmake.m4: Update.
2290 * gnulib/import/m4/d-ino.m4: Update.
2291 * gnulib/import/m4/d-type.m4: Update.
2292 * gnulib/import/m4/dirent_h.m4: Update.
2293 * gnulib/import/m4/dirfd.m4: Update.
2294 * gnulib/import/m4/dirname.m4: Update.
2295 * gnulib/import/m4/double-slash-root.m4: Update.
2296 * gnulib/import/m4/dup.m4: Update.
2297 * gnulib/import/m4/dup2.m4: Update.
2298 * gnulib/import/m4/eealloc.m4: Update.
2299 * gnulib/import/m4/environ.m4: Update.
2300 * gnulib/import/m4/errno_h.m4: Update.
2301 * gnulib/import/m4/error.m4: Update.
2302 * gnulib/import/m4/exponentd.m4: Update.
2303 * gnulib/import/m4/exponentl.m4: Update.
2304 * gnulib/import/m4/extensions.m4: Update.
2305 * gnulib/import/m4/extern-inline.m4: Update.
2306 * gnulib/import/m4/fchdir.m4: Update.
2307 * gnulib/import/m4/fcntl-o.m4: Update.
2308 * gnulib/import/m4/fcntl.m4: Update.
2309 * gnulib/import/m4/fcntl_h.m4: Update.
2310 * gnulib/import/m4/fdopendir.m4: Update.
2311 * gnulib/import/m4/filenamecat.m4: Update.
2312 * gnulib/import/m4/flexmember.m4: Update.
2313 * gnulib/import/m4/float_h.m4: Update.
2314 * gnulib/import/m4/fnmatch.m4: Update.
2315 * gnulib/import/m4/fnmatch_h.m4: Update.
2316 * gnulib/import/m4/fpieee.m4: Update.
2317 * gnulib/import/m4/frexp.m4: Update.
2318 * gnulib/import/m4/frexpl.m4: Update.
2319 * gnulib/import/m4/fstat.m4: Update.
2320 * gnulib/import/m4/fstatat.m4: Update.
2321 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
2322 * gnulib/import/m4/getcwd-path-max.m4: Update.
2323 * gnulib/import/m4/getcwd.m4: Update.
2324 * gnulib/import/m4/getdtablesize.m4: Update.
2325 * gnulib/import/m4/getlogin.m4: Update.
2326 * gnulib/import/m4/getlogin_r.m4: Update.
2327 * gnulib/import/m4/getpagesize.m4: Update.
2328 * gnulib/import/m4/getprogname.m4: Update.
2329 * gnulib/import/m4/gettimeofday.m4: Update.
2330 * gnulib/import/m4/glibc21.m4: Update.
2331 * gnulib/import/m4/glob.m4: Update.
2332 * gnulib/import/m4/glob_h.m4: Update.
2333 * gnulib/import/m4/gnulib-cache.m4: Update.
2334 * gnulib/import/m4/gnulib-common.m4: Update.
2335 * gnulib/import/m4/gnulib-comp.m4: Update.
2336 * gnulib/import/m4/gnulib-tool.m4: Update.
2337 * gnulib/import/m4/hard-locale.m4: Update.
2338 * gnulib/import/m4/include_next.m4: Update.
2339 * gnulib/import/m4/inttypes-pri.m4: Update.
2340 * gnulib/import/m4/inttypes.m4: Update.
2341 * gnulib/import/m4/isnand.m4: Update.
2342 * gnulib/import/m4/isnanl.m4: Update.
2343 * gnulib/import/m4/largefile.m4: Update.
2344 * gnulib/import/m4/limits-h.m4: Update.
2345 * gnulib/import/m4/localcharset.m4: Update.
2346 * gnulib/import/m4/locale-fr.m4: Update.
2347 * gnulib/import/m4/locale-ja.m4: Update.
2348 * gnulib/import/m4/locale-zh.m4: Update.
2349 * gnulib/import/m4/localtime-buffer.m4: Update.
2350 * gnulib/import/m4/longlong.m4: Update.
2351 * gnulib/import/m4/lstat.m4: Update.
2352 * gnulib/import/m4/malloc.m4: Update.
2353 * gnulib/import/m4/malloca.m4: Update.
2354 * gnulib/import/m4/math_h.m4: Update.
2355 * gnulib/import/m4/mbrtowc.m4: Update.
2356 * gnulib/import/m4/mbsinit.m4: Update.
2357 * gnulib/import/m4/mbsrtowcs.m4: Update.
2358 * gnulib/import/m4/mbstate_t.m4: Update.
2359 * gnulib/import/m4/memchr.m4: Update.
2360 * gnulib/import/m4/memmem.m4: Update.
2361 * gnulib/import/m4/mempcpy.m4: Update.
2362 * gnulib/import/m4/memrchr.m4: Update.
2363 * gnulib/import/m4/mkdir.m4: Update.
2364 * gnulib/import/m4/mkstemp.m4: Update.
2365 * gnulib/import/m4/mmap-anon.m4: Update.
2366 * gnulib/import/m4/mode_t.m4: Update.
2367 * gnulib/import/m4/msvc-inval.m4: Update.
2368 * gnulib/import/m4/msvc-nothrow.m4: Update.
2369 * gnulib/import/m4/multiarch.m4: Update.
2370 * gnulib/import/m4/nocrash.m4: Update.
2371 * gnulib/import/m4/off_t.m4: Update.
2372 * gnulib/import/m4/onceonly.m4: Update.
2373 * gnulib/import/m4/open-cloexec.m4: Update.
2374 * gnulib/import/m4/open.m4: Update.
2375 * gnulib/import/m4/openat.m4: Update.
2376 * gnulib/import/m4/opendir.m4: Update.
2377 * gnulib/import/m4/pathmax.m4: Update.
2378 * gnulib/import/m4/rawmemchr.m4: Update.
2379 * gnulib/import/m4/readdir.m4: Update.
2380 * gnulib/import/m4/readlink.m4: Update.
2381 * gnulib/import/m4/realloc.m4: Update.
2382 * gnulib/import/m4/rename.m4: Update.
2383 * gnulib/import/m4/rewinddir.m4: Update.
2384 * gnulib/import/m4/rmdir.m4: Update.
2385 * gnulib/import/m4/save-cwd.m4: Update.
2386 * gnulib/import/m4/secure_getenv.m4: Update.
2387 * gnulib/import/m4/setenv.m4: Update.
2388 * gnulib/import/m4/signal_h.m4: Update.
2389 * gnulib/import/m4/ssize_t.m4: Update.
2390 * gnulib/import/m4/stat-time.m4: Update.
2391 * gnulib/import/m4/stat.m4: Update.
2392 * gnulib/import/m4/std-gnu11.m4: Update.
2393 * gnulib/import/m4/stdbool.m4: Update.
2394 * gnulib/import/m4/stddef_h.m4: Update.
2395 * gnulib/import/m4/stdint.m4: Update.
2396 * gnulib/import/m4/stdio_h.m4: Update.
2397 * gnulib/import/m4/stdlib_h.m4: Update.
2398 * gnulib/import/m4/strchrnul.m4: Update.
2399 * gnulib/import/m4/strdup.m4: Update.
2400 * gnulib/import/m4/strerror.m4: Update.
2401 * gnulib/import/m4/string_h.m4: Update.
2402 * gnulib/import/m4/strstr.m4: Update.
2403 * gnulib/import/m4/strtok_r.m4: Update.
2404 * gnulib/import/m4/sys_socket_h.m4: Update.
2405 * gnulib/import/m4/sys_stat_h.m4: Update.
2406 * gnulib/import/m4/sys_time_h.m4: Update.
2407 * gnulib/import/m4/sys_types_h.m4: Update.
2408 * gnulib/import/m4/tempname.m4: Update.
2409 * gnulib/import/m4/time_h.m4: Update.
2410 * gnulib/import/m4/unistd-safer.m4: Update.
2411 * gnulib/import/m4/unistd_h.m4: Update.
2412 * gnulib/import/m4/warn-on-use.m4: Update.
2413 * gnulib/import/m4/wchar_h.m4: Update.
2414 * gnulib/import/m4/wchar_t.m4: Update.
2415 * gnulib/import/m4/wctype_h.m4: Update.
2416 * gnulib/import/m4/wint_t.m4: Update.
2417 * gnulib/import/malloc.c: Update.
2418 * gnulib/import/malloc/scratch_buffer.h: Update.
2419 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
2420 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
2421 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
2422 * gnulib/import/malloca.c: Update.
2423 * gnulib/import/malloca.h: Update.
2424 * gnulib/import/malloca.valgrind: Update.
2425 * gnulib/import/math.in.h: Update.
2426 * gnulib/import/mbrtowc.c: Update.
2427 * gnulib/import/mbsinit.c: Update.
2428 * gnulib/import/mbsrtowcs-impl.h: Update.
2429 * gnulib/import/mbsrtowcs-state.c: Update.
2430 * gnulib/import/mbsrtowcs.c: Update.
2431 * gnulib/import/memchr.c: Update.
2432 * gnulib/import/memmem.c: Update.
2433 * gnulib/import/mempcpy.c: Update.
2434 * gnulib/import/memrchr.c: Update.
2435 * gnulib/import/mkdir.c: Update.
2436 * gnulib/import/mkstemp.c: Update.
2437 * gnulib/import/msvc-inval.c: Update.
2438 * gnulib/import/msvc-inval.h: Update.
2439 * gnulib/import/msvc-nothrow.c: Update.
2440 * gnulib/import/msvc-nothrow.h: Update.
2441 * gnulib/import/open.c: Update.
2442 * gnulib/import/openat-die.c: Update.
2443 * gnulib/import/openat-priv.h: Update.
2444 * gnulib/import/openat-proc.c: Update.
2445 * gnulib/import/openat.c: Update.
2446 * gnulib/import/openat.h: Update.
2447 * gnulib/import/opendir.c: Update.
2448 * gnulib/import/pathmax.h: Update.
2449 * gnulib/import/pipe-safer.c: Update.
2450 * gnulib/import/rawmemchr.c: Update.
2451 * gnulib/import/readdir.c: Update.
2452 * gnulib/import/readlink.c: Update.
2453 * gnulib/import/realloc.c: Update.
2454 * gnulib/import/ref-add.sin: Update.
2455 * gnulib/import/ref-del.sin: Update.
2456 * gnulib/import/rename.c: Update.
2457 * gnulib/import/rewinddir.c: Update.
2458 * gnulib/import/rmdir.c: Update.
2459 * gnulib/import/same-inode.h: Update.
2460 * gnulib/import/save-cwd.c: Update.
2461 * gnulib/import/save-cwd.h: Update.
2462 * gnulib/import/scratch_buffer.h: Update.
2463 * gnulib/import/secure_getenv.c: Update.
2464 * gnulib/import/setenv.c: Update.
2465 * gnulib/import/signal.in.h: Update.
2466 * gnulib/import/stat-time.c: Update.
2467 * gnulib/import/stat-time.h: Update.
2468 * gnulib/import/stat-w32.c: Update.
2469 * gnulib/import/stat-w32.h: Update.
2470 * gnulib/import/stat.c: Update.
2471 * gnulib/import/stdbool.in.h: Update.
2472 * gnulib/import/stddef.in.h: Update.
2473 * gnulib/import/stdint.in.h: Update.
2474 * gnulib/import/stdio.in.h: Update.
2475 * gnulib/import/stdlib.in.h: Update.
2476 * gnulib/import/str-two-way.h: Update.
2477 * gnulib/import/strchrnul.c: Update.
2478 * gnulib/import/strdup.c: Update.
2479 * gnulib/import/streq.h: Update.
2480 * gnulib/import/strerror-override.c: Update.
2481 * gnulib/import/strerror-override.h: Update.
2482 * gnulib/import/strerror.c: Update.
2483 * gnulib/import/string.in.h: Update.
2484 * gnulib/import/stripslash.c: Update.
2485 * gnulib/import/strnlen1.c: Update.
2486 * gnulib/import/strnlen1.h: Update.
2487 * gnulib/import/strstr.c: Update.
2488 * gnulib/import/strtok_r.c: Update.
2489 * gnulib/import/sys_stat.in.h: Update.
2490 * gnulib/import/sys_time.in.h: Update.
2491 * gnulib/import/sys_types.in.h: Update.
2492 * gnulib/import/tempname.c: Update.
2493 * gnulib/import/tempname.h: Update.
2494 * gnulib/import/time.in.h: Update.
2495 * gnulib/import/unistd--.h: Update.
2496 * gnulib/import/unistd-safer.h: Update.
2497 * gnulib/import/unistd.in.h: Update.
2498 * gnulib/import/unsetenv.c: Update.
2499 * gnulib/import/verify.h: Update.
2500 * gnulib/import/extra/snippet/warn-on-use.h: Update.
2501 * gnulib/import/wchar.in.h: Update.
2502 * gnulib/import/wctype.in.h: Update.
2503 * gnulib/import/xalloc-oversized.h: Update.
2504 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
2505 "53e2c179f26a890fa6685af4b6c1397ee370433b".
2506
b0f492b9
GB
25072018-08-16 Gary Benson <gbenson@redhat.com>
2508
2509 PR gdb/13000:
2510 * gdb/main.c (captured_main_1): Exit with nonzero status
2511 in batch mode if the last command to be executed failed.
2512 * NEWS: Mention the above.
2513
2362e7f7
SM
25142018-08-29 Simon Marchi <simon.marchi@ericsson.com>
2515
2516 * csky-tdep.c (csky_memory_insert_breakpoint): Remove newline at
2517 end of warning message.
2518
4f4aedeb
AH
25192018-08-29 Alan Hayward <alan.hayward@arm.com>
2520
2521 PR gdb/22943:
2522 * aarch64-tdep.c (is_hfa_or_hva): Remove function.
2523 (aarch64_extract_return_value): Use
2524 aapcs_is_vfp_call_or_return_candidate.
2525 (aarch64_return_in_memory): Likewise.
2526 (aarch64_store_return_value): Likewise.
2527
0e745c60
AH
25282018-08-29 Alan Hayward <alan.hayward@arm.com>
2529
2530 * aarch64-tdep.c
2531 (aapcs_is_vfp_call_or_return_candidate): Make static
2532 (pass_in_v_or_stack): Remove function.
2533 (pass_in_v_vfp_candidate): New function.
2534 (aarch64_push_dummy_call): Check for float register candidates.
2535
ea92689a
AH
25362018-08-29 Alan Hayward <alan.hayward@arm.com>
2537
2538 * aarch64-tdep.c (HA_MAX_NUM_FLDS): New macro.
2539 (aapcs_is_vfp_call_or_return_candidate_1): New function.
2540 (aapcs_is_vfp_call_or_return_candidate): Likewise.
2541
ad202fcc
SM
25422018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
2543
2544 PR build/23399
2545 * common/agent.c (IPA_SYM_STRUCT_NAME): Define.
2546 (struct ipa_sym_addresses): Rename to...
2547 (struct ipa_sym_addresses_common): ... this.
2548 * common/agent.h (IPA_SYM): Use IPA_SYM_STRUCT_NAME.
2549
5fe3f3e4
TT
25502018-08-28 Tom Tromey <tom@tromey.com>
2551
2552 * c-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
2553 (token_fifo): Now a std::vector.
2554 (yylex, c_parse): Update.
2555 * d-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
2556 (token_fifo): Now a std::vector.
2557 (yylex, d_parse): Update.
2558 * go-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
2559 (token_fifo): Now a std::vector.
2560 (yylex, go_parse): Update.
2561
858d8004
SM
25622018-08-28 Simon Marchi <simon.marchi@ericsson.com>
2563
2564 * parser-defs.h (struct type_stack) <elements>: Change type to
2565 std::vector<union type_stack_elt>.
2566 <depth, size>: Remove.
2567 * parse.c (parse_exp_in_context_1): Adjust.
2568 (type_stack_reserve): Remove.
2569 (check_type_stack_depth): Remove.
2570 (insert_into_type_stack): Adjust to std::vector.
2571 (insert_type): Likewise.
2572 (push_type): Likewise.
2573 (push_type_int): Likewise.
2574 (insert_type_address_space): Likewise.
2575 (pop_type): Likewise.
2576 (pop_type_int): Likewise.
2577 (pop_typelist): Likewise.
2578 (pop_type_stack): Likewise.
2579 (append_type_stack): Likewise.
2580 (push_type_stack): Likewise.
2581 (get_type_stack): Likewise.
2582 (type_stack_cleanup): Likewise.
2583 (push_typelist): Likewise.
2584 (follow_types): Likewise.
2585 (_initialize_parse): Likewise.
2586
416a69af
HAQ
25872018-08-28 Hafiz Abid Qadeer <abidh@codesourcery.com>
2588
2589 * NEWS: Mention csky target.
2590
9d24df82
HAQ
25912018-08-28 Jiangshuai Li <jiangshuai_li@c-sky.com>
2592 Hafiz Abid Qadeer <abidh@codesourcery.com>
2593 Don Breazeal <donb@codesourcery.com>
2594
2595 * csky-linux-tdep.c: New file.
2596 * csky-tdep.c: Likewise.
2597 * csky-tdep.h: Likewise.
2598 * Makefile.in (ALL_TARGET_OBS): Add csky-linux-tdep.o and
2599 csky-tdep.o.
2600 (HFILES_NO_SRCDIR): Add csky-tdep.h.
2601 (ALLDEPFILES): Add csky-linux-tdep.c and csky-tdep.c
2602 * configure.tgt: Add csky support.
2603
3bf9c013
JV
26042018-08-27 Jan Vrany <jan.vrany@fit.cvut.cz>
2605
2606 * python/py-framefilter.c (py_print_frame): Print frame architecture
2607 when printing on an MI output.
2608
d3d8724a
TT
26092018-08-27 Tom Tromey <tom@tromey.com>
2610
2611 PR build/23087:
2612 * configure: Rebuild.
2613 * warning.m4 (AM_GDB_WARNINGS): Remove -Wno-narrowing.
2614
1885053b
TT
26152018-08-27 Tom Tromey <tom@tromey.com>
2616
2617 * aarch64-linux-tdep.c
2618 (aarch64_linux_iterate_over_regset_sections) <sve_regmap>: Add
2619 casts to int.
2620
8406672e
TT
26212018-08-27 Tom Tromey <tom@tromey.com>
2622
2623 * ppc64-tdep.c (insn_d, insn_ds, insn_xfx): Add casts to
2624 unsigned.
2625 (ppc64_standard_linkage1, ppc64_standard_linkage2)
2626 (ppc64_standard_linkage3, ppc64_standard_linkage4)
2627 (ppc64_standard_linkage5, ppc64_standard_linkage6)
2628 (ppc64_standard_linkage7, ppc64_standard_linkage8): Add casts to
2629 unsigned.
2630
ec40cf90
TT
26312018-08-27 Tom Tromey <tom@tromey.com>
2632
2633 * xtensa-tdep.h (XTREG_END): Add cast to unsigned.
2634 (XTENSA_GDBARCH_TDEP_INSTANTIATE): Likewise.
2635
7bc02706
TT
26362018-08-27 Tom Tromey <tom@tromey.com>
2637
2638 * tramp-frame.h (TRAMP_SENTINEL_INSN): Redefine.
2639 * tilegx-linux-tdep.c (tilegx_linux_rt_sigframe): Use
2640 ULONGEST_MAX.
2641 * tic6x-linux-tdep.c (tic6x_linux_rt_sigreturn_tramp_frame): Use
2642 ULONGEST_MAX.
2643 * sparc64-linux-tdep.c (sparc64_linux_rt_sigframe): Use
2644 ULONGEST_MAX.
2645 * sparc-linux-tdep.c (sparc32_linux_sigframe)
2646 (sparc32_linux_rt_sigframe): Use ULONGEST_MAX.
2647 * ppc-nbsd-tdep.c (ppcnbsd_sigtramp, ppcnbsd2_sigtramp): Use
2648 ULONGEST_MAX.
2649 * ppc-linux-tdep.c (ppc32_linux_sigaction_tramp_frame)
2650 (ppc64_linux_sigaction_tramp_frame)
2651 (ppc32_linux_sighandler_tramp_frame)
2652 (ppc64_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
2653 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame)
2654 (nios2_r2_linux_rt_sigreturn_tramp_frame): Use ULONGEST_MAX.
2655 * mn10300-linux-tdep.c (am33_linux_sigframe)
2656 (am33_linux_rt_sigframe): Use ULONGEST_MAX.
2657 * mips64-obsd-tdep.c (mips64obsd_sigframe): Use ULONGEST_MAX.
2658 * mips-linux-tdep.c (mips_linux_o32_sigframe)
2659 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
2660 (mips_linux_n64_rt_sigframe, micromips_linux_o32_sigframe)
2661 (micromips_linux_o32_rt_sigframe, micromips_linux_n32_rt_sigframe)
2662 (micromips_linux_n64_rt_sigframe): Use ULONGEST_MAX.
2663 * mips-fbsd-tdep.c (mips_fbsd_sigframe, mipsn32_fbsd_sigframe)
2664 (mips64_fbsd_sigframe): Use ULONGEST_MAX.
2665 * microblaze-linux-tdep.c
2666 (microblaze_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
2667 * i386-nbsd-tdep.c (i386nbsd_sigtramp_sc16, i386nbsd_sigtramp_sc2)
2668 (i386nbsd_sigtramp_si2, i386nbsd_sigtramp_si31)
2669 (i386nbsd_sigtramp_si4): Use ULONGEST_MAX.
2670 * hppa-nbsd-tdep.c (hppanbsd_sigtramp_si4): Use ULONGEST_MAX.
2671 * common/common-types.h (ULONGEST_MAX): New define.
2672 (CORE_ADDR_MAX): Fix formatting.
2673 * bfin-linux-tdep.c (bfin_linux_sigframe): Use ULONGEST_MAX.
2674 * arm-obsd-tdep.c (armobsd_sigframe): Use ULONGEST_MAX.
2675 * arm-linux-tdep.c (arm_linux_sigreturn_tramp_frame)
2676 (arm_linux_rt_sigreturn_tramp_frame)
2677 (arm_eabi_linux_sigreturn_tramp_frame)
2678 (arm_eabi_linux_rt_sigreturn_tramp_frame)
2679 (thumb2_eabi_linux_sigreturn_tramp_frame)
2680 (thumb2_eabi_linux_rt_sigreturn_tramp_frame)
2681 (arm_linux_restart_syscall_tramp_frame)
2682 (arm_kernel_linux_restart_syscall_tramp_frame): Use ULONGEST_MAX.
2683 * arm-fbsd-tdep.c (arm_fbsd_sigframe): Use ULONGEST_MAX.
2684 * aarch64-linux-tdep.c (aarch64_linux_rt_sigframe): Use
2685 ULONGEST_MAX.
2686 * aarch64-fbsd-tdep.c (aarch64_fbsd_sigframe): Use ULONGEST_MAX.
2687
70ab8ccd
TT
26882018-08-27 Tom Tromey <tom@tromey.com>
2689
2690 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Use
2691 CORE_ADDR_MAX.
2692 * mips-tdep.c (mips_deal_with_atomic_sequence)
2693 (micromips_deal_with_atomic_sequence): Use CORE_ADDR_MAX.
2694 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw)
2695 (arm_deal_with_atomic_sequence_raw): Use CORE_ADDR_MAX.
2696 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Use
2697 CORE_ADDR_MAX.
2698 * aarch64-tdep.c (aarch64_software_single_step): Use
2699 CORE_ADDR_MAX.
2700
896a7aa6
TT
27012018-08-27 Tom Tromey <tom@tromey.com>
2702
2703 * linespec.c (complete_linespec_component): Add cast to "char".
2704 * completer.c (completion_tracker::build_completion_result): Add
2705 cast to "char".
2706
dd33d41d
SM
27072018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
2708
2709 * solist.h (struct solist, struct target_so_ops): Fix
2710 indentation.
2711
c645cda4
SM
27122018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
2713
2714 * ada-tasks.c (ada_task_info_s): Remove typedef.
2715 (DEF_VEC_O(ada_task_info_s)): Remove.
2716 (struct ada_tasks_inferior_data): Initialize fields.
2717 <task_list>: Make an std::vector.
2718 (get_ada_tasks_inferior_data): Allocate with new.
2719 (ada_get_task_number): Adjust.
2720 (get_task_number_from_id): Likewise.
2721 (valid_task_id): Likewise.
2722 (ada_get_task_info_from_ptid): Likewise.
2723 (iterate_over_live_ada_tasks): Likewise.
2724 (add_ada_task): Likewise.
2725 (read_known_tasks): Likewise.
2726 (ada_build_task_list): Likewise.
2727 (print_ada_task_info): Likewise.
2728 (info_task): Likewise.
2729 (task_command_1): Likewise.
2730
39e7af3e
SM
27312018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
2732
2733 * ada-lang.c (add_angle_brackets): Return std::string.
2734
bbbbbcee
SM
27352018-08-25 Simon Marchi <simon.marchi@polymtl.ca>
2736
2737 * python/py-threadevent.c (py_get_event_thread): Initialize
2738 pythread.
2739
d98fc15b
PA
27402018-08-24 Pedro Alves <palves@redhat.com>
2741
2742 * python/py-bpevent.c (create_breakpoint_event_object): Use
2743 copy-initialization.
2744 * python/py-continueevent.c (emit_continue_event): Use
2745 copy-initialization.
2746 * python/py-exitedevent.c (create_exited_event_object): Return a
2747 gdbpy_ref<>.
2748 (emit_exited_event): Use copy-initialization.
2749 * python/py-inferior.c (python_new_inferior)
2750 (python_inferior_deleted, add_thread_object): Use
2751 copy-initialization.
2752 * python/py-infevents.c (create_inferior_call_event_object)
2753 (create_register_changed_event_object)
2754 (create_memory_changed_event_object): Return a gdbpy_ref<>.
2755 (emit_inferior_call_event, emit_memory_changed_event)
2756 (emit_register_changed_event): Use copy-initialization.
2757 * python/py-newobjfileevent.c (create_new_objfile_event_object):
2758 Return a gdbpy_ref<>.
2759 (emit_new_objfile_event): Use copy-initialization.
2760 (create_clear_objfiles_event_object): Return a gdbpy_ref<>.
2761 (emit_clear_objfiles_event): Use copy-initialization.
2762 * python/py-signalevent.c (create_signal_event_object): Use
2763 copy-initialization.
2764 * python/py-threadevent.c (create_thread_event_object): Use
2765 copy-initialization.
2766
da3c8738
PA
27672018-08-24 Pedro Alves <palves@redhat.com>
2768 Simon Marchi <simon.marchi@ericsson.com>
2769
2770 PR gdb/23379
2771 * python/py-continueevent.c: Include "gdbthread.h".
2772 (create_continue_event_object): Add intro comment. Add 'ptid'
2773 parameter. Use it to find thread to pass to
2774 create_thread_event_object.
2775 (emit_continue_event): Pass PTID down to
2776 create_continue_event_object.
2777 * python/py-event.h (py_get_event_thread): Declare.
2778 (create_thread_event_object): Remove default from 'thread'
2779 parameter.
2780 * python/py-stopevent.c (create_stop_event_object): Use
2781 py_get_event_thread.
2782 * python/py-threadevent.c (get_event_thread): Rename to ...
2783 (py_get_event_thread): ... this, make extern, add 'ptid' parameter
2784 and use it to find the thread.
2785 (create_thread_event_object): Assert that THREAD isn't null.
2786 Don't find the event thread here.
2787
26457a9c
KB
27882018-08-23 Kevin Buettner <kevinb@redhat.com>
2789
2790 * block.h (blockrange, blockranges): New struct declarations.
2791 (struct block): Add new field named `ranges'.
2792 (BLOCK_RANGES, BLOCK_NRANGES, BLOCK_RANGE, BLOCK_CONTIGUOUS_P)
2793 (BLOCK_RANGE_START, BLOCK_RANGE_END, BLOCK_ENTRY_PC): New
2794 macros for accessing ranges in struct block.
2795 (make_blockranges): New declaration.
2796 block.c (make_blockranges): New function.
2d5f09ec
KB
2797 * dwarf2read.c (dwarf2_record_block_ranges): Fill in BLOCK_RANGES
2798 for block.
fc811edd
KB
2799 * symtab.h (find_pc_partial_function): Add new parameter `block'.
2800 * blockframe.c (cache_pc_function_block): New static global.
2801 (clear_pc_function_cache): Clear cache_pc_function_block.
2802 (find_pc_partial_function): Move comment to symtab.h. Add
2803 support for non-contiguous blocks.
e9480230
KB
2804 * cli/cli-cmds.c (block.h): Include.
2805 (print_disassembly): Handle printing of non-contiguous blocks.
2806 (disassemble_current_function): Likewise.
2807 (disassemble_command): Likewise.
26457a9c 2808
2b1ffcfd
KB
2809 * ax-gdb.c (gen_var_ref): Use BLOCK_ENTRY_PC in place of
2810 BLOCK_START.
2811 * blockframe.c (get_pc_function_start): Likewise.
2812 * compile/compile-c-symbols.c (convert_one_symbol): Likewise.
2813 (gcc_symbol_address): Likewise.
2814 * compile/compile-object-run.c (compile_object_run): Likewise.
2815 * compile/compile.c (get_expr_block_and_pc): Likewise.
2816 * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
2817 (func_addr_to_tail_call_list): Likewise.
2818 * findvar.c (default_read_var_value): Likewise.
2819 * inline-frame.c (inline_frame_this_id): Likewise.
2820 (skip-inline_frames): Likewise.
2821 * infcmd.c (until_next_command): Likewise.
2822 * linespec.c (convert_linespec_to_sals): Likewise.
2823 * parse.c (parse_exp_in_context_1): Likewise.
2824 * printcmd.c (build_address_symbolic): likewise.
2825 (info_address_command): Likewise.
2826 symtab.c (find_function_start_sal): Likewise.
2827 (skip_prologue_sal): Likewise.
2828 (find_function_alias_target): Likewise.
2829 (find_gnu_ifunc): Likewise.
2830 * stack.c (find_frame_funname): Likewise.
2831 * symtab.c (fixup_symbol_section): Likewise.
2832 (find_function_start_sal): Likewise.
2833 (skip_prologue_sal): Likewsie.
2834 (find_function_alias_target): Likewise.
2835 (find_gnu_ifunc): Likewise.
2836 * tracepoint.c (info_scope_command): Likewise.
2837 * value.c (value_fn_field): Likewise.
2838
9644dc3a
KB
2839 * infrun.c (fill_in_stop_func): Use find_function_entry_range_from_pc
2840 in place of find_pc_partial_function.
2841 * blockframe.c (find_function_entry_range_from_pc): New function.
2842 * symtab.h (find_function_entry_range_from_pc): Declare and document.
2843 * objfiles.c (objfile_relocate1): Relocate start and end addresses
2844 for each range in a block.
2845
2846
12a0d0f6
XR
28472018-08-23 Xavier Roirand <roirand@adacore.com>
2848
2849 * machoread.c (macho_symfile_read_all_oso): Remove uneeded
2850 incrementation.
2851
d1012b8e
SM
28522018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2853
2854 * solib-svr4.c (read_program_headers_from_bfd): Return
2855 gdb::optional<gdb::byte_vector>.
2856 (svr4_exec_displacement): Adjust.
2857
17658d46
SM
28582018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2859
2860 * solib-svr4.c (read_program_header): Return
2861 gdb::optional<gdb::byte_vector>, remove p_sect_size param.
2862 (find_program_interpreter): Return
2863 gdb::optional<gdb::byte_vector>.
2864 (scan_dyntag_auxv): Adjust.
2865 (enable_break): Adjust.
2866 (svr4_exec_displacement): Adjust.
2867
ae739fe7
SM
28682018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2869
2870 * inf-child.h (inf_child_target) <terminal_save_inferior>: New.
2871 * inf-child.c (inf_child_target::terminal_save_inferior): New.
2872
467dc1e2
SM
28732018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2874
2875 * guile/scm-string.c (gdbscm_scm_from_printf): Use
2876 string_vprintf.
2877 * guile/scm-utils.c (gdbscm_printf): Likewise.
2878 * serial.c (serial_printf): Likewise.
2879 * xml-support.c (gdb_xml_parser::vdebug): Likewise.
2880
6d52907e
JV
28812018-08-22 Jan Vrany <jan.vrany@fit.cvut.cz>
2882
2883 * stack.c (print_frame): Print frame architecture when printing on
2884 an MI output.
2885 * NEWS: Mention new "arch" attribute in frame output.
2886
9758a8f8
AH
28872018-08-21 Alan Hayward <alan.hayward@arm.com>
2888
2889 * arch/aarch64.h (aarch64_regnum): Update comment.
2890
1461bdac
AH
28912018-08-21 Alan Hayward <alan.hayward@arm.com>
2892
2893 * NEWS: Add SVE to 8.2 section.
2894
4895f384
PA
28952018-08-21 Pedro Alves <palves@redhat.com>
2896
2897 * guile/scm-utils.c (gdbscm_parse_function_args_1): New, factored
2898 out from gdbscm_parse_function_args.
2899 (gdbscm_parse_function_args): Rework to use gdbscm_wrap and
2900 gdbscm_parse_function_args_1.
2901
a4497d2f
SM
29022018-08-21 Simon Marchi <simon.marchi@ericsson.com>
2903
2904 PR gdb/17816
2905 * m32c-tdep.c (m32c_decode_srcdest4): Remove unnecessary ternary
2906 operator.
2907
c44deb73
SM
29082018-08-19 Simon Marchi <simon.marchi@polymtl.ca>
2909
2910 * solib-svr4.c (svr4_exec_displacement): Fix formatting.
2911
be2d111a
MS
29122018-08-19 Michael Spang <spang@google.com>
2913
2914 PR gdb/11786
2915 * solib-svr4.c (svr4_exec_displacement): Ignore memsz fields
2916 for PT_TLS segments.
2917
a6b786da
KB
29182018-08-18 Kevin Buettner <kevinb@redhat.com>
2919
2920 * dwarf2expr.h (struct dwarf_expr_context): Add virtual method
2921 dwarf_variable_value.
2922 * dwarf2-frame.c (class dwarf_expr_executor):
2923 Add override for dwarf_variable_value.
2924 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Likewise.
2925 (class symbol_needs_eval_context): Likewise.
2926 (indirect_synthetic_pointer): Add forward declaration.
2927 (sect_variable_value): New function.
2928 (dwarf2_compile_expr_to_ax): Add case for DW_OP_GNU_variable_value.
2929 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Add case
2930 for DW_OP_GNU_variable_value.
2931
89fbedf3
TT
29322018-08-16 Tom Tromey <tom@tromey.com>
2933
2934 * top.c (read_command_file): Update.
2935 (command_line_input): Remove "repeat" argument.
2936 * ada-lang.c (get_selections): Update.
2937 * linespec.c (decode_line_2): Update.
2938 * defs.h (command_line_input): Remove argument.
2939 * cli/cli-script.c (read_next_line): Update.
2940 * python/py-gdb-readline.c: Update.
2941
12582533
TT
29422018-08-17 Tom Tromey <tom@tromey.com>
2943
2944 * cli/cli-script.c (read_next_line): Pass 0 as repeat argument to
2945 command_line_input.
2946
49514353
TT
29472018-08-15 Tom Tromey <tom@tromey.com>
2948
2949 * aarch64-linux-tdep.c (aarch64_linux_core_read_vq): Use pulongest.
2950
26fb3983
JV
29512018-08-14 Jan Vrany <jan.vrany@fit.cvut.cz>
2952
2953 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Add -a option.
2954 If used, use find_pc_partial_function to find address range
2955 to disassemble.
2956 * mi/mi-main.c (mi_cmd_list_features): Report
2957 "data-disassemble-a-option" feature.
2958 * NEWS: Mention new -data-disassemble option -a.
2959
a97b53dd
TT
29602018-08-13 Tom Tromey <tom@tromey.com>
2961
2962 * common/common-defs.h (_FORTIFY_SOURCE): Define.
2963
0c76e06d
AH
29642018-08-13 Alan Hayward <alan.hayward@arm.com>
2965
2966 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): New function.
2967 (aarch64_linux_collect_sve_regset): Likewise.
2968 (aarch64_linux_iterate_over_regset_sections): Check for SVE.
2969 * regcache.h (regcache_map_entry_size): New function.
2970
b7fd65b9
AH
29712018-08-13 Alan Hayward <alan.hayward@arm.com>
2972
2973 * aarch64-linux-tdep.c (SVE_HEADER_SIZE_LENGTH): Add define.
2974 (SVE_HEADER_MAX_SIZE_LENGTH): Likewise.
2975 (SVE_HEADER_VL_LENGTH): Likewise.
2976 (SVE_HEADER_MAX_VL_LENGTH): Likewise.
2977 (SVE_HEADER_FLAGS_LENGTH): Likewise.
2978 (SVE_HEADER_RESERVED_LENGTH): Likewise.
2979 (SVE_HEADER_SIZE_OFFSET): Likewise.
2980 (SVE_HEADER_MAX_SIZE_OFFSET): Likewise.
2981 (SVE_HEADER_VL_OFFSET): Likewise.
2982 (SVE_HEADER_MAX_VL_OFFSET): Likewise.
2983 (SVE_HEADER_FLAGS_OFFSET): Likewise.
2984 (SVE_HEADER_RESERVED_OFFSET): Likewise.
2985 (SVE_HEADER_SIZE): Likewise.
2986 (aarch64_linux_core_read_vq): Add function.
2987 (aarch64_linux_core_read_description): Check for SVE section.
2988
a616bb94
AH
29892018-08-13 Alan Hayward <alan.hayward@arm.com>
2990
2991 * aarch64-fbsd-tdep.c
2992 (aarch64_fbsd_iterate_over_regset_sections): Add supply_size and
2993 collect_size.
2994 * aarch64-linux-tdep.c
2995 (aarch64_linux_iterate_over_regset_sections): Likewise.
2996 * alpha-linux-tdep.c
2997 (alpha_linux_iterate_over_regset_sections):
2998 * alpha-nbsd-tdep.c
2999 (alphanbsd_iterate_over_regset_sections): Likewise.
3000 * amd64-fbsd-tdep.c
3001 (amd64fbsd_iterate_over_regset_sections): Likewise.
3002 * amd64-linux-tdep.c
3003 (amd64_linux_iterate_over_regset_sections): Likewise.
3004 * arm-bsd-tdep.c
3005 (armbsd_iterate_over_regset_sections): Likewise.
3006 * arm-fbsd-tdep.c
3007 (arm_fbsd_iterate_over_regset_sections): Likewise.
3008 * arm-linux-tdep.c
3009 (arm_linux_iterate_over_regset_sections): Likewise.
3010 * corelow.c (get_core_registers_cb): Likewise.
3011 (core_target::fetch_registers): Likewise.
3012 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
3013 * frv-linux-tdep.c (frv_linux_iterate_over_regset_sections): Likewise.
3014 * gdbarch.h (void): Regenerate.
3015 * gdbarch.sh: Add supply_size and collect_size.
3016 * hppa-linux-tdep.c (hppa_linux_iterate_over_regset_sections): Likewise.
3017 * hppa-nbsd-tdep.c (hppanbsd_iterate_over_regset_sections): Likewise.
3018 * hppa-obsd-tdep.c (hppaobsd_iterate_over_regset_sections): Likewise.
3019 * i386-fbsd-tdep.c (i386fbsd_iterate_over_regset_sections): Likewise.
3020 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections): Likewise.
3021 * i386-tdep.c (i386_iterate_over_regset_sections): Likewise.
3022 * ia64-linux-tdep.c (ia64_linux_iterate_over_regset_sections): Likewise.
3023 * linux-tdep.c (linux_collect_regset_section_cb): Likewise.
3024 * m32r-linux-tdep.c (m32r_linux_iterate_over_regset_sections): Likewise.
3025 * m68k-bsd-tdep.c (m68kbsd_iterate_over_regset_sections): Likewise.
3026 * m68k-linux-tdep.c (m68k_linux_iterate_over_regset_sections): Likewise.
3027 * mips-fbsd-tdep.c (mips_fbsd_iterate_over_regset_sections): Likewise.
3028 * mips-linux-tdep.c (mips_linux_iterate_over_regset_sections): Likewise.
3029 * mips-nbsd-tdep.c (mipsnbsd_iterate_over_regset_sections): Likewise.
3030 * mips64-obsd-tdep.c (mips64obsd_iterate_over_regset_sections): Likewise.
3031 * mn10300-linux-tdep.c (am33_iterate_over_regset_sections): Likewise.
3032 * nios2-linux-tdep.c (nios2_iterate_over_regset_sections): Likewise.
3033 * ppc-fbsd-tdep.c (ppcfbsd_iterate_over_regset_sections): Likewise.
3034 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections): Likewise.
3035 * ppc-nbsd-tdep.c (ppcnbsd_iterate_over_regset_sections): Likewise.
3036 * ppc-obsd-tdep.c (ppcobsd_iterate_over_regset_sections): Likewise.
3037 * riscv-linux-tdep.c (riscv_linux_iterate_over_regset_sections): Likewise.
3038 * rs6000-aix-tdep.c (rs6000_aix_iterate_over_regset_sections): Likewise.
3039 * s390-linux-tdep.c (s390_iterate_over_regset_sections): Likewise.
3040 * score-tdep.c (score7_linux_iterate_over_regset_sections): Likewise.
3041 * sh-tdep.c (sh_iterate_over_regset_sections): Likewise.
3042 * sparc-tdep.c (sparc_iterate_over_regset_sections): Likewise.
3043 * tilegx-linux-tdep.c (tilegx_iterate_over_regset_sections): Likewise.
3044 * vax-tdep.c (vax_iterate_over_regset_sections): Likewise.
3045 * xtensa-tdep.c (xtensa_iterate_over_regset_sections): Likewise.
3046
a9925d4f
SM
30472018-08-10 Simon Marchi <simon.marchi@ericsson.com>
3048
3049 * nat/linux-osdata.c (commandline_from_pid): Replace xstrprintf
3050 with string_printf.
3051
ad3a68e9
KS
30522018-08-10 Keith Seitz <keiths@redhat.com>
3053
3054 * compile/compile-c-support.c (add_code_header, add_code_footer):
3055 Move into policy class.
3056 (c_push_user_expression, pop_user_expression_nop)
3057 (c_add_code_header, c_add_code_footer, c_add_input): New policy class.
3058 (compile_program): New host class.
3059 (c_compile_program): New typedef.
3060 (c_compute_porgram): Use c_compile_program.
3061
0cfbf430
KS
30622018-08-10 Keith Seitz <keiths@redhat.com>
3063
3064 * compile/compile-internal.h (compile_instance::~compile_instance):
3065 Remove calls to htab_delete.
3066 <m_type_map, m_symbol_err_map>: Switch type to htab_up.
3067 * compile.c (compile_instance::compile_instance): Initialize
3068 htab unique pointers.
3069 (compile_instance::get_cached_type, compile_instance::insert_type)
3070 (compile_instance::error_symbol_once): Update for unique_ptr.
3071
946d3d10
KS
30722018-08-10 Keith Seitz <keiths@redhat.com>
3073
3074 * compile/compile-c-symbols.c (struct symbol_error)
3075 (hash_symbol_error, eq_symbol_error, del_symbol_error)
3076 (compile_instance::insert_symbol_error)
3077 (compile_instance::error_symbol_once): Move to ...
3078 * compile/compile.c: ... here.
3079
9cdfd9a2
KS
30802018-08-10 Keith Seitz <keiths@redhat.com>
3081
3082 * compile/compile-c-support.c (c_get_compile_context): Use `new'
3083 instead of `new_compile_instance'.
3084 * compile/compile-c-symbols.c (compile_instance::insert_symbol_error):
3085 Update description.
3086 If the symbol error map is not initialized, create it.
3087 (generate_c_for_for_one_symbol): Do not check/initialize
3088 the symbol error map.
3089 * compile/compile-c-types.c (compile_c_instance): Make a class.
3090 Update all callers.
3091 (compile_instance::compile_instance): Initialize the type cache.
3092 (get_cached_type): New function.
3093 (insert_type): Update description.
3094 (compile_c_instance::m_default_cflags): Define.
3095 (convert_type): Update description. Use get_cached_type.
3096 (delete_instance): Moved to destructor.
3097 (new_compile_instance): Moved to constructor.
3098 * compile/compile-c.h (compile_c_instance): Make class inheriting
3099 from compile_instance.
3100 <base>: Remove field.
3101 <type_map, symbol_err_map>: Move to base class.
3102 <c_plugin>: Rename to `m_plugin' and remove pointer type.
3103 * compile/compile-internal.h (compile_instance): Make class.
3104 <type_map_t, symbol_err_map_t>: Define.
3105 <fe>: Rename to `m_gcc_fe'.
3106 <scope, block, gcc_target_options>: Add `m_' prefix.
3107 <m_type_map, m_symbol_err_map>: New fields, moved from
3108 compile_c_instance.
3109 <destroy>: Remove.
3110 (convert_type, new_compile_instance): Remove.
3111 * compile/compile.c (cleanup_compile_instance): Remove.
3112 (compile_to_object): Use unique_ptr to eliminate cleanups.
3113 (compile_instance::set_print_callback, compile_instance::version)
3114 (compile_instance::set_verbose)
3115 (compile_instance::set_driver_filename)
3116 (compile_instance::set_triplet_regexp)
3117 (compile_instance::set_arguments)
3118 (compile_instance::set_source_file)
3119 (compile_instance::compile): Define.
3120
18cdc6d8
KS
31212018-08-10 Keith Seitz <keiths@redhat.com>
3122
3123 * Makefile.in (HFILES_NO_SRCDIR): Add compile/gcc-c-plugin.h.
3124 * compile/compile-c-types.c: Define GCC_METHODN macros and include
3125 gcc-c-fe.def to define C plugin.
3126 (delete_instance): Delete `c_plugin'.
3127 (new_compile_instance): Initialize `c_plugin'.
3128 * compile/compile-c.h: Include gcc_c_plugin.h.
3129 (struct compile_c_instance) <c_plugin>: New member.
3130 * gcc-c-plugin.h: New file.
3131 Update all callers with API change.
3132
b7dc48b4
KS
31332018-08-10 Keith Seitz <keiths@redhat.com>
3134
3135 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Move header files ...
3136 (HFILES_NO_SRCDIR): ... to here.
3137 Add compile-internal.h and compile-c.h.
3138 * compile/compile-c-support.c: Include compile-c.h.
3139 * compile/compile-c-symbols.c: Include compile-c.h.
3140 (generate_c_for_variable_locations): Update comment.
3141 * compile/compile-c-types.c: Include compile-c.h.
3142 * compile/compile-c.h: New file -- moved C language declarations
3143 from other files here.
3144 * compile/compile-internal.h: Do not include hashtab.h or
3145 common/enum-flags.h.
3146 (gcc_qualifiers_flags, struct compile_c_instance, C_CTX)
3147 (gcc_convert_symbol, gcc_symbol_address)
3148 (generate_c_for_variable_locations, c_get_mode_for_size)
3149 (c_get_range_decl_name): Definitions moved to compile-c.h.
3150 * compile/compile-loc2c.c: Include compile-c.h.
3151
6f36b6d2
KS
31522018-08-10 Keith Seitz <keiths@redhat.com>
3153
3154 * compile/compile-c-symbols.c (symbol_substitution_name): Rename to ...
3155 (c_symbol_substitution_name): ... this.
3156 Update all callers.
3157
bd923e51
KS
31582018-08-10 Keith Seitz <keiths@redhat.com>
3159
3160 * compile/compile-c-support.c (c_compute_program): Use
3161 unique_xmalloc_ptr to eliminate cleanup.
3162 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
3163 Return a unique_xmalloc_ptr and eliminate cleanup.
3164 * compile/compile-internal.h (generate_c_for_variable_locations):
3165 Return unique_xmalloc_ptr and update description.
3166
dbd534fe
AH
31672018-08-10 Alan Hayward <alan.hayward@arm.com>
3168
3169 * corelow.c (core_target::get_core_register_section): Rename
3170 min_size to section_min_size.
3171
90ad3654
JW
31722018-08-09 Jim Wilson <jimw@sifive.com>
3173
52a187f8
JW
3174 * Makefile.in (ALL_TARGET_OBS): Add riscv-linux-tdep.c.
3175 (ALLDEPFILES): Add riscv-linux-nat.c, and riscv-linux-tdep.c.
3176 * NEWS: Mention new GNU/Linux RISC-V target.
3177 * configure.host: Add riscv*-*-linux*.
3178 * configure.nat: Add riscv*.
3179 * configure.tgt: Add riscv*-*-linux*.
3c77f97e 3180 * riscv-linux-nat.c: New file.
90ad3654
JW
3181 * riscv-linux-tdep.c: New file.
3182
aff4e175
AB
31832018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
3184
3185 * infrun.c (resume): Make static, add forward declaration.
3186 (proceed): Update header comment.
3187 * infrun.h (resume): Delete declaration.
3188
06ab9219
TT
31892018-08-09 Tom Tromey <tom@tromey.com>
3190
3191 * riscv-tdep.h: Minor formatting fixes.
3192
83c8d318
SM
31932018-08-09 Simon Marchi <simon.marchi@ericsson.com>
3194
3195 * common/scoped_mmap.c (mmap_file): Silence ARI warning.
3196 * dwarf-index-cache.c (create_dir_and_check): Likewise.
3197 (test_mkdir_recursive): Likewise.
3198 * dwarf-index-write.c (write_psymtabs_to_index): Likewise.
3199
5ff2bbae
AB
32002018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
3201
3202 * valarith.c (value_subscripted_rvalue): If an array is not in
3203 memory, and we don't know the upper bound, then we can't know that
3204 the requested element exists or not.
3205
fdbac7d8
SM
32062018-08-08 Simon Marchi <simon.marchi@ericsson.com>
3207
3208 * target.c (str_comma_list_concat_elem): Fix typo in comment.
3209 (target_options_to_string): Add comment.
3210
83202f7a
TT
32112018-08-08 Tom Tromey <tom@tromey.com>
3212
3213 * unittests/scoped_mmap-selftests.c: Check result of "write".
3214
411baa47
JW
32152018-08-08 Jim Wilson <jimw@sifive.com>
3216
5c720ed8
JW
3217 * riscv-tdep.c (enum opcode): Add jump, branch, lr, and sc opcodes.
3218 (decode_register_index_short): New.
3219 (decode_j_type_insn, decode_cj_type_insn): New.
3220 (decode_b_type_insn, decode_cb_type_insn): New.
3221 (riscv_insn::decode): Add support for jumps, branches, lr, and sc. New
3222 local xlen. Check xlen when decoding ambiguous compressed insns. In
3223 compressed decode, use is_c_lui_insn instead of is_lui_insn, and
3224 is_c_sw_insn instead of is_sw_insn.
3225 (riscv_next_pc, riscv_next_pc_atomic_sequence): New.
3226 (riscv_software_single_step): New.
3227 * riscv-tdep.h (riscv_software_single_step): Declare.
3228
411baa47
JW
3229 * riscv-tdep.c (riscv_isa_xlen): Drop static.
3230 * riscv-tdep.h (riscv_isa_xlen): Add extern declaration.
3231
9d4a934c
AB
32322018-08-08 Andrew Burgess <andrew.burgess@embecosm.com>
3233
3234 PR gdb/18050:
3235 * target.c (dispose_inferior): Don't dispose of inferiors that are
3236 already killed.
3237
ff36536c
SN
32382018-08-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
3239
3240 * remote.c (remote_target::download_tracepoint): Change char* to
3241 const char*.
3242
09ce46f2
SM
32432018-08-07 Simon Marchi <simon.marchi@polymtl.ca>
3244
3245 * target.h (target_options_to_string): Return an std::string.
3246 * target.c (str_comma_list_concat_elem): Return void, use
3247 std::string.
3248 (do_option): Likewise.
3249 (target_options_to_string): Return an std::string.
3250 * linux-nat.c (linux_nat_target::wait): Adjust.
3251 * target-debug.h (target_debug_print_options): Adjust.
3252
9c612964
TT
32532018-08-07 Tom Tromey <tom@tromey.com>
3254
3255 * Makefile.in (CPPFLAGS): New variable.
3256 (INTERNAL_CPPFLAGS): Use it.
3257
7d11235d
SM
32582018-08-07 Simon Marchi <simon.marchi@ericsson.com>
3259
3260 * NEWS: Mention the index cache.
3261
87d6a7aa
SM
32622018-08-07 Simon Marchi <simon.marchi@ericsson.com>
3263
3264 * common/pathstuff.h (get_standard_cache_dir): New.
3265 * common/pathstuff.c (get_standard_cache_dir): New.
3266 * build-id.h (build_id_to_string): New.
3267 * dwarf-index-common.h (INDEX4_SUFFIX, INDEX5_SUFFIX,
3268 DEBUG_STR_SUFFIX): Move to here.
3269 * dwarf-index-write.c (INDEX4_SUFFIX, INDEX5_SUFFIX,
3270 DEBUG_STR_SUFFIX): Move from there.
3271 (write_psymtabs_to_index): Make non-static, add basename
3272 parameter. Write to temporary files, rename when done.
3273 (save_gdb_index_command): Adjust call to
3274 write_psymtabs_to_index.
3275 * dwarf2read.h (dwarf2_per_objfile) <index_cache_res>: New
3276 field.
3277 * dwarf2read.c (dwz_file) <index_cache_res>: New field.
3278 (get_gdb_index_contents_from_cache): New.
3279 (get_gdb_index_contents_from_cache_dwz): New.
3280 (dwarf2_initialize_objfile): Read index from cache.
3281 (dwarf2_build_psymtabs): Save to index.
3282 * dwarf-index-cache.h: New file.
3283 * dwarf-index-cache.c: New file.
3284 * dwarf-index-write.h: New file.
3285
8a99096f
SM
32862018-08-07 Simon Marchi <simon.marchi@ericsson.com>
3287
3288 * gnulib/aclocal.m4: Re-generate.
3289 * gnulib/config.in: Re-generate.
3290 * gnulib/configure: Re-generate.
3291 * gnulib/import/Makefile.am: Re-generate.
3292 * gnulib/import/Makefile.in: Re-generate.
3293 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
3294 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
3295 * gnulib/import/m4/mkdir.m4: New file.
3296 * gnulib/import/mkdir.c: New file.
3297 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkdir
3298 module.
3299
5c831bb1
SM
33002018-08-07 Simon Marchi <simon.marchi@ericsson.com>
3301
3302 * Makefile.in (COMMON_SFILES): Add common/scoped_mmap.c.
3303 * common/scoped_mmap.c: New file.
3304 * common/scoped_mmap.h (destroy): New method.
3305 (~scoped_mmap, reset): Use destroy.
3306 (scoped_mmap): New move constructor.
3307 (mmap_file): New declaration.
3308 * unittests/scoped_mmap-selftests.c (test_normal,
3309 test_invalid_filename, run_tests): New functions.
3310 (_initialize_scoped_mmap_selftests): Register selftest.
3311
4485a1c1
SM
33122018-08-07 Simon Marchi <simon.marchi@ericsson.com>
3313
3314 * dwarf2read.c (read_gdb_index_from_section): Rename to...
3315 (read_gdb_index_from_buffer): ... this. Remove section
3316 parameter, add buffer parameter.
3317 (get_gdb_index_contents_ftype,
3318 get_gdb_index_contents_dwz_ftype): New typedefs.
3319 (dwarf2_read_gdb_index): Add callback parameters to get the
3320 index contents.
3321 (get_gdb_index_contents_from_section): New.
3322 (dwarf2_initialize_objfile): Update call to
3323 dwarf2_read_gdb_index.
3324
528e1572
SM
33252018-08-07 Simon Marchi <simon.marchi@ericsson.com>
3326
3327 * common/filestuff.h (gdb_fopen_cloexec): New overload.
3328 (gdb_open_cloexec): Likewise.
3329 * nat/linux-osdata.c (command_from_pid): Use string_printf.
3330 (commandline_from_pid): Likewise.
3331 (linux_xfer_osdata_threads): Likewise.
3332 (linux_xfer_osdata_fds): Likewise.
3333 * ada-lang.c (is_package_name): Likewise.
3334 * auxv.c (procfs_xfer_auxv): Likewise.
3335 * breakpoint.c (print_one_breakpoint_location): Use
3336 uiout::field_fmt.
3337 (print_one_catch_solib): Use string_printf.
3338 * coff-pe-read.c (add_pe_exported_sym): Likewise.
3339 (add_pe_forwarded_sym): Likewise.
3340 * dwarf2read.c (create_type_unit_group): Likewise.
3341 (build_error_marker_type): Likewise.
3342 * infcall.c (get_function_name): Likewise.
3343 * valprint.c (print_converted_chars_to_obstack): Likewise.
3344 * xtensa-tdep.c (xtensa_register_type): Likewise.
3345
a7f25a84
SM
33462018-08-06 Simon Marchi <simon.marchi@ericsson.com>
3347
3348 * remote.c (remote_target::download_tracepoint): Fix format
3349 string errors.
3350
296956be
PFC
33512018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3352
3353 * tracefile.c: Include common/byte-vector.h.
3354 (trace_save): Change type of buf to gdb::byte_vector. Initialize
3355 with trace_regblock_size if needed. Update uses of buf.
3356
a04b9d62
PFC
33572018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3358
3359 * tracepoint.h (collection_list) <m_regs_mask>: Change type to
3360 std::vector<unsigned char>.
3361 * tracepoint.c (collection_list::collection_list): Remove
3362 m_regs_mask initializer from initializer list. Resize
3363 m_regs_mask using the largest remote register number.
3364 (collection_list::add_remote_register): Remove size check on
3365 m_regs_mask. Use at to access element.
3366 (collection_list::stringify): Change type of temp_buf to
3367 gdb::char_vector. Update uses of temp_buf. Resize if needed to
3368 stringify the register mask. Use pack_hex_byte for the register
3369 mask.
3370
4277c4b8
PFC
33712018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3372
3373 * tracepoint.h (class collection_list) <add_register>: Remove.
3374 <add_remote_register, add_ax_registers, add_local_register>:
3375 Declare.
3376 <add_memrange>: Add scope parameter.
3377 * tracepoint.c (encode_actions_1): Likewise.
3378 (collection_list::add_register): Rename to ...
3379 (collection_list::add_remote_register): ... this. Update
3380 comment.
3381 (collection_list::add_ax_registers, add_local_register): New
3382 methods.
3383 (collection_list::add_memrange): Add scope parameter. Call
3384 add_local_register instead of add_register.
3385 (finalize_tracepoint_aexpr): New function.
3386 (collection_list::collect_symbol): Update calls to add_memrange.
3387 Call add_local_register instead of add_register. Call
3388 add_ax_registers. Call finalize_tracepoint_aexpr.
3389 (encode_actions_1): Get remote regnos for $reg action. Call
3390 add_remote_register, add_ax_registers, and add_local_register.
3391 Update call to add_memrange. Call finalize_tracepoint_aexpr.
3392 (validate_actionline): Call finalize_tracepoint_aexpr.
3393
3df3a985
PFC
33942018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3395
3396 * remote.c (remote_target::download_tracepoint): Remove BUF_SIZE.
3397 Replace array buf with gdb::char_vector buf, of size
3398 get_remote_packet_size (). Replace references to buf and
3399 BUF_SIZE to buf.data () and buf.size (). Replace strcpy, strcat
3400 and xsnprintf with snprintf. Raise errors if the buffer is too
3401 small.
3402
aa6f3694
PFC
34032018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3404
3405 * remote.c (remote_target::download_tracepoint): Fix the has_more
3406 predicate in the QTDP action list iteration.
3407
05abfc39
PFC
34082018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3409
3410 * remote.c (remote_target::download_tracepoint): Fix indentation
3411 in for block.
3412
821a2682
RO
34132018-08-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3414
3415 * proc-api.c (_initialize_proc_api): Remove c, unused.
3416 * procfs.c (procfs_init_inferior): Remove signals, unused.
3417 (procfs_target::make_corefile_notes): Remove old_chain, fpregs,
3418 unused.
3419
95347337
AB
34202018-08-06 Sergey Korolev <s.korolev@ndmsystems.com>
3421 Andrew Burgess <andrew.burgess@embecosm.com>
3422
3423 * linux-nat.c (linux_nat_target::follow_fork): Avoid using
3424 'W_STOPCODE (0)' as this could be ambiguous.
3425
425699f5
SDJ
34262018-08-03 Sergio Durigan Junior <sergiodj@redhat.com>
3427
3428 * ser-tcp.c (net_open): Fix thinko when deciding whether to
3429 disable TCP's Nagle algorithm (use "ai_protocol" instead of
3430 "ai_socktype").
3431
3e1d3d8c
TT
34322018-08-02 Tom Tromey <tom@tromey.com>
3433
3434 PR symtab/16842.
3435 * dwarf2read.c (read_func_scope): Set symtab on template parameter
3436 symbols.
3437 (process_structure_scope): Likewise.
3438
15843549
XR
34392018-08-02 Xavier Roirand <roirand@adacore.com>
3440
3441 PR gdb/22629:
3442 * darwin-nat.c (darwin_kill_inferior): Fix handling of
3443 kill inferior.
3444
b5bddbbb
TT
34452018-08-02 Tom Tromey <tom@tromey.com>
3446
3447 * darwin-nat.c (find_inferior_task_it, darwin_find_thread)
3448 (darwin_suspend_inferior, darwin_resume_inferior)
3449 (darwin_decode_notify_message, darwin_resume_inferior_threads)
3450 (darwin_check_new_threads): Check result of get_darwin_inferior.
3451
f61cfa07
JB
34522018-07-31 Joel Brobecker <brobecker@adacore.com>
3453
3454 GDB 8.1.1 released.
3455
5abe0f0c
JV
34562018-07-31 Jan Vrany <jan.vrany@fit.cvut.cz>
3457
3458 * varobj.c (varobj_get_path_expr_parent): Report an error if
3459 parent is a dynamic varobj.
3460
472fa5ee
SM
34612018-07-31 Simon Marchi <simon.marchi@ericsson.com>
3462
3463 * gnulib/aclocal.m4: Re-generate.
3464 * gnulib/config.in: Re-generate.
3465 * gnulib/configure: Re-generate.
3466 * gnulib/import/Makefile.in: Re-generate.
3467 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
3468 * gnulib/import/m4/onceonly.m4: Re-generate.
3469
1c28969e
SM
34702018-07-31 Simon Marchi <simon.marchi@ericsson.com>
3471
3472 * target-descriptions.c (struct xml_test_tdesc): New.
3473 (xml_tdesc): Change type to std::vector<xml_test_tdesc>.
3474 (record_xml_tdesc): Update.
3475 (maintenance_check_xml_descriptions): Update.
3476 * target-descriptions.h (record_xml_tdesc): Update comment.
3477
c8f2dc0d
AB
34782018-07-30 Andrew Burgess <andrew.burgess@embecosm.com>
3479
3480 * eval.c (evaluate_subexp_for_sizeof): Check for array type before
3481 checking array bounds are defined.
3482
463c08d1
TT
34832018-07-30 Tom Tromey <tom@tromey.com>
3484
3485 * nat/linux-osdata.c (pid_pgid_entry::operator<): Fix
3486 irreflexivity violation.
3487
dba7455e
TT
34882018-07-30 Tom Tromey <tom@tromey.com>
3489
3490 * cli/cli-decode.c (lookup_cmd): Remove lint code.
3491 * value.c (unpack_long): Remove lint code.
3492 * valops.c (value_ind): Remove lint code.
3493 * valarith.c (value_x_binop, value_x_unop, value_equal)
3494 (value_pos): Remove lint code.
3495
37cc0cae
TV
34962018-07-28 Tom de Vries <tdevries@suse.de>
3497
3498 * eval.c (evaluate_subexp_for_sizeof): Interpret size of dynamic type
3499 with undefined upper bound as <optimized out>.
3500
129eb0f1
SDJ
35012018-07-27 Sergio Durigan Junior <sergiodj@redhat.com>
3502
3503 * gcore.in: Rename variable "name" to "prefix". Expand
3504 "usage" text.
3505
6af79d7b
JT
35062018-07-14 Jon Turney <jon.turney@dronecode.org.uk>
3507
3508 * windows-nat.c (windows_nat_target::create_inferior): Update to
3509 call close() in global namespace.
3510
79748972
TT
35112018-07-26 Tom Tromey <tom@tromey.com>
3512
3513 * dwarf-index-write.c (add_address_entry): Don't add objfile
3514 offsets.
3515 * dbxread.c (find_stab_function): Rename from
3516 find_stab_function_addr. Return a bound_minimal_symbol.
3517 (read_dbx_symtab): Use raw_text_low, raw_text_high.
3518 Don't add objfile offsets.
3519 (end_psymtab): Use raw_text_low, raw_text_high,
3520 MSYMBOL_VALUE_RAW_ADDRESS.
3521 (read_ofile_symtab): Update.
3522 (process_one_symbol): Update.
3523 * dwarf2read.c (create_addrmap_from_index): Don't add objfile
3524 offsets.
3525 (dw2_relocate): Remove.
3526 (dw2_find_pc_sect_symtab): Bias PC by the text offset before
3527 searching addrmap.
3528 (dwarf2_gdb_index_functions, dwarf2_debug_names_functions):
3529 Update.
3530 (process_psymtab_comp_unit_reader, add_partial_symbol)
3531 (add_partial_subprogram, dwarf2_ranges_read): Update.
3532 (load_partial_dies): Update.
3533 (add_address_entry): Don't add objfile offsets.
3534 (dwarf2_build_include_psymtabs): Update.
3535 (create_addrmap_from_aranges): Don't add objfile offsets.
3536 (dw2_find_pc_sect_compunit_symtab): Update.
3537 * mdebugread.c (parse_symbol): Don't add objfile offsets.
3538 (parse_lines): Remove 'pst' parameter, replace with 'textlow'.
3539 Update.
3540 (parse_partial_symbols): Don't add objfile offsets. Use
3541 raw_text_low, raw_text_high. Update.
3542 (handle_psymbol_enumerators, psymtab_to_symtab_1): Update.
3543 * objfiles.c (objfile_relocate1): Don't relocate psymtabs_addrmap
3544 or call 'relocate' quick function. Clear psymbol_map.
3545 * psympriv.h (struct partial_symbol) <address>: Add section
3546 offset.
3547 <set_unrelocated_address>: Rename from set_address.
3548 <raw_text_low, raw_text_high>: New methods.
3549 <text_low, text_high>: Add objfile parameter.
3550 (add_psymbol_to_bcache): Add 'section' parameter. Call
3551 set_unrelocated_address.
3552 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
3553 (find_pc_psymbol): Update.
3554 (fixup_psymbol_section, relocate_psymtabs): Remove.
3555 (dump_psymtab, psym_functions): Update.
3556 (add_psymbol_to_bcache, add_psymbol_to_list): Add 'section'
3557 parameter.
3558 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
3559 (start_psymtab_common): Update.
3560 * symfile-debug.c (debug_qf_relocate): Remove.
3561 (debug_sym_quick_functions): Update.
3562 * symfile.h (struct quick_symbol_functions) <relocate>: Remove.
3563 * xcoffread.c (scan_xcoff_symtab): Don't add objfile offsets.
3564 Update.
3565
52948f01
TT
35662018-07-26 Tom Tromey <tromey@redhat.com>
3567
3568 * dbxread.c (end_psymtab): Use text_high_valid and
3569 text_low_valid.
3570 * mdebugread.c (parse_partial_symbols): Use text_low_valid.
3571 (psymtab_to_symtab_1): Use text_high_valid and text_low_valid.
3572 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
3573 Update comment.
3574 <text_low_valid, text_high_valid>: New fields.
3575 <set_text_low, set_text_high>: Update.
3576 * xcoffread.c (scan_xcoff_symtab): Use text_low_valid.
3577
4ae976d1
TT
35782018-07-26 Tom Tromey <tom@tromey.com>
3579
3580 * dbxread.c (read_dbx_symtab, end_psymtab, read_ofile_symtab):
3581 Update.
3582 * dwarf2read.c (dwarf2_create_include_psymtab): Don't initialize
3583 textlow and texthigh fields.
3584 (process_psymtab_comp_unit_reader, dwarf2_build_include_psymtabs):
3585 Update.
3586 * mdebugread.c (parse_lines, parse_partial_symbols)
3587 (psymtab_to_symtab_1): Update.
3588 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
3589 Rename fields. Update comment. Now private.
3590 <text_low, text_high, set_text_low, set_text_high>: New methods.
3591 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
3592 (find_pc_sect_psymbol, relocate_psymtabs, dump_psymtab)
3593 (start_psymtab_common, maintenance_info_psymtabs)
3594 (maintenance_check_psymtabs): Update.
3595 * xcoffread.c (xcoff_end_psymtab): Don't initialize textlow and
3596 texthigh fields.
3597 (scan_xcoff_symtab): Update.
3598
02e9e7f7
TT
35992018-07-26 Tom Tromey <tromey@redhat.com>
3600
3601 * psympriv.h (struct partial_symbol) <unrelocated_address,
3602 address, set_address>: New methods.
3603 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymbol)
3604 (fixup_psymbol_section, relocate_psymtabs): Update.
3605 (print_partial_symbols): Add 'objfile' parameter. Update.
3606 (dump_psymtab, add_psymbol_to_bcache, psym_fill_psymbol_map):
3607 Update.
3608
8a6d4234
TT
36092018-07-26 Tom Tromey <tom@tromey.com>
3610
3611 * dwarf-index-write.c (write_psymbols, debug_names::insert)
3612 (debug_names::write_psymbols): Update.
3613 * psympriv.h (struct partial_symbol): Derive from
3614 general_symbol_info.
3615 <obj_section>: New method.
3616 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.n
3617 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
3618 (find_pc_sect_psymbol, fixup_psymbol_section)
3619 (match_partial_symbol, lookup_partial_symbol, relocate_psymtabs)
3620 (print_partial_symbols, recursively_search_psymtabs)
3621 (compare_psymbols, psymbol_hash, psymbol_compare)
3622 (add_psymbol_to_bcache, maintenance_check_psymtabs)
3623 (psymbol_name_matches, psym_fill_psymbol_map): Update.
3624
08994e1d
TT
36252018-07-26 Tom Tromey <tromey@redhat.com>
3626
3627 * dbxread.c (end_psymtab): Remove dead code.
3628
3c3bb058
AB
36292018-07-26 Andrew Burgess <andrew.burgess@embecosm.com>
3630
3631 * dwarf2-frame-tailcall.c (tailcall_frame_sniffer): Exit early if
3632 DWARF unwinders are disabled.
3633 * dwarf2-frame.c: Add dwarf2read.h include.
3634 (dwarf2_frame_sniffer): Exit early if DWARF unwinders are
3635 disabled.
3636 (dwarf2_frame_unwinders_enabled_p): Define.
3637 (show_dwarf_unwinders_enabled_p): New function.
3638 (_initialize_dwarf2_frame): Register switch to control DWARF
3639 unwinder use.
3640 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Declare.
3641 * dwarf2read.c (set_dwarf_cmdlist): Remove static keyword.
3642 (show_dwarf_cmdlist): Remove static keyword.
3643 * dwarf2read.h (set_dwarf_cmdlist): Declare.
3644 (show_dwarf_cmdlist): Declare.
3645 * NEWS: Document new feature.
3646
9e7f3bbb
TV
36472018-07-26 Tom de Vries <tdevries@suse.de>
3648
3649 PR breakpoints/23366
3650 * infcmd.c (info_program_command): Handle ptid == minus_one_ptid.
3651
506f5c41
TV
36522018-07-26 Tom de Vries <tdevries@suse.de>
3653
3654 * dwarf2read.c (read_subrange_type): Warn if DW_AT_upper_bound or
3655 DW_AT_count can't be translated to a dynamic prop.
3656
16f808ec
TV
36572018-07-25 Tom de Vries <tdevries@suse.de>
3658
3659 * dwarf2loc.c (dwarf2_locexpr_baton_eval): Wrap ctx.eval call in
3660 try/catch.
3661
d7154a8d
JV
36622018-07-25 Jan Vrany <jan.vrany@fit.cvut.cz>
3663
3664 * breakpoint.c (enable_disable_bp_num_loc): Notify observers.
3665
a45389f6
JB
36662018-07-25 Joel Brobecker <brobecker@adacore.com>
3667
3668 * MAINTAINERS (Global Maintainers): Add Tom Tromey.
3669
380618d6
KS
36702018-07-24 Keith Seitz <keiths@redhat.comt
3671
3672 PR symtab/23010
3673 * dwarf2read.c (dw2_add_symbol_to_list): New function.
3674 (fixup_go_packaging, new_symbol): Use dw2_add_symbol_to_list
3675 instead of add_symbol_to_list.
3676 (read_file_scope): Call prepare_one_comp_unit before reading
3677 any other DIEs.
3678
4b17aefe
SM
36792018-07-24 Simon Marchi <simon.marchi@ericsson.com>
3680
3681 * common/scoped_mmap.h (class scoped_mmap): Fix indentation.
3682
29d17e47
TT
36832018-07-24 Tom Tromey <tom@tromey.com>
3684
3685 * utils.c (malloc, realloc, free): Don't declare.
3686 * configure, config.in: Rebuild.
3687 * configure.ac: Don't check for declarations of free, malloc, or
3688 realloc.
3689
cf4088a9
SM
36902018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3691
3692 * aarch64-linux-nat.c
3693 (aarch64_linux_nat_target::stopped_data_address): Remove unused
3694 variable.
3695 * arm-linux-nat.c (fetch_regs): Likewise.
3696 (store_regs): Likewise.
3697 (fetch_vfp_regs): Likewise.
3698 (store_vfp_regs): Likewise.
3699 (arm_linux_nat_target::insert_hw_breakpoint): Likewise.
3700 (arm_linux_nat_target::remove_hw_breakpoint): Likewise.
3701 (arm_linux_nat_target::insert_watchpoint): Likewise.
3702 (arm_linux_nat_target::remove_watchpoint): Likewise.
3703 * mips-linux-nat.c (mips_linux_nat_target::insert_watchpoint):
3704 Likewise.
3705 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs):
3706 Likewise.
3707 * ppc-linux-nat.c (fetch_register): Likewise.
3708 (fetch_all_gp_regs): Likewise.
3709 (fetch_ppc_registers): Likewise.
3710 (store_all_gp_regs): Likewise.
3711 (store_ppc_registers): Likewise.
3712 (hwdebug_insert_point): Likewise.
3713 (can_use_watchpoint_cond_accel): Likewise.
3714 * remote-sim.c (gdb_os_write_stdout): Likewise.
3715
a0de763e
TT
37162018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3717 Tom Tromey <tom@tromey.com>
3718
3719 * warning.m4 (AM_GDB_WARNINGS): Add -Wunused-variable and special
3720 test for it.
3721 * configure: Rebuild.
3722
3b20124b
TT
37232018-07-22 Tom Tromey <tom@tromey.com>
3724
3725 * regformats/regdat.sh: Define xmltarget_${name} inside
3726 #ifndef IN_PROCESS_AGENT.
3727
8c8807f4
TT
37282018-07-22 Tom Tromey <tom@tromey.com>
3729
3730 * value.c (value_fetch_lazy_bitfield): Remove unused variable.
3731
c486b610
TT
37322018-07-22 Tom Tromey <tom@tromey.com>
3733
3734 * symfile.c (reread_symbols): Notify iter, not objfile.
3735
494f80a9
TT
37362018-07-22 Tom Tromey <tom@tromey.com>
3737
3738 * ravenscar-thread.c (ravenscar_thread_target::store_registers):
3739 Use arch_ops.
3740 (ravenscar_thread_target::prepare_to_store): Likewise.
3741
c51f6a54
TT
37422018-07-22 Tom Tromey <tom@tromey.com>
3743
3744 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Remove
3745 unused variable. Call value_fetch_lazy when needed.
3746 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
3747 Remove unused variable. Call value_fetch_lazy when needed.
3748
374fd1fd
TT
37492018-07-22 Tom Tromey <tom@tromey.com>
3750
3751 * m32c-tdep.c (mark_dma): Return void.
3752 (make_regs): Remove unused declarations.
3753
d5e9a511
TT
37542018-07-22 Tom Tromey <tom@tromey.com>
3755
3756 * guile/scm-cmd.c (gdbscm_dont_repeat): Call
3757 cmdscm_get_valid_command_smob_arg_unsafe for effect.
3758 * guile/scm-block.c (gdbscm_make_block_syms_iter): Call
3759 bkscm_get_valid_block_smob_arg_unsafe for effect.
3760
996d693a
TT
37612018-07-22 Tom Tromey <tom@tromey.com>
3762
3763 * bfin-tdep.c (bfin_push_dummy_call): Use arg_type, not
3764 value_type.
3765
15766370
TT
37662018-07-22 Tom Tromey <tom@tromey.com>
3767
3768 * windows-nat.c (saved_context): Conditionally define.
3769 * remote.c (remote_target::remote_btrace_maybe_reopen):
3770 Conditionally declare "warned".
3771 * inflow.c (sigquit_ours): Conditionally define.
3772 (new_tty): Move "tty" declaration inside #if.
3773 * guile/guile.c (guile_datadir): Conditionally define.
3774 * charset.c (set_be_le_names): Move some declarations inside #if.
3775 * btrace.c (parse_xml_btrace): Move "errcode" declaration inside
3776 #if.
3777 (parse_xml_btrace_conf): Likewise.
3778
f4e80e13
TT
37792018-07-22 Tom Tromey <tom@tromey.com>
3780
3781 * spu-tdep.c (spu_get_overlay_table): Remove unused variable.
3782
8d49165d
TT
37832018-07-22 Tom Tromey <tom@tromey.com>
3784
3785 * guile/scm-value.c (gdbscm_value_call): Remove unused variables.
3786 * guile/scm-math.c (vlscm_unop_gdbthrow, vlscm_binop_gdbthrow)
3787 (vlscm_convert_typed_value_from_scheme): Remove unused variable.
3788 * buildsym-legacy.c (get_macro_table): Remove unused variable.
3789 * stack.c (frame_apply_level_command): Remove unused variable.
3790 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused variable.
3791 * sparc64-tdep.c (adi_examine_command): Remove unused variable.
3792 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Remove
3793 unused variable.
3794 * nios2-tdep.c (nios2_push_dummy_call): Remove unused variable.
3795 * mep-tdep.c (mep_push_dummy_call): Remove unused variable.
3796 * ada-lang.c (ada_lookup_symbol_list_worker): Remove unused
3797 variable.
3798 * amd64-tdep.c (amd64_supply_xsave): Remove unused variable.
3799 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Remove unused
3800 variable.
3801 * breakpoint.c (check_no_tracepoint_commands, update_watchpoint):
3802 Remove unused variable.
3803 * cli/cli-script.c (recurse_read_control_structure): Remove unused
3804 variable.
3805 * common/tdesc.c (print_xml_feature::visit): Remove unused
3806 variable.
3807 * compile/compile-object-load.c (store_regs): Remove unused
3808 variables.
3809 * complaints.c (clear_complaints): Remove unused variable.
3810 * corelow.c (core_target_open): Remove unused variable.
3811 * fbsd-tdep.c (fbsd_core_info_proc_status): Remove unused
3812 variable.
3813 * guile/scm-frame.c (gdbscm_frame_read_var): Remove unused
3814 variable.
3815 * guile/scm-symtab.c (stscm_print_sal_smob): Remove unused
3816 variable.
3817 * guile/scm-type.c (gdbscm_field_baseclass_p): Remove unused
3818 variable.
3819 * guile/scm-utils.c (gdbscm_parse_function_args): Remove unused
3820 variable.
3821 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Remove unused
3822 variable.
3823 * ia64-tdep.c (examine_prologue): Remove unused variable.
3824 * infcall.c (run_inferior_call): Remove unused variable.
3825 * inferior.c (exit_inferior): Remove unused variable.
3826 * infrun.c (infrun_thread_ptid_changed): Remove unused variable.
3827 * linespec.c (decode_line_2): Remove unused variable.
3828 * linux-nat.c (super_close): Remove.
3829 * linux-tdep.c (linux_info_proc): Remove unused variable.
3830 * mi/mi-main.c (mi_execute_command): Remove unused variable.
3831 * microblaze-linux-tdep.c (microblaze_linux_sigtramp_cache):
3832 Remove unused variable.
3833 * parse.c (find_minsym_type_and_address): Remove unused variable.
3834 * printcmd.c (info_symbol_command, printf_floating): Remove unused
3835 variable.
3836 * python/py-breakpoint.c (bppy_set_commands): Remove unused
3837 variable.
3838 * python/py-unwind.c (unwind_infopy_dealloc): Remove unused
3839 variables.
3840 * record-btrace.c (record_btrace_target::store_registers): Remove
3841 unused variable.
3842 (cmd_show_record_btrace_cpu): Remove unused variable.
3843 * riscv-tdep.c (riscv_register_reggroup_p)
3844 (riscv_push_dummy_call, riscv_return_value): Remove unused
3845 variable.
3846 * rust-exp.y (literal): Remove unused variable.
3847 * rust-lang.c (rust_evaluate_subexp) <OP_RUST_ARARAY>: Remove
3848 unused variable.
3849 <STRUCTOP_ANONYMOUS>: Likewise.
3850 * s390-linux-tdep.c (s390_linux_init_abi_31)
3851 (s390_linux_init_abi_64): Remove unused variable.
3852 * ser-ming2.c (ser_windows_read_prim, pipe_select_thread)
3853 (file_select_thread, net_windows_open, _initialize_ser_windows):
3854 Remove unused variables.
3855 * symtab.c (find_pc_sect_line): Remove unused variable.
3856 * target-memory.c (compute_garbled_blocks): Remove unused
3857 variable.
3858 (target_write_memory_blocks): Remove unused variable.
3859 * target.c (target_stack::unpush): Remove unused variables.
3860 * tracepoint.c (start_tracing, all_tracepoint_actions)
3861 (merge_uploaded_trace_state_variables)
3862 (print_one_static_tracepoint_marker): Remove unused variable.
3863 * unittests/basic_string_view/element_access/char/1.cc (test01):
3864 Remove unused variable.
3865 * windows-nat.c (windows_continue, windows_add_all_dlls)
3866 (do_initial_windows_stuff, windows_nat_target::create_inferior):
3867 Remove unused variables.
3868
17cbafdb
SM
38692018-07-21 Simon Marchi <simon.marchi@polymtl.ca>
3870
3871 * arm-tdep.c (arm_gdbarch_init): Declare attr_arch and
3872 attr_profile in HAVE_ELF.
3873 * rs6000-tdep.c (bfd_uses_spe_extensions): Declare vector_abi in
3874 HAVE_ELF.
3875
0ee6c332
SM
38762018-07-20 Simon Marchi <simon.marchi@polymtl.ca>
3877
3878 * frame.c (frame_register_unwind): Change parameter name.
3879 (frame_unwind_register): Likewise.
3880 (frame_unwind_register_value): Likewise.
3881 (frame_unwind_register_signed): Likewise.
3882 (frame_unwind_register_unsigned): Likewise.
3883 * frame.h (frame_register_unwind): Likewise.
3884 (frame_unwind_register): Likewise.
3885 (frame_unwind_register_value): Likewise.
3886 (frame_unwind_register_signed): Likewise.
3887 (frame_unwind_register_unsigned): Likewise.
3888 (frame_unwind_arch): Likewise.
3889
e2e31f10
MR
38902018-07-20 Maciej W. Rozycki <macro@mips.com>
3891
3892 * MAINTAINERS: Update my e-mail address, downgrade to MIPS I-IV
3893 ISA maintenance.
3894
2d389915
MR
38952018-07-20 Maciej W. Rozycki <macro@mips.com>
3896
3897 * mips-linux-nat.c (mips_linux_nat_target::read_description):
3898 Call `get_ptrace_pid' rather than extracting the ptrace PID by
3899 hand.
3900
cbb09508
KS
39012018-07-20 Keith Seitz <keiths@redhat.com>
3902
3903 * buildsym.h (struct buildsym_compunit) <m_objfile, m_subfiles,
3904 m_main_subfile, m_comp_dir, m_producer, m_debugformat,
3905 m_compunit_symtab, m_language>: Add "m_" prefix.
3906 Update all uses.
3907 * buildsym.c: Update all uses.
3908
bfe2e011
TT
39092018-07-20 Tom Tromey <tom@tromey.com>
3910
3911 * buildsym-legacy.h (record_line): Don't use record_line_ftype.
3912 * buildsym.h (record_line_ftype): Remove typedef.
3913
0e6f3061
TT
39142018-07-20 Tom Tromey <tom@tromey.com>
3915
3916 * buildsym-legacy.h (augment_type_symtab): Don't declare.
3917 (end_expandable_symtab): Likewise.
3918 (end_symtab_get_static_block): Likewise.
3919 (end_symtab_from_static_block): Likewise.
3920 * buildsym-legacy.c (augment_type_symtab): Remove.
3921 (end_expandable_symtab): Remove.
3922 (end_symtab_get_static_block): Remove.
3923 (end_symtab_from_static_block): Remove.
3924
804d2729
TT
39252018-07-20 Tom Tromey <tom@tromey.com>
3926
3927 * dwarf2read.c: Include buildsym.h.
3928 (struct dwarf2_cu) <builder>: New method.
3929 (fixup_go_packaging): Update.
3930 (process_full_comp_unit, process_full_type_unit): Update. Don't
3931 use scoped_free_pendings.
3932 (using_directives): Add "cu" parameter, remove "language".
3933 (read_import_statement, setup_type_unit_groups, )
3934 (read_func_scope, read_lexical_block_scope)
3935 (dwarf2_record_block_ranges, read_namespace): Update.
3936 (lnp_state_machine::lnp_state_machine): Add cu parameter.
3937 (lnp_state_machine::handle_end_sequence): Update.
3938 (class lnp_state_machine) <m_cu>: New member.
3939 <m_record_line_callback>: Remove.
3940 <m_currently_recording_lines>: New member.
3941 (lnp_state_machine::handle_set_file): Update.
3942 (noop_record_line): Remove.
3943 (dwarf_record_line_p): Add cu parameter.
3944 (dwarf_record_line_1, dwarf_finish_line): Likewise.
3945 (lnp_state_machine::record_line)
3946 (lnp_state_machine::lnp_state_machine)
3947 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
3948 (dwarf_decode_lines): Update.
3949 (dwarf2_start_subfile): Add cu parameter.
3950 (dwarf2_start_symtab, new_symbol): Update.
3951 (macro_start_file, dwarf_decode_macro_bytes): Add cu parameter.
3952 Remove dwarf2_per_objfile parameter.
3953 (dwarf_decode_macros): Update.
3954
80e649fc
TT
39552018-07-20 Tom Tromey <tom@tromey.com>
3956
3957 * stabsread.c (define_symbol): Update.
3958 * buildsym-legacy.h (get_buildsym_compunit): Declare.
3959 * dwarf2read.c (new_symbol): Update.
3960 * cp-support.h (cp_scan_for_anonymous_namespaces): Update.
3961 * cp-namespace.c: Include buildsym.h.
3962 (cp_scan_for_anonymous_namespaces): Add "compunit" parameter.
3963 * buildsym-legacy.c (get_buildsym_compunit): New function.
3964
0baae8db
TT
39652018-07-20 Tom Tromey <tom@tromey.com>
3966
3967 * xcoffread.c: Include buildsym-legacy.h.
3968 * windows-nat.c: Include buildsym-legacy.h.
3969 * stabsread.c: Include buildsym-legacy.h.
3970 * mdebugread.c: Include buildsym-legacy.h.
3971 * buildsym-legacy.h: New file.
3972 * buildsym-legacy.c: New file, from buildsym.c.
3973 * go32-nat.c: Include buildsym-legacy.h.
3974 * dwarf2read.c: Include buildsym-legacy.h.
3975 * dbxread.c: Include buildsym-legacy.h.
3976 * cp-namespace.c: Include buildsym-legacy.h.
3977 * coffread.c: Include buildsym-legacy.h.
3978 * buildsym.h: Move some contents to buildsym-legacy.h.
3979 * buildsym.c: Include buildsym-legacy.h. Move many functions to
3980 buildsym-legacy.c.
3981 * Makefile.in (HFILES_NO_SRCDIR): Add buildsym-legacy.h.
3982
ab209f6f
TT
39832018-07-20 Tom Tromey <tom@tromey.com>
3984
3985 * buildsym.h (struct buildsym_compunit): Move from buildsym.c.
3986 * buildsym.c (struct buildsym_compunit): Move to buildsym.h.
3987 (buildsym_compunit::buildsym_compunit)
3988 (buildsym_compunit::~buildsym_compunit)
3989 (buildsym_compunit::get_macro_table): Define.
3990
74c72eac
TT
39912018-07-20 Tom Tromey <tom@tromey.com>
3992
3993 * buildsym.c (reset_symtab_globals): Remove.
3994 (buildsym_compunit::end_symtab_from_static_block): Update.
3995 (buildsym_compunit::augment_type_symtab): Update.
3996 (end_symtab_from_static_block): Call free_buildsym_compunit.
3997 (augment_type_symtab, end_symtab, end_expandable_symtab):
3998 Likewise.
3999
da6580e5
TT
40002018-07-20 Tom Tromey <tom@tromey.com>
4001
4002 * arch-utils.c: Do not include buildsym.h.
4003 * mipsread.c: Do not include buildsym.h.
4004 * machoread.c: Do not include buildsym.h.
4005 * elfread.c: Do not include buildsym.h.
4006
4a2125f5
TT
40072018-07-20 Tom Tromey <tom@tromey.com>
4008
4009 * buildsym.c (buildsym_compunit::buildsym_compunit): Do more
4010 initialization.
4011 (buildsym_compunit): Add new constructor.
4012 (struct buildsym_compunit) <get_last_source_file, finish_block,
4013 record_block_range, start_subfile, patch_subfile_names,
4014 push_subfile, pop_subfile, record_line, get_compunit_symtab,
4015 set_last_source_start_addr, get_last_source_start_addr,
4016 get_local_using_directives, set_local_using_directives,
4017 get_global_using_directives, outermost_context_p,
4018 get_current_context_stack, get_context_stack_depth,
4019 get_current_subfile, get_local_symbols, get_file_symbols,
4020 get_global_symbols, record_debugformat, record_producer,
4021 push_context, pop_context, end_symtab_get_static_block,
4022 end_symtab_from_static_block, end_symtab, end_expandable_symtab>:
4023 New public methods.
4024 <record_pending_block, finish_block_internal, make_blockvector,
4025 watch_main_source_file_lossage, end_symtab_with_blockvector>: New
4026 private methods.
4027 Update all users.
4028
40292018-05-22 Tom Tromey <tom@tromey.com>
4030
4031 * buildsym.c (record_pending_block): Move earlier. Remove objfile
4032 parameter.
4033 (finish_block_internal): Update.
4034
6b213a47
TT
40352018-07-20 Tom Tromey <tom@tromey.com>
4036
4037 * buildsym.c (record_pending_block): Move earlier. Remove objfile
4038 parameter.
4039 (finish_block_internal): Update.
4040
b80a981d
TT
40412018-07-20 Tom Tromey <tom@tromey.com>
4042
4043 * buildsym.h (EXTERN): Don't define or undef.
4044 * buildsym.c (EXTERN): Don't define.
4045
ddb70602
TT
40462018-07-20 Tom Tromey <tom@tromey.com>
4047
4048 * buildsym.c: Remove TODO comment.
4049
b37dd3bc
TT
40502018-07-20 Tom Tromey <tom@tromey.com>
4051
4052 * coffread.c (coff_symtab_read): Update.
4053 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
4054 (xcoff_new_init): Update.
4055 * mipsread.c (mipscoff_new_init): Update.
4056 * mdebugread.c (mdebug_build_psymtabs): Update.
4057 * elfread.c (elf_new_init): Update.
4058 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
4059 Update.
4060 * dbxread.c (dbx_new_init, dbx_psymtab_to_symtab_1)
4061 (coffstab_build_psymtabs, elfstab_build_psymtabs)
4062 (stabsect_build_psymtabs): Update.
4063 * buildsym.h (buildsym_init): Don't declare.
4064 * buildsym.c: Update comment.
4065 (prepare_for_building): Remove.
4066 (start_symtab, restart_symtab): Update.
4067 (reset_symtab_globals): Update comment.
4068 (buildsym_init): Remove.
4069
e148f09d
TT
40702018-07-20 Tom Tromey <tom@tromey.com>
4071
4072 * xcoffread.c (read_xcoff_symtab, process_xcoff_symbol): Update.
4073 * stabsread.c (patch_block_stabs, define_symbol, read_type)
4074 (read_enum_type, common_block_start, common_block_end)
4075 (cleanup_undefined_types_1, finish_global_stabs): Update.
4076 * mdebugread.c (psymtab_to_symtab_1): Update.
4077 * dwarf2read.c (fixup_go_packaging, read_func_scope)
4078 (read_lexical_block_scope, new_symbol): Update.
4079 * dbxread.c (process_one_symbol): Update.
4080 * coffread.c (coff_symtab_read, process_coff_symbol)
4081 (coff_read_enum_type): Update.
4082 * buildsym.h (file_symbols, global_symbols, local_symbols): Don't
4083 declare.
4084 (get_local_symbols, get_file_symbols, get_global_symbols): New
4085 functions.
4086 * buildsym.c (~buildsym_compunit): Clean up m_file_symbols and
4087 m_global_symbols.
4088 <m_file_symbols, m_local_symbols, m_global_symbols>: New members.
4089 (~scoped_free_pendings): Update.
4090 (finish_block, prepare_for_building, reset_symtab_globals)
4091 (end_symtab_get_static_block, end_symtab_with_blockvector)
4092 (augment_type_symtab, push_context): Update.
4093 (get_local_symbols, get_file_symbols, get_global_symbols): New
4094 functions.
4095 (buildsym_init): Update.
4096
93b8bea4
TT
40972018-07-20 Tom Tromey <tom@tromey.com>
4098
4099 * dwarf2read.c (process_full_comp_unit): Do not set list_in_scope.
4100 (process_full_type_unit): Likewise.
4101 (dwarf2_start_symtab): Set list_in_scope.
4102
f62f6af5
TT
41032018-07-20 Tom Tromey <tom@tromey.com>
4104
4105 * dwarf2read.c (process_psymtab_comp_unit_reader)
4106 (build_type_psymtabs_reader): Do not set list_in_scope.
4107
1d376700
TT
41082018-07-20 Tom Tromey <tom@tromey.com>
4109
4110 * buildsym.c (free_pendings): Remove.
4111 (add_symbol_to_list, scoped_free_pendings)
4112 (finish_block_internal, buildsym_init): Update.
4113
c233e9c6
TT
41142018-07-20 Tom Tromey <tom@tromey.com>
4115
4116 * xcoffread.c (read_xcoff_symtab): Update.
4117 * dwarf2read.c (read_func_scope, read_lexical_block_scope):
4118 Update.
4119 * dbxread.c (process_one_symbol): Update.
4120 * coffread.c (coff_symtab_read): Update.
4121 * buildsym.h (finish_block): Update.
4122 * buildsym.c (finish_block): Remove "listhead" argument.
4123 (end_symtab_get_static_block): Update.
4124
5ac04550
TT
41252018-07-20 Tom Tromey <tom@tromey.com>
4126
4127 * buildsym.h (class scoped_free_pendings): Remove constructor.
4128 * buildsym.c (struct buildsym_compunit) <free_pending_blocks>: New
4129 method.
4130 <m_pending_block_obstack, m_pending_blocks>: New members.
4131 (pending_block_obstack, pending_blocks): Remove.
4132 (scoped_free_pendings::scoped_free_pendings): Default.
4133 (~scoped_free_pendings): Update.
4134 (free_pending_blocks): Remove.
4135 (finish_block_internal, record_pending_block, make_blockvector)
4136 (end_symtab_get_static_block, augment_type_symtab, push_context)
4137 (buildsym_init): Update.
4138
7ea05a7b
TT
41392018-07-20 Tom Tromey <tom@tromey.com>
4140
4141 * buildsym.c (struct buildsym_compunit) <m_pending_addrmap,
4142 m_pending_addrmap_obstack, m_pending_addrmap_interesting>: New
4143 members.
4144 (pending_addrmap, pending_addrmap_obstack)
4145 (pending_addrmap_interesting): Remove.
4146 (scoped_free_pendings, record_block_range, make_blockvector)
4147 (prepare_for_building, reset_symtab_globals, buildsym_init):
4148 Update.
4149
3c65e5b3
TT
41502018-07-20 Tom Tromey <tom@tromey.com>
4151
4152 * xcoffread.c (process_linenos): Update.
4153 * stabsread.c (define_symbol, read_type, read_enum_type): Update.
4154 * mdebugread.c (psymtab_to_symtab_1): Update.
4155 * dwarf2read.c (setup_type_unit_groups)
4156 (lnp_state_machine::handle_set_file, dwarf_record_line_p)
4157 (lnp_state_machine::record_line, dwarf_decode_lines): Update.
4158 * dbxread.c (process_one_symbol): Update.
4159 * coffread.c (coff_symtab_read, enter_linenos)
4160 (process_coff_symbol): Update.
4161 * buildsym.h (current_subfile): Don't declare.
4162 (get_current_subfile): Declare.
4163 * buildsym.c (struct buildsym_compunit) <m_current_subfile>: New
4164 member.
4165 (start_subfile, free_buildsym_compunit, push_subfile)
4166 (prepare_for_building, start_symtab): Update.
4167 (get_current_subfile): New function.
4168
a60f3166
TT
41692018-07-20 Tom Tromey <tom@tromey.com>
4170
4171 * coffread.c (coff_symtab_read): Update.
4172 * xcoffread.c (read_xcoff_symtab): Update.
4173 * dwarf2read.c (new_symbol): Update.
4174 (read_func_scope, read_lexical_block_scope): Update.
4175 * dbxread.c (process_one_symbol): Update.
4176 * buildsym.h (context_stack, context_stack_depth): Don't declare.
4177 (outermost_context_p): Remove macro.
4178 (outermost_context_p, get_current_context_stack)
4179 (get_context_stack_depth): Declare.
4180 (pop_context): Return struct context_stack.
4181 * buildsym.c (struct buildsym_compunit) <m_context_stack: New
4182 member.
4183 (context_stack_size): Remove.
4184 (INITIAL_CONTEXT_STACK_SIZE): Remove.
4185 (prepare_for_building, end_symtab_get_static_block)
4186 (augment_type_symtab, push_context): Update.
4187 (pop_context): Return struct context_stack.
4188 (outermost_context_p, get_current_context_stack)
4189 (get_context_stack_depth): New functions.
4190 (buildsym_init): Update.
4191
56ba65a0
TT
41922018-07-20 Tom Tromey <tom@tromey.com>
4193
4194 * rust-exp.y: Now a pure parser. Update all rules.
4195 (%union): Move earlier.
4196 (current_parser, work_obstack): Remove globals.
4197 (rust_parser, ~rust_parser): Update.
4198 (class rust_parser) <copy_name, concat3, crate_name, super_name,
4199 lex_character, lex_number, lex_string, lex_identifier,
4200 rust_lookup_type, convert_params_to_types, convert_ast_to_type,
4201 convert_name, convert_params_to_expression,
4202 convert_ast_to_expression, ast_basic_type, ast_operation,
4203 ast_compound_assignment, rust_op, ast_literal, ast_dliteral,
4204 ast_structop, ast_structop_anonymous, ast_unary, ast_cast,
4205 ast_call_ish, ast_path, ast_string, ast_struct, ast_range,
4206 ast_array_type, ast_slice_type, ast_reference_type,
4207 ast_pointer_type, ast_function_type, ast_tuple_type>: New methods.
4208 (rust_parse): Update.
4209 (rustyyerror, rustyylex): Add parser parameter.
4210 (rust_lex_test_one, rust_lex_int_test, rust_lex_exception_test)
4211 (rust_lex_stringish_test, rust_lex_test_sequence)
4212 (rust_lex_test_trailing_dot, rust_lex_test_completion)
4213 (rust_lex_test_push_back, rust_lex_tests): Update.
4214
4c693332
PA
42152018-07-19 Pedro Alves <palves@redhat.com>
4216
4217 * guile/guile-internal.h (gdbscm_scm_to_c_string): Now returns a
4218 gdb::unique_xmalloc_ptr.
4219 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x):
4220 Adjust to use dbscm_wrap and gdb::unique_xmalloc_ptr.
4221 * guile/scm-exception.c (gdbscm_exception_message_to_string): Use
4222 copy-initialization.
4223 * guile/scm-pretty-print.c (ppscm_print_children): Use
4224 gdb::unique_xmalloc_ptr instead of cleanups.
4225 (gdbscm_apply_val_pretty_printer): Remove cleanups.
4226 * guile/scm-string.c (gdbscm_scm_to_c_string): Now returns a
4227 gdb::unique_xmalloc_ptr.
4228 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
4229 Adjust to use gdb::unique_xmalloc_ptr.
4230 * guile/scm-utils.c (extract_arg): Adjust.
4231 * guile/scm-value.c (gdbscm_value_field): Adjust to use
4232 gdb::unique_xmalloc_ptr instead of a cleanup.
4233
4581dc82
TT
42342018-07-19 Tom Tromey <tom@tromey.com>
4235
4236 * utils.c (do_value_free_to_mark)
4237 (make_cleanup_value_free_to_mark): Remove.
4238 * utils.h (make_cleanup_value_free_to_mark): Remove.
4239
43cc6c3a
PA
42402018-07-19 Pedro Alves <palves@redhat.com>
4241
4242 * guile/guile-internal.h (gdbscm_wrap): Really make 'args' a
4243 forwarding reference.
4244
3a5f2a48
PA
42452018-07-18 Pedro Alves <palves@redhat.com>
4246
4247 * guile/guile.c (gdbscm_execute_gdb_command): Adjust to use
4248 gdbscm_wrap. Use gdb::unique_xmalloc_ptr<char> instead of a
4249 cleanup.
4250
557e56be
PA
42512018-07-18 Pedro Alves <palves@redhat.com>
4252
4253 * guile/guile-internal.h: Add comment about mixing GDB and Scheme
4254 exceptions.
4255 (GDBSCM_HANDLE_GDB_EXCEPTION_WITH_CLEANUPS): Delete.
4256 (gdbscm_wrap): New.
4257 * guile/scm-frame.c (gdbscm_frame_read_register): Use xfree
4258 directly instead of a cleanup.
4259 * guile/scm-math.c (vlscm_unop_gdbthrow): New, factored out from ...
4260 (vlscm_unop): ... this. Reimplement using gdbscm_wrap.
4261 (vlscm_binop_gdbthrow): New, factored out from ...
4262 (vlscm_binop): ... this. Reimplement using gdbscm_wrap.
4263 (vlscm_rich_compare): Use gdbscm_wrap.
4264 * guile/scm-symbol.c (gdbscm_lookup_symbol): Use xfree directly
4265 instead of a cleanup.
4266 (gdbscm_lookup_global_symbol): Use xfree directly instead of a
4267 cleanup.
4268 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
4269 Use xfree directly instead of a cleanup.
4270 * guile/scm-value.c (gdbscm_make_value, gdbscm_make_lazy_value):
4271 Adjust to use gdbscm_wrap and scoped_value_mark.
4272 (gdbscm_value_optimized_out_p): Adjust to use gdbscm_wrap.
4273 (gdbscm_value_address, gdbscm_value_dereference)
4274 (gdbscm_value_referenced_value): Adjust to use gdbscm_wrap and
4275 scoped_value_mark.
4276 (gdbscm_value_dynamic_type): Use scoped_value_mark.
4277 (vlscm_do_cast, gdbscm_value_field): Adjust to use gdbscm_wrap and
4278 scoped_value_mark.
4279 (gdbscm_value_subscript, gdbscm_value_call): Adjust to use
4280 gdbscm_wrap and scoped_value_mark.
4281 (gdbscm_value_to_string): Use xfree directly instead of a
4282 cleanup. Move 'buffer' unique_ptr to TRY scope.
4283 (gdbscm_value_to_lazy_string): Use xfree directly instead of a
4284 cleanup. Move 'buffer' unique_ptr to TRY scope. Use
4285 scoped_value_mark.
4286 (gdbscm_value_fetch_lazy_x): Use gdbscm_wrap.
4287 (gdbscm_parse_and_eval): Adjust to use gdbscm_wrap and
4288 scoped_value_mark.
4289 (gdbscm_history_ref, gdbscm_history_append_x): Adjust to use
4290 gdbscm_wrap.
4291
42dc7699
TV
42922018-07-18 Tom de Vries <tdevries@suse.de>
4293
4294 * findvar.c (default_read_var_value): Also resolve dynamic type for
4295 LOC_OPTIMIZED_OUT vars.
4296
6592ceed
MR
42972018-07-18 Maciej W. Rozycki <macro@mips.com>
4298
4299 * mips-tdep.c (micromips_next_pc): Add SYSCALL instruction
4300 decoding.
4301
c6c6149a
TT
43022018-07-17 Tom Tromey <tom@tromey.com>
4303
4304 * guile/scm-param.c (pascm_set_func, pascm_show_func)
4305 (compute_enum_list, pascm_set_param_value_x)
4306 (gdbscm_parameter_value): Update.
4307 * guile/guile-internal.h (gdbscm_scm_to_string): Update.
4308 (gdbscm_scm_to_host_string): Update.
4309 * guile/scm-math.c (vlscm_convert_typed_value_from_scheme):
4310 Update.
4311 * guile/scm-cmd.c (cmdscm_add_completion): Update.
4312 * guile/scm-pretty-print.c (ppscm_print_string_repr): Update.
4313 * guile/scm-string.c (gdbscm_scm_to_string): Return
4314 unique_xmalloc_ptr.
4315 (gdbscm_scm_to_host_string): Likewise.
4316
a1a31cb8
TT
43172018-07-17 Tom Tromey <tom@tromey.com>
4318
4319 * guile/guile.c (gdbscm_eval_from_control_command): Update.
4320 * guile/guile-internal.h (gdbscm_safe_eval_string): Update.
4321 * guile/scm-objfile.c (gdbscm_execute_objfile_script): Update.
4322 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Return
4323 unique_xmalloc_ptr.
4324
15bf3002
TT
43252018-07-17 Tom Tromey <tom@tromey.com>
4326
4327 * guile/scm-param.c (pascm_signal_setshow_error): Update.
4328 * guile/guile-internal.h (gdbscm_exception_message_to_string):
4329 Update.
4330 * guile/scm-cmd.c (cmdscm_function): Update.
4331 * guile/scm-pretty-print.c
4332 (ppscm_print_exception_unless_memory_error): Update.
4333 * guile/scm-exception.c (gdbscm_exception_message_to_string):
4334 Return unique_xmalloc_ptr.
4335
7eb1a66c
TT
43362018-07-17 Tom Tromey <tom@tromey.com>
4337
4338 * guile/scm-pretty-print.c (ppscm_make_pp_type_error_exception):
4339 Use string_printf.
4340
ce73f310
JW
43412018-07-17 Jim Wilson <jimw@sifive.com>
4342
27724bad
JW
4343 * riscv-tdep.c (riscv_has_feature): Delete comment that refers to
4344 set_gdbarch_decr_pc_after_break. Call riscv_read_misa_reg always.
4345 (riscv_gdbarch_init): Delete local has_compressed_isa. Delete now
4346 unecessary braces after EF_RISCV_RVC test. Delete call to
4347 set_gdbarch_decr_pc_after_break.
4348
ce73f310
JW
4349 * riscv-tdep.h (DECLARE_CSR): Use RISCV_FIRST_CSR_REGNUM instead of
4350 RISCV_LAST_FP_REGNUM + 1.
4351 (RSICV_CSR_LEGACY_MISA_REGNUM): Add RISCV_FIRST_CSR_REGNUM.
4352
056dec39
TT
43532018-07-17 Tom Tromey <tom@tromey.com>
4354
4355 * configure.ac: Remove --disable-gdbcli.
4356 * configure: Rebuild.
4357 * Makefile.in (SUBDIR_CLI_DEPS, SUBDIR_CLI_LDFLAGS)
4358 (SUBDIR_CLI_CFLAGS): Remove.
4359 (SFILES): Use SUBDIR_CLI_SRCS.
4360 (COMMON_OBS): Use SUBDIR_CLI_OBS.
4361
4735f0ed
TT
43622018-07-17 Tom Tromey <tom@tromey.com>
4363
4364 PR gdb/18624:
4365 * coffread.c (coff_symtab_read): Use scoped_free_pendings.
4366
117a0e99
JW
43672018-07-16 Jim Wilson <jimw@sifive.com>
4368
4369 * riscv-tdep.c (riscv_gdbarch_init): Call gdbarch_init_osabi.
4370
8a67aaa8
SM
43712018-07-16 Simon Marchi <simon.marchi@ericsson.com>
4372
4373 * ia64-libunwind-tdep.c (libunwind_frame_cache): Remove unused
4374 variable.
4375 (libunwind_frame_sniffer): Likewise.
4376 (libunwind_frame_prev_register): Likewise.
4377 (libunwind_sigtramp_frame_sniffer): Likewise.
4378 * ia64-tdep.c (ia64_access_reg): Likewise.
4379 (ia64_access_rse_reg): Likewise.
4380 (ia64_libunwind_sigtramp_frame_this_id): Likewise.
4381 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Likewise.
4382
ec74dcd8
SM
43832018-07-16 Simon Marchi <simon.marchi@ericsson.com>
4384
4385 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Add cast.
4386
a700e753
SM
43872018-07-16 Simon Marchi <simon.marchi@ericsson.com>
4388
4389 * remote-sim.c (gdbsim_target::close,
4390 gdbsim_target::mourn_inferior): Remove unused variables.
4391
8b411ff8
SM
43922018-07-16 Simon Marchi <simon.marchi@polymtl.ca>
4393
4394 * ia64-tdep.c (ktab_buf): New global.
4395 (getunwind_table): Return a gdb::optional<gdb::byte_vector>.
4396 (get_kernel_table): Adjust.
4397
edb0470b
TT
43982018-07-16 Tom Tromey <tom@tromey.com>
4399
4400 * xcoffread.c (read_xcoff_symtab): Use outermost_context_p.
4401 * dwarf2read.c (using_directives, new_symbol): Use
4402 outermost_context_p.
4403 * dbxread.c (process_one_symbol): Use outermost_context_p.
4404 * coffread.c (coff_symtab_read): Use outermost_context_p.
4405
6cccc9a8
TT
44062018-07-16 Tom Tromey <tom@tromey.com>
4407
4408 * dwarf2read.c (using_directives, read_func_scope)
4409 (read_lexical_block_scope): Update.
4410 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
4411 * buildsym.h (local_using_directives, global_using_directives):
4412 Don't declare.
4413 (get_local_using_directives, set_local_using_directives)
4414 (get_global_using_directives): Declare.
4415 * buildsym.c (struct buildsym_compunit) <m_local_using_directives,
4416 m_global_using_directives>: New members.
4417 (finish_block_internal, prepare_for_building)
4418 (reset_symtab_globals, end_symtab_get_static_block)
4419 (push_context): Update.
4420 (get_local_using_directives, set_local_using_directives)
4421 (get_global_using_directives): New functions.
4422 (buildsym_init): Update.
4423
652788a7
TT
44242018-07-16 Tom Tromey <tom@tromey.com>
4425
4426 * xcoffread.c (xcoff_initial_scan): Don't call
4427 free_pending_blocks.
4428 * dbxread.c (dbx_symfile_read): Don't call free_pending_blocks.
4429 * buildsym.h (class scoped_free_pendings): Add constructor.
4430 (free_pending_blocks): Don't declare.
4431 * buildsym.c (scoped_free_pendings::scoped_free_pendings): New.
4432 (free_pending_blocks): Now static.
4433
8419ee53
TT
44342018-07-16 Tom Tromey <tom@tromey.com>
4435
4436 * buildsym.h (push_subfile, pop_subfile): Update declarations.
4437 * buildsym.c (struct buildsym_compunit) <m_subfile_stack>: New
4438 member.
4439 (struct subfile_stack): Remove.
4440 (subfile_stack): Remove.
4441 (push_subfile, pop_subfile, buildsym_init): Update.
4442
ccdac490
TT
44432018-07-16 Tom Tromey <tom@tromey.com>
4444
4445 * buildsym.c (push_subfile): Use gdb_assert.
4446 (pop_subfile): Use gdb_assert.
4447
43130d6f
TT
44482018-07-16 Tom Tromey <tom@tromey.com>
4449
4450 * buildsym.h (merge_symbol_lists): Remove.
4451 * buildsym.c (merge_symbol_lists): Remove.
4452
77d6f1aa
TT
44532018-07-16 Tom Tromey <tom@tromey.com>
4454
4455 * stabsread.c (scan_file_globals): Update comment.
4456 * stabsread.h (scan_file_globals): Move from buildsym.h.
4457 * buildsym.h (scan_file_globals): Move to stabsread.h.
4458
2c722d18
TT
44592018-07-16 Tom Tromey <tom@tromey.com>
4460
4461 * xcoffread.c (xcoff_new_init): Update.
4462 * mipsread.c (mipscoff_new_init): Update.
4463 * mdebugread.c (mdebug_build_psymtabs): Update.
4464 * elfread.c (elf_new_init): Update.
4465 * dbxread.c (dbx_new_init, coffstab_build_psymtabs)
4466 (elfstab_build_psymtabs, stabsect_build_psymtabs): Update.
4467 * buildsym.h (buildsym_new_init): Don't declare.
4468 * buildsym.c (buildsym_new_init): Remove.
4469
5985ac61
TT
44702018-07-16 Tom Tromey <tom@tromey.com>
4471
4472 * stabsread.h (within_function): Move from buildsym.h.
4473 * stabsread.c (start_stabs): Clear within_function.
4474 * coffread.c (coff_start_symtab): Clear within_function.
4475 * buildsym.h (within_function): Move to stabsread.h.
4476 * buildsym.c (prepare_for_building): Update.
4477
6b84eeb2
TT
44782018-07-16 Tom Tromey <tom@tromey.com>
4479
4480 * stabsread.h (processing_gcc_compilation): Move from buildsym.h.
4481 * dwarf2read.c (dwarf2_start_symtab): Don't set
4482 processing_gcc_compilation.
4483 * buildsym.h (processing_gcc_compilation): Move to stabsread.h.
4484
2150c3ef
TT
44852018-07-16 Tom Tromey <tom@tromey.com>
4486
4487 * stabsread.h (HASHSIZE, hashname, symnum, next_symbol_text)
4488 (next_symbol_text_func): Move from buildsym.h.
4489 * stabsread.c (hashname): Move from buildsym.c.
4490 * buildsym.h (HASHSIZE, symnum, next_symbol_text)
4491 (next_symbol_text_func, hashname): Move to stabsread.h.
4492 * buildsym.c: Don't include bcache.h
4493 (hashname): Move to stasbread.c.
4494
0ec44fc0
TT
44952018-07-16 Tom Tromey <tom@tromey.com>
4496
4497 * buildsym.h (context_stack_size): Don't declare.
4498 * buildsym.c (context_stack_size): New global.
4499
81cc346d
TT
45002018-07-16 Tom Tromey <tom@tromey.com>
4501
4502 * dbxread.c (processing_acc_compilation): New global.
4503 * buildsym.h (processing_acc_compilation): Don't declare.
4504
2c99ee5c
TT
45052018-07-16 Tom Tromey <tom@tromey.com>
4506
4507 * xcoffread.c (aix_process_linenos, complete_symtab): Update.
4508 * dbxread.c (read_ofile_symtab): Update.
4509 * coffread.c (coff_start_symtab, coff_end_symtab): Update.
4510 * buildsym.h (last_source_start_addr): Remove.
4511 (set_last_source_start_addr, get_last_source_start_addr):
4512 Declare.
4513 * buildsym.c (buildsym_compunit::buildsym_compunit): Add last_addr
4514 parameter.
4515 (struct buildsym_compunit) <m_last_source_start_addr>: New
4516 member.
4517 (prepare_for_building): Remove start_addr parameter.
4518 (start_symtab, restart_symtab, end_symtab_get_static_block)
4519 (end_symtab_with_blockvector): Update.
4520 (set_last_source_start_addr, get_last_source_start_addr): New
4521 functions.
4522
530fedbc
TT
45232018-07-16 Tom Tromey <tom@tromey.com>
4524
4525 * buildsym.c (struct buildsym_compunit) <m_have_line_numbers>: New
4526 member.
4527 (have_line_numbers): Remove.
4528 (record_line, prepare_for_building, end_symtab_get_static_block)
4529 (augment_type_symtab): Update.
4530
6a976300
TT
45312018-07-16 Tom Tromey <tom@tromey.com>
4532
4533 * buildsym.c (~buildsym_compunit): Free the macro table.
4534 (struct buildsym_compunit) <get_macro_table, release_macros>: New
4535 methods.
4536 <m_pending_macros>: New member.
4537 (pending_macros): Remove.
4538 (~scoped_free_pendings, get_macro_table, prepare_for_building)
4539 (reset_symtab_globals, end_symtab_get_static_block)
4540 (end_symtab_with_blockvector, augment_type_symtab)
4541 (buildsym_init): Update.
4542
c0015d44
TT
45432018-07-16 Tom Tromey <tom@tromey.com>
4544
4545 * buildsym.c (buildsym_compunit::buildsym_compunit): Add name
4546 parameter.
4547 (buildsym_compunit::set_last_source_file): New method.
4548 <m_last_source_file>: New member.
4549 (prepare_for_building): Remove "name" parameter.
4550 (start_symtab, restart_symtab, reset_symtab_globals): Update.
4551 (last_source_file): Remove.
4552 (set_last_source_file, get_last_source_file): Update.
4553
e62cca7c
TT
45542018-07-16 Tom Tromey <tom@tromey.com>
4555
4556 * buildsym.c (prepare_for_building): Add assert.
4557
905eb0e2
TT
45582018-07-16 Tom Tromey <tom@tromey.com>
4559
4560 * buildsym.c (~buildsym_compunit): Update.
4561 (struct buildsym_compunit) <comp_unit>: Now a unique_xmalloc_ptr.
4562 (start_subfile, patch_subfile_names)
4563 (end_symtab_with_blockvector): Update.
4564
b248663f
TT
45652018-07-16 Tom Tromey <tom@tromey.com>
4566
4567 * buildsym.c (struct buildsym_compunit): Add constructor,
4568 destructor, initializers.
4569 (start_buildsym_compunit): Remove.
4570 (free_buildsym_compunit): Use "delete".
4571 (start_symtab, restart_symtab): Use "new".
4572
ff27d073
SM
45732018-07-13 Simon Marchi <simon.marchi@polymtl.ca>
4574
4575 * symfile.c (set_objfile_default_section_offset): Remove struct
4576 keyword.
4577
6a15ecf5
SH
45782018-07-14 Stafford Horne <shorne@gmail.com>
4579
4580 * (Responsible Maintainers): Add myself as or1k maintainer.
4581
027a4c30
TT
45822018-07-13 Tom Tromey <tom@tromey.com>
4583
4584 * symfile.c (set_objfile_default_section_offset): Use extra braces
4585 around initializer.
4586
5c1eda30
AA
45872018-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
4588
4589 * s390-tdep.c (s390_displaced_step_fixup): Adjust PC for a
4590 non-branching basr.
4591
bc7b042b
PW
45922018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4593
4594 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
4595 unittests/cli-utils-selftests.c
4596 * unittests/cli-utils-selftests.c: New file.
4597
a14c4daa
PW
45982018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4599
4600 * NEWS: Mention new commands. Mention change to 'thread apply'.
4601
1fe75df7
PW
46022018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4603
4604 * thread.c (thr_try_catch_cmd): New function.
4605 (thread_apply_all_command): Handle qcs flags.
4606 (thread_apply_command): Handle qcs flags.
4607 (taas_command): New function.
4608 (tfaas_command): New function.
4609 (_initialize_thread): Update to setup the new commands 'taas
4610 and 'tfaas'. Change doc string for 'thread apply'.
4611
6a70eb7d
PW
46122018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4613
4614 * stack.c: (trailing_outermost_frame): New function, mostly
4615 extracted from backtrace_command_1.
4616 (leading_innermost_frame): New function.
4617 (backtrace_command_1): Update to call trailing_outermost_frame.
4618 (frame_apply_command_count): New function.
4619 (frame_apply_level_command): New function.
4620 (frame_apply_all_command): New function.
4621 (frame_apply_command): New function.
4622 (faas_command): New function.
4623 (frame_cmd_list): New variable.
4624 (_initialize_stack): Update to setup the new commands 'frame apply'
4625 and 'faas'.
4626
529c08b2
PW
46272018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4628
4629 * cli-utils.c (number_or_range_parser::get_number): Only handle
4630 numbers or convenience var as numbers.
4631 (parse_flags): New function.
4632 (parse_flags_qcs): New function.
4633 (number_or_range_parser::finished): Ensure parsing end is detected
4634 before end of string.
4635 * cli-utils.h (parse_flags): New function.
4636 (parse_flags_qcs): New function.
4637 (number_or_range_parser): Remove m_finished bool.
4638 (number_or_range_parser::skip_range): Set m_in_range to false.
4639
64b58472
SDJ
46402018-07-12 Sergio Durigan Junior <sergiodj@redhat.com>
4641
4642 * ser-tcp.c (try_connect): Declare 'ioarg' as 'u_long' if building
4643 on Windows.
4644
c7ab0aef
SDJ
46452018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
4646 Jan Kratochvil <jan.kratochvil@redhat.com>
4647 Paul Fertser <fercerpav@gmail.com>
4648 Tsutomu Seki <sekiriki@gmail.com>
4649 Pedro Alves <palves@redhat.com>
4650
4651 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
4652 'unittests/parse-connection-spec-selftests.c'.
4653 (COMMON_SFILES): Add 'common/netstuff.c'.
4654 (HFILES_NO_SRCDIR): Add 'common/netstuff.h'.
4655 * NEWS (Changes since GDB 8.2): Mention IPv6 support.
4656 * common/netstuff.c: New file.
4657 * common/netstuff.h: New file.
4658 * ser-tcp.c: Include 'netstuff.h' and 'wspiapi.h'.
4659 (wait_for_connect): Update comment. New parameter
4660 'gdb::optional<int> sock' instead of 'struct serial *scb'.
4661 Use 'sock' directly instead of 'scb->fd'.
4662 (try_connect): New function, with code from 'net_open'.
4663 (net_open): Rewrite main loop to deal with multiple
4664 sockets/addresses. Handle IPv6-style hostnames; implement
4665 support for IPv6 connections.
4666 * unittests/parse-connection-spec-selftests.c: New file.
4667
4c7333b3
PA
46682018-07-11 Pedro Alves <palves@redhat.com>
4669
4670 PR gdb/23377
4671 * remote.c (remote_target::remote_detach_pid): Call
4672 set_current_process.
4673
a6f88f6e
PA
46742018-07-11 Pedro Alves <palves@redhat.com>
4675
4676 * h8300-tdep.c (h8300_gdbarch_init): Remove
4677 set_gdbarch_ecoff_reg_to_regnum calls.
4678
16ff70dd
SDJ
46792018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
4680
4681 PR c++/23373
4682 * c-typeprint.c (c_type_print_base_struct_union): Don't print
4683 offsets/sizes for static members of a class/struct.
4684
12863263
AH
46852018-07-11 Alan Hayward <alan.hayward@arm.com>
4686
4687 * target-descriptions.c (tdesc_register_bitsize): Rename.
4688 * target-descriptions.h (tdesc_register_bitsize): Likewise.
4689 * rs6000-tdep.c (rs6000_gdbarch_init): Use new name.
4690 * aarch64-tdep.c (aarch64_get_tdesc_vq): Convert size.
4691
1123588c
TT
46922018-07-10 Tom Tromey <tom@tromey.com>
4693
4694 * breakpoint.c (moribund_locations): Now static and a
4695 std::vector.
4696 (breakpoint_init_inferior, moribund_breakpoint_here_p)
4697 (build_bpstat_chain, update_global_location_list)
4698 (breakpoint_retire_moribund): Update.
4699 * breakpoint.h (bp_location_p): Remove typedef. Don't declare
4700 VEC.
4701
8c49aa89
AB
47022018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
4703
4704 * riscv-tdep.c (riscv_is_fp_regno_p): New function.
4705 (riscv_register_reggroup_p): Use new function, remove unneeded
4706 parenthesis.
4707 (riscv_push_dummy_call): Extend assert to compare against xlen or
4708 flen based on register type.
4709
42ecac17
AB
47102018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
4711
4712 * riscv-tdep.c (riscv_print_arg_location): Use TYPE_SAFE_NAME.
4713
055303e2
AB
47142018-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4715
4716 * remote.c (show_hardware_watchpoint_limit): New function.
4717 (show_hardware_watchpoint_length_limit): New function.
4718 (show_hardware_breakpoint_limit): New function.
4719 (_initialize_remote): Use add_setshow_zuinteger_unlimited_cmd
4720 where appropriate, update help text.
4721
8fd32c1c
TT
47222018-07-09 Tom Tromey <tom@tromey.com>
4723
4724 * Makefile.in (CDEPS): Don't mention XM_CDEPS.
4725 (CLIBS): Don't mention NAT_CLIBS.
4726
31278b51
TT
47272018-07-09 Tom Tromey <tom@tromey.com>
4728
4729 * Makefile.in (ADD_FILES, ADD_DEPS): Remove.
4730 (LIBGDB_OBS, clean mostlyclean): Update.
4731 (gdb$(EXEEXT), insight$(EXEEXT)): Update.
4732
e5fd1493
TT
47332018-07-09 Tom Tromey <tom@tromey.com>
4734
4735 * Makefile.in (%.c: %.y): Use ECHO_YACC.
4736 (%.c: %.l): Use ECHO_LEX. Just fail if flex not available.
4737 * silent-rules.mk (ECHO_YACC, ECHO_LEX): New variables.
4738
981e0c0c
TT
47392018-07-09 Tom Tromey <tom@tromey.com>
4740
4741 * Makefile.in (ALLDEPFILES): Remove exec.c.
4742 (COMMON_OBS): Remove exec.o.
4743 (COMMON_SFILES): Add exec.c.
4744
14ccceb2
TT
47452018-07-09 Tom Tromey <tom@tromey.com>
4746
4747 * Makefile.in (LINT, LINTFLAGS, LINTFILES, lint): Remove.
4748
5d3c3a68
TT
47492018-07-09 Tom Tromey <tom@tromey.com>
4750
4751 * Makefile.in (clean mostlyclean): Remove stamp-version.
4752 (version.c): Depend on stamp-version.
4753 (stamp-version): New rule, from version.c rule.
4754
1998086d
TT
47552018-07-09 Tom Tromey <tom@tromey.com>
4756
4757 * Makefile.in (init.c): Depend on stamp-init.
4758 (stamp-init): New rule, from init.c rule.
4759 (clean mostlyclean): Remove stamp-init.
4760
4c754949
TT
47612018-07-09 Tom Tromey <tom@tromey.com>
4762
4763 * Makefile.in (INIT_FILES): Remove CONFIG_SRCS,
4764 SUBDIR_GCC_COMPILE_SRCS.
4765
6497f1dd
TT
47662018-07-09 Tom Tromey <tom@tromey.com>
4767
4768 * Makefile.in (init.c): Remove some unused sed rules.
4769
97a34db9
TT
47702018-07-09 Tom Tromey <tom@tromey.com>
4771
4772 * Makefile.in (TSOBS): Remove.
4773 (INIT_FILES): Update.
4774 (LIBGDB_OBS): Update.
4775 (COMMON_SFILES): Add inflow.c.
4776 (SFILES): Remove inflow.c.
4777
25289ac1
JK
47782018-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4779
4780 * contrib/gdb-add-index.sh ($dwarf5): New, use it.
4781
e83f4d97
SM
47822018-07-07 Simon Marchi <simon.marchi@polymtl.ca>
4783
4869c585
SM
4784 * ia64-libunwind-tdep.c (get_reg_name, get_fpreg_name,
4785 get_saveloc_name, is_signal_frame_name, step_name,
4786 init_remote_name, create_addr_space_name,
4787 destroy_addr_space_name, search_unwind_table_name,
4788 find_dyn_list_name): Constify.
e83f4d97 4789
6821842f
SM
47902018-07-05 Simon Marchi <simon.marchi@polymtl.ca>
4791
4792 * darwin-nat.c (darwin_pthread_kill): New function.
4793 (darwin_resume_thread): Use darwin_pthread_kill.
4794
c530603c
TV
47952018-07-05 Tom de Vries <tdevries@suse.de>
4796
4797 * macroexp.c (macro_buffer) <operator=>: New member function.
4798
a7d0f0f0
TT
47992018-07-04 Tom Tromey <tom@tromey.com>
4800
4801 * darwin-nat.c (darwin_attach_pid): Use exit_inferior.
4802
6242c6a6
SM
48032018-07-04 Simon Marchi <simon.marchi@polymtl.ca>
4804
4805 * common/common-defs.h (HAVE_USEFUL_SBRK): Define.
4806 * main.c: Use HAVE_USEFUL_SBRK instead of HAVE_SBRK.
4807 * maint.c: Likewise.
4808 * top.c: Likewise.
4809
4e5b2f89
JB
48102018-07-04 Joel Brobecker <brobecker@adacore.com>
4811
4812 * NEWS: Create a new section for the next release branch.
4813 Rename the section of the current branch, now that it has
4814 been cut.
4815
538ccc4a
JB
48162018-07-04 Joel Brobecker <brobecker@adacore.com>
4817
4818 GDB 8.2 branch created (1b919490e8ba30bf1d6941df0ed112b0e557017e):
4819 * version.in: Bump version to 8.2.50.DATE-git.
4820
1b919490
VB
48212018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
4822 Pedro Alves <palves@redhat.com>
4823
4824 * linux-nat.c (linux_init_ptrace): Rename to ...
4825 (linux_init_ptrace_procfs): ... this. Call
4826 linux_proc_init_warnings.
4827 (linux_nat_target::post_attach)
4828 (linux_nat_target::post_startup_inferior): Adjust.
4829 * nat/linux-procfs.c (linux_proc_init_warnings): Define function.
4830 * nat/linux-procfs.h (linux_proc_init_warnings): Declare function.
4831
1ea5da02
TV
48322018-07-04 Tom de Vries <tdevries@suse.de>
4833
4834 * dwarf2read.c (error_check_comp_unit_head): Move dwarf version
4835 check ...
4836 (read_comp_unit_head): ... here.
4837
f51e0e20
TT
48382018-07-03 Tom Tromey <tom@tromey.com>
4839
4840 * tracepoint.c (process_tracepoint_on_disconnect, start_tracing)
4841 (stop_tracing, tstatus_command)
4842 (find_matching_tracepoint_location, merge_uploaded_tracepoints)
4843 (print_one_static_tracepoint_marker): Update.
4844 * breakpoint.c (static_tracepoints_here, all_tracepoints): Return
4845 std::vector.
4846 * breakpoint.h (breakpoint_p): Remove typedef. Don't declare
4847 VEC.
4848 (all_tracepoints, static_tracepoints_here): Return std::vector.
4849
d7e15655
TT
48502018-07-03 Tom Tromey <tom@tromey.com>
4851
4852 * common/ptid.c (ptid_equal): Remove.
4853 * common/ptid.h (ptid_equal): Don't declare.
4854 * ada-tasks.c: Update.
4855 * breakpoint.c: Update.
4856 * common/agent.c: Update.
4857 * corelow.c: Update.
4858 * darwin-nat-info.c: Update.
4859 * darwin-nat.c: Update.
4860 * dcache.c: Update.
4861 * dtrace-probe.c: Update.
4862 * dummy-frame.c: Update.
4863 * fbsd-nat.c: Update.
4864 * frame.c: Update.
4865 * gdbthread.h: Update.
4866 * gnu-nat.c: Update.
4867 * go32-nat.c: Update.
4868 * inf-loop.c: Update.
4869 * inf-ptrace.c: Update.
4870 * infcall.c: Update.
4871 * infcmd.c: Update.
4872 * inflow.c: Update.
4873 * infrun.c: Update.
4874 * linux-fork.c: Update.
4875 * linux-nat.c: Update.
4876 * linux-thread-db.c: Update.
4877 * mi/mi-cmd-var.c: Update.
4878 * mi/mi-interp.c: Update.
4879 * mi/mi-main.c: Update.
4880 * nto-procfs.c: Update.
4881 * ppc-linux-tdep.c: Update.
4882 * procfs.c: Update.
4883 * python/py-inferior.c: Update.
4884 * python/py-record-btrace.c: Update.
4885 * python/py-record.c: Update.
4886 * ravenscar-thread.c: Update.
4887 * regcache.c: Update.
4888 * remote-sim.c: Update.
4889 * remote.c: Update.
4890 * sol-thread.c: Update.
4891 * solib.c: Update.
4892 * target.c: Update.
4893 * tui/tui-stack.c: Update.
4894 * varobj.c: Update.
4895 * windows-nat.c: Update.
4896 * windows-tdep.c: Update.
4897
26a57c92
TT
48982018-07-03 Tom Tromey <tom@tromey.com>
4899
4900 * common/ptid.c (ptid_match): Remove.
4901 * common/ptid.h (ptid_match): Don't declare.
4902 * fbsd-nat.c: Update.
4903 * infcmd.c: Update.
4904 * infrun.c: Update.
4905 * linux-nat.c: Update.
4906 * record-btrace.c: Update.
4907 * regcache.c: Update.
4908 * remote.c: Update.
4909
d2a107e3
TT
49102018-07-03 Tom Tromey <tom@tromey.com>
4911
4912 * common/ptid.c (ptid_tid_p): Remove.
4913 * common/ptid.h (ptid_tid_p): Don't declare.
4914 * sol-thread.c: Update.
4915
15a9e13e
TT
49162018-07-03 Tom Tromey <tom@tromey.com>
4917
4918 * common/ptid.c (ptid_lwp_p): Remove.
4919 * common/ptid.h (ptid_lwp_p): Don't declare.
4920 * fbsd-nat.c: Update.
4921 * linux-nat.c: Update.
4922 * nat/linux-procfs.c: Update.
4923 * nat/x86-linux-dregs.c: Update.
4924 * sol-thread.c: Update.
4925
0e998d96
TT
49262018-07-03 Tom Tromey <tom@tromey.com>
4927
4928 * common/ptid.c (ptid_is_pid): Remove.
4929 * common/ptid.h (ptid_is_pid): Don't declare.
4930 * infrun.c: Update.
4931 * linux-nat.c: Update.
4932 * mi/mi-interp.c: Update.
4933 * remote.c: Update.
4934 * thread.c: Update.
4935
cc6bcb54
TT
49362018-07-03 Tom Tromey <tom@tromey.com>
4937
4938 * common/ptid.c (ptid_get_tid): Remove.
4939 * common/ptid.h (ptid_get_tid): Don't declare.
4940 * ada-tasks.c: Update.
4941 * aix-thread.c: Update.
4942 * bsd-uthread.c: Update.
4943 * darwin-nat.c: Update.
4944 * fbsd-nat.c: Update.
4945 * i386-darwin-nat.c: Update.
4946 * infrun.c: Update.
4947 * linux-tdep.c: Update.
4948 * nto-procfs.c: Update.
4949 * ppc-ravenscar-thread.c: Update.
4950 * python/py-infthread.c: Update.
4951 * ravenscar-thread.c: Update.
4952 * sol-thread.c: Update.
4953 * sparc-ravenscar-thread.c: Update.
4954 * windows-nat.c: Update.
4955
e38504b3
TT
49562018-07-03 Tom Tromey <tom@tromey.com>
4957
4958 * common/ptid.c (ptid_get_lwp): Remove.
4959 * common/ptid.h (ptid_get_lwp): Don't declare.
4960 * aarch64-linux-nat.c: Update.
4961 * ada-tasks.c: Update.
4962 * aix-thread.c: Update.
4963 * amd64-linux-nat.c: Update.
4964 * arm-linux-nat.c: Update.
4965 * corelow.c: Update.
4966 * fbsd-nat.c: Update.
4967 * fbsd-tdep.c: Update.
4968 * gnu-nat.c: Update.
4969 * i386-cygwin-tdep.c: Update.
4970 * i386-gnu-nat.c: Update.
4971 * i386-linux-nat.c: Update.
4972 * ia64-linux-nat.c: Update.
4973 * inf-ptrace.c: Update.
4974 * infrun.c: Update.
4975 * linux-fork.c: Update.
4976 * linux-nat.c: Update.
4977 * linux-tdep.c: Update.
4978 * linux-thread-db.c: Update.
4979 * mips-linux-nat.c: Update.
4980 * nat/aarch64-linux-hw-point.c: Update.
4981 * nat/aarch64-linux.c: Update.
4982 * nat/linux-btrace.c: Update.
4983 * nat/linux-osdata.c: Update.
4984 * nat/linux-procfs.c: Update.
4985 * nat/x86-linux-dregs.c: Update.
4986 * obsd-nat.c: Update.
4987 * ppc-fbsd-nat.c: Update.
4988 * ppc-linux-nat.c: Update.
4989 * procfs.c: Update.
4990 * python/py-infthread.c: Update.
4991 * ravenscar-thread.c: Update.
4992 * remote.c: Update.
4993 * s390-linux-nat.c: Update.
4994 * sol-thread.c: Update.
4995 * sol2-tdep.c: Update.
4996 * spu-linux-nat.c: Update.
4997 * x86-linux-nat.c: Update.
4998 * xtensa-linux-nat.c: Update.
4999
e99b03dc
TT
50002018-07-03 Tom Tromey <tom@tromey.com>
5001
5002 * common/ptid.c (ptid_get_pid): Remove.
5003 * common/ptid.h (ptid_get_pid): Don't declare.
5004 * aarch64-linux-nat.c: Update.
5005 * ada-lang.c: Update.
5006 * aix-thread.c: Update.
5007 * alpha-bsd-nat.c: Update.
5008 * amd64-fbsd-nat.c: Update.
5009 * amd64-linux-nat.c: Update.
5010 * arm-linux-nat.c: Update.
5011 * arm-nbsd-nat.c: Update.
5012 * auxv.c: Update.
5013 * break-catch-syscall.c: Update.
5014 * breakpoint.c: Update.
5015 * bsd-uthread.c: Update.
5016 * corelow.c: Update.
5017 * ctf.c: Update.
5018 * darwin-nat.c: Update.
5019 * fbsd-nat.c: Update.
5020 * fbsd-tdep.c: Update.
5021 * gcore.c: Update.
5022 * gnu-nat.c: Update.
5023 * hppa-nbsd-nat.c: Update.
5024 * hppa-obsd-nat.c: Update.
5025 * i386-fbsd-nat.c: Update.
5026 * ia64-linux-nat.c: Update.
5027 * inf-ptrace.c: Update.
5028 * infcmd.c: Update.
5029 * inferior.c: Update.
5030 * inferior.h: Update.
5031 * inflow.c: Update.
5032 * infrun.c: Update.
5033 * linux-fork.c: Update.
5034 * linux-nat.c: Update.
5035 * linux-tdep.c: Update.
5036 * linux-thread-db.c: Update.
5037 * m68k-bsd-nat.c: Update.
5038 * mi/mi-interp.c: Update.
5039 * mi/mi-main.c: Update.
5040 * mips-linux-nat.c: Update.
5041 * mips-nbsd-nat.c: Update.
5042 * mips64-obsd-nat.c: Update.
5043 * nat/aarch64-linux-hw-point.c: Update.
5044 * nat/aarch64-linux.c: Update.
5045 * nat/linux-btrace.c: Update.
5046 * nat/linux-osdata.c: Update.
5047 * nat/linux-procfs.c: Update.
5048 * nat/x86-linux-dregs.c: Update.
5049 * nto-procfs.c: Update.
5050 * obsd-nat.c: Update.
5051 * ppc-linux-nat.c: Update.
5052 * ppc-nbsd-nat.c: Update.
5053 * ppc-obsd-nat.c: Update.
5054 * proc-service.c: Update.
5055 * procfs.c: Update.
5056 * python/py-inferior.c: Update.
5057 * python/py-infthread.c: Update.
5058 * ravenscar-thread.c: Update.
5059 * record.c: Update.
5060 * remote-sim.c: Update.
5061 * remote.c: Update.
5062 * rs6000-nat.c: Update.
5063 * s390-linux-nat.c: Update.
5064 * sh-nbsd-nat.c: Update.
5065 * sol-thread.c: Update.
5066 * sparc-nat.c: Update.
5067 * sparc64-tdep.c: Update.
5068 * spu-linux-nat.c: Update.
5069 * spu-tdep.c: Update.
5070 * target-debug.h: Update.
5071 * target.c: Update.
5072 * thread.c: Update.
5073 * tid-parse.c: Update.
5074 * tracefile-tfile.c: Update.
5075 * vax-bsd-nat.c: Update.
5076 * windows-nat.c: Update.
5077 * x86-linux-nat.c: Update.
5078 * x86-nat.c: Update.
5079
f2907e49
TT
50802018-07-03 Tom Tromey <tom@tromey.com>
5081
5082 * common/ptid.c (pid_to_ptid): Remove.
5083 * common/ptid.h (pid_to_ptid): Don't declare.
5084 * aix-thread.c: Update.
5085 * arm-linux-nat.c: Update.
5086 * common/ptid.c: Update.
5087 * common/ptid.h: Update.
5088 * corelow.c: Update.
5089 * ctf.c: Update.
5090 * darwin-nat.c: Update.
5091 * fbsd-nat.c: Update.
5092 * fork-child.c: Update.
5093 * gnu-nat.c: Update.
5094 * go32-nat.c: Update.
5095 * inf-ptrace.c: Update.
5096 * infcmd.c: Update.
5097 * inferior.c: Update.
5098 * infrun.c: Update.
5099 * linux-fork.c: Update.
5100 * linux-nat.c: Update.
5101 * nat/aarch64-linux-hw-point.c: Update.
5102 * nat/fork-inferior.c: Update.
5103 * nat/x86-linux-dregs.c: Update.
5104 * nto-procfs.c: Update.
5105 * obsd-nat.c: Update.
5106 * procfs.c: Update.
5107 * progspace.c: Update.
5108 * remote.c: Update.
5109 * rs6000-nat.c: Update.
5110 * s390-linux-nat.c: Update.
5111 * sol-thread.c: Update.
5112 * spu-linux-nat.c: Update.
5113 * target.c: Update.
5114 * top.c: Update.
5115 * tracefile-tfile.c: Update.
5116 * windows-nat.c: Update.
5117
fd79271b
TT
51182018-07-03 Tom Tromey <tom@tromey.com>
5119
5120 * common/ptid.h (ptid_build): Don't declare.
5121 * common/ptid.c (ptid_build): Remove.
5122 * aix-thread.c: Update.
5123 * bsd-kvm.c: Update.
5124 * bsd-uthread.c: Update.
5125 * common/agent.c: Update.
5126 * common/ptid.c: Update.
5127 * common/ptid.h: Update.
5128 * corelow.c: Update.
5129 * darwin-nat.c: Update.
5130 * fbsd-nat.c: Update.
5131 * gnu-nat.c: Update.
5132 * linux-fork.c: Update.
5133 * linux-nat.c: Update.
5134 * linux-thread-db.c: Update.
5135 * nat/linux-osdata.c: Update.
5136 * nat/linux-procfs.c: Update.
5137 * nto-procfs.c: Update.
5138 * obsd-nat.c: Update.
5139 * proc-service.c: Update.
5140 * procfs.c: Update.
5141 * ravenscar-thread.c: Update.
5142 * remote-sim.c: Update.
5143 * remote.c: Update.
5144 * sol-thread.c: Update.
5145 * target.c: Update.
5146 * windows-nat.c: Update.
5147
057302ce
TT
51482018-07-03 Tom Tromey <tom@tromey.com>
5149
5150 * infrun.c (follow_exec): Use exit_inferior_silent.
5151 * inferior.c (exit_inferior_num_silent): Remove.
5152 * inferior.h (exit_inferior_num_silent): Don't declare.
5153
a50c11c6
TT
51542018-07-03 Tom Tromey <tom@tromey.com>
5155
5156 PR cli/23340:
5157 * darwin-nat.c (darwin_attach_pid): Reset inferior and
5158 inferior_ptid on error.
5159
471b9d15
MR
51602018-07-02 Maciej W. Rozycki <macro@mips.com>
5161 Simon Marchi <simon.marchi@polymtl.ca>
5162
5163 PR tdep/8282
5164 * disasm.h (gdb_disassembler): Add
5165 `m_disassembler_options_holder'. member
5166 * disasm.c (get_all_disassembler_options): New function.
5167 (gdb_disassembler::gdb_disassembler): Use it.
5168 (gdb_buffered_insn_length_init_dis): Likewise.
5169 (gdb_buffered_insn_length): Adjust accordingly.
5170 (set_disassembler_options): Handle options with arguments.
5171 (show_disassembler_options_sfunc): Likewise. Add a leading new
5172 line if showing options with descriptions.
5173 (disassembler_options_completer): Adapt to using the
5174 `disasm_options_and_args_t' structure.
5175 * mips-tdep.c (mips_disassembler_options): New variable.
5176 (mips_disassembler_options_o32): Likewise.
5177 (mips_disassembler_options_n32): Likewise.
5178 (mips_disassembler_options_n64): Likewise.
5179 (gdb_print_insn_mips): Don't set `disassembler_options'.
5180 (gdb_print_insn_mips_n32, gdb_print_insn_mips_n64): Remove
5181 functions.
5182 (mips_gdbarch_init): Always set `gdbarch_print_insn' to
5183 `gdb_print_insn_mips'. Set `gdbarch_disassembler_options',
5184 `gdbarch_disassembler_options_implicit' and
5185 `gdbarch_valid_disassembler_options'.
5186 * arm-tdep.c (_initialize_arm_tdep): Adapt to using the
5187 `disasm_options_and_args_t' structure.
5188 * gdbarch.sh (disassembler_options_implicit): New `gdbarch'
5189 method.
5190 (valid_disassembler_options): Switch from `disasm_options_t' to
5191 the `disasm_options_and_args_t' structure.
5192 * NEWS: Document `set disassembler-options' support for the MIPS
5193 target.
5194 * gdbarch.h: Regenerate.
5195 * gdbarch.c: Regenerate.
5196
41823f29
SH
51972018-07-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
5198
5199 * riscv-tdep.c (riscv_register_aliases): Swap "fp" and "s0" entries.
5200
41206e32
JB
52012018-06-29 Joel Brobecker <brobecker@adacore.com>
5202
5203 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Add missing
5204 parameter in call to amd64_target_description.
5205 * amd64-dicos-tdep.c (amd64_dicos_init_abi): Likewise.
5206 * amd64-fbsd-tdep.c (amd64fbsd_core_read_description)
5207 (amd64fbsd_init_abi): Likewise.
5208 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
5209 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
5210 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
5211 * amd64-fbsd-nat.c (amd64_fbsd_nat_target): Likewise.
5212
de52b960
PA
52132018-06-29 Pedro Alves <palves@redhat.com>
5214
5215 * gdb/amd64-tdep.h (amd64_create_target_description): Add
5216 "segments" parameter.
5217 * gdb/amd64-tdep.c (amd64_none_init_abi, amd64_x32_none_init_abi)
5218 (_initialize_amd64_tdep): Update call to
5219 amd64_create_target_description.
5220 (amd64_target_description): Add "segments" parameter. Adjust
5221 the implementation to use it.
5222 * gdb/amd64-linux-tdep.c (amd64_linux_read_description): Update
5223 call to amd64_create_target_description.
5224 * gdb/amd64-windows-tdep.c (amd64_windows_init_abi): Likewise.
5225 * gdb/arch/amd64.h (amd64_create_target_description): Add
5226 "segments" register.
5227 * gdb/arch/amd64.c (amd64_create_target_description): Add
5228 "segments" parameter. Call create_feature_i386_64bit_segments
5229 only if SEGMENTS is true.
5230 * gdb/gdbserver/win32-i386-low.c (i386_arch_setup): Update
5231 call to amd64_create_target_description.
5232
75acb486
PA
52332018-06-29 Pedro Alves <palves@redhat.com>
5234
5235 * thread.c (thread_target_id_str): New, factored out from ...
5236 (print_thread_info_1): ... here. Use it to compute the max
5237 "Target Id" column width.
5238
c76a8ea3
PA
52392018-06-29 Pedro Alves <palves@redhat.com>
5240
5241 * remote.c (remote_target::extra_thread_info): Delete
5242 'display_buf' and 'n' locals. from the cache, regardless of
5243 packet mechanims is in use. Use cache for qThreadExtra and qP
5244 methods too.
5245
cd2bb709
PA
52462018-06-29 Pedro Alves <palves@redhat.com>
5247
5248 * blockframe.c (find_pc_sect_containing_function): New function.
5249 * breakpoint.c (print_breakpoint_location): Don't call
5250 find_pc_sect_function.
5251 * linespec.c (create_sals_line_offset): Record the location's
5252 symbol in the sal.
5253 * linespec.c (convert_address_location_to_sals): Fill in sal's
5254 symbol with find_pc_sect_containing_function.
5255 * symtab.c (find_function_start_sal): Rename to ...
5256 (find_function_start_sal_1): ... this.
5257 (find_function_start_sal): Reimplement as wrapper around
5258 find_function_start_sal_1, and use
5259 find_pc_sect_containing_function to fill in the sal's symbol.
5260 (find_function_start_sal(symbol*, bool)): Adjust.
5261 * symtab.h (find_pc_function, find_pc_sect_function): Adjust
5262 comments.
5263 (find_pc_sect_containing_function): Declare.
5264
991ff292
PA
52652018-06-29 Pedro Alves <palves@redhat.com>
5266
5267 * inline-frame.c (stopped_by_user_bp_inline_frame): Return
5268 true if the the location has no symbol.
5269
44cee4fd
TT
52702018-06-28 Tom Tromey <tom@tromey.com>
5271
5272 * NEWS: Mention --enable-codesign.
5273 * silent-rules.mk (ECHO_SIGN): New variable.
5274 * configure.ac: Add --enable-codesign.
5275 * configure: Rebuild.
5276 * Makefile.in (CODESIGN, CODESIGN_CERT): New variables.
5277 (gdb$(EXEEXT)): Optionally invoke codesign.
5278
f2ffa92b
PA
52792018-06-28 Pedro Alves <palves@redhat.com>
5280
5281 * gdbthread.h (struct thread_suspend_state) <stop_pc>: Extend
5282 comments.
5283 (switch_to_thread_no_regs): Adjust comment.
5284 * infcmd.c (stop_pc): Delete.
5285 (post_create_inferior, info_program_command): Replace references
5286 to stop_pc with references to thread_info->suspend.stop_pc.
5287 * inferior.h (stop_pc): Delete declaration.
5288 * infrun.c (proceed, handle_syscall_event, fill_in_stop_func)
5289 (handle_inferior_event_1, handle_signal_stop)
5290 (process_event_stop_test, keep_going_stepped_thread)
5291 (handle_step_into_function, handle_step_into_function_backward)
5292 (print_stop_location): Replace references to stop_pc with
5293 references to thread_info->suspend.stop_pc.
5294 (struct infcall_suspend_state) <stop_pc>: Delete field.
5295 (save_infcall_suspend_state, restore_infcall_suspend_state):
5296 Remove references to inf_stat->stop_pc.
5297 * linux-fork.c (fork_load_infrun_state): Likewise.
5298 * record-btrace.c (record_btrace_set_replay): Likewise.
5299 * record-full.c (record_full_goto_entry): Likewise.
5300 * remote.c (print_one_stopped_thread): Likewise.
5301 * target.c (target_resume): Extend comment.
5302 * thread.c (set_executing_thread): New.
5303 (set_executing): Use it.
5304 (switch_to_thread_no_regs, switch_to_no_thread, switch_to_thread):
5305 Remove references to stop_pc.
5306
ecdc3a72
PA
53072018-06-28 Pedro Alves <palves@redhat.com>
5308
5309 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>:
5310 Moving fetching stop_pc until after ecs->event_thread is refreshed.
5311
d95d3aef
TT
53122018-06-28 Tom Tromey <tom@tromey.com>
5313
5314 * coffread.c (coff_symfile_finish): Update.
5315 * xcoffread.c (xcoff_symfile_finish): Update.
5316 * elfread.c (elf_symfile_finish): Update.
5317 * symfile.h (dwarf2_free_objfile): Don't declare.
5318 * dwarf2read.c (_initialize_dwarf2_read): Use
5319 register_objfile_data_with_cleanup.
5320 (dwarf2_free_objfile): Now static. Change signature.
5321
291f9a96
PT
53222018-06-28 Petr Tesarik <ptesarik@suse.cz>
5323
5324 * symfile.c (add_symbol_file_command, _initialize_symfile): Add
5325 option "-o" to add-symbol-file-load to add an offset to each
5326 section's load address.
5327 * symfile.c (set_objfile_default_section_offset): New function.
5328
d81a3eaf
PT
53292018-06-28 Petr Tesarik <ptesarik@suse.cz>
5330
5331 * symfile.c (add_symbol_file_command): Make sure that sections
5332 with the same name are sorted in the same order.
5333
ed6dfe51
PT
53342018-06-28 Petr Tesarik <ptesarik@suse.cz>
5335
5336 * symfile.c (add_symbol_file_command, _initialize_symfile): Do not
5337 require the second argument. If omitted, load sections at the
5338 addresses specified in the file.
5339
d4d429d5
PT
53402018-06-28 Petr Tesarik <ptesarik@suse.cz>
5341
5342 * symfile.c (symbol_file_command, symbol_file_add_main_1)
5343 (_initialize_symfile): Add option "-o" to symbol-file to add an
5344 offset to each section of the symbol file.
5345
39b27ab6
PT
53462018-06-28 Petr Tesarik <ptesarik@suse.cz>
5347
5348 * MAINTAINERS (Write After Approval): Add Petr Tesarik.
5349
41827fc3
TT
53502018-06-27 Tom Tromey <tom@tromey.com>
5351
5352 * stack.c (_initialize_stack): Update "func" help text.
5353
0c6aef22
TT
53542018-06-27 Tom Tromey <tom@tromey.com>
5355
5356 * python/py-unwind.c (unwind_info_object) <saved_regs>: Now a
5357 std::vector.
5358 (unwind_infopy_str, pyuw_create_unwind_info)
5359 (unwind_infopy_add_saved_register, pyuw_sniffer)
5360 (unwind_infopy_dealloc, unwind_infopy_add_saved_register):
5361 Update.
5362 (struct saved_reg): Add constructor.
5363 <value>: Now a gdbpy_ref<>.
5364
63177289
TT
53652018-06-27 Tom Tromey <tom@tromey.com>
5366
5367 * machoread.c (macho_symfile_read): Define "symbol_table" earlier.
5368
e76f78a0
SM
53692018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5370
5371 * gdb-gdb.py.in: Format using autopep8.
5372
9a14af7b
SM
53732018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5374
5375 * gdb-gdb.py.in (CoreAddrPrettyPrinter): New class.
5376 (type_lookup_function): Recognize CORE_ADDR values.
5377
189366cd
SM
53782018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5379
5380 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <to_string>: Don't
5381 print tag_name.
5382
68ad5fb9
SM
53832018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5384
5385 * gdb-gdb.py.in (TypeFlag) <__cmp__>: Remove.
5386 <__lt__>: Add.
5387
141ec9f6
SM
53882018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5389
5390 * gdb-gdb.py: Move to...
5391 * gdb-gdb.py.in: ... here.
5392 * configure.ac (AC_CONFIG_FILES): Add gdb-gdb.py.
5393 * Makefile.in (all): Add gdb-gdb.gdb and gdb-gdb.py as
5394 dependencies.
5395 (distclean): Remove gdb-gdb.py when cleaning.
5396 (gdb-gdb.py, gdb-gdb.gdb): New rules.
5397 * configure: Re-generate.
5398
4c4e7ad4
PA
53992018-06-27 Pedro Alves <palves@redhat.com>
5400
5401 * proc-service.c (get_ps_regcache): New.
5402 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
5403 (ps_lsetfpregs): Use it.
5404
7ab6656f
OJ
54052018-06-27 Omair Javaid <omair.javaid@linaro.org>
5406
5407 PR gdb/21695
5408 * dwarf2read.c (lnp_state_machine::check_line_address): Update declaration.
5409 (dwarf_decode_lines_1): Adjust.
5410
bd583225
SM
54112018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5412
5413 * fbsd-nat.h (class fbsd_nat_target) <find_memory_regions>: Add
5414 override.
5415 <info_proc>: Likewise.
5416
9a325b7b
JB
54172018-06-26 Joel Brobecker <brobecker@adacore.com>
5418
5419 * windows-nat.c (do_windows_fetch_inferior_registers): Rename
5420 to windows_fetch_one_register, and only handle the case of
5421 fetching one register. Move the code that reloads the context
5422 and iterates over all registers if R is negative to...
5423 (windows_nat_target::fetch_registers): ... here.
5424 (do_windows_store_inferior_registers): Rename to
5425 windows_store_one_register, and only handle the case of storing
5426 one register. Move the code that handles the case where r is
5427 negative to...
5428 (windows_nat_target::store_registers) ... here.
5429
a33ccfc7
TT
54302018-06-26 Tom Tromey <tom@tromey.com>
5431
5432 PR rust/22574:
5433 * typeprint.c (whatis_exp): Allow ptype/o for Rust.
5434 * rust-lang.c (rust_print_struct_def): Add podata parameter.
5435 Update.
5436 (rust_internal_print_type): Add podata parameter.
5437 (rust_print_type): Update.
5438
e0c547d1
TT
54392018-06-26 Tom Tromey <tom@tromey.com>
5440
5441 * typeprint.h (struct print_offset_data) <update, finish,
5442 maybe_print_hole>: New methods.
5443 <indentation>: New constant.
5444 * typeprint.c (print_offset_data::indentation): Define.
5445 (print_offset_data::maybe_print_hole, print_offset_data::update)
5446 (print_offset_data::finish): Move from c-typeprint.c and rename.
5447 * c-typeprint.c (OFFSET_SPC_LEN): Remove.
5448 (print_spaces_filtered_with_print_options): Update.
5449 (c_print_type_union_field_offset, maybe_print_hole)
5450 (c_print_type_struct_field_offset): Move to typeprint.c and
5451 rename.
5452 (c_type_print_base_struct_union): Update.
5453
75cbc781
PA
54542018-06-25 Pedro Alves <palves@redhat.com>
5455
5456 * gdbthread.h (thread_info_ref, delete_thread)
5457 (delete_thread_silent, first_thread_of_inferior)
5458 (any_thread_of_inferior, switch_to_thread)
5459 (enable_thread_stack_temporaries)
5460 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
5461 (get_last_thread_stack_temporary)
5462 (value_in_thread_stack_temporaries, can_access_registers_thread):
5463 Spell out "struct thread_info" instead of just "thread_info".
5464 * inferior.h (notice_new_inferior): Likewise.
5465
b7a08269
PA
54662018-06-25 Pedro Alves <palves@redhat.com>
5467
5468 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
5469 pass thread_info pointer to delete_thread.
5470 (windows_nat_target::detach): Pass inferior pointer to
5471 detach_inferior.
5472 * aix-thread.c (sync_threadlists): Pass thread_info pointer to
5473 delete_thread.
5474 * bsd-kvm.c (bsd_kvm_target::close): Use discard_all_inferiors.
5475 * darwin-nat.c (darwin_check_new_threads): Use find_thread_ptid
5476 and pass a thread_info pointer to delete_thread.
5477 * fbsd-nat.c (fbsd_nat_target::wait): Use find_thread_ptid and
5478 pass thread_info pointer to delete_thread.
5479 * go32-nat.c (go32_nat_target::mourn_inferior): Remove
5480 delete_thread_silent call.
5481 * procfs.c (procfs_target::detach): Pass inferior pointer to
5482 detach_inferior.
5483 (procfs_target::wait): Pass thread_info pointer to delete_thread.
5484 * remote-sim.c (gdbsim_target::mourn_inferior): Remove
5485 delete_thread_silent call.
5486 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
5487 pass thread_info pointer to delete_thread.
5488 (windows_nat_target::detach): Pass inferior pointer to
5489 delete_inferior.
5490
8e7767e3
AH
54912018-06-22 Alan Hayward <alan.hayward@arm.com>
5492
5493 * regcache.c (readable_regcache::read_part): Fix asserts.
5494 (reg_buffer::raw_collect_part): New function.
5495 (regcache::write_part): Fix asserts.
5496 (reg_buffer::raw_supply_part): New function.
5497 (regcache::transfer_regset_register): New helper function.
5498 (regcache::transfer_regset): Call new functions.
5499 (regcache_supply_regset): Use gdb_byte*.
5500 (regcache::supply_regset): Likewise.
5501 (regcache_collect_regset): Likewise.
5502 (regcache::collect_regset): Likewise.
5503 * regcache.h (reg_buffer::raw_collect_part): New declaration.
5504 (reg_buffer::raw_supply_part): Likewise.
5505 (regcache::transfer_regset_register): Likewise.
5506 (regcache::transfer_regset): Use gdb_byte*.
5507
bfd60e34
AH
55082018-06-22 Alan Hayward <alan.hayward@arm.com>
5509
5510 * nat/aarch64-sve-linux-ptrace.h (HAS_SVE_STATE): Use &.
5511
00431a78
PA
55122018-06-21 Pedro Alves <palves@redhat.com>
5513
5514 * ada-lang.h (ada_get_task_number): Take a thread_info pointer
5515 instead of a ptid_t. All callers adjusted.
5516 * ada-tasks.c (ada_get_task_number): Likewise. All callers
5517 adjusted.
5518 (print_ada_task_info, display_current_task_id, task_command_1):
5519 Adjust.
5520 * breakpoint.c (watchpoint_in_thread_scope): Adjust to use
5521 inferior_thread.
5522 (breakpoint_kind): Adjust.
5523 (remove_breakpoints_pid): Rename to ...
5524 (remove_breakpoints_inf): ... this. Adjust to take an inferior
5525 pointer. All callers adjusted.
5526 (bpstat_clear_actions): Use inferior_thread.
5527 (get_bpstat_thread): New.
5528 (bpstat_do_actions): Use it.
5529 (bpstat_check_breakpoint_conditions, bpstat_stop_status): Adjust
5530 to take a thread_info pointer. All callers adjusted.
5531 (set_longjmp_breakpoint_for_call_dummy, set_momentary_breakpoint)
5532 (breakpoint_re_set_thread): Use inferior_thread.
5533 * breakpoint.h (struct inferior): Forward declare.
5534 (bpstat_stop_status): Update.
5535 (remove_breakpoints_pid): Delete.
5536 (remove_breakpoints_inf): New.
5537 * bsd-uthread.c (bsd_uthread_target::wait)
5538 (bsd_uthread_target::update_thread_list): Use find_thread_ptid.
5539 * btrace.c (btrace_add_pc, btrace_enable, btrace_fetch)
5540 (maint_btrace_packet_history_cmd)
5541 (maint_btrace_clear_packet_history_cmd): Adjust.
5542 (maint_btrace_clear_cmd, maint_info_btrace_cmd): Adjust to use
5543 inferior_thread.
5544 * cli/cli-interp.c: Include "inferior.h".
5545 * common/refcounted-object.h (struct
5546 refcounted_object_ref_policy): New.
5547 * compile/compile-object-load.c: Include gdbthread.h.
5548 (store_regs): Use inferior_thread.
5549 * corelow.c (core_target::close): Use current_inferior.
5550 (core_target_open): Adjust to use first_thread_of_inferior and use
5551 the current inferior.
5552 * ctf.c (ctf_target::close): Adjust to use current_inferior.
5553 * dummy-frame.c (dummy_frame_id) <ptid>: Delete, replaced by ...
5554 <thread>: ... this new field. All references adjusted.
5555 (dummy_frame_pop, dummy_frame_discard, register_dummy_frame_dtor):
5556 Take a thread_info pointer instead of a ptid_t.
5557 * dummy-frame.h (dummy_frame_push, dummy_frame_pop)
5558 (dummy_frame_discard, register_dummy_frame_dtor): Take a
5559 thread_info pointer instead of a ptid_t.
5560 * elfread.c: Include "inferior.h".
5561 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop):
5562 Use inferior_thread.
5563 * eval.c (evaluate_subexp): Likewise.
5564 * frame.c (frame_pop, has_stack_frames, find_frame_sal): Use
5565 inferior_thread.
5566 * gdb_proc_service.h (struct thread_info): Forward declare.
5567 (struct ps_prochandle) <ptid>: Delete, replaced by ...
5568 <thread>: ... this new field. All references adjusted.
5569 * gdbarch.h, gdbarch.c: Regenerate.
5570 * gdbarch.sh (get_syscall_number): Replace 'ptid' parameter with a
5571 'thread' parameter. All implementations and callers adjusted.
5572 * gdbthread.h (thread_info) <set_running>: New method.
5573 (delete_thread, delete_thread_silent): Take a thread_info pointer
5574 instead of a ptid.
5575 (global_thread_id_to_ptid, ptid_to_global_thread_id): Delete.
5576 (first_thread_of_process): Delete, replaced by ...
5577 (first_thread_of_inferior): ... this new function. All callers
5578 adjusted.
5579 (any_live_thread_of_process): Delete, replaced by ...
5580 (any_live_thread_of_inferior): ... this new function. All callers
5581 adjusted.
5582 (switch_to_thread, switch_to_no_thread): Declare.
5583 (is_executing): Delete.
5584 (enable_thread_stack_temporaries): Update comment.
5585 <enable_thread_stack_temporaries>: Take a thread_info pointer
5586 instead of a ptid_t. Incref the thread.
5587 <~enable_thread_stack_temporaries>: Decref the thread.
5588 <m_ptid>: Delete
5589 <m_thr>: New.
5590 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
5591 (get_last_thread_stack_temporary)
5592 (value_in_thread_stack_temporaries, can_access_registers_thread):
5593 Take a thread_info pointer instead of a ptid_t. All callers
5594 adjusted.
5595 * infcall.c (get_call_return_value): Use inferior_thread.
5596 (run_inferior_call): Work with thread pointers instead of ptid_t.
5597 (call_function_by_hand_dummy): Work with thread pointers instead
5598 of ptid_t. Use thread_info_ref.
5599 * infcmd.c (proceed_thread_callback): Access thread's state
5600 directly.
5601 (ensure_valid_thread, ensure_not_running): Use inferior_thread,
5602 access thread's state directly.
5603 (continue_command): Use inferior_thread.
5604 (info_program_command): Use find_thread_ptid and access thread
5605 state directly.
5606 (proceed_after_attach_callback): Use thread state directly.
5607 (notice_new_inferior): Take a thread_info pointer instead of a
5608 ptid_t. All callers adjusted.
5609 (exit_inferior): Take an inferior pointer instead of a pid. All
5610 callers adjusted.
5611 (exit_inferior_silent): New.
5612 (detach_inferior): Delete.
5613 (valid_gdb_inferior_id, pid_to_gdb_inferior_id)
5614 (gdb_inferior_id_to_pid, in_inferior_list): Delete.
5615 (detach_inferior_command, kill_inferior_command): Use
5616 find_inferior_id instead of valid_gdb_inferior_id and
5617 gdb_inferior_id_to_pid.
5618 (inferior_command): Use inferior and thread pointers.
5619 * inferior.h (struct thread_info): Forward declare.
5620 (notice_new_inferior): Take a thread_info pointer instead of a
5621 ptid_t. All callers adjusted.
5622 (detach_inferior): Delete declaration.
5623 (exit_inferior, exit_inferior_silent): Take an inferior pointer
5624 instead of a pid. All callers adjusted.
5625 (gdb_inferior_id_to_pid, pid_to_gdb_inferior_id, in_inferior_list)
5626 (valid_gdb_inferior_id): Delete.
5627 * infrun.c (follow_fork_inferior, proceed_after_vfork_done)
5628 (handle_vfork_child_exec_or_exit, follow_exec): Adjust.
5629 (struct displaced_step_inferior_state) <pid>: Delete, replaced by
5630 ...
5631 <inf>: ... this new field.
5632 <step_ptid>: Delete, replaced by ...
5633 <step_thread>: ... this new field.
5634 (get_displaced_stepping_state): Take an inferior pointer instead
5635 of a pid. All callers adjusted.
5636 (displaced_step_in_progress_any_inferior): Adjust.
5637 (displaced_step_in_progress_thread): Take a thread pointer instead
5638 of a ptid_t. All callers adjusted.
5639 (displaced_step_in_progress, add_displaced_stepping_state): Take
5640 an inferior pointer instead of a pid. All callers adjusted.
5641 (get_displaced_step_closure_by_addr): Adjust.
5642 (remove_displaced_stepping_state): Take an inferior pointer
5643 instead of a pid. All callers adjusted.
5644 (displaced_step_prepare_throw, displaced_step_prepare)
5645 (displaced_step_fixup): Take a thread pointer instead of a ptid_t.
5646 All callers adjusted.
5647 (start_step_over): Adjust.
5648 (infrun_thread_ptid_changed): Remove bit updating ptids in the
5649 displaced step queue.
5650 (do_target_resume): Adjust.
5651 (fetch_inferior_event): Use inferior_thread.
5652 (context_switch, get_inferior_stop_soon): Take an
5653 execution_control_state pointer instead of a ptid_t. All callers
5654 adjusted.
5655 (switch_to_thread_cleanup): Delete.
5656 (stop_all_threads): Use scoped_restore_current_thread.
5657 * inline-frame.c: Include "gdbthread.h".
5658 (inline_state) <inline_state>: Take a thread pointer instead of a
5659 ptid_t. All callers adjusted.
5660 <ptid>: Delete, replaced by ...
5661 <thread>: ... this new field.
5662 (find_inline_frame_state): Take a thread pointer instead of a
5663 ptid_t. All callers adjusted.
5664 (skip_inline_frames, step_into_inline_frame)
5665 (inline_skipped_frames, inline_skipped_symbol): Take a thread
5666 pointer instead of a ptid_t. All callers adjusted.
5667 * inline-frame.h (skip_inline_frames, step_into_inline_frame)
5668 (inline_skipped_frames, inline_skipped_symbol): Likewise.
5669 * linux-fork.c (delete_checkpoint_command): Adjust to use thread
5670 pointers directly.
5671 * linux-nat.c (get_detach_signal): Likewise.
5672 * linux-thread-db.c (thread_from_lwp): New 'stopped' parameter.
5673 (thread_db_notice_clone): Adjust.
5674 (thread_db_find_new_threads_silently)
5675 (thread_db_find_new_threads_2, thread_db_find_new_threads_1): Take
5676 a thread pointer instead of a ptid_t. All callers adjusted.
5677 * mi/mi-cmd-var.c: Include "inferior.h".
5678 (mi_cmd_var_update_iter): Update to use thread pointers.
5679 * mi/mi-interp.c (mi_new_thread): Update to use the thread's
5680 inferior directly.
5681 (mi_output_running_pid, mi_inferior_count): Delete, bits factored
5682 out to ...
5683 (mi_output_running): ... this new function.
5684 (mi_on_resume_1): Adjust to use it.
5685 (mi_user_selected_context_changed): Adjust to use inferior_thread.
5686 * mi/mi-main.c (proceed_thread): Adjust to use thread pointers
5687 directly.
5688 (interrupt_thread_callback): : Adjust to use thread and inferior
5689 pointers.
5690 * proc-service.c: Include "gdbthread.h".
5691 (ps_pglobal_lookup): Adjust to use the thread's inferior directly.
5692 * progspace-and-thread.c: Include "inferior.h".
5693 * progspace.c: Include "inferior.h".
5694 * python/py-exitedevent.c (create_exited_event_object): Adjust to
5695 hold a reference to an inferior_object.
5696 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust to use
5697 inferior_thread.
5698 * python/py-inferior.c (struct inferior_object): Give the type a
5699 tag name instead of a typedef.
5700 (python_on_normal_stop): No need to check if the current thread is
5701 listed.
5702 (inferior_to_inferior_object): Change return type to
5703 inferior_object. All callers adjusted.
5704 (find_thread_object): Delete, bits factored out to ...
5705 (thread_to_thread_object): ... this new function.
5706 * python/py-infthread.c (create_thread_object): Use
5707 inferior_to_inferior_object.
5708 (thpy_is_stopped): Use thread pointer directly.
5709 (gdbpy_selected_thread): Use inferior_thread.
5710 * python/py-record-btrace.c (btpy_list_object) <ptid>: Delete
5711 field, replaced with ...
5712 <thread>: ... this new field. All users adjusted.
5713 (btpy_insn_or_gap_new): Drop const.
5714 (btpy_list_new): Take a thread pointer instead of a ptid_t. All
5715 callers adjusted.
5716 * python/py-record.c: Include "gdbthread.h".
5717 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
5718 a ptid_t. All callers adjusted.
5719 (gdbpy_current_recording): Use inferior_thread.
5720 * python/py-record.h (recpy_record_object) <ptid>: Delete
5721 field, replaced with ...
5722 <thread>: ... this new field. All users adjusted.
5723 (recpy_element_object) <ptid>: Delete
5724 field, replaced with ...
5725 <thread>: ... this new field. All users adjusted.
5726 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
5727 a ptid_t. All callers adjusted.
5728 * python/py-threadevent.c: Include "gdbthread.h".
5729 (get_event_thread): Use thread_to_thread_object.
5730 * python/python-internal.h (struct inferior_object): Forward
5731 declare.
5732 (find_thread_object, find_inferior_object): Delete declarations.
5733 (thread_to_thread_object, inferior_to_inferior_object): New
5734 declarations.
5735 * record-btrace.c: Include "inferior.h".
5736 (require_btrace_thread): Use inferior_thread.
5737 (record_btrace_frame_sniffer)
5738 (record_btrace_tailcall_frame_sniffer): Use inferior_thread.
5739 (get_thread_current_frame): Use scoped_restore_current_thread and
5740 switch_to_thread.
5741 (get_thread_current_frame): Use thread pointer directly.
5742 (record_btrace_replay_at_breakpoint): Use thread's inferior
5743 pointer directly.
5744 * record-full.c: Include "inferior.h".
5745 * regcache.c: Include "gdbthread.h".
5746 (get_thread_arch_regcache): Use the inferior's address space
5747 directly.
5748 (get_thread_regcache, registers_changed_thread): New.
5749 * regcache.h (get_thread_regcache(thread_info *thread)): New
5750 overload.
5751 (registers_changed_thread): New.
5752 (remote_target) <remote_detach_1>: Swap order of parameters.
5753 (remote_add_thread): <remote_add_thread>: Return the new thread.
5754 (get_remote_thread_info(ptid_t)): New overload.
5755 (remote_target::remote_notice_new_inferior): Use thread pointers
5756 directly.
5757 (remote_target::process_initial_stop_replies): Use
5758 thread_info::set_running.
5759 (remote_target::remote_detach_1, remote_target::detach)
5760 (extended_remote_target::detach): Adjust.
5761 * stack.c (frame_show_address): Use inferior_thread.
5762 * target-debug.h (target_debug_print_thread_info_pp): New.
5763 * target-delegates.c: Regenerate.
5764 * target.c (default_thread_address_space): Delete.
5765 (memory_xfer_partial_1): Use current_inferior.
5766 (target_detach): Use current_inferior.
5767 (target_thread_address_space): Delete.
5768 (generic_mourn_inferior): Use current_inferior.
5769 * target.h (struct target_ops) <thread_address_space>: Delete.
5770 (target_thread_address_space): Delete.
5771 * thread.c (init_thread_list): Use ALL_THREADS_SAFE. Use thread
5772 pointers directly.
5773 (delete_thread_1, delete_thread, delete_thread_silent): Take a
5774 thread pointer instead of a ptid_t. Adjust all callers.
5775 (ptid_to_global_thread_id, global_thread_id_to_ptid): Delete.
5776 (first_thread_of_process): Delete, replaced by ...
5777 (first_thread_of_inferior): ... this new function. All callers
5778 adjusted.
5779 (any_thread_of_process): Rename to ...
5780 (any_thread_of_inferior): ... this, and take an inferior pointer.
5781 (any_live_thread_of_process): Rename to ...
5782 (any_live_thread_of_inferior): ... this, and take an inferior
5783 pointer.
5784 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
5785 (value_in_thread_stack_temporaries)
5786 (get_last_thread_stack_temporary): Take a thread pointer instead
5787 of a ptid_t. Adjust all callers.
5788 (thread_info::set_running): New.
5789 (validate_registers_access): Use inferior_thread.
5790 (can_access_registers_ptid): Rename to ...
5791 (can_access_registers_thread): ... this, and take a thread
5792 pointer.
5793 (print_thread_info_1): Adjust to compare thread pointers instead
5794 of ptids.
5795 (switch_to_no_thread, switch_to_thread): Make extern.
5796 (scoped_restore_current_thread::~scoped_restore_current_thread):
5797 Use m_thread pointer directly.
5798 (scoped_restore_current_thread::scoped_restore_current_thread):
5799 Use inferior_thread.
5800 (thread_command): Use thread pointer directly.
5801 (thread_num_make_value_helper): Use inferior_thread.
5802 * top.c (execute_command): Use inferior_thread.
5803 * tui/tui-interp.c: Include "inferior.h".
5804 * varobj.c (varobj_create): Use inferior_thread.
5805 (value_of_root_1): Use find_thread_global_id instead of
5806 global_thread_id_to_ptid.
5807
33bab475
AH
58082018-06-21 Alan Hayward <alan.hayward@arm.com>
5809
5810 * regcache.c (readable_regcache::read_part): Avoid memcpy when
5811 possible.
5812 (regcache::write_part): Likewise.
5813 (readable_regcache::cooked_read_part): Update comment.
5814 (readable_regcache::cooked_write_part): Likewise.
5815 * regcache.h: (readable_regcache::read_part): Likewise.
5816 (regcache::write_part): Likewise.
5817
8363f9d5
RB
58182018-06-21 Richard Bunt <richard.bunt@arm.com>
5819 Dirk Schubert <dirk.schubert@arm.com>
5820
5821 * aarch64-linux-nat.c (post_attach): New.
5822 (aarch64_linux_nat_target::post_attach): Override post_attach to
5823 record the number of hardware debug registers.
5824
0d0b0ea2
TT
58252018-06-20 Tom Tromey <tom@tromey.com>
5826
5827 * python/py-param.c (add_setshow_generic): Make parameters const.
5828 (parmpy_init): Update.
5829
302abd6e
SM
58302018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
5831
5832 * regcache.h (regcache_cooked_read_ftype): Rename to...
5833 (register_read_ftype): ...this, change type to function_view.
5834 (class reg_buffer) <save>: Remove src parameter.
5835 (readonly_detached_regcache) <readonly_detached_regcache>: Make
5836 parameter non-const in first overload. Remove src parameter in
5837 second overload.
5838 * regcache.c (do_cooked_read): Remove.
5839 (readonly_detached_regcache::readonly_detached_regcache): Make
5840 parameter non-const, adjust call to other constructor.
5841 (reg_buffer::save): Remove src parameter.
5842 * frame.c (do_frame_register_read): Remove.
5843 (frame_save_as_regcache): Use lambda function.
5844 * ppc-linux-tdep.c (ppu2spu_unwind_register): Change type of src
5845 parameter to ppu2spu_data *.
5846 (ppu2spu_sniffer): Use lambda function.
5847
19f3f25f
SM
58482018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
5849
5850 * record-full.c (record_full_target::insert_breakpoint): Remove
5851 "struct" keyword, add const.
5852
d0ac1c44
SM
58532018-06-19 Simon Marchi <simon.marchi@ericsson.com>
5854
5855 * common/common-defs.h (PACKAGE_NAME, PACKAGE_VERSION,
5856 PACKAGE_STRING, PACKAGE_TARNAME): Undefine.
5857 * configure.ac: Remove AC_PREREQ, add missing quoting.
5858 * gnulib/configure.ac: Modernize usage of
5859 AC_INIT/AM_INIT_AUTOMAKE. Remove AC_PREREQ.
5860 * gnulib/update-gnulib.sh (AUTOCONF_VERSION): Bump to 2.69.
5861 (AUTOMAKE_VERSION): Bump to 1.15.1.
5862 * configure: Re-generate.
5863 * config.in: Re-generate.
5864 * aclocal.m4: Re-generate.
5865 * gnulib/aclocal.m4: Re-generate.
5866 * gnulib/config.in: Re-generate.
5867 * gnulib/configure: Re-generate.
5868 * gnulib/import/Makefile.in: Re-generate.
5869
6ae50267
PA
58702018-06-19 Pedro Alves <palves@redhat.com>
5871
5872 * minsyms.c (msym_prefer_to_msym_type): New, factored out from ...
5873 (lookup_minimal_symbol_by_pc_section): ... here with
5874 gdb_assert_not_reached added.
5875
61b04dd0
PA
58762018-06-19 Pedro Alves <palves@redhat.com>
5877
5878 * inline-frame.c (stopped_by_user_bp_inline_frame): Replace PC
5879 parameter with a block parameter. Compare location's block symbol
5880 with the frame's block instead of addresses.
5881 (skip_inline_frames): Pass the current block instead of the
5882 frame's address. Break out as soon as we determine the frame
5883 should not be skipped.
5884
f709fabb
TT
58852018-06-18 Tom Tromey <tom@tromey.com>
5886
5887 * solib-aix.c (solib_aix_get_section_offsets): Return
5888 unique_xmalloc_ptr.
5889 (solib_aix_solib_create_inferior_hook): Update.
5890
668eb2f0
TT
58912018-06-18 Tom Tromey <tom@tromey.com>
5892
5893 * solib-darwin.c (darwin_current_sos): Use unique_xmalloc_ptr.
5894
309822ca
TT
58952018-06-18 Tom Tromey <tom@tromey.com>
5896
5897 * solib-frv.c (frv_relocate_main_executable): Use
5898 unique_xmalloc_ptr.
5899 * solib-dsbt.c (dsbt_relocate_main_executable): Use
5900 unique_xmalloc_ptr.
5901
06424eac
TT
59022018-06-18 Tom Tromey <tom@tromey.com>
5903
5904 * objfiles.h (inhibit_section_map_updates): Update.
5905 (resume_section_map_updates, resume_section_map_updates_cleanup):
5906 Remove.
5907 * solib-svr4.c (svr4_handle_solib_event): Update.
5908 * objfiles.c (inhibit_section_map_updates): Return
5909 scoped_restore_tmpl<int>.
5910 (resume_section_map_updates, resume_section_map_updates_cleanup):
5911 Remove.
5912
b4be9fad
TT
59132018-06-18 Tom Tromey <tom@tromey.com>
5914
5915 * valprint.h (read_string): Update.
5916 * valprint.c (read_string): Change type of "buffer".
5917 (val_print_string): Update.
5918 * python/py-value.c (valpy_string): Update.
5919 * language.h (struct language_defn) <la_get_string>: Change
5920 type of "buffer".
5921 (default_get_string, c_get_string): Update.
5922 * language.c (default_get_string): Change type of "buffer".
5923 * guile/scm-value.c (gdbscm_value_to_string): Update.
5924 * c-lang.c (c_get_string): Change type of "buffer".
5925
3f0dbd67
TT
59262018-06-18 Tom Tromey <tom@tromey.com>
5927
5928 * ser-mingw.c (struct pipe_state_destroyer): New.
5929 (pipe_state_up): New typedef.
5930 (cleanup_pipe_state): Remove.
5931 (pipe_windows_open): Use pipe_state_up. Don't release argv.
5932
69d340c6
TT
59332018-06-18 Tom Tromey <tom@tromey.com>
5934
5935 * rust-lang.h (rust_yyerror): Don't declare.
5936 * rust-lang.c (rust_language_defn): Update.
5937 * rust-exp.y (yyerror): Now static.
5938 * parse.c (parse_exp_in_context_1): Update.
5939 * p-lang.h (p_yyerror): Don't declare.
5940 * p-lang.c (p_language_defn): Update.
5941 * p-exp.y (yyerror): Now static.
5942 * opencl-lang.c (opencl_language_defn): Update.
5943 * objc-lang.c (objc_language_defn): Update.
5944 * m2-lang.h (m2_yyerror): Don't declare.
5945 * m2-lang.c (m2_language_defn): Update.
5946 * m2-exp.y (yyerror): Now static.
5947 * language.h (struct language_defn) <la_error>: Remove.
5948 * language.c (unk_lang_error): Remove.
5949 (unknown_language_defn, auto_language_defn): Remove.
5950 * go-lang.h (go_yyerror): Don't declare.
5951 * go-lang.c (go_language_defn): Update.
5952 * go-exp.y (yyerror): Now static.
5953 * f-lang.h (f_yyerror): Don't declare.
5954 * f-lang.c (f_language_defn): Update.
5955 * f-exp.y (yyerror): Now static.
5956 * d-lang.h (d_yyerror): Don't declare.
5957 * d-lang.c (d_language_defn): Update.
5958 * d-exp.y (yyerror): Now static.
5959 * c-lang.h (c_yyerror): Don't declare.
5960 * c-lang.c (c_language_defn, cplus_language_defn)
5961 (asm_language_defn, minimal_language_defn): Update.
5962 * c-exp.y (yyerror): Now static.
5963 * ada-lang.h (ada_yyerror): Don't declare.
5964 * ada-lang.c (ada_language_defn): Update.
5965 * ada-exp.y (yyerror): Now static.
5966
e9902bfc
AH
59672018-06-18 Alan Hayward <alan.hayward@arm.com>
5968
5969 * aarch64-linux-nat.c (fetch_sveregs_from_thread): New function.
5970 (store_sveregs_to_thread): Likewise.
5971 (aarch64_linux_fetch_inferior_registers): Check for SVE.
5972 (aarch64_linux_store_inferior_registers): Likewise.
5973 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs): New
5974 function.
5975 (aarch64_sve_regs_copy_to_regcache): Likewise.
5976 (aarch64_sve_regs_copy_from_regcache): Likewise.
5977 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_sveregs): New
5978 declaration.
5979 (aarch64_sve_regs_copy_to_regcache): Likewise.
5980 (aarch64_sve_regs_copy_from_regcache): Likewise.
5981 (sve_context): Structure from Linux headers.
5982 (SVE_SIG_ZREGS_SIZE): Define from Linux headers.
5983 (SVE_SIG_ZREG_SIZE): Likewise.
5984 (SVE_SIG_PREG_SIZE): Likewise.
5985 (SVE_SIG_FFR_SIZE): Likewise.
5986 (SVE_SIG_REGS_OFFSET): Likewise.
5987 (SVE_SIG_ZREGS_OFFSET): Likewise.
5988 (SVE_SIG_ZREG_OFFSET): Likewise.
5989 (SVE_SIG_ZREGS_SIZE): Likewise.
5990 (SVE_SIG_PREGS_OFFSET): Likewise.
5991 (SVE_SIG_PREG_OFFSET): Likewise.
5992 (SVE_SIG_PREGS_SIZE): Likewise.
5993 (SVE_SIG_FFR_OFFSET): Likewise.
5994 (SVE_SIG_REGS_SIZE): Likewise.
5995 (SVE_SIG_CONTEXT_SIZE): Likewise.
5996 (SVE_PT_REGS_MASK): Likewise.
5997 (SVE_PT_REGS_FPSIMD): Likewise.
5998 (SVE_PT_REGS_SVE): Likewise.
5999 (SVE_PT_VL_INHERIT): Likewise.
6000 (SVE_PT_VL_ONEXEC): Likewise.
6001 (SVE_PT_REGS_OFFSET): Likewise.
6002 (SVE_PT_FPSIMD_OFFSET): Likewise.
6003 (SVE_PT_FPSIMD_SIZE): Likewise.
6004 (SVE_PT_SVE_ZREG_SIZE): Likewise.
6005 (SVE_PT_SVE_PREG_SIZE): Likewise.
6006 (SVE_PT_SVE_FFR_SIZE): Likewise.
6007 (SVE_PT_SVE_FPSR_SIZE): Likewise.
6008 (SVE_PT_SVE_FPCR_SIZE): Likewise.
6009 (__SVE_SIG_TO_PT): Likewise.
6010 (SVE_PT_SVE_OFFSET): Likewise.
6011 (SVE_PT_SVE_ZREGS_OFFSET): Likewise.
6012 (SVE_PT_SVE_ZREG_OFFSET): Likewise.
6013 (SVE_PT_SVE_ZREGS_SIZE): Likewise.
6014 (SVE_PT_SVE_PREGS_OFFSET): Likewise.
6015 (SVE_PT_SVE_PREG_OFFSET): Likewise.
6016 (SVE_PT_SVE_PREGS_SIZE): Likewise.
6017 (SVE_PT_SVE_FFR_OFFSET): Likewise.
6018 (SVE_PT_SVE_FPSR_OFFSET): Likewise.
6019 (SVE_PT_SVE_FPCR_OFFSET): Likewise.
6020 (SVE_PT_SVE_SIZE): Likewise.
6021 (SVE_PT_SIZE): Likewise.
6022 (HAS_SVE_STATE): New define.
6023
17a1cc89
AH
60242018-06-18 Alan Hayward <alan.hayward@arm.com>
6025
6026 * nat/aarch64-sve-linux-sigcontext.h: New file.
6027 * nat/aarch64-sve-linux-ptrace.h (SVE_VQ_BYTES): Move to
6028 new files.
6029 (SVE_VQ_MIN): Likewise.
6030 (SVE_VQ_MAX): Likewise.
6031 (SVE_VL_MIN): Likewise.
6032 (SVE_VL_MAX): Likewise.
6033 (SVE_NUM_ZREGS): Likewise.
6034 (SVE_NUM_PREGS): Likewise.
6035 (sve_vl_valid): Likewise.
6036 (struct user_sve_header): Likewise.
6037
7010835a
AB
60382018-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
6039 Richard Bunt <Richard.Bunt@arm.com>
6040
6041 * linux-nat.c (stop_wait_callback): Don't discard SIGSTOP if it
6042 was requested by GDB.
6043
479b3ef4
TV
60442018-06-15 Tom de Vries <tdevries@suse.de>
6045
6046 * MAINTAINERS (Write After Approval): Add Tom de Vries.
6047
8199b8f4
SM
60482018-06-14 Simon Marchi <simon.marchi@polymtl.ca>
6049
6050 * gnulib/update-gnulib.sh: Print expected versions of
6051 autoconf/aclocal.
6052
55c748a1
SM
60532018-06-14 Simon Marchi <simon.marchi@ericsson.com>
6054
6055 * arch-utils.c (default_type_align): Use type_length_units.
6056 * gdbtypes.c (type_align): Use type_length_units.
6057
87a8eca7
PW
60582018-06-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6059
6060 * cli/cli-script.c (_initialize_cli_script): Fix online documentation
6061 of 'define' command.
6062
5d9a0608
TV
60632018-06-14 Tom de Vries <tdevries@suse.de>
6064
6065 PR cli/22573
6066 * infcmd.c (print_return_value_1): Use get_user_print_options instead of
6067 get_no_prettyformat_print_options.
6068
ab89b5a5
SM
60692018-06-13 Simon Marchi <simon.marchi@ericsson.com>
6070
6071 * sparc-nat.h: Include target.h.
6072 * sparc64-linux-nat.c (class sparc64_linux_nat_target)
6073 <fetch_registers>: Remove this argument in function call.
6074 <store_registers>: Remove this argument in function call, remove
6075 extra semicolon.
6076 <low_forget_process>: Call sparc64_forget_process instead of
6077 sparc_forget_process.
6078
62c808ae
RO
60792018-06-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6080
6081 * procfs.c (_initialize_procfs): Use add_inf_child_target.
6082 (procfs_target::make_corefile_notes): Adjust to new
6083 target_read_alloc return type.
6084
1840d81a
AB
60852018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
6086 Stephen Roberts <stephen.roberts@arm.com>
6087
6088 PR gdb/22882
6089 * infrun.c (fetch_inferior_event): If GDB is not proceeding then
6090 run INF_EXEC_COMPLETE handler, even when not calling normal_stop.
6091 Move should_notify_stop local into more inner scope.
6092
9516f85a
AB
60932018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
6094 Stephen Roberts <stephen.roberts@arm.com>
6095
6096 PR gdb/22882
6097 * infrun.c (resume_1): Add call to mark_async_event_handler.
6098
defd2172
AB
60992018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
6100
6101 * infrun.c (do_target_wait): Change old version of $pc printed.
6102
7b23e087
SM
61032018-06-11 Simon Marchi <simon.marchi@ericsson.com>
6104
6105 * dwarf2read.c (read_index_from_section): Rename to...
6106 (read_gdb_index_from_section): ... this, update all callers.
6107 (dwarf2_read_index): Rename to...
6108 (dwarf2_read_gdb_index): ... this, update all callers.
6109
69c67a0b
JDA
61102018-06-11 John David Anglin <danglin@gcc.gnu.org>
6111
6112 * gdb/hppa-linux-nat.c
6113 (hppa_linux_nat_target::fetch_inferior_registers): Rename to
6114 hppa_linux_nat_target::fetch_registers.
6115
65d4cada
AH
61162018-06-11 Alan Hayward <alan.hayward@arm.com>
6117
6118 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Add mappings.
6119 * aarch64-tdep.h (AARCH64_DWARF_SVE_VG): Add define.
6120 (AARCH64_DWARF_SVE_FFR): Likewise.
6121 (AARCH64_DWARF_SVE_P0): Likewise.
6122 (AARCH64_DWARF_SVE_Z0): Likewise.
6123
f868386e
AH
61242018-06-11 Alan Hayward <alan.hayward@arm.com>
6125
6126 * common/common-regcache.h (raw_compare): New function.
6127 * regcache.c (regcache::raw_compare): Likewise.
6128 * regcache.h (regcache::raw_compare): New declaration.
6129
9c861883
AH
61302018-06-11 Alan Hayward <alan.hayward@arm.com>
6131
6132 * common/common-regcache.h (reg_buffer_common): New structure.
6133 * regcache.c (reg_buffer::invalidate): Move from detached_regcache.
6134 (reg_buffer::raw_supply): Likewise.
6135 (reg_buffer::raw_supply_integer): Likewise.
6136 (reg_buffer::raw_supply_zeroed): Likewise.
6137 (reg_buffer::raw_collect): Likewise.
6138 (reg_buffer::raw_collect_integer): Likewise.
6139 * regcache.h (reg_buffer::invalidate): Move from detached_regcache.
6140 (reg_buffer::raw_supply): Likewise.
6141 (reg_buffer::raw_supply_integer): Likewise.
6142 (reg_buffer::raw_supply_zeroed): Likewise.
6143 (reg_buffer::raw_collect): Likewise.
6144 (reg_buffer::raw_collect_integer): Likewise.
6145
953edf2b
TT
61462018-06-10 Tom Tromey <tom@tromey.com>
6147
6148 * remote.c (stop_reply_p): Remove typedef. Don't declare queue.
6149 (class remote_state) <stop_reply_queue>: Now std::vector.
6150 (remote_state::~remote_state)
6151 (remote_target::stop_reply_queue_length): Update.
6152 (struct queue_iter_param, remove_child_of_pending_fork)
6153 (struct check_pending_event_prevents_wildcard_vcont_callback_data)
6154 (check_pending_event_prevents_wildcard_vcont_callback)
6155 (remove_stop_reply_for_inferior)
6156 (remove_stop_reply_of_remote_state)
6157 (remote_notif_remove_once_on_match)
6158 (stop_reply_match_ptid_and_ws)
6159 (remote_kill_child_of_pending_fork): Remove.
6160 (remote_target::remove_new_fork_children)
6161 (remote_target::check_pending_events_prevent_wildcard_vcont)
6162 (remote_target::discard_pending_stop_replies)
6163 (remote_target::discard_pending_stop_replies_in_queue)
6164 (remote_target::remote_notif_remove_queued_reply)
6165 (remote_target::queued_stop_reply)
6166 (remote_target::push_stop_reply, remote_target::peek_stop_reply)
6167 (remote_target::wait, remote_target::kill_new_fork_children)
6168 (remote_target::async): Update.
6169
1ddbba9d
TT
61702018-06-10 Tom Tromey <tom@tromey.com>
6171
6172 * record-full.c (record_full_arch_list_cleanups): Remove.
6173 (record_full_message): Use try/catch.
6174 (record_full_wait_cleanups): Remove.
6175 (record_full_wait_1): Use try/catch.
6176 (record_full_restore): Likewise.
6177
219605fd
TT
61782018-06-10 Tom Tromey <tom@tromey.com>
6179
6180 * record-full.c (record_full_breakpoint_p): Remove typedef. Don't
6181 declare VEC. Add constructor.
6182 <in_target_beneath>: Now bool.
6183 (record_full_breakpoints): Now a std::vector, static.
6184 (record_full_sync_record_breakpoints)
6185 (record_full_init_record_breakpoints)
6186 (record_full_target::insert_breakpoint)
6187 (record_full_target::remove_breakpoint): Update. Don't use XNEW.
6188
71b73764
SM
61892018-06-10 Simon Marchi <simon.marchi@polymtl.ca>
6190
6191 * dwarf2read.c (process_cu_includes): Remove struct keyword.
6192 * serial.c (serial_interface_lookup): Remove struct keyword.
6193
4360561f
TT
61942018-06-10 Tom Tromey <tom@tromey.com>
6195
6196 * procfs.c (procfs_target::xfer_partial): Use "beneath" as a
6197 method.
6198 * nto-procfs.c (nto_procfs_target::xfer_partial): Use "beneath" as
6199 a method.
6200 * go32-nat.c (go32_nat_target::xfer_partial): Use "beneath" as a
6201 method.
6202 * arm-linux-nat.c (arm_linux_nat_target::read_description): Use
6203 "beneath" as a method.
6204 * arm-fbsd-nat.c (arm_fbsd_nat_target::read_description):
6205 Use "beneath" as a method.
6206
d14b92bf
TT
62072018-06-10 Tom Tromey <tom@tromey.com>
6208
6209 * tracefile.c (struct trace_file_writer_deleter): New.
6210 <operator()>: Rename from trace_file_writer_xfree.
6211 (trace_file_writer_up): New typedef.
6212 (tsave_command, trace_save_tfile, trace_save_ctf): Update.
6213
835dcf92
SM
62142018-06-09 Simon Marchi <simon.marchi@ericsson.com>
6215
6216 * regcache.h (reg_buffer) <~reg_buffer>: Use default destructor.
6217 <m_registers, m_register_status>: Change type to
6218 std::unique_ptr.
6219 * regcache.c (reg_buffer::reg_buffer): Use new instead of
6220 XCNEWVEC.
6221
aac0d564
SM
62222018-06-09 Simon Marchi <simon.marchi@ericsson.com>
6223
6224 * common/common-regcache.h (enum register_status): Add
6225 underlying type "signed char".
6226 * regcache.h (reg_buffer) <m_register_status>: Change type to
6227 register_status *.
6228 * regcache.c (reg_buffer::reg_buffer): Alocate arrays of
6229 register_status instead of signed char.
6230 (reg_buffer::save): Use REG_UNKNOWN instead of 0.
6231 (reg_buffer::get_register_status): Remove cast.
6232 (readable_regcache::raw_read): Remove cast.
6233 (readable_regcache::cooked_read): Remove cast.
6234
77ad7394
TT
62352018-06-09 Tom Tromey <tom@tromey.com>
6236
6237 * source.c (reverse_search_command, forward_search_command): Use
6238 scoped_fd.
6239
191cca63
TT
62402018-06-09 Tom Tromey <tom@tromey.com>
6241
6242 * serial.c (serial_ops_p): Remove typedef. Don't declare VEC.
6243 (serial_ops_list): Now static, std::vector.
6244 (serial_interface_lookup, serial_add_interface): Update.
6245
c5d0225d
TT
62462018-06-09 Tom Tromey <tom@tromey.com>
6247
6248 * dwarf2read.c (process_cu_includes): Update.
6249 (process_full_comp_unit): Update.
6250 * dwarf2read.h (struct dwarf2_per_objfile) <just_read_cus>: Now a
6251 std::vector.
6252
aeab5128
PK
62532018-06-08 Paul Koning <paul_koning@dell.com>
6254
6255 PR gdb/23252
6256
6257 * python/python.c (do_start_initialization):
6258 Avoid call to internal Python API.
6259 (init__gdb_module): New function.
6260
5045b3d7
GB
62612018-06-08 Gary Benson <gbenson@redhat.com>
6262
6263 * linux-thread-db.c (valprint.h): New include.
6264 (struct check_thread_db_info): New structure.
6265 (check_thread_db_on_load, tdb_testinfo): New static globals.
6266 (check_thread_db, check_thread_db_callback): New functions.
6267 (try_thread_db_load_1): Run integrity checks if requested.
6268 (maintenance_check_libthread_db): New function.
6269 (_initialize_thread_db): Register "maint check libthread-db"
6270 and "maint set/show check-libthread-db".
6271 * NEWS: Mention the above new commands.
6272
2f4f025f
TT
62732018-06-08 Tom Tromey <tom@tromey.com>
6274
6275 * windows-nat.c (windows_nat_target::xfer_partial): "beneath" is
6276 now a method.
6277
343b0027
TT
62782018-06-08 Tom Tromey <tom@tromey.com>
6279
6280 * btrace.c (parse_xml_raw): Use gdb::unique_xmalloc_ptr.
6281
8dcc53b3
TT
62822018-06-08 Tom Tromey <tom@tromey.com>
6283
6284 * common/btrace-common.h (struct btrace_data): Add constructor,
6285 destructor, move assignment operator.
6286 <empty, clear, fini>: New methods.
6287 <format>: Initialize.
6288 (btrace_data_init, btrace_data_fini, btrace_data_clear)
6289 (btrace_data_empty): Don't declare.
6290 * common/btrace-common.c (btrace_data_init): Remove.
6291 (btrace_data::fini): Rename from btrace_data_fini.
6292 (btrace_data::empty): Rename from btrace_data_empty.
6293 (btrace_data::clear): Rename from btrace_data_clear. Return
6294 bool.
6295 * btrace.h (make_cleanup_btrace_data): Don't declare.
6296 * btrace.c (btrace_add_pc, btrace_stitch_trace, btrace_clear)
6297 (parse_xml_btrace): Update.
6298 (do_btrace_data_cleanup, make_cleanup_btrace_data): Remove.
6299 (maint_btrace_clear_packet_history_cmd): Update.
6300
a1740ee1
PA
63012018-06-07 Pedro Alves <palves@redhat.com>
6302
6303 * target.h (target_ops) <beneath>: Now a method. All references
6304 updated.
6305 (class target_stack): New.
6306 * target.c (g_target_stack): New.
6307 (g_current_top_target): Delete.
6308 (current_top_target): Get the top target out of g_target_stack.
6309 (target_stack::push, target_stack::unpush): New.
6310 (push_target, unpush_target): Reimplement.
6311 (target_is_pushed): Reimplement in terms of g_target_stack.
6312 (target_ops::beneath, target_stack::find_beneath): New.
6313
d6ca69cd
PA
63142018-06-07 Pedro Alves <palves@redhat.com>
6315
6316 * target.h (find_target_beneath): Delete declaration.
6317 * target.c (find_target_beneath): Delete definition.
6318 * aix-thread.c: All callers of find_target_beneath adjusted to
6319 call target_ops::beneath instead.
6320 * bsd-uthread.c: Likewise.
6321 * linux-thread-db.c: Likewise.
6322 * ravenscar-thread.c: Likewise.
6323 * sol-thread.c: Likewise.
6324 * spu-multiarch.c: Likewise.
6325
b6a8c27b
PA
63262018-06-07 Pedro Alves <palves@redhat.com>
6327
6328 * target.h (target_ops) <beneath>: Now a method. All references
6329 updated.
6330 (target_ops) <m_beneath>: New.
6331 * target.c (target_ops::beneath): New.
6332 * corelow.c: Adjust all references to target_ops::beneath.
6333 * linux-thread-db.c: Likewise.
6334 * make-target-delegates: Likewise.
6335 * record-btrace.c: Likewise.
6336 * record-full.c: Likewise.
6337 * remote.c: Likewise.
6338 * target.c: Likewise.
6339 * target-delegates.c: Regenerate.
6340
8b88a78e
PA
63412018-06-07 Pedro Alves <palves@redhat.com>
6342
6343 * target.h (target_stack): Delete.
6344 (current_top_target): Declare function.
6345 * target.c (target_stack): Delete.
6346 (g_current_top_target): New.
6347 (current_top_target): New function.
6348 * auxv.c: Use current_top_target instead of target_stack
6349 throughout.
6350 * avr-tdep.c: Likewise.
6351 * breakpoint.c: Likewise.
6352 * corefile.c: Likewise.
6353 * elfread.c: Likewise.
6354 * eval.c: Likewise.
6355 * exceptions.c: Likewise.
6356 * frame.c: Likewise.
6357 * gdbarch-selftests.c: Likewise.
6358 * gnu-v3-abi.c: Likewise.
6359 * ia64-tdep.c: Likewise.
6360 * ia64-vms-tdep.c: Likewise.
6361 * infcall.c: Likewise.
6362 * infcmd.c: Likewise.
6363 * infrun.c: Likewise.
6364 * linespec.c: Likewise.
6365 * linux-tdep.c: Likewise.
6366 * minsyms.c: Likewise.
6367 * ppc-linux-nat.c: Likewise.
6368 * ppc-linux-tdep.c: Likewise.
6369 * procfs.c: Likewise.
6370 * regcache.c: Likewise.
6371 * remote.c: Likewise.
6372 * rs6000-tdep.c: Likewise.
6373 * s390-linux-nat.c: Likewise.
6374 * s390-tdep.c: Likewise.
6375 * solib-aix.c: Likewise.
6376 * solib-darwin.c: Likewise.
6377 * solib-dsbt.c: Likewise.
6378 * solib-spu.c: Likewise.
6379 * solib-svr4.c: Likewise.
6380 * solib-target.c: Likewise.
6381 * sparc-tdep.c: Likewise.
6382 * sparc64-tdep.c: Likewise.
6383 * spu-tdep.c: Likewise.
6384 * symfile.c: Likewise.
6385 * symtab.c: Likewise.
6386 * target-descriptions.c: Likewise.
6387 * target-memory.c: Likewise.
6388 * target.c: Likewise.
6389 * target.h: Likewise.
6390 * tracefile-tfile.c: Likewise.
6391 * tracepoint.c: Likewise.
6392 * valops.c: Likewise.
6393 * valprint.c: Likewise.
6394 * value.c: Likewise.
6395 * windows-tdep.c: Likewise.
6396 * mi/mi-main.c: Likewise.
6397
c7110220
TT
63982018-06-07 Tom Tromey <tom@tromey.com>
6399
6400 * valprint.h (build_address_symbolic): Declare.
6401 * printcmd.c (print_address_symbolic): Update.
6402 (build_address_symbolic): Change "name" and "filename" to
6403 std::string.
6404 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
6405 Update.
6406 * defs.h (build_address_symbolic): Remove declaration.
6407
63bad7b6
AH
64082018-06-07 Alan Hayward <alan.hayward@arm.com>
6409
6410 * aarch64-tdep.c (AARCH64_SVE_V0_REGNUM): Add define.
6411 (aarch64_vnv_type): Add function.
6412 (aarch64_pseudo_register_name): Add V regs for SVE.
6413 (aarch64_pseudo_register_type): Likewise.
6414 (aarch64_pseudo_register_reggroup_p): Likewise.
6415 (aarch64_pseudo_read_value_2): Use V0 offset for SVE
6416 (aarch64_pseudo_read_value): Add V regs for SVE.
6417 (aarch64_pseudo_write_2): Use V0 offset for SVE
6418 (aarch64_pseudo_write): Add V regs for SVE.
6419 * aarch64-tdep.h (struct gdbarch_tdep): Add vnv_type.
6420
13e3c608
SDJ
64212018-06-06 Sergio Durigan Junior <sergiodj@redhat.com>
6422
6423 * arch/aarch64.h (sve_vq_from_vl): Guard with #ifndef.
6424 (sve_vl_from_vq): Likewise.
6425
c61b06a1
TT
64262018-06-05 Tom Tromey <tom@tromey.com>
6427
6428 * cli/cli-cmds.c (show_version): Update.
6429 * top.c (print_gdb_version): Add "interactive" parameter.
6430 Update.
6431 * main.c (captured_main_1): Update.
6432 * top.h (print_gdb_version): Add "interactive" parameter and a
6433 comment.
6434
115f7325
DM
64352018-06-05 David Malcolm <dmalcolm@redhat.com>
6436
6437 * common/enum-flags.h: Add trailing semicolon to example in
6438 comment.
6439
eb6af809
TT
64402018-06-05 Tom Tromey <tom@tromey.com>
6441
6442 PR cli/12326:
6443 * NEWS: Add entry about pager.
6444 * utils.c (pagination_disabled_for_command): New global.
6445 (prompt_for_continue): Allow "c" response to prompt.
6446 (reinitialize_more_filter): Clear
6447 pagination_disabled_for_command.
6448 (fputs_maybe_filtered): Check pagination_disabled_for_command.
6449
54d343a2
TT
64502018-06-04 Tom Tromey <tom@tromey.com>
6451
6452 * ada-lang.h (ada_lookup_symbol_list): Update.
6453 * ada-lang.c (resolve_subexp): Update.
6454 (symbols_are_identical_enums): Change type of syms. Remove nsyms
6455 parameter.
6456 (remove_extra_symbols, remove_irrelevant_renamings): Likewise.
6457 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Change
6458 results parameter to std::vector.
6459 (ada_iterate_over_symbols, ada_lookup_symbol, get_var_value):
6460 Update.
6461 * ada-exp.y (block_lookup): Update.
6462 (select_possible_type_sym): Change type of syms. Remove nsyms
6463 parameter.
6464 (write_var_or_type, write_name_assoc): Update.
6465
178d6a63
JB
64662018-06-04 Joel Brobecker <brobecker@adacore.com>
6467
6468 * windows-nat.c (windows_nat_target::xfer_partial): Return
6469 TARGET_XFER_E_IO if we need to delegate to the target beneath
6470 but BENEATH is NULL.
6471
baf00c2d
SM
64722018-06-04 Simon Marchi <simon.marchi@ericsson.com>
6473
6474 * Makefile.in (config.status): Add configure.nat as a
6475 dependency.
6476
214b073c
TT
64772018-06-04 Tom Tromey <tom@tromey.com>
6478
6479 * cp-name-parser.y (cpname_state): Add method declarations.
6480 (HANDLE_QUAL): Update.
6481 (cpname_state::d_grab, cpname_state::fill_comp)
6482 (cpname_state::make_operator, cpname_state::make_dtor)
6483 (cpname_state::make_builtin_type, cpname_state::make_name)
6484 (cpname_state::d_qualify, cpname_state::d_int_type)
6485 (cpname_state::d_unary, cpname_state::d_binary): Now methods.
6486 (%union): Move earlier.
6487
62b74cb8
AH
64882018-06-04 Alan Hayward <alan.hayward@arm.com>
6489
6490 * elfread.c (elf_symfile_segments): Use ELF_SECTION_IN_SEGMENT.
6491
3c5cd5c3
AH
64922018-06-04 Alan Hayward <alan.hayward@arm.com>
6493
6494 * aarch64-tdep.c (aarch64_pseudo_read_value_1): New helper func.
6495 (aarch64_pseudo_write_1): Likewise.
6496 (aarch64_pseudo_read_value): Use helper.
6497 (aarch64_pseudo_write): Likewise.
6498
59f413d5
PA
64992018-06-04 Pedro Alves <palves@redhat.com>
6500
6501 * darwin-nat.c (darwin_ops): Delete.
6502 (darwin_attach_pid): Use get_native_target.
6503
1332a140
AH
65042018-06-04 Alan Hayward <alan.hayward@arm.com>
6505
6506 * aarch64-tdep.c (aarch64_get_tdesc_vq): Use uint64_t for VQ.
6507 * aarch64-tdep.h (struct gdbarch_tdep): Likewise.
6508
ba2d2bb2
AH
65092018-06-04 Alan Hayward <alan.hayward@arm.com>
6510
6511 * aarch64-linux-nat.c (aarch64_linux_read_description): Support SVE.
6512 * aarch64-tdep.c (aarch64_get_tdesc_vq): New function.
6513 (aarch64_gdbarch_init): Check for SVE.
6514 * aarch64-tdep.h (gdbarch_tdep::has_sve): New function.
6515
65162018-06-04 Alan Hayward <alan.hayward@arm.com>
39bfb937
AH
6517
6518 * aarch64-tdep.c (aarch64_read_description): Use uint64_t for VQ.
6519 * aarch64-tdep.h (aarch64_read_description): Likewise.
6520 * arch/aarch64.c (aarch64_create_target_description): Likewise.
6521 * arch/aarch64.h (aarch64_create_target_description): Likewise.
6522 * features/aarch64-sve.c (create_feature_aarch64_sve): Likewise.
6523 * nat/aarch64-sve-linux-ptrace.c(aarch64_sve_get_vq): Likewise.
6524 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_vq): Likewise.
6525
41c60b4b
SM
65262018-06-02 Simon Marchi <simon.marchi@ericsson.com>
6527
6528 * value.c (value_fetch_lazy_bitfield): New.
6529 (value_fetch_lazy_memory): New.
6530 (value_fetch_lazy_register): New.
6531 (value_fetch_lazy): Factor out to smaller functions.
6532
7b640f72
TT
65332018-06-01 Tom Tromey <tom@tromey.com>
6534
6535 * cp-name-parser.y (backslashable, represented): Now const.
6536
98e69eb3
TT
65372018-06-01 Tom Tromey <tom@tromey.com>
6538
6539 * cp-name-parser.y: Include parser-defs.h.
6540 (parser_fprintf): Remove declaration.
6541
49265499
TT
65422018-06-01 Tom Tromey <tom@tromey.com>
6543
6544 * cp-name-parser.y: Use %pure-parser, %lex-param, and
6545 %parse-param.
6546 (lexptr, prev_lexptr, error_lexptr, global_errmsg, demangle_info)
6547 (global_result): Remove globals.
6548 (struct cpname_state): New.
6549 (yyparse): Don't declare.
6550 (yylex, yyerror): Move declarations after %union.
6551 (d_grab, fill_comp, make_operator, make_dtor, make_builtin_type)
6552 (make_name): Add state parameter.
6553 Update all callers.
6554 (d_qualify, d_int_type, d_unary, d_binary, parse_number) Add state
6555 parameter.
6556 (HANDLE_QUAL, HANDLE_SPECIAL, HANDLE_TOKEN2, HANDLE_TOKEN3):
6557 Update.
6558 (yylex): Add lvalp, state parameters.
6559 (yyerror): Add state parameter.
6560 (cp_demangled_name_to_comp): Update.
6561
55b6c984
TT
65622018-06-01 Tom Tromey <tom@tromey.com>
6563
6564 * cp-name-parser.y (parser_fprintf): Declare.
6565 (GDB_YY_REMAP_PREFIX): Define.
6566 Include yy-remap.h. Don't redefine yy* identifiers.
6567
3513a6bb
TT
65682018-06-01 Tom Tromey <tom@tromey.com>
6569
6570 * python/py-type.c (typy_legacy_template_argument): Update.
6571 * cp-support.h (cp_demangled_name_to_comp): Update.
6572 * cp-name-parser.y (cp_demangled_name_to_comp): Change errmsg
6573 parameter to be a "std::string *".
6574 (main): Update.
6575
e9cb46ab
L
65762018-06-01 H.J. Lu <hongjiu.lu@intel.com>
6577
6578 * ada-lex.l: Include "diagnostics.h" instead of
6579 "common/diagnostics.h".
6580 * unittests/environ-selftests.c: Likewise.
6581 * common/diagnostics.h: Moved to ../include.
6582
8e817061
JB
65832018-06-01 Joel Brobecker <brobecker@adacore.com>
6584
6585 * breakpoint.c (breakpoint_re_set): Temporarily force language_mode
6586 to language_mode_manual while calling breakpoint_re_set_one.
6587
a737d952
TT
65882018-06-01 Tom Tromey <tom@tromey.com>
6589
6590 * valops.c (value_cast_structs, destructor_name_p): Update.
6591 * symtab.c (gdb_mangle_name): Update.
6592 * stabsread.c (define_symbol, read_cpp_abbrev, read_baseclasses):
6593 Update.
6594 * p-valprint.c (pascal_object_is_vtbl_ptr_type)
6595 (pascal_object_print_value_fields, pascal_object_print_value):
6596 Update.
6597 * p-typeprint.c (pascal_type_print_derivation_info): Update.
6598 * linespec.c (find_methods): Update.
6599 * gdbtypes.h (type_name_no_tag): Remove.
6600 (type_name_or_error): Rename from type_name_no_tag_or_error.
6601 * gdbtypes.c (type_name_no_tag): Remove.
6602 (type_name_or_error): Rename from type_name_no_tag_or_error.
6603 (lookup_struct_elt_type, check_typedef): Update.
6604 * expprint.c (print_subexp_standard): Update.
6605 * dwarf2read.c (dwarf2_add_field, load_partial_dies): Update.
6606 * d-namespace.c (d_lookup_nested_symbol): Update.
6607 * cp-valprint.c (cp_is_vtbl_ptr_type, cp_print_value_fields)
6608 (cp_print_class_member): Update.
6609 * cp-namespace.c (cp_lookup_nested_symbol): Update.
6610 * completer.c (add_struct_fields): Update.
6611 * c-typeprint.c (cp_type_print_derivation_info)
6612 (c_type_print_varspec_prefix, c_type_print_base_struct_union):
6613 Update.
6614 * ada-lang.c (parse_old_style_renaming, xget_renaming_scope)
6615 (ada_prefer_type, ada_is_exception_sym): Update.
6616
e86ca25f
TT
66172018-06-01 Tom Tromey <tom@tromey.com>
6618
6619 * valops.c (enum_constant_from_type, value_namespace_elt)
6620 (value_maybe_namespace_elt): Update.
6621 * valarith.c (find_size_for_pointer_math): Update.
6622 * target-descriptions.c (make_gdb_type): Update.
6623 * symmisc.c (print_symbol): Update.
6624 * stabsread.c (define_symbol, read_type)
6625 (complain_about_struct_wipeout, add_undefined_type)
6626 (cleanup_undefined_types_1): Update.
6627 * rust-lang.c (rust_tuple_type_p, rust_slice_type_p)
6628 (rust_range_type_p, val_print_struct, rust_print_struct_def)
6629 (rust_internal_print_type, rust_composite_type)
6630 (rust_evaluate_funcall, rust_evaluate_subexp)
6631 (rust_inclusive_range_type_p): Update.
6632 * python/py-type.c (typy_get_tag): Update.
6633 * p-typeprint.c (pascal_type_print_base): Update.
6634 * mdebugread.c (parse_symbol, parse_type): Update.
6635 * m2-typeprint.c (m2_long_set, m2_record_fields, m2_enum):
6636 Update.
6637 * guile/scm-type.c (gdbscm_type_tag): Update.
6638 * go-lang.c (sixg_string_p): Update.
6639 * gnu-v3-abi.c (build_gdb_vtable_type, build_std_type_info_type):
6640 Update.
6641 * gdbtypes.h (struct main_type) <tag_name>: Remove.
6642 (TYPE_TAG_NAME): Remove.
6643 * gdbtypes.c (type_name_no_tag): Simplify.
6644 (check_typedef, check_types_equal, recursive_dump_type)
6645 (copy_type_recursive, arch_composite_type): Update.
6646 * f-typeprint.c (f_type_print_base): Update. Print "Type" prefix
6647 in summary mode when needed.
6648 * eval.c (evaluate_funcall): Update.
6649 * dwarf2read.c (fixup_go_packaging, read_structure_type)
6650 (process_structure_scope, read_enumeration_type)
6651 (read_namespace_type, read_module_type, determine_prefix): Update.
6652 * cp-support.c (inspect_type): Update.
6653 * coffread.c (process_coff_symbol, decode_base_type): Update.
6654 * c-varobj.c (c_is_path_expr_parent): Update.
6655 * c-typeprint.c (c_type_print_base_struct_union): Update.
6656 (c_type_print_base_1): Update. Print struct/class/union/enum in
6657 summary when using C language.
6658 * ax-gdb.c (gen_struct_ref, gen_namespace_elt)
6659 (gen_maybe_namespace_elt): Update.
6660 * ada-lang.c (ada_type_name): Simplify.
6661 (empty_record, ada_template_to_fixed_record_type_1)
6662 (template_to_static_fixed_type)
6663 (to_record_with_fixed_variant_part, ada_check_typedef): Update.
6664
c1ec8cea
TT
66652018-06-01 Tom Tromey <tom@tromey.com>
6666
6667 * dwarf2read.c (dwarf2_compute_name): Pass CU's language to
6668 c_print_type.
6669 * c-typeprint.c (c_print_type_1): Add "language" parameter.
6670 (c_print_type): Update.
6671 (c_print_type): New overload.
6672 (c_type_print_varspec_prefix, c_type_print_args)
6673 (c_type_print_varspec_suffix, c_print_type_no_offsets)
6674 (c_type_print_base_struct_union, c_type_print_base_1)
6675 (cp_type_print_method_args): Add "language" parameter.
6676 (c_type_print_base): Update.
6677 * c-lang.h (c_print_type): Add new overload.
6678
bc8453a7
TT
66792018-06-01 Tom Tromey <tom@tromey.com>
6680
6681 * typeprint.h (c_type_print_varspec_suffix): Don't declare.
6682 * c-typeprint.c (c_type_print_varspec_suffix): Now static.
6683
739e8682
AH
66842018-06-01 Alan Hayward <alan.hayward@arm.com>
6685
6686 * aarch64-tdep.c (aarch64_sve_register_names): New const
6687 var.
6688 * arch/aarch64.h (enum aarch64_regnum): Add SVE entries.
6689 (AARCH64_SVE_Z_REGS_NUM): New define.
6690 (AARCH64_SVE_P_REGS_NUM): Likewise.
6691 (AARCH64_SVE_NUM_REGS): Likewise.
6692
8a60efe7
UB
66932018-05-31 Uros Bizjak <ubizjak@gmail.com>
6694
6695 * nat/linux-ptrace.h [__alpha__]
6696 (GDB_ARCH_IS_TRAP_BRKPT, GDB_ARCH_IS_TRAP_HWBKPT): Remove
6697 definitions.
6698
4b2dfa9d
MR
66992018-05-31 Maciej W. Rozycki <macro@mips.com>
6700
6701 * arch-utils.c (gdbarch_info_fill): Set `default_byte_order' to
6702 the endianness selected.
6703 * NEWS: Document `set endian auto' mode operation update.
6704
122394f1
AH
67052018-05-31 Alan Hayward <alan.hayward@arm.com>
6706
6707 * Makefile.in: Add new header.
6708 * gdb/arch/aarch64.h (sve_vg_from_vl): New macro.
6709 (sve_vl_from_vg): Likewise.
6710 (sve_vq_from_vl): Likewise.
6711 (sve_vl_from_vq): Likewise.
6712 (sve_vq_from_vg): Likewise.
6713 (sve_vg_from_vq): Likewise.
6714 * configure.nat: Add new c file.
6715 * nat/aarch64-sve-linux-ptrace.c: New file.
6716 * nat/aarch64-sve-linux-ptrace.h: New file.
6717
95228a0d
AH
67182018-05-31 Alan Hayward <alan.hayward@arm.com>
6719
6720 * aarch64-linux-nat.c (aarch64_linux_read_description):
6721 Add parmeter zero.
6722 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
6723 Likewise.
6724 * aarch64-tdep.c (tdesc_aarch64_list): Add.
6725 (aarch64_read_description): Use VQ to index tdesc_aarch64_list.
6726 (aarch64_gdbarch_init): Add parmeter zero.
6727 * aarch64-tdep.h (aarch64_read_description): Add VQ parmeter.
6728 * arch/aarch64.c (aarch64_create_target_description): Check VQ.
6729 * arch/aarch64.h (aarch64_create_target_description): Add VQ.
6730 parmeter.
6731 * doc/gdb.texinfo: Describe SVE feature
6732 * features/aarch64-sve.c: New file.
6733
5969f0db
OJ
67342018-05-31 Omair Javaid <omair.javaid@linaro.org>
6735
6736 PR gdb/23210
6737 * gdbarch.sh (significant_addr_bit): Default to zero when
6738 not set by target architecture.
6739 * gdbarch.c: Re-generated.
6740 * utils.c (address_significant): Update.
6741
61367c61
JB
67422018-05-30 Joel Brobecker <brobecker@adacore.com>
6743
6744 * stack.c (func_command): Remove trailing newline in call to error.
6745
34a79281
SM
67462018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6747
6748 * regcache.h (regcache_raw_collect): Remove, update callers to
6749 use regcache::raw_collect.
6750 * regcache.c (regcache_raw_collect): Remove.
6751
73e1c03f
SM
67522018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6753
6754 * regcache.h (regcache_raw_supply): Remove, update callers to
6755 use detached_regcache::raw_supply.
6756 * regcache.c (regcache_raw_supply): Remove.
6757
e4c4a59b
SM
67582018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6759
6760 * regcache.h (regcache_cooked_write_part): Remove, update
6761 callers to use regcache::cooked_write_part.
6762 * regcache.c (regcache_cooked_write_part): Remove.
6763
73bb0000
SM
67642018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6765
6766 * regcache.h (regcache_cooked_read_part): Remove, update callers
6767 to use readable_regcache::cooked_read_part.
6768 * regcache.c (regcache_cooked_read_part): Remove.
6769
46a45e9d
SM
67702018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6771
6772 * regcache.h (regcache_cooked_read_value): Remove, update
6773 callers to use readable_regcache::cooked_read_value.
6774 * regcache.c (regcache_cooked_read_value): Remove.
6775
b66f5587
SM
67762018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6777
6778 * regcache.h (regcache_cooked_write): Remove, update callers to
6779 use regcache::cooked_write.
6780 * regcache.c (regcache_cooked_write): Remove.
6781
6aa7d724
SM
67822018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6783
6784 * regcache.h (regcache_invalidate): Remove, update callers to
6785 use detached_regcache::invalidate instead.
6786 * regcache.c (regcache_invalidate): Remove.
6787
4f0420fd
SM
67882018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6789
6790 * regcache.h (regcache_raw_write_part): Remove, update callers
6791 to use regcache::raw_write_part instead.
6792 * regcache.c (regcache_raw_write_part): Remove.
6793
502fe83e
SM
67942018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6795
6796 * regcache.h (regcache_raw_read_part): Remove, update callers to
6797 use readable_regcache::raw_read_part instead.
6798 * regcache.c (regcache_raw_read_part): Remove.
6799
dca08e1f
SM
68002018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6801
6802 * regcache.h (regcache_cooked_read): Remove, update callers to
6803 use readable_regcache::cooked_read instead.
6804 * regcache.c (regcache_cooked_read): Remove.
6805
10eaee5f
SM
68062018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6807
6808 * regcache.h (regcache_raw_write): Remove, update callers to use
6809 regcache::raw_write instead.
6810 * regcache.c (regcache_raw_write): Remove.
6811
0b883586
SM
68122018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6813
6814 * regcache.h (regcache_raw_read): Remove, update callers to use
6815 readable_regcache::raw_read instead.
6816 * regcache.c (regcache_raw_read): Remove.
6817
0b47d985
SM
68182018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6819
6820 * regcache.h (regcache_raw_update): Remove, update callers to
6821 use readable_regcache::raw_update instead.
6822 * regcache.c (regcache_raw_update): Remove.
6823
0ec9f114
SM
68242018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6825
6826 * regcache.h (regcache_register_status): Remove, update callers
6827 to use reg_buffer::get_register_status directly instead.
6828 * regcache.c (regcache_register_status): Remove.
6829
222312d3
SM
68302018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6831
6832 * regcache.h (regcache_get_ptid): Remove, update all callers to
6833 call regcache::ptid instead.
6834 * regcache.c (regcache_get_ptid): Remove.
6835
fdbe37e3
SM
68362018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6837
6838 * Makefile.in (ALL_TARGET_OBS): Add or1k-tdep.o.
6839
f7c6f423
PA
68402018-05-30 Pedro Alves <palves@redhat.com>
6841
6842 * common/common-exceptions.h (exception_rethrow): Use
6843 ATTRIBUTE_NORETURN.
6844
52941706
SM
68452018-05-29 Simon Marchi <simon.marchi@polymtl.ca>
6846
6847 * breakpoint.c (print_solib_event, check_status_catch_solib):
6848 Remove struct keyword in range-based for loops.
6849 * dbxread.c (find_corresponding_bincl_psymtab): Likewise.
6850 * dwarf2read.c (compute_delayed_physnames, rust_union_quirks);
6851 Likewise.
6852 * linespec.c (find_superclass_methods, search_minsyms_for_name):
6853 Likewise.
6854 * symfile.c (addr_info_make_relative): Likewise.
6855 * thread.c (value_in_thread_stack_temporaries): Likewise.
6856
bf2977b5
WP
68572018-06-12 Weimin Pan <weimin.pan@oracle.com>
6858
6859 PR gdb/16841
6860 * valops.c (value_struct_elt_for_reference): Call check_typedef on
6861 aggregate type to get its real type before accessing it.
6862
64cc34d8
WP
68632018-05-29 Weimin Pan <weimin.pan@oracle.com>
6864
6865 * minsyms.h (lookup_minimal_symbol_and_objfile): Remove declaration.
6866 * minsyms.c (lookup_minimal_symbol_and_objfile): Remove definition.
6867 * coff-pe-read.c (add_pe_forwarded_sym): Replace
6868 lookup_minimal_symbol_and_objfile with lookup_bound_minimal_symbol.
6869 * glibc-tdep.c (glibc_skip_solib_resolver): Likewise.
6870 * jit.c (jit_breakpoint_re_set_internal): Likewise.
6871 * printcmd.c (info_address_command): Likewise.
6872
e7ec8713
TT
68732018-05-29 Tom Tromey <tom@tromey.com>
6874
6875 * windows-nat.c (handle_exception): Update fall-through comment.
6876
bcb430e4
TT
68772018-05-29 Tom Tromey <tom@tromey.com>
6878
6879 * progspace.h (so_list_ptr): Remove typedef. Don't declare VEC.
6880 (struct program_space) <added_solibs>: Now a std::vector.
6881 * breakpoint.c (print_solib_event): Update.
6882 (check_status_catch_solib): Update.
6883 * progspace.c (clear_program_space_solib_cache): Update.
6884 * solib.c (update_solib_list): Update.
6885
894882e3
TT
68862018-05-29 Tom Tromey <tom@tromey.com>
6887
6888 * python/py-type.c (typy_richcompare): Update.
6889 * guile/scm-type.c (tyscm_equal_p_type_smob): Update.
6890 * gdbtypes.h (types_deeply_equal): Return bool.
6891 (types_equal): Likewise.
6892 * gdbtypes.c (type_equality_entry_d): Remove typedef. Don't
6893 declare VEC.
6894 (check_types_equal): Change worklist to std::vector. Return
6895 bool.
6896 (struct type_equality_entry): Add constructor.
6897 (compare_maybe_null_strings): Return bool.
6898 (check_types_worklist): Return bool. Change worklist to
6899 std::vector.
6900 (types_deeply_equal): Use std::vector.
6901 (types_equal): Return bool.
6902 (compare_maybe_null_strings): Simplify.
6903
10b2ded4
TT
69042018-05-29 Tom Tromey <tom@tromey.com>
6905
6906 * record-btrace.c (tp_t): Remove typedef. Don't declare VEC.
6907
4f7deebe
TT
69082018-05-29 Tom Tromey <tom@tromey.com>
6909
6910 * objc-lang.h: Don't include cp-support.h.
6911 * common/gdb_vecs.h (const_char_ptr): Remove typedef. Don't
6912 declare VEC.
6913
b8283aea
TT
69142018-05-27 Tom Tromey <tom@tromey.com>
6915
6916 * Makefile.in (DEPFILES): Don't reference REMOTE_OBS.
6917
41a883c8
TT
69182018-05-25 Tom Tromey <tom@tromey.com>
6919
6920 * value.c (value::location): Initialize.
6921
bf259e25
TT
69222018-05-25 Tom Tromey <tom@tromey.com>
6923
6924 * dbxread.c (init_bincl_list): Remove.
6925 (bincl_list): Now a std::vector.
6926 (bincls_allocated, next_bincl): Remove.
6927 (free_bincl_list, do_free_bincl_list_cleanup)
6928 (make_cleanup_free_bincl_list): Remove.
6929 (dbx_read_symtab, elfstab_build_psymtabs): Use scoped_restore,
6930 unique_xmalloc_ptr.
6931 (find_corresponding_bincl_psymtab, read_dbx_symtab): Update.
6932 (struct header_file_location): Add constructor.
6933 (add_bincl_to_list): Remove.
6934
d525a99b
TT
69352018-05-25 Tom Tromey <tom@tromey.com>
6936
6937 * tui/tui.c (tui_enable): Update.
6938 * mi/mi-interp.c (mi_interp::init): Update.
6939 * interps.h (class interp) <name>: New method.
6940 <m_name>: Rename from name.
6941 (~scoped_restore_interp): Update.
6942 * interps.c (interp::interp): Update.
6943 (interp_add, interp_set, interp_lookup_existing)
6944 (current_interp_named_p): Update.
6945
da505cff
TT
69462018-05-25 Tom Tromey <tom@tromey.com>
6947
6948 * interps.c (interp_name): Remove.
6949 * mi/mi-interp.c (mi_interp::init): Update.
6950 * interps.h (interp_name): Remove.
6951 (~scoped_restore_interp): Update.
6952 * tui/tui.c (tui_enable): Update.
6953
29f94340
TT
69542018-05-25 Tom Tromey <tom@tromey.com>
6955
6956 * utils.c (fputs_maybe_filtered): Update.
6957 * linespec.c (decode_line_full): Update.
6958 * mi/mi-interp.c (mi_on_normal_stop_1, mi_tsv_modified)
6959 (mi_print_breakpoint_for_event, mi_solib_loaded)
6960 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
6961 (mi_user_selected_context_changed): Update.
6962 * mi/mi-main.c (mi_execute_command): Update.
6963 * cli/cli-script.c (execute_control_command): Update.
6964 * python/python.c (execute_gdb_command): Update.
6965 * solib.c (info_sharedlibrary_command): Update.
6966 * interps.c (interp_ui_out): Remove.
6967 * interps.h (interp_ui_out): Remove.
6968
716b8bc5
TT
69692018-05-25 Tom Tromey <tom@tromey.com>
6970
6971 * tui/tui-interp.c (as_tui_interp): Use dynamic_cast.
6972 * mi/mi-interp.c (as_mi_interp): Use dynamic_cast.
6973 * cli/cli-interp.c (as_cli_interp): Use dynamic_cast.
6974
753ff9bd
TT
69752018-05-25 Tom Tromey <tom@tromey.com>
6976
6977 * cli/cli-interp.c (safe_execute_command): Use scoped_restore.
6978 * interps.c (interp_exec): Use scoped_restore.
6979
5ca3b260
TT
69802018-05-25 Tom Tromey <tom@tromey.com>
6981
6982 * remote.c (remote_target::remote_file_get): Use
6983 gdb::byte_vector.
6984 (remote_target::remote_file_put): Likewise.
6985
3173aa2f
TT
69862018-05-25 Tom Tromey <tom@tromey.com>
6987
6988 * coff-pe-read.c (struct read_pe_section_data) <section_name>: Now
6989 a std::string.
6990 (get_pe_section_index, add_pe_exported_sym): Update.
6991 (read_pe_exported_syms): Use gdb::def_vector.
6992
09a5e1b5
TT
69932018-05-25 Tom Tromey <tom@tromey.com>
6994
6995 * frame.c (remove_prev_frame): Remove.
6996 (get_prev_frame_if_no_cycle): Use TRY/CATCH.
6997
d8dab6c3
MR
69982018-05-25 Maciej W. Rozycki <macro@mips.com>
6999
7000 * mips-linux-tdep.h (mips_supply_fpregset, mips_fill_fpregset):
7001 Remove prototypes.
7002 * mips-linux-nat.c (supply_fpregset): Always call
7003 `mips64_supply_fpregset' rather than `mips_supply_fpregset'.
7004 (fill_fpregset): Always call `mips64_fill_fpregset' rather than
7005 `mips_fill_fpregset'.
7006 * mips-linux-tdep.c (mips_supply_fpregset)
7007 (mips_supply_fpregset_wrapper, mips_fill_fpregset)
7008 (mips_fill_fpregset_wrapper): Remove functions.
7009 (mips64_supply_fpregset, mips64_fill_fpregset): Update comments.
7010 (mips_linux_fpregset): Remove variable.
7011 (mips_linux_iterate_over_regset_sections): Use
7012 `mips64_linux_fpregset' in place of `mips_linux_fpregset'.
7013 (mips_linux_o32_sigframe_init): Remove comment.
7014
3c69da40
PA
70152018-05-25 Pedro Alves <palves@redhat.com>
7016
7017 * remote.c (struct vCont_action_support, MAXTHREADLISTRESULTS)
7018 (struct readahead_cache, struct packet_reg, struct
7019 remote_arch_state, class remote_state): Move higher up in the
7020 file.
7021 (remote_target::m_remote_state): Now an object instead of a pointer.
7022 (remote_target::get_remote_state): Adjust.
7023
39f0c204
AB
70242018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
7025
7026 * stack.c (select_and_print_frame): Delete.
7027 (struct function_bounds): Move struct within function.
7028 (func_command): Most content moved into new function
7029 find_frame_for_function, use new function, print result, add
7030 function comment.
7031 (find_frame_for_function): New function, now returns a result.
7032
d392224a
PW
70332018-05-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7034
7035 * stack.c (iterate_over_block_arg_vars): Fix comment.
7036 (print_frame_arg_vars): Pass stream in cb_data, not gdb_stdout.
7037
45f25d6c
AB
70382018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
7039
7040 PR gdb/23203
7041 * frame.c
7042 (scoped_restore_selected_frame::scoped_restore_selected_frame):
7043 Define.
7044 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
7045 Define.
7046 * frame.h (class scoped_restore_selected_frame): New class.
7047 * stack.c (print_frame_local_vars): Remove catching and rethrowing
7048 of any exception, use scoped_restore_selected_frame to restore the
7049 frame instead.
7050
da05d921
PA
70512018-05-24 Pedro Alves <palves@redhat.com>
7052
7053 * darwin-nat.h (darwin_nat_target::create_inferior): Mark with
7054 override.
7055
a8be540e
TT
70562018-05-23 Tom Tromey <tom@tromey.com>
7057
7058 * complaints.c (struct complaints): Remove.
7059 (symfile_complaint_book): Remove.
7060 (series): New global.
7061 (complaint_internal): Update.
7062 (clear_complaints): Update.
7063
ff1cf532
TT
70642018-05-23 Tom Tromey <tom@tromey.com>
7065
7066 * complaints.c (counters): New global.
7067 (struct complain): Remove.
7068 (struct complaints) <root>: Remove.
7069 (complaint_sentinel): Remove.
7070 (symfile_complaint_book): Update.
7071 (find_complaint) Remove.
7072 (complaint_internal, clear_complaints): Update.
7073
7ff88174
TT
70742018-05-23 Tom Tromey <tom@tromey.com>
7075
7076 * complaints.c (struct complain) <file, line>: Remove.
7077 (find_complaint): Remove file, line parameters.
7078 (complaint_internal): Update.
7079
de54e1a5
TT
70802018-05-23 Tom Tromey <tom@tromey.com>
7081
7082 * complaints.c (vcomplaint): Remove.
7083 (complaint_internal) Merge in contents of vcomplaint.
7084
2ac237e5
TT
70852018-05-23 Tom Tromey <tom@tromey.com>
7086
7087 * complaints.c (struct complaints) <explanation>: Remove.
7088 (symfile_explanations): Remove.
7089 (symfile_complaint_book): Update.
7090 (vcomplaint): Update.
7091 (struct explanation): Remove.
7092
b98664d3
TT
70932018-05-23 Tom Tromey <tom@tromey.com>
7094
7095 * complaints.c (symfile_complaints): Remove.
7096 (complaint_internal): Remove "complaints" parameter.
7097 (clear_complaints, vcomplaint): Remove "c" parameter.
7098 (get_complaints): Remove.
7099 * dwarf2read.c (dwarf2_statement_list_fits_in_line_number_section_complaint)
7100 (dwarf2_debug_line_missing_file_complaint)
7101 (dwarf2_debug_line_missing_end_sequence_complaint)
7102 (dwarf2_complex_location_expr_complaint)
7103 (dwarf2_const_value_length_mismatch_complaint)
7104 (dwarf2_section_buffer_overflow_complaint)
7105 (dwarf2_macro_malformed_definition_complaint)
7106 (dwarf2_invalid_attrib_class_complaint)
7107 (create_addrmap_from_index, dw2_symtab_iter_next)
7108 (dw2_expand_marked_cus)
7109 (dw2_debug_names_iterator::find_vec_in_debug_names)
7110 (dw2_debug_names_iterator::next, dw2_debug_names_iterator::next)
7111 (create_debug_type_hash_table, init_cutu_and_read_dies)
7112 (partial_die_parent_scope, add_partial_enumeration)
7113 (skip_one_die, fixup_go_packaging, quirk_rust_enum, process_die)
7114 (dwarf2_compute_name, dwarf2_physname, read_namespace_alias)
7115 (read_import_statement, read_file_scope, create_dwo_cu_reader)
7116 (create_cus_hash_table, create_dwp_hash_table)
7117 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
7118 (dwarf2_rnglists_process, dwarf2_ranges_process)
7119 (dwarf2_add_type_defn, dwarf2_attach_fields_to_type)
7120 (dwarf2_add_member_fn, get_alignment, maybe_set_alignment)
7121 (handle_struct_member_die, process_structure_scope)
7122 (read_array_type, read_common_block, read_module_type)
7123 (read_tag_pointer_type, read_typedef, read_base_type)
7124 (read_subrange_type, load_partial_dies, partial_die_info::read)
7125 (partial_die_info::read, partial_die_info::read)
7126 (partial_die_info::read, read_checked_initial_length_and_offset)
7127 (dwarf2_string_attr, read_formatted_entries)
7128 (dwarf_decode_line_header)
7129 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
7130 (new_symbol, dwarf2_const_value_attr, lookup_die_type)
7131 (read_type_die_1, determine_prefix, dwarf2_get_ref_die_offset)
7132 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
7133 (get_signatured_type, get_DW_AT_signature_type)
7134 (decode_locdesc, file_file_name, consume_improper_spaces)
7135 (skip_form_bytes, skip_unknown_opcode, dwarf_parse_macro_header)
7136 (dwarf_decode_macro_bytes, dwarf_decode_macros)
7137 (dwarf2_symbol_mark_computed, set_die_type)
7138 (read_attribute_value): Update.
7139 * stap-probe.c (handle_stap_probe, get_stap_base_address):
7140 Update.
7141 * dbxread.c (unknown_symtype_complaint)
7142 (lbrac_mismatch_complaint, repeated_header_complaint)
7143 (set_namestring, function_outside_compilation_unit_complaint)
7144 (read_dbx_symtab, process_one_symbol): Update.
7145 * gdbtypes.c (stub_noname_complaint): Update.
7146 * windows-nat.c (handle_unload_dll): Update.
7147 * coffread.c (coff_symtab_read, enter_linenos, decode_type)
7148 (decode_base_type): Update.
7149 * xcoffread.c (bf_notfound_complaint, ef_complaint)
7150 (eb_complaint, record_include_begin, record_include_end)
7151 (enter_line_range, xcoff_next_symbol_text, read_xcoff_symtab)
7152 (process_xcoff_symbol, read_symbol)
7153 (function_outside_compilation_unit_complaint)
7154 (scan_xcoff_symtab): Update.
7155 * machoread.c (macho_symtab_read, macho_add_oso_symfile): Update.
7156 * buildsym.c (finish_block_internal, make_blockvector)
7157 (end_symtab_get_static_block, augment_type_symtab): Update.
7158 * dtrace-probe.c (dtrace_process_dof)
7159 (dtrace_static_probe_ops::get_probes): Update.
7160 * complaints.h (struct complaint): Don't declare.
7161 (symfile_complaints): Remove.
7162 (complaint_internal): Remove "complaints" parameter.
7163 (complaint): Likewise.
7164 (clear_complaints): Likewise.
7165 * symfile.c (syms_from_objfile_1, finish_new_objfile)
7166 (reread_symbols): Update.
7167 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
7168 (dwarf2_frame_cache, decode_frame_entry): Update.
7169 * dwarf2loc.c (dwarf_reg_to_regnum): Update.
7170 * objc-lang.c (lookup_objc_class, lookup_child_selector)
7171 (info_selectors_command): Update.
7172 * macrotab.c (macro_include, check_for_redefinition)
7173 (macro_undef): Update.
7174 * objfiles.c (filter_overlapping_sections): Update.
7175 * stabsread.c (invalid_cpp_abbrev_complaint)
7176 (reg_value_complaint, stabs_general_complaint, dbx_lookup_type)
7177 (define_symbol, error_type, read_type, rs6000_builtin_type)
7178 (stabs_method_name_from_physname, read_member_functions)
7179 (read_cpp_abbrev, read_baseclasses, read_tilde_fields)
7180 (attach_fields_to_type, complain_about_struct_wipeout)
7181 (read_range_type, read_args, common_block_start)
7182 (common_block_end, cleanup_undefined_types_1, scan_file_globals):
7183 Update.
7184 * mdebugread.c (index_complaint, unknown_ext_complaint)
7185 (basic_type_complaint, bad_tag_guess_complaint)
7186 (bad_rfd_entry_complaint, unexpected_type_code_complaint)
7187 (reg_value_complaint, parse_symbol, parse_type, upgrade_type)
7188 (parse_procedure, parse_lines)
7189 (function_outside_compilation_unit_complaint)
7190 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref)
7191 (bad_tag_guess_complaint, reg_value_complaint): Update.
7192 * cp-support.c (demangled_name_complaint): Update.
7193 * macroscope.c (sal_macro_scope): Update.
7194 * dwarf-index-write.c (class debug_names): Update.
7195
4e9668d0
TT
71962018-05-23 Tom Tromey <tom@tromey.com>
7197
7198 * complaints.c (clear_complaints): Remove "noisy" parameter.
7199 * complaints.h (clear_complaints): Update.
7200 * symfile.c (syms_from_objfile_1, finish_new_objfile)
7201 (reread_symbols): Update.
7202
43ba33c7
TT
72032018-05-23 Tom Tromey <tom@tromey.com>
7204
7205 * complaints.c (enum complaint_series): Remove FIRST_MESSAGE,
7206 SUBSEQUENT_MESSAGE.
7207 (vcomplaint, clear_complaints): Update.
7208 (symfile_explanations): Remove some messages.
7209
2b9496b2
TT
72102018-05-23 Tom Tromey <tom@tromey.com>
7211
7212 * complaints.c (internal_complaint): Remove.
7213 * complaints.h (internal_complaint): Remove.
7214
35f1fea3
MR
72152018-05-22 Maciej W. Rozycki <macro@mips.com>
7216
7217 * i387-tdep.c (i387_collect_xsave): Make `i' unsigned.
7218
6b8edb51
PA
72192018-05-22 Pedro Alves <palves@redhat.com>
7220
7221 * remote-fileio.c (remote_fileio_reply, remote_fileio_ioerror)
7222 (remote_fileio_badfd, remote_fileio_return_errno)
7223 (remote_fileio_return_success, remote_fileio_func_open)
7224 (remote_fileio_func_open, remote_fileio_func_close)
7225 (remote_fileio_func_read, remote_fileio_func_write)
7226 (remote_fileio_func_lseek, remote_fileio_func_rename)
7227 (remote_fileio_func_unlink, remote_fileio_func_stat)
7228 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
7229 (remote_fileio_func_isatty, remote_fileio_func_system): Add
7230 remote_target parameter.
7231 (remote_fio_func_map) <func>: Add remote_target parameter.
7232 (do_remote_fileio_request, remote_fileio_request):
7233 * remote-fileio.h (remote_fileio_request):
7234 * remote-notif.c (remote_notif_ack, remote_notif_parse, ): Add
7235 remote_target parameter.
7236 (remote_notif_process, handle_notification): Adjust to pass down
7237 the remote.
7238 (remote_notif_state_allocate): Add remote_target parameter. Save
7239 it.
7240 * remote-notif.h (struct remote_target): Forward declare.
7241 (struct notif_client) <parse, ack, can_get_pending_events>: Add
7242 remote_target parameter.
7243 (struct remote_notif_state) <remote>: New field.
7244 (remote_notif_ack, remote_notif_parse): Add remote_target
7245 parameter.
7246 (remote_notif_state_allocate, remote_notif_state_allocate): Add
7247 remote_target parameter.
7248 * remote.c (OPAQUETHREADBYTES, threadref, gdb_ext_thread_info)
7249 (threads_listing_context, rmt_thread_action, protocol_feature)
7250 (packet_reg, stop_reply, stop_reply_p, enum packet_support)
7251 (packet_result, struct threads_listing_context, remote_state):
7252 Move definitions and declarations higher up.
7253 (remote_target) <~remote_target>: Declare.
7254 (remote_download_command_source, remote_file_put, remote_file_get)
7255 (remote_file_delete, remote_hostio_pread, remote_hostio_pwrite)
7256 (remote_hostio_pread_vFile, remote_hostio_send_command)
7257 (remote_hostio_set_filesystem, remote_hostio_open)
7258 (remote_hostio_close, remote_hostio_unlink, remote_state)
7259 (get_remote_state, get_remote_packet_size, get_memory_packet_size)
7260 (get_memory_write_packet_size, get_memory_read_packet_size)
7261 (append_pending_thread_resumptions, remote_detach_1)
7262 (append_resumption, remote_resume_with_vcont)
7263 (add_current_inferior_and_thread, wait_ns, wait_as)
7264 (process_stop_reply, remote_notice_new_inferior)
7265 (process_initial_stop_replies, remote_add_thread)
7266 (btrace_sync_conf, remote_btrace_maybe_reopen)
7267 (remove_new_fork_children, kill_new_fork_children)
7268 (discard_pending_stop_replies, stop_reply_queue_length)
7269 (check_pending_events_prevent_wildcard_vcont)
7270 (discard_pending_stop_replies_in_queue, stop_reply)
7271 (remote_notif_remove_queued_reply, stop_reply *queued_stop_reply)
7272 (peek_stop_reply, remote_parse_stop_reply, remote_stop_ns)
7273 (remote_interrupt_as, remote_interrupt_ns)
7274 (remote_get_noisy_reply, remote_query_attached)
7275 (remote_add_inferior, remote_current_thread, get_current_thread)
7276 (set_thread, set_general_thread, set_continue_thread)
7277 (set_general_process, write_ptid)
7278 (remote_unpack_thread_info_response, remote_get_threadinfo)
7279 (parse_threadlist_response, remote_get_threadlist)
7280 (remote_threadlist_iterator, remote_get_threads_with_ql)
7281 (remote_get_threads_with_qxfer)
7282 (remote_get_threads_with_qthreadinfo, extended_remote_restart)
7283 (get_offsets, remote_check_symbols, remote_supported_packet)
7284 (remote_query_supported, remote_packet_size)
7285 (remote_serial_quit_handler, remote_detach_pid)
7286 (remote_vcont_probe, remote_resume_with_hc)
7287 (send_interrupt_sequence, interrupt_query)
7288 (remote_notif_get_pending_events, fetch_register_using_p)
7289 (send_g_packet, process_g_packet, fetch_registers_using_g)
7290 (store_register_using_P, store_registers_using_G)
7291 (set_remote_traceframe, check_binary_download)
7292 (remote_write_bytes_aux, remote_write_bytes, remote_read_bytes_1)
7293 (remote_xfer_live_readonly_partial, remote_read_bytes)
7294 (remote_send_printf, remote_flash_write, readchar)
7295 (remote_serial_write, putpkt, putpkt_binary, skip_frame)
7296 (read_frame, getpkt, getpkt_or_notif_sane_1, getpkt_sane)
7297 (getpkt_or_notif_sane, remote_vkill, remote_kill_k)
7298 (extended_remote_disable_randomization, extended_remote_run)
7299 (send_environment_packet, extended_remote_environment_support)
7300 (extended_remote_set_inferior_cwd, remote_write_qxfer)
7301 (remote_read_qxfer, push_stop_reply, vcont_r_supported)
7302 (packet_command): Now methods of ...
7303 (remote_target): ... this class.
7304 (m_remote_state) <remote_target>: New field.
7305 (struct remote_state) <stop_reply_queue,
7306 remote_async_inferior_event_token, wait_forever_enabled_p>: New
7307 fields.
7308 (remote_state::remote_state): Allocate stop_reply_queue.
7309 (remote_state): Delete global.
7310 (get_remote_state_raw): Delete.
7311 (remote_target::get_remote_state): Allocate m_remote_state on
7312 demand.
7313 (get_current_remote_target): New.
7314 (remote_ops, extended_remote_ops): Delete.
7315 (wait_forever_enabled_p, remote_async_inferior_event_token):
7316 Delete, moved to struct remote_state.
7317 (remote_target::close): Delete self. Destruction bits split to
7318 ...
7319 (remote_target::~remote_target): ... this.
7320 (show_memory_packet_size): Adjust to use
7321 get_current_remote_target.
7322 (struct protocol_feature) <func>: Add remote_target parameter.
7323 All callers adjusted.
7324 (curr_quit_handler_target): New.
7325 (remote_serial_quit_handler): Reimplement.
7326 (remote_target::open_1): Adjust to use get_current_remote_target.
7327 Heap-allocate remote_target/extended_remote_target instances.
7328 (vcont_builder::vcont_builder): Add remote_target parameter, and
7329 save it in m_remote. All callers adjusted.
7330 (vcont_builder::m_remote): New field.
7331 (vcont_builder::restart, vcont_builder::flush)
7332 (vcont_builder::push_action): Use it.
7333 (remote_target::commit_resume): Use it.
7334 (struct queue_iter_param) <remote>: New field.
7335 (remote_target::remove_new_fork_children): Fill in 'remote' field.
7336 (check_pending_event_prevents_wildcard_vcont_callback_data): New.
7337 (check_pending_event_prevents_wildcard_vcont_callback)
7338 (remote_target::check_pending_events_prevent_wildcard_vcont)
7339 (remote_target::discard_pending_stop_replies)
7340 (remote_target::discard_pending_stop_replies_in_queue)
7341 (remote_target::remote_notif_remove_queued_reply): Fill in
7342 'remote' field.
7343 (remote_notif_get_pending_events): New.
7344 (remote_target::readchar, remote_target::remote_serial_write):
7345 Save/restore curr_quit_handler_target.
7346 (putpkt): New.
7347 (kill_new_fork_children): Fill in 'remote' field.
7348 (packet_command): Use get_current_remote_target, defer to
7349 remote_target method of same name.
7350 (scoped_remote_fd::scoped_remote_fd): Add 'remote_target'
7351 parameter, and save it in m_remote. All callers adjusted.
7352 (scoped_remote_fd::release): Use m_remote.
7353 (scoped_remote_fd::m_remote): New field.
7354 (remote_file_put, remote_file_get, remote_file_delete): Use
7355 get_current_remote_target, defer to remote_target method of same
7356 name.
7357 (remote_btrace_reset): Add remote_state paremeter. Update all
7358 callers.
7359 (remote_async_inferior_event_handler). Pass down 'data'.
7360 (remote_new_objfile): Use get_current_remote_target.
7361 (remote_target::vcont_r_supported): New.
7362 (set_range_stepping): Use get_current_remote_target and
7363 remote_target::vcont_r_supported.
7364 (_initialize_remote): Don't allocate 'remote_state' and
7365 'stop_reply_queue' globals.
7366 * remote.h (struct remote_target): Forward declare.
7367 (getpkt, putpkt, remote_notif_get_pending_events): Add
7368 'remote_target' parameter.
7369
f5db4863
PA
73702018-05-22 Pedro Alves <palves@redhat.com>
7371
7372 * remote.c (vcont_builder): Now a class. Make all data members
7373 private.
7374 (vcont_builder) <vcont_builder, restart, flush, push_action>:
7375 Declare methods.
7376 (vcont_builder_restart): Rename to ...
7377 (vcont_builder::restart): ... this.
7378 (vcont_builder_flush): Rename to ...
7379 (vcont_builder::flush): ... this.
7380 (vcont_builder_push_action): Rename to ...
7381 (vcont_builder::push_action): ... this.
7382 (remote_target::commit_resume): Adjust.
7383
cc0be08f
PA
73842018-05-22 Pedro Alves <palves@redhat.com>
7385
7386 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE): Rename to ...
7387 (DEFAULT_MAX_MEMORY_PACKET_SIZE_FIXED): ... this.
7388 (get_fixed_memory_packet_size): New.
7389 (get_memory_packet_size): Use it.
7390 (set_memory_packet_size): Don't override the config size with
7391 DEFAULT_MAX_MEMORY_PACKET_SIZE.
7392 (show_memory_packet_size): Use get_fixed_memory_packet_size.
7393 Don't refer to get_memory_packet_size if not connected to a remote
7394 target. Show "(default)" if configured size is 0.
7395
9607784a
PA
73962018-05-22 Pedro Alves <palves@redhat.com>
7397
7398 * remote.c (remote_target::mourn_inferior): Move
7399 discard_pending_stop_replies call here from ...
7400 (_initialize_remote): ... here.
7401
0e9a6b2f
PA
74022018-05-22 Pedro Alves <palves@redhat.com>
7403
7404 * remote.c (compare_section_command): Remove set_general_process
7405 call.
7406
43c3a0e4
PA
74072018-05-22 Pedro Alves <palves@redhat.com>
7408
7409 * remote.c (struct packet_reg, struct remote_arch_state):
7410 Move higher up in the file.
7411 (remote_state) <m_arch_states>: Store remote_arch_state values
7412 instead of remote_arch_state pointers.
7413 (remote_state::get_remote_arch_state): Adjust.
7414
9d6eea31
PA
74152018-05-22 Pedro Alves <palves@redhat.com>
7416
7417 * remote.c: Include <unordered_map>.
7418 (remote_state): Now a class.
7419 (remote_state) <get_remote_arch_state>: Declare method.
7420 <get_remote_arch_state>: New field.
7421 (remote_arch_state) <remote_arch_state>: Declare ctor.
7422 <regs>: Now a unique_ptr.
7423 (remote_gdbarch_data_handle): Delete.
7424 (get_remote_arch_state): Delete.
7425 (remote_state::get_remote_arch_state): New.
7426 (get_remote_state): Adjust to call remote_state's
7427 get_remote_arch_state method.
7428 (init_remote_state): Delete, bits factored out to ...
7429 (remote_arch_state::remote_arch_state): ... this new method.
7430 (get_remote_packet_size, get_memory_packet_size)
7431 (process_g_packet, remote_target::fetch_registers)
7432 (remote_target::prepare_to_store, store_registers_using_G)
7433 (remote_target::store_registers, remote_target::get_trace_status):
7434 Adjust to call remote_state's method.
7435 (_initialize_remote): Remove reference to
7436 remote_gdbarch_data_handle.
7437
dd194f6b
PA
74382018-05-22 Pedro Alves <palves@redhat.com>
7439
7440 * remote.c (struct readahead_cache) <invalidate, invalidate_fd,
7441 pread>: New method declarations.
7442 (remote_target::open_1): Adjust.
7443 (readahead_cache_invalidate): Rename to ...
7444 (readahead_cache::invalidate): ... this, and adjust to be a class
7445 method.
7446 (readahead_cache_invalidate_fd): Rename to ...
7447 (readahead_cache::invalidate_fd): ... this, and adjust to be a
7448 class method.
7449 (remote_hostio_pwrite): Adjust.
7450 (remote_hostio_pread_from_cache): Rename to ...
7451 (readahead_cache::pread): ... this, and adjust to be a class
7452 method.
7453 (remote_hostio_close): Adjust.
7454
440b7aec
PA
74552018-05-22 Pedro Alves <palves@redhat.com>
7456
7457 * remote.c (remote_hostio_close_cleanup): Delete.
7458 (class scoped_remote_fd): New.
7459 (remote_file_put, remote_file_get): Use it.
7460
de44f5a7
PA
74612018-05-22 Pedro Alves <palves@redhat.com>
7462
7463 (struct vCont_action_support): Use bool and initialize all fields.
7464 (struct readahead_cache): Initialize all fields.
7465 (remote_state): Use bool and initialize all fields.
7466 (remote_state::remote_state, remote_state::~remote_state): New.
7467 (new_remote_state): Delete.
7468 (_initialize_remote): Use new to allocate remote_state.
7469
b1b60145
PA
74702018-05-22 Pedro Alves <palves@redhat.com>
7471 張俊芝 <zjz@zjz.name>
7472
7473 PR gdb/22973
7474 * c-exp.y: Include "c-support.h".
7475 (parse_number, c_parse_escape, lex_one_token): Use TOLOWER instead
7476 of tolower. Use c_ident_is_alpha to scan names.
7477 * c-lang.c: Include "c-support.h".
7478 (convert_ucn, convert_octal, convert_hex, convert_escape): Use
7479 ISXDIGIT instead of isxdigit and ISDIGIT instead of isdigit.
7480 * c-support.h: New file, with bits factored out from ...
7481 * cp-name-parser.y: ... this file.
7482 Include "c-support.h".
7483 (cp_ident_is_alpha, cp_ident_is_alnum): Deleted, moved to
7484 c-support.h and renamed.
7485 (symbol_end, yylex): Adjust.
7486
0ec848ad
PFC
74872018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7488
7489 * arch/ppc-linux-common.c (ppc_linux_has_isa205): Change the
7490 parameter type to CORE_ADDR.
7491 * arch/ppc-linux-common.h (ppc_linux_has_isa205): Change the
7492 parameter type in declaration to CORE_ADDR.
7493 * ppc-linux-tdep.c (ppc_linux_core_read_description): Call
7494 target_auxv_search to get AT_HWCAP and use the result to get the
7495 target description.
7496 * ppc-linux-nat.c (ppc_linux_get_hwcap): Change the return type
7497 to CORE_ADDR. Remove the cast of the return value to unsigned
7498 long. Fix error predicate of target_auxv_search.
7499 (ppc_linux_nat_target::read_description): Change the type of the
7500 hwcap variable to CORE_ADDR.
7501
0fb2aaa1
PFC
75022018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7503
7504 * rs6000-tdep.c (rs6000_gdbarch_init): Assign 1 to have_dfp only
7505 if the size of fpscr is larger than 32 bits.
7506
2c3305f6
PFC
75072018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7508
7509 * ppc-linux-tdep.c (ppc_linux_vsxregset): New function.
7510 (ppc32_linux_vsxregmap): New global.
7511 (ppc32_linux_vsxregset): Initialize with ppc32_linux_vsxregmap,
7512 regcache_supply_regset, and regcache_collect_regset.
7513 * ppc-linux-tdep.h (ppc_linux_vsxregset): Declare.
7514 * ppc-linux-nat.c (supply_vsxregset, fill_vsxregset): Remove.
7515 (fetch_vsx_register, store_vsx_register): Remove.
7516 (fetch_vsx_registers): Add regno parameter. Get regset using
7517 ppc_linux_vsxregset. Use regset to supply registers.
7518 (store_vsx_registers): Add regno parameter. Get regset using
7519 ppc_linux_vsxregset. Use regset to collect registers.
7520 (fetch_register): Call fetch_vsx_registers instead of
7521 fetch_vsx_register.
7522 (store_register): Call store_vsx_registers instead of
7523 store_vsx_register.
7524 (fetch_ppc_registers): Call fetch_vsx_registers with -1 for the
7525 new regno parameter.
7526 (store_ppc_registers): Call store_vsx_registers with -1 for the
7527 new regno parameter.
7528 * rs6000-tdep.c (ppc_vsx_support_p, ppc_supply_vsxreget)
7529 (ppc_collect_vsxregset): Remove.
7530
1d75a658
PFC
75312018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7532
7533 * ppc-tdep.h (struct ppc_reg_offsets): Remove vector register
7534 offset fields.
7535 * ppc-fbsd-tdep.c (ppc32_fbsd_reg_offsets): Remove initializers
7536 for vector register offset fields.
7537 (ppc64_fbsd_reg_offsets): Likewise.
7538 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
7539 to vector register offset fields.
7540 * ppc-obsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
7541 to vector register offset fields.
7542 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Remove assignment to
7543 vector register offset fields.
7544 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Remove
7545 initializers for vector register offset fields.
7546 (rs6000_aix64_reg_offsets): Likewise.
7547 * rs6000-tdep.c (ppc_vrreg_offset): Remove.
7548 (ppc_supply_vrregset): Remove.
7549 (ppc_collect_vrregset): Remove.
7550 * ppc-linux-tdep.c (ppc_linux_collect_vrregset): New function.
7551 (ppc_linux_vrregset) : New function.
7552 (ppc32_le_linux_vrregmap, ppc32_be_linux_vrregmap)
7553 (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): New globals.
7554 (ppc32_linux_vrregset): Remove.
7555 (ppc_linux_iterate_over_regset_sections): Call ppc_linux_vrregset
7556 and use result instead of ppc32_linux_vrregset.
7557 (ppc32_linux_reg_offsets): Remove initializers for vector register
7558 offset fields.
7559 (ppc64_linux_reg_offsets): Likewise.
7560 * ppc-linux-tdep.h (ppc_linux_vrregset): New declaration.
7561 * ppc-linux-nat.c: Include regset.h.
7562 (gdb_vrregset_t): Adjust comment to account for little-endian
7563 mode.
7564 (supply_vrregset, fill_vrregset): Remove.
7565 (fetch_altivec_register, store_altivec_register): Remove.
7566 (fetch_altivec_registers): Add regno parameter. Get regset using
7567 ppc_linux_vrregset. Use regset to supply registers.
7568 (store_altivec_registers): Add regno parameter. Get regset using
7569 ppc_linux_vrregset. Use regset to collect registers.
7570 (fetch_register): Call fetch_altivec_registers instead of
7571 fetch_altivec_register.
7572 (store_register): Call store_altivec_registers instead of
7573 store_altivec_register.
7574 (fetch_ppc_registers): Call fetch_altivec_registers with -1 for
7575 the new regno parameter.
7576 (store_ppc_registers): Call store_altivec_registers with -1 for
7577 the new regno parameter.
7578
d078308a
PFC
75792018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7580
7581 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_VRREGSET)
7582 (PPC_LINUX_SIZEOF_VSXREGSET): Define.
7583 * ppc-linux-nat.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
7584 (gdb_vrregset_t): Change array type size to
7585 PPC_LINUX_SIZEOF_VRREGSET.
7586 (gdb_vsxregset_t): Change array type size to
7587 PPC_LINUX_SIZEOF_VSXREGSET.
7588 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections):
7589 Change integer literals to PPC_LINUX_SIZEOF_VRREGSET and
7590 PPC_LINUX_SIZEOF_VSXREGSET.
7591
2e077f5e
PFC
75922018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7593
7594 * configure.nat <linux powerpc>: Add ppc-linux.o to NATDEPFILES.
7595 * ppc-linux-nat.c (ppc_linux_target_wordsize): Move to
7596 nat/ppc-linux.c.
7597 (ppc_linux_nat_target::auxv_parse): Get thread id tid. Call
7598 ppc_linux_target_wordsize with tid.
7599 (ppc_linux_nat_target::read_description): Call ppc_linux_target
7600 wordsize with tid.
7601 * nat/ppc-linux.c: Include nat/gdb_ptrace.h.
7602 (ppc64_64bit_inferior_p): Add static and inline specifiers.
7603 (ppc_linux_target_wordsize): Move here from ppc-linux-nat.c. Add
7604 tid parameter. Remove static specifier.
7605 * nat/ppc-linux.h (ppc64_64bit_inferior_p): Remove declaration.
7606 (ppc_linux_target_wordsize): New declaration.
7607
bd64614e
PFC
76082018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7609
7610 * arch/ppc-linux-common.c: New file.
7611 * arch/ppc-linux-common.h: New file.
7612 * arch/ppc-linux-tdesc.h: New file.
7613 * configure.tgt (powerpc*-*-linux*): Add arch/ppc-linux-common.o.
7614 * Makefile.in (ALL_TARGET_OBS): Add arch/ppc-linux-common.o.
7615 (HFILES_NO_SRCDIR): Add arch/ppc-linux-common.h and
7616 arch/ppc-linux-tdesc.h.
7617 * ppc-linux-nat.c: Include arch/ppc-linux-common.h and
7618 arch/ppc-linux-tdesc.h.
7619 (ppc_linux_nat_target::read_description): Remove target
7620 description matching code. Fill a ppc_linux_features struct and
7621 call ppc_linux_match_description with it. Move comment about ISA
7622 2.05 to ppc-linux-common.c.
7623 * ppc-linux-tdep.c: Include arch/ppc-linux-common.h and
7624 arch/ppc-linux-tdesc.h.
7625 (ppc_linux_core_read_description): Remove target description
7626 matching code. Fill a ppc_linux_features struct and call
7627 ppc_linux_match_description with it.
7628 * ppc-linux-tdep.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
7629 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
7630 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
7631 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
7632 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
7633 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
7634 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
7635 (tdesc_powerpc_e500l): Remove.
7636
241db429
JB
76372018-05-22 Joel Brobecker <brobecker@adacore.com>
7638
7639 * ada-lang.c (catch_assert_command): Pass empty string instead
7640 of NULL for excep_string argument.
7641
75d74cca
MR
76422018-05-22 Maciej W. Rozycki <macro@mips.com>
7643
7644 * mips-linux-nat.c (mips64_linux_register_addr): Return -1 if
7645 the width of the requested register exceeds the width of the
7646 `ptrace' data type.
7647
122b53ea
TT
76482018-05-21 Tom Tromey <tom@tromey.com>
7649
7650 * printcmd.c (output_command): Remove.
7651 (output_command_const): Rename to output_command.
7652 * valprint.h (output_command): Rename from output_command_const.
7653 * tracepoint.c (trace_dump_actions): Call output_command.
7654
bc18fbb5
TT
76552018-05-21 Tom Tromey <tom@tromey.com>
7656
7657 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
7658 (mi_cmd_catch_exception, mi_cmd_catch_handlers): Update.
7659 * ada-lang.h (create_ada_exception_catchpoint): Update.
7660 * ada-lang.c (struct ada_catchpoint) <excep_string>: Now a
7661 std::string.
7662 (create_excep_cond_exprs, ~ada_catchpoint)
7663 (should_stop_exception, print_one_exception)
7664 (print_mention_exception, print_recreate_exception): Update.
7665 (ada_get_next_arg): Remove.
7666 (catch_ada_exception_command_split): Use std::string. Change type
7667 of "excep_string", "cond_string".
7668 (catch_ada_exception_command): Update.
7669 (create_ada_exception_catchpoint): Change type of excep_string.
7670 (ada_exception_sal): Remove excep_string parameter.
7671 (~ada_catchpoint): Remove.
7672
790217f6
TT
76732018-05-21 Tom Tromey <tom@tromey.com>
7674
7675 * ada-lang.c (ada_collect_symbol_completion_matches): Remove
7676 cleanup.
7677
6f46ac85
TT
76782018-05-21 Tom Tromey <tom@tromey.com>
7679
7680 * ada-lang.c (ada_exception_message_1, ada_exception_message):
7681 Return unique_xmalloc_ptr.
7682 (print_it_exception): Update.
7683
15b6611c
TT
76842018-05-21 Tom Tromey <tom@tromey.com>
7685
7686 * tracepoint.c (trace_dump_actions): Use std::string.
7687
c0c9f665
TT
76882018-05-21 Tom Tromey <tom@tromey.com>
7689
7690 * symfile.c (reread_symbols): Use std::string for original_name.
7691
22ca247e
TT
76922018-05-21 Tom Tromey <tom@tromey.com>
7693
7694 * dwarf2read.c (dwarf2_read_debug_names): Use std::unique_ptr.
7695 (mapped_index_base): Use DISABLE_COPY_AND_ASSIGN. Default
7696 constructor.
7697
184cde75
SM
76982018-05-20 Simon Marchi <simon.marchi@polymtl.ca>
7699
7700 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Rename the wrong
7701 instance to...
7702 (HAVE_IS_TRIVIALLY_CONSTRUCTIBLE): ... this.
7703 * objfiles.c (get_objfile_bfd_data): Allocate
7704 objfile_per_bfd_storage with obstack_new when allocating on
7705 obstack.
7706
e39db4db
SM
77072018-05-20 Simon Marchi <simon.marchi@ericsson.com>
7708
7709 * ada-lang.c (cache_symbol): Use XOBNEW and/or XOBNEWVEC and/or
7710 OBSTACK_ZALLOC.
7711 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
7712 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
7713 * mdebugread.c (mdebug_build_psymtabs): Likewise.
7714 (add_pending): Likewise.
7715 (parse_symbol): Likewise.
7716 (parse_partial_symbols): Likewise.
7717 (psymtab_to_symtab_1): Likewise.
7718 (new_psymtab): Likewise.
7719 (elfmdebug_build_psymtabs): Likewise.
7720 * minsyms.c (terminate_minimal_symbol_table): Likewise.
7721 * objfiles.c (get_objfile_bfd_data): Likewise.
7722 (objfile_register_static_link): Likewise.
7723 * psymtab.c (allocate_psymtab): Likewise.
7724 * stabsread.c (read_member_functions): Likewise.
7725 * xcoffread.c (xcoff_end_psymtab): Likewise.
7726
284a0e3c
SM
77272018-05-20 Simon Marchi <simon.marchi@ericsson.com>
7728
7729 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Define if
7730 compiler supports std::is_trivially_constructible.
7731 * common/poison.h: Include obstack.h.
7732 (IsMallocable): Define to is_trivially_constructible if the
7733 compiler supports it, define to true_type otherwise.
7734 (xobnew): New.
7735 (XOBNEW): Redefine.
7736 (xobnewvec): New.
7737 (XOBNEWVEC): Redefine.
7738 * gdb_obstack.h (obstack_zalloc): New.
7739 (OBSTACK_ZALLOC): Redefine.
7740 (obstack_calloc): New.
7741 (OBSTACK_CALLOC): Redefine.
7742 (obstack_new): New.
7743 * gdbarch.sh: Include gdb_obstack in gdbarch.h.
7744 (gdbarch_obstack): New declaration in gdbarch.h, definition in
7745 gdbarch.c.
7746 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Use
7747 obstack_calloc/obstack_zalloc.
7748 (gdbarch_obstack_zalloc): Remove.
7749 * target-descriptions.c (tdesc_data_init): Use obstack_new.
7750
59f66be3
PW
77512018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7752
7753 * stack.c (backtrace_command_1): Remove useless variable int i.
7754
50c65c2d
PW
77552018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7756
7757 * stack.c (print_frame_info): Fix comment.
7758
7ff8cb8c
TT
77592018-05-18 Tom Tromey <tom@tromey.com>
7760
7761 * dwarf2read.c (struct dwz_file): Add constructor, initializers.
7762 <dwz_bfd>: Now a gdb_bfd_ref_ptr.
7763 (~dwarf2_per_objfile): Update
7764 (dwarf2_get_dwz_file): Use new.
7765 * dwarf2read.h (struct dwarf2_per_objfile) <dwz_file>: Now a
7766 unique_ptr.
7767
400174b1
TT
77682018-05-18 Tom Tromey <tom@tromey.com>
7769
7770 * dwarf2read.h (struct dwarf2_per_objfile) <dwp_file>: Now a
7771 unique_ptr.
7772 * dwarf2read.c (struct dwp_file): Add constructor and
7773 initializers.
7774 (open_and_init_dwp_file): Return a unique_ptr.
7775 (dwarf2_per_objfile, create_dwp_hash_table)
7776 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2)
7777 (lookup_dwo_unit_in_dwp): Update.
7778 (open_and_init_dwp_file, get_dwp_file): Update.
7779
3063847f
TT
77802018-05-18 Tom Tromey <tom@tromey.com>
7781
7782 * dwarf2read.c (dwarf2_per_objfile): Update.
7783 (struct mapped_index): Add initializers.
7784 (dwarf2_read_index): Use new.
7785 (dw2_symtab_iter_init): Update.
7786 * dwarf2read.h (struct dwarf2_per_objfile) <index_table>: Now a
7787 unique_ptr.
7788
d3d02dee
SM
77892018-05-18 Simon Marchi <simon.marchi@ericsson.com>
7790
7791 * dwarf2read.c (mapped_index) <total_size>: Remove.
7792
1d143c36
SM
77932018-05-18 Simon Marchi <simon.marchi@ericsson.com>
7794
7795 * unittests/format_pieces-selftests.c (test_format_specifier):
7796 Add ARI comments.
7797
ce1e8424
TT
77982018-05-18 Tom Tromey <tom@tromey.com>
7799
7800 * c-typeprint.c (maybe_print_hole): New function.
7801 (c_print_type_struct_field_offset): Update.
7802 (c_type_print_base_struct_union): Call maybe_print_hole.
7803
ddfe970e
KS
78042018-05-17 Keith Seitz <keiths@redhat.com>
7805
7806 * breakpoint.c (build_bpstat_chain): New function, moved from
7807 bpstat_stop_status.
7808 (bpstat_stop_status): Add optional parameter, `stop_chain'.
7809 If no stop chain is passed, call build_bpstat_chain to build it.
7810 * breakpoint.h (build_bpstat_chain): Declare.
7811 (bpstat_stop_status): Move documentation here from breakpoint.c.
7812 * infrun.c (handle_signal_stop): Before eliding inlined frames,
7813 build the stop chain and pass it to skip_inline_frames.
7814 Pass this stop chain to bpstat_stop_status.
7815 * inline-frame.c: Include breakpoint.h.
7816 (stopped_by_user_bp_inline_frame): New function.
7817 (skip_inline_frames): Add parameter `stop_chain'.
7818 Move documention to inline-frame.h.
7819 If non-NULL, use stopped_by_user_bp_inline_frame to determine
7820 whether the frame should be elided.
7821 * inline-frame.h (skip_inline_frames): Add parameter `stop_chain'.
7822 Add moved documentation and update for new parameter.
7823
b17992c1
SM
78242018-05-17 Simon Marchi <simon.marchi@ericsson.com>
7825
7826 PR cli/14975
7827 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7828 unittests/format_pieces-selftests.c.
7829 * common/format.h (format_piece) <operator==>: New.
7830 (format_pieces) <operator[]>: Remove.
7831 * common/format.c (format_pieces::format_pieces): Handle \e.
7832 * unittests/format_pieces-selftests.c: New.
7833
58f0c718
TT
78342018-05-17 Tom Tromey <tom@tromey.com>
7835
7836 PR symtab/23010:
7837 * dwarf2read.c (load_cu, dw2_do_instantiate_symtab)
7838 (dw2_instantiate_symtab): Add skip_partial parameter.
7839 (dw2_find_last_source_symtab, dw2_map_expand_apply)
7840 (dw2_lookup_symbol, dw2_expand_symtabs_for_function)
7841 (dw2_expand_all_symtabs, dw2_expand_symtabs_with_fullname)
7842 (dw2_expand_symtabs_matching_one)
7843 (dw2_find_pc_sect_compunit_symtab)
7844 (dw2_debug_names_lookup_symbol)
7845 (dw2_debug_names_expand_symtabs_for_function): Update.
7846 (init_cutu_and_read_dies): Add skip_partial parameter.
7847 (process_psymtab_comp_unit, build_type_psymtabs_1)
7848 (process_skeletonless_type_unit, load_partial_comp_unit)
7849 (psymtab_to_symtab_1): Update.
7850 (load_full_comp_unit): Add skip_partial parameter.
7851 (process_imported_unit_die, dwarf2_read_addr_index)
7852 (follow_die_offset, dwarf2_fetch_die_loc_sect_off)
7853 (dwarf2_fetch_constant_bytes, dwarf2_fetch_die_type_sect_off)
7854 (read_signatured_type): Update.
7855
3e618834
SM
78562018-05-17 Simon Marchi <simon.marchi@ericsson.com>
7857
7858 * value.c (release_value): Remove unused variable.
7859 (record_latest_value): Likewise.
7860 (access_value_history): Likewise.
7861 (preserve_values): Likewise.
7862
fe10fe31
TT
78632018-05-17 Tom Tromey <tom@tromey.com>
7864
7865 * extension.h (struct ext_lang_type_printers) <py_type_printers>:
7866 Initialize.
7867
1d761124
MR
78682018-05-16 Maciej W. Rozycki <macro@mips.com>
7869
7870 PR gdb/22286
7871 * linux-nat-trad.c (linux_nat_trad_target::fetch_register):
7872 Also handle registers whose width is not a multiple of
7873 PTRACE_TYPE_RET.
7874 (linux_nat_trad_target::store_register): Likewise.
7875
06333fea
TT
78762018-05-16 Tom Tromey <tom@tromey.com>
7877
7878 * gdbcore.h (core_bfd): Redefine.
7879 * corelow.c (core_target::close): Update.
7880 (core_target_open): Update.
7881 * progspace.h (struct program_space) <cbfd>: Now a
7882 gdb_bfd_ref_ptr.
7883
921222e2
TT
78842018-05-16 Tom Tromey <tom@tromey.com>
7885
7886 PR cli/19551:
7887 * symfile-add-flags.h (enum symfile_add_flags)
7888 <SYMFILE_NOT_FILENAME>: New constant.
7889 * symfile.c (read_symbols): Use SYMFILE_NOT_FILENAME. Get
7890 objfile name from BFD.
7891 (symbol_file_add_with_addrs): Check SYMFILE_NOT_FILENAME.
7892 * minidebug.c (find_separate_debug_file_in_section): Put
7893 ".gnu_debugdata" into BFD's file name.
7894
3acb7083
SM
78952018-05-16 Simon Marchi <simon.marchi@ericsson.com>
7896
7897 * regcache.c (regcache_read_ftype, regcache_write_ftype):
7898 Remove.
7899
561a72d4
TC
79002018-05-15 Tamar Christina <tamar.christina@arm.com>
7901
7902 PR binutils/21446
7903 * aarch64-tdep.c (aarch64_analyze_prologue,
7904 aarch64_software_single_step, aarch64_displaced_step_copy_insn):
7905 Indicate not interested in errors.
7906
4e6ff0e1
MR
79072018-05-15 Maciej W. Rozycki <macro@mips.com>
7908
7909 * mips-linux-nat.c (mips_linux_nat_target::fetch_registers):
7910 Supply the MIPS_ZERO_REGNUM register.
7911
ea33cd92
MR
79122018-05-15 Maciej W. Rozycki <macro@mips.com>
7913
7914 * mips-tdep.c (mask_address_var): Make variable static.
7915
2d79090e
TT
79162018-05-14 Tom Tromey <tom@tromey.com>
7917
7918 * dwarf2read.c (rust_union_quirks): Clear rust_unions.
7919
cf4912ae
AB
79202018-05-11 Andrew Burgess <andrew.burgess@embecosm.com>
7921
7922 * i387-tdep.c (i387_collect_xsave): Use FXSAVE_MXCSR_ADDR not
7923 FXSAVE_ADDR for the mxcsr register.
7924
67e6f569
MF
79252018-05-11 Max Filippov <jcmvbkbc@gmail.com>
7926
7927 * configure.tgt (xtensa*-*-linux*): Drop gdb_target definition.
7928
15244507
PA
79292018-05-11 Pedro Alves <palves@redhat.com>
7930
7931 * corelow.c (core_target) <core_target>: No longer inline.
7932 Initialize m_core_gdbarch, m_core_vec and build the section table
7933 here.
7934 <~core_target>: New.
7935 <core_gdbarch, get_core_register_section>: New methods.
7936 <m_core_section_table, m_core_vec, m_core_gdbarch>: New fields,
7937 factored out from ...
7938 <core_data, core_vec, core_gdbarch>: ... these deleted globals.
7939 (core_ops): Delete.
7940 (sniff_core_bfd): Add gdbarch parameter.
7941 (core_close): Delete, merged into ...
7942 (core_target::close): ... here. Delete self.
7943 (core_close_cleanup): Delete.
7944 (core_target_open): Allocate a core_target on the heap. Use a
7945 unique_ptr instead of a cleanup. Bits moved into the core_target
7946 ctor. Adjust to use core_target methods instead of globals.
7947 (get_core_register_section): Rename to ...
7948 (core_target::get_core_register_section): ... this and adjust.
7949 (struct get_core_registers_cb_data): New.
7950 (get_core_registers_cb): Use it. Use bool.
7951 (core_target::fetch_registers, core_target::files_info)
7952 (core_target::xfer_partial, core_target::read_description)
7953 (core_target::pid_to, core_target::thread_name): Adjust to
7954 reference class fields instead of globals.
7955 * target.h (struct target_ops_deleter, target_ops_up): New.
7956
451953fa
PA
79572018-05-11 Pedro Alves <palves@redhat.com>
7958
7959 * corefile.c (core_file_command): Move to corelow.c.
7960 * corelow.c (the_core_target): Delete.
7961 (core_file_command): Moved from corefile.c. Check exec_bfd
7962 instead of the_core_target. Use target_detach instead of calling
7963 into the_core_target directly.
7964 (maybe_say_no_core_file_now): New.
7965 (core_target::detach): Use it.
7966 (_initialize_corelow): Remove references to the_core_target.
7967 * gdbcore.h (the_core_target): Delete.
7968
e540a5a2 79692018-05-11 Tom Tromey <tromey@redhat.com>
3afc23a6 7970 Pedro Alves <palves@redhat.com>
e540a5a2
TT
7971
7972 * corefile.c (core_bfd): Remove.
7973 * gdbcore.h (core_bfd): Now a macro.
7974 * progspace.h (struct program_space) <cbfd>: New field.
7975
633cf254
TT
79762018-05-11 Tom Tromey <tom@tromey.com>
7977
7978 * mdebugread.c (parse_partial_symbols, psymtab_to_symtab_1): Use
7979 gdb::def_vector.
7980
1a34f210
TT
79812018-05-10 Tom Tromey <tom@tromey.com>
7982
7983 * configure: Rebuild.
7984 * warning.m4 (AM_GDB_WARNINGS): Use -Wimplicit-fallthrough=3.
7985
190852c8
JB
79862018-05-10 Joel Brobecker <brobecker@adacore.com>
7987
7988 PR server/23158:
7989 * regformats/regdat.sh: Adjust script, following the addition
7990 of the new expedite_regs parameter to init_target_desc.
7991
8727de56
OJ
79922018-05-10 Omair Javaid <omair.javaid@linaro.org>
7993
7994 PR gdb/23127
7995 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Add call to
7996 set_gdbarch_significant_addr_bit.
7997 * aarch64-tdep.c (aarch64_gdbarch_init): Remove call to
7998 set_gdbarch_significant_addr_bit.
7999 * utils.c (address_significant): Update to sign extend addr.
8000
37d9e062
MF
80012018-05-09 Max Filippov <jcmvbkbc@gmail.com>
8002
8003 * xtensa-linux-tdep.c (xtensa-tdep.h): New include.
8004 (xtensa_linux_init_abi): Limit tdep->num_regs by
8005 tdep->num_nopriv_regs.
8006 * xtensa-tdep.c (xtensa_derive_tdep): Calculate
8007 tdep->num_nopriv_regs and only copy it to tdep->num_regs if it's
8008 not initialized.
8009
7402fbca
SM
80102018-05-08 Simon Marchi <simon.marchi@ericsson.com>
8011
8012 * unittests/string_view-selftests.c: Define GNULIB_NAMESPACE.
8013
8ee22052
AB
80142018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
8015
8016 * common/x86-xstate.h (I387_FCTRL_INIT_VAL): New constant.
8017 (I387_MXCSR_INIT_VAL): New constant.
8018 * amd64-tdep.c (amd64_supply_xsave): Only read state from xsave
8019 buffer if it was supplied by the inferior.
8020 * i387-tdep.c (i387_supply_fsave): Use I387_MXCSR_INIT_VAL.
8021 (i387_xsave_get_clear_bv): New function.
8022 (i387_supply_xsave): Only read x87 control registers from the
8023 xsave buffer if the feature is enabled, and the state will have
8024 been written, otherwise, provide a suitable default.
8025 (i387_collect_xsave): Pre-clear all registers in xsave buffer,
8026 including x87 control registers. Update control registers if they
8027 have changed from the default value, and mark features as enabled
8028 as required.
8029 * i387-tdep.h (i387_xsave_get_clear_bv): Declare.
8030
968ae51b
UW
80312018-05-08 Ulrich Weigand <uweigand@de.ibm.com>
8032
8033 * spu-tdep.c (info_spu_event_command): Fix output formatting.
8034
aff689d3
TT
80352018-05-07 Tom Tromey <tom@tromey.com>
8036
8037 * configure: Rebuild.
8038 * warning.m4 (AM_GDB_WARNINGS): Add -Wduplicated-cond.
8039
ce887586
TT
80402018-05-07 Tom Tromey <tom@tromey.com>
8041
8042 PR tdep/20362:
8043 * arm-tdep.c (arm_record_vfp_data_proc_insn): Properly mask off D
8044 bit. Use correct value for VDIV.
8045
85e26832
TT
80462018-05-04 Tom Tromey <tom@tromey.com>
8047
8048 * configure: Rebuild.
8049 * warning.m4 (AM_GDB_WARNINGS): Add -Wimplicit-fallthrough.
8050
449b1ac7
TT
80512018-05-04 Tom Tromey <tom@tromey.com>
8052
8053 * linux-record.c (record_linux_system_call) <case
8054 RECORD_SYS_RECVFROM>: Add "break".
8055
15c9ffd6
TT
80562018-05-04 Tom Tromey <tom@tromey.com>
8057
8058 * mi/mi-main.c (mi_cmd_trace_frame_collected) <REGISTERS_FORMAT>:
8059 Add missing "break".
8060 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals) <NO_FRAME_FILTERS>:
8061 Add missing "break".
8062
e3829d13
TT
80632018-05-04 Tom Tromey <tom@tromey.com>
8064
8065 * rs6000-tdep.c (ppc_process_record_op4)
8066 (ppc_process_record_op63): Add fall-through comment.
8067
da0e1563
TT
80682018-05-04 Tom Tromey <tom@tromey.com>
8069
8070 * i386-tdep.c (i386_process_record): Add fall-through comment.
8071
0019cd49
TT
80722018-05-04 Tom Tromey <tom@tromey.com>
8073
8074 * stabsread.c (define_symbol) <case 'p'>: Add fall-through
8075 comment.
8076
565e0eda
TT
80772018-05-04 Tom Tromey <tom@tromey.com>
8078
8079 * riscv-tdep.c (riscv_isa_xlen): Add fall-through comment.
8080 * utils.c (can_dump_core) <LIMIT_CUR>: Add fall-through comment.
8081 * eval.c (fetch_subexp_value) <MEMORY_ERROR>: Add fall-through
8082 comment.
8083 * d-valprint.c (d_val_print) <TYPE_CODE_STRUCT>: Add fall-through
8084 comment.
8085 * coffread.c (coff_symtab_read) <C_LABEL>: Add fall-through
8086 comment.
8087
621846f4
TT
80882018-05-04 Tom Tromey <tom@tromey.com>
8089
8090 * dwarf2loc.c (unimplemented): Add ATTRIBUTE_NORETURN.
8091
86a73007
TT
80922018-05-04 Tom Tromey <tom@tromey.com>
8093
8094 * s390-tdep.c (s390_process_record): Fix fall-through comments.
8095 * xcoffread.c (scan_xcoff_symtab): Move comment later.
8096 * symfile.c (section_is_mapped): Fix fall-through comment.
8097 * stabsread.c (define_symbol, read_member_functions): Fix
8098 fall-through comment.
8099 * s390-linux-tdep.c (s390_process_record): Fix fall-through
8100 comment.
8101 * remote.c (remote_wait_as): Fix fall-through comment.
8102 * p-exp.y (yylex): Fix fall-through comment.
8103 * nat/x86-dregs.c (x86_length_and_rw_bits): Fix fall-through
8104 comment.
8105 * msp430-tdep.c (msp430_gdbarch_init): Fix fall-through comment.
8106 * mdebugread.c (parse_partial_symbols): Fix fall-through comment.
8107 * jv-exp.y (yylex): Fix fall-through comment.
8108 * go-exp.y (lex_one_token): Fix fall-through comment.
8109 * gdbtypes.c (get_discrete_bounds, rank_one_type): Fix
8110 fall-through comment.
8111 * f-exp.y (yylex): Fix fall-through comment.
8112 * dwarf2read.c (process_die): Fix fall-through comments.
8113 * dbxread.c (process_one_symbol): Fix fall-through comment.
8114 * d-exp.y (lex_one_token): Fix fall-through comment.
8115 * cp-name-parser.y (yylex): Fix fall-through comment.
8116 * coffread.c (coff_symtab_read): Fix fall-through comment.
8117 * c-exp.y (lex_one_token): Fix fall-through comment.
8118 * arm-tdep.c (arm_decode_miscellaneous): Fix fall-through
8119 comment.
8120 * arch/arm.c (arm_instruction_changes_pc): Fix fall-through
8121 comment.
8122
56bcdbea
TT
81232018-05-04 Tom Tromey <tom@tromey.com>
8124
8125 PR python/22730:
8126 * NEWS: Mention gdb.execute change.
8127 * gdbcmd.h (execute_control_command): Don't declare.
8128 * python/python.c (execute_gdb_command): Use read_command_lines_1,
8129 execute_control_commands, execute_control_commands_to_string.
8130 * cli/cli-script.h (execute_control_commands)
8131 (execute_control_commands_to_string): Declare.
8132 (execute_control_command): Add from_tty parameter.
8133 * cli/cli-script.c (execute_control_commands)
8134 (execute_control_commands_to_string): New functions.
8135 (execute_user_command): Use execute_control_commands.
8136 (execute_control_command_1): Add "from_tty" parameter. Update.
8137 (execute_control_command): Likewise.
8138
a913fffb
TT
81392018-05-04 Tom Tromey <tom@tromey.com>
8140
8141 PR python/22731:
8142 * NEWS: Mention that breakpoint commands are writable.
8143 * python/py-breakpoint.c (bppy_set_commands): New function.
8144 (breakpoint_object_getset) <"commands">: Use it.
8145
60b3cef2
TT
81462018-05-04 Tom Tromey <tom@tromey.com>
8147
8148 * tracepoint.c (actions_command): Update.
8149 * mi/mi-cmd-break.c (mi_command_line_array)
8150 (mi_command_line_array_cnt, mi_command_line_array_ptr)
8151 (mi_read_next_line): Remove.
8152 (mi_cmd_break_commands): Update.
8153 * cli/cli-script.h (read_command_lines, read_command_lines_1): Use
8154 function_view.
8155 * cli/cli-script.c (get_command_line): Update.
8156 (process_next_line): Use function_view. Constify.
8157 (recurse_read_control_structure, read_command_lines)
8158 (read_command_lines_1): Change argument types to function_view.
8159 (do_define_command, document_command): Update.
8160 * breakpoint.h (check_tracepoint_command): Don't declare.
8161 * breakpoint.c (check_tracepoint_command): Remove.
8162 (commands_command_1, create_tracepoint_from_upload): Update.
8163
7a2c85f2
TT
81642018-05-04 Tom Tromey <tom@tromey.com>
8165
8166 PR gdb/11750:
8167 * cli/cli-script.h (enum command_control_type) <define_control>:
8168 New constant.
8169 * cli/cli-script.c (multi_line_command_p): Handle define_control.
8170 (build_command_line, execute_control_command_1)
8171 (process_next_line): Likewise.
8172 (do_define_command): New function, extracted from define_command.
8173 (define_command): Use it.
8174
295dc222
TT
81752018-05-04 Tom Tromey <tom@tromey.com>
8176
8177 * tracepoint.c (actions_command): Update.
8178 * cli/cli-script.h (read_command_lines): Update.
8179 * cli/cli-script.c (read_command_lines): Constify prompt_arg.
8180 (MAX_TMPBUF): Remove define.
8181 (define_command): Use string_printf.
8182 (document_command): Likewise.
8183 * breakpoint.c (commands_command_1): Update.
8184
1263a9d5
TT
81852018-05-04 Tom Tromey <tom@tromey.com>
8186
8187 * top.c (execute_command): Update.
8188 * cli/cli-script.h (print_command_lines): Now varargs.
8189 * cli/cli-script.c (print_command_lines): Now varargs.
8190 (execute_control_command_1) <case while_control, case if_control>:
8191 Update.
8192
12973681
TT
81932018-05-04 Tom Tromey <tom@tromey.com>
8194
8195 * tracepoint.c (all_tracepoint_actions): Rename from
8196 all_tracepoint_actions_and_cleanup. Change return type.
8197 (actions_command, encode_actions_1, encode_actions)
8198 (trace_dump_actions, tdump_command): Update.
8199 * remote.c (remote_download_command_source): Update.
8200 * python/python.c (gdbpy_eval_from_control_command)
8201 (python_command, python_interactive_command): Update.
8202 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
8203 * guile/guile.c (guile_command)
8204 (gdbscm_eval_from_control_command, guile_command): Update.
8205 * compile/compile.c (compile_code_command)
8206 (compile_print_command, compile_to_object): Update.
8207 * cli/cli-script.h (struct command_lines_deleter): New.
8208 (counted_command_line): New typedef.
8209 (struct command_line): Add constructor, destructor.
8210 <body_list>: Remove.
8211 <body_list_0, body_list_1>: New members.
8212 (command_line_up): Remove typedef.
8213 (read_command_lines, read_command_lines_1, get_command_line):
8214 Update.
8215 (copy_command_lines): Don't declare.
8216 * cli/cli-script.c (build_command_line): Use "new".
8217 (get_command_line): Return counted_command_line.
8218 (print_command_lines, execute_user_command)
8219 (execute_control_command_1, while_command, if_command): Update.
8220 (realloc_body_list): Remove.
8221 (process_next_line, recurse_read_control_structure): Update.
8222 (read_command_lines, read_command_lines_1): Return counted_command_line.
8223 (free_command_lines): Use "delete".
8224 (copy_command_lines): Remove.
8225 (define_command, document_command, show_user_1): Update.
8226 * cli/cli-decode.h (struct cmd_list_element) <user_commands>: Now
8227 a counted_command_line.
8228 * breakpoint.h (counted_command_line): Remove typedef.
8229 (breakpoint_set_commands): Update.
8230 * breakpoint.c (check_no_tracepoint_commands)
8231 (validate_commands_for_breakpoint): Update.
8232 (breakpoint_set_commands): Change commands to be a
8233 counted_command_line.
8234 (commands_command_1, update_dprintf_command_list)
8235 (create_tracepoint_from_upload): Update.
8236
e2fc72e2
TT
82372018-05-04 Tom Tromey <tom@tromey.com>
8238
8239 * cli/cli-decode.h (cmd_list_element): New constructor.
8240 (~cmd_list_element): New destructor.
8241 (struct cmd_list_element): Add initializers.
8242 * cli/cli-decode.c (do_add_cmd): Use "new".
8243 (delete_cmd): Use "delete".
8244
a3b60e45
JK
82452018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
8246 Pedro Alves <palves@redhat.com>
8247
8248 PR breakpoints/19806 and support for PR external/20207.
8249 * NEWS: Mention Aarch64 watchpoint improvements.
8250 * aarch64-linux-nat.c (aarch64_linux_stopped_data_address): Fix missed
8251 watchpoints and PR external/20207 watchpoints.
8252 * nat/aarch64-linux-hw-point.c
8253 (kernel_supports_any_contiguous_range): New.
8254 (aarch64_watchpoint_offset): New.
8255 (aarch64_watchpoint_length): Support PR external/20207 watchpoints.
8256 (aarch64_point_encode_ctrl_reg): New parameter offset, new asserts.
8257 (aarch64_point_is_aligned): Support PR external/20207 watchpoints.
8258 (aarch64_align_watchpoint): New parameters aligned_offset_p and
8259 next_addr_orig_p. Support PR external/20207 watchpoints.
8260 (aarch64_downgrade_regs): New.
8261 (aarch64_dr_state_insert_one_point): New parameters offset and
8262 addr_orig.
8263 (aarch64_dr_state_remove_one_point): Likewise.
8264 (aarch64_handle_breakpoint): Update caller.
8265 (aarch64_handle_aligned_watchpoint): Likewise.
8266 (aarch64_handle_unaligned_watchpoint): Support addr_orig and
8267 aligned_offset.
8268 (aarch64_linux_set_debug_regs): Remove const from state. Call
8269 aarch64_downgrade_regs.
8270 (aarch64_show_debug_reg_state): Print also dr_addr_orig_wp.
8271 * nat/aarch64-linux-hw-point.h (DR_CONTROL_LENGTH): Rename to ...
8272 (DR_CONTROL_MASK): ... this.
8273 (struct aarch64_debug_reg_state): New field dr_addr_orig_wp.
8274 (unsigned int aarch64_watchpoint_offset): New prototype.
8275 (aarch64_linux_set_debug_regs): Remove const from state.
8276 * utils.c (align_up, align_down): Move to ...
8277 * common/common-utils.c (align_up, align_down): ... here.
8278 * utils.h (align_up, align_down): Move to ...
8279 * common/common-utils.h (align_up, align_down): ... here.
8280
05bc7456
JB
82812018-05-04 Joel Brobecker <brobecker@adacore.com>
8282
8283 * sparc-tdep.c (sparc_structure_return_p): Re-implement to
8284 match the ABI as summarized in GCC's gcc/config/sparc/sparc.c.
8285 (sparc_arg_by_memory_p): Renamed from sparc_arg_on_registers_p.
8286 Re-implement to match the ABI as summarized in GCC's
8287 gcc/config/sparc/sparc.c. All callers updated.
8288 (sparc32_store_arguments): Remove assertion.
8289
2f433492
TT
82902018-05-04 Tom Tromey <tom@tromey.com>
8291
8292 * printcmd.c: Don't include tui.h.
8293 (decode_format): Use skip_spaces.
8294
9be2ae8f
TT
82952018-05-04 Tom Tromey <tom@tromey.com>
8296
8297 PR gdb/22619:
8298 * printcmd.c (last_count): New global.
8299 (x_command): Use saved count when repeating.
8300
f0b3976b
TT
83012018-05-04 Tom Tromey <tom@tromey.com>
8302
8303 * nto-procfs.c (do_closedir_cleanup): Remove.
8304 (procfs_pidlist): Use gdb_dir_up.
8305 * procfs.c (do_closedir_cleanup): Remove.
8306 (proc_update_threads): Use gdb_dir_up.
8307 * common/filestuff.h (struct gdb_dir_deleter): New.
8308 (gdb_dir_up): New typedef.
8309
862d101a
TT
83102018-05-04 Tom Tromey <tom@tromey.com>
8311
8312 * ada-lang.c (print_mention_exception): Use std::string.
8313
cb7de75e
TT
83142018-05-04 Tom Tromey <tom@tromey.com>
8315
8316 * ada-lang.c (create_excep_cond_exprs): Update.
8317 (ada_exception_catchpoint_cond_string): Use std::string.
8318
49d83361
TT
83192018-05-04 Tom Tromey <tom@tromey.com>
8320
8321 * ada-lang.c (xget_renaming_scope): Return std::string.
8322 (old_renaming_is_invisible): Update.
8323
ade72a34
TT
83242018-05-04 Tom Tromey <tom@tromey.com>
8325
8326 * bfd-target.c (target_bfd::m_bfd): Now a gdb_bfd_ref_ptr.
8327 (target_bfd::target_bfd, target_bfd::~target_bfd): Update.
8328
2be4d7f0
UW
83292018-05-04 Ulrich Weigand <uweigand@de.ibm.com>
8330
8331 * spu-linux-nat.c (spu_linux_nat_target::wait): Fix syntax error.
8332
69b6ecb0
TT
83332018-05-04 Tom Tromey <tom@tromey.com>
8334
8335 * remote.c (remote_query_supported_append): Change type.
8336 (remote_check_symbols): Update.
8337
bf27f0e2
PP
83382018-05-04 Paul Pluzhnikov <ppluzhnikov@google.com>
8339
8340 PR gdb/11420
8341 * configure.ac: Prepend libpython.
8342 * python/python-config.py: Likewise.
8343 * configure: Regenerate.
8344
4ea17de8
SM
83452018-05-03 Simon Marchi <simon.marchi@ericsson.com>
8346
8347 * Makefile.in (%.c: %.l): Use -t instead of --stdout.
8348
bd732259
PA
83492018-05-03 Pedro Alves <palves@redhat.com>
8350
8351 * s390-linux-nat.c
8352 (s390_linux_nat_target::have_continuable_watchpoint): Mark with
8353 override. Write 'true' instead of '1'.
8354 (s390_linux_nat_target::watchpoint_addr_within_range): Remove
8355 declaration.
8356
d9f719f1
PA
83572018-05-02 Pedro Alves <palves@redhat.com>
8358
8359 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Use
8360 add_inf_child_target.
8361 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Use
8362 add_inf_child_target.
8363 * aix-thread.c (aix_thread_target_info): New.
8364 (aix_thread_target) <shortname, longname, doc>: Delete.
8365 <info>: New.
8366 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Use
8367 add_inf_child_target.
8368 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Use
8369 add_inf_child_target.
8370 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Use
8371 add_inf_child_target.
8372 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Use
8373 add_inf_child_target.
8374 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Use
8375 add_inf_child_target.
8376 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Use
8377 add_inf_child_target.
8378 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Use
8379 add_inf_child_target.
8380 * arm-linux-nat.c (_initialize_arm_linux_nat): Use
8381 add_inf_child_target.
8382 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Use
8383 add_inf_child_target.
8384 * bfd-target.c (target_bfd_target_info): New.
8385 (target_bfd) <shortname, longname, doc>: Delete.
8386 <info>: New.
8387 * bsd-kvm.c (bsd_kvm_target_info): New.
8388 (bsd_kvm_target) <shortname, longname, doc>: Delete.
8389 <info>: New.
8390 (bsd_kvm_target::open): Rename to ...
8391 (bsd_kvm_target_open): ... this. Adjust.
8392 * bsd-uthread.c (bsd_uthread_target_info): New.
8393 (bsd_uthread_target) <shortname, longname, doc>: Delete.
8394 <info>: New.
8395 * corefile.c (core_file_command): Adjust.
8396 * corelow.c (core_target_info): New.
8397 (core_target) <shortname, longname, doc>: Delete.
8398 <info>: New.
8399 (core_target::open): Rename to ...
8400 (core_target_open): ... this. Adjust.
8401 * ctf.c (ctf_target_info): New.
8402 (ctf_target) <shortname, longname, doc>: Delete.
8403 <info>: New.
8404 (ctf_target::open): Rename to ...
8405 (ctf_target_open): ... this.
8406 (_initialize_ctf): Adjust.
8407 * exec.c (exec_target_info): New.
8408 (exec_target) <shortname, longname, doc>: Delete.
8409 <info>: New.
8410 (exec_target::open): Rename to ...
8411 (exec_target_open): ... this.
8412 * gdbcore.h (core_target_open): Declare.
8413 * go32-nat.c (_initialize_go32_nat): Use add_inf_child_target.
8414 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Use
8415 add_inf_child_target.
8416 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Use
8417 add_inf_child_target.
8418 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Use
8419 add_inf_child_target.
8420 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Use
8421 add_inf_child_target.
8422 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Use
8423 add_inf_child_target.
8424 * i386-gnu-nat.c (_initialize_i386gnu_nat): Use
8425 add_inf_child_target.
8426 * i386-linux-nat.c (_initialize_i386_linux_nat): Use
8427 add_inf_child_target.
8428 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Use
8429 add_inf_child_target.
8430 * i386-obsd-nat.c (_initialize_i386obsd_nat): Use
8431 add_inf_child_target.
8432 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Use
8433 add_inf_child_target.
8434 * inf-child.c (inf_child_target_info): New.
8435 (inf_child_target::info): New.
8436 (inf_child_open_target): Remove 'target' parameter. Use
8437 get_native_target instead.
8438 (inf_child_target::open): Delete.
8439 (add_inf_child_target): New.
8440 * inf-child.h (inf_child_target) <shortname, longname, doc, open>:
8441 Delete.
8442 <info>: New.
8443 (add_inf_child_target): Declare.
8444 (inf_child_open_target): Declare.
8445 * linux-thread-db.c (thread_db_target_info): New.
8446 (thread_db_target) <shortname, longname, doc>: Delete.
8447 <info>: New.
8448 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Use
8449 add_inf_child_target.
8450 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Use
8451 add_inf_child_target.
8452 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Use
8453 add_inf_child_target.
8454 * m88k-bsd-nat.c (_initialize_m88kbsd_nat): Use
8455 add_inf_child_target.
8456 * make-target-delegates (print_class): Adjust.
8457 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Use
8458 add_inf_child_target.
8459 * mips-linux-nat.c (_initialize_mips_linux_nat): Use
8460 add_inf_child_target.
8461 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Use
8462 add_inf_child_target.
8463 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Use
8464 add_inf_child_target.
8465 * nto-procfs.c (nto_native_target_info): New.
8466 (nto_procfs_target_native) <shortname, longname, doc>:
8467 Delete.
8468 <info>: New.
8469 (nto_procfs_target_info): New.
8470 (nto_procfs_target_procfs) <shortname, longname, doc>:
8471 Delete.
8472 <info>: New.
8473 (init_procfs_targets): Adjust.
8474 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Use
8475 add_inf_child_target.
8476 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Use
8477 add_inf_child_target.
8478 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Use
8479 add_inf_child_target.
8480 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Use
8481 add_inf_child_target.
8482 * ravenscar-thread.c (ravenscar_target_info): New.
8483 (ravenscar_thread_target) <shortname, longname, doc>:
8484 Delete.
8485 <info>: New.
8486 * record-btrace.c (record_btrace_target_info):
8487 (record_btrace_target) <shortname, longname, doc>: Delete.
8488 <info>: New.
8489 (record_btrace_target::open): Rename to ...
8490 (record_btrace_target_open): ... this. Adjust.
8491 * record-full.c (record_longname, record_doc): New.
8492 (record_full_base_target) <shortname, longname, doc>: Delete.
8493 <info>: New.
8494 (record_full_target_info): New.
8495 (record_full_target): <shortname>: Delete.
8496 <info>: New.
8497 (record_full_core_open_1, record_full_open_1): Update comments.
8498 (record_full_base_target::open): Rename to ...
8499 (record_full_open): ... this.
8500 (cmd_record_full_restore): Update.
8501 (_initialize_record_full): Update.
8502 * remote-sim.c (remote_sim_target_info): New.
8503 (gdbsim_target) <shortname, longname, doc>: Delete.
8504 <info>: New.
8505 (gdbsim_target::open): Rename to ...
8506 (gdbsim_target_open): ... this.
8507 (_initialize_remote_sim): Adjust.
8508 * remote.c (remote_doc): New.
8509 (remote_target_info): New.
8510 (remote_target) <shortname, longname, doc>: Delete.
8511 <info>: New.
8512 (extended_remote_target_info): New.
8513 (extended_remote_target) <shortname, longname, doc>: Delete.
8514 <info>: New.
8515 (remote_target::open_1): Make static. Adjust.
8516 * rs6000-nat.c (_initialize_rs6000_nat): Use add_inf_child_target.
8517 * s390-linux-nat.c (_initialize_s390_nat): Use
8518 add_inf_child_target.
8519 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Use
8520 add_inf_child_target.
8521 * sol-thread.c (thread_db_target_info): New.
8522 (sol_thread_target) <shortname, longname, doc>: Delete.
8523 <info>: New.
8524 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Use
8525 add_inf_child_target.
8526 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Use
8527 add_inf_child_target.
8528 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Use
8529 add_inf_child_target.
8530 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Use
8531 add_inf_child_target.
8532 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Use
8533 add_inf_child_target.
8534 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Use
8535 add_inf_child_target.
8536 * spu-linux-nat.c (_initialize_spu_nat): Use
8537 add_inf_child_target.
8538 * spu-multiarch.c (spu_multiarch_target_info): New.
8539 (spu_multiarch_target) <shortname, longname, doc>: Delete.
8540 <info>: New.
8541 * target-delegates.c: Regenerate.
8542 * target.c: Include <unordered_map>.
8543 (target_ops_p): Delete.
8544 (DEF_VEC_P(target_ops_p)): Delete.
8545 (target_factories): New.
8546 (test_target_info): New.
8547 (test_target_ops::info): New.
8548 (open_target): Adjust to use target_factories.
8549 (add_target_with_completer): Rename to ...
8550 (add_target): ... this. Change prototype. Register target_info
8551 and open callback in target_factories. Register target_info in
8552 command context instead of target_ops.
8553 (add_target): Delete old implementation.
8554 (add_deprecated_target_alias): Change prototype. Adjust.
8555 (the_native_target): New.
8556 (set_native_target, get_native_target): New.
8557 (find_default_run_target): Use the_native_target.
8558 (find_attach_target, find_run_target): Simplify.
8559 (target_ops::open): Delete.
8560 (dummy_target_info): New.
8561 (dummy_target::shortname, dummy_target::longname)
8562 (dummy_target::doc): Delete.
8563 (dummy_target::info): New.
8564 (debug_target::shortname, debug_target::longname)
8565 (debug_target::doc): Delete.
8566 (debug_target::info): New.
8567 * target.h (struct target_info): New.
8568 (target_ops::~target_ops): Add comment.
8569 (target_ops::info): New.
8570 (target_ops::shortname, target_ops::longname, target_ops::doc): No
8571 longer virtual. Implement in terms of target_info.
8572 (set_native_target, get_native_target): Declare.
8573 (target_open_ftype): New.
8574 (add_target, add_target_with_completer)
8575 (add_deprecated_target_alias): Change prototype.
8576 (test_target) <shortname, longname, doc>: Delete.
8577 <info>: New.
8578 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Use
8579 add_inf_child_target.
8580 * tracefile-tfile.c (tfile_target_info): New.
8581 (tfile_target) <shortname, longname, doc>: Delete.
8582 <info>: New.
8583 (tfile_target::open): Rename to ...
8584 (tfile_target_open): ... this.
8585 (_initialize_tracefile_tfile): Adjust.
8586 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Use
8587 add_inf_child_target.
8588 * windows-nat.c (_initialize_windows_nat): Use
8589 add_inf_child_target.
8590 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Use
8591 add_inf_child_target.
8592
135340af
PA
85932018-05-02 Pedro Alves <palves@redhat.com>
8594
8595 * linux-nat.h (linux_nat_target) <low_new_thread,
8596 low_delete_thread, low_new_fork, low_forget_process,
8597 low_prepare_to_resume, low_siginfo_fixup, low_status_is_event>:
8598 New virtual methods.
8599 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
8600 (linux_nat_new_fork_ftype, linux_nat_set_new_fork)
8601 (linux_nat_forget_process_ftype, linux_nat_set_forget_process)
8602 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
8603 (linux_nat_set_prepare_to_resume, linux_nat_set_status_is_event):
8604 Delete.
8605 * linux-fork.c (delete_fork): Adjust to call low method.
8606 * linux-nat.c (linux_nat_new_thread, linux_nat_delete_thread)
8607 (linux_nat_new_fork, linux_nat_forget_process_hook)
8608 (linux_nat_prepare_to_resume, linux_nat_siginfo_fixup)
8609 (linux_nat_status_is_event):
8610 (linux_nat_target::follow_fork, lwp_free, add_lwp, detach_one_lwp)
8611 (linux_resume_one_lwp_throw, linux_handle_extended_wait): Adjust
8612 to call low method.
8613 (sigtrap_is_event): Rename to ...
8614 (linux_nat_target::low_status_is_event): ... this.
8615 (linux_nat_set_status_is_event): Delete.
8616 (save_stop_reason, linux_nat_wait_1)
8617 (linux_nat_target::mourn_inferior, siginfo_fixup): Adjust to call
8618 low methods.
8619 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
8620 (linux_nat_set_new_fork, linux_nat_set_forget_process)
8621 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
8622 (linux_nat_set_prepare_to_resume): Delete.
8623 * aarch64-linux-nat.c: All linux_nat_set_* callbacks converted to
8624 low virtual methods.
8625 * amd64-linux-nat.c: Likewise.
8626 * arm-linux-nat.c: Likewise.
8627 * i386-linux-nat.c: Likewise.
8628 * ia64-linux-nat.c: Likewise.
8629 * mips-linux-nat.c: Likewise.
8630 * ppc-linux-nat.c: Likewise.
8631 * s390-linux-nat.c: Likewise.
8632 * sparc64-linux-nat.c: Likewise.
8633 * x86-linux-nat.c: Likewise.
8634 * x86-linux-nat.h: Include "nat/x86-linux.h".
8635 (x86_linux_nat_target) <low_new_fork, low_forget_process,
8636 low_prepare_to_resume, low_new_thread, low_delete_thread>:
8637 Override methods.
8638
57810aa7
PA
86392018-05-02 Pedro Alves <palves@redhat.com>
8640
8641 * target.h (target_ops)
8642 <stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
8643 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint,
8644 stopped_by_watchpoint, have_continuable_watchpoint,
8645 stopped_data_address, watchpoint_addr_within_range,
8646 can_accel_watchpoint_condition, can_run, thread_alive,
8647 has_all_memory, has_memory, has_stack, has_registers,
8648 has_execution, can_async_p, is_async_p, supports_non_stop,
8649 always_non_stop_p, can_execute_reverse, supports_multi_process,
8650 supports_enable_disable_tracepoint,
8651 supports_disable_randomization, supports_string_tracing,
8652 supports_evaluation_of_breakpoint_conditions,
8653 can_run_breakpoint_commands, filesystem_is_local,
8654 can_download_tracepoint, get_trace_state_variable_value,
8655 set_trace_notes, get_tib_address, use_agent, can_use_agent,
8656 record_is_replaying, record_will_replay,
8657 augmented_libraries_svr4_read>: Adjust to return bool.
8658 * aarch64-linux-nat.c: All implementations adjusted.
8659 * aix-thread.c: All implementations adjusted.
8660 * arm-linux-nat.c: All implementations adjusted.
8661 * breakpoint.c: All implementations adjusted.
8662 * bsd-kvm.c: All implementations adjusted.
8663 * bsd-uthread.c: All implementations adjusted.
8664 * corelow.c: All implementations adjusted.
8665 * ctf.c: All implementations adjusted.
8666 * darwin-nat.c: All implementations adjusted.
8667 * darwin-nat.h: All implementations adjusted.
8668 * exec.c: All implementations adjusted.
8669 * fbsd-nat.c: All implementations adjusted.
8670 * fbsd-nat.h: All implementations adjusted.
8671 * gnu-nat.c: All implementations adjusted.
8672 * gnu-nat.h: All implementations adjusted.
8673 * go32-nat.c: All implementations adjusted.
8674 * ia64-linux-nat.c: All implementations adjusted.
8675 * inf-child.c: All implementations adjusted.
8676 * inf-child.h: All implementations adjusted.
8677 * inf-ptrace.c: All implementations adjusted.
8678 * inf-ptrace.h: All implementations adjusted.
8679 * linux-nat.c: All implementations adjusted.
8680 * linux-nat.h: All implementations adjusted.
8681 * mips-linux-nat.c: All implementations adjusted.
8682 * nto-procfs.c: All implementations adjusted.
8683 * ppc-linux-nat.c: All implementations adjusted.
8684 * procfs.c: All implementations adjusted.
8685 * ravenscar-thread.c: All implementations adjusted.
8686 * record-btrace.c: All implementations adjusted.
8687 * record-full.c: All implementations adjusted.
8688 * remote-sim.c: All implementations adjusted.
8689 * remote.c: All implementations adjusted.
8690 * s390-linux-nat.c: All implementations adjusted.
8691 * sol-thread.c: All implementations adjusted.
8692 * spu-multiarch.c: All implementations adjusted.
8693 * target-delegates.c: All implementations adjusted.
8694 * target.c: All implementations adjusted.
8695 * target.h: All implementations adjusted.
8696 * tracefile-tfile.c: All implementations adjusted.
8697 * tracefile.c: All implementations adjusted.
8698 * tracefile.h: All implementations adjusted.
8699 * windows-nat.c: All implementations adjusted.
8700 * x86-linux-nat.h: All implementations adjusted.
8701 * x86-nat.h: All implementations adjusted.
8702
ad6a4e2d
PA
87032018-05-02 Pedro Alves <palves@redhat.com>
8704
8705 * make-target-delegates (scan_target_h): Don't trim lines here.
8706 Replace sequences of tabs and/or whitespace with a single
8707 whitespace.
8708 (top level, parsing methods): Trim each line before processing it
8709 here.
8710
f6ac5f3d
PA
87112018-05-02 Pedro Alves <palves@redhat.com>
8712 John Baldwin <jhb@freebsd.org>
8713
8714 * target.h (enum strata) <debug_stratum>: New.
8715 (struct target_ops) <all delegation methods>: Replace by C++
8716 virtual methods, and drop "to_" prefix. All references updated
8717 throughout.
8718 <to_shortname, to_longname, to_doc, to_data,
8719 to_have_steppable_watchpoint, to_have_continuable_watchpoint,
8720 to_has_thread_control, to_attach_no_wait>: Delete, replaced by
8721 virtual methods. All references updated throughout.
8722 <can_attach, supports_terminal_ours, can_create_inferior,
8723 get_thread_control_capabilities, attach_no_wait>: New
8724 virtual methods.
8725 <insert_breakpoint, remove_breakpoint>: Now
8726 TARGET_DEFAULT_NORETURN methods.
8727 <info_proc>: Now returns bool.
8728 <to_magic>: Delete.
8729 (OPS_MAGIC): Delete.
8730 (current_target): Delete. All references replaced by references
8731 to ...
8732 (target_stack): ... this. New.
8733 (target_shortname, target_longname): Adjust.
8734 (target_can_run): Now a function declaration.
8735 (default_child_has_all_memory, default_child_has_memory)
8736 (default_child_has_stack, default_child_has_registers)
8737 (default_child_has_execution): Remove target_ops parameter.
8738 (complete_target_initialization): Delete.
8739 (memory_breakpoint_target): New template class.
8740 (test_target_ops): Refactor as a C++ class with virtual methods.
8741 * make-target-delegates (NAME_PART): Tighten.
8742 (POINTER_PART, CP_SYMBOL): New.
8743 (SIMPLE_RETURN_PART): Reimplement.
8744 (VEC_RETURN_PART): Expect less.
8745 (RETURN_PART, VIRTUAL_PART): New.
8746 (METHOD): Adjust to C++ virtual methods.
8747 (scan_target_h): Remove reference to C99.
8748 (dname): Output "target_ops::" prefix.
8749 (write_function_header): Adjust to output a C++ class method.
8750 (write_declaration): New.
8751 (write_delegator): Adjust to output a C++ class method.
8752 (tdname): Output "dummy_target::" prefix.
8753 (write_tdefault, write_debugmethod): Adjust to output a C++ class
8754 method.
8755 (tdefault_names, debug_names): Delete.
8756 (return_types, tdefaults, styles, argtypes_array): New.
8757 (top level): All methods are delegators.
8758 (print_class): New.
8759 (top level): Print dummy_target and debug_target classes.
8760 * target-delegates.c: Regenerate.
8761 * target-debug.h (target_debug_print_enum_info_proc_what)
8762 (target_debug_print_thread_control_capabilities)
8763 (target_debug_print_thread_info_p): New.
8764 * target.c (dummy_target): Delete.
8765 (the_dummy_target, the_debug_target): New.
8766 (target_stack): Now extern.
8767 (set_targetdebug): Push/unpush debug target.
8768 (default_child_has_all_memory, default_child_has_memory)
8769 (default_child_has_stack, default_child_has_registers)
8770 (default_child_has_execution): Remove target_ops parameter.
8771 (complete_target_initialization): Delete.
8772 (add_target_with_completer): No longer call
8773 complete_target_initialization.
8774 (target_supports_terminal_ours): Use regular delegation.
8775 (update_current_target): Delete.
8776 (push_target): No longer check magic number. Don't call
8777 update_current_target.
8778 (unpush_target): Don't call update_current_target.
8779 (target_is_pushed): No longer check magic number.
8780 (target_require_runnable): Skip for all stratums over
8781 process_stratum.
8782 (target_ops::info_proc): New.
8783 (target_info_proc): Use find_target_at and
8784 find_default_run_target.
8785 (target_supports_disable_randomization): Use regular delegation.
8786 (target_get_osdata): Use find_target_at.
8787 (target_ops::open, target_ops::close, target_ops::can_attach)
8788 (target_ops::attach, target_ops::can_create_inferior)
8789 (target_ops::create_inferior, target_ops::can_run)
8790 (target_can_run): New.
8791 (default_fileio_target): Use regular delegation.
8792 (target_ops::fileio_open, target_ops::fileio_pwrite)
8793 (target_ops::fileio_pread, target_ops::fileio_fstat)
8794 (target_ops::fileio_close, target_ops::fileio_unlink)
8795 (target_ops::fileio_readlink): New.
8796 (target_fileio_open_1, target_fileio_unlink)
8797 (target_fileio_readlink): Always call the target method. Handle
8798 FILEIO_ENOSYS.
8799 (return_zero, return_zero_has_execution): Delete.
8800 (init_dummy_target): Delete.
8801 (dummy_target::dummy_target, dummy_target::shortname)
8802 (dummy_target::longname, dummy_target::doc)
8803 (debug_target::debug_target, debug_target::shortname)
8804 (debug_target::longname, debug_target::doc): New.
8805 (target_supports_delete_record): Use regular delegation.
8806 (setup_target_debug): Delete.
8807 (maintenance_print_target_stack): Skip debug_stratum.
8808 (initialize_targets): Instantiate the_dummy_target and
8809 the_debug_target.
8810 * auxv.c (target_auxv_parse): Remove 'ops' parameter. Adjust to
8811 use target_stack.
8812 (target_auxv_search, fprint_target_auxv): Adjust.
8813 (info_auxv_command): Adjust to use target_stack.
8814 * auxv.h (target_auxv_parse): Remove 'ops' parameter.
8815 * exceptions.c (print_flush): Handle a NULL target_stack.
8816 * regcache.c (target_ops_no_register): Refactor as class with
8817 virtual methods.
8818
8819 * exec.c (exec_target): New class.
8820 (exec_ops): Now an exec_target.
8821 (exec_open, exec_close_1, exec_get_section_table)
8822 (exec_xfer_partial, exec_files_info, exec_has_memory)
8823 (exec_make_note_section): Refactor as exec_target methods.
8824 (exec_file_clear, ignore, exec_remove_breakpoint, init_exec_ops):
8825 Delete.
8826 (exec_target::find_memory_regions): New.
8827 (_initialize_exec): Don't call init_exec_ops.
8828 * gdbcore.h (exec_file_clear): Delete.
8829
8830 * corefile.c (core_target): Delete.
8831 (core_file_command): Adjust.
8832 * corelow.c (core_target): New class.
8833 (the_core_target): New.
8834 (core_close): Remove target_ops parameter.
8835 (core_close_cleanup): Adjust.
8836 (core_target::close): New.
8837 (core_open, core_detach, get_core_registers, core_files_info)
8838 (core_xfer_partial, core_thread_alive, core_read_description)
8839 (core_pid_to_str, core_thread_name, core_has_memory)
8840 (core_has_stack, core_has_registers, core_info_proc): Rework as
8841 core_target methods.
8842 (ignore, core_remove_breakpoint, init_core_ops): Delete.
8843 (_initialize_corelow): Initialize the_core_target.
8844 * gdbcore.h (core_target): Delete.
8845 (the_core_target): New.
8846
8847 * ctf.c: (ctf_target): New class.
8848 (ctf_ops): Now a ctf_target.
8849 (ctf_open, ctf_close, ctf_files_info, ctf_fetch_registers)
8850 (ctf_xfer_partial, ctf_get_trace_state_variable_value)
8851 (ctf_trace_find, ctf_traceframe_info): Refactor as ctf_target
8852 methods.
8853 (init_ctf_ops): Delete.
8854 (_initialize_ctf): Don't call it.
8855 * tracefile-tfile.c (tfile_target): New class.
8856 (tfile_ops): Now a tfile_target.
8857 (tfile_open, tfile_close, tfile_files_info)
8858 (tfile_get_tracepoint_status, tfile_trace_find)
8859 (tfile_fetch_registers, tfile_xfer_partial)
8860 (tfile_get_trace_state_variable_value, tfile_traceframe_info):
8861 Refactor as tfile_target methods.
8862 (tfile_xfer_partial_features): Remove target_ops parameter.
8863 (init_tfile_ops): Delete.
8864 (_initialize_tracefile_tfile): Don't call it.
8865 * tracefile.c (tracefile_has_all_memory, tracefile_has_memory)
8866 (tracefile_has_stack, tracefile_has_registers)
8867 (tracefile_thread_alive, tracefile_get_trace_status): Refactor as
8868 tracefile_target methods.
8869 (init_tracefile_ops): Delete.
8870 (tracefile_target::tracefile_target): New.
8871 * tracefile.h: Include "target.h".
8872 (tracefile_target): New class.
8873 (init_tracefile_ops): Delete.
8874
8875 * spu-multiarch.c (spu_multiarch_target): New class.
8876 (spu_ops): Now a spu_multiarch_target.
8877 (spu_thread_architecture, spu_region_ok_for_hw_watchpoint)
8878 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
8879 (spu_search_memory, spu_mourn_inferior): Refactor as
8880 spu_multiarch_target methods.
8881 (init_spu_ops): Delete.
8882 (_initialize_spu_multiarch): Remove references to init_spu_ops,
8883 complete_target_initialization.
8884
8885 * ravenscar-thread.c (ravenscar_thread_target): New class.
8886 (ravenscar_ops): Now a ravenscar_thread_target.
8887 (ravenscar_resume, ravenscar_wait, ravenscar_update_thread_list)
8888 (ravenscar_thread_alive, ravenscar_pid_to_str)
8889 (ravenscar_fetch_registers, ravenscar_store_registers)
8890 (ravenscar_prepare_to_store, ravenscar_stopped_by_sw_breakpoint)
8891 (ravenscar_stopped_by_hw_breakpoint)
8892 (ravenscar_stopped_by_watchpoint, ravenscar_stopped_data_address)
8893 (ravenscar_mourn_inferior, ravenscar_core_of_thread)
8894 (ravenscar_get_ada_task_ptid): Refactor as ravenscar_thread_target
8895 methods.
8896 (init_ravenscar_thread_ops): Delete.
8897 (_initialize_ravenscar): Remove references to
8898 init_ravenscar_thread_ops and complete_target_initialization.
8899
8900 * bsd-uthread.c (bsd_uthread_ops_hack): Delete.
8901 (bsd_uthread_target): New class.
8902 (bsd_uthread_ops): Now a bsd_uthread_target.
8903 (bsd_uthread_activate): Adjust to refer to bsd_uthread_ops.
8904 (bsd_uthread_close, bsd_uthread_mourn_inferior)
8905 (bsd_uthread_fetch_registers, bsd_uthread_store_registers)
8906 (bsd_uthread_wait, bsd_uthread_resume, bsd_uthread_thread_alive)
8907 (bsd_uthread_update_thread_list, bsd_uthread_extra_thread_info)
8908 (bsd_uthread_pid_to_str): Refactor as bsd_uthread_target methods.
8909 (bsd_uthread_target): Delete function.
8910 (_initialize_bsd_uthread): Remove reference to
8911 complete_target_initialization.
8912
8913 * bfd-target.c (target_bfd_data): Delete. Fields folded into ...
8914 (target_bfd): ... this new class.
8915 (target_bfd_xfer_partial, target_bfd_get_section_table)
8916 (target_bfd_close): Refactor as target_bfd methods.
8917 (target_bfd::~target_bfd): New.
8918 (target_bfd_reopen): Adjust.
8919 (target_bfd::close): New.
8920
8921 * record-btrace.c (record_btrace_target): New class.
8922 (record_btrace_ops): Now a record_btrace_target.
8923 (record_btrace_open, record_btrace_stop_recording)
8924 (record_btrace_disconnect, record_btrace_close)
8925 (record_btrace_async, record_btrace_info)
8926 (record_btrace_insn_history, record_btrace_insn_history_range)
8927 (record_btrace_insn_history_from, record_btrace_call_history)
8928 (record_btrace_call_history_range)
8929 (record_btrace_call_history_from, record_btrace_record_method)
8930 (record_btrace_is_replaying, record_btrace_will_replay)
8931 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
8932 (record_btrace_remove_breakpoint, record_btrace_fetch_registers)
8933 (record_btrace_store_registers, record_btrace_prepare_to_store)
8934 (record_btrace_to_get_unwinder)
8935 (record_btrace_to_get_tailcall_unwinder, record_btrace_resume)
8936 (record_btrace_commit_resume, record_btrace_wait)
8937 (record_btrace_stop, record_btrace_can_execute_reverse)
8938 (record_btrace_stopped_by_sw_breakpoint)
8939 (record_btrace_supports_stopped_by_sw_breakpoint)
8940 (record_btrace_stopped_by_hw_breakpoint)
8941 (record_btrace_supports_stopped_by_hw_breakpoint)
8942 (record_btrace_update_thread_list, record_btrace_thread_alive)
8943 (record_btrace_goto_begin, record_btrace_goto_end)
8944 (record_btrace_goto, record_btrace_stop_replaying_all)
8945 (record_btrace_execution_direction)
8946 (record_btrace_prepare_to_generate_core)
8947 (record_btrace_done_generating_core): Refactor as
8948 record_btrace_target methods.
8949 (init_record_btrace_ops): Delete.
8950 (_initialize_record_btrace): Remove reference to
8951 init_record_btrace_ops.
8952 * record-full.c (RECORD_FULL_IS_REPLAY): Adjust to always refer to
8953 the execution_direction global.
8954 (record_full_base_target, record_full_target)
8955 (record_full_core_target): New classes.
8956 (record_full_ops): Now a record_full_target.
8957 (record_full_core_ops): Now a record_full_core_target.
8958 (record_full_target::detach, record_full_target::disconnect)
8959 (record_full_core_target::disconnect)
8960 (record_full_target::mourn_inferior, record_full_target::kill):
8961 New.
8962 (record_full_open, record_full_close, record_full_async): Refactor
8963 as methods of the record_full_base_target class.
8964 (record_full_resume, record_full_commit_resume): Refactor
8965 as methods of the record_full_target class.
8966 (record_full_wait, record_full_stopped_by_watchpoint)
8967 (record_full_stopped_data_address)
8968 (record_full_stopped_by_sw_breakpoint)
8969 (record_full_supports_stopped_by_sw_breakpoint)
8970 (record_full_stopped_by_hw_breakpoint)
8971 (record_full_supports_stopped_by_hw_breakpoint): Refactor as
8972 methods of the record_full_base_target class.
8973 (record_full_store_registers, record_full_xfer_partial)
8974 (record_full_insert_breakpoint, record_full_remove_breakpoint):
8975 Refactor as methods of the record_full_target class.
8976 (record_full_can_execute_reverse, record_full_get_bookmark)
8977 (record_full_goto_bookmark, record_full_execution_direction)
8978 (record_full_record_method, record_full_info, record_full_delete)
8979 (record_full_is_replaying, record_full_will_replay)
8980 (record_full_goto_begin, record_full_goto_end, record_full_goto)
8981 (record_full_stop_replaying): Refactor as methods of the
8982 record_full_base_target class.
8983 (record_full_core_resume, record_full_core_kill)
8984 (record_full_core_fetch_registers)
8985 (record_full_core_prepare_to_store)
8986 (record_full_core_store_registers, record_full_core_xfer_partial)
8987 (record_full_core_insert_breakpoint)
8988 (record_full_core_remove_breakpoint)
8989 (record_full_core_has_execution): Refactor
8990 as methods of the record_full_core_target class.
8991 (record_full_base_target::supports_delete_record): New.
8992 (init_record_full_ops): Delete.
8993 (init_record_full_core_ops): Delete.
8994 (record_full_save): Refactor as method of the
8995 record_full_base_target class.
8996 (_initialize_record_full): Remove references to
8997 init_record_full_ops and init_record_full_core_ops.
8998
8999 * remote.c (remote_target, extended_remote_target): New classes.
9000 (remote_ops): Now a remote_target.
9001 (extended_remote_ops): Now an extended_remote_target.
9002 (remote_insert_fork_catchpoint, remote_remove_fork_catchpoint)
9003 (remote_insert_vfork_catchpoint, remote_remove_vfork_catchpoint)
9004 (remote_insert_exec_catchpoint, remote_remove_exec_catchpoint)
9005 (remote_pass_signals, remote_set_syscall_catchpoint)
9006 (remote_program_signals, )
9007 (remote_thread_always_alive): Remove target_ops parameter.
9008 (remote_thread_alive, remote_thread_name)
9009 (remote_update_thread_list, remote_threads_extra_info)
9010 (remote_static_tracepoint_marker_at)
9011 (remote_static_tracepoint_markers_by_strid)
9012 (remote_get_ada_task_ptid, remote_close, remote_start_remote)
9013 (remote_open): Refactor as methods of remote_target.
9014 (extended_remote_open, extended_remote_detach)
9015 (extended_remote_attach, extended_remote_post_attach):
9016 (extended_remote_supports_disable_randomization)
9017 (extended_remote_create_inferior): : Refactor as method of
9018 extended_remote_target.
9019 (remote_set_permissions, remote_open_1, remote_detach)
9020 (remote_follow_fork, remote_follow_exec, remote_disconnect)
9021 (remote_resume, remote_commit_resume, remote_stop)
9022 (remote_interrupt, remote_pass_ctrlc, remote_terminal_inferior)
9023 (remote_terminal_ours, remote_wait, remote_fetch_registers)
9024 (remote_prepare_to_store, remote_store_registers)
9025 (remote_flash_erase, remote_flash_done, remote_files_info)
9026 (remote_kill, remote_mourn, remote_insert_breakpoint)
9027 (remote_remove_breakpoint, remote_insert_watchpoint)
9028 (remote_watchpoint_addr_within_range)
9029 (remote_remove_watchpoint, remote_region_ok_for_hw_watchpoint)
9030 (remote_check_watch_resources, remote_stopped_by_sw_breakpoint)
9031 (remote_supports_stopped_by_sw_breakpoint)
9032 (remote_stopped_by_hw_breakpoint)
9033 (remote_supports_stopped_by_hw_breakpoint)
9034 (remote_stopped_by_watchpoint, remote_stopped_data_address)
9035 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
9036 (remote_verify_memory): Refactor as methods of remote_target.
9037 (remote_write_qxfer, remote_read_qxfer): Remove target_ops
9038 parameter.
9039 (remote_xfer_partial, remote_get_memory_xfer_limit)
9040 (remote_search_memory, remote_rcmd, remote_memory_map)
9041 (remote_pid_to_str, remote_get_thread_local_address)
9042 (remote_get_tib_address, remote_read_description): Refactor as
9043 methods of remote_target.
9044 (remote_target::fileio_open, remote_target::fileio_pwrite)
9045 (remote_target::fileio_pread, remote_target::fileio_close): New.
9046 (remote_hostio_readlink, remote_hostio_fstat)
9047 (remote_filesystem_is_local, remote_can_execute_reverse)
9048 (remote_supports_non_stop, remote_supports_disable_randomization)
9049 (remote_supports_multi_process, remote_supports_cond_breakpoints)
9050 (remote_supports_enable_disable_tracepoint)
9051 (remote_supports_string_tracing)
9052 (remote_can_run_breakpoint_commands, remote_trace_init)
9053 (remote_download_tracepoint, remote_can_download_tracepoint)
9054 (remote_download_trace_state_variable, remote_enable_tracepoint)
9055 (remote_disable_tracepoint, remote_trace_set_readonly_regions)
9056 (remote_trace_start, remote_get_trace_status)
9057 (remote_get_tracepoint_status, remote_trace_stop)
9058 (remote_trace_find, remote_get_trace_state_variable_value)
9059 (remote_save_trace_data, remote_get_raw_trace_data)
9060 (remote_set_disconnected_tracing, remote_core_of_thread)
9061 (remote_set_circular_trace_buffer, remote_traceframe_info)
9062 (remote_get_min_fast_tracepoint_insn_len)
9063 (remote_set_trace_buffer_size, remote_set_trace_notes)
9064 (remote_use_agent, remote_can_use_agent, remote_enable_btrace)
9065 (remote_disable_btrace, remote_teardown_btrace)
9066 (remote_read_btrace, remote_btrace_conf)
9067 (remote_augmented_libraries_svr4_read, remote_load)
9068 (remote_pid_to_exec_file, remote_can_do_single_step)
9069 (remote_execution_direction, remote_thread_handle_to_thread_info):
9070 Refactor as methods of remote_target.
9071 (init_remote_ops, init_extended_remote_ops): Delete.
9072 (remote_can_async_p, remote_is_async_p, remote_async)
9073 (remote_thread_events, remote_upload_tracepoints)
9074 (remote_upload_trace_state_variables): Refactor as methods of
9075 remote_target.
9076 (_initialize_remote): Remove references to init_remote_ops and
9077 init_extended_remote_ops.
9078
9079 * remote-sim.c (gdbsim_target): New class.
9080 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_kill)
9081 (gdbsim_load, gdbsim_create_inferior, gdbsim_open, gdbsim_close)
9082 (gdbsim_detach, gdbsim_resume, gdbsim_interrupt)
9083 (gdbsim_wait, gdbsim_prepare_to_store, gdbsim_xfer_partial)
9084 (gdbsim_files_info, gdbsim_mourn_inferior, gdbsim_thread_alive)
9085 (gdbsim_pid_to_str, gdbsim_has_all_memory, gdbsim_has_memory):
9086 Refactor as methods of gdbsim_target.
9087 (gdbsim_ops): Now a gdbsim_target.
9088 (init_gdbsim_ops): Delete.
9089 (gdbsim_cntrl_c): Adjust.
9090 (_initialize_remote_sim): Remove reference to init_gdbsim_ops.
9091
9092 * amd64-linux-nat.c (amd64_linux_nat_target): New class.
9093 (the_amd64_linux_nat_target): New.
9094 (amd64_linux_fetch_inferior_registers)
9095 (amd64_linux_store_inferior_registers): Refactor as methods of
9096 amd64_linux_nat_target.
9097 (_initialize_amd64_linux_nat): Adjust. Set linux_target.
9098 * i386-linux-nat.c: Don't include "linux-nat.h".
9099 (i386_linux_nat_target): New class.
9100 (the_i386_linux_nat_target): New.
9101 (i386_linux_fetch_inferior_registers)
9102 (i386_linux_store_inferior_registers, i386_linux_resume): Refactor
9103 as methods of i386_linux_nat_target.
9104 (_initialize_i386_linux_nat): Adjust. Set linux_target.
9105 * inf-child.c (inf_child_ops): Delete.
9106 (inf_child_fetch_inferior_registers)
9107 (inf_child_store_inferior_registers): Delete.
9108 (inf_child_post_attach, inf_child_prepare_to_store): Refactor as
9109 methods of inf_child_target.
9110 (inf_child_target::supports_terminal_ours)
9111 (inf_child_target::terminal_init)
9112 (inf_child_target::terminal_inferior)
9113 (inf_child_target::terminal_ours_for_output)
9114 (inf_child_target::terminal_ours, inf_child_target::interrupt)
9115 (inf_child_target::pass_ctrlc, inf_child_target::terminal_info):
9116 New.
9117 (inf_child_open, inf_child_disconnect, inf_child_close)
9118 (inf_child_mourn_inferior, inf_child_maybe_unpush_target)
9119 (inf_child_post_startup_inferior, inf_child_can_run)
9120 (inf_child_pid_to_exec_file): Refactor as methods of
9121 inf_child_target.
9122 (inf_child_follow_fork): Delete.
9123 (inf_child_target::can_create_inferior)
9124 (inf_child_target::can_attach): New.
9125 (inf_child_target::has_all_memory, inf_child_target::has_memory)
9126 (inf_child_target::has_stack, inf_child_target::has_registers)
9127 (inf_child_target::has_execution): New.
9128 (inf_child_fileio_open, inf_child_fileio_pwrite)
9129 (inf_child_fileio_pread, inf_child_fileio_fstat)
9130 (inf_child_fileio_close, inf_child_fileio_unlink)
9131 (inf_child_fileio_readlink, inf_child_use_agent)
9132 (inf_child_can_use_agent): Refactor as methods of
9133 inf_child_target.
9134 (return_zero, inf_child_target): Delete.
9135 (inf_child_target::inf_child_target): New.
9136 * inf-child.h: Include "target.h".
9137 (inf_child_target): Delete function prototype.
9138 (inf_child_target): New class.
9139 (inf_child_open_target, inf_child_mourn_inferior)
9140 (inf_child_maybe_unpush_target): Delete.
9141 * inf-ptrace.c (inf_ptrace_target::~inf_ptrace_target): New.
9142 (inf_ptrace_follow_fork, inf_ptrace_insert_fork_catchpoint)
9143 (inf_ptrace_remove_fork_catchpoint, inf_ptrace_create_inferior)
9144 (inf_ptrace_post_startup_inferior, inf_ptrace_mourn_inferior)
9145 (inf_ptrace_attach, inf_ptrace_post_attach, inf_ptrace_detach)
9146 (inf_ptrace_detach_success, inf_ptrace_kill, inf_ptrace_resume)
9147 (inf_ptrace_wait, inf_ptrace_xfer_partial)
9148 (inf_ptrace_thread_alive, inf_ptrace_files_info)
9149 (inf_ptrace_pid_to_str, inf_ptrace_auxv_parse): Refactor as
9150 methods of inf_ptrace_target.
9151 (inf_ptrace_target): Delete function.
9152 * inf-ptrace.h: Include "inf-child.h".
9153 (inf_ptrace_target): Delete function declaration.
9154 (inf_ptrace_target): New class.
9155 (inf_ptrace_trad_target, inf_ptrace_detach_success): Delete.
9156 * linux-nat.c (linux_target): New.
9157 (linux_ops, linux_ops_saved, super_xfer_partial): Delete.
9158 (linux_nat_target::~linux_nat_target): New.
9159 (linux_child_post_attach, linux_child_post_startup_inferior)
9160 (linux_child_follow_fork, linux_child_insert_fork_catchpoint)
9161 (linux_child_remove_fork_catchpoint)
9162 (linux_child_insert_vfork_catchpoint)
9163 (linux_child_remove_vfork_catchpoint)
9164 (linux_child_insert_exec_catchpoint)
9165 (linux_child_remove_exec_catchpoint)
9166 (linux_child_set_syscall_catchpoint, linux_nat_pass_signals)
9167 (linux_nat_create_inferior, linux_nat_attach, linux_nat_detach)
9168 (linux_nat_resume, linux_nat_stopped_by_watchpoint)
9169 (linux_nat_stopped_data_address)
9170 (linux_nat_stopped_by_sw_breakpoint)
9171 (linux_nat_supports_stopped_by_sw_breakpoint)
9172 (linux_nat_stopped_by_hw_breakpoint)
9173 (linux_nat_supports_stopped_by_hw_breakpoint, linux_nat_wait)
9174 (linux_nat_kill, linux_nat_mourn_inferior)
9175 (linux_nat_xfer_partial, linux_nat_thread_alive)
9176 (linux_nat_update_thread_list, linux_nat_pid_to_str)
9177 (linux_nat_thread_name, linux_child_pid_to_exec_file)
9178 (linux_child_static_tracepoint_markers_by_strid)
9179 (linux_nat_is_async_p, linux_nat_can_async_p)
9180 (linux_nat_supports_non_stop, linux_nat_always_non_stop_p)
9181 (linux_nat_supports_multi_process)
9182 (linux_nat_supports_disable_randomization, linux_nat_async)
9183 (linux_nat_stop, linux_nat_close, linux_nat_thread_address_space)
9184 (linux_nat_core_of_thread, linux_nat_filesystem_is_local)
9185 (linux_nat_fileio_open, linux_nat_fileio_readlink)
9186 (linux_nat_fileio_unlink, linux_nat_thread_events): Refactor as
9187 methods of linux_nat_target.
9188 (linux_nat_wait_1, linux_xfer_siginfo, linux_proc_xfer_partial)
9189 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Remove target_ops
9190 parameter.
9191 (check_stopped_by_watchpoint): Adjust.
9192 (linux_xfer_partial): Delete.
9193 (linux_target_install_ops, linux_target, linux_nat_add_target):
9194 Delete.
9195 (linux_nat_target::linux_nat_target): New.
9196 * linux-nat.h: Include "inf-ptrace.h".
9197 (linux_nat_target): New.
9198 (linux_target, linux_target_install_ops, linux_nat_add_target):
9199 Delete function declarations.
9200 (linux_target): Declare global.
9201 * linux-thread-db.c (thread_db_target): New.
9202 (thread_db_target::thread_db_target): New.
9203 (thread_db_ops): Delete.
9204 (the_thread_db_target): New.
9205 (thread_db_detach, thread_db_wait, thread_db_mourn_inferior)
9206 (thread_db_update_thread_list, thread_db_pid_to_str)
9207 (thread_db_extra_thread_info)
9208 (thread_db_thread_handle_to_thread_info)
9209 (thread_db_get_thread_local_address, thread_db_get_ada_task_ptid)
9210 (thread_db_resume): Refactor as methods of thread_db_target.
9211 (init_thread_db_ops): Delete.
9212 (_initialize_thread_db): Remove reference to init_thread_db_ops.
9213 * x86-linux-nat.c: Don't include "linux-nat.h".
9214 (super_post_startup_inferior): Delete.
9215 (x86_linux_nat_target::~x86_linux_nat_target): New.
9216 (x86_linux_child_post_startup_inferior)
9217 (x86_linux_read_description, x86_linux_enable_btrace)
9218 (x86_linux_disable_btrace, x86_linux_teardown_btrace)
9219 (x86_linux_read_btrace, x86_linux_btrace_conf): Refactor as
9220 methods of x86_linux_nat_target.
9221 (x86_linux_create_target): Delete. Bits folded ...
9222 (x86_linux_add_target): ... here. Now takes a linux_nat_target
9223 pointer.
9224 * x86-linux-nat.h: Include "linux-nat.h" and "x86-nat.h".
9225 (x86_linux_nat_target): New class.
9226 (x86_linux_create_target): Delete.
9227 (x86_linux_add_target): Now takes a linux_nat_target pointer.
9228 * x86-nat.c (x86_insert_watchpoint, x86_remove_watchpoint)
9229 (x86_region_ok_for_watchpoint, x86_stopped_data_address)
9230 (x86_stopped_by_watchpoint, x86_insert_hw_breakpoint)
9231 (x86_remove_hw_breakpoint, x86_can_use_hw_breakpoint)
9232 (x86_stopped_by_hw_breakpoint): Remove target_ops parameter and
9233 make extern.
9234 (x86_use_watchpoints): Delete.
9235 * x86-nat.h: Include "breakpoint.h" and "target.h".
9236 (x86_use_watchpoints): Delete.
9237 (x86_can_use_hw_breakpoint, x86_region_ok_for_hw_watchpoint)
9238 (x86_stopped_by_watchpoint, x86_stopped_data_address)
9239 (x86_insert_watchpoint, x86_remove_watchpoint)
9240 (x86_insert_hw_breakpoint, x86_remove_hw_breakpoint)
9241 (x86_stopped_by_hw_breakpoint): New declarations.
9242 (x86_nat_target): New template class.
9243
9244 * ppc-linux-nat.c (ppc_linux_nat_target): New class.
9245 (the_ppc_linux_nat_target): New.
9246 (ppc_linux_fetch_inferior_registers)
9247 (ppc_linux_can_use_hw_breakpoint)
9248 (ppc_linux_region_ok_for_hw_watchpoint)
9249 (ppc_linux_ranged_break_num_registers)
9250 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
9251 (ppc_linux_insert_mask_watchpoint)
9252 (ppc_linux_remove_mask_watchpoint)
9253 (ppc_linux_can_accel_watchpoint_condition)
9254 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint)
9255 (ppc_linux_stopped_data_address, ppc_linux_stopped_by_watchpoint)
9256 (ppc_linux_watchpoint_addr_within_range)
9257 (ppc_linux_masked_watch_num_registers)
9258 (ppc_linux_store_inferior_registers, ppc_linux_auxv_parse)
9259 (ppc_linux_read_description): Refactor as methods of
9260 ppc_linux_nat_target.
9261 (_initialize_ppc_linux_nat): Adjust. Set linux_target.
9262
9263 * procfs.c (procfs_xfer_partial): Delete forward declaration.
9264 (procfs_target): New class.
9265 (the_procfs_target): New.
9266 (procfs_target): Delete function.
9267 (procfs_auxv_parse, procfs_attach, procfs_detach)
9268 (procfs_fetch_registers, procfs_store_registers, procfs_wait)
9269 (procfs_xfer_partial, procfs_resume, procfs_pass_signals)
9270 (procfs_files_info, procfs_kill_inferior, procfs_mourn_inferior)
9271 (procfs_create_inferior, procfs_update_thread_list)
9272 (procfs_thread_alive, procfs_pid_to_str)
9273 (procfs_can_use_hw_breakpoint, procfs_stopped_by_watchpoint)
9274 (procfs_stopped_data_address, procfs_insert_watchpoint)
9275 (procfs_remove_watchpoint, procfs_region_ok_for_hw_watchpoint)
9276 (proc_find_memory_regions, procfs_info_proc)
9277 (procfs_make_note_section): Refactor as methods of procfs_target.
9278 (_initialize_procfs): Adjust.
9279 * sol-thread.c (sol_thread_target): New class.
9280 (sol_thread_ops): Now a sol_thread_target.
9281 (sol_thread_detach, sol_thread_resume, sol_thread_wait)
9282 (sol_thread_fetch_registers, sol_thread_store_registers)
9283 (sol_thread_xfer_partial, sol_thread_mourn_inferior)
9284 (sol_thread_alive, solaris_pid_to_str, sol_update_thread_list)
9285 (sol_get_ada_task_ptid): Refactor as methods of sol_thread_target.
9286 (init_sol_thread_ops): Delete.
9287 (_initialize_sol_thread): Adjust. Remove references to
9288 init_sol_thread_ops and complete_target_initialization.
9289
9290 * windows-nat.c (windows_nat_target): New class.
9291 (windows_fetch_inferior_registers)
9292 (windows_store_inferior_registers, windows_resume, windows_wait)
9293 (windows_attach, windows_detach, windows_pid_to_exec_file)
9294 (windows_files_info, windows_create_inferior)
9295 (windows_mourn_inferior, windows_interrupt, windows_kill_inferior)
9296 (windows_close, windows_pid_to_str, windows_xfer_partial)
9297 (windows_get_tib_address, windows_get_ada_task_ptid)
9298 (windows_thread_name, windows_thread_alive): Refactor as
9299 windows_nat_target methods.
9300 (do_initial_windows_stuff): Adjust.
9301 (windows_target): Delete function.
9302 (_initialize_windows_nat): Adjust.
9303
9304 * darwin-nat.c (darwin_resume, darwin_wait_to, darwin_interrupt)
9305 (darwin_mourn_inferior, darwin_kill_inferior)
9306 (darwin_create_inferior, darwin_attach, darwin_detach)
9307 (darwin_pid_to_str, darwin_thread_alive, darwin_xfer_partial)
9308 (darwin_pid_to_exec_file, darwin_get_ada_task_ptid)
9309 (darwin_supports_multi_process): Refactor as darwin_nat_target
9310 methods.
9311 (darwin_resume_to, darwin_files_info): Delete.
9312 (_initialize_darwin_inferior): Rename to ...
9313 (_initialize_darwin_nat): ... this. Adjust to C++ification.
9314 * darwin-nat.h: Include "inf-child.h".
9315 (darwin_nat_target): New class.
9316 (darwin_complete_target): Delete.
9317 * i386-darwin-nat.c (i386_darwin_nat_target): New class.
9318 (darwin_target): New.
9319 (i386_darwin_fetch_inferior_registers)
9320 (i386_darwin_store_inferior_registers): Refactor as methods of
9321 darwin_nat_target.
9322 (darwin_complete_target): Delete, with ...
9323 (_initialize_i386_darwin_nat): ... bits factored out here.
9324
9325 * alpha-linux-nat.c (alpha_linux_nat_target): New class.
9326 (the_alpha_linux_nat_target): New.
9327 (alpha_linux_register_u_offset): Refactor as
9328 alpha_linux_nat_target method.
9329 (_initialize_alpha_linux_nat): Adjust.
9330 * linux-nat-trad.c (inf_ptrace_register_u_offset): Delete.
9331 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
9332 (inf_ptrace_store_register, inf_ptrace_store_registers): Refact as
9333 methods of linux_nat_trad_target.
9334 (linux_trad_target): Delete.
9335 * linux-nat-trad.h (linux_trad_target): Delete function.
9336 (linux_nat_trad_target): New class.
9337 * mips-linux-nat.c (mips_linux_nat_target): New class.
9338 (super_fetch_registers, super_store_registers, super_close):
9339 Delete.
9340 (the_mips_linux_nat_target): New.
9341 (mips64_linux_regsets_fetch_registers)
9342 (mips64_linux_regsets_store_registers)
9343 (mips64_linux_fetch_registers, mips64_linux_store_registers)
9344 (mips_linux_register_u_offset, mips_linux_read_description)
9345 (mips_linux_can_use_hw_breakpoint)
9346 (mips_linux_stopped_by_watchpoint)
9347 (mips_linux_stopped_data_address)
9348 (mips_linux_region_ok_for_hw_watchpoint)
9349 (mips_linux_insert_watchpoint, mips_linux_remove_watchpoint)
9350 (mips_linux_close): Refactor as methods of mips_linux_nat.
9351 (_initialize_mips_linux_nat): Adjust to C++ification.
9352
9353 * aix-thread.c (aix_thread_target): New class.
9354 (aix_thread_ops): Now an aix_thread_target.
9355 (aix_thread_detach, aix_thread_resume, aix_thread_wait)
9356 (aix_thread_fetch_registers, aix_thread_store_registers)
9357 (aix_thread_xfer_partial, aix_thread_mourn_inferior)
9358 (aix_thread_thread_alive, aix_thread_pid_to_str)
9359 (aix_thread_extra_thread_info, aix_thread_get_ada_task_ptid):
9360 Refactor as methods of aix_thread_target.
9361 (init_aix_thread_ops): Delete.
9362 (_initialize_aix_thread): Remove references to init_aix_thread_ops
9363 and complete_target_initialization.
9364 * rs6000-nat.c (rs6000_xfer_shared_libraries): Delete.
9365 (rs6000_nat_target): New class.
9366 (the_rs6000_nat_target): New.
9367 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers)
9368 (rs6000_xfer_partial, rs6000_wait, rs6000_create_inferior)
9369 (rs6000_xfer_shared_libraries): Refactor as rs6000_nat_target methods.
9370 (super_create_inferior): Delete.
9371 (_initialize_rs6000_nat): Adjust to C++ification.
9372
9373 * arm-linux-nat.c (arm_linux_nat_target): New class.
9374 (the_arm_linux_nat_target): New.
9375 (arm_linux_fetch_inferior_registers)
9376 (arm_linux_store_inferior_registers, arm_linux_read_description)
9377 (arm_linux_can_use_hw_breakpoint, arm_linux_insert_hw_breakpoint)
9378 (arm_linux_remove_hw_breakpoint)
9379 (arm_linux_region_ok_for_hw_watchpoint)
9380 (arm_linux_insert_watchpoint, arm_linux_remove_watchpoint)
9381 (arm_linux_stopped_data_address, arm_linux_stopped_by_watchpoint)
9382 (arm_linux_watchpoint_addr_within_range): Refactor as methods of
9383 arm_linux_nat_target.
9384 (_initialize_arm_linux_nat): Adjust to C++ification.
9385
9386 * aarch64-linux-nat.c (aarch64_linux_nat_target): New class.
9387 (the_aarch64_linux_nat_target): New.
9388 (aarch64_linux_fetch_inferior_registers)
9389 (aarch64_linux_store_inferior_registers)
9390 (aarch64_linux_child_post_startup_inferior)
9391 (aarch64_linux_read_description)
9392 (aarch64_linux_can_use_hw_breakpoint)
9393 (aarch64_linux_insert_hw_breakpoint)
9394 (aarch64_linux_remove_hw_breakpoint)
9395 (aarch64_linux_insert_watchpoint, aarch64_linux_remove_watchpoint)
9396 (aarch64_linux_region_ok_for_hw_watchpoint)
9397 (aarch64_linux_stopped_data_address)
9398 (aarch64_linux_stopped_by_watchpoint)
9399 (aarch64_linux_watchpoint_addr_within_range)
9400 (aarch64_linux_can_do_single_step): Refactor as methods of
9401 aarch64_linux_nat_target.
9402 (super_post_startup_inferior): Delete.
9403 (_initialize_aarch64_linux_nat): Adjust to C++ification.
9404
9405 * hppa-linux-nat.c (hppa_linux_nat_target): New class.
9406 (the_hppa_linux_nat_target): New.
9407 (hppa_linux_fetch_inferior_registers)
9408 (hppa_linux_store_inferior_registers): Refactor as methods of
9409 hppa_linux_nat_target.
9410 (_initialize_hppa_linux_nat): Adjust to C++ification.
9411
9412 * ia64-linux-nat.c (ia64_linux_nat_target): New class.
9413 (the_ia64_linux_nat_target): New.
9414 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint)
9415 (ia64_linux_stopped_data_address)
9416 (ia64_linux_stopped_by_watchpoint, ia64_linux_fetch_registers)
9417 (ia64_linux_store_registers, ia64_linux_xfer_partial): Refactor as
9418 ia64_linux_nat_target methods.
9419 (super_xfer_partial): Delete.
9420 (_initialize_ia64_linux_nat): Adjust to C++ification.
9421
9422 * m32r-linux-nat.c (m32r_linux_nat_target): New class.
9423 (the_m32r_linux_nat_target): New.
9424 (m32r_linux_fetch_inferior_registers)
9425 (m32r_linux_store_inferior_registers): Refactor as
9426 m32r_linux_nat_target methods.
9427 (_initialize_m32r_linux_nat): Adjust to C++ification.
9428
9429 * m68k-linux-nat.c (m68k_linux_nat_target): New class.
9430 (the_m68k_linux_nat_target): New.
9431 (m68k_linux_fetch_inferior_registers)
9432 (m68k_linux_store_inferior_registers): Refactor as
9433 m68k_linux_nat_target methods.
9434 (_initialize_m68k_linux_nat): Adjust to C++ification.
9435
9436 * s390-linux-nat.c (s390_linux_nat_target): New class.
9437 (the_s390_linux_nat_target): New.
9438 (s390_linux_fetch_inferior_registers)
9439 (s390_linux_store_inferior_registers, s390_stopped_by_watchpoint)
9440 (s390_insert_watchpoint, s390_remove_watchpoint)
9441 (s390_can_use_hw_breakpoint, s390_insert_hw_breakpoint)
9442 (s390_remove_hw_breakpoint, s390_region_ok_for_hw_watchpoint)
9443 (s390_auxv_parse, s390_read_description): Refactor as methods of
9444 s390_linux_nat_target.
9445 (_initialize_s390_nat): Adjust to C++ification.
9446
9447 * sparc-linux-nat.c (sparc_linux_nat_target): New class.
9448 (the_sparc_linux_nat_target): New.
9449 (_initialize_sparc_linux_nat): Adjust to C++ification.
9450 * sparc-nat.c (sparc_fetch_inferior_registers)
9451 (sparc_store_inferior_registers): Remove target_ops parameter.
9452 * sparc-nat.h (sparc_fetch_inferior_registers)
9453 (sparc_store_inferior_registers): Remove target_ops parameter.
9454 * sparc64-linux-nat.c (sparc64_linux_nat_target): New class.
9455 (the_sparc64_linux_nat_target): New.
9456 (_initialize_sparc64_linux_nat): Adjust to C++ification.
9457
9458 * spu-linux-nat.c (spu_linux_nat_target): New class.
9459 (the_spu_linux_nat_target): New.
9460 (spu_child_post_startup_inferior, spu_child_post_attach)
9461 (spu_child_wait, spu_fetch_inferior_registers)
9462 (spu_store_inferior_registers, spu_xfer_partial)
9463 (spu_can_use_hw_breakpoint): Refactor as spu_linux_nat_target
9464 methods.
9465 (_initialize_spu_nat): Adjust to C++ification.
9466
9467 * tilegx-linux-nat.c (tilegx_linux_nat_target): New class.
9468 (the_tilegx_linux_nat_target): New.
9469 (fetch_inferior_registers, store_inferior_registers):
9470 Refactor as methods.
9471 (_initialize_tile_linux_nat): Adjust to C++ification.
9472
9473 * xtensa-linux-nat.c (xtensa_linux_nat_target): New class.
9474 (the_xtensa_linux_nat_target): New.
9475 (xtensa_linux_fetch_inferior_registers)
9476 (xtensa_linux_store_inferior_registers): Refactor as
9477 xtensa_linux_nat_target methods.
9478 (_initialize_xtensa_linux_nat): Adjust to C++ification.
9479
9480 * fbsd-nat.c (USE_SIGTRAP_SIGINFO): Delete.
9481 (fbsd_pid_to_exec_file, fbsd_find_memory_regions)
9482 (fbsd_find_memory_regions, fbsd_info_proc, fbsd_xfer_partial)
9483 (fbsd_thread_alive, fbsd_pid_to_str, fbsd_thread_name)
9484 (fbsd_update_thread_list, fbsd_resume, fbsd_wait)
9485 (fbsd_stopped_by_sw_breakpoint)
9486 (fbsd_supports_stopped_by_sw_breakpoint, fbsd_follow_fork)
9487 (fbsd_insert_fork_catchpoint, fbsd_remove_fork_catchpoint)
9488 (fbsd_insert_vfork_catchpoint, fbsd_remove_vfork_catchpoint)
9489 (fbsd_post_startup_inferior, fbsd_post_attach)
9490 (fbsd_insert_exec_catchpoint, fbsd_remove_exec_catchpoint)
9491 (fbsd_set_syscall_catchpoint)
9492 (super_xfer_partial, super_resume, super_wait)
9493 (fbsd_supports_stopped_by_hw_breakpoint): Delete.
9494 (fbsd_handle_debug_trap): Remove target_ops parameter.
9495 (fbsd_nat_add_target): Delete.
9496 * fbsd-nat.h: Include "inf-ptrace.h".
9497 (fbsd_nat_add_target): Delete.
9498 (USE_SIGTRAP_SIGINFO): Define.
9499 (fbsd_nat_target): New class.
9500
9501 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers)
9502 (amd64bsd_store_inferior_registers): Remove target_ops parameter.
9503 (amd64bsd_target): Delete.
9504 * amd64-bsd-nat.h: New file.
9505 * amd64-fbsd-nat.c: Include "amd64-bsd-nat.h" instead of
9506 "x86-bsd-nat.h".
9507 (amd64_fbsd_nat_target): New class.
9508 (the_amd64_fbsd_nat_target): New.
9509 (amd64fbsd_read_description): Refactor as method of
9510 amd64_fbsd_nat_target.
9511 (amd64_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
9512 (_initialize_amd64fbsd_nat): Adjust to C++ification.
9513 * amd64-nat.h (amd64bsd_target): Delete function declaration.
9514 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers)
9515 (i386bsd_store_inferior_registers): Remove target_ops parameter.
9516 (i386bsd_target): Delete.
9517 * i386-bsd-nat.h (i386bsd_target): Delete function declaration.
9518 (i386bsd_fetch_inferior_registers)
9519 (i386bsd_store_inferior_registers): Declare.
9520 (i386_bsd_nat_target): New class.
9521 * i386-fbsd-nat.c (i386_fbsd_nat_target): New class.
9522 (the_i386_fbsd_nat_target): New.
9523 (i386fbsd_resume, i386fbsd_read_description): Refactor as
9524 i386_fbsd_nat_target methods.
9525 (i386_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
9526 (_initialize_i386fbsd_nat): Adjust to C++ification.
9527 * x86-bsd-nat.c (super_mourn_inferior): Delete.
9528 (x86bsd_mourn_inferior, x86bsd_target): Delete.
9529 (_initialize_x86_bsd_nat): Adjust to C++ification.
9530 * x86-bsd-nat.h: Include "x86-nat.h".
9531 (x86bsd_target): Delete declaration.
9532 (x86bsd_nat_target): New class.
9533
9534 * aarch64-fbsd-nat.c (aarch64_fbsd_nat_target): New class.
9535 (the_aarch64_fbsd_nat_target): New.
9536 (aarch64_fbsd_fetch_inferior_registers)
9537 (aarch64_fbsd_store_inferior_registers): Refactor as methods of
9538 aarch64_fbsd_nat_target.
9539 (_initialize_aarch64_fbsd_nat): Adjust to C++ification.
9540 * alpha-bsd-nat.c (alpha_bsd_nat_target): New class.
9541 (the_alpha_bsd_nat_target): New.
9542 (alphabsd_fetch_inferior_registers)
9543 (alphabsd_store_inferior_registers): Refactor as
9544 alpha_bsd_nat_target methods.
9545 (_initialize_alphabsd_nat): Refactor as methods of
9546 alpha_bsd_nat_target.
9547 * amd64-nbsd-nat.c: Include "amd64-bsd-nat.h".
9548 (the_amd64_nbsd_nat_target): New.
9549 (_initialize_amd64nbsd_nat): Adjust to C++ification.
9550 * amd64-obsd-nat.c: Include "amd64-bsd-nat.h".
9551 (the_amd64_obsd_nat_target): New.
9552 (_initialize_amd64obsd_nat): Adjust to C++ification.
9553 * arm-fbsd-nat.c (arm_fbsd_nat_target): New.
9554 (the_arm_fbsd_nat_target): New.
9555 (arm_fbsd_fetch_inferior_registers)
9556 (arm_fbsd_store_inferior_registers, arm_fbsd_read_description):
9557 (_initialize_arm_fbsd_nat): Refactor as methods of
9558 arm_fbsd_nat_target.
9559 (_initialize_arm_fbsd_nat): Adjust to C++ification.
9560 * arm-nbsd-nat.c (arm_netbsd_nat_target): New class.
9561 (the_arm_netbsd_nat_target): New.
9562 (armnbsd_fetch_registers, armnbsd_store_registers): Refactor as
9563 arm_netbsd_nat_target.
9564 (_initialize_arm_netbsd_nat): Adjust to C++ification.
9565 * hppa-nbsd-nat.c (hppa_nbsd_nat_target): New class.
9566 (the_hppa_nbsd_nat_target): New.
9567 (hppanbsd_fetch_registers, hppanbsd_store_registers): Refactor as
9568 hppa_nbsd_nat_target methods.
9569 (_initialize_hppanbsd_nat): Adjust to C++ification.
9570 * hppa-obsd-nat.c (hppa_obsd_nat_target): New class.
9571 (the_hppa_obsd_nat_target): New.
9572 (hppaobsd_fetch_registers, hppaobsd_store_registers): Refactor as
9573 methods of hppa_obsd_nat_target.
9574 (_initialize_hppaobsd_nat): Adjust to C++ification. Use
9575 add_target.
9576 * i386-nbsd-nat.c (the_i386_nbsd_nat_target): New.
9577 (_initialize_i386nbsd_nat): Adjust to C++ification. Use
9578 add_target.
9579 * i386-obsd-nat.c (the_i386_obsd_nat_target): New.
9580 (_initialize_i386obsd_nat): Use add_target.
9581 * m68k-bsd-nat.c (m68k_bsd_nat_target): New class.
9582 (the_m68k_bsd_nat_target): New.
9583 (m68kbsd_fetch_inferior_registers)
9584 (m68kbsd_store_inferior_registers): Refactor as methods of
9585 m68k_bsd_nat_target.
9586 (_initialize_m68kbsd_nat): Adjust to C++ification.
9587 * mips-fbsd-nat.c (mips_fbsd_nat_target): New class.
9588 (the_mips_fbsd_nat_target): New.
9589 (mips_fbsd_fetch_inferior_registers)
9590 (mips_fbsd_store_inferior_registers): Refactor as methods of
9591 mips_fbsd_nat_target.
9592 (_initialize_mips_fbsd_nat): Adjust to C++ification. Use
9593 add_target.
9594 * mips-nbsd-nat.c (mips_nbsd_nat_target): New class.
9595 (the_mips_nbsd_nat_target): New.
9596 (mipsnbsd_fetch_inferior_registers)
9597 (mipsnbsd_store_inferior_registers): Refactor as methods of
9598 mips_nbsd_nat_target.
9599 (_initialize_mipsnbsd_nat): Adjust to C++ification.
9600 * mips64-obsd-nat.c (mips64_obsd_nat_target): New class.
9601 (the_mips64_obsd_nat_target): New.
9602 (mips64obsd_fetch_inferior_registers)
9603 (mips64obsd_store_inferior_registers): Refactor as methods of
9604 mips64_obsd_nat_target.
9605 (_initialize_mips64obsd_nat): Adjust to C++ification. Use
9606 add_target.
9607 * nbsd-nat.c (nbsd_pid_to_exec_file): Refactor as method of
9608 nbsd_nat_target.
9609 * nbsd-nat.h: Include "inf-ptrace.h".
9610 (nbsd_nat_target): New class.
9611 * obsd-nat.c (obsd_pid_to_str, obsd_update_thread_list)
9612 (obsd_wait): Refactor as methods of obsd_nat_target.
9613 (obsd_add_target): Delete.
9614 * obsd-nat.h: Include "inf-ptrace.h".
9615 (obsd_nat_target): New class.
9616 * ppc-fbsd-nat.c (ppc_fbsd_nat_target): New class.
9617 (the_ppc_fbsd_nat_target): New.
9618 (ppcfbsd_fetch_inferior_registers)
9619 (ppcfbsd_store_inferior_registers): Refactor as methods of
9620 ppc_fbsd_nat_target.
9621 (_initialize_ppcfbsd_nat): Adjust to C++ification. Use
9622 add_target.
9623 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): New class.
9624 (the_ppc_nbsd_nat_target): New.
9625 (ppcnbsd_fetch_inferior_registers)
9626 (ppcnbsd_store_inferior_registers): Refactor as methods of
9627 ppc_nbsd_nat_target.
9628 (_initialize_ppcnbsd_nat): Adjust to C++ification.
9629 * ppc-obsd-nat.c (ppc_obsd_nat_target): New class.
9630 (the_ppc_obsd_nat_target): New.
9631 (ppcobsd_fetch_registers, ppcobsd_store_registers): Refactor as
9632 methods of ppc_obsd_nat_target.
9633 (_initialize_ppcobsd_nat): Adjust to C++ification. Use
9634 add_target.
9635 * sh-nbsd-nat.c (sh_nbsd_nat_target): New class.
9636 (the_sh_nbsd_nat_target): New.
9637 (shnbsd_fetch_inferior_registers)
9638 (shnbsd_store_inferior_registers): Refactor as methods of
9639 sh_nbsd_nat_target.
9640 (_initialize_shnbsd_nat): Adjust to C++ification.
9641 * sparc-nat.c (sparc_xfer_wcookie): Make extern.
9642 (inf_ptrace_xfer_partial): Delete.
9643 (sparc_xfer_partial, sparc_target): Delete.
9644 * sparc-nat.h (sparc_fetch_inferior_registers)
9645 (sparc_store_inferior_registers, sparc_xfer_wcookie): Declare.
9646 (sparc_target): Delete function declaration.
9647 (sparc_target): New template class.
9648 * sparc-nbsd-nat.c (the_sparc_nbsd_nat_target): New.
9649 (_initialize_sparcnbsd_nat): Adjust to C++ification.
9650 * sparc64-fbsd-nat.c (the_sparc64_fbsd_nat_target): New.
9651 (_initialize_sparc64fbsd_nat): Adjust to C++ification. Use
9652 add_target.
9653 * sparc64-nbsd-nat.c (the_sparc64_nbsd_nat_target): New.
9654 (_initialize_sparc64nbsd_nat): Adjust to C++ification.
9655 * sparc64-obsd-nat.c (the_sparc64_obsd_nat_target): New.
9656 (_initialize_sparc64obsd_nat): Adjust to C++ification. Use
9657 add_target.
9658 * vax-bsd-nat.c (vax_bsd_nat_target): New class.
9659 (the_vax_bsd_nat_target): New.
9660 (vaxbsd_fetch_inferior_registers)
9661 (vaxbsd_store_inferior_registers): Refactor as vax_bsd_nat_target
9662 methods.
9663 (_initialize_vaxbsd_nat): Adjust to C++ification.
9664
9665 * bsd-kvm.c (bsd_kvm_target): New class.
9666 (bsd_kvm_ops): Now a bsd_kvm_target.
9667 (bsd_kvm_open, bsd_kvm_close, bsd_kvm_xfer_partial)
9668 (bsd_kvm_files_info, bsd_kvm_fetch_registers)
9669 (bsd_kvm_thread_alive, bsd_kvm_pid_to_str): Refactor as methods of
9670 bsd_kvm_target.
9671 (bsd_kvm_return_one): Delete.
9672 (bsd_kvm_add_target): Adjust to C++ification.
9673
9674 * nto-procfs.c (nto_procfs_target, nto_procfs_target_native)
9675 (nto_procfs_target_procfs): New classes.
9676 (procfs_open_1, procfs_thread_alive, procfs_update_thread_list)
9677 (procfs_files_info, procfs_pid_to_exec_file, procfs_attach)
9678 (procfs_post_attach, procfs_wait, procfs_fetch_registers)
9679 (procfs_xfer_partial, procfs_detach, procfs_insert_breakpoint)
9680 (procfs_remove_breakpoint, procfs_insert_hw_breakpoint)
9681 (procfs_remove_hw_breakpoint, procfs_resume)
9682 (procfs_mourn_inferior, procfs_create_inferior, procfs_interrupt)
9683 (procfs_kill_inferior, procfs_store_registers)
9684 (procfs_pass_signals, procfs_pid_to_str, procfs_can_run): Refactor
9685 as methods of nto_procfs_target.
9686 (nto_procfs_ops): Now an nto_procfs_target_procfs.
9687 (nto_native_ops): Delete.
9688 (procfs_open, procfs_native_open): Delete.
9689 (nto_native_ops): Now an nto_procfs_target_native.
9690 (init_procfs_targets): Adjust to C++ification.
9691 (procfs_can_use_hw_breakpoint, procfs_remove_hw_watchpoint)
9692 (procfs_insert_hw_watchpoint, procfs_stopped_by_watchpoint):
9693 Refactor as methods of nto_procfs_target.
9694
9695 * go32-nat.c (go32_nat_target): New class.
9696 (the_go32_nat_target): New.
9697 (go32_attach, go32_resume, go32_wait, go32_fetch_registers)
9698 (go32_store_registers, go32_xfer_partial, go32_files_info)
9699 (go32_kill_inferior, go32_create_inferior, go32_mourn_inferior)
9700 (go32_terminal_init, go32_terminal_info, go32_terminal_inferior)
9701 (go32_terminal_ours, go32_pass_ctrlc, go32_thread_alive)
9702 (go32_pid_to_str): Refactor as methods of go32_nat_target.
9703 (go32_target): Delete.
9704 (_initialize_go32_nat): Adjust to C++ification.
9705
9706 * gnu-nat.c (gnu_wait, gnu_resume, gnu_kill_inferior)
9707 (gnu_mourn_inferior, gnu_create_inferior, gnu_attach, gnu_detach)
9708 (gnu_stop, gnu_thread_alive, gnu_xfer_partial)
9709 (gnu_find_memory_regions, gnu_pid_to_str): Refactor as methods of
9710 gnu_nat_target.
9711 (gnu_target): Delete.
9712 * gnu-nat.h (gnu_target): Delete.
9713 (gnu_nat_target): New class.
9714 * i386-gnu-nat.c (gnu_base_target): New.
9715 (i386_gnu_nat_target): New class.
9716 (the_i386_gnu_nat_target): New.
9717 (_initialize_i386gnu_nat): Adjust to C++ification.
9718
3fffc070
PA
97192018-05-02 Pedro Alves <palves@redhat.com>
9720
9721 * bfd-target.c (target_bfd_xclose): Rename to ...
9722 (target_bfd_close): ... this.
9723 (target_bfd_reopen): Adjust.
9724 * target.c (target_close): Remove references to to_xclose.
9725 * target.h (target_ops::to_xclose): Delete.
9726 (target_ops::to_close): Update comments.
9727
6798487f
PA
97282018-05-02 Pedro Alves <palves@redhat.com>
9729
9730 * alpha-linux-nat.c: Include "linux-nat-trad.h" instead of
9731 "linux-nat.h".
9732 * configure.nat (alpha-linux, linux-mips): Add linux-nat-trad.o.
9733 * inf-ptrace.c (inf_ptrace_register_u_offset)
9734 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
9735 (inf_ptrace_store_register, inf_ptrace_store_registers)
9736 (inf_ptrace_trad_target): Move to ...
9737 * linux-nat-trad.c: ... this new file.
9738 * linux-nat-trad.h: New file.
9739 * linux-nat.c (linux_target_install_ops): Make extern.
9740 (linux_trad_target): Delete.
9741 * linux-nat.h (linux_trad_target): Delete declaration.
9742 (linux_target_install_ops): Declare.
9743 * mips-linux-nat.c: Include "linux-nat-trad.h" instead of
9744 "linux-nat.h".
9745
c1955e17
PA
97462018-05-02 Pedro Alves <palves@redhat.com>
9747
9748 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
9749 procfs_target/add_target here.
9750 * procfs.c (procfs_target): Make static.
9751 (_initialize_procfs): Call add_target here.
9752 * procfs.h (struct target_ops): Remove forward declaration.
9753 (procfs_target): Remove declaration.
9754 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Delete.
9755
b5c8fcb1
PA
97562018-05-02 Pedro Alves <palves@redhat.com>
9757
9758 * procfs.c (procfs_stopped_by_watchpoint)
9759 (procfs_insert_watchpoint, procfs_remove_watchpoint)
9760 (procfs_region_ok_for_hw_watchpoint, procfs_stopped_data_address):
9761 Forward declare.
9762 (procfs_use_watchpoints): Delete, move contents...
9763 (procfs_target): ... here.
9764 * procfs.h (procfs_use_watchpoints): Delete declaration.
9765 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
9766 procfs_use_watchpoints.
9767 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Don't call
9768 procfs_use_watchpoints.
9769
0489430a
TT
97702018-05-02 Tom Tromey <tom@tromey.com>
9771
9772 PR python/20084:
9773 * python/python.c (gdbpy_parameter_value): Handle var_zuinteger
9774 and var_zuinteger_unlimited.
9775 * python/py-param.c (struct parm_constant): Add PARAM_ZUINTEGER
9776 and PARAM_ZUINTEGER_UNLIMITED.
9777 (set_parameter_value): Handle var_zuinteger and
9778 var_zuinteger_unlimited.
9779 (add_setshow_generic): Likewise.
9780 (parmpy_init): Likewise.
9781
1632f8ba
DR
97822018-04-28 Dan Robertson <danlrobertson89@gmail.com>
9783
9784 PR rust/23124
9785 * gdb/rust-exp.y (convert_params_to_types): Ensure that the params
9786 pointer is not null before dereferencing it.
9787
76761936
TT
97882018-04-30 Tom Tromey <tom@tromey.com>
9789
9790 * darwin-nat-info.c (darwin_debug_regions_recurse): Remove use of
9791 is_mi_like_p.
9792
2d33446d
TT
97932018-04-30 Tom Tromey <tom@tromey.com>
9794
9795 * breakpoint.c (mention): Remove use of is_mi_like_p.
9796 (print_mention_ranged_breakpoint): Likewise.
9797 * break-catch-throw.c (print_it_exception_catchpoint): Remove use
9798 of is_mi_like_p.
9799
f3c6abab
TT
98002018-04-30 Tom Tromey <tom@tromey.com>
9801
9802 * tracepoint.c (tvariables_info_1): Remove use of is_mi_like_p.
9803
40c03530
TT
98042018-04-30 Tom Tromey <tom@tromey.com>
9805
9806 * spu-tdep.c (info_spu_mailbox_list, info_spu_dma_cmdlist)
9807 (info_spu_event_command): Remove some uses of is_mi_like_p.
9808
2038b7fd
TT
98092018-04-30 Tom Tromey <tom@tromey.com>
9810
9811 * python/py-framefilter.c (py_print_single_arg)
9812 (enumerate_locals, py_print_args, py_print_frame): Remove some
9813 uses of is_mi_like_p.
9814
4904c3c6
TT
98152018-04-30 Tom Tromey <tom@tromey.com>
9816
9817 * ui-out.c: Update.
9818 * cli-out.h (cli_ui_out::do_is_mi_like_p): Update.
9819 * ui-out.h (ui_out::is_mi_like_p): Now const.
9820 (ui_out::do_is_mi_like_p): Now const.
9821 * mi/mi-out.h (mi_ui_out::do_is_mi_like_p): Update.
9822
7c66fffc
TT
98232018-04-30 Tom Tromey <tom@tromey.com>
9824
9825 * varobj.c (varobj_set_visualizer): Use new_reference.
9826 * python/python.c (gdbpy_decode_line): Use new_reference.
9827 * python/py-cmd.c (cmdpy_function, cmdpy_completer_helper): Use
9828 new_reference.
9829
bbfa6f00
TT
98302018-04-30 Tom Tromey <tom@tromey.com>
9831
9832 * varobj.c (install_new_value): Use new_reference.
9833 * value.h (value_incref): Return void. Swap intro comment with
9834 value_decref.
9835 * value.c (set_value_parent): Use new_reference.
9836 (value_incref): Return void. Update intro comment.
9837 (release_value): Use new_reference.
9838 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use new_reference.
9839
1831a9f9
TT
98402018-04-30 Tom Tromey <tom@tromey.com>
9841
9842 * symfile-mem.c (symbol_file_add_from_memory): Use new_reference.
9843 * gdb_bfd.h (new_bfd_ref): Remove.
9844 (gdb_bfd_open): Update comment.
9845 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
9846 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_record_inclusion)
9847 (gdb_bfd_fdopenr): Use new_reference.
9848 * exec.c (exec_file_attach): Use new_reference.
9849
7c1b5f3d
TT
98502018-04-30 Tom Tromey <tom@tromey.com>
9851
9852 * common/gdb_ref_ptr.h (ref_ptr::new_reference): New static
9853 method.
9854
e11fb955
TT
98552018-04-30 Tom Tromey <tom@tromey.com>
9856
9857 * jit.c (jit_read_code_entry): Use type_align.
9858 * i386-tdep.c (i386_gdbarch_init): Don't call
9859 set_gdbarch_long_long_align_bit.
9860 * gdbarch.sh: Remove long_long_align_bit.
9861 * gdbarch.c, gdbarch.h: Rebuild.
9862 * arc-tdep.c (arc_type_align): New function.
9863 (arc_gdbarch_init): Use arc_type_align. Don't call
9864 set_gdbarch_long_long_align_bit.
9865
2fff16dd
TT
98662018-04-30 Tom Tromey <tom@tromey.com>
9867
9868 * rust-lang.c (rust_type_alignment): Remove.
9869 (rust_composite_type): Use type_align.
9870
6d7bb824
TT
98712018-04-30 Tom Tromey <tom@tromey.com>
9872
9873 * NEWS: Mention Type.align.
9874 * python/py-type.c (typy_get_alignof): New function.
9875 (type_object_getset): Add "alignof".
9876
007e1530
TT
98772018-04-30 Tom Tromey <tom@tromey.com>
9878
9879 PR exp/17095:
9880 * NEWS: Update.
9881 * std-operator.def (UNOP_ALIGNOF): New operator.
9882 * expprint.c (dump_subexp_body_standard) <case UNOP_ALIGNOF>:
9883 New.
9884 * eval.c (evaluate_subexp_standard) <case UNOP_ALIGNOF>: New.
9885 * c-lang.c (c_op_print_tab): Add alignof.
9886 * c-exp.y (ALIGNOF): New token.
9887 (exp): Add "ALIGNOF" production.
9888 (ident_tokens): Add _Alignof and alignof.
9889
2b4424c3
TT
98902018-04-30 Tom Tromey <tom@tromey.com>
9891
9892 * i386-tdep.c (i386_type_align): New function.
9893 (i386_gdbarch_init): Update.
9894 * gdbarch.sh (type_align): New method.
9895 * gdbarch.c, gdbarch.h: Rebuild.
9896 * arch-utils.h (default_type_align): Declare.
9897 * arch-utils.c (default_type_align): New function.
9898 * gdbtypes.h (TYPE_ALIGN_BITS): New define.
9899 (struct type) <align_log2>: New field.
9900 <instance_flags>: Now a bitfield.
9901 (TYPE_RAW_ALIGN): New macro.
9902 (type_align, type_raw_align, set_type_align): Declare.
9903 * gdbtypes.c (type_align, type_raw_align, set_type_align): New
9904 functions.
9905 * dwarf2read.c (quirk_rust_enum): Set type alignment.
9906 (get_alignment, maybe_set_alignment): New functions.
9907 (read_structure_type, read_enumeration_type, read_array_type)
9908 (read_set_type, read_tag_pointer_type, read_tag_reference_type)
9909 (read_subrange_type, read_base_type): Set type alignment.
9910
d33bc52e
SM
99112018-04-30 Simon Marchi <simon.marchi@ericsson.com>
9912
9913 * dwarf2read.c (read_index_from_section): Use bool.
9914
e28b63a9
FG
99152018-04-29 Fabian Groffen <grobian@gentoo.org>
9916
9917 PR gdb/22950
9918 * proc-events.c (init_syscall_table): Guard usage os SYS_uuidsys
9919 with #ifdef.
9920
cd8c76e4
JR
99212018-04-29 John Reiser <jreiser@BitWagon.com>
9922
9923 PR build/22873
9924 * gdb/Makefile.in: (.c:.l, .c:.y): Write the target only in the
9925 last step, and do it atomically.
9926
476d250e
AO
99272018-04-27 Alexandre Oliva <aoliva@redhat.com>
9928
9929 * compile/compile-c-types.c (convert_int, convert_float):
9930 Update for C FE v1.
9931
6873858b
TT
99322018-04-27 Tom Tromey <tom@tromey.com>
9933
9934 PR rust/22545:
9935 * rust-lang.c (rust_inclusive_range_type_p): New function.
9936 (rust_range): Handle inclusive ranges.
9937 (rust_compute_range): Likewise.
9938 * rust-exp.y (struct rust_op) <inclusive>: New field.
9939 (DOTDOTEQ): New constant.
9940 (range_expr): Add "..=" productions.
9941 (operator_tokens): Add "..=" token.
9942 (ast_range): Add "inclusive" parameter.
9943 (convert_ast_to_expression) <case OP_RANGE>: Handle inclusive
9944 ranges.
9945 * parse.c (operator_length_standard) <case OP_RANGE>: Handle new
9946 bounds values.
9947 * expression.h (enum range_type) <NONE_BOUND_DEFAULT_EXCLUSIVE,
9948 LOW_BOUND_DEFAULT_EXCLUSIVE>: New constants.
9949 Update comments.
9950 * expprint.c (print_subexp_standard): Handle new bounds values.
9951 (dump_subexp_body_standard): Likewise.
9952
632e107b
TT
99532018-04-27 Tom Tromey <tom@tromey.com>
9954
9955 * configure: Rebuild.
9956 * warning.m4 (AM_GDB_WARNINGS): Add -Wsuggest-override.
9957 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Use "override", not
9958 "OVERRIDE".
9959 (class symbol_needs_eval_context): Likewise.
9960 * dwarf2read.c (mock_mapped_index::symbol_name_count)
9961 (mock_mapped_index::symbol_name_at): Use "override". Remove
9962 "virtual".
9963 * dwarf2-frame.c (dwarf_expr_executor::get_addr_index): Use
9964 "override".
9965 (class dwarf_expr_executor): Use "override", not "OVERRIDE".
9966 * aarch64-tdep.c (instruction_reader::read): Use "override".
9967 (instruction_reader_test::read): Likewise.
9968 * arm-tdep.c (instruction_reader::read): Use "override".
9969 (instruction_reader_thumb::read): Likewise.
9970
b75abf5b
AK
99712018-04-26 Andrzej Kaczmarek <andrzej.kaczmarek@codecoup.pl>
9972
9973 PR remote/9665
9974 * remote.c (send_g_packet): Use putpkt/getpkt/packet_check_result
9975 instead of remote_send.
9976 (remote_send): Remove.
9977
79188d8d
PA
99782018-04-26 Pedro Alves <palves@redhat.com>
9979
9980 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Use
9981 find_function_start_sal instead of find_pc_line.
9982
f50776aa
PA
99832018-04-26 Pedro Alves <palves@redhat.com>
9984
9985 * breakpoint.c (set_breakpoint_location_function): Handle
9986 mst_data_gnu_ifunc.
9987 * c-exp.y (variable production): Handle mst_data_gnu_ifunc.
9988 * elfread.c (elf_symtab_read): Give data symbols with
9989 BSF_GNU_INDIRECT_FUNCTION set mst_data_gnu_ifunc type.
9990 (elf_rel_plt_read): Update comment.
9991 * linespec.c (convert_linespec_to_sals): Handle
9992 mst_data_gnu_ifunc.
9993 (minsym_found): Handle mst_data_gnu_ifunc.
9994 * minsyms.c (msymbol_is_function, minimal_symbol_reader::record)
9995 (find_solib_trampoline_target): Handle mst_data_gnu_ifunc.
9996 * parse.c (find_minsym_type_and_address): Handle
9997 mst_data_gnu_ifunc.
9998 * symmisc.c (dump_msymbols): Handle mst_data_gnu_ifunc.
9999 * symtab.c (find_gnu_ifunc): Handle mst_data_gnu_ifunc.
10000 * symtab.h (minimal_symbol_type) <mst_text_gnu_ifunc>: Update
10001 comment.
10002 <mst_data_gnu_ifunc>: New enumerator.
10003
20944a6e
PA
100042018-04-26 Pedro Alves <palves@redhat.com>
10005
10006 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Rename to ...
10007 (lookup_minimal_symbol_by_pc_section): ... this. Replace
10008 'want_trampoline' parameter by a lookup_msym_prefer parameter.
10009 Handle it.
10010 (lookup_minimal_symbol_by_pc_section): Delete old implementation.
10011 (lookup_minimal_symbol_by_pc): Adjust.
10012 (in_gnu_ifunc_stub): Prefer GNU ifunc symbols.
10013 (lookup_solib_trampoline_symbol_by_pc): Adjust.
10014 * minsyms.h (lookup_msym_prefer): New enum.
10015 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
10016 parameter by a lookup_msym_prefer parameter.
10017
1adeb822
PA
100182018-04-26 Pedro Alves <palves@redhat.com>
10019
10020 * elfread.c (elf_gnu_ifunc_record_cache): Check if the symbol name
10021 ends in "@plt" instead of looking at the symbol's section.
10022
a0aca7b0
PA
100232018-04-26 Pedro Alves <palves@redhat.com>
10024
10025 * blockframe.c (cache_pc_function_is_gnu_ifunc): Delete. Remove
10026 all references.
10027 (find_pc_partial_function_gnu_ifunc): Rename to ...
10028 (find_pc_partial_function): ... this, and remove references to
10029 'is_gnu_ifunc_p'.
10030 (find_pc_partial_function): Delete old implementation.
10031 * symtab.h (find_pc_partial_function_gnu_ifunc): Delete.
10032
76af0f26
PA
100332018-04-26 Pedro Alves <palves@redhat.com>
10034
10035 * linespec.c (struct bound_minimal_symbol_search_key): New.
10036 (convert_linespec_to_sals): Sort minimal symbols earlier. Don't
10037 skip first line if we found a GNU ifunc minimal symbol by name.
10038 (compare_msymbols): Change parameters to work with a destructured
10039 lhs minsym.
10040 (compare_msymbols_for_qsort, compare_msymbols_for_bsearch): New
10041 functions.
10042
3467ec66
PA
100432018-04-26 Pedro Alves <palves@redhat.com>
10044
10045 * breakpoint.c (set_breakpoint_location_function): Don't resolve
10046 ifunc targets here. Instead, if we have an ifunc minsym, use its
10047 address/name.
10048 (add_location_to_breakpoint): Store the minsym and the objfile in
10049 the breakpoint location.
10050 * breakpoint.h (bp_location) <msymbol, objfile>: New fields.
10051 * linespec.c (minsym_found): Resolve GNU ifunc targets here.
10052 Record the minsym in the sal.
10053 * symtab.h (symtab_and_line) <msymbol>: New field.
10054
28f4fa4d
PA
100552018-04-26 Pedro Alves <palves@redhat.com>
10056
10057 * elfread.c (elf_gnu_ifunc_resolve_by_got): Don't write to *ADDR_P
10058 unless we actually resolved the ifunc.
10059
ca31ab1d
PA
100602018-04-26 Pedro Alves <palves@redhat.com>
10061
10062 * c-exp.y (variable production): Prefer ifunc minsyms over
10063 regular function symbols.
10064 * symtab.c (find_gnu_ifunc): New function.
10065 * minsyms.h (lookup_msym_prefer): New enum.
10066 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
10067 parameter by a lookup_msym_prefer parameter.
10068 * symtab.h (find_gnu_ifunc): New declaration.
10069
8388016d
PA
100702018-04-26 Pedro Alves <palves@redhat.com>
10071
10072 * blockframe.c (find_gnu_ifunc_target_type): New function.
10073 (find_function_type): New.
10074 * eval.c (evaluate_var_msym_value): For GNU ifunc types, always
10075 return a value with a memory address.
10076 (eval_call): For calls to GNU ifunc functions, try to find the
10077 type of the target function from the type that the resolver
10078 returns.
10079 * gdbtypes.c (objfile_type): Don't install a return type for ifunc
10080 symbols.
10081 * infcall.c (find_function_return_type): Delete.
10082 (find_function_addr): Add 'function_type' parameter. For calls to
10083 GNU ifunc functions, try to find the type of the target function
10084 from the type that the resolver returns, and return it via
10085 FUNCTION_TYPE.
10086 (call_function_by_hand_dummy): Adjust to use the function type
10087 returned by find_function_addr.
10088 (find_function_addr): Add 'function_type' parameter and move
10089 description here.
10090 * symtab.h (find_function_type, find_gnu_ifunc_target_type): New
10091 declarations.
10092
a376e11d
PA
100932018-04-26 Pedro Alves <palves@redhat.com>
10094
10095 * c-exp.y (variable production): Skip finding an alias for ifunc
10096 symbols.
10097
02e169e2
PA
100982018-04-26 Pedro Alves <palves@redhat.com>
10099
10100 * elfread.c (elf_rel_plt_read): Look for relocations for .got.plt too.
10101
249b5733
PA
101022018-04-25 Pedro Alves <palves@redhat.com>
10103
10104 * infcmd.c (kill_command): Print the pid as string, not the whole
10105 thread's ptid. Add comment. s/has been killed/killed/ in output
10106 message.
10107 * remote.c (remote_detach_1): Print the pid as string, not the
10108 whole thread's ptid.
10109
f67c0c91
SDJ
101102018-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10111 Sergio Durigan Junior <sergiodj@redhat.com>
10112 Pedro Alves <palves@redhat.com>
10113
10114 * infcmd.c (kill_command): Print message when inferior has
10115 been killed.
10116 * inferior.c (print_inferior_events): Remove 'static'. Set as
10117 '1'.
10118 (add_inferior): Improve message printed when
10119 'print_inferior_events' is on.
10120 (exit_inferior): Remove message printed when
10121 'print_inferior_events' is on.
10122 (detach_inferior): Improve message printed when
10123 'print_inferior_events' is on.
10124 (initialize_inferiors): Use 'add_inferior_silent' to set
10125 'current_inferior_'.
10126 * inferior.h (print_inferior_events): Declare here as
10127 'extern'.
10128 * infrun.c (follow_fork_inferior): Print '[Attaching...]' or
10129 '[Detaching...]' messages when 'print_inferior_events' is on.
10130 Use 'add_thread_silent' instead of 'add_thread'. Add '[' and ']'
10131 as prefix/suffix for messages. Remove periods. Fix erroneous
10132 'Detaching after fork from child...', replace it by '... from
10133 parent...'.
10134 (handle_vfork_child_exec_or_exit): Add '[' and ']' as
10135 prefix/suffix when printing 'Detaching...' messages. Print
10136 them when 'print_inferior_events' is on.
10137 * remote.c (remote_detach_1): Print message when detaching
10138 from inferior and '!is_fork_parent'.
10139
e427af18
TT
101402018-04-24 Tom Tromey <tom@tromey.com>
10141
10142 * cli-out.h: Reindent.
10143
05b1d8d6
TT
101442018-04-24 Tom Tromey <tom@tromey.com>
10145
10146 * cli-out.c (cli_ui_out::out_field_fmt): Remove.
10147 (cli_ui_out::do_field_string): Use fputs_filtered.
10148 * cli-out.h (class cli_ui_out) <out_field_fmt>: Remove.
10149
a95c7dab
TT
101502018-04-23 Tom Tromey <tom@tromey.com>
10151
10152 * guile/scm-frame.c (gdbscm_frame_read_var): Use
10153 gdb::unique_xmalloc_ptr.
10154
458412c3
TT
101552018-04-23 Tom Tromey <tom@tromey.com>
10156
10157 * configure: Rebuild.
10158
db86b02b
RS
101592018-04-22 Rajendra SY <rajendra.sy@gmail.com>
10160
10161 PR gdb/23095
10162 * gdb/testsuite/gdb.base/break-probes.exp: Pass shlib_load to
10163 prepare_for_testing. Set normal_bp to r_debug_state if target
10164 is bsd.
10165
00aecdcf
PA
101662018-04-21 Pedro Alves <palves@redhat.com>
10167 Rajendra SY <rajendra.sy@gmail.com>
10168
10169 * inf-ptrace.c (inf_ptrace_attach): Mark the thread as executing.
10170 * remote.c (extended_remote_attach): In all-stop mode, mark the
10171 thread as executing.
10172
224608c3
PW
101732018-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10174
10175 * thread.c (thread_apply_all_command): Fix comment.
10176 (thread_command): Fix comment.
10177
3b74854b
AH
101782018-04-10 Alan Hayward <alan.hayward@arm.com>
10179
10180 * common/tdesc.h (tdesc_create_feature): Remove xml filename
10181 parameter.
10182 * features/aarch64-core.c (create_feature_aarch64_core):
10183 Regenerate.
10184 * features/aarch64-fpu.c (create_feature_aarch64_fpu):
10185 Likewise.
10186 * features/i386/32bit-avx.c (create_feature_i386_32bit_avx):
10187 Likewise.
10188 * features/i386/32bit-avx512.c
10189 (create_feature_i386_32bit_avx512): Likewise.
10190 * features/i386/32bit-core.c (create_feature_i386_32bit_core):
10191 Likewise.
10192 * features/i386/32bit-linux.c (create_feature_i386_32bit_linux):
10193 Likewise.
10194 * features/i386/32bit-mpx.c (create_feature_i386_32bit_mpx):
10195 Likewise.
10196 * features/i386/32bit-pkeys.c (create_feature_i386_32bit_pkeys):
10197 Likewise.
10198 * features/i386/32bit-sse.c (create_feature_i386_32bit_sse):
10199 Likewise.
10200 * features/i386/64bit-avx.c (create_feature_i386_64bit_avx):
10201 Likewise.
10202 * features/i386/64bit-avx512.c
10203 (create_feature_i386_64bit_avx512): Likewise.
10204 * features/i386/64bit-core.c (create_feature_i386_64bit_core):
10205 Likewise.
10206 * features/i386/64bit-linux.c (create_feature_i386_64bit_linux):
10207 Likewise.
10208 * features/i386/64bit-mpx.c (create_feature_i386_64bit_mpx):
10209 Likewise.
10210 * features/i386/64bit-pkeys.c (create_feature_i386_64bit_pkeys):
10211 Likewise.
10212 * features/i386/64bit-segments.c
10213 (create_feature_i386_64bit_segments): Likewise.
10214 * features/i386/64bit-sse.c (create_feature_i386_64bit_sse):
10215 Likewise.
10216 * features/i386/x32-core.c
10217 (create_feature_i386_x32_core): Likewise.
10218 * features/tic6x-c6xp.c (create_feature_tic6x_c6xp): Likewise.
10219 * features/tic6x-core.c (create_feature_tic6x_core): Likewise.
10220 * features/tic6x-gp.c (create_feature_tic6x_gp): Likewise.
10221 * target-descriptions.c: In generated code, don't pass xml
10222 filename.
10223
e98577a9
AH
102242018-04-18 Alan Hayward <alan.hayward@arm.com>
10225
10226 * common/tdesc.c (print_xml_feature::visit_pre): Add xml parsing.
10227 (print_xml_feature::visit_post): Likewise.
10228 (print_xml_feature::visit): Likewise.
10229 * common/tdesc.h (tdesc_get_features_xml): Use const tdesc.
10230 (print_xml_feature): Add new class.
10231 * regformats/regdat.sh: Null xmltarget on feature targets.
10232 * target-descriptions.c (struct target_desc): Add xmltarget.
10233 (maintenance_check_tdesc_xml_convert): Add unittest function.
10234 (tdesc_get_features_xml): Add function to get xml.
10235 (maintenance_check_xml_descriptions): Test xml generation.
10236 * xml-tdesc.c (string_read_description_xml): Add function.
10237 * xml-tdesc.h (string_read_description_xml): Add declaration.
10238
ad7fc756
AH
102392018-04-18 Alan Hayward <alan.hayward@arm.com>
10240
10241 * features/Makefile: Add feature marker to targets with new style
10242 target descriptions.
10243 * regformats/aarch64.dat: Regenerate.
10244 * regformats/i386/amd64-avx-avx512-linux.dat: Likewise.
10245 * regformats/i386/amd64-avx-linux.dat: Likewise.
10246 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Likewise.
10247 * regformats/i386/amd64-avx-mpx-linux.dat: Likewise.
10248 * regformats/i386/amd64-linux.dat: Likewise.
10249 * regformats/i386/amd64-mpx-linux.dat: Likewise.
10250 * regformats/i386/amd64.dat: Likewise.
10251 * regformats/i386/i386-avx-avx512-linux.dat: Likewise.
10252 * regformats/i386/i386-avx-linux.dat: Likewise.
10253 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Likewise.
10254 * regformats/i386/i386-avx-mpx-linux.dat: Likewise.
10255 * regformats/i386/i386-linux.dat: Likewise.
10256 * regformats/i386/i386-mmx-linux.dat: Likewise.
10257 * regformats/i386/i386-mpx-linux.dat: Likewise.
10258 * regformats/i386/i386.dat: Likewise.
10259 * regformats/i386/x32-avx-avx512-linux.dat: Likewise.
10260 * regformats/i386/x32-avx-linux.dat: Likewise.
10261 * regformats/i386/x32-linux.dat: Likewise.
10262 * regformats/tic6x-c62x-linux.dat: Likewise.
10263 * regformats/tic6x-c64x-linux.dat: Likewise.
10264 * regformats/tic6x-c64xp-linux.dat: Likewise.
10265 * regformats/regdat.sh: Parse feature marker.
10266
d278f585
AH
102672018-04-18 Alan Hayward <alan.hayward@arm.com>
10268
10269 * common/tdesc.h (tdesc_architecture_name): Add new declaration.
10270 (tdesc_osabi_name): Likewise.
10271 * target-descriptions.c (tdesc_architecture_name): Add new
10272 function.
10273 (tdesc_osabi_name): Likewise.
10274
eee8a18d
AH
102752018-04-18 Alan Hayward <alan.hayward@arm.com>
10276
10277 * common/tdesc.c (tdesc_predefined_type): Move to here.
10278 (tdesc_named_type): Likewise.
10279 (tdesc_create_vector): Likewise.
10280 (tdesc_create_struct): Likewise.
10281 (tdesc_set_struct_size): Likewise.
10282 (tdesc_create_union): Likewise.
10283 (tdesc_create_flags): Likewise.
10284 (tdesc_create_enum): Likewise.
10285 (tdesc_add_field): Likewise.
10286 (tdesc_add_typed_bitfield): Likewise.
10287 (tdesc_add_bitfield): Likewise.
10288 (tdesc_add_flag): Likewise.
10289 (tdesc_add_enum_value): Likewise.
10290 * common/tdesc.h (struct tdesc_type_builtin): Likewise.
10291 (struct tdesc_type_vector): Likewise.
10292 (struct tdesc_type_field): Likewise.
10293 (struct tdesc_type_with_fields): Likewise.
10294 (tdesc_create_enum): Add declaration.
10295 (tdesc_add_typed_bitfield): Likewise.
10296 (tdesc_add_enum_value): Likewise.
10297 * target-descriptions.c (tdesc_type_field): Move from here.
10298 (tdesc_type_builtin): Likewise.
10299 (tdesc_type_vector): Likewise.
10300 (tdesc_type_with_fields): Likewise.
10301 (tdesc_predefined_types): Likewise.
10302 (tdesc_named_type): Likewise.
10303 (tdesc_create_vector): Likewise.
10304 (tdesc_create_struct): Likewise.
10305 (tdesc_set_struct_size): Likewise.
10306 (tdesc_create_union): Likewise.
10307 (tdesc_create_flags): Likewise.
10308 (tdesc_create_enum): Likewise.
10309 (tdesc_add_field): Likewise.
10310 (tdesc_add_typed_bitfield): Likewise.
10311 (tdesc_add_bitfield): Likewise.
10312 (tdesc_add_flag): Likewise.
10313 (tdesc_add_enum_value): Likewise.
10314 * gdb/target-descriptions.h (tdesc_create_enum): Likewise.
10315 (tdesc_add_typed_bitfield): Likewise.
10316 (tdesc_add_enum_value): Likewise.
10317
82ec9bc7
AH
103182018-04-18 Alan Hayward <alan.hayward@arm.com>
10319
10320 * common/tdesc.c (tdesc_feature::accept): Move to here.
10321 (tdesc_feature::operator==): Likewise.
10322 (tdesc_create_reg): Likewise.
10323 * common/tdesc.h (tdesc_type_kind): Likewise.
10324 (struct tdesc_type): Likewise.
10325 (struct tdesc_feature): Likewise.
10326 * regformats/regdat.sh: Create a feature.
10327 * target-descriptions.c (tdesc_type_kind): Move from here.
10328 (tdesc_type): Likewise.
10329 (tdesc_type_up): Likewise.
10330 (tdesc_feature): Likewise.
10331 (tdesc_create_reg): Likewise.
10332
ea3e7d71
AH
103332018-04-18 Alan Hayward <alan.hayward@arm.com>
10334
10335 * Makefile.in: Add arch/tdesc.c
10336 * common/tdesc.c: New file.
10337 * common/tdesc.h (tdesc_element_visitor): Move to here.
10338 (tdesc_element): Likewise.
10339 (tdesc_reg): Likewise.
10340 (tdesc_reg_up): Likewise.
10341 * regformats/regdef.h (reg): Add offset to constructors.
10342 * target-descriptions.c (tdesc_element_visitor): Move from here.
10343 (tdesc_element): Likewise.
10344 (tdesc_reg): Likewise.
10345 (tdesc_reg_up): Likewise.
10346
bedda9ac
TT
103472018-04-17 Tom Tromey <tom@tromey.com>
10348
10349 * dwarf2read.c (quirk_rust_enum): Conditionally drop the
10350 discriminant field.
10351
a037790e
TT
103522018-04-17 Tom Tromey <tom@tromey.com>
10353
10354 * dwarf2read.c (quirk_rust_enum): Handle unions correctly.
10355
c7dcbf88
AA
103562018-04-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
10357
10358 * symtab.c (print_symbol_info): Skip printing filename and line
10359 number when `last' is NULL.
10360 (symtab_symbol_info): Use empty string instead of NULL for first
10361 invocation of print_symbol_info.
10362 (rbreak_command): Pass NULL to `last' parameter of
10363 print_symbol_info.
10364
07d28c77
SM
103652018-04-16 Simon Marchi <simon.marchi@ericsson.com>
10366
10367 * linux-tdep.c (linux_spu_make_corefile_notes): Return note_data
10368 instead of nullptr.
10369
8a3de5e1
PA
103702018-04-16 Pedro Alves <palves@redhat.com>
10371
10372 * MAINTAINERS (sh): Remove.
10373 * Makefile.in (ALL_TARGET_OBS): Remove sh64-tdep.o.
10374 (HFILES_NO_SRCDIR): Remove sh64-tdep.h.
10375 (ALLDEPFILES): Remove sh64-tdep.c.
10376 * NEWS: Mentions that support for SH-5/SH64 is removed.
10377 * configure.tgt (sh*-*-linux*): Remove reference to sh64-tdep.o.
10378 (sh*-*-openbsd*): Ditto.
10379 (sh64-*-elf*): Remove.
10380 (sh*): Remove.
10381 * regcache.c (cooked_write_test): Remove bfd_mach_sh5 case.
10382 * sh-linux-tdep.c: Remove reference to bfd_mach_sh5.
10383 * sh-tdep.c: No longer include "sh64-tdep.h".
10384 (sh_gdbarch_init): Remove reference to bfd_mach_sh5.
10385 * sh64-tdep.c, sh64-tdep.h: Remove files.
10386
a2a79012
PA
103872018-04-16 Pedro Alves <palves@redhat.com>
10388
10389 * MAINTAINERS: Remove m88k.
10390 * Makefile.in (ALL_TARGET_OBS): Remove m88k-tdep.o.
10391 (HFILES_NO_SRCDIR): Remove m88k-tdep.h.
10392 (ALLDEPFILES): Remove m88k-bsd-nat.c and m88k-tdep.c.
10393 * NEWS: Mention that support for m88k was removed.
10394 * configure.host (m88*-*-*): Remove support.
10395 * configure.nat (m88k-*-*): Remove support.
10396 * configure.tgt (m88*-*-openbsd*): Remove.
10397 * m88k-bsd-nat.c, m88k-tdep.c, m88k-tdep.h: Delete.
10398
eda4efb1
SM
103992018-04-15 Simon Marchi <simon.marchi@polymtl.ca>
10400
10401 * configure.tgt (x86_tobjs): New variable.
10402 (amd64_tobjs, i386_tobjs): Use it.
10403
b744723f
AA
104042018-04-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10405
10406 * symtab.c (print_symbol_info): Precede the symbol definition by
10407 the line number when available.
10408 * NEWS: Advertise this enhancement.
10409
4a4495d6
MM
104102018-04-13 Markus Metzger <markus.t.metzger@intel.com>
10411
10412 * NEWS (New options): announce set/show record btrace cpu.
10413 * btrace.c: Include record-btrace.h.
10414 (btrace_compute_ftrace_pt): Skip enabling errata workarounds if
10415 the vendor is unknown.
10416 (btrace_compute_ftrace_1): Add cpu parameter. Update callers.
10417 Maybe overwrite the btrace configuration's cpu.
10418 (btrace_compute_ftrace): Add cpu parameter. Update callers.
10419 (btrace_fetch): Add cpu parameter. Update callers.
10420 (btrace_maint_update_pt_packets): Call record_btrace_get_cpu.
10421 Maybe overwrite the btrace configuration's cpu. Skip enabling
10422 errata workarounds if the vendor is unknown.
10423 * python/py-record-btrace.c: Include record-btrace.h.
10424 (recpy_bt_begin, recpy_bt_end, recpy_bt_instruction_history)
10425 (recpy_bt_function_call_history): Call record_btrace_get_cpu.
10426 * record-btrace.c (record_btrace_cpu_state_kind): New.
10427 (record_btrace_cpu): New.
10428 (set_record_btrace_cpu_cmdlist): New.
10429 (record_btrace_get_cpu): New.
10430 (require_btrace_thread, record_btrace_info)
10431 (record_btrace_resume_thread): Call record_btrace_get_cpu.
10432 (cmd_set_record_btrace_cpu_none): New.
10433 (cmd_set_record_btrace_cpu_auto): New.
10434 (cmd_set_record_btrace_cpu): New.
10435 (cmd_show_record_btrace_cpu): New.
10436 (_initialize_record_btrace): Initialize set/show record btrace cpu
10437 commands.
10438 * record-btrace.h (record_btrace_get_cpu): New.
10439
69f90c75
MM
104402018-04-13 Markus Metzger <markus.t.metzger@intel.com>
10441
10442 * record.c (set_record_command): Fix typo in message.
10443
b85310e1
MM
104442018-04-13 Markus Metzger <markus.t.metzger@intel.com>
10445
10446 * record-btrace.c (cmd_set_record_btrace): Print sub-commands.
10447
1d509aa6
MM
104482018-04-13 Markus Metzger <markus.t.metzger@intel.com>
10449
10450 * infrun.c (process_event_stop_test): Call
10451 gdbarch_in_indirect_branch_thunk.
10452 * gdbarch.sh (in_indirect_branch_thunk): New.
10453 * gdbarch.c: Regenerated.
10454 * gdbarch.h: Regenerated.
10455 * x86-tdep.h: New.
10456 * x86-tdep.c: New.
10457 * Makefile.in (ALL_TARGET_OBS): Add x86-tdep.o.
10458 (HFILES_NO_SRCDIR): Add x86-tdep.h.
10459 (ALLDEPFILES): Add x86-tdep.c.
10460 * arch-utils.h (default_in_indirect_branch_thunk): New.
10461 * arch-utils.c (default_in_indirect_branch_thunk): New.
10462 * i386-tdep: Include x86-tdep.h.
10463 (i386_in_indirect_branch_thunk): New.
10464 (i386_elf_init_abi): Set in_indirect_branch_thunk gdbarch
10465 function.
10466 * amd64-tdep: Include x86-tdep.h.
10467 (amd64_in_indirect_branch_thunk): New.
10468 (amd64_init_abi): Set in_indirect_branch_thunk gdbarch function.
10469
b4be9bfd
JK
104702018-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10471
10472 PR gdb/23053
10473 * dwarf-index-write.c (data_buf::grow) (write_one_signatured_type)
10474 (recursively_write_psymbols) (debug_names::recursively_write_psymbols)
10475 (debug_names::write_one_signatured_type): Fix -D_GLIBCXX_DEBUG
10476 regression.
10477
53d7df28
TT
104782018-04-12 Tom Tromey <tom@tromey.com>
10479
10480 * rust-lang.c (rust_print_struct_def): Remove univariant code.
10481 (rust_evaluate_subexp): Likewise.
10482
70b33f19
PA
104832018-04-12 Pedro Alves <palves@redhat.com>
10484
10485 * procfs.c (procfs_detach): Make forward declaration's prototype
10486 match definition's protototype.
10487 (proc_get_LDT_entry): Remove stale do_cleanups call.
10488
436411b1
PA
104892018-04-12 Pedro Alves <palves@redhat.com>
10490
10491 * target.h (target_ops::to_has_exited): Delete.
10492 (target_has_exited): Delete.
10493 * target-delegates.c: Regenerate.
10494
20db9c52
PA
104952018-04-11 Pedro Alves <palves@redhat.com>
10496
10497 * target.c (fileio_fh_t::t): Add comment.
10498 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
10499 (target_fileio_close): Handle a NULL target.
10500 (invalidate_fileio_fh): New.
10501 (target_close): Call it.
10502 * remote.c (remote_hostio_send_command): No longer check whether
10503 remote_desc is open.
10504
5ff79300
PA
105052018-04-11 Pedro Alves <palves@redhat.com>
10506
10507 * target.c (fileio_fh_t): Make it a named struct instead of a
10508 typedef.
10509 (fileio_fh_t::is_closed): New method.
10510 (DEF_VEC_O (fileio_fh_t)): Remove.
10511 (fileio_fhandles): Now a std::vector.
10512 (is_closed_fileio_fh): Delete.
10513 (acquire_fileio_fd): Adjust. Rename parameters.
10514 (release_fileio_fd): Adjust.
10515 (fileio_fd_to_fh): Reimplement as a function instead of a macro.
10516 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
10517 (target_fileio_close): Adjust.
10518
6e22e10d
SM
105192018-04-10 Simon Marchi <simon.marchi@ericsson.com>
10520
10521 * auto-load.c (auto_load_safe_path_vec_update): Iterate by
10522 index.
10523
731f534f
PA
105242018-04-10 Pedro Alves <palves@redhat.com>
10525
10526 * gdbthread.h (finish_thread_state_cleanup): Delete declaration.
10527 (scoped_finish_thread_state): New class.
10528 * infcmd.c (run_command_1): Use it instead of finish_thread_state
10529 cleanup.
10530 * infrun.c (proceed, prepare_for_detach, wait_for_inferior)
10531 (fetch_inferior_event, normal_stop): Likewise.
10532 * thread.c (finish_thread_state_cleanup): Delete.
10533
d5f4488f
SM
105342018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10535 Pedro Alves <palves@redhat.com>
10536
10537 * value.c: Include "selftest.h" and "common/array-view.h".
10538 (struct range) <operator ==>: New.
10539 (test_ranges_contain): New.
10540 (check_ranges_vector): New.
10541 (test_insert_into_bit_range_vector): New.
10542 (_initialize_values): Register selftests.
10543 * common/array-view.h (operator==, operator!=): New.
10544
b24531ed
SM
105452018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10546
10547 * common/gdb_vecs.h (unordered_remove): Add overload that takes
10548 an iterator.
10549 * inline-frame.c: Include <algorithm>.
10550 (struct inline_state): Add constructor.
10551 (inline_state_s): Remove.
10552 (DEF_VEC_O(inline_state_s)): Remove.
10553 (inline_states): Change type to std::vector.
10554 (find_inline_frame_state): Adjust to std::vector.
10555 (allocate_inline_frame_state): Remove.
10556 (clear_inline_frame_state): Adjust to std::vector.
10557 (skip_inline_frames): Adjust to std::vector.
10558
c252925c
SM
105592018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10560
10561 * tracepoint.h (struct trace_state_variable): Add constructor.
10562 <name>: Change type to std::string.
10563 * tracepoint.c (tsv_s): Remove.
10564 (DEF_VEC_O(tsv_s)): Remove.
10565 (tvariables): Change to std::vector.
10566 (create_trace_state_variable): Adjust to std::vector.
10567 (find_trace_state_variable): Likewise.
10568 (find_trace_state_variable_by_number): Likewise.
10569 (delete_trace_state_variable): Likewise.
10570 (trace_variable_command): Adjust to std::string.
10571 (delete_trace_variable_command): Likewise.
10572 (tvariables_info_1): Adjust to std::vector.
10573 (save_trace_state_variables): Likewise.
10574 (start_tracing): Likewise.
10575 (merge_uploaded_trace_state_variables): Adjust to std::vector
10576 and std::string.
10577 * target.h (struct target_ops)
10578 <to_download_trace_state_variable>: Pass reference to
10579 trace_state_variable.
10580 * target-debug.h (target_debug_print_const_trace_state_variable_r): New.
10581 * target-delegates.c: Re-generate.
10582 * mi/mi-interp.c (mi_tsv_created): Adjust to std::string.
10583 (mi_tsv_deleted): Likewise.
10584 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
10585 * remote.c (remote_download_trace_state_variable): Change
10586 pointer to reference and adjust.
10587 * make-target-delegates (parse_argtypes): Handle references.
10588 (write_function_header): Likewise.
10589 (munge_type): Likewise.
10590
c9638d26
SM
105912018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10592
10593 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10594 string_view-selftests.c.
10595 * unittests/basic_string_view/capacity/1.cc: Adapt to GDB
10596 testsuite.
10597 * unittests/basic_string_view/cons/char/1.cc: Likewise.
10598 * unittests/basic_string_view/cons/char/2.cc: Likewise.
10599 * unittests/basic_string_view/cons/char/3.cc: Likewise.
10600 * unittests/basic_string_view/element_access/char/1.cc:
10601 Likewise.
10602 * unittests/basic_string_view/element_access/char/empty.cc:
10603 Likewise.
10604 * unittests/basic_string_view/element_access/char/front_back.cc:
10605 Likewise.
10606 * unittests/basic_string_view/inserters/char/2.cc: Likewise.
10607 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc:
10608 Likewise.
10609 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc:
10610 Likewise.
10611 * unittests/basic_string_view/modifiers/swap/char/1.cc:
10612 Likewise.
10613 * unittests/basic_string_view/operations/compare/char/1.cc:
10614 Likewise.
10615 * unittests/basic_string_view/operations/compare/char/13650.cc:
10616 Likewise.
10617 * unittests/basic_string_view/operations/copy/char/1.cc:
10618 Likewise.
10619 * unittests/basic_string_view/operations/data/char/1.cc:
10620 Likewise.
10621 * unittests/basic_string_view/operations/find/char/1.cc:
10622 Likewise.
10623 * unittests/basic_string_view/operations/find/char/2.cc:
10624 Likewise.
10625 * unittests/basic_string_view/operations/find/char/3.cc:
10626 Likewise.
10627 * unittests/basic_string_view/operations/find/char/4.cc:
10628 Likewise.
10629 * unittests/basic_string_view/operations/rfind/char/1.cc:
10630 Likewise.
10631 * unittests/basic_string_view/operations/rfind/char/2.cc:
10632 Likewise.
10633 * unittests/basic_string_view/operations/rfind/char/3.cc:
10634 Likewise.
10635 * unittests/basic_string_view/operations/substr/char/1.cc:
10636 Likewise.
10637 * unittests/basic_string_view/operators/char/2.cc: Likewise.
10638 * unittests/string_view-selftests.c: New file.
10639
fdc11678
SM
106402018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10641
10642 * unittests/basic_string_view/capacity/1.cc: New file.
10643 * unittests/basic_string_view/capacity/empty_neg.cc: New file.
10644 * unittests/basic_string_view/cons/char/1.cc: New file.
10645 * unittests/basic_string_view/cons/char/2.cc: New file.
10646 * unittests/basic_string_view/cons/char/3.cc: New file.
10647 * unittests/basic_string_view/cons/wchar_t/1.cc: New file.
10648 * unittests/basic_string_view/cons/wchar_t/2.cc: New file.
10649 * unittests/basic_string_view/cons/wchar_t/3.cc: New file.
10650 * unittests/basic_string_view/element_access/char/1.cc: New file.
10651 * unittests/basic_string_view/element_access/char/2.cc: New file.
10652 * unittests/basic_string_view/element_access/char/empty.cc: New file.
10653 * unittests/basic_string_view/element_access/char/front_back.cc: New file.
10654 * unittests/basic_string_view/element_access/wchar_t/1.cc: New file.
10655 * unittests/basic_string_view/element_access/wchar_t/2.cc: New file.
10656 * unittests/basic_string_view/element_access/wchar_t/empty.cc: New file.
10657 * unittests/basic_string_view/element_access/wchar_t/front_back.cc: New file.
10658 * unittests/basic_string_view/include.cc: New file.
10659 * unittests/basic_string_view/inserters/char/1.cc: New file.
10660 * unittests/basic_string_view/inserters/char/2.cc: New file.
10661 * unittests/basic_string_view/inserters/char/3.cc: New file.
10662 * unittests/basic_string_view/inserters/pod/10081-out.cc: New file.
10663 * unittests/basic_string_view/inserters/wchar_t/1.cc: New file.
10664 * unittests/basic_string_view/inserters/wchar_t/2.cc: New file.
10665 * unittests/basic_string_view/inserters/wchar_t/3.cc: New file.
10666 * unittests/basic_string_view/literals/types.cc: New file.
10667 * unittests/basic_string_view/literals/values.cc: New file.
10668 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc: New file.
10669 * unittests/basic_string_view/modifiers/remove_prefix/wchar_t/1.cc: New file.
10670 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc: New file.
10671 * unittests/basic_string_view/modifiers/remove_suffix/wchar_t/1.cc: New file.
10672 * unittests/basic_string_view/modifiers/swap/char/1.cc: New file.
10673 * unittests/basic_string_view/modifiers/swap/wchar_t/1.cc: New file.
10674 * unittests/basic_string_view/operations/compare/char/1.cc: New file.
10675 * unittests/basic_string_view/operations/compare/char/13650.cc: New file.
10676 * unittests/basic_string_view/operations/compare/char/2.cc: New file.
10677 * unittests/basic_string_view/operations/compare/char/70483.cc: New file.
10678 * unittests/basic_string_view/operations/compare/wchar_t/1.cc: New file.
10679 * unittests/basic_string_view/operations/compare/wchar_t/13650.cc: New file.
10680 * unittests/basic_string_view/operations/compare/wchar_t/2.cc: New file.
10681 * unittests/basic_string_view/operations/copy/char/1.cc: New file.
10682 * unittests/basic_string_view/operations/copy/wchar_t/1.cc: New file.
10683 * unittests/basic_string_view/operations/data/char/1.cc: New file.
10684 * unittests/basic_string_view/operations/data/wchar_t/1.cc: New file.
10685 * unittests/basic_string_view/operations/find/char/1.cc: New file.
10686 * unittests/basic_string_view/operations/find/char/2.cc: New file.
10687 * unittests/basic_string_view/operations/find/char/3.cc: New file.
10688 * unittests/basic_string_view/operations/find/char/4.cc: New file.
10689 * unittests/basic_string_view/operations/find/wchar_t/1.cc: New file.
10690 * unittests/basic_string_view/operations/find/wchar_t/2.cc: New file.
10691 * unittests/basic_string_view/operations/find/wchar_t/3.cc: New file.
10692 * unittests/basic_string_view/operations/find/wchar_t/4.cc: New file.
10693 * unittests/basic_string_view/operations/rfind/char/1.cc: New file.
10694 * unittests/basic_string_view/operations/rfind/char/2.cc: New file.
10695 * unittests/basic_string_view/operations/rfind/char/3.cc: New file.
10696 * unittests/basic_string_view/operations/rfind/wchar_t/1.cc: New file.
10697 * unittests/basic_string_view/operations/rfind/wchar_t/2.cc: New file.
10698 * unittests/basic_string_view/operations/rfind/wchar_t/3.cc: New file.
10699 * unittests/basic_string_view/operations/string_conversion/1.cc: New file.
10700 * unittests/basic_string_view/operations/substr/char/1.cc: New file.
10701 * unittests/basic_string_view/operations/substr/wchar_t/1.cc: New file.
10702 * unittests/basic_string_view/operators/char/2.cc: New file.
10703 * unittests/basic_string_view/operators/wchar_t/2.cc: New file.
10704 * unittests/basic_string_view/range_access/char/1.cc: New file.
10705 * unittests/basic_string_view/range_access/wchar_t/1.cc: New file.
10706 * unittests/basic_string_view/requirements/explicit_instantiation/1.cc: New file.
10707 * unittests/basic_string_view/requirements/explicit_instantiation/char/1.cc: New file.
10708 * unittests/basic_string_view/requirements/explicit_instantiation/char16_t/1.cc: New file.
10709 * unittests/basic_string_view/requirements/explicit_instantiation/char32_t/1.cc: New file.
10710 * unittests/basic_string_view/requirements/explicit_instantiation/wchar_t/1.cc: New file.
10711 * unittests/basic_string_view/requirements/typedefs.cc: New file.
10712 * unittests/basic_string_view/typedefs.cc: New file.
10713 * unittests/basic_string_view/types/1.cc: New file.
10714
8345c4a2
SM
107152018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10716
10717 * common/gdb_string_view.h: Remove libstdc++ implementation
10718 details, adjust to gdb reality.
10719 * common/gdb_string_view.tcc: Likewise.
10720 * cli/cli-script.c (struct string_view): Remove.
10721 (user_args) <m_args>: Change element type to gdb::string_view.
10722 (user_args::insert_args): Adjust.
10723
7adcdf08
SM
107242018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10725
10726 * common/gdb_string_view.h: New file.
10727 * common/gdb_string_view.tcc: New file.
10728
41260ac2
SM
107292018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10730
10731 * ax_cxx_compile_stdcxx.m4: Sync with upstream.
10732 * configure: Re-generate.
10733
0bee6dd4
PA
107342018-04-09 Pedro Alves <palves@redhat.com>
10735
10736 * gdbarch.sh: Include "observable.h" instead of "observer.h".
10737 (set_target_gdbarch): Call
10738 gdb::observers::architecture_changed.notify instead of
10739 observer_notify_architecture_changed.
10740
6f14adc5
SM
107412018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10742
10743 * tracepoint.c (struct current_traceframe_cleanup): Remove.
10744 (do_restore_current_traceframe_cleanup): Remove.
10745 (restore_current_traceframe_cleanup_dtor): Remove.
10746 (make_cleanup_restore_current_traceframe): Remove.
10747 (scoped_restore_current_traceframe::scoped_restore_current_traceframe):
10748 New.
10749 * tracepoint.h (struct scoped_restore_current_traceframe): New.
10750 * infrun.c (fetch_inferior_event): Use
10751 scoped_restore_current_traceframe.
10752
b2bdb8cf
SM
107532018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10754
10755 * dwarf2read.h (struct dwarf2_per_objfile) <n_type_units>:
10756 Remove.
10757 <n_allocated_type_units>: Remove.
10758 <all_type_units>: Change to std::vector.
10759 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
10760 to std::vector change.
10761 (dwarf2_per_objfile::get_cutu): Likewise.
10762 (dwarf2_per_objfile::get_tu): Likewise.
10763 (create_signatured_type_table_from_index): Likewise.
10764 (create_signatured_type_table_from_debug_names): Likewise.
10765 (dw2_symtab_iter_next): Likewise.
10766 (dw2_print_stats): Likewise.
10767 (dw2_expand_all_symtabs): Likewise.
10768 (dw2_expand_marked_cus): Likewise.
10769 (dw2_debug_names_iterator::next): Likewise.
10770 (dwarf2_initialize_objfile): Likewise.
10771 (add_signatured_type_cu_to_table): Likewise.
10772 (create_all_type_units): Likewise.
10773 (add_type_unit): Likewise.
10774 (struct tu_abbrev_offset): Add constructor.
10775 (build_type_psymtabs_1): Adjust to std::vector change.
10776 (print_tu_stats): Likewise.
10777 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
10778 (write_debug_names): Likewise.
10779
b76e467d
SM
107802018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10781
10782 * dwarf2read.h (struct dwarf2_per_objfile) <all_comp_units>: Likewise.
10783 Make an std::vector.
10784 <n_comp_units>: Remove.
10785 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
10786 to std::vector change.
10787 (dwarf2_per_objfile::get_cutu): Likewise.
10788 (dwarf2_per_objfile::get_cu): Likewise.
10789 (create_cus_from_index): Likewise.
10790 (create_addrmap_from_index): Likewise.
10791 (create_addrmap_from_aranges): Likewise.
10792 (dwarf2_read_index): Likewise.
10793 (dw2_find_last_source_symtab): Likewise.
10794 (dw2_map_symtabs_matching_filename): Likewise.
10795 (dw2_symtab_iter_next): Likewise.
10796 (dw2_print_stats): Likewise.
10797 (dw2_expand_all_symtabs): Likewise.
10798 (dw2_expand_symtabs_with_fullname): Likewise.
10799 (dw2_expand_marked_cus): Likewise.
10800 (dw2_map_symbol_filenames): Likewise.
10801 (create_cus_from_debug_names): Likewise.
10802 (dwarf2_read_debug_names): Likewise.
10803 (dw2_debug_names_iterator::next): Likewise.
10804 (dwarf2_initialize_objfile): Likewise.
10805 (set_partial_user): Likewise.
10806 (dwarf2_build_psymtabs_hard): Likewise.
10807 (read_comp_units_from_section): Remove arguments, adjust to
10808 std::vector change.
10809 (create_all_comp_units): Adjust to std::vector and
10810 read_comp_units_from_section changes.
10811 (dwarf2_find_containing_comp_unit): Adjust to std::vector
10812 change.
10813 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
10814 (psyms_seen_size): Likewise.
10815 (write_gdbindex): Likewise.
10816 (write_debug_names): Likewise.
10817
12359b5e
SM
108182018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10819
10820 * dwarf2read.c (create_cus_from_index_list): Replace objfile arg
10821 with dwarf2_per_objfile.
10822 (create_cus_from_index): Likewise.
10823 (create_signatured_type_table_from_index): Likewise.
10824 (dwarf2_read_index): Likewise.
10825 (dwarf2_initialize_objfile): Likewise.
10826 (dwarf2_fetch_die_loc_sect_off): Get dwarf2_per_objfile from
10827 per_cu rather than get_dwarf2_per_objfile.
10828
ff4c9fec
SM
108292018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10830
10831 * dwarf2read.h (struct signatured_type): Forward declare.
10832 (struct dwarf2_per_objfile) <get_cutu, get_cu, get_tu>:
10833 New methods.
10834 * dwarf2read.c (dwarf2_per_objfile::get_cutu): Rename from...
10835 (dw2_get_cutu): ...this.
10836 (dwarf2_per_objfile::get_cu): Rename from...
10837 (dw2_get_cu): ...this.
10838 (dwarf2_per_objfile::get_tu): New.
10839 (create_addrmap_from_index): Adjust.
10840 (create_addrmap_from_aranges): Adjust.
10841 (dw2_find_last_source_symtab): Adjust.
10842 (dw2_map_symtabs_matching_filename): Adjust.
10843 (dw2_symtab_iter_next): Adjust.
10844 (dw2_print_stats): Adjust.
10845 (dw2_expand_all_symtabs): Adjust.
10846 (dw2_expand_symtabs_with_fullname): Adjust.
10847 (dw2_expand_marked_cus): Adjust.
10848 (dw_expand_symtabs_matching_file_matcher): Adjust.
10849 (dw2_map_symbol_filenames): Adjust.
10850 (dw2_debug_names_iterator::next): Adjust.
10851 (dwarf2_initialize_objfile): Adjust.
10852 (set_partial_user): Adjust.
10853 (dwarf2_build_psymtabs_hard): Adjust.
10854
5ca3fcb6
SM
108552018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10856
10857 * dwarf2read.c (create_signatured_type_table_from_debug_names):
10858 Remove unused variables.
10859 (dw2_map_symtabs_matching_filename): Likewise.
10860 (dwarf2_record_block_ranges): Likewise.
10861 (dwarf2_read_addr_index): Likewise.
10862 (follow_die_offset): Likewise.
10863
b2e586e8
SM
108642018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10865
10866 * progspace.c (clone_program_space): Pass SYMFILE_DEFER_BP_RESET
10867 to symbol_file_add_main.
10868
7c4e78cf
SM
108692018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10870
10871 PR mi/22299
10872 * mi/mi-console.c (do_fputc_async_safe): New.
10873 (mi_console_file::write_async_safe): New.
10874 (mi_console_file::flush): Adjust calls to fputstrn_unfiltered.
10875 * mi/mi-console.h (class mi_console_file) <write_async_safe>:
10876 New.
10877 * ui-file.c (ui_file::putstrn): Adjust call to
10878 fputstrn_unfiltered.
10879 * utils.c (printchar): Replace do_fputs and do_fprintf
10880 parameters by do_fputc.
10881 (fputstr_filtered): Adjust call to printchar.
10882 (fputstr_unfiltered): Likewise.
10883 (fputstrn_filtered): Likewise.
10884 (fputstrn_unfiltered): Add do_fputc parameter, pass to
10885 printchar.
10886 * utils.h (do_fputc_ftype): New typedef.
10887 (fputstrn_unfiltered): Add do_fputc parameter.
10888
5dc026d3
SM
108892018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10890
10891 * regformats/i386/i386-avx.dat: Remove.
10892
c912f608
SM
108932018-04-07 Simon Marchi <simon.marchi@ericsson.com>
10894
10895 PR gdb/22979
10896 * amd64-tdep.c (amd64_none_init_abi): New function.
10897 (amd64_x32_none_init_abi): New function.
10898 (_initialize_amd64_tdep): Register handlers for x86-64 and
10899 x64_32 with GDB_OSABI_NONE.
10900 * osabi.c (gdbarch_init_osabi): Allow running handlers for the
10901 GDB_OSABI_NONE osabi.
10902
26540402
SM
109032018-04-07 Simon Marchi <simon.marchi@ericsson.com>
10904
10905 PR gdb/22980
10906 * defs.h (enum gdb_osabi): Remove GDB_OSABI_UNINITIALIZED, add
10907 GDB_OSABI_NONE.
10908 * arch-utils.c (gdbarch_info_init): Don't set info->osabi.
10909 * osabi.c (gdb_osabi_names): Add "unknown" entry.
10910
9018be22
SM
109112018-04-07 Simon Marchi <simon.marchi@ericsson.com>
10912
10913 * common/byte-vector.h (char_vector): New type.
10914 * target.h (target_read_alloc): Return
10915 gdb::optional<byte_vector>.
10916 (target_read_stralloc): Return gdb::optional<char_vector>.
10917 (target_get_osdata): Return gdb::optional<char_vector>.
10918 * target.c (target_read_alloc_1): Templatize. Replacement
10919 manual memory management with vector.
10920 (target_read_alloc): Change return type, adjust.
10921 (target_read_stralloc): Change return type, adjust.
10922 (target_get_osdata): Change return type, adjust.
10923 * auxv.c (struct auxv_info) <length>: Remove.
10924 <data>: Change type to gdb::optional<byte_vector>.
10925 (auxv_inferior_data_cleanup): Free auxv_info with delete.
10926 (get_auxv_inferior_data): Allocate auxv_info with new, adjust.
10927 (target_auxv_search): Adjust.
10928 (fprint_target_auxv): Adjust.
10929 * avr-tdep.c (avr_io_reg_read_command): Adjust.
10930 * linux-tdep.c (linux_spu_make_corefile_notes): Adjust.
10931 (linux_make_corefile_notes): Adjust.
10932 * osdata.c (get_osdata): Adjust.
10933 * remote.c (remote_get_threads_with_qxfer): Adjust.
10934 (remote_memory_map): Adjust.
10935 (remote_traceframe_info): Adjust.
10936 (btrace_read_config): Adjust.
10937 (remote_read_btrace): Adjust.
10938 (remote_pid_to_exec_file): Adjust.
10939 * solib-aix.c (solib_aix_get_library_list): Adjust.
10940 * solib-dsbt.c (decode_loadmap): Don't free buf.
10941 (dsbt_get_initial_loadmaps): Adjust.
10942 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Adjust.
10943 * solib-target.c (solib_target_current_sos): Adjust.
10944 * tracepoint.c (sdata_make_value): Adjust.
10945 * xml-support.c (xinclude_start_include): Adjust.
10946 (xml_fetch_content_from_file): Adjust.
10947 * xml-support.h (xml_fetch_another): Change return type.
10948 (xml_fetch_content_from_file): Change return type.
10949 * xml-syscall.c (xml_init_syscalls_info): Adjust.
10950 * xml-tdesc.c (file_read_description_xml): Adjust.
10951 (fetch_available_features_from_target): Change return type.
10952 (target_fetch_description_xml): Adjust.
10953 (target_read_description_xml): Adjust.
10954
14c88955
TT
109552018-04-06 Tom Tromey <tom@tromey.com>
10956
10957 * value.c (~value): Update.
10958 (struct value) <contents>: Now unique_xmalloc_ptr.
10959 (value_contents_bits_eq, allocate_value_contents)
10960 (value_contents_raw, value_contents_all_raw)
10961 (value_contents_for_printing, value_contents_for_printing_const)
10962 (set_value_enclosing_type): Update.
10963
0c7e6dd8
TT
109642018-04-06 Tom Tromey <tom@tromey.com>
10965
10966 * value.c (range_s): Remove typedef, VEC.
10967 (struct range): Add operator<.
10968 (range_lessthan): Remove.
10969 (ranges_contain): Change type.
10970 (~value): Update.
10971 (struct value) <unavailable, optimized_out>: Now std::vector.
10972 (value_entirely_available)
10973 (value_entirely_covered_by_range_vector)
10974 (value_entirely_unavailable, value_entirely_optimized_out):
10975 Update.
10976 (insert_into_bit_range_vector): Change argument type.
10977 (find_first_range_overlap): Likewise.
10978 (struct ranges_and_idx, value_contents_bits_eq)
10979 (require_not_optimized_out, require_available): Update.
10980 (ranges_copy_adjusted): Change argument types.
10981 (value_optimized_out, value_copy, value_fetch_lazy): Update.
10982
2c8331b9
TT
109832018-04-06 Tom Tromey <tom@tromey.com>
10984
10985 * value.c (~value): Update.
10986 (struct value) <parent>: Now a value_ref_ptr.
10987 (value_parent, set_value_parent, value_address, value_copy):
10988 Update.
10989
466ce3ae
TT
109902018-04-06 Tom Tromey <tom@tromey.com>
10991
10992 * value.c (struct value): Add constructor, destructor, and member
10993 initializers.
10994 (allocate_value_lazy, value_decref): Update.
10995
062d818d
TT
109962018-04-06 Tom Tromey <tom@tromey.com>
10997
10998 * value.c (struct value) <released, next>: Remove.
10999 (all_values): Now a std::vector.
11000 (allocate_value_lazy): Update.
11001 (value_next): Remove.
11002 (value_mark, value_free_to_mark, release_value)
11003 (value_release_to_mark): Update.
11004
a6535de1
TT
110052018-04-06 Tom Tromey <tom@tromey.com>
11006
11007 * value.h (fetch_subexp_value, value_release_to_mark): Update.
11008 (free_value_chain): Remove.
11009 * value.c (free_value_chain): Remove.
11010 (value_release_to_mark): Return a std::vector.
11011 * ppc-linux-nat.c (num_memory_accesses): Change "chain" to a
11012 std::vector.
11013 (check_condition): Update.
11014 * eval.c (fetch_subexp_value): Change "val_chain" to a
11015 std::vector.
11016 * breakpoint.c (update_watchpoint): Update.
11017 (can_use_hardware_watchpoint): Change "vals" to a std::vector.
11018
b5621201
TT
110192018-04-06 Tom Tromey <tom@tromey.com>
11020
11021 * value.h (free_all_values): Remove.
11022 * value.c (free_all_values): Remove.
11023
4d0266a0
TT
110242018-04-06 Tom Tromey <tom@tromey.com>
11025
11026 * value.c (VALUE_HISTORY_CHUNK, struct value_history_chunk)
11027 (value_history_chain, value_history_count): Remove.
11028 (value_history): New global.
11029 (record_latest_value, access_value_history, show_values)
11030 (preserve_values): Update.
11031
b4d61099
TT
110322018-04-06 Tom Tromey <tom@tromey.com>
11033
11034 * varobj.h (struct varobj) <value>: Now a value_ref_ptr.
11035 * varobj.c (varobj_set_display_format, varobj_set_value)
11036 (install_default_visualizer, construct_visualizer)
11037 (install_new_value, ~varobj, varobj_get_value_type)
11038 (my_value_of_variable, varobj_editable_p): Update.
11039 * c-varobj.c (c_describe_child, c_value_of_variable)
11040 (cplus_number_of_children, cplus_describe_child): Update.
11041 * ada-varobj.c (ada_number_of_children, ada_name_of_child)
11042 (ada_path_expr_of_child, ada_value_of_child, ada_type_of_child)
11043 (ada_value_of_variable, ada_value_is_changeable_p): Update.
11044
9b558729
TT
110452018-04-06 Tom Tromey <tom@tromey.com>
11046
11047 * printcmd.c (last_examine_address): Change type to
11048 value_ref_ptr.
11049 (do_examine, x_command): Update.
11050
850645cf
TT
110512018-04-06 Tom Tromey <tom@tromey.com>
11052
11053 * value.c (release_value): Update.
11054 * breakpoint.h (struct watchpoint) <val>: Now a value_ref_ptr.
11055 (struct bpstats) <val>: Now a value_ref_ptr.
11056 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
11057 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
11058 (~watchpoint, print_it_watchpoint, watch_command_1)
11059 (invalidate_bp_value_on_memory_change): Update.
11060
22bc8444
TT
110612018-04-06 Tom Tromey <tom@tromey.com>
11062
11063 * varobj.c (varobj_clear_saved_item)
11064 (update_dynamic_varobj_children, install_new_value, ~varobj):
11065 Update.
11066 * value.h (value_incref): Move declaration earlier.
11067 (value_decref): Rename from value_free.
11068 (struct value_ref_policy): New.
11069 (value_ref_ptr): New typedef.
11070 (struct value_deleter): Remove.
11071 (gdb_value_up): Remove typedef.
11072 (release_value): Change return type.
11073 (release_value_or_incref): Remove.
11074 * value.c (set_value_parent): Update.
11075 (value_incref): Change return type.
11076 (value_decref): Rename from value_free.
11077 (value_free_to_mark, free_all_values, free_value_chain): Update.
11078 (release_value): Return value_ref_ptr.
11079 (release_value_or_incref): Remove.
11080 (record_latest_value, set_internalvar, clear_internalvar):
11081 Update.
11082 * stack.c (info_frame_command): Don't call value_free.
11083 * python/py-value.c (valpy_dealloc, valpy_new)
11084 (value_to_value_object): Update.
11085 * printcmd.c (do_examine): Update.
11086 * opencl-lang.c (lval_func_free_closure): Update.
11087 * mi/mi-main.c (register_changed_p): Don't call value_free.
11088 * mep-tdep.c (mep_frame_prev_register): Don't call value_free.
11089 * m88k-tdep.c (m88k_frame_prev_register): Don't call value_free.
11090 * m68hc11-tdep.c (m68hc11_frame_prev_register): Don't call
11091 value_free.
11092 * guile/scm-value.c (vlscm_free_value_smob)
11093 (vlscm_scm_from_value): Update.
11094 * frame.c (frame_register_unwind, frame_unwind_register_signed)
11095 (frame_unwind_register_unsigned, get_frame_register_bytes)
11096 (put_frame_register_bytes): Don't call value_free.
11097 * findvar.c (address_from_register): Don't call value_free.
11098 * dwarf2read.c (dwarf2_compute_name): Don't call value_free.
11099 * dwarf2loc.c (entry_data_value_free_closure)
11100 (value_of_dwarf_reg_entry, free_pieced_value_closure)
11101 (dwarf2_evaluate_loc_desc_full): Update.
11102 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
11103 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
11104 (~watchpoint, watch_command_1)
11105 (invalidate_bp_value_on_memory_change): Update.
11106 * alpha-tdep.c (alpha_register_to_value): Don't call value_free.
11107
7f8a5d38
SM
111082018-04-06 Simon Marchi <simon.marchi@polymtl.ca>
11109
11110 PR gdb/23022
11111 * warning.m4: Add -Wno-error=deprecated-register.
11112 * configure: Re-generate.
11113
8a76bd3b
TT
111142018-04-05 Tom Tromey <tom@tromey.com>
11115
11116 * linespec.h: Remove include of "vec.h".
11117
8e8d776e
TT
111182018-04-05 Tom Tromey <tom@tromey.com>
11119
11120 * linespec.c (typep): Remove typedef.
11121 (find_methods, find_superclass_methods): Take a std::vector.
11122 (find_method): Use std::vector.
11123
9b2f8581
TT
111242018-04-05 Tom Tromey <tom@tromey.com>
11125
11126 * utils.c (compare_strings): Remove.
11127 * utils.h (compare_strings): Remove.
11128 * objc-lang.h (find_imps): Update.
11129 * objc-lang.c (find_methods): Take a std::vector.
11130 (uniquify_strings, find_imps): Likewise.
11131 * linespec.c (find_methods): Take a std::vector.
11132 (decode_objc): Use std::vector.
11133 (add_all_symbol_names_from_pspace, find_superclass_methods): Take
11134 a std::vector.
11135 (find_method, find_function_symbols): Use std::vector.
11136
459a2e4c
TT
111372018-04-05 Tom Tromey <tom@tromey.com>
11138
11139 * completer.c (completion_tracker::completion_tracker): Remove
11140 cast.
11141 (completion_tracker::discard_completions): Likewise.
11142 * breakpoint.c (ambiguous_names_p): Remove cast.
11143 * ada-lang.c (_initialize_ada_language): Remove cast.
11144 * utils.h (streq): Update.
11145 (streq_hash): Add new declaration.
11146 * utils.c (streq): Return bool.
11147 (streq_hash): New function.
11148
9be2c17a
TT
111492018-04-05 Tom Tromey <tom@tromey.com>
11150
11151 * linespec.c (event_location_to_sals) <case ADDRESS_LOCATION>:
11152 Remove a string copy.
11153
f73c6ece
TT
111542018-04-05 Tom Tromey <tom@tromey.com>
11155
11156 * linespec.c (filter_results): Use std::vector.
11157 (decode_line_2, decode_line_full): Update.
11158
53a0f8a2
TT
111592018-04-05 Tom Tromey <tom@tromey.com>
11160
11161 * linespec.c (canonical_to_fullform): Return std::string.
11162 (filter_results): Update.
11163 (struct decode_line_2_item): Add constructor.
11164 <fullform, displayform>: Now std::string.
11165 (decode_line_2_compare_items): Now a std::sort comparator.
11166 (decode_line_2): Update.
11167
a5b5adf5
TT
111682018-04-05 Tom Tromey <tom@tromey.com>
11169
11170 * linespec.c (copy_token_string): Return a unique_xmalloc_ptr.
11171 (unexpected_linespec_error): Update.
11172 (linespec_parse_basic, parse_linespec): Update.
11173
6a307fc5
TT
111742018-04-05 Tom Tromey <tom@tromey.com>
11175
11176 * linespec.c (linespec_parse_basic): Reindent.
11177
41c1efc6
TT
111782018-04-05 Tom Tromey <tom@tromey.com>
11179
11180 * minsyms.h (iterate_over_minimal_symbols): Update.
11181 * minsyms.c (iterate_over_minimal_symbols): Take a
11182 gdb::function_view.
11183 * linespec.c (struct collect_minsyms): Remove.
11184 (compare_msyms): Now a std::sort comparator.
11185 (add_minsym): Add parameters.
11186 (search_minsyms_for_name): Update. Use std::vector.
11187
c5edbf3d
TT
111882018-04-03 Tom Tromey <tom@tromey.com>
11189
11190 * mipsread.c (read_alphacoff_dynamic_symtab): Use
11191 gdb::byte_vector.
11192
b39efc48
WP
111932018-04-02 Weimin Pan <weimin.pan@oracle.com>
11194
11195 * MAINTAINERS (Write After Approval): Add Weimin Pan.
11196
121ad66c 111972018-04-02 Weimin Pan <weimin.pan@oracle.com>
79f18731
WP
11198
11199 PR gdb/16959
11200 * cp-valprint.c: (cp_print_static_field) Fix infinite recursion when
11201 printing static type.
11202
09473be8
TT
112032018-04-01 Tom Tromey <tom@tromey.com>
11204
11205 * rs6000-nat.c (rs6000_ptrace_ldinfo): Return a byte_vector.
11206 (rs6000_xfer_shared_libraries): Update.
11207
ec1f2d91
SM
112082018-04-01 Simon Marchi <simon.marchi@polymtl.ca>
11209
11210 * common/gdb_vecs.h (char_ptr): Remove.
11211 * tracepoint.c (encode_actions_1): Remove usage of char_ptr.
11212
d8611974
SM
112132018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
11214
11215 * guile/scm-utils.c (gdbscm_parse_function_args): Replace VEC
11216 with std::vector.
11217 * common/gdb_vecs.h (DEF_VEC_P (char_ptr)): Remove.
11218
a18ba4e4
SM
112192018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
11220
11221 * tracepoint.h (struct uploaded_tp): Initialize fields.
11222 <actions, step_actions, cmd_strings>: Change type to
11223 std::vector<char *>.
11224 * tracepoint.c (get_uploaded_tp): Allocate with new.
11225 (free_uploaded_tps): Free with delete.
11226 (parse_tracepoint_definition): Adjust to std::vector change.
11227 * breakpoint.c (read_uploaded_action): Likewise.
11228 (create_tracepoint_from_upload): Likewise.
11229 * ctf.c (ctf_write_uploaded_tp): Likewise.
11230 (SET_ARRAY_FIELD): Likewise.
11231 * tracefile-tfile.c (tfile_write_uploaded_tp): Likewise.
11232
a7961323
TT
112332018-03-30 Tom Tromey <tom@tromey.com>
11234
11235 * solib-svr4.c (lm_info_read): Use gdb::byte_vector. Return
11236 std::unique_ptr.
11237 (svr4_keep_data_in_core): Update.
11238 (svr4_read_so_list): Update.
11239
e83e4e24
TT
112402018-03-30 Tom Tromey <tom@tromey.com>
11241
11242 * windows-nat.c (handle_output_debug_string, handle_exception):
11243 Update.
11244 * target.h (target_read_string): Update.
11245 * target.c (target_read_string): Change "string" to
11246 unique_xmalloc_ptr.
11247 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
11248 Update.
11249 * solib-frv.c (frv_current_sos): Update.
11250 * solib-dsbt.c (dsbt_current_sos): Update.
11251 * solib-darwin.c (darwin_current_sos): Update.
11252 * linux-thread-db.c (inferior_has_bug): Update.
11253 * expprint.c (print_subexp_standard) <case OP_OBJC_MSGCALL>:
11254 Update. Remove alloca.
11255 * ada-lang.c (ada_main_name): Update.
11256
263db9a1
TT
112572018-03-30 Tom Tromey <tom@tromey.com>
11258
11259 * dwarf2read.c (struct free_dwo_file_cleanup_data): Remove.
11260 (struct dwo_file_deleter): New.
11261 (dwo_file_up): New typedef.
11262 (open_and_init_dwo_file): Use dwo_file_up.
11263 (free_dwo_file_cleanup): Remove.
11264
5dafb3d1
TT
112652018-03-30 Tom Tromey <tom@tromey.com>
11266
11267 * dwarf2read.c (free_dwo_file): Remove "objfile" parameter.
11268 (free_dwo_file_cleanup, free_dwo_file_from_slot): Update.
11269
11ed8cad
TT
112702018-03-30 Tom Tromey <tom@tromey.com>
11271
11272 * dwarf2read.c (class free_cached_comp_units): New class.
11273 (dw2_instantiate_symtab, dwarf2_build_psymtabs_hard): Use it.
11274 (free_cached_comp_units): Remove function.
11275
9ae79dac
TT
112762018-03-30 Tom Tromey <tom@tromey.com>
11277
11278 * utils.h (make_cleanup_unpush_target): Remove.
11279 * inf-ptrace.c (struct target_unpusher): New.
11280 (target_unpush_up) New typedef.
11281 (inf_ptrace_create_inferior, inf_ptrace_attach): Use
11282 target_unpush_up.
11283 * utils.c (do_unpush_target, make_cleanup_unpush_target): Remove.
11284
5aa89276
TT
112852018-03-27 Tom Tromey <tom@tromey.com>
11286
11287 * utils.c (prompt_for_continue): Use unique_xmalloc_ptr.
11288
1dbeed45
TT
112892018-03-27 Pedro Alves <palves@redhat.com>
11290 Tom Tromey <tom@tromey.com>
11291
11292 * top.c (class gdb_readline_wrapper_cleanup): Add constructor,
11293 destructor. Now a class.
11294 (gdb_readline_wrapper_cleanup): Remove function.
11295 (gdb_readline_wrapper): Remove cleanups.
11296
c819b2c0
TT
112972018-03-27 Tom Tromey <tom@tromey.com>
11298
11299 * typeprint.h (struct type_print_options) <local_typedefs,
11300 global_typedefs>: Remove "struct" keyword.
11301 (class typedef_hash_table): New class.
11302 (recursively_update_typedef_hash, add_template_parameters)
11303 (create_typedef_hash, free_typedef_hash, copy_typedef_hash)
11304 (find_typedef_in_hash): Don't declare.
11305 * typeprint.c (struct typedef_hash_table): Move to typeprint.h.
11306 (typedef_hash_table::recursively_update): Rename from
11307 recursively_update_typedef_hash. Now a member.
11308 (typedef_hash_table::add_template_parameters): Rename from
11309 add_template_parameters. Now a member.
11310 (typedef_hash_table::typedef_hash_table): Now a constructor;
11311 rename from create_typedef_hash.
11312 (typedef_hash_table::~typedef_hash_table): Now a destructor;
11313 rename from free_typedef_hash.
11314 (do_free_typedef_hash, make_cleanup_free_typedef_hash)
11315 (do_free_global_table): Remove.
11316 (typedef_hash_table::typedef_hash_table): New constructor; renamed
11317 from copy_type_recursive.
11318 (create_global_typedef_table): Remove.
11319 (typedef_hash_table::find_global_typedef): Now a member of
11320 typedef_hash_table.
11321 (typedef_hash_table::find_typedef): Rename from
11322 find_typedef_in_hash; now a member.
11323 (whatis_exp): Update.
11324 * extension.h (struct ext_lang_type_printers): Add constructor and
11325 destructor.
11326 (start_ext_lang_type_printers, free_ext_lang_type_printers): Don't
11327 declare.
11328 * extension.c (ext_lang_type_printers::ext_lang_type_printers):
11329 Now a constructor; rename from start_ext_lang_type_printers.
11330 (ext_lang_type_printers): Now a destructor; rename from
11331 free_ext_lang_type_printers.
11332 * c-typeprint.c (find_typedef_for_canonicalize, c_print_type_1):
11333 Update.
11334 (c_type_print_base_struct_union): Update. Remove cleanups.
11335
608219fb
TT
113362018-03-27 Tom Tromey <tom@tromey.com>
11337
11338 * dwarf-index-write.c: Include <cmath>.
11339
3fcded8f
JB
113402018-03-27 Joel Brobecker <brobecker@adacore.com>
11341
11342 * NEWS: Add entry describing new "set|show varsize-limit" command.
11343 * ada-lang.c (_initialize_ada_language): Add "set/show varsize-limit"
11344 command.
11345 * printcmd.c (_initialize_printcmd): Add "set var" alias of
11346 "set variable".
11347
cd4fb1b2
SM
113482018-03-27 Simon Marchi <simon.marchi@ericsson.com>
11349
11350 * Makefile.in (COMMON_SFILES): Add dwarf-index-common.c and
11351 dwarf-index-write.c
11352 (HFILES_NO_SRCDIR): Add dwarf-index-common.h and dwarf2read.h.
11353 * dwarf-index-common.c: New file.
11354 * dwarf-index-common.h: New file.
11355 * dwarf-index-write.c: New file.
11356 * dwarf2read.c: Include dwarf2read.h and dwarf-index-common.h.
11357 (struct dwarf2_section_info): Move from here.
11358 (dwarf2_section_info_def): Likewise.
11359 (DEF_VEC_O (dwarf2_section_info_def)): Likewise.
11360 (offset_type): Likewise.
11361 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): Likewise.
11362 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): Likewise.
11363 (DW2_GDB_INDEX_CU_SET_VALUE): Likewise.
11364 (byte_swap): Likewise.
11365 (MAYBE_SWAP): Likewise.
11366 (dwarf2_per_cu_ptr): Likewise.
11367 (DEF_VEC_P (dwarf2_per_cu_ptr)): Likewise.
11368 (struct tu_stats): Likewise.
11369 (struct dwarf2_per_objfile): Likewise.
11370 (struct dwarf2_per_cu_data): Likewise.
11371 (struct signatured_type): Likewise.
11372 (sig_type_ptr): Likewise.
11373 (DEF_VEC_P (sig_type_ptr)): Likewise.
11374 (INDEX4_SUFFIX): Likewise.
11375 (INDEX5_SUFFIX): Likewise.
11376 (DEBUG_STR_SUFFIX): Likewise.
11377 (dwarf2_read_section): Make non-static.
11378 (mapped_index_string_hash): Move from here.
11379 (dwarf5_djb_hash): Likewise.
11380 (file_write): Likewise.
11381 (class data_buf): Likewise.
11382 (struct symtab_index_entry): Likewise.
11383 (struct mapped_symtab): Likewise.
11384 (find_slot): Likewise.
11385 (hash_expand): Likewise.
11386 (add_index_entry): Likewise.
11387 (uniquify_cu_indices): Likewise.
11388 (class c_str_view): Likewise.
11389 (class c_str_view_hasher): Likewise.
11390 (class vector_hasher): Likewise.
11391 (write_hash_table): Likewise.
11392 (psym_index_map): Likewise.
11393 (struct addrmap_index_data): Likewise.
11394 (add_address_entry): Likewise.
11395 (add_address_entry_worker): Likewise.
11396 (write_address_map): Likewise.
11397 (symbol_kind): Likewise.
11398 (write_psymbols): Likewise.
11399 (struct signatured_type_index_data): Likewise.
11400 (write_one_signatured_type): Likewise.
11401 (recursively_count_psymbols): Likewise.
11402 (recursively_write_psymbols): Likewise.
11403 (class debug_names): Likewise.
11404 (check_dwarf64_offsets): Likewise.
11405 (psyms_seen_size): Likewise.
11406 (write_gdbindex): Likewise.
11407 (write_debug_names): Likewise.
11408 (assert_file_size): Likewise.
11409 (write_psymtabs_to_index): Likewise.
11410 (save_gdb_index_command): Likewise.
11411 (_initialize_dwarf2_read): Don't register the "save gdb-index"
11412 command.
11413 * dwarf2read.h: New file.
11414
59cc4834
JB
114152018-03-27 Joel Brobecker <brobecker@adacore.com>
11416
11417 PR gdb/22670
11418 * dwarf2read.c (dwarf2_physname): Do not return the demangled
11419 symbol name if the CU's language stores symbol names in linkage
11420 format.
11421 * language.h (struct language_defn)
11422 <la_store_sym_names_in_linkage_form_p>: New field. Adjust
11423 all instances of this struct.
11424
67501539
TT
114252018-03-26 Tom Tromey <tom@tromey.com>
11426
11427 * stack.c (backtrace_command_1): Remove verbose code.
11428
76c939ac
TT
114292018-03-26 Tom Tromey <tom@tromey.com>
11430
11431 * python/py-framefilter.c (py_print_type): Don't catch
11432 exceptions. Return void.
11433 (py_print_value): Likewise.
11434 (py_print_single_arg): Likewise.
11435 (enumerate_args): Don't catch exceptions.
11436 (py_print_args): Likewise.
11437 (py_print_frame): Likewise.
11438 (gdbpy_apply_frame_filter): Catch exceptions here.
11439
9507b29c
TT
114402018-03-26 Tom Tromey <tom@tromey.com>
11441
11442 * stack.c (_initialize_stack): Remove trailing newlines from help
11443 text. Add "Usage" line to "backtrace" help.
11444
eb68e487
TT
114452018-03-26 Tom Tromey <tom@tromey.com>
11446
11447 PR python/16486:
11448 * python/py-framefilter.c (py_print_args): Call wrap_hint.
11449
1f111921
TT
114502018-03-26 Tom Tromey <tom@tromey.com>
11451
11452 * python/py-framefilter.c (py_print_single_arg): Return
11453 EXT_LANG_BT_ERROR from catch.
11454
fb7eb8b5
TT
114552018-03-26 Tom Tromey <tom@tromey.com>
11456
11457 PR backtrace/15584:
11458 * stack.c (backtrace_command_1): Move some code into no-filters
11459 "if".
11460
4ca59a9f
TT
114612018-03-26 Tom Tromey <tom@tromey.com>
11462
11463 * python/py-framefilter.c (throw_quit_or_print_exception): New
11464 function.
11465 (gdbpy_apply_frame_filter): Use it.
11466
92256134
TT
114672018-03-26 Tom Tromey <tom@tromey.com>
11468
11469 PR cli/17716:
11470 * python/py-framefilter.c (py_print_type, py_print_value)
11471 (enumerate_args, py_print_args, gdbpy_apply_frame_filter): Use
11472 RETURN_MASK_ERROR.
11473
7a630bc2
TT
114742018-03-26 Tom Tromey <tom@tromey.com>
11475
11476 * python/py-framefilter.c (enumerate_args): Use
11477 gdb::unique_xmalloc_ptr.
11478
63283d4a
TT
114792018-03-26 Tom Tromey <tom@tromey.com>
11480
11481 * python/py-framefilter.c (py_print_frame): Return
11482 EXT_LANG_BT_OK.
11483 (gdbpy_apply_frame_filter): Update comment.
11484 * extension.h (enum ext_lang_bt_status) <EXT_LANG_BT_COMPLETED>:
11485 Remove.
11486 <EXT_LANG_BT_NO_FILTERS>: Change value.
11487
978d6c75
TT
114882018-03-26 Tom Tromey <tom@tromey.com>
11489
11490 PR backtrace/15582:
11491 * stack.c (backtrace_command): Parse "hide" argument.
11492 * python/py-framefilter.c (py_print_frame): Handle PRINT_HIDE.
11493 * extension.h (enum frame_filter_flags) <PRINT_HIDE>: New
11494 constant.
11495
1cf7e640
TT
114962018-03-26 Tom Tromey <tom@tromey.com>
11497
11498 * stack.c (backtrace_command_1): Remove "show_locals" parameter,
11499 add "flags".
11500 (backtrace_command): Remove "fulltrace", add "flags".
11501
ea3b0687
TT
115022018-03-26 Tom Tromey <tom@tromey.com>
11503
11504 * stack.c (backtrace_command): Rewrite command line parsing.
11505
9f034d75
SM
115062018-03-26 Simon Marchi <simon.marchi@ericsson.com>
11507
11508 * dwarf2read.c (DEF_VEC_I(offset_type)): Remove.
11509
ce1459e5
SM
115102018-03-26 Simon Marchi <simon.marchi@ericsson.com>
11511
11512 * filename-seen-cache.h: Add include guard.
11513
4f7ae6f5
KS
115142018-03-26 Keith Seitz <keiths@redhat.com>
11515
11516 * symfile.c (place_section): Remove "struct" from section_addr_info
11517 in comment.
11518 * windows-nat.c (struct safe_symbol_file_add_args) <addrs>: Remove
11519 "struct" keyword from section_addr_info.
11520
5cd3e386
AH
115212018-03-26 Alan Hayward <alan.hayward@arm.com>
11522
11523 * regformats/regdef.h (reg): Add constructors.
11524
3e5ef9a4
PA
115252018-03-25 Pedro Alves <palves@redhat.com>
11526
11527 * eval.c (evaluate_funcall): Swap OP_VAR_MSYM_VALUE/OP_VAR_VALUE
11528 if then/else bodies in var_func_name extraction.
11529
c88d2fcc 115302018-03-23 Weimin Pan <weimin.pan@oracle.com>
bce02d88
WP
11531
11532 * minsyms.c (lookup_minimal_symbol_and_objfile): Use
11533 lookup_minimal_symbol() to find symbol entry.
11534 * minsyms.h (lookup_minimal_symbol_and_objfile): Update comment.
11535
b7fee5a3
KS
115362018-03-23 Keith Seitz <keiths@redhat.com>
11537
11538 PR c++/22968
11539 * dwarf2read.c (scan_partial_symbols): Scan structs/classes for
11540 nested type definitions for C++, too.
11541
2cc9b304
TT
115422018-03-23 Tom Tromey <tom@tromey.com>
11543
11544 * machoread.c (struct oso_el): Add a constructor. Don't define as
11545 a typedef.
11546 (macho_register_oso): Remove.
11547 (macho_symtab_read): Take a std::vector.
11548 (oso_el_compare_name): Now a std::sort comparator.
11549 (macho_symfile_read_all_oso): Take a std::vector.
11550 (macho_symfile_read): Use std::vector. Remove cleanups.
11551
a2b2bc12
TT
115522018-03-22 Tom Tromey <tom@tromey.com>
11553
11554 * record-full.c (record_full_exec_insn): Use gdb::byte_vector.
11555 (record_full_goto_bookmark): Use std::string.
11556
7a8f494c
PFC
115572018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
11558
11559 PR tdep/18295
11560 * rs6000-tdep.c (skip_prologue): Match both stwux and stdux
11561 a single mask.
11562
dd6d677f
PFC
115632018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
11564
11565 * rs6000-tdep.c (store_insn_p): New function.
11566 (skip_prologue): New variable alloca_reg_offset. Set lr_reg
11567 and cr_reg to their unshifted values. Use store_insn_p to
11568 match LR saves using either R1 or fdata->alloca_reg. Use
11569 store_insn_p to match CR saves. Set alloca_reg_offset
11570 when alloca_reg and framep are set. Remove lr_reg shift
11571 when assigning to fdata->lr_register.
11572
26d6cec4
AA
115732018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
11574
11575 * linux-tdep.c (linux_info_proc): For "info proc cmdline", print
11576 command line args instead of emitting a warning.
11577
5d9310c4
SM
115782018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
11579
11580 * tracepoint.h (struct static_tracepoint_marker): Initialize
11581 fields, define default constructor, move constructor and move
11582 assignment, disable the rest.
11583 <str_id, extra>: Make std::string.
11584 (release_static_tracepoint_marker): Remove.
11585 (free_current_marker): Remove.
11586 * tracepoint.c (free_current_marker): Remove.
11587 (parse_static_tracepoint_marker_definition): Adjust to
11588 std::string, use new hex2str overload.
11589 (release_static_tracepoint_marker): Remove.
11590 (print_one_static_tracepoint_marker): Get marker by reference
11591 and adjust to std::string.
11592 (info_static_tracepoint_markers_command): Adjust to std::vector
11593 changes
11594 * target.h (static_tracepoint_marker_p): Remove typedef.
11595 (DEF_VEC_P(static_tracepoint_marker_p)): Remove.
11596 (struct target_ops) <to_static_tracepoint_marker_at>: Return
11597 bool.
11598 <to_static_tracepoint_markers_by_strid>: Return std::vector.
11599 * target-debug.h
11600 (target_debug_print_VEC_static_tracepoint_marker_p_p): Remove.
11601 (target_debug_print_std_vector_static_tracepoint_marker): New.
11602 (target_debug_print_struct_static_tracepoint_marker_p): Rename
11603 to...
11604 (target_debug_print_static_tracepoint_marker_p): ... this.
11605 * target-delegates.c: Re-generate.
11606 * breakpoint.h (struct tracepoint) <static_trace_marker_id>:
11607 Make std::string.
11608 * breakpoint.c (init_breakpoint_sal): Adjust to std::string.
11609 (decode_static_tracepoint_spec): Adjust to std::vector.
11610 (tracepoint_print_one_detail): Adjust to std::string.
11611 (strace_marker_decode_location): Adjust to std::string.
11612 (update_static_tracepoint): Adjust to std::string, remove call
11613 to release_static_tracepoint_marker.
11614 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
11615 Adjust to std::vector.
11616 * remote.c (remote_static_tracepoint_marker_at): Return bool.
11617 (remote_static_tracepoint_markers_by_strid): Adjust to
11618 std::vector.
11619 * common/rsp-low.h (hex2str): New overload with explicit count
11620 of bytes.
11621 * common/rsp-low.c (hex2str): New overload with explicit count
11622 of bytes.
11623 * unittests/rsp-low-selftests.c (test_hex2str): New function.
11624 (_initialize_rsp_low_selftests): Add test_hex2str test.
11625 * unittests/tracepoint-selftests.c
11626 (test_parse_static_tracepoint_marker_definition): Adjust to
11627 std::string.
11628
62c222b6
SM
116292018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
11630
11631 * tracepoint.c (parse_static_tracepoint_marker_definition):
11632 Consider case where the definition is followed by more
11633 definitions.
11634 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11635 tracepoint-selftests.c.
11636 * unittests/tracepoint-selftests.c: New.
11637
7eb2418f
PFC
116382018-03-21 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
11639
11640 * MAINTAINERS (Write After Approval): Add Pedro Franco de
11641 Carvalho.
11642
7cbe16e9
SR
116432018-03-20 Stephen Roberts <stephen.roberts@arm.com>
11644
3d6b3b82 11645 * symtab.c (find_pc_sect_line): fixed indentation.
7cbe16e9 11646
4ee89e90
SR
116472018-03-20 Stephen Roberts <stephen.roberts@arm.com>
11648
3d6b3b82 11649 * symtab.c (find_pc_sect_line): now uses binary search.
4ee89e90 11650
92630041
TT
116512018-03-19 Tom Tromey <tom@tromey.com>
11652
11653 * rust-exp.y (struct_expr_tail, struct_expr_list): Add plain
11654 "IDENT" production.
11655
76727919
TT
116562018-03-19 Pedro Alves <palves@redhat.com>
11657 Tom Tromey <tom@tromey.com>
11658
11659 * unittests/observable-selftests.c: New file.
11660 * common/observable.h: New file.
11661 * observable.h: New file.
11662 * ada-lang.c, ada-tasks.c, agent.c, aix-thread.c, annotate.c,
11663 arm-tdep.c, auto-load.c, auxv.c, break-catch-syscall.c,
11664 breakpoint.c, bsd-uthread.c, cli/cli-interp.c, cli/cli-setshow.c,
11665 corefile.c, dummy-frame.c, event-loop.c, event-top.c, exec.c,
11666 extension.c, frame.c, gdbarch.c, guile/scm-breakpoint.c,
11667 infcall.c, infcmd.c, inferior.c, inflow.c, infrun.c, jit.c,
11668 linux-tdep.c, linux-thread-db.c, m68klinux-tdep.c,
11669 mi/mi-cmd-break.c, mi/mi-interp.c, mi/mi-main.c, objfiles.c,
11670 ppc-linux-nat.c, ppc-linux-tdep.c, printcmd.c, procfs.c,
11671 python/py-breakpoint.c, python/py-finishbreakpoint.c,
11672 python/py-inferior.c, python/py-unwind.c, ravenscar-thread.c,
11673 record-btrace.c, record-full.c, record.c, regcache.c, remote.c,
11674 riscv-tdep.c, sol-thread.c, solib-aix.c, solib-spu.c, solib.c,
11675 spu-multiarch.c, spu-tdep.c, stack.c, symfile-mem.c, symfile.c,
11676 symtab.c, thread.c, top.c, tracepoint.c, tui/tui-hooks.c,
11677 tui/tui-interp.c, valops.c: Update all users.
11678 * tui/tui-hooks.c (tui_bp_created_observer)
11679 (tui_bp_deleted_observer, tui_bp_modified_observer)
11680 (tui_inferior_exit_observer, tui_before_prompt_observer)
11681 (tui_normal_stop_observer, tui_register_changed_observer):
11682 Remove.
11683 (tui_observers_token): New global.
11684 (attach_or_detach, tui_attach_detach_observers): New functions.
11685 (tui_install_hooks, tui_remove_hooks): Use
11686 tui_attach_detach_observers.
11687 * record-btrace.c (record_btrace_thread_observer): Remove.
11688 (record_btrace_thread_observer_token): New global.
11689 * observer.sh: Remove.
11690 * observer.c: Rename to observable.c.
11691 * observable.c (namespace gdb_observers): Define new objects.
11692 (observer_debug): Move into gdb_observers namespace.
11693 (struct observer, struct observer_list, xalloc_observer_list_node)
11694 (xfree_observer_list_node, generic_observer_attach)
11695 (generic_observer_detach, generic_observer_notify): Remove.
11696 (_initialize_observer): Update.
11697 Don't include observer.inc.
11698 * Makefile.in (generated_files): Remove observer.h, observer.inc.
11699 (clean mostlyclean): Likewise.
11700 (observer.h, observer.inc): Remove targets.
11701 (SUBDIR_UNITTESTS_SRCS): Add observable-selftests.c.
11702 (COMMON_SFILES): Use observable.c, not observer.c.
11703 * .gitignore: Remove observer.h.
11704
1cb1f3da
TT
117052018-03-18 Tom Tromey <tom@tromey.com>
11706
11707 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Use
11708 gdb::def_vector.
11709 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
11710
a06ab151
TT
117112018-03-17 Tom Tromey <tom@tromey.com>
11712
11713 * auto-load.c (auto_load_objfile_script_1): Use std::string.
11714
770623f7
TT
117152018-03-17 Tom Tromey <tom@tromey.com>
11716
11717 * target.c (class scoped_target_fd): New.
11718 (target_fileio_close_cleanup): Remove.
11719 (target_fileio_read_alloc_1): Use scoped_target_fd.
11720
39be3c7e
SM
117212018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
11722
11723 * silent-rules.mk: New.
11724 * Makefile.in: Include silent-rules.mk
11725 (srcdir, VPATH, top_srcdir): Move up.
11726 (COMPILE): Add ECHO_CXX.
11727 (test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD.
11728 (init.c): Add ECHO_INIT_C.
11729 (gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
11730 (version.c): Add ECHO_GEN.
11731 (printcmd.o): Add ECHO_CXX.
11732 (target-float.o): Add ECHO_CXX.
11733 (ada-exp.o): Add ECHO_CXX.
11734 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN.
11735 (insight$(EXEEXT)): Add ECHO_CXXLD.
11736 * gnulib/configure.ac: Add AM_SILENT_RULES.
11737 * gnulib/aclocal.m4: Re-generate.
11738 * gnulib/configure: Re-generate.
11739 * gnulib/import/Makefile.in: Re-generate.
11740
37e136b1
TT
117412018-03-16 Tom Tromey <tom@tromey.com>
11742
11743 * xcoffread.c (xcoff_symfile_offsets): Change type of "addrs".
11744 * utils.h (make_cleanup_free_section_addr_info): Don't declare.
11745 * utils.c (do_free_section_addr_info)
11746 (make_cleanup_free_section_addr_info): Remove.
11747 * symfile.h (struct other_sections): Add constructor.
11748 (struct section_addr_info): Remove.
11749 (section_addr_info): New typedef.
11750 (struct sym_fns) <sym_offsets>: Change type of parameter.
11751 (build_section_addr_info_from_objfile)
11752 (relative_addr_info_to_section_offsets, addr_info_make_relative)
11753 (default_symfile_offsets, symbol_file_add)
11754 (symbol_file_add_from_bfd)
11755 (build_section_addr_info_from_section_table): Update.
11756 (alloc_section_addr_info, free_section_addr_info): Don't declare.
11757 * symfile.c (alloc_section_addr_info): Remove.
11758 (build_section_addr_info_from_section_table): Change return type.
11759 Update.
11760 (build_section_addr_info_from_bfd)
11761 (build_section_addr_info_from_objfile): Likewise.
11762 (free_section_addr_info): Remove.
11763 (relative_addr_info_to_section_offsets): Change type of "addrs".
11764 (addrs_section_compar): Now a std::sort comparator.
11765 (addrs_section_sort): Change return type.
11766 (addr_info_make_relative): Change type of "addrs". Update.
11767 (default_symfile_offsets, syms_from_objfile_1)
11768 (syms_from_objfile, symbol_file_add_with_addrs): Likewise.
11769 (symbol_file_add_separate): Update.
11770 (symbol_file_add): Change type of "addrs". Update.
11771 (add_symbol_file_command): Update. Remove cleanups.
11772 * symfile-mem.c (symbol_file_add_from_memory): Update. Remove
11773 cleanups.
11774 * symfile-debug.c (debug_sym_offsets): Change type of "info".
11775 * solib.c (solib_read_symbols): Update.
11776 * objfiles.c (objfile_relocate): Update. Remove cleanups.
11777 * machoread.c (macho_symfile_offsets): Update.
11778 * jit.c (jit_bfd_try_read_symtab): Update.
11779
03afa6ef
SM
117802018-03-15 Simon Marchi <simon.marchi@polymtl.ca>
11781
11782 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11783 unittests/utils-selftests.c.
11784 * unittests/utils-selftests.c: New file.
11785
3ae9ce5d
TT
117862018-03-14 Tom Tromey <tom@tromey.com>
11787
11788 PR cli/14977:
11789 * printcmd.c (printf_c_string, printf_wide_c_string): Special case
11790 for NULL.
11791
b8c2339b
TT
117922018-03-14 Tom Tromey <tom@tromey.com>
11793
11794 PR cli/19918:
11795 * printcmd.c (printf_pointer): Allow "-" in format.
11796
80ae639d
TT
117972018-03-14 Tom Tromey <tom@tromey.com>
11798
11799 * printcmd.c (_initialize_printcmd): Add usage to printf.
11800
0d671d99
YQ
118012018-03-14 Yao Qi <qiyao@sourceware.org>
11802
11803 * MAINTAINERS: Update my email address.
11804
b577b6af
TT
118052018-03-13 Tom Tromey <tom@tromey.com>
11806
11807 * machoread.c (macho_check_dsym): Change filenamep to a
11808 std::string*.
11809 (macho_symfile_read): Update.
11810 * symfile.c (load_command): Use std::string.
11811
89a3b63e
AB
118122018-03-12 Andrew Burgess <andrew.burgess@embecosm.com>
11813
11814 * riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization
11815 to error message string.
11816 (riscv_register_name): Use xsnprintf instead of sprintf.
11817 (riscv_insn::fetch_instruction): Use gdb_assert instead of
11818 internal_error.
11819 (riscv_print_arg_location): Use gdb_assert_not_reached instead of
11820 error.
11821 (riscv_push_dummy_call): Likewise.
11822
984c7238
TT
118232018-03-12 Tom Tromey <tom@tromey.com>
11824
11825 * rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix):
11826 Use gdb::byte_vector.
11827 * arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector.
11828
933522d1
YQ
118292018-03-12 Yao Qi <yao.qi@linaro.org>
11830
11831 * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change
11832 parameter type to readable_regcache.
11833 * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update
11834 the declaration.
11835
be2daae6
TT
118362018-03-11 Tom Tromey <tom@tromey.com>
11837
11838 * dwarf2read.c (struct nextfield): Add initializers.
11839 (struct nextfnfield): Remove.
11840 (struct fnfieldlist): Add initializers. Remove "length" and
11841 "head", use std::vector.
11842 (struct decl_field_list): Remove.
11843 (struct field_info): Add initializers.
11844 <fields, baseclasses>: Now std::vector.
11845 <nbaseclasses, nfnfields, typedef_field_list_count,
11846 nested_types_list_count>: Remove.
11847 (dwarf2_add_field, dwarf2_add_type_defn)
11848 (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
11849 (dwarf2_attach_fn_fields_to_type, handle_struct_member_die)
11850 (process_structure_scope): Update.
11851
484cf504
TT
118522018-03-11 Tom Tromey <tom@tromey.com>
11853
11854 * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable
11855 for use by std::sort.
11856 (build_type_psymtabs_1): Use std::vector.
11857
9bd8e0b0
EZ
118582018-03-09 Eli Zaretskii <eliz@gnu.org>
11859
11860 * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK,
11861 and LIBMPFR in the printed configuration.
11862
5dc1a704
TT
118632018-03-08 Tom Tromey <tom@tromey.com>
11864
11865 * source.c (get_filename_and_charpos): Use scoped_fd.
11866 * nto-procfs.c (procfs_open_1): Use scoped_fd.
11867 (procfs_pidlist): Likewise.
11868 * procfs.c (proc_get_LDT_entry): Use scoped_fd.
11869 (iterate_over_mappings): Likewise.
11870
fdf07f3a
TT
118712018-03-08 Tom Tromey <tom@tromey.com>
11872
11873 * infcall.c (struct call_return_meta_info)
11874 <stack_temporaries_enabled>: Remove.
11875 (get_call_return_value, call_function_by_hand_dummy): Update.
11876 * thread.c (disable_thread_stack_temporaries): Remove.
11877 (enable_thread_stack_temporaries): Remove.
11878 (thread_stack_temporaries_enabled_p): Return bool.
11879 (push_thread_stack_temporary, value_in_thread_stack_temporaries)
11880 (get_last_thread_stack_temporary): Update.
11881 * eval.c (evaluate_subexp): Update.
11882 * gdbthread.h (class enable_thread_stack_temporaries): Now a
11883 class, not a function.
11884 (value_ptr, value_vec): Remove typedefs.
11885 (class thread_info) <stack_temporaries_enabled>: Now bool.
11886 <stack_temporaries>: Now a std::vector.
11887 (thread_stack_temporaries_enabled_p)
11888 (value_in_thread_stack_temporaries): Return bool.
11889
567a3e54
SM
118902018-03-08 Simon Marchi <simon.marchi@ericsson.com>
11891
11892 * remote.c (putpkt_binary): Fix omitted bytes reporting.
11893 (getpkt_or_notif_sane_1): Likewise.
11894
00b40057
SM
118952018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
11896
11897 * build-id.c (build_id_to_debug_bfd): Use std::string.
11898
a8dbfd58
SM
118992018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
11900
11901 * build-id.c (find_separate_debug_file_by_buildid): Return
11902 std::string.
11903 * build-id.h (find_separate_debug_file_by_buildid): Return
11904 std::string.
11905 * coffread.c (coff_symfile_read): Adjust to std::string.
11906 * elfread.c (elf_symfile_read): Adjust to std::string.
11907 * symfile.c (separate_debug_file_exists): Change parameter to
11908 std::string.
11909 (find_separate_debug_file): Return std::string.
11910 (find_separate_debug_file_by_debuglink): Return std::string.
11911 * symfile.h (find_separate_debug_file_by_debuglink): Return
11912 std::string.
11913
e6a58aa8
SM
119142018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
11915
11916 * common/xml-utils.c (xml_escape_text): Move code to...
11917 (xml_escape_text_append): ... this new function.
11918 * common/xml-utils.h (xml_escape_text_append): New declaration.
11919 * unittests/xml-utils-selftests.c (test_xml_escape_text_append):
11920 New function.
11921 (_initialize_xml_utils): register test_xml_escape_text_append as
11922 a selftest.
11923
4ef0bef6
AH
119242018-03-07 Alan Hayward <alan.hayward@arm.com>
11925
11926 * defs.h: Remove MAX_REGISTER_SIZE.
11927 * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE
11928 asserts.
11929 * python/py-unwind.c (pyuw_sniffer): Likewise.
11930
e0d3522b
TT
119312018-03-07 Tom Tromey <tom@tromey.com>
11932
11933 * linux-tdep.c (linux_info_proc): Update.
11934 * target.h (struct target_ops) <to_fileio_readlink>: Return
11935 optional<string>.
11936 (target_fileio_readlink): Return optional<string>.
11937 * remote.c (remote_hostio_readlink): Return optional<string>.
11938 * inf-child.c (inf_child_fileio_readlink): Return
11939 optional<string>.
11940 * target.c (target_fileio_readlink): Return optional<string>.
11941
ea005f31
AB
119422018-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
11943
11944 * regcache.c (cooked_read_test): Add riscv to the list of
11945 architectures that have a save_reggroup.
11946
e95a97d4
AA
119472018-03-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
11948
11949 * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given
11950 value is not a dynamic class object.
11951
d8344f3d
TT
119522018-03-06 Tom Tromey <tom@tromey.com>
11953
11954 * rust-exp.y: Formatting fixes.
11955
9add17f2
AB
119562018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11957
11958 * riscv-tdep.c (riscv_register_name): Remove target description
11959 support.
11960 (riscv_gdbarch_init): Remove target description check.
11961
c9486dfe
AB
119622018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11963
11964 * riscv-tdep.c: Remove 'Contributed by ...' lines from header
11965 comment.
11966 * riscv-tdep.h: Likewise.
11967
d74aff3d
AB
119682018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11969
11970 * riscv-tdep.c (riscv_pseudo_register_read): Delete.
11971 (riscv_pseudo_register_write): Delete.
11972 (riscv_gdbarch_init): Remove all use of pseudo registers.
11973
7ea78b59
SM
119742018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11975
11976 * record-btrace.c (btrace_print_lines): Replace cleanup
11977 parameter with RAII equivalents.
11978 (btrace_insn_history): Replace cleanup with RAII equivalents.
11979 * ui-out.h (make_cleanup_ui_out_list_begin_end,
11980 make_cleanup_ui_out_tuple_begin_end): Remove.
11981 * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end,
11982 make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end,
11983 make_cleanup_ui_out_list_begin_end): Remove.
11984
53127008
SM
119852018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11986
11987 * record-btrace.c (record_btrace_maybe_mark_async_event): Change
11988 parameter types to std::vector. Use bool.
11989 (record_btrace_wait): Replace VEC(tp_t) with
11990 std::vector<thread_info *>.
11991 * common/gdb_vecs.h (unordered_remove, ordered_remove): New.
11992
228f1508
SM
119932018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11994
11995 * record-btrace.c (record_btrace_disable_callback): Remove.
11996 (struct scoped_btrace_disable): New.
11997 (record_btrace_open): Use scoped_btrace_disable.
11998
b2970c23
AB
119992018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12000
12001 * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for
12002 reading values from registers.
12003
fb294655
AB
120042018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12005
12006 * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz
12007 where appropriate.
12008
cab5bb9d
AB
120092018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12010
12011 * riscv-tdep.c (riscv_print_arg_location): Add header comment,
12012 change parameter type. Use GDB's print functions, and use
12013 core_addr_to_string where appropriate.
12014 (riscv_push_dummy_call): Use core_addr_to_string where
12015 appropriate, update call to riscv_print_arg_location, and reindent
12016 a few lines.
12017 (riscv_return_value): Update call to riscv_print_arg_location.
12018
dbbb1059
AB
120192018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12020 Tim Newsome <tim@sifive.com>
12021 Albert Ou <a0u@eecs.berkeley.edu>
12022 Darius Rad <darius@bluespec.com>
12023
12024 * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o
12025 (HFILES_NO_SRCDIR): Add riscv-tdep.h.
12026 (ALLDEPFILES): Add riscv-tdep.c
12027 * configure.tgt: Add riscv support.
12028 * riscv-tdep.c: New file.
12029 * riscv-tdep.h: New file.
12030 * NEWS: Mention new target.
12031 * MAINTAINERS: Add entry for riscv.
12032
5dc43913
AB
120332018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12034
12035 * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized
12036 fields within aggregates.
12037
3dea1ef7
SM
120382018-03-04 Simon Marchi <simon.marchi@polymtl.ca>
12039
12040 * record-btrace.c (btrace_print_lines): Change type of flags to
12041 gdb_disassembly_flags.
12042
7efba073
JB
120432018-03-04 John Baldwin <jhb@FreeBSD.org>
12044
12045 * fbsd-nat.c: Include "inf-ptrace.h".
12046 (USE_SIGTRAP_SIGINFO): Conditionally define.
12047 [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function.
12048 (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap".
12049 [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New
12050 function.
12051 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint):
12052 Likewise.
12053 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint):
12054 Likewise.
12055 (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set
12056 "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint",
12057 "supports_stopped_by_hw_breakpoint" target methods.
12058
386a8676
JB
120592018-03-04 John Baldwin <jhb@FreeBSD.org>
12060
12061 * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat".
12062 * fbsd-nat.c (debug_fbsd_nat): New variable.
12063 (show_fbsd_nat_debug): New function.
12064 (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled.
12065 (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command.
12066
12279366
JB
120672018-03-04 John Baldwin <jhb@FreeBSD.org>
12068
12069 * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function.
12070 * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New
12071 prototype.
12072 * x86-nat.c (x86_stopped_by_hw_breakpoint): New function.
12073 (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target
12074 method.
12075
54693cf5
SM
120762018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
12077
12078 * common/gdb_vecs.c (free_char_ptr_vec): Remove.
12079 * common/gdb_vecs.h (free_char_ptr_vec): Remove.
12080
ccb2231c
SM
120812018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
12082
12083 * charset.c (struct charset_vector): New.
12084 (charsets): Change type to charset_vector.
12085 (find_charset_names): Adjust.
12086 (add_one): Adjust.
12087 (_initialize_charset): Adjust.
12088
6fb16ce6
SM
120892018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
12090
12091 * progspace.h (struct program_space) <deleted_solibs>: Change
12092 type to std::vector<std::string>.
12093 * progspace.c (clear_program_space_solib_cache): Adjust.
12094 * breakpoint.c (print_solib_event): Adjust.
12095 (check_status_catch_solib): Adjust.
12096 * solib.c (update_solib_list): Adjust.
12097 * ui-out.h (class ui_out) <field_string>: New overload.
12098 * ui-out.c (ui_out::field_string): New overload.
12099
564b1e3f
SM
121002018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
12101
12102 * progspace.h (struct program_space): Add constructor and
12103 destructor, initialize fields.
12104 (add_program_space): Remove.
12105 * progspace.c (add_program_space): Rename to...
12106 (program_space::program_space): ... this.
12107 (release_program_space): Rename to...
12108 (program_space::~program_space): ... this.
12109 (delete_program_space): Use delete to delete program_space.
12110 (initialize_progspace): Use new to allocate program_space.
12111 * inferior.c (add_inferior_with_spaces): Likewise.
12112 (clone_inferior_command): Likewise.
12113 * infrun.c (follow_fork_inferior): Likewise.
12114 (handle_vfork_child_exec_or_exit): Likewise.
12115
e80aaf61
SM
121162018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
12117
12118 * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove.
12119 (delim_string_to_char_ptr_vec): Return std::vector of
12120 gdb::unique_xmalloc_ptr.
12121 (dirnames_to_char_ptr_vec_append): Take std::vector of
12122 gdb::unique_xmalloc_ptr.
12123 (dirnames_to_char_ptr_vec): Return std::vector of
12124 gdb::unique_xmalloc_ptr.
12125 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append):
12126 Take std::vector of gdb::unique_xmalloc_ptr, adjust the code.
12127 (delim_string_to_char_ptr_vec): Return an std::vector of
12128 gdb::unique_xmalloc_ptr, adjust the code.
12129 (dirnames_to_char_ptr_vec_append): Take an std::vector of
12130 gdb::unique_xmalloc_ptr, adjust the code.
12131 (dirnames_to_char_ptr_vec): Return an std::vector of
12132 gdb::unique_xmalloc_ptr, adjust the code.
12133 * auto-load.c (auto_load_safe_path_vec): Change type to
12134 std::vector of gdb::unique_xmalloc_ptr.
12135 (auto_load_expand_dir_vars): Return an std::vector of
12136 gdb::unique_xmalloc_ptr, adjust the code.
12137 (auto_load_safe_path_vec_update): Adjust.
12138 (filename_is_in_auto_load_safe_path_vec): Adjust.
12139 (auto_load_objfile_script_1): Adjust.
12140 * build-id.c (build_id_to_debug_bfd): Adjust.
12141 * linux-thread-db.c (thread_db_load_search): Adjust.
12142 * source.c (add_path): Adjust.
12143 (openp): Adjust.
12144 * symfile.c (find_separate_debug_file): Adjust.
12145 * utils.c (do_free_char_ptr_vec): Remove.
12146 (make_cleanup_free_char_ptr_vec): Remove.
12147
ab818ade
SDJ
121482018-03-01 Sergio Durigan Junior <sergiodj@redhat.com>
12149
12150 PR gdb/22907
12151 * common/pathstuff.c: Conditionally include "<windows.h>".
12152
e1e6f073
GS
121532018-03-01 Georg Sauthoff <mail@georg.so>
12154
12155 PR gdb/22888
12156 * gcore.in: Quote variables and switch interpreter to bash.
12157
c7b15a66
TT
121582018-03-01 Tom Tromey <tom@tromey.com>
12159
12160 * dwarf2read.c (alloc_discriminant_info): Fix default_index
12161 assertion. Add assertion for discriminant_index.
12162 (quirk_rust_enum): Use correct base type name in univariant case.
12163
0cb7c7b0
SM
121642018-03-01 Simon Marchi <simon.marchi@ericsson.com>
12165
12166 * record.c (get_call_history_modifiers): Return a
12167 record_print_flags.
12168 (cmd_record_call_history): Adjust.
12169 * record-btrace.c (record_btrace_call_history): Adjust.
12170 (record_btrace_call_history_range): Adjust.
12171 (record_btrace_call_history_from): Adjust.
12172 * target-debug.h (target_debug_print_record_print_flags): New.
12173 * target-delegates.c: Re-generate.
12174 * target.c (target_call_history): Change flags type.
12175 (target_call_history_from): Likewise.
12176 (target_call_history_range): Likewise.
12177 * target.h (struct target_ops) <target_call_history>: Likewise.
12178 (target_call_history_from): Likewise.
12179 (target_call_history_range): Likewise.
12180
25e3c82c
SDJ
121812018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
12182 Simon Marchi <simon.marchi@polymtl.ca>
12183
12184 * common/common-utils.c: Include "sys/stat.h".
12185 (is_regular_file): Move here from "source.c"; change return
12186 type to "bool".
12187 * common/common-utils.h (is_regular_file): New prototype.
12188 * common/pathstuff.c (contains_dir_separator): New function.
12189 * common/pathstuff.h (contains_dir_separator): New prototype.
12190 * source.c: Don't include "sys/stat.h".
12191 (is_regular_file): Move to "common/common-utils.c".
12192
b4987c95
SDJ
121932018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
12194
12195 * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c".
12196 (HFILES_NO_SRCDIR): Add "common/pathstuff.h".
12197 * auto-load.c: Include "common/pathstuff.h".
12198 * common/common-def.h (current_directory): Move here.
12199 * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New
12200 function.
12201 * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New
12202 prototype.
12203 * common/pathstuff.c: New file.
12204 * common/pathstuff.h: New file.
12205 * compile/compile.c: Include "common/pathstuff.h".
12206 * defs.h (current_directory): Move to "common/common-defs.h".
12207 * dwarf2read.c: Include "common/pathstuff.h".
12208 * exec.c: Likewise.
12209 * guile/scm-safe-call.c: Likewise.
12210 * linux-thread-db.c: Likewise.
12211 * main.c: Likewise.
12212 * nto-tdep.c: Likewise.
12213 * objfiles.c: Likewise.
12214 * source.c: Likewise.
12215 * symtab.c: Likewise.
12216 * utils.c: Include "common/pathstuff.h".
12217 (gdb_realpath): Move to "common/pathstuff.c".
12218 (gdb_realpath_keepfile): Likewise.
12219 (gdb_abspath): Likewise.
12220 * utils.h (gdb_realpath): Move to "common/pathstuff.h".
12221 (gdb_realpath_keepfile): Likewise.
12222 (gdb_abspath): Likewise.
12223
f169cfdc
JB
122242018-02-28 John Baldwin <jhb@FreeBSD.org>
12225
12226 * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a
12227 wildcard process pid for super_resume for kernels with a
12228 specific bug.
12229
e05cac70
PM
122302018-02-27 Phil Muldoon <pmuldoon@redhat.com>
12231
12232 * compile/compile.c (get_args): Add additional comments
12233 explaining function.
12234
55089490
TT
122352018-02-27 Simon Marchi <simon.marchi@polymtl.ca>
12236 Tom Tromey <tom@tromey.com>
12237
12238 * target.h (memory_write_request_s): Remove typedef. Don't define
12239 VEC.
12240 (target_write_memory_blocks): Change argument to std::vector.
12241 (struct memory_write_request): Add constructor.
12242 * target-memory.c (compare_block_starting_address): Return bool.
12243 Change argument types.
12244 (claim_memory): Change arguments to use std::vector.
12245 (split_regular_and_flash_blocks, blocks_to_erase)
12246 (compute_garbled_blocks): Likewise.
12247 (cleanup_request_data, cleanup_write_requests_vector): Remove.
12248 (target_write_memory_blocks): Change argument to std::vector.
12249 * symfile.c (struct load_section_data): Add constructor and
12250 destructor. Use std::vector for "requests".
12251 (struct load_progress_data): Add initializers.
12252 (load_section_callback): Update. Use "new".
12253 (clear_memory_write_data): Remove.
12254 (generic_load): Update.
12255
0c305b61
AH
122562018-02-27 Alan Hayward <alan.hayward@arm.com>
12257
12258 * arch/aarch64.h: Use common/tdesc.h.
12259
c5196c92
MR
122602018-02-26 Maciej W. Rozycki <macro@mips.com>
12261
12262 * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD
12263 architecture with a 64-bit ABI.
12264
37c33887
MR
122652018-02-26 Maciej W. Rozycki <macro@mips.com>
12266
12267 * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination
12268 ahead of target description loading.
12269
d4dd3282
TT
122702018-02-26 Tom Tromey <tom@tromey.com>
12271
12272 * stack.c (backtrace_command_1): Update.
12273 * python/python-internal.h (gdbpy_apply_frame_filter): Change type
12274 of "flags".
12275 * python/py-framefilter.c (py_print_frame)
12276 (gdbpy_apply_frame_filter): Change type of "flags".
12277 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type
12278 of "flags".
12279 (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals)
12280 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update.
12281 * extension.h (enum frame_filter_flag): Rename from
12282 frame_filter_flags.
12283 (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE.
12284 (apply_ext_lang_frame_filter): Change type of "flags".
12285 * extension.c (apply_ext_lang_frame_filter): Change type of
12286 "flags".
12287 * extension-priv.h (struct extension_language_ops)
12288 <apply_frame_filter>: Change type of "flags".
12289
6893c19a
TT
122902018-02-26 Tom Tromey <tom@tromey.com>
12291
12292 PR python/16497:
12293 * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag. Fix
12294 off-by-one in py_end computation.
12295 * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle
12296 PRINT_MORE_FRAMES.
12297 * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New
12298 constant.
12299
2ddeaf8a
TT
123002018-02-26 Tom Tromey <tom@tromey.com>
12301
12302 * dwarf2read.c (struct variant_field): New.
12303 (struct nextfield) <variant>: New field.
12304 (dwarf2_add_field): Handle DW_TAG_variant_part.
12305 (dwarf2_attach_fields_to_type): Attach a discriminant_info to a
12306 discriminated union.
12307 (read_structure_type): Handle DW_TAG_variant_part.
12308 (handle_struct_member_die): New function, extracted from
12309 process_structure_scope. Handle DW_TAG_variant.
12310 (process_structure_scope): Handle discriminated unions. Call
12311 handle_struct_member_die.
12312
c9317f21
TT
123132018-02-26 Tom Tromey <tom@tromey.com>
12314
12315 * rust-lang.h (rust_last_path_segment): Declare.
12316 * rust-lang.c (rust_last_path_segment): Now public. Change
12317 contract.
12318 (struct disr_info): Remove.
12319 (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL)
12320 (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged)
12321 (rust_get_disr_info, rust_tuple_variant_type_p): Remove.
12322 (rust_enum_p, rust_enum_variant): New function.
12323 (rust_underscore_fields): Remove "offset" parameter.
12324 (rust_print_enum): New function.
12325 (rust_val_print) <TYPE_CODE_UNION>: Remove enum code.
12326 <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate.
12327 (rust_print_struct_def): Add "for_rust_enum" parameter. Handle
12328 enums.
12329 (rust_internal_print_type): New function, from rust_print_type.
12330 Remove enum code.
12331 (rust_print_type): Call rust_internal_print_type.
12332 (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>:
12333 Update enum handling.
12334 * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field.
12335 (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum)
12336 (rust_union_quirks): New functions.
12337 (process_full_comp_unit, process_full_type_unit): Call
12338 rust_union_quirks.
12339 (process_structure_scope): Update rust_unions if necessary.
12340
7c22600a
TT
123412018-02-26 Tom Tromey <tom@tromey.com>
12342
12343 * value.h (value_union_variant): Declare.
12344 * valops.c (value_union_variant): New function.
12345 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro.
12346 (struct discriminant_info): New.
12347 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New
12348 enumerator.
12349 (struct main_type) <flag_discriminated_union>: New field.
12350
15ce8941
TT
123512018-02-26 Tom Tromey <tom@tromey.com>
12352
12353 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12354 unittests/unpack-selftests.c.
12355 * unittests/unpack-selftests.c: New file.
12356 * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases.
12357
48fbe735
YQ
123582018-02-26 Yao Qi <yao.qi@linaro.org>
12359
12360 * dwarf2read.c (struct partial_die_info) <read>: New method.
12361 (read_partial_die): Remove the declaration.
12362 (load_partial_dies): Update.
12363 (partial_die_info::partial_die_info):
12364 (read_partial_die): Change it to partial_die_info::read.
12365
52356b79
YQ
123662018-02-26 Yao Qi <yao.qi@linaro.org>
12367
12368 * dwarf2read.c (struct partial_die_info) <fixup>: New method.
12369 (fixup_partial_die): Remove declaration.
12370 (scan_partial_symbols): Update.
12371 (partial_die_parent_scope): Likewise.
12372 (partial_die_full_name): Likewise.
12373 (fixup_partial_die): Change it to partial_die_info::fixup.
12374
35cc7ed7
YQ
123752018-02-26 Yao Qi <yao.qi@linaro.org>
12376
12377 * dwarf2read.c (read_partial_die): Update the declaration.
12378 (load_partial_dies): Caller update.
12379 (read_partial_die): Remove one argument abbrev_len.
12380
6f06d47b
YQ
123812018-02-26 Yao Qi <yao.qi@linaro.org>
12382
12383 * dwarf2read.c (struct partial_die_info): Add ctor, delete
12384 assignment operator.
12385 (load_partial_dies): Use ctor and copy ctor.
12386 (read_partial_die): Update.
12387 (dwarf2_cu::find_partial_die): Use ctor.
12388
d590ff25
YQ
123892018-02-26 Yao Qi <yao.qi@linaro.org>
12390
12391 * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method.
12392 (find_partial_die_in_comp_unit): Change it to
12393 dwarf2_cu::find_partial_die.
12394 (find_partial_die): Update.
12395
fd0a254f
YQ
123962018-02-26 Yao Qi <yao.qi@linaro.org>
12397
12398 * dwarf2read.c (read_partial_die): Remove the code checking abbrev
12399 is NULL.
12400
cd9983dd
YQ
124012018-02-26 Yao Qi <yao.qi@linaro.org>
12402
12403 * dwarf2read.c (load_partial_dies): Move the location of XOBNEW.
12404
f46cd62a
AH
124052018-02-26 Alan Hayward <alan.hayward@arm.com>
12406
12407 * arch/amd64.h: Use common/tdesc.h.
12408 * arch/i386.c: Likewise.
12409 * arch/i386.h: Likewise.
12410 * arch/tic6x.c: Likewise.
12411 * arch/tdesc.h: Move file from here...
12412 * common/tdesc.h: ...to here.
12413 * features/aarch64-core.c: Regenerate.
12414 * features/aarch64-fpu.c: Regenerate.
12415 * features/i386/32bit-avx.c: Regenerate.
12416 * features/i386/32bit-avx512.c: Regenerate.
12417 * features/i386/32bit-core.c: Regenerate.
12418 * features/i386/32bit-linux.c: Regenerate.
12419 * features/i386/32bit-mpx.c: Regenerate.
12420 * features/i386/32bit-pkeys.c: Regenerate.
12421 * features/i386/32bit-sse.c: Regenerate.
12422 * features/i386/64bit-avx.c: Regenerate.
12423 * features/i386/64bit-avx512.c: Regenerate.
12424 * features/i386/64bit-core.c: Regenerate.
12425 * features/i386/64bit-linux.c: Regenerate.
12426 * features/i386/64bit-mpx.c: Regenerate.
12427 * features/i386/64bit-pkeys.c: Regenerate.
12428 * features/i386/64bit-segments.c: Regenerate.
12429 * features/i386/64bit-sse.c: Regenerate.
12430 * features/i386/x32-core.c: Regenerate.
12431 * features/tic6x-c6xp.c: Regenerate.
12432 * features/tic6x-core.c: Regenerate.
12433 * features/tic6x-gp.c: Regenerate.
12434 * target-descriptions.c: Use common/tdesc.h.
12435 * target-descriptions.h: Likewise.
12436
9b292f68
TT
124372018-02-24 Tom Tromey <tom@tromey.com>
12438
12439 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
12440 (try_thread_db_load_from_dir, thread_db_load_search): Use
12441 std::string.
12442 (info_auto_load_libthread_db_compare): Return bool. Change
12443 argument types.
12444 (info_auto_load_libthread_db): Use std::vector, std::string.
12445 Remove cleanups.
12446
281d762b
TT
124472018-02-24 Tom Tromey <tom@tromey.com>
12448
12449 * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a
12450 std::string.
12451 * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a
12452 std::string*.
12453 * gdbarch.c: Rebuild.
12454 * gdbarch.h: Rebuild.
12455 * breakpoint.c (check_fast_tracepoint_sals): Use std::string.
12456 * arch-utils.h (default_fast_tracepoint_valid_at): Update.
12457 * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a
12458 std::string*.
12459
9d8780f0
SM
124602018-02-23 Simon Marchi <simon.marchi@polymtl.ca>
12461
12462 * gdbtypes.h (sect_offset): Change type to uint64_t.
12463 (sect_offset_str): New function.
12464 * dwarf2read.c (create_addrmap_from_aranges): Use
12465 sect_offset_str.
12466 (error_check_comp_unit_head): Likewise.
12467 (create_debug_type_hash_table): Likewise.
12468 (read_cutu_die_from_dwo): Likewise.
12469 (init_cutu_and_read_dies): Likewise.
12470 (init_cutu_and_read_dies_no_follow): Likewise.
12471 (process_psymtab_comp_unit_reader): Likewise.
12472 (partial_die_parent_scope): Likewise.
12473 (peek_die_abbrev): Likewise.
12474 (process_queue): Likewise.
12475 (dwarf2_physname): Likewise.
12476 (read_namespace_alias): Likewise.
12477 (read_import_statement): Likewise.
12478 (create_dwo_cu_reader): Likewise.
12479 (create_cus_hash_table): Likewise.
12480 (lookup_dwo_cutu): Likewise.
12481 (inherit_abstract_dies): Likewise.
12482 (read_func_scope): Likewise.
12483 (read_call_site_scope): Likewise.
12484 (dwarf2_add_member_fn): Likewise.
12485 (read_common_block): Likewise.
12486 (read_module_type): Likewise.
12487 (read_typedef): Likewise.
12488 (read_subrange_type): Likewise.
12489 (load_partial_dies): Likewise.
12490 (read_partial_die): Likewise.
12491 (find_partial_die): Likewise.
12492 (read_str_index): Likewise.
12493 (dwarf2_string_attr): Likewise.
12494 (build_error_marker_type): Likewise.
12495 (lookup_die_type): Likewise.
12496 (dump_die_shallow): Likewise.
12497 (follow_die_ref): Likewise.
12498 (dwarf2_fetch_die_loc_sect_off): Likewise.
12499 (dwarf2_fetch_constant_bytes): Likewise.
12500 (follow_die_sig): Likewise.
12501 (get_signatured_type): Likewise.
12502 (get_DW_AT_signature_type): Likewise.
12503 (dwarf2_find_containing_comp_unit): Likewise.
12504 (set_die_type): Likewise.
12505
8ec57239
JB
125062018-02-21 John Baldwin <jhb@FreeBSD.org>
12507
12508 * arch/aarch64.c: Include "common-defs.h".
12509 * arch/amd64.c: Likewise.
12510 * arch/i386.c: Likewise.
12511
3eac2b65
TT
125122018-02-21 Tom Tromey <tom@tromey.com>
12513
12514 * value.h: (extract_field_op): Update.
12515 * eval.c (extract_field_op): Return a const char *.
12516 * expression.h (parse_expression_for_completion): Update.
12517 * completer.c (complete_expression): Update.
12518 (add_struct_fields): Make fieldname const.
12519 * parse.c (expout_completion_name): Now a unique_xmalloc_ptr.
12520 (mark_completion_tag, parse_exp_in_context_1): Update.
12521 (parse_expression_for_completion): Change "name" to
12522 unique_xmalloc_ptr*.
12523
6ccb583f
TT
125242018-02-21 Tom Tromey <tom@tromey.com>
12525
12526 * infcall.c (call_function_by_hand_dummy): Use std::vector.
12527
c113ed0c
YQ
125282018-02-21 Yao Qi <yao.qi@linaro.org>
12529
12530 * avr-tdep.c (avr_read_pc): Change parameter type to
12531 readable_regcache.
12532 * gdbarch.sh (read_pc): Likewise.
12533 * gdbarch.c: Re-generated.
12534 * gdbarch.h: Re-generated.
12535 * hppa-tdep.c (hppa_read_pc): Change parameter type to
12536 readable_regcache.
12537 * ia64-tdep.c (ia64_read_pc): Likewise.
12538 * mips-tdep.c (mips_read_pc): Likewise.
12539 * spu-tdep.c (spu_read_pc): Likewise.
12540
4c74fe6b
YQ
125412018-02-21 Yao Qi <yao.qi@linaro.org>
12542
12543 * Makefile.in (COMMON_SFILES): Add regcache-dump.c
12544 * regcache-dump.c: New file.
12545 * regcache.c: Move register_dump to regcache-dump.c.
12546 (maintenance_print_registers): Likewise.
12547 (maintenance_print_raw_registers): Likewise.
12548 (maintenance_print_cooked_registers): Likewise.
12549 (maintenance_print_register_groups): Likewise.
12550 (maintenance_print_remote_registers): Likewise.
12551 (_initialize_regcache): Likewise.
12552 * regcache.h (register_dump): Moved from regcache.c.
12553
796bb026
YQ
125542018-02-21 Yao Qi <yao.qi@linaro.org>
12555
12556 * regcache.c (regcache::regcache): Update.
12557 (regcache::invalidate): Move it to detached_regcache::invalidate.
12558 (get_thread_arch_aspace_regcache): Update.
12559 (regcache::raw_update): Update.
12560 (regcache::cooked_read): Remove some code.
12561 (regcache::cooked_read_value): Likewise.
12562 (regcache::raw_write): Remove assert on m_readonly_p.
12563 (regcache::raw_supply_integer): Move it to
12564 detached_regcache::raw_supply_integer.
12565 (regcache::raw_supply_zeroed): Likewise.
12566 * regcache.h (detached_regcache) <raw_supply_integer>: New
12567 declaration.
12568 <raw_supply_zeroed, invalidate>: Likewise.
12569 (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed.
12570 <invalidate>: Likewise.
12571 <m_readonly_p>: Removed.
12572
215c69dc
YQ
125732018-02-21 Yao Qi <yao.qi@linaro.org>
12574
12575 * infcmd.c (get_return_value): Let stop_regs point to
12576 get_current_regcache.
12577 * regcache.c (regcache::regcache): Remove.
12578 (register_dump_reg_buffer): New class.
12579 (regcache_print): Adjust.
12580 * regcache.h (regcache): Remove constructors.
12581
f3384e66
YQ
125822018-02-21 Yao Qi <yao.qi@linaro.org>
12583
12584 * regcache.c (class register_dump): New class.
12585 (register_dump_regcache, register_dump_none): New class.
12586 (register_dump_remote, register_dump_groups): New class.
12587 (regcache_print): Update.
12588 * regcache.h (regcache_dump_what): Move it to regcache.c.
12589 (regcache) <dump>: Remove.
12590
c8ec2f33
YQ
125912018-02-21 Yao Qi <yao.qi@linaro.org>
12592
12593 * jit.c (struct jit_unwind_private) <regcache>: Change its type to
12594 reg_buffer_rw *.
12595 (jit_unwind_reg_set_impl): Call raw_supply.
12596 (jit_frame_sniffer): Use reg_buffer_rw.
12597 * record-full.c (record_full_core_regbuf): Change its type.
12598 (record_full_core_open_1): Use reg_buffer_rw.
12599 (record_full_close): Likewise.
12600 (record_full_core_fetch_registers): Use regcache->raw_supply.
12601 (record_full_core_store_registers): Likewise.
12602 * regcache.c (regcache::get_register_status): Move it to
12603 reg_buffer.
12604 (regcache_raw_set_cached_value): Remove.
12605 (regcache::raw_set_cached_value): Remove.
12606 (regcache::raw_write): Call raw_supply.
12607 (regcache::raw_supply): Move it to reg_buffer_rw.
12608 * regcache.h (regcache_raw_set_cached_value): Remove.
12609 (reg_buffer_rw): New class.
12610
daf6667d
YQ
126112018-02-21 Yao Qi <yao.qi@linaro.org>
12612
12613 * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use
12614 readonly_detached_regcache.
12615 (dummy_frame_prev_register): Use regcache->cooked_read.
12616 * frame.c (frame_save_as_regcache): Change return type.
12617 (frame_pop): Update.
12618 * frame.h (frame_save_as_regcache): Update declaration.
12619 * inferior.h (get_infcall_suspend_state_regcache): Update
12620 declaration.
12621 * infrun.c (infcall_suspend_state) <registers>: use
12622 readonly_detached_regcache.
12623 (save_infcall_suspend_state): Don't use regcache_dup.
12624 (get_infcall_suspend_state_regcache): Change return type.
12625 * linux-fork.c (struct fork_info) <savedregs>: Change to
12626 readonly_detached_regcache.
12627 <pc>: New field.
12628 (fork_save_infrun_state): Don't use regcache_dup.
12629 (info_checkpoints_command): Adjust.
12630 * mi/mi-main.c (register_changed_p): Update declaration.
12631 (mi_cmd_data_list_changed_registers): Use
12632 readonly_detached_regcache.
12633 (register_changed_p): Change parameter type to
12634 readonly_detached_regcache.
12635 * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use
12636 readonly_detached_regcache.
12637 (ppu2spu_sniffer): Construct a new readonly_detached_regcache.
12638 * regcache.c (readonly_detached_regcache::readonly_detached_regcache):
12639 New.
12640 (regcache::save): Move it to reg_buffer.
12641 (regcache::restore): Change parameter type.
12642 (regcache_dup): Remove.
12643 * regcache.h (reg_buffer) <save>: New method.
12644 (readonly_detached_regcache): New class.
12645 * spu-tdep.c (spu2ppu_cache) <regcache>: Use
12646 readonly_detached_regcache.
12647 (spu2ppu_sniffer): Construct a new readonly_detached_regcache.
12648
fc5b8736
YQ
126492018-02-21 Yao Qi <yao.qi@linaro.org>
12650
12651 * frame.c (frame_save_as_regcache): Use regcache method save.
12652 (frame_pop): Use regcache method restore.
12653 * infrun.c (restore_infcall_suspend_state): Likewise.
12654 * linux-fork.c (fork_load_infrun_state): Likewise.
12655 * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method
12656 save.
12657 * regcache.c (regcache_save): Remove.
12658 (regcache::restore): More asserts.
12659 (regcache_cpy): Remove.
12660 * regcache.h (regcache_save): Remove the declaration.
12661 (regcache::restore): Move from private to public.
12662 Remove the friend declaration of regcache_cpy.
12663 (regcache_cpy): Remove declaration.
12664
849d0ba8
YQ
126652018-02-21 Yao Qi <yao.qi@linaro.org>
12666
12667 * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change
12668 parameter type to 'readable_regcache *'.
12669 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
12670 * arm-tdep.c (arm_neon_quad_read): Likewise.
12671 (arm_pseudo_read): Likewise.
12672 * avr-tdep.c (avr_pseudo_register_read): Likewise.
12673 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
12674 * frv-tdep.c (frv_pseudo_register_read): Likewise.
12675 * gdbarch.c: Re-generated.
12676 * gdbarch.h: Re-generated.
12677 * gdbarch.sh (pseudo_register_read): Change parameter type to
12678 'readable_regcache *'.
12679 (pseudo_register_read_value): Likewise.
12680 * h8300-tdep.c (pseudo_from_raw_register): Likewise.
12681 (h8300_pseudo_register_read): Likewise.
12682 * hppa-tdep.c (hppa_pseudo_register_read): Likewise.
12683 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
12684 (i386_pseudo_register_read_into_value): Likewise.
12685 (i386_pseudo_register_read_value): Likewise.
12686 * i386-tdep.h (i386_pseudo_register_read_into_value): Update
12687 declaration.
12688 * ia64-tdep.c (ia64_pseudo_register_read): Likewise.
12689 * m32c-tdep.c (m32c_raw_read): Likewise.
12690 (m32c_read_flg): Likewise.
12691 (m32c_banked_register): Likewise.
12692 (m32c_banked_read): Likewise.
12693 (m32c_sb_read): Likewise.
12694 (m32c_part_read): Likewise.
12695 (m32c_cat_read): Likewise.
12696 (m32c_r3r2r1r0_read): Likewise.
12697 (m32c_pseudo_register_read): Likewise.
12698 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
12699 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
12700 (mep_pseudo_cr64_read): Likewise.
12701 (mep_pseudo_register_read): Likewise.
12702 * mips-tdep.c (mips_pseudo_register_read): Likewise.
12703 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
12704 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
12705 * regcache.c (regcache::raw_read): Move it to readable_regcache.
12706 (regcache::cooked_read): Likewise.
12707 (regcache::cooked_read_value): Likewise.
12708 (regcache_cooked_read_signed):
12709 (regcache::cooked_read): Likewise.
12710 * regcache.h (readable_regcache): New class.
12711 (regcache): Inherit readable_regcache. Move some methods to
12712 readable_regcache.
12713 * rl78-tdep.c (rl78_pseudo_register_read): Change
12714 parameter type to 'readable_regcache *'.
12715 * rs6000-tdep.c (do_regcache_raw_read): Remove.
12716 (e500_pseudo_register_read): Change parameter type to
12717 'readable_regcache *'.
12718 (dfp_pseudo_register_read): Likewise.
12719 (vsx_pseudo_register_read): Likewise.
12720 (efpr_pseudo_register_read): Likewise.
12721 * s390-tdep.c (s390_pseudo_register_read): Likewise.
12722 * sh-tdep.c (sh_pseudo_register_read): Likewise.
12723 * sh64-tdep.c (pseudo_register_read_portions): Likewise.
12724 (sh64_pseudo_register_read): Likewise.
12725 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
12726 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
12727 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
12728 (spu_pseudo_register_read): Likewise.
12729 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
12730 (xtensa_pseudo_register_read): Likewise.
12731
31716595
YQ
127322018-02-21 Yao Qi <yao.qi@linaro.org>
12733
12734 * regcache.c (regcache::regcache): Call reg_buffer ctor.
12735 (regcache::arch): Move it to reg_buffer::arch.
12736 (regcache::register_buffer): Likewise.
12737 (regcache::assert_regnum): Likewise.
12738 (regcache::num_raw_registers): Likewise.
12739 * regcache.h (reg_buffer): New class.
12740 (regcache): Inherit reg_buffer.
12741
7104e59b
SM
127422018-02-20 Simon Marchi <simon.marchi@ericsson.com>
12743
12744 * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
12745 gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF.
12746
2d8adcbd
MM
127472018-02-20 Markus Metzger <markus.t.metzger@intel.com>
12748
12749 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp.
12750
b5884fa7
AH
127512018-02-19 Alan Hayward <alan.hayward@arm.com>
12752
12753 * Makefile.in: (COMMON_SFILES): Add common/*.c files.
12754 (SFILES): Remove common/*.c files.
12755 (COMMON_OBS): Remove some *.o files built from common/*.c files.
12756 * common/common.host: Add common reference.
12757 * configure.ac: Likewise.
12758 * configure: Regenerate.
12759
fd90ace4
YQ
127602018-02-16 Yao Qi <yao.qi@linaro.org>
12761
12762 * block.c (block_namespace_info): Inherit allocate_on_obstack.
12763 (block_initialize_namespace): Use new.
12764 * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack.
12765 (dwarf2_free_objfile): Use delete.
12766 * gdbtypes.c (type_pair): Inherit allocate_on_obstack.
12767 (copy_type_recursive): Use new.
12768 * gdb_obstack.h (allocate_on_obstack): New.
12769
85046ae2
YQ
127702018-02-15 Yao Qi <yao.qi@linaro.org>
12771
12772 PR gdb/22849
12773 * inferior.c (exit_inferior_1): Reset inf->control.
12774
355c559b
JB
127752018-02-15 Joel Brobecker <brobecker@adacore.com>
12776
12777 * ada-lang.c (ada_to_fixed_value_create): Delete advance
12778 declaration.
12779
980548fd
PA
127802018-02-14 Pedro Alves <palves@redhat.com>
12781
12782 * frame-unwind.c (frame_unwind_try_unwinder): Always call
12783 frame_cleanup_after_sniffer on exception.
12784
692d6f97
TT
127852018-02-14 Tom Tromey <tom@tromey.com>
12786
12787 * solist.h (struct target_so_ops) <bfd_open>: Make pathname
12788 const.
12789 (solib_bfd_open): Make pathname const.
12790 * solib.c (solib_bfd_open): Make pathname const.
12791 * solib-spu.c (spu_bfd_fopen): Make name const.
12792 (spu_bfd_open): Make pathname const.
12793 * solib-darwin.c (darwin_bfd_open): Make pathname const.
12794 * solib-aix.c (solib_aix_bfd_open): Make pathname const.
12795
e0cc99a6
TT
127962018-02-14 Tom Tromey <tom@tromey.com>
12797
12798 * symfile.c (symfile_bfd_open): Update.
12799 * source.h (openp, source_full_path_of, find_and_open_source):
12800 Change argument type to unique_xmalloc_ptr.
12801 * source.c (openp): Take a unique_xmalloc_ptr.
12802 (source_full_path_of, find_and_open_source): Likewise.
12803 (open_source_file, symtab_to_fullname): Update.
12804 * solist.h (struct target_so_ops) <find_and_open_solib>: Take a
12805 unique_xmalloc_ptr.
12806 * solib.c (solib_find_1): Use unique_xmalloc_ptr.
12807 (exec_file_find): Update.
12808 * psymtab.c (psymtab_to_fullname): Update.
12809 * nto-tdep.h (nto_find_and_open_solib): Update.
12810 * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a
12811 unique_xmalloc_ptr.
12812 * exec.c (exec_file_attach): Update.
12813 * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr.
12814 * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr.
12815
b46a8d7c
TT
128162018-02-14 Tom Tromey <tom@tromey.com>
12817
12818 * solib.c: Include source.h.
12819 * nto-tdep.c: Include source.h.
12820 * mi/mi-cmd-env.c: Include source.h.
12821 * infcmd.c: Include source.h.
12822 * exec.c: Include source.h.
12823 * defs.h (enum openp_flag, openp, source_full_path_of, mod_path)
12824 (add_path, directory_switch, source_path, init_source_path): Move
12825 declarations...
12826 * source.h (enum openp_flag, openp, source_full_path_of, mod_path)
12827 (add_path, directory_switch, source_path, init_source_path):
12828 ...here.
12829
797bc1cb
TT
128302018-02-14 Tom Tromey <tom@tromey.com>
12831
12832 * solist.h (exec_file_find, solib_find): Return
12833 unique_xmalloc_ptr.
12834 (solib_bfd_fopen): Take a const char *.
12835 * solib.c (solib_find_1): Return unique_xmalloc_ptr.
12836 (exec_file_find, solib_find): Likewise.
12837 (solib_bfd_fopen): Do not take ownership of "pathname".
12838 (solib_bfd_open): Use unique_xmalloc_ptr.
12839 * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr.
12840 * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr.
12841 * infrun.c (follow_exec): Use unique_xmalloc_ptr.
12842 * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr.
12843
f98b2e33
JB
128442018-02-14 Joel Brobecker <brobecker@adacore.com>
12845
12846 * ada-lang.c (name_match_type_from_name): Remove reference to
12847 ada_name_for_lookup in function's documentation.
12848 * ada-lang.h (ada_name_for_lookup): Delete declaration.
12849
24b9144d
SM
128502018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
12851
12852 * defs.h (enum openp_flags): New enum.
12853 (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH):
12854 Move to enum openp_flags.
12855 (openp_flags): New enum flags.
12856 (openp): Change parameter type to openp_flags.
12857 * source.c (openp): Change parameter type to openp_flags.
12858 * cli/cli-cmds.c (find_and_open_script): Use openp_flags.
12859 * dwarf2read.c (try_open_dwop_file): Use openp_flags.
12860
387cd15b
SM
128612018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
12862
12863 * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show
12864 per-command.
12865
b303c6f6
AB
128662018-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
12867
12868 * dwarf2read.c (dwarf2_release_queue): Delete function, move body
12869 into...
12870 (class dwarf2_queue_guard): ...the destructor of this new class.
12871 (dw2_do_instantiate_symtab): Create instance of the new class
12872 dwarf2_queue_guard, remove cleanup.
12873
9c3630e9
TT
128742018-02-09 Tom Tromey <tom@tromey.com>
12875
12876 * source.c (find_source_lines): Don't reference past the end of
12877 the vector.
12878
c4e12631
MM
128792018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12880
12881 * remote.c (remote_btrace_maybe_reopen): Change error message.
12882 * btrace.c (btrace_enable): Likewise.
12883 (parse_xml_btrace): Likewise.
12884 (parse_xml_btrace_conf): Likewise.
12885
88711fbf
MM
128862018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12887
12888 * nat/linux-btrace.c (diagnose_perf_event_open_fail): New.
12889 (linux_enable_pt, linux_enable_bts): Call
12890 diagnose_perf_event_open_fail.
12891
17ad2a4f
MM
128922018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12893
12894 * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message.
12895 Remove parameter and change return type. Update callers. Move it.
12896 (linux_enable_bts, linux_enable_pt): Improve error message.
12897 (linux_enable_pt): Remove zero buffer size check.
12898 (linux_enable_btrace): Improve error messages. Remove NULL return
12899 check.
12900
de6242d3
MM
129012018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12902
12903 * btrace.c (btrace_enable): Remove target_supports_btrace call.
12904 * nat/linux-btrace.c (perf_event_pt_event_type): Move.
12905 (kernel_supports_bts, kernel_supports_pt, linux_supports_bts)
12906 (linux_supports_pt, linux_supports_btrace): Remove.
12907 (linux_enable_bts): Call cpu_supports_bts.
12908 * nat/linux-btrace.h (linux_supports_btrace): Remove.
12909 * remote.c (remote_supports_btrace): Remove.
12910 (init_remote_ops): Remove remote_supports_btrace.
12911 * target-delegates.c: Regenerated.
12912 * target.c (target_supports_btrace): Remove.
12913 * target.h (target_ops) <to_supports_btrace>: Remove
12914 (target_supports_btrace): Remove.
12915 * x86-linux-nat.c (x86_linux_create_target): Remove
12916 linux_supports_btrace.
12917
9ee23a85
MM
129182018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12919
12920 * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling
12921 btrace failed.
12922 * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling
12923 exception and use message in own exception.
12924
5c3284c1
MM
129252018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12926
12927 * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h.
12928 (perf_event_pt_event_type): Use gdb_file_up.
12929 (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr,
12930 scoped_fd, and scoped_mmap.
12931
84696f37
MM
129322018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12933
12934 * common/scoped_mmap.h: New.
12935 * unittests/scoped_mmap-selftest.c: New.
12936 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12937 unittests/scoped_mmap-selftest.c.
12938
ea4a0888
MM
129392018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12940
12941 * common/scoped_fd.h: New.
12942 * unittests/scoped_fd-selftest.c: New.
12943 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12944 unittests/scoped_fd-selftest.c.
12945
869e8290
TT
129462018-02-09 Tom Tromey <tom@tromey.com>
12947
12948 * auto-load.c (auto_load_section_scripts): Use
12949 gdb::unique_xmalloc_ptr.
12950
a37a2ae7
TT
129512018-02-09 Tom Tromey <tom@tromey.com>
12952
12953 * auto-load.c (execute_script_contents): Use std::string.
12954
4e725347
JB
129552018-02-09 Joel Brobecker <brobecker@adacore.com>
12956
12957 * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new
12958 Python function, rather than a new command.
12959
9a897d43
TT
129602018-02-08 Tom Tromey <tom@tromey.com>
12961
12962 * solib.c (solib_find_1): Use std::string.
12963 (solib_bfd_fopen): Use unique_xmalloc_ptr.
12964
58ef3771
TT
129652018-02-08 Tom Tromey <tom@tromey.com>
12966
12967 * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr.
12968
a9abc434
TT
129692018-02-08 Tom Tromey <tom@tromey.com>
12970
12971 * source.c (find_source_lines): Use gdb::def_vector.
12972
84f27c6f
TT
129732018-02-08 Tom Tromey <tom@tromey.com>
12974
12975 * macrocmd.c (struct temporary_macro_definition): New.
12976 (macro_define_command): Use temporary_macro_definition. Remove
12977 cleanups.
12978 (free_macro_definition_ptr): Remove.
12979
0354904b
TT
129802018-02-08 Tom Tromey <tom@tromey.com>
12981
12982 * macroexp.c (maybe_expand): Use std::string.
12983
1739cf24
TT
129842018-02-08 Tom Tromey <tom@tromey.com>
12985
12986 * macroexp.c (struct macro_buffer): Add initializers for some
12987 members.
12988 (init_buffer, init_shared_buffer, free_buffer)
12989 (free_buffer_return_text): Remove.
12990 (macro_buffer): New constructors.
12991 (~macro_buffer): New destructor.
12992 (macro_buffer::set_shared): New method.
12993 (macro_buffer::resize_buffer, macro_buffer::appendc)
12994 (macro_buffer::appendmem): Now methods, not free functions.
12995 (set_token, append_tokens_without_splicing, stringify)
12996 (macro_stringify): Update.
12997 (gather_arguments): Change return type. Remove argc_p argument,
12998 add args_ptr argument. Use std::vector.
12999 (substitute_args): Remove argc argument. Accept std::vector.
13000 (expand): Update. Use std::vector.
13001 (scan, macro_expand, macro_expand_next): Update.
13002
f6c2623e
TT
130032018-02-08 Tom Tromey <tom@tromey.com>
13004
13005 * symtab.c (default_collect_symbol_completion_matches_break_on):
13006 Use unique_xmalloc_ptr.
13007 * macroscope.h: (sal_macro_scope, user_macro_scope)
13008 (default_macro_scope): Return unique_xmalloc_ptr.
13009 * macroscope.c (sal_macro_scope, user_macro_scope)
13010 (default_macro_scope): Return unique_xmalloc_ptr.
13011 * macroexp.h (macro_expand, macro_expand_once): Return
13012 unique_xmalloc_ptr.
13013 * macroexp.c (macro_expand, macro_expand_once): Return
13014 unique_xmalloc_ptr.
13015 * macrocmd.c (macro_expand_command, macro_expand_once_command)
13016 (info_macro_command, info_macros_command): Use
13017 unique_xmalloc_ptr.
13018 * compile/compile-c-support.c (write_macro_definitions): Use
13019 unique_xmalloc_ptr.
13020 * c-exp.y (c_parse): Use unique_xmalloc_ptr.
13021
c2e0e465
SM
130222018-02-07 Simon Marchi <simon.marchi@ericsson.com>
13023
13024 * value.c (value_static_field): Assign field type instead of
13025 containing type when returning an optimized out value.
13026
3f8c94b4
YQ
130272018-02-06 Yao Qi <yao.qi@linaro.org>
13028
13029 * ft32-tdep.c (ft32_read_pc): Remove.
13030 (ft32_write_pc): Remove.
13031 (ft32_gdbarch_init): Update.
13032 * m32r-tdep.c (m32r_read_pc): Remove.
13033 (m32r_gdbarch_init): Update.
13034 * mep-tdep.c (mep_read_pc): Remove.
13035 (mep_gdbarch_init): Update.
13036 * microblaze-tdep.c (microblaze_write_pc): Remove.
13037 (microblaze_gdbarch_init): Update.
13038 * mn10300-tdep.c (mn10300_read_pc): Remove.
13039 (mn10300_write_pc): Remove.
13040 (mn10300_gdbarch_init): Update.
13041 * moxie-tdep.c (moxie_read_pc): Remove.
13042 (moxie_write_pc): Remove.
13043 (moxie_gdbarch_init): Update.
13044
bca65a23
YQ
130452018-02-06 Yao Qi <yao.qi@linaro.org>
13046
13047 * expprint.c (print_subexp_standard): Handle
13048 OP_F77_UNDETERMINED_ARGLIST.
13049 (dump_subexp_body_standard): Likewise.
13050
583e3f90 130512018-02-05 Alan Hayward <alan.hayward@arm.com>
b8df6ca7 13052
583e3f90
YQ
13053 * target-descriptions.c (tdesc_element_visitor) Add empty
13054 implementations.
b8df6ca7
AH
13055 (tdesc_type): Move make_gdb_type from here.
13056 (tdesc_type_builtin): Likewise.
13057 (tdesc_type_vector): Likewise.
13058 (tdesc_type_with_fields): Move make_gdb_type_ functions from here.
13059 (make_gdb_type_struct): Move from tdesc_type_with_fields.
13060 (make_gdb_type_union): Likewise.
13061 (make_gdb_type_flags): Likewise.
13062 (make_gdb_type_enum): Likewise.
13063 (make_gdb_type): New function.
13064 (tdesc_register_type): Use static make_gdb_type.
13065
e813d34a
RK
130662018-02-05 Ruslan Kabatsayev <b7.10110111@gmail.com>
13067
13068 * infcmd.c (default_print_one_register_info): Align natural-format
13069 column values consistently one under another.
13070 (pad_to_column): New function.
13071
0eb876f5
JB
130722018-02-05 Joel Brobecker <brobecker@adacore.com>
13073
13074 * dwarf2read.c (dwarf2_physname): Move commment.
13075
0625771b
LS
130762018-02-01 Leszek Swirski <leszeks@google.com>
13077
13078 * varobj.c (varobj_formatted_print_options): Allow recursive
13079 pretty printing if pretty printing is enabled.
13080
59498c30
LS
130812018-02-01 Leszek Swirski <leszeks@google.com>
13082
13083 * c-exp.y (lex_one_token, classify_name, yylex): Don't classify
13084 names after a structop as a filename.
13085
2d9e6acb
YQ
130862018-02-01 Yao Qi <yao.qi@linaro.org>
13087
13088 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it.
13089 (arm_record_coproc_data_proc): Likewise.
13090
df95a9cf
YQ
130912018-02-01 Yao Qi <yao.qi@linaro.org>
13092
13093 * arm-tdep.c (arm_record_extension_space): Change ret to signed.
13094
07e5f5cf
NP
130952018-01-31 Nikola Prica <nikola.prica@rt-rk.com>
13096
13097 * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and
13098 assign shifted lr_reg to fdata->lr_register when lr_reg is set.
13099
3045b475
PA
131002018-01-31 Pedro Alves <palves@redhat.com>
13101
13102 * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter.
13103 * inflow.c (child_terminal_save_inferior): Wrap reference to
13104 tcgetpgrp in HAVE_TERMIOS_H.
13105 (child_interrupt, child_pass_ctrlc): Wrap references to signal in
13106 _WIN32.
13107 * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and
13108 always iterate over all inferiors.
13109 (gdbsim_cntrl_c): Adjust.
13110 * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter.
13111
929b5ad4
JB
131122018-01-31 Joel Brobecker <brobecker@adacore.com>
13113
13114 * gdbtypes.c (lookup_array_range_type): Make sure the array's
13115 index type is objfile-owned if the element type is as well.
13116
29236ca2
JB
131172018-01-31 Joel Brobecker <brobecker@adacore.com>
13118
13119 GDB 8.1 released.
13120
c81e8879
PR
131212018-01-30 Philipp Rudo <prudo@linux.vnet.ibm.com>
13122
13123 * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and
13124 "features/s390x-linux64.c".
13125 (_initialize_s390_linux_tdep): Remove initialization of tdescs
13126 s390_linux32 and s390x_linux64.
13127 (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set
13128 default tdesc.
13129 * s390-tdep.c: Include "features/s390-linux32.c" and
13130 "features/s390x-linux64.c".
13131 (s390_tdesc_valid): Add check for tdesc_has_registers.
13132 (s390_gdbarch_init): Make sure there is always a valid tdesc.
13133 (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and
13134 tdesc_s390x_linux64.
13135 * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and
13136 tdesc_s390x_linux64 to...
13137 * s390-tdep.h: ...here.
13138
e671cd59
PA
131392018-01-30 Pedro Alves <palves@redhat.com>
13140
13141 PR gdb/13211
13142 * config.in, configure: Regenerate.
13143 * configure.ac: Check for getpgid.
13144 * go32-nat.c (go32_pass_ctrlc): New.
13145 (go32_target): Install it.
13146 * inf-child.c (inf_child_target): Install
13147 child_terminal_save_inferior, child_pass_ctrlc and
13148 child_interrupt.
13149 * inf-ptrace.c (inf_ptrace_interrupt): Delete.
13150 (inf_ptrace_target): No longer install it.
13151 * infcmd.c (interrupt_target_1): Adjust.
13152 * inferior.h (child_terminal_save_inferior, child_pass_ctrlc)
13153 (child_interrupt): Declare.
13154 (inferior::terminal_state): New.
13155 * inflow.c (struct terminal_info): Update comments.
13156 (inferior_process_group): Delete.
13157 (terminal_is_ours): Delete.
13158 (gdb_tty_state): New.
13159 (child_terminal_init): Adjust.
13160 (is_gdb_terminal, sharing_input_terminal_1)
13161 (sharing_input_terminal): New functions.
13162 (child_terminal_inferior): Adjust. Use sharing_input_terminal.
13163 Set the process's actual process group in the foreground if
13164 possible. Handle is_ours_for_output/is_ours distinction. Don't
13165 mark terminal as the inferior's if not sharing GDB's terminal.
13166 Don't check attach_flag.
13167 (child_terminal_ours_for_output, child_terminal_ours): Adjust to
13168 pass down a target_terminal_state.
13169 (child_terminal_save_inferior): New, factored out from ...
13170 (child_terminal_ours_1): ... this. Handle
13171 target_terminal_state::is_ours_for_output.
13172 (child_interrupt, child_pass_ctrlc): New.
13173 (inflow_inferior_exit): Clear the inferior's terminal_state.
13174 (copy_terminal_info): Copy the inferior's terminal state.
13175 (_initialize_inflow): Remove reference to terminal_is_ours.
13176 * inflow.h (inferior_process_group): Delete.
13177 * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust.
13178 * procfs.c (procfs_target): Don't install procfs_interrupt.
13179 (procfs_interrupt): Delete.
13180 * remote.c (remote_serial_quit_handler): Adjust.
13181 (remote_interrupt): Remove ptid parameter. Adjust.
13182 * target-delegates.c: Regenerate.
13183 * target.c: Include "terminal.h".
13184 (target_terminal::terminal_state): Rename to ...
13185 (target_terminal::m_terminal_state): ... this.
13186 (target_terminal::init): Adjust.
13187 (target_terminal::inferior): Adjust to per-inferior
13188 terminal_state.
13189 (target_terminal::restore_inferior, target_terminal_is_ours_kind): New.
13190 (target_terminal::ours, target_terminal::ours_for_output): Use
13191 target_terminal_is_ours_kind.
13192 (target_interrupt): Remove ptid parameter. Adjust.
13193 (default_target_pass_ctrlc): Adjust.
13194 * target.h (target_ops::to_terminal_save_inferior): New field.
13195 (target_ops::to_interrupt): Remove ptid_t parameter.
13196 (target_interrupt): Remove ptid_t parameter. Update comment.
13197 (target_pass_ctrlc): Update comment.
13198 * target/target.h (target_terminal_state): New scoped enum,
13199 factored out of ...
13200 (target_terminal::terminal_state): ... here.
13201 (target_terminal::inferior): Update comments.
13202 (target_terminal::restore_inferior): New.
13203 (target_terminal::is_inferior, target_terminal::is_ours)
13204 (target_terminal::is_ours_for_output): Adjust.
13205 (target_terminal::scoped_restore_terminal_state): Adjust to
13206 rename, and call restore_inferior() instead of inferior().
13207 (target_terminal::scoped_restore_terminal_state::m_state): Change
13208 type.
13209 (target_terminal::terminal_state): Rename to ...
13210 (target_terminal::m_terminal_state): ... this and change type.
13211
9c3a5d93
PA
132122018-01-30 Pedro Alves <palves@redhat.com>
13213
13214 * linux-nat.c (wait_for_signal): New function.
13215 (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend
13216 directly.
13217 (async_terminal_is_ours)
13218 (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete.
13219 (linux_nat_add_target): Don't override
13220 to_terminal_inferior/to_terminal_ours.
13221
69ab5edb
SDJ
132222018-01-29 Sergio Durigan Junior <sergiodj@redhat.com>
13223
13224 * remote.c (remote_follow_fork): Don't call "detach_inferior".
13225
fc8e7e75
SM
132262018-01-28 Simon Marchi <simon.marchi@ericsson.com>
13227
13228 * dwarf2read.c (free_dwo_files): Add forward-declaration.
13229 (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from
13230 dwarf2_per_objfile_free here.
13231 (dwarf2_per_objfile_free): Remove.
13232 (_initialize_dwarf2_read): Don't register
13233 dwarf2_per_objfile_free as a registry cleanup.
13234
b2a426e2
EZ
132352018-01-27 Eli Zaretskii <eliz@gnu.org>
13236
13237 Avoid compilation errors in MinGW native builds
13238
13239 The error is triggered by including python-internal.h, and the
13240 error message is:
13241
13242 In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0,
13243 from build-gnulib/import/math.h:27,
13244 from d:/usr/Python26/include/pyport.h:235,
13245 from d:/usr/Python26/include/Python.h:58,
13246 from python/python-internal.h:94,
13247 from python/py-arch.c:24:
13248 d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared
13249 using ::hypot;
13250 ^~~~~
13251
13252 This happens because Python headers define 'hypot' to expand t
13253 '_hypot' in the Windows builds.
13254 * python/python-internal.h (_hypot) [__MINGW32__]: Define back to
13255 'hypoth'. This avoids a compilation error.
13256
0bdd8eac
AH
132572018-01-26 Alan Hayward <alan.hayward@arm.com>
13258
13259 * MAINTAINERS (Write After Approval): Fix ordering.
13260
56ae9dc3
AH
132612018-01-26 Alan Hayward <alan.hayward@arm.com>
13262
13263 * MAINTAINERS (Write After Approval): Add Alan Hayward.
13264
7433498b
AM
132652018-01-26 Alan Modra <amodra@gmail.com>
13266
13267 * ppc-linux-tdep.c (powerpc32_plt_stub): Make const.
13268 (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so.
13269 Remove nop. Make const. Comment.
13270 (powerpc32_plt_stub_so_2): New.
13271 (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN.
13272 Correct count. Update uses.
13273 (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too.
13274 Move common code reading PLT entry word. Correct
13275 powerpc32_plt_stub PLT address calculation.
13276 * ppc64-tdep.c (ppc64_standard_linkage1): Make const.
13277 (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise.
13278 (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise.
13279 (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise.
13280 (ppc64_standard_linkage8): Likewise.
13281 * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const.
13282 Correct insns description.
13283 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
13284
0f59d5fc
PA
132852018-01-24 Pedro Alves <palves@redhat.com>
13286
13287 GCC PR libstdc++/83906
13288 * gdbtypes.c (operator==(const dynamic_prop &,
13289 const dynamic_prop &)): New.
13290 (operator==(const range_bounds &, const range_bounds &)): New.
13291 (check_types_equal): Use them instead of memcmp.
13292 * gdbtypes.h (operator==(const dynamic_prop &,
13293 const dynamic_prop &)): Declare.
13294 (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare.
13295 (operator==(const range_bounds &, const range_bounds &)): Declare.
13296 (operator!=(const range_bounds &, const range_bounds &)): Declare.
13297
ef8914a4
PR
132982018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13299
13300 * s390-linux-tdep.c (s390_record_address_mask)
13301 (s390_record_calc_disp_common, s390_record_calc_disp)
13302 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
13303 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
13304 (s390_process_record): Move to s390-tdep.c.
13305 (s390_linux_init_abi_any): Adjust.
13306 * s390-tdep.c (s390_record_address_mask)
13307 (s390_record_calc_disp_common, s390_record_calc_disp)
13308 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
13309 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
13310 (s390_process_record): Moved from s390-linux-tdep.c
13311 (s390_gdbarch_init): Adjust.
13312
d6e58945
PR
133132018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13314
13315 * s390-linux-nat.c (s390-tdep.h): New include.
13316 * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o.
13317 (HFILES_NO_SRCDIR): Add s390-tdep.h.
13318 (ALLDEPFILES): Add s390-tdep.c.
13319 * configure.tgt (s390*-*-linux*): Add s390-tdep.o.
13320 * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to...
13321 * s390-tdep.h: ...this. New file.
13322 * s390-linux-tdep.c (s390-tdep.h): New include.
13323 (_initialize_s390_tdep): Rename to...
13324 (_initialize_s390_linux_tdep): ...this and adjust.
13325 (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep)
13326 (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to
13327 s390-tdep.h.
13328 (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri)
13329 (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy)
13330 (s390_is_partial_instruction, s390_software_single_step)
13331 (is_non_branch_ril, s390_displaced_step_copy_insn)
13332 (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep)
13333 (s390_prologue_data, s390_addr, s390_store, s390_load)
13334 (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue)
13335 (s390_register_call_saved, s390_guess_tracepoint_registers)
13336 (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum)
13337 (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register)
13338 (s390_pseudo_register_name, s390_pseudo_register_type)
13339 (s390_pseudo_register_read, s390_pseudo_register_write)
13340 (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect)
13341 (s390_ax_pseudo_register_push_stack, s390_gen_return_address)
13342 (s390_addr_bits_remove, s390_address_class_type_flags)
13343 (s390_address_class_type_flags_to_name)
13344 (s390_address_class_name_to_type_flags, s390_effective_inner_type)
13345 (s390_function_arg_float, s390_function_arg_vector)
13346 (is_power_of_two, s390_function_arg_integer, s390_arg_state)
13347 (s390_handle_arg, s390_push_dummy_call, s390_dummy_id)
13348 (s390_frame_align, s390_register_return_value, s390_return_value)
13349 (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp)
13350 (s390_unwind_pseudo_register, s390_adjust_frame_regnum)
13351 (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg)
13352 (s390_trad_frame_prev_register, s390_unwind_cache)
13353 (s390_prologue_frame_unwind_cache)
13354 (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache)
13355 (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind)
13356 (s390_stub_unwind_cache, s390_stub_frame_unwind_cache)
13357 (s390_stub_frame_this_id, s390_stub_frame_prev_register)
13358 (s390_stub_frame_sniffer, s390_stub_frame_unwind)
13359 (s390_frame_base_address, s390_local_base_address)
13360 (s390_frame_base, s390_gcc_target_options)
13361 (s390_gnu_triplet_regexp, s390_stap_is_single_operand)
13362 (s390_validate_reg_range, s390_tdesc_valid)
13363 (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to...
13364 * s390-tdep.c: ...this. New file.
13365
9c0b896e
PR
133662018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13367
13368 * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook.
13369 (s390_process_record, s390_gdbarch_tdep_alloc)
13370 (s390_linux_init_abi_any): Use/set new hook.
13371
7042632b
PR
133722018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13373
13374 * s390-linux-tdep.c (osabi.h): New include.
13375 (s390_linux_init_abi_31, s390_linux_init_abi_64)
13376 (s390_linux_init_abi_any): New functions.
13377 (s390_gdbarch_init, _initialize_s390_tdep): Adjust.
13378
650f5e13
PR
133792018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13380
13381 * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for
13382 tdesc_has_registers check
13383
47c9317e
PR
133842018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13385
13386 * s390-linux-tdep.c (s390_tdesc_valid): New function.
13387 (s390_validate_reg_range): New macro.
13388 (s390_gdbarch_init): Adjust.
13389
095085d8
PR
133902018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13391
13392 * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field.
13393 (s390_gdbarch_tdep_alloc): Adjust.
13394 (s390_gdbarch_init): Adjust.
13395
ab9bcc67
PR
133962018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13397
13398 * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2>
13399 <have_tdb>: Change type to bool.
13400 (s390_gdbarch_tdep_alloc): Adjust.
13401 (s390_gdbarch_init): Adjust.
13402
21f6f5ff
PR
134032018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13404
13405 * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field.
13406 (gdbarch_tdep) <have_upper, have_vx>: New fields.
13407 (s390_gdbarch_tdep_alloc): New function.
13408 (s390_gdbarch_init): Allocate tdep at start and use its fields
13409 instead of separate variables.
13410
0eb97953
PR
134112018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13412
13413 * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
13414 when looking for cached gdbarch and add comment for remaining.
13415
5c319bb2
PA
134162018-01-22 Pedro Alves <palves@redhat.com>
13417 Sergio Durigan Junior <sergiodj@redhat.com>
13418
13419 * typeprint.c (whatis_exp): Initialize "val" in the "whatis type"
13420 case.
13421
d65ce302
MR
134222018-01-22 Maciej W. Rozycki <macro@mips.com>
13423
13424 * MAINTAINERS: Update my company e-mail address.
13425
ec7a5fcb
YQ
134262018-01-22 Yao Qi <yao.qi@linaro.org>
13427
13428 * regcache.c (cooked_write_test): New function.
13429 (_initialize_regcache): Register the test.
13430
11f57cb6
YQ
134312018-01-22 Yao Qi <yao.qi@linaro.org>
13432
13433 * ia64-tdep.c (ia64_pseudo_register_read): Call
13434 regcache->cooked_read instead of regcache_cooked_read_unsigned.
13435 * m32c-tdep.c (m32c_cat_read): Likewise.
13436 (m32c_r3r2r1r0_read): Likewise.
13437 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
13438 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
13439
03f50fc8
YQ
134402018-01-22 Yao Qi <yao.qi@linaro.org>
13441
13442 * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
13443 method raw_read instead of regcache_raw_read.
13444 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
13445 * arm-tdep.c (arm_neon_quad_read): Likewise.
13446 * avr-tdep.c (avr_pseudo_register_read): Likewise.
13447 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
13448 * frv-tdep.c (frv_pseudo_register_read): Likewise.
13449 * h8300-tdep.c (h8300_pseudo_register_read): Likewise.
13450 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
13451 (i386_pseudo_register_read_into_value): Likewise.
13452 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
13453 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
13454 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
13455 * rl78-tdep.c (rl78_pseudo_register_read): Likewise.
13456 * s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
13457 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
13458 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
13459 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
13460 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
13461
dc711524
YQ
134622018-01-22 Yao Qi <yao.qi@linaro.org>
13463
13464 * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
13465 * configure.tgt: Remove target mt.
13466 * mt-tdep.c: Remove.
13467 * regcache.c (cooked_read_test): Remove the check for mt.
13468
3f5a868b
YQ
134692018-01-22 Yao Qi <yao.qi@linaro.org>
13470
13471 * jit.c (jit_frame_prev_register): Call regcache::cooked_read
13472 instead of gdbarch_pseudo_register_read_value.
13473
de4cb04a
JB
134742018-01-22 Joel Brobecker <brobecker@adacore.com>
13475
13476 * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
13477 language is Ada.
13478
a9e40818
JB
134792018-01-22 Joel Brobecker <brobecker@adacore.com>
13480
13481 * linespec.c (create_sals_line_offset): Remove code that preserved
13482 the symtab_and_line's line number.
13483
e707fc44
AB
134842018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
13485
13486 * varobj.c (varobj_create): Don't set valid_block when creating a
13487 floating varobj.
13488
03d0bf7b
AB
134892018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
13490
13491 * varobj.c (varobj_create): Remove out of date comment.
13492
ae451627
AB
134932018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
13494
13495 PR mi/20395
13496 * ada-exp.y (write_var_from_sym): Pass extra parameter when
13497 updating innermost block.
13498 * parse.c (innermost_block_tracker::update): Take extra type
13499 parameter, and check types match before updating innermost block.
13500 (write_dollar_variable): Update innermost block for registers.
13501 * parser-defs.h (enum innermost_block_tracker_type): New enum.
13502 (innermost_block_tracker::innermost_block_tracker): Initialise
13503 m_types member.
13504 (innermost_block_tracker::reset): Take type parameter.
13505 (innermost_block_tracker::update): Take type parameter, and pass
13506 type through as needed.
13507 (innermost_block_tracker::m_types): New member.
13508 * varobj.c (varobj_create): Pass type when reseting innermost
13509 block.
13510
aee1fcdf
AB
135112018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
13512
13513 * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
13514 * ada-lang.c (resolve_subexp): Likewise.
13515 * breakpoint.c (set_breakpoint_condition) Likewise.
13516 (watch_command_1) Likewise.
13517 * c-exp.y (variable): Likewise.
13518 * d-exp.y (PrimaryExpression): Likewise.
13519 * f-exp.y (variable): Likewise.
13520 * go-exp.y (variable): Likewise.
13521 * m2-exp.y (variable): Likewise.
13522 * objfiles.c (objfile::~objfile): Likewise.
13523 * p-exp.y (variable): Likewise.
13524 * parse.c (innermost_block): Change type.
13525 * parser-defs.h (class innermost_block_tracker): New.
13526 (innermost_block): Change to innermost_block_tracker.
13527 * printcmd.c (display_command): Switch to innermost_block API.
13528 (do_one_display): Likewise.
13529 * rust-exp.y (do_one_display): Likewise.
13530 * symfile.c (clear_symtab_users): Likewise.
13531 * varobj.c (varobj_create): Switch to innermost_block API, replace
13532 use of innermost_block with block stored on varobj object.
13533
396af9a1
AB
135342018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
13535
13536 * expression.h (innermost_block): Remove declaration.
13537 * varobj.c: Add 'parser-defs.h' include.
13538
fcfcc376
TT
135392018-01-19 Tom Tromey <tom@tromey.com>
13540
13541 * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
13542 symbols in the static and global blocks.
13543
5a6c3296
JC
135442018-01-19 James Clarke <jrtc27@jrtc27.com>
13545
13546 * nat/linux-ptrace.c: Remove unnecessary reinclusion of
13547 gdb_ptrace.h, and move including gdb_wait.h ...
13548 * nat/linux-ptrace.h: ... to here.
13549
bc09b0c1
SM
135502018-01-19 Simon Marchi <simon.marchi@ericsson.com>
13551
13552 * inf-ptrace.c (inf_ptrace_detach): Adjust call to
13553 inf_ptrace_detach_success.
13554 (inf_ptrace_detach_success): Add inferior parameter, use it
13555 instead of inferior_ptid, pass it to detach_inferior.
13556 * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
13557 parameter.
13558 * inferior.c (detach_inferior): Add overload that takes an
13559 inferior object.
13560 * inferior.h (detach_inferior): Likewise.
13561 * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
13562 use inferior_ptid, adjust call to inf_ptrace_detach_success.
13563 * linux-thread-db.c (thread_db_detach): Use inf parameter.
13564
6e1e1966
SM
135652018-01-19 Simon Marchi <simon.marchi@ericsson.com>
13566
13567 * target.h (struct target_ops) <to_detach>: Add inferior
13568 parameter.
13569 (target_detach): Likewise.
13570 * target.c (dispose_inferior): Pass inferior down.
13571 (target_detach): Pass inferior down. Assert that it is equal to
13572 the current inferior.
13573 * aix-thread.c (aix_thread_detach): Pass inferior down.
13574 * corefile.c (core_file_command): Pass current_inferior() down.
13575 * corelow.c (core_detach): Add inferior parameter.
13576 * darwin-nat.c (darwin_detach): Likewise.
13577 * gnu-nat.c (gnu_detach): Likewise.
13578 * inf-ptrace.c (inf_ptrace_detach): Likewise.
13579 * infcmd.c (detach_command): Pass current_inferior() down to
13580 target_detach.
13581 * infrun.c (follow_fork_inferior): Pass parent_inf to
13582 target_detach.
13583 (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
13584 target_detach.
13585 * linux-nat.c (linux_nat_detach): Add inferior parameter.
13586 * linux-thread-db.c (thread_db_detach): Likewise.
13587 * nto-procfs.c (procfs_detach): Likewise.
13588 * procfs.c (procfs_detach): Likewise.
13589 * record.c (record_detach): Likewise.
13590 * record.h (struct inferior): Forward-declare.
13591 (record_detach): Add inferior parameter.
13592 * remote-sim.c (gdbsim_detach): Likewise.
13593 * remote.c (remote_detach_1): Likewise.
13594 (remote_detach): Likewise.
13595 (extended_remote_detach): Likewise.
13596 * sol-thread.c (sol_thread_detach): Likewise.
13597 * target-debug.h (target_debug_print_inferior_p): New macro.
13598 * target-delegates.c: Re-generate.
13599 * top.c (kill_or_detach): Pass inferior down to target_detach.
13600 * windows-nat.c (windows_detach): Add inferior parameter.
13601
6bd6f3b6
SM
136022018-01-19 Simon Marchi <simon.marchi@ericsson.com>
13603
13604 * target.h (struct target_ops) <to_detach>: Remove args
13605 parameter.
13606 (target_detach): Likewise.
13607 * target.c (dispose_inferior): Adjust.
13608 (target_detach): Remove args parameter, adjust.
13609 * aix-thread.c (aix_thread_detach): Adjust.
13610 * corefile.c (core_file_command): Adjust.
13611 * corelow.c (core_detach): Adjust.
13612 * darwin-nat.c (darwin_detach): Adjust.
13613 * gnu-nat.c (gnu_detach): Adjust.
13614 * inf-ptrace.c (inf_ptrace_detach): Adjust.
13615 * infcmd.c (detach_command): Adjust
13616 * infrun.c (follow_fork_inferior): Adjust.
13617 (handle_vfork_child_exec_or_exit): Adjust.
13618 * linux-fork.c (linux_fork_detach): Remove args parameter.
13619 * linux-fork.h (linux_fork_detach): Likewise.
13620 * linux-nat.c (linux_nat_detach): Likewise, and adjust.
13621 * linux-thread-db.c (thread_db_detach): Likewise.
13622 * nto-procfs.c (procfs_detach): Likewise.
13623 * procfs.c (procfs_detach): Likewise.
13624 (do_detach): Remove signo parameter.
13625 * record.c (record_detach): Remove args parameter.
13626 * record.h (record_detach): Likewise.
13627 * remote-sim.c (gdbsim_detach): Likewise.
13628 * remote.c (remote_detach_1): Likewise.
13629 (remote_detach): Likewise.
13630 (extended_remote_detach): Likewise.
13631 * sol-thread.c (sol_thread_detach): Likewise.
13632 * target-delegates.c: Re-generate.
13633 * top.c (struct qt_args) <args>: Remove field.
13634 (kill_or_detach): Don't pass args.
13635 (quit_force): Don't set args.
13636 * windows-nat.c (windows_detach): Remove args parameter.
13637
88af8ea8
YQ
136382018-01-19 Yao Qi <yao.qi@linaro.org>
13639
13640 * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
13641 (arm_linux_init_abi): Install it.
13642
dea445b9
YQ
136432018-01-19 Yao Qi <yao.qi@linaro.org>
13644
13645 * osabi.c (gdb_osabi_names): Extend the regexp for
13646 arm-linux-gnueabihf.
13647
4a17f768
YQ
136482018-01-18 Yao Qi <yao.qi@linaro.org>
13649
13650 * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
13651 m_abbrevs.
13652 (abbrev_table::add_abbrev): Update.
13653 (abbrev_table::lookup_abbrev): Update.
13654
d679c21a
YQ
136552018-01-18 Yao Qi <yao.qi@linaro.org>
13656
13657 * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
13658
7d937cad
SDJ
136592018-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
13660
13661 * compile/compile.c (compile_to_object): Convert "triplet_rx"
13662 to "std::string".
13663
9e14690d
TT
136642018-01-17 Tom Tromey <tom@tromey.com>
13665
13666 * dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC.
13667
50a82047
TT
136682018-01-17 Tom Tromey <tom@tromey.com>
13669
13670 * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
13671 * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
13672 (create_array_type_with_stride): Update.
13673 * dwarf2read.c (set_die_type): Update.
13674
c89b44cd
TT
136752018-01-17 Tom Tromey <tom@tromey.com>
13676
13677 * dwarf2read.c (delayed_method_info): Remove typedef.
13678 (dwarf2_cu::method_info): Now a std::vector.
13679 (add_to_method_list): Update.
13680 (free_delayed_list): Remove.
13681 (compute_delayed_physnames): Update.
13682 (process_full_comp_unit, process_full_type_unit): Clear the method
13683 list. Remove cleanups.
13684 (psymtab_include_file_name): Add name_holder parameter. Use
13685 unique_xmalloc_ptr.
13686 (dwarf_decode_lines): Update.
13687
fcd3b13d
SM
136882018-01-17 Tom Tromey <tom@tromey.com>
13689 Simon Marchi <simon.marchi@ericsson.com>
13690
13691 * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
13692 (dwarf2_per_objfile::free_cached_comp_units)
13693 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
13694 (init_cutu_and_read_dies_no_follow): Update.
13695 (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
13696 (dwarf2_cu::~dwarf2_cu): New.
13697 (free_heap_comp_unit, free_stack_comp_unit): Remove.
13698 (age_cached_comp_units, free_one_cached_comp_unit): Update.
13699
685af9cd
TT
137002018-01-17 Tom Tromey <tom@tromey.com>
13701 Simon Marchi <simon.marchi@ericsson.com>
13702
13703 * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
13704 (struct die_reader_specs) <abbrev_table>: New member.
13705 (struct abbrev_table): Add constructor.
13706 <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
13707 <abbrev_obstack>: Now an auto_obstack.
13708 (abbrev_table_up): New typedef.
13709 (init_cu_die_reader): Add abbrev_table parameter.
13710 (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
13711 Add result_dwo_abbrev_table.
13712 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
13713 (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
13714 Update.
13715 (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
13716 parameter.
13717 (skip_children): Update.
13718 (abbrev_table::alloc_abbrev): Rename from
13719 abbrev_table_alloc_abbrev.
13720 (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
13721 (abbrev_table::lookup_abbrev): Rename from
13722 abbrev_table_lookup_abbrev.
13723 (abbrev_table_read_table): Return abbrev_table_up.
13724 (abbrev_table_free, abbrev_table_free_cleanup)
13725 (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
13726 (load_partial_dies): Update.
13727
5e2db402
TT
137282018-01-17 Tom Tromey <tom@tromey.com>
13729
13730 * dwarf2read.c (dwarf2_compute_name): Update comment.
13731 (read_func_scope, read_variable): Update.
13732 (new_symbol): Remove.
13733 (new_symbol_full): Rename to new_symbol.
13734
ee7f689e 137352018-01-17 Mike Gulick <mgulick@mathworks.com>
41667530
MG
13736
13737 PR gdb/16577
13738 * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
13739 a warning instead of throwing an error, set section size to 0 and return
13740 NULL.
13741 * gdb_bfd.h (gdb_bfd_map_section): Update description.
13742
4d9b86e1
SM
137432018-01-17 Simon Marchi <simon.marchi@ericsson.com>
13744
13745 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
13746 std::string.
13747 (linux_ptrace_attach_fail_reason_string): Likewise.
13748 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
13749 Likewise.
13750 (linux_ptrace_attach_fail_reason_string): Likewise.
13751 * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
13752
a7b2d0fb
SM
137532018-01-17 Simon Marchi <simon.marchi@ericsson.com>
13754
13755 * linux-nat.c (linux_nat_attach): Remove xstrdup.
13756
f517c180
EA
137572018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
13758
13759 PR gdb/21559
13760 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
13761 checking for fs_base/gs_base fields in struct user_regs_struct.
13762 * configure: Regenerate.
13763
7045b1ca
YQ
137642018-01-17 Yao Qi <yao.qi@linaro.org>
13765
13766 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
13767 function.
13768 (aarch64_linux_init_abi): Install it to gdbarch hook
13769 gcc_target_options.
13770
db422fb2
PA
137712018-01-15 Pedro Alves <palves@redhat.com>
13772
13773 * common/signals-state-save-restore.c
13774 (save_original_signals_state): Fix typos.
13775
ba643918
SDJ
137762017-01-12 Tom Tromey <tom@tromey.com>
13777 Sergio Durigan Junior <sergiodj@redhat.com>
13778
13779 * Makefile.in (install-only): Install gdb-add-index.
13780
906b4aac
JB
137812018-01-12 John Baldwin <jhb@FreeBSD.org>
13782
13783 * fbsd-tdep.c (KVE_PROTECTION): Correct value.
13784
bdf2a94a
AA
137852018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
13786
13787 * infrun.c (keep_going_pass_signal): Clear step-over info when
13788 insert_breakpoints fails.
13789
71d378ae
PA
137902018-01-11 Pedro Alves <palves@redhat.com>
13791
13792 PR gdb/22583
13793 * infrun.c (resume): Rename to ...
13794 (resume_1): ... this.
13795 (resume): Reimplement as wrapper around resume_1.
13796
3cada740
PA
137972018-01-11 Pedro Alves <palves@redhat.com>
13798
13799 PR remote/22597
13800 * remote.c (remote_parse_stop_reply): Default to the last-set
13801 general thread instead of to 'magic_null_ptid'.
13802
618daa93
PA
138032018-01-10 Pedro Alves <palves@redhat.com>
13804
13805 * language.h (language_get_symbol_name_matcher): Rename ...
13806 (get_symbol_name_matcher): ... this.
13807 * language.c (language_get_symbol_name_matcher): Ditto.
13808 * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
13809 callers adjusted.
13810
c63d3e8d
PA
138112018-01-10 Pedro Alves <palves@redhat.com>
13812
13813 PR gdb/22670
13814 * dwarf2read.c
13815 (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
13816 Adjust to use language_get_symbol_name_matcher instead of
13817 language_defn::la_get_symbol_name_matcher.
13818 * language.c (language_get_symbol_name_matcher): If in Ada mode
13819 and the lookup name is a verbatim match, return Ada's matcher.
13820 * language.h (language_get_symbol_name_matcher): Adjust comment.
13821 (ada_lookup_name_info::verbatim_p):: New method.
13822
d4c2a405
PA
138232018-01-10 Pedro Alves <palves@redhat.com>
13824
13825 PR gdb/22670
13826 * ada-lang.c (ada_collect_symbol_completion_matches): If the
13827 minsym's language is language_auto or language_cplus, pass down
13828 language_ada instead.
13829 * symtab.c (compare_symbol_name): Don't frob symbol language here.
13830
8825213e
PA
138312018-01-10 Pedro Alves <palves@redhat.com>
13832
13833 PR gdb/22670
13834 * minsyms.c (linkage_name_str): New function.
13835 (iterate_over_minimal_symbols): Use it.
13836
2d97a5d9
JB
138372018-01-09 John Baldwin <jhb@FreeBSD.org>
13838
13839 * NEWS: Document that 'info proc' now works on FreeBSD.
13840
92fce24d
JB
138412018-01-09 John Baldwin <jhb@FreeBSD.org>
13842
13843 * configure.ac: Check for kinfo_getfile in libutil.
13844 * configure: Regenerate.
13845 * config.in: Regenerate.
13846 * fbsd-nat.c: Include "fbsd-tdep.h".
13847 (fbsd_fetch_cmdline): New.
13848 (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
13849 rather than calling error.
13850 (fbsd_info_proc): New.
13851 (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
13852 (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
13853 (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
13854
262f62f5
JB
138552018-01-09 John Baldwin <jhb@FreeBSD.org>
13856
13857 * fbsd-nat.c (struct free_deleter): Remove.
13858 (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
13859
b999e203
JB
138602018-01-09 John Baldwin <jhb@FreeBSD.org>
13861
13862 * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
13863 NULL for an empty pathname.
13864
d2176225
JB
138652018-01-09 John Baldwin <jhb@FreeBSD.org>
13866
13867 * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
13868 (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
13869 (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
13870 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
13871 (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
13872 (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
13873 (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
13874 (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
13875 (kinfo_proc_layout_32, kinfo_proc_layout_i386)
13876 (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
13877 (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
13878 (fbsd_core_fetch_timeval, fbsd_print_sigset)
13879 (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
13880 (fbsd_init_abi): Install gdbarch "core_info_proc" method.
13881 * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
13882
9c4ac400
ST
138832018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
13884
13885 * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
13886 (gnu_xfer_auxv): New function.
13887 (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
13888 TARGET_OBJECT_AUXV.
13889
1e5ded6c
YQ
138902018-01-08 Yao Qi <yao.qi@linaro.org>
13891 Simon Marchi <simon.marchi@ericsson.com>
13892
13893 * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
13894 common/selftest.c.
13895 (COMMON_OBS): Remove selftest.o.
13896 * configure.ac: Append selftest-arch.c and common/selftest.c to
13897 CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS.
13898 * configure: Re-generated.
13899 * maint.c (maintenance_selftest): Wrap selftests::run_tests with
13900 GDB_SELF_TEST.
13901 (maintenance_info_selftests): Likewise.
13902
04bafb1e
XR
139032018-01-08 Xavier Roirand <roirand@adacore.com>
13904
13905 * ada-valprint.c (val_print_packed_array_elements): Use
13906 proper number of elements when printing an array indexed
13907 by an enumeration type.
13908
518817b3
SM
139092018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13910
13911 * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
13912 (dw2_get_file_names_reader): Adjust.
13913 (lookup_dwo_signatured_type): Adjust.
13914 (lookup_dwp_signatured_type): Adjust.
13915 (lookup_signatured_type): Adjust.
13916 (create_type_unit_group): Adjust.
13917 (get_type_unit_group): Adjust.
13918 (process_psymtab_comp_unit_reader): Adjust.
13919 (build_type_psymtabs_reader): Adjust.
13920 (scan_partial_symbols): Adjust.
13921 (add_partial_symbol): Adjust.
13922 (add_partial_subprogram): Adjust.
13923 (peek_die_abbrev): Adjust.
13924 (fixup_go_packaging): Adjust.
13925 (process_imported_unit_die): Adjust.
13926 (dwarf2_compute_name): Adjust.
13927 (dwarf2_physname): Adjust.
13928 (read_import_statement): Adjust.
13929 (handle_DW_AT_stmt_list): Adjust.
13930 (read_file_scope): Adjust.
13931 (read_func_scope): Adjust.
13932 (read_lexical_block_scope): Adjust.
13933 (read_call_site_scope): Adjust.
13934 (read_variable): Adjust.
13935 (dwarf2_rnglists_process): Adjust.
13936 (dwarf2_ranges_process): Adjust.
13937 (dwarf2_ranges_read): Adjust.
13938 (dwarf2_get_pc_bounds): Adjust.
13939 (dwarf2_record_block_ranges): Adjust.
13940 (dwarf2_add_field): Adjust.
13941 (dwarf2_add_member_fn): Adjust.
13942 (read_structure_type): Adjust.
13943 (process_structure_scope): Adjust.
13944 (read_enumeration_type): Adjust.
13945 (read_array_type): Adjust.
13946 (mark_common_block_symbol_computed): Adjust.
13947 (read_common_block): Adjust.
13948 (read_namespace_type): Adjust.
13949 (read_namespace): Adjust.
13950 (read_module_type): Adjust.
13951 (read_tag_pointer_type): Adjust.
13952 (read_tag_ptr_to_member_type): Adjust.
13953 (read_tag_string_type): Adjust.
13954 (read_subroutine_type): Adjust.
13955 (read_typedef): Adjust.
13956 (read_base_type): Adjust.
13957 (attr_to_dynamic_prop): Adjust.
13958 (read_subrange_type): Adjust.
13959 (read_unspecified_type): Adjust.
13960 (dwarf2_read_abbrevs): Adjust.
13961 (load_partial_dies): Adjust.
13962 (read_partial_die): Adjust.
13963 (find_partial_die): Adjust.
13964 (guess_partial_die_structure_name): Adjust.
13965 (fixup_partial_die): Adjust.
13966 (read_attribute_value): Adjust.
13967 (read_addr_index): Adjust.
13968 (read_addr_index_from_leb128): Adjust.
13969 (read_str_index): Adjust.
13970 (dwarf2_string_attr): Adjust.
13971 (get_debug_line_section): Adjust.
13972 (dwarf_decode_line_header): Adjust.
13973 (lnp_state_machine::check_line_address): Adjust.
13974 (dwarf_decode_lines_1): Adjust.
13975 (dwarf_decode_lines): Adjust.
13976 (dwarf2_start_symtab): Adjust.
13977 (var_decode_location): Adjust.
13978 (new_symbol_full): Adjust.
13979 (dwarf2_const_value_data): Adjust.
13980 (dwarf2_const_value_attr): Adjust.
13981 (dwarf2_const_value): Adjust.
13982 (die_type): Adjust.
13983 (die_containing_type): Adjust.
13984 (build_error_marker_type): Adjust.
13985 (lookup_die_type): Adjust.
13986 (guess_full_die_structure_name): Adjust.
13987 (anonymous_struct_prefix): Adjust.
13988 (determine_prefix): Adjust.
13989 (dwarf2_name): Adjust.
13990 (follow_die_ref_or_sig): Adjust.
13991 (follow_die_offset): Adjust.
13992 (follow_die_ref): Adjust.
13993 (follow_die_sig_1): Adjust.
13994 (follow_die_sig): Adjust.
13995 (get_signatured_type): Adjust.
13996 (get_DW_AT_signature_type): Adjust.
13997 (decode_locdesc): Adjust.
13998 (dwarf_decode_macros): Adjust.
13999 (cu_debug_loc_section): Adjust.
14000 (fill_in_loclist_baton): Adjust.
14001 (dwarf2_symbol_mark_computed): Adjust.
14002 (init_one_comp_unit): Don't assign
14003 dwarf2_cu::dwarf2_per_objfile.
14004 (set_die_type): Adjust.
14005
ed2dc618
SM
140062018-01-07 Simon Marchi <simon.marchi@ericsson.com>
14007
14008 * dwarf2read.c (struct mapped_debug_names): Add constructor.
14009 <dwarf2_per_objfile>: New field.
14010 (dwarf2_per_objfile): Remove global.
14011 (get_dwarf2_per_objfile): New function.
14012 (set_dwarf2_per_objfile): New function.
14013 (dwarf2_build_psymtabs_hard): Change objfile parameter to
14014 dwarf2_per_objfile.
14015 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
14016 (read_abbrev_offset): Likewise.
14017 (read_indirect_string): Likewise.
14018 (read_indirect_line_string): Likewise.
14019 (read_indirect_string_at_offset): Likewise.
14020 (read_indirect_string_from_dwz): Likewise.
14021 (dwarf2_find_containing_comp_unit): Change objfile parameter to
14022 dwarf2_per_objfile.
14023 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
14024 (create_all_comp_units): Change objfile parameter to
14025 dwarf2_per_objfile.
14026 (create_all_type_units): Likewise.
14027 (process_queue): Add dwarf2_per_objfile parameter.
14028 (read_and_check_comp_unit_head): Likewise.
14029 (lookup_dwo_unit_in_dwp): Likewise.
14030 (get_dwp_file): Likewise.
14031 (process_cu_includes): Likewise.
14032 (struct free_dwo_file_cleanup_data): New struct.
14033 (dwarf2_has_info): Use get_dwarf2_per_objfile and
14034 set_dwarf2_per_objfile.
14035 (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
14036 (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
14037 context, adjust calls.
14038 (dw2_instantiate_symtab): Likewise.
14039 (dw2_get_cutu): Add dwarf2_per_objfile parameter.
14040 (dw2_get_cu): Likewise.
14041 (create_cu_from_index_list): Change objfile parameter to
14042 dwarf2_per_objfile.
14043 (create_cus_from_index_list): Get dwarf2_per_objfile from
14044 context, adjust calls.
14045 (create_cus_from_index): Likewise.
14046 (create_signatured_type_table_from_index): Change objfile
14047 parameter to dwarf2_per_objfile.
14048 (create_signatured_type_table_from_debug_names): Change objfile
14049 parameter to dwarf2_per_objfile.
14050 (create_addrmap_from_index): Likewise.
14051 (create_addrmap_from_aranges): Likewise.
14052 (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
14053 (dw2_setup): Remove.
14054 (dw2_get_file_names_reader): Get dwarf2_per_objfile from
14055 context.
14056 (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
14057 get_dwarf2_per_objfile.
14058 (dw2_forget_cached_source_info): Likewise.
14059 (dw2_map_symtabs_matching_filename): Likewise.
14060 (struct dw2_symtab_iterator) <index>: Remove.
14061 <dwarf2_per_objfile>: New field.
14062 (dw2_symtab_iter_init): Replace index parameter with
14063 dwarf2_per_objfile.
14064 (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
14065 (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
14066 (dw2_print_stats): Likewise.
14067 (dw2_dump): Likewise.
14068 (dw2_expand_symtabs_for_function): Likewise.
14069 (dw2_expand_all_symtabs): Likewise.
14070 (dw2_expand_symtabs_with_fullname): Likewise.
14071 (dw2_expand_marked_cus): Replace index and objfile parameters
14072 with dwarf2_per_objfile.
14073 (dw_expand_symtabs_matching_file_matcher): Add
14074 dwarf2_per_objfile parameter and adjust calls.
14075 (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
14076 adjust calls.
14077 (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
14078 (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
14079 adjust calls.
14080 (create_cus_from_debug_names_list): Replace objfile parameter
14081 with dwarf2_per_objfile and adjust calls.
14082 (create_cus_from_debug_names): Likewise.
14083 (dwarf2_read_debug_names): Likewise.
14084 (mapped_debug_names::namei_to_name): Adjust call.
14085 (dw2_debug_names_iterator::next): Likewise.
14086 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
14087 (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
14088 (dw2_debug_names_dump): Likewise.
14089 (dw2_debug_names_expand_symtabs_for_function): Likewise.
14090 (dw2_debug_names_expand_symtabs_matching): Likewise.
14091 (dwarf2_initialize_objfile): Likewise.
14092 (dwarf2_build_psymtabs): Likewise.
14093 (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
14094 this_cu.
14095 (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
14096 (read_and_check_comp_unit_head): Likewise.
14097 (read_abbrev_offset): Likewise.
14098 (create_debug_type_hash_table): Likewise.
14099 (create_debug_types_hash_table): Likewise.
14100 (create_all_type_units): Replace objfile parameter with
14101 dwarf2_per_objfile.
14102 (add_type_unit): Add dwarf2_per_objfile parameter.
14103 (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
14104 with dwarf2_per_objfile.
14105 (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
14106 (lookup_dwp_signatured_type): Likewise.
14107 (lookup_signatured_type): Likewise.
14108 (read_cutu_die_from_dwo): Likewise.
14109 (init_tu_and_read_dwo_dies): Likewise.
14110 (init_cutu_and_read_dies): Likewise.
14111 (init_cutu_and_read_dies_no_follow): Likewise.
14112 (allocate_type_unit_groups_table): Add objfile parameter.
14113 (create_type_unit_group): Use dwarf2_per_objfile from cu.
14114 (get_type_unit_group): Likewise.
14115 (process_psymtab_comp_unit): Update call.
14116 (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
14117 (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
14118 (print_tu_stats): Likewise.
14119 (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
14120 in void* parameter.
14121 (build_type_psymtabs): Change objfile parameter to
14122 dwarf2_per_objfile.
14123 (process_skeletonless_type_unit): Use dwarf2_per_objfile
14124 passed in void* parameter.
14125 (process_skeletonless_type_units): Change objfile parameter to
14126 dwarf2_per_objfile.
14127 (set_partial_user): Likewise.
14128 (dwarf2_build_psymtabs_hard): Likewise.
14129 (read_comp_units_from_section): Likewise.
14130 (create_all_comp_units): Likewise.
14131 (scan_partial_symbols): Update calls.
14132 (add_partial_symbol): Likewise.
14133 (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
14134 (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
14135 (process_queue): Add dwarf2_per_objfile parameter.
14136 (get_compunit_symtab): Use dwarf2_per_objfile from cu.
14137 (compute_compunit_symtab_includes): Likewise.
14138 (process_cu_includes): Add dwarf2_per_objfile parameter.
14139 (process_full_comp_unit): Use dwarf2_per_objfile from cu.
14140 (process_full_type_unit): Likewise.
14141 (process_imported_unit_die): Update call.
14142 (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
14143 (read_file_scope): Likewise.
14144 (allocate_dwo_file_hash_table): Add objfile parameter.
14145 (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
14146 (create_cus_hash_table): Likewise.
14147 (create_dwp_hash_table): Likewise.
14148 (create_dwo_unit_in_dwp_v1): Likewise.
14149 (create_dwp_v2_section): Likewise.
14150 (create_dwo_unit_in_dwp_v2): Likewise.
14151 (lookup_dwo_unit_in_dwp): Likewise.
14152 (try_open_dwop_file): Likewise.
14153 (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
14154 (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
14155 cleanup to include a reference to dwarf2_per_objfile.
14156 (open_dwp_file): Add dwarf2_per_objfile parameter.
14157 (open_and_init_dwp_file): Likewise.
14158 (get_dwp_file): Likewise.
14159 (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
14160 (queue_and_load_all_dwo_tus): Update call.
14161 (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
14162 data.
14163 (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
14164 (dwarf2_ranges_process): Likewise.
14165 (dwarf2_get_pc_bounds): Likewise.
14166 (mark_common_block_symbol_computed): Likewise.
14167 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
14168 (dwarf2_read_abbrevs): Update call.
14169 (read_partial_die): Use dwarf2_per_objfile from cu.
14170 (find_partial_die): Likewise.
14171 (fixup_partial_die): Likewise.
14172 (read_attribute_value): Likewise.
14173 (read_indirect_string_at_offset_from): Add objfile parameter.
14174 (read_indirect_string_at_offset): Add dwarf2_per_objfile
14175 parameter.
14176 (read_indirect_string_from_dwz): Add objfile parameter.
14177 (read_indirect_string): Add objfile parameter.
14178 (read_addr_index_1): Add dwarf2_per_objfile parameter.
14179 (read_addr_index): Use dwarf2_per_objfile from cu.
14180 (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
14181 call dw2_setup.
14182 (read_str_index): Use dwarf2_per_objfile from cu.
14183 (get_debug_line_section): Likewise.
14184 (read_formatted_entries): Add dwarf2_per_objfile parameter.
14185 (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
14186 (new_symbol_full): Use dwarf2_per_objfile from cu.
14187 (build_error_marker_type): Likewise.
14188 (lookup_die_type): Likewise.
14189 (determine_prefix): Likewise.
14190 (follow_die_offset): Likewise.
14191 (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
14192 (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
14193 (dwarf2_fetch_die_type_sect_off): Likewise.
14194 (dwarf2_get_die_type): Likewise.
14195 (follow_die_sig_1): Use dwarf2_per_objfile from cu.
14196 (get_signatured_type): Likewise.
14197 (get_DW_AT_signature_type): Likewise.
14198 (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
14199 (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
14200 (cu_debug_loc_section): Likewise.
14201 (fill_in_loclist_baton): Likewise.
14202 (dwarf2_symbol_mark_computed): Likewise.
14203 (dwarf2_find_containing_comp_unit): Change objfile parameter to
14204 dwarf2_per_objfile.
14205 (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
14206 parameter.
14207 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
14208 (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
14209 (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
14210 (set_die_type): Use dwarf2_free_objfile from cu.
14211 (get_die_type_at_offset): Likewise.
14212 (dwarf2_per_objfile_free): Don't assign global variable.
14213 (debug_names) <constructor>: Add dwarf2_per_objfile
14214 parameter, update m_debugstrlookup construction.
14215 (debug_names::debug_str_lookup): Add dwarf2_per_objfile
14216 parameter.
14217 <m_dwarf2_per_objfile>: New field.
14218 <lookup>: Use m_dwarf2_per_objfile.
14219 (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
14220 (psyms_seen_size): Likewise.
14221 (write_gdbindex): Replace objfile parameter with
14222 dwarf2_per_objfile.
14223 (write_debug_names): Likewise.
14224 (write_psymtabs_to_index): Likewise.
14225 (save_gdb_index_command): Use get_dwarf2_per_objfile, update
14226 calls.
14227
e3b94546
SM
142282018-01-07 Simon Marchi <simon.marchi@ericsson.com>
14229
14230 * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
14231 <dwarf2_per_objfile>: New field.
14232 (struct dwarf2_per_cu_data) <objfile>: Remove.
14233 <dwarf2_per_objfile>: New field.
14234 (create_cu_from_index_list): Assign dwarf2_per_objfile instead
14235 of objfile.
14236 (create_signatured_type_table_from_index): Likewise.
14237 (create_debug_type_hash_table): Likewise.
14238 (fill_in_sig_entry_from_dwo_entry): Likewise.
14239 (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
14240 (create_type_unit_group): Assign dwarf2_per_objfile instead of
14241 objfile.
14242 (create_partial_symtab): Access objfile through
14243 dwarf2_per_objfile.
14244 (process_psymtab_comp_unit_reader): Likewise.
14245 (read_comp_units_from_section): Likewise.
14246 (scan_partial_symbols): Likewise.
14247 (add_partial_symbol): Likewise.
14248 (add_partial_subprogram): Likewise.
14249 (peek_die_abbrev): Likewise.
14250 (fixup_go_packaging): Likewise.
14251 (process_full_comp_unit): Likewise.
14252 (process_full_type_unit): Likewise.
14253 (process_imported_unit_die): Likewise.
14254 (dwarf2_compute_name): Likewise.
14255 (dwarf2_physname): Likewise.
14256 (read_import_statement): Likewise.
14257 (create_cus_hash_table): Assign dwarf2_physname instead of
14258 objfile.
14259 (read_func_scope): Access objfile through dwarf2_per_objfile.
14260 (read_lexical_block_scope): Likewise.
14261 (read_call_site_scope): Likewise.
14262 (read_variable): Likewise.
14263 (dwarf2_rnglists_process): Likewise.
14264 (dwarf2_ranges_process): Likewise.
14265 (dwarf2_ranges_read): Likewise.
14266 (dwarf2_record_block_ranges): Likewise.
14267 (dwarf2_add_field): Likewise.
14268 (dwarf2_add_member_fn): Likewise.
14269 (read_structure_type): Likewise.
14270 (process_structure_scope): Likewise.
14271 (read_enumeration_type): Likewise.
14272 (read_array_type): Likewise.
14273 (read_common_block): Likewise.
14274 (read_namespace_type): Likewise.
14275 (read_namespace): Likewise.
14276 (read_module_type): Likewise.
14277 (read_tag_pointer_type): Likewise.
14278 (read_tag_ptr_to_member_type): Likewise.
14279 (read_tag_string_type): Likewise.
14280 (read_subroutine_type): Likewise.
14281 (read_typedef): Likewise.
14282 (read_base_type): Likewise.
14283 (attr_to_dynamic_prop): Likewise.
14284 (read_subrange_type): Likewise.
14285 (read_unspecified_type): Likewise.
14286 (load_partial_dies): Likewise.
14287 (read_partial_die): Likewise.
14288 (find_partial_die): Likewise.
14289 (guess_partial_die_structure_name): Likewise.
14290 (fixup_partial_die): Likewise.
14291 (read_attribute_value): Likewise.
14292 (read_addr_index_from_leb128): Likewise.
14293 (dwarf2_read_addr_index): Likewise.
14294 (dwarf2_string_attr): Likewise.
14295 (lnp_state_machine::check_line_address): Likewise.
14296 (dwarf_decode_lines_1): Likewise.
14297 (dwarf_decode_lines): Likewise.
14298 (dwarf2_start_symtab): Likewise.
14299 (var_decode_location): Likewise.
14300 (new_symbol_full): Likewise.
14301 (dwarf2_const_value_data): Likewise.
14302 (dwarf2_const_value_attr): Likewise.
14303 (dwarf2_const_value): Likewise.
14304 (die_type): Likewise.
14305 (die_containing_type): Likewise.
14306 (lookup_die_type): Likewise.
14307 (guess_full_die_structure_name): Likewise.
14308 (anonymous_struct_prefix): Likewise.
14309 (dwarf2_name): Likewise.
14310 (follow_die_ref_or_sig): Likewise.
14311 (follow_die_offset): Likewise.
14312 (follow_die_ref): Likewise.
14313 (dwarf2_fetch_die_loc_sect_off): Likewise.
14314 (dwarf2_fetch_constant_bytes): Likewise.
14315 (dwarf2_fetch_die_type_sect_off): Likewise.
14316 (dwarf2_get_die_type): Likewise.
14317 (follow_die_sig): Likewise.
14318 (decode_locdesc): Likewise.
14319 (dwarf2_per_cu_objfile): Likewise.
14320 (dwarf2_per_cu_text_offset): Likewise.
14321 (init_one_comp_unit): Assign dwarf2_per_objfile instead of
14322 objfile.
14323 (set_die_type): Access objfile through
14324 dwarf2_per_objfile.
14325
b01ba14d
SM
143262018-01-07 Simon Marchi <simon.marchi@ericsson.com>
14327
14328 * valprint.c (converted_character_d): Remove typedef.
14329 (DEF_VEC_O (converted_character_d)): Remove.
14330 (count_next_character): Use std::vector.
14331 (print_converted_chars_to_obstack): Likewise.
14332 (generic_printstr): Likewise.
14333
4d0fdd9b
SM
143342018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
14335
14336 * xml-support.h (struct gdb_xml_value): Add constructor.
14337 <value>: Change type to unique_xmalloc_ptr.
14338 (gdb_xml_value_s): Remove typedef.
14339 (DEF_VEC_O (gdb_xml_value_s)): Remove.
14340 (gdb_xml_element_start_handler): Change parameter type to
14341 std::vector.
14342 (xml_find_attribute): Likewise.
14343 * xml-support.c (xml_find_attribute): Change parameter type to
14344 std::vector and adjust.
14345 (gdb_xml_values_cleanup): Remove.
14346 (gdb_xml_parser::start_element): Adjust to std::vector.
14347 (xinclude_start_include): Change paraeter type to std::vector
14348 and adjust.
14349 * btrace.c (check_xml_btrace_version): Likewise.
14350 (parse_xml_btrace_block): Likewise.
14351 (parse_xml_btrace_pt_config_cpu): Likewise.
14352 (parse_xml_btrace_pt): Likewise.
14353 (parse_xml_btrace_conf_bts): Likewise.
14354 (parse_xml_btrace_conf_pt): Likewise.
14355 * memory-map.c (memory_map_start_memory): Likewise.
14356 (memory_map_start_property): Likewise.
14357 * osdata.c (osdata_start_osdata): Likewise.
14358 (osdata_start_item): Likewise.
14359 (osdata_start_column): Likewise.
14360 * remote.c (start_thread): Likewise.
14361 * solib-aix.c (library_list_start_library): Likewise.
14362 (library_list_start_list): Likewise.
14363 * solib-svr4.c (library_list_start_library): Likewise.
14364 (svr4_library_list_start_list): Likewise.
14365 * solib-target.c (library_list_start_segment): Likewise.
14366 (library_list_start_section): Likewise.
14367 (library_list_start_library): Likewise.
14368 (library_list_start_list): Likewise.
14369 * tracepoint.c (traceframe_info_start_memory): Likewise.
14370 (traceframe_info_start_tvar): Likewise.
14371 * xml-syscall.c (syscall_start_syscall): Likewise.
14372 * xml-tdesc.c (tdesc_start_target): Likewise.
14373 (tdesc_start_feature): Likewise.
14374 (tdesc_start_reg): Likewise.
14375 (tdesc_start_union): Likewise.
14376 (tdesc_start_struct): Likewise.
14377 (tdesc_start_flags): Likewise.
14378 (tdesc_start_enum): Likewise.
14379 (tdesc_start_field): Likewise.
14380 (tdesc_start_enum_value): Likewise.
14381 (tdesc_start_vector): Likewise.
14382
f979c73f
SM
143832018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
14384
14385 * extension.h (struct xmethod_worker) <clone>: Remove.
14386 * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
14387 Remove.
14388 (python_xmethod_worker::clone): Remove.
14389 * valops.c (find_overload_match): Use std::move instead of
14390 clone.
14391
ba18742c
SM
143922018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
14393
14394 * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
14395 (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
14396 <free_xmethod_worker_data>: Remove.
14397 <get_matching_xmethod_workers>: Chance VEC to std::vector.
14398 <get_xmethod_arg_types>: Remove.
14399 <get_xmethod_result_type>: Remove.
14400 <invoke_xmethod>: Remove.
14401 * extension.c (new_xmethod_worker): Remove.
14402 (clone_xmethod_worker): Remove.
14403 (get_matching_xmethod_workers): Return void, pass std::vector by
14404 pointer.
14405 (get_xmethod_arg_types): Rename to...
14406 (xmethod_worker::get_arg_types): ... this, and adjust.
14407 (get_xmethod_result_type): Rename to...
14408 (xmethod_worker::get_result_type): ... this, and adjust.
14409 (invoke_xmethod): Remove.
14410 (free_xmethod_worker): Remove.
14411 (free_xmethod_worker_vec): Remove.
14412 * extension.h (enum ext_lang_rc): Move here from
14413 extension-priv.h.
14414 (struct xmethod_worker): Add constructor and destructor.
14415 <data>: Remove.
14416 <value>: Remove.
14417 <invoke, clone, do_get_result_type, do_get_arg_types>: New
14418 virtual pure methods.
14419 <get_arg_types, get_result_type>: New methods.
14420 (xmethod_worker_ptr): Remove typedef.
14421 (DEF_VEC_P (xmethod_worker_ptr)): Remove.
14422 (xmethod_worker_vec): Remove typedef.
14423 (xmethod_worker_up): New typedef.
14424 (invoke_xmethod): Remove.
14425 (clone_xmethod_worker): Remove.
14426 (free_xmethod_worker): Remove.
14427 (free_xmethod_worker_vec): Remove.
14428 (get_xmethod_arg_types): Remove.
14429 (get_xmethod_result_type): Remove.
14430 * valops.c (find_method_list): Use std::vector, don't use
14431 intermediate vector.
14432 (value_find_oload_method_list): Use std::vector.
14433 (find_overload_match): Use std::vector.
14434 (find_oload_champ): Use std::vector.
14435 * value.c (value_free): Use operator delete.
14436 (value_of_xmethod): Rename to...
14437 (value_from_xmethod): ... this. Don't assign
14438 xmethod_worker::value, take rvalue-reference.
14439 (result_type_of_xmethod): Adjust.
14440 (call_xmethod): Adjust.
14441 * value.h: Include extension.h.
14442 (struct xmethod_worker): Don't forward-declare.
14443 (value_of_xmethod): Rename to...
14444 (value_from_xmethod): ... this, take rvalue-reference.
14445 * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
14446 (struct python_xmethod_worker): ... this, add constructor and
14447 destructor.
14448 <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
14449 (gdbpy_free_xmethod_worker_data): Rename to...
14450 (python_xmethod_worker::~python_xmethod_worker): ... this and
14451 adjust.
14452 (gdbpy_clone_xmethod_worker_data): Rename to...
14453 (python_xmethod_worker::clone): ... this and adjust.
14454 (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
14455 temporary vector.
14456 (gdbpy_get_xmethod_arg_types): Rename to...
14457 (python_xmethod_worker::do_get_arg_types): ... this and adjust.
14458 (gdbpy_get_xmethod_result_type): Rename to...
14459 (python_xmethod_worker::do_get_result_type): ... this and
14460 adjust.
14461 (gdbpy_invoke_xmethod): Rename to...
14462 (python_xmethod_worker::invoke): ... this and adjust.
14463 (new_python_xmethod_worker): Rename to...
14464 (python_xmethod_worker::python_xmethod_worker): ... this and
14465 adjust.
14466 * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
14467 Remove.
14468 (gdbpy_free_xmethod_worker_data): Remove.
14469 (gdbpy_get_matching_xmethod_workers): Use std::vector.
14470 (gdbpy_get_xmethod_arg_types): Remove.
14471 (gdbpy_get_xmethod_result_type): Remove.
14472 (gdbpy_invoke_xmethod): Remove.
14473 * python/python.c (python_extension_ops): Remove obsolete
14474 callbacks.
14475
e379cee6
PA
144762018-01-05 Pedro Alves <palves@redhat.com>
14477
14478 PR gdb/18653
14479 * common/signals-state-save-restore.c
14480 (save_original_signals_state): New parameter 'quiet'. Warn if we
14481 find a custom handler preinstalled, instead of internal erroring.
14482 But only warn if !quiet.
14483 * common/signals-state-save-restore.h
14484 (save_original_signals_state): New parameter 'quiet'.
14485 * main.c (captured_main_1): Move save_original_signals_state call
14486 after option handling, and pass QUIET.
14487
a655456c
PA
144882018-01-05 Pedro Alves <palves@redhat.com>
14489
14490 * spu-tdep.c (spu_catch_start): Pass
14491 symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
14492
de63c46b
PA
144932018-01-05 Pedro Alves <palves@redhat.com>
14494
14495 PR gdb/22670
14496 * ada-lang.c (literal_symbol_name_matcher): New function.
14497 (ada_get_symbol_name_matcher): Use it for
14498 symbol_name_match_type::SEARCH_NAME.
14499 * block.c (block_lookup_symbol): New parameter 'match_type'. Pass
14500 it down instead of assuming symbol_name_match_type::FULL.
14501 * block.h (block_lookup_symbol): New parameter 'match_type'.
14502 * c-valprint.c (print_unpacked_pointer): Use
14503 lookup_symbol_search_name instead of lookup_symbol.
14504 * compile/compile-object-load.c (get_out_value_type): Pass down
14505 symbol_name_match_type::SEARCH_NAME.
14506 * cp-namespace.c (cp_basic_lookup_symbol): Pass down
14507 symbol_name_match_type::FULL.
14508 * cp-support.c (cp_get_symbol_name_matcher): Handle
14509 symbol_name_match_type::SEARCH_NAME.
14510 * infrun.c (insert_exception_resume_breakpoint): Use
14511 lookup_symbol_search_name.
14512 * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
14513 * psymtab.c (maintenance_check_psymtabs): Use
14514 symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
14515 * stack.c (print_frame_args): Use lookup_symbol_search_name and
14516 SYMBOL_SEARCH_NAME.
14517 * symtab.c (lookup_local_symbol): Don't demangle the lookup name
14518 if symbol_name_match_type::SEARCH_NAME.
14519 (lookup_symbol_in_language): Pass down
14520 symbol_name_match_type::FULL.
14521 (lookup_symbol_search_name): New.
14522 (lookup_language_this): Pass down
14523 symbol_name_match_type::SEARCH_NAME.
14524 (lookup_symbol_aux, lookup_local_symbol): New parameter
14525 'match_type'. Pass it down.
14526 * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
14527 (lookup_symbol_search_name): New declaration.
14528 (lookup_symbol_in_block): New 'match_type' parameter.
14529
f98fc17b
PA
145302018-01-05 Pedro Alves <palves@redhat.com>
14531
14532 PR gdb/22670
14533 * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
14534 ada_lookup_symbol.
14535 (ada_lookup_symbol): Reimplement in terms of
14536 ada_lookup_symbol_list, bits factored out from
14537 ada_lookup_encoded_symbol.
14538
342f8240
JB
145392018-01-05 Joel Brobecker <brobecker@adacore.com>
14540
14541 * ada-exp.y (write_object_renaming): When subscripting an array
14542 using a symbol as the index, pass the block in call to
14543 ada_lookup_encoded_symbol when looking that symbol up.
14544
7150d33c
JG
145452018-01-05 Jerome Guitton <guitton@adacore.com>
14546
14547 * ada-lang.c (ada_array_length): Use ada_index_type instead of
14548 TYPE_INDEX_TYPE.
14549
cc0e770c
JB
145502018-01-05 Joel Brobecker <brobecker@adacore.com>
14551
14552 * ada-lang.c (ada_to_fixed_value_create): Add handling of
14553 the case where VALUE_LVAL (val0) is not lval_memory.
14554
f79da888 145552018-01-05 Xavier Roirand <roirand@adacore.com>
e3861a03
XR
14556
14557 * ada-valprint.c (print_optional_low_bound): Handle
14558 character-indexed array printing like boolean-indexed array
14559 printing.
14560
cd385f94
JB
145612018-01-05 Joel Brobecker <brobecker@adacore.com>
14562
14563 * NEWS: Create a new section for the next release branch.
14564 Rename the section of the current branch, now that it has
14565 been cut.
14566
09aca949
JB
145672018-01-05 Joel Brobecker <brobecker@adacore.com>
14568
14569 GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
14570 * version.in: Bump version to 8.1.50.DATE-git.
14571
9f757bf7
XR
145722018-01-03 Xavier Roirand <roirand@adacore.com>
14573
14574 * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
14575 Add field.
14576 * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
14577 Add field.
14578 (default_exception_support_info) <catch_handlers_sym>: Add field.
14579 (exception_support_info_fallback) <catch_handlers_sym>: Add field.
14580 (ada_exception_name_addr_1): Add "catch handlers" handling.
14581 (ada_exception_catchpoint_cond_string) <ex>: New parameter.
14582 Update all callers.
14583 (create_excep_cond_exprs) <ex>: Add parameter.
14584 (re_set_exception): Update create_excep_cond_exprs call.
14585 (print_it_exception, print_one_exception, print_mention_exception)
14586 (print_recreate_exception): Add "catch handler" handling.
14587 (allocate_location_catch_handlers, re_set_catch_handlers)
14588 (check_status_catch_handlers, print_it_catch_handlers)
14589 (print_one_catch_handlers, print_mention_catch_handlers)
14590 (print_recreate_catch_handlers): New function.
14591 (catch_handlers_breakpoint_ops): New variable.
14592 (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
14593 Add parameter. Add "catch handler" handling.
14594 (ada_exception_sym_name, ada_exception_breakpoint_ops):
14595 Add "catch handler" handling.
14596 (ada_exception_catchpoint_cond_string): Add "catch handler"
14597 handling.
14598 (create_ada_exception_catchpoint): Update create_excep_cond_exprs
14599 call.
14600 (catch_ada_handlers_command): New function.
14601 (initialize_ada_catchpoint_ops): Initialize "catch handlers"
14602 operations structure.
14603 (_initialize_ada_language): Add "catch handlers" command entry.
14604 * NEWS: Document "catch handlers" feature.
14605
9fe561ab
JB
146062018-01-02 Joel Brobecker <brobecker@adacore.com>
14607
14608 * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
14609 account when creating the array type of the slice.
14610 (ada_value_slice): Likewise.
14611
a405673c
JB
146122018-01-02 Joel Brobecker <brobecker@adacore.com>
14613
14614 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
14615 New enum value.
14616 (create_array_type_with_stride): Add byte_stride_prop parameter.
14617 * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
14618 New parameter. Update all callers in this file.
14619 (array_type_has_dynamic_stride): New function.
14620 (is_dynamic_type_internal, resolve_dynamic_array): Add handling
14621 of arrays with dynamic byte strides.
14622 * dwarf2read.c (read_array_type): Add support for dynamic
14623 DW_AT_byte_stride attributes.
14624
74a2f8ff
JB
146252018-01-02 Joel Brobecker <brobecker@adacore.com>
14626
14627 * dwarf2read.c (read_unspecified_type): Treat
14628 DW_TAG_enumeration_type DIEs from Ada units as stubs.
14629
e2882c85
JB
146302018-01-01 Joel Brobecker <brobecker@adacore.com>
14631
14632 Update copyright year range in all GDB files.
14633
5e70ee09 146342018-01-01, 18 Joel Brobecker <brobecker@adacore.com>
1690bb24
JB
14635
14636 * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
14637 and gdb/testsuite/gdb.base/step-line.c.
14638
0f0c98a8
JB
146392018-01-01 Joel Brobecker <brobecker@adacore.com>
14640
14641 * copyright.py (main): Dump the contents of
14642 MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
14643 even if BY_HAND is empty.
14644
82e1e79a
JB
146452018-01-01 Joel Brobecker <brobecker@adacore.com>
14646
14647 * top.c (print_gdb_version): Update Copyright year in version
14648 message.
14649
053f54e5 146502018-01-01 Joel Brobecker <brobecker@adacore.com>
47fea877 14651
053f54e5 14652 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
47fea877 14653
053f54e5 14654For older changes see ChangeLog-2017.
c906108c
SS
14655\f
14656Local Variables:
14657mode: change-log
14658left-margin: 8
14659fill-column: 74
14660version-control: never
57da7796 14661coding: utf-8
c906108c 14662End: