Handle R_RISCV_32_PCREL in readelf
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
add5ded5
TT
12018-10-06 Tom Tromey <tom@tromey.com>
2
3 PR python/19399:
4 * python/py-inferior.c: Add "architecture" entry.
5 (infpy_architecture): New function.
6
51e78fc5
TT
72018-10-06 Tom Tromey <tom@tromey.com>
8
9 PR python/21765:
10 * python/py-symbol.c (gdbpy_initialize_symbols): Redefine
11 SYMBOL_VARIABLES_DOMAIN, SYMBOL_FUNCTIONS_DOMAIN,
12 SYMBOL_TYPES_DOMAIN. Define SYMBOL_MODULE_DOMAIN,
13 SYMBOL_COMMON_BLOCK_DOMAIN, SYMBOL_LOC_COMMON_BLOCK.
14
a8a5dbca
TT
152018-10-06 Tom Tromey <tom@tromey.com>
16
17 PR build/17077:
18 * Makefile.in (OPCODES_CFLAGS): Remove "-I$(OPCODES_SRC)/..".
19 * arc-tdep.c, frv-tdep.c, lm32-tdep.c, mep-tdep.c,
20 microblaze-tdep.c, or1k-tdep.h: Use ../opcodes, not opcodes, in
21 #include.
22
2a8be203
TT
232018-10-06 Tom Tromey <tom@tromey.com>
24
25 * python/py-breakpoint.c (bppy_get_location): Handle a
26 bp_breakpoint without a location.
27
2fb009bb
TT
282018-10-06 Tom Tromey <tom@tromey.com>
29
30 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq)
31 (_RegEx): Reformat help text.
32 * python/lib/gdb/function/caller_is.py (CallerIs, CallerMatches)
33 (AnyCallerIs, AnyCallerMatches): Reformat help text.
34 * python/lib/gdb/function/as_string.py (_AsString): Reformat help
35 text.
36 * python/lib/gdb/command/xmethods.py (InfoXMethod)
37 (EnableXMethod, DisableXMethod): Remove help indentation.
38 Capitalize meta-syntactic variables.
39 * python/lib/gdb/command/unwinders.py (InfoUnwinder)
40 (EnableUnwinder, DisableUnwinder): Remove help indentation.
41 Capitalize meta-syntactic variables.
42 * python/lib/gdb/command/explore.py (ExploreCommand)
43 (ExploreValueCommand, ExploreTypeCommand): Reformat help text.
44 * python/lib/gdb/command/type_printers.py (InfoTypePrinter)
45 (EnableTypePrinter, DisableTypePrinter): Remove help indentation.
46 * python/lib/gdb/command/pretty_printers.py (InfoPrettyPrinter):
47 Remove help indentation.
48 (EnablePrettyPrinter, DisablePrettyPrinter): Likewise.
49 * python/lib/gdb/command/frame_filters.py (EnableFrameFilter)
50 (DisableFrameFilter, SetFrameFilterPriority)
51 (ShowFrameFilterPriority, InfoFrameFilter): Reword help text.
52
7a956928
TT
532018-10-06 Tom Tromey <tom@tromey.com>
54
55 PR tui/28819:
56 * tui/tui-io.c (gdb_wgetch): New function.
57 (tui_mld_getc, tui_getc): Use it.
58
f8740dc5
TT
592018-10-05 Tom Tromey <tom@tromey.com>
60
61 * sol-thread.c (sol_thread_target::wait): Rename inner
62 "save_ptid".
63
96643e35
TT
642018-10-04 Tom Tromey <tom@tromey.com>
65
66 * configure: Rebuild.
67 * warning.m4 (AM_GDB_WARNINGS): Add -Wshadow=local.
68
d951f98b
TT
692018-10-04 Tom Tromey <tom@tromey.com>
70
71 * guile/scm-frame.c (gdbscm_frame_read_var): Remove inner
72 declaration of "block".
73
b8c88847
TT
742018-10-04 Tom Tromey <tom@tromey.com>
75
76 * common/filestuff.c (fdwalk): Remove inner declaration of
77 "result".
78
ef789dc4
TT
792018-10-04 Tom Tromey <tom@tromey.com>
80
81 * msp430-tdep.c (msp430_push_dummy_call): Rename inner
82 "structs_addr" and hoist declaration.
83
3fba72f7
TT
842018-10-04 Tom Tromey <tom@tromey.com>
85
86 * linux-tdep.c (linux_make_mappings_corefile_notes): Introduce new
87 variable "size".
88
795afcbb
TT
892018-10-04 Tom Tromey <tom@tromey.com>
90
91 * mdebugread.c (parse_partial_symbols): Use std::string.
92
b926417a
TT
932018-10-04 Tom Tromey <tom@tromey.com>
94
95 * ctf.c (SET_ARRAY_FIELD): Rename "u32".
96 * p-valprint.c (pascal_val_print): Split inner "i" variable.
97 * xtensa-tdep.c (xtensa_push_dummy_call): Declare "i" in loop
98 header.
99 * xstormy16-tdep.c (xstormy16_push_dummy_call): Declare "val" in
100 more inner scope.
101 * xcoffread.c (read_xcoff_symtab): Rename inner "symbol".
102 * varobj.c (varobj_update): Rename inner "newobj",
103 "type_changed".
104 * valprint.c (generic_emit_char): Rename inner "buf".
105 * valops.c (find_overload_match): Rename inner "temp".
106 (value_struct_elt_for_reference): Declare "v" in more inner
107 scope.
108 * v850-tdep.c (v850_push_dummy_call): Rename "len".
109 * unittests/array-view-selftests.c (run_tests): Rename inner
110 "vec".
111 * tui/tui-stack.c (tui_show_frame_info): Declare "i" in loop
112 header.
113 * tracepoint.c (merge_uploaded_trace_state_variables): Declare
114 "tsv" in more inner scope.
115 (print_one_static_tracepoint_marker): Rename inner
116 "tuple_emitter".
117 * tic6x-tdep.c (tic6x_analyze_prologue): Declare "inst" lower.
118 (tic6x_push_dummy_call): Don't redeclare "addr".
119 * target-float.c: Declare "dto" lower.
120 * symtab.c (lookup_local_symbol): Rename inner "sym".
121 (find_pc_sect_line): Rename inner "pc".
122 * stack.c (print_frame): Don't redeclare "gdbarch".
123 (return_command): Rename inner "gdbarch".
124 * s390-tdep.c (s390_prologue_frame_unwind_cache): Renam inner
125 "sp".
126 * rust-lang.c (rust_internal_print_type): Declare "i" in loop
127 header.
128 * rs6000-tdep.c (ppc_process_record): Rename inner "addr".
129 * riscv-tdep.c (riscv_push_dummy_call): Declare "info" in inner
130 scope.
131 * remote.c (remote_target::update_thread_list): Don't redeclare
132 "tp".
133 (remote_target::process_initial_stop_replies): Rename inner
134 "thread".
135 (remote_target::remote_parse_stop_reply): Don't redeclare "p".
136 (remote_target::wait_as): Don't redeclare "stop_reply".
137 (remote_target::get_thread_local_address): Rename inner
138 "result".
139 (remote_target::get_tib_address): Likewise.
140
141 * regcache.c (cooked_read_test): Rename "regnum".
142 * record-btrace.c (cmd_record_btrace_start): Rename inner
143 "exception".
144 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Declare "i" in
145 loop header.
146 * ppc-linux-tdep.c (ppc_linux_syscall_record): Declare "i" in loop
147 header.
148 (ppu2spu_sniffer): Rename inner "buf".
149 * parse.c (operator_check_standard): Rename inner "type",
150 "objfile".
151 * p-valprint.c (pascal_val_print): Introduce new scope for
152 "low_bound", "high_bound".
153 * p-exp.y (yylex): Declare "i" in loop header.
154 * objfiles.c (objfile_relocate1): Declare "i" in loop header.
155 Lower declaration of "s".
156 * nios2-tdep.c (nios2_analyze_prologue): Declare "i" in loop
157 header.
158 (nios2_push_dummy_call): Rename "len".
159 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Rename static
160 "buf".
161 (linux_xfer_osdata_fds, linux_xfer_osdata_shm)
162 (linux_xfer_osdata_sem, linux_xfer_osdata_msg)
163 (linux_xfer_osdata_modules): Likewise.
164 * mips-tdep.c (mips_eabi_push_dummy_call): Rename outer "len".
165 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
166 (mips_o64_push_dummy_call): Likewise.
167 * microblaze-tdep.c (microblaze_analyze_prologue): Rename inner
168 "op".
169 * mi/mi-main.c (list_available_thread_groups): Rename inner
170 "tuple_emitter".
171 (mi_cmd_data_read_memory): Rename inner "opts".
172 * mi/mi-cmd-var.c (varobj_update_one): Rename inner
173 "tuple_emitter".
174 * mep-tdep.c (mep_analyze_prologue): Declare "rn" in loop header.
175 * mdebugread.c (parse_symbol): Rename inner "b". Declare "f" in
176 more inner scope.
177 (parse_partial_symbols): Rename inner "pst", "p", "name"
178 * main.c (captured_main_1): Rename inner "i"s.
179 * machoread.c (macho_symfile_read_all_oso): Don't redeclare
180 "oso2".
181 * linux-tdep.c (linux_info_proc): Rename inner "filename".
182 * linespec.c (linespec_lexer_lex_string): Rename inner "p".
183 * infrun.c (handle_no_resumed): Don't redeclare "thread".
184 (handle_signal_stop): Rename inner "gdbarch".
185 (handle_command): Declare "signum" in loop header.
186 * ia64-tdep.c (ia64_pseudo_register_read): Don't redeclare
187 "status".
188 (examine_prologue): Rename inner "sol" and "sof".
189 (ia64_extract_return_value): Rename inner "val". Declare another
190 "val" in a more inner scope.
191 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Declare "buf" in
192 inner scope.
193 * guile/scm-symbol.c (gdbscm_lookup_symbol): Rename inner
194 "except".
195 * findvar.c (default_read_var_value): Don't redeclare "addr".
196 * f-exp.y (yylex): Declare "i" in loop header.
197 * eval.c (evaluate_subexp_standard): Don't redeclare "type".
198 Rename inner "type", "expect_type".
199 (evaluate_subexp_for_sizeof): Rename inner "pc".
200 * elfread.c (elf_symfile_read): Rename inner "abfd".
201 * dwarf2read.c (read_debug_names_from_section): Don't redeclare
202 "bytes_read".
203 (process_psymtab_comp_unit_reader): Don't redeclare "gdbarch".
204 (add_partial_subprogram): Rename inner "lowpc" and "highpc".
205 (dwarf_decode_line_header): Rename inner "lh".
206 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Don't redeclare
207 "offset". Declare "i" in loop header.
208 (disassemble_dwarf_expression): Rename inner "addr_size".
209 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Rename
210 inner "result".
211 (dwarf_expr_context::execute_stack_op): Rename inner "offset".
212 * dwarf2-frame.c (decode_frame_entry_1): Rename inner "length"s.
213 * disasm.c (do_mixed_source_and_assembly_deprecated): Rename inner
214 "inner_list_emitter".
215 (do_mixed_source_and_assembly): Rename inner "tuple_emitter".
216 * disasm-selftests.c (print_one_insn_test): Wrap "bplen"
217 declaration in a block.
218 * csky-tdep.c (csky_analyze_prologue): Declare "offset" lower.
219 * cp-valprint.c (cp_print_value_fields): Don't redeclare
220 "obstack_final_size".
221 * cp-support.c (inspect_type): Declare "i" in loop header.
222 * compile/compile.c (compile_instance::insert_symbol_error):
223 Rename inner "e".
224 * common/agent.c (agent_run_command): Remove inner "ret"
225 declaration.
226 * coffread.c (coff_symfile_read): Rename inner "name".
227 (coff_symfile_read): Rename inner "abfd".
228 * cli/cli-utils.c (get_number_trailer): Rename inner "val".
229 * cli/cli-cmds.c (print_disassembly): Rename inner "low" and
230 "high".
231 * c-exp.y (lex_one_token): Move "len" declaration lower.
232 * breakpoint.c (create_longjmp_master_breakpoint): Don't redeclare
233 "gdbarch".
234 (create_exception_master_breakpoint): Likewise. Don't redeclare
235 "b".
236 (watch_command_1): Declare "mark" later.
237 (clear_command): Don't shadow "a" or "b".
238 (delete_command): Rename inner "b".
239 (delete_trace_command): Likewise.
240 * arm-tdep.c (thumb_process_displaced_32bit_insn): Rename inner
241 "op".
242 (arm_gdbarch_init): Remove inner "e_flags".
243 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Declare
244 "offset" in inner blocks.
245
1f88d0c8
SM
2462018-10-04 Simon Marchi <simon.marchi@ericsson.com>
247
248 * dwarf-index-write.c (file_write): Don't write if the vector is
249 empty.
250
5c4481cc
TV
2512018-10-05 Tom de Vries <tdevries@suse.de>
252
253 * python/py-progspace.c (pspy_solib_name): Fix type mismatch in
254 PyArg_ParseTuple call.
255
96b1ad86
TV
2562018-10-05 Tom de Vries <tdevries@suse.de>
257
258 * python/py-record-btrace.c (recpy_bt_goto): Fix type mismatch in
259 PyArg_ParseTuple call.
260
d2f7dcb2
JB
2612018-10-04 Joel Brobecker <brobecker@adacore.com>
262
263 * psymtab.c (recursively_search_psymtabs): Reformat parameters
264 to avoid exceeding 80 characters per line limit.
265
5ca8c39f
TT
2662018-10-04 Tom Tromey <tom@tromey.com>
267
268 * symfile.c (syms_from_objfile_1, finish_new_objfile)
269 (reread_symbols): Update.
270 * complaints.h (clear_complaints): Remove argument.
271 * complaints.c (enum complaint_series): Remove.
272 (series): Remove global.
273 (complaint_internal): Update.
274 (clear_complaints): Remove argument.
275
e79497a1
TT
2762018-10-04 Tom Tromey <tom@tromey.com>
277
278 * symfile.c (symbol_file_add_with_addrs): Do not print "no
279 debugging symbols" message if there is a separate debug objfile.
280
3453e7e4
TT
2812018-10-04 Tom Tromey <tom@tromey.com>
282
283 PR cli/19551:
284 * symfile.c (symbol_file_add_with_addrs): Update output.
285 * psymtab.c (require_partial_symbols): Update output.
286
6afcf761
TT
2872018-10-04 Tom Tromey <tom@tromey.com>
288
289 PR cli/22234:
290 * complaints.c: Emit \n.
291
22068491
TT
2922018-10-04 Tom Tromey <tom@tromey.com>
293
294 * symfile.c (symbol_file_add_with_addrs, symbol_file_clear)
295 (separate_debug_file_exists, find_separate_debug_file)
296 (add_symbol_file_command, reread_symbols, allocate_symtab)
297 (allocate_compunit_symtab): Use filtered printing, not
298 unfiltered.
299 * psymtab.c (require_partial_symbols, dump_psymtab)
300 (allocate_psymtab): Use filtered printing, not unfiltered.
301
9fdd7193
TT
3022018-10-04 Tom Tromey <tom@tromey.com>
303
304 * complaints.c (complaint_internal): Correctly check complaint
305 count.
306
3f2cf4dc
TT
3072018-10-04 Tom Tromey <tom@tromey.com>
308
309 * complaints.h (struct complaints): Remove declaration.
310 * complaints.c (clear_complaints): Remove an unused variable.
311
4f9bdf7f
RO
3122018-10-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
313
314 * MAINTAINERS (Write After Approval): Add self.
315
875e5398
TT
3162018-10-03 Tom Tromey <tom@tromey.com>
317
318 * guile/scm-value.c (gdbscm_value_to_string): Initialize
319 "buffer_contents".
320 * coffread.c (coff_symtab_read): Initialize "newobj".
321
8634679f
SM
3222018-10-03 Simon Marchi <simon.marchi@polymtl.ca>
323
324 * dwarf2read.c (read_func_scope): Remove struct keyword in
325 range-based for.
326
f35d5ade
TT
3272018-10-03 Tom Tromey <tom@tromey.com>
328
329 * README: Mention --enable-ubsan.
330 * NEWS: Mention --enable-ubsan.
331 * acinclude.m4: Include sanitize.m4.
332 * configure: Rebuild.
333 * configure.ac: Call AM_GDB_UBSAN.
334 * sanitize.m4: New file.
335
1dffa580
TT
3362018-10-03 Tom Tromey <tom@tromey.com>
337
338 * expression.h (enum exp_opcode): Use uint8_t as base type.
339 * expprint.c (op_name): Handle invalid opcodes.
340
5e70ee09
TT
3412018-10-03 Tom Tromey <tom@tromey.com>
342
343 * parse.c (prefixify_expression): Add assert.
344 (parse_exp_in_context_1): Throw exception if the expression is
345 empty.
346
4dd1b460
TT
3472018-10-03 Tom Tromey <tom@tromey.com>
348
349 * dwarf2read.c (read_signed_leb128): Work in ULONGEST.
350
20562150
TT
3512018-10-03 Tom Tromey <tom@tromey.com>
352
353 * c-exp.y (parse_number): Work in unsigned. Remove casts.
354
d359392f
TT
3552018-10-03 Tom Tromey <tom@tromey.com>
356
357 * dwarf2read.c (read_subrange_type): Make "negative_mask"
358 unsigned.
359
0101665f
TT
3602018-10-03 Tom Tromey <tom@tromey.com>
361
362 * findvar.c (extract_integer): Do work in an unsigned type.
363
ad69edbb
TT
3642018-10-03 Tom Tromey <tom@tromey.com>
365
366 * common/enum-flags.h (enum_flags::operator~): Add static assert.
367 * symfile-add-flags.h (enum symfile_add_flag): Use unsigned as
368 base type.
369 * objfile-flags.h (enum objfile_flag): Use unsigned as base type.
370 * gdbtypes.h (enum type_instance_flag_value): Use unsigned as base
371 type.
372 * c-lang.h (enum c_string_type_values): Use unsigned as base
373 type.
374 * btrace.h (enum btrace_thread_flag): Use unsigned as base type.
375
780942fc
TT
3762018-10-03 Tom Tromey <tom@tromey.com>
377
378 * dwarf2-frame.h (dwarf2_frame_state_reg_info)
379 <~dwarf2_frame_state_reg_info>: Update.
380 <dwarf2_frame_state_reg_info>: Update.
381 <alloc_regs>: Add assertion. Update.
382 <reg>: Now a std::vector.
383 <num_regs>: Remove.
384 <swap>: Update.
385 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
386 (execute_cfa_program_test, dwarf2_frame_cache): Update.
387
10657c04
TT
3882018-10-03 Tom Tromey <tom@tromey.com>
389
390 * namespace.c (add_using_directive): Don't pass NULL to memcpy.
391
34c0fc00
PW
3922018-10-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
393
394 * tid-parse.c (tid_is_in_list): Fix wrong 'See' comment.
395
2398abf8
TT
3962018-10-02 Tom Tromey <tom@tromey.com>
397
398 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Use pulongest.
399
c1168a2f
JD
4002018-10-02 John Darrington <john@darrington.wattle.id.au>
401
402 * NEWS: Mention changed commands.
403 * ser-uds.c: New file.
404 * configure.ac (SER_HARDWIRE): Add ser-uds.o.
405 * configure: Regenerate.
406 * Makefile.in: Add new file.
407 * serial.c (serial_open): Check if filename is a socket
408 and lookup the appropriate interface accordingly.
409
05c71722
AH
4102018-10-01 Alan Hayward <alan.hayward@arm.com>
411
412 * aarch64-linux-tdep.c (AARCH64_SIGCONTEXT_RESERVED_OFFSET): Add
413 define.
414 (AARCH64_EXTRA_MAGIC): Likewise.
415 (AARCH64_FPSIMD_MAGIC): Likewise.
416 (AARCH64_SVE_MAGIC): Likewise.
417 (AARCH64_EXTRA_DATAP_OFFSET): Likewise.
418 (AARCH64_FPSIMD_FPSR_OFFSET): Likewise.
419 (AARCH64_FPSIMD_FPCR_OFFSET): Likewise.
420 (AARCH64_FPSIMD_V0_OFFSET): Likewise.
421 (AARCH64_FPSIMD_VREG_SIZE): Likewise.
422 (AARCH64_SVE_CONTEXT_VL_OFFSET): Likewise.
423 (AARCH64_SVE_CONTEXT_REGS_OFFSET): Likewise.
424 (AARCH64_SVE_CONTEXT_P_REGS_OFFSET): Likewise.
425 (AARCH64_SVE_CONTEXT_FFR_OFFSET): Likewise.
426 (AARCH64_SVE_CONTEXT_SIZE): Likewise.
427 (read_aarch64_ctx): Add function.
428 (aarch64_linux_sigframe_init): Detect FP registers.
429
c74e7cb9
AH
4302018-10-01 Alan Hayward <alan.hayward@arm.com>
431
432 * aarch64-tdep.c (AARCH64_Q0_REGNUM): Move to here.
433 (AARCH64_D0_REGNUM): Likewise.
434 (AARCH64_S0_REGNUM): Likewise.
435 (AARCH64_H0_REGNUM): Likewise.
436 (AARCH64_B0_REGNUM): Likewise.
437 (AARCH64_SVE_V0_REGNUM): Likewise.
438 * arch/aarch64.h (AARCH64_Q0_REGNUM): Move from here.
439 (AARCH64_D0_REGNUM): Likewise.
440 (AARCH64_S0_REGNUM): Likewise.
441 (AARCH64_H0_REGNUM): Likewise.
442 (AARCH64_B0_REGNUM): Likewise.
443 (AARCH64_SVE_V0_REGNUM): Likewise.
444
12b164e9
GB
4452018-10-01 Gary Benson <gbenson@redhat.com>
446
447 * gdb_proc_service.h (gdb_prfpregset_t): Remove typedef.
448 * proc-service.c (ps_lgetfpregs, ps_lsetfpregs): Use
449 prfpregset_t instead of gdb_prfpregset_t.
450 * configure.ac (PRFPREGSET_T_BROKEN): Remove check.
451 * configure, config.in: Rebuild.
452
7c619dbd
GB
4532018-10-01 Gary Benson <gbenson@redhat.com>
454
455 * common/gdb_proc_service.h: New file, factored out from...
456 * gdb_proc_service.h: Moved common code to the above file.
457 * Makefile.in (HFILES_NO_SRCDIR): Add the above new file.
458
358ffcf2
GB
4592018-10-01 Gary Benson <gbenson@redhat.com>
460
461 * gdb_proc_service.h: Use elf_gregset_t if prgregset_t is
462 undefined. Use elf_fpregset_t if prfpregset_t is undefined.
463
43b7e92b
GB
4642018-10-01 Gary Benson <gbenson@redhat.com>
465
466 * configure.ac: Check if sys/procfs.h defines elf_fpregset_t.
467 (AC_CHECK_HEADERS): Check for linux/elf.h.
468 * configure, config.in: Rebuild.
469 * gdb_proc_service.h: Include linux/elf.h if sys/procfs.h
470 doesn't define elf_fpregset_t.
471
3795e814
GB
4722018-10-01 Gary Benson <gbenson@redhat.com>
473
474 * gdb_proc_service.h: Whitespace change.
475
4176f14d
TT
4762018-10-01 Tom Tromey <tom@tromey.com>
477
478 * unittests/scoped_mmap-selftests.c: Don't check HAVE_UNISTD_H.
479 * unittests/scoped_fd-selftests.c: Don't check HAVE_UNISTD_H.
480 * common/scoped_fd.h: Don't check HAVE_UNISTD_H.
481
a95746f9
TT
4822018-10-01 Tom Tromey <tom@tromey.com>
483
484 * README: Minor change.
485
dd203782
PA
4862018-09-30 Pedro Alves <palves@redhat.com>
487
488 * darwin-nat-info.c (darwin_debug_regions_recurse)
489 (info_mach_exceptions_command): Remove unused local variables.
490 * darwin-nat.c (darwin_decode_notify_message)
491 (darwin_nat_target::resume, darwin_nat_target::mourn_inferior)
492 (darwin_stop_inferior, darwin_setup_exceptions)
493 (darwin_nat_target::kill, darwin_attach_pid, darwin_ptrace_him)
494 (darwin_nat_target::attach, darwin_nat_target::detach)
495 (darwin_read_write_inferior, darwin_read_dyld_info): Remove unused
496 local variables.
497 * i386-darwin-nat.c (i386_darwin_dr_set): Remove unused local
498 variables.
499
c82a2e6f
TT
5002018-09-29 Tom Tromey <tom@tromey.com>
501
502 * README: Remove some leftover text.
503
7f0bd420
TT
5042018-09-29 Tom Tromey <tom@tromey.com>
505
506 * PROBLEMS: Rewrite.
507 * README: Update.
508
f37bc8b1
JB
5092018-09-28 John Baldwin <jhb@FreeBSD.org>
510
511 * disasm-selftests.c (print_one_insn_test): Add bfd_arch_riscv to
512 case with explicit breakpoint kind.
513 * riscv-tdep.c (show_use_compressed_breakpoints): Remove
514 'additional_info' and related logic.
515 (riscv_debug_breakpoints): New variable.
516 (riscv_breakpoint_kind_from_pc): Use the length of the existing
517 instruction to determine the breakpoint kind.
518 (_initialize_riscv_tdep): Add 'set/show debug riscv breakpoints'
519 flag. Update description of 'set/show riscv
520 use-compressed-breakpoints' flag.
521
f67ffa6a
AB
5222018-09-28 Andrew Burgess <andrew.burgess@embecosm.com>
523
524 (NEWS): Mention changes to frame related commands.
525 * cli/cli-decode.c (add_cmd_suppress_notification): New function.
526 (add_prefix_cmd_suppress_notification): New function.
527 (add_com_suppress_notification): Call
528 add_cmd_suppress_notification.
529 * command.h (add_cmd_suppress_notification): Declare.
530 (add_prefix_cmd_suppress_notification): Declare.
531 * mi/mi-cmd-stack.c: Add 'safe-ctype.h' include.
532 (parse_frame_specification): Moved from stack.c, with
533 simplification to handle a single argument.
534 (mi_cmd_stack_select_frame): Use parse_frame_specification, the
535 switch to the selected frame. Add a header comment.
536 * stack.c: Remove 'safe-ctype.h' include.
537 (find_frame_for_function): Add declaration.
538 (find_frame_for_address): New function.
539 (parse_frame_specification): Moved into mi/mi-cmd-stack.c.
540 (frame_selection_by_function_completer): New function.
541 (info_frame_command): Rename to...
542 (info_frame_command_core): ...this, and update parameter types.
543 (select_frame_command): Rename to...
544 (select_frame_command_core): ...this, and update parameter types.
545 (frame_command): Rename to...
546 (frame_command_core): ...this, and update parameter types.
547 (class frame_command_helper): New class to wrap implementations of
548 frame related sub-commands.
549 (frame_apply_cmd_list): New static global.
550 (frame_cmd_list): Make static.
551 (select_frame_cmd_list): New global for sub-commands.
552 (info_frame_cmd_list): New global for sub-commands.
553 (_initialize_stack): Register sub-commands for 'frame',
554 'select-frame', and 'info frame'. Update 'frame apply' commands
555 to use frame_apply_cmd_list. Move function local static
556 frame_apply_list to file static frame_apply_cmd_list for
557 consistency.
558 * stack.h (select_frame_command): Delete declarationn.
559 (select_frame_for_mi): Declare new function.
560
d354055e
AB
5612018-09-26 Andrew Burgess <andrew.burgess@embecosm.com>
562
563 * riscv-tdep.c (riscv_insn::decode): Decode c.lui.
564 (riscv_scan_prologue): Split handling of AUIPC, LUI, ADD, ADDI,
565 and NOP.
566
85392414
SM
5672018-09-26 Simon Marchi <simon.marchi@ericsson.com>
568
569 * elf32-nds32.c (elf32_nds32_allocate_dynrelocs): Remove.
570
896ee098
TT
5712018-09-26 Tom Tromey <tom@tromey.com>
572
573 * valops.c (auto_abandon): Remove dead code.
574
57dbb3af
TT
5752018-09-26 Tom Tromey <tom@tromey.com>
576
577 * tui/tui-win.c (WIN_HEIGHT_USAGE): Remove extra ">"s.
578
b5a9bfbe
TT
5792018-09-24 Tom Tromey <tom@tromey.com>
580
581 * common/pathstuff.c (get_standard_cache_dir): Make
582 "xdg_cache_home" and "home" const.
583 * top.c (init_history): Make "tmpenv" const.
584 * main.c (get_init_files): Make "homedir" const.
585
ae778caf
TT
5862018-09-23 Tom Tromey <tom@tromey.com>
587
588 PR python/18852:
589 * python/py-param.c (get_set_value): Use gdbpy_handle_exception.
590
2b4ad2fe
TT
5912018-09-23 Tom Tromey <tom@tromey.com>
592
593 * python/py-function.c (fnpy_call): Use gdbpy_handle_exception.
594 * python/py-cmd.c (cmdpy_function): Use gdbpy_handle_exception.
595 * python/python-internal.h (gdbpy_handle_exception): Declare.
596 * python/py-utils.c (gdbpy_handle_exception): New function.
597
fd3ba736
TT
5982018-09-23 Tom Tromey <tom@tromey.com>
599
600 PR python/17284:
601 * python/py-type.c (typy_template_argument): Check for negative
602 argument number.
603
39a24317
TT
6042018-09-23 Tom Tromey <tom@tromey.com>
605
606 PR python/14062:
607 * python/python.c (gdbpy_run_events): Do not ignore exceptions.
608
f5769a2c
TT
6092018-09-23 Tom Tromey <tom@tromey.com>
610
611 PR python/18170:
612 * python/py-value.c (valpy_int): Allow conversion from pointer
613 type.
614
1c1e54f6
TT
6152018-09-23 Tom Tromey <tom@tromey.com>
616
617 PR python/20126:
618 * python/py-value.c (valpy_int): Respect type sign.
619
fb4fa946
TT
6202018-09-23 Tom Tromey <tom@tromey.com>
621
622 PR python/18352;
623 * python/py-value.c (valpy_float): Allow conversions from int or
624 char.
625 (valpy_int, valpy_long): Allow conversions from float.
626
65773341
TT
6272018-09-23 Tom Tromey <tom@tromey.com>
628
629 * ctf.c (ctf_start): Use gdb_fopen_cloexec.
630 * common/scoped_mmap.c (mmap_file): Use gdb_open_cloexec.
631
1db88d22
RO
6322018-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
633
634 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Also recognize
635 __sighndlr.
636 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Likewise.
637
a44294f5
JT
6382018-08-02 Jon Turney <jon.turney@dronecode.org.uk>
639
640 * windows-nat.c (windows_nat_target::wait): Remove a spurious
641 target_terminal::ours().
642
0c0a40e0
SM
6432018-09-23 Simon Marchi <simon.marchi@ericsson.com>
644
645 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): Change type
646 of vl to ULONGEST.
647
4daf1902
YS
6482018-09-21 Yacov Simhony <ysimhony@gmail.com>
649
650 * breakpoint.c (update_inserted_breakpoint_locations): Remove
651 redundant condition.
652
c475f569
RO
6532018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
654
655 * proc-utils.h (PROC_CTL_WORD_TYPE): Remove.
656
657 * procfs.c: Don't check for PR_MODEL_NATIVE definition.
658 * sparc-sol2-nat.c: Likewise. Remove Linux, __arch64__ references.
659 * sol-thread.c (ps_pdmodel): Don't guard definition.
660
661 * procfs.c: Fix formatting.
662
663 * procfs.c (sysset_t_alloc): Remove.
664 (create_procinfo): Use XNEW instead of sysset_t_alloc.
665 (procfs_debug_inferior): Likewise.
666 (procfs_set_exec_trap): Likewise.
667 (proc_set_traced_sysentry): Don't allocate argp dynamically.
668 (proc_set_traced_sysexit): Likewise.
669
670 * procfs.c (create_procinfo): Use xsnprintf to fix ARI warning.
671 (dead_procinfo): Likewise.
672 (proc_warn): Likewise.
673 (proc_error): Likewise.
674 (proc_get_LDT_entry): Likewise.
675 (do_attach): Likewise.
676 (procfs_target::pid_to_str): Likewise.
677 (iterate_over_mappings): Likewise.
678
679 * procfs.c (create_procinfo): Fix ARI warning.
680 (proc_get_status): Likewise.
681 (proc_stop_process): Likewise.
682 (proc_run_process): Likewise.
683 (proc_kill): Likewise.
684 (proc_get_LDT_entry): Likewise.
685 (procfs_find_LDT_entry): Likewise.
686 (proc_update_threads): Likewise.
687 (proc_iterate_over_threads): Likewise.
688 (do_attach): Likewise.
689 (procfs_xfer_memory): Likewise.
690 (invalidate_cache): Likewise.
691 (procfs_target::resume): Likewise.
692 (procfs_init_inferior): Likewise.
693 (procfs_set_exec_trap): Likewise.
694 (procfs_target::thread_alive): Likewise.
695 (procfs_target::pid_to_exec_file): Likewise.
696 (iterate_over_mappings): Likewise.
697 (procfs_target::make_corefile_notes): Likewise.
698 * sol-thread.c (sol_thread_target::thread_alive): Likewise.
699
700 * procfs.c (procfs_find_LDT_entry): Silence ARI warning.
701 (procfs_find_LDT_entry): Likewise.
702 * sol-thread.c (ps_lgetLDT): Likewise.
703
4206c05e
RO
7042018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
705
706 PR tdep/17903
707 * procfs.c (procfs_target): Declare pid_to_exec_file.
708 (procfs_target::pid_to_exec_file): New.
709
3d282ac3
RO
7102018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
711
712 * auxv.c (default_print_auxv_entry): Reflect AT_SUN_CAP_HW1
713 renaming.
714 Handle AT_SUN_EMULATOR, AT_SUN_BRANDNAME, AT_SUN_BRAND_AUX1,
715 AT_SUN_BRAND_AUX2, AT_SUN_BRAND_AUX3, AT_SUN_CAP_HW2.
716
8c93fae6
RO
7172018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
718
719 * i386-v4-nat.c (regmap, supply_gregset, fill_gregset)
720 (supply_fpregset, fill_fpregset): Move ...
721 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64]: ... here.
722 Remove HAVE_GREGSET_T, HAVE_FPREGET_T guards.
723 Remove references to ioctl-based procfs.
724 Include <sys/reg.h>.
725 Remove PR_MODEL_NATIVE guards.
726 * configure.nat <sol2, i386> (NATDEPFILES): Remove i386-v4-nat.o.
727 * Makefile.in (ALLDEPFILES): Remove i386-v4-nat.c.
728
79b32f4a
XR
7292018-09-19 Xavier Roirand <roirand@adacore.com>
730
731 PR gdb/20981:
732 * solib-darwin.c (darwin_get_dyld_bfd): New function.
733 (darwin_solib_get_all_image_info_addr_at_init): Update call.
734 (darwin_solib_create_inferior_hook): Handle unrelocated dyld.
735
07147793
JB
7362018-09-19 John Baldwin <jhb@FreeBSD.org>
737
738 * fbsd-tdep.c (fbsd_print_sockaddr_in): Style fix.
739 (fbsd_print_sockaddr_in6): Likewise.
740
23be8da7
RB
7412018-09-19 Richard Bunt <richard.bunt@arm.com>
742 Chris January <chris.january@arm.com>
743
744 * eval.c (skip_undetermined_arglist): Skip argument list helper.
745 (evaluate_subexp_standard): Return a dummy type when
746 honoring EVAL_SKIP in OP_VAR_VALUE and handle skipping in the
747 OP_F77_UNDETERMINED_ARGLIST case.
748 * expression.h (enum noside): Update comment.
749
7307a73a
RO
7502018-09-19 George Vasick <george.vasick@oracle.com>
751
752 * solib-svr4.c (svr4_same_1): Also handle amd64 ld.so.1.
753
13db92d3
RO
7542018-09-19 Stefan Teleman <stefan.teleman@oracle.com>
755 April Chin <april.chin@oracle.com>
756 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
757
758 * procfs.c (MAX_PROC_NAME_SIZE): Allow for 6-digit PID_MAX and
759 uint_t lwpid_t.
760 (create_procinfo): Print pids in /proc without leading zeros.
761
3d50f170
SL
7622018-09-18 Sandra Loosemore <sandra@codesourcery.com>
763
764 * nios2-tdep.c (nios2_gcc_target_options): New.
765 (nios2_gdb_arch_init): Install new hook.
766
b567ca63
SM
7672018-09-18 Simon Marchi <simon.marchi@ericsson.com>
768
769 * patches/0001-Fix-PR-gdb-23558-Use-system-s-getcwd-when-cross-comp.patch:
770 New file.
771 * update-gnulib.sh: Apply patch.
772 * configure: Re-generate.
773
73f1bd76
JB
7742018-09-18 John Baldwin <jhb@FreeBSD.org>
775
776 * infcmd.c (_initialize_infcmd): Remove "running" from "info proc"
777 description. Make "info proc" command descriptions more
778 consistent.
779
8b113111
JB
7802018-09-18 John Baldwin <jhb@FreeBSD.org>
781
782 * NEWS: Mention 'info proc files' command.
783
7e69672e
JB
7842018-09-18 John Baldwin <jhb@FreeBSD.org>
785
786 * fbsd-nat.c (fbsd_nat_target::info_proc): List open file
787 descriptors for IP_FILES and IP_ALL.
788
57c2a98a
JB
7892018-09-18 John Baldwin <jhb@FreeBSD.org>
790
791 * fbsd-tdep.c (KF_FLAGS, KF_OFFSET, KF_VNODE_TYPE, KF_SOCK_DOMAIN)
792 (KF_SOCK_TYPE, KF_SOCK_PROTOCOL, KF_SA_LOCAL, KF_SA_PEER)
793 (KINFO_FILE_TYPE_SOCKET, KINFO_FILE_TYPE_PIPE)
794 (KINFO_FILE_TYPE_FIFO, KINFO_FILE_TYPE_KQUEUE)
795 (KINFO_FILE_TYPE_CRYPTO, KINFO_FILE_TYPE_MQUEUE)
796 (KINFO_FILE_TYPE_SHM, KINFO_FILE_TYPE_SEM, KINFO_FILE_TYPE_PTS)
797 (KINFO_FILE_TYPE_PROCDESC, KINFO_FILE_FD_TYPE_ROOT)
798 (KINFO_FILE_FD_TYPE_JAIL, KINFO_FILE_FD_TYPE_TRACE)
799 (KINFO_FILE_FD_TYPE_CTTY, KINFO_FILE_FLAG_READ)
800 (KINFO_FILE_FLAG_WRITE, KINFO_FILE_FLAG_APPEND)
801 (KINFO_FILE_FLAG_ASYNC, KINFO_FILE_FLAG_FSYNC)
802 (KINFO_FILE_FLAG_NONBLOCK, KINFO_FILE_FLAG_DIRECT)
803 (KINFO_FILE_FLAG_HASLOCK, KINFO_FILE_FLAG_EXEC)
804 (KINFO_FILE_VTYPE_VREG, KINFO_FILE_VTYPE_VDIR)
805 (KINFO_FILE_VTYPE_VCHR, KINFO_FILE_VTYPE_VLNK)
806 (KINFO_FILE_VTYPE_VSOCK, KINFO_FILE_VTYPE_VFIFO, FBSD_AF_UNIX)
807 (FBSD_AF_INET, FBSD_AF_INET6, FBSD_SOCK_STREAM, FBSD_SOCK_DGRAM)
808 (FBSD_SOCK_SEQPACKET, FBSD_IPPROTO_ICMP, FBSD_IPPROTO_TCP)
809 (FBSD_IPPROTO_UDP, FBSD_IPPROTO_SCTP): New defines.
810 (struct fbsd_sockaddr_in, struct fbsd_sockaddr_in6)
811 (struct fbsd_sockaddr_un): New types.
812 (fbsd_file_fd, fbsd_file_type, fbsd_file_flags, fbsd_ipproto)
813 (fbsd_print_sockaddr_in, fbsd_print_sockaddr_in6)
814 (fbsd_info_proc_files_header, fbsd_info_proc_files_entry)
815 (fbsd_core_info_proc_files): New functions.
816 (fbsd_core_info_proc): List open file descriptors for IP_FILES and
817 IP_ALL.
818 * fbsd-tdep.h (fbsd_info_proc_files_header)
819 (fbsd_info_proc_files_entry): New.
820
e98ee8c4
JB
8212018-09-18 John Baldwin <jhb@FreeBSD.org>
822
823 * defs.h (enum info_proc_what) [IP_FILES]: New value.
824 * infcmd.c (info_proc_cmd_files): New function.
825 (_initialize_infcmd): Register 'info proc files' command.
826
725e2999
JB
8272018-09-18 John Baldwin <jhb@FreeBSD.org>
828
829 * gnulib/aclocal-m4-deps.mk: Re-generate.
830 * gnulib/aclocal.m4: Re-generate.
831 * gnulib/config.in: Re-generate.
832 * gnulib/configure: Re-generate.
833 * gnulib/import/Makefile.am: Re-generate.
834 * gnulib/import/Makefile.in: Re-generate.
835 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
836 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
837 * gnulib/import/arpa_inet.in.h: New file.
838 * gnulib/import/inet_ntop.c: New file.
839 * gnulib/import/m4/arpa_inet_h.m4: New file.
840 * gnulib/import/m4/inet_ntop.m4: New file.
841 * gnulib/import/m4/netinet_in_h.m4: New file.
842 * gnulib/import/m4/socklen.m4: New file.
843 * gnulib/import/m4/sockpfaf.m4: New file.
844 * gnulib/import/m4/stdalign.m4: New file.
845 * gnulib/import/m4/sys_uio_h.m4: New file.
846 * gnulib/import/netinet_in.in.h: New file.
847 * gnulib/import/stdalign.in.h: New file.
848 * gnulib/import/sys_socket.c: New file.
849 * gnulib/import/sys_socket.in.h: New file.
850 * gnulib/import/sys_uio.in.h: New file.
851 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add inet_ntop
852 module.
853
2afffa7f
JB
8542018-09-18 John Baldwin <jhb@FreeBSD.org>
855
856 * gnulib/aclocal-m4-deps.mk: New file.
857 * gnulib/update-gnulib.sh: Generate "aclocal-m4-deps.mk"
858 deterministically.
859
9f235e09
JB
8602018-09-18 John Baldwin <jhb@FreeBSD.org>
861
862 * fbsd-tdep.c (fbsd_core_vnode_path): Use KF_PATH instead of
863 KVE_PATH.
864
40f03055
TT
8652018-09-18 Tom Tromey <tom@tromey.com>
866
867 * compile/compile-object-load.c (struct
868 link_hash_table_cleanup_data): Add constructor and destructor.
869 Use DISABLE_COPY_AND_ASSIGN.
870 (~link_hash_table_cleanup_data): Rename from
871 link_hash_table_free. Now a destructor.
872 (copy_sections): Use gdb::unique_xmalloc_ptr. Remove cleanups.
873
c9e0a7e3
TT
8742018-09-18 Tom Tromey <tom@tromey.com>
875
876 * compile/compile-object-run.c (do_module_cleanup): Use delete.
877 * compile/compile-object-load.c (struct munmap_list): Move to
878 header file.
879 (munmap_list::add): Rename from munmap_list_add; rewrite.
880 (munmap_list::~munmap_list): Rename from munmap_list_free.
881 (munmap_listp_free_cleanup): Remove.
882 (compile_object_load): Update.
883 * compile/compile-object-load.h (struct munmap_list): Move from
884 compile-object-load.c. Rewrite.
885
3ff2c72e
AH
8862018-09-18 Alan Hayward <alan.hayward@arm.com>
887
888 * aarch64-tdep.c (pass_in_v): Use register size.
889 (aarch64_extract_return_value): Likewise.
890 (aarch64_store_return_value): Likewise.
891
206c1947
RO
8922018-09-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
893
894 * utils.c (dump_core) [HAVE_SETRLIMIT]: Cast RLIM_INFINITY to
895 rlim_t.
896
6eb5dbce
PW
8972018-09-17 Philippe Waroquiers <philippe.waroquiers@skynet.be>
898
899 * python/lib/gdb/command/frame_filters.py (EnableFrameFilter):
900 Fix short help line.
901
ae292b3a
TT
9022018-09-17 Tom Tromey <tom@tromey.com>
903
904 PR python/20445:
905 * configure: Rebuild.
906 * configure.ac: Conditionally use -DNDEBUG for Python.
907
da658607
TT
9082018-09-17 Tom Tromey <tom@tromey.com>
909
910 * configure: Rebuild.
911 * configure.ac: Use gmp as a library dependency when checking for
912 mpfr.
913
d35da542
PA
9142018-09-17 Pedro Alves <palves@redhat.com>
915
916 * python/py-inferior.c (find_inferior_object): Delete.
917
461464f2
SM
9182018-09-17 Simon Marchi <simon.marchi@ericsson.com>
919
920 * compile/compile-cplus-types.c
921 (compile_cplus_instance::enter_scope): Don't use new_scope after
922 std::move.
923
e6cd1dc1
TT
9242018-09-17 Tom Tromey <tom@tromey.com>
925
926 * common/pathstuff.c (get_standard_cache_dir): Use
927 ~/Library/Caches on macOS.
928 * common/pathstuff.h (get_standard_cache_dir): Update comment.
929
8588b356
SM
9302018-09-17 Simon Marchi <simon.marchi@polymtl.ca>
931
932 PR python/23669
933 * breakpoint.c (commands_cmd_element): New.
934 (_initialize_breakpoint): Assign commands_cmd_element.
935 * breakpoint.h (commands_cmd_element): New.
936 * cli/cli-script.c (while_cmd_element, if_command,
937 define_cmd_element): New.
938 (command_name_equals): Remove.
939 (process_next_line): Compare commands by pointer, not by name.
940 (_initialize_cli_script): Assign the various cmd_list_element
941 variables.
942 * compile/compile.c (compile_cmd_element): New.
943 (_initialize_compile): Assign compile_cmd_element.
944 * compile/compile.h (compile_cmd_element): New.
945 * guile/guile.c (guile_cmd_element): New.
946 (install_gdb_commands): Assign guile_cmd_element.
947 * guile/guile.h (guile_cmd_element): New.
948 * python/python.c (python_cmd_element): New.
949 (_initialize_python): Assign python_cmd_element.
950 * python/python.h (python_cmd_element): New.
951 * tracepoint.c (while_stepping_cmd_element): New.
952 (_initialize_tracepoint): Assign while_stepping_cmd_element.
953 * tracepoint.h (while_stepping_cmd_element): New.
954
cb524840
TT
9552018-09-17 Tom Tromey <tom@tromey.com>
956
957 * infrun.c (save_infcall_suspend_state): Return
958 infcall_suspend_state_up.
959 (save_infcall_control_state): Return infcall_control_state_up.
960 * inferior.h (save_infcall_suspend_state)
961 (save_infcall_control_state): Declare later. Return unique
962 pointers.
963
2d844eaf
TT
9642018-09-17 Tom Tromey <tom@tromey.com>
965
966 * infrun.c (struct stop_context): Declare constructor,
967 destructor, "changed" method.
968 (stop_context::stop_context): Rename from save_stop_context.
969 (stop_context::~stop_context): Rename from
970 release_stop_context_cleanup.
971 (normal_stop): Update.
972 (stop_context::changed): Rename from stop_context_changed. Return
973 bool.
974
c7c4d3fa
TT
9752018-09-17 Tom Tromey <tom@tromey.com>
976
977 * inferior.h (struct infcall_suspend_state_deleter): New.
978 (infcall_suspend_state_up): New typedef.
979 (struct infcall_control_state_deleter): New.
980 (infcall_control_state_up): New typedef.
981 (make_cleanup_restore_infcall_suspend_state)
982 (make_cleanup_restore_infcall_control_state): Don't declare.
983 * infcall.c (call_function_by_hand_dummy): Update.
984 * infrun.c (do_restore_infcall_suspend_state_cleanup)
985 (make_cleanup_restore_infcall_suspend_state): Remove.
986 (do_restore_infcall_control_state_cleanup)
987 (make_cleanup_restore_infcall_control_state): Remove.
988
ee841dd8
TT
9892018-09-17 Tom Tromey <tom@tromey.com>
990
991 * gdbthread.h (struct thread_control_state): Add initializer.
992 (class thread_info) <control>: Remove initializer.
993 * inferior.h (struct inferior_control_state): Add initializer.
994 (class inferior) <control>: Remove initializer.
995 (exit_inferior_1): Update.
996 * infrun.c (struct infcall_control_state): Add constructors.
997 (save_infcall_control_state): Use new.
998 (restore_infcall_control_state, discard_infcall_control_state):
999 Use delete.
1000
117f580a
TT
10012018-09-17 Tom Tromey <tom@tromey.com>
1002
1003 * infrun.c (struct infcall_suspend_state) <registers>: Now a
1004 unique_ptr.
1005 <siginfo_data>: Now a unique_xmalloc_ptr.
1006 (save_infcall_suspend_state, restore_infcall_suspend_state)
1007 (discard_infcall_suspend_state)
1008 (get_infcall_suspend_state_regcache): Update.
1009
dd848631
TT
10102018-09-17 Tom Tromey <tom@tromey.com>
1011
1012 * gdbthread.h (struct thread_suspend_state): Add initializers.
1013 (class thread_info) <suspend>: Remove initializer.
1014 * infrun.c (struct infcall_suspend_state): Add initializers.
1015 (save_infcall_suspend_state): Use new.
1016 (discard_infcall_suspend_state): Use delete.
1017
1a338907
TT
10182018-09-16 Tom Tromey <tom@tromey.com>
1019
1020 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
1021 Remove.
1022 * python/py-varobj.c (py_varobj_iter_ctor): Change pyiter to
1023 rvalue reference. Remove CPYCHECKER_STEALS_REFERENCE_TO_ARG.
1024 (py_varobj_iter_new): Likewise.
1025 (py_varobj_get_iterator): Use gdbpy_ref.
1026
4a137fec
TT
10272018-09-16 Tom Tromey <tom@tromey.com>
1028
1029 * python/py-threadevent.c (py_get_event_thread): Simplify.
1030 * python/py-inferior.c (infpy_thread_from_thread_handle):
1031 Return immediately after calling thread_to_thread_object. Use
1032 Py_RETURN_NONE.
1033 (thread_to_thread_object): Set the exception on a NULL return.
1034
8ff03f0b
SM
10352018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
1036
1037 * Makefile.in (LIBGDB_OBS): Sort COMMON_OBS.
1038
94c8b725
TT
10392018-09-16 Tom Tromey <tom@tromey.com>
1040
1041 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
1042 Remove.
1043
db1337cc
TT
10442018-09-16 Tom Tromey <tom@tromey.com>
1045
1046 * python/python-internal.h (thread_to_thread_object): Change
1047 return type.
1048 * python/py-inferior.c (thread_to_thread_object): Return a new
1049 reference.
1050 (infpy_thread_from_thread_handle): Update.
1051 * python/py-infthread.c (gdbpy_selected_thread): Update.
1052 * python/py-stopevent.c (create_stop_event_object): Update.
1053 * python/py-threadevent.c (py_get_event_thread): Return a new
1054 reference.
1055 (py_get_event_thread): Update.
1056 * python/py-event.h (py_get_event_thread): Change return type.
1057 * python/py-continueevent.c (create_continue_event_object):
1058 Update.
1059
0a9db5ad
TT
10602018-09-16 Tom Tromey <tom@tromey.com>
1061
1062 * python/py-progspace.c (pspy_get_objfiles): Update.
1063 * python/python-internal.h (objfile_to_objfile_object): Change
1064 return type.
1065 * python/py-newobjfileevent.c (create_new_objfile_event_object):
1066 Update.
1067 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
1068 Update.
1069 * python/python.c (gdbpy_get_current_objfile): Update.
1070 (gdbpy_objfiles): Update.
1071 * python/py-objfile.c (objfpy_get_owner, gdbpy_lookup_objfile):
1072 Update.
1073 (objfile_to_objfile_object): Return a new reference.
1074 * python/py-symtab.c (stpy_get_objfile): Update.
1075 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
1076 Update.
1077
3c7aa307
TT
10782018-09-16 Tom Tromey <tom@tromey.com>
1079
1080 * python/py-inferior.c (infpy_get_progspace): Update.
1081 * python/python-internal.h (pspace_to_pspace_object): Change
1082 return type.
1083 * python/py-newobjfileevent.c
1084 (create_clear_objfiles_event_object): Update.
1085 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
1086 Update.
1087 * python/python.c (gdbpy_get_current_progspace): Update.
1088 (gdbpy_progspaces): Update.
1089 * python/py-progspace.c (pspace_to_pspace_object): Return a new
1090 reference.
1091 * python/py-objfile.c (objfpy_get_progspace): Update.
1092 * python/py-prettyprint.c (find_pretty_printer_from_progspace):
1093 Update.
1094
8743a9cd
TT
10952018-09-16 Tom Tromey <tom@tromey.com>
1096
1097 * python/lib/gdb/__init__.py (current_progspace, objfiles)
1098 (solib_name, block_for_pc, find_pc_line): New functions.
1099 (execute_unwinders): Update.
1100 * python/py-block.c (gdbpy_block_for_pc): Remove.
1101 * python/py-inferior.c (infpy_get_progspace): New function.
1102 (inferior_object_getset) <progspace>: Add.
1103 * python/py-progspace.c (pspy_objfiles): Rewrite.
1104 (pspy_solib_name, pspy_block_for_pc)
1105 (pspy_find_pc_line, pspy_is_valid): New functions.
1106 (progspace_object_methods): Add entries for solib_name,
1107 block_for_pc, find_pc_line, is_valid.
1108 * python/python-internal.h (gdbpy_block_for_pc)
1109 (build_objfiles_list): Don't declare.
1110 * python/python.c: Don't include solib.h.
1111 (gdbpy_solib_name, gdbpy_find_pc_line)
1112 (gdbpy_get_current_progspace, build_objfiles_list)
1113 (gdbpy_objfiles): Remove.
1114 (GdbMethods) <current_progspace, objfiles, block_for_pc,
1115 solib_name, find_pc_line>: Remove entries.
1116
65e65158
TT
11172018-09-16 Tom Tromey <tom@tromey.com>
1118
1119 * top.c (new_ui_command): Use GNU style for metasyntactic
1120 variables.
1121 * breakpoint.c (stopat_command): Use GNU style for metasyntactic
1122 variables.
1123 * maint.c (maintenance_translate_address): Remove "<>" around
1124 text.
1125 * interps.c (interpreter_exec_cmd): Use GNU style for
1126 metasyntactic variables.
1127 * nto-procfs.c (nto_procfs_target_info): Use GNU style for
1128 metasyntactic variables.
1129 * tracepoint.c (tfind_range_command): Use GNU style for
1130 metasyntactic variables.
1131 (tfind_outside_command): Likewise.
1132 (_initialize_tracepoint): Likewise.
1133 * remote.c (extended_remote_target::create_inferior): Use GNU
1134 style for metasyntactic variables.
1135 * sparc64-tdep.c (adi_examine_command): Use GNU style for
1136 metasyntactic variables.
1137 (adi_assign_command): Likewise.
1138
f4bab6ff
TT
11392018-09-16 Tom Tromey <tom@tromey.com>
1140
1141 * disasm.c (show_disassembler_options_sfunc): Use GNU style for
1142 metasyntactic variables. Print message if no disassembler options
1143 are available.
1144
cbaaa0ca
TT
11452018-09-15 Tom Tromey <tom@tromey.com>
1146
1147 * infcmd.c (get_inferior_args): Return const char *.
1148 * inferior.h (get_inferior_args): Return type now const.
1149 * linux-tdep.c (linux_fill_prpsinfo): Update.
1150 * procfs.c (procfs_target::make_corefile_notes): Update.
1151
a3a6aef4
TT
11522018-09-07 Tom Tromey <tom@tromey.com>
1153
1154 * python/python.c (execute_gdb_command): Call bpstat_do_actions
1155 inside the TRY.
1156
f70e088f
SL
11572018-09-14 Sandra Loosemore <sandra@codesourcery.com>
1158
1159 * nios2-tdep.c (nios2_type_align): New.
1160 (nios2_gdb_arch_init): Install type_align hook.
1161
2fabdf33
AB
11622018-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
1163
1164 * eval.c (fake_method::fake_method): Call xzalloc directly for a
1165 type that is neither object file owned, nor gdbarch owned.
1166 * gdbtypes.c (get_type_gdbarch): Add an assert that returned
1167 gdbarch is non-NULL.
1168 (alloc_type_instance): Allocate non-objfile owned types on the
1169 gdbarch obstack.
1170 (copy_type_recursive): Allocate TYPE_FIELDS and TYPE_RANGE_DATA
1171 using TYPE_ALLOC to ensure memory is allocated on the correct
1172 obstack.
1173 * gdbtypes.h (TYPE_ALLOC): Allocate space on either the objfile
1174 obstack, or the gdbarch obstack.
1175 (TYPE_ZALLOC): Rewrite using TYPE_ALLOC.
1176
b4b08fa2
TT
11772018-09-14 Tom Tromey <tom@tromey.com>
1178
1179 * infcall.c (call_function_by_hand_dummy): Remove unnecessary
1180 block.
1181
87b240d4
TT
11822018-09-14 Tom Tromey <tom@tromey.com>
1183
1184 * nat/fork-inferior.c (get_startup_shell): Remove "static".
1185
7d221512
TT
11862018-09-13 Tom Tromey <tom@tromey.com>
1187
1188 * python/py-inferior.c (infpy_thread_from_thread_handle): Now
1189 static.
1190
97e67fc6
TT
11912018-09-13 Tom Tromey <tom@tromey.com>
1192
1193 * exec.c (try_open_exec_file): Use std::string.
1194
803c08d0
TT
11952018-09-13 Tom Tromey <tom@tromey.com>
1196
1197 * utils.h (gdb_bfd_errmsg): Return std::string.
1198 * exec.c (exec_file_attach): Update.
1199 * compile/compile-object-load.c (compile_object_load): Update.
1200 * utils.c (gdb_bfd_errmsg): Return std::string.
1201
5b4cbbe3
TT
12022018-09-13 Tom Tromey <tom@tromey.com>
1203
1204 * procfs.c (struct procinfo_deleter): New.
1205 (procinfo_up): New typedef.
1206 (do_destroy_procinfo_cleanup): Remove.
1207 (procfs_target::info_proc): Use procinfo_up. Remove cleanups.
1208
db68fbe2
TT
12092018-09-13 Tom Tromey <tom@tromey.com>
1210
1211 * source.c (add_path): Use gdb::unique_xmalloc_ptr.
1212
0ae1a321
SM
12132018-09-13 Simon Marchi <simon.marchi@ericsson.com>
12142018-09-13 Tom Tromey <tom@tromey.com>
1215
1216 * python/py-progspace.c (PSPY_REQUIRE_VALID): New macro.
1217 (pspy_get_objfiles): New function.
1218 (progspace_object_methods): New.
1219 (pspace_object_type): Add tp_methods callback.
1220 * python/python-internal.h (build_objfiles_list): New
1221 declaration.
1222 * python/python.c (build_objfiles_list): New function.
1223 (gdbpy_objfiles): Implement using build_objfiles_list.
1224 * NEWS: Mention the Progspace.objfiles method.
1225
a40bf0c2
SM
12262018-09-13 Simon Marchi <simon.marchi@ericsson.com>
1227
1228 * python/py-inferior.c (infpy_get_progspace): New function.
1229 (inferior_object_getset): Add progspace property.
1230 * NEWS: Mention the new property.
1231
4a3fe98f
TT
12322018-09-13 Tom Tromey <tom@tromey.com>
1233
1234 PR rust/23650:
1235 * rust-lang.c (rust_evaluate_subexp): Use field name, not "foo".
1236
098b2108
TT
12372018-09-13 Tom Tromey <tom@tromey.com>
1238
1239 PR rust/23626:
1240 * rust-lang.c (rust_enum_variant): Now static.
1241 (rust_empty_enum_p): New function.
1242 (rust_print_enum, rust_evaluate_subexp, rust_print_struct_def):
1243 Handle empty enum.
1244
1256af7d
SM
12452018-09-13 Simon Marchi <simon.marchi@ericsson.com>
1246
1247 * python/py-inferior.c (infpy_repr): New.
1248 (inferior_object_type): Register infpy_repr.
1249 * python/py-objfile.c (objfpy_repr): New.
1250 (objfile_object_type): Register objfpy_repr.
1251
f117a62c
JB
12522018-09-12 John Baldwin <jhb@FreeBSD.org>
1253
1254 * fbsd-nat.c (fbsd_nat_target::info_proc): Remove unused variable.
1255
88f22c34
JB
12562018-09-12 John Baldwin <jhb@FreeBSD.org>
1257
1258 * aarch64-fbsd-tdep.h (AARCH64_FBSD_SIZEOF_GREGSET): Fix comment
1259 typo.
1260
3c025cfe
SDJ
12612018-09-12 Sergio Durigan Junior <sergiodj@redhat.com>
1262
1263 * common/common-utils.c: Don't include '<sys/stat.h>'.
1264 (is_regular_file): Move to...
1265 * common/filestuff.c (is_regular_file): ... here.
1266 * common/common-utils.h (is_regular_file): Move to...
1267 * common/filestuff.h (is_regular_file): ... here.
1268
3e68067f
SM
12692018-09-12 Simon Marchi <simon.marchi@ericsson.com>
1270
1271 * skip.c (debug_skip): New variable.
1272 (skiplist_entry::do_skip_file_p): Add debug output.
1273 (skiplist_entry::do_skip_gfile_p): Likewise.
1274 (skiplist_entry::skip_function_p): Likewise.
1275 (_initialize_step_skip): Create debug command.
1276 * NEWS: Mention set/show debug skip.
1277
d6be54ef
XR
12782018-09-11 Xavier Roirand <roirand@adacore.com>
1279
1280 * darwin-nat.c (should_disable_startup_with_shell):
1281 New function.
1282 (darwin_nat_target::create_inferior): Add call.
1283
de1ec836
XR
12842018-09-11 Xavier Roirand <roirand@adacore.com>
1285
1286 * darwin-nat.h (struct darwin_thread_info) <gdb_port,
1287 inf_port, msg_state>: Initialize.
1288 (struct darwin_thread_info) <signaled, single_step>: Change
1289 type and initialize.
1290 (struct darwin_thread_info) <event>: Initialize.
1291
e2fc52e7
SDJ
12922018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
1293
1294 PR gdb/23555
1295 PR gdb/23558
1296 * gnulib/import/m4/getcwd-path-max.m4: Add cross-compilation
1297 guesses.
1298
5e8754f9
SDJ
12992018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
1300
1301 Revert:
1302 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
1303
1304 PR gdb/23555
1305 PR gdb/23558
1306 * gnulib/aclocal.m4: Regenerate.
1307 * gnulib/config.in: Regenerate.
1308 * gnulib/configure: Regenerate.
1309 * gnulib/import/Makefile.am: Update.
1310 * gnulib/import/Makefile.in: Update.
1311 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
1312 * gnulib/import/_Noreturn.h: ... this.
1313 * gnulib/import/alloca.in.h: Update.
1314 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
1315 * gnulib/import/arg-nonnull.h: ... this.
1316 * gnulib/import/assure.h: Update.
1317 * gnulib/import/at-func.c: Update.
1318 * gnulib/import/basename-lgpl.c: Update.
1319 * gnulib/import/extra/snippet/c++defs.h: Rename to...
1320 * gnulib/import/c++defs.h: ... this.
1321 * gnulib/import/canonicalize-lgpl.c: Update.
1322 * gnulib/import/cdefs.h: Update.
1323 * gnulib/import/chdir-long.c: Update.
1324 * gnulib/import/chdir-long.h: Update.
1325 * gnulib/import/cloexec.c: Update.
1326 * gnulib/import/cloexec.h: Update.
1327 * gnulib/import/close.c: Update.
1328 * gnulib/import/closedir.c: Update.
1329 * gnulib/import/config.charset: Update.
1330 * gnulib/import/dirent-private.h: Update.
1331 * gnulib/import/dirent.in.h: Update.
1332 * gnulib/import/dirfd.c: Update.
1333 * gnulib/import/dirname-lgpl.c: Update.
1334 * gnulib/import/dirname.h: Update.
1335 * gnulib/import/dosname.h: Update.
1336 * gnulib/import/dup-safer-flag.c: Update.
1337 * gnulib/import/dup-safer.c: Update.
1338 * gnulib/import/dup.c: Update.
1339 * gnulib/import/dup2.c: Update.
1340 * gnulib/import/errno.in.h: Update.
1341 * gnulib/import/error.c: Update.
1342 * gnulib/import/error.h: Update.
1343 * gnulib/import/exitfail.c: Update.
1344 * gnulib/import/exitfail.h: Update.
1345 * gnulib/import/extra/update-copyright: Update.
1346 * gnulib/import/fchdir.c: Update.
1347 * gnulib/import/fcntl.c: Update.
1348 * gnulib/import/fcntl.in.h: Update.
1349 * gnulib/import/fd-hook.c: Update.
1350 * gnulib/import/fd-hook.h: Update.
1351 * gnulib/import/fd-safer-flag.c: Update.
1352 * gnulib/import/fd-safer.c: Update.
1353 * gnulib/import/fdopendir.c: Update.
1354 * gnulib/import/filename.h: Update.
1355 * gnulib/import/filenamecat-lgpl.c: Update.
1356 * gnulib/import/filenamecat.h: Update.
1357 * gnulib/import/flexmember.h: Update.
1358 * gnulib/import/float+.h: Update.
1359 * gnulib/import/float.c: Update.
1360 * gnulib/import/float.in.h: Update.
1361 * gnulib/import/fnmatch.c: Update.
1362 * gnulib/import/fnmatch.in.h: Update.
1363 * gnulib/import/fnmatch_loop.c: Update.
1364 * gnulib/import/fpucw.h: Update.
1365 * gnulib/import/frexp.c: Update.
1366 * gnulib/import/frexpl.c: Update.
1367 * gnulib/import/fstat.c: Update.
1368 * gnulib/import/fstatat.c: Update.
1369 * gnulib/import/getcwd-lgpl.c: Update.
1370 * gnulib/import/getcwd.c: Update.
1371 * gnulib/import/getdtablesize.c: Update.
1372 * gnulib/import/getlogin_r.c: Update.
1373 * gnulib/import/getprogname.c: Update.
1374 * gnulib/import/getprogname.h: Update.
1375 * gnulib/import/gettext.h: Update.
1376 * gnulib/import/gettimeofday.c: Update.
1377 * gnulib/import/glob-libc.h: Update.
1378 * gnulib/import/glob.c: Update.
1379 * gnulib/import/glob.in.h: Update.
1380 * gnulib/import/glob_internal.h: Update.
1381 * gnulib/import/glob_pattern_p.c: Update.
1382 * gnulib/import/globfree.c: Update.
1383 * gnulib/import/hard-locale.c: Update.
1384 * gnulib/import/hard-locale.h: Update.
1385 * gnulib/import/intprops.h: Update.
1386 * gnulib/import/inttypes.in.h: Update.
1387 * gnulib/import/isnan.c: Update.
1388 * gnulib/import/isnand-nolibm.h: Update.
1389 * gnulib/import/isnand.c: Update.
1390 * gnulib/import/isnanl-nolibm.h: Update.
1391 * gnulib/import/isnanl.c: Update.
1392 * gnulib/import/itold.c: Update.
1393 * gnulib/import/libc-config.h: Update.
1394 * gnulib/import/limits.in.h: Update.
1395 * gnulib/import/localcharset.c: Update.
1396 * gnulib/import/localcharset.h: Update.
1397 * gnulib/import/localtime-buffer.c: Update.
1398 * gnulib/import/localtime-buffer.h: Update.
1399 * gnulib/import/lstat.c: Update.
1400 * gnulib/import/m4/00gnulib.m4: Update.
1401 * gnulib/import/m4/__inline.m4: Update.
1402 * gnulib/import/m4/absolute-header.m4: Update.
1403 * gnulib/import/m4/alloca.m4: Update.
1404 * gnulib/import/m4/builtin-expect.m4: Update.
1405 * gnulib/import/m4/canonicalize.m4: Update.
1406 * gnulib/import/m4/chdir-long.m4: Update.
1407 * gnulib/import/m4/close.m4: Update.
1408 * gnulib/import/m4/closedir.m4: Update.
1409 * gnulib/import/m4/configmake.m4: Update.
1410 * gnulib/import/m4/d-ino.m4: Update.
1411 * gnulib/import/m4/d-type.m4: Update.
1412 * gnulib/import/m4/dirent_h.m4: Update.
1413 * gnulib/import/m4/dirfd.m4: Update.
1414 * gnulib/import/m4/dirname.m4: Update.
1415 * gnulib/import/m4/double-slash-root.m4: Update.
1416 * gnulib/import/m4/dup.m4: Update.
1417 * gnulib/import/m4/dup2.m4: Update.
1418 * gnulib/import/m4/eealloc.m4: Update.
1419 * gnulib/import/m4/environ.m4: Update.
1420 * gnulib/import/m4/errno_h.m4: Update.
1421 * gnulib/import/m4/error.m4: Update.
1422 * gnulib/import/m4/exponentd.m4: Update.
1423 * gnulib/import/m4/exponentl.m4: Update.
1424 * gnulib/import/m4/extensions.m4: Update.
1425 * gnulib/import/m4/extern-inline.m4: Update.
1426 * gnulib/import/m4/fchdir.m4: Update.
1427 * gnulib/import/m4/fcntl-o.m4: Update.
1428 * gnulib/import/m4/fcntl.m4: Update.
1429 * gnulib/import/m4/fcntl_h.m4: Update.
1430 * gnulib/import/m4/fdopendir.m4: Update.
1431 * gnulib/import/m4/filenamecat.m4: Update.
1432 * gnulib/import/m4/flexmember.m4: Update.
1433 * gnulib/import/m4/float_h.m4: Update.
1434 * gnulib/import/m4/fnmatch.m4: Update.
1435 * gnulib/import/m4/fnmatch_h.m4: Update.
1436 * gnulib/import/m4/fpieee.m4: Update.
1437 * gnulib/import/m4/frexp.m4: Update.
1438 * gnulib/import/m4/frexpl.m4: Update.
1439 * gnulib/import/m4/fstat.m4: Update.
1440 * gnulib/import/m4/fstatat.m4: Update.
1441 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
1442 * gnulib/import/m4/getcwd-path-max.m4: Update.
1443 * gnulib/import/m4/getcwd.m4: Update.
1444 * gnulib/import/m4/getdtablesize.m4: Update.
1445 * gnulib/import/m4/getlogin.m4: Update.
1446 * gnulib/import/m4/getlogin_r.m4: Update.
1447 * gnulib/import/m4/getpagesize.m4: Update.
1448 * gnulib/import/m4/getprogname.m4: Update.
1449 * gnulib/import/m4/gettimeofday.m4: Update.
1450 * gnulib/import/m4/glibc21.m4: Update.
1451 * gnulib/import/m4/glob.m4: Update.
1452 * gnulib/import/m4/glob_h.m4: Update.
1453 * gnulib/import/m4/gnulib-cache.m4: Update.
1454 * gnulib/import/m4/gnulib-common.m4: Update.
1455 * gnulib/import/m4/gnulib-comp.m4: Update.
1456 * gnulib/import/m4/gnulib-tool.m4: Update.
1457 * gnulib/import/m4/hard-locale.m4: Update.
1458 * gnulib/import/m4/include_next.m4: Update.
1459 * gnulib/import/m4/inttypes-pri.m4: Update.
1460 * gnulib/import/m4/inttypes.m4: Update.
1461 * gnulib/import/m4/isnand.m4: Update.
1462 * gnulib/import/m4/isnanl.m4: Update.
1463 * gnulib/import/m4/largefile.m4: Update.
1464 * gnulib/import/m4/limits-h.m4: Update.
1465 * gnulib/import/m4/localcharset.m4: Update.
1466 * gnulib/import/m4/locale-fr.m4: Update.
1467 * gnulib/import/m4/locale-ja.m4: Update.
1468 * gnulib/import/m4/locale-zh.m4: Update.
1469 * gnulib/import/m4/localtime-buffer.m4: Update.
1470 * gnulib/import/m4/longlong.m4: Update.
1471 * gnulib/import/m4/lstat.m4: Update.
1472 * gnulib/import/m4/malloc.m4: Update.
1473 * gnulib/import/m4/malloca.m4: Update.
1474 * gnulib/import/m4/math_h.m4: Update.
1475 * gnulib/import/m4/mbrtowc.m4: Update.
1476 * gnulib/import/m4/mbsinit.m4: Update.
1477 * gnulib/import/m4/mbsrtowcs.m4: Update.
1478 * gnulib/import/m4/mbstate_t.m4: Update.
1479 * gnulib/import/m4/memchr.m4: Update.
1480 * gnulib/import/m4/memmem.m4: Update.
1481 * gnulib/import/m4/mempcpy.m4: Update.
1482 * gnulib/import/m4/memrchr.m4: Update.
1483 * gnulib/import/m4/mkdir.m4: Update.
1484 * gnulib/import/m4/mkstemp.m4: Update.
1485 * gnulib/import/m4/mmap-anon.m4: Update.
1486 * gnulib/import/m4/mode_t.m4: Update.
1487 * gnulib/import/m4/msvc-inval.m4: Update.
1488 * gnulib/import/m4/msvc-nothrow.m4: Update.
1489 * gnulib/import/m4/multiarch.m4: Update.
1490 * gnulib/import/m4/nocrash.m4: Update.
1491 * gnulib/import/m4/off_t.m4: Update.
1492 * gnulib/import/m4/onceonly.m4: Update.
1493 * gnulib/import/m4/open-cloexec.m4: Update.
1494 * gnulib/import/m4/open.m4: Update.
1495 * gnulib/import/m4/openat.m4: Update.
1496 * gnulib/import/m4/opendir.m4: Update.
1497 * gnulib/import/m4/pathmax.m4: Update.
1498 * gnulib/import/m4/rawmemchr.m4: Update.
1499 * gnulib/import/m4/readdir.m4: Update.
1500 * gnulib/import/m4/readlink.m4: Update.
1501 * gnulib/import/m4/realloc.m4: Update.
1502 * gnulib/import/m4/rename.m4: Update.
1503 * gnulib/import/m4/rewinddir.m4: Update.
1504 * gnulib/import/m4/rmdir.m4: Update.
1505 * gnulib/import/m4/save-cwd.m4: Update.
1506 * gnulib/import/m4/secure_getenv.m4: Update.
1507 * gnulib/import/m4/setenv.m4: Update.
1508 * gnulib/import/m4/signal_h.m4: Update.
1509 * gnulib/import/m4/ssize_t.m4: Update.
1510 * gnulib/import/m4/stat-time.m4: Update.
1511 * gnulib/import/m4/stat.m4: Update.
1512 * gnulib/import/m4/std-gnu11.m4: Update.
1513 * gnulib/import/m4/stdbool.m4: Update.
1514 * gnulib/import/m4/stddef_h.m4: Update.
1515 * gnulib/import/m4/stdint.m4: Update.
1516 * gnulib/import/m4/stdio_h.m4: Update.
1517 * gnulib/import/m4/stdlib_h.m4: Update.
1518 * gnulib/import/m4/strchrnul.m4: Update.
1519 * gnulib/import/m4/strdup.m4: Update.
1520 * gnulib/import/m4/strerror.m4: Update.
1521 * gnulib/import/m4/string_h.m4: Update.
1522 * gnulib/import/m4/strstr.m4: Update.
1523 * gnulib/import/m4/strtok_r.m4: Update.
1524 * gnulib/import/m4/sys_socket_h.m4: Update.
1525 * gnulib/import/m4/sys_stat_h.m4: Update.
1526 * gnulib/import/m4/sys_time_h.m4: Update.
1527 * gnulib/import/m4/sys_types_h.m4: Update.
1528 * gnulib/import/m4/tempname.m4: Update.
1529 * gnulib/import/m4/time_h.m4: Update.
1530 * gnulib/import/m4/unistd-safer.m4: Update.
1531 * gnulib/import/m4/unistd_h.m4: Update.
1532 * gnulib/import/m4/warn-on-use.m4: Update.
1533 * gnulib/import/m4/wchar_h.m4: Update.
1534 * gnulib/import/m4/wchar_t.m4: Update.
1535 * gnulib/import/m4/wctype_h.m4: Update.
1536 * gnulib/import/m4/wint_t.m4: Update.
1537 * gnulib/import/malloc.c: Update.
1538 * gnulib/import/malloc/scratch_buffer.h: Update.
1539 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
1540 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
1541 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
1542 * gnulib/import/malloca.c: Update.
1543 * gnulib/import/malloca.h: Update.
1544 * gnulib/import/malloca.valgrind: Update.
1545 * gnulib/import/math.in.h: Update.
1546 * gnulib/import/mbrtowc.c: Update.
1547 * gnulib/import/mbsinit.c: Update.
1548 * gnulib/import/mbsrtowcs-impl.h: Update.
1549 * gnulib/import/mbsrtowcs-state.c: Update.
1550 * gnulib/import/mbsrtowcs.c: Update.
1551 * gnulib/import/memchr.c: Update.
1552 * gnulib/import/memmem.c: Update.
1553 * gnulib/import/mempcpy.c: Update.
1554 * gnulib/import/memrchr.c: Update.
1555 * gnulib/import/mkdir.c: Update.
1556 * gnulib/import/mkstemp.c: Update.
1557 * gnulib/import/msvc-inval.c: Update.
1558 * gnulib/import/msvc-inval.h: Update.
1559 * gnulib/import/msvc-nothrow.c: Update.
1560 * gnulib/import/msvc-nothrow.h: Update.
1561 * gnulib/import/open.c: Update.
1562 * gnulib/import/openat-die.c: Update.
1563 * gnulib/import/openat-priv.h: Update.
1564 * gnulib/import/openat-proc.c: Update.
1565 * gnulib/import/openat.c: Update.
1566 * gnulib/import/openat.h: Update.
1567 * gnulib/import/opendir.c: Update.
1568 * gnulib/import/pathmax.h: Update.
1569 * gnulib/import/pipe-safer.c: Update.
1570 * gnulib/import/rawmemchr.c: Update.
1571 * gnulib/import/readdir.c: Update.
1572 * gnulib/import/readlink.c: Update.
1573 * gnulib/import/realloc.c: Update.
1574 * gnulib/import/ref-add.sin: Update.
1575 * gnulib/import/ref-del.sin: Update.
1576 * gnulib/import/rename.c: Update.
1577 * gnulib/import/rewinddir.c: Update.
1578 * gnulib/import/rmdir.c: Update.
1579 * gnulib/import/same-inode.h: Update.
1580 * gnulib/import/save-cwd.c: Update.
1581 * gnulib/import/save-cwd.h: Update.
1582 * gnulib/import/scratch_buffer.h: Update.
1583 * gnulib/import/secure_getenv.c: Update.
1584 * gnulib/import/setenv.c: Update.
1585 * gnulib/import/signal.in.h: Update.
1586 * gnulib/import/stat-time.c: Update.
1587 * gnulib/import/stat-time.h: Update.
1588 * gnulib/import/stat-w32.c: Update.
1589 * gnulib/import/stat-w32.h: Update.
1590 * gnulib/import/stat.c: Update.
1591 * gnulib/import/stdbool.in.h: Update.
1592 * gnulib/import/stddef.in.h: Update.
1593 * gnulib/import/stdint.in.h: Update.
1594 * gnulib/import/stdio.in.h: Update.
1595 * gnulib/import/stdlib.in.h: Update.
1596 * gnulib/import/str-two-way.h: Update.
1597 * gnulib/import/strchrnul.c: Update.
1598 * gnulib/import/strdup.c: Update.
1599 * gnulib/import/streq.h: Update.
1600 * gnulib/import/strerror-override.c: Update.
1601 * gnulib/import/strerror-override.h: Update.
1602 * gnulib/import/strerror.c: Update.
1603 * gnulib/import/string.in.h: Update.
1604 * gnulib/import/stripslash.c: Update.
1605 * gnulib/import/strnlen1.c: Update.
1606 * gnulib/import/strnlen1.h: Update.
1607 * gnulib/import/strstr.c: Update.
1608 * gnulib/import/strtok_r.c: Update.
1609 * gnulib/import/sys_stat.in.h: Update.
1610 * gnulib/import/sys_time.in.h: Update.
1611 * gnulib/import/sys_types.in.h: Update.
1612 * gnulib/import/tempname.c: Update.
1613 * gnulib/import/tempname.h: Update.
1614 * gnulib/import/time.in.h: Update.
1615 * gnulib/import/unistd--.h: Update.
1616 * gnulib/import/unistd-safer.h: Update.
1617 * gnulib/import/unistd.in.h: Update.
1618 * gnulib/import/unsetenv.c: Update.
1619 * gnulib/import/verify.h: Update.
1620 * gnulib/import/extra/snippet/warn-on-use.h: Update.
1621 * gnulib/import/wchar.in.h: Update.
1622 * gnulib/import/wctype.in.h: Update.
1623 * gnulib/import/xalloc-oversized.h: Update.
1624 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
1625 "53e2c179f26a890fa6685af4b6c1397ee370433b".
1626
8ec23583
SM
16272018-09-10 Simon Marchi <simon.marchi@ericsson.com>
1628
1629 * record-btrace.c (get_thread_current_frame): Remove
1630 old_inferior_ptid.
1631
1f5d1570
JG
16322018-09-10 Jerome Guitton <guitton@adacore.com>
1633
1634 * ada-lang.c (ada_value_struct_elt): Call ada_to_fixed_type
1635 with check_tag to 1 if and only if the type is tagged and the
1636 component being searched cannot been found in the current
1637 view. Otherwise, always call ada_to_fixed_type with
1638 check_tag to 0.
1639
d91e9ea8
XR
16402018-09-10 Xavier Roirand <roirand@adacore.com>
1641
1642 * ada-lang.c (ada_is_access_to_unconstrained_array): Remove static
1643 declaration.
1644 * ada-lang.h: add ada_is_access_to_unconstrained_array prototype.
1645 * ada-varobj.c (ada_varobj_get_number_of_children,
1646 ada_varobj_describe_child, ada_value_is_changeable_p): Cleanup code.
1647
cc330e39
XR
16482018-09-10 Xavier Roirand <roirand@adacore.com>
1649
1650 * ada-valprint.c (ada_value_print): Use type instead of
1651 enclosing type.
1652
b9c50e9a
XR
16532018-09-10 Xavier Roirand <roirand@adacore.com>
1654
1655 * ada-lang.c (ada_value_subscript): Handle case when parameter is
1656 an array of access to unconstrained array.
1657
736ade86
XR
16582018-09-10 Xavier Roirand <roirand@adacore.com>
1659
1660 * ada-lang.c (ada_is_access_to_unconstrained_array): New function.
1661 (ada_check_typedef): Use it.
1662
2963898f
XR
16632018-09-10 Xavier Roirand <roirand@adacore.com>
1664
1665 * ada-varobj.c (ada_varobj_describe_struct_child)
1666 (ada_varobj_describe_child): Handle union case like struct one.
1667
a154931e
TT
16682018-09-10 Tom Tromey <tom@tromey.com>
1669
1670 PR python/18380:
1671 * python/python.c (_initialize_python): Make example in "python"
1672 help work in Python 3.
1673
23c4651c
EZ
16742018-09-10 Eli Zaretskii <eliz@gnu.org>
1675
1676 * Makefile.in (transformed_name): Use INSTALL_SCRIPT instead of
1677 INSTALL_PROGRAM to install gdb-add-index.sh. Don't append
1678 $(EXEEXT) to the script, as it is not a program.
1679
a5c5eda7
SM
16802018-09-09 Simon Marchi <simon.marchi@ericsson.com>
1681
1682 * python/py-prettyprint.c (pretty_print_one_value): Return
1683 gdbpy_ref<>.
1684 (print_string_repr): Adjust.
1685 (apply_varobj_pretty_printer): Return gdbpy_ref<>.
1686 * python/python-internal.h (apply_varobj_pretty_printer): Return
1687 gdbpy_ref<>.
1688 * varobj.c (varobj_value_get_print_value): Adjust.
1689
332cf4c9
TT
16902018-09-08 Tom Tromey <tom@tromey.com>
1691
1692 PR python/16047:
1693 * python/py-prettyprint.c (pretty_print_one_value): Check for
1694 to_string method.
1695
424da6cf
JB
16962018-09-08 Joel Brobecker <brobecker@adacore.com>
1697
1698 * ada-lang.c (resolve_subexp): Pass correct OPLEN in call to
1699 replace_operator_with_call.
1700
95f39a5b
JB
17012018-09-08 Joel Brobecker <brobecker@adacore.com>
1702
1703 * ada-lang.c (ada_value_cast): Remove unnecessary parentheses.
1704
16b9eb7b
JB
17052018-09-08 Joel Brobecker <brobecker@adacore.com>
1706
1707 * ada-typeprint.c (print_range): Print the bounds using TYPE
1708 rather than its TYPE_TARGET_TYPE.
1709
d8ce9127
JB
17102018-09-08 Joel Brobecker <brobecker@adacore.com>
1711
1712 * ada-lang.c (ada_to_fixed_value): Minor reformatting in
1713 call to ada_to_fixed_value_create.
1714
0d81f350
JG
17152018-09-08 Jerome Guitton <guitton@adacore.com>
1716
1717 * ada-lang.c (ada_decode): strip dot prefix in symbol name.
1718
57aff202
JB
17192018-09-08 Joel Brobecker <brobecker@adacore.com>
1720
1721 * ada-lang.c (ada_exception_sal): Replace gdb_assert calls
1722 by calls to error.
1723
fb44b1a7
JB
17242018-09-08 Joel Brobecker <brobecker@adacore.com>
1725
1726 * ada-lang.c (ada_unhandled_exception_name_addr_from_raise):
1727 Move update of loop variable "fi".
1728
2a62dfa9
JB
17292018-09-08 Joel Brobecker <brobecker@adacore.com>
1730
1731 * ada-lang.c (value_assign_to_component): In the case of
1732 big-endian targets, extract the bits of the given VAL
1733 using an src_offset of zero if container is not a scalar.
1734
739ab2e9
SS
17352018-09-06 Simon Ser <contact@emersion.fr>
1736
1737 PR gdb/23105
1738 * fbsd-nat.c (fbsd_nat_target::xfer_partial): Add support for
1739 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
1740 * fbsd-tdep.c (fbsd_make_note_desc): New.
1741 (fbsd_make_corefile_notes): Write NT_PROCSTAT_AUXV,
1742 NT_PROCSTAT_VMMAP and NT_PROCSTAT_PS_STRINGS notes.
1743 * target.h (enum target_object) Add FreeBSD-specific
1744 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
1745
d82b3862
SM
17462018-09-06 Simon Marchi <simon.marchi@ericsson.com>
1747
1748 * compile/compile-c.h (generate_c_for_variable_locations):
1749 Change reference to pointer.
1750 * compile/compile-c-support.c (compile_program) <compute>:
1751 Likewise.
1752 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
1753 (generate_c_for_for_one_variable): Likewise
1754 (generate_c_for_variable_locations): Likewise
1755 * compile/compile-c-types.c (compile_c_instance::convert_type):
1756 Likewise
1757 * compile/compile-cplus-symbols.c (convert_one_symbol):
1758 std::move the scope passed to enter_scope.
1759 * compile/compile-cplus-types.c
1760 (compile_cplus_instance::enter_scope): Make parameter
1761 rvalue-reference.
1762 (compile_cplus_instance::new_scope): Change reference to
1763 pointer.
1764 (compile_cplus_instance::convert_type): Likewise
1765 (compile_cplus_convert_typedef): std::move the scope passed to
1766 enter_scope.
1767 (compile_cplus_convert_struct_or_union): Likewise.
1768 (compile_cplus_convert_enum): Likewise.
1769 (compile_cplus_convert_namespace): Likewise.
1770 * compile/compile-cplus.h (compile_cplus_instance)
1771 <enter_scope>: Make parameter rvalue-reference.
1772 * compile/compile-internal.h (compile_instance)
1773 <get_cached_type>: Likewise
1774 * compile/compile-loc2c.c (push): Likewise
1775 (pushf): Likewise
1776 (unary): Likewise
1777 (binary): Likewise
1778 (print_label): Likewise
1779 (pushf_register_address): Likewise
1780 (pushf_register): Likewise
1781 (do_compile_dwarf_expr_to_c): Likewise
1782 (compile_dwarf_expr_to_c): Likewise
1783 (compile_dwarf_bounds_to_c): Likewise
1784 * compile/compile.c (compile_instance::get_cached_type):
1785 Likewise
1786 * compile/compile.h (compile_dwarf_expr_to_c): Likewise.
1787 (compile_dwarf_bounds_to_c): Likewise
1788 * dwarf2loc.c (locexpr_generate_c_location): Likewise.
1789 (dwarf2_compile_property_to_c): Likewise
1790 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise
1791 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
1792 Likewise
1793
cc5a5ae5
SM
17942018-09-06 Simon Marchi <simon.marchi@ericsson.com>
1795
1796 * tui/tui-data.h (struct tui_win_element) <highlight>: Remove.
1797 * tui/tui-data.c (init_content_element): Don't initialize it.
1798
137be540
SM
17992018-09-06 Simon Marchi <simon.marchi@ericsson.com>
1800
1801 * tui/tui-data.h (struct tui_win_info)
1802 <detail::opaque>: Remove.
1803 * tui/tui-data.c (init_win_info): Remove assignment.
1804
f1628857
TT
18052018-09-05 Tom Tromey <tom@tromey.com>
1806
1807 * warning.m4 (AM_GDB_WARNINGS): Add -Wformat when testing
1808 -Wformat-nonliteral.
1809 * target-float.c (host_float_ops<T>::to_string)
1810 (host_float_ops<T>::from_string): Use
1811 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
1812 * configure: Rebuild.
1813
af39b1c2
SM
18142018-09-05 Simon Marchi <simon.marchi@ericsson.com>
1815
1816 * printcmd.c (printf_c_string): Use
1817 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
1818 (printf_wide_c_string, printf_pointer, ui_printf): Likewise.
1819
081bca4d
TT
18202018-09-05 Tom Tromey <tom@tromey.com>
1821
1822 * cli/cli-cmds.c (shell_escape, edit_command): Remove cast.
1823
e4a62c65
TV
18242018-09-05 Tom de Vries <tdevries@suse.de>
1825
1826 * dwarf2loc.c (sect_variable_value): Call indirect_synthetic_pointer
1827 with resolve_abstract_p == true.
1828 (indirect_synthetic_pointer): Add resolve_abstract_p parameter,
1829 defaulting to false. Propagate resolve_abstract_p to
1830 dwarf2_fetch_die_loc_sect_off.
1831 * dwarf2loc.h (dwarf2_fetch_die_loc_sect_off): Add resolve_abstract_p
1832 parameter, defaulting to false.
1833 * dwarf2read.c (read_variable): Add variable to abstract_to_concrete.
1834 (dwarf2_fetch_die_loc_sect_off): Add and handle resolve_abstract_p
1835 parameter.
1836 * dwarf2read.h (struct die_info): Forward-declare.
1837 (die_info_ptr): New typedef.
1838 (struct dwarf2_per_objfile): Add abstract_to_concrete field.
1839
2b69821e
JB
18402018-09-05 Joel Brobecker <brobecker@adacore.com>
1841
1842 GDB 8.2 released.
1843
fcc9b044
SDJ
18442018-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
1845 Pedro Alves <palves@redhat.com>
1846
1847 * gnulib/Makefile.in (aclocal_m4_deps): Move to
1848 "aclocal-m4-deps.mk". Include file here.
1849 $(srcdir)/aclocal.m4: Add "configure.ac".
1850 * gnulib/aclocal-m4-deps.mk: New file.
1851 * gnulib/update-gnulib.sh: Automatically update
1852 "aclocal-m4-deps.mk".
1853
d53d5436
TT
18542018-09-04 Tom Tromey <tom@tromey.com>
1855
1856 * configure: Rebuild.
1857 * configure.ac: Remove multi-ice code.
1858
8dc9fd87
TT
18592018-09-04 Tom Tromey <tom@tromey.com>
1860
1861 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS): Remove.
1862 (ada-exp.o): Update.
1863
3322c5d9
TT
18642018-09-04 Tom Tromey <tom@tromey.com>
1865
1866 * Makefile.in (printcmd.o, target-float.o): Remove.
1867 (GDB_WARN_CFLAGS_NO_FORMAT): Remove.
1868
ba2bf2aa
TT
18692018-09-04 Tom Tromey <tom@tromey.com>
1870
1871 * gnulib/Makefile.in: Remove obsolete comment.
1872 * Makefile.in: Remove obsolete comment.
1873
6c9d681b
AB
18742018-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
1875
1876 * riscv-tdep.c (riscv_frame_cache): Fix ARI warning, don't end a
1877 line with '+'.
1878
78a3b0fa
AB
18792018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
1880
1881 * riscv-tdep.c: Add 'prologue-value.h' include.
1882 (struct riscv_unwind_cache): New struct.
1883 (riscv_debug_unwinder): New global.
1884 (riscv_scan_prologue): Update arguments, capture register details
1885 from prologue scan.
1886 (riscv_skip_prologue): Reformat arguments line, move end of
1887 prologue calculation into riscv_scan_prologue.
1888 (riscv_frame_cache): Update return type, create
1889 riscv_unwind_cache, scan the prologue, and fill in remaining cache
1890 details.
1891 (riscv_frame_this_id): Use frame id computed in riscv_frame_cache.
1892 (riscv_frame_prev_register): Use the trad_frame within the
1893 riscv_unwind_cache.
1894 (_initialize_riscv_tdep): Add 'set/show debug riscv unwinder'
1895 flag.
1896
23e60e7a
AB
18972018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
1898
1899 * trad-frame.h (trad_frame_set_realreg): Declare.
1900 (trad_frame_set_addr): Declare.
1901 * trad-frame.c (trad_frame_set_realreg): Define new function.
1902 (trad_frame_set_addr): Define new function.
1903 (trad_frame_set_reg_realreg): Use new function.
1904 (trad_frame_set_reg_addr): Use new function.
1905
5c889512
KS
19062018-09-01 Keith Seitz <keiths@redhat.com>
1907
1908 * compile/compile-cplus-types.c (compile_cplus_debug_output_1): Use
1909 pulongest instead of "%lld".
1910 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol): Remove
1911 ATTRIBUTE_UNUSED.
1912
c8c81635
TT
19132018-08-31 Tom Tromey <tom@tromey.com>
1914
1915 * dwarf2read.c (dwarf2_add_field): Set the TYPE_LENGTH of the
1916 variant part type.
1917
0c888588
PA
19182018-08-31 Pedro Alves <palves@redhat.com>
1919
1920 * gdbarch.h: Regenerate.
1921
7ea65f08
PA
19222018-08-31 Pedro Alves <palves@redhat.com>
1923
1924 * gdbarch.sh (have_nonsteppable_watchpoint): Add comment.
1925 * target.h (Hardware watchpoint interfaces): Describe
1926 continuable/steppable/non-steppable watchpoints.
1927 * gdbarch.h, gdbarch.c: Regenerate.
1928
7eb65faf
PA
19292018-08-31 Pedro Alves <palves@redhat.com>
1930
1931 * nto-procfs.c (nto_procfs_target::have_continuable_watchpoint):
1932 Delete.
1933 * s390-linux-nat.c
1934 (s390_linux_nat_target::have_continuable_watchpoint): Delete.
1935 * target.h (target_ops::have_continuable_watchpoint): Delete.
1936 (target_have_continuable_watchpoint): Delete.
1937 * x86-nat.h (x86_nat_target::have_continuable_watchpoint): Delete.
1938 * target-delegates.c: Regenerate.
1939
dab999b1
SDJ
19402018-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
1941
1942 * gnulib/Makefile.in (aclocal_m4_deps): Update according to
1943 the files present in "gnulib/import/m4/".
1944
ff3a05b3
AB
19452018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
1946
1947 * riscv-tdep.c (riscv_insn::decode): Decode c.addi4spn, c.sd,
1948 c.sw, c.swsp, and c.sdsp.
1949
0b3f9efc
AB
19502018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
1951
1952 * riscv-tdep.c (struct riscv_inferior_data): Delete.
1953 (riscv_read_misa_reg): Don't cache value read into inferior data.
1954 (riscv_new_inferior_data): Delete.
1955 (riscv_inferior_data_cleanup): Delete.
1956 (riscv_inferior_data): Delete.
1957 (riscv_invalidate_inferior_data): Delete.
1958 (_initialize_riscv_tdep): Remove initialisation of inferior data.
1959
a0dc02a6
SM
19602018-08-30 Simon Marchi <simon.marchi@ericsson.com>
1961
1962 * compile/compile-cplus-types.c
1963 (compile_cplus_instance::leave_scope): Take the address of scope
1964 object.
1965 (compile_cplus_instance::convert_qualified_base): Compare quals
1966 to 0.
1967
fdad7678
KS
19682018-08-30 Keith Seitz <keiths@redhat.com>
1969
1970 * compile/compile-cplus-types.c (compile_cplus_instance::enter_scope):
1971 Use "%s" and host_address_to_string instead of "%p" in printf.
1972
078a0207
KS
19732018-08-29 Keith Seitz <keiths@redhat.com>
1974
1975 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Add compile-cplus-symbols.c
1976 and compile-cplus-types.c.
1977 (HFILES_NO_SRCDIR): Add gcc-cp-plugin.h.
1978 * c-lang.c (cplus_language_defn): Set C++ compile functions.
1979 * c-lang.h (cplus_get_compile_context, cplus_compute_program):
1980 Declare.
1981 * compile/compile-c-support.c: Include compile-cplus.h.
1982 (load_libcompile): Templatize.
1983 (get_compile_context): "New" function.
1984 (c_get_compile_context): Use get_compile_context.
1985 (cplus_get_compile_context): New function.
1986 (cplus_push_user_expression, cplus_pop_user_expression)
1987 (cplus_add_code_header, cplus_add_input, cplus_compile_program)
1988 (cplus_compute_program): Define new structs/functions.
1989 * compile/compile-cplus-symmbols.c: New file.
1990 * compile/compile-cplus-types.c: New file.
1991 * compile/compile-cplus.h: New file.
1992 * compile/compile-internal.h (debug_compile_oracle, GCC_TYPE_NONE):
1993 Declare.
1994 * compile/compile-object-load.c (get_out_value_type): Use
1995 strncmp_iw when comparing symbol names.
1996 (compile_object_load): Add mst_bss and mst_data.
1997 * compile/compile.c (_initialize_compile): Remove
1998 -Wno-implicit-function-declaration from `compile_args'.
1999 * compile/gcc-cp-plugin.h: New file.
2000 * NEWS: Mention C++ compile support and new debug options.
2001
fcaad03c
KS
20022018-08-29 Keith Seitz <keiths@redhat.com>
2003
2004 * linespec.c (collect_info::add_symbol): Make virtual.
2005 (struct symbol_searcher_collect_info): New struct.
2006 (symbol_searcher::find_all_symbols): New method.
2007 * symtab.h (class symbol_searcher): New class.
2008
7e41c8db
KS
20092018-08-29 Keith Seitz <keiths@redhat.com>
2010
2011 * linespec.c (struct linespec) <function_symbols, label_symbols>:
2012 Change to vector of block_symbol. Update all users.
2013 (struct collect_info) <symbols>: Likewise.
2014 (collect_info::add_symbol): Take block_symbol as argument.
2015 Update all callers.
2016 (decode_compound_collector) <m_symbols>: Change type to vector
2017 of block_symbol. Update all users.
2018 (decode_compound_collector::operator ()): Change parameter type
2019 to block_symbol.
2020 (find_method, find_function_symbols, find_linespec_symbols)
2021 (find_label_symbols_in_block, find_label_symbols): Change symbol
2022 vectors to block_symbol vectors.
2023 * symtab.h (symbol_found_callback_ftype): Change parameter type to
2024 block_symbol.
2025
63e8c3da
KS
20262018-08-29 Keith Seitz <keiths@redhat.com>
2027
2028 * linespec.c (symbolp): Remove typedef and VEC definitions.
2029 (bound_minimal_symbol_d): Likewise.
2030
4dedf84d
KS
20312018-08-29 Keith Seitz <keiths@redhat.com>
2032
2033 * linespec.c (decode_compound_collector::decode_compound_collector):
2034 Remove initialization for `m_symtabs'.
2035 (decode_compound_collector::release_symbols): Change return type
2036 to std::vector. Update all callers.
2037 (class decode_compound_collector) <m_symbols>: Change type to
2038 std::vector.
2039 (lookup_prefix_sym): Change return type to std::vector. Update all
2040 callers.
2041 (compare_symbols): Remove.
2042 (std_compare_symbols): Rename to `compare_symbols'.
2043 (find_method): Change `sym_classes' parameter to std::vector.
2044 Update all callers. Use std::sort to sort sym_classes.
2045 (find_linespec_symbols): Remove cleanup.
2046
c2a031c5
KS
20472018-08-29 Keith Seitz <keiths@redhat.com>
2048
2049 * linespec.c (struct linespec) <minimal_symbols>: Change type to
2050 std::vector. Update all users.
2051 (convert_linespec_to_sals): Use std::sort to sort minimal symbols.
2052 (struct collect_info) <minimal_symbols>: Likewise.
2053 (compare_msymbols): Return bool. Change parameters to const
2054 bound_minimal_symbol references.
2055 (find_method, find_function_symbols, find_linespec_symbols): Change
2056 `minsyms' parameter to std::vector. Update all callers.
2057
3553eadc
KS
20582018-08-29 Keith Seitz <keiths@redhat.com>
2059
2060 * linespec.c (struct linespec) <label_symbols>: Change type to
2061 std::vector. Update all users.
2062 (find_label_symbols_in_block): Change `result' parameter to
2063 std::vector. Update all callers.
2064 (find_label_symbols): Return std::vector. Update all callers.
2065
7243d011
KS
20662018-08-29 Keith Seitz <keiths@redhat.com>
2067
2068 * linespec.c (struct linespec) <function_symbols>: Change type to
2069 std::vector. Update all users.
2070 (struct collect_info) <function_symbols>: Likewise.
2071 (convert_linespec_to_sals): Use std::sort to sort function_symbols.
2072 (std_compare_symbols): New function.
2073 (find_method, find_function_symbols, find_linespec_symbols)
2074 (find_label_symbols_in_block): Change `symbols' parameter to
2075 std::vector. Update all callers.
2076 (find_label_symbols): Likewise for `function_symbols' and
2077 `label_funcs_ret'.
2078
2a908241
KS
20792018-08-29 Keith Seitz <keiths@redhat.com>
2080
2081 * linespec.c (symtab_vector_up): Define.
2082 (struct linespec) <file_symtabs>: Change type to std::vector *.
2083 Update all uses.
2084 (struct collect_info) <file_symtabs>: Likewise.
2085 (collect_symtabs_from_filename): Return symtab_vector_up.
2086 Update all callers.
2087 (decode_objc): Remove cleanup.
2088 (symtab_collector::symtab_collector): Initialize `m_symtabs'.
2089 (symtab_collector::release_symtabs): Return symtab_vector_up.
2090 Update all callers.
2091 (class symtab_collector) <m_symtabs>: Change type to symtab_vector_up.
2092 Update all users.
2093 (collect_symtabs_from_filename, symtabs_from_filename): Return
2094 symtab_vector_up. Update all callers.
2095
f6c4e3e8
TT
20962018-08-29 Tom Tromey <tom@tromey.com>
2097
2098 * csky-tdep.c (csky_analyze_prologue): Use
2099 core_addr_to_string_nz.
2100
73c13fe6
TT
21012018-08-29 Tom Tromey <tom@tromey.com>
2102
2103 * windows-nat.c (struct xlate_exception) <them>: Change type to
2104 DWORD.
2105 (xlate): Fix formatting. Remove last entry.
2106 (struct xlate_exception, xlate): Comment out.
2107 (windows_nat_target::resume): Use ranged for.
2108
4d3928d7
JW
21092018-08-29 Jim Wilson <jimw@sifive.com>
2110
2111 * riscv-linux-nat.c: Include elf/common.h instead of elf.h.
2112 (riscv_linux_nat_target::fetch_registers): Use NT_FPREGSET instead
2113 of NT_PRFPREG.
2114 (riscv_linux_nat_target::store_registers): Likewise.
2115
7a6dbc2f
SDJ
21162018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
2117
2118 PR gdb/23555
2119 PR gdb/23558
2120 * gnulib/aclocal.m4: Regenerate.
2121 * gnulib/config.in: Regenerate.
2122 * gnulib/configure: Regenerate.
2123 * gnulib/import/Makefile.am: Update.
2124 * gnulib/import/Makefile.in: Update.
2125 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
2126 * gnulib/import/_Noreturn.h: ... this.
2127 * gnulib/import/alloca.in.h: Update.
2128 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
2129 * gnulib/import/arg-nonnull.h: ... this.
2130 * gnulib/import/assure.h: Update.
2131 * gnulib/import/at-func.c: Update.
2132 * gnulib/import/basename-lgpl.c: Update.
2133 * gnulib/import/extra/snippet/c++defs.h: Rename to...
2134 * gnulib/import/c++defs.h: ... this.
2135 * gnulib/import/canonicalize-lgpl.c: Update.
2136 * gnulib/import/cdefs.h: Update.
2137 * gnulib/import/chdir-long.c: Update.
2138 * gnulib/import/chdir-long.h: Update.
2139 * gnulib/import/cloexec.c: Update.
2140 * gnulib/import/cloexec.h: Update.
2141 * gnulib/import/close.c: Update.
2142 * gnulib/import/closedir.c: Update.
2143 * gnulib/import/config.charset: Update.
2144 * gnulib/import/dirent-private.h: Update.
2145 * gnulib/import/dirent.in.h: Update.
2146 * gnulib/import/dirfd.c: Update.
2147 * gnulib/import/dirname-lgpl.c: Update.
2148 * gnulib/import/dirname.h: Update.
2149 * gnulib/import/dosname.h: Update.
2150 * gnulib/import/dup-safer-flag.c: Update.
2151 * gnulib/import/dup-safer.c: Update.
2152 * gnulib/import/dup.c: Update.
2153 * gnulib/import/dup2.c: Update.
2154 * gnulib/import/errno.in.h: Update.
2155 * gnulib/import/error.c: Update.
2156 * gnulib/import/error.h: Update.
2157 * gnulib/import/exitfail.c: Update.
2158 * gnulib/import/exitfail.h: Update.
2159 * gnulib/import/extra/update-copyright: Update.
2160 * gnulib/import/fchdir.c: Update.
2161 * gnulib/import/fcntl.c: Update.
2162 * gnulib/import/fcntl.in.h: Update.
2163 * gnulib/import/fd-hook.c: Update.
2164 * gnulib/import/fd-hook.h: Update.
2165 * gnulib/import/fd-safer-flag.c: Update.
2166 * gnulib/import/fd-safer.c: Update.
2167 * gnulib/import/fdopendir.c: Update.
2168 * gnulib/import/filename.h: Update.
2169 * gnulib/import/filenamecat-lgpl.c: Update.
2170 * gnulib/import/filenamecat.h: Update.
2171 * gnulib/import/flexmember.h: Update.
2172 * gnulib/import/float+.h: Update.
2173 * gnulib/import/float.c: Update.
2174 * gnulib/import/float.in.h: Update.
2175 * gnulib/import/fnmatch.c: Update.
2176 * gnulib/import/fnmatch.in.h: Update.
2177 * gnulib/import/fnmatch_loop.c: Update.
2178 * gnulib/import/fpucw.h: Update.
2179 * gnulib/import/frexp.c: Update.
2180 * gnulib/import/frexpl.c: Update.
2181 * gnulib/import/fstat.c: Update.
2182 * gnulib/import/fstatat.c: Update.
2183 * gnulib/import/getcwd-lgpl.c: Update.
2184 * gnulib/import/getcwd.c: Update.
2185 * gnulib/import/getdtablesize.c: Update.
2186 * gnulib/import/getlogin_r.c: Update.
2187 * gnulib/import/getprogname.c: Update.
2188 * gnulib/import/getprogname.h: Update.
2189 * gnulib/import/gettext.h: Update.
2190 * gnulib/import/gettimeofday.c: Update.
2191 * gnulib/import/glob-libc.h: Update.
2192 * gnulib/import/glob.c: Update.
2193 * gnulib/import/glob.in.h: Update.
2194 * gnulib/import/glob_internal.h: Update.
2195 * gnulib/import/glob_pattern_p.c: Update.
2196 * gnulib/import/globfree.c: Update.
2197 * gnulib/import/hard-locale.c: Update.
2198 * gnulib/import/hard-locale.h: Update.
2199 * gnulib/import/intprops.h: Update.
2200 * gnulib/import/inttypes.in.h: Update.
2201 * gnulib/import/isnan.c: Update.
2202 * gnulib/import/isnand-nolibm.h: Update.
2203 * gnulib/import/isnand.c: Update.
2204 * gnulib/import/isnanl-nolibm.h: Update.
2205 * gnulib/import/isnanl.c: Update.
2206 * gnulib/import/itold.c: Update.
2207 * gnulib/import/libc-config.h: Update.
2208 * gnulib/import/limits.in.h: Update.
2209 * gnulib/import/localcharset.c: Update.
2210 * gnulib/import/localcharset.h: Update.
2211 * gnulib/import/localtime-buffer.c: Update.
2212 * gnulib/import/localtime-buffer.h: Update.
2213 * gnulib/import/lstat.c: Update.
2214 * gnulib/import/m4/00gnulib.m4: Update.
2215 * gnulib/import/m4/__inline.m4: Update.
2216 * gnulib/import/m4/absolute-header.m4: Update.
2217 * gnulib/import/m4/alloca.m4: Update.
2218 * gnulib/import/m4/builtin-expect.m4: Update.
2219 * gnulib/import/m4/canonicalize.m4: Update.
2220 * gnulib/import/m4/chdir-long.m4: Update.
2221 * gnulib/import/m4/close.m4: Update.
2222 * gnulib/import/m4/closedir.m4: Update.
2223 * gnulib/import/m4/configmake.m4: Update.
2224 * gnulib/import/m4/d-ino.m4: Update.
2225 * gnulib/import/m4/d-type.m4: Update.
2226 * gnulib/import/m4/dirent_h.m4: Update.
2227 * gnulib/import/m4/dirfd.m4: Update.
2228 * gnulib/import/m4/dirname.m4: Update.
2229 * gnulib/import/m4/double-slash-root.m4: Update.
2230 * gnulib/import/m4/dup.m4: Update.
2231 * gnulib/import/m4/dup2.m4: Update.
2232 * gnulib/import/m4/eealloc.m4: Update.
2233 * gnulib/import/m4/environ.m4: Update.
2234 * gnulib/import/m4/errno_h.m4: Update.
2235 * gnulib/import/m4/error.m4: Update.
2236 * gnulib/import/m4/exponentd.m4: Update.
2237 * gnulib/import/m4/exponentl.m4: Update.
2238 * gnulib/import/m4/extensions.m4: Update.
2239 * gnulib/import/m4/extern-inline.m4: Update.
2240 * gnulib/import/m4/fchdir.m4: Update.
2241 * gnulib/import/m4/fcntl-o.m4: Update.
2242 * gnulib/import/m4/fcntl.m4: Update.
2243 * gnulib/import/m4/fcntl_h.m4: Update.
2244 * gnulib/import/m4/fdopendir.m4: Update.
2245 * gnulib/import/m4/filenamecat.m4: Update.
2246 * gnulib/import/m4/flexmember.m4: Update.
2247 * gnulib/import/m4/float_h.m4: Update.
2248 * gnulib/import/m4/fnmatch.m4: Update.
2249 * gnulib/import/m4/fnmatch_h.m4: Update.
2250 * gnulib/import/m4/fpieee.m4: Update.
2251 * gnulib/import/m4/frexp.m4: Update.
2252 * gnulib/import/m4/frexpl.m4: Update.
2253 * gnulib/import/m4/fstat.m4: Update.
2254 * gnulib/import/m4/fstatat.m4: Update.
2255 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
2256 * gnulib/import/m4/getcwd-path-max.m4: Update.
2257 * gnulib/import/m4/getcwd.m4: Update.
2258 * gnulib/import/m4/getdtablesize.m4: Update.
2259 * gnulib/import/m4/getlogin.m4: Update.
2260 * gnulib/import/m4/getlogin_r.m4: Update.
2261 * gnulib/import/m4/getpagesize.m4: Update.
2262 * gnulib/import/m4/getprogname.m4: Update.
2263 * gnulib/import/m4/gettimeofday.m4: Update.
2264 * gnulib/import/m4/glibc21.m4: Update.
2265 * gnulib/import/m4/glob.m4: Update.
2266 * gnulib/import/m4/glob_h.m4: Update.
2267 * gnulib/import/m4/gnulib-cache.m4: Update.
2268 * gnulib/import/m4/gnulib-common.m4: Update.
2269 * gnulib/import/m4/gnulib-comp.m4: Update.
2270 * gnulib/import/m4/gnulib-tool.m4: Update.
2271 * gnulib/import/m4/hard-locale.m4: Update.
2272 * gnulib/import/m4/include_next.m4: Update.
2273 * gnulib/import/m4/inttypes-pri.m4: Update.
2274 * gnulib/import/m4/inttypes.m4: Update.
2275 * gnulib/import/m4/isnand.m4: Update.
2276 * gnulib/import/m4/isnanl.m4: Update.
2277 * gnulib/import/m4/largefile.m4: Update.
2278 * gnulib/import/m4/limits-h.m4: Update.
2279 * gnulib/import/m4/localcharset.m4: Update.
2280 * gnulib/import/m4/locale-fr.m4: Update.
2281 * gnulib/import/m4/locale-ja.m4: Update.
2282 * gnulib/import/m4/locale-zh.m4: Update.
2283 * gnulib/import/m4/localtime-buffer.m4: Update.
2284 * gnulib/import/m4/longlong.m4: Update.
2285 * gnulib/import/m4/lstat.m4: Update.
2286 * gnulib/import/m4/malloc.m4: Update.
2287 * gnulib/import/m4/malloca.m4: Update.
2288 * gnulib/import/m4/math_h.m4: Update.
2289 * gnulib/import/m4/mbrtowc.m4: Update.
2290 * gnulib/import/m4/mbsinit.m4: Update.
2291 * gnulib/import/m4/mbsrtowcs.m4: Update.
2292 * gnulib/import/m4/mbstate_t.m4: Update.
2293 * gnulib/import/m4/memchr.m4: Update.
2294 * gnulib/import/m4/memmem.m4: Update.
2295 * gnulib/import/m4/mempcpy.m4: Update.
2296 * gnulib/import/m4/memrchr.m4: Update.
2297 * gnulib/import/m4/mkdir.m4: Update.
2298 * gnulib/import/m4/mkstemp.m4: Update.
2299 * gnulib/import/m4/mmap-anon.m4: Update.
2300 * gnulib/import/m4/mode_t.m4: Update.
2301 * gnulib/import/m4/msvc-inval.m4: Update.
2302 * gnulib/import/m4/msvc-nothrow.m4: Update.
2303 * gnulib/import/m4/multiarch.m4: Update.
2304 * gnulib/import/m4/nocrash.m4: Update.
2305 * gnulib/import/m4/off_t.m4: Update.
2306 * gnulib/import/m4/onceonly.m4: Update.
2307 * gnulib/import/m4/open-cloexec.m4: Update.
2308 * gnulib/import/m4/open.m4: Update.
2309 * gnulib/import/m4/openat.m4: Update.
2310 * gnulib/import/m4/opendir.m4: Update.
2311 * gnulib/import/m4/pathmax.m4: Update.
2312 * gnulib/import/m4/rawmemchr.m4: Update.
2313 * gnulib/import/m4/readdir.m4: Update.
2314 * gnulib/import/m4/readlink.m4: Update.
2315 * gnulib/import/m4/realloc.m4: Update.
2316 * gnulib/import/m4/rename.m4: Update.
2317 * gnulib/import/m4/rewinddir.m4: Update.
2318 * gnulib/import/m4/rmdir.m4: Update.
2319 * gnulib/import/m4/save-cwd.m4: Update.
2320 * gnulib/import/m4/secure_getenv.m4: Update.
2321 * gnulib/import/m4/setenv.m4: Update.
2322 * gnulib/import/m4/signal_h.m4: Update.
2323 * gnulib/import/m4/ssize_t.m4: Update.
2324 * gnulib/import/m4/stat-time.m4: Update.
2325 * gnulib/import/m4/stat.m4: Update.
2326 * gnulib/import/m4/std-gnu11.m4: Update.
2327 * gnulib/import/m4/stdbool.m4: Update.
2328 * gnulib/import/m4/stddef_h.m4: Update.
2329 * gnulib/import/m4/stdint.m4: Update.
2330 * gnulib/import/m4/stdio_h.m4: Update.
2331 * gnulib/import/m4/stdlib_h.m4: Update.
2332 * gnulib/import/m4/strchrnul.m4: Update.
2333 * gnulib/import/m4/strdup.m4: Update.
2334 * gnulib/import/m4/strerror.m4: Update.
2335 * gnulib/import/m4/string_h.m4: Update.
2336 * gnulib/import/m4/strstr.m4: Update.
2337 * gnulib/import/m4/strtok_r.m4: Update.
2338 * gnulib/import/m4/sys_socket_h.m4: Update.
2339 * gnulib/import/m4/sys_stat_h.m4: Update.
2340 * gnulib/import/m4/sys_time_h.m4: Update.
2341 * gnulib/import/m4/sys_types_h.m4: Update.
2342 * gnulib/import/m4/tempname.m4: Update.
2343 * gnulib/import/m4/time_h.m4: Update.
2344 * gnulib/import/m4/unistd-safer.m4: Update.
2345 * gnulib/import/m4/unistd_h.m4: Update.
2346 * gnulib/import/m4/warn-on-use.m4: Update.
2347 * gnulib/import/m4/wchar_h.m4: Update.
2348 * gnulib/import/m4/wchar_t.m4: Update.
2349 * gnulib/import/m4/wctype_h.m4: Update.
2350 * gnulib/import/m4/wint_t.m4: Update.
2351 * gnulib/import/malloc.c: Update.
2352 * gnulib/import/malloc/scratch_buffer.h: Update.
2353 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
2354 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
2355 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
2356 * gnulib/import/malloca.c: Update.
2357 * gnulib/import/malloca.h: Update.
2358 * gnulib/import/malloca.valgrind: Update.
2359 * gnulib/import/math.in.h: Update.
2360 * gnulib/import/mbrtowc.c: Update.
2361 * gnulib/import/mbsinit.c: Update.
2362 * gnulib/import/mbsrtowcs-impl.h: Update.
2363 * gnulib/import/mbsrtowcs-state.c: Update.
2364 * gnulib/import/mbsrtowcs.c: Update.
2365 * gnulib/import/memchr.c: Update.
2366 * gnulib/import/memmem.c: Update.
2367 * gnulib/import/mempcpy.c: Update.
2368 * gnulib/import/memrchr.c: Update.
2369 * gnulib/import/mkdir.c: Update.
2370 * gnulib/import/mkstemp.c: Update.
2371 * gnulib/import/msvc-inval.c: Update.
2372 * gnulib/import/msvc-inval.h: Update.
2373 * gnulib/import/msvc-nothrow.c: Update.
2374 * gnulib/import/msvc-nothrow.h: Update.
2375 * gnulib/import/open.c: Update.
2376 * gnulib/import/openat-die.c: Update.
2377 * gnulib/import/openat-priv.h: Update.
2378 * gnulib/import/openat-proc.c: Update.
2379 * gnulib/import/openat.c: Update.
2380 * gnulib/import/openat.h: Update.
2381 * gnulib/import/opendir.c: Update.
2382 * gnulib/import/pathmax.h: Update.
2383 * gnulib/import/pipe-safer.c: Update.
2384 * gnulib/import/rawmemchr.c: Update.
2385 * gnulib/import/readdir.c: Update.
2386 * gnulib/import/readlink.c: Update.
2387 * gnulib/import/realloc.c: Update.
2388 * gnulib/import/ref-add.sin: Update.
2389 * gnulib/import/ref-del.sin: Update.
2390 * gnulib/import/rename.c: Update.
2391 * gnulib/import/rewinddir.c: Update.
2392 * gnulib/import/rmdir.c: Update.
2393 * gnulib/import/same-inode.h: Update.
2394 * gnulib/import/save-cwd.c: Update.
2395 * gnulib/import/save-cwd.h: Update.
2396 * gnulib/import/scratch_buffer.h: Update.
2397 * gnulib/import/secure_getenv.c: Update.
2398 * gnulib/import/setenv.c: Update.
2399 * gnulib/import/signal.in.h: Update.
2400 * gnulib/import/stat-time.c: Update.
2401 * gnulib/import/stat-time.h: Update.
2402 * gnulib/import/stat-w32.c: Update.
2403 * gnulib/import/stat-w32.h: Update.
2404 * gnulib/import/stat.c: Update.
2405 * gnulib/import/stdbool.in.h: Update.
2406 * gnulib/import/stddef.in.h: Update.
2407 * gnulib/import/stdint.in.h: Update.
2408 * gnulib/import/stdio.in.h: Update.
2409 * gnulib/import/stdlib.in.h: Update.
2410 * gnulib/import/str-two-way.h: Update.
2411 * gnulib/import/strchrnul.c: Update.
2412 * gnulib/import/strdup.c: Update.
2413 * gnulib/import/streq.h: Update.
2414 * gnulib/import/strerror-override.c: Update.
2415 * gnulib/import/strerror-override.h: Update.
2416 * gnulib/import/strerror.c: Update.
2417 * gnulib/import/string.in.h: Update.
2418 * gnulib/import/stripslash.c: Update.
2419 * gnulib/import/strnlen1.c: Update.
2420 * gnulib/import/strnlen1.h: Update.
2421 * gnulib/import/strstr.c: Update.
2422 * gnulib/import/strtok_r.c: Update.
2423 * gnulib/import/sys_stat.in.h: Update.
2424 * gnulib/import/sys_time.in.h: Update.
2425 * gnulib/import/sys_types.in.h: Update.
2426 * gnulib/import/tempname.c: Update.
2427 * gnulib/import/tempname.h: Update.
2428 * gnulib/import/time.in.h: Update.
2429 * gnulib/import/unistd--.h: Update.
2430 * gnulib/import/unistd-safer.h: Update.
2431 * gnulib/import/unistd.in.h: Update.
2432 * gnulib/import/unsetenv.c: Update.
2433 * gnulib/import/verify.h: Update.
2434 * gnulib/import/extra/snippet/warn-on-use.h: Update.
2435 * gnulib/import/wchar.in.h: Update.
2436 * gnulib/import/wctype.in.h: Update.
2437 * gnulib/import/xalloc-oversized.h: Update.
2438 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
2439 "53e2c179f26a890fa6685af4b6c1397ee370433b".
2440
b0f492b9
GB
24412018-08-16 Gary Benson <gbenson@redhat.com>
2442
2443 PR gdb/13000:
2444 * gdb/main.c (captured_main_1): Exit with nonzero status
2445 in batch mode if the last command to be executed failed.
2446 * NEWS: Mention the above.
2447
2362e7f7
SM
24482018-08-29 Simon Marchi <simon.marchi@ericsson.com>
2449
2450 * csky-tdep.c (csky_memory_insert_breakpoint): Remove newline at
2451 end of warning message.
2452
4f4aedeb
AH
24532018-08-29 Alan Hayward <alan.hayward@arm.com>
2454
2455 PR gdb/22943:
2456 * aarch64-tdep.c (is_hfa_or_hva): Remove function.
2457 (aarch64_extract_return_value): Use
2458 aapcs_is_vfp_call_or_return_candidate.
2459 (aarch64_return_in_memory): Likewise.
2460 (aarch64_store_return_value): Likewise.
2461
0e745c60
AH
24622018-08-29 Alan Hayward <alan.hayward@arm.com>
2463
2464 * aarch64-tdep.c
2465 (aapcs_is_vfp_call_or_return_candidate): Make static
2466 (pass_in_v_or_stack): Remove function.
2467 (pass_in_v_vfp_candidate): New function.
2468 (aarch64_push_dummy_call): Check for float register candidates.
2469
ea92689a
AH
24702018-08-29 Alan Hayward <alan.hayward@arm.com>
2471
2472 * aarch64-tdep.c (HA_MAX_NUM_FLDS): New macro.
2473 (aapcs_is_vfp_call_or_return_candidate_1): New function.
2474 (aapcs_is_vfp_call_or_return_candidate): Likewise.
2475
ad202fcc
SM
24762018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
2477
2478 PR build/23399
2479 * common/agent.c (IPA_SYM_STRUCT_NAME): Define.
2480 (struct ipa_sym_addresses): Rename to...
2481 (struct ipa_sym_addresses_common): ... this.
2482 * common/agent.h (IPA_SYM): Use IPA_SYM_STRUCT_NAME.
2483
5fe3f3e4
TT
24842018-08-28 Tom Tromey <tom@tromey.com>
2485
2486 * c-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
2487 (token_fifo): Now a std::vector.
2488 (yylex, c_parse): Update.
2489 * d-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
2490 (token_fifo): Now a std::vector.
2491 (yylex, d_parse): Update.
2492 * go-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
2493 (token_fifo): Now a std::vector.
2494 (yylex, go_parse): Update.
2495
858d8004
SM
24962018-08-28 Simon Marchi <simon.marchi@ericsson.com>
2497
2498 * parser-defs.h (struct type_stack) <elements>: Change type to
2499 std::vector<union type_stack_elt>.
2500 <depth, size>: Remove.
2501 * parse.c (parse_exp_in_context_1): Adjust.
2502 (type_stack_reserve): Remove.
2503 (check_type_stack_depth): Remove.
2504 (insert_into_type_stack): Adjust to std::vector.
2505 (insert_type): Likewise.
2506 (push_type): Likewise.
2507 (push_type_int): Likewise.
2508 (insert_type_address_space): Likewise.
2509 (pop_type): Likewise.
2510 (pop_type_int): Likewise.
2511 (pop_typelist): Likewise.
2512 (pop_type_stack): Likewise.
2513 (append_type_stack): Likewise.
2514 (push_type_stack): Likewise.
2515 (get_type_stack): Likewise.
2516 (type_stack_cleanup): Likewise.
2517 (push_typelist): Likewise.
2518 (follow_types): Likewise.
2519 (_initialize_parse): Likewise.
2520
416a69af
HAQ
25212018-08-28 Hafiz Abid Qadeer <abidh@codesourcery.com>
2522
2523 * NEWS: Mention csky target.
2524
9d24df82
HAQ
25252018-08-28 Jiangshuai Li <jiangshuai_li@c-sky.com>
2526 Hafiz Abid Qadeer <abidh@codesourcery.com>
2527 Don Breazeal <donb@codesourcery.com>
2528
2529 * csky-linux-tdep.c: New file.
2530 * csky-tdep.c: Likewise.
2531 * csky-tdep.h: Likewise.
2532 * Makefile.in (ALL_TARGET_OBS): Add csky-linux-tdep.o and
2533 csky-tdep.o.
2534 (HFILES_NO_SRCDIR): Add csky-tdep.h.
2535 (ALLDEPFILES): Add csky-linux-tdep.c and csky-tdep.c
2536 * configure.tgt: Add csky support.
2537
3bf9c013
JV
25382018-08-27 Jan Vrany <jan.vrany@fit.cvut.cz>
2539
2540 * python/py-framefilter.c (py_print_frame): Print frame architecture
2541 when printing on an MI output.
2542
d3d8724a
TT
25432018-08-27 Tom Tromey <tom@tromey.com>
2544
2545 PR build/23087:
2546 * configure: Rebuild.
2547 * warning.m4 (AM_GDB_WARNINGS): Remove -Wno-narrowing.
2548
1885053b
TT
25492018-08-27 Tom Tromey <tom@tromey.com>
2550
2551 * aarch64-linux-tdep.c
2552 (aarch64_linux_iterate_over_regset_sections) <sve_regmap>: Add
2553 casts to int.
2554
8406672e
TT
25552018-08-27 Tom Tromey <tom@tromey.com>
2556
2557 * ppc64-tdep.c (insn_d, insn_ds, insn_xfx): Add casts to
2558 unsigned.
2559 (ppc64_standard_linkage1, ppc64_standard_linkage2)
2560 (ppc64_standard_linkage3, ppc64_standard_linkage4)
2561 (ppc64_standard_linkage5, ppc64_standard_linkage6)
2562 (ppc64_standard_linkage7, ppc64_standard_linkage8): Add casts to
2563 unsigned.
2564
ec40cf90
TT
25652018-08-27 Tom Tromey <tom@tromey.com>
2566
2567 * xtensa-tdep.h (XTREG_END): Add cast to unsigned.
2568 (XTENSA_GDBARCH_TDEP_INSTANTIATE): Likewise.
2569
7bc02706
TT
25702018-08-27 Tom Tromey <tom@tromey.com>
2571
2572 * tramp-frame.h (TRAMP_SENTINEL_INSN): Redefine.
2573 * tilegx-linux-tdep.c (tilegx_linux_rt_sigframe): Use
2574 ULONGEST_MAX.
2575 * tic6x-linux-tdep.c (tic6x_linux_rt_sigreturn_tramp_frame): Use
2576 ULONGEST_MAX.
2577 * sparc64-linux-tdep.c (sparc64_linux_rt_sigframe): Use
2578 ULONGEST_MAX.
2579 * sparc-linux-tdep.c (sparc32_linux_sigframe)
2580 (sparc32_linux_rt_sigframe): Use ULONGEST_MAX.
2581 * ppc-nbsd-tdep.c (ppcnbsd_sigtramp, ppcnbsd2_sigtramp): Use
2582 ULONGEST_MAX.
2583 * ppc-linux-tdep.c (ppc32_linux_sigaction_tramp_frame)
2584 (ppc64_linux_sigaction_tramp_frame)
2585 (ppc32_linux_sighandler_tramp_frame)
2586 (ppc64_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
2587 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame)
2588 (nios2_r2_linux_rt_sigreturn_tramp_frame): Use ULONGEST_MAX.
2589 * mn10300-linux-tdep.c (am33_linux_sigframe)
2590 (am33_linux_rt_sigframe): Use ULONGEST_MAX.
2591 * mips64-obsd-tdep.c (mips64obsd_sigframe): Use ULONGEST_MAX.
2592 * mips-linux-tdep.c (mips_linux_o32_sigframe)
2593 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
2594 (mips_linux_n64_rt_sigframe, micromips_linux_o32_sigframe)
2595 (micromips_linux_o32_rt_sigframe, micromips_linux_n32_rt_sigframe)
2596 (micromips_linux_n64_rt_sigframe): Use ULONGEST_MAX.
2597 * mips-fbsd-tdep.c (mips_fbsd_sigframe, mipsn32_fbsd_sigframe)
2598 (mips64_fbsd_sigframe): Use ULONGEST_MAX.
2599 * microblaze-linux-tdep.c
2600 (microblaze_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
2601 * i386-nbsd-tdep.c (i386nbsd_sigtramp_sc16, i386nbsd_sigtramp_sc2)
2602 (i386nbsd_sigtramp_si2, i386nbsd_sigtramp_si31)
2603 (i386nbsd_sigtramp_si4): Use ULONGEST_MAX.
2604 * hppa-nbsd-tdep.c (hppanbsd_sigtramp_si4): Use ULONGEST_MAX.
2605 * common/common-types.h (ULONGEST_MAX): New define.
2606 (CORE_ADDR_MAX): Fix formatting.
2607 * bfin-linux-tdep.c (bfin_linux_sigframe): Use ULONGEST_MAX.
2608 * arm-obsd-tdep.c (armobsd_sigframe): Use ULONGEST_MAX.
2609 * arm-linux-tdep.c (arm_linux_sigreturn_tramp_frame)
2610 (arm_linux_rt_sigreturn_tramp_frame)
2611 (arm_eabi_linux_sigreturn_tramp_frame)
2612 (arm_eabi_linux_rt_sigreturn_tramp_frame)
2613 (thumb2_eabi_linux_sigreturn_tramp_frame)
2614 (thumb2_eabi_linux_rt_sigreturn_tramp_frame)
2615 (arm_linux_restart_syscall_tramp_frame)
2616 (arm_kernel_linux_restart_syscall_tramp_frame): Use ULONGEST_MAX.
2617 * arm-fbsd-tdep.c (arm_fbsd_sigframe): Use ULONGEST_MAX.
2618 * aarch64-linux-tdep.c (aarch64_linux_rt_sigframe): Use
2619 ULONGEST_MAX.
2620 * aarch64-fbsd-tdep.c (aarch64_fbsd_sigframe): Use ULONGEST_MAX.
2621
70ab8ccd
TT
26222018-08-27 Tom Tromey <tom@tromey.com>
2623
2624 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Use
2625 CORE_ADDR_MAX.
2626 * mips-tdep.c (mips_deal_with_atomic_sequence)
2627 (micromips_deal_with_atomic_sequence): Use CORE_ADDR_MAX.
2628 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw)
2629 (arm_deal_with_atomic_sequence_raw): Use CORE_ADDR_MAX.
2630 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Use
2631 CORE_ADDR_MAX.
2632 * aarch64-tdep.c (aarch64_software_single_step): Use
2633 CORE_ADDR_MAX.
2634
896a7aa6
TT
26352018-08-27 Tom Tromey <tom@tromey.com>
2636
2637 * linespec.c (complete_linespec_component): Add cast to "char".
2638 * completer.c (completion_tracker::build_completion_result): Add
2639 cast to "char".
2640
dd33d41d
SM
26412018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
2642
2643 * solist.h (struct solist, struct target_so_ops): Fix
2644 indentation.
2645
c645cda4
SM
26462018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
2647
2648 * ada-tasks.c (ada_task_info_s): Remove typedef.
2649 (DEF_VEC_O(ada_task_info_s)): Remove.
2650 (struct ada_tasks_inferior_data): Initialize fields.
2651 <task_list>: Make an std::vector.
2652 (get_ada_tasks_inferior_data): Allocate with new.
2653 (ada_get_task_number): Adjust.
2654 (get_task_number_from_id): Likewise.
2655 (valid_task_id): Likewise.
2656 (ada_get_task_info_from_ptid): Likewise.
2657 (iterate_over_live_ada_tasks): Likewise.
2658 (add_ada_task): Likewise.
2659 (read_known_tasks): Likewise.
2660 (ada_build_task_list): Likewise.
2661 (print_ada_task_info): Likewise.
2662 (info_task): Likewise.
2663 (task_command_1): Likewise.
2664
39e7af3e
SM
26652018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
2666
2667 * ada-lang.c (add_angle_brackets): Return std::string.
2668
bbbbbcee
SM
26692018-08-25 Simon Marchi <simon.marchi@polymtl.ca>
2670
2671 * python/py-threadevent.c (py_get_event_thread): Initialize
2672 pythread.
2673
d98fc15b
PA
26742018-08-24 Pedro Alves <palves@redhat.com>
2675
2676 * python/py-bpevent.c (create_breakpoint_event_object): Use
2677 copy-initialization.
2678 * python/py-continueevent.c (emit_continue_event): Use
2679 copy-initialization.
2680 * python/py-exitedevent.c (create_exited_event_object): Return a
2681 gdbpy_ref<>.
2682 (emit_exited_event): Use copy-initialization.
2683 * python/py-inferior.c (python_new_inferior)
2684 (python_inferior_deleted, add_thread_object): Use
2685 copy-initialization.
2686 * python/py-infevents.c (create_inferior_call_event_object)
2687 (create_register_changed_event_object)
2688 (create_memory_changed_event_object): Return a gdbpy_ref<>.
2689 (emit_inferior_call_event, emit_memory_changed_event)
2690 (emit_register_changed_event): Use copy-initialization.
2691 * python/py-newobjfileevent.c (create_new_objfile_event_object):
2692 Return a gdbpy_ref<>.
2693 (emit_new_objfile_event): Use copy-initialization.
2694 (create_clear_objfiles_event_object): Return a gdbpy_ref<>.
2695 (emit_clear_objfiles_event): Use copy-initialization.
2696 * python/py-signalevent.c (create_signal_event_object): Use
2697 copy-initialization.
2698 * python/py-threadevent.c (create_thread_event_object): Use
2699 copy-initialization.
2700
da3c8738
PA
27012018-08-24 Pedro Alves <palves@redhat.com>
2702 Simon Marchi <simon.marchi@ericsson.com>
2703
2704 PR gdb/23379
2705 * python/py-continueevent.c: Include "gdbthread.h".
2706 (create_continue_event_object): Add intro comment. Add 'ptid'
2707 parameter. Use it to find thread to pass to
2708 create_thread_event_object.
2709 (emit_continue_event): Pass PTID down to
2710 create_continue_event_object.
2711 * python/py-event.h (py_get_event_thread): Declare.
2712 (create_thread_event_object): Remove default from 'thread'
2713 parameter.
2714 * python/py-stopevent.c (create_stop_event_object): Use
2715 py_get_event_thread.
2716 * python/py-threadevent.c (get_event_thread): Rename to ...
2717 (py_get_event_thread): ... this, make extern, add 'ptid' parameter
2718 and use it to find the thread.
2719 (create_thread_event_object): Assert that THREAD isn't null.
2720 Don't find the event thread here.
2721
26457a9c
KB
27222018-08-23 Kevin Buettner <kevinb@redhat.com>
2723
2724 * block.h (blockrange, blockranges): New struct declarations.
2725 (struct block): Add new field named `ranges'.
2726 (BLOCK_RANGES, BLOCK_NRANGES, BLOCK_RANGE, BLOCK_CONTIGUOUS_P)
2727 (BLOCK_RANGE_START, BLOCK_RANGE_END, BLOCK_ENTRY_PC): New
2728 macros for accessing ranges in struct block.
2729 (make_blockranges): New declaration.
2730 block.c (make_blockranges): New function.
2d5f09ec
KB
2731 * dwarf2read.c (dwarf2_record_block_ranges): Fill in BLOCK_RANGES
2732 for block.
fc811edd
KB
2733 * symtab.h (find_pc_partial_function): Add new parameter `block'.
2734 * blockframe.c (cache_pc_function_block): New static global.
2735 (clear_pc_function_cache): Clear cache_pc_function_block.
2736 (find_pc_partial_function): Move comment to symtab.h. Add
2737 support for non-contiguous blocks.
e9480230
KB
2738 * cli/cli-cmds.c (block.h): Include.
2739 (print_disassembly): Handle printing of non-contiguous blocks.
2740 (disassemble_current_function): Likewise.
2741 (disassemble_command): Likewise.
26457a9c 2742
2b1ffcfd
KB
2743 * ax-gdb.c (gen_var_ref): Use BLOCK_ENTRY_PC in place of
2744 BLOCK_START.
2745 * blockframe.c (get_pc_function_start): Likewise.
2746 * compile/compile-c-symbols.c (convert_one_symbol): Likewise.
2747 (gcc_symbol_address): Likewise.
2748 * compile/compile-object-run.c (compile_object_run): Likewise.
2749 * compile/compile.c (get_expr_block_and_pc): Likewise.
2750 * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
2751 (func_addr_to_tail_call_list): Likewise.
2752 * findvar.c (default_read_var_value): Likewise.
2753 * inline-frame.c (inline_frame_this_id): Likewise.
2754 (skip-inline_frames): Likewise.
2755 * infcmd.c (until_next_command): Likewise.
2756 * linespec.c (convert_linespec_to_sals): Likewise.
2757 * parse.c (parse_exp_in_context_1): Likewise.
2758 * printcmd.c (build_address_symbolic): likewise.
2759 (info_address_command): Likewise.
2760 symtab.c (find_function_start_sal): Likewise.
2761 (skip_prologue_sal): Likewise.
2762 (find_function_alias_target): Likewise.
2763 (find_gnu_ifunc): Likewise.
2764 * stack.c (find_frame_funname): Likewise.
2765 * symtab.c (fixup_symbol_section): Likewise.
2766 (find_function_start_sal): Likewise.
2767 (skip_prologue_sal): Likewsie.
2768 (find_function_alias_target): Likewise.
2769 (find_gnu_ifunc): Likewise.
2770 * tracepoint.c (info_scope_command): Likewise.
2771 * value.c (value_fn_field): Likewise.
2772
9644dc3a
KB
2773 * infrun.c (fill_in_stop_func): Use find_function_entry_range_from_pc
2774 in place of find_pc_partial_function.
2775 * blockframe.c (find_function_entry_range_from_pc): New function.
2776 * symtab.h (find_function_entry_range_from_pc): Declare and document.
2777 * objfiles.c (objfile_relocate1): Relocate start and end addresses
2778 for each range in a block.
2779
2780
12a0d0f6
XR
27812018-08-23 Xavier Roirand <roirand@adacore.com>
2782
2783 * machoread.c (macho_symfile_read_all_oso): Remove uneeded
2784 incrementation.
2785
d1012b8e
SM
27862018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2787
2788 * solib-svr4.c (read_program_headers_from_bfd): Return
2789 gdb::optional<gdb::byte_vector>.
2790 (svr4_exec_displacement): Adjust.
2791
17658d46
SM
27922018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2793
2794 * solib-svr4.c (read_program_header): Return
2795 gdb::optional<gdb::byte_vector>, remove p_sect_size param.
2796 (find_program_interpreter): Return
2797 gdb::optional<gdb::byte_vector>.
2798 (scan_dyntag_auxv): Adjust.
2799 (enable_break): Adjust.
2800 (svr4_exec_displacement): Adjust.
2801
ae739fe7
SM
28022018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2803
2804 * inf-child.h (inf_child_target) <terminal_save_inferior>: New.
2805 * inf-child.c (inf_child_target::terminal_save_inferior): New.
2806
467dc1e2
SM
28072018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2808
2809 * guile/scm-string.c (gdbscm_scm_from_printf): Use
2810 string_vprintf.
2811 * guile/scm-utils.c (gdbscm_printf): Likewise.
2812 * serial.c (serial_printf): Likewise.
2813 * xml-support.c (gdb_xml_parser::vdebug): Likewise.
2814
6d52907e
JV
28152018-08-22 Jan Vrany <jan.vrany@fit.cvut.cz>
2816
2817 * stack.c (print_frame): Print frame architecture when printing on
2818 an MI output.
2819 * NEWS: Mention new "arch" attribute in frame output.
2820
9758a8f8
AH
28212018-08-21 Alan Hayward <alan.hayward@arm.com>
2822
2823 * arch/aarch64.h (aarch64_regnum): Update comment.
2824
1461bdac
AH
28252018-08-21 Alan Hayward <alan.hayward@arm.com>
2826
2827 * NEWS: Add SVE to 8.2 section.
2828
4895f384
PA
28292018-08-21 Pedro Alves <palves@redhat.com>
2830
2831 * guile/scm-utils.c (gdbscm_parse_function_args_1): New, factored
2832 out from gdbscm_parse_function_args.
2833 (gdbscm_parse_function_args): Rework to use gdbscm_wrap and
2834 gdbscm_parse_function_args_1.
2835
a4497d2f
SM
28362018-08-21 Simon Marchi <simon.marchi@ericsson.com>
2837
2838 PR gdb/17816
2839 * m32c-tdep.c (m32c_decode_srcdest4): Remove unnecessary ternary
2840 operator.
2841
c44deb73
SM
28422018-08-19 Simon Marchi <simon.marchi@polymtl.ca>
2843
2844 * solib-svr4.c (svr4_exec_displacement): Fix formatting.
2845
be2d111a
MS
28462018-08-19 Michael Spang <spang@google.com>
2847
2848 PR gdb/11786
2849 * solib-svr4.c (svr4_exec_displacement): Ignore memsz fields
2850 for PT_TLS segments.
2851
a6b786da
KB
28522018-08-18 Kevin Buettner <kevinb@redhat.com>
2853
2854 * dwarf2expr.h (struct dwarf_expr_context): Add virtual method
2855 dwarf_variable_value.
2856 * dwarf2-frame.c (class dwarf_expr_executor):
2857 Add override for dwarf_variable_value.
2858 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Likewise.
2859 (class symbol_needs_eval_context): Likewise.
2860 (indirect_synthetic_pointer): Add forward declaration.
2861 (sect_variable_value): New function.
2862 (dwarf2_compile_expr_to_ax): Add case for DW_OP_GNU_variable_value.
2863 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Add case
2864 for DW_OP_GNU_variable_value.
2865
89fbedf3
TT
28662018-08-16 Tom Tromey <tom@tromey.com>
2867
2868 * top.c (read_command_file): Update.
2869 (command_line_input): Remove "repeat" argument.
2870 * ada-lang.c (get_selections): Update.
2871 * linespec.c (decode_line_2): Update.
2872 * defs.h (command_line_input): Remove argument.
2873 * cli/cli-script.c (read_next_line): Update.
2874 * python/py-gdb-readline.c: Update.
2875
12582533
TT
28762018-08-17 Tom Tromey <tom@tromey.com>
2877
2878 * cli/cli-script.c (read_next_line): Pass 0 as repeat argument to
2879 command_line_input.
2880
49514353
TT
28812018-08-15 Tom Tromey <tom@tromey.com>
2882
2883 * aarch64-linux-tdep.c (aarch64_linux_core_read_vq): Use pulongest.
2884
26fb3983
JV
28852018-08-14 Jan Vrany <jan.vrany@fit.cvut.cz>
2886
2887 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Add -a option.
2888 If used, use find_pc_partial_function to find address range
2889 to disassemble.
2890 * mi/mi-main.c (mi_cmd_list_features): Report
2891 "data-disassemble-a-option" feature.
2892 * NEWS: Mention new -data-disassemble option -a.
2893
a97b53dd
TT
28942018-08-13 Tom Tromey <tom@tromey.com>
2895
2896 * common/common-defs.h (_FORTIFY_SOURCE): Define.
2897
0c76e06d
AH
28982018-08-13 Alan Hayward <alan.hayward@arm.com>
2899
2900 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): New function.
2901 (aarch64_linux_collect_sve_regset): Likewise.
2902 (aarch64_linux_iterate_over_regset_sections): Check for SVE.
2903 * regcache.h (regcache_map_entry_size): New function.
2904
b7fd65b9
AH
29052018-08-13 Alan Hayward <alan.hayward@arm.com>
2906
2907 * aarch64-linux-tdep.c (SVE_HEADER_SIZE_LENGTH): Add define.
2908 (SVE_HEADER_MAX_SIZE_LENGTH): Likewise.
2909 (SVE_HEADER_VL_LENGTH): Likewise.
2910 (SVE_HEADER_MAX_VL_LENGTH): Likewise.
2911 (SVE_HEADER_FLAGS_LENGTH): Likewise.
2912 (SVE_HEADER_RESERVED_LENGTH): Likewise.
2913 (SVE_HEADER_SIZE_OFFSET): Likewise.
2914 (SVE_HEADER_MAX_SIZE_OFFSET): Likewise.
2915 (SVE_HEADER_VL_OFFSET): Likewise.
2916 (SVE_HEADER_MAX_VL_OFFSET): Likewise.
2917 (SVE_HEADER_FLAGS_OFFSET): Likewise.
2918 (SVE_HEADER_RESERVED_OFFSET): Likewise.
2919 (SVE_HEADER_SIZE): Likewise.
2920 (aarch64_linux_core_read_vq): Add function.
2921 (aarch64_linux_core_read_description): Check for SVE section.
2922
a616bb94
AH
29232018-08-13 Alan Hayward <alan.hayward@arm.com>
2924
2925 * aarch64-fbsd-tdep.c
2926 (aarch64_fbsd_iterate_over_regset_sections): Add supply_size and
2927 collect_size.
2928 * aarch64-linux-tdep.c
2929 (aarch64_linux_iterate_over_regset_sections): Likewise.
2930 * alpha-linux-tdep.c
2931 (alpha_linux_iterate_over_regset_sections):
2932 * alpha-nbsd-tdep.c
2933 (alphanbsd_iterate_over_regset_sections): Likewise.
2934 * amd64-fbsd-tdep.c
2935 (amd64fbsd_iterate_over_regset_sections): Likewise.
2936 * amd64-linux-tdep.c
2937 (amd64_linux_iterate_over_regset_sections): Likewise.
2938 * arm-bsd-tdep.c
2939 (armbsd_iterate_over_regset_sections): Likewise.
2940 * arm-fbsd-tdep.c
2941 (arm_fbsd_iterate_over_regset_sections): Likewise.
2942 * arm-linux-tdep.c
2943 (arm_linux_iterate_over_regset_sections): Likewise.
2944 * corelow.c (get_core_registers_cb): Likewise.
2945 (core_target::fetch_registers): Likewise.
2946 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
2947 * frv-linux-tdep.c (frv_linux_iterate_over_regset_sections): Likewise.
2948 * gdbarch.h (void): Regenerate.
2949 * gdbarch.sh: Add supply_size and collect_size.
2950 * hppa-linux-tdep.c (hppa_linux_iterate_over_regset_sections): Likewise.
2951 * hppa-nbsd-tdep.c (hppanbsd_iterate_over_regset_sections): Likewise.
2952 * hppa-obsd-tdep.c (hppaobsd_iterate_over_regset_sections): Likewise.
2953 * i386-fbsd-tdep.c (i386fbsd_iterate_over_regset_sections): Likewise.
2954 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections): Likewise.
2955 * i386-tdep.c (i386_iterate_over_regset_sections): Likewise.
2956 * ia64-linux-tdep.c (ia64_linux_iterate_over_regset_sections): Likewise.
2957 * linux-tdep.c (linux_collect_regset_section_cb): Likewise.
2958 * m32r-linux-tdep.c (m32r_linux_iterate_over_regset_sections): Likewise.
2959 * m68k-bsd-tdep.c (m68kbsd_iterate_over_regset_sections): Likewise.
2960 * m68k-linux-tdep.c (m68k_linux_iterate_over_regset_sections): Likewise.
2961 * mips-fbsd-tdep.c (mips_fbsd_iterate_over_regset_sections): Likewise.
2962 * mips-linux-tdep.c (mips_linux_iterate_over_regset_sections): Likewise.
2963 * mips-nbsd-tdep.c (mipsnbsd_iterate_over_regset_sections): Likewise.
2964 * mips64-obsd-tdep.c (mips64obsd_iterate_over_regset_sections): Likewise.
2965 * mn10300-linux-tdep.c (am33_iterate_over_regset_sections): Likewise.
2966 * nios2-linux-tdep.c (nios2_iterate_over_regset_sections): Likewise.
2967 * ppc-fbsd-tdep.c (ppcfbsd_iterate_over_regset_sections): Likewise.
2968 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections): Likewise.
2969 * ppc-nbsd-tdep.c (ppcnbsd_iterate_over_regset_sections): Likewise.
2970 * ppc-obsd-tdep.c (ppcobsd_iterate_over_regset_sections): Likewise.
2971 * riscv-linux-tdep.c (riscv_linux_iterate_over_regset_sections): Likewise.
2972 * rs6000-aix-tdep.c (rs6000_aix_iterate_over_regset_sections): Likewise.
2973 * s390-linux-tdep.c (s390_iterate_over_regset_sections): Likewise.
2974 * score-tdep.c (score7_linux_iterate_over_regset_sections): Likewise.
2975 * sh-tdep.c (sh_iterate_over_regset_sections): Likewise.
2976 * sparc-tdep.c (sparc_iterate_over_regset_sections): Likewise.
2977 * tilegx-linux-tdep.c (tilegx_iterate_over_regset_sections): Likewise.
2978 * vax-tdep.c (vax_iterate_over_regset_sections): Likewise.
2979 * xtensa-tdep.c (xtensa_iterate_over_regset_sections): Likewise.
2980
a9925d4f
SM
29812018-08-10 Simon Marchi <simon.marchi@ericsson.com>
2982
2983 * nat/linux-osdata.c (commandline_from_pid): Replace xstrprintf
2984 with string_printf.
2985
ad3a68e9
KS
29862018-08-10 Keith Seitz <keiths@redhat.com>
2987
2988 * compile/compile-c-support.c (add_code_header, add_code_footer):
2989 Move into policy class.
2990 (c_push_user_expression, pop_user_expression_nop)
2991 (c_add_code_header, c_add_code_footer, c_add_input): New policy class.
2992 (compile_program): New host class.
2993 (c_compile_program): New typedef.
2994 (c_compute_porgram): Use c_compile_program.
2995
0cfbf430
KS
29962018-08-10 Keith Seitz <keiths@redhat.com>
2997
2998 * compile/compile-internal.h (compile_instance::~compile_instance):
2999 Remove calls to htab_delete.
3000 <m_type_map, m_symbol_err_map>: Switch type to htab_up.
3001 * compile.c (compile_instance::compile_instance): Initialize
3002 htab unique pointers.
3003 (compile_instance::get_cached_type, compile_instance::insert_type)
3004 (compile_instance::error_symbol_once): Update for unique_ptr.
3005
946d3d10
KS
30062018-08-10 Keith Seitz <keiths@redhat.com>
3007
3008 * compile/compile-c-symbols.c (struct symbol_error)
3009 (hash_symbol_error, eq_symbol_error, del_symbol_error)
3010 (compile_instance::insert_symbol_error)
3011 (compile_instance::error_symbol_once): Move to ...
3012 * compile/compile.c: ... here.
3013
9cdfd9a2
KS
30142018-08-10 Keith Seitz <keiths@redhat.com>
3015
3016 * compile/compile-c-support.c (c_get_compile_context): Use `new'
3017 instead of `new_compile_instance'.
3018 * compile/compile-c-symbols.c (compile_instance::insert_symbol_error):
3019 Update description.
3020 If the symbol error map is not initialized, create it.
3021 (generate_c_for_for_one_symbol): Do not check/initialize
3022 the symbol error map.
3023 * compile/compile-c-types.c (compile_c_instance): Make a class.
3024 Update all callers.
3025 (compile_instance::compile_instance): Initialize the type cache.
3026 (get_cached_type): New function.
3027 (insert_type): Update description.
3028 (compile_c_instance::m_default_cflags): Define.
3029 (convert_type): Update description. Use get_cached_type.
3030 (delete_instance): Moved to destructor.
3031 (new_compile_instance): Moved to constructor.
3032 * compile/compile-c.h (compile_c_instance): Make class inheriting
3033 from compile_instance.
3034 <base>: Remove field.
3035 <type_map, symbol_err_map>: Move to base class.
3036 <c_plugin>: Rename to `m_plugin' and remove pointer type.
3037 * compile/compile-internal.h (compile_instance): Make class.
3038 <type_map_t, symbol_err_map_t>: Define.
3039 <fe>: Rename to `m_gcc_fe'.
3040 <scope, block, gcc_target_options>: Add `m_' prefix.
3041 <m_type_map, m_symbol_err_map>: New fields, moved from
3042 compile_c_instance.
3043 <destroy>: Remove.
3044 (convert_type, new_compile_instance): Remove.
3045 * compile/compile.c (cleanup_compile_instance): Remove.
3046 (compile_to_object): Use unique_ptr to eliminate cleanups.
3047 (compile_instance::set_print_callback, compile_instance::version)
3048 (compile_instance::set_verbose)
3049 (compile_instance::set_driver_filename)
3050 (compile_instance::set_triplet_regexp)
3051 (compile_instance::set_arguments)
3052 (compile_instance::set_source_file)
3053 (compile_instance::compile): Define.
3054
18cdc6d8
KS
30552018-08-10 Keith Seitz <keiths@redhat.com>
3056
3057 * Makefile.in (HFILES_NO_SRCDIR): Add compile/gcc-c-plugin.h.
3058 * compile/compile-c-types.c: Define GCC_METHODN macros and include
3059 gcc-c-fe.def to define C plugin.
3060 (delete_instance): Delete `c_plugin'.
3061 (new_compile_instance): Initialize `c_plugin'.
3062 * compile/compile-c.h: Include gcc_c_plugin.h.
3063 (struct compile_c_instance) <c_plugin>: New member.
3064 * gcc-c-plugin.h: New file.
3065 Update all callers with API change.
3066
b7dc48b4
KS
30672018-08-10 Keith Seitz <keiths@redhat.com>
3068
3069 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Move header files ...
3070 (HFILES_NO_SRCDIR): ... to here.
3071 Add compile-internal.h and compile-c.h.
3072 * compile/compile-c-support.c: Include compile-c.h.
3073 * compile/compile-c-symbols.c: Include compile-c.h.
3074 (generate_c_for_variable_locations): Update comment.
3075 * compile/compile-c-types.c: Include compile-c.h.
3076 * compile/compile-c.h: New file -- moved C language declarations
3077 from other files here.
3078 * compile/compile-internal.h: Do not include hashtab.h or
3079 common/enum-flags.h.
3080 (gcc_qualifiers_flags, struct compile_c_instance, C_CTX)
3081 (gcc_convert_symbol, gcc_symbol_address)
3082 (generate_c_for_variable_locations, c_get_mode_for_size)
3083 (c_get_range_decl_name): Definitions moved to compile-c.h.
3084 * compile/compile-loc2c.c: Include compile-c.h.
3085
6f36b6d2
KS
30862018-08-10 Keith Seitz <keiths@redhat.com>
3087
3088 * compile/compile-c-symbols.c (symbol_substitution_name): Rename to ...
3089 (c_symbol_substitution_name): ... this.
3090 Update all callers.
3091
bd923e51
KS
30922018-08-10 Keith Seitz <keiths@redhat.com>
3093
3094 * compile/compile-c-support.c (c_compute_program): Use
3095 unique_xmalloc_ptr to eliminate cleanup.
3096 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
3097 Return a unique_xmalloc_ptr and eliminate cleanup.
3098 * compile/compile-internal.h (generate_c_for_variable_locations):
3099 Return unique_xmalloc_ptr and update description.
3100
dbd534fe
AH
31012018-08-10 Alan Hayward <alan.hayward@arm.com>
3102
3103 * corelow.c (core_target::get_core_register_section): Rename
3104 min_size to section_min_size.
3105
90ad3654
JW
31062018-08-09 Jim Wilson <jimw@sifive.com>
3107
52a187f8
JW
3108 * Makefile.in (ALL_TARGET_OBS): Add riscv-linux-tdep.c.
3109 (ALLDEPFILES): Add riscv-linux-nat.c, and riscv-linux-tdep.c.
3110 * NEWS: Mention new GNU/Linux RISC-V target.
3111 * configure.host: Add riscv*-*-linux*.
3112 * configure.nat: Add riscv*.
3113 * configure.tgt: Add riscv*-*-linux*.
3c77f97e 3114 * riscv-linux-nat.c: New file.
90ad3654
JW
3115 * riscv-linux-tdep.c: New file.
3116
aff4e175
AB
31172018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
3118
3119 * infrun.c (resume): Make static, add forward declaration.
3120 (proceed): Update header comment.
3121 * infrun.h (resume): Delete declaration.
3122
06ab9219
TT
31232018-08-09 Tom Tromey <tom@tromey.com>
3124
3125 * riscv-tdep.h: Minor formatting fixes.
3126
83c8d318
SM
31272018-08-09 Simon Marchi <simon.marchi@ericsson.com>
3128
3129 * common/scoped_mmap.c (mmap_file): Silence ARI warning.
3130 * dwarf-index-cache.c (create_dir_and_check): Likewise.
3131 (test_mkdir_recursive): Likewise.
3132 * dwarf-index-write.c (write_psymtabs_to_index): Likewise.
3133
5ff2bbae
AB
31342018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
3135
3136 * valarith.c (value_subscripted_rvalue): If an array is not in
3137 memory, and we don't know the upper bound, then we can't know that
3138 the requested element exists or not.
3139
fdbac7d8
SM
31402018-08-08 Simon Marchi <simon.marchi@ericsson.com>
3141
3142 * target.c (str_comma_list_concat_elem): Fix typo in comment.
3143 (target_options_to_string): Add comment.
3144
83202f7a
TT
31452018-08-08 Tom Tromey <tom@tromey.com>
3146
3147 * unittests/scoped_mmap-selftests.c: Check result of "write".
3148
411baa47
JW
31492018-08-08 Jim Wilson <jimw@sifive.com>
3150
5c720ed8
JW
3151 * riscv-tdep.c (enum opcode): Add jump, branch, lr, and sc opcodes.
3152 (decode_register_index_short): New.
3153 (decode_j_type_insn, decode_cj_type_insn): New.
3154 (decode_b_type_insn, decode_cb_type_insn): New.
3155 (riscv_insn::decode): Add support for jumps, branches, lr, and sc. New
3156 local xlen. Check xlen when decoding ambiguous compressed insns. In
3157 compressed decode, use is_c_lui_insn instead of is_lui_insn, and
3158 is_c_sw_insn instead of is_sw_insn.
3159 (riscv_next_pc, riscv_next_pc_atomic_sequence): New.
3160 (riscv_software_single_step): New.
3161 * riscv-tdep.h (riscv_software_single_step): Declare.
3162
411baa47
JW
3163 * riscv-tdep.c (riscv_isa_xlen): Drop static.
3164 * riscv-tdep.h (riscv_isa_xlen): Add extern declaration.
3165
9d4a934c
AB
31662018-08-08 Andrew Burgess <andrew.burgess@embecosm.com>
3167
3168 PR gdb/18050:
3169 * target.c (dispose_inferior): Don't dispose of inferiors that are
3170 already killed.
3171
ff36536c
SN
31722018-08-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
3173
3174 * remote.c (remote_target::download_tracepoint): Change char* to
3175 const char*.
3176
09ce46f2
SM
31772018-08-07 Simon Marchi <simon.marchi@polymtl.ca>
3178
3179 * target.h (target_options_to_string): Return an std::string.
3180 * target.c (str_comma_list_concat_elem): Return void, use
3181 std::string.
3182 (do_option): Likewise.
3183 (target_options_to_string): Return an std::string.
3184 * linux-nat.c (linux_nat_target::wait): Adjust.
3185 * target-debug.h (target_debug_print_options): Adjust.
3186
9c612964
TT
31872018-08-07 Tom Tromey <tom@tromey.com>
3188
3189 * Makefile.in (CPPFLAGS): New variable.
3190 (INTERNAL_CPPFLAGS): Use it.
3191
7d11235d
SM
31922018-08-07 Simon Marchi <simon.marchi@ericsson.com>
3193
3194 * NEWS: Mention the index cache.
3195
87d6a7aa
SM
31962018-08-07 Simon Marchi <simon.marchi@ericsson.com>
3197
3198 * common/pathstuff.h (get_standard_cache_dir): New.
3199 * common/pathstuff.c (get_standard_cache_dir): New.
3200 * build-id.h (build_id_to_string): New.
3201 * dwarf-index-common.h (INDEX4_SUFFIX, INDEX5_SUFFIX,
3202 DEBUG_STR_SUFFIX): Move to here.
3203 * dwarf-index-write.c (INDEX4_SUFFIX, INDEX5_SUFFIX,
3204 DEBUG_STR_SUFFIX): Move from there.
3205 (write_psymtabs_to_index): Make non-static, add basename
3206 parameter. Write to temporary files, rename when done.
3207 (save_gdb_index_command): Adjust call to
3208 write_psymtabs_to_index.
3209 * dwarf2read.h (dwarf2_per_objfile) <index_cache_res>: New
3210 field.
3211 * dwarf2read.c (dwz_file) <index_cache_res>: New field.
3212 (get_gdb_index_contents_from_cache): New.
3213 (get_gdb_index_contents_from_cache_dwz): New.
3214 (dwarf2_initialize_objfile): Read index from cache.
3215 (dwarf2_build_psymtabs): Save to index.
3216 * dwarf-index-cache.h: New file.
3217 * dwarf-index-cache.c: New file.
3218 * dwarf-index-write.h: New file.
3219
8a99096f
SM
32202018-08-07 Simon Marchi <simon.marchi@ericsson.com>
3221
3222 * gnulib/aclocal.m4: Re-generate.
3223 * gnulib/config.in: Re-generate.
3224 * gnulib/configure: Re-generate.
3225 * gnulib/import/Makefile.am: Re-generate.
3226 * gnulib/import/Makefile.in: Re-generate.
3227 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
3228 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
3229 * gnulib/import/m4/mkdir.m4: New file.
3230 * gnulib/import/mkdir.c: New file.
3231 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkdir
3232 module.
3233
5c831bb1
SM
32342018-08-07 Simon Marchi <simon.marchi@ericsson.com>
3235
3236 * Makefile.in (COMMON_SFILES): Add common/scoped_mmap.c.
3237 * common/scoped_mmap.c: New file.
3238 * common/scoped_mmap.h (destroy): New method.
3239 (~scoped_mmap, reset): Use destroy.
3240 (scoped_mmap): New move constructor.
3241 (mmap_file): New declaration.
3242 * unittests/scoped_mmap-selftests.c (test_normal,
3243 test_invalid_filename, run_tests): New functions.
3244 (_initialize_scoped_mmap_selftests): Register selftest.
3245
4485a1c1
SM
32462018-08-07 Simon Marchi <simon.marchi@ericsson.com>
3247
3248 * dwarf2read.c (read_gdb_index_from_section): Rename to...
3249 (read_gdb_index_from_buffer): ... this. Remove section
3250 parameter, add buffer parameter.
3251 (get_gdb_index_contents_ftype,
3252 get_gdb_index_contents_dwz_ftype): New typedefs.
3253 (dwarf2_read_gdb_index): Add callback parameters to get the
3254 index contents.
3255 (get_gdb_index_contents_from_section): New.
3256 (dwarf2_initialize_objfile): Update call to
3257 dwarf2_read_gdb_index.
3258
528e1572
SM
32592018-08-07 Simon Marchi <simon.marchi@ericsson.com>
3260
3261 * common/filestuff.h (gdb_fopen_cloexec): New overload.
3262 (gdb_open_cloexec): Likewise.
3263 * nat/linux-osdata.c (command_from_pid): Use string_printf.
3264 (commandline_from_pid): Likewise.
3265 (linux_xfer_osdata_threads): Likewise.
3266 (linux_xfer_osdata_fds): Likewise.
3267 * ada-lang.c (is_package_name): Likewise.
3268 * auxv.c (procfs_xfer_auxv): Likewise.
3269 * breakpoint.c (print_one_breakpoint_location): Use
3270 uiout::field_fmt.
3271 (print_one_catch_solib): Use string_printf.
3272 * coff-pe-read.c (add_pe_exported_sym): Likewise.
3273 (add_pe_forwarded_sym): Likewise.
3274 * dwarf2read.c (create_type_unit_group): Likewise.
3275 (build_error_marker_type): Likewise.
3276 * infcall.c (get_function_name): Likewise.
3277 * valprint.c (print_converted_chars_to_obstack): Likewise.
3278 * xtensa-tdep.c (xtensa_register_type): Likewise.
3279
a7f25a84
SM
32802018-08-06 Simon Marchi <simon.marchi@ericsson.com>
3281
3282 * remote.c (remote_target::download_tracepoint): Fix format
3283 string errors.
3284
296956be
PFC
32852018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3286
3287 * tracefile.c: Include common/byte-vector.h.
3288 (trace_save): Change type of buf to gdb::byte_vector. Initialize
3289 with trace_regblock_size if needed. Update uses of buf.
3290
a04b9d62
PFC
32912018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3292
3293 * tracepoint.h (collection_list) <m_regs_mask>: Change type to
3294 std::vector<unsigned char>.
3295 * tracepoint.c (collection_list::collection_list): Remove
3296 m_regs_mask initializer from initializer list. Resize
3297 m_regs_mask using the largest remote register number.
3298 (collection_list::add_remote_register): Remove size check on
3299 m_regs_mask. Use at to access element.
3300 (collection_list::stringify): Change type of temp_buf to
3301 gdb::char_vector. Update uses of temp_buf. Resize if needed to
3302 stringify the register mask. Use pack_hex_byte for the register
3303 mask.
3304
4277c4b8
PFC
33052018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3306
3307 * tracepoint.h (class collection_list) <add_register>: Remove.
3308 <add_remote_register, add_ax_registers, add_local_register>:
3309 Declare.
3310 <add_memrange>: Add scope parameter.
3311 * tracepoint.c (encode_actions_1): Likewise.
3312 (collection_list::add_register): Rename to ...
3313 (collection_list::add_remote_register): ... this. Update
3314 comment.
3315 (collection_list::add_ax_registers, add_local_register): New
3316 methods.
3317 (collection_list::add_memrange): Add scope parameter. Call
3318 add_local_register instead of add_register.
3319 (finalize_tracepoint_aexpr): New function.
3320 (collection_list::collect_symbol): Update calls to add_memrange.
3321 Call add_local_register instead of add_register. Call
3322 add_ax_registers. Call finalize_tracepoint_aexpr.
3323 (encode_actions_1): Get remote regnos for $reg action. Call
3324 add_remote_register, add_ax_registers, and add_local_register.
3325 Update call to add_memrange. Call finalize_tracepoint_aexpr.
3326 (validate_actionline): Call finalize_tracepoint_aexpr.
3327
3df3a985
PFC
33282018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3329
3330 * remote.c (remote_target::download_tracepoint): Remove BUF_SIZE.
3331 Replace array buf with gdb::char_vector buf, of size
3332 get_remote_packet_size (). Replace references to buf and
3333 BUF_SIZE to buf.data () and buf.size (). Replace strcpy, strcat
3334 and xsnprintf with snprintf. Raise errors if the buffer is too
3335 small.
3336
aa6f3694
PFC
33372018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3338
3339 * remote.c (remote_target::download_tracepoint): Fix the has_more
3340 predicate in the QTDP action list iteration.
3341
05abfc39
PFC
33422018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3343
3344 * remote.c (remote_target::download_tracepoint): Fix indentation
3345 in for block.
3346
821a2682
RO
33472018-08-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3348
3349 * proc-api.c (_initialize_proc_api): Remove c, unused.
3350 * procfs.c (procfs_init_inferior): Remove signals, unused.
3351 (procfs_target::make_corefile_notes): Remove old_chain, fpregs,
3352 unused.
3353
95347337
AB
33542018-08-06 Sergey Korolev <s.korolev@ndmsystems.com>
3355 Andrew Burgess <andrew.burgess@embecosm.com>
3356
3357 * linux-nat.c (linux_nat_target::follow_fork): Avoid using
3358 'W_STOPCODE (0)' as this could be ambiguous.
3359
425699f5
SDJ
33602018-08-03 Sergio Durigan Junior <sergiodj@redhat.com>
3361
3362 * ser-tcp.c (net_open): Fix thinko when deciding whether to
3363 disable TCP's Nagle algorithm (use "ai_protocol" instead of
3364 "ai_socktype").
3365
3e1d3d8c
TT
33662018-08-02 Tom Tromey <tom@tromey.com>
3367
3368 PR symtab/16842.
3369 * dwarf2read.c (read_func_scope): Set symtab on template parameter
3370 symbols.
3371 (process_structure_scope): Likewise.
3372
15843549
XR
33732018-08-02 Xavier Roirand <roirand@adacore.com>
3374
3375 PR gdb/22629:
3376 * darwin-nat.c (darwin_kill_inferior): Fix handling of
3377 kill inferior.
3378
b5bddbbb
TT
33792018-08-02 Tom Tromey <tom@tromey.com>
3380
3381 * darwin-nat.c (find_inferior_task_it, darwin_find_thread)
3382 (darwin_suspend_inferior, darwin_resume_inferior)
3383 (darwin_decode_notify_message, darwin_resume_inferior_threads)
3384 (darwin_check_new_threads): Check result of get_darwin_inferior.
3385
f61cfa07
JB
33862018-07-31 Joel Brobecker <brobecker@adacore.com>
3387
3388 GDB 8.1.1 released.
3389
5abe0f0c
JV
33902018-07-31 Jan Vrany <jan.vrany@fit.cvut.cz>
3391
3392 * varobj.c (varobj_get_path_expr_parent): Report an error if
3393 parent is a dynamic varobj.
3394
472fa5ee
SM
33952018-07-31 Simon Marchi <simon.marchi@ericsson.com>
3396
3397 * gnulib/aclocal.m4: Re-generate.
3398 * gnulib/config.in: Re-generate.
3399 * gnulib/configure: Re-generate.
3400 * gnulib/import/Makefile.in: Re-generate.
3401 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
3402 * gnulib/import/m4/onceonly.m4: Re-generate.
3403
1c28969e
SM
34042018-07-31 Simon Marchi <simon.marchi@ericsson.com>
3405
3406 * target-descriptions.c (struct xml_test_tdesc): New.
3407 (xml_tdesc): Change type to std::vector<xml_test_tdesc>.
3408 (record_xml_tdesc): Update.
3409 (maintenance_check_xml_descriptions): Update.
3410 * target-descriptions.h (record_xml_tdesc): Update comment.
3411
c8f2dc0d
AB
34122018-07-30 Andrew Burgess <andrew.burgess@embecosm.com>
3413
3414 * eval.c (evaluate_subexp_for_sizeof): Check for array type before
3415 checking array bounds are defined.
3416
463c08d1
TT
34172018-07-30 Tom Tromey <tom@tromey.com>
3418
3419 * nat/linux-osdata.c (pid_pgid_entry::operator<): Fix
3420 irreflexivity violation.
3421
dba7455e
TT
34222018-07-30 Tom Tromey <tom@tromey.com>
3423
3424 * cli/cli-decode.c (lookup_cmd): Remove lint code.
3425 * value.c (unpack_long): Remove lint code.
3426 * valops.c (value_ind): Remove lint code.
3427 * valarith.c (value_x_binop, value_x_unop, value_equal)
3428 (value_pos): Remove lint code.
3429
37cc0cae
TV
34302018-07-28 Tom de Vries <tdevries@suse.de>
3431
3432 * eval.c (evaluate_subexp_for_sizeof): Interpret size of dynamic type
3433 with undefined upper bound as <optimized out>.
3434
129eb0f1
SDJ
34352018-07-27 Sergio Durigan Junior <sergiodj@redhat.com>
3436
3437 * gcore.in: Rename variable "name" to "prefix". Expand
3438 "usage" text.
3439
6af79d7b
JT
34402018-07-14 Jon Turney <jon.turney@dronecode.org.uk>
3441
3442 * windows-nat.c (windows_nat_target::create_inferior): Update to
3443 call close() in global namespace.
3444
79748972
TT
34452018-07-26 Tom Tromey <tom@tromey.com>
3446
3447 * dwarf-index-write.c (add_address_entry): Don't add objfile
3448 offsets.
3449 * dbxread.c (find_stab_function): Rename from
3450 find_stab_function_addr. Return a bound_minimal_symbol.
3451 (read_dbx_symtab): Use raw_text_low, raw_text_high.
3452 Don't add objfile offsets.
3453 (end_psymtab): Use raw_text_low, raw_text_high,
3454 MSYMBOL_VALUE_RAW_ADDRESS.
3455 (read_ofile_symtab): Update.
3456 (process_one_symbol): Update.
3457 * dwarf2read.c (create_addrmap_from_index): Don't add objfile
3458 offsets.
3459 (dw2_relocate): Remove.
3460 (dw2_find_pc_sect_symtab): Bias PC by the text offset before
3461 searching addrmap.
3462 (dwarf2_gdb_index_functions, dwarf2_debug_names_functions):
3463 Update.
3464 (process_psymtab_comp_unit_reader, add_partial_symbol)
3465 (add_partial_subprogram, dwarf2_ranges_read): Update.
3466 (load_partial_dies): Update.
3467 (add_address_entry): Don't add objfile offsets.
3468 (dwarf2_build_include_psymtabs): Update.
3469 (create_addrmap_from_aranges): Don't add objfile offsets.
3470 (dw2_find_pc_sect_compunit_symtab): Update.
3471 * mdebugread.c (parse_symbol): Don't add objfile offsets.
3472 (parse_lines): Remove 'pst' parameter, replace with 'textlow'.
3473 Update.
3474 (parse_partial_symbols): Don't add objfile offsets. Use
3475 raw_text_low, raw_text_high. Update.
3476 (handle_psymbol_enumerators, psymtab_to_symtab_1): Update.
3477 * objfiles.c (objfile_relocate1): Don't relocate psymtabs_addrmap
3478 or call 'relocate' quick function. Clear psymbol_map.
3479 * psympriv.h (struct partial_symbol) <address>: Add section
3480 offset.
3481 <set_unrelocated_address>: Rename from set_address.
3482 <raw_text_low, raw_text_high>: New methods.
3483 <text_low, text_high>: Add objfile parameter.
3484 (add_psymbol_to_bcache): Add 'section' parameter. Call
3485 set_unrelocated_address.
3486 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
3487 (find_pc_psymbol): Update.
3488 (fixup_psymbol_section, relocate_psymtabs): Remove.
3489 (dump_psymtab, psym_functions): Update.
3490 (add_psymbol_to_bcache, add_psymbol_to_list): Add 'section'
3491 parameter.
3492 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
3493 (start_psymtab_common): Update.
3494 * symfile-debug.c (debug_qf_relocate): Remove.
3495 (debug_sym_quick_functions): Update.
3496 * symfile.h (struct quick_symbol_functions) <relocate>: Remove.
3497 * xcoffread.c (scan_xcoff_symtab): Don't add objfile offsets.
3498 Update.
3499
52948f01
TT
35002018-07-26 Tom Tromey <tromey@redhat.com>
3501
3502 * dbxread.c (end_psymtab): Use text_high_valid and
3503 text_low_valid.
3504 * mdebugread.c (parse_partial_symbols): Use text_low_valid.
3505 (psymtab_to_symtab_1): Use text_high_valid and text_low_valid.
3506 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
3507 Update comment.
3508 <text_low_valid, text_high_valid>: New fields.
3509 <set_text_low, set_text_high>: Update.
3510 * xcoffread.c (scan_xcoff_symtab): Use text_low_valid.
3511
4ae976d1
TT
35122018-07-26 Tom Tromey <tom@tromey.com>
3513
3514 * dbxread.c (read_dbx_symtab, end_psymtab, read_ofile_symtab):
3515 Update.
3516 * dwarf2read.c (dwarf2_create_include_psymtab): Don't initialize
3517 textlow and texthigh fields.
3518 (process_psymtab_comp_unit_reader, dwarf2_build_include_psymtabs):
3519 Update.
3520 * mdebugread.c (parse_lines, parse_partial_symbols)
3521 (psymtab_to_symtab_1): Update.
3522 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
3523 Rename fields. Update comment. Now private.
3524 <text_low, text_high, set_text_low, set_text_high>: New methods.
3525 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
3526 (find_pc_sect_psymbol, relocate_psymtabs, dump_psymtab)
3527 (start_psymtab_common, maintenance_info_psymtabs)
3528 (maintenance_check_psymtabs): Update.
3529 * xcoffread.c (xcoff_end_psymtab): Don't initialize textlow and
3530 texthigh fields.
3531 (scan_xcoff_symtab): Update.
3532
02e9e7f7
TT
35332018-07-26 Tom Tromey <tromey@redhat.com>
3534
3535 * psympriv.h (struct partial_symbol) <unrelocated_address,
3536 address, set_address>: New methods.
3537 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymbol)
3538 (fixup_psymbol_section, relocate_psymtabs): Update.
3539 (print_partial_symbols): Add 'objfile' parameter. Update.
3540 (dump_psymtab, add_psymbol_to_bcache, psym_fill_psymbol_map):
3541 Update.
3542
8a6d4234
TT
35432018-07-26 Tom Tromey <tom@tromey.com>
3544
3545 * dwarf-index-write.c (write_psymbols, debug_names::insert)
3546 (debug_names::write_psymbols): Update.
3547 * psympriv.h (struct partial_symbol): Derive from
3548 general_symbol_info.
3549 <obj_section>: New method.
3550 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.n
3551 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
3552 (find_pc_sect_psymbol, fixup_psymbol_section)
3553 (match_partial_symbol, lookup_partial_symbol, relocate_psymtabs)
3554 (print_partial_symbols, recursively_search_psymtabs)
3555 (compare_psymbols, psymbol_hash, psymbol_compare)
3556 (add_psymbol_to_bcache, maintenance_check_psymtabs)
3557 (psymbol_name_matches, psym_fill_psymbol_map): Update.
3558
08994e1d
TT
35592018-07-26 Tom Tromey <tromey@redhat.com>
3560
3561 * dbxread.c (end_psymtab): Remove dead code.
3562
3c3bb058
AB
35632018-07-26 Andrew Burgess <andrew.burgess@embecosm.com>
3564
3565 * dwarf2-frame-tailcall.c (tailcall_frame_sniffer): Exit early if
3566 DWARF unwinders are disabled.
3567 * dwarf2-frame.c: Add dwarf2read.h include.
3568 (dwarf2_frame_sniffer): Exit early if DWARF unwinders are
3569 disabled.
3570 (dwarf2_frame_unwinders_enabled_p): Define.
3571 (show_dwarf_unwinders_enabled_p): New function.
3572 (_initialize_dwarf2_frame): Register switch to control DWARF
3573 unwinder use.
3574 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Declare.
3575 * dwarf2read.c (set_dwarf_cmdlist): Remove static keyword.
3576 (show_dwarf_cmdlist): Remove static keyword.
3577 * dwarf2read.h (set_dwarf_cmdlist): Declare.
3578 (show_dwarf_cmdlist): Declare.
3579 * NEWS: Document new feature.
3580
9e7f3bbb
TV
35812018-07-26 Tom de Vries <tdevries@suse.de>
3582
3583 PR breakpoints/23366
3584 * infcmd.c (info_program_command): Handle ptid == minus_one_ptid.
3585
506f5c41
TV
35862018-07-26 Tom de Vries <tdevries@suse.de>
3587
3588 * dwarf2read.c (read_subrange_type): Warn if DW_AT_upper_bound or
3589 DW_AT_count can't be translated to a dynamic prop.
3590
16f808ec
TV
35912018-07-25 Tom de Vries <tdevries@suse.de>
3592
3593 * dwarf2loc.c (dwarf2_locexpr_baton_eval): Wrap ctx.eval call in
3594 try/catch.
3595
d7154a8d
JV
35962018-07-25 Jan Vrany <jan.vrany@fit.cvut.cz>
3597
3598 * breakpoint.c (enable_disable_bp_num_loc): Notify observers.
3599
a45389f6
JB
36002018-07-25 Joel Brobecker <brobecker@adacore.com>
3601
3602 * MAINTAINERS (Global Maintainers): Add Tom Tromey.
3603
380618d6
KS
36042018-07-24 Keith Seitz <keiths@redhat.comt
3605
3606 PR symtab/23010
3607 * dwarf2read.c (dw2_add_symbol_to_list): New function.
3608 (fixup_go_packaging, new_symbol): Use dw2_add_symbol_to_list
3609 instead of add_symbol_to_list.
3610 (read_file_scope): Call prepare_one_comp_unit before reading
3611 any other DIEs.
3612
4b17aefe
SM
36132018-07-24 Simon Marchi <simon.marchi@ericsson.com>
3614
3615 * common/scoped_mmap.h (class scoped_mmap): Fix indentation.
3616
29d17e47
TT
36172018-07-24 Tom Tromey <tom@tromey.com>
3618
3619 * utils.c (malloc, realloc, free): Don't declare.
3620 * configure, config.in: Rebuild.
3621 * configure.ac: Don't check for declarations of free, malloc, or
3622 realloc.
3623
cf4088a9
SM
36242018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3625
3626 * aarch64-linux-nat.c
3627 (aarch64_linux_nat_target::stopped_data_address): Remove unused
3628 variable.
3629 * arm-linux-nat.c (fetch_regs): Likewise.
3630 (store_regs): Likewise.
3631 (fetch_vfp_regs): Likewise.
3632 (store_vfp_regs): Likewise.
3633 (arm_linux_nat_target::insert_hw_breakpoint): Likewise.
3634 (arm_linux_nat_target::remove_hw_breakpoint): Likewise.
3635 (arm_linux_nat_target::insert_watchpoint): Likewise.
3636 (arm_linux_nat_target::remove_watchpoint): Likewise.
3637 * mips-linux-nat.c (mips_linux_nat_target::insert_watchpoint):
3638 Likewise.
3639 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs):
3640 Likewise.
3641 * ppc-linux-nat.c (fetch_register): Likewise.
3642 (fetch_all_gp_regs): Likewise.
3643 (fetch_ppc_registers): Likewise.
3644 (store_all_gp_regs): Likewise.
3645 (store_ppc_registers): Likewise.
3646 (hwdebug_insert_point): Likewise.
3647 (can_use_watchpoint_cond_accel): Likewise.
3648 * remote-sim.c (gdb_os_write_stdout): Likewise.
3649
a0de763e
TT
36502018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3651 Tom Tromey <tom@tromey.com>
3652
3653 * warning.m4 (AM_GDB_WARNINGS): Add -Wunused-variable and special
3654 test for it.
3655 * configure: Rebuild.
3656
3b20124b
TT
36572018-07-22 Tom Tromey <tom@tromey.com>
3658
3659 * regformats/regdat.sh: Define xmltarget_${name} inside
3660 #ifndef IN_PROCESS_AGENT.
3661
8c8807f4
TT
36622018-07-22 Tom Tromey <tom@tromey.com>
3663
3664 * value.c (value_fetch_lazy_bitfield): Remove unused variable.
3665
c486b610
TT
36662018-07-22 Tom Tromey <tom@tromey.com>
3667
3668 * symfile.c (reread_symbols): Notify iter, not objfile.
3669
494f80a9
TT
36702018-07-22 Tom Tromey <tom@tromey.com>
3671
3672 * ravenscar-thread.c (ravenscar_thread_target::store_registers):
3673 Use arch_ops.
3674 (ravenscar_thread_target::prepare_to_store): Likewise.
3675
c51f6a54
TT
36762018-07-22 Tom Tromey <tom@tromey.com>
3677
3678 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Remove
3679 unused variable. Call value_fetch_lazy when needed.
3680 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
3681 Remove unused variable. Call value_fetch_lazy when needed.
3682
374fd1fd
TT
36832018-07-22 Tom Tromey <tom@tromey.com>
3684
3685 * m32c-tdep.c (mark_dma): Return void.
3686 (make_regs): Remove unused declarations.
3687
d5e9a511
TT
36882018-07-22 Tom Tromey <tom@tromey.com>
3689
3690 * guile/scm-cmd.c (gdbscm_dont_repeat): Call
3691 cmdscm_get_valid_command_smob_arg_unsafe for effect.
3692 * guile/scm-block.c (gdbscm_make_block_syms_iter): Call
3693 bkscm_get_valid_block_smob_arg_unsafe for effect.
3694
996d693a
TT
36952018-07-22 Tom Tromey <tom@tromey.com>
3696
3697 * bfin-tdep.c (bfin_push_dummy_call): Use arg_type, not
3698 value_type.
3699
15766370
TT
37002018-07-22 Tom Tromey <tom@tromey.com>
3701
3702 * windows-nat.c (saved_context): Conditionally define.
3703 * remote.c (remote_target::remote_btrace_maybe_reopen):
3704 Conditionally declare "warned".
3705 * inflow.c (sigquit_ours): Conditionally define.
3706 (new_tty): Move "tty" declaration inside #if.
3707 * guile/guile.c (guile_datadir): Conditionally define.
3708 * charset.c (set_be_le_names): Move some declarations inside #if.
3709 * btrace.c (parse_xml_btrace): Move "errcode" declaration inside
3710 #if.
3711 (parse_xml_btrace_conf): Likewise.
3712
f4e80e13
TT
37132018-07-22 Tom Tromey <tom@tromey.com>
3714
3715 * spu-tdep.c (spu_get_overlay_table): Remove unused variable.
3716
8d49165d
TT
37172018-07-22 Tom Tromey <tom@tromey.com>
3718
3719 * guile/scm-value.c (gdbscm_value_call): Remove unused variables.
3720 * guile/scm-math.c (vlscm_unop_gdbthrow, vlscm_binop_gdbthrow)
3721 (vlscm_convert_typed_value_from_scheme): Remove unused variable.
3722 * buildsym-legacy.c (get_macro_table): Remove unused variable.
3723 * stack.c (frame_apply_level_command): Remove unused variable.
3724 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused variable.
3725 * sparc64-tdep.c (adi_examine_command): Remove unused variable.
3726 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Remove
3727 unused variable.
3728 * nios2-tdep.c (nios2_push_dummy_call): Remove unused variable.
3729 * mep-tdep.c (mep_push_dummy_call): Remove unused variable.
3730 * ada-lang.c (ada_lookup_symbol_list_worker): Remove unused
3731 variable.
3732 * amd64-tdep.c (amd64_supply_xsave): Remove unused variable.
3733 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Remove unused
3734 variable.
3735 * breakpoint.c (check_no_tracepoint_commands, update_watchpoint):
3736 Remove unused variable.
3737 * cli/cli-script.c (recurse_read_control_structure): Remove unused
3738 variable.
3739 * common/tdesc.c (print_xml_feature::visit): Remove unused
3740 variable.
3741 * compile/compile-object-load.c (store_regs): Remove unused
3742 variables.
3743 * complaints.c (clear_complaints): Remove unused variable.
3744 * corelow.c (core_target_open): Remove unused variable.
3745 * fbsd-tdep.c (fbsd_core_info_proc_status): Remove unused
3746 variable.
3747 * guile/scm-frame.c (gdbscm_frame_read_var): Remove unused
3748 variable.
3749 * guile/scm-symtab.c (stscm_print_sal_smob): Remove unused
3750 variable.
3751 * guile/scm-type.c (gdbscm_field_baseclass_p): Remove unused
3752 variable.
3753 * guile/scm-utils.c (gdbscm_parse_function_args): Remove unused
3754 variable.
3755 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Remove unused
3756 variable.
3757 * ia64-tdep.c (examine_prologue): Remove unused variable.
3758 * infcall.c (run_inferior_call): Remove unused variable.
3759 * inferior.c (exit_inferior): Remove unused variable.
3760 * infrun.c (infrun_thread_ptid_changed): Remove unused variable.
3761 * linespec.c (decode_line_2): Remove unused variable.
3762 * linux-nat.c (super_close): Remove.
3763 * linux-tdep.c (linux_info_proc): Remove unused variable.
3764 * mi/mi-main.c (mi_execute_command): Remove unused variable.
3765 * microblaze-linux-tdep.c (microblaze_linux_sigtramp_cache):
3766 Remove unused variable.
3767 * parse.c (find_minsym_type_and_address): Remove unused variable.
3768 * printcmd.c (info_symbol_command, printf_floating): Remove unused
3769 variable.
3770 * python/py-breakpoint.c (bppy_set_commands): Remove unused
3771 variable.
3772 * python/py-unwind.c (unwind_infopy_dealloc): Remove unused
3773 variables.
3774 * record-btrace.c (record_btrace_target::store_registers): Remove
3775 unused variable.
3776 (cmd_show_record_btrace_cpu): Remove unused variable.
3777 * riscv-tdep.c (riscv_register_reggroup_p)
3778 (riscv_push_dummy_call, riscv_return_value): Remove unused
3779 variable.
3780 * rust-exp.y (literal): Remove unused variable.
3781 * rust-lang.c (rust_evaluate_subexp) <OP_RUST_ARARAY>: Remove
3782 unused variable.
3783 <STRUCTOP_ANONYMOUS>: Likewise.
3784 * s390-linux-tdep.c (s390_linux_init_abi_31)
3785 (s390_linux_init_abi_64): Remove unused variable.
3786 * ser-ming2.c (ser_windows_read_prim, pipe_select_thread)
3787 (file_select_thread, net_windows_open, _initialize_ser_windows):
3788 Remove unused variables.
3789 * symtab.c (find_pc_sect_line): Remove unused variable.
3790 * target-memory.c (compute_garbled_blocks): Remove unused
3791 variable.
3792 (target_write_memory_blocks): Remove unused variable.
3793 * target.c (target_stack::unpush): Remove unused variables.
3794 * tracepoint.c (start_tracing, all_tracepoint_actions)
3795 (merge_uploaded_trace_state_variables)
3796 (print_one_static_tracepoint_marker): Remove unused variable.
3797 * unittests/basic_string_view/element_access/char/1.cc (test01):
3798 Remove unused variable.
3799 * windows-nat.c (windows_continue, windows_add_all_dlls)
3800 (do_initial_windows_stuff, windows_nat_target::create_inferior):
3801 Remove unused variables.
3802
17cbafdb
SM
38032018-07-21 Simon Marchi <simon.marchi@polymtl.ca>
3804
3805 * arm-tdep.c (arm_gdbarch_init): Declare attr_arch and
3806 attr_profile in HAVE_ELF.
3807 * rs6000-tdep.c (bfd_uses_spe_extensions): Declare vector_abi in
3808 HAVE_ELF.
3809
0ee6c332
SM
38102018-07-20 Simon Marchi <simon.marchi@polymtl.ca>
3811
3812 * frame.c (frame_register_unwind): Change parameter name.
3813 (frame_unwind_register): Likewise.
3814 (frame_unwind_register_value): Likewise.
3815 (frame_unwind_register_signed): Likewise.
3816 (frame_unwind_register_unsigned): Likewise.
3817 * frame.h (frame_register_unwind): Likewise.
3818 (frame_unwind_register): Likewise.
3819 (frame_unwind_register_value): Likewise.
3820 (frame_unwind_register_signed): Likewise.
3821 (frame_unwind_register_unsigned): Likewise.
3822 (frame_unwind_arch): Likewise.
3823
e2e31f10
MR
38242018-07-20 Maciej W. Rozycki <macro@mips.com>
3825
3826 * MAINTAINERS: Update my e-mail address, downgrade to MIPS I-IV
3827 ISA maintenance.
3828
2d389915
MR
38292018-07-20 Maciej W. Rozycki <macro@mips.com>
3830
3831 * mips-linux-nat.c (mips_linux_nat_target::read_description):
3832 Call `get_ptrace_pid' rather than extracting the ptrace PID by
3833 hand.
3834
cbb09508
KS
38352018-07-20 Keith Seitz <keiths@redhat.com>
3836
3837 * buildsym.h (struct buildsym_compunit) <m_objfile, m_subfiles,
3838 m_main_subfile, m_comp_dir, m_producer, m_debugformat,
3839 m_compunit_symtab, m_language>: Add "m_" prefix.
3840 Update all uses.
3841 * buildsym.c: Update all uses.
3842
bfe2e011
TT
38432018-07-20 Tom Tromey <tom@tromey.com>
3844
3845 * buildsym-legacy.h (record_line): Don't use record_line_ftype.
3846 * buildsym.h (record_line_ftype): Remove typedef.
3847
0e6f3061
TT
38482018-07-20 Tom Tromey <tom@tromey.com>
3849
3850 * buildsym-legacy.h (augment_type_symtab): Don't declare.
3851 (end_expandable_symtab): Likewise.
3852 (end_symtab_get_static_block): Likewise.
3853 (end_symtab_from_static_block): Likewise.
3854 * buildsym-legacy.c (augment_type_symtab): Remove.
3855 (end_expandable_symtab): Remove.
3856 (end_symtab_get_static_block): Remove.
3857 (end_symtab_from_static_block): Remove.
3858
804d2729
TT
38592018-07-20 Tom Tromey <tom@tromey.com>
3860
3861 * dwarf2read.c: Include buildsym.h.
3862 (struct dwarf2_cu) <builder>: New method.
3863 (fixup_go_packaging): Update.
3864 (process_full_comp_unit, process_full_type_unit): Update. Don't
3865 use scoped_free_pendings.
3866 (using_directives): Add "cu" parameter, remove "language".
3867 (read_import_statement, setup_type_unit_groups, )
3868 (read_func_scope, read_lexical_block_scope)
3869 (dwarf2_record_block_ranges, read_namespace): Update.
3870 (lnp_state_machine::lnp_state_machine): Add cu parameter.
3871 (lnp_state_machine::handle_end_sequence): Update.
3872 (class lnp_state_machine) <m_cu>: New member.
3873 <m_record_line_callback>: Remove.
3874 <m_currently_recording_lines>: New member.
3875 (lnp_state_machine::handle_set_file): Update.
3876 (noop_record_line): Remove.
3877 (dwarf_record_line_p): Add cu parameter.
3878 (dwarf_record_line_1, dwarf_finish_line): Likewise.
3879 (lnp_state_machine::record_line)
3880 (lnp_state_machine::lnp_state_machine)
3881 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
3882 (dwarf_decode_lines): Update.
3883 (dwarf2_start_subfile): Add cu parameter.
3884 (dwarf2_start_symtab, new_symbol): Update.
3885 (macro_start_file, dwarf_decode_macro_bytes): Add cu parameter.
3886 Remove dwarf2_per_objfile parameter.
3887 (dwarf_decode_macros): Update.
3888
80e649fc
TT
38892018-07-20 Tom Tromey <tom@tromey.com>
3890
3891 * stabsread.c (define_symbol): Update.
3892 * buildsym-legacy.h (get_buildsym_compunit): Declare.
3893 * dwarf2read.c (new_symbol): Update.
3894 * cp-support.h (cp_scan_for_anonymous_namespaces): Update.
3895 * cp-namespace.c: Include buildsym.h.
3896 (cp_scan_for_anonymous_namespaces): Add "compunit" parameter.
3897 * buildsym-legacy.c (get_buildsym_compunit): New function.
3898
0baae8db
TT
38992018-07-20 Tom Tromey <tom@tromey.com>
3900
3901 * xcoffread.c: Include buildsym-legacy.h.
3902 * windows-nat.c: Include buildsym-legacy.h.
3903 * stabsread.c: Include buildsym-legacy.h.
3904 * mdebugread.c: Include buildsym-legacy.h.
3905 * buildsym-legacy.h: New file.
3906 * buildsym-legacy.c: New file, from buildsym.c.
3907 * go32-nat.c: Include buildsym-legacy.h.
3908 * dwarf2read.c: Include buildsym-legacy.h.
3909 * dbxread.c: Include buildsym-legacy.h.
3910 * cp-namespace.c: Include buildsym-legacy.h.
3911 * coffread.c: Include buildsym-legacy.h.
3912 * buildsym.h: Move some contents to buildsym-legacy.h.
3913 * buildsym.c: Include buildsym-legacy.h. Move many functions to
3914 buildsym-legacy.c.
3915 * Makefile.in (HFILES_NO_SRCDIR): Add buildsym-legacy.h.
3916
ab209f6f
TT
39172018-07-20 Tom Tromey <tom@tromey.com>
3918
3919 * buildsym.h (struct buildsym_compunit): Move from buildsym.c.
3920 * buildsym.c (struct buildsym_compunit): Move to buildsym.h.
3921 (buildsym_compunit::buildsym_compunit)
3922 (buildsym_compunit::~buildsym_compunit)
3923 (buildsym_compunit::get_macro_table): Define.
3924
74c72eac
TT
39252018-07-20 Tom Tromey <tom@tromey.com>
3926
3927 * buildsym.c (reset_symtab_globals): Remove.
3928 (buildsym_compunit::end_symtab_from_static_block): Update.
3929 (buildsym_compunit::augment_type_symtab): Update.
3930 (end_symtab_from_static_block): Call free_buildsym_compunit.
3931 (augment_type_symtab, end_symtab, end_expandable_symtab):
3932 Likewise.
3933
da6580e5
TT
39342018-07-20 Tom Tromey <tom@tromey.com>
3935
3936 * arch-utils.c: Do not include buildsym.h.
3937 * mipsread.c: Do not include buildsym.h.
3938 * machoread.c: Do not include buildsym.h.
3939 * elfread.c: Do not include buildsym.h.
3940
4a2125f5
TT
39412018-07-20 Tom Tromey <tom@tromey.com>
3942
3943 * buildsym.c (buildsym_compunit::buildsym_compunit): Do more
3944 initialization.
3945 (buildsym_compunit): Add new constructor.
3946 (struct buildsym_compunit) <get_last_source_file, finish_block,
3947 record_block_range, start_subfile, patch_subfile_names,
3948 push_subfile, pop_subfile, record_line, get_compunit_symtab,
3949 set_last_source_start_addr, get_last_source_start_addr,
3950 get_local_using_directives, set_local_using_directives,
3951 get_global_using_directives, outermost_context_p,
3952 get_current_context_stack, get_context_stack_depth,
3953 get_current_subfile, get_local_symbols, get_file_symbols,
3954 get_global_symbols, record_debugformat, record_producer,
3955 push_context, pop_context, end_symtab_get_static_block,
3956 end_symtab_from_static_block, end_symtab, end_expandable_symtab>:
3957 New public methods.
3958 <record_pending_block, finish_block_internal, make_blockvector,
3959 watch_main_source_file_lossage, end_symtab_with_blockvector>: New
3960 private methods.
3961 Update all users.
3962
39632018-05-22 Tom Tromey <tom@tromey.com>
3964
3965 * buildsym.c (record_pending_block): Move earlier. Remove objfile
3966 parameter.
3967 (finish_block_internal): Update.
3968
6b213a47
TT
39692018-07-20 Tom Tromey <tom@tromey.com>
3970
3971 * buildsym.c (record_pending_block): Move earlier. Remove objfile
3972 parameter.
3973 (finish_block_internal): Update.
3974
b80a981d
TT
39752018-07-20 Tom Tromey <tom@tromey.com>
3976
3977 * buildsym.h (EXTERN): Don't define or undef.
3978 * buildsym.c (EXTERN): Don't define.
3979
ddb70602
TT
39802018-07-20 Tom Tromey <tom@tromey.com>
3981
3982 * buildsym.c: Remove TODO comment.
3983
b37dd3bc
TT
39842018-07-20 Tom Tromey <tom@tromey.com>
3985
3986 * coffread.c (coff_symtab_read): Update.
3987 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
3988 (xcoff_new_init): Update.
3989 * mipsread.c (mipscoff_new_init): Update.
3990 * mdebugread.c (mdebug_build_psymtabs): Update.
3991 * elfread.c (elf_new_init): Update.
3992 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
3993 Update.
3994 * dbxread.c (dbx_new_init, dbx_psymtab_to_symtab_1)
3995 (coffstab_build_psymtabs, elfstab_build_psymtabs)
3996 (stabsect_build_psymtabs): Update.
3997 * buildsym.h (buildsym_init): Don't declare.
3998 * buildsym.c: Update comment.
3999 (prepare_for_building): Remove.
4000 (start_symtab, restart_symtab): Update.
4001 (reset_symtab_globals): Update comment.
4002 (buildsym_init): Remove.
4003
e148f09d
TT
40042018-07-20 Tom Tromey <tom@tromey.com>
4005
4006 * xcoffread.c (read_xcoff_symtab, process_xcoff_symbol): Update.
4007 * stabsread.c (patch_block_stabs, define_symbol, read_type)
4008 (read_enum_type, common_block_start, common_block_end)
4009 (cleanup_undefined_types_1, finish_global_stabs): Update.
4010 * mdebugread.c (psymtab_to_symtab_1): Update.
4011 * dwarf2read.c (fixup_go_packaging, read_func_scope)
4012 (read_lexical_block_scope, new_symbol): Update.
4013 * dbxread.c (process_one_symbol): Update.
4014 * coffread.c (coff_symtab_read, process_coff_symbol)
4015 (coff_read_enum_type): Update.
4016 * buildsym.h (file_symbols, global_symbols, local_symbols): Don't
4017 declare.
4018 (get_local_symbols, get_file_symbols, get_global_symbols): New
4019 functions.
4020 * buildsym.c (~buildsym_compunit): Clean up m_file_symbols and
4021 m_global_symbols.
4022 <m_file_symbols, m_local_symbols, m_global_symbols>: New members.
4023 (~scoped_free_pendings): Update.
4024 (finish_block, prepare_for_building, reset_symtab_globals)
4025 (end_symtab_get_static_block, end_symtab_with_blockvector)
4026 (augment_type_symtab, push_context): Update.
4027 (get_local_symbols, get_file_symbols, get_global_symbols): New
4028 functions.
4029 (buildsym_init): Update.
4030
93b8bea4
TT
40312018-07-20 Tom Tromey <tom@tromey.com>
4032
4033 * dwarf2read.c (process_full_comp_unit): Do not set list_in_scope.
4034 (process_full_type_unit): Likewise.
4035 (dwarf2_start_symtab): Set list_in_scope.
4036
f62f6af5
TT
40372018-07-20 Tom Tromey <tom@tromey.com>
4038
4039 * dwarf2read.c (process_psymtab_comp_unit_reader)
4040 (build_type_psymtabs_reader): Do not set list_in_scope.
4041
1d376700
TT
40422018-07-20 Tom Tromey <tom@tromey.com>
4043
4044 * buildsym.c (free_pendings): Remove.
4045 (add_symbol_to_list, scoped_free_pendings)
4046 (finish_block_internal, buildsym_init): Update.
4047
c233e9c6
TT
40482018-07-20 Tom Tromey <tom@tromey.com>
4049
4050 * xcoffread.c (read_xcoff_symtab): Update.
4051 * dwarf2read.c (read_func_scope, read_lexical_block_scope):
4052 Update.
4053 * dbxread.c (process_one_symbol): Update.
4054 * coffread.c (coff_symtab_read): Update.
4055 * buildsym.h (finish_block): Update.
4056 * buildsym.c (finish_block): Remove "listhead" argument.
4057 (end_symtab_get_static_block): Update.
4058
5ac04550
TT
40592018-07-20 Tom Tromey <tom@tromey.com>
4060
4061 * buildsym.h (class scoped_free_pendings): Remove constructor.
4062 * buildsym.c (struct buildsym_compunit) <free_pending_blocks>: New
4063 method.
4064 <m_pending_block_obstack, m_pending_blocks>: New members.
4065 (pending_block_obstack, pending_blocks): Remove.
4066 (scoped_free_pendings::scoped_free_pendings): Default.
4067 (~scoped_free_pendings): Update.
4068 (free_pending_blocks): Remove.
4069 (finish_block_internal, record_pending_block, make_blockvector)
4070 (end_symtab_get_static_block, augment_type_symtab, push_context)
4071 (buildsym_init): Update.
4072
7ea05a7b
TT
40732018-07-20 Tom Tromey <tom@tromey.com>
4074
4075 * buildsym.c (struct buildsym_compunit) <m_pending_addrmap,
4076 m_pending_addrmap_obstack, m_pending_addrmap_interesting>: New
4077 members.
4078 (pending_addrmap, pending_addrmap_obstack)
4079 (pending_addrmap_interesting): Remove.
4080 (scoped_free_pendings, record_block_range, make_blockvector)
4081 (prepare_for_building, reset_symtab_globals, buildsym_init):
4082 Update.
4083
3c65e5b3
TT
40842018-07-20 Tom Tromey <tom@tromey.com>
4085
4086 * xcoffread.c (process_linenos): Update.
4087 * stabsread.c (define_symbol, read_type, read_enum_type): Update.
4088 * mdebugread.c (psymtab_to_symtab_1): Update.
4089 * dwarf2read.c (setup_type_unit_groups)
4090 (lnp_state_machine::handle_set_file, dwarf_record_line_p)
4091 (lnp_state_machine::record_line, dwarf_decode_lines): Update.
4092 * dbxread.c (process_one_symbol): Update.
4093 * coffread.c (coff_symtab_read, enter_linenos)
4094 (process_coff_symbol): Update.
4095 * buildsym.h (current_subfile): Don't declare.
4096 (get_current_subfile): Declare.
4097 * buildsym.c (struct buildsym_compunit) <m_current_subfile>: New
4098 member.
4099 (start_subfile, free_buildsym_compunit, push_subfile)
4100 (prepare_for_building, start_symtab): Update.
4101 (get_current_subfile): New function.
4102
a60f3166
TT
41032018-07-20 Tom Tromey <tom@tromey.com>
4104
4105 * coffread.c (coff_symtab_read): Update.
4106 * xcoffread.c (read_xcoff_symtab): Update.
4107 * dwarf2read.c (new_symbol): Update.
4108 (read_func_scope, read_lexical_block_scope): Update.
4109 * dbxread.c (process_one_symbol): Update.
4110 * buildsym.h (context_stack, context_stack_depth): Don't declare.
4111 (outermost_context_p): Remove macro.
4112 (outermost_context_p, get_current_context_stack)
4113 (get_context_stack_depth): Declare.
4114 (pop_context): Return struct context_stack.
4115 * buildsym.c (struct buildsym_compunit) <m_context_stack: New
4116 member.
4117 (context_stack_size): Remove.
4118 (INITIAL_CONTEXT_STACK_SIZE): Remove.
4119 (prepare_for_building, end_symtab_get_static_block)
4120 (augment_type_symtab, push_context): Update.
4121 (pop_context): Return struct context_stack.
4122 (outermost_context_p, get_current_context_stack)
4123 (get_context_stack_depth): New functions.
4124 (buildsym_init): Update.
4125
56ba65a0
TT
41262018-07-20 Tom Tromey <tom@tromey.com>
4127
4128 * rust-exp.y: Now a pure parser. Update all rules.
4129 (%union): Move earlier.
4130 (current_parser, work_obstack): Remove globals.
4131 (rust_parser, ~rust_parser): Update.
4132 (class rust_parser) <copy_name, concat3, crate_name, super_name,
4133 lex_character, lex_number, lex_string, lex_identifier,
4134 rust_lookup_type, convert_params_to_types, convert_ast_to_type,
4135 convert_name, convert_params_to_expression,
4136 convert_ast_to_expression, ast_basic_type, ast_operation,
4137 ast_compound_assignment, rust_op, ast_literal, ast_dliteral,
4138 ast_structop, ast_structop_anonymous, ast_unary, ast_cast,
4139 ast_call_ish, ast_path, ast_string, ast_struct, ast_range,
4140 ast_array_type, ast_slice_type, ast_reference_type,
4141 ast_pointer_type, ast_function_type, ast_tuple_type>: New methods.
4142 (rust_parse): Update.
4143 (rustyyerror, rustyylex): Add parser parameter.
4144 (rust_lex_test_one, rust_lex_int_test, rust_lex_exception_test)
4145 (rust_lex_stringish_test, rust_lex_test_sequence)
4146 (rust_lex_test_trailing_dot, rust_lex_test_completion)
4147 (rust_lex_test_push_back, rust_lex_tests): Update.
4148
4c693332
PA
41492018-07-19 Pedro Alves <palves@redhat.com>
4150
4151 * guile/guile-internal.h (gdbscm_scm_to_c_string): Now returns a
4152 gdb::unique_xmalloc_ptr.
4153 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x):
4154 Adjust to use dbscm_wrap and gdb::unique_xmalloc_ptr.
4155 * guile/scm-exception.c (gdbscm_exception_message_to_string): Use
4156 copy-initialization.
4157 * guile/scm-pretty-print.c (ppscm_print_children): Use
4158 gdb::unique_xmalloc_ptr instead of cleanups.
4159 (gdbscm_apply_val_pretty_printer): Remove cleanups.
4160 * guile/scm-string.c (gdbscm_scm_to_c_string): Now returns a
4161 gdb::unique_xmalloc_ptr.
4162 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
4163 Adjust to use gdb::unique_xmalloc_ptr.
4164 * guile/scm-utils.c (extract_arg): Adjust.
4165 * guile/scm-value.c (gdbscm_value_field): Adjust to use
4166 gdb::unique_xmalloc_ptr instead of a cleanup.
4167
4581dc82
TT
41682018-07-19 Tom Tromey <tom@tromey.com>
4169
4170 * utils.c (do_value_free_to_mark)
4171 (make_cleanup_value_free_to_mark): Remove.
4172 * utils.h (make_cleanup_value_free_to_mark): Remove.
4173
43cc6c3a
PA
41742018-07-19 Pedro Alves <palves@redhat.com>
4175
4176 * guile/guile-internal.h (gdbscm_wrap): Really make 'args' a
4177 forwarding reference.
4178
3a5f2a48
PA
41792018-07-18 Pedro Alves <palves@redhat.com>
4180
4181 * guile/guile.c (gdbscm_execute_gdb_command): Adjust to use
4182 gdbscm_wrap. Use gdb::unique_xmalloc_ptr<char> instead of a
4183 cleanup.
4184
557e56be
PA
41852018-07-18 Pedro Alves <palves@redhat.com>
4186
4187 * guile/guile-internal.h: Add comment about mixing GDB and Scheme
4188 exceptions.
4189 (GDBSCM_HANDLE_GDB_EXCEPTION_WITH_CLEANUPS): Delete.
4190 (gdbscm_wrap): New.
4191 * guile/scm-frame.c (gdbscm_frame_read_register): Use xfree
4192 directly instead of a cleanup.
4193 * guile/scm-math.c (vlscm_unop_gdbthrow): New, factored out from ...
4194 (vlscm_unop): ... this. Reimplement using gdbscm_wrap.
4195 (vlscm_binop_gdbthrow): New, factored out from ...
4196 (vlscm_binop): ... this. Reimplement using gdbscm_wrap.
4197 (vlscm_rich_compare): Use gdbscm_wrap.
4198 * guile/scm-symbol.c (gdbscm_lookup_symbol): Use xfree directly
4199 instead of a cleanup.
4200 (gdbscm_lookup_global_symbol): Use xfree directly instead of a
4201 cleanup.
4202 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
4203 Use xfree directly instead of a cleanup.
4204 * guile/scm-value.c (gdbscm_make_value, gdbscm_make_lazy_value):
4205 Adjust to use gdbscm_wrap and scoped_value_mark.
4206 (gdbscm_value_optimized_out_p): Adjust to use gdbscm_wrap.
4207 (gdbscm_value_address, gdbscm_value_dereference)
4208 (gdbscm_value_referenced_value): Adjust to use gdbscm_wrap and
4209 scoped_value_mark.
4210 (gdbscm_value_dynamic_type): Use scoped_value_mark.
4211 (vlscm_do_cast, gdbscm_value_field): Adjust to use gdbscm_wrap and
4212 scoped_value_mark.
4213 (gdbscm_value_subscript, gdbscm_value_call): Adjust to use
4214 gdbscm_wrap and scoped_value_mark.
4215 (gdbscm_value_to_string): Use xfree directly instead of a
4216 cleanup. Move 'buffer' unique_ptr to TRY scope.
4217 (gdbscm_value_to_lazy_string): Use xfree directly instead of a
4218 cleanup. Move 'buffer' unique_ptr to TRY scope. Use
4219 scoped_value_mark.
4220 (gdbscm_value_fetch_lazy_x): Use gdbscm_wrap.
4221 (gdbscm_parse_and_eval): Adjust to use gdbscm_wrap and
4222 scoped_value_mark.
4223 (gdbscm_history_ref, gdbscm_history_append_x): Adjust to use
4224 gdbscm_wrap.
4225
42dc7699
TV
42262018-07-18 Tom de Vries <tdevries@suse.de>
4227
4228 * findvar.c (default_read_var_value): Also resolve dynamic type for
4229 LOC_OPTIMIZED_OUT vars.
4230
6592ceed
MR
42312018-07-18 Maciej W. Rozycki <macro@mips.com>
4232
4233 * mips-tdep.c (micromips_next_pc): Add SYSCALL instruction
4234 decoding.
4235
c6c6149a
TT
42362018-07-17 Tom Tromey <tom@tromey.com>
4237
4238 * guile/scm-param.c (pascm_set_func, pascm_show_func)
4239 (compute_enum_list, pascm_set_param_value_x)
4240 (gdbscm_parameter_value): Update.
4241 * guile/guile-internal.h (gdbscm_scm_to_string): Update.
4242 (gdbscm_scm_to_host_string): Update.
4243 * guile/scm-math.c (vlscm_convert_typed_value_from_scheme):
4244 Update.
4245 * guile/scm-cmd.c (cmdscm_add_completion): Update.
4246 * guile/scm-pretty-print.c (ppscm_print_string_repr): Update.
4247 * guile/scm-string.c (gdbscm_scm_to_string): Return
4248 unique_xmalloc_ptr.
4249 (gdbscm_scm_to_host_string): Likewise.
4250
a1a31cb8
TT
42512018-07-17 Tom Tromey <tom@tromey.com>
4252
4253 * guile/guile.c (gdbscm_eval_from_control_command): Update.
4254 * guile/guile-internal.h (gdbscm_safe_eval_string): Update.
4255 * guile/scm-objfile.c (gdbscm_execute_objfile_script): Update.
4256 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Return
4257 unique_xmalloc_ptr.
4258
15bf3002
TT
42592018-07-17 Tom Tromey <tom@tromey.com>
4260
4261 * guile/scm-param.c (pascm_signal_setshow_error): Update.
4262 * guile/guile-internal.h (gdbscm_exception_message_to_string):
4263 Update.
4264 * guile/scm-cmd.c (cmdscm_function): Update.
4265 * guile/scm-pretty-print.c
4266 (ppscm_print_exception_unless_memory_error): Update.
4267 * guile/scm-exception.c (gdbscm_exception_message_to_string):
4268 Return unique_xmalloc_ptr.
4269
7eb1a66c
TT
42702018-07-17 Tom Tromey <tom@tromey.com>
4271
4272 * guile/scm-pretty-print.c (ppscm_make_pp_type_error_exception):
4273 Use string_printf.
4274
ce73f310
JW
42752018-07-17 Jim Wilson <jimw@sifive.com>
4276
27724bad
JW
4277 * riscv-tdep.c (riscv_has_feature): Delete comment that refers to
4278 set_gdbarch_decr_pc_after_break. Call riscv_read_misa_reg always.
4279 (riscv_gdbarch_init): Delete local has_compressed_isa. Delete now
4280 unecessary braces after EF_RISCV_RVC test. Delete call to
4281 set_gdbarch_decr_pc_after_break.
4282
ce73f310
JW
4283 * riscv-tdep.h (DECLARE_CSR): Use RISCV_FIRST_CSR_REGNUM instead of
4284 RISCV_LAST_FP_REGNUM + 1.
4285 (RSICV_CSR_LEGACY_MISA_REGNUM): Add RISCV_FIRST_CSR_REGNUM.
4286
056dec39
TT
42872018-07-17 Tom Tromey <tom@tromey.com>
4288
4289 * configure.ac: Remove --disable-gdbcli.
4290 * configure: Rebuild.
4291 * Makefile.in (SUBDIR_CLI_DEPS, SUBDIR_CLI_LDFLAGS)
4292 (SUBDIR_CLI_CFLAGS): Remove.
4293 (SFILES): Use SUBDIR_CLI_SRCS.
4294 (COMMON_OBS): Use SUBDIR_CLI_OBS.
4295
4735f0ed
TT
42962018-07-17 Tom Tromey <tom@tromey.com>
4297
4298 PR gdb/18624:
4299 * coffread.c (coff_symtab_read): Use scoped_free_pendings.
4300
117a0e99
JW
43012018-07-16 Jim Wilson <jimw@sifive.com>
4302
4303 * riscv-tdep.c (riscv_gdbarch_init): Call gdbarch_init_osabi.
4304
8a67aaa8
SM
43052018-07-16 Simon Marchi <simon.marchi@ericsson.com>
4306
4307 * ia64-libunwind-tdep.c (libunwind_frame_cache): Remove unused
4308 variable.
4309 (libunwind_frame_sniffer): Likewise.
4310 (libunwind_frame_prev_register): Likewise.
4311 (libunwind_sigtramp_frame_sniffer): Likewise.
4312 * ia64-tdep.c (ia64_access_reg): Likewise.
4313 (ia64_access_rse_reg): Likewise.
4314 (ia64_libunwind_sigtramp_frame_this_id): Likewise.
4315 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Likewise.
4316
ec74dcd8
SM
43172018-07-16 Simon Marchi <simon.marchi@ericsson.com>
4318
4319 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Add cast.
4320
a700e753
SM
43212018-07-16 Simon Marchi <simon.marchi@ericsson.com>
4322
4323 * remote-sim.c (gdbsim_target::close,
4324 gdbsim_target::mourn_inferior): Remove unused variables.
4325
8b411ff8
SM
43262018-07-16 Simon Marchi <simon.marchi@polymtl.ca>
4327
4328 * ia64-tdep.c (ktab_buf): New global.
4329 (getunwind_table): Return a gdb::optional<gdb::byte_vector>.
4330 (get_kernel_table): Adjust.
4331
edb0470b
TT
43322018-07-16 Tom Tromey <tom@tromey.com>
4333
4334 * xcoffread.c (read_xcoff_symtab): Use outermost_context_p.
4335 * dwarf2read.c (using_directives, new_symbol): Use
4336 outermost_context_p.
4337 * dbxread.c (process_one_symbol): Use outermost_context_p.
4338 * coffread.c (coff_symtab_read): Use outermost_context_p.
4339
6cccc9a8
TT
43402018-07-16 Tom Tromey <tom@tromey.com>
4341
4342 * dwarf2read.c (using_directives, read_func_scope)
4343 (read_lexical_block_scope): Update.
4344 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
4345 * buildsym.h (local_using_directives, global_using_directives):
4346 Don't declare.
4347 (get_local_using_directives, set_local_using_directives)
4348 (get_global_using_directives): Declare.
4349 * buildsym.c (struct buildsym_compunit) <m_local_using_directives,
4350 m_global_using_directives>: New members.
4351 (finish_block_internal, prepare_for_building)
4352 (reset_symtab_globals, end_symtab_get_static_block)
4353 (push_context): Update.
4354 (get_local_using_directives, set_local_using_directives)
4355 (get_global_using_directives): New functions.
4356 (buildsym_init): Update.
4357
652788a7
TT
43582018-07-16 Tom Tromey <tom@tromey.com>
4359
4360 * xcoffread.c (xcoff_initial_scan): Don't call
4361 free_pending_blocks.
4362 * dbxread.c (dbx_symfile_read): Don't call free_pending_blocks.
4363 * buildsym.h (class scoped_free_pendings): Add constructor.
4364 (free_pending_blocks): Don't declare.
4365 * buildsym.c (scoped_free_pendings::scoped_free_pendings): New.
4366 (free_pending_blocks): Now static.
4367
8419ee53
TT
43682018-07-16 Tom Tromey <tom@tromey.com>
4369
4370 * buildsym.h (push_subfile, pop_subfile): Update declarations.
4371 * buildsym.c (struct buildsym_compunit) <m_subfile_stack>: New
4372 member.
4373 (struct subfile_stack): Remove.
4374 (subfile_stack): Remove.
4375 (push_subfile, pop_subfile, buildsym_init): Update.
4376
ccdac490
TT
43772018-07-16 Tom Tromey <tom@tromey.com>
4378
4379 * buildsym.c (push_subfile): Use gdb_assert.
4380 (pop_subfile): Use gdb_assert.
4381
43130d6f
TT
43822018-07-16 Tom Tromey <tom@tromey.com>
4383
4384 * buildsym.h (merge_symbol_lists): Remove.
4385 * buildsym.c (merge_symbol_lists): Remove.
4386
77d6f1aa
TT
43872018-07-16 Tom Tromey <tom@tromey.com>
4388
4389 * stabsread.c (scan_file_globals): Update comment.
4390 * stabsread.h (scan_file_globals): Move from buildsym.h.
4391 * buildsym.h (scan_file_globals): Move to stabsread.h.
4392
2c722d18
TT
43932018-07-16 Tom Tromey <tom@tromey.com>
4394
4395 * xcoffread.c (xcoff_new_init): Update.
4396 * mipsread.c (mipscoff_new_init): Update.
4397 * mdebugread.c (mdebug_build_psymtabs): Update.
4398 * elfread.c (elf_new_init): Update.
4399 * dbxread.c (dbx_new_init, coffstab_build_psymtabs)
4400 (elfstab_build_psymtabs, stabsect_build_psymtabs): Update.
4401 * buildsym.h (buildsym_new_init): Don't declare.
4402 * buildsym.c (buildsym_new_init): Remove.
4403
5985ac61
TT
44042018-07-16 Tom Tromey <tom@tromey.com>
4405
4406 * stabsread.h (within_function): Move from buildsym.h.
4407 * stabsread.c (start_stabs): Clear within_function.
4408 * coffread.c (coff_start_symtab): Clear within_function.
4409 * buildsym.h (within_function): Move to stabsread.h.
4410 * buildsym.c (prepare_for_building): Update.
4411
6b84eeb2
TT
44122018-07-16 Tom Tromey <tom@tromey.com>
4413
4414 * stabsread.h (processing_gcc_compilation): Move from buildsym.h.
4415 * dwarf2read.c (dwarf2_start_symtab): Don't set
4416 processing_gcc_compilation.
4417 * buildsym.h (processing_gcc_compilation): Move to stabsread.h.
4418
2150c3ef
TT
44192018-07-16 Tom Tromey <tom@tromey.com>
4420
4421 * stabsread.h (HASHSIZE, hashname, symnum, next_symbol_text)
4422 (next_symbol_text_func): Move from buildsym.h.
4423 * stabsread.c (hashname): Move from buildsym.c.
4424 * buildsym.h (HASHSIZE, symnum, next_symbol_text)
4425 (next_symbol_text_func, hashname): Move to stabsread.h.
4426 * buildsym.c: Don't include bcache.h
4427 (hashname): Move to stasbread.c.
4428
0ec44fc0
TT
44292018-07-16 Tom Tromey <tom@tromey.com>
4430
4431 * buildsym.h (context_stack_size): Don't declare.
4432 * buildsym.c (context_stack_size): New global.
4433
81cc346d
TT
44342018-07-16 Tom Tromey <tom@tromey.com>
4435
4436 * dbxread.c (processing_acc_compilation): New global.
4437 * buildsym.h (processing_acc_compilation): Don't declare.
4438
2c99ee5c
TT
44392018-07-16 Tom Tromey <tom@tromey.com>
4440
4441 * xcoffread.c (aix_process_linenos, complete_symtab): Update.
4442 * dbxread.c (read_ofile_symtab): Update.
4443 * coffread.c (coff_start_symtab, coff_end_symtab): Update.
4444 * buildsym.h (last_source_start_addr): Remove.
4445 (set_last_source_start_addr, get_last_source_start_addr):
4446 Declare.
4447 * buildsym.c (buildsym_compunit::buildsym_compunit): Add last_addr
4448 parameter.
4449 (struct buildsym_compunit) <m_last_source_start_addr>: New
4450 member.
4451 (prepare_for_building): Remove start_addr parameter.
4452 (start_symtab, restart_symtab, end_symtab_get_static_block)
4453 (end_symtab_with_blockvector): Update.
4454 (set_last_source_start_addr, get_last_source_start_addr): New
4455 functions.
4456
530fedbc
TT
44572018-07-16 Tom Tromey <tom@tromey.com>
4458
4459 * buildsym.c (struct buildsym_compunit) <m_have_line_numbers>: New
4460 member.
4461 (have_line_numbers): Remove.
4462 (record_line, prepare_for_building, end_symtab_get_static_block)
4463 (augment_type_symtab): Update.
4464
6a976300
TT
44652018-07-16 Tom Tromey <tom@tromey.com>
4466
4467 * buildsym.c (~buildsym_compunit): Free the macro table.
4468 (struct buildsym_compunit) <get_macro_table, release_macros>: New
4469 methods.
4470 <m_pending_macros>: New member.
4471 (pending_macros): Remove.
4472 (~scoped_free_pendings, get_macro_table, prepare_for_building)
4473 (reset_symtab_globals, end_symtab_get_static_block)
4474 (end_symtab_with_blockvector, augment_type_symtab)
4475 (buildsym_init): Update.
4476
c0015d44
TT
44772018-07-16 Tom Tromey <tom@tromey.com>
4478
4479 * buildsym.c (buildsym_compunit::buildsym_compunit): Add name
4480 parameter.
4481 (buildsym_compunit::set_last_source_file): New method.
4482 <m_last_source_file>: New member.
4483 (prepare_for_building): Remove "name" parameter.
4484 (start_symtab, restart_symtab, reset_symtab_globals): Update.
4485 (last_source_file): Remove.
4486 (set_last_source_file, get_last_source_file): Update.
4487
e62cca7c
TT
44882018-07-16 Tom Tromey <tom@tromey.com>
4489
4490 * buildsym.c (prepare_for_building): Add assert.
4491
905eb0e2
TT
44922018-07-16 Tom Tromey <tom@tromey.com>
4493
4494 * buildsym.c (~buildsym_compunit): Update.
4495 (struct buildsym_compunit) <comp_unit>: Now a unique_xmalloc_ptr.
4496 (start_subfile, patch_subfile_names)
4497 (end_symtab_with_blockvector): Update.
4498
b248663f
TT
44992018-07-16 Tom Tromey <tom@tromey.com>
4500
4501 * buildsym.c (struct buildsym_compunit): Add constructor,
4502 destructor, initializers.
4503 (start_buildsym_compunit): Remove.
4504 (free_buildsym_compunit): Use "delete".
4505 (start_symtab, restart_symtab): Use "new".
4506
ff27d073
SM
45072018-07-13 Simon Marchi <simon.marchi@polymtl.ca>
4508
4509 * symfile.c (set_objfile_default_section_offset): Remove struct
4510 keyword.
4511
6a15ecf5
SH
45122018-07-14 Stafford Horne <shorne@gmail.com>
4513
4514 * (Responsible Maintainers): Add myself as or1k maintainer.
4515
027a4c30
TT
45162018-07-13 Tom Tromey <tom@tromey.com>
4517
4518 * symfile.c (set_objfile_default_section_offset): Use extra braces
4519 around initializer.
4520
5c1eda30
AA
45212018-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
4522
4523 * s390-tdep.c (s390_displaced_step_fixup): Adjust PC for a
4524 non-branching basr.
4525
bc7b042b
PW
45262018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4527
4528 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
4529 unittests/cli-utils-selftests.c
4530 * unittests/cli-utils-selftests.c: New file.
4531
a14c4daa
PW
45322018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4533
4534 * NEWS: Mention new commands. Mention change to 'thread apply'.
4535
1fe75df7
PW
45362018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4537
4538 * thread.c (thr_try_catch_cmd): New function.
4539 (thread_apply_all_command): Handle qcs flags.
4540 (thread_apply_command): Handle qcs flags.
4541 (taas_command): New function.
4542 (tfaas_command): New function.
4543 (_initialize_thread): Update to setup the new commands 'taas
4544 and 'tfaas'. Change doc string for 'thread apply'.
4545
6a70eb7d
PW
45462018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4547
4548 * stack.c: (trailing_outermost_frame): New function, mostly
4549 extracted from backtrace_command_1.
4550 (leading_innermost_frame): New function.
4551 (backtrace_command_1): Update to call trailing_outermost_frame.
4552 (frame_apply_command_count): New function.
4553 (frame_apply_level_command): New function.
4554 (frame_apply_all_command): New function.
4555 (frame_apply_command): New function.
4556 (faas_command): New function.
4557 (frame_cmd_list): New variable.
4558 (_initialize_stack): Update to setup the new commands 'frame apply'
4559 and 'faas'.
4560
529c08b2
PW
45612018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4562
4563 * cli-utils.c (number_or_range_parser::get_number): Only handle
4564 numbers or convenience var as numbers.
4565 (parse_flags): New function.
4566 (parse_flags_qcs): New function.
4567 (number_or_range_parser::finished): Ensure parsing end is detected
4568 before end of string.
4569 * cli-utils.h (parse_flags): New function.
4570 (parse_flags_qcs): New function.
4571 (number_or_range_parser): Remove m_finished bool.
4572 (number_or_range_parser::skip_range): Set m_in_range to false.
4573
64b58472
SDJ
45742018-07-12 Sergio Durigan Junior <sergiodj@redhat.com>
4575
4576 * ser-tcp.c (try_connect): Declare 'ioarg' as 'u_long' if building
4577 on Windows.
4578
c7ab0aef
SDJ
45792018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
4580 Jan Kratochvil <jan.kratochvil@redhat.com>
4581 Paul Fertser <fercerpav@gmail.com>
4582 Tsutomu Seki <sekiriki@gmail.com>
4583 Pedro Alves <palves@redhat.com>
4584
4585 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
4586 'unittests/parse-connection-spec-selftests.c'.
4587 (COMMON_SFILES): Add 'common/netstuff.c'.
4588 (HFILES_NO_SRCDIR): Add 'common/netstuff.h'.
4589 * NEWS (Changes since GDB 8.2): Mention IPv6 support.
4590 * common/netstuff.c: New file.
4591 * common/netstuff.h: New file.
4592 * ser-tcp.c: Include 'netstuff.h' and 'wspiapi.h'.
4593 (wait_for_connect): Update comment. New parameter
4594 'gdb::optional<int> sock' instead of 'struct serial *scb'.
4595 Use 'sock' directly instead of 'scb->fd'.
4596 (try_connect): New function, with code from 'net_open'.
4597 (net_open): Rewrite main loop to deal with multiple
4598 sockets/addresses. Handle IPv6-style hostnames; implement
4599 support for IPv6 connections.
4600 * unittests/parse-connection-spec-selftests.c: New file.
4601
4c7333b3
PA
46022018-07-11 Pedro Alves <palves@redhat.com>
4603
4604 PR gdb/23377
4605 * remote.c (remote_target::remote_detach_pid): Call
4606 set_current_process.
4607
a6f88f6e
PA
46082018-07-11 Pedro Alves <palves@redhat.com>
4609
4610 * h8300-tdep.c (h8300_gdbarch_init): Remove
4611 set_gdbarch_ecoff_reg_to_regnum calls.
4612
16ff70dd
SDJ
46132018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
4614
4615 PR c++/23373
4616 * c-typeprint.c (c_type_print_base_struct_union): Don't print
4617 offsets/sizes for static members of a class/struct.
4618
12863263
AH
46192018-07-11 Alan Hayward <alan.hayward@arm.com>
4620
4621 * target-descriptions.c (tdesc_register_bitsize): Rename.
4622 * target-descriptions.h (tdesc_register_bitsize): Likewise.
4623 * rs6000-tdep.c (rs6000_gdbarch_init): Use new name.
4624 * aarch64-tdep.c (aarch64_get_tdesc_vq): Convert size.
4625
1123588c
TT
46262018-07-10 Tom Tromey <tom@tromey.com>
4627
4628 * breakpoint.c (moribund_locations): Now static and a
4629 std::vector.
4630 (breakpoint_init_inferior, moribund_breakpoint_here_p)
4631 (build_bpstat_chain, update_global_location_list)
4632 (breakpoint_retire_moribund): Update.
4633 * breakpoint.h (bp_location_p): Remove typedef. Don't declare
4634 VEC.
4635
8c49aa89
AB
46362018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
4637
4638 * riscv-tdep.c (riscv_is_fp_regno_p): New function.
4639 (riscv_register_reggroup_p): Use new function, remove unneeded
4640 parenthesis.
4641 (riscv_push_dummy_call): Extend assert to compare against xlen or
4642 flen based on register type.
4643
42ecac17
AB
46442018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
4645
4646 * riscv-tdep.c (riscv_print_arg_location): Use TYPE_SAFE_NAME.
4647
055303e2
AB
46482018-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4649
4650 * remote.c (show_hardware_watchpoint_limit): New function.
4651 (show_hardware_watchpoint_length_limit): New function.
4652 (show_hardware_breakpoint_limit): New function.
4653 (_initialize_remote): Use add_setshow_zuinteger_unlimited_cmd
4654 where appropriate, update help text.
4655
8fd32c1c
TT
46562018-07-09 Tom Tromey <tom@tromey.com>
4657
4658 * Makefile.in (CDEPS): Don't mention XM_CDEPS.
4659 (CLIBS): Don't mention NAT_CLIBS.
4660
31278b51
TT
46612018-07-09 Tom Tromey <tom@tromey.com>
4662
4663 * Makefile.in (ADD_FILES, ADD_DEPS): Remove.
4664 (LIBGDB_OBS, clean mostlyclean): Update.
4665 (gdb$(EXEEXT), insight$(EXEEXT)): Update.
4666
e5fd1493
TT
46672018-07-09 Tom Tromey <tom@tromey.com>
4668
4669 * Makefile.in (%.c: %.y): Use ECHO_YACC.
4670 (%.c: %.l): Use ECHO_LEX. Just fail if flex not available.
4671 * silent-rules.mk (ECHO_YACC, ECHO_LEX): New variables.
4672
981e0c0c
TT
46732018-07-09 Tom Tromey <tom@tromey.com>
4674
4675 * Makefile.in (ALLDEPFILES): Remove exec.c.
4676 (COMMON_OBS): Remove exec.o.
4677 (COMMON_SFILES): Add exec.c.
4678
14ccceb2
TT
46792018-07-09 Tom Tromey <tom@tromey.com>
4680
4681 * Makefile.in (LINT, LINTFLAGS, LINTFILES, lint): Remove.
4682
5d3c3a68
TT
46832018-07-09 Tom Tromey <tom@tromey.com>
4684
4685 * Makefile.in (clean mostlyclean): Remove stamp-version.
4686 (version.c): Depend on stamp-version.
4687 (stamp-version): New rule, from version.c rule.
4688
1998086d
TT
46892018-07-09 Tom Tromey <tom@tromey.com>
4690
4691 * Makefile.in (init.c): Depend on stamp-init.
4692 (stamp-init): New rule, from init.c rule.
4693 (clean mostlyclean): Remove stamp-init.
4694
4c754949
TT
46952018-07-09 Tom Tromey <tom@tromey.com>
4696
4697 * Makefile.in (INIT_FILES): Remove CONFIG_SRCS,
4698 SUBDIR_GCC_COMPILE_SRCS.
4699
6497f1dd
TT
47002018-07-09 Tom Tromey <tom@tromey.com>
4701
4702 * Makefile.in (init.c): Remove some unused sed rules.
4703
97a34db9
TT
47042018-07-09 Tom Tromey <tom@tromey.com>
4705
4706 * Makefile.in (TSOBS): Remove.
4707 (INIT_FILES): Update.
4708 (LIBGDB_OBS): Update.
4709 (COMMON_SFILES): Add inflow.c.
4710 (SFILES): Remove inflow.c.
4711
25289ac1
JK
47122018-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4713
4714 * contrib/gdb-add-index.sh ($dwarf5): New, use it.
4715
e83f4d97
SM
47162018-07-07 Simon Marchi <simon.marchi@polymtl.ca>
4717
4869c585
SM
4718 * ia64-libunwind-tdep.c (get_reg_name, get_fpreg_name,
4719 get_saveloc_name, is_signal_frame_name, step_name,
4720 init_remote_name, create_addr_space_name,
4721 destroy_addr_space_name, search_unwind_table_name,
4722 find_dyn_list_name): Constify.
e83f4d97 4723
6821842f
SM
47242018-07-05 Simon Marchi <simon.marchi@polymtl.ca>
4725
4726 * darwin-nat.c (darwin_pthread_kill): New function.
4727 (darwin_resume_thread): Use darwin_pthread_kill.
4728
c530603c
TV
47292018-07-05 Tom de Vries <tdevries@suse.de>
4730
4731 * macroexp.c (macro_buffer) <operator=>: New member function.
4732
a7d0f0f0
TT
47332018-07-04 Tom Tromey <tom@tromey.com>
4734
4735 * darwin-nat.c (darwin_attach_pid): Use exit_inferior.
4736
6242c6a6
SM
47372018-07-04 Simon Marchi <simon.marchi@polymtl.ca>
4738
4739 * common/common-defs.h (HAVE_USEFUL_SBRK): Define.
4740 * main.c: Use HAVE_USEFUL_SBRK instead of HAVE_SBRK.
4741 * maint.c: Likewise.
4742 * top.c: Likewise.
4743
4e5b2f89
JB
47442018-07-04 Joel Brobecker <brobecker@adacore.com>
4745
4746 * NEWS: Create a new section for the next release branch.
4747 Rename the section of the current branch, now that it has
4748 been cut.
4749
538ccc4a
JB
47502018-07-04 Joel Brobecker <brobecker@adacore.com>
4751
4752 GDB 8.2 branch created (1b919490e8ba30bf1d6941df0ed112b0e557017e):
4753 * version.in: Bump version to 8.2.50.DATE-git.
4754
1b919490
VB
47552018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
4756 Pedro Alves <palves@redhat.com>
4757
4758 * linux-nat.c (linux_init_ptrace): Rename to ...
4759 (linux_init_ptrace_procfs): ... this. Call
4760 linux_proc_init_warnings.
4761 (linux_nat_target::post_attach)
4762 (linux_nat_target::post_startup_inferior): Adjust.
4763 * nat/linux-procfs.c (linux_proc_init_warnings): Define function.
4764 * nat/linux-procfs.h (linux_proc_init_warnings): Declare function.
4765
1ea5da02
TV
47662018-07-04 Tom de Vries <tdevries@suse.de>
4767
4768 * dwarf2read.c (error_check_comp_unit_head): Move dwarf version
4769 check ...
4770 (read_comp_unit_head): ... here.
4771
f51e0e20
TT
47722018-07-03 Tom Tromey <tom@tromey.com>
4773
4774 * tracepoint.c (process_tracepoint_on_disconnect, start_tracing)
4775 (stop_tracing, tstatus_command)
4776 (find_matching_tracepoint_location, merge_uploaded_tracepoints)
4777 (print_one_static_tracepoint_marker): Update.
4778 * breakpoint.c (static_tracepoints_here, all_tracepoints): Return
4779 std::vector.
4780 * breakpoint.h (breakpoint_p): Remove typedef. Don't declare
4781 VEC.
4782 (all_tracepoints, static_tracepoints_here): Return std::vector.
4783
d7e15655
TT
47842018-07-03 Tom Tromey <tom@tromey.com>
4785
4786 * common/ptid.c (ptid_equal): Remove.
4787 * common/ptid.h (ptid_equal): Don't declare.
4788 * ada-tasks.c: Update.
4789 * breakpoint.c: Update.
4790 * common/agent.c: Update.
4791 * corelow.c: Update.
4792 * darwin-nat-info.c: Update.
4793 * darwin-nat.c: Update.
4794 * dcache.c: Update.
4795 * dtrace-probe.c: Update.
4796 * dummy-frame.c: Update.
4797 * fbsd-nat.c: Update.
4798 * frame.c: Update.
4799 * gdbthread.h: Update.
4800 * gnu-nat.c: Update.
4801 * go32-nat.c: Update.
4802 * inf-loop.c: Update.
4803 * inf-ptrace.c: Update.
4804 * infcall.c: Update.
4805 * infcmd.c: Update.
4806 * inflow.c: Update.
4807 * infrun.c: Update.
4808 * linux-fork.c: Update.
4809 * linux-nat.c: Update.
4810 * linux-thread-db.c: Update.
4811 * mi/mi-cmd-var.c: Update.
4812 * mi/mi-interp.c: Update.
4813 * mi/mi-main.c: Update.
4814 * nto-procfs.c: Update.
4815 * ppc-linux-tdep.c: Update.
4816 * procfs.c: Update.
4817 * python/py-inferior.c: Update.
4818 * python/py-record-btrace.c: Update.
4819 * python/py-record.c: Update.
4820 * ravenscar-thread.c: Update.
4821 * regcache.c: Update.
4822 * remote-sim.c: Update.
4823 * remote.c: Update.
4824 * sol-thread.c: Update.
4825 * solib.c: Update.
4826 * target.c: Update.
4827 * tui/tui-stack.c: Update.
4828 * varobj.c: Update.
4829 * windows-nat.c: Update.
4830 * windows-tdep.c: Update.
4831
26a57c92
TT
48322018-07-03 Tom Tromey <tom@tromey.com>
4833
4834 * common/ptid.c (ptid_match): Remove.
4835 * common/ptid.h (ptid_match): Don't declare.
4836 * fbsd-nat.c: Update.
4837 * infcmd.c: Update.
4838 * infrun.c: Update.
4839 * linux-nat.c: Update.
4840 * record-btrace.c: Update.
4841 * regcache.c: Update.
4842 * remote.c: Update.
4843
d2a107e3
TT
48442018-07-03 Tom Tromey <tom@tromey.com>
4845
4846 * common/ptid.c (ptid_tid_p): Remove.
4847 * common/ptid.h (ptid_tid_p): Don't declare.
4848 * sol-thread.c: Update.
4849
15a9e13e
TT
48502018-07-03 Tom Tromey <tom@tromey.com>
4851
4852 * common/ptid.c (ptid_lwp_p): Remove.
4853 * common/ptid.h (ptid_lwp_p): Don't declare.
4854 * fbsd-nat.c: Update.
4855 * linux-nat.c: Update.
4856 * nat/linux-procfs.c: Update.
4857 * nat/x86-linux-dregs.c: Update.
4858 * sol-thread.c: Update.
4859
0e998d96
TT
48602018-07-03 Tom Tromey <tom@tromey.com>
4861
4862 * common/ptid.c (ptid_is_pid): Remove.
4863 * common/ptid.h (ptid_is_pid): Don't declare.
4864 * infrun.c: Update.
4865 * linux-nat.c: Update.
4866 * mi/mi-interp.c: Update.
4867 * remote.c: Update.
4868 * thread.c: Update.
4869
cc6bcb54
TT
48702018-07-03 Tom Tromey <tom@tromey.com>
4871
4872 * common/ptid.c (ptid_get_tid): Remove.
4873 * common/ptid.h (ptid_get_tid): Don't declare.
4874 * ada-tasks.c: Update.
4875 * aix-thread.c: Update.
4876 * bsd-uthread.c: Update.
4877 * darwin-nat.c: Update.
4878 * fbsd-nat.c: Update.
4879 * i386-darwin-nat.c: Update.
4880 * infrun.c: Update.
4881 * linux-tdep.c: Update.
4882 * nto-procfs.c: Update.
4883 * ppc-ravenscar-thread.c: Update.
4884 * python/py-infthread.c: Update.
4885 * ravenscar-thread.c: Update.
4886 * sol-thread.c: Update.
4887 * sparc-ravenscar-thread.c: Update.
4888 * windows-nat.c: Update.
4889
e38504b3
TT
48902018-07-03 Tom Tromey <tom@tromey.com>
4891
4892 * common/ptid.c (ptid_get_lwp): Remove.
4893 * common/ptid.h (ptid_get_lwp): Don't declare.
4894 * aarch64-linux-nat.c: Update.
4895 * ada-tasks.c: Update.
4896 * aix-thread.c: Update.
4897 * amd64-linux-nat.c: Update.
4898 * arm-linux-nat.c: Update.
4899 * corelow.c: Update.
4900 * fbsd-nat.c: Update.
4901 * fbsd-tdep.c: Update.
4902 * gnu-nat.c: Update.
4903 * i386-cygwin-tdep.c: Update.
4904 * i386-gnu-nat.c: Update.
4905 * i386-linux-nat.c: Update.
4906 * ia64-linux-nat.c: Update.
4907 * inf-ptrace.c: Update.
4908 * infrun.c: Update.
4909 * linux-fork.c: Update.
4910 * linux-nat.c: Update.
4911 * linux-tdep.c: Update.
4912 * linux-thread-db.c: Update.
4913 * mips-linux-nat.c: Update.
4914 * nat/aarch64-linux-hw-point.c: Update.
4915 * nat/aarch64-linux.c: Update.
4916 * nat/linux-btrace.c: Update.
4917 * nat/linux-osdata.c: Update.
4918 * nat/linux-procfs.c: Update.
4919 * nat/x86-linux-dregs.c: Update.
4920 * obsd-nat.c: Update.
4921 * ppc-fbsd-nat.c: Update.
4922 * ppc-linux-nat.c: Update.
4923 * procfs.c: Update.
4924 * python/py-infthread.c: Update.
4925 * ravenscar-thread.c: Update.
4926 * remote.c: Update.
4927 * s390-linux-nat.c: Update.
4928 * sol-thread.c: Update.
4929 * sol2-tdep.c: Update.
4930 * spu-linux-nat.c: Update.
4931 * x86-linux-nat.c: Update.
4932 * xtensa-linux-nat.c: Update.
4933
e99b03dc
TT
49342018-07-03 Tom Tromey <tom@tromey.com>
4935
4936 * common/ptid.c (ptid_get_pid): Remove.
4937 * common/ptid.h (ptid_get_pid): Don't declare.
4938 * aarch64-linux-nat.c: Update.
4939 * ada-lang.c: Update.
4940 * aix-thread.c: Update.
4941 * alpha-bsd-nat.c: Update.
4942 * amd64-fbsd-nat.c: Update.
4943 * amd64-linux-nat.c: Update.
4944 * arm-linux-nat.c: Update.
4945 * arm-nbsd-nat.c: Update.
4946 * auxv.c: Update.
4947 * break-catch-syscall.c: Update.
4948 * breakpoint.c: Update.
4949 * bsd-uthread.c: Update.
4950 * corelow.c: Update.
4951 * ctf.c: Update.
4952 * darwin-nat.c: Update.
4953 * fbsd-nat.c: Update.
4954 * fbsd-tdep.c: Update.
4955 * gcore.c: Update.
4956 * gnu-nat.c: Update.
4957 * hppa-nbsd-nat.c: Update.
4958 * hppa-obsd-nat.c: Update.
4959 * i386-fbsd-nat.c: Update.
4960 * ia64-linux-nat.c: Update.
4961 * inf-ptrace.c: Update.
4962 * infcmd.c: Update.
4963 * inferior.c: Update.
4964 * inferior.h: Update.
4965 * inflow.c: Update.
4966 * infrun.c: Update.
4967 * linux-fork.c: Update.
4968 * linux-nat.c: Update.
4969 * linux-tdep.c: Update.
4970 * linux-thread-db.c: Update.
4971 * m68k-bsd-nat.c: Update.
4972 * mi/mi-interp.c: Update.
4973 * mi/mi-main.c: Update.
4974 * mips-linux-nat.c: Update.
4975 * mips-nbsd-nat.c: Update.
4976 * mips64-obsd-nat.c: Update.
4977 * nat/aarch64-linux-hw-point.c: Update.
4978 * nat/aarch64-linux.c: Update.
4979 * nat/linux-btrace.c: Update.
4980 * nat/linux-osdata.c: Update.
4981 * nat/linux-procfs.c: Update.
4982 * nat/x86-linux-dregs.c: Update.
4983 * nto-procfs.c: Update.
4984 * obsd-nat.c: Update.
4985 * ppc-linux-nat.c: Update.
4986 * ppc-nbsd-nat.c: Update.
4987 * ppc-obsd-nat.c: Update.
4988 * proc-service.c: Update.
4989 * procfs.c: Update.
4990 * python/py-inferior.c: Update.
4991 * python/py-infthread.c: Update.
4992 * ravenscar-thread.c: Update.
4993 * record.c: Update.
4994 * remote-sim.c: Update.
4995 * remote.c: Update.
4996 * rs6000-nat.c: Update.
4997 * s390-linux-nat.c: Update.
4998 * sh-nbsd-nat.c: Update.
4999 * sol-thread.c: Update.
5000 * sparc-nat.c: Update.
5001 * sparc64-tdep.c: Update.
5002 * spu-linux-nat.c: Update.
5003 * spu-tdep.c: Update.
5004 * target-debug.h: Update.
5005 * target.c: Update.
5006 * thread.c: Update.
5007 * tid-parse.c: Update.
5008 * tracefile-tfile.c: Update.
5009 * vax-bsd-nat.c: Update.
5010 * windows-nat.c: Update.
5011 * x86-linux-nat.c: Update.
5012 * x86-nat.c: Update.
5013
f2907e49
TT
50142018-07-03 Tom Tromey <tom@tromey.com>
5015
5016 * common/ptid.c (pid_to_ptid): Remove.
5017 * common/ptid.h (pid_to_ptid): Don't declare.
5018 * aix-thread.c: Update.
5019 * arm-linux-nat.c: Update.
5020 * common/ptid.c: Update.
5021 * common/ptid.h: Update.
5022 * corelow.c: Update.
5023 * ctf.c: Update.
5024 * darwin-nat.c: Update.
5025 * fbsd-nat.c: Update.
5026 * fork-child.c: Update.
5027 * gnu-nat.c: Update.
5028 * go32-nat.c: Update.
5029 * inf-ptrace.c: Update.
5030 * infcmd.c: Update.
5031 * inferior.c: Update.
5032 * infrun.c: Update.
5033 * linux-fork.c: Update.
5034 * linux-nat.c: Update.
5035 * nat/aarch64-linux-hw-point.c: Update.
5036 * nat/fork-inferior.c: Update.
5037 * nat/x86-linux-dregs.c: Update.
5038 * nto-procfs.c: Update.
5039 * obsd-nat.c: Update.
5040 * procfs.c: Update.
5041 * progspace.c: Update.
5042 * remote.c: Update.
5043 * rs6000-nat.c: Update.
5044 * s390-linux-nat.c: Update.
5045 * sol-thread.c: Update.
5046 * spu-linux-nat.c: Update.
5047 * target.c: Update.
5048 * top.c: Update.
5049 * tracefile-tfile.c: Update.
5050 * windows-nat.c: Update.
5051
fd79271b
TT
50522018-07-03 Tom Tromey <tom@tromey.com>
5053
5054 * common/ptid.h (ptid_build): Don't declare.
5055 * common/ptid.c (ptid_build): Remove.
5056 * aix-thread.c: Update.
5057 * bsd-kvm.c: Update.
5058 * bsd-uthread.c: Update.
5059 * common/agent.c: Update.
5060 * common/ptid.c: Update.
5061 * common/ptid.h: Update.
5062 * corelow.c: Update.
5063 * darwin-nat.c: Update.
5064 * fbsd-nat.c: Update.
5065 * gnu-nat.c: Update.
5066 * linux-fork.c: Update.
5067 * linux-nat.c: Update.
5068 * linux-thread-db.c: Update.
5069 * nat/linux-osdata.c: Update.
5070 * nat/linux-procfs.c: Update.
5071 * nto-procfs.c: Update.
5072 * obsd-nat.c: Update.
5073 * proc-service.c: Update.
5074 * procfs.c: Update.
5075 * ravenscar-thread.c: Update.
5076 * remote-sim.c: Update.
5077 * remote.c: Update.
5078 * sol-thread.c: Update.
5079 * target.c: Update.
5080 * windows-nat.c: Update.
5081
057302ce
TT
50822018-07-03 Tom Tromey <tom@tromey.com>
5083
5084 * infrun.c (follow_exec): Use exit_inferior_silent.
5085 * inferior.c (exit_inferior_num_silent): Remove.
5086 * inferior.h (exit_inferior_num_silent): Don't declare.
5087
a50c11c6
TT
50882018-07-03 Tom Tromey <tom@tromey.com>
5089
5090 PR cli/23340:
5091 * darwin-nat.c (darwin_attach_pid): Reset inferior and
5092 inferior_ptid on error.
5093
471b9d15
MR
50942018-07-02 Maciej W. Rozycki <macro@mips.com>
5095 Simon Marchi <simon.marchi@polymtl.ca>
5096
5097 PR tdep/8282
5098 * disasm.h (gdb_disassembler): Add
5099 `m_disassembler_options_holder'. member
5100 * disasm.c (get_all_disassembler_options): New function.
5101 (gdb_disassembler::gdb_disassembler): Use it.
5102 (gdb_buffered_insn_length_init_dis): Likewise.
5103 (gdb_buffered_insn_length): Adjust accordingly.
5104 (set_disassembler_options): Handle options with arguments.
5105 (show_disassembler_options_sfunc): Likewise. Add a leading new
5106 line if showing options with descriptions.
5107 (disassembler_options_completer): Adapt to using the
5108 `disasm_options_and_args_t' structure.
5109 * mips-tdep.c (mips_disassembler_options): New variable.
5110 (mips_disassembler_options_o32): Likewise.
5111 (mips_disassembler_options_n32): Likewise.
5112 (mips_disassembler_options_n64): Likewise.
5113 (gdb_print_insn_mips): Don't set `disassembler_options'.
5114 (gdb_print_insn_mips_n32, gdb_print_insn_mips_n64): Remove
5115 functions.
5116 (mips_gdbarch_init): Always set `gdbarch_print_insn' to
5117 `gdb_print_insn_mips'. Set `gdbarch_disassembler_options',
5118 `gdbarch_disassembler_options_implicit' and
5119 `gdbarch_valid_disassembler_options'.
5120 * arm-tdep.c (_initialize_arm_tdep): Adapt to using the
5121 `disasm_options_and_args_t' structure.
5122 * gdbarch.sh (disassembler_options_implicit): New `gdbarch'
5123 method.
5124 (valid_disassembler_options): Switch from `disasm_options_t' to
5125 the `disasm_options_and_args_t' structure.
5126 * NEWS: Document `set disassembler-options' support for the MIPS
5127 target.
5128 * gdbarch.h: Regenerate.
5129 * gdbarch.c: Regenerate.
5130
41823f29
SH
51312018-07-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
5132
5133 * riscv-tdep.c (riscv_register_aliases): Swap "fp" and "s0" entries.
5134
41206e32
JB
51352018-06-29 Joel Brobecker <brobecker@adacore.com>
5136
5137 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Add missing
5138 parameter in call to amd64_target_description.
5139 * amd64-dicos-tdep.c (amd64_dicos_init_abi): Likewise.
5140 * amd64-fbsd-tdep.c (amd64fbsd_core_read_description)
5141 (amd64fbsd_init_abi): Likewise.
5142 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
5143 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
5144 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
5145 * amd64-fbsd-nat.c (amd64_fbsd_nat_target): Likewise.
5146
de52b960
PA
51472018-06-29 Pedro Alves <palves@redhat.com>
5148
5149 * gdb/amd64-tdep.h (amd64_create_target_description): Add
5150 "segments" parameter.
5151 * gdb/amd64-tdep.c (amd64_none_init_abi, amd64_x32_none_init_abi)
5152 (_initialize_amd64_tdep): Update call to
5153 amd64_create_target_description.
5154 (amd64_target_description): Add "segments" parameter. Adjust
5155 the implementation to use it.
5156 * gdb/amd64-linux-tdep.c (amd64_linux_read_description): Update
5157 call to amd64_create_target_description.
5158 * gdb/amd64-windows-tdep.c (amd64_windows_init_abi): Likewise.
5159 * gdb/arch/amd64.h (amd64_create_target_description): Add
5160 "segments" register.
5161 * gdb/arch/amd64.c (amd64_create_target_description): Add
5162 "segments" parameter. Call create_feature_i386_64bit_segments
5163 only if SEGMENTS is true.
5164 * gdb/gdbserver/win32-i386-low.c (i386_arch_setup): Update
5165 call to amd64_create_target_description.
5166
75acb486
PA
51672018-06-29 Pedro Alves <palves@redhat.com>
5168
5169 * thread.c (thread_target_id_str): New, factored out from ...
5170 (print_thread_info_1): ... here. Use it to compute the max
5171 "Target Id" column width.
5172
c76a8ea3
PA
51732018-06-29 Pedro Alves <palves@redhat.com>
5174
5175 * remote.c (remote_target::extra_thread_info): Delete
5176 'display_buf' and 'n' locals. from the cache, regardless of
5177 packet mechanims is in use. Use cache for qThreadExtra and qP
5178 methods too.
5179
cd2bb709
PA
51802018-06-29 Pedro Alves <palves@redhat.com>
5181
5182 * blockframe.c (find_pc_sect_containing_function): New function.
5183 * breakpoint.c (print_breakpoint_location): Don't call
5184 find_pc_sect_function.
5185 * linespec.c (create_sals_line_offset): Record the location's
5186 symbol in the sal.
5187 * linespec.c (convert_address_location_to_sals): Fill in sal's
5188 symbol with find_pc_sect_containing_function.
5189 * symtab.c (find_function_start_sal): Rename to ...
5190 (find_function_start_sal_1): ... this.
5191 (find_function_start_sal): Reimplement as wrapper around
5192 find_function_start_sal_1, and use
5193 find_pc_sect_containing_function to fill in the sal's symbol.
5194 (find_function_start_sal(symbol*, bool)): Adjust.
5195 * symtab.h (find_pc_function, find_pc_sect_function): Adjust
5196 comments.
5197 (find_pc_sect_containing_function): Declare.
5198
991ff292
PA
51992018-06-29 Pedro Alves <palves@redhat.com>
5200
5201 * inline-frame.c (stopped_by_user_bp_inline_frame): Return
5202 true if the the location has no symbol.
5203
44cee4fd
TT
52042018-06-28 Tom Tromey <tom@tromey.com>
5205
5206 * NEWS: Mention --enable-codesign.
5207 * silent-rules.mk (ECHO_SIGN): New variable.
5208 * configure.ac: Add --enable-codesign.
5209 * configure: Rebuild.
5210 * Makefile.in (CODESIGN, CODESIGN_CERT): New variables.
5211 (gdb$(EXEEXT)): Optionally invoke codesign.
5212
f2ffa92b
PA
52132018-06-28 Pedro Alves <palves@redhat.com>
5214
5215 * gdbthread.h (struct thread_suspend_state) <stop_pc>: Extend
5216 comments.
5217 (switch_to_thread_no_regs): Adjust comment.
5218 * infcmd.c (stop_pc): Delete.
5219 (post_create_inferior, info_program_command): Replace references
5220 to stop_pc with references to thread_info->suspend.stop_pc.
5221 * inferior.h (stop_pc): Delete declaration.
5222 * infrun.c (proceed, handle_syscall_event, fill_in_stop_func)
5223 (handle_inferior_event_1, handle_signal_stop)
5224 (process_event_stop_test, keep_going_stepped_thread)
5225 (handle_step_into_function, handle_step_into_function_backward)
5226 (print_stop_location): Replace references to stop_pc with
5227 references to thread_info->suspend.stop_pc.
5228 (struct infcall_suspend_state) <stop_pc>: Delete field.
5229 (save_infcall_suspend_state, restore_infcall_suspend_state):
5230 Remove references to inf_stat->stop_pc.
5231 * linux-fork.c (fork_load_infrun_state): Likewise.
5232 * record-btrace.c (record_btrace_set_replay): Likewise.
5233 * record-full.c (record_full_goto_entry): Likewise.
5234 * remote.c (print_one_stopped_thread): Likewise.
5235 * target.c (target_resume): Extend comment.
5236 * thread.c (set_executing_thread): New.
5237 (set_executing): Use it.
5238 (switch_to_thread_no_regs, switch_to_no_thread, switch_to_thread):
5239 Remove references to stop_pc.
5240
ecdc3a72
PA
52412018-06-28 Pedro Alves <palves@redhat.com>
5242
5243 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>:
5244 Moving fetching stop_pc until after ecs->event_thread is refreshed.
5245
d95d3aef
TT
52462018-06-28 Tom Tromey <tom@tromey.com>
5247
5248 * coffread.c (coff_symfile_finish): Update.
5249 * xcoffread.c (xcoff_symfile_finish): Update.
5250 * elfread.c (elf_symfile_finish): Update.
5251 * symfile.h (dwarf2_free_objfile): Don't declare.
5252 * dwarf2read.c (_initialize_dwarf2_read): Use
5253 register_objfile_data_with_cleanup.
5254 (dwarf2_free_objfile): Now static. Change signature.
5255
291f9a96
PT
52562018-06-28 Petr Tesarik <ptesarik@suse.cz>
5257
5258 * symfile.c (add_symbol_file_command, _initialize_symfile): Add
5259 option "-o" to add-symbol-file-load to add an offset to each
5260 section's load address.
5261 * symfile.c (set_objfile_default_section_offset): New function.
5262
d81a3eaf
PT
52632018-06-28 Petr Tesarik <ptesarik@suse.cz>
5264
5265 * symfile.c (add_symbol_file_command): Make sure that sections
5266 with the same name are sorted in the same order.
5267
ed6dfe51
PT
52682018-06-28 Petr Tesarik <ptesarik@suse.cz>
5269
5270 * symfile.c (add_symbol_file_command, _initialize_symfile): Do not
5271 require the second argument. If omitted, load sections at the
5272 addresses specified in the file.
5273
d4d429d5
PT
52742018-06-28 Petr Tesarik <ptesarik@suse.cz>
5275
5276 * symfile.c (symbol_file_command, symbol_file_add_main_1)
5277 (_initialize_symfile): Add option "-o" to symbol-file to add an
5278 offset to each section of the symbol file.
5279
39b27ab6
PT
52802018-06-28 Petr Tesarik <ptesarik@suse.cz>
5281
5282 * MAINTAINERS (Write After Approval): Add Petr Tesarik.
5283
41827fc3
TT
52842018-06-27 Tom Tromey <tom@tromey.com>
5285
5286 * stack.c (_initialize_stack): Update "func" help text.
5287
0c6aef22
TT
52882018-06-27 Tom Tromey <tom@tromey.com>
5289
5290 * python/py-unwind.c (unwind_info_object) <saved_regs>: Now a
5291 std::vector.
5292 (unwind_infopy_str, pyuw_create_unwind_info)
5293 (unwind_infopy_add_saved_register, pyuw_sniffer)
5294 (unwind_infopy_dealloc, unwind_infopy_add_saved_register):
5295 Update.
5296 (struct saved_reg): Add constructor.
5297 <value>: Now a gdbpy_ref<>.
5298
63177289
TT
52992018-06-27 Tom Tromey <tom@tromey.com>
5300
5301 * machoread.c (macho_symfile_read): Define "symbol_table" earlier.
5302
e76f78a0
SM
53032018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5304
5305 * gdb-gdb.py.in: Format using autopep8.
5306
9a14af7b
SM
53072018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5308
5309 * gdb-gdb.py.in (CoreAddrPrettyPrinter): New class.
5310 (type_lookup_function): Recognize CORE_ADDR values.
5311
189366cd
SM
53122018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5313
5314 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <to_string>: Don't
5315 print tag_name.
5316
68ad5fb9
SM
53172018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5318
5319 * gdb-gdb.py.in (TypeFlag) <__cmp__>: Remove.
5320 <__lt__>: Add.
5321
141ec9f6
SM
53222018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5323
5324 * gdb-gdb.py: Move to...
5325 * gdb-gdb.py.in: ... here.
5326 * configure.ac (AC_CONFIG_FILES): Add gdb-gdb.py.
5327 * Makefile.in (all): Add gdb-gdb.gdb and gdb-gdb.py as
5328 dependencies.
5329 (distclean): Remove gdb-gdb.py when cleaning.
5330 (gdb-gdb.py, gdb-gdb.gdb): New rules.
5331 * configure: Re-generate.
5332
4c4e7ad4
PA
53332018-06-27 Pedro Alves <palves@redhat.com>
5334
5335 * proc-service.c (get_ps_regcache): New.
5336 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
5337 (ps_lsetfpregs): Use it.
5338
7ab6656f
OJ
53392018-06-27 Omair Javaid <omair.javaid@linaro.org>
5340
5341 PR gdb/21695
5342 * dwarf2read.c (lnp_state_machine::check_line_address): Update declaration.
5343 (dwarf_decode_lines_1): Adjust.
5344
bd583225
SM
53452018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5346
5347 * fbsd-nat.h (class fbsd_nat_target) <find_memory_regions>: Add
5348 override.
5349 <info_proc>: Likewise.
5350
9a325b7b
JB
53512018-06-26 Joel Brobecker <brobecker@adacore.com>
5352
5353 * windows-nat.c (do_windows_fetch_inferior_registers): Rename
5354 to windows_fetch_one_register, and only handle the case of
5355 fetching one register. Move the code that reloads the context
5356 and iterates over all registers if R is negative to...
5357 (windows_nat_target::fetch_registers): ... here.
5358 (do_windows_store_inferior_registers): Rename to
5359 windows_store_one_register, and only handle the case of storing
5360 one register. Move the code that handles the case where r is
5361 negative to...
5362 (windows_nat_target::store_registers) ... here.
5363
a33ccfc7
TT
53642018-06-26 Tom Tromey <tom@tromey.com>
5365
5366 PR rust/22574:
5367 * typeprint.c (whatis_exp): Allow ptype/o for Rust.
5368 * rust-lang.c (rust_print_struct_def): Add podata parameter.
5369 Update.
5370 (rust_internal_print_type): Add podata parameter.
5371 (rust_print_type): Update.
5372
e0c547d1
TT
53732018-06-26 Tom Tromey <tom@tromey.com>
5374
5375 * typeprint.h (struct print_offset_data) <update, finish,
5376 maybe_print_hole>: New methods.
5377 <indentation>: New constant.
5378 * typeprint.c (print_offset_data::indentation): Define.
5379 (print_offset_data::maybe_print_hole, print_offset_data::update)
5380 (print_offset_data::finish): Move from c-typeprint.c and rename.
5381 * c-typeprint.c (OFFSET_SPC_LEN): Remove.
5382 (print_spaces_filtered_with_print_options): Update.
5383 (c_print_type_union_field_offset, maybe_print_hole)
5384 (c_print_type_struct_field_offset): Move to typeprint.c and
5385 rename.
5386 (c_type_print_base_struct_union): Update.
5387
75cbc781
PA
53882018-06-25 Pedro Alves <palves@redhat.com>
5389
5390 * gdbthread.h (thread_info_ref, delete_thread)
5391 (delete_thread_silent, first_thread_of_inferior)
5392 (any_thread_of_inferior, switch_to_thread)
5393 (enable_thread_stack_temporaries)
5394 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
5395 (get_last_thread_stack_temporary)
5396 (value_in_thread_stack_temporaries, can_access_registers_thread):
5397 Spell out "struct thread_info" instead of just "thread_info".
5398 * inferior.h (notice_new_inferior): Likewise.
5399
b7a08269
PA
54002018-06-25 Pedro Alves <palves@redhat.com>
5401
5402 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
5403 pass thread_info pointer to delete_thread.
5404 (windows_nat_target::detach): Pass inferior pointer to
5405 detach_inferior.
5406 * aix-thread.c (sync_threadlists): Pass thread_info pointer to
5407 delete_thread.
5408 * bsd-kvm.c (bsd_kvm_target::close): Use discard_all_inferiors.
5409 * darwin-nat.c (darwin_check_new_threads): Use find_thread_ptid
5410 and pass a thread_info pointer to delete_thread.
5411 * fbsd-nat.c (fbsd_nat_target::wait): Use find_thread_ptid and
5412 pass thread_info pointer to delete_thread.
5413 * go32-nat.c (go32_nat_target::mourn_inferior): Remove
5414 delete_thread_silent call.
5415 * procfs.c (procfs_target::detach): Pass inferior pointer to
5416 detach_inferior.
5417 (procfs_target::wait): Pass thread_info pointer to delete_thread.
5418 * remote-sim.c (gdbsim_target::mourn_inferior): Remove
5419 delete_thread_silent call.
5420 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
5421 pass thread_info pointer to delete_thread.
5422 (windows_nat_target::detach): Pass inferior pointer to
5423 delete_inferior.
5424
8e7767e3
AH
54252018-06-22 Alan Hayward <alan.hayward@arm.com>
5426
5427 * regcache.c (readable_regcache::read_part): Fix asserts.
5428 (reg_buffer::raw_collect_part): New function.
5429 (regcache::write_part): Fix asserts.
5430 (reg_buffer::raw_supply_part): New function.
5431 (regcache::transfer_regset_register): New helper function.
5432 (regcache::transfer_regset): Call new functions.
5433 (regcache_supply_regset): Use gdb_byte*.
5434 (regcache::supply_regset): Likewise.
5435 (regcache_collect_regset): Likewise.
5436 (regcache::collect_regset): Likewise.
5437 * regcache.h (reg_buffer::raw_collect_part): New declaration.
5438 (reg_buffer::raw_supply_part): Likewise.
5439 (regcache::transfer_regset_register): Likewise.
5440 (regcache::transfer_regset): Use gdb_byte*.
5441
bfd60e34
AH
54422018-06-22 Alan Hayward <alan.hayward@arm.com>
5443
5444 * nat/aarch64-sve-linux-ptrace.h (HAS_SVE_STATE): Use &.
5445
00431a78
PA
54462018-06-21 Pedro Alves <palves@redhat.com>
5447
5448 * ada-lang.h (ada_get_task_number): Take a thread_info pointer
5449 instead of a ptid_t. All callers adjusted.
5450 * ada-tasks.c (ada_get_task_number): Likewise. All callers
5451 adjusted.
5452 (print_ada_task_info, display_current_task_id, task_command_1):
5453 Adjust.
5454 * breakpoint.c (watchpoint_in_thread_scope): Adjust to use
5455 inferior_thread.
5456 (breakpoint_kind): Adjust.
5457 (remove_breakpoints_pid): Rename to ...
5458 (remove_breakpoints_inf): ... this. Adjust to take an inferior
5459 pointer. All callers adjusted.
5460 (bpstat_clear_actions): Use inferior_thread.
5461 (get_bpstat_thread): New.
5462 (bpstat_do_actions): Use it.
5463 (bpstat_check_breakpoint_conditions, bpstat_stop_status): Adjust
5464 to take a thread_info pointer. All callers adjusted.
5465 (set_longjmp_breakpoint_for_call_dummy, set_momentary_breakpoint)
5466 (breakpoint_re_set_thread): Use inferior_thread.
5467 * breakpoint.h (struct inferior): Forward declare.
5468 (bpstat_stop_status): Update.
5469 (remove_breakpoints_pid): Delete.
5470 (remove_breakpoints_inf): New.
5471 * bsd-uthread.c (bsd_uthread_target::wait)
5472 (bsd_uthread_target::update_thread_list): Use find_thread_ptid.
5473 * btrace.c (btrace_add_pc, btrace_enable, btrace_fetch)
5474 (maint_btrace_packet_history_cmd)
5475 (maint_btrace_clear_packet_history_cmd): Adjust.
5476 (maint_btrace_clear_cmd, maint_info_btrace_cmd): Adjust to use
5477 inferior_thread.
5478 * cli/cli-interp.c: Include "inferior.h".
5479 * common/refcounted-object.h (struct
5480 refcounted_object_ref_policy): New.
5481 * compile/compile-object-load.c: Include gdbthread.h.
5482 (store_regs): Use inferior_thread.
5483 * corelow.c (core_target::close): Use current_inferior.
5484 (core_target_open): Adjust to use first_thread_of_inferior and use
5485 the current inferior.
5486 * ctf.c (ctf_target::close): Adjust to use current_inferior.
5487 * dummy-frame.c (dummy_frame_id) <ptid>: Delete, replaced by ...
5488 <thread>: ... this new field. All references adjusted.
5489 (dummy_frame_pop, dummy_frame_discard, register_dummy_frame_dtor):
5490 Take a thread_info pointer instead of a ptid_t.
5491 * dummy-frame.h (dummy_frame_push, dummy_frame_pop)
5492 (dummy_frame_discard, register_dummy_frame_dtor): Take a
5493 thread_info pointer instead of a ptid_t.
5494 * elfread.c: Include "inferior.h".
5495 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop):
5496 Use inferior_thread.
5497 * eval.c (evaluate_subexp): Likewise.
5498 * frame.c (frame_pop, has_stack_frames, find_frame_sal): Use
5499 inferior_thread.
5500 * gdb_proc_service.h (struct thread_info): Forward declare.
5501 (struct ps_prochandle) <ptid>: Delete, replaced by ...
5502 <thread>: ... this new field. All references adjusted.
5503 * gdbarch.h, gdbarch.c: Regenerate.
5504 * gdbarch.sh (get_syscall_number): Replace 'ptid' parameter with a
5505 'thread' parameter. All implementations and callers adjusted.
5506 * gdbthread.h (thread_info) <set_running>: New method.
5507 (delete_thread, delete_thread_silent): Take a thread_info pointer
5508 instead of a ptid.
5509 (global_thread_id_to_ptid, ptid_to_global_thread_id): Delete.
5510 (first_thread_of_process): Delete, replaced by ...
5511 (first_thread_of_inferior): ... this new function. All callers
5512 adjusted.
5513 (any_live_thread_of_process): Delete, replaced by ...
5514 (any_live_thread_of_inferior): ... this new function. All callers
5515 adjusted.
5516 (switch_to_thread, switch_to_no_thread): Declare.
5517 (is_executing): Delete.
5518 (enable_thread_stack_temporaries): Update comment.
5519 <enable_thread_stack_temporaries>: Take a thread_info pointer
5520 instead of a ptid_t. Incref the thread.
5521 <~enable_thread_stack_temporaries>: Decref the thread.
5522 <m_ptid>: Delete
5523 <m_thr>: New.
5524 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
5525 (get_last_thread_stack_temporary)
5526 (value_in_thread_stack_temporaries, can_access_registers_thread):
5527 Take a thread_info pointer instead of a ptid_t. All callers
5528 adjusted.
5529 * infcall.c (get_call_return_value): Use inferior_thread.
5530 (run_inferior_call): Work with thread pointers instead of ptid_t.
5531 (call_function_by_hand_dummy): Work with thread pointers instead
5532 of ptid_t. Use thread_info_ref.
5533 * infcmd.c (proceed_thread_callback): Access thread's state
5534 directly.
5535 (ensure_valid_thread, ensure_not_running): Use inferior_thread,
5536 access thread's state directly.
5537 (continue_command): Use inferior_thread.
5538 (info_program_command): Use find_thread_ptid and access thread
5539 state directly.
5540 (proceed_after_attach_callback): Use thread state directly.
5541 (notice_new_inferior): Take a thread_info pointer instead of a
5542 ptid_t. All callers adjusted.
5543 (exit_inferior): Take an inferior pointer instead of a pid. All
5544 callers adjusted.
5545 (exit_inferior_silent): New.
5546 (detach_inferior): Delete.
5547 (valid_gdb_inferior_id, pid_to_gdb_inferior_id)
5548 (gdb_inferior_id_to_pid, in_inferior_list): Delete.
5549 (detach_inferior_command, kill_inferior_command): Use
5550 find_inferior_id instead of valid_gdb_inferior_id and
5551 gdb_inferior_id_to_pid.
5552 (inferior_command): Use inferior and thread pointers.
5553 * inferior.h (struct thread_info): Forward declare.
5554 (notice_new_inferior): Take a thread_info pointer instead of a
5555 ptid_t. All callers adjusted.
5556 (detach_inferior): Delete declaration.
5557 (exit_inferior, exit_inferior_silent): Take an inferior pointer
5558 instead of a pid. All callers adjusted.
5559 (gdb_inferior_id_to_pid, pid_to_gdb_inferior_id, in_inferior_list)
5560 (valid_gdb_inferior_id): Delete.
5561 * infrun.c (follow_fork_inferior, proceed_after_vfork_done)
5562 (handle_vfork_child_exec_or_exit, follow_exec): Adjust.
5563 (struct displaced_step_inferior_state) <pid>: Delete, replaced by
5564 ...
5565 <inf>: ... this new field.
5566 <step_ptid>: Delete, replaced by ...
5567 <step_thread>: ... this new field.
5568 (get_displaced_stepping_state): Take an inferior pointer instead
5569 of a pid. All callers adjusted.
5570 (displaced_step_in_progress_any_inferior): Adjust.
5571 (displaced_step_in_progress_thread): Take a thread pointer instead
5572 of a ptid_t. All callers adjusted.
5573 (displaced_step_in_progress, add_displaced_stepping_state): Take
5574 an inferior pointer instead of a pid. All callers adjusted.
5575 (get_displaced_step_closure_by_addr): Adjust.
5576 (remove_displaced_stepping_state): Take an inferior pointer
5577 instead of a pid. All callers adjusted.
5578 (displaced_step_prepare_throw, displaced_step_prepare)
5579 (displaced_step_fixup): Take a thread pointer instead of a ptid_t.
5580 All callers adjusted.
5581 (start_step_over): Adjust.
5582 (infrun_thread_ptid_changed): Remove bit updating ptids in the
5583 displaced step queue.
5584 (do_target_resume): Adjust.
5585 (fetch_inferior_event): Use inferior_thread.
5586 (context_switch, get_inferior_stop_soon): Take an
5587 execution_control_state pointer instead of a ptid_t. All callers
5588 adjusted.
5589 (switch_to_thread_cleanup): Delete.
5590 (stop_all_threads): Use scoped_restore_current_thread.
5591 * inline-frame.c: Include "gdbthread.h".
5592 (inline_state) <inline_state>: Take a thread pointer instead of a
5593 ptid_t. All callers adjusted.
5594 <ptid>: Delete, replaced by ...
5595 <thread>: ... this new field.
5596 (find_inline_frame_state): Take a thread pointer instead of a
5597 ptid_t. All callers adjusted.
5598 (skip_inline_frames, step_into_inline_frame)
5599 (inline_skipped_frames, inline_skipped_symbol): Take a thread
5600 pointer instead of a ptid_t. All callers adjusted.
5601 * inline-frame.h (skip_inline_frames, step_into_inline_frame)
5602 (inline_skipped_frames, inline_skipped_symbol): Likewise.
5603 * linux-fork.c (delete_checkpoint_command): Adjust to use thread
5604 pointers directly.
5605 * linux-nat.c (get_detach_signal): Likewise.
5606 * linux-thread-db.c (thread_from_lwp): New 'stopped' parameter.
5607 (thread_db_notice_clone): Adjust.
5608 (thread_db_find_new_threads_silently)
5609 (thread_db_find_new_threads_2, thread_db_find_new_threads_1): Take
5610 a thread pointer instead of a ptid_t. All callers adjusted.
5611 * mi/mi-cmd-var.c: Include "inferior.h".
5612 (mi_cmd_var_update_iter): Update to use thread pointers.
5613 * mi/mi-interp.c (mi_new_thread): Update to use the thread's
5614 inferior directly.
5615 (mi_output_running_pid, mi_inferior_count): Delete, bits factored
5616 out to ...
5617 (mi_output_running): ... this new function.
5618 (mi_on_resume_1): Adjust to use it.
5619 (mi_user_selected_context_changed): Adjust to use inferior_thread.
5620 * mi/mi-main.c (proceed_thread): Adjust to use thread pointers
5621 directly.
5622 (interrupt_thread_callback): : Adjust to use thread and inferior
5623 pointers.
5624 * proc-service.c: Include "gdbthread.h".
5625 (ps_pglobal_lookup): Adjust to use the thread's inferior directly.
5626 * progspace-and-thread.c: Include "inferior.h".
5627 * progspace.c: Include "inferior.h".
5628 * python/py-exitedevent.c (create_exited_event_object): Adjust to
5629 hold a reference to an inferior_object.
5630 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust to use
5631 inferior_thread.
5632 * python/py-inferior.c (struct inferior_object): Give the type a
5633 tag name instead of a typedef.
5634 (python_on_normal_stop): No need to check if the current thread is
5635 listed.
5636 (inferior_to_inferior_object): Change return type to
5637 inferior_object. All callers adjusted.
5638 (find_thread_object): Delete, bits factored out to ...
5639 (thread_to_thread_object): ... this new function.
5640 * python/py-infthread.c (create_thread_object): Use
5641 inferior_to_inferior_object.
5642 (thpy_is_stopped): Use thread pointer directly.
5643 (gdbpy_selected_thread): Use inferior_thread.
5644 * python/py-record-btrace.c (btpy_list_object) <ptid>: Delete
5645 field, replaced with ...
5646 <thread>: ... this new field. All users adjusted.
5647 (btpy_insn_or_gap_new): Drop const.
5648 (btpy_list_new): Take a thread pointer instead of a ptid_t. All
5649 callers adjusted.
5650 * python/py-record.c: Include "gdbthread.h".
5651 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
5652 a ptid_t. All callers adjusted.
5653 (gdbpy_current_recording): Use inferior_thread.
5654 * python/py-record.h (recpy_record_object) <ptid>: Delete
5655 field, replaced with ...
5656 <thread>: ... this new field. All users adjusted.
5657 (recpy_element_object) <ptid>: Delete
5658 field, replaced with ...
5659 <thread>: ... this new field. All users adjusted.
5660 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
5661 a ptid_t. All callers adjusted.
5662 * python/py-threadevent.c: Include "gdbthread.h".
5663 (get_event_thread): Use thread_to_thread_object.
5664 * python/python-internal.h (struct inferior_object): Forward
5665 declare.
5666 (find_thread_object, find_inferior_object): Delete declarations.
5667 (thread_to_thread_object, inferior_to_inferior_object): New
5668 declarations.
5669 * record-btrace.c: Include "inferior.h".
5670 (require_btrace_thread): Use inferior_thread.
5671 (record_btrace_frame_sniffer)
5672 (record_btrace_tailcall_frame_sniffer): Use inferior_thread.
5673 (get_thread_current_frame): Use scoped_restore_current_thread and
5674 switch_to_thread.
5675 (get_thread_current_frame): Use thread pointer directly.
5676 (record_btrace_replay_at_breakpoint): Use thread's inferior
5677 pointer directly.
5678 * record-full.c: Include "inferior.h".
5679 * regcache.c: Include "gdbthread.h".
5680 (get_thread_arch_regcache): Use the inferior's address space
5681 directly.
5682 (get_thread_regcache, registers_changed_thread): New.
5683 * regcache.h (get_thread_regcache(thread_info *thread)): New
5684 overload.
5685 (registers_changed_thread): New.
5686 (remote_target) <remote_detach_1>: Swap order of parameters.
5687 (remote_add_thread): <remote_add_thread>: Return the new thread.
5688 (get_remote_thread_info(ptid_t)): New overload.
5689 (remote_target::remote_notice_new_inferior): Use thread pointers
5690 directly.
5691 (remote_target::process_initial_stop_replies): Use
5692 thread_info::set_running.
5693 (remote_target::remote_detach_1, remote_target::detach)
5694 (extended_remote_target::detach): Adjust.
5695 * stack.c (frame_show_address): Use inferior_thread.
5696 * target-debug.h (target_debug_print_thread_info_pp): New.
5697 * target-delegates.c: Regenerate.
5698 * target.c (default_thread_address_space): Delete.
5699 (memory_xfer_partial_1): Use current_inferior.
5700 (target_detach): Use current_inferior.
5701 (target_thread_address_space): Delete.
5702 (generic_mourn_inferior): Use current_inferior.
5703 * target.h (struct target_ops) <thread_address_space>: Delete.
5704 (target_thread_address_space): Delete.
5705 * thread.c (init_thread_list): Use ALL_THREADS_SAFE. Use thread
5706 pointers directly.
5707 (delete_thread_1, delete_thread, delete_thread_silent): Take a
5708 thread pointer instead of a ptid_t. Adjust all callers.
5709 (ptid_to_global_thread_id, global_thread_id_to_ptid): Delete.
5710 (first_thread_of_process): Delete, replaced by ...
5711 (first_thread_of_inferior): ... this new function. All callers
5712 adjusted.
5713 (any_thread_of_process): Rename to ...
5714 (any_thread_of_inferior): ... this, and take an inferior pointer.
5715 (any_live_thread_of_process): Rename to ...
5716 (any_live_thread_of_inferior): ... this, and take an inferior
5717 pointer.
5718 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
5719 (value_in_thread_stack_temporaries)
5720 (get_last_thread_stack_temporary): Take a thread pointer instead
5721 of a ptid_t. Adjust all callers.
5722 (thread_info::set_running): New.
5723 (validate_registers_access): Use inferior_thread.
5724 (can_access_registers_ptid): Rename to ...
5725 (can_access_registers_thread): ... this, and take a thread
5726 pointer.
5727 (print_thread_info_1): Adjust to compare thread pointers instead
5728 of ptids.
5729 (switch_to_no_thread, switch_to_thread): Make extern.
5730 (scoped_restore_current_thread::~scoped_restore_current_thread):
5731 Use m_thread pointer directly.
5732 (scoped_restore_current_thread::scoped_restore_current_thread):
5733 Use inferior_thread.
5734 (thread_command): Use thread pointer directly.
5735 (thread_num_make_value_helper): Use inferior_thread.
5736 * top.c (execute_command): Use inferior_thread.
5737 * tui/tui-interp.c: Include "inferior.h".
5738 * varobj.c (varobj_create): Use inferior_thread.
5739 (value_of_root_1): Use find_thread_global_id instead of
5740 global_thread_id_to_ptid.
5741
33bab475
AH
57422018-06-21 Alan Hayward <alan.hayward@arm.com>
5743
5744 * regcache.c (readable_regcache::read_part): Avoid memcpy when
5745 possible.
5746 (regcache::write_part): Likewise.
5747 (readable_regcache::cooked_read_part): Update comment.
5748 (readable_regcache::cooked_write_part): Likewise.
5749 * regcache.h: (readable_regcache::read_part): Likewise.
5750 (regcache::write_part): Likewise.
5751
8363f9d5
RB
57522018-06-21 Richard Bunt <richard.bunt@arm.com>
5753 Dirk Schubert <dirk.schubert@arm.com>
5754
5755 * aarch64-linux-nat.c (post_attach): New.
5756 (aarch64_linux_nat_target::post_attach): Override post_attach to
5757 record the number of hardware debug registers.
5758
0d0b0ea2
TT
57592018-06-20 Tom Tromey <tom@tromey.com>
5760
5761 * python/py-param.c (add_setshow_generic): Make parameters const.
5762 (parmpy_init): Update.
5763
302abd6e
SM
57642018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
5765
5766 * regcache.h (regcache_cooked_read_ftype): Rename to...
5767 (register_read_ftype): ...this, change type to function_view.
5768 (class reg_buffer) <save>: Remove src parameter.
5769 (readonly_detached_regcache) <readonly_detached_regcache>: Make
5770 parameter non-const in first overload. Remove src parameter in
5771 second overload.
5772 * regcache.c (do_cooked_read): Remove.
5773 (readonly_detached_regcache::readonly_detached_regcache): Make
5774 parameter non-const, adjust call to other constructor.
5775 (reg_buffer::save): Remove src parameter.
5776 * frame.c (do_frame_register_read): Remove.
5777 (frame_save_as_regcache): Use lambda function.
5778 * ppc-linux-tdep.c (ppu2spu_unwind_register): Change type of src
5779 parameter to ppu2spu_data *.
5780 (ppu2spu_sniffer): Use lambda function.
5781
19f3f25f
SM
57822018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
5783
5784 * record-full.c (record_full_target::insert_breakpoint): Remove
5785 "struct" keyword, add const.
5786
d0ac1c44
SM
57872018-06-19 Simon Marchi <simon.marchi@ericsson.com>
5788
5789 * common/common-defs.h (PACKAGE_NAME, PACKAGE_VERSION,
5790 PACKAGE_STRING, PACKAGE_TARNAME): Undefine.
5791 * configure.ac: Remove AC_PREREQ, add missing quoting.
5792 * gnulib/configure.ac: Modernize usage of
5793 AC_INIT/AM_INIT_AUTOMAKE. Remove AC_PREREQ.
5794 * gnulib/update-gnulib.sh (AUTOCONF_VERSION): Bump to 2.69.
5795 (AUTOMAKE_VERSION): Bump to 1.15.1.
5796 * configure: Re-generate.
5797 * config.in: Re-generate.
5798 * aclocal.m4: Re-generate.
5799 * gnulib/aclocal.m4: Re-generate.
5800 * gnulib/config.in: Re-generate.
5801 * gnulib/configure: Re-generate.
5802 * gnulib/import/Makefile.in: Re-generate.
5803
6ae50267
PA
58042018-06-19 Pedro Alves <palves@redhat.com>
5805
5806 * minsyms.c (msym_prefer_to_msym_type): New, factored out from ...
5807 (lookup_minimal_symbol_by_pc_section): ... here with
5808 gdb_assert_not_reached added.
5809
61b04dd0
PA
58102018-06-19 Pedro Alves <palves@redhat.com>
5811
5812 * inline-frame.c (stopped_by_user_bp_inline_frame): Replace PC
5813 parameter with a block parameter. Compare location's block symbol
5814 with the frame's block instead of addresses.
5815 (skip_inline_frames): Pass the current block instead of the
5816 frame's address. Break out as soon as we determine the frame
5817 should not be skipped.
5818
f709fabb
TT
58192018-06-18 Tom Tromey <tom@tromey.com>
5820
5821 * solib-aix.c (solib_aix_get_section_offsets): Return
5822 unique_xmalloc_ptr.
5823 (solib_aix_solib_create_inferior_hook): Update.
5824
668eb2f0
TT
58252018-06-18 Tom Tromey <tom@tromey.com>
5826
5827 * solib-darwin.c (darwin_current_sos): Use unique_xmalloc_ptr.
5828
309822ca
TT
58292018-06-18 Tom Tromey <tom@tromey.com>
5830
5831 * solib-frv.c (frv_relocate_main_executable): Use
5832 unique_xmalloc_ptr.
5833 * solib-dsbt.c (dsbt_relocate_main_executable): Use
5834 unique_xmalloc_ptr.
5835
06424eac
TT
58362018-06-18 Tom Tromey <tom@tromey.com>
5837
5838 * objfiles.h (inhibit_section_map_updates): Update.
5839 (resume_section_map_updates, resume_section_map_updates_cleanup):
5840 Remove.
5841 * solib-svr4.c (svr4_handle_solib_event): Update.
5842 * objfiles.c (inhibit_section_map_updates): Return
5843 scoped_restore_tmpl<int>.
5844 (resume_section_map_updates, resume_section_map_updates_cleanup):
5845 Remove.
5846
b4be9fad
TT
58472018-06-18 Tom Tromey <tom@tromey.com>
5848
5849 * valprint.h (read_string): Update.
5850 * valprint.c (read_string): Change type of "buffer".
5851 (val_print_string): Update.
5852 * python/py-value.c (valpy_string): Update.
5853 * language.h (struct language_defn) <la_get_string>: Change
5854 type of "buffer".
5855 (default_get_string, c_get_string): Update.
5856 * language.c (default_get_string): Change type of "buffer".
5857 * guile/scm-value.c (gdbscm_value_to_string): Update.
5858 * c-lang.c (c_get_string): Change type of "buffer".
5859
3f0dbd67
TT
58602018-06-18 Tom Tromey <tom@tromey.com>
5861
5862 * ser-mingw.c (struct pipe_state_destroyer): New.
5863 (pipe_state_up): New typedef.
5864 (cleanup_pipe_state): Remove.
5865 (pipe_windows_open): Use pipe_state_up. Don't release argv.
5866
69d340c6
TT
58672018-06-18 Tom Tromey <tom@tromey.com>
5868
5869 * rust-lang.h (rust_yyerror): Don't declare.
5870 * rust-lang.c (rust_language_defn): Update.
5871 * rust-exp.y (yyerror): Now static.
5872 * parse.c (parse_exp_in_context_1): Update.
5873 * p-lang.h (p_yyerror): Don't declare.
5874 * p-lang.c (p_language_defn): Update.
5875 * p-exp.y (yyerror): Now static.
5876 * opencl-lang.c (opencl_language_defn): Update.
5877 * objc-lang.c (objc_language_defn): Update.
5878 * m2-lang.h (m2_yyerror): Don't declare.
5879 * m2-lang.c (m2_language_defn): Update.
5880 * m2-exp.y (yyerror): Now static.
5881 * language.h (struct language_defn) <la_error>: Remove.
5882 * language.c (unk_lang_error): Remove.
5883 (unknown_language_defn, auto_language_defn): Remove.
5884 * go-lang.h (go_yyerror): Don't declare.
5885 * go-lang.c (go_language_defn): Update.
5886 * go-exp.y (yyerror): Now static.
5887 * f-lang.h (f_yyerror): Don't declare.
5888 * f-lang.c (f_language_defn): Update.
5889 * f-exp.y (yyerror): Now static.
5890 * d-lang.h (d_yyerror): Don't declare.
5891 * d-lang.c (d_language_defn): Update.
5892 * d-exp.y (yyerror): Now static.
5893 * c-lang.h (c_yyerror): Don't declare.
5894 * c-lang.c (c_language_defn, cplus_language_defn)
5895 (asm_language_defn, minimal_language_defn): Update.
5896 * c-exp.y (yyerror): Now static.
5897 * ada-lang.h (ada_yyerror): Don't declare.
5898 * ada-lang.c (ada_language_defn): Update.
5899 * ada-exp.y (yyerror): Now static.
5900
e9902bfc
AH
59012018-06-18 Alan Hayward <alan.hayward@arm.com>
5902
5903 * aarch64-linux-nat.c (fetch_sveregs_from_thread): New function.
5904 (store_sveregs_to_thread): Likewise.
5905 (aarch64_linux_fetch_inferior_registers): Check for SVE.
5906 (aarch64_linux_store_inferior_registers): Likewise.
5907 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs): New
5908 function.
5909 (aarch64_sve_regs_copy_to_regcache): Likewise.
5910 (aarch64_sve_regs_copy_from_regcache): Likewise.
5911 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_sveregs): New
5912 declaration.
5913 (aarch64_sve_regs_copy_to_regcache): Likewise.
5914 (aarch64_sve_regs_copy_from_regcache): Likewise.
5915 (sve_context): Structure from Linux headers.
5916 (SVE_SIG_ZREGS_SIZE): Define from Linux headers.
5917 (SVE_SIG_ZREG_SIZE): Likewise.
5918 (SVE_SIG_PREG_SIZE): Likewise.
5919 (SVE_SIG_FFR_SIZE): Likewise.
5920 (SVE_SIG_REGS_OFFSET): Likewise.
5921 (SVE_SIG_ZREGS_OFFSET): Likewise.
5922 (SVE_SIG_ZREG_OFFSET): Likewise.
5923 (SVE_SIG_ZREGS_SIZE): Likewise.
5924 (SVE_SIG_PREGS_OFFSET): Likewise.
5925 (SVE_SIG_PREG_OFFSET): Likewise.
5926 (SVE_SIG_PREGS_SIZE): Likewise.
5927 (SVE_SIG_FFR_OFFSET): Likewise.
5928 (SVE_SIG_REGS_SIZE): Likewise.
5929 (SVE_SIG_CONTEXT_SIZE): Likewise.
5930 (SVE_PT_REGS_MASK): Likewise.
5931 (SVE_PT_REGS_FPSIMD): Likewise.
5932 (SVE_PT_REGS_SVE): Likewise.
5933 (SVE_PT_VL_INHERIT): Likewise.
5934 (SVE_PT_VL_ONEXEC): Likewise.
5935 (SVE_PT_REGS_OFFSET): Likewise.
5936 (SVE_PT_FPSIMD_OFFSET): Likewise.
5937 (SVE_PT_FPSIMD_SIZE): Likewise.
5938 (SVE_PT_SVE_ZREG_SIZE): Likewise.
5939 (SVE_PT_SVE_PREG_SIZE): Likewise.
5940 (SVE_PT_SVE_FFR_SIZE): Likewise.
5941 (SVE_PT_SVE_FPSR_SIZE): Likewise.
5942 (SVE_PT_SVE_FPCR_SIZE): Likewise.
5943 (__SVE_SIG_TO_PT): Likewise.
5944 (SVE_PT_SVE_OFFSET): Likewise.
5945 (SVE_PT_SVE_ZREGS_OFFSET): Likewise.
5946 (SVE_PT_SVE_ZREG_OFFSET): Likewise.
5947 (SVE_PT_SVE_ZREGS_SIZE): Likewise.
5948 (SVE_PT_SVE_PREGS_OFFSET): Likewise.
5949 (SVE_PT_SVE_PREG_OFFSET): Likewise.
5950 (SVE_PT_SVE_PREGS_SIZE): Likewise.
5951 (SVE_PT_SVE_FFR_OFFSET): Likewise.
5952 (SVE_PT_SVE_FPSR_OFFSET): Likewise.
5953 (SVE_PT_SVE_FPCR_OFFSET): Likewise.
5954 (SVE_PT_SVE_SIZE): Likewise.
5955 (SVE_PT_SIZE): Likewise.
5956 (HAS_SVE_STATE): New define.
5957
17a1cc89
AH
59582018-06-18 Alan Hayward <alan.hayward@arm.com>
5959
5960 * nat/aarch64-sve-linux-sigcontext.h: New file.
5961 * nat/aarch64-sve-linux-ptrace.h (SVE_VQ_BYTES): Move to
5962 new files.
5963 (SVE_VQ_MIN): Likewise.
5964 (SVE_VQ_MAX): Likewise.
5965 (SVE_VL_MIN): Likewise.
5966 (SVE_VL_MAX): Likewise.
5967 (SVE_NUM_ZREGS): Likewise.
5968 (SVE_NUM_PREGS): Likewise.
5969 (sve_vl_valid): Likewise.
5970 (struct user_sve_header): Likewise.
5971
7010835a
AB
59722018-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
5973 Richard Bunt <Richard.Bunt@arm.com>
5974
5975 * linux-nat.c (stop_wait_callback): Don't discard SIGSTOP if it
5976 was requested by GDB.
5977
479b3ef4
TV
59782018-06-15 Tom de Vries <tdevries@suse.de>
5979
5980 * MAINTAINERS (Write After Approval): Add Tom de Vries.
5981
8199b8f4
SM
59822018-06-14 Simon Marchi <simon.marchi@polymtl.ca>
5983
5984 * gnulib/update-gnulib.sh: Print expected versions of
5985 autoconf/aclocal.
5986
55c748a1
SM
59872018-06-14 Simon Marchi <simon.marchi@ericsson.com>
5988
5989 * arch-utils.c (default_type_align): Use type_length_units.
5990 * gdbtypes.c (type_align): Use type_length_units.
5991
87a8eca7
PW
59922018-06-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5993
5994 * cli/cli-script.c (_initialize_cli_script): Fix online documentation
5995 of 'define' command.
5996
5d9a0608
TV
59972018-06-14 Tom de Vries <tdevries@suse.de>
5998
5999 PR cli/22573
6000 * infcmd.c (print_return_value_1): Use get_user_print_options instead of
6001 get_no_prettyformat_print_options.
6002
ab89b5a5
SM
60032018-06-13 Simon Marchi <simon.marchi@ericsson.com>
6004
6005 * sparc-nat.h: Include target.h.
6006 * sparc64-linux-nat.c (class sparc64_linux_nat_target)
6007 <fetch_registers>: Remove this argument in function call.
6008 <store_registers>: Remove this argument in function call, remove
6009 extra semicolon.
6010 <low_forget_process>: Call sparc64_forget_process instead of
6011 sparc_forget_process.
6012
62c808ae
RO
60132018-06-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6014
6015 * procfs.c (_initialize_procfs): Use add_inf_child_target.
6016 (procfs_target::make_corefile_notes): Adjust to new
6017 target_read_alloc return type.
6018
1840d81a
AB
60192018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
6020 Stephen Roberts <stephen.roberts@arm.com>
6021
6022 PR gdb/22882
6023 * infrun.c (fetch_inferior_event): If GDB is not proceeding then
6024 run INF_EXEC_COMPLETE handler, even when not calling normal_stop.
6025 Move should_notify_stop local into more inner scope.
6026
9516f85a
AB
60272018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
6028 Stephen Roberts <stephen.roberts@arm.com>
6029
6030 PR gdb/22882
6031 * infrun.c (resume_1): Add call to mark_async_event_handler.
6032
defd2172
AB
60332018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
6034
6035 * infrun.c (do_target_wait): Change old version of $pc printed.
6036
7b23e087
SM
60372018-06-11 Simon Marchi <simon.marchi@ericsson.com>
6038
6039 * dwarf2read.c (read_index_from_section): Rename to...
6040 (read_gdb_index_from_section): ... this, update all callers.
6041 (dwarf2_read_index): Rename to...
6042 (dwarf2_read_gdb_index): ... this, update all callers.
6043
69c67a0b
JDA
60442018-06-11 John David Anglin <danglin@gcc.gnu.org>
6045
6046 * gdb/hppa-linux-nat.c
6047 (hppa_linux_nat_target::fetch_inferior_registers): Rename to
6048 hppa_linux_nat_target::fetch_registers.
6049
65d4cada
AH
60502018-06-11 Alan Hayward <alan.hayward@arm.com>
6051
6052 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Add mappings.
6053 * aarch64-tdep.h (AARCH64_DWARF_SVE_VG): Add define.
6054 (AARCH64_DWARF_SVE_FFR): Likewise.
6055 (AARCH64_DWARF_SVE_P0): Likewise.
6056 (AARCH64_DWARF_SVE_Z0): Likewise.
6057
f868386e
AH
60582018-06-11 Alan Hayward <alan.hayward@arm.com>
6059
6060 * common/common-regcache.h (raw_compare): New function.
6061 * regcache.c (regcache::raw_compare): Likewise.
6062 * regcache.h (regcache::raw_compare): New declaration.
6063
9c861883
AH
60642018-06-11 Alan Hayward <alan.hayward@arm.com>
6065
6066 * common/common-regcache.h (reg_buffer_common): New structure.
6067 * regcache.c (reg_buffer::invalidate): Move from detached_regcache.
6068 (reg_buffer::raw_supply): Likewise.
6069 (reg_buffer::raw_supply_integer): Likewise.
6070 (reg_buffer::raw_supply_zeroed): Likewise.
6071 (reg_buffer::raw_collect): Likewise.
6072 (reg_buffer::raw_collect_integer): Likewise.
6073 * regcache.h (reg_buffer::invalidate): Move from detached_regcache.
6074 (reg_buffer::raw_supply): Likewise.
6075 (reg_buffer::raw_supply_integer): Likewise.
6076 (reg_buffer::raw_supply_zeroed): Likewise.
6077 (reg_buffer::raw_collect): Likewise.
6078 (reg_buffer::raw_collect_integer): Likewise.
6079
953edf2b
TT
60802018-06-10 Tom Tromey <tom@tromey.com>
6081
6082 * remote.c (stop_reply_p): Remove typedef. Don't declare queue.
6083 (class remote_state) <stop_reply_queue>: Now std::vector.
6084 (remote_state::~remote_state)
6085 (remote_target::stop_reply_queue_length): Update.
6086 (struct queue_iter_param, remove_child_of_pending_fork)
6087 (struct check_pending_event_prevents_wildcard_vcont_callback_data)
6088 (check_pending_event_prevents_wildcard_vcont_callback)
6089 (remove_stop_reply_for_inferior)
6090 (remove_stop_reply_of_remote_state)
6091 (remote_notif_remove_once_on_match)
6092 (stop_reply_match_ptid_and_ws)
6093 (remote_kill_child_of_pending_fork): Remove.
6094 (remote_target::remove_new_fork_children)
6095 (remote_target::check_pending_events_prevent_wildcard_vcont)
6096 (remote_target::discard_pending_stop_replies)
6097 (remote_target::discard_pending_stop_replies_in_queue)
6098 (remote_target::remote_notif_remove_queued_reply)
6099 (remote_target::queued_stop_reply)
6100 (remote_target::push_stop_reply, remote_target::peek_stop_reply)
6101 (remote_target::wait, remote_target::kill_new_fork_children)
6102 (remote_target::async): Update.
6103
1ddbba9d
TT
61042018-06-10 Tom Tromey <tom@tromey.com>
6105
6106 * record-full.c (record_full_arch_list_cleanups): Remove.
6107 (record_full_message): Use try/catch.
6108 (record_full_wait_cleanups): Remove.
6109 (record_full_wait_1): Use try/catch.
6110 (record_full_restore): Likewise.
6111
219605fd
TT
61122018-06-10 Tom Tromey <tom@tromey.com>
6113
6114 * record-full.c (record_full_breakpoint_p): Remove typedef. Don't
6115 declare VEC. Add constructor.
6116 <in_target_beneath>: Now bool.
6117 (record_full_breakpoints): Now a std::vector, static.
6118 (record_full_sync_record_breakpoints)
6119 (record_full_init_record_breakpoints)
6120 (record_full_target::insert_breakpoint)
6121 (record_full_target::remove_breakpoint): Update. Don't use XNEW.
6122
71b73764
SM
61232018-06-10 Simon Marchi <simon.marchi@polymtl.ca>
6124
6125 * dwarf2read.c (process_cu_includes): Remove struct keyword.
6126 * serial.c (serial_interface_lookup): Remove struct keyword.
6127
4360561f
TT
61282018-06-10 Tom Tromey <tom@tromey.com>
6129
6130 * procfs.c (procfs_target::xfer_partial): Use "beneath" as a
6131 method.
6132 * nto-procfs.c (nto_procfs_target::xfer_partial): Use "beneath" as
6133 a method.
6134 * go32-nat.c (go32_nat_target::xfer_partial): Use "beneath" as a
6135 method.
6136 * arm-linux-nat.c (arm_linux_nat_target::read_description): Use
6137 "beneath" as a method.
6138 * arm-fbsd-nat.c (arm_fbsd_nat_target::read_description):
6139 Use "beneath" as a method.
6140
d14b92bf
TT
61412018-06-10 Tom Tromey <tom@tromey.com>
6142
6143 * tracefile.c (struct trace_file_writer_deleter): New.
6144 <operator()>: Rename from trace_file_writer_xfree.
6145 (trace_file_writer_up): New typedef.
6146 (tsave_command, trace_save_tfile, trace_save_ctf): Update.
6147
835dcf92
SM
61482018-06-09 Simon Marchi <simon.marchi@ericsson.com>
6149
6150 * regcache.h (reg_buffer) <~reg_buffer>: Use default destructor.
6151 <m_registers, m_register_status>: Change type to
6152 std::unique_ptr.
6153 * regcache.c (reg_buffer::reg_buffer): Use new instead of
6154 XCNEWVEC.
6155
aac0d564
SM
61562018-06-09 Simon Marchi <simon.marchi@ericsson.com>
6157
6158 * common/common-regcache.h (enum register_status): Add
6159 underlying type "signed char".
6160 * regcache.h (reg_buffer) <m_register_status>: Change type to
6161 register_status *.
6162 * regcache.c (reg_buffer::reg_buffer): Alocate arrays of
6163 register_status instead of signed char.
6164 (reg_buffer::save): Use REG_UNKNOWN instead of 0.
6165 (reg_buffer::get_register_status): Remove cast.
6166 (readable_regcache::raw_read): Remove cast.
6167 (readable_regcache::cooked_read): Remove cast.
6168
77ad7394
TT
61692018-06-09 Tom Tromey <tom@tromey.com>
6170
6171 * source.c (reverse_search_command, forward_search_command): Use
6172 scoped_fd.
6173
191cca63
TT
61742018-06-09 Tom Tromey <tom@tromey.com>
6175
6176 * serial.c (serial_ops_p): Remove typedef. Don't declare VEC.
6177 (serial_ops_list): Now static, std::vector.
6178 (serial_interface_lookup, serial_add_interface): Update.
6179
c5d0225d
TT
61802018-06-09 Tom Tromey <tom@tromey.com>
6181
6182 * dwarf2read.c (process_cu_includes): Update.
6183 (process_full_comp_unit): Update.
6184 * dwarf2read.h (struct dwarf2_per_objfile) <just_read_cus>: Now a
6185 std::vector.
6186
aeab5128
PK
61872018-06-08 Paul Koning <paul_koning@dell.com>
6188
6189 PR gdb/23252
6190
6191 * python/python.c (do_start_initialization):
6192 Avoid call to internal Python API.
6193 (init__gdb_module): New function.
6194
5045b3d7
GB
61952018-06-08 Gary Benson <gbenson@redhat.com>
6196
6197 * linux-thread-db.c (valprint.h): New include.
6198 (struct check_thread_db_info): New structure.
6199 (check_thread_db_on_load, tdb_testinfo): New static globals.
6200 (check_thread_db, check_thread_db_callback): New functions.
6201 (try_thread_db_load_1): Run integrity checks if requested.
6202 (maintenance_check_libthread_db): New function.
6203 (_initialize_thread_db): Register "maint check libthread-db"
6204 and "maint set/show check-libthread-db".
6205 * NEWS: Mention the above new commands.
6206
2f4f025f
TT
62072018-06-08 Tom Tromey <tom@tromey.com>
6208
6209 * windows-nat.c (windows_nat_target::xfer_partial): "beneath" is
6210 now a method.
6211
343b0027
TT
62122018-06-08 Tom Tromey <tom@tromey.com>
6213
6214 * btrace.c (parse_xml_raw): Use gdb::unique_xmalloc_ptr.
6215
8dcc53b3
TT
62162018-06-08 Tom Tromey <tom@tromey.com>
6217
6218 * common/btrace-common.h (struct btrace_data): Add constructor,
6219 destructor, move assignment operator.
6220 <empty, clear, fini>: New methods.
6221 <format>: Initialize.
6222 (btrace_data_init, btrace_data_fini, btrace_data_clear)
6223 (btrace_data_empty): Don't declare.
6224 * common/btrace-common.c (btrace_data_init): Remove.
6225 (btrace_data::fini): Rename from btrace_data_fini.
6226 (btrace_data::empty): Rename from btrace_data_empty.
6227 (btrace_data::clear): Rename from btrace_data_clear. Return
6228 bool.
6229 * btrace.h (make_cleanup_btrace_data): Don't declare.
6230 * btrace.c (btrace_add_pc, btrace_stitch_trace, btrace_clear)
6231 (parse_xml_btrace): Update.
6232 (do_btrace_data_cleanup, make_cleanup_btrace_data): Remove.
6233 (maint_btrace_clear_packet_history_cmd): Update.
6234
a1740ee1
PA
62352018-06-07 Pedro Alves <palves@redhat.com>
6236
6237 * target.h (target_ops) <beneath>: Now a method. All references
6238 updated.
6239 (class target_stack): New.
6240 * target.c (g_target_stack): New.
6241 (g_current_top_target): Delete.
6242 (current_top_target): Get the top target out of g_target_stack.
6243 (target_stack::push, target_stack::unpush): New.
6244 (push_target, unpush_target): Reimplement.
6245 (target_is_pushed): Reimplement in terms of g_target_stack.
6246 (target_ops::beneath, target_stack::find_beneath): New.
6247
d6ca69cd
PA
62482018-06-07 Pedro Alves <palves@redhat.com>
6249
6250 * target.h (find_target_beneath): Delete declaration.
6251 * target.c (find_target_beneath): Delete definition.
6252 * aix-thread.c: All callers of find_target_beneath adjusted to
6253 call target_ops::beneath instead.
6254 * bsd-uthread.c: Likewise.
6255 * linux-thread-db.c: Likewise.
6256 * ravenscar-thread.c: Likewise.
6257 * sol-thread.c: Likewise.
6258 * spu-multiarch.c: Likewise.
6259
b6a8c27b
PA
62602018-06-07 Pedro Alves <palves@redhat.com>
6261
6262 * target.h (target_ops) <beneath>: Now a method. All references
6263 updated.
6264 (target_ops) <m_beneath>: New.
6265 * target.c (target_ops::beneath): New.
6266 * corelow.c: Adjust all references to target_ops::beneath.
6267 * linux-thread-db.c: Likewise.
6268 * make-target-delegates: Likewise.
6269 * record-btrace.c: Likewise.
6270 * record-full.c: Likewise.
6271 * remote.c: Likewise.
6272 * target.c: Likewise.
6273 * target-delegates.c: Regenerate.
6274
8b88a78e
PA
62752018-06-07 Pedro Alves <palves@redhat.com>
6276
6277 * target.h (target_stack): Delete.
6278 (current_top_target): Declare function.
6279 * target.c (target_stack): Delete.
6280 (g_current_top_target): New.
6281 (current_top_target): New function.
6282 * auxv.c: Use current_top_target instead of target_stack
6283 throughout.
6284 * avr-tdep.c: Likewise.
6285 * breakpoint.c: Likewise.
6286 * corefile.c: Likewise.
6287 * elfread.c: Likewise.
6288 * eval.c: Likewise.
6289 * exceptions.c: Likewise.
6290 * frame.c: Likewise.
6291 * gdbarch-selftests.c: Likewise.
6292 * gnu-v3-abi.c: Likewise.
6293 * ia64-tdep.c: Likewise.
6294 * ia64-vms-tdep.c: Likewise.
6295 * infcall.c: Likewise.
6296 * infcmd.c: Likewise.
6297 * infrun.c: Likewise.
6298 * linespec.c: Likewise.
6299 * linux-tdep.c: Likewise.
6300 * minsyms.c: Likewise.
6301 * ppc-linux-nat.c: Likewise.
6302 * ppc-linux-tdep.c: Likewise.
6303 * procfs.c: Likewise.
6304 * regcache.c: Likewise.
6305 * remote.c: Likewise.
6306 * rs6000-tdep.c: Likewise.
6307 * s390-linux-nat.c: Likewise.
6308 * s390-tdep.c: Likewise.
6309 * solib-aix.c: Likewise.
6310 * solib-darwin.c: Likewise.
6311 * solib-dsbt.c: Likewise.
6312 * solib-spu.c: Likewise.
6313 * solib-svr4.c: Likewise.
6314 * solib-target.c: Likewise.
6315 * sparc-tdep.c: Likewise.
6316 * sparc64-tdep.c: Likewise.
6317 * spu-tdep.c: Likewise.
6318 * symfile.c: Likewise.
6319 * symtab.c: Likewise.
6320 * target-descriptions.c: Likewise.
6321 * target-memory.c: Likewise.
6322 * target.c: Likewise.
6323 * target.h: Likewise.
6324 * tracefile-tfile.c: Likewise.
6325 * tracepoint.c: Likewise.
6326 * valops.c: Likewise.
6327 * valprint.c: Likewise.
6328 * value.c: Likewise.
6329 * windows-tdep.c: Likewise.
6330 * mi/mi-main.c: Likewise.
6331
c7110220
TT
63322018-06-07 Tom Tromey <tom@tromey.com>
6333
6334 * valprint.h (build_address_symbolic): Declare.
6335 * printcmd.c (print_address_symbolic): Update.
6336 (build_address_symbolic): Change "name" and "filename" to
6337 std::string.
6338 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
6339 Update.
6340 * defs.h (build_address_symbolic): Remove declaration.
6341
63bad7b6
AH
63422018-06-07 Alan Hayward <alan.hayward@arm.com>
6343
6344 * aarch64-tdep.c (AARCH64_SVE_V0_REGNUM): Add define.
6345 (aarch64_vnv_type): Add function.
6346 (aarch64_pseudo_register_name): Add V regs for SVE.
6347 (aarch64_pseudo_register_type): Likewise.
6348 (aarch64_pseudo_register_reggroup_p): Likewise.
6349 (aarch64_pseudo_read_value_2): Use V0 offset for SVE
6350 (aarch64_pseudo_read_value): Add V regs for SVE.
6351 (aarch64_pseudo_write_2): Use V0 offset for SVE
6352 (aarch64_pseudo_write): Add V regs for SVE.
6353 * aarch64-tdep.h (struct gdbarch_tdep): Add vnv_type.
6354
13e3c608
SDJ
63552018-06-06 Sergio Durigan Junior <sergiodj@redhat.com>
6356
6357 * arch/aarch64.h (sve_vq_from_vl): Guard with #ifndef.
6358 (sve_vl_from_vq): Likewise.
6359
c61b06a1
TT
63602018-06-05 Tom Tromey <tom@tromey.com>
6361
6362 * cli/cli-cmds.c (show_version): Update.
6363 * top.c (print_gdb_version): Add "interactive" parameter.
6364 Update.
6365 * main.c (captured_main_1): Update.
6366 * top.h (print_gdb_version): Add "interactive" parameter and a
6367 comment.
6368
115f7325
DM
63692018-06-05 David Malcolm <dmalcolm@redhat.com>
6370
6371 * common/enum-flags.h: Add trailing semicolon to example in
6372 comment.
6373
eb6af809
TT
63742018-06-05 Tom Tromey <tom@tromey.com>
6375
6376 PR cli/12326:
6377 * NEWS: Add entry about pager.
6378 * utils.c (pagination_disabled_for_command): New global.
6379 (prompt_for_continue): Allow "c" response to prompt.
6380 (reinitialize_more_filter): Clear
6381 pagination_disabled_for_command.
6382 (fputs_maybe_filtered): Check pagination_disabled_for_command.
6383
54d343a2
TT
63842018-06-04 Tom Tromey <tom@tromey.com>
6385
6386 * ada-lang.h (ada_lookup_symbol_list): Update.
6387 * ada-lang.c (resolve_subexp): Update.
6388 (symbols_are_identical_enums): Change type of syms. Remove nsyms
6389 parameter.
6390 (remove_extra_symbols, remove_irrelevant_renamings): Likewise.
6391 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Change
6392 results parameter to std::vector.
6393 (ada_iterate_over_symbols, ada_lookup_symbol, get_var_value):
6394 Update.
6395 * ada-exp.y (block_lookup): Update.
6396 (select_possible_type_sym): Change type of syms. Remove nsyms
6397 parameter.
6398 (write_var_or_type, write_name_assoc): Update.
6399
178d6a63
JB
64002018-06-04 Joel Brobecker <brobecker@adacore.com>
6401
6402 * windows-nat.c (windows_nat_target::xfer_partial): Return
6403 TARGET_XFER_E_IO if we need to delegate to the target beneath
6404 but BENEATH is NULL.
6405
baf00c2d
SM
64062018-06-04 Simon Marchi <simon.marchi@ericsson.com>
6407
6408 * Makefile.in (config.status): Add configure.nat as a
6409 dependency.
6410
214b073c
TT
64112018-06-04 Tom Tromey <tom@tromey.com>
6412
6413 * cp-name-parser.y (cpname_state): Add method declarations.
6414 (HANDLE_QUAL): Update.
6415 (cpname_state::d_grab, cpname_state::fill_comp)
6416 (cpname_state::make_operator, cpname_state::make_dtor)
6417 (cpname_state::make_builtin_type, cpname_state::make_name)
6418 (cpname_state::d_qualify, cpname_state::d_int_type)
6419 (cpname_state::d_unary, cpname_state::d_binary): Now methods.
6420 (%union): Move earlier.
6421
62b74cb8
AH
64222018-06-04 Alan Hayward <alan.hayward@arm.com>
6423
6424 * elfread.c (elf_symfile_segments): Use ELF_SECTION_IN_SEGMENT.
6425
3c5cd5c3
AH
64262018-06-04 Alan Hayward <alan.hayward@arm.com>
6427
6428 * aarch64-tdep.c (aarch64_pseudo_read_value_1): New helper func.
6429 (aarch64_pseudo_write_1): Likewise.
6430 (aarch64_pseudo_read_value): Use helper.
6431 (aarch64_pseudo_write): Likewise.
6432
59f413d5
PA
64332018-06-04 Pedro Alves <palves@redhat.com>
6434
6435 * darwin-nat.c (darwin_ops): Delete.
6436 (darwin_attach_pid): Use get_native_target.
6437
1332a140
AH
64382018-06-04 Alan Hayward <alan.hayward@arm.com>
6439
6440 * aarch64-tdep.c (aarch64_get_tdesc_vq): Use uint64_t for VQ.
6441 * aarch64-tdep.h (struct gdbarch_tdep): Likewise.
6442
ba2d2bb2
AH
64432018-06-04 Alan Hayward <alan.hayward@arm.com>
6444
6445 * aarch64-linux-nat.c (aarch64_linux_read_description): Support SVE.
6446 * aarch64-tdep.c (aarch64_get_tdesc_vq): New function.
6447 (aarch64_gdbarch_init): Check for SVE.
6448 * aarch64-tdep.h (gdbarch_tdep::has_sve): New function.
6449
64502018-06-04 Alan Hayward <alan.hayward@arm.com>
39bfb937
AH
6451
6452 * aarch64-tdep.c (aarch64_read_description): Use uint64_t for VQ.
6453 * aarch64-tdep.h (aarch64_read_description): Likewise.
6454 * arch/aarch64.c (aarch64_create_target_description): Likewise.
6455 * arch/aarch64.h (aarch64_create_target_description): Likewise.
6456 * features/aarch64-sve.c (create_feature_aarch64_sve): Likewise.
6457 * nat/aarch64-sve-linux-ptrace.c(aarch64_sve_get_vq): Likewise.
6458 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_vq): Likewise.
6459
41c60b4b
SM
64602018-06-02 Simon Marchi <simon.marchi@ericsson.com>
6461
6462 * value.c (value_fetch_lazy_bitfield): New.
6463 (value_fetch_lazy_memory): New.
6464 (value_fetch_lazy_register): New.
6465 (value_fetch_lazy): Factor out to smaller functions.
6466
7b640f72
TT
64672018-06-01 Tom Tromey <tom@tromey.com>
6468
6469 * cp-name-parser.y (backslashable, represented): Now const.
6470
98e69eb3
TT
64712018-06-01 Tom Tromey <tom@tromey.com>
6472
6473 * cp-name-parser.y: Include parser-defs.h.
6474 (parser_fprintf): Remove declaration.
6475
49265499
TT
64762018-06-01 Tom Tromey <tom@tromey.com>
6477
6478 * cp-name-parser.y: Use %pure-parser, %lex-param, and
6479 %parse-param.
6480 (lexptr, prev_lexptr, error_lexptr, global_errmsg, demangle_info)
6481 (global_result): Remove globals.
6482 (struct cpname_state): New.
6483 (yyparse): Don't declare.
6484 (yylex, yyerror): Move declarations after %union.
6485 (d_grab, fill_comp, make_operator, make_dtor, make_builtin_type)
6486 (make_name): Add state parameter.
6487 Update all callers.
6488 (d_qualify, d_int_type, d_unary, d_binary, parse_number) Add state
6489 parameter.
6490 (HANDLE_QUAL, HANDLE_SPECIAL, HANDLE_TOKEN2, HANDLE_TOKEN3):
6491 Update.
6492 (yylex): Add lvalp, state parameters.
6493 (yyerror): Add state parameter.
6494 (cp_demangled_name_to_comp): Update.
6495
55b6c984
TT
64962018-06-01 Tom Tromey <tom@tromey.com>
6497
6498 * cp-name-parser.y (parser_fprintf): Declare.
6499 (GDB_YY_REMAP_PREFIX): Define.
6500 Include yy-remap.h. Don't redefine yy* identifiers.
6501
3513a6bb
TT
65022018-06-01 Tom Tromey <tom@tromey.com>
6503
6504 * python/py-type.c (typy_legacy_template_argument): Update.
6505 * cp-support.h (cp_demangled_name_to_comp): Update.
6506 * cp-name-parser.y (cp_demangled_name_to_comp): Change errmsg
6507 parameter to be a "std::string *".
6508 (main): Update.
6509
e9cb46ab
L
65102018-06-01 H.J. Lu <hongjiu.lu@intel.com>
6511
6512 * ada-lex.l: Include "diagnostics.h" instead of
6513 "common/diagnostics.h".
6514 * unittests/environ-selftests.c: Likewise.
6515 * common/diagnostics.h: Moved to ../include.
6516
8e817061
JB
65172018-06-01 Joel Brobecker <brobecker@adacore.com>
6518
6519 * breakpoint.c (breakpoint_re_set): Temporarily force language_mode
6520 to language_mode_manual while calling breakpoint_re_set_one.
6521
a737d952
TT
65222018-06-01 Tom Tromey <tom@tromey.com>
6523
6524 * valops.c (value_cast_structs, destructor_name_p): Update.
6525 * symtab.c (gdb_mangle_name): Update.
6526 * stabsread.c (define_symbol, read_cpp_abbrev, read_baseclasses):
6527 Update.
6528 * p-valprint.c (pascal_object_is_vtbl_ptr_type)
6529 (pascal_object_print_value_fields, pascal_object_print_value):
6530 Update.
6531 * p-typeprint.c (pascal_type_print_derivation_info): Update.
6532 * linespec.c (find_methods): Update.
6533 * gdbtypes.h (type_name_no_tag): Remove.
6534 (type_name_or_error): Rename from type_name_no_tag_or_error.
6535 * gdbtypes.c (type_name_no_tag): Remove.
6536 (type_name_or_error): Rename from type_name_no_tag_or_error.
6537 (lookup_struct_elt_type, check_typedef): Update.
6538 * expprint.c (print_subexp_standard): Update.
6539 * dwarf2read.c (dwarf2_add_field, load_partial_dies): Update.
6540 * d-namespace.c (d_lookup_nested_symbol): Update.
6541 * cp-valprint.c (cp_is_vtbl_ptr_type, cp_print_value_fields)
6542 (cp_print_class_member): Update.
6543 * cp-namespace.c (cp_lookup_nested_symbol): Update.
6544 * completer.c (add_struct_fields): Update.
6545 * c-typeprint.c (cp_type_print_derivation_info)
6546 (c_type_print_varspec_prefix, c_type_print_base_struct_union):
6547 Update.
6548 * ada-lang.c (parse_old_style_renaming, xget_renaming_scope)
6549 (ada_prefer_type, ada_is_exception_sym): Update.
6550
e86ca25f
TT
65512018-06-01 Tom Tromey <tom@tromey.com>
6552
6553 * valops.c (enum_constant_from_type, value_namespace_elt)
6554 (value_maybe_namespace_elt): Update.
6555 * valarith.c (find_size_for_pointer_math): Update.
6556 * target-descriptions.c (make_gdb_type): Update.
6557 * symmisc.c (print_symbol): Update.
6558 * stabsread.c (define_symbol, read_type)
6559 (complain_about_struct_wipeout, add_undefined_type)
6560 (cleanup_undefined_types_1): Update.
6561 * rust-lang.c (rust_tuple_type_p, rust_slice_type_p)
6562 (rust_range_type_p, val_print_struct, rust_print_struct_def)
6563 (rust_internal_print_type, rust_composite_type)
6564 (rust_evaluate_funcall, rust_evaluate_subexp)
6565 (rust_inclusive_range_type_p): Update.
6566 * python/py-type.c (typy_get_tag): Update.
6567 * p-typeprint.c (pascal_type_print_base): Update.
6568 * mdebugread.c (parse_symbol, parse_type): Update.
6569 * m2-typeprint.c (m2_long_set, m2_record_fields, m2_enum):
6570 Update.
6571 * guile/scm-type.c (gdbscm_type_tag): Update.
6572 * go-lang.c (sixg_string_p): Update.
6573 * gnu-v3-abi.c (build_gdb_vtable_type, build_std_type_info_type):
6574 Update.
6575 * gdbtypes.h (struct main_type) <tag_name>: Remove.
6576 (TYPE_TAG_NAME): Remove.
6577 * gdbtypes.c (type_name_no_tag): Simplify.
6578 (check_typedef, check_types_equal, recursive_dump_type)
6579 (copy_type_recursive, arch_composite_type): Update.
6580 * f-typeprint.c (f_type_print_base): Update. Print "Type" prefix
6581 in summary mode when needed.
6582 * eval.c (evaluate_funcall): Update.
6583 * dwarf2read.c (fixup_go_packaging, read_structure_type)
6584 (process_structure_scope, read_enumeration_type)
6585 (read_namespace_type, read_module_type, determine_prefix): Update.
6586 * cp-support.c (inspect_type): Update.
6587 * coffread.c (process_coff_symbol, decode_base_type): Update.
6588 * c-varobj.c (c_is_path_expr_parent): Update.
6589 * c-typeprint.c (c_type_print_base_struct_union): Update.
6590 (c_type_print_base_1): Update. Print struct/class/union/enum in
6591 summary when using C language.
6592 * ax-gdb.c (gen_struct_ref, gen_namespace_elt)
6593 (gen_maybe_namespace_elt): Update.
6594 * ada-lang.c (ada_type_name): Simplify.
6595 (empty_record, ada_template_to_fixed_record_type_1)
6596 (template_to_static_fixed_type)
6597 (to_record_with_fixed_variant_part, ada_check_typedef): Update.
6598
c1ec8cea
TT
65992018-06-01 Tom Tromey <tom@tromey.com>
6600
6601 * dwarf2read.c (dwarf2_compute_name): Pass CU's language to
6602 c_print_type.
6603 * c-typeprint.c (c_print_type_1): Add "language" parameter.
6604 (c_print_type): Update.
6605 (c_print_type): New overload.
6606 (c_type_print_varspec_prefix, c_type_print_args)
6607 (c_type_print_varspec_suffix, c_print_type_no_offsets)
6608 (c_type_print_base_struct_union, c_type_print_base_1)
6609 (cp_type_print_method_args): Add "language" parameter.
6610 (c_type_print_base): Update.
6611 * c-lang.h (c_print_type): Add new overload.
6612
bc8453a7
TT
66132018-06-01 Tom Tromey <tom@tromey.com>
6614
6615 * typeprint.h (c_type_print_varspec_suffix): Don't declare.
6616 * c-typeprint.c (c_type_print_varspec_suffix): Now static.
6617
739e8682
AH
66182018-06-01 Alan Hayward <alan.hayward@arm.com>
6619
6620 * aarch64-tdep.c (aarch64_sve_register_names): New const
6621 var.
6622 * arch/aarch64.h (enum aarch64_regnum): Add SVE entries.
6623 (AARCH64_SVE_Z_REGS_NUM): New define.
6624 (AARCH64_SVE_P_REGS_NUM): Likewise.
6625 (AARCH64_SVE_NUM_REGS): Likewise.
6626
8a60efe7
UB
66272018-05-31 Uros Bizjak <ubizjak@gmail.com>
6628
6629 * nat/linux-ptrace.h [__alpha__]
6630 (GDB_ARCH_IS_TRAP_BRKPT, GDB_ARCH_IS_TRAP_HWBKPT): Remove
6631 definitions.
6632
4b2dfa9d
MR
66332018-05-31 Maciej W. Rozycki <macro@mips.com>
6634
6635 * arch-utils.c (gdbarch_info_fill): Set `default_byte_order' to
6636 the endianness selected.
6637 * NEWS: Document `set endian auto' mode operation update.
6638
122394f1
AH
66392018-05-31 Alan Hayward <alan.hayward@arm.com>
6640
6641 * Makefile.in: Add new header.
6642 * gdb/arch/aarch64.h (sve_vg_from_vl): New macro.
6643 (sve_vl_from_vg): Likewise.
6644 (sve_vq_from_vl): Likewise.
6645 (sve_vl_from_vq): Likewise.
6646 (sve_vq_from_vg): Likewise.
6647 (sve_vg_from_vq): Likewise.
6648 * configure.nat: Add new c file.
6649 * nat/aarch64-sve-linux-ptrace.c: New file.
6650 * nat/aarch64-sve-linux-ptrace.h: New file.
6651
95228a0d
AH
66522018-05-31 Alan Hayward <alan.hayward@arm.com>
6653
6654 * aarch64-linux-nat.c (aarch64_linux_read_description):
6655 Add parmeter zero.
6656 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
6657 Likewise.
6658 * aarch64-tdep.c (tdesc_aarch64_list): Add.
6659 (aarch64_read_description): Use VQ to index tdesc_aarch64_list.
6660 (aarch64_gdbarch_init): Add parmeter zero.
6661 * aarch64-tdep.h (aarch64_read_description): Add VQ parmeter.
6662 * arch/aarch64.c (aarch64_create_target_description): Check VQ.
6663 * arch/aarch64.h (aarch64_create_target_description): Add VQ.
6664 parmeter.
6665 * doc/gdb.texinfo: Describe SVE feature
6666 * features/aarch64-sve.c: New file.
6667
5969f0db
OJ
66682018-05-31 Omair Javaid <omair.javaid@linaro.org>
6669
6670 PR gdb/23210
6671 * gdbarch.sh (significant_addr_bit): Default to zero when
6672 not set by target architecture.
6673 * gdbarch.c: Re-generated.
6674 * utils.c (address_significant): Update.
6675
61367c61
JB
66762018-05-30 Joel Brobecker <brobecker@adacore.com>
6677
6678 * stack.c (func_command): Remove trailing newline in call to error.
6679
34a79281
SM
66802018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6681
6682 * regcache.h (regcache_raw_collect): Remove, update callers to
6683 use regcache::raw_collect.
6684 * regcache.c (regcache_raw_collect): Remove.
6685
73e1c03f
SM
66862018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6687
6688 * regcache.h (regcache_raw_supply): Remove, update callers to
6689 use detached_regcache::raw_supply.
6690 * regcache.c (regcache_raw_supply): Remove.
6691
e4c4a59b
SM
66922018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6693
6694 * regcache.h (regcache_cooked_write_part): Remove, update
6695 callers to use regcache::cooked_write_part.
6696 * regcache.c (regcache_cooked_write_part): Remove.
6697
73bb0000
SM
66982018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6699
6700 * regcache.h (regcache_cooked_read_part): Remove, update callers
6701 to use readable_regcache::cooked_read_part.
6702 * regcache.c (regcache_cooked_read_part): Remove.
6703
46a45e9d
SM
67042018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6705
6706 * regcache.h (regcache_cooked_read_value): Remove, update
6707 callers to use readable_regcache::cooked_read_value.
6708 * regcache.c (regcache_cooked_read_value): Remove.
6709
b66f5587
SM
67102018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6711
6712 * regcache.h (regcache_cooked_write): Remove, update callers to
6713 use regcache::cooked_write.
6714 * regcache.c (regcache_cooked_write): Remove.
6715
6aa7d724
SM
67162018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6717
6718 * regcache.h (regcache_invalidate): Remove, update callers to
6719 use detached_regcache::invalidate instead.
6720 * regcache.c (regcache_invalidate): Remove.
6721
4f0420fd
SM
67222018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6723
6724 * regcache.h (regcache_raw_write_part): Remove, update callers
6725 to use regcache::raw_write_part instead.
6726 * regcache.c (regcache_raw_write_part): Remove.
6727
502fe83e
SM
67282018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6729
6730 * regcache.h (regcache_raw_read_part): Remove, update callers to
6731 use readable_regcache::raw_read_part instead.
6732 * regcache.c (regcache_raw_read_part): Remove.
6733
dca08e1f
SM
67342018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6735
6736 * regcache.h (regcache_cooked_read): Remove, update callers to
6737 use readable_regcache::cooked_read instead.
6738 * regcache.c (regcache_cooked_read): Remove.
6739
10eaee5f
SM
67402018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6741
6742 * regcache.h (regcache_raw_write): Remove, update callers to use
6743 regcache::raw_write instead.
6744 * regcache.c (regcache_raw_write): Remove.
6745
0b883586
SM
67462018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6747
6748 * regcache.h (regcache_raw_read): Remove, update callers to use
6749 readable_regcache::raw_read instead.
6750 * regcache.c (regcache_raw_read): Remove.
6751
0b47d985
SM
67522018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6753
6754 * regcache.h (regcache_raw_update): Remove, update callers to
6755 use readable_regcache::raw_update instead.
6756 * regcache.c (regcache_raw_update): Remove.
6757
0ec9f114
SM
67582018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6759
6760 * regcache.h (regcache_register_status): Remove, update callers
6761 to use reg_buffer::get_register_status directly instead.
6762 * regcache.c (regcache_register_status): Remove.
6763
222312d3
SM
67642018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6765
6766 * regcache.h (regcache_get_ptid): Remove, update all callers to
6767 call regcache::ptid instead.
6768 * regcache.c (regcache_get_ptid): Remove.
6769
fdbe37e3
SM
67702018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6771
6772 * Makefile.in (ALL_TARGET_OBS): Add or1k-tdep.o.
6773
f7c6f423
PA
67742018-05-30 Pedro Alves <palves@redhat.com>
6775
6776 * common/common-exceptions.h (exception_rethrow): Use
6777 ATTRIBUTE_NORETURN.
6778
52941706
SM
67792018-05-29 Simon Marchi <simon.marchi@polymtl.ca>
6780
6781 * breakpoint.c (print_solib_event, check_status_catch_solib):
6782 Remove struct keyword in range-based for loops.
6783 * dbxread.c (find_corresponding_bincl_psymtab): Likewise.
6784 * dwarf2read.c (compute_delayed_physnames, rust_union_quirks);
6785 Likewise.
6786 * linespec.c (find_superclass_methods, search_minsyms_for_name):
6787 Likewise.
6788 * symfile.c (addr_info_make_relative): Likewise.
6789 * thread.c (value_in_thread_stack_temporaries): Likewise.
6790
bf2977b5
WP
67912018-06-12 Weimin Pan <weimin.pan@oracle.com>
6792
6793 PR gdb/16841
6794 * valops.c (value_struct_elt_for_reference): Call check_typedef on
6795 aggregate type to get its real type before accessing it.
6796
64cc34d8
WP
67972018-05-29 Weimin Pan <weimin.pan@oracle.com>
6798
6799 * minsyms.h (lookup_minimal_symbol_and_objfile): Remove declaration.
6800 * minsyms.c (lookup_minimal_symbol_and_objfile): Remove definition.
6801 * coff-pe-read.c (add_pe_forwarded_sym): Replace
6802 lookup_minimal_symbol_and_objfile with lookup_bound_minimal_symbol.
6803 * glibc-tdep.c (glibc_skip_solib_resolver): Likewise.
6804 * jit.c (jit_breakpoint_re_set_internal): Likewise.
6805 * printcmd.c (info_address_command): Likewise.
6806
e7ec8713
TT
68072018-05-29 Tom Tromey <tom@tromey.com>
6808
6809 * windows-nat.c (handle_exception): Update fall-through comment.
6810
bcb430e4
TT
68112018-05-29 Tom Tromey <tom@tromey.com>
6812
6813 * progspace.h (so_list_ptr): Remove typedef. Don't declare VEC.
6814 (struct program_space) <added_solibs>: Now a std::vector.
6815 * breakpoint.c (print_solib_event): Update.
6816 (check_status_catch_solib): Update.
6817 * progspace.c (clear_program_space_solib_cache): Update.
6818 * solib.c (update_solib_list): Update.
6819
894882e3
TT
68202018-05-29 Tom Tromey <tom@tromey.com>
6821
6822 * python/py-type.c (typy_richcompare): Update.
6823 * guile/scm-type.c (tyscm_equal_p_type_smob): Update.
6824 * gdbtypes.h (types_deeply_equal): Return bool.
6825 (types_equal): Likewise.
6826 * gdbtypes.c (type_equality_entry_d): Remove typedef. Don't
6827 declare VEC.
6828 (check_types_equal): Change worklist to std::vector. Return
6829 bool.
6830 (struct type_equality_entry): Add constructor.
6831 (compare_maybe_null_strings): Return bool.
6832 (check_types_worklist): Return bool. Change worklist to
6833 std::vector.
6834 (types_deeply_equal): Use std::vector.
6835 (types_equal): Return bool.
6836 (compare_maybe_null_strings): Simplify.
6837
10b2ded4
TT
68382018-05-29 Tom Tromey <tom@tromey.com>
6839
6840 * record-btrace.c (tp_t): Remove typedef. Don't declare VEC.
6841
4f7deebe
TT
68422018-05-29 Tom Tromey <tom@tromey.com>
6843
6844 * objc-lang.h: Don't include cp-support.h.
6845 * common/gdb_vecs.h (const_char_ptr): Remove typedef. Don't
6846 declare VEC.
6847
b8283aea
TT
68482018-05-27 Tom Tromey <tom@tromey.com>
6849
6850 * Makefile.in (DEPFILES): Don't reference REMOTE_OBS.
6851
41a883c8
TT
68522018-05-25 Tom Tromey <tom@tromey.com>
6853
6854 * value.c (value::location): Initialize.
6855
bf259e25
TT
68562018-05-25 Tom Tromey <tom@tromey.com>
6857
6858 * dbxread.c (init_bincl_list): Remove.
6859 (bincl_list): Now a std::vector.
6860 (bincls_allocated, next_bincl): Remove.
6861 (free_bincl_list, do_free_bincl_list_cleanup)
6862 (make_cleanup_free_bincl_list): Remove.
6863 (dbx_read_symtab, elfstab_build_psymtabs): Use scoped_restore,
6864 unique_xmalloc_ptr.
6865 (find_corresponding_bincl_psymtab, read_dbx_symtab): Update.
6866 (struct header_file_location): Add constructor.
6867 (add_bincl_to_list): Remove.
6868
d525a99b
TT
68692018-05-25 Tom Tromey <tom@tromey.com>
6870
6871 * tui/tui.c (tui_enable): Update.
6872 * mi/mi-interp.c (mi_interp::init): Update.
6873 * interps.h (class interp) <name>: New method.
6874 <m_name>: Rename from name.
6875 (~scoped_restore_interp): Update.
6876 * interps.c (interp::interp): Update.
6877 (interp_add, interp_set, interp_lookup_existing)
6878 (current_interp_named_p): Update.
6879
da505cff
TT
68802018-05-25 Tom Tromey <tom@tromey.com>
6881
6882 * interps.c (interp_name): Remove.
6883 * mi/mi-interp.c (mi_interp::init): Update.
6884 * interps.h (interp_name): Remove.
6885 (~scoped_restore_interp): Update.
6886 * tui/tui.c (tui_enable): Update.
6887
29f94340
TT
68882018-05-25 Tom Tromey <tom@tromey.com>
6889
6890 * utils.c (fputs_maybe_filtered): Update.
6891 * linespec.c (decode_line_full): Update.
6892 * mi/mi-interp.c (mi_on_normal_stop_1, mi_tsv_modified)
6893 (mi_print_breakpoint_for_event, mi_solib_loaded)
6894 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
6895 (mi_user_selected_context_changed): Update.
6896 * mi/mi-main.c (mi_execute_command): Update.
6897 * cli/cli-script.c (execute_control_command): Update.
6898 * python/python.c (execute_gdb_command): Update.
6899 * solib.c (info_sharedlibrary_command): Update.
6900 * interps.c (interp_ui_out): Remove.
6901 * interps.h (interp_ui_out): Remove.
6902
716b8bc5
TT
69032018-05-25 Tom Tromey <tom@tromey.com>
6904
6905 * tui/tui-interp.c (as_tui_interp): Use dynamic_cast.
6906 * mi/mi-interp.c (as_mi_interp): Use dynamic_cast.
6907 * cli/cli-interp.c (as_cli_interp): Use dynamic_cast.
6908
753ff9bd
TT
69092018-05-25 Tom Tromey <tom@tromey.com>
6910
6911 * cli/cli-interp.c (safe_execute_command): Use scoped_restore.
6912 * interps.c (interp_exec): Use scoped_restore.
6913
5ca3b260
TT
69142018-05-25 Tom Tromey <tom@tromey.com>
6915
6916 * remote.c (remote_target::remote_file_get): Use
6917 gdb::byte_vector.
6918 (remote_target::remote_file_put): Likewise.
6919
3173aa2f
TT
69202018-05-25 Tom Tromey <tom@tromey.com>
6921
6922 * coff-pe-read.c (struct read_pe_section_data) <section_name>: Now
6923 a std::string.
6924 (get_pe_section_index, add_pe_exported_sym): Update.
6925 (read_pe_exported_syms): Use gdb::def_vector.
6926
09a5e1b5
TT
69272018-05-25 Tom Tromey <tom@tromey.com>
6928
6929 * frame.c (remove_prev_frame): Remove.
6930 (get_prev_frame_if_no_cycle): Use TRY/CATCH.
6931
d8dab6c3
MR
69322018-05-25 Maciej W. Rozycki <macro@mips.com>
6933
6934 * mips-linux-tdep.h (mips_supply_fpregset, mips_fill_fpregset):
6935 Remove prototypes.
6936 * mips-linux-nat.c (supply_fpregset): Always call
6937 `mips64_supply_fpregset' rather than `mips_supply_fpregset'.
6938 (fill_fpregset): Always call `mips64_fill_fpregset' rather than
6939 `mips_fill_fpregset'.
6940 * mips-linux-tdep.c (mips_supply_fpregset)
6941 (mips_supply_fpregset_wrapper, mips_fill_fpregset)
6942 (mips_fill_fpregset_wrapper): Remove functions.
6943 (mips64_supply_fpregset, mips64_fill_fpregset): Update comments.
6944 (mips_linux_fpregset): Remove variable.
6945 (mips_linux_iterate_over_regset_sections): Use
6946 `mips64_linux_fpregset' in place of `mips_linux_fpregset'.
6947 (mips_linux_o32_sigframe_init): Remove comment.
6948
3c69da40
PA
69492018-05-25 Pedro Alves <palves@redhat.com>
6950
6951 * remote.c (struct vCont_action_support, MAXTHREADLISTRESULTS)
6952 (struct readahead_cache, struct packet_reg, struct
6953 remote_arch_state, class remote_state): Move higher up in the
6954 file.
6955 (remote_target::m_remote_state): Now an object instead of a pointer.
6956 (remote_target::get_remote_state): Adjust.
6957
39f0c204
AB
69582018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
6959
6960 * stack.c (select_and_print_frame): Delete.
6961 (struct function_bounds): Move struct within function.
6962 (func_command): Most content moved into new function
6963 find_frame_for_function, use new function, print result, add
6964 function comment.
6965 (find_frame_for_function): New function, now returns a result.
6966
d392224a
PW
69672018-05-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6968
6969 * stack.c (iterate_over_block_arg_vars): Fix comment.
6970 (print_frame_arg_vars): Pass stream in cb_data, not gdb_stdout.
6971
45f25d6c
AB
69722018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
6973
6974 PR gdb/23203
6975 * frame.c
6976 (scoped_restore_selected_frame::scoped_restore_selected_frame):
6977 Define.
6978 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
6979 Define.
6980 * frame.h (class scoped_restore_selected_frame): New class.
6981 * stack.c (print_frame_local_vars): Remove catching and rethrowing
6982 of any exception, use scoped_restore_selected_frame to restore the
6983 frame instead.
6984
da05d921
PA
69852018-05-24 Pedro Alves <palves@redhat.com>
6986
6987 * darwin-nat.h (darwin_nat_target::create_inferior): Mark with
6988 override.
6989
a8be540e
TT
69902018-05-23 Tom Tromey <tom@tromey.com>
6991
6992 * complaints.c (struct complaints): Remove.
6993 (symfile_complaint_book): Remove.
6994 (series): New global.
6995 (complaint_internal): Update.
6996 (clear_complaints): Update.
6997
ff1cf532
TT
69982018-05-23 Tom Tromey <tom@tromey.com>
6999
7000 * complaints.c (counters): New global.
7001 (struct complain): Remove.
7002 (struct complaints) <root>: Remove.
7003 (complaint_sentinel): Remove.
7004 (symfile_complaint_book): Update.
7005 (find_complaint) Remove.
7006 (complaint_internal, clear_complaints): Update.
7007
7ff88174
TT
70082018-05-23 Tom Tromey <tom@tromey.com>
7009
7010 * complaints.c (struct complain) <file, line>: Remove.
7011 (find_complaint): Remove file, line parameters.
7012 (complaint_internal): Update.
7013
de54e1a5
TT
70142018-05-23 Tom Tromey <tom@tromey.com>
7015
7016 * complaints.c (vcomplaint): Remove.
7017 (complaint_internal) Merge in contents of vcomplaint.
7018
2ac237e5
TT
70192018-05-23 Tom Tromey <tom@tromey.com>
7020
7021 * complaints.c (struct complaints) <explanation>: Remove.
7022 (symfile_explanations): Remove.
7023 (symfile_complaint_book): Update.
7024 (vcomplaint): Update.
7025 (struct explanation): Remove.
7026
b98664d3
TT
70272018-05-23 Tom Tromey <tom@tromey.com>
7028
7029 * complaints.c (symfile_complaints): Remove.
7030 (complaint_internal): Remove "complaints" parameter.
7031 (clear_complaints, vcomplaint): Remove "c" parameter.
7032 (get_complaints): Remove.
7033 * dwarf2read.c (dwarf2_statement_list_fits_in_line_number_section_complaint)
7034 (dwarf2_debug_line_missing_file_complaint)
7035 (dwarf2_debug_line_missing_end_sequence_complaint)
7036 (dwarf2_complex_location_expr_complaint)
7037 (dwarf2_const_value_length_mismatch_complaint)
7038 (dwarf2_section_buffer_overflow_complaint)
7039 (dwarf2_macro_malformed_definition_complaint)
7040 (dwarf2_invalid_attrib_class_complaint)
7041 (create_addrmap_from_index, dw2_symtab_iter_next)
7042 (dw2_expand_marked_cus)
7043 (dw2_debug_names_iterator::find_vec_in_debug_names)
7044 (dw2_debug_names_iterator::next, dw2_debug_names_iterator::next)
7045 (create_debug_type_hash_table, init_cutu_and_read_dies)
7046 (partial_die_parent_scope, add_partial_enumeration)
7047 (skip_one_die, fixup_go_packaging, quirk_rust_enum, process_die)
7048 (dwarf2_compute_name, dwarf2_physname, read_namespace_alias)
7049 (read_import_statement, read_file_scope, create_dwo_cu_reader)
7050 (create_cus_hash_table, create_dwp_hash_table)
7051 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
7052 (dwarf2_rnglists_process, dwarf2_ranges_process)
7053 (dwarf2_add_type_defn, dwarf2_attach_fields_to_type)
7054 (dwarf2_add_member_fn, get_alignment, maybe_set_alignment)
7055 (handle_struct_member_die, process_structure_scope)
7056 (read_array_type, read_common_block, read_module_type)
7057 (read_tag_pointer_type, read_typedef, read_base_type)
7058 (read_subrange_type, load_partial_dies, partial_die_info::read)
7059 (partial_die_info::read, partial_die_info::read)
7060 (partial_die_info::read, read_checked_initial_length_and_offset)
7061 (dwarf2_string_attr, read_formatted_entries)
7062 (dwarf_decode_line_header)
7063 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
7064 (new_symbol, dwarf2_const_value_attr, lookup_die_type)
7065 (read_type_die_1, determine_prefix, dwarf2_get_ref_die_offset)
7066 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
7067 (get_signatured_type, get_DW_AT_signature_type)
7068 (decode_locdesc, file_file_name, consume_improper_spaces)
7069 (skip_form_bytes, skip_unknown_opcode, dwarf_parse_macro_header)
7070 (dwarf_decode_macro_bytes, dwarf_decode_macros)
7071 (dwarf2_symbol_mark_computed, set_die_type)
7072 (read_attribute_value): Update.
7073 * stap-probe.c (handle_stap_probe, get_stap_base_address):
7074 Update.
7075 * dbxread.c (unknown_symtype_complaint)
7076 (lbrac_mismatch_complaint, repeated_header_complaint)
7077 (set_namestring, function_outside_compilation_unit_complaint)
7078 (read_dbx_symtab, process_one_symbol): Update.
7079 * gdbtypes.c (stub_noname_complaint): Update.
7080 * windows-nat.c (handle_unload_dll): Update.
7081 * coffread.c (coff_symtab_read, enter_linenos, decode_type)
7082 (decode_base_type): Update.
7083 * xcoffread.c (bf_notfound_complaint, ef_complaint)
7084 (eb_complaint, record_include_begin, record_include_end)
7085 (enter_line_range, xcoff_next_symbol_text, read_xcoff_symtab)
7086 (process_xcoff_symbol, read_symbol)
7087 (function_outside_compilation_unit_complaint)
7088 (scan_xcoff_symtab): Update.
7089 * machoread.c (macho_symtab_read, macho_add_oso_symfile): Update.
7090 * buildsym.c (finish_block_internal, make_blockvector)
7091 (end_symtab_get_static_block, augment_type_symtab): Update.
7092 * dtrace-probe.c (dtrace_process_dof)
7093 (dtrace_static_probe_ops::get_probes): Update.
7094 * complaints.h (struct complaint): Don't declare.
7095 (symfile_complaints): Remove.
7096 (complaint_internal): Remove "complaints" parameter.
7097 (complaint): Likewise.
7098 (clear_complaints): Likewise.
7099 * symfile.c (syms_from_objfile_1, finish_new_objfile)
7100 (reread_symbols): Update.
7101 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
7102 (dwarf2_frame_cache, decode_frame_entry): Update.
7103 * dwarf2loc.c (dwarf_reg_to_regnum): Update.
7104 * objc-lang.c (lookup_objc_class, lookup_child_selector)
7105 (info_selectors_command): Update.
7106 * macrotab.c (macro_include, check_for_redefinition)
7107 (macro_undef): Update.
7108 * objfiles.c (filter_overlapping_sections): Update.
7109 * stabsread.c (invalid_cpp_abbrev_complaint)
7110 (reg_value_complaint, stabs_general_complaint, dbx_lookup_type)
7111 (define_symbol, error_type, read_type, rs6000_builtin_type)
7112 (stabs_method_name_from_physname, read_member_functions)
7113 (read_cpp_abbrev, read_baseclasses, read_tilde_fields)
7114 (attach_fields_to_type, complain_about_struct_wipeout)
7115 (read_range_type, read_args, common_block_start)
7116 (common_block_end, cleanup_undefined_types_1, scan_file_globals):
7117 Update.
7118 * mdebugread.c (index_complaint, unknown_ext_complaint)
7119 (basic_type_complaint, bad_tag_guess_complaint)
7120 (bad_rfd_entry_complaint, unexpected_type_code_complaint)
7121 (reg_value_complaint, parse_symbol, parse_type, upgrade_type)
7122 (parse_procedure, parse_lines)
7123 (function_outside_compilation_unit_complaint)
7124 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref)
7125 (bad_tag_guess_complaint, reg_value_complaint): Update.
7126 * cp-support.c (demangled_name_complaint): Update.
7127 * macroscope.c (sal_macro_scope): Update.
7128 * dwarf-index-write.c (class debug_names): Update.
7129
4e9668d0
TT
71302018-05-23 Tom Tromey <tom@tromey.com>
7131
7132 * complaints.c (clear_complaints): Remove "noisy" parameter.
7133 * complaints.h (clear_complaints): Update.
7134 * symfile.c (syms_from_objfile_1, finish_new_objfile)
7135 (reread_symbols): Update.
7136
43ba33c7
TT
71372018-05-23 Tom Tromey <tom@tromey.com>
7138
7139 * complaints.c (enum complaint_series): Remove FIRST_MESSAGE,
7140 SUBSEQUENT_MESSAGE.
7141 (vcomplaint, clear_complaints): Update.
7142 (symfile_explanations): Remove some messages.
7143
2b9496b2
TT
71442018-05-23 Tom Tromey <tom@tromey.com>
7145
7146 * complaints.c (internal_complaint): Remove.
7147 * complaints.h (internal_complaint): Remove.
7148
35f1fea3
MR
71492018-05-22 Maciej W. Rozycki <macro@mips.com>
7150
7151 * i387-tdep.c (i387_collect_xsave): Make `i' unsigned.
7152
6b8edb51
PA
71532018-05-22 Pedro Alves <palves@redhat.com>
7154
7155 * remote-fileio.c (remote_fileio_reply, remote_fileio_ioerror)
7156 (remote_fileio_badfd, remote_fileio_return_errno)
7157 (remote_fileio_return_success, remote_fileio_func_open)
7158 (remote_fileio_func_open, remote_fileio_func_close)
7159 (remote_fileio_func_read, remote_fileio_func_write)
7160 (remote_fileio_func_lseek, remote_fileio_func_rename)
7161 (remote_fileio_func_unlink, remote_fileio_func_stat)
7162 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
7163 (remote_fileio_func_isatty, remote_fileio_func_system): Add
7164 remote_target parameter.
7165 (remote_fio_func_map) <func>: Add remote_target parameter.
7166 (do_remote_fileio_request, remote_fileio_request):
7167 * remote-fileio.h (remote_fileio_request):
7168 * remote-notif.c (remote_notif_ack, remote_notif_parse, ): Add
7169 remote_target parameter.
7170 (remote_notif_process, handle_notification): Adjust to pass down
7171 the remote.
7172 (remote_notif_state_allocate): Add remote_target parameter. Save
7173 it.
7174 * remote-notif.h (struct remote_target): Forward declare.
7175 (struct notif_client) <parse, ack, can_get_pending_events>: Add
7176 remote_target parameter.
7177 (struct remote_notif_state) <remote>: New field.
7178 (remote_notif_ack, remote_notif_parse): Add remote_target
7179 parameter.
7180 (remote_notif_state_allocate, remote_notif_state_allocate): Add
7181 remote_target parameter.
7182 * remote.c (OPAQUETHREADBYTES, threadref, gdb_ext_thread_info)
7183 (threads_listing_context, rmt_thread_action, protocol_feature)
7184 (packet_reg, stop_reply, stop_reply_p, enum packet_support)
7185 (packet_result, struct threads_listing_context, remote_state):
7186 Move definitions and declarations higher up.
7187 (remote_target) <~remote_target>: Declare.
7188 (remote_download_command_source, remote_file_put, remote_file_get)
7189 (remote_file_delete, remote_hostio_pread, remote_hostio_pwrite)
7190 (remote_hostio_pread_vFile, remote_hostio_send_command)
7191 (remote_hostio_set_filesystem, remote_hostio_open)
7192 (remote_hostio_close, remote_hostio_unlink, remote_state)
7193 (get_remote_state, get_remote_packet_size, get_memory_packet_size)
7194 (get_memory_write_packet_size, get_memory_read_packet_size)
7195 (append_pending_thread_resumptions, remote_detach_1)
7196 (append_resumption, remote_resume_with_vcont)
7197 (add_current_inferior_and_thread, wait_ns, wait_as)
7198 (process_stop_reply, remote_notice_new_inferior)
7199 (process_initial_stop_replies, remote_add_thread)
7200 (btrace_sync_conf, remote_btrace_maybe_reopen)
7201 (remove_new_fork_children, kill_new_fork_children)
7202 (discard_pending_stop_replies, stop_reply_queue_length)
7203 (check_pending_events_prevent_wildcard_vcont)
7204 (discard_pending_stop_replies_in_queue, stop_reply)
7205 (remote_notif_remove_queued_reply, stop_reply *queued_stop_reply)
7206 (peek_stop_reply, remote_parse_stop_reply, remote_stop_ns)
7207 (remote_interrupt_as, remote_interrupt_ns)
7208 (remote_get_noisy_reply, remote_query_attached)
7209 (remote_add_inferior, remote_current_thread, get_current_thread)
7210 (set_thread, set_general_thread, set_continue_thread)
7211 (set_general_process, write_ptid)
7212 (remote_unpack_thread_info_response, remote_get_threadinfo)
7213 (parse_threadlist_response, remote_get_threadlist)
7214 (remote_threadlist_iterator, remote_get_threads_with_ql)
7215 (remote_get_threads_with_qxfer)
7216 (remote_get_threads_with_qthreadinfo, extended_remote_restart)
7217 (get_offsets, remote_check_symbols, remote_supported_packet)
7218 (remote_query_supported, remote_packet_size)
7219 (remote_serial_quit_handler, remote_detach_pid)
7220 (remote_vcont_probe, remote_resume_with_hc)
7221 (send_interrupt_sequence, interrupt_query)
7222 (remote_notif_get_pending_events, fetch_register_using_p)
7223 (send_g_packet, process_g_packet, fetch_registers_using_g)
7224 (store_register_using_P, store_registers_using_G)
7225 (set_remote_traceframe, check_binary_download)
7226 (remote_write_bytes_aux, remote_write_bytes, remote_read_bytes_1)
7227 (remote_xfer_live_readonly_partial, remote_read_bytes)
7228 (remote_send_printf, remote_flash_write, readchar)
7229 (remote_serial_write, putpkt, putpkt_binary, skip_frame)
7230 (read_frame, getpkt, getpkt_or_notif_sane_1, getpkt_sane)
7231 (getpkt_or_notif_sane, remote_vkill, remote_kill_k)
7232 (extended_remote_disable_randomization, extended_remote_run)
7233 (send_environment_packet, extended_remote_environment_support)
7234 (extended_remote_set_inferior_cwd, remote_write_qxfer)
7235 (remote_read_qxfer, push_stop_reply, vcont_r_supported)
7236 (packet_command): Now methods of ...
7237 (remote_target): ... this class.
7238 (m_remote_state) <remote_target>: New field.
7239 (struct remote_state) <stop_reply_queue,
7240 remote_async_inferior_event_token, wait_forever_enabled_p>: New
7241 fields.
7242 (remote_state::remote_state): Allocate stop_reply_queue.
7243 (remote_state): Delete global.
7244 (get_remote_state_raw): Delete.
7245 (remote_target::get_remote_state): Allocate m_remote_state on
7246 demand.
7247 (get_current_remote_target): New.
7248 (remote_ops, extended_remote_ops): Delete.
7249 (wait_forever_enabled_p, remote_async_inferior_event_token):
7250 Delete, moved to struct remote_state.
7251 (remote_target::close): Delete self. Destruction bits split to
7252 ...
7253 (remote_target::~remote_target): ... this.
7254 (show_memory_packet_size): Adjust to use
7255 get_current_remote_target.
7256 (struct protocol_feature) <func>: Add remote_target parameter.
7257 All callers adjusted.
7258 (curr_quit_handler_target): New.
7259 (remote_serial_quit_handler): Reimplement.
7260 (remote_target::open_1): Adjust to use get_current_remote_target.
7261 Heap-allocate remote_target/extended_remote_target instances.
7262 (vcont_builder::vcont_builder): Add remote_target parameter, and
7263 save it in m_remote. All callers adjusted.
7264 (vcont_builder::m_remote): New field.
7265 (vcont_builder::restart, vcont_builder::flush)
7266 (vcont_builder::push_action): Use it.
7267 (remote_target::commit_resume): Use it.
7268 (struct queue_iter_param) <remote>: New field.
7269 (remote_target::remove_new_fork_children): Fill in 'remote' field.
7270 (check_pending_event_prevents_wildcard_vcont_callback_data): New.
7271 (check_pending_event_prevents_wildcard_vcont_callback)
7272 (remote_target::check_pending_events_prevent_wildcard_vcont)
7273 (remote_target::discard_pending_stop_replies)
7274 (remote_target::discard_pending_stop_replies_in_queue)
7275 (remote_target::remote_notif_remove_queued_reply): Fill in
7276 'remote' field.
7277 (remote_notif_get_pending_events): New.
7278 (remote_target::readchar, remote_target::remote_serial_write):
7279 Save/restore curr_quit_handler_target.
7280 (putpkt): New.
7281 (kill_new_fork_children): Fill in 'remote' field.
7282 (packet_command): Use get_current_remote_target, defer to
7283 remote_target method of same name.
7284 (scoped_remote_fd::scoped_remote_fd): Add 'remote_target'
7285 parameter, and save it in m_remote. All callers adjusted.
7286 (scoped_remote_fd::release): Use m_remote.
7287 (scoped_remote_fd::m_remote): New field.
7288 (remote_file_put, remote_file_get, remote_file_delete): Use
7289 get_current_remote_target, defer to remote_target method of same
7290 name.
7291 (remote_btrace_reset): Add remote_state paremeter. Update all
7292 callers.
7293 (remote_async_inferior_event_handler). Pass down 'data'.
7294 (remote_new_objfile): Use get_current_remote_target.
7295 (remote_target::vcont_r_supported): New.
7296 (set_range_stepping): Use get_current_remote_target and
7297 remote_target::vcont_r_supported.
7298 (_initialize_remote): Don't allocate 'remote_state' and
7299 'stop_reply_queue' globals.
7300 * remote.h (struct remote_target): Forward declare.
7301 (getpkt, putpkt, remote_notif_get_pending_events): Add
7302 'remote_target' parameter.
7303
f5db4863
PA
73042018-05-22 Pedro Alves <palves@redhat.com>
7305
7306 * remote.c (vcont_builder): Now a class. Make all data members
7307 private.
7308 (vcont_builder) <vcont_builder, restart, flush, push_action>:
7309 Declare methods.
7310 (vcont_builder_restart): Rename to ...
7311 (vcont_builder::restart): ... this.
7312 (vcont_builder_flush): Rename to ...
7313 (vcont_builder::flush): ... this.
7314 (vcont_builder_push_action): Rename to ...
7315 (vcont_builder::push_action): ... this.
7316 (remote_target::commit_resume): Adjust.
7317
cc0be08f
PA
73182018-05-22 Pedro Alves <palves@redhat.com>
7319
7320 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE): Rename to ...
7321 (DEFAULT_MAX_MEMORY_PACKET_SIZE_FIXED): ... this.
7322 (get_fixed_memory_packet_size): New.
7323 (get_memory_packet_size): Use it.
7324 (set_memory_packet_size): Don't override the config size with
7325 DEFAULT_MAX_MEMORY_PACKET_SIZE.
7326 (show_memory_packet_size): Use get_fixed_memory_packet_size.
7327 Don't refer to get_memory_packet_size if not connected to a remote
7328 target. Show "(default)" if configured size is 0.
7329
9607784a
PA
73302018-05-22 Pedro Alves <palves@redhat.com>
7331
7332 * remote.c (remote_target::mourn_inferior): Move
7333 discard_pending_stop_replies call here from ...
7334 (_initialize_remote): ... here.
7335
0e9a6b2f
PA
73362018-05-22 Pedro Alves <palves@redhat.com>
7337
7338 * remote.c (compare_section_command): Remove set_general_process
7339 call.
7340
43c3a0e4
PA
73412018-05-22 Pedro Alves <palves@redhat.com>
7342
7343 * remote.c (struct packet_reg, struct remote_arch_state):
7344 Move higher up in the file.
7345 (remote_state) <m_arch_states>: Store remote_arch_state values
7346 instead of remote_arch_state pointers.
7347 (remote_state::get_remote_arch_state): Adjust.
7348
9d6eea31
PA
73492018-05-22 Pedro Alves <palves@redhat.com>
7350
7351 * remote.c: Include <unordered_map>.
7352 (remote_state): Now a class.
7353 (remote_state) <get_remote_arch_state>: Declare method.
7354 <get_remote_arch_state>: New field.
7355 (remote_arch_state) <remote_arch_state>: Declare ctor.
7356 <regs>: Now a unique_ptr.
7357 (remote_gdbarch_data_handle): Delete.
7358 (get_remote_arch_state): Delete.
7359 (remote_state::get_remote_arch_state): New.
7360 (get_remote_state): Adjust to call remote_state's
7361 get_remote_arch_state method.
7362 (init_remote_state): Delete, bits factored out to ...
7363 (remote_arch_state::remote_arch_state): ... this new method.
7364 (get_remote_packet_size, get_memory_packet_size)
7365 (process_g_packet, remote_target::fetch_registers)
7366 (remote_target::prepare_to_store, store_registers_using_G)
7367 (remote_target::store_registers, remote_target::get_trace_status):
7368 Adjust to call remote_state's method.
7369 (_initialize_remote): Remove reference to
7370 remote_gdbarch_data_handle.
7371
dd194f6b
PA
73722018-05-22 Pedro Alves <palves@redhat.com>
7373
7374 * remote.c (struct readahead_cache) <invalidate, invalidate_fd,
7375 pread>: New method declarations.
7376 (remote_target::open_1): Adjust.
7377 (readahead_cache_invalidate): Rename to ...
7378 (readahead_cache::invalidate): ... this, and adjust to be a class
7379 method.
7380 (readahead_cache_invalidate_fd): Rename to ...
7381 (readahead_cache::invalidate_fd): ... this, and adjust to be a
7382 class method.
7383 (remote_hostio_pwrite): Adjust.
7384 (remote_hostio_pread_from_cache): Rename to ...
7385 (readahead_cache::pread): ... this, and adjust to be a class
7386 method.
7387 (remote_hostio_close): Adjust.
7388
440b7aec
PA
73892018-05-22 Pedro Alves <palves@redhat.com>
7390
7391 * remote.c (remote_hostio_close_cleanup): Delete.
7392 (class scoped_remote_fd): New.
7393 (remote_file_put, remote_file_get): Use it.
7394
de44f5a7
PA
73952018-05-22 Pedro Alves <palves@redhat.com>
7396
7397 (struct vCont_action_support): Use bool and initialize all fields.
7398 (struct readahead_cache): Initialize all fields.
7399 (remote_state): Use bool and initialize all fields.
7400 (remote_state::remote_state, remote_state::~remote_state): New.
7401 (new_remote_state): Delete.
7402 (_initialize_remote): Use new to allocate remote_state.
7403
b1b60145
PA
74042018-05-22 Pedro Alves <palves@redhat.com>
7405 張俊芝 <zjz@zjz.name>
7406
7407 PR gdb/22973
7408 * c-exp.y: Include "c-support.h".
7409 (parse_number, c_parse_escape, lex_one_token): Use TOLOWER instead
7410 of tolower. Use c_ident_is_alpha to scan names.
7411 * c-lang.c: Include "c-support.h".
7412 (convert_ucn, convert_octal, convert_hex, convert_escape): Use
7413 ISXDIGIT instead of isxdigit and ISDIGIT instead of isdigit.
7414 * c-support.h: New file, with bits factored out from ...
7415 * cp-name-parser.y: ... this file.
7416 Include "c-support.h".
7417 (cp_ident_is_alpha, cp_ident_is_alnum): Deleted, moved to
7418 c-support.h and renamed.
7419 (symbol_end, yylex): Adjust.
7420
0ec848ad
PFC
74212018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7422
7423 * arch/ppc-linux-common.c (ppc_linux_has_isa205): Change the
7424 parameter type to CORE_ADDR.
7425 * arch/ppc-linux-common.h (ppc_linux_has_isa205): Change the
7426 parameter type in declaration to CORE_ADDR.
7427 * ppc-linux-tdep.c (ppc_linux_core_read_description): Call
7428 target_auxv_search to get AT_HWCAP and use the result to get the
7429 target description.
7430 * ppc-linux-nat.c (ppc_linux_get_hwcap): Change the return type
7431 to CORE_ADDR. Remove the cast of the return value to unsigned
7432 long. Fix error predicate of target_auxv_search.
7433 (ppc_linux_nat_target::read_description): Change the type of the
7434 hwcap variable to CORE_ADDR.
7435
0fb2aaa1
PFC
74362018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7437
7438 * rs6000-tdep.c (rs6000_gdbarch_init): Assign 1 to have_dfp only
7439 if the size of fpscr is larger than 32 bits.
7440
2c3305f6
PFC
74412018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7442
7443 * ppc-linux-tdep.c (ppc_linux_vsxregset): New function.
7444 (ppc32_linux_vsxregmap): New global.
7445 (ppc32_linux_vsxregset): Initialize with ppc32_linux_vsxregmap,
7446 regcache_supply_regset, and regcache_collect_regset.
7447 * ppc-linux-tdep.h (ppc_linux_vsxregset): Declare.
7448 * ppc-linux-nat.c (supply_vsxregset, fill_vsxregset): Remove.
7449 (fetch_vsx_register, store_vsx_register): Remove.
7450 (fetch_vsx_registers): Add regno parameter. Get regset using
7451 ppc_linux_vsxregset. Use regset to supply registers.
7452 (store_vsx_registers): Add regno parameter. Get regset using
7453 ppc_linux_vsxregset. Use regset to collect registers.
7454 (fetch_register): Call fetch_vsx_registers instead of
7455 fetch_vsx_register.
7456 (store_register): Call store_vsx_registers instead of
7457 store_vsx_register.
7458 (fetch_ppc_registers): Call fetch_vsx_registers with -1 for the
7459 new regno parameter.
7460 (store_ppc_registers): Call store_vsx_registers with -1 for the
7461 new regno parameter.
7462 * rs6000-tdep.c (ppc_vsx_support_p, ppc_supply_vsxreget)
7463 (ppc_collect_vsxregset): Remove.
7464
1d75a658
PFC
74652018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7466
7467 * ppc-tdep.h (struct ppc_reg_offsets): Remove vector register
7468 offset fields.
7469 * ppc-fbsd-tdep.c (ppc32_fbsd_reg_offsets): Remove initializers
7470 for vector register offset fields.
7471 (ppc64_fbsd_reg_offsets): Likewise.
7472 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
7473 to vector register offset fields.
7474 * ppc-obsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
7475 to vector register offset fields.
7476 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Remove assignment to
7477 vector register offset fields.
7478 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Remove
7479 initializers for vector register offset fields.
7480 (rs6000_aix64_reg_offsets): Likewise.
7481 * rs6000-tdep.c (ppc_vrreg_offset): Remove.
7482 (ppc_supply_vrregset): Remove.
7483 (ppc_collect_vrregset): Remove.
7484 * ppc-linux-tdep.c (ppc_linux_collect_vrregset): New function.
7485 (ppc_linux_vrregset) : New function.
7486 (ppc32_le_linux_vrregmap, ppc32_be_linux_vrregmap)
7487 (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): New globals.
7488 (ppc32_linux_vrregset): Remove.
7489 (ppc_linux_iterate_over_regset_sections): Call ppc_linux_vrregset
7490 and use result instead of ppc32_linux_vrregset.
7491 (ppc32_linux_reg_offsets): Remove initializers for vector register
7492 offset fields.
7493 (ppc64_linux_reg_offsets): Likewise.
7494 * ppc-linux-tdep.h (ppc_linux_vrregset): New declaration.
7495 * ppc-linux-nat.c: Include regset.h.
7496 (gdb_vrregset_t): Adjust comment to account for little-endian
7497 mode.
7498 (supply_vrregset, fill_vrregset): Remove.
7499 (fetch_altivec_register, store_altivec_register): Remove.
7500 (fetch_altivec_registers): Add regno parameter. Get regset using
7501 ppc_linux_vrregset. Use regset to supply registers.
7502 (store_altivec_registers): Add regno parameter. Get regset using
7503 ppc_linux_vrregset. Use regset to collect registers.
7504 (fetch_register): Call fetch_altivec_registers instead of
7505 fetch_altivec_register.
7506 (store_register): Call store_altivec_registers instead of
7507 store_altivec_register.
7508 (fetch_ppc_registers): Call fetch_altivec_registers with -1 for
7509 the new regno parameter.
7510 (store_ppc_registers): Call store_altivec_registers with -1 for
7511 the new regno parameter.
7512
d078308a
PFC
75132018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7514
7515 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_VRREGSET)
7516 (PPC_LINUX_SIZEOF_VSXREGSET): Define.
7517 * ppc-linux-nat.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
7518 (gdb_vrregset_t): Change array type size to
7519 PPC_LINUX_SIZEOF_VRREGSET.
7520 (gdb_vsxregset_t): Change array type size to
7521 PPC_LINUX_SIZEOF_VSXREGSET.
7522 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections):
7523 Change integer literals to PPC_LINUX_SIZEOF_VRREGSET and
7524 PPC_LINUX_SIZEOF_VSXREGSET.
7525
2e077f5e
PFC
75262018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7527
7528 * configure.nat <linux powerpc>: Add ppc-linux.o to NATDEPFILES.
7529 * ppc-linux-nat.c (ppc_linux_target_wordsize): Move to
7530 nat/ppc-linux.c.
7531 (ppc_linux_nat_target::auxv_parse): Get thread id tid. Call
7532 ppc_linux_target_wordsize with tid.
7533 (ppc_linux_nat_target::read_description): Call ppc_linux_target
7534 wordsize with tid.
7535 * nat/ppc-linux.c: Include nat/gdb_ptrace.h.
7536 (ppc64_64bit_inferior_p): Add static and inline specifiers.
7537 (ppc_linux_target_wordsize): Move here from ppc-linux-nat.c. Add
7538 tid parameter. Remove static specifier.
7539 * nat/ppc-linux.h (ppc64_64bit_inferior_p): Remove declaration.
7540 (ppc_linux_target_wordsize): New declaration.
7541
bd64614e
PFC
75422018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7543
7544 * arch/ppc-linux-common.c: New file.
7545 * arch/ppc-linux-common.h: New file.
7546 * arch/ppc-linux-tdesc.h: New file.
7547 * configure.tgt (powerpc*-*-linux*): Add arch/ppc-linux-common.o.
7548 * Makefile.in (ALL_TARGET_OBS): Add arch/ppc-linux-common.o.
7549 (HFILES_NO_SRCDIR): Add arch/ppc-linux-common.h and
7550 arch/ppc-linux-tdesc.h.
7551 * ppc-linux-nat.c: Include arch/ppc-linux-common.h and
7552 arch/ppc-linux-tdesc.h.
7553 (ppc_linux_nat_target::read_description): Remove target
7554 description matching code. Fill a ppc_linux_features struct and
7555 call ppc_linux_match_description with it. Move comment about ISA
7556 2.05 to ppc-linux-common.c.
7557 * ppc-linux-tdep.c: Include arch/ppc-linux-common.h and
7558 arch/ppc-linux-tdesc.h.
7559 (ppc_linux_core_read_description): Remove target description
7560 matching code. Fill a ppc_linux_features struct and call
7561 ppc_linux_match_description with it.
7562 * ppc-linux-tdep.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
7563 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
7564 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
7565 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
7566 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
7567 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
7568 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
7569 (tdesc_powerpc_e500l): Remove.
7570
241db429
JB
75712018-05-22 Joel Brobecker <brobecker@adacore.com>
7572
7573 * ada-lang.c (catch_assert_command): Pass empty string instead
7574 of NULL for excep_string argument.
7575
75d74cca
MR
75762018-05-22 Maciej W. Rozycki <macro@mips.com>
7577
7578 * mips-linux-nat.c (mips64_linux_register_addr): Return -1 if
7579 the width of the requested register exceeds the width of the
7580 `ptrace' data type.
7581
122b53ea
TT
75822018-05-21 Tom Tromey <tom@tromey.com>
7583
7584 * printcmd.c (output_command): Remove.
7585 (output_command_const): Rename to output_command.
7586 * valprint.h (output_command): Rename from output_command_const.
7587 * tracepoint.c (trace_dump_actions): Call output_command.
7588
bc18fbb5
TT
75892018-05-21 Tom Tromey <tom@tromey.com>
7590
7591 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
7592 (mi_cmd_catch_exception, mi_cmd_catch_handlers): Update.
7593 * ada-lang.h (create_ada_exception_catchpoint): Update.
7594 * ada-lang.c (struct ada_catchpoint) <excep_string>: Now a
7595 std::string.
7596 (create_excep_cond_exprs, ~ada_catchpoint)
7597 (should_stop_exception, print_one_exception)
7598 (print_mention_exception, print_recreate_exception): Update.
7599 (ada_get_next_arg): Remove.
7600 (catch_ada_exception_command_split): Use std::string. Change type
7601 of "excep_string", "cond_string".
7602 (catch_ada_exception_command): Update.
7603 (create_ada_exception_catchpoint): Change type of excep_string.
7604 (ada_exception_sal): Remove excep_string parameter.
7605 (~ada_catchpoint): Remove.
7606
790217f6
TT
76072018-05-21 Tom Tromey <tom@tromey.com>
7608
7609 * ada-lang.c (ada_collect_symbol_completion_matches): Remove
7610 cleanup.
7611
6f46ac85
TT
76122018-05-21 Tom Tromey <tom@tromey.com>
7613
7614 * ada-lang.c (ada_exception_message_1, ada_exception_message):
7615 Return unique_xmalloc_ptr.
7616 (print_it_exception): Update.
7617
15b6611c
TT
76182018-05-21 Tom Tromey <tom@tromey.com>
7619
7620 * tracepoint.c (trace_dump_actions): Use std::string.
7621
c0c9f665
TT
76222018-05-21 Tom Tromey <tom@tromey.com>
7623
7624 * symfile.c (reread_symbols): Use std::string for original_name.
7625
22ca247e
TT
76262018-05-21 Tom Tromey <tom@tromey.com>
7627
7628 * dwarf2read.c (dwarf2_read_debug_names): Use std::unique_ptr.
7629 (mapped_index_base): Use DISABLE_COPY_AND_ASSIGN. Default
7630 constructor.
7631
184cde75
SM
76322018-05-20 Simon Marchi <simon.marchi@polymtl.ca>
7633
7634 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Rename the wrong
7635 instance to...
7636 (HAVE_IS_TRIVIALLY_CONSTRUCTIBLE): ... this.
7637 * objfiles.c (get_objfile_bfd_data): Allocate
7638 objfile_per_bfd_storage with obstack_new when allocating on
7639 obstack.
7640
e39db4db
SM
76412018-05-20 Simon Marchi <simon.marchi@ericsson.com>
7642
7643 * ada-lang.c (cache_symbol): Use XOBNEW and/or XOBNEWVEC and/or
7644 OBSTACK_ZALLOC.
7645 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
7646 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
7647 * mdebugread.c (mdebug_build_psymtabs): Likewise.
7648 (add_pending): Likewise.
7649 (parse_symbol): Likewise.
7650 (parse_partial_symbols): Likewise.
7651 (psymtab_to_symtab_1): Likewise.
7652 (new_psymtab): Likewise.
7653 (elfmdebug_build_psymtabs): Likewise.
7654 * minsyms.c (terminate_minimal_symbol_table): Likewise.
7655 * objfiles.c (get_objfile_bfd_data): Likewise.
7656 (objfile_register_static_link): Likewise.
7657 * psymtab.c (allocate_psymtab): Likewise.
7658 * stabsread.c (read_member_functions): Likewise.
7659 * xcoffread.c (xcoff_end_psymtab): Likewise.
7660
284a0e3c
SM
76612018-05-20 Simon Marchi <simon.marchi@ericsson.com>
7662
7663 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Define if
7664 compiler supports std::is_trivially_constructible.
7665 * common/poison.h: Include obstack.h.
7666 (IsMallocable): Define to is_trivially_constructible if the
7667 compiler supports it, define to true_type otherwise.
7668 (xobnew): New.
7669 (XOBNEW): Redefine.
7670 (xobnewvec): New.
7671 (XOBNEWVEC): Redefine.
7672 * gdb_obstack.h (obstack_zalloc): New.
7673 (OBSTACK_ZALLOC): Redefine.
7674 (obstack_calloc): New.
7675 (OBSTACK_CALLOC): Redefine.
7676 (obstack_new): New.
7677 * gdbarch.sh: Include gdb_obstack in gdbarch.h.
7678 (gdbarch_obstack): New declaration in gdbarch.h, definition in
7679 gdbarch.c.
7680 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Use
7681 obstack_calloc/obstack_zalloc.
7682 (gdbarch_obstack_zalloc): Remove.
7683 * target-descriptions.c (tdesc_data_init): Use obstack_new.
7684
59f66be3
PW
76852018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7686
7687 * stack.c (backtrace_command_1): Remove useless variable int i.
7688
50c65c2d
PW
76892018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7690
7691 * stack.c (print_frame_info): Fix comment.
7692
7ff8cb8c
TT
76932018-05-18 Tom Tromey <tom@tromey.com>
7694
7695 * dwarf2read.c (struct dwz_file): Add constructor, initializers.
7696 <dwz_bfd>: Now a gdb_bfd_ref_ptr.
7697 (~dwarf2_per_objfile): Update
7698 (dwarf2_get_dwz_file): Use new.
7699 * dwarf2read.h (struct dwarf2_per_objfile) <dwz_file>: Now a
7700 unique_ptr.
7701
400174b1
TT
77022018-05-18 Tom Tromey <tom@tromey.com>
7703
7704 * dwarf2read.h (struct dwarf2_per_objfile) <dwp_file>: Now a
7705 unique_ptr.
7706 * dwarf2read.c (struct dwp_file): Add constructor and
7707 initializers.
7708 (open_and_init_dwp_file): Return a unique_ptr.
7709 (dwarf2_per_objfile, create_dwp_hash_table)
7710 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2)
7711 (lookup_dwo_unit_in_dwp): Update.
7712 (open_and_init_dwp_file, get_dwp_file): Update.
7713
3063847f
TT
77142018-05-18 Tom Tromey <tom@tromey.com>
7715
7716 * dwarf2read.c (dwarf2_per_objfile): Update.
7717 (struct mapped_index): Add initializers.
7718 (dwarf2_read_index): Use new.
7719 (dw2_symtab_iter_init): Update.
7720 * dwarf2read.h (struct dwarf2_per_objfile) <index_table>: Now a
7721 unique_ptr.
7722
d3d02dee
SM
77232018-05-18 Simon Marchi <simon.marchi@ericsson.com>
7724
7725 * dwarf2read.c (mapped_index) <total_size>: Remove.
7726
1d143c36
SM
77272018-05-18 Simon Marchi <simon.marchi@ericsson.com>
7728
7729 * unittests/format_pieces-selftests.c (test_format_specifier):
7730 Add ARI comments.
7731
ce1e8424
TT
77322018-05-18 Tom Tromey <tom@tromey.com>
7733
7734 * c-typeprint.c (maybe_print_hole): New function.
7735 (c_print_type_struct_field_offset): Update.
7736 (c_type_print_base_struct_union): Call maybe_print_hole.
7737
ddfe970e
KS
77382018-05-17 Keith Seitz <keiths@redhat.com>
7739
7740 * breakpoint.c (build_bpstat_chain): New function, moved from
7741 bpstat_stop_status.
7742 (bpstat_stop_status): Add optional parameter, `stop_chain'.
7743 If no stop chain is passed, call build_bpstat_chain to build it.
7744 * breakpoint.h (build_bpstat_chain): Declare.
7745 (bpstat_stop_status): Move documentation here from breakpoint.c.
7746 * infrun.c (handle_signal_stop): Before eliding inlined frames,
7747 build the stop chain and pass it to skip_inline_frames.
7748 Pass this stop chain to bpstat_stop_status.
7749 * inline-frame.c: Include breakpoint.h.
7750 (stopped_by_user_bp_inline_frame): New function.
7751 (skip_inline_frames): Add parameter `stop_chain'.
7752 Move documention to inline-frame.h.
7753 If non-NULL, use stopped_by_user_bp_inline_frame to determine
7754 whether the frame should be elided.
7755 * inline-frame.h (skip_inline_frames): Add parameter `stop_chain'.
7756 Add moved documentation and update for new parameter.
7757
b17992c1
SM
77582018-05-17 Simon Marchi <simon.marchi@ericsson.com>
7759
7760 PR cli/14975
7761 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7762 unittests/format_pieces-selftests.c.
7763 * common/format.h (format_piece) <operator==>: New.
7764 (format_pieces) <operator[]>: Remove.
7765 * common/format.c (format_pieces::format_pieces): Handle \e.
7766 * unittests/format_pieces-selftests.c: New.
7767
58f0c718
TT
77682018-05-17 Tom Tromey <tom@tromey.com>
7769
7770 PR symtab/23010:
7771 * dwarf2read.c (load_cu, dw2_do_instantiate_symtab)
7772 (dw2_instantiate_symtab): Add skip_partial parameter.
7773 (dw2_find_last_source_symtab, dw2_map_expand_apply)
7774 (dw2_lookup_symbol, dw2_expand_symtabs_for_function)
7775 (dw2_expand_all_symtabs, dw2_expand_symtabs_with_fullname)
7776 (dw2_expand_symtabs_matching_one)
7777 (dw2_find_pc_sect_compunit_symtab)
7778 (dw2_debug_names_lookup_symbol)
7779 (dw2_debug_names_expand_symtabs_for_function): Update.
7780 (init_cutu_and_read_dies): Add skip_partial parameter.
7781 (process_psymtab_comp_unit, build_type_psymtabs_1)
7782 (process_skeletonless_type_unit, load_partial_comp_unit)
7783 (psymtab_to_symtab_1): Update.
7784 (load_full_comp_unit): Add skip_partial parameter.
7785 (process_imported_unit_die, dwarf2_read_addr_index)
7786 (follow_die_offset, dwarf2_fetch_die_loc_sect_off)
7787 (dwarf2_fetch_constant_bytes, dwarf2_fetch_die_type_sect_off)
7788 (read_signatured_type): Update.
7789
3e618834
SM
77902018-05-17 Simon Marchi <simon.marchi@ericsson.com>
7791
7792 * value.c (release_value): Remove unused variable.
7793 (record_latest_value): Likewise.
7794 (access_value_history): Likewise.
7795 (preserve_values): Likewise.
7796
fe10fe31
TT
77972018-05-17 Tom Tromey <tom@tromey.com>
7798
7799 * extension.h (struct ext_lang_type_printers) <py_type_printers>:
7800 Initialize.
7801
1d761124
MR
78022018-05-16 Maciej W. Rozycki <macro@mips.com>
7803
7804 PR gdb/22286
7805 * linux-nat-trad.c (linux_nat_trad_target::fetch_register):
7806 Also handle registers whose width is not a multiple of
7807 PTRACE_TYPE_RET.
7808 (linux_nat_trad_target::store_register): Likewise.
7809
06333fea
TT
78102018-05-16 Tom Tromey <tom@tromey.com>
7811
7812 * gdbcore.h (core_bfd): Redefine.
7813 * corelow.c (core_target::close): Update.
7814 (core_target_open): Update.
7815 * progspace.h (struct program_space) <cbfd>: Now a
7816 gdb_bfd_ref_ptr.
7817
921222e2
TT
78182018-05-16 Tom Tromey <tom@tromey.com>
7819
7820 PR cli/19551:
7821 * symfile-add-flags.h (enum symfile_add_flags)
7822 <SYMFILE_NOT_FILENAME>: New constant.
7823 * symfile.c (read_symbols): Use SYMFILE_NOT_FILENAME. Get
7824 objfile name from BFD.
7825 (symbol_file_add_with_addrs): Check SYMFILE_NOT_FILENAME.
7826 * minidebug.c (find_separate_debug_file_in_section): Put
7827 ".gnu_debugdata" into BFD's file name.
7828
3acb7083
SM
78292018-05-16 Simon Marchi <simon.marchi@ericsson.com>
7830
7831 * regcache.c (regcache_read_ftype, regcache_write_ftype):
7832 Remove.
7833
561a72d4
TC
78342018-05-15 Tamar Christina <tamar.christina@arm.com>
7835
7836 PR binutils/21446
7837 * aarch64-tdep.c (aarch64_analyze_prologue,
7838 aarch64_software_single_step, aarch64_displaced_step_copy_insn):
7839 Indicate not interested in errors.
7840
4e6ff0e1
MR
78412018-05-15 Maciej W. Rozycki <macro@mips.com>
7842
7843 * mips-linux-nat.c (mips_linux_nat_target::fetch_registers):
7844 Supply the MIPS_ZERO_REGNUM register.
7845
ea33cd92
MR
78462018-05-15 Maciej W. Rozycki <macro@mips.com>
7847
7848 * mips-tdep.c (mask_address_var): Make variable static.
7849
2d79090e
TT
78502018-05-14 Tom Tromey <tom@tromey.com>
7851
7852 * dwarf2read.c (rust_union_quirks): Clear rust_unions.
7853
cf4912ae
AB
78542018-05-11 Andrew Burgess <andrew.burgess@embecosm.com>
7855
7856 * i387-tdep.c (i387_collect_xsave): Use FXSAVE_MXCSR_ADDR not
7857 FXSAVE_ADDR for the mxcsr register.
7858
67e6f569
MF
78592018-05-11 Max Filippov <jcmvbkbc@gmail.com>
7860
7861 * configure.tgt (xtensa*-*-linux*): Drop gdb_target definition.
7862
15244507
PA
78632018-05-11 Pedro Alves <palves@redhat.com>
7864
7865 * corelow.c (core_target) <core_target>: No longer inline.
7866 Initialize m_core_gdbarch, m_core_vec and build the section table
7867 here.
7868 <~core_target>: New.
7869 <core_gdbarch, get_core_register_section>: New methods.
7870 <m_core_section_table, m_core_vec, m_core_gdbarch>: New fields,
7871 factored out from ...
7872 <core_data, core_vec, core_gdbarch>: ... these deleted globals.
7873 (core_ops): Delete.
7874 (sniff_core_bfd): Add gdbarch parameter.
7875 (core_close): Delete, merged into ...
7876 (core_target::close): ... here. Delete self.
7877 (core_close_cleanup): Delete.
7878 (core_target_open): Allocate a core_target on the heap. Use a
7879 unique_ptr instead of a cleanup. Bits moved into the core_target
7880 ctor. Adjust to use core_target methods instead of globals.
7881 (get_core_register_section): Rename to ...
7882 (core_target::get_core_register_section): ... this and adjust.
7883 (struct get_core_registers_cb_data): New.
7884 (get_core_registers_cb): Use it. Use bool.
7885 (core_target::fetch_registers, core_target::files_info)
7886 (core_target::xfer_partial, core_target::read_description)
7887 (core_target::pid_to, core_target::thread_name): Adjust to
7888 reference class fields instead of globals.
7889 * target.h (struct target_ops_deleter, target_ops_up): New.
7890
451953fa
PA
78912018-05-11 Pedro Alves <palves@redhat.com>
7892
7893 * corefile.c (core_file_command): Move to corelow.c.
7894 * corelow.c (the_core_target): Delete.
7895 (core_file_command): Moved from corefile.c. Check exec_bfd
7896 instead of the_core_target. Use target_detach instead of calling
7897 into the_core_target directly.
7898 (maybe_say_no_core_file_now): New.
7899 (core_target::detach): Use it.
7900 (_initialize_corelow): Remove references to the_core_target.
7901 * gdbcore.h (the_core_target): Delete.
7902
e540a5a2 79032018-05-11 Tom Tromey <tromey@redhat.com>
3afc23a6 7904 Pedro Alves <palves@redhat.com>
e540a5a2
TT
7905
7906 * corefile.c (core_bfd): Remove.
7907 * gdbcore.h (core_bfd): Now a macro.
7908 * progspace.h (struct program_space) <cbfd>: New field.
7909
633cf254
TT
79102018-05-11 Tom Tromey <tom@tromey.com>
7911
7912 * mdebugread.c (parse_partial_symbols, psymtab_to_symtab_1): Use
7913 gdb::def_vector.
7914
1a34f210
TT
79152018-05-10 Tom Tromey <tom@tromey.com>
7916
7917 * configure: Rebuild.
7918 * warning.m4 (AM_GDB_WARNINGS): Use -Wimplicit-fallthrough=3.
7919
190852c8
JB
79202018-05-10 Joel Brobecker <brobecker@adacore.com>
7921
7922 PR server/23158:
7923 * regformats/regdat.sh: Adjust script, following the addition
7924 of the new expedite_regs parameter to init_target_desc.
7925
8727de56
OJ
79262018-05-10 Omair Javaid <omair.javaid@linaro.org>
7927
7928 PR gdb/23127
7929 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Add call to
7930 set_gdbarch_significant_addr_bit.
7931 * aarch64-tdep.c (aarch64_gdbarch_init): Remove call to
7932 set_gdbarch_significant_addr_bit.
7933 * utils.c (address_significant): Update to sign extend addr.
7934
37d9e062
MF
79352018-05-09 Max Filippov <jcmvbkbc@gmail.com>
7936
7937 * xtensa-linux-tdep.c (xtensa-tdep.h): New include.
7938 (xtensa_linux_init_abi): Limit tdep->num_regs by
7939 tdep->num_nopriv_regs.
7940 * xtensa-tdep.c (xtensa_derive_tdep): Calculate
7941 tdep->num_nopriv_regs and only copy it to tdep->num_regs if it's
7942 not initialized.
7943
7402fbca
SM
79442018-05-08 Simon Marchi <simon.marchi@ericsson.com>
7945
7946 * unittests/string_view-selftests.c: Define GNULIB_NAMESPACE.
7947
8ee22052
AB
79482018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
7949
7950 * common/x86-xstate.h (I387_FCTRL_INIT_VAL): New constant.
7951 (I387_MXCSR_INIT_VAL): New constant.
7952 * amd64-tdep.c (amd64_supply_xsave): Only read state from xsave
7953 buffer if it was supplied by the inferior.
7954 * i387-tdep.c (i387_supply_fsave): Use I387_MXCSR_INIT_VAL.
7955 (i387_xsave_get_clear_bv): New function.
7956 (i387_supply_xsave): Only read x87 control registers from the
7957 xsave buffer if the feature is enabled, and the state will have
7958 been written, otherwise, provide a suitable default.
7959 (i387_collect_xsave): Pre-clear all registers in xsave buffer,
7960 including x87 control registers. Update control registers if they
7961 have changed from the default value, and mark features as enabled
7962 as required.
7963 * i387-tdep.h (i387_xsave_get_clear_bv): Declare.
7964
968ae51b
UW
79652018-05-08 Ulrich Weigand <uweigand@de.ibm.com>
7966
7967 * spu-tdep.c (info_spu_event_command): Fix output formatting.
7968
aff689d3
TT
79692018-05-07 Tom Tromey <tom@tromey.com>
7970
7971 * configure: Rebuild.
7972 * warning.m4 (AM_GDB_WARNINGS): Add -Wduplicated-cond.
7973
ce887586
TT
79742018-05-07 Tom Tromey <tom@tromey.com>
7975
7976 PR tdep/20362:
7977 * arm-tdep.c (arm_record_vfp_data_proc_insn): Properly mask off D
7978 bit. Use correct value for VDIV.
7979
85e26832
TT
79802018-05-04 Tom Tromey <tom@tromey.com>
7981
7982 * configure: Rebuild.
7983 * warning.m4 (AM_GDB_WARNINGS): Add -Wimplicit-fallthrough.
7984
449b1ac7
TT
79852018-05-04 Tom Tromey <tom@tromey.com>
7986
7987 * linux-record.c (record_linux_system_call) <case
7988 RECORD_SYS_RECVFROM>: Add "break".
7989
15c9ffd6
TT
79902018-05-04 Tom Tromey <tom@tromey.com>
7991
7992 * mi/mi-main.c (mi_cmd_trace_frame_collected) <REGISTERS_FORMAT>:
7993 Add missing "break".
7994 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals) <NO_FRAME_FILTERS>:
7995 Add missing "break".
7996
e3829d13
TT
79972018-05-04 Tom Tromey <tom@tromey.com>
7998
7999 * rs6000-tdep.c (ppc_process_record_op4)
8000 (ppc_process_record_op63): Add fall-through comment.
8001
da0e1563
TT
80022018-05-04 Tom Tromey <tom@tromey.com>
8003
8004 * i386-tdep.c (i386_process_record): Add fall-through comment.
8005
0019cd49
TT
80062018-05-04 Tom Tromey <tom@tromey.com>
8007
8008 * stabsread.c (define_symbol) <case 'p'>: Add fall-through
8009 comment.
8010
565e0eda
TT
80112018-05-04 Tom Tromey <tom@tromey.com>
8012
8013 * riscv-tdep.c (riscv_isa_xlen): Add fall-through comment.
8014 * utils.c (can_dump_core) <LIMIT_CUR>: Add fall-through comment.
8015 * eval.c (fetch_subexp_value) <MEMORY_ERROR>: Add fall-through
8016 comment.
8017 * d-valprint.c (d_val_print) <TYPE_CODE_STRUCT>: Add fall-through
8018 comment.
8019 * coffread.c (coff_symtab_read) <C_LABEL>: Add fall-through
8020 comment.
8021
621846f4
TT
80222018-05-04 Tom Tromey <tom@tromey.com>
8023
8024 * dwarf2loc.c (unimplemented): Add ATTRIBUTE_NORETURN.
8025
86a73007
TT
80262018-05-04 Tom Tromey <tom@tromey.com>
8027
8028 * s390-tdep.c (s390_process_record): Fix fall-through comments.
8029 * xcoffread.c (scan_xcoff_symtab): Move comment later.
8030 * symfile.c (section_is_mapped): Fix fall-through comment.
8031 * stabsread.c (define_symbol, read_member_functions): Fix
8032 fall-through comment.
8033 * s390-linux-tdep.c (s390_process_record): Fix fall-through
8034 comment.
8035 * remote.c (remote_wait_as): Fix fall-through comment.
8036 * p-exp.y (yylex): Fix fall-through comment.
8037 * nat/x86-dregs.c (x86_length_and_rw_bits): Fix fall-through
8038 comment.
8039 * msp430-tdep.c (msp430_gdbarch_init): Fix fall-through comment.
8040 * mdebugread.c (parse_partial_symbols): Fix fall-through comment.
8041 * jv-exp.y (yylex): Fix fall-through comment.
8042 * go-exp.y (lex_one_token): Fix fall-through comment.
8043 * gdbtypes.c (get_discrete_bounds, rank_one_type): Fix
8044 fall-through comment.
8045 * f-exp.y (yylex): Fix fall-through comment.
8046 * dwarf2read.c (process_die): Fix fall-through comments.
8047 * dbxread.c (process_one_symbol): Fix fall-through comment.
8048 * d-exp.y (lex_one_token): Fix fall-through comment.
8049 * cp-name-parser.y (yylex): Fix fall-through comment.
8050 * coffread.c (coff_symtab_read): Fix fall-through comment.
8051 * c-exp.y (lex_one_token): Fix fall-through comment.
8052 * arm-tdep.c (arm_decode_miscellaneous): Fix fall-through
8053 comment.
8054 * arch/arm.c (arm_instruction_changes_pc): Fix fall-through
8055 comment.
8056
56bcdbea
TT
80572018-05-04 Tom Tromey <tom@tromey.com>
8058
8059 PR python/22730:
8060 * NEWS: Mention gdb.execute change.
8061 * gdbcmd.h (execute_control_command): Don't declare.
8062 * python/python.c (execute_gdb_command): Use read_command_lines_1,
8063 execute_control_commands, execute_control_commands_to_string.
8064 * cli/cli-script.h (execute_control_commands)
8065 (execute_control_commands_to_string): Declare.
8066 (execute_control_command): Add from_tty parameter.
8067 * cli/cli-script.c (execute_control_commands)
8068 (execute_control_commands_to_string): New functions.
8069 (execute_user_command): Use execute_control_commands.
8070 (execute_control_command_1): Add "from_tty" parameter. Update.
8071 (execute_control_command): Likewise.
8072
a913fffb
TT
80732018-05-04 Tom Tromey <tom@tromey.com>
8074
8075 PR python/22731:
8076 * NEWS: Mention that breakpoint commands are writable.
8077 * python/py-breakpoint.c (bppy_set_commands): New function.
8078 (breakpoint_object_getset) <"commands">: Use it.
8079
60b3cef2
TT
80802018-05-04 Tom Tromey <tom@tromey.com>
8081
8082 * tracepoint.c (actions_command): Update.
8083 * mi/mi-cmd-break.c (mi_command_line_array)
8084 (mi_command_line_array_cnt, mi_command_line_array_ptr)
8085 (mi_read_next_line): Remove.
8086 (mi_cmd_break_commands): Update.
8087 * cli/cli-script.h (read_command_lines, read_command_lines_1): Use
8088 function_view.
8089 * cli/cli-script.c (get_command_line): Update.
8090 (process_next_line): Use function_view. Constify.
8091 (recurse_read_control_structure, read_command_lines)
8092 (read_command_lines_1): Change argument types to function_view.
8093 (do_define_command, document_command): Update.
8094 * breakpoint.h (check_tracepoint_command): Don't declare.
8095 * breakpoint.c (check_tracepoint_command): Remove.
8096 (commands_command_1, create_tracepoint_from_upload): Update.
8097
7a2c85f2
TT
80982018-05-04 Tom Tromey <tom@tromey.com>
8099
8100 PR gdb/11750:
8101 * cli/cli-script.h (enum command_control_type) <define_control>:
8102 New constant.
8103 * cli/cli-script.c (multi_line_command_p): Handle define_control.
8104 (build_command_line, execute_control_command_1)
8105 (process_next_line): Likewise.
8106 (do_define_command): New function, extracted from define_command.
8107 (define_command): Use it.
8108
295dc222
TT
81092018-05-04 Tom Tromey <tom@tromey.com>
8110
8111 * tracepoint.c (actions_command): Update.
8112 * cli/cli-script.h (read_command_lines): Update.
8113 * cli/cli-script.c (read_command_lines): Constify prompt_arg.
8114 (MAX_TMPBUF): Remove define.
8115 (define_command): Use string_printf.
8116 (document_command): Likewise.
8117 * breakpoint.c (commands_command_1): Update.
8118
1263a9d5
TT
81192018-05-04 Tom Tromey <tom@tromey.com>
8120
8121 * top.c (execute_command): Update.
8122 * cli/cli-script.h (print_command_lines): Now varargs.
8123 * cli/cli-script.c (print_command_lines): Now varargs.
8124 (execute_control_command_1) <case while_control, case if_control>:
8125 Update.
8126
12973681
TT
81272018-05-04 Tom Tromey <tom@tromey.com>
8128
8129 * tracepoint.c (all_tracepoint_actions): Rename from
8130 all_tracepoint_actions_and_cleanup. Change return type.
8131 (actions_command, encode_actions_1, encode_actions)
8132 (trace_dump_actions, tdump_command): Update.
8133 * remote.c (remote_download_command_source): Update.
8134 * python/python.c (gdbpy_eval_from_control_command)
8135 (python_command, python_interactive_command): Update.
8136 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
8137 * guile/guile.c (guile_command)
8138 (gdbscm_eval_from_control_command, guile_command): Update.
8139 * compile/compile.c (compile_code_command)
8140 (compile_print_command, compile_to_object): Update.
8141 * cli/cli-script.h (struct command_lines_deleter): New.
8142 (counted_command_line): New typedef.
8143 (struct command_line): Add constructor, destructor.
8144 <body_list>: Remove.
8145 <body_list_0, body_list_1>: New members.
8146 (command_line_up): Remove typedef.
8147 (read_command_lines, read_command_lines_1, get_command_line):
8148 Update.
8149 (copy_command_lines): Don't declare.
8150 * cli/cli-script.c (build_command_line): Use "new".
8151 (get_command_line): Return counted_command_line.
8152 (print_command_lines, execute_user_command)
8153 (execute_control_command_1, while_command, if_command): Update.
8154 (realloc_body_list): Remove.
8155 (process_next_line, recurse_read_control_structure): Update.
8156 (read_command_lines, read_command_lines_1): Return counted_command_line.
8157 (free_command_lines): Use "delete".
8158 (copy_command_lines): Remove.
8159 (define_command, document_command, show_user_1): Update.
8160 * cli/cli-decode.h (struct cmd_list_element) <user_commands>: Now
8161 a counted_command_line.
8162 * breakpoint.h (counted_command_line): Remove typedef.
8163 (breakpoint_set_commands): Update.
8164 * breakpoint.c (check_no_tracepoint_commands)
8165 (validate_commands_for_breakpoint): Update.
8166 (breakpoint_set_commands): Change commands to be a
8167 counted_command_line.
8168 (commands_command_1, update_dprintf_command_list)
8169 (create_tracepoint_from_upload): Update.
8170
e2fc72e2
TT
81712018-05-04 Tom Tromey <tom@tromey.com>
8172
8173 * cli/cli-decode.h (cmd_list_element): New constructor.
8174 (~cmd_list_element): New destructor.
8175 (struct cmd_list_element): Add initializers.
8176 * cli/cli-decode.c (do_add_cmd): Use "new".
8177 (delete_cmd): Use "delete".
8178
a3b60e45
JK
81792018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
8180 Pedro Alves <palves@redhat.com>
8181
8182 PR breakpoints/19806 and support for PR external/20207.
8183 * NEWS: Mention Aarch64 watchpoint improvements.
8184 * aarch64-linux-nat.c (aarch64_linux_stopped_data_address): Fix missed
8185 watchpoints and PR external/20207 watchpoints.
8186 * nat/aarch64-linux-hw-point.c
8187 (kernel_supports_any_contiguous_range): New.
8188 (aarch64_watchpoint_offset): New.
8189 (aarch64_watchpoint_length): Support PR external/20207 watchpoints.
8190 (aarch64_point_encode_ctrl_reg): New parameter offset, new asserts.
8191 (aarch64_point_is_aligned): Support PR external/20207 watchpoints.
8192 (aarch64_align_watchpoint): New parameters aligned_offset_p and
8193 next_addr_orig_p. Support PR external/20207 watchpoints.
8194 (aarch64_downgrade_regs): New.
8195 (aarch64_dr_state_insert_one_point): New parameters offset and
8196 addr_orig.
8197 (aarch64_dr_state_remove_one_point): Likewise.
8198 (aarch64_handle_breakpoint): Update caller.
8199 (aarch64_handle_aligned_watchpoint): Likewise.
8200 (aarch64_handle_unaligned_watchpoint): Support addr_orig and
8201 aligned_offset.
8202 (aarch64_linux_set_debug_regs): Remove const from state. Call
8203 aarch64_downgrade_regs.
8204 (aarch64_show_debug_reg_state): Print also dr_addr_orig_wp.
8205 * nat/aarch64-linux-hw-point.h (DR_CONTROL_LENGTH): Rename to ...
8206 (DR_CONTROL_MASK): ... this.
8207 (struct aarch64_debug_reg_state): New field dr_addr_orig_wp.
8208 (unsigned int aarch64_watchpoint_offset): New prototype.
8209 (aarch64_linux_set_debug_regs): Remove const from state.
8210 * utils.c (align_up, align_down): Move to ...
8211 * common/common-utils.c (align_up, align_down): ... here.
8212 * utils.h (align_up, align_down): Move to ...
8213 * common/common-utils.h (align_up, align_down): ... here.
8214
05bc7456
JB
82152018-05-04 Joel Brobecker <brobecker@adacore.com>
8216
8217 * sparc-tdep.c (sparc_structure_return_p): Re-implement to
8218 match the ABI as summarized in GCC's gcc/config/sparc/sparc.c.
8219 (sparc_arg_by_memory_p): Renamed from sparc_arg_on_registers_p.
8220 Re-implement to match the ABI as summarized in GCC's
8221 gcc/config/sparc/sparc.c. All callers updated.
8222 (sparc32_store_arguments): Remove assertion.
8223
2f433492
TT
82242018-05-04 Tom Tromey <tom@tromey.com>
8225
8226 * printcmd.c: Don't include tui.h.
8227 (decode_format): Use skip_spaces.
8228
9be2ae8f
TT
82292018-05-04 Tom Tromey <tom@tromey.com>
8230
8231 PR gdb/22619:
8232 * printcmd.c (last_count): New global.
8233 (x_command): Use saved count when repeating.
8234
f0b3976b
TT
82352018-05-04 Tom Tromey <tom@tromey.com>
8236
8237 * nto-procfs.c (do_closedir_cleanup): Remove.
8238 (procfs_pidlist): Use gdb_dir_up.
8239 * procfs.c (do_closedir_cleanup): Remove.
8240 (proc_update_threads): Use gdb_dir_up.
8241 * common/filestuff.h (struct gdb_dir_deleter): New.
8242 (gdb_dir_up): New typedef.
8243
862d101a
TT
82442018-05-04 Tom Tromey <tom@tromey.com>
8245
8246 * ada-lang.c (print_mention_exception): Use std::string.
8247
cb7de75e
TT
82482018-05-04 Tom Tromey <tom@tromey.com>
8249
8250 * ada-lang.c (create_excep_cond_exprs): Update.
8251 (ada_exception_catchpoint_cond_string): Use std::string.
8252
49d83361
TT
82532018-05-04 Tom Tromey <tom@tromey.com>
8254
8255 * ada-lang.c (xget_renaming_scope): Return std::string.
8256 (old_renaming_is_invisible): Update.
8257
ade72a34
TT
82582018-05-04 Tom Tromey <tom@tromey.com>
8259
8260 * bfd-target.c (target_bfd::m_bfd): Now a gdb_bfd_ref_ptr.
8261 (target_bfd::target_bfd, target_bfd::~target_bfd): Update.
8262
2be4d7f0
UW
82632018-05-04 Ulrich Weigand <uweigand@de.ibm.com>
8264
8265 * spu-linux-nat.c (spu_linux_nat_target::wait): Fix syntax error.
8266
69b6ecb0
TT
82672018-05-04 Tom Tromey <tom@tromey.com>
8268
8269 * remote.c (remote_query_supported_append): Change type.
8270 (remote_check_symbols): Update.
8271
bf27f0e2
PP
82722018-05-04 Paul Pluzhnikov <ppluzhnikov@google.com>
8273
8274 PR gdb/11420
8275 * configure.ac: Prepend libpython.
8276 * python/python-config.py: Likewise.
8277 * configure: Regenerate.
8278
4ea17de8
SM
82792018-05-03 Simon Marchi <simon.marchi@ericsson.com>
8280
8281 * Makefile.in (%.c: %.l): Use -t instead of --stdout.
8282
bd732259
PA
82832018-05-03 Pedro Alves <palves@redhat.com>
8284
8285 * s390-linux-nat.c
8286 (s390_linux_nat_target::have_continuable_watchpoint): Mark with
8287 override. Write 'true' instead of '1'.
8288 (s390_linux_nat_target::watchpoint_addr_within_range): Remove
8289 declaration.
8290
d9f719f1
PA
82912018-05-02 Pedro Alves <palves@redhat.com>
8292
8293 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Use
8294 add_inf_child_target.
8295 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Use
8296 add_inf_child_target.
8297 * aix-thread.c (aix_thread_target_info): New.
8298 (aix_thread_target) <shortname, longname, doc>: Delete.
8299 <info>: New.
8300 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Use
8301 add_inf_child_target.
8302 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Use
8303 add_inf_child_target.
8304 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Use
8305 add_inf_child_target.
8306 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Use
8307 add_inf_child_target.
8308 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Use
8309 add_inf_child_target.
8310 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Use
8311 add_inf_child_target.
8312 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Use
8313 add_inf_child_target.
8314 * arm-linux-nat.c (_initialize_arm_linux_nat): Use
8315 add_inf_child_target.
8316 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Use
8317 add_inf_child_target.
8318 * bfd-target.c (target_bfd_target_info): New.
8319 (target_bfd) <shortname, longname, doc>: Delete.
8320 <info>: New.
8321 * bsd-kvm.c (bsd_kvm_target_info): New.
8322 (bsd_kvm_target) <shortname, longname, doc>: Delete.
8323 <info>: New.
8324 (bsd_kvm_target::open): Rename to ...
8325 (bsd_kvm_target_open): ... this. Adjust.
8326 * bsd-uthread.c (bsd_uthread_target_info): New.
8327 (bsd_uthread_target) <shortname, longname, doc>: Delete.
8328 <info>: New.
8329 * corefile.c (core_file_command): Adjust.
8330 * corelow.c (core_target_info): New.
8331 (core_target) <shortname, longname, doc>: Delete.
8332 <info>: New.
8333 (core_target::open): Rename to ...
8334 (core_target_open): ... this. Adjust.
8335 * ctf.c (ctf_target_info): New.
8336 (ctf_target) <shortname, longname, doc>: Delete.
8337 <info>: New.
8338 (ctf_target::open): Rename to ...
8339 (ctf_target_open): ... this.
8340 (_initialize_ctf): Adjust.
8341 * exec.c (exec_target_info): New.
8342 (exec_target) <shortname, longname, doc>: Delete.
8343 <info>: New.
8344 (exec_target::open): Rename to ...
8345 (exec_target_open): ... this.
8346 * gdbcore.h (core_target_open): Declare.
8347 * go32-nat.c (_initialize_go32_nat): Use add_inf_child_target.
8348 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Use
8349 add_inf_child_target.
8350 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Use
8351 add_inf_child_target.
8352 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Use
8353 add_inf_child_target.
8354 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Use
8355 add_inf_child_target.
8356 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Use
8357 add_inf_child_target.
8358 * i386-gnu-nat.c (_initialize_i386gnu_nat): Use
8359 add_inf_child_target.
8360 * i386-linux-nat.c (_initialize_i386_linux_nat): Use
8361 add_inf_child_target.
8362 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Use
8363 add_inf_child_target.
8364 * i386-obsd-nat.c (_initialize_i386obsd_nat): Use
8365 add_inf_child_target.
8366 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Use
8367 add_inf_child_target.
8368 * inf-child.c (inf_child_target_info): New.
8369 (inf_child_target::info): New.
8370 (inf_child_open_target): Remove 'target' parameter. Use
8371 get_native_target instead.
8372 (inf_child_target::open): Delete.
8373 (add_inf_child_target): New.
8374 * inf-child.h (inf_child_target) <shortname, longname, doc, open>:
8375 Delete.
8376 <info>: New.
8377 (add_inf_child_target): Declare.
8378 (inf_child_open_target): Declare.
8379 * linux-thread-db.c (thread_db_target_info): New.
8380 (thread_db_target) <shortname, longname, doc>: Delete.
8381 <info>: New.
8382 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Use
8383 add_inf_child_target.
8384 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Use
8385 add_inf_child_target.
8386 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Use
8387 add_inf_child_target.
8388 * m88k-bsd-nat.c (_initialize_m88kbsd_nat): Use
8389 add_inf_child_target.
8390 * make-target-delegates (print_class): Adjust.
8391 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Use
8392 add_inf_child_target.
8393 * mips-linux-nat.c (_initialize_mips_linux_nat): Use
8394 add_inf_child_target.
8395 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Use
8396 add_inf_child_target.
8397 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Use
8398 add_inf_child_target.
8399 * nto-procfs.c (nto_native_target_info): New.
8400 (nto_procfs_target_native) <shortname, longname, doc>:
8401 Delete.
8402 <info>: New.
8403 (nto_procfs_target_info): New.
8404 (nto_procfs_target_procfs) <shortname, longname, doc>:
8405 Delete.
8406 <info>: New.
8407 (init_procfs_targets): Adjust.
8408 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Use
8409 add_inf_child_target.
8410 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Use
8411 add_inf_child_target.
8412 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Use
8413 add_inf_child_target.
8414 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Use
8415 add_inf_child_target.
8416 * ravenscar-thread.c (ravenscar_target_info): New.
8417 (ravenscar_thread_target) <shortname, longname, doc>:
8418 Delete.
8419 <info>: New.
8420 * record-btrace.c (record_btrace_target_info):
8421 (record_btrace_target) <shortname, longname, doc>: Delete.
8422 <info>: New.
8423 (record_btrace_target::open): Rename to ...
8424 (record_btrace_target_open): ... this. Adjust.
8425 * record-full.c (record_longname, record_doc): New.
8426 (record_full_base_target) <shortname, longname, doc>: Delete.
8427 <info>: New.
8428 (record_full_target_info): New.
8429 (record_full_target): <shortname>: Delete.
8430 <info>: New.
8431 (record_full_core_open_1, record_full_open_1): Update comments.
8432 (record_full_base_target::open): Rename to ...
8433 (record_full_open): ... this.
8434 (cmd_record_full_restore): Update.
8435 (_initialize_record_full): Update.
8436 * remote-sim.c (remote_sim_target_info): New.
8437 (gdbsim_target) <shortname, longname, doc>: Delete.
8438 <info>: New.
8439 (gdbsim_target::open): Rename to ...
8440 (gdbsim_target_open): ... this.
8441 (_initialize_remote_sim): Adjust.
8442 * remote.c (remote_doc): New.
8443 (remote_target_info): New.
8444 (remote_target) <shortname, longname, doc>: Delete.
8445 <info>: New.
8446 (extended_remote_target_info): New.
8447 (extended_remote_target) <shortname, longname, doc>: Delete.
8448 <info>: New.
8449 (remote_target::open_1): Make static. Adjust.
8450 * rs6000-nat.c (_initialize_rs6000_nat): Use add_inf_child_target.
8451 * s390-linux-nat.c (_initialize_s390_nat): Use
8452 add_inf_child_target.
8453 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Use
8454 add_inf_child_target.
8455 * sol-thread.c (thread_db_target_info): New.
8456 (sol_thread_target) <shortname, longname, doc>: Delete.
8457 <info>: New.
8458 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Use
8459 add_inf_child_target.
8460 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Use
8461 add_inf_child_target.
8462 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Use
8463 add_inf_child_target.
8464 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Use
8465 add_inf_child_target.
8466 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Use
8467 add_inf_child_target.
8468 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Use
8469 add_inf_child_target.
8470 * spu-linux-nat.c (_initialize_spu_nat): Use
8471 add_inf_child_target.
8472 * spu-multiarch.c (spu_multiarch_target_info): New.
8473 (spu_multiarch_target) <shortname, longname, doc>: Delete.
8474 <info>: New.
8475 * target-delegates.c: Regenerate.
8476 * target.c: Include <unordered_map>.
8477 (target_ops_p): Delete.
8478 (DEF_VEC_P(target_ops_p)): Delete.
8479 (target_factories): New.
8480 (test_target_info): New.
8481 (test_target_ops::info): New.
8482 (open_target): Adjust to use target_factories.
8483 (add_target_with_completer): Rename to ...
8484 (add_target): ... this. Change prototype. Register target_info
8485 and open callback in target_factories. Register target_info in
8486 command context instead of target_ops.
8487 (add_target): Delete old implementation.
8488 (add_deprecated_target_alias): Change prototype. Adjust.
8489 (the_native_target): New.
8490 (set_native_target, get_native_target): New.
8491 (find_default_run_target): Use the_native_target.
8492 (find_attach_target, find_run_target): Simplify.
8493 (target_ops::open): Delete.
8494 (dummy_target_info): New.
8495 (dummy_target::shortname, dummy_target::longname)
8496 (dummy_target::doc): Delete.
8497 (dummy_target::info): New.
8498 (debug_target::shortname, debug_target::longname)
8499 (debug_target::doc): Delete.
8500 (debug_target::info): New.
8501 * target.h (struct target_info): New.
8502 (target_ops::~target_ops): Add comment.
8503 (target_ops::info): New.
8504 (target_ops::shortname, target_ops::longname, target_ops::doc): No
8505 longer virtual. Implement in terms of target_info.
8506 (set_native_target, get_native_target): Declare.
8507 (target_open_ftype): New.
8508 (add_target, add_target_with_completer)
8509 (add_deprecated_target_alias): Change prototype.
8510 (test_target) <shortname, longname, doc>: Delete.
8511 <info>: New.
8512 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Use
8513 add_inf_child_target.
8514 * tracefile-tfile.c (tfile_target_info): New.
8515 (tfile_target) <shortname, longname, doc>: Delete.
8516 <info>: New.
8517 (tfile_target::open): Rename to ...
8518 (tfile_target_open): ... this.
8519 (_initialize_tracefile_tfile): Adjust.
8520 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Use
8521 add_inf_child_target.
8522 * windows-nat.c (_initialize_windows_nat): Use
8523 add_inf_child_target.
8524 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Use
8525 add_inf_child_target.
8526
135340af
PA
85272018-05-02 Pedro Alves <palves@redhat.com>
8528
8529 * linux-nat.h (linux_nat_target) <low_new_thread,
8530 low_delete_thread, low_new_fork, low_forget_process,
8531 low_prepare_to_resume, low_siginfo_fixup, low_status_is_event>:
8532 New virtual methods.
8533 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
8534 (linux_nat_new_fork_ftype, linux_nat_set_new_fork)
8535 (linux_nat_forget_process_ftype, linux_nat_set_forget_process)
8536 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
8537 (linux_nat_set_prepare_to_resume, linux_nat_set_status_is_event):
8538 Delete.
8539 * linux-fork.c (delete_fork): Adjust to call low method.
8540 * linux-nat.c (linux_nat_new_thread, linux_nat_delete_thread)
8541 (linux_nat_new_fork, linux_nat_forget_process_hook)
8542 (linux_nat_prepare_to_resume, linux_nat_siginfo_fixup)
8543 (linux_nat_status_is_event):
8544 (linux_nat_target::follow_fork, lwp_free, add_lwp, detach_one_lwp)
8545 (linux_resume_one_lwp_throw, linux_handle_extended_wait): Adjust
8546 to call low method.
8547 (sigtrap_is_event): Rename to ...
8548 (linux_nat_target::low_status_is_event): ... this.
8549 (linux_nat_set_status_is_event): Delete.
8550 (save_stop_reason, linux_nat_wait_1)
8551 (linux_nat_target::mourn_inferior, siginfo_fixup): Adjust to call
8552 low methods.
8553 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
8554 (linux_nat_set_new_fork, linux_nat_set_forget_process)
8555 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
8556 (linux_nat_set_prepare_to_resume): Delete.
8557 * aarch64-linux-nat.c: All linux_nat_set_* callbacks converted to
8558 low virtual methods.
8559 * amd64-linux-nat.c: Likewise.
8560 * arm-linux-nat.c: Likewise.
8561 * i386-linux-nat.c: Likewise.
8562 * ia64-linux-nat.c: Likewise.
8563 * mips-linux-nat.c: Likewise.
8564 * ppc-linux-nat.c: Likewise.
8565 * s390-linux-nat.c: Likewise.
8566 * sparc64-linux-nat.c: Likewise.
8567 * x86-linux-nat.c: Likewise.
8568 * x86-linux-nat.h: Include "nat/x86-linux.h".
8569 (x86_linux_nat_target) <low_new_fork, low_forget_process,
8570 low_prepare_to_resume, low_new_thread, low_delete_thread>:
8571 Override methods.
8572
57810aa7
PA
85732018-05-02 Pedro Alves <palves@redhat.com>
8574
8575 * target.h (target_ops)
8576 <stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
8577 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint,
8578 stopped_by_watchpoint, have_continuable_watchpoint,
8579 stopped_data_address, watchpoint_addr_within_range,
8580 can_accel_watchpoint_condition, can_run, thread_alive,
8581 has_all_memory, has_memory, has_stack, has_registers,
8582 has_execution, can_async_p, is_async_p, supports_non_stop,
8583 always_non_stop_p, can_execute_reverse, supports_multi_process,
8584 supports_enable_disable_tracepoint,
8585 supports_disable_randomization, supports_string_tracing,
8586 supports_evaluation_of_breakpoint_conditions,
8587 can_run_breakpoint_commands, filesystem_is_local,
8588 can_download_tracepoint, get_trace_state_variable_value,
8589 set_trace_notes, get_tib_address, use_agent, can_use_agent,
8590 record_is_replaying, record_will_replay,
8591 augmented_libraries_svr4_read>: Adjust to return bool.
8592 * aarch64-linux-nat.c: All implementations adjusted.
8593 * aix-thread.c: All implementations adjusted.
8594 * arm-linux-nat.c: All implementations adjusted.
8595 * breakpoint.c: All implementations adjusted.
8596 * bsd-kvm.c: All implementations adjusted.
8597 * bsd-uthread.c: All implementations adjusted.
8598 * corelow.c: All implementations adjusted.
8599 * ctf.c: All implementations adjusted.
8600 * darwin-nat.c: All implementations adjusted.
8601 * darwin-nat.h: All implementations adjusted.
8602 * exec.c: All implementations adjusted.
8603 * fbsd-nat.c: All implementations adjusted.
8604 * fbsd-nat.h: All implementations adjusted.
8605 * gnu-nat.c: All implementations adjusted.
8606 * gnu-nat.h: All implementations adjusted.
8607 * go32-nat.c: All implementations adjusted.
8608 * ia64-linux-nat.c: All implementations adjusted.
8609 * inf-child.c: All implementations adjusted.
8610 * inf-child.h: All implementations adjusted.
8611 * inf-ptrace.c: All implementations adjusted.
8612 * inf-ptrace.h: All implementations adjusted.
8613 * linux-nat.c: All implementations adjusted.
8614 * linux-nat.h: All implementations adjusted.
8615 * mips-linux-nat.c: All implementations adjusted.
8616 * nto-procfs.c: All implementations adjusted.
8617 * ppc-linux-nat.c: All implementations adjusted.
8618 * procfs.c: All implementations adjusted.
8619 * ravenscar-thread.c: All implementations adjusted.
8620 * record-btrace.c: All implementations adjusted.
8621 * record-full.c: All implementations adjusted.
8622 * remote-sim.c: All implementations adjusted.
8623 * remote.c: All implementations adjusted.
8624 * s390-linux-nat.c: All implementations adjusted.
8625 * sol-thread.c: All implementations adjusted.
8626 * spu-multiarch.c: All implementations adjusted.
8627 * target-delegates.c: All implementations adjusted.
8628 * target.c: All implementations adjusted.
8629 * target.h: All implementations adjusted.
8630 * tracefile-tfile.c: All implementations adjusted.
8631 * tracefile.c: All implementations adjusted.
8632 * tracefile.h: All implementations adjusted.
8633 * windows-nat.c: All implementations adjusted.
8634 * x86-linux-nat.h: All implementations adjusted.
8635 * x86-nat.h: All implementations adjusted.
8636
ad6a4e2d
PA
86372018-05-02 Pedro Alves <palves@redhat.com>
8638
8639 * make-target-delegates (scan_target_h): Don't trim lines here.
8640 Replace sequences of tabs and/or whitespace with a single
8641 whitespace.
8642 (top level, parsing methods): Trim each line before processing it
8643 here.
8644
f6ac5f3d
PA
86452018-05-02 Pedro Alves <palves@redhat.com>
8646 John Baldwin <jhb@freebsd.org>
8647
8648 * target.h (enum strata) <debug_stratum>: New.
8649 (struct target_ops) <all delegation methods>: Replace by C++
8650 virtual methods, and drop "to_" prefix. All references updated
8651 throughout.
8652 <to_shortname, to_longname, to_doc, to_data,
8653 to_have_steppable_watchpoint, to_have_continuable_watchpoint,
8654 to_has_thread_control, to_attach_no_wait>: Delete, replaced by
8655 virtual methods. All references updated throughout.
8656 <can_attach, supports_terminal_ours, can_create_inferior,
8657 get_thread_control_capabilities, attach_no_wait>: New
8658 virtual methods.
8659 <insert_breakpoint, remove_breakpoint>: Now
8660 TARGET_DEFAULT_NORETURN methods.
8661 <info_proc>: Now returns bool.
8662 <to_magic>: Delete.
8663 (OPS_MAGIC): Delete.
8664 (current_target): Delete. All references replaced by references
8665 to ...
8666 (target_stack): ... this. New.
8667 (target_shortname, target_longname): Adjust.
8668 (target_can_run): Now a function declaration.
8669 (default_child_has_all_memory, default_child_has_memory)
8670 (default_child_has_stack, default_child_has_registers)
8671 (default_child_has_execution): Remove target_ops parameter.
8672 (complete_target_initialization): Delete.
8673 (memory_breakpoint_target): New template class.
8674 (test_target_ops): Refactor as a C++ class with virtual methods.
8675 * make-target-delegates (NAME_PART): Tighten.
8676 (POINTER_PART, CP_SYMBOL): New.
8677 (SIMPLE_RETURN_PART): Reimplement.
8678 (VEC_RETURN_PART): Expect less.
8679 (RETURN_PART, VIRTUAL_PART): New.
8680 (METHOD): Adjust to C++ virtual methods.
8681 (scan_target_h): Remove reference to C99.
8682 (dname): Output "target_ops::" prefix.
8683 (write_function_header): Adjust to output a C++ class method.
8684 (write_declaration): New.
8685 (write_delegator): Adjust to output a C++ class method.
8686 (tdname): Output "dummy_target::" prefix.
8687 (write_tdefault, write_debugmethod): Adjust to output a C++ class
8688 method.
8689 (tdefault_names, debug_names): Delete.
8690 (return_types, tdefaults, styles, argtypes_array): New.
8691 (top level): All methods are delegators.
8692 (print_class): New.
8693 (top level): Print dummy_target and debug_target classes.
8694 * target-delegates.c: Regenerate.
8695 * target-debug.h (target_debug_print_enum_info_proc_what)
8696 (target_debug_print_thread_control_capabilities)
8697 (target_debug_print_thread_info_p): New.
8698 * target.c (dummy_target): Delete.
8699 (the_dummy_target, the_debug_target): New.
8700 (target_stack): Now extern.
8701 (set_targetdebug): Push/unpush debug target.
8702 (default_child_has_all_memory, default_child_has_memory)
8703 (default_child_has_stack, default_child_has_registers)
8704 (default_child_has_execution): Remove target_ops parameter.
8705 (complete_target_initialization): Delete.
8706 (add_target_with_completer): No longer call
8707 complete_target_initialization.
8708 (target_supports_terminal_ours): Use regular delegation.
8709 (update_current_target): Delete.
8710 (push_target): No longer check magic number. Don't call
8711 update_current_target.
8712 (unpush_target): Don't call update_current_target.
8713 (target_is_pushed): No longer check magic number.
8714 (target_require_runnable): Skip for all stratums over
8715 process_stratum.
8716 (target_ops::info_proc): New.
8717 (target_info_proc): Use find_target_at and
8718 find_default_run_target.
8719 (target_supports_disable_randomization): Use regular delegation.
8720 (target_get_osdata): Use find_target_at.
8721 (target_ops::open, target_ops::close, target_ops::can_attach)
8722 (target_ops::attach, target_ops::can_create_inferior)
8723 (target_ops::create_inferior, target_ops::can_run)
8724 (target_can_run): New.
8725 (default_fileio_target): Use regular delegation.
8726 (target_ops::fileio_open, target_ops::fileio_pwrite)
8727 (target_ops::fileio_pread, target_ops::fileio_fstat)
8728 (target_ops::fileio_close, target_ops::fileio_unlink)
8729 (target_ops::fileio_readlink): New.
8730 (target_fileio_open_1, target_fileio_unlink)
8731 (target_fileio_readlink): Always call the target method. Handle
8732 FILEIO_ENOSYS.
8733 (return_zero, return_zero_has_execution): Delete.
8734 (init_dummy_target): Delete.
8735 (dummy_target::dummy_target, dummy_target::shortname)
8736 (dummy_target::longname, dummy_target::doc)
8737 (debug_target::debug_target, debug_target::shortname)
8738 (debug_target::longname, debug_target::doc): New.
8739 (target_supports_delete_record): Use regular delegation.
8740 (setup_target_debug): Delete.
8741 (maintenance_print_target_stack): Skip debug_stratum.
8742 (initialize_targets): Instantiate the_dummy_target and
8743 the_debug_target.
8744 * auxv.c (target_auxv_parse): Remove 'ops' parameter. Adjust to
8745 use target_stack.
8746 (target_auxv_search, fprint_target_auxv): Adjust.
8747 (info_auxv_command): Adjust to use target_stack.
8748 * auxv.h (target_auxv_parse): Remove 'ops' parameter.
8749 * exceptions.c (print_flush): Handle a NULL target_stack.
8750 * regcache.c (target_ops_no_register): Refactor as class with
8751 virtual methods.
8752
8753 * exec.c (exec_target): New class.
8754 (exec_ops): Now an exec_target.
8755 (exec_open, exec_close_1, exec_get_section_table)
8756 (exec_xfer_partial, exec_files_info, exec_has_memory)
8757 (exec_make_note_section): Refactor as exec_target methods.
8758 (exec_file_clear, ignore, exec_remove_breakpoint, init_exec_ops):
8759 Delete.
8760 (exec_target::find_memory_regions): New.
8761 (_initialize_exec): Don't call init_exec_ops.
8762 * gdbcore.h (exec_file_clear): Delete.
8763
8764 * corefile.c (core_target): Delete.
8765 (core_file_command): Adjust.
8766 * corelow.c (core_target): New class.
8767 (the_core_target): New.
8768 (core_close): Remove target_ops parameter.
8769 (core_close_cleanup): Adjust.
8770 (core_target::close): New.
8771 (core_open, core_detach, get_core_registers, core_files_info)
8772 (core_xfer_partial, core_thread_alive, core_read_description)
8773 (core_pid_to_str, core_thread_name, core_has_memory)
8774 (core_has_stack, core_has_registers, core_info_proc): Rework as
8775 core_target methods.
8776 (ignore, core_remove_breakpoint, init_core_ops): Delete.
8777 (_initialize_corelow): Initialize the_core_target.
8778 * gdbcore.h (core_target): Delete.
8779 (the_core_target): New.
8780
8781 * ctf.c: (ctf_target): New class.
8782 (ctf_ops): Now a ctf_target.
8783 (ctf_open, ctf_close, ctf_files_info, ctf_fetch_registers)
8784 (ctf_xfer_partial, ctf_get_trace_state_variable_value)
8785 (ctf_trace_find, ctf_traceframe_info): Refactor as ctf_target
8786 methods.
8787 (init_ctf_ops): Delete.
8788 (_initialize_ctf): Don't call it.
8789 * tracefile-tfile.c (tfile_target): New class.
8790 (tfile_ops): Now a tfile_target.
8791 (tfile_open, tfile_close, tfile_files_info)
8792 (tfile_get_tracepoint_status, tfile_trace_find)
8793 (tfile_fetch_registers, tfile_xfer_partial)
8794 (tfile_get_trace_state_variable_value, tfile_traceframe_info):
8795 Refactor as tfile_target methods.
8796 (tfile_xfer_partial_features): Remove target_ops parameter.
8797 (init_tfile_ops): Delete.
8798 (_initialize_tracefile_tfile): Don't call it.
8799 * tracefile.c (tracefile_has_all_memory, tracefile_has_memory)
8800 (tracefile_has_stack, tracefile_has_registers)
8801 (tracefile_thread_alive, tracefile_get_trace_status): Refactor as
8802 tracefile_target methods.
8803 (init_tracefile_ops): Delete.
8804 (tracefile_target::tracefile_target): New.
8805 * tracefile.h: Include "target.h".
8806 (tracefile_target): New class.
8807 (init_tracefile_ops): Delete.
8808
8809 * spu-multiarch.c (spu_multiarch_target): New class.
8810 (spu_ops): Now a spu_multiarch_target.
8811 (spu_thread_architecture, spu_region_ok_for_hw_watchpoint)
8812 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
8813 (spu_search_memory, spu_mourn_inferior): Refactor as
8814 spu_multiarch_target methods.
8815 (init_spu_ops): Delete.
8816 (_initialize_spu_multiarch): Remove references to init_spu_ops,
8817 complete_target_initialization.
8818
8819 * ravenscar-thread.c (ravenscar_thread_target): New class.
8820 (ravenscar_ops): Now a ravenscar_thread_target.
8821 (ravenscar_resume, ravenscar_wait, ravenscar_update_thread_list)
8822 (ravenscar_thread_alive, ravenscar_pid_to_str)
8823 (ravenscar_fetch_registers, ravenscar_store_registers)
8824 (ravenscar_prepare_to_store, ravenscar_stopped_by_sw_breakpoint)
8825 (ravenscar_stopped_by_hw_breakpoint)
8826 (ravenscar_stopped_by_watchpoint, ravenscar_stopped_data_address)
8827 (ravenscar_mourn_inferior, ravenscar_core_of_thread)
8828 (ravenscar_get_ada_task_ptid): Refactor as ravenscar_thread_target
8829 methods.
8830 (init_ravenscar_thread_ops): Delete.
8831 (_initialize_ravenscar): Remove references to
8832 init_ravenscar_thread_ops and complete_target_initialization.
8833
8834 * bsd-uthread.c (bsd_uthread_ops_hack): Delete.
8835 (bsd_uthread_target): New class.
8836 (bsd_uthread_ops): Now a bsd_uthread_target.
8837 (bsd_uthread_activate): Adjust to refer to bsd_uthread_ops.
8838 (bsd_uthread_close, bsd_uthread_mourn_inferior)
8839 (bsd_uthread_fetch_registers, bsd_uthread_store_registers)
8840 (bsd_uthread_wait, bsd_uthread_resume, bsd_uthread_thread_alive)
8841 (bsd_uthread_update_thread_list, bsd_uthread_extra_thread_info)
8842 (bsd_uthread_pid_to_str): Refactor as bsd_uthread_target methods.
8843 (bsd_uthread_target): Delete function.
8844 (_initialize_bsd_uthread): Remove reference to
8845 complete_target_initialization.
8846
8847 * bfd-target.c (target_bfd_data): Delete. Fields folded into ...
8848 (target_bfd): ... this new class.
8849 (target_bfd_xfer_partial, target_bfd_get_section_table)
8850 (target_bfd_close): Refactor as target_bfd methods.
8851 (target_bfd::~target_bfd): New.
8852 (target_bfd_reopen): Adjust.
8853 (target_bfd::close): New.
8854
8855 * record-btrace.c (record_btrace_target): New class.
8856 (record_btrace_ops): Now a record_btrace_target.
8857 (record_btrace_open, record_btrace_stop_recording)
8858 (record_btrace_disconnect, record_btrace_close)
8859 (record_btrace_async, record_btrace_info)
8860 (record_btrace_insn_history, record_btrace_insn_history_range)
8861 (record_btrace_insn_history_from, record_btrace_call_history)
8862 (record_btrace_call_history_range)
8863 (record_btrace_call_history_from, record_btrace_record_method)
8864 (record_btrace_is_replaying, record_btrace_will_replay)
8865 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
8866 (record_btrace_remove_breakpoint, record_btrace_fetch_registers)
8867 (record_btrace_store_registers, record_btrace_prepare_to_store)
8868 (record_btrace_to_get_unwinder)
8869 (record_btrace_to_get_tailcall_unwinder, record_btrace_resume)
8870 (record_btrace_commit_resume, record_btrace_wait)
8871 (record_btrace_stop, record_btrace_can_execute_reverse)
8872 (record_btrace_stopped_by_sw_breakpoint)
8873 (record_btrace_supports_stopped_by_sw_breakpoint)
8874 (record_btrace_stopped_by_hw_breakpoint)
8875 (record_btrace_supports_stopped_by_hw_breakpoint)
8876 (record_btrace_update_thread_list, record_btrace_thread_alive)
8877 (record_btrace_goto_begin, record_btrace_goto_end)
8878 (record_btrace_goto, record_btrace_stop_replaying_all)
8879 (record_btrace_execution_direction)
8880 (record_btrace_prepare_to_generate_core)
8881 (record_btrace_done_generating_core): Refactor as
8882 record_btrace_target methods.
8883 (init_record_btrace_ops): Delete.
8884 (_initialize_record_btrace): Remove reference to
8885 init_record_btrace_ops.
8886 * record-full.c (RECORD_FULL_IS_REPLAY): Adjust to always refer to
8887 the execution_direction global.
8888 (record_full_base_target, record_full_target)
8889 (record_full_core_target): New classes.
8890 (record_full_ops): Now a record_full_target.
8891 (record_full_core_ops): Now a record_full_core_target.
8892 (record_full_target::detach, record_full_target::disconnect)
8893 (record_full_core_target::disconnect)
8894 (record_full_target::mourn_inferior, record_full_target::kill):
8895 New.
8896 (record_full_open, record_full_close, record_full_async): Refactor
8897 as methods of the record_full_base_target class.
8898 (record_full_resume, record_full_commit_resume): Refactor
8899 as methods of the record_full_target class.
8900 (record_full_wait, record_full_stopped_by_watchpoint)
8901 (record_full_stopped_data_address)
8902 (record_full_stopped_by_sw_breakpoint)
8903 (record_full_supports_stopped_by_sw_breakpoint)
8904 (record_full_stopped_by_hw_breakpoint)
8905 (record_full_supports_stopped_by_hw_breakpoint): Refactor as
8906 methods of the record_full_base_target class.
8907 (record_full_store_registers, record_full_xfer_partial)
8908 (record_full_insert_breakpoint, record_full_remove_breakpoint):
8909 Refactor as methods of the record_full_target class.
8910 (record_full_can_execute_reverse, record_full_get_bookmark)
8911 (record_full_goto_bookmark, record_full_execution_direction)
8912 (record_full_record_method, record_full_info, record_full_delete)
8913 (record_full_is_replaying, record_full_will_replay)
8914 (record_full_goto_begin, record_full_goto_end, record_full_goto)
8915 (record_full_stop_replaying): Refactor as methods of the
8916 record_full_base_target class.
8917 (record_full_core_resume, record_full_core_kill)
8918 (record_full_core_fetch_registers)
8919 (record_full_core_prepare_to_store)
8920 (record_full_core_store_registers, record_full_core_xfer_partial)
8921 (record_full_core_insert_breakpoint)
8922 (record_full_core_remove_breakpoint)
8923 (record_full_core_has_execution): Refactor
8924 as methods of the record_full_core_target class.
8925 (record_full_base_target::supports_delete_record): New.
8926 (init_record_full_ops): Delete.
8927 (init_record_full_core_ops): Delete.
8928 (record_full_save): Refactor as method of the
8929 record_full_base_target class.
8930 (_initialize_record_full): Remove references to
8931 init_record_full_ops and init_record_full_core_ops.
8932
8933 * remote.c (remote_target, extended_remote_target): New classes.
8934 (remote_ops): Now a remote_target.
8935 (extended_remote_ops): Now an extended_remote_target.
8936 (remote_insert_fork_catchpoint, remote_remove_fork_catchpoint)
8937 (remote_insert_vfork_catchpoint, remote_remove_vfork_catchpoint)
8938 (remote_insert_exec_catchpoint, remote_remove_exec_catchpoint)
8939 (remote_pass_signals, remote_set_syscall_catchpoint)
8940 (remote_program_signals, )
8941 (remote_thread_always_alive): Remove target_ops parameter.
8942 (remote_thread_alive, remote_thread_name)
8943 (remote_update_thread_list, remote_threads_extra_info)
8944 (remote_static_tracepoint_marker_at)
8945 (remote_static_tracepoint_markers_by_strid)
8946 (remote_get_ada_task_ptid, remote_close, remote_start_remote)
8947 (remote_open): Refactor as methods of remote_target.
8948 (extended_remote_open, extended_remote_detach)
8949 (extended_remote_attach, extended_remote_post_attach):
8950 (extended_remote_supports_disable_randomization)
8951 (extended_remote_create_inferior): : Refactor as method of
8952 extended_remote_target.
8953 (remote_set_permissions, remote_open_1, remote_detach)
8954 (remote_follow_fork, remote_follow_exec, remote_disconnect)
8955 (remote_resume, remote_commit_resume, remote_stop)
8956 (remote_interrupt, remote_pass_ctrlc, remote_terminal_inferior)
8957 (remote_terminal_ours, remote_wait, remote_fetch_registers)
8958 (remote_prepare_to_store, remote_store_registers)
8959 (remote_flash_erase, remote_flash_done, remote_files_info)
8960 (remote_kill, remote_mourn, remote_insert_breakpoint)
8961 (remote_remove_breakpoint, remote_insert_watchpoint)
8962 (remote_watchpoint_addr_within_range)
8963 (remote_remove_watchpoint, remote_region_ok_for_hw_watchpoint)
8964 (remote_check_watch_resources, remote_stopped_by_sw_breakpoint)
8965 (remote_supports_stopped_by_sw_breakpoint)
8966 (remote_stopped_by_hw_breakpoint)
8967 (remote_supports_stopped_by_hw_breakpoint)
8968 (remote_stopped_by_watchpoint, remote_stopped_data_address)
8969 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
8970 (remote_verify_memory): Refactor as methods of remote_target.
8971 (remote_write_qxfer, remote_read_qxfer): Remove target_ops
8972 parameter.
8973 (remote_xfer_partial, remote_get_memory_xfer_limit)
8974 (remote_search_memory, remote_rcmd, remote_memory_map)
8975 (remote_pid_to_str, remote_get_thread_local_address)
8976 (remote_get_tib_address, remote_read_description): Refactor as
8977 methods of remote_target.
8978 (remote_target::fileio_open, remote_target::fileio_pwrite)
8979 (remote_target::fileio_pread, remote_target::fileio_close): New.
8980 (remote_hostio_readlink, remote_hostio_fstat)
8981 (remote_filesystem_is_local, remote_can_execute_reverse)
8982 (remote_supports_non_stop, remote_supports_disable_randomization)
8983 (remote_supports_multi_process, remote_supports_cond_breakpoints)
8984 (remote_supports_enable_disable_tracepoint)
8985 (remote_supports_string_tracing)
8986 (remote_can_run_breakpoint_commands, remote_trace_init)
8987 (remote_download_tracepoint, remote_can_download_tracepoint)
8988 (remote_download_trace_state_variable, remote_enable_tracepoint)
8989 (remote_disable_tracepoint, remote_trace_set_readonly_regions)
8990 (remote_trace_start, remote_get_trace_status)
8991 (remote_get_tracepoint_status, remote_trace_stop)
8992 (remote_trace_find, remote_get_trace_state_variable_value)
8993 (remote_save_trace_data, remote_get_raw_trace_data)
8994 (remote_set_disconnected_tracing, remote_core_of_thread)
8995 (remote_set_circular_trace_buffer, remote_traceframe_info)
8996 (remote_get_min_fast_tracepoint_insn_len)
8997 (remote_set_trace_buffer_size, remote_set_trace_notes)
8998 (remote_use_agent, remote_can_use_agent, remote_enable_btrace)
8999 (remote_disable_btrace, remote_teardown_btrace)
9000 (remote_read_btrace, remote_btrace_conf)
9001 (remote_augmented_libraries_svr4_read, remote_load)
9002 (remote_pid_to_exec_file, remote_can_do_single_step)
9003 (remote_execution_direction, remote_thread_handle_to_thread_info):
9004 Refactor as methods of remote_target.
9005 (init_remote_ops, init_extended_remote_ops): Delete.
9006 (remote_can_async_p, remote_is_async_p, remote_async)
9007 (remote_thread_events, remote_upload_tracepoints)
9008 (remote_upload_trace_state_variables): Refactor as methods of
9009 remote_target.
9010 (_initialize_remote): Remove references to init_remote_ops and
9011 init_extended_remote_ops.
9012
9013 * remote-sim.c (gdbsim_target): New class.
9014 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_kill)
9015 (gdbsim_load, gdbsim_create_inferior, gdbsim_open, gdbsim_close)
9016 (gdbsim_detach, gdbsim_resume, gdbsim_interrupt)
9017 (gdbsim_wait, gdbsim_prepare_to_store, gdbsim_xfer_partial)
9018 (gdbsim_files_info, gdbsim_mourn_inferior, gdbsim_thread_alive)
9019 (gdbsim_pid_to_str, gdbsim_has_all_memory, gdbsim_has_memory):
9020 Refactor as methods of gdbsim_target.
9021 (gdbsim_ops): Now a gdbsim_target.
9022 (init_gdbsim_ops): Delete.
9023 (gdbsim_cntrl_c): Adjust.
9024 (_initialize_remote_sim): Remove reference to init_gdbsim_ops.
9025
9026 * amd64-linux-nat.c (amd64_linux_nat_target): New class.
9027 (the_amd64_linux_nat_target): New.
9028 (amd64_linux_fetch_inferior_registers)
9029 (amd64_linux_store_inferior_registers): Refactor as methods of
9030 amd64_linux_nat_target.
9031 (_initialize_amd64_linux_nat): Adjust. Set linux_target.
9032 * i386-linux-nat.c: Don't include "linux-nat.h".
9033 (i386_linux_nat_target): New class.
9034 (the_i386_linux_nat_target): New.
9035 (i386_linux_fetch_inferior_registers)
9036 (i386_linux_store_inferior_registers, i386_linux_resume): Refactor
9037 as methods of i386_linux_nat_target.
9038 (_initialize_i386_linux_nat): Adjust. Set linux_target.
9039 * inf-child.c (inf_child_ops): Delete.
9040 (inf_child_fetch_inferior_registers)
9041 (inf_child_store_inferior_registers): Delete.
9042 (inf_child_post_attach, inf_child_prepare_to_store): Refactor as
9043 methods of inf_child_target.
9044 (inf_child_target::supports_terminal_ours)
9045 (inf_child_target::terminal_init)
9046 (inf_child_target::terminal_inferior)
9047 (inf_child_target::terminal_ours_for_output)
9048 (inf_child_target::terminal_ours, inf_child_target::interrupt)
9049 (inf_child_target::pass_ctrlc, inf_child_target::terminal_info):
9050 New.
9051 (inf_child_open, inf_child_disconnect, inf_child_close)
9052 (inf_child_mourn_inferior, inf_child_maybe_unpush_target)
9053 (inf_child_post_startup_inferior, inf_child_can_run)
9054 (inf_child_pid_to_exec_file): Refactor as methods of
9055 inf_child_target.
9056 (inf_child_follow_fork): Delete.
9057 (inf_child_target::can_create_inferior)
9058 (inf_child_target::can_attach): New.
9059 (inf_child_target::has_all_memory, inf_child_target::has_memory)
9060 (inf_child_target::has_stack, inf_child_target::has_registers)
9061 (inf_child_target::has_execution): New.
9062 (inf_child_fileio_open, inf_child_fileio_pwrite)
9063 (inf_child_fileio_pread, inf_child_fileio_fstat)
9064 (inf_child_fileio_close, inf_child_fileio_unlink)
9065 (inf_child_fileio_readlink, inf_child_use_agent)
9066 (inf_child_can_use_agent): Refactor as methods of
9067 inf_child_target.
9068 (return_zero, inf_child_target): Delete.
9069 (inf_child_target::inf_child_target): New.
9070 * inf-child.h: Include "target.h".
9071 (inf_child_target): Delete function prototype.
9072 (inf_child_target): New class.
9073 (inf_child_open_target, inf_child_mourn_inferior)
9074 (inf_child_maybe_unpush_target): Delete.
9075 * inf-ptrace.c (inf_ptrace_target::~inf_ptrace_target): New.
9076 (inf_ptrace_follow_fork, inf_ptrace_insert_fork_catchpoint)
9077 (inf_ptrace_remove_fork_catchpoint, inf_ptrace_create_inferior)
9078 (inf_ptrace_post_startup_inferior, inf_ptrace_mourn_inferior)
9079 (inf_ptrace_attach, inf_ptrace_post_attach, inf_ptrace_detach)
9080 (inf_ptrace_detach_success, inf_ptrace_kill, inf_ptrace_resume)
9081 (inf_ptrace_wait, inf_ptrace_xfer_partial)
9082 (inf_ptrace_thread_alive, inf_ptrace_files_info)
9083 (inf_ptrace_pid_to_str, inf_ptrace_auxv_parse): Refactor as
9084 methods of inf_ptrace_target.
9085 (inf_ptrace_target): Delete function.
9086 * inf-ptrace.h: Include "inf-child.h".
9087 (inf_ptrace_target): Delete function declaration.
9088 (inf_ptrace_target): New class.
9089 (inf_ptrace_trad_target, inf_ptrace_detach_success): Delete.
9090 * linux-nat.c (linux_target): New.
9091 (linux_ops, linux_ops_saved, super_xfer_partial): Delete.
9092 (linux_nat_target::~linux_nat_target): New.
9093 (linux_child_post_attach, linux_child_post_startup_inferior)
9094 (linux_child_follow_fork, linux_child_insert_fork_catchpoint)
9095 (linux_child_remove_fork_catchpoint)
9096 (linux_child_insert_vfork_catchpoint)
9097 (linux_child_remove_vfork_catchpoint)
9098 (linux_child_insert_exec_catchpoint)
9099 (linux_child_remove_exec_catchpoint)
9100 (linux_child_set_syscall_catchpoint, linux_nat_pass_signals)
9101 (linux_nat_create_inferior, linux_nat_attach, linux_nat_detach)
9102 (linux_nat_resume, linux_nat_stopped_by_watchpoint)
9103 (linux_nat_stopped_data_address)
9104 (linux_nat_stopped_by_sw_breakpoint)
9105 (linux_nat_supports_stopped_by_sw_breakpoint)
9106 (linux_nat_stopped_by_hw_breakpoint)
9107 (linux_nat_supports_stopped_by_hw_breakpoint, linux_nat_wait)
9108 (linux_nat_kill, linux_nat_mourn_inferior)
9109 (linux_nat_xfer_partial, linux_nat_thread_alive)
9110 (linux_nat_update_thread_list, linux_nat_pid_to_str)
9111 (linux_nat_thread_name, linux_child_pid_to_exec_file)
9112 (linux_child_static_tracepoint_markers_by_strid)
9113 (linux_nat_is_async_p, linux_nat_can_async_p)
9114 (linux_nat_supports_non_stop, linux_nat_always_non_stop_p)
9115 (linux_nat_supports_multi_process)
9116 (linux_nat_supports_disable_randomization, linux_nat_async)
9117 (linux_nat_stop, linux_nat_close, linux_nat_thread_address_space)
9118 (linux_nat_core_of_thread, linux_nat_filesystem_is_local)
9119 (linux_nat_fileio_open, linux_nat_fileio_readlink)
9120 (linux_nat_fileio_unlink, linux_nat_thread_events): Refactor as
9121 methods of linux_nat_target.
9122 (linux_nat_wait_1, linux_xfer_siginfo, linux_proc_xfer_partial)
9123 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Remove target_ops
9124 parameter.
9125 (check_stopped_by_watchpoint): Adjust.
9126 (linux_xfer_partial): Delete.
9127 (linux_target_install_ops, linux_target, linux_nat_add_target):
9128 Delete.
9129 (linux_nat_target::linux_nat_target): New.
9130 * linux-nat.h: Include "inf-ptrace.h".
9131 (linux_nat_target): New.
9132 (linux_target, linux_target_install_ops, linux_nat_add_target):
9133 Delete function declarations.
9134 (linux_target): Declare global.
9135 * linux-thread-db.c (thread_db_target): New.
9136 (thread_db_target::thread_db_target): New.
9137 (thread_db_ops): Delete.
9138 (the_thread_db_target): New.
9139 (thread_db_detach, thread_db_wait, thread_db_mourn_inferior)
9140 (thread_db_update_thread_list, thread_db_pid_to_str)
9141 (thread_db_extra_thread_info)
9142 (thread_db_thread_handle_to_thread_info)
9143 (thread_db_get_thread_local_address, thread_db_get_ada_task_ptid)
9144 (thread_db_resume): Refactor as methods of thread_db_target.
9145 (init_thread_db_ops): Delete.
9146 (_initialize_thread_db): Remove reference to init_thread_db_ops.
9147 * x86-linux-nat.c: Don't include "linux-nat.h".
9148 (super_post_startup_inferior): Delete.
9149 (x86_linux_nat_target::~x86_linux_nat_target): New.
9150 (x86_linux_child_post_startup_inferior)
9151 (x86_linux_read_description, x86_linux_enable_btrace)
9152 (x86_linux_disable_btrace, x86_linux_teardown_btrace)
9153 (x86_linux_read_btrace, x86_linux_btrace_conf): Refactor as
9154 methods of x86_linux_nat_target.
9155 (x86_linux_create_target): Delete. Bits folded ...
9156 (x86_linux_add_target): ... here. Now takes a linux_nat_target
9157 pointer.
9158 * x86-linux-nat.h: Include "linux-nat.h" and "x86-nat.h".
9159 (x86_linux_nat_target): New class.
9160 (x86_linux_create_target): Delete.
9161 (x86_linux_add_target): Now takes a linux_nat_target pointer.
9162 * x86-nat.c (x86_insert_watchpoint, x86_remove_watchpoint)
9163 (x86_region_ok_for_watchpoint, x86_stopped_data_address)
9164 (x86_stopped_by_watchpoint, x86_insert_hw_breakpoint)
9165 (x86_remove_hw_breakpoint, x86_can_use_hw_breakpoint)
9166 (x86_stopped_by_hw_breakpoint): Remove target_ops parameter and
9167 make extern.
9168 (x86_use_watchpoints): Delete.
9169 * x86-nat.h: Include "breakpoint.h" and "target.h".
9170 (x86_use_watchpoints): Delete.
9171 (x86_can_use_hw_breakpoint, x86_region_ok_for_hw_watchpoint)
9172 (x86_stopped_by_watchpoint, x86_stopped_data_address)
9173 (x86_insert_watchpoint, x86_remove_watchpoint)
9174 (x86_insert_hw_breakpoint, x86_remove_hw_breakpoint)
9175 (x86_stopped_by_hw_breakpoint): New declarations.
9176 (x86_nat_target): New template class.
9177
9178 * ppc-linux-nat.c (ppc_linux_nat_target): New class.
9179 (the_ppc_linux_nat_target): New.
9180 (ppc_linux_fetch_inferior_registers)
9181 (ppc_linux_can_use_hw_breakpoint)
9182 (ppc_linux_region_ok_for_hw_watchpoint)
9183 (ppc_linux_ranged_break_num_registers)
9184 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
9185 (ppc_linux_insert_mask_watchpoint)
9186 (ppc_linux_remove_mask_watchpoint)
9187 (ppc_linux_can_accel_watchpoint_condition)
9188 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint)
9189 (ppc_linux_stopped_data_address, ppc_linux_stopped_by_watchpoint)
9190 (ppc_linux_watchpoint_addr_within_range)
9191 (ppc_linux_masked_watch_num_registers)
9192 (ppc_linux_store_inferior_registers, ppc_linux_auxv_parse)
9193 (ppc_linux_read_description): Refactor as methods of
9194 ppc_linux_nat_target.
9195 (_initialize_ppc_linux_nat): Adjust. Set linux_target.
9196
9197 * procfs.c (procfs_xfer_partial): Delete forward declaration.
9198 (procfs_target): New class.
9199 (the_procfs_target): New.
9200 (procfs_target): Delete function.
9201 (procfs_auxv_parse, procfs_attach, procfs_detach)
9202 (procfs_fetch_registers, procfs_store_registers, procfs_wait)
9203 (procfs_xfer_partial, procfs_resume, procfs_pass_signals)
9204 (procfs_files_info, procfs_kill_inferior, procfs_mourn_inferior)
9205 (procfs_create_inferior, procfs_update_thread_list)
9206 (procfs_thread_alive, procfs_pid_to_str)
9207 (procfs_can_use_hw_breakpoint, procfs_stopped_by_watchpoint)
9208 (procfs_stopped_data_address, procfs_insert_watchpoint)
9209 (procfs_remove_watchpoint, procfs_region_ok_for_hw_watchpoint)
9210 (proc_find_memory_regions, procfs_info_proc)
9211 (procfs_make_note_section): Refactor as methods of procfs_target.
9212 (_initialize_procfs): Adjust.
9213 * sol-thread.c (sol_thread_target): New class.
9214 (sol_thread_ops): Now a sol_thread_target.
9215 (sol_thread_detach, sol_thread_resume, sol_thread_wait)
9216 (sol_thread_fetch_registers, sol_thread_store_registers)
9217 (sol_thread_xfer_partial, sol_thread_mourn_inferior)
9218 (sol_thread_alive, solaris_pid_to_str, sol_update_thread_list)
9219 (sol_get_ada_task_ptid): Refactor as methods of sol_thread_target.
9220 (init_sol_thread_ops): Delete.
9221 (_initialize_sol_thread): Adjust. Remove references to
9222 init_sol_thread_ops and complete_target_initialization.
9223
9224 * windows-nat.c (windows_nat_target): New class.
9225 (windows_fetch_inferior_registers)
9226 (windows_store_inferior_registers, windows_resume, windows_wait)
9227 (windows_attach, windows_detach, windows_pid_to_exec_file)
9228 (windows_files_info, windows_create_inferior)
9229 (windows_mourn_inferior, windows_interrupt, windows_kill_inferior)
9230 (windows_close, windows_pid_to_str, windows_xfer_partial)
9231 (windows_get_tib_address, windows_get_ada_task_ptid)
9232 (windows_thread_name, windows_thread_alive): Refactor as
9233 windows_nat_target methods.
9234 (do_initial_windows_stuff): Adjust.
9235 (windows_target): Delete function.
9236 (_initialize_windows_nat): Adjust.
9237
9238 * darwin-nat.c (darwin_resume, darwin_wait_to, darwin_interrupt)
9239 (darwin_mourn_inferior, darwin_kill_inferior)
9240 (darwin_create_inferior, darwin_attach, darwin_detach)
9241 (darwin_pid_to_str, darwin_thread_alive, darwin_xfer_partial)
9242 (darwin_pid_to_exec_file, darwin_get_ada_task_ptid)
9243 (darwin_supports_multi_process): Refactor as darwin_nat_target
9244 methods.
9245 (darwin_resume_to, darwin_files_info): Delete.
9246 (_initialize_darwin_inferior): Rename to ...
9247 (_initialize_darwin_nat): ... this. Adjust to C++ification.
9248 * darwin-nat.h: Include "inf-child.h".
9249 (darwin_nat_target): New class.
9250 (darwin_complete_target): Delete.
9251 * i386-darwin-nat.c (i386_darwin_nat_target): New class.
9252 (darwin_target): New.
9253 (i386_darwin_fetch_inferior_registers)
9254 (i386_darwin_store_inferior_registers): Refactor as methods of
9255 darwin_nat_target.
9256 (darwin_complete_target): Delete, with ...
9257 (_initialize_i386_darwin_nat): ... bits factored out here.
9258
9259 * alpha-linux-nat.c (alpha_linux_nat_target): New class.
9260 (the_alpha_linux_nat_target): New.
9261 (alpha_linux_register_u_offset): Refactor as
9262 alpha_linux_nat_target method.
9263 (_initialize_alpha_linux_nat): Adjust.
9264 * linux-nat-trad.c (inf_ptrace_register_u_offset): Delete.
9265 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
9266 (inf_ptrace_store_register, inf_ptrace_store_registers): Refact as
9267 methods of linux_nat_trad_target.
9268 (linux_trad_target): Delete.
9269 * linux-nat-trad.h (linux_trad_target): Delete function.
9270 (linux_nat_trad_target): New class.
9271 * mips-linux-nat.c (mips_linux_nat_target): New class.
9272 (super_fetch_registers, super_store_registers, super_close):
9273 Delete.
9274 (the_mips_linux_nat_target): New.
9275 (mips64_linux_regsets_fetch_registers)
9276 (mips64_linux_regsets_store_registers)
9277 (mips64_linux_fetch_registers, mips64_linux_store_registers)
9278 (mips_linux_register_u_offset, mips_linux_read_description)
9279 (mips_linux_can_use_hw_breakpoint)
9280 (mips_linux_stopped_by_watchpoint)
9281 (mips_linux_stopped_data_address)
9282 (mips_linux_region_ok_for_hw_watchpoint)
9283 (mips_linux_insert_watchpoint, mips_linux_remove_watchpoint)
9284 (mips_linux_close): Refactor as methods of mips_linux_nat.
9285 (_initialize_mips_linux_nat): Adjust to C++ification.
9286
9287 * aix-thread.c (aix_thread_target): New class.
9288 (aix_thread_ops): Now an aix_thread_target.
9289 (aix_thread_detach, aix_thread_resume, aix_thread_wait)
9290 (aix_thread_fetch_registers, aix_thread_store_registers)
9291 (aix_thread_xfer_partial, aix_thread_mourn_inferior)
9292 (aix_thread_thread_alive, aix_thread_pid_to_str)
9293 (aix_thread_extra_thread_info, aix_thread_get_ada_task_ptid):
9294 Refactor as methods of aix_thread_target.
9295 (init_aix_thread_ops): Delete.
9296 (_initialize_aix_thread): Remove references to init_aix_thread_ops
9297 and complete_target_initialization.
9298 * rs6000-nat.c (rs6000_xfer_shared_libraries): Delete.
9299 (rs6000_nat_target): New class.
9300 (the_rs6000_nat_target): New.
9301 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers)
9302 (rs6000_xfer_partial, rs6000_wait, rs6000_create_inferior)
9303 (rs6000_xfer_shared_libraries): Refactor as rs6000_nat_target methods.
9304 (super_create_inferior): Delete.
9305 (_initialize_rs6000_nat): Adjust to C++ification.
9306
9307 * arm-linux-nat.c (arm_linux_nat_target): New class.
9308 (the_arm_linux_nat_target): New.
9309 (arm_linux_fetch_inferior_registers)
9310 (arm_linux_store_inferior_registers, arm_linux_read_description)
9311 (arm_linux_can_use_hw_breakpoint, arm_linux_insert_hw_breakpoint)
9312 (arm_linux_remove_hw_breakpoint)
9313 (arm_linux_region_ok_for_hw_watchpoint)
9314 (arm_linux_insert_watchpoint, arm_linux_remove_watchpoint)
9315 (arm_linux_stopped_data_address, arm_linux_stopped_by_watchpoint)
9316 (arm_linux_watchpoint_addr_within_range): Refactor as methods of
9317 arm_linux_nat_target.
9318 (_initialize_arm_linux_nat): Adjust to C++ification.
9319
9320 * aarch64-linux-nat.c (aarch64_linux_nat_target): New class.
9321 (the_aarch64_linux_nat_target): New.
9322 (aarch64_linux_fetch_inferior_registers)
9323 (aarch64_linux_store_inferior_registers)
9324 (aarch64_linux_child_post_startup_inferior)
9325 (aarch64_linux_read_description)
9326 (aarch64_linux_can_use_hw_breakpoint)
9327 (aarch64_linux_insert_hw_breakpoint)
9328 (aarch64_linux_remove_hw_breakpoint)
9329 (aarch64_linux_insert_watchpoint, aarch64_linux_remove_watchpoint)
9330 (aarch64_linux_region_ok_for_hw_watchpoint)
9331 (aarch64_linux_stopped_data_address)
9332 (aarch64_linux_stopped_by_watchpoint)
9333 (aarch64_linux_watchpoint_addr_within_range)
9334 (aarch64_linux_can_do_single_step): Refactor as methods of
9335 aarch64_linux_nat_target.
9336 (super_post_startup_inferior): Delete.
9337 (_initialize_aarch64_linux_nat): Adjust to C++ification.
9338
9339 * hppa-linux-nat.c (hppa_linux_nat_target): New class.
9340 (the_hppa_linux_nat_target): New.
9341 (hppa_linux_fetch_inferior_registers)
9342 (hppa_linux_store_inferior_registers): Refactor as methods of
9343 hppa_linux_nat_target.
9344 (_initialize_hppa_linux_nat): Adjust to C++ification.
9345
9346 * ia64-linux-nat.c (ia64_linux_nat_target): New class.
9347 (the_ia64_linux_nat_target): New.
9348 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint)
9349 (ia64_linux_stopped_data_address)
9350 (ia64_linux_stopped_by_watchpoint, ia64_linux_fetch_registers)
9351 (ia64_linux_store_registers, ia64_linux_xfer_partial): Refactor as
9352 ia64_linux_nat_target methods.
9353 (super_xfer_partial): Delete.
9354 (_initialize_ia64_linux_nat): Adjust to C++ification.
9355
9356 * m32r-linux-nat.c (m32r_linux_nat_target): New class.
9357 (the_m32r_linux_nat_target): New.
9358 (m32r_linux_fetch_inferior_registers)
9359 (m32r_linux_store_inferior_registers): Refactor as
9360 m32r_linux_nat_target methods.
9361 (_initialize_m32r_linux_nat): Adjust to C++ification.
9362
9363 * m68k-linux-nat.c (m68k_linux_nat_target): New class.
9364 (the_m68k_linux_nat_target): New.
9365 (m68k_linux_fetch_inferior_registers)
9366 (m68k_linux_store_inferior_registers): Refactor as
9367 m68k_linux_nat_target methods.
9368 (_initialize_m68k_linux_nat): Adjust to C++ification.
9369
9370 * s390-linux-nat.c (s390_linux_nat_target): New class.
9371 (the_s390_linux_nat_target): New.
9372 (s390_linux_fetch_inferior_registers)
9373 (s390_linux_store_inferior_registers, s390_stopped_by_watchpoint)
9374 (s390_insert_watchpoint, s390_remove_watchpoint)
9375 (s390_can_use_hw_breakpoint, s390_insert_hw_breakpoint)
9376 (s390_remove_hw_breakpoint, s390_region_ok_for_hw_watchpoint)
9377 (s390_auxv_parse, s390_read_description): Refactor as methods of
9378 s390_linux_nat_target.
9379 (_initialize_s390_nat): Adjust to C++ification.
9380
9381 * sparc-linux-nat.c (sparc_linux_nat_target): New class.
9382 (the_sparc_linux_nat_target): New.
9383 (_initialize_sparc_linux_nat): Adjust to C++ification.
9384 * sparc-nat.c (sparc_fetch_inferior_registers)
9385 (sparc_store_inferior_registers): Remove target_ops parameter.
9386 * sparc-nat.h (sparc_fetch_inferior_registers)
9387 (sparc_store_inferior_registers): Remove target_ops parameter.
9388 * sparc64-linux-nat.c (sparc64_linux_nat_target): New class.
9389 (the_sparc64_linux_nat_target): New.
9390 (_initialize_sparc64_linux_nat): Adjust to C++ification.
9391
9392 * spu-linux-nat.c (spu_linux_nat_target): New class.
9393 (the_spu_linux_nat_target): New.
9394 (spu_child_post_startup_inferior, spu_child_post_attach)
9395 (spu_child_wait, spu_fetch_inferior_registers)
9396 (spu_store_inferior_registers, spu_xfer_partial)
9397 (spu_can_use_hw_breakpoint): Refactor as spu_linux_nat_target
9398 methods.
9399 (_initialize_spu_nat): Adjust to C++ification.
9400
9401 * tilegx-linux-nat.c (tilegx_linux_nat_target): New class.
9402 (the_tilegx_linux_nat_target): New.
9403 (fetch_inferior_registers, store_inferior_registers):
9404 Refactor as methods.
9405 (_initialize_tile_linux_nat): Adjust to C++ification.
9406
9407 * xtensa-linux-nat.c (xtensa_linux_nat_target): New class.
9408 (the_xtensa_linux_nat_target): New.
9409 (xtensa_linux_fetch_inferior_registers)
9410 (xtensa_linux_store_inferior_registers): Refactor as
9411 xtensa_linux_nat_target methods.
9412 (_initialize_xtensa_linux_nat): Adjust to C++ification.
9413
9414 * fbsd-nat.c (USE_SIGTRAP_SIGINFO): Delete.
9415 (fbsd_pid_to_exec_file, fbsd_find_memory_regions)
9416 (fbsd_find_memory_regions, fbsd_info_proc, fbsd_xfer_partial)
9417 (fbsd_thread_alive, fbsd_pid_to_str, fbsd_thread_name)
9418 (fbsd_update_thread_list, fbsd_resume, fbsd_wait)
9419 (fbsd_stopped_by_sw_breakpoint)
9420 (fbsd_supports_stopped_by_sw_breakpoint, fbsd_follow_fork)
9421 (fbsd_insert_fork_catchpoint, fbsd_remove_fork_catchpoint)
9422 (fbsd_insert_vfork_catchpoint, fbsd_remove_vfork_catchpoint)
9423 (fbsd_post_startup_inferior, fbsd_post_attach)
9424 (fbsd_insert_exec_catchpoint, fbsd_remove_exec_catchpoint)
9425 (fbsd_set_syscall_catchpoint)
9426 (super_xfer_partial, super_resume, super_wait)
9427 (fbsd_supports_stopped_by_hw_breakpoint): Delete.
9428 (fbsd_handle_debug_trap): Remove target_ops parameter.
9429 (fbsd_nat_add_target): Delete.
9430 * fbsd-nat.h: Include "inf-ptrace.h".
9431 (fbsd_nat_add_target): Delete.
9432 (USE_SIGTRAP_SIGINFO): Define.
9433 (fbsd_nat_target): New class.
9434
9435 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers)
9436 (amd64bsd_store_inferior_registers): Remove target_ops parameter.
9437 (amd64bsd_target): Delete.
9438 * amd64-bsd-nat.h: New file.
9439 * amd64-fbsd-nat.c: Include "amd64-bsd-nat.h" instead of
9440 "x86-bsd-nat.h".
9441 (amd64_fbsd_nat_target): New class.
9442 (the_amd64_fbsd_nat_target): New.
9443 (amd64fbsd_read_description): Refactor as method of
9444 amd64_fbsd_nat_target.
9445 (amd64_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
9446 (_initialize_amd64fbsd_nat): Adjust to C++ification.
9447 * amd64-nat.h (amd64bsd_target): Delete function declaration.
9448 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers)
9449 (i386bsd_store_inferior_registers): Remove target_ops parameter.
9450 (i386bsd_target): Delete.
9451 * i386-bsd-nat.h (i386bsd_target): Delete function declaration.
9452 (i386bsd_fetch_inferior_registers)
9453 (i386bsd_store_inferior_registers): Declare.
9454 (i386_bsd_nat_target): New class.
9455 * i386-fbsd-nat.c (i386_fbsd_nat_target): New class.
9456 (the_i386_fbsd_nat_target): New.
9457 (i386fbsd_resume, i386fbsd_read_description): Refactor as
9458 i386_fbsd_nat_target methods.
9459 (i386_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
9460 (_initialize_i386fbsd_nat): Adjust to C++ification.
9461 * x86-bsd-nat.c (super_mourn_inferior): Delete.
9462 (x86bsd_mourn_inferior, x86bsd_target): Delete.
9463 (_initialize_x86_bsd_nat): Adjust to C++ification.
9464 * x86-bsd-nat.h: Include "x86-nat.h".
9465 (x86bsd_target): Delete declaration.
9466 (x86bsd_nat_target): New class.
9467
9468 * aarch64-fbsd-nat.c (aarch64_fbsd_nat_target): New class.
9469 (the_aarch64_fbsd_nat_target): New.
9470 (aarch64_fbsd_fetch_inferior_registers)
9471 (aarch64_fbsd_store_inferior_registers): Refactor as methods of
9472 aarch64_fbsd_nat_target.
9473 (_initialize_aarch64_fbsd_nat): Adjust to C++ification.
9474 * alpha-bsd-nat.c (alpha_bsd_nat_target): New class.
9475 (the_alpha_bsd_nat_target): New.
9476 (alphabsd_fetch_inferior_registers)
9477 (alphabsd_store_inferior_registers): Refactor as
9478 alpha_bsd_nat_target methods.
9479 (_initialize_alphabsd_nat): Refactor as methods of
9480 alpha_bsd_nat_target.
9481 * amd64-nbsd-nat.c: Include "amd64-bsd-nat.h".
9482 (the_amd64_nbsd_nat_target): New.
9483 (_initialize_amd64nbsd_nat): Adjust to C++ification.
9484 * amd64-obsd-nat.c: Include "amd64-bsd-nat.h".
9485 (the_amd64_obsd_nat_target): New.
9486 (_initialize_amd64obsd_nat): Adjust to C++ification.
9487 * arm-fbsd-nat.c (arm_fbsd_nat_target): New.
9488 (the_arm_fbsd_nat_target): New.
9489 (arm_fbsd_fetch_inferior_registers)
9490 (arm_fbsd_store_inferior_registers, arm_fbsd_read_description):
9491 (_initialize_arm_fbsd_nat): Refactor as methods of
9492 arm_fbsd_nat_target.
9493 (_initialize_arm_fbsd_nat): Adjust to C++ification.
9494 * arm-nbsd-nat.c (arm_netbsd_nat_target): New class.
9495 (the_arm_netbsd_nat_target): New.
9496 (armnbsd_fetch_registers, armnbsd_store_registers): Refactor as
9497 arm_netbsd_nat_target.
9498 (_initialize_arm_netbsd_nat): Adjust to C++ification.
9499 * hppa-nbsd-nat.c (hppa_nbsd_nat_target): New class.
9500 (the_hppa_nbsd_nat_target): New.
9501 (hppanbsd_fetch_registers, hppanbsd_store_registers): Refactor as
9502 hppa_nbsd_nat_target methods.
9503 (_initialize_hppanbsd_nat): Adjust to C++ification.
9504 * hppa-obsd-nat.c (hppa_obsd_nat_target): New class.
9505 (the_hppa_obsd_nat_target): New.
9506 (hppaobsd_fetch_registers, hppaobsd_store_registers): Refactor as
9507 methods of hppa_obsd_nat_target.
9508 (_initialize_hppaobsd_nat): Adjust to C++ification. Use
9509 add_target.
9510 * i386-nbsd-nat.c (the_i386_nbsd_nat_target): New.
9511 (_initialize_i386nbsd_nat): Adjust to C++ification. Use
9512 add_target.
9513 * i386-obsd-nat.c (the_i386_obsd_nat_target): New.
9514 (_initialize_i386obsd_nat): Use add_target.
9515 * m68k-bsd-nat.c (m68k_bsd_nat_target): New class.
9516 (the_m68k_bsd_nat_target): New.
9517 (m68kbsd_fetch_inferior_registers)
9518 (m68kbsd_store_inferior_registers): Refactor as methods of
9519 m68k_bsd_nat_target.
9520 (_initialize_m68kbsd_nat): Adjust to C++ification.
9521 * mips-fbsd-nat.c (mips_fbsd_nat_target): New class.
9522 (the_mips_fbsd_nat_target): New.
9523 (mips_fbsd_fetch_inferior_registers)
9524 (mips_fbsd_store_inferior_registers): Refactor as methods of
9525 mips_fbsd_nat_target.
9526 (_initialize_mips_fbsd_nat): Adjust to C++ification. Use
9527 add_target.
9528 * mips-nbsd-nat.c (mips_nbsd_nat_target): New class.
9529 (the_mips_nbsd_nat_target): New.
9530 (mipsnbsd_fetch_inferior_registers)
9531 (mipsnbsd_store_inferior_registers): Refactor as methods of
9532 mips_nbsd_nat_target.
9533 (_initialize_mipsnbsd_nat): Adjust to C++ification.
9534 * mips64-obsd-nat.c (mips64_obsd_nat_target): New class.
9535 (the_mips64_obsd_nat_target): New.
9536 (mips64obsd_fetch_inferior_registers)
9537 (mips64obsd_store_inferior_registers): Refactor as methods of
9538 mips64_obsd_nat_target.
9539 (_initialize_mips64obsd_nat): Adjust to C++ification. Use
9540 add_target.
9541 * nbsd-nat.c (nbsd_pid_to_exec_file): Refactor as method of
9542 nbsd_nat_target.
9543 * nbsd-nat.h: Include "inf-ptrace.h".
9544 (nbsd_nat_target): New class.
9545 * obsd-nat.c (obsd_pid_to_str, obsd_update_thread_list)
9546 (obsd_wait): Refactor as methods of obsd_nat_target.
9547 (obsd_add_target): Delete.
9548 * obsd-nat.h: Include "inf-ptrace.h".
9549 (obsd_nat_target): New class.
9550 * ppc-fbsd-nat.c (ppc_fbsd_nat_target): New class.
9551 (the_ppc_fbsd_nat_target): New.
9552 (ppcfbsd_fetch_inferior_registers)
9553 (ppcfbsd_store_inferior_registers): Refactor as methods of
9554 ppc_fbsd_nat_target.
9555 (_initialize_ppcfbsd_nat): Adjust to C++ification. Use
9556 add_target.
9557 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): New class.
9558 (the_ppc_nbsd_nat_target): New.
9559 (ppcnbsd_fetch_inferior_registers)
9560 (ppcnbsd_store_inferior_registers): Refactor as methods of
9561 ppc_nbsd_nat_target.
9562 (_initialize_ppcnbsd_nat): Adjust to C++ification.
9563 * ppc-obsd-nat.c (ppc_obsd_nat_target): New class.
9564 (the_ppc_obsd_nat_target): New.
9565 (ppcobsd_fetch_registers, ppcobsd_store_registers): Refactor as
9566 methods of ppc_obsd_nat_target.
9567 (_initialize_ppcobsd_nat): Adjust to C++ification. Use
9568 add_target.
9569 * sh-nbsd-nat.c (sh_nbsd_nat_target): New class.
9570 (the_sh_nbsd_nat_target): New.
9571 (shnbsd_fetch_inferior_registers)
9572 (shnbsd_store_inferior_registers): Refactor as methods of
9573 sh_nbsd_nat_target.
9574 (_initialize_shnbsd_nat): Adjust to C++ification.
9575 * sparc-nat.c (sparc_xfer_wcookie): Make extern.
9576 (inf_ptrace_xfer_partial): Delete.
9577 (sparc_xfer_partial, sparc_target): Delete.
9578 * sparc-nat.h (sparc_fetch_inferior_registers)
9579 (sparc_store_inferior_registers, sparc_xfer_wcookie): Declare.
9580 (sparc_target): Delete function declaration.
9581 (sparc_target): New template class.
9582 * sparc-nbsd-nat.c (the_sparc_nbsd_nat_target): New.
9583 (_initialize_sparcnbsd_nat): Adjust to C++ification.
9584 * sparc64-fbsd-nat.c (the_sparc64_fbsd_nat_target): New.
9585 (_initialize_sparc64fbsd_nat): Adjust to C++ification. Use
9586 add_target.
9587 * sparc64-nbsd-nat.c (the_sparc64_nbsd_nat_target): New.
9588 (_initialize_sparc64nbsd_nat): Adjust to C++ification.
9589 * sparc64-obsd-nat.c (the_sparc64_obsd_nat_target): New.
9590 (_initialize_sparc64obsd_nat): Adjust to C++ification. Use
9591 add_target.
9592 * vax-bsd-nat.c (vax_bsd_nat_target): New class.
9593 (the_vax_bsd_nat_target): New.
9594 (vaxbsd_fetch_inferior_registers)
9595 (vaxbsd_store_inferior_registers): Refactor as vax_bsd_nat_target
9596 methods.
9597 (_initialize_vaxbsd_nat): Adjust to C++ification.
9598
9599 * bsd-kvm.c (bsd_kvm_target): New class.
9600 (bsd_kvm_ops): Now a bsd_kvm_target.
9601 (bsd_kvm_open, bsd_kvm_close, bsd_kvm_xfer_partial)
9602 (bsd_kvm_files_info, bsd_kvm_fetch_registers)
9603 (bsd_kvm_thread_alive, bsd_kvm_pid_to_str): Refactor as methods of
9604 bsd_kvm_target.
9605 (bsd_kvm_return_one): Delete.
9606 (bsd_kvm_add_target): Adjust to C++ification.
9607
9608 * nto-procfs.c (nto_procfs_target, nto_procfs_target_native)
9609 (nto_procfs_target_procfs): New classes.
9610 (procfs_open_1, procfs_thread_alive, procfs_update_thread_list)
9611 (procfs_files_info, procfs_pid_to_exec_file, procfs_attach)
9612 (procfs_post_attach, procfs_wait, procfs_fetch_registers)
9613 (procfs_xfer_partial, procfs_detach, procfs_insert_breakpoint)
9614 (procfs_remove_breakpoint, procfs_insert_hw_breakpoint)
9615 (procfs_remove_hw_breakpoint, procfs_resume)
9616 (procfs_mourn_inferior, procfs_create_inferior, procfs_interrupt)
9617 (procfs_kill_inferior, procfs_store_registers)
9618 (procfs_pass_signals, procfs_pid_to_str, procfs_can_run): Refactor
9619 as methods of nto_procfs_target.
9620 (nto_procfs_ops): Now an nto_procfs_target_procfs.
9621 (nto_native_ops): Delete.
9622 (procfs_open, procfs_native_open): Delete.
9623 (nto_native_ops): Now an nto_procfs_target_native.
9624 (init_procfs_targets): Adjust to C++ification.
9625 (procfs_can_use_hw_breakpoint, procfs_remove_hw_watchpoint)
9626 (procfs_insert_hw_watchpoint, procfs_stopped_by_watchpoint):
9627 Refactor as methods of nto_procfs_target.
9628
9629 * go32-nat.c (go32_nat_target): New class.
9630 (the_go32_nat_target): New.
9631 (go32_attach, go32_resume, go32_wait, go32_fetch_registers)
9632 (go32_store_registers, go32_xfer_partial, go32_files_info)
9633 (go32_kill_inferior, go32_create_inferior, go32_mourn_inferior)
9634 (go32_terminal_init, go32_terminal_info, go32_terminal_inferior)
9635 (go32_terminal_ours, go32_pass_ctrlc, go32_thread_alive)
9636 (go32_pid_to_str): Refactor as methods of go32_nat_target.
9637 (go32_target): Delete.
9638 (_initialize_go32_nat): Adjust to C++ification.
9639
9640 * gnu-nat.c (gnu_wait, gnu_resume, gnu_kill_inferior)
9641 (gnu_mourn_inferior, gnu_create_inferior, gnu_attach, gnu_detach)
9642 (gnu_stop, gnu_thread_alive, gnu_xfer_partial)
9643 (gnu_find_memory_regions, gnu_pid_to_str): Refactor as methods of
9644 gnu_nat_target.
9645 (gnu_target): Delete.
9646 * gnu-nat.h (gnu_target): Delete.
9647 (gnu_nat_target): New class.
9648 * i386-gnu-nat.c (gnu_base_target): New.
9649 (i386_gnu_nat_target): New class.
9650 (the_i386_gnu_nat_target): New.
9651 (_initialize_i386gnu_nat): Adjust to C++ification.
9652
3fffc070
PA
96532018-05-02 Pedro Alves <palves@redhat.com>
9654
9655 * bfd-target.c (target_bfd_xclose): Rename to ...
9656 (target_bfd_close): ... this.
9657 (target_bfd_reopen): Adjust.
9658 * target.c (target_close): Remove references to to_xclose.
9659 * target.h (target_ops::to_xclose): Delete.
9660 (target_ops::to_close): Update comments.
9661
6798487f
PA
96622018-05-02 Pedro Alves <palves@redhat.com>
9663
9664 * alpha-linux-nat.c: Include "linux-nat-trad.h" instead of
9665 "linux-nat.h".
9666 * configure.nat (alpha-linux, linux-mips): Add linux-nat-trad.o.
9667 * inf-ptrace.c (inf_ptrace_register_u_offset)
9668 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
9669 (inf_ptrace_store_register, inf_ptrace_store_registers)
9670 (inf_ptrace_trad_target): Move to ...
9671 * linux-nat-trad.c: ... this new file.
9672 * linux-nat-trad.h: New file.
9673 * linux-nat.c (linux_target_install_ops): Make extern.
9674 (linux_trad_target): Delete.
9675 * linux-nat.h (linux_trad_target): Delete declaration.
9676 (linux_target_install_ops): Declare.
9677 * mips-linux-nat.c: Include "linux-nat-trad.h" instead of
9678 "linux-nat.h".
9679
c1955e17
PA
96802018-05-02 Pedro Alves <palves@redhat.com>
9681
9682 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
9683 procfs_target/add_target here.
9684 * procfs.c (procfs_target): Make static.
9685 (_initialize_procfs): Call add_target here.
9686 * procfs.h (struct target_ops): Remove forward declaration.
9687 (procfs_target): Remove declaration.
9688 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Delete.
9689
b5c8fcb1
PA
96902018-05-02 Pedro Alves <palves@redhat.com>
9691
9692 * procfs.c (procfs_stopped_by_watchpoint)
9693 (procfs_insert_watchpoint, procfs_remove_watchpoint)
9694 (procfs_region_ok_for_hw_watchpoint, procfs_stopped_data_address):
9695 Forward declare.
9696 (procfs_use_watchpoints): Delete, move contents...
9697 (procfs_target): ... here.
9698 * procfs.h (procfs_use_watchpoints): Delete declaration.
9699 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
9700 procfs_use_watchpoints.
9701 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Don't call
9702 procfs_use_watchpoints.
9703
0489430a
TT
97042018-05-02 Tom Tromey <tom@tromey.com>
9705
9706 PR python/20084:
9707 * python/python.c (gdbpy_parameter_value): Handle var_zuinteger
9708 and var_zuinteger_unlimited.
9709 * python/py-param.c (struct parm_constant): Add PARAM_ZUINTEGER
9710 and PARAM_ZUINTEGER_UNLIMITED.
9711 (set_parameter_value): Handle var_zuinteger and
9712 var_zuinteger_unlimited.
9713 (add_setshow_generic): Likewise.
9714 (parmpy_init): Likewise.
9715
1632f8ba
DR
97162018-04-28 Dan Robertson <danlrobertson89@gmail.com>
9717
9718 PR rust/23124
9719 * gdb/rust-exp.y (convert_params_to_types): Ensure that the params
9720 pointer is not null before dereferencing it.
9721
76761936
TT
97222018-04-30 Tom Tromey <tom@tromey.com>
9723
9724 * darwin-nat-info.c (darwin_debug_regions_recurse): Remove use of
9725 is_mi_like_p.
9726
2d33446d
TT
97272018-04-30 Tom Tromey <tom@tromey.com>
9728
9729 * breakpoint.c (mention): Remove use of is_mi_like_p.
9730 (print_mention_ranged_breakpoint): Likewise.
9731 * break-catch-throw.c (print_it_exception_catchpoint): Remove use
9732 of is_mi_like_p.
9733
f3c6abab
TT
97342018-04-30 Tom Tromey <tom@tromey.com>
9735
9736 * tracepoint.c (tvariables_info_1): Remove use of is_mi_like_p.
9737
40c03530
TT
97382018-04-30 Tom Tromey <tom@tromey.com>
9739
9740 * spu-tdep.c (info_spu_mailbox_list, info_spu_dma_cmdlist)
9741 (info_spu_event_command): Remove some uses of is_mi_like_p.
9742
2038b7fd
TT
97432018-04-30 Tom Tromey <tom@tromey.com>
9744
9745 * python/py-framefilter.c (py_print_single_arg)
9746 (enumerate_locals, py_print_args, py_print_frame): Remove some
9747 uses of is_mi_like_p.
9748
4904c3c6
TT
97492018-04-30 Tom Tromey <tom@tromey.com>
9750
9751 * ui-out.c: Update.
9752 * cli-out.h (cli_ui_out::do_is_mi_like_p): Update.
9753 * ui-out.h (ui_out::is_mi_like_p): Now const.
9754 (ui_out::do_is_mi_like_p): Now const.
9755 * mi/mi-out.h (mi_ui_out::do_is_mi_like_p): Update.
9756
7c66fffc
TT
97572018-04-30 Tom Tromey <tom@tromey.com>
9758
9759 * varobj.c (varobj_set_visualizer): Use new_reference.
9760 * python/python.c (gdbpy_decode_line): Use new_reference.
9761 * python/py-cmd.c (cmdpy_function, cmdpy_completer_helper): Use
9762 new_reference.
9763
bbfa6f00
TT
97642018-04-30 Tom Tromey <tom@tromey.com>
9765
9766 * varobj.c (install_new_value): Use new_reference.
9767 * value.h (value_incref): Return void. Swap intro comment with
9768 value_decref.
9769 * value.c (set_value_parent): Use new_reference.
9770 (value_incref): Return void. Update intro comment.
9771 (release_value): Use new_reference.
9772 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use new_reference.
9773
1831a9f9
TT
97742018-04-30 Tom Tromey <tom@tromey.com>
9775
9776 * symfile-mem.c (symbol_file_add_from_memory): Use new_reference.
9777 * gdb_bfd.h (new_bfd_ref): Remove.
9778 (gdb_bfd_open): Update comment.
9779 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
9780 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_record_inclusion)
9781 (gdb_bfd_fdopenr): Use new_reference.
9782 * exec.c (exec_file_attach): Use new_reference.
9783
7c1b5f3d
TT
97842018-04-30 Tom Tromey <tom@tromey.com>
9785
9786 * common/gdb_ref_ptr.h (ref_ptr::new_reference): New static
9787 method.
9788
e11fb955
TT
97892018-04-30 Tom Tromey <tom@tromey.com>
9790
9791 * jit.c (jit_read_code_entry): Use type_align.
9792 * i386-tdep.c (i386_gdbarch_init): Don't call
9793 set_gdbarch_long_long_align_bit.
9794 * gdbarch.sh: Remove long_long_align_bit.
9795 * gdbarch.c, gdbarch.h: Rebuild.
9796 * arc-tdep.c (arc_type_align): New function.
9797 (arc_gdbarch_init): Use arc_type_align. Don't call
9798 set_gdbarch_long_long_align_bit.
9799
2fff16dd
TT
98002018-04-30 Tom Tromey <tom@tromey.com>
9801
9802 * rust-lang.c (rust_type_alignment): Remove.
9803 (rust_composite_type): Use type_align.
9804
6d7bb824
TT
98052018-04-30 Tom Tromey <tom@tromey.com>
9806
9807 * NEWS: Mention Type.align.
9808 * python/py-type.c (typy_get_alignof): New function.
9809 (type_object_getset): Add "alignof".
9810
007e1530
TT
98112018-04-30 Tom Tromey <tom@tromey.com>
9812
9813 PR exp/17095:
9814 * NEWS: Update.
9815 * std-operator.def (UNOP_ALIGNOF): New operator.
9816 * expprint.c (dump_subexp_body_standard) <case UNOP_ALIGNOF>:
9817 New.
9818 * eval.c (evaluate_subexp_standard) <case UNOP_ALIGNOF>: New.
9819 * c-lang.c (c_op_print_tab): Add alignof.
9820 * c-exp.y (ALIGNOF): New token.
9821 (exp): Add "ALIGNOF" production.
9822 (ident_tokens): Add _Alignof and alignof.
9823
2b4424c3
TT
98242018-04-30 Tom Tromey <tom@tromey.com>
9825
9826 * i386-tdep.c (i386_type_align): New function.
9827 (i386_gdbarch_init): Update.
9828 * gdbarch.sh (type_align): New method.
9829 * gdbarch.c, gdbarch.h: Rebuild.
9830 * arch-utils.h (default_type_align): Declare.
9831 * arch-utils.c (default_type_align): New function.
9832 * gdbtypes.h (TYPE_ALIGN_BITS): New define.
9833 (struct type) <align_log2>: New field.
9834 <instance_flags>: Now a bitfield.
9835 (TYPE_RAW_ALIGN): New macro.
9836 (type_align, type_raw_align, set_type_align): Declare.
9837 * gdbtypes.c (type_align, type_raw_align, set_type_align): New
9838 functions.
9839 * dwarf2read.c (quirk_rust_enum): Set type alignment.
9840 (get_alignment, maybe_set_alignment): New functions.
9841 (read_structure_type, read_enumeration_type, read_array_type)
9842 (read_set_type, read_tag_pointer_type, read_tag_reference_type)
9843 (read_subrange_type, read_base_type): Set type alignment.
9844
d33bc52e
SM
98452018-04-30 Simon Marchi <simon.marchi@ericsson.com>
9846
9847 * dwarf2read.c (read_index_from_section): Use bool.
9848
e28b63a9
FG
98492018-04-29 Fabian Groffen <grobian@gentoo.org>
9850
9851 PR gdb/22950
9852 * proc-events.c (init_syscall_table): Guard usage os SYS_uuidsys
9853 with #ifdef.
9854
cd8c76e4
JR
98552018-04-29 John Reiser <jreiser@BitWagon.com>
9856
9857 PR build/22873
9858 * gdb/Makefile.in: (.c:.l, .c:.y): Write the target only in the
9859 last step, and do it atomically.
9860
476d250e
AO
98612018-04-27 Alexandre Oliva <aoliva@redhat.com>
9862
9863 * compile/compile-c-types.c (convert_int, convert_float):
9864 Update for C FE v1.
9865
6873858b
TT
98662018-04-27 Tom Tromey <tom@tromey.com>
9867
9868 PR rust/22545:
9869 * rust-lang.c (rust_inclusive_range_type_p): New function.
9870 (rust_range): Handle inclusive ranges.
9871 (rust_compute_range): Likewise.
9872 * rust-exp.y (struct rust_op) <inclusive>: New field.
9873 (DOTDOTEQ): New constant.
9874 (range_expr): Add "..=" productions.
9875 (operator_tokens): Add "..=" token.
9876 (ast_range): Add "inclusive" parameter.
9877 (convert_ast_to_expression) <case OP_RANGE>: Handle inclusive
9878 ranges.
9879 * parse.c (operator_length_standard) <case OP_RANGE>: Handle new
9880 bounds values.
9881 * expression.h (enum range_type) <NONE_BOUND_DEFAULT_EXCLUSIVE,
9882 LOW_BOUND_DEFAULT_EXCLUSIVE>: New constants.
9883 Update comments.
9884 * expprint.c (print_subexp_standard): Handle new bounds values.
9885 (dump_subexp_body_standard): Likewise.
9886
632e107b
TT
98872018-04-27 Tom Tromey <tom@tromey.com>
9888
9889 * configure: Rebuild.
9890 * warning.m4 (AM_GDB_WARNINGS): Add -Wsuggest-override.
9891 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Use "override", not
9892 "OVERRIDE".
9893 (class symbol_needs_eval_context): Likewise.
9894 * dwarf2read.c (mock_mapped_index::symbol_name_count)
9895 (mock_mapped_index::symbol_name_at): Use "override". Remove
9896 "virtual".
9897 * dwarf2-frame.c (dwarf_expr_executor::get_addr_index): Use
9898 "override".
9899 (class dwarf_expr_executor): Use "override", not "OVERRIDE".
9900 * aarch64-tdep.c (instruction_reader::read): Use "override".
9901 (instruction_reader_test::read): Likewise.
9902 * arm-tdep.c (instruction_reader::read): Use "override".
9903 (instruction_reader_thumb::read): Likewise.
9904
b75abf5b
AK
99052018-04-26 Andrzej Kaczmarek <andrzej.kaczmarek@codecoup.pl>
9906
9907 PR remote/9665
9908 * remote.c (send_g_packet): Use putpkt/getpkt/packet_check_result
9909 instead of remote_send.
9910 (remote_send): Remove.
9911
79188d8d
PA
99122018-04-26 Pedro Alves <palves@redhat.com>
9913
9914 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Use
9915 find_function_start_sal instead of find_pc_line.
9916
f50776aa
PA
99172018-04-26 Pedro Alves <palves@redhat.com>
9918
9919 * breakpoint.c (set_breakpoint_location_function): Handle
9920 mst_data_gnu_ifunc.
9921 * c-exp.y (variable production): Handle mst_data_gnu_ifunc.
9922 * elfread.c (elf_symtab_read): Give data symbols with
9923 BSF_GNU_INDIRECT_FUNCTION set mst_data_gnu_ifunc type.
9924 (elf_rel_plt_read): Update comment.
9925 * linespec.c (convert_linespec_to_sals): Handle
9926 mst_data_gnu_ifunc.
9927 (minsym_found): Handle mst_data_gnu_ifunc.
9928 * minsyms.c (msymbol_is_function, minimal_symbol_reader::record)
9929 (find_solib_trampoline_target): Handle mst_data_gnu_ifunc.
9930 * parse.c (find_minsym_type_and_address): Handle
9931 mst_data_gnu_ifunc.
9932 * symmisc.c (dump_msymbols): Handle mst_data_gnu_ifunc.
9933 * symtab.c (find_gnu_ifunc): Handle mst_data_gnu_ifunc.
9934 * symtab.h (minimal_symbol_type) <mst_text_gnu_ifunc>: Update
9935 comment.
9936 <mst_data_gnu_ifunc>: New enumerator.
9937
20944a6e
PA
99382018-04-26 Pedro Alves <palves@redhat.com>
9939
9940 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Rename to ...
9941 (lookup_minimal_symbol_by_pc_section): ... this. Replace
9942 'want_trampoline' parameter by a lookup_msym_prefer parameter.
9943 Handle it.
9944 (lookup_minimal_symbol_by_pc_section): Delete old implementation.
9945 (lookup_minimal_symbol_by_pc): Adjust.
9946 (in_gnu_ifunc_stub): Prefer GNU ifunc symbols.
9947 (lookup_solib_trampoline_symbol_by_pc): Adjust.
9948 * minsyms.h (lookup_msym_prefer): New enum.
9949 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
9950 parameter by a lookup_msym_prefer parameter.
9951
1adeb822
PA
99522018-04-26 Pedro Alves <palves@redhat.com>
9953
9954 * elfread.c (elf_gnu_ifunc_record_cache): Check if the symbol name
9955 ends in "@plt" instead of looking at the symbol's section.
9956
a0aca7b0
PA
99572018-04-26 Pedro Alves <palves@redhat.com>
9958
9959 * blockframe.c (cache_pc_function_is_gnu_ifunc): Delete. Remove
9960 all references.
9961 (find_pc_partial_function_gnu_ifunc): Rename to ...
9962 (find_pc_partial_function): ... this, and remove references to
9963 'is_gnu_ifunc_p'.
9964 (find_pc_partial_function): Delete old implementation.
9965 * symtab.h (find_pc_partial_function_gnu_ifunc): Delete.
9966
76af0f26
PA
99672018-04-26 Pedro Alves <palves@redhat.com>
9968
9969 * linespec.c (struct bound_minimal_symbol_search_key): New.
9970 (convert_linespec_to_sals): Sort minimal symbols earlier. Don't
9971 skip first line if we found a GNU ifunc minimal symbol by name.
9972 (compare_msymbols): Change parameters to work with a destructured
9973 lhs minsym.
9974 (compare_msymbols_for_qsort, compare_msymbols_for_bsearch): New
9975 functions.
9976
3467ec66
PA
99772018-04-26 Pedro Alves <palves@redhat.com>
9978
9979 * breakpoint.c (set_breakpoint_location_function): Don't resolve
9980 ifunc targets here. Instead, if we have an ifunc minsym, use its
9981 address/name.
9982 (add_location_to_breakpoint): Store the minsym and the objfile in
9983 the breakpoint location.
9984 * breakpoint.h (bp_location) <msymbol, objfile>: New fields.
9985 * linespec.c (minsym_found): Resolve GNU ifunc targets here.
9986 Record the minsym in the sal.
9987 * symtab.h (symtab_and_line) <msymbol>: New field.
9988
28f4fa4d
PA
99892018-04-26 Pedro Alves <palves@redhat.com>
9990
9991 * elfread.c (elf_gnu_ifunc_resolve_by_got): Don't write to *ADDR_P
9992 unless we actually resolved the ifunc.
9993
ca31ab1d
PA
99942018-04-26 Pedro Alves <palves@redhat.com>
9995
9996 * c-exp.y (variable production): Prefer ifunc minsyms over
9997 regular function symbols.
9998 * symtab.c (find_gnu_ifunc): New function.
9999 * minsyms.h (lookup_msym_prefer): New enum.
10000 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
10001 parameter by a lookup_msym_prefer parameter.
10002 * symtab.h (find_gnu_ifunc): New declaration.
10003
8388016d
PA
100042018-04-26 Pedro Alves <palves@redhat.com>
10005
10006 * blockframe.c (find_gnu_ifunc_target_type): New function.
10007 (find_function_type): New.
10008 * eval.c (evaluate_var_msym_value): For GNU ifunc types, always
10009 return a value with a memory address.
10010 (eval_call): For calls to GNU ifunc functions, try to find the
10011 type of the target function from the type that the resolver
10012 returns.
10013 * gdbtypes.c (objfile_type): Don't install a return type for ifunc
10014 symbols.
10015 * infcall.c (find_function_return_type): Delete.
10016 (find_function_addr): Add 'function_type' parameter. For calls to
10017 GNU ifunc functions, try to find the type of the target function
10018 from the type that the resolver returns, and return it via
10019 FUNCTION_TYPE.
10020 (call_function_by_hand_dummy): Adjust to use the function type
10021 returned by find_function_addr.
10022 (find_function_addr): Add 'function_type' parameter and move
10023 description here.
10024 * symtab.h (find_function_type, find_gnu_ifunc_target_type): New
10025 declarations.
10026
a376e11d
PA
100272018-04-26 Pedro Alves <palves@redhat.com>
10028
10029 * c-exp.y (variable production): Skip finding an alias for ifunc
10030 symbols.
10031
02e169e2
PA
100322018-04-26 Pedro Alves <palves@redhat.com>
10033
10034 * elfread.c (elf_rel_plt_read): Look for relocations for .got.plt too.
10035
249b5733
PA
100362018-04-25 Pedro Alves <palves@redhat.com>
10037
10038 * infcmd.c (kill_command): Print the pid as string, not the whole
10039 thread's ptid. Add comment. s/has been killed/killed/ in output
10040 message.
10041 * remote.c (remote_detach_1): Print the pid as string, not the
10042 whole thread's ptid.
10043
f67c0c91
SDJ
100442018-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10045 Sergio Durigan Junior <sergiodj@redhat.com>
10046 Pedro Alves <palves@redhat.com>
10047
10048 * infcmd.c (kill_command): Print message when inferior has
10049 been killed.
10050 * inferior.c (print_inferior_events): Remove 'static'. Set as
10051 '1'.
10052 (add_inferior): Improve message printed when
10053 'print_inferior_events' is on.
10054 (exit_inferior): Remove message printed when
10055 'print_inferior_events' is on.
10056 (detach_inferior): Improve message printed when
10057 'print_inferior_events' is on.
10058 (initialize_inferiors): Use 'add_inferior_silent' to set
10059 'current_inferior_'.
10060 * inferior.h (print_inferior_events): Declare here as
10061 'extern'.
10062 * infrun.c (follow_fork_inferior): Print '[Attaching...]' or
10063 '[Detaching...]' messages when 'print_inferior_events' is on.
10064 Use 'add_thread_silent' instead of 'add_thread'. Add '[' and ']'
10065 as prefix/suffix for messages. Remove periods. Fix erroneous
10066 'Detaching after fork from child...', replace it by '... from
10067 parent...'.
10068 (handle_vfork_child_exec_or_exit): Add '[' and ']' as
10069 prefix/suffix when printing 'Detaching...' messages. Print
10070 them when 'print_inferior_events' is on.
10071 * remote.c (remote_detach_1): Print message when detaching
10072 from inferior and '!is_fork_parent'.
10073
e427af18
TT
100742018-04-24 Tom Tromey <tom@tromey.com>
10075
10076 * cli-out.h: Reindent.
10077
05b1d8d6
TT
100782018-04-24 Tom Tromey <tom@tromey.com>
10079
10080 * cli-out.c (cli_ui_out::out_field_fmt): Remove.
10081 (cli_ui_out::do_field_string): Use fputs_filtered.
10082 * cli-out.h (class cli_ui_out) <out_field_fmt>: Remove.
10083
a95c7dab
TT
100842018-04-23 Tom Tromey <tom@tromey.com>
10085
10086 * guile/scm-frame.c (gdbscm_frame_read_var): Use
10087 gdb::unique_xmalloc_ptr.
10088
458412c3
TT
100892018-04-23 Tom Tromey <tom@tromey.com>
10090
10091 * configure: Rebuild.
10092
db86b02b
RS
100932018-04-22 Rajendra SY <rajendra.sy@gmail.com>
10094
10095 PR gdb/23095
10096 * gdb/testsuite/gdb.base/break-probes.exp: Pass shlib_load to
10097 prepare_for_testing. Set normal_bp to r_debug_state if target
10098 is bsd.
10099
00aecdcf
PA
101002018-04-21 Pedro Alves <palves@redhat.com>
10101 Rajendra SY <rajendra.sy@gmail.com>
10102
10103 * inf-ptrace.c (inf_ptrace_attach): Mark the thread as executing.
10104 * remote.c (extended_remote_attach): In all-stop mode, mark the
10105 thread as executing.
10106
224608c3
PW
101072018-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10108
10109 * thread.c (thread_apply_all_command): Fix comment.
10110 (thread_command): Fix comment.
10111
3b74854b
AH
101122018-04-10 Alan Hayward <alan.hayward@arm.com>
10113
10114 * common/tdesc.h (tdesc_create_feature): Remove xml filename
10115 parameter.
10116 * features/aarch64-core.c (create_feature_aarch64_core):
10117 Regenerate.
10118 * features/aarch64-fpu.c (create_feature_aarch64_fpu):
10119 Likewise.
10120 * features/i386/32bit-avx.c (create_feature_i386_32bit_avx):
10121 Likewise.
10122 * features/i386/32bit-avx512.c
10123 (create_feature_i386_32bit_avx512): Likewise.
10124 * features/i386/32bit-core.c (create_feature_i386_32bit_core):
10125 Likewise.
10126 * features/i386/32bit-linux.c (create_feature_i386_32bit_linux):
10127 Likewise.
10128 * features/i386/32bit-mpx.c (create_feature_i386_32bit_mpx):
10129 Likewise.
10130 * features/i386/32bit-pkeys.c (create_feature_i386_32bit_pkeys):
10131 Likewise.
10132 * features/i386/32bit-sse.c (create_feature_i386_32bit_sse):
10133 Likewise.
10134 * features/i386/64bit-avx.c (create_feature_i386_64bit_avx):
10135 Likewise.
10136 * features/i386/64bit-avx512.c
10137 (create_feature_i386_64bit_avx512): Likewise.
10138 * features/i386/64bit-core.c (create_feature_i386_64bit_core):
10139 Likewise.
10140 * features/i386/64bit-linux.c (create_feature_i386_64bit_linux):
10141 Likewise.
10142 * features/i386/64bit-mpx.c (create_feature_i386_64bit_mpx):
10143 Likewise.
10144 * features/i386/64bit-pkeys.c (create_feature_i386_64bit_pkeys):
10145 Likewise.
10146 * features/i386/64bit-segments.c
10147 (create_feature_i386_64bit_segments): Likewise.
10148 * features/i386/64bit-sse.c (create_feature_i386_64bit_sse):
10149 Likewise.
10150 * features/i386/x32-core.c
10151 (create_feature_i386_x32_core): Likewise.
10152 * features/tic6x-c6xp.c (create_feature_tic6x_c6xp): Likewise.
10153 * features/tic6x-core.c (create_feature_tic6x_core): Likewise.
10154 * features/tic6x-gp.c (create_feature_tic6x_gp): Likewise.
10155 * target-descriptions.c: In generated code, don't pass xml
10156 filename.
10157
e98577a9
AH
101582018-04-18 Alan Hayward <alan.hayward@arm.com>
10159
10160 * common/tdesc.c (print_xml_feature::visit_pre): Add xml parsing.
10161 (print_xml_feature::visit_post): Likewise.
10162 (print_xml_feature::visit): Likewise.
10163 * common/tdesc.h (tdesc_get_features_xml): Use const tdesc.
10164 (print_xml_feature): Add new class.
10165 * regformats/regdat.sh: Null xmltarget on feature targets.
10166 * target-descriptions.c (struct target_desc): Add xmltarget.
10167 (maintenance_check_tdesc_xml_convert): Add unittest function.
10168 (tdesc_get_features_xml): Add function to get xml.
10169 (maintenance_check_xml_descriptions): Test xml generation.
10170 * xml-tdesc.c (string_read_description_xml): Add function.
10171 * xml-tdesc.h (string_read_description_xml): Add declaration.
10172
ad7fc756
AH
101732018-04-18 Alan Hayward <alan.hayward@arm.com>
10174
10175 * features/Makefile: Add feature marker to targets with new style
10176 target descriptions.
10177 * regformats/aarch64.dat: Regenerate.
10178 * regformats/i386/amd64-avx-avx512-linux.dat: Likewise.
10179 * regformats/i386/amd64-avx-linux.dat: Likewise.
10180 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Likewise.
10181 * regformats/i386/amd64-avx-mpx-linux.dat: Likewise.
10182 * regformats/i386/amd64-linux.dat: Likewise.
10183 * regformats/i386/amd64-mpx-linux.dat: Likewise.
10184 * regformats/i386/amd64.dat: Likewise.
10185 * regformats/i386/i386-avx-avx512-linux.dat: Likewise.
10186 * regformats/i386/i386-avx-linux.dat: Likewise.
10187 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Likewise.
10188 * regformats/i386/i386-avx-mpx-linux.dat: Likewise.
10189 * regformats/i386/i386-linux.dat: Likewise.
10190 * regformats/i386/i386-mmx-linux.dat: Likewise.
10191 * regformats/i386/i386-mpx-linux.dat: Likewise.
10192 * regformats/i386/i386.dat: Likewise.
10193 * regformats/i386/x32-avx-avx512-linux.dat: Likewise.
10194 * regformats/i386/x32-avx-linux.dat: Likewise.
10195 * regformats/i386/x32-linux.dat: Likewise.
10196 * regformats/tic6x-c62x-linux.dat: Likewise.
10197 * regformats/tic6x-c64x-linux.dat: Likewise.
10198 * regformats/tic6x-c64xp-linux.dat: Likewise.
10199 * regformats/regdat.sh: Parse feature marker.
10200
d278f585
AH
102012018-04-18 Alan Hayward <alan.hayward@arm.com>
10202
10203 * common/tdesc.h (tdesc_architecture_name): Add new declaration.
10204 (tdesc_osabi_name): Likewise.
10205 * target-descriptions.c (tdesc_architecture_name): Add new
10206 function.
10207 (tdesc_osabi_name): Likewise.
10208
eee8a18d
AH
102092018-04-18 Alan Hayward <alan.hayward@arm.com>
10210
10211 * common/tdesc.c (tdesc_predefined_type): Move to here.
10212 (tdesc_named_type): Likewise.
10213 (tdesc_create_vector): Likewise.
10214 (tdesc_create_struct): Likewise.
10215 (tdesc_set_struct_size): Likewise.
10216 (tdesc_create_union): Likewise.
10217 (tdesc_create_flags): Likewise.
10218 (tdesc_create_enum): Likewise.
10219 (tdesc_add_field): Likewise.
10220 (tdesc_add_typed_bitfield): Likewise.
10221 (tdesc_add_bitfield): Likewise.
10222 (tdesc_add_flag): Likewise.
10223 (tdesc_add_enum_value): Likewise.
10224 * common/tdesc.h (struct tdesc_type_builtin): Likewise.
10225 (struct tdesc_type_vector): Likewise.
10226 (struct tdesc_type_field): Likewise.
10227 (struct tdesc_type_with_fields): Likewise.
10228 (tdesc_create_enum): Add declaration.
10229 (tdesc_add_typed_bitfield): Likewise.
10230 (tdesc_add_enum_value): Likewise.
10231 * target-descriptions.c (tdesc_type_field): Move from here.
10232 (tdesc_type_builtin): Likewise.
10233 (tdesc_type_vector): Likewise.
10234 (tdesc_type_with_fields): Likewise.
10235 (tdesc_predefined_types): Likewise.
10236 (tdesc_named_type): Likewise.
10237 (tdesc_create_vector): Likewise.
10238 (tdesc_create_struct): Likewise.
10239 (tdesc_set_struct_size): Likewise.
10240 (tdesc_create_union): Likewise.
10241 (tdesc_create_flags): Likewise.
10242 (tdesc_create_enum): Likewise.
10243 (tdesc_add_field): Likewise.
10244 (tdesc_add_typed_bitfield): Likewise.
10245 (tdesc_add_bitfield): Likewise.
10246 (tdesc_add_flag): Likewise.
10247 (tdesc_add_enum_value): Likewise.
10248 * gdb/target-descriptions.h (tdesc_create_enum): Likewise.
10249 (tdesc_add_typed_bitfield): Likewise.
10250 (tdesc_add_enum_value): Likewise.
10251
82ec9bc7
AH
102522018-04-18 Alan Hayward <alan.hayward@arm.com>
10253
10254 * common/tdesc.c (tdesc_feature::accept): Move to here.
10255 (tdesc_feature::operator==): Likewise.
10256 (tdesc_create_reg): Likewise.
10257 * common/tdesc.h (tdesc_type_kind): Likewise.
10258 (struct tdesc_type): Likewise.
10259 (struct tdesc_feature): Likewise.
10260 * regformats/regdat.sh: Create a feature.
10261 * target-descriptions.c (tdesc_type_kind): Move from here.
10262 (tdesc_type): Likewise.
10263 (tdesc_type_up): Likewise.
10264 (tdesc_feature): Likewise.
10265 (tdesc_create_reg): Likewise.
10266
ea3e7d71
AH
102672018-04-18 Alan Hayward <alan.hayward@arm.com>
10268
10269 * Makefile.in: Add arch/tdesc.c
10270 * common/tdesc.c: New file.
10271 * common/tdesc.h (tdesc_element_visitor): Move to here.
10272 (tdesc_element): Likewise.
10273 (tdesc_reg): Likewise.
10274 (tdesc_reg_up): Likewise.
10275 * regformats/regdef.h (reg): Add offset to constructors.
10276 * target-descriptions.c (tdesc_element_visitor): Move from here.
10277 (tdesc_element): Likewise.
10278 (tdesc_reg): Likewise.
10279 (tdesc_reg_up): Likewise.
10280
bedda9ac
TT
102812018-04-17 Tom Tromey <tom@tromey.com>
10282
10283 * dwarf2read.c (quirk_rust_enum): Conditionally drop the
10284 discriminant field.
10285
a037790e
TT
102862018-04-17 Tom Tromey <tom@tromey.com>
10287
10288 * dwarf2read.c (quirk_rust_enum): Handle unions correctly.
10289
c7dcbf88
AA
102902018-04-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
10291
10292 * symtab.c (print_symbol_info): Skip printing filename and line
10293 number when `last' is NULL.
10294 (symtab_symbol_info): Use empty string instead of NULL for first
10295 invocation of print_symbol_info.
10296 (rbreak_command): Pass NULL to `last' parameter of
10297 print_symbol_info.
10298
07d28c77
SM
102992018-04-16 Simon Marchi <simon.marchi@ericsson.com>
10300
10301 * linux-tdep.c (linux_spu_make_corefile_notes): Return note_data
10302 instead of nullptr.
10303
8a3de5e1
PA
103042018-04-16 Pedro Alves <palves@redhat.com>
10305
10306 * MAINTAINERS (sh): Remove.
10307 * Makefile.in (ALL_TARGET_OBS): Remove sh64-tdep.o.
10308 (HFILES_NO_SRCDIR): Remove sh64-tdep.h.
10309 (ALLDEPFILES): Remove sh64-tdep.c.
10310 * NEWS: Mentions that support for SH-5/SH64 is removed.
10311 * configure.tgt (sh*-*-linux*): Remove reference to sh64-tdep.o.
10312 (sh*-*-openbsd*): Ditto.
10313 (sh64-*-elf*): Remove.
10314 (sh*): Remove.
10315 * regcache.c (cooked_write_test): Remove bfd_mach_sh5 case.
10316 * sh-linux-tdep.c: Remove reference to bfd_mach_sh5.
10317 * sh-tdep.c: No longer include "sh64-tdep.h".
10318 (sh_gdbarch_init): Remove reference to bfd_mach_sh5.
10319 * sh64-tdep.c, sh64-tdep.h: Remove files.
10320
a2a79012
PA
103212018-04-16 Pedro Alves <palves@redhat.com>
10322
10323 * MAINTAINERS: Remove m88k.
10324 * Makefile.in (ALL_TARGET_OBS): Remove m88k-tdep.o.
10325 (HFILES_NO_SRCDIR): Remove m88k-tdep.h.
10326 (ALLDEPFILES): Remove m88k-bsd-nat.c and m88k-tdep.c.
10327 * NEWS: Mention that support for m88k was removed.
10328 * configure.host (m88*-*-*): Remove support.
10329 * configure.nat (m88k-*-*): Remove support.
10330 * configure.tgt (m88*-*-openbsd*): Remove.
10331 * m88k-bsd-nat.c, m88k-tdep.c, m88k-tdep.h: Delete.
10332
eda4efb1
SM
103332018-04-15 Simon Marchi <simon.marchi@polymtl.ca>
10334
10335 * configure.tgt (x86_tobjs): New variable.
10336 (amd64_tobjs, i386_tobjs): Use it.
10337
b744723f
AA
103382018-04-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10339
10340 * symtab.c (print_symbol_info): Precede the symbol definition by
10341 the line number when available.
10342 * NEWS: Advertise this enhancement.
10343
4a4495d6
MM
103442018-04-13 Markus Metzger <markus.t.metzger@intel.com>
10345
10346 * NEWS (New options): announce set/show record btrace cpu.
10347 * btrace.c: Include record-btrace.h.
10348 (btrace_compute_ftrace_pt): Skip enabling errata workarounds if
10349 the vendor is unknown.
10350 (btrace_compute_ftrace_1): Add cpu parameter. Update callers.
10351 Maybe overwrite the btrace configuration's cpu.
10352 (btrace_compute_ftrace): Add cpu parameter. Update callers.
10353 (btrace_fetch): Add cpu parameter. Update callers.
10354 (btrace_maint_update_pt_packets): Call record_btrace_get_cpu.
10355 Maybe overwrite the btrace configuration's cpu. Skip enabling
10356 errata workarounds if the vendor is unknown.
10357 * python/py-record-btrace.c: Include record-btrace.h.
10358 (recpy_bt_begin, recpy_bt_end, recpy_bt_instruction_history)
10359 (recpy_bt_function_call_history): Call record_btrace_get_cpu.
10360 * record-btrace.c (record_btrace_cpu_state_kind): New.
10361 (record_btrace_cpu): New.
10362 (set_record_btrace_cpu_cmdlist): New.
10363 (record_btrace_get_cpu): New.
10364 (require_btrace_thread, record_btrace_info)
10365 (record_btrace_resume_thread): Call record_btrace_get_cpu.
10366 (cmd_set_record_btrace_cpu_none): New.
10367 (cmd_set_record_btrace_cpu_auto): New.
10368 (cmd_set_record_btrace_cpu): New.
10369 (cmd_show_record_btrace_cpu): New.
10370 (_initialize_record_btrace): Initialize set/show record btrace cpu
10371 commands.
10372 * record-btrace.h (record_btrace_get_cpu): New.
10373
69f90c75
MM
103742018-04-13 Markus Metzger <markus.t.metzger@intel.com>
10375
10376 * record.c (set_record_command): Fix typo in message.
10377
b85310e1
MM
103782018-04-13 Markus Metzger <markus.t.metzger@intel.com>
10379
10380 * record-btrace.c (cmd_set_record_btrace): Print sub-commands.
10381
1d509aa6
MM
103822018-04-13 Markus Metzger <markus.t.metzger@intel.com>
10383
10384 * infrun.c (process_event_stop_test): Call
10385 gdbarch_in_indirect_branch_thunk.
10386 * gdbarch.sh (in_indirect_branch_thunk): New.
10387 * gdbarch.c: Regenerated.
10388 * gdbarch.h: Regenerated.
10389 * x86-tdep.h: New.
10390 * x86-tdep.c: New.
10391 * Makefile.in (ALL_TARGET_OBS): Add x86-tdep.o.
10392 (HFILES_NO_SRCDIR): Add x86-tdep.h.
10393 (ALLDEPFILES): Add x86-tdep.c.
10394 * arch-utils.h (default_in_indirect_branch_thunk): New.
10395 * arch-utils.c (default_in_indirect_branch_thunk): New.
10396 * i386-tdep: Include x86-tdep.h.
10397 (i386_in_indirect_branch_thunk): New.
10398 (i386_elf_init_abi): Set in_indirect_branch_thunk gdbarch
10399 function.
10400 * amd64-tdep: Include x86-tdep.h.
10401 (amd64_in_indirect_branch_thunk): New.
10402 (amd64_init_abi): Set in_indirect_branch_thunk gdbarch function.
10403
b4be9bfd
JK
104042018-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10405
10406 PR gdb/23053
10407 * dwarf-index-write.c (data_buf::grow) (write_one_signatured_type)
10408 (recursively_write_psymbols) (debug_names::recursively_write_psymbols)
10409 (debug_names::write_one_signatured_type): Fix -D_GLIBCXX_DEBUG
10410 regression.
10411
53d7df28
TT
104122018-04-12 Tom Tromey <tom@tromey.com>
10413
10414 * rust-lang.c (rust_print_struct_def): Remove univariant code.
10415 (rust_evaluate_subexp): Likewise.
10416
70b33f19
PA
104172018-04-12 Pedro Alves <palves@redhat.com>
10418
10419 * procfs.c (procfs_detach): Make forward declaration's prototype
10420 match definition's protototype.
10421 (proc_get_LDT_entry): Remove stale do_cleanups call.
10422
436411b1
PA
104232018-04-12 Pedro Alves <palves@redhat.com>
10424
10425 * target.h (target_ops::to_has_exited): Delete.
10426 (target_has_exited): Delete.
10427 * target-delegates.c: Regenerate.
10428
20db9c52
PA
104292018-04-11 Pedro Alves <palves@redhat.com>
10430
10431 * target.c (fileio_fh_t::t): Add comment.
10432 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
10433 (target_fileio_close): Handle a NULL target.
10434 (invalidate_fileio_fh): New.
10435 (target_close): Call it.
10436 * remote.c (remote_hostio_send_command): No longer check whether
10437 remote_desc is open.
10438
5ff79300
PA
104392018-04-11 Pedro Alves <palves@redhat.com>
10440
10441 * target.c (fileio_fh_t): Make it a named struct instead of a
10442 typedef.
10443 (fileio_fh_t::is_closed): New method.
10444 (DEF_VEC_O (fileio_fh_t)): Remove.
10445 (fileio_fhandles): Now a std::vector.
10446 (is_closed_fileio_fh): Delete.
10447 (acquire_fileio_fd): Adjust. Rename parameters.
10448 (release_fileio_fd): Adjust.
10449 (fileio_fd_to_fh): Reimplement as a function instead of a macro.
10450 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
10451 (target_fileio_close): Adjust.
10452
6e22e10d
SM
104532018-04-10 Simon Marchi <simon.marchi@ericsson.com>
10454
10455 * auto-load.c (auto_load_safe_path_vec_update): Iterate by
10456 index.
10457
731f534f
PA
104582018-04-10 Pedro Alves <palves@redhat.com>
10459
10460 * gdbthread.h (finish_thread_state_cleanup): Delete declaration.
10461 (scoped_finish_thread_state): New class.
10462 * infcmd.c (run_command_1): Use it instead of finish_thread_state
10463 cleanup.
10464 * infrun.c (proceed, prepare_for_detach, wait_for_inferior)
10465 (fetch_inferior_event, normal_stop): Likewise.
10466 * thread.c (finish_thread_state_cleanup): Delete.
10467
d5f4488f
SM
104682018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10469 Pedro Alves <palves@redhat.com>
10470
10471 * value.c: Include "selftest.h" and "common/array-view.h".
10472 (struct range) <operator ==>: New.
10473 (test_ranges_contain): New.
10474 (check_ranges_vector): New.
10475 (test_insert_into_bit_range_vector): New.
10476 (_initialize_values): Register selftests.
10477 * common/array-view.h (operator==, operator!=): New.
10478
b24531ed
SM
104792018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10480
10481 * common/gdb_vecs.h (unordered_remove): Add overload that takes
10482 an iterator.
10483 * inline-frame.c: Include <algorithm>.
10484 (struct inline_state): Add constructor.
10485 (inline_state_s): Remove.
10486 (DEF_VEC_O(inline_state_s)): Remove.
10487 (inline_states): Change type to std::vector.
10488 (find_inline_frame_state): Adjust to std::vector.
10489 (allocate_inline_frame_state): Remove.
10490 (clear_inline_frame_state): Adjust to std::vector.
10491 (skip_inline_frames): Adjust to std::vector.
10492
c252925c
SM
104932018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10494
10495 * tracepoint.h (struct trace_state_variable): Add constructor.
10496 <name>: Change type to std::string.
10497 * tracepoint.c (tsv_s): Remove.
10498 (DEF_VEC_O(tsv_s)): Remove.
10499 (tvariables): Change to std::vector.
10500 (create_trace_state_variable): Adjust to std::vector.
10501 (find_trace_state_variable): Likewise.
10502 (find_trace_state_variable_by_number): Likewise.
10503 (delete_trace_state_variable): Likewise.
10504 (trace_variable_command): Adjust to std::string.
10505 (delete_trace_variable_command): Likewise.
10506 (tvariables_info_1): Adjust to std::vector.
10507 (save_trace_state_variables): Likewise.
10508 (start_tracing): Likewise.
10509 (merge_uploaded_trace_state_variables): Adjust to std::vector
10510 and std::string.
10511 * target.h (struct target_ops)
10512 <to_download_trace_state_variable>: Pass reference to
10513 trace_state_variable.
10514 * target-debug.h (target_debug_print_const_trace_state_variable_r): New.
10515 * target-delegates.c: Re-generate.
10516 * mi/mi-interp.c (mi_tsv_created): Adjust to std::string.
10517 (mi_tsv_deleted): Likewise.
10518 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
10519 * remote.c (remote_download_trace_state_variable): Change
10520 pointer to reference and adjust.
10521 * make-target-delegates (parse_argtypes): Handle references.
10522 (write_function_header): Likewise.
10523 (munge_type): Likewise.
10524
c9638d26
SM
105252018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10526
10527 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10528 string_view-selftests.c.
10529 * unittests/basic_string_view/capacity/1.cc: Adapt to GDB
10530 testsuite.
10531 * unittests/basic_string_view/cons/char/1.cc: Likewise.
10532 * unittests/basic_string_view/cons/char/2.cc: Likewise.
10533 * unittests/basic_string_view/cons/char/3.cc: Likewise.
10534 * unittests/basic_string_view/element_access/char/1.cc:
10535 Likewise.
10536 * unittests/basic_string_view/element_access/char/empty.cc:
10537 Likewise.
10538 * unittests/basic_string_view/element_access/char/front_back.cc:
10539 Likewise.
10540 * unittests/basic_string_view/inserters/char/2.cc: Likewise.
10541 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc:
10542 Likewise.
10543 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc:
10544 Likewise.
10545 * unittests/basic_string_view/modifiers/swap/char/1.cc:
10546 Likewise.
10547 * unittests/basic_string_view/operations/compare/char/1.cc:
10548 Likewise.
10549 * unittests/basic_string_view/operations/compare/char/13650.cc:
10550 Likewise.
10551 * unittests/basic_string_view/operations/copy/char/1.cc:
10552 Likewise.
10553 * unittests/basic_string_view/operations/data/char/1.cc:
10554 Likewise.
10555 * unittests/basic_string_view/operations/find/char/1.cc:
10556 Likewise.
10557 * unittests/basic_string_view/operations/find/char/2.cc:
10558 Likewise.
10559 * unittests/basic_string_view/operations/find/char/3.cc:
10560 Likewise.
10561 * unittests/basic_string_view/operations/find/char/4.cc:
10562 Likewise.
10563 * unittests/basic_string_view/operations/rfind/char/1.cc:
10564 Likewise.
10565 * unittests/basic_string_view/operations/rfind/char/2.cc:
10566 Likewise.
10567 * unittests/basic_string_view/operations/rfind/char/3.cc:
10568 Likewise.
10569 * unittests/basic_string_view/operations/substr/char/1.cc:
10570 Likewise.
10571 * unittests/basic_string_view/operators/char/2.cc: Likewise.
10572 * unittests/string_view-selftests.c: New file.
10573
fdc11678
SM
105742018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10575
10576 * unittests/basic_string_view/capacity/1.cc: New file.
10577 * unittests/basic_string_view/capacity/empty_neg.cc: New file.
10578 * unittests/basic_string_view/cons/char/1.cc: New file.
10579 * unittests/basic_string_view/cons/char/2.cc: New file.
10580 * unittests/basic_string_view/cons/char/3.cc: New file.
10581 * unittests/basic_string_view/cons/wchar_t/1.cc: New file.
10582 * unittests/basic_string_view/cons/wchar_t/2.cc: New file.
10583 * unittests/basic_string_view/cons/wchar_t/3.cc: New file.
10584 * unittests/basic_string_view/element_access/char/1.cc: New file.
10585 * unittests/basic_string_view/element_access/char/2.cc: New file.
10586 * unittests/basic_string_view/element_access/char/empty.cc: New file.
10587 * unittests/basic_string_view/element_access/char/front_back.cc: New file.
10588 * unittests/basic_string_view/element_access/wchar_t/1.cc: New file.
10589 * unittests/basic_string_view/element_access/wchar_t/2.cc: New file.
10590 * unittests/basic_string_view/element_access/wchar_t/empty.cc: New file.
10591 * unittests/basic_string_view/element_access/wchar_t/front_back.cc: New file.
10592 * unittests/basic_string_view/include.cc: New file.
10593 * unittests/basic_string_view/inserters/char/1.cc: New file.
10594 * unittests/basic_string_view/inserters/char/2.cc: New file.
10595 * unittests/basic_string_view/inserters/char/3.cc: New file.
10596 * unittests/basic_string_view/inserters/pod/10081-out.cc: New file.
10597 * unittests/basic_string_view/inserters/wchar_t/1.cc: New file.
10598 * unittests/basic_string_view/inserters/wchar_t/2.cc: New file.
10599 * unittests/basic_string_view/inserters/wchar_t/3.cc: New file.
10600 * unittests/basic_string_view/literals/types.cc: New file.
10601 * unittests/basic_string_view/literals/values.cc: New file.
10602 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc: New file.
10603 * unittests/basic_string_view/modifiers/remove_prefix/wchar_t/1.cc: New file.
10604 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc: New file.
10605 * unittests/basic_string_view/modifiers/remove_suffix/wchar_t/1.cc: New file.
10606 * unittests/basic_string_view/modifiers/swap/char/1.cc: New file.
10607 * unittests/basic_string_view/modifiers/swap/wchar_t/1.cc: New file.
10608 * unittests/basic_string_view/operations/compare/char/1.cc: New file.
10609 * unittests/basic_string_view/operations/compare/char/13650.cc: New file.
10610 * unittests/basic_string_view/operations/compare/char/2.cc: New file.
10611 * unittests/basic_string_view/operations/compare/char/70483.cc: New file.
10612 * unittests/basic_string_view/operations/compare/wchar_t/1.cc: New file.
10613 * unittests/basic_string_view/operations/compare/wchar_t/13650.cc: New file.
10614 * unittests/basic_string_view/operations/compare/wchar_t/2.cc: New file.
10615 * unittests/basic_string_view/operations/copy/char/1.cc: New file.
10616 * unittests/basic_string_view/operations/copy/wchar_t/1.cc: New file.
10617 * unittests/basic_string_view/operations/data/char/1.cc: New file.
10618 * unittests/basic_string_view/operations/data/wchar_t/1.cc: New file.
10619 * unittests/basic_string_view/operations/find/char/1.cc: New file.
10620 * unittests/basic_string_view/operations/find/char/2.cc: New file.
10621 * unittests/basic_string_view/operations/find/char/3.cc: New file.
10622 * unittests/basic_string_view/operations/find/char/4.cc: New file.
10623 * unittests/basic_string_view/operations/find/wchar_t/1.cc: New file.
10624 * unittests/basic_string_view/operations/find/wchar_t/2.cc: New file.
10625 * unittests/basic_string_view/operations/find/wchar_t/3.cc: New file.
10626 * unittests/basic_string_view/operations/find/wchar_t/4.cc: New file.
10627 * unittests/basic_string_view/operations/rfind/char/1.cc: New file.
10628 * unittests/basic_string_view/operations/rfind/char/2.cc: New file.
10629 * unittests/basic_string_view/operations/rfind/char/3.cc: New file.
10630 * unittests/basic_string_view/operations/rfind/wchar_t/1.cc: New file.
10631 * unittests/basic_string_view/operations/rfind/wchar_t/2.cc: New file.
10632 * unittests/basic_string_view/operations/rfind/wchar_t/3.cc: New file.
10633 * unittests/basic_string_view/operations/string_conversion/1.cc: New file.
10634 * unittests/basic_string_view/operations/substr/char/1.cc: New file.
10635 * unittests/basic_string_view/operations/substr/wchar_t/1.cc: New file.
10636 * unittests/basic_string_view/operators/char/2.cc: New file.
10637 * unittests/basic_string_view/operators/wchar_t/2.cc: New file.
10638 * unittests/basic_string_view/range_access/char/1.cc: New file.
10639 * unittests/basic_string_view/range_access/wchar_t/1.cc: New file.
10640 * unittests/basic_string_view/requirements/explicit_instantiation/1.cc: New file.
10641 * unittests/basic_string_view/requirements/explicit_instantiation/char/1.cc: New file.
10642 * unittests/basic_string_view/requirements/explicit_instantiation/char16_t/1.cc: New file.
10643 * unittests/basic_string_view/requirements/explicit_instantiation/char32_t/1.cc: New file.
10644 * unittests/basic_string_view/requirements/explicit_instantiation/wchar_t/1.cc: New file.
10645 * unittests/basic_string_view/requirements/typedefs.cc: New file.
10646 * unittests/basic_string_view/typedefs.cc: New file.
10647 * unittests/basic_string_view/types/1.cc: New file.
10648
8345c4a2
SM
106492018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10650
10651 * common/gdb_string_view.h: Remove libstdc++ implementation
10652 details, adjust to gdb reality.
10653 * common/gdb_string_view.tcc: Likewise.
10654 * cli/cli-script.c (struct string_view): Remove.
10655 (user_args) <m_args>: Change element type to gdb::string_view.
10656 (user_args::insert_args): Adjust.
10657
7adcdf08
SM
106582018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10659
10660 * common/gdb_string_view.h: New file.
10661 * common/gdb_string_view.tcc: New file.
10662
41260ac2
SM
106632018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10664
10665 * ax_cxx_compile_stdcxx.m4: Sync with upstream.
10666 * configure: Re-generate.
10667
0bee6dd4
PA
106682018-04-09 Pedro Alves <palves@redhat.com>
10669
10670 * gdbarch.sh: Include "observable.h" instead of "observer.h".
10671 (set_target_gdbarch): Call
10672 gdb::observers::architecture_changed.notify instead of
10673 observer_notify_architecture_changed.
10674
6f14adc5
SM
106752018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10676
10677 * tracepoint.c (struct current_traceframe_cleanup): Remove.
10678 (do_restore_current_traceframe_cleanup): Remove.
10679 (restore_current_traceframe_cleanup_dtor): Remove.
10680 (make_cleanup_restore_current_traceframe): Remove.
10681 (scoped_restore_current_traceframe::scoped_restore_current_traceframe):
10682 New.
10683 * tracepoint.h (struct scoped_restore_current_traceframe): New.
10684 * infrun.c (fetch_inferior_event): Use
10685 scoped_restore_current_traceframe.
10686
b2bdb8cf
SM
106872018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10688
10689 * dwarf2read.h (struct dwarf2_per_objfile) <n_type_units>:
10690 Remove.
10691 <n_allocated_type_units>: Remove.
10692 <all_type_units>: Change to std::vector.
10693 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
10694 to std::vector change.
10695 (dwarf2_per_objfile::get_cutu): Likewise.
10696 (dwarf2_per_objfile::get_tu): Likewise.
10697 (create_signatured_type_table_from_index): Likewise.
10698 (create_signatured_type_table_from_debug_names): Likewise.
10699 (dw2_symtab_iter_next): Likewise.
10700 (dw2_print_stats): Likewise.
10701 (dw2_expand_all_symtabs): Likewise.
10702 (dw2_expand_marked_cus): Likewise.
10703 (dw2_debug_names_iterator::next): Likewise.
10704 (dwarf2_initialize_objfile): Likewise.
10705 (add_signatured_type_cu_to_table): Likewise.
10706 (create_all_type_units): Likewise.
10707 (add_type_unit): Likewise.
10708 (struct tu_abbrev_offset): Add constructor.
10709 (build_type_psymtabs_1): Adjust to std::vector change.
10710 (print_tu_stats): Likewise.
10711 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
10712 (write_debug_names): Likewise.
10713
b76e467d
SM
107142018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10715
10716 * dwarf2read.h (struct dwarf2_per_objfile) <all_comp_units>: Likewise.
10717 Make an std::vector.
10718 <n_comp_units>: Remove.
10719 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
10720 to std::vector change.
10721 (dwarf2_per_objfile::get_cutu): Likewise.
10722 (dwarf2_per_objfile::get_cu): Likewise.
10723 (create_cus_from_index): Likewise.
10724 (create_addrmap_from_index): Likewise.
10725 (create_addrmap_from_aranges): Likewise.
10726 (dwarf2_read_index): Likewise.
10727 (dw2_find_last_source_symtab): Likewise.
10728 (dw2_map_symtabs_matching_filename): Likewise.
10729 (dw2_symtab_iter_next): Likewise.
10730 (dw2_print_stats): Likewise.
10731 (dw2_expand_all_symtabs): Likewise.
10732 (dw2_expand_symtabs_with_fullname): Likewise.
10733 (dw2_expand_marked_cus): Likewise.
10734 (dw2_map_symbol_filenames): Likewise.
10735 (create_cus_from_debug_names): Likewise.
10736 (dwarf2_read_debug_names): Likewise.
10737 (dw2_debug_names_iterator::next): Likewise.
10738 (dwarf2_initialize_objfile): Likewise.
10739 (set_partial_user): Likewise.
10740 (dwarf2_build_psymtabs_hard): Likewise.
10741 (read_comp_units_from_section): Remove arguments, adjust to
10742 std::vector change.
10743 (create_all_comp_units): Adjust to std::vector and
10744 read_comp_units_from_section changes.
10745 (dwarf2_find_containing_comp_unit): Adjust to std::vector
10746 change.
10747 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
10748 (psyms_seen_size): Likewise.
10749 (write_gdbindex): Likewise.
10750 (write_debug_names): Likewise.
10751
12359b5e
SM
107522018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10753
10754 * dwarf2read.c (create_cus_from_index_list): Replace objfile arg
10755 with dwarf2_per_objfile.
10756 (create_cus_from_index): Likewise.
10757 (create_signatured_type_table_from_index): Likewise.
10758 (dwarf2_read_index): Likewise.
10759 (dwarf2_initialize_objfile): Likewise.
10760 (dwarf2_fetch_die_loc_sect_off): Get dwarf2_per_objfile from
10761 per_cu rather than get_dwarf2_per_objfile.
10762
ff4c9fec
SM
107632018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10764
10765 * dwarf2read.h (struct signatured_type): Forward declare.
10766 (struct dwarf2_per_objfile) <get_cutu, get_cu, get_tu>:
10767 New methods.
10768 * dwarf2read.c (dwarf2_per_objfile::get_cutu): Rename from...
10769 (dw2_get_cutu): ...this.
10770 (dwarf2_per_objfile::get_cu): Rename from...
10771 (dw2_get_cu): ...this.
10772 (dwarf2_per_objfile::get_tu): New.
10773 (create_addrmap_from_index): Adjust.
10774 (create_addrmap_from_aranges): Adjust.
10775 (dw2_find_last_source_symtab): Adjust.
10776 (dw2_map_symtabs_matching_filename): Adjust.
10777 (dw2_symtab_iter_next): Adjust.
10778 (dw2_print_stats): Adjust.
10779 (dw2_expand_all_symtabs): Adjust.
10780 (dw2_expand_symtabs_with_fullname): Adjust.
10781 (dw2_expand_marked_cus): Adjust.
10782 (dw_expand_symtabs_matching_file_matcher): Adjust.
10783 (dw2_map_symbol_filenames): Adjust.
10784 (dw2_debug_names_iterator::next): Adjust.
10785 (dwarf2_initialize_objfile): Adjust.
10786 (set_partial_user): Adjust.
10787 (dwarf2_build_psymtabs_hard): Adjust.
10788
5ca3fcb6
SM
107892018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10790
10791 * dwarf2read.c (create_signatured_type_table_from_debug_names):
10792 Remove unused variables.
10793 (dw2_map_symtabs_matching_filename): Likewise.
10794 (dwarf2_record_block_ranges): Likewise.
10795 (dwarf2_read_addr_index): Likewise.
10796 (follow_die_offset): Likewise.
10797
b2e586e8
SM
107982018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10799
10800 * progspace.c (clone_program_space): Pass SYMFILE_DEFER_BP_RESET
10801 to symbol_file_add_main.
10802
7c4e78cf
SM
108032018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10804
10805 PR mi/22299
10806 * mi/mi-console.c (do_fputc_async_safe): New.
10807 (mi_console_file::write_async_safe): New.
10808 (mi_console_file::flush): Adjust calls to fputstrn_unfiltered.
10809 * mi/mi-console.h (class mi_console_file) <write_async_safe>:
10810 New.
10811 * ui-file.c (ui_file::putstrn): Adjust call to
10812 fputstrn_unfiltered.
10813 * utils.c (printchar): Replace do_fputs and do_fprintf
10814 parameters by do_fputc.
10815 (fputstr_filtered): Adjust call to printchar.
10816 (fputstr_unfiltered): Likewise.
10817 (fputstrn_filtered): Likewise.
10818 (fputstrn_unfiltered): Add do_fputc parameter, pass to
10819 printchar.
10820 * utils.h (do_fputc_ftype): New typedef.
10821 (fputstrn_unfiltered): Add do_fputc parameter.
10822
5dc026d3
SM
108232018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10824
10825 * regformats/i386/i386-avx.dat: Remove.
10826
c912f608
SM
108272018-04-07 Simon Marchi <simon.marchi@ericsson.com>
10828
10829 PR gdb/22979
10830 * amd64-tdep.c (amd64_none_init_abi): New function.
10831 (amd64_x32_none_init_abi): New function.
10832 (_initialize_amd64_tdep): Register handlers for x86-64 and
10833 x64_32 with GDB_OSABI_NONE.
10834 * osabi.c (gdbarch_init_osabi): Allow running handlers for the
10835 GDB_OSABI_NONE osabi.
10836
26540402
SM
108372018-04-07 Simon Marchi <simon.marchi@ericsson.com>
10838
10839 PR gdb/22980
10840 * defs.h (enum gdb_osabi): Remove GDB_OSABI_UNINITIALIZED, add
10841 GDB_OSABI_NONE.
10842 * arch-utils.c (gdbarch_info_init): Don't set info->osabi.
10843 * osabi.c (gdb_osabi_names): Add "unknown" entry.
10844
9018be22
SM
108452018-04-07 Simon Marchi <simon.marchi@ericsson.com>
10846
10847 * common/byte-vector.h (char_vector): New type.
10848 * target.h (target_read_alloc): Return
10849 gdb::optional<byte_vector>.
10850 (target_read_stralloc): Return gdb::optional<char_vector>.
10851 (target_get_osdata): Return gdb::optional<char_vector>.
10852 * target.c (target_read_alloc_1): Templatize. Replacement
10853 manual memory management with vector.
10854 (target_read_alloc): Change return type, adjust.
10855 (target_read_stralloc): Change return type, adjust.
10856 (target_get_osdata): Change return type, adjust.
10857 * auxv.c (struct auxv_info) <length>: Remove.
10858 <data>: Change type to gdb::optional<byte_vector>.
10859 (auxv_inferior_data_cleanup): Free auxv_info with delete.
10860 (get_auxv_inferior_data): Allocate auxv_info with new, adjust.
10861 (target_auxv_search): Adjust.
10862 (fprint_target_auxv): Adjust.
10863 * avr-tdep.c (avr_io_reg_read_command): Adjust.
10864 * linux-tdep.c (linux_spu_make_corefile_notes): Adjust.
10865 (linux_make_corefile_notes): Adjust.
10866 * osdata.c (get_osdata): Adjust.
10867 * remote.c (remote_get_threads_with_qxfer): Adjust.
10868 (remote_memory_map): Adjust.
10869 (remote_traceframe_info): Adjust.
10870 (btrace_read_config): Adjust.
10871 (remote_read_btrace): Adjust.
10872 (remote_pid_to_exec_file): Adjust.
10873 * solib-aix.c (solib_aix_get_library_list): Adjust.
10874 * solib-dsbt.c (decode_loadmap): Don't free buf.
10875 (dsbt_get_initial_loadmaps): Adjust.
10876 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Adjust.
10877 * solib-target.c (solib_target_current_sos): Adjust.
10878 * tracepoint.c (sdata_make_value): Adjust.
10879 * xml-support.c (xinclude_start_include): Adjust.
10880 (xml_fetch_content_from_file): Adjust.
10881 * xml-support.h (xml_fetch_another): Change return type.
10882 (xml_fetch_content_from_file): Change return type.
10883 * xml-syscall.c (xml_init_syscalls_info): Adjust.
10884 * xml-tdesc.c (file_read_description_xml): Adjust.
10885 (fetch_available_features_from_target): Change return type.
10886 (target_fetch_description_xml): Adjust.
10887 (target_read_description_xml): Adjust.
10888
14c88955
TT
108892018-04-06 Tom Tromey <tom@tromey.com>
10890
10891 * value.c (~value): Update.
10892 (struct value) <contents>: Now unique_xmalloc_ptr.
10893 (value_contents_bits_eq, allocate_value_contents)
10894 (value_contents_raw, value_contents_all_raw)
10895 (value_contents_for_printing, value_contents_for_printing_const)
10896 (set_value_enclosing_type): Update.
10897
0c7e6dd8
TT
108982018-04-06 Tom Tromey <tom@tromey.com>
10899
10900 * value.c (range_s): Remove typedef, VEC.
10901 (struct range): Add operator<.
10902 (range_lessthan): Remove.
10903 (ranges_contain): Change type.
10904 (~value): Update.
10905 (struct value) <unavailable, optimized_out>: Now std::vector.
10906 (value_entirely_available)
10907 (value_entirely_covered_by_range_vector)
10908 (value_entirely_unavailable, value_entirely_optimized_out):
10909 Update.
10910 (insert_into_bit_range_vector): Change argument type.
10911 (find_first_range_overlap): Likewise.
10912 (struct ranges_and_idx, value_contents_bits_eq)
10913 (require_not_optimized_out, require_available): Update.
10914 (ranges_copy_adjusted): Change argument types.
10915 (value_optimized_out, value_copy, value_fetch_lazy): Update.
10916
2c8331b9
TT
109172018-04-06 Tom Tromey <tom@tromey.com>
10918
10919 * value.c (~value): Update.
10920 (struct value) <parent>: Now a value_ref_ptr.
10921 (value_parent, set_value_parent, value_address, value_copy):
10922 Update.
10923
466ce3ae
TT
109242018-04-06 Tom Tromey <tom@tromey.com>
10925
10926 * value.c (struct value): Add constructor, destructor, and member
10927 initializers.
10928 (allocate_value_lazy, value_decref): Update.
10929
062d818d
TT
109302018-04-06 Tom Tromey <tom@tromey.com>
10931
10932 * value.c (struct value) <released, next>: Remove.
10933 (all_values): Now a std::vector.
10934 (allocate_value_lazy): Update.
10935 (value_next): Remove.
10936 (value_mark, value_free_to_mark, release_value)
10937 (value_release_to_mark): Update.
10938
a6535de1
TT
109392018-04-06 Tom Tromey <tom@tromey.com>
10940
10941 * value.h (fetch_subexp_value, value_release_to_mark): Update.
10942 (free_value_chain): Remove.
10943 * value.c (free_value_chain): Remove.
10944 (value_release_to_mark): Return a std::vector.
10945 * ppc-linux-nat.c (num_memory_accesses): Change "chain" to a
10946 std::vector.
10947 (check_condition): Update.
10948 * eval.c (fetch_subexp_value): Change "val_chain" to a
10949 std::vector.
10950 * breakpoint.c (update_watchpoint): Update.
10951 (can_use_hardware_watchpoint): Change "vals" to a std::vector.
10952
b5621201
TT
109532018-04-06 Tom Tromey <tom@tromey.com>
10954
10955 * value.h (free_all_values): Remove.
10956 * value.c (free_all_values): Remove.
10957
4d0266a0
TT
109582018-04-06 Tom Tromey <tom@tromey.com>
10959
10960 * value.c (VALUE_HISTORY_CHUNK, struct value_history_chunk)
10961 (value_history_chain, value_history_count): Remove.
10962 (value_history): New global.
10963 (record_latest_value, access_value_history, show_values)
10964 (preserve_values): Update.
10965
b4d61099
TT
109662018-04-06 Tom Tromey <tom@tromey.com>
10967
10968 * varobj.h (struct varobj) <value>: Now a value_ref_ptr.
10969 * varobj.c (varobj_set_display_format, varobj_set_value)
10970 (install_default_visualizer, construct_visualizer)
10971 (install_new_value, ~varobj, varobj_get_value_type)
10972 (my_value_of_variable, varobj_editable_p): Update.
10973 * c-varobj.c (c_describe_child, c_value_of_variable)
10974 (cplus_number_of_children, cplus_describe_child): Update.
10975 * ada-varobj.c (ada_number_of_children, ada_name_of_child)
10976 (ada_path_expr_of_child, ada_value_of_child, ada_type_of_child)
10977 (ada_value_of_variable, ada_value_is_changeable_p): Update.
10978
9b558729
TT
109792018-04-06 Tom Tromey <tom@tromey.com>
10980
10981 * printcmd.c (last_examine_address): Change type to
10982 value_ref_ptr.
10983 (do_examine, x_command): Update.
10984
850645cf
TT
109852018-04-06 Tom Tromey <tom@tromey.com>
10986
10987 * value.c (release_value): Update.
10988 * breakpoint.h (struct watchpoint) <val>: Now a value_ref_ptr.
10989 (struct bpstats) <val>: Now a value_ref_ptr.
10990 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
10991 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
10992 (~watchpoint, print_it_watchpoint, watch_command_1)
10993 (invalidate_bp_value_on_memory_change): Update.
10994
22bc8444
TT
109952018-04-06 Tom Tromey <tom@tromey.com>
10996
10997 * varobj.c (varobj_clear_saved_item)
10998 (update_dynamic_varobj_children, install_new_value, ~varobj):
10999 Update.
11000 * value.h (value_incref): Move declaration earlier.
11001 (value_decref): Rename from value_free.
11002 (struct value_ref_policy): New.
11003 (value_ref_ptr): New typedef.
11004 (struct value_deleter): Remove.
11005 (gdb_value_up): Remove typedef.
11006 (release_value): Change return type.
11007 (release_value_or_incref): Remove.
11008 * value.c (set_value_parent): Update.
11009 (value_incref): Change return type.
11010 (value_decref): Rename from value_free.
11011 (value_free_to_mark, free_all_values, free_value_chain): Update.
11012 (release_value): Return value_ref_ptr.
11013 (release_value_or_incref): Remove.
11014 (record_latest_value, set_internalvar, clear_internalvar):
11015 Update.
11016 * stack.c (info_frame_command): Don't call value_free.
11017 * python/py-value.c (valpy_dealloc, valpy_new)
11018 (value_to_value_object): Update.
11019 * printcmd.c (do_examine): Update.
11020 * opencl-lang.c (lval_func_free_closure): Update.
11021 * mi/mi-main.c (register_changed_p): Don't call value_free.
11022 * mep-tdep.c (mep_frame_prev_register): Don't call value_free.
11023 * m88k-tdep.c (m88k_frame_prev_register): Don't call value_free.
11024 * m68hc11-tdep.c (m68hc11_frame_prev_register): Don't call
11025 value_free.
11026 * guile/scm-value.c (vlscm_free_value_smob)
11027 (vlscm_scm_from_value): Update.
11028 * frame.c (frame_register_unwind, frame_unwind_register_signed)
11029 (frame_unwind_register_unsigned, get_frame_register_bytes)
11030 (put_frame_register_bytes): Don't call value_free.
11031 * findvar.c (address_from_register): Don't call value_free.
11032 * dwarf2read.c (dwarf2_compute_name): Don't call value_free.
11033 * dwarf2loc.c (entry_data_value_free_closure)
11034 (value_of_dwarf_reg_entry, free_pieced_value_closure)
11035 (dwarf2_evaluate_loc_desc_full): Update.
11036 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
11037 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
11038 (~watchpoint, watch_command_1)
11039 (invalidate_bp_value_on_memory_change): Update.
11040 * alpha-tdep.c (alpha_register_to_value): Don't call value_free.
11041
7f8a5d38
SM
110422018-04-06 Simon Marchi <simon.marchi@polymtl.ca>
11043
11044 PR gdb/23022
11045 * warning.m4: Add -Wno-error=deprecated-register.
11046 * configure: Re-generate.
11047
8a76bd3b
TT
110482018-04-05 Tom Tromey <tom@tromey.com>
11049
11050 * linespec.h: Remove include of "vec.h".
11051
8e8d776e
TT
110522018-04-05 Tom Tromey <tom@tromey.com>
11053
11054 * linespec.c (typep): Remove typedef.
11055 (find_methods, find_superclass_methods): Take a std::vector.
11056 (find_method): Use std::vector.
11057
9b2f8581
TT
110582018-04-05 Tom Tromey <tom@tromey.com>
11059
11060 * utils.c (compare_strings): Remove.
11061 * utils.h (compare_strings): Remove.
11062 * objc-lang.h (find_imps): Update.
11063 * objc-lang.c (find_methods): Take a std::vector.
11064 (uniquify_strings, find_imps): Likewise.
11065 * linespec.c (find_methods): Take a std::vector.
11066 (decode_objc): Use std::vector.
11067 (add_all_symbol_names_from_pspace, find_superclass_methods): Take
11068 a std::vector.
11069 (find_method, find_function_symbols): Use std::vector.
11070
459a2e4c
TT
110712018-04-05 Tom Tromey <tom@tromey.com>
11072
11073 * completer.c (completion_tracker::completion_tracker): Remove
11074 cast.
11075 (completion_tracker::discard_completions): Likewise.
11076 * breakpoint.c (ambiguous_names_p): Remove cast.
11077 * ada-lang.c (_initialize_ada_language): Remove cast.
11078 * utils.h (streq): Update.
11079 (streq_hash): Add new declaration.
11080 * utils.c (streq): Return bool.
11081 (streq_hash): New function.
11082
9be2c17a
TT
110832018-04-05 Tom Tromey <tom@tromey.com>
11084
11085 * linespec.c (event_location_to_sals) <case ADDRESS_LOCATION>:
11086 Remove a string copy.
11087
f73c6ece
TT
110882018-04-05 Tom Tromey <tom@tromey.com>
11089
11090 * linespec.c (filter_results): Use std::vector.
11091 (decode_line_2, decode_line_full): Update.
11092
53a0f8a2
TT
110932018-04-05 Tom Tromey <tom@tromey.com>
11094
11095 * linespec.c (canonical_to_fullform): Return std::string.
11096 (filter_results): Update.
11097 (struct decode_line_2_item): Add constructor.
11098 <fullform, displayform>: Now std::string.
11099 (decode_line_2_compare_items): Now a std::sort comparator.
11100 (decode_line_2): Update.
11101
a5b5adf5
TT
111022018-04-05 Tom Tromey <tom@tromey.com>
11103
11104 * linespec.c (copy_token_string): Return a unique_xmalloc_ptr.
11105 (unexpected_linespec_error): Update.
11106 (linespec_parse_basic, parse_linespec): Update.
11107
6a307fc5
TT
111082018-04-05 Tom Tromey <tom@tromey.com>
11109
11110 * linespec.c (linespec_parse_basic): Reindent.
11111
41c1efc6
TT
111122018-04-05 Tom Tromey <tom@tromey.com>
11113
11114 * minsyms.h (iterate_over_minimal_symbols): Update.
11115 * minsyms.c (iterate_over_minimal_symbols): Take a
11116 gdb::function_view.
11117 * linespec.c (struct collect_minsyms): Remove.
11118 (compare_msyms): Now a std::sort comparator.
11119 (add_minsym): Add parameters.
11120 (search_minsyms_for_name): Update. Use std::vector.
11121
c5edbf3d
TT
111222018-04-03 Tom Tromey <tom@tromey.com>
11123
11124 * mipsread.c (read_alphacoff_dynamic_symtab): Use
11125 gdb::byte_vector.
11126
b39efc48
WP
111272018-04-02 Weimin Pan <weimin.pan@oracle.com>
11128
11129 * MAINTAINERS (Write After Approval): Add Weimin Pan.
11130
121ad66c 111312018-04-02 Weimin Pan <weimin.pan@oracle.com>
79f18731
WP
11132
11133 PR gdb/16959
11134 * cp-valprint.c: (cp_print_static_field) Fix infinite recursion when
11135 printing static type.
11136
09473be8
TT
111372018-04-01 Tom Tromey <tom@tromey.com>
11138
11139 * rs6000-nat.c (rs6000_ptrace_ldinfo): Return a byte_vector.
11140 (rs6000_xfer_shared_libraries): Update.
11141
ec1f2d91
SM
111422018-04-01 Simon Marchi <simon.marchi@polymtl.ca>
11143
11144 * common/gdb_vecs.h (char_ptr): Remove.
11145 * tracepoint.c (encode_actions_1): Remove usage of char_ptr.
11146
d8611974
SM
111472018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
11148
11149 * guile/scm-utils.c (gdbscm_parse_function_args): Replace VEC
11150 with std::vector.
11151 * common/gdb_vecs.h (DEF_VEC_P (char_ptr)): Remove.
11152
a18ba4e4
SM
111532018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
11154
11155 * tracepoint.h (struct uploaded_tp): Initialize fields.
11156 <actions, step_actions, cmd_strings>: Change type to
11157 std::vector<char *>.
11158 * tracepoint.c (get_uploaded_tp): Allocate with new.
11159 (free_uploaded_tps): Free with delete.
11160 (parse_tracepoint_definition): Adjust to std::vector change.
11161 * breakpoint.c (read_uploaded_action): Likewise.
11162 (create_tracepoint_from_upload): Likewise.
11163 * ctf.c (ctf_write_uploaded_tp): Likewise.
11164 (SET_ARRAY_FIELD): Likewise.
11165 * tracefile-tfile.c (tfile_write_uploaded_tp): Likewise.
11166
a7961323
TT
111672018-03-30 Tom Tromey <tom@tromey.com>
11168
11169 * solib-svr4.c (lm_info_read): Use gdb::byte_vector. Return
11170 std::unique_ptr.
11171 (svr4_keep_data_in_core): Update.
11172 (svr4_read_so_list): Update.
11173
e83e4e24
TT
111742018-03-30 Tom Tromey <tom@tromey.com>
11175
11176 * windows-nat.c (handle_output_debug_string, handle_exception):
11177 Update.
11178 * target.h (target_read_string): Update.
11179 * target.c (target_read_string): Change "string" to
11180 unique_xmalloc_ptr.
11181 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
11182 Update.
11183 * solib-frv.c (frv_current_sos): Update.
11184 * solib-dsbt.c (dsbt_current_sos): Update.
11185 * solib-darwin.c (darwin_current_sos): Update.
11186 * linux-thread-db.c (inferior_has_bug): Update.
11187 * expprint.c (print_subexp_standard) <case OP_OBJC_MSGCALL>:
11188 Update. Remove alloca.
11189 * ada-lang.c (ada_main_name): Update.
11190
263db9a1
TT
111912018-03-30 Tom Tromey <tom@tromey.com>
11192
11193 * dwarf2read.c (struct free_dwo_file_cleanup_data): Remove.
11194 (struct dwo_file_deleter): New.
11195 (dwo_file_up): New typedef.
11196 (open_and_init_dwo_file): Use dwo_file_up.
11197 (free_dwo_file_cleanup): Remove.
11198
5dafb3d1
TT
111992018-03-30 Tom Tromey <tom@tromey.com>
11200
11201 * dwarf2read.c (free_dwo_file): Remove "objfile" parameter.
11202 (free_dwo_file_cleanup, free_dwo_file_from_slot): Update.
11203
11ed8cad
TT
112042018-03-30 Tom Tromey <tom@tromey.com>
11205
11206 * dwarf2read.c (class free_cached_comp_units): New class.
11207 (dw2_instantiate_symtab, dwarf2_build_psymtabs_hard): Use it.
11208 (free_cached_comp_units): Remove function.
11209
9ae79dac
TT
112102018-03-30 Tom Tromey <tom@tromey.com>
11211
11212 * utils.h (make_cleanup_unpush_target): Remove.
11213 * inf-ptrace.c (struct target_unpusher): New.
11214 (target_unpush_up) New typedef.
11215 (inf_ptrace_create_inferior, inf_ptrace_attach): Use
11216 target_unpush_up.
11217 * utils.c (do_unpush_target, make_cleanup_unpush_target): Remove.
11218
5aa89276
TT
112192018-03-27 Tom Tromey <tom@tromey.com>
11220
11221 * utils.c (prompt_for_continue): Use unique_xmalloc_ptr.
11222
1dbeed45
TT
112232018-03-27 Pedro Alves <palves@redhat.com>
11224 Tom Tromey <tom@tromey.com>
11225
11226 * top.c (class gdb_readline_wrapper_cleanup): Add constructor,
11227 destructor. Now a class.
11228 (gdb_readline_wrapper_cleanup): Remove function.
11229 (gdb_readline_wrapper): Remove cleanups.
11230
c819b2c0
TT
112312018-03-27 Tom Tromey <tom@tromey.com>
11232
11233 * typeprint.h (struct type_print_options) <local_typedefs,
11234 global_typedefs>: Remove "struct" keyword.
11235 (class typedef_hash_table): New class.
11236 (recursively_update_typedef_hash, add_template_parameters)
11237 (create_typedef_hash, free_typedef_hash, copy_typedef_hash)
11238 (find_typedef_in_hash): Don't declare.
11239 * typeprint.c (struct typedef_hash_table): Move to typeprint.h.
11240 (typedef_hash_table::recursively_update): Rename from
11241 recursively_update_typedef_hash. Now a member.
11242 (typedef_hash_table::add_template_parameters): Rename from
11243 add_template_parameters. Now a member.
11244 (typedef_hash_table::typedef_hash_table): Now a constructor;
11245 rename from create_typedef_hash.
11246 (typedef_hash_table::~typedef_hash_table): Now a destructor;
11247 rename from free_typedef_hash.
11248 (do_free_typedef_hash, make_cleanup_free_typedef_hash)
11249 (do_free_global_table): Remove.
11250 (typedef_hash_table::typedef_hash_table): New constructor; renamed
11251 from copy_type_recursive.
11252 (create_global_typedef_table): Remove.
11253 (typedef_hash_table::find_global_typedef): Now a member of
11254 typedef_hash_table.
11255 (typedef_hash_table::find_typedef): Rename from
11256 find_typedef_in_hash; now a member.
11257 (whatis_exp): Update.
11258 * extension.h (struct ext_lang_type_printers): Add constructor and
11259 destructor.
11260 (start_ext_lang_type_printers, free_ext_lang_type_printers): Don't
11261 declare.
11262 * extension.c (ext_lang_type_printers::ext_lang_type_printers):
11263 Now a constructor; rename from start_ext_lang_type_printers.
11264 (ext_lang_type_printers): Now a destructor; rename from
11265 free_ext_lang_type_printers.
11266 * c-typeprint.c (find_typedef_for_canonicalize, c_print_type_1):
11267 Update.
11268 (c_type_print_base_struct_union): Update. Remove cleanups.
11269
608219fb
TT
112702018-03-27 Tom Tromey <tom@tromey.com>
11271
11272 * dwarf-index-write.c: Include <cmath>.
11273
3fcded8f
JB
112742018-03-27 Joel Brobecker <brobecker@adacore.com>
11275
11276 * NEWS: Add entry describing new "set|show varsize-limit" command.
11277 * ada-lang.c (_initialize_ada_language): Add "set/show varsize-limit"
11278 command.
11279 * printcmd.c (_initialize_printcmd): Add "set var" alias of
11280 "set variable".
11281
cd4fb1b2
SM
112822018-03-27 Simon Marchi <simon.marchi@ericsson.com>
11283
11284 * Makefile.in (COMMON_SFILES): Add dwarf-index-common.c and
11285 dwarf-index-write.c
11286 (HFILES_NO_SRCDIR): Add dwarf-index-common.h and dwarf2read.h.
11287 * dwarf-index-common.c: New file.
11288 * dwarf-index-common.h: New file.
11289 * dwarf-index-write.c: New file.
11290 * dwarf2read.c: Include dwarf2read.h and dwarf-index-common.h.
11291 (struct dwarf2_section_info): Move from here.
11292 (dwarf2_section_info_def): Likewise.
11293 (DEF_VEC_O (dwarf2_section_info_def)): Likewise.
11294 (offset_type): Likewise.
11295 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): Likewise.
11296 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): Likewise.
11297 (DW2_GDB_INDEX_CU_SET_VALUE): Likewise.
11298 (byte_swap): Likewise.
11299 (MAYBE_SWAP): Likewise.
11300 (dwarf2_per_cu_ptr): Likewise.
11301 (DEF_VEC_P (dwarf2_per_cu_ptr)): Likewise.
11302 (struct tu_stats): Likewise.
11303 (struct dwarf2_per_objfile): Likewise.
11304 (struct dwarf2_per_cu_data): Likewise.
11305 (struct signatured_type): Likewise.
11306 (sig_type_ptr): Likewise.
11307 (DEF_VEC_P (sig_type_ptr)): Likewise.
11308 (INDEX4_SUFFIX): Likewise.
11309 (INDEX5_SUFFIX): Likewise.
11310 (DEBUG_STR_SUFFIX): Likewise.
11311 (dwarf2_read_section): Make non-static.
11312 (mapped_index_string_hash): Move from here.
11313 (dwarf5_djb_hash): Likewise.
11314 (file_write): Likewise.
11315 (class data_buf): Likewise.
11316 (struct symtab_index_entry): Likewise.
11317 (struct mapped_symtab): Likewise.
11318 (find_slot): Likewise.
11319 (hash_expand): Likewise.
11320 (add_index_entry): Likewise.
11321 (uniquify_cu_indices): Likewise.
11322 (class c_str_view): Likewise.
11323 (class c_str_view_hasher): Likewise.
11324 (class vector_hasher): Likewise.
11325 (write_hash_table): Likewise.
11326 (psym_index_map): Likewise.
11327 (struct addrmap_index_data): Likewise.
11328 (add_address_entry): Likewise.
11329 (add_address_entry_worker): Likewise.
11330 (write_address_map): Likewise.
11331 (symbol_kind): Likewise.
11332 (write_psymbols): Likewise.
11333 (struct signatured_type_index_data): Likewise.
11334 (write_one_signatured_type): Likewise.
11335 (recursively_count_psymbols): Likewise.
11336 (recursively_write_psymbols): Likewise.
11337 (class debug_names): Likewise.
11338 (check_dwarf64_offsets): Likewise.
11339 (psyms_seen_size): Likewise.
11340 (write_gdbindex): Likewise.
11341 (write_debug_names): Likewise.
11342 (assert_file_size): Likewise.
11343 (write_psymtabs_to_index): Likewise.
11344 (save_gdb_index_command): Likewise.
11345 (_initialize_dwarf2_read): Don't register the "save gdb-index"
11346 command.
11347 * dwarf2read.h: New file.
11348
59cc4834
JB
113492018-03-27 Joel Brobecker <brobecker@adacore.com>
11350
11351 PR gdb/22670
11352 * dwarf2read.c (dwarf2_physname): Do not return the demangled
11353 symbol name if the CU's language stores symbol names in linkage
11354 format.
11355 * language.h (struct language_defn)
11356 <la_store_sym_names_in_linkage_form_p>: New field. Adjust
11357 all instances of this struct.
11358
67501539
TT
113592018-03-26 Tom Tromey <tom@tromey.com>
11360
11361 * stack.c (backtrace_command_1): Remove verbose code.
11362
76c939ac
TT
113632018-03-26 Tom Tromey <tom@tromey.com>
11364
11365 * python/py-framefilter.c (py_print_type): Don't catch
11366 exceptions. Return void.
11367 (py_print_value): Likewise.
11368 (py_print_single_arg): Likewise.
11369 (enumerate_args): Don't catch exceptions.
11370 (py_print_args): Likewise.
11371 (py_print_frame): Likewise.
11372 (gdbpy_apply_frame_filter): Catch exceptions here.
11373
9507b29c
TT
113742018-03-26 Tom Tromey <tom@tromey.com>
11375
11376 * stack.c (_initialize_stack): Remove trailing newlines from help
11377 text. Add "Usage" line to "backtrace" help.
11378
eb68e487
TT
113792018-03-26 Tom Tromey <tom@tromey.com>
11380
11381 PR python/16486:
11382 * python/py-framefilter.c (py_print_args): Call wrap_hint.
11383
1f111921
TT
113842018-03-26 Tom Tromey <tom@tromey.com>
11385
11386 * python/py-framefilter.c (py_print_single_arg): Return
11387 EXT_LANG_BT_ERROR from catch.
11388
fb7eb8b5
TT
113892018-03-26 Tom Tromey <tom@tromey.com>
11390
11391 PR backtrace/15584:
11392 * stack.c (backtrace_command_1): Move some code into no-filters
11393 "if".
11394
4ca59a9f
TT
113952018-03-26 Tom Tromey <tom@tromey.com>
11396
11397 * python/py-framefilter.c (throw_quit_or_print_exception): New
11398 function.
11399 (gdbpy_apply_frame_filter): Use it.
11400
92256134
TT
114012018-03-26 Tom Tromey <tom@tromey.com>
11402
11403 PR cli/17716:
11404 * python/py-framefilter.c (py_print_type, py_print_value)
11405 (enumerate_args, py_print_args, gdbpy_apply_frame_filter): Use
11406 RETURN_MASK_ERROR.
11407
7a630bc2
TT
114082018-03-26 Tom Tromey <tom@tromey.com>
11409
11410 * python/py-framefilter.c (enumerate_args): Use
11411 gdb::unique_xmalloc_ptr.
11412
63283d4a
TT
114132018-03-26 Tom Tromey <tom@tromey.com>
11414
11415 * python/py-framefilter.c (py_print_frame): Return
11416 EXT_LANG_BT_OK.
11417 (gdbpy_apply_frame_filter): Update comment.
11418 * extension.h (enum ext_lang_bt_status) <EXT_LANG_BT_COMPLETED>:
11419 Remove.
11420 <EXT_LANG_BT_NO_FILTERS>: Change value.
11421
978d6c75
TT
114222018-03-26 Tom Tromey <tom@tromey.com>
11423
11424 PR backtrace/15582:
11425 * stack.c (backtrace_command): Parse "hide" argument.
11426 * python/py-framefilter.c (py_print_frame): Handle PRINT_HIDE.
11427 * extension.h (enum frame_filter_flags) <PRINT_HIDE>: New
11428 constant.
11429
1cf7e640
TT
114302018-03-26 Tom Tromey <tom@tromey.com>
11431
11432 * stack.c (backtrace_command_1): Remove "show_locals" parameter,
11433 add "flags".
11434 (backtrace_command): Remove "fulltrace", add "flags".
11435
ea3b0687
TT
114362018-03-26 Tom Tromey <tom@tromey.com>
11437
11438 * stack.c (backtrace_command): Rewrite command line parsing.
11439
9f034d75
SM
114402018-03-26 Simon Marchi <simon.marchi@ericsson.com>
11441
11442 * dwarf2read.c (DEF_VEC_I(offset_type)): Remove.
11443
ce1459e5
SM
114442018-03-26 Simon Marchi <simon.marchi@ericsson.com>
11445
11446 * filename-seen-cache.h: Add include guard.
11447
4f7ae6f5
KS
114482018-03-26 Keith Seitz <keiths@redhat.com>
11449
11450 * symfile.c (place_section): Remove "struct" from section_addr_info
11451 in comment.
11452 * windows-nat.c (struct safe_symbol_file_add_args) <addrs>: Remove
11453 "struct" keyword from section_addr_info.
11454
5cd3e386
AH
114552018-03-26 Alan Hayward <alan.hayward@arm.com>
11456
11457 * regformats/regdef.h (reg): Add constructors.
11458
3e5ef9a4
PA
114592018-03-25 Pedro Alves <palves@redhat.com>
11460
11461 * eval.c (evaluate_funcall): Swap OP_VAR_MSYM_VALUE/OP_VAR_VALUE
11462 if then/else bodies in var_func_name extraction.
11463
c88d2fcc 114642018-03-23 Weimin Pan <weimin.pan@oracle.com>
bce02d88
WP
11465
11466 * minsyms.c (lookup_minimal_symbol_and_objfile): Use
11467 lookup_minimal_symbol() to find symbol entry.
11468 * minsyms.h (lookup_minimal_symbol_and_objfile): Update comment.
11469
b7fee5a3
KS
114702018-03-23 Keith Seitz <keiths@redhat.com>
11471
11472 PR c++/22968
11473 * dwarf2read.c (scan_partial_symbols): Scan structs/classes for
11474 nested type definitions for C++, too.
11475
2cc9b304
TT
114762018-03-23 Tom Tromey <tom@tromey.com>
11477
11478 * machoread.c (struct oso_el): Add a constructor. Don't define as
11479 a typedef.
11480 (macho_register_oso): Remove.
11481 (macho_symtab_read): Take a std::vector.
11482 (oso_el_compare_name): Now a std::sort comparator.
11483 (macho_symfile_read_all_oso): Take a std::vector.
11484 (macho_symfile_read): Use std::vector. Remove cleanups.
11485
a2b2bc12
TT
114862018-03-22 Tom Tromey <tom@tromey.com>
11487
11488 * record-full.c (record_full_exec_insn): Use gdb::byte_vector.
11489 (record_full_goto_bookmark): Use std::string.
11490
7a8f494c
PFC
114912018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
11492
11493 PR tdep/18295
11494 * rs6000-tdep.c (skip_prologue): Match both stwux and stdux
11495 a single mask.
11496
dd6d677f
PFC
114972018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
11498
11499 * rs6000-tdep.c (store_insn_p): New function.
11500 (skip_prologue): New variable alloca_reg_offset. Set lr_reg
11501 and cr_reg to their unshifted values. Use store_insn_p to
11502 match LR saves using either R1 or fdata->alloca_reg. Use
11503 store_insn_p to match CR saves. Set alloca_reg_offset
11504 when alloca_reg and framep are set. Remove lr_reg shift
11505 when assigning to fdata->lr_register.
11506
26d6cec4
AA
115072018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
11508
11509 * linux-tdep.c (linux_info_proc): For "info proc cmdline", print
11510 command line args instead of emitting a warning.
11511
5d9310c4
SM
115122018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
11513
11514 * tracepoint.h (struct static_tracepoint_marker): Initialize
11515 fields, define default constructor, move constructor and move
11516 assignment, disable the rest.
11517 <str_id, extra>: Make std::string.
11518 (release_static_tracepoint_marker): Remove.
11519 (free_current_marker): Remove.
11520 * tracepoint.c (free_current_marker): Remove.
11521 (parse_static_tracepoint_marker_definition): Adjust to
11522 std::string, use new hex2str overload.
11523 (release_static_tracepoint_marker): Remove.
11524 (print_one_static_tracepoint_marker): Get marker by reference
11525 and adjust to std::string.
11526 (info_static_tracepoint_markers_command): Adjust to std::vector
11527 changes
11528 * target.h (static_tracepoint_marker_p): Remove typedef.
11529 (DEF_VEC_P(static_tracepoint_marker_p)): Remove.
11530 (struct target_ops) <to_static_tracepoint_marker_at>: Return
11531 bool.
11532 <to_static_tracepoint_markers_by_strid>: Return std::vector.
11533 * target-debug.h
11534 (target_debug_print_VEC_static_tracepoint_marker_p_p): Remove.
11535 (target_debug_print_std_vector_static_tracepoint_marker): New.
11536 (target_debug_print_struct_static_tracepoint_marker_p): Rename
11537 to...
11538 (target_debug_print_static_tracepoint_marker_p): ... this.
11539 * target-delegates.c: Re-generate.
11540 * breakpoint.h (struct tracepoint) <static_trace_marker_id>:
11541 Make std::string.
11542 * breakpoint.c (init_breakpoint_sal): Adjust to std::string.
11543 (decode_static_tracepoint_spec): Adjust to std::vector.
11544 (tracepoint_print_one_detail): Adjust to std::string.
11545 (strace_marker_decode_location): Adjust to std::string.
11546 (update_static_tracepoint): Adjust to std::string, remove call
11547 to release_static_tracepoint_marker.
11548 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
11549 Adjust to std::vector.
11550 * remote.c (remote_static_tracepoint_marker_at): Return bool.
11551 (remote_static_tracepoint_markers_by_strid): Adjust to
11552 std::vector.
11553 * common/rsp-low.h (hex2str): New overload with explicit count
11554 of bytes.
11555 * common/rsp-low.c (hex2str): New overload with explicit count
11556 of bytes.
11557 * unittests/rsp-low-selftests.c (test_hex2str): New function.
11558 (_initialize_rsp_low_selftests): Add test_hex2str test.
11559 * unittests/tracepoint-selftests.c
11560 (test_parse_static_tracepoint_marker_definition): Adjust to
11561 std::string.
11562
62c222b6
SM
115632018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
11564
11565 * tracepoint.c (parse_static_tracepoint_marker_definition):
11566 Consider case where the definition is followed by more
11567 definitions.
11568 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11569 tracepoint-selftests.c.
11570 * unittests/tracepoint-selftests.c: New.
11571
7eb2418f
PFC
115722018-03-21 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
11573
11574 * MAINTAINERS (Write After Approval): Add Pedro Franco de
11575 Carvalho.
11576
7cbe16e9
SR
115772018-03-20 Stephen Roberts <stephen.roberts@arm.com>
11578
3d6b3b82 11579 * symtab.c (find_pc_sect_line): fixed indentation.
7cbe16e9 11580
4ee89e90
SR
115812018-03-20 Stephen Roberts <stephen.roberts@arm.com>
11582
3d6b3b82 11583 * symtab.c (find_pc_sect_line): now uses binary search.
4ee89e90 11584
92630041
TT
115852018-03-19 Tom Tromey <tom@tromey.com>
11586
11587 * rust-exp.y (struct_expr_tail, struct_expr_list): Add plain
11588 "IDENT" production.
11589
76727919
TT
115902018-03-19 Pedro Alves <palves@redhat.com>
11591 Tom Tromey <tom@tromey.com>
11592
11593 * unittests/observable-selftests.c: New file.
11594 * common/observable.h: New file.
11595 * observable.h: New file.
11596 * ada-lang.c, ada-tasks.c, agent.c, aix-thread.c, annotate.c,
11597 arm-tdep.c, auto-load.c, auxv.c, break-catch-syscall.c,
11598 breakpoint.c, bsd-uthread.c, cli/cli-interp.c, cli/cli-setshow.c,
11599 corefile.c, dummy-frame.c, event-loop.c, event-top.c, exec.c,
11600 extension.c, frame.c, gdbarch.c, guile/scm-breakpoint.c,
11601 infcall.c, infcmd.c, inferior.c, inflow.c, infrun.c, jit.c,
11602 linux-tdep.c, linux-thread-db.c, m68klinux-tdep.c,
11603 mi/mi-cmd-break.c, mi/mi-interp.c, mi/mi-main.c, objfiles.c,
11604 ppc-linux-nat.c, ppc-linux-tdep.c, printcmd.c, procfs.c,
11605 python/py-breakpoint.c, python/py-finishbreakpoint.c,
11606 python/py-inferior.c, python/py-unwind.c, ravenscar-thread.c,
11607 record-btrace.c, record-full.c, record.c, regcache.c, remote.c,
11608 riscv-tdep.c, sol-thread.c, solib-aix.c, solib-spu.c, solib.c,
11609 spu-multiarch.c, spu-tdep.c, stack.c, symfile-mem.c, symfile.c,
11610 symtab.c, thread.c, top.c, tracepoint.c, tui/tui-hooks.c,
11611 tui/tui-interp.c, valops.c: Update all users.
11612 * tui/tui-hooks.c (tui_bp_created_observer)
11613 (tui_bp_deleted_observer, tui_bp_modified_observer)
11614 (tui_inferior_exit_observer, tui_before_prompt_observer)
11615 (tui_normal_stop_observer, tui_register_changed_observer):
11616 Remove.
11617 (tui_observers_token): New global.
11618 (attach_or_detach, tui_attach_detach_observers): New functions.
11619 (tui_install_hooks, tui_remove_hooks): Use
11620 tui_attach_detach_observers.
11621 * record-btrace.c (record_btrace_thread_observer): Remove.
11622 (record_btrace_thread_observer_token): New global.
11623 * observer.sh: Remove.
11624 * observer.c: Rename to observable.c.
11625 * observable.c (namespace gdb_observers): Define new objects.
11626 (observer_debug): Move into gdb_observers namespace.
11627 (struct observer, struct observer_list, xalloc_observer_list_node)
11628 (xfree_observer_list_node, generic_observer_attach)
11629 (generic_observer_detach, generic_observer_notify): Remove.
11630 (_initialize_observer): Update.
11631 Don't include observer.inc.
11632 * Makefile.in (generated_files): Remove observer.h, observer.inc.
11633 (clean mostlyclean): Likewise.
11634 (observer.h, observer.inc): Remove targets.
11635 (SUBDIR_UNITTESTS_SRCS): Add observable-selftests.c.
11636 (COMMON_SFILES): Use observable.c, not observer.c.
11637 * .gitignore: Remove observer.h.
11638
1cb1f3da
TT
116392018-03-18 Tom Tromey <tom@tromey.com>
11640
11641 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Use
11642 gdb::def_vector.
11643 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
11644
a06ab151
TT
116452018-03-17 Tom Tromey <tom@tromey.com>
11646
11647 * auto-load.c (auto_load_objfile_script_1): Use std::string.
11648
770623f7
TT
116492018-03-17 Tom Tromey <tom@tromey.com>
11650
11651 * target.c (class scoped_target_fd): New.
11652 (target_fileio_close_cleanup): Remove.
11653 (target_fileio_read_alloc_1): Use scoped_target_fd.
11654
39be3c7e
SM
116552018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
11656
11657 * silent-rules.mk: New.
11658 * Makefile.in: Include silent-rules.mk
11659 (srcdir, VPATH, top_srcdir): Move up.
11660 (COMPILE): Add ECHO_CXX.
11661 (test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD.
11662 (init.c): Add ECHO_INIT_C.
11663 (gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
11664 (version.c): Add ECHO_GEN.
11665 (printcmd.o): Add ECHO_CXX.
11666 (target-float.o): Add ECHO_CXX.
11667 (ada-exp.o): Add ECHO_CXX.
11668 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN.
11669 (insight$(EXEEXT)): Add ECHO_CXXLD.
11670 * gnulib/configure.ac: Add AM_SILENT_RULES.
11671 * gnulib/aclocal.m4: Re-generate.
11672 * gnulib/configure: Re-generate.
11673 * gnulib/import/Makefile.in: Re-generate.
11674
37e136b1
TT
116752018-03-16 Tom Tromey <tom@tromey.com>
11676
11677 * xcoffread.c (xcoff_symfile_offsets): Change type of "addrs".
11678 * utils.h (make_cleanup_free_section_addr_info): Don't declare.
11679 * utils.c (do_free_section_addr_info)
11680 (make_cleanup_free_section_addr_info): Remove.
11681 * symfile.h (struct other_sections): Add constructor.
11682 (struct section_addr_info): Remove.
11683 (section_addr_info): New typedef.
11684 (struct sym_fns) <sym_offsets>: Change type of parameter.
11685 (build_section_addr_info_from_objfile)
11686 (relative_addr_info_to_section_offsets, addr_info_make_relative)
11687 (default_symfile_offsets, symbol_file_add)
11688 (symbol_file_add_from_bfd)
11689 (build_section_addr_info_from_section_table): Update.
11690 (alloc_section_addr_info, free_section_addr_info): Don't declare.
11691 * symfile.c (alloc_section_addr_info): Remove.
11692 (build_section_addr_info_from_section_table): Change return type.
11693 Update.
11694 (build_section_addr_info_from_bfd)
11695 (build_section_addr_info_from_objfile): Likewise.
11696 (free_section_addr_info): Remove.
11697 (relative_addr_info_to_section_offsets): Change type of "addrs".
11698 (addrs_section_compar): Now a std::sort comparator.
11699 (addrs_section_sort): Change return type.
11700 (addr_info_make_relative): Change type of "addrs". Update.
11701 (default_symfile_offsets, syms_from_objfile_1)
11702 (syms_from_objfile, symbol_file_add_with_addrs): Likewise.
11703 (symbol_file_add_separate): Update.
11704 (symbol_file_add): Change type of "addrs". Update.
11705 (add_symbol_file_command): Update. Remove cleanups.
11706 * symfile-mem.c (symbol_file_add_from_memory): Update. Remove
11707 cleanups.
11708 * symfile-debug.c (debug_sym_offsets): Change type of "info".
11709 * solib.c (solib_read_symbols): Update.
11710 * objfiles.c (objfile_relocate): Update. Remove cleanups.
11711 * machoread.c (macho_symfile_offsets): Update.
11712 * jit.c (jit_bfd_try_read_symtab): Update.
11713
03afa6ef
SM
117142018-03-15 Simon Marchi <simon.marchi@polymtl.ca>
11715
11716 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11717 unittests/utils-selftests.c.
11718 * unittests/utils-selftests.c: New file.
11719
3ae9ce5d
TT
117202018-03-14 Tom Tromey <tom@tromey.com>
11721
11722 PR cli/14977:
11723 * printcmd.c (printf_c_string, printf_wide_c_string): Special case
11724 for NULL.
11725
b8c2339b
TT
117262018-03-14 Tom Tromey <tom@tromey.com>
11727
11728 PR cli/19918:
11729 * printcmd.c (printf_pointer): Allow "-" in format.
11730
80ae639d
TT
117312018-03-14 Tom Tromey <tom@tromey.com>
11732
11733 * printcmd.c (_initialize_printcmd): Add usage to printf.
11734
0d671d99
YQ
117352018-03-14 Yao Qi <qiyao@sourceware.org>
11736
11737 * MAINTAINERS: Update my email address.
11738
b577b6af
TT
117392018-03-13 Tom Tromey <tom@tromey.com>
11740
11741 * machoread.c (macho_check_dsym): Change filenamep to a
11742 std::string*.
11743 (macho_symfile_read): Update.
11744 * symfile.c (load_command): Use std::string.
11745
89a3b63e
AB
117462018-03-12 Andrew Burgess <andrew.burgess@embecosm.com>
11747
11748 * riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization
11749 to error message string.
11750 (riscv_register_name): Use xsnprintf instead of sprintf.
11751 (riscv_insn::fetch_instruction): Use gdb_assert instead of
11752 internal_error.
11753 (riscv_print_arg_location): Use gdb_assert_not_reached instead of
11754 error.
11755 (riscv_push_dummy_call): Likewise.
11756
984c7238
TT
117572018-03-12 Tom Tromey <tom@tromey.com>
11758
11759 * rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix):
11760 Use gdb::byte_vector.
11761 * arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector.
11762
933522d1
YQ
117632018-03-12 Yao Qi <yao.qi@linaro.org>
11764
11765 * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change
11766 parameter type to readable_regcache.
11767 * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update
11768 the declaration.
11769
be2daae6
TT
117702018-03-11 Tom Tromey <tom@tromey.com>
11771
11772 * dwarf2read.c (struct nextfield): Add initializers.
11773 (struct nextfnfield): Remove.
11774 (struct fnfieldlist): Add initializers. Remove "length" and
11775 "head", use std::vector.
11776 (struct decl_field_list): Remove.
11777 (struct field_info): Add initializers.
11778 <fields, baseclasses>: Now std::vector.
11779 <nbaseclasses, nfnfields, typedef_field_list_count,
11780 nested_types_list_count>: Remove.
11781 (dwarf2_add_field, dwarf2_add_type_defn)
11782 (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
11783 (dwarf2_attach_fn_fields_to_type, handle_struct_member_die)
11784 (process_structure_scope): Update.
11785
484cf504
TT
117862018-03-11 Tom Tromey <tom@tromey.com>
11787
11788 * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable
11789 for use by std::sort.
11790 (build_type_psymtabs_1): Use std::vector.
11791
9bd8e0b0
EZ
117922018-03-09 Eli Zaretskii <eliz@gnu.org>
11793
11794 * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK,
11795 and LIBMPFR in the printed configuration.
11796
5dc1a704
TT
117972018-03-08 Tom Tromey <tom@tromey.com>
11798
11799 * source.c (get_filename_and_charpos): Use scoped_fd.
11800 * nto-procfs.c (procfs_open_1): Use scoped_fd.
11801 (procfs_pidlist): Likewise.
11802 * procfs.c (proc_get_LDT_entry): Use scoped_fd.
11803 (iterate_over_mappings): Likewise.
11804
fdf07f3a
TT
118052018-03-08 Tom Tromey <tom@tromey.com>
11806
11807 * infcall.c (struct call_return_meta_info)
11808 <stack_temporaries_enabled>: Remove.
11809 (get_call_return_value, call_function_by_hand_dummy): Update.
11810 * thread.c (disable_thread_stack_temporaries): Remove.
11811 (enable_thread_stack_temporaries): Remove.
11812 (thread_stack_temporaries_enabled_p): Return bool.
11813 (push_thread_stack_temporary, value_in_thread_stack_temporaries)
11814 (get_last_thread_stack_temporary): Update.
11815 * eval.c (evaluate_subexp): Update.
11816 * gdbthread.h (class enable_thread_stack_temporaries): Now a
11817 class, not a function.
11818 (value_ptr, value_vec): Remove typedefs.
11819 (class thread_info) <stack_temporaries_enabled>: Now bool.
11820 <stack_temporaries>: Now a std::vector.
11821 (thread_stack_temporaries_enabled_p)
11822 (value_in_thread_stack_temporaries): Return bool.
11823
567a3e54
SM
118242018-03-08 Simon Marchi <simon.marchi@ericsson.com>
11825
11826 * remote.c (putpkt_binary): Fix omitted bytes reporting.
11827 (getpkt_or_notif_sane_1): Likewise.
11828
00b40057
SM
118292018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
11830
11831 * build-id.c (build_id_to_debug_bfd): Use std::string.
11832
a8dbfd58
SM
118332018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
11834
11835 * build-id.c (find_separate_debug_file_by_buildid): Return
11836 std::string.
11837 * build-id.h (find_separate_debug_file_by_buildid): Return
11838 std::string.
11839 * coffread.c (coff_symfile_read): Adjust to std::string.
11840 * elfread.c (elf_symfile_read): Adjust to std::string.
11841 * symfile.c (separate_debug_file_exists): Change parameter to
11842 std::string.
11843 (find_separate_debug_file): Return std::string.
11844 (find_separate_debug_file_by_debuglink): Return std::string.
11845 * symfile.h (find_separate_debug_file_by_debuglink): Return
11846 std::string.
11847
e6a58aa8
SM
118482018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
11849
11850 * common/xml-utils.c (xml_escape_text): Move code to...
11851 (xml_escape_text_append): ... this new function.
11852 * common/xml-utils.h (xml_escape_text_append): New declaration.
11853 * unittests/xml-utils-selftests.c (test_xml_escape_text_append):
11854 New function.
11855 (_initialize_xml_utils): register test_xml_escape_text_append as
11856 a selftest.
11857
4ef0bef6
AH
118582018-03-07 Alan Hayward <alan.hayward@arm.com>
11859
11860 * defs.h: Remove MAX_REGISTER_SIZE.
11861 * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE
11862 asserts.
11863 * python/py-unwind.c (pyuw_sniffer): Likewise.
11864
e0d3522b
TT
118652018-03-07 Tom Tromey <tom@tromey.com>
11866
11867 * linux-tdep.c (linux_info_proc): Update.
11868 * target.h (struct target_ops) <to_fileio_readlink>: Return
11869 optional<string>.
11870 (target_fileio_readlink): Return optional<string>.
11871 * remote.c (remote_hostio_readlink): Return optional<string>.
11872 * inf-child.c (inf_child_fileio_readlink): Return
11873 optional<string>.
11874 * target.c (target_fileio_readlink): Return optional<string>.
11875
ea005f31
AB
118762018-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
11877
11878 * regcache.c (cooked_read_test): Add riscv to the list of
11879 architectures that have a save_reggroup.
11880
e95a97d4
AA
118812018-03-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
11882
11883 * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given
11884 value is not a dynamic class object.
11885
d8344f3d
TT
118862018-03-06 Tom Tromey <tom@tromey.com>
11887
11888 * rust-exp.y: Formatting fixes.
11889
9add17f2
AB
118902018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11891
11892 * riscv-tdep.c (riscv_register_name): Remove target description
11893 support.
11894 (riscv_gdbarch_init): Remove target description check.
11895
c9486dfe
AB
118962018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11897
11898 * riscv-tdep.c: Remove 'Contributed by ...' lines from header
11899 comment.
11900 * riscv-tdep.h: Likewise.
11901
d74aff3d
AB
119022018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11903
11904 * riscv-tdep.c (riscv_pseudo_register_read): Delete.
11905 (riscv_pseudo_register_write): Delete.
11906 (riscv_gdbarch_init): Remove all use of pseudo registers.
11907
7ea78b59
SM
119082018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11909
11910 * record-btrace.c (btrace_print_lines): Replace cleanup
11911 parameter with RAII equivalents.
11912 (btrace_insn_history): Replace cleanup with RAII equivalents.
11913 * ui-out.h (make_cleanup_ui_out_list_begin_end,
11914 make_cleanup_ui_out_tuple_begin_end): Remove.
11915 * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end,
11916 make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end,
11917 make_cleanup_ui_out_list_begin_end): Remove.
11918
53127008
SM
119192018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11920
11921 * record-btrace.c (record_btrace_maybe_mark_async_event): Change
11922 parameter types to std::vector. Use bool.
11923 (record_btrace_wait): Replace VEC(tp_t) with
11924 std::vector<thread_info *>.
11925 * common/gdb_vecs.h (unordered_remove, ordered_remove): New.
11926
228f1508
SM
119272018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11928
11929 * record-btrace.c (record_btrace_disable_callback): Remove.
11930 (struct scoped_btrace_disable): New.
11931 (record_btrace_open): Use scoped_btrace_disable.
11932
b2970c23
AB
119332018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11934
11935 * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for
11936 reading values from registers.
11937
fb294655
AB
119382018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11939
11940 * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz
11941 where appropriate.
11942
cab5bb9d
AB
119432018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11944
11945 * riscv-tdep.c (riscv_print_arg_location): Add header comment,
11946 change parameter type. Use GDB's print functions, and use
11947 core_addr_to_string where appropriate.
11948 (riscv_push_dummy_call): Use core_addr_to_string where
11949 appropriate, update call to riscv_print_arg_location, and reindent
11950 a few lines.
11951 (riscv_return_value): Update call to riscv_print_arg_location.
11952
dbbb1059
AB
119532018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11954 Tim Newsome <tim@sifive.com>
11955 Albert Ou <a0u@eecs.berkeley.edu>
11956 Darius Rad <darius@bluespec.com>
11957
11958 * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o
11959 (HFILES_NO_SRCDIR): Add riscv-tdep.h.
11960 (ALLDEPFILES): Add riscv-tdep.c
11961 * configure.tgt: Add riscv support.
11962 * riscv-tdep.c: New file.
11963 * riscv-tdep.h: New file.
11964 * NEWS: Mention new target.
11965 * MAINTAINERS: Add entry for riscv.
11966
5dc43913
AB
119672018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11968
11969 * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized
11970 fields within aggregates.
11971
3dea1ef7
SM
119722018-03-04 Simon Marchi <simon.marchi@polymtl.ca>
11973
11974 * record-btrace.c (btrace_print_lines): Change type of flags to
11975 gdb_disassembly_flags.
11976
7efba073
JB
119772018-03-04 John Baldwin <jhb@FreeBSD.org>
11978
11979 * fbsd-nat.c: Include "inf-ptrace.h".
11980 (USE_SIGTRAP_SIGINFO): Conditionally define.
11981 [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function.
11982 (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap".
11983 [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New
11984 function.
11985 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint):
11986 Likewise.
11987 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint):
11988 Likewise.
11989 (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set
11990 "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint",
11991 "supports_stopped_by_hw_breakpoint" target methods.
11992
386a8676
JB
119932018-03-04 John Baldwin <jhb@FreeBSD.org>
11994
11995 * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat".
11996 * fbsd-nat.c (debug_fbsd_nat): New variable.
11997 (show_fbsd_nat_debug): New function.
11998 (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled.
11999 (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command.
12000
12279366
JB
120012018-03-04 John Baldwin <jhb@FreeBSD.org>
12002
12003 * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function.
12004 * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New
12005 prototype.
12006 * x86-nat.c (x86_stopped_by_hw_breakpoint): New function.
12007 (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target
12008 method.
12009
54693cf5
SM
120102018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
12011
12012 * common/gdb_vecs.c (free_char_ptr_vec): Remove.
12013 * common/gdb_vecs.h (free_char_ptr_vec): Remove.
12014
ccb2231c
SM
120152018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
12016
12017 * charset.c (struct charset_vector): New.
12018 (charsets): Change type to charset_vector.
12019 (find_charset_names): Adjust.
12020 (add_one): Adjust.
12021 (_initialize_charset): Adjust.
12022
6fb16ce6
SM
120232018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
12024
12025 * progspace.h (struct program_space) <deleted_solibs>: Change
12026 type to std::vector<std::string>.
12027 * progspace.c (clear_program_space_solib_cache): Adjust.
12028 * breakpoint.c (print_solib_event): Adjust.
12029 (check_status_catch_solib): Adjust.
12030 * solib.c (update_solib_list): Adjust.
12031 * ui-out.h (class ui_out) <field_string>: New overload.
12032 * ui-out.c (ui_out::field_string): New overload.
12033
564b1e3f
SM
120342018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
12035
12036 * progspace.h (struct program_space): Add constructor and
12037 destructor, initialize fields.
12038 (add_program_space): Remove.
12039 * progspace.c (add_program_space): Rename to...
12040 (program_space::program_space): ... this.
12041 (release_program_space): Rename to...
12042 (program_space::~program_space): ... this.
12043 (delete_program_space): Use delete to delete program_space.
12044 (initialize_progspace): Use new to allocate program_space.
12045 * inferior.c (add_inferior_with_spaces): Likewise.
12046 (clone_inferior_command): Likewise.
12047 * infrun.c (follow_fork_inferior): Likewise.
12048 (handle_vfork_child_exec_or_exit): Likewise.
12049
e80aaf61
SM
120502018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
12051
12052 * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove.
12053 (delim_string_to_char_ptr_vec): Return std::vector of
12054 gdb::unique_xmalloc_ptr.
12055 (dirnames_to_char_ptr_vec_append): Take std::vector of
12056 gdb::unique_xmalloc_ptr.
12057 (dirnames_to_char_ptr_vec): Return std::vector of
12058 gdb::unique_xmalloc_ptr.
12059 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append):
12060 Take std::vector of gdb::unique_xmalloc_ptr, adjust the code.
12061 (delim_string_to_char_ptr_vec): Return an std::vector of
12062 gdb::unique_xmalloc_ptr, adjust the code.
12063 (dirnames_to_char_ptr_vec_append): Take an std::vector of
12064 gdb::unique_xmalloc_ptr, adjust the code.
12065 (dirnames_to_char_ptr_vec): Return an std::vector of
12066 gdb::unique_xmalloc_ptr, adjust the code.
12067 * auto-load.c (auto_load_safe_path_vec): Change type to
12068 std::vector of gdb::unique_xmalloc_ptr.
12069 (auto_load_expand_dir_vars): Return an std::vector of
12070 gdb::unique_xmalloc_ptr, adjust the code.
12071 (auto_load_safe_path_vec_update): Adjust.
12072 (filename_is_in_auto_load_safe_path_vec): Adjust.
12073 (auto_load_objfile_script_1): Adjust.
12074 * build-id.c (build_id_to_debug_bfd): Adjust.
12075 * linux-thread-db.c (thread_db_load_search): Adjust.
12076 * source.c (add_path): Adjust.
12077 (openp): Adjust.
12078 * symfile.c (find_separate_debug_file): Adjust.
12079 * utils.c (do_free_char_ptr_vec): Remove.
12080 (make_cleanup_free_char_ptr_vec): Remove.
12081
ab818ade
SDJ
120822018-03-01 Sergio Durigan Junior <sergiodj@redhat.com>
12083
12084 PR gdb/22907
12085 * common/pathstuff.c: Conditionally include "<windows.h>".
12086
e1e6f073
GS
120872018-03-01 Georg Sauthoff <mail@georg.so>
12088
12089 PR gdb/22888
12090 * gcore.in: Quote variables and switch interpreter to bash.
12091
c7b15a66
TT
120922018-03-01 Tom Tromey <tom@tromey.com>
12093
12094 * dwarf2read.c (alloc_discriminant_info): Fix default_index
12095 assertion. Add assertion for discriminant_index.
12096 (quirk_rust_enum): Use correct base type name in univariant case.
12097
0cb7c7b0
SM
120982018-03-01 Simon Marchi <simon.marchi@ericsson.com>
12099
12100 * record.c (get_call_history_modifiers): Return a
12101 record_print_flags.
12102 (cmd_record_call_history): Adjust.
12103 * record-btrace.c (record_btrace_call_history): Adjust.
12104 (record_btrace_call_history_range): Adjust.
12105 (record_btrace_call_history_from): Adjust.
12106 * target-debug.h (target_debug_print_record_print_flags): New.
12107 * target-delegates.c: Re-generate.
12108 * target.c (target_call_history): Change flags type.
12109 (target_call_history_from): Likewise.
12110 (target_call_history_range): Likewise.
12111 * target.h (struct target_ops) <target_call_history>: Likewise.
12112 (target_call_history_from): Likewise.
12113 (target_call_history_range): Likewise.
12114
25e3c82c
SDJ
121152018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
12116 Simon Marchi <simon.marchi@polymtl.ca>
12117
12118 * common/common-utils.c: Include "sys/stat.h".
12119 (is_regular_file): Move here from "source.c"; change return
12120 type to "bool".
12121 * common/common-utils.h (is_regular_file): New prototype.
12122 * common/pathstuff.c (contains_dir_separator): New function.
12123 * common/pathstuff.h (contains_dir_separator): New prototype.
12124 * source.c: Don't include "sys/stat.h".
12125 (is_regular_file): Move to "common/common-utils.c".
12126
b4987c95
SDJ
121272018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
12128
12129 * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c".
12130 (HFILES_NO_SRCDIR): Add "common/pathstuff.h".
12131 * auto-load.c: Include "common/pathstuff.h".
12132 * common/common-def.h (current_directory): Move here.
12133 * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New
12134 function.
12135 * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New
12136 prototype.
12137 * common/pathstuff.c: New file.
12138 * common/pathstuff.h: New file.
12139 * compile/compile.c: Include "common/pathstuff.h".
12140 * defs.h (current_directory): Move to "common/common-defs.h".
12141 * dwarf2read.c: Include "common/pathstuff.h".
12142 * exec.c: Likewise.
12143 * guile/scm-safe-call.c: Likewise.
12144 * linux-thread-db.c: Likewise.
12145 * main.c: Likewise.
12146 * nto-tdep.c: Likewise.
12147 * objfiles.c: Likewise.
12148 * source.c: Likewise.
12149 * symtab.c: Likewise.
12150 * utils.c: Include "common/pathstuff.h".
12151 (gdb_realpath): Move to "common/pathstuff.c".
12152 (gdb_realpath_keepfile): Likewise.
12153 (gdb_abspath): Likewise.
12154 * utils.h (gdb_realpath): Move to "common/pathstuff.h".
12155 (gdb_realpath_keepfile): Likewise.
12156 (gdb_abspath): Likewise.
12157
f169cfdc
JB
121582018-02-28 John Baldwin <jhb@FreeBSD.org>
12159
12160 * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a
12161 wildcard process pid for super_resume for kernels with a
12162 specific bug.
12163
e05cac70
PM
121642018-02-27 Phil Muldoon <pmuldoon@redhat.com>
12165
12166 * compile/compile.c (get_args): Add additional comments
12167 explaining function.
12168
55089490
TT
121692018-02-27 Simon Marchi <simon.marchi@polymtl.ca>
12170 Tom Tromey <tom@tromey.com>
12171
12172 * target.h (memory_write_request_s): Remove typedef. Don't define
12173 VEC.
12174 (target_write_memory_blocks): Change argument to std::vector.
12175 (struct memory_write_request): Add constructor.
12176 * target-memory.c (compare_block_starting_address): Return bool.
12177 Change argument types.
12178 (claim_memory): Change arguments to use std::vector.
12179 (split_regular_and_flash_blocks, blocks_to_erase)
12180 (compute_garbled_blocks): Likewise.
12181 (cleanup_request_data, cleanup_write_requests_vector): Remove.
12182 (target_write_memory_blocks): Change argument to std::vector.
12183 * symfile.c (struct load_section_data): Add constructor and
12184 destructor. Use std::vector for "requests".
12185 (struct load_progress_data): Add initializers.
12186 (load_section_callback): Update. Use "new".
12187 (clear_memory_write_data): Remove.
12188 (generic_load): Update.
12189
0c305b61
AH
121902018-02-27 Alan Hayward <alan.hayward@arm.com>
12191
12192 * arch/aarch64.h: Use common/tdesc.h.
12193
c5196c92
MR
121942018-02-26 Maciej W. Rozycki <macro@mips.com>
12195
12196 * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD
12197 architecture with a 64-bit ABI.
12198
37c33887
MR
121992018-02-26 Maciej W. Rozycki <macro@mips.com>
12200
12201 * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination
12202 ahead of target description loading.
12203
d4dd3282
TT
122042018-02-26 Tom Tromey <tom@tromey.com>
12205
12206 * stack.c (backtrace_command_1): Update.
12207 * python/python-internal.h (gdbpy_apply_frame_filter): Change type
12208 of "flags".
12209 * python/py-framefilter.c (py_print_frame)
12210 (gdbpy_apply_frame_filter): Change type of "flags".
12211 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type
12212 of "flags".
12213 (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals)
12214 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update.
12215 * extension.h (enum frame_filter_flag): Rename from
12216 frame_filter_flags.
12217 (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE.
12218 (apply_ext_lang_frame_filter): Change type of "flags".
12219 * extension.c (apply_ext_lang_frame_filter): Change type of
12220 "flags".
12221 * extension-priv.h (struct extension_language_ops)
12222 <apply_frame_filter>: Change type of "flags".
12223
6893c19a
TT
122242018-02-26 Tom Tromey <tom@tromey.com>
12225
12226 PR python/16497:
12227 * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag. Fix
12228 off-by-one in py_end computation.
12229 * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle
12230 PRINT_MORE_FRAMES.
12231 * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New
12232 constant.
12233
2ddeaf8a
TT
122342018-02-26 Tom Tromey <tom@tromey.com>
12235
12236 * dwarf2read.c (struct variant_field): New.
12237 (struct nextfield) <variant>: New field.
12238 (dwarf2_add_field): Handle DW_TAG_variant_part.
12239 (dwarf2_attach_fields_to_type): Attach a discriminant_info to a
12240 discriminated union.
12241 (read_structure_type): Handle DW_TAG_variant_part.
12242 (handle_struct_member_die): New function, extracted from
12243 process_structure_scope. Handle DW_TAG_variant.
12244 (process_structure_scope): Handle discriminated unions. Call
12245 handle_struct_member_die.
12246
c9317f21
TT
122472018-02-26 Tom Tromey <tom@tromey.com>
12248
12249 * rust-lang.h (rust_last_path_segment): Declare.
12250 * rust-lang.c (rust_last_path_segment): Now public. Change
12251 contract.
12252 (struct disr_info): Remove.
12253 (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL)
12254 (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged)
12255 (rust_get_disr_info, rust_tuple_variant_type_p): Remove.
12256 (rust_enum_p, rust_enum_variant): New function.
12257 (rust_underscore_fields): Remove "offset" parameter.
12258 (rust_print_enum): New function.
12259 (rust_val_print) <TYPE_CODE_UNION>: Remove enum code.
12260 <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate.
12261 (rust_print_struct_def): Add "for_rust_enum" parameter. Handle
12262 enums.
12263 (rust_internal_print_type): New function, from rust_print_type.
12264 Remove enum code.
12265 (rust_print_type): Call rust_internal_print_type.
12266 (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>:
12267 Update enum handling.
12268 * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field.
12269 (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum)
12270 (rust_union_quirks): New functions.
12271 (process_full_comp_unit, process_full_type_unit): Call
12272 rust_union_quirks.
12273 (process_structure_scope): Update rust_unions if necessary.
12274
7c22600a
TT
122752018-02-26 Tom Tromey <tom@tromey.com>
12276
12277 * value.h (value_union_variant): Declare.
12278 * valops.c (value_union_variant): New function.
12279 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro.
12280 (struct discriminant_info): New.
12281 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New
12282 enumerator.
12283 (struct main_type) <flag_discriminated_union>: New field.
12284
15ce8941
TT
122852018-02-26 Tom Tromey <tom@tromey.com>
12286
12287 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12288 unittests/unpack-selftests.c.
12289 * unittests/unpack-selftests.c: New file.
12290 * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases.
12291
48fbe735
YQ
122922018-02-26 Yao Qi <yao.qi@linaro.org>
12293
12294 * dwarf2read.c (struct partial_die_info) <read>: New method.
12295 (read_partial_die): Remove the declaration.
12296 (load_partial_dies): Update.
12297 (partial_die_info::partial_die_info):
12298 (read_partial_die): Change it to partial_die_info::read.
12299
52356b79
YQ
123002018-02-26 Yao Qi <yao.qi@linaro.org>
12301
12302 * dwarf2read.c (struct partial_die_info) <fixup>: New method.
12303 (fixup_partial_die): Remove declaration.
12304 (scan_partial_symbols): Update.
12305 (partial_die_parent_scope): Likewise.
12306 (partial_die_full_name): Likewise.
12307 (fixup_partial_die): Change it to partial_die_info::fixup.
12308
35cc7ed7
YQ
123092018-02-26 Yao Qi <yao.qi@linaro.org>
12310
12311 * dwarf2read.c (read_partial_die): Update the declaration.
12312 (load_partial_dies): Caller update.
12313 (read_partial_die): Remove one argument abbrev_len.
12314
6f06d47b
YQ
123152018-02-26 Yao Qi <yao.qi@linaro.org>
12316
12317 * dwarf2read.c (struct partial_die_info): Add ctor, delete
12318 assignment operator.
12319 (load_partial_dies): Use ctor and copy ctor.
12320 (read_partial_die): Update.
12321 (dwarf2_cu::find_partial_die): Use ctor.
12322
d590ff25
YQ
123232018-02-26 Yao Qi <yao.qi@linaro.org>
12324
12325 * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method.
12326 (find_partial_die_in_comp_unit): Change it to
12327 dwarf2_cu::find_partial_die.
12328 (find_partial_die): Update.
12329
fd0a254f
YQ
123302018-02-26 Yao Qi <yao.qi@linaro.org>
12331
12332 * dwarf2read.c (read_partial_die): Remove the code checking abbrev
12333 is NULL.
12334
cd9983dd
YQ
123352018-02-26 Yao Qi <yao.qi@linaro.org>
12336
12337 * dwarf2read.c (load_partial_dies): Move the location of XOBNEW.
12338
f46cd62a
AH
123392018-02-26 Alan Hayward <alan.hayward@arm.com>
12340
12341 * arch/amd64.h: Use common/tdesc.h.
12342 * arch/i386.c: Likewise.
12343 * arch/i386.h: Likewise.
12344 * arch/tic6x.c: Likewise.
12345 * arch/tdesc.h: Move file from here...
12346 * common/tdesc.h: ...to here.
12347 * features/aarch64-core.c: Regenerate.
12348 * features/aarch64-fpu.c: Regenerate.
12349 * features/i386/32bit-avx.c: Regenerate.
12350 * features/i386/32bit-avx512.c: Regenerate.
12351 * features/i386/32bit-core.c: Regenerate.
12352 * features/i386/32bit-linux.c: Regenerate.
12353 * features/i386/32bit-mpx.c: Regenerate.
12354 * features/i386/32bit-pkeys.c: Regenerate.
12355 * features/i386/32bit-sse.c: Regenerate.
12356 * features/i386/64bit-avx.c: Regenerate.
12357 * features/i386/64bit-avx512.c: Regenerate.
12358 * features/i386/64bit-core.c: Regenerate.
12359 * features/i386/64bit-linux.c: Regenerate.
12360 * features/i386/64bit-mpx.c: Regenerate.
12361 * features/i386/64bit-pkeys.c: Regenerate.
12362 * features/i386/64bit-segments.c: Regenerate.
12363 * features/i386/64bit-sse.c: Regenerate.
12364 * features/i386/x32-core.c: Regenerate.
12365 * features/tic6x-c6xp.c: Regenerate.
12366 * features/tic6x-core.c: Regenerate.
12367 * features/tic6x-gp.c: Regenerate.
12368 * target-descriptions.c: Use common/tdesc.h.
12369 * target-descriptions.h: Likewise.
12370
9b292f68
TT
123712018-02-24 Tom Tromey <tom@tromey.com>
12372
12373 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
12374 (try_thread_db_load_from_dir, thread_db_load_search): Use
12375 std::string.
12376 (info_auto_load_libthread_db_compare): Return bool. Change
12377 argument types.
12378 (info_auto_load_libthread_db): Use std::vector, std::string.
12379 Remove cleanups.
12380
281d762b
TT
123812018-02-24 Tom Tromey <tom@tromey.com>
12382
12383 * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a
12384 std::string.
12385 * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a
12386 std::string*.
12387 * gdbarch.c: Rebuild.
12388 * gdbarch.h: Rebuild.
12389 * breakpoint.c (check_fast_tracepoint_sals): Use std::string.
12390 * arch-utils.h (default_fast_tracepoint_valid_at): Update.
12391 * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a
12392 std::string*.
12393
9d8780f0
SM
123942018-02-23 Simon Marchi <simon.marchi@polymtl.ca>
12395
12396 * gdbtypes.h (sect_offset): Change type to uint64_t.
12397 (sect_offset_str): New function.
12398 * dwarf2read.c (create_addrmap_from_aranges): Use
12399 sect_offset_str.
12400 (error_check_comp_unit_head): Likewise.
12401 (create_debug_type_hash_table): Likewise.
12402 (read_cutu_die_from_dwo): Likewise.
12403 (init_cutu_and_read_dies): Likewise.
12404 (init_cutu_and_read_dies_no_follow): Likewise.
12405 (process_psymtab_comp_unit_reader): Likewise.
12406 (partial_die_parent_scope): Likewise.
12407 (peek_die_abbrev): Likewise.
12408 (process_queue): Likewise.
12409 (dwarf2_physname): Likewise.
12410 (read_namespace_alias): Likewise.
12411 (read_import_statement): Likewise.
12412 (create_dwo_cu_reader): Likewise.
12413 (create_cus_hash_table): Likewise.
12414 (lookup_dwo_cutu): Likewise.
12415 (inherit_abstract_dies): Likewise.
12416 (read_func_scope): Likewise.
12417 (read_call_site_scope): Likewise.
12418 (dwarf2_add_member_fn): Likewise.
12419 (read_common_block): Likewise.
12420 (read_module_type): Likewise.
12421 (read_typedef): Likewise.
12422 (read_subrange_type): Likewise.
12423 (load_partial_dies): Likewise.
12424 (read_partial_die): Likewise.
12425 (find_partial_die): Likewise.
12426 (read_str_index): Likewise.
12427 (dwarf2_string_attr): Likewise.
12428 (build_error_marker_type): Likewise.
12429 (lookup_die_type): Likewise.
12430 (dump_die_shallow): Likewise.
12431 (follow_die_ref): Likewise.
12432 (dwarf2_fetch_die_loc_sect_off): Likewise.
12433 (dwarf2_fetch_constant_bytes): Likewise.
12434 (follow_die_sig): Likewise.
12435 (get_signatured_type): Likewise.
12436 (get_DW_AT_signature_type): Likewise.
12437 (dwarf2_find_containing_comp_unit): Likewise.
12438 (set_die_type): Likewise.
12439
8ec57239
JB
124402018-02-21 John Baldwin <jhb@FreeBSD.org>
12441
12442 * arch/aarch64.c: Include "common-defs.h".
12443 * arch/amd64.c: Likewise.
12444 * arch/i386.c: Likewise.
12445
3eac2b65
TT
124462018-02-21 Tom Tromey <tom@tromey.com>
12447
12448 * value.h: (extract_field_op): Update.
12449 * eval.c (extract_field_op): Return a const char *.
12450 * expression.h (parse_expression_for_completion): Update.
12451 * completer.c (complete_expression): Update.
12452 (add_struct_fields): Make fieldname const.
12453 * parse.c (expout_completion_name): Now a unique_xmalloc_ptr.
12454 (mark_completion_tag, parse_exp_in_context_1): Update.
12455 (parse_expression_for_completion): Change "name" to
12456 unique_xmalloc_ptr*.
12457
6ccb583f
TT
124582018-02-21 Tom Tromey <tom@tromey.com>
12459
12460 * infcall.c (call_function_by_hand_dummy): Use std::vector.
12461
c113ed0c
YQ
124622018-02-21 Yao Qi <yao.qi@linaro.org>
12463
12464 * avr-tdep.c (avr_read_pc): Change parameter type to
12465 readable_regcache.
12466 * gdbarch.sh (read_pc): Likewise.
12467 * gdbarch.c: Re-generated.
12468 * gdbarch.h: Re-generated.
12469 * hppa-tdep.c (hppa_read_pc): Change parameter type to
12470 readable_regcache.
12471 * ia64-tdep.c (ia64_read_pc): Likewise.
12472 * mips-tdep.c (mips_read_pc): Likewise.
12473 * spu-tdep.c (spu_read_pc): Likewise.
12474
4c74fe6b
YQ
124752018-02-21 Yao Qi <yao.qi@linaro.org>
12476
12477 * Makefile.in (COMMON_SFILES): Add regcache-dump.c
12478 * regcache-dump.c: New file.
12479 * regcache.c: Move register_dump to regcache-dump.c.
12480 (maintenance_print_registers): Likewise.
12481 (maintenance_print_raw_registers): Likewise.
12482 (maintenance_print_cooked_registers): Likewise.
12483 (maintenance_print_register_groups): Likewise.
12484 (maintenance_print_remote_registers): Likewise.
12485 (_initialize_regcache): Likewise.
12486 * regcache.h (register_dump): Moved from regcache.c.
12487
796bb026
YQ
124882018-02-21 Yao Qi <yao.qi@linaro.org>
12489
12490 * regcache.c (regcache::regcache): Update.
12491 (regcache::invalidate): Move it to detached_regcache::invalidate.
12492 (get_thread_arch_aspace_regcache): Update.
12493 (regcache::raw_update): Update.
12494 (regcache::cooked_read): Remove some code.
12495 (regcache::cooked_read_value): Likewise.
12496 (regcache::raw_write): Remove assert on m_readonly_p.
12497 (regcache::raw_supply_integer): Move it to
12498 detached_regcache::raw_supply_integer.
12499 (regcache::raw_supply_zeroed): Likewise.
12500 * regcache.h (detached_regcache) <raw_supply_integer>: New
12501 declaration.
12502 <raw_supply_zeroed, invalidate>: Likewise.
12503 (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed.
12504 <invalidate>: Likewise.
12505 <m_readonly_p>: Removed.
12506
215c69dc
YQ
125072018-02-21 Yao Qi <yao.qi@linaro.org>
12508
12509 * infcmd.c (get_return_value): Let stop_regs point to
12510 get_current_regcache.
12511 * regcache.c (regcache::regcache): Remove.
12512 (register_dump_reg_buffer): New class.
12513 (regcache_print): Adjust.
12514 * regcache.h (regcache): Remove constructors.
12515
f3384e66
YQ
125162018-02-21 Yao Qi <yao.qi@linaro.org>
12517
12518 * regcache.c (class register_dump): New class.
12519 (register_dump_regcache, register_dump_none): New class.
12520 (register_dump_remote, register_dump_groups): New class.
12521 (regcache_print): Update.
12522 * regcache.h (regcache_dump_what): Move it to regcache.c.
12523 (regcache) <dump>: Remove.
12524
c8ec2f33
YQ
125252018-02-21 Yao Qi <yao.qi@linaro.org>
12526
12527 * jit.c (struct jit_unwind_private) <regcache>: Change its type to
12528 reg_buffer_rw *.
12529 (jit_unwind_reg_set_impl): Call raw_supply.
12530 (jit_frame_sniffer): Use reg_buffer_rw.
12531 * record-full.c (record_full_core_regbuf): Change its type.
12532 (record_full_core_open_1): Use reg_buffer_rw.
12533 (record_full_close): Likewise.
12534 (record_full_core_fetch_registers): Use regcache->raw_supply.
12535 (record_full_core_store_registers): Likewise.
12536 * regcache.c (regcache::get_register_status): Move it to
12537 reg_buffer.
12538 (regcache_raw_set_cached_value): Remove.
12539 (regcache::raw_set_cached_value): Remove.
12540 (regcache::raw_write): Call raw_supply.
12541 (regcache::raw_supply): Move it to reg_buffer_rw.
12542 * regcache.h (regcache_raw_set_cached_value): Remove.
12543 (reg_buffer_rw): New class.
12544
daf6667d
YQ
125452018-02-21 Yao Qi <yao.qi@linaro.org>
12546
12547 * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use
12548 readonly_detached_regcache.
12549 (dummy_frame_prev_register): Use regcache->cooked_read.
12550 * frame.c (frame_save_as_regcache): Change return type.
12551 (frame_pop): Update.
12552 * frame.h (frame_save_as_regcache): Update declaration.
12553 * inferior.h (get_infcall_suspend_state_regcache): Update
12554 declaration.
12555 * infrun.c (infcall_suspend_state) <registers>: use
12556 readonly_detached_regcache.
12557 (save_infcall_suspend_state): Don't use regcache_dup.
12558 (get_infcall_suspend_state_regcache): Change return type.
12559 * linux-fork.c (struct fork_info) <savedregs>: Change to
12560 readonly_detached_regcache.
12561 <pc>: New field.
12562 (fork_save_infrun_state): Don't use regcache_dup.
12563 (info_checkpoints_command): Adjust.
12564 * mi/mi-main.c (register_changed_p): Update declaration.
12565 (mi_cmd_data_list_changed_registers): Use
12566 readonly_detached_regcache.
12567 (register_changed_p): Change parameter type to
12568 readonly_detached_regcache.
12569 * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use
12570 readonly_detached_regcache.
12571 (ppu2spu_sniffer): Construct a new readonly_detached_regcache.
12572 * regcache.c (readonly_detached_regcache::readonly_detached_regcache):
12573 New.
12574 (regcache::save): Move it to reg_buffer.
12575 (regcache::restore): Change parameter type.
12576 (regcache_dup): Remove.
12577 * regcache.h (reg_buffer) <save>: New method.
12578 (readonly_detached_regcache): New class.
12579 * spu-tdep.c (spu2ppu_cache) <regcache>: Use
12580 readonly_detached_regcache.
12581 (spu2ppu_sniffer): Construct a new readonly_detached_regcache.
12582
fc5b8736
YQ
125832018-02-21 Yao Qi <yao.qi@linaro.org>
12584
12585 * frame.c (frame_save_as_regcache): Use regcache method save.
12586 (frame_pop): Use regcache method restore.
12587 * infrun.c (restore_infcall_suspend_state): Likewise.
12588 * linux-fork.c (fork_load_infrun_state): Likewise.
12589 * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method
12590 save.
12591 * regcache.c (regcache_save): Remove.
12592 (regcache::restore): More asserts.
12593 (regcache_cpy): Remove.
12594 * regcache.h (regcache_save): Remove the declaration.
12595 (regcache::restore): Move from private to public.
12596 Remove the friend declaration of regcache_cpy.
12597 (regcache_cpy): Remove declaration.
12598
849d0ba8
YQ
125992018-02-21 Yao Qi <yao.qi@linaro.org>
12600
12601 * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change
12602 parameter type to 'readable_regcache *'.
12603 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
12604 * arm-tdep.c (arm_neon_quad_read): Likewise.
12605 (arm_pseudo_read): Likewise.
12606 * avr-tdep.c (avr_pseudo_register_read): Likewise.
12607 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
12608 * frv-tdep.c (frv_pseudo_register_read): Likewise.
12609 * gdbarch.c: Re-generated.
12610 * gdbarch.h: Re-generated.
12611 * gdbarch.sh (pseudo_register_read): Change parameter type to
12612 'readable_regcache *'.
12613 (pseudo_register_read_value): Likewise.
12614 * h8300-tdep.c (pseudo_from_raw_register): Likewise.
12615 (h8300_pseudo_register_read): Likewise.
12616 * hppa-tdep.c (hppa_pseudo_register_read): Likewise.
12617 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
12618 (i386_pseudo_register_read_into_value): Likewise.
12619 (i386_pseudo_register_read_value): Likewise.
12620 * i386-tdep.h (i386_pseudo_register_read_into_value): Update
12621 declaration.
12622 * ia64-tdep.c (ia64_pseudo_register_read): Likewise.
12623 * m32c-tdep.c (m32c_raw_read): Likewise.
12624 (m32c_read_flg): Likewise.
12625 (m32c_banked_register): Likewise.
12626 (m32c_banked_read): Likewise.
12627 (m32c_sb_read): Likewise.
12628 (m32c_part_read): Likewise.
12629 (m32c_cat_read): Likewise.
12630 (m32c_r3r2r1r0_read): Likewise.
12631 (m32c_pseudo_register_read): Likewise.
12632 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
12633 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
12634 (mep_pseudo_cr64_read): Likewise.
12635 (mep_pseudo_register_read): Likewise.
12636 * mips-tdep.c (mips_pseudo_register_read): Likewise.
12637 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
12638 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
12639 * regcache.c (regcache::raw_read): Move it to readable_regcache.
12640 (regcache::cooked_read): Likewise.
12641 (regcache::cooked_read_value): Likewise.
12642 (regcache_cooked_read_signed):
12643 (regcache::cooked_read): Likewise.
12644 * regcache.h (readable_regcache): New class.
12645 (regcache): Inherit readable_regcache. Move some methods to
12646 readable_regcache.
12647 * rl78-tdep.c (rl78_pseudo_register_read): Change
12648 parameter type to 'readable_regcache *'.
12649 * rs6000-tdep.c (do_regcache_raw_read): Remove.
12650 (e500_pseudo_register_read): Change parameter type to
12651 'readable_regcache *'.
12652 (dfp_pseudo_register_read): Likewise.
12653 (vsx_pseudo_register_read): Likewise.
12654 (efpr_pseudo_register_read): Likewise.
12655 * s390-tdep.c (s390_pseudo_register_read): Likewise.
12656 * sh-tdep.c (sh_pseudo_register_read): Likewise.
12657 * sh64-tdep.c (pseudo_register_read_portions): Likewise.
12658 (sh64_pseudo_register_read): Likewise.
12659 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
12660 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
12661 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
12662 (spu_pseudo_register_read): Likewise.
12663 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
12664 (xtensa_pseudo_register_read): Likewise.
12665
31716595
YQ
126662018-02-21 Yao Qi <yao.qi@linaro.org>
12667
12668 * regcache.c (regcache::regcache): Call reg_buffer ctor.
12669 (regcache::arch): Move it to reg_buffer::arch.
12670 (regcache::register_buffer): Likewise.
12671 (regcache::assert_regnum): Likewise.
12672 (regcache::num_raw_registers): Likewise.
12673 * regcache.h (reg_buffer): New class.
12674 (regcache): Inherit reg_buffer.
12675
7104e59b
SM
126762018-02-20 Simon Marchi <simon.marchi@ericsson.com>
12677
12678 * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
12679 gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF.
12680
2d8adcbd
MM
126812018-02-20 Markus Metzger <markus.t.metzger@intel.com>
12682
12683 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp.
12684
b5884fa7
AH
126852018-02-19 Alan Hayward <alan.hayward@arm.com>
12686
12687 * Makefile.in: (COMMON_SFILES): Add common/*.c files.
12688 (SFILES): Remove common/*.c files.
12689 (COMMON_OBS): Remove some *.o files built from common/*.c files.
12690 * common/common.host: Add common reference.
12691 * configure.ac: Likewise.
12692 * configure: Regenerate.
12693
fd90ace4
YQ
126942018-02-16 Yao Qi <yao.qi@linaro.org>
12695
12696 * block.c (block_namespace_info): Inherit allocate_on_obstack.
12697 (block_initialize_namespace): Use new.
12698 * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack.
12699 (dwarf2_free_objfile): Use delete.
12700 * gdbtypes.c (type_pair): Inherit allocate_on_obstack.
12701 (copy_type_recursive): Use new.
12702 * gdb_obstack.h (allocate_on_obstack): New.
12703
85046ae2
YQ
127042018-02-15 Yao Qi <yao.qi@linaro.org>
12705
12706 PR gdb/22849
12707 * inferior.c (exit_inferior_1): Reset inf->control.
12708
355c559b
JB
127092018-02-15 Joel Brobecker <brobecker@adacore.com>
12710
12711 * ada-lang.c (ada_to_fixed_value_create): Delete advance
12712 declaration.
12713
980548fd
PA
127142018-02-14 Pedro Alves <palves@redhat.com>
12715
12716 * frame-unwind.c (frame_unwind_try_unwinder): Always call
12717 frame_cleanup_after_sniffer on exception.
12718
692d6f97
TT
127192018-02-14 Tom Tromey <tom@tromey.com>
12720
12721 * solist.h (struct target_so_ops) <bfd_open>: Make pathname
12722 const.
12723 (solib_bfd_open): Make pathname const.
12724 * solib.c (solib_bfd_open): Make pathname const.
12725 * solib-spu.c (spu_bfd_fopen): Make name const.
12726 (spu_bfd_open): Make pathname const.
12727 * solib-darwin.c (darwin_bfd_open): Make pathname const.
12728 * solib-aix.c (solib_aix_bfd_open): Make pathname const.
12729
e0cc99a6
TT
127302018-02-14 Tom Tromey <tom@tromey.com>
12731
12732 * symfile.c (symfile_bfd_open): Update.
12733 * source.h (openp, source_full_path_of, find_and_open_source):
12734 Change argument type to unique_xmalloc_ptr.
12735 * source.c (openp): Take a unique_xmalloc_ptr.
12736 (source_full_path_of, find_and_open_source): Likewise.
12737 (open_source_file, symtab_to_fullname): Update.
12738 * solist.h (struct target_so_ops) <find_and_open_solib>: Take a
12739 unique_xmalloc_ptr.
12740 * solib.c (solib_find_1): Use unique_xmalloc_ptr.
12741 (exec_file_find): Update.
12742 * psymtab.c (psymtab_to_fullname): Update.
12743 * nto-tdep.h (nto_find_and_open_solib): Update.
12744 * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a
12745 unique_xmalloc_ptr.
12746 * exec.c (exec_file_attach): Update.
12747 * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr.
12748 * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr.
12749
b46a8d7c
TT
127502018-02-14 Tom Tromey <tom@tromey.com>
12751
12752 * solib.c: Include source.h.
12753 * nto-tdep.c: Include source.h.
12754 * mi/mi-cmd-env.c: Include source.h.
12755 * infcmd.c: Include source.h.
12756 * exec.c: Include source.h.
12757 * defs.h (enum openp_flag, openp, source_full_path_of, mod_path)
12758 (add_path, directory_switch, source_path, init_source_path): Move
12759 declarations...
12760 * source.h (enum openp_flag, openp, source_full_path_of, mod_path)
12761 (add_path, directory_switch, source_path, init_source_path):
12762 ...here.
12763
797bc1cb
TT
127642018-02-14 Tom Tromey <tom@tromey.com>
12765
12766 * solist.h (exec_file_find, solib_find): Return
12767 unique_xmalloc_ptr.
12768 (solib_bfd_fopen): Take a const char *.
12769 * solib.c (solib_find_1): Return unique_xmalloc_ptr.
12770 (exec_file_find, solib_find): Likewise.
12771 (solib_bfd_fopen): Do not take ownership of "pathname".
12772 (solib_bfd_open): Use unique_xmalloc_ptr.
12773 * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr.
12774 * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr.
12775 * infrun.c (follow_exec): Use unique_xmalloc_ptr.
12776 * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr.
12777
f98b2e33
JB
127782018-02-14 Joel Brobecker <brobecker@adacore.com>
12779
12780 * ada-lang.c (name_match_type_from_name): Remove reference to
12781 ada_name_for_lookup in function's documentation.
12782 * ada-lang.h (ada_name_for_lookup): Delete declaration.
12783
24b9144d
SM
127842018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
12785
12786 * defs.h (enum openp_flags): New enum.
12787 (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH):
12788 Move to enum openp_flags.
12789 (openp_flags): New enum flags.
12790 (openp): Change parameter type to openp_flags.
12791 * source.c (openp): Change parameter type to openp_flags.
12792 * cli/cli-cmds.c (find_and_open_script): Use openp_flags.
12793 * dwarf2read.c (try_open_dwop_file): Use openp_flags.
12794
387cd15b
SM
127952018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
12796
12797 * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show
12798 per-command.
12799
b303c6f6
AB
128002018-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
12801
12802 * dwarf2read.c (dwarf2_release_queue): Delete function, move body
12803 into...
12804 (class dwarf2_queue_guard): ...the destructor of this new class.
12805 (dw2_do_instantiate_symtab): Create instance of the new class
12806 dwarf2_queue_guard, remove cleanup.
12807
9c3630e9
TT
128082018-02-09 Tom Tromey <tom@tromey.com>
12809
12810 * source.c (find_source_lines): Don't reference past the end of
12811 the vector.
12812
c4e12631
MM
128132018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12814
12815 * remote.c (remote_btrace_maybe_reopen): Change error message.
12816 * btrace.c (btrace_enable): Likewise.
12817 (parse_xml_btrace): Likewise.
12818 (parse_xml_btrace_conf): Likewise.
12819
88711fbf
MM
128202018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12821
12822 * nat/linux-btrace.c (diagnose_perf_event_open_fail): New.
12823 (linux_enable_pt, linux_enable_bts): Call
12824 diagnose_perf_event_open_fail.
12825
17ad2a4f
MM
128262018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12827
12828 * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message.
12829 Remove parameter and change return type. Update callers. Move it.
12830 (linux_enable_bts, linux_enable_pt): Improve error message.
12831 (linux_enable_pt): Remove zero buffer size check.
12832 (linux_enable_btrace): Improve error messages. Remove NULL return
12833 check.
12834
de6242d3
MM
128352018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12836
12837 * btrace.c (btrace_enable): Remove target_supports_btrace call.
12838 * nat/linux-btrace.c (perf_event_pt_event_type): Move.
12839 (kernel_supports_bts, kernel_supports_pt, linux_supports_bts)
12840 (linux_supports_pt, linux_supports_btrace): Remove.
12841 (linux_enable_bts): Call cpu_supports_bts.
12842 * nat/linux-btrace.h (linux_supports_btrace): Remove.
12843 * remote.c (remote_supports_btrace): Remove.
12844 (init_remote_ops): Remove remote_supports_btrace.
12845 * target-delegates.c: Regenerated.
12846 * target.c (target_supports_btrace): Remove.
12847 * target.h (target_ops) <to_supports_btrace>: Remove
12848 (target_supports_btrace): Remove.
12849 * x86-linux-nat.c (x86_linux_create_target): Remove
12850 linux_supports_btrace.
12851
9ee23a85
MM
128522018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12853
12854 * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling
12855 btrace failed.
12856 * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling
12857 exception and use message in own exception.
12858
5c3284c1
MM
128592018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12860
12861 * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h.
12862 (perf_event_pt_event_type): Use gdb_file_up.
12863 (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr,
12864 scoped_fd, and scoped_mmap.
12865
84696f37
MM
128662018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12867
12868 * common/scoped_mmap.h: New.
12869 * unittests/scoped_mmap-selftest.c: New.
12870 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12871 unittests/scoped_mmap-selftest.c.
12872
ea4a0888
MM
128732018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12874
12875 * common/scoped_fd.h: New.
12876 * unittests/scoped_fd-selftest.c: New.
12877 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12878 unittests/scoped_fd-selftest.c.
12879
869e8290
TT
128802018-02-09 Tom Tromey <tom@tromey.com>
12881
12882 * auto-load.c (auto_load_section_scripts): Use
12883 gdb::unique_xmalloc_ptr.
12884
a37a2ae7
TT
128852018-02-09 Tom Tromey <tom@tromey.com>
12886
12887 * auto-load.c (execute_script_contents): Use std::string.
12888
4e725347
JB
128892018-02-09 Joel Brobecker <brobecker@adacore.com>
12890
12891 * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new
12892 Python function, rather than a new command.
12893
9a897d43
TT
128942018-02-08 Tom Tromey <tom@tromey.com>
12895
12896 * solib.c (solib_find_1): Use std::string.
12897 (solib_bfd_fopen): Use unique_xmalloc_ptr.
12898
58ef3771
TT
128992018-02-08 Tom Tromey <tom@tromey.com>
12900
12901 * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr.
12902
a9abc434
TT
129032018-02-08 Tom Tromey <tom@tromey.com>
12904
12905 * source.c (find_source_lines): Use gdb::def_vector.
12906
84f27c6f
TT
129072018-02-08 Tom Tromey <tom@tromey.com>
12908
12909 * macrocmd.c (struct temporary_macro_definition): New.
12910 (macro_define_command): Use temporary_macro_definition. Remove
12911 cleanups.
12912 (free_macro_definition_ptr): Remove.
12913
0354904b
TT
129142018-02-08 Tom Tromey <tom@tromey.com>
12915
12916 * macroexp.c (maybe_expand): Use std::string.
12917
1739cf24
TT
129182018-02-08 Tom Tromey <tom@tromey.com>
12919
12920 * macroexp.c (struct macro_buffer): Add initializers for some
12921 members.
12922 (init_buffer, init_shared_buffer, free_buffer)
12923 (free_buffer_return_text): Remove.
12924 (macro_buffer): New constructors.
12925 (~macro_buffer): New destructor.
12926 (macro_buffer::set_shared): New method.
12927 (macro_buffer::resize_buffer, macro_buffer::appendc)
12928 (macro_buffer::appendmem): Now methods, not free functions.
12929 (set_token, append_tokens_without_splicing, stringify)
12930 (macro_stringify): Update.
12931 (gather_arguments): Change return type. Remove argc_p argument,
12932 add args_ptr argument. Use std::vector.
12933 (substitute_args): Remove argc argument. Accept std::vector.
12934 (expand): Update. Use std::vector.
12935 (scan, macro_expand, macro_expand_next): Update.
12936
f6c2623e
TT
129372018-02-08 Tom Tromey <tom@tromey.com>
12938
12939 * symtab.c (default_collect_symbol_completion_matches_break_on):
12940 Use unique_xmalloc_ptr.
12941 * macroscope.h: (sal_macro_scope, user_macro_scope)
12942 (default_macro_scope): Return unique_xmalloc_ptr.
12943 * macroscope.c (sal_macro_scope, user_macro_scope)
12944 (default_macro_scope): Return unique_xmalloc_ptr.
12945 * macroexp.h (macro_expand, macro_expand_once): Return
12946 unique_xmalloc_ptr.
12947 * macroexp.c (macro_expand, macro_expand_once): Return
12948 unique_xmalloc_ptr.
12949 * macrocmd.c (macro_expand_command, macro_expand_once_command)
12950 (info_macro_command, info_macros_command): Use
12951 unique_xmalloc_ptr.
12952 * compile/compile-c-support.c (write_macro_definitions): Use
12953 unique_xmalloc_ptr.
12954 * c-exp.y (c_parse): Use unique_xmalloc_ptr.
12955
c2e0e465
SM
129562018-02-07 Simon Marchi <simon.marchi@ericsson.com>
12957
12958 * value.c (value_static_field): Assign field type instead of
12959 containing type when returning an optimized out value.
12960
3f8c94b4
YQ
129612018-02-06 Yao Qi <yao.qi@linaro.org>
12962
12963 * ft32-tdep.c (ft32_read_pc): Remove.
12964 (ft32_write_pc): Remove.
12965 (ft32_gdbarch_init): Update.
12966 * m32r-tdep.c (m32r_read_pc): Remove.
12967 (m32r_gdbarch_init): Update.
12968 * mep-tdep.c (mep_read_pc): Remove.
12969 (mep_gdbarch_init): Update.
12970 * microblaze-tdep.c (microblaze_write_pc): Remove.
12971 (microblaze_gdbarch_init): Update.
12972 * mn10300-tdep.c (mn10300_read_pc): Remove.
12973 (mn10300_write_pc): Remove.
12974 (mn10300_gdbarch_init): Update.
12975 * moxie-tdep.c (moxie_read_pc): Remove.
12976 (moxie_write_pc): Remove.
12977 (moxie_gdbarch_init): Update.
12978
bca65a23
YQ
129792018-02-06 Yao Qi <yao.qi@linaro.org>
12980
12981 * expprint.c (print_subexp_standard): Handle
12982 OP_F77_UNDETERMINED_ARGLIST.
12983 (dump_subexp_body_standard): Likewise.
12984
583e3f90 129852018-02-05 Alan Hayward <alan.hayward@arm.com>
b8df6ca7 12986
583e3f90
YQ
12987 * target-descriptions.c (tdesc_element_visitor) Add empty
12988 implementations.
b8df6ca7
AH
12989 (tdesc_type): Move make_gdb_type from here.
12990 (tdesc_type_builtin): Likewise.
12991 (tdesc_type_vector): Likewise.
12992 (tdesc_type_with_fields): Move make_gdb_type_ functions from here.
12993 (make_gdb_type_struct): Move from tdesc_type_with_fields.
12994 (make_gdb_type_union): Likewise.
12995 (make_gdb_type_flags): Likewise.
12996 (make_gdb_type_enum): Likewise.
12997 (make_gdb_type): New function.
12998 (tdesc_register_type): Use static make_gdb_type.
12999
e813d34a
RK
130002018-02-05 Ruslan Kabatsayev <b7.10110111@gmail.com>
13001
13002 * infcmd.c (default_print_one_register_info): Align natural-format
13003 column values consistently one under another.
13004 (pad_to_column): New function.
13005
0eb876f5
JB
130062018-02-05 Joel Brobecker <brobecker@adacore.com>
13007
13008 * dwarf2read.c (dwarf2_physname): Move commment.
13009
0625771b
LS
130102018-02-01 Leszek Swirski <leszeks@google.com>
13011
13012 * varobj.c (varobj_formatted_print_options): Allow recursive
13013 pretty printing if pretty printing is enabled.
13014
59498c30
LS
130152018-02-01 Leszek Swirski <leszeks@google.com>
13016
13017 * c-exp.y (lex_one_token, classify_name, yylex): Don't classify
13018 names after a structop as a filename.
13019
2d9e6acb
YQ
130202018-02-01 Yao Qi <yao.qi@linaro.org>
13021
13022 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it.
13023 (arm_record_coproc_data_proc): Likewise.
13024
df95a9cf
YQ
130252018-02-01 Yao Qi <yao.qi@linaro.org>
13026
13027 * arm-tdep.c (arm_record_extension_space): Change ret to signed.
13028
07e5f5cf
NP
130292018-01-31 Nikola Prica <nikola.prica@rt-rk.com>
13030
13031 * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and
13032 assign shifted lr_reg to fdata->lr_register when lr_reg is set.
13033
3045b475
PA
130342018-01-31 Pedro Alves <palves@redhat.com>
13035
13036 * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter.
13037 * inflow.c (child_terminal_save_inferior): Wrap reference to
13038 tcgetpgrp in HAVE_TERMIOS_H.
13039 (child_interrupt, child_pass_ctrlc): Wrap references to signal in
13040 _WIN32.
13041 * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and
13042 always iterate over all inferiors.
13043 (gdbsim_cntrl_c): Adjust.
13044 * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter.
13045
929b5ad4
JB
130462018-01-31 Joel Brobecker <brobecker@adacore.com>
13047
13048 * gdbtypes.c (lookup_array_range_type): Make sure the array's
13049 index type is objfile-owned if the element type is as well.
13050
29236ca2
JB
130512018-01-31 Joel Brobecker <brobecker@adacore.com>
13052
13053 GDB 8.1 released.
13054
c81e8879
PR
130552018-01-30 Philipp Rudo <prudo@linux.vnet.ibm.com>
13056
13057 * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and
13058 "features/s390x-linux64.c".
13059 (_initialize_s390_linux_tdep): Remove initialization of tdescs
13060 s390_linux32 and s390x_linux64.
13061 (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set
13062 default tdesc.
13063 * s390-tdep.c: Include "features/s390-linux32.c" and
13064 "features/s390x-linux64.c".
13065 (s390_tdesc_valid): Add check for tdesc_has_registers.
13066 (s390_gdbarch_init): Make sure there is always a valid tdesc.
13067 (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and
13068 tdesc_s390x_linux64.
13069 * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and
13070 tdesc_s390x_linux64 to...
13071 * s390-tdep.h: ...here.
13072
e671cd59
PA
130732018-01-30 Pedro Alves <palves@redhat.com>
13074
13075 PR gdb/13211
13076 * config.in, configure: Regenerate.
13077 * configure.ac: Check for getpgid.
13078 * go32-nat.c (go32_pass_ctrlc): New.
13079 (go32_target): Install it.
13080 * inf-child.c (inf_child_target): Install
13081 child_terminal_save_inferior, child_pass_ctrlc and
13082 child_interrupt.
13083 * inf-ptrace.c (inf_ptrace_interrupt): Delete.
13084 (inf_ptrace_target): No longer install it.
13085 * infcmd.c (interrupt_target_1): Adjust.
13086 * inferior.h (child_terminal_save_inferior, child_pass_ctrlc)
13087 (child_interrupt): Declare.
13088 (inferior::terminal_state): New.
13089 * inflow.c (struct terminal_info): Update comments.
13090 (inferior_process_group): Delete.
13091 (terminal_is_ours): Delete.
13092 (gdb_tty_state): New.
13093 (child_terminal_init): Adjust.
13094 (is_gdb_terminal, sharing_input_terminal_1)
13095 (sharing_input_terminal): New functions.
13096 (child_terminal_inferior): Adjust. Use sharing_input_terminal.
13097 Set the process's actual process group in the foreground if
13098 possible. Handle is_ours_for_output/is_ours distinction. Don't
13099 mark terminal as the inferior's if not sharing GDB's terminal.
13100 Don't check attach_flag.
13101 (child_terminal_ours_for_output, child_terminal_ours): Adjust to
13102 pass down a target_terminal_state.
13103 (child_terminal_save_inferior): New, factored out from ...
13104 (child_terminal_ours_1): ... this. Handle
13105 target_terminal_state::is_ours_for_output.
13106 (child_interrupt, child_pass_ctrlc): New.
13107 (inflow_inferior_exit): Clear the inferior's terminal_state.
13108 (copy_terminal_info): Copy the inferior's terminal state.
13109 (_initialize_inflow): Remove reference to terminal_is_ours.
13110 * inflow.h (inferior_process_group): Delete.
13111 * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust.
13112 * procfs.c (procfs_target): Don't install procfs_interrupt.
13113 (procfs_interrupt): Delete.
13114 * remote.c (remote_serial_quit_handler): Adjust.
13115 (remote_interrupt): Remove ptid parameter. Adjust.
13116 * target-delegates.c: Regenerate.
13117 * target.c: Include "terminal.h".
13118 (target_terminal::terminal_state): Rename to ...
13119 (target_terminal::m_terminal_state): ... this.
13120 (target_terminal::init): Adjust.
13121 (target_terminal::inferior): Adjust to per-inferior
13122 terminal_state.
13123 (target_terminal::restore_inferior, target_terminal_is_ours_kind): New.
13124 (target_terminal::ours, target_terminal::ours_for_output): Use
13125 target_terminal_is_ours_kind.
13126 (target_interrupt): Remove ptid parameter. Adjust.
13127 (default_target_pass_ctrlc): Adjust.
13128 * target.h (target_ops::to_terminal_save_inferior): New field.
13129 (target_ops::to_interrupt): Remove ptid_t parameter.
13130 (target_interrupt): Remove ptid_t parameter. Update comment.
13131 (target_pass_ctrlc): Update comment.
13132 * target/target.h (target_terminal_state): New scoped enum,
13133 factored out of ...
13134 (target_terminal::terminal_state): ... here.
13135 (target_terminal::inferior): Update comments.
13136 (target_terminal::restore_inferior): New.
13137 (target_terminal::is_inferior, target_terminal::is_ours)
13138 (target_terminal::is_ours_for_output): Adjust.
13139 (target_terminal::scoped_restore_terminal_state): Adjust to
13140 rename, and call restore_inferior() instead of inferior().
13141 (target_terminal::scoped_restore_terminal_state::m_state): Change
13142 type.
13143 (target_terminal::terminal_state): Rename to ...
13144 (target_terminal::m_terminal_state): ... this and change type.
13145
9c3a5d93
PA
131462018-01-30 Pedro Alves <palves@redhat.com>
13147
13148 * linux-nat.c (wait_for_signal): New function.
13149 (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend
13150 directly.
13151 (async_terminal_is_ours)
13152 (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete.
13153 (linux_nat_add_target): Don't override
13154 to_terminal_inferior/to_terminal_ours.
13155
69ab5edb
SDJ
131562018-01-29 Sergio Durigan Junior <sergiodj@redhat.com>
13157
13158 * remote.c (remote_follow_fork): Don't call "detach_inferior".
13159
fc8e7e75
SM
131602018-01-28 Simon Marchi <simon.marchi@ericsson.com>
13161
13162 * dwarf2read.c (free_dwo_files): Add forward-declaration.
13163 (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from
13164 dwarf2_per_objfile_free here.
13165 (dwarf2_per_objfile_free): Remove.
13166 (_initialize_dwarf2_read): Don't register
13167 dwarf2_per_objfile_free as a registry cleanup.
13168
b2a426e2
EZ
131692018-01-27 Eli Zaretskii <eliz@gnu.org>
13170
13171 Avoid compilation errors in MinGW native builds
13172
13173 The error is triggered by including python-internal.h, and the
13174 error message is:
13175
13176 In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0,
13177 from build-gnulib/import/math.h:27,
13178 from d:/usr/Python26/include/pyport.h:235,
13179 from d:/usr/Python26/include/Python.h:58,
13180 from python/python-internal.h:94,
13181 from python/py-arch.c:24:
13182 d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared
13183 using ::hypot;
13184 ^~~~~
13185
13186 This happens because Python headers define 'hypot' to expand t
13187 '_hypot' in the Windows builds.
13188 * python/python-internal.h (_hypot) [__MINGW32__]: Define back to
13189 'hypoth'. This avoids a compilation error.
13190
0bdd8eac
AH
131912018-01-26 Alan Hayward <alan.hayward@arm.com>
13192
13193 * MAINTAINERS (Write After Approval): Fix ordering.
13194
56ae9dc3
AH
131952018-01-26 Alan Hayward <alan.hayward@arm.com>
13196
13197 * MAINTAINERS (Write After Approval): Add Alan Hayward.
13198
7433498b
AM
131992018-01-26 Alan Modra <amodra@gmail.com>
13200
13201 * ppc-linux-tdep.c (powerpc32_plt_stub): Make const.
13202 (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so.
13203 Remove nop. Make const. Comment.
13204 (powerpc32_plt_stub_so_2): New.
13205 (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN.
13206 Correct count. Update uses.
13207 (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too.
13208 Move common code reading PLT entry word. Correct
13209 powerpc32_plt_stub PLT address calculation.
13210 * ppc64-tdep.c (ppc64_standard_linkage1): Make const.
13211 (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise.
13212 (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise.
13213 (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise.
13214 (ppc64_standard_linkage8): Likewise.
13215 * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const.
13216 Correct insns description.
13217 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
13218
0f59d5fc
PA
132192018-01-24 Pedro Alves <palves@redhat.com>
13220
13221 GCC PR libstdc++/83906
13222 * gdbtypes.c (operator==(const dynamic_prop &,
13223 const dynamic_prop &)): New.
13224 (operator==(const range_bounds &, const range_bounds &)): New.
13225 (check_types_equal): Use them instead of memcmp.
13226 * gdbtypes.h (operator==(const dynamic_prop &,
13227 const dynamic_prop &)): Declare.
13228 (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare.
13229 (operator==(const range_bounds &, const range_bounds &)): Declare.
13230 (operator!=(const range_bounds &, const range_bounds &)): Declare.
13231
ef8914a4
PR
132322018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13233
13234 * s390-linux-tdep.c (s390_record_address_mask)
13235 (s390_record_calc_disp_common, s390_record_calc_disp)
13236 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
13237 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
13238 (s390_process_record): Move to s390-tdep.c.
13239 (s390_linux_init_abi_any): Adjust.
13240 * s390-tdep.c (s390_record_address_mask)
13241 (s390_record_calc_disp_common, s390_record_calc_disp)
13242 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
13243 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
13244 (s390_process_record): Moved from s390-linux-tdep.c
13245 (s390_gdbarch_init): Adjust.
13246
d6e58945
PR
132472018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13248
13249 * s390-linux-nat.c (s390-tdep.h): New include.
13250 * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o.
13251 (HFILES_NO_SRCDIR): Add s390-tdep.h.
13252 (ALLDEPFILES): Add s390-tdep.c.
13253 * configure.tgt (s390*-*-linux*): Add s390-tdep.o.
13254 * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to...
13255 * s390-tdep.h: ...this. New file.
13256 * s390-linux-tdep.c (s390-tdep.h): New include.
13257 (_initialize_s390_tdep): Rename to...
13258 (_initialize_s390_linux_tdep): ...this and adjust.
13259 (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep)
13260 (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to
13261 s390-tdep.h.
13262 (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri)
13263 (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy)
13264 (s390_is_partial_instruction, s390_software_single_step)
13265 (is_non_branch_ril, s390_displaced_step_copy_insn)
13266 (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep)
13267 (s390_prologue_data, s390_addr, s390_store, s390_load)
13268 (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue)
13269 (s390_register_call_saved, s390_guess_tracepoint_registers)
13270 (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum)
13271 (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register)
13272 (s390_pseudo_register_name, s390_pseudo_register_type)
13273 (s390_pseudo_register_read, s390_pseudo_register_write)
13274 (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect)
13275 (s390_ax_pseudo_register_push_stack, s390_gen_return_address)
13276 (s390_addr_bits_remove, s390_address_class_type_flags)
13277 (s390_address_class_type_flags_to_name)
13278 (s390_address_class_name_to_type_flags, s390_effective_inner_type)
13279 (s390_function_arg_float, s390_function_arg_vector)
13280 (is_power_of_two, s390_function_arg_integer, s390_arg_state)
13281 (s390_handle_arg, s390_push_dummy_call, s390_dummy_id)
13282 (s390_frame_align, s390_register_return_value, s390_return_value)
13283 (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp)
13284 (s390_unwind_pseudo_register, s390_adjust_frame_regnum)
13285 (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg)
13286 (s390_trad_frame_prev_register, s390_unwind_cache)
13287 (s390_prologue_frame_unwind_cache)
13288 (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache)
13289 (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind)
13290 (s390_stub_unwind_cache, s390_stub_frame_unwind_cache)
13291 (s390_stub_frame_this_id, s390_stub_frame_prev_register)
13292 (s390_stub_frame_sniffer, s390_stub_frame_unwind)
13293 (s390_frame_base_address, s390_local_base_address)
13294 (s390_frame_base, s390_gcc_target_options)
13295 (s390_gnu_triplet_regexp, s390_stap_is_single_operand)
13296 (s390_validate_reg_range, s390_tdesc_valid)
13297 (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to...
13298 * s390-tdep.c: ...this. New file.
13299
9c0b896e
PR
133002018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13301
13302 * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook.
13303 (s390_process_record, s390_gdbarch_tdep_alloc)
13304 (s390_linux_init_abi_any): Use/set new hook.
13305
7042632b
PR
133062018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13307
13308 * s390-linux-tdep.c (osabi.h): New include.
13309 (s390_linux_init_abi_31, s390_linux_init_abi_64)
13310 (s390_linux_init_abi_any): New functions.
13311 (s390_gdbarch_init, _initialize_s390_tdep): Adjust.
13312
650f5e13
PR
133132018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13314
13315 * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for
13316 tdesc_has_registers check
13317
47c9317e
PR
133182018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13319
13320 * s390-linux-tdep.c (s390_tdesc_valid): New function.
13321 (s390_validate_reg_range): New macro.
13322 (s390_gdbarch_init): Adjust.
13323
095085d8
PR
133242018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13325
13326 * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field.
13327 (s390_gdbarch_tdep_alloc): Adjust.
13328 (s390_gdbarch_init): Adjust.
13329
ab9bcc67
PR
133302018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13331
13332 * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2>
13333 <have_tdb>: Change type to bool.
13334 (s390_gdbarch_tdep_alloc): Adjust.
13335 (s390_gdbarch_init): Adjust.
13336
21f6f5ff
PR
133372018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13338
13339 * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field.
13340 (gdbarch_tdep) <have_upper, have_vx>: New fields.
13341 (s390_gdbarch_tdep_alloc): New function.
13342 (s390_gdbarch_init): Allocate tdep at start and use its fields
13343 instead of separate variables.
13344
0eb97953
PR
133452018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13346
13347 * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
13348 when looking for cached gdbarch and add comment for remaining.
13349
5c319bb2
PA
133502018-01-22 Pedro Alves <palves@redhat.com>
13351 Sergio Durigan Junior <sergiodj@redhat.com>
13352
13353 * typeprint.c (whatis_exp): Initialize "val" in the "whatis type"
13354 case.
13355
d65ce302
MR
133562018-01-22 Maciej W. Rozycki <macro@mips.com>
13357
13358 * MAINTAINERS: Update my company e-mail address.
13359
ec7a5fcb
YQ
133602018-01-22 Yao Qi <yao.qi@linaro.org>
13361
13362 * regcache.c (cooked_write_test): New function.
13363 (_initialize_regcache): Register the test.
13364
11f57cb6
YQ
133652018-01-22 Yao Qi <yao.qi@linaro.org>
13366
13367 * ia64-tdep.c (ia64_pseudo_register_read): Call
13368 regcache->cooked_read instead of regcache_cooked_read_unsigned.
13369 * m32c-tdep.c (m32c_cat_read): Likewise.
13370 (m32c_r3r2r1r0_read): Likewise.
13371 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
13372 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
13373
03f50fc8
YQ
133742018-01-22 Yao Qi <yao.qi@linaro.org>
13375
13376 * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
13377 method raw_read instead of regcache_raw_read.
13378 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
13379 * arm-tdep.c (arm_neon_quad_read): Likewise.
13380 * avr-tdep.c (avr_pseudo_register_read): Likewise.
13381 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
13382 * frv-tdep.c (frv_pseudo_register_read): Likewise.
13383 * h8300-tdep.c (h8300_pseudo_register_read): Likewise.
13384 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
13385 (i386_pseudo_register_read_into_value): Likewise.
13386 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
13387 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
13388 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
13389 * rl78-tdep.c (rl78_pseudo_register_read): Likewise.
13390 * s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
13391 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
13392 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
13393 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
13394 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
13395
dc711524
YQ
133962018-01-22 Yao Qi <yao.qi@linaro.org>
13397
13398 * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
13399 * configure.tgt: Remove target mt.
13400 * mt-tdep.c: Remove.
13401 * regcache.c (cooked_read_test): Remove the check for mt.
13402
3f5a868b
YQ
134032018-01-22 Yao Qi <yao.qi@linaro.org>
13404
13405 * jit.c (jit_frame_prev_register): Call regcache::cooked_read
13406 instead of gdbarch_pseudo_register_read_value.
13407
de4cb04a
JB
134082018-01-22 Joel Brobecker <brobecker@adacore.com>
13409
13410 * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
13411 language is Ada.
13412
a9e40818
JB
134132018-01-22 Joel Brobecker <brobecker@adacore.com>
13414
13415 * linespec.c (create_sals_line_offset): Remove code that preserved
13416 the symtab_and_line's line number.
13417
e707fc44
AB
134182018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
13419
13420 * varobj.c (varobj_create): Don't set valid_block when creating a
13421 floating varobj.
13422
03d0bf7b
AB
134232018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
13424
13425 * varobj.c (varobj_create): Remove out of date comment.
13426
ae451627
AB
134272018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
13428
13429 PR mi/20395
13430 * ada-exp.y (write_var_from_sym): Pass extra parameter when
13431 updating innermost block.
13432 * parse.c (innermost_block_tracker::update): Take extra type
13433 parameter, and check types match before updating innermost block.
13434 (write_dollar_variable): Update innermost block for registers.
13435 * parser-defs.h (enum innermost_block_tracker_type): New enum.
13436 (innermost_block_tracker::innermost_block_tracker): Initialise
13437 m_types member.
13438 (innermost_block_tracker::reset): Take type parameter.
13439 (innermost_block_tracker::update): Take type parameter, and pass
13440 type through as needed.
13441 (innermost_block_tracker::m_types): New member.
13442 * varobj.c (varobj_create): Pass type when reseting innermost
13443 block.
13444
aee1fcdf
AB
134452018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
13446
13447 * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
13448 * ada-lang.c (resolve_subexp): Likewise.
13449 * breakpoint.c (set_breakpoint_condition) Likewise.
13450 (watch_command_1) Likewise.
13451 * c-exp.y (variable): Likewise.
13452 * d-exp.y (PrimaryExpression): Likewise.
13453 * f-exp.y (variable): Likewise.
13454 * go-exp.y (variable): Likewise.
13455 * m2-exp.y (variable): Likewise.
13456 * objfiles.c (objfile::~objfile): Likewise.
13457 * p-exp.y (variable): Likewise.
13458 * parse.c (innermost_block): Change type.
13459 * parser-defs.h (class innermost_block_tracker): New.
13460 (innermost_block): Change to innermost_block_tracker.
13461 * printcmd.c (display_command): Switch to innermost_block API.
13462 (do_one_display): Likewise.
13463 * rust-exp.y (do_one_display): Likewise.
13464 * symfile.c (clear_symtab_users): Likewise.
13465 * varobj.c (varobj_create): Switch to innermost_block API, replace
13466 use of innermost_block with block stored on varobj object.
13467
396af9a1
AB
134682018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
13469
13470 * expression.h (innermost_block): Remove declaration.
13471 * varobj.c: Add 'parser-defs.h' include.
13472
fcfcc376
TT
134732018-01-19 Tom Tromey <tom@tromey.com>
13474
13475 * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
13476 symbols in the static and global blocks.
13477
5a6c3296
JC
134782018-01-19 James Clarke <jrtc27@jrtc27.com>
13479
13480 * nat/linux-ptrace.c: Remove unnecessary reinclusion of
13481 gdb_ptrace.h, and move including gdb_wait.h ...
13482 * nat/linux-ptrace.h: ... to here.
13483
bc09b0c1
SM
134842018-01-19 Simon Marchi <simon.marchi@ericsson.com>
13485
13486 * inf-ptrace.c (inf_ptrace_detach): Adjust call to
13487 inf_ptrace_detach_success.
13488 (inf_ptrace_detach_success): Add inferior parameter, use it
13489 instead of inferior_ptid, pass it to detach_inferior.
13490 * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
13491 parameter.
13492 * inferior.c (detach_inferior): Add overload that takes an
13493 inferior object.
13494 * inferior.h (detach_inferior): Likewise.
13495 * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
13496 use inferior_ptid, adjust call to inf_ptrace_detach_success.
13497 * linux-thread-db.c (thread_db_detach): Use inf parameter.
13498
6e1e1966
SM
134992018-01-19 Simon Marchi <simon.marchi@ericsson.com>
13500
13501 * target.h (struct target_ops) <to_detach>: Add inferior
13502 parameter.
13503 (target_detach): Likewise.
13504 * target.c (dispose_inferior): Pass inferior down.
13505 (target_detach): Pass inferior down. Assert that it is equal to
13506 the current inferior.
13507 * aix-thread.c (aix_thread_detach): Pass inferior down.
13508 * corefile.c (core_file_command): Pass current_inferior() down.
13509 * corelow.c (core_detach): Add inferior parameter.
13510 * darwin-nat.c (darwin_detach): Likewise.
13511 * gnu-nat.c (gnu_detach): Likewise.
13512 * inf-ptrace.c (inf_ptrace_detach): Likewise.
13513 * infcmd.c (detach_command): Pass current_inferior() down to
13514 target_detach.
13515 * infrun.c (follow_fork_inferior): Pass parent_inf to
13516 target_detach.
13517 (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
13518 target_detach.
13519 * linux-nat.c (linux_nat_detach): Add inferior parameter.
13520 * linux-thread-db.c (thread_db_detach): Likewise.
13521 * nto-procfs.c (procfs_detach): Likewise.
13522 * procfs.c (procfs_detach): Likewise.
13523 * record.c (record_detach): Likewise.
13524 * record.h (struct inferior): Forward-declare.
13525 (record_detach): Add inferior parameter.
13526 * remote-sim.c (gdbsim_detach): Likewise.
13527 * remote.c (remote_detach_1): Likewise.
13528 (remote_detach): Likewise.
13529 (extended_remote_detach): Likewise.
13530 * sol-thread.c (sol_thread_detach): Likewise.
13531 * target-debug.h (target_debug_print_inferior_p): New macro.
13532 * target-delegates.c: Re-generate.
13533 * top.c (kill_or_detach): Pass inferior down to target_detach.
13534 * windows-nat.c (windows_detach): Add inferior parameter.
13535
6bd6f3b6
SM
135362018-01-19 Simon Marchi <simon.marchi@ericsson.com>
13537
13538 * target.h (struct target_ops) <to_detach>: Remove args
13539 parameter.
13540 (target_detach): Likewise.
13541 * target.c (dispose_inferior): Adjust.
13542 (target_detach): Remove args parameter, adjust.
13543 * aix-thread.c (aix_thread_detach): Adjust.
13544 * corefile.c (core_file_command): Adjust.
13545 * corelow.c (core_detach): Adjust.
13546 * darwin-nat.c (darwin_detach): Adjust.
13547 * gnu-nat.c (gnu_detach): Adjust.
13548 * inf-ptrace.c (inf_ptrace_detach): Adjust.
13549 * infcmd.c (detach_command): Adjust
13550 * infrun.c (follow_fork_inferior): Adjust.
13551 (handle_vfork_child_exec_or_exit): Adjust.
13552 * linux-fork.c (linux_fork_detach): Remove args parameter.
13553 * linux-fork.h (linux_fork_detach): Likewise.
13554 * linux-nat.c (linux_nat_detach): Likewise, and adjust.
13555 * linux-thread-db.c (thread_db_detach): Likewise.
13556 * nto-procfs.c (procfs_detach): Likewise.
13557 * procfs.c (procfs_detach): Likewise.
13558 (do_detach): Remove signo parameter.
13559 * record.c (record_detach): Remove args parameter.
13560 * record.h (record_detach): Likewise.
13561 * remote-sim.c (gdbsim_detach): Likewise.
13562 * remote.c (remote_detach_1): Likewise.
13563 (remote_detach): Likewise.
13564 (extended_remote_detach): Likewise.
13565 * sol-thread.c (sol_thread_detach): Likewise.
13566 * target-delegates.c: Re-generate.
13567 * top.c (struct qt_args) <args>: Remove field.
13568 (kill_or_detach): Don't pass args.
13569 (quit_force): Don't set args.
13570 * windows-nat.c (windows_detach): Remove args parameter.
13571
88af8ea8
YQ
135722018-01-19 Yao Qi <yao.qi@linaro.org>
13573
13574 * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
13575 (arm_linux_init_abi): Install it.
13576
dea445b9
YQ
135772018-01-19 Yao Qi <yao.qi@linaro.org>
13578
13579 * osabi.c (gdb_osabi_names): Extend the regexp for
13580 arm-linux-gnueabihf.
13581
4a17f768
YQ
135822018-01-18 Yao Qi <yao.qi@linaro.org>
13583
13584 * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
13585 m_abbrevs.
13586 (abbrev_table::add_abbrev): Update.
13587 (abbrev_table::lookup_abbrev): Update.
13588
d679c21a
YQ
135892018-01-18 Yao Qi <yao.qi@linaro.org>
13590
13591 * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
13592
7d937cad
SDJ
135932018-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
13594
13595 * compile/compile.c (compile_to_object): Convert "triplet_rx"
13596 to "std::string".
13597
9e14690d
TT
135982018-01-17 Tom Tromey <tom@tromey.com>
13599
13600 * dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC.
13601
50a82047
TT
136022018-01-17 Tom Tromey <tom@tromey.com>
13603
13604 * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
13605 * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
13606 (create_array_type_with_stride): Update.
13607 * dwarf2read.c (set_die_type): Update.
13608
c89b44cd
TT
136092018-01-17 Tom Tromey <tom@tromey.com>
13610
13611 * dwarf2read.c (delayed_method_info): Remove typedef.
13612 (dwarf2_cu::method_info): Now a std::vector.
13613 (add_to_method_list): Update.
13614 (free_delayed_list): Remove.
13615 (compute_delayed_physnames): Update.
13616 (process_full_comp_unit, process_full_type_unit): Clear the method
13617 list. Remove cleanups.
13618 (psymtab_include_file_name): Add name_holder parameter. Use
13619 unique_xmalloc_ptr.
13620 (dwarf_decode_lines): Update.
13621
fcd3b13d
SM
136222018-01-17 Tom Tromey <tom@tromey.com>
13623 Simon Marchi <simon.marchi@ericsson.com>
13624
13625 * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
13626 (dwarf2_per_objfile::free_cached_comp_units)
13627 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
13628 (init_cutu_and_read_dies_no_follow): Update.
13629 (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
13630 (dwarf2_cu::~dwarf2_cu): New.
13631 (free_heap_comp_unit, free_stack_comp_unit): Remove.
13632 (age_cached_comp_units, free_one_cached_comp_unit): Update.
13633
685af9cd
TT
136342018-01-17 Tom Tromey <tom@tromey.com>
13635 Simon Marchi <simon.marchi@ericsson.com>
13636
13637 * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
13638 (struct die_reader_specs) <abbrev_table>: New member.
13639 (struct abbrev_table): Add constructor.
13640 <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
13641 <abbrev_obstack>: Now an auto_obstack.
13642 (abbrev_table_up): New typedef.
13643 (init_cu_die_reader): Add abbrev_table parameter.
13644 (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
13645 Add result_dwo_abbrev_table.
13646 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
13647 (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
13648 Update.
13649 (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
13650 parameter.
13651 (skip_children): Update.
13652 (abbrev_table::alloc_abbrev): Rename from
13653 abbrev_table_alloc_abbrev.
13654 (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
13655 (abbrev_table::lookup_abbrev): Rename from
13656 abbrev_table_lookup_abbrev.
13657 (abbrev_table_read_table): Return abbrev_table_up.
13658 (abbrev_table_free, abbrev_table_free_cleanup)
13659 (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
13660 (load_partial_dies): Update.
13661
5e2db402
TT
136622018-01-17 Tom Tromey <tom@tromey.com>
13663
13664 * dwarf2read.c (dwarf2_compute_name): Update comment.
13665 (read_func_scope, read_variable): Update.
13666 (new_symbol): Remove.
13667 (new_symbol_full): Rename to new_symbol.
13668
ee7f689e 136692018-01-17 Mike Gulick <mgulick@mathworks.com>
41667530
MG
13670
13671 PR gdb/16577
13672 * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
13673 a warning instead of throwing an error, set section size to 0 and return
13674 NULL.
13675 * gdb_bfd.h (gdb_bfd_map_section): Update description.
13676
4d9b86e1
SM
136772018-01-17 Simon Marchi <simon.marchi@ericsson.com>
13678
13679 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
13680 std::string.
13681 (linux_ptrace_attach_fail_reason_string): Likewise.
13682 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
13683 Likewise.
13684 (linux_ptrace_attach_fail_reason_string): Likewise.
13685 * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
13686
a7b2d0fb
SM
136872018-01-17 Simon Marchi <simon.marchi@ericsson.com>
13688
13689 * linux-nat.c (linux_nat_attach): Remove xstrdup.
13690
f517c180
EA
136912018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
13692
13693 PR gdb/21559
13694 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
13695 checking for fs_base/gs_base fields in struct user_regs_struct.
13696 * configure: Regenerate.
13697
7045b1ca
YQ
136982018-01-17 Yao Qi <yao.qi@linaro.org>
13699
13700 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
13701 function.
13702 (aarch64_linux_init_abi): Install it to gdbarch hook
13703 gcc_target_options.
13704
db422fb2
PA
137052018-01-15 Pedro Alves <palves@redhat.com>
13706
13707 * common/signals-state-save-restore.c
13708 (save_original_signals_state): Fix typos.
13709
ba643918
SDJ
137102017-01-12 Tom Tromey <tom@tromey.com>
13711 Sergio Durigan Junior <sergiodj@redhat.com>
13712
13713 * Makefile.in (install-only): Install gdb-add-index.
13714
906b4aac
JB
137152018-01-12 John Baldwin <jhb@FreeBSD.org>
13716
13717 * fbsd-tdep.c (KVE_PROTECTION): Correct value.
13718
bdf2a94a
AA
137192018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
13720
13721 * infrun.c (keep_going_pass_signal): Clear step-over info when
13722 insert_breakpoints fails.
13723
71d378ae
PA
137242018-01-11 Pedro Alves <palves@redhat.com>
13725
13726 PR gdb/22583
13727 * infrun.c (resume): Rename to ...
13728 (resume_1): ... this.
13729 (resume): Reimplement as wrapper around resume_1.
13730
3cada740
PA
137312018-01-11 Pedro Alves <palves@redhat.com>
13732
13733 PR remote/22597
13734 * remote.c (remote_parse_stop_reply): Default to the last-set
13735 general thread instead of to 'magic_null_ptid'.
13736
618daa93
PA
137372018-01-10 Pedro Alves <palves@redhat.com>
13738
13739 * language.h (language_get_symbol_name_matcher): Rename ...
13740 (get_symbol_name_matcher): ... this.
13741 * language.c (language_get_symbol_name_matcher): Ditto.
13742 * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
13743 callers adjusted.
13744
c63d3e8d
PA
137452018-01-10 Pedro Alves <palves@redhat.com>
13746
13747 PR gdb/22670
13748 * dwarf2read.c
13749 (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
13750 Adjust to use language_get_symbol_name_matcher instead of
13751 language_defn::la_get_symbol_name_matcher.
13752 * language.c (language_get_symbol_name_matcher): If in Ada mode
13753 and the lookup name is a verbatim match, return Ada's matcher.
13754 * language.h (language_get_symbol_name_matcher): Adjust comment.
13755 (ada_lookup_name_info::verbatim_p):: New method.
13756
d4c2a405
PA
137572018-01-10 Pedro Alves <palves@redhat.com>
13758
13759 PR gdb/22670
13760 * ada-lang.c (ada_collect_symbol_completion_matches): If the
13761 minsym's language is language_auto or language_cplus, pass down
13762 language_ada instead.
13763 * symtab.c (compare_symbol_name): Don't frob symbol language here.
13764
8825213e
PA
137652018-01-10 Pedro Alves <palves@redhat.com>
13766
13767 PR gdb/22670
13768 * minsyms.c (linkage_name_str): New function.
13769 (iterate_over_minimal_symbols): Use it.
13770
2d97a5d9
JB
137712018-01-09 John Baldwin <jhb@FreeBSD.org>
13772
13773 * NEWS: Document that 'info proc' now works on FreeBSD.
13774
92fce24d
JB
137752018-01-09 John Baldwin <jhb@FreeBSD.org>
13776
13777 * configure.ac: Check for kinfo_getfile in libutil.
13778 * configure: Regenerate.
13779 * config.in: Regenerate.
13780 * fbsd-nat.c: Include "fbsd-tdep.h".
13781 (fbsd_fetch_cmdline): New.
13782 (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
13783 rather than calling error.
13784 (fbsd_info_proc): New.
13785 (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
13786 (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
13787 (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
13788
262f62f5
JB
137892018-01-09 John Baldwin <jhb@FreeBSD.org>
13790
13791 * fbsd-nat.c (struct free_deleter): Remove.
13792 (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
13793
b999e203
JB
137942018-01-09 John Baldwin <jhb@FreeBSD.org>
13795
13796 * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
13797 NULL for an empty pathname.
13798
d2176225
JB
137992018-01-09 John Baldwin <jhb@FreeBSD.org>
13800
13801 * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
13802 (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
13803 (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
13804 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
13805 (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
13806 (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
13807 (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
13808 (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
13809 (kinfo_proc_layout_32, kinfo_proc_layout_i386)
13810 (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
13811 (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
13812 (fbsd_core_fetch_timeval, fbsd_print_sigset)
13813 (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
13814 (fbsd_init_abi): Install gdbarch "core_info_proc" method.
13815 * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
13816
9c4ac400
ST
138172018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
13818
13819 * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
13820 (gnu_xfer_auxv): New function.
13821 (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
13822 TARGET_OBJECT_AUXV.
13823
1e5ded6c
YQ
138242018-01-08 Yao Qi <yao.qi@linaro.org>
13825 Simon Marchi <simon.marchi@ericsson.com>
13826
13827 * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
13828 common/selftest.c.
13829 (COMMON_OBS): Remove selftest.o.
13830 * configure.ac: Append selftest-arch.c and common/selftest.c to
13831 CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS.
13832 * configure: Re-generated.
13833 * maint.c (maintenance_selftest): Wrap selftests::run_tests with
13834 GDB_SELF_TEST.
13835 (maintenance_info_selftests): Likewise.
13836
04bafb1e
XR
138372018-01-08 Xavier Roirand <roirand@adacore.com>
13838
13839 * ada-valprint.c (val_print_packed_array_elements): Use
13840 proper number of elements when printing an array indexed
13841 by an enumeration type.
13842
518817b3
SM
138432018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13844
13845 * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
13846 (dw2_get_file_names_reader): Adjust.
13847 (lookup_dwo_signatured_type): Adjust.
13848 (lookup_dwp_signatured_type): Adjust.
13849 (lookup_signatured_type): Adjust.
13850 (create_type_unit_group): Adjust.
13851 (get_type_unit_group): Adjust.
13852 (process_psymtab_comp_unit_reader): Adjust.
13853 (build_type_psymtabs_reader): Adjust.
13854 (scan_partial_symbols): Adjust.
13855 (add_partial_symbol): Adjust.
13856 (add_partial_subprogram): Adjust.
13857 (peek_die_abbrev): Adjust.
13858 (fixup_go_packaging): Adjust.
13859 (process_imported_unit_die): Adjust.
13860 (dwarf2_compute_name): Adjust.
13861 (dwarf2_physname): Adjust.
13862 (read_import_statement): Adjust.
13863 (handle_DW_AT_stmt_list): Adjust.
13864 (read_file_scope): Adjust.
13865 (read_func_scope): Adjust.
13866 (read_lexical_block_scope): Adjust.
13867 (read_call_site_scope): Adjust.
13868 (read_variable): Adjust.
13869 (dwarf2_rnglists_process): Adjust.
13870 (dwarf2_ranges_process): Adjust.
13871 (dwarf2_ranges_read): Adjust.
13872 (dwarf2_get_pc_bounds): Adjust.
13873 (dwarf2_record_block_ranges): Adjust.
13874 (dwarf2_add_field): Adjust.
13875 (dwarf2_add_member_fn): Adjust.
13876 (read_structure_type): Adjust.
13877 (process_structure_scope): Adjust.
13878 (read_enumeration_type): Adjust.
13879 (read_array_type): Adjust.
13880 (mark_common_block_symbol_computed): Adjust.
13881 (read_common_block): Adjust.
13882 (read_namespace_type): Adjust.
13883 (read_namespace): Adjust.
13884 (read_module_type): Adjust.
13885 (read_tag_pointer_type): Adjust.
13886 (read_tag_ptr_to_member_type): Adjust.
13887 (read_tag_string_type): Adjust.
13888 (read_subroutine_type): Adjust.
13889 (read_typedef): Adjust.
13890 (read_base_type): Adjust.
13891 (attr_to_dynamic_prop): Adjust.
13892 (read_subrange_type): Adjust.
13893 (read_unspecified_type): Adjust.
13894 (dwarf2_read_abbrevs): Adjust.
13895 (load_partial_dies): Adjust.
13896 (read_partial_die): Adjust.
13897 (find_partial_die): Adjust.
13898 (guess_partial_die_structure_name): Adjust.
13899 (fixup_partial_die): Adjust.
13900 (read_attribute_value): Adjust.
13901 (read_addr_index): Adjust.
13902 (read_addr_index_from_leb128): Adjust.
13903 (read_str_index): Adjust.
13904 (dwarf2_string_attr): Adjust.
13905 (get_debug_line_section): Adjust.
13906 (dwarf_decode_line_header): Adjust.
13907 (lnp_state_machine::check_line_address): Adjust.
13908 (dwarf_decode_lines_1): Adjust.
13909 (dwarf_decode_lines): Adjust.
13910 (dwarf2_start_symtab): Adjust.
13911 (var_decode_location): Adjust.
13912 (new_symbol_full): Adjust.
13913 (dwarf2_const_value_data): Adjust.
13914 (dwarf2_const_value_attr): Adjust.
13915 (dwarf2_const_value): Adjust.
13916 (die_type): Adjust.
13917 (die_containing_type): Adjust.
13918 (build_error_marker_type): Adjust.
13919 (lookup_die_type): Adjust.
13920 (guess_full_die_structure_name): Adjust.
13921 (anonymous_struct_prefix): Adjust.
13922 (determine_prefix): Adjust.
13923 (dwarf2_name): Adjust.
13924 (follow_die_ref_or_sig): Adjust.
13925 (follow_die_offset): Adjust.
13926 (follow_die_ref): Adjust.
13927 (follow_die_sig_1): Adjust.
13928 (follow_die_sig): Adjust.
13929 (get_signatured_type): Adjust.
13930 (get_DW_AT_signature_type): Adjust.
13931 (decode_locdesc): Adjust.
13932 (dwarf_decode_macros): Adjust.
13933 (cu_debug_loc_section): Adjust.
13934 (fill_in_loclist_baton): Adjust.
13935 (dwarf2_symbol_mark_computed): Adjust.
13936 (init_one_comp_unit): Don't assign
13937 dwarf2_cu::dwarf2_per_objfile.
13938 (set_die_type): Adjust.
13939
ed2dc618
SM
139402018-01-07 Simon Marchi <simon.marchi@ericsson.com>
13941
13942 * dwarf2read.c (struct mapped_debug_names): Add constructor.
13943 <dwarf2_per_objfile>: New field.
13944 (dwarf2_per_objfile): Remove global.
13945 (get_dwarf2_per_objfile): New function.
13946 (set_dwarf2_per_objfile): New function.
13947 (dwarf2_build_psymtabs_hard): Change objfile parameter to
13948 dwarf2_per_objfile.
13949 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
13950 (read_abbrev_offset): Likewise.
13951 (read_indirect_string): Likewise.
13952 (read_indirect_line_string): Likewise.
13953 (read_indirect_string_at_offset): Likewise.
13954 (read_indirect_string_from_dwz): Likewise.
13955 (dwarf2_find_containing_comp_unit): Change objfile parameter to
13956 dwarf2_per_objfile.
13957 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
13958 (create_all_comp_units): Change objfile parameter to
13959 dwarf2_per_objfile.
13960 (create_all_type_units): Likewise.
13961 (process_queue): Add dwarf2_per_objfile parameter.
13962 (read_and_check_comp_unit_head): Likewise.
13963 (lookup_dwo_unit_in_dwp): Likewise.
13964 (get_dwp_file): Likewise.
13965 (process_cu_includes): Likewise.
13966 (struct free_dwo_file_cleanup_data): New struct.
13967 (dwarf2_has_info): Use get_dwarf2_per_objfile and
13968 set_dwarf2_per_objfile.
13969 (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
13970 (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
13971 context, adjust calls.
13972 (dw2_instantiate_symtab): Likewise.
13973 (dw2_get_cutu): Add dwarf2_per_objfile parameter.
13974 (dw2_get_cu): Likewise.
13975 (create_cu_from_index_list): Change objfile parameter to
13976 dwarf2_per_objfile.
13977 (create_cus_from_index_list): Get dwarf2_per_objfile from
13978 context, adjust calls.
13979 (create_cus_from_index): Likewise.
13980 (create_signatured_type_table_from_index): Change objfile
13981 parameter to dwarf2_per_objfile.
13982 (create_signatured_type_table_from_debug_names): Change objfile
13983 parameter to dwarf2_per_objfile.
13984 (create_addrmap_from_index): Likewise.
13985 (create_addrmap_from_aranges): Likewise.
13986 (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
13987 (dw2_setup): Remove.
13988 (dw2_get_file_names_reader): Get dwarf2_per_objfile from
13989 context.
13990 (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
13991 get_dwarf2_per_objfile.
13992 (dw2_forget_cached_source_info): Likewise.
13993 (dw2_map_symtabs_matching_filename): Likewise.
13994 (struct dw2_symtab_iterator) <index>: Remove.
13995 <dwarf2_per_objfile>: New field.
13996 (dw2_symtab_iter_init): Replace index parameter with
13997 dwarf2_per_objfile.
13998 (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
13999 (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
14000 (dw2_print_stats): Likewise.
14001 (dw2_dump): Likewise.
14002 (dw2_expand_symtabs_for_function): Likewise.
14003 (dw2_expand_all_symtabs): Likewise.
14004 (dw2_expand_symtabs_with_fullname): Likewise.
14005 (dw2_expand_marked_cus): Replace index and objfile parameters
14006 with dwarf2_per_objfile.
14007 (dw_expand_symtabs_matching_file_matcher): Add
14008 dwarf2_per_objfile parameter and adjust calls.
14009 (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
14010 adjust calls.
14011 (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
14012 (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
14013 adjust calls.
14014 (create_cus_from_debug_names_list): Replace objfile parameter
14015 with dwarf2_per_objfile and adjust calls.
14016 (create_cus_from_debug_names): Likewise.
14017 (dwarf2_read_debug_names): Likewise.
14018 (mapped_debug_names::namei_to_name): Adjust call.
14019 (dw2_debug_names_iterator::next): Likewise.
14020 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
14021 (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
14022 (dw2_debug_names_dump): Likewise.
14023 (dw2_debug_names_expand_symtabs_for_function): Likewise.
14024 (dw2_debug_names_expand_symtabs_matching): Likewise.
14025 (dwarf2_initialize_objfile): Likewise.
14026 (dwarf2_build_psymtabs): Likewise.
14027 (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
14028 this_cu.
14029 (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
14030 (read_and_check_comp_unit_head): Likewise.
14031 (read_abbrev_offset): Likewise.
14032 (create_debug_type_hash_table): Likewise.
14033 (create_debug_types_hash_table): Likewise.
14034 (create_all_type_units): Replace objfile parameter with
14035 dwarf2_per_objfile.
14036 (add_type_unit): Add dwarf2_per_objfile parameter.
14037 (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
14038 with dwarf2_per_objfile.
14039 (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
14040 (lookup_dwp_signatured_type): Likewise.
14041 (lookup_signatured_type): Likewise.
14042 (read_cutu_die_from_dwo): Likewise.
14043 (init_tu_and_read_dwo_dies): Likewise.
14044 (init_cutu_and_read_dies): Likewise.
14045 (init_cutu_and_read_dies_no_follow): Likewise.
14046 (allocate_type_unit_groups_table): Add objfile parameter.
14047 (create_type_unit_group): Use dwarf2_per_objfile from cu.
14048 (get_type_unit_group): Likewise.
14049 (process_psymtab_comp_unit): Update call.
14050 (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
14051 (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
14052 (print_tu_stats): Likewise.
14053 (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
14054 in void* parameter.
14055 (build_type_psymtabs): Change objfile parameter to
14056 dwarf2_per_objfile.
14057 (process_skeletonless_type_unit): Use dwarf2_per_objfile
14058 passed in void* parameter.
14059 (process_skeletonless_type_units): Change objfile parameter to
14060 dwarf2_per_objfile.
14061 (set_partial_user): Likewise.
14062 (dwarf2_build_psymtabs_hard): Likewise.
14063 (read_comp_units_from_section): Likewise.
14064 (create_all_comp_units): Likewise.
14065 (scan_partial_symbols): Update calls.
14066 (add_partial_symbol): Likewise.
14067 (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
14068 (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
14069 (process_queue): Add dwarf2_per_objfile parameter.
14070 (get_compunit_symtab): Use dwarf2_per_objfile from cu.
14071 (compute_compunit_symtab_includes): Likewise.
14072 (process_cu_includes): Add dwarf2_per_objfile parameter.
14073 (process_full_comp_unit): Use dwarf2_per_objfile from cu.
14074 (process_full_type_unit): Likewise.
14075 (process_imported_unit_die): Update call.
14076 (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
14077 (read_file_scope): Likewise.
14078 (allocate_dwo_file_hash_table): Add objfile parameter.
14079 (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
14080 (create_cus_hash_table): Likewise.
14081 (create_dwp_hash_table): Likewise.
14082 (create_dwo_unit_in_dwp_v1): Likewise.
14083 (create_dwp_v2_section): Likewise.
14084 (create_dwo_unit_in_dwp_v2): Likewise.
14085 (lookup_dwo_unit_in_dwp): Likewise.
14086 (try_open_dwop_file): Likewise.
14087 (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
14088 (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
14089 cleanup to include a reference to dwarf2_per_objfile.
14090 (open_dwp_file): Add dwarf2_per_objfile parameter.
14091 (open_and_init_dwp_file): Likewise.
14092 (get_dwp_file): Likewise.
14093 (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
14094 (queue_and_load_all_dwo_tus): Update call.
14095 (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
14096 data.
14097 (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
14098 (dwarf2_ranges_process): Likewise.
14099 (dwarf2_get_pc_bounds): Likewise.
14100 (mark_common_block_symbol_computed): Likewise.
14101 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
14102 (dwarf2_read_abbrevs): Update call.
14103 (read_partial_die): Use dwarf2_per_objfile from cu.
14104 (find_partial_die): Likewise.
14105 (fixup_partial_die): Likewise.
14106 (read_attribute_value): Likewise.
14107 (read_indirect_string_at_offset_from): Add objfile parameter.
14108 (read_indirect_string_at_offset): Add dwarf2_per_objfile
14109 parameter.
14110 (read_indirect_string_from_dwz): Add objfile parameter.
14111 (read_indirect_string): Add objfile parameter.
14112 (read_addr_index_1): Add dwarf2_per_objfile parameter.
14113 (read_addr_index): Use dwarf2_per_objfile from cu.
14114 (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
14115 call dw2_setup.
14116 (read_str_index): Use dwarf2_per_objfile from cu.
14117 (get_debug_line_section): Likewise.
14118 (read_formatted_entries): Add dwarf2_per_objfile parameter.
14119 (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
14120 (new_symbol_full): Use dwarf2_per_objfile from cu.
14121 (build_error_marker_type): Likewise.
14122 (lookup_die_type): Likewise.
14123 (determine_prefix): Likewise.
14124 (follow_die_offset): Likewise.
14125 (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
14126 (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
14127 (dwarf2_fetch_die_type_sect_off): Likewise.
14128 (dwarf2_get_die_type): Likewise.
14129 (follow_die_sig_1): Use dwarf2_per_objfile from cu.
14130 (get_signatured_type): Likewise.
14131 (get_DW_AT_signature_type): Likewise.
14132 (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
14133 (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
14134 (cu_debug_loc_section): Likewise.
14135 (fill_in_loclist_baton): Likewise.
14136 (dwarf2_symbol_mark_computed): Likewise.
14137 (dwarf2_find_containing_comp_unit): Change objfile parameter to
14138 dwarf2_per_objfile.
14139 (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
14140 parameter.
14141 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
14142 (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
14143 (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
14144 (set_die_type): Use dwarf2_free_objfile from cu.
14145 (get_die_type_at_offset): Likewise.
14146 (dwarf2_per_objfile_free): Don't assign global variable.
14147 (debug_names) <constructor>: Add dwarf2_per_objfile
14148 parameter, update m_debugstrlookup construction.
14149 (debug_names::debug_str_lookup): Add dwarf2_per_objfile
14150 parameter.
14151 <m_dwarf2_per_objfile>: New field.
14152 <lookup>: Use m_dwarf2_per_objfile.
14153 (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
14154 (psyms_seen_size): Likewise.
14155 (write_gdbindex): Replace objfile parameter with
14156 dwarf2_per_objfile.
14157 (write_debug_names): Likewise.
14158 (write_psymtabs_to_index): Likewise.
14159 (save_gdb_index_command): Use get_dwarf2_per_objfile, update
14160 calls.
14161
e3b94546
SM
141622018-01-07 Simon Marchi <simon.marchi@ericsson.com>
14163
14164 * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
14165 <dwarf2_per_objfile>: New field.
14166 (struct dwarf2_per_cu_data) <objfile>: Remove.
14167 <dwarf2_per_objfile>: New field.
14168 (create_cu_from_index_list): Assign dwarf2_per_objfile instead
14169 of objfile.
14170 (create_signatured_type_table_from_index): Likewise.
14171 (create_debug_type_hash_table): Likewise.
14172 (fill_in_sig_entry_from_dwo_entry): Likewise.
14173 (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
14174 (create_type_unit_group): Assign dwarf2_per_objfile instead of
14175 objfile.
14176 (create_partial_symtab): Access objfile through
14177 dwarf2_per_objfile.
14178 (process_psymtab_comp_unit_reader): Likewise.
14179 (read_comp_units_from_section): Likewise.
14180 (scan_partial_symbols): Likewise.
14181 (add_partial_symbol): Likewise.
14182 (add_partial_subprogram): Likewise.
14183 (peek_die_abbrev): Likewise.
14184 (fixup_go_packaging): Likewise.
14185 (process_full_comp_unit): Likewise.
14186 (process_full_type_unit): Likewise.
14187 (process_imported_unit_die): Likewise.
14188 (dwarf2_compute_name): Likewise.
14189 (dwarf2_physname): Likewise.
14190 (read_import_statement): Likewise.
14191 (create_cus_hash_table): Assign dwarf2_physname instead of
14192 objfile.
14193 (read_func_scope): Access objfile through dwarf2_per_objfile.
14194 (read_lexical_block_scope): Likewise.
14195 (read_call_site_scope): Likewise.
14196 (read_variable): Likewise.
14197 (dwarf2_rnglists_process): Likewise.
14198 (dwarf2_ranges_process): Likewise.
14199 (dwarf2_ranges_read): Likewise.
14200 (dwarf2_record_block_ranges): Likewise.
14201 (dwarf2_add_field): Likewise.
14202 (dwarf2_add_member_fn): Likewise.
14203 (read_structure_type): Likewise.
14204 (process_structure_scope): Likewise.
14205 (read_enumeration_type): Likewise.
14206 (read_array_type): Likewise.
14207 (read_common_block): Likewise.
14208 (read_namespace_type): Likewise.
14209 (read_namespace): Likewise.
14210 (read_module_type): Likewise.
14211 (read_tag_pointer_type): Likewise.
14212 (read_tag_ptr_to_member_type): Likewise.
14213 (read_tag_string_type): Likewise.
14214 (read_subroutine_type): Likewise.
14215 (read_typedef): Likewise.
14216 (read_base_type): Likewise.
14217 (attr_to_dynamic_prop): Likewise.
14218 (read_subrange_type): Likewise.
14219 (read_unspecified_type): Likewise.
14220 (load_partial_dies): Likewise.
14221 (read_partial_die): Likewise.
14222 (find_partial_die): Likewise.
14223 (guess_partial_die_structure_name): Likewise.
14224 (fixup_partial_die): Likewise.
14225 (read_attribute_value): Likewise.
14226 (read_addr_index_from_leb128): Likewise.
14227 (dwarf2_read_addr_index): Likewise.
14228 (dwarf2_string_attr): Likewise.
14229 (lnp_state_machine::check_line_address): Likewise.
14230 (dwarf_decode_lines_1): Likewise.
14231 (dwarf_decode_lines): Likewise.
14232 (dwarf2_start_symtab): Likewise.
14233 (var_decode_location): Likewise.
14234 (new_symbol_full): Likewise.
14235 (dwarf2_const_value_data): Likewise.
14236 (dwarf2_const_value_attr): Likewise.
14237 (dwarf2_const_value): Likewise.
14238 (die_type): Likewise.
14239 (die_containing_type): Likewise.
14240 (lookup_die_type): Likewise.
14241 (guess_full_die_structure_name): Likewise.
14242 (anonymous_struct_prefix): Likewise.
14243 (dwarf2_name): Likewise.
14244 (follow_die_ref_or_sig): Likewise.
14245 (follow_die_offset): Likewise.
14246 (follow_die_ref): Likewise.
14247 (dwarf2_fetch_die_loc_sect_off): Likewise.
14248 (dwarf2_fetch_constant_bytes): Likewise.
14249 (dwarf2_fetch_die_type_sect_off): Likewise.
14250 (dwarf2_get_die_type): Likewise.
14251 (follow_die_sig): Likewise.
14252 (decode_locdesc): Likewise.
14253 (dwarf2_per_cu_objfile): Likewise.
14254 (dwarf2_per_cu_text_offset): Likewise.
14255 (init_one_comp_unit): Assign dwarf2_per_objfile instead of
14256 objfile.
14257 (set_die_type): Access objfile through
14258 dwarf2_per_objfile.
14259
b01ba14d
SM
142602018-01-07 Simon Marchi <simon.marchi@ericsson.com>
14261
14262 * valprint.c (converted_character_d): Remove typedef.
14263 (DEF_VEC_O (converted_character_d)): Remove.
14264 (count_next_character): Use std::vector.
14265 (print_converted_chars_to_obstack): Likewise.
14266 (generic_printstr): Likewise.
14267
4d0fdd9b
SM
142682018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
14269
14270 * xml-support.h (struct gdb_xml_value): Add constructor.
14271 <value>: Change type to unique_xmalloc_ptr.
14272 (gdb_xml_value_s): Remove typedef.
14273 (DEF_VEC_O (gdb_xml_value_s)): Remove.
14274 (gdb_xml_element_start_handler): Change parameter type to
14275 std::vector.
14276 (xml_find_attribute): Likewise.
14277 * xml-support.c (xml_find_attribute): Change parameter type to
14278 std::vector and adjust.
14279 (gdb_xml_values_cleanup): Remove.
14280 (gdb_xml_parser::start_element): Adjust to std::vector.
14281 (xinclude_start_include): Change paraeter type to std::vector
14282 and adjust.
14283 * btrace.c (check_xml_btrace_version): Likewise.
14284 (parse_xml_btrace_block): Likewise.
14285 (parse_xml_btrace_pt_config_cpu): Likewise.
14286 (parse_xml_btrace_pt): Likewise.
14287 (parse_xml_btrace_conf_bts): Likewise.
14288 (parse_xml_btrace_conf_pt): Likewise.
14289 * memory-map.c (memory_map_start_memory): Likewise.
14290 (memory_map_start_property): Likewise.
14291 * osdata.c (osdata_start_osdata): Likewise.
14292 (osdata_start_item): Likewise.
14293 (osdata_start_column): Likewise.
14294 * remote.c (start_thread): Likewise.
14295 * solib-aix.c (library_list_start_library): Likewise.
14296 (library_list_start_list): Likewise.
14297 * solib-svr4.c (library_list_start_library): Likewise.
14298 (svr4_library_list_start_list): Likewise.
14299 * solib-target.c (library_list_start_segment): Likewise.
14300 (library_list_start_section): Likewise.
14301 (library_list_start_library): Likewise.
14302 (library_list_start_list): Likewise.
14303 * tracepoint.c (traceframe_info_start_memory): Likewise.
14304 (traceframe_info_start_tvar): Likewise.
14305 * xml-syscall.c (syscall_start_syscall): Likewise.
14306 * xml-tdesc.c (tdesc_start_target): Likewise.
14307 (tdesc_start_feature): Likewise.
14308 (tdesc_start_reg): Likewise.
14309 (tdesc_start_union): Likewise.
14310 (tdesc_start_struct): Likewise.
14311 (tdesc_start_flags): Likewise.
14312 (tdesc_start_enum): Likewise.
14313 (tdesc_start_field): Likewise.
14314 (tdesc_start_enum_value): Likewise.
14315 (tdesc_start_vector): Likewise.
14316
f979c73f
SM
143172018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
14318
14319 * extension.h (struct xmethod_worker) <clone>: Remove.
14320 * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
14321 Remove.
14322 (python_xmethod_worker::clone): Remove.
14323 * valops.c (find_overload_match): Use std::move instead of
14324 clone.
14325
ba18742c
SM
143262018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
14327
14328 * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
14329 (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
14330 <free_xmethod_worker_data>: Remove.
14331 <get_matching_xmethod_workers>: Chance VEC to std::vector.
14332 <get_xmethod_arg_types>: Remove.
14333 <get_xmethod_result_type>: Remove.
14334 <invoke_xmethod>: Remove.
14335 * extension.c (new_xmethod_worker): Remove.
14336 (clone_xmethod_worker): Remove.
14337 (get_matching_xmethod_workers): Return void, pass std::vector by
14338 pointer.
14339 (get_xmethod_arg_types): Rename to...
14340 (xmethod_worker::get_arg_types): ... this, and adjust.
14341 (get_xmethod_result_type): Rename to...
14342 (xmethod_worker::get_result_type): ... this, and adjust.
14343 (invoke_xmethod): Remove.
14344 (free_xmethod_worker): Remove.
14345 (free_xmethod_worker_vec): Remove.
14346 * extension.h (enum ext_lang_rc): Move here from
14347 extension-priv.h.
14348 (struct xmethod_worker): Add constructor and destructor.
14349 <data>: Remove.
14350 <value>: Remove.
14351 <invoke, clone, do_get_result_type, do_get_arg_types>: New
14352 virtual pure methods.
14353 <get_arg_types, get_result_type>: New methods.
14354 (xmethod_worker_ptr): Remove typedef.
14355 (DEF_VEC_P (xmethod_worker_ptr)): Remove.
14356 (xmethod_worker_vec): Remove typedef.
14357 (xmethod_worker_up): New typedef.
14358 (invoke_xmethod): Remove.
14359 (clone_xmethod_worker): Remove.
14360 (free_xmethod_worker): Remove.
14361 (free_xmethod_worker_vec): Remove.
14362 (get_xmethod_arg_types): Remove.
14363 (get_xmethod_result_type): Remove.
14364 * valops.c (find_method_list): Use std::vector, don't use
14365 intermediate vector.
14366 (value_find_oload_method_list): Use std::vector.
14367 (find_overload_match): Use std::vector.
14368 (find_oload_champ): Use std::vector.
14369 * value.c (value_free): Use operator delete.
14370 (value_of_xmethod): Rename to...
14371 (value_from_xmethod): ... this. Don't assign
14372 xmethod_worker::value, take rvalue-reference.
14373 (result_type_of_xmethod): Adjust.
14374 (call_xmethod): Adjust.
14375 * value.h: Include extension.h.
14376 (struct xmethod_worker): Don't forward-declare.
14377 (value_of_xmethod): Rename to...
14378 (value_from_xmethod): ... this, take rvalue-reference.
14379 * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
14380 (struct python_xmethod_worker): ... this, add constructor and
14381 destructor.
14382 <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
14383 (gdbpy_free_xmethod_worker_data): Rename to...
14384 (python_xmethod_worker::~python_xmethod_worker): ... this and
14385 adjust.
14386 (gdbpy_clone_xmethod_worker_data): Rename to...
14387 (python_xmethod_worker::clone): ... this and adjust.
14388 (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
14389 temporary vector.
14390 (gdbpy_get_xmethod_arg_types): Rename to...
14391 (python_xmethod_worker::do_get_arg_types): ... this and adjust.
14392 (gdbpy_get_xmethod_result_type): Rename to...
14393 (python_xmethod_worker::do_get_result_type): ... this and
14394 adjust.
14395 (gdbpy_invoke_xmethod): Rename to...
14396 (python_xmethod_worker::invoke): ... this and adjust.
14397 (new_python_xmethod_worker): Rename to...
14398 (python_xmethod_worker::python_xmethod_worker): ... this and
14399 adjust.
14400 * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
14401 Remove.
14402 (gdbpy_free_xmethod_worker_data): Remove.
14403 (gdbpy_get_matching_xmethod_workers): Use std::vector.
14404 (gdbpy_get_xmethod_arg_types): Remove.
14405 (gdbpy_get_xmethod_result_type): Remove.
14406 (gdbpy_invoke_xmethod): Remove.
14407 * python/python.c (python_extension_ops): Remove obsolete
14408 callbacks.
14409
e379cee6
PA
144102018-01-05 Pedro Alves <palves@redhat.com>
14411
14412 PR gdb/18653
14413 * common/signals-state-save-restore.c
14414 (save_original_signals_state): New parameter 'quiet'. Warn if we
14415 find a custom handler preinstalled, instead of internal erroring.
14416 But only warn if !quiet.
14417 * common/signals-state-save-restore.h
14418 (save_original_signals_state): New parameter 'quiet'.
14419 * main.c (captured_main_1): Move save_original_signals_state call
14420 after option handling, and pass QUIET.
14421
a655456c
PA
144222018-01-05 Pedro Alves <palves@redhat.com>
14423
14424 * spu-tdep.c (spu_catch_start): Pass
14425 symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
14426
de63c46b
PA
144272018-01-05 Pedro Alves <palves@redhat.com>
14428
14429 PR gdb/22670
14430 * ada-lang.c (literal_symbol_name_matcher): New function.
14431 (ada_get_symbol_name_matcher): Use it for
14432 symbol_name_match_type::SEARCH_NAME.
14433 * block.c (block_lookup_symbol): New parameter 'match_type'. Pass
14434 it down instead of assuming symbol_name_match_type::FULL.
14435 * block.h (block_lookup_symbol): New parameter 'match_type'.
14436 * c-valprint.c (print_unpacked_pointer): Use
14437 lookup_symbol_search_name instead of lookup_symbol.
14438 * compile/compile-object-load.c (get_out_value_type): Pass down
14439 symbol_name_match_type::SEARCH_NAME.
14440 * cp-namespace.c (cp_basic_lookup_symbol): Pass down
14441 symbol_name_match_type::FULL.
14442 * cp-support.c (cp_get_symbol_name_matcher): Handle
14443 symbol_name_match_type::SEARCH_NAME.
14444 * infrun.c (insert_exception_resume_breakpoint): Use
14445 lookup_symbol_search_name.
14446 * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
14447 * psymtab.c (maintenance_check_psymtabs): Use
14448 symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
14449 * stack.c (print_frame_args): Use lookup_symbol_search_name and
14450 SYMBOL_SEARCH_NAME.
14451 * symtab.c (lookup_local_symbol): Don't demangle the lookup name
14452 if symbol_name_match_type::SEARCH_NAME.
14453 (lookup_symbol_in_language): Pass down
14454 symbol_name_match_type::FULL.
14455 (lookup_symbol_search_name): New.
14456 (lookup_language_this): Pass down
14457 symbol_name_match_type::SEARCH_NAME.
14458 (lookup_symbol_aux, lookup_local_symbol): New parameter
14459 'match_type'. Pass it down.
14460 * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
14461 (lookup_symbol_search_name): New declaration.
14462 (lookup_symbol_in_block): New 'match_type' parameter.
14463
f98fc17b
PA
144642018-01-05 Pedro Alves <palves@redhat.com>
14465
14466 PR gdb/22670
14467 * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
14468 ada_lookup_symbol.
14469 (ada_lookup_symbol): Reimplement in terms of
14470 ada_lookup_symbol_list, bits factored out from
14471 ada_lookup_encoded_symbol.
14472
342f8240
JB
144732018-01-05 Joel Brobecker <brobecker@adacore.com>
14474
14475 * ada-exp.y (write_object_renaming): When subscripting an array
14476 using a symbol as the index, pass the block in call to
14477 ada_lookup_encoded_symbol when looking that symbol up.
14478
7150d33c
JG
144792018-01-05 Jerome Guitton <guitton@adacore.com>
14480
14481 * ada-lang.c (ada_array_length): Use ada_index_type instead of
14482 TYPE_INDEX_TYPE.
14483
cc0e770c
JB
144842018-01-05 Joel Brobecker <brobecker@adacore.com>
14485
14486 * ada-lang.c (ada_to_fixed_value_create): Add handling of
14487 the case where VALUE_LVAL (val0) is not lval_memory.
14488
f79da888 144892018-01-05 Xavier Roirand <roirand@adacore.com>
e3861a03
XR
14490
14491 * ada-valprint.c (print_optional_low_bound): Handle
14492 character-indexed array printing like boolean-indexed array
14493 printing.
14494
cd385f94
JB
144952018-01-05 Joel Brobecker <brobecker@adacore.com>
14496
14497 * NEWS: Create a new section for the next release branch.
14498 Rename the section of the current branch, now that it has
14499 been cut.
14500
09aca949
JB
145012018-01-05 Joel Brobecker <brobecker@adacore.com>
14502
14503 GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
14504 * version.in: Bump version to 8.1.50.DATE-git.
14505
9f757bf7
XR
145062018-01-03 Xavier Roirand <roirand@adacore.com>
14507
14508 * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
14509 Add field.
14510 * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
14511 Add field.
14512 (default_exception_support_info) <catch_handlers_sym>: Add field.
14513 (exception_support_info_fallback) <catch_handlers_sym>: Add field.
14514 (ada_exception_name_addr_1): Add "catch handlers" handling.
14515 (ada_exception_catchpoint_cond_string) <ex>: New parameter.
14516 Update all callers.
14517 (create_excep_cond_exprs) <ex>: Add parameter.
14518 (re_set_exception): Update create_excep_cond_exprs call.
14519 (print_it_exception, print_one_exception, print_mention_exception)
14520 (print_recreate_exception): Add "catch handler" handling.
14521 (allocate_location_catch_handlers, re_set_catch_handlers)
14522 (check_status_catch_handlers, print_it_catch_handlers)
14523 (print_one_catch_handlers, print_mention_catch_handlers)
14524 (print_recreate_catch_handlers): New function.
14525 (catch_handlers_breakpoint_ops): New variable.
14526 (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
14527 Add parameter. Add "catch handler" handling.
14528 (ada_exception_sym_name, ada_exception_breakpoint_ops):
14529 Add "catch handler" handling.
14530 (ada_exception_catchpoint_cond_string): Add "catch handler"
14531 handling.
14532 (create_ada_exception_catchpoint): Update create_excep_cond_exprs
14533 call.
14534 (catch_ada_handlers_command): New function.
14535 (initialize_ada_catchpoint_ops): Initialize "catch handlers"
14536 operations structure.
14537 (_initialize_ada_language): Add "catch handlers" command entry.
14538 * NEWS: Document "catch handlers" feature.
14539
9fe561ab
JB
145402018-01-02 Joel Brobecker <brobecker@adacore.com>
14541
14542 * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
14543 account when creating the array type of the slice.
14544 (ada_value_slice): Likewise.
14545
a405673c
JB
145462018-01-02 Joel Brobecker <brobecker@adacore.com>
14547
14548 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
14549 New enum value.
14550 (create_array_type_with_stride): Add byte_stride_prop parameter.
14551 * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
14552 New parameter. Update all callers in this file.
14553 (array_type_has_dynamic_stride): New function.
14554 (is_dynamic_type_internal, resolve_dynamic_array): Add handling
14555 of arrays with dynamic byte strides.
14556 * dwarf2read.c (read_array_type): Add support for dynamic
14557 DW_AT_byte_stride attributes.
14558
74a2f8ff
JB
145592018-01-02 Joel Brobecker <brobecker@adacore.com>
14560
14561 * dwarf2read.c (read_unspecified_type): Treat
14562 DW_TAG_enumeration_type DIEs from Ada units as stubs.
14563
e2882c85
JB
145642018-01-01 Joel Brobecker <brobecker@adacore.com>
14565
14566 Update copyright year range in all GDB files.
14567
5e70ee09 145682018-01-01, 18 Joel Brobecker <brobecker@adacore.com>
1690bb24
JB
14569
14570 * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
14571 and gdb/testsuite/gdb.base/step-line.c.
14572
0f0c98a8
JB
145732018-01-01 Joel Brobecker <brobecker@adacore.com>
14574
14575 * copyright.py (main): Dump the contents of
14576 MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
14577 even if BY_HAND is empty.
14578
82e1e79a
JB
145792018-01-01 Joel Brobecker <brobecker@adacore.com>
14580
14581 * top.c (print_gdb_version): Update Copyright year in version
14582 message.
14583
053f54e5 145842018-01-01 Joel Brobecker <brobecker@adacore.com>
47fea877 14585
053f54e5 14586 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
47fea877 14587
053f54e5 14588For older changes see ChangeLog-2017.
c906108c
SS
14589\f
14590Local Variables:
14591mode: change-log
14592left-margin: 8
14593fill-column: 74
14594version-control: never
57da7796 14595coding: utf-8
c906108c 14596End:
This page took 2.943019 seconds and 4 git commands to generate.