Update help text for commands implemented in Python
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
2fb009bb
TT
12018-10-06 Tom Tromey <tom@tromey.com>
2
3 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq)
4 (_RegEx): Reformat help text.
5 * python/lib/gdb/function/caller_is.py (CallerIs, CallerMatches)
6 (AnyCallerIs, AnyCallerMatches): Reformat help text.
7 * python/lib/gdb/function/as_string.py (_AsString): Reformat help
8 text.
9 * python/lib/gdb/command/xmethods.py (InfoXMethod)
10 (EnableXMethod, DisableXMethod): Remove help indentation.
11 Capitalize meta-syntactic variables.
12 * python/lib/gdb/command/unwinders.py (InfoUnwinder)
13 (EnableUnwinder, DisableUnwinder): Remove help indentation.
14 Capitalize meta-syntactic variables.
15 * python/lib/gdb/command/explore.py (ExploreCommand)
16 (ExploreValueCommand, ExploreTypeCommand): Reformat help text.
17 * python/lib/gdb/command/type_printers.py (InfoTypePrinter)
18 (EnableTypePrinter, DisableTypePrinter): Remove help indentation.
19 * python/lib/gdb/command/pretty_printers.py (InfoPrettyPrinter):
20 Remove help indentation.
21 (EnablePrettyPrinter, DisablePrettyPrinter): Likewise.
22 * python/lib/gdb/command/frame_filters.py (EnableFrameFilter)
23 (DisableFrameFilter, SetFrameFilterPriority)
24 (ShowFrameFilterPriority, InfoFrameFilter): Reword help text.
25
7a956928
TT
262018-10-06 Tom Tromey <tom@tromey.com>
27
28 PR tui/28819:
29 * tui/tui-io.c (gdb_wgetch): New function.
30 (tui_mld_getc, tui_getc): Use it.
31
f8740dc5
TT
322018-10-05 Tom Tromey <tom@tromey.com>
33
34 * sol-thread.c (sol_thread_target::wait): Rename inner
35 "save_ptid".
36
96643e35
TT
372018-10-04 Tom Tromey <tom@tromey.com>
38
39 * configure: Rebuild.
40 * warning.m4 (AM_GDB_WARNINGS): Add -Wshadow=local.
41
d951f98b
TT
422018-10-04 Tom Tromey <tom@tromey.com>
43
44 * guile/scm-frame.c (gdbscm_frame_read_var): Remove inner
45 declaration of "block".
46
b8c88847
TT
472018-10-04 Tom Tromey <tom@tromey.com>
48
49 * common/filestuff.c (fdwalk): Remove inner declaration of
50 "result".
51
ef789dc4
TT
522018-10-04 Tom Tromey <tom@tromey.com>
53
54 * msp430-tdep.c (msp430_push_dummy_call): Rename inner
55 "structs_addr" and hoist declaration.
56
3fba72f7
TT
572018-10-04 Tom Tromey <tom@tromey.com>
58
59 * linux-tdep.c (linux_make_mappings_corefile_notes): Introduce new
60 variable "size".
61
795afcbb
TT
622018-10-04 Tom Tromey <tom@tromey.com>
63
64 * mdebugread.c (parse_partial_symbols): Use std::string.
65
b926417a
TT
662018-10-04 Tom Tromey <tom@tromey.com>
67
68 * ctf.c (SET_ARRAY_FIELD): Rename "u32".
69 * p-valprint.c (pascal_val_print): Split inner "i" variable.
70 * xtensa-tdep.c (xtensa_push_dummy_call): Declare "i" in loop
71 header.
72 * xstormy16-tdep.c (xstormy16_push_dummy_call): Declare "val" in
73 more inner scope.
74 * xcoffread.c (read_xcoff_symtab): Rename inner "symbol".
75 * varobj.c (varobj_update): Rename inner "newobj",
76 "type_changed".
77 * valprint.c (generic_emit_char): Rename inner "buf".
78 * valops.c (find_overload_match): Rename inner "temp".
79 (value_struct_elt_for_reference): Declare "v" in more inner
80 scope.
81 * v850-tdep.c (v850_push_dummy_call): Rename "len".
82 * unittests/array-view-selftests.c (run_tests): Rename inner
83 "vec".
84 * tui/tui-stack.c (tui_show_frame_info): Declare "i" in loop
85 header.
86 * tracepoint.c (merge_uploaded_trace_state_variables): Declare
87 "tsv" in more inner scope.
88 (print_one_static_tracepoint_marker): Rename inner
89 "tuple_emitter".
90 * tic6x-tdep.c (tic6x_analyze_prologue): Declare "inst" lower.
91 (tic6x_push_dummy_call): Don't redeclare "addr".
92 * target-float.c: Declare "dto" lower.
93 * symtab.c (lookup_local_symbol): Rename inner "sym".
94 (find_pc_sect_line): Rename inner "pc".
95 * stack.c (print_frame): Don't redeclare "gdbarch".
96 (return_command): Rename inner "gdbarch".
97 * s390-tdep.c (s390_prologue_frame_unwind_cache): Renam inner
98 "sp".
99 * rust-lang.c (rust_internal_print_type): Declare "i" in loop
100 header.
101 * rs6000-tdep.c (ppc_process_record): Rename inner "addr".
102 * riscv-tdep.c (riscv_push_dummy_call): Declare "info" in inner
103 scope.
104 * remote.c (remote_target::update_thread_list): Don't redeclare
105 "tp".
106 (remote_target::process_initial_stop_replies): Rename inner
107 "thread".
108 (remote_target::remote_parse_stop_reply): Don't redeclare "p".
109 (remote_target::wait_as): Don't redeclare "stop_reply".
110 (remote_target::get_thread_local_address): Rename inner
111 "result".
112 (remote_target::get_tib_address): Likewise.
113
114 * regcache.c (cooked_read_test): Rename "regnum".
115 * record-btrace.c (cmd_record_btrace_start): Rename inner
116 "exception".
117 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Declare "i" in
118 loop header.
119 * ppc-linux-tdep.c (ppc_linux_syscall_record): Declare "i" in loop
120 header.
121 (ppu2spu_sniffer): Rename inner "buf".
122 * parse.c (operator_check_standard): Rename inner "type",
123 "objfile".
124 * p-valprint.c (pascal_val_print): Introduce new scope for
125 "low_bound", "high_bound".
126 * p-exp.y (yylex): Declare "i" in loop header.
127 * objfiles.c (objfile_relocate1): Declare "i" in loop header.
128 Lower declaration of "s".
129 * nios2-tdep.c (nios2_analyze_prologue): Declare "i" in loop
130 header.
131 (nios2_push_dummy_call): Rename "len".
132 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Rename static
133 "buf".
134 (linux_xfer_osdata_fds, linux_xfer_osdata_shm)
135 (linux_xfer_osdata_sem, linux_xfer_osdata_msg)
136 (linux_xfer_osdata_modules): Likewise.
137 * mips-tdep.c (mips_eabi_push_dummy_call): Rename outer "len".
138 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
139 (mips_o64_push_dummy_call): Likewise.
140 * microblaze-tdep.c (microblaze_analyze_prologue): Rename inner
141 "op".
142 * mi/mi-main.c (list_available_thread_groups): Rename inner
143 "tuple_emitter".
144 (mi_cmd_data_read_memory): Rename inner "opts".
145 * mi/mi-cmd-var.c (varobj_update_one): Rename inner
146 "tuple_emitter".
147 * mep-tdep.c (mep_analyze_prologue): Declare "rn" in loop header.
148 * mdebugread.c (parse_symbol): Rename inner "b". Declare "f" in
149 more inner scope.
150 (parse_partial_symbols): Rename inner "pst", "p", "name"
151 * main.c (captured_main_1): Rename inner "i"s.
152 * machoread.c (macho_symfile_read_all_oso): Don't redeclare
153 "oso2".
154 * linux-tdep.c (linux_info_proc): Rename inner "filename".
155 * linespec.c (linespec_lexer_lex_string): Rename inner "p".
156 * infrun.c (handle_no_resumed): Don't redeclare "thread".
157 (handle_signal_stop): Rename inner "gdbarch".
158 (handle_command): Declare "signum" in loop header.
159 * ia64-tdep.c (ia64_pseudo_register_read): Don't redeclare
160 "status".
161 (examine_prologue): Rename inner "sol" and "sof".
162 (ia64_extract_return_value): Rename inner "val". Declare another
163 "val" in a more inner scope.
164 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Declare "buf" in
165 inner scope.
166 * guile/scm-symbol.c (gdbscm_lookup_symbol): Rename inner
167 "except".
168 * findvar.c (default_read_var_value): Don't redeclare "addr".
169 * f-exp.y (yylex): Declare "i" in loop header.
170 * eval.c (evaluate_subexp_standard): Don't redeclare "type".
171 Rename inner "type", "expect_type".
172 (evaluate_subexp_for_sizeof): Rename inner "pc".
173 * elfread.c (elf_symfile_read): Rename inner "abfd".
174 * dwarf2read.c (read_debug_names_from_section): Don't redeclare
175 "bytes_read".
176 (process_psymtab_comp_unit_reader): Don't redeclare "gdbarch".
177 (add_partial_subprogram): Rename inner "lowpc" and "highpc".
178 (dwarf_decode_line_header): Rename inner "lh".
179 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Don't redeclare
180 "offset". Declare "i" in loop header.
181 (disassemble_dwarf_expression): Rename inner "addr_size".
182 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Rename
183 inner "result".
184 (dwarf_expr_context::execute_stack_op): Rename inner "offset".
185 * dwarf2-frame.c (decode_frame_entry_1): Rename inner "length"s.
186 * disasm.c (do_mixed_source_and_assembly_deprecated): Rename inner
187 "inner_list_emitter".
188 (do_mixed_source_and_assembly): Rename inner "tuple_emitter".
189 * disasm-selftests.c (print_one_insn_test): Wrap "bplen"
190 declaration in a block.
191 * csky-tdep.c (csky_analyze_prologue): Declare "offset" lower.
192 * cp-valprint.c (cp_print_value_fields): Don't redeclare
193 "obstack_final_size".
194 * cp-support.c (inspect_type): Declare "i" in loop header.
195 * compile/compile.c (compile_instance::insert_symbol_error):
196 Rename inner "e".
197 * common/agent.c (agent_run_command): Remove inner "ret"
198 declaration.
199 * coffread.c (coff_symfile_read): Rename inner "name".
200 (coff_symfile_read): Rename inner "abfd".
201 * cli/cli-utils.c (get_number_trailer): Rename inner "val".
202 * cli/cli-cmds.c (print_disassembly): Rename inner "low" and
203 "high".
204 * c-exp.y (lex_one_token): Move "len" declaration lower.
205 * breakpoint.c (create_longjmp_master_breakpoint): Don't redeclare
206 "gdbarch".
207 (create_exception_master_breakpoint): Likewise. Don't redeclare
208 "b".
209 (watch_command_1): Declare "mark" later.
210 (clear_command): Don't shadow "a" or "b".
211 (delete_command): Rename inner "b".
212 (delete_trace_command): Likewise.
213 * arm-tdep.c (thumb_process_displaced_32bit_insn): Rename inner
214 "op".
215 (arm_gdbarch_init): Remove inner "e_flags".
216 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Declare
217 "offset" in inner blocks.
218
1f88d0c8
SM
2192018-10-04 Simon Marchi <simon.marchi@ericsson.com>
220
221 * dwarf-index-write.c (file_write): Don't write if the vector is
222 empty.
223
5c4481cc
TV
2242018-10-05 Tom de Vries <tdevries@suse.de>
225
226 * python/py-progspace.c (pspy_solib_name): Fix type mismatch in
227 PyArg_ParseTuple call.
228
96b1ad86
TV
2292018-10-05 Tom de Vries <tdevries@suse.de>
230
231 * python/py-record-btrace.c (recpy_bt_goto): Fix type mismatch in
232 PyArg_ParseTuple call.
233
d2f7dcb2
JB
2342018-10-04 Joel Brobecker <brobecker@adacore.com>
235
236 * psymtab.c (recursively_search_psymtabs): Reformat parameters
237 to avoid exceeding 80 characters per line limit.
238
5ca8c39f
TT
2392018-10-04 Tom Tromey <tom@tromey.com>
240
241 * symfile.c (syms_from_objfile_1, finish_new_objfile)
242 (reread_symbols): Update.
243 * complaints.h (clear_complaints): Remove argument.
244 * complaints.c (enum complaint_series): Remove.
245 (series): Remove global.
246 (complaint_internal): Update.
247 (clear_complaints): Remove argument.
248
e79497a1
TT
2492018-10-04 Tom Tromey <tom@tromey.com>
250
251 * symfile.c (symbol_file_add_with_addrs): Do not print "no
252 debugging symbols" message if there is a separate debug objfile.
253
3453e7e4
TT
2542018-10-04 Tom Tromey <tom@tromey.com>
255
256 PR cli/19551:
257 * symfile.c (symbol_file_add_with_addrs): Update output.
258 * psymtab.c (require_partial_symbols): Update output.
259
6afcf761
TT
2602018-10-04 Tom Tromey <tom@tromey.com>
261
262 PR cli/22234:
263 * complaints.c: Emit \n.
264
22068491
TT
2652018-10-04 Tom Tromey <tom@tromey.com>
266
267 * symfile.c (symbol_file_add_with_addrs, symbol_file_clear)
268 (separate_debug_file_exists, find_separate_debug_file)
269 (add_symbol_file_command, reread_symbols, allocate_symtab)
270 (allocate_compunit_symtab): Use filtered printing, not
271 unfiltered.
272 * psymtab.c (require_partial_symbols, dump_psymtab)
273 (allocate_psymtab): Use filtered printing, not unfiltered.
274
9fdd7193
TT
2752018-10-04 Tom Tromey <tom@tromey.com>
276
277 * complaints.c (complaint_internal): Correctly check complaint
278 count.
279
3f2cf4dc
TT
2802018-10-04 Tom Tromey <tom@tromey.com>
281
282 * complaints.h (struct complaints): Remove declaration.
283 * complaints.c (clear_complaints): Remove an unused variable.
284
4f9bdf7f
RO
2852018-10-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
286
287 * MAINTAINERS (Write After Approval): Add self.
288
875e5398
TT
2892018-10-03 Tom Tromey <tom@tromey.com>
290
291 * guile/scm-value.c (gdbscm_value_to_string): Initialize
292 "buffer_contents".
293 * coffread.c (coff_symtab_read): Initialize "newobj".
294
8634679f
SM
2952018-10-03 Simon Marchi <simon.marchi@polymtl.ca>
296
297 * dwarf2read.c (read_func_scope): Remove struct keyword in
298 range-based for.
299
f35d5ade
TT
3002018-10-03 Tom Tromey <tom@tromey.com>
301
302 * README: Mention --enable-ubsan.
303 * NEWS: Mention --enable-ubsan.
304 * acinclude.m4: Include sanitize.m4.
305 * configure: Rebuild.
306 * configure.ac: Call AM_GDB_UBSAN.
307 * sanitize.m4: New file.
308
1dffa580
TT
3092018-10-03 Tom Tromey <tom@tromey.com>
310
311 * expression.h (enum exp_opcode): Use uint8_t as base type.
312 * expprint.c (op_name): Handle invalid opcodes.
313
5e70ee09
TT
3142018-10-03 Tom Tromey <tom@tromey.com>
315
316 * parse.c (prefixify_expression): Add assert.
317 (parse_exp_in_context_1): Throw exception if the expression is
318 empty.
319
4dd1b460
TT
3202018-10-03 Tom Tromey <tom@tromey.com>
321
322 * dwarf2read.c (read_signed_leb128): Work in ULONGEST.
323
20562150
TT
3242018-10-03 Tom Tromey <tom@tromey.com>
325
326 * c-exp.y (parse_number): Work in unsigned. Remove casts.
327
d359392f
TT
3282018-10-03 Tom Tromey <tom@tromey.com>
329
330 * dwarf2read.c (read_subrange_type): Make "negative_mask"
331 unsigned.
332
0101665f
TT
3332018-10-03 Tom Tromey <tom@tromey.com>
334
335 * findvar.c (extract_integer): Do work in an unsigned type.
336
ad69edbb
TT
3372018-10-03 Tom Tromey <tom@tromey.com>
338
339 * common/enum-flags.h (enum_flags::operator~): Add static assert.
340 * symfile-add-flags.h (enum symfile_add_flag): Use unsigned as
341 base type.
342 * objfile-flags.h (enum objfile_flag): Use unsigned as base type.
343 * gdbtypes.h (enum type_instance_flag_value): Use unsigned as base
344 type.
345 * c-lang.h (enum c_string_type_values): Use unsigned as base
346 type.
347 * btrace.h (enum btrace_thread_flag): Use unsigned as base type.
348
780942fc
TT
3492018-10-03 Tom Tromey <tom@tromey.com>
350
351 * dwarf2-frame.h (dwarf2_frame_state_reg_info)
352 <~dwarf2_frame_state_reg_info>: Update.
353 <dwarf2_frame_state_reg_info>: Update.
354 <alloc_regs>: Add assertion. Update.
355 <reg>: Now a std::vector.
356 <num_regs>: Remove.
357 <swap>: Update.
358 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
359 (execute_cfa_program_test, dwarf2_frame_cache): Update.
360
10657c04
TT
3612018-10-03 Tom Tromey <tom@tromey.com>
362
363 * namespace.c (add_using_directive): Don't pass NULL to memcpy.
364
34c0fc00
PW
3652018-10-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
366
367 * tid-parse.c (tid_is_in_list): Fix wrong 'See' comment.
368
2398abf8
TT
3692018-10-02 Tom Tromey <tom@tromey.com>
370
371 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Use pulongest.
372
c1168a2f
JD
3732018-10-02 John Darrington <john@darrington.wattle.id.au>
374
375 * NEWS: Mention changed commands.
376 * ser-uds.c: New file.
377 * configure.ac (SER_HARDWIRE): Add ser-uds.o.
378 * configure: Regenerate.
379 * Makefile.in: Add new file.
380 * serial.c (serial_open): Check if filename is a socket
381 and lookup the appropriate interface accordingly.
382
05c71722
AH
3832018-10-01 Alan Hayward <alan.hayward@arm.com>
384
385 * aarch64-linux-tdep.c (AARCH64_SIGCONTEXT_RESERVED_OFFSET): Add
386 define.
387 (AARCH64_EXTRA_MAGIC): Likewise.
388 (AARCH64_FPSIMD_MAGIC): Likewise.
389 (AARCH64_SVE_MAGIC): Likewise.
390 (AARCH64_EXTRA_DATAP_OFFSET): Likewise.
391 (AARCH64_FPSIMD_FPSR_OFFSET): Likewise.
392 (AARCH64_FPSIMD_FPCR_OFFSET): Likewise.
393 (AARCH64_FPSIMD_V0_OFFSET): Likewise.
394 (AARCH64_FPSIMD_VREG_SIZE): Likewise.
395 (AARCH64_SVE_CONTEXT_VL_OFFSET): Likewise.
396 (AARCH64_SVE_CONTEXT_REGS_OFFSET): Likewise.
397 (AARCH64_SVE_CONTEXT_P_REGS_OFFSET): Likewise.
398 (AARCH64_SVE_CONTEXT_FFR_OFFSET): Likewise.
399 (AARCH64_SVE_CONTEXT_SIZE): Likewise.
400 (read_aarch64_ctx): Add function.
401 (aarch64_linux_sigframe_init): Detect FP registers.
402
c74e7cb9
AH
4032018-10-01 Alan Hayward <alan.hayward@arm.com>
404
405 * aarch64-tdep.c (AARCH64_Q0_REGNUM): Move to here.
406 (AARCH64_D0_REGNUM): Likewise.
407 (AARCH64_S0_REGNUM): Likewise.
408 (AARCH64_H0_REGNUM): Likewise.
409 (AARCH64_B0_REGNUM): Likewise.
410 (AARCH64_SVE_V0_REGNUM): Likewise.
411 * arch/aarch64.h (AARCH64_Q0_REGNUM): Move from here.
412 (AARCH64_D0_REGNUM): Likewise.
413 (AARCH64_S0_REGNUM): Likewise.
414 (AARCH64_H0_REGNUM): Likewise.
415 (AARCH64_B0_REGNUM): Likewise.
416 (AARCH64_SVE_V0_REGNUM): Likewise.
417
12b164e9
GB
4182018-10-01 Gary Benson <gbenson@redhat.com>
419
420 * gdb_proc_service.h (gdb_prfpregset_t): Remove typedef.
421 * proc-service.c (ps_lgetfpregs, ps_lsetfpregs): Use
422 prfpregset_t instead of gdb_prfpregset_t.
423 * configure.ac (PRFPREGSET_T_BROKEN): Remove check.
424 * configure, config.in: Rebuild.
425
7c619dbd
GB
4262018-10-01 Gary Benson <gbenson@redhat.com>
427
428 * common/gdb_proc_service.h: New file, factored out from...
429 * gdb_proc_service.h: Moved common code to the above file.
430 * Makefile.in (HFILES_NO_SRCDIR): Add the above new file.
431
358ffcf2
GB
4322018-10-01 Gary Benson <gbenson@redhat.com>
433
434 * gdb_proc_service.h: Use elf_gregset_t if prgregset_t is
435 undefined. Use elf_fpregset_t if prfpregset_t is undefined.
436
43b7e92b
GB
4372018-10-01 Gary Benson <gbenson@redhat.com>
438
439 * configure.ac: Check if sys/procfs.h defines elf_fpregset_t.
440 (AC_CHECK_HEADERS): Check for linux/elf.h.
441 * configure, config.in: Rebuild.
442 * gdb_proc_service.h: Include linux/elf.h if sys/procfs.h
443 doesn't define elf_fpregset_t.
444
3795e814
GB
4452018-10-01 Gary Benson <gbenson@redhat.com>
446
447 * gdb_proc_service.h: Whitespace change.
448
4176f14d
TT
4492018-10-01 Tom Tromey <tom@tromey.com>
450
451 * unittests/scoped_mmap-selftests.c: Don't check HAVE_UNISTD_H.
452 * unittests/scoped_fd-selftests.c: Don't check HAVE_UNISTD_H.
453 * common/scoped_fd.h: Don't check HAVE_UNISTD_H.
454
a95746f9
TT
4552018-10-01 Tom Tromey <tom@tromey.com>
456
457 * README: Minor change.
458
dd203782
PA
4592018-09-30 Pedro Alves <palves@redhat.com>
460
461 * darwin-nat-info.c (darwin_debug_regions_recurse)
462 (info_mach_exceptions_command): Remove unused local variables.
463 * darwin-nat.c (darwin_decode_notify_message)
464 (darwin_nat_target::resume, darwin_nat_target::mourn_inferior)
465 (darwin_stop_inferior, darwin_setup_exceptions)
466 (darwin_nat_target::kill, darwin_attach_pid, darwin_ptrace_him)
467 (darwin_nat_target::attach, darwin_nat_target::detach)
468 (darwin_read_write_inferior, darwin_read_dyld_info): Remove unused
469 local variables.
470 * i386-darwin-nat.c (i386_darwin_dr_set): Remove unused local
471 variables.
472
c82a2e6f
TT
4732018-09-29 Tom Tromey <tom@tromey.com>
474
475 * README: Remove some leftover text.
476
7f0bd420
TT
4772018-09-29 Tom Tromey <tom@tromey.com>
478
479 * PROBLEMS: Rewrite.
480 * README: Update.
481
f37bc8b1
JB
4822018-09-28 John Baldwin <jhb@FreeBSD.org>
483
484 * disasm-selftests.c (print_one_insn_test): Add bfd_arch_riscv to
485 case with explicit breakpoint kind.
486 * riscv-tdep.c (show_use_compressed_breakpoints): Remove
487 'additional_info' and related logic.
488 (riscv_debug_breakpoints): New variable.
489 (riscv_breakpoint_kind_from_pc): Use the length of the existing
490 instruction to determine the breakpoint kind.
491 (_initialize_riscv_tdep): Add 'set/show debug riscv breakpoints'
492 flag. Update description of 'set/show riscv
493 use-compressed-breakpoints' flag.
494
f67ffa6a
AB
4952018-09-28 Andrew Burgess <andrew.burgess@embecosm.com>
496
497 (NEWS): Mention changes to frame related commands.
498 * cli/cli-decode.c (add_cmd_suppress_notification): New function.
499 (add_prefix_cmd_suppress_notification): New function.
500 (add_com_suppress_notification): Call
501 add_cmd_suppress_notification.
502 * command.h (add_cmd_suppress_notification): Declare.
503 (add_prefix_cmd_suppress_notification): Declare.
504 * mi/mi-cmd-stack.c: Add 'safe-ctype.h' include.
505 (parse_frame_specification): Moved from stack.c, with
506 simplification to handle a single argument.
507 (mi_cmd_stack_select_frame): Use parse_frame_specification, the
508 switch to the selected frame. Add a header comment.
509 * stack.c: Remove 'safe-ctype.h' include.
510 (find_frame_for_function): Add declaration.
511 (find_frame_for_address): New function.
512 (parse_frame_specification): Moved into mi/mi-cmd-stack.c.
513 (frame_selection_by_function_completer): New function.
514 (info_frame_command): Rename to...
515 (info_frame_command_core): ...this, and update parameter types.
516 (select_frame_command): Rename to...
517 (select_frame_command_core): ...this, and update parameter types.
518 (frame_command): Rename to...
519 (frame_command_core): ...this, and update parameter types.
520 (class frame_command_helper): New class to wrap implementations of
521 frame related sub-commands.
522 (frame_apply_cmd_list): New static global.
523 (frame_cmd_list): Make static.
524 (select_frame_cmd_list): New global for sub-commands.
525 (info_frame_cmd_list): New global for sub-commands.
526 (_initialize_stack): Register sub-commands for 'frame',
527 'select-frame', and 'info frame'. Update 'frame apply' commands
528 to use frame_apply_cmd_list. Move function local static
529 frame_apply_list to file static frame_apply_cmd_list for
530 consistency.
531 * stack.h (select_frame_command): Delete declarationn.
532 (select_frame_for_mi): Declare new function.
533
d354055e
AB
5342018-09-26 Andrew Burgess <andrew.burgess@embecosm.com>
535
536 * riscv-tdep.c (riscv_insn::decode): Decode c.lui.
537 (riscv_scan_prologue): Split handling of AUIPC, LUI, ADD, ADDI,
538 and NOP.
539
85392414
SM
5402018-09-26 Simon Marchi <simon.marchi@ericsson.com>
541
542 * elf32-nds32.c (elf32_nds32_allocate_dynrelocs): Remove.
543
896ee098
TT
5442018-09-26 Tom Tromey <tom@tromey.com>
545
546 * valops.c (auto_abandon): Remove dead code.
547
57dbb3af
TT
5482018-09-26 Tom Tromey <tom@tromey.com>
549
550 * tui/tui-win.c (WIN_HEIGHT_USAGE): Remove extra ">"s.
551
b5a9bfbe
TT
5522018-09-24 Tom Tromey <tom@tromey.com>
553
554 * common/pathstuff.c (get_standard_cache_dir): Make
555 "xdg_cache_home" and "home" const.
556 * top.c (init_history): Make "tmpenv" const.
557 * main.c (get_init_files): Make "homedir" const.
558
ae778caf
TT
5592018-09-23 Tom Tromey <tom@tromey.com>
560
561 PR python/18852:
562 * python/py-param.c (get_set_value): Use gdbpy_handle_exception.
563
2b4ad2fe
TT
5642018-09-23 Tom Tromey <tom@tromey.com>
565
566 * python/py-function.c (fnpy_call): Use gdbpy_handle_exception.
567 * python/py-cmd.c (cmdpy_function): Use gdbpy_handle_exception.
568 * python/python-internal.h (gdbpy_handle_exception): Declare.
569 * python/py-utils.c (gdbpy_handle_exception): New function.
570
fd3ba736
TT
5712018-09-23 Tom Tromey <tom@tromey.com>
572
573 PR python/17284:
574 * python/py-type.c (typy_template_argument): Check for negative
575 argument number.
576
39a24317
TT
5772018-09-23 Tom Tromey <tom@tromey.com>
578
579 PR python/14062:
580 * python/python.c (gdbpy_run_events): Do not ignore exceptions.
581
f5769a2c
TT
5822018-09-23 Tom Tromey <tom@tromey.com>
583
584 PR python/18170:
585 * python/py-value.c (valpy_int): Allow conversion from pointer
586 type.
587
1c1e54f6
TT
5882018-09-23 Tom Tromey <tom@tromey.com>
589
590 PR python/20126:
591 * python/py-value.c (valpy_int): Respect type sign.
592
fb4fa946
TT
5932018-09-23 Tom Tromey <tom@tromey.com>
594
595 PR python/18352;
596 * python/py-value.c (valpy_float): Allow conversions from int or
597 char.
598 (valpy_int, valpy_long): Allow conversions from float.
599
65773341
TT
6002018-09-23 Tom Tromey <tom@tromey.com>
601
602 * ctf.c (ctf_start): Use gdb_fopen_cloexec.
603 * common/scoped_mmap.c (mmap_file): Use gdb_open_cloexec.
604
1db88d22
RO
6052018-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
606
607 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Also recognize
608 __sighndlr.
609 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Likewise.
610
a44294f5
JT
6112018-08-02 Jon Turney <jon.turney@dronecode.org.uk>
612
613 * windows-nat.c (windows_nat_target::wait): Remove a spurious
614 target_terminal::ours().
615
0c0a40e0
SM
6162018-09-23 Simon Marchi <simon.marchi@ericsson.com>
617
618 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): Change type
619 of vl to ULONGEST.
620
4daf1902
YS
6212018-09-21 Yacov Simhony <ysimhony@gmail.com>
622
623 * breakpoint.c (update_inserted_breakpoint_locations): Remove
624 redundant condition.
625
c475f569
RO
6262018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
627
628 * proc-utils.h (PROC_CTL_WORD_TYPE): Remove.
629
630 * procfs.c: Don't check for PR_MODEL_NATIVE definition.
631 * sparc-sol2-nat.c: Likewise. Remove Linux, __arch64__ references.
632 * sol-thread.c (ps_pdmodel): Don't guard definition.
633
634 * procfs.c: Fix formatting.
635
636 * procfs.c (sysset_t_alloc): Remove.
637 (create_procinfo): Use XNEW instead of sysset_t_alloc.
638 (procfs_debug_inferior): Likewise.
639 (procfs_set_exec_trap): Likewise.
640 (proc_set_traced_sysentry): Don't allocate argp dynamically.
641 (proc_set_traced_sysexit): Likewise.
642
643 * procfs.c (create_procinfo): Use xsnprintf to fix ARI warning.
644 (dead_procinfo): Likewise.
645 (proc_warn): Likewise.
646 (proc_error): Likewise.
647 (proc_get_LDT_entry): Likewise.
648 (do_attach): Likewise.
649 (procfs_target::pid_to_str): Likewise.
650 (iterate_over_mappings): Likewise.
651
652 * procfs.c (create_procinfo): Fix ARI warning.
653 (proc_get_status): Likewise.
654 (proc_stop_process): Likewise.
655 (proc_run_process): Likewise.
656 (proc_kill): Likewise.
657 (proc_get_LDT_entry): Likewise.
658 (procfs_find_LDT_entry): Likewise.
659 (proc_update_threads): Likewise.
660 (proc_iterate_over_threads): Likewise.
661 (do_attach): Likewise.
662 (procfs_xfer_memory): Likewise.
663 (invalidate_cache): Likewise.
664 (procfs_target::resume): Likewise.
665 (procfs_init_inferior): Likewise.
666 (procfs_set_exec_trap): Likewise.
667 (procfs_target::thread_alive): Likewise.
668 (procfs_target::pid_to_exec_file): Likewise.
669 (iterate_over_mappings): Likewise.
670 (procfs_target::make_corefile_notes): Likewise.
671 * sol-thread.c (sol_thread_target::thread_alive): Likewise.
672
673 * procfs.c (procfs_find_LDT_entry): Silence ARI warning.
674 (procfs_find_LDT_entry): Likewise.
675 * sol-thread.c (ps_lgetLDT): Likewise.
676
4206c05e
RO
6772018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
678
679 PR tdep/17903
680 * procfs.c (procfs_target): Declare pid_to_exec_file.
681 (procfs_target::pid_to_exec_file): New.
682
3d282ac3
RO
6832018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
684
685 * auxv.c (default_print_auxv_entry): Reflect AT_SUN_CAP_HW1
686 renaming.
687 Handle AT_SUN_EMULATOR, AT_SUN_BRANDNAME, AT_SUN_BRAND_AUX1,
688 AT_SUN_BRAND_AUX2, AT_SUN_BRAND_AUX3, AT_SUN_CAP_HW2.
689
8c93fae6
RO
6902018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
691
692 * i386-v4-nat.c (regmap, supply_gregset, fill_gregset)
693 (supply_fpregset, fill_fpregset): Move ...
694 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64]: ... here.
695 Remove HAVE_GREGSET_T, HAVE_FPREGET_T guards.
696 Remove references to ioctl-based procfs.
697 Include <sys/reg.h>.
698 Remove PR_MODEL_NATIVE guards.
699 * configure.nat <sol2, i386> (NATDEPFILES): Remove i386-v4-nat.o.
700 * Makefile.in (ALLDEPFILES): Remove i386-v4-nat.c.
701
79b32f4a
XR
7022018-09-19 Xavier Roirand <roirand@adacore.com>
703
704 PR gdb/20981:
705 * solib-darwin.c (darwin_get_dyld_bfd): New function.
706 (darwin_solib_get_all_image_info_addr_at_init): Update call.
707 (darwin_solib_create_inferior_hook): Handle unrelocated dyld.
708
07147793
JB
7092018-09-19 John Baldwin <jhb@FreeBSD.org>
710
711 * fbsd-tdep.c (fbsd_print_sockaddr_in): Style fix.
712 (fbsd_print_sockaddr_in6): Likewise.
713
23be8da7
RB
7142018-09-19 Richard Bunt <richard.bunt@arm.com>
715 Chris January <chris.january@arm.com>
716
717 * eval.c (skip_undetermined_arglist): Skip argument list helper.
718 (evaluate_subexp_standard): Return a dummy type when
719 honoring EVAL_SKIP in OP_VAR_VALUE and handle skipping in the
720 OP_F77_UNDETERMINED_ARGLIST case.
721 * expression.h (enum noside): Update comment.
722
7307a73a
RO
7232018-09-19 George Vasick <george.vasick@oracle.com>
724
725 * solib-svr4.c (svr4_same_1): Also handle amd64 ld.so.1.
726
13db92d3
RO
7272018-09-19 Stefan Teleman <stefan.teleman@oracle.com>
728 April Chin <april.chin@oracle.com>
729 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
730
731 * procfs.c (MAX_PROC_NAME_SIZE): Allow for 6-digit PID_MAX and
732 uint_t lwpid_t.
733 (create_procinfo): Print pids in /proc without leading zeros.
734
3d50f170
SL
7352018-09-18 Sandra Loosemore <sandra@codesourcery.com>
736
737 * nios2-tdep.c (nios2_gcc_target_options): New.
738 (nios2_gdb_arch_init): Install new hook.
739
b567ca63
SM
7402018-09-18 Simon Marchi <simon.marchi@ericsson.com>
741
742 * patches/0001-Fix-PR-gdb-23558-Use-system-s-getcwd-when-cross-comp.patch:
743 New file.
744 * update-gnulib.sh: Apply patch.
745 * configure: Re-generate.
746
73f1bd76
JB
7472018-09-18 John Baldwin <jhb@FreeBSD.org>
748
749 * infcmd.c (_initialize_infcmd): Remove "running" from "info proc"
750 description. Make "info proc" command descriptions more
751 consistent.
752
8b113111
JB
7532018-09-18 John Baldwin <jhb@FreeBSD.org>
754
755 * NEWS: Mention 'info proc files' command.
756
7e69672e
JB
7572018-09-18 John Baldwin <jhb@FreeBSD.org>
758
759 * fbsd-nat.c (fbsd_nat_target::info_proc): List open file
760 descriptors for IP_FILES and IP_ALL.
761
57c2a98a
JB
7622018-09-18 John Baldwin <jhb@FreeBSD.org>
763
764 * fbsd-tdep.c (KF_FLAGS, KF_OFFSET, KF_VNODE_TYPE, KF_SOCK_DOMAIN)
765 (KF_SOCK_TYPE, KF_SOCK_PROTOCOL, KF_SA_LOCAL, KF_SA_PEER)
766 (KINFO_FILE_TYPE_SOCKET, KINFO_FILE_TYPE_PIPE)
767 (KINFO_FILE_TYPE_FIFO, KINFO_FILE_TYPE_KQUEUE)
768 (KINFO_FILE_TYPE_CRYPTO, KINFO_FILE_TYPE_MQUEUE)
769 (KINFO_FILE_TYPE_SHM, KINFO_FILE_TYPE_SEM, KINFO_FILE_TYPE_PTS)
770 (KINFO_FILE_TYPE_PROCDESC, KINFO_FILE_FD_TYPE_ROOT)
771 (KINFO_FILE_FD_TYPE_JAIL, KINFO_FILE_FD_TYPE_TRACE)
772 (KINFO_FILE_FD_TYPE_CTTY, KINFO_FILE_FLAG_READ)
773 (KINFO_FILE_FLAG_WRITE, KINFO_FILE_FLAG_APPEND)
774 (KINFO_FILE_FLAG_ASYNC, KINFO_FILE_FLAG_FSYNC)
775 (KINFO_FILE_FLAG_NONBLOCK, KINFO_FILE_FLAG_DIRECT)
776 (KINFO_FILE_FLAG_HASLOCK, KINFO_FILE_FLAG_EXEC)
777 (KINFO_FILE_VTYPE_VREG, KINFO_FILE_VTYPE_VDIR)
778 (KINFO_FILE_VTYPE_VCHR, KINFO_FILE_VTYPE_VLNK)
779 (KINFO_FILE_VTYPE_VSOCK, KINFO_FILE_VTYPE_VFIFO, FBSD_AF_UNIX)
780 (FBSD_AF_INET, FBSD_AF_INET6, FBSD_SOCK_STREAM, FBSD_SOCK_DGRAM)
781 (FBSD_SOCK_SEQPACKET, FBSD_IPPROTO_ICMP, FBSD_IPPROTO_TCP)
782 (FBSD_IPPROTO_UDP, FBSD_IPPROTO_SCTP): New defines.
783 (struct fbsd_sockaddr_in, struct fbsd_sockaddr_in6)
784 (struct fbsd_sockaddr_un): New types.
785 (fbsd_file_fd, fbsd_file_type, fbsd_file_flags, fbsd_ipproto)
786 (fbsd_print_sockaddr_in, fbsd_print_sockaddr_in6)
787 (fbsd_info_proc_files_header, fbsd_info_proc_files_entry)
788 (fbsd_core_info_proc_files): New functions.
789 (fbsd_core_info_proc): List open file descriptors for IP_FILES and
790 IP_ALL.
791 * fbsd-tdep.h (fbsd_info_proc_files_header)
792 (fbsd_info_proc_files_entry): New.
793
e98ee8c4
JB
7942018-09-18 John Baldwin <jhb@FreeBSD.org>
795
796 * defs.h (enum info_proc_what) [IP_FILES]: New value.
797 * infcmd.c (info_proc_cmd_files): New function.
798 (_initialize_infcmd): Register 'info proc files' command.
799
725e2999
JB
8002018-09-18 John Baldwin <jhb@FreeBSD.org>
801
802 * gnulib/aclocal-m4-deps.mk: Re-generate.
803 * gnulib/aclocal.m4: Re-generate.
804 * gnulib/config.in: Re-generate.
805 * gnulib/configure: Re-generate.
806 * gnulib/import/Makefile.am: Re-generate.
807 * gnulib/import/Makefile.in: Re-generate.
808 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
809 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
810 * gnulib/import/arpa_inet.in.h: New file.
811 * gnulib/import/inet_ntop.c: New file.
812 * gnulib/import/m4/arpa_inet_h.m4: New file.
813 * gnulib/import/m4/inet_ntop.m4: New file.
814 * gnulib/import/m4/netinet_in_h.m4: New file.
815 * gnulib/import/m4/socklen.m4: New file.
816 * gnulib/import/m4/sockpfaf.m4: New file.
817 * gnulib/import/m4/stdalign.m4: New file.
818 * gnulib/import/m4/sys_uio_h.m4: New file.
819 * gnulib/import/netinet_in.in.h: New file.
820 * gnulib/import/stdalign.in.h: New file.
821 * gnulib/import/sys_socket.c: New file.
822 * gnulib/import/sys_socket.in.h: New file.
823 * gnulib/import/sys_uio.in.h: New file.
824 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add inet_ntop
825 module.
826
2afffa7f
JB
8272018-09-18 John Baldwin <jhb@FreeBSD.org>
828
829 * gnulib/aclocal-m4-deps.mk: New file.
830 * gnulib/update-gnulib.sh: Generate "aclocal-m4-deps.mk"
831 deterministically.
832
9f235e09
JB
8332018-09-18 John Baldwin <jhb@FreeBSD.org>
834
835 * fbsd-tdep.c (fbsd_core_vnode_path): Use KF_PATH instead of
836 KVE_PATH.
837
40f03055
TT
8382018-09-18 Tom Tromey <tom@tromey.com>
839
840 * compile/compile-object-load.c (struct
841 link_hash_table_cleanup_data): Add constructor and destructor.
842 Use DISABLE_COPY_AND_ASSIGN.
843 (~link_hash_table_cleanup_data): Rename from
844 link_hash_table_free. Now a destructor.
845 (copy_sections): Use gdb::unique_xmalloc_ptr. Remove cleanups.
846
c9e0a7e3
TT
8472018-09-18 Tom Tromey <tom@tromey.com>
848
849 * compile/compile-object-run.c (do_module_cleanup): Use delete.
850 * compile/compile-object-load.c (struct munmap_list): Move to
851 header file.
852 (munmap_list::add): Rename from munmap_list_add; rewrite.
853 (munmap_list::~munmap_list): Rename from munmap_list_free.
854 (munmap_listp_free_cleanup): Remove.
855 (compile_object_load): Update.
856 * compile/compile-object-load.h (struct munmap_list): Move from
857 compile-object-load.c. Rewrite.
858
3ff2c72e
AH
8592018-09-18 Alan Hayward <alan.hayward@arm.com>
860
861 * aarch64-tdep.c (pass_in_v): Use register size.
862 (aarch64_extract_return_value): Likewise.
863 (aarch64_store_return_value): Likewise.
864
206c1947
RO
8652018-09-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
866
867 * utils.c (dump_core) [HAVE_SETRLIMIT]: Cast RLIM_INFINITY to
868 rlim_t.
869
6eb5dbce
PW
8702018-09-17 Philippe Waroquiers <philippe.waroquiers@skynet.be>
871
872 * python/lib/gdb/command/frame_filters.py (EnableFrameFilter):
873 Fix short help line.
874
ae292b3a
TT
8752018-09-17 Tom Tromey <tom@tromey.com>
876
877 PR python/20445:
878 * configure: Rebuild.
879 * configure.ac: Conditionally use -DNDEBUG for Python.
880
da658607
TT
8812018-09-17 Tom Tromey <tom@tromey.com>
882
883 * configure: Rebuild.
884 * configure.ac: Use gmp as a library dependency when checking for
885 mpfr.
886
d35da542
PA
8872018-09-17 Pedro Alves <palves@redhat.com>
888
889 * python/py-inferior.c (find_inferior_object): Delete.
890
461464f2
SM
8912018-09-17 Simon Marchi <simon.marchi@ericsson.com>
892
893 * compile/compile-cplus-types.c
894 (compile_cplus_instance::enter_scope): Don't use new_scope after
895 std::move.
896
e6cd1dc1
TT
8972018-09-17 Tom Tromey <tom@tromey.com>
898
899 * common/pathstuff.c (get_standard_cache_dir): Use
900 ~/Library/Caches on macOS.
901 * common/pathstuff.h (get_standard_cache_dir): Update comment.
902
8588b356
SM
9032018-09-17 Simon Marchi <simon.marchi@polymtl.ca>
904
905 PR python/23669
906 * breakpoint.c (commands_cmd_element): New.
907 (_initialize_breakpoint): Assign commands_cmd_element.
908 * breakpoint.h (commands_cmd_element): New.
909 * cli/cli-script.c (while_cmd_element, if_command,
910 define_cmd_element): New.
911 (command_name_equals): Remove.
912 (process_next_line): Compare commands by pointer, not by name.
913 (_initialize_cli_script): Assign the various cmd_list_element
914 variables.
915 * compile/compile.c (compile_cmd_element): New.
916 (_initialize_compile): Assign compile_cmd_element.
917 * compile/compile.h (compile_cmd_element): New.
918 * guile/guile.c (guile_cmd_element): New.
919 (install_gdb_commands): Assign guile_cmd_element.
920 * guile/guile.h (guile_cmd_element): New.
921 * python/python.c (python_cmd_element): New.
922 (_initialize_python): Assign python_cmd_element.
923 * python/python.h (python_cmd_element): New.
924 * tracepoint.c (while_stepping_cmd_element): New.
925 (_initialize_tracepoint): Assign while_stepping_cmd_element.
926 * tracepoint.h (while_stepping_cmd_element): New.
927
cb524840
TT
9282018-09-17 Tom Tromey <tom@tromey.com>
929
930 * infrun.c (save_infcall_suspend_state): Return
931 infcall_suspend_state_up.
932 (save_infcall_control_state): Return infcall_control_state_up.
933 * inferior.h (save_infcall_suspend_state)
934 (save_infcall_control_state): Declare later. Return unique
935 pointers.
936
2d844eaf
TT
9372018-09-17 Tom Tromey <tom@tromey.com>
938
939 * infrun.c (struct stop_context): Declare constructor,
940 destructor, "changed" method.
941 (stop_context::stop_context): Rename from save_stop_context.
942 (stop_context::~stop_context): Rename from
943 release_stop_context_cleanup.
944 (normal_stop): Update.
945 (stop_context::changed): Rename from stop_context_changed. Return
946 bool.
947
c7c4d3fa
TT
9482018-09-17 Tom Tromey <tom@tromey.com>
949
950 * inferior.h (struct infcall_suspend_state_deleter): New.
951 (infcall_suspend_state_up): New typedef.
952 (struct infcall_control_state_deleter): New.
953 (infcall_control_state_up): New typedef.
954 (make_cleanup_restore_infcall_suspend_state)
955 (make_cleanup_restore_infcall_control_state): Don't declare.
956 * infcall.c (call_function_by_hand_dummy): Update.
957 * infrun.c (do_restore_infcall_suspend_state_cleanup)
958 (make_cleanup_restore_infcall_suspend_state): Remove.
959 (do_restore_infcall_control_state_cleanup)
960 (make_cleanup_restore_infcall_control_state): Remove.
961
ee841dd8
TT
9622018-09-17 Tom Tromey <tom@tromey.com>
963
964 * gdbthread.h (struct thread_control_state): Add initializer.
965 (class thread_info) <control>: Remove initializer.
966 * inferior.h (struct inferior_control_state): Add initializer.
967 (class inferior) <control>: Remove initializer.
968 (exit_inferior_1): Update.
969 * infrun.c (struct infcall_control_state): Add constructors.
970 (save_infcall_control_state): Use new.
971 (restore_infcall_control_state, discard_infcall_control_state):
972 Use delete.
973
117f580a
TT
9742018-09-17 Tom Tromey <tom@tromey.com>
975
976 * infrun.c (struct infcall_suspend_state) <registers>: Now a
977 unique_ptr.
978 <siginfo_data>: Now a unique_xmalloc_ptr.
979 (save_infcall_suspend_state, restore_infcall_suspend_state)
980 (discard_infcall_suspend_state)
981 (get_infcall_suspend_state_regcache): Update.
982
dd848631
TT
9832018-09-17 Tom Tromey <tom@tromey.com>
984
985 * gdbthread.h (struct thread_suspend_state): Add initializers.
986 (class thread_info) <suspend>: Remove initializer.
987 * infrun.c (struct infcall_suspend_state): Add initializers.
988 (save_infcall_suspend_state): Use new.
989 (discard_infcall_suspend_state): Use delete.
990
1a338907
TT
9912018-09-16 Tom Tromey <tom@tromey.com>
992
993 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
994 Remove.
995 * python/py-varobj.c (py_varobj_iter_ctor): Change pyiter to
996 rvalue reference. Remove CPYCHECKER_STEALS_REFERENCE_TO_ARG.
997 (py_varobj_iter_new): Likewise.
998 (py_varobj_get_iterator): Use gdbpy_ref.
999
4a137fec
TT
10002018-09-16 Tom Tromey <tom@tromey.com>
1001
1002 * python/py-threadevent.c (py_get_event_thread): Simplify.
1003 * python/py-inferior.c (infpy_thread_from_thread_handle):
1004 Return immediately after calling thread_to_thread_object. Use
1005 Py_RETURN_NONE.
1006 (thread_to_thread_object): Set the exception on a NULL return.
1007
8ff03f0b
SM
10082018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
1009
1010 * Makefile.in (LIBGDB_OBS): Sort COMMON_OBS.
1011
94c8b725
TT
10122018-09-16 Tom Tromey <tom@tromey.com>
1013
1014 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
1015 Remove.
1016
db1337cc
TT
10172018-09-16 Tom Tromey <tom@tromey.com>
1018
1019 * python/python-internal.h (thread_to_thread_object): Change
1020 return type.
1021 * python/py-inferior.c (thread_to_thread_object): Return a new
1022 reference.
1023 (infpy_thread_from_thread_handle): Update.
1024 * python/py-infthread.c (gdbpy_selected_thread): Update.
1025 * python/py-stopevent.c (create_stop_event_object): Update.
1026 * python/py-threadevent.c (py_get_event_thread): Return a new
1027 reference.
1028 (py_get_event_thread): Update.
1029 * python/py-event.h (py_get_event_thread): Change return type.
1030 * python/py-continueevent.c (create_continue_event_object):
1031 Update.
1032
0a9db5ad
TT
10332018-09-16 Tom Tromey <tom@tromey.com>
1034
1035 * python/py-progspace.c (pspy_get_objfiles): Update.
1036 * python/python-internal.h (objfile_to_objfile_object): Change
1037 return type.
1038 * python/py-newobjfileevent.c (create_new_objfile_event_object):
1039 Update.
1040 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
1041 Update.
1042 * python/python.c (gdbpy_get_current_objfile): Update.
1043 (gdbpy_objfiles): Update.
1044 * python/py-objfile.c (objfpy_get_owner, gdbpy_lookup_objfile):
1045 Update.
1046 (objfile_to_objfile_object): Return a new reference.
1047 * python/py-symtab.c (stpy_get_objfile): Update.
1048 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
1049 Update.
1050
3c7aa307
TT
10512018-09-16 Tom Tromey <tom@tromey.com>
1052
1053 * python/py-inferior.c (infpy_get_progspace): Update.
1054 * python/python-internal.h (pspace_to_pspace_object): Change
1055 return type.
1056 * python/py-newobjfileevent.c
1057 (create_clear_objfiles_event_object): Update.
1058 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
1059 Update.
1060 * python/python.c (gdbpy_get_current_progspace): Update.
1061 (gdbpy_progspaces): Update.
1062 * python/py-progspace.c (pspace_to_pspace_object): Return a new
1063 reference.
1064 * python/py-objfile.c (objfpy_get_progspace): Update.
1065 * python/py-prettyprint.c (find_pretty_printer_from_progspace):
1066 Update.
1067
8743a9cd
TT
10682018-09-16 Tom Tromey <tom@tromey.com>
1069
1070 * python/lib/gdb/__init__.py (current_progspace, objfiles)
1071 (solib_name, block_for_pc, find_pc_line): New functions.
1072 (execute_unwinders): Update.
1073 * python/py-block.c (gdbpy_block_for_pc): Remove.
1074 * python/py-inferior.c (infpy_get_progspace): New function.
1075 (inferior_object_getset) <progspace>: Add.
1076 * python/py-progspace.c (pspy_objfiles): Rewrite.
1077 (pspy_solib_name, pspy_block_for_pc)
1078 (pspy_find_pc_line, pspy_is_valid): New functions.
1079 (progspace_object_methods): Add entries for solib_name,
1080 block_for_pc, find_pc_line, is_valid.
1081 * python/python-internal.h (gdbpy_block_for_pc)
1082 (build_objfiles_list): Don't declare.
1083 * python/python.c: Don't include solib.h.
1084 (gdbpy_solib_name, gdbpy_find_pc_line)
1085 (gdbpy_get_current_progspace, build_objfiles_list)
1086 (gdbpy_objfiles): Remove.
1087 (GdbMethods) <current_progspace, objfiles, block_for_pc,
1088 solib_name, find_pc_line>: Remove entries.
1089
65e65158
TT
10902018-09-16 Tom Tromey <tom@tromey.com>
1091
1092 * top.c (new_ui_command): Use GNU style for metasyntactic
1093 variables.
1094 * breakpoint.c (stopat_command): Use GNU style for metasyntactic
1095 variables.
1096 * maint.c (maintenance_translate_address): Remove "<>" around
1097 text.
1098 * interps.c (interpreter_exec_cmd): Use GNU style for
1099 metasyntactic variables.
1100 * nto-procfs.c (nto_procfs_target_info): Use GNU style for
1101 metasyntactic variables.
1102 * tracepoint.c (tfind_range_command): Use GNU style for
1103 metasyntactic variables.
1104 (tfind_outside_command): Likewise.
1105 (_initialize_tracepoint): Likewise.
1106 * remote.c (extended_remote_target::create_inferior): Use GNU
1107 style for metasyntactic variables.
1108 * sparc64-tdep.c (adi_examine_command): Use GNU style for
1109 metasyntactic variables.
1110 (adi_assign_command): Likewise.
1111
f4bab6ff
TT
11122018-09-16 Tom Tromey <tom@tromey.com>
1113
1114 * disasm.c (show_disassembler_options_sfunc): Use GNU style for
1115 metasyntactic variables. Print message if no disassembler options
1116 are available.
1117
cbaaa0ca
TT
11182018-09-15 Tom Tromey <tom@tromey.com>
1119
1120 * infcmd.c (get_inferior_args): Return const char *.
1121 * inferior.h (get_inferior_args): Return type now const.
1122 * linux-tdep.c (linux_fill_prpsinfo): Update.
1123 * procfs.c (procfs_target::make_corefile_notes): Update.
1124
a3a6aef4
TT
11252018-09-07 Tom Tromey <tom@tromey.com>
1126
1127 * python/python.c (execute_gdb_command): Call bpstat_do_actions
1128 inside the TRY.
1129
f70e088f
SL
11302018-09-14 Sandra Loosemore <sandra@codesourcery.com>
1131
1132 * nios2-tdep.c (nios2_type_align): New.
1133 (nios2_gdb_arch_init): Install type_align hook.
1134
2fabdf33
AB
11352018-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
1136
1137 * eval.c (fake_method::fake_method): Call xzalloc directly for a
1138 type that is neither object file owned, nor gdbarch owned.
1139 * gdbtypes.c (get_type_gdbarch): Add an assert that returned
1140 gdbarch is non-NULL.
1141 (alloc_type_instance): Allocate non-objfile owned types on the
1142 gdbarch obstack.
1143 (copy_type_recursive): Allocate TYPE_FIELDS and TYPE_RANGE_DATA
1144 using TYPE_ALLOC to ensure memory is allocated on the correct
1145 obstack.
1146 * gdbtypes.h (TYPE_ALLOC): Allocate space on either the objfile
1147 obstack, or the gdbarch obstack.
1148 (TYPE_ZALLOC): Rewrite using TYPE_ALLOC.
1149
b4b08fa2
TT
11502018-09-14 Tom Tromey <tom@tromey.com>
1151
1152 * infcall.c (call_function_by_hand_dummy): Remove unnecessary
1153 block.
1154
87b240d4
TT
11552018-09-14 Tom Tromey <tom@tromey.com>
1156
1157 * nat/fork-inferior.c (get_startup_shell): Remove "static".
1158
7d221512
TT
11592018-09-13 Tom Tromey <tom@tromey.com>
1160
1161 * python/py-inferior.c (infpy_thread_from_thread_handle): Now
1162 static.
1163
97e67fc6
TT
11642018-09-13 Tom Tromey <tom@tromey.com>
1165
1166 * exec.c (try_open_exec_file): Use std::string.
1167
803c08d0
TT
11682018-09-13 Tom Tromey <tom@tromey.com>
1169
1170 * utils.h (gdb_bfd_errmsg): Return std::string.
1171 * exec.c (exec_file_attach): Update.
1172 * compile/compile-object-load.c (compile_object_load): Update.
1173 * utils.c (gdb_bfd_errmsg): Return std::string.
1174
5b4cbbe3
TT
11752018-09-13 Tom Tromey <tom@tromey.com>
1176
1177 * procfs.c (struct procinfo_deleter): New.
1178 (procinfo_up): New typedef.
1179 (do_destroy_procinfo_cleanup): Remove.
1180 (procfs_target::info_proc): Use procinfo_up. Remove cleanups.
1181
db68fbe2
TT
11822018-09-13 Tom Tromey <tom@tromey.com>
1183
1184 * source.c (add_path): Use gdb::unique_xmalloc_ptr.
1185
0ae1a321
SM
11862018-09-13 Simon Marchi <simon.marchi@ericsson.com>
11872018-09-13 Tom Tromey <tom@tromey.com>
1188
1189 * python/py-progspace.c (PSPY_REQUIRE_VALID): New macro.
1190 (pspy_get_objfiles): New function.
1191 (progspace_object_methods): New.
1192 (pspace_object_type): Add tp_methods callback.
1193 * python/python-internal.h (build_objfiles_list): New
1194 declaration.
1195 * python/python.c (build_objfiles_list): New function.
1196 (gdbpy_objfiles): Implement using build_objfiles_list.
1197 * NEWS: Mention the Progspace.objfiles method.
1198
a40bf0c2
SM
11992018-09-13 Simon Marchi <simon.marchi@ericsson.com>
1200
1201 * python/py-inferior.c (infpy_get_progspace): New function.
1202 (inferior_object_getset): Add progspace property.
1203 * NEWS: Mention the new property.
1204
4a3fe98f
TT
12052018-09-13 Tom Tromey <tom@tromey.com>
1206
1207 PR rust/23650:
1208 * rust-lang.c (rust_evaluate_subexp): Use field name, not "foo".
1209
098b2108
TT
12102018-09-13 Tom Tromey <tom@tromey.com>
1211
1212 PR rust/23626:
1213 * rust-lang.c (rust_enum_variant): Now static.
1214 (rust_empty_enum_p): New function.
1215 (rust_print_enum, rust_evaluate_subexp, rust_print_struct_def):
1216 Handle empty enum.
1217
1256af7d
SM
12182018-09-13 Simon Marchi <simon.marchi@ericsson.com>
1219
1220 * python/py-inferior.c (infpy_repr): New.
1221 (inferior_object_type): Register infpy_repr.
1222 * python/py-objfile.c (objfpy_repr): New.
1223 (objfile_object_type): Register objfpy_repr.
1224
f117a62c
JB
12252018-09-12 John Baldwin <jhb@FreeBSD.org>
1226
1227 * fbsd-nat.c (fbsd_nat_target::info_proc): Remove unused variable.
1228
88f22c34
JB
12292018-09-12 John Baldwin <jhb@FreeBSD.org>
1230
1231 * aarch64-fbsd-tdep.h (AARCH64_FBSD_SIZEOF_GREGSET): Fix comment
1232 typo.
1233
3c025cfe
SDJ
12342018-09-12 Sergio Durigan Junior <sergiodj@redhat.com>
1235
1236 * common/common-utils.c: Don't include '<sys/stat.h>'.
1237 (is_regular_file): Move to...
1238 * common/filestuff.c (is_regular_file): ... here.
1239 * common/common-utils.h (is_regular_file): Move to...
1240 * common/filestuff.h (is_regular_file): ... here.
1241
3e68067f
SM
12422018-09-12 Simon Marchi <simon.marchi@ericsson.com>
1243
1244 * skip.c (debug_skip): New variable.
1245 (skiplist_entry::do_skip_file_p): Add debug output.
1246 (skiplist_entry::do_skip_gfile_p): Likewise.
1247 (skiplist_entry::skip_function_p): Likewise.
1248 (_initialize_step_skip): Create debug command.
1249 * NEWS: Mention set/show debug skip.
1250
d6be54ef
XR
12512018-09-11 Xavier Roirand <roirand@adacore.com>
1252
1253 * darwin-nat.c (should_disable_startup_with_shell):
1254 New function.
1255 (darwin_nat_target::create_inferior): Add call.
1256
de1ec836
XR
12572018-09-11 Xavier Roirand <roirand@adacore.com>
1258
1259 * darwin-nat.h (struct darwin_thread_info) <gdb_port,
1260 inf_port, msg_state>: Initialize.
1261 (struct darwin_thread_info) <signaled, single_step>: Change
1262 type and initialize.
1263 (struct darwin_thread_info) <event>: Initialize.
1264
e2fc52e7
SDJ
12652018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
1266
1267 PR gdb/23555
1268 PR gdb/23558
1269 * gnulib/import/m4/getcwd-path-max.m4: Add cross-compilation
1270 guesses.
1271
5e8754f9
SDJ
12722018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
1273
1274 Revert:
1275 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
1276
1277 PR gdb/23555
1278 PR gdb/23558
1279 * gnulib/aclocal.m4: Regenerate.
1280 * gnulib/config.in: Regenerate.
1281 * gnulib/configure: Regenerate.
1282 * gnulib/import/Makefile.am: Update.
1283 * gnulib/import/Makefile.in: Update.
1284 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
1285 * gnulib/import/_Noreturn.h: ... this.
1286 * gnulib/import/alloca.in.h: Update.
1287 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
1288 * gnulib/import/arg-nonnull.h: ... this.
1289 * gnulib/import/assure.h: Update.
1290 * gnulib/import/at-func.c: Update.
1291 * gnulib/import/basename-lgpl.c: Update.
1292 * gnulib/import/extra/snippet/c++defs.h: Rename to...
1293 * gnulib/import/c++defs.h: ... this.
1294 * gnulib/import/canonicalize-lgpl.c: Update.
1295 * gnulib/import/cdefs.h: Update.
1296 * gnulib/import/chdir-long.c: Update.
1297 * gnulib/import/chdir-long.h: Update.
1298 * gnulib/import/cloexec.c: Update.
1299 * gnulib/import/cloexec.h: Update.
1300 * gnulib/import/close.c: Update.
1301 * gnulib/import/closedir.c: Update.
1302 * gnulib/import/config.charset: Update.
1303 * gnulib/import/dirent-private.h: Update.
1304 * gnulib/import/dirent.in.h: Update.
1305 * gnulib/import/dirfd.c: Update.
1306 * gnulib/import/dirname-lgpl.c: Update.
1307 * gnulib/import/dirname.h: Update.
1308 * gnulib/import/dosname.h: Update.
1309 * gnulib/import/dup-safer-flag.c: Update.
1310 * gnulib/import/dup-safer.c: Update.
1311 * gnulib/import/dup.c: Update.
1312 * gnulib/import/dup2.c: Update.
1313 * gnulib/import/errno.in.h: Update.
1314 * gnulib/import/error.c: Update.
1315 * gnulib/import/error.h: Update.
1316 * gnulib/import/exitfail.c: Update.
1317 * gnulib/import/exitfail.h: Update.
1318 * gnulib/import/extra/update-copyright: Update.
1319 * gnulib/import/fchdir.c: Update.
1320 * gnulib/import/fcntl.c: Update.
1321 * gnulib/import/fcntl.in.h: Update.
1322 * gnulib/import/fd-hook.c: Update.
1323 * gnulib/import/fd-hook.h: Update.
1324 * gnulib/import/fd-safer-flag.c: Update.
1325 * gnulib/import/fd-safer.c: Update.
1326 * gnulib/import/fdopendir.c: Update.
1327 * gnulib/import/filename.h: Update.
1328 * gnulib/import/filenamecat-lgpl.c: Update.
1329 * gnulib/import/filenamecat.h: Update.
1330 * gnulib/import/flexmember.h: Update.
1331 * gnulib/import/float+.h: Update.
1332 * gnulib/import/float.c: Update.
1333 * gnulib/import/float.in.h: Update.
1334 * gnulib/import/fnmatch.c: Update.
1335 * gnulib/import/fnmatch.in.h: Update.
1336 * gnulib/import/fnmatch_loop.c: Update.
1337 * gnulib/import/fpucw.h: Update.
1338 * gnulib/import/frexp.c: Update.
1339 * gnulib/import/frexpl.c: Update.
1340 * gnulib/import/fstat.c: Update.
1341 * gnulib/import/fstatat.c: Update.
1342 * gnulib/import/getcwd-lgpl.c: Update.
1343 * gnulib/import/getcwd.c: Update.
1344 * gnulib/import/getdtablesize.c: Update.
1345 * gnulib/import/getlogin_r.c: Update.
1346 * gnulib/import/getprogname.c: Update.
1347 * gnulib/import/getprogname.h: Update.
1348 * gnulib/import/gettext.h: Update.
1349 * gnulib/import/gettimeofday.c: Update.
1350 * gnulib/import/glob-libc.h: Update.
1351 * gnulib/import/glob.c: Update.
1352 * gnulib/import/glob.in.h: Update.
1353 * gnulib/import/glob_internal.h: Update.
1354 * gnulib/import/glob_pattern_p.c: Update.
1355 * gnulib/import/globfree.c: Update.
1356 * gnulib/import/hard-locale.c: Update.
1357 * gnulib/import/hard-locale.h: Update.
1358 * gnulib/import/intprops.h: Update.
1359 * gnulib/import/inttypes.in.h: Update.
1360 * gnulib/import/isnan.c: Update.
1361 * gnulib/import/isnand-nolibm.h: Update.
1362 * gnulib/import/isnand.c: Update.
1363 * gnulib/import/isnanl-nolibm.h: Update.
1364 * gnulib/import/isnanl.c: Update.
1365 * gnulib/import/itold.c: Update.
1366 * gnulib/import/libc-config.h: Update.
1367 * gnulib/import/limits.in.h: Update.
1368 * gnulib/import/localcharset.c: Update.
1369 * gnulib/import/localcharset.h: Update.
1370 * gnulib/import/localtime-buffer.c: Update.
1371 * gnulib/import/localtime-buffer.h: Update.
1372 * gnulib/import/lstat.c: Update.
1373 * gnulib/import/m4/00gnulib.m4: Update.
1374 * gnulib/import/m4/__inline.m4: Update.
1375 * gnulib/import/m4/absolute-header.m4: Update.
1376 * gnulib/import/m4/alloca.m4: Update.
1377 * gnulib/import/m4/builtin-expect.m4: Update.
1378 * gnulib/import/m4/canonicalize.m4: Update.
1379 * gnulib/import/m4/chdir-long.m4: Update.
1380 * gnulib/import/m4/close.m4: Update.
1381 * gnulib/import/m4/closedir.m4: Update.
1382 * gnulib/import/m4/configmake.m4: Update.
1383 * gnulib/import/m4/d-ino.m4: Update.
1384 * gnulib/import/m4/d-type.m4: Update.
1385 * gnulib/import/m4/dirent_h.m4: Update.
1386 * gnulib/import/m4/dirfd.m4: Update.
1387 * gnulib/import/m4/dirname.m4: Update.
1388 * gnulib/import/m4/double-slash-root.m4: Update.
1389 * gnulib/import/m4/dup.m4: Update.
1390 * gnulib/import/m4/dup2.m4: Update.
1391 * gnulib/import/m4/eealloc.m4: Update.
1392 * gnulib/import/m4/environ.m4: Update.
1393 * gnulib/import/m4/errno_h.m4: Update.
1394 * gnulib/import/m4/error.m4: Update.
1395 * gnulib/import/m4/exponentd.m4: Update.
1396 * gnulib/import/m4/exponentl.m4: Update.
1397 * gnulib/import/m4/extensions.m4: Update.
1398 * gnulib/import/m4/extern-inline.m4: Update.
1399 * gnulib/import/m4/fchdir.m4: Update.
1400 * gnulib/import/m4/fcntl-o.m4: Update.
1401 * gnulib/import/m4/fcntl.m4: Update.
1402 * gnulib/import/m4/fcntl_h.m4: Update.
1403 * gnulib/import/m4/fdopendir.m4: Update.
1404 * gnulib/import/m4/filenamecat.m4: Update.
1405 * gnulib/import/m4/flexmember.m4: Update.
1406 * gnulib/import/m4/float_h.m4: Update.
1407 * gnulib/import/m4/fnmatch.m4: Update.
1408 * gnulib/import/m4/fnmatch_h.m4: Update.
1409 * gnulib/import/m4/fpieee.m4: Update.
1410 * gnulib/import/m4/frexp.m4: Update.
1411 * gnulib/import/m4/frexpl.m4: Update.
1412 * gnulib/import/m4/fstat.m4: Update.
1413 * gnulib/import/m4/fstatat.m4: Update.
1414 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
1415 * gnulib/import/m4/getcwd-path-max.m4: Update.
1416 * gnulib/import/m4/getcwd.m4: Update.
1417 * gnulib/import/m4/getdtablesize.m4: Update.
1418 * gnulib/import/m4/getlogin.m4: Update.
1419 * gnulib/import/m4/getlogin_r.m4: Update.
1420 * gnulib/import/m4/getpagesize.m4: Update.
1421 * gnulib/import/m4/getprogname.m4: Update.
1422 * gnulib/import/m4/gettimeofday.m4: Update.
1423 * gnulib/import/m4/glibc21.m4: Update.
1424 * gnulib/import/m4/glob.m4: Update.
1425 * gnulib/import/m4/glob_h.m4: Update.
1426 * gnulib/import/m4/gnulib-cache.m4: Update.
1427 * gnulib/import/m4/gnulib-common.m4: Update.
1428 * gnulib/import/m4/gnulib-comp.m4: Update.
1429 * gnulib/import/m4/gnulib-tool.m4: Update.
1430 * gnulib/import/m4/hard-locale.m4: Update.
1431 * gnulib/import/m4/include_next.m4: Update.
1432 * gnulib/import/m4/inttypes-pri.m4: Update.
1433 * gnulib/import/m4/inttypes.m4: Update.
1434 * gnulib/import/m4/isnand.m4: Update.
1435 * gnulib/import/m4/isnanl.m4: Update.
1436 * gnulib/import/m4/largefile.m4: Update.
1437 * gnulib/import/m4/limits-h.m4: Update.
1438 * gnulib/import/m4/localcharset.m4: Update.
1439 * gnulib/import/m4/locale-fr.m4: Update.
1440 * gnulib/import/m4/locale-ja.m4: Update.
1441 * gnulib/import/m4/locale-zh.m4: Update.
1442 * gnulib/import/m4/localtime-buffer.m4: Update.
1443 * gnulib/import/m4/longlong.m4: Update.
1444 * gnulib/import/m4/lstat.m4: Update.
1445 * gnulib/import/m4/malloc.m4: Update.
1446 * gnulib/import/m4/malloca.m4: Update.
1447 * gnulib/import/m4/math_h.m4: Update.
1448 * gnulib/import/m4/mbrtowc.m4: Update.
1449 * gnulib/import/m4/mbsinit.m4: Update.
1450 * gnulib/import/m4/mbsrtowcs.m4: Update.
1451 * gnulib/import/m4/mbstate_t.m4: Update.
1452 * gnulib/import/m4/memchr.m4: Update.
1453 * gnulib/import/m4/memmem.m4: Update.
1454 * gnulib/import/m4/mempcpy.m4: Update.
1455 * gnulib/import/m4/memrchr.m4: Update.
1456 * gnulib/import/m4/mkdir.m4: Update.
1457 * gnulib/import/m4/mkstemp.m4: Update.
1458 * gnulib/import/m4/mmap-anon.m4: Update.
1459 * gnulib/import/m4/mode_t.m4: Update.
1460 * gnulib/import/m4/msvc-inval.m4: Update.
1461 * gnulib/import/m4/msvc-nothrow.m4: Update.
1462 * gnulib/import/m4/multiarch.m4: Update.
1463 * gnulib/import/m4/nocrash.m4: Update.
1464 * gnulib/import/m4/off_t.m4: Update.
1465 * gnulib/import/m4/onceonly.m4: Update.
1466 * gnulib/import/m4/open-cloexec.m4: Update.
1467 * gnulib/import/m4/open.m4: Update.
1468 * gnulib/import/m4/openat.m4: Update.
1469 * gnulib/import/m4/opendir.m4: Update.
1470 * gnulib/import/m4/pathmax.m4: Update.
1471 * gnulib/import/m4/rawmemchr.m4: Update.
1472 * gnulib/import/m4/readdir.m4: Update.
1473 * gnulib/import/m4/readlink.m4: Update.
1474 * gnulib/import/m4/realloc.m4: Update.
1475 * gnulib/import/m4/rename.m4: Update.
1476 * gnulib/import/m4/rewinddir.m4: Update.
1477 * gnulib/import/m4/rmdir.m4: Update.
1478 * gnulib/import/m4/save-cwd.m4: Update.
1479 * gnulib/import/m4/secure_getenv.m4: Update.
1480 * gnulib/import/m4/setenv.m4: Update.
1481 * gnulib/import/m4/signal_h.m4: Update.
1482 * gnulib/import/m4/ssize_t.m4: Update.
1483 * gnulib/import/m4/stat-time.m4: Update.
1484 * gnulib/import/m4/stat.m4: Update.
1485 * gnulib/import/m4/std-gnu11.m4: Update.
1486 * gnulib/import/m4/stdbool.m4: Update.
1487 * gnulib/import/m4/stddef_h.m4: Update.
1488 * gnulib/import/m4/stdint.m4: Update.
1489 * gnulib/import/m4/stdio_h.m4: Update.
1490 * gnulib/import/m4/stdlib_h.m4: Update.
1491 * gnulib/import/m4/strchrnul.m4: Update.
1492 * gnulib/import/m4/strdup.m4: Update.
1493 * gnulib/import/m4/strerror.m4: Update.
1494 * gnulib/import/m4/string_h.m4: Update.
1495 * gnulib/import/m4/strstr.m4: Update.
1496 * gnulib/import/m4/strtok_r.m4: Update.
1497 * gnulib/import/m4/sys_socket_h.m4: Update.
1498 * gnulib/import/m4/sys_stat_h.m4: Update.
1499 * gnulib/import/m4/sys_time_h.m4: Update.
1500 * gnulib/import/m4/sys_types_h.m4: Update.
1501 * gnulib/import/m4/tempname.m4: Update.
1502 * gnulib/import/m4/time_h.m4: Update.
1503 * gnulib/import/m4/unistd-safer.m4: Update.
1504 * gnulib/import/m4/unistd_h.m4: Update.
1505 * gnulib/import/m4/warn-on-use.m4: Update.
1506 * gnulib/import/m4/wchar_h.m4: Update.
1507 * gnulib/import/m4/wchar_t.m4: Update.
1508 * gnulib/import/m4/wctype_h.m4: Update.
1509 * gnulib/import/m4/wint_t.m4: Update.
1510 * gnulib/import/malloc.c: Update.
1511 * gnulib/import/malloc/scratch_buffer.h: Update.
1512 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
1513 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
1514 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
1515 * gnulib/import/malloca.c: Update.
1516 * gnulib/import/malloca.h: Update.
1517 * gnulib/import/malloca.valgrind: Update.
1518 * gnulib/import/math.in.h: Update.
1519 * gnulib/import/mbrtowc.c: Update.
1520 * gnulib/import/mbsinit.c: Update.
1521 * gnulib/import/mbsrtowcs-impl.h: Update.
1522 * gnulib/import/mbsrtowcs-state.c: Update.
1523 * gnulib/import/mbsrtowcs.c: Update.
1524 * gnulib/import/memchr.c: Update.
1525 * gnulib/import/memmem.c: Update.
1526 * gnulib/import/mempcpy.c: Update.
1527 * gnulib/import/memrchr.c: Update.
1528 * gnulib/import/mkdir.c: Update.
1529 * gnulib/import/mkstemp.c: Update.
1530 * gnulib/import/msvc-inval.c: Update.
1531 * gnulib/import/msvc-inval.h: Update.
1532 * gnulib/import/msvc-nothrow.c: Update.
1533 * gnulib/import/msvc-nothrow.h: Update.
1534 * gnulib/import/open.c: Update.
1535 * gnulib/import/openat-die.c: Update.
1536 * gnulib/import/openat-priv.h: Update.
1537 * gnulib/import/openat-proc.c: Update.
1538 * gnulib/import/openat.c: Update.
1539 * gnulib/import/openat.h: Update.
1540 * gnulib/import/opendir.c: Update.
1541 * gnulib/import/pathmax.h: Update.
1542 * gnulib/import/pipe-safer.c: Update.
1543 * gnulib/import/rawmemchr.c: Update.
1544 * gnulib/import/readdir.c: Update.
1545 * gnulib/import/readlink.c: Update.
1546 * gnulib/import/realloc.c: Update.
1547 * gnulib/import/ref-add.sin: Update.
1548 * gnulib/import/ref-del.sin: Update.
1549 * gnulib/import/rename.c: Update.
1550 * gnulib/import/rewinddir.c: Update.
1551 * gnulib/import/rmdir.c: Update.
1552 * gnulib/import/same-inode.h: Update.
1553 * gnulib/import/save-cwd.c: Update.
1554 * gnulib/import/save-cwd.h: Update.
1555 * gnulib/import/scratch_buffer.h: Update.
1556 * gnulib/import/secure_getenv.c: Update.
1557 * gnulib/import/setenv.c: Update.
1558 * gnulib/import/signal.in.h: Update.
1559 * gnulib/import/stat-time.c: Update.
1560 * gnulib/import/stat-time.h: Update.
1561 * gnulib/import/stat-w32.c: Update.
1562 * gnulib/import/stat-w32.h: Update.
1563 * gnulib/import/stat.c: Update.
1564 * gnulib/import/stdbool.in.h: Update.
1565 * gnulib/import/stddef.in.h: Update.
1566 * gnulib/import/stdint.in.h: Update.
1567 * gnulib/import/stdio.in.h: Update.
1568 * gnulib/import/stdlib.in.h: Update.
1569 * gnulib/import/str-two-way.h: Update.
1570 * gnulib/import/strchrnul.c: Update.
1571 * gnulib/import/strdup.c: Update.
1572 * gnulib/import/streq.h: Update.
1573 * gnulib/import/strerror-override.c: Update.
1574 * gnulib/import/strerror-override.h: Update.
1575 * gnulib/import/strerror.c: Update.
1576 * gnulib/import/string.in.h: Update.
1577 * gnulib/import/stripslash.c: Update.
1578 * gnulib/import/strnlen1.c: Update.
1579 * gnulib/import/strnlen1.h: Update.
1580 * gnulib/import/strstr.c: Update.
1581 * gnulib/import/strtok_r.c: Update.
1582 * gnulib/import/sys_stat.in.h: Update.
1583 * gnulib/import/sys_time.in.h: Update.
1584 * gnulib/import/sys_types.in.h: Update.
1585 * gnulib/import/tempname.c: Update.
1586 * gnulib/import/tempname.h: Update.
1587 * gnulib/import/time.in.h: Update.
1588 * gnulib/import/unistd--.h: Update.
1589 * gnulib/import/unistd-safer.h: Update.
1590 * gnulib/import/unistd.in.h: Update.
1591 * gnulib/import/unsetenv.c: Update.
1592 * gnulib/import/verify.h: Update.
1593 * gnulib/import/extra/snippet/warn-on-use.h: Update.
1594 * gnulib/import/wchar.in.h: Update.
1595 * gnulib/import/wctype.in.h: Update.
1596 * gnulib/import/xalloc-oversized.h: Update.
1597 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
1598 "53e2c179f26a890fa6685af4b6c1397ee370433b".
1599
8ec23583
SM
16002018-09-10 Simon Marchi <simon.marchi@ericsson.com>
1601
1602 * record-btrace.c (get_thread_current_frame): Remove
1603 old_inferior_ptid.
1604
1f5d1570
JG
16052018-09-10 Jerome Guitton <guitton@adacore.com>
1606
1607 * ada-lang.c (ada_value_struct_elt): Call ada_to_fixed_type
1608 with check_tag to 1 if and only if the type is tagged and the
1609 component being searched cannot been found in the current
1610 view. Otherwise, always call ada_to_fixed_type with
1611 check_tag to 0.
1612
d91e9ea8
XR
16132018-09-10 Xavier Roirand <roirand@adacore.com>
1614
1615 * ada-lang.c (ada_is_access_to_unconstrained_array): Remove static
1616 declaration.
1617 * ada-lang.h: add ada_is_access_to_unconstrained_array prototype.
1618 * ada-varobj.c (ada_varobj_get_number_of_children,
1619 ada_varobj_describe_child, ada_value_is_changeable_p): Cleanup code.
1620
cc330e39
XR
16212018-09-10 Xavier Roirand <roirand@adacore.com>
1622
1623 * ada-valprint.c (ada_value_print): Use type instead of
1624 enclosing type.
1625
b9c50e9a
XR
16262018-09-10 Xavier Roirand <roirand@adacore.com>
1627
1628 * ada-lang.c (ada_value_subscript): Handle case when parameter is
1629 an array of access to unconstrained array.
1630
736ade86
XR
16312018-09-10 Xavier Roirand <roirand@adacore.com>
1632
1633 * ada-lang.c (ada_is_access_to_unconstrained_array): New function.
1634 (ada_check_typedef): Use it.
1635
2963898f
XR
16362018-09-10 Xavier Roirand <roirand@adacore.com>
1637
1638 * ada-varobj.c (ada_varobj_describe_struct_child)
1639 (ada_varobj_describe_child): Handle union case like struct one.
1640
a154931e
TT
16412018-09-10 Tom Tromey <tom@tromey.com>
1642
1643 PR python/18380:
1644 * python/python.c (_initialize_python): Make example in "python"
1645 help work in Python 3.
1646
23c4651c
EZ
16472018-09-10 Eli Zaretskii <eliz@gnu.org>
1648
1649 * Makefile.in (transformed_name): Use INSTALL_SCRIPT instead of
1650 INSTALL_PROGRAM to install gdb-add-index.sh. Don't append
1651 $(EXEEXT) to the script, as it is not a program.
1652
a5c5eda7
SM
16532018-09-09 Simon Marchi <simon.marchi@ericsson.com>
1654
1655 * python/py-prettyprint.c (pretty_print_one_value): Return
1656 gdbpy_ref<>.
1657 (print_string_repr): Adjust.
1658 (apply_varobj_pretty_printer): Return gdbpy_ref<>.
1659 * python/python-internal.h (apply_varobj_pretty_printer): Return
1660 gdbpy_ref<>.
1661 * varobj.c (varobj_value_get_print_value): Adjust.
1662
332cf4c9
TT
16632018-09-08 Tom Tromey <tom@tromey.com>
1664
1665 PR python/16047:
1666 * python/py-prettyprint.c (pretty_print_one_value): Check for
1667 to_string method.
1668
424da6cf
JB
16692018-09-08 Joel Brobecker <brobecker@adacore.com>
1670
1671 * ada-lang.c (resolve_subexp): Pass correct OPLEN in call to
1672 replace_operator_with_call.
1673
95f39a5b
JB
16742018-09-08 Joel Brobecker <brobecker@adacore.com>
1675
1676 * ada-lang.c (ada_value_cast): Remove unnecessary parentheses.
1677
16b9eb7b
JB
16782018-09-08 Joel Brobecker <brobecker@adacore.com>
1679
1680 * ada-typeprint.c (print_range): Print the bounds using TYPE
1681 rather than its TYPE_TARGET_TYPE.
1682
d8ce9127
JB
16832018-09-08 Joel Brobecker <brobecker@adacore.com>
1684
1685 * ada-lang.c (ada_to_fixed_value): Minor reformatting in
1686 call to ada_to_fixed_value_create.
1687
0d81f350
JG
16882018-09-08 Jerome Guitton <guitton@adacore.com>
1689
1690 * ada-lang.c (ada_decode): strip dot prefix in symbol name.
1691
57aff202
JB
16922018-09-08 Joel Brobecker <brobecker@adacore.com>
1693
1694 * ada-lang.c (ada_exception_sal): Replace gdb_assert calls
1695 by calls to error.
1696
fb44b1a7
JB
16972018-09-08 Joel Brobecker <brobecker@adacore.com>
1698
1699 * ada-lang.c (ada_unhandled_exception_name_addr_from_raise):
1700 Move update of loop variable "fi".
1701
2a62dfa9
JB
17022018-09-08 Joel Brobecker <brobecker@adacore.com>
1703
1704 * ada-lang.c (value_assign_to_component): In the case of
1705 big-endian targets, extract the bits of the given VAL
1706 using an src_offset of zero if container is not a scalar.
1707
739ab2e9
SS
17082018-09-06 Simon Ser <contact@emersion.fr>
1709
1710 PR gdb/23105
1711 * fbsd-nat.c (fbsd_nat_target::xfer_partial): Add support for
1712 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
1713 * fbsd-tdep.c (fbsd_make_note_desc): New.
1714 (fbsd_make_corefile_notes): Write NT_PROCSTAT_AUXV,
1715 NT_PROCSTAT_VMMAP and NT_PROCSTAT_PS_STRINGS notes.
1716 * target.h (enum target_object) Add FreeBSD-specific
1717 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
1718
d82b3862
SM
17192018-09-06 Simon Marchi <simon.marchi@ericsson.com>
1720
1721 * compile/compile-c.h (generate_c_for_variable_locations):
1722 Change reference to pointer.
1723 * compile/compile-c-support.c (compile_program) <compute>:
1724 Likewise.
1725 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
1726 (generate_c_for_for_one_variable): Likewise
1727 (generate_c_for_variable_locations): Likewise
1728 * compile/compile-c-types.c (compile_c_instance::convert_type):
1729 Likewise
1730 * compile/compile-cplus-symbols.c (convert_one_symbol):
1731 std::move the scope passed to enter_scope.
1732 * compile/compile-cplus-types.c
1733 (compile_cplus_instance::enter_scope): Make parameter
1734 rvalue-reference.
1735 (compile_cplus_instance::new_scope): Change reference to
1736 pointer.
1737 (compile_cplus_instance::convert_type): Likewise
1738 (compile_cplus_convert_typedef): std::move the scope passed to
1739 enter_scope.
1740 (compile_cplus_convert_struct_or_union): Likewise.
1741 (compile_cplus_convert_enum): Likewise.
1742 (compile_cplus_convert_namespace): Likewise.
1743 * compile/compile-cplus.h (compile_cplus_instance)
1744 <enter_scope>: Make parameter rvalue-reference.
1745 * compile/compile-internal.h (compile_instance)
1746 <get_cached_type>: Likewise
1747 * compile/compile-loc2c.c (push): Likewise
1748 (pushf): Likewise
1749 (unary): Likewise
1750 (binary): Likewise
1751 (print_label): Likewise
1752 (pushf_register_address): Likewise
1753 (pushf_register): Likewise
1754 (do_compile_dwarf_expr_to_c): Likewise
1755 (compile_dwarf_expr_to_c): Likewise
1756 (compile_dwarf_bounds_to_c): Likewise
1757 * compile/compile.c (compile_instance::get_cached_type):
1758 Likewise
1759 * compile/compile.h (compile_dwarf_expr_to_c): Likewise.
1760 (compile_dwarf_bounds_to_c): Likewise
1761 * dwarf2loc.c (locexpr_generate_c_location): Likewise.
1762 (dwarf2_compile_property_to_c): Likewise
1763 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise
1764 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
1765 Likewise
1766
cc5a5ae5
SM
17672018-09-06 Simon Marchi <simon.marchi@ericsson.com>
1768
1769 * tui/tui-data.h (struct tui_win_element) <highlight>: Remove.
1770 * tui/tui-data.c (init_content_element): Don't initialize it.
1771
137be540
SM
17722018-09-06 Simon Marchi <simon.marchi@ericsson.com>
1773
1774 * tui/tui-data.h (struct tui_win_info)
1775 <detail::opaque>: Remove.
1776 * tui/tui-data.c (init_win_info): Remove assignment.
1777
f1628857
TT
17782018-09-05 Tom Tromey <tom@tromey.com>
1779
1780 * warning.m4 (AM_GDB_WARNINGS): Add -Wformat when testing
1781 -Wformat-nonliteral.
1782 * target-float.c (host_float_ops<T>::to_string)
1783 (host_float_ops<T>::from_string): Use
1784 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
1785 * configure: Rebuild.
1786
af39b1c2
SM
17872018-09-05 Simon Marchi <simon.marchi@ericsson.com>
1788
1789 * printcmd.c (printf_c_string): Use
1790 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
1791 (printf_wide_c_string, printf_pointer, ui_printf): Likewise.
1792
081bca4d
TT
17932018-09-05 Tom Tromey <tom@tromey.com>
1794
1795 * cli/cli-cmds.c (shell_escape, edit_command): Remove cast.
1796
e4a62c65
TV
17972018-09-05 Tom de Vries <tdevries@suse.de>
1798
1799 * dwarf2loc.c (sect_variable_value): Call indirect_synthetic_pointer
1800 with resolve_abstract_p == true.
1801 (indirect_synthetic_pointer): Add resolve_abstract_p parameter,
1802 defaulting to false. Propagate resolve_abstract_p to
1803 dwarf2_fetch_die_loc_sect_off.
1804 * dwarf2loc.h (dwarf2_fetch_die_loc_sect_off): Add resolve_abstract_p
1805 parameter, defaulting to false.
1806 * dwarf2read.c (read_variable): Add variable to abstract_to_concrete.
1807 (dwarf2_fetch_die_loc_sect_off): Add and handle resolve_abstract_p
1808 parameter.
1809 * dwarf2read.h (struct die_info): Forward-declare.
1810 (die_info_ptr): New typedef.
1811 (struct dwarf2_per_objfile): Add abstract_to_concrete field.
1812
2b69821e
JB
18132018-09-05 Joel Brobecker <brobecker@adacore.com>
1814
1815 GDB 8.2 released.
1816
fcc9b044
SDJ
18172018-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
1818 Pedro Alves <palves@redhat.com>
1819
1820 * gnulib/Makefile.in (aclocal_m4_deps): Move to
1821 "aclocal-m4-deps.mk". Include file here.
1822 $(srcdir)/aclocal.m4: Add "configure.ac".
1823 * gnulib/aclocal-m4-deps.mk: New file.
1824 * gnulib/update-gnulib.sh: Automatically update
1825 "aclocal-m4-deps.mk".
1826
d53d5436
TT
18272018-09-04 Tom Tromey <tom@tromey.com>
1828
1829 * configure: Rebuild.
1830 * configure.ac: Remove multi-ice code.
1831
8dc9fd87
TT
18322018-09-04 Tom Tromey <tom@tromey.com>
1833
1834 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS): Remove.
1835 (ada-exp.o): Update.
1836
3322c5d9
TT
18372018-09-04 Tom Tromey <tom@tromey.com>
1838
1839 * Makefile.in (printcmd.o, target-float.o): Remove.
1840 (GDB_WARN_CFLAGS_NO_FORMAT): Remove.
1841
ba2bf2aa
TT
18422018-09-04 Tom Tromey <tom@tromey.com>
1843
1844 * gnulib/Makefile.in: Remove obsolete comment.
1845 * Makefile.in: Remove obsolete comment.
1846
6c9d681b
AB
18472018-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
1848
1849 * riscv-tdep.c (riscv_frame_cache): Fix ARI warning, don't end a
1850 line with '+'.
1851
78a3b0fa
AB
18522018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
1853
1854 * riscv-tdep.c: Add 'prologue-value.h' include.
1855 (struct riscv_unwind_cache): New struct.
1856 (riscv_debug_unwinder): New global.
1857 (riscv_scan_prologue): Update arguments, capture register details
1858 from prologue scan.
1859 (riscv_skip_prologue): Reformat arguments line, move end of
1860 prologue calculation into riscv_scan_prologue.
1861 (riscv_frame_cache): Update return type, create
1862 riscv_unwind_cache, scan the prologue, and fill in remaining cache
1863 details.
1864 (riscv_frame_this_id): Use frame id computed in riscv_frame_cache.
1865 (riscv_frame_prev_register): Use the trad_frame within the
1866 riscv_unwind_cache.
1867 (_initialize_riscv_tdep): Add 'set/show debug riscv unwinder'
1868 flag.
1869
23e60e7a
AB
18702018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
1871
1872 * trad-frame.h (trad_frame_set_realreg): Declare.
1873 (trad_frame_set_addr): Declare.
1874 * trad-frame.c (trad_frame_set_realreg): Define new function.
1875 (trad_frame_set_addr): Define new function.
1876 (trad_frame_set_reg_realreg): Use new function.
1877 (trad_frame_set_reg_addr): Use new function.
1878
5c889512
KS
18792018-09-01 Keith Seitz <keiths@redhat.com>
1880
1881 * compile/compile-cplus-types.c (compile_cplus_debug_output_1): Use
1882 pulongest instead of "%lld".
1883 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol): Remove
1884 ATTRIBUTE_UNUSED.
1885
c8c81635
TT
18862018-08-31 Tom Tromey <tom@tromey.com>
1887
1888 * dwarf2read.c (dwarf2_add_field): Set the TYPE_LENGTH of the
1889 variant part type.
1890
0c888588
PA
18912018-08-31 Pedro Alves <palves@redhat.com>
1892
1893 * gdbarch.h: Regenerate.
1894
7ea65f08
PA
18952018-08-31 Pedro Alves <palves@redhat.com>
1896
1897 * gdbarch.sh (have_nonsteppable_watchpoint): Add comment.
1898 * target.h (Hardware watchpoint interfaces): Describe
1899 continuable/steppable/non-steppable watchpoints.
1900 * gdbarch.h, gdbarch.c: Regenerate.
1901
7eb65faf
PA
19022018-08-31 Pedro Alves <palves@redhat.com>
1903
1904 * nto-procfs.c (nto_procfs_target::have_continuable_watchpoint):
1905 Delete.
1906 * s390-linux-nat.c
1907 (s390_linux_nat_target::have_continuable_watchpoint): Delete.
1908 * target.h (target_ops::have_continuable_watchpoint): Delete.
1909 (target_have_continuable_watchpoint): Delete.
1910 * x86-nat.h (x86_nat_target::have_continuable_watchpoint): Delete.
1911 * target-delegates.c: Regenerate.
1912
dab999b1
SDJ
19132018-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
1914
1915 * gnulib/Makefile.in (aclocal_m4_deps): Update according to
1916 the files present in "gnulib/import/m4/".
1917
ff3a05b3
AB
19182018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
1919
1920 * riscv-tdep.c (riscv_insn::decode): Decode c.addi4spn, c.sd,
1921 c.sw, c.swsp, and c.sdsp.
1922
0b3f9efc
AB
19232018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
1924
1925 * riscv-tdep.c (struct riscv_inferior_data): Delete.
1926 (riscv_read_misa_reg): Don't cache value read into inferior data.
1927 (riscv_new_inferior_data): Delete.
1928 (riscv_inferior_data_cleanup): Delete.
1929 (riscv_inferior_data): Delete.
1930 (riscv_invalidate_inferior_data): Delete.
1931 (_initialize_riscv_tdep): Remove initialisation of inferior data.
1932
a0dc02a6
SM
19332018-08-30 Simon Marchi <simon.marchi@ericsson.com>
1934
1935 * compile/compile-cplus-types.c
1936 (compile_cplus_instance::leave_scope): Take the address of scope
1937 object.
1938 (compile_cplus_instance::convert_qualified_base): Compare quals
1939 to 0.
1940
fdad7678
KS
19412018-08-30 Keith Seitz <keiths@redhat.com>
1942
1943 * compile/compile-cplus-types.c (compile_cplus_instance::enter_scope):
1944 Use "%s" and host_address_to_string instead of "%p" in printf.
1945
078a0207
KS
19462018-08-29 Keith Seitz <keiths@redhat.com>
1947
1948 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Add compile-cplus-symbols.c
1949 and compile-cplus-types.c.
1950 (HFILES_NO_SRCDIR): Add gcc-cp-plugin.h.
1951 * c-lang.c (cplus_language_defn): Set C++ compile functions.
1952 * c-lang.h (cplus_get_compile_context, cplus_compute_program):
1953 Declare.
1954 * compile/compile-c-support.c: Include compile-cplus.h.
1955 (load_libcompile): Templatize.
1956 (get_compile_context): "New" function.
1957 (c_get_compile_context): Use get_compile_context.
1958 (cplus_get_compile_context): New function.
1959 (cplus_push_user_expression, cplus_pop_user_expression)
1960 (cplus_add_code_header, cplus_add_input, cplus_compile_program)
1961 (cplus_compute_program): Define new structs/functions.
1962 * compile/compile-cplus-symmbols.c: New file.
1963 * compile/compile-cplus-types.c: New file.
1964 * compile/compile-cplus.h: New file.
1965 * compile/compile-internal.h (debug_compile_oracle, GCC_TYPE_NONE):
1966 Declare.
1967 * compile/compile-object-load.c (get_out_value_type): Use
1968 strncmp_iw when comparing symbol names.
1969 (compile_object_load): Add mst_bss and mst_data.
1970 * compile/compile.c (_initialize_compile): Remove
1971 -Wno-implicit-function-declaration from `compile_args'.
1972 * compile/gcc-cp-plugin.h: New file.
1973 * NEWS: Mention C++ compile support and new debug options.
1974
fcaad03c
KS
19752018-08-29 Keith Seitz <keiths@redhat.com>
1976
1977 * linespec.c (collect_info::add_symbol): Make virtual.
1978 (struct symbol_searcher_collect_info): New struct.
1979 (symbol_searcher::find_all_symbols): New method.
1980 * symtab.h (class symbol_searcher): New class.
1981
7e41c8db
KS
19822018-08-29 Keith Seitz <keiths@redhat.com>
1983
1984 * linespec.c (struct linespec) <function_symbols, label_symbols>:
1985 Change to vector of block_symbol. Update all users.
1986 (struct collect_info) <symbols>: Likewise.
1987 (collect_info::add_symbol): Take block_symbol as argument.
1988 Update all callers.
1989 (decode_compound_collector) <m_symbols>: Change type to vector
1990 of block_symbol. Update all users.
1991 (decode_compound_collector::operator ()): Change parameter type
1992 to block_symbol.
1993 (find_method, find_function_symbols, find_linespec_symbols)
1994 (find_label_symbols_in_block, find_label_symbols): Change symbol
1995 vectors to block_symbol vectors.
1996 * symtab.h (symbol_found_callback_ftype): Change parameter type to
1997 block_symbol.
1998
63e8c3da
KS
19992018-08-29 Keith Seitz <keiths@redhat.com>
2000
2001 * linespec.c (symbolp): Remove typedef and VEC definitions.
2002 (bound_minimal_symbol_d): Likewise.
2003
4dedf84d
KS
20042018-08-29 Keith Seitz <keiths@redhat.com>
2005
2006 * linespec.c (decode_compound_collector::decode_compound_collector):
2007 Remove initialization for `m_symtabs'.
2008 (decode_compound_collector::release_symbols): Change return type
2009 to std::vector. Update all callers.
2010 (class decode_compound_collector) <m_symbols>: Change type to
2011 std::vector.
2012 (lookup_prefix_sym): Change return type to std::vector. Update all
2013 callers.
2014 (compare_symbols): Remove.
2015 (std_compare_symbols): Rename to `compare_symbols'.
2016 (find_method): Change `sym_classes' parameter to std::vector.
2017 Update all callers. Use std::sort to sort sym_classes.
2018 (find_linespec_symbols): Remove cleanup.
2019
c2a031c5
KS
20202018-08-29 Keith Seitz <keiths@redhat.com>
2021
2022 * linespec.c (struct linespec) <minimal_symbols>: Change type to
2023 std::vector. Update all users.
2024 (convert_linespec_to_sals): Use std::sort to sort minimal symbols.
2025 (struct collect_info) <minimal_symbols>: Likewise.
2026 (compare_msymbols): Return bool. Change parameters to const
2027 bound_minimal_symbol references.
2028 (find_method, find_function_symbols, find_linespec_symbols): Change
2029 `minsyms' parameter to std::vector. Update all callers.
2030
3553eadc
KS
20312018-08-29 Keith Seitz <keiths@redhat.com>
2032
2033 * linespec.c (struct linespec) <label_symbols>: Change type to
2034 std::vector. Update all users.
2035 (find_label_symbols_in_block): Change `result' parameter to
2036 std::vector. Update all callers.
2037 (find_label_symbols): Return std::vector. Update all callers.
2038
7243d011
KS
20392018-08-29 Keith Seitz <keiths@redhat.com>
2040
2041 * linespec.c (struct linespec) <function_symbols>: Change type to
2042 std::vector. Update all users.
2043 (struct collect_info) <function_symbols>: Likewise.
2044 (convert_linespec_to_sals): Use std::sort to sort function_symbols.
2045 (std_compare_symbols): New function.
2046 (find_method, find_function_symbols, find_linespec_symbols)
2047 (find_label_symbols_in_block): Change `symbols' parameter to
2048 std::vector. Update all callers.
2049 (find_label_symbols): Likewise for `function_symbols' and
2050 `label_funcs_ret'.
2051
2a908241
KS
20522018-08-29 Keith Seitz <keiths@redhat.com>
2053
2054 * linespec.c (symtab_vector_up): Define.
2055 (struct linespec) <file_symtabs>: Change type to std::vector *.
2056 Update all uses.
2057 (struct collect_info) <file_symtabs>: Likewise.
2058 (collect_symtabs_from_filename): Return symtab_vector_up.
2059 Update all callers.
2060 (decode_objc): Remove cleanup.
2061 (symtab_collector::symtab_collector): Initialize `m_symtabs'.
2062 (symtab_collector::release_symtabs): Return symtab_vector_up.
2063 Update all callers.
2064 (class symtab_collector) <m_symtabs>: Change type to symtab_vector_up.
2065 Update all users.
2066 (collect_symtabs_from_filename, symtabs_from_filename): Return
2067 symtab_vector_up. Update all callers.
2068
f6c4e3e8
TT
20692018-08-29 Tom Tromey <tom@tromey.com>
2070
2071 * csky-tdep.c (csky_analyze_prologue): Use
2072 core_addr_to_string_nz.
2073
73c13fe6
TT
20742018-08-29 Tom Tromey <tom@tromey.com>
2075
2076 * windows-nat.c (struct xlate_exception) <them>: Change type to
2077 DWORD.
2078 (xlate): Fix formatting. Remove last entry.
2079 (struct xlate_exception, xlate): Comment out.
2080 (windows_nat_target::resume): Use ranged for.
2081
4d3928d7
JW
20822018-08-29 Jim Wilson <jimw@sifive.com>
2083
2084 * riscv-linux-nat.c: Include elf/common.h instead of elf.h.
2085 (riscv_linux_nat_target::fetch_registers): Use NT_FPREGSET instead
2086 of NT_PRFPREG.
2087 (riscv_linux_nat_target::store_registers): Likewise.
2088
7a6dbc2f
SDJ
20892018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
2090
2091 PR gdb/23555
2092 PR gdb/23558
2093 * gnulib/aclocal.m4: Regenerate.
2094 * gnulib/config.in: Regenerate.
2095 * gnulib/configure: Regenerate.
2096 * gnulib/import/Makefile.am: Update.
2097 * gnulib/import/Makefile.in: Update.
2098 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
2099 * gnulib/import/_Noreturn.h: ... this.
2100 * gnulib/import/alloca.in.h: Update.
2101 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
2102 * gnulib/import/arg-nonnull.h: ... this.
2103 * gnulib/import/assure.h: Update.
2104 * gnulib/import/at-func.c: Update.
2105 * gnulib/import/basename-lgpl.c: Update.
2106 * gnulib/import/extra/snippet/c++defs.h: Rename to...
2107 * gnulib/import/c++defs.h: ... this.
2108 * gnulib/import/canonicalize-lgpl.c: Update.
2109 * gnulib/import/cdefs.h: Update.
2110 * gnulib/import/chdir-long.c: Update.
2111 * gnulib/import/chdir-long.h: Update.
2112 * gnulib/import/cloexec.c: Update.
2113 * gnulib/import/cloexec.h: Update.
2114 * gnulib/import/close.c: Update.
2115 * gnulib/import/closedir.c: Update.
2116 * gnulib/import/config.charset: Update.
2117 * gnulib/import/dirent-private.h: Update.
2118 * gnulib/import/dirent.in.h: Update.
2119 * gnulib/import/dirfd.c: Update.
2120 * gnulib/import/dirname-lgpl.c: Update.
2121 * gnulib/import/dirname.h: Update.
2122 * gnulib/import/dosname.h: Update.
2123 * gnulib/import/dup-safer-flag.c: Update.
2124 * gnulib/import/dup-safer.c: Update.
2125 * gnulib/import/dup.c: Update.
2126 * gnulib/import/dup2.c: Update.
2127 * gnulib/import/errno.in.h: Update.
2128 * gnulib/import/error.c: Update.
2129 * gnulib/import/error.h: Update.
2130 * gnulib/import/exitfail.c: Update.
2131 * gnulib/import/exitfail.h: Update.
2132 * gnulib/import/extra/update-copyright: Update.
2133 * gnulib/import/fchdir.c: Update.
2134 * gnulib/import/fcntl.c: Update.
2135 * gnulib/import/fcntl.in.h: Update.
2136 * gnulib/import/fd-hook.c: Update.
2137 * gnulib/import/fd-hook.h: Update.
2138 * gnulib/import/fd-safer-flag.c: Update.
2139 * gnulib/import/fd-safer.c: Update.
2140 * gnulib/import/fdopendir.c: Update.
2141 * gnulib/import/filename.h: Update.
2142 * gnulib/import/filenamecat-lgpl.c: Update.
2143 * gnulib/import/filenamecat.h: Update.
2144 * gnulib/import/flexmember.h: Update.
2145 * gnulib/import/float+.h: Update.
2146 * gnulib/import/float.c: Update.
2147 * gnulib/import/float.in.h: Update.
2148 * gnulib/import/fnmatch.c: Update.
2149 * gnulib/import/fnmatch.in.h: Update.
2150 * gnulib/import/fnmatch_loop.c: Update.
2151 * gnulib/import/fpucw.h: Update.
2152 * gnulib/import/frexp.c: Update.
2153 * gnulib/import/frexpl.c: Update.
2154 * gnulib/import/fstat.c: Update.
2155 * gnulib/import/fstatat.c: Update.
2156 * gnulib/import/getcwd-lgpl.c: Update.
2157 * gnulib/import/getcwd.c: Update.
2158 * gnulib/import/getdtablesize.c: Update.
2159 * gnulib/import/getlogin_r.c: Update.
2160 * gnulib/import/getprogname.c: Update.
2161 * gnulib/import/getprogname.h: Update.
2162 * gnulib/import/gettext.h: Update.
2163 * gnulib/import/gettimeofday.c: Update.
2164 * gnulib/import/glob-libc.h: Update.
2165 * gnulib/import/glob.c: Update.
2166 * gnulib/import/glob.in.h: Update.
2167 * gnulib/import/glob_internal.h: Update.
2168 * gnulib/import/glob_pattern_p.c: Update.
2169 * gnulib/import/globfree.c: Update.
2170 * gnulib/import/hard-locale.c: Update.
2171 * gnulib/import/hard-locale.h: Update.
2172 * gnulib/import/intprops.h: Update.
2173 * gnulib/import/inttypes.in.h: Update.
2174 * gnulib/import/isnan.c: Update.
2175 * gnulib/import/isnand-nolibm.h: Update.
2176 * gnulib/import/isnand.c: Update.
2177 * gnulib/import/isnanl-nolibm.h: Update.
2178 * gnulib/import/isnanl.c: Update.
2179 * gnulib/import/itold.c: Update.
2180 * gnulib/import/libc-config.h: Update.
2181 * gnulib/import/limits.in.h: Update.
2182 * gnulib/import/localcharset.c: Update.
2183 * gnulib/import/localcharset.h: Update.
2184 * gnulib/import/localtime-buffer.c: Update.
2185 * gnulib/import/localtime-buffer.h: Update.
2186 * gnulib/import/lstat.c: Update.
2187 * gnulib/import/m4/00gnulib.m4: Update.
2188 * gnulib/import/m4/__inline.m4: Update.
2189 * gnulib/import/m4/absolute-header.m4: Update.
2190 * gnulib/import/m4/alloca.m4: Update.
2191 * gnulib/import/m4/builtin-expect.m4: Update.
2192 * gnulib/import/m4/canonicalize.m4: Update.
2193 * gnulib/import/m4/chdir-long.m4: Update.
2194 * gnulib/import/m4/close.m4: Update.
2195 * gnulib/import/m4/closedir.m4: Update.
2196 * gnulib/import/m4/configmake.m4: Update.
2197 * gnulib/import/m4/d-ino.m4: Update.
2198 * gnulib/import/m4/d-type.m4: Update.
2199 * gnulib/import/m4/dirent_h.m4: Update.
2200 * gnulib/import/m4/dirfd.m4: Update.
2201 * gnulib/import/m4/dirname.m4: Update.
2202 * gnulib/import/m4/double-slash-root.m4: Update.
2203 * gnulib/import/m4/dup.m4: Update.
2204 * gnulib/import/m4/dup2.m4: Update.
2205 * gnulib/import/m4/eealloc.m4: Update.
2206 * gnulib/import/m4/environ.m4: Update.
2207 * gnulib/import/m4/errno_h.m4: Update.
2208 * gnulib/import/m4/error.m4: Update.
2209 * gnulib/import/m4/exponentd.m4: Update.
2210 * gnulib/import/m4/exponentl.m4: Update.
2211 * gnulib/import/m4/extensions.m4: Update.
2212 * gnulib/import/m4/extern-inline.m4: Update.
2213 * gnulib/import/m4/fchdir.m4: Update.
2214 * gnulib/import/m4/fcntl-o.m4: Update.
2215 * gnulib/import/m4/fcntl.m4: Update.
2216 * gnulib/import/m4/fcntl_h.m4: Update.
2217 * gnulib/import/m4/fdopendir.m4: Update.
2218 * gnulib/import/m4/filenamecat.m4: Update.
2219 * gnulib/import/m4/flexmember.m4: Update.
2220 * gnulib/import/m4/float_h.m4: Update.
2221 * gnulib/import/m4/fnmatch.m4: Update.
2222 * gnulib/import/m4/fnmatch_h.m4: Update.
2223 * gnulib/import/m4/fpieee.m4: Update.
2224 * gnulib/import/m4/frexp.m4: Update.
2225 * gnulib/import/m4/frexpl.m4: Update.
2226 * gnulib/import/m4/fstat.m4: Update.
2227 * gnulib/import/m4/fstatat.m4: Update.
2228 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
2229 * gnulib/import/m4/getcwd-path-max.m4: Update.
2230 * gnulib/import/m4/getcwd.m4: Update.
2231 * gnulib/import/m4/getdtablesize.m4: Update.
2232 * gnulib/import/m4/getlogin.m4: Update.
2233 * gnulib/import/m4/getlogin_r.m4: Update.
2234 * gnulib/import/m4/getpagesize.m4: Update.
2235 * gnulib/import/m4/getprogname.m4: Update.
2236 * gnulib/import/m4/gettimeofday.m4: Update.
2237 * gnulib/import/m4/glibc21.m4: Update.
2238 * gnulib/import/m4/glob.m4: Update.
2239 * gnulib/import/m4/glob_h.m4: Update.
2240 * gnulib/import/m4/gnulib-cache.m4: Update.
2241 * gnulib/import/m4/gnulib-common.m4: Update.
2242 * gnulib/import/m4/gnulib-comp.m4: Update.
2243 * gnulib/import/m4/gnulib-tool.m4: Update.
2244 * gnulib/import/m4/hard-locale.m4: Update.
2245 * gnulib/import/m4/include_next.m4: Update.
2246 * gnulib/import/m4/inttypes-pri.m4: Update.
2247 * gnulib/import/m4/inttypes.m4: Update.
2248 * gnulib/import/m4/isnand.m4: Update.
2249 * gnulib/import/m4/isnanl.m4: Update.
2250 * gnulib/import/m4/largefile.m4: Update.
2251 * gnulib/import/m4/limits-h.m4: Update.
2252 * gnulib/import/m4/localcharset.m4: Update.
2253 * gnulib/import/m4/locale-fr.m4: Update.
2254 * gnulib/import/m4/locale-ja.m4: Update.
2255 * gnulib/import/m4/locale-zh.m4: Update.
2256 * gnulib/import/m4/localtime-buffer.m4: Update.
2257 * gnulib/import/m4/longlong.m4: Update.
2258 * gnulib/import/m4/lstat.m4: Update.
2259 * gnulib/import/m4/malloc.m4: Update.
2260 * gnulib/import/m4/malloca.m4: Update.
2261 * gnulib/import/m4/math_h.m4: Update.
2262 * gnulib/import/m4/mbrtowc.m4: Update.
2263 * gnulib/import/m4/mbsinit.m4: Update.
2264 * gnulib/import/m4/mbsrtowcs.m4: Update.
2265 * gnulib/import/m4/mbstate_t.m4: Update.
2266 * gnulib/import/m4/memchr.m4: Update.
2267 * gnulib/import/m4/memmem.m4: Update.
2268 * gnulib/import/m4/mempcpy.m4: Update.
2269 * gnulib/import/m4/memrchr.m4: Update.
2270 * gnulib/import/m4/mkdir.m4: Update.
2271 * gnulib/import/m4/mkstemp.m4: Update.
2272 * gnulib/import/m4/mmap-anon.m4: Update.
2273 * gnulib/import/m4/mode_t.m4: Update.
2274 * gnulib/import/m4/msvc-inval.m4: Update.
2275 * gnulib/import/m4/msvc-nothrow.m4: Update.
2276 * gnulib/import/m4/multiarch.m4: Update.
2277 * gnulib/import/m4/nocrash.m4: Update.
2278 * gnulib/import/m4/off_t.m4: Update.
2279 * gnulib/import/m4/onceonly.m4: Update.
2280 * gnulib/import/m4/open-cloexec.m4: Update.
2281 * gnulib/import/m4/open.m4: Update.
2282 * gnulib/import/m4/openat.m4: Update.
2283 * gnulib/import/m4/opendir.m4: Update.
2284 * gnulib/import/m4/pathmax.m4: Update.
2285 * gnulib/import/m4/rawmemchr.m4: Update.
2286 * gnulib/import/m4/readdir.m4: Update.
2287 * gnulib/import/m4/readlink.m4: Update.
2288 * gnulib/import/m4/realloc.m4: Update.
2289 * gnulib/import/m4/rename.m4: Update.
2290 * gnulib/import/m4/rewinddir.m4: Update.
2291 * gnulib/import/m4/rmdir.m4: Update.
2292 * gnulib/import/m4/save-cwd.m4: Update.
2293 * gnulib/import/m4/secure_getenv.m4: Update.
2294 * gnulib/import/m4/setenv.m4: Update.
2295 * gnulib/import/m4/signal_h.m4: Update.
2296 * gnulib/import/m4/ssize_t.m4: Update.
2297 * gnulib/import/m4/stat-time.m4: Update.
2298 * gnulib/import/m4/stat.m4: Update.
2299 * gnulib/import/m4/std-gnu11.m4: Update.
2300 * gnulib/import/m4/stdbool.m4: Update.
2301 * gnulib/import/m4/stddef_h.m4: Update.
2302 * gnulib/import/m4/stdint.m4: Update.
2303 * gnulib/import/m4/stdio_h.m4: Update.
2304 * gnulib/import/m4/stdlib_h.m4: Update.
2305 * gnulib/import/m4/strchrnul.m4: Update.
2306 * gnulib/import/m4/strdup.m4: Update.
2307 * gnulib/import/m4/strerror.m4: Update.
2308 * gnulib/import/m4/string_h.m4: Update.
2309 * gnulib/import/m4/strstr.m4: Update.
2310 * gnulib/import/m4/strtok_r.m4: Update.
2311 * gnulib/import/m4/sys_socket_h.m4: Update.
2312 * gnulib/import/m4/sys_stat_h.m4: Update.
2313 * gnulib/import/m4/sys_time_h.m4: Update.
2314 * gnulib/import/m4/sys_types_h.m4: Update.
2315 * gnulib/import/m4/tempname.m4: Update.
2316 * gnulib/import/m4/time_h.m4: Update.
2317 * gnulib/import/m4/unistd-safer.m4: Update.
2318 * gnulib/import/m4/unistd_h.m4: Update.
2319 * gnulib/import/m4/warn-on-use.m4: Update.
2320 * gnulib/import/m4/wchar_h.m4: Update.
2321 * gnulib/import/m4/wchar_t.m4: Update.
2322 * gnulib/import/m4/wctype_h.m4: Update.
2323 * gnulib/import/m4/wint_t.m4: Update.
2324 * gnulib/import/malloc.c: Update.
2325 * gnulib/import/malloc/scratch_buffer.h: Update.
2326 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
2327 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
2328 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
2329 * gnulib/import/malloca.c: Update.
2330 * gnulib/import/malloca.h: Update.
2331 * gnulib/import/malloca.valgrind: Update.
2332 * gnulib/import/math.in.h: Update.
2333 * gnulib/import/mbrtowc.c: Update.
2334 * gnulib/import/mbsinit.c: Update.
2335 * gnulib/import/mbsrtowcs-impl.h: Update.
2336 * gnulib/import/mbsrtowcs-state.c: Update.
2337 * gnulib/import/mbsrtowcs.c: Update.
2338 * gnulib/import/memchr.c: Update.
2339 * gnulib/import/memmem.c: Update.
2340 * gnulib/import/mempcpy.c: Update.
2341 * gnulib/import/memrchr.c: Update.
2342 * gnulib/import/mkdir.c: Update.
2343 * gnulib/import/mkstemp.c: Update.
2344 * gnulib/import/msvc-inval.c: Update.
2345 * gnulib/import/msvc-inval.h: Update.
2346 * gnulib/import/msvc-nothrow.c: Update.
2347 * gnulib/import/msvc-nothrow.h: Update.
2348 * gnulib/import/open.c: Update.
2349 * gnulib/import/openat-die.c: Update.
2350 * gnulib/import/openat-priv.h: Update.
2351 * gnulib/import/openat-proc.c: Update.
2352 * gnulib/import/openat.c: Update.
2353 * gnulib/import/openat.h: Update.
2354 * gnulib/import/opendir.c: Update.
2355 * gnulib/import/pathmax.h: Update.
2356 * gnulib/import/pipe-safer.c: Update.
2357 * gnulib/import/rawmemchr.c: Update.
2358 * gnulib/import/readdir.c: Update.
2359 * gnulib/import/readlink.c: Update.
2360 * gnulib/import/realloc.c: Update.
2361 * gnulib/import/ref-add.sin: Update.
2362 * gnulib/import/ref-del.sin: Update.
2363 * gnulib/import/rename.c: Update.
2364 * gnulib/import/rewinddir.c: Update.
2365 * gnulib/import/rmdir.c: Update.
2366 * gnulib/import/same-inode.h: Update.
2367 * gnulib/import/save-cwd.c: Update.
2368 * gnulib/import/save-cwd.h: Update.
2369 * gnulib/import/scratch_buffer.h: Update.
2370 * gnulib/import/secure_getenv.c: Update.
2371 * gnulib/import/setenv.c: Update.
2372 * gnulib/import/signal.in.h: Update.
2373 * gnulib/import/stat-time.c: Update.
2374 * gnulib/import/stat-time.h: Update.
2375 * gnulib/import/stat-w32.c: Update.
2376 * gnulib/import/stat-w32.h: Update.
2377 * gnulib/import/stat.c: Update.
2378 * gnulib/import/stdbool.in.h: Update.
2379 * gnulib/import/stddef.in.h: Update.
2380 * gnulib/import/stdint.in.h: Update.
2381 * gnulib/import/stdio.in.h: Update.
2382 * gnulib/import/stdlib.in.h: Update.
2383 * gnulib/import/str-two-way.h: Update.
2384 * gnulib/import/strchrnul.c: Update.
2385 * gnulib/import/strdup.c: Update.
2386 * gnulib/import/streq.h: Update.
2387 * gnulib/import/strerror-override.c: Update.
2388 * gnulib/import/strerror-override.h: Update.
2389 * gnulib/import/strerror.c: Update.
2390 * gnulib/import/string.in.h: Update.
2391 * gnulib/import/stripslash.c: Update.
2392 * gnulib/import/strnlen1.c: Update.
2393 * gnulib/import/strnlen1.h: Update.
2394 * gnulib/import/strstr.c: Update.
2395 * gnulib/import/strtok_r.c: Update.
2396 * gnulib/import/sys_stat.in.h: Update.
2397 * gnulib/import/sys_time.in.h: Update.
2398 * gnulib/import/sys_types.in.h: Update.
2399 * gnulib/import/tempname.c: Update.
2400 * gnulib/import/tempname.h: Update.
2401 * gnulib/import/time.in.h: Update.
2402 * gnulib/import/unistd--.h: Update.
2403 * gnulib/import/unistd-safer.h: Update.
2404 * gnulib/import/unistd.in.h: Update.
2405 * gnulib/import/unsetenv.c: Update.
2406 * gnulib/import/verify.h: Update.
2407 * gnulib/import/extra/snippet/warn-on-use.h: Update.
2408 * gnulib/import/wchar.in.h: Update.
2409 * gnulib/import/wctype.in.h: Update.
2410 * gnulib/import/xalloc-oversized.h: Update.
2411 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
2412 "53e2c179f26a890fa6685af4b6c1397ee370433b".
2413
b0f492b9
GB
24142018-08-16 Gary Benson <gbenson@redhat.com>
2415
2416 PR gdb/13000:
2417 * gdb/main.c (captured_main_1): Exit with nonzero status
2418 in batch mode if the last command to be executed failed.
2419 * NEWS: Mention the above.
2420
2362e7f7
SM
24212018-08-29 Simon Marchi <simon.marchi@ericsson.com>
2422
2423 * csky-tdep.c (csky_memory_insert_breakpoint): Remove newline at
2424 end of warning message.
2425
4f4aedeb
AH
24262018-08-29 Alan Hayward <alan.hayward@arm.com>
2427
2428 PR gdb/22943:
2429 * aarch64-tdep.c (is_hfa_or_hva): Remove function.
2430 (aarch64_extract_return_value): Use
2431 aapcs_is_vfp_call_or_return_candidate.
2432 (aarch64_return_in_memory): Likewise.
2433 (aarch64_store_return_value): Likewise.
2434
0e745c60
AH
24352018-08-29 Alan Hayward <alan.hayward@arm.com>
2436
2437 * aarch64-tdep.c
2438 (aapcs_is_vfp_call_or_return_candidate): Make static
2439 (pass_in_v_or_stack): Remove function.
2440 (pass_in_v_vfp_candidate): New function.
2441 (aarch64_push_dummy_call): Check for float register candidates.
2442
ea92689a
AH
24432018-08-29 Alan Hayward <alan.hayward@arm.com>
2444
2445 * aarch64-tdep.c (HA_MAX_NUM_FLDS): New macro.
2446 (aapcs_is_vfp_call_or_return_candidate_1): New function.
2447 (aapcs_is_vfp_call_or_return_candidate): Likewise.
2448
ad202fcc
SM
24492018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
2450
2451 PR build/23399
2452 * common/agent.c (IPA_SYM_STRUCT_NAME): Define.
2453 (struct ipa_sym_addresses): Rename to...
2454 (struct ipa_sym_addresses_common): ... this.
2455 * common/agent.h (IPA_SYM): Use IPA_SYM_STRUCT_NAME.
2456
5fe3f3e4
TT
24572018-08-28 Tom Tromey <tom@tromey.com>
2458
2459 * c-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
2460 (token_fifo): Now a std::vector.
2461 (yylex, c_parse): Update.
2462 * d-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
2463 (token_fifo): Now a std::vector.
2464 (yylex, d_parse): Update.
2465 * go-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
2466 (token_fifo): Now a std::vector.
2467 (yylex, go_parse): Update.
2468
858d8004
SM
24692018-08-28 Simon Marchi <simon.marchi@ericsson.com>
2470
2471 * parser-defs.h (struct type_stack) <elements>: Change type to
2472 std::vector<union type_stack_elt>.
2473 <depth, size>: Remove.
2474 * parse.c (parse_exp_in_context_1): Adjust.
2475 (type_stack_reserve): Remove.
2476 (check_type_stack_depth): Remove.
2477 (insert_into_type_stack): Adjust to std::vector.
2478 (insert_type): Likewise.
2479 (push_type): Likewise.
2480 (push_type_int): Likewise.
2481 (insert_type_address_space): Likewise.
2482 (pop_type): Likewise.
2483 (pop_type_int): Likewise.
2484 (pop_typelist): Likewise.
2485 (pop_type_stack): Likewise.
2486 (append_type_stack): Likewise.
2487 (push_type_stack): Likewise.
2488 (get_type_stack): Likewise.
2489 (type_stack_cleanup): Likewise.
2490 (push_typelist): Likewise.
2491 (follow_types): Likewise.
2492 (_initialize_parse): Likewise.
2493
416a69af
HAQ
24942018-08-28 Hafiz Abid Qadeer <abidh@codesourcery.com>
2495
2496 * NEWS: Mention csky target.
2497
9d24df82
HAQ
24982018-08-28 Jiangshuai Li <jiangshuai_li@c-sky.com>
2499 Hafiz Abid Qadeer <abidh@codesourcery.com>
2500 Don Breazeal <donb@codesourcery.com>
2501
2502 * csky-linux-tdep.c: New file.
2503 * csky-tdep.c: Likewise.
2504 * csky-tdep.h: Likewise.
2505 * Makefile.in (ALL_TARGET_OBS): Add csky-linux-tdep.o and
2506 csky-tdep.o.
2507 (HFILES_NO_SRCDIR): Add csky-tdep.h.
2508 (ALLDEPFILES): Add csky-linux-tdep.c and csky-tdep.c
2509 * configure.tgt: Add csky support.
2510
3bf9c013
JV
25112018-08-27 Jan Vrany <jan.vrany@fit.cvut.cz>
2512
2513 * python/py-framefilter.c (py_print_frame): Print frame architecture
2514 when printing on an MI output.
2515
d3d8724a
TT
25162018-08-27 Tom Tromey <tom@tromey.com>
2517
2518 PR build/23087:
2519 * configure: Rebuild.
2520 * warning.m4 (AM_GDB_WARNINGS): Remove -Wno-narrowing.
2521
1885053b
TT
25222018-08-27 Tom Tromey <tom@tromey.com>
2523
2524 * aarch64-linux-tdep.c
2525 (aarch64_linux_iterate_over_regset_sections) <sve_regmap>: Add
2526 casts to int.
2527
8406672e
TT
25282018-08-27 Tom Tromey <tom@tromey.com>
2529
2530 * ppc64-tdep.c (insn_d, insn_ds, insn_xfx): Add casts to
2531 unsigned.
2532 (ppc64_standard_linkage1, ppc64_standard_linkage2)
2533 (ppc64_standard_linkage3, ppc64_standard_linkage4)
2534 (ppc64_standard_linkage5, ppc64_standard_linkage6)
2535 (ppc64_standard_linkage7, ppc64_standard_linkage8): Add casts to
2536 unsigned.
2537
ec40cf90
TT
25382018-08-27 Tom Tromey <tom@tromey.com>
2539
2540 * xtensa-tdep.h (XTREG_END): Add cast to unsigned.
2541 (XTENSA_GDBARCH_TDEP_INSTANTIATE): Likewise.
2542
7bc02706
TT
25432018-08-27 Tom Tromey <tom@tromey.com>
2544
2545 * tramp-frame.h (TRAMP_SENTINEL_INSN): Redefine.
2546 * tilegx-linux-tdep.c (tilegx_linux_rt_sigframe): Use
2547 ULONGEST_MAX.
2548 * tic6x-linux-tdep.c (tic6x_linux_rt_sigreturn_tramp_frame): Use
2549 ULONGEST_MAX.
2550 * sparc64-linux-tdep.c (sparc64_linux_rt_sigframe): Use
2551 ULONGEST_MAX.
2552 * sparc-linux-tdep.c (sparc32_linux_sigframe)
2553 (sparc32_linux_rt_sigframe): Use ULONGEST_MAX.
2554 * ppc-nbsd-tdep.c (ppcnbsd_sigtramp, ppcnbsd2_sigtramp): Use
2555 ULONGEST_MAX.
2556 * ppc-linux-tdep.c (ppc32_linux_sigaction_tramp_frame)
2557 (ppc64_linux_sigaction_tramp_frame)
2558 (ppc32_linux_sighandler_tramp_frame)
2559 (ppc64_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
2560 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame)
2561 (nios2_r2_linux_rt_sigreturn_tramp_frame): Use ULONGEST_MAX.
2562 * mn10300-linux-tdep.c (am33_linux_sigframe)
2563 (am33_linux_rt_sigframe): Use ULONGEST_MAX.
2564 * mips64-obsd-tdep.c (mips64obsd_sigframe): Use ULONGEST_MAX.
2565 * mips-linux-tdep.c (mips_linux_o32_sigframe)
2566 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
2567 (mips_linux_n64_rt_sigframe, micromips_linux_o32_sigframe)
2568 (micromips_linux_o32_rt_sigframe, micromips_linux_n32_rt_sigframe)
2569 (micromips_linux_n64_rt_sigframe): Use ULONGEST_MAX.
2570 * mips-fbsd-tdep.c (mips_fbsd_sigframe, mipsn32_fbsd_sigframe)
2571 (mips64_fbsd_sigframe): Use ULONGEST_MAX.
2572 * microblaze-linux-tdep.c
2573 (microblaze_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
2574 * i386-nbsd-tdep.c (i386nbsd_sigtramp_sc16, i386nbsd_sigtramp_sc2)
2575 (i386nbsd_sigtramp_si2, i386nbsd_sigtramp_si31)
2576 (i386nbsd_sigtramp_si4): Use ULONGEST_MAX.
2577 * hppa-nbsd-tdep.c (hppanbsd_sigtramp_si4): Use ULONGEST_MAX.
2578 * common/common-types.h (ULONGEST_MAX): New define.
2579 (CORE_ADDR_MAX): Fix formatting.
2580 * bfin-linux-tdep.c (bfin_linux_sigframe): Use ULONGEST_MAX.
2581 * arm-obsd-tdep.c (armobsd_sigframe): Use ULONGEST_MAX.
2582 * arm-linux-tdep.c (arm_linux_sigreturn_tramp_frame)
2583 (arm_linux_rt_sigreturn_tramp_frame)
2584 (arm_eabi_linux_sigreturn_tramp_frame)
2585 (arm_eabi_linux_rt_sigreturn_tramp_frame)
2586 (thumb2_eabi_linux_sigreturn_tramp_frame)
2587 (thumb2_eabi_linux_rt_sigreturn_tramp_frame)
2588 (arm_linux_restart_syscall_tramp_frame)
2589 (arm_kernel_linux_restart_syscall_tramp_frame): Use ULONGEST_MAX.
2590 * arm-fbsd-tdep.c (arm_fbsd_sigframe): Use ULONGEST_MAX.
2591 * aarch64-linux-tdep.c (aarch64_linux_rt_sigframe): Use
2592 ULONGEST_MAX.
2593 * aarch64-fbsd-tdep.c (aarch64_fbsd_sigframe): Use ULONGEST_MAX.
2594
70ab8ccd
TT
25952018-08-27 Tom Tromey <tom@tromey.com>
2596
2597 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Use
2598 CORE_ADDR_MAX.
2599 * mips-tdep.c (mips_deal_with_atomic_sequence)
2600 (micromips_deal_with_atomic_sequence): Use CORE_ADDR_MAX.
2601 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw)
2602 (arm_deal_with_atomic_sequence_raw): Use CORE_ADDR_MAX.
2603 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Use
2604 CORE_ADDR_MAX.
2605 * aarch64-tdep.c (aarch64_software_single_step): Use
2606 CORE_ADDR_MAX.
2607
896a7aa6
TT
26082018-08-27 Tom Tromey <tom@tromey.com>
2609
2610 * linespec.c (complete_linespec_component): Add cast to "char".
2611 * completer.c (completion_tracker::build_completion_result): Add
2612 cast to "char".
2613
dd33d41d
SM
26142018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
2615
2616 * solist.h (struct solist, struct target_so_ops): Fix
2617 indentation.
2618
c645cda4
SM
26192018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
2620
2621 * ada-tasks.c (ada_task_info_s): Remove typedef.
2622 (DEF_VEC_O(ada_task_info_s)): Remove.
2623 (struct ada_tasks_inferior_data): Initialize fields.
2624 <task_list>: Make an std::vector.
2625 (get_ada_tasks_inferior_data): Allocate with new.
2626 (ada_get_task_number): Adjust.
2627 (get_task_number_from_id): Likewise.
2628 (valid_task_id): Likewise.
2629 (ada_get_task_info_from_ptid): Likewise.
2630 (iterate_over_live_ada_tasks): Likewise.
2631 (add_ada_task): Likewise.
2632 (read_known_tasks): Likewise.
2633 (ada_build_task_list): Likewise.
2634 (print_ada_task_info): Likewise.
2635 (info_task): Likewise.
2636 (task_command_1): Likewise.
2637
39e7af3e
SM
26382018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
2639
2640 * ada-lang.c (add_angle_brackets): Return std::string.
2641
bbbbbcee
SM
26422018-08-25 Simon Marchi <simon.marchi@polymtl.ca>
2643
2644 * python/py-threadevent.c (py_get_event_thread): Initialize
2645 pythread.
2646
d98fc15b
PA
26472018-08-24 Pedro Alves <palves@redhat.com>
2648
2649 * python/py-bpevent.c (create_breakpoint_event_object): Use
2650 copy-initialization.
2651 * python/py-continueevent.c (emit_continue_event): Use
2652 copy-initialization.
2653 * python/py-exitedevent.c (create_exited_event_object): Return a
2654 gdbpy_ref<>.
2655 (emit_exited_event): Use copy-initialization.
2656 * python/py-inferior.c (python_new_inferior)
2657 (python_inferior_deleted, add_thread_object): Use
2658 copy-initialization.
2659 * python/py-infevents.c (create_inferior_call_event_object)
2660 (create_register_changed_event_object)
2661 (create_memory_changed_event_object): Return a gdbpy_ref<>.
2662 (emit_inferior_call_event, emit_memory_changed_event)
2663 (emit_register_changed_event): Use copy-initialization.
2664 * python/py-newobjfileevent.c (create_new_objfile_event_object):
2665 Return a gdbpy_ref<>.
2666 (emit_new_objfile_event): Use copy-initialization.
2667 (create_clear_objfiles_event_object): Return a gdbpy_ref<>.
2668 (emit_clear_objfiles_event): Use copy-initialization.
2669 * python/py-signalevent.c (create_signal_event_object): Use
2670 copy-initialization.
2671 * python/py-threadevent.c (create_thread_event_object): Use
2672 copy-initialization.
2673
da3c8738
PA
26742018-08-24 Pedro Alves <palves@redhat.com>
2675 Simon Marchi <simon.marchi@ericsson.com>
2676
2677 PR gdb/23379
2678 * python/py-continueevent.c: Include "gdbthread.h".
2679 (create_continue_event_object): Add intro comment. Add 'ptid'
2680 parameter. Use it to find thread to pass to
2681 create_thread_event_object.
2682 (emit_continue_event): Pass PTID down to
2683 create_continue_event_object.
2684 * python/py-event.h (py_get_event_thread): Declare.
2685 (create_thread_event_object): Remove default from 'thread'
2686 parameter.
2687 * python/py-stopevent.c (create_stop_event_object): Use
2688 py_get_event_thread.
2689 * python/py-threadevent.c (get_event_thread): Rename to ...
2690 (py_get_event_thread): ... this, make extern, add 'ptid' parameter
2691 and use it to find the thread.
2692 (create_thread_event_object): Assert that THREAD isn't null.
2693 Don't find the event thread here.
2694
26457a9c
KB
26952018-08-23 Kevin Buettner <kevinb@redhat.com>
2696
2697 * block.h (blockrange, blockranges): New struct declarations.
2698 (struct block): Add new field named `ranges'.
2699 (BLOCK_RANGES, BLOCK_NRANGES, BLOCK_RANGE, BLOCK_CONTIGUOUS_P)
2700 (BLOCK_RANGE_START, BLOCK_RANGE_END, BLOCK_ENTRY_PC): New
2701 macros for accessing ranges in struct block.
2702 (make_blockranges): New declaration.
2703 block.c (make_blockranges): New function.
2d5f09ec
KB
2704 * dwarf2read.c (dwarf2_record_block_ranges): Fill in BLOCK_RANGES
2705 for block.
fc811edd
KB
2706 * symtab.h (find_pc_partial_function): Add new parameter `block'.
2707 * blockframe.c (cache_pc_function_block): New static global.
2708 (clear_pc_function_cache): Clear cache_pc_function_block.
2709 (find_pc_partial_function): Move comment to symtab.h. Add
2710 support for non-contiguous blocks.
e9480230
KB
2711 * cli/cli-cmds.c (block.h): Include.
2712 (print_disassembly): Handle printing of non-contiguous blocks.
2713 (disassemble_current_function): Likewise.
2714 (disassemble_command): Likewise.
26457a9c 2715
2b1ffcfd
KB
2716 * ax-gdb.c (gen_var_ref): Use BLOCK_ENTRY_PC in place of
2717 BLOCK_START.
2718 * blockframe.c (get_pc_function_start): Likewise.
2719 * compile/compile-c-symbols.c (convert_one_symbol): Likewise.
2720 (gcc_symbol_address): Likewise.
2721 * compile/compile-object-run.c (compile_object_run): Likewise.
2722 * compile/compile.c (get_expr_block_and_pc): Likewise.
2723 * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
2724 (func_addr_to_tail_call_list): Likewise.
2725 * findvar.c (default_read_var_value): Likewise.
2726 * inline-frame.c (inline_frame_this_id): Likewise.
2727 (skip-inline_frames): Likewise.
2728 * infcmd.c (until_next_command): Likewise.
2729 * linespec.c (convert_linespec_to_sals): Likewise.
2730 * parse.c (parse_exp_in_context_1): Likewise.
2731 * printcmd.c (build_address_symbolic): likewise.
2732 (info_address_command): Likewise.
2733 symtab.c (find_function_start_sal): Likewise.
2734 (skip_prologue_sal): Likewise.
2735 (find_function_alias_target): Likewise.
2736 (find_gnu_ifunc): Likewise.
2737 * stack.c (find_frame_funname): Likewise.
2738 * symtab.c (fixup_symbol_section): Likewise.
2739 (find_function_start_sal): Likewise.
2740 (skip_prologue_sal): Likewsie.
2741 (find_function_alias_target): Likewise.
2742 (find_gnu_ifunc): Likewise.
2743 * tracepoint.c (info_scope_command): Likewise.
2744 * value.c (value_fn_field): Likewise.
2745
9644dc3a
KB
2746 * infrun.c (fill_in_stop_func): Use find_function_entry_range_from_pc
2747 in place of find_pc_partial_function.
2748 * blockframe.c (find_function_entry_range_from_pc): New function.
2749 * symtab.h (find_function_entry_range_from_pc): Declare and document.
2750 * objfiles.c (objfile_relocate1): Relocate start and end addresses
2751 for each range in a block.
2752
2753
12a0d0f6
XR
27542018-08-23 Xavier Roirand <roirand@adacore.com>
2755
2756 * machoread.c (macho_symfile_read_all_oso): Remove uneeded
2757 incrementation.
2758
d1012b8e
SM
27592018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2760
2761 * solib-svr4.c (read_program_headers_from_bfd): Return
2762 gdb::optional<gdb::byte_vector>.
2763 (svr4_exec_displacement): Adjust.
2764
17658d46
SM
27652018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2766
2767 * solib-svr4.c (read_program_header): Return
2768 gdb::optional<gdb::byte_vector>, remove p_sect_size param.
2769 (find_program_interpreter): Return
2770 gdb::optional<gdb::byte_vector>.
2771 (scan_dyntag_auxv): Adjust.
2772 (enable_break): Adjust.
2773 (svr4_exec_displacement): Adjust.
2774
ae739fe7
SM
27752018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2776
2777 * inf-child.h (inf_child_target) <terminal_save_inferior>: New.
2778 * inf-child.c (inf_child_target::terminal_save_inferior): New.
2779
467dc1e2
SM
27802018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2781
2782 * guile/scm-string.c (gdbscm_scm_from_printf): Use
2783 string_vprintf.
2784 * guile/scm-utils.c (gdbscm_printf): Likewise.
2785 * serial.c (serial_printf): Likewise.
2786 * xml-support.c (gdb_xml_parser::vdebug): Likewise.
2787
6d52907e
JV
27882018-08-22 Jan Vrany <jan.vrany@fit.cvut.cz>
2789
2790 * stack.c (print_frame): Print frame architecture when printing on
2791 an MI output.
2792 * NEWS: Mention new "arch" attribute in frame output.
2793
9758a8f8
AH
27942018-08-21 Alan Hayward <alan.hayward@arm.com>
2795
2796 * arch/aarch64.h (aarch64_regnum): Update comment.
2797
1461bdac
AH
27982018-08-21 Alan Hayward <alan.hayward@arm.com>
2799
2800 * NEWS: Add SVE to 8.2 section.
2801
4895f384
PA
28022018-08-21 Pedro Alves <palves@redhat.com>
2803
2804 * guile/scm-utils.c (gdbscm_parse_function_args_1): New, factored
2805 out from gdbscm_parse_function_args.
2806 (gdbscm_parse_function_args): Rework to use gdbscm_wrap and
2807 gdbscm_parse_function_args_1.
2808
a4497d2f
SM
28092018-08-21 Simon Marchi <simon.marchi@ericsson.com>
2810
2811 PR gdb/17816
2812 * m32c-tdep.c (m32c_decode_srcdest4): Remove unnecessary ternary
2813 operator.
2814
c44deb73
SM
28152018-08-19 Simon Marchi <simon.marchi@polymtl.ca>
2816
2817 * solib-svr4.c (svr4_exec_displacement): Fix formatting.
2818
be2d111a
MS
28192018-08-19 Michael Spang <spang@google.com>
2820
2821 PR gdb/11786
2822 * solib-svr4.c (svr4_exec_displacement): Ignore memsz fields
2823 for PT_TLS segments.
2824
a6b786da
KB
28252018-08-18 Kevin Buettner <kevinb@redhat.com>
2826
2827 * dwarf2expr.h (struct dwarf_expr_context): Add virtual method
2828 dwarf_variable_value.
2829 * dwarf2-frame.c (class dwarf_expr_executor):
2830 Add override for dwarf_variable_value.
2831 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Likewise.
2832 (class symbol_needs_eval_context): Likewise.
2833 (indirect_synthetic_pointer): Add forward declaration.
2834 (sect_variable_value): New function.
2835 (dwarf2_compile_expr_to_ax): Add case for DW_OP_GNU_variable_value.
2836 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Add case
2837 for DW_OP_GNU_variable_value.
2838
89fbedf3
TT
28392018-08-16 Tom Tromey <tom@tromey.com>
2840
2841 * top.c (read_command_file): Update.
2842 (command_line_input): Remove "repeat" argument.
2843 * ada-lang.c (get_selections): Update.
2844 * linespec.c (decode_line_2): Update.
2845 * defs.h (command_line_input): Remove argument.
2846 * cli/cli-script.c (read_next_line): Update.
2847 * python/py-gdb-readline.c: Update.
2848
12582533
TT
28492018-08-17 Tom Tromey <tom@tromey.com>
2850
2851 * cli/cli-script.c (read_next_line): Pass 0 as repeat argument to
2852 command_line_input.
2853
49514353
TT
28542018-08-15 Tom Tromey <tom@tromey.com>
2855
2856 * aarch64-linux-tdep.c (aarch64_linux_core_read_vq): Use pulongest.
2857
26fb3983
JV
28582018-08-14 Jan Vrany <jan.vrany@fit.cvut.cz>
2859
2860 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Add -a option.
2861 If used, use find_pc_partial_function to find address range
2862 to disassemble.
2863 * mi/mi-main.c (mi_cmd_list_features): Report
2864 "data-disassemble-a-option" feature.
2865 * NEWS: Mention new -data-disassemble option -a.
2866
a97b53dd
TT
28672018-08-13 Tom Tromey <tom@tromey.com>
2868
2869 * common/common-defs.h (_FORTIFY_SOURCE): Define.
2870
0c76e06d
AH
28712018-08-13 Alan Hayward <alan.hayward@arm.com>
2872
2873 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): New function.
2874 (aarch64_linux_collect_sve_regset): Likewise.
2875 (aarch64_linux_iterate_over_regset_sections): Check for SVE.
2876 * regcache.h (regcache_map_entry_size): New function.
2877
b7fd65b9
AH
28782018-08-13 Alan Hayward <alan.hayward@arm.com>
2879
2880 * aarch64-linux-tdep.c (SVE_HEADER_SIZE_LENGTH): Add define.
2881 (SVE_HEADER_MAX_SIZE_LENGTH): Likewise.
2882 (SVE_HEADER_VL_LENGTH): Likewise.
2883 (SVE_HEADER_MAX_VL_LENGTH): Likewise.
2884 (SVE_HEADER_FLAGS_LENGTH): Likewise.
2885 (SVE_HEADER_RESERVED_LENGTH): Likewise.
2886 (SVE_HEADER_SIZE_OFFSET): Likewise.
2887 (SVE_HEADER_MAX_SIZE_OFFSET): Likewise.
2888 (SVE_HEADER_VL_OFFSET): Likewise.
2889 (SVE_HEADER_MAX_VL_OFFSET): Likewise.
2890 (SVE_HEADER_FLAGS_OFFSET): Likewise.
2891 (SVE_HEADER_RESERVED_OFFSET): Likewise.
2892 (SVE_HEADER_SIZE): Likewise.
2893 (aarch64_linux_core_read_vq): Add function.
2894 (aarch64_linux_core_read_description): Check for SVE section.
2895
a616bb94
AH
28962018-08-13 Alan Hayward <alan.hayward@arm.com>
2897
2898 * aarch64-fbsd-tdep.c
2899 (aarch64_fbsd_iterate_over_regset_sections): Add supply_size and
2900 collect_size.
2901 * aarch64-linux-tdep.c
2902 (aarch64_linux_iterate_over_regset_sections): Likewise.
2903 * alpha-linux-tdep.c
2904 (alpha_linux_iterate_over_regset_sections):
2905 * alpha-nbsd-tdep.c
2906 (alphanbsd_iterate_over_regset_sections): Likewise.
2907 * amd64-fbsd-tdep.c
2908 (amd64fbsd_iterate_over_regset_sections): Likewise.
2909 * amd64-linux-tdep.c
2910 (amd64_linux_iterate_over_regset_sections): Likewise.
2911 * arm-bsd-tdep.c
2912 (armbsd_iterate_over_regset_sections): Likewise.
2913 * arm-fbsd-tdep.c
2914 (arm_fbsd_iterate_over_regset_sections): Likewise.
2915 * arm-linux-tdep.c
2916 (arm_linux_iterate_over_regset_sections): Likewise.
2917 * corelow.c (get_core_registers_cb): Likewise.
2918 (core_target::fetch_registers): Likewise.
2919 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
2920 * frv-linux-tdep.c (frv_linux_iterate_over_regset_sections): Likewise.
2921 * gdbarch.h (void): Regenerate.
2922 * gdbarch.sh: Add supply_size and collect_size.
2923 * hppa-linux-tdep.c (hppa_linux_iterate_over_regset_sections): Likewise.
2924 * hppa-nbsd-tdep.c (hppanbsd_iterate_over_regset_sections): Likewise.
2925 * hppa-obsd-tdep.c (hppaobsd_iterate_over_regset_sections): Likewise.
2926 * i386-fbsd-tdep.c (i386fbsd_iterate_over_regset_sections): Likewise.
2927 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections): Likewise.
2928 * i386-tdep.c (i386_iterate_over_regset_sections): Likewise.
2929 * ia64-linux-tdep.c (ia64_linux_iterate_over_regset_sections): Likewise.
2930 * linux-tdep.c (linux_collect_regset_section_cb): Likewise.
2931 * m32r-linux-tdep.c (m32r_linux_iterate_over_regset_sections): Likewise.
2932 * m68k-bsd-tdep.c (m68kbsd_iterate_over_regset_sections): Likewise.
2933 * m68k-linux-tdep.c (m68k_linux_iterate_over_regset_sections): Likewise.
2934 * mips-fbsd-tdep.c (mips_fbsd_iterate_over_regset_sections): Likewise.
2935 * mips-linux-tdep.c (mips_linux_iterate_over_regset_sections): Likewise.
2936 * mips-nbsd-tdep.c (mipsnbsd_iterate_over_regset_sections): Likewise.
2937 * mips64-obsd-tdep.c (mips64obsd_iterate_over_regset_sections): Likewise.
2938 * mn10300-linux-tdep.c (am33_iterate_over_regset_sections): Likewise.
2939 * nios2-linux-tdep.c (nios2_iterate_over_regset_sections): Likewise.
2940 * ppc-fbsd-tdep.c (ppcfbsd_iterate_over_regset_sections): Likewise.
2941 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections): Likewise.
2942 * ppc-nbsd-tdep.c (ppcnbsd_iterate_over_regset_sections): Likewise.
2943 * ppc-obsd-tdep.c (ppcobsd_iterate_over_regset_sections): Likewise.
2944 * riscv-linux-tdep.c (riscv_linux_iterate_over_regset_sections): Likewise.
2945 * rs6000-aix-tdep.c (rs6000_aix_iterate_over_regset_sections): Likewise.
2946 * s390-linux-tdep.c (s390_iterate_over_regset_sections): Likewise.
2947 * score-tdep.c (score7_linux_iterate_over_regset_sections): Likewise.
2948 * sh-tdep.c (sh_iterate_over_regset_sections): Likewise.
2949 * sparc-tdep.c (sparc_iterate_over_regset_sections): Likewise.
2950 * tilegx-linux-tdep.c (tilegx_iterate_over_regset_sections): Likewise.
2951 * vax-tdep.c (vax_iterate_over_regset_sections): Likewise.
2952 * xtensa-tdep.c (xtensa_iterate_over_regset_sections): Likewise.
2953
a9925d4f
SM
29542018-08-10 Simon Marchi <simon.marchi@ericsson.com>
2955
2956 * nat/linux-osdata.c (commandline_from_pid): Replace xstrprintf
2957 with string_printf.
2958
ad3a68e9
KS
29592018-08-10 Keith Seitz <keiths@redhat.com>
2960
2961 * compile/compile-c-support.c (add_code_header, add_code_footer):
2962 Move into policy class.
2963 (c_push_user_expression, pop_user_expression_nop)
2964 (c_add_code_header, c_add_code_footer, c_add_input): New policy class.
2965 (compile_program): New host class.
2966 (c_compile_program): New typedef.
2967 (c_compute_porgram): Use c_compile_program.
2968
0cfbf430
KS
29692018-08-10 Keith Seitz <keiths@redhat.com>
2970
2971 * compile/compile-internal.h (compile_instance::~compile_instance):
2972 Remove calls to htab_delete.
2973 <m_type_map, m_symbol_err_map>: Switch type to htab_up.
2974 * compile.c (compile_instance::compile_instance): Initialize
2975 htab unique pointers.
2976 (compile_instance::get_cached_type, compile_instance::insert_type)
2977 (compile_instance::error_symbol_once): Update for unique_ptr.
2978
946d3d10
KS
29792018-08-10 Keith Seitz <keiths@redhat.com>
2980
2981 * compile/compile-c-symbols.c (struct symbol_error)
2982 (hash_symbol_error, eq_symbol_error, del_symbol_error)
2983 (compile_instance::insert_symbol_error)
2984 (compile_instance::error_symbol_once): Move to ...
2985 * compile/compile.c: ... here.
2986
9cdfd9a2
KS
29872018-08-10 Keith Seitz <keiths@redhat.com>
2988
2989 * compile/compile-c-support.c (c_get_compile_context): Use `new'
2990 instead of `new_compile_instance'.
2991 * compile/compile-c-symbols.c (compile_instance::insert_symbol_error):
2992 Update description.
2993 If the symbol error map is not initialized, create it.
2994 (generate_c_for_for_one_symbol): Do not check/initialize
2995 the symbol error map.
2996 * compile/compile-c-types.c (compile_c_instance): Make a class.
2997 Update all callers.
2998 (compile_instance::compile_instance): Initialize the type cache.
2999 (get_cached_type): New function.
3000 (insert_type): Update description.
3001 (compile_c_instance::m_default_cflags): Define.
3002 (convert_type): Update description. Use get_cached_type.
3003 (delete_instance): Moved to destructor.
3004 (new_compile_instance): Moved to constructor.
3005 * compile/compile-c.h (compile_c_instance): Make class inheriting
3006 from compile_instance.
3007 <base>: Remove field.
3008 <type_map, symbol_err_map>: Move to base class.
3009 <c_plugin>: Rename to `m_plugin' and remove pointer type.
3010 * compile/compile-internal.h (compile_instance): Make class.
3011 <type_map_t, symbol_err_map_t>: Define.
3012 <fe>: Rename to `m_gcc_fe'.
3013 <scope, block, gcc_target_options>: Add `m_' prefix.
3014 <m_type_map, m_symbol_err_map>: New fields, moved from
3015 compile_c_instance.
3016 <destroy>: Remove.
3017 (convert_type, new_compile_instance): Remove.
3018 * compile/compile.c (cleanup_compile_instance): Remove.
3019 (compile_to_object): Use unique_ptr to eliminate cleanups.
3020 (compile_instance::set_print_callback, compile_instance::version)
3021 (compile_instance::set_verbose)
3022 (compile_instance::set_driver_filename)
3023 (compile_instance::set_triplet_regexp)
3024 (compile_instance::set_arguments)
3025 (compile_instance::set_source_file)
3026 (compile_instance::compile): Define.
3027
18cdc6d8
KS
30282018-08-10 Keith Seitz <keiths@redhat.com>
3029
3030 * Makefile.in (HFILES_NO_SRCDIR): Add compile/gcc-c-plugin.h.
3031 * compile/compile-c-types.c: Define GCC_METHODN macros and include
3032 gcc-c-fe.def to define C plugin.
3033 (delete_instance): Delete `c_plugin'.
3034 (new_compile_instance): Initialize `c_plugin'.
3035 * compile/compile-c.h: Include gcc_c_plugin.h.
3036 (struct compile_c_instance) <c_plugin>: New member.
3037 * gcc-c-plugin.h: New file.
3038 Update all callers with API change.
3039
b7dc48b4
KS
30402018-08-10 Keith Seitz <keiths@redhat.com>
3041
3042 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Move header files ...
3043 (HFILES_NO_SRCDIR): ... to here.
3044 Add compile-internal.h and compile-c.h.
3045 * compile/compile-c-support.c: Include compile-c.h.
3046 * compile/compile-c-symbols.c: Include compile-c.h.
3047 (generate_c_for_variable_locations): Update comment.
3048 * compile/compile-c-types.c: Include compile-c.h.
3049 * compile/compile-c.h: New file -- moved C language declarations
3050 from other files here.
3051 * compile/compile-internal.h: Do not include hashtab.h or
3052 common/enum-flags.h.
3053 (gcc_qualifiers_flags, struct compile_c_instance, C_CTX)
3054 (gcc_convert_symbol, gcc_symbol_address)
3055 (generate_c_for_variable_locations, c_get_mode_for_size)
3056 (c_get_range_decl_name): Definitions moved to compile-c.h.
3057 * compile/compile-loc2c.c: Include compile-c.h.
3058
6f36b6d2
KS
30592018-08-10 Keith Seitz <keiths@redhat.com>
3060
3061 * compile/compile-c-symbols.c (symbol_substitution_name): Rename to ...
3062 (c_symbol_substitution_name): ... this.
3063 Update all callers.
3064
bd923e51
KS
30652018-08-10 Keith Seitz <keiths@redhat.com>
3066
3067 * compile/compile-c-support.c (c_compute_program): Use
3068 unique_xmalloc_ptr to eliminate cleanup.
3069 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
3070 Return a unique_xmalloc_ptr and eliminate cleanup.
3071 * compile/compile-internal.h (generate_c_for_variable_locations):
3072 Return unique_xmalloc_ptr and update description.
3073
dbd534fe
AH
30742018-08-10 Alan Hayward <alan.hayward@arm.com>
3075
3076 * corelow.c (core_target::get_core_register_section): Rename
3077 min_size to section_min_size.
3078
90ad3654
JW
30792018-08-09 Jim Wilson <jimw@sifive.com>
3080
52a187f8
JW
3081 * Makefile.in (ALL_TARGET_OBS): Add riscv-linux-tdep.c.
3082 (ALLDEPFILES): Add riscv-linux-nat.c, and riscv-linux-tdep.c.
3083 * NEWS: Mention new GNU/Linux RISC-V target.
3084 * configure.host: Add riscv*-*-linux*.
3085 * configure.nat: Add riscv*.
3086 * configure.tgt: Add riscv*-*-linux*.
3c77f97e 3087 * riscv-linux-nat.c: New file.
90ad3654
JW
3088 * riscv-linux-tdep.c: New file.
3089
aff4e175
AB
30902018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
3091
3092 * infrun.c (resume): Make static, add forward declaration.
3093 (proceed): Update header comment.
3094 * infrun.h (resume): Delete declaration.
3095
06ab9219
TT
30962018-08-09 Tom Tromey <tom@tromey.com>
3097
3098 * riscv-tdep.h: Minor formatting fixes.
3099
83c8d318
SM
31002018-08-09 Simon Marchi <simon.marchi@ericsson.com>
3101
3102 * common/scoped_mmap.c (mmap_file): Silence ARI warning.
3103 * dwarf-index-cache.c (create_dir_and_check): Likewise.
3104 (test_mkdir_recursive): Likewise.
3105 * dwarf-index-write.c (write_psymtabs_to_index): Likewise.
3106
5ff2bbae
AB
31072018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
3108
3109 * valarith.c (value_subscripted_rvalue): If an array is not in
3110 memory, and we don't know the upper bound, then we can't know that
3111 the requested element exists or not.
3112
fdbac7d8
SM
31132018-08-08 Simon Marchi <simon.marchi@ericsson.com>
3114
3115 * target.c (str_comma_list_concat_elem): Fix typo in comment.
3116 (target_options_to_string): Add comment.
3117
83202f7a
TT
31182018-08-08 Tom Tromey <tom@tromey.com>
3119
3120 * unittests/scoped_mmap-selftests.c: Check result of "write".
3121
411baa47
JW
31222018-08-08 Jim Wilson <jimw@sifive.com>
3123
5c720ed8
JW
3124 * riscv-tdep.c (enum opcode): Add jump, branch, lr, and sc opcodes.
3125 (decode_register_index_short): New.
3126 (decode_j_type_insn, decode_cj_type_insn): New.
3127 (decode_b_type_insn, decode_cb_type_insn): New.
3128 (riscv_insn::decode): Add support for jumps, branches, lr, and sc. New
3129 local xlen. Check xlen when decoding ambiguous compressed insns. In
3130 compressed decode, use is_c_lui_insn instead of is_lui_insn, and
3131 is_c_sw_insn instead of is_sw_insn.
3132 (riscv_next_pc, riscv_next_pc_atomic_sequence): New.
3133 (riscv_software_single_step): New.
3134 * riscv-tdep.h (riscv_software_single_step): Declare.
3135
411baa47
JW
3136 * riscv-tdep.c (riscv_isa_xlen): Drop static.
3137 * riscv-tdep.h (riscv_isa_xlen): Add extern declaration.
3138
9d4a934c
AB
31392018-08-08 Andrew Burgess <andrew.burgess@embecosm.com>
3140
3141 PR gdb/18050:
3142 * target.c (dispose_inferior): Don't dispose of inferiors that are
3143 already killed.
3144
ff36536c
SN
31452018-08-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
3146
3147 * remote.c (remote_target::download_tracepoint): Change char* to
3148 const char*.
3149
09ce46f2
SM
31502018-08-07 Simon Marchi <simon.marchi@polymtl.ca>
3151
3152 * target.h (target_options_to_string): Return an std::string.
3153 * target.c (str_comma_list_concat_elem): Return void, use
3154 std::string.
3155 (do_option): Likewise.
3156 (target_options_to_string): Return an std::string.
3157 * linux-nat.c (linux_nat_target::wait): Adjust.
3158 * target-debug.h (target_debug_print_options): Adjust.
3159
9c612964
TT
31602018-08-07 Tom Tromey <tom@tromey.com>
3161
3162 * Makefile.in (CPPFLAGS): New variable.
3163 (INTERNAL_CPPFLAGS): Use it.
3164
7d11235d
SM
31652018-08-07 Simon Marchi <simon.marchi@ericsson.com>
3166
3167 * NEWS: Mention the index cache.
3168
87d6a7aa
SM
31692018-08-07 Simon Marchi <simon.marchi@ericsson.com>
3170
3171 * common/pathstuff.h (get_standard_cache_dir): New.
3172 * common/pathstuff.c (get_standard_cache_dir): New.
3173 * build-id.h (build_id_to_string): New.
3174 * dwarf-index-common.h (INDEX4_SUFFIX, INDEX5_SUFFIX,
3175 DEBUG_STR_SUFFIX): Move to here.
3176 * dwarf-index-write.c (INDEX4_SUFFIX, INDEX5_SUFFIX,
3177 DEBUG_STR_SUFFIX): Move from there.
3178 (write_psymtabs_to_index): Make non-static, add basename
3179 parameter. Write to temporary files, rename when done.
3180 (save_gdb_index_command): Adjust call to
3181 write_psymtabs_to_index.
3182 * dwarf2read.h (dwarf2_per_objfile) <index_cache_res>: New
3183 field.
3184 * dwarf2read.c (dwz_file) <index_cache_res>: New field.
3185 (get_gdb_index_contents_from_cache): New.
3186 (get_gdb_index_contents_from_cache_dwz): New.
3187 (dwarf2_initialize_objfile): Read index from cache.
3188 (dwarf2_build_psymtabs): Save to index.
3189 * dwarf-index-cache.h: New file.
3190 * dwarf-index-cache.c: New file.
3191 * dwarf-index-write.h: New file.
3192
8a99096f
SM
31932018-08-07 Simon Marchi <simon.marchi@ericsson.com>
3194
3195 * gnulib/aclocal.m4: Re-generate.
3196 * gnulib/config.in: Re-generate.
3197 * gnulib/configure: Re-generate.
3198 * gnulib/import/Makefile.am: Re-generate.
3199 * gnulib/import/Makefile.in: Re-generate.
3200 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
3201 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
3202 * gnulib/import/m4/mkdir.m4: New file.
3203 * gnulib/import/mkdir.c: New file.
3204 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkdir
3205 module.
3206
5c831bb1
SM
32072018-08-07 Simon Marchi <simon.marchi@ericsson.com>
3208
3209 * Makefile.in (COMMON_SFILES): Add common/scoped_mmap.c.
3210 * common/scoped_mmap.c: New file.
3211 * common/scoped_mmap.h (destroy): New method.
3212 (~scoped_mmap, reset): Use destroy.
3213 (scoped_mmap): New move constructor.
3214 (mmap_file): New declaration.
3215 * unittests/scoped_mmap-selftests.c (test_normal,
3216 test_invalid_filename, run_tests): New functions.
3217 (_initialize_scoped_mmap_selftests): Register selftest.
3218
4485a1c1
SM
32192018-08-07 Simon Marchi <simon.marchi@ericsson.com>
3220
3221 * dwarf2read.c (read_gdb_index_from_section): Rename to...
3222 (read_gdb_index_from_buffer): ... this. Remove section
3223 parameter, add buffer parameter.
3224 (get_gdb_index_contents_ftype,
3225 get_gdb_index_contents_dwz_ftype): New typedefs.
3226 (dwarf2_read_gdb_index): Add callback parameters to get the
3227 index contents.
3228 (get_gdb_index_contents_from_section): New.
3229 (dwarf2_initialize_objfile): Update call to
3230 dwarf2_read_gdb_index.
3231
528e1572
SM
32322018-08-07 Simon Marchi <simon.marchi@ericsson.com>
3233
3234 * common/filestuff.h (gdb_fopen_cloexec): New overload.
3235 (gdb_open_cloexec): Likewise.
3236 * nat/linux-osdata.c (command_from_pid): Use string_printf.
3237 (commandline_from_pid): Likewise.
3238 (linux_xfer_osdata_threads): Likewise.
3239 (linux_xfer_osdata_fds): Likewise.
3240 * ada-lang.c (is_package_name): Likewise.
3241 * auxv.c (procfs_xfer_auxv): Likewise.
3242 * breakpoint.c (print_one_breakpoint_location): Use
3243 uiout::field_fmt.
3244 (print_one_catch_solib): Use string_printf.
3245 * coff-pe-read.c (add_pe_exported_sym): Likewise.
3246 (add_pe_forwarded_sym): Likewise.
3247 * dwarf2read.c (create_type_unit_group): Likewise.
3248 (build_error_marker_type): Likewise.
3249 * infcall.c (get_function_name): Likewise.
3250 * valprint.c (print_converted_chars_to_obstack): Likewise.
3251 * xtensa-tdep.c (xtensa_register_type): Likewise.
3252
a7f25a84
SM
32532018-08-06 Simon Marchi <simon.marchi@ericsson.com>
3254
3255 * remote.c (remote_target::download_tracepoint): Fix format
3256 string errors.
3257
296956be
PFC
32582018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3259
3260 * tracefile.c: Include common/byte-vector.h.
3261 (trace_save): Change type of buf to gdb::byte_vector. Initialize
3262 with trace_regblock_size if needed. Update uses of buf.
3263
a04b9d62
PFC
32642018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3265
3266 * tracepoint.h (collection_list) <m_regs_mask>: Change type to
3267 std::vector<unsigned char>.
3268 * tracepoint.c (collection_list::collection_list): Remove
3269 m_regs_mask initializer from initializer list. Resize
3270 m_regs_mask using the largest remote register number.
3271 (collection_list::add_remote_register): Remove size check on
3272 m_regs_mask. Use at to access element.
3273 (collection_list::stringify): Change type of temp_buf to
3274 gdb::char_vector. Update uses of temp_buf. Resize if needed to
3275 stringify the register mask. Use pack_hex_byte for the register
3276 mask.
3277
4277c4b8
PFC
32782018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3279
3280 * tracepoint.h (class collection_list) <add_register>: Remove.
3281 <add_remote_register, add_ax_registers, add_local_register>:
3282 Declare.
3283 <add_memrange>: Add scope parameter.
3284 * tracepoint.c (encode_actions_1): Likewise.
3285 (collection_list::add_register): Rename to ...
3286 (collection_list::add_remote_register): ... this. Update
3287 comment.
3288 (collection_list::add_ax_registers, add_local_register): New
3289 methods.
3290 (collection_list::add_memrange): Add scope parameter. Call
3291 add_local_register instead of add_register.
3292 (finalize_tracepoint_aexpr): New function.
3293 (collection_list::collect_symbol): Update calls to add_memrange.
3294 Call add_local_register instead of add_register. Call
3295 add_ax_registers. Call finalize_tracepoint_aexpr.
3296 (encode_actions_1): Get remote regnos for $reg action. Call
3297 add_remote_register, add_ax_registers, and add_local_register.
3298 Update call to add_memrange. Call finalize_tracepoint_aexpr.
3299 (validate_actionline): Call finalize_tracepoint_aexpr.
3300
3df3a985
PFC
33012018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3302
3303 * remote.c (remote_target::download_tracepoint): Remove BUF_SIZE.
3304 Replace array buf with gdb::char_vector buf, of size
3305 get_remote_packet_size (). Replace references to buf and
3306 BUF_SIZE to buf.data () and buf.size (). Replace strcpy, strcat
3307 and xsnprintf with snprintf. Raise errors if the buffer is too
3308 small.
3309
aa6f3694
PFC
33102018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3311
3312 * remote.c (remote_target::download_tracepoint): Fix the has_more
3313 predicate in the QTDP action list iteration.
3314
05abfc39
PFC
33152018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3316
3317 * remote.c (remote_target::download_tracepoint): Fix indentation
3318 in for block.
3319
821a2682
RO
33202018-08-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3321
3322 * proc-api.c (_initialize_proc_api): Remove c, unused.
3323 * procfs.c (procfs_init_inferior): Remove signals, unused.
3324 (procfs_target::make_corefile_notes): Remove old_chain, fpregs,
3325 unused.
3326
95347337
AB
33272018-08-06 Sergey Korolev <s.korolev@ndmsystems.com>
3328 Andrew Burgess <andrew.burgess@embecosm.com>
3329
3330 * linux-nat.c (linux_nat_target::follow_fork): Avoid using
3331 'W_STOPCODE (0)' as this could be ambiguous.
3332
425699f5
SDJ
33332018-08-03 Sergio Durigan Junior <sergiodj@redhat.com>
3334
3335 * ser-tcp.c (net_open): Fix thinko when deciding whether to
3336 disable TCP's Nagle algorithm (use "ai_protocol" instead of
3337 "ai_socktype").
3338
3e1d3d8c
TT
33392018-08-02 Tom Tromey <tom@tromey.com>
3340
3341 PR symtab/16842.
3342 * dwarf2read.c (read_func_scope): Set symtab on template parameter
3343 symbols.
3344 (process_structure_scope): Likewise.
3345
15843549
XR
33462018-08-02 Xavier Roirand <roirand@adacore.com>
3347
3348 PR gdb/22629:
3349 * darwin-nat.c (darwin_kill_inferior): Fix handling of
3350 kill inferior.
3351
b5bddbbb
TT
33522018-08-02 Tom Tromey <tom@tromey.com>
3353
3354 * darwin-nat.c (find_inferior_task_it, darwin_find_thread)
3355 (darwin_suspend_inferior, darwin_resume_inferior)
3356 (darwin_decode_notify_message, darwin_resume_inferior_threads)
3357 (darwin_check_new_threads): Check result of get_darwin_inferior.
3358
f61cfa07
JB
33592018-07-31 Joel Brobecker <brobecker@adacore.com>
3360
3361 GDB 8.1.1 released.
3362
5abe0f0c
JV
33632018-07-31 Jan Vrany <jan.vrany@fit.cvut.cz>
3364
3365 * varobj.c (varobj_get_path_expr_parent): Report an error if
3366 parent is a dynamic varobj.
3367
472fa5ee
SM
33682018-07-31 Simon Marchi <simon.marchi@ericsson.com>
3369
3370 * gnulib/aclocal.m4: Re-generate.
3371 * gnulib/config.in: Re-generate.
3372 * gnulib/configure: Re-generate.
3373 * gnulib/import/Makefile.in: Re-generate.
3374 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
3375 * gnulib/import/m4/onceonly.m4: Re-generate.
3376
1c28969e
SM
33772018-07-31 Simon Marchi <simon.marchi@ericsson.com>
3378
3379 * target-descriptions.c (struct xml_test_tdesc): New.
3380 (xml_tdesc): Change type to std::vector<xml_test_tdesc>.
3381 (record_xml_tdesc): Update.
3382 (maintenance_check_xml_descriptions): Update.
3383 * target-descriptions.h (record_xml_tdesc): Update comment.
3384
c8f2dc0d
AB
33852018-07-30 Andrew Burgess <andrew.burgess@embecosm.com>
3386
3387 * eval.c (evaluate_subexp_for_sizeof): Check for array type before
3388 checking array bounds are defined.
3389
463c08d1
TT
33902018-07-30 Tom Tromey <tom@tromey.com>
3391
3392 * nat/linux-osdata.c (pid_pgid_entry::operator<): Fix
3393 irreflexivity violation.
3394
dba7455e
TT
33952018-07-30 Tom Tromey <tom@tromey.com>
3396
3397 * cli/cli-decode.c (lookup_cmd): Remove lint code.
3398 * value.c (unpack_long): Remove lint code.
3399 * valops.c (value_ind): Remove lint code.
3400 * valarith.c (value_x_binop, value_x_unop, value_equal)
3401 (value_pos): Remove lint code.
3402
37cc0cae
TV
34032018-07-28 Tom de Vries <tdevries@suse.de>
3404
3405 * eval.c (evaluate_subexp_for_sizeof): Interpret size of dynamic type
3406 with undefined upper bound as <optimized out>.
3407
129eb0f1
SDJ
34082018-07-27 Sergio Durigan Junior <sergiodj@redhat.com>
3409
3410 * gcore.in: Rename variable "name" to "prefix". Expand
3411 "usage" text.
3412
6af79d7b
JT
34132018-07-14 Jon Turney <jon.turney@dronecode.org.uk>
3414
3415 * windows-nat.c (windows_nat_target::create_inferior): Update to
3416 call close() in global namespace.
3417
79748972
TT
34182018-07-26 Tom Tromey <tom@tromey.com>
3419
3420 * dwarf-index-write.c (add_address_entry): Don't add objfile
3421 offsets.
3422 * dbxread.c (find_stab_function): Rename from
3423 find_stab_function_addr. Return a bound_minimal_symbol.
3424 (read_dbx_symtab): Use raw_text_low, raw_text_high.
3425 Don't add objfile offsets.
3426 (end_psymtab): Use raw_text_low, raw_text_high,
3427 MSYMBOL_VALUE_RAW_ADDRESS.
3428 (read_ofile_symtab): Update.
3429 (process_one_symbol): Update.
3430 * dwarf2read.c (create_addrmap_from_index): Don't add objfile
3431 offsets.
3432 (dw2_relocate): Remove.
3433 (dw2_find_pc_sect_symtab): Bias PC by the text offset before
3434 searching addrmap.
3435 (dwarf2_gdb_index_functions, dwarf2_debug_names_functions):
3436 Update.
3437 (process_psymtab_comp_unit_reader, add_partial_symbol)
3438 (add_partial_subprogram, dwarf2_ranges_read): Update.
3439 (load_partial_dies): Update.
3440 (add_address_entry): Don't add objfile offsets.
3441 (dwarf2_build_include_psymtabs): Update.
3442 (create_addrmap_from_aranges): Don't add objfile offsets.
3443 (dw2_find_pc_sect_compunit_symtab): Update.
3444 * mdebugread.c (parse_symbol): Don't add objfile offsets.
3445 (parse_lines): Remove 'pst' parameter, replace with 'textlow'.
3446 Update.
3447 (parse_partial_symbols): Don't add objfile offsets. Use
3448 raw_text_low, raw_text_high. Update.
3449 (handle_psymbol_enumerators, psymtab_to_symtab_1): Update.
3450 * objfiles.c (objfile_relocate1): Don't relocate psymtabs_addrmap
3451 or call 'relocate' quick function. Clear psymbol_map.
3452 * psympriv.h (struct partial_symbol) <address>: Add section
3453 offset.
3454 <set_unrelocated_address>: Rename from set_address.
3455 <raw_text_low, raw_text_high>: New methods.
3456 <text_low, text_high>: Add objfile parameter.
3457 (add_psymbol_to_bcache): Add 'section' parameter. Call
3458 set_unrelocated_address.
3459 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
3460 (find_pc_psymbol): Update.
3461 (fixup_psymbol_section, relocate_psymtabs): Remove.
3462 (dump_psymtab, psym_functions): Update.
3463 (add_psymbol_to_bcache, add_psymbol_to_list): Add 'section'
3464 parameter.
3465 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
3466 (start_psymtab_common): Update.
3467 * symfile-debug.c (debug_qf_relocate): Remove.
3468 (debug_sym_quick_functions): Update.
3469 * symfile.h (struct quick_symbol_functions) <relocate>: Remove.
3470 * xcoffread.c (scan_xcoff_symtab): Don't add objfile offsets.
3471 Update.
3472
52948f01
TT
34732018-07-26 Tom Tromey <tromey@redhat.com>
3474
3475 * dbxread.c (end_psymtab): Use text_high_valid and
3476 text_low_valid.
3477 * mdebugread.c (parse_partial_symbols): Use text_low_valid.
3478 (psymtab_to_symtab_1): Use text_high_valid and text_low_valid.
3479 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
3480 Update comment.
3481 <text_low_valid, text_high_valid>: New fields.
3482 <set_text_low, set_text_high>: Update.
3483 * xcoffread.c (scan_xcoff_symtab): Use text_low_valid.
3484
4ae976d1
TT
34852018-07-26 Tom Tromey <tom@tromey.com>
3486
3487 * dbxread.c (read_dbx_symtab, end_psymtab, read_ofile_symtab):
3488 Update.
3489 * dwarf2read.c (dwarf2_create_include_psymtab): Don't initialize
3490 textlow and texthigh fields.
3491 (process_psymtab_comp_unit_reader, dwarf2_build_include_psymtabs):
3492 Update.
3493 * mdebugread.c (parse_lines, parse_partial_symbols)
3494 (psymtab_to_symtab_1): Update.
3495 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
3496 Rename fields. Update comment. Now private.
3497 <text_low, text_high, set_text_low, set_text_high>: New methods.
3498 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
3499 (find_pc_sect_psymbol, relocate_psymtabs, dump_psymtab)
3500 (start_psymtab_common, maintenance_info_psymtabs)
3501 (maintenance_check_psymtabs): Update.
3502 * xcoffread.c (xcoff_end_psymtab): Don't initialize textlow and
3503 texthigh fields.
3504 (scan_xcoff_symtab): Update.
3505
02e9e7f7
TT
35062018-07-26 Tom Tromey <tromey@redhat.com>
3507
3508 * psympriv.h (struct partial_symbol) <unrelocated_address,
3509 address, set_address>: New methods.
3510 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymbol)
3511 (fixup_psymbol_section, relocate_psymtabs): Update.
3512 (print_partial_symbols): Add 'objfile' parameter. Update.
3513 (dump_psymtab, add_psymbol_to_bcache, psym_fill_psymbol_map):
3514 Update.
3515
8a6d4234
TT
35162018-07-26 Tom Tromey <tom@tromey.com>
3517
3518 * dwarf-index-write.c (write_psymbols, debug_names::insert)
3519 (debug_names::write_psymbols): Update.
3520 * psympriv.h (struct partial_symbol): Derive from
3521 general_symbol_info.
3522 <obj_section>: New method.
3523 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.n
3524 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
3525 (find_pc_sect_psymbol, fixup_psymbol_section)
3526 (match_partial_symbol, lookup_partial_symbol, relocate_psymtabs)
3527 (print_partial_symbols, recursively_search_psymtabs)
3528 (compare_psymbols, psymbol_hash, psymbol_compare)
3529 (add_psymbol_to_bcache, maintenance_check_psymtabs)
3530 (psymbol_name_matches, psym_fill_psymbol_map): Update.
3531
08994e1d
TT
35322018-07-26 Tom Tromey <tromey@redhat.com>
3533
3534 * dbxread.c (end_psymtab): Remove dead code.
3535
3c3bb058
AB
35362018-07-26 Andrew Burgess <andrew.burgess@embecosm.com>
3537
3538 * dwarf2-frame-tailcall.c (tailcall_frame_sniffer): Exit early if
3539 DWARF unwinders are disabled.
3540 * dwarf2-frame.c: Add dwarf2read.h include.
3541 (dwarf2_frame_sniffer): Exit early if DWARF unwinders are
3542 disabled.
3543 (dwarf2_frame_unwinders_enabled_p): Define.
3544 (show_dwarf_unwinders_enabled_p): New function.
3545 (_initialize_dwarf2_frame): Register switch to control DWARF
3546 unwinder use.
3547 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Declare.
3548 * dwarf2read.c (set_dwarf_cmdlist): Remove static keyword.
3549 (show_dwarf_cmdlist): Remove static keyword.
3550 * dwarf2read.h (set_dwarf_cmdlist): Declare.
3551 (show_dwarf_cmdlist): Declare.
3552 * NEWS: Document new feature.
3553
9e7f3bbb
TV
35542018-07-26 Tom de Vries <tdevries@suse.de>
3555
3556 PR breakpoints/23366
3557 * infcmd.c (info_program_command): Handle ptid == minus_one_ptid.
3558
506f5c41
TV
35592018-07-26 Tom de Vries <tdevries@suse.de>
3560
3561 * dwarf2read.c (read_subrange_type): Warn if DW_AT_upper_bound or
3562 DW_AT_count can't be translated to a dynamic prop.
3563
16f808ec
TV
35642018-07-25 Tom de Vries <tdevries@suse.de>
3565
3566 * dwarf2loc.c (dwarf2_locexpr_baton_eval): Wrap ctx.eval call in
3567 try/catch.
3568
d7154a8d
JV
35692018-07-25 Jan Vrany <jan.vrany@fit.cvut.cz>
3570
3571 * breakpoint.c (enable_disable_bp_num_loc): Notify observers.
3572
a45389f6
JB
35732018-07-25 Joel Brobecker <brobecker@adacore.com>
3574
3575 * MAINTAINERS (Global Maintainers): Add Tom Tromey.
3576
380618d6
KS
35772018-07-24 Keith Seitz <keiths@redhat.comt
3578
3579 PR symtab/23010
3580 * dwarf2read.c (dw2_add_symbol_to_list): New function.
3581 (fixup_go_packaging, new_symbol): Use dw2_add_symbol_to_list
3582 instead of add_symbol_to_list.
3583 (read_file_scope): Call prepare_one_comp_unit before reading
3584 any other DIEs.
3585
4b17aefe
SM
35862018-07-24 Simon Marchi <simon.marchi@ericsson.com>
3587
3588 * common/scoped_mmap.h (class scoped_mmap): Fix indentation.
3589
29d17e47
TT
35902018-07-24 Tom Tromey <tom@tromey.com>
3591
3592 * utils.c (malloc, realloc, free): Don't declare.
3593 * configure, config.in: Rebuild.
3594 * configure.ac: Don't check for declarations of free, malloc, or
3595 realloc.
3596
cf4088a9
SM
35972018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3598
3599 * aarch64-linux-nat.c
3600 (aarch64_linux_nat_target::stopped_data_address): Remove unused
3601 variable.
3602 * arm-linux-nat.c (fetch_regs): Likewise.
3603 (store_regs): Likewise.
3604 (fetch_vfp_regs): Likewise.
3605 (store_vfp_regs): Likewise.
3606 (arm_linux_nat_target::insert_hw_breakpoint): Likewise.
3607 (arm_linux_nat_target::remove_hw_breakpoint): Likewise.
3608 (arm_linux_nat_target::insert_watchpoint): Likewise.
3609 (arm_linux_nat_target::remove_watchpoint): Likewise.
3610 * mips-linux-nat.c (mips_linux_nat_target::insert_watchpoint):
3611 Likewise.
3612 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs):
3613 Likewise.
3614 * ppc-linux-nat.c (fetch_register): Likewise.
3615 (fetch_all_gp_regs): Likewise.
3616 (fetch_ppc_registers): Likewise.
3617 (store_all_gp_regs): Likewise.
3618 (store_ppc_registers): Likewise.
3619 (hwdebug_insert_point): Likewise.
3620 (can_use_watchpoint_cond_accel): Likewise.
3621 * remote-sim.c (gdb_os_write_stdout): Likewise.
3622
a0de763e
TT
36232018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3624 Tom Tromey <tom@tromey.com>
3625
3626 * warning.m4 (AM_GDB_WARNINGS): Add -Wunused-variable and special
3627 test for it.
3628 * configure: Rebuild.
3629
3b20124b
TT
36302018-07-22 Tom Tromey <tom@tromey.com>
3631
3632 * regformats/regdat.sh: Define xmltarget_${name} inside
3633 #ifndef IN_PROCESS_AGENT.
3634
8c8807f4
TT
36352018-07-22 Tom Tromey <tom@tromey.com>
3636
3637 * value.c (value_fetch_lazy_bitfield): Remove unused variable.
3638
c486b610
TT
36392018-07-22 Tom Tromey <tom@tromey.com>
3640
3641 * symfile.c (reread_symbols): Notify iter, not objfile.
3642
494f80a9
TT
36432018-07-22 Tom Tromey <tom@tromey.com>
3644
3645 * ravenscar-thread.c (ravenscar_thread_target::store_registers):
3646 Use arch_ops.
3647 (ravenscar_thread_target::prepare_to_store): Likewise.
3648
c51f6a54
TT
36492018-07-22 Tom Tromey <tom@tromey.com>
3650
3651 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Remove
3652 unused variable. Call value_fetch_lazy when needed.
3653 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
3654 Remove unused variable. Call value_fetch_lazy when needed.
3655
374fd1fd
TT
36562018-07-22 Tom Tromey <tom@tromey.com>
3657
3658 * m32c-tdep.c (mark_dma): Return void.
3659 (make_regs): Remove unused declarations.
3660
d5e9a511
TT
36612018-07-22 Tom Tromey <tom@tromey.com>
3662
3663 * guile/scm-cmd.c (gdbscm_dont_repeat): Call
3664 cmdscm_get_valid_command_smob_arg_unsafe for effect.
3665 * guile/scm-block.c (gdbscm_make_block_syms_iter): Call
3666 bkscm_get_valid_block_smob_arg_unsafe for effect.
3667
996d693a
TT
36682018-07-22 Tom Tromey <tom@tromey.com>
3669
3670 * bfin-tdep.c (bfin_push_dummy_call): Use arg_type, not
3671 value_type.
3672
15766370
TT
36732018-07-22 Tom Tromey <tom@tromey.com>
3674
3675 * windows-nat.c (saved_context): Conditionally define.
3676 * remote.c (remote_target::remote_btrace_maybe_reopen):
3677 Conditionally declare "warned".
3678 * inflow.c (sigquit_ours): Conditionally define.
3679 (new_tty): Move "tty" declaration inside #if.
3680 * guile/guile.c (guile_datadir): Conditionally define.
3681 * charset.c (set_be_le_names): Move some declarations inside #if.
3682 * btrace.c (parse_xml_btrace): Move "errcode" declaration inside
3683 #if.
3684 (parse_xml_btrace_conf): Likewise.
3685
f4e80e13
TT
36862018-07-22 Tom Tromey <tom@tromey.com>
3687
3688 * spu-tdep.c (spu_get_overlay_table): Remove unused variable.
3689
8d49165d
TT
36902018-07-22 Tom Tromey <tom@tromey.com>
3691
3692 * guile/scm-value.c (gdbscm_value_call): Remove unused variables.
3693 * guile/scm-math.c (vlscm_unop_gdbthrow, vlscm_binop_gdbthrow)
3694 (vlscm_convert_typed_value_from_scheme): Remove unused variable.
3695 * buildsym-legacy.c (get_macro_table): Remove unused variable.
3696 * stack.c (frame_apply_level_command): Remove unused variable.
3697 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused variable.
3698 * sparc64-tdep.c (adi_examine_command): Remove unused variable.
3699 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Remove
3700 unused variable.
3701 * nios2-tdep.c (nios2_push_dummy_call): Remove unused variable.
3702 * mep-tdep.c (mep_push_dummy_call): Remove unused variable.
3703 * ada-lang.c (ada_lookup_symbol_list_worker): Remove unused
3704 variable.
3705 * amd64-tdep.c (amd64_supply_xsave): Remove unused variable.
3706 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Remove unused
3707 variable.
3708 * breakpoint.c (check_no_tracepoint_commands, update_watchpoint):
3709 Remove unused variable.
3710 * cli/cli-script.c (recurse_read_control_structure): Remove unused
3711 variable.
3712 * common/tdesc.c (print_xml_feature::visit): Remove unused
3713 variable.
3714 * compile/compile-object-load.c (store_regs): Remove unused
3715 variables.
3716 * complaints.c (clear_complaints): Remove unused variable.
3717 * corelow.c (core_target_open): Remove unused variable.
3718 * fbsd-tdep.c (fbsd_core_info_proc_status): Remove unused
3719 variable.
3720 * guile/scm-frame.c (gdbscm_frame_read_var): Remove unused
3721 variable.
3722 * guile/scm-symtab.c (stscm_print_sal_smob): Remove unused
3723 variable.
3724 * guile/scm-type.c (gdbscm_field_baseclass_p): Remove unused
3725 variable.
3726 * guile/scm-utils.c (gdbscm_parse_function_args): Remove unused
3727 variable.
3728 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Remove unused
3729 variable.
3730 * ia64-tdep.c (examine_prologue): Remove unused variable.
3731 * infcall.c (run_inferior_call): Remove unused variable.
3732 * inferior.c (exit_inferior): Remove unused variable.
3733 * infrun.c (infrun_thread_ptid_changed): Remove unused variable.
3734 * linespec.c (decode_line_2): Remove unused variable.
3735 * linux-nat.c (super_close): Remove.
3736 * linux-tdep.c (linux_info_proc): Remove unused variable.
3737 * mi/mi-main.c (mi_execute_command): Remove unused variable.
3738 * microblaze-linux-tdep.c (microblaze_linux_sigtramp_cache):
3739 Remove unused variable.
3740 * parse.c (find_minsym_type_and_address): Remove unused variable.
3741 * printcmd.c (info_symbol_command, printf_floating): Remove unused
3742 variable.
3743 * python/py-breakpoint.c (bppy_set_commands): Remove unused
3744 variable.
3745 * python/py-unwind.c (unwind_infopy_dealloc): Remove unused
3746 variables.
3747 * record-btrace.c (record_btrace_target::store_registers): Remove
3748 unused variable.
3749 (cmd_show_record_btrace_cpu): Remove unused variable.
3750 * riscv-tdep.c (riscv_register_reggroup_p)
3751 (riscv_push_dummy_call, riscv_return_value): Remove unused
3752 variable.
3753 * rust-exp.y (literal): Remove unused variable.
3754 * rust-lang.c (rust_evaluate_subexp) <OP_RUST_ARARAY>: Remove
3755 unused variable.
3756 <STRUCTOP_ANONYMOUS>: Likewise.
3757 * s390-linux-tdep.c (s390_linux_init_abi_31)
3758 (s390_linux_init_abi_64): Remove unused variable.
3759 * ser-ming2.c (ser_windows_read_prim, pipe_select_thread)
3760 (file_select_thread, net_windows_open, _initialize_ser_windows):
3761 Remove unused variables.
3762 * symtab.c (find_pc_sect_line): Remove unused variable.
3763 * target-memory.c (compute_garbled_blocks): Remove unused
3764 variable.
3765 (target_write_memory_blocks): Remove unused variable.
3766 * target.c (target_stack::unpush): Remove unused variables.
3767 * tracepoint.c (start_tracing, all_tracepoint_actions)
3768 (merge_uploaded_trace_state_variables)
3769 (print_one_static_tracepoint_marker): Remove unused variable.
3770 * unittests/basic_string_view/element_access/char/1.cc (test01):
3771 Remove unused variable.
3772 * windows-nat.c (windows_continue, windows_add_all_dlls)
3773 (do_initial_windows_stuff, windows_nat_target::create_inferior):
3774 Remove unused variables.
3775
17cbafdb
SM
37762018-07-21 Simon Marchi <simon.marchi@polymtl.ca>
3777
3778 * arm-tdep.c (arm_gdbarch_init): Declare attr_arch and
3779 attr_profile in HAVE_ELF.
3780 * rs6000-tdep.c (bfd_uses_spe_extensions): Declare vector_abi in
3781 HAVE_ELF.
3782
0ee6c332
SM
37832018-07-20 Simon Marchi <simon.marchi@polymtl.ca>
3784
3785 * frame.c (frame_register_unwind): Change parameter name.
3786 (frame_unwind_register): Likewise.
3787 (frame_unwind_register_value): Likewise.
3788 (frame_unwind_register_signed): Likewise.
3789 (frame_unwind_register_unsigned): Likewise.
3790 * frame.h (frame_register_unwind): Likewise.
3791 (frame_unwind_register): Likewise.
3792 (frame_unwind_register_value): Likewise.
3793 (frame_unwind_register_signed): Likewise.
3794 (frame_unwind_register_unsigned): Likewise.
3795 (frame_unwind_arch): Likewise.
3796
e2e31f10
MR
37972018-07-20 Maciej W. Rozycki <macro@mips.com>
3798
3799 * MAINTAINERS: Update my e-mail address, downgrade to MIPS I-IV
3800 ISA maintenance.
3801
2d389915
MR
38022018-07-20 Maciej W. Rozycki <macro@mips.com>
3803
3804 * mips-linux-nat.c (mips_linux_nat_target::read_description):
3805 Call `get_ptrace_pid' rather than extracting the ptrace PID by
3806 hand.
3807
cbb09508
KS
38082018-07-20 Keith Seitz <keiths@redhat.com>
3809
3810 * buildsym.h (struct buildsym_compunit) <m_objfile, m_subfiles,
3811 m_main_subfile, m_comp_dir, m_producer, m_debugformat,
3812 m_compunit_symtab, m_language>: Add "m_" prefix.
3813 Update all uses.
3814 * buildsym.c: Update all uses.
3815
bfe2e011
TT
38162018-07-20 Tom Tromey <tom@tromey.com>
3817
3818 * buildsym-legacy.h (record_line): Don't use record_line_ftype.
3819 * buildsym.h (record_line_ftype): Remove typedef.
3820
0e6f3061
TT
38212018-07-20 Tom Tromey <tom@tromey.com>
3822
3823 * buildsym-legacy.h (augment_type_symtab): Don't declare.
3824 (end_expandable_symtab): Likewise.
3825 (end_symtab_get_static_block): Likewise.
3826 (end_symtab_from_static_block): Likewise.
3827 * buildsym-legacy.c (augment_type_symtab): Remove.
3828 (end_expandable_symtab): Remove.
3829 (end_symtab_get_static_block): Remove.
3830 (end_symtab_from_static_block): Remove.
3831
804d2729
TT
38322018-07-20 Tom Tromey <tom@tromey.com>
3833
3834 * dwarf2read.c: Include buildsym.h.
3835 (struct dwarf2_cu) <builder>: New method.
3836 (fixup_go_packaging): Update.
3837 (process_full_comp_unit, process_full_type_unit): Update. Don't
3838 use scoped_free_pendings.
3839 (using_directives): Add "cu" parameter, remove "language".
3840 (read_import_statement, setup_type_unit_groups, )
3841 (read_func_scope, read_lexical_block_scope)
3842 (dwarf2_record_block_ranges, read_namespace): Update.
3843 (lnp_state_machine::lnp_state_machine): Add cu parameter.
3844 (lnp_state_machine::handle_end_sequence): Update.
3845 (class lnp_state_machine) <m_cu>: New member.
3846 <m_record_line_callback>: Remove.
3847 <m_currently_recording_lines>: New member.
3848 (lnp_state_machine::handle_set_file): Update.
3849 (noop_record_line): Remove.
3850 (dwarf_record_line_p): Add cu parameter.
3851 (dwarf_record_line_1, dwarf_finish_line): Likewise.
3852 (lnp_state_machine::record_line)
3853 (lnp_state_machine::lnp_state_machine)
3854 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
3855 (dwarf_decode_lines): Update.
3856 (dwarf2_start_subfile): Add cu parameter.
3857 (dwarf2_start_symtab, new_symbol): Update.
3858 (macro_start_file, dwarf_decode_macro_bytes): Add cu parameter.
3859 Remove dwarf2_per_objfile parameter.
3860 (dwarf_decode_macros): Update.
3861
80e649fc
TT
38622018-07-20 Tom Tromey <tom@tromey.com>
3863
3864 * stabsread.c (define_symbol): Update.
3865 * buildsym-legacy.h (get_buildsym_compunit): Declare.
3866 * dwarf2read.c (new_symbol): Update.
3867 * cp-support.h (cp_scan_for_anonymous_namespaces): Update.
3868 * cp-namespace.c: Include buildsym.h.
3869 (cp_scan_for_anonymous_namespaces): Add "compunit" parameter.
3870 * buildsym-legacy.c (get_buildsym_compunit): New function.
3871
0baae8db
TT
38722018-07-20 Tom Tromey <tom@tromey.com>
3873
3874 * xcoffread.c: Include buildsym-legacy.h.
3875 * windows-nat.c: Include buildsym-legacy.h.
3876 * stabsread.c: Include buildsym-legacy.h.
3877 * mdebugread.c: Include buildsym-legacy.h.
3878 * buildsym-legacy.h: New file.
3879 * buildsym-legacy.c: New file, from buildsym.c.
3880 * go32-nat.c: Include buildsym-legacy.h.
3881 * dwarf2read.c: Include buildsym-legacy.h.
3882 * dbxread.c: Include buildsym-legacy.h.
3883 * cp-namespace.c: Include buildsym-legacy.h.
3884 * coffread.c: Include buildsym-legacy.h.
3885 * buildsym.h: Move some contents to buildsym-legacy.h.
3886 * buildsym.c: Include buildsym-legacy.h. Move many functions to
3887 buildsym-legacy.c.
3888 * Makefile.in (HFILES_NO_SRCDIR): Add buildsym-legacy.h.
3889
ab209f6f
TT
38902018-07-20 Tom Tromey <tom@tromey.com>
3891
3892 * buildsym.h (struct buildsym_compunit): Move from buildsym.c.
3893 * buildsym.c (struct buildsym_compunit): Move to buildsym.h.
3894 (buildsym_compunit::buildsym_compunit)
3895 (buildsym_compunit::~buildsym_compunit)
3896 (buildsym_compunit::get_macro_table): Define.
3897
74c72eac
TT
38982018-07-20 Tom Tromey <tom@tromey.com>
3899
3900 * buildsym.c (reset_symtab_globals): Remove.
3901 (buildsym_compunit::end_symtab_from_static_block): Update.
3902 (buildsym_compunit::augment_type_symtab): Update.
3903 (end_symtab_from_static_block): Call free_buildsym_compunit.
3904 (augment_type_symtab, end_symtab, end_expandable_symtab):
3905 Likewise.
3906
da6580e5
TT
39072018-07-20 Tom Tromey <tom@tromey.com>
3908
3909 * arch-utils.c: Do not include buildsym.h.
3910 * mipsread.c: Do not include buildsym.h.
3911 * machoread.c: Do not include buildsym.h.
3912 * elfread.c: Do not include buildsym.h.
3913
4a2125f5
TT
39142018-07-20 Tom Tromey <tom@tromey.com>
3915
3916 * buildsym.c (buildsym_compunit::buildsym_compunit): Do more
3917 initialization.
3918 (buildsym_compunit): Add new constructor.
3919 (struct buildsym_compunit) <get_last_source_file, finish_block,
3920 record_block_range, start_subfile, patch_subfile_names,
3921 push_subfile, pop_subfile, record_line, get_compunit_symtab,
3922 set_last_source_start_addr, get_last_source_start_addr,
3923 get_local_using_directives, set_local_using_directives,
3924 get_global_using_directives, outermost_context_p,
3925 get_current_context_stack, get_context_stack_depth,
3926 get_current_subfile, get_local_symbols, get_file_symbols,
3927 get_global_symbols, record_debugformat, record_producer,
3928 push_context, pop_context, end_symtab_get_static_block,
3929 end_symtab_from_static_block, end_symtab, end_expandable_symtab>:
3930 New public methods.
3931 <record_pending_block, finish_block_internal, make_blockvector,
3932 watch_main_source_file_lossage, end_symtab_with_blockvector>: New
3933 private methods.
3934 Update all users.
3935
39362018-05-22 Tom Tromey <tom@tromey.com>
3937
3938 * buildsym.c (record_pending_block): Move earlier. Remove objfile
3939 parameter.
3940 (finish_block_internal): Update.
3941
6b213a47
TT
39422018-07-20 Tom Tromey <tom@tromey.com>
3943
3944 * buildsym.c (record_pending_block): Move earlier. Remove objfile
3945 parameter.
3946 (finish_block_internal): Update.
3947
b80a981d
TT
39482018-07-20 Tom Tromey <tom@tromey.com>
3949
3950 * buildsym.h (EXTERN): Don't define or undef.
3951 * buildsym.c (EXTERN): Don't define.
3952
ddb70602
TT
39532018-07-20 Tom Tromey <tom@tromey.com>
3954
3955 * buildsym.c: Remove TODO comment.
3956
b37dd3bc
TT
39572018-07-20 Tom Tromey <tom@tromey.com>
3958
3959 * coffread.c (coff_symtab_read): Update.
3960 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
3961 (xcoff_new_init): Update.
3962 * mipsread.c (mipscoff_new_init): Update.
3963 * mdebugread.c (mdebug_build_psymtabs): Update.
3964 * elfread.c (elf_new_init): Update.
3965 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
3966 Update.
3967 * dbxread.c (dbx_new_init, dbx_psymtab_to_symtab_1)
3968 (coffstab_build_psymtabs, elfstab_build_psymtabs)
3969 (stabsect_build_psymtabs): Update.
3970 * buildsym.h (buildsym_init): Don't declare.
3971 * buildsym.c: Update comment.
3972 (prepare_for_building): Remove.
3973 (start_symtab, restart_symtab): Update.
3974 (reset_symtab_globals): Update comment.
3975 (buildsym_init): Remove.
3976
e148f09d
TT
39772018-07-20 Tom Tromey <tom@tromey.com>
3978
3979 * xcoffread.c (read_xcoff_symtab, process_xcoff_symbol): Update.
3980 * stabsread.c (patch_block_stabs, define_symbol, read_type)
3981 (read_enum_type, common_block_start, common_block_end)
3982 (cleanup_undefined_types_1, finish_global_stabs): Update.
3983 * mdebugread.c (psymtab_to_symtab_1): Update.
3984 * dwarf2read.c (fixup_go_packaging, read_func_scope)
3985 (read_lexical_block_scope, new_symbol): Update.
3986 * dbxread.c (process_one_symbol): Update.
3987 * coffread.c (coff_symtab_read, process_coff_symbol)
3988 (coff_read_enum_type): Update.
3989 * buildsym.h (file_symbols, global_symbols, local_symbols): Don't
3990 declare.
3991 (get_local_symbols, get_file_symbols, get_global_symbols): New
3992 functions.
3993 * buildsym.c (~buildsym_compunit): Clean up m_file_symbols and
3994 m_global_symbols.
3995 <m_file_symbols, m_local_symbols, m_global_symbols>: New members.
3996 (~scoped_free_pendings): Update.
3997 (finish_block, prepare_for_building, reset_symtab_globals)
3998 (end_symtab_get_static_block, end_symtab_with_blockvector)
3999 (augment_type_symtab, push_context): Update.
4000 (get_local_symbols, get_file_symbols, get_global_symbols): New
4001 functions.
4002 (buildsym_init): Update.
4003
93b8bea4
TT
40042018-07-20 Tom Tromey <tom@tromey.com>
4005
4006 * dwarf2read.c (process_full_comp_unit): Do not set list_in_scope.
4007 (process_full_type_unit): Likewise.
4008 (dwarf2_start_symtab): Set list_in_scope.
4009
f62f6af5
TT
40102018-07-20 Tom Tromey <tom@tromey.com>
4011
4012 * dwarf2read.c (process_psymtab_comp_unit_reader)
4013 (build_type_psymtabs_reader): Do not set list_in_scope.
4014
1d376700
TT
40152018-07-20 Tom Tromey <tom@tromey.com>
4016
4017 * buildsym.c (free_pendings): Remove.
4018 (add_symbol_to_list, scoped_free_pendings)
4019 (finish_block_internal, buildsym_init): Update.
4020
c233e9c6
TT
40212018-07-20 Tom Tromey <tom@tromey.com>
4022
4023 * xcoffread.c (read_xcoff_symtab): Update.
4024 * dwarf2read.c (read_func_scope, read_lexical_block_scope):
4025 Update.
4026 * dbxread.c (process_one_symbol): Update.
4027 * coffread.c (coff_symtab_read): Update.
4028 * buildsym.h (finish_block): Update.
4029 * buildsym.c (finish_block): Remove "listhead" argument.
4030 (end_symtab_get_static_block): Update.
4031
5ac04550
TT
40322018-07-20 Tom Tromey <tom@tromey.com>
4033
4034 * buildsym.h (class scoped_free_pendings): Remove constructor.
4035 * buildsym.c (struct buildsym_compunit) <free_pending_blocks>: New
4036 method.
4037 <m_pending_block_obstack, m_pending_blocks>: New members.
4038 (pending_block_obstack, pending_blocks): Remove.
4039 (scoped_free_pendings::scoped_free_pendings): Default.
4040 (~scoped_free_pendings): Update.
4041 (free_pending_blocks): Remove.
4042 (finish_block_internal, record_pending_block, make_blockvector)
4043 (end_symtab_get_static_block, augment_type_symtab, push_context)
4044 (buildsym_init): Update.
4045
7ea05a7b
TT
40462018-07-20 Tom Tromey <tom@tromey.com>
4047
4048 * buildsym.c (struct buildsym_compunit) <m_pending_addrmap,
4049 m_pending_addrmap_obstack, m_pending_addrmap_interesting>: New
4050 members.
4051 (pending_addrmap, pending_addrmap_obstack)
4052 (pending_addrmap_interesting): Remove.
4053 (scoped_free_pendings, record_block_range, make_blockvector)
4054 (prepare_for_building, reset_symtab_globals, buildsym_init):
4055 Update.
4056
3c65e5b3
TT
40572018-07-20 Tom Tromey <tom@tromey.com>
4058
4059 * xcoffread.c (process_linenos): Update.
4060 * stabsread.c (define_symbol, read_type, read_enum_type): Update.
4061 * mdebugread.c (psymtab_to_symtab_1): Update.
4062 * dwarf2read.c (setup_type_unit_groups)
4063 (lnp_state_machine::handle_set_file, dwarf_record_line_p)
4064 (lnp_state_machine::record_line, dwarf_decode_lines): Update.
4065 * dbxread.c (process_one_symbol): Update.
4066 * coffread.c (coff_symtab_read, enter_linenos)
4067 (process_coff_symbol): Update.
4068 * buildsym.h (current_subfile): Don't declare.
4069 (get_current_subfile): Declare.
4070 * buildsym.c (struct buildsym_compunit) <m_current_subfile>: New
4071 member.
4072 (start_subfile, free_buildsym_compunit, push_subfile)
4073 (prepare_for_building, start_symtab): Update.
4074 (get_current_subfile): New function.
4075
a60f3166
TT
40762018-07-20 Tom Tromey <tom@tromey.com>
4077
4078 * coffread.c (coff_symtab_read): Update.
4079 * xcoffread.c (read_xcoff_symtab): Update.
4080 * dwarf2read.c (new_symbol): Update.
4081 (read_func_scope, read_lexical_block_scope): Update.
4082 * dbxread.c (process_one_symbol): Update.
4083 * buildsym.h (context_stack, context_stack_depth): Don't declare.
4084 (outermost_context_p): Remove macro.
4085 (outermost_context_p, get_current_context_stack)
4086 (get_context_stack_depth): Declare.
4087 (pop_context): Return struct context_stack.
4088 * buildsym.c (struct buildsym_compunit) <m_context_stack: New
4089 member.
4090 (context_stack_size): Remove.
4091 (INITIAL_CONTEXT_STACK_SIZE): Remove.
4092 (prepare_for_building, end_symtab_get_static_block)
4093 (augment_type_symtab, push_context): Update.
4094 (pop_context): Return struct context_stack.
4095 (outermost_context_p, get_current_context_stack)
4096 (get_context_stack_depth): New functions.
4097 (buildsym_init): Update.
4098
56ba65a0
TT
40992018-07-20 Tom Tromey <tom@tromey.com>
4100
4101 * rust-exp.y: Now a pure parser. Update all rules.
4102 (%union): Move earlier.
4103 (current_parser, work_obstack): Remove globals.
4104 (rust_parser, ~rust_parser): Update.
4105 (class rust_parser) <copy_name, concat3, crate_name, super_name,
4106 lex_character, lex_number, lex_string, lex_identifier,
4107 rust_lookup_type, convert_params_to_types, convert_ast_to_type,
4108 convert_name, convert_params_to_expression,
4109 convert_ast_to_expression, ast_basic_type, ast_operation,
4110 ast_compound_assignment, rust_op, ast_literal, ast_dliteral,
4111 ast_structop, ast_structop_anonymous, ast_unary, ast_cast,
4112 ast_call_ish, ast_path, ast_string, ast_struct, ast_range,
4113 ast_array_type, ast_slice_type, ast_reference_type,
4114 ast_pointer_type, ast_function_type, ast_tuple_type>: New methods.
4115 (rust_parse): Update.
4116 (rustyyerror, rustyylex): Add parser parameter.
4117 (rust_lex_test_one, rust_lex_int_test, rust_lex_exception_test)
4118 (rust_lex_stringish_test, rust_lex_test_sequence)
4119 (rust_lex_test_trailing_dot, rust_lex_test_completion)
4120 (rust_lex_test_push_back, rust_lex_tests): Update.
4121
4c693332
PA
41222018-07-19 Pedro Alves <palves@redhat.com>
4123
4124 * guile/guile-internal.h (gdbscm_scm_to_c_string): Now returns a
4125 gdb::unique_xmalloc_ptr.
4126 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x):
4127 Adjust to use dbscm_wrap and gdb::unique_xmalloc_ptr.
4128 * guile/scm-exception.c (gdbscm_exception_message_to_string): Use
4129 copy-initialization.
4130 * guile/scm-pretty-print.c (ppscm_print_children): Use
4131 gdb::unique_xmalloc_ptr instead of cleanups.
4132 (gdbscm_apply_val_pretty_printer): Remove cleanups.
4133 * guile/scm-string.c (gdbscm_scm_to_c_string): Now returns a
4134 gdb::unique_xmalloc_ptr.
4135 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
4136 Adjust to use gdb::unique_xmalloc_ptr.
4137 * guile/scm-utils.c (extract_arg): Adjust.
4138 * guile/scm-value.c (gdbscm_value_field): Adjust to use
4139 gdb::unique_xmalloc_ptr instead of a cleanup.
4140
4581dc82
TT
41412018-07-19 Tom Tromey <tom@tromey.com>
4142
4143 * utils.c (do_value_free_to_mark)
4144 (make_cleanup_value_free_to_mark): Remove.
4145 * utils.h (make_cleanup_value_free_to_mark): Remove.
4146
43cc6c3a
PA
41472018-07-19 Pedro Alves <palves@redhat.com>
4148
4149 * guile/guile-internal.h (gdbscm_wrap): Really make 'args' a
4150 forwarding reference.
4151
3a5f2a48
PA
41522018-07-18 Pedro Alves <palves@redhat.com>
4153
4154 * guile/guile.c (gdbscm_execute_gdb_command): Adjust to use
4155 gdbscm_wrap. Use gdb::unique_xmalloc_ptr<char> instead of a
4156 cleanup.
4157
557e56be
PA
41582018-07-18 Pedro Alves <palves@redhat.com>
4159
4160 * guile/guile-internal.h: Add comment about mixing GDB and Scheme
4161 exceptions.
4162 (GDBSCM_HANDLE_GDB_EXCEPTION_WITH_CLEANUPS): Delete.
4163 (gdbscm_wrap): New.
4164 * guile/scm-frame.c (gdbscm_frame_read_register): Use xfree
4165 directly instead of a cleanup.
4166 * guile/scm-math.c (vlscm_unop_gdbthrow): New, factored out from ...
4167 (vlscm_unop): ... this. Reimplement using gdbscm_wrap.
4168 (vlscm_binop_gdbthrow): New, factored out from ...
4169 (vlscm_binop): ... this. Reimplement using gdbscm_wrap.
4170 (vlscm_rich_compare): Use gdbscm_wrap.
4171 * guile/scm-symbol.c (gdbscm_lookup_symbol): Use xfree directly
4172 instead of a cleanup.
4173 (gdbscm_lookup_global_symbol): Use xfree directly instead of a
4174 cleanup.
4175 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
4176 Use xfree directly instead of a cleanup.
4177 * guile/scm-value.c (gdbscm_make_value, gdbscm_make_lazy_value):
4178 Adjust to use gdbscm_wrap and scoped_value_mark.
4179 (gdbscm_value_optimized_out_p): Adjust to use gdbscm_wrap.
4180 (gdbscm_value_address, gdbscm_value_dereference)
4181 (gdbscm_value_referenced_value): Adjust to use gdbscm_wrap and
4182 scoped_value_mark.
4183 (gdbscm_value_dynamic_type): Use scoped_value_mark.
4184 (vlscm_do_cast, gdbscm_value_field): Adjust to use gdbscm_wrap and
4185 scoped_value_mark.
4186 (gdbscm_value_subscript, gdbscm_value_call): Adjust to use
4187 gdbscm_wrap and scoped_value_mark.
4188 (gdbscm_value_to_string): Use xfree directly instead of a
4189 cleanup. Move 'buffer' unique_ptr to TRY scope.
4190 (gdbscm_value_to_lazy_string): Use xfree directly instead of a
4191 cleanup. Move 'buffer' unique_ptr to TRY scope. Use
4192 scoped_value_mark.
4193 (gdbscm_value_fetch_lazy_x): Use gdbscm_wrap.
4194 (gdbscm_parse_and_eval): Adjust to use gdbscm_wrap and
4195 scoped_value_mark.
4196 (gdbscm_history_ref, gdbscm_history_append_x): Adjust to use
4197 gdbscm_wrap.
4198
42dc7699
TV
41992018-07-18 Tom de Vries <tdevries@suse.de>
4200
4201 * findvar.c (default_read_var_value): Also resolve dynamic type for
4202 LOC_OPTIMIZED_OUT vars.
4203
6592ceed
MR
42042018-07-18 Maciej W. Rozycki <macro@mips.com>
4205
4206 * mips-tdep.c (micromips_next_pc): Add SYSCALL instruction
4207 decoding.
4208
c6c6149a
TT
42092018-07-17 Tom Tromey <tom@tromey.com>
4210
4211 * guile/scm-param.c (pascm_set_func, pascm_show_func)
4212 (compute_enum_list, pascm_set_param_value_x)
4213 (gdbscm_parameter_value): Update.
4214 * guile/guile-internal.h (gdbscm_scm_to_string): Update.
4215 (gdbscm_scm_to_host_string): Update.
4216 * guile/scm-math.c (vlscm_convert_typed_value_from_scheme):
4217 Update.
4218 * guile/scm-cmd.c (cmdscm_add_completion): Update.
4219 * guile/scm-pretty-print.c (ppscm_print_string_repr): Update.
4220 * guile/scm-string.c (gdbscm_scm_to_string): Return
4221 unique_xmalloc_ptr.
4222 (gdbscm_scm_to_host_string): Likewise.
4223
a1a31cb8
TT
42242018-07-17 Tom Tromey <tom@tromey.com>
4225
4226 * guile/guile.c (gdbscm_eval_from_control_command): Update.
4227 * guile/guile-internal.h (gdbscm_safe_eval_string): Update.
4228 * guile/scm-objfile.c (gdbscm_execute_objfile_script): Update.
4229 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Return
4230 unique_xmalloc_ptr.
4231
15bf3002
TT
42322018-07-17 Tom Tromey <tom@tromey.com>
4233
4234 * guile/scm-param.c (pascm_signal_setshow_error): Update.
4235 * guile/guile-internal.h (gdbscm_exception_message_to_string):
4236 Update.
4237 * guile/scm-cmd.c (cmdscm_function): Update.
4238 * guile/scm-pretty-print.c
4239 (ppscm_print_exception_unless_memory_error): Update.
4240 * guile/scm-exception.c (gdbscm_exception_message_to_string):
4241 Return unique_xmalloc_ptr.
4242
7eb1a66c
TT
42432018-07-17 Tom Tromey <tom@tromey.com>
4244
4245 * guile/scm-pretty-print.c (ppscm_make_pp_type_error_exception):
4246 Use string_printf.
4247
ce73f310
JW
42482018-07-17 Jim Wilson <jimw@sifive.com>
4249
27724bad
JW
4250 * riscv-tdep.c (riscv_has_feature): Delete comment that refers to
4251 set_gdbarch_decr_pc_after_break. Call riscv_read_misa_reg always.
4252 (riscv_gdbarch_init): Delete local has_compressed_isa. Delete now
4253 unecessary braces after EF_RISCV_RVC test. Delete call to
4254 set_gdbarch_decr_pc_after_break.
4255
ce73f310
JW
4256 * riscv-tdep.h (DECLARE_CSR): Use RISCV_FIRST_CSR_REGNUM instead of
4257 RISCV_LAST_FP_REGNUM + 1.
4258 (RSICV_CSR_LEGACY_MISA_REGNUM): Add RISCV_FIRST_CSR_REGNUM.
4259
056dec39
TT
42602018-07-17 Tom Tromey <tom@tromey.com>
4261
4262 * configure.ac: Remove --disable-gdbcli.
4263 * configure: Rebuild.
4264 * Makefile.in (SUBDIR_CLI_DEPS, SUBDIR_CLI_LDFLAGS)
4265 (SUBDIR_CLI_CFLAGS): Remove.
4266 (SFILES): Use SUBDIR_CLI_SRCS.
4267 (COMMON_OBS): Use SUBDIR_CLI_OBS.
4268
4735f0ed
TT
42692018-07-17 Tom Tromey <tom@tromey.com>
4270
4271 PR gdb/18624:
4272 * coffread.c (coff_symtab_read): Use scoped_free_pendings.
4273
117a0e99
JW
42742018-07-16 Jim Wilson <jimw@sifive.com>
4275
4276 * riscv-tdep.c (riscv_gdbarch_init): Call gdbarch_init_osabi.
4277
8a67aaa8
SM
42782018-07-16 Simon Marchi <simon.marchi@ericsson.com>
4279
4280 * ia64-libunwind-tdep.c (libunwind_frame_cache): Remove unused
4281 variable.
4282 (libunwind_frame_sniffer): Likewise.
4283 (libunwind_frame_prev_register): Likewise.
4284 (libunwind_sigtramp_frame_sniffer): Likewise.
4285 * ia64-tdep.c (ia64_access_reg): Likewise.
4286 (ia64_access_rse_reg): Likewise.
4287 (ia64_libunwind_sigtramp_frame_this_id): Likewise.
4288 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Likewise.
4289
ec74dcd8
SM
42902018-07-16 Simon Marchi <simon.marchi@ericsson.com>
4291
4292 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Add cast.
4293
a700e753
SM
42942018-07-16 Simon Marchi <simon.marchi@ericsson.com>
4295
4296 * remote-sim.c (gdbsim_target::close,
4297 gdbsim_target::mourn_inferior): Remove unused variables.
4298
8b411ff8
SM
42992018-07-16 Simon Marchi <simon.marchi@polymtl.ca>
4300
4301 * ia64-tdep.c (ktab_buf): New global.
4302 (getunwind_table): Return a gdb::optional<gdb::byte_vector>.
4303 (get_kernel_table): Adjust.
4304
edb0470b
TT
43052018-07-16 Tom Tromey <tom@tromey.com>
4306
4307 * xcoffread.c (read_xcoff_symtab): Use outermost_context_p.
4308 * dwarf2read.c (using_directives, new_symbol): Use
4309 outermost_context_p.
4310 * dbxread.c (process_one_symbol): Use outermost_context_p.
4311 * coffread.c (coff_symtab_read): Use outermost_context_p.
4312
6cccc9a8
TT
43132018-07-16 Tom Tromey <tom@tromey.com>
4314
4315 * dwarf2read.c (using_directives, read_func_scope)
4316 (read_lexical_block_scope): Update.
4317 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
4318 * buildsym.h (local_using_directives, global_using_directives):
4319 Don't declare.
4320 (get_local_using_directives, set_local_using_directives)
4321 (get_global_using_directives): Declare.
4322 * buildsym.c (struct buildsym_compunit) <m_local_using_directives,
4323 m_global_using_directives>: New members.
4324 (finish_block_internal, prepare_for_building)
4325 (reset_symtab_globals, end_symtab_get_static_block)
4326 (push_context): Update.
4327 (get_local_using_directives, set_local_using_directives)
4328 (get_global_using_directives): New functions.
4329 (buildsym_init): Update.
4330
652788a7
TT
43312018-07-16 Tom Tromey <tom@tromey.com>
4332
4333 * xcoffread.c (xcoff_initial_scan): Don't call
4334 free_pending_blocks.
4335 * dbxread.c (dbx_symfile_read): Don't call free_pending_blocks.
4336 * buildsym.h (class scoped_free_pendings): Add constructor.
4337 (free_pending_blocks): Don't declare.
4338 * buildsym.c (scoped_free_pendings::scoped_free_pendings): New.
4339 (free_pending_blocks): Now static.
4340
8419ee53
TT
43412018-07-16 Tom Tromey <tom@tromey.com>
4342
4343 * buildsym.h (push_subfile, pop_subfile): Update declarations.
4344 * buildsym.c (struct buildsym_compunit) <m_subfile_stack>: New
4345 member.
4346 (struct subfile_stack): Remove.
4347 (subfile_stack): Remove.
4348 (push_subfile, pop_subfile, buildsym_init): Update.
4349
ccdac490
TT
43502018-07-16 Tom Tromey <tom@tromey.com>
4351
4352 * buildsym.c (push_subfile): Use gdb_assert.
4353 (pop_subfile): Use gdb_assert.
4354
43130d6f
TT
43552018-07-16 Tom Tromey <tom@tromey.com>
4356
4357 * buildsym.h (merge_symbol_lists): Remove.
4358 * buildsym.c (merge_symbol_lists): Remove.
4359
77d6f1aa
TT
43602018-07-16 Tom Tromey <tom@tromey.com>
4361
4362 * stabsread.c (scan_file_globals): Update comment.
4363 * stabsread.h (scan_file_globals): Move from buildsym.h.
4364 * buildsym.h (scan_file_globals): Move to stabsread.h.
4365
2c722d18
TT
43662018-07-16 Tom Tromey <tom@tromey.com>
4367
4368 * xcoffread.c (xcoff_new_init): Update.
4369 * mipsread.c (mipscoff_new_init): Update.
4370 * mdebugread.c (mdebug_build_psymtabs): Update.
4371 * elfread.c (elf_new_init): Update.
4372 * dbxread.c (dbx_new_init, coffstab_build_psymtabs)
4373 (elfstab_build_psymtabs, stabsect_build_psymtabs): Update.
4374 * buildsym.h (buildsym_new_init): Don't declare.
4375 * buildsym.c (buildsym_new_init): Remove.
4376
5985ac61
TT
43772018-07-16 Tom Tromey <tom@tromey.com>
4378
4379 * stabsread.h (within_function): Move from buildsym.h.
4380 * stabsread.c (start_stabs): Clear within_function.
4381 * coffread.c (coff_start_symtab): Clear within_function.
4382 * buildsym.h (within_function): Move to stabsread.h.
4383 * buildsym.c (prepare_for_building): Update.
4384
6b84eeb2
TT
43852018-07-16 Tom Tromey <tom@tromey.com>
4386
4387 * stabsread.h (processing_gcc_compilation): Move from buildsym.h.
4388 * dwarf2read.c (dwarf2_start_symtab): Don't set
4389 processing_gcc_compilation.
4390 * buildsym.h (processing_gcc_compilation): Move to stabsread.h.
4391
2150c3ef
TT
43922018-07-16 Tom Tromey <tom@tromey.com>
4393
4394 * stabsread.h (HASHSIZE, hashname, symnum, next_symbol_text)
4395 (next_symbol_text_func): Move from buildsym.h.
4396 * stabsread.c (hashname): Move from buildsym.c.
4397 * buildsym.h (HASHSIZE, symnum, next_symbol_text)
4398 (next_symbol_text_func, hashname): Move to stabsread.h.
4399 * buildsym.c: Don't include bcache.h
4400 (hashname): Move to stasbread.c.
4401
0ec44fc0
TT
44022018-07-16 Tom Tromey <tom@tromey.com>
4403
4404 * buildsym.h (context_stack_size): Don't declare.
4405 * buildsym.c (context_stack_size): New global.
4406
81cc346d
TT
44072018-07-16 Tom Tromey <tom@tromey.com>
4408
4409 * dbxread.c (processing_acc_compilation): New global.
4410 * buildsym.h (processing_acc_compilation): Don't declare.
4411
2c99ee5c
TT
44122018-07-16 Tom Tromey <tom@tromey.com>
4413
4414 * xcoffread.c (aix_process_linenos, complete_symtab): Update.
4415 * dbxread.c (read_ofile_symtab): Update.
4416 * coffread.c (coff_start_symtab, coff_end_symtab): Update.
4417 * buildsym.h (last_source_start_addr): Remove.
4418 (set_last_source_start_addr, get_last_source_start_addr):
4419 Declare.
4420 * buildsym.c (buildsym_compunit::buildsym_compunit): Add last_addr
4421 parameter.
4422 (struct buildsym_compunit) <m_last_source_start_addr>: New
4423 member.
4424 (prepare_for_building): Remove start_addr parameter.
4425 (start_symtab, restart_symtab, end_symtab_get_static_block)
4426 (end_symtab_with_blockvector): Update.
4427 (set_last_source_start_addr, get_last_source_start_addr): New
4428 functions.
4429
530fedbc
TT
44302018-07-16 Tom Tromey <tom@tromey.com>
4431
4432 * buildsym.c (struct buildsym_compunit) <m_have_line_numbers>: New
4433 member.
4434 (have_line_numbers): Remove.
4435 (record_line, prepare_for_building, end_symtab_get_static_block)
4436 (augment_type_symtab): Update.
4437
6a976300
TT
44382018-07-16 Tom Tromey <tom@tromey.com>
4439
4440 * buildsym.c (~buildsym_compunit): Free the macro table.
4441 (struct buildsym_compunit) <get_macro_table, release_macros>: New
4442 methods.
4443 <m_pending_macros>: New member.
4444 (pending_macros): Remove.
4445 (~scoped_free_pendings, get_macro_table, prepare_for_building)
4446 (reset_symtab_globals, end_symtab_get_static_block)
4447 (end_symtab_with_blockvector, augment_type_symtab)
4448 (buildsym_init): Update.
4449
c0015d44
TT
44502018-07-16 Tom Tromey <tom@tromey.com>
4451
4452 * buildsym.c (buildsym_compunit::buildsym_compunit): Add name
4453 parameter.
4454 (buildsym_compunit::set_last_source_file): New method.
4455 <m_last_source_file>: New member.
4456 (prepare_for_building): Remove "name" parameter.
4457 (start_symtab, restart_symtab, reset_symtab_globals): Update.
4458 (last_source_file): Remove.
4459 (set_last_source_file, get_last_source_file): Update.
4460
e62cca7c
TT
44612018-07-16 Tom Tromey <tom@tromey.com>
4462
4463 * buildsym.c (prepare_for_building): Add assert.
4464
905eb0e2
TT
44652018-07-16 Tom Tromey <tom@tromey.com>
4466
4467 * buildsym.c (~buildsym_compunit): Update.
4468 (struct buildsym_compunit) <comp_unit>: Now a unique_xmalloc_ptr.
4469 (start_subfile, patch_subfile_names)
4470 (end_symtab_with_blockvector): Update.
4471
b248663f
TT
44722018-07-16 Tom Tromey <tom@tromey.com>
4473
4474 * buildsym.c (struct buildsym_compunit): Add constructor,
4475 destructor, initializers.
4476 (start_buildsym_compunit): Remove.
4477 (free_buildsym_compunit): Use "delete".
4478 (start_symtab, restart_symtab): Use "new".
4479
ff27d073
SM
44802018-07-13 Simon Marchi <simon.marchi@polymtl.ca>
4481
4482 * symfile.c (set_objfile_default_section_offset): Remove struct
4483 keyword.
4484
6a15ecf5
SH
44852018-07-14 Stafford Horne <shorne@gmail.com>
4486
4487 * (Responsible Maintainers): Add myself as or1k maintainer.
4488
027a4c30
TT
44892018-07-13 Tom Tromey <tom@tromey.com>
4490
4491 * symfile.c (set_objfile_default_section_offset): Use extra braces
4492 around initializer.
4493
5c1eda30
AA
44942018-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
4495
4496 * s390-tdep.c (s390_displaced_step_fixup): Adjust PC for a
4497 non-branching basr.
4498
bc7b042b
PW
44992018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4500
4501 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
4502 unittests/cli-utils-selftests.c
4503 * unittests/cli-utils-selftests.c: New file.
4504
a14c4daa
PW
45052018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4506
4507 * NEWS: Mention new commands. Mention change to 'thread apply'.
4508
1fe75df7
PW
45092018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4510
4511 * thread.c (thr_try_catch_cmd): New function.
4512 (thread_apply_all_command): Handle qcs flags.
4513 (thread_apply_command): Handle qcs flags.
4514 (taas_command): New function.
4515 (tfaas_command): New function.
4516 (_initialize_thread): Update to setup the new commands 'taas
4517 and 'tfaas'. Change doc string for 'thread apply'.
4518
6a70eb7d
PW
45192018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4520
4521 * stack.c: (trailing_outermost_frame): New function, mostly
4522 extracted from backtrace_command_1.
4523 (leading_innermost_frame): New function.
4524 (backtrace_command_1): Update to call trailing_outermost_frame.
4525 (frame_apply_command_count): New function.
4526 (frame_apply_level_command): New function.
4527 (frame_apply_all_command): New function.
4528 (frame_apply_command): New function.
4529 (faas_command): New function.
4530 (frame_cmd_list): New variable.
4531 (_initialize_stack): Update to setup the new commands 'frame apply'
4532 and 'faas'.
4533
529c08b2
PW
45342018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4535
4536 * cli-utils.c (number_or_range_parser::get_number): Only handle
4537 numbers or convenience var as numbers.
4538 (parse_flags): New function.
4539 (parse_flags_qcs): New function.
4540 (number_or_range_parser::finished): Ensure parsing end is detected
4541 before end of string.
4542 * cli-utils.h (parse_flags): New function.
4543 (parse_flags_qcs): New function.
4544 (number_or_range_parser): Remove m_finished bool.
4545 (number_or_range_parser::skip_range): Set m_in_range to false.
4546
64b58472
SDJ
45472018-07-12 Sergio Durigan Junior <sergiodj@redhat.com>
4548
4549 * ser-tcp.c (try_connect): Declare 'ioarg' as 'u_long' if building
4550 on Windows.
4551
c7ab0aef
SDJ
45522018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
4553 Jan Kratochvil <jan.kratochvil@redhat.com>
4554 Paul Fertser <fercerpav@gmail.com>
4555 Tsutomu Seki <sekiriki@gmail.com>
4556 Pedro Alves <palves@redhat.com>
4557
4558 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
4559 'unittests/parse-connection-spec-selftests.c'.
4560 (COMMON_SFILES): Add 'common/netstuff.c'.
4561 (HFILES_NO_SRCDIR): Add 'common/netstuff.h'.
4562 * NEWS (Changes since GDB 8.2): Mention IPv6 support.
4563 * common/netstuff.c: New file.
4564 * common/netstuff.h: New file.
4565 * ser-tcp.c: Include 'netstuff.h' and 'wspiapi.h'.
4566 (wait_for_connect): Update comment. New parameter
4567 'gdb::optional<int> sock' instead of 'struct serial *scb'.
4568 Use 'sock' directly instead of 'scb->fd'.
4569 (try_connect): New function, with code from 'net_open'.
4570 (net_open): Rewrite main loop to deal with multiple
4571 sockets/addresses. Handle IPv6-style hostnames; implement
4572 support for IPv6 connections.
4573 * unittests/parse-connection-spec-selftests.c: New file.
4574
4c7333b3
PA
45752018-07-11 Pedro Alves <palves@redhat.com>
4576
4577 PR gdb/23377
4578 * remote.c (remote_target::remote_detach_pid): Call
4579 set_current_process.
4580
a6f88f6e
PA
45812018-07-11 Pedro Alves <palves@redhat.com>
4582
4583 * h8300-tdep.c (h8300_gdbarch_init): Remove
4584 set_gdbarch_ecoff_reg_to_regnum calls.
4585
16ff70dd
SDJ
45862018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
4587
4588 PR c++/23373
4589 * c-typeprint.c (c_type_print_base_struct_union): Don't print
4590 offsets/sizes for static members of a class/struct.
4591
12863263
AH
45922018-07-11 Alan Hayward <alan.hayward@arm.com>
4593
4594 * target-descriptions.c (tdesc_register_bitsize): Rename.
4595 * target-descriptions.h (tdesc_register_bitsize): Likewise.
4596 * rs6000-tdep.c (rs6000_gdbarch_init): Use new name.
4597 * aarch64-tdep.c (aarch64_get_tdesc_vq): Convert size.
4598
1123588c
TT
45992018-07-10 Tom Tromey <tom@tromey.com>
4600
4601 * breakpoint.c (moribund_locations): Now static and a
4602 std::vector.
4603 (breakpoint_init_inferior, moribund_breakpoint_here_p)
4604 (build_bpstat_chain, update_global_location_list)
4605 (breakpoint_retire_moribund): Update.
4606 * breakpoint.h (bp_location_p): Remove typedef. Don't declare
4607 VEC.
4608
8c49aa89
AB
46092018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
4610
4611 * riscv-tdep.c (riscv_is_fp_regno_p): New function.
4612 (riscv_register_reggroup_p): Use new function, remove unneeded
4613 parenthesis.
4614 (riscv_push_dummy_call): Extend assert to compare against xlen or
4615 flen based on register type.
4616
42ecac17
AB
46172018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
4618
4619 * riscv-tdep.c (riscv_print_arg_location): Use TYPE_SAFE_NAME.
4620
055303e2
AB
46212018-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4622
4623 * remote.c (show_hardware_watchpoint_limit): New function.
4624 (show_hardware_watchpoint_length_limit): New function.
4625 (show_hardware_breakpoint_limit): New function.
4626 (_initialize_remote): Use add_setshow_zuinteger_unlimited_cmd
4627 where appropriate, update help text.
4628
8fd32c1c
TT
46292018-07-09 Tom Tromey <tom@tromey.com>
4630
4631 * Makefile.in (CDEPS): Don't mention XM_CDEPS.
4632 (CLIBS): Don't mention NAT_CLIBS.
4633
31278b51
TT
46342018-07-09 Tom Tromey <tom@tromey.com>
4635
4636 * Makefile.in (ADD_FILES, ADD_DEPS): Remove.
4637 (LIBGDB_OBS, clean mostlyclean): Update.
4638 (gdb$(EXEEXT), insight$(EXEEXT)): Update.
4639
e5fd1493
TT
46402018-07-09 Tom Tromey <tom@tromey.com>
4641
4642 * Makefile.in (%.c: %.y): Use ECHO_YACC.
4643 (%.c: %.l): Use ECHO_LEX. Just fail if flex not available.
4644 * silent-rules.mk (ECHO_YACC, ECHO_LEX): New variables.
4645
981e0c0c
TT
46462018-07-09 Tom Tromey <tom@tromey.com>
4647
4648 * Makefile.in (ALLDEPFILES): Remove exec.c.
4649 (COMMON_OBS): Remove exec.o.
4650 (COMMON_SFILES): Add exec.c.
4651
14ccceb2
TT
46522018-07-09 Tom Tromey <tom@tromey.com>
4653
4654 * Makefile.in (LINT, LINTFLAGS, LINTFILES, lint): Remove.
4655
5d3c3a68
TT
46562018-07-09 Tom Tromey <tom@tromey.com>
4657
4658 * Makefile.in (clean mostlyclean): Remove stamp-version.
4659 (version.c): Depend on stamp-version.
4660 (stamp-version): New rule, from version.c rule.
4661
1998086d
TT
46622018-07-09 Tom Tromey <tom@tromey.com>
4663
4664 * Makefile.in (init.c): Depend on stamp-init.
4665 (stamp-init): New rule, from init.c rule.
4666 (clean mostlyclean): Remove stamp-init.
4667
4c754949
TT
46682018-07-09 Tom Tromey <tom@tromey.com>
4669
4670 * Makefile.in (INIT_FILES): Remove CONFIG_SRCS,
4671 SUBDIR_GCC_COMPILE_SRCS.
4672
6497f1dd
TT
46732018-07-09 Tom Tromey <tom@tromey.com>
4674
4675 * Makefile.in (init.c): Remove some unused sed rules.
4676
97a34db9
TT
46772018-07-09 Tom Tromey <tom@tromey.com>
4678
4679 * Makefile.in (TSOBS): Remove.
4680 (INIT_FILES): Update.
4681 (LIBGDB_OBS): Update.
4682 (COMMON_SFILES): Add inflow.c.
4683 (SFILES): Remove inflow.c.
4684
25289ac1
JK
46852018-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4686
4687 * contrib/gdb-add-index.sh ($dwarf5): New, use it.
4688
e83f4d97
SM
46892018-07-07 Simon Marchi <simon.marchi@polymtl.ca>
4690
4869c585
SM
4691 * ia64-libunwind-tdep.c (get_reg_name, get_fpreg_name,
4692 get_saveloc_name, is_signal_frame_name, step_name,
4693 init_remote_name, create_addr_space_name,
4694 destroy_addr_space_name, search_unwind_table_name,
4695 find_dyn_list_name): Constify.
e83f4d97 4696
6821842f
SM
46972018-07-05 Simon Marchi <simon.marchi@polymtl.ca>
4698
4699 * darwin-nat.c (darwin_pthread_kill): New function.
4700 (darwin_resume_thread): Use darwin_pthread_kill.
4701
c530603c
TV
47022018-07-05 Tom de Vries <tdevries@suse.de>
4703
4704 * macroexp.c (macro_buffer) <operator=>: New member function.
4705
a7d0f0f0
TT
47062018-07-04 Tom Tromey <tom@tromey.com>
4707
4708 * darwin-nat.c (darwin_attach_pid): Use exit_inferior.
4709
6242c6a6
SM
47102018-07-04 Simon Marchi <simon.marchi@polymtl.ca>
4711
4712 * common/common-defs.h (HAVE_USEFUL_SBRK): Define.
4713 * main.c: Use HAVE_USEFUL_SBRK instead of HAVE_SBRK.
4714 * maint.c: Likewise.
4715 * top.c: Likewise.
4716
4e5b2f89
JB
47172018-07-04 Joel Brobecker <brobecker@adacore.com>
4718
4719 * NEWS: Create a new section for the next release branch.
4720 Rename the section of the current branch, now that it has
4721 been cut.
4722
538ccc4a
JB
47232018-07-04 Joel Brobecker <brobecker@adacore.com>
4724
4725 GDB 8.2 branch created (1b919490e8ba30bf1d6941df0ed112b0e557017e):
4726 * version.in: Bump version to 8.2.50.DATE-git.
4727
1b919490
VB
47282018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
4729 Pedro Alves <palves@redhat.com>
4730
4731 * linux-nat.c (linux_init_ptrace): Rename to ...
4732 (linux_init_ptrace_procfs): ... this. Call
4733 linux_proc_init_warnings.
4734 (linux_nat_target::post_attach)
4735 (linux_nat_target::post_startup_inferior): Adjust.
4736 * nat/linux-procfs.c (linux_proc_init_warnings): Define function.
4737 * nat/linux-procfs.h (linux_proc_init_warnings): Declare function.
4738
1ea5da02
TV
47392018-07-04 Tom de Vries <tdevries@suse.de>
4740
4741 * dwarf2read.c (error_check_comp_unit_head): Move dwarf version
4742 check ...
4743 (read_comp_unit_head): ... here.
4744
f51e0e20
TT
47452018-07-03 Tom Tromey <tom@tromey.com>
4746
4747 * tracepoint.c (process_tracepoint_on_disconnect, start_tracing)
4748 (stop_tracing, tstatus_command)
4749 (find_matching_tracepoint_location, merge_uploaded_tracepoints)
4750 (print_one_static_tracepoint_marker): Update.
4751 * breakpoint.c (static_tracepoints_here, all_tracepoints): Return
4752 std::vector.
4753 * breakpoint.h (breakpoint_p): Remove typedef. Don't declare
4754 VEC.
4755 (all_tracepoints, static_tracepoints_here): Return std::vector.
4756
d7e15655
TT
47572018-07-03 Tom Tromey <tom@tromey.com>
4758
4759 * common/ptid.c (ptid_equal): Remove.
4760 * common/ptid.h (ptid_equal): Don't declare.
4761 * ada-tasks.c: Update.
4762 * breakpoint.c: Update.
4763 * common/agent.c: Update.
4764 * corelow.c: Update.
4765 * darwin-nat-info.c: Update.
4766 * darwin-nat.c: Update.
4767 * dcache.c: Update.
4768 * dtrace-probe.c: Update.
4769 * dummy-frame.c: Update.
4770 * fbsd-nat.c: Update.
4771 * frame.c: Update.
4772 * gdbthread.h: Update.
4773 * gnu-nat.c: Update.
4774 * go32-nat.c: Update.
4775 * inf-loop.c: Update.
4776 * inf-ptrace.c: Update.
4777 * infcall.c: Update.
4778 * infcmd.c: Update.
4779 * inflow.c: Update.
4780 * infrun.c: Update.
4781 * linux-fork.c: Update.
4782 * linux-nat.c: Update.
4783 * linux-thread-db.c: Update.
4784 * mi/mi-cmd-var.c: Update.
4785 * mi/mi-interp.c: Update.
4786 * mi/mi-main.c: Update.
4787 * nto-procfs.c: Update.
4788 * ppc-linux-tdep.c: Update.
4789 * procfs.c: Update.
4790 * python/py-inferior.c: Update.
4791 * python/py-record-btrace.c: Update.
4792 * python/py-record.c: Update.
4793 * ravenscar-thread.c: Update.
4794 * regcache.c: Update.
4795 * remote-sim.c: Update.
4796 * remote.c: Update.
4797 * sol-thread.c: Update.
4798 * solib.c: Update.
4799 * target.c: Update.
4800 * tui/tui-stack.c: Update.
4801 * varobj.c: Update.
4802 * windows-nat.c: Update.
4803 * windows-tdep.c: Update.
4804
26a57c92
TT
48052018-07-03 Tom Tromey <tom@tromey.com>
4806
4807 * common/ptid.c (ptid_match): Remove.
4808 * common/ptid.h (ptid_match): Don't declare.
4809 * fbsd-nat.c: Update.
4810 * infcmd.c: Update.
4811 * infrun.c: Update.
4812 * linux-nat.c: Update.
4813 * record-btrace.c: Update.
4814 * regcache.c: Update.
4815 * remote.c: Update.
4816
d2a107e3
TT
48172018-07-03 Tom Tromey <tom@tromey.com>
4818
4819 * common/ptid.c (ptid_tid_p): Remove.
4820 * common/ptid.h (ptid_tid_p): Don't declare.
4821 * sol-thread.c: Update.
4822
15a9e13e
TT
48232018-07-03 Tom Tromey <tom@tromey.com>
4824
4825 * common/ptid.c (ptid_lwp_p): Remove.
4826 * common/ptid.h (ptid_lwp_p): Don't declare.
4827 * fbsd-nat.c: Update.
4828 * linux-nat.c: Update.
4829 * nat/linux-procfs.c: Update.
4830 * nat/x86-linux-dregs.c: Update.
4831 * sol-thread.c: Update.
4832
0e998d96
TT
48332018-07-03 Tom Tromey <tom@tromey.com>
4834
4835 * common/ptid.c (ptid_is_pid): Remove.
4836 * common/ptid.h (ptid_is_pid): Don't declare.
4837 * infrun.c: Update.
4838 * linux-nat.c: Update.
4839 * mi/mi-interp.c: Update.
4840 * remote.c: Update.
4841 * thread.c: Update.
4842
cc6bcb54
TT
48432018-07-03 Tom Tromey <tom@tromey.com>
4844
4845 * common/ptid.c (ptid_get_tid): Remove.
4846 * common/ptid.h (ptid_get_tid): Don't declare.
4847 * ada-tasks.c: Update.
4848 * aix-thread.c: Update.
4849 * bsd-uthread.c: Update.
4850 * darwin-nat.c: Update.
4851 * fbsd-nat.c: Update.
4852 * i386-darwin-nat.c: Update.
4853 * infrun.c: Update.
4854 * linux-tdep.c: Update.
4855 * nto-procfs.c: Update.
4856 * ppc-ravenscar-thread.c: Update.
4857 * python/py-infthread.c: Update.
4858 * ravenscar-thread.c: Update.
4859 * sol-thread.c: Update.
4860 * sparc-ravenscar-thread.c: Update.
4861 * windows-nat.c: Update.
4862
e38504b3
TT
48632018-07-03 Tom Tromey <tom@tromey.com>
4864
4865 * common/ptid.c (ptid_get_lwp): Remove.
4866 * common/ptid.h (ptid_get_lwp): Don't declare.
4867 * aarch64-linux-nat.c: Update.
4868 * ada-tasks.c: Update.
4869 * aix-thread.c: Update.
4870 * amd64-linux-nat.c: Update.
4871 * arm-linux-nat.c: Update.
4872 * corelow.c: Update.
4873 * fbsd-nat.c: Update.
4874 * fbsd-tdep.c: Update.
4875 * gnu-nat.c: Update.
4876 * i386-cygwin-tdep.c: Update.
4877 * i386-gnu-nat.c: Update.
4878 * i386-linux-nat.c: Update.
4879 * ia64-linux-nat.c: Update.
4880 * inf-ptrace.c: Update.
4881 * infrun.c: Update.
4882 * linux-fork.c: Update.
4883 * linux-nat.c: Update.
4884 * linux-tdep.c: Update.
4885 * linux-thread-db.c: Update.
4886 * mips-linux-nat.c: Update.
4887 * nat/aarch64-linux-hw-point.c: Update.
4888 * nat/aarch64-linux.c: Update.
4889 * nat/linux-btrace.c: Update.
4890 * nat/linux-osdata.c: Update.
4891 * nat/linux-procfs.c: Update.
4892 * nat/x86-linux-dregs.c: Update.
4893 * obsd-nat.c: Update.
4894 * ppc-fbsd-nat.c: Update.
4895 * ppc-linux-nat.c: Update.
4896 * procfs.c: Update.
4897 * python/py-infthread.c: Update.
4898 * ravenscar-thread.c: Update.
4899 * remote.c: Update.
4900 * s390-linux-nat.c: Update.
4901 * sol-thread.c: Update.
4902 * sol2-tdep.c: Update.
4903 * spu-linux-nat.c: Update.
4904 * x86-linux-nat.c: Update.
4905 * xtensa-linux-nat.c: Update.
4906
e99b03dc
TT
49072018-07-03 Tom Tromey <tom@tromey.com>
4908
4909 * common/ptid.c (ptid_get_pid): Remove.
4910 * common/ptid.h (ptid_get_pid): Don't declare.
4911 * aarch64-linux-nat.c: Update.
4912 * ada-lang.c: Update.
4913 * aix-thread.c: Update.
4914 * alpha-bsd-nat.c: Update.
4915 * amd64-fbsd-nat.c: Update.
4916 * amd64-linux-nat.c: Update.
4917 * arm-linux-nat.c: Update.
4918 * arm-nbsd-nat.c: Update.
4919 * auxv.c: Update.
4920 * break-catch-syscall.c: Update.
4921 * breakpoint.c: Update.
4922 * bsd-uthread.c: Update.
4923 * corelow.c: Update.
4924 * ctf.c: Update.
4925 * darwin-nat.c: Update.
4926 * fbsd-nat.c: Update.
4927 * fbsd-tdep.c: Update.
4928 * gcore.c: Update.
4929 * gnu-nat.c: Update.
4930 * hppa-nbsd-nat.c: Update.
4931 * hppa-obsd-nat.c: Update.
4932 * i386-fbsd-nat.c: Update.
4933 * ia64-linux-nat.c: Update.
4934 * inf-ptrace.c: Update.
4935 * infcmd.c: Update.
4936 * inferior.c: Update.
4937 * inferior.h: Update.
4938 * inflow.c: Update.
4939 * infrun.c: Update.
4940 * linux-fork.c: Update.
4941 * linux-nat.c: Update.
4942 * linux-tdep.c: Update.
4943 * linux-thread-db.c: Update.
4944 * m68k-bsd-nat.c: Update.
4945 * mi/mi-interp.c: Update.
4946 * mi/mi-main.c: Update.
4947 * mips-linux-nat.c: Update.
4948 * mips-nbsd-nat.c: Update.
4949 * mips64-obsd-nat.c: Update.
4950 * nat/aarch64-linux-hw-point.c: Update.
4951 * nat/aarch64-linux.c: Update.
4952 * nat/linux-btrace.c: Update.
4953 * nat/linux-osdata.c: Update.
4954 * nat/linux-procfs.c: Update.
4955 * nat/x86-linux-dregs.c: Update.
4956 * nto-procfs.c: Update.
4957 * obsd-nat.c: Update.
4958 * ppc-linux-nat.c: Update.
4959 * ppc-nbsd-nat.c: Update.
4960 * ppc-obsd-nat.c: Update.
4961 * proc-service.c: Update.
4962 * procfs.c: Update.
4963 * python/py-inferior.c: Update.
4964 * python/py-infthread.c: Update.
4965 * ravenscar-thread.c: Update.
4966 * record.c: Update.
4967 * remote-sim.c: Update.
4968 * remote.c: Update.
4969 * rs6000-nat.c: Update.
4970 * s390-linux-nat.c: Update.
4971 * sh-nbsd-nat.c: Update.
4972 * sol-thread.c: Update.
4973 * sparc-nat.c: Update.
4974 * sparc64-tdep.c: Update.
4975 * spu-linux-nat.c: Update.
4976 * spu-tdep.c: Update.
4977 * target-debug.h: Update.
4978 * target.c: Update.
4979 * thread.c: Update.
4980 * tid-parse.c: Update.
4981 * tracefile-tfile.c: Update.
4982 * vax-bsd-nat.c: Update.
4983 * windows-nat.c: Update.
4984 * x86-linux-nat.c: Update.
4985 * x86-nat.c: Update.
4986
f2907e49
TT
49872018-07-03 Tom Tromey <tom@tromey.com>
4988
4989 * common/ptid.c (pid_to_ptid): Remove.
4990 * common/ptid.h (pid_to_ptid): Don't declare.
4991 * aix-thread.c: Update.
4992 * arm-linux-nat.c: Update.
4993 * common/ptid.c: Update.
4994 * common/ptid.h: Update.
4995 * corelow.c: Update.
4996 * ctf.c: Update.
4997 * darwin-nat.c: Update.
4998 * fbsd-nat.c: Update.
4999 * fork-child.c: Update.
5000 * gnu-nat.c: Update.
5001 * go32-nat.c: Update.
5002 * inf-ptrace.c: Update.
5003 * infcmd.c: Update.
5004 * inferior.c: Update.
5005 * infrun.c: Update.
5006 * linux-fork.c: Update.
5007 * linux-nat.c: Update.
5008 * nat/aarch64-linux-hw-point.c: Update.
5009 * nat/fork-inferior.c: Update.
5010 * nat/x86-linux-dregs.c: Update.
5011 * nto-procfs.c: Update.
5012 * obsd-nat.c: Update.
5013 * procfs.c: Update.
5014 * progspace.c: Update.
5015 * remote.c: Update.
5016 * rs6000-nat.c: Update.
5017 * s390-linux-nat.c: Update.
5018 * sol-thread.c: Update.
5019 * spu-linux-nat.c: Update.
5020 * target.c: Update.
5021 * top.c: Update.
5022 * tracefile-tfile.c: Update.
5023 * windows-nat.c: Update.
5024
fd79271b
TT
50252018-07-03 Tom Tromey <tom@tromey.com>
5026
5027 * common/ptid.h (ptid_build): Don't declare.
5028 * common/ptid.c (ptid_build): Remove.
5029 * aix-thread.c: Update.
5030 * bsd-kvm.c: Update.
5031 * bsd-uthread.c: Update.
5032 * common/agent.c: Update.
5033 * common/ptid.c: Update.
5034 * common/ptid.h: Update.
5035 * corelow.c: Update.
5036 * darwin-nat.c: Update.
5037 * fbsd-nat.c: Update.
5038 * gnu-nat.c: Update.
5039 * linux-fork.c: Update.
5040 * linux-nat.c: Update.
5041 * linux-thread-db.c: Update.
5042 * nat/linux-osdata.c: Update.
5043 * nat/linux-procfs.c: Update.
5044 * nto-procfs.c: Update.
5045 * obsd-nat.c: Update.
5046 * proc-service.c: Update.
5047 * procfs.c: Update.
5048 * ravenscar-thread.c: Update.
5049 * remote-sim.c: Update.
5050 * remote.c: Update.
5051 * sol-thread.c: Update.
5052 * target.c: Update.
5053 * windows-nat.c: Update.
5054
057302ce
TT
50552018-07-03 Tom Tromey <tom@tromey.com>
5056
5057 * infrun.c (follow_exec): Use exit_inferior_silent.
5058 * inferior.c (exit_inferior_num_silent): Remove.
5059 * inferior.h (exit_inferior_num_silent): Don't declare.
5060
a50c11c6
TT
50612018-07-03 Tom Tromey <tom@tromey.com>
5062
5063 PR cli/23340:
5064 * darwin-nat.c (darwin_attach_pid): Reset inferior and
5065 inferior_ptid on error.
5066
471b9d15
MR
50672018-07-02 Maciej W. Rozycki <macro@mips.com>
5068 Simon Marchi <simon.marchi@polymtl.ca>
5069
5070 PR tdep/8282
5071 * disasm.h (gdb_disassembler): Add
5072 `m_disassembler_options_holder'. member
5073 * disasm.c (get_all_disassembler_options): New function.
5074 (gdb_disassembler::gdb_disassembler): Use it.
5075 (gdb_buffered_insn_length_init_dis): Likewise.
5076 (gdb_buffered_insn_length): Adjust accordingly.
5077 (set_disassembler_options): Handle options with arguments.
5078 (show_disassembler_options_sfunc): Likewise. Add a leading new
5079 line if showing options with descriptions.
5080 (disassembler_options_completer): Adapt to using the
5081 `disasm_options_and_args_t' structure.
5082 * mips-tdep.c (mips_disassembler_options): New variable.
5083 (mips_disassembler_options_o32): Likewise.
5084 (mips_disassembler_options_n32): Likewise.
5085 (mips_disassembler_options_n64): Likewise.
5086 (gdb_print_insn_mips): Don't set `disassembler_options'.
5087 (gdb_print_insn_mips_n32, gdb_print_insn_mips_n64): Remove
5088 functions.
5089 (mips_gdbarch_init): Always set `gdbarch_print_insn' to
5090 `gdb_print_insn_mips'. Set `gdbarch_disassembler_options',
5091 `gdbarch_disassembler_options_implicit' and
5092 `gdbarch_valid_disassembler_options'.
5093 * arm-tdep.c (_initialize_arm_tdep): Adapt to using the
5094 `disasm_options_and_args_t' structure.
5095 * gdbarch.sh (disassembler_options_implicit): New `gdbarch'
5096 method.
5097 (valid_disassembler_options): Switch from `disasm_options_t' to
5098 the `disasm_options_and_args_t' structure.
5099 * NEWS: Document `set disassembler-options' support for the MIPS
5100 target.
5101 * gdbarch.h: Regenerate.
5102 * gdbarch.c: Regenerate.
5103
41823f29
SH
51042018-07-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
5105
5106 * riscv-tdep.c (riscv_register_aliases): Swap "fp" and "s0" entries.
5107
41206e32
JB
51082018-06-29 Joel Brobecker <brobecker@adacore.com>
5109
5110 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Add missing
5111 parameter in call to amd64_target_description.
5112 * amd64-dicos-tdep.c (amd64_dicos_init_abi): Likewise.
5113 * amd64-fbsd-tdep.c (amd64fbsd_core_read_description)
5114 (amd64fbsd_init_abi): Likewise.
5115 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
5116 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
5117 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
5118 * amd64-fbsd-nat.c (amd64_fbsd_nat_target): Likewise.
5119
de52b960
PA
51202018-06-29 Pedro Alves <palves@redhat.com>
5121
5122 * gdb/amd64-tdep.h (amd64_create_target_description): Add
5123 "segments" parameter.
5124 * gdb/amd64-tdep.c (amd64_none_init_abi, amd64_x32_none_init_abi)
5125 (_initialize_amd64_tdep): Update call to
5126 amd64_create_target_description.
5127 (amd64_target_description): Add "segments" parameter. Adjust
5128 the implementation to use it.
5129 * gdb/amd64-linux-tdep.c (amd64_linux_read_description): Update
5130 call to amd64_create_target_description.
5131 * gdb/amd64-windows-tdep.c (amd64_windows_init_abi): Likewise.
5132 * gdb/arch/amd64.h (amd64_create_target_description): Add
5133 "segments" register.
5134 * gdb/arch/amd64.c (amd64_create_target_description): Add
5135 "segments" parameter. Call create_feature_i386_64bit_segments
5136 only if SEGMENTS is true.
5137 * gdb/gdbserver/win32-i386-low.c (i386_arch_setup): Update
5138 call to amd64_create_target_description.
5139
75acb486
PA
51402018-06-29 Pedro Alves <palves@redhat.com>
5141
5142 * thread.c (thread_target_id_str): New, factored out from ...
5143 (print_thread_info_1): ... here. Use it to compute the max
5144 "Target Id" column width.
5145
c76a8ea3
PA
51462018-06-29 Pedro Alves <palves@redhat.com>
5147
5148 * remote.c (remote_target::extra_thread_info): Delete
5149 'display_buf' and 'n' locals. from the cache, regardless of
5150 packet mechanims is in use. Use cache for qThreadExtra and qP
5151 methods too.
5152
cd2bb709
PA
51532018-06-29 Pedro Alves <palves@redhat.com>
5154
5155 * blockframe.c (find_pc_sect_containing_function): New function.
5156 * breakpoint.c (print_breakpoint_location): Don't call
5157 find_pc_sect_function.
5158 * linespec.c (create_sals_line_offset): Record the location's
5159 symbol in the sal.
5160 * linespec.c (convert_address_location_to_sals): Fill in sal's
5161 symbol with find_pc_sect_containing_function.
5162 * symtab.c (find_function_start_sal): Rename to ...
5163 (find_function_start_sal_1): ... this.
5164 (find_function_start_sal): Reimplement as wrapper around
5165 find_function_start_sal_1, and use
5166 find_pc_sect_containing_function to fill in the sal's symbol.
5167 (find_function_start_sal(symbol*, bool)): Adjust.
5168 * symtab.h (find_pc_function, find_pc_sect_function): Adjust
5169 comments.
5170 (find_pc_sect_containing_function): Declare.
5171
991ff292
PA
51722018-06-29 Pedro Alves <palves@redhat.com>
5173
5174 * inline-frame.c (stopped_by_user_bp_inline_frame): Return
5175 true if the the location has no symbol.
5176
44cee4fd
TT
51772018-06-28 Tom Tromey <tom@tromey.com>
5178
5179 * NEWS: Mention --enable-codesign.
5180 * silent-rules.mk (ECHO_SIGN): New variable.
5181 * configure.ac: Add --enable-codesign.
5182 * configure: Rebuild.
5183 * Makefile.in (CODESIGN, CODESIGN_CERT): New variables.
5184 (gdb$(EXEEXT)): Optionally invoke codesign.
5185
f2ffa92b
PA
51862018-06-28 Pedro Alves <palves@redhat.com>
5187
5188 * gdbthread.h (struct thread_suspend_state) <stop_pc>: Extend
5189 comments.
5190 (switch_to_thread_no_regs): Adjust comment.
5191 * infcmd.c (stop_pc): Delete.
5192 (post_create_inferior, info_program_command): Replace references
5193 to stop_pc with references to thread_info->suspend.stop_pc.
5194 * inferior.h (stop_pc): Delete declaration.
5195 * infrun.c (proceed, handle_syscall_event, fill_in_stop_func)
5196 (handle_inferior_event_1, handle_signal_stop)
5197 (process_event_stop_test, keep_going_stepped_thread)
5198 (handle_step_into_function, handle_step_into_function_backward)
5199 (print_stop_location): Replace references to stop_pc with
5200 references to thread_info->suspend.stop_pc.
5201 (struct infcall_suspend_state) <stop_pc>: Delete field.
5202 (save_infcall_suspend_state, restore_infcall_suspend_state):
5203 Remove references to inf_stat->stop_pc.
5204 * linux-fork.c (fork_load_infrun_state): Likewise.
5205 * record-btrace.c (record_btrace_set_replay): Likewise.
5206 * record-full.c (record_full_goto_entry): Likewise.
5207 * remote.c (print_one_stopped_thread): Likewise.
5208 * target.c (target_resume): Extend comment.
5209 * thread.c (set_executing_thread): New.
5210 (set_executing): Use it.
5211 (switch_to_thread_no_regs, switch_to_no_thread, switch_to_thread):
5212 Remove references to stop_pc.
5213
ecdc3a72
PA
52142018-06-28 Pedro Alves <palves@redhat.com>
5215
5216 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>:
5217 Moving fetching stop_pc until after ecs->event_thread is refreshed.
5218
d95d3aef
TT
52192018-06-28 Tom Tromey <tom@tromey.com>
5220
5221 * coffread.c (coff_symfile_finish): Update.
5222 * xcoffread.c (xcoff_symfile_finish): Update.
5223 * elfread.c (elf_symfile_finish): Update.
5224 * symfile.h (dwarf2_free_objfile): Don't declare.
5225 * dwarf2read.c (_initialize_dwarf2_read): Use
5226 register_objfile_data_with_cleanup.
5227 (dwarf2_free_objfile): Now static. Change signature.
5228
291f9a96
PT
52292018-06-28 Petr Tesarik <ptesarik@suse.cz>
5230
5231 * symfile.c (add_symbol_file_command, _initialize_symfile): Add
5232 option "-o" to add-symbol-file-load to add an offset to each
5233 section's load address.
5234 * symfile.c (set_objfile_default_section_offset): New function.
5235
d81a3eaf
PT
52362018-06-28 Petr Tesarik <ptesarik@suse.cz>
5237
5238 * symfile.c (add_symbol_file_command): Make sure that sections
5239 with the same name are sorted in the same order.
5240
ed6dfe51
PT
52412018-06-28 Petr Tesarik <ptesarik@suse.cz>
5242
5243 * symfile.c (add_symbol_file_command, _initialize_symfile): Do not
5244 require the second argument. If omitted, load sections at the
5245 addresses specified in the file.
5246
d4d429d5
PT
52472018-06-28 Petr Tesarik <ptesarik@suse.cz>
5248
5249 * symfile.c (symbol_file_command, symbol_file_add_main_1)
5250 (_initialize_symfile): Add option "-o" to symbol-file to add an
5251 offset to each section of the symbol file.
5252
39b27ab6
PT
52532018-06-28 Petr Tesarik <ptesarik@suse.cz>
5254
5255 * MAINTAINERS (Write After Approval): Add Petr Tesarik.
5256
41827fc3
TT
52572018-06-27 Tom Tromey <tom@tromey.com>
5258
5259 * stack.c (_initialize_stack): Update "func" help text.
5260
0c6aef22
TT
52612018-06-27 Tom Tromey <tom@tromey.com>
5262
5263 * python/py-unwind.c (unwind_info_object) <saved_regs>: Now a
5264 std::vector.
5265 (unwind_infopy_str, pyuw_create_unwind_info)
5266 (unwind_infopy_add_saved_register, pyuw_sniffer)
5267 (unwind_infopy_dealloc, unwind_infopy_add_saved_register):
5268 Update.
5269 (struct saved_reg): Add constructor.
5270 <value>: Now a gdbpy_ref<>.
5271
63177289
TT
52722018-06-27 Tom Tromey <tom@tromey.com>
5273
5274 * machoread.c (macho_symfile_read): Define "symbol_table" earlier.
5275
e76f78a0
SM
52762018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5277
5278 * gdb-gdb.py.in: Format using autopep8.
5279
9a14af7b
SM
52802018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5281
5282 * gdb-gdb.py.in (CoreAddrPrettyPrinter): New class.
5283 (type_lookup_function): Recognize CORE_ADDR values.
5284
189366cd
SM
52852018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5286
5287 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <to_string>: Don't
5288 print tag_name.
5289
68ad5fb9
SM
52902018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5291
5292 * gdb-gdb.py.in (TypeFlag) <__cmp__>: Remove.
5293 <__lt__>: Add.
5294
141ec9f6
SM
52952018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5296
5297 * gdb-gdb.py: Move to...
5298 * gdb-gdb.py.in: ... here.
5299 * configure.ac (AC_CONFIG_FILES): Add gdb-gdb.py.
5300 * Makefile.in (all): Add gdb-gdb.gdb and gdb-gdb.py as
5301 dependencies.
5302 (distclean): Remove gdb-gdb.py when cleaning.
5303 (gdb-gdb.py, gdb-gdb.gdb): New rules.
5304 * configure: Re-generate.
5305
4c4e7ad4
PA
53062018-06-27 Pedro Alves <palves@redhat.com>
5307
5308 * proc-service.c (get_ps_regcache): New.
5309 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
5310 (ps_lsetfpregs): Use it.
5311
7ab6656f
OJ
53122018-06-27 Omair Javaid <omair.javaid@linaro.org>
5313
5314 PR gdb/21695
5315 * dwarf2read.c (lnp_state_machine::check_line_address): Update declaration.
5316 (dwarf_decode_lines_1): Adjust.
5317
bd583225
SM
53182018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5319
5320 * fbsd-nat.h (class fbsd_nat_target) <find_memory_regions>: Add
5321 override.
5322 <info_proc>: Likewise.
5323
9a325b7b
JB
53242018-06-26 Joel Brobecker <brobecker@adacore.com>
5325
5326 * windows-nat.c (do_windows_fetch_inferior_registers): Rename
5327 to windows_fetch_one_register, and only handle the case of
5328 fetching one register. Move the code that reloads the context
5329 and iterates over all registers if R is negative to...
5330 (windows_nat_target::fetch_registers): ... here.
5331 (do_windows_store_inferior_registers): Rename to
5332 windows_store_one_register, and only handle the case of storing
5333 one register. Move the code that handles the case where r is
5334 negative to...
5335 (windows_nat_target::store_registers) ... here.
5336
a33ccfc7
TT
53372018-06-26 Tom Tromey <tom@tromey.com>
5338
5339 PR rust/22574:
5340 * typeprint.c (whatis_exp): Allow ptype/o for Rust.
5341 * rust-lang.c (rust_print_struct_def): Add podata parameter.
5342 Update.
5343 (rust_internal_print_type): Add podata parameter.
5344 (rust_print_type): Update.
5345
e0c547d1
TT
53462018-06-26 Tom Tromey <tom@tromey.com>
5347
5348 * typeprint.h (struct print_offset_data) <update, finish,
5349 maybe_print_hole>: New methods.
5350 <indentation>: New constant.
5351 * typeprint.c (print_offset_data::indentation): Define.
5352 (print_offset_data::maybe_print_hole, print_offset_data::update)
5353 (print_offset_data::finish): Move from c-typeprint.c and rename.
5354 * c-typeprint.c (OFFSET_SPC_LEN): Remove.
5355 (print_spaces_filtered_with_print_options): Update.
5356 (c_print_type_union_field_offset, maybe_print_hole)
5357 (c_print_type_struct_field_offset): Move to typeprint.c and
5358 rename.
5359 (c_type_print_base_struct_union): Update.
5360
75cbc781
PA
53612018-06-25 Pedro Alves <palves@redhat.com>
5362
5363 * gdbthread.h (thread_info_ref, delete_thread)
5364 (delete_thread_silent, first_thread_of_inferior)
5365 (any_thread_of_inferior, switch_to_thread)
5366 (enable_thread_stack_temporaries)
5367 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
5368 (get_last_thread_stack_temporary)
5369 (value_in_thread_stack_temporaries, can_access_registers_thread):
5370 Spell out "struct thread_info" instead of just "thread_info".
5371 * inferior.h (notice_new_inferior): Likewise.
5372
b7a08269
PA
53732018-06-25 Pedro Alves <palves@redhat.com>
5374
5375 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
5376 pass thread_info pointer to delete_thread.
5377 (windows_nat_target::detach): Pass inferior pointer to
5378 detach_inferior.
5379 * aix-thread.c (sync_threadlists): Pass thread_info pointer to
5380 delete_thread.
5381 * bsd-kvm.c (bsd_kvm_target::close): Use discard_all_inferiors.
5382 * darwin-nat.c (darwin_check_new_threads): Use find_thread_ptid
5383 and pass a thread_info pointer to delete_thread.
5384 * fbsd-nat.c (fbsd_nat_target::wait): Use find_thread_ptid and
5385 pass thread_info pointer to delete_thread.
5386 * go32-nat.c (go32_nat_target::mourn_inferior): Remove
5387 delete_thread_silent call.
5388 * procfs.c (procfs_target::detach): Pass inferior pointer to
5389 detach_inferior.
5390 (procfs_target::wait): Pass thread_info pointer to delete_thread.
5391 * remote-sim.c (gdbsim_target::mourn_inferior): Remove
5392 delete_thread_silent call.
5393 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
5394 pass thread_info pointer to delete_thread.
5395 (windows_nat_target::detach): Pass inferior pointer to
5396 delete_inferior.
5397
8e7767e3
AH
53982018-06-22 Alan Hayward <alan.hayward@arm.com>
5399
5400 * regcache.c (readable_regcache::read_part): Fix asserts.
5401 (reg_buffer::raw_collect_part): New function.
5402 (regcache::write_part): Fix asserts.
5403 (reg_buffer::raw_supply_part): New function.
5404 (regcache::transfer_regset_register): New helper function.
5405 (regcache::transfer_regset): Call new functions.
5406 (regcache_supply_regset): Use gdb_byte*.
5407 (regcache::supply_regset): Likewise.
5408 (regcache_collect_regset): Likewise.
5409 (regcache::collect_regset): Likewise.
5410 * regcache.h (reg_buffer::raw_collect_part): New declaration.
5411 (reg_buffer::raw_supply_part): Likewise.
5412 (regcache::transfer_regset_register): Likewise.
5413 (regcache::transfer_regset): Use gdb_byte*.
5414
bfd60e34
AH
54152018-06-22 Alan Hayward <alan.hayward@arm.com>
5416
5417 * nat/aarch64-sve-linux-ptrace.h (HAS_SVE_STATE): Use &.
5418
00431a78
PA
54192018-06-21 Pedro Alves <palves@redhat.com>
5420
5421 * ada-lang.h (ada_get_task_number): Take a thread_info pointer
5422 instead of a ptid_t. All callers adjusted.
5423 * ada-tasks.c (ada_get_task_number): Likewise. All callers
5424 adjusted.
5425 (print_ada_task_info, display_current_task_id, task_command_1):
5426 Adjust.
5427 * breakpoint.c (watchpoint_in_thread_scope): Adjust to use
5428 inferior_thread.
5429 (breakpoint_kind): Adjust.
5430 (remove_breakpoints_pid): Rename to ...
5431 (remove_breakpoints_inf): ... this. Adjust to take an inferior
5432 pointer. All callers adjusted.
5433 (bpstat_clear_actions): Use inferior_thread.
5434 (get_bpstat_thread): New.
5435 (bpstat_do_actions): Use it.
5436 (bpstat_check_breakpoint_conditions, bpstat_stop_status): Adjust
5437 to take a thread_info pointer. All callers adjusted.
5438 (set_longjmp_breakpoint_for_call_dummy, set_momentary_breakpoint)
5439 (breakpoint_re_set_thread): Use inferior_thread.
5440 * breakpoint.h (struct inferior): Forward declare.
5441 (bpstat_stop_status): Update.
5442 (remove_breakpoints_pid): Delete.
5443 (remove_breakpoints_inf): New.
5444 * bsd-uthread.c (bsd_uthread_target::wait)
5445 (bsd_uthread_target::update_thread_list): Use find_thread_ptid.
5446 * btrace.c (btrace_add_pc, btrace_enable, btrace_fetch)
5447 (maint_btrace_packet_history_cmd)
5448 (maint_btrace_clear_packet_history_cmd): Adjust.
5449 (maint_btrace_clear_cmd, maint_info_btrace_cmd): Adjust to use
5450 inferior_thread.
5451 * cli/cli-interp.c: Include "inferior.h".
5452 * common/refcounted-object.h (struct
5453 refcounted_object_ref_policy): New.
5454 * compile/compile-object-load.c: Include gdbthread.h.
5455 (store_regs): Use inferior_thread.
5456 * corelow.c (core_target::close): Use current_inferior.
5457 (core_target_open): Adjust to use first_thread_of_inferior and use
5458 the current inferior.
5459 * ctf.c (ctf_target::close): Adjust to use current_inferior.
5460 * dummy-frame.c (dummy_frame_id) <ptid>: Delete, replaced by ...
5461 <thread>: ... this new field. All references adjusted.
5462 (dummy_frame_pop, dummy_frame_discard, register_dummy_frame_dtor):
5463 Take a thread_info pointer instead of a ptid_t.
5464 * dummy-frame.h (dummy_frame_push, dummy_frame_pop)
5465 (dummy_frame_discard, register_dummy_frame_dtor): Take a
5466 thread_info pointer instead of a ptid_t.
5467 * elfread.c: Include "inferior.h".
5468 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop):
5469 Use inferior_thread.
5470 * eval.c (evaluate_subexp): Likewise.
5471 * frame.c (frame_pop, has_stack_frames, find_frame_sal): Use
5472 inferior_thread.
5473 * gdb_proc_service.h (struct thread_info): Forward declare.
5474 (struct ps_prochandle) <ptid>: Delete, replaced by ...
5475 <thread>: ... this new field. All references adjusted.
5476 * gdbarch.h, gdbarch.c: Regenerate.
5477 * gdbarch.sh (get_syscall_number): Replace 'ptid' parameter with a
5478 'thread' parameter. All implementations and callers adjusted.
5479 * gdbthread.h (thread_info) <set_running>: New method.
5480 (delete_thread, delete_thread_silent): Take a thread_info pointer
5481 instead of a ptid.
5482 (global_thread_id_to_ptid, ptid_to_global_thread_id): Delete.
5483 (first_thread_of_process): Delete, replaced by ...
5484 (first_thread_of_inferior): ... this new function. All callers
5485 adjusted.
5486 (any_live_thread_of_process): Delete, replaced by ...
5487 (any_live_thread_of_inferior): ... this new function. All callers
5488 adjusted.
5489 (switch_to_thread, switch_to_no_thread): Declare.
5490 (is_executing): Delete.
5491 (enable_thread_stack_temporaries): Update comment.
5492 <enable_thread_stack_temporaries>: Take a thread_info pointer
5493 instead of a ptid_t. Incref the thread.
5494 <~enable_thread_stack_temporaries>: Decref the thread.
5495 <m_ptid>: Delete
5496 <m_thr>: New.
5497 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
5498 (get_last_thread_stack_temporary)
5499 (value_in_thread_stack_temporaries, can_access_registers_thread):
5500 Take a thread_info pointer instead of a ptid_t. All callers
5501 adjusted.
5502 * infcall.c (get_call_return_value): Use inferior_thread.
5503 (run_inferior_call): Work with thread pointers instead of ptid_t.
5504 (call_function_by_hand_dummy): Work with thread pointers instead
5505 of ptid_t. Use thread_info_ref.
5506 * infcmd.c (proceed_thread_callback): Access thread's state
5507 directly.
5508 (ensure_valid_thread, ensure_not_running): Use inferior_thread,
5509 access thread's state directly.
5510 (continue_command): Use inferior_thread.
5511 (info_program_command): Use find_thread_ptid and access thread
5512 state directly.
5513 (proceed_after_attach_callback): Use thread state directly.
5514 (notice_new_inferior): Take a thread_info pointer instead of a
5515 ptid_t. All callers adjusted.
5516 (exit_inferior): Take an inferior pointer instead of a pid. All
5517 callers adjusted.
5518 (exit_inferior_silent): New.
5519 (detach_inferior): Delete.
5520 (valid_gdb_inferior_id, pid_to_gdb_inferior_id)
5521 (gdb_inferior_id_to_pid, in_inferior_list): Delete.
5522 (detach_inferior_command, kill_inferior_command): Use
5523 find_inferior_id instead of valid_gdb_inferior_id and
5524 gdb_inferior_id_to_pid.
5525 (inferior_command): Use inferior and thread pointers.
5526 * inferior.h (struct thread_info): Forward declare.
5527 (notice_new_inferior): Take a thread_info pointer instead of a
5528 ptid_t. All callers adjusted.
5529 (detach_inferior): Delete declaration.
5530 (exit_inferior, exit_inferior_silent): Take an inferior pointer
5531 instead of a pid. All callers adjusted.
5532 (gdb_inferior_id_to_pid, pid_to_gdb_inferior_id, in_inferior_list)
5533 (valid_gdb_inferior_id): Delete.
5534 * infrun.c (follow_fork_inferior, proceed_after_vfork_done)
5535 (handle_vfork_child_exec_or_exit, follow_exec): Adjust.
5536 (struct displaced_step_inferior_state) <pid>: Delete, replaced by
5537 ...
5538 <inf>: ... this new field.
5539 <step_ptid>: Delete, replaced by ...
5540 <step_thread>: ... this new field.
5541 (get_displaced_stepping_state): Take an inferior pointer instead
5542 of a pid. All callers adjusted.
5543 (displaced_step_in_progress_any_inferior): Adjust.
5544 (displaced_step_in_progress_thread): Take a thread pointer instead
5545 of a ptid_t. All callers adjusted.
5546 (displaced_step_in_progress, add_displaced_stepping_state): Take
5547 an inferior pointer instead of a pid. All callers adjusted.
5548 (get_displaced_step_closure_by_addr): Adjust.
5549 (remove_displaced_stepping_state): Take an inferior pointer
5550 instead of a pid. All callers adjusted.
5551 (displaced_step_prepare_throw, displaced_step_prepare)
5552 (displaced_step_fixup): Take a thread pointer instead of a ptid_t.
5553 All callers adjusted.
5554 (start_step_over): Adjust.
5555 (infrun_thread_ptid_changed): Remove bit updating ptids in the
5556 displaced step queue.
5557 (do_target_resume): Adjust.
5558 (fetch_inferior_event): Use inferior_thread.
5559 (context_switch, get_inferior_stop_soon): Take an
5560 execution_control_state pointer instead of a ptid_t. All callers
5561 adjusted.
5562 (switch_to_thread_cleanup): Delete.
5563 (stop_all_threads): Use scoped_restore_current_thread.
5564 * inline-frame.c: Include "gdbthread.h".
5565 (inline_state) <inline_state>: Take a thread pointer instead of a
5566 ptid_t. All callers adjusted.
5567 <ptid>: Delete, replaced by ...
5568 <thread>: ... this new field.
5569 (find_inline_frame_state): Take a thread pointer instead of a
5570 ptid_t. All callers adjusted.
5571 (skip_inline_frames, step_into_inline_frame)
5572 (inline_skipped_frames, inline_skipped_symbol): Take a thread
5573 pointer instead of a ptid_t. All callers adjusted.
5574 * inline-frame.h (skip_inline_frames, step_into_inline_frame)
5575 (inline_skipped_frames, inline_skipped_symbol): Likewise.
5576 * linux-fork.c (delete_checkpoint_command): Adjust to use thread
5577 pointers directly.
5578 * linux-nat.c (get_detach_signal): Likewise.
5579 * linux-thread-db.c (thread_from_lwp): New 'stopped' parameter.
5580 (thread_db_notice_clone): Adjust.
5581 (thread_db_find_new_threads_silently)
5582 (thread_db_find_new_threads_2, thread_db_find_new_threads_1): Take
5583 a thread pointer instead of a ptid_t. All callers adjusted.
5584 * mi/mi-cmd-var.c: Include "inferior.h".
5585 (mi_cmd_var_update_iter): Update to use thread pointers.
5586 * mi/mi-interp.c (mi_new_thread): Update to use the thread's
5587 inferior directly.
5588 (mi_output_running_pid, mi_inferior_count): Delete, bits factored
5589 out to ...
5590 (mi_output_running): ... this new function.
5591 (mi_on_resume_1): Adjust to use it.
5592 (mi_user_selected_context_changed): Adjust to use inferior_thread.
5593 * mi/mi-main.c (proceed_thread): Adjust to use thread pointers
5594 directly.
5595 (interrupt_thread_callback): : Adjust to use thread and inferior
5596 pointers.
5597 * proc-service.c: Include "gdbthread.h".
5598 (ps_pglobal_lookup): Adjust to use the thread's inferior directly.
5599 * progspace-and-thread.c: Include "inferior.h".
5600 * progspace.c: Include "inferior.h".
5601 * python/py-exitedevent.c (create_exited_event_object): Adjust to
5602 hold a reference to an inferior_object.
5603 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust to use
5604 inferior_thread.
5605 * python/py-inferior.c (struct inferior_object): Give the type a
5606 tag name instead of a typedef.
5607 (python_on_normal_stop): No need to check if the current thread is
5608 listed.
5609 (inferior_to_inferior_object): Change return type to
5610 inferior_object. All callers adjusted.
5611 (find_thread_object): Delete, bits factored out to ...
5612 (thread_to_thread_object): ... this new function.
5613 * python/py-infthread.c (create_thread_object): Use
5614 inferior_to_inferior_object.
5615 (thpy_is_stopped): Use thread pointer directly.
5616 (gdbpy_selected_thread): Use inferior_thread.
5617 * python/py-record-btrace.c (btpy_list_object) <ptid>: Delete
5618 field, replaced with ...
5619 <thread>: ... this new field. All users adjusted.
5620 (btpy_insn_or_gap_new): Drop const.
5621 (btpy_list_new): Take a thread pointer instead of a ptid_t. All
5622 callers adjusted.
5623 * python/py-record.c: Include "gdbthread.h".
5624 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
5625 a ptid_t. All callers adjusted.
5626 (gdbpy_current_recording): Use inferior_thread.
5627 * python/py-record.h (recpy_record_object) <ptid>: Delete
5628 field, replaced with ...
5629 <thread>: ... this new field. All users adjusted.
5630 (recpy_element_object) <ptid>: Delete
5631 field, replaced with ...
5632 <thread>: ... this new field. All users adjusted.
5633 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
5634 a ptid_t. All callers adjusted.
5635 * python/py-threadevent.c: Include "gdbthread.h".
5636 (get_event_thread): Use thread_to_thread_object.
5637 * python/python-internal.h (struct inferior_object): Forward
5638 declare.
5639 (find_thread_object, find_inferior_object): Delete declarations.
5640 (thread_to_thread_object, inferior_to_inferior_object): New
5641 declarations.
5642 * record-btrace.c: Include "inferior.h".
5643 (require_btrace_thread): Use inferior_thread.
5644 (record_btrace_frame_sniffer)
5645 (record_btrace_tailcall_frame_sniffer): Use inferior_thread.
5646 (get_thread_current_frame): Use scoped_restore_current_thread and
5647 switch_to_thread.
5648 (get_thread_current_frame): Use thread pointer directly.
5649 (record_btrace_replay_at_breakpoint): Use thread's inferior
5650 pointer directly.
5651 * record-full.c: Include "inferior.h".
5652 * regcache.c: Include "gdbthread.h".
5653 (get_thread_arch_regcache): Use the inferior's address space
5654 directly.
5655 (get_thread_regcache, registers_changed_thread): New.
5656 * regcache.h (get_thread_regcache(thread_info *thread)): New
5657 overload.
5658 (registers_changed_thread): New.
5659 (remote_target) <remote_detach_1>: Swap order of parameters.
5660 (remote_add_thread): <remote_add_thread>: Return the new thread.
5661 (get_remote_thread_info(ptid_t)): New overload.
5662 (remote_target::remote_notice_new_inferior): Use thread pointers
5663 directly.
5664 (remote_target::process_initial_stop_replies): Use
5665 thread_info::set_running.
5666 (remote_target::remote_detach_1, remote_target::detach)
5667 (extended_remote_target::detach): Adjust.
5668 * stack.c (frame_show_address): Use inferior_thread.
5669 * target-debug.h (target_debug_print_thread_info_pp): New.
5670 * target-delegates.c: Regenerate.
5671 * target.c (default_thread_address_space): Delete.
5672 (memory_xfer_partial_1): Use current_inferior.
5673 (target_detach): Use current_inferior.
5674 (target_thread_address_space): Delete.
5675 (generic_mourn_inferior): Use current_inferior.
5676 * target.h (struct target_ops) <thread_address_space>: Delete.
5677 (target_thread_address_space): Delete.
5678 * thread.c (init_thread_list): Use ALL_THREADS_SAFE. Use thread
5679 pointers directly.
5680 (delete_thread_1, delete_thread, delete_thread_silent): Take a
5681 thread pointer instead of a ptid_t. Adjust all callers.
5682 (ptid_to_global_thread_id, global_thread_id_to_ptid): Delete.
5683 (first_thread_of_process): Delete, replaced by ...
5684 (first_thread_of_inferior): ... this new function. All callers
5685 adjusted.
5686 (any_thread_of_process): Rename to ...
5687 (any_thread_of_inferior): ... this, and take an inferior pointer.
5688 (any_live_thread_of_process): Rename to ...
5689 (any_live_thread_of_inferior): ... this, and take an inferior
5690 pointer.
5691 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
5692 (value_in_thread_stack_temporaries)
5693 (get_last_thread_stack_temporary): Take a thread pointer instead
5694 of a ptid_t. Adjust all callers.
5695 (thread_info::set_running): New.
5696 (validate_registers_access): Use inferior_thread.
5697 (can_access_registers_ptid): Rename to ...
5698 (can_access_registers_thread): ... this, and take a thread
5699 pointer.
5700 (print_thread_info_1): Adjust to compare thread pointers instead
5701 of ptids.
5702 (switch_to_no_thread, switch_to_thread): Make extern.
5703 (scoped_restore_current_thread::~scoped_restore_current_thread):
5704 Use m_thread pointer directly.
5705 (scoped_restore_current_thread::scoped_restore_current_thread):
5706 Use inferior_thread.
5707 (thread_command): Use thread pointer directly.
5708 (thread_num_make_value_helper): Use inferior_thread.
5709 * top.c (execute_command): Use inferior_thread.
5710 * tui/tui-interp.c: Include "inferior.h".
5711 * varobj.c (varobj_create): Use inferior_thread.
5712 (value_of_root_1): Use find_thread_global_id instead of
5713 global_thread_id_to_ptid.
5714
33bab475
AH
57152018-06-21 Alan Hayward <alan.hayward@arm.com>
5716
5717 * regcache.c (readable_regcache::read_part): Avoid memcpy when
5718 possible.
5719 (regcache::write_part): Likewise.
5720 (readable_regcache::cooked_read_part): Update comment.
5721 (readable_regcache::cooked_write_part): Likewise.
5722 * regcache.h: (readable_regcache::read_part): Likewise.
5723 (regcache::write_part): Likewise.
5724
8363f9d5
RB
57252018-06-21 Richard Bunt <richard.bunt@arm.com>
5726 Dirk Schubert <dirk.schubert@arm.com>
5727
5728 * aarch64-linux-nat.c (post_attach): New.
5729 (aarch64_linux_nat_target::post_attach): Override post_attach to
5730 record the number of hardware debug registers.
5731
0d0b0ea2
TT
57322018-06-20 Tom Tromey <tom@tromey.com>
5733
5734 * python/py-param.c (add_setshow_generic): Make parameters const.
5735 (parmpy_init): Update.
5736
302abd6e
SM
57372018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
5738
5739 * regcache.h (regcache_cooked_read_ftype): Rename to...
5740 (register_read_ftype): ...this, change type to function_view.
5741 (class reg_buffer) <save>: Remove src parameter.
5742 (readonly_detached_regcache) <readonly_detached_regcache>: Make
5743 parameter non-const in first overload. Remove src parameter in
5744 second overload.
5745 * regcache.c (do_cooked_read): Remove.
5746 (readonly_detached_regcache::readonly_detached_regcache): Make
5747 parameter non-const, adjust call to other constructor.
5748 (reg_buffer::save): Remove src parameter.
5749 * frame.c (do_frame_register_read): Remove.
5750 (frame_save_as_regcache): Use lambda function.
5751 * ppc-linux-tdep.c (ppu2spu_unwind_register): Change type of src
5752 parameter to ppu2spu_data *.
5753 (ppu2spu_sniffer): Use lambda function.
5754
19f3f25f
SM
57552018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
5756
5757 * record-full.c (record_full_target::insert_breakpoint): Remove
5758 "struct" keyword, add const.
5759
d0ac1c44
SM
57602018-06-19 Simon Marchi <simon.marchi@ericsson.com>
5761
5762 * common/common-defs.h (PACKAGE_NAME, PACKAGE_VERSION,
5763 PACKAGE_STRING, PACKAGE_TARNAME): Undefine.
5764 * configure.ac: Remove AC_PREREQ, add missing quoting.
5765 * gnulib/configure.ac: Modernize usage of
5766 AC_INIT/AM_INIT_AUTOMAKE. Remove AC_PREREQ.
5767 * gnulib/update-gnulib.sh (AUTOCONF_VERSION): Bump to 2.69.
5768 (AUTOMAKE_VERSION): Bump to 1.15.1.
5769 * configure: Re-generate.
5770 * config.in: Re-generate.
5771 * aclocal.m4: Re-generate.
5772 * gnulib/aclocal.m4: Re-generate.
5773 * gnulib/config.in: Re-generate.
5774 * gnulib/configure: Re-generate.
5775 * gnulib/import/Makefile.in: Re-generate.
5776
6ae50267
PA
57772018-06-19 Pedro Alves <palves@redhat.com>
5778
5779 * minsyms.c (msym_prefer_to_msym_type): New, factored out from ...
5780 (lookup_minimal_symbol_by_pc_section): ... here with
5781 gdb_assert_not_reached added.
5782
61b04dd0
PA
57832018-06-19 Pedro Alves <palves@redhat.com>
5784
5785 * inline-frame.c (stopped_by_user_bp_inline_frame): Replace PC
5786 parameter with a block parameter. Compare location's block symbol
5787 with the frame's block instead of addresses.
5788 (skip_inline_frames): Pass the current block instead of the
5789 frame's address. Break out as soon as we determine the frame
5790 should not be skipped.
5791
f709fabb
TT
57922018-06-18 Tom Tromey <tom@tromey.com>
5793
5794 * solib-aix.c (solib_aix_get_section_offsets): Return
5795 unique_xmalloc_ptr.
5796 (solib_aix_solib_create_inferior_hook): Update.
5797
668eb2f0
TT
57982018-06-18 Tom Tromey <tom@tromey.com>
5799
5800 * solib-darwin.c (darwin_current_sos): Use unique_xmalloc_ptr.
5801
309822ca
TT
58022018-06-18 Tom Tromey <tom@tromey.com>
5803
5804 * solib-frv.c (frv_relocate_main_executable): Use
5805 unique_xmalloc_ptr.
5806 * solib-dsbt.c (dsbt_relocate_main_executable): Use
5807 unique_xmalloc_ptr.
5808
06424eac
TT
58092018-06-18 Tom Tromey <tom@tromey.com>
5810
5811 * objfiles.h (inhibit_section_map_updates): Update.
5812 (resume_section_map_updates, resume_section_map_updates_cleanup):
5813 Remove.
5814 * solib-svr4.c (svr4_handle_solib_event): Update.
5815 * objfiles.c (inhibit_section_map_updates): Return
5816 scoped_restore_tmpl<int>.
5817 (resume_section_map_updates, resume_section_map_updates_cleanup):
5818 Remove.
5819
b4be9fad
TT
58202018-06-18 Tom Tromey <tom@tromey.com>
5821
5822 * valprint.h (read_string): Update.
5823 * valprint.c (read_string): Change type of "buffer".
5824 (val_print_string): Update.
5825 * python/py-value.c (valpy_string): Update.
5826 * language.h (struct language_defn) <la_get_string>: Change
5827 type of "buffer".
5828 (default_get_string, c_get_string): Update.
5829 * language.c (default_get_string): Change type of "buffer".
5830 * guile/scm-value.c (gdbscm_value_to_string): Update.
5831 * c-lang.c (c_get_string): Change type of "buffer".
5832
3f0dbd67
TT
58332018-06-18 Tom Tromey <tom@tromey.com>
5834
5835 * ser-mingw.c (struct pipe_state_destroyer): New.
5836 (pipe_state_up): New typedef.
5837 (cleanup_pipe_state): Remove.
5838 (pipe_windows_open): Use pipe_state_up. Don't release argv.
5839
69d340c6
TT
58402018-06-18 Tom Tromey <tom@tromey.com>
5841
5842 * rust-lang.h (rust_yyerror): Don't declare.
5843 * rust-lang.c (rust_language_defn): Update.
5844 * rust-exp.y (yyerror): Now static.
5845 * parse.c (parse_exp_in_context_1): Update.
5846 * p-lang.h (p_yyerror): Don't declare.
5847 * p-lang.c (p_language_defn): Update.
5848 * p-exp.y (yyerror): Now static.
5849 * opencl-lang.c (opencl_language_defn): Update.
5850 * objc-lang.c (objc_language_defn): Update.
5851 * m2-lang.h (m2_yyerror): Don't declare.
5852 * m2-lang.c (m2_language_defn): Update.
5853 * m2-exp.y (yyerror): Now static.
5854 * language.h (struct language_defn) <la_error>: Remove.
5855 * language.c (unk_lang_error): Remove.
5856 (unknown_language_defn, auto_language_defn): Remove.
5857 * go-lang.h (go_yyerror): Don't declare.
5858 * go-lang.c (go_language_defn): Update.
5859 * go-exp.y (yyerror): Now static.
5860 * f-lang.h (f_yyerror): Don't declare.
5861 * f-lang.c (f_language_defn): Update.
5862 * f-exp.y (yyerror): Now static.
5863 * d-lang.h (d_yyerror): Don't declare.
5864 * d-lang.c (d_language_defn): Update.
5865 * d-exp.y (yyerror): Now static.
5866 * c-lang.h (c_yyerror): Don't declare.
5867 * c-lang.c (c_language_defn, cplus_language_defn)
5868 (asm_language_defn, minimal_language_defn): Update.
5869 * c-exp.y (yyerror): Now static.
5870 * ada-lang.h (ada_yyerror): Don't declare.
5871 * ada-lang.c (ada_language_defn): Update.
5872 * ada-exp.y (yyerror): Now static.
5873
e9902bfc
AH
58742018-06-18 Alan Hayward <alan.hayward@arm.com>
5875
5876 * aarch64-linux-nat.c (fetch_sveregs_from_thread): New function.
5877 (store_sveregs_to_thread): Likewise.
5878 (aarch64_linux_fetch_inferior_registers): Check for SVE.
5879 (aarch64_linux_store_inferior_registers): Likewise.
5880 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs): New
5881 function.
5882 (aarch64_sve_regs_copy_to_regcache): Likewise.
5883 (aarch64_sve_regs_copy_from_regcache): Likewise.
5884 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_sveregs): New
5885 declaration.
5886 (aarch64_sve_regs_copy_to_regcache): Likewise.
5887 (aarch64_sve_regs_copy_from_regcache): Likewise.
5888 (sve_context): Structure from Linux headers.
5889 (SVE_SIG_ZREGS_SIZE): Define from Linux headers.
5890 (SVE_SIG_ZREG_SIZE): Likewise.
5891 (SVE_SIG_PREG_SIZE): Likewise.
5892 (SVE_SIG_FFR_SIZE): Likewise.
5893 (SVE_SIG_REGS_OFFSET): Likewise.
5894 (SVE_SIG_ZREGS_OFFSET): Likewise.
5895 (SVE_SIG_ZREG_OFFSET): Likewise.
5896 (SVE_SIG_ZREGS_SIZE): Likewise.
5897 (SVE_SIG_PREGS_OFFSET): Likewise.
5898 (SVE_SIG_PREG_OFFSET): Likewise.
5899 (SVE_SIG_PREGS_SIZE): Likewise.
5900 (SVE_SIG_FFR_OFFSET): Likewise.
5901 (SVE_SIG_REGS_SIZE): Likewise.
5902 (SVE_SIG_CONTEXT_SIZE): Likewise.
5903 (SVE_PT_REGS_MASK): Likewise.
5904 (SVE_PT_REGS_FPSIMD): Likewise.
5905 (SVE_PT_REGS_SVE): Likewise.
5906 (SVE_PT_VL_INHERIT): Likewise.
5907 (SVE_PT_VL_ONEXEC): Likewise.
5908 (SVE_PT_REGS_OFFSET): Likewise.
5909 (SVE_PT_FPSIMD_OFFSET): Likewise.
5910 (SVE_PT_FPSIMD_SIZE): Likewise.
5911 (SVE_PT_SVE_ZREG_SIZE): Likewise.
5912 (SVE_PT_SVE_PREG_SIZE): Likewise.
5913 (SVE_PT_SVE_FFR_SIZE): Likewise.
5914 (SVE_PT_SVE_FPSR_SIZE): Likewise.
5915 (SVE_PT_SVE_FPCR_SIZE): Likewise.
5916 (__SVE_SIG_TO_PT): Likewise.
5917 (SVE_PT_SVE_OFFSET): Likewise.
5918 (SVE_PT_SVE_ZREGS_OFFSET): Likewise.
5919 (SVE_PT_SVE_ZREG_OFFSET): Likewise.
5920 (SVE_PT_SVE_ZREGS_SIZE): Likewise.
5921 (SVE_PT_SVE_PREGS_OFFSET): Likewise.
5922 (SVE_PT_SVE_PREG_OFFSET): Likewise.
5923 (SVE_PT_SVE_PREGS_SIZE): Likewise.
5924 (SVE_PT_SVE_FFR_OFFSET): Likewise.
5925 (SVE_PT_SVE_FPSR_OFFSET): Likewise.
5926 (SVE_PT_SVE_FPCR_OFFSET): Likewise.
5927 (SVE_PT_SVE_SIZE): Likewise.
5928 (SVE_PT_SIZE): Likewise.
5929 (HAS_SVE_STATE): New define.
5930
17a1cc89
AH
59312018-06-18 Alan Hayward <alan.hayward@arm.com>
5932
5933 * nat/aarch64-sve-linux-sigcontext.h: New file.
5934 * nat/aarch64-sve-linux-ptrace.h (SVE_VQ_BYTES): Move to
5935 new files.
5936 (SVE_VQ_MIN): Likewise.
5937 (SVE_VQ_MAX): Likewise.
5938 (SVE_VL_MIN): Likewise.
5939 (SVE_VL_MAX): Likewise.
5940 (SVE_NUM_ZREGS): Likewise.
5941 (SVE_NUM_PREGS): Likewise.
5942 (sve_vl_valid): Likewise.
5943 (struct user_sve_header): Likewise.
5944
7010835a
AB
59452018-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
5946 Richard Bunt <Richard.Bunt@arm.com>
5947
5948 * linux-nat.c (stop_wait_callback): Don't discard SIGSTOP if it
5949 was requested by GDB.
5950
479b3ef4
TV
59512018-06-15 Tom de Vries <tdevries@suse.de>
5952
5953 * MAINTAINERS (Write After Approval): Add Tom de Vries.
5954
8199b8f4
SM
59552018-06-14 Simon Marchi <simon.marchi@polymtl.ca>
5956
5957 * gnulib/update-gnulib.sh: Print expected versions of
5958 autoconf/aclocal.
5959
55c748a1
SM
59602018-06-14 Simon Marchi <simon.marchi@ericsson.com>
5961
5962 * arch-utils.c (default_type_align): Use type_length_units.
5963 * gdbtypes.c (type_align): Use type_length_units.
5964
87a8eca7
PW
59652018-06-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5966
5967 * cli/cli-script.c (_initialize_cli_script): Fix online documentation
5968 of 'define' command.
5969
5d9a0608
TV
59702018-06-14 Tom de Vries <tdevries@suse.de>
5971
5972 PR cli/22573
5973 * infcmd.c (print_return_value_1): Use get_user_print_options instead of
5974 get_no_prettyformat_print_options.
5975
ab89b5a5
SM
59762018-06-13 Simon Marchi <simon.marchi@ericsson.com>
5977
5978 * sparc-nat.h: Include target.h.
5979 * sparc64-linux-nat.c (class sparc64_linux_nat_target)
5980 <fetch_registers>: Remove this argument in function call.
5981 <store_registers>: Remove this argument in function call, remove
5982 extra semicolon.
5983 <low_forget_process>: Call sparc64_forget_process instead of
5984 sparc_forget_process.
5985
62c808ae
RO
59862018-06-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5987
5988 * procfs.c (_initialize_procfs): Use add_inf_child_target.
5989 (procfs_target::make_corefile_notes): Adjust to new
5990 target_read_alloc return type.
5991
1840d81a
AB
59922018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
5993 Stephen Roberts <stephen.roberts@arm.com>
5994
5995 PR gdb/22882
5996 * infrun.c (fetch_inferior_event): If GDB is not proceeding then
5997 run INF_EXEC_COMPLETE handler, even when not calling normal_stop.
5998 Move should_notify_stop local into more inner scope.
5999
9516f85a
AB
60002018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
6001 Stephen Roberts <stephen.roberts@arm.com>
6002
6003 PR gdb/22882
6004 * infrun.c (resume_1): Add call to mark_async_event_handler.
6005
defd2172
AB
60062018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
6007
6008 * infrun.c (do_target_wait): Change old version of $pc printed.
6009
7b23e087
SM
60102018-06-11 Simon Marchi <simon.marchi@ericsson.com>
6011
6012 * dwarf2read.c (read_index_from_section): Rename to...
6013 (read_gdb_index_from_section): ... this, update all callers.
6014 (dwarf2_read_index): Rename to...
6015 (dwarf2_read_gdb_index): ... this, update all callers.
6016
69c67a0b
JDA
60172018-06-11 John David Anglin <danglin@gcc.gnu.org>
6018
6019 * gdb/hppa-linux-nat.c
6020 (hppa_linux_nat_target::fetch_inferior_registers): Rename to
6021 hppa_linux_nat_target::fetch_registers.
6022
65d4cada
AH
60232018-06-11 Alan Hayward <alan.hayward@arm.com>
6024
6025 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Add mappings.
6026 * aarch64-tdep.h (AARCH64_DWARF_SVE_VG): Add define.
6027 (AARCH64_DWARF_SVE_FFR): Likewise.
6028 (AARCH64_DWARF_SVE_P0): Likewise.
6029 (AARCH64_DWARF_SVE_Z0): Likewise.
6030
f868386e
AH
60312018-06-11 Alan Hayward <alan.hayward@arm.com>
6032
6033 * common/common-regcache.h (raw_compare): New function.
6034 * regcache.c (regcache::raw_compare): Likewise.
6035 * regcache.h (regcache::raw_compare): New declaration.
6036
9c861883
AH
60372018-06-11 Alan Hayward <alan.hayward@arm.com>
6038
6039 * common/common-regcache.h (reg_buffer_common): New structure.
6040 * regcache.c (reg_buffer::invalidate): Move from detached_regcache.
6041 (reg_buffer::raw_supply): Likewise.
6042 (reg_buffer::raw_supply_integer): Likewise.
6043 (reg_buffer::raw_supply_zeroed): Likewise.
6044 (reg_buffer::raw_collect): Likewise.
6045 (reg_buffer::raw_collect_integer): Likewise.
6046 * regcache.h (reg_buffer::invalidate): Move from detached_regcache.
6047 (reg_buffer::raw_supply): Likewise.
6048 (reg_buffer::raw_supply_integer): Likewise.
6049 (reg_buffer::raw_supply_zeroed): Likewise.
6050 (reg_buffer::raw_collect): Likewise.
6051 (reg_buffer::raw_collect_integer): Likewise.
6052
953edf2b
TT
60532018-06-10 Tom Tromey <tom@tromey.com>
6054
6055 * remote.c (stop_reply_p): Remove typedef. Don't declare queue.
6056 (class remote_state) <stop_reply_queue>: Now std::vector.
6057 (remote_state::~remote_state)
6058 (remote_target::stop_reply_queue_length): Update.
6059 (struct queue_iter_param, remove_child_of_pending_fork)
6060 (struct check_pending_event_prevents_wildcard_vcont_callback_data)
6061 (check_pending_event_prevents_wildcard_vcont_callback)
6062 (remove_stop_reply_for_inferior)
6063 (remove_stop_reply_of_remote_state)
6064 (remote_notif_remove_once_on_match)
6065 (stop_reply_match_ptid_and_ws)
6066 (remote_kill_child_of_pending_fork): Remove.
6067 (remote_target::remove_new_fork_children)
6068 (remote_target::check_pending_events_prevent_wildcard_vcont)
6069 (remote_target::discard_pending_stop_replies)
6070 (remote_target::discard_pending_stop_replies_in_queue)
6071 (remote_target::remote_notif_remove_queued_reply)
6072 (remote_target::queued_stop_reply)
6073 (remote_target::push_stop_reply, remote_target::peek_stop_reply)
6074 (remote_target::wait, remote_target::kill_new_fork_children)
6075 (remote_target::async): Update.
6076
1ddbba9d
TT
60772018-06-10 Tom Tromey <tom@tromey.com>
6078
6079 * record-full.c (record_full_arch_list_cleanups): Remove.
6080 (record_full_message): Use try/catch.
6081 (record_full_wait_cleanups): Remove.
6082 (record_full_wait_1): Use try/catch.
6083 (record_full_restore): Likewise.
6084
219605fd
TT
60852018-06-10 Tom Tromey <tom@tromey.com>
6086
6087 * record-full.c (record_full_breakpoint_p): Remove typedef. Don't
6088 declare VEC. Add constructor.
6089 <in_target_beneath>: Now bool.
6090 (record_full_breakpoints): Now a std::vector, static.
6091 (record_full_sync_record_breakpoints)
6092 (record_full_init_record_breakpoints)
6093 (record_full_target::insert_breakpoint)
6094 (record_full_target::remove_breakpoint): Update. Don't use XNEW.
6095
71b73764
SM
60962018-06-10 Simon Marchi <simon.marchi@polymtl.ca>
6097
6098 * dwarf2read.c (process_cu_includes): Remove struct keyword.
6099 * serial.c (serial_interface_lookup): Remove struct keyword.
6100
4360561f
TT
61012018-06-10 Tom Tromey <tom@tromey.com>
6102
6103 * procfs.c (procfs_target::xfer_partial): Use "beneath" as a
6104 method.
6105 * nto-procfs.c (nto_procfs_target::xfer_partial): Use "beneath" as
6106 a method.
6107 * go32-nat.c (go32_nat_target::xfer_partial): Use "beneath" as a
6108 method.
6109 * arm-linux-nat.c (arm_linux_nat_target::read_description): Use
6110 "beneath" as a method.
6111 * arm-fbsd-nat.c (arm_fbsd_nat_target::read_description):
6112 Use "beneath" as a method.
6113
d14b92bf
TT
61142018-06-10 Tom Tromey <tom@tromey.com>
6115
6116 * tracefile.c (struct trace_file_writer_deleter): New.
6117 <operator()>: Rename from trace_file_writer_xfree.
6118 (trace_file_writer_up): New typedef.
6119 (tsave_command, trace_save_tfile, trace_save_ctf): Update.
6120
835dcf92
SM
61212018-06-09 Simon Marchi <simon.marchi@ericsson.com>
6122
6123 * regcache.h (reg_buffer) <~reg_buffer>: Use default destructor.
6124 <m_registers, m_register_status>: Change type to
6125 std::unique_ptr.
6126 * regcache.c (reg_buffer::reg_buffer): Use new instead of
6127 XCNEWVEC.
6128
aac0d564
SM
61292018-06-09 Simon Marchi <simon.marchi@ericsson.com>
6130
6131 * common/common-regcache.h (enum register_status): Add
6132 underlying type "signed char".
6133 * regcache.h (reg_buffer) <m_register_status>: Change type to
6134 register_status *.
6135 * regcache.c (reg_buffer::reg_buffer): Alocate arrays of
6136 register_status instead of signed char.
6137 (reg_buffer::save): Use REG_UNKNOWN instead of 0.
6138 (reg_buffer::get_register_status): Remove cast.
6139 (readable_regcache::raw_read): Remove cast.
6140 (readable_regcache::cooked_read): Remove cast.
6141
77ad7394
TT
61422018-06-09 Tom Tromey <tom@tromey.com>
6143
6144 * source.c (reverse_search_command, forward_search_command): Use
6145 scoped_fd.
6146
191cca63
TT
61472018-06-09 Tom Tromey <tom@tromey.com>
6148
6149 * serial.c (serial_ops_p): Remove typedef. Don't declare VEC.
6150 (serial_ops_list): Now static, std::vector.
6151 (serial_interface_lookup, serial_add_interface): Update.
6152
c5d0225d
TT
61532018-06-09 Tom Tromey <tom@tromey.com>
6154
6155 * dwarf2read.c (process_cu_includes): Update.
6156 (process_full_comp_unit): Update.
6157 * dwarf2read.h (struct dwarf2_per_objfile) <just_read_cus>: Now a
6158 std::vector.
6159
aeab5128
PK
61602018-06-08 Paul Koning <paul_koning@dell.com>
6161
6162 PR gdb/23252
6163
6164 * python/python.c (do_start_initialization):
6165 Avoid call to internal Python API.
6166 (init__gdb_module): New function.
6167
5045b3d7
GB
61682018-06-08 Gary Benson <gbenson@redhat.com>
6169
6170 * linux-thread-db.c (valprint.h): New include.
6171 (struct check_thread_db_info): New structure.
6172 (check_thread_db_on_load, tdb_testinfo): New static globals.
6173 (check_thread_db, check_thread_db_callback): New functions.
6174 (try_thread_db_load_1): Run integrity checks if requested.
6175 (maintenance_check_libthread_db): New function.
6176 (_initialize_thread_db): Register "maint check libthread-db"
6177 and "maint set/show check-libthread-db".
6178 * NEWS: Mention the above new commands.
6179
2f4f025f
TT
61802018-06-08 Tom Tromey <tom@tromey.com>
6181
6182 * windows-nat.c (windows_nat_target::xfer_partial): "beneath" is
6183 now a method.
6184
343b0027
TT
61852018-06-08 Tom Tromey <tom@tromey.com>
6186
6187 * btrace.c (parse_xml_raw): Use gdb::unique_xmalloc_ptr.
6188
8dcc53b3
TT
61892018-06-08 Tom Tromey <tom@tromey.com>
6190
6191 * common/btrace-common.h (struct btrace_data): Add constructor,
6192 destructor, move assignment operator.
6193 <empty, clear, fini>: New methods.
6194 <format>: Initialize.
6195 (btrace_data_init, btrace_data_fini, btrace_data_clear)
6196 (btrace_data_empty): Don't declare.
6197 * common/btrace-common.c (btrace_data_init): Remove.
6198 (btrace_data::fini): Rename from btrace_data_fini.
6199 (btrace_data::empty): Rename from btrace_data_empty.
6200 (btrace_data::clear): Rename from btrace_data_clear. Return
6201 bool.
6202 * btrace.h (make_cleanup_btrace_data): Don't declare.
6203 * btrace.c (btrace_add_pc, btrace_stitch_trace, btrace_clear)
6204 (parse_xml_btrace): Update.
6205 (do_btrace_data_cleanup, make_cleanup_btrace_data): Remove.
6206 (maint_btrace_clear_packet_history_cmd): Update.
6207
a1740ee1
PA
62082018-06-07 Pedro Alves <palves@redhat.com>
6209
6210 * target.h (target_ops) <beneath>: Now a method. All references
6211 updated.
6212 (class target_stack): New.
6213 * target.c (g_target_stack): New.
6214 (g_current_top_target): Delete.
6215 (current_top_target): Get the top target out of g_target_stack.
6216 (target_stack::push, target_stack::unpush): New.
6217 (push_target, unpush_target): Reimplement.
6218 (target_is_pushed): Reimplement in terms of g_target_stack.
6219 (target_ops::beneath, target_stack::find_beneath): New.
6220
d6ca69cd
PA
62212018-06-07 Pedro Alves <palves@redhat.com>
6222
6223 * target.h (find_target_beneath): Delete declaration.
6224 * target.c (find_target_beneath): Delete definition.
6225 * aix-thread.c: All callers of find_target_beneath adjusted to
6226 call target_ops::beneath instead.
6227 * bsd-uthread.c: Likewise.
6228 * linux-thread-db.c: Likewise.
6229 * ravenscar-thread.c: Likewise.
6230 * sol-thread.c: Likewise.
6231 * spu-multiarch.c: Likewise.
6232
b6a8c27b
PA
62332018-06-07 Pedro Alves <palves@redhat.com>
6234
6235 * target.h (target_ops) <beneath>: Now a method. All references
6236 updated.
6237 (target_ops) <m_beneath>: New.
6238 * target.c (target_ops::beneath): New.
6239 * corelow.c: Adjust all references to target_ops::beneath.
6240 * linux-thread-db.c: Likewise.
6241 * make-target-delegates: Likewise.
6242 * record-btrace.c: Likewise.
6243 * record-full.c: Likewise.
6244 * remote.c: Likewise.
6245 * target.c: Likewise.
6246 * target-delegates.c: Regenerate.
6247
8b88a78e
PA
62482018-06-07 Pedro Alves <palves@redhat.com>
6249
6250 * target.h (target_stack): Delete.
6251 (current_top_target): Declare function.
6252 * target.c (target_stack): Delete.
6253 (g_current_top_target): New.
6254 (current_top_target): New function.
6255 * auxv.c: Use current_top_target instead of target_stack
6256 throughout.
6257 * avr-tdep.c: Likewise.
6258 * breakpoint.c: Likewise.
6259 * corefile.c: Likewise.
6260 * elfread.c: Likewise.
6261 * eval.c: Likewise.
6262 * exceptions.c: Likewise.
6263 * frame.c: Likewise.
6264 * gdbarch-selftests.c: Likewise.
6265 * gnu-v3-abi.c: Likewise.
6266 * ia64-tdep.c: Likewise.
6267 * ia64-vms-tdep.c: Likewise.
6268 * infcall.c: Likewise.
6269 * infcmd.c: Likewise.
6270 * infrun.c: Likewise.
6271 * linespec.c: Likewise.
6272 * linux-tdep.c: Likewise.
6273 * minsyms.c: Likewise.
6274 * ppc-linux-nat.c: Likewise.
6275 * ppc-linux-tdep.c: Likewise.
6276 * procfs.c: Likewise.
6277 * regcache.c: Likewise.
6278 * remote.c: Likewise.
6279 * rs6000-tdep.c: Likewise.
6280 * s390-linux-nat.c: Likewise.
6281 * s390-tdep.c: Likewise.
6282 * solib-aix.c: Likewise.
6283 * solib-darwin.c: Likewise.
6284 * solib-dsbt.c: Likewise.
6285 * solib-spu.c: Likewise.
6286 * solib-svr4.c: Likewise.
6287 * solib-target.c: Likewise.
6288 * sparc-tdep.c: Likewise.
6289 * sparc64-tdep.c: Likewise.
6290 * spu-tdep.c: Likewise.
6291 * symfile.c: Likewise.
6292 * symtab.c: Likewise.
6293 * target-descriptions.c: Likewise.
6294 * target-memory.c: Likewise.
6295 * target.c: Likewise.
6296 * target.h: Likewise.
6297 * tracefile-tfile.c: Likewise.
6298 * tracepoint.c: Likewise.
6299 * valops.c: Likewise.
6300 * valprint.c: Likewise.
6301 * value.c: Likewise.
6302 * windows-tdep.c: Likewise.
6303 * mi/mi-main.c: Likewise.
6304
c7110220
TT
63052018-06-07 Tom Tromey <tom@tromey.com>
6306
6307 * valprint.h (build_address_symbolic): Declare.
6308 * printcmd.c (print_address_symbolic): Update.
6309 (build_address_symbolic): Change "name" and "filename" to
6310 std::string.
6311 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
6312 Update.
6313 * defs.h (build_address_symbolic): Remove declaration.
6314
63bad7b6
AH
63152018-06-07 Alan Hayward <alan.hayward@arm.com>
6316
6317 * aarch64-tdep.c (AARCH64_SVE_V0_REGNUM): Add define.
6318 (aarch64_vnv_type): Add function.
6319 (aarch64_pseudo_register_name): Add V regs for SVE.
6320 (aarch64_pseudo_register_type): Likewise.
6321 (aarch64_pseudo_register_reggroup_p): Likewise.
6322 (aarch64_pseudo_read_value_2): Use V0 offset for SVE
6323 (aarch64_pseudo_read_value): Add V regs for SVE.
6324 (aarch64_pseudo_write_2): Use V0 offset for SVE
6325 (aarch64_pseudo_write): Add V regs for SVE.
6326 * aarch64-tdep.h (struct gdbarch_tdep): Add vnv_type.
6327
13e3c608
SDJ
63282018-06-06 Sergio Durigan Junior <sergiodj@redhat.com>
6329
6330 * arch/aarch64.h (sve_vq_from_vl): Guard with #ifndef.
6331 (sve_vl_from_vq): Likewise.
6332
c61b06a1
TT
63332018-06-05 Tom Tromey <tom@tromey.com>
6334
6335 * cli/cli-cmds.c (show_version): Update.
6336 * top.c (print_gdb_version): Add "interactive" parameter.
6337 Update.
6338 * main.c (captured_main_1): Update.
6339 * top.h (print_gdb_version): Add "interactive" parameter and a
6340 comment.
6341
115f7325
DM
63422018-06-05 David Malcolm <dmalcolm@redhat.com>
6343
6344 * common/enum-flags.h: Add trailing semicolon to example in
6345 comment.
6346
eb6af809
TT
63472018-06-05 Tom Tromey <tom@tromey.com>
6348
6349 PR cli/12326:
6350 * NEWS: Add entry about pager.
6351 * utils.c (pagination_disabled_for_command): New global.
6352 (prompt_for_continue): Allow "c" response to prompt.
6353 (reinitialize_more_filter): Clear
6354 pagination_disabled_for_command.
6355 (fputs_maybe_filtered): Check pagination_disabled_for_command.
6356
54d343a2
TT
63572018-06-04 Tom Tromey <tom@tromey.com>
6358
6359 * ada-lang.h (ada_lookup_symbol_list): Update.
6360 * ada-lang.c (resolve_subexp): Update.
6361 (symbols_are_identical_enums): Change type of syms. Remove nsyms
6362 parameter.
6363 (remove_extra_symbols, remove_irrelevant_renamings): Likewise.
6364 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Change
6365 results parameter to std::vector.
6366 (ada_iterate_over_symbols, ada_lookup_symbol, get_var_value):
6367 Update.
6368 * ada-exp.y (block_lookup): Update.
6369 (select_possible_type_sym): Change type of syms. Remove nsyms
6370 parameter.
6371 (write_var_or_type, write_name_assoc): Update.
6372
178d6a63
JB
63732018-06-04 Joel Brobecker <brobecker@adacore.com>
6374
6375 * windows-nat.c (windows_nat_target::xfer_partial): Return
6376 TARGET_XFER_E_IO if we need to delegate to the target beneath
6377 but BENEATH is NULL.
6378
baf00c2d
SM
63792018-06-04 Simon Marchi <simon.marchi@ericsson.com>
6380
6381 * Makefile.in (config.status): Add configure.nat as a
6382 dependency.
6383
214b073c
TT
63842018-06-04 Tom Tromey <tom@tromey.com>
6385
6386 * cp-name-parser.y (cpname_state): Add method declarations.
6387 (HANDLE_QUAL): Update.
6388 (cpname_state::d_grab, cpname_state::fill_comp)
6389 (cpname_state::make_operator, cpname_state::make_dtor)
6390 (cpname_state::make_builtin_type, cpname_state::make_name)
6391 (cpname_state::d_qualify, cpname_state::d_int_type)
6392 (cpname_state::d_unary, cpname_state::d_binary): Now methods.
6393 (%union): Move earlier.
6394
62b74cb8
AH
63952018-06-04 Alan Hayward <alan.hayward@arm.com>
6396
6397 * elfread.c (elf_symfile_segments): Use ELF_SECTION_IN_SEGMENT.
6398
3c5cd5c3
AH
63992018-06-04 Alan Hayward <alan.hayward@arm.com>
6400
6401 * aarch64-tdep.c (aarch64_pseudo_read_value_1): New helper func.
6402 (aarch64_pseudo_write_1): Likewise.
6403 (aarch64_pseudo_read_value): Use helper.
6404 (aarch64_pseudo_write): Likewise.
6405
59f413d5
PA
64062018-06-04 Pedro Alves <palves@redhat.com>
6407
6408 * darwin-nat.c (darwin_ops): Delete.
6409 (darwin_attach_pid): Use get_native_target.
6410
1332a140
AH
64112018-06-04 Alan Hayward <alan.hayward@arm.com>
6412
6413 * aarch64-tdep.c (aarch64_get_tdesc_vq): Use uint64_t for VQ.
6414 * aarch64-tdep.h (struct gdbarch_tdep): Likewise.
6415
ba2d2bb2
AH
64162018-06-04 Alan Hayward <alan.hayward@arm.com>
6417
6418 * aarch64-linux-nat.c (aarch64_linux_read_description): Support SVE.
6419 * aarch64-tdep.c (aarch64_get_tdesc_vq): New function.
6420 (aarch64_gdbarch_init): Check for SVE.
6421 * aarch64-tdep.h (gdbarch_tdep::has_sve): New function.
6422
64232018-06-04 Alan Hayward <alan.hayward@arm.com>
39bfb937
AH
6424
6425 * aarch64-tdep.c (aarch64_read_description): Use uint64_t for VQ.
6426 * aarch64-tdep.h (aarch64_read_description): Likewise.
6427 * arch/aarch64.c (aarch64_create_target_description): Likewise.
6428 * arch/aarch64.h (aarch64_create_target_description): Likewise.
6429 * features/aarch64-sve.c (create_feature_aarch64_sve): Likewise.
6430 * nat/aarch64-sve-linux-ptrace.c(aarch64_sve_get_vq): Likewise.
6431 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_vq): Likewise.
6432
41c60b4b
SM
64332018-06-02 Simon Marchi <simon.marchi@ericsson.com>
6434
6435 * value.c (value_fetch_lazy_bitfield): New.
6436 (value_fetch_lazy_memory): New.
6437 (value_fetch_lazy_register): New.
6438 (value_fetch_lazy): Factor out to smaller functions.
6439
7b640f72
TT
64402018-06-01 Tom Tromey <tom@tromey.com>
6441
6442 * cp-name-parser.y (backslashable, represented): Now const.
6443
98e69eb3
TT
64442018-06-01 Tom Tromey <tom@tromey.com>
6445
6446 * cp-name-parser.y: Include parser-defs.h.
6447 (parser_fprintf): Remove declaration.
6448
49265499
TT
64492018-06-01 Tom Tromey <tom@tromey.com>
6450
6451 * cp-name-parser.y: Use %pure-parser, %lex-param, and
6452 %parse-param.
6453 (lexptr, prev_lexptr, error_lexptr, global_errmsg, demangle_info)
6454 (global_result): Remove globals.
6455 (struct cpname_state): New.
6456 (yyparse): Don't declare.
6457 (yylex, yyerror): Move declarations after %union.
6458 (d_grab, fill_comp, make_operator, make_dtor, make_builtin_type)
6459 (make_name): Add state parameter.
6460 Update all callers.
6461 (d_qualify, d_int_type, d_unary, d_binary, parse_number) Add state
6462 parameter.
6463 (HANDLE_QUAL, HANDLE_SPECIAL, HANDLE_TOKEN2, HANDLE_TOKEN3):
6464 Update.
6465 (yylex): Add lvalp, state parameters.
6466 (yyerror): Add state parameter.
6467 (cp_demangled_name_to_comp): Update.
6468
55b6c984
TT
64692018-06-01 Tom Tromey <tom@tromey.com>
6470
6471 * cp-name-parser.y (parser_fprintf): Declare.
6472 (GDB_YY_REMAP_PREFIX): Define.
6473 Include yy-remap.h. Don't redefine yy* identifiers.
6474
3513a6bb
TT
64752018-06-01 Tom Tromey <tom@tromey.com>
6476
6477 * python/py-type.c (typy_legacy_template_argument): Update.
6478 * cp-support.h (cp_demangled_name_to_comp): Update.
6479 * cp-name-parser.y (cp_demangled_name_to_comp): Change errmsg
6480 parameter to be a "std::string *".
6481 (main): Update.
6482
e9cb46ab
L
64832018-06-01 H.J. Lu <hongjiu.lu@intel.com>
6484
6485 * ada-lex.l: Include "diagnostics.h" instead of
6486 "common/diagnostics.h".
6487 * unittests/environ-selftests.c: Likewise.
6488 * common/diagnostics.h: Moved to ../include.
6489
8e817061
JB
64902018-06-01 Joel Brobecker <brobecker@adacore.com>
6491
6492 * breakpoint.c (breakpoint_re_set): Temporarily force language_mode
6493 to language_mode_manual while calling breakpoint_re_set_one.
6494
a737d952
TT
64952018-06-01 Tom Tromey <tom@tromey.com>
6496
6497 * valops.c (value_cast_structs, destructor_name_p): Update.
6498 * symtab.c (gdb_mangle_name): Update.
6499 * stabsread.c (define_symbol, read_cpp_abbrev, read_baseclasses):
6500 Update.
6501 * p-valprint.c (pascal_object_is_vtbl_ptr_type)
6502 (pascal_object_print_value_fields, pascal_object_print_value):
6503 Update.
6504 * p-typeprint.c (pascal_type_print_derivation_info): Update.
6505 * linespec.c (find_methods): Update.
6506 * gdbtypes.h (type_name_no_tag): Remove.
6507 (type_name_or_error): Rename from type_name_no_tag_or_error.
6508 * gdbtypes.c (type_name_no_tag): Remove.
6509 (type_name_or_error): Rename from type_name_no_tag_or_error.
6510 (lookup_struct_elt_type, check_typedef): Update.
6511 * expprint.c (print_subexp_standard): Update.
6512 * dwarf2read.c (dwarf2_add_field, load_partial_dies): Update.
6513 * d-namespace.c (d_lookup_nested_symbol): Update.
6514 * cp-valprint.c (cp_is_vtbl_ptr_type, cp_print_value_fields)
6515 (cp_print_class_member): Update.
6516 * cp-namespace.c (cp_lookup_nested_symbol): Update.
6517 * completer.c (add_struct_fields): Update.
6518 * c-typeprint.c (cp_type_print_derivation_info)
6519 (c_type_print_varspec_prefix, c_type_print_base_struct_union):
6520 Update.
6521 * ada-lang.c (parse_old_style_renaming, xget_renaming_scope)
6522 (ada_prefer_type, ada_is_exception_sym): Update.
6523
e86ca25f
TT
65242018-06-01 Tom Tromey <tom@tromey.com>
6525
6526 * valops.c (enum_constant_from_type, value_namespace_elt)
6527 (value_maybe_namespace_elt): Update.
6528 * valarith.c (find_size_for_pointer_math): Update.
6529 * target-descriptions.c (make_gdb_type): Update.
6530 * symmisc.c (print_symbol): Update.
6531 * stabsread.c (define_symbol, read_type)
6532 (complain_about_struct_wipeout, add_undefined_type)
6533 (cleanup_undefined_types_1): Update.
6534 * rust-lang.c (rust_tuple_type_p, rust_slice_type_p)
6535 (rust_range_type_p, val_print_struct, rust_print_struct_def)
6536 (rust_internal_print_type, rust_composite_type)
6537 (rust_evaluate_funcall, rust_evaluate_subexp)
6538 (rust_inclusive_range_type_p): Update.
6539 * python/py-type.c (typy_get_tag): Update.
6540 * p-typeprint.c (pascal_type_print_base): Update.
6541 * mdebugread.c (parse_symbol, parse_type): Update.
6542 * m2-typeprint.c (m2_long_set, m2_record_fields, m2_enum):
6543 Update.
6544 * guile/scm-type.c (gdbscm_type_tag): Update.
6545 * go-lang.c (sixg_string_p): Update.
6546 * gnu-v3-abi.c (build_gdb_vtable_type, build_std_type_info_type):
6547 Update.
6548 * gdbtypes.h (struct main_type) <tag_name>: Remove.
6549 (TYPE_TAG_NAME): Remove.
6550 * gdbtypes.c (type_name_no_tag): Simplify.
6551 (check_typedef, check_types_equal, recursive_dump_type)
6552 (copy_type_recursive, arch_composite_type): Update.
6553 * f-typeprint.c (f_type_print_base): Update. Print "Type" prefix
6554 in summary mode when needed.
6555 * eval.c (evaluate_funcall): Update.
6556 * dwarf2read.c (fixup_go_packaging, read_structure_type)
6557 (process_structure_scope, read_enumeration_type)
6558 (read_namespace_type, read_module_type, determine_prefix): Update.
6559 * cp-support.c (inspect_type): Update.
6560 * coffread.c (process_coff_symbol, decode_base_type): Update.
6561 * c-varobj.c (c_is_path_expr_parent): Update.
6562 * c-typeprint.c (c_type_print_base_struct_union): Update.
6563 (c_type_print_base_1): Update. Print struct/class/union/enum in
6564 summary when using C language.
6565 * ax-gdb.c (gen_struct_ref, gen_namespace_elt)
6566 (gen_maybe_namespace_elt): Update.
6567 * ada-lang.c (ada_type_name): Simplify.
6568 (empty_record, ada_template_to_fixed_record_type_1)
6569 (template_to_static_fixed_type)
6570 (to_record_with_fixed_variant_part, ada_check_typedef): Update.
6571
c1ec8cea
TT
65722018-06-01 Tom Tromey <tom@tromey.com>
6573
6574 * dwarf2read.c (dwarf2_compute_name): Pass CU's language to
6575 c_print_type.
6576 * c-typeprint.c (c_print_type_1): Add "language" parameter.
6577 (c_print_type): Update.
6578 (c_print_type): New overload.
6579 (c_type_print_varspec_prefix, c_type_print_args)
6580 (c_type_print_varspec_suffix, c_print_type_no_offsets)
6581 (c_type_print_base_struct_union, c_type_print_base_1)
6582 (cp_type_print_method_args): Add "language" parameter.
6583 (c_type_print_base): Update.
6584 * c-lang.h (c_print_type): Add new overload.
6585
bc8453a7
TT
65862018-06-01 Tom Tromey <tom@tromey.com>
6587
6588 * typeprint.h (c_type_print_varspec_suffix): Don't declare.
6589 * c-typeprint.c (c_type_print_varspec_suffix): Now static.
6590
739e8682
AH
65912018-06-01 Alan Hayward <alan.hayward@arm.com>
6592
6593 * aarch64-tdep.c (aarch64_sve_register_names): New const
6594 var.
6595 * arch/aarch64.h (enum aarch64_regnum): Add SVE entries.
6596 (AARCH64_SVE_Z_REGS_NUM): New define.
6597 (AARCH64_SVE_P_REGS_NUM): Likewise.
6598 (AARCH64_SVE_NUM_REGS): Likewise.
6599
8a60efe7
UB
66002018-05-31 Uros Bizjak <ubizjak@gmail.com>
6601
6602 * nat/linux-ptrace.h [__alpha__]
6603 (GDB_ARCH_IS_TRAP_BRKPT, GDB_ARCH_IS_TRAP_HWBKPT): Remove
6604 definitions.
6605
4b2dfa9d
MR
66062018-05-31 Maciej W. Rozycki <macro@mips.com>
6607
6608 * arch-utils.c (gdbarch_info_fill): Set `default_byte_order' to
6609 the endianness selected.
6610 * NEWS: Document `set endian auto' mode operation update.
6611
122394f1
AH
66122018-05-31 Alan Hayward <alan.hayward@arm.com>
6613
6614 * Makefile.in: Add new header.
6615 * gdb/arch/aarch64.h (sve_vg_from_vl): New macro.
6616 (sve_vl_from_vg): Likewise.
6617 (sve_vq_from_vl): Likewise.
6618 (sve_vl_from_vq): Likewise.
6619 (sve_vq_from_vg): Likewise.
6620 (sve_vg_from_vq): Likewise.
6621 * configure.nat: Add new c file.
6622 * nat/aarch64-sve-linux-ptrace.c: New file.
6623 * nat/aarch64-sve-linux-ptrace.h: New file.
6624
95228a0d
AH
66252018-05-31 Alan Hayward <alan.hayward@arm.com>
6626
6627 * aarch64-linux-nat.c (aarch64_linux_read_description):
6628 Add parmeter zero.
6629 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
6630 Likewise.
6631 * aarch64-tdep.c (tdesc_aarch64_list): Add.
6632 (aarch64_read_description): Use VQ to index tdesc_aarch64_list.
6633 (aarch64_gdbarch_init): Add parmeter zero.
6634 * aarch64-tdep.h (aarch64_read_description): Add VQ parmeter.
6635 * arch/aarch64.c (aarch64_create_target_description): Check VQ.
6636 * arch/aarch64.h (aarch64_create_target_description): Add VQ.
6637 parmeter.
6638 * doc/gdb.texinfo: Describe SVE feature
6639 * features/aarch64-sve.c: New file.
6640
5969f0db
OJ
66412018-05-31 Omair Javaid <omair.javaid@linaro.org>
6642
6643 PR gdb/23210
6644 * gdbarch.sh (significant_addr_bit): Default to zero when
6645 not set by target architecture.
6646 * gdbarch.c: Re-generated.
6647 * utils.c (address_significant): Update.
6648
61367c61
JB
66492018-05-30 Joel Brobecker <brobecker@adacore.com>
6650
6651 * stack.c (func_command): Remove trailing newline in call to error.
6652
34a79281
SM
66532018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6654
6655 * regcache.h (regcache_raw_collect): Remove, update callers to
6656 use regcache::raw_collect.
6657 * regcache.c (regcache_raw_collect): Remove.
6658
73e1c03f
SM
66592018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6660
6661 * regcache.h (regcache_raw_supply): Remove, update callers to
6662 use detached_regcache::raw_supply.
6663 * regcache.c (regcache_raw_supply): Remove.
6664
e4c4a59b
SM
66652018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6666
6667 * regcache.h (regcache_cooked_write_part): Remove, update
6668 callers to use regcache::cooked_write_part.
6669 * regcache.c (regcache_cooked_write_part): Remove.
6670
73bb0000
SM
66712018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6672
6673 * regcache.h (regcache_cooked_read_part): Remove, update callers
6674 to use readable_regcache::cooked_read_part.
6675 * regcache.c (regcache_cooked_read_part): Remove.
6676
46a45e9d
SM
66772018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6678
6679 * regcache.h (regcache_cooked_read_value): Remove, update
6680 callers to use readable_regcache::cooked_read_value.
6681 * regcache.c (regcache_cooked_read_value): Remove.
6682
b66f5587
SM
66832018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6684
6685 * regcache.h (regcache_cooked_write): Remove, update callers to
6686 use regcache::cooked_write.
6687 * regcache.c (regcache_cooked_write): Remove.
6688
6aa7d724
SM
66892018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6690
6691 * regcache.h (regcache_invalidate): Remove, update callers to
6692 use detached_regcache::invalidate instead.
6693 * regcache.c (regcache_invalidate): Remove.
6694
4f0420fd
SM
66952018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6696
6697 * regcache.h (regcache_raw_write_part): Remove, update callers
6698 to use regcache::raw_write_part instead.
6699 * regcache.c (regcache_raw_write_part): Remove.
6700
502fe83e
SM
67012018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6702
6703 * regcache.h (regcache_raw_read_part): Remove, update callers to
6704 use readable_regcache::raw_read_part instead.
6705 * regcache.c (regcache_raw_read_part): Remove.
6706
dca08e1f
SM
67072018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6708
6709 * regcache.h (regcache_cooked_read): Remove, update callers to
6710 use readable_regcache::cooked_read instead.
6711 * regcache.c (regcache_cooked_read): Remove.
6712
10eaee5f
SM
67132018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6714
6715 * regcache.h (regcache_raw_write): Remove, update callers to use
6716 regcache::raw_write instead.
6717 * regcache.c (regcache_raw_write): Remove.
6718
0b883586
SM
67192018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6720
6721 * regcache.h (regcache_raw_read): Remove, update callers to use
6722 readable_regcache::raw_read instead.
6723 * regcache.c (regcache_raw_read): Remove.
6724
0b47d985
SM
67252018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6726
6727 * regcache.h (regcache_raw_update): Remove, update callers to
6728 use readable_regcache::raw_update instead.
6729 * regcache.c (regcache_raw_update): Remove.
6730
0ec9f114
SM
67312018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6732
6733 * regcache.h (regcache_register_status): Remove, update callers
6734 to use reg_buffer::get_register_status directly instead.
6735 * regcache.c (regcache_register_status): Remove.
6736
222312d3
SM
67372018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6738
6739 * regcache.h (regcache_get_ptid): Remove, update all callers to
6740 call regcache::ptid instead.
6741 * regcache.c (regcache_get_ptid): Remove.
6742
fdbe37e3
SM
67432018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6744
6745 * Makefile.in (ALL_TARGET_OBS): Add or1k-tdep.o.
6746
f7c6f423
PA
67472018-05-30 Pedro Alves <palves@redhat.com>
6748
6749 * common/common-exceptions.h (exception_rethrow): Use
6750 ATTRIBUTE_NORETURN.
6751
52941706
SM
67522018-05-29 Simon Marchi <simon.marchi@polymtl.ca>
6753
6754 * breakpoint.c (print_solib_event, check_status_catch_solib):
6755 Remove struct keyword in range-based for loops.
6756 * dbxread.c (find_corresponding_bincl_psymtab): Likewise.
6757 * dwarf2read.c (compute_delayed_physnames, rust_union_quirks);
6758 Likewise.
6759 * linespec.c (find_superclass_methods, search_minsyms_for_name):
6760 Likewise.
6761 * symfile.c (addr_info_make_relative): Likewise.
6762 * thread.c (value_in_thread_stack_temporaries): Likewise.
6763
bf2977b5
WP
67642018-06-12 Weimin Pan <weimin.pan@oracle.com>
6765
6766 PR gdb/16841
6767 * valops.c (value_struct_elt_for_reference): Call check_typedef on
6768 aggregate type to get its real type before accessing it.
6769
64cc34d8
WP
67702018-05-29 Weimin Pan <weimin.pan@oracle.com>
6771
6772 * minsyms.h (lookup_minimal_symbol_and_objfile): Remove declaration.
6773 * minsyms.c (lookup_minimal_symbol_and_objfile): Remove definition.
6774 * coff-pe-read.c (add_pe_forwarded_sym): Replace
6775 lookup_minimal_symbol_and_objfile with lookup_bound_minimal_symbol.
6776 * glibc-tdep.c (glibc_skip_solib_resolver): Likewise.
6777 * jit.c (jit_breakpoint_re_set_internal): Likewise.
6778 * printcmd.c (info_address_command): Likewise.
6779
e7ec8713
TT
67802018-05-29 Tom Tromey <tom@tromey.com>
6781
6782 * windows-nat.c (handle_exception): Update fall-through comment.
6783
bcb430e4
TT
67842018-05-29 Tom Tromey <tom@tromey.com>
6785
6786 * progspace.h (so_list_ptr): Remove typedef. Don't declare VEC.
6787 (struct program_space) <added_solibs>: Now a std::vector.
6788 * breakpoint.c (print_solib_event): Update.
6789 (check_status_catch_solib): Update.
6790 * progspace.c (clear_program_space_solib_cache): Update.
6791 * solib.c (update_solib_list): Update.
6792
894882e3
TT
67932018-05-29 Tom Tromey <tom@tromey.com>
6794
6795 * python/py-type.c (typy_richcompare): Update.
6796 * guile/scm-type.c (tyscm_equal_p_type_smob): Update.
6797 * gdbtypes.h (types_deeply_equal): Return bool.
6798 (types_equal): Likewise.
6799 * gdbtypes.c (type_equality_entry_d): Remove typedef. Don't
6800 declare VEC.
6801 (check_types_equal): Change worklist to std::vector. Return
6802 bool.
6803 (struct type_equality_entry): Add constructor.
6804 (compare_maybe_null_strings): Return bool.
6805 (check_types_worklist): Return bool. Change worklist to
6806 std::vector.
6807 (types_deeply_equal): Use std::vector.
6808 (types_equal): Return bool.
6809 (compare_maybe_null_strings): Simplify.
6810
10b2ded4
TT
68112018-05-29 Tom Tromey <tom@tromey.com>
6812
6813 * record-btrace.c (tp_t): Remove typedef. Don't declare VEC.
6814
4f7deebe
TT
68152018-05-29 Tom Tromey <tom@tromey.com>
6816
6817 * objc-lang.h: Don't include cp-support.h.
6818 * common/gdb_vecs.h (const_char_ptr): Remove typedef. Don't
6819 declare VEC.
6820
b8283aea
TT
68212018-05-27 Tom Tromey <tom@tromey.com>
6822
6823 * Makefile.in (DEPFILES): Don't reference REMOTE_OBS.
6824
41a883c8
TT
68252018-05-25 Tom Tromey <tom@tromey.com>
6826
6827 * value.c (value::location): Initialize.
6828
bf259e25
TT
68292018-05-25 Tom Tromey <tom@tromey.com>
6830
6831 * dbxread.c (init_bincl_list): Remove.
6832 (bincl_list): Now a std::vector.
6833 (bincls_allocated, next_bincl): Remove.
6834 (free_bincl_list, do_free_bincl_list_cleanup)
6835 (make_cleanup_free_bincl_list): Remove.
6836 (dbx_read_symtab, elfstab_build_psymtabs): Use scoped_restore,
6837 unique_xmalloc_ptr.
6838 (find_corresponding_bincl_psymtab, read_dbx_symtab): Update.
6839 (struct header_file_location): Add constructor.
6840 (add_bincl_to_list): Remove.
6841
d525a99b
TT
68422018-05-25 Tom Tromey <tom@tromey.com>
6843
6844 * tui/tui.c (tui_enable): Update.
6845 * mi/mi-interp.c (mi_interp::init): Update.
6846 * interps.h (class interp) <name>: New method.
6847 <m_name>: Rename from name.
6848 (~scoped_restore_interp): Update.
6849 * interps.c (interp::interp): Update.
6850 (interp_add, interp_set, interp_lookup_existing)
6851 (current_interp_named_p): Update.
6852
da505cff
TT
68532018-05-25 Tom Tromey <tom@tromey.com>
6854
6855 * interps.c (interp_name): Remove.
6856 * mi/mi-interp.c (mi_interp::init): Update.
6857 * interps.h (interp_name): Remove.
6858 (~scoped_restore_interp): Update.
6859 * tui/tui.c (tui_enable): Update.
6860
29f94340
TT
68612018-05-25 Tom Tromey <tom@tromey.com>
6862
6863 * utils.c (fputs_maybe_filtered): Update.
6864 * linespec.c (decode_line_full): Update.
6865 * mi/mi-interp.c (mi_on_normal_stop_1, mi_tsv_modified)
6866 (mi_print_breakpoint_for_event, mi_solib_loaded)
6867 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
6868 (mi_user_selected_context_changed): Update.
6869 * mi/mi-main.c (mi_execute_command): Update.
6870 * cli/cli-script.c (execute_control_command): Update.
6871 * python/python.c (execute_gdb_command): Update.
6872 * solib.c (info_sharedlibrary_command): Update.
6873 * interps.c (interp_ui_out): Remove.
6874 * interps.h (interp_ui_out): Remove.
6875
716b8bc5
TT
68762018-05-25 Tom Tromey <tom@tromey.com>
6877
6878 * tui/tui-interp.c (as_tui_interp): Use dynamic_cast.
6879 * mi/mi-interp.c (as_mi_interp): Use dynamic_cast.
6880 * cli/cli-interp.c (as_cli_interp): Use dynamic_cast.
6881
753ff9bd
TT
68822018-05-25 Tom Tromey <tom@tromey.com>
6883
6884 * cli/cli-interp.c (safe_execute_command): Use scoped_restore.
6885 * interps.c (interp_exec): Use scoped_restore.
6886
5ca3b260
TT
68872018-05-25 Tom Tromey <tom@tromey.com>
6888
6889 * remote.c (remote_target::remote_file_get): Use
6890 gdb::byte_vector.
6891 (remote_target::remote_file_put): Likewise.
6892
3173aa2f
TT
68932018-05-25 Tom Tromey <tom@tromey.com>
6894
6895 * coff-pe-read.c (struct read_pe_section_data) <section_name>: Now
6896 a std::string.
6897 (get_pe_section_index, add_pe_exported_sym): Update.
6898 (read_pe_exported_syms): Use gdb::def_vector.
6899
09a5e1b5
TT
69002018-05-25 Tom Tromey <tom@tromey.com>
6901
6902 * frame.c (remove_prev_frame): Remove.
6903 (get_prev_frame_if_no_cycle): Use TRY/CATCH.
6904
d8dab6c3
MR
69052018-05-25 Maciej W. Rozycki <macro@mips.com>
6906
6907 * mips-linux-tdep.h (mips_supply_fpregset, mips_fill_fpregset):
6908 Remove prototypes.
6909 * mips-linux-nat.c (supply_fpregset): Always call
6910 `mips64_supply_fpregset' rather than `mips_supply_fpregset'.
6911 (fill_fpregset): Always call `mips64_fill_fpregset' rather than
6912 `mips_fill_fpregset'.
6913 * mips-linux-tdep.c (mips_supply_fpregset)
6914 (mips_supply_fpregset_wrapper, mips_fill_fpregset)
6915 (mips_fill_fpregset_wrapper): Remove functions.
6916 (mips64_supply_fpregset, mips64_fill_fpregset): Update comments.
6917 (mips_linux_fpregset): Remove variable.
6918 (mips_linux_iterate_over_regset_sections): Use
6919 `mips64_linux_fpregset' in place of `mips_linux_fpregset'.
6920 (mips_linux_o32_sigframe_init): Remove comment.
6921
3c69da40
PA
69222018-05-25 Pedro Alves <palves@redhat.com>
6923
6924 * remote.c (struct vCont_action_support, MAXTHREADLISTRESULTS)
6925 (struct readahead_cache, struct packet_reg, struct
6926 remote_arch_state, class remote_state): Move higher up in the
6927 file.
6928 (remote_target::m_remote_state): Now an object instead of a pointer.
6929 (remote_target::get_remote_state): Adjust.
6930
39f0c204
AB
69312018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
6932
6933 * stack.c (select_and_print_frame): Delete.
6934 (struct function_bounds): Move struct within function.
6935 (func_command): Most content moved into new function
6936 find_frame_for_function, use new function, print result, add
6937 function comment.
6938 (find_frame_for_function): New function, now returns a result.
6939
d392224a
PW
69402018-05-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6941
6942 * stack.c (iterate_over_block_arg_vars): Fix comment.
6943 (print_frame_arg_vars): Pass stream in cb_data, not gdb_stdout.
6944
45f25d6c
AB
69452018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
6946
6947 PR gdb/23203
6948 * frame.c
6949 (scoped_restore_selected_frame::scoped_restore_selected_frame):
6950 Define.
6951 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
6952 Define.
6953 * frame.h (class scoped_restore_selected_frame): New class.
6954 * stack.c (print_frame_local_vars): Remove catching and rethrowing
6955 of any exception, use scoped_restore_selected_frame to restore the
6956 frame instead.
6957
da05d921
PA
69582018-05-24 Pedro Alves <palves@redhat.com>
6959
6960 * darwin-nat.h (darwin_nat_target::create_inferior): Mark with
6961 override.
6962
a8be540e
TT
69632018-05-23 Tom Tromey <tom@tromey.com>
6964
6965 * complaints.c (struct complaints): Remove.
6966 (symfile_complaint_book): Remove.
6967 (series): New global.
6968 (complaint_internal): Update.
6969 (clear_complaints): Update.
6970
ff1cf532
TT
69712018-05-23 Tom Tromey <tom@tromey.com>
6972
6973 * complaints.c (counters): New global.
6974 (struct complain): Remove.
6975 (struct complaints) <root>: Remove.
6976 (complaint_sentinel): Remove.
6977 (symfile_complaint_book): Update.
6978 (find_complaint) Remove.
6979 (complaint_internal, clear_complaints): Update.
6980
7ff88174
TT
69812018-05-23 Tom Tromey <tom@tromey.com>
6982
6983 * complaints.c (struct complain) <file, line>: Remove.
6984 (find_complaint): Remove file, line parameters.
6985 (complaint_internal): Update.
6986
de54e1a5
TT
69872018-05-23 Tom Tromey <tom@tromey.com>
6988
6989 * complaints.c (vcomplaint): Remove.
6990 (complaint_internal) Merge in contents of vcomplaint.
6991
2ac237e5
TT
69922018-05-23 Tom Tromey <tom@tromey.com>
6993
6994 * complaints.c (struct complaints) <explanation>: Remove.
6995 (symfile_explanations): Remove.
6996 (symfile_complaint_book): Update.
6997 (vcomplaint): Update.
6998 (struct explanation): Remove.
6999
b98664d3
TT
70002018-05-23 Tom Tromey <tom@tromey.com>
7001
7002 * complaints.c (symfile_complaints): Remove.
7003 (complaint_internal): Remove "complaints" parameter.
7004 (clear_complaints, vcomplaint): Remove "c" parameter.
7005 (get_complaints): Remove.
7006 * dwarf2read.c (dwarf2_statement_list_fits_in_line_number_section_complaint)
7007 (dwarf2_debug_line_missing_file_complaint)
7008 (dwarf2_debug_line_missing_end_sequence_complaint)
7009 (dwarf2_complex_location_expr_complaint)
7010 (dwarf2_const_value_length_mismatch_complaint)
7011 (dwarf2_section_buffer_overflow_complaint)
7012 (dwarf2_macro_malformed_definition_complaint)
7013 (dwarf2_invalid_attrib_class_complaint)
7014 (create_addrmap_from_index, dw2_symtab_iter_next)
7015 (dw2_expand_marked_cus)
7016 (dw2_debug_names_iterator::find_vec_in_debug_names)
7017 (dw2_debug_names_iterator::next, dw2_debug_names_iterator::next)
7018 (create_debug_type_hash_table, init_cutu_and_read_dies)
7019 (partial_die_parent_scope, add_partial_enumeration)
7020 (skip_one_die, fixup_go_packaging, quirk_rust_enum, process_die)
7021 (dwarf2_compute_name, dwarf2_physname, read_namespace_alias)
7022 (read_import_statement, read_file_scope, create_dwo_cu_reader)
7023 (create_cus_hash_table, create_dwp_hash_table)
7024 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
7025 (dwarf2_rnglists_process, dwarf2_ranges_process)
7026 (dwarf2_add_type_defn, dwarf2_attach_fields_to_type)
7027 (dwarf2_add_member_fn, get_alignment, maybe_set_alignment)
7028 (handle_struct_member_die, process_structure_scope)
7029 (read_array_type, read_common_block, read_module_type)
7030 (read_tag_pointer_type, read_typedef, read_base_type)
7031 (read_subrange_type, load_partial_dies, partial_die_info::read)
7032 (partial_die_info::read, partial_die_info::read)
7033 (partial_die_info::read, read_checked_initial_length_and_offset)
7034 (dwarf2_string_attr, read_formatted_entries)
7035 (dwarf_decode_line_header)
7036 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
7037 (new_symbol, dwarf2_const_value_attr, lookup_die_type)
7038 (read_type_die_1, determine_prefix, dwarf2_get_ref_die_offset)
7039 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
7040 (get_signatured_type, get_DW_AT_signature_type)
7041 (decode_locdesc, file_file_name, consume_improper_spaces)
7042 (skip_form_bytes, skip_unknown_opcode, dwarf_parse_macro_header)
7043 (dwarf_decode_macro_bytes, dwarf_decode_macros)
7044 (dwarf2_symbol_mark_computed, set_die_type)
7045 (read_attribute_value): Update.
7046 * stap-probe.c (handle_stap_probe, get_stap_base_address):
7047 Update.
7048 * dbxread.c (unknown_symtype_complaint)
7049 (lbrac_mismatch_complaint, repeated_header_complaint)
7050 (set_namestring, function_outside_compilation_unit_complaint)
7051 (read_dbx_symtab, process_one_symbol): Update.
7052 * gdbtypes.c (stub_noname_complaint): Update.
7053 * windows-nat.c (handle_unload_dll): Update.
7054 * coffread.c (coff_symtab_read, enter_linenos, decode_type)
7055 (decode_base_type): Update.
7056 * xcoffread.c (bf_notfound_complaint, ef_complaint)
7057 (eb_complaint, record_include_begin, record_include_end)
7058 (enter_line_range, xcoff_next_symbol_text, read_xcoff_symtab)
7059 (process_xcoff_symbol, read_symbol)
7060 (function_outside_compilation_unit_complaint)
7061 (scan_xcoff_symtab): Update.
7062 * machoread.c (macho_symtab_read, macho_add_oso_symfile): Update.
7063 * buildsym.c (finish_block_internal, make_blockvector)
7064 (end_symtab_get_static_block, augment_type_symtab): Update.
7065 * dtrace-probe.c (dtrace_process_dof)
7066 (dtrace_static_probe_ops::get_probes): Update.
7067 * complaints.h (struct complaint): Don't declare.
7068 (symfile_complaints): Remove.
7069 (complaint_internal): Remove "complaints" parameter.
7070 (complaint): Likewise.
7071 (clear_complaints): Likewise.
7072 * symfile.c (syms_from_objfile_1, finish_new_objfile)
7073 (reread_symbols): Update.
7074 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
7075 (dwarf2_frame_cache, decode_frame_entry): Update.
7076 * dwarf2loc.c (dwarf_reg_to_regnum): Update.
7077 * objc-lang.c (lookup_objc_class, lookup_child_selector)
7078 (info_selectors_command): Update.
7079 * macrotab.c (macro_include, check_for_redefinition)
7080 (macro_undef): Update.
7081 * objfiles.c (filter_overlapping_sections): Update.
7082 * stabsread.c (invalid_cpp_abbrev_complaint)
7083 (reg_value_complaint, stabs_general_complaint, dbx_lookup_type)
7084 (define_symbol, error_type, read_type, rs6000_builtin_type)
7085 (stabs_method_name_from_physname, read_member_functions)
7086 (read_cpp_abbrev, read_baseclasses, read_tilde_fields)
7087 (attach_fields_to_type, complain_about_struct_wipeout)
7088 (read_range_type, read_args, common_block_start)
7089 (common_block_end, cleanup_undefined_types_1, scan_file_globals):
7090 Update.
7091 * mdebugread.c (index_complaint, unknown_ext_complaint)
7092 (basic_type_complaint, bad_tag_guess_complaint)
7093 (bad_rfd_entry_complaint, unexpected_type_code_complaint)
7094 (reg_value_complaint, parse_symbol, parse_type, upgrade_type)
7095 (parse_procedure, parse_lines)
7096 (function_outside_compilation_unit_complaint)
7097 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref)
7098 (bad_tag_guess_complaint, reg_value_complaint): Update.
7099 * cp-support.c (demangled_name_complaint): Update.
7100 * macroscope.c (sal_macro_scope): Update.
7101 * dwarf-index-write.c (class debug_names): Update.
7102
4e9668d0
TT
71032018-05-23 Tom Tromey <tom@tromey.com>
7104
7105 * complaints.c (clear_complaints): Remove "noisy" parameter.
7106 * complaints.h (clear_complaints): Update.
7107 * symfile.c (syms_from_objfile_1, finish_new_objfile)
7108 (reread_symbols): Update.
7109
43ba33c7
TT
71102018-05-23 Tom Tromey <tom@tromey.com>
7111
7112 * complaints.c (enum complaint_series): Remove FIRST_MESSAGE,
7113 SUBSEQUENT_MESSAGE.
7114 (vcomplaint, clear_complaints): Update.
7115 (symfile_explanations): Remove some messages.
7116
2b9496b2
TT
71172018-05-23 Tom Tromey <tom@tromey.com>
7118
7119 * complaints.c (internal_complaint): Remove.
7120 * complaints.h (internal_complaint): Remove.
7121
35f1fea3
MR
71222018-05-22 Maciej W. Rozycki <macro@mips.com>
7123
7124 * i387-tdep.c (i387_collect_xsave): Make `i' unsigned.
7125
6b8edb51
PA
71262018-05-22 Pedro Alves <palves@redhat.com>
7127
7128 * remote-fileio.c (remote_fileio_reply, remote_fileio_ioerror)
7129 (remote_fileio_badfd, remote_fileio_return_errno)
7130 (remote_fileio_return_success, remote_fileio_func_open)
7131 (remote_fileio_func_open, remote_fileio_func_close)
7132 (remote_fileio_func_read, remote_fileio_func_write)
7133 (remote_fileio_func_lseek, remote_fileio_func_rename)
7134 (remote_fileio_func_unlink, remote_fileio_func_stat)
7135 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
7136 (remote_fileio_func_isatty, remote_fileio_func_system): Add
7137 remote_target parameter.
7138 (remote_fio_func_map) <func>: Add remote_target parameter.
7139 (do_remote_fileio_request, remote_fileio_request):
7140 * remote-fileio.h (remote_fileio_request):
7141 * remote-notif.c (remote_notif_ack, remote_notif_parse, ): Add
7142 remote_target parameter.
7143 (remote_notif_process, handle_notification): Adjust to pass down
7144 the remote.
7145 (remote_notif_state_allocate): Add remote_target parameter. Save
7146 it.
7147 * remote-notif.h (struct remote_target): Forward declare.
7148 (struct notif_client) <parse, ack, can_get_pending_events>: Add
7149 remote_target parameter.
7150 (struct remote_notif_state) <remote>: New field.
7151 (remote_notif_ack, remote_notif_parse): Add remote_target
7152 parameter.
7153 (remote_notif_state_allocate, remote_notif_state_allocate): Add
7154 remote_target parameter.
7155 * remote.c (OPAQUETHREADBYTES, threadref, gdb_ext_thread_info)
7156 (threads_listing_context, rmt_thread_action, protocol_feature)
7157 (packet_reg, stop_reply, stop_reply_p, enum packet_support)
7158 (packet_result, struct threads_listing_context, remote_state):
7159 Move definitions and declarations higher up.
7160 (remote_target) <~remote_target>: Declare.
7161 (remote_download_command_source, remote_file_put, remote_file_get)
7162 (remote_file_delete, remote_hostio_pread, remote_hostio_pwrite)
7163 (remote_hostio_pread_vFile, remote_hostio_send_command)
7164 (remote_hostio_set_filesystem, remote_hostio_open)
7165 (remote_hostio_close, remote_hostio_unlink, remote_state)
7166 (get_remote_state, get_remote_packet_size, get_memory_packet_size)
7167 (get_memory_write_packet_size, get_memory_read_packet_size)
7168 (append_pending_thread_resumptions, remote_detach_1)
7169 (append_resumption, remote_resume_with_vcont)
7170 (add_current_inferior_and_thread, wait_ns, wait_as)
7171 (process_stop_reply, remote_notice_new_inferior)
7172 (process_initial_stop_replies, remote_add_thread)
7173 (btrace_sync_conf, remote_btrace_maybe_reopen)
7174 (remove_new_fork_children, kill_new_fork_children)
7175 (discard_pending_stop_replies, stop_reply_queue_length)
7176 (check_pending_events_prevent_wildcard_vcont)
7177 (discard_pending_stop_replies_in_queue, stop_reply)
7178 (remote_notif_remove_queued_reply, stop_reply *queued_stop_reply)
7179 (peek_stop_reply, remote_parse_stop_reply, remote_stop_ns)
7180 (remote_interrupt_as, remote_interrupt_ns)
7181 (remote_get_noisy_reply, remote_query_attached)
7182 (remote_add_inferior, remote_current_thread, get_current_thread)
7183 (set_thread, set_general_thread, set_continue_thread)
7184 (set_general_process, write_ptid)
7185 (remote_unpack_thread_info_response, remote_get_threadinfo)
7186 (parse_threadlist_response, remote_get_threadlist)
7187 (remote_threadlist_iterator, remote_get_threads_with_ql)
7188 (remote_get_threads_with_qxfer)
7189 (remote_get_threads_with_qthreadinfo, extended_remote_restart)
7190 (get_offsets, remote_check_symbols, remote_supported_packet)
7191 (remote_query_supported, remote_packet_size)
7192 (remote_serial_quit_handler, remote_detach_pid)
7193 (remote_vcont_probe, remote_resume_with_hc)
7194 (send_interrupt_sequence, interrupt_query)
7195 (remote_notif_get_pending_events, fetch_register_using_p)
7196 (send_g_packet, process_g_packet, fetch_registers_using_g)
7197 (store_register_using_P, store_registers_using_G)
7198 (set_remote_traceframe, check_binary_download)
7199 (remote_write_bytes_aux, remote_write_bytes, remote_read_bytes_1)
7200 (remote_xfer_live_readonly_partial, remote_read_bytes)
7201 (remote_send_printf, remote_flash_write, readchar)
7202 (remote_serial_write, putpkt, putpkt_binary, skip_frame)
7203 (read_frame, getpkt, getpkt_or_notif_sane_1, getpkt_sane)
7204 (getpkt_or_notif_sane, remote_vkill, remote_kill_k)
7205 (extended_remote_disable_randomization, extended_remote_run)
7206 (send_environment_packet, extended_remote_environment_support)
7207 (extended_remote_set_inferior_cwd, remote_write_qxfer)
7208 (remote_read_qxfer, push_stop_reply, vcont_r_supported)
7209 (packet_command): Now methods of ...
7210 (remote_target): ... this class.
7211 (m_remote_state) <remote_target>: New field.
7212 (struct remote_state) <stop_reply_queue,
7213 remote_async_inferior_event_token, wait_forever_enabled_p>: New
7214 fields.
7215 (remote_state::remote_state): Allocate stop_reply_queue.
7216 (remote_state): Delete global.
7217 (get_remote_state_raw): Delete.
7218 (remote_target::get_remote_state): Allocate m_remote_state on
7219 demand.
7220 (get_current_remote_target): New.
7221 (remote_ops, extended_remote_ops): Delete.
7222 (wait_forever_enabled_p, remote_async_inferior_event_token):
7223 Delete, moved to struct remote_state.
7224 (remote_target::close): Delete self. Destruction bits split to
7225 ...
7226 (remote_target::~remote_target): ... this.
7227 (show_memory_packet_size): Adjust to use
7228 get_current_remote_target.
7229 (struct protocol_feature) <func>: Add remote_target parameter.
7230 All callers adjusted.
7231 (curr_quit_handler_target): New.
7232 (remote_serial_quit_handler): Reimplement.
7233 (remote_target::open_1): Adjust to use get_current_remote_target.
7234 Heap-allocate remote_target/extended_remote_target instances.
7235 (vcont_builder::vcont_builder): Add remote_target parameter, and
7236 save it in m_remote. All callers adjusted.
7237 (vcont_builder::m_remote): New field.
7238 (vcont_builder::restart, vcont_builder::flush)
7239 (vcont_builder::push_action): Use it.
7240 (remote_target::commit_resume): Use it.
7241 (struct queue_iter_param) <remote>: New field.
7242 (remote_target::remove_new_fork_children): Fill in 'remote' field.
7243 (check_pending_event_prevents_wildcard_vcont_callback_data): New.
7244 (check_pending_event_prevents_wildcard_vcont_callback)
7245 (remote_target::check_pending_events_prevent_wildcard_vcont)
7246 (remote_target::discard_pending_stop_replies)
7247 (remote_target::discard_pending_stop_replies_in_queue)
7248 (remote_target::remote_notif_remove_queued_reply): Fill in
7249 'remote' field.
7250 (remote_notif_get_pending_events): New.
7251 (remote_target::readchar, remote_target::remote_serial_write):
7252 Save/restore curr_quit_handler_target.
7253 (putpkt): New.
7254 (kill_new_fork_children): Fill in 'remote' field.
7255 (packet_command): Use get_current_remote_target, defer to
7256 remote_target method of same name.
7257 (scoped_remote_fd::scoped_remote_fd): Add 'remote_target'
7258 parameter, and save it in m_remote. All callers adjusted.
7259 (scoped_remote_fd::release): Use m_remote.
7260 (scoped_remote_fd::m_remote): New field.
7261 (remote_file_put, remote_file_get, remote_file_delete): Use
7262 get_current_remote_target, defer to remote_target method of same
7263 name.
7264 (remote_btrace_reset): Add remote_state paremeter. Update all
7265 callers.
7266 (remote_async_inferior_event_handler). Pass down 'data'.
7267 (remote_new_objfile): Use get_current_remote_target.
7268 (remote_target::vcont_r_supported): New.
7269 (set_range_stepping): Use get_current_remote_target and
7270 remote_target::vcont_r_supported.
7271 (_initialize_remote): Don't allocate 'remote_state' and
7272 'stop_reply_queue' globals.
7273 * remote.h (struct remote_target): Forward declare.
7274 (getpkt, putpkt, remote_notif_get_pending_events): Add
7275 'remote_target' parameter.
7276
f5db4863
PA
72772018-05-22 Pedro Alves <palves@redhat.com>
7278
7279 * remote.c (vcont_builder): Now a class. Make all data members
7280 private.
7281 (vcont_builder) <vcont_builder, restart, flush, push_action>:
7282 Declare methods.
7283 (vcont_builder_restart): Rename to ...
7284 (vcont_builder::restart): ... this.
7285 (vcont_builder_flush): Rename to ...
7286 (vcont_builder::flush): ... this.
7287 (vcont_builder_push_action): Rename to ...
7288 (vcont_builder::push_action): ... this.
7289 (remote_target::commit_resume): Adjust.
7290
cc0be08f
PA
72912018-05-22 Pedro Alves <palves@redhat.com>
7292
7293 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE): Rename to ...
7294 (DEFAULT_MAX_MEMORY_PACKET_SIZE_FIXED): ... this.
7295 (get_fixed_memory_packet_size): New.
7296 (get_memory_packet_size): Use it.
7297 (set_memory_packet_size): Don't override the config size with
7298 DEFAULT_MAX_MEMORY_PACKET_SIZE.
7299 (show_memory_packet_size): Use get_fixed_memory_packet_size.
7300 Don't refer to get_memory_packet_size if not connected to a remote
7301 target. Show "(default)" if configured size is 0.
7302
9607784a
PA
73032018-05-22 Pedro Alves <palves@redhat.com>
7304
7305 * remote.c (remote_target::mourn_inferior): Move
7306 discard_pending_stop_replies call here from ...
7307 (_initialize_remote): ... here.
7308
0e9a6b2f
PA
73092018-05-22 Pedro Alves <palves@redhat.com>
7310
7311 * remote.c (compare_section_command): Remove set_general_process
7312 call.
7313
43c3a0e4
PA
73142018-05-22 Pedro Alves <palves@redhat.com>
7315
7316 * remote.c (struct packet_reg, struct remote_arch_state):
7317 Move higher up in the file.
7318 (remote_state) <m_arch_states>: Store remote_arch_state values
7319 instead of remote_arch_state pointers.
7320 (remote_state::get_remote_arch_state): Adjust.
7321
9d6eea31
PA
73222018-05-22 Pedro Alves <palves@redhat.com>
7323
7324 * remote.c: Include <unordered_map>.
7325 (remote_state): Now a class.
7326 (remote_state) <get_remote_arch_state>: Declare method.
7327 <get_remote_arch_state>: New field.
7328 (remote_arch_state) <remote_arch_state>: Declare ctor.
7329 <regs>: Now a unique_ptr.
7330 (remote_gdbarch_data_handle): Delete.
7331 (get_remote_arch_state): Delete.
7332 (remote_state::get_remote_arch_state): New.
7333 (get_remote_state): Adjust to call remote_state's
7334 get_remote_arch_state method.
7335 (init_remote_state): Delete, bits factored out to ...
7336 (remote_arch_state::remote_arch_state): ... this new method.
7337 (get_remote_packet_size, get_memory_packet_size)
7338 (process_g_packet, remote_target::fetch_registers)
7339 (remote_target::prepare_to_store, store_registers_using_G)
7340 (remote_target::store_registers, remote_target::get_trace_status):
7341 Adjust to call remote_state's method.
7342 (_initialize_remote): Remove reference to
7343 remote_gdbarch_data_handle.
7344
dd194f6b
PA
73452018-05-22 Pedro Alves <palves@redhat.com>
7346
7347 * remote.c (struct readahead_cache) <invalidate, invalidate_fd,
7348 pread>: New method declarations.
7349 (remote_target::open_1): Adjust.
7350 (readahead_cache_invalidate): Rename to ...
7351 (readahead_cache::invalidate): ... this, and adjust to be a class
7352 method.
7353 (readahead_cache_invalidate_fd): Rename to ...
7354 (readahead_cache::invalidate_fd): ... this, and adjust to be a
7355 class method.
7356 (remote_hostio_pwrite): Adjust.
7357 (remote_hostio_pread_from_cache): Rename to ...
7358 (readahead_cache::pread): ... this, and adjust to be a class
7359 method.
7360 (remote_hostio_close): Adjust.
7361
440b7aec
PA
73622018-05-22 Pedro Alves <palves@redhat.com>
7363
7364 * remote.c (remote_hostio_close_cleanup): Delete.
7365 (class scoped_remote_fd): New.
7366 (remote_file_put, remote_file_get): Use it.
7367
de44f5a7
PA
73682018-05-22 Pedro Alves <palves@redhat.com>
7369
7370 (struct vCont_action_support): Use bool and initialize all fields.
7371 (struct readahead_cache): Initialize all fields.
7372 (remote_state): Use bool and initialize all fields.
7373 (remote_state::remote_state, remote_state::~remote_state): New.
7374 (new_remote_state): Delete.
7375 (_initialize_remote): Use new to allocate remote_state.
7376
b1b60145
PA
73772018-05-22 Pedro Alves <palves@redhat.com>
7378 張俊芝 <zjz@zjz.name>
7379
7380 PR gdb/22973
7381 * c-exp.y: Include "c-support.h".
7382 (parse_number, c_parse_escape, lex_one_token): Use TOLOWER instead
7383 of tolower. Use c_ident_is_alpha to scan names.
7384 * c-lang.c: Include "c-support.h".
7385 (convert_ucn, convert_octal, convert_hex, convert_escape): Use
7386 ISXDIGIT instead of isxdigit and ISDIGIT instead of isdigit.
7387 * c-support.h: New file, with bits factored out from ...
7388 * cp-name-parser.y: ... this file.
7389 Include "c-support.h".
7390 (cp_ident_is_alpha, cp_ident_is_alnum): Deleted, moved to
7391 c-support.h and renamed.
7392 (symbol_end, yylex): Adjust.
7393
0ec848ad
PFC
73942018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7395
7396 * arch/ppc-linux-common.c (ppc_linux_has_isa205): Change the
7397 parameter type to CORE_ADDR.
7398 * arch/ppc-linux-common.h (ppc_linux_has_isa205): Change the
7399 parameter type in declaration to CORE_ADDR.
7400 * ppc-linux-tdep.c (ppc_linux_core_read_description): Call
7401 target_auxv_search to get AT_HWCAP and use the result to get the
7402 target description.
7403 * ppc-linux-nat.c (ppc_linux_get_hwcap): Change the return type
7404 to CORE_ADDR. Remove the cast of the return value to unsigned
7405 long. Fix error predicate of target_auxv_search.
7406 (ppc_linux_nat_target::read_description): Change the type of the
7407 hwcap variable to CORE_ADDR.
7408
0fb2aaa1
PFC
74092018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7410
7411 * rs6000-tdep.c (rs6000_gdbarch_init): Assign 1 to have_dfp only
7412 if the size of fpscr is larger than 32 bits.
7413
2c3305f6
PFC
74142018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7415
7416 * ppc-linux-tdep.c (ppc_linux_vsxregset): New function.
7417 (ppc32_linux_vsxregmap): New global.
7418 (ppc32_linux_vsxregset): Initialize with ppc32_linux_vsxregmap,
7419 regcache_supply_regset, and regcache_collect_regset.
7420 * ppc-linux-tdep.h (ppc_linux_vsxregset): Declare.
7421 * ppc-linux-nat.c (supply_vsxregset, fill_vsxregset): Remove.
7422 (fetch_vsx_register, store_vsx_register): Remove.
7423 (fetch_vsx_registers): Add regno parameter. Get regset using
7424 ppc_linux_vsxregset. Use regset to supply registers.
7425 (store_vsx_registers): Add regno parameter. Get regset using
7426 ppc_linux_vsxregset. Use regset to collect registers.
7427 (fetch_register): Call fetch_vsx_registers instead of
7428 fetch_vsx_register.
7429 (store_register): Call store_vsx_registers instead of
7430 store_vsx_register.
7431 (fetch_ppc_registers): Call fetch_vsx_registers with -1 for the
7432 new regno parameter.
7433 (store_ppc_registers): Call store_vsx_registers with -1 for the
7434 new regno parameter.
7435 * rs6000-tdep.c (ppc_vsx_support_p, ppc_supply_vsxreget)
7436 (ppc_collect_vsxregset): Remove.
7437
1d75a658
PFC
74382018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7439
7440 * ppc-tdep.h (struct ppc_reg_offsets): Remove vector register
7441 offset fields.
7442 * ppc-fbsd-tdep.c (ppc32_fbsd_reg_offsets): Remove initializers
7443 for vector register offset fields.
7444 (ppc64_fbsd_reg_offsets): Likewise.
7445 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
7446 to vector register offset fields.
7447 * ppc-obsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
7448 to vector register offset fields.
7449 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Remove assignment to
7450 vector register offset fields.
7451 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Remove
7452 initializers for vector register offset fields.
7453 (rs6000_aix64_reg_offsets): Likewise.
7454 * rs6000-tdep.c (ppc_vrreg_offset): Remove.
7455 (ppc_supply_vrregset): Remove.
7456 (ppc_collect_vrregset): Remove.
7457 * ppc-linux-tdep.c (ppc_linux_collect_vrregset): New function.
7458 (ppc_linux_vrregset) : New function.
7459 (ppc32_le_linux_vrregmap, ppc32_be_linux_vrregmap)
7460 (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): New globals.
7461 (ppc32_linux_vrregset): Remove.
7462 (ppc_linux_iterate_over_regset_sections): Call ppc_linux_vrregset
7463 and use result instead of ppc32_linux_vrregset.
7464 (ppc32_linux_reg_offsets): Remove initializers for vector register
7465 offset fields.
7466 (ppc64_linux_reg_offsets): Likewise.
7467 * ppc-linux-tdep.h (ppc_linux_vrregset): New declaration.
7468 * ppc-linux-nat.c: Include regset.h.
7469 (gdb_vrregset_t): Adjust comment to account for little-endian
7470 mode.
7471 (supply_vrregset, fill_vrregset): Remove.
7472 (fetch_altivec_register, store_altivec_register): Remove.
7473 (fetch_altivec_registers): Add regno parameter. Get regset using
7474 ppc_linux_vrregset. Use regset to supply registers.
7475 (store_altivec_registers): Add regno parameter. Get regset using
7476 ppc_linux_vrregset. Use regset to collect registers.
7477 (fetch_register): Call fetch_altivec_registers instead of
7478 fetch_altivec_register.
7479 (store_register): Call store_altivec_registers instead of
7480 store_altivec_register.
7481 (fetch_ppc_registers): Call fetch_altivec_registers with -1 for
7482 the new regno parameter.
7483 (store_ppc_registers): Call store_altivec_registers with -1 for
7484 the new regno parameter.
7485
d078308a
PFC
74862018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7487
7488 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_VRREGSET)
7489 (PPC_LINUX_SIZEOF_VSXREGSET): Define.
7490 * ppc-linux-nat.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
7491 (gdb_vrregset_t): Change array type size to
7492 PPC_LINUX_SIZEOF_VRREGSET.
7493 (gdb_vsxregset_t): Change array type size to
7494 PPC_LINUX_SIZEOF_VSXREGSET.
7495 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections):
7496 Change integer literals to PPC_LINUX_SIZEOF_VRREGSET and
7497 PPC_LINUX_SIZEOF_VSXREGSET.
7498
2e077f5e
PFC
74992018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7500
7501 * configure.nat <linux powerpc>: Add ppc-linux.o to NATDEPFILES.
7502 * ppc-linux-nat.c (ppc_linux_target_wordsize): Move to
7503 nat/ppc-linux.c.
7504 (ppc_linux_nat_target::auxv_parse): Get thread id tid. Call
7505 ppc_linux_target_wordsize with tid.
7506 (ppc_linux_nat_target::read_description): Call ppc_linux_target
7507 wordsize with tid.
7508 * nat/ppc-linux.c: Include nat/gdb_ptrace.h.
7509 (ppc64_64bit_inferior_p): Add static and inline specifiers.
7510 (ppc_linux_target_wordsize): Move here from ppc-linux-nat.c. Add
7511 tid parameter. Remove static specifier.
7512 * nat/ppc-linux.h (ppc64_64bit_inferior_p): Remove declaration.
7513 (ppc_linux_target_wordsize): New declaration.
7514
bd64614e
PFC
75152018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7516
7517 * arch/ppc-linux-common.c: New file.
7518 * arch/ppc-linux-common.h: New file.
7519 * arch/ppc-linux-tdesc.h: New file.
7520 * configure.tgt (powerpc*-*-linux*): Add arch/ppc-linux-common.o.
7521 * Makefile.in (ALL_TARGET_OBS): Add arch/ppc-linux-common.o.
7522 (HFILES_NO_SRCDIR): Add arch/ppc-linux-common.h and
7523 arch/ppc-linux-tdesc.h.
7524 * ppc-linux-nat.c: Include arch/ppc-linux-common.h and
7525 arch/ppc-linux-tdesc.h.
7526 (ppc_linux_nat_target::read_description): Remove target
7527 description matching code. Fill a ppc_linux_features struct and
7528 call ppc_linux_match_description with it. Move comment about ISA
7529 2.05 to ppc-linux-common.c.
7530 * ppc-linux-tdep.c: Include arch/ppc-linux-common.h and
7531 arch/ppc-linux-tdesc.h.
7532 (ppc_linux_core_read_description): Remove target description
7533 matching code. Fill a ppc_linux_features struct and call
7534 ppc_linux_match_description with it.
7535 * ppc-linux-tdep.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
7536 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
7537 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
7538 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
7539 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
7540 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
7541 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
7542 (tdesc_powerpc_e500l): Remove.
7543
241db429
JB
75442018-05-22 Joel Brobecker <brobecker@adacore.com>
7545
7546 * ada-lang.c (catch_assert_command): Pass empty string instead
7547 of NULL for excep_string argument.
7548
75d74cca
MR
75492018-05-22 Maciej W. Rozycki <macro@mips.com>
7550
7551 * mips-linux-nat.c (mips64_linux_register_addr): Return -1 if
7552 the width of the requested register exceeds the width of the
7553 `ptrace' data type.
7554
122b53ea
TT
75552018-05-21 Tom Tromey <tom@tromey.com>
7556
7557 * printcmd.c (output_command): Remove.
7558 (output_command_const): Rename to output_command.
7559 * valprint.h (output_command): Rename from output_command_const.
7560 * tracepoint.c (trace_dump_actions): Call output_command.
7561
bc18fbb5
TT
75622018-05-21 Tom Tromey <tom@tromey.com>
7563
7564 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
7565 (mi_cmd_catch_exception, mi_cmd_catch_handlers): Update.
7566 * ada-lang.h (create_ada_exception_catchpoint): Update.
7567 * ada-lang.c (struct ada_catchpoint) <excep_string>: Now a
7568 std::string.
7569 (create_excep_cond_exprs, ~ada_catchpoint)
7570 (should_stop_exception, print_one_exception)
7571 (print_mention_exception, print_recreate_exception): Update.
7572 (ada_get_next_arg): Remove.
7573 (catch_ada_exception_command_split): Use std::string. Change type
7574 of "excep_string", "cond_string".
7575 (catch_ada_exception_command): Update.
7576 (create_ada_exception_catchpoint): Change type of excep_string.
7577 (ada_exception_sal): Remove excep_string parameter.
7578 (~ada_catchpoint): Remove.
7579
790217f6
TT
75802018-05-21 Tom Tromey <tom@tromey.com>
7581
7582 * ada-lang.c (ada_collect_symbol_completion_matches): Remove
7583 cleanup.
7584
6f46ac85
TT
75852018-05-21 Tom Tromey <tom@tromey.com>
7586
7587 * ada-lang.c (ada_exception_message_1, ada_exception_message):
7588 Return unique_xmalloc_ptr.
7589 (print_it_exception): Update.
7590
15b6611c
TT
75912018-05-21 Tom Tromey <tom@tromey.com>
7592
7593 * tracepoint.c (trace_dump_actions): Use std::string.
7594
c0c9f665
TT
75952018-05-21 Tom Tromey <tom@tromey.com>
7596
7597 * symfile.c (reread_symbols): Use std::string for original_name.
7598
22ca247e
TT
75992018-05-21 Tom Tromey <tom@tromey.com>
7600
7601 * dwarf2read.c (dwarf2_read_debug_names): Use std::unique_ptr.
7602 (mapped_index_base): Use DISABLE_COPY_AND_ASSIGN. Default
7603 constructor.
7604
184cde75
SM
76052018-05-20 Simon Marchi <simon.marchi@polymtl.ca>
7606
7607 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Rename the wrong
7608 instance to...
7609 (HAVE_IS_TRIVIALLY_CONSTRUCTIBLE): ... this.
7610 * objfiles.c (get_objfile_bfd_data): Allocate
7611 objfile_per_bfd_storage with obstack_new when allocating on
7612 obstack.
7613
e39db4db
SM
76142018-05-20 Simon Marchi <simon.marchi@ericsson.com>
7615
7616 * ada-lang.c (cache_symbol): Use XOBNEW and/or XOBNEWVEC and/or
7617 OBSTACK_ZALLOC.
7618 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
7619 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
7620 * mdebugread.c (mdebug_build_psymtabs): Likewise.
7621 (add_pending): Likewise.
7622 (parse_symbol): Likewise.
7623 (parse_partial_symbols): Likewise.
7624 (psymtab_to_symtab_1): Likewise.
7625 (new_psymtab): Likewise.
7626 (elfmdebug_build_psymtabs): Likewise.
7627 * minsyms.c (terminate_minimal_symbol_table): Likewise.
7628 * objfiles.c (get_objfile_bfd_data): Likewise.
7629 (objfile_register_static_link): Likewise.
7630 * psymtab.c (allocate_psymtab): Likewise.
7631 * stabsread.c (read_member_functions): Likewise.
7632 * xcoffread.c (xcoff_end_psymtab): Likewise.
7633
284a0e3c
SM
76342018-05-20 Simon Marchi <simon.marchi@ericsson.com>
7635
7636 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Define if
7637 compiler supports std::is_trivially_constructible.
7638 * common/poison.h: Include obstack.h.
7639 (IsMallocable): Define to is_trivially_constructible if the
7640 compiler supports it, define to true_type otherwise.
7641 (xobnew): New.
7642 (XOBNEW): Redefine.
7643 (xobnewvec): New.
7644 (XOBNEWVEC): Redefine.
7645 * gdb_obstack.h (obstack_zalloc): New.
7646 (OBSTACK_ZALLOC): Redefine.
7647 (obstack_calloc): New.
7648 (OBSTACK_CALLOC): Redefine.
7649 (obstack_new): New.
7650 * gdbarch.sh: Include gdb_obstack in gdbarch.h.
7651 (gdbarch_obstack): New declaration in gdbarch.h, definition in
7652 gdbarch.c.
7653 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Use
7654 obstack_calloc/obstack_zalloc.
7655 (gdbarch_obstack_zalloc): Remove.
7656 * target-descriptions.c (tdesc_data_init): Use obstack_new.
7657
59f66be3
PW
76582018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7659
7660 * stack.c (backtrace_command_1): Remove useless variable int i.
7661
50c65c2d
PW
76622018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7663
7664 * stack.c (print_frame_info): Fix comment.
7665
7ff8cb8c
TT
76662018-05-18 Tom Tromey <tom@tromey.com>
7667
7668 * dwarf2read.c (struct dwz_file): Add constructor, initializers.
7669 <dwz_bfd>: Now a gdb_bfd_ref_ptr.
7670 (~dwarf2_per_objfile): Update
7671 (dwarf2_get_dwz_file): Use new.
7672 * dwarf2read.h (struct dwarf2_per_objfile) <dwz_file>: Now a
7673 unique_ptr.
7674
400174b1
TT
76752018-05-18 Tom Tromey <tom@tromey.com>
7676
7677 * dwarf2read.h (struct dwarf2_per_objfile) <dwp_file>: Now a
7678 unique_ptr.
7679 * dwarf2read.c (struct dwp_file): Add constructor and
7680 initializers.
7681 (open_and_init_dwp_file): Return a unique_ptr.
7682 (dwarf2_per_objfile, create_dwp_hash_table)
7683 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2)
7684 (lookup_dwo_unit_in_dwp): Update.
7685 (open_and_init_dwp_file, get_dwp_file): Update.
7686
3063847f
TT
76872018-05-18 Tom Tromey <tom@tromey.com>
7688
7689 * dwarf2read.c (dwarf2_per_objfile): Update.
7690 (struct mapped_index): Add initializers.
7691 (dwarf2_read_index): Use new.
7692 (dw2_symtab_iter_init): Update.
7693 * dwarf2read.h (struct dwarf2_per_objfile) <index_table>: Now a
7694 unique_ptr.
7695
d3d02dee
SM
76962018-05-18 Simon Marchi <simon.marchi@ericsson.com>
7697
7698 * dwarf2read.c (mapped_index) <total_size>: Remove.
7699
1d143c36
SM
77002018-05-18 Simon Marchi <simon.marchi@ericsson.com>
7701
7702 * unittests/format_pieces-selftests.c (test_format_specifier):
7703 Add ARI comments.
7704
ce1e8424
TT
77052018-05-18 Tom Tromey <tom@tromey.com>
7706
7707 * c-typeprint.c (maybe_print_hole): New function.
7708 (c_print_type_struct_field_offset): Update.
7709 (c_type_print_base_struct_union): Call maybe_print_hole.
7710
ddfe970e
KS
77112018-05-17 Keith Seitz <keiths@redhat.com>
7712
7713 * breakpoint.c (build_bpstat_chain): New function, moved from
7714 bpstat_stop_status.
7715 (bpstat_stop_status): Add optional parameter, `stop_chain'.
7716 If no stop chain is passed, call build_bpstat_chain to build it.
7717 * breakpoint.h (build_bpstat_chain): Declare.
7718 (bpstat_stop_status): Move documentation here from breakpoint.c.
7719 * infrun.c (handle_signal_stop): Before eliding inlined frames,
7720 build the stop chain and pass it to skip_inline_frames.
7721 Pass this stop chain to bpstat_stop_status.
7722 * inline-frame.c: Include breakpoint.h.
7723 (stopped_by_user_bp_inline_frame): New function.
7724 (skip_inline_frames): Add parameter `stop_chain'.
7725 Move documention to inline-frame.h.
7726 If non-NULL, use stopped_by_user_bp_inline_frame to determine
7727 whether the frame should be elided.
7728 * inline-frame.h (skip_inline_frames): Add parameter `stop_chain'.
7729 Add moved documentation and update for new parameter.
7730
b17992c1
SM
77312018-05-17 Simon Marchi <simon.marchi@ericsson.com>
7732
7733 PR cli/14975
7734 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7735 unittests/format_pieces-selftests.c.
7736 * common/format.h (format_piece) <operator==>: New.
7737 (format_pieces) <operator[]>: Remove.
7738 * common/format.c (format_pieces::format_pieces): Handle \e.
7739 * unittests/format_pieces-selftests.c: New.
7740
58f0c718
TT
77412018-05-17 Tom Tromey <tom@tromey.com>
7742
7743 PR symtab/23010:
7744 * dwarf2read.c (load_cu, dw2_do_instantiate_symtab)
7745 (dw2_instantiate_symtab): Add skip_partial parameter.
7746 (dw2_find_last_source_symtab, dw2_map_expand_apply)
7747 (dw2_lookup_symbol, dw2_expand_symtabs_for_function)
7748 (dw2_expand_all_symtabs, dw2_expand_symtabs_with_fullname)
7749 (dw2_expand_symtabs_matching_one)
7750 (dw2_find_pc_sect_compunit_symtab)
7751 (dw2_debug_names_lookup_symbol)
7752 (dw2_debug_names_expand_symtabs_for_function): Update.
7753 (init_cutu_and_read_dies): Add skip_partial parameter.
7754 (process_psymtab_comp_unit, build_type_psymtabs_1)
7755 (process_skeletonless_type_unit, load_partial_comp_unit)
7756 (psymtab_to_symtab_1): Update.
7757 (load_full_comp_unit): Add skip_partial parameter.
7758 (process_imported_unit_die, dwarf2_read_addr_index)
7759 (follow_die_offset, dwarf2_fetch_die_loc_sect_off)
7760 (dwarf2_fetch_constant_bytes, dwarf2_fetch_die_type_sect_off)
7761 (read_signatured_type): Update.
7762
3e618834
SM
77632018-05-17 Simon Marchi <simon.marchi@ericsson.com>
7764
7765 * value.c (release_value): Remove unused variable.
7766 (record_latest_value): Likewise.
7767 (access_value_history): Likewise.
7768 (preserve_values): Likewise.
7769
fe10fe31
TT
77702018-05-17 Tom Tromey <tom@tromey.com>
7771
7772 * extension.h (struct ext_lang_type_printers) <py_type_printers>:
7773 Initialize.
7774
1d761124
MR
77752018-05-16 Maciej W. Rozycki <macro@mips.com>
7776
7777 PR gdb/22286
7778 * linux-nat-trad.c (linux_nat_trad_target::fetch_register):
7779 Also handle registers whose width is not a multiple of
7780 PTRACE_TYPE_RET.
7781 (linux_nat_trad_target::store_register): Likewise.
7782
06333fea
TT
77832018-05-16 Tom Tromey <tom@tromey.com>
7784
7785 * gdbcore.h (core_bfd): Redefine.
7786 * corelow.c (core_target::close): Update.
7787 (core_target_open): Update.
7788 * progspace.h (struct program_space) <cbfd>: Now a
7789 gdb_bfd_ref_ptr.
7790
921222e2
TT
77912018-05-16 Tom Tromey <tom@tromey.com>
7792
7793 PR cli/19551:
7794 * symfile-add-flags.h (enum symfile_add_flags)
7795 <SYMFILE_NOT_FILENAME>: New constant.
7796 * symfile.c (read_symbols): Use SYMFILE_NOT_FILENAME. Get
7797 objfile name from BFD.
7798 (symbol_file_add_with_addrs): Check SYMFILE_NOT_FILENAME.
7799 * minidebug.c (find_separate_debug_file_in_section): Put
7800 ".gnu_debugdata" into BFD's file name.
7801
3acb7083
SM
78022018-05-16 Simon Marchi <simon.marchi@ericsson.com>
7803
7804 * regcache.c (regcache_read_ftype, regcache_write_ftype):
7805 Remove.
7806
561a72d4
TC
78072018-05-15 Tamar Christina <tamar.christina@arm.com>
7808
7809 PR binutils/21446
7810 * aarch64-tdep.c (aarch64_analyze_prologue,
7811 aarch64_software_single_step, aarch64_displaced_step_copy_insn):
7812 Indicate not interested in errors.
7813
4e6ff0e1
MR
78142018-05-15 Maciej W. Rozycki <macro@mips.com>
7815
7816 * mips-linux-nat.c (mips_linux_nat_target::fetch_registers):
7817 Supply the MIPS_ZERO_REGNUM register.
7818
ea33cd92
MR
78192018-05-15 Maciej W. Rozycki <macro@mips.com>
7820
7821 * mips-tdep.c (mask_address_var): Make variable static.
7822
2d79090e
TT
78232018-05-14 Tom Tromey <tom@tromey.com>
7824
7825 * dwarf2read.c (rust_union_quirks): Clear rust_unions.
7826
cf4912ae
AB
78272018-05-11 Andrew Burgess <andrew.burgess@embecosm.com>
7828
7829 * i387-tdep.c (i387_collect_xsave): Use FXSAVE_MXCSR_ADDR not
7830 FXSAVE_ADDR for the mxcsr register.
7831
67e6f569
MF
78322018-05-11 Max Filippov <jcmvbkbc@gmail.com>
7833
7834 * configure.tgt (xtensa*-*-linux*): Drop gdb_target definition.
7835
15244507
PA
78362018-05-11 Pedro Alves <palves@redhat.com>
7837
7838 * corelow.c (core_target) <core_target>: No longer inline.
7839 Initialize m_core_gdbarch, m_core_vec and build the section table
7840 here.
7841 <~core_target>: New.
7842 <core_gdbarch, get_core_register_section>: New methods.
7843 <m_core_section_table, m_core_vec, m_core_gdbarch>: New fields,
7844 factored out from ...
7845 <core_data, core_vec, core_gdbarch>: ... these deleted globals.
7846 (core_ops): Delete.
7847 (sniff_core_bfd): Add gdbarch parameter.
7848 (core_close): Delete, merged into ...
7849 (core_target::close): ... here. Delete self.
7850 (core_close_cleanup): Delete.
7851 (core_target_open): Allocate a core_target on the heap. Use a
7852 unique_ptr instead of a cleanup. Bits moved into the core_target
7853 ctor. Adjust to use core_target methods instead of globals.
7854 (get_core_register_section): Rename to ...
7855 (core_target::get_core_register_section): ... this and adjust.
7856 (struct get_core_registers_cb_data): New.
7857 (get_core_registers_cb): Use it. Use bool.
7858 (core_target::fetch_registers, core_target::files_info)
7859 (core_target::xfer_partial, core_target::read_description)
7860 (core_target::pid_to, core_target::thread_name): Adjust to
7861 reference class fields instead of globals.
7862 * target.h (struct target_ops_deleter, target_ops_up): New.
7863
451953fa
PA
78642018-05-11 Pedro Alves <palves@redhat.com>
7865
7866 * corefile.c (core_file_command): Move to corelow.c.
7867 * corelow.c (the_core_target): Delete.
7868 (core_file_command): Moved from corefile.c. Check exec_bfd
7869 instead of the_core_target. Use target_detach instead of calling
7870 into the_core_target directly.
7871 (maybe_say_no_core_file_now): New.
7872 (core_target::detach): Use it.
7873 (_initialize_corelow): Remove references to the_core_target.
7874 * gdbcore.h (the_core_target): Delete.
7875
e540a5a2 78762018-05-11 Tom Tromey <tromey@redhat.com>
3afc23a6 7877 Pedro Alves <palves@redhat.com>
e540a5a2
TT
7878
7879 * corefile.c (core_bfd): Remove.
7880 * gdbcore.h (core_bfd): Now a macro.
7881 * progspace.h (struct program_space) <cbfd>: New field.
7882
633cf254
TT
78832018-05-11 Tom Tromey <tom@tromey.com>
7884
7885 * mdebugread.c (parse_partial_symbols, psymtab_to_symtab_1): Use
7886 gdb::def_vector.
7887
1a34f210
TT
78882018-05-10 Tom Tromey <tom@tromey.com>
7889
7890 * configure: Rebuild.
7891 * warning.m4 (AM_GDB_WARNINGS): Use -Wimplicit-fallthrough=3.
7892
190852c8
JB
78932018-05-10 Joel Brobecker <brobecker@adacore.com>
7894
7895 PR server/23158:
7896 * regformats/regdat.sh: Adjust script, following the addition
7897 of the new expedite_regs parameter to init_target_desc.
7898
8727de56
OJ
78992018-05-10 Omair Javaid <omair.javaid@linaro.org>
7900
7901 PR gdb/23127
7902 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Add call to
7903 set_gdbarch_significant_addr_bit.
7904 * aarch64-tdep.c (aarch64_gdbarch_init): Remove call to
7905 set_gdbarch_significant_addr_bit.
7906 * utils.c (address_significant): Update to sign extend addr.
7907
37d9e062
MF
79082018-05-09 Max Filippov <jcmvbkbc@gmail.com>
7909
7910 * xtensa-linux-tdep.c (xtensa-tdep.h): New include.
7911 (xtensa_linux_init_abi): Limit tdep->num_regs by
7912 tdep->num_nopriv_regs.
7913 * xtensa-tdep.c (xtensa_derive_tdep): Calculate
7914 tdep->num_nopriv_regs and only copy it to tdep->num_regs if it's
7915 not initialized.
7916
7402fbca
SM
79172018-05-08 Simon Marchi <simon.marchi@ericsson.com>
7918
7919 * unittests/string_view-selftests.c: Define GNULIB_NAMESPACE.
7920
8ee22052
AB
79212018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
7922
7923 * common/x86-xstate.h (I387_FCTRL_INIT_VAL): New constant.
7924 (I387_MXCSR_INIT_VAL): New constant.
7925 * amd64-tdep.c (amd64_supply_xsave): Only read state from xsave
7926 buffer if it was supplied by the inferior.
7927 * i387-tdep.c (i387_supply_fsave): Use I387_MXCSR_INIT_VAL.
7928 (i387_xsave_get_clear_bv): New function.
7929 (i387_supply_xsave): Only read x87 control registers from the
7930 xsave buffer if the feature is enabled, and the state will have
7931 been written, otherwise, provide a suitable default.
7932 (i387_collect_xsave): Pre-clear all registers in xsave buffer,
7933 including x87 control registers. Update control registers if they
7934 have changed from the default value, and mark features as enabled
7935 as required.
7936 * i387-tdep.h (i387_xsave_get_clear_bv): Declare.
7937
968ae51b
UW
79382018-05-08 Ulrich Weigand <uweigand@de.ibm.com>
7939
7940 * spu-tdep.c (info_spu_event_command): Fix output formatting.
7941
aff689d3
TT
79422018-05-07 Tom Tromey <tom@tromey.com>
7943
7944 * configure: Rebuild.
7945 * warning.m4 (AM_GDB_WARNINGS): Add -Wduplicated-cond.
7946
ce887586
TT
79472018-05-07 Tom Tromey <tom@tromey.com>
7948
7949 PR tdep/20362:
7950 * arm-tdep.c (arm_record_vfp_data_proc_insn): Properly mask off D
7951 bit. Use correct value for VDIV.
7952
85e26832
TT
79532018-05-04 Tom Tromey <tom@tromey.com>
7954
7955 * configure: Rebuild.
7956 * warning.m4 (AM_GDB_WARNINGS): Add -Wimplicit-fallthrough.
7957
449b1ac7
TT
79582018-05-04 Tom Tromey <tom@tromey.com>
7959
7960 * linux-record.c (record_linux_system_call) <case
7961 RECORD_SYS_RECVFROM>: Add "break".
7962
15c9ffd6
TT
79632018-05-04 Tom Tromey <tom@tromey.com>
7964
7965 * mi/mi-main.c (mi_cmd_trace_frame_collected) <REGISTERS_FORMAT>:
7966 Add missing "break".
7967 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals) <NO_FRAME_FILTERS>:
7968 Add missing "break".
7969
e3829d13
TT
79702018-05-04 Tom Tromey <tom@tromey.com>
7971
7972 * rs6000-tdep.c (ppc_process_record_op4)
7973 (ppc_process_record_op63): Add fall-through comment.
7974
da0e1563
TT
79752018-05-04 Tom Tromey <tom@tromey.com>
7976
7977 * i386-tdep.c (i386_process_record): Add fall-through comment.
7978
0019cd49
TT
79792018-05-04 Tom Tromey <tom@tromey.com>
7980
7981 * stabsread.c (define_symbol) <case 'p'>: Add fall-through
7982 comment.
7983
565e0eda
TT
79842018-05-04 Tom Tromey <tom@tromey.com>
7985
7986 * riscv-tdep.c (riscv_isa_xlen): Add fall-through comment.
7987 * utils.c (can_dump_core) <LIMIT_CUR>: Add fall-through comment.
7988 * eval.c (fetch_subexp_value) <MEMORY_ERROR>: Add fall-through
7989 comment.
7990 * d-valprint.c (d_val_print) <TYPE_CODE_STRUCT>: Add fall-through
7991 comment.
7992 * coffread.c (coff_symtab_read) <C_LABEL>: Add fall-through
7993 comment.
7994
621846f4
TT
79952018-05-04 Tom Tromey <tom@tromey.com>
7996
7997 * dwarf2loc.c (unimplemented): Add ATTRIBUTE_NORETURN.
7998
86a73007
TT
79992018-05-04 Tom Tromey <tom@tromey.com>
8000
8001 * s390-tdep.c (s390_process_record): Fix fall-through comments.
8002 * xcoffread.c (scan_xcoff_symtab): Move comment later.
8003 * symfile.c (section_is_mapped): Fix fall-through comment.
8004 * stabsread.c (define_symbol, read_member_functions): Fix
8005 fall-through comment.
8006 * s390-linux-tdep.c (s390_process_record): Fix fall-through
8007 comment.
8008 * remote.c (remote_wait_as): Fix fall-through comment.
8009 * p-exp.y (yylex): Fix fall-through comment.
8010 * nat/x86-dregs.c (x86_length_and_rw_bits): Fix fall-through
8011 comment.
8012 * msp430-tdep.c (msp430_gdbarch_init): Fix fall-through comment.
8013 * mdebugread.c (parse_partial_symbols): Fix fall-through comment.
8014 * jv-exp.y (yylex): Fix fall-through comment.
8015 * go-exp.y (lex_one_token): Fix fall-through comment.
8016 * gdbtypes.c (get_discrete_bounds, rank_one_type): Fix
8017 fall-through comment.
8018 * f-exp.y (yylex): Fix fall-through comment.
8019 * dwarf2read.c (process_die): Fix fall-through comments.
8020 * dbxread.c (process_one_symbol): Fix fall-through comment.
8021 * d-exp.y (lex_one_token): Fix fall-through comment.
8022 * cp-name-parser.y (yylex): Fix fall-through comment.
8023 * coffread.c (coff_symtab_read): Fix fall-through comment.
8024 * c-exp.y (lex_one_token): Fix fall-through comment.
8025 * arm-tdep.c (arm_decode_miscellaneous): Fix fall-through
8026 comment.
8027 * arch/arm.c (arm_instruction_changes_pc): Fix fall-through
8028 comment.
8029
56bcdbea
TT
80302018-05-04 Tom Tromey <tom@tromey.com>
8031
8032 PR python/22730:
8033 * NEWS: Mention gdb.execute change.
8034 * gdbcmd.h (execute_control_command): Don't declare.
8035 * python/python.c (execute_gdb_command): Use read_command_lines_1,
8036 execute_control_commands, execute_control_commands_to_string.
8037 * cli/cli-script.h (execute_control_commands)
8038 (execute_control_commands_to_string): Declare.
8039 (execute_control_command): Add from_tty parameter.
8040 * cli/cli-script.c (execute_control_commands)
8041 (execute_control_commands_to_string): New functions.
8042 (execute_user_command): Use execute_control_commands.
8043 (execute_control_command_1): Add "from_tty" parameter. Update.
8044 (execute_control_command): Likewise.
8045
a913fffb
TT
80462018-05-04 Tom Tromey <tom@tromey.com>
8047
8048 PR python/22731:
8049 * NEWS: Mention that breakpoint commands are writable.
8050 * python/py-breakpoint.c (bppy_set_commands): New function.
8051 (breakpoint_object_getset) <"commands">: Use it.
8052
60b3cef2
TT
80532018-05-04 Tom Tromey <tom@tromey.com>
8054
8055 * tracepoint.c (actions_command): Update.
8056 * mi/mi-cmd-break.c (mi_command_line_array)
8057 (mi_command_line_array_cnt, mi_command_line_array_ptr)
8058 (mi_read_next_line): Remove.
8059 (mi_cmd_break_commands): Update.
8060 * cli/cli-script.h (read_command_lines, read_command_lines_1): Use
8061 function_view.
8062 * cli/cli-script.c (get_command_line): Update.
8063 (process_next_line): Use function_view. Constify.
8064 (recurse_read_control_structure, read_command_lines)
8065 (read_command_lines_1): Change argument types to function_view.
8066 (do_define_command, document_command): Update.
8067 * breakpoint.h (check_tracepoint_command): Don't declare.
8068 * breakpoint.c (check_tracepoint_command): Remove.
8069 (commands_command_1, create_tracepoint_from_upload): Update.
8070
7a2c85f2
TT
80712018-05-04 Tom Tromey <tom@tromey.com>
8072
8073 PR gdb/11750:
8074 * cli/cli-script.h (enum command_control_type) <define_control>:
8075 New constant.
8076 * cli/cli-script.c (multi_line_command_p): Handle define_control.
8077 (build_command_line, execute_control_command_1)
8078 (process_next_line): Likewise.
8079 (do_define_command): New function, extracted from define_command.
8080 (define_command): Use it.
8081
295dc222
TT
80822018-05-04 Tom Tromey <tom@tromey.com>
8083
8084 * tracepoint.c (actions_command): Update.
8085 * cli/cli-script.h (read_command_lines): Update.
8086 * cli/cli-script.c (read_command_lines): Constify prompt_arg.
8087 (MAX_TMPBUF): Remove define.
8088 (define_command): Use string_printf.
8089 (document_command): Likewise.
8090 * breakpoint.c (commands_command_1): Update.
8091
1263a9d5
TT
80922018-05-04 Tom Tromey <tom@tromey.com>
8093
8094 * top.c (execute_command): Update.
8095 * cli/cli-script.h (print_command_lines): Now varargs.
8096 * cli/cli-script.c (print_command_lines): Now varargs.
8097 (execute_control_command_1) <case while_control, case if_control>:
8098 Update.
8099
12973681
TT
81002018-05-04 Tom Tromey <tom@tromey.com>
8101
8102 * tracepoint.c (all_tracepoint_actions): Rename from
8103 all_tracepoint_actions_and_cleanup. Change return type.
8104 (actions_command, encode_actions_1, encode_actions)
8105 (trace_dump_actions, tdump_command): Update.
8106 * remote.c (remote_download_command_source): Update.
8107 * python/python.c (gdbpy_eval_from_control_command)
8108 (python_command, python_interactive_command): Update.
8109 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
8110 * guile/guile.c (guile_command)
8111 (gdbscm_eval_from_control_command, guile_command): Update.
8112 * compile/compile.c (compile_code_command)
8113 (compile_print_command, compile_to_object): Update.
8114 * cli/cli-script.h (struct command_lines_deleter): New.
8115 (counted_command_line): New typedef.
8116 (struct command_line): Add constructor, destructor.
8117 <body_list>: Remove.
8118 <body_list_0, body_list_1>: New members.
8119 (command_line_up): Remove typedef.
8120 (read_command_lines, read_command_lines_1, get_command_line):
8121 Update.
8122 (copy_command_lines): Don't declare.
8123 * cli/cli-script.c (build_command_line): Use "new".
8124 (get_command_line): Return counted_command_line.
8125 (print_command_lines, execute_user_command)
8126 (execute_control_command_1, while_command, if_command): Update.
8127 (realloc_body_list): Remove.
8128 (process_next_line, recurse_read_control_structure): Update.
8129 (read_command_lines, read_command_lines_1): Return counted_command_line.
8130 (free_command_lines): Use "delete".
8131 (copy_command_lines): Remove.
8132 (define_command, document_command, show_user_1): Update.
8133 * cli/cli-decode.h (struct cmd_list_element) <user_commands>: Now
8134 a counted_command_line.
8135 * breakpoint.h (counted_command_line): Remove typedef.
8136 (breakpoint_set_commands): Update.
8137 * breakpoint.c (check_no_tracepoint_commands)
8138 (validate_commands_for_breakpoint): Update.
8139 (breakpoint_set_commands): Change commands to be a
8140 counted_command_line.
8141 (commands_command_1, update_dprintf_command_list)
8142 (create_tracepoint_from_upload): Update.
8143
e2fc72e2
TT
81442018-05-04 Tom Tromey <tom@tromey.com>
8145
8146 * cli/cli-decode.h (cmd_list_element): New constructor.
8147 (~cmd_list_element): New destructor.
8148 (struct cmd_list_element): Add initializers.
8149 * cli/cli-decode.c (do_add_cmd): Use "new".
8150 (delete_cmd): Use "delete".
8151
a3b60e45
JK
81522018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
8153 Pedro Alves <palves@redhat.com>
8154
8155 PR breakpoints/19806 and support for PR external/20207.
8156 * NEWS: Mention Aarch64 watchpoint improvements.
8157 * aarch64-linux-nat.c (aarch64_linux_stopped_data_address): Fix missed
8158 watchpoints and PR external/20207 watchpoints.
8159 * nat/aarch64-linux-hw-point.c
8160 (kernel_supports_any_contiguous_range): New.
8161 (aarch64_watchpoint_offset): New.
8162 (aarch64_watchpoint_length): Support PR external/20207 watchpoints.
8163 (aarch64_point_encode_ctrl_reg): New parameter offset, new asserts.
8164 (aarch64_point_is_aligned): Support PR external/20207 watchpoints.
8165 (aarch64_align_watchpoint): New parameters aligned_offset_p and
8166 next_addr_orig_p. Support PR external/20207 watchpoints.
8167 (aarch64_downgrade_regs): New.
8168 (aarch64_dr_state_insert_one_point): New parameters offset and
8169 addr_orig.
8170 (aarch64_dr_state_remove_one_point): Likewise.
8171 (aarch64_handle_breakpoint): Update caller.
8172 (aarch64_handle_aligned_watchpoint): Likewise.
8173 (aarch64_handle_unaligned_watchpoint): Support addr_orig and
8174 aligned_offset.
8175 (aarch64_linux_set_debug_regs): Remove const from state. Call
8176 aarch64_downgrade_regs.
8177 (aarch64_show_debug_reg_state): Print also dr_addr_orig_wp.
8178 * nat/aarch64-linux-hw-point.h (DR_CONTROL_LENGTH): Rename to ...
8179 (DR_CONTROL_MASK): ... this.
8180 (struct aarch64_debug_reg_state): New field dr_addr_orig_wp.
8181 (unsigned int aarch64_watchpoint_offset): New prototype.
8182 (aarch64_linux_set_debug_regs): Remove const from state.
8183 * utils.c (align_up, align_down): Move to ...
8184 * common/common-utils.c (align_up, align_down): ... here.
8185 * utils.h (align_up, align_down): Move to ...
8186 * common/common-utils.h (align_up, align_down): ... here.
8187
05bc7456
JB
81882018-05-04 Joel Brobecker <brobecker@adacore.com>
8189
8190 * sparc-tdep.c (sparc_structure_return_p): Re-implement to
8191 match the ABI as summarized in GCC's gcc/config/sparc/sparc.c.
8192 (sparc_arg_by_memory_p): Renamed from sparc_arg_on_registers_p.
8193 Re-implement to match the ABI as summarized in GCC's
8194 gcc/config/sparc/sparc.c. All callers updated.
8195 (sparc32_store_arguments): Remove assertion.
8196
2f433492
TT
81972018-05-04 Tom Tromey <tom@tromey.com>
8198
8199 * printcmd.c: Don't include tui.h.
8200 (decode_format): Use skip_spaces.
8201
9be2ae8f
TT
82022018-05-04 Tom Tromey <tom@tromey.com>
8203
8204 PR gdb/22619:
8205 * printcmd.c (last_count): New global.
8206 (x_command): Use saved count when repeating.
8207
f0b3976b
TT
82082018-05-04 Tom Tromey <tom@tromey.com>
8209
8210 * nto-procfs.c (do_closedir_cleanup): Remove.
8211 (procfs_pidlist): Use gdb_dir_up.
8212 * procfs.c (do_closedir_cleanup): Remove.
8213 (proc_update_threads): Use gdb_dir_up.
8214 * common/filestuff.h (struct gdb_dir_deleter): New.
8215 (gdb_dir_up): New typedef.
8216
862d101a
TT
82172018-05-04 Tom Tromey <tom@tromey.com>
8218
8219 * ada-lang.c (print_mention_exception): Use std::string.
8220
cb7de75e
TT
82212018-05-04 Tom Tromey <tom@tromey.com>
8222
8223 * ada-lang.c (create_excep_cond_exprs): Update.
8224 (ada_exception_catchpoint_cond_string): Use std::string.
8225
49d83361
TT
82262018-05-04 Tom Tromey <tom@tromey.com>
8227
8228 * ada-lang.c (xget_renaming_scope): Return std::string.
8229 (old_renaming_is_invisible): Update.
8230
ade72a34
TT
82312018-05-04 Tom Tromey <tom@tromey.com>
8232
8233 * bfd-target.c (target_bfd::m_bfd): Now a gdb_bfd_ref_ptr.
8234 (target_bfd::target_bfd, target_bfd::~target_bfd): Update.
8235
2be4d7f0
UW
82362018-05-04 Ulrich Weigand <uweigand@de.ibm.com>
8237
8238 * spu-linux-nat.c (spu_linux_nat_target::wait): Fix syntax error.
8239
69b6ecb0
TT
82402018-05-04 Tom Tromey <tom@tromey.com>
8241
8242 * remote.c (remote_query_supported_append): Change type.
8243 (remote_check_symbols): Update.
8244
bf27f0e2
PP
82452018-05-04 Paul Pluzhnikov <ppluzhnikov@google.com>
8246
8247 PR gdb/11420
8248 * configure.ac: Prepend libpython.
8249 * python/python-config.py: Likewise.
8250 * configure: Regenerate.
8251
4ea17de8
SM
82522018-05-03 Simon Marchi <simon.marchi@ericsson.com>
8253
8254 * Makefile.in (%.c: %.l): Use -t instead of --stdout.
8255
bd732259
PA
82562018-05-03 Pedro Alves <palves@redhat.com>
8257
8258 * s390-linux-nat.c
8259 (s390_linux_nat_target::have_continuable_watchpoint): Mark with
8260 override. Write 'true' instead of '1'.
8261 (s390_linux_nat_target::watchpoint_addr_within_range): Remove
8262 declaration.
8263
d9f719f1
PA
82642018-05-02 Pedro Alves <palves@redhat.com>
8265
8266 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Use
8267 add_inf_child_target.
8268 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Use
8269 add_inf_child_target.
8270 * aix-thread.c (aix_thread_target_info): New.
8271 (aix_thread_target) <shortname, longname, doc>: Delete.
8272 <info>: New.
8273 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Use
8274 add_inf_child_target.
8275 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Use
8276 add_inf_child_target.
8277 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Use
8278 add_inf_child_target.
8279 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Use
8280 add_inf_child_target.
8281 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Use
8282 add_inf_child_target.
8283 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Use
8284 add_inf_child_target.
8285 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Use
8286 add_inf_child_target.
8287 * arm-linux-nat.c (_initialize_arm_linux_nat): Use
8288 add_inf_child_target.
8289 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Use
8290 add_inf_child_target.
8291 * bfd-target.c (target_bfd_target_info): New.
8292 (target_bfd) <shortname, longname, doc>: Delete.
8293 <info>: New.
8294 * bsd-kvm.c (bsd_kvm_target_info): New.
8295 (bsd_kvm_target) <shortname, longname, doc>: Delete.
8296 <info>: New.
8297 (bsd_kvm_target::open): Rename to ...
8298 (bsd_kvm_target_open): ... this. Adjust.
8299 * bsd-uthread.c (bsd_uthread_target_info): New.
8300 (bsd_uthread_target) <shortname, longname, doc>: Delete.
8301 <info>: New.
8302 * corefile.c (core_file_command): Adjust.
8303 * corelow.c (core_target_info): New.
8304 (core_target) <shortname, longname, doc>: Delete.
8305 <info>: New.
8306 (core_target::open): Rename to ...
8307 (core_target_open): ... this. Adjust.
8308 * ctf.c (ctf_target_info): New.
8309 (ctf_target) <shortname, longname, doc>: Delete.
8310 <info>: New.
8311 (ctf_target::open): Rename to ...
8312 (ctf_target_open): ... this.
8313 (_initialize_ctf): Adjust.
8314 * exec.c (exec_target_info): New.
8315 (exec_target) <shortname, longname, doc>: Delete.
8316 <info>: New.
8317 (exec_target::open): Rename to ...
8318 (exec_target_open): ... this.
8319 * gdbcore.h (core_target_open): Declare.
8320 * go32-nat.c (_initialize_go32_nat): Use add_inf_child_target.
8321 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Use
8322 add_inf_child_target.
8323 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Use
8324 add_inf_child_target.
8325 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Use
8326 add_inf_child_target.
8327 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Use
8328 add_inf_child_target.
8329 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Use
8330 add_inf_child_target.
8331 * i386-gnu-nat.c (_initialize_i386gnu_nat): Use
8332 add_inf_child_target.
8333 * i386-linux-nat.c (_initialize_i386_linux_nat): Use
8334 add_inf_child_target.
8335 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Use
8336 add_inf_child_target.
8337 * i386-obsd-nat.c (_initialize_i386obsd_nat): Use
8338 add_inf_child_target.
8339 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Use
8340 add_inf_child_target.
8341 * inf-child.c (inf_child_target_info): New.
8342 (inf_child_target::info): New.
8343 (inf_child_open_target): Remove 'target' parameter. Use
8344 get_native_target instead.
8345 (inf_child_target::open): Delete.
8346 (add_inf_child_target): New.
8347 * inf-child.h (inf_child_target) <shortname, longname, doc, open>:
8348 Delete.
8349 <info>: New.
8350 (add_inf_child_target): Declare.
8351 (inf_child_open_target): Declare.
8352 * linux-thread-db.c (thread_db_target_info): New.
8353 (thread_db_target) <shortname, longname, doc>: Delete.
8354 <info>: New.
8355 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Use
8356 add_inf_child_target.
8357 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Use
8358 add_inf_child_target.
8359 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Use
8360 add_inf_child_target.
8361 * m88k-bsd-nat.c (_initialize_m88kbsd_nat): Use
8362 add_inf_child_target.
8363 * make-target-delegates (print_class): Adjust.
8364 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Use
8365 add_inf_child_target.
8366 * mips-linux-nat.c (_initialize_mips_linux_nat): Use
8367 add_inf_child_target.
8368 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Use
8369 add_inf_child_target.
8370 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Use
8371 add_inf_child_target.
8372 * nto-procfs.c (nto_native_target_info): New.
8373 (nto_procfs_target_native) <shortname, longname, doc>:
8374 Delete.
8375 <info>: New.
8376 (nto_procfs_target_info): New.
8377 (nto_procfs_target_procfs) <shortname, longname, doc>:
8378 Delete.
8379 <info>: New.
8380 (init_procfs_targets): Adjust.
8381 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Use
8382 add_inf_child_target.
8383 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Use
8384 add_inf_child_target.
8385 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Use
8386 add_inf_child_target.
8387 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Use
8388 add_inf_child_target.
8389 * ravenscar-thread.c (ravenscar_target_info): New.
8390 (ravenscar_thread_target) <shortname, longname, doc>:
8391 Delete.
8392 <info>: New.
8393 * record-btrace.c (record_btrace_target_info):
8394 (record_btrace_target) <shortname, longname, doc>: Delete.
8395 <info>: New.
8396 (record_btrace_target::open): Rename to ...
8397 (record_btrace_target_open): ... this. Adjust.
8398 * record-full.c (record_longname, record_doc): New.
8399 (record_full_base_target) <shortname, longname, doc>: Delete.
8400 <info>: New.
8401 (record_full_target_info): New.
8402 (record_full_target): <shortname>: Delete.
8403 <info>: New.
8404 (record_full_core_open_1, record_full_open_1): Update comments.
8405 (record_full_base_target::open): Rename to ...
8406 (record_full_open): ... this.
8407 (cmd_record_full_restore): Update.
8408 (_initialize_record_full): Update.
8409 * remote-sim.c (remote_sim_target_info): New.
8410 (gdbsim_target) <shortname, longname, doc>: Delete.
8411 <info>: New.
8412 (gdbsim_target::open): Rename to ...
8413 (gdbsim_target_open): ... this.
8414 (_initialize_remote_sim): Adjust.
8415 * remote.c (remote_doc): New.
8416 (remote_target_info): New.
8417 (remote_target) <shortname, longname, doc>: Delete.
8418 <info>: New.
8419 (extended_remote_target_info): New.
8420 (extended_remote_target) <shortname, longname, doc>: Delete.
8421 <info>: New.
8422 (remote_target::open_1): Make static. Adjust.
8423 * rs6000-nat.c (_initialize_rs6000_nat): Use add_inf_child_target.
8424 * s390-linux-nat.c (_initialize_s390_nat): Use
8425 add_inf_child_target.
8426 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Use
8427 add_inf_child_target.
8428 * sol-thread.c (thread_db_target_info): New.
8429 (sol_thread_target) <shortname, longname, doc>: Delete.
8430 <info>: New.
8431 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Use
8432 add_inf_child_target.
8433 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Use
8434 add_inf_child_target.
8435 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Use
8436 add_inf_child_target.
8437 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Use
8438 add_inf_child_target.
8439 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Use
8440 add_inf_child_target.
8441 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Use
8442 add_inf_child_target.
8443 * spu-linux-nat.c (_initialize_spu_nat): Use
8444 add_inf_child_target.
8445 * spu-multiarch.c (spu_multiarch_target_info): New.
8446 (spu_multiarch_target) <shortname, longname, doc>: Delete.
8447 <info>: New.
8448 * target-delegates.c: Regenerate.
8449 * target.c: Include <unordered_map>.
8450 (target_ops_p): Delete.
8451 (DEF_VEC_P(target_ops_p)): Delete.
8452 (target_factories): New.
8453 (test_target_info): New.
8454 (test_target_ops::info): New.
8455 (open_target): Adjust to use target_factories.
8456 (add_target_with_completer): Rename to ...
8457 (add_target): ... this. Change prototype. Register target_info
8458 and open callback in target_factories. Register target_info in
8459 command context instead of target_ops.
8460 (add_target): Delete old implementation.
8461 (add_deprecated_target_alias): Change prototype. Adjust.
8462 (the_native_target): New.
8463 (set_native_target, get_native_target): New.
8464 (find_default_run_target): Use the_native_target.
8465 (find_attach_target, find_run_target): Simplify.
8466 (target_ops::open): Delete.
8467 (dummy_target_info): New.
8468 (dummy_target::shortname, dummy_target::longname)
8469 (dummy_target::doc): Delete.
8470 (dummy_target::info): New.
8471 (debug_target::shortname, debug_target::longname)
8472 (debug_target::doc): Delete.
8473 (debug_target::info): New.
8474 * target.h (struct target_info): New.
8475 (target_ops::~target_ops): Add comment.
8476 (target_ops::info): New.
8477 (target_ops::shortname, target_ops::longname, target_ops::doc): No
8478 longer virtual. Implement in terms of target_info.
8479 (set_native_target, get_native_target): Declare.
8480 (target_open_ftype): New.
8481 (add_target, add_target_with_completer)
8482 (add_deprecated_target_alias): Change prototype.
8483 (test_target) <shortname, longname, doc>: Delete.
8484 <info>: New.
8485 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Use
8486 add_inf_child_target.
8487 * tracefile-tfile.c (tfile_target_info): New.
8488 (tfile_target) <shortname, longname, doc>: Delete.
8489 <info>: New.
8490 (tfile_target::open): Rename to ...
8491 (tfile_target_open): ... this.
8492 (_initialize_tracefile_tfile): Adjust.
8493 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Use
8494 add_inf_child_target.
8495 * windows-nat.c (_initialize_windows_nat): Use
8496 add_inf_child_target.
8497 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Use
8498 add_inf_child_target.
8499
135340af
PA
85002018-05-02 Pedro Alves <palves@redhat.com>
8501
8502 * linux-nat.h (linux_nat_target) <low_new_thread,
8503 low_delete_thread, low_new_fork, low_forget_process,
8504 low_prepare_to_resume, low_siginfo_fixup, low_status_is_event>:
8505 New virtual methods.
8506 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
8507 (linux_nat_new_fork_ftype, linux_nat_set_new_fork)
8508 (linux_nat_forget_process_ftype, linux_nat_set_forget_process)
8509 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
8510 (linux_nat_set_prepare_to_resume, linux_nat_set_status_is_event):
8511 Delete.
8512 * linux-fork.c (delete_fork): Adjust to call low method.
8513 * linux-nat.c (linux_nat_new_thread, linux_nat_delete_thread)
8514 (linux_nat_new_fork, linux_nat_forget_process_hook)
8515 (linux_nat_prepare_to_resume, linux_nat_siginfo_fixup)
8516 (linux_nat_status_is_event):
8517 (linux_nat_target::follow_fork, lwp_free, add_lwp, detach_one_lwp)
8518 (linux_resume_one_lwp_throw, linux_handle_extended_wait): Adjust
8519 to call low method.
8520 (sigtrap_is_event): Rename to ...
8521 (linux_nat_target::low_status_is_event): ... this.
8522 (linux_nat_set_status_is_event): Delete.
8523 (save_stop_reason, linux_nat_wait_1)
8524 (linux_nat_target::mourn_inferior, siginfo_fixup): Adjust to call
8525 low methods.
8526 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
8527 (linux_nat_set_new_fork, linux_nat_set_forget_process)
8528 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
8529 (linux_nat_set_prepare_to_resume): Delete.
8530 * aarch64-linux-nat.c: All linux_nat_set_* callbacks converted to
8531 low virtual methods.
8532 * amd64-linux-nat.c: Likewise.
8533 * arm-linux-nat.c: Likewise.
8534 * i386-linux-nat.c: Likewise.
8535 * ia64-linux-nat.c: Likewise.
8536 * mips-linux-nat.c: Likewise.
8537 * ppc-linux-nat.c: Likewise.
8538 * s390-linux-nat.c: Likewise.
8539 * sparc64-linux-nat.c: Likewise.
8540 * x86-linux-nat.c: Likewise.
8541 * x86-linux-nat.h: Include "nat/x86-linux.h".
8542 (x86_linux_nat_target) <low_new_fork, low_forget_process,
8543 low_prepare_to_resume, low_new_thread, low_delete_thread>:
8544 Override methods.
8545
57810aa7
PA
85462018-05-02 Pedro Alves <palves@redhat.com>
8547
8548 * target.h (target_ops)
8549 <stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
8550 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint,
8551 stopped_by_watchpoint, have_continuable_watchpoint,
8552 stopped_data_address, watchpoint_addr_within_range,
8553 can_accel_watchpoint_condition, can_run, thread_alive,
8554 has_all_memory, has_memory, has_stack, has_registers,
8555 has_execution, can_async_p, is_async_p, supports_non_stop,
8556 always_non_stop_p, can_execute_reverse, supports_multi_process,
8557 supports_enable_disable_tracepoint,
8558 supports_disable_randomization, supports_string_tracing,
8559 supports_evaluation_of_breakpoint_conditions,
8560 can_run_breakpoint_commands, filesystem_is_local,
8561 can_download_tracepoint, get_trace_state_variable_value,
8562 set_trace_notes, get_tib_address, use_agent, can_use_agent,
8563 record_is_replaying, record_will_replay,
8564 augmented_libraries_svr4_read>: Adjust to return bool.
8565 * aarch64-linux-nat.c: All implementations adjusted.
8566 * aix-thread.c: All implementations adjusted.
8567 * arm-linux-nat.c: All implementations adjusted.
8568 * breakpoint.c: All implementations adjusted.
8569 * bsd-kvm.c: All implementations adjusted.
8570 * bsd-uthread.c: All implementations adjusted.
8571 * corelow.c: All implementations adjusted.
8572 * ctf.c: All implementations adjusted.
8573 * darwin-nat.c: All implementations adjusted.
8574 * darwin-nat.h: All implementations adjusted.
8575 * exec.c: All implementations adjusted.
8576 * fbsd-nat.c: All implementations adjusted.
8577 * fbsd-nat.h: All implementations adjusted.
8578 * gnu-nat.c: All implementations adjusted.
8579 * gnu-nat.h: All implementations adjusted.
8580 * go32-nat.c: All implementations adjusted.
8581 * ia64-linux-nat.c: All implementations adjusted.
8582 * inf-child.c: All implementations adjusted.
8583 * inf-child.h: All implementations adjusted.
8584 * inf-ptrace.c: All implementations adjusted.
8585 * inf-ptrace.h: All implementations adjusted.
8586 * linux-nat.c: All implementations adjusted.
8587 * linux-nat.h: All implementations adjusted.
8588 * mips-linux-nat.c: All implementations adjusted.
8589 * nto-procfs.c: All implementations adjusted.
8590 * ppc-linux-nat.c: All implementations adjusted.
8591 * procfs.c: All implementations adjusted.
8592 * ravenscar-thread.c: All implementations adjusted.
8593 * record-btrace.c: All implementations adjusted.
8594 * record-full.c: All implementations adjusted.
8595 * remote-sim.c: All implementations adjusted.
8596 * remote.c: All implementations adjusted.
8597 * s390-linux-nat.c: All implementations adjusted.
8598 * sol-thread.c: All implementations adjusted.
8599 * spu-multiarch.c: All implementations adjusted.
8600 * target-delegates.c: All implementations adjusted.
8601 * target.c: All implementations adjusted.
8602 * target.h: All implementations adjusted.
8603 * tracefile-tfile.c: All implementations adjusted.
8604 * tracefile.c: All implementations adjusted.
8605 * tracefile.h: All implementations adjusted.
8606 * windows-nat.c: All implementations adjusted.
8607 * x86-linux-nat.h: All implementations adjusted.
8608 * x86-nat.h: All implementations adjusted.
8609
ad6a4e2d
PA
86102018-05-02 Pedro Alves <palves@redhat.com>
8611
8612 * make-target-delegates (scan_target_h): Don't trim lines here.
8613 Replace sequences of tabs and/or whitespace with a single
8614 whitespace.
8615 (top level, parsing methods): Trim each line before processing it
8616 here.
8617
f6ac5f3d
PA
86182018-05-02 Pedro Alves <palves@redhat.com>
8619 John Baldwin <jhb@freebsd.org>
8620
8621 * target.h (enum strata) <debug_stratum>: New.
8622 (struct target_ops) <all delegation methods>: Replace by C++
8623 virtual methods, and drop "to_" prefix. All references updated
8624 throughout.
8625 <to_shortname, to_longname, to_doc, to_data,
8626 to_have_steppable_watchpoint, to_have_continuable_watchpoint,
8627 to_has_thread_control, to_attach_no_wait>: Delete, replaced by
8628 virtual methods. All references updated throughout.
8629 <can_attach, supports_terminal_ours, can_create_inferior,
8630 get_thread_control_capabilities, attach_no_wait>: New
8631 virtual methods.
8632 <insert_breakpoint, remove_breakpoint>: Now
8633 TARGET_DEFAULT_NORETURN methods.
8634 <info_proc>: Now returns bool.
8635 <to_magic>: Delete.
8636 (OPS_MAGIC): Delete.
8637 (current_target): Delete. All references replaced by references
8638 to ...
8639 (target_stack): ... this. New.
8640 (target_shortname, target_longname): Adjust.
8641 (target_can_run): Now a function declaration.
8642 (default_child_has_all_memory, default_child_has_memory)
8643 (default_child_has_stack, default_child_has_registers)
8644 (default_child_has_execution): Remove target_ops parameter.
8645 (complete_target_initialization): Delete.
8646 (memory_breakpoint_target): New template class.
8647 (test_target_ops): Refactor as a C++ class with virtual methods.
8648 * make-target-delegates (NAME_PART): Tighten.
8649 (POINTER_PART, CP_SYMBOL): New.
8650 (SIMPLE_RETURN_PART): Reimplement.
8651 (VEC_RETURN_PART): Expect less.
8652 (RETURN_PART, VIRTUAL_PART): New.
8653 (METHOD): Adjust to C++ virtual methods.
8654 (scan_target_h): Remove reference to C99.
8655 (dname): Output "target_ops::" prefix.
8656 (write_function_header): Adjust to output a C++ class method.
8657 (write_declaration): New.
8658 (write_delegator): Adjust to output a C++ class method.
8659 (tdname): Output "dummy_target::" prefix.
8660 (write_tdefault, write_debugmethod): Adjust to output a C++ class
8661 method.
8662 (tdefault_names, debug_names): Delete.
8663 (return_types, tdefaults, styles, argtypes_array): New.
8664 (top level): All methods are delegators.
8665 (print_class): New.
8666 (top level): Print dummy_target and debug_target classes.
8667 * target-delegates.c: Regenerate.
8668 * target-debug.h (target_debug_print_enum_info_proc_what)
8669 (target_debug_print_thread_control_capabilities)
8670 (target_debug_print_thread_info_p): New.
8671 * target.c (dummy_target): Delete.
8672 (the_dummy_target, the_debug_target): New.
8673 (target_stack): Now extern.
8674 (set_targetdebug): Push/unpush debug target.
8675 (default_child_has_all_memory, default_child_has_memory)
8676 (default_child_has_stack, default_child_has_registers)
8677 (default_child_has_execution): Remove target_ops parameter.
8678 (complete_target_initialization): Delete.
8679 (add_target_with_completer): No longer call
8680 complete_target_initialization.
8681 (target_supports_terminal_ours): Use regular delegation.
8682 (update_current_target): Delete.
8683 (push_target): No longer check magic number. Don't call
8684 update_current_target.
8685 (unpush_target): Don't call update_current_target.
8686 (target_is_pushed): No longer check magic number.
8687 (target_require_runnable): Skip for all stratums over
8688 process_stratum.
8689 (target_ops::info_proc): New.
8690 (target_info_proc): Use find_target_at and
8691 find_default_run_target.
8692 (target_supports_disable_randomization): Use regular delegation.
8693 (target_get_osdata): Use find_target_at.
8694 (target_ops::open, target_ops::close, target_ops::can_attach)
8695 (target_ops::attach, target_ops::can_create_inferior)
8696 (target_ops::create_inferior, target_ops::can_run)
8697 (target_can_run): New.
8698 (default_fileio_target): Use regular delegation.
8699 (target_ops::fileio_open, target_ops::fileio_pwrite)
8700 (target_ops::fileio_pread, target_ops::fileio_fstat)
8701 (target_ops::fileio_close, target_ops::fileio_unlink)
8702 (target_ops::fileio_readlink): New.
8703 (target_fileio_open_1, target_fileio_unlink)
8704 (target_fileio_readlink): Always call the target method. Handle
8705 FILEIO_ENOSYS.
8706 (return_zero, return_zero_has_execution): Delete.
8707 (init_dummy_target): Delete.
8708 (dummy_target::dummy_target, dummy_target::shortname)
8709 (dummy_target::longname, dummy_target::doc)
8710 (debug_target::debug_target, debug_target::shortname)
8711 (debug_target::longname, debug_target::doc): New.
8712 (target_supports_delete_record): Use regular delegation.
8713 (setup_target_debug): Delete.
8714 (maintenance_print_target_stack): Skip debug_stratum.
8715 (initialize_targets): Instantiate the_dummy_target and
8716 the_debug_target.
8717 * auxv.c (target_auxv_parse): Remove 'ops' parameter. Adjust to
8718 use target_stack.
8719 (target_auxv_search, fprint_target_auxv): Adjust.
8720 (info_auxv_command): Adjust to use target_stack.
8721 * auxv.h (target_auxv_parse): Remove 'ops' parameter.
8722 * exceptions.c (print_flush): Handle a NULL target_stack.
8723 * regcache.c (target_ops_no_register): Refactor as class with
8724 virtual methods.
8725
8726 * exec.c (exec_target): New class.
8727 (exec_ops): Now an exec_target.
8728 (exec_open, exec_close_1, exec_get_section_table)
8729 (exec_xfer_partial, exec_files_info, exec_has_memory)
8730 (exec_make_note_section): Refactor as exec_target methods.
8731 (exec_file_clear, ignore, exec_remove_breakpoint, init_exec_ops):
8732 Delete.
8733 (exec_target::find_memory_regions): New.
8734 (_initialize_exec): Don't call init_exec_ops.
8735 * gdbcore.h (exec_file_clear): Delete.
8736
8737 * corefile.c (core_target): Delete.
8738 (core_file_command): Adjust.
8739 * corelow.c (core_target): New class.
8740 (the_core_target): New.
8741 (core_close): Remove target_ops parameter.
8742 (core_close_cleanup): Adjust.
8743 (core_target::close): New.
8744 (core_open, core_detach, get_core_registers, core_files_info)
8745 (core_xfer_partial, core_thread_alive, core_read_description)
8746 (core_pid_to_str, core_thread_name, core_has_memory)
8747 (core_has_stack, core_has_registers, core_info_proc): Rework as
8748 core_target methods.
8749 (ignore, core_remove_breakpoint, init_core_ops): Delete.
8750 (_initialize_corelow): Initialize the_core_target.
8751 * gdbcore.h (core_target): Delete.
8752 (the_core_target): New.
8753
8754 * ctf.c: (ctf_target): New class.
8755 (ctf_ops): Now a ctf_target.
8756 (ctf_open, ctf_close, ctf_files_info, ctf_fetch_registers)
8757 (ctf_xfer_partial, ctf_get_trace_state_variable_value)
8758 (ctf_trace_find, ctf_traceframe_info): Refactor as ctf_target
8759 methods.
8760 (init_ctf_ops): Delete.
8761 (_initialize_ctf): Don't call it.
8762 * tracefile-tfile.c (tfile_target): New class.
8763 (tfile_ops): Now a tfile_target.
8764 (tfile_open, tfile_close, tfile_files_info)
8765 (tfile_get_tracepoint_status, tfile_trace_find)
8766 (tfile_fetch_registers, tfile_xfer_partial)
8767 (tfile_get_trace_state_variable_value, tfile_traceframe_info):
8768 Refactor as tfile_target methods.
8769 (tfile_xfer_partial_features): Remove target_ops parameter.
8770 (init_tfile_ops): Delete.
8771 (_initialize_tracefile_tfile): Don't call it.
8772 * tracefile.c (tracefile_has_all_memory, tracefile_has_memory)
8773 (tracefile_has_stack, tracefile_has_registers)
8774 (tracefile_thread_alive, tracefile_get_trace_status): Refactor as
8775 tracefile_target methods.
8776 (init_tracefile_ops): Delete.
8777 (tracefile_target::tracefile_target): New.
8778 * tracefile.h: Include "target.h".
8779 (tracefile_target): New class.
8780 (init_tracefile_ops): Delete.
8781
8782 * spu-multiarch.c (spu_multiarch_target): New class.
8783 (spu_ops): Now a spu_multiarch_target.
8784 (spu_thread_architecture, spu_region_ok_for_hw_watchpoint)
8785 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
8786 (spu_search_memory, spu_mourn_inferior): Refactor as
8787 spu_multiarch_target methods.
8788 (init_spu_ops): Delete.
8789 (_initialize_spu_multiarch): Remove references to init_spu_ops,
8790 complete_target_initialization.
8791
8792 * ravenscar-thread.c (ravenscar_thread_target): New class.
8793 (ravenscar_ops): Now a ravenscar_thread_target.
8794 (ravenscar_resume, ravenscar_wait, ravenscar_update_thread_list)
8795 (ravenscar_thread_alive, ravenscar_pid_to_str)
8796 (ravenscar_fetch_registers, ravenscar_store_registers)
8797 (ravenscar_prepare_to_store, ravenscar_stopped_by_sw_breakpoint)
8798 (ravenscar_stopped_by_hw_breakpoint)
8799 (ravenscar_stopped_by_watchpoint, ravenscar_stopped_data_address)
8800 (ravenscar_mourn_inferior, ravenscar_core_of_thread)
8801 (ravenscar_get_ada_task_ptid): Refactor as ravenscar_thread_target
8802 methods.
8803 (init_ravenscar_thread_ops): Delete.
8804 (_initialize_ravenscar): Remove references to
8805 init_ravenscar_thread_ops and complete_target_initialization.
8806
8807 * bsd-uthread.c (bsd_uthread_ops_hack): Delete.
8808 (bsd_uthread_target): New class.
8809 (bsd_uthread_ops): Now a bsd_uthread_target.
8810 (bsd_uthread_activate): Adjust to refer to bsd_uthread_ops.
8811 (bsd_uthread_close, bsd_uthread_mourn_inferior)
8812 (bsd_uthread_fetch_registers, bsd_uthread_store_registers)
8813 (bsd_uthread_wait, bsd_uthread_resume, bsd_uthread_thread_alive)
8814 (bsd_uthread_update_thread_list, bsd_uthread_extra_thread_info)
8815 (bsd_uthread_pid_to_str): Refactor as bsd_uthread_target methods.
8816 (bsd_uthread_target): Delete function.
8817 (_initialize_bsd_uthread): Remove reference to
8818 complete_target_initialization.
8819
8820 * bfd-target.c (target_bfd_data): Delete. Fields folded into ...
8821 (target_bfd): ... this new class.
8822 (target_bfd_xfer_partial, target_bfd_get_section_table)
8823 (target_bfd_close): Refactor as target_bfd methods.
8824 (target_bfd::~target_bfd): New.
8825 (target_bfd_reopen): Adjust.
8826 (target_bfd::close): New.
8827
8828 * record-btrace.c (record_btrace_target): New class.
8829 (record_btrace_ops): Now a record_btrace_target.
8830 (record_btrace_open, record_btrace_stop_recording)
8831 (record_btrace_disconnect, record_btrace_close)
8832 (record_btrace_async, record_btrace_info)
8833 (record_btrace_insn_history, record_btrace_insn_history_range)
8834 (record_btrace_insn_history_from, record_btrace_call_history)
8835 (record_btrace_call_history_range)
8836 (record_btrace_call_history_from, record_btrace_record_method)
8837 (record_btrace_is_replaying, record_btrace_will_replay)
8838 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
8839 (record_btrace_remove_breakpoint, record_btrace_fetch_registers)
8840 (record_btrace_store_registers, record_btrace_prepare_to_store)
8841 (record_btrace_to_get_unwinder)
8842 (record_btrace_to_get_tailcall_unwinder, record_btrace_resume)
8843 (record_btrace_commit_resume, record_btrace_wait)
8844 (record_btrace_stop, record_btrace_can_execute_reverse)
8845 (record_btrace_stopped_by_sw_breakpoint)
8846 (record_btrace_supports_stopped_by_sw_breakpoint)
8847 (record_btrace_stopped_by_hw_breakpoint)
8848 (record_btrace_supports_stopped_by_hw_breakpoint)
8849 (record_btrace_update_thread_list, record_btrace_thread_alive)
8850 (record_btrace_goto_begin, record_btrace_goto_end)
8851 (record_btrace_goto, record_btrace_stop_replaying_all)
8852 (record_btrace_execution_direction)
8853 (record_btrace_prepare_to_generate_core)
8854 (record_btrace_done_generating_core): Refactor as
8855 record_btrace_target methods.
8856 (init_record_btrace_ops): Delete.
8857 (_initialize_record_btrace): Remove reference to
8858 init_record_btrace_ops.
8859 * record-full.c (RECORD_FULL_IS_REPLAY): Adjust to always refer to
8860 the execution_direction global.
8861 (record_full_base_target, record_full_target)
8862 (record_full_core_target): New classes.
8863 (record_full_ops): Now a record_full_target.
8864 (record_full_core_ops): Now a record_full_core_target.
8865 (record_full_target::detach, record_full_target::disconnect)
8866 (record_full_core_target::disconnect)
8867 (record_full_target::mourn_inferior, record_full_target::kill):
8868 New.
8869 (record_full_open, record_full_close, record_full_async): Refactor
8870 as methods of the record_full_base_target class.
8871 (record_full_resume, record_full_commit_resume): Refactor
8872 as methods of the record_full_target class.
8873 (record_full_wait, record_full_stopped_by_watchpoint)
8874 (record_full_stopped_data_address)
8875 (record_full_stopped_by_sw_breakpoint)
8876 (record_full_supports_stopped_by_sw_breakpoint)
8877 (record_full_stopped_by_hw_breakpoint)
8878 (record_full_supports_stopped_by_hw_breakpoint): Refactor as
8879 methods of the record_full_base_target class.
8880 (record_full_store_registers, record_full_xfer_partial)
8881 (record_full_insert_breakpoint, record_full_remove_breakpoint):
8882 Refactor as methods of the record_full_target class.
8883 (record_full_can_execute_reverse, record_full_get_bookmark)
8884 (record_full_goto_bookmark, record_full_execution_direction)
8885 (record_full_record_method, record_full_info, record_full_delete)
8886 (record_full_is_replaying, record_full_will_replay)
8887 (record_full_goto_begin, record_full_goto_end, record_full_goto)
8888 (record_full_stop_replaying): Refactor as methods of the
8889 record_full_base_target class.
8890 (record_full_core_resume, record_full_core_kill)
8891 (record_full_core_fetch_registers)
8892 (record_full_core_prepare_to_store)
8893 (record_full_core_store_registers, record_full_core_xfer_partial)
8894 (record_full_core_insert_breakpoint)
8895 (record_full_core_remove_breakpoint)
8896 (record_full_core_has_execution): Refactor
8897 as methods of the record_full_core_target class.
8898 (record_full_base_target::supports_delete_record): New.
8899 (init_record_full_ops): Delete.
8900 (init_record_full_core_ops): Delete.
8901 (record_full_save): Refactor as method of the
8902 record_full_base_target class.
8903 (_initialize_record_full): Remove references to
8904 init_record_full_ops and init_record_full_core_ops.
8905
8906 * remote.c (remote_target, extended_remote_target): New classes.
8907 (remote_ops): Now a remote_target.
8908 (extended_remote_ops): Now an extended_remote_target.
8909 (remote_insert_fork_catchpoint, remote_remove_fork_catchpoint)
8910 (remote_insert_vfork_catchpoint, remote_remove_vfork_catchpoint)
8911 (remote_insert_exec_catchpoint, remote_remove_exec_catchpoint)
8912 (remote_pass_signals, remote_set_syscall_catchpoint)
8913 (remote_program_signals, )
8914 (remote_thread_always_alive): Remove target_ops parameter.
8915 (remote_thread_alive, remote_thread_name)
8916 (remote_update_thread_list, remote_threads_extra_info)
8917 (remote_static_tracepoint_marker_at)
8918 (remote_static_tracepoint_markers_by_strid)
8919 (remote_get_ada_task_ptid, remote_close, remote_start_remote)
8920 (remote_open): Refactor as methods of remote_target.
8921 (extended_remote_open, extended_remote_detach)
8922 (extended_remote_attach, extended_remote_post_attach):
8923 (extended_remote_supports_disable_randomization)
8924 (extended_remote_create_inferior): : Refactor as method of
8925 extended_remote_target.
8926 (remote_set_permissions, remote_open_1, remote_detach)
8927 (remote_follow_fork, remote_follow_exec, remote_disconnect)
8928 (remote_resume, remote_commit_resume, remote_stop)
8929 (remote_interrupt, remote_pass_ctrlc, remote_terminal_inferior)
8930 (remote_terminal_ours, remote_wait, remote_fetch_registers)
8931 (remote_prepare_to_store, remote_store_registers)
8932 (remote_flash_erase, remote_flash_done, remote_files_info)
8933 (remote_kill, remote_mourn, remote_insert_breakpoint)
8934 (remote_remove_breakpoint, remote_insert_watchpoint)
8935 (remote_watchpoint_addr_within_range)
8936 (remote_remove_watchpoint, remote_region_ok_for_hw_watchpoint)
8937 (remote_check_watch_resources, remote_stopped_by_sw_breakpoint)
8938 (remote_supports_stopped_by_sw_breakpoint)
8939 (remote_stopped_by_hw_breakpoint)
8940 (remote_supports_stopped_by_hw_breakpoint)
8941 (remote_stopped_by_watchpoint, remote_stopped_data_address)
8942 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
8943 (remote_verify_memory): Refactor as methods of remote_target.
8944 (remote_write_qxfer, remote_read_qxfer): Remove target_ops
8945 parameter.
8946 (remote_xfer_partial, remote_get_memory_xfer_limit)
8947 (remote_search_memory, remote_rcmd, remote_memory_map)
8948 (remote_pid_to_str, remote_get_thread_local_address)
8949 (remote_get_tib_address, remote_read_description): Refactor as
8950 methods of remote_target.
8951 (remote_target::fileio_open, remote_target::fileio_pwrite)
8952 (remote_target::fileio_pread, remote_target::fileio_close): New.
8953 (remote_hostio_readlink, remote_hostio_fstat)
8954 (remote_filesystem_is_local, remote_can_execute_reverse)
8955 (remote_supports_non_stop, remote_supports_disable_randomization)
8956 (remote_supports_multi_process, remote_supports_cond_breakpoints)
8957 (remote_supports_enable_disable_tracepoint)
8958 (remote_supports_string_tracing)
8959 (remote_can_run_breakpoint_commands, remote_trace_init)
8960 (remote_download_tracepoint, remote_can_download_tracepoint)
8961 (remote_download_trace_state_variable, remote_enable_tracepoint)
8962 (remote_disable_tracepoint, remote_trace_set_readonly_regions)
8963 (remote_trace_start, remote_get_trace_status)
8964 (remote_get_tracepoint_status, remote_trace_stop)
8965 (remote_trace_find, remote_get_trace_state_variable_value)
8966 (remote_save_trace_data, remote_get_raw_trace_data)
8967 (remote_set_disconnected_tracing, remote_core_of_thread)
8968 (remote_set_circular_trace_buffer, remote_traceframe_info)
8969 (remote_get_min_fast_tracepoint_insn_len)
8970 (remote_set_trace_buffer_size, remote_set_trace_notes)
8971 (remote_use_agent, remote_can_use_agent, remote_enable_btrace)
8972 (remote_disable_btrace, remote_teardown_btrace)
8973 (remote_read_btrace, remote_btrace_conf)
8974 (remote_augmented_libraries_svr4_read, remote_load)
8975 (remote_pid_to_exec_file, remote_can_do_single_step)
8976 (remote_execution_direction, remote_thread_handle_to_thread_info):
8977 Refactor as methods of remote_target.
8978 (init_remote_ops, init_extended_remote_ops): Delete.
8979 (remote_can_async_p, remote_is_async_p, remote_async)
8980 (remote_thread_events, remote_upload_tracepoints)
8981 (remote_upload_trace_state_variables): Refactor as methods of
8982 remote_target.
8983 (_initialize_remote): Remove references to init_remote_ops and
8984 init_extended_remote_ops.
8985
8986 * remote-sim.c (gdbsim_target): New class.
8987 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_kill)
8988 (gdbsim_load, gdbsim_create_inferior, gdbsim_open, gdbsim_close)
8989 (gdbsim_detach, gdbsim_resume, gdbsim_interrupt)
8990 (gdbsim_wait, gdbsim_prepare_to_store, gdbsim_xfer_partial)
8991 (gdbsim_files_info, gdbsim_mourn_inferior, gdbsim_thread_alive)
8992 (gdbsim_pid_to_str, gdbsim_has_all_memory, gdbsim_has_memory):
8993 Refactor as methods of gdbsim_target.
8994 (gdbsim_ops): Now a gdbsim_target.
8995 (init_gdbsim_ops): Delete.
8996 (gdbsim_cntrl_c): Adjust.
8997 (_initialize_remote_sim): Remove reference to init_gdbsim_ops.
8998
8999 * amd64-linux-nat.c (amd64_linux_nat_target): New class.
9000 (the_amd64_linux_nat_target): New.
9001 (amd64_linux_fetch_inferior_registers)
9002 (amd64_linux_store_inferior_registers): Refactor as methods of
9003 amd64_linux_nat_target.
9004 (_initialize_amd64_linux_nat): Adjust. Set linux_target.
9005 * i386-linux-nat.c: Don't include "linux-nat.h".
9006 (i386_linux_nat_target): New class.
9007 (the_i386_linux_nat_target): New.
9008 (i386_linux_fetch_inferior_registers)
9009 (i386_linux_store_inferior_registers, i386_linux_resume): Refactor
9010 as methods of i386_linux_nat_target.
9011 (_initialize_i386_linux_nat): Adjust. Set linux_target.
9012 * inf-child.c (inf_child_ops): Delete.
9013 (inf_child_fetch_inferior_registers)
9014 (inf_child_store_inferior_registers): Delete.
9015 (inf_child_post_attach, inf_child_prepare_to_store): Refactor as
9016 methods of inf_child_target.
9017 (inf_child_target::supports_terminal_ours)
9018 (inf_child_target::terminal_init)
9019 (inf_child_target::terminal_inferior)
9020 (inf_child_target::terminal_ours_for_output)
9021 (inf_child_target::terminal_ours, inf_child_target::interrupt)
9022 (inf_child_target::pass_ctrlc, inf_child_target::terminal_info):
9023 New.
9024 (inf_child_open, inf_child_disconnect, inf_child_close)
9025 (inf_child_mourn_inferior, inf_child_maybe_unpush_target)
9026 (inf_child_post_startup_inferior, inf_child_can_run)
9027 (inf_child_pid_to_exec_file): Refactor as methods of
9028 inf_child_target.
9029 (inf_child_follow_fork): Delete.
9030 (inf_child_target::can_create_inferior)
9031 (inf_child_target::can_attach): New.
9032 (inf_child_target::has_all_memory, inf_child_target::has_memory)
9033 (inf_child_target::has_stack, inf_child_target::has_registers)
9034 (inf_child_target::has_execution): New.
9035 (inf_child_fileio_open, inf_child_fileio_pwrite)
9036 (inf_child_fileio_pread, inf_child_fileio_fstat)
9037 (inf_child_fileio_close, inf_child_fileio_unlink)
9038 (inf_child_fileio_readlink, inf_child_use_agent)
9039 (inf_child_can_use_agent): Refactor as methods of
9040 inf_child_target.
9041 (return_zero, inf_child_target): Delete.
9042 (inf_child_target::inf_child_target): New.
9043 * inf-child.h: Include "target.h".
9044 (inf_child_target): Delete function prototype.
9045 (inf_child_target): New class.
9046 (inf_child_open_target, inf_child_mourn_inferior)
9047 (inf_child_maybe_unpush_target): Delete.
9048 * inf-ptrace.c (inf_ptrace_target::~inf_ptrace_target): New.
9049 (inf_ptrace_follow_fork, inf_ptrace_insert_fork_catchpoint)
9050 (inf_ptrace_remove_fork_catchpoint, inf_ptrace_create_inferior)
9051 (inf_ptrace_post_startup_inferior, inf_ptrace_mourn_inferior)
9052 (inf_ptrace_attach, inf_ptrace_post_attach, inf_ptrace_detach)
9053 (inf_ptrace_detach_success, inf_ptrace_kill, inf_ptrace_resume)
9054 (inf_ptrace_wait, inf_ptrace_xfer_partial)
9055 (inf_ptrace_thread_alive, inf_ptrace_files_info)
9056 (inf_ptrace_pid_to_str, inf_ptrace_auxv_parse): Refactor as
9057 methods of inf_ptrace_target.
9058 (inf_ptrace_target): Delete function.
9059 * inf-ptrace.h: Include "inf-child.h".
9060 (inf_ptrace_target): Delete function declaration.
9061 (inf_ptrace_target): New class.
9062 (inf_ptrace_trad_target, inf_ptrace_detach_success): Delete.
9063 * linux-nat.c (linux_target): New.
9064 (linux_ops, linux_ops_saved, super_xfer_partial): Delete.
9065 (linux_nat_target::~linux_nat_target): New.
9066 (linux_child_post_attach, linux_child_post_startup_inferior)
9067 (linux_child_follow_fork, linux_child_insert_fork_catchpoint)
9068 (linux_child_remove_fork_catchpoint)
9069 (linux_child_insert_vfork_catchpoint)
9070 (linux_child_remove_vfork_catchpoint)
9071 (linux_child_insert_exec_catchpoint)
9072 (linux_child_remove_exec_catchpoint)
9073 (linux_child_set_syscall_catchpoint, linux_nat_pass_signals)
9074 (linux_nat_create_inferior, linux_nat_attach, linux_nat_detach)
9075 (linux_nat_resume, linux_nat_stopped_by_watchpoint)
9076 (linux_nat_stopped_data_address)
9077 (linux_nat_stopped_by_sw_breakpoint)
9078 (linux_nat_supports_stopped_by_sw_breakpoint)
9079 (linux_nat_stopped_by_hw_breakpoint)
9080 (linux_nat_supports_stopped_by_hw_breakpoint, linux_nat_wait)
9081 (linux_nat_kill, linux_nat_mourn_inferior)
9082 (linux_nat_xfer_partial, linux_nat_thread_alive)
9083 (linux_nat_update_thread_list, linux_nat_pid_to_str)
9084 (linux_nat_thread_name, linux_child_pid_to_exec_file)
9085 (linux_child_static_tracepoint_markers_by_strid)
9086 (linux_nat_is_async_p, linux_nat_can_async_p)
9087 (linux_nat_supports_non_stop, linux_nat_always_non_stop_p)
9088 (linux_nat_supports_multi_process)
9089 (linux_nat_supports_disable_randomization, linux_nat_async)
9090 (linux_nat_stop, linux_nat_close, linux_nat_thread_address_space)
9091 (linux_nat_core_of_thread, linux_nat_filesystem_is_local)
9092 (linux_nat_fileio_open, linux_nat_fileio_readlink)
9093 (linux_nat_fileio_unlink, linux_nat_thread_events): Refactor as
9094 methods of linux_nat_target.
9095 (linux_nat_wait_1, linux_xfer_siginfo, linux_proc_xfer_partial)
9096 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Remove target_ops
9097 parameter.
9098 (check_stopped_by_watchpoint): Adjust.
9099 (linux_xfer_partial): Delete.
9100 (linux_target_install_ops, linux_target, linux_nat_add_target):
9101 Delete.
9102 (linux_nat_target::linux_nat_target): New.
9103 * linux-nat.h: Include "inf-ptrace.h".
9104 (linux_nat_target): New.
9105 (linux_target, linux_target_install_ops, linux_nat_add_target):
9106 Delete function declarations.
9107 (linux_target): Declare global.
9108 * linux-thread-db.c (thread_db_target): New.
9109 (thread_db_target::thread_db_target): New.
9110 (thread_db_ops): Delete.
9111 (the_thread_db_target): New.
9112 (thread_db_detach, thread_db_wait, thread_db_mourn_inferior)
9113 (thread_db_update_thread_list, thread_db_pid_to_str)
9114 (thread_db_extra_thread_info)
9115 (thread_db_thread_handle_to_thread_info)
9116 (thread_db_get_thread_local_address, thread_db_get_ada_task_ptid)
9117 (thread_db_resume): Refactor as methods of thread_db_target.
9118 (init_thread_db_ops): Delete.
9119 (_initialize_thread_db): Remove reference to init_thread_db_ops.
9120 * x86-linux-nat.c: Don't include "linux-nat.h".
9121 (super_post_startup_inferior): Delete.
9122 (x86_linux_nat_target::~x86_linux_nat_target): New.
9123 (x86_linux_child_post_startup_inferior)
9124 (x86_linux_read_description, x86_linux_enable_btrace)
9125 (x86_linux_disable_btrace, x86_linux_teardown_btrace)
9126 (x86_linux_read_btrace, x86_linux_btrace_conf): Refactor as
9127 methods of x86_linux_nat_target.
9128 (x86_linux_create_target): Delete. Bits folded ...
9129 (x86_linux_add_target): ... here. Now takes a linux_nat_target
9130 pointer.
9131 * x86-linux-nat.h: Include "linux-nat.h" and "x86-nat.h".
9132 (x86_linux_nat_target): New class.
9133 (x86_linux_create_target): Delete.
9134 (x86_linux_add_target): Now takes a linux_nat_target pointer.
9135 * x86-nat.c (x86_insert_watchpoint, x86_remove_watchpoint)
9136 (x86_region_ok_for_watchpoint, x86_stopped_data_address)
9137 (x86_stopped_by_watchpoint, x86_insert_hw_breakpoint)
9138 (x86_remove_hw_breakpoint, x86_can_use_hw_breakpoint)
9139 (x86_stopped_by_hw_breakpoint): Remove target_ops parameter and
9140 make extern.
9141 (x86_use_watchpoints): Delete.
9142 * x86-nat.h: Include "breakpoint.h" and "target.h".
9143 (x86_use_watchpoints): Delete.
9144 (x86_can_use_hw_breakpoint, x86_region_ok_for_hw_watchpoint)
9145 (x86_stopped_by_watchpoint, x86_stopped_data_address)
9146 (x86_insert_watchpoint, x86_remove_watchpoint)
9147 (x86_insert_hw_breakpoint, x86_remove_hw_breakpoint)
9148 (x86_stopped_by_hw_breakpoint): New declarations.
9149 (x86_nat_target): New template class.
9150
9151 * ppc-linux-nat.c (ppc_linux_nat_target): New class.
9152 (the_ppc_linux_nat_target): New.
9153 (ppc_linux_fetch_inferior_registers)
9154 (ppc_linux_can_use_hw_breakpoint)
9155 (ppc_linux_region_ok_for_hw_watchpoint)
9156 (ppc_linux_ranged_break_num_registers)
9157 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
9158 (ppc_linux_insert_mask_watchpoint)
9159 (ppc_linux_remove_mask_watchpoint)
9160 (ppc_linux_can_accel_watchpoint_condition)
9161 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint)
9162 (ppc_linux_stopped_data_address, ppc_linux_stopped_by_watchpoint)
9163 (ppc_linux_watchpoint_addr_within_range)
9164 (ppc_linux_masked_watch_num_registers)
9165 (ppc_linux_store_inferior_registers, ppc_linux_auxv_parse)
9166 (ppc_linux_read_description): Refactor as methods of
9167 ppc_linux_nat_target.
9168 (_initialize_ppc_linux_nat): Adjust. Set linux_target.
9169
9170 * procfs.c (procfs_xfer_partial): Delete forward declaration.
9171 (procfs_target): New class.
9172 (the_procfs_target): New.
9173 (procfs_target): Delete function.
9174 (procfs_auxv_parse, procfs_attach, procfs_detach)
9175 (procfs_fetch_registers, procfs_store_registers, procfs_wait)
9176 (procfs_xfer_partial, procfs_resume, procfs_pass_signals)
9177 (procfs_files_info, procfs_kill_inferior, procfs_mourn_inferior)
9178 (procfs_create_inferior, procfs_update_thread_list)
9179 (procfs_thread_alive, procfs_pid_to_str)
9180 (procfs_can_use_hw_breakpoint, procfs_stopped_by_watchpoint)
9181 (procfs_stopped_data_address, procfs_insert_watchpoint)
9182 (procfs_remove_watchpoint, procfs_region_ok_for_hw_watchpoint)
9183 (proc_find_memory_regions, procfs_info_proc)
9184 (procfs_make_note_section): Refactor as methods of procfs_target.
9185 (_initialize_procfs): Adjust.
9186 * sol-thread.c (sol_thread_target): New class.
9187 (sol_thread_ops): Now a sol_thread_target.
9188 (sol_thread_detach, sol_thread_resume, sol_thread_wait)
9189 (sol_thread_fetch_registers, sol_thread_store_registers)
9190 (sol_thread_xfer_partial, sol_thread_mourn_inferior)
9191 (sol_thread_alive, solaris_pid_to_str, sol_update_thread_list)
9192 (sol_get_ada_task_ptid): Refactor as methods of sol_thread_target.
9193 (init_sol_thread_ops): Delete.
9194 (_initialize_sol_thread): Adjust. Remove references to
9195 init_sol_thread_ops and complete_target_initialization.
9196
9197 * windows-nat.c (windows_nat_target): New class.
9198 (windows_fetch_inferior_registers)
9199 (windows_store_inferior_registers, windows_resume, windows_wait)
9200 (windows_attach, windows_detach, windows_pid_to_exec_file)
9201 (windows_files_info, windows_create_inferior)
9202 (windows_mourn_inferior, windows_interrupt, windows_kill_inferior)
9203 (windows_close, windows_pid_to_str, windows_xfer_partial)
9204 (windows_get_tib_address, windows_get_ada_task_ptid)
9205 (windows_thread_name, windows_thread_alive): Refactor as
9206 windows_nat_target methods.
9207 (do_initial_windows_stuff): Adjust.
9208 (windows_target): Delete function.
9209 (_initialize_windows_nat): Adjust.
9210
9211 * darwin-nat.c (darwin_resume, darwin_wait_to, darwin_interrupt)
9212 (darwin_mourn_inferior, darwin_kill_inferior)
9213 (darwin_create_inferior, darwin_attach, darwin_detach)
9214 (darwin_pid_to_str, darwin_thread_alive, darwin_xfer_partial)
9215 (darwin_pid_to_exec_file, darwin_get_ada_task_ptid)
9216 (darwin_supports_multi_process): Refactor as darwin_nat_target
9217 methods.
9218 (darwin_resume_to, darwin_files_info): Delete.
9219 (_initialize_darwin_inferior): Rename to ...
9220 (_initialize_darwin_nat): ... this. Adjust to C++ification.
9221 * darwin-nat.h: Include "inf-child.h".
9222 (darwin_nat_target): New class.
9223 (darwin_complete_target): Delete.
9224 * i386-darwin-nat.c (i386_darwin_nat_target): New class.
9225 (darwin_target): New.
9226 (i386_darwin_fetch_inferior_registers)
9227 (i386_darwin_store_inferior_registers): Refactor as methods of
9228 darwin_nat_target.
9229 (darwin_complete_target): Delete, with ...
9230 (_initialize_i386_darwin_nat): ... bits factored out here.
9231
9232 * alpha-linux-nat.c (alpha_linux_nat_target): New class.
9233 (the_alpha_linux_nat_target): New.
9234 (alpha_linux_register_u_offset): Refactor as
9235 alpha_linux_nat_target method.
9236 (_initialize_alpha_linux_nat): Adjust.
9237 * linux-nat-trad.c (inf_ptrace_register_u_offset): Delete.
9238 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
9239 (inf_ptrace_store_register, inf_ptrace_store_registers): Refact as
9240 methods of linux_nat_trad_target.
9241 (linux_trad_target): Delete.
9242 * linux-nat-trad.h (linux_trad_target): Delete function.
9243 (linux_nat_trad_target): New class.
9244 * mips-linux-nat.c (mips_linux_nat_target): New class.
9245 (super_fetch_registers, super_store_registers, super_close):
9246 Delete.
9247 (the_mips_linux_nat_target): New.
9248 (mips64_linux_regsets_fetch_registers)
9249 (mips64_linux_regsets_store_registers)
9250 (mips64_linux_fetch_registers, mips64_linux_store_registers)
9251 (mips_linux_register_u_offset, mips_linux_read_description)
9252 (mips_linux_can_use_hw_breakpoint)
9253 (mips_linux_stopped_by_watchpoint)
9254 (mips_linux_stopped_data_address)
9255 (mips_linux_region_ok_for_hw_watchpoint)
9256 (mips_linux_insert_watchpoint, mips_linux_remove_watchpoint)
9257 (mips_linux_close): Refactor as methods of mips_linux_nat.
9258 (_initialize_mips_linux_nat): Adjust to C++ification.
9259
9260 * aix-thread.c (aix_thread_target): New class.
9261 (aix_thread_ops): Now an aix_thread_target.
9262 (aix_thread_detach, aix_thread_resume, aix_thread_wait)
9263 (aix_thread_fetch_registers, aix_thread_store_registers)
9264 (aix_thread_xfer_partial, aix_thread_mourn_inferior)
9265 (aix_thread_thread_alive, aix_thread_pid_to_str)
9266 (aix_thread_extra_thread_info, aix_thread_get_ada_task_ptid):
9267 Refactor as methods of aix_thread_target.
9268 (init_aix_thread_ops): Delete.
9269 (_initialize_aix_thread): Remove references to init_aix_thread_ops
9270 and complete_target_initialization.
9271 * rs6000-nat.c (rs6000_xfer_shared_libraries): Delete.
9272 (rs6000_nat_target): New class.
9273 (the_rs6000_nat_target): New.
9274 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers)
9275 (rs6000_xfer_partial, rs6000_wait, rs6000_create_inferior)
9276 (rs6000_xfer_shared_libraries): Refactor as rs6000_nat_target methods.
9277 (super_create_inferior): Delete.
9278 (_initialize_rs6000_nat): Adjust to C++ification.
9279
9280 * arm-linux-nat.c (arm_linux_nat_target): New class.
9281 (the_arm_linux_nat_target): New.
9282 (arm_linux_fetch_inferior_registers)
9283 (arm_linux_store_inferior_registers, arm_linux_read_description)
9284 (arm_linux_can_use_hw_breakpoint, arm_linux_insert_hw_breakpoint)
9285 (arm_linux_remove_hw_breakpoint)
9286 (arm_linux_region_ok_for_hw_watchpoint)
9287 (arm_linux_insert_watchpoint, arm_linux_remove_watchpoint)
9288 (arm_linux_stopped_data_address, arm_linux_stopped_by_watchpoint)
9289 (arm_linux_watchpoint_addr_within_range): Refactor as methods of
9290 arm_linux_nat_target.
9291 (_initialize_arm_linux_nat): Adjust to C++ification.
9292
9293 * aarch64-linux-nat.c (aarch64_linux_nat_target): New class.
9294 (the_aarch64_linux_nat_target): New.
9295 (aarch64_linux_fetch_inferior_registers)
9296 (aarch64_linux_store_inferior_registers)
9297 (aarch64_linux_child_post_startup_inferior)
9298 (aarch64_linux_read_description)
9299 (aarch64_linux_can_use_hw_breakpoint)
9300 (aarch64_linux_insert_hw_breakpoint)
9301 (aarch64_linux_remove_hw_breakpoint)
9302 (aarch64_linux_insert_watchpoint, aarch64_linux_remove_watchpoint)
9303 (aarch64_linux_region_ok_for_hw_watchpoint)
9304 (aarch64_linux_stopped_data_address)
9305 (aarch64_linux_stopped_by_watchpoint)
9306 (aarch64_linux_watchpoint_addr_within_range)
9307 (aarch64_linux_can_do_single_step): Refactor as methods of
9308 aarch64_linux_nat_target.
9309 (super_post_startup_inferior): Delete.
9310 (_initialize_aarch64_linux_nat): Adjust to C++ification.
9311
9312 * hppa-linux-nat.c (hppa_linux_nat_target): New class.
9313 (the_hppa_linux_nat_target): New.
9314 (hppa_linux_fetch_inferior_registers)
9315 (hppa_linux_store_inferior_registers): Refactor as methods of
9316 hppa_linux_nat_target.
9317 (_initialize_hppa_linux_nat): Adjust to C++ification.
9318
9319 * ia64-linux-nat.c (ia64_linux_nat_target): New class.
9320 (the_ia64_linux_nat_target): New.
9321 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint)
9322 (ia64_linux_stopped_data_address)
9323 (ia64_linux_stopped_by_watchpoint, ia64_linux_fetch_registers)
9324 (ia64_linux_store_registers, ia64_linux_xfer_partial): Refactor as
9325 ia64_linux_nat_target methods.
9326 (super_xfer_partial): Delete.
9327 (_initialize_ia64_linux_nat): Adjust to C++ification.
9328
9329 * m32r-linux-nat.c (m32r_linux_nat_target): New class.
9330 (the_m32r_linux_nat_target): New.
9331 (m32r_linux_fetch_inferior_registers)
9332 (m32r_linux_store_inferior_registers): Refactor as
9333 m32r_linux_nat_target methods.
9334 (_initialize_m32r_linux_nat): Adjust to C++ification.
9335
9336 * m68k-linux-nat.c (m68k_linux_nat_target): New class.
9337 (the_m68k_linux_nat_target): New.
9338 (m68k_linux_fetch_inferior_registers)
9339 (m68k_linux_store_inferior_registers): Refactor as
9340 m68k_linux_nat_target methods.
9341 (_initialize_m68k_linux_nat): Adjust to C++ification.
9342
9343 * s390-linux-nat.c (s390_linux_nat_target): New class.
9344 (the_s390_linux_nat_target): New.
9345 (s390_linux_fetch_inferior_registers)
9346 (s390_linux_store_inferior_registers, s390_stopped_by_watchpoint)
9347 (s390_insert_watchpoint, s390_remove_watchpoint)
9348 (s390_can_use_hw_breakpoint, s390_insert_hw_breakpoint)
9349 (s390_remove_hw_breakpoint, s390_region_ok_for_hw_watchpoint)
9350 (s390_auxv_parse, s390_read_description): Refactor as methods of
9351 s390_linux_nat_target.
9352 (_initialize_s390_nat): Adjust to C++ification.
9353
9354 * sparc-linux-nat.c (sparc_linux_nat_target): New class.
9355 (the_sparc_linux_nat_target): New.
9356 (_initialize_sparc_linux_nat): Adjust to C++ification.
9357 * sparc-nat.c (sparc_fetch_inferior_registers)
9358 (sparc_store_inferior_registers): Remove target_ops parameter.
9359 * sparc-nat.h (sparc_fetch_inferior_registers)
9360 (sparc_store_inferior_registers): Remove target_ops parameter.
9361 * sparc64-linux-nat.c (sparc64_linux_nat_target): New class.
9362 (the_sparc64_linux_nat_target): New.
9363 (_initialize_sparc64_linux_nat): Adjust to C++ification.
9364
9365 * spu-linux-nat.c (spu_linux_nat_target): New class.
9366 (the_spu_linux_nat_target): New.
9367 (spu_child_post_startup_inferior, spu_child_post_attach)
9368 (spu_child_wait, spu_fetch_inferior_registers)
9369 (spu_store_inferior_registers, spu_xfer_partial)
9370 (spu_can_use_hw_breakpoint): Refactor as spu_linux_nat_target
9371 methods.
9372 (_initialize_spu_nat): Adjust to C++ification.
9373
9374 * tilegx-linux-nat.c (tilegx_linux_nat_target): New class.
9375 (the_tilegx_linux_nat_target): New.
9376 (fetch_inferior_registers, store_inferior_registers):
9377 Refactor as methods.
9378 (_initialize_tile_linux_nat): Adjust to C++ification.
9379
9380 * xtensa-linux-nat.c (xtensa_linux_nat_target): New class.
9381 (the_xtensa_linux_nat_target): New.
9382 (xtensa_linux_fetch_inferior_registers)
9383 (xtensa_linux_store_inferior_registers): Refactor as
9384 xtensa_linux_nat_target methods.
9385 (_initialize_xtensa_linux_nat): Adjust to C++ification.
9386
9387 * fbsd-nat.c (USE_SIGTRAP_SIGINFO): Delete.
9388 (fbsd_pid_to_exec_file, fbsd_find_memory_regions)
9389 (fbsd_find_memory_regions, fbsd_info_proc, fbsd_xfer_partial)
9390 (fbsd_thread_alive, fbsd_pid_to_str, fbsd_thread_name)
9391 (fbsd_update_thread_list, fbsd_resume, fbsd_wait)
9392 (fbsd_stopped_by_sw_breakpoint)
9393 (fbsd_supports_stopped_by_sw_breakpoint, fbsd_follow_fork)
9394 (fbsd_insert_fork_catchpoint, fbsd_remove_fork_catchpoint)
9395 (fbsd_insert_vfork_catchpoint, fbsd_remove_vfork_catchpoint)
9396 (fbsd_post_startup_inferior, fbsd_post_attach)
9397 (fbsd_insert_exec_catchpoint, fbsd_remove_exec_catchpoint)
9398 (fbsd_set_syscall_catchpoint)
9399 (super_xfer_partial, super_resume, super_wait)
9400 (fbsd_supports_stopped_by_hw_breakpoint): Delete.
9401 (fbsd_handle_debug_trap): Remove target_ops parameter.
9402 (fbsd_nat_add_target): Delete.
9403 * fbsd-nat.h: Include "inf-ptrace.h".
9404 (fbsd_nat_add_target): Delete.
9405 (USE_SIGTRAP_SIGINFO): Define.
9406 (fbsd_nat_target): New class.
9407
9408 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers)
9409 (amd64bsd_store_inferior_registers): Remove target_ops parameter.
9410 (amd64bsd_target): Delete.
9411 * amd64-bsd-nat.h: New file.
9412 * amd64-fbsd-nat.c: Include "amd64-bsd-nat.h" instead of
9413 "x86-bsd-nat.h".
9414 (amd64_fbsd_nat_target): New class.
9415 (the_amd64_fbsd_nat_target): New.
9416 (amd64fbsd_read_description): Refactor as method of
9417 amd64_fbsd_nat_target.
9418 (amd64_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
9419 (_initialize_amd64fbsd_nat): Adjust to C++ification.
9420 * amd64-nat.h (amd64bsd_target): Delete function declaration.
9421 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers)
9422 (i386bsd_store_inferior_registers): Remove target_ops parameter.
9423 (i386bsd_target): Delete.
9424 * i386-bsd-nat.h (i386bsd_target): Delete function declaration.
9425 (i386bsd_fetch_inferior_registers)
9426 (i386bsd_store_inferior_registers): Declare.
9427 (i386_bsd_nat_target): New class.
9428 * i386-fbsd-nat.c (i386_fbsd_nat_target): New class.
9429 (the_i386_fbsd_nat_target): New.
9430 (i386fbsd_resume, i386fbsd_read_description): Refactor as
9431 i386_fbsd_nat_target methods.
9432 (i386_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
9433 (_initialize_i386fbsd_nat): Adjust to C++ification.
9434 * x86-bsd-nat.c (super_mourn_inferior): Delete.
9435 (x86bsd_mourn_inferior, x86bsd_target): Delete.
9436 (_initialize_x86_bsd_nat): Adjust to C++ification.
9437 * x86-bsd-nat.h: Include "x86-nat.h".
9438 (x86bsd_target): Delete declaration.
9439 (x86bsd_nat_target): New class.
9440
9441 * aarch64-fbsd-nat.c (aarch64_fbsd_nat_target): New class.
9442 (the_aarch64_fbsd_nat_target): New.
9443 (aarch64_fbsd_fetch_inferior_registers)
9444 (aarch64_fbsd_store_inferior_registers): Refactor as methods of
9445 aarch64_fbsd_nat_target.
9446 (_initialize_aarch64_fbsd_nat): Adjust to C++ification.
9447 * alpha-bsd-nat.c (alpha_bsd_nat_target): New class.
9448 (the_alpha_bsd_nat_target): New.
9449 (alphabsd_fetch_inferior_registers)
9450 (alphabsd_store_inferior_registers): Refactor as
9451 alpha_bsd_nat_target methods.
9452 (_initialize_alphabsd_nat): Refactor as methods of
9453 alpha_bsd_nat_target.
9454 * amd64-nbsd-nat.c: Include "amd64-bsd-nat.h".
9455 (the_amd64_nbsd_nat_target): New.
9456 (_initialize_amd64nbsd_nat): Adjust to C++ification.
9457 * amd64-obsd-nat.c: Include "amd64-bsd-nat.h".
9458 (the_amd64_obsd_nat_target): New.
9459 (_initialize_amd64obsd_nat): Adjust to C++ification.
9460 * arm-fbsd-nat.c (arm_fbsd_nat_target): New.
9461 (the_arm_fbsd_nat_target): New.
9462 (arm_fbsd_fetch_inferior_registers)
9463 (arm_fbsd_store_inferior_registers, arm_fbsd_read_description):
9464 (_initialize_arm_fbsd_nat): Refactor as methods of
9465 arm_fbsd_nat_target.
9466 (_initialize_arm_fbsd_nat): Adjust to C++ification.
9467 * arm-nbsd-nat.c (arm_netbsd_nat_target): New class.
9468 (the_arm_netbsd_nat_target): New.
9469 (armnbsd_fetch_registers, armnbsd_store_registers): Refactor as
9470 arm_netbsd_nat_target.
9471 (_initialize_arm_netbsd_nat): Adjust to C++ification.
9472 * hppa-nbsd-nat.c (hppa_nbsd_nat_target): New class.
9473 (the_hppa_nbsd_nat_target): New.
9474 (hppanbsd_fetch_registers, hppanbsd_store_registers): Refactor as
9475 hppa_nbsd_nat_target methods.
9476 (_initialize_hppanbsd_nat): Adjust to C++ification.
9477 * hppa-obsd-nat.c (hppa_obsd_nat_target): New class.
9478 (the_hppa_obsd_nat_target): New.
9479 (hppaobsd_fetch_registers, hppaobsd_store_registers): Refactor as
9480 methods of hppa_obsd_nat_target.
9481 (_initialize_hppaobsd_nat): Adjust to C++ification. Use
9482 add_target.
9483 * i386-nbsd-nat.c (the_i386_nbsd_nat_target): New.
9484 (_initialize_i386nbsd_nat): Adjust to C++ification. Use
9485 add_target.
9486 * i386-obsd-nat.c (the_i386_obsd_nat_target): New.
9487 (_initialize_i386obsd_nat): Use add_target.
9488 * m68k-bsd-nat.c (m68k_bsd_nat_target): New class.
9489 (the_m68k_bsd_nat_target): New.
9490 (m68kbsd_fetch_inferior_registers)
9491 (m68kbsd_store_inferior_registers): Refactor as methods of
9492 m68k_bsd_nat_target.
9493 (_initialize_m68kbsd_nat): Adjust to C++ification.
9494 * mips-fbsd-nat.c (mips_fbsd_nat_target): New class.
9495 (the_mips_fbsd_nat_target): New.
9496 (mips_fbsd_fetch_inferior_registers)
9497 (mips_fbsd_store_inferior_registers): Refactor as methods of
9498 mips_fbsd_nat_target.
9499 (_initialize_mips_fbsd_nat): Adjust to C++ification. Use
9500 add_target.
9501 * mips-nbsd-nat.c (mips_nbsd_nat_target): New class.
9502 (the_mips_nbsd_nat_target): New.
9503 (mipsnbsd_fetch_inferior_registers)
9504 (mipsnbsd_store_inferior_registers): Refactor as methods of
9505 mips_nbsd_nat_target.
9506 (_initialize_mipsnbsd_nat): Adjust to C++ification.
9507 * mips64-obsd-nat.c (mips64_obsd_nat_target): New class.
9508 (the_mips64_obsd_nat_target): New.
9509 (mips64obsd_fetch_inferior_registers)
9510 (mips64obsd_store_inferior_registers): Refactor as methods of
9511 mips64_obsd_nat_target.
9512 (_initialize_mips64obsd_nat): Adjust to C++ification. Use
9513 add_target.
9514 * nbsd-nat.c (nbsd_pid_to_exec_file): Refactor as method of
9515 nbsd_nat_target.
9516 * nbsd-nat.h: Include "inf-ptrace.h".
9517 (nbsd_nat_target): New class.
9518 * obsd-nat.c (obsd_pid_to_str, obsd_update_thread_list)
9519 (obsd_wait): Refactor as methods of obsd_nat_target.
9520 (obsd_add_target): Delete.
9521 * obsd-nat.h: Include "inf-ptrace.h".
9522 (obsd_nat_target): New class.
9523 * ppc-fbsd-nat.c (ppc_fbsd_nat_target): New class.
9524 (the_ppc_fbsd_nat_target): New.
9525 (ppcfbsd_fetch_inferior_registers)
9526 (ppcfbsd_store_inferior_registers): Refactor as methods of
9527 ppc_fbsd_nat_target.
9528 (_initialize_ppcfbsd_nat): Adjust to C++ification. Use
9529 add_target.
9530 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): New class.
9531 (the_ppc_nbsd_nat_target): New.
9532 (ppcnbsd_fetch_inferior_registers)
9533 (ppcnbsd_store_inferior_registers): Refactor as methods of
9534 ppc_nbsd_nat_target.
9535 (_initialize_ppcnbsd_nat): Adjust to C++ification.
9536 * ppc-obsd-nat.c (ppc_obsd_nat_target): New class.
9537 (the_ppc_obsd_nat_target): New.
9538 (ppcobsd_fetch_registers, ppcobsd_store_registers): Refactor as
9539 methods of ppc_obsd_nat_target.
9540 (_initialize_ppcobsd_nat): Adjust to C++ification. Use
9541 add_target.
9542 * sh-nbsd-nat.c (sh_nbsd_nat_target): New class.
9543 (the_sh_nbsd_nat_target): New.
9544 (shnbsd_fetch_inferior_registers)
9545 (shnbsd_store_inferior_registers): Refactor as methods of
9546 sh_nbsd_nat_target.
9547 (_initialize_shnbsd_nat): Adjust to C++ification.
9548 * sparc-nat.c (sparc_xfer_wcookie): Make extern.
9549 (inf_ptrace_xfer_partial): Delete.
9550 (sparc_xfer_partial, sparc_target): Delete.
9551 * sparc-nat.h (sparc_fetch_inferior_registers)
9552 (sparc_store_inferior_registers, sparc_xfer_wcookie): Declare.
9553 (sparc_target): Delete function declaration.
9554 (sparc_target): New template class.
9555 * sparc-nbsd-nat.c (the_sparc_nbsd_nat_target): New.
9556 (_initialize_sparcnbsd_nat): Adjust to C++ification.
9557 * sparc64-fbsd-nat.c (the_sparc64_fbsd_nat_target): New.
9558 (_initialize_sparc64fbsd_nat): Adjust to C++ification. Use
9559 add_target.
9560 * sparc64-nbsd-nat.c (the_sparc64_nbsd_nat_target): New.
9561 (_initialize_sparc64nbsd_nat): Adjust to C++ification.
9562 * sparc64-obsd-nat.c (the_sparc64_obsd_nat_target): New.
9563 (_initialize_sparc64obsd_nat): Adjust to C++ification. Use
9564 add_target.
9565 * vax-bsd-nat.c (vax_bsd_nat_target): New class.
9566 (the_vax_bsd_nat_target): New.
9567 (vaxbsd_fetch_inferior_registers)
9568 (vaxbsd_store_inferior_registers): Refactor as vax_bsd_nat_target
9569 methods.
9570 (_initialize_vaxbsd_nat): Adjust to C++ification.
9571
9572 * bsd-kvm.c (bsd_kvm_target): New class.
9573 (bsd_kvm_ops): Now a bsd_kvm_target.
9574 (bsd_kvm_open, bsd_kvm_close, bsd_kvm_xfer_partial)
9575 (bsd_kvm_files_info, bsd_kvm_fetch_registers)
9576 (bsd_kvm_thread_alive, bsd_kvm_pid_to_str): Refactor as methods of
9577 bsd_kvm_target.
9578 (bsd_kvm_return_one): Delete.
9579 (bsd_kvm_add_target): Adjust to C++ification.
9580
9581 * nto-procfs.c (nto_procfs_target, nto_procfs_target_native)
9582 (nto_procfs_target_procfs): New classes.
9583 (procfs_open_1, procfs_thread_alive, procfs_update_thread_list)
9584 (procfs_files_info, procfs_pid_to_exec_file, procfs_attach)
9585 (procfs_post_attach, procfs_wait, procfs_fetch_registers)
9586 (procfs_xfer_partial, procfs_detach, procfs_insert_breakpoint)
9587 (procfs_remove_breakpoint, procfs_insert_hw_breakpoint)
9588 (procfs_remove_hw_breakpoint, procfs_resume)
9589 (procfs_mourn_inferior, procfs_create_inferior, procfs_interrupt)
9590 (procfs_kill_inferior, procfs_store_registers)
9591 (procfs_pass_signals, procfs_pid_to_str, procfs_can_run): Refactor
9592 as methods of nto_procfs_target.
9593 (nto_procfs_ops): Now an nto_procfs_target_procfs.
9594 (nto_native_ops): Delete.
9595 (procfs_open, procfs_native_open): Delete.
9596 (nto_native_ops): Now an nto_procfs_target_native.
9597 (init_procfs_targets): Adjust to C++ification.
9598 (procfs_can_use_hw_breakpoint, procfs_remove_hw_watchpoint)
9599 (procfs_insert_hw_watchpoint, procfs_stopped_by_watchpoint):
9600 Refactor as methods of nto_procfs_target.
9601
9602 * go32-nat.c (go32_nat_target): New class.
9603 (the_go32_nat_target): New.
9604 (go32_attach, go32_resume, go32_wait, go32_fetch_registers)
9605 (go32_store_registers, go32_xfer_partial, go32_files_info)
9606 (go32_kill_inferior, go32_create_inferior, go32_mourn_inferior)
9607 (go32_terminal_init, go32_terminal_info, go32_terminal_inferior)
9608 (go32_terminal_ours, go32_pass_ctrlc, go32_thread_alive)
9609 (go32_pid_to_str): Refactor as methods of go32_nat_target.
9610 (go32_target): Delete.
9611 (_initialize_go32_nat): Adjust to C++ification.
9612
9613 * gnu-nat.c (gnu_wait, gnu_resume, gnu_kill_inferior)
9614 (gnu_mourn_inferior, gnu_create_inferior, gnu_attach, gnu_detach)
9615 (gnu_stop, gnu_thread_alive, gnu_xfer_partial)
9616 (gnu_find_memory_regions, gnu_pid_to_str): Refactor as methods of
9617 gnu_nat_target.
9618 (gnu_target): Delete.
9619 * gnu-nat.h (gnu_target): Delete.
9620 (gnu_nat_target): New class.
9621 * i386-gnu-nat.c (gnu_base_target): New.
9622 (i386_gnu_nat_target): New class.
9623 (the_i386_gnu_nat_target): New.
9624 (_initialize_i386gnu_nat): Adjust to C++ification.
9625
3fffc070
PA
96262018-05-02 Pedro Alves <palves@redhat.com>
9627
9628 * bfd-target.c (target_bfd_xclose): Rename to ...
9629 (target_bfd_close): ... this.
9630 (target_bfd_reopen): Adjust.
9631 * target.c (target_close): Remove references to to_xclose.
9632 * target.h (target_ops::to_xclose): Delete.
9633 (target_ops::to_close): Update comments.
9634
6798487f
PA
96352018-05-02 Pedro Alves <palves@redhat.com>
9636
9637 * alpha-linux-nat.c: Include "linux-nat-trad.h" instead of
9638 "linux-nat.h".
9639 * configure.nat (alpha-linux, linux-mips): Add linux-nat-trad.o.
9640 * inf-ptrace.c (inf_ptrace_register_u_offset)
9641 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
9642 (inf_ptrace_store_register, inf_ptrace_store_registers)
9643 (inf_ptrace_trad_target): Move to ...
9644 * linux-nat-trad.c: ... this new file.
9645 * linux-nat-trad.h: New file.
9646 * linux-nat.c (linux_target_install_ops): Make extern.
9647 (linux_trad_target): Delete.
9648 * linux-nat.h (linux_trad_target): Delete declaration.
9649 (linux_target_install_ops): Declare.
9650 * mips-linux-nat.c: Include "linux-nat-trad.h" instead of
9651 "linux-nat.h".
9652
c1955e17
PA
96532018-05-02 Pedro Alves <palves@redhat.com>
9654
9655 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
9656 procfs_target/add_target here.
9657 * procfs.c (procfs_target): Make static.
9658 (_initialize_procfs): Call add_target here.
9659 * procfs.h (struct target_ops): Remove forward declaration.
9660 (procfs_target): Remove declaration.
9661 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Delete.
9662
b5c8fcb1
PA
96632018-05-02 Pedro Alves <palves@redhat.com>
9664
9665 * procfs.c (procfs_stopped_by_watchpoint)
9666 (procfs_insert_watchpoint, procfs_remove_watchpoint)
9667 (procfs_region_ok_for_hw_watchpoint, procfs_stopped_data_address):
9668 Forward declare.
9669 (procfs_use_watchpoints): Delete, move contents...
9670 (procfs_target): ... here.
9671 * procfs.h (procfs_use_watchpoints): Delete declaration.
9672 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
9673 procfs_use_watchpoints.
9674 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Don't call
9675 procfs_use_watchpoints.
9676
0489430a
TT
96772018-05-02 Tom Tromey <tom@tromey.com>
9678
9679 PR python/20084:
9680 * python/python.c (gdbpy_parameter_value): Handle var_zuinteger
9681 and var_zuinteger_unlimited.
9682 * python/py-param.c (struct parm_constant): Add PARAM_ZUINTEGER
9683 and PARAM_ZUINTEGER_UNLIMITED.
9684 (set_parameter_value): Handle var_zuinteger and
9685 var_zuinteger_unlimited.
9686 (add_setshow_generic): Likewise.
9687 (parmpy_init): Likewise.
9688
1632f8ba
DR
96892018-04-28 Dan Robertson <danlrobertson89@gmail.com>
9690
9691 PR rust/23124
9692 * gdb/rust-exp.y (convert_params_to_types): Ensure that the params
9693 pointer is not null before dereferencing it.
9694
76761936
TT
96952018-04-30 Tom Tromey <tom@tromey.com>
9696
9697 * darwin-nat-info.c (darwin_debug_regions_recurse): Remove use of
9698 is_mi_like_p.
9699
2d33446d
TT
97002018-04-30 Tom Tromey <tom@tromey.com>
9701
9702 * breakpoint.c (mention): Remove use of is_mi_like_p.
9703 (print_mention_ranged_breakpoint): Likewise.
9704 * break-catch-throw.c (print_it_exception_catchpoint): Remove use
9705 of is_mi_like_p.
9706
f3c6abab
TT
97072018-04-30 Tom Tromey <tom@tromey.com>
9708
9709 * tracepoint.c (tvariables_info_1): Remove use of is_mi_like_p.
9710
40c03530
TT
97112018-04-30 Tom Tromey <tom@tromey.com>
9712
9713 * spu-tdep.c (info_spu_mailbox_list, info_spu_dma_cmdlist)
9714 (info_spu_event_command): Remove some uses of is_mi_like_p.
9715
2038b7fd
TT
97162018-04-30 Tom Tromey <tom@tromey.com>
9717
9718 * python/py-framefilter.c (py_print_single_arg)
9719 (enumerate_locals, py_print_args, py_print_frame): Remove some
9720 uses of is_mi_like_p.
9721
4904c3c6
TT
97222018-04-30 Tom Tromey <tom@tromey.com>
9723
9724 * ui-out.c: Update.
9725 * cli-out.h (cli_ui_out::do_is_mi_like_p): Update.
9726 * ui-out.h (ui_out::is_mi_like_p): Now const.
9727 (ui_out::do_is_mi_like_p): Now const.
9728 * mi/mi-out.h (mi_ui_out::do_is_mi_like_p): Update.
9729
7c66fffc
TT
97302018-04-30 Tom Tromey <tom@tromey.com>
9731
9732 * varobj.c (varobj_set_visualizer): Use new_reference.
9733 * python/python.c (gdbpy_decode_line): Use new_reference.
9734 * python/py-cmd.c (cmdpy_function, cmdpy_completer_helper): Use
9735 new_reference.
9736
bbfa6f00
TT
97372018-04-30 Tom Tromey <tom@tromey.com>
9738
9739 * varobj.c (install_new_value): Use new_reference.
9740 * value.h (value_incref): Return void. Swap intro comment with
9741 value_decref.
9742 * value.c (set_value_parent): Use new_reference.
9743 (value_incref): Return void. Update intro comment.
9744 (release_value): Use new_reference.
9745 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use new_reference.
9746
1831a9f9
TT
97472018-04-30 Tom Tromey <tom@tromey.com>
9748
9749 * symfile-mem.c (symbol_file_add_from_memory): Use new_reference.
9750 * gdb_bfd.h (new_bfd_ref): Remove.
9751 (gdb_bfd_open): Update comment.
9752 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
9753 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_record_inclusion)
9754 (gdb_bfd_fdopenr): Use new_reference.
9755 * exec.c (exec_file_attach): Use new_reference.
9756
7c1b5f3d
TT
97572018-04-30 Tom Tromey <tom@tromey.com>
9758
9759 * common/gdb_ref_ptr.h (ref_ptr::new_reference): New static
9760 method.
9761
e11fb955
TT
97622018-04-30 Tom Tromey <tom@tromey.com>
9763
9764 * jit.c (jit_read_code_entry): Use type_align.
9765 * i386-tdep.c (i386_gdbarch_init): Don't call
9766 set_gdbarch_long_long_align_bit.
9767 * gdbarch.sh: Remove long_long_align_bit.
9768 * gdbarch.c, gdbarch.h: Rebuild.
9769 * arc-tdep.c (arc_type_align): New function.
9770 (arc_gdbarch_init): Use arc_type_align. Don't call
9771 set_gdbarch_long_long_align_bit.
9772
2fff16dd
TT
97732018-04-30 Tom Tromey <tom@tromey.com>
9774
9775 * rust-lang.c (rust_type_alignment): Remove.
9776 (rust_composite_type): Use type_align.
9777
6d7bb824
TT
97782018-04-30 Tom Tromey <tom@tromey.com>
9779
9780 * NEWS: Mention Type.align.
9781 * python/py-type.c (typy_get_alignof): New function.
9782 (type_object_getset): Add "alignof".
9783
007e1530
TT
97842018-04-30 Tom Tromey <tom@tromey.com>
9785
9786 PR exp/17095:
9787 * NEWS: Update.
9788 * std-operator.def (UNOP_ALIGNOF): New operator.
9789 * expprint.c (dump_subexp_body_standard) <case UNOP_ALIGNOF>:
9790 New.
9791 * eval.c (evaluate_subexp_standard) <case UNOP_ALIGNOF>: New.
9792 * c-lang.c (c_op_print_tab): Add alignof.
9793 * c-exp.y (ALIGNOF): New token.
9794 (exp): Add "ALIGNOF" production.
9795 (ident_tokens): Add _Alignof and alignof.
9796
2b4424c3
TT
97972018-04-30 Tom Tromey <tom@tromey.com>
9798
9799 * i386-tdep.c (i386_type_align): New function.
9800 (i386_gdbarch_init): Update.
9801 * gdbarch.sh (type_align): New method.
9802 * gdbarch.c, gdbarch.h: Rebuild.
9803 * arch-utils.h (default_type_align): Declare.
9804 * arch-utils.c (default_type_align): New function.
9805 * gdbtypes.h (TYPE_ALIGN_BITS): New define.
9806 (struct type) <align_log2>: New field.
9807 <instance_flags>: Now a bitfield.
9808 (TYPE_RAW_ALIGN): New macro.
9809 (type_align, type_raw_align, set_type_align): Declare.
9810 * gdbtypes.c (type_align, type_raw_align, set_type_align): New
9811 functions.
9812 * dwarf2read.c (quirk_rust_enum): Set type alignment.
9813 (get_alignment, maybe_set_alignment): New functions.
9814 (read_structure_type, read_enumeration_type, read_array_type)
9815 (read_set_type, read_tag_pointer_type, read_tag_reference_type)
9816 (read_subrange_type, read_base_type): Set type alignment.
9817
d33bc52e
SM
98182018-04-30 Simon Marchi <simon.marchi@ericsson.com>
9819
9820 * dwarf2read.c (read_index_from_section): Use bool.
9821
e28b63a9
FG
98222018-04-29 Fabian Groffen <grobian@gentoo.org>
9823
9824 PR gdb/22950
9825 * proc-events.c (init_syscall_table): Guard usage os SYS_uuidsys
9826 with #ifdef.
9827
cd8c76e4
JR
98282018-04-29 John Reiser <jreiser@BitWagon.com>
9829
9830 PR build/22873
9831 * gdb/Makefile.in: (.c:.l, .c:.y): Write the target only in the
9832 last step, and do it atomically.
9833
476d250e
AO
98342018-04-27 Alexandre Oliva <aoliva@redhat.com>
9835
9836 * compile/compile-c-types.c (convert_int, convert_float):
9837 Update for C FE v1.
9838
6873858b
TT
98392018-04-27 Tom Tromey <tom@tromey.com>
9840
9841 PR rust/22545:
9842 * rust-lang.c (rust_inclusive_range_type_p): New function.
9843 (rust_range): Handle inclusive ranges.
9844 (rust_compute_range): Likewise.
9845 * rust-exp.y (struct rust_op) <inclusive>: New field.
9846 (DOTDOTEQ): New constant.
9847 (range_expr): Add "..=" productions.
9848 (operator_tokens): Add "..=" token.
9849 (ast_range): Add "inclusive" parameter.
9850 (convert_ast_to_expression) <case OP_RANGE>: Handle inclusive
9851 ranges.
9852 * parse.c (operator_length_standard) <case OP_RANGE>: Handle new
9853 bounds values.
9854 * expression.h (enum range_type) <NONE_BOUND_DEFAULT_EXCLUSIVE,
9855 LOW_BOUND_DEFAULT_EXCLUSIVE>: New constants.
9856 Update comments.
9857 * expprint.c (print_subexp_standard): Handle new bounds values.
9858 (dump_subexp_body_standard): Likewise.
9859
632e107b
TT
98602018-04-27 Tom Tromey <tom@tromey.com>
9861
9862 * configure: Rebuild.
9863 * warning.m4 (AM_GDB_WARNINGS): Add -Wsuggest-override.
9864 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Use "override", not
9865 "OVERRIDE".
9866 (class symbol_needs_eval_context): Likewise.
9867 * dwarf2read.c (mock_mapped_index::symbol_name_count)
9868 (mock_mapped_index::symbol_name_at): Use "override". Remove
9869 "virtual".
9870 * dwarf2-frame.c (dwarf_expr_executor::get_addr_index): Use
9871 "override".
9872 (class dwarf_expr_executor): Use "override", not "OVERRIDE".
9873 * aarch64-tdep.c (instruction_reader::read): Use "override".
9874 (instruction_reader_test::read): Likewise.
9875 * arm-tdep.c (instruction_reader::read): Use "override".
9876 (instruction_reader_thumb::read): Likewise.
9877
b75abf5b
AK
98782018-04-26 Andrzej Kaczmarek <andrzej.kaczmarek@codecoup.pl>
9879
9880 PR remote/9665
9881 * remote.c (send_g_packet): Use putpkt/getpkt/packet_check_result
9882 instead of remote_send.
9883 (remote_send): Remove.
9884
79188d8d
PA
98852018-04-26 Pedro Alves <palves@redhat.com>
9886
9887 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Use
9888 find_function_start_sal instead of find_pc_line.
9889
f50776aa
PA
98902018-04-26 Pedro Alves <palves@redhat.com>
9891
9892 * breakpoint.c (set_breakpoint_location_function): Handle
9893 mst_data_gnu_ifunc.
9894 * c-exp.y (variable production): Handle mst_data_gnu_ifunc.
9895 * elfread.c (elf_symtab_read): Give data symbols with
9896 BSF_GNU_INDIRECT_FUNCTION set mst_data_gnu_ifunc type.
9897 (elf_rel_plt_read): Update comment.
9898 * linespec.c (convert_linespec_to_sals): Handle
9899 mst_data_gnu_ifunc.
9900 (minsym_found): Handle mst_data_gnu_ifunc.
9901 * minsyms.c (msymbol_is_function, minimal_symbol_reader::record)
9902 (find_solib_trampoline_target): Handle mst_data_gnu_ifunc.
9903 * parse.c (find_minsym_type_and_address): Handle
9904 mst_data_gnu_ifunc.
9905 * symmisc.c (dump_msymbols): Handle mst_data_gnu_ifunc.
9906 * symtab.c (find_gnu_ifunc): Handle mst_data_gnu_ifunc.
9907 * symtab.h (minimal_symbol_type) <mst_text_gnu_ifunc>: Update
9908 comment.
9909 <mst_data_gnu_ifunc>: New enumerator.
9910
20944a6e
PA
99112018-04-26 Pedro Alves <palves@redhat.com>
9912
9913 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Rename to ...
9914 (lookup_minimal_symbol_by_pc_section): ... this. Replace
9915 'want_trampoline' parameter by a lookup_msym_prefer parameter.
9916 Handle it.
9917 (lookup_minimal_symbol_by_pc_section): Delete old implementation.
9918 (lookup_minimal_symbol_by_pc): Adjust.
9919 (in_gnu_ifunc_stub): Prefer GNU ifunc symbols.
9920 (lookup_solib_trampoline_symbol_by_pc): Adjust.
9921 * minsyms.h (lookup_msym_prefer): New enum.
9922 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
9923 parameter by a lookup_msym_prefer parameter.
9924
1adeb822
PA
99252018-04-26 Pedro Alves <palves@redhat.com>
9926
9927 * elfread.c (elf_gnu_ifunc_record_cache): Check if the symbol name
9928 ends in "@plt" instead of looking at the symbol's section.
9929
a0aca7b0
PA
99302018-04-26 Pedro Alves <palves@redhat.com>
9931
9932 * blockframe.c (cache_pc_function_is_gnu_ifunc): Delete. Remove
9933 all references.
9934 (find_pc_partial_function_gnu_ifunc): Rename to ...
9935 (find_pc_partial_function): ... this, and remove references to
9936 'is_gnu_ifunc_p'.
9937 (find_pc_partial_function): Delete old implementation.
9938 * symtab.h (find_pc_partial_function_gnu_ifunc): Delete.
9939
76af0f26
PA
99402018-04-26 Pedro Alves <palves@redhat.com>
9941
9942 * linespec.c (struct bound_minimal_symbol_search_key): New.
9943 (convert_linespec_to_sals): Sort minimal symbols earlier. Don't
9944 skip first line if we found a GNU ifunc minimal symbol by name.
9945 (compare_msymbols): Change parameters to work with a destructured
9946 lhs minsym.
9947 (compare_msymbols_for_qsort, compare_msymbols_for_bsearch): New
9948 functions.
9949
3467ec66
PA
99502018-04-26 Pedro Alves <palves@redhat.com>
9951
9952 * breakpoint.c (set_breakpoint_location_function): Don't resolve
9953 ifunc targets here. Instead, if we have an ifunc minsym, use its
9954 address/name.
9955 (add_location_to_breakpoint): Store the minsym and the objfile in
9956 the breakpoint location.
9957 * breakpoint.h (bp_location) <msymbol, objfile>: New fields.
9958 * linespec.c (minsym_found): Resolve GNU ifunc targets here.
9959 Record the minsym in the sal.
9960 * symtab.h (symtab_and_line) <msymbol>: New field.
9961
28f4fa4d
PA
99622018-04-26 Pedro Alves <palves@redhat.com>
9963
9964 * elfread.c (elf_gnu_ifunc_resolve_by_got): Don't write to *ADDR_P
9965 unless we actually resolved the ifunc.
9966
ca31ab1d
PA
99672018-04-26 Pedro Alves <palves@redhat.com>
9968
9969 * c-exp.y (variable production): Prefer ifunc minsyms over
9970 regular function symbols.
9971 * symtab.c (find_gnu_ifunc): New function.
9972 * minsyms.h (lookup_msym_prefer): New enum.
9973 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
9974 parameter by a lookup_msym_prefer parameter.
9975 * symtab.h (find_gnu_ifunc): New declaration.
9976
8388016d
PA
99772018-04-26 Pedro Alves <palves@redhat.com>
9978
9979 * blockframe.c (find_gnu_ifunc_target_type): New function.
9980 (find_function_type): New.
9981 * eval.c (evaluate_var_msym_value): For GNU ifunc types, always
9982 return a value with a memory address.
9983 (eval_call): For calls to GNU ifunc functions, try to find the
9984 type of the target function from the type that the resolver
9985 returns.
9986 * gdbtypes.c (objfile_type): Don't install a return type for ifunc
9987 symbols.
9988 * infcall.c (find_function_return_type): Delete.
9989 (find_function_addr): Add 'function_type' parameter. For calls to
9990 GNU ifunc functions, try to find the type of the target function
9991 from the type that the resolver returns, and return it via
9992 FUNCTION_TYPE.
9993 (call_function_by_hand_dummy): Adjust to use the function type
9994 returned by find_function_addr.
9995 (find_function_addr): Add 'function_type' parameter and move
9996 description here.
9997 * symtab.h (find_function_type, find_gnu_ifunc_target_type): New
9998 declarations.
9999
a376e11d
PA
100002018-04-26 Pedro Alves <palves@redhat.com>
10001
10002 * c-exp.y (variable production): Skip finding an alias for ifunc
10003 symbols.
10004
02e169e2
PA
100052018-04-26 Pedro Alves <palves@redhat.com>
10006
10007 * elfread.c (elf_rel_plt_read): Look for relocations for .got.plt too.
10008
249b5733
PA
100092018-04-25 Pedro Alves <palves@redhat.com>
10010
10011 * infcmd.c (kill_command): Print the pid as string, not the whole
10012 thread's ptid. Add comment. s/has been killed/killed/ in output
10013 message.
10014 * remote.c (remote_detach_1): Print the pid as string, not the
10015 whole thread's ptid.
10016
f67c0c91
SDJ
100172018-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10018 Sergio Durigan Junior <sergiodj@redhat.com>
10019 Pedro Alves <palves@redhat.com>
10020
10021 * infcmd.c (kill_command): Print message when inferior has
10022 been killed.
10023 * inferior.c (print_inferior_events): Remove 'static'. Set as
10024 '1'.
10025 (add_inferior): Improve message printed when
10026 'print_inferior_events' is on.
10027 (exit_inferior): Remove message printed when
10028 'print_inferior_events' is on.
10029 (detach_inferior): Improve message printed when
10030 'print_inferior_events' is on.
10031 (initialize_inferiors): Use 'add_inferior_silent' to set
10032 'current_inferior_'.
10033 * inferior.h (print_inferior_events): Declare here as
10034 'extern'.
10035 * infrun.c (follow_fork_inferior): Print '[Attaching...]' or
10036 '[Detaching...]' messages when 'print_inferior_events' is on.
10037 Use 'add_thread_silent' instead of 'add_thread'. Add '[' and ']'
10038 as prefix/suffix for messages. Remove periods. Fix erroneous
10039 'Detaching after fork from child...', replace it by '... from
10040 parent...'.
10041 (handle_vfork_child_exec_or_exit): Add '[' and ']' as
10042 prefix/suffix when printing 'Detaching...' messages. Print
10043 them when 'print_inferior_events' is on.
10044 * remote.c (remote_detach_1): Print message when detaching
10045 from inferior and '!is_fork_parent'.
10046
e427af18
TT
100472018-04-24 Tom Tromey <tom@tromey.com>
10048
10049 * cli-out.h: Reindent.
10050
05b1d8d6
TT
100512018-04-24 Tom Tromey <tom@tromey.com>
10052
10053 * cli-out.c (cli_ui_out::out_field_fmt): Remove.
10054 (cli_ui_out::do_field_string): Use fputs_filtered.
10055 * cli-out.h (class cli_ui_out) <out_field_fmt>: Remove.
10056
a95c7dab
TT
100572018-04-23 Tom Tromey <tom@tromey.com>
10058
10059 * guile/scm-frame.c (gdbscm_frame_read_var): Use
10060 gdb::unique_xmalloc_ptr.
10061
458412c3
TT
100622018-04-23 Tom Tromey <tom@tromey.com>
10063
10064 * configure: Rebuild.
10065
db86b02b
RS
100662018-04-22 Rajendra SY <rajendra.sy@gmail.com>
10067
10068 PR gdb/23095
10069 * gdb/testsuite/gdb.base/break-probes.exp: Pass shlib_load to
10070 prepare_for_testing. Set normal_bp to r_debug_state if target
10071 is bsd.
10072
00aecdcf
PA
100732018-04-21 Pedro Alves <palves@redhat.com>
10074 Rajendra SY <rajendra.sy@gmail.com>
10075
10076 * inf-ptrace.c (inf_ptrace_attach): Mark the thread as executing.
10077 * remote.c (extended_remote_attach): In all-stop mode, mark the
10078 thread as executing.
10079
224608c3
PW
100802018-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10081
10082 * thread.c (thread_apply_all_command): Fix comment.
10083 (thread_command): Fix comment.
10084
3b74854b
AH
100852018-04-10 Alan Hayward <alan.hayward@arm.com>
10086
10087 * common/tdesc.h (tdesc_create_feature): Remove xml filename
10088 parameter.
10089 * features/aarch64-core.c (create_feature_aarch64_core):
10090 Regenerate.
10091 * features/aarch64-fpu.c (create_feature_aarch64_fpu):
10092 Likewise.
10093 * features/i386/32bit-avx.c (create_feature_i386_32bit_avx):
10094 Likewise.
10095 * features/i386/32bit-avx512.c
10096 (create_feature_i386_32bit_avx512): Likewise.
10097 * features/i386/32bit-core.c (create_feature_i386_32bit_core):
10098 Likewise.
10099 * features/i386/32bit-linux.c (create_feature_i386_32bit_linux):
10100 Likewise.
10101 * features/i386/32bit-mpx.c (create_feature_i386_32bit_mpx):
10102 Likewise.
10103 * features/i386/32bit-pkeys.c (create_feature_i386_32bit_pkeys):
10104 Likewise.
10105 * features/i386/32bit-sse.c (create_feature_i386_32bit_sse):
10106 Likewise.
10107 * features/i386/64bit-avx.c (create_feature_i386_64bit_avx):
10108 Likewise.
10109 * features/i386/64bit-avx512.c
10110 (create_feature_i386_64bit_avx512): Likewise.
10111 * features/i386/64bit-core.c (create_feature_i386_64bit_core):
10112 Likewise.
10113 * features/i386/64bit-linux.c (create_feature_i386_64bit_linux):
10114 Likewise.
10115 * features/i386/64bit-mpx.c (create_feature_i386_64bit_mpx):
10116 Likewise.
10117 * features/i386/64bit-pkeys.c (create_feature_i386_64bit_pkeys):
10118 Likewise.
10119 * features/i386/64bit-segments.c
10120 (create_feature_i386_64bit_segments): Likewise.
10121 * features/i386/64bit-sse.c (create_feature_i386_64bit_sse):
10122 Likewise.
10123 * features/i386/x32-core.c
10124 (create_feature_i386_x32_core): Likewise.
10125 * features/tic6x-c6xp.c (create_feature_tic6x_c6xp): Likewise.
10126 * features/tic6x-core.c (create_feature_tic6x_core): Likewise.
10127 * features/tic6x-gp.c (create_feature_tic6x_gp): Likewise.
10128 * target-descriptions.c: In generated code, don't pass xml
10129 filename.
10130
e98577a9
AH
101312018-04-18 Alan Hayward <alan.hayward@arm.com>
10132
10133 * common/tdesc.c (print_xml_feature::visit_pre): Add xml parsing.
10134 (print_xml_feature::visit_post): Likewise.
10135 (print_xml_feature::visit): Likewise.
10136 * common/tdesc.h (tdesc_get_features_xml): Use const tdesc.
10137 (print_xml_feature): Add new class.
10138 * regformats/regdat.sh: Null xmltarget on feature targets.
10139 * target-descriptions.c (struct target_desc): Add xmltarget.
10140 (maintenance_check_tdesc_xml_convert): Add unittest function.
10141 (tdesc_get_features_xml): Add function to get xml.
10142 (maintenance_check_xml_descriptions): Test xml generation.
10143 * xml-tdesc.c (string_read_description_xml): Add function.
10144 * xml-tdesc.h (string_read_description_xml): Add declaration.
10145
ad7fc756
AH
101462018-04-18 Alan Hayward <alan.hayward@arm.com>
10147
10148 * features/Makefile: Add feature marker to targets with new style
10149 target descriptions.
10150 * regformats/aarch64.dat: Regenerate.
10151 * regformats/i386/amd64-avx-avx512-linux.dat: Likewise.
10152 * regformats/i386/amd64-avx-linux.dat: Likewise.
10153 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Likewise.
10154 * regformats/i386/amd64-avx-mpx-linux.dat: Likewise.
10155 * regformats/i386/amd64-linux.dat: Likewise.
10156 * regformats/i386/amd64-mpx-linux.dat: Likewise.
10157 * regformats/i386/amd64.dat: Likewise.
10158 * regformats/i386/i386-avx-avx512-linux.dat: Likewise.
10159 * regformats/i386/i386-avx-linux.dat: Likewise.
10160 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Likewise.
10161 * regformats/i386/i386-avx-mpx-linux.dat: Likewise.
10162 * regformats/i386/i386-linux.dat: Likewise.
10163 * regformats/i386/i386-mmx-linux.dat: Likewise.
10164 * regformats/i386/i386-mpx-linux.dat: Likewise.
10165 * regformats/i386/i386.dat: Likewise.
10166 * regformats/i386/x32-avx-avx512-linux.dat: Likewise.
10167 * regformats/i386/x32-avx-linux.dat: Likewise.
10168 * regformats/i386/x32-linux.dat: Likewise.
10169 * regformats/tic6x-c62x-linux.dat: Likewise.
10170 * regformats/tic6x-c64x-linux.dat: Likewise.
10171 * regformats/tic6x-c64xp-linux.dat: Likewise.
10172 * regformats/regdat.sh: Parse feature marker.
10173
d278f585
AH
101742018-04-18 Alan Hayward <alan.hayward@arm.com>
10175
10176 * common/tdesc.h (tdesc_architecture_name): Add new declaration.
10177 (tdesc_osabi_name): Likewise.
10178 * target-descriptions.c (tdesc_architecture_name): Add new
10179 function.
10180 (tdesc_osabi_name): Likewise.
10181
eee8a18d
AH
101822018-04-18 Alan Hayward <alan.hayward@arm.com>
10183
10184 * common/tdesc.c (tdesc_predefined_type): Move to here.
10185 (tdesc_named_type): Likewise.
10186 (tdesc_create_vector): Likewise.
10187 (tdesc_create_struct): Likewise.
10188 (tdesc_set_struct_size): Likewise.
10189 (tdesc_create_union): Likewise.
10190 (tdesc_create_flags): Likewise.
10191 (tdesc_create_enum): Likewise.
10192 (tdesc_add_field): Likewise.
10193 (tdesc_add_typed_bitfield): Likewise.
10194 (tdesc_add_bitfield): Likewise.
10195 (tdesc_add_flag): Likewise.
10196 (tdesc_add_enum_value): Likewise.
10197 * common/tdesc.h (struct tdesc_type_builtin): Likewise.
10198 (struct tdesc_type_vector): Likewise.
10199 (struct tdesc_type_field): Likewise.
10200 (struct tdesc_type_with_fields): Likewise.
10201 (tdesc_create_enum): Add declaration.
10202 (tdesc_add_typed_bitfield): Likewise.
10203 (tdesc_add_enum_value): Likewise.
10204 * target-descriptions.c (tdesc_type_field): Move from here.
10205 (tdesc_type_builtin): Likewise.
10206 (tdesc_type_vector): Likewise.
10207 (tdesc_type_with_fields): Likewise.
10208 (tdesc_predefined_types): Likewise.
10209 (tdesc_named_type): Likewise.
10210 (tdesc_create_vector): Likewise.
10211 (tdesc_create_struct): Likewise.
10212 (tdesc_set_struct_size): Likewise.
10213 (tdesc_create_union): Likewise.
10214 (tdesc_create_flags): Likewise.
10215 (tdesc_create_enum): Likewise.
10216 (tdesc_add_field): Likewise.
10217 (tdesc_add_typed_bitfield): Likewise.
10218 (tdesc_add_bitfield): Likewise.
10219 (tdesc_add_flag): Likewise.
10220 (tdesc_add_enum_value): Likewise.
10221 * gdb/target-descriptions.h (tdesc_create_enum): Likewise.
10222 (tdesc_add_typed_bitfield): Likewise.
10223 (tdesc_add_enum_value): Likewise.
10224
82ec9bc7
AH
102252018-04-18 Alan Hayward <alan.hayward@arm.com>
10226
10227 * common/tdesc.c (tdesc_feature::accept): Move to here.
10228 (tdesc_feature::operator==): Likewise.
10229 (tdesc_create_reg): Likewise.
10230 * common/tdesc.h (tdesc_type_kind): Likewise.
10231 (struct tdesc_type): Likewise.
10232 (struct tdesc_feature): Likewise.
10233 * regformats/regdat.sh: Create a feature.
10234 * target-descriptions.c (tdesc_type_kind): Move from here.
10235 (tdesc_type): Likewise.
10236 (tdesc_type_up): Likewise.
10237 (tdesc_feature): Likewise.
10238 (tdesc_create_reg): Likewise.
10239
ea3e7d71
AH
102402018-04-18 Alan Hayward <alan.hayward@arm.com>
10241
10242 * Makefile.in: Add arch/tdesc.c
10243 * common/tdesc.c: New file.
10244 * common/tdesc.h (tdesc_element_visitor): Move to here.
10245 (tdesc_element): Likewise.
10246 (tdesc_reg): Likewise.
10247 (tdesc_reg_up): Likewise.
10248 * regformats/regdef.h (reg): Add offset to constructors.
10249 * target-descriptions.c (tdesc_element_visitor): Move from here.
10250 (tdesc_element): Likewise.
10251 (tdesc_reg): Likewise.
10252 (tdesc_reg_up): Likewise.
10253
bedda9ac
TT
102542018-04-17 Tom Tromey <tom@tromey.com>
10255
10256 * dwarf2read.c (quirk_rust_enum): Conditionally drop the
10257 discriminant field.
10258
a037790e
TT
102592018-04-17 Tom Tromey <tom@tromey.com>
10260
10261 * dwarf2read.c (quirk_rust_enum): Handle unions correctly.
10262
c7dcbf88
AA
102632018-04-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
10264
10265 * symtab.c (print_symbol_info): Skip printing filename and line
10266 number when `last' is NULL.
10267 (symtab_symbol_info): Use empty string instead of NULL for first
10268 invocation of print_symbol_info.
10269 (rbreak_command): Pass NULL to `last' parameter of
10270 print_symbol_info.
10271
07d28c77
SM
102722018-04-16 Simon Marchi <simon.marchi@ericsson.com>
10273
10274 * linux-tdep.c (linux_spu_make_corefile_notes): Return note_data
10275 instead of nullptr.
10276
8a3de5e1
PA
102772018-04-16 Pedro Alves <palves@redhat.com>
10278
10279 * MAINTAINERS (sh): Remove.
10280 * Makefile.in (ALL_TARGET_OBS): Remove sh64-tdep.o.
10281 (HFILES_NO_SRCDIR): Remove sh64-tdep.h.
10282 (ALLDEPFILES): Remove sh64-tdep.c.
10283 * NEWS: Mentions that support for SH-5/SH64 is removed.
10284 * configure.tgt (sh*-*-linux*): Remove reference to sh64-tdep.o.
10285 (sh*-*-openbsd*): Ditto.
10286 (sh64-*-elf*): Remove.
10287 (sh*): Remove.
10288 * regcache.c (cooked_write_test): Remove bfd_mach_sh5 case.
10289 * sh-linux-tdep.c: Remove reference to bfd_mach_sh5.
10290 * sh-tdep.c: No longer include "sh64-tdep.h".
10291 (sh_gdbarch_init): Remove reference to bfd_mach_sh5.
10292 * sh64-tdep.c, sh64-tdep.h: Remove files.
10293
a2a79012
PA
102942018-04-16 Pedro Alves <palves@redhat.com>
10295
10296 * MAINTAINERS: Remove m88k.
10297 * Makefile.in (ALL_TARGET_OBS): Remove m88k-tdep.o.
10298 (HFILES_NO_SRCDIR): Remove m88k-tdep.h.
10299 (ALLDEPFILES): Remove m88k-bsd-nat.c and m88k-tdep.c.
10300 * NEWS: Mention that support for m88k was removed.
10301 * configure.host (m88*-*-*): Remove support.
10302 * configure.nat (m88k-*-*): Remove support.
10303 * configure.tgt (m88*-*-openbsd*): Remove.
10304 * m88k-bsd-nat.c, m88k-tdep.c, m88k-tdep.h: Delete.
10305
eda4efb1
SM
103062018-04-15 Simon Marchi <simon.marchi@polymtl.ca>
10307
10308 * configure.tgt (x86_tobjs): New variable.
10309 (amd64_tobjs, i386_tobjs): Use it.
10310
b744723f
AA
103112018-04-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10312
10313 * symtab.c (print_symbol_info): Precede the symbol definition by
10314 the line number when available.
10315 * NEWS: Advertise this enhancement.
10316
4a4495d6
MM
103172018-04-13 Markus Metzger <markus.t.metzger@intel.com>
10318
10319 * NEWS (New options): announce set/show record btrace cpu.
10320 * btrace.c: Include record-btrace.h.
10321 (btrace_compute_ftrace_pt): Skip enabling errata workarounds if
10322 the vendor is unknown.
10323 (btrace_compute_ftrace_1): Add cpu parameter. Update callers.
10324 Maybe overwrite the btrace configuration's cpu.
10325 (btrace_compute_ftrace): Add cpu parameter. Update callers.
10326 (btrace_fetch): Add cpu parameter. Update callers.
10327 (btrace_maint_update_pt_packets): Call record_btrace_get_cpu.
10328 Maybe overwrite the btrace configuration's cpu. Skip enabling
10329 errata workarounds if the vendor is unknown.
10330 * python/py-record-btrace.c: Include record-btrace.h.
10331 (recpy_bt_begin, recpy_bt_end, recpy_bt_instruction_history)
10332 (recpy_bt_function_call_history): Call record_btrace_get_cpu.
10333 * record-btrace.c (record_btrace_cpu_state_kind): New.
10334 (record_btrace_cpu): New.
10335 (set_record_btrace_cpu_cmdlist): New.
10336 (record_btrace_get_cpu): New.
10337 (require_btrace_thread, record_btrace_info)
10338 (record_btrace_resume_thread): Call record_btrace_get_cpu.
10339 (cmd_set_record_btrace_cpu_none): New.
10340 (cmd_set_record_btrace_cpu_auto): New.
10341 (cmd_set_record_btrace_cpu): New.
10342 (cmd_show_record_btrace_cpu): New.
10343 (_initialize_record_btrace): Initialize set/show record btrace cpu
10344 commands.
10345 * record-btrace.h (record_btrace_get_cpu): New.
10346
69f90c75
MM
103472018-04-13 Markus Metzger <markus.t.metzger@intel.com>
10348
10349 * record.c (set_record_command): Fix typo in message.
10350
b85310e1
MM
103512018-04-13 Markus Metzger <markus.t.metzger@intel.com>
10352
10353 * record-btrace.c (cmd_set_record_btrace): Print sub-commands.
10354
1d509aa6
MM
103552018-04-13 Markus Metzger <markus.t.metzger@intel.com>
10356
10357 * infrun.c (process_event_stop_test): Call
10358 gdbarch_in_indirect_branch_thunk.
10359 * gdbarch.sh (in_indirect_branch_thunk): New.
10360 * gdbarch.c: Regenerated.
10361 * gdbarch.h: Regenerated.
10362 * x86-tdep.h: New.
10363 * x86-tdep.c: New.
10364 * Makefile.in (ALL_TARGET_OBS): Add x86-tdep.o.
10365 (HFILES_NO_SRCDIR): Add x86-tdep.h.
10366 (ALLDEPFILES): Add x86-tdep.c.
10367 * arch-utils.h (default_in_indirect_branch_thunk): New.
10368 * arch-utils.c (default_in_indirect_branch_thunk): New.
10369 * i386-tdep: Include x86-tdep.h.
10370 (i386_in_indirect_branch_thunk): New.
10371 (i386_elf_init_abi): Set in_indirect_branch_thunk gdbarch
10372 function.
10373 * amd64-tdep: Include x86-tdep.h.
10374 (amd64_in_indirect_branch_thunk): New.
10375 (amd64_init_abi): Set in_indirect_branch_thunk gdbarch function.
10376
b4be9bfd
JK
103772018-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10378
10379 PR gdb/23053
10380 * dwarf-index-write.c (data_buf::grow) (write_one_signatured_type)
10381 (recursively_write_psymbols) (debug_names::recursively_write_psymbols)
10382 (debug_names::write_one_signatured_type): Fix -D_GLIBCXX_DEBUG
10383 regression.
10384
53d7df28
TT
103852018-04-12 Tom Tromey <tom@tromey.com>
10386
10387 * rust-lang.c (rust_print_struct_def): Remove univariant code.
10388 (rust_evaluate_subexp): Likewise.
10389
70b33f19
PA
103902018-04-12 Pedro Alves <palves@redhat.com>
10391
10392 * procfs.c (procfs_detach): Make forward declaration's prototype
10393 match definition's protototype.
10394 (proc_get_LDT_entry): Remove stale do_cleanups call.
10395
436411b1
PA
103962018-04-12 Pedro Alves <palves@redhat.com>
10397
10398 * target.h (target_ops::to_has_exited): Delete.
10399 (target_has_exited): Delete.
10400 * target-delegates.c: Regenerate.
10401
20db9c52
PA
104022018-04-11 Pedro Alves <palves@redhat.com>
10403
10404 * target.c (fileio_fh_t::t): Add comment.
10405 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
10406 (target_fileio_close): Handle a NULL target.
10407 (invalidate_fileio_fh): New.
10408 (target_close): Call it.
10409 * remote.c (remote_hostio_send_command): No longer check whether
10410 remote_desc is open.
10411
5ff79300
PA
104122018-04-11 Pedro Alves <palves@redhat.com>
10413
10414 * target.c (fileio_fh_t): Make it a named struct instead of a
10415 typedef.
10416 (fileio_fh_t::is_closed): New method.
10417 (DEF_VEC_O (fileio_fh_t)): Remove.
10418 (fileio_fhandles): Now a std::vector.
10419 (is_closed_fileio_fh): Delete.
10420 (acquire_fileio_fd): Adjust. Rename parameters.
10421 (release_fileio_fd): Adjust.
10422 (fileio_fd_to_fh): Reimplement as a function instead of a macro.
10423 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
10424 (target_fileio_close): Adjust.
10425
6e22e10d
SM
104262018-04-10 Simon Marchi <simon.marchi@ericsson.com>
10427
10428 * auto-load.c (auto_load_safe_path_vec_update): Iterate by
10429 index.
10430
731f534f
PA
104312018-04-10 Pedro Alves <palves@redhat.com>
10432
10433 * gdbthread.h (finish_thread_state_cleanup): Delete declaration.
10434 (scoped_finish_thread_state): New class.
10435 * infcmd.c (run_command_1): Use it instead of finish_thread_state
10436 cleanup.
10437 * infrun.c (proceed, prepare_for_detach, wait_for_inferior)
10438 (fetch_inferior_event, normal_stop): Likewise.
10439 * thread.c (finish_thread_state_cleanup): Delete.
10440
d5f4488f
SM
104412018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10442 Pedro Alves <palves@redhat.com>
10443
10444 * value.c: Include "selftest.h" and "common/array-view.h".
10445 (struct range) <operator ==>: New.
10446 (test_ranges_contain): New.
10447 (check_ranges_vector): New.
10448 (test_insert_into_bit_range_vector): New.
10449 (_initialize_values): Register selftests.
10450 * common/array-view.h (operator==, operator!=): New.
10451
b24531ed
SM
104522018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10453
10454 * common/gdb_vecs.h (unordered_remove): Add overload that takes
10455 an iterator.
10456 * inline-frame.c: Include <algorithm>.
10457 (struct inline_state): Add constructor.
10458 (inline_state_s): Remove.
10459 (DEF_VEC_O(inline_state_s)): Remove.
10460 (inline_states): Change type to std::vector.
10461 (find_inline_frame_state): Adjust to std::vector.
10462 (allocate_inline_frame_state): Remove.
10463 (clear_inline_frame_state): Adjust to std::vector.
10464 (skip_inline_frames): Adjust to std::vector.
10465
c252925c
SM
104662018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10467
10468 * tracepoint.h (struct trace_state_variable): Add constructor.
10469 <name>: Change type to std::string.
10470 * tracepoint.c (tsv_s): Remove.
10471 (DEF_VEC_O(tsv_s)): Remove.
10472 (tvariables): Change to std::vector.
10473 (create_trace_state_variable): Adjust to std::vector.
10474 (find_trace_state_variable): Likewise.
10475 (find_trace_state_variable_by_number): Likewise.
10476 (delete_trace_state_variable): Likewise.
10477 (trace_variable_command): Adjust to std::string.
10478 (delete_trace_variable_command): Likewise.
10479 (tvariables_info_1): Adjust to std::vector.
10480 (save_trace_state_variables): Likewise.
10481 (start_tracing): Likewise.
10482 (merge_uploaded_trace_state_variables): Adjust to std::vector
10483 and std::string.
10484 * target.h (struct target_ops)
10485 <to_download_trace_state_variable>: Pass reference to
10486 trace_state_variable.
10487 * target-debug.h (target_debug_print_const_trace_state_variable_r): New.
10488 * target-delegates.c: Re-generate.
10489 * mi/mi-interp.c (mi_tsv_created): Adjust to std::string.
10490 (mi_tsv_deleted): Likewise.
10491 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
10492 * remote.c (remote_download_trace_state_variable): Change
10493 pointer to reference and adjust.
10494 * make-target-delegates (parse_argtypes): Handle references.
10495 (write_function_header): Likewise.
10496 (munge_type): Likewise.
10497
c9638d26
SM
104982018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10499
10500 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10501 string_view-selftests.c.
10502 * unittests/basic_string_view/capacity/1.cc: Adapt to GDB
10503 testsuite.
10504 * unittests/basic_string_view/cons/char/1.cc: Likewise.
10505 * unittests/basic_string_view/cons/char/2.cc: Likewise.
10506 * unittests/basic_string_view/cons/char/3.cc: Likewise.
10507 * unittests/basic_string_view/element_access/char/1.cc:
10508 Likewise.
10509 * unittests/basic_string_view/element_access/char/empty.cc:
10510 Likewise.
10511 * unittests/basic_string_view/element_access/char/front_back.cc:
10512 Likewise.
10513 * unittests/basic_string_view/inserters/char/2.cc: Likewise.
10514 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc:
10515 Likewise.
10516 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc:
10517 Likewise.
10518 * unittests/basic_string_view/modifiers/swap/char/1.cc:
10519 Likewise.
10520 * unittests/basic_string_view/operations/compare/char/1.cc:
10521 Likewise.
10522 * unittests/basic_string_view/operations/compare/char/13650.cc:
10523 Likewise.
10524 * unittests/basic_string_view/operations/copy/char/1.cc:
10525 Likewise.
10526 * unittests/basic_string_view/operations/data/char/1.cc:
10527 Likewise.
10528 * unittests/basic_string_view/operations/find/char/1.cc:
10529 Likewise.
10530 * unittests/basic_string_view/operations/find/char/2.cc:
10531 Likewise.
10532 * unittests/basic_string_view/operations/find/char/3.cc:
10533 Likewise.
10534 * unittests/basic_string_view/operations/find/char/4.cc:
10535 Likewise.
10536 * unittests/basic_string_view/operations/rfind/char/1.cc:
10537 Likewise.
10538 * unittests/basic_string_view/operations/rfind/char/2.cc:
10539 Likewise.
10540 * unittests/basic_string_view/operations/rfind/char/3.cc:
10541 Likewise.
10542 * unittests/basic_string_view/operations/substr/char/1.cc:
10543 Likewise.
10544 * unittests/basic_string_view/operators/char/2.cc: Likewise.
10545 * unittests/string_view-selftests.c: New file.
10546
fdc11678
SM
105472018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10548
10549 * unittests/basic_string_view/capacity/1.cc: New file.
10550 * unittests/basic_string_view/capacity/empty_neg.cc: New file.
10551 * unittests/basic_string_view/cons/char/1.cc: New file.
10552 * unittests/basic_string_view/cons/char/2.cc: New file.
10553 * unittests/basic_string_view/cons/char/3.cc: New file.
10554 * unittests/basic_string_view/cons/wchar_t/1.cc: New file.
10555 * unittests/basic_string_view/cons/wchar_t/2.cc: New file.
10556 * unittests/basic_string_view/cons/wchar_t/3.cc: New file.
10557 * unittests/basic_string_view/element_access/char/1.cc: New file.
10558 * unittests/basic_string_view/element_access/char/2.cc: New file.
10559 * unittests/basic_string_view/element_access/char/empty.cc: New file.
10560 * unittests/basic_string_view/element_access/char/front_back.cc: New file.
10561 * unittests/basic_string_view/element_access/wchar_t/1.cc: New file.
10562 * unittests/basic_string_view/element_access/wchar_t/2.cc: New file.
10563 * unittests/basic_string_view/element_access/wchar_t/empty.cc: New file.
10564 * unittests/basic_string_view/element_access/wchar_t/front_back.cc: New file.
10565 * unittests/basic_string_view/include.cc: New file.
10566 * unittests/basic_string_view/inserters/char/1.cc: New file.
10567 * unittests/basic_string_view/inserters/char/2.cc: New file.
10568 * unittests/basic_string_view/inserters/char/3.cc: New file.
10569 * unittests/basic_string_view/inserters/pod/10081-out.cc: New file.
10570 * unittests/basic_string_view/inserters/wchar_t/1.cc: New file.
10571 * unittests/basic_string_view/inserters/wchar_t/2.cc: New file.
10572 * unittests/basic_string_view/inserters/wchar_t/3.cc: New file.
10573 * unittests/basic_string_view/literals/types.cc: New file.
10574 * unittests/basic_string_view/literals/values.cc: New file.
10575 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc: New file.
10576 * unittests/basic_string_view/modifiers/remove_prefix/wchar_t/1.cc: New file.
10577 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc: New file.
10578 * unittests/basic_string_view/modifiers/remove_suffix/wchar_t/1.cc: New file.
10579 * unittests/basic_string_view/modifiers/swap/char/1.cc: New file.
10580 * unittests/basic_string_view/modifiers/swap/wchar_t/1.cc: New file.
10581 * unittests/basic_string_view/operations/compare/char/1.cc: New file.
10582 * unittests/basic_string_view/operations/compare/char/13650.cc: New file.
10583 * unittests/basic_string_view/operations/compare/char/2.cc: New file.
10584 * unittests/basic_string_view/operations/compare/char/70483.cc: New file.
10585 * unittests/basic_string_view/operations/compare/wchar_t/1.cc: New file.
10586 * unittests/basic_string_view/operations/compare/wchar_t/13650.cc: New file.
10587 * unittests/basic_string_view/operations/compare/wchar_t/2.cc: New file.
10588 * unittests/basic_string_view/operations/copy/char/1.cc: New file.
10589 * unittests/basic_string_view/operations/copy/wchar_t/1.cc: New file.
10590 * unittests/basic_string_view/operations/data/char/1.cc: New file.
10591 * unittests/basic_string_view/operations/data/wchar_t/1.cc: New file.
10592 * unittests/basic_string_view/operations/find/char/1.cc: New file.
10593 * unittests/basic_string_view/operations/find/char/2.cc: New file.
10594 * unittests/basic_string_view/operations/find/char/3.cc: New file.
10595 * unittests/basic_string_view/operations/find/char/4.cc: New file.
10596 * unittests/basic_string_view/operations/find/wchar_t/1.cc: New file.
10597 * unittests/basic_string_view/operations/find/wchar_t/2.cc: New file.
10598 * unittests/basic_string_view/operations/find/wchar_t/3.cc: New file.
10599 * unittests/basic_string_view/operations/find/wchar_t/4.cc: New file.
10600 * unittests/basic_string_view/operations/rfind/char/1.cc: New file.
10601 * unittests/basic_string_view/operations/rfind/char/2.cc: New file.
10602 * unittests/basic_string_view/operations/rfind/char/3.cc: New file.
10603 * unittests/basic_string_view/operations/rfind/wchar_t/1.cc: New file.
10604 * unittests/basic_string_view/operations/rfind/wchar_t/2.cc: New file.
10605 * unittests/basic_string_view/operations/rfind/wchar_t/3.cc: New file.
10606 * unittests/basic_string_view/operations/string_conversion/1.cc: New file.
10607 * unittests/basic_string_view/operations/substr/char/1.cc: New file.
10608 * unittests/basic_string_view/operations/substr/wchar_t/1.cc: New file.
10609 * unittests/basic_string_view/operators/char/2.cc: New file.
10610 * unittests/basic_string_view/operators/wchar_t/2.cc: New file.
10611 * unittests/basic_string_view/range_access/char/1.cc: New file.
10612 * unittests/basic_string_view/range_access/wchar_t/1.cc: New file.
10613 * unittests/basic_string_view/requirements/explicit_instantiation/1.cc: New file.
10614 * unittests/basic_string_view/requirements/explicit_instantiation/char/1.cc: New file.
10615 * unittests/basic_string_view/requirements/explicit_instantiation/char16_t/1.cc: New file.
10616 * unittests/basic_string_view/requirements/explicit_instantiation/char32_t/1.cc: New file.
10617 * unittests/basic_string_view/requirements/explicit_instantiation/wchar_t/1.cc: New file.
10618 * unittests/basic_string_view/requirements/typedefs.cc: New file.
10619 * unittests/basic_string_view/typedefs.cc: New file.
10620 * unittests/basic_string_view/types/1.cc: New file.
10621
8345c4a2
SM
106222018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10623
10624 * common/gdb_string_view.h: Remove libstdc++ implementation
10625 details, adjust to gdb reality.
10626 * common/gdb_string_view.tcc: Likewise.
10627 * cli/cli-script.c (struct string_view): Remove.
10628 (user_args) <m_args>: Change element type to gdb::string_view.
10629 (user_args::insert_args): Adjust.
10630
7adcdf08
SM
106312018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10632
10633 * common/gdb_string_view.h: New file.
10634 * common/gdb_string_view.tcc: New file.
10635
41260ac2
SM
106362018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10637
10638 * ax_cxx_compile_stdcxx.m4: Sync with upstream.
10639 * configure: Re-generate.
10640
0bee6dd4
PA
106412018-04-09 Pedro Alves <palves@redhat.com>
10642
10643 * gdbarch.sh: Include "observable.h" instead of "observer.h".
10644 (set_target_gdbarch): Call
10645 gdb::observers::architecture_changed.notify instead of
10646 observer_notify_architecture_changed.
10647
6f14adc5
SM
106482018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10649
10650 * tracepoint.c (struct current_traceframe_cleanup): Remove.
10651 (do_restore_current_traceframe_cleanup): Remove.
10652 (restore_current_traceframe_cleanup_dtor): Remove.
10653 (make_cleanup_restore_current_traceframe): Remove.
10654 (scoped_restore_current_traceframe::scoped_restore_current_traceframe):
10655 New.
10656 * tracepoint.h (struct scoped_restore_current_traceframe): New.
10657 * infrun.c (fetch_inferior_event): Use
10658 scoped_restore_current_traceframe.
10659
b2bdb8cf
SM
106602018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10661
10662 * dwarf2read.h (struct dwarf2_per_objfile) <n_type_units>:
10663 Remove.
10664 <n_allocated_type_units>: Remove.
10665 <all_type_units>: Change to std::vector.
10666 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
10667 to std::vector change.
10668 (dwarf2_per_objfile::get_cutu): Likewise.
10669 (dwarf2_per_objfile::get_tu): Likewise.
10670 (create_signatured_type_table_from_index): Likewise.
10671 (create_signatured_type_table_from_debug_names): Likewise.
10672 (dw2_symtab_iter_next): Likewise.
10673 (dw2_print_stats): Likewise.
10674 (dw2_expand_all_symtabs): Likewise.
10675 (dw2_expand_marked_cus): Likewise.
10676 (dw2_debug_names_iterator::next): Likewise.
10677 (dwarf2_initialize_objfile): Likewise.
10678 (add_signatured_type_cu_to_table): Likewise.
10679 (create_all_type_units): Likewise.
10680 (add_type_unit): Likewise.
10681 (struct tu_abbrev_offset): Add constructor.
10682 (build_type_psymtabs_1): Adjust to std::vector change.
10683 (print_tu_stats): Likewise.
10684 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
10685 (write_debug_names): Likewise.
10686
b76e467d
SM
106872018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10688
10689 * dwarf2read.h (struct dwarf2_per_objfile) <all_comp_units>: Likewise.
10690 Make an std::vector.
10691 <n_comp_units>: Remove.
10692 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
10693 to std::vector change.
10694 (dwarf2_per_objfile::get_cutu): Likewise.
10695 (dwarf2_per_objfile::get_cu): Likewise.
10696 (create_cus_from_index): Likewise.
10697 (create_addrmap_from_index): Likewise.
10698 (create_addrmap_from_aranges): Likewise.
10699 (dwarf2_read_index): Likewise.
10700 (dw2_find_last_source_symtab): Likewise.
10701 (dw2_map_symtabs_matching_filename): Likewise.
10702 (dw2_symtab_iter_next): Likewise.
10703 (dw2_print_stats): Likewise.
10704 (dw2_expand_all_symtabs): Likewise.
10705 (dw2_expand_symtabs_with_fullname): Likewise.
10706 (dw2_expand_marked_cus): Likewise.
10707 (dw2_map_symbol_filenames): Likewise.
10708 (create_cus_from_debug_names): Likewise.
10709 (dwarf2_read_debug_names): Likewise.
10710 (dw2_debug_names_iterator::next): Likewise.
10711 (dwarf2_initialize_objfile): Likewise.
10712 (set_partial_user): Likewise.
10713 (dwarf2_build_psymtabs_hard): Likewise.
10714 (read_comp_units_from_section): Remove arguments, adjust to
10715 std::vector change.
10716 (create_all_comp_units): Adjust to std::vector and
10717 read_comp_units_from_section changes.
10718 (dwarf2_find_containing_comp_unit): Adjust to std::vector
10719 change.
10720 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
10721 (psyms_seen_size): Likewise.
10722 (write_gdbindex): Likewise.
10723 (write_debug_names): Likewise.
10724
12359b5e
SM
107252018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10726
10727 * dwarf2read.c (create_cus_from_index_list): Replace objfile arg
10728 with dwarf2_per_objfile.
10729 (create_cus_from_index): Likewise.
10730 (create_signatured_type_table_from_index): Likewise.
10731 (dwarf2_read_index): Likewise.
10732 (dwarf2_initialize_objfile): Likewise.
10733 (dwarf2_fetch_die_loc_sect_off): Get dwarf2_per_objfile from
10734 per_cu rather than get_dwarf2_per_objfile.
10735
ff4c9fec
SM
107362018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10737
10738 * dwarf2read.h (struct signatured_type): Forward declare.
10739 (struct dwarf2_per_objfile) <get_cutu, get_cu, get_tu>:
10740 New methods.
10741 * dwarf2read.c (dwarf2_per_objfile::get_cutu): Rename from...
10742 (dw2_get_cutu): ...this.
10743 (dwarf2_per_objfile::get_cu): Rename from...
10744 (dw2_get_cu): ...this.
10745 (dwarf2_per_objfile::get_tu): New.
10746 (create_addrmap_from_index): Adjust.
10747 (create_addrmap_from_aranges): Adjust.
10748 (dw2_find_last_source_symtab): Adjust.
10749 (dw2_map_symtabs_matching_filename): Adjust.
10750 (dw2_symtab_iter_next): Adjust.
10751 (dw2_print_stats): Adjust.
10752 (dw2_expand_all_symtabs): Adjust.
10753 (dw2_expand_symtabs_with_fullname): Adjust.
10754 (dw2_expand_marked_cus): Adjust.
10755 (dw_expand_symtabs_matching_file_matcher): Adjust.
10756 (dw2_map_symbol_filenames): Adjust.
10757 (dw2_debug_names_iterator::next): Adjust.
10758 (dwarf2_initialize_objfile): Adjust.
10759 (set_partial_user): Adjust.
10760 (dwarf2_build_psymtabs_hard): Adjust.
10761
5ca3fcb6
SM
107622018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10763
10764 * dwarf2read.c (create_signatured_type_table_from_debug_names):
10765 Remove unused variables.
10766 (dw2_map_symtabs_matching_filename): Likewise.
10767 (dwarf2_record_block_ranges): Likewise.
10768 (dwarf2_read_addr_index): Likewise.
10769 (follow_die_offset): Likewise.
10770
b2e586e8
SM
107712018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10772
10773 * progspace.c (clone_program_space): Pass SYMFILE_DEFER_BP_RESET
10774 to symbol_file_add_main.
10775
7c4e78cf
SM
107762018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10777
10778 PR mi/22299
10779 * mi/mi-console.c (do_fputc_async_safe): New.
10780 (mi_console_file::write_async_safe): New.
10781 (mi_console_file::flush): Adjust calls to fputstrn_unfiltered.
10782 * mi/mi-console.h (class mi_console_file) <write_async_safe>:
10783 New.
10784 * ui-file.c (ui_file::putstrn): Adjust call to
10785 fputstrn_unfiltered.
10786 * utils.c (printchar): Replace do_fputs and do_fprintf
10787 parameters by do_fputc.
10788 (fputstr_filtered): Adjust call to printchar.
10789 (fputstr_unfiltered): Likewise.
10790 (fputstrn_filtered): Likewise.
10791 (fputstrn_unfiltered): Add do_fputc parameter, pass to
10792 printchar.
10793 * utils.h (do_fputc_ftype): New typedef.
10794 (fputstrn_unfiltered): Add do_fputc parameter.
10795
5dc026d3
SM
107962018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10797
10798 * regformats/i386/i386-avx.dat: Remove.
10799
c912f608
SM
108002018-04-07 Simon Marchi <simon.marchi@ericsson.com>
10801
10802 PR gdb/22979
10803 * amd64-tdep.c (amd64_none_init_abi): New function.
10804 (amd64_x32_none_init_abi): New function.
10805 (_initialize_amd64_tdep): Register handlers for x86-64 and
10806 x64_32 with GDB_OSABI_NONE.
10807 * osabi.c (gdbarch_init_osabi): Allow running handlers for the
10808 GDB_OSABI_NONE osabi.
10809
26540402
SM
108102018-04-07 Simon Marchi <simon.marchi@ericsson.com>
10811
10812 PR gdb/22980
10813 * defs.h (enum gdb_osabi): Remove GDB_OSABI_UNINITIALIZED, add
10814 GDB_OSABI_NONE.
10815 * arch-utils.c (gdbarch_info_init): Don't set info->osabi.
10816 * osabi.c (gdb_osabi_names): Add "unknown" entry.
10817
9018be22
SM
108182018-04-07 Simon Marchi <simon.marchi@ericsson.com>
10819
10820 * common/byte-vector.h (char_vector): New type.
10821 * target.h (target_read_alloc): Return
10822 gdb::optional<byte_vector>.
10823 (target_read_stralloc): Return gdb::optional<char_vector>.
10824 (target_get_osdata): Return gdb::optional<char_vector>.
10825 * target.c (target_read_alloc_1): Templatize. Replacement
10826 manual memory management with vector.
10827 (target_read_alloc): Change return type, adjust.
10828 (target_read_stralloc): Change return type, adjust.
10829 (target_get_osdata): Change return type, adjust.
10830 * auxv.c (struct auxv_info) <length>: Remove.
10831 <data>: Change type to gdb::optional<byte_vector>.
10832 (auxv_inferior_data_cleanup): Free auxv_info with delete.
10833 (get_auxv_inferior_data): Allocate auxv_info with new, adjust.
10834 (target_auxv_search): Adjust.
10835 (fprint_target_auxv): Adjust.
10836 * avr-tdep.c (avr_io_reg_read_command): Adjust.
10837 * linux-tdep.c (linux_spu_make_corefile_notes): Adjust.
10838 (linux_make_corefile_notes): Adjust.
10839 * osdata.c (get_osdata): Adjust.
10840 * remote.c (remote_get_threads_with_qxfer): Adjust.
10841 (remote_memory_map): Adjust.
10842 (remote_traceframe_info): Adjust.
10843 (btrace_read_config): Adjust.
10844 (remote_read_btrace): Adjust.
10845 (remote_pid_to_exec_file): Adjust.
10846 * solib-aix.c (solib_aix_get_library_list): Adjust.
10847 * solib-dsbt.c (decode_loadmap): Don't free buf.
10848 (dsbt_get_initial_loadmaps): Adjust.
10849 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Adjust.
10850 * solib-target.c (solib_target_current_sos): Adjust.
10851 * tracepoint.c (sdata_make_value): Adjust.
10852 * xml-support.c (xinclude_start_include): Adjust.
10853 (xml_fetch_content_from_file): Adjust.
10854 * xml-support.h (xml_fetch_another): Change return type.
10855 (xml_fetch_content_from_file): Change return type.
10856 * xml-syscall.c (xml_init_syscalls_info): Adjust.
10857 * xml-tdesc.c (file_read_description_xml): Adjust.
10858 (fetch_available_features_from_target): Change return type.
10859 (target_fetch_description_xml): Adjust.
10860 (target_read_description_xml): Adjust.
10861
14c88955
TT
108622018-04-06 Tom Tromey <tom@tromey.com>
10863
10864 * value.c (~value): Update.
10865 (struct value) <contents>: Now unique_xmalloc_ptr.
10866 (value_contents_bits_eq, allocate_value_contents)
10867 (value_contents_raw, value_contents_all_raw)
10868 (value_contents_for_printing, value_contents_for_printing_const)
10869 (set_value_enclosing_type): Update.
10870
0c7e6dd8
TT
108712018-04-06 Tom Tromey <tom@tromey.com>
10872
10873 * value.c (range_s): Remove typedef, VEC.
10874 (struct range): Add operator<.
10875 (range_lessthan): Remove.
10876 (ranges_contain): Change type.
10877 (~value): Update.
10878 (struct value) <unavailable, optimized_out>: Now std::vector.
10879 (value_entirely_available)
10880 (value_entirely_covered_by_range_vector)
10881 (value_entirely_unavailable, value_entirely_optimized_out):
10882 Update.
10883 (insert_into_bit_range_vector): Change argument type.
10884 (find_first_range_overlap): Likewise.
10885 (struct ranges_and_idx, value_contents_bits_eq)
10886 (require_not_optimized_out, require_available): Update.
10887 (ranges_copy_adjusted): Change argument types.
10888 (value_optimized_out, value_copy, value_fetch_lazy): Update.
10889
2c8331b9
TT
108902018-04-06 Tom Tromey <tom@tromey.com>
10891
10892 * value.c (~value): Update.
10893 (struct value) <parent>: Now a value_ref_ptr.
10894 (value_parent, set_value_parent, value_address, value_copy):
10895 Update.
10896
466ce3ae
TT
108972018-04-06 Tom Tromey <tom@tromey.com>
10898
10899 * value.c (struct value): Add constructor, destructor, and member
10900 initializers.
10901 (allocate_value_lazy, value_decref): Update.
10902
062d818d
TT
109032018-04-06 Tom Tromey <tom@tromey.com>
10904
10905 * value.c (struct value) <released, next>: Remove.
10906 (all_values): Now a std::vector.
10907 (allocate_value_lazy): Update.
10908 (value_next): Remove.
10909 (value_mark, value_free_to_mark, release_value)
10910 (value_release_to_mark): Update.
10911
a6535de1
TT
109122018-04-06 Tom Tromey <tom@tromey.com>
10913
10914 * value.h (fetch_subexp_value, value_release_to_mark): Update.
10915 (free_value_chain): Remove.
10916 * value.c (free_value_chain): Remove.
10917 (value_release_to_mark): Return a std::vector.
10918 * ppc-linux-nat.c (num_memory_accesses): Change "chain" to a
10919 std::vector.
10920 (check_condition): Update.
10921 * eval.c (fetch_subexp_value): Change "val_chain" to a
10922 std::vector.
10923 * breakpoint.c (update_watchpoint): Update.
10924 (can_use_hardware_watchpoint): Change "vals" to a std::vector.
10925
b5621201
TT
109262018-04-06 Tom Tromey <tom@tromey.com>
10927
10928 * value.h (free_all_values): Remove.
10929 * value.c (free_all_values): Remove.
10930
4d0266a0
TT
109312018-04-06 Tom Tromey <tom@tromey.com>
10932
10933 * value.c (VALUE_HISTORY_CHUNK, struct value_history_chunk)
10934 (value_history_chain, value_history_count): Remove.
10935 (value_history): New global.
10936 (record_latest_value, access_value_history, show_values)
10937 (preserve_values): Update.
10938
b4d61099
TT
109392018-04-06 Tom Tromey <tom@tromey.com>
10940
10941 * varobj.h (struct varobj) <value>: Now a value_ref_ptr.
10942 * varobj.c (varobj_set_display_format, varobj_set_value)
10943 (install_default_visualizer, construct_visualizer)
10944 (install_new_value, ~varobj, varobj_get_value_type)
10945 (my_value_of_variable, varobj_editable_p): Update.
10946 * c-varobj.c (c_describe_child, c_value_of_variable)
10947 (cplus_number_of_children, cplus_describe_child): Update.
10948 * ada-varobj.c (ada_number_of_children, ada_name_of_child)
10949 (ada_path_expr_of_child, ada_value_of_child, ada_type_of_child)
10950 (ada_value_of_variable, ada_value_is_changeable_p): Update.
10951
9b558729
TT
109522018-04-06 Tom Tromey <tom@tromey.com>
10953
10954 * printcmd.c (last_examine_address): Change type to
10955 value_ref_ptr.
10956 (do_examine, x_command): Update.
10957
850645cf
TT
109582018-04-06 Tom Tromey <tom@tromey.com>
10959
10960 * value.c (release_value): Update.
10961 * breakpoint.h (struct watchpoint) <val>: Now a value_ref_ptr.
10962 (struct bpstats) <val>: Now a value_ref_ptr.
10963 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
10964 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
10965 (~watchpoint, print_it_watchpoint, watch_command_1)
10966 (invalidate_bp_value_on_memory_change): Update.
10967
22bc8444
TT
109682018-04-06 Tom Tromey <tom@tromey.com>
10969
10970 * varobj.c (varobj_clear_saved_item)
10971 (update_dynamic_varobj_children, install_new_value, ~varobj):
10972 Update.
10973 * value.h (value_incref): Move declaration earlier.
10974 (value_decref): Rename from value_free.
10975 (struct value_ref_policy): New.
10976 (value_ref_ptr): New typedef.
10977 (struct value_deleter): Remove.
10978 (gdb_value_up): Remove typedef.
10979 (release_value): Change return type.
10980 (release_value_or_incref): Remove.
10981 * value.c (set_value_parent): Update.
10982 (value_incref): Change return type.
10983 (value_decref): Rename from value_free.
10984 (value_free_to_mark, free_all_values, free_value_chain): Update.
10985 (release_value): Return value_ref_ptr.
10986 (release_value_or_incref): Remove.
10987 (record_latest_value, set_internalvar, clear_internalvar):
10988 Update.
10989 * stack.c (info_frame_command): Don't call value_free.
10990 * python/py-value.c (valpy_dealloc, valpy_new)
10991 (value_to_value_object): Update.
10992 * printcmd.c (do_examine): Update.
10993 * opencl-lang.c (lval_func_free_closure): Update.
10994 * mi/mi-main.c (register_changed_p): Don't call value_free.
10995 * mep-tdep.c (mep_frame_prev_register): Don't call value_free.
10996 * m88k-tdep.c (m88k_frame_prev_register): Don't call value_free.
10997 * m68hc11-tdep.c (m68hc11_frame_prev_register): Don't call
10998 value_free.
10999 * guile/scm-value.c (vlscm_free_value_smob)
11000 (vlscm_scm_from_value): Update.
11001 * frame.c (frame_register_unwind, frame_unwind_register_signed)
11002 (frame_unwind_register_unsigned, get_frame_register_bytes)
11003 (put_frame_register_bytes): Don't call value_free.
11004 * findvar.c (address_from_register): Don't call value_free.
11005 * dwarf2read.c (dwarf2_compute_name): Don't call value_free.
11006 * dwarf2loc.c (entry_data_value_free_closure)
11007 (value_of_dwarf_reg_entry, free_pieced_value_closure)
11008 (dwarf2_evaluate_loc_desc_full): Update.
11009 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
11010 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
11011 (~watchpoint, watch_command_1)
11012 (invalidate_bp_value_on_memory_change): Update.
11013 * alpha-tdep.c (alpha_register_to_value): Don't call value_free.
11014
7f8a5d38
SM
110152018-04-06 Simon Marchi <simon.marchi@polymtl.ca>
11016
11017 PR gdb/23022
11018 * warning.m4: Add -Wno-error=deprecated-register.
11019 * configure: Re-generate.
11020
8a76bd3b
TT
110212018-04-05 Tom Tromey <tom@tromey.com>
11022
11023 * linespec.h: Remove include of "vec.h".
11024
8e8d776e
TT
110252018-04-05 Tom Tromey <tom@tromey.com>
11026
11027 * linespec.c (typep): Remove typedef.
11028 (find_methods, find_superclass_methods): Take a std::vector.
11029 (find_method): Use std::vector.
11030
9b2f8581
TT
110312018-04-05 Tom Tromey <tom@tromey.com>
11032
11033 * utils.c (compare_strings): Remove.
11034 * utils.h (compare_strings): Remove.
11035 * objc-lang.h (find_imps): Update.
11036 * objc-lang.c (find_methods): Take a std::vector.
11037 (uniquify_strings, find_imps): Likewise.
11038 * linespec.c (find_methods): Take a std::vector.
11039 (decode_objc): Use std::vector.
11040 (add_all_symbol_names_from_pspace, find_superclass_methods): Take
11041 a std::vector.
11042 (find_method, find_function_symbols): Use std::vector.
11043
459a2e4c
TT
110442018-04-05 Tom Tromey <tom@tromey.com>
11045
11046 * completer.c (completion_tracker::completion_tracker): Remove
11047 cast.
11048 (completion_tracker::discard_completions): Likewise.
11049 * breakpoint.c (ambiguous_names_p): Remove cast.
11050 * ada-lang.c (_initialize_ada_language): Remove cast.
11051 * utils.h (streq): Update.
11052 (streq_hash): Add new declaration.
11053 * utils.c (streq): Return bool.
11054 (streq_hash): New function.
11055
9be2c17a
TT
110562018-04-05 Tom Tromey <tom@tromey.com>
11057
11058 * linespec.c (event_location_to_sals) <case ADDRESS_LOCATION>:
11059 Remove a string copy.
11060
f73c6ece
TT
110612018-04-05 Tom Tromey <tom@tromey.com>
11062
11063 * linespec.c (filter_results): Use std::vector.
11064 (decode_line_2, decode_line_full): Update.
11065
53a0f8a2
TT
110662018-04-05 Tom Tromey <tom@tromey.com>
11067
11068 * linespec.c (canonical_to_fullform): Return std::string.
11069 (filter_results): Update.
11070 (struct decode_line_2_item): Add constructor.
11071 <fullform, displayform>: Now std::string.
11072 (decode_line_2_compare_items): Now a std::sort comparator.
11073 (decode_line_2): Update.
11074
a5b5adf5
TT
110752018-04-05 Tom Tromey <tom@tromey.com>
11076
11077 * linespec.c (copy_token_string): Return a unique_xmalloc_ptr.
11078 (unexpected_linespec_error): Update.
11079 (linespec_parse_basic, parse_linespec): Update.
11080
6a307fc5
TT
110812018-04-05 Tom Tromey <tom@tromey.com>
11082
11083 * linespec.c (linespec_parse_basic): Reindent.
11084
41c1efc6
TT
110852018-04-05 Tom Tromey <tom@tromey.com>
11086
11087 * minsyms.h (iterate_over_minimal_symbols): Update.
11088 * minsyms.c (iterate_over_minimal_symbols): Take a
11089 gdb::function_view.
11090 * linespec.c (struct collect_minsyms): Remove.
11091 (compare_msyms): Now a std::sort comparator.
11092 (add_minsym): Add parameters.
11093 (search_minsyms_for_name): Update. Use std::vector.
11094
c5edbf3d
TT
110952018-04-03 Tom Tromey <tom@tromey.com>
11096
11097 * mipsread.c (read_alphacoff_dynamic_symtab): Use
11098 gdb::byte_vector.
11099
b39efc48
WP
111002018-04-02 Weimin Pan <weimin.pan@oracle.com>
11101
11102 * MAINTAINERS (Write After Approval): Add Weimin Pan.
11103
121ad66c 111042018-04-02 Weimin Pan <weimin.pan@oracle.com>
79f18731
WP
11105
11106 PR gdb/16959
11107 * cp-valprint.c: (cp_print_static_field) Fix infinite recursion when
11108 printing static type.
11109
09473be8
TT
111102018-04-01 Tom Tromey <tom@tromey.com>
11111
11112 * rs6000-nat.c (rs6000_ptrace_ldinfo): Return a byte_vector.
11113 (rs6000_xfer_shared_libraries): Update.
11114
ec1f2d91
SM
111152018-04-01 Simon Marchi <simon.marchi@polymtl.ca>
11116
11117 * common/gdb_vecs.h (char_ptr): Remove.
11118 * tracepoint.c (encode_actions_1): Remove usage of char_ptr.
11119
d8611974
SM
111202018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
11121
11122 * guile/scm-utils.c (gdbscm_parse_function_args): Replace VEC
11123 with std::vector.
11124 * common/gdb_vecs.h (DEF_VEC_P (char_ptr)): Remove.
11125
a18ba4e4
SM
111262018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
11127
11128 * tracepoint.h (struct uploaded_tp): Initialize fields.
11129 <actions, step_actions, cmd_strings>: Change type to
11130 std::vector<char *>.
11131 * tracepoint.c (get_uploaded_tp): Allocate with new.
11132 (free_uploaded_tps): Free with delete.
11133 (parse_tracepoint_definition): Adjust to std::vector change.
11134 * breakpoint.c (read_uploaded_action): Likewise.
11135 (create_tracepoint_from_upload): Likewise.
11136 * ctf.c (ctf_write_uploaded_tp): Likewise.
11137 (SET_ARRAY_FIELD): Likewise.
11138 * tracefile-tfile.c (tfile_write_uploaded_tp): Likewise.
11139
a7961323
TT
111402018-03-30 Tom Tromey <tom@tromey.com>
11141
11142 * solib-svr4.c (lm_info_read): Use gdb::byte_vector. Return
11143 std::unique_ptr.
11144 (svr4_keep_data_in_core): Update.
11145 (svr4_read_so_list): Update.
11146
e83e4e24
TT
111472018-03-30 Tom Tromey <tom@tromey.com>
11148
11149 * windows-nat.c (handle_output_debug_string, handle_exception):
11150 Update.
11151 * target.h (target_read_string): Update.
11152 * target.c (target_read_string): Change "string" to
11153 unique_xmalloc_ptr.
11154 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
11155 Update.
11156 * solib-frv.c (frv_current_sos): Update.
11157 * solib-dsbt.c (dsbt_current_sos): Update.
11158 * solib-darwin.c (darwin_current_sos): Update.
11159 * linux-thread-db.c (inferior_has_bug): Update.
11160 * expprint.c (print_subexp_standard) <case OP_OBJC_MSGCALL>:
11161 Update. Remove alloca.
11162 * ada-lang.c (ada_main_name): Update.
11163
263db9a1
TT
111642018-03-30 Tom Tromey <tom@tromey.com>
11165
11166 * dwarf2read.c (struct free_dwo_file_cleanup_data): Remove.
11167 (struct dwo_file_deleter): New.
11168 (dwo_file_up): New typedef.
11169 (open_and_init_dwo_file): Use dwo_file_up.
11170 (free_dwo_file_cleanup): Remove.
11171
5dafb3d1
TT
111722018-03-30 Tom Tromey <tom@tromey.com>
11173
11174 * dwarf2read.c (free_dwo_file): Remove "objfile" parameter.
11175 (free_dwo_file_cleanup, free_dwo_file_from_slot): Update.
11176
11ed8cad
TT
111772018-03-30 Tom Tromey <tom@tromey.com>
11178
11179 * dwarf2read.c (class free_cached_comp_units): New class.
11180 (dw2_instantiate_symtab, dwarf2_build_psymtabs_hard): Use it.
11181 (free_cached_comp_units): Remove function.
11182
9ae79dac
TT
111832018-03-30 Tom Tromey <tom@tromey.com>
11184
11185 * utils.h (make_cleanup_unpush_target): Remove.
11186 * inf-ptrace.c (struct target_unpusher): New.
11187 (target_unpush_up) New typedef.
11188 (inf_ptrace_create_inferior, inf_ptrace_attach): Use
11189 target_unpush_up.
11190 * utils.c (do_unpush_target, make_cleanup_unpush_target): Remove.
11191
5aa89276
TT
111922018-03-27 Tom Tromey <tom@tromey.com>
11193
11194 * utils.c (prompt_for_continue): Use unique_xmalloc_ptr.
11195
1dbeed45
TT
111962018-03-27 Pedro Alves <palves@redhat.com>
11197 Tom Tromey <tom@tromey.com>
11198
11199 * top.c (class gdb_readline_wrapper_cleanup): Add constructor,
11200 destructor. Now a class.
11201 (gdb_readline_wrapper_cleanup): Remove function.
11202 (gdb_readline_wrapper): Remove cleanups.
11203
c819b2c0
TT
112042018-03-27 Tom Tromey <tom@tromey.com>
11205
11206 * typeprint.h (struct type_print_options) <local_typedefs,
11207 global_typedefs>: Remove "struct" keyword.
11208 (class typedef_hash_table): New class.
11209 (recursively_update_typedef_hash, add_template_parameters)
11210 (create_typedef_hash, free_typedef_hash, copy_typedef_hash)
11211 (find_typedef_in_hash): Don't declare.
11212 * typeprint.c (struct typedef_hash_table): Move to typeprint.h.
11213 (typedef_hash_table::recursively_update): Rename from
11214 recursively_update_typedef_hash. Now a member.
11215 (typedef_hash_table::add_template_parameters): Rename from
11216 add_template_parameters. Now a member.
11217 (typedef_hash_table::typedef_hash_table): Now a constructor;
11218 rename from create_typedef_hash.
11219 (typedef_hash_table::~typedef_hash_table): Now a destructor;
11220 rename from free_typedef_hash.
11221 (do_free_typedef_hash, make_cleanup_free_typedef_hash)
11222 (do_free_global_table): Remove.
11223 (typedef_hash_table::typedef_hash_table): New constructor; renamed
11224 from copy_type_recursive.
11225 (create_global_typedef_table): Remove.
11226 (typedef_hash_table::find_global_typedef): Now a member of
11227 typedef_hash_table.
11228 (typedef_hash_table::find_typedef): Rename from
11229 find_typedef_in_hash; now a member.
11230 (whatis_exp): Update.
11231 * extension.h (struct ext_lang_type_printers): Add constructor and
11232 destructor.
11233 (start_ext_lang_type_printers, free_ext_lang_type_printers): Don't
11234 declare.
11235 * extension.c (ext_lang_type_printers::ext_lang_type_printers):
11236 Now a constructor; rename from start_ext_lang_type_printers.
11237 (ext_lang_type_printers): Now a destructor; rename from
11238 free_ext_lang_type_printers.
11239 * c-typeprint.c (find_typedef_for_canonicalize, c_print_type_1):
11240 Update.
11241 (c_type_print_base_struct_union): Update. Remove cleanups.
11242
608219fb
TT
112432018-03-27 Tom Tromey <tom@tromey.com>
11244
11245 * dwarf-index-write.c: Include <cmath>.
11246
3fcded8f
JB
112472018-03-27 Joel Brobecker <brobecker@adacore.com>
11248
11249 * NEWS: Add entry describing new "set|show varsize-limit" command.
11250 * ada-lang.c (_initialize_ada_language): Add "set/show varsize-limit"
11251 command.
11252 * printcmd.c (_initialize_printcmd): Add "set var" alias of
11253 "set variable".
11254
cd4fb1b2
SM
112552018-03-27 Simon Marchi <simon.marchi@ericsson.com>
11256
11257 * Makefile.in (COMMON_SFILES): Add dwarf-index-common.c and
11258 dwarf-index-write.c
11259 (HFILES_NO_SRCDIR): Add dwarf-index-common.h and dwarf2read.h.
11260 * dwarf-index-common.c: New file.
11261 * dwarf-index-common.h: New file.
11262 * dwarf-index-write.c: New file.
11263 * dwarf2read.c: Include dwarf2read.h and dwarf-index-common.h.
11264 (struct dwarf2_section_info): Move from here.
11265 (dwarf2_section_info_def): Likewise.
11266 (DEF_VEC_O (dwarf2_section_info_def)): Likewise.
11267 (offset_type): Likewise.
11268 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): Likewise.
11269 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): Likewise.
11270 (DW2_GDB_INDEX_CU_SET_VALUE): Likewise.
11271 (byte_swap): Likewise.
11272 (MAYBE_SWAP): Likewise.
11273 (dwarf2_per_cu_ptr): Likewise.
11274 (DEF_VEC_P (dwarf2_per_cu_ptr)): Likewise.
11275 (struct tu_stats): Likewise.
11276 (struct dwarf2_per_objfile): Likewise.
11277 (struct dwarf2_per_cu_data): Likewise.
11278 (struct signatured_type): Likewise.
11279 (sig_type_ptr): Likewise.
11280 (DEF_VEC_P (sig_type_ptr)): Likewise.
11281 (INDEX4_SUFFIX): Likewise.
11282 (INDEX5_SUFFIX): Likewise.
11283 (DEBUG_STR_SUFFIX): Likewise.
11284 (dwarf2_read_section): Make non-static.
11285 (mapped_index_string_hash): Move from here.
11286 (dwarf5_djb_hash): Likewise.
11287 (file_write): Likewise.
11288 (class data_buf): Likewise.
11289 (struct symtab_index_entry): Likewise.
11290 (struct mapped_symtab): Likewise.
11291 (find_slot): Likewise.
11292 (hash_expand): Likewise.
11293 (add_index_entry): Likewise.
11294 (uniquify_cu_indices): Likewise.
11295 (class c_str_view): Likewise.
11296 (class c_str_view_hasher): Likewise.
11297 (class vector_hasher): Likewise.
11298 (write_hash_table): Likewise.
11299 (psym_index_map): Likewise.
11300 (struct addrmap_index_data): Likewise.
11301 (add_address_entry): Likewise.
11302 (add_address_entry_worker): Likewise.
11303 (write_address_map): Likewise.
11304 (symbol_kind): Likewise.
11305 (write_psymbols): Likewise.
11306 (struct signatured_type_index_data): Likewise.
11307 (write_one_signatured_type): Likewise.
11308 (recursively_count_psymbols): Likewise.
11309 (recursively_write_psymbols): Likewise.
11310 (class debug_names): Likewise.
11311 (check_dwarf64_offsets): Likewise.
11312 (psyms_seen_size): Likewise.
11313 (write_gdbindex): Likewise.
11314 (write_debug_names): Likewise.
11315 (assert_file_size): Likewise.
11316 (write_psymtabs_to_index): Likewise.
11317 (save_gdb_index_command): Likewise.
11318 (_initialize_dwarf2_read): Don't register the "save gdb-index"
11319 command.
11320 * dwarf2read.h: New file.
11321
59cc4834
JB
113222018-03-27 Joel Brobecker <brobecker@adacore.com>
11323
11324 PR gdb/22670
11325 * dwarf2read.c (dwarf2_physname): Do not return the demangled
11326 symbol name if the CU's language stores symbol names in linkage
11327 format.
11328 * language.h (struct language_defn)
11329 <la_store_sym_names_in_linkage_form_p>: New field. Adjust
11330 all instances of this struct.
11331
67501539
TT
113322018-03-26 Tom Tromey <tom@tromey.com>
11333
11334 * stack.c (backtrace_command_1): Remove verbose code.
11335
76c939ac
TT
113362018-03-26 Tom Tromey <tom@tromey.com>
11337
11338 * python/py-framefilter.c (py_print_type): Don't catch
11339 exceptions. Return void.
11340 (py_print_value): Likewise.
11341 (py_print_single_arg): Likewise.
11342 (enumerate_args): Don't catch exceptions.
11343 (py_print_args): Likewise.
11344 (py_print_frame): Likewise.
11345 (gdbpy_apply_frame_filter): Catch exceptions here.
11346
9507b29c
TT
113472018-03-26 Tom Tromey <tom@tromey.com>
11348
11349 * stack.c (_initialize_stack): Remove trailing newlines from help
11350 text. Add "Usage" line to "backtrace" help.
11351
eb68e487
TT
113522018-03-26 Tom Tromey <tom@tromey.com>
11353
11354 PR python/16486:
11355 * python/py-framefilter.c (py_print_args): Call wrap_hint.
11356
1f111921
TT
113572018-03-26 Tom Tromey <tom@tromey.com>
11358
11359 * python/py-framefilter.c (py_print_single_arg): Return
11360 EXT_LANG_BT_ERROR from catch.
11361
fb7eb8b5
TT
113622018-03-26 Tom Tromey <tom@tromey.com>
11363
11364 PR backtrace/15584:
11365 * stack.c (backtrace_command_1): Move some code into no-filters
11366 "if".
11367
4ca59a9f
TT
113682018-03-26 Tom Tromey <tom@tromey.com>
11369
11370 * python/py-framefilter.c (throw_quit_or_print_exception): New
11371 function.
11372 (gdbpy_apply_frame_filter): Use it.
11373
92256134
TT
113742018-03-26 Tom Tromey <tom@tromey.com>
11375
11376 PR cli/17716:
11377 * python/py-framefilter.c (py_print_type, py_print_value)
11378 (enumerate_args, py_print_args, gdbpy_apply_frame_filter): Use
11379 RETURN_MASK_ERROR.
11380
7a630bc2
TT
113812018-03-26 Tom Tromey <tom@tromey.com>
11382
11383 * python/py-framefilter.c (enumerate_args): Use
11384 gdb::unique_xmalloc_ptr.
11385
63283d4a
TT
113862018-03-26 Tom Tromey <tom@tromey.com>
11387
11388 * python/py-framefilter.c (py_print_frame): Return
11389 EXT_LANG_BT_OK.
11390 (gdbpy_apply_frame_filter): Update comment.
11391 * extension.h (enum ext_lang_bt_status) <EXT_LANG_BT_COMPLETED>:
11392 Remove.
11393 <EXT_LANG_BT_NO_FILTERS>: Change value.
11394
978d6c75
TT
113952018-03-26 Tom Tromey <tom@tromey.com>
11396
11397 PR backtrace/15582:
11398 * stack.c (backtrace_command): Parse "hide" argument.
11399 * python/py-framefilter.c (py_print_frame): Handle PRINT_HIDE.
11400 * extension.h (enum frame_filter_flags) <PRINT_HIDE>: New
11401 constant.
11402
1cf7e640
TT
114032018-03-26 Tom Tromey <tom@tromey.com>
11404
11405 * stack.c (backtrace_command_1): Remove "show_locals" parameter,
11406 add "flags".
11407 (backtrace_command): Remove "fulltrace", add "flags".
11408
ea3b0687
TT
114092018-03-26 Tom Tromey <tom@tromey.com>
11410
11411 * stack.c (backtrace_command): Rewrite command line parsing.
11412
9f034d75
SM
114132018-03-26 Simon Marchi <simon.marchi@ericsson.com>
11414
11415 * dwarf2read.c (DEF_VEC_I(offset_type)): Remove.
11416
ce1459e5
SM
114172018-03-26 Simon Marchi <simon.marchi@ericsson.com>
11418
11419 * filename-seen-cache.h: Add include guard.
11420
4f7ae6f5
KS
114212018-03-26 Keith Seitz <keiths@redhat.com>
11422
11423 * symfile.c (place_section): Remove "struct" from section_addr_info
11424 in comment.
11425 * windows-nat.c (struct safe_symbol_file_add_args) <addrs>: Remove
11426 "struct" keyword from section_addr_info.
11427
5cd3e386
AH
114282018-03-26 Alan Hayward <alan.hayward@arm.com>
11429
11430 * regformats/regdef.h (reg): Add constructors.
11431
3e5ef9a4
PA
114322018-03-25 Pedro Alves <palves@redhat.com>
11433
11434 * eval.c (evaluate_funcall): Swap OP_VAR_MSYM_VALUE/OP_VAR_VALUE
11435 if then/else bodies in var_func_name extraction.
11436
c88d2fcc 114372018-03-23 Weimin Pan <weimin.pan@oracle.com>
bce02d88
WP
11438
11439 * minsyms.c (lookup_minimal_symbol_and_objfile): Use
11440 lookup_minimal_symbol() to find symbol entry.
11441 * minsyms.h (lookup_minimal_symbol_and_objfile): Update comment.
11442
b7fee5a3
KS
114432018-03-23 Keith Seitz <keiths@redhat.com>
11444
11445 PR c++/22968
11446 * dwarf2read.c (scan_partial_symbols): Scan structs/classes for
11447 nested type definitions for C++, too.
11448
2cc9b304
TT
114492018-03-23 Tom Tromey <tom@tromey.com>
11450
11451 * machoread.c (struct oso_el): Add a constructor. Don't define as
11452 a typedef.
11453 (macho_register_oso): Remove.
11454 (macho_symtab_read): Take a std::vector.
11455 (oso_el_compare_name): Now a std::sort comparator.
11456 (macho_symfile_read_all_oso): Take a std::vector.
11457 (macho_symfile_read): Use std::vector. Remove cleanups.
11458
a2b2bc12
TT
114592018-03-22 Tom Tromey <tom@tromey.com>
11460
11461 * record-full.c (record_full_exec_insn): Use gdb::byte_vector.
11462 (record_full_goto_bookmark): Use std::string.
11463
7a8f494c
PFC
114642018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
11465
11466 PR tdep/18295
11467 * rs6000-tdep.c (skip_prologue): Match both stwux and stdux
11468 a single mask.
11469
dd6d677f
PFC
114702018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
11471
11472 * rs6000-tdep.c (store_insn_p): New function.
11473 (skip_prologue): New variable alloca_reg_offset. Set lr_reg
11474 and cr_reg to their unshifted values. Use store_insn_p to
11475 match LR saves using either R1 or fdata->alloca_reg. Use
11476 store_insn_p to match CR saves. Set alloca_reg_offset
11477 when alloca_reg and framep are set. Remove lr_reg shift
11478 when assigning to fdata->lr_register.
11479
26d6cec4
AA
114802018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
11481
11482 * linux-tdep.c (linux_info_proc): For "info proc cmdline", print
11483 command line args instead of emitting a warning.
11484
5d9310c4
SM
114852018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
11486
11487 * tracepoint.h (struct static_tracepoint_marker): Initialize
11488 fields, define default constructor, move constructor and move
11489 assignment, disable the rest.
11490 <str_id, extra>: Make std::string.
11491 (release_static_tracepoint_marker): Remove.
11492 (free_current_marker): Remove.
11493 * tracepoint.c (free_current_marker): Remove.
11494 (parse_static_tracepoint_marker_definition): Adjust to
11495 std::string, use new hex2str overload.
11496 (release_static_tracepoint_marker): Remove.
11497 (print_one_static_tracepoint_marker): Get marker by reference
11498 and adjust to std::string.
11499 (info_static_tracepoint_markers_command): Adjust to std::vector
11500 changes
11501 * target.h (static_tracepoint_marker_p): Remove typedef.
11502 (DEF_VEC_P(static_tracepoint_marker_p)): Remove.
11503 (struct target_ops) <to_static_tracepoint_marker_at>: Return
11504 bool.
11505 <to_static_tracepoint_markers_by_strid>: Return std::vector.
11506 * target-debug.h
11507 (target_debug_print_VEC_static_tracepoint_marker_p_p): Remove.
11508 (target_debug_print_std_vector_static_tracepoint_marker): New.
11509 (target_debug_print_struct_static_tracepoint_marker_p): Rename
11510 to...
11511 (target_debug_print_static_tracepoint_marker_p): ... this.
11512 * target-delegates.c: Re-generate.
11513 * breakpoint.h (struct tracepoint) <static_trace_marker_id>:
11514 Make std::string.
11515 * breakpoint.c (init_breakpoint_sal): Adjust to std::string.
11516 (decode_static_tracepoint_spec): Adjust to std::vector.
11517 (tracepoint_print_one_detail): Adjust to std::string.
11518 (strace_marker_decode_location): Adjust to std::string.
11519 (update_static_tracepoint): Adjust to std::string, remove call
11520 to release_static_tracepoint_marker.
11521 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
11522 Adjust to std::vector.
11523 * remote.c (remote_static_tracepoint_marker_at): Return bool.
11524 (remote_static_tracepoint_markers_by_strid): Adjust to
11525 std::vector.
11526 * common/rsp-low.h (hex2str): New overload with explicit count
11527 of bytes.
11528 * common/rsp-low.c (hex2str): New overload with explicit count
11529 of bytes.
11530 * unittests/rsp-low-selftests.c (test_hex2str): New function.
11531 (_initialize_rsp_low_selftests): Add test_hex2str test.
11532 * unittests/tracepoint-selftests.c
11533 (test_parse_static_tracepoint_marker_definition): Adjust to
11534 std::string.
11535
62c222b6
SM
115362018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
11537
11538 * tracepoint.c (parse_static_tracepoint_marker_definition):
11539 Consider case where the definition is followed by more
11540 definitions.
11541 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11542 tracepoint-selftests.c.
11543 * unittests/tracepoint-selftests.c: New.
11544
7eb2418f
PFC
115452018-03-21 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
11546
11547 * MAINTAINERS (Write After Approval): Add Pedro Franco de
11548 Carvalho.
11549
7cbe16e9
SR
115502018-03-20 Stephen Roberts <stephen.roberts@arm.com>
11551
3d6b3b82 11552 * symtab.c (find_pc_sect_line): fixed indentation.
7cbe16e9 11553
4ee89e90
SR
115542018-03-20 Stephen Roberts <stephen.roberts@arm.com>
11555
3d6b3b82 11556 * symtab.c (find_pc_sect_line): now uses binary search.
4ee89e90 11557
92630041
TT
115582018-03-19 Tom Tromey <tom@tromey.com>
11559
11560 * rust-exp.y (struct_expr_tail, struct_expr_list): Add plain
11561 "IDENT" production.
11562
76727919
TT
115632018-03-19 Pedro Alves <palves@redhat.com>
11564 Tom Tromey <tom@tromey.com>
11565
11566 * unittests/observable-selftests.c: New file.
11567 * common/observable.h: New file.
11568 * observable.h: New file.
11569 * ada-lang.c, ada-tasks.c, agent.c, aix-thread.c, annotate.c,
11570 arm-tdep.c, auto-load.c, auxv.c, break-catch-syscall.c,
11571 breakpoint.c, bsd-uthread.c, cli/cli-interp.c, cli/cli-setshow.c,
11572 corefile.c, dummy-frame.c, event-loop.c, event-top.c, exec.c,
11573 extension.c, frame.c, gdbarch.c, guile/scm-breakpoint.c,
11574 infcall.c, infcmd.c, inferior.c, inflow.c, infrun.c, jit.c,
11575 linux-tdep.c, linux-thread-db.c, m68klinux-tdep.c,
11576 mi/mi-cmd-break.c, mi/mi-interp.c, mi/mi-main.c, objfiles.c,
11577 ppc-linux-nat.c, ppc-linux-tdep.c, printcmd.c, procfs.c,
11578 python/py-breakpoint.c, python/py-finishbreakpoint.c,
11579 python/py-inferior.c, python/py-unwind.c, ravenscar-thread.c,
11580 record-btrace.c, record-full.c, record.c, regcache.c, remote.c,
11581 riscv-tdep.c, sol-thread.c, solib-aix.c, solib-spu.c, solib.c,
11582 spu-multiarch.c, spu-tdep.c, stack.c, symfile-mem.c, symfile.c,
11583 symtab.c, thread.c, top.c, tracepoint.c, tui/tui-hooks.c,
11584 tui/tui-interp.c, valops.c: Update all users.
11585 * tui/tui-hooks.c (tui_bp_created_observer)
11586 (tui_bp_deleted_observer, tui_bp_modified_observer)
11587 (tui_inferior_exit_observer, tui_before_prompt_observer)
11588 (tui_normal_stop_observer, tui_register_changed_observer):
11589 Remove.
11590 (tui_observers_token): New global.
11591 (attach_or_detach, tui_attach_detach_observers): New functions.
11592 (tui_install_hooks, tui_remove_hooks): Use
11593 tui_attach_detach_observers.
11594 * record-btrace.c (record_btrace_thread_observer): Remove.
11595 (record_btrace_thread_observer_token): New global.
11596 * observer.sh: Remove.
11597 * observer.c: Rename to observable.c.
11598 * observable.c (namespace gdb_observers): Define new objects.
11599 (observer_debug): Move into gdb_observers namespace.
11600 (struct observer, struct observer_list, xalloc_observer_list_node)
11601 (xfree_observer_list_node, generic_observer_attach)
11602 (generic_observer_detach, generic_observer_notify): Remove.
11603 (_initialize_observer): Update.
11604 Don't include observer.inc.
11605 * Makefile.in (generated_files): Remove observer.h, observer.inc.
11606 (clean mostlyclean): Likewise.
11607 (observer.h, observer.inc): Remove targets.
11608 (SUBDIR_UNITTESTS_SRCS): Add observable-selftests.c.
11609 (COMMON_SFILES): Use observable.c, not observer.c.
11610 * .gitignore: Remove observer.h.
11611
1cb1f3da
TT
116122018-03-18 Tom Tromey <tom@tromey.com>
11613
11614 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Use
11615 gdb::def_vector.
11616 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
11617
a06ab151
TT
116182018-03-17 Tom Tromey <tom@tromey.com>
11619
11620 * auto-load.c (auto_load_objfile_script_1): Use std::string.
11621
770623f7
TT
116222018-03-17 Tom Tromey <tom@tromey.com>
11623
11624 * target.c (class scoped_target_fd): New.
11625 (target_fileio_close_cleanup): Remove.
11626 (target_fileio_read_alloc_1): Use scoped_target_fd.
11627
39be3c7e
SM
116282018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
11629
11630 * silent-rules.mk: New.
11631 * Makefile.in: Include silent-rules.mk
11632 (srcdir, VPATH, top_srcdir): Move up.
11633 (COMPILE): Add ECHO_CXX.
11634 (test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD.
11635 (init.c): Add ECHO_INIT_C.
11636 (gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
11637 (version.c): Add ECHO_GEN.
11638 (printcmd.o): Add ECHO_CXX.
11639 (target-float.o): Add ECHO_CXX.
11640 (ada-exp.o): Add ECHO_CXX.
11641 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN.
11642 (insight$(EXEEXT)): Add ECHO_CXXLD.
11643 * gnulib/configure.ac: Add AM_SILENT_RULES.
11644 * gnulib/aclocal.m4: Re-generate.
11645 * gnulib/configure: Re-generate.
11646 * gnulib/import/Makefile.in: Re-generate.
11647
37e136b1
TT
116482018-03-16 Tom Tromey <tom@tromey.com>
11649
11650 * xcoffread.c (xcoff_symfile_offsets): Change type of "addrs".
11651 * utils.h (make_cleanup_free_section_addr_info): Don't declare.
11652 * utils.c (do_free_section_addr_info)
11653 (make_cleanup_free_section_addr_info): Remove.
11654 * symfile.h (struct other_sections): Add constructor.
11655 (struct section_addr_info): Remove.
11656 (section_addr_info): New typedef.
11657 (struct sym_fns) <sym_offsets>: Change type of parameter.
11658 (build_section_addr_info_from_objfile)
11659 (relative_addr_info_to_section_offsets, addr_info_make_relative)
11660 (default_symfile_offsets, symbol_file_add)
11661 (symbol_file_add_from_bfd)
11662 (build_section_addr_info_from_section_table): Update.
11663 (alloc_section_addr_info, free_section_addr_info): Don't declare.
11664 * symfile.c (alloc_section_addr_info): Remove.
11665 (build_section_addr_info_from_section_table): Change return type.
11666 Update.
11667 (build_section_addr_info_from_bfd)
11668 (build_section_addr_info_from_objfile): Likewise.
11669 (free_section_addr_info): Remove.
11670 (relative_addr_info_to_section_offsets): Change type of "addrs".
11671 (addrs_section_compar): Now a std::sort comparator.
11672 (addrs_section_sort): Change return type.
11673 (addr_info_make_relative): Change type of "addrs". Update.
11674 (default_symfile_offsets, syms_from_objfile_1)
11675 (syms_from_objfile, symbol_file_add_with_addrs): Likewise.
11676 (symbol_file_add_separate): Update.
11677 (symbol_file_add): Change type of "addrs". Update.
11678 (add_symbol_file_command): Update. Remove cleanups.
11679 * symfile-mem.c (symbol_file_add_from_memory): Update. Remove
11680 cleanups.
11681 * symfile-debug.c (debug_sym_offsets): Change type of "info".
11682 * solib.c (solib_read_symbols): Update.
11683 * objfiles.c (objfile_relocate): Update. Remove cleanups.
11684 * machoread.c (macho_symfile_offsets): Update.
11685 * jit.c (jit_bfd_try_read_symtab): Update.
11686
03afa6ef
SM
116872018-03-15 Simon Marchi <simon.marchi@polymtl.ca>
11688
11689 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11690 unittests/utils-selftests.c.
11691 * unittests/utils-selftests.c: New file.
11692
3ae9ce5d
TT
116932018-03-14 Tom Tromey <tom@tromey.com>
11694
11695 PR cli/14977:
11696 * printcmd.c (printf_c_string, printf_wide_c_string): Special case
11697 for NULL.
11698
b8c2339b
TT
116992018-03-14 Tom Tromey <tom@tromey.com>
11700
11701 PR cli/19918:
11702 * printcmd.c (printf_pointer): Allow "-" in format.
11703
80ae639d
TT
117042018-03-14 Tom Tromey <tom@tromey.com>
11705
11706 * printcmd.c (_initialize_printcmd): Add usage to printf.
11707
0d671d99
YQ
117082018-03-14 Yao Qi <qiyao@sourceware.org>
11709
11710 * MAINTAINERS: Update my email address.
11711
b577b6af
TT
117122018-03-13 Tom Tromey <tom@tromey.com>
11713
11714 * machoread.c (macho_check_dsym): Change filenamep to a
11715 std::string*.
11716 (macho_symfile_read): Update.
11717 * symfile.c (load_command): Use std::string.
11718
89a3b63e
AB
117192018-03-12 Andrew Burgess <andrew.burgess@embecosm.com>
11720
11721 * riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization
11722 to error message string.
11723 (riscv_register_name): Use xsnprintf instead of sprintf.
11724 (riscv_insn::fetch_instruction): Use gdb_assert instead of
11725 internal_error.
11726 (riscv_print_arg_location): Use gdb_assert_not_reached instead of
11727 error.
11728 (riscv_push_dummy_call): Likewise.
11729
984c7238
TT
117302018-03-12 Tom Tromey <tom@tromey.com>
11731
11732 * rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix):
11733 Use gdb::byte_vector.
11734 * arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector.
11735
933522d1
YQ
117362018-03-12 Yao Qi <yao.qi@linaro.org>
11737
11738 * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change
11739 parameter type to readable_regcache.
11740 * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update
11741 the declaration.
11742
be2daae6
TT
117432018-03-11 Tom Tromey <tom@tromey.com>
11744
11745 * dwarf2read.c (struct nextfield): Add initializers.
11746 (struct nextfnfield): Remove.
11747 (struct fnfieldlist): Add initializers. Remove "length" and
11748 "head", use std::vector.
11749 (struct decl_field_list): Remove.
11750 (struct field_info): Add initializers.
11751 <fields, baseclasses>: Now std::vector.
11752 <nbaseclasses, nfnfields, typedef_field_list_count,
11753 nested_types_list_count>: Remove.
11754 (dwarf2_add_field, dwarf2_add_type_defn)
11755 (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
11756 (dwarf2_attach_fn_fields_to_type, handle_struct_member_die)
11757 (process_structure_scope): Update.
11758
484cf504
TT
117592018-03-11 Tom Tromey <tom@tromey.com>
11760
11761 * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable
11762 for use by std::sort.
11763 (build_type_psymtabs_1): Use std::vector.
11764
9bd8e0b0
EZ
117652018-03-09 Eli Zaretskii <eliz@gnu.org>
11766
11767 * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK,
11768 and LIBMPFR in the printed configuration.
11769
5dc1a704
TT
117702018-03-08 Tom Tromey <tom@tromey.com>
11771
11772 * source.c (get_filename_and_charpos): Use scoped_fd.
11773 * nto-procfs.c (procfs_open_1): Use scoped_fd.
11774 (procfs_pidlist): Likewise.
11775 * procfs.c (proc_get_LDT_entry): Use scoped_fd.
11776 (iterate_over_mappings): Likewise.
11777
fdf07f3a
TT
117782018-03-08 Tom Tromey <tom@tromey.com>
11779
11780 * infcall.c (struct call_return_meta_info)
11781 <stack_temporaries_enabled>: Remove.
11782 (get_call_return_value, call_function_by_hand_dummy): Update.
11783 * thread.c (disable_thread_stack_temporaries): Remove.
11784 (enable_thread_stack_temporaries): Remove.
11785 (thread_stack_temporaries_enabled_p): Return bool.
11786 (push_thread_stack_temporary, value_in_thread_stack_temporaries)
11787 (get_last_thread_stack_temporary): Update.
11788 * eval.c (evaluate_subexp): Update.
11789 * gdbthread.h (class enable_thread_stack_temporaries): Now a
11790 class, not a function.
11791 (value_ptr, value_vec): Remove typedefs.
11792 (class thread_info) <stack_temporaries_enabled>: Now bool.
11793 <stack_temporaries>: Now a std::vector.
11794 (thread_stack_temporaries_enabled_p)
11795 (value_in_thread_stack_temporaries): Return bool.
11796
567a3e54
SM
117972018-03-08 Simon Marchi <simon.marchi@ericsson.com>
11798
11799 * remote.c (putpkt_binary): Fix omitted bytes reporting.
11800 (getpkt_or_notif_sane_1): Likewise.
11801
00b40057
SM
118022018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
11803
11804 * build-id.c (build_id_to_debug_bfd): Use std::string.
11805
a8dbfd58
SM
118062018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
11807
11808 * build-id.c (find_separate_debug_file_by_buildid): Return
11809 std::string.
11810 * build-id.h (find_separate_debug_file_by_buildid): Return
11811 std::string.
11812 * coffread.c (coff_symfile_read): Adjust to std::string.
11813 * elfread.c (elf_symfile_read): Adjust to std::string.
11814 * symfile.c (separate_debug_file_exists): Change parameter to
11815 std::string.
11816 (find_separate_debug_file): Return std::string.
11817 (find_separate_debug_file_by_debuglink): Return std::string.
11818 * symfile.h (find_separate_debug_file_by_debuglink): Return
11819 std::string.
11820
e6a58aa8
SM
118212018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
11822
11823 * common/xml-utils.c (xml_escape_text): Move code to...
11824 (xml_escape_text_append): ... this new function.
11825 * common/xml-utils.h (xml_escape_text_append): New declaration.
11826 * unittests/xml-utils-selftests.c (test_xml_escape_text_append):
11827 New function.
11828 (_initialize_xml_utils): register test_xml_escape_text_append as
11829 a selftest.
11830
4ef0bef6
AH
118312018-03-07 Alan Hayward <alan.hayward@arm.com>
11832
11833 * defs.h: Remove MAX_REGISTER_SIZE.
11834 * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE
11835 asserts.
11836 * python/py-unwind.c (pyuw_sniffer): Likewise.
11837
e0d3522b
TT
118382018-03-07 Tom Tromey <tom@tromey.com>
11839
11840 * linux-tdep.c (linux_info_proc): Update.
11841 * target.h (struct target_ops) <to_fileio_readlink>: Return
11842 optional<string>.
11843 (target_fileio_readlink): Return optional<string>.
11844 * remote.c (remote_hostio_readlink): Return optional<string>.
11845 * inf-child.c (inf_child_fileio_readlink): Return
11846 optional<string>.
11847 * target.c (target_fileio_readlink): Return optional<string>.
11848
ea005f31
AB
118492018-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
11850
11851 * regcache.c (cooked_read_test): Add riscv to the list of
11852 architectures that have a save_reggroup.
11853
e95a97d4
AA
118542018-03-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
11855
11856 * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given
11857 value is not a dynamic class object.
11858
d8344f3d
TT
118592018-03-06 Tom Tromey <tom@tromey.com>
11860
11861 * rust-exp.y: Formatting fixes.
11862
9add17f2
AB
118632018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11864
11865 * riscv-tdep.c (riscv_register_name): Remove target description
11866 support.
11867 (riscv_gdbarch_init): Remove target description check.
11868
c9486dfe
AB
118692018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11870
11871 * riscv-tdep.c: Remove 'Contributed by ...' lines from header
11872 comment.
11873 * riscv-tdep.h: Likewise.
11874
d74aff3d
AB
118752018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11876
11877 * riscv-tdep.c (riscv_pseudo_register_read): Delete.
11878 (riscv_pseudo_register_write): Delete.
11879 (riscv_gdbarch_init): Remove all use of pseudo registers.
11880
7ea78b59
SM
118812018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11882
11883 * record-btrace.c (btrace_print_lines): Replace cleanup
11884 parameter with RAII equivalents.
11885 (btrace_insn_history): Replace cleanup with RAII equivalents.
11886 * ui-out.h (make_cleanup_ui_out_list_begin_end,
11887 make_cleanup_ui_out_tuple_begin_end): Remove.
11888 * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end,
11889 make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end,
11890 make_cleanup_ui_out_list_begin_end): Remove.
11891
53127008
SM
118922018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11893
11894 * record-btrace.c (record_btrace_maybe_mark_async_event): Change
11895 parameter types to std::vector. Use bool.
11896 (record_btrace_wait): Replace VEC(tp_t) with
11897 std::vector<thread_info *>.
11898 * common/gdb_vecs.h (unordered_remove, ordered_remove): New.
11899
228f1508
SM
119002018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11901
11902 * record-btrace.c (record_btrace_disable_callback): Remove.
11903 (struct scoped_btrace_disable): New.
11904 (record_btrace_open): Use scoped_btrace_disable.
11905
b2970c23
AB
119062018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11907
11908 * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for
11909 reading values from registers.
11910
fb294655
AB
119112018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11912
11913 * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz
11914 where appropriate.
11915
cab5bb9d
AB
119162018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11917
11918 * riscv-tdep.c (riscv_print_arg_location): Add header comment,
11919 change parameter type. Use GDB's print functions, and use
11920 core_addr_to_string where appropriate.
11921 (riscv_push_dummy_call): Use core_addr_to_string where
11922 appropriate, update call to riscv_print_arg_location, and reindent
11923 a few lines.
11924 (riscv_return_value): Update call to riscv_print_arg_location.
11925
dbbb1059
AB
119262018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11927 Tim Newsome <tim@sifive.com>
11928 Albert Ou <a0u@eecs.berkeley.edu>
11929 Darius Rad <darius@bluespec.com>
11930
11931 * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o
11932 (HFILES_NO_SRCDIR): Add riscv-tdep.h.
11933 (ALLDEPFILES): Add riscv-tdep.c
11934 * configure.tgt: Add riscv support.
11935 * riscv-tdep.c: New file.
11936 * riscv-tdep.h: New file.
11937 * NEWS: Mention new target.
11938 * MAINTAINERS: Add entry for riscv.
11939
5dc43913
AB
119402018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11941
11942 * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized
11943 fields within aggregates.
11944
3dea1ef7
SM
119452018-03-04 Simon Marchi <simon.marchi@polymtl.ca>
11946
11947 * record-btrace.c (btrace_print_lines): Change type of flags to
11948 gdb_disassembly_flags.
11949
7efba073
JB
119502018-03-04 John Baldwin <jhb@FreeBSD.org>
11951
11952 * fbsd-nat.c: Include "inf-ptrace.h".
11953 (USE_SIGTRAP_SIGINFO): Conditionally define.
11954 [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function.
11955 (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap".
11956 [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New
11957 function.
11958 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint):
11959 Likewise.
11960 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint):
11961 Likewise.
11962 (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set
11963 "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint",
11964 "supports_stopped_by_hw_breakpoint" target methods.
11965
386a8676
JB
119662018-03-04 John Baldwin <jhb@FreeBSD.org>
11967
11968 * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat".
11969 * fbsd-nat.c (debug_fbsd_nat): New variable.
11970 (show_fbsd_nat_debug): New function.
11971 (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled.
11972 (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command.
11973
12279366
JB
119742018-03-04 John Baldwin <jhb@FreeBSD.org>
11975
11976 * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function.
11977 * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New
11978 prototype.
11979 * x86-nat.c (x86_stopped_by_hw_breakpoint): New function.
11980 (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target
11981 method.
11982
54693cf5
SM
119832018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11984
11985 * common/gdb_vecs.c (free_char_ptr_vec): Remove.
11986 * common/gdb_vecs.h (free_char_ptr_vec): Remove.
11987
ccb2231c
SM
119882018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11989
11990 * charset.c (struct charset_vector): New.
11991 (charsets): Change type to charset_vector.
11992 (find_charset_names): Adjust.
11993 (add_one): Adjust.
11994 (_initialize_charset): Adjust.
11995
6fb16ce6
SM
119962018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11997
11998 * progspace.h (struct program_space) <deleted_solibs>: Change
11999 type to std::vector<std::string>.
12000 * progspace.c (clear_program_space_solib_cache): Adjust.
12001 * breakpoint.c (print_solib_event): Adjust.
12002 (check_status_catch_solib): Adjust.
12003 * solib.c (update_solib_list): Adjust.
12004 * ui-out.h (class ui_out) <field_string>: New overload.
12005 * ui-out.c (ui_out::field_string): New overload.
12006
564b1e3f
SM
120072018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
12008
12009 * progspace.h (struct program_space): Add constructor and
12010 destructor, initialize fields.
12011 (add_program_space): Remove.
12012 * progspace.c (add_program_space): Rename to...
12013 (program_space::program_space): ... this.
12014 (release_program_space): Rename to...
12015 (program_space::~program_space): ... this.
12016 (delete_program_space): Use delete to delete program_space.
12017 (initialize_progspace): Use new to allocate program_space.
12018 * inferior.c (add_inferior_with_spaces): Likewise.
12019 (clone_inferior_command): Likewise.
12020 * infrun.c (follow_fork_inferior): Likewise.
12021 (handle_vfork_child_exec_or_exit): Likewise.
12022
e80aaf61
SM
120232018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
12024
12025 * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove.
12026 (delim_string_to_char_ptr_vec): Return std::vector of
12027 gdb::unique_xmalloc_ptr.
12028 (dirnames_to_char_ptr_vec_append): Take std::vector of
12029 gdb::unique_xmalloc_ptr.
12030 (dirnames_to_char_ptr_vec): Return std::vector of
12031 gdb::unique_xmalloc_ptr.
12032 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append):
12033 Take std::vector of gdb::unique_xmalloc_ptr, adjust the code.
12034 (delim_string_to_char_ptr_vec): Return an std::vector of
12035 gdb::unique_xmalloc_ptr, adjust the code.
12036 (dirnames_to_char_ptr_vec_append): Take an std::vector of
12037 gdb::unique_xmalloc_ptr, adjust the code.
12038 (dirnames_to_char_ptr_vec): Return an std::vector of
12039 gdb::unique_xmalloc_ptr, adjust the code.
12040 * auto-load.c (auto_load_safe_path_vec): Change type to
12041 std::vector of gdb::unique_xmalloc_ptr.
12042 (auto_load_expand_dir_vars): Return an std::vector of
12043 gdb::unique_xmalloc_ptr, adjust the code.
12044 (auto_load_safe_path_vec_update): Adjust.
12045 (filename_is_in_auto_load_safe_path_vec): Adjust.
12046 (auto_load_objfile_script_1): Adjust.
12047 * build-id.c (build_id_to_debug_bfd): Adjust.
12048 * linux-thread-db.c (thread_db_load_search): Adjust.
12049 * source.c (add_path): Adjust.
12050 (openp): Adjust.
12051 * symfile.c (find_separate_debug_file): Adjust.
12052 * utils.c (do_free_char_ptr_vec): Remove.
12053 (make_cleanup_free_char_ptr_vec): Remove.
12054
ab818ade
SDJ
120552018-03-01 Sergio Durigan Junior <sergiodj@redhat.com>
12056
12057 PR gdb/22907
12058 * common/pathstuff.c: Conditionally include "<windows.h>".
12059
e1e6f073
GS
120602018-03-01 Georg Sauthoff <mail@georg.so>
12061
12062 PR gdb/22888
12063 * gcore.in: Quote variables and switch interpreter to bash.
12064
c7b15a66
TT
120652018-03-01 Tom Tromey <tom@tromey.com>
12066
12067 * dwarf2read.c (alloc_discriminant_info): Fix default_index
12068 assertion. Add assertion for discriminant_index.
12069 (quirk_rust_enum): Use correct base type name in univariant case.
12070
0cb7c7b0
SM
120712018-03-01 Simon Marchi <simon.marchi@ericsson.com>
12072
12073 * record.c (get_call_history_modifiers): Return a
12074 record_print_flags.
12075 (cmd_record_call_history): Adjust.
12076 * record-btrace.c (record_btrace_call_history): Adjust.
12077 (record_btrace_call_history_range): Adjust.
12078 (record_btrace_call_history_from): Adjust.
12079 * target-debug.h (target_debug_print_record_print_flags): New.
12080 * target-delegates.c: Re-generate.
12081 * target.c (target_call_history): Change flags type.
12082 (target_call_history_from): Likewise.
12083 (target_call_history_range): Likewise.
12084 * target.h (struct target_ops) <target_call_history>: Likewise.
12085 (target_call_history_from): Likewise.
12086 (target_call_history_range): Likewise.
12087
25e3c82c
SDJ
120882018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
12089 Simon Marchi <simon.marchi@polymtl.ca>
12090
12091 * common/common-utils.c: Include "sys/stat.h".
12092 (is_regular_file): Move here from "source.c"; change return
12093 type to "bool".
12094 * common/common-utils.h (is_regular_file): New prototype.
12095 * common/pathstuff.c (contains_dir_separator): New function.
12096 * common/pathstuff.h (contains_dir_separator): New prototype.
12097 * source.c: Don't include "sys/stat.h".
12098 (is_regular_file): Move to "common/common-utils.c".
12099
b4987c95
SDJ
121002018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
12101
12102 * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c".
12103 (HFILES_NO_SRCDIR): Add "common/pathstuff.h".
12104 * auto-load.c: Include "common/pathstuff.h".
12105 * common/common-def.h (current_directory): Move here.
12106 * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New
12107 function.
12108 * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New
12109 prototype.
12110 * common/pathstuff.c: New file.
12111 * common/pathstuff.h: New file.
12112 * compile/compile.c: Include "common/pathstuff.h".
12113 * defs.h (current_directory): Move to "common/common-defs.h".
12114 * dwarf2read.c: Include "common/pathstuff.h".
12115 * exec.c: Likewise.
12116 * guile/scm-safe-call.c: Likewise.
12117 * linux-thread-db.c: Likewise.
12118 * main.c: Likewise.
12119 * nto-tdep.c: Likewise.
12120 * objfiles.c: Likewise.
12121 * source.c: Likewise.
12122 * symtab.c: Likewise.
12123 * utils.c: Include "common/pathstuff.h".
12124 (gdb_realpath): Move to "common/pathstuff.c".
12125 (gdb_realpath_keepfile): Likewise.
12126 (gdb_abspath): Likewise.
12127 * utils.h (gdb_realpath): Move to "common/pathstuff.h".
12128 (gdb_realpath_keepfile): Likewise.
12129 (gdb_abspath): Likewise.
12130
f169cfdc
JB
121312018-02-28 John Baldwin <jhb@FreeBSD.org>
12132
12133 * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a
12134 wildcard process pid for super_resume for kernels with a
12135 specific bug.
12136
e05cac70
PM
121372018-02-27 Phil Muldoon <pmuldoon@redhat.com>
12138
12139 * compile/compile.c (get_args): Add additional comments
12140 explaining function.
12141
55089490
TT
121422018-02-27 Simon Marchi <simon.marchi@polymtl.ca>
12143 Tom Tromey <tom@tromey.com>
12144
12145 * target.h (memory_write_request_s): Remove typedef. Don't define
12146 VEC.
12147 (target_write_memory_blocks): Change argument to std::vector.
12148 (struct memory_write_request): Add constructor.
12149 * target-memory.c (compare_block_starting_address): Return bool.
12150 Change argument types.
12151 (claim_memory): Change arguments to use std::vector.
12152 (split_regular_and_flash_blocks, blocks_to_erase)
12153 (compute_garbled_blocks): Likewise.
12154 (cleanup_request_data, cleanup_write_requests_vector): Remove.
12155 (target_write_memory_blocks): Change argument to std::vector.
12156 * symfile.c (struct load_section_data): Add constructor and
12157 destructor. Use std::vector for "requests".
12158 (struct load_progress_data): Add initializers.
12159 (load_section_callback): Update. Use "new".
12160 (clear_memory_write_data): Remove.
12161 (generic_load): Update.
12162
0c305b61
AH
121632018-02-27 Alan Hayward <alan.hayward@arm.com>
12164
12165 * arch/aarch64.h: Use common/tdesc.h.
12166
c5196c92
MR
121672018-02-26 Maciej W. Rozycki <macro@mips.com>
12168
12169 * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD
12170 architecture with a 64-bit ABI.
12171
37c33887
MR
121722018-02-26 Maciej W. Rozycki <macro@mips.com>
12173
12174 * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination
12175 ahead of target description loading.
12176
d4dd3282
TT
121772018-02-26 Tom Tromey <tom@tromey.com>
12178
12179 * stack.c (backtrace_command_1): Update.
12180 * python/python-internal.h (gdbpy_apply_frame_filter): Change type
12181 of "flags".
12182 * python/py-framefilter.c (py_print_frame)
12183 (gdbpy_apply_frame_filter): Change type of "flags".
12184 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type
12185 of "flags".
12186 (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals)
12187 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update.
12188 * extension.h (enum frame_filter_flag): Rename from
12189 frame_filter_flags.
12190 (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE.
12191 (apply_ext_lang_frame_filter): Change type of "flags".
12192 * extension.c (apply_ext_lang_frame_filter): Change type of
12193 "flags".
12194 * extension-priv.h (struct extension_language_ops)
12195 <apply_frame_filter>: Change type of "flags".
12196
6893c19a
TT
121972018-02-26 Tom Tromey <tom@tromey.com>
12198
12199 PR python/16497:
12200 * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag. Fix
12201 off-by-one in py_end computation.
12202 * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle
12203 PRINT_MORE_FRAMES.
12204 * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New
12205 constant.
12206
2ddeaf8a
TT
122072018-02-26 Tom Tromey <tom@tromey.com>
12208
12209 * dwarf2read.c (struct variant_field): New.
12210 (struct nextfield) <variant>: New field.
12211 (dwarf2_add_field): Handle DW_TAG_variant_part.
12212 (dwarf2_attach_fields_to_type): Attach a discriminant_info to a
12213 discriminated union.
12214 (read_structure_type): Handle DW_TAG_variant_part.
12215 (handle_struct_member_die): New function, extracted from
12216 process_structure_scope. Handle DW_TAG_variant.
12217 (process_structure_scope): Handle discriminated unions. Call
12218 handle_struct_member_die.
12219
c9317f21
TT
122202018-02-26 Tom Tromey <tom@tromey.com>
12221
12222 * rust-lang.h (rust_last_path_segment): Declare.
12223 * rust-lang.c (rust_last_path_segment): Now public. Change
12224 contract.
12225 (struct disr_info): Remove.
12226 (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL)
12227 (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged)
12228 (rust_get_disr_info, rust_tuple_variant_type_p): Remove.
12229 (rust_enum_p, rust_enum_variant): New function.
12230 (rust_underscore_fields): Remove "offset" parameter.
12231 (rust_print_enum): New function.
12232 (rust_val_print) <TYPE_CODE_UNION>: Remove enum code.
12233 <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate.
12234 (rust_print_struct_def): Add "for_rust_enum" parameter. Handle
12235 enums.
12236 (rust_internal_print_type): New function, from rust_print_type.
12237 Remove enum code.
12238 (rust_print_type): Call rust_internal_print_type.
12239 (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>:
12240 Update enum handling.
12241 * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field.
12242 (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum)
12243 (rust_union_quirks): New functions.
12244 (process_full_comp_unit, process_full_type_unit): Call
12245 rust_union_quirks.
12246 (process_structure_scope): Update rust_unions if necessary.
12247
7c22600a
TT
122482018-02-26 Tom Tromey <tom@tromey.com>
12249
12250 * value.h (value_union_variant): Declare.
12251 * valops.c (value_union_variant): New function.
12252 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro.
12253 (struct discriminant_info): New.
12254 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New
12255 enumerator.
12256 (struct main_type) <flag_discriminated_union>: New field.
12257
15ce8941
TT
122582018-02-26 Tom Tromey <tom@tromey.com>
12259
12260 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12261 unittests/unpack-selftests.c.
12262 * unittests/unpack-selftests.c: New file.
12263 * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases.
12264
48fbe735
YQ
122652018-02-26 Yao Qi <yao.qi@linaro.org>
12266
12267 * dwarf2read.c (struct partial_die_info) <read>: New method.
12268 (read_partial_die): Remove the declaration.
12269 (load_partial_dies): Update.
12270 (partial_die_info::partial_die_info):
12271 (read_partial_die): Change it to partial_die_info::read.
12272
52356b79
YQ
122732018-02-26 Yao Qi <yao.qi@linaro.org>
12274
12275 * dwarf2read.c (struct partial_die_info) <fixup>: New method.
12276 (fixup_partial_die): Remove declaration.
12277 (scan_partial_symbols): Update.
12278 (partial_die_parent_scope): Likewise.
12279 (partial_die_full_name): Likewise.
12280 (fixup_partial_die): Change it to partial_die_info::fixup.
12281
35cc7ed7
YQ
122822018-02-26 Yao Qi <yao.qi@linaro.org>
12283
12284 * dwarf2read.c (read_partial_die): Update the declaration.
12285 (load_partial_dies): Caller update.
12286 (read_partial_die): Remove one argument abbrev_len.
12287
6f06d47b
YQ
122882018-02-26 Yao Qi <yao.qi@linaro.org>
12289
12290 * dwarf2read.c (struct partial_die_info): Add ctor, delete
12291 assignment operator.
12292 (load_partial_dies): Use ctor and copy ctor.
12293 (read_partial_die): Update.
12294 (dwarf2_cu::find_partial_die): Use ctor.
12295
d590ff25
YQ
122962018-02-26 Yao Qi <yao.qi@linaro.org>
12297
12298 * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method.
12299 (find_partial_die_in_comp_unit): Change it to
12300 dwarf2_cu::find_partial_die.
12301 (find_partial_die): Update.
12302
fd0a254f
YQ
123032018-02-26 Yao Qi <yao.qi@linaro.org>
12304
12305 * dwarf2read.c (read_partial_die): Remove the code checking abbrev
12306 is NULL.
12307
cd9983dd
YQ
123082018-02-26 Yao Qi <yao.qi@linaro.org>
12309
12310 * dwarf2read.c (load_partial_dies): Move the location of XOBNEW.
12311
f46cd62a
AH
123122018-02-26 Alan Hayward <alan.hayward@arm.com>
12313
12314 * arch/amd64.h: Use common/tdesc.h.
12315 * arch/i386.c: Likewise.
12316 * arch/i386.h: Likewise.
12317 * arch/tic6x.c: Likewise.
12318 * arch/tdesc.h: Move file from here...
12319 * common/tdesc.h: ...to here.
12320 * features/aarch64-core.c: Regenerate.
12321 * features/aarch64-fpu.c: Regenerate.
12322 * features/i386/32bit-avx.c: Regenerate.
12323 * features/i386/32bit-avx512.c: Regenerate.
12324 * features/i386/32bit-core.c: Regenerate.
12325 * features/i386/32bit-linux.c: Regenerate.
12326 * features/i386/32bit-mpx.c: Regenerate.
12327 * features/i386/32bit-pkeys.c: Regenerate.
12328 * features/i386/32bit-sse.c: Regenerate.
12329 * features/i386/64bit-avx.c: Regenerate.
12330 * features/i386/64bit-avx512.c: Regenerate.
12331 * features/i386/64bit-core.c: Regenerate.
12332 * features/i386/64bit-linux.c: Regenerate.
12333 * features/i386/64bit-mpx.c: Regenerate.
12334 * features/i386/64bit-pkeys.c: Regenerate.
12335 * features/i386/64bit-segments.c: Regenerate.
12336 * features/i386/64bit-sse.c: Regenerate.
12337 * features/i386/x32-core.c: Regenerate.
12338 * features/tic6x-c6xp.c: Regenerate.
12339 * features/tic6x-core.c: Regenerate.
12340 * features/tic6x-gp.c: Regenerate.
12341 * target-descriptions.c: Use common/tdesc.h.
12342 * target-descriptions.h: Likewise.
12343
9b292f68
TT
123442018-02-24 Tom Tromey <tom@tromey.com>
12345
12346 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
12347 (try_thread_db_load_from_dir, thread_db_load_search): Use
12348 std::string.
12349 (info_auto_load_libthread_db_compare): Return bool. Change
12350 argument types.
12351 (info_auto_load_libthread_db): Use std::vector, std::string.
12352 Remove cleanups.
12353
281d762b
TT
123542018-02-24 Tom Tromey <tom@tromey.com>
12355
12356 * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a
12357 std::string.
12358 * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a
12359 std::string*.
12360 * gdbarch.c: Rebuild.
12361 * gdbarch.h: Rebuild.
12362 * breakpoint.c (check_fast_tracepoint_sals): Use std::string.
12363 * arch-utils.h (default_fast_tracepoint_valid_at): Update.
12364 * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a
12365 std::string*.
12366
9d8780f0
SM
123672018-02-23 Simon Marchi <simon.marchi@polymtl.ca>
12368
12369 * gdbtypes.h (sect_offset): Change type to uint64_t.
12370 (sect_offset_str): New function.
12371 * dwarf2read.c (create_addrmap_from_aranges): Use
12372 sect_offset_str.
12373 (error_check_comp_unit_head): Likewise.
12374 (create_debug_type_hash_table): Likewise.
12375 (read_cutu_die_from_dwo): Likewise.
12376 (init_cutu_and_read_dies): Likewise.
12377 (init_cutu_and_read_dies_no_follow): Likewise.
12378 (process_psymtab_comp_unit_reader): Likewise.
12379 (partial_die_parent_scope): Likewise.
12380 (peek_die_abbrev): Likewise.
12381 (process_queue): Likewise.
12382 (dwarf2_physname): Likewise.
12383 (read_namespace_alias): Likewise.
12384 (read_import_statement): Likewise.
12385 (create_dwo_cu_reader): Likewise.
12386 (create_cus_hash_table): Likewise.
12387 (lookup_dwo_cutu): Likewise.
12388 (inherit_abstract_dies): Likewise.
12389 (read_func_scope): Likewise.
12390 (read_call_site_scope): Likewise.
12391 (dwarf2_add_member_fn): Likewise.
12392 (read_common_block): Likewise.
12393 (read_module_type): Likewise.
12394 (read_typedef): Likewise.
12395 (read_subrange_type): Likewise.
12396 (load_partial_dies): Likewise.
12397 (read_partial_die): Likewise.
12398 (find_partial_die): Likewise.
12399 (read_str_index): Likewise.
12400 (dwarf2_string_attr): Likewise.
12401 (build_error_marker_type): Likewise.
12402 (lookup_die_type): Likewise.
12403 (dump_die_shallow): Likewise.
12404 (follow_die_ref): Likewise.
12405 (dwarf2_fetch_die_loc_sect_off): Likewise.
12406 (dwarf2_fetch_constant_bytes): Likewise.
12407 (follow_die_sig): Likewise.
12408 (get_signatured_type): Likewise.
12409 (get_DW_AT_signature_type): Likewise.
12410 (dwarf2_find_containing_comp_unit): Likewise.
12411 (set_die_type): Likewise.
12412
8ec57239
JB
124132018-02-21 John Baldwin <jhb@FreeBSD.org>
12414
12415 * arch/aarch64.c: Include "common-defs.h".
12416 * arch/amd64.c: Likewise.
12417 * arch/i386.c: Likewise.
12418
3eac2b65
TT
124192018-02-21 Tom Tromey <tom@tromey.com>
12420
12421 * value.h: (extract_field_op): Update.
12422 * eval.c (extract_field_op): Return a const char *.
12423 * expression.h (parse_expression_for_completion): Update.
12424 * completer.c (complete_expression): Update.
12425 (add_struct_fields): Make fieldname const.
12426 * parse.c (expout_completion_name): Now a unique_xmalloc_ptr.
12427 (mark_completion_tag, parse_exp_in_context_1): Update.
12428 (parse_expression_for_completion): Change "name" to
12429 unique_xmalloc_ptr*.
12430
6ccb583f
TT
124312018-02-21 Tom Tromey <tom@tromey.com>
12432
12433 * infcall.c (call_function_by_hand_dummy): Use std::vector.
12434
c113ed0c
YQ
124352018-02-21 Yao Qi <yao.qi@linaro.org>
12436
12437 * avr-tdep.c (avr_read_pc): Change parameter type to
12438 readable_regcache.
12439 * gdbarch.sh (read_pc): Likewise.
12440 * gdbarch.c: Re-generated.
12441 * gdbarch.h: Re-generated.
12442 * hppa-tdep.c (hppa_read_pc): Change parameter type to
12443 readable_regcache.
12444 * ia64-tdep.c (ia64_read_pc): Likewise.
12445 * mips-tdep.c (mips_read_pc): Likewise.
12446 * spu-tdep.c (spu_read_pc): Likewise.
12447
4c74fe6b
YQ
124482018-02-21 Yao Qi <yao.qi@linaro.org>
12449
12450 * Makefile.in (COMMON_SFILES): Add regcache-dump.c
12451 * regcache-dump.c: New file.
12452 * regcache.c: Move register_dump to regcache-dump.c.
12453 (maintenance_print_registers): Likewise.
12454 (maintenance_print_raw_registers): Likewise.
12455 (maintenance_print_cooked_registers): Likewise.
12456 (maintenance_print_register_groups): Likewise.
12457 (maintenance_print_remote_registers): Likewise.
12458 (_initialize_regcache): Likewise.
12459 * regcache.h (register_dump): Moved from regcache.c.
12460
796bb026
YQ
124612018-02-21 Yao Qi <yao.qi@linaro.org>
12462
12463 * regcache.c (regcache::regcache): Update.
12464 (regcache::invalidate): Move it to detached_regcache::invalidate.
12465 (get_thread_arch_aspace_regcache): Update.
12466 (regcache::raw_update): Update.
12467 (regcache::cooked_read): Remove some code.
12468 (regcache::cooked_read_value): Likewise.
12469 (regcache::raw_write): Remove assert on m_readonly_p.
12470 (regcache::raw_supply_integer): Move it to
12471 detached_regcache::raw_supply_integer.
12472 (regcache::raw_supply_zeroed): Likewise.
12473 * regcache.h (detached_regcache) <raw_supply_integer>: New
12474 declaration.
12475 <raw_supply_zeroed, invalidate>: Likewise.
12476 (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed.
12477 <invalidate>: Likewise.
12478 <m_readonly_p>: Removed.
12479
215c69dc
YQ
124802018-02-21 Yao Qi <yao.qi@linaro.org>
12481
12482 * infcmd.c (get_return_value): Let stop_regs point to
12483 get_current_regcache.
12484 * regcache.c (regcache::regcache): Remove.
12485 (register_dump_reg_buffer): New class.
12486 (regcache_print): Adjust.
12487 * regcache.h (regcache): Remove constructors.
12488
f3384e66
YQ
124892018-02-21 Yao Qi <yao.qi@linaro.org>
12490
12491 * regcache.c (class register_dump): New class.
12492 (register_dump_regcache, register_dump_none): New class.
12493 (register_dump_remote, register_dump_groups): New class.
12494 (regcache_print): Update.
12495 * regcache.h (regcache_dump_what): Move it to regcache.c.
12496 (regcache) <dump>: Remove.
12497
c8ec2f33
YQ
124982018-02-21 Yao Qi <yao.qi@linaro.org>
12499
12500 * jit.c (struct jit_unwind_private) <regcache>: Change its type to
12501 reg_buffer_rw *.
12502 (jit_unwind_reg_set_impl): Call raw_supply.
12503 (jit_frame_sniffer): Use reg_buffer_rw.
12504 * record-full.c (record_full_core_regbuf): Change its type.
12505 (record_full_core_open_1): Use reg_buffer_rw.
12506 (record_full_close): Likewise.
12507 (record_full_core_fetch_registers): Use regcache->raw_supply.
12508 (record_full_core_store_registers): Likewise.
12509 * regcache.c (regcache::get_register_status): Move it to
12510 reg_buffer.
12511 (regcache_raw_set_cached_value): Remove.
12512 (regcache::raw_set_cached_value): Remove.
12513 (regcache::raw_write): Call raw_supply.
12514 (regcache::raw_supply): Move it to reg_buffer_rw.
12515 * regcache.h (regcache_raw_set_cached_value): Remove.
12516 (reg_buffer_rw): New class.
12517
daf6667d
YQ
125182018-02-21 Yao Qi <yao.qi@linaro.org>
12519
12520 * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use
12521 readonly_detached_regcache.
12522 (dummy_frame_prev_register): Use regcache->cooked_read.
12523 * frame.c (frame_save_as_regcache): Change return type.
12524 (frame_pop): Update.
12525 * frame.h (frame_save_as_regcache): Update declaration.
12526 * inferior.h (get_infcall_suspend_state_regcache): Update
12527 declaration.
12528 * infrun.c (infcall_suspend_state) <registers>: use
12529 readonly_detached_regcache.
12530 (save_infcall_suspend_state): Don't use regcache_dup.
12531 (get_infcall_suspend_state_regcache): Change return type.
12532 * linux-fork.c (struct fork_info) <savedregs>: Change to
12533 readonly_detached_regcache.
12534 <pc>: New field.
12535 (fork_save_infrun_state): Don't use regcache_dup.
12536 (info_checkpoints_command): Adjust.
12537 * mi/mi-main.c (register_changed_p): Update declaration.
12538 (mi_cmd_data_list_changed_registers): Use
12539 readonly_detached_regcache.
12540 (register_changed_p): Change parameter type to
12541 readonly_detached_regcache.
12542 * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use
12543 readonly_detached_regcache.
12544 (ppu2spu_sniffer): Construct a new readonly_detached_regcache.
12545 * regcache.c (readonly_detached_regcache::readonly_detached_regcache):
12546 New.
12547 (regcache::save): Move it to reg_buffer.
12548 (regcache::restore): Change parameter type.
12549 (regcache_dup): Remove.
12550 * regcache.h (reg_buffer) <save>: New method.
12551 (readonly_detached_regcache): New class.
12552 * spu-tdep.c (spu2ppu_cache) <regcache>: Use
12553 readonly_detached_regcache.
12554 (spu2ppu_sniffer): Construct a new readonly_detached_regcache.
12555
fc5b8736
YQ
125562018-02-21 Yao Qi <yao.qi@linaro.org>
12557
12558 * frame.c (frame_save_as_regcache): Use regcache method save.
12559 (frame_pop): Use regcache method restore.
12560 * infrun.c (restore_infcall_suspend_state): Likewise.
12561 * linux-fork.c (fork_load_infrun_state): Likewise.
12562 * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method
12563 save.
12564 * regcache.c (regcache_save): Remove.
12565 (regcache::restore): More asserts.
12566 (regcache_cpy): Remove.
12567 * regcache.h (regcache_save): Remove the declaration.
12568 (regcache::restore): Move from private to public.
12569 Remove the friend declaration of regcache_cpy.
12570 (regcache_cpy): Remove declaration.
12571
849d0ba8
YQ
125722018-02-21 Yao Qi <yao.qi@linaro.org>
12573
12574 * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change
12575 parameter type to 'readable_regcache *'.
12576 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
12577 * arm-tdep.c (arm_neon_quad_read): Likewise.
12578 (arm_pseudo_read): Likewise.
12579 * avr-tdep.c (avr_pseudo_register_read): Likewise.
12580 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
12581 * frv-tdep.c (frv_pseudo_register_read): Likewise.
12582 * gdbarch.c: Re-generated.
12583 * gdbarch.h: Re-generated.
12584 * gdbarch.sh (pseudo_register_read): Change parameter type to
12585 'readable_regcache *'.
12586 (pseudo_register_read_value): Likewise.
12587 * h8300-tdep.c (pseudo_from_raw_register): Likewise.
12588 (h8300_pseudo_register_read): Likewise.
12589 * hppa-tdep.c (hppa_pseudo_register_read): Likewise.
12590 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
12591 (i386_pseudo_register_read_into_value): Likewise.
12592 (i386_pseudo_register_read_value): Likewise.
12593 * i386-tdep.h (i386_pseudo_register_read_into_value): Update
12594 declaration.
12595 * ia64-tdep.c (ia64_pseudo_register_read): Likewise.
12596 * m32c-tdep.c (m32c_raw_read): Likewise.
12597 (m32c_read_flg): Likewise.
12598 (m32c_banked_register): Likewise.
12599 (m32c_banked_read): Likewise.
12600 (m32c_sb_read): Likewise.
12601 (m32c_part_read): Likewise.
12602 (m32c_cat_read): Likewise.
12603 (m32c_r3r2r1r0_read): Likewise.
12604 (m32c_pseudo_register_read): Likewise.
12605 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
12606 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
12607 (mep_pseudo_cr64_read): Likewise.
12608 (mep_pseudo_register_read): Likewise.
12609 * mips-tdep.c (mips_pseudo_register_read): Likewise.
12610 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
12611 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
12612 * regcache.c (regcache::raw_read): Move it to readable_regcache.
12613 (regcache::cooked_read): Likewise.
12614 (regcache::cooked_read_value): Likewise.
12615 (regcache_cooked_read_signed):
12616 (regcache::cooked_read): Likewise.
12617 * regcache.h (readable_regcache): New class.
12618 (regcache): Inherit readable_regcache. Move some methods to
12619 readable_regcache.
12620 * rl78-tdep.c (rl78_pseudo_register_read): Change
12621 parameter type to 'readable_regcache *'.
12622 * rs6000-tdep.c (do_regcache_raw_read): Remove.
12623 (e500_pseudo_register_read): Change parameter type to
12624 'readable_regcache *'.
12625 (dfp_pseudo_register_read): Likewise.
12626 (vsx_pseudo_register_read): Likewise.
12627 (efpr_pseudo_register_read): Likewise.
12628 * s390-tdep.c (s390_pseudo_register_read): Likewise.
12629 * sh-tdep.c (sh_pseudo_register_read): Likewise.
12630 * sh64-tdep.c (pseudo_register_read_portions): Likewise.
12631 (sh64_pseudo_register_read): Likewise.
12632 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
12633 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
12634 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
12635 (spu_pseudo_register_read): Likewise.
12636 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
12637 (xtensa_pseudo_register_read): Likewise.
12638
31716595
YQ
126392018-02-21 Yao Qi <yao.qi@linaro.org>
12640
12641 * regcache.c (regcache::regcache): Call reg_buffer ctor.
12642 (regcache::arch): Move it to reg_buffer::arch.
12643 (regcache::register_buffer): Likewise.
12644 (regcache::assert_regnum): Likewise.
12645 (regcache::num_raw_registers): Likewise.
12646 * regcache.h (reg_buffer): New class.
12647 (regcache): Inherit reg_buffer.
12648
7104e59b
SM
126492018-02-20 Simon Marchi <simon.marchi@ericsson.com>
12650
12651 * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
12652 gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF.
12653
2d8adcbd
MM
126542018-02-20 Markus Metzger <markus.t.metzger@intel.com>
12655
12656 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp.
12657
b5884fa7
AH
126582018-02-19 Alan Hayward <alan.hayward@arm.com>
12659
12660 * Makefile.in: (COMMON_SFILES): Add common/*.c files.
12661 (SFILES): Remove common/*.c files.
12662 (COMMON_OBS): Remove some *.o files built from common/*.c files.
12663 * common/common.host: Add common reference.
12664 * configure.ac: Likewise.
12665 * configure: Regenerate.
12666
fd90ace4
YQ
126672018-02-16 Yao Qi <yao.qi@linaro.org>
12668
12669 * block.c (block_namespace_info): Inherit allocate_on_obstack.
12670 (block_initialize_namespace): Use new.
12671 * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack.
12672 (dwarf2_free_objfile): Use delete.
12673 * gdbtypes.c (type_pair): Inherit allocate_on_obstack.
12674 (copy_type_recursive): Use new.
12675 * gdb_obstack.h (allocate_on_obstack): New.
12676
85046ae2
YQ
126772018-02-15 Yao Qi <yao.qi@linaro.org>
12678
12679 PR gdb/22849
12680 * inferior.c (exit_inferior_1): Reset inf->control.
12681
355c559b
JB
126822018-02-15 Joel Brobecker <brobecker@adacore.com>
12683
12684 * ada-lang.c (ada_to_fixed_value_create): Delete advance
12685 declaration.
12686
980548fd
PA
126872018-02-14 Pedro Alves <palves@redhat.com>
12688
12689 * frame-unwind.c (frame_unwind_try_unwinder): Always call
12690 frame_cleanup_after_sniffer on exception.
12691
692d6f97
TT
126922018-02-14 Tom Tromey <tom@tromey.com>
12693
12694 * solist.h (struct target_so_ops) <bfd_open>: Make pathname
12695 const.
12696 (solib_bfd_open): Make pathname const.
12697 * solib.c (solib_bfd_open): Make pathname const.
12698 * solib-spu.c (spu_bfd_fopen): Make name const.
12699 (spu_bfd_open): Make pathname const.
12700 * solib-darwin.c (darwin_bfd_open): Make pathname const.
12701 * solib-aix.c (solib_aix_bfd_open): Make pathname const.
12702
e0cc99a6
TT
127032018-02-14 Tom Tromey <tom@tromey.com>
12704
12705 * symfile.c (symfile_bfd_open): Update.
12706 * source.h (openp, source_full_path_of, find_and_open_source):
12707 Change argument type to unique_xmalloc_ptr.
12708 * source.c (openp): Take a unique_xmalloc_ptr.
12709 (source_full_path_of, find_and_open_source): Likewise.
12710 (open_source_file, symtab_to_fullname): Update.
12711 * solist.h (struct target_so_ops) <find_and_open_solib>: Take a
12712 unique_xmalloc_ptr.
12713 * solib.c (solib_find_1): Use unique_xmalloc_ptr.
12714 (exec_file_find): Update.
12715 * psymtab.c (psymtab_to_fullname): Update.
12716 * nto-tdep.h (nto_find_and_open_solib): Update.
12717 * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a
12718 unique_xmalloc_ptr.
12719 * exec.c (exec_file_attach): Update.
12720 * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr.
12721 * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr.
12722
b46a8d7c
TT
127232018-02-14 Tom Tromey <tom@tromey.com>
12724
12725 * solib.c: Include source.h.
12726 * nto-tdep.c: Include source.h.
12727 * mi/mi-cmd-env.c: Include source.h.
12728 * infcmd.c: Include source.h.
12729 * exec.c: Include source.h.
12730 * defs.h (enum openp_flag, openp, source_full_path_of, mod_path)
12731 (add_path, directory_switch, source_path, init_source_path): Move
12732 declarations...
12733 * source.h (enum openp_flag, openp, source_full_path_of, mod_path)
12734 (add_path, directory_switch, source_path, init_source_path):
12735 ...here.
12736
797bc1cb
TT
127372018-02-14 Tom Tromey <tom@tromey.com>
12738
12739 * solist.h (exec_file_find, solib_find): Return
12740 unique_xmalloc_ptr.
12741 (solib_bfd_fopen): Take a const char *.
12742 * solib.c (solib_find_1): Return unique_xmalloc_ptr.
12743 (exec_file_find, solib_find): Likewise.
12744 (solib_bfd_fopen): Do not take ownership of "pathname".
12745 (solib_bfd_open): Use unique_xmalloc_ptr.
12746 * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr.
12747 * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr.
12748 * infrun.c (follow_exec): Use unique_xmalloc_ptr.
12749 * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr.
12750
f98b2e33
JB
127512018-02-14 Joel Brobecker <brobecker@adacore.com>
12752
12753 * ada-lang.c (name_match_type_from_name): Remove reference to
12754 ada_name_for_lookup in function's documentation.
12755 * ada-lang.h (ada_name_for_lookup): Delete declaration.
12756
24b9144d
SM
127572018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
12758
12759 * defs.h (enum openp_flags): New enum.
12760 (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH):
12761 Move to enum openp_flags.
12762 (openp_flags): New enum flags.
12763 (openp): Change parameter type to openp_flags.
12764 * source.c (openp): Change parameter type to openp_flags.
12765 * cli/cli-cmds.c (find_and_open_script): Use openp_flags.
12766 * dwarf2read.c (try_open_dwop_file): Use openp_flags.
12767
387cd15b
SM
127682018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
12769
12770 * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show
12771 per-command.
12772
b303c6f6
AB
127732018-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
12774
12775 * dwarf2read.c (dwarf2_release_queue): Delete function, move body
12776 into...
12777 (class dwarf2_queue_guard): ...the destructor of this new class.
12778 (dw2_do_instantiate_symtab): Create instance of the new class
12779 dwarf2_queue_guard, remove cleanup.
12780
9c3630e9
TT
127812018-02-09 Tom Tromey <tom@tromey.com>
12782
12783 * source.c (find_source_lines): Don't reference past the end of
12784 the vector.
12785
c4e12631
MM
127862018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12787
12788 * remote.c (remote_btrace_maybe_reopen): Change error message.
12789 * btrace.c (btrace_enable): Likewise.
12790 (parse_xml_btrace): Likewise.
12791 (parse_xml_btrace_conf): Likewise.
12792
88711fbf
MM
127932018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12794
12795 * nat/linux-btrace.c (diagnose_perf_event_open_fail): New.
12796 (linux_enable_pt, linux_enable_bts): Call
12797 diagnose_perf_event_open_fail.
12798
17ad2a4f
MM
127992018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12800
12801 * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message.
12802 Remove parameter and change return type. Update callers. Move it.
12803 (linux_enable_bts, linux_enable_pt): Improve error message.
12804 (linux_enable_pt): Remove zero buffer size check.
12805 (linux_enable_btrace): Improve error messages. Remove NULL return
12806 check.
12807
de6242d3
MM
128082018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12809
12810 * btrace.c (btrace_enable): Remove target_supports_btrace call.
12811 * nat/linux-btrace.c (perf_event_pt_event_type): Move.
12812 (kernel_supports_bts, kernel_supports_pt, linux_supports_bts)
12813 (linux_supports_pt, linux_supports_btrace): Remove.
12814 (linux_enable_bts): Call cpu_supports_bts.
12815 * nat/linux-btrace.h (linux_supports_btrace): Remove.
12816 * remote.c (remote_supports_btrace): Remove.
12817 (init_remote_ops): Remove remote_supports_btrace.
12818 * target-delegates.c: Regenerated.
12819 * target.c (target_supports_btrace): Remove.
12820 * target.h (target_ops) <to_supports_btrace>: Remove
12821 (target_supports_btrace): Remove.
12822 * x86-linux-nat.c (x86_linux_create_target): Remove
12823 linux_supports_btrace.
12824
9ee23a85
MM
128252018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12826
12827 * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling
12828 btrace failed.
12829 * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling
12830 exception and use message in own exception.
12831
5c3284c1
MM
128322018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12833
12834 * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h.
12835 (perf_event_pt_event_type): Use gdb_file_up.
12836 (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr,
12837 scoped_fd, and scoped_mmap.
12838
84696f37
MM
128392018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12840
12841 * common/scoped_mmap.h: New.
12842 * unittests/scoped_mmap-selftest.c: New.
12843 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12844 unittests/scoped_mmap-selftest.c.
12845
ea4a0888
MM
128462018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12847
12848 * common/scoped_fd.h: New.
12849 * unittests/scoped_fd-selftest.c: New.
12850 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12851 unittests/scoped_fd-selftest.c.
12852
869e8290
TT
128532018-02-09 Tom Tromey <tom@tromey.com>
12854
12855 * auto-load.c (auto_load_section_scripts): Use
12856 gdb::unique_xmalloc_ptr.
12857
a37a2ae7
TT
128582018-02-09 Tom Tromey <tom@tromey.com>
12859
12860 * auto-load.c (execute_script_contents): Use std::string.
12861
4e725347
JB
128622018-02-09 Joel Brobecker <brobecker@adacore.com>
12863
12864 * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new
12865 Python function, rather than a new command.
12866
9a897d43
TT
128672018-02-08 Tom Tromey <tom@tromey.com>
12868
12869 * solib.c (solib_find_1): Use std::string.
12870 (solib_bfd_fopen): Use unique_xmalloc_ptr.
12871
58ef3771
TT
128722018-02-08 Tom Tromey <tom@tromey.com>
12873
12874 * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr.
12875
a9abc434
TT
128762018-02-08 Tom Tromey <tom@tromey.com>
12877
12878 * source.c (find_source_lines): Use gdb::def_vector.
12879
84f27c6f
TT
128802018-02-08 Tom Tromey <tom@tromey.com>
12881
12882 * macrocmd.c (struct temporary_macro_definition): New.
12883 (macro_define_command): Use temporary_macro_definition. Remove
12884 cleanups.
12885 (free_macro_definition_ptr): Remove.
12886
0354904b
TT
128872018-02-08 Tom Tromey <tom@tromey.com>
12888
12889 * macroexp.c (maybe_expand): Use std::string.
12890
1739cf24
TT
128912018-02-08 Tom Tromey <tom@tromey.com>
12892
12893 * macroexp.c (struct macro_buffer): Add initializers for some
12894 members.
12895 (init_buffer, init_shared_buffer, free_buffer)
12896 (free_buffer_return_text): Remove.
12897 (macro_buffer): New constructors.
12898 (~macro_buffer): New destructor.
12899 (macro_buffer::set_shared): New method.
12900 (macro_buffer::resize_buffer, macro_buffer::appendc)
12901 (macro_buffer::appendmem): Now methods, not free functions.
12902 (set_token, append_tokens_without_splicing, stringify)
12903 (macro_stringify): Update.
12904 (gather_arguments): Change return type. Remove argc_p argument,
12905 add args_ptr argument. Use std::vector.
12906 (substitute_args): Remove argc argument. Accept std::vector.
12907 (expand): Update. Use std::vector.
12908 (scan, macro_expand, macro_expand_next): Update.
12909
f6c2623e
TT
129102018-02-08 Tom Tromey <tom@tromey.com>
12911
12912 * symtab.c (default_collect_symbol_completion_matches_break_on):
12913 Use unique_xmalloc_ptr.
12914 * macroscope.h: (sal_macro_scope, user_macro_scope)
12915 (default_macro_scope): Return unique_xmalloc_ptr.
12916 * macroscope.c (sal_macro_scope, user_macro_scope)
12917 (default_macro_scope): Return unique_xmalloc_ptr.
12918 * macroexp.h (macro_expand, macro_expand_once): Return
12919 unique_xmalloc_ptr.
12920 * macroexp.c (macro_expand, macro_expand_once): Return
12921 unique_xmalloc_ptr.
12922 * macrocmd.c (macro_expand_command, macro_expand_once_command)
12923 (info_macro_command, info_macros_command): Use
12924 unique_xmalloc_ptr.
12925 * compile/compile-c-support.c (write_macro_definitions): Use
12926 unique_xmalloc_ptr.
12927 * c-exp.y (c_parse): Use unique_xmalloc_ptr.
12928
c2e0e465
SM
129292018-02-07 Simon Marchi <simon.marchi@ericsson.com>
12930
12931 * value.c (value_static_field): Assign field type instead of
12932 containing type when returning an optimized out value.
12933
3f8c94b4
YQ
129342018-02-06 Yao Qi <yao.qi@linaro.org>
12935
12936 * ft32-tdep.c (ft32_read_pc): Remove.
12937 (ft32_write_pc): Remove.
12938 (ft32_gdbarch_init): Update.
12939 * m32r-tdep.c (m32r_read_pc): Remove.
12940 (m32r_gdbarch_init): Update.
12941 * mep-tdep.c (mep_read_pc): Remove.
12942 (mep_gdbarch_init): Update.
12943 * microblaze-tdep.c (microblaze_write_pc): Remove.
12944 (microblaze_gdbarch_init): Update.
12945 * mn10300-tdep.c (mn10300_read_pc): Remove.
12946 (mn10300_write_pc): Remove.
12947 (mn10300_gdbarch_init): Update.
12948 * moxie-tdep.c (moxie_read_pc): Remove.
12949 (moxie_write_pc): Remove.
12950 (moxie_gdbarch_init): Update.
12951
bca65a23
YQ
129522018-02-06 Yao Qi <yao.qi@linaro.org>
12953
12954 * expprint.c (print_subexp_standard): Handle
12955 OP_F77_UNDETERMINED_ARGLIST.
12956 (dump_subexp_body_standard): Likewise.
12957
583e3f90 129582018-02-05 Alan Hayward <alan.hayward@arm.com>
b8df6ca7 12959
583e3f90
YQ
12960 * target-descriptions.c (tdesc_element_visitor) Add empty
12961 implementations.
b8df6ca7
AH
12962 (tdesc_type): Move make_gdb_type from here.
12963 (tdesc_type_builtin): Likewise.
12964 (tdesc_type_vector): Likewise.
12965 (tdesc_type_with_fields): Move make_gdb_type_ functions from here.
12966 (make_gdb_type_struct): Move from tdesc_type_with_fields.
12967 (make_gdb_type_union): Likewise.
12968 (make_gdb_type_flags): Likewise.
12969 (make_gdb_type_enum): Likewise.
12970 (make_gdb_type): New function.
12971 (tdesc_register_type): Use static make_gdb_type.
12972
e813d34a
RK
129732018-02-05 Ruslan Kabatsayev <b7.10110111@gmail.com>
12974
12975 * infcmd.c (default_print_one_register_info): Align natural-format
12976 column values consistently one under another.
12977 (pad_to_column): New function.
12978
0eb876f5
JB
129792018-02-05 Joel Brobecker <brobecker@adacore.com>
12980
12981 * dwarf2read.c (dwarf2_physname): Move commment.
12982
0625771b
LS
129832018-02-01 Leszek Swirski <leszeks@google.com>
12984
12985 * varobj.c (varobj_formatted_print_options): Allow recursive
12986 pretty printing if pretty printing is enabled.
12987
59498c30
LS
129882018-02-01 Leszek Swirski <leszeks@google.com>
12989
12990 * c-exp.y (lex_one_token, classify_name, yylex): Don't classify
12991 names after a structop as a filename.
12992
2d9e6acb
YQ
129932018-02-01 Yao Qi <yao.qi@linaro.org>
12994
12995 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it.
12996 (arm_record_coproc_data_proc): Likewise.
12997
df95a9cf
YQ
129982018-02-01 Yao Qi <yao.qi@linaro.org>
12999
13000 * arm-tdep.c (arm_record_extension_space): Change ret to signed.
13001
07e5f5cf
NP
130022018-01-31 Nikola Prica <nikola.prica@rt-rk.com>
13003
13004 * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and
13005 assign shifted lr_reg to fdata->lr_register when lr_reg is set.
13006
3045b475
PA
130072018-01-31 Pedro Alves <palves@redhat.com>
13008
13009 * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter.
13010 * inflow.c (child_terminal_save_inferior): Wrap reference to
13011 tcgetpgrp in HAVE_TERMIOS_H.
13012 (child_interrupt, child_pass_ctrlc): Wrap references to signal in
13013 _WIN32.
13014 * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and
13015 always iterate over all inferiors.
13016 (gdbsim_cntrl_c): Adjust.
13017 * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter.
13018
929b5ad4
JB
130192018-01-31 Joel Brobecker <brobecker@adacore.com>
13020
13021 * gdbtypes.c (lookup_array_range_type): Make sure the array's
13022 index type is objfile-owned if the element type is as well.
13023
29236ca2
JB
130242018-01-31 Joel Brobecker <brobecker@adacore.com>
13025
13026 GDB 8.1 released.
13027
c81e8879
PR
130282018-01-30 Philipp Rudo <prudo@linux.vnet.ibm.com>
13029
13030 * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and
13031 "features/s390x-linux64.c".
13032 (_initialize_s390_linux_tdep): Remove initialization of tdescs
13033 s390_linux32 and s390x_linux64.
13034 (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set
13035 default tdesc.
13036 * s390-tdep.c: Include "features/s390-linux32.c" and
13037 "features/s390x-linux64.c".
13038 (s390_tdesc_valid): Add check for tdesc_has_registers.
13039 (s390_gdbarch_init): Make sure there is always a valid tdesc.
13040 (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and
13041 tdesc_s390x_linux64.
13042 * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and
13043 tdesc_s390x_linux64 to...
13044 * s390-tdep.h: ...here.
13045
e671cd59
PA
130462018-01-30 Pedro Alves <palves@redhat.com>
13047
13048 PR gdb/13211
13049 * config.in, configure: Regenerate.
13050 * configure.ac: Check for getpgid.
13051 * go32-nat.c (go32_pass_ctrlc): New.
13052 (go32_target): Install it.
13053 * inf-child.c (inf_child_target): Install
13054 child_terminal_save_inferior, child_pass_ctrlc and
13055 child_interrupt.
13056 * inf-ptrace.c (inf_ptrace_interrupt): Delete.
13057 (inf_ptrace_target): No longer install it.
13058 * infcmd.c (interrupt_target_1): Adjust.
13059 * inferior.h (child_terminal_save_inferior, child_pass_ctrlc)
13060 (child_interrupt): Declare.
13061 (inferior::terminal_state): New.
13062 * inflow.c (struct terminal_info): Update comments.
13063 (inferior_process_group): Delete.
13064 (terminal_is_ours): Delete.
13065 (gdb_tty_state): New.
13066 (child_terminal_init): Adjust.
13067 (is_gdb_terminal, sharing_input_terminal_1)
13068 (sharing_input_terminal): New functions.
13069 (child_terminal_inferior): Adjust. Use sharing_input_terminal.
13070 Set the process's actual process group in the foreground if
13071 possible. Handle is_ours_for_output/is_ours distinction. Don't
13072 mark terminal as the inferior's if not sharing GDB's terminal.
13073 Don't check attach_flag.
13074 (child_terminal_ours_for_output, child_terminal_ours): Adjust to
13075 pass down a target_terminal_state.
13076 (child_terminal_save_inferior): New, factored out from ...
13077 (child_terminal_ours_1): ... this. Handle
13078 target_terminal_state::is_ours_for_output.
13079 (child_interrupt, child_pass_ctrlc): New.
13080 (inflow_inferior_exit): Clear the inferior's terminal_state.
13081 (copy_terminal_info): Copy the inferior's terminal state.
13082 (_initialize_inflow): Remove reference to terminal_is_ours.
13083 * inflow.h (inferior_process_group): Delete.
13084 * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust.
13085 * procfs.c (procfs_target): Don't install procfs_interrupt.
13086 (procfs_interrupt): Delete.
13087 * remote.c (remote_serial_quit_handler): Adjust.
13088 (remote_interrupt): Remove ptid parameter. Adjust.
13089 * target-delegates.c: Regenerate.
13090 * target.c: Include "terminal.h".
13091 (target_terminal::terminal_state): Rename to ...
13092 (target_terminal::m_terminal_state): ... this.
13093 (target_terminal::init): Adjust.
13094 (target_terminal::inferior): Adjust to per-inferior
13095 terminal_state.
13096 (target_terminal::restore_inferior, target_terminal_is_ours_kind): New.
13097 (target_terminal::ours, target_terminal::ours_for_output): Use
13098 target_terminal_is_ours_kind.
13099 (target_interrupt): Remove ptid parameter. Adjust.
13100 (default_target_pass_ctrlc): Adjust.
13101 * target.h (target_ops::to_terminal_save_inferior): New field.
13102 (target_ops::to_interrupt): Remove ptid_t parameter.
13103 (target_interrupt): Remove ptid_t parameter. Update comment.
13104 (target_pass_ctrlc): Update comment.
13105 * target/target.h (target_terminal_state): New scoped enum,
13106 factored out of ...
13107 (target_terminal::terminal_state): ... here.
13108 (target_terminal::inferior): Update comments.
13109 (target_terminal::restore_inferior): New.
13110 (target_terminal::is_inferior, target_terminal::is_ours)
13111 (target_terminal::is_ours_for_output): Adjust.
13112 (target_terminal::scoped_restore_terminal_state): Adjust to
13113 rename, and call restore_inferior() instead of inferior().
13114 (target_terminal::scoped_restore_terminal_state::m_state): Change
13115 type.
13116 (target_terminal::terminal_state): Rename to ...
13117 (target_terminal::m_terminal_state): ... this and change type.
13118
9c3a5d93
PA
131192018-01-30 Pedro Alves <palves@redhat.com>
13120
13121 * linux-nat.c (wait_for_signal): New function.
13122 (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend
13123 directly.
13124 (async_terminal_is_ours)
13125 (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete.
13126 (linux_nat_add_target): Don't override
13127 to_terminal_inferior/to_terminal_ours.
13128
69ab5edb
SDJ
131292018-01-29 Sergio Durigan Junior <sergiodj@redhat.com>
13130
13131 * remote.c (remote_follow_fork): Don't call "detach_inferior".
13132
fc8e7e75
SM
131332018-01-28 Simon Marchi <simon.marchi@ericsson.com>
13134
13135 * dwarf2read.c (free_dwo_files): Add forward-declaration.
13136 (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from
13137 dwarf2_per_objfile_free here.
13138 (dwarf2_per_objfile_free): Remove.
13139 (_initialize_dwarf2_read): Don't register
13140 dwarf2_per_objfile_free as a registry cleanup.
13141
b2a426e2
EZ
131422018-01-27 Eli Zaretskii <eliz@gnu.org>
13143
13144 Avoid compilation errors in MinGW native builds
13145
13146 The error is triggered by including python-internal.h, and the
13147 error message is:
13148
13149 In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0,
13150 from build-gnulib/import/math.h:27,
13151 from d:/usr/Python26/include/pyport.h:235,
13152 from d:/usr/Python26/include/Python.h:58,
13153 from python/python-internal.h:94,
13154 from python/py-arch.c:24:
13155 d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared
13156 using ::hypot;
13157 ^~~~~
13158
13159 This happens because Python headers define 'hypot' to expand t
13160 '_hypot' in the Windows builds.
13161 * python/python-internal.h (_hypot) [__MINGW32__]: Define back to
13162 'hypoth'. This avoids a compilation error.
13163
0bdd8eac
AH
131642018-01-26 Alan Hayward <alan.hayward@arm.com>
13165
13166 * MAINTAINERS (Write After Approval): Fix ordering.
13167
56ae9dc3
AH
131682018-01-26 Alan Hayward <alan.hayward@arm.com>
13169
13170 * MAINTAINERS (Write After Approval): Add Alan Hayward.
13171
7433498b
AM
131722018-01-26 Alan Modra <amodra@gmail.com>
13173
13174 * ppc-linux-tdep.c (powerpc32_plt_stub): Make const.
13175 (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so.
13176 Remove nop. Make const. Comment.
13177 (powerpc32_plt_stub_so_2): New.
13178 (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN.
13179 Correct count. Update uses.
13180 (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too.
13181 Move common code reading PLT entry word. Correct
13182 powerpc32_plt_stub PLT address calculation.
13183 * ppc64-tdep.c (ppc64_standard_linkage1): Make const.
13184 (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise.
13185 (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise.
13186 (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise.
13187 (ppc64_standard_linkage8): Likewise.
13188 * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const.
13189 Correct insns description.
13190 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
13191
0f59d5fc
PA
131922018-01-24 Pedro Alves <palves@redhat.com>
13193
13194 GCC PR libstdc++/83906
13195 * gdbtypes.c (operator==(const dynamic_prop &,
13196 const dynamic_prop &)): New.
13197 (operator==(const range_bounds &, const range_bounds &)): New.
13198 (check_types_equal): Use them instead of memcmp.
13199 * gdbtypes.h (operator==(const dynamic_prop &,
13200 const dynamic_prop &)): Declare.
13201 (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare.
13202 (operator==(const range_bounds &, const range_bounds &)): Declare.
13203 (operator!=(const range_bounds &, const range_bounds &)): Declare.
13204
ef8914a4
PR
132052018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13206
13207 * s390-linux-tdep.c (s390_record_address_mask)
13208 (s390_record_calc_disp_common, s390_record_calc_disp)
13209 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
13210 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
13211 (s390_process_record): Move to s390-tdep.c.
13212 (s390_linux_init_abi_any): Adjust.
13213 * s390-tdep.c (s390_record_address_mask)
13214 (s390_record_calc_disp_common, s390_record_calc_disp)
13215 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
13216 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
13217 (s390_process_record): Moved from s390-linux-tdep.c
13218 (s390_gdbarch_init): Adjust.
13219
d6e58945
PR
132202018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13221
13222 * s390-linux-nat.c (s390-tdep.h): New include.
13223 * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o.
13224 (HFILES_NO_SRCDIR): Add s390-tdep.h.
13225 (ALLDEPFILES): Add s390-tdep.c.
13226 * configure.tgt (s390*-*-linux*): Add s390-tdep.o.
13227 * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to...
13228 * s390-tdep.h: ...this. New file.
13229 * s390-linux-tdep.c (s390-tdep.h): New include.
13230 (_initialize_s390_tdep): Rename to...
13231 (_initialize_s390_linux_tdep): ...this and adjust.
13232 (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep)
13233 (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to
13234 s390-tdep.h.
13235 (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri)
13236 (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy)
13237 (s390_is_partial_instruction, s390_software_single_step)
13238 (is_non_branch_ril, s390_displaced_step_copy_insn)
13239 (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep)
13240 (s390_prologue_data, s390_addr, s390_store, s390_load)
13241 (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue)
13242 (s390_register_call_saved, s390_guess_tracepoint_registers)
13243 (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum)
13244 (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register)
13245 (s390_pseudo_register_name, s390_pseudo_register_type)
13246 (s390_pseudo_register_read, s390_pseudo_register_write)
13247 (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect)
13248 (s390_ax_pseudo_register_push_stack, s390_gen_return_address)
13249 (s390_addr_bits_remove, s390_address_class_type_flags)
13250 (s390_address_class_type_flags_to_name)
13251 (s390_address_class_name_to_type_flags, s390_effective_inner_type)
13252 (s390_function_arg_float, s390_function_arg_vector)
13253 (is_power_of_two, s390_function_arg_integer, s390_arg_state)
13254 (s390_handle_arg, s390_push_dummy_call, s390_dummy_id)
13255 (s390_frame_align, s390_register_return_value, s390_return_value)
13256 (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp)
13257 (s390_unwind_pseudo_register, s390_adjust_frame_regnum)
13258 (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg)
13259 (s390_trad_frame_prev_register, s390_unwind_cache)
13260 (s390_prologue_frame_unwind_cache)
13261 (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache)
13262 (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind)
13263 (s390_stub_unwind_cache, s390_stub_frame_unwind_cache)
13264 (s390_stub_frame_this_id, s390_stub_frame_prev_register)
13265 (s390_stub_frame_sniffer, s390_stub_frame_unwind)
13266 (s390_frame_base_address, s390_local_base_address)
13267 (s390_frame_base, s390_gcc_target_options)
13268 (s390_gnu_triplet_regexp, s390_stap_is_single_operand)
13269 (s390_validate_reg_range, s390_tdesc_valid)
13270 (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to...
13271 * s390-tdep.c: ...this. New file.
13272
9c0b896e
PR
132732018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13274
13275 * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook.
13276 (s390_process_record, s390_gdbarch_tdep_alloc)
13277 (s390_linux_init_abi_any): Use/set new hook.
13278
7042632b
PR
132792018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13280
13281 * s390-linux-tdep.c (osabi.h): New include.
13282 (s390_linux_init_abi_31, s390_linux_init_abi_64)
13283 (s390_linux_init_abi_any): New functions.
13284 (s390_gdbarch_init, _initialize_s390_tdep): Adjust.
13285
650f5e13
PR
132862018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13287
13288 * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for
13289 tdesc_has_registers check
13290
47c9317e
PR
132912018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13292
13293 * s390-linux-tdep.c (s390_tdesc_valid): New function.
13294 (s390_validate_reg_range): New macro.
13295 (s390_gdbarch_init): Adjust.
13296
095085d8
PR
132972018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13298
13299 * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field.
13300 (s390_gdbarch_tdep_alloc): Adjust.
13301 (s390_gdbarch_init): Adjust.
13302
ab9bcc67
PR
133032018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13304
13305 * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2>
13306 <have_tdb>: Change type to bool.
13307 (s390_gdbarch_tdep_alloc): Adjust.
13308 (s390_gdbarch_init): Adjust.
13309
21f6f5ff
PR
133102018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13311
13312 * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field.
13313 (gdbarch_tdep) <have_upper, have_vx>: New fields.
13314 (s390_gdbarch_tdep_alloc): New function.
13315 (s390_gdbarch_init): Allocate tdep at start and use its fields
13316 instead of separate variables.
13317
0eb97953
PR
133182018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13319
13320 * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
13321 when looking for cached gdbarch and add comment for remaining.
13322
5c319bb2
PA
133232018-01-22 Pedro Alves <palves@redhat.com>
13324 Sergio Durigan Junior <sergiodj@redhat.com>
13325
13326 * typeprint.c (whatis_exp): Initialize "val" in the "whatis type"
13327 case.
13328
d65ce302
MR
133292018-01-22 Maciej W. Rozycki <macro@mips.com>
13330
13331 * MAINTAINERS: Update my company e-mail address.
13332
ec7a5fcb
YQ
133332018-01-22 Yao Qi <yao.qi@linaro.org>
13334
13335 * regcache.c (cooked_write_test): New function.
13336 (_initialize_regcache): Register the test.
13337
11f57cb6
YQ
133382018-01-22 Yao Qi <yao.qi@linaro.org>
13339
13340 * ia64-tdep.c (ia64_pseudo_register_read): Call
13341 regcache->cooked_read instead of regcache_cooked_read_unsigned.
13342 * m32c-tdep.c (m32c_cat_read): Likewise.
13343 (m32c_r3r2r1r0_read): Likewise.
13344 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
13345 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
13346
03f50fc8
YQ
133472018-01-22 Yao Qi <yao.qi@linaro.org>
13348
13349 * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
13350 method raw_read instead of regcache_raw_read.
13351 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
13352 * arm-tdep.c (arm_neon_quad_read): Likewise.
13353 * avr-tdep.c (avr_pseudo_register_read): Likewise.
13354 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
13355 * frv-tdep.c (frv_pseudo_register_read): Likewise.
13356 * h8300-tdep.c (h8300_pseudo_register_read): Likewise.
13357 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
13358 (i386_pseudo_register_read_into_value): Likewise.
13359 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
13360 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
13361 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
13362 * rl78-tdep.c (rl78_pseudo_register_read): Likewise.
13363 * s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
13364 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
13365 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
13366 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
13367 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
13368
dc711524
YQ
133692018-01-22 Yao Qi <yao.qi@linaro.org>
13370
13371 * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
13372 * configure.tgt: Remove target mt.
13373 * mt-tdep.c: Remove.
13374 * regcache.c (cooked_read_test): Remove the check for mt.
13375
3f5a868b
YQ
133762018-01-22 Yao Qi <yao.qi@linaro.org>
13377
13378 * jit.c (jit_frame_prev_register): Call regcache::cooked_read
13379 instead of gdbarch_pseudo_register_read_value.
13380
de4cb04a
JB
133812018-01-22 Joel Brobecker <brobecker@adacore.com>
13382
13383 * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
13384 language is Ada.
13385
a9e40818
JB
133862018-01-22 Joel Brobecker <brobecker@adacore.com>
13387
13388 * linespec.c (create_sals_line_offset): Remove code that preserved
13389 the symtab_and_line's line number.
13390
e707fc44
AB
133912018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
13392
13393 * varobj.c (varobj_create): Don't set valid_block when creating a
13394 floating varobj.
13395
03d0bf7b
AB
133962018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
13397
13398 * varobj.c (varobj_create): Remove out of date comment.
13399
ae451627
AB
134002018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
13401
13402 PR mi/20395
13403 * ada-exp.y (write_var_from_sym): Pass extra parameter when
13404 updating innermost block.
13405 * parse.c (innermost_block_tracker::update): Take extra type
13406 parameter, and check types match before updating innermost block.
13407 (write_dollar_variable): Update innermost block for registers.
13408 * parser-defs.h (enum innermost_block_tracker_type): New enum.
13409 (innermost_block_tracker::innermost_block_tracker): Initialise
13410 m_types member.
13411 (innermost_block_tracker::reset): Take type parameter.
13412 (innermost_block_tracker::update): Take type parameter, and pass
13413 type through as needed.
13414 (innermost_block_tracker::m_types): New member.
13415 * varobj.c (varobj_create): Pass type when reseting innermost
13416 block.
13417
aee1fcdf
AB
134182018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
13419
13420 * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
13421 * ada-lang.c (resolve_subexp): Likewise.
13422 * breakpoint.c (set_breakpoint_condition) Likewise.
13423 (watch_command_1) Likewise.
13424 * c-exp.y (variable): Likewise.
13425 * d-exp.y (PrimaryExpression): Likewise.
13426 * f-exp.y (variable): Likewise.
13427 * go-exp.y (variable): Likewise.
13428 * m2-exp.y (variable): Likewise.
13429 * objfiles.c (objfile::~objfile): Likewise.
13430 * p-exp.y (variable): Likewise.
13431 * parse.c (innermost_block): Change type.
13432 * parser-defs.h (class innermost_block_tracker): New.
13433 (innermost_block): Change to innermost_block_tracker.
13434 * printcmd.c (display_command): Switch to innermost_block API.
13435 (do_one_display): Likewise.
13436 * rust-exp.y (do_one_display): Likewise.
13437 * symfile.c (clear_symtab_users): Likewise.
13438 * varobj.c (varobj_create): Switch to innermost_block API, replace
13439 use of innermost_block with block stored on varobj object.
13440
396af9a1
AB
134412018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
13442
13443 * expression.h (innermost_block): Remove declaration.
13444 * varobj.c: Add 'parser-defs.h' include.
13445
fcfcc376
TT
134462018-01-19 Tom Tromey <tom@tromey.com>
13447
13448 * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
13449 symbols in the static and global blocks.
13450
5a6c3296
JC
134512018-01-19 James Clarke <jrtc27@jrtc27.com>
13452
13453 * nat/linux-ptrace.c: Remove unnecessary reinclusion of
13454 gdb_ptrace.h, and move including gdb_wait.h ...
13455 * nat/linux-ptrace.h: ... to here.
13456
bc09b0c1
SM
134572018-01-19 Simon Marchi <simon.marchi@ericsson.com>
13458
13459 * inf-ptrace.c (inf_ptrace_detach): Adjust call to
13460 inf_ptrace_detach_success.
13461 (inf_ptrace_detach_success): Add inferior parameter, use it
13462 instead of inferior_ptid, pass it to detach_inferior.
13463 * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
13464 parameter.
13465 * inferior.c (detach_inferior): Add overload that takes an
13466 inferior object.
13467 * inferior.h (detach_inferior): Likewise.
13468 * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
13469 use inferior_ptid, adjust call to inf_ptrace_detach_success.
13470 * linux-thread-db.c (thread_db_detach): Use inf parameter.
13471
6e1e1966
SM
134722018-01-19 Simon Marchi <simon.marchi@ericsson.com>
13473
13474 * target.h (struct target_ops) <to_detach>: Add inferior
13475 parameter.
13476 (target_detach): Likewise.
13477 * target.c (dispose_inferior): Pass inferior down.
13478 (target_detach): Pass inferior down. Assert that it is equal to
13479 the current inferior.
13480 * aix-thread.c (aix_thread_detach): Pass inferior down.
13481 * corefile.c (core_file_command): Pass current_inferior() down.
13482 * corelow.c (core_detach): Add inferior parameter.
13483 * darwin-nat.c (darwin_detach): Likewise.
13484 * gnu-nat.c (gnu_detach): Likewise.
13485 * inf-ptrace.c (inf_ptrace_detach): Likewise.
13486 * infcmd.c (detach_command): Pass current_inferior() down to
13487 target_detach.
13488 * infrun.c (follow_fork_inferior): Pass parent_inf to
13489 target_detach.
13490 (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
13491 target_detach.
13492 * linux-nat.c (linux_nat_detach): Add inferior parameter.
13493 * linux-thread-db.c (thread_db_detach): Likewise.
13494 * nto-procfs.c (procfs_detach): Likewise.
13495 * procfs.c (procfs_detach): Likewise.
13496 * record.c (record_detach): Likewise.
13497 * record.h (struct inferior): Forward-declare.
13498 (record_detach): Add inferior parameter.
13499 * remote-sim.c (gdbsim_detach): Likewise.
13500 * remote.c (remote_detach_1): Likewise.
13501 (remote_detach): Likewise.
13502 (extended_remote_detach): Likewise.
13503 * sol-thread.c (sol_thread_detach): Likewise.
13504 * target-debug.h (target_debug_print_inferior_p): New macro.
13505 * target-delegates.c: Re-generate.
13506 * top.c (kill_or_detach): Pass inferior down to target_detach.
13507 * windows-nat.c (windows_detach): Add inferior parameter.
13508
6bd6f3b6
SM
135092018-01-19 Simon Marchi <simon.marchi@ericsson.com>
13510
13511 * target.h (struct target_ops) <to_detach>: Remove args
13512 parameter.
13513 (target_detach): Likewise.
13514 * target.c (dispose_inferior): Adjust.
13515 (target_detach): Remove args parameter, adjust.
13516 * aix-thread.c (aix_thread_detach): Adjust.
13517 * corefile.c (core_file_command): Adjust.
13518 * corelow.c (core_detach): Adjust.
13519 * darwin-nat.c (darwin_detach): Adjust.
13520 * gnu-nat.c (gnu_detach): Adjust.
13521 * inf-ptrace.c (inf_ptrace_detach): Adjust.
13522 * infcmd.c (detach_command): Adjust
13523 * infrun.c (follow_fork_inferior): Adjust.
13524 (handle_vfork_child_exec_or_exit): Adjust.
13525 * linux-fork.c (linux_fork_detach): Remove args parameter.
13526 * linux-fork.h (linux_fork_detach): Likewise.
13527 * linux-nat.c (linux_nat_detach): Likewise, and adjust.
13528 * linux-thread-db.c (thread_db_detach): Likewise.
13529 * nto-procfs.c (procfs_detach): Likewise.
13530 * procfs.c (procfs_detach): Likewise.
13531 (do_detach): Remove signo parameter.
13532 * record.c (record_detach): Remove args parameter.
13533 * record.h (record_detach): Likewise.
13534 * remote-sim.c (gdbsim_detach): Likewise.
13535 * remote.c (remote_detach_1): Likewise.
13536 (remote_detach): Likewise.
13537 (extended_remote_detach): Likewise.
13538 * sol-thread.c (sol_thread_detach): Likewise.
13539 * target-delegates.c: Re-generate.
13540 * top.c (struct qt_args) <args>: Remove field.
13541 (kill_or_detach): Don't pass args.
13542 (quit_force): Don't set args.
13543 * windows-nat.c (windows_detach): Remove args parameter.
13544
88af8ea8
YQ
135452018-01-19 Yao Qi <yao.qi@linaro.org>
13546
13547 * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
13548 (arm_linux_init_abi): Install it.
13549
dea445b9
YQ
135502018-01-19 Yao Qi <yao.qi@linaro.org>
13551
13552 * osabi.c (gdb_osabi_names): Extend the regexp for
13553 arm-linux-gnueabihf.
13554
4a17f768
YQ
135552018-01-18 Yao Qi <yao.qi@linaro.org>
13556
13557 * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
13558 m_abbrevs.
13559 (abbrev_table::add_abbrev): Update.
13560 (abbrev_table::lookup_abbrev): Update.
13561
d679c21a
YQ
135622018-01-18 Yao Qi <yao.qi@linaro.org>
13563
13564 * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
13565
7d937cad
SDJ
135662018-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
13567
13568 * compile/compile.c (compile_to_object): Convert "triplet_rx"
13569 to "std::string".
13570
9e14690d
TT
135712018-01-17 Tom Tromey <tom@tromey.com>
13572
13573 * dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC.
13574
50a82047
TT
135752018-01-17 Tom Tromey <tom@tromey.com>
13576
13577 * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
13578 * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
13579 (create_array_type_with_stride): Update.
13580 * dwarf2read.c (set_die_type): Update.
13581
c89b44cd
TT
135822018-01-17 Tom Tromey <tom@tromey.com>
13583
13584 * dwarf2read.c (delayed_method_info): Remove typedef.
13585 (dwarf2_cu::method_info): Now a std::vector.
13586 (add_to_method_list): Update.
13587 (free_delayed_list): Remove.
13588 (compute_delayed_physnames): Update.
13589 (process_full_comp_unit, process_full_type_unit): Clear the method
13590 list. Remove cleanups.
13591 (psymtab_include_file_name): Add name_holder parameter. Use
13592 unique_xmalloc_ptr.
13593 (dwarf_decode_lines): Update.
13594
fcd3b13d
SM
135952018-01-17 Tom Tromey <tom@tromey.com>
13596 Simon Marchi <simon.marchi@ericsson.com>
13597
13598 * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
13599 (dwarf2_per_objfile::free_cached_comp_units)
13600 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
13601 (init_cutu_and_read_dies_no_follow): Update.
13602 (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
13603 (dwarf2_cu::~dwarf2_cu): New.
13604 (free_heap_comp_unit, free_stack_comp_unit): Remove.
13605 (age_cached_comp_units, free_one_cached_comp_unit): Update.
13606
685af9cd
TT
136072018-01-17 Tom Tromey <tom@tromey.com>
13608 Simon Marchi <simon.marchi@ericsson.com>
13609
13610 * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
13611 (struct die_reader_specs) <abbrev_table>: New member.
13612 (struct abbrev_table): Add constructor.
13613 <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
13614 <abbrev_obstack>: Now an auto_obstack.
13615 (abbrev_table_up): New typedef.
13616 (init_cu_die_reader): Add abbrev_table parameter.
13617 (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
13618 Add result_dwo_abbrev_table.
13619 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
13620 (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
13621 Update.
13622 (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
13623 parameter.
13624 (skip_children): Update.
13625 (abbrev_table::alloc_abbrev): Rename from
13626 abbrev_table_alloc_abbrev.
13627 (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
13628 (abbrev_table::lookup_abbrev): Rename from
13629 abbrev_table_lookup_abbrev.
13630 (abbrev_table_read_table): Return abbrev_table_up.
13631 (abbrev_table_free, abbrev_table_free_cleanup)
13632 (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
13633 (load_partial_dies): Update.
13634
5e2db402
TT
136352018-01-17 Tom Tromey <tom@tromey.com>
13636
13637 * dwarf2read.c (dwarf2_compute_name): Update comment.
13638 (read_func_scope, read_variable): Update.
13639 (new_symbol): Remove.
13640 (new_symbol_full): Rename to new_symbol.
13641
ee7f689e 136422018-01-17 Mike Gulick <mgulick@mathworks.com>
41667530
MG
13643
13644 PR gdb/16577
13645 * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
13646 a warning instead of throwing an error, set section size to 0 and return
13647 NULL.
13648 * gdb_bfd.h (gdb_bfd_map_section): Update description.
13649
4d9b86e1
SM
136502018-01-17 Simon Marchi <simon.marchi@ericsson.com>
13651
13652 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
13653 std::string.
13654 (linux_ptrace_attach_fail_reason_string): Likewise.
13655 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
13656 Likewise.
13657 (linux_ptrace_attach_fail_reason_string): Likewise.
13658 * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
13659
a7b2d0fb
SM
136602018-01-17 Simon Marchi <simon.marchi@ericsson.com>
13661
13662 * linux-nat.c (linux_nat_attach): Remove xstrdup.
13663
f517c180
EA
136642018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
13665
13666 PR gdb/21559
13667 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
13668 checking for fs_base/gs_base fields in struct user_regs_struct.
13669 * configure: Regenerate.
13670
7045b1ca
YQ
136712018-01-17 Yao Qi <yao.qi@linaro.org>
13672
13673 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
13674 function.
13675 (aarch64_linux_init_abi): Install it to gdbarch hook
13676 gcc_target_options.
13677
db422fb2
PA
136782018-01-15 Pedro Alves <palves@redhat.com>
13679
13680 * common/signals-state-save-restore.c
13681 (save_original_signals_state): Fix typos.
13682
ba643918
SDJ
136832017-01-12 Tom Tromey <tom@tromey.com>
13684 Sergio Durigan Junior <sergiodj@redhat.com>
13685
13686 * Makefile.in (install-only): Install gdb-add-index.
13687
906b4aac
JB
136882018-01-12 John Baldwin <jhb@FreeBSD.org>
13689
13690 * fbsd-tdep.c (KVE_PROTECTION): Correct value.
13691
bdf2a94a
AA
136922018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
13693
13694 * infrun.c (keep_going_pass_signal): Clear step-over info when
13695 insert_breakpoints fails.
13696
71d378ae
PA
136972018-01-11 Pedro Alves <palves@redhat.com>
13698
13699 PR gdb/22583
13700 * infrun.c (resume): Rename to ...
13701 (resume_1): ... this.
13702 (resume): Reimplement as wrapper around resume_1.
13703
3cada740
PA
137042018-01-11 Pedro Alves <palves@redhat.com>
13705
13706 PR remote/22597
13707 * remote.c (remote_parse_stop_reply): Default to the last-set
13708 general thread instead of to 'magic_null_ptid'.
13709
618daa93
PA
137102018-01-10 Pedro Alves <palves@redhat.com>
13711
13712 * language.h (language_get_symbol_name_matcher): Rename ...
13713 (get_symbol_name_matcher): ... this.
13714 * language.c (language_get_symbol_name_matcher): Ditto.
13715 * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
13716 callers adjusted.
13717
c63d3e8d
PA
137182018-01-10 Pedro Alves <palves@redhat.com>
13719
13720 PR gdb/22670
13721 * dwarf2read.c
13722 (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
13723 Adjust to use language_get_symbol_name_matcher instead of
13724 language_defn::la_get_symbol_name_matcher.
13725 * language.c (language_get_symbol_name_matcher): If in Ada mode
13726 and the lookup name is a verbatim match, return Ada's matcher.
13727 * language.h (language_get_symbol_name_matcher): Adjust comment.
13728 (ada_lookup_name_info::verbatim_p):: New method.
13729
d4c2a405
PA
137302018-01-10 Pedro Alves <palves@redhat.com>
13731
13732 PR gdb/22670
13733 * ada-lang.c (ada_collect_symbol_completion_matches): If the
13734 minsym's language is language_auto or language_cplus, pass down
13735 language_ada instead.
13736 * symtab.c (compare_symbol_name): Don't frob symbol language here.
13737
8825213e
PA
137382018-01-10 Pedro Alves <palves@redhat.com>
13739
13740 PR gdb/22670
13741 * minsyms.c (linkage_name_str): New function.
13742 (iterate_over_minimal_symbols): Use it.
13743
2d97a5d9
JB
137442018-01-09 John Baldwin <jhb@FreeBSD.org>
13745
13746 * NEWS: Document that 'info proc' now works on FreeBSD.
13747
92fce24d
JB
137482018-01-09 John Baldwin <jhb@FreeBSD.org>
13749
13750 * configure.ac: Check for kinfo_getfile in libutil.
13751 * configure: Regenerate.
13752 * config.in: Regenerate.
13753 * fbsd-nat.c: Include "fbsd-tdep.h".
13754 (fbsd_fetch_cmdline): New.
13755 (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
13756 rather than calling error.
13757 (fbsd_info_proc): New.
13758 (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
13759 (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
13760 (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
13761
262f62f5
JB
137622018-01-09 John Baldwin <jhb@FreeBSD.org>
13763
13764 * fbsd-nat.c (struct free_deleter): Remove.
13765 (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
13766
b999e203
JB
137672018-01-09 John Baldwin <jhb@FreeBSD.org>
13768
13769 * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
13770 NULL for an empty pathname.
13771
d2176225
JB
137722018-01-09 John Baldwin <jhb@FreeBSD.org>
13773
13774 * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
13775 (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
13776 (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
13777 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
13778 (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
13779 (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
13780 (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
13781 (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
13782 (kinfo_proc_layout_32, kinfo_proc_layout_i386)
13783 (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
13784 (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
13785 (fbsd_core_fetch_timeval, fbsd_print_sigset)
13786 (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
13787 (fbsd_init_abi): Install gdbarch "core_info_proc" method.
13788 * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
13789
9c4ac400
ST
137902018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
13791
13792 * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
13793 (gnu_xfer_auxv): New function.
13794 (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
13795 TARGET_OBJECT_AUXV.
13796
1e5ded6c
YQ
137972018-01-08 Yao Qi <yao.qi@linaro.org>
13798 Simon Marchi <simon.marchi@ericsson.com>
13799
13800 * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
13801 common/selftest.c.
13802 (COMMON_OBS): Remove selftest.o.
13803 * configure.ac: Append selftest-arch.c and common/selftest.c to
13804 CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS.
13805 * configure: Re-generated.
13806 * maint.c (maintenance_selftest): Wrap selftests::run_tests with
13807 GDB_SELF_TEST.
13808 (maintenance_info_selftests): Likewise.
13809
04bafb1e
XR
138102018-01-08 Xavier Roirand <roirand@adacore.com>
13811
13812 * ada-valprint.c (val_print_packed_array_elements): Use
13813 proper number of elements when printing an array indexed
13814 by an enumeration type.
13815
518817b3
SM
138162018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13817
13818 * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
13819 (dw2_get_file_names_reader): Adjust.
13820 (lookup_dwo_signatured_type): Adjust.
13821 (lookup_dwp_signatured_type): Adjust.
13822 (lookup_signatured_type): Adjust.
13823 (create_type_unit_group): Adjust.
13824 (get_type_unit_group): Adjust.
13825 (process_psymtab_comp_unit_reader): Adjust.
13826 (build_type_psymtabs_reader): Adjust.
13827 (scan_partial_symbols): Adjust.
13828 (add_partial_symbol): Adjust.
13829 (add_partial_subprogram): Adjust.
13830 (peek_die_abbrev): Adjust.
13831 (fixup_go_packaging): Adjust.
13832 (process_imported_unit_die): Adjust.
13833 (dwarf2_compute_name): Adjust.
13834 (dwarf2_physname): Adjust.
13835 (read_import_statement): Adjust.
13836 (handle_DW_AT_stmt_list): Adjust.
13837 (read_file_scope): Adjust.
13838 (read_func_scope): Adjust.
13839 (read_lexical_block_scope): Adjust.
13840 (read_call_site_scope): Adjust.
13841 (read_variable): Adjust.
13842 (dwarf2_rnglists_process): Adjust.
13843 (dwarf2_ranges_process): Adjust.
13844 (dwarf2_ranges_read): Adjust.
13845 (dwarf2_get_pc_bounds): Adjust.
13846 (dwarf2_record_block_ranges): Adjust.
13847 (dwarf2_add_field): Adjust.
13848 (dwarf2_add_member_fn): Adjust.
13849 (read_structure_type): Adjust.
13850 (process_structure_scope): Adjust.
13851 (read_enumeration_type): Adjust.
13852 (read_array_type): Adjust.
13853 (mark_common_block_symbol_computed): Adjust.
13854 (read_common_block): Adjust.
13855 (read_namespace_type): Adjust.
13856 (read_namespace): Adjust.
13857 (read_module_type): Adjust.
13858 (read_tag_pointer_type): Adjust.
13859 (read_tag_ptr_to_member_type): Adjust.
13860 (read_tag_string_type): Adjust.
13861 (read_subroutine_type): Adjust.
13862 (read_typedef): Adjust.
13863 (read_base_type): Adjust.
13864 (attr_to_dynamic_prop): Adjust.
13865 (read_subrange_type): Adjust.
13866 (read_unspecified_type): Adjust.
13867 (dwarf2_read_abbrevs): Adjust.
13868 (load_partial_dies): Adjust.
13869 (read_partial_die): Adjust.
13870 (find_partial_die): Adjust.
13871 (guess_partial_die_structure_name): Adjust.
13872 (fixup_partial_die): Adjust.
13873 (read_attribute_value): Adjust.
13874 (read_addr_index): Adjust.
13875 (read_addr_index_from_leb128): Adjust.
13876 (read_str_index): Adjust.
13877 (dwarf2_string_attr): Adjust.
13878 (get_debug_line_section): Adjust.
13879 (dwarf_decode_line_header): Adjust.
13880 (lnp_state_machine::check_line_address): Adjust.
13881 (dwarf_decode_lines_1): Adjust.
13882 (dwarf_decode_lines): Adjust.
13883 (dwarf2_start_symtab): Adjust.
13884 (var_decode_location): Adjust.
13885 (new_symbol_full): Adjust.
13886 (dwarf2_const_value_data): Adjust.
13887 (dwarf2_const_value_attr): Adjust.
13888 (dwarf2_const_value): Adjust.
13889 (die_type): Adjust.
13890 (die_containing_type): Adjust.
13891 (build_error_marker_type): Adjust.
13892 (lookup_die_type): Adjust.
13893 (guess_full_die_structure_name): Adjust.
13894 (anonymous_struct_prefix): Adjust.
13895 (determine_prefix): Adjust.
13896 (dwarf2_name): Adjust.
13897 (follow_die_ref_or_sig): Adjust.
13898 (follow_die_offset): Adjust.
13899 (follow_die_ref): Adjust.
13900 (follow_die_sig_1): Adjust.
13901 (follow_die_sig): Adjust.
13902 (get_signatured_type): Adjust.
13903 (get_DW_AT_signature_type): Adjust.
13904 (decode_locdesc): Adjust.
13905 (dwarf_decode_macros): Adjust.
13906 (cu_debug_loc_section): Adjust.
13907 (fill_in_loclist_baton): Adjust.
13908 (dwarf2_symbol_mark_computed): Adjust.
13909 (init_one_comp_unit): Don't assign
13910 dwarf2_cu::dwarf2_per_objfile.
13911 (set_die_type): Adjust.
13912
ed2dc618
SM
139132018-01-07 Simon Marchi <simon.marchi@ericsson.com>
13914
13915 * dwarf2read.c (struct mapped_debug_names): Add constructor.
13916 <dwarf2_per_objfile>: New field.
13917 (dwarf2_per_objfile): Remove global.
13918 (get_dwarf2_per_objfile): New function.
13919 (set_dwarf2_per_objfile): New function.
13920 (dwarf2_build_psymtabs_hard): Change objfile parameter to
13921 dwarf2_per_objfile.
13922 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
13923 (read_abbrev_offset): Likewise.
13924 (read_indirect_string): Likewise.
13925 (read_indirect_line_string): Likewise.
13926 (read_indirect_string_at_offset): Likewise.
13927 (read_indirect_string_from_dwz): Likewise.
13928 (dwarf2_find_containing_comp_unit): Change objfile parameter to
13929 dwarf2_per_objfile.
13930 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
13931 (create_all_comp_units): Change objfile parameter to
13932 dwarf2_per_objfile.
13933 (create_all_type_units): Likewise.
13934 (process_queue): Add dwarf2_per_objfile parameter.
13935 (read_and_check_comp_unit_head): Likewise.
13936 (lookup_dwo_unit_in_dwp): Likewise.
13937 (get_dwp_file): Likewise.
13938 (process_cu_includes): Likewise.
13939 (struct free_dwo_file_cleanup_data): New struct.
13940 (dwarf2_has_info): Use get_dwarf2_per_objfile and
13941 set_dwarf2_per_objfile.
13942 (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
13943 (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
13944 context, adjust calls.
13945 (dw2_instantiate_symtab): Likewise.
13946 (dw2_get_cutu): Add dwarf2_per_objfile parameter.
13947 (dw2_get_cu): Likewise.
13948 (create_cu_from_index_list): Change objfile parameter to
13949 dwarf2_per_objfile.
13950 (create_cus_from_index_list): Get dwarf2_per_objfile from
13951 context, adjust calls.
13952 (create_cus_from_index): Likewise.
13953 (create_signatured_type_table_from_index): Change objfile
13954 parameter to dwarf2_per_objfile.
13955 (create_signatured_type_table_from_debug_names): Change objfile
13956 parameter to dwarf2_per_objfile.
13957 (create_addrmap_from_index): Likewise.
13958 (create_addrmap_from_aranges): Likewise.
13959 (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
13960 (dw2_setup): Remove.
13961 (dw2_get_file_names_reader): Get dwarf2_per_objfile from
13962 context.
13963 (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
13964 get_dwarf2_per_objfile.
13965 (dw2_forget_cached_source_info): Likewise.
13966 (dw2_map_symtabs_matching_filename): Likewise.
13967 (struct dw2_symtab_iterator) <index>: Remove.
13968 <dwarf2_per_objfile>: New field.
13969 (dw2_symtab_iter_init): Replace index parameter with
13970 dwarf2_per_objfile.
13971 (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
13972 (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
13973 (dw2_print_stats): Likewise.
13974 (dw2_dump): Likewise.
13975 (dw2_expand_symtabs_for_function): Likewise.
13976 (dw2_expand_all_symtabs): Likewise.
13977 (dw2_expand_symtabs_with_fullname): Likewise.
13978 (dw2_expand_marked_cus): Replace index and objfile parameters
13979 with dwarf2_per_objfile.
13980 (dw_expand_symtabs_matching_file_matcher): Add
13981 dwarf2_per_objfile parameter and adjust calls.
13982 (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
13983 adjust calls.
13984 (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
13985 (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
13986 adjust calls.
13987 (create_cus_from_debug_names_list): Replace objfile parameter
13988 with dwarf2_per_objfile and adjust calls.
13989 (create_cus_from_debug_names): Likewise.
13990 (dwarf2_read_debug_names): Likewise.
13991 (mapped_debug_names::namei_to_name): Adjust call.
13992 (dw2_debug_names_iterator::next): Likewise.
13993 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
13994 (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
13995 (dw2_debug_names_dump): Likewise.
13996 (dw2_debug_names_expand_symtabs_for_function): Likewise.
13997 (dw2_debug_names_expand_symtabs_matching): Likewise.
13998 (dwarf2_initialize_objfile): Likewise.
13999 (dwarf2_build_psymtabs): Likewise.
14000 (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
14001 this_cu.
14002 (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
14003 (read_and_check_comp_unit_head): Likewise.
14004 (read_abbrev_offset): Likewise.
14005 (create_debug_type_hash_table): Likewise.
14006 (create_debug_types_hash_table): Likewise.
14007 (create_all_type_units): Replace objfile parameter with
14008 dwarf2_per_objfile.
14009 (add_type_unit): Add dwarf2_per_objfile parameter.
14010 (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
14011 with dwarf2_per_objfile.
14012 (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
14013 (lookup_dwp_signatured_type): Likewise.
14014 (lookup_signatured_type): Likewise.
14015 (read_cutu_die_from_dwo): Likewise.
14016 (init_tu_and_read_dwo_dies): Likewise.
14017 (init_cutu_and_read_dies): Likewise.
14018 (init_cutu_and_read_dies_no_follow): Likewise.
14019 (allocate_type_unit_groups_table): Add objfile parameter.
14020 (create_type_unit_group): Use dwarf2_per_objfile from cu.
14021 (get_type_unit_group): Likewise.
14022 (process_psymtab_comp_unit): Update call.
14023 (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
14024 (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
14025 (print_tu_stats): Likewise.
14026 (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
14027 in void* parameter.
14028 (build_type_psymtabs): Change objfile parameter to
14029 dwarf2_per_objfile.
14030 (process_skeletonless_type_unit): Use dwarf2_per_objfile
14031 passed in void* parameter.
14032 (process_skeletonless_type_units): Change objfile parameter to
14033 dwarf2_per_objfile.
14034 (set_partial_user): Likewise.
14035 (dwarf2_build_psymtabs_hard): Likewise.
14036 (read_comp_units_from_section): Likewise.
14037 (create_all_comp_units): Likewise.
14038 (scan_partial_symbols): Update calls.
14039 (add_partial_symbol): Likewise.
14040 (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
14041 (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
14042 (process_queue): Add dwarf2_per_objfile parameter.
14043 (get_compunit_symtab): Use dwarf2_per_objfile from cu.
14044 (compute_compunit_symtab_includes): Likewise.
14045 (process_cu_includes): Add dwarf2_per_objfile parameter.
14046 (process_full_comp_unit): Use dwarf2_per_objfile from cu.
14047 (process_full_type_unit): Likewise.
14048 (process_imported_unit_die): Update call.
14049 (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
14050 (read_file_scope): Likewise.
14051 (allocate_dwo_file_hash_table): Add objfile parameter.
14052 (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
14053 (create_cus_hash_table): Likewise.
14054 (create_dwp_hash_table): Likewise.
14055 (create_dwo_unit_in_dwp_v1): Likewise.
14056 (create_dwp_v2_section): Likewise.
14057 (create_dwo_unit_in_dwp_v2): Likewise.
14058 (lookup_dwo_unit_in_dwp): Likewise.
14059 (try_open_dwop_file): Likewise.
14060 (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
14061 (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
14062 cleanup to include a reference to dwarf2_per_objfile.
14063 (open_dwp_file): Add dwarf2_per_objfile parameter.
14064 (open_and_init_dwp_file): Likewise.
14065 (get_dwp_file): Likewise.
14066 (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
14067 (queue_and_load_all_dwo_tus): Update call.
14068 (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
14069 data.
14070 (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
14071 (dwarf2_ranges_process): Likewise.
14072 (dwarf2_get_pc_bounds): Likewise.
14073 (mark_common_block_symbol_computed): Likewise.
14074 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
14075 (dwarf2_read_abbrevs): Update call.
14076 (read_partial_die): Use dwarf2_per_objfile from cu.
14077 (find_partial_die): Likewise.
14078 (fixup_partial_die): Likewise.
14079 (read_attribute_value): Likewise.
14080 (read_indirect_string_at_offset_from): Add objfile parameter.
14081 (read_indirect_string_at_offset): Add dwarf2_per_objfile
14082 parameter.
14083 (read_indirect_string_from_dwz): Add objfile parameter.
14084 (read_indirect_string): Add objfile parameter.
14085 (read_addr_index_1): Add dwarf2_per_objfile parameter.
14086 (read_addr_index): Use dwarf2_per_objfile from cu.
14087 (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
14088 call dw2_setup.
14089 (read_str_index): Use dwarf2_per_objfile from cu.
14090 (get_debug_line_section): Likewise.
14091 (read_formatted_entries): Add dwarf2_per_objfile parameter.
14092 (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
14093 (new_symbol_full): Use dwarf2_per_objfile from cu.
14094 (build_error_marker_type): Likewise.
14095 (lookup_die_type): Likewise.
14096 (determine_prefix): Likewise.
14097 (follow_die_offset): Likewise.
14098 (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
14099 (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
14100 (dwarf2_fetch_die_type_sect_off): Likewise.
14101 (dwarf2_get_die_type): Likewise.
14102 (follow_die_sig_1): Use dwarf2_per_objfile from cu.
14103 (get_signatured_type): Likewise.
14104 (get_DW_AT_signature_type): Likewise.
14105 (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
14106 (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
14107 (cu_debug_loc_section): Likewise.
14108 (fill_in_loclist_baton): Likewise.
14109 (dwarf2_symbol_mark_computed): Likewise.
14110 (dwarf2_find_containing_comp_unit): Change objfile parameter to
14111 dwarf2_per_objfile.
14112 (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
14113 parameter.
14114 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
14115 (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
14116 (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
14117 (set_die_type): Use dwarf2_free_objfile from cu.
14118 (get_die_type_at_offset): Likewise.
14119 (dwarf2_per_objfile_free): Don't assign global variable.
14120 (debug_names) <constructor>: Add dwarf2_per_objfile
14121 parameter, update m_debugstrlookup construction.
14122 (debug_names::debug_str_lookup): Add dwarf2_per_objfile
14123 parameter.
14124 <m_dwarf2_per_objfile>: New field.
14125 <lookup>: Use m_dwarf2_per_objfile.
14126 (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
14127 (psyms_seen_size): Likewise.
14128 (write_gdbindex): Replace objfile parameter with
14129 dwarf2_per_objfile.
14130 (write_debug_names): Likewise.
14131 (write_psymtabs_to_index): Likewise.
14132 (save_gdb_index_command): Use get_dwarf2_per_objfile, update
14133 calls.
14134
e3b94546
SM
141352018-01-07 Simon Marchi <simon.marchi@ericsson.com>
14136
14137 * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
14138 <dwarf2_per_objfile>: New field.
14139 (struct dwarf2_per_cu_data) <objfile>: Remove.
14140 <dwarf2_per_objfile>: New field.
14141 (create_cu_from_index_list): Assign dwarf2_per_objfile instead
14142 of objfile.
14143 (create_signatured_type_table_from_index): Likewise.
14144 (create_debug_type_hash_table): Likewise.
14145 (fill_in_sig_entry_from_dwo_entry): Likewise.
14146 (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
14147 (create_type_unit_group): Assign dwarf2_per_objfile instead of
14148 objfile.
14149 (create_partial_symtab): Access objfile through
14150 dwarf2_per_objfile.
14151 (process_psymtab_comp_unit_reader): Likewise.
14152 (read_comp_units_from_section): Likewise.
14153 (scan_partial_symbols): Likewise.
14154 (add_partial_symbol): Likewise.
14155 (add_partial_subprogram): Likewise.
14156 (peek_die_abbrev): Likewise.
14157 (fixup_go_packaging): Likewise.
14158 (process_full_comp_unit): Likewise.
14159 (process_full_type_unit): Likewise.
14160 (process_imported_unit_die): Likewise.
14161 (dwarf2_compute_name): Likewise.
14162 (dwarf2_physname): Likewise.
14163 (read_import_statement): Likewise.
14164 (create_cus_hash_table): Assign dwarf2_physname instead of
14165 objfile.
14166 (read_func_scope): Access objfile through dwarf2_per_objfile.
14167 (read_lexical_block_scope): Likewise.
14168 (read_call_site_scope): Likewise.
14169 (read_variable): Likewise.
14170 (dwarf2_rnglists_process): Likewise.
14171 (dwarf2_ranges_process): Likewise.
14172 (dwarf2_ranges_read): Likewise.
14173 (dwarf2_record_block_ranges): Likewise.
14174 (dwarf2_add_field): Likewise.
14175 (dwarf2_add_member_fn): Likewise.
14176 (read_structure_type): Likewise.
14177 (process_structure_scope): Likewise.
14178 (read_enumeration_type): Likewise.
14179 (read_array_type): Likewise.
14180 (read_common_block): Likewise.
14181 (read_namespace_type): Likewise.
14182 (read_namespace): Likewise.
14183 (read_module_type): Likewise.
14184 (read_tag_pointer_type): Likewise.
14185 (read_tag_ptr_to_member_type): Likewise.
14186 (read_tag_string_type): Likewise.
14187 (read_subroutine_type): Likewise.
14188 (read_typedef): Likewise.
14189 (read_base_type): Likewise.
14190 (attr_to_dynamic_prop): Likewise.
14191 (read_subrange_type): Likewise.
14192 (read_unspecified_type): Likewise.
14193 (load_partial_dies): Likewise.
14194 (read_partial_die): Likewise.
14195 (find_partial_die): Likewise.
14196 (guess_partial_die_structure_name): Likewise.
14197 (fixup_partial_die): Likewise.
14198 (read_attribute_value): Likewise.
14199 (read_addr_index_from_leb128): Likewise.
14200 (dwarf2_read_addr_index): Likewise.
14201 (dwarf2_string_attr): Likewise.
14202 (lnp_state_machine::check_line_address): Likewise.
14203 (dwarf_decode_lines_1): Likewise.
14204 (dwarf_decode_lines): Likewise.
14205 (dwarf2_start_symtab): Likewise.
14206 (var_decode_location): Likewise.
14207 (new_symbol_full): Likewise.
14208 (dwarf2_const_value_data): Likewise.
14209 (dwarf2_const_value_attr): Likewise.
14210 (dwarf2_const_value): Likewise.
14211 (die_type): Likewise.
14212 (die_containing_type): Likewise.
14213 (lookup_die_type): Likewise.
14214 (guess_full_die_structure_name): Likewise.
14215 (anonymous_struct_prefix): Likewise.
14216 (dwarf2_name): Likewise.
14217 (follow_die_ref_or_sig): Likewise.
14218 (follow_die_offset): Likewise.
14219 (follow_die_ref): Likewise.
14220 (dwarf2_fetch_die_loc_sect_off): Likewise.
14221 (dwarf2_fetch_constant_bytes): Likewise.
14222 (dwarf2_fetch_die_type_sect_off): Likewise.
14223 (dwarf2_get_die_type): Likewise.
14224 (follow_die_sig): Likewise.
14225 (decode_locdesc): Likewise.
14226 (dwarf2_per_cu_objfile): Likewise.
14227 (dwarf2_per_cu_text_offset): Likewise.
14228 (init_one_comp_unit): Assign dwarf2_per_objfile instead of
14229 objfile.
14230 (set_die_type): Access objfile through
14231 dwarf2_per_objfile.
14232
b01ba14d
SM
142332018-01-07 Simon Marchi <simon.marchi@ericsson.com>
14234
14235 * valprint.c (converted_character_d): Remove typedef.
14236 (DEF_VEC_O (converted_character_d)): Remove.
14237 (count_next_character): Use std::vector.
14238 (print_converted_chars_to_obstack): Likewise.
14239 (generic_printstr): Likewise.
14240
4d0fdd9b
SM
142412018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
14242
14243 * xml-support.h (struct gdb_xml_value): Add constructor.
14244 <value>: Change type to unique_xmalloc_ptr.
14245 (gdb_xml_value_s): Remove typedef.
14246 (DEF_VEC_O (gdb_xml_value_s)): Remove.
14247 (gdb_xml_element_start_handler): Change parameter type to
14248 std::vector.
14249 (xml_find_attribute): Likewise.
14250 * xml-support.c (xml_find_attribute): Change parameter type to
14251 std::vector and adjust.
14252 (gdb_xml_values_cleanup): Remove.
14253 (gdb_xml_parser::start_element): Adjust to std::vector.
14254 (xinclude_start_include): Change paraeter type to std::vector
14255 and adjust.
14256 * btrace.c (check_xml_btrace_version): Likewise.
14257 (parse_xml_btrace_block): Likewise.
14258 (parse_xml_btrace_pt_config_cpu): Likewise.
14259 (parse_xml_btrace_pt): Likewise.
14260 (parse_xml_btrace_conf_bts): Likewise.
14261 (parse_xml_btrace_conf_pt): Likewise.
14262 * memory-map.c (memory_map_start_memory): Likewise.
14263 (memory_map_start_property): Likewise.
14264 * osdata.c (osdata_start_osdata): Likewise.
14265 (osdata_start_item): Likewise.
14266 (osdata_start_column): Likewise.
14267 * remote.c (start_thread): Likewise.
14268 * solib-aix.c (library_list_start_library): Likewise.
14269 (library_list_start_list): Likewise.
14270 * solib-svr4.c (library_list_start_library): Likewise.
14271 (svr4_library_list_start_list): Likewise.
14272 * solib-target.c (library_list_start_segment): Likewise.
14273 (library_list_start_section): Likewise.
14274 (library_list_start_library): Likewise.
14275 (library_list_start_list): Likewise.
14276 * tracepoint.c (traceframe_info_start_memory): Likewise.
14277 (traceframe_info_start_tvar): Likewise.
14278 * xml-syscall.c (syscall_start_syscall): Likewise.
14279 * xml-tdesc.c (tdesc_start_target): Likewise.
14280 (tdesc_start_feature): Likewise.
14281 (tdesc_start_reg): Likewise.
14282 (tdesc_start_union): Likewise.
14283 (tdesc_start_struct): Likewise.
14284 (tdesc_start_flags): Likewise.
14285 (tdesc_start_enum): Likewise.
14286 (tdesc_start_field): Likewise.
14287 (tdesc_start_enum_value): Likewise.
14288 (tdesc_start_vector): Likewise.
14289
f979c73f
SM
142902018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
14291
14292 * extension.h (struct xmethod_worker) <clone>: Remove.
14293 * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
14294 Remove.
14295 (python_xmethod_worker::clone): Remove.
14296 * valops.c (find_overload_match): Use std::move instead of
14297 clone.
14298
ba18742c
SM
142992018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
14300
14301 * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
14302 (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
14303 <free_xmethod_worker_data>: Remove.
14304 <get_matching_xmethod_workers>: Chance VEC to std::vector.
14305 <get_xmethod_arg_types>: Remove.
14306 <get_xmethod_result_type>: Remove.
14307 <invoke_xmethod>: Remove.
14308 * extension.c (new_xmethod_worker): Remove.
14309 (clone_xmethod_worker): Remove.
14310 (get_matching_xmethod_workers): Return void, pass std::vector by
14311 pointer.
14312 (get_xmethod_arg_types): Rename to...
14313 (xmethod_worker::get_arg_types): ... this, and adjust.
14314 (get_xmethod_result_type): Rename to...
14315 (xmethod_worker::get_result_type): ... this, and adjust.
14316 (invoke_xmethod): Remove.
14317 (free_xmethod_worker): Remove.
14318 (free_xmethod_worker_vec): Remove.
14319 * extension.h (enum ext_lang_rc): Move here from
14320 extension-priv.h.
14321 (struct xmethod_worker): Add constructor and destructor.
14322 <data>: Remove.
14323 <value>: Remove.
14324 <invoke, clone, do_get_result_type, do_get_arg_types>: New
14325 virtual pure methods.
14326 <get_arg_types, get_result_type>: New methods.
14327 (xmethod_worker_ptr): Remove typedef.
14328 (DEF_VEC_P (xmethod_worker_ptr)): Remove.
14329 (xmethod_worker_vec): Remove typedef.
14330 (xmethod_worker_up): New typedef.
14331 (invoke_xmethod): Remove.
14332 (clone_xmethod_worker): Remove.
14333 (free_xmethod_worker): Remove.
14334 (free_xmethod_worker_vec): Remove.
14335 (get_xmethod_arg_types): Remove.
14336 (get_xmethod_result_type): Remove.
14337 * valops.c (find_method_list): Use std::vector, don't use
14338 intermediate vector.
14339 (value_find_oload_method_list): Use std::vector.
14340 (find_overload_match): Use std::vector.
14341 (find_oload_champ): Use std::vector.
14342 * value.c (value_free): Use operator delete.
14343 (value_of_xmethod): Rename to...
14344 (value_from_xmethod): ... this. Don't assign
14345 xmethod_worker::value, take rvalue-reference.
14346 (result_type_of_xmethod): Adjust.
14347 (call_xmethod): Adjust.
14348 * value.h: Include extension.h.
14349 (struct xmethod_worker): Don't forward-declare.
14350 (value_of_xmethod): Rename to...
14351 (value_from_xmethod): ... this, take rvalue-reference.
14352 * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
14353 (struct python_xmethod_worker): ... this, add constructor and
14354 destructor.
14355 <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
14356 (gdbpy_free_xmethod_worker_data): Rename to...
14357 (python_xmethod_worker::~python_xmethod_worker): ... this and
14358 adjust.
14359 (gdbpy_clone_xmethod_worker_data): Rename to...
14360 (python_xmethod_worker::clone): ... this and adjust.
14361 (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
14362 temporary vector.
14363 (gdbpy_get_xmethod_arg_types): Rename to...
14364 (python_xmethod_worker::do_get_arg_types): ... this and adjust.
14365 (gdbpy_get_xmethod_result_type): Rename to...
14366 (python_xmethod_worker::do_get_result_type): ... this and
14367 adjust.
14368 (gdbpy_invoke_xmethod): Rename to...
14369 (python_xmethod_worker::invoke): ... this and adjust.
14370 (new_python_xmethod_worker): Rename to...
14371 (python_xmethod_worker::python_xmethod_worker): ... this and
14372 adjust.
14373 * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
14374 Remove.
14375 (gdbpy_free_xmethod_worker_data): Remove.
14376 (gdbpy_get_matching_xmethod_workers): Use std::vector.
14377 (gdbpy_get_xmethod_arg_types): Remove.
14378 (gdbpy_get_xmethod_result_type): Remove.
14379 (gdbpy_invoke_xmethod): Remove.
14380 * python/python.c (python_extension_ops): Remove obsolete
14381 callbacks.
14382
e379cee6
PA
143832018-01-05 Pedro Alves <palves@redhat.com>
14384
14385 PR gdb/18653
14386 * common/signals-state-save-restore.c
14387 (save_original_signals_state): New parameter 'quiet'. Warn if we
14388 find a custom handler preinstalled, instead of internal erroring.
14389 But only warn if !quiet.
14390 * common/signals-state-save-restore.h
14391 (save_original_signals_state): New parameter 'quiet'.
14392 * main.c (captured_main_1): Move save_original_signals_state call
14393 after option handling, and pass QUIET.
14394
a655456c
PA
143952018-01-05 Pedro Alves <palves@redhat.com>
14396
14397 * spu-tdep.c (spu_catch_start): Pass
14398 symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
14399
de63c46b
PA
144002018-01-05 Pedro Alves <palves@redhat.com>
14401
14402 PR gdb/22670
14403 * ada-lang.c (literal_symbol_name_matcher): New function.
14404 (ada_get_symbol_name_matcher): Use it for
14405 symbol_name_match_type::SEARCH_NAME.
14406 * block.c (block_lookup_symbol): New parameter 'match_type'. Pass
14407 it down instead of assuming symbol_name_match_type::FULL.
14408 * block.h (block_lookup_symbol): New parameter 'match_type'.
14409 * c-valprint.c (print_unpacked_pointer): Use
14410 lookup_symbol_search_name instead of lookup_symbol.
14411 * compile/compile-object-load.c (get_out_value_type): Pass down
14412 symbol_name_match_type::SEARCH_NAME.
14413 * cp-namespace.c (cp_basic_lookup_symbol): Pass down
14414 symbol_name_match_type::FULL.
14415 * cp-support.c (cp_get_symbol_name_matcher): Handle
14416 symbol_name_match_type::SEARCH_NAME.
14417 * infrun.c (insert_exception_resume_breakpoint): Use
14418 lookup_symbol_search_name.
14419 * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
14420 * psymtab.c (maintenance_check_psymtabs): Use
14421 symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
14422 * stack.c (print_frame_args): Use lookup_symbol_search_name and
14423 SYMBOL_SEARCH_NAME.
14424 * symtab.c (lookup_local_symbol): Don't demangle the lookup name
14425 if symbol_name_match_type::SEARCH_NAME.
14426 (lookup_symbol_in_language): Pass down
14427 symbol_name_match_type::FULL.
14428 (lookup_symbol_search_name): New.
14429 (lookup_language_this): Pass down
14430 symbol_name_match_type::SEARCH_NAME.
14431 (lookup_symbol_aux, lookup_local_symbol): New parameter
14432 'match_type'. Pass it down.
14433 * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
14434 (lookup_symbol_search_name): New declaration.
14435 (lookup_symbol_in_block): New 'match_type' parameter.
14436
f98fc17b
PA
144372018-01-05 Pedro Alves <palves@redhat.com>
14438
14439 PR gdb/22670
14440 * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
14441 ada_lookup_symbol.
14442 (ada_lookup_symbol): Reimplement in terms of
14443 ada_lookup_symbol_list, bits factored out from
14444 ada_lookup_encoded_symbol.
14445
342f8240
JB
144462018-01-05 Joel Brobecker <brobecker@adacore.com>
14447
14448 * ada-exp.y (write_object_renaming): When subscripting an array
14449 using a symbol as the index, pass the block in call to
14450 ada_lookup_encoded_symbol when looking that symbol up.
14451
7150d33c
JG
144522018-01-05 Jerome Guitton <guitton@adacore.com>
14453
14454 * ada-lang.c (ada_array_length): Use ada_index_type instead of
14455 TYPE_INDEX_TYPE.
14456
cc0e770c
JB
144572018-01-05 Joel Brobecker <brobecker@adacore.com>
14458
14459 * ada-lang.c (ada_to_fixed_value_create): Add handling of
14460 the case where VALUE_LVAL (val0) is not lval_memory.
14461
f79da888 144622018-01-05 Xavier Roirand <roirand@adacore.com>
e3861a03
XR
14463
14464 * ada-valprint.c (print_optional_low_bound): Handle
14465 character-indexed array printing like boolean-indexed array
14466 printing.
14467
cd385f94
JB
144682018-01-05 Joel Brobecker <brobecker@adacore.com>
14469
14470 * NEWS: Create a new section for the next release branch.
14471 Rename the section of the current branch, now that it has
14472 been cut.
14473
09aca949
JB
144742018-01-05 Joel Brobecker <brobecker@adacore.com>
14475
14476 GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
14477 * version.in: Bump version to 8.1.50.DATE-git.
14478
9f757bf7
XR
144792018-01-03 Xavier Roirand <roirand@adacore.com>
14480
14481 * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
14482 Add field.
14483 * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
14484 Add field.
14485 (default_exception_support_info) <catch_handlers_sym>: Add field.
14486 (exception_support_info_fallback) <catch_handlers_sym>: Add field.
14487 (ada_exception_name_addr_1): Add "catch handlers" handling.
14488 (ada_exception_catchpoint_cond_string) <ex>: New parameter.
14489 Update all callers.
14490 (create_excep_cond_exprs) <ex>: Add parameter.
14491 (re_set_exception): Update create_excep_cond_exprs call.
14492 (print_it_exception, print_one_exception, print_mention_exception)
14493 (print_recreate_exception): Add "catch handler" handling.
14494 (allocate_location_catch_handlers, re_set_catch_handlers)
14495 (check_status_catch_handlers, print_it_catch_handlers)
14496 (print_one_catch_handlers, print_mention_catch_handlers)
14497 (print_recreate_catch_handlers): New function.
14498 (catch_handlers_breakpoint_ops): New variable.
14499 (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
14500 Add parameter. Add "catch handler" handling.
14501 (ada_exception_sym_name, ada_exception_breakpoint_ops):
14502 Add "catch handler" handling.
14503 (ada_exception_catchpoint_cond_string): Add "catch handler"
14504 handling.
14505 (create_ada_exception_catchpoint): Update create_excep_cond_exprs
14506 call.
14507 (catch_ada_handlers_command): New function.
14508 (initialize_ada_catchpoint_ops): Initialize "catch handlers"
14509 operations structure.
14510 (_initialize_ada_language): Add "catch handlers" command entry.
14511 * NEWS: Document "catch handlers" feature.
14512
9fe561ab
JB
145132018-01-02 Joel Brobecker <brobecker@adacore.com>
14514
14515 * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
14516 account when creating the array type of the slice.
14517 (ada_value_slice): Likewise.
14518
a405673c
JB
145192018-01-02 Joel Brobecker <brobecker@adacore.com>
14520
14521 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
14522 New enum value.
14523 (create_array_type_with_stride): Add byte_stride_prop parameter.
14524 * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
14525 New parameter. Update all callers in this file.
14526 (array_type_has_dynamic_stride): New function.
14527 (is_dynamic_type_internal, resolve_dynamic_array): Add handling
14528 of arrays with dynamic byte strides.
14529 * dwarf2read.c (read_array_type): Add support for dynamic
14530 DW_AT_byte_stride attributes.
14531
74a2f8ff
JB
145322018-01-02 Joel Brobecker <brobecker@adacore.com>
14533
14534 * dwarf2read.c (read_unspecified_type): Treat
14535 DW_TAG_enumeration_type DIEs from Ada units as stubs.
14536
e2882c85
JB
145372018-01-01 Joel Brobecker <brobecker@adacore.com>
14538
14539 Update copyright year range in all GDB files.
14540
5e70ee09 145412018-01-01, 18 Joel Brobecker <brobecker@adacore.com>
1690bb24
JB
14542
14543 * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
14544 and gdb/testsuite/gdb.base/step-line.c.
14545
0f0c98a8
JB
145462018-01-01 Joel Brobecker <brobecker@adacore.com>
14547
14548 * copyright.py (main): Dump the contents of
14549 MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
14550 even if BY_HAND is empty.
14551
82e1e79a
JB
145522018-01-01 Joel Brobecker <brobecker@adacore.com>
14553
14554 * top.c (print_gdb_version): Update Copyright year in version
14555 message.
14556
053f54e5 145572018-01-01 Joel Brobecker <brobecker@adacore.com>
47fea877 14558
053f54e5 14559 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
47fea877 14560
053f54e5 14561For older changes see ChangeLog-2017.
c906108c
SS
14562\f
14563Local Variables:
14564mode: change-log
14565left-margin: 8
14566fill-column: 74
14567version-control: never
57da7796 14568coding: utf-8
c906108c 14569End:
This page took 2.883787 seconds and 4 git commands to generate.