Updated Spanish translation for the ld subdirectory.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
a99bc3d2
JB
12018-11-14 Joel Brobecker <brobecker@adacore.com>
2
3 * ada-lang.c (move_bits): Delete. Update all callers to use
4 copy_bitwise instead.
5 * dwarf2loc.c (copy_bitwise, bits_to_str::bits_to_str)
6 (selftests::check_copy_bitwise, selftests::copy_bitwise_tests):
7 Move from here to utils.c.
8 (_initialize_dwarf2loc): Remove call to register copy_bitwise
9 selftests.
10 * utils.h (copy_bitwise): Add declaration.
11 * utils.c (copy_bitwise, bits_to_str::bits_to_str)
12 (selftests::check_copy_bitwise, selftests::copy_bitwise_tests):
13 Moved here from dwarf2loc.c.
14 (_initialize_utils): Register copy_bitwise selftests.
15
174f8ac8
JW
162018-11-14 Jim Wilson <jimw@sifive.com>
17
8b2d40cb
JW
18 * riscv-tdep.c (struct riscv_arg_info): New field is_unnamed.
19 (riscv_call_arg_scalar_int): If unnamed arg with twice xlen alignment,
20 then increment next_regnum if odd.
21 (riscv_arg_location): New arg is_unnamed. Set ainfo->is_unnamed.
22 (riscv_push_dummy_call): New local ftype. Call check_typedef to set
23 function type. Pass new arg to riscv_arg_location based on function
24 type.
25 (riscv_return_value): Pass new arg to riscv_arg_location.
26
ef2de9e7
JW
27 * riscv-tdep.c (BIGGEST_ALIGNMENT): New.
28 (riscv_type_alignment) <TYPE_CODE_ARRAY>: If TYPE_VECTOR, return min
29 of TYPE_LENGTH and BIGGEST_ALIGNMENT.
30
174f8ac8
JW
31 * riscv-tdep.c (riscv_call_arg_scalar_int): Use std::min when
32 setting len. New local align, set to max of arg align and xlen,
33 and pass to first riscv_assign_stack_location call.
34
53a89d6e
SM
352018-11-12 Simon Marchi <simon.marchi@polymtl.ca>
36
37 * skip.c (complete_skip_number): New function.
38 (_initialize_step_skip): Add completers to some skip commands.
39
eefce37f
TT
402018-11-09 Tom Tromey <tom@tromey.com>
41
42 * remote.c (remote_g_packet_guess_s): Remove typedef and DEF_VEC.
43 (struct remote_g_packet_data): Derive from allocate_on_obstack.
44 <guesses>: Now a std::vector.
45 (remote_g_packet_data_init, register_remote_g_packet_guess):
46 Update.
47 (remote_read_description_p): Update. Return bool.
48 (remote_target::read_description): Update.
49 (struct remote_g_packet_guess): Add constructor.
50
2179fbc3
TT
512018-11-09 Tom Tromey <tom@tromey.com>
52
53 * common/scoped_fd.h (class scoped_fd): Add move constructor and
54 move assignment operator.
55 * psymtab.c (psymtab_to_fullname): Update.
56 * source.h (open_source_file): Return scoped_fd.
57 (find_and_open_source): Likewise.
58 * source.c (open_source_file): Return scoped_fd.
59 (get_filename_and_charpos): Update.
60 (print_source_lines_base): Update. Use scoped_fd::to_file.
61 (forward_search_command): Likewise.
62 (reverse_search_command): Likewise.
63 (find_and_open_source): Return scoped_fd.
64 * tui/tui-source.c (tui_set_source_content): Update. Use
65 gdb_file_up.
66
9c122c7f
JB
672018-11-09 John Baldwin <jhb@FreeBSD.org>
68
69 * minsyms.c (minimal_symbol_reader::install): Fix unsigned
70 overflow.
71
5d762de0
HAQ
722018-11-09 Hafiz Abid Qadeer <abidh@codesourcery.com>
73
74 * configure: Regenerate.
75
9325300d
TV
762018-11-09 Tom de Vries <tdevries@suse.de>
77
78 * symtab.c (symbol_set_names): Call symbol_find_demangled_name
79 unconditionally, to set the language of the symbol. Manage freeing
80 returned pointer using gdb::unique_xmalloc_ptr.
81
9c710e11
TT
822018-11-08 Tom Tromey <tom@tromey.com>
83
84 * record.c (require_record_target): Upper-case "<TAB>".
85
3c6618cd
TT
862018-11-08 Tom Tromey <tom@tromey.com>
87
88 * python/lib/gdb/command/pretty_printers.py
89 (InfoPrettyPrinter.invoke): Don't indent "objfile" heading.
90
20f0d60d
TT
912018-11-08 Tom Tromey <tom@tromey.com>
92
93 PR gdb/23555:
94 PR gdb/23838:
95 * target.h (target_supports_terminal_ours): Return bool.
96 * target.c (target_supports_terminal_ours): Handle case where
97 current_top_target returns nullptr. Return bool.
98
d4718d5c
JB
992018-11-08 Joel Brobecker <brobecker@adacore.com>
100
101 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1):
102 return the correct count for potential HFAs.
103
b5420128
JB
1042018-11-08 Jan Beulich <jbeulich@suse.com>
105
106 * i387-tdep.c (i387_supply_xsave): Split handling of
107 X86_XSTATE_ZMM_H and X86_XSTATE_ZMM.
108 (i387_collect_xsave): Likewise.
109
17cf2897
AB
1102018-11-08 Andrew Burgess <andrew.burgess@embecosm.com>
111
112 * riscv-tdep.c (riscv_insn::decode): Update header comment.
113 (riscv_frame_this_id): Catch errors thrown while building the
114 frame cache, leave the frame id as the default, which is the outer
115 frame id.
116
76136aed
JB
1172018-11-07 Joel Brobecker <brobecker@adacore.com>
118
119 * ada-lang.c (read_atcb): Only set task_info->called_task if
120 task_info->state == Entry_Caller_Sleep.
121 (print_ada_task_info): Do not check task_info->state before
122 checking task_info->called_task.
123 (info_task): Likewise.
124
07deea26
JB
1252018-11-07 Joel Brobecker <brobecker@adacore.com>
126
127 * ada-tasks.c (read_atcb): Clear task_info before computing
128 the value of each of its fields.
129
35ee2dc2
AB
1302018-11-07 Andrew Burgess <andrew.burgess@embecosm.com>
131
132 * dwarf2read.c (dwarf2_init_integer_type): Check for name being
133 NULL before dereferencing it.
134
31aceee8
TV
1352018-11-06 Tom de Vries <tdevries@suse.de>
136
137 * linux-tdep.c (linux_vsyscall_range_raw): Use xmalloc to allocate
138 program headers.
139
f11acc5e
MF
1402018-11-06 Max Filippov <jcmvbkbc@gmail.com>
141
142 * configure.tgt (xtensa*-*-linux*): Change to xtensa*-*-*linux*
143 so that it applies to uclinux as well.
144
9e237747
MM
1452018-11-06 Marius Muench <marius.muench@eurecom.fr>
146
147 * arm-tdep.c (arm_scan_prologue): Don't dereference FP reg
148 when on AAPCS.
149
bcecc11d
JB
1502018-11-06 John Baldwin <jhb@FreeBSD.org>
151
152 * riscv-fbsd-nat.c (getregs_supplies): Return true for
153 RISCV_CSR_SSTATUS_REGNUM.
154
bb20ccab
PW
1552018-11-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
156
157 * source.c (open_source_file): Fix leak by transferring the
158 current s->fullname to the unique_xmalloc_ptr fullname given
159 to find_and_open_source.
160
a31abe80
TT
1612018-11-04 Tom Tromey <tom@tromey.com>
162
163 * varobj.c (install_default_visualizer): Update.
164 * python/python-internal.h (gdbpy_get_varobj_pretty_printer):
165 Return gdbpy_ref.
166 * python/py-prettyprint.c (search_pp_list): Return gdbpy_ref.
167 (find_pretty_printer_from_progspace)
168 (find_pretty_printer_from_gdb, find_pretty_printer)
169 (gdbpy_get_varobj_pretty_printer): Return gdbpy_ref.
170 (gdbpy_get_varobj_pretty_printer, gdbpy_default_visualizer):
171 Update.
172
833d985d
TT
1732018-11-04 Tom Tromey <tom@tromey.com>
174
175 * python/python.c (gdbpy_parameter_value): Update.
176 * python/python-internal.h (python_string_to_unicode)
177 (python_string_to_target_python_string)
178 (host_string_to_python_string): Return gdbpy_ref.
179 * python/py-utils.c (python_string_to_unicode)
180 (unicode_to_encoded_python_string)
181 (unicode_to_target_python_string)
182 (python_string_to_target_string)
183 (python_string_to_target_python_string): Return gdbpy_ref.
184 (python_string_to_host_string): Update.
185 (host_string_to_python_string): Return gdbpy_ref.
186 * python/py-symtab.c (stpy_get_filename, stpy_get_producer)
187 (stpy_fullname): Update.
188 * python/py-progspace.c (pspy_get_filename, pspy_solib_name):
189 Update.
190 * python/py-prettyprint.c (print_string_repr): Update.
191 * python/py-objfile.c (objfpy_get_filename, objfpy_get_username)
192 (objfpy_get_build_id): Update.
193 * python/py-breakpoint.c (bppy_get_location)
194 (bppy_get_expression, bppy_get_condition, bppy_get_commands):
195 Update.
196
12dfa12a
TT
1972018-11-04 Tom Tromey <tom@tromey.com>
198
199 * python/python-internal.h (gdb_py_object_from_longest)
200 (gdb_py_object_from_ulongest): Return gdbpy_ref.
201 * python/py-value.c (valpy_int): Update.
202 * python/py-utils.c (gdb_py_object_from_longest): Return
203 gdbpy_ref.
204 (gdb_py_object_from_ulongest): Likewise.
205 * python/py-type.c (typy_get_alignof): Update.
206 * python/py-linetable.c (ltpy_get_all_source_lines)
207 (ltpy_entry_get_line, ltpy_entry_get_pc): Update.
208 * python/py-block.c (blpy_get_start, blpy_get_end): Update.
209
470678d7
PW
2102018-11-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
211
212 * ada-lang.c (_initialize_ada_language): Fix typo.
213
814fa4f6
PW
2142018-11-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
215
216 * language.c (type): Remove.
217 (_initialize_language): Remove assignment to type.
218
3c6dd3d1 2192018-11-02 Joel Brobecker <brobecker@adacore.com>
e8bf1ce4
JB
220
221 * aarch64-ravenscar-thread.h, aarch64-ravenscar-thread.c: New files.
222 * aarch64-tdep.c: #include "aarch64-ravenscar-thread.h".
223 (aarch64_gdbarch_init): Add call to register_aarch64_ravenscar_ops.
224 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-ravenscar-thread.o.
225 (HFILES_NO_SRCDIR): Add aarch64-ravenscar-thread.h.
226 (ALLDEPFILES): Add aarch64-ravenscar-thread.c.
227 * configure.tgt (cpu_obs) [aarch64*-*-*]: Add ravenscar-thread.o
228 and aarch64-ravenscar-thread.o.
229 * NEWS: Add entry documenting Ravenscar tasking support
230 on AArch64 ELF.
231
d54cfd76
PW
2322018-11-02 Matthew Malcomson <matthew.malcomson@arm.com>
233
234 * symtab.c (info_functions_command): Initialize quiet flag.
235 * stack.c (info_args_command): Likewise.
236
3ba2ee38
JW
2372018-11-01 Jim Wilson <jimw@sifive.com>
238
239 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): New local unaligned_p.
240 Set if pcptr if unaligned. Return 2 if unaligned_p true. Update
241 debugging messages.
242
e2b7af72
JB
2432018-11-01 Joel Brobecker <brobecker@adacore.com>
244
245 * ada-lang.c (ada_watch_location_expression): New function.
246 (ada_language_defn): Set la_watch_location_expression to
247 ada_watch_location_expression.
248
8b578f9c
JB
2492018-11-01 Joel Brobecker <brobecker@adacore.com>
250
251 * print-utils.c (int_string): Remove unnecessary trailing spaces.
252
1cc62f2e
JB
2532018-11-01 Joel Brobecker <brobecker@adacore.com>
254
255 * rs6000-tdep.c (skip_prologue): Fix potential negative left
256 shifting.
257
e1c3a373
JG
2582018-11-01 Jerome Guitton <guitton@adacore.com>
259 Joel Brobecker <brobecker@adacore.com>
260
261 * defs.h (enum gdb_osabi): Add GDB_OSABI_PIKEOS.
262 * osabi.c (gdb_osabi_names): Add name for GDB_OSABI_PIKEOS.
263 * arm-pikeos-tdep.c: New file.
264 * configure.tgt: Add arm-pikeos-tdep.o to the case of ARM
265 embedded system.
266 * Makefile.in (ALL_TARGET_OBS): Add arm-pikeos-tdep.o.
267
e8d8cce6
SM
2682018-11-01 Simon Marchi <simon.marchi@ericsson.com>
269
270 * common/pathstuff.c (get_standard_temp_dir): New.
271 * common/pathstuff.h (get_standard_temp_dir): New.
272 * config.in: Re-generate.
273 * configure: Re-generate.
274 * configure.ac: Don't check for mkdtemp.
275 * gnulib/aclocal-m4-deps.mk: Re-generate.
276 * gnulib/aclocal.m4: Re-generate.
277 * gnulib/config.in: Re-generate.
278 * gnulib/configure: Re-generate.
279 * gnulib/import/Makefile.am: Re-generate.
280 * gnulib/import/Makefile.in: Re-generate.
281 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
282 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
283 * gnulib/import/m4/mkdtemp.m4: New file.
284 * gnulib/import/mkdtemp.c: New file.
285 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES):
286 Add mkdtemp module.
287 * unittests/mkdir-recursive-selftests.c (test): Use
288 get_standard_temp_dir.
289 (_initialize_mkdir_recursive_selftests): Remove HAVE_MKDTEMP
290 ifdef.
291 * compile/compile.c (get_compile_file_tempdir): Likewise.
292
cdcda965
SM
2932018-11-01 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
294
295 * rs6000-aix-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
296 (SIG_FRAME_LR_OFFSET64): New define.
297 (SIG_FRAME_FP_OFFSET64): New define.
298 (aix_sighandle_frame_cache): New Function.
299 (aix_sighandle_frame_this_id): New Function.
300 (aix_sighandle_frame_prev_register): New Function.
301 (aix_sighandle_frame_sniffer): New Function.
302 (aix_sighandle_frame_unwind): New global variable.
303 (rs6000_aix_init_osabi): Install new frame unwinder.
304
656efb5e
SDJ
3052018-10-31 Sergio Durigan Junior <sergiodj@redhat.com>
306
307 PR gdb/23835
308 * common/common-defs.h: Don't redefine _FORTIFY_SOURCE if it's
309 already defined.
310
64f57f3d
PFC
3112018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
312
313 * ppc-linux-nat.c: Include nat/linux-ptrace.h.
314
eb77c9df
AB
3152018-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
316
317 * dwarf2read.c (struct dwarf2_cu): Add producer_is_icc field.
318 (producer_is_icc): New function.
319 (check_producer): Set producer_is_icc field on dwarf2_cu.
320 (dwarf2_init_integer_type): New function.
321 (read_base_type): Call dwarf2_init_integer_type instead of
322 init_integer_type in all cases.
323 (dwarf2_cu::dwarf2_cu): Initialise producer_is_icc field.
324 * valprint.c (maybe_negate_by_bytes): Add an assertion that the
325 LEN is greater than 0.
326
4d5d1049
TT
3272018-10-30 Tom Tromey <tom@tromey.com>
328
329 * main.c (captured_main_1): Check return value of bfd_init.
330
fd332753
SDJ
3312018-10-29 Sergio Durigan Junior <sergiodj@redhat.com>
332
333 * common/offset-type.h (DEFINE_OFFSET_REL_OP): Delete.
334 Adjust comments.
335
30a7953d
RO
3362018-10-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
337
338 * procfs.c: Include common/pathstuff.h.
339
a3d72268
AB
3402018-10-28 Andrew Burgess <andrew.burgess@embecosm.com>
341
342 * riscv-linux-nat.c (riscv_linux_nat_target::fetch_registers):
343 Add missing braces. No functional change.
344
cd948f5b
PW
3452018-10-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
346
347 * macrocmd.c (info_macro_command): Use report_unrecognized_option_error
348 to report a bad option and fix indentation.
349 * demangle.c (demangle_command): Use report_unrecognized_option_error
350 to report a bad option and correctly report the bad option.
351
b50a8b9a
TT
3522018-10-27 Tom Tromey <tom@tromey.com>
353
354 PR cli/23364:
355 * darwin-nat.c (copied_shell): New global.
356 (may_have_sip): Rename from should_disable_startup_with_shell.
357 (copy_shell_to_cache, maybe_cache_shell): New functions.
358 (darwin_nat_target::create_inferior): Update. Use
359 copied_shell.
360
36033ef5
TT
3612018-10-27 Tom Tromey <tom@tromey.com>
362
363 * unittests/scoped_fd-selftests.c (test_to_file): New function.
364 (run_tests): Call test_to_file.
365 * dwarf-index-write.c (write_psymtabs_to_index): Do not reopen
366 temporary files.
367 * common/scoped_fd.h (scoped_fd::to_file): New method.
368
b3279b60
TT
3692018-10-27 Tom Tromey <tom@tromey.com>
370
371 * unittests/scoped_mmap-selftests.c (test_normal): Use
372 gdb_mkostemp_cloexec.
373 * unittests/scoped_fd-selftests.c (test_destroy, test_release):
374 Use gdb_mkostemp_cloexec.
375 * gnulib/aclocal-m4-deps.mk, gnulib/aclocal.m4,
376 gnulib/config.in, gnulib/configure,
377 gnulib/import/Makefile.am, gnulib/import/Makefile.in,
378 gnulib/import/m4/gnulib-cache.m4,
379 gnulib/import/m4/gnulib-comp.m4: Update.
380 * gnulib/import/m4/mkostemp.m4: New file.
381 * gnulib/import/m4/mkstemp.m4: Remove.
382 * gnulib/import/mkostemp.c: New file.
383 * gnulib/import/mkstemp.m4: Remove.
384 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Remove
385 mkstemp, add mkostemp. Apply new patch.
386 * gnulib/import/stdlib.in.h: Apply patch.
387 * gnulib/patches/0002-mkostemp-mkostemps-Fix-compilation-error-in-C-mode-o.patch:
388 New file.
389 * dwarf-index-write.c (write_psymtabs_to_index): Use
390 gdb_mkostemp_cloexec.
391 * common/filestuff.h (gdb_mkostemp_cloexec): New function.
392
e418a61a
TT
3932018-10-27 Tom Tromey <tom@tromey.com>
394
395 * unittests/mkdir-recursive-selftests.c: New file.
396 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
397 unittests/mkdir-recursive-selftests.c.
398 * dwarf-index-cache.c (mkdir_recursive): Move to
399 common/filestuff.c.
400 (index_cache::store): Check return value of mkdir_recursive.
401 (create_dir_and_check, test_mkdir_recursive): Move to new file.
402 (_initialize_index_cache): Don't register test.
403 * common/filestuff.h (mkdir_recursive): Declare.
404 * common/filestuff.c (mkdir_recursive): Move from
405 dwarf-index-cache.c. Return bool.
406
29be4d9d
TT
4072018-10-27 Tom Tromey <tom@tromey.com>
408
409 * dwarf-index-write.c (write_psymtabs_to_index): Move
410 make_temp_filename to common/pathstuff.c.
411 * common/pathstuff.h (make_temp_filename): Declare.
412 * common/pathstuff.c (make_temp_filename): New function, moved
413 from dwarf-index-write.c.
414
974e6844
TT
4152018-10-27 Tom Tromey <tom@tromey.com>
416
417 * procfs.c (procfs_target::create_inferior): Use get_shell.
418 * cli/cli-cmds.c (shell_escape): Use get_shell.
419 * windows-nat.c (windows_nat_target::create_inferior): Use
420 get_shell.
421 * common/pathstuff.c (get_shell): New function.
422 * nat/fork-inferior.c (SHELL_FILE, get_startup_shell): Remove.
423 (fork_inferior): Use get_shell.
424 * common/pathstuff.h (get_shell): Declare.
425
e0a7911f
PW
4262018-10-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
427
428 * NEWS: Mention changes to 'info [args|functions|locals|variables]'
429
12615cba
PW
4302018-10-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
431
432 * stack.c (print_variable_and_value_data): Add preg and treg.
433 (print_frame_local_vars): Add quiet, regexp and t_regexp arguments,
434 and update callers.
435 (print_frame_arg_vars): Likewise.
436 (prepare_reg): New function.
437 (info_locals_command): Extract info print args and use them.
438 (info_args_command): Likewise.
439 (_initialize_stack): Modify on-line help.
440 * symtab.c (treg_matches_sym_type_name): New function.
441 (search_symbols): New arg t_regexp.
442 (symtab_symbol_info): New args quiet, regexp, t_regexp.
443 (info_variables_command): Extract info print args and use them.
444 (info_functions_command): Likewise.
445 (info_types_command): Update call to symtab_symbol_info.
446 (_initialize_symtab): Modify on-line help.
447 * symtab.h (treg_matches_sym_type_name): New function.
448 (search_symbols): New t_regexp arg.
449
0d4cad90
PW
4502018-10-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
451
452 * cli-utils.c (extract_arg_maybe_quoted): New function.
453 (extract_info_print_args): New function.
454 (info_print_args_help): New function.
455 (report_unrecognized_option_error): New function.
456 * cli-utils.h (extract_arg_maybe_quoted): New function.
457 (extract_info_print_args): New function.
458 (info_print_args_help): New function.
459 (report_unrecognized_option_error): New function.
460
4c39bc03
TT
4612018-10-26 Tom Tromey <tom@tromey.com>
462
463 * dwarf2read.c (recursively_compute_inclusions): Use std::vector.
464 (compute_compunit_symtab_includes): Update.
465 * symtab.h: (symtab_ptr): Remove typedef. Don't define a VEC.
466 (compunit_symtab_ptr): Likewise.
467
fd2b4de5
JB
4682018-10-26 John Baldwin <jhb@FreeBSD.org>
469
470 * fbsd-tdep.c (fbsd_print_auxv_entry): Only use
471 default_print_auxv_entry for specific tag values.
472
d7ded98f
JB
4732018-10-26 John Baldwin <jhb@FreeBSD.org>
474
475 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_HWCAP2.
476
8a613826
JW
4772018-10-26 Jim Wilson <jimw@sifive.com>
478
77c6f5fc
JW
479 * riscv-linux-tdep.c: Include tramp-frame.h and trad-frame.h.
480 (riscv_linux_sigframe_init): Declare.
481 (RISCV_INST_LI_A7_SIGRETURN, RISCV_INT_ECALL): New.
482 (riscv_linux_sigframe): New.
483 (SIGFRAME_SIGINFO_SIZE, UCONTEXT_MCONTEXT_OFFSET): New.
484 (riscv_linux_sigframe_init): Define.
485 (riscv_linux_init_abi): Call tramp_frame_prepend_unwinder.
486
8a613826
JW
487 * riscv-tdep.c (riscv_isa_xlen): Refer to riscv-tdep.h comment.
488 (riscv_isa_flen): Likewise. Drop static.
489 * riscv-tdep.h (riscv_isa_xlen): Move riscv-tdep.c comment to here.
490 (riscv_isa_flen): Likewise. Declare.
491
8d619c01
EBM
4922018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
493 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
494
495 * arch/ppc-linux-tdesc.h (tdesc_powerpc_isa207_htm_vsx32l)
496 (tdesc_powerpc_isa207_htm_vsx64l): Declare.
497 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_TM_SPRREGSET)
498 (PPC32_LINUX_SIZEOF_CGPRREGSET, PPC64_LINUX_SIZEOF_CGPRREGSET)
499 (PPC_LINUX_SIZEOF_CFPRREGSET, PPC_LINUX_SIZEOF_CVMXREGSET)
500 (PPC_LINUX_SIZEOF_CVSXREGSET, PPC_LINUX_SIZEOF_CPPRREGSET)
501 (PPC_LINUX_SIZEOF_CDSCRREGSET, PPC_LINUX_SIZEOF_CTARREGSET):
502 Define.
503 (struct ppc_linux_features) <htm>: New field.
504 (ppc_linux_no_features): Add initializer for htm field.
505 * arch/ppc-linux-common.c (ppc_linux_match_description): Return
506 new tdescs.
507 * nat/ppc-linux.h (PPC_FEATURE2_HTM, NT_PPC_TM_CGPR)
508 (NT_PPC_TM_CFPR, NT_PPC_TM_CVMX, NT_PPC_TM_CVSX)
509 (NT_PPC_TM_SPR, NT_PPC_TM_CTAR, NT_PPC_TM_CPPR, NT_PPC_TM_CDSCR):
510 Define if not already defined.
511 * features/Makefile (WHICH): Add rs6000/powerpc-isa207-htm-vsx32l
512 and rs6000/powerpc-isa207-htm-vsx64l.
513 (XMLTOC): Add rs6000/powerpc-isa207-htm-vsx32l.xml and
514 rs6000/powerpc-isa207-htm-vsx64l.xml.
515 * features/rs6000/power-htm-spr.xml: New file.
516 * features/rs6000/power-htm-core.xml: New file.
517 * features/rs6000/power64-htm-core.xml: New file.
518 * features/rs6000/power-htm-fpu.xml: New file.
519 * features/rs6000/power-htm-altivec.xml: New file.
520 * features/rs6000/power-htm-vsx.xml: New file.
521 * features/rs6000/power-htm-ppr.xml: New file.
522 * features/rs6000/power-htm-dscr.xml: New file.
523 * features/rs6000/power-htm-tar.xml: New file.
524 * features/rs6000/powerpc-isa207-htm-vsx32l.xml: New file.
525 * features/rs6000/powerpc-isa207-htm-vsx64l.xml: New file.
526 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Generate.
527 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Generate.
528 * regformats/rs6000/powerpc-isa207-htm-vsx32l.dat: Generate.
529 * regformats/rs6000/powerpc-isa207-htm-vsx64l.dat: Generate.
530 * ppc-linux-nat.c (fetch_register, fetch_ppc_registers): Call
531 fetch_regset with HTM regsets.
532 (store_register, store_ppc_registers): Call store_regset with HTM
533 regsets.
534 (ppc_linux_nat_target::read_description): Set htm field in the
535 features struct if needed.
536 * ppc-linux-tdep.c: Include
537 features/rs6000/powerpc-isa207-htm-vsx32l.c and
538 features/rs6000/powerpc-isa207-htm-vsx64l.c.
539 (ppc32_regmap_tm_spr, ppc32_regmap_cgpr, ppc64_le_regmap_cgpr)
540 (ppc64_be_regmap_cgpr, ppc32_regmap_cfpr, ppc32_le_regmap_cvmx)
541 (ppc32_be_regmap_cvmx, ppc32_regmap_cvsx, ppc32_regmap_cppr)
542 (ppc32_regmap_cdscr, ppc32_regmap_ctar): New globals.
543 (ppc32_linux_tm_sprregset, ppc32_linux_cgprregset)
544 (ppc64_be_linux_cgprregset, ppc64_le_linux_cgprregset)
545 (ppc32_linux_cfprregset, ppc32_le_linux_cvmxregset)
546 (ppc32_be_linux_cvmxregset, ppc32_linux_cvsxregset)
547 (ppc32_linux_cpprregset, ppc32_linux_cdscrregset)
548 (ppc32_linux_ctarregset): New globals.
549 (ppc_linux_cgprregset, ppc_linux_cvmxregset): New functions.
550 (ppc_linux_collect_core_cpgrregset): New function.
551 (ppc_linux_iterate_over_regset_sections): Call back with the htm
552 regsets.
553 (ppc_linux_core_read_description): Check if the tm spr section is
554 present and set htm in the features struct.
555 (_initialize_ppc_linux_tdep): Call
556 initialize_tdesc_powerpc_isa207_htm_vsx32l and
557 initialize_tdesc_powerpc_isa207_htm_vsx64l.
558 * ppc-linux-tdep.h (ppc_linux_cgprregset, ppc_linux_cvmxregset):
559 Declare.
560 (ppc32_linux_tm_sprregset, ppc32_linux_cfprregset)
561 (ppc32_linux_cvsxregset, ppc32_linux_cpprregset)
562 (ppc32_linux_cdscrregset, ppc32_linux_ctarregset): Declare.
563 * ppc-tdep.h (struct gdbarch_tdep) <have_htm_spr, have_htm_core>:
564 New fields.
565 <have_htm_fpu, have_htm_altivec, have_htm_vsx>:
566 Likewise.
567 <ppc_cppr_regnum, ppc_cdscr_regnum, ppc_ctar_regnum>: Likewise.
568 <ppc_cdl0_regnum, ppc_cvsr0_regnum, ppc_cefpr0_regnum>: Likewise.
569 (enum) <PPC_TFHAR_REGNUM, PPC_TEXASR_REGNUM, PPC_TFIAR_REGNUM>:
570 New enum fields.
571 <PPC_CR0_REGNUM, PPC_CCR_REGNUM, PPC_CXER_REGNUM>: Likewise.
572 <PPC_CLR_REGNUM, PPC_CCTR_REGNUM, PPC_CF0_REGNUM>: Likewise.
573 <PPC_CFPSCR_REGNUM, PPC_CVR0_REGNUM, PPC_CVSCR_REGNUM>: Likewise.
574 <PPC_CVRSAVE_REGNUM, PPC_CVSR0_UPPER_REGNUM>: Likewise.
575 <PPC_CPPR_REGNUM, PPC_CDSCR_REGNUM>: Likewise.
576 <PPC_CTAR_REGNUM>: Likewise.
577 (PPC_IS_TMSPR_REGNUM, PPC_IS_CKPTGP_REGNUM, PPC_IS_CKPTFP_REGNUM)
578 (PPC_IS_CKPTVMX_REGNUM, PPC_IS_CKPTVSX_REGNUM): Define.
579 * rs6000-tdep.c (IS_CDFP_PSEUDOREG, IS_CVSX_PSEUDOREG)
580 (IS_CEFP_PSEUDOREG): Define.
581 (rs6000_register_name): Hide the upper halves of checkpointed VSX
582 registers. Return names for the checkpointed DFP, VSX, and EFP
583 pseudo registers.
584 (rs6000_pseudo_register_type): Remove initial assert and raise an
585 internal error in the else clause instead. Return types for the
586 checkpointed DFP, VSX, and EFP pseudo registers.
587 (dfp_pseudo_register_read, dfp_pseudo_register_write): Handle
588 checkpointed DFP pseudo registers.
589 (vsx_pseudo_register_read, vsx_pseudo_register_write): Handle
590 checkpointed VSX pseudo registers.
591 (efp_pseudo_register_read, efp_pseudo_register_write): Rename
592 from efpr_pseudo_register_read and
593 efpr_pseudo_register_write. Handle checkpointed EFP pseudo
594 registers.
595 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
596 Handle checkpointed DFP, VSX, and EFP registers.
597 (dfp_ax_pseudo_register_collect, vsx_ax_pseudo_register_collect)
598 (efp_ax_pseudo_register_collect): New functions.
599 (rs6000_ax_pseudo_register_collect): Move DFP, VSX and EFP pseudo
600 register logic to new functions. Handle checkpointed DFP, VSX,
601 and EFP pseudo registers.
602 (rs6000_gdbarch_init): Look for and validate the htm features.
603 Include checkpointed DFP, VSX and EFP pseudo-registers.
604 * NEWS: Mention access to PPR, DSCR, TAR, EBB/PMU registers and
605 HTM registers.
606
81ab84fd
PFC
6072018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
608
609 * rs6000-tdep.c (rs6000_gdbarch_init): Reject tdescs with vsx but
610 without altivec or fpu.
611
232bfb86
EBM
6122018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
613 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
614
615 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_EBBREGSET)
616 (PPC_LINUX_SIZEOF_PMUREGSET): Declare.
617 * nat/ppc-linux.h (PPC_FEATURE2_EBB, NT_PPC_EBB, NT_PPC_PMU):
618 Define if not already defined.
619 * features/rs6000/power-ebb.xml: New file.
620 * features/rs6000/power-linux-pmu.xml: New file.
621 * features/rs6000/powerpc-isa207-vsx32l.xml: Include ebb and pmu
622 features.
623 * features/rs6000/powerpc-isa207-vsx64l.xml: Likewise.
624 * features/rs6000/powerpc-isa207-vsx32l.c: Re-generate.
625 * features/rs6000/powerpc-isa207-vsx64l.c: Re-generate.
626 * regformats/rs6000/powerpc-isa207-vsx32l.dat: Re-generate.
627 * regformats/rs6000/powerpc-isa207-vsx64l.dat: Re-generate.
628 * ppc-linux-nat.c (fetch_register, fetch_ppc_registers): Call
629 fetch_regset with ebb and pmu regsets.
630 (store_register, store_ppc_registers): Call store_regset with ebb
631 and pmu regsets.
632 (ppc_linux_nat_target::read_description): Set isa207 field in the
633 features struct if ebb and pmu are avaiable.
634 * ppc-linux-tdep.c (ppc32_regmap_ebb, ppc32_regmap_pmu)
635 (ppc32_linux_ebbregset, ppc32_linux_pmuregset): New globals.
636 (ppc_linux_iterate_over_regset_sections): Call back with the ebb
637 and pmu regsets.
638 (ppc_linux_core_read_description): Check if the pmu section is
639 present and set isa207 in the features struct.
640 * ppc-linux-tdep.h (ppc32_linux_ebbregset)
641 (ppc32_linux_pmuregset): Declare.
642 * ppc-tdep.h (struct gdbarch_tdep) <ppc_mmcr0_regnum>: New field.
643 <ppc_mmcr2_regnum, ppc_siar_regnum, ppc_sdar_regnum>: New fields.
644 <ppc_sier_regnum>: New field.
645 (enum): <PPC_BESCR_REGNUM, PPC_EBBHR_REGNUM, PPC_EBBRR_REGNUM>:
646 New enum values.
647 <PPC_MMCR0_REGNUM, PPC_MMCR2_REGNUM, PPC_SIAR_REGNUM>: New enum
648 values.
649 <PPC_SDAR_REGNUM, PPC_SIER_REGNUM>: New enum values.
650 (PPC_IS_EBB_REGNUM, PPC_IS_PMU_REGNUM): Define.
651 * rs6000-tdep.c (rs6000_gdbarch_init): Look for and validate the
652 ebb and pmu features.
653
f2cf6173
EBM
6542018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
655 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
656
657 * arch/ppc-linux-tdesc.h (tdesc_powerpc_isa207_vsx32l)
658 (tdesc_powerpc_isa207_vsx64l): Declare.
659 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_TARREGSET): Define.
660 (struct ppc_linux_features) <isa207>: New field.
661 (ppc_linux_no_features): Add initializer for isa207 field.
662 * arch/ppc-linux-common.c (ppc_linux_match_description): Return
663 new tdescs.
664 * nat/ppc-linux.h (PPC_FEATURE2_ARCH_2_07, PPC_FEATURE2_TAR)
665 (NT_PPC_TAR): Define if not already defined.
666 * features/Makefile (WHICH): Add rs6000/powerpc-isa207-vsx32l and
667 rs6000/powerpc-isa207-vsx64l.
668 (XMLTOC): Add rs6000/powerpc-isa207-vsx32l.xml and
669 rs6000/powerpc-isa207-vsx64l.xml.
670 * features/rs6000/power-tar.xml: New file.
671 * features/rs6000/powerpc-isa207-vsx32l.xml: New file.
672 * features/rs6000/powerpc-isa207-vsx64l.xml: New file.
673 * features/rs6000/powerpc-isa207-vsx32l.c: Generate.
674 * features/rs6000/powerpc-isa207-vsx64l.c: Generate.
675 * regformats/rs6000/powerpc-isa207-vsx32l.dat: Generate.
676 * regformats/rs6000/powerpc-isa207-vsx64l.dat: Generate.
677 * ppc-linux-nat.c (fetch_register, fetch_ppc_registers): Call
678 fetch_regset with the TAR regset.
679 (store_register, store_ppc_registers): Call store_regset with the
680 TAR regset.
681 (ppc_linux_nat_target::read_description): Set isa207 field in the
682 features struct if needed.
683 * ppc-linux-tdep.c: Include
684 features/rs6000/powerpc-isa207-vsx32l.c and
685 features/rs6000/powerpc-isa207-vsx64l.c.
686 (ppc32_regmap_tar, ppc32_linux_tarregset): New globals.
687 (ppc_linux_iterate_over_regset_sections): Call back with the tar
688 regset.
689 (ppc_linux_core_read_description): Check if the tar section is
690 present and set isa207 in the features struct.
691 (_initialize_ppc_linux_tdep): Call
692 initialize_tdesc_powerpc_isa207_vsx32l and
693 initialize_tdesc_powerpc_isa207_vsx64l.
694 * ppc-linux-tdep.h (ppc32_linux_tarregset): Declare.
695 * ppc-tdep.h (gdbarch_tdep) <ppc_tar_regnum>: New field.
696 (enum) <PPC_TAR_REGNUM>: New enum value.
697 * rs6000-tdep.c (rs6000_gdbarch_init): Look for and validate tar
698 feature.
699 (ppc_process_record_op31): Record changes to TAR.
700
7ca18ed6
EBM
7012018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
702 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
703
704 * arch/ppc-linux-tdesc.h (tdesc_powerpc_isa205_ppr_dscr_vsx32l)
705 (tdesc_powerpc_isa205_ppr_dscr_vsx64l): Declare.
706 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_PPRREGSET)
707 (PPC_LINUX_SIZEOF_DSCRREGSET): Define.
708 (struct ppc_linux_features) <ppr_dscr>: New field.
709 (ppc_linux_no_features): Add initializer for ppr_dscr field.
710 * arch/ppc-linux-common.c (ppc_linux_match_description): Return
711 new tdescs.
712 * nat/ppc-linux.h (PPC_FEATURE2_DSCR, NT_PPC_PPR, NT_PPC_DSCR):
713 Define if not already defined.
714 * features/Makefile (WHICH): Add
715 rs6000/powerpc-isa205-ppr-dscr-vsx32l and
716 rs6000/powerpc-isa205-ppr-dscr-vsx64l.
717 (XMLTOC): Add rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
718 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml.
719 * features/rs6000/power-dscr.xml: New file.
720 * features/rs6000/power-ppr.xml: New file.
721 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml: New file.
722 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml: New file.
723 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Generate.
724 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Generate.
725 * regformats/rs6000/powerpc-isa205-ppr-dscr-vsx32l.dat: Generate.
726 * regformats/rs6000/powerpc-isa205-ppr-dscr-vsx64l.dat: Generate.
727 * ppc-linux-nat.c: Include <sys/uio.h>.
728 (fetch_regset, store_regset, check_regset): New functions.
729 (fetch_register, fetch_ppc_registers): Call fetch_regset with
730 DSCR and PPR regsets.
731 (store_register, store_ppc_registers): Call store_regset with
732 DSCR and PPR regsets.
733 (ppc_linux_get_hwcap2): New function.
734 (ppc_linux_nat_target::read_description): Call
735 ppc_linux_get_hwcap2 and check_regset, set ppr_dscr field in the
736 features struct if needed.
737 * ppc-linux-tdep.c: Include
738 features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c and
739 features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c.
740 (ppc32_regmap_ppr, ppc32_regmap_dscr, ppc32_linux_pprregset)
741 (ppc32_linux_dscrregset): New globals.
742 (ppc_linux_iterate_over_regset_sections): Call back with the ppr
743 and dscr regsets.
744 (ppc_linux_core_read_description): Check if the ppr and dscr
745 sections are present and set ppr_dscr in the features struct.
746 (_initialize_ppc_linux_tdep): Call
747 initialize_tdesc_powerpc_isa205_ppr_dscr_vsx32l and
748 initialize_tdesc_powerpc_isa205_ppr_dscr_vsx64l.
749 * ppc-linux-tdep.h (ppc32_linux_pprregset)
750 (ppc32_linux_dscrregset): Declare.
751 * ppc-tdep.h (struct gdbarch_tdep) <ppc_ppr_regnum>: New field.
752 <ppc_dscr_regnum>: New field.
753 (enum) <PPC_PPR_REGNUM, PPC_DSCR_REGNUM>: New enum values.
754 * rs6000-tdep.c (rs6000_gdbarch_init): Look for and validate ppr
755 and dscr features.
756 (ppc_process_record_op31): Record changes to PPR and DSCR.
757
93b4691f
PFC
7582018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
759
760 * rs6000-tdep.c (rs6000_gdbarch_init): Replace line wrapping by a
761 second initializer line for the have_* variables. Initialize
762 have_fpu to 0 instead of 1.
763
71733a7b
PFC
7642018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
765
766 * arch/ppc-linux-common.c (ppc_linux_match_description):
767 Parenthesize tdesc assignements and indent them properly.
768
3d907528
PFC
7692018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
770
771 * ppc-linux-nat.c (fetch_register): Change if statement to else
772 if.
773 (store_register): Likewise.
774
500f01a0
PFC
7752018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
776
777 * rs6000-tdep.c: Remove reggroups.h include.
778 (rs6000_pseudo_register_reggroup_p): Remove.
779 (rs6000_gdbarch_init): Remove call to
780 set_tdesc_pseudo_register_reggroup_p.
781
7ed29001
PFC
7822018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
783
784 * reggroups.c (default_register_reggroup_p): Return true for
785 decfloat registers and float_reggroup.
786
5c849b22
PFC
7872018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
788
789 * ppc-linux-tdep.c (ppc_linux_collect_vrregset): Remove.
790 (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): Replace
791 ppc_linux_collect_vrregset by regcache_collect_regset.
792
afde3032
PFC
7932018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
794
795 * linux-tdep.c (linux_collect_regset_section_cb): Use
796 std::vector<gdb_byte> instead of char * and malloc for buf.
797 Remove xfree.
798
b9718991
SM
7992018-10-26 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
800
801 * xcoffread.c (read_xcoff_symtab): Pass deduced language to
802 symtab_start instead of always using language_unknown.
803
0b0eff8b
AB
8042018-10-26 Andrew Burgess <andrew.burgess@embecosm.com>
805
806 * riscv-tdep.c (riscv_read_misa_reg): Update comment, remove
807 READ_P parameter, catch and ignore register access errors from
808 either the old or new MISA location.
809 (riscv_has_feature): Update call to riscv_read_misa_reg.
810
b352ceb6
AB
8112018-10-25 Andrew Burgess <andrew.burgess@embecosm.com>
812
813 * python/py-function.c (convert_values_to_python): Return
814 gdbpy_ref<>. Add header comment.
815 (fnpy_call): Adjust.
816
50db9ef4
AB
8172018-10-25 Andrew Burgess <andrew.burgess@embecosm.com>
818
819 * python/py-cmd.c (cmdpy_completer_helper): Return gdbpy_ref<>.
820 (cmdpy_completer_handle_brkchars): Adjust.
821 (cmdpy_completer): Adjust.
822
ee67fd7f
AB
8232018-10-25 Andrew Burgess <andrew.burgess@embecosm.com>
824
825 * riscv-linux-nat.c (riscv_linux_nat_target::fetch_registers):
826 Pass correct regnum to raw_supply_zeroed.
827
bea556ab
HAQ
8282018-10-23 Hafiz Abid Qadeer <abidh@codesourcery.com>
829
830 * regcache.c (cooked_read_test): Add CSKY to the list of
831 architectures with a save_reggroup
832
35ed81d4
SM
8332018-10-23 Simon Marchi <simon.marchi@polymtl.ca>
834
835 PR gdb/23368
836 * infrun.c (follow_exec): In the follow_exec_mode_new case,
837 transfer terminal state from old new new inferior.
838 * terminal.h (swap_terminal_info): New function.
839 * inflow.c (swap_terminal_info): New function.
840
79b8d3b0
TT
8412018-10-23 Tom Tromey <tom@tromey.com>
842
843 * record-btrace.c (get_thread_current_frame_id): Rename from
844 get_thread_current_frame. Return a frame_id.
845 (record_btrace_start_replaying): Update.
846
420ecd9c
AB
8472018-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
848
849 * riscv-tdep.c (riscv_register_name): Use the user-friendly names
850 for CSRs.
851
5a77b1b4
JB
8522018-10-23 Joel Brobecker <brobecker@adacore.com>
853
854 * riscv-tdep.c (riscv_gdbarch_init): Set the gdbarch's
855 have_nonsteppable_watchpoint attribute to 1.
856
0dbfcfff
AB
8572018-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
858
859 * riscv-tdep.c (riscv_gdb_reg_names): Update comment, and all
860 register names.
861 (struct register_alias): Rename to...
862 (struct riscv_register_alias): ...this, and update comment.
863 (riscv_register_aliases): Update type, and alias names. Remove
864 CSR names from this list.
865 (riscv_register_name): Use riscv_gdb_reg_names for int and float
866 register names. Add an extra assertion.
867 (riscv_is_regnum_a_named_csr): New function.
868 (riscv_register_reggroup_p): Use riscv_is_regnum_a_named_csr.
869
270b9329
JW
8702018-10-22 Jim Wilson <jimw@sifive.com>
871
3399f1b3
JW
872 * riscv-tdep.c (riscv_push_dummy_call) <in_reg>: Check for value in
873 FP reg smaller than FP reg size, and fill with -1 instead of 0.
874
270b9329
JW
875 * riscv-tdep.c (riscv_fpreg_d_type, riscv_fpreg_q_type): New.
876 (riscv_register_type): Use them.
877 (riscv_print_one_register_info): Handle union of floats same as float.
878 * riscv-tdep.h (struct gdbarch_tdep): Add riscv_fpreg_d_type and
879 riscv_fpreg_q_type fields.
880
f6efe3f8
SM
8812018-10-21 Simon Marchi <simon.marchi@ericsson.com>
882
883 * gdbarch.sh (gdbarch_num_cooked_regs): New.
884 * gdbarch.h: Re-generate.
885 * ax-gdb.c (gen_expr): Use gdbarch_num_cooked_regs.
886 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
887 * eval.c (evaluate_subexp_standard): Likewise.
888 * findvar.c (value_of_register): Likewise.
889 (value_of_register_lazy): Likewise.
890 (address_from_register): Likewise.
891 * frame.c (get_frame_register_bytes): Likewise.
892 * gdbarch-selftests.c (register_to_value_test): Likewise.
893 * h8300-tdep.c (h8300_register_type): Likewise.
894 * i386-tdep.c (i386_dbx_reg_to_regnum): Likewise.
895 (i386_svr4_reg_to_regnum): Likewise.
896 * infcmd.c (default_print_registers_info): Likewise.
897 (registers_info): Likewise.
898 (print_vector_info): Likewise.
899 (default_print_float_info): Likewise.
900 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
901 * mdebugread.c (mdebug_reg_to_regnum): Likewise.
902 * mi/mi-main.c (mi_cmd_data_list_register_names): Likewise.
903 (mi_cmd_data_list_changed_registers): Likewise.
904 (mi_cmd_data_list_register_values): Likewise.
905 (mi_cmd_data_write_register_values): Likewise.
906 (mi_cmd_trace_frame_collected): Likewise.
907 * mips-tdep.c (print_gp_register_row): Likewise.
908 (mips_print_registers_info): Likewise.
909 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
910 * regcache.c (init_regcache_descr): Likewise.
911 (register_size): Likewise.
912 (register_dump::dump): Likewise.
913 (cooked_read_test): Likewise.
914 (cooked_write_test): Likewise.
915 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
916 (rs6000_gdbarch_init): Likewise.
917 * stabsread.c (stab_reg_to_regnum): Likewise.
918 * stack.c (info_frame_command): Likewise.
919 * target-descriptions.c (tdesc_register_name): Likewise.
920 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
921 * tui/tui-regs.c (tui_show_register_group): Likewise.
922 * user-regs.c (user_reg_map_name_to_regnum): Likewise.
923 (user_reg_map_regnum_to_name): Likewise.
924 (value_of_user_reg): Likewise.
925 (maintenance_print_user_registers): Likewise.
926 * xtensa-tdep.c (xtensa_find_register_by_name): Likewise.
927 (xtensa_register_name): Likewise.
928 (xtensa_register_type): Likewise.
929 (xtensa_reg_to_regnum): Likewise.
930 (xtensa_pseudo_register_read): Likewise.
931 (xtensa_pseudo_register_write): Likewise.
932
925047fe
SM
9332018-10-21 Simon Marchi <simon.marchi@polymtl.ca>
934
935 * amd64-tdep.c (amd64_pseudo_register_read_value): Use
936 correctly-sized buffer with raw_read.
937 (amd64_pseudo_register_write): Use correctly-sized buffer for
938 raw_read/raw_write.
939
4051d2d6
PW
9402018-10-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
941
942 * typeprint.c (_initialize_typeprint): Fix wrong prefixname arg
943 in add_prefix_cmd of set print type.
944
7806cea7
TT
9452018-10-19 Tom Tromey <tom@tromey.com>
946
947 PR tui/18388:
948 * NEWS: Mention tabset deprecation.
949 * tui/tui-win.c (tui_tab_width, internal_tab_width): New globals.
950 (update_tab_width): New function.
951 (tui_set_tab_width, tui_show_tab_width): New functions.
952 (tui_set_tab_width_command): Use update_tab_width.
953 (_initialize_tui_win): Move to end of file. Deprecate "tabset".
954 Add new "set tui tab-width" command.
955 * tui/tui-source.c (tui_set_source_content): Update.
956 * tui/tui-disasm.c (tui_set_disassem_content): Update.
957 * tui/tui-data.h (tui_default_tab_len, tui_set_default_tab_len):
958 Don't declare.
959 (tui_tab_width): Declare.
960 * tui/tui-data.c (default_tab_len, tui_default_tab_len)
961 (tui_set_default_tab_len): Remove.
962
84371624
TT
9632018-10-19 Tom Tromey <tom@tromey.com>
964
965 * tui/tui-io.h (key_is_start_sequence, key_is_end_sequence)
966 (key_is_backspace, tui_getc): Don't declare.
967 * tui/tui-io.c (key_is_start_sequence): Now static.
968 (key_is_end_sequence, key_is_backspace): Remove.
969 (tui_getc): Now static.
970
22ad8107
TT
9712018-10-19 Tom Tromey <tom@tromey.com>
972
973 * symfile.c (reread_symbols): Clear "static_links".
974
74b3c713
AH
9752018-10-19 Alan Hayward <alan.hayward@arm.com>
976
977 * aarch64-linux-tdep.c (AARCH64_SIGCONTEXT_RESERVED_SIZE): New
978 define.
979 (aarch64_linux_sigframe_init): Extra boundary checks.
980
0667c506
AA
9812018-10-19 Andreas Arnez <arnez@linux.ibm.com>
982
983 * s390-tdep.c (s390_pseudo_register_type): For v0-v15 don't yield
984 the possibly non-existent tdesc type 'vec128', but the type of raw
985 register v16 instead.
986
ba543ca5
GB
9872018-10-19 Gary Benson <gbenson@redhat.com>
988
989 * cli/cli-interp.c (cli_interp::~cli_interp): New function.
990
94c18618
SDJ
9912018-10-18 Sergio Durigan Junior <sergiodj@redhat.com>
992
993 PR cli/23785
994 * cli/cli-dump.c (restore_binary_file): Check if "file" is
995 NULL.
996
89eb3c54
PK
9972018-10-17 Paul Koning <paul_koning@dell.com>
998
999 * charset.c (convert_between_encodings): Fix unsigned overflow.
1000
6f3b1098
JB
10012018-10-17 John Baldwin <jhb@FreeBSD.org>
1002
1003 * fbsd-nat.c (fbsd_nat_target::info_proc) Use
1004 fbsd_info_proc_mappings_header and fbsd_info_proc_mappings_entry.
1005 * fbsd-tdep.c (fbsd_vm_map_entry_flags): Mark static.
1006 (fbsd_info_proc_mappings_header, fbsd_info_proc_mappings_entry):
1007 New functions.
1008 (fbsd_core_info_proc_mappings): Use fbsd_info_proc_mappings_header
1009 and fbsd_info_proc_mappings_header.
1010 * fbsd-tdep.h (fbsd_vm_map_entry_flags): Remove.
1011 (fbsd_info_proc_mappings_header, fbsd_info_proc_mappings_entry):
1012 New.
1013
d500b4f2
JB
10142018-10-17 Joel Brobecker <brobecker@adacore.com>
1015
1016 * MAINTAINERS (Responsible Maintainers): Add Rainer Orth as
1017 Solaris Maintainer.
1018
63a33118
TT
10192018-10-15 Tom Tromey <tom@tromey.com>
1020
1021 * tui/tui.c (strcat_to_buf): Remove casts.
1022 * tui/tui-winsource.c (tui_show_source_line)
1023 (tui_set_is_exec_point_at, tui_line_is_displayed): Remove casts.
1024 * tui/tui-wingeneral.c (tui_refresh_win, box_win): Remove casts.
1025 * tui/tui-windata.c (tui_first_data_item_displayed)
1026 (tui_delete_data_content_windows, tui_erase_data_content)
1027 (tui_display_all_data, tui_display_data_from)
1028 (tui_refresh_data_win, tui_vertical_data_scroll): Remove casts.
1029 * tui/tui-win.c (tui_set_win_height)
1030 (make_invisible_and_set_new_height, parse_scrolling_args): Remove
1031 casts.
1032 * tui/tui-win.c (tui_resize_all): Remove casts.
1033 (tui_scroll_backward_command, tui_set_focus)
1034 (tui_set_tab_width_command): Likewise.
1035 * tui/tui-source.c (tui_vertical_source_scroll): Remove cast.
1036 * tui/tui-regs.c (tui_show_register_group): Remove cast.
1037 * tui/tui-layout.c (tui_set_layout_by_name): Remove cast.
1038 * tui/tui-disasm.c (tui_vertical_disassem_scroll): Remove cast.
1039 * tui/tui-data.c (tui_partial_win_by_name, tui_free_win_content):
1040 Remove casts.
1041
933e62b1
SM
10422018-10-15 Simon Marchi <simon.marchi@ericsson.com>
1043
1044 * MAINTAINERS (Responsible Maintainers): Add Alan Hayward as
1045 AArch64/ARM maintainer.
1046
fbe61a36
GB
10472018-10-11 Gary Benson <gbenson@redhat.com>
1048
1049 * interps.h (interp::m_name): Make private and mutable.
1050 * interps.c (interp::~interp): Free m_name.
1051
8ecfd7bd
SDJ
10522018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
1053 Simon Marchi <simark@simark.ca>
1054
1055 * README (`configure' options): Add documentation for new
1056 "--enable-unit-tests" option.
1057 * acinclude.m4: Include "selftest.m4".
1058 * configure: Regenerate.
1059 * configure.ac: Use "GDB_AC_SELFTEST".
1060 * maint.c (maintenance_selftest): Update message informing
1061 that selftests have been disabled.
1062 (maintenance_info_selftests): Likewise.
1063 * selftest.m4: New file.
1064
33b031ce
GB
10652018-10-10 Gary Benson <gbenson@redhat.com>
1066
1067 * remote.c (remote_target::remote_send_printf): Add
1068 missing va_end found by Coverity.
1069
2cb2ba9a
MM
10702018-10-10 Markus Metzger <markus.t.metzger@intel.com>
1071
1072 * btrace.c (ftrace_update_function): Add indirect jump heuristic.
1073
eff98030
TT
10742018-10-09 Tom Tromey <tom@tromey.com>
1075
1076 * configure: Rebuild.
1077 * sanitize.m4 (AM_GDB_UBSAN): Default to no.
1078 * NEWS: Update --enable-ubsan documentation.
1079
04fd5eed
GB
10802018-10-09 Gary Benson <gbenson@redhat.com>
1081
1082 * dwarf2read.c (create_dwp_hash_table): Fix buffer overrun
1083 found by Coverity.
1084
a0c3048e
TT
10852018-10-08 Tom Tromey <tom@tromey.com>
1086
1087 * riscv-fbsd-tdep.c (riscv_fbsd_sigframe_init): Remove unused
1088 variable.
1089 (riscv_fbsd_init_abi): Likewise.
1090
a51bb70c
WP
10912018-10-08 Weimin Pan <weimin.pan@oracle.com>
1092 * valops.c (value_struct_elt_for_reference): Rename local variable
1093 to work around the shadowing a previous local warning.
1094
74792ff7
JB
10952018-10-08 John Baldwin <jhb@FreeBSD.org>
1096
1097 * Makefile.in (ALLDEPFILES): Add riscv-fbsd-nat.c.
1098 * NEWS: Mention new FreeBSD/riscv native configuration.
1099 * configure.host: Add riscv*-*-freebsd*.
1100 * configure.nat: Likewise.
1101 * riscv-fbsd-nat.c: New file.
1102
ed65e20b
JB
11032018-10-08 John Baldwin <jhb@FreeBSD.org>
1104
1105 * Makefile.in (ALL_TARGET_OBS): Add riscv-fbsd-tdep.o.
1106 (HFILES_NO_SRCDIR): Add riscv-fbsd-tdep.h.
1107 (ALLDEPFILES): Add riscv-fbsd-tdep.c.
1108 * NEWS: Mention new FreeBSD/riscv target.
1109 * configure.tgt: Add riscv*-*-freebsd*.
1110 * riscv-fbsd-tdep.c: New file.
1111 * riscv-fbsd-tdep.h: New file.
1112
498f7407
JB
11132018-10-08 John Baldwin <jhb@FreeBSD.org>
1114
1115 * regcache.h (struct regcache_map_entry): Note that this type can
1116 be used with traditional frame caches.
1117 * trad-frame.c (trad_frame_set_reg_regmap): New.
1118 * trad-frame.h (trad_frame_set_reg_regmap): New.
1119
9f6b697b
WP
11202018-10-08 Weimin Pan <weimin.pan@oracle.com>
1121
1122 PR c++/16841
1123 * valops.c (get_virtual_base_offset): New function.
1124 (value_struct_elt_for_reference): Use it to get virtual base offset
1125 and add it in calculating class member address.
1126
c258c396
JD
11272018-10-08 John Darrington <john@darrington.wattle.id.au>
1128
1129 * dwarf2read.c (dwarf2_cu) <producer_is_codewarrior>: New field.
1130 (check_producer): Check if the producer is codewarrior.
1131 (producer_is_codewarrior): New function.
1132 (lnp_state_machine::record_line): Ignore is_stmt flag for records
1133 produced by codewarrior.
1134 (dwarf2_cu::dwarf2_cu): Initialize producer_is_codewarrior.
1135
add5ded5
TT
11362018-10-06 Tom Tromey <tom@tromey.com>
1137
1138 PR python/19399:
1139 * python/py-inferior.c: Add "architecture" entry.
1140 (infpy_architecture): New function.
1141
51e78fc5
TT
11422018-10-06 Tom Tromey <tom@tromey.com>
1143
1144 PR python/21765:
1145 * python/py-symbol.c (gdbpy_initialize_symbols): Redefine
1146 SYMBOL_VARIABLES_DOMAIN, SYMBOL_FUNCTIONS_DOMAIN,
1147 SYMBOL_TYPES_DOMAIN. Define SYMBOL_MODULE_DOMAIN,
1148 SYMBOL_COMMON_BLOCK_DOMAIN, SYMBOL_LOC_COMMON_BLOCK.
1149
a8a5dbca
TT
11502018-10-06 Tom Tromey <tom@tromey.com>
1151
1152 PR build/17077:
1153 * Makefile.in (OPCODES_CFLAGS): Remove "-I$(OPCODES_SRC)/..".
1154 * arc-tdep.c, frv-tdep.c, lm32-tdep.c, mep-tdep.c,
1155 microblaze-tdep.c, or1k-tdep.h: Use ../opcodes, not opcodes, in
1156 #include.
1157
2a8be203
TT
11582018-10-06 Tom Tromey <tom@tromey.com>
1159
1160 * python/py-breakpoint.c (bppy_get_location): Handle a
1161 bp_breakpoint without a location.
1162
2fb009bb
TT
11632018-10-06 Tom Tromey <tom@tromey.com>
1164
1165 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq)
1166 (_RegEx): Reformat help text.
1167 * python/lib/gdb/function/caller_is.py (CallerIs, CallerMatches)
1168 (AnyCallerIs, AnyCallerMatches): Reformat help text.
1169 * python/lib/gdb/function/as_string.py (_AsString): Reformat help
1170 text.
1171 * python/lib/gdb/command/xmethods.py (InfoXMethod)
1172 (EnableXMethod, DisableXMethod): Remove help indentation.
1173 Capitalize meta-syntactic variables.
1174 * python/lib/gdb/command/unwinders.py (InfoUnwinder)
1175 (EnableUnwinder, DisableUnwinder): Remove help indentation.
1176 Capitalize meta-syntactic variables.
1177 * python/lib/gdb/command/explore.py (ExploreCommand)
1178 (ExploreValueCommand, ExploreTypeCommand): Reformat help text.
1179 * python/lib/gdb/command/type_printers.py (InfoTypePrinter)
1180 (EnableTypePrinter, DisableTypePrinter): Remove help indentation.
1181 * python/lib/gdb/command/pretty_printers.py (InfoPrettyPrinter):
1182 Remove help indentation.
1183 (EnablePrettyPrinter, DisablePrettyPrinter): Likewise.
1184 * python/lib/gdb/command/frame_filters.py (EnableFrameFilter)
1185 (DisableFrameFilter, SetFrameFilterPriority)
1186 (ShowFrameFilterPriority, InfoFrameFilter): Reword help text.
1187
7a956928
TT
11882018-10-06 Tom Tromey <tom@tromey.com>
1189
1190 PR tui/28819:
1191 * tui/tui-io.c (gdb_wgetch): New function.
1192 (tui_mld_getc, tui_getc): Use it.
1193
f8740dc5
TT
11942018-10-05 Tom Tromey <tom@tromey.com>
1195
1196 * sol-thread.c (sol_thread_target::wait): Rename inner
1197 "save_ptid".
1198
96643e35
TT
11992018-10-04 Tom Tromey <tom@tromey.com>
1200
1201 * configure: Rebuild.
1202 * warning.m4 (AM_GDB_WARNINGS): Add -Wshadow=local.
1203
d951f98b
TT
12042018-10-04 Tom Tromey <tom@tromey.com>
1205
1206 * guile/scm-frame.c (gdbscm_frame_read_var): Remove inner
1207 declaration of "block".
1208
b8c88847
TT
12092018-10-04 Tom Tromey <tom@tromey.com>
1210
1211 * common/filestuff.c (fdwalk): Remove inner declaration of
1212 "result".
1213
ef789dc4
TT
12142018-10-04 Tom Tromey <tom@tromey.com>
1215
1216 * msp430-tdep.c (msp430_push_dummy_call): Rename inner
1217 "structs_addr" and hoist declaration.
1218
3fba72f7
TT
12192018-10-04 Tom Tromey <tom@tromey.com>
1220
1221 * linux-tdep.c (linux_make_mappings_corefile_notes): Introduce new
1222 variable "size".
1223
795afcbb
TT
12242018-10-04 Tom Tromey <tom@tromey.com>
1225
1226 * mdebugread.c (parse_partial_symbols): Use std::string.
1227
b926417a
TT
12282018-10-04 Tom Tromey <tom@tromey.com>
1229
1230 * ctf.c (SET_ARRAY_FIELD): Rename "u32".
1231 * p-valprint.c (pascal_val_print): Split inner "i" variable.
1232 * xtensa-tdep.c (xtensa_push_dummy_call): Declare "i" in loop
1233 header.
1234 * xstormy16-tdep.c (xstormy16_push_dummy_call): Declare "val" in
1235 more inner scope.
1236 * xcoffread.c (read_xcoff_symtab): Rename inner "symbol".
1237 * varobj.c (varobj_update): Rename inner "newobj",
1238 "type_changed".
1239 * valprint.c (generic_emit_char): Rename inner "buf".
1240 * valops.c (find_overload_match): Rename inner "temp".
1241 (value_struct_elt_for_reference): Declare "v" in more inner
1242 scope.
1243 * v850-tdep.c (v850_push_dummy_call): Rename "len".
1244 * unittests/array-view-selftests.c (run_tests): Rename inner
1245 "vec".
1246 * tui/tui-stack.c (tui_show_frame_info): Declare "i" in loop
1247 header.
1248 * tracepoint.c (merge_uploaded_trace_state_variables): Declare
1249 "tsv" in more inner scope.
1250 (print_one_static_tracepoint_marker): Rename inner
1251 "tuple_emitter".
1252 * tic6x-tdep.c (tic6x_analyze_prologue): Declare "inst" lower.
1253 (tic6x_push_dummy_call): Don't redeclare "addr".
1254 * target-float.c: Declare "dto" lower.
1255 * symtab.c (lookup_local_symbol): Rename inner "sym".
1256 (find_pc_sect_line): Rename inner "pc".
1257 * stack.c (print_frame): Don't redeclare "gdbarch".
1258 (return_command): Rename inner "gdbarch".
1259 * s390-tdep.c (s390_prologue_frame_unwind_cache): Renam inner
1260 "sp".
1261 * rust-lang.c (rust_internal_print_type): Declare "i" in loop
1262 header.
1263 * rs6000-tdep.c (ppc_process_record): Rename inner "addr".
1264 * riscv-tdep.c (riscv_push_dummy_call): Declare "info" in inner
1265 scope.
1266 * remote.c (remote_target::update_thread_list): Don't redeclare
1267 "tp".
1268 (remote_target::process_initial_stop_replies): Rename inner
1269 "thread".
1270 (remote_target::remote_parse_stop_reply): Don't redeclare "p".
1271 (remote_target::wait_as): Don't redeclare "stop_reply".
1272 (remote_target::get_thread_local_address): Rename inner
1273 "result".
1274 (remote_target::get_tib_address): Likewise.
1275
1276 * regcache.c (cooked_read_test): Rename "regnum".
1277 * record-btrace.c (cmd_record_btrace_start): Rename inner
1278 "exception".
1279 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Declare "i" in
1280 loop header.
1281 * ppc-linux-tdep.c (ppc_linux_syscall_record): Declare "i" in loop
1282 header.
1283 (ppu2spu_sniffer): Rename inner "buf".
1284 * parse.c (operator_check_standard): Rename inner "type",
1285 "objfile".
1286 * p-valprint.c (pascal_val_print): Introduce new scope for
1287 "low_bound", "high_bound".
1288 * p-exp.y (yylex): Declare "i" in loop header.
1289 * objfiles.c (objfile_relocate1): Declare "i" in loop header.
1290 Lower declaration of "s".
1291 * nios2-tdep.c (nios2_analyze_prologue): Declare "i" in loop
1292 header.
1293 (nios2_push_dummy_call): Rename "len".
1294 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Rename static
1295 "buf".
1296 (linux_xfer_osdata_fds, linux_xfer_osdata_shm)
1297 (linux_xfer_osdata_sem, linux_xfer_osdata_msg)
1298 (linux_xfer_osdata_modules): Likewise.
1299 * mips-tdep.c (mips_eabi_push_dummy_call): Rename outer "len".
1300 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
1301 (mips_o64_push_dummy_call): Likewise.
1302 * microblaze-tdep.c (microblaze_analyze_prologue): Rename inner
1303 "op".
1304 * mi/mi-main.c (list_available_thread_groups): Rename inner
1305 "tuple_emitter".
1306 (mi_cmd_data_read_memory): Rename inner "opts".
1307 * mi/mi-cmd-var.c (varobj_update_one): Rename inner
1308 "tuple_emitter".
1309 * mep-tdep.c (mep_analyze_prologue): Declare "rn" in loop header.
1310 * mdebugread.c (parse_symbol): Rename inner "b". Declare "f" in
1311 more inner scope.
1312 (parse_partial_symbols): Rename inner "pst", "p", "name"
1313 * main.c (captured_main_1): Rename inner "i"s.
1314 * machoread.c (macho_symfile_read_all_oso): Don't redeclare
1315 "oso2".
1316 * linux-tdep.c (linux_info_proc): Rename inner "filename".
1317 * linespec.c (linespec_lexer_lex_string): Rename inner "p".
1318 * infrun.c (handle_no_resumed): Don't redeclare "thread".
1319 (handle_signal_stop): Rename inner "gdbarch".
1320 (handle_command): Declare "signum" in loop header.
1321 * ia64-tdep.c (ia64_pseudo_register_read): Don't redeclare
1322 "status".
1323 (examine_prologue): Rename inner "sol" and "sof".
1324 (ia64_extract_return_value): Rename inner "val". Declare another
1325 "val" in a more inner scope.
1326 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Declare "buf" in
1327 inner scope.
1328 * guile/scm-symbol.c (gdbscm_lookup_symbol): Rename inner
1329 "except".
1330 * findvar.c (default_read_var_value): Don't redeclare "addr".
1331 * f-exp.y (yylex): Declare "i" in loop header.
1332 * eval.c (evaluate_subexp_standard): Don't redeclare "type".
1333 Rename inner "type", "expect_type".
1334 (evaluate_subexp_for_sizeof): Rename inner "pc".
1335 * elfread.c (elf_symfile_read): Rename inner "abfd".
1336 * dwarf2read.c (read_debug_names_from_section): Don't redeclare
1337 "bytes_read".
1338 (process_psymtab_comp_unit_reader): Don't redeclare "gdbarch".
1339 (add_partial_subprogram): Rename inner "lowpc" and "highpc".
1340 (dwarf_decode_line_header): Rename inner "lh".
1341 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Don't redeclare
1342 "offset". Declare "i" in loop header.
1343 (disassemble_dwarf_expression): Rename inner "addr_size".
1344 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Rename
1345 inner "result".
1346 (dwarf_expr_context::execute_stack_op): Rename inner "offset".
1347 * dwarf2-frame.c (decode_frame_entry_1): Rename inner "length"s.
1348 * disasm.c (do_mixed_source_and_assembly_deprecated): Rename inner
1349 "inner_list_emitter".
1350 (do_mixed_source_and_assembly): Rename inner "tuple_emitter".
1351 * disasm-selftests.c (print_one_insn_test): Wrap "bplen"
1352 declaration in a block.
1353 * csky-tdep.c (csky_analyze_prologue): Declare "offset" lower.
1354 * cp-valprint.c (cp_print_value_fields): Don't redeclare
1355 "obstack_final_size".
1356 * cp-support.c (inspect_type): Declare "i" in loop header.
1357 * compile/compile.c (compile_instance::insert_symbol_error):
1358 Rename inner "e".
1359 * common/agent.c (agent_run_command): Remove inner "ret"
1360 declaration.
1361 * coffread.c (coff_symfile_read): Rename inner "name".
1362 (coff_symfile_read): Rename inner "abfd".
1363 * cli/cli-utils.c (get_number_trailer): Rename inner "val".
1364 * cli/cli-cmds.c (print_disassembly): Rename inner "low" and
1365 "high".
1366 * c-exp.y (lex_one_token): Move "len" declaration lower.
1367 * breakpoint.c (create_longjmp_master_breakpoint): Don't redeclare
1368 "gdbarch".
1369 (create_exception_master_breakpoint): Likewise. Don't redeclare
1370 "b".
1371 (watch_command_1): Declare "mark" later.
1372 (clear_command): Don't shadow "a" or "b".
1373 (delete_command): Rename inner "b".
1374 (delete_trace_command): Likewise.
1375 * arm-tdep.c (thumb_process_displaced_32bit_insn): Rename inner
1376 "op".
1377 (arm_gdbarch_init): Remove inner "e_flags".
1378 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Declare
1379 "offset" in inner blocks.
1380
1f88d0c8
SM
13812018-10-04 Simon Marchi <simon.marchi@ericsson.com>
1382
1383 * dwarf-index-write.c (file_write): Don't write if the vector is
1384 empty.
1385
5c4481cc
TV
13862018-10-05 Tom de Vries <tdevries@suse.de>
1387
1388 * python/py-progspace.c (pspy_solib_name): Fix type mismatch in
1389 PyArg_ParseTuple call.
1390
96b1ad86
TV
13912018-10-05 Tom de Vries <tdevries@suse.de>
1392
1393 * python/py-record-btrace.c (recpy_bt_goto): Fix type mismatch in
1394 PyArg_ParseTuple call.
1395
d2f7dcb2
JB
13962018-10-04 Joel Brobecker <brobecker@adacore.com>
1397
1398 * psymtab.c (recursively_search_psymtabs): Reformat parameters
1399 to avoid exceeding 80 characters per line limit.
1400
5ca8c39f
TT
14012018-10-04 Tom Tromey <tom@tromey.com>
1402
1403 * symfile.c (syms_from_objfile_1, finish_new_objfile)
1404 (reread_symbols): Update.
1405 * complaints.h (clear_complaints): Remove argument.
1406 * complaints.c (enum complaint_series): Remove.
1407 (series): Remove global.
1408 (complaint_internal): Update.
1409 (clear_complaints): Remove argument.
1410
e79497a1
TT
14112018-10-04 Tom Tromey <tom@tromey.com>
1412
1413 * symfile.c (symbol_file_add_with_addrs): Do not print "no
1414 debugging symbols" message if there is a separate debug objfile.
1415
3453e7e4
TT
14162018-10-04 Tom Tromey <tom@tromey.com>
1417
1418 PR cli/19551:
1419 * symfile.c (symbol_file_add_with_addrs): Update output.
1420 * psymtab.c (require_partial_symbols): Update output.
1421
6afcf761
TT
14222018-10-04 Tom Tromey <tom@tromey.com>
1423
1424 PR cli/22234:
1425 * complaints.c: Emit \n.
1426
22068491
TT
14272018-10-04 Tom Tromey <tom@tromey.com>
1428
1429 * symfile.c (symbol_file_add_with_addrs, symbol_file_clear)
1430 (separate_debug_file_exists, find_separate_debug_file)
1431 (add_symbol_file_command, reread_symbols, allocate_symtab)
1432 (allocate_compunit_symtab): Use filtered printing, not
1433 unfiltered.
1434 * psymtab.c (require_partial_symbols, dump_psymtab)
1435 (allocate_psymtab): Use filtered printing, not unfiltered.
1436
9fdd7193
TT
14372018-10-04 Tom Tromey <tom@tromey.com>
1438
1439 * complaints.c (complaint_internal): Correctly check complaint
1440 count.
1441
3f2cf4dc
TT
14422018-10-04 Tom Tromey <tom@tromey.com>
1443
1444 * complaints.h (struct complaints): Remove declaration.
1445 * complaints.c (clear_complaints): Remove an unused variable.
1446
4f9bdf7f
RO
14472018-10-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1448
1449 * MAINTAINERS (Write After Approval): Add self.
1450
875e5398
TT
14512018-10-03 Tom Tromey <tom@tromey.com>
1452
1453 * guile/scm-value.c (gdbscm_value_to_string): Initialize
1454 "buffer_contents".
1455 * coffread.c (coff_symtab_read): Initialize "newobj".
1456
8634679f
SM
14572018-10-03 Simon Marchi <simon.marchi@polymtl.ca>
1458
1459 * dwarf2read.c (read_func_scope): Remove struct keyword in
1460 range-based for.
1461
f35d5ade
TT
14622018-10-03 Tom Tromey <tom@tromey.com>
1463
1464 * README: Mention --enable-ubsan.
1465 * NEWS: Mention --enable-ubsan.
1466 * acinclude.m4: Include sanitize.m4.
1467 * configure: Rebuild.
1468 * configure.ac: Call AM_GDB_UBSAN.
1469 * sanitize.m4: New file.
1470
1dffa580
TT
14712018-10-03 Tom Tromey <tom@tromey.com>
1472
1473 * expression.h (enum exp_opcode): Use uint8_t as base type.
1474 * expprint.c (op_name): Handle invalid opcodes.
1475
5e70ee09
TT
14762018-10-03 Tom Tromey <tom@tromey.com>
1477
1478 * parse.c (prefixify_expression): Add assert.
1479 (parse_exp_in_context_1): Throw exception if the expression is
1480 empty.
1481
4dd1b460
TT
14822018-10-03 Tom Tromey <tom@tromey.com>
1483
1484 * dwarf2read.c (read_signed_leb128): Work in ULONGEST.
1485
20562150
TT
14862018-10-03 Tom Tromey <tom@tromey.com>
1487
1488 * c-exp.y (parse_number): Work in unsigned. Remove casts.
1489
d359392f
TT
14902018-10-03 Tom Tromey <tom@tromey.com>
1491
1492 * dwarf2read.c (read_subrange_type): Make "negative_mask"
1493 unsigned.
1494
0101665f
TT
14952018-10-03 Tom Tromey <tom@tromey.com>
1496
1497 * findvar.c (extract_integer): Do work in an unsigned type.
1498
ad69edbb
TT
14992018-10-03 Tom Tromey <tom@tromey.com>
1500
1501 * common/enum-flags.h (enum_flags::operator~): Add static assert.
1502 * symfile-add-flags.h (enum symfile_add_flag): Use unsigned as
1503 base type.
1504 * objfile-flags.h (enum objfile_flag): Use unsigned as base type.
1505 * gdbtypes.h (enum type_instance_flag_value): Use unsigned as base
1506 type.
1507 * c-lang.h (enum c_string_type_values): Use unsigned as base
1508 type.
1509 * btrace.h (enum btrace_thread_flag): Use unsigned as base type.
1510
780942fc
TT
15112018-10-03 Tom Tromey <tom@tromey.com>
1512
1513 * dwarf2-frame.h (dwarf2_frame_state_reg_info)
1514 <~dwarf2_frame_state_reg_info>: Update.
1515 <dwarf2_frame_state_reg_info>: Update.
1516 <alloc_regs>: Add assertion. Update.
1517 <reg>: Now a std::vector.
1518 <num_regs>: Remove.
1519 <swap>: Update.
1520 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
1521 (execute_cfa_program_test, dwarf2_frame_cache): Update.
1522
10657c04
TT
15232018-10-03 Tom Tromey <tom@tromey.com>
1524
1525 * namespace.c (add_using_directive): Don't pass NULL to memcpy.
1526
34c0fc00
PW
15272018-10-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1528
1529 * tid-parse.c (tid_is_in_list): Fix wrong 'See' comment.
1530
2398abf8
TT
15312018-10-02 Tom Tromey <tom@tromey.com>
1532
1533 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Use pulongest.
1534
c1168a2f
JD
15352018-10-02 John Darrington <john@darrington.wattle.id.au>
1536
1537 * NEWS: Mention changed commands.
1538 * ser-uds.c: New file.
1539 * configure.ac (SER_HARDWIRE): Add ser-uds.o.
1540 * configure: Regenerate.
1541 * Makefile.in: Add new file.
1542 * serial.c (serial_open): Check if filename is a socket
1543 and lookup the appropriate interface accordingly.
1544
05c71722
AH
15452018-10-01 Alan Hayward <alan.hayward@arm.com>
1546
1547 * aarch64-linux-tdep.c (AARCH64_SIGCONTEXT_RESERVED_OFFSET): Add
1548 define.
1549 (AARCH64_EXTRA_MAGIC): Likewise.
1550 (AARCH64_FPSIMD_MAGIC): Likewise.
1551 (AARCH64_SVE_MAGIC): Likewise.
1552 (AARCH64_EXTRA_DATAP_OFFSET): Likewise.
1553 (AARCH64_FPSIMD_FPSR_OFFSET): Likewise.
1554 (AARCH64_FPSIMD_FPCR_OFFSET): Likewise.
1555 (AARCH64_FPSIMD_V0_OFFSET): Likewise.
1556 (AARCH64_FPSIMD_VREG_SIZE): Likewise.
1557 (AARCH64_SVE_CONTEXT_VL_OFFSET): Likewise.
1558 (AARCH64_SVE_CONTEXT_REGS_OFFSET): Likewise.
1559 (AARCH64_SVE_CONTEXT_P_REGS_OFFSET): Likewise.
1560 (AARCH64_SVE_CONTEXT_FFR_OFFSET): Likewise.
1561 (AARCH64_SVE_CONTEXT_SIZE): Likewise.
1562 (read_aarch64_ctx): Add function.
1563 (aarch64_linux_sigframe_init): Detect FP registers.
1564
c74e7cb9
AH
15652018-10-01 Alan Hayward <alan.hayward@arm.com>
1566
1567 * aarch64-tdep.c (AARCH64_Q0_REGNUM): Move to here.
1568 (AARCH64_D0_REGNUM): Likewise.
1569 (AARCH64_S0_REGNUM): Likewise.
1570 (AARCH64_H0_REGNUM): Likewise.
1571 (AARCH64_B0_REGNUM): Likewise.
1572 (AARCH64_SVE_V0_REGNUM): Likewise.
1573 * arch/aarch64.h (AARCH64_Q0_REGNUM): Move from here.
1574 (AARCH64_D0_REGNUM): Likewise.
1575 (AARCH64_S0_REGNUM): Likewise.
1576 (AARCH64_H0_REGNUM): Likewise.
1577 (AARCH64_B0_REGNUM): Likewise.
1578 (AARCH64_SVE_V0_REGNUM): Likewise.
1579
12b164e9
GB
15802018-10-01 Gary Benson <gbenson@redhat.com>
1581
1582 * gdb_proc_service.h (gdb_prfpregset_t): Remove typedef.
1583 * proc-service.c (ps_lgetfpregs, ps_lsetfpregs): Use
1584 prfpregset_t instead of gdb_prfpregset_t.
1585 * configure.ac (PRFPREGSET_T_BROKEN): Remove check.
1586 * configure, config.in: Rebuild.
1587
7c619dbd
GB
15882018-10-01 Gary Benson <gbenson@redhat.com>
1589
1590 * common/gdb_proc_service.h: New file, factored out from...
1591 * gdb_proc_service.h: Moved common code to the above file.
1592 * Makefile.in (HFILES_NO_SRCDIR): Add the above new file.
1593
358ffcf2
GB
15942018-10-01 Gary Benson <gbenson@redhat.com>
1595
1596 * gdb_proc_service.h: Use elf_gregset_t if prgregset_t is
1597 undefined. Use elf_fpregset_t if prfpregset_t is undefined.
1598
43b7e92b
GB
15992018-10-01 Gary Benson <gbenson@redhat.com>
1600
1601 * configure.ac: Check if sys/procfs.h defines elf_fpregset_t.
1602 (AC_CHECK_HEADERS): Check for linux/elf.h.
1603 * configure, config.in: Rebuild.
1604 * gdb_proc_service.h: Include linux/elf.h if sys/procfs.h
1605 doesn't define elf_fpregset_t.
1606
3795e814
GB
16072018-10-01 Gary Benson <gbenson@redhat.com>
1608
1609 * gdb_proc_service.h: Whitespace change.
1610
4176f14d
TT
16112018-10-01 Tom Tromey <tom@tromey.com>
1612
1613 * unittests/scoped_mmap-selftests.c: Don't check HAVE_UNISTD_H.
1614 * unittests/scoped_fd-selftests.c: Don't check HAVE_UNISTD_H.
1615 * common/scoped_fd.h: Don't check HAVE_UNISTD_H.
1616
a95746f9
TT
16172018-10-01 Tom Tromey <tom@tromey.com>
1618
1619 * README: Minor change.
1620
dd203782
PA
16212018-09-30 Pedro Alves <palves@redhat.com>
1622
1623 * darwin-nat-info.c (darwin_debug_regions_recurse)
1624 (info_mach_exceptions_command): Remove unused local variables.
1625 * darwin-nat.c (darwin_decode_notify_message)
1626 (darwin_nat_target::resume, darwin_nat_target::mourn_inferior)
1627 (darwin_stop_inferior, darwin_setup_exceptions)
1628 (darwin_nat_target::kill, darwin_attach_pid, darwin_ptrace_him)
1629 (darwin_nat_target::attach, darwin_nat_target::detach)
1630 (darwin_read_write_inferior, darwin_read_dyld_info): Remove unused
1631 local variables.
1632 * i386-darwin-nat.c (i386_darwin_dr_set): Remove unused local
1633 variables.
1634
c82a2e6f
TT
16352018-09-29 Tom Tromey <tom@tromey.com>
1636
1637 * README: Remove some leftover text.
1638
7f0bd420
TT
16392018-09-29 Tom Tromey <tom@tromey.com>
1640
1641 * PROBLEMS: Rewrite.
1642 * README: Update.
1643
f37bc8b1
JB
16442018-09-28 John Baldwin <jhb@FreeBSD.org>
1645
1646 * disasm-selftests.c (print_one_insn_test): Add bfd_arch_riscv to
1647 case with explicit breakpoint kind.
1648 * riscv-tdep.c (show_use_compressed_breakpoints): Remove
1649 'additional_info' and related logic.
1650 (riscv_debug_breakpoints): New variable.
1651 (riscv_breakpoint_kind_from_pc): Use the length of the existing
1652 instruction to determine the breakpoint kind.
1653 (_initialize_riscv_tdep): Add 'set/show debug riscv breakpoints'
1654 flag. Update description of 'set/show riscv
1655 use-compressed-breakpoints' flag.
1656
f67ffa6a
AB
16572018-09-28 Andrew Burgess <andrew.burgess@embecosm.com>
1658
1659 (NEWS): Mention changes to frame related commands.
1660 * cli/cli-decode.c (add_cmd_suppress_notification): New function.
1661 (add_prefix_cmd_suppress_notification): New function.
1662 (add_com_suppress_notification): Call
1663 add_cmd_suppress_notification.
1664 * command.h (add_cmd_suppress_notification): Declare.
1665 (add_prefix_cmd_suppress_notification): Declare.
1666 * mi/mi-cmd-stack.c: Add 'safe-ctype.h' include.
1667 (parse_frame_specification): Moved from stack.c, with
1668 simplification to handle a single argument.
1669 (mi_cmd_stack_select_frame): Use parse_frame_specification, the
1670 switch to the selected frame. Add a header comment.
1671 * stack.c: Remove 'safe-ctype.h' include.
1672 (find_frame_for_function): Add declaration.
1673 (find_frame_for_address): New function.
1674 (parse_frame_specification): Moved into mi/mi-cmd-stack.c.
1675 (frame_selection_by_function_completer): New function.
1676 (info_frame_command): Rename to...
1677 (info_frame_command_core): ...this, and update parameter types.
1678 (select_frame_command): Rename to...
1679 (select_frame_command_core): ...this, and update parameter types.
1680 (frame_command): Rename to...
1681 (frame_command_core): ...this, and update parameter types.
1682 (class frame_command_helper): New class to wrap implementations of
1683 frame related sub-commands.
1684 (frame_apply_cmd_list): New static global.
1685 (frame_cmd_list): Make static.
1686 (select_frame_cmd_list): New global for sub-commands.
1687 (info_frame_cmd_list): New global for sub-commands.
1688 (_initialize_stack): Register sub-commands for 'frame',
1689 'select-frame', and 'info frame'. Update 'frame apply' commands
1690 to use frame_apply_cmd_list. Move function local static
1691 frame_apply_list to file static frame_apply_cmd_list for
1692 consistency.
1693 * stack.h (select_frame_command): Delete declarationn.
1694 (select_frame_for_mi): Declare new function.
1695
d354055e
AB
16962018-09-26 Andrew Burgess <andrew.burgess@embecosm.com>
1697
1698 * riscv-tdep.c (riscv_insn::decode): Decode c.lui.
1699 (riscv_scan_prologue): Split handling of AUIPC, LUI, ADD, ADDI,
1700 and NOP.
1701
85392414
SM
17022018-09-26 Simon Marchi <simon.marchi@ericsson.com>
1703
1704 * elf32-nds32.c (elf32_nds32_allocate_dynrelocs): Remove.
1705
896ee098
TT
17062018-09-26 Tom Tromey <tom@tromey.com>
1707
1708 * valops.c (auto_abandon): Remove dead code.
1709
57dbb3af
TT
17102018-09-26 Tom Tromey <tom@tromey.com>
1711
1712 * tui/tui-win.c (WIN_HEIGHT_USAGE): Remove extra ">"s.
1713
b5a9bfbe
TT
17142018-09-24 Tom Tromey <tom@tromey.com>
1715
1716 * common/pathstuff.c (get_standard_cache_dir): Make
1717 "xdg_cache_home" and "home" const.
1718 * top.c (init_history): Make "tmpenv" const.
1719 * main.c (get_init_files): Make "homedir" const.
1720
ae778caf
TT
17212018-09-23 Tom Tromey <tom@tromey.com>
1722
1723 PR python/18852:
1724 * python/py-param.c (get_set_value): Use gdbpy_handle_exception.
1725
2b4ad2fe
TT
17262018-09-23 Tom Tromey <tom@tromey.com>
1727
1728 * python/py-function.c (fnpy_call): Use gdbpy_handle_exception.
1729 * python/py-cmd.c (cmdpy_function): Use gdbpy_handle_exception.
1730 * python/python-internal.h (gdbpy_handle_exception): Declare.
1731 * python/py-utils.c (gdbpy_handle_exception): New function.
1732
fd3ba736
TT
17332018-09-23 Tom Tromey <tom@tromey.com>
1734
1735 PR python/17284:
1736 * python/py-type.c (typy_template_argument): Check for negative
1737 argument number.
1738
39a24317
TT
17392018-09-23 Tom Tromey <tom@tromey.com>
1740
1741 PR python/14062:
1742 * python/python.c (gdbpy_run_events): Do not ignore exceptions.
1743
f5769a2c
TT
17442018-09-23 Tom Tromey <tom@tromey.com>
1745
1746 PR python/18170:
1747 * python/py-value.c (valpy_int): Allow conversion from pointer
1748 type.
1749
1c1e54f6
TT
17502018-09-23 Tom Tromey <tom@tromey.com>
1751
1752 PR python/20126:
1753 * python/py-value.c (valpy_int): Respect type sign.
1754
fb4fa946
TT
17552018-09-23 Tom Tromey <tom@tromey.com>
1756
1757 PR python/18352;
1758 * python/py-value.c (valpy_float): Allow conversions from int or
1759 char.
1760 (valpy_int, valpy_long): Allow conversions from float.
1761
65773341
TT
17622018-09-23 Tom Tromey <tom@tromey.com>
1763
1764 * ctf.c (ctf_start): Use gdb_fopen_cloexec.
1765 * common/scoped_mmap.c (mmap_file): Use gdb_open_cloexec.
1766
1db88d22
RO
17672018-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1768
1769 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Also recognize
1770 __sighndlr.
1771 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Likewise.
1772
a44294f5
JT
17732018-08-02 Jon Turney <jon.turney@dronecode.org.uk>
1774
1775 * windows-nat.c (windows_nat_target::wait): Remove a spurious
1776 target_terminal::ours().
1777
0c0a40e0
SM
17782018-09-23 Simon Marchi <simon.marchi@ericsson.com>
1779
1780 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): Change type
1781 of vl to ULONGEST.
1782
4daf1902
YS
17832018-09-21 Yacov Simhony <ysimhony@gmail.com>
1784
1785 * breakpoint.c (update_inserted_breakpoint_locations): Remove
1786 redundant condition.
1787
c475f569
RO
17882018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1789
1790 * proc-utils.h (PROC_CTL_WORD_TYPE): Remove.
1791
1792 * procfs.c: Don't check for PR_MODEL_NATIVE definition.
1793 * sparc-sol2-nat.c: Likewise. Remove Linux, __arch64__ references.
1794 * sol-thread.c (ps_pdmodel): Don't guard definition.
1795
1796 * procfs.c: Fix formatting.
1797
1798 * procfs.c (sysset_t_alloc): Remove.
1799 (create_procinfo): Use XNEW instead of sysset_t_alloc.
1800 (procfs_debug_inferior): Likewise.
1801 (procfs_set_exec_trap): Likewise.
1802 (proc_set_traced_sysentry): Don't allocate argp dynamically.
1803 (proc_set_traced_sysexit): Likewise.
1804
1805 * procfs.c (create_procinfo): Use xsnprintf to fix ARI warning.
1806 (dead_procinfo): Likewise.
1807 (proc_warn): Likewise.
1808 (proc_error): Likewise.
1809 (proc_get_LDT_entry): Likewise.
1810 (do_attach): Likewise.
1811 (procfs_target::pid_to_str): Likewise.
1812 (iterate_over_mappings): Likewise.
1813
1814 * procfs.c (create_procinfo): Fix ARI warning.
1815 (proc_get_status): Likewise.
1816 (proc_stop_process): Likewise.
1817 (proc_run_process): Likewise.
1818 (proc_kill): Likewise.
1819 (proc_get_LDT_entry): Likewise.
1820 (procfs_find_LDT_entry): Likewise.
1821 (proc_update_threads): Likewise.
1822 (proc_iterate_over_threads): Likewise.
1823 (do_attach): Likewise.
1824 (procfs_xfer_memory): Likewise.
1825 (invalidate_cache): Likewise.
1826 (procfs_target::resume): Likewise.
1827 (procfs_init_inferior): Likewise.
1828 (procfs_set_exec_trap): Likewise.
1829 (procfs_target::thread_alive): Likewise.
1830 (procfs_target::pid_to_exec_file): Likewise.
1831 (iterate_over_mappings): Likewise.
1832 (procfs_target::make_corefile_notes): Likewise.
1833 * sol-thread.c (sol_thread_target::thread_alive): Likewise.
1834
1835 * procfs.c (procfs_find_LDT_entry): Silence ARI warning.
1836 (procfs_find_LDT_entry): Likewise.
1837 * sol-thread.c (ps_lgetLDT): Likewise.
1838
4206c05e
RO
18392018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1840
1841 PR tdep/17903
1842 * procfs.c (procfs_target): Declare pid_to_exec_file.
1843 (procfs_target::pid_to_exec_file): New.
1844
3d282ac3
RO
18452018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1846
1847 * auxv.c (default_print_auxv_entry): Reflect AT_SUN_CAP_HW1
1848 renaming.
1849 Handle AT_SUN_EMULATOR, AT_SUN_BRANDNAME, AT_SUN_BRAND_AUX1,
1850 AT_SUN_BRAND_AUX2, AT_SUN_BRAND_AUX3, AT_SUN_CAP_HW2.
1851
8c93fae6
RO
18522018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1853
1854 * i386-v4-nat.c (regmap, supply_gregset, fill_gregset)
1855 (supply_fpregset, fill_fpregset): Move ...
1856 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64]: ... here.
1857 Remove HAVE_GREGSET_T, HAVE_FPREGET_T guards.
1858 Remove references to ioctl-based procfs.
1859 Include <sys/reg.h>.
1860 Remove PR_MODEL_NATIVE guards.
1861 * configure.nat <sol2, i386> (NATDEPFILES): Remove i386-v4-nat.o.
1862 * Makefile.in (ALLDEPFILES): Remove i386-v4-nat.c.
1863
79b32f4a
XR
18642018-09-19 Xavier Roirand <roirand@adacore.com>
1865
1866 PR gdb/20981:
1867 * solib-darwin.c (darwin_get_dyld_bfd): New function.
1868 (darwin_solib_get_all_image_info_addr_at_init): Update call.
1869 (darwin_solib_create_inferior_hook): Handle unrelocated dyld.
1870
07147793
JB
18712018-09-19 John Baldwin <jhb@FreeBSD.org>
1872
1873 * fbsd-tdep.c (fbsd_print_sockaddr_in): Style fix.
1874 (fbsd_print_sockaddr_in6): Likewise.
1875
23be8da7
RB
18762018-09-19 Richard Bunt <richard.bunt@arm.com>
1877 Chris January <chris.january@arm.com>
1878
1879 * eval.c (skip_undetermined_arglist): Skip argument list helper.
1880 (evaluate_subexp_standard): Return a dummy type when
1881 honoring EVAL_SKIP in OP_VAR_VALUE and handle skipping in the
1882 OP_F77_UNDETERMINED_ARGLIST case.
1883 * expression.h (enum noside): Update comment.
1884
7307a73a
RO
18852018-09-19 George Vasick <george.vasick@oracle.com>
1886
1887 * solib-svr4.c (svr4_same_1): Also handle amd64 ld.so.1.
1888
13db92d3
RO
18892018-09-19 Stefan Teleman <stefan.teleman@oracle.com>
1890 April Chin <april.chin@oracle.com>
1891 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1892
1893 * procfs.c (MAX_PROC_NAME_SIZE): Allow for 6-digit PID_MAX and
1894 uint_t lwpid_t.
1895 (create_procinfo): Print pids in /proc without leading zeros.
1896
3d50f170
SL
18972018-09-18 Sandra Loosemore <sandra@codesourcery.com>
1898
1899 * nios2-tdep.c (nios2_gcc_target_options): New.
1900 (nios2_gdb_arch_init): Install new hook.
1901
b567ca63
SM
19022018-09-18 Simon Marchi <simon.marchi@ericsson.com>
1903
1904 * patches/0001-Fix-PR-gdb-23558-Use-system-s-getcwd-when-cross-comp.patch:
1905 New file.
1906 * update-gnulib.sh: Apply patch.
1907 * configure: Re-generate.
1908
73f1bd76
JB
19092018-09-18 John Baldwin <jhb@FreeBSD.org>
1910
1911 * infcmd.c (_initialize_infcmd): Remove "running" from "info proc"
1912 description. Make "info proc" command descriptions more
1913 consistent.
1914
8b113111
JB
19152018-09-18 John Baldwin <jhb@FreeBSD.org>
1916
1917 * NEWS: Mention 'info proc files' command.
1918
7e69672e
JB
19192018-09-18 John Baldwin <jhb@FreeBSD.org>
1920
1921 * fbsd-nat.c (fbsd_nat_target::info_proc): List open file
1922 descriptors for IP_FILES and IP_ALL.
1923
57c2a98a
JB
19242018-09-18 John Baldwin <jhb@FreeBSD.org>
1925
1926 * fbsd-tdep.c (KF_FLAGS, KF_OFFSET, KF_VNODE_TYPE, KF_SOCK_DOMAIN)
1927 (KF_SOCK_TYPE, KF_SOCK_PROTOCOL, KF_SA_LOCAL, KF_SA_PEER)
1928 (KINFO_FILE_TYPE_SOCKET, KINFO_FILE_TYPE_PIPE)
1929 (KINFO_FILE_TYPE_FIFO, KINFO_FILE_TYPE_KQUEUE)
1930 (KINFO_FILE_TYPE_CRYPTO, KINFO_FILE_TYPE_MQUEUE)
1931 (KINFO_FILE_TYPE_SHM, KINFO_FILE_TYPE_SEM, KINFO_FILE_TYPE_PTS)
1932 (KINFO_FILE_TYPE_PROCDESC, KINFO_FILE_FD_TYPE_ROOT)
1933 (KINFO_FILE_FD_TYPE_JAIL, KINFO_FILE_FD_TYPE_TRACE)
1934 (KINFO_FILE_FD_TYPE_CTTY, KINFO_FILE_FLAG_READ)
1935 (KINFO_FILE_FLAG_WRITE, KINFO_FILE_FLAG_APPEND)
1936 (KINFO_FILE_FLAG_ASYNC, KINFO_FILE_FLAG_FSYNC)
1937 (KINFO_FILE_FLAG_NONBLOCK, KINFO_FILE_FLAG_DIRECT)
1938 (KINFO_FILE_FLAG_HASLOCK, KINFO_FILE_FLAG_EXEC)
1939 (KINFO_FILE_VTYPE_VREG, KINFO_FILE_VTYPE_VDIR)
1940 (KINFO_FILE_VTYPE_VCHR, KINFO_FILE_VTYPE_VLNK)
1941 (KINFO_FILE_VTYPE_VSOCK, KINFO_FILE_VTYPE_VFIFO, FBSD_AF_UNIX)
1942 (FBSD_AF_INET, FBSD_AF_INET6, FBSD_SOCK_STREAM, FBSD_SOCK_DGRAM)
1943 (FBSD_SOCK_SEQPACKET, FBSD_IPPROTO_ICMP, FBSD_IPPROTO_TCP)
1944 (FBSD_IPPROTO_UDP, FBSD_IPPROTO_SCTP): New defines.
1945 (struct fbsd_sockaddr_in, struct fbsd_sockaddr_in6)
1946 (struct fbsd_sockaddr_un): New types.
1947 (fbsd_file_fd, fbsd_file_type, fbsd_file_flags, fbsd_ipproto)
1948 (fbsd_print_sockaddr_in, fbsd_print_sockaddr_in6)
1949 (fbsd_info_proc_files_header, fbsd_info_proc_files_entry)
1950 (fbsd_core_info_proc_files): New functions.
1951 (fbsd_core_info_proc): List open file descriptors for IP_FILES and
1952 IP_ALL.
1953 * fbsd-tdep.h (fbsd_info_proc_files_header)
1954 (fbsd_info_proc_files_entry): New.
1955
e98ee8c4
JB
19562018-09-18 John Baldwin <jhb@FreeBSD.org>
1957
1958 * defs.h (enum info_proc_what) [IP_FILES]: New value.
1959 * infcmd.c (info_proc_cmd_files): New function.
1960 (_initialize_infcmd): Register 'info proc files' command.
1961
725e2999
JB
19622018-09-18 John Baldwin <jhb@FreeBSD.org>
1963
1964 * gnulib/aclocal-m4-deps.mk: Re-generate.
1965 * gnulib/aclocal.m4: Re-generate.
1966 * gnulib/config.in: Re-generate.
1967 * gnulib/configure: Re-generate.
1968 * gnulib/import/Makefile.am: Re-generate.
1969 * gnulib/import/Makefile.in: Re-generate.
1970 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
1971 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
1972 * gnulib/import/arpa_inet.in.h: New file.
1973 * gnulib/import/inet_ntop.c: New file.
1974 * gnulib/import/m4/arpa_inet_h.m4: New file.
1975 * gnulib/import/m4/inet_ntop.m4: New file.
1976 * gnulib/import/m4/netinet_in_h.m4: New file.
1977 * gnulib/import/m4/socklen.m4: New file.
1978 * gnulib/import/m4/sockpfaf.m4: New file.
1979 * gnulib/import/m4/stdalign.m4: New file.
1980 * gnulib/import/m4/sys_uio_h.m4: New file.
1981 * gnulib/import/netinet_in.in.h: New file.
1982 * gnulib/import/stdalign.in.h: New file.
1983 * gnulib/import/sys_socket.c: New file.
1984 * gnulib/import/sys_socket.in.h: New file.
1985 * gnulib/import/sys_uio.in.h: New file.
1986 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add inet_ntop
1987 module.
1988
2afffa7f
JB
19892018-09-18 John Baldwin <jhb@FreeBSD.org>
1990
1991 * gnulib/aclocal-m4-deps.mk: New file.
1992 * gnulib/update-gnulib.sh: Generate "aclocal-m4-deps.mk"
1993 deterministically.
1994
9f235e09
JB
19952018-09-18 John Baldwin <jhb@FreeBSD.org>
1996
1997 * fbsd-tdep.c (fbsd_core_vnode_path): Use KF_PATH instead of
1998 KVE_PATH.
1999
40f03055
TT
20002018-09-18 Tom Tromey <tom@tromey.com>
2001
2002 * compile/compile-object-load.c (struct
2003 link_hash_table_cleanup_data): Add constructor and destructor.
2004 Use DISABLE_COPY_AND_ASSIGN.
2005 (~link_hash_table_cleanup_data): Rename from
2006 link_hash_table_free. Now a destructor.
2007 (copy_sections): Use gdb::unique_xmalloc_ptr. Remove cleanups.
2008
c9e0a7e3
TT
20092018-09-18 Tom Tromey <tom@tromey.com>
2010
2011 * compile/compile-object-run.c (do_module_cleanup): Use delete.
2012 * compile/compile-object-load.c (struct munmap_list): Move to
2013 header file.
2014 (munmap_list::add): Rename from munmap_list_add; rewrite.
2015 (munmap_list::~munmap_list): Rename from munmap_list_free.
2016 (munmap_listp_free_cleanup): Remove.
2017 (compile_object_load): Update.
2018 * compile/compile-object-load.h (struct munmap_list): Move from
2019 compile-object-load.c. Rewrite.
2020
3ff2c72e
AH
20212018-09-18 Alan Hayward <alan.hayward@arm.com>
2022
2023 * aarch64-tdep.c (pass_in_v): Use register size.
2024 (aarch64_extract_return_value): Likewise.
2025 (aarch64_store_return_value): Likewise.
2026
206c1947
RO
20272018-09-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2028
2029 * utils.c (dump_core) [HAVE_SETRLIMIT]: Cast RLIM_INFINITY to
2030 rlim_t.
2031
6eb5dbce
PW
20322018-09-17 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2033
2034 * python/lib/gdb/command/frame_filters.py (EnableFrameFilter):
2035 Fix short help line.
2036
ae292b3a
TT
20372018-09-17 Tom Tromey <tom@tromey.com>
2038
2039 PR python/20445:
2040 * configure: Rebuild.
2041 * configure.ac: Conditionally use -DNDEBUG for Python.
2042
da658607
TT
20432018-09-17 Tom Tromey <tom@tromey.com>
2044
2045 * configure: Rebuild.
2046 * configure.ac: Use gmp as a library dependency when checking for
2047 mpfr.
2048
d35da542
PA
20492018-09-17 Pedro Alves <palves@redhat.com>
2050
2051 * python/py-inferior.c (find_inferior_object): Delete.
2052
461464f2
SM
20532018-09-17 Simon Marchi <simon.marchi@ericsson.com>
2054
2055 * compile/compile-cplus-types.c
2056 (compile_cplus_instance::enter_scope): Don't use new_scope after
2057 std::move.
2058
e6cd1dc1
TT
20592018-09-17 Tom Tromey <tom@tromey.com>
2060
2061 * common/pathstuff.c (get_standard_cache_dir): Use
2062 ~/Library/Caches on macOS.
2063 * common/pathstuff.h (get_standard_cache_dir): Update comment.
2064
8588b356
SM
20652018-09-17 Simon Marchi <simon.marchi@polymtl.ca>
2066
2067 PR python/23669
2068 * breakpoint.c (commands_cmd_element): New.
2069 (_initialize_breakpoint): Assign commands_cmd_element.
2070 * breakpoint.h (commands_cmd_element): New.
2071 * cli/cli-script.c (while_cmd_element, if_command,
2072 define_cmd_element): New.
2073 (command_name_equals): Remove.
2074 (process_next_line): Compare commands by pointer, not by name.
2075 (_initialize_cli_script): Assign the various cmd_list_element
2076 variables.
2077 * compile/compile.c (compile_cmd_element): New.
2078 (_initialize_compile): Assign compile_cmd_element.
2079 * compile/compile.h (compile_cmd_element): New.
2080 * guile/guile.c (guile_cmd_element): New.
2081 (install_gdb_commands): Assign guile_cmd_element.
2082 * guile/guile.h (guile_cmd_element): New.
2083 * python/python.c (python_cmd_element): New.
2084 (_initialize_python): Assign python_cmd_element.
2085 * python/python.h (python_cmd_element): New.
2086 * tracepoint.c (while_stepping_cmd_element): New.
2087 (_initialize_tracepoint): Assign while_stepping_cmd_element.
2088 * tracepoint.h (while_stepping_cmd_element): New.
2089
cb524840
TT
20902018-09-17 Tom Tromey <tom@tromey.com>
2091
2092 * infrun.c (save_infcall_suspend_state): Return
2093 infcall_suspend_state_up.
2094 (save_infcall_control_state): Return infcall_control_state_up.
2095 * inferior.h (save_infcall_suspend_state)
2096 (save_infcall_control_state): Declare later. Return unique
2097 pointers.
2098
2d844eaf
TT
20992018-09-17 Tom Tromey <tom@tromey.com>
2100
2101 * infrun.c (struct stop_context): Declare constructor,
2102 destructor, "changed" method.
2103 (stop_context::stop_context): Rename from save_stop_context.
2104 (stop_context::~stop_context): Rename from
2105 release_stop_context_cleanup.
2106 (normal_stop): Update.
2107 (stop_context::changed): Rename from stop_context_changed. Return
2108 bool.
2109
c7c4d3fa
TT
21102018-09-17 Tom Tromey <tom@tromey.com>
2111
2112 * inferior.h (struct infcall_suspend_state_deleter): New.
2113 (infcall_suspend_state_up): New typedef.
2114 (struct infcall_control_state_deleter): New.
2115 (infcall_control_state_up): New typedef.
2116 (make_cleanup_restore_infcall_suspend_state)
2117 (make_cleanup_restore_infcall_control_state): Don't declare.
2118 * infcall.c (call_function_by_hand_dummy): Update.
2119 * infrun.c (do_restore_infcall_suspend_state_cleanup)
2120 (make_cleanup_restore_infcall_suspend_state): Remove.
2121 (do_restore_infcall_control_state_cleanup)
2122 (make_cleanup_restore_infcall_control_state): Remove.
2123
ee841dd8
TT
21242018-09-17 Tom Tromey <tom@tromey.com>
2125
2126 * gdbthread.h (struct thread_control_state): Add initializer.
2127 (class thread_info) <control>: Remove initializer.
2128 * inferior.h (struct inferior_control_state): Add initializer.
2129 (class inferior) <control>: Remove initializer.
2130 (exit_inferior_1): Update.
2131 * infrun.c (struct infcall_control_state): Add constructors.
2132 (save_infcall_control_state): Use new.
2133 (restore_infcall_control_state, discard_infcall_control_state):
2134 Use delete.
2135
117f580a
TT
21362018-09-17 Tom Tromey <tom@tromey.com>
2137
2138 * infrun.c (struct infcall_suspend_state) <registers>: Now a
2139 unique_ptr.
2140 <siginfo_data>: Now a unique_xmalloc_ptr.
2141 (save_infcall_suspend_state, restore_infcall_suspend_state)
2142 (discard_infcall_suspend_state)
2143 (get_infcall_suspend_state_regcache): Update.
2144
dd848631
TT
21452018-09-17 Tom Tromey <tom@tromey.com>
2146
2147 * gdbthread.h (struct thread_suspend_state): Add initializers.
2148 (class thread_info) <suspend>: Remove initializer.
2149 * infrun.c (struct infcall_suspend_state): Add initializers.
2150 (save_infcall_suspend_state): Use new.
2151 (discard_infcall_suspend_state): Use delete.
2152
1a338907
TT
21532018-09-16 Tom Tromey <tom@tromey.com>
2154
2155 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
2156 Remove.
2157 * python/py-varobj.c (py_varobj_iter_ctor): Change pyiter to
2158 rvalue reference. Remove CPYCHECKER_STEALS_REFERENCE_TO_ARG.
2159 (py_varobj_iter_new): Likewise.
2160 (py_varobj_get_iterator): Use gdbpy_ref.
2161
4a137fec
TT
21622018-09-16 Tom Tromey <tom@tromey.com>
2163
2164 * python/py-threadevent.c (py_get_event_thread): Simplify.
2165 * python/py-inferior.c (infpy_thread_from_thread_handle):
2166 Return immediately after calling thread_to_thread_object. Use
2167 Py_RETURN_NONE.
2168 (thread_to_thread_object): Set the exception on a NULL return.
2169
8ff03f0b
SM
21702018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
2171
2172 * Makefile.in (LIBGDB_OBS): Sort COMMON_OBS.
2173
94c8b725
TT
21742018-09-16 Tom Tromey <tom@tromey.com>
2175
2176 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
2177 Remove.
2178
db1337cc
TT
21792018-09-16 Tom Tromey <tom@tromey.com>
2180
2181 * python/python-internal.h (thread_to_thread_object): Change
2182 return type.
2183 * python/py-inferior.c (thread_to_thread_object): Return a new
2184 reference.
2185 (infpy_thread_from_thread_handle): Update.
2186 * python/py-infthread.c (gdbpy_selected_thread): Update.
2187 * python/py-stopevent.c (create_stop_event_object): Update.
2188 * python/py-threadevent.c (py_get_event_thread): Return a new
2189 reference.
2190 (py_get_event_thread): Update.
2191 * python/py-event.h (py_get_event_thread): Change return type.
2192 * python/py-continueevent.c (create_continue_event_object):
2193 Update.
2194
0a9db5ad
TT
21952018-09-16 Tom Tromey <tom@tromey.com>
2196
2197 * python/py-progspace.c (pspy_get_objfiles): Update.
2198 * python/python-internal.h (objfile_to_objfile_object): Change
2199 return type.
2200 * python/py-newobjfileevent.c (create_new_objfile_event_object):
2201 Update.
2202 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
2203 Update.
2204 * python/python.c (gdbpy_get_current_objfile): Update.
2205 (gdbpy_objfiles): Update.
2206 * python/py-objfile.c (objfpy_get_owner, gdbpy_lookup_objfile):
2207 Update.
2208 (objfile_to_objfile_object): Return a new reference.
2209 * python/py-symtab.c (stpy_get_objfile): Update.
2210 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
2211 Update.
2212
3c7aa307
TT
22132018-09-16 Tom Tromey <tom@tromey.com>
2214
2215 * python/py-inferior.c (infpy_get_progspace): Update.
2216 * python/python-internal.h (pspace_to_pspace_object): Change
2217 return type.
2218 * python/py-newobjfileevent.c
2219 (create_clear_objfiles_event_object): Update.
2220 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
2221 Update.
2222 * python/python.c (gdbpy_get_current_progspace): Update.
2223 (gdbpy_progspaces): Update.
2224 * python/py-progspace.c (pspace_to_pspace_object): Return a new
2225 reference.
2226 * python/py-objfile.c (objfpy_get_progspace): Update.
2227 * python/py-prettyprint.c (find_pretty_printer_from_progspace):
2228 Update.
2229
8743a9cd
TT
22302018-09-16 Tom Tromey <tom@tromey.com>
2231
2232 * python/lib/gdb/__init__.py (current_progspace, objfiles)
2233 (solib_name, block_for_pc, find_pc_line): New functions.
2234 (execute_unwinders): Update.
2235 * python/py-block.c (gdbpy_block_for_pc): Remove.
2236 * python/py-inferior.c (infpy_get_progspace): New function.
2237 (inferior_object_getset) <progspace>: Add.
2238 * python/py-progspace.c (pspy_objfiles): Rewrite.
2239 (pspy_solib_name, pspy_block_for_pc)
2240 (pspy_find_pc_line, pspy_is_valid): New functions.
2241 (progspace_object_methods): Add entries for solib_name,
2242 block_for_pc, find_pc_line, is_valid.
2243 * python/python-internal.h (gdbpy_block_for_pc)
2244 (build_objfiles_list): Don't declare.
2245 * python/python.c: Don't include solib.h.
2246 (gdbpy_solib_name, gdbpy_find_pc_line)
2247 (gdbpy_get_current_progspace, build_objfiles_list)
2248 (gdbpy_objfiles): Remove.
2249 (GdbMethods) <current_progspace, objfiles, block_for_pc,
2250 solib_name, find_pc_line>: Remove entries.
2251
65e65158
TT
22522018-09-16 Tom Tromey <tom@tromey.com>
2253
2254 * top.c (new_ui_command): Use GNU style for metasyntactic
2255 variables.
2256 * breakpoint.c (stopat_command): Use GNU style for metasyntactic
2257 variables.
2258 * maint.c (maintenance_translate_address): Remove "<>" around
2259 text.
2260 * interps.c (interpreter_exec_cmd): Use GNU style for
2261 metasyntactic variables.
2262 * nto-procfs.c (nto_procfs_target_info): Use GNU style for
2263 metasyntactic variables.
2264 * tracepoint.c (tfind_range_command): Use GNU style for
2265 metasyntactic variables.
2266 (tfind_outside_command): Likewise.
2267 (_initialize_tracepoint): Likewise.
2268 * remote.c (extended_remote_target::create_inferior): Use GNU
2269 style for metasyntactic variables.
2270 * sparc64-tdep.c (adi_examine_command): Use GNU style for
2271 metasyntactic variables.
2272 (adi_assign_command): Likewise.
2273
f4bab6ff
TT
22742018-09-16 Tom Tromey <tom@tromey.com>
2275
2276 * disasm.c (show_disassembler_options_sfunc): Use GNU style for
2277 metasyntactic variables. Print message if no disassembler options
2278 are available.
2279
cbaaa0ca
TT
22802018-09-15 Tom Tromey <tom@tromey.com>
2281
2282 * infcmd.c (get_inferior_args): Return const char *.
2283 * inferior.h (get_inferior_args): Return type now const.
2284 * linux-tdep.c (linux_fill_prpsinfo): Update.
2285 * procfs.c (procfs_target::make_corefile_notes): Update.
2286
a3a6aef4
TT
22872018-09-07 Tom Tromey <tom@tromey.com>
2288
2289 * python/python.c (execute_gdb_command): Call bpstat_do_actions
2290 inside the TRY.
2291
f70e088f
SL
22922018-09-14 Sandra Loosemore <sandra@codesourcery.com>
2293
2294 * nios2-tdep.c (nios2_type_align): New.
2295 (nios2_gdb_arch_init): Install type_align hook.
2296
2fabdf33
AB
22972018-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
2298
2299 * eval.c (fake_method::fake_method): Call xzalloc directly for a
2300 type that is neither object file owned, nor gdbarch owned.
2301 * gdbtypes.c (get_type_gdbarch): Add an assert that returned
2302 gdbarch is non-NULL.
2303 (alloc_type_instance): Allocate non-objfile owned types on the
2304 gdbarch obstack.
2305 (copy_type_recursive): Allocate TYPE_FIELDS and TYPE_RANGE_DATA
2306 using TYPE_ALLOC to ensure memory is allocated on the correct
2307 obstack.
2308 * gdbtypes.h (TYPE_ALLOC): Allocate space on either the objfile
2309 obstack, or the gdbarch obstack.
2310 (TYPE_ZALLOC): Rewrite using TYPE_ALLOC.
2311
b4b08fa2
TT
23122018-09-14 Tom Tromey <tom@tromey.com>
2313
2314 * infcall.c (call_function_by_hand_dummy): Remove unnecessary
2315 block.
2316
87b240d4
TT
23172018-09-14 Tom Tromey <tom@tromey.com>
2318
2319 * nat/fork-inferior.c (get_startup_shell): Remove "static".
2320
7d221512
TT
23212018-09-13 Tom Tromey <tom@tromey.com>
2322
2323 * python/py-inferior.c (infpy_thread_from_thread_handle): Now
2324 static.
2325
97e67fc6
TT
23262018-09-13 Tom Tromey <tom@tromey.com>
2327
2328 * exec.c (try_open_exec_file): Use std::string.
2329
803c08d0
TT
23302018-09-13 Tom Tromey <tom@tromey.com>
2331
2332 * utils.h (gdb_bfd_errmsg): Return std::string.
2333 * exec.c (exec_file_attach): Update.
2334 * compile/compile-object-load.c (compile_object_load): Update.
2335 * utils.c (gdb_bfd_errmsg): Return std::string.
2336
5b4cbbe3
TT
23372018-09-13 Tom Tromey <tom@tromey.com>
2338
2339 * procfs.c (struct procinfo_deleter): New.
2340 (procinfo_up): New typedef.
2341 (do_destroy_procinfo_cleanup): Remove.
2342 (procfs_target::info_proc): Use procinfo_up. Remove cleanups.
2343
db68fbe2
TT
23442018-09-13 Tom Tromey <tom@tromey.com>
2345
2346 * source.c (add_path): Use gdb::unique_xmalloc_ptr.
2347
0ae1a321
SM
23482018-09-13 Simon Marchi <simon.marchi@ericsson.com>
23492018-09-13 Tom Tromey <tom@tromey.com>
2350
2351 * python/py-progspace.c (PSPY_REQUIRE_VALID): New macro.
2352 (pspy_get_objfiles): New function.
2353 (progspace_object_methods): New.
2354 (pspace_object_type): Add tp_methods callback.
2355 * python/python-internal.h (build_objfiles_list): New
2356 declaration.
2357 * python/python.c (build_objfiles_list): New function.
2358 (gdbpy_objfiles): Implement using build_objfiles_list.
2359 * NEWS: Mention the Progspace.objfiles method.
2360
a40bf0c2
SM
23612018-09-13 Simon Marchi <simon.marchi@ericsson.com>
2362
2363 * python/py-inferior.c (infpy_get_progspace): New function.
2364 (inferior_object_getset): Add progspace property.
2365 * NEWS: Mention the new property.
2366
4a3fe98f
TT
23672018-09-13 Tom Tromey <tom@tromey.com>
2368
2369 PR rust/23650:
2370 * rust-lang.c (rust_evaluate_subexp): Use field name, not "foo".
2371
098b2108
TT
23722018-09-13 Tom Tromey <tom@tromey.com>
2373
2374 PR rust/23626:
2375 * rust-lang.c (rust_enum_variant): Now static.
2376 (rust_empty_enum_p): New function.
2377 (rust_print_enum, rust_evaluate_subexp, rust_print_struct_def):
2378 Handle empty enum.
2379
1256af7d
SM
23802018-09-13 Simon Marchi <simon.marchi@ericsson.com>
2381
2382 * python/py-inferior.c (infpy_repr): New.
2383 (inferior_object_type): Register infpy_repr.
2384 * python/py-objfile.c (objfpy_repr): New.
2385 (objfile_object_type): Register objfpy_repr.
2386
f117a62c
JB
23872018-09-12 John Baldwin <jhb@FreeBSD.org>
2388
2389 * fbsd-nat.c (fbsd_nat_target::info_proc): Remove unused variable.
2390
88f22c34
JB
23912018-09-12 John Baldwin <jhb@FreeBSD.org>
2392
2393 * aarch64-fbsd-tdep.h (AARCH64_FBSD_SIZEOF_GREGSET): Fix comment
2394 typo.
2395
3c025cfe
SDJ
23962018-09-12 Sergio Durigan Junior <sergiodj@redhat.com>
2397
2398 * common/common-utils.c: Don't include '<sys/stat.h>'.
2399 (is_regular_file): Move to...
2400 * common/filestuff.c (is_regular_file): ... here.
2401 * common/common-utils.h (is_regular_file): Move to...
2402 * common/filestuff.h (is_regular_file): ... here.
2403
3e68067f
SM
24042018-09-12 Simon Marchi <simon.marchi@ericsson.com>
2405
2406 * skip.c (debug_skip): New variable.
2407 (skiplist_entry::do_skip_file_p): Add debug output.
2408 (skiplist_entry::do_skip_gfile_p): Likewise.
2409 (skiplist_entry::skip_function_p): Likewise.
2410 (_initialize_step_skip): Create debug command.
2411 * NEWS: Mention set/show debug skip.
2412
d6be54ef
XR
24132018-09-11 Xavier Roirand <roirand@adacore.com>
2414
2415 * darwin-nat.c (should_disable_startup_with_shell):
2416 New function.
2417 (darwin_nat_target::create_inferior): Add call.
2418
de1ec836
XR
24192018-09-11 Xavier Roirand <roirand@adacore.com>
2420
2421 * darwin-nat.h (struct darwin_thread_info) <gdb_port,
2422 inf_port, msg_state>: Initialize.
2423 (struct darwin_thread_info) <signaled, single_step>: Change
2424 type and initialize.
2425 (struct darwin_thread_info) <event>: Initialize.
2426
e2fc52e7
SDJ
24272018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
2428
2429 PR gdb/23555
2430 PR gdb/23558
2431 * gnulib/import/m4/getcwd-path-max.m4: Add cross-compilation
2432 guesses.
2433
5e8754f9
SDJ
24342018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
2435
2436 Revert:
2437 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
2438
2439 PR gdb/23555
2440 PR gdb/23558
2441 * gnulib/aclocal.m4: Regenerate.
2442 * gnulib/config.in: Regenerate.
2443 * gnulib/configure: Regenerate.
2444 * gnulib/import/Makefile.am: Update.
2445 * gnulib/import/Makefile.in: Update.
2446 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
2447 * gnulib/import/_Noreturn.h: ... this.
2448 * gnulib/import/alloca.in.h: Update.
2449 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
2450 * gnulib/import/arg-nonnull.h: ... this.
2451 * gnulib/import/assure.h: Update.
2452 * gnulib/import/at-func.c: Update.
2453 * gnulib/import/basename-lgpl.c: Update.
2454 * gnulib/import/extra/snippet/c++defs.h: Rename to...
2455 * gnulib/import/c++defs.h: ... this.
2456 * gnulib/import/canonicalize-lgpl.c: Update.
2457 * gnulib/import/cdefs.h: Update.
2458 * gnulib/import/chdir-long.c: Update.
2459 * gnulib/import/chdir-long.h: Update.
2460 * gnulib/import/cloexec.c: Update.
2461 * gnulib/import/cloexec.h: Update.
2462 * gnulib/import/close.c: Update.
2463 * gnulib/import/closedir.c: Update.
2464 * gnulib/import/config.charset: Update.
2465 * gnulib/import/dirent-private.h: Update.
2466 * gnulib/import/dirent.in.h: Update.
2467 * gnulib/import/dirfd.c: Update.
2468 * gnulib/import/dirname-lgpl.c: Update.
2469 * gnulib/import/dirname.h: Update.
2470 * gnulib/import/dosname.h: Update.
2471 * gnulib/import/dup-safer-flag.c: Update.
2472 * gnulib/import/dup-safer.c: Update.
2473 * gnulib/import/dup.c: Update.
2474 * gnulib/import/dup2.c: Update.
2475 * gnulib/import/errno.in.h: Update.
2476 * gnulib/import/error.c: Update.
2477 * gnulib/import/error.h: Update.
2478 * gnulib/import/exitfail.c: Update.
2479 * gnulib/import/exitfail.h: Update.
2480 * gnulib/import/extra/update-copyright: Update.
2481 * gnulib/import/fchdir.c: Update.
2482 * gnulib/import/fcntl.c: Update.
2483 * gnulib/import/fcntl.in.h: Update.
2484 * gnulib/import/fd-hook.c: Update.
2485 * gnulib/import/fd-hook.h: Update.
2486 * gnulib/import/fd-safer-flag.c: Update.
2487 * gnulib/import/fd-safer.c: Update.
2488 * gnulib/import/fdopendir.c: Update.
2489 * gnulib/import/filename.h: Update.
2490 * gnulib/import/filenamecat-lgpl.c: Update.
2491 * gnulib/import/filenamecat.h: Update.
2492 * gnulib/import/flexmember.h: Update.
2493 * gnulib/import/float+.h: Update.
2494 * gnulib/import/float.c: Update.
2495 * gnulib/import/float.in.h: Update.
2496 * gnulib/import/fnmatch.c: Update.
2497 * gnulib/import/fnmatch.in.h: Update.
2498 * gnulib/import/fnmatch_loop.c: Update.
2499 * gnulib/import/fpucw.h: Update.
2500 * gnulib/import/frexp.c: Update.
2501 * gnulib/import/frexpl.c: Update.
2502 * gnulib/import/fstat.c: Update.
2503 * gnulib/import/fstatat.c: Update.
2504 * gnulib/import/getcwd-lgpl.c: Update.
2505 * gnulib/import/getcwd.c: Update.
2506 * gnulib/import/getdtablesize.c: Update.
2507 * gnulib/import/getlogin_r.c: Update.
2508 * gnulib/import/getprogname.c: Update.
2509 * gnulib/import/getprogname.h: Update.
2510 * gnulib/import/gettext.h: Update.
2511 * gnulib/import/gettimeofday.c: Update.
2512 * gnulib/import/glob-libc.h: Update.
2513 * gnulib/import/glob.c: Update.
2514 * gnulib/import/glob.in.h: Update.
2515 * gnulib/import/glob_internal.h: Update.
2516 * gnulib/import/glob_pattern_p.c: Update.
2517 * gnulib/import/globfree.c: Update.
2518 * gnulib/import/hard-locale.c: Update.
2519 * gnulib/import/hard-locale.h: Update.
2520 * gnulib/import/intprops.h: Update.
2521 * gnulib/import/inttypes.in.h: Update.
2522 * gnulib/import/isnan.c: Update.
2523 * gnulib/import/isnand-nolibm.h: Update.
2524 * gnulib/import/isnand.c: Update.
2525 * gnulib/import/isnanl-nolibm.h: Update.
2526 * gnulib/import/isnanl.c: Update.
2527 * gnulib/import/itold.c: Update.
2528 * gnulib/import/libc-config.h: Update.
2529 * gnulib/import/limits.in.h: Update.
2530 * gnulib/import/localcharset.c: Update.
2531 * gnulib/import/localcharset.h: Update.
2532 * gnulib/import/localtime-buffer.c: Update.
2533 * gnulib/import/localtime-buffer.h: Update.
2534 * gnulib/import/lstat.c: Update.
2535 * gnulib/import/m4/00gnulib.m4: Update.
2536 * gnulib/import/m4/__inline.m4: Update.
2537 * gnulib/import/m4/absolute-header.m4: Update.
2538 * gnulib/import/m4/alloca.m4: Update.
2539 * gnulib/import/m4/builtin-expect.m4: Update.
2540 * gnulib/import/m4/canonicalize.m4: Update.
2541 * gnulib/import/m4/chdir-long.m4: Update.
2542 * gnulib/import/m4/close.m4: Update.
2543 * gnulib/import/m4/closedir.m4: Update.
2544 * gnulib/import/m4/configmake.m4: Update.
2545 * gnulib/import/m4/d-ino.m4: Update.
2546 * gnulib/import/m4/d-type.m4: Update.
2547 * gnulib/import/m4/dirent_h.m4: Update.
2548 * gnulib/import/m4/dirfd.m4: Update.
2549 * gnulib/import/m4/dirname.m4: Update.
2550 * gnulib/import/m4/double-slash-root.m4: Update.
2551 * gnulib/import/m4/dup.m4: Update.
2552 * gnulib/import/m4/dup2.m4: Update.
2553 * gnulib/import/m4/eealloc.m4: Update.
2554 * gnulib/import/m4/environ.m4: Update.
2555 * gnulib/import/m4/errno_h.m4: Update.
2556 * gnulib/import/m4/error.m4: Update.
2557 * gnulib/import/m4/exponentd.m4: Update.
2558 * gnulib/import/m4/exponentl.m4: Update.
2559 * gnulib/import/m4/extensions.m4: Update.
2560 * gnulib/import/m4/extern-inline.m4: Update.
2561 * gnulib/import/m4/fchdir.m4: Update.
2562 * gnulib/import/m4/fcntl-o.m4: Update.
2563 * gnulib/import/m4/fcntl.m4: Update.
2564 * gnulib/import/m4/fcntl_h.m4: Update.
2565 * gnulib/import/m4/fdopendir.m4: Update.
2566 * gnulib/import/m4/filenamecat.m4: Update.
2567 * gnulib/import/m4/flexmember.m4: Update.
2568 * gnulib/import/m4/float_h.m4: Update.
2569 * gnulib/import/m4/fnmatch.m4: Update.
2570 * gnulib/import/m4/fnmatch_h.m4: Update.
2571 * gnulib/import/m4/fpieee.m4: Update.
2572 * gnulib/import/m4/frexp.m4: Update.
2573 * gnulib/import/m4/frexpl.m4: Update.
2574 * gnulib/import/m4/fstat.m4: Update.
2575 * gnulib/import/m4/fstatat.m4: Update.
2576 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
2577 * gnulib/import/m4/getcwd-path-max.m4: Update.
2578 * gnulib/import/m4/getcwd.m4: Update.
2579 * gnulib/import/m4/getdtablesize.m4: Update.
2580 * gnulib/import/m4/getlogin.m4: Update.
2581 * gnulib/import/m4/getlogin_r.m4: Update.
2582 * gnulib/import/m4/getpagesize.m4: Update.
2583 * gnulib/import/m4/getprogname.m4: Update.
2584 * gnulib/import/m4/gettimeofday.m4: Update.
2585 * gnulib/import/m4/glibc21.m4: Update.
2586 * gnulib/import/m4/glob.m4: Update.
2587 * gnulib/import/m4/glob_h.m4: Update.
2588 * gnulib/import/m4/gnulib-cache.m4: Update.
2589 * gnulib/import/m4/gnulib-common.m4: Update.
2590 * gnulib/import/m4/gnulib-comp.m4: Update.
2591 * gnulib/import/m4/gnulib-tool.m4: Update.
2592 * gnulib/import/m4/hard-locale.m4: Update.
2593 * gnulib/import/m4/include_next.m4: Update.
2594 * gnulib/import/m4/inttypes-pri.m4: Update.
2595 * gnulib/import/m4/inttypes.m4: Update.
2596 * gnulib/import/m4/isnand.m4: Update.
2597 * gnulib/import/m4/isnanl.m4: Update.
2598 * gnulib/import/m4/largefile.m4: Update.
2599 * gnulib/import/m4/limits-h.m4: Update.
2600 * gnulib/import/m4/localcharset.m4: Update.
2601 * gnulib/import/m4/locale-fr.m4: Update.
2602 * gnulib/import/m4/locale-ja.m4: Update.
2603 * gnulib/import/m4/locale-zh.m4: Update.
2604 * gnulib/import/m4/localtime-buffer.m4: Update.
2605 * gnulib/import/m4/longlong.m4: Update.
2606 * gnulib/import/m4/lstat.m4: Update.
2607 * gnulib/import/m4/malloc.m4: Update.
2608 * gnulib/import/m4/malloca.m4: Update.
2609 * gnulib/import/m4/math_h.m4: Update.
2610 * gnulib/import/m4/mbrtowc.m4: Update.
2611 * gnulib/import/m4/mbsinit.m4: Update.
2612 * gnulib/import/m4/mbsrtowcs.m4: Update.
2613 * gnulib/import/m4/mbstate_t.m4: Update.
2614 * gnulib/import/m4/memchr.m4: Update.
2615 * gnulib/import/m4/memmem.m4: Update.
2616 * gnulib/import/m4/mempcpy.m4: Update.
2617 * gnulib/import/m4/memrchr.m4: Update.
2618 * gnulib/import/m4/mkdir.m4: Update.
2619 * gnulib/import/m4/mkstemp.m4: Update.
2620 * gnulib/import/m4/mmap-anon.m4: Update.
2621 * gnulib/import/m4/mode_t.m4: Update.
2622 * gnulib/import/m4/msvc-inval.m4: Update.
2623 * gnulib/import/m4/msvc-nothrow.m4: Update.
2624 * gnulib/import/m4/multiarch.m4: Update.
2625 * gnulib/import/m4/nocrash.m4: Update.
2626 * gnulib/import/m4/off_t.m4: Update.
2627 * gnulib/import/m4/onceonly.m4: Update.
2628 * gnulib/import/m4/open-cloexec.m4: Update.
2629 * gnulib/import/m4/open.m4: Update.
2630 * gnulib/import/m4/openat.m4: Update.
2631 * gnulib/import/m4/opendir.m4: Update.
2632 * gnulib/import/m4/pathmax.m4: Update.
2633 * gnulib/import/m4/rawmemchr.m4: Update.
2634 * gnulib/import/m4/readdir.m4: Update.
2635 * gnulib/import/m4/readlink.m4: Update.
2636 * gnulib/import/m4/realloc.m4: Update.
2637 * gnulib/import/m4/rename.m4: Update.
2638 * gnulib/import/m4/rewinddir.m4: Update.
2639 * gnulib/import/m4/rmdir.m4: Update.
2640 * gnulib/import/m4/save-cwd.m4: Update.
2641 * gnulib/import/m4/secure_getenv.m4: Update.
2642 * gnulib/import/m4/setenv.m4: Update.
2643 * gnulib/import/m4/signal_h.m4: Update.
2644 * gnulib/import/m4/ssize_t.m4: Update.
2645 * gnulib/import/m4/stat-time.m4: Update.
2646 * gnulib/import/m4/stat.m4: Update.
2647 * gnulib/import/m4/std-gnu11.m4: Update.
2648 * gnulib/import/m4/stdbool.m4: Update.
2649 * gnulib/import/m4/stddef_h.m4: Update.
2650 * gnulib/import/m4/stdint.m4: Update.
2651 * gnulib/import/m4/stdio_h.m4: Update.
2652 * gnulib/import/m4/stdlib_h.m4: Update.
2653 * gnulib/import/m4/strchrnul.m4: Update.
2654 * gnulib/import/m4/strdup.m4: Update.
2655 * gnulib/import/m4/strerror.m4: Update.
2656 * gnulib/import/m4/string_h.m4: Update.
2657 * gnulib/import/m4/strstr.m4: Update.
2658 * gnulib/import/m4/strtok_r.m4: Update.
2659 * gnulib/import/m4/sys_socket_h.m4: Update.
2660 * gnulib/import/m4/sys_stat_h.m4: Update.
2661 * gnulib/import/m4/sys_time_h.m4: Update.
2662 * gnulib/import/m4/sys_types_h.m4: Update.
2663 * gnulib/import/m4/tempname.m4: Update.
2664 * gnulib/import/m4/time_h.m4: Update.
2665 * gnulib/import/m4/unistd-safer.m4: Update.
2666 * gnulib/import/m4/unistd_h.m4: Update.
2667 * gnulib/import/m4/warn-on-use.m4: Update.
2668 * gnulib/import/m4/wchar_h.m4: Update.
2669 * gnulib/import/m4/wchar_t.m4: Update.
2670 * gnulib/import/m4/wctype_h.m4: Update.
2671 * gnulib/import/m4/wint_t.m4: Update.
2672 * gnulib/import/malloc.c: Update.
2673 * gnulib/import/malloc/scratch_buffer.h: Update.
2674 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
2675 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
2676 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
2677 * gnulib/import/malloca.c: Update.
2678 * gnulib/import/malloca.h: Update.
2679 * gnulib/import/malloca.valgrind: Update.
2680 * gnulib/import/math.in.h: Update.
2681 * gnulib/import/mbrtowc.c: Update.
2682 * gnulib/import/mbsinit.c: Update.
2683 * gnulib/import/mbsrtowcs-impl.h: Update.
2684 * gnulib/import/mbsrtowcs-state.c: Update.
2685 * gnulib/import/mbsrtowcs.c: Update.
2686 * gnulib/import/memchr.c: Update.
2687 * gnulib/import/memmem.c: Update.
2688 * gnulib/import/mempcpy.c: Update.
2689 * gnulib/import/memrchr.c: Update.
2690 * gnulib/import/mkdir.c: Update.
2691 * gnulib/import/mkstemp.c: Update.
2692 * gnulib/import/msvc-inval.c: Update.
2693 * gnulib/import/msvc-inval.h: Update.
2694 * gnulib/import/msvc-nothrow.c: Update.
2695 * gnulib/import/msvc-nothrow.h: Update.
2696 * gnulib/import/open.c: Update.
2697 * gnulib/import/openat-die.c: Update.
2698 * gnulib/import/openat-priv.h: Update.
2699 * gnulib/import/openat-proc.c: Update.
2700 * gnulib/import/openat.c: Update.
2701 * gnulib/import/openat.h: Update.
2702 * gnulib/import/opendir.c: Update.
2703 * gnulib/import/pathmax.h: Update.
2704 * gnulib/import/pipe-safer.c: Update.
2705 * gnulib/import/rawmemchr.c: Update.
2706 * gnulib/import/readdir.c: Update.
2707 * gnulib/import/readlink.c: Update.
2708 * gnulib/import/realloc.c: Update.
2709 * gnulib/import/ref-add.sin: Update.
2710 * gnulib/import/ref-del.sin: Update.
2711 * gnulib/import/rename.c: Update.
2712 * gnulib/import/rewinddir.c: Update.
2713 * gnulib/import/rmdir.c: Update.
2714 * gnulib/import/same-inode.h: Update.
2715 * gnulib/import/save-cwd.c: Update.
2716 * gnulib/import/save-cwd.h: Update.
2717 * gnulib/import/scratch_buffer.h: Update.
2718 * gnulib/import/secure_getenv.c: Update.
2719 * gnulib/import/setenv.c: Update.
2720 * gnulib/import/signal.in.h: Update.
2721 * gnulib/import/stat-time.c: Update.
2722 * gnulib/import/stat-time.h: Update.
2723 * gnulib/import/stat-w32.c: Update.
2724 * gnulib/import/stat-w32.h: Update.
2725 * gnulib/import/stat.c: Update.
2726 * gnulib/import/stdbool.in.h: Update.
2727 * gnulib/import/stddef.in.h: Update.
2728 * gnulib/import/stdint.in.h: Update.
2729 * gnulib/import/stdio.in.h: Update.
2730 * gnulib/import/stdlib.in.h: Update.
2731 * gnulib/import/str-two-way.h: Update.
2732 * gnulib/import/strchrnul.c: Update.
2733 * gnulib/import/strdup.c: Update.
2734 * gnulib/import/streq.h: Update.
2735 * gnulib/import/strerror-override.c: Update.
2736 * gnulib/import/strerror-override.h: Update.
2737 * gnulib/import/strerror.c: Update.
2738 * gnulib/import/string.in.h: Update.
2739 * gnulib/import/stripslash.c: Update.
2740 * gnulib/import/strnlen1.c: Update.
2741 * gnulib/import/strnlen1.h: Update.
2742 * gnulib/import/strstr.c: Update.
2743 * gnulib/import/strtok_r.c: Update.
2744 * gnulib/import/sys_stat.in.h: Update.
2745 * gnulib/import/sys_time.in.h: Update.
2746 * gnulib/import/sys_types.in.h: Update.
2747 * gnulib/import/tempname.c: Update.
2748 * gnulib/import/tempname.h: Update.
2749 * gnulib/import/time.in.h: Update.
2750 * gnulib/import/unistd--.h: Update.
2751 * gnulib/import/unistd-safer.h: Update.
2752 * gnulib/import/unistd.in.h: Update.
2753 * gnulib/import/unsetenv.c: Update.
2754 * gnulib/import/verify.h: Update.
2755 * gnulib/import/extra/snippet/warn-on-use.h: Update.
2756 * gnulib/import/wchar.in.h: Update.
2757 * gnulib/import/wctype.in.h: Update.
2758 * gnulib/import/xalloc-oversized.h: Update.
2759 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
2760 "53e2c179f26a890fa6685af4b6c1397ee370433b".
2761
8ec23583
SM
27622018-09-10 Simon Marchi <simon.marchi@ericsson.com>
2763
2764 * record-btrace.c (get_thread_current_frame): Remove
2765 old_inferior_ptid.
2766
1f5d1570
JG
27672018-09-10 Jerome Guitton <guitton@adacore.com>
2768
2769 * ada-lang.c (ada_value_struct_elt): Call ada_to_fixed_type
2770 with check_tag to 1 if and only if the type is tagged and the
2771 component being searched cannot been found in the current
2772 view. Otherwise, always call ada_to_fixed_type with
2773 check_tag to 0.
2774
d91e9ea8
XR
27752018-09-10 Xavier Roirand <roirand@adacore.com>
2776
2777 * ada-lang.c (ada_is_access_to_unconstrained_array): Remove static
2778 declaration.
2779 * ada-lang.h: add ada_is_access_to_unconstrained_array prototype.
2780 * ada-varobj.c (ada_varobj_get_number_of_children,
2781 ada_varobj_describe_child, ada_value_is_changeable_p): Cleanup code.
2782
cc330e39
XR
27832018-09-10 Xavier Roirand <roirand@adacore.com>
2784
2785 * ada-valprint.c (ada_value_print): Use type instead of
2786 enclosing type.
2787
b9c50e9a
XR
27882018-09-10 Xavier Roirand <roirand@adacore.com>
2789
2790 * ada-lang.c (ada_value_subscript): Handle case when parameter is
2791 an array of access to unconstrained array.
2792
736ade86
XR
27932018-09-10 Xavier Roirand <roirand@adacore.com>
2794
2795 * ada-lang.c (ada_is_access_to_unconstrained_array): New function.
2796 (ada_check_typedef): Use it.
2797
2963898f
XR
27982018-09-10 Xavier Roirand <roirand@adacore.com>
2799
2800 * ada-varobj.c (ada_varobj_describe_struct_child)
2801 (ada_varobj_describe_child): Handle union case like struct one.
2802
a154931e
TT
28032018-09-10 Tom Tromey <tom@tromey.com>
2804
2805 PR python/18380:
2806 * python/python.c (_initialize_python): Make example in "python"
2807 help work in Python 3.
2808
23c4651c
EZ
28092018-09-10 Eli Zaretskii <eliz@gnu.org>
2810
2811 * Makefile.in (transformed_name): Use INSTALL_SCRIPT instead of
2812 INSTALL_PROGRAM to install gdb-add-index.sh. Don't append
2813 $(EXEEXT) to the script, as it is not a program.
2814
a5c5eda7
SM
28152018-09-09 Simon Marchi <simon.marchi@ericsson.com>
2816
2817 * python/py-prettyprint.c (pretty_print_one_value): Return
2818 gdbpy_ref<>.
2819 (print_string_repr): Adjust.
2820 (apply_varobj_pretty_printer): Return gdbpy_ref<>.
2821 * python/python-internal.h (apply_varobj_pretty_printer): Return
2822 gdbpy_ref<>.
2823 * varobj.c (varobj_value_get_print_value): Adjust.
2824
332cf4c9
TT
28252018-09-08 Tom Tromey <tom@tromey.com>
2826
2827 PR python/16047:
2828 * python/py-prettyprint.c (pretty_print_one_value): Check for
2829 to_string method.
2830
424da6cf
JB
28312018-09-08 Joel Brobecker <brobecker@adacore.com>
2832
2833 * ada-lang.c (resolve_subexp): Pass correct OPLEN in call to
2834 replace_operator_with_call.
2835
95f39a5b
JB
28362018-09-08 Joel Brobecker <brobecker@adacore.com>
2837
2838 * ada-lang.c (ada_value_cast): Remove unnecessary parentheses.
2839
16b9eb7b
JB
28402018-09-08 Joel Brobecker <brobecker@adacore.com>
2841
2842 * ada-typeprint.c (print_range): Print the bounds using TYPE
2843 rather than its TYPE_TARGET_TYPE.
2844
d8ce9127
JB
28452018-09-08 Joel Brobecker <brobecker@adacore.com>
2846
2847 * ada-lang.c (ada_to_fixed_value): Minor reformatting in
2848 call to ada_to_fixed_value_create.
2849
0d81f350
JG
28502018-09-08 Jerome Guitton <guitton@adacore.com>
2851
2852 * ada-lang.c (ada_decode): strip dot prefix in symbol name.
2853
57aff202
JB
28542018-09-08 Joel Brobecker <brobecker@adacore.com>
2855
2856 * ada-lang.c (ada_exception_sal): Replace gdb_assert calls
2857 by calls to error.
2858
fb44b1a7
JB
28592018-09-08 Joel Brobecker <brobecker@adacore.com>
2860
2861 * ada-lang.c (ada_unhandled_exception_name_addr_from_raise):
2862 Move update of loop variable "fi".
2863
2a62dfa9
JB
28642018-09-08 Joel Brobecker <brobecker@adacore.com>
2865
2866 * ada-lang.c (value_assign_to_component): In the case of
2867 big-endian targets, extract the bits of the given VAL
2868 using an src_offset of zero if container is not a scalar.
2869
739ab2e9
SS
28702018-09-06 Simon Ser <contact@emersion.fr>
2871
2872 PR gdb/23105
2873 * fbsd-nat.c (fbsd_nat_target::xfer_partial): Add support for
2874 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
2875 * fbsd-tdep.c (fbsd_make_note_desc): New.
2876 (fbsd_make_corefile_notes): Write NT_PROCSTAT_AUXV,
2877 NT_PROCSTAT_VMMAP and NT_PROCSTAT_PS_STRINGS notes.
2878 * target.h (enum target_object) Add FreeBSD-specific
2879 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
2880
d82b3862
SM
28812018-09-06 Simon Marchi <simon.marchi@ericsson.com>
2882
2883 * compile/compile-c.h (generate_c_for_variable_locations):
2884 Change reference to pointer.
2885 * compile/compile-c-support.c (compile_program) <compute>:
2886 Likewise.
2887 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
2888 (generate_c_for_for_one_variable): Likewise
2889 (generate_c_for_variable_locations): Likewise
2890 * compile/compile-c-types.c (compile_c_instance::convert_type):
2891 Likewise
2892 * compile/compile-cplus-symbols.c (convert_one_symbol):
2893 std::move the scope passed to enter_scope.
2894 * compile/compile-cplus-types.c
2895 (compile_cplus_instance::enter_scope): Make parameter
2896 rvalue-reference.
2897 (compile_cplus_instance::new_scope): Change reference to
2898 pointer.
2899 (compile_cplus_instance::convert_type): Likewise
2900 (compile_cplus_convert_typedef): std::move the scope passed to
2901 enter_scope.
2902 (compile_cplus_convert_struct_or_union): Likewise.
2903 (compile_cplus_convert_enum): Likewise.
2904 (compile_cplus_convert_namespace): Likewise.
2905 * compile/compile-cplus.h (compile_cplus_instance)
2906 <enter_scope>: Make parameter rvalue-reference.
2907 * compile/compile-internal.h (compile_instance)
2908 <get_cached_type>: Likewise
2909 * compile/compile-loc2c.c (push): Likewise
2910 (pushf): Likewise
2911 (unary): Likewise
2912 (binary): Likewise
2913 (print_label): Likewise
2914 (pushf_register_address): Likewise
2915 (pushf_register): Likewise
2916 (do_compile_dwarf_expr_to_c): Likewise
2917 (compile_dwarf_expr_to_c): Likewise
2918 (compile_dwarf_bounds_to_c): Likewise
2919 * compile/compile.c (compile_instance::get_cached_type):
2920 Likewise
2921 * compile/compile.h (compile_dwarf_expr_to_c): Likewise.
2922 (compile_dwarf_bounds_to_c): Likewise
2923 * dwarf2loc.c (locexpr_generate_c_location): Likewise.
2924 (dwarf2_compile_property_to_c): Likewise
2925 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise
2926 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
2927 Likewise
2928
cc5a5ae5
SM
29292018-09-06 Simon Marchi <simon.marchi@ericsson.com>
2930
2931 * tui/tui-data.h (struct tui_win_element) <highlight>: Remove.
2932 * tui/tui-data.c (init_content_element): Don't initialize it.
2933
137be540
SM
29342018-09-06 Simon Marchi <simon.marchi@ericsson.com>
2935
2936 * tui/tui-data.h (struct tui_win_info)
2937 <detail::opaque>: Remove.
2938 * tui/tui-data.c (init_win_info): Remove assignment.
2939
f1628857
TT
29402018-09-05 Tom Tromey <tom@tromey.com>
2941
2942 * warning.m4 (AM_GDB_WARNINGS): Add -Wformat when testing
2943 -Wformat-nonliteral.
2944 * target-float.c (host_float_ops<T>::to_string)
2945 (host_float_ops<T>::from_string): Use
2946 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
2947 * configure: Rebuild.
2948
af39b1c2
SM
29492018-09-05 Simon Marchi <simon.marchi@ericsson.com>
2950
2951 * printcmd.c (printf_c_string): Use
2952 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
2953 (printf_wide_c_string, printf_pointer, ui_printf): Likewise.
2954
081bca4d
TT
29552018-09-05 Tom Tromey <tom@tromey.com>
2956
2957 * cli/cli-cmds.c (shell_escape, edit_command): Remove cast.
2958
e4a62c65
TV
29592018-09-05 Tom de Vries <tdevries@suse.de>
2960
2961 * dwarf2loc.c (sect_variable_value): Call indirect_synthetic_pointer
2962 with resolve_abstract_p == true.
2963 (indirect_synthetic_pointer): Add resolve_abstract_p parameter,
2964 defaulting to false. Propagate resolve_abstract_p to
2965 dwarf2_fetch_die_loc_sect_off.
2966 * dwarf2loc.h (dwarf2_fetch_die_loc_sect_off): Add resolve_abstract_p
2967 parameter, defaulting to false.
2968 * dwarf2read.c (read_variable): Add variable to abstract_to_concrete.
2969 (dwarf2_fetch_die_loc_sect_off): Add and handle resolve_abstract_p
2970 parameter.
2971 * dwarf2read.h (struct die_info): Forward-declare.
2972 (die_info_ptr): New typedef.
2973 (struct dwarf2_per_objfile): Add abstract_to_concrete field.
2974
2b69821e
JB
29752018-09-05 Joel Brobecker <brobecker@adacore.com>
2976
2977 GDB 8.2 released.
2978
fcc9b044
SDJ
29792018-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
2980 Pedro Alves <palves@redhat.com>
2981
2982 * gnulib/Makefile.in (aclocal_m4_deps): Move to
2983 "aclocal-m4-deps.mk". Include file here.
2984 $(srcdir)/aclocal.m4: Add "configure.ac".
2985 * gnulib/aclocal-m4-deps.mk: New file.
2986 * gnulib/update-gnulib.sh: Automatically update
2987 "aclocal-m4-deps.mk".
2988
d53d5436
TT
29892018-09-04 Tom Tromey <tom@tromey.com>
2990
2991 * configure: Rebuild.
2992 * configure.ac: Remove multi-ice code.
2993
8dc9fd87
TT
29942018-09-04 Tom Tromey <tom@tromey.com>
2995
2996 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS): Remove.
2997 (ada-exp.o): Update.
2998
3322c5d9
TT
29992018-09-04 Tom Tromey <tom@tromey.com>
3000
3001 * Makefile.in (printcmd.o, target-float.o): Remove.
3002 (GDB_WARN_CFLAGS_NO_FORMAT): Remove.
3003
ba2bf2aa
TT
30042018-09-04 Tom Tromey <tom@tromey.com>
3005
3006 * gnulib/Makefile.in: Remove obsolete comment.
3007 * Makefile.in: Remove obsolete comment.
3008
6c9d681b
AB
30092018-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
3010
3011 * riscv-tdep.c (riscv_frame_cache): Fix ARI warning, don't end a
3012 line with '+'.
3013
78a3b0fa
AB
30142018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
3015
3016 * riscv-tdep.c: Add 'prologue-value.h' include.
3017 (struct riscv_unwind_cache): New struct.
3018 (riscv_debug_unwinder): New global.
3019 (riscv_scan_prologue): Update arguments, capture register details
3020 from prologue scan.
3021 (riscv_skip_prologue): Reformat arguments line, move end of
3022 prologue calculation into riscv_scan_prologue.
3023 (riscv_frame_cache): Update return type, create
3024 riscv_unwind_cache, scan the prologue, and fill in remaining cache
3025 details.
3026 (riscv_frame_this_id): Use frame id computed in riscv_frame_cache.
3027 (riscv_frame_prev_register): Use the trad_frame within the
3028 riscv_unwind_cache.
3029 (_initialize_riscv_tdep): Add 'set/show debug riscv unwinder'
3030 flag.
3031
23e60e7a
AB
30322018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
3033
3034 * trad-frame.h (trad_frame_set_realreg): Declare.
3035 (trad_frame_set_addr): Declare.
3036 * trad-frame.c (trad_frame_set_realreg): Define new function.
3037 (trad_frame_set_addr): Define new function.
3038 (trad_frame_set_reg_realreg): Use new function.
3039 (trad_frame_set_reg_addr): Use new function.
3040
5c889512
KS
30412018-09-01 Keith Seitz <keiths@redhat.com>
3042
3043 * compile/compile-cplus-types.c (compile_cplus_debug_output_1): Use
3044 pulongest instead of "%lld".
3045 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol): Remove
3046 ATTRIBUTE_UNUSED.
3047
c8c81635
TT
30482018-08-31 Tom Tromey <tom@tromey.com>
3049
3050 * dwarf2read.c (dwarf2_add_field): Set the TYPE_LENGTH of the
3051 variant part type.
3052
0c888588
PA
30532018-08-31 Pedro Alves <palves@redhat.com>
3054
3055 * gdbarch.h: Regenerate.
3056
7ea65f08
PA
30572018-08-31 Pedro Alves <palves@redhat.com>
3058
3059 * gdbarch.sh (have_nonsteppable_watchpoint): Add comment.
3060 * target.h (Hardware watchpoint interfaces): Describe
3061 continuable/steppable/non-steppable watchpoints.
3062 * gdbarch.h, gdbarch.c: Regenerate.
3063
7eb65faf
PA
30642018-08-31 Pedro Alves <palves@redhat.com>
3065
3066 * nto-procfs.c (nto_procfs_target::have_continuable_watchpoint):
3067 Delete.
3068 * s390-linux-nat.c
3069 (s390_linux_nat_target::have_continuable_watchpoint): Delete.
3070 * target.h (target_ops::have_continuable_watchpoint): Delete.
3071 (target_have_continuable_watchpoint): Delete.
3072 * x86-nat.h (x86_nat_target::have_continuable_watchpoint): Delete.
3073 * target-delegates.c: Regenerate.
3074
dab999b1
SDJ
30752018-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
3076
3077 * gnulib/Makefile.in (aclocal_m4_deps): Update according to
3078 the files present in "gnulib/import/m4/".
3079
ff3a05b3
AB
30802018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
3081
3082 * riscv-tdep.c (riscv_insn::decode): Decode c.addi4spn, c.sd,
3083 c.sw, c.swsp, and c.sdsp.
3084
0b3f9efc
AB
30852018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
3086
3087 * riscv-tdep.c (struct riscv_inferior_data): Delete.
3088 (riscv_read_misa_reg): Don't cache value read into inferior data.
3089 (riscv_new_inferior_data): Delete.
3090 (riscv_inferior_data_cleanup): Delete.
3091 (riscv_inferior_data): Delete.
3092 (riscv_invalidate_inferior_data): Delete.
3093 (_initialize_riscv_tdep): Remove initialisation of inferior data.
3094
a0dc02a6
SM
30952018-08-30 Simon Marchi <simon.marchi@ericsson.com>
3096
3097 * compile/compile-cplus-types.c
3098 (compile_cplus_instance::leave_scope): Take the address of scope
3099 object.
3100 (compile_cplus_instance::convert_qualified_base): Compare quals
3101 to 0.
3102
fdad7678
KS
31032018-08-30 Keith Seitz <keiths@redhat.com>
3104
3105 * compile/compile-cplus-types.c (compile_cplus_instance::enter_scope):
3106 Use "%s" and host_address_to_string instead of "%p" in printf.
3107
078a0207
KS
31082018-08-29 Keith Seitz <keiths@redhat.com>
3109
3110 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Add compile-cplus-symbols.c
3111 and compile-cplus-types.c.
3112 (HFILES_NO_SRCDIR): Add gcc-cp-plugin.h.
3113 * c-lang.c (cplus_language_defn): Set C++ compile functions.
3114 * c-lang.h (cplus_get_compile_context, cplus_compute_program):
3115 Declare.
3116 * compile/compile-c-support.c: Include compile-cplus.h.
3117 (load_libcompile): Templatize.
3118 (get_compile_context): "New" function.
3119 (c_get_compile_context): Use get_compile_context.
3120 (cplus_get_compile_context): New function.
3121 (cplus_push_user_expression, cplus_pop_user_expression)
3122 (cplus_add_code_header, cplus_add_input, cplus_compile_program)
3123 (cplus_compute_program): Define new structs/functions.
3124 * compile/compile-cplus-symmbols.c: New file.
3125 * compile/compile-cplus-types.c: New file.
3126 * compile/compile-cplus.h: New file.
3127 * compile/compile-internal.h (debug_compile_oracle, GCC_TYPE_NONE):
3128 Declare.
3129 * compile/compile-object-load.c (get_out_value_type): Use
3130 strncmp_iw when comparing symbol names.
3131 (compile_object_load): Add mst_bss and mst_data.
3132 * compile/compile.c (_initialize_compile): Remove
3133 -Wno-implicit-function-declaration from `compile_args'.
3134 * compile/gcc-cp-plugin.h: New file.
3135 * NEWS: Mention C++ compile support and new debug options.
3136
fcaad03c
KS
31372018-08-29 Keith Seitz <keiths@redhat.com>
3138
3139 * linespec.c (collect_info::add_symbol): Make virtual.
3140 (struct symbol_searcher_collect_info): New struct.
3141 (symbol_searcher::find_all_symbols): New method.
3142 * symtab.h (class symbol_searcher): New class.
3143
7e41c8db
KS
31442018-08-29 Keith Seitz <keiths@redhat.com>
3145
3146 * linespec.c (struct linespec) <function_symbols, label_symbols>:
3147 Change to vector of block_symbol. Update all users.
3148 (struct collect_info) <symbols>: Likewise.
3149 (collect_info::add_symbol): Take block_symbol as argument.
3150 Update all callers.
3151 (decode_compound_collector) <m_symbols>: Change type to vector
3152 of block_symbol. Update all users.
3153 (decode_compound_collector::operator ()): Change parameter type
3154 to block_symbol.
3155 (find_method, find_function_symbols, find_linespec_symbols)
3156 (find_label_symbols_in_block, find_label_symbols): Change symbol
3157 vectors to block_symbol vectors.
3158 * symtab.h (symbol_found_callback_ftype): Change parameter type to
3159 block_symbol.
3160
63e8c3da
KS
31612018-08-29 Keith Seitz <keiths@redhat.com>
3162
3163 * linespec.c (symbolp): Remove typedef and VEC definitions.
3164 (bound_minimal_symbol_d): Likewise.
3165
4dedf84d
KS
31662018-08-29 Keith Seitz <keiths@redhat.com>
3167
3168 * linespec.c (decode_compound_collector::decode_compound_collector):
3169 Remove initialization for `m_symtabs'.
3170 (decode_compound_collector::release_symbols): Change return type
3171 to std::vector. Update all callers.
3172 (class decode_compound_collector) <m_symbols>: Change type to
3173 std::vector.
3174 (lookup_prefix_sym): Change return type to std::vector. Update all
3175 callers.
3176 (compare_symbols): Remove.
3177 (std_compare_symbols): Rename to `compare_symbols'.
3178 (find_method): Change `sym_classes' parameter to std::vector.
3179 Update all callers. Use std::sort to sort sym_classes.
3180 (find_linespec_symbols): Remove cleanup.
3181
c2a031c5
KS
31822018-08-29 Keith Seitz <keiths@redhat.com>
3183
3184 * linespec.c (struct linespec) <minimal_symbols>: Change type to
3185 std::vector. Update all users.
3186 (convert_linespec_to_sals): Use std::sort to sort minimal symbols.
3187 (struct collect_info) <minimal_symbols>: Likewise.
3188 (compare_msymbols): Return bool. Change parameters to const
3189 bound_minimal_symbol references.
3190 (find_method, find_function_symbols, find_linespec_symbols): Change
3191 `minsyms' parameter to std::vector. Update all callers.
3192
3553eadc
KS
31932018-08-29 Keith Seitz <keiths@redhat.com>
3194
3195 * linespec.c (struct linespec) <label_symbols>: Change type to
3196 std::vector. Update all users.
3197 (find_label_symbols_in_block): Change `result' parameter to
3198 std::vector. Update all callers.
3199 (find_label_symbols): Return std::vector. Update all callers.
3200
7243d011
KS
32012018-08-29 Keith Seitz <keiths@redhat.com>
3202
3203 * linespec.c (struct linespec) <function_symbols>: Change type to
3204 std::vector. Update all users.
3205 (struct collect_info) <function_symbols>: Likewise.
3206 (convert_linespec_to_sals): Use std::sort to sort function_symbols.
3207 (std_compare_symbols): New function.
3208 (find_method, find_function_symbols, find_linespec_symbols)
3209 (find_label_symbols_in_block): Change `symbols' parameter to
3210 std::vector. Update all callers.
3211 (find_label_symbols): Likewise for `function_symbols' and
3212 `label_funcs_ret'.
3213
2a908241
KS
32142018-08-29 Keith Seitz <keiths@redhat.com>
3215
3216 * linespec.c (symtab_vector_up): Define.
3217 (struct linespec) <file_symtabs>: Change type to std::vector *.
3218 Update all uses.
3219 (struct collect_info) <file_symtabs>: Likewise.
3220 (collect_symtabs_from_filename): Return symtab_vector_up.
3221 Update all callers.
3222 (decode_objc): Remove cleanup.
3223 (symtab_collector::symtab_collector): Initialize `m_symtabs'.
3224 (symtab_collector::release_symtabs): Return symtab_vector_up.
3225 Update all callers.
3226 (class symtab_collector) <m_symtabs>: Change type to symtab_vector_up.
3227 Update all users.
3228 (collect_symtabs_from_filename, symtabs_from_filename): Return
3229 symtab_vector_up. Update all callers.
3230
f6c4e3e8
TT
32312018-08-29 Tom Tromey <tom@tromey.com>
3232
3233 * csky-tdep.c (csky_analyze_prologue): Use
3234 core_addr_to_string_nz.
3235
73c13fe6
TT
32362018-08-29 Tom Tromey <tom@tromey.com>
3237
3238 * windows-nat.c (struct xlate_exception) <them>: Change type to
3239 DWORD.
3240 (xlate): Fix formatting. Remove last entry.
3241 (struct xlate_exception, xlate): Comment out.
3242 (windows_nat_target::resume): Use ranged for.
3243
4d3928d7
JW
32442018-08-29 Jim Wilson <jimw@sifive.com>
3245
3246 * riscv-linux-nat.c: Include elf/common.h instead of elf.h.
3247 (riscv_linux_nat_target::fetch_registers): Use NT_FPREGSET instead
3248 of NT_PRFPREG.
3249 (riscv_linux_nat_target::store_registers): Likewise.
3250
7a6dbc2f
SDJ
32512018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
3252
3253 PR gdb/23555
3254 PR gdb/23558
3255 * gnulib/aclocal.m4: Regenerate.
3256 * gnulib/config.in: Regenerate.
3257 * gnulib/configure: Regenerate.
3258 * gnulib/import/Makefile.am: Update.
3259 * gnulib/import/Makefile.in: Update.
3260 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
3261 * gnulib/import/_Noreturn.h: ... this.
3262 * gnulib/import/alloca.in.h: Update.
3263 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
3264 * gnulib/import/arg-nonnull.h: ... this.
3265 * gnulib/import/assure.h: Update.
3266 * gnulib/import/at-func.c: Update.
3267 * gnulib/import/basename-lgpl.c: Update.
3268 * gnulib/import/extra/snippet/c++defs.h: Rename to...
3269 * gnulib/import/c++defs.h: ... this.
3270 * gnulib/import/canonicalize-lgpl.c: Update.
3271 * gnulib/import/cdefs.h: Update.
3272 * gnulib/import/chdir-long.c: Update.
3273 * gnulib/import/chdir-long.h: Update.
3274 * gnulib/import/cloexec.c: Update.
3275 * gnulib/import/cloexec.h: Update.
3276 * gnulib/import/close.c: Update.
3277 * gnulib/import/closedir.c: Update.
3278 * gnulib/import/config.charset: Update.
3279 * gnulib/import/dirent-private.h: Update.
3280 * gnulib/import/dirent.in.h: Update.
3281 * gnulib/import/dirfd.c: Update.
3282 * gnulib/import/dirname-lgpl.c: Update.
3283 * gnulib/import/dirname.h: Update.
3284 * gnulib/import/dosname.h: Update.
3285 * gnulib/import/dup-safer-flag.c: Update.
3286 * gnulib/import/dup-safer.c: Update.
3287 * gnulib/import/dup.c: Update.
3288 * gnulib/import/dup2.c: Update.
3289 * gnulib/import/errno.in.h: Update.
3290 * gnulib/import/error.c: Update.
3291 * gnulib/import/error.h: Update.
3292 * gnulib/import/exitfail.c: Update.
3293 * gnulib/import/exitfail.h: Update.
3294 * gnulib/import/extra/update-copyright: Update.
3295 * gnulib/import/fchdir.c: Update.
3296 * gnulib/import/fcntl.c: Update.
3297 * gnulib/import/fcntl.in.h: Update.
3298 * gnulib/import/fd-hook.c: Update.
3299 * gnulib/import/fd-hook.h: Update.
3300 * gnulib/import/fd-safer-flag.c: Update.
3301 * gnulib/import/fd-safer.c: Update.
3302 * gnulib/import/fdopendir.c: Update.
3303 * gnulib/import/filename.h: Update.
3304 * gnulib/import/filenamecat-lgpl.c: Update.
3305 * gnulib/import/filenamecat.h: Update.
3306 * gnulib/import/flexmember.h: Update.
3307 * gnulib/import/float+.h: Update.
3308 * gnulib/import/float.c: Update.
3309 * gnulib/import/float.in.h: Update.
3310 * gnulib/import/fnmatch.c: Update.
3311 * gnulib/import/fnmatch.in.h: Update.
3312 * gnulib/import/fnmatch_loop.c: Update.
3313 * gnulib/import/fpucw.h: Update.
3314 * gnulib/import/frexp.c: Update.
3315 * gnulib/import/frexpl.c: Update.
3316 * gnulib/import/fstat.c: Update.
3317 * gnulib/import/fstatat.c: Update.
3318 * gnulib/import/getcwd-lgpl.c: Update.
3319 * gnulib/import/getcwd.c: Update.
3320 * gnulib/import/getdtablesize.c: Update.
3321 * gnulib/import/getlogin_r.c: Update.
3322 * gnulib/import/getprogname.c: Update.
3323 * gnulib/import/getprogname.h: Update.
3324 * gnulib/import/gettext.h: Update.
3325 * gnulib/import/gettimeofday.c: Update.
3326 * gnulib/import/glob-libc.h: Update.
3327 * gnulib/import/glob.c: Update.
3328 * gnulib/import/glob.in.h: Update.
3329 * gnulib/import/glob_internal.h: Update.
3330 * gnulib/import/glob_pattern_p.c: Update.
3331 * gnulib/import/globfree.c: Update.
3332 * gnulib/import/hard-locale.c: Update.
3333 * gnulib/import/hard-locale.h: Update.
3334 * gnulib/import/intprops.h: Update.
3335 * gnulib/import/inttypes.in.h: Update.
3336 * gnulib/import/isnan.c: Update.
3337 * gnulib/import/isnand-nolibm.h: Update.
3338 * gnulib/import/isnand.c: Update.
3339 * gnulib/import/isnanl-nolibm.h: Update.
3340 * gnulib/import/isnanl.c: Update.
3341 * gnulib/import/itold.c: Update.
3342 * gnulib/import/libc-config.h: Update.
3343 * gnulib/import/limits.in.h: Update.
3344 * gnulib/import/localcharset.c: Update.
3345 * gnulib/import/localcharset.h: Update.
3346 * gnulib/import/localtime-buffer.c: Update.
3347 * gnulib/import/localtime-buffer.h: Update.
3348 * gnulib/import/lstat.c: Update.
3349 * gnulib/import/m4/00gnulib.m4: Update.
3350 * gnulib/import/m4/__inline.m4: Update.
3351 * gnulib/import/m4/absolute-header.m4: Update.
3352 * gnulib/import/m4/alloca.m4: Update.
3353 * gnulib/import/m4/builtin-expect.m4: Update.
3354 * gnulib/import/m4/canonicalize.m4: Update.
3355 * gnulib/import/m4/chdir-long.m4: Update.
3356 * gnulib/import/m4/close.m4: Update.
3357 * gnulib/import/m4/closedir.m4: Update.
3358 * gnulib/import/m4/configmake.m4: Update.
3359 * gnulib/import/m4/d-ino.m4: Update.
3360 * gnulib/import/m4/d-type.m4: Update.
3361 * gnulib/import/m4/dirent_h.m4: Update.
3362 * gnulib/import/m4/dirfd.m4: Update.
3363 * gnulib/import/m4/dirname.m4: Update.
3364 * gnulib/import/m4/double-slash-root.m4: Update.
3365 * gnulib/import/m4/dup.m4: Update.
3366 * gnulib/import/m4/dup2.m4: Update.
3367 * gnulib/import/m4/eealloc.m4: Update.
3368 * gnulib/import/m4/environ.m4: Update.
3369 * gnulib/import/m4/errno_h.m4: Update.
3370 * gnulib/import/m4/error.m4: Update.
3371 * gnulib/import/m4/exponentd.m4: Update.
3372 * gnulib/import/m4/exponentl.m4: Update.
3373 * gnulib/import/m4/extensions.m4: Update.
3374 * gnulib/import/m4/extern-inline.m4: Update.
3375 * gnulib/import/m4/fchdir.m4: Update.
3376 * gnulib/import/m4/fcntl-o.m4: Update.
3377 * gnulib/import/m4/fcntl.m4: Update.
3378 * gnulib/import/m4/fcntl_h.m4: Update.
3379 * gnulib/import/m4/fdopendir.m4: Update.
3380 * gnulib/import/m4/filenamecat.m4: Update.
3381 * gnulib/import/m4/flexmember.m4: Update.
3382 * gnulib/import/m4/float_h.m4: Update.
3383 * gnulib/import/m4/fnmatch.m4: Update.
3384 * gnulib/import/m4/fnmatch_h.m4: Update.
3385 * gnulib/import/m4/fpieee.m4: Update.
3386 * gnulib/import/m4/frexp.m4: Update.
3387 * gnulib/import/m4/frexpl.m4: Update.
3388 * gnulib/import/m4/fstat.m4: Update.
3389 * gnulib/import/m4/fstatat.m4: Update.
3390 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
3391 * gnulib/import/m4/getcwd-path-max.m4: Update.
3392 * gnulib/import/m4/getcwd.m4: Update.
3393 * gnulib/import/m4/getdtablesize.m4: Update.
3394 * gnulib/import/m4/getlogin.m4: Update.
3395 * gnulib/import/m4/getlogin_r.m4: Update.
3396 * gnulib/import/m4/getpagesize.m4: Update.
3397 * gnulib/import/m4/getprogname.m4: Update.
3398 * gnulib/import/m4/gettimeofday.m4: Update.
3399 * gnulib/import/m4/glibc21.m4: Update.
3400 * gnulib/import/m4/glob.m4: Update.
3401 * gnulib/import/m4/glob_h.m4: Update.
3402 * gnulib/import/m4/gnulib-cache.m4: Update.
3403 * gnulib/import/m4/gnulib-common.m4: Update.
3404 * gnulib/import/m4/gnulib-comp.m4: Update.
3405 * gnulib/import/m4/gnulib-tool.m4: Update.
3406 * gnulib/import/m4/hard-locale.m4: Update.
3407 * gnulib/import/m4/include_next.m4: Update.
3408 * gnulib/import/m4/inttypes-pri.m4: Update.
3409 * gnulib/import/m4/inttypes.m4: Update.
3410 * gnulib/import/m4/isnand.m4: Update.
3411 * gnulib/import/m4/isnanl.m4: Update.
3412 * gnulib/import/m4/largefile.m4: Update.
3413 * gnulib/import/m4/limits-h.m4: Update.
3414 * gnulib/import/m4/localcharset.m4: Update.
3415 * gnulib/import/m4/locale-fr.m4: Update.
3416 * gnulib/import/m4/locale-ja.m4: Update.
3417 * gnulib/import/m4/locale-zh.m4: Update.
3418 * gnulib/import/m4/localtime-buffer.m4: Update.
3419 * gnulib/import/m4/longlong.m4: Update.
3420 * gnulib/import/m4/lstat.m4: Update.
3421 * gnulib/import/m4/malloc.m4: Update.
3422 * gnulib/import/m4/malloca.m4: Update.
3423 * gnulib/import/m4/math_h.m4: Update.
3424 * gnulib/import/m4/mbrtowc.m4: Update.
3425 * gnulib/import/m4/mbsinit.m4: Update.
3426 * gnulib/import/m4/mbsrtowcs.m4: Update.
3427 * gnulib/import/m4/mbstate_t.m4: Update.
3428 * gnulib/import/m4/memchr.m4: Update.
3429 * gnulib/import/m4/memmem.m4: Update.
3430 * gnulib/import/m4/mempcpy.m4: Update.
3431 * gnulib/import/m4/memrchr.m4: Update.
3432 * gnulib/import/m4/mkdir.m4: Update.
3433 * gnulib/import/m4/mkstemp.m4: Update.
3434 * gnulib/import/m4/mmap-anon.m4: Update.
3435 * gnulib/import/m4/mode_t.m4: Update.
3436 * gnulib/import/m4/msvc-inval.m4: Update.
3437 * gnulib/import/m4/msvc-nothrow.m4: Update.
3438 * gnulib/import/m4/multiarch.m4: Update.
3439 * gnulib/import/m4/nocrash.m4: Update.
3440 * gnulib/import/m4/off_t.m4: Update.
3441 * gnulib/import/m4/onceonly.m4: Update.
3442 * gnulib/import/m4/open-cloexec.m4: Update.
3443 * gnulib/import/m4/open.m4: Update.
3444 * gnulib/import/m4/openat.m4: Update.
3445 * gnulib/import/m4/opendir.m4: Update.
3446 * gnulib/import/m4/pathmax.m4: Update.
3447 * gnulib/import/m4/rawmemchr.m4: Update.
3448 * gnulib/import/m4/readdir.m4: Update.
3449 * gnulib/import/m4/readlink.m4: Update.
3450 * gnulib/import/m4/realloc.m4: Update.
3451 * gnulib/import/m4/rename.m4: Update.
3452 * gnulib/import/m4/rewinddir.m4: Update.
3453 * gnulib/import/m4/rmdir.m4: Update.
3454 * gnulib/import/m4/save-cwd.m4: Update.
3455 * gnulib/import/m4/secure_getenv.m4: Update.
3456 * gnulib/import/m4/setenv.m4: Update.
3457 * gnulib/import/m4/signal_h.m4: Update.
3458 * gnulib/import/m4/ssize_t.m4: Update.
3459 * gnulib/import/m4/stat-time.m4: Update.
3460 * gnulib/import/m4/stat.m4: Update.
3461 * gnulib/import/m4/std-gnu11.m4: Update.
3462 * gnulib/import/m4/stdbool.m4: Update.
3463 * gnulib/import/m4/stddef_h.m4: Update.
3464 * gnulib/import/m4/stdint.m4: Update.
3465 * gnulib/import/m4/stdio_h.m4: Update.
3466 * gnulib/import/m4/stdlib_h.m4: Update.
3467 * gnulib/import/m4/strchrnul.m4: Update.
3468 * gnulib/import/m4/strdup.m4: Update.
3469 * gnulib/import/m4/strerror.m4: Update.
3470 * gnulib/import/m4/string_h.m4: Update.
3471 * gnulib/import/m4/strstr.m4: Update.
3472 * gnulib/import/m4/strtok_r.m4: Update.
3473 * gnulib/import/m4/sys_socket_h.m4: Update.
3474 * gnulib/import/m4/sys_stat_h.m4: Update.
3475 * gnulib/import/m4/sys_time_h.m4: Update.
3476 * gnulib/import/m4/sys_types_h.m4: Update.
3477 * gnulib/import/m4/tempname.m4: Update.
3478 * gnulib/import/m4/time_h.m4: Update.
3479 * gnulib/import/m4/unistd-safer.m4: Update.
3480 * gnulib/import/m4/unistd_h.m4: Update.
3481 * gnulib/import/m4/warn-on-use.m4: Update.
3482 * gnulib/import/m4/wchar_h.m4: Update.
3483 * gnulib/import/m4/wchar_t.m4: Update.
3484 * gnulib/import/m4/wctype_h.m4: Update.
3485 * gnulib/import/m4/wint_t.m4: Update.
3486 * gnulib/import/malloc.c: Update.
3487 * gnulib/import/malloc/scratch_buffer.h: Update.
3488 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
3489 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
3490 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
3491 * gnulib/import/malloca.c: Update.
3492 * gnulib/import/malloca.h: Update.
3493 * gnulib/import/malloca.valgrind: Update.
3494 * gnulib/import/math.in.h: Update.
3495 * gnulib/import/mbrtowc.c: Update.
3496 * gnulib/import/mbsinit.c: Update.
3497 * gnulib/import/mbsrtowcs-impl.h: Update.
3498 * gnulib/import/mbsrtowcs-state.c: Update.
3499 * gnulib/import/mbsrtowcs.c: Update.
3500 * gnulib/import/memchr.c: Update.
3501 * gnulib/import/memmem.c: Update.
3502 * gnulib/import/mempcpy.c: Update.
3503 * gnulib/import/memrchr.c: Update.
3504 * gnulib/import/mkdir.c: Update.
3505 * gnulib/import/mkstemp.c: Update.
3506 * gnulib/import/msvc-inval.c: Update.
3507 * gnulib/import/msvc-inval.h: Update.
3508 * gnulib/import/msvc-nothrow.c: Update.
3509 * gnulib/import/msvc-nothrow.h: Update.
3510 * gnulib/import/open.c: Update.
3511 * gnulib/import/openat-die.c: Update.
3512 * gnulib/import/openat-priv.h: Update.
3513 * gnulib/import/openat-proc.c: Update.
3514 * gnulib/import/openat.c: Update.
3515 * gnulib/import/openat.h: Update.
3516 * gnulib/import/opendir.c: Update.
3517 * gnulib/import/pathmax.h: Update.
3518 * gnulib/import/pipe-safer.c: Update.
3519 * gnulib/import/rawmemchr.c: Update.
3520 * gnulib/import/readdir.c: Update.
3521 * gnulib/import/readlink.c: Update.
3522 * gnulib/import/realloc.c: Update.
3523 * gnulib/import/ref-add.sin: Update.
3524 * gnulib/import/ref-del.sin: Update.
3525 * gnulib/import/rename.c: Update.
3526 * gnulib/import/rewinddir.c: Update.
3527 * gnulib/import/rmdir.c: Update.
3528 * gnulib/import/same-inode.h: Update.
3529 * gnulib/import/save-cwd.c: Update.
3530 * gnulib/import/save-cwd.h: Update.
3531 * gnulib/import/scratch_buffer.h: Update.
3532 * gnulib/import/secure_getenv.c: Update.
3533 * gnulib/import/setenv.c: Update.
3534 * gnulib/import/signal.in.h: Update.
3535 * gnulib/import/stat-time.c: Update.
3536 * gnulib/import/stat-time.h: Update.
3537 * gnulib/import/stat-w32.c: Update.
3538 * gnulib/import/stat-w32.h: Update.
3539 * gnulib/import/stat.c: Update.
3540 * gnulib/import/stdbool.in.h: Update.
3541 * gnulib/import/stddef.in.h: Update.
3542 * gnulib/import/stdint.in.h: Update.
3543 * gnulib/import/stdio.in.h: Update.
3544 * gnulib/import/stdlib.in.h: Update.
3545 * gnulib/import/str-two-way.h: Update.
3546 * gnulib/import/strchrnul.c: Update.
3547 * gnulib/import/strdup.c: Update.
3548 * gnulib/import/streq.h: Update.
3549 * gnulib/import/strerror-override.c: Update.
3550 * gnulib/import/strerror-override.h: Update.
3551 * gnulib/import/strerror.c: Update.
3552 * gnulib/import/string.in.h: Update.
3553 * gnulib/import/stripslash.c: Update.
3554 * gnulib/import/strnlen1.c: Update.
3555 * gnulib/import/strnlen1.h: Update.
3556 * gnulib/import/strstr.c: Update.
3557 * gnulib/import/strtok_r.c: Update.
3558 * gnulib/import/sys_stat.in.h: Update.
3559 * gnulib/import/sys_time.in.h: Update.
3560 * gnulib/import/sys_types.in.h: Update.
3561 * gnulib/import/tempname.c: Update.
3562 * gnulib/import/tempname.h: Update.
3563 * gnulib/import/time.in.h: Update.
3564 * gnulib/import/unistd--.h: Update.
3565 * gnulib/import/unistd-safer.h: Update.
3566 * gnulib/import/unistd.in.h: Update.
3567 * gnulib/import/unsetenv.c: Update.
3568 * gnulib/import/verify.h: Update.
3569 * gnulib/import/extra/snippet/warn-on-use.h: Update.
3570 * gnulib/import/wchar.in.h: Update.
3571 * gnulib/import/wctype.in.h: Update.
3572 * gnulib/import/xalloc-oversized.h: Update.
3573 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
3574 "53e2c179f26a890fa6685af4b6c1397ee370433b".
3575
b0f492b9
GB
35762018-08-16 Gary Benson <gbenson@redhat.com>
3577
3578 PR gdb/13000:
3579 * gdb/main.c (captured_main_1): Exit with nonzero status
3580 in batch mode if the last command to be executed failed.
3581 * NEWS: Mention the above.
3582
2362e7f7
SM
35832018-08-29 Simon Marchi <simon.marchi@ericsson.com>
3584
3585 * csky-tdep.c (csky_memory_insert_breakpoint): Remove newline at
3586 end of warning message.
3587
4f4aedeb
AH
35882018-08-29 Alan Hayward <alan.hayward@arm.com>
3589
3590 PR gdb/22943:
3591 * aarch64-tdep.c (is_hfa_or_hva): Remove function.
3592 (aarch64_extract_return_value): Use
3593 aapcs_is_vfp_call_or_return_candidate.
3594 (aarch64_return_in_memory): Likewise.
3595 (aarch64_store_return_value): Likewise.
3596
0e745c60
AH
35972018-08-29 Alan Hayward <alan.hayward@arm.com>
3598
3599 * aarch64-tdep.c
3600 (aapcs_is_vfp_call_or_return_candidate): Make static
3601 (pass_in_v_or_stack): Remove function.
3602 (pass_in_v_vfp_candidate): New function.
3603 (aarch64_push_dummy_call): Check for float register candidates.
3604
ea92689a
AH
36052018-08-29 Alan Hayward <alan.hayward@arm.com>
3606
3607 * aarch64-tdep.c (HA_MAX_NUM_FLDS): New macro.
3608 (aapcs_is_vfp_call_or_return_candidate_1): New function.
3609 (aapcs_is_vfp_call_or_return_candidate): Likewise.
3610
ad202fcc
SM
36112018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
3612
3613 PR build/23399
3614 * common/agent.c (IPA_SYM_STRUCT_NAME): Define.
3615 (struct ipa_sym_addresses): Rename to...
3616 (struct ipa_sym_addresses_common): ... this.
3617 * common/agent.h (IPA_SYM): Use IPA_SYM_STRUCT_NAME.
3618
5fe3f3e4
TT
36192018-08-28 Tom Tromey <tom@tromey.com>
3620
3621 * c-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
3622 (token_fifo): Now a std::vector.
3623 (yylex, c_parse): Update.
3624 * d-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
3625 (token_fifo): Now a std::vector.
3626 (yylex, d_parse): Update.
3627 * go-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
3628 (token_fifo): Now a std::vector.
3629 (yylex, go_parse): Update.
3630
858d8004
SM
36312018-08-28 Simon Marchi <simon.marchi@ericsson.com>
3632
3633 * parser-defs.h (struct type_stack) <elements>: Change type to
3634 std::vector<union type_stack_elt>.
3635 <depth, size>: Remove.
3636 * parse.c (parse_exp_in_context_1): Adjust.
3637 (type_stack_reserve): Remove.
3638 (check_type_stack_depth): Remove.
3639 (insert_into_type_stack): Adjust to std::vector.
3640 (insert_type): Likewise.
3641 (push_type): Likewise.
3642 (push_type_int): Likewise.
3643 (insert_type_address_space): Likewise.
3644 (pop_type): Likewise.
3645 (pop_type_int): Likewise.
3646 (pop_typelist): Likewise.
3647 (pop_type_stack): Likewise.
3648 (append_type_stack): Likewise.
3649 (push_type_stack): Likewise.
3650 (get_type_stack): Likewise.
3651 (type_stack_cleanup): Likewise.
3652 (push_typelist): Likewise.
3653 (follow_types): Likewise.
3654 (_initialize_parse): Likewise.
3655
416a69af
HAQ
36562018-08-28 Hafiz Abid Qadeer <abidh@codesourcery.com>
3657
3658 * NEWS: Mention csky target.
3659
9d24df82
HAQ
36602018-08-28 Jiangshuai Li <jiangshuai_li@c-sky.com>
3661 Hafiz Abid Qadeer <abidh@codesourcery.com>
3662 Don Breazeal <donb@codesourcery.com>
3663
3664 * csky-linux-tdep.c: New file.
3665 * csky-tdep.c: Likewise.
3666 * csky-tdep.h: Likewise.
3667 * Makefile.in (ALL_TARGET_OBS): Add csky-linux-tdep.o and
3668 csky-tdep.o.
3669 (HFILES_NO_SRCDIR): Add csky-tdep.h.
3670 (ALLDEPFILES): Add csky-linux-tdep.c and csky-tdep.c
3671 * configure.tgt: Add csky support.
3672
3bf9c013
JV
36732018-08-27 Jan Vrany <jan.vrany@fit.cvut.cz>
3674
3675 * python/py-framefilter.c (py_print_frame): Print frame architecture
3676 when printing on an MI output.
3677
d3d8724a
TT
36782018-08-27 Tom Tromey <tom@tromey.com>
3679
3680 PR build/23087:
3681 * configure: Rebuild.
3682 * warning.m4 (AM_GDB_WARNINGS): Remove -Wno-narrowing.
3683
1885053b
TT
36842018-08-27 Tom Tromey <tom@tromey.com>
3685
3686 * aarch64-linux-tdep.c
3687 (aarch64_linux_iterate_over_regset_sections) <sve_regmap>: Add
3688 casts to int.
3689
8406672e
TT
36902018-08-27 Tom Tromey <tom@tromey.com>
3691
3692 * ppc64-tdep.c (insn_d, insn_ds, insn_xfx): Add casts to
3693 unsigned.
3694 (ppc64_standard_linkage1, ppc64_standard_linkage2)
3695 (ppc64_standard_linkage3, ppc64_standard_linkage4)
3696 (ppc64_standard_linkage5, ppc64_standard_linkage6)
3697 (ppc64_standard_linkage7, ppc64_standard_linkage8): Add casts to
3698 unsigned.
3699
ec40cf90
TT
37002018-08-27 Tom Tromey <tom@tromey.com>
3701
3702 * xtensa-tdep.h (XTREG_END): Add cast to unsigned.
3703 (XTENSA_GDBARCH_TDEP_INSTANTIATE): Likewise.
3704
7bc02706
TT
37052018-08-27 Tom Tromey <tom@tromey.com>
3706
3707 * tramp-frame.h (TRAMP_SENTINEL_INSN): Redefine.
3708 * tilegx-linux-tdep.c (tilegx_linux_rt_sigframe): Use
3709 ULONGEST_MAX.
3710 * tic6x-linux-tdep.c (tic6x_linux_rt_sigreturn_tramp_frame): Use
3711 ULONGEST_MAX.
3712 * sparc64-linux-tdep.c (sparc64_linux_rt_sigframe): Use
3713 ULONGEST_MAX.
3714 * sparc-linux-tdep.c (sparc32_linux_sigframe)
3715 (sparc32_linux_rt_sigframe): Use ULONGEST_MAX.
3716 * ppc-nbsd-tdep.c (ppcnbsd_sigtramp, ppcnbsd2_sigtramp): Use
3717 ULONGEST_MAX.
3718 * ppc-linux-tdep.c (ppc32_linux_sigaction_tramp_frame)
3719 (ppc64_linux_sigaction_tramp_frame)
3720 (ppc32_linux_sighandler_tramp_frame)
3721 (ppc64_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
3722 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame)
3723 (nios2_r2_linux_rt_sigreturn_tramp_frame): Use ULONGEST_MAX.
3724 * mn10300-linux-tdep.c (am33_linux_sigframe)
3725 (am33_linux_rt_sigframe): Use ULONGEST_MAX.
3726 * mips64-obsd-tdep.c (mips64obsd_sigframe): Use ULONGEST_MAX.
3727 * mips-linux-tdep.c (mips_linux_o32_sigframe)
3728 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
3729 (mips_linux_n64_rt_sigframe, micromips_linux_o32_sigframe)
3730 (micromips_linux_o32_rt_sigframe, micromips_linux_n32_rt_sigframe)
3731 (micromips_linux_n64_rt_sigframe): Use ULONGEST_MAX.
3732 * mips-fbsd-tdep.c (mips_fbsd_sigframe, mipsn32_fbsd_sigframe)
3733 (mips64_fbsd_sigframe): Use ULONGEST_MAX.
3734 * microblaze-linux-tdep.c
3735 (microblaze_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
3736 * i386-nbsd-tdep.c (i386nbsd_sigtramp_sc16, i386nbsd_sigtramp_sc2)
3737 (i386nbsd_sigtramp_si2, i386nbsd_sigtramp_si31)
3738 (i386nbsd_sigtramp_si4): Use ULONGEST_MAX.
3739 * hppa-nbsd-tdep.c (hppanbsd_sigtramp_si4): Use ULONGEST_MAX.
3740 * common/common-types.h (ULONGEST_MAX): New define.
3741 (CORE_ADDR_MAX): Fix formatting.
3742 * bfin-linux-tdep.c (bfin_linux_sigframe): Use ULONGEST_MAX.
3743 * arm-obsd-tdep.c (armobsd_sigframe): Use ULONGEST_MAX.
3744 * arm-linux-tdep.c (arm_linux_sigreturn_tramp_frame)
3745 (arm_linux_rt_sigreturn_tramp_frame)
3746 (arm_eabi_linux_sigreturn_tramp_frame)
3747 (arm_eabi_linux_rt_sigreturn_tramp_frame)
3748 (thumb2_eabi_linux_sigreturn_tramp_frame)
3749 (thumb2_eabi_linux_rt_sigreturn_tramp_frame)
3750 (arm_linux_restart_syscall_tramp_frame)
3751 (arm_kernel_linux_restart_syscall_tramp_frame): Use ULONGEST_MAX.
3752 * arm-fbsd-tdep.c (arm_fbsd_sigframe): Use ULONGEST_MAX.
3753 * aarch64-linux-tdep.c (aarch64_linux_rt_sigframe): Use
3754 ULONGEST_MAX.
3755 * aarch64-fbsd-tdep.c (aarch64_fbsd_sigframe): Use ULONGEST_MAX.
3756
70ab8ccd
TT
37572018-08-27 Tom Tromey <tom@tromey.com>
3758
3759 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Use
3760 CORE_ADDR_MAX.
3761 * mips-tdep.c (mips_deal_with_atomic_sequence)
3762 (micromips_deal_with_atomic_sequence): Use CORE_ADDR_MAX.
3763 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw)
3764 (arm_deal_with_atomic_sequence_raw): Use CORE_ADDR_MAX.
3765 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Use
3766 CORE_ADDR_MAX.
3767 * aarch64-tdep.c (aarch64_software_single_step): Use
3768 CORE_ADDR_MAX.
3769
896a7aa6
TT
37702018-08-27 Tom Tromey <tom@tromey.com>
3771
3772 * linespec.c (complete_linespec_component): Add cast to "char".
3773 * completer.c (completion_tracker::build_completion_result): Add
3774 cast to "char".
3775
dd33d41d
SM
37762018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
3777
3778 * solist.h (struct solist, struct target_so_ops): Fix
3779 indentation.
3780
c645cda4
SM
37812018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
3782
3783 * ada-tasks.c (ada_task_info_s): Remove typedef.
3784 (DEF_VEC_O(ada_task_info_s)): Remove.
3785 (struct ada_tasks_inferior_data): Initialize fields.
3786 <task_list>: Make an std::vector.
3787 (get_ada_tasks_inferior_data): Allocate with new.
3788 (ada_get_task_number): Adjust.
3789 (get_task_number_from_id): Likewise.
3790 (valid_task_id): Likewise.
3791 (ada_get_task_info_from_ptid): Likewise.
3792 (iterate_over_live_ada_tasks): Likewise.
3793 (add_ada_task): Likewise.
3794 (read_known_tasks): Likewise.
3795 (ada_build_task_list): Likewise.
3796 (print_ada_task_info): Likewise.
3797 (info_task): Likewise.
3798 (task_command_1): Likewise.
3799
39e7af3e
SM
38002018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
3801
3802 * ada-lang.c (add_angle_brackets): Return std::string.
3803
bbbbbcee
SM
38042018-08-25 Simon Marchi <simon.marchi@polymtl.ca>
3805
3806 * python/py-threadevent.c (py_get_event_thread): Initialize
3807 pythread.
3808
d98fc15b
PA
38092018-08-24 Pedro Alves <palves@redhat.com>
3810
3811 * python/py-bpevent.c (create_breakpoint_event_object): Use
3812 copy-initialization.
3813 * python/py-continueevent.c (emit_continue_event): Use
3814 copy-initialization.
3815 * python/py-exitedevent.c (create_exited_event_object): Return a
3816 gdbpy_ref<>.
3817 (emit_exited_event): Use copy-initialization.
3818 * python/py-inferior.c (python_new_inferior)
3819 (python_inferior_deleted, add_thread_object): Use
3820 copy-initialization.
3821 * python/py-infevents.c (create_inferior_call_event_object)
3822 (create_register_changed_event_object)
3823 (create_memory_changed_event_object): Return a gdbpy_ref<>.
3824 (emit_inferior_call_event, emit_memory_changed_event)
3825 (emit_register_changed_event): Use copy-initialization.
3826 * python/py-newobjfileevent.c (create_new_objfile_event_object):
3827 Return a gdbpy_ref<>.
3828 (emit_new_objfile_event): Use copy-initialization.
3829 (create_clear_objfiles_event_object): Return a gdbpy_ref<>.
3830 (emit_clear_objfiles_event): Use copy-initialization.
3831 * python/py-signalevent.c (create_signal_event_object): Use
3832 copy-initialization.
3833 * python/py-threadevent.c (create_thread_event_object): Use
3834 copy-initialization.
3835
da3c8738
PA
38362018-08-24 Pedro Alves <palves@redhat.com>
3837 Simon Marchi <simon.marchi@ericsson.com>
3838
3839 PR gdb/23379
3840 * python/py-continueevent.c: Include "gdbthread.h".
3841 (create_continue_event_object): Add intro comment. Add 'ptid'
3842 parameter. Use it to find thread to pass to
3843 create_thread_event_object.
3844 (emit_continue_event): Pass PTID down to
3845 create_continue_event_object.
3846 * python/py-event.h (py_get_event_thread): Declare.
3847 (create_thread_event_object): Remove default from 'thread'
3848 parameter.
3849 * python/py-stopevent.c (create_stop_event_object): Use
3850 py_get_event_thread.
3851 * python/py-threadevent.c (get_event_thread): Rename to ...
3852 (py_get_event_thread): ... this, make extern, add 'ptid' parameter
3853 and use it to find the thread.
3854 (create_thread_event_object): Assert that THREAD isn't null.
3855 Don't find the event thread here.
3856
26457a9c
KB
38572018-08-23 Kevin Buettner <kevinb@redhat.com>
3858
3859 * block.h (blockrange, blockranges): New struct declarations.
3860 (struct block): Add new field named `ranges'.
3861 (BLOCK_RANGES, BLOCK_NRANGES, BLOCK_RANGE, BLOCK_CONTIGUOUS_P)
3862 (BLOCK_RANGE_START, BLOCK_RANGE_END, BLOCK_ENTRY_PC): New
3863 macros for accessing ranges in struct block.
3864 (make_blockranges): New declaration.
3865 block.c (make_blockranges): New function.
2d5f09ec
KB
3866 * dwarf2read.c (dwarf2_record_block_ranges): Fill in BLOCK_RANGES
3867 for block.
fc811edd
KB
3868 * symtab.h (find_pc_partial_function): Add new parameter `block'.
3869 * blockframe.c (cache_pc_function_block): New static global.
3870 (clear_pc_function_cache): Clear cache_pc_function_block.
3871 (find_pc_partial_function): Move comment to symtab.h. Add
3872 support for non-contiguous blocks.
e9480230
KB
3873 * cli/cli-cmds.c (block.h): Include.
3874 (print_disassembly): Handle printing of non-contiguous blocks.
3875 (disassemble_current_function): Likewise.
3876 (disassemble_command): Likewise.
26457a9c 3877
2b1ffcfd
KB
3878 * ax-gdb.c (gen_var_ref): Use BLOCK_ENTRY_PC in place of
3879 BLOCK_START.
3880 * blockframe.c (get_pc_function_start): Likewise.
3881 * compile/compile-c-symbols.c (convert_one_symbol): Likewise.
3882 (gcc_symbol_address): Likewise.
3883 * compile/compile-object-run.c (compile_object_run): Likewise.
3884 * compile/compile.c (get_expr_block_and_pc): Likewise.
3885 * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
3886 (func_addr_to_tail_call_list): Likewise.
3887 * findvar.c (default_read_var_value): Likewise.
3888 * inline-frame.c (inline_frame_this_id): Likewise.
3889 (skip-inline_frames): Likewise.
3890 * infcmd.c (until_next_command): Likewise.
3891 * linespec.c (convert_linespec_to_sals): Likewise.
3892 * parse.c (parse_exp_in_context_1): Likewise.
3893 * printcmd.c (build_address_symbolic): likewise.
3894 (info_address_command): Likewise.
3895 symtab.c (find_function_start_sal): Likewise.
3896 (skip_prologue_sal): Likewise.
3897 (find_function_alias_target): Likewise.
3898 (find_gnu_ifunc): Likewise.
3899 * stack.c (find_frame_funname): Likewise.
3900 * symtab.c (fixup_symbol_section): Likewise.
3901 (find_function_start_sal): Likewise.
3902 (skip_prologue_sal): Likewsie.
3903 (find_function_alias_target): Likewise.
3904 (find_gnu_ifunc): Likewise.
3905 * tracepoint.c (info_scope_command): Likewise.
3906 * value.c (value_fn_field): Likewise.
3907
9644dc3a
KB
3908 * infrun.c (fill_in_stop_func): Use find_function_entry_range_from_pc
3909 in place of find_pc_partial_function.
3910 * blockframe.c (find_function_entry_range_from_pc): New function.
3911 * symtab.h (find_function_entry_range_from_pc): Declare and document.
3912 * objfiles.c (objfile_relocate1): Relocate start and end addresses
3913 for each range in a block.
3914
3915
12a0d0f6
XR
39162018-08-23 Xavier Roirand <roirand@adacore.com>
3917
3918 * machoread.c (macho_symfile_read_all_oso): Remove uneeded
3919 incrementation.
3920
d1012b8e
SM
39212018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
3922
3923 * solib-svr4.c (read_program_headers_from_bfd): Return
3924 gdb::optional<gdb::byte_vector>.
3925 (svr4_exec_displacement): Adjust.
3926
17658d46
SM
39272018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
3928
3929 * solib-svr4.c (read_program_header): Return
3930 gdb::optional<gdb::byte_vector>, remove p_sect_size param.
3931 (find_program_interpreter): Return
3932 gdb::optional<gdb::byte_vector>.
3933 (scan_dyntag_auxv): Adjust.
3934 (enable_break): Adjust.
3935 (svr4_exec_displacement): Adjust.
3936
ae739fe7
SM
39372018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
3938
3939 * inf-child.h (inf_child_target) <terminal_save_inferior>: New.
3940 * inf-child.c (inf_child_target::terminal_save_inferior): New.
3941
467dc1e2
SM
39422018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
3943
3944 * guile/scm-string.c (gdbscm_scm_from_printf): Use
3945 string_vprintf.
3946 * guile/scm-utils.c (gdbscm_printf): Likewise.
3947 * serial.c (serial_printf): Likewise.
3948 * xml-support.c (gdb_xml_parser::vdebug): Likewise.
3949
6d52907e
JV
39502018-08-22 Jan Vrany <jan.vrany@fit.cvut.cz>
3951
3952 * stack.c (print_frame): Print frame architecture when printing on
3953 an MI output.
3954 * NEWS: Mention new "arch" attribute in frame output.
3955
9758a8f8
AH
39562018-08-21 Alan Hayward <alan.hayward@arm.com>
3957
3958 * arch/aarch64.h (aarch64_regnum): Update comment.
3959
1461bdac
AH
39602018-08-21 Alan Hayward <alan.hayward@arm.com>
3961
3962 * NEWS: Add SVE to 8.2 section.
3963
4895f384
PA
39642018-08-21 Pedro Alves <palves@redhat.com>
3965
3966 * guile/scm-utils.c (gdbscm_parse_function_args_1): New, factored
3967 out from gdbscm_parse_function_args.
3968 (gdbscm_parse_function_args): Rework to use gdbscm_wrap and
3969 gdbscm_parse_function_args_1.
3970
a4497d2f
SM
39712018-08-21 Simon Marchi <simon.marchi@ericsson.com>
3972
3973 PR gdb/17816
3974 * m32c-tdep.c (m32c_decode_srcdest4): Remove unnecessary ternary
3975 operator.
3976
c44deb73
SM
39772018-08-19 Simon Marchi <simon.marchi@polymtl.ca>
3978
3979 * solib-svr4.c (svr4_exec_displacement): Fix formatting.
3980
be2d111a
MS
39812018-08-19 Michael Spang <spang@google.com>
3982
3983 PR gdb/11786
3984 * solib-svr4.c (svr4_exec_displacement): Ignore memsz fields
3985 for PT_TLS segments.
3986
a6b786da
KB
39872018-08-18 Kevin Buettner <kevinb@redhat.com>
3988
3989 * dwarf2expr.h (struct dwarf_expr_context): Add virtual method
3990 dwarf_variable_value.
3991 * dwarf2-frame.c (class dwarf_expr_executor):
3992 Add override for dwarf_variable_value.
3993 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Likewise.
3994 (class symbol_needs_eval_context): Likewise.
3995 (indirect_synthetic_pointer): Add forward declaration.
3996 (sect_variable_value): New function.
3997 (dwarf2_compile_expr_to_ax): Add case for DW_OP_GNU_variable_value.
3998 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Add case
3999 for DW_OP_GNU_variable_value.
4000
89fbedf3
TT
40012018-08-16 Tom Tromey <tom@tromey.com>
4002
4003 * top.c (read_command_file): Update.
4004 (command_line_input): Remove "repeat" argument.
4005 * ada-lang.c (get_selections): Update.
4006 * linespec.c (decode_line_2): Update.
4007 * defs.h (command_line_input): Remove argument.
4008 * cli/cli-script.c (read_next_line): Update.
4009 * python/py-gdb-readline.c: Update.
4010
12582533
TT
40112018-08-17 Tom Tromey <tom@tromey.com>
4012
4013 * cli/cli-script.c (read_next_line): Pass 0 as repeat argument to
4014 command_line_input.
4015
49514353
TT
40162018-08-15 Tom Tromey <tom@tromey.com>
4017
4018 * aarch64-linux-tdep.c (aarch64_linux_core_read_vq): Use pulongest.
4019
26fb3983
JV
40202018-08-14 Jan Vrany <jan.vrany@fit.cvut.cz>
4021
4022 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Add -a option.
4023 If used, use find_pc_partial_function to find address range
4024 to disassemble.
4025 * mi/mi-main.c (mi_cmd_list_features): Report
4026 "data-disassemble-a-option" feature.
4027 * NEWS: Mention new -data-disassemble option -a.
4028
a97b53dd
TT
40292018-08-13 Tom Tromey <tom@tromey.com>
4030
4031 * common/common-defs.h (_FORTIFY_SOURCE): Define.
4032
0c76e06d
AH
40332018-08-13 Alan Hayward <alan.hayward@arm.com>
4034
4035 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): New function.
4036 (aarch64_linux_collect_sve_regset): Likewise.
4037 (aarch64_linux_iterate_over_regset_sections): Check for SVE.
4038 * regcache.h (regcache_map_entry_size): New function.
4039
b7fd65b9
AH
40402018-08-13 Alan Hayward <alan.hayward@arm.com>
4041
4042 * aarch64-linux-tdep.c (SVE_HEADER_SIZE_LENGTH): Add define.
4043 (SVE_HEADER_MAX_SIZE_LENGTH): Likewise.
4044 (SVE_HEADER_VL_LENGTH): Likewise.
4045 (SVE_HEADER_MAX_VL_LENGTH): Likewise.
4046 (SVE_HEADER_FLAGS_LENGTH): Likewise.
4047 (SVE_HEADER_RESERVED_LENGTH): Likewise.
4048 (SVE_HEADER_SIZE_OFFSET): Likewise.
4049 (SVE_HEADER_MAX_SIZE_OFFSET): Likewise.
4050 (SVE_HEADER_VL_OFFSET): Likewise.
4051 (SVE_HEADER_MAX_VL_OFFSET): Likewise.
4052 (SVE_HEADER_FLAGS_OFFSET): Likewise.
4053 (SVE_HEADER_RESERVED_OFFSET): Likewise.
4054 (SVE_HEADER_SIZE): Likewise.
4055 (aarch64_linux_core_read_vq): Add function.
4056 (aarch64_linux_core_read_description): Check for SVE section.
4057
a616bb94
AH
40582018-08-13 Alan Hayward <alan.hayward@arm.com>
4059
4060 * aarch64-fbsd-tdep.c
4061 (aarch64_fbsd_iterate_over_regset_sections): Add supply_size and
4062 collect_size.
4063 * aarch64-linux-tdep.c
4064 (aarch64_linux_iterate_over_regset_sections): Likewise.
4065 * alpha-linux-tdep.c
4066 (alpha_linux_iterate_over_regset_sections):
4067 * alpha-nbsd-tdep.c
4068 (alphanbsd_iterate_over_regset_sections): Likewise.
4069 * amd64-fbsd-tdep.c
4070 (amd64fbsd_iterate_over_regset_sections): Likewise.
4071 * amd64-linux-tdep.c
4072 (amd64_linux_iterate_over_regset_sections): Likewise.
4073 * arm-bsd-tdep.c
4074 (armbsd_iterate_over_regset_sections): Likewise.
4075 * arm-fbsd-tdep.c
4076 (arm_fbsd_iterate_over_regset_sections): Likewise.
4077 * arm-linux-tdep.c
4078 (arm_linux_iterate_over_regset_sections): Likewise.
4079 * corelow.c (get_core_registers_cb): Likewise.
4080 (core_target::fetch_registers): Likewise.
4081 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
4082 * frv-linux-tdep.c (frv_linux_iterate_over_regset_sections): Likewise.
4083 * gdbarch.h (void): Regenerate.
4084 * gdbarch.sh: Add supply_size and collect_size.
4085 * hppa-linux-tdep.c (hppa_linux_iterate_over_regset_sections): Likewise.
4086 * hppa-nbsd-tdep.c (hppanbsd_iterate_over_regset_sections): Likewise.
4087 * hppa-obsd-tdep.c (hppaobsd_iterate_over_regset_sections): Likewise.
4088 * i386-fbsd-tdep.c (i386fbsd_iterate_over_regset_sections): Likewise.
4089 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections): Likewise.
4090 * i386-tdep.c (i386_iterate_over_regset_sections): Likewise.
4091 * ia64-linux-tdep.c (ia64_linux_iterate_over_regset_sections): Likewise.
4092 * linux-tdep.c (linux_collect_regset_section_cb): Likewise.
4093 * m32r-linux-tdep.c (m32r_linux_iterate_over_regset_sections): Likewise.
4094 * m68k-bsd-tdep.c (m68kbsd_iterate_over_regset_sections): Likewise.
4095 * m68k-linux-tdep.c (m68k_linux_iterate_over_regset_sections): Likewise.
4096 * mips-fbsd-tdep.c (mips_fbsd_iterate_over_regset_sections): Likewise.
4097 * mips-linux-tdep.c (mips_linux_iterate_over_regset_sections): Likewise.
4098 * mips-nbsd-tdep.c (mipsnbsd_iterate_over_regset_sections): Likewise.
4099 * mips64-obsd-tdep.c (mips64obsd_iterate_over_regset_sections): Likewise.
4100 * mn10300-linux-tdep.c (am33_iterate_over_regset_sections): Likewise.
4101 * nios2-linux-tdep.c (nios2_iterate_over_regset_sections): Likewise.
4102 * ppc-fbsd-tdep.c (ppcfbsd_iterate_over_regset_sections): Likewise.
4103 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections): Likewise.
4104 * ppc-nbsd-tdep.c (ppcnbsd_iterate_over_regset_sections): Likewise.
4105 * ppc-obsd-tdep.c (ppcobsd_iterate_over_regset_sections): Likewise.
4106 * riscv-linux-tdep.c (riscv_linux_iterate_over_regset_sections): Likewise.
4107 * rs6000-aix-tdep.c (rs6000_aix_iterate_over_regset_sections): Likewise.
4108 * s390-linux-tdep.c (s390_iterate_over_regset_sections): Likewise.
4109 * score-tdep.c (score7_linux_iterate_over_regset_sections): Likewise.
4110 * sh-tdep.c (sh_iterate_over_regset_sections): Likewise.
4111 * sparc-tdep.c (sparc_iterate_over_regset_sections): Likewise.
4112 * tilegx-linux-tdep.c (tilegx_iterate_over_regset_sections): Likewise.
4113 * vax-tdep.c (vax_iterate_over_regset_sections): Likewise.
4114 * xtensa-tdep.c (xtensa_iterate_over_regset_sections): Likewise.
4115
a9925d4f
SM
41162018-08-10 Simon Marchi <simon.marchi@ericsson.com>
4117
4118 * nat/linux-osdata.c (commandline_from_pid): Replace xstrprintf
4119 with string_printf.
4120
ad3a68e9
KS
41212018-08-10 Keith Seitz <keiths@redhat.com>
4122
4123 * compile/compile-c-support.c (add_code_header, add_code_footer):
4124 Move into policy class.
4125 (c_push_user_expression, pop_user_expression_nop)
4126 (c_add_code_header, c_add_code_footer, c_add_input): New policy class.
4127 (compile_program): New host class.
4128 (c_compile_program): New typedef.
4129 (c_compute_porgram): Use c_compile_program.
4130
0cfbf430
KS
41312018-08-10 Keith Seitz <keiths@redhat.com>
4132
4133 * compile/compile-internal.h (compile_instance::~compile_instance):
4134 Remove calls to htab_delete.
4135 <m_type_map, m_symbol_err_map>: Switch type to htab_up.
4136 * compile.c (compile_instance::compile_instance): Initialize
4137 htab unique pointers.
4138 (compile_instance::get_cached_type, compile_instance::insert_type)
4139 (compile_instance::error_symbol_once): Update for unique_ptr.
4140
946d3d10
KS
41412018-08-10 Keith Seitz <keiths@redhat.com>
4142
4143 * compile/compile-c-symbols.c (struct symbol_error)
4144 (hash_symbol_error, eq_symbol_error, del_symbol_error)
4145 (compile_instance::insert_symbol_error)
4146 (compile_instance::error_symbol_once): Move to ...
4147 * compile/compile.c: ... here.
4148
9cdfd9a2
KS
41492018-08-10 Keith Seitz <keiths@redhat.com>
4150
4151 * compile/compile-c-support.c (c_get_compile_context): Use `new'
4152 instead of `new_compile_instance'.
4153 * compile/compile-c-symbols.c (compile_instance::insert_symbol_error):
4154 Update description.
4155 If the symbol error map is not initialized, create it.
4156 (generate_c_for_for_one_symbol): Do not check/initialize
4157 the symbol error map.
4158 * compile/compile-c-types.c (compile_c_instance): Make a class.
4159 Update all callers.
4160 (compile_instance::compile_instance): Initialize the type cache.
4161 (get_cached_type): New function.
4162 (insert_type): Update description.
4163 (compile_c_instance::m_default_cflags): Define.
4164 (convert_type): Update description. Use get_cached_type.
4165 (delete_instance): Moved to destructor.
4166 (new_compile_instance): Moved to constructor.
4167 * compile/compile-c.h (compile_c_instance): Make class inheriting
4168 from compile_instance.
4169 <base>: Remove field.
4170 <type_map, symbol_err_map>: Move to base class.
4171 <c_plugin>: Rename to `m_plugin' and remove pointer type.
4172 * compile/compile-internal.h (compile_instance): Make class.
4173 <type_map_t, symbol_err_map_t>: Define.
4174 <fe>: Rename to `m_gcc_fe'.
4175 <scope, block, gcc_target_options>: Add `m_' prefix.
4176 <m_type_map, m_symbol_err_map>: New fields, moved from
4177 compile_c_instance.
4178 <destroy>: Remove.
4179 (convert_type, new_compile_instance): Remove.
4180 * compile/compile.c (cleanup_compile_instance): Remove.
4181 (compile_to_object): Use unique_ptr to eliminate cleanups.
4182 (compile_instance::set_print_callback, compile_instance::version)
4183 (compile_instance::set_verbose)
4184 (compile_instance::set_driver_filename)
4185 (compile_instance::set_triplet_regexp)
4186 (compile_instance::set_arguments)
4187 (compile_instance::set_source_file)
4188 (compile_instance::compile): Define.
4189
18cdc6d8
KS
41902018-08-10 Keith Seitz <keiths@redhat.com>
4191
4192 * Makefile.in (HFILES_NO_SRCDIR): Add compile/gcc-c-plugin.h.
4193 * compile/compile-c-types.c: Define GCC_METHODN macros and include
4194 gcc-c-fe.def to define C plugin.
4195 (delete_instance): Delete `c_plugin'.
4196 (new_compile_instance): Initialize `c_plugin'.
4197 * compile/compile-c.h: Include gcc_c_plugin.h.
4198 (struct compile_c_instance) <c_plugin>: New member.
4199 * gcc-c-plugin.h: New file.
4200 Update all callers with API change.
4201
b7dc48b4
KS
42022018-08-10 Keith Seitz <keiths@redhat.com>
4203
4204 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Move header files ...
4205 (HFILES_NO_SRCDIR): ... to here.
4206 Add compile-internal.h and compile-c.h.
4207 * compile/compile-c-support.c: Include compile-c.h.
4208 * compile/compile-c-symbols.c: Include compile-c.h.
4209 (generate_c_for_variable_locations): Update comment.
4210 * compile/compile-c-types.c: Include compile-c.h.
4211 * compile/compile-c.h: New file -- moved C language declarations
4212 from other files here.
4213 * compile/compile-internal.h: Do not include hashtab.h or
4214 common/enum-flags.h.
4215 (gcc_qualifiers_flags, struct compile_c_instance, C_CTX)
4216 (gcc_convert_symbol, gcc_symbol_address)
4217 (generate_c_for_variable_locations, c_get_mode_for_size)
4218 (c_get_range_decl_name): Definitions moved to compile-c.h.
4219 * compile/compile-loc2c.c: Include compile-c.h.
4220
6f36b6d2
KS
42212018-08-10 Keith Seitz <keiths@redhat.com>
4222
4223 * compile/compile-c-symbols.c (symbol_substitution_name): Rename to ...
4224 (c_symbol_substitution_name): ... this.
4225 Update all callers.
4226
bd923e51
KS
42272018-08-10 Keith Seitz <keiths@redhat.com>
4228
4229 * compile/compile-c-support.c (c_compute_program): Use
4230 unique_xmalloc_ptr to eliminate cleanup.
4231 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
4232 Return a unique_xmalloc_ptr and eliminate cleanup.
4233 * compile/compile-internal.h (generate_c_for_variable_locations):
4234 Return unique_xmalloc_ptr and update description.
4235
dbd534fe
AH
42362018-08-10 Alan Hayward <alan.hayward@arm.com>
4237
4238 * corelow.c (core_target::get_core_register_section): Rename
4239 min_size to section_min_size.
4240
90ad3654
JW
42412018-08-09 Jim Wilson <jimw@sifive.com>
4242
52a187f8
JW
4243 * Makefile.in (ALL_TARGET_OBS): Add riscv-linux-tdep.c.
4244 (ALLDEPFILES): Add riscv-linux-nat.c, and riscv-linux-tdep.c.
4245 * NEWS: Mention new GNU/Linux RISC-V target.
4246 * configure.host: Add riscv*-*-linux*.
4247 * configure.nat: Add riscv*.
4248 * configure.tgt: Add riscv*-*-linux*.
3c77f97e 4249 * riscv-linux-nat.c: New file.
90ad3654
JW
4250 * riscv-linux-tdep.c: New file.
4251
aff4e175
AB
42522018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
4253
4254 * infrun.c (resume): Make static, add forward declaration.
4255 (proceed): Update header comment.
4256 * infrun.h (resume): Delete declaration.
4257
06ab9219
TT
42582018-08-09 Tom Tromey <tom@tromey.com>
4259
4260 * riscv-tdep.h: Minor formatting fixes.
4261
83c8d318
SM
42622018-08-09 Simon Marchi <simon.marchi@ericsson.com>
4263
4264 * common/scoped_mmap.c (mmap_file): Silence ARI warning.
4265 * dwarf-index-cache.c (create_dir_and_check): Likewise.
4266 (test_mkdir_recursive): Likewise.
4267 * dwarf-index-write.c (write_psymtabs_to_index): Likewise.
4268
5ff2bbae
AB
42692018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
4270
4271 * valarith.c (value_subscripted_rvalue): If an array is not in
4272 memory, and we don't know the upper bound, then we can't know that
4273 the requested element exists or not.
4274
fdbac7d8
SM
42752018-08-08 Simon Marchi <simon.marchi@ericsson.com>
4276
4277 * target.c (str_comma_list_concat_elem): Fix typo in comment.
4278 (target_options_to_string): Add comment.
4279
83202f7a
TT
42802018-08-08 Tom Tromey <tom@tromey.com>
4281
4282 * unittests/scoped_mmap-selftests.c: Check result of "write".
4283
411baa47
JW
42842018-08-08 Jim Wilson <jimw@sifive.com>
4285
5c720ed8
JW
4286 * riscv-tdep.c (enum opcode): Add jump, branch, lr, and sc opcodes.
4287 (decode_register_index_short): New.
4288 (decode_j_type_insn, decode_cj_type_insn): New.
4289 (decode_b_type_insn, decode_cb_type_insn): New.
4290 (riscv_insn::decode): Add support for jumps, branches, lr, and sc. New
4291 local xlen. Check xlen when decoding ambiguous compressed insns. In
4292 compressed decode, use is_c_lui_insn instead of is_lui_insn, and
4293 is_c_sw_insn instead of is_sw_insn.
4294 (riscv_next_pc, riscv_next_pc_atomic_sequence): New.
4295 (riscv_software_single_step): New.
4296 * riscv-tdep.h (riscv_software_single_step): Declare.
4297
411baa47
JW
4298 * riscv-tdep.c (riscv_isa_xlen): Drop static.
4299 * riscv-tdep.h (riscv_isa_xlen): Add extern declaration.
4300
9d4a934c
AB
43012018-08-08 Andrew Burgess <andrew.burgess@embecosm.com>
4302
4303 PR gdb/18050:
4304 * target.c (dispose_inferior): Don't dispose of inferiors that are
4305 already killed.
4306
ff36536c
SN
43072018-08-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
4308
4309 * remote.c (remote_target::download_tracepoint): Change char* to
4310 const char*.
4311
09ce46f2
SM
43122018-08-07 Simon Marchi <simon.marchi@polymtl.ca>
4313
4314 * target.h (target_options_to_string): Return an std::string.
4315 * target.c (str_comma_list_concat_elem): Return void, use
4316 std::string.
4317 (do_option): Likewise.
4318 (target_options_to_string): Return an std::string.
4319 * linux-nat.c (linux_nat_target::wait): Adjust.
4320 * target-debug.h (target_debug_print_options): Adjust.
4321
9c612964
TT
43222018-08-07 Tom Tromey <tom@tromey.com>
4323
4324 * Makefile.in (CPPFLAGS): New variable.
4325 (INTERNAL_CPPFLAGS): Use it.
4326
7d11235d
SM
43272018-08-07 Simon Marchi <simon.marchi@ericsson.com>
4328
4329 * NEWS: Mention the index cache.
4330
87d6a7aa
SM
43312018-08-07 Simon Marchi <simon.marchi@ericsson.com>
4332
4333 * common/pathstuff.h (get_standard_cache_dir): New.
4334 * common/pathstuff.c (get_standard_cache_dir): New.
4335 * build-id.h (build_id_to_string): New.
4336 * dwarf-index-common.h (INDEX4_SUFFIX, INDEX5_SUFFIX,
4337 DEBUG_STR_SUFFIX): Move to here.
4338 * dwarf-index-write.c (INDEX4_SUFFIX, INDEX5_SUFFIX,
4339 DEBUG_STR_SUFFIX): Move from there.
4340 (write_psymtabs_to_index): Make non-static, add basename
4341 parameter. Write to temporary files, rename when done.
4342 (save_gdb_index_command): Adjust call to
4343 write_psymtabs_to_index.
4344 * dwarf2read.h (dwarf2_per_objfile) <index_cache_res>: New
4345 field.
4346 * dwarf2read.c (dwz_file) <index_cache_res>: New field.
4347 (get_gdb_index_contents_from_cache): New.
4348 (get_gdb_index_contents_from_cache_dwz): New.
4349 (dwarf2_initialize_objfile): Read index from cache.
4350 (dwarf2_build_psymtabs): Save to index.
4351 * dwarf-index-cache.h: New file.
4352 * dwarf-index-cache.c: New file.
4353 * dwarf-index-write.h: New file.
4354
8a99096f
SM
43552018-08-07 Simon Marchi <simon.marchi@ericsson.com>
4356
4357 * gnulib/aclocal.m4: Re-generate.
4358 * gnulib/config.in: Re-generate.
4359 * gnulib/configure: Re-generate.
4360 * gnulib/import/Makefile.am: Re-generate.
4361 * gnulib/import/Makefile.in: Re-generate.
4362 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
4363 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
4364 * gnulib/import/m4/mkdir.m4: New file.
4365 * gnulib/import/mkdir.c: New file.
4366 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkdir
4367 module.
4368
5c831bb1
SM
43692018-08-07 Simon Marchi <simon.marchi@ericsson.com>
4370
4371 * Makefile.in (COMMON_SFILES): Add common/scoped_mmap.c.
4372 * common/scoped_mmap.c: New file.
4373 * common/scoped_mmap.h (destroy): New method.
4374 (~scoped_mmap, reset): Use destroy.
4375 (scoped_mmap): New move constructor.
4376 (mmap_file): New declaration.
4377 * unittests/scoped_mmap-selftests.c (test_normal,
4378 test_invalid_filename, run_tests): New functions.
4379 (_initialize_scoped_mmap_selftests): Register selftest.
4380
4485a1c1
SM
43812018-08-07 Simon Marchi <simon.marchi@ericsson.com>
4382
4383 * dwarf2read.c (read_gdb_index_from_section): Rename to...
4384 (read_gdb_index_from_buffer): ... this. Remove section
4385 parameter, add buffer parameter.
4386 (get_gdb_index_contents_ftype,
4387 get_gdb_index_contents_dwz_ftype): New typedefs.
4388 (dwarf2_read_gdb_index): Add callback parameters to get the
4389 index contents.
4390 (get_gdb_index_contents_from_section): New.
4391 (dwarf2_initialize_objfile): Update call to
4392 dwarf2_read_gdb_index.
4393
528e1572
SM
43942018-08-07 Simon Marchi <simon.marchi@ericsson.com>
4395
4396 * common/filestuff.h (gdb_fopen_cloexec): New overload.
4397 (gdb_open_cloexec): Likewise.
4398 * nat/linux-osdata.c (command_from_pid): Use string_printf.
4399 (commandline_from_pid): Likewise.
4400 (linux_xfer_osdata_threads): Likewise.
4401 (linux_xfer_osdata_fds): Likewise.
4402 * ada-lang.c (is_package_name): Likewise.
4403 * auxv.c (procfs_xfer_auxv): Likewise.
4404 * breakpoint.c (print_one_breakpoint_location): Use
4405 uiout::field_fmt.
4406 (print_one_catch_solib): Use string_printf.
4407 * coff-pe-read.c (add_pe_exported_sym): Likewise.
4408 (add_pe_forwarded_sym): Likewise.
4409 * dwarf2read.c (create_type_unit_group): Likewise.
4410 (build_error_marker_type): Likewise.
4411 * infcall.c (get_function_name): Likewise.
4412 * valprint.c (print_converted_chars_to_obstack): Likewise.
4413 * xtensa-tdep.c (xtensa_register_type): Likewise.
4414
a7f25a84
SM
44152018-08-06 Simon Marchi <simon.marchi@ericsson.com>
4416
4417 * remote.c (remote_target::download_tracepoint): Fix format
4418 string errors.
4419
296956be
PFC
44202018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4421
4422 * tracefile.c: Include common/byte-vector.h.
4423 (trace_save): Change type of buf to gdb::byte_vector. Initialize
4424 with trace_regblock_size if needed. Update uses of buf.
4425
a04b9d62
PFC
44262018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4427
4428 * tracepoint.h (collection_list) <m_regs_mask>: Change type to
4429 std::vector<unsigned char>.
4430 * tracepoint.c (collection_list::collection_list): Remove
4431 m_regs_mask initializer from initializer list. Resize
4432 m_regs_mask using the largest remote register number.
4433 (collection_list::add_remote_register): Remove size check on
4434 m_regs_mask. Use at to access element.
4435 (collection_list::stringify): Change type of temp_buf to
4436 gdb::char_vector. Update uses of temp_buf. Resize if needed to
4437 stringify the register mask. Use pack_hex_byte for the register
4438 mask.
4439
4277c4b8
PFC
44402018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4441
4442 * tracepoint.h (class collection_list) <add_register>: Remove.
4443 <add_remote_register, add_ax_registers, add_local_register>:
4444 Declare.
4445 <add_memrange>: Add scope parameter.
4446 * tracepoint.c (encode_actions_1): Likewise.
4447 (collection_list::add_register): Rename to ...
4448 (collection_list::add_remote_register): ... this. Update
4449 comment.
4450 (collection_list::add_ax_registers, add_local_register): New
4451 methods.
4452 (collection_list::add_memrange): Add scope parameter. Call
4453 add_local_register instead of add_register.
4454 (finalize_tracepoint_aexpr): New function.
4455 (collection_list::collect_symbol): Update calls to add_memrange.
4456 Call add_local_register instead of add_register. Call
4457 add_ax_registers. Call finalize_tracepoint_aexpr.
4458 (encode_actions_1): Get remote regnos for $reg action. Call
4459 add_remote_register, add_ax_registers, and add_local_register.
4460 Update call to add_memrange. Call finalize_tracepoint_aexpr.
4461 (validate_actionline): Call finalize_tracepoint_aexpr.
4462
3df3a985
PFC
44632018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4464
4465 * remote.c (remote_target::download_tracepoint): Remove BUF_SIZE.
4466 Replace array buf with gdb::char_vector buf, of size
4467 get_remote_packet_size (). Replace references to buf and
4468 BUF_SIZE to buf.data () and buf.size (). Replace strcpy, strcat
4469 and xsnprintf with snprintf. Raise errors if the buffer is too
4470 small.
4471
aa6f3694
PFC
44722018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4473
4474 * remote.c (remote_target::download_tracepoint): Fix the has_more
4475 predicate in the QTDP action list iteration.
4476
05abfc39
PFC
44772018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4478
4479 * remote.c (remote_target::download_tracepoint): Fix indentation
4480 in for block.
4481
821a2682
RO
44822018-08-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4483
4484 * proc-api.c (_initialize_proc_api): Remove c, unused.
4485 * procfs.c (procfs_init_inferior): Remove signals, unused.
4486 (procfs_target::make_corefile_notes): Remove old_chain, fpregs,
4487 unused.
4488
95347337
AB
44892018-08-06 Sergey Korolev <s.korolev@ndmsystems.com>
4490 Andrew Burgess <andrew.burgess@embecosm.com>
4491
4492 * linux-nat.c (linux_nat_target::follow_fork): Avoid using
4493 'W_STOPCODE (0)' as this could be ambiguous.
4494
425699f5
SDJ
44952018-08-03 Sergio Durigan Junior <sergiodj@redhat.com>
4496
4497 * ser-tcp.c (net_open): Fix thinko when deciding whether to
4498 disable TCP's Nagle algorithm (use "ai_protocol" instead of
4499 "ai_socktype").
4500
3e1d3d8c
TT
45012018-08-02 Tom Tromey <tom@tromey.com>
4502
4503 PR symtab/16842.
4504 * dwarf2read.c (read_func_scope): Set symtab on template parameter
4505 symbols.
4506 (process_structure_scope): Likewise.
4507
15843549
XR
45082018-08-02 Xavier Roirand <roirand@adacore.com>
4509
4510 PR gdb/22629:
4511 * darwin-nat.c (darwin_kill_inferior): Fix handling of
4512 kill inferior.
4513
b5bddbbb
TT
45142018-08-02 Tom Tromey <tom@tromey.com>
4515
4516 * darwin-nat.c (find_inferior_task_it, darwin_find_thread)
4517 (darwin_suspend_inferior, darwin_resume_inferior)
4518 (darwin_decode_notify_message, darwin_resume_inferior_threads)
4519 (darwin_check_new_threads): Check result of get_darwin_inferior.
4520
f61cfa07
JB
45212018-07-31 Joel Brobecker <brobecker@adacore.com>
4522
4523 GDB 8.1.1 released.
4524
5abe0f0c
JV
45252018-07-31 Jan Vrany <jan.vrany@fit.cvut.cz>
4526
4527 * varobj.c (varobj_get_path_expr_parent): Report an error if
4528 parent is a dynamic varobj.
4529
472fa5ee
SM
45302018-07-31 Simon Marchi <simon.marchi@ericsson.com>
4531
4532 * gnulib/aclocal.m4: Re-generate.
4533 * gnulib/config.in: Re-generate.
4534 * gnulib/configure: Re-generate.
4535 * gnulib/import/Makefile.in: Re-generate.
4536 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
4537 * gnulib/import/m4/onceonly.m4: Re-generate.
4538
1c28969e
SM
45392018-07-31 Simon Marchi <simon.marchi@ericsson.com>
4540
4541 * target-descriptions.c (struct xml_test_tdesc): New.
4542 (xml_tdesc): Change type to std::vector<xml_test_tdesc>.
4543 (record_xml_tdesc): Update.
4544 (maintenance_check_xml_descriptions): Update.
4545 * target-descriptions.h (record_xml_tdesc): Update comment.
4546
c8f2dc0d
AB
45472018-07-30 Andrew Burgess <andrew.burgess@embecosm.com>
4548
4549 * eval.c (evaluate_subexp_for_sizeof): Check for array type before
4550 checking array bounds are defined.
4551
463c08d1
TT
45522018-07-30 Tom Tromey <tom@tromey.com>
4553
4554 * nat/linux-osdata.c (pid_pgid_entry::operator<): Fix
4555 irreflexivity violation.
4556
dba7455e
TT
45572018-07-30 Tom Tromey <tom@tromey.com>
4558
4559 * cli/cli-decode.c (lookup_cmd): Remove lint code.
4560 * value.c (unpack_long): Remove lint code.
4561 * valops.c (value_ind): Remove lint code.
4562 * valarith.c (value_x_binop, value_x_unop, value_equal)
4563 (value_pos): Remove lint code.
4564
37cc0cae
TV
45652018-07-28 Tom de Vries <tdevries@suse.de>
4566
4567 * eval.c (evaluate_subexp_for_sizeof): Interpret size of dynamic type
4568 with undefined upper bound as <optimized out>.
4569
129eb0f1
SDJ
45702018-07-27 Sergio Durigan Junior <sergiodj@redhat.com>
4571
4572 * gcore.in: Rename variable "name" to "prefix". Expand
4573 "usage" text.
4574
6af79d7b
JT
45752018-07-14 Jon Turney <jon.turney@dronecode.org.uk>
4576
4577 * windows-nat.c (windows_nat_target::create_inferior): Update to
4578 call close() in global namespace.
4579
79748972
TT
45802018-07-26 Tom Tromey <tom@tromey.com>
4581
4582 * dwarf-index-write.c (add_address_entry): Don't add objfile
4583 offsets.
4584 * dbxread.c (find_stab_function): Rename from
4585 find_stab_function_addr. Return a bound_minimal_symbol.
4586 (read_dbx_symtab): Use raw_text_low, raw_text_high.
4587 Don't add objfile offsets.
4588 (end_psymtab): Use raw_text_low, raw_text_high,
4589 MSYMBOL_VALUE_RAW_ADDRESS.
4590 (read_ofile_symtab): Update.
4591 (process_one_symbol): Update.
4592 * dwarf2read.c (create_addrmap_from_index): Don't add objfile
4593 offsets.
4594 (dw2_relocate): Remove.
4595 (dw2_find_pc_sect_symtab): Bias PC by the text offset before
4596 searching addrmap.
4597 (dwarf2_gdb_index_functions, dwarf2_debug_names_functions):
4598 Update.
4599 (process_psymtab_comp_unit_reader, add_partial_symbol)
4600 (add_partial_subprogram, dwarf2_ranges_read): Update.
4601 (load_partial_dies): Update.
4602 (add_address_entry): Don't add objfile offsets.
4603 (dwarf2_build_include_psymtabs): Update.
4604 (create_addrmap_from_aranges): Don't add objfile offsets.
4605 (dw2_find_pc_sect_compunit_symtab): Update.
4606 * mdebugread.c (parse_symbol): Don't add objfile offsets.
4607 (parse_lines): Remove 'pst' parameter, replace with 'textlow'.
4608 Update.
4609 (parse_partial_symbols): Don't add objfile offsets. Use
4610 raw_text_low, raw_text_high. Update.
4611 (handle_psymbol_enumerators, psymtab_to_symtab_1): Update.
4612 * objfiles.c (objfile_relocate1): Don't relocate psymtabs_addrmap
4613 or call 'relocate' quick function. Clear psymbol_map.
4614 * psympriv.h (struct partial_symbol) <address>: Add section
4615 offset.
4616 <set_unrelocated_address>: Rename from set_address.
4617 <raw_text_low, raw_text_high>: New methods.
4618 <text_low, text_high>: Add objfile parameter.
4619 (add_psymbol_to_bcache): Add 'section' parameter. Call
4620 set_unrelocated_address.
4621 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
4622 (find_pc_psymbol): Update.
4623 (fixup_psymbol_section, relocate_psymtabs): Remove.
4624 (dump_psymtab, psym_functions): Update.
4625 (add_psymbol_to_bcache, add_psymbol_to_list): Add 'section'
4626 parameter.
4627 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
4628 (start_psymtab_common): Update.
4629 * symfile-debug.c (debug_qf_relocate): Remove.
4630 (debug_sym_quick_functions): Update.
4631 * symfile.h (struct quick_symbol_functions) <relocate>: Remove.
4632 * xcoffread.c (scan_xcoff_symtab): Don't add objfile offsets.
4633 Update.
4634
52948f01
TT
46352018-07-26 Tom Tromey <tromey@redhat.com>
4636
4637 * dbxread.c (end_psymtab): Use text_high_valid and
4638 text_low_valid.
4639 * mdebugread.c (parse_partial_symbols): Use text_low_valid.
4640 (psymtab_to_symtab_1): Use text_high_valid and text_low_valid.
4641 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
4642 Update comment.
4643 <text_low_valid, text_high_valid>: New fields.
4644 <set_text_low, set_text_high>: Update.
4645 * xcoffread.c (scan_xcoff_symtab): Use text_low_valid.
4646
4ae976d1
TT
46472018-07-26 Tom Tromey <tom@tromey.com>
4648
4649 * dbxread.c (read_dbx_symtab, end_psymtab, read_ofile_symtab):
4650 Update.
4651 * dwarf2read.c (dwarf2_create_include_psymtab): Don't initialize
4652 textlow and texthigh fields.
4653 (process_psymtab_comp_unit_reader, dwarf2_build_include_psymtabs):
4654 Update.
4655 * mdebugread.c (parse_lines, parse_partial_symbols)
4656 (psymtab_to_symtab_1): Update.
4657 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
4658 Rename fields. Update comment. Now private.
4659 <text_low, text_high, set_text_low, set_text_high>: New methods.
4660 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
4661 (find_pc_sect_psymbol, relocate_psymtabs, dump_psymtab)
4662 (start_psymtab_common, maintenance_info_psymtabs)
4663 (maintenance_check_psymtabs): Update.
4664 * xcoffread.c (xcoff_end_psymtab): Don't initialize textlow and
4665 texthigh fields.
4666 (scan_xcoff_symtab): Update.
4667
02e9e7f7
TT
46682018-07-26 Tom Tromey <tromey@redhat.com>
4669
4670 * psympriv.h (struct partial_symbol) <unrelocated_address,
4671 address, set_address>: New methods.
4672 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymbol)
4673 (fixup_psymbol_section, relocate_psymtabs): Update.
4674 (print_partial_symbols): Add 'objfile' parameter. Update.
4675 (dump_psymtab, add_psymbol_to_bcache, psym_fill_psymbol_map):
4676 Update.
4677
8a6d4234
TT
46782018-07-26 Tom Tromey <tom@tromey.com>
4679
4680 * dwarf-index-write.c (write_psymbols, debug_names::insert)
4681 (debug_names::write_psymbols): Update.
4682 * psympriv.h (struct partial_symbol): Derive from
4683 general_symbol_info.
4684 <obj_section>: New method.
4685 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.n
4686 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
4687 (find_pc_sect_psymbol, fixup_psymbol_section)
4688 (match_partial_symbol, lookup_partial_symbol, relocate_psymtabs)
4689 (print_partial_symbols, recursively_search_psymtabs)
4690 (compare_psymbols, psymbol_hash, psymbol_compare)
4691 (add_psymbol_to_bcache, maintenance_check_psymtabs)
4692 (psymbol_name_matches, psym_fill_psymbol_map): Update.
4693
08994e1d
TT
46942018-07-26 Tom Tromey <tromey@redhat.com>
4695
4696 * dbxread.c (end_psymtab): Remove dead code.
4697
3c3bb058
AB
46982018-07-26 Andrew Burgess <andrew.burgess@embecosm.com>
4699
4700 * dwarf2-frame-tailcall.c (tailcall_frame_sniffer): Exit early if
4701 DWARF unwinders are disabled.
4702 * dwarf2-frame.c: Add dwarf2read.h include.
4703 (dwarf2_frame_sniffer): Exit early if DWARF unwinders are
4704 disabled.
4705 (dwarf2_frame_unwinders_enabled_p): Define.
4706 (show_dwarf_unwinders_enabled_p): New function.
4707 (_initialize_dwarf2_frame): Register switch to control DWARF
4708 unwinder use.
4709 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Declare.
4710 * dwarf2read.c (set_dwarf_cmdlist): Remove static keyword.
4711 (show_dwarf_cmdlist): Remove static keyword.
4712 * dwarf2read.h (set_dwarf_cmdlist): Declare.
4713 (show_dwarf_cmdlist): Declare.
4714 * NEWS: Document new feature.
4715
9e7f3bbb
TV
47162018-07-26 Tom de Vries <tdevries@suse.de>
4717
4718 PR breakpoints/23366
4719 * infcmd.c (info_program_command): Handle ptid == minus_one_ptid.
4720
506f5c41
TV
47212018-07-26 Tom de Vries <tdevries@suse.de>
4722
4723 * dwarf2read.c (read_subrange_type): Warn if DW_AT_upper_bound or
4724 DW_AT_count can't be translated to a dynamic prop.
4725
16f808ec
TV
47262018-07-25 Tom de Vries <tdevries@suse.de>
4727
4728 * dwarf2loc.c (dwarf2_locexpr_baton_eval): Wrap ctx.eval call in
4729 try/catch.
4730
d7154a8d
JV
47312018-07-25 Jan Vrany <jan.vrany@fit.cvut.cz>
4732
4733 * breakpoint.c (enable_disable_bp_num_loc): Notify observers.
4734
a45389f6
JB
47352018-07-25 Joel Brobecker <brobecker@adacore.com>
4736
4737 * MAINTAINERS (Global Maintainers): Add Tom Tromey.
4738
380618d6
KS
47392018-07-24 Keith Seitz <keiths@redhat.comt
4740
4741 PR symtab/23010
4742 * dwarf2read.c (dw2_add_symbol_to_list): New function.
4743 (fixup_go_packaging, new_symbol): Use dw2_add_symbol_to_list
4744 instead of add_symbol_to_list.
4745 (read_file_scope): Call prepare_one_comp_unit before reading
4746 any other DIEs.
4747
4b17aefe
SM
47482018-07-24 Simon Marchi <simon.marchi@ericsson.com>
4749
4750 * common/scoped_mmap.h (class scoped_mmap): Fix indentation.
4751
29d17e47
TT
47522018-07-24 Tom Tromey <tom@tromey.com>
4753
4754 * utils.c (malloc, realloc, free): Don't declare.
4755 * configure, config.in: Rebuild.
4756 * configure.ac: Don't check for declarations of free, malloc, or
4757 realloc.
4758
cf4088a9
SM
47592018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4760
4761 * aarch64-linux-nat.c
4762 (aarch64_linux_nat_target::stopped_data_address): Remove unused
4763 variable.
4764 * arm-linux-nat.c (fetch_regs): Likewise.
4765 (store_regs): Likewise.
4766 (fetch_vfp_regs): Likewise.
4767 (store_vfp_regs): Likewise.
4768 (arm_linux_nat_target::insert_hw_breakpoint): Likewise.
4769 (arm_linux_nat_target::remove_hw_breakpoint): Likewise.
4770 (arm_linux_nat_target::insert_watchpoint): Likewise.
4771 (arm_linux_nat_target::remove_watchpoint): Likewise.
4772 * mips-linux-nat.c (mips_linux_nat_target::insert_watchpoint):
4773 Likewise.
4774 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs):
4775 Likewise.
4776 * ppc-linux-nat.c (fetch_register): Likewise.
4777 (fetch_all_gp_regs): Likewise.
4778 (fetch_ppc_registers): Likewise.
4779 (store_all_gp_regs): Likewise.
4780 (store_ppc_registers): Likewise.
4781 (hwdebug_insert_point): Likewise.
4782 (can_use_watchpoint_cond_accel): Likewise.
4783 * remote-sim.c (gdb_os_write_stdout): Likewise.
4784
a0de763e
TT
47852018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4786 Tom Tromey <tom@tromey.com>
4787
4788 * warning.m4 (AM_GDB_WARNINGS): Add -Wunused-variable and special
4789 test for it.
4790 * configure: Rebuild.
4791
3b20124b
TT
47922018-07-22 Tom Tromey <tom@tromey.com>
4793
4794 * regformats/regdat.sh: Define xmltarget_${name} inside
4795 #ifndef IN_PROCESS_AGENT.
4796
8c8807f4
TT
47972018-07-22 Tom Tromey <tom@tromey.com>
4798
4799 * value.c (value_fetch_lazy_bitfield): Remove unused variable.
4800
c486b610
TT
48012018-07-22 Tom Tromey <tom@tromey.com>
4802
4803 * symfile.c (reread_symbols): Notify iter, not objfile.
4804
494f80a9
TT
48052018-07-22 Tom Tromey <tom@tromey.com>
4806
4807 * ravenscar-thread.c (ravenscar_thread_target::store_registers):
4808 Use arch_ops.
4809 (ravenscar_thread_target::prepare_to_store): Likewise.
4810
c51f6a54
TT
48112018-07-22 Tom Tromey <tom@tromey.com>
4812
4813 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Remove
4814 unused variable. Call value_fetch_lazy when needed.
4815 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
4816 Remove unused variable. Call value_fetch_lazy when needed.
4817
374fd1fd
TT
48182018-07-22 Tom Tromey <tom@tromey.com>
4819
4820 * m32c-tdep.c (mark_dma): Return void.
4821 (make_regs): Remove unused declarations.
4822
d5e9a511
TT
48232018-07-22 Tom Tromey <tom@tromey.com>
4824
4825 * guile/scm-cmd.c (gdbscm_dont_repeat): Call
4826 cmdscm_get_valid_command_smob_arg_unsafe for effect.
4827 * guile/scm-block.c (gdbscm_make_block_syms_iter): Call
4828 bkscm_get_valid_block_smob_arg_unsafe for effect.
4829
996d693a
TT
48302018-07-22 Tom Tromey <tom@tromey.com>
4831
4832 * bfin-tdep.c (bfin_push_dummy_call): Use arg_type, not
4833 value_type.
4834
15766370
TT
48352018-07-22 Tom Tromey <tom@tromey.com>
4836
4837 * windows-nat.c (saved_context): Conditionally define.
4838 * remote.c (remote_target::remote_btrace_maybe_reopen):
4839 Conditionally declare "warned".
4840 * inflow.c (sigquit_ours): Conditionally define.
4841 (new_tty): Move "tty" declaration inside #if.
4842 * guile/guile.c (guile_datadir): Conditionally define.
4843 * charset.c (set_be_le_names): Move some declarations inside #if.
4844 * btrace.c (parse_xml_btrace): Move "errcode" declaration inside
4845 #if.
4846 (parse_xml_btrace_conf): Likewise.
4847
f4e80e13
TT
48482018-07-22 Tom Tromey <tom@tromey.com>
4849
4850 * spu-tdep.c (spu_get_overlay_table): Remove unused variable.
4851
8d49165d
TT
48522018-07-22 Tom Tromey <tom@tromey.com>
4853
4854 * guile/scm-value.c (gdbscm_value_call): Remove unused variables.
4855 * guile/scm-math.c (vlscm_unop_gdbthrow, vlscm_binop_gdbthrow)
4856 (vlscm_convert_typed_value_from_scheme): Remove unused variable.
4857 * buildsym-legacy.c (get_macro_table): Remove unused variable.
4858 * stack.c (frame_apply_level_command): Remove unused variable.
4859 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused variable.
4860 * sparc64-tdep.c (adi_examine_command): Remove unused variable.
4861 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Remove
4862 unused variable.
4863 * nios2-tdep.c (nios2_push_dummy_call): Remove unused variable.
4864 * mep-tdep.c (mep_push_dummy_call): Remove unused variable.
4865 * ada-lang.c (ada_lookup_symbol_list_worker): Remove unused
4866 variable.
4867 * amd64-tdep.c (amd64_supply_xsave): Remove unused variable.
4868 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Remove unused
4869 variable.
4870 * breakpoint.c (check_no_tracepoint_commands, update_watchpoint):
4871 Remove unused variable.
4872 * cli/cli-script.c (recurse_read_control_structure): Remove unused
4873 variable.
4874 * common/tdesc.c (print_xml_feature::visit): Remove unused
4875 variable.
4876 * compile/compile-object-load.c (store_regs): Remove unused
4877 variables.
4878 * complaints.c (clear_complaints): Remove unused variable.
4879 * corelow.c (core_target_open): Remove unused variable.
4880 * fbsd-tdep.c (fbsd_core_info_proc_status): Remove unused
4881 variable.
4882 * guile/scm-frame.c (gdbscm_frame_read_var): Remove unused
4883 variable.
4884 * guile/scm-symtab.c (stscm_print_sal_smob): Remove unused
4885 variable.
4886 * guile/scm-type.c (gdbscm_field_baseclass_p): Remove unused
4887 variable.
4888 * guile/scm-utils.c (gdbscm_parse_function_args): Remove unused
4889 variable.
4890 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Remove unused
4891 variable.
4892 * ia64-tdep.c (examine_prologue): Remove unused variable.
4893 * infcall.c (run_inferior_call): Remove unused variable.
4894 * inferior.c (exit_inferior): Remove unused variable.
4895 * infrun.c (infrun_thread_ptid_changed): Remove unused variable.
4896 * linespec.c (decode_line_2): Remove unused variable.
4897 * linux-nat.c (super_close): Remove.
4898 * linux-tdep.c (linux_info_proc): Remove unused variable.
4899 * mi/mi-main.c (mi_execute_command): Remove unused variable.
4900 * microblaze-linux-tdep.c (microblaze_linux_sigtramp_cache):
4901 Remove unused variable.
4902 * parse.c (find_minsym_type_and_address): Remove unused variable.
4903 * printcmd.c (info_symbol_command, printf_floating): Remove unused
4904 variable.
4905 * python/py-breakpoint.c (bppy_set_commands): Remove unused
4906 variable.
4907 * python/py-unwind.c (unwind_infopy_dealloc): Remove unused
4908 variables.
4909 * record-btrace.c (record_btrace_target::store_registers): Remove
4910 unused variable.
4911 (cmd_show_record_btrace_cpu): Remove unused variable.
4912 * riscv-tdep.c (riscv_register_reggroup_p)
4913 (riscv_push_dummy_call, riscv_return_value): Remove unused
4914 variable.
4915 * rust-exp.y (literal): Remove unused variable.
4916 * rust-lang.c (rust_evaluate_subexp) <OP_RUST_ARARAY>: Remove
4917 unused variable.
4918 <STRUCTOP_ANONYMOUS>: Likewise.
4919 * s390-linux-tdep.c (s390_linux_init_abi_31)
4920 (s390_linux_init_abi_64): Remove unused variable.
4921 * ser-ming2.c (ser_windows_read_prim, pipe_select_thread)
4922 (file_select_thread, net_windows_open, _initialize_ser_windows):
4923 Remove unused variables.
4924 * symtab.c (find_pc_sect_line): Remove unused variable.
4925 * target-memory.c (compute_garbled_blocks): Remove unused
4926 variable.
4927 (target_write_memory_blocks): Remove unused variable.
4928 * target.c (target_stack::unpush): Remove unused variables.
4929 * tracepoint.c (start_tracing, all_tracepoint_actions)
4930 (merge_uploaded_trace_state_variables)
4931 (print_one_static_tracepoint_marker): Remove unused variable.
4932 * unittests/basic_string_view/element_access/char/1.cc (test01):
4933 Remove unused variable.
4934 * windows-nat.c (windows_continue, windows_add_all_dlls)
4935 (do_initial_windows_stuff, windows_nat_target::create_inferior):
4936 Remove unused variables.
4937
17cbafdb
SM
49382018-07-21 Simon Marchi <simon.marchi@polymtl.ca>
4939
4940 * arm-tdep.c (arm_gdbarch_init): Declare attr_arch and
4941 attr_profile in HAVE_ELF.
4942 * rs6000-tdep.c (bfd_uses_spe_extensions): Declare vector_abi in
4943 HAVE_ELF.
4944
0ee6c332
SM
49452018-07-20 Simon Marchi <simon.marchi@polymtl.ca>
4946
4947 * frame.c (frame_register_unwind): Change parameter name.
4948 (frame_unwind_register): Likewise.
4949 (frame_unwind_register_value): Likewise.
4950 (frame_unwind_register_signed): Likewise.
4951 (frame_unwind_register_unsigned): Likewise.
4952 * frame.h (frame_register_unwind): Likewise.
4953 (frame_unwind_register): Likewise.
4954 (frame_unwind_register_value): Likewise.
4955 (frame_unwind_register_signed): Likewise.
4956 (frame_unwind_register_unsigned): Likewise.
4957 (frame_unwind_arch): Likewise.
4958
e2e31f10
MR
49592018-07-20 Maciej W. Rozycki <macro@mips.com>
4960
4961 * MAINTAINERS: Update my e-mail address, downgrade to MIPS I-IV
4962 ISA maintenance.
4963
2d389915
MR
49642018-07-20 Maciej W. Rozycki <macro@mips.com>
4965
4966 * mips-linux-nat.c (mips_linux_nat_target::read_description):
4967 Call `get_ptrace_pid' rather than extracting the ptrace PID by
4968 hand.
4969
cbb09508
KS
49702018-07-20 Keith Seitz <keiths@redhat.com>
4971
4972 * buildsym.h (struct buildsym_compunit) <m_objfile, m_subfiles,
4973 m_main_subfile, m_comp_dir, m_producer, m_debugformat,
4974 m_compunit_symtab, m_language>: Add "m_" prefix.
4975 Update all uses.
4976 * buildsym.c: Update all uses.
4977
bfe2e011
TT
49782018-07-20 Tom Tromey <tom@tromey.com>
4979
4980 * buildsym-legacy.h (record_line): Don't use record_line_ftype.
4981 * buildsym.h (record_line_ftype): Remove typedef.
4982
0e6f3061
TT
49832018-07-20 Tom Tromey <tom@tromey.com>
4984
4985 * buildsym-legacy.h (augment_type_symtab): Don't declare.
4986 (end_expandable_symtab): Likewise.
4987 (end_symtab_get_static_block): Likewise.
4988 (end_symtab_from_static_block): Likewise.
4989 * buildsym-legacy.c (augment_type_symtab): Remove.
4990 (end_expandable_symtab): Remove.
4991 (end_symtab_get_static_block): Remove.
4992 (end_symtab_from_static_block): Remove.
4993
804d2729
TT
49942018-07-20 Tom Tromey <tom@tromey.com>
4995
4996 * dwarf2read.c: Include buildsym.h.
4997 (struct dwarf2_cu) <builder>: New method.
4998 (fixup_go_packaging): Update.
4999 (process_full_comp_unit, process_full_type_unit): Update. Don't
5000 use scoped_free_pendings.
5001 (using_directives): Add "cu" parameter, remove "language".
5002 (read_import_statement, setup_type_unit_groups, )
5003 (read_func_scope, read_lexical_block_scope)
5004 (dwarf2_record_block_ranges, read_namespace): Update.
5005 (lnp_state_machine::lnp_state_machine): Add cu parameter.
5006 (lnp_state_machine::handle_end_sequence): Update.
5007 (class lnp_state_machine) <m_cu>: New member.
5008 <m_record_line_callback>: Remove.
5009 <m_currently_recording_lines>: New member.
5010 (lnp_state_machine::handle_set_file): Update.
5011 (noop_record_line): Remove.
5012 (dwarf_record_line_p): Add cu parameter.
5013 (dwarf_record_line_1, dwarf_finish_line): Likewise.
5014 (lnp_state_machine::record_line)
5015 (lnp_state_machine::lnp_state_machine)
5016 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
5017 (dwarf_decode_lines): Update.
5018 (dwarf2_start_subfile): Add cu parameter.
5019 (dwarf2_start_symtab, new_symbol): Update.
5020 (macro_start_file, dwarf_decode_macro_bytes): Add cu parameter.
5021 Remove dwarf2_per_objfile parameter.
5022 (dwarf_decode_macros): Update.
5023
80e649fc
TT
50242018-07-20 Tom Tromey <tom@tromey.com>
5025
5026 * stabsread.c (define_symbol): Update.
5027 * buildsym-legacy.h (get_buildsym_compunit): Declare.
5028 * dwarf2read.c (new_symbol): Update.
5029 * cp-support.h (cp_scan_for_anonymous_namespaces): Update.
5030 * cp-namespace.c: Include buildsym.h.
5031 (cp_scan_for_anonymous_namespaces): Add "compunit" parameter.
5032 * buildsym-legacy.c (get_buildsym_compunit): New function.
5033
0baae8db
TT
50342018-07-20 Tom Tromey <tom@tromey.com>
5035
5036 * xcoffread.c: Include buildsym-legacy.h.
5037 * windows-nat.c: Include buildsym-legacy.h.
5038 * stabsread.c: Include buildsym-legacy.h.
5039 * mdebugread.c: Include buildsym-legacy.h.
5040 * buildsym-legacy.h: New file.
5041 * buildsym-legacy.c: New file, from buildsym.c.
5042 * go32-nat.c: Include buildsym-legacy.h.
5043 * dwarf2read.c: Include buildsym-legacy.h.
5044 * dbxread.c: Include buildsym-legacy.h.
5045 * cp-namespace.c: Include buildsym-legacy.h.
5046 * coffread.c: Include buildsym-legacy.h.
5047 * buildsym.h: Move some contents to buildsym-legacy.h.
5048 * buildsym.c: Include buildsym-legacy.h. Move many functions to
5049 buildsym-legacy.c.
5050 * Makefile.in (HFILES_NO_SRCDIR): Add buildsym-legacy.h.
5051
ab209f6f
TT
50522018-07-20 Tom Tromey <tom@tromey.com>
5053
5054 * buildsym.h (struct buildsym_compunit): Move from buildsym.c.
5055 * buildsym.c (struct buildsym_compunit): Move to buildsym.h.
5056 (buildsym_compunit::buildsym_compunit)
5057 (buildsym_compunit::~buildsym_compunit)
5058 (buildsym_compunit::get_macro_table): Define.
5059
74c72eac
TT
50602018-07-20 Tom Tromey <tom@tromey.com>
5061
5062 * buildsym.c (reset_symtab_globals): Remove.
5063 (buildsym_compunit::end_symtab_from_static_block): Update.
5064 (buildsym_compunit::augment_type_symtab): Update.
5065 (end_symtab_from_static_block): Call free_buildsym_compunit.
5066 (augment_type_symtab, end_symtab, end_expandable_symtab):
5067 Likewise.
5068
da6580e5
TT
50692018-07-20 Tom Tromey <tom@tromey.com>
5070
5071 * arch-utils.c: Do not include buildsym.h.
5072 * mipsread.c: Do not include buildsym.h.
5073 * machoread.c: Do not include buildsym.h.
5074 * elfread.c: Do not include buildsym.h.
5075
4a2125f5
TT
50762018-07-20 Tom Tromey <tom@tromey.com>
5077
5078 * buildsym.c (buildsym_compunit::buildsym_compunit): Do more
5079 initialization.
5080 (buildsym_compunit): Add new constructor.
5081 (struct buildsym_compunit) <get_last_source_file, finish_block,
5082 record_block_range, start_subfile, patch_subfile_names,
5083 push_subfile, pop_subfile, record_line, get_compunit_symtab,
5084 set_last_source_start_addr, get_last_source_start_addr,
5085 get_local_using_directives, set_local_using_directives,
5086 get_global_using_directives, outermost_context_p,
5087 get_current_context_stack, get_context_stack_depth,
5088 get_current_subfile, get_local_symbols, get_file_symbols,
5089 get_global_symbols, record_debugformat, record_producer,
5090 push_context, pop_context, end_symtab_get_static_block,
5091 end_symtab_from_static_block, end_symtab, end_expandable_symtab>:
5092 New public methods.
5093 <record_pending_block, finish_block_internal, make_blockvector,
5094 watch_main_source_file_lossage, end_symtab_with_blockvector>: New
5095 private methods.
5096 Update all users.
5097
50982018-05-22 Tom Tromey <tom@tromey.com>
5099
5100 * buildsym.c (record_pending_block): Move earlier. Remove objfile
5101 parameter.
5102 (finish_block_internal): Update.
5103
6b213a47
TT
51042018-07-20 Tom Tromey <tom@tromey.com>
5105
5106 * buildsym.c (record_pending_block): Move earlier. Remove objfile
5107 parameter.
5108 (finish_block_internal): Update.
5109
b80a981d
TT
51102018-07-20 Tom Tromey <tom@tromey.com>
5111
5112 * buildsym.h (EXTERN): Don't define or undef.
5113 * buildsym.c (EXTERN): Don't define.
5114
ddb70602
TT
51152018-07-20 Tom Tromey <tom@tromey.com>
5116
5117 * buildsym.c: Remove TODO comment.
5118
b37dd3bc
TT
51192018-07-20 Tom Tromey <tom@tromey.com>
5120
5121 * coffread.c (coff_symtab_read): Update.
5122 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
5123 (xcoff_new_init): Update.
5124 * mipsread.c (mipscoff_new_init): Update.
5125 * mdebugread.c (mdebug_build_psymtabs): Update.
5126 * elfread.c (elf_new_init): Update.
5127 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
5128 Update.
5129 * dbxread.c (dbx_new_init, dbx_psymtab_to_symtab_1)
5130 (coffstab_build_psymtabs, elfstab_build_psymtabs)
5131 (stabsect_build_psymtabs): Update.
5132 * buildsym.h (buildsym_init): Don't declare.
5133 * buildsym.c: Update comment.
5134 (prepare_for_building): Remove.
5135 (start_symtab, restart_symtab): Update.
5136 (reset_symtab_globals): Update comment.
5137 (buildsym_init): Remove.
5138
e148f09d
TT
51392018-07-20 Tom Tromey <tom@tromey.com>
5140
5141 * xcoffread.c (read_xcoff_symtab, process_xcoff_symbol): Update.
5142 * stabsread.c (patch_block_stabs, define_symbol, read_type)
5143 (read_enum_type, common_block_start, common_block_end)
5144 (cleanup_undefined_types_1, finish_global_stabs): Update.
5145 * mdebugread.c (psymtab_to_symtab_1): Update.
5146 * dwarf2read.c (fixup_go_packaging, read_func_scope)
5147 (read_lexical_block_scope, new_symbol): Update.
5148 * dbxread.c (process_one_symbol): Update.
5149 * coffread.c (coff_symtab_read, process_coff_symbol)
5150 (coff_read_enum_type): Update.
5151 * buildsym.h (file_symbols, global_symbols, local_symbols): Don't
5152 declare.
5153 (get_local_symbols, get_file_symbols, get_global_symbols): New
5154 functions.
5155 * buildsym.c (~buildsym_compunit): Clean up m_file_symbols and
5156 m_global_symbols.
5157 <m_file_symbols, m_local_symbols, m_global_symbols>: New members.
5158 (~scoped_free_pendings): Update.
5159 (finish_block, prepare_for_building, reset_symtab_globals)
5160 (end_symtab_get_static_block, end_symtab_with_blockvector)
5161 (augment_type_symtab, push_context): Update.
5162 (get_local_symbols, get_file_symbols, get_global_symbols): New
5163 functions.
5164 (buildsym_init): Update.
5165
93b8bea4
TT
51662018-07-20 Tom Tromey <tom@tromey.com>
5167
5168 * dwarf2read.c (process_full_comp_unit): Do not set list_in_scope.
5169 (process_full_type_unit): Likewise.
5170 (dwarf2_start_symtab): Set list_in_scope.
5171
f62f6af5
TT
51722018-07-20 Tom Tromey <tom@tromey.com>
5173
5174 * dwarf2read.c (process_psymtab_comp_unit_reader)
5175 (build_type_psymtabs_reader): Do not set list_in_scope.
5176
1d376700
TT
51772018-07-20 Tom Tromey <tom@tromey.com>
5178
5179 * buildsym.c (free_pendings): Remove.
5180 (add_symbol_to_list, scoped_free_pendings)
5181 (finish_block_internal, buildsym_init): Update.
5182
c233e9c6
TT
51832018-07-20 Tom Tromey <tom@tromey.com>
5184
5185 * xcoffread.c (read_xcoff_symtab): Update.
5186 * dwarf2read.c (read_func_scope, read_lexical_block_scope):
5187 Update.
5188 * dbxread.c (process_one_symbol): Update.
5189 * coffread.c (coff_symtab_read): Update.
5190 * buildsym.h (finish_block): Update.
5191 * buildsym.c (finish_block): Remove "listhead" argument.
5192 (end_symtab_get_static_block): Update.
5193
5ac04550
TT
51942018-07-20 Tom Tromey <tom@tromey.com>
5195
5196 * buildsym.h (class scoped_free_pendings): Remove constructor.
5197 * buildsym.c (struct buildsym_compunit) <free_pending_blocks>: New
5198 method.
5199 <m_pending_block_obstack, m_pending_blocks>: New members.
5200 (pending_block_obstack, pending_blocks): Remove.
5201 (scoped_free_pendings::scoped_free_pendings): Default.
5202 (~scoped_free_pendings): Update.
5203 (free_pending_blocks): Remove.
5204 (finish_block_internal, record_pending_block, make_blockvector)
5205 (end_symtab_get_static_block, augment_type_symtab, push_context)
5206 (buildsym_init): Update.
5207
7ea05a7b
TT
52082018-07-20 Tom Tromey <tom@tromey.com>
5209
5210 * buildsym.c (struct buildsym_compunit) <m_pending_addrmap,
5211 m_pending_addrmap_obstack, m_pending_addrmap_interesting>: New
5212 members.
5213 (pending_addrmap, pending_addrmap_obstack)
5214 (pending_addrmap_interesting): Remove.
5215 (scoped_free_pendings, record_block_range, make_blockvector)
5216 (prepare_for_building, reset_symtab_globals, buildsym_init):
5217 Update.
5218
3c65e5b3
TT
52192018-07-20 Tom Tromey <tom@tromey.com>
5220
5221 * xcoffread.c (process_linenos): Update.
5222 * stabsread.c (define_symbol, read_type, read_enum_type): Update.
5223 * mdebugread.c (psymtab_to_symtab_1): Update.
5224 * dwarf2read.c (setup_type_unit_groups)
5225 (lnp_state_machine::handle_set_file, dwarf_record_line_p)
5226 (lnp_state_machine::record_line, dwarf_decode_lines): Update.
5227 * dbxread.c (process_one_symbol): Update.
5228 * coffread.c (coff_symtab_read, enter_linenos)
5229 (process_coff_symbol): Update.
5230 * buildsym.h (current_subfile): Don't declare.
5231 (get_current_subfile): Declare.
5232 * buildsym.c (struct buildsym_compunit) <m_current_subfile>: New
5233 member.
5234 (start_subfile, free_buildsym_compunit, push_subfile)
5235 (prepare_for_building, start_symtab): Update.
5236 (get_current_subfile): New function.
5237
a60f3166
TT
52382018-07-20 Tom Tromey <tom@tromey.com>
5239
5240 * coffread.c (coff_symtab_read): Update.
5241 * xcoffread.c (read_xcoff_symtab): Update.
5242 * dwarf2read.c (new_symbol): Update.
5243 (read_func_scope, read_lexical_block_scope): Update.
5244 * dbxread.c (process_one_symbol): Update.
5245 * buildsym.h (context_stack, context_stack_depth): Don't declare.
5246 (outermost_context_p): Remove macro.
5247 (outermost_context_p, get_current_context_stack)
5248 (get_context_stack_depth): Declare.
5249 (pop_context): Return struct context_stack.
5250 * buildsym.c (struct buildsym_compunit) <m_context_stack: New
5251 member.
5252 (context_stack_size): Remove.
5253 (INITIAL_CONTEXT_STACK_SIZE): Remove.
5254 (prepare_for_building, end_symtab_get_static_block)
5255 (augment_type_symtab, push_context): Update.
5256 (pop_context): Return struct context_stack.
5257 (outermost_context_p, get_current_context_stack)
5258 (get_context_stack_depth): New functions.
5259 (buildsym_init): Update.
5260
56ba65a0
TT
52612018-07-20 Tom Tromey <tom@tromey.com>
5262
5263 * rust-exp.y: Now a pure parser. Update all rules.
5264 (%union): Move earlier.
5265 (current_parser, work_obstack): Remove globals.
5266 (rust_parser, ~rust_parser): Update.
5267 (class rust_parser) <copy_name, concat3, crate_name, super_name,
5268 lex_character, lex_number, lex_string, lex_identifier,
5269 rust_lookup_type, convert_params_to_types, convert_ast_to_type,
5270 convert_name, convert_params_to_expression,
5271 convert_ast_to_expression, ast_basic_type, ast_operation,
5272 ast_compound_assignment, rust_op, ast_literal, ast_dliteral,
5273 ast_structop, ast_structop_anonymous, ast_unary, ast_cast,
5274 ast_call_ish, ast_path, ast_string, ast_struct, ast_range,
5275 ast_array_type, ast_slice_type, ast_reference_type,
5276 ast_pointer_type, ast_function_type, ast_tuple_type>: New methods.
5277 (rust_parse): Update.
5278 (rustyyerror, rustyylex): Add parser parameter.
5279 (rust_lex_test_one, rust_lex_int_test, rust_lex_exception_test)
5280 (rust_lex_stringish_test, rust_lex_test_sequence)
5281 (rust_lex_test_trailing_dot, rust_lex_test_completion)
5282 (rust_lex_test_push_back, rust_lex_tests): Update.
5283
4c693332
PA
52842018-07-19 Pedro Alves <palves@redhat.com>
5285
5286 * guile/guile-internal.h (gdbscm_scm_to_c_string): Now returns a
5287 gdb::unique_xmalloc_ptr.
5288 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x):
5289 Adjust to use dbscm_wrap and gdb::unique_xmalloc_ptr.
5290 * guile/scm-exception.c (gdbscm_exception_message_to_string): Use
5291 copy-initialization.
5292 * guile/scm-pretty-print.c (ppscm_print_children): Use
5293 gdb::unique_xmalloc_ptr instead of cleanups.
5294 (gdbscm_apply_val_pretty_printer): Remove cleanups.
5295 * guile/scm-string.c (gdbscm_scm_to_c_string): Now returns a
5296 gdb::unique_xmalloc_ptr.
5297 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
5298 Adjust to use gdb::unique_xmalloc_ptr.
5299 * guile/scm-utils.c (extract_arg): Adjust.
5300 * guile/scm-value.c (gdbscm_value_field): Adjust to use
5301 gdb::unique_xmalloc_ptr instead of a cleanup.
5302
4581dc82
TT
53032018-07-19 Tom Tromey <tom@tromey.com>
5304
5305 * utils.c (do_value_free_to_mark)
5306 (make_cleanup_value_free_to_mark): Remove.
5307 * utils.h (make_cleanup_value_free_to_mark): Remove.
5308
43cc6c3a
PA
53092018-07-19 Pedro Alves <palves@redhat.com>
5310
5311 * guile/guile-internal.h (gdbscm_wrap): Really make 'args' a
5312 forwarding reference.
5313
3a5f2a48
PA
53142018-07-18 Pedro Alves <palves@redhat.com>
5315
5316 * guile/guile.c (gdbscm_execute_gdb_command): Adjust to use
5317 gdbscm_wrap. Use gdb::unique_xmalloc_ptr<char> instead of a
5318 cleanup.
5319
557e56be
PA
53202018-07-18 Pedro Alves <palves@redhat.com>
5321
5322 * guile/guile-internal.h: Add comment about mixing GDB and Scheme
5323 exceptions.
5324 (GDBSCM_HANDLE_GDB_EXCEPTION_WITH_CLEANUPS): Delete.
5325 (gdbscm_wrap): New.
5326 * guile/scm-frame.c (gdbscm_frame_read_register): Use xfree
5327 directly instead of a cleanup.
5328 * guile/scm-math.c (vlscm_unop_gdbthrow): New, factored out from ...
5329 (vlscm_unop): ... this. Reimplement using gdbscm_wrap.
5330 (vlscm_binop_gdbthrow): New, factored out from ...
5331 (vlscm_binop): ... this. Reimplement using gdbscm_wrap.
5332 (vlscm_rich_compare): Use gdbscm_wrap.
5333 * guile/scm-symbol.c (gdbscm_lookup_symbol): Use xfree directly
5334 instead of a cleanup.
5335 (gdbscm_lookup_global_symbol): Use xfree directly instead of a
5336 cleanup.
5337 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
5338 Use xfree directly instead of a cleanup.
5339 * guile/scm-value.c (gdbscm_make_value, gdbscm_make_lazy_value):
5340 Adjust to use gdbscm_wrap and scoped_value_mark.
5341 (gdbscm_value_optimized_out_p): Adjust to use gdbscm_wrap.
5342 (gdbscm_value_address, gdbscm_value_dereference)
5343 (gdbscm_value_referenced_value): Adjust to use gdbscm_wrap and
5344 scoped_value_mark.
5345 (gdbscm_value_dynamic_type): Use scoped_value_mark.
5346 (vlscm_do_cast, gdbscm_value_field): Adjust to use gdbscm_wrap and
5347 scoped_value_mark.
5348 (gdbscm_value_subscript, gdbscm_value_call): Adjust to use
5349 gdbscm_wrap and scoped_value_mark.
5350 (gdbscm_value_to_string): Use xfree directly instead of a
5351 cleanup. Move 'buffer' unique_ptr to TRY scope.
5352 (gdbscm_value_to_lazy_string): Use xfree directly instead of a
5353 cleanup. Move 'buffer' unique_ptr to TRY scope. Use
5354 scoped_value_mark.
5355 (gdbscm_value_fetch_lazy_x): Use gdbscm_wrap.
5356 (gdbscm_parse_and_eval): Adjust to use gdbscm_wrap and
5357 scoped_value_mark.
5358 (gdbscm_history_ref, gdbscm_history_append_x): Adjust to use
5359 gdbscm_wrap.
5360
42dc7699
TV
53612018-07-18 Tom de Vries <tdevries@suse.de>
5362
5363 * findvar.c (default_read_var_value): Also resolve dynamic type for
5364 LOC_OPTIMIZED_OUT vars.
5365
6592ceed
MR
53662018-07-18 Maciej W. Rozycki <macro@mips.com>
5367
5368 * mips-tdep.c (micromips_next_pc): Add SYSCALL instruction
5369 decoding.
5370
c6c6149a
TT
53712018-07-17 Tom Tromey <tom@tromey.com>
5372
5373 * guile/scm-param.c (pascm_set_func, pascm_show_func)
5374 (compute_enum_list, pascm_set_param_value_x)
5375 (gdbscm_parameter_value): Update.
5376 * guile/guile-internal.h (gdbscm_scm_to_string): Update.
5377 (gdbscm_scm_to_host_string): Update.
5378 * guile/scm-math.c (vlscm_convert_typed_value_from_scheme):
5379 Update.
5380 * guile/scm-cmd.c (cmdscm_add_completion): Update.
5381 * guile/scm-pretty-print.c (ppscm_print_string_repr): Update.
5382 * guile/scm-string.c (gdbscm_scm_to_string): Return
5383 unique_xmalloc_ptr.
5384 (gdbscm_scm_to_host_string): Likewise.
5385
a1a31cb8
TT
53862018-07-17 Tom Tromey <tom@tromey.com>
5387
5388 * guile/guile.c (gdbscm_eval_from_control_command): Update.
5389 * guile/guile-internal.h (gdbscm_safe_eval_string): Update.
5390 * guile/scm-objfile.c (gdbscm_execute_objfile_script): Update.
5391 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Return
5392 unique_xmalloc_ptr.
5393
15bf3002
TT
53942018-07-17 Tom Tromey <tom@tromey.com>
5395
5396 * guile/scm-param.c (pascm_signal_setshow_error): Update.
5397 * guile/guile-internal.h (gdbscm_exception_message_to_string):
5398 Update.
5399 * guile/scm-cmd.c (cmdscm_function): Update.
5400 * guile/scm-pretty-print.c
5401 (ppscm_print_exception_unless_memory_error): Update.
5402 * guile/scm-exception.c (gdbscm_exception_message_to_string):
5403 Return unique_xmalloc_ptr.
5404
7eb1a66c
TT
54052018-07-17 Tom Tromey <tom@tromey.com>
5406
5407 * guile/scm-pretty-print.c (ppscm_make_pp_type_error_exception):
5408 Use string_printf.
5409
ce73f310
JW
54102018-07-17 Jim Wilson <jimw@sifive.com>
5411
27724bad
JW
5412 * riscv-tdep.c (riscv_has_feature): Delete comment that refers to
5413 set_gdbarch_decr_pc_after_break. Call riscv_read_misa_reg always.
5414 (riscv_gdbarch_init): Delete local has_compressed_isa. Delete now
5415 unecessary braces after EF_RISCV_RVC test. Delete call to
5416 set_gdbarch_decr_pc_after_break.
5417
ce73f310
JW
5418 * riscv-tdep.h (DECLARE_CSR): Use RISCV_FIRST_CSR_REGNUM instead of
5419 RISCV_LAST_FP_REGNUM + 1.
5420 (RSICV_CSR_LEGACY_MISA_REGNUM): Add RISCV_FIRST_CSR_REGNUM.
5421
056dec39
TT
54222018-07-17 Tom Tromey <tom@tromey.com>
5423
5424 * configure.ac: Remove --disable-gdbcli.
5425 * configure: Rebuild.
5426 * Makefile.in (SUBDIR_CLI_DEPS, SUBDIR_CLI_LDFLAGS)
5427 (SUBDIR_CLI_CFLAGS): Remove.
5428 (SFILES): Use SUBDIR_CLI_SRCS.
5429 (COMMON_OBS): Use SUBDIR_CLI_OBS.
5430
4735f0ed
TT
54312018-07-17 Tom Tromey <tom@tromey.com>
5432
5433 PR gdb/18624:
5434 * coffread.c (coff_symtab_read): Use scoped_free_pendings.
5435
117a0e99
JW
54362018-07-16 Jim Wilson <jimw@sifive.com>
5437
5438 * riscv-tdep.c (riscv_gdbarch_init): Call gdbarch_init_osabi.
5439
8a67aaa8
SM
54402018-07-16 Simon Marchi <simon.marchi@ericsson.com>
5441
5442 * ia64-libunwind-tdep.c (libunwind_frame_cache): Remove unused
5443 variable.
5444 (libunwind_frame_sniffer): Likewise.
5445 (libunwind_frame_prev_register): Likewise.
5446 (libunwind_sigtramp_frame_sniffer): Likewise.
5447 * ia64-tdep.c (ia64_access_reg): Likewise.
5448 (ia64_access_rse_reg): Likewise.
5449 (ia64_libunwind_sigtramp_frame_this_id): Likewise.
5450 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Likewise.
5451
ec74dcd8
SM
54522018-07-16 Simon Marchi <simon.marchi@ericsson.com>
5453
5454 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Add cast.
5455
a700e753
SM
54562018-07-16 Simon Marchi <simon.marchi@ericsson.com>
5457
5458 * remote-sim.c (gdbsim_target::close,
5459 gdbsim_target::mourn_inferior): Remove unused variables.
5460
8b411ff8
SM
54612018-07-16 Simon Marchi <simon.marchi@polymtl.ca>
5462
5463 * ia64-tdep.c (ktab_buf): New global.
5464 (getunwind_table): Return a gdb::optional<gdb::byte_vector>.
5465 (get_kernel_table): Adjust.
5466
edb0470b
TT
54672018-07-16 Tom Tromey <tom@tromey.com>
5468
5469 * xcoffread.c (read_xcoff_symtab): Use outermost_context_p.
5470 * dwarf2read.c (using_directives, new_symbol): Use
5471 outermost_context_p.
5472 * dbxread.c (process_one_symbol): Use outermost_context_p.
5473 * coffread.c (coff_symtab_read): Use outermost_context_p.
5474
6cccc9a8
TT
54752018-07-16 Tom Tromey <tom@tromey.com>
5476
5477 * dwarf2read.c (using_directives, read_func_scope)
5478 (read_lexical_block_scope): Update.
5479 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
5480 * buildsym.h (local_using_directives, global_using_directives):
5481 Don't declare.
5482 (get_local_using_directives, set_local_using_directives)
5483 (get_global_using_directives): Declare.
5484 * buildsym.c (struct buildsym_compunit) <m_local_using_directives,
5485 m_global_using_directives>: New members.
5486 (finish_block_internal, prepare_for_building)
5487 (reset_symtab_globals, end_symtab_get_static_block)
5488 (push_context): Update.
5489 (get_local_using_directives, set_local_using_directives)
5490 (get_global_using_directives): New functions.
5491 (buildsym_init): Update.
5492
652788a7
TT
54932018-07-16 Tom Tromey <tom@tromey.com>
5494
5495 * xcoffread.c (xcoff_initial_scan): Don't call
5496 free_pending_blocks.
5497 * dbxread.c (dbx_symfile_read): Don't call free_pending_blocks.
5498 * buildsym.h (class scoped_free_pendings): Add constructor.
5499 (free_pending_blocks): Don't declare.
5500 * buildsym.c (scoped_free_pendings::scoped_free_pendings): New.
5501 (free_pending_blocks): Now static.
5502
8419ee53
TT
55032018-07-16 Tom Tromey <tom@tromey.com>
5504
5505 * buildsym.h (push_subfile, pop_subfile): Update declarations.
5506 * buildsym.c (struct buildsym_compunit) <m_subfile_stack>: New
5507 member.
5508 (struct subfile_stack): Remove.
5509 (subfile_stack): Remove.
5510 (push_subfile, pop_subfile, buildsym_init): Update.
5511
ccdac490
TT
55122018-07-16 Tom Tromey <tom@tromey.com>
5513
5514 * buildsym.c (push_subfile): Use gdb_assert.
5515 (pop_subfile): Use gdb_assert.
5516
43130d6f
TT
55172018-07-16 Tom Tromey <tom@tromey.com>
5518
5519 * buildsym.h (merge_symbol_lists): Remove.
5520 * buildsym.c (merge_symbol_lists): Remove.
5521
77d6f1aa
TT
55222018-07-16 Tom Tromey <tom@tromey.com>
5523
5524 * stabsread.c (scan_file_globals): Update comment.
5525 * stabsread.h (scan_file_globals): Move from buildsym.h.
5526 * buildsym.h (scan_file_globals): Move to stabsread.h.
5527
2c722d18
TT
55282018-07-16 Tom Tromey <tom@tromey.com>
5529
5530 * xcoffread.c (xcoff_new_init): Update.
5531 * mipsread.c (mipscoff_new_init): Update.
5532 * mdebugread.c (mdebug_build_psymtabs): Update.
5533 * elfread.c (elf_new_init): Update.
5534 * dbxread.c (dbx_new_init, coffstab_build_psymtabs)
5535 (elfstab_build_psymtabs, stabsect_build_psymtabs): Update.
5536 * buildsym.h (buildsym_new_init): Don't declare.
5537 * buildsym.c (buildsym_new_init): Remove.
5538
5985ac61
TT
55392018-07-16 Tom Tromey <tom@tromey.com>
5540
5541 * stabsread.h (within_function): Move from buildsym.h.
5542 * stabsread.c (start_stabs): Clear within_function.
5543 * coffread.c (coff_start_symtab): Clear within_function.
5544 * buildsym.h (within_function): Move to stabsread.h.
5545 * buildsym.c (prepare_for_building): Update.
5546
6b84eeb2
TT
55472018-07-16 Tom Tromey <tom@tromey.com>
5548
5549 * stabsread.h (processing_gcc_compilation): Move from buildsym.h.
5550 * dwarf2read.c (dwarf2_start_symtab): Don't set
5551 processing_gcc_compilation.
5552 * buildsym.h (processing_gcc_compilation): Move to stabsread.h.
5553
2150c3ef
TT
55542018-07-16 Tom Tromey <tom@tromey.com>
5555
5556 * stabsread.h (HASHSIZE, hashname, symnum, next_symbol_text)
5557 (next_symbol_text_func): Move from buildsym.h.
5558 * stabsread.c (hashname): Move from buildsym.c.
5559 * buildsym.h (HASHSIZE, symnum, next_symbol_text)
5560 (next_symbol_text_func, hashname): Move to stabsread.h.
5561 * buildsym.c: Don't include bcache.h
5562 (hashname): Move to stasbread.c.
5563
0ec44fc0
TT
55642018-07-16 Tom Tromey <tom@tromey.com>
5565
5566 * buildsym.h (context_stack_size): Don't declare.
5567 * buildsym.c (context_stack_size): New global.
5568
81cc346d
TT
55692018-07-16 Tom Tromey <tom@tromey.com>
5570
5571 * dbxread.c (processing_acc_compilation): New global.
5572 * buildsym.h (processing_acc_compilation): Don't declare.
5573
2c99ee5c
TT
55742018-07-16 Tom Tromey <tom@tromey.com>
5575
5576 * xcoffread.c (aix_process_linenos, complete_symtab): Update.
5577 * dbxread.c (read_ofile_symtab): Update.
5578 * coffread.c (coff_start_symtab, coff_end_symtab): Update.
5579 * buildsym.h (last_source_start_addr): Remove.
5580 (set_last_source_start_addr, get_last_source_start_addr):
5581 Declare.
5582 * buildsym.c (buildsym_compunit::buildsym_compunit): Add last_addr
5583 parameter.
5584 (struct buildsym_compunit) <m_last_source_start_addr>: New
5585 member.
5586 (prepare_for_building): Remove start_addr parameter.
5587 (start_symtab, restart_symtab, end_symtab_get_static_block)
5588 (end_symtab_with_blockvector): Update.
5589 (set_last_source_start_addr, get_last_source_start_addr): New
5590 functions.
5591
530fedbc
TT
55922018-07-16 Tom Tromey <tom@tromey.com>
5593
5594 * buildsym.c (struct buildsym_compunit) <m_have_line_numbers>: New
5595 member.
5596 (have_line_numbers): Remove.
5597 (record_line, prepare_for_building, end_symtab_get_static_block)
5598 (augment_type_symtab): Update.
5599
6a976300
TT
56002018-07-16 Tom Tromey <tom@tromey.com>
5601
5602 * buildsym.c (~buildsym_compunit): Free the macro table.
5603 (struct buildsym_compunit) <get_macro_table, release_macros>: New
5604 methods.
5605 <m_pending_macros>: New member.
5606 (pending_macros): Remove.
5607 (~scoped_free_pendings, get_macro_table, prepare_for_building)
5608 (reset_symtab_globals, end_symtab_get_static_block)
5609 (end_symtab_with_blockvector, augment_type_symtab)
5610 (buildsym_init): Update.
5611
c0015d44
TT
56122018-07-16 Tom Tromey <tom@tromey.com>
5613
5614 * buildsym.c (buildsym_compunit::buildsym_compunit): Add name
5615 parameter.
5616 (buildsym_compunit::set_last_source_file): New method.
5617 <m_last_source_file>: New member.
5618 (prepare_for_building): Remove "name" parameter.
5619 (start_symtab, restart_symtab, reset_symtab_globals): Update.
5620 (last_source_file): Remove.
5621 (set_last_source_file, get_last_source_file): Update.
5622
e62cca7c
TT
56232018-07-16 Tom Tromey <tom@tromey.com>
5624
5625 * buildsym.c (prepare_for_building): Add assert.
5626
905eb0e2
TT
56272018-07-16 Tom Tromey <tom@tromey.com>
5628
5629 * buildsym.c (~buildsym_compunit): Update.
5630 (struct buildsym_compunit) <comp_unit>: Now a unique_xmalloc_ptr.
5631 (start_subfile, patch_subfile_names)
5632 (end_symtab_with_blockvector): Update.
5633
b248663f
TT
56342018-07-16 Tom Tromey <tom@tromey.com>
5635
5636 * buildsym.c (struct buildsym_compunit): Add constructor,
5637 destructor, initializers.
5638 (start_buildsym_compunit): Remove.
5639 (free_buildsym_compunit): Use "delete".
5640 (start_symtab, restart_symtab): Use "new".
5641
ff27d073
SM
56422018-07-13 Simon Marchi <simon.marchi@polymtl.ca>
5643
5644 * symfile.c (set_objfile_default_section_offset): Remove struct
5645 keyword.
5646
6a15ecf5
SH
56472018-07-14 Stafford Horne <shorne@gmail.com>
5648
5649 * (Responsible Maintainers): Add myself as or1k maintainer.
5650
027a4c30
TT
56512018-07-13 Tom Tromey <tom@tromey.com>
5652
5653 * symfile.c (set_objfile_default_section_offset): Use extra braces
5654 around initializer.
5655
5c1eda30
AA
56562018-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5657
5658 * s390-tdep.c (s390_displaced_step_fixup): Adjust PC for a
5659 non-branching basr.
5660
bc7b042b
PW
56612018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5662
5663 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
5664 unittests/cli-utils-selftests.c
5665 * unittests/cli-utils-selftests.c: New file.
5666
a14c4daa
PW
56672018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5668
5669 * NEWS: Mention new commands. Mention change to 'thread apply'.
5670
1fe75df7
PW
56712018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5672
5673 * thread.c (thr_try_catch_cmd): New function.
5674 (thread_apply_all_command): Handle qcs flags.
5675 (thread_apply_command): Handle qcs flags.
5676 (taas_command): New function.
5677 (tfaas_command): New function.
5678 (_initialize_thread): Update to setup the new commands 'taas
5679 and 'tfaas'. Change doc string for 'thread apply'.
5680
6a70eb7d
PW
56812018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5682
5683 * stack.c: (trailing_outermost_frame): New function, mostly
5684 extracted from backtrace_command_1.
5685 (leading_innermost_frame): New function.
5686 (backtrace_command_1): Update to call trailing_outermost_frame.
5687 (frame_apply_command_count): New function.
5688 (frame_apply_level_command): New function.
5689 (frame_apply_all_command): New function.
5690 (frame_apply_command): New function.
5691 (faas_command): New function.
5692 (frame_cmd_list): New variable.
5693 (_initialize_stack): Update to setup the new commands 'frame apply'
5694 and 'faas'.
5695
529c08b2
PW
56962018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5697
5698 * cli-utils.c (number_or_range_parser::get_number): Only handle
5699 numbers or convenience var as numbers.
5700 (parse_flags): New function.
5701 (parse_flags_qcs): New function.
5702 (number_or_range_parser::finished): Ensure parsing end is detected
5703 before end of string.
5704 * cli-utils.h (parse_flags): New function.
5705 (parse_flags_qcs): New function.
5706 (number_or_range_parser): Remove m_finished bool.
5707 (number_or_range_parser::skip_range): Set m_in_range to false.
5708
64b58472
SDJ
57092018-07-12 Sergio Durigan Junior <sergiodj@redhat.com>
5710
5711 * ser-tcp.c (try_connect): Declare 'ioarg' as 'u_long' if building
5712 on Windows.
5713
c7ab0aef
SDJ
57142018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
5715 Jan Kratochvil <jan.kratochvil@redhat.com>
5716 Paul Fertser <fercerpav@gmail.com>
5717 Tsutomu Seki <sekiriki@gmail.com>
5718 Pedro Alves <palves@redhat.com>
5719
5720 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
5721 'unittests/parse-connection-spec-selftests.c'.
5722 (COMMON_SFILES): Add 'common/netstuff.c'.
5723 (HFILES_NO_SRCDIR): Add 'common/netstuff.h'.
5724 * NEWS (Changes since GDB 8.2): Mention IPv6 support.
5725 * common/netstuff.c: New file.
5726 * common/netstuff.h: New file.
5727 * ser-tcp.c: Include 'netstuff.h' and 'wspiapi.h'.
5728 (wait_for_connect): Update comment. New parameter
5729 'gdb::optional<int> sock' instead of 'struct serial *scb'.
5730 Use 'sock' directly instead of 'scb->fd'.
5731 (try_connect): New function, with code from 'net_open'.
5732 (net_open): Rewrite main loop to deal with multiple
5733 sockets/addresses. Handle IPv6-style hostnames; implement
5734 support for IPv6 connections.
5735 * unittests/parse-connection-spec-selftests.c: New file.
5736
4c7333b3
PA
57372018-07-11 Pedro Alves <palves@redhat.com>
5738
5739 PR gdb/23377
5740 * remote.c (remote_target::remote_detach_pid): Call
5741 set_current_process.
5742
a6f88f6e
PA
57432018-07-11 Pedro Alves <palves@redhat.com>
5744
5745 * h8300-tdep.c (h8300_gdbarch_init): Remove
5746 set_gdbarch_ecoff_reg_to_regnum calls.
5747
16ff70dd
SDJ
57482018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
5749
5750 PR c++/23373
5751 * c-typeprint.c (c_type_print_base_struct_union): Don't print
5752 offsets/sizes for static members of a class/struct.
5753
12863263
AH
57542018-07-11 Alan Hayward <alan.hayward@arm.com>
5755
5756 * target-descriptions.c (tdesc_register_bitsize): Rename.
5757 * target-descriptions.h (tdesc_register_bitsize): Likewise.
5758 * rs6000-tdep.c (rs6000_gdbarch_init): Use new name.
5759 * aarch64-tdep.c (aarch64_get_tdesc_vq): Convert size.
5760
1123588c
TT
57612018-07-10 Tom Tromey <tom@tromey.com>
5762
5763 * breakpoint.c (moribund_locations): Now static and a
5764 std::vector.
5765 (breakpoint_init_inferior, moribund_breakpoint_here_p)
5766 (build_bpstat_chain, update_global_location_list)
5767 (breakpoint_retire_moribund): Update.
5768 * breakpoint.h (bp_location_p): Remove typedef. Don't declare
5769 VEC.
5770
8c49aa89
AB
57712018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
5772
5773 * riscv-tdep.c (riscv_is_fp_regno_p): New function.
5774 (riscv_register_reggroup_p): Use new function, remove unneeded
5775 parenthesis.
5776 (riscv_push_dummy_call): Extend assert to compare against xlen or
5777 flen based on register type.
5778
42ecac17
AB
57792018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
5780
5781 * riscv-tdep.c (riscv_print_arg_location): Use TYPE_SAFE_NAME.
5782
055303e2
AB
57832018-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5784
5785 * remote.c (show_hardware_watchpoint_limit): New function.
5786 (show_hardware_watchpoint_length_limit): New function.
5787 (show_hardware_breakpoint_limit): New function.
5788 (_initialize_remote): Use add_setshow_zuinteger_unlimited_cmd
5789 where appropriate, update help text.
5790
8fd32c1c
TT
57912018-07-09 Tom Tromey <tom@tromey.com>
5792
5793 * Makefile.in (CDEPS): Don't mention XM_CDEPS.
5794 (CLIBS): Don't mention NAT_CLIBS.
5795
31278b51
TT
57962018-07-09 Tom Tromey <tom@tromey.com>
5797
5798 * Makefile.in (ADD_FILES, ADD_DEPS): Remove.
5799 (LIBGDB_OBS, clean mostlyclean): Update.
5800 (gdb$(EXEEXT), insight$(EXEEXT)): Update.
5801
e5fd1493
TT
58022018-07-09 Tom Tromey <tom@tromey.com>
5803
5804 * Makefile.in (%.c: %.y): Use ECHO_YACC.
5805 (%.c: %.l): Use ECHO_LEX. Just fail if flex not available.
5806 * silent-rules.mk (ECHO_YACC, ECHO_LEX): New variables.
5807
981e0c0c
TT
58082018-07-09 Tom Tromey <tom@tromey.com>
5809
5810 * Makefile.in (ALLDEPFILES): Remove exec.c.
5811 (COMMON_OBS): Remove exec.o.
5812 (COMMON_SFILES): Add exec.c.
5813
14ccceb2
TT
58142018-07-09 Tom Tromey <tom@tromey.com>
5815
5816 * Makefile.in (LINT, LINTFLAGS, LINTFILES, lint): Remove.
5817
5d3c3a68
TT
58182018-07-09 Tom Tromey <tom@tromey.com>
5819
5820 * Makefile.in (clean mostlyclean): Remove stamp-version.
5821 (version.c): Depend on stamp-version.
5822 (stamp-version): New rule, from version.c rule.
5823
1998086d
TT
58242018-07-09 Tom Tromey <tom@tromey.com>
5825
5826 * Makefile.in (init.c): Depend on stamp-init.
5827 (stamp-init): New rule, from init.c rule.
5828 (clean mostlyclean): Remove stamp-init.
5829
4c754949
TT
58302018-07-09 Tom Tromey <tom@tromey.com>
5831
5832 * Makefile.in (INIT_FILES): Remove CONFIG_SRCS,
5833 SUBDIR_GCC_COMPILE_SRCS.
5834
6497f1dd
TT
58352018-07-09 Tom Tromey <tom@tromey.com>
5836
5837 * Makefile.in (init.c): Remove some unused sed rules.
5838
97a34db9
TT
58392018-07-09 Tom Tromey <tom@tromey.com>
5840
5841 * Makefile.in (TSOBS): Remove.
5842 (INIT_FILES): Update.
5843 (LIBGDB_OBS): Update.
5844 (COMMON_SFILES): Add inflow.c.
5845 (SFILES): Remove inflow.c.
5846
25289ac1
JK
58472018-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
5848
5849 * contrib/gdb-add-index.sh ($dwarf5): New, use it.
5850
e83f4d97
SM
58512018-07-07 Simon Marchi <simon.marchi@polymtl.ca>
5852
4869c585
SM
5853 * ia64-libunwind-tdep.c (get_reg_name, get_fpreg_name,
5854 get_saveloc_name, is_signal_frame_name, step_name,
5855 init_remote_name, create_addr_space_name,
5856 destroy_addr_space_name, search_unwind_table_name,
5857 find_dyn_list_name): Constify.
e83f4d97 5858
6821842f
SM
58592018-07-05 Simon Marchi <simon.marchi@polymtl.ca>
5860
5861 * darwin-nat.c (darwin_pthread_kill): New function.
5862 (darwin_resume_thread): Use darwin_pthread_kill.
5863
c530603c
TV
58642018-07-05 Tom de Vries <tdevries@suse.de>
5865
5866 * macroexp.c (macro_buffer) <operator=>: New member function.
5867
a7d0f0f0
TT
58682018-07-04 Tom Tromey <tom@tromey.com>
5869
5870 * darwin-nat.c (darwin_attach_pid): Use exit_inferior.
5871
6242c6a6
SM
58722018-07-04 Simon Marchi <simon.marchi@polymtl.ca>
5873
5874 * common/common-defs.h (HAVE_USEFUL_SBRK): Define.
5875 * main.c: Use HAVE_USEFUL_SBRK instead of HAVE_SBRK.
5876 * maint.c: Likewise.
5877 * top.c: Likewise.
5878
4e5b2f89
JB
58792018-07-04 Joel Brobecker <brobecker@adacore.com>
5880
5881 * NEWS: Create a new section for the next release branch.
5882 Rename the section of the current branch, now that it has
5883 been cut.
5884
538ccc4a
JB
58852018-07-04 Joel Brobecker <brobecker@adacore.com>
5886
5887 GDB 8.2 branch created (1b919490e8ba30bf1d6941df0ed112b0e557017e):
5888 * version.in: Bump version to 8.2.50.DATE-git.
5889
1b919490
VB
58902018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
5891 Pedro Alves <palves@redhat.com>
5892
5893 * linux-nat.c (linux_init_ptrace): Rename to ...
5894 (linux_init_ptrace_procfs): ... this. Call
5895 linux_proc_init_warnings.
5896 (linux_nat_target::post_attach)
5897 (linux_nat_target::post_startup_inferior): Adjust.
5898 * nat/linux-procfs.c (linux_proc_init_warnings): Define function.
5899 * nat/linux-procfs.h (linux_proc_init_warnings): Declare function.
5900
1ea5da02
TV
59012018-07-04 Tom de Vries <tdevries@suse.de>
5902
5903 * dwarf2read.c (error_check_comp_unit_head): Move dwarf version
5904 check ...
5905 (read_comp_unit_head): ... here.
5906
f51e0e20
TT
59072018-07-03 Tom Tromey <tom@tromey.com>
5908
5909 * tracepoint.c (process_tracepoint_on_disconnect, start_tracing)
5910 (stop_tracing, tstatus_command)
5911 (find_matching_tracepoint_location, merge_uploaded_tracepoints)
5912 (print_one_static_tracepoint_marker): Update.
5913 * breakpoint.c (static_tracepoints_here, all_tracepoints): Return
5914 std::vector.
5915 * breakpoint.h (breakpoint_p): Remove typedef. Don't declare
5916 VEC.
5917 (all_tracepoints, static_tracepoints_here): Return std::vector.
5918
d7e15655
TT
59192018-07-03 Tom Tromey <tom@tromey.com>
5920
5921 * common/ptid.c (ptid_equal): Remove.
5922 * common/ptid.h (ptid_equal): Don't declare.
5923 * ada-tasks.c: Update.
5924 * breakpoint.c: Update.
5925 * common/agent.c: Update.
5926 * corelow.c: Update.
5927 * darwin-nat-info.c: Update.
5928 * darwin-nat.c: Update.
5929 * dcache.c: Update.
5930 * dtrace-probe.c: Update.
5931 * dummy-frame.c: Update.
5932 * fbsd-nat.c: Update.
5933 * frame.c: Update.
5934 * gdbthread.h: Update.
5935 * gnu-nat.c: Update.
5936 * go32-nat.c: Update.
5937 * inf-loop.c: Update.
5938 * inf-ptrace.c: Update.
5939 * infcall.c: Update.
5940 * infcmd.c: Update.
5941 * inflow.c: Update.
5942 * infrun.c: Update.
5943 * linux-fork.c: Update.
5944 * linux-nat.c: Update.
5945 * linux-thread-db.c: Update.
5946 * mi/mi-cmd-var.c: Update.
5947 * mi/mi-interp.c: Update.
5948 * mi/mi-main.c: Update.
5949 * nto-procfs.c: Update.
5950 * ppc-linux-tdep.c: Update.
5951 * procfs.c: Update.
5952 * python/py-inferior.c: Update.
5953 * python/py-record-btrace.c: Update.
5954 * python/py-record.c: Update.
5955 * ravenscar-thread.c: Update.
5956 * regcache.c: Update.
5957 * remote-sim.c: Update.
5958 * remote.c: Update.
5959 * sol-thread.c: Update.
5960 * solib.c: Update.
5961 * target.c: Update.
5962 * tui/tui-stack.c: Update.
5963 * varobj.c: Update.
5964 * windows-nat.c: Update.
5965 * windows-tdep.c: Update.
5966
26a57c92
TT
59672018-07-03 Tom Tromey <tom@tromey.com>
5968
5969 * common/ptid.c (ptid_match): Remove.
5970 * common/ptid.h (ptid_match): Don't declare.
5971 * fbsd-nat.c: Update.
5972 * infcmd.c: Update.
5973 * infrun.c: Update.
5974 * linux-nat.c: Update.
5975 * record-btrace.c: Update.
5976 * regcache.c: Update.
5977 * remote.c: Update.
5978
d2a107e3
TT
59792018-07-03 Tom Tromey <tom@tromey.com>
5980
5981 * common/ptid.c (ptid_tid_p): Remove.
5982 * common/ptid.h (ptid_tid_p): Don't declare.
5983 * sol-thread.c: Update.
5984
15a9e13e
TT
59852018-07-03 Tom Tromey <tom@tromey.com>
5986
5987 * common/ptid.c (ptid_lwp_p): Remove.
5988 * common/ptid.h (ptid_lwp_p): Don't declare.
5989 * fbsd-nat.c: Update.
5990 * linux-nat.c: Update.
5991 * nat/linux-procfs.c: Update.
5992 * nat/x86-linux-dregs.c: Update.
5993 * sol-thread.c: Update.
5994
0e998d96
TT
59952018-07-03 Tom Tromey <tom@tromey.com>
5996
5997 * common/ptid.c (ptid_is_pid): Remove.
5998 * common/ptid.h (ptid_is_pid): Don't declare.
5999 * infrun.c: Update.
6000 * linux-nat.c: Update.
6001 * mi/mi-interp.c: Update.
6002 * remote.c: Update.
6003 * thread.c: Update.
6004
cc6bcb54
TT
60052018-07-03 Tom Tromey <tom@tromey.com>
6006
6007 * common/ptid.c (ptid_get_tid): Remove.
6008 * common/ptid.h (ptid_get_tid): Don't declare.
6009 * ada-tasks.c: Update.
6010 * aix-thread.c: Update.
6011 * bsd-uthread.c: Update.
6012 * darwin-nat.c: Update.
6013 * fbsd-nat.c: Update.
6014 * i386-darwin-nat.c: Update.
6015 * infrun.c: Update.
6016 * linux-tdep.c: Update.
6017 * nto-procfs.c: Update.
6018 * ppc-ravenscar-thread.c: Update.
6019 * python/py-infthread.c: Update.
6020 * ravenscar-thread.c: Update.
6021 * sol-thread.c: Update.
6022 * sparc-ravenscar-thread.c: Update.
6023 * windows-nat.c: Update.
6024
e38504b3
TT
60252018-07-03 Tom Tromey <tom@tromey.com>
6026
6027 * common/ptid.c (ptid_get_lwp): Remove.
6028 * common/ptid.h (ptid_get_lwp): Don't declare.
6029 * aarch64-linux-nat.c: Update.
6030 * ada-tasks.c: Update.
6031 * aix-thread.c: Update.
6032 * amd64-linux-nat.c: Update.
6033 * arm-linux-nat.c: Update.
6034 * corelow.c: Update.
6035 * fbsd-nat.c: Update.
6036 * fbsd-tdep.c: Update.
6037 * gnu-nat.c: Update.
6038 * i386-cygwin-tdep.c: Update.
6039 * i386-gnu-nat.c: Update.
6040 * i386-linux-nat.c: Update.
6041 * ia64-linux-nat.c: Update.
6042 * inf-ptrace.c: Update.
6043 * infrun.c: Update.
6044 * linux-fork.c: Update.
6045 * linux-nat.c: Update.
6046 * linux-tdep.c: Update.
6047 * linux-thread-db.c: Update.
6048 * mips-linux-nat.c: Update.
6049 * nat/aarch64-linux-hw-point.c: Update.
6050 * nat/aarch64-linux.c: Update.
6051 * nat/linux-btrace.c: Update.
6052 * nat/linux-osdata.c: Update.
6053 * nat/linux-procfs.c: Update.
6054 * nat/x86-linux-dregs.c: Update.
6055 * obsd-nat.c: Update.
6056 * ppc-fbsd-nat.c: Update.
6057 * ppc-linux-nat.c: Update.
6058 * procfs.c: Update.
6059 * python/py-infthread.c: Update.
6060 * ravenscar-thread.c: Update.
6061 * remote.c: Update.
6062 * s390-linux-nat.c: Update.
6063 * sol-thread.c: Update.
6064 * sol2-tdep.c: Update.
6065 * spu-linux-nat.c: Update.
6066 * x86-linux-nat.c: Update.
6067 * xtensa-linux-nat.c: Update.
6068
e99b03dc
TT
60692018-07-03 Tom Tromey <tom@tromey.com>
6070
6071 * common/ptid.c (ptid_get_pid): Remove.
6072 * common/ptid.h (ptid_get_pid): Don't declare.
6073 * aarch64-linux-nat.c: Update.
6074 * ada-lang.c: Update.
6075 * aix-thread.c: Update.
6076 * alpha-bsd-nat.c: Update.
6077 * amd64-fbsd-nat.c: Update.
6078 * amd64-linux-nat.c: Update.
6079 * arm-linux-nat.c: Update.
6080 * arm-nbsd-nat.c: Update.
6081 * auxv.c: Update.
6082 * break-catch-syscall.c: Update.
6083 * breakpoint.c: Update.
6084 * bsd-uthread.c: Update.
6085 * corelow.c: Update.
6086 * ctf.c: Update.
6087 * darwin-nat.c: Update.
6088 * fbsd-nat.c: Update.
6089 * fbsd-tdep.c: Update.
6090 * gcore.c: Update.
6091 * gnu-nat.c: Update.
6092 * hppa-nbsd-nat.c: Update.
6093 * hppa-obsd-nat.c: Update.
6094 * i386-fbsd-nat.c: Update.
6095 * ia64-linux-nat.c: Update.
6096 * inf-ptrace.c: Update.
6097 * infcmd.c: Update.
6098 * inferior.c: Update.
6099 * inferior.h: Update.
6100 * inflow.c: Update.
6101 * infrun.c: Update.
6102 * linux-fork.c: Update.
6103 * linux-nat.c: Update.
6104 * linux-tdep.c: Update.
6105 * linux-thread-db.c: Update.
6106 * m68k-bsd-nat.c: Update.
6107 * mi/mi-interp.c: Update.
6108 * mi/mi-main.c: Update.
6109 * mips-linux-nat.c: Update.
6110 * mips-nbsd-nat.c: Update.
6111 * mips64-obsd-nat.c: Update.
6112 * nat/aarch64-linux-hw-point.c: Update.
6113 * nat/aarch64-linux.c: Update.
6114 * nat/linux-btrace.c: Update.
6115 * nat/linux-osdata.c: Update.
6116 * nat/linux-procfs.c: Update.
6117 * nat/x86-linux-dregs.c: Update.
6118 * nto-procfs.c: Update.
6119 * obsd-nat.c: Update.
6120 * ppc-linux-nat.c: Update.
6121 * ppc-nbsd-nat.c: Update.
6122 * ppc-obsd-nat.c: Update.
6123 * proc-service.c: Update.
6124 * procfs.c: Update.
6125 * python/py-inferior.c: Update.
6126 * python/py-infthread.c: Update.
6127 * ravenscar-thread.c: Update.
6128 * record.c: Update.
6129 * remote-sim.c: Update.
6130 * remote.c: Update.
6131 * rs6000-nat.c: Update.
6132 * s390-linux-nat.c: Update.
6133 * sh-nbsd-nat.c: Update.
6134 * sol-thread.c: Update.
6135 * sparc-nat.c: Update.
6136 * sparc64-tdep.c: Update.
6137 * spu-linux-nat.c: Update.
6138 * spu-tdep.c: Update.
6139 * target-debug.h: Update.
6140 * target.c: Update.
6141 * thread.c: Update.
6142 * tid-parse.c: Update.
6143 * tracefile-tfile.c: Update.
6144 * vax-bsd-nat.c: Update.
6145 * windows-nat.c: Update.
6146 * x86-linux-nat.c: Update.
6147 * x86-nat.c: Update.
6148
f2907e49
TT
61492018-07-03 Tom Tromey <tom@tromey.com>
6150
6151 * common/ptid.c (pid_to_ptid): Remove.
6152 * common/ptid.h (pid_to_ptid): Don't declare.
6153 * aix-thread.c: Update.
6154 * arm-linux-nat.c: Update.
6155 * common/ptid.c: Update.
6156 * common/ptid.h: Update.
6157 * corelow.c: Update.
6158 * ctf.c: Update.
6159 * darwin-nat.c: Update.
6160 * fbsd-nat.c: Update.
6161 * fork-child.c: Update.
6162 * gnu-nat.c: Update.
6163 * go32-nat.c: Update.
6164 * inf-ptrace.c: Update.
6165 * infcmd.c: Update.
6166 * inferior.c: Update.
6167 * infrun.c: Update.
6168 * linux-fork.c: Update.
6169 * linux-nat.c: Update.
6170 * nat/aarch64-linux-hw-point.c: Update.
6171 * nat/fork-inferior.c: Update.
6172 * nat/x86-linux-dregs.c: Update.
6173 * nto-procfs.c: Update.
6174 * obsd-nat.c: Update.
6175 * procfs.c: Update.
6176 * progspace.c: Update.
6177 * remote.c: Update.
6178 * rs6000-nat.c: Update.
6179 * s390-linux-nat.c: Update.
6180 * sol-thread.c: Update.
6181 * spu-linux-nat.c: Update.
6182 * target.c: Update.
6183 * top.c: Update.
6184 * tracefile-tfile.c: Update.
6185 * windows-nat.c: Update.
6186
fd79271b
TT
61872018-07-03 Tom Tromey <tom@tromey.com>
6188
6189 * common/ptid.h (ptid_build): Don't declare.
6190 * common/ptid.c (ptid_build): Remove.
6191 * aix-thread.c: Update.
6192 * bsd-kvm.c: Update.
6193 * bsd-uthread.c: Update.
6194 * common/agent.c: Update.
6195 * common/ptid.c: Update.
6196 * common/ptid.h: Update.
6197 * corelow.c: Update.
6198 * darwin-nat.c: Update.
6199 * fbsd-nat.c: Update.
6200 * gnu-nat.c: Update.
6201 * linux-fork.c: Update.
6202 * linux-nat.c: Update.
6203 * linux-thread-db.c: Update.
6204 * nat/linux-osdata.c: Update.
6205 * nat/linux-procfs.c: Update.
6206 * nto-procfs.c: Update.
6207 * obsd-nat.c: Update.
6208 * proc-service.c: Update.
6209 * procfs.c: Update.
6210 * ravenscar-thread.c: Update.
6211 * remote-sim.c: Update.
6212 * remote.c: Update.
6213 * sol-thread.c: Update.
6214 * target.c: Update.
6215 * windows-nat.c: Update.
6216
057302ce
TT
62172018-07-03 Tom Tromey <tom@tromey.com>
6218
6219 * infrun.c (follow_exec): Use exit_inferior_silent.
6220 * inferior.c (exit_inferior_num_silent): Remove.
6221 * inferior.h (exit_inferior_num_silent): Don't declare.
6222
a50c11c6
TT
62232018-07-03 Tom Tromey <tom@tromey.com>
6224
6225 PR cli/23340:
6226 * darwin-nat.c (darwin_attach_pid): Reset inferior and
6227 inferior_ptid on error.
6228
471b9d15
MR
62292018-07-02 Maciej W. Rozycki <macro@mips.com>
6230 Simon Marchi <simon.marchi@polymtl.ca>
6231
6232 PR tdep/8282
6233 * disasm.h (gdb_disassembler): Add
6234 `m_disassembler_options_holder'. member
6235 * disasm.c (get_all_disassembler_options): New function.
6236 (gdb_disassembler::gdb_disassembler): Use it.
6237 (gdb_buffered_insn_length_init_dis): Likewise.
6238 (gdb_buffered_insn_length): Adjust accordingly.
6239 (set_disassembler_options): Handle options with arguments.
6240 (show_disassembler_options_sfunc): Likewise. Add a leading new
6241 line if showing options with descriptions.
6242 (disassembler_options_completer): Adapt to using the
6243 `disasm_options_and_args_t' structure.
6244 * mips-tdep.c (mips_disassembler_options): New variable.
6245 (mips_disassembler_options_o32): Likewise.
6246 (mips_disassembler_options_n32): Likewise.
6247 (mips_disassembler_options_n64): Likewise.
6248 (gdb_print_insn_mips): Don't set `disassembler_options'.
6249 (gdb_print_insn_mips_n32, gdb_print_insn_mips_n64): Remove
6250 functions.
6251 (mips_gdbarch_init): Always set `gdbarch_print_insn' to
6252 `gdb_print_insn_mips'. Set `gdbarch_disassembler_options',
6253 `gdbarch_disassembler_options_implicit' and
6254 `gdbarch_valid_disassembler_options'.
6255 * arm-tdep.c (_initialize_arm_tdep): Adapt to using the
6256 `disasm_options_and_args_t' structure.
6257 * gdbarch.sh (disassembler_options_implicit): New `gdbarch'
6258 method.
6259 (valid_disassembler_options): Switch from `disasm_options_t' to
6260 the `disasm_options_and_args_t' structure.
6261 * NEWS: Document `set disassembler-options' support for the MIPS
6262 target.
6263 * gdbarch.h: Regenerate.
6264 * gdbarch.c: Regenerate.
6265
41823f29
SH
62662018-07-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
6267
6268 * riscv-tdep.c (riscv_register_aliases): Swap "fp" and "s0" entries.
6269
41206e32
JB
62702018-06-29 Joel Brobecker <brobecker@adacore.com>
6271
6272 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Add missing
6273 parameter in call to amd64_target_description.
6274 * amd64-dicos-tdep.c (amd64_dicos_init_abi): Likewise.
6275 * amd64-fbsd-tdep.c (amd64fbsd_core_read_description)
6276 (amd64fbsd_init_abi): Likewise.
6277 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
6278 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
6279 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
6280 * amd64-fbsd-nat.c (amd64_fbsd_nat_target): Likewise.
6281
de52b960
PA
62822018-06-29 Pedro Alves <palves@redhat.com>
6283
6284 * gdb/amd64-tdep.h (amd64_create_target_description): Add
6285 "segments" parameter.
6286 * gdb/amd64-tdep.c (amd64_none_init_abi, amd64_x32_none_init_abi)
6287 (_initialize_amd64_tdep): Update call to
6288 amd64_create_target_description.
6289 (amd64_target_description): Add "segments" parameter. Adjust
6290 the implementation to use it.
6291 * gdb/amd64-linux-tdep.c (amd64_linux_read_description): Update
6292 call to amd64_create_target_description.
6293 * gdb/amd64-windows-tdep.c (amd64_windows_init_abi): Likewise.
6294 * gdb/arch/amd64.h (amd64_create_target_description): Add
6295 "segments" register.
6296 * gdb/arch/amd64.c (amd64_create_target_description): Add
6297 "segments" parameter. Call create_feature_i386_64bit_segments
6298 only if SEGMENTS is true.
6299 * gdb/gdbserver/win32-i386-low.c (i386_arch_setup): Update
6300 call to amd64_create_target_description.
6301
75acb486
PA
63022018-06-29 Pedro Alves <palves@redhat.com>
6303
6304 * thread.c (thread_target_id_str): New, factored out from ...
6305 (print_thread_info_1): ... here. Use it to compute the max
6306 "Target Id" column width.
6307
c76a8ea3
PA
63082018-06-29 Pedro Alves <palves@redhat.com>
6309
6310 * remote.c (remote_target::extra_thread_info): Delete
6311 'display_buf' and 'n' locals. from the cache, regardless of
6312 packet mechanims is in use. Use cache for qThreadExtra and qP
6313 methods too.
6314
cd2bb709
PA
63152018-06-29 Pedro Alves <palves@redhat.com>
6316
6317 * blockframe.c (find_pc_sect_containing_function): New function.
6318 * breakpoint.c (print_breakpoint_location): Don't call
6319 find_pc_sect_function.
6320 * linespec.c (create_sals_line_offset): Record the location's
6321 symbol in the sal.
6322 * linespec.c (convert_address_location_to_sals): Fill in sal's
6323 symbol with find_pc_sect_containing_function.
6324 * symtab.c (find_function_start_sal): Rename to ...
6325 (find_function_start_sal_1): ... this.
6326 (find_function_start_sal): Reimplement as wrapper around
6327 find_function_start_sal_1, and use
6328 find_pc_sect_containing_function to fill in the sal's symbol.
6329 (find_function_start_sal(symbol*, bool)): Adjust.
6330 * symtab.h (find_pc_function, find_pc_sect_function): Adjust
6331 comments.
6332 (find_pc_sect_containing_function): Declare.
6333
991ff292
PA
63342018-06-29 Pedro Alves <palves@redhat.com>
6335
6336 * inline-frame.c (stopped_by_user_bp_inline_frame): Return
6337 true if the the location has no symbol.
6338
44cee4fd
TT
63392018-06-28 Tom Tromey <tom@tromey.com>
6340
6341 * NEWS: Mention --enable-codesign.
6342 * silent-rules.mk (ECHO_SIGN): New variable.
6343 * configure.ac: Add --enable-codesign.
6344 * configure: Rebuild.
6345 * Makefile.in (CODESIGN, CODESIGN_CERT): New variables.
6346 (gdb$(EXEEXT)): Optionally invoke codesign.
6347
f2ffa92b
PA
63482018-06-28 Pedro Alves <palves@redhat.com>
6349
6350 * gdbthread.h (struct thread_suspend_state) <stop_pc>: Extend
6351 comments.
6352 (switch_to_thread_no_regs): Adjust comment.
6353 * infcmd.c (stop_pc): Delete.
6354 (post_create_inferior, info_program_command): Replace references
6355 to stop_pc with references to thread_info->suspend.stop_pc.
6356 * inferior.h (stop_pc): Delete declaration.
6357 * infrun.c (proceed, handle_syscall_event, fill_in_stop_func)
6358 (handle_inferior_event_1, handle_signal_stop)
6359 (process_event_stop_test, keep_going_stepped_thread)
6360 (handle_step_into_function, handle_step_into_function_backward)
6361 (print_stop_location): Replace references to stop_pc with
6362 references to thread_info->suspend.stop_pc.
6363 (struct infcall_suspend_state) <stop_pc>: Delete field.
6364 (save_infcall_suspend_state, restore_infcall_suspend_state):
6365 Remove references to inf_stat->stop_pc.
6366 * linux-fork.c (fork_load_infrun_state): Likewise.
6367 * record-btrace.c (record_btrace_set_replay): Likewise.
6368 * record-full.c (record_full_goto_entry): Likewise.
6369 * remote.c (print_one_stopped_thread): Likewise.
6370 * target.c (target_resume): Extend comment.
6371 * thread.c (set_executing_thread): New.
6372 (set_executing): Use it.
6373 (switch_to_thread_no_regs, switch_to_no_thread, switch_to_thread):
6374 Remove references to stop_pc.
6375
ecdc3a72
PA
63762018-06-28 Pedro Alves <palves@redhat.com>
6377
6378 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>:
6379 Moving fetching stop_pc until after ecs->event_thread is refreshed.
6380
d95d3aef
TT
63812018-06-28 Tom Tromey <tom@tromey.com>
6382
6383 * coffread.c (coff_symfile_finish): Update.
6384 * xcoffread.c (xcoff_symfile_finish): Update.
6385 * elfread.c (elf_symfile_finish): Update.
6386 * symfile.h (dwarf2_free_objfile): Don't declare.
6387 * dwarf2read.c (_initialize_dwarf2_read): Use
6388 register_objfile_data_with_cleanup.
6389 (dwarf2_free_objfile): Now static. Change signature.
6390
291f9a96
PT
63912018-06-28 Petr Tesarik <ptesarik@suse.cz>
6392
6393 * symfile.c (add_symbol_file_command, _initialize_symfile): Add
6394 option "-o" to add-symbol-file-load to add an offset to each
6395 section's load address.
6396 * symfile.c (set_objfile_default_section_offset): New function.
6397
d81a3eaf
PT
63982018-06-28 Petr Tesarik <ptesarik@suse.cz>
6399
6400 * symfile.c (add_symbol_file_command): Make sure that sections
6401 with the same name are sorted in the same order.
6402
ed6dfe51
PT
64032018-06-28 Petr Tesarik <ptesarik@suse.cz>
6404
6405 * symfile.c (add_symbol_file_command, _initialize_symfile): Do not
6406 require the second argument. If omitted, load sections at the
6407 addresses specified in the file.
6408
d4d429d5
PT
64092018-06-28 Petr Tesarik <ptesarik@suse.cz>
6410
6411 * symfile.c (symbol_file_command, symbol_file_add_main_1)
6412 (_initialize_symfile): Add option "-o" to symbol-file to add an
6413 offset to each section of the symbol file.
6414
39b27ab6
PT
64152018-06-28 Petr Tesarik <ptesarik@suse.cz>
6416
6417 * MAINTAINERS (Write After Approval): Add Petr Tesarik.
6418
41827fc3
TT
64192018-06-27 Tom Tromey <tom@tromey.com>
6420
6421 * stack.c (_initialize_stack): Update "func" help text.
6422
0c6aef22
TT
64232018-06-27 Tom Tromey <tom@tromey.com>
6424
6425 * python/py-unwind.c (unwind_info_object) <saved_regs>: Now a
6426 std::vector.
6427 (unwind_infopy_str, pyuw_create_unwind_info)
6428 (unwind_infopy_add_saved_register, pyuw_sniffer)
6429 (unwind_infopy_dealloc, unwind_infopy_add_saved_register):
6430 Update.
6431 (struct saved_reg): Add constructor.
6432 <value>: Now a gdbpy_ref<>.
6433
63177289
TT
64342018-06-27 Tom Tromey <tom@tromey.com>
6435
6436 * machoread.c (macho_symfile_read): Define "symbol_table" earlier.
6437
e76f78a0
SM
64382018-06-27 Simon Marchi <simon.marchi@ericsson.com>
6439
6440 * gdb-gdb.py.in: Format using autopep8.
6441
9a14af7b
SM
64422018-06-27 Simon Marchi <simon.marchi@ericsson.com>
6443
6444 * gdb-gdb.py.in (CoreAddrPrettyPrinter): New class.
6445 (type_lookup_function): Recognize CORE_ADDR values.
6446
189366cd
SM
64472018-06-27 Simon Marchi <simon.marchi@ericsson.com>
6448
6449 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <to_string>: Don't
6450 print tag_name.
6451
68ad5fb9
SM
64522018-06-27 Simon Marchi <simon.marchi@ericsson.com>
6453
6454 * gdb-gdb.py.in (TypeFlag) <__cmp__>: Remove.
6455 <__lt__>: Add.
6456
141ec9f6
SM
64572018-06-27 Simon Marchi <simon.marchi@ericsson.com>
6458
6459 * gdb-gdb.py: Move to...
6460 * gdb-gdb.py.in: ... here.
6461 * configure.ac (AC_CONFIG_FILES): Add gdb-gdb.py.
6462 * Makefile.in (all): Add gdb-gdb.gdb and gdb-gdb.py as
6463 dependencies.
6464 (distclean): Remove gdb-gdb.py when cleaning.
6465 (gdb-gdb.py, gdb-gdb.gdb): New rules.
6466 * configure: Re-generate.
6467
4c4e7ad4
PA
64682018-06-27 Pedro Alves <palves@redhat.com>
6469
6470 * proc-service.c (get_ps_regcache): New.
6471 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
6472 (ps_lsetfpregs): Use it.
6473
7ab6656f
OJ
64742018-06-27 Omair Javaid <omair.javaid@linaro.org>
6475
6476 PR gdb/21695
6477 * dwarf2read.c (lnp_state_machine::check_line_address): Update declaration.
6478 (dwarf_decode_lines_1): Adjust.
6479
bd583225
SM
64802018-06-27 Simon Marchi <simon.marchi@ericsson.com>
6481
6482 * fbsd-nat.h (class fbsd_nat_target) <find_memory_regions>: Add
6483 override.
6484 <info_proc>: Likewise.
6485
9a325b7b
JB
64862018-06-26 Joel Brobecker <brobecker@adacore.com>
6487
6488 * windows-nat.c (do_windows_fetch_inferior_registers): Rename
6489 to windows_fetch_one_register, and only handle the case of
6490 fetching one register. Move the code that reloads the context
6491 and iterates over all registers if R is negative to...
6492 (windows_nat_target::fetch_registers): ... here.
6493 (do_windows_store_inferior_registers): Rename to
6494 windows_store_one_register, and only handle the case of storing
6495 one register. Move the code that handles the case where r is
6496 negative to...
6497 (windows_nat_target::store_registers) ... here.
6498
a33ccfc7
TT
64992018-06-26 Tom Tromey <tom@tromey.com>
6500
6501 PR rust/22574:
6502 * typeprint.c (whatis_exp): Allow ptype/o for Rust.
6503 * rust-lang.c (rust_print_struct_def): Add podata parameter.
6504 Update.
6505 (rust_internal_print_type): Add podata parameter.
6506 (rust_print_type): Update.
6507
e0c547d1
TT
65082018-06-26 Tom Tromey <tom@tromey.com>
6509
6510 * typeprint.h (struct print_offset_data) <update, finish,
6511 maybe_print_hole>: New methods.
6512 <indentation>: New constant.
6513 * typeprint.c (print_offset_data::indentation): Define.
6514 (print_offset_data::maybe_print_hole, print_offset_data::update)
6515 (print_offset_data::finish): Move from c-typeprint.c and rename.
6516 * c-typeprint.c (OFFSET_SPC_LEN): Remove.
6517 (print_spaces_filtered_with_print_options): Update.
6518 (c_print_type_union_field_offset, maybe_print_hole)
6519 (c_print_type_struct_field_offset): Move to typeprint.c and
6520 rename.
6521 (c_type_print_base_struct_union): Update.
6522
75cbc781
PA
65232018-06-25 Pedro Alves <palves@redhat.com>
6524
6525 * gdbthread.h (thread_info_ref, delete_thread)
6526 (delete_thread_silent, first_thread_of_inferior)
6527 (any_thread_of_inferior, switch_to_thread)
6528 (enable_thread_stack_temporaries)
6529 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
6530 (get_last_thread_stack_temporary)
6531 (value_in_thread_stack_temporaries, can_access_registers_thread):
6532 Spell out "struct thread_info" instead of just "thread_info".
6533 * inferior.h (notice_new_inferior): Likewise.
6534
b7a08269
PA
65352018-06-25 Pedro Alves <palves@redhat.com>
6536
6537 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
6538 pass thread_info pointer to delete_thread.
6539 (windows_nat_target::detach): Pass inferior pointer to
6540 detach_inferior.
6541 * aix-thread.c (sync_threadlists): Pass thread_info pointer to
6542 delete_thread.
6543 * bsd-kvm.c (bsd_kvm_target::close): Use discard_all_inferiors.
6544 * darwin-nat.c (darwin_check_new_threads): Use find_thread_ptid
6545 and pass a thread_info pointer to delete_thread.
6546 * fbsd-nat.c (fbsd_nat_target::wait): Use find_thread_ptid and
6547 pass thread_info pointer to delete_thread.
6548 * go32-nat.c (go32_nat_target::mourn_inferior): Remove
6549 delete_thread_silent call.
6550 * procfs.c (procfs_target::detach): Pass inferior pointer to
6551 detach_inferior.
6552 (procfs_target::wait): Pass thread_info pointer to delete_thread.
6553 * remote-sim.c (gdbsim_target::mourn_inferior): Remove
6554 delete_thread_silent call.
6555 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
6556 pass thread_info pointer to delete_thread.
6557 (windows_nat_target::detach): Pass inferior pointer to
6558 delete_inferior.
6559
8e7767e3
AH
65602018-06-22 Alan Hayward <alan.hayward@arm.com>
6561
6562 * regcache.c (readable_regcache::read_part): Fix asserts.
6563 (reg_buffer::raw_collect_part): New function.
6564 (regcache::write_part): Fix asserts.
6565 (reg_buffer::raw_supply_part): New function.
6566 (regcache::transfer_regset_register): New helper function.
6567 (regcache::transfer_regset): Call new functions.
6568 (regcache_supply_regset): Use gdb_byte*.
6569 (regcache::supply_regset): Likewise.
6570 (regcache_collect_regset): Likewise.
6571 (regcache::collect_regset): Likewise.
6572 * regcache.h (reg_buffer::raw_collect_part): New declaration.
6573 (reg_buffer::raw_supply_part): Likewise.
6574 (regcache::transfer_regset_register): Likewise.
6575 (regcache::transfer_regset): Use gdb_byte*.
6576
bfd60e34
AH
65772018-06-22 Alan Hayward <alan.hayward@arm.com>
6578
6579 * nat/aarch64-sve-linux-ptrace.h (HAS_SVE_STATE): Use &.
6580
00431a78
PA
65812018-06-21 Pedro Alves <palves@redhat.com>
6582
6583 * ada-lang.h (ada_get_task_number): Take a thread_info pointer
6584 instead of a ptid_t. All callers adjusted.
6585 * ada-tasks.c (ada_get_task_number): Likewise. All callers
6586 adjusted.
6587 (print_ada_task_info, display_current_task_id, task_command_1):
6588 Adjust.
6589 * breakpoint.c (watchpoint_in_thread_scope): Adjust to use
6590 inferior_thread.
6591 (breakpoint_kind): Adjust.
6592 (remove_breakpoints_pid): Rename to ...
6593 (remove_breakpoints_inf): ... this. Adjust to take an inferior
6594 pointer. All callers adjusted.
6595 (bpstat_clear_actions): Use inferior_thread.
6596 (get_bpstat_thread): New.
6597 (bpstat_do_actions): Use it.
6598 (bpstat_check_breakpoint_conditions, bpstat_stop_status): Adjust
6599 to take a thread_info pointer. All callers adjusted.
6600 (set_longjmp_breakpoint_for_call_dummy, set_momentary_breakpoint)
6601 (breakpoint_re_set_thread): Use inferior_thread.
6602 * breakpoint.h (struct inferior): Forward declare.
6603 (bpstat_stop_status): Update.
6604 (remove_breakpoints_pid): Delete.
6605 (remove_breakpoints_inf): New.
6606 * bsd-uthread.c (bsd_uthread_target::wait)
6607 (bsd_uthread_target::update_thread_list): Use find_thread_ptid.
6608 * btrace.c (btrace_add_pc, btrace_enable, btrace_fetch)
6609 (maint_btrace_packet_history_cmd)
6610 (maint_btrace_clear_packet_history_cmd): Adjust.
6611 (maint_btrace_clear_cmd, maint_info_btrace_cmd): Adjust to use
6612 inferior_thread.
6613 * cli/cli-interp.c: Include "inferior.h".
6614 * common/refcounted-object.h (struct
6615 refcounted_object_ref_policy): New.
6616 * compile/compile-object-load.c: Include gdbthread.h.
6617 (store_regs): Use inferior_thread.
6618 * corelow.c (core_target::close): Use current_inferior.
6619 (core_target_open): Adjust to use first_thread_of_inferior and use
6620 the current inferior.
6621 * ctf.c (ctf_target::close): Adjust to use current_inferior.
6622 * dummy-frame.c (dummy_frame_id) <ptid>: Delete, replaced by ...
6623 <thread>: ... this new field. All references adjusted.
6624 (dummy_frame_pop, dummy_frame_discard, register_dummy_frame_dtor):
6625 Take a thread_info pointer instead of a ptid_t.
6626 * dummy-frame.h (dummy_frame_push, dummy_frame_pop)
6627 (dummy_frame_discard, register_dummy_frame_dtor): Take a
6628 thread_info pointer instead of a ptid_t.
6629 * elfread.c: Include "inferior.h".
6630 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop):
6631 Use inferior_thread.
6632 * eval.c (evaluate_subexp): Likewise.
6633 * frame.c (frame_pop, has_stack_frames, find_frame_sal): Use
6634 inferior_thread.
6635 * gdb_proc_service.h (struct thread_info): Forward declare.
6636 (struct ps_prochandle) <ptid>: Delete, replaced by ...
6637 <thread>: ... this new field. All references adjusted.
6638 * gdbarch.h, gdbarch.c: Regenerate.
6639 * gdbarch.sh (get_syscall_number): Replace 'ptid' parameter with a
6640 'thread' parameter. All implementations and callers adjusted.
6641 * gdbthread.h (thread_info) <set_running>: New method.
6642 (delete_thread, delete_thread_silent): Take a thread_info pointer
6643 instead of a ptid.
6644 (global_thread_id_to_ptid, ptid_to_global_thread_id): Delete.
6645 (first_thread_of_process): Delete, replaced by ...
6646 (first_thread_of_inferior): ... this new function. All callers
6647 adjusted.
6648 (any_live_thread_of_process): Delete, replaced by ...
6649 (any_live_thread_of_inferior): ... this new function. All callers
6650 adjusted.
6651 (switch_to_thread, switch_to_no_thread): Declare.
6652 (is_executing): Delete.
6653 (enable_thread_stack_temporaries): Update comment.
6654 <enable_thread_stack_temporaries>: Take a thread_info pointer
6655 instead of a ptid_t. Incref the thread.
6656 <~enable_thread_stack_temporaries>: Decref the thread.
6657 <m_ptid>: Delete
6658 <m_thr>: New.
6659 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
6660 (get_last_thread_stack_temporary)
6661 (value_in_thread_stack_temporaries, can_access_registers_thread):
6662 Take a thread_info pointer instead of a ptid_t. All callers
6663 adjusted.
6664 * infcall.c (get_call_return_value): Use inferior_thread.
6665 (run_inferior_call): Work with thread pointers instead of ptid_t.
6666 (call_function_by_hand_dummy): Work with thread pointers instead
6667 of ptid_t. Use thread_info_ref.
6668 * infcmd.c (proceed_thread_callback): Access thread's state
6669 directly.
6670 (ensure_valid_thread, ensure_not_running): Use inferior_thread,
6671 access thread's state directly.
6672 (continue_command): Use inferior_thread.
6673 (info_program_command): Use find_thread_ptid and access thread
6674 state directly.
6675 (proceed_after_attach_callback): Use thread state directly.
6676 (notice_new_inferior): Take a thread_info pointer instead of a
6677 ptid_t. All callers adjusted.
6678 (exit_inferior): Take an inferior pointer instead of a pid. All
6679 callers adjusted.
6680 (exit_inferior_silent): New.
6681 (detach_inferior): Delete.
6682 (valid_gdb_inferior_id, pid_to_gdb_inferior_id)
6683 (gdb_inferior_id_to_pid, in_inferior_list): Delete.
6684 (detach_inferior_command, kill_inferior_command): Use
6685 find_inferior_id instead of valid_gdb_inferior_id and
6686 gdb_inferior_id_to_pid.
6687 (inferior_command): Use inferior and thread pointers.
6688 * inferior.h (struct thread_info): Forward declare.
6689 (notice_new_inferior): Take a thread_info pointer instead of a
6690 ptid_t. All callers adjusted.
6691 (detach_inferior): Delete declaration.
6692 (exit_inferior, exit_inferior_silent): Take an inferior pointer
6693 instead of a pid. All callers adjusted.
6694 (gdb_inferior_id_to_pid, pid_to_gdb_inferior_id, in_inferior_list)
6695 (valid_gdb_inferior_id): Delete.
6696 * infrun.c (follow_fork_inferior, proceed_after_vfork_done)
6697 (handle_vfork_child_exec_or_exit, follow_exec): Adjust.
6698 (struct displaced_step_inferior_state) <pid>: Delete, replaced by
6699 ...
6700 <inf>: ... this new field.
6701 <step_ptid>: Delete, replaced by ...
6702 <step_thread>: ... this new field.
6703 (get_displaced_stepping_state): Take an inferior pointer instead
6704 of a pid. All callers adjusted.
6705 (displaced_step_in_progress_any_inferior): Adjust.
6706 (displaced_step_in_progress_thread): Take a thread pointer instead
6707 of a ptid_t. All callers adjusted.
6708 (displaced_step_in_progress, add_displaced_stepping_state): Take
6709 an inferior pointer instead of a pid. All callers adjusted.
6710 (get_displaced_step_closure_by_addr): Adjust.
6711 (remove_displaced_stepping_state): Take an inferior pointer
6712 instead of a pid. All callers adjusted.
6713 (displaced_step_prepare_throw, displaced_step_prepare)
6714 (displaced_step_fixup): Take a thread pointer instead of a ptid_t.
6715 All callers adjusted.
6716 (start_step_over): Adjust.
6717 (infrun_thread_ptid_changed): Remove bit updating ptids in the
6718 displaced step queue.
6719 (do_target_resume): Adjust.
6720 (fetch_inferior_event): Use inferior_thread.
6721 (context_switch, get_inferior_stop_soon): Take an
6722 execution_control_state pointer instead of a ptid_t. All callers
6723 adjusted.
6724 (switch_to_thread_cleanup): Delete.
6725 (stop_all_threads): Use scoped_restore_current_thread.
6726 * inline-frame.c: Include "gdbthread.h".
6727 (inline_state) <inline_state>: Take a thread pointer instead of a
6728 ptid_t. All callers adjusted.
6729 <ptid>: Delete, replaced by ...
6730 <thread>: ... this new field.
6731 (find_inline_frame_state): Take a thread pointer instead of a
6732 ptid_t. All callers adjusted.
6733 (skip_inline_frames, step_into_inline_frame)
6734 (inline_skipped_frames, inline_skipped_symbol): Take a thread
6735 pointer instead of a ptid_t. All callers adjusted.
6736 * inline-frame.h (skip_inline_frames, step_into_inline_frame)
6737 (inline_skipped_frames, inline_skipped_symbol): Likewise.
6738 * linux-fork.c (delete_checkpoint_command): Adjust to use thread
6739 pointers directly.
6740 * linux-nat.c (get_detach_signal): Likewise.
6741 * linux-thread-db.c (thread_from_lwp): New 'stopped' parameter.
6742 (thread_db_notice_clone): Adjust.
6743 (thread_db_find_new_threads_silently)
6744 (thread_db_find_new_threads_2, thread_db_find_new_threads_1): Take
6745 a thread pointer instead of a ptid_t. All callers adjusted.
6746 * mi/mi-cmd-var.c: Include "inferior.h".
6747 (mi_cmd_var_update_iter): Update to use thread pointers.
6748 * mi/mi-interp.c (mi_new_thread): Update to use the thread's
6749 inferior directly.
6750 (mi_output_running_pid, mi_inferior_count): Delete, bits factored
6751 out to ...
6752 (mi_output_running): ... this new function.
6753 (mi_on_resume_1): Adjust to use it.
6754 (mi_user_selected_context_changed): Adjust to use inferior_thread.
6755 * mi/mi-main.c (proceed_thread): Adjust to use thread pointers
6756 directly.
6757 (interrupt_thread_callback): : Adjust to use thread and inferior
6758 pointers.
6759 * proc-service.c: Include "gdbthread.h".
6760 (ps_pglobal_lookup): Adjust to use the thread's inferior directly.
6761 * progspace-and-thread.c: Include "inferior.h".
6762 * progspace.c: Include "inferior.h".
6763 * python/py-exitedevent.c (create_exited_event_object): Adjust to
6764 hold a reference to an inferior_object.
6765 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust to use
6766 inferior_thread.
6767 * python/py-inferior.c (struct inferior_object): Give the type a
6768 tag name instead of a typedef.
6769 (python_on_normal_stop): No need to check if the current thread is
6770 listed.
6771 (inferior_to_inferior_object): Change return type to
6772 inferior_object. All callers adjusted.
6773 (find_thread_object): Delete, bits factored out to ...
6774 (thread_to_thread_object): ... this new function.
6775 * python/py-infthread.c (create_thread_object): Use
6776 inferior_to_inferior_object.
6777 (thpy_is_stopped): Use thread pointer directly.
6778 (gdbpy_selected_thread): Use inferior_thread.
6779 * python/py-record-btrace.c (btpy_list_object) <ptid>: Delete
6780 field, replaced with ...
6781 <thread>: ... this new field. All users adjusted.
6782 (btpy_insn_or_gap_new): Drop const.
6783 (btpy_list_new): Take a thread pointer instead of a ptid_t. All
6784 callers adjusted.
6785 * python/py-record.c: Include "gdbthread.h".
6786 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
6787 a ptid_t. All callers adjusted.
6788 (gdbpy_current_recording): Use inferior_thread.
6789 * python/py-record.h (recpy_record_object) <ptid>: Delete
6790 field, replaced with ...
6791 <thread>: ... this new field. All users adjusted.
6792 (recpy_element_object) <ptid>: Delete
6793 field, replaced with ...
6794 <thread>: ... this new field. All users adjusted.
6795 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
6796 a ptid_t. All callers adjusted.
6797 * python/py-threadevent.c: Include "gdbthread.h".
6798 (get_event_thread): Use thread_to_thread_object.
6799 * python/python-internal.h (struct inferior_object): Forward
6800 declare.
6801 (find_thread_object, find_inferior_object): Delete declarations.
6802 (thread_to_thread_object, inferior_to_inferior_object): New
6803 declarations.
6804 * record-btrace.c: Include "inferior.h".
6805 (require_btrace_thread): Use inferior_thread.
6806 (record_btrace_frame_sniffer)
6807 (record_btrace_tailcall_frame_sniffer): Use inferior_thread.
6808 (get_thread_current_frame): Use scoped_restore_current_thread and
6809 switch_to_thread.
6810 (get_thread_current_frame): Use thread pointer directly.
6811 (record_btrace_replay_at_breakpoint): Use thread's inferior
6812 pointer directly.
6813 * record-full.c: Include "inferior.h".
6814 * regcache.c: Include "gdbthread.h".
6815 (get_thread_arch_regcache): Use the inferior's address space
6816 directly.
6817 (get_thread_regcache, registers_changed_thread): New.
6818 * regcache.h (get_thread_regcache(thread_info *thread)): New
6819 overload.
6820 (registers_changed_thread): New.
6821 (remote_target) <remote_detach_1>: Swap order of parameters.
6822 (remote_add_thread): <remote_add_thread>: Return the new thread.
6823 (get_remote_thread_info(ptid_t)): New overload.
6824 (remote_target::remote_notice_new_inferior): Use thread pointers
6825 directly.
6826 (remote_target::process_initial_stop_replies): Use
6827 thread_info::set_running.
6828 (remote_target::remote_detach_1, remote_target::detach)
6829 (extended_remote_target::detach): Adjust.
6830 * stack.c (frame_show_address): Use inferior_thread.
6831 * target-debug.h (target_debug_print_thread_info_pp): New.
6832 * target-delegates.c: Regenerate.
6833 * target.c (default_thread_address_space): Delete.
6834 (memory_xfer_partial_1): Use current_inferior.
6835 (target_detach): Use current_inferior.
6836 (target_thread_address_space): Delete.
6837 (generic_mourn_inferior): Use current_inferior.
6838 * target.h (struct target_ops) <thread_address_space>: Delete.
6839 (target_thread_address_space): Delete.
6840 * thread.c (init_thread_list): Use ALL_THREADS_SAFE. Use thread
6841 pointers directly.
6842 (delete_thread_1, delete_thread, delete_thread_silent): Take a
6843 thread pointer instead of a ptid_t. Adjust all callers.
6844 (ptid_to_global_thread_id, global_thread_id_to_ptid): Delete.
6845 (first_thread_of_process): Delete, replaced by ...
6846 (first_thread_of_inferior): ... this new function. All callers
6847 adjusted.
6848 (any_thread_of_process): Rename to ...
6849 (any_thread_of_inferior): ... this, and take an inferior pointer.
6850 (any_live_thread_of_process): Rename to ...
6851 (any_live_thread_of_inferior): ... this, and take an inferior
6852 pointer.
6853 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
6854 (value_in_thread_stack_temporaries)
6855 (get_last_thread_stack_temporary): Take a thread pointer instead
6856 of a ptid_t. Adjust all callers.
6857 (thread_info::set_running): New.
6858 (validate_registers_access): Use inferior_thread.
6859 (can_access_registers_ptid): Rename to ...
6860 (can_access_registers_thread): ... this, and take a thread
6861 pointer.
6862 (print_thread_info_1): Adjust to compare thread pointers instead
6863 of ptids.
6864 (switch_to_no_thread, switch_to_thread): Make extern.
6865 (scoped_restore_current_thread::~scoped_restore_current_thread):
6866 Use m_thread pointer directly.
6867 (scoped_restore_current_thread::scoped_restore_current_thread):
6868 Use inferior_thread.
6869 (thread_command): Use thread pointer directly.
6870 (thread_num_make_value_helper): Use inferior_thread.
6871 * top.c (execute_command): Use inferior_thread.
6872 * tui/tui-interp.c: Include "inferior.h".
6873 * varobj.c (varobj_create): Use inferior_thread.
6874 (value_of_root_1): Use find_thread_global_id instead of
6875 global_thread_id_to_ptid.
6876
33bab475
AH
68772018-06-21 Alan Hayward <alan.hayward@arm.com>
6878
6879 * regcache.c (readable_regcache::read_part): Avoid memcpy when
6880 possible.
6881 (regcache::write_part): Likewise.
6882 (readable_regcache::cooked_read_part): Update comment.
6883 (readable_regcache::cooked_write_part): Likewise.
6884 * regcache.h: (readable_regcache::read_part): Likewise.
6885 (regcache::write_part): Likewise.
6886
8363f9d5
RB
68872018-06-21 Richard Bunt <richard.bunt@arm.com>
6888 Dirk Schubert <dirk.schubert@arm.com>
6889
6890 * aarch64-linux-nat.c (post_attach): New.
6891 (aarch64_linux_nat_target::post_attach): Override post_attach to
6892 record the number of hardware debug registers.
6893
0d0b0ea2
TT
68942018-06-20 Tom Tromey <tom@tromey.com>
6895
6896 * python/py-param.c (add_setshow_generic): Make parameters const.
6897 (parmpy_init): Update.
6898
302abd6e
SM
68992018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
6900
6901 * regcache.h (regcache_cooked_read_ftype): Rename to...
6902 (register_read_ftype): ...this, change type to function_view.
6903 (class reg_buffer) <save>: Remove src parameter.
6904 (readonly_detached_regcache) <readonly_detached_regcache>: Make
6905 parameter non-const in first overload. Remove src parameter in
6906 second overload.
6907 * regcache.c (do_cooked_read): Remove.
6908 (readonly_detached_regcache::readonly_detached_regcache): Make
6909 parameter non-const, adjust call to other constructor.
6910 (reg_buffer::save): Remove src parameter.
6911 * frame.c (do_frame_register_read): Remove.
6912 (frame_save_as_regcache): Use lambda function.
6913 * ppc-linux-tdep.c (ppu2spu_unwind_register): Change type of src
6914 parameter to ppu2spu_data *.
6915 (ppu2spu_sniffer): Use lambda function.
6916
19f3f25f
SM
69172018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
6918
6919 * record-full.c (record_full_target::insert_breakpoint): Remove
6920 "struct" keyword, add const.
6921
d0ac1c44
SM
69222018-06-19 Simon Marchi <simon.marchi@ericsson.com>
6923
6924 * common/common-defs.h (PACKAGE_NAME, PACKAGE_VERSION,
6925 PACKAGE_STRING, PACKAGE_TARNAME): Undefine.
6926 * configure.ac: Remove AC_PREREQ, add missing quoting.
6927 * gnulib/configure.ac: Modernize usage of
6928 AC_INIT/AM_INIT_AUTOMAKE. Remove AC_PREREQ.
6929 * gnulib/update-gnulib.sh (AUTOCONF_VERSION): Bump to 2.69.
6930 (AUTOMAKE_VERSION): Bump to 1.15.1.
6931 * configure: Re-generate.
6932 * config.in: Re-generate.
6933 * aclocal.m4: Re-generate.
6934 * gnulib/aclocal.m4: Re-generate.
6935 * gnulib/config.in: Re-generate.
6936 * gnulib/configure: Re-generate.
6937 * gnulib/import/Makefile.in: Re-generate.
6938
6ae50267
PA
69392018-06-19 Pedro Alves <palves@redhat.com>
6940
6941 * minsyms.c (msym_prefer_to_msym_type): New, factored out from ...
6942 (lookup_minimal_symbol_by_pc_section): ... here with
6943 gdb_assert_not_reached added.
6944
61b04dd0
PA
69452018-06-19 Pedro Alves <palves@redhat.com>
6946
6947 * inline-frame.c (stopped_by_user_bp_inline_frame): Replace PC
6948 parameter with a block parameter. Compare location's block symbol
6949 with the frame's block instead of addresses.
6950 (skip_inline_frames): Pass the current block instead of the
6951 frame's address. Break out as soon as we determine the frame
6952 should not be skipped.
6953
f709fabb
TT
69542018-06-18 Tom Tromey <tom@tromey.com>
6955
6956 * solib-aix.c (solib_aix_get_section_offsets): Return
6957 unique_xmalloc_ptr.
6958 (solib_aix_solib_create_inferior_hook): Update.
6959
668eb2f0
TT
69602018-06-18 Tom Tromey <tom@tromey.com>
6961
6962 * solib-darwin.c (darwin_current_sos): Use unique_xmalloc_ptr.
6963
309822ca
TT
69642018-06-18 Tom Tromey <tom@tromey.com>
6965
6966 * solib-frv.c (frv_relocate_main_executable): Use
6967 unique_xmalloc_ptr.
6968 * solib-dsbt.c (dsbt_relocate_main_executable): Use
6969 unique_xmalloc_ptr.
6970
06424eac
TT
69712018-06-18 Tom Tromey <tom@tromey.com>
6972
6973 * objfiles.h (inhibit_section_map_updates): Update.
6974 (resume_section_map_updates, resume_section_map_updates_cleanup):
6975 Remove.
6976 * solib-svr4.c (svr4_handle_solib_event): Update.
6977 * objfiles.c (inhibit_section_map_updates): Return
6978 scoped_restore_tmpl<int>.
6979 (resume_section_map_updates, resume_section_map_updates_cleanup):
6980 Remove.
6981
b4be9fad
TT
69822018-06-18 Tom Tromey <tom@tromey.com>
6983
6984 * valprint.h (read_string): Update.
6985 * valprint.c (read_string): Change type of "buffer".
6986 (val_print_string): Update.
6987 * python/py-value.c (valpy_string): Update.
6988 * language.h (struct language_defn) <la_get_string>: Change
6989 type of "buffer".
6990 (default_get_string, c_get_string): Update.
6991 * language.c (default_get_string): Change type of "buffer".
6992 * guile/scm-value.c (gdbscm_value_to_string): Update.
6993 * c-lang.c (c_get_string): Change type of "buffer".
6994
3f0dbd67
TT
69952018-06-18 Tom Tromey <tom@tromey.com>
6996
6997 * ser-mingw.c (struct pipe_state_destroyer): New.
6998 (pipe_state_up): New typedef.
6999 (cleanup_pipe_state): Remove.
7000 (pipe_windows_open): Use pipe_state_up. Don't release argv.
7001
69d340c6
TT
70022018-06-18 Tom Tromey <tom@tromey.com>
7003
7004 * rust-lang.h (rust_yyerror): Don't declare.
7005 * rust-lang.c (rust_language_defn): Update.
7006 * rust-exp.y (yyerror): Now static.
7007 * parse.c (parse_exp_in_context_1): Update.
7008 * p-lang.h (p_yyerror): Don't declare.
7009 * p-lang.c (p_language_defn): Update.
7010 * p-exp.y (yyerror): Now static.
7011 * opencl-lang.c (opencl_language_defn): Update.
7012 * objc-lang.c (objc_language_defn): Update.
7013 * m2-lang.h (m2_yyerror): Don't declare.
7014 * m2-lang.c (m2_language_defn): Update.
7015 * m2-exp.y (yyerror): Now static.
7016 * language.h (struct language_defn) <la_error>: Remove.
7017 * language.c (unk_lang_error): Remove.
7018 (unknown_language_defn, auto_language_defn): Remove.
7019 * go-lang.h (go_yyerror): Don't declare.
7020 * go-lang.c (go_language_defn): Update.
7021 * go-exp.y (yyerror): Now static.
7022 * f-lang.h (f_yyerror): Don't declare.
7023 * f-lang.c (f_language_defn): Update.
7024 * f-exp.y (yyerror): Now static.
7025 * d-lang.h (d_yyerror): Don't declare.
7026 * d-lang.c (d_language_defn): Update.
7027 * d-exp.y (yyerror): Now static.
7028 * c-lang.h (c_yyerror): Don't declare.
7029 * c-lang.c (c_language_defn, cplus_language_defn)
7030 (asm_language_defn, minimal_language_defn): Update.
7031 * c-exp.y (yyerror): Now static.
7032 * ada-lang.h (ada_yyerror): Don't declare.
7033 * ada-lang.c (ada_language_defn): Update.
7034 * ada-exp.y (yyerror): Now static.
7035
e9902bfc
AH
70362018-06-18 Alan Hayward <alan.hayward@arm.com>
7037
7038 * aarch64-linux-nat.c (fetch_sveregs_from_thread): New function.
7039 (store_sveregs_to_thread): Likewise.
7040 (aarch64_linux_fetch_inferior_registers): Check for SVE.
7041 (aarch64_linux_store_inferior_registers): Likewise.
7042 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs): New
7043 function.
7044 (aarch64_sve_regs_copy_to_regcache): Likewise.
7045 (aarch64_sve_regs_copy_from_regcache): Likewise.
7046 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_sveregs): New
7047 declaration.
7048 (aarch64_sve_regs_copy_to_regcache): Likewise.
7049 (aarch64_sve_regs_copy_from_regcache): Likewise.
7050 (sve_context): Structure from Linux headers.
7051 (SVE_SIG_ZREGS_SIZE): Define from Linux headers.
7052 (SVE_SIG_ZREG_SIZE): Likewise.
7053 (SVE_SIG_PREG_SIZE): Likewise.
7054 (SVE_SIG_FFR_SIZE): Likewise.
7055 (SVE_SIG_REGS_OFFSET): Likewise.
7056 (SVE_SIG_ZREGS_OFFSET): Likewise.
7057 (SVE_SIG_ZREG_OFFSET): Likewise.
7058 (SVE_SIG_ZREGS_SIZE): Likewise.
7059 (SVE_SIG_PREGS_OFFSET): Likewise.
7060 (SVE_SIG_PREG_OFFSET): Likewise.
7061 (SVE_SIG_PREGS_SIZE): Likewise.
7062 (SVE_SIG_FFR_OFFSET): Likewise.
7063 (SVE_SIG_REGS_SIZE): Likewise.
7064 (SVE_SIG_CONTEXT_SIZE): Likewise.
7065 (SVE_PT_REGS_MASK): Likewise.
7066 (SVE_PT_REGS_FPSIMD): Likewise.
7067 (SVE_PT_REGS_SVE): Likewise.
7068 (SVE_PT_VL_INHERIT): Likewise.
7069 (SVE_PT_VL_ONEXEC): Likewise.
7070 (SVE_PT_REGS_OFFSET): Likewise.
7071 (SVE_PT_FPSIMD_OFFSET): Likewise.
7072 (SVE_PT_FPSIMD_SIZE): Likewise.
7073 (SVE_PT_SVE_ZREG_SIZE): Likewise.
7074 (SVE_PT_SVE_PREG_SIZE): Likewise.
7075 (SVE_PT_SVE_FFR_SIZE): Likewise.
7076 (SVE_PT_SVE_FPSR_SIZE): Likewise.
7077 (SVE_PT_SVE_FPCR_SIZE): Likewise.
7078 (__SVE_SIG_TO_PT): Likewise.
7079 (SVE_PT_SVE_OFFSET): Likewise.
7080 (SVE_PT_SVE_ZREGS_OFFSET): Likewise.
7081 (SVE_PT_SVE_ZREG_OFFSET): Likewise.
7082 (SVE_PT_SVE_ZREGS_SIZE): Likewise.
7083 (SVE_PT_SVE_PREGS_OFFSET): Likewise.
7084 (SVE_PT_SVE_PREG_OFFSET): Likewise.
7085 (SVE_PT_SVE_PREGS_SIZE): Likewise.
7086 (SVE_PT_SVE_FFR_OFFSET): Likewise.
7087 (SVE_PT_SVE_FPSR_OFFSET): Likewise.
7088 (SVE_PT_SVE_FPCR_OFFSET): Likewise.
7089 (SVE_PT_SVE_SIZE): Likewise.
7090 (SVE_PT_SIZE): Likewise.
7091 (HAS_SVE_STATE): New define.
7092
17a1cc89
AH
70932018-06-18 Alan Hayward <alan.hayward@arm.com>
7094
7095 * nat/aarch64-sve-linux-sigcontext.h: New file.
7096 * nat/aarch64-sve-linux-ptrace.h (SVE_VQ_BYTES): Move to
7097 new files.
7098 (SVE_VQ_MIN): Likewise.
7099 (SVE_VQ_MAX): Likewise.
7100 (SVE_VL_MIN): Likewise.
7101 (SVE_VL_MAX): Likewise.
7102 (SVE_NUM_ZREGS): Likewise.
7103 (SVE_NUM_PREGS): Likewise.
7104 (sve_vl_valid): Likewise.
7105 (struct user_sve_header): Likewise.
7106
7010835a
AB
71072018-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
7108 Richard Bunt <Richard.Bunt@arm.com>
7109
7110 * linux-nat.c (stop_wait_callback): Don't discard SIGSTOP if it
7111 was requested by GDB.
7112
479b3ef4
TV
71132018-06-15 Tom de Vries <tdevries@suse.de>
7114
7115 * MAINTAINERS (Write After Approval): Add Tom de Vries.
7116
8199b8f4
SM
71172018-06-14 Simon Marchi <simon.marchi@polymtl.ca>
7118
7119 * gnulib/update-gnulib.sh: Print expected versions of
7120 autoconf/aclocal.
7121
55c748a1
SM
71222018-06-14 Simon Marchi <simon.marchi@ericsson.com>
7123
7124 * arch-utils.c (default_type_align): Use type_length_units.
7125 * gdbtypes.c (type_align): Use type_length_units.
7126
87a8eca7
PW
71272018-06-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7128
7129 * cli/cli-script.c (_initialize_cli_script): Fix online documentation
7130 of 'define' command.
7131
5d9a0608
TV
71322018-06-14 Tom de Vries <tdevries@suse.de>
7133
7134 PR cli/22573
7135 * infcmd.c (print_return_value_1): Use get_user_print_options instead of
7136 get_no_prettyformat_print_options.
7137
ab89b5a5
SM
71382018-06-13 Simon Marchi <simon.marchi@ericsson.com>
7139
7140 * sparc-nat.h: Include target.h.
7141 * sparc64-linux-nat.c (class sparc64_linux_nat_target)
7142 <fetch_registers>: Remove this argument in function call.
7143 <store_registers>: Remove this argument in function call, remove
7144 extra semicolon.
7145 <low_forget_process>: Call sparc64_forget_process instead of
7146 sparc_forget_process.
7147
62c808ae
RO
71482018-06-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7149
7150 * procfs.c (_initialize_procfs): Use add_inf_child_target.
7151 (procfs_target::make_corefile_notes): Adjust to new
7152 target_read_alloc return type.
7153
1840d81a
AB
71542018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
7155 Stephen Roberts <stephen.roberts@arm.com>
7156
7157 PR gdb/22882
7158 * infrun.c (fetch_inferior_event): If GDB is not proceeding then
7159 run INF_EXEC_COMPLETE handler, even when not calling normal_stop.
7160 Move should_notify_stop local into more inner scope.
7161
9516f85a
AB
71622018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
7163 Stephen Roberts <stephen.roberts@arm.com>
7164
7165 PR gdb/22882
7166 * infrun.c (resume_1): Add call to mark_async_event_handler.
7167
defd2172
AB
71682018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
7169
7170 * infrun.c (do_target_wait): Change old version of $pc printed.
7171
7b23e087
SM
71722018-06-11 Simon Marchi <simon.marchi@ericsson.com>
7173
7174 * dwarf2read.c (read_index_from_section): Rename to...
7175 (read_gdb_index_from_section): ... this, update all callers.
7176 (dwarf2_read_index): Rename to...
7177 (dwarf2_read_gdb_index): ... this, update all callers.
7178
69c67a0b
JDA
71792018-06-11 John David Anglin <danglin@gcc.gnu.org>
7180
7181 * gdb/hppa-linux-nat.c
7182 (hppa_linux_nat_target::fetch_inferior_registers): Rename to
7183 hppa_linux_nat_target::fetch_registers.
7184
65d4cada
AH
71852018-06-11 Alan Hayward <alan.hayward@arm.com>
7186
7187 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Add mappings.
7188 * aarch64-tdep.h (AARCH64_DWARF_SVE_VG): Add define.
7189 (AARCH64_DWARF_SVE_FFR): Likewise.
7190 (AARCH64_DWARF_SVE_P0): Likewise.
7191 (AARCH64_DWARF_SVE_Z0): Likewise.
7192
f868386e
AH
71932018-06-11 Alan Hayward <alan.hayward@arm.com>
7194
7195 * common/common-regcache.h (raw_compare): New function.
7196 * regcache.c (regcache::raw_compare): Likewise.
7197 * regcache.h (regcache::raw_compare): New declaration.
7198
9c861883
AH
71992018-06-11 Alan Hayward <alan.hayward@arm.com>
7200
7201 * common/common-regcache.h (reg_buffer_common): New structure.
7202 * regcache.c (reg_buffer::invalidate): Move from detached_regcache.
7203 (reg_buffer::raw_supply): Likewise.
7204 (reg_buffer::raw_supply_integer): Likewise.
7205 (reg_buffer::raw_supply_zeroed): Likewise.
7206 (reg_buffer::raw_collect): Likewise.
7207 (reg_buffer::raw_collect_integer): Likewise.
7208 * regcache.h (reg_buffer::invalidate): Move from detached_regcache.
7209 (reg_buffer::raw_supply): Likewise.
7210 (reg_buffer::raw_supply_integer): Likewise.
7211 (reg_buffer::raw_supply_zeroed): Likewise.
7212 (reg_buffer::raw_collect): Likewise.
7213 (reg_buffer::raw_collect_integer): Likewise.
7214
953edf2b
TT
72152018-06-10 Tom Tromey <tom@tromey.com>
7216
7217 * remote.c (stop_reply_p): Remove typedef. Don't declare queue.
7218 (class remote_state) <stop_reply_queue>: Now std::vector.
7219 (remote_state::~remote_state)
7220 (remote_target::stop_reply_queue_length): Update.
7221 (struct queue_iter_param, remove_child_of_pending_fork)
7222 (struct check_pending_event_prevents_wildcard_vcont_callback_data)
7223 (check_pending_event_prevents_wildcard_vcont_callback)
7224 (remove_stop_reply_for_inferior)
7225 (remove_stop_reply_of_remote_state)
7226 (remote_notif_remove_once_on_match)
7227 (stop_reply_match_ptid_and_ws)
7228 (remote_kill_child_of_pending_fork): Remove.
7229 (remote_target::remove_new_fork_children)
7230 (remote_target::check_pending_events_prevent_wildcard_vcont)
7231 (remote_target::discard_pending_stop_replies)
7232 (remote_target::discard_pending_stop_replies_in_queue)
7233 (remote_target::remote_notif_remove_queued_reply)
7234 (remote_target::queued_stop_reply)
7235 (remote_target::push_stop_reply, remote_target::peek_stop_reply)
7236 (remote_target::wait, remote_target::kill_new_fork_children)
7237 (remote_target::async): Update.
7238
1ddbba9d
TT
72392018-06-10 Tom Tromey <tom@tromey.com>
7240
7241 * record-full.c (record_full_arch_list_cleanups): Remove.
7242 (record_full_message): Use try/catch.
7243 (record_full_wait_cleanups): Remove.
7244 (record_full_wait_1): Use try/catch.
7245 (record_full_restore): Likewise.
7246
219605fd
TT
72472018-06-10 Tom Tromey <tom@tromey.com>
7248
7249 * record-full.c (record_full_breakpoint_p): Remove typedef. Don't
7250 declare VEC. Add constructor.
7251 <in_target_beneath>: Now bool.
7252 (record_full_breakpoints): Now a std::vector, static.
7253 (record_full_sync_record_breakpoints)
7254 (record_full_init_record_breakpoints)
7255 (record_full_target::insert_breakpoint)
7256 (record_full_target::remove_breakpoint): Update. Don't use XNEW.
7257
71b73764
SM
72582018-06-10 Simon Marchi <simon.marchi@polymtl.ca>
7259
7260 * dwarf2read.c (process_cu_includes): Remove struct keyword.
7261 * serial.c (serial_interface_lookup): Remove struct keyword.
7262
4360561f
TT
72632018-06-10 Tom Tromey <tom@tromey.com>
7264
7265 * procfs.c (procfs_target::xfer_partial): Use "beneath" as a
7266 method.
7267 * nto-procfs.c (nto_procfs_target::xfer_partial): Use "beneath" as
7268 a method.
7269 * go32-nat.c (go32_nat_target::xfer_partial): Use "beneath" as a
7270 method.
7271 * arm-linux-nat.c (arm_linux_nat_target::read_description): Use
7272 "beneath" as a method.
7273 * arm-fbsd-nat.c (arm_fbsd_nat_target::read_description):
7274 Use "beneath" as a method.
7275
d14b92bf
TT
72762018-06-10 Tom Tromey <tom@tromey.com>
7277
7278 * tracefile.c (struct trace_file_writer_deleter): New.
7279 <operator()>: Rename from trace_file_writer_xfree.
7280 (trace_file_writer_up): New typedef.
7281 (tsave_command, trace_save_tfile, trace_save_ctf): Update.
7282
835dcf92
SM
72832018-06-09 Simon Marchi <simon.marchi@ericsson.com>
7284
7285 * regcache.h (reg_buffer) <~reg_buffer>: Use default destructor.
7286 <m_registers, m_register_status>: Change type to
7287 std::unique_ptr.
7288 * regcache.c (reg_buffer::reg_buffer): Use new instead of
7289 XCNEWVEC.
7290
aac0d564
SM
72912018-06-09 Simon Marchi <simon.marchi@ericsson.com>
7292
7293 * common/common-regcache.h (enum register_status): Add
7294 underlying type "signed char".
7295 * regcache.h (reg_buffer) <m_register_status>: Change type to
7296 register_status *.
7297 * regcache.c (reg_buffer::reg_buffer): Alocate arrays of
7298 register_status instead of signed char.
7299 (reg_buffer::save): Use REG_UNKNOWN instead of 0.
7300 (reg_buffer::get_register_status): Remove cast.
7301 (readable_regcache::raw_read): Remove cast.
7302 (readable_regcache::cooked_read): Remove cast.
7303
77ad7394
TT
73042018-06-09 Tom Tromey <tom@tromey.com>
7305
7306 * source.c (reverse_search_command, forward_search_command): Use
7307 scoped_fd.
7308
191cca63
TT
73092018-06-09 Tom Tromey <tom@tromey.com>
7310
7311 * serial.c (serial_ops_p): Remove typedef. Don't declare VEC.
7312 (serial_ops_list): Now static, std::vector.
7313 (serial_interface_lookup, serial_add_interface): Update.
7314
c5d0225d
TT
73152018-06-09 Tom Tromey <tom@tromey.com>
7316
7317 * dwarf2read.c (process_cu_includes): Update.
7318 (process_full_comp_unit): Update.
7319 * dwarf2read.h (struct dwarf2_per_objfile) <just_read_cus>: Now a
7320 std::vector.
7321
aeab5128
PK
73222018-06-08 Paul Koning <paul_koning@dell.com>
7323
7324 PR gdb/23252
7325
7326 * python/python.c (do_start_initialization):
7327 Avoid call to internal Python API.
7328 (init__gdb_module): New function.
7329
5045b3d7
GB
73302018-06-08 Gary Benson <gbenson@redhat.com>
7331
7332 * linux-thread-db.c (valprint.h): New include.
7333 (struct check_thread_db_info): New structure.
7334 (check_thread_db_on_load, tdb_testinfo): New static globals.
7335 (check_thread_db, check_thread_db_callback): New functions.
7336 (try_thread_db_load_1): Run integrity checks if requested.
7337 (maintenance_check_libthread_db): New function.
7338 (_initialize_thread_db): Register "maint check libthread-db"
7339 and "maint set/show check-libthread-db".
7340 * NEWS: Mention the above new commands.
7341
2f4f025f
TT
73422018-06-08 Tom Tromey <tom@tromey.com>
7343
7344 * windows-nat.c (windows_nat_target::xfer_partial): "beneath" is
7345 now a method.
7346
343b0027
TT
73472018-06-08 Tom Tromey <tom@tromey.com>
7348
7349 * btrace.c (parse_xml_raw): Use gdb::unique_xmalloc_ptr.
7350
8dcc53b3
TT
73512018-06-08 Tom Tromey <tom@tromey.com>
7352
7353 * common/btrace-common.h (struct btrace_data): Add constructor,
7354 destructor, move assignment operator.
7355 <empty, clear, fini>: New methods.
7356 <format>: Initialize.
7357 (btrace_data_init, btrace_data_fini, btrace_data_clear)
7358 (btrace_data_empty): Don't declare.
7359 * common/btrace-common.c (btrace_data_init): Remove.
7360 (btrace_data::fini): Rename from btrace_data_fini.
7361 (btrace_data::empty): Rename from btrace_data_empty.
7362 (btrace_data::clear): Rename from btrace_data_clear. Return
7363 bool.
7364 * btrace.h (make_cleanup_btrace_data): Don't declare.
7365 * btrace.c (btrace_add_pc, btrace_stitch_trace, btrace_clear)
7366 (parse_xml_btrace): Update.
7367 (do_btrace_data_cleanup, make_cleanup_btrace_data): Remove.
7368 (maint_btrace_clear_packet_history_cmd): Update.
7369
a1740ee1
PA
73702018-06-07 Pedro Alves <palves@redhat.com>
7371
7372 * target.h (target_ops) <beneath>: Now a method. All references
7373 updated.
7374 (class target_stack): New.
7375 * target.c (g_target_stack): New.
7376 (g_current_top_target): Delete.
7377 (current_top_target): Get the top target out of g_target_stack.
7378 (target_stack::push, target_stack::unpush): New.
7379 (push_target, unpush_target): Reimplement.
7380 (target_is_pushed): Reimplement in terms of g_target_stack.
7381 (target_ops::beneath, target_stack::find_beneath): New.
7382
d6ca69cd
PA
73832018-06-07 Pedro Alves <palves@redhat.com>
7384
7385 * target.h (find_target_beneath): Delete declaration.
7386 * target.c (find_target_beneath): Delete definition.
7387 * aix-thread.c: All callers of find_target_beneath adjusted to
7388 call target_ops::beneath instead.
7389 * bsd-uthread.c: Likewise.
7390 * linux-thread-db.c: Likewise.
7391 * ravenscar-thread.c: Likewise.
7392 * sol-thread.c: Likewise.
7393 * spu-multiarch.c: Likewise.
7394
b6a8c27b
PA
73952018-06-07 Pedro Alves <palves@redhat.com>
7396
7397 * target.h (target_ops) <beneath>: Now a method. All references
7398 updated.
7399 (target_ops) <m_beneath>: New.
7400 * target.c (target_ops::beneath): New.
7401 * corelow.c: Adjust all references to target_ops::beneath.
7402 * linux-thread-db.c: Likewise.
7403 * make-target-delegates: Likewise.
7404 * record-btrace.c: Likewise.
7405 * record-full.c: Likewise.
7406 * remote.c: Likewise.
7407 * target.c: Likewise.
7408 * target-delegates.c: Regenerate.
7409
8b88a78e
PA
74102018-06-07 Pedro Alves <palves@redhat.com>
7411
7412 * target.h (target_stack): Delete.
7413 (current_top_target): Declare function.
7414 * target.c (target_stack): Delete.
7415 (g_current_top_target): New.
7416 (current_top_target): New function.
7417 * auxv.c: Use current_top_target instead of target_stack
7418 throughout.
7419 * avr-tdep.c: Likewise.
7420 * breakpoint.c: Likewise.
7421 * corefile.c: Likewise.
7422 * elfread.c: Likewise.
7423 * eval.c: Likewise.
7424 * exceptions.c: Likewise.
7425 * frame.c: Likewise.
7426 * gdbarch-selftests.c: Likewise.
7427 * gnu-v3-abi.c: Likewise.
7428 * ia64-tdep.c: Likewise.
7429 * ia64-vms-tdep.c: Likewise.
7430 * infcall.c: Likewise.
7431 * infcmd.c: Likewise.
7432 * infrun.c: Likewise.
7433 * linespec.c: Likewise.
7434 * linux-tdep.c: Likewise.
7435 * minsyms.c: Likewise.
7436 * ppc-linux-nat.c: Likewise.
7437 * ppc-linux-tdep.c: Likewise.
7438 * procfs.c: Likewise.
7439 * regcache.c: Likewise.
7440 * remote.c: Likewise.
7441 * rs6000-tdep.c: Likewise.
7442 * s390-linux-nat.c: Likewise.
7443 * s390-tdep.c: Likewise.
7444 * solib-aix.c: Likewise.
7445 * solib-darwin.c: Likewise.
7446 * solib-dsbt.c: Likewise.
7447 * solib-spu.c: Likewise.
7448 * solib-svr4.c: Likewise.
7449 * solib-target.c: Likewise.
7450 * sparc-tdep.c: Likewise.
7451 * sparc64-tdep.c: Likewise.
7452 * spu-tdep.c: Likewise.
7453 * symfile.c: Likewise.
7454 * symtab.c: Likewise.
7455 * target-descriptions.c: Likewise.
7456 * target-memory.c: Likewise.
7457 * target.c: Likewise.
7458 * target.h: Likewise.
7459 * tracefile-tfile.c: Likewise.
7460 * tracepoint.c: Likewise.
7461 * valops.c: Likewise.
7462 * valprint.c: Likewise.
7463 * value.c: Likewise.
7464 * windows-tdep.c: Likewise.
7465 * mi/mi-main.c: Likewise.
7466
c7110220
TT
74672018-06-07 Tom Tromey <tom@tromey.com>
7468
7469 * valprint.h (build_address_symbolic): Declare.
7470 * printcmd.c (print_address_symbolic): Update.
7471 (build_address_symbolic): Change "name" and "filename" to
7472 std::string.
7473 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
7474 Update.
7475 * defs.h (build_address_symbolic): Remove declaration.
7476
63bad7b6
AH
74772018-06-07 Alan Hayward <alan.hayward@arm.com>
7478
7479 * aarch64-tdep.c (AARCH64_SVE_V0_REGNUM): Add define.
7480 (aarch64_vnv_type): Add function.
7481 (aarch64_pseudo_register_name): Add V regs for SVE.
7482 (aarch64_pseudo_register_type): Likewise.
7483 (aarch64_pseudo_register_reggroup_p): Likewise.
7484 (aarch64_pseudo_read_value_2): Use V0 offset for SVE
7485 (aarch64_pseudo_read_value): Add V regs for SVE.
7486 (aarch64_pseudo_write_2): Use V0 offset for SVE
7487 (aarch64_pseudo_write): Add V regs for SVE.
7488 * aarch64-tdep.h (struct gdbarch_tdep): Add vnv_type.
7489
13e3c608
SDJ
74902018-06-06 Sergio Durigan Junior <sergiodj@redhat.com>
7491
7492 * arch/aarch64.h (sve_vq_from_vl): Guard with #ifndef.
7493 (sve_vl_from_vq): Likewise.
7494
c61b06a1
TT
74952018-06-05 Tom Tromey <tom@tromey.com>
7496
7497 * cli/cli-cmds.c (show_version): Update.
7498 * top.c (print_gdb_version): Add "interactive" parameter.
7499 Update.
7500 * main.c (captured_main_1): Update.
7501 * top.h (print_gdb_version): Add "interactive" parameter and a
7502 comment.
7503
115f7325
DM
75042018-06-05 David Malcolm <dmalcolm@redhat.com>
7505
7506 * common/enum-flags.h: Add trailing semicolon to example in
7507 comment.
7508
eb6af809
TT
75092018-06-05 Tom Tromey <tom@tromey.com>
7510
7511 PR cli/12326:
7512 * NEWS: Add entry about pager.
7513 * utils.c (pagination_disabled_for_command): New global.
7514 (prompt_for_continue): Allow "c" response to prompt.
7515 (reinitialize_more_filter): Clear
7516 pagination_disabled_for_command.
7517 (fputs_maybe_filtered): Check pagination_disabled_for_command.
7518
54d343a2
TT
75192018-06-04 Tom Tromey <tom@tromey.com>
7520
7521 * ada-lang.h (ada_lookup_symbol_list): Update.
7522 * ada-lang.c (resolve_subexp): Update.
7523 (symbols_are_identical_enums): Change type of syms. Remove nsyms
7524 parameter.
7525 (remove_extra_symbols, remove_irrelevant_renamings): Likewise.
7526 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Change
7527 results parameter to std::vector.
7528 (ada_iterate_over_symbols, ada_lookup_symbol, get_var_value):
7529 Update.
7530 * ada-exp.y (block_lookup): Update.
7531 (select_possible_type_sym): Change type of syms. Remove nsyms
7532 parameter.
7533 (write_var_or_type, write_name_assoc): Update.
7534
178d6a63
JB
75352018-06-04 Joel Brobecker <brobecker@adacore.com>
7536
7537 * windows-nat.c (windows_nat_target::xfer_partial): Return
7538 TARGET_XFER_E_IO if we need to delegate to the target beneath
7539 but BENEATH is NULL.
7540
baf00c2d
SM
75412018-06-04 Simon Marchi <simon.marchi@ericsson.com>
7542
7543 * Makefile.in (config.status): Add configure.nat as a
7544 dependency.
7545
214b073c
TT
75462018-06-04 Tom Tromey <tom@tromey.com>
7547
7548 * cp-name-parser.y (cpname_state): Add method declarations.
7549 (HANDLE_QUAL): Update.
7550 (cpname_state::d_grab, cpname_state::fill_comp)
7551 (cpname_state::make_operator, cpname_state::make_dtor)
7552 (cpname_state::make_builtin_type, cpname_state::make_name)
7553 (cpname_state::d_qualify, cpname_state::d_int_type)
7554 (cpname_state::d_unary, cpname_state::d_binary): Now methods.
7555 (%union): Move earlier.
7556
62b74cb8
AH
75572018-06-04 Alan Hayward <alan.hayward@arm.com>
7558
7559 * elfread.c (elf_symfile_segments): Use ELF_SECTION_IN_SEGMENT.
7560
3c5cd5c3
AH
75612018-06-04 Alan Hayward <alan.hayward@arm.com>
7562
7563 * aarch64-tdep.c (aarch64_pseudo_read_value_1): New helper func.
7564 (aarch64_pseudo_write_1): Likewise.
7565 (aarch64_pseudo_read_value): Use helper.
7566 (aarch64_pseudo_write): Likewise.
7567
59f413d5
PA
75682018-06-04 Pedro Alves <palves@redhat.com>
7569
7570 * darwin-nat.c (darwin_ops): Delete.
7571 (darwin_attach_pid): Use get_native_target.
7572
1332a140
AH
75732018-06-04 Alan Hayward <alan.hayward@arm.com>
7574
7575 * aarch64-tdep.c (aarch64_get_tdesc_vq): Use uint64_t for VQ.
7576 * aarch64-tdep.h (struct gdbarch_tdep): Likewise.
7577
ba2d2bb2
AH
75782018-06-04 Alan Hayward <alan.hayward@arm.com>
7579
7580 * aarch64-linux-nat.c (aarch64_linux_read_description): Support SVE.
7581 * aarch64-tdep.c (aarch64_get_tdesc_vq): New function.
7582 (aarch64_gdbarch_init): Check for SVE.
7583 * aarch64-tdep.h (gdbarch_tdep::has_sve): New function.
7584
75852018-06-04 Alan Hayward <alan.hayward@arm.com>
39bfb937
AH
7586
7587 * aarch64-tdep.c (aarch64_read_description): Use uint64_t for VQ.
7588 * aarch64-tdep.h (aarch64_read_description): Likewise.
7589 * arch/aarch64.c (aarch64_create_target_description): Likewise.
7590 * arch/aarch64.h (aarch64_create_target_description): Likewise.
7591 * features/aarch64-sve.c (create_feature_aarch64_sve): Likewise.
7592 * nat/aarch64-sve-linux-ptrace.c(aarch64_sve_get_vq): Likewise.
7593 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_vq): Likewise.
7594
41c60b4b
SM
75952018-06-02 Simon Marchi <simon.marchi@ericsson.com>
7596
7597 * value.c (value_fetch_lazy_bitfield): New.
7598 (value_fetch_lazy_memory): New.
7599 (value_fetch_lazy_register): New.
7600 (value_fetch_lazy): Factor out to smaller functions.
7601
7b640f72
TT
76022018-06-01 Tom Tromey <tom@tromey.com>
7603
7604 * cp-name-parser.y (backslashable, represented): Now const.
7605
98e69eb3
TT
76062018-06-01 Tom Tromey <tom@tromey.com>
7607
7608 * cp-name-parser.y: Include parser-defs.h.
7609 (parser_fprintf): Remove declaration.
7610
49265499
TT
76112018-06-01 Tom Tromey <tom@tromey.com>
7612
7613 * cp-name-parser.y: Use %pure-parser, %lex-param, and
7614 %parse-param.
7615 (lexptr, prev_lexptr, error_lexptr, global_errmsg, demangle_info)
7616 (global_result): Remove globals.
7617 (struct cpname_state): New.
7618 (yyparse): Don't declare.
7619 (yylex, yyerror): Move declarations after %union.
7620 (d_grab, fill_comp, make_operator, make_dtor, make_builtin_type)
7621 (make_name): Add state parameter.
7622 Update all callers.
7623 (d_qualify, d_int_type, d_unary, d_binary, parse_number) Add state
7624 parameter.
7625 (HANDLE_QUAL, HANDLE_SPECIAL, HANDLE_TOKEN2, HANDLE_TOKEN3):
7626 Update.
7627 (yylex): Add lvalp, state parameters.
7628 (yyerror): Add state parameter.
7629 (cp_demangled_name_to_comp): Update.
7630
55b6c984
TT
76312018-06-01 Tom Tromey <tom@tromey.com>
7632
7633 * cp-name-parser.y (parser_fprintf): Declare.
7634 (GDB_YY_REMAP_PREFIX): Define.
7635 Include yy-remap.h. Don't redefine yy* identifiers.
7636
3513a6bb
TT
76372018-06-01 Tom Tromey <tom@tromey.com>
7638
7639 * python/py-type.c (typy_legacy_template_argument): Update.
7640 * cp-support.h (cp_demangled_name_to_comp): Update.
7641 * cp-name-parser.y (cp_demangled_name_to_comp): Change errmsg
7642 parameter to be a "std::string *".
7643 (main): Update.
7644
e9cb46ab
L
76452018-06-01 H.J. Lu <hongjiu.lu@intel.com>
7646
7647 * ada-lex.l: Include "diagnostics.h" instead of
7648 "common/diagnostics.h".
7649 * unittests/environ-selftests.c: Likewise.
7650 * common/diagnostics.h: Moved to ../include.
7651
8e817061
JB
76522018-06-01 Joel Brobecker <brobecker@adacore.com>
7653
7654 * breakpoint.c (breakpoint_re_set): Temporarily force language_mode
7655 to language_mode_manual while calling breakpoint_re_set_one.
7656
a737d952
TT
76572018-06-01 Tom Tromey <tom@tromey.com>
7658
7659 * valops.c (value_cast_structs, destructor_name_p): Update.
7660 * symtab.c (gdb_mangle_name): Update.
7661 * stabsread.c (define_symbol, read_cpp_abbrev, read_baseclasses):
7662 Update.
7663 * p-valprint.c (pascal_object_is_vtbl_ptr_type)
7664 (pascal_object_print_value_fields, pascal_object_print_value):
7665 Update.
7666 * p-typeprint.c (pascal_type_print_derivation_info): Update.
7667 * linespec.c (find_methods): Update.
7668 * gdbtypes.h (type_name_no_tag): Remove.
7669 (type_name_or_error): Rename from type_name_no_tag_or_error.
7670 * gdbtypes.c (type_name_no_tag): Remove.
7671 (type_name_or_error): Rename from type_name_no_tag_or_error.
7672 (lookup_struct_elt_type, check_typedef): Update.
7673 * expprint.c (print_subexp_standard): Update.
7674 * dwarf2read.c (dwarf2_add_field, load_partial_dies): Update.
7675 * d-namespace.c (d_lookup_nested_symbol): Update.
7676 * cp-valprint.c (cp_is_vtbl_ptr_type, cp_print_value_fields)
7677 (cp_print_class_member): Update.
7678 * cp-namespace.c (cp_lookup_nested_symbol): Update.
7679 * completer.c (add_struct_fields): Update.
7680 * c-typeprint.c (cp_type_print_derivation_info)
7681 (c_type_print_varspec_prefix, c_type_print_base_struct_union):
7682 Update.
7683 * ada-lang.c (parse_old_style_renaming, xget_renaming_scope)
7684 (ada_prefer_type, ada_is_exception_sym): Update.
7685
e86ca25f
TT
76862018-06-01 Tom Tromey <tom@tromey.com>
7687
7688 * valops.c (enum_constant_from_type, value_namespace_elt)
7689 (value_maybe_namespace_elt): Update.
7690 * valarith.c (find_size_for_pointer_math): Update.
7691 * target-descriptions.c (make_gdb_type): Update.
7692 * symmisc.c (print_symbol): Update.
7693 * stabsread.c (define_symbol, read_type)
7694 (complain_about_struct_wipeout, add_undefined_type)
7695 (cleanup_undefined_types_1): Update.
7696 * rust-lang.c (rust_tuple_type_p, rust_slice_type_p)
7697 (rust_range_type_p, val_print_struct, rust_print_struct_def)
7698 (rust_internal_print_type, rust_composite_type)
7699 (rust_evaluate_funcall, rust_evaluate_subexp)
7700 (rust_inclusive_range_type_p): Update.
7701 * python/py-type.c (typy_get_tag): Update.
7702 * p-typeprint.c (pascal_type_print_base): Update.
7703 * mdebugread.c (parse_symbol, parse_type): Update.
7704 * m2-typeprint.c (m2_long_set, m2_record_fields, m2_enum):
7705 Update.
7706 * guile/scm-type.c (gdbscm_type_tag): Update.
7707 * go-lang.c (sixg_string_p): Update.
7708 * gnu-v3-abi.c (build_gdb_vtable_type, build_std_type_info_type):
7709 Update.
7710 * gdbtypes.h (struct main_type) <tag_name>: Remove.
7711 (TYPE_TAG_NAME): Remove.
7712 * gdbtypes.c (type_name_no_tag): Simplify.
7713 (check_typedef, check_types_equal, recursive_dump_type)
7714 (copy_type_recursive, arch_composite_type): Update.
7715 * f-typeprint.c (f_type_print_base): Update. Print "Type" prefix
7716 in summary mode when needed.
7717 * eval.c (evaluate_funcall): Update.
7718 * dwarf2read.c (fixup_go_packaging, read_structure_type)
7719 (process_structure_scope, read_enumeration_type)
7720 (read_namespace_type, read_module_type, determine_prefix): Update.
7721 * cp-support.c (inspect_type): Update.
7722 * coffread.c (process_coff_symbol, decode_base_type): Update.
7723 * c-varobj.c (c_is_path_expr_parent): Update.
7724 * c-typeprint.c (c_type_print_base_struct_union): Update.
7725 (c_type_print_base_1): Update. Print struct/class/union/enum in
7726 summary when using C language.
7727 * ax-gdb.c (gen_struct_ref, gen_namespace_elt)
7728 (gen_maybe_namespace_elt): Update.
7729 * ada-lang.c (ada_type_name): Simplify.
7730 (empty_record, ada_template_to_fixed_record_type_1)
7731 (template_to_static_fixed_type)
7732 (to_record_with_fixed_variant_part, ada_check_typedef): Update.
7733
c1ec8cea
TT
77342018-06-01 Tom Tromey <tom@tromey.com>
7735
7736 * dwarf2read.c (dwarf2_compute_name): Pass CU's language to
7737 c_print_type.
7738 * c-typeprint.c (c_print_type_1): Add "language" parameter.
7739 (c_print_type): Update.
7740 (c_print_type): New overload.
7741 (c_type_print_varspec_prefix, c_type_print_args)
7742 (c_type_print_varspec_suffix, c_print_type_no_offsets)
7743 (c_type_print_base_struct_union, c_type_print_base_1)
7744 (cp_type_print_method_args): Add "language" parameter.
7745 (c_type_print_base): Update.
7746 * c-lang.h (c_print_type): Add new overload.
7747
bc8453a7
TT
77482018-06-01 Tom Tromey <tom@tromey.com>
7749
7750 * typeprint.h (c_type_print_varspec_suffix): Don't declare.
7751 * c-typeprint.c (c_type_print_varspec_suffix): Now static.
7752
739e8682
AH
77532018-06-01 Alan Hayward <alan.hayward@arm.com>
7754
7755 * aarch64-tdep.c (aarch64_sve_register_names): New const
7756 var.
7757 * arch/aarch64.h (enum aarch64_regnum): Add SVE entries.
7758 (AARCH64_SVE_Z_REGS_NUM): New define.
7759 (AARCH64_SVE_P_REGS_NUM): Likewise.
7760 (AARCH64_SVE_NUM_REGS): Likewise.
7761
8a60efe7
UB
77622018-05-31 Uros Bizjak <ubizjak@gmail.com>
7763
7764 * nat/linux-ptrace.h [__alpha__]
7765 (GDB_ARCH_IS_TRAP_BRKPT, GDB_ARCH_IS_TRAP_HWBKPT): Remove
7766 definitions.
7767
4b2dfa9d
MR
77682018-05-31 Maciej W. Rozycki <macro@mips.com>
7769
7770 * arch-utils.c (gdbarch_info_fill): Set `default_byte_order' to
7771 the endianness selected.
7772 * NEWS: Document `set endian auto' mode operation update.
7773
122394f1
AH
77742018-05-31 Alan Hayward <alan.hayward@arm.com>
7775
7776 * Makefile.in: Add new header.
7777 * gdb/arch/aarch64.h (sve_vg_from_vl): New macro.
7778 (sve_vl_from_vg): Likewise.
7779 (sve_vq_from_vl): Likewise.
7780 (sve_vl_from_vq): Likewise.
7781 (sve_vq_from_vg): Likewise.
7782 (sve_vg_from_vq): Likewise.
7783 * configure.nat: Add new c file.
7784 * nat/aarch64-sve-linux-ptrace.c: New file.
7785 * nat/aarch64-sve-linux-ptrace.h: New file.
7786
95228a0d
AH
77872018-05-31 Alan Hayward <alan.hayward@arm.com>
7788
7789 * aarch64-linux-nat.c (aarch64_linux_read_description):
7790 Add parmeter zero.
7791 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
7792 Likewise.
7793 * aarch64-tdep.c (tdesc_aarch64_list): Add.
7794 (aarch64_read_description): Use VQ to index tdesc_aarch64_list.
7795 (aarch64_gdbarch_init): Add parmeter zero.
7796 * aarch64-tdep.h (aarch64_read_description): Add VQ parmeter.
7797 * arch/aarch64.c (aarch64_create_target_description): Check VQ.
7798 * arch/aarch64.h (aarch64_create_target_description): Add VQ.
7799 parmeter.
7800 * doc/gdb.texinfo: Describe SVE feature
7801 * features/aarch64-sve.c: New file.
7802
5969f0db
OJ
78032018-05-31 Omair Javaid <omair.javaid@linaro.org>
7804
7805 PR gdb/23210
7806 * gdbarch.sh (significant_addr_bit): Default to zero when
7807 not set by target architecture.
7808 * gdbarch.c: Re-generated.
7809 * utils.c (address_significant): Update.
7810
61367c61
JB
78112018-05-30 Joel Brobecker <brobecker@adacore.com>
7812
7813 * stack.c (func_command): Remove trailing newline in call to error.
7814
34a79281
SM
78152018-05-30 Simon Marchi <simon.marchi@ericsson.com>
7816
7817 * regcache.h (regcache_raw_collect): Remove, update callers to
7818 use regcache::raw_collect.
7819 * regcache.c (regcache_raw_collect): Remove.
7820
73e1c03f
SM
78212018-05-30 Simon Marchi <simon.marchi@ericsson.com>
7822
7823 * regcache.h (regcache_raw_supply): Remove, update callers to
7824 use detached_regcache::raw_supply.
7825 * regcache.c (regcache_raw_supply): Remove.
7826
e4c4a59b
SM
78272018-05-30 Simon Marchi <simon.marchi@ericsson.com>
7828
7829 * regcache.h (regcache_cooked_write_part): Remove, update
7830 callers to use regcache::cooked_write_part.
7831 * regcache.c (regcache_cooked_write_part): Remove.
7832
73bb0000
SM
78332018-05-30 Simon Marchi <simon.marchi@ericsson.com>
7834
7835 * regcache.h (regcache_cooked_read_part): Remove, update callers
7836 to use readable_regcache::cooked_read_part.
7837 * regcache.c (regcache_cooked_read_part): Remove.
7838
46a45e9d
SM
78392018-05-30 Simon Marchi <simon.marchi@ericsson.com>
7840
7841 * regcache.h (regcache_cooked_read_value): Remove, update
7842 callers to use readable_regcache::cooked_read_value.
7843 * regcache.c (regcache_cooked_read_value): Remove.
7844
b66f5587
SM
78452018-05-30 Simon Marchi <simon.marchi@ericsson.com>
7846
7847 * regcache.h (regcache_cooked_write): Remove, update callers to
7848 use regcache::cooked_write.
7849 * regcache.c (regcache_cooked_write): Remove.
7850
6aa7d724
SM
78512018-05-30 Simon Marchi <simon.marchi@ericsson.com>
7852
7853 * regcache.h (regcache_invalidate): Remove, update callers to
7854 use detached_regcache::invalidate instead.
7855 * regcache.c (regcache_invalidate): Remove.
7856
4f0420fd
SM
78572018-05-30 Simon Marchi <simon.marchi@ericsson.com>
7858
7859 * regcache.h (regcache_raw_write_part): Remove, update callers
7860 to use regcache::raw_write_part instead.
7861 * regcache.c (regcache_raw_write_part): Remove.
7862
502fe83e
SM
78632018-05-30 Simon Marchi <simon.marchi@ericsson.com>
7864
7865 * regcache.h (regcache_raw_read_part): Remove, update callers to
7866 use readable_regcache::raw_read_part instead.
7867 * regcache.c (regcache_raw_read_part): Remove.
7868
dca08e1f
SM
78692018-05-30 Simon Marchi <simon.marchi@ericsson.com>
7870
7871 * regcache.h (regcache_cooked_read): Remove, update callers to
7872 use readable_regcache::cooked_read instead.
7873 * regcache.c (regcache_cooked_read): Remove.
7874
10eaee5f
SM
78752018-05-30 Simon Marchi <simon.marchi@ericsson.com>
7876
7877 * regcache.h (regcache_raw_write): Remove, update callers to use
7878 regcache::raw_write instead.
7879 * regcache.c (regcache_raw_write): Remove.
7880
0b883586
SM
78812018-05-30 Simon Marchi <simon.marchi@ericsson.com>
7882
7883 * regcache.h (regcache_raw_read): Remove, update callers to use
7884 readable_regcache::raw_read instead.
7885 * regcache.c (regcache_raw_read): Remove.
7886
0b47d985
SM
78872018-05-30 Simon Marchi <simon.marchi@ericsson.com>
7888
7889 * regcache.h (regcache_raw_update): Remove, update callers to
7890 use readable_regcache::raw_update instead.
7891 * regcache.c (regcache_raw_update): Remove.
7892
0ec9f114
SM
78932018-05-30 Simon Marchi <simon.marchi@ericsson.com>
7894
7895 * regcache.h (regcache_register_status): Remove, update callers
7896 to use reg_buffer::get_register_status directly instead.
7897 * regcache.c (regcache_register_status): Remove.
7898
222312d3
SM
78992018-05-30 Simon Marchi <simon.marchi@ericsson.com>
7900
7901 * regcache.h (regcache_get_ptid): Remove, update all callers to
7902 call regcache::ptid instead.
7903 * regcache.c (regcache_get_ptid): Remove.
7904
fdbe37e3
SM
79052018-05-30 Simon Marchi <simon.marchi@ericsson.com>
7906
7907 * Makefile.in (ALL_TARGET_OBS): Add or1k-tdep.o.
7908
f7c6f423
PA
79092018-05-30 Pedro Alves <palves@redhat.com>
7910
7911 * common/common-exceptions.h (exception_rethrow): Use
7912 ATTRIBUTE_NORETURN.
7913
52941706
SM
79142018-05-29 Simon Marchi <simon.marchi@polymtl.ca>
7915
7916 * breakpoint.c (print_solib_event, check_status_catch_solib):
7917 Remove struct keyword in range-based for loops.
7918 * dbxread.c (find_corresponding_bincl_psymtab): Likewise.
7919 * dwarf2read.c (compute_delayed_physnames, rust_union_quirks);
7920 Likewise.
7921 * linespec.c (find_superclass_methods, search_minsyms_for_name):
7922 Likewise.
7923 * symfile.c (addr_info_make_relative): Likewise.
7924 * thread.c (value_in_thread_stack_temporaries): Likewise.
7925
bf2977b5
WP
79262018-06-12 Weimin Pan <weimin.pan@oracle.com>
7927
7928 PR gdb/16841
7929 * valops.c (value_struct_elt_for_reference): Call check_typedef on
7930 aggregate type to get its real type before accessing it.
7931
64cc34d8
WP
79322018-05-29 Weimin Pan <weimin.pan@oracle.com>
7933
7934 * minsyms.h (lookup_minimal_symbol_and_objfile): Remove declaration.
7935 * minsyms.c (lookup_minimal_symbol_and_objfile): Remove definition.
7936 * coff-pe-read.c (add_pe_forwarded_sym): Replace
7937 lookup_minimal_symbol_and_objfile with lookup_bound_minimal_symbol.
7938 * glibc-tdep.c (glibc_skip_solib_resolver): Likewise.
7939 * jit.c (jit_breakpoint_re_set_internal): Likewise.
7940 * printcmd.c (info_address_command): Likewise.
7941
e7ec8713
TT
79422018-05-29 Tom Tromey <tom@tromey.com>
7943
7944 * windows-nat.c (handle_exception): Update fall-through comment.
7945
bcb430e4
TT
79462018-05-29 Tom Tromey <tom@tromey.com>
7947
7948 * progspace.h (so_list_ptr): Remove typedef. Don't declare VEC.
7949 (struct program_space) <added_solibs>: Now a std::vector.
7950 * breakpoint.c (print_solib_event): Update.
7951 (check_status_catch_solib): Update.
7952 * progspace.c (clear_program_space_solib_cache): Update.
7953 * solib.c (update_solib_list): Update.
7954
894882e3
TT
79552018-05-29 Tom Tromey <tom@tromey.com>
7956
7957 * python/py-type.c (typy_richcompare): Update.
7958 * guile/scm-type.c (tyscm_equal_p_type_smob): Update.
7959 * gdbtypes.h (types_deeply_equal): Return bool.
7960 (types_equal): Likewise.
7961 * gdbtypes.c (type_equality_entry_d): Remove typedef. Don't
7962 declare VEC.
7963 (check_types_equal): Change worklist to std::vector. Return
7964 bool.
7965 (struct type_equality_entry): Add constructor.
7966 (compare_maybe_null_strings): Return bool.
7967 (check_types_worklist): Return bool. Change worklist to
7968 std::vector.
7969 (types_deeply_equal): Use std::vector.
7970 (types_equal): Return bool.
7971 (compare_maybe_null_strings): Simplify.
7972
10b2ded4
TT
79732018-05-29 Tom Tromey <tom@tromey.com>
7974
7975 * record-btrace.c (tp_t): Remove typedef. Don't declare VEC.
7976
4f7deebe
TT
79772018-05-29 Tom Tromey <tom@tromey.com>
7978
7979 * objc-lang.h: Don't include cp-support.h.
7980 * common/gdb_vecs.h (const_char_ptr): Remove typedef. Don't
7981 declare VEC.
7982
b8283aea
TT
79832018-05-27 Tom Tromey <tom@tromey.com>
7984
7985 * Makefile.in (DEPFILES): Don't reference REMOTE_OBS.
7986
41a883c8
TT
79872018-05-25 Tom Tromey <tom@tromey.com>
7988
7989 * value.c (value::location): Initialize.
7990
bf259e25
TT
79912018-05-25 Tom Tromey <tom@tromey.com>
7992
7993 * dbxread.c (init_bincl_list): Remove.
7994 (bincl_list): Now a std::vector.
7995 (bincls_allocated, next_bincl): Remove.
7996 (free_bincl_list, do_free_bincl_list_cleanup)
7997 (make_cleanup_free_bincl_list): Remove.
7998 (dbx_read_symtab, elfstab_build_psymtabs): Use scoped_restore,
7999 unique_xmalloc_ptr.
8000 (find_corresponding_bincl_psymtab, read_dbx_symtab): Update.
8001 (struct header_file_location): Add constructor.
8002 (add_bincl_to_list): Remove.
8003
d525a99b
TT
80042018-05-25 Tom Tromey <tom@tromey.com>
8005
8006 * tui/tui.c (tui_enable): Update.
8007 * mi/mi-interp.c (mi_interp::init): Update.
8008 * interps.h (class interp) <name>: New method.
8009 <m_name>: Rename from name.
8010 (~scoped_restore_interp): Update.
8011 * interps.c (interp::interp): Update.
8012 (interp_add, interp_set, interp_lookup_existing)
8013 (current_interp_named_p): Update.
8014
da505cff
TT
80152018-05-25 Tom Tromey <tom@tromey.com>
8016
8017 * interps.c (interp_name): Remove.
8018 * mi/mi-interp.c (mi_interp::init): Update.
8019 * interps.h (interp_name): Remove.
8020 (~scoped_restore_interp): Update.
8021 * tui/tui.c (tui_enable): Update.
8022
29f94340
TT
80232018-05-25 Tom Tromey <tom@tromey.com>
8024
8025 * utils.c (fputs_maybe_filtered): Update.
8026 * linespec.c (decode_line_full): Update.
8027 * mi/mi-interp.c (mi_on_normal_stop_1, mi_tsv_modified)
8028 (mi_print_breakpoint_for_event, mi_solib_loaded)
8029 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
8030 (mi_user_selected_context_changed): Update.
8031 * mi/mi-main.c (mi_execute_command): Update.
8032 * cli/cli-script.c (execute_control_command): Update.
8033 * python/python.c (execute_gdb_command): Update.
8034 * solib.c (info_sharedlibrary_command): Update.
8035 * interps.c (interp_ui_out): Remove.
8036 * interps.h (interp_ui_out): Remove.
8037
716b8bc5
TT
80382018-05-25 Tom Tromey <tom@tromey.com>
8039
8040 * tui/tui-interp.c (as_tui_interp): Use dynamic_cast.
8041 * mi/mi-interp.c (as_mi_interp): Use dynamic_cast.
8042 * cli/cli-interp.c (as_cli_interp): Use dynamic_cast.
8043
753ff9bd
TT
80442018-05-25 Tom Tromey <tom@tromey.com>
8045
8046 * cli/cli-interp.c (safe_execute_command): Use scoped_restore.
8047 * interps.c (interp_exec): Use scoped_restore.
8048
5ca3b260
TT
80492018-05-25 Tom Tromey <tom@tromey.com>
8050
8051 * remote.c (remote_target::remote_file_get): Use
8052 gdb::byte_vector.
8053 (remote_target::remote_file_put): Likewise.
8054
3173aa2f
TT
80552018-05-25 Tom Tromey <tom@tromey.com>
8056
8057 * coff-pe-read.c (struct read_pe_section_data) <section_name>: Now
8058 a std::string.
8059 (get_pe_section_index, add_pe_exported_sym): Update.
8060 (read_pe_exported_syms): Use gdb::def_vector.
8061
09a5e1b5
TT
80622018-05-25 Tom Tromey <tom@tromey.com>
8063
8064 * frame.c (remove_prev_frame): Remove.
8065 (get_prev_frame_if_no_cycle): Use TRY/CATCH.
8066
d8dab6c3
MR
80672018-05-25 Maciej W. Rozycki <macro@mips.com>
8068
8069 * mips-linux-tdep.h (mips_supply_fpregset, mips_fill_fpregset):
8070 Remove prototypes.
8071 * mips-linux-nat.c (supply_fpregset): Always call
8072 `mips64_supply_fpregset' rather than `mips_supply_fpregset'.
8073 (fill_fpregset): Always call `mips64_fill_fpregset' rather than
8074 `mips_fill_fpregset'.
8075 * mips-linux-tdep.c (mips_supply_fpregset)
8076 (mips_supply_fpregset_wrapper, mips_fill_fpregset)
8077 (mips_fill_fpregset_wrapper): Remove functions.
8078 (mips64_supply_fpregset, mips64_fill_fpregset): Update comments.
8079 (mips_linux_fpregset): Remove variable.
8080 (mips_linux_iterate_over_regset_sections): Use
8081 `mips64_linux_fpregset' in place of `mips_linux_fpregset'.
8082 (mips_linux_o32_sigframe_init): Remove comment.
8083
3c69da40
PA
80842018-05-25 Pedro Alves <palves@redhat.com>
8085
8086 * remote.c (struct vCont_action_support, MAXTHREADLISTRESULTS)
8087 (struct readahead_cache, struct packet_reg, struct
8088 remote_arch_state, class remote_state): Move higher up in the
8089 file.
8090 (remote_target::m_remote_state): Now an object instead of a pointer.
8091 (remote_target::get_remote_state): Adjust.
8092
39f0c204
AB
80932018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
8094
8095 * stack.c (select_and_print_frame): Delete.
8096 (struct function_bounds): Move struct within function.
8097 (func_command): Most content moved into new function
8098 find_frame_for_function, use new function, print result, add
8099 function comment.
8100 (find_frame_for_function): New function, now returns a result.
8101
d392224a
PW
81022018-05-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8103
8104 * stack.c (iterate_over_block_arg_vars): Fix comment.
8105 (print_frame_arg_vars): Pass stream in cb_data, not gdb_stdout.
8106
45f25d6c
AB
81072018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
8108
8109 PR gdb/23203
8110 * frame.c
8111 (scoped_restore_selected_frame::scoped_restore_selected_frame):
8112 Define.
8113 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
8114 Define.
8115 * frame.h (class scoped_restore_selected_frame): New class.
8116 * stack.c (print_frame_local_vars): Remove catching and rethrowing
8117 of any exception, use scoped_restore_selected_frame to restore the
8118 frame instead.
8119
da05d921
PA
81202018-05-24 Pedro Alves <palves@redhat.com>
8121
8122 * darwin-nat.h (darwin_nat_target::create_inferior): Mark with
8123 override.
8124
a8be540e
TT
81252018-05-23 Tom Tromey <tom@tromey.com>
8126
8127 * complaints.c (struct complaints): Remove.
8128 (symfile_complaint_book): Remove.
8129 (series): New global.
8130 (complaint_internal): Update.
8131 (clear_complaints): Update.
8132
ff1cf532
TT
81332018-05-23 Tom Tromey <tom@tromey.com>
8134
8135 * complaints.c (counters): New global.
8136 (struct complain): Remove.
8137 (struct complaints) <root>: Remove.
8138 (complaint_sentinel): Remove.
8139 (symfile_complaint_book): Update.
8140 (find_complaint) Remove.
8141 (complaint_internal, clear_complaints): Update.
8142
7ff88174
TT
81432018-05-23 Tom Tromey <tom@tromey.com>
8144
8145 * complaints.c (struct complain) <file, line>: Remove.
8146 (find_complaint): Remove file, line parameters.
8147 (complaint_internal): Update.
8148
de54e1a5
TT
81492018-05-23 Tom Tromey <tom@tromey.com>
8150
8151 * complaints.c (vcomplaint): Remove.
8152 (complaint_internal) Merge in contents of vcomplaint.
8153
2ac237e5
TT
81542018-05-23 Tom Tromey <tom@tromey.com>
8155
8156 * complaints.c (struct complaints) <explanation>: Remove.
8157 (symfile_explanations): Remove.
8158 (symfile_complaint_book): Update.
8159 (vcomplaint): Update.
8160 (struct explanation): Remove.
8161
b98664d3
TT
81622018-05-23 Tom Tromey <tom@tromey.com>
8163
8164 * complaints.c (symfile_complaints): Remove.
8165 (complaint_internal): Remove "complaints" parameter.
8166 (clear_complaints, vcomplaint): Remove "c" parameter.
8167 (get_complaints): Remove.
8168 * dwarf2read.c (dwarf2_statement_list_fits_in_line_number_section_complaint)
8169 (dwarf2_debug_line_missing_file_complaint)
8170 (dwarf2_debug_line_missing_end_sequence_complaint)
8171 (dwarf2_complex_location_expr_complaint)
8172 (dwarf2_const_value_length_mismatch_complaint)
8173 (dwarf2_section_buffer_overflow_complaint)
8174 (dwarf2_macro_malformed_definition_complaint)
8175 (dwarf2_invalid_attrib_class_complaint)
8176 (create_addrmap_from_index, dw2_symtab_iter_next)
8177 (dw2_expand_marked_cus)
8178 (dw2_debug_names_iterator::find_vec_in_debug_names)
8179 (dw2_debug_names_iterator::next, dw2_debug_names_iterator::next)
8180 (create_debug_type_hash_table, init_cutu_and_read_dies)
8181 (partial_die_parent_scope, add_partial_enumeration)
8182 (skip_one_die, fixup_go_packaging, quirk_rust_enum, process_die)
8183 (dwarf2_compute_name, dwarf2_physname, read_namespace_alias)
8184 (read_import_statement, read_file_scope, create_dwo_cu_reader)
8185 (create_cus_hash_table, create_dwp_hash_table)
8186 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
8187 (dwarf2_rnglists_process, dwarf2_ranges_process)
8188 (dwarf2_add_type_defn, dwarf2_attach_fields_to_type)
8189 (dwarf2_add_member_fn, get_alignment, maybe_set_alignment)
8190 (handle_struct_member_die, process_structure_scope)
8191 (read_array_type, read_common_block, read_module_type)
8192 (read_tag_pointer_type, read_typedef, read_base_type)
8193 (read_subrange_type, load_partial_dies, partial_die_info::read)
8194 (partial_die_info::read, partial_die_info::read)
8195 (partial_die_info::read, read_checked_initial_length_and_offset)
8196 (dwarf2_string_attr, read_formatted_entries)
8197 (dwarf_decode_line_header)
8198 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
8199 (new_symbol, dwarf2_const_value_attr, lookup_die_type)
8200 (read_type_die_1, determine_prefix, dwarf2_get_ref_die_offset)
8201 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
8202 (get_signatured_type, get_DW_AT_signature_type)
8203 (decode_locdesc, file_file_name, consume_improper_spaces)
8204 (skip_form_bytes, skip_unknown_opcode, dwarf_parse_macro_header)
8205 (dwarf_decode_macro_bytes, dwarf_decode_macros)
8206 (dwarf2_symbol_mark_computed, set_die_type)
8207 (read_attribute_value): Update.
8208 * stap-probe.c (handle_stap_probe, get_stap_base_address):
8209 Update.
8210 * dbxread.c (unknown_symtype_complaint)
8211 (lbrac_mismatch_complaint, repeated_header_complaint)
8212 (set_namestring, function_outside_compilation_unit_complaint)
8213 (read_dbx_symtab, process_one_symbol): Update.
8214 * gdbtypes.c (stub_noname_complaint): Update.
8215 * windows-nat.c (handle_unload_dll): Update.
8216 * coffread.c (coff_symtab_read, enter_linenos, decode_type)
8217 (decode_base_type): Update.
8218 * xcoffread.c (bf_notfound_complaint, ef_complaint)
8219 (eb_complaint, record_include_begin, record_include_end)
8220 (enter_line_range, xcoff_next_symbol_text, read_xcoff_symtab)
8221 (process_xcoff_symbol, read_symbol)
8222 (function_outside_compilation_unit_complaint)
8223 (scan_xcoff_symtab): Update.
8224 * machoread.c (macho_symtab_read, macho_add_oso_symfile): Update.
8225 * buildsym.c (finish_block_internal, make_blockvector)
8226 (end_symtab_get_static_block, augment_type_symtab): Update.
8227 * dtrace-probe.c (dtrace_process_dof)
8228 (dtrace_static_probe_ops::get_probes): Update.
8229 * complaints.h (struct complaint): Don't declare.
8230 (symfile_complaints): Remove.
8231 (complaint_internal): Remove "complaints" parameter.
8232 (complaint): Likewise.
8233 (clear_complaints): Likewise.
8234 * symfile.c (syms_from_objfile_1, finish_new_objfile)
8235 (reread_symbols): Update.
8236 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
8237 (dwarf2_frame_cache, decode_frame_entry): Update.
8238 * dwarf2loc.c (dwarf_reg_to_regnum): Update.
8239 * objc-lang.c (lookup_objc_class, lookup_child_selector)
8240 (info_selectors_command): Update.
8241 * macrotab.c (macro_include, check_for_redefinition)
8242 (macro_undef): Update.
8243 * objfiles.c (filter_overlapping_sections): Update.
8244 * stabsread.c (invalid_cpp_abbrev_complaint)
8245 (reg_value_complaint, stabs_general_complaint, dbx_lookup_type)
8246 (define_symbol, error_type, read_type, rs6000_builtin_type)
8247 (stabs_method_name_from_physname, read_member_functions)
8248 (read_cpp_abbrev, read_baseclasses, read_tilde_fields)
8249 (attach_fields_to_type, complain_about_struct_wipeout)
8250 (read_range_type, read_args, common_block_start)
8251 (common_block_end, cleanup_undefined_types_1, scan_file_globals):
8252 Update.
8253 * mdebugread.c (index_complaint, unknown_ext_complaint)
8254 (basic_type_complaint, bad_tag_guess_complaint)
8255 (bad_rfd_entry_complaint, unexpected_type_code_complaint)
8256 (reg_value_complaint, parse_symbol, parse_type, upgrade_type)
8257 (parse_procedure, parse_lines)
8258 (function_outside_compilation_unit_complaint)
8259 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref)
8260 (bad_tag_guess_complaint, reg_value_complaint): Update.
8261 * cp-support.c (demangled_name_complaint): Update.
8262 * macroscope.c (sal_macro_scope): Update.
8263 * dwarf-index-write.c (class debug_names): Update.
8264
4e9668d0
TT
82652018-05-23 Tom Tromey <tom@tromey.com>
8266
8267 * complaints.c (clear_complaints): Remove "noisy" parameter.
8268 * complaints.h (clear_complaints): Update.
8269 * symfile.c (syms_from_objfile_1, finish_new_objfile)
8270 (reread_symbols): Update.
8271
43ba33c7
TT
82722018-05-23 Tom Tromey <tom@tromey.com>
8273
8274 * complaints.c (enum complaint_series): Remove FIRST_MESSAGE,
8275 SUBSEQUENT_MESSAGE.
8276 (vcomplaint, clear_complaints): Update.
8277 (symfile_explanations): Remove some messages.
8278
2b9496b2
TT
82792018-05-23 Tom Tromey <tom@tromey.com>
8280
8281 * complaints.c (internal_complaint): Remove.
8282 * complaints.h (internal_complaint): Remove.
8283
35f1fea3
MR
82842018-05-22 Maciej W. Rozycki <macro@mips.com>
8285
8286 * i387-tdep.c (i387_collect_xsave): Make `i' unsigned.
8287
6b8edb51
PA
82882018-05-22 Pedro Alves <palves@redhat.com>
8289
8290 * remote-fileio.c (remote_fileio_reply, remote_fileio_ioerror)
8291 (remote_fileio_badfd, remote_fileio_return_errno)
8292 (remote_fileio_return_success, remote_fileio_func_open)
8293 (remote_fileio_func_open, remote_fileio_func_close)
8294 (remote_fileio_func_read, remote_fileio_func_write)
8295 (remote_fileio_func_lseek, remote_fileio_func_rename)
8296 (remote_fileio_func_unlink, remote_fileio_func_stat)
8297 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
8298 (remote_fileio_func_isatty, remote_fileio_func_system): Add
8299 remote_target parameter.
8300 (remote_fio_func_map) <func>: Add remote_target parameter.
8301 (do_remote_fileio_request, remote_fileio_request):
8302 * remote-fileio.h (remote_fileio_request):
8303 * remote-notif.c (remote_notif_ack, remote_notif_parse, ): Add
8304 remote_target parameter.
8305 (remote_notif_process, handle_notification): Adjust to pass down
8306 the remote.
8307 (remote_notif_state_allocate): Add remote_target parameter. Save
8308 it.
8309 * remote-notif.h (struct remote_target): Forward declare.
8310 (struct notif_client) <parse, ack, can_get_pending_events>: Add
8311 remote_target parameter.
8312 (struct remote_notif_state) <remote>: New field.
8313 (remote_notif_ack, remote_notif_parse): Add remote_target
8314 parameter.
8315 (remote_notif_state_allocate, remote_notif_state_allocate): Add
8316 remote_target parameter.
8317 * remote.c (OPAQUETHREADBYTES, threadref, gdb_ext_thread_info)
8318 (threads_listing_context, rmt_thread_action, protocol_feature)
8319 (packet_reg, stop_reply, stop_reply_p, enum packet_support)
8320 (packet_result, struct threads_listing_context, remote_state):
8321 Move definitions and declarations higher up.
8322 (remote_target) <~remote_target>: Declare.
8323 (remote_download_command_source, remote_file_put, remote_file_get)
8324 (remote_file_delete, remote_hostio_pread, remote_hostio_pwrite)
8325 (remote_hostio_pread_vFile, remote_hostio_send_command)
8326 (remote_hostio_set_filesystem, remote_hostio_open)
8327 (remote_hostio_close, remote_hostio_unlink, remote_state)
8328 (get_remote_state, get_remote_packet_size, get_memory_packet_size)
8329 (get_memory_write_packet_size, get_memory_read_packet_size)
8330 (append_pending_thread_resumptions, remote_detach_1)
8331 (append_resumption, remote_resume_with_vcont)
8332 (add_current_inferior_and_thread, wait_ns, wait_as)
8333 (process_stop_reply, remote_notice_new_inferior)
8334 (process_initial_stop_replies, remote_add_thread)
8335 (btrace_sync_conf, remote_btrace_maybe_reopen)
8336 (remove_new_fork_children, kill_new_fork_children)
8337 (discard_pending_stop_replies, stop_reply_queue_length)
8338 (check_pending_events_prevent_wildcard_vcont)
8339 (discard_pending_stop_replies_in_queue, stop_reply)
8340 (remote_notif_remove_queued_reply, stop_reply *queued_stop_reply)
8341 (peek_stop_reply, remote_parse_stop_reply, remote_stop_ns)
8342 (remote_interrupt_as, remote_interrupt_ns)
8343 (remote_get_noisy_reply, remote_query_attached)
8344 (remote_add_inferior, remote_current_thread, get_current_thread)
8345 (set_thread, set_general_thread, set_continue_thread)
8346 (set_general_process, write_ptid)
8347 (remote_unpack_thread_info_response, remote_get_threadinfo)
8348 (parse_threadlist_response, remote_get_threadlist)
8349 (remote_threadlist_iterator, remote_get_threads_with_ql)
8350 (remote_get_threads_with_qxfer)
8351 (remote_get_threads_with_qthreadinfo, extended_remote_restart)
8352 (get_offsets, remote_check_symbols, remote_supported_packet)
8353 (remote_query_supported, remote_packet_size)
8354 (remote_serial_quit_handler, remote_detach_pid)
8355 (remote_vcont_probe, remote_resume_with_hc)
8356 (send_interrupt_sequence, interrupt_query)
8357 (remote_notif_get_pending_events, fetch_register_using_p)
8358 (send_g_packet, process_g_packet, fetch_registers_using_g)
8359 (store_register_using_P, store_registers_using_G)
8360 (set_remote_traceframe, check_binary_download)
8361 (remote_write_bytes_aux, remote_write_bytes, remote_read_bytes_1)
8362 (remote_xfer_live_readonly_partial, remote_read_bytes)
8363 (remote_send_printf, remote_flash_write, readchar)
8364 (remote_serial_write, putpkt, putpkt_binary, skip_frame)
8365 (read_frame, getpkt, getpkt_or_notif_sane_1, getpkt_sane)
8366 (getpkt_or_notif_sane, remote_vkill, remote_kill_k)
8367 (extended_remote_disable_randomization, extended_remote_run)
8368 (send_environment_packet, extended_remote_environment_support)
8369 (extended_remote_set_inferior_cwd, remote_write_qxfer)
8370 (remote_read_qxfer, push_stop_reply, vcont_r_supported)
8371 (packet_command): Now methods of ...
8372 (remote_target): ... this class.
8373 (m_remote_state) <remote_target>: New field.
8374 (struct remote_state) <stop_reply_queue,
8375 remote_async_inferior_event_token, wait_forever_enabled_p>: New
8376 fields.
8377 (remote_state::remote_state): Allocate stop_reply_queue.
8378 (remote_state): Delete global.
8379 (get_remote_state_raw): Delete.
8380 (remote_target::get_remote_state): Allocate m_remote_state on
8381 demand.
8382 (get_current_remote_target): New.
8383 (remote_ops, extended_remote_ops): Delete.
8384 (wait_forever_enabled_p, remote_async_inferior_event_token):
8385 Delete, moved to struct remote_state.
8386 (remote_target::close): Delete self. Destruction bits split to
8387 ...
8388 (remote_target::~remote_target): ... this.
8389 (show_memory_packet_size): Adjust to use
8390 get_current_remote_target.
8391 (struct protocol_feature) <func>: Add remote_target parameter.
8392 All callers adjusted.
8393 (curr_quit_handler_target): New.
8394 (remote_serial_quit_handler): Reimplement.
8395 (remote_target::open_1): Adjust to use get_current_remote_target.
8396 Heap-allocate remote_target/extended_remote_target instances.
8397 (vcont_builder::vcont_builder): Add remote_target parameter, and
8398 save it in m_remote. All callers adjusted.
8399 (vcont_builder::m_remote): New field.
8400 (vcont_builder::restart, vcont_builder::flush)
8401 (vcont_builder::push_action): Use it.
8402 (remote_target::commit_resume): Use it.
8403 (struct queue_iter_param) <remote>: New field.
8404 (remote_target::remove_new_fork_children): Fill in 'remote' field.
8405 (check_pending_event_prevents_wildcard_vcont_callback_data): New.
8406 (check_pending_event_prevents_wildcard_vcont_callback)
8407 (remote_target::check_pending_events_prevent_wildcard_vcont)
8408 (remote_target::discard_pending_stop_replies)
8409 (remote_target::discard_pending_stop_replies_in_queue)
8410 (remote_target::remote_notif_remove_queued_reply): Fill in
8411 'remote' field.
8412 (remote_notif_get_pending_events): New.
8413 (remote_target::readchar, remote_target::remote_serial_write):
8414 Save/restore curr_quit_handler_target.
8415 (putpkt): New.
8416 (kill_new_fork_children): Fill in 'remote' field.
8417 (packet_command): Use get_current_remote_target, defer to
8418 remote_target method of same name.
8419 (scoped_remote_fd::scoped_remote_fd): Add 'remote_target'
8420 parameter, and save it in m_remote. All callers adjusted.
8421 (scoped_remote_fd::release): Use m_remote.
8422 (scoped_remote_fd::m_remote): New field.
8423 (remote_file_put, remote_file_get, remote_file_delete): Use
8424 get_current_remote_target, defer to remote_target method of same
8425 name.
8426 (remote_btrace_reset): Add remote_state paremeter. Update all
8427 callers.
8428 (remote_async_inferior_event_handler). Pass down 'data'.
8429 (remote_new_objfile): Use get_current_remote_target.
8430 (remote_target::vcont_r_supported): New.
8431 (set_range_stepping): Use get_current_remote_target and
8432 remote_target::vcont_r_supported.
8433 (_initialize_remote): Don't allocate 'remote_state' and
8434 'stop_reply_queue' globals.
8435 * remote.h (struct remote_target): Forward declare.
8436 (getpkt, putpkt, remote_notif_get_pending_events): Add
8437 'remote_target' parameter.
8438
f5db4863
PA
84392018-05-22 Pedro Alves <palves@redhat.com>
8440
8441 * remote.c (vcont_builder): Now a class. Make all data members
8442 private.
8443 (vcont_builder) <vcont_builder, restart, flush, push_action>:
8444 Declare methods.
8445 (vcont_builder_restart): Rename to ...
8446 (vcont_builder::restart): ... this.
8447 (vcont_builder_flush): Rename to ...
8448 (vcont_builder::flush): ... this.
8449 (vcont_builder_push_action): Rename to ...
8450 (vcont_builder::push_action): ... this.
8451 (remote_target::commit_resume): Adjust.
8452
cc0be08f
PA
84532018-05-22 Pedro Alves <palves@redhat.com>
8454
8455 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE): Rename to ...
8456 (DEFAULT_MAX_MEMORY_PACKET_SIZE_FIXED): ... this.
8457 (get_fixed_memory_packet_size): New.
8458 (get_memory_packet_size): Use it.
8459 (set_memory_packet_size): Don't override the config size with
8460 DEFAULT_MAX_MEMORY_PACKET_SIZE.
8461 (show_memory_packet_size): Use get_fixed_memory_packet_size.
8462 Don't refer to get_memory_packet_size if not connected to a remote
8463 target. Show "(default)" if configured size is 0.
8464
9607784a
PA
84652018-05-22 Pedro Alves <palves@redhat.com>
8466
8467 * remote.c (remote_target::mourn_inferior): Move
8468 discard_pending_stop_replies call here from ...
8469 (_initialize_remote): ... here.
8470
0e9a6b2f
PA
84712018-05-22 Pedro Alves <palves@redhat.com>
8472
8473 * remote.c (compare_section_command): Remove set_general_process
8474 call.
8475
43c3a0e4
PA
84762018-05-22 Pedro Alves <palves@redhat.com>
8477
8478 * remote.c (struct packet_reg, struct remote_arch_state):
8479 Move higher up in the file.
8480 (remote_state) <m_arch_states>: Store remote_arch_state values
8481 instead of remote_arch_state pointers.
8482 (remote_state::get_remote_arch_state): Adjust.
8483
9d6eea31
PA
84842018-05-22 Pedro Alves <palves@redhat.com>
8485
8486 * remote.c: Include <unordered_map>.
8487 (remote_state): Now a class.
8488 (remote_state) <get_remote_arch_state>: Declare method.
8489 <get_remote_arch_state>: New field.
8490 (remote_arch_state) <remote_arch_state>: Declare ctor.
8491 <regs>: Now a unique_ptr.
8492 (remote_gdbarch_data_handle): Delete.
8493 (get_remote_arch_state): Delete.
8494 (remote_state::get_remote_arch_state): New.
8495 (get_remote_state): Adjust to call remote_state's
8496 get_remote_arch_state method.
8497 (init_remote_state): Delete, bits factored out to ...
8498 (remote_arch_state::remote_arch_state): ... this new method.
8499 (get_remote_packet_size, get_memory_packet_size)
8500 (process_g_packet, remote_target::fetch_registers)
8501 (remote_target::prepare_to_store, store_registers_using_G)
8502 (remote_target::store_registers, remote_target::get_trace_status):
8503 Adjust to call remote_state's method.
8504 (_initialize_remote): Remove reference to
8505 remote_gdbarch_data_handle.
8506
dd194f6b
PA
85072018-05-22 Pedro Alves <palves@redhat.com>
8508
8509 * remote.c (struct readahead_cache) <invalidate, invalidate_fd,
8510 pread>: New method declarations.
8511 (remote_target::open_1): Adjust.
8512 (readahead_cache_invalidate): Rename to ...
8513 (readahead_cache::invalidate): ... this, and adjust to be a class
8514 method.
8515 (readahead_cache_invalidate_fd): Rename to ...
8516 (readahead_cache::invalidate_fd): ... this, and adjust to be a
8517 class method.
8518 (remote_hostio_pwrite): Adjust.
8519 (remote_hostio_pread_from_cache): Rename to ...
8520 (readahead_cache::pread): ... this, and adjust to be a class
8521 method.
8522 (remote_hostio_close): Adjust.
8523
440b7aec
PA
85242018-05-22 Pedro Alves <palves@redhat.com>
8525
8526 * remote.c (remote_hostio_close_cleanup): Delete.
8527 (class scoped_remote_fd): New.
8528 (remote_file_put, remote_file_get): Use it.
8529
de44f5a7
PA
85302018-05-22 Pedro Alves <palves@redhat.com>
8531
8532 (struct vCont_action_support): Use bool and initialize all fields.
8533 (struct readahead_cache): Initialize all fields.
8534 (remote_state): Use bool and initialize all fields.
8535 (remote_state::remote_state, remote_state::~remote_state): New.
8536 (new_remote_state): Delete.
8537 (_initialize_remote): Use new to allocate remote_state.
8538
b1b60145
PA
85392018-05-22 Pedro Alves <palves@redhat.com>
8540 張俊芝 <zjz@zjz.name>
8541
8542 PR gdb/22973
8543 * c-exp.y: Include "c-support.h".
8544 (parse_number, c_parse_escape, lex_one_token): Use TOLOWER instead
8545 of tolower. Use c_ident_is_alpha to scan names.
8546 * c-lang.c: Include "c-support.h".
8547 (convert_ucn, convert_octal, convert_hex, convert_escape): Use
8548 ISXDIGIT instead of isxdigit and ISDIGIT instead of isdigit.
8549 * c-support.h: New file, with bits factored out from ...
8550 * cp-name-parser.y: ... this file.
8551 Include "c-support.h".
8552 (cp_ident_is_alpha, cp_ident_is_alnum): Deleted, moved to
8553 c-support.h and renamed.
8554 (symbol_end, yylex): Adjust.
8555
0ec848ad
PFC
85562018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
8557
8558 * arch/ppc-linux-common.c (ppc_linux_has_isa205): Change the
8559 parameter type to CORE_ADDR.
8560 * arch/ppc-linux-common.h (ppc_linux_has_isa205): Change the
8561 parameter type in declaration to CORE_ADDR.
8562 * ppc-linux-tdep.c (ppc_linux_core_read_description): Call
8563 target_auxv_search to get AT_HWCAP and use the result to get the
8564 target description.
8565 * ppc-linux-nat.c (ppc_linux_get_hwcap): Change the return type
8566 to CORE_ADDR. Remove the cast of the return value to unsigned
8567 long. Fix error predicate of target_auxv_search.
8568 (ppc_linux_nat_target::read_description): Change the type of the
8569 hwcap variable to CORE_ADDR.
8570
0fb2aaa1
PFC
85712018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
8572
8573 * rs6000-tdep.c (rs6000_gdbarch_init): Assign 1 to have_dfp only
8574 if the size of fpscr is larger than 32 bits.
8575
2c3305f6
PFC
85762018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
8577
8578 * ppc-linux-tdep.c (ppc_linux_vsxregset): New function.
8579 (ppc32_linux_vsxregmap): New global.
8580 (ppc32_linux_vsxregset): Initialize with ppc32_linux_vsxregmap,
8581 regcache_supply_regset, and regcache_collect_regset.
8582 * ppc-linux-tdep.h (ppc_linux_vsxregset): Declare.
8583 * ppc-linux-nat.c (supply_vsxregset, fill_vsxregset): Remove.
8584 (fetch_vsx_register, store_vsx_register): Remove.
8585 (fetch_vsx_registers): Add regno parameter. Get regset using
8586 ppc_linux_vsxregset. Use regset to supply registers.
8587 (store_vsx_registers): Add regno parameter. Get regset using
8588 ppc_linux_vsxregset. Use regset to collect registers.
8589 (fetch_register): Call fetch_vsx_registers instead of
8590 fetch_vsx_register.
8591 (store_register): Call store_vsx_registers instead of
8592 store_vsx_register.
8593 (fetch_ppc_registers): Call fetch_vsx_registers with -1 for the
8594 new regno parameter.
8595 (store_ppc_registers): Call store_vsx_registers with -1 for the
8596 new regno parameter.
8597 * rs6000-tdep.c (ppc_vsx_support_p, ppc_supply_vsxreget)
8598 (ppc_collect_vsxregset): Remove.
8599
1d75a658
PFC
86002018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
8601
8602 * ppc-tdep.h (struct ppc_reg_offsets): Remove vector register
8603 offset fields.
8604 * ppc-fbsd-tdep.c (ppc32_fbsd_reg_offsets): Remove initializers
8605 for vector register offset fields.
8606 (ppc64_fbsd_reg_offsets): Likewise.
8607 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
8608 to vector register offset fields.
8609 * ppc-obsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
8610 to vector register offset fields.
8611 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Remove assignment to
8612 vector register offset fields.
8613 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Remove
8614 initializers for vector register offset fields.
8615 (rs6000_aix64_reg_offsets): Likewise.
8616 * rs6000-tdep.c (ppc_vrreg_offset): Remove.
8617 (ppc_supply_vrregset): Remove.
8618 (ppc_collect_vrregset): Remove.
8619 * ppc-linux-tdep.c (ppc_linux_collect_vrregset): New function.
8620 (ppc_linux_vrregset) : New function.
8621 (ppc32_le_linux_vrregmap, ppc32_be_linux_vrregmap)
8622 (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): New globals.
8623 (ppc32_linux_vrregset): Remove.
8624 (ppc_linux_iterate_over_regset_sections): Call ppc_linux_vrregset
8625 and use result instead of ppc32_linux_vrregset.
8626 (ppc32_linux_reg_offsets): Remove initializers for vector register
8627 offset fields.
8628 (ppc64_linux_reg_offsets): Likewise.
8629 * ppc-linux-tdep.h (ppc_linux_vrregset): New declaration.
8630 * ppc-linux-nat.c: Include regset.h.
8631 (gdb_vrregset_t): Adjust comment to account for little-endian
8632 mode.
8633 (supply_vrregset, fill_vrregset): Remove.
8634 (fetch_altivec_register, store_altivec_register): Remove.
8635 (fetch_altivec_registers): Add regno parameter. Get regset using
8636 ppc_linux_vrregset. Use regset to supply registers.
8637 (store_altivec_registers): Add regno parameter. Get regset using
8638 ppc_linux_vrregset. Use regset to collect registers.
8639 (fetch_register): Call fetch_altivec_registers instead of
8640 fetch_altivec_register.
8641 (store_register): Call store_altivec_registers instead of
8642 store_altivec_register.
8643 (fetch_ppc_registers): Call fetch_altivec_registers with -1 for
8644 the new regno parameter.
8645 (store_ppc_registers): Call store_altivec_registers with -1 for
8646 the new regno parameter.
8647
d078308a
PFC
86482018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
8649
8650 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_VRREGSET)
8651 (PPC_LINUX_SIZEOF_VSXREGSET): Define.
8652 * ppc-linux-nat.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
8653 (gdb_vrregset_t): Change array type size to
8654 PPC_LINUX_SIZEOF_VRREGSET.
8655 (gdb_vsxregset_t): Change array type size to
8656 PPC_LINUX_SIZEOF_VSXREGSET.
8657 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections):
8658 Change integer literals to PPC_LINUX_SIZEOF_VRREGSET and
8659 PPC_LINUX_SIZEOF_VSXREGSET.
8660
2e077f5e
PFC
86612018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
8662
8663 * configure.nat <linux powerpc>: Add ppc-linux.o to NATDEPFILES.
8664 * ppc-linux-nat.c (ppc_linux_target_wordsize): Move to
8665 nat/ppc-linux.c.
8666 (ppc_linux_nat_target::auxv_parse): Get thread id tid. Call
8667 ppc_linux_target_wordsize with tid.
8668 (ppc_linux_nat_target::read_description): Call ppc_linux_target
8669 wordsize with tid.
8670 * nat/ppc-linux.c: Include nat/gdb_ptrace.h.
8671 (ppc64_64bit_inferior_p): Add static and inline specifiers.
8672 (ppc_linux_target_wordsize): Move here from ppc-linux-nat.c. Add
8673 tid parameter. Remove static specifier.
8674 * nat/ppc-linux.h (ppc64_64bit_inferior_p): Remove declaration.
8675 (ppc_linux_target_wordsize): New declaration.
8676
bd64614e
PFC
86772018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
8678
8679 * arch/ppc-linux-common.c: New file.
8680 * arch/ppc-linux-common.h: New file.
8681 * arch/ppc-linux-tdesc.h: New file.
8682 * configure.tgt (powerpc*-*-linux*): Add arch/ppc-linux-common.o.
8683 * Makefile.in (ALL_TARGET_OBS): Add arch/ppc-linux-common.o.
8684 (HFILES_NO_SRCDIR): Add arch/ppc-linux-common.h and
8685 arch/ppc-linux-tdesc.h.
8686 * ppc-linux-nat.c: Include arch/ppc-linux-common.h and
8687 arch/ppc-linux-tdesc.h.
8688 (ppc_linux_nat_target::read_description): Remove target
8689 description matching code. Fill a ppc_linux_features struct and
8690 call ppc_linux_match_description with it. Move comment about ISA
8691 2.05 to ppc-linux-common.c.
8692 * ppc-linux-tdep.c: Include arch/ppc-linux-common.h and
8693 arch/ppc-linux-tdesc.h.
8694 (ppc_linux_core_read_description): Remove target description
8695 matching code. Fill a ppc_linux_features struct and call
8696 ppc_linux_match_description with it.
8697 * ppc-linux-tdep.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
8698 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
8699 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
8700 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
8701 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
8702 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
8703 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
8704 (tdesc_powerpc_e500l): Remove.
8705
241db429
JB
87062018-05-22 Joel Brobecker <brobecker@adacore.com>
8707
8708 * ada-lang.c (catch_assert_command): Pass empty string instead
8709 of NULL for excep_string argument.
8710
75d74cca
MR
87112018-05-22 Maciej W. Rozycki <macro@mips.com>
8712
8713 * mips-linux-nat.c (mips64_linux_register_addr): Return -1 if
8714 the width of the requested register exceeds the width of the
8715 `ptrace' data type.
8716
122b53ea
TT
87172018-05-21 Tom Tromey <tom@tromey.com>
8718
8719 * printcmd.c (output_command): Remove.
8720 (output_command_const): Rename to output_command.
8721 * valprint.h (output_command): Rename from output_command_const.
8722 * tracepoint.c (trace_dump_actions): Call output_command.
8723
bc18fbb5
TT
87242018-05-21 Tom Tromey <tom@tromey.com>
8725
8726 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
8727 (mi_cmd_catch_exception, mi_cmd_catch_handlers): Update.
8728 * ada-lang.h (create_ada_exception_catchpoint): Update.
8729 * ada-lang.c (struct ada_catchpoint) <excep_string>: Now a
8730 std::string.
8731 (create_excep_cond_exprs, ~ada_catchpoint)
8732 (should_stop_exception, print_one_exception)
8733 (print_mention_exception, print_recreate_exception): Update.
8734 (ada_get_next_arg): Remove.
8735 (catch_ada_exception_command_split): Use std::string. Change type
8736 of "excep_string", "cond_string".
8737 (catch_ada_exception_command): Update.
8738 (create_ada_exception_catchpoint): Change type of excep_string.
8739 (ada_exception_sal): Remove excep_string parameter.
8740 (~ada_catchpoint): Remove.
8741
790217f6
TT
87422018-05-21 Tom Tromey <tom@tromey.com>
8743
8744 * ada-lang.c (ada_collect_symbol_completion_matches): Remove
8745 cleanup.
8746
6f46ac85
TT
87472018-05-21 Tom Tromey <tom@tromey.com>
8748
8749 * ada-lang.c (ada_exception_message_1, ada_exception_message):
8750 Return unique_xmalloc_ptr.
8751 (print_it_exception): Update.
8752
15b6611c
TT
87532018-05-21 Tom Tromey <tom@tromey.com>
8754
8755 * tracepoint.c (trace_dump_actions): Use std::string.
8756
c0c9f665
TT
87572018-05-21 Tom Tromey <tom@tromey.com>
8758
8759 * symfile.c (reread_symbols): Use std::string for original_name.
8760
22ca247e
TT
87612018-05-21 Tom Tromey <tom@tromey.com>
8762
8763 * dwarf2read.c (dwarf2_read_debug_names): Use std::unique_ptr.
8764 (mapped_index_base): Use DISABLE_COPY_AND_ASSIGN. Default
8765 constructor.
8766
184cde75
SM
87672018-05-20 Simon Marchi <simon.marchi@polymtl.ca>
8768
8769 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Rename the wrong
8770 instance to...
8771 (HAVE_IS_TRIVIALLY_CONSTRUCTIBLE): ... this.
8772 * objfiles.c (get_objfile_bfd_data): Allocate
8773 objfile_per_bfd_storage with obstack_new when allocating on
8774 obstack.
8775
e39db4db
SM
87762018-05-20 Simon Marchi <simon.marchi@ericsson.com>
8777
8778 * ada-lang.c (cache_symbol): Use XOBNEW and/or XOBNEWVEC and/or
8779 OBSTACK_ZALLOC.
8780 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
8781 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
8782 * mdebugread.c (mdebug_build_psymtabs): Likewise.
8783 (add_pending): Likewise.
8784 (parse_symbol): Likewise.
8785 (parse_partial_symbols): Likewise.
8786 (psymtab_to_symtab_1): Likewise.
8787 (new_psymtab): Likewise.
8788 (elfmdebug_build_psymtabs): Likewise.
8789 * minsyms.c (terminate_minimal_symbol_table): Likewise.
8790 * objfiles.c (get_objfile_bfd_data): Likewise.
8791 (objfile_register_static_link): Likewise.
8792 * psymtab.c (allocate_psymtab): Likewise.
8793 * stabsread.c (read_member_functions): Likewise.
8794 * xcoffread.c (xcoff_end_psymtab): Likewise.
8795
284a0e3c
SM
87962018-05-20 Simon Marchi <simon.marchi@ericsson.com>
8797
8798 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Define if
8799 compiler supports std::is_trivially_constructible.
8800 * common/poison.h: Include obstack.h.
8801 (IsMallocable): Define to is_trivially_constructible if the
8802 compiler supports it, define to true_type otherwise.
8803 (xobnew): New.
8804 (XOBNEW): Redefine.
8805 (xobnewvec): New.
8806 (XOBNEWVEC): Redefine.
8807 * gdb_obstack.h (obstack_zalloc): New.
8808 (OBSTACK_ZALLOC): Redefine.
8809 (obstack_calloc): New.
8810 (OBSTACK_CALLOC): Redefine.
8811 (obstack_new): New.
8812 * gdbarch.sh: Include gdb_obstack in gdbarch.h.
8813 (gdbarch_obstack): New declaration in gdbarch.h, definition in
8814 gdbarch.c.
8815 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Use
8816 obstack_calloc/obstack_zalloc.
8817 (gdbarch_obstack_zalloc): Remove.
8818 * target-descriptions.c (tdesc_data_init): Use obstack_new.
8819
59f66be3
PW
88202018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8821
8822 * stack.c (backtrace_command_1): Remove useless variable int i.
8823
50c65c2d
PW
88242018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8825
8826 * stack.c (print_frame_info): Fix comment.
8827
7ff8cb8c
TT
88282018-05-18 Tom Tromey <tom@tromey.com>
8829
8830 * dwarf2read.c (struct dwz_file): Add constructor, initializers.
8831 <dwz_bfd>: Now a gdb_bfd_ref_ptr.
8832 (~dwarf2_per_objfile): Update
8833 (dwarf2_get_dwz_file): Use new.
8834 * dwarf2read.h (struct dwarf2_per_objfile) <dwz_file>: Now a
8835 unique_ptr.
8836
400174b1
TT
88372018-05-18 Tom Tromey <tom@tromey.com>
8838
8839 * dwarf2read.h (struct dwarf2_per_objfile) <dwp_file>: Now a
8840 unique_ptr.
8841 * dwarf2read.c (struct dwp_file): Add constructor and
8842 initializers.
8843 (open_and_init_dwp_file): Return a unique_ptr.
8844 (dwarf2_per_objfile, create_dwp_hash_table)
8845 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2)
8846 (lookup_dwo_unit_in_dwp): Update.
8847 (open_and_init_dwp_file, get_dwp_file): Update.
8848
3063847f
TT
88492018-05-18 Tom Tromey <tom@tromey.com>
8850
8851 * dwarf2read.c (dwarf2_per_objfile): Update.
8852 (struct mapped_index): Add initializers.
8853 (dwarf2_read_index): Use new.
8854 (dw2_symtab_iter_init): Update.
8855 * dwarf2read.h (struct dwarf2_per_objfile) <index_table>: Now a
8856 unique_ptr.
8857
d3d02dee
SM
88582018-05-18 Simon Marchi <simon.marchi@ericsson.com>
8859
8860 * dwarf2read.c (mapped_index) <total_size>: Remove.
8861
1d143c36
SM
88622018-05-18 Simon Marchi <simon.marchi@ericsson.com>
8863
8864 * unittests/format_pieces-selftests.c (test_format_specifier):
8865 Add ARI comments.
8866
ce1e8424
TT
88672018-05-18 Tom Tromey <tom@tromey.com>
8868
8869 * c-typeprint.c (maybe_print_hole): New function.
8870 (c_print_type_struct_field_offset): Update.
8871 (c_type_print_base_struct_union): Call maybe_print_hole.
8872
ddfe970e
KS
88732018-05-17 Keith Seitz <keiths@redhat.com>
8874
8875 * breakpoint.c (build_bpstat_chain): New function, moved from
8876 bpstat_stop_status.
8877 (bpstat_stop_status): Add optional parameter, `stop_chain'.
8878 If no stop chain is passed, call build_bpstat_chain to build it.
8879 * breakpoint.h (build_bpstat_chain): Declare.
8880 (bpstat_stop_status): Move documentation here from breakpoint.c.
8881 * infrun.c (handle_signal_stop): Before eliding inlined frames,
8882 build the stop chain and pass it to skip_inline_frames.
8883 Pass this stop chain to bpstat_stop_status.
8884 * inline-frame.c: Include breakpoint.h.
8885 (stopped_by_user_bp_inline_frame): New function.
8886 (skip_inline_frames): Add parameter `stop_chain'.
8887 Move documention to inline-frame.h.
8888 If non-NULL, use stopped_by_user_bp_inline_frame to determine
8889 whether the frame should be elided.
8890 * inline-frame.h (skip_inline_frames): Add parameter `stop_chain'.
8891 Add moved documentation and update for new parameter.
8892
b17992c1
SM
88932018-05-17 Simon Marchi <simon.marchi@ericsson.com>
8894
8895 PR cli/14975
8896 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
8897 unittests/format_pieces-selftests.c.
8898 * common/format.h (format_piece) <operator==>: New.
8899 (format_pieces) <operator[]>: Remove.
8900 * common/format.c (format_pieces::format_pieces): Handle \e.
8901 * unittests/format_pieces-selftests.c: New.
8902
58f0c718
TT
89032018-05-17 Tom Tromey <tom@tromey.com>
8904
8905 PR symtab/23010:
8906 * dwarf2read.c (load_cu, dw2_do_instantiate_symtab)
8907 (dw2_instantiate_symtab): Add skip_partial parameter.
8908 (dw2_find_last_source_symtab, dw2_map_expand_apply)
8909 (dw2_lookup_symbol, dw2_expand_symtabs_for_function)
8910 (dw2_expand_all_symtabs, dw2_expand_symtabs_with_fullname)
8911 (dw2_expand_symtabs_matching_one)
8912 (dw2_find_pc_sect_compunit_symtab)
8913 (dw2_debug_names_lookup_symbol)
8914 (dw2_debug_names_expand_symtabs_for_function): Update.
8915 (init_cutu_and_read_dies): Add skip_partial parameter.
8916 (process_psymtab_comp_unit, build_type_psymtabs_1)
8917 (process_skeletonless_type_unit, load_partial_comp_unit)
8918 (psymtab_to_symtab_1): Update.
8919 (load_full_comp_unit): Add skip_partial parameter.
8920 (process_imported_unit_die, dwarf2_read_addr_index)
8921 (follow_die_offset, dwarf2_fetch_die_loc_sect_off)
8922 (dwarf2_fetch_constant_bytes, dwarf2_fetch_die_type_sect_off)
8923 (read_signatured_type): Update.
8924
3e618834
SM
89252018-05-17 Simon Marchi <simon.marchi@ericsson.com>
8926
8927 * value.c (release_value): Remove unused variable.
8928 (record_latest_value): Likewise.
8929 (access_value_history): Likewise.
8930 (preserve_values): Likewise.
8931
fe10fe31
TT
89322018-05-17 Tom Tromey <tom@tromey.com>
8933
8934 * extension.h (struct ext_lang_type_printers) <py_type_printers>:
8935 Initialize.
8936
1d761124
MR
89372018-05-16 Maciej W. Rozycki <macro@mips.com>
8938
8939 PR gdb/22286
8940 * linux-nat-trad.c (linux_nat_trad_target::fetch_register):
8941 Also handle registers whose width is not a multiple of
8942 PTRACE_TYPE_RET.
8943 (linux_nat_trad_target::store_register): Likewise.
8944
06333fea
TT
89452018-05-16 Tom Tromey <tom@tromey.com>
8946
8947 * gdbcore.h (core_bfd): Redefine.
8948 * corelow.c (core_target::close): Update.
8949 (core_target_open): Update.
8950 * progspace.h (struct program_space) <cbfd>: Now a
8951 gdb_bfd_ref_ptr.
8952
921222e2
TT
89532018-05-16 Tom Tromey <tom@tromey.com>
8954
8955 PR cli/19551:
8956 * symfile-add-flags.h (enum symfile_add_flags)
8957 <SYMFILE_NOT_FILENAME>: New constant.
8958 * symfile.c (read_symbols): Use SYMFILE_NOT_FILENAME. Get
8959 objfile name from BFD.
8960 (symbol_file_add_with_addrs): Check SYMFILE_NOT_FILENAME.
8961 * minidebug.c (find_separate_debug_file_in_section): Put
8962 ".gnu_debugdata" into BFD's file name.
8963
3acb7083
SM
89642018-05-16 Simon Marchi <simon.marchi@ericsson.com>
8965
8966 * regcache.c (regcache_read_ftype, regcache_write_ftype):
8967 Remove.
8968
561a72d4
TC
89692018-05-15 Tamar Christina <tamar.christina@arm.com>
8970
8971 PR binutils/21446
8972 * aarch64-tdep.c (aarch64_analyze_prologue,
8973 aarch64_software_single_step, aarch64_displaced_step_copy_insn):
8974 Indicate not interested in errors.
8975
4e6ff0e1
MR
89762018-05-15 Maciej W. Rozycki <macro@mips.com>
8977
8978 * mips-linux-nat.c (mips_linux_nat_target::fetch_registers):
8979 Supply the MIPS_ZERO_REGNUM register.
8980
ea33cd92
MR
89812018-05-15 Maciej W. Rozycki <macro@mips.com>
8982
8983 * mips-tdep.c (mask_address_var): Make variable static.
8984
2d79090e
TT
89852018-05-14 Tom Tromey <tom@tromey.com>
8986
8987 * dwarf2read.c (rust_union_quirks): Clear rust_unions.
8988
cf4912ae
AB
89892018-05-11 Andrew Burgess <andrew.burgess@embecosm.com>
8990
8991 * i387-tdep.c (i387_collect_xsave): Use FXSAVE_MXCSR_ADDR not
8992 FXSAVE_ADDR for the mxcsr register.
8993
67e6f569
MF
89942018-05-11 Max Filippov <jcmvbkbc@gmail.com>
8995
8996 * configure.tgt (xtensa*-*-linux*): Drop gdb_target definition.
8997
15244507
PA
89982018-05-11 Pedro Alves <palves@redhat.com>
8999
9000 * corelow.c (core_target) <core_target>: No longer inline.
9001 Initialize m_core_gdbarch, m_core_vec and build the section table
9002 here.
9003 <~core_target>: New.
9004 <core_gdbarch, get_core_register_section>: New methods.
9005 <m_core_section_table, m_core_vec, m_core_gdbarch>: New fields,
9006 factored out from ...
9007 <core_data, core_vec, core_gdbarch>: ... these deleted globals.
9008 (core_ops): Delete.
9009 (sniff_core_bfd): Add gdbarch parameter.
9010 (core_close): Delete, merged into ...
9011 (core_target::close): ... here. Delete self.
9012 (core_close_cleanup): Delete.
9013 (core_target_open): Allocate a core_target on the heap. Use a
9014 unique_ptr instead of a cleanup. Bits moved into the core_target
9015 ctor. Adjust to use core_target methods instead of globals.
9016 (get_core_register_section): Rename to ...
9017 (core_target::get_core_register_section): ... this and adjust.
9018 (struct get_core_registers_cb_data): New.
9019 (get_core_registers_cb): Use it. Use bool.
9020 (core_target::fetch_registers, core_target::files_info)
9021 (core_target::xfer_partial, core_target::read_description)
9022 (core_target::pid_to, core_target::thread_name): Adjust to
9023 reference class fields instead of globals.
9024 * target.h (struct target_ops_deleter, target_ops_up): New.
9025
451953fa
PA
90262018-05-11 Pedro Alves <palves@redhat.com>
9027
9028 * corefile.c (core_file_command): Move to corelow.c.
9029 * corelow.c (the_core_target): Delete.
9030 (core_file_command): Moved from corefile.c. Check exec_bfd
9031 instead of the_core_target. Use target_detach instead of calling
9032 into the_core_target directly.
9033 (maybe_say_no_core_file_now): New.
9034 (core_target::detach): Use it.
9035 (_initialize_corelow): Remove references to the_core_target.
9036 * gdbcore.h (the_core_target): Delete.
9037
e540a5a2 90382018-05-11 Tom Tromey <tromey@redhat.com>
3afc23a6 9039 Pedro Alves <palves@redhat.com>
e540a5a2
TT
9040
9041 * corefile.c (core_bfd): Remove.
9042 * gdbcore.h (core_bfd): Now a macro.
9043 * progspace.h (struct program_space) <cbfd>: New field.
9044
633cf254
TT
90452018-05-11 Tom Tromey <tom@tromey.com>
9046
9047 * mdebugread.c (parse_partial_symbols, psymtab_to_symtab_1): Use
9048 gdb::def_vector.
9049
1a34f210
TT
90502018-05-10 Tom Tromey <tom@tromey.com>
9051
9052 * configure: Rebuild.
9053 * warning.m4 (AM_GDB_WARNINGS): Use -Wimplicit-fallthrough=3.
9054
190852c8
JB
90552018-05-10 Joel Brobecker <brobecker@adacore.com>
9056
9057 PR server/23158:
9058 * regformats/regdat.sh: Adjust script, following the addition
9059 of the new expedite_regs parameter to init_target_desc.
9060
8727de56
OJ
90612018-05-10 Omair Javaid <omair.javaid@linaro.org>
9062
9063 PR gdb/23127
9064 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Add call to
9065 set_gdbarch_significant_addr_bit.
9066 * aarch64-tdep.c (aarch64_gdbarch_init): Remove call to
9067 set_gdbarch_significant_addr_bit.
9068 * utils.c (address_significant): Update to sign extend addr.
9069
37d9e062
MF
90702018-05-09 Max Filippov <jcmvbkbc@gmail.com>
9071
9072 * xtensa-linux-tdep.c (xtensa-tdep.h): New include.
9073 (xtensa_linux_init_abi): Limit tdep->num_regs by
9074 tdep->num_nopriv_regs.
9075 * xtensa-tdep.c (xtensa_derive_tdep): Calculate
9076 tdep->num_nopriv_regs and only copy it to tdep->num_regs if it's
9077 not initialized.
9078
7402fbca
SM
90792018-05-08 Simon Marchi <simon.marchi@ericsson.com>
9080
9081 * unittests/string_view-selftests.c: Define GNULIB_NAMESPACE.
9082
8ee22052
AB
90832018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
9084
9085 * common/x86-xstate.h (I387_FCTRL_INIT_VAL): New constant.
9086 (I387_MXCSR_INIT_VAL): New constant.
9087 * amd64-tdep.c (amd64_supply_xsave): Only read state from xsave
9088 buffer if it was supplied by the inferior.
9089 * i387-tdep.c (i387_supply_fsave): Use I387_MXCSR_INIT_VAL.
9090 (i387_xsave_get_clear_bv): New function.
9091 (i387_supply_xsave): Only read x87 control registers from the
9092 xsave buffer if the feature is enabled, and the state will have
9093 been written, otherwise, provide a suitable default.
9094 (i387_collect_xsave): Pre-clear all registers in xsave buffer,
9095 including x87 control registers. Update control registers if they
9096 have changed from the default value, and mark features as enabled
9097 as required.
9098 * i387-tdep.h (i387_xsave_get_clear_bv): Declare.
9099
968ae51b
UW
91002018-05-08 Ulrich Weigand <uweigand@de.ibm.com>
9101
9102 * spu-tdep.c (info_spu_event_command): Fix output formatting.
9103
aff689d3
TT
91042018-05-07 Tom Tromey <tom@tromey.com>
9105
9106 * configure: Rebuild.
9107 * warning.m4 (AM_GDB_WARNINGS): Add -Wduplicated-cond.
9108
ce887586
TT
91092018-05-07 Tom Tromey <tom@tromey.com>
9110
9111 PR tdep/20362:
9112 * arm-tdep.c (arm_record_vfp_data_proc_insn): Properly mask off D
9113 bit. Use correct value for VDIV.
9114
85e26832
TT
91152018-05-04 Tom Tromey <tom@tromey.com>
9116
9117 * configure: Rebuild.
9118 * warning.m4 (AM_GDB_WARNINGS): Add -Wimplicit-fallthrough.
9119
449b1ac7
TT
91202018-05-04 Tom Tromey <tom@tromey.com>
9121
9122 * linux-record.c (record_linux_system_call) <case
9123 RECORD_SYS_RECVFROM>: Add "break".
9124
15c9ffd6
TT
91252018-05-04 Tom Tromey <tom@tromey.com>
9126
9127 * mi/mi-main.c (mi_cmd_trace_frame_collected) <REGISTERS_FORMAT>:
9128 Add missing "break".
9129 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals) <NO_FRAME_FILTERS>:
9130 Add missing "break".
9131
e3829d13
TT
91322018-05-04 Tom Tromey <tom@tromey.com>
9133
9134 * rs6000-tdep.c (ppc_process_record_op4)
9135 (ppc_process_record_op63): Add fall-through comment.
9136
da0e1563
TT
91372018-05-04 Tom Tromey <tom@tromey.com>
9138
9139 * i386-tdep.c (i386_process_record): Add fall-through comment.
9140
0019cd49
TT
91412018-05-04 Tom Tromey <tom@tromey.com>
9142
9143 * stabsread.c (define_symbol) <case 'p'>: Add fall-through
9144 comment.
9145
565e0eda
TT
91462018-05-04 Tom Tromey <tom@tromey.com>
9147
9148 * riscv-tdep.c (riscv_isa_xlen): Add fall-through comment.
9149 * utils.c (can_dump_core) <LIMIT_CUR>: Add fall-through comment.
9150 * eval.c (fetch_subexp_value) <MEMORY_ERROR>: Add fall-through
9151 comment.
9152 * d-valprint.c (d_val_print) <TYPE_CODE_STRUCT>: Add fall-through
9153 comment.
9154 * coffread.c (coff_symtab_read) <C_LABEL>: Add fall-through
9155 comment.
9156
621846f4
TT
91572018-05-04 Tom Tromey <tom@tromey.com>
9158
9159 * dwarf2loc.c (unimplemented): Add ATTRIBUTE_NORETURN.
9160
86a73007
TT
91612018-05-04 Tom Tromey <tom@tromey.com>
9162
9163 * s390-tdep.c (s390_process_record): Fix fall-through comments.
9164 * xcoffread.c (scan_xcoff_symtab): Move comment later.
9165 * symfile.c (section_is_mapped): Fix fall-through comment.
9166 * stabsread.c (define_symbol, read_member_functions): Fix
9167 fall-through comment.
9168 * s390-linux-tdep.c (s390_process_record): Fix fall-through
9169 comment.
9170 * remote.c (remote_wait_as): Fix fall-through comment.
9171 * p-exp.y (yylex): Fix fall-through comment.
9172 * nat/x86-dregs.c (x86_length_and_rw_bits): Fix fall-through
9173 comment.
9174 * msp430-tdep.c (msp430_gdbarch_init): Fix fall-through comment.
9175 * mdebugread.c (parse_partial_symbols): Fix fall-through comment.
9176 * jv-exp.y (yylex): Fix fall-through comment.
9177 * go-exp.y (lex_one_token): Fix fall-through comment.
9178 * gdbtypes.c (get_discrete_bounds, rank_one_type): Fix
9179 fall-through comment.
9180 * f-exp.y (yylex): Fix fall-through comment.
9181 * dwarf2read.c (process_die): Fix fall-through comments.
9182 * dbxread.c (process_one_symbol): Fix fall-through comment.
9183 * d-exp.y (lex_one_token): Fix fall-through comment.
9184 * cp-name-parser.y (yylex): Fix fall-through comment.
9185 * coffread.c (coff_symtab_read): Fix fall-through comment.
9186 * c-exp.y (lex_one_token): Fix fall-through comment.
9187 * arm-tdep.c (arm_decode_miscellaneous): Fix fall-through
9188 comment.
9189 * arch/arm.c (arm_instruction_changes_pc): Fix fall-through
9190 comment.
9191
56bcdbea
TT
91922018-05-04 Tom Tromey <tom@tromey.com>
9193
9194 PR python/22730:
9195 * NEWS: Mention gdb.execute change.
9196 * gdbcmd.h (execute_control_command): Don't declare.
9197 * python/python.c (execute_gdb_command): Use read_command_lines_1,
9198 execute_control_commands, execute_control_commands_to_string.
9199 * cli/cli-script.h (execute_control_commands)
9200 (execute_control_commands_to_string): Declare.
9201 (execute_control_command): Add from_tty parameter.
9202 * cli/cli-script.c (execute_control_commands)
9203 (execute_control_commands_to_string): New functions.
9204 (execute_user_command): Use execute_control_commands.
9205 (execute_control_command_1): Add "from_tty" parameter. Update.
9206 (execute_control_command): Likewise.
9207
a913fffb
TT
92082018-05-04 Tom Tromey <tom@tromey.com>
9209
9210 PR python/22731:
9211 * NEWS: Mention that breakpoint commands are writable.
9212 * python/py-breakpoint.c (bppy_set_commands): New function.
9213 (breakpoint_object_getset) <"commands">: Use it.
9214
60b3cef2
TT
92152018-05-04 Tom Tromey <tom@tromey.com>
9216
9217 * tracepoint.c (actions_command): Update.
9218 * mi/mi-cmd-break.c (mi_command_line_array)
9219 (mi_command_line_array_cnt, mi_command_line_array_ptr)
9220 (mi_read_next_line): Remove.
9221 (mi_cmd_break_commands): Update.
9222 * cli/cli-script.h (read_command_lines, read_command_lines_1): Use
9223 function_view.
9224 * cli/cli-script.c (get_command_line): Update.
9225 (process_next_line): Use function_view. Constify.
9226 (recurse_read_control_structure, read_command_lines)
9227 (read_command_lines_1): Change argument types to function_view.
9228 (do_define_command, document_command): Update.
9229 * breakpoint.h (check_tracepoint_command): Don't declare.
9230 * breakpoint.c (check_tracepoint_command): Remove.
9231 (commands_command_1, create_tracepoint_from_upload): Update.
9232
7a2c85f2
TT
92332018-05-04 Tom Tromey <tom@tromey.com>
9234
9235 PR gdb/11750:
9236 * cli/cli-script.h (enum command_control_type) <define_control>:
9237 New constant.
9238 * cli/cli-script.c (multi_line_command_p): Handle define_control.
9239 (build_command_line, execute_control_command_1)
9240 (process_next_line): Likewise.
9241 (do_define_command): New function, extracted from define_command.
9242 (define_command): Use it.
9243
295dc222
TT
92442018-05-04 Tom Tromey <tom@tromey.com>
9245
9246 * tracepoint.c (actions_command): Update.
9247 * cli/cli-script.h (read_command_lines): Update.
9248 * cli/cli-script.c (read_command_lines): Constify prompt_arg.
9249 (MAX_TMPBUF): Remove define.
9250 (define_command): Use string_printf.
9251 (document_command): Likewise.
9252 * breakpoint.c (commands_command_1): Update.
9253
1263a9d5
TT
92542018-05-04 Tom Tromey <tom@tromey.com>
9255
9256 * top.c (execute_command): Update.
9257 * cli/cli-script.h (print_command_lines): Now varargs.
9258 * cli/cli-script.c (print_command_lines): Now varargs.
9259 (execute_control_command_1) <case while_control, case if_control>:
9260 Update.
9261
12973681
TT
92622018-05-04 Tom Tromey <tom@tromey.com>
9263
9264 * tracepoint.c (all_tracepoint_actions): Rename from
9265 all_tracepoint_actions_and_cleanup. Change return type.
9266 (actions_command, encode_actions_1, encode_actions)
9267 (trace_dump_actions, tdump_command): Update.
9268 * remote.c (remote_download_command_source): Update.
9269 * python/python.c (gdbpy_eval_from_control_command)
9270 (python_command, python_interactive_command): Update.
9271 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
9272 * guile/guile.c (guile_command)
9273 (gdbscm_eval_from_control_command, guile_command): Update.
9274 * compile/compile.c (compile_code_command)
9275 (compile_print_command, compile_to_object): Update.
9276 * cli/cli-script.h (struct command_lines_deleter): New.
9277 (counted_command_line): New typedef.
9278 (struct command_line): Add constructor, destructor.
9279 <body_list>: Remove.
9280 <body_list_0, body_list_1>: New members.
9281 (command_line_up): Remove typedef.
9282 (read_command_lines, read_command_lines_1, get_command_line):
9283 Update.
9284 (copy_command_lines): Don't declare.
9285 * cli/cli-script.c (build_command_line): Use "new".
9286 (get_command_line): Return counted_command_line.
9287 (print_command_lines, execute_user_command)
9288 (execute_control_command_1, while_command, if_command): Update.
9289 (realloc_body_list): Remove.
9290 (process_next_line, recurse_read_control_structure): Update.
9291 (read_command_lines, read_command_lines_1): Return counted_command_line.
9292 (free_command_lines): Use "delete".
9293 (copy_command_lines): Remove.
9294 (define_command, document_command, show_user_1): Update.
9295 * cli/cli-decode.h (struct cmd_list_element) <user_commands>: Now
9296 a counted_command_line.
9297 * breakpoint.h (counted_command_line): Remove typedef.
9298 (breakpoint_set_commands): Update.
9299 * breakpoint.c (check_no_tracepoint_commands)
9300 (validate_commands_for_breakpoint): Update.
9301 (breakpoint_set_commands): Change commands to be a
9302 counted_command_line.
9303 (commands_command_1, update_dprintf_command_list)
9304 (create_tracepoint_from_upload): Update.
9305
e2fc72e2
TT
93062018-05-04 Tom Tromey <tom@tromey.com>
9307
9308 * cli/cli-decode.h (cmd_list_element): New constructor.
9309 (~cmd_list_element): New destructor.
9310 (struct cmd_list_element): Add initializers.
9311 * cli/cli-decode.c (do_add_cmd): Use "new".
9312 (delete_cmd): Use "delete".
9313
a3b60e45
JK
93142018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
9315 Pedro Alves <palves@redhat.com>
9316
9317 PR breakpoints/19806 and support for PR external/20207.
9318 * NEWS: Mention Aarch64 watchpoint improvements.
9319 * aarch64-linux-nat.c (aarch64_linux_stopped_data_address): Fix missed
9320 watchpoints and PR external/20207 watchpoints.
9321 * nat/aarch64-linux-hw-point.c
9322 (kernel_supports_any_contiguous_range): New.
9323 (aarch64_watchpoint_offset): New.
9324 (aarch64_watchpoint_length): Support PR external/20207 watchpoints.
9325 (aarch64_point_encode_ctrl_reg): New parameter offset, new asserts.
9326 (aarch64_point_is_aligned): Support PR external/20207 watchpoints.
9327 (aarch64_align_watchpoint): New parameters aligned_offset_p and
9328 next_addr_orig_p. Support PR external/20207 watchpoints.
9329 (aarch64_downgrade_regs): New.
9330 (aarch64_dr_state_insert_one_point): New parameters offset and
9331 addr_orig.
9332 (aarch64_dr_state_remove_one_point): Likewise.
9333 (aarch64_handle_breakpoint): Update caller.
9334 (aarch64_handle_aligned_watchpoint): Likewise.
9335 (aarch64_handle_unaligned_watchpoint): Support addr_orig and
9336 aligned_offset.
9337 (aarch64_linux_set_debug_regs): Remove const from state. Call
9338 aarch64_downgrade_regs.
9339 (aarch64_show_debug_reg_state): Print also dr_addr_orig_wp.
9340 * nat/aarch64-linux-hw-point.h (DR_CONTROL_LENGTH): Rename to ...
9341 (DR_CONTROL_MASK): ... this.
9342 (struct aarch64_debug_reg_state): New field dr_addr_orig_wp.
9343 (unsigned int aarch64_watchpoint_offset): New prototype.
9344 (aarch64_linux_set_debug_regs): Remove const from state.
9345 * utils.c (align_up, align_down): Move to ...
9346 * common/common-utils.c (align_up, align_down): ... here.
9347 * utils.h (align_up, align_down): Move to ...
9348 * common/common-utils.h (align_up, align_down): ... here.
9349
05bc7456
JB
93502018-05-04 Joel Brobecker <brobecker@adacore.com>
9351
9352 * sparc-tdep.c (sparc_structure_return_p): Re-implement to
9353 match the ABI as summarized in GCC's gcc/config/sparc/sparc.c.
9354 (sparc_arg_by_memory_p): Renamed from sparc_arg_on_registers_p.
9355 Re-implement to match the ABI as summarized in GCC's
9356 gcc/config/sparc/sparc.c. All callers updated.
9357 (sparc32_store_arguments): Remove assertion.
9358
2f433492
TT
93592018-05-04 Tom Tromey <tom@tromey.com>
9360
9361 * printcmd.c: Don't include tui.h.
9362 (decode_format): Use skip_spaces.
9363
9be2ae8f
TT
93642018-05-04 Tom Tromey <tom@tromey.com>
9365
9366 PR gdb/22619:
9367 * printcmd.c (last_count): New global.
9368 (x_command): Use saved count when repeating.
9369
f0b3976b
TT
93702018-05-04 Tom Tromey <tom@tromey.com>
9371
9372 * nto-procfs.c (do_closedir_cleanup): Remove.
9373 (procfs_pidlist): Use gdb_dir_up.
9374 * procfs.c (do_closedir_cleanup): Remove.
9375 (proc_update_threads): Use gdb_dir_up.
9376 * common/filestuff.h (struct gdb_dir_deleter): New.
9377 (gdb_dir_up): New typedef.
9378
862d101a
TT
93792018-05-04 Tom Tromey <tom@tromey.com>
9380
9381 * ada-lang.c (print_mention_exception): Use std::string.
9382
cb7de75e
TT
93832018-05-04 Tom Tromey <tom@tromey.com>
9384
9385 * ada-lang.c (create_excep_cond_exprs): Update.
9386 (ada_exception_catchpoint_cond_string): Use std::string.
9387
49d83361
TT
93882018-05-04 Tom Tromey <tom@tromey.com>
9389
9390 * ada-lang.c (xget_renaming_scope): Return std::string.
9391 (old_renaming_is_invisible): Update.
9392
ade72a34
TT
93932018-05-04 Tom Tromey <tom@tromey.com>
9394
9395 * bfd-target.c (target_bfd::m_bfd): Now a gdb_bfd_ref_ptr.
9396 (target_bfd::target_bfd, target_bfd::~target_bfd): Update.
9397
2be4d7f0
UW
93982018-05-04 Ulrich Weigand <uweigand@de.ibm.com>
9399
9400 * spu-linux-nat.c (spu_linux_nat_target::wait): Fix syntax error.
9401
69b6ecb0
TT
94022018-05-04 Tom Tromey <tom@tromey.com>
9403
9404 * remote.c (remote_query_supported_append): Change type.
9405 (remote_check_symbols): Update.
9406
bf27f0e2
PP
94072018-05-04 Paul Pluzhnikov <ppluzhnikov@google.com>
9408
9409 PR gdb/11420
9410 * configure.ac: Prepend libpython.
9411 * python/python-config.py: Likewise.
9412 * configure: Regenerate.
9413
4ea17de8
SM
94142018-05-03 Simon Marchi <simon.marchi@ericsson.com>
9415
9416 * Makefile.in (%.c: %.l): Use -t instead of --stdout.
9417
bd732259
PA
94182018-05-03 Pedro Alves <palves@redhat.com>
9419
9420 * s390-linux-nat.c
9421 (s390_linux_nat_target::have_continuable_watchpoint): Mark with
9422 override. Write 'true' instead of '1'.
9423 (s390_linux_nat_target::watchpoint_addr_within_range): Remove
9424 declaration.
9425
d9f719f1
PA
94262018-05-02 Pedro Alves <palves@redhat.com>
9427
9428 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Use
9429 add_inf_child_target.
9430 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Use
9431 add_inf_child_target.
9432 * aix-thread.c (aix_thread_target_info): New.
9433 (aix_thread_target) <shortname, longname, doc>: Delete.
9434 <info>: New.
9435 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Use
9436 add_inf_child_target.
9437 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Use
9438 add_inf_child_target.
9439 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Use
9440 add_inf_child_target.
9441 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Use
9442 add_inf_child_target.
9443 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Use
9444 add_inf_child_target.
9445 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Use
9446 add_inf_child_target.
9447 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Use
9448 add_inf_child_target.
9449 * arm-linux-nat.c (_initialize_arm_linux_nat): Use
9450 add_inf_child_target.
9451 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Use
9452 add_inf_child_target.
9453 * bfd-target.c (target_bfd_target_info): New.
9454 (target_bfd) <shortname, longname, doc>: Delete.
9455 <info>: New.
9456 * bsd-kvm.c (bsd_kvm_target_info): New.
9457 (bsd_kvm_target) <shortname, longname, doc>: Delete.
9458 <info>: New.
9459 (bsd_kvm_target::open): Rename to ...
9460 (bsd_kvm_target_open): ... this. Adjust.
9461 * bsd-uthread.c (bsd_uthread_target_info): New.
9462 (bsd_uthread_target) <shortname, longname, doc>: Delete.
9463 <info>: New.
9464 * corefile.c (core_file_command): Adjust.
9465 * corelow.c (core_target_info): New.
9466 (core_target) <shortname, longname, doc>: Delete.
9467 <info>: New.
9468 (core_target::open): Rename to ...
9469 (core_target_open): ... this. Adjust.
9470 * ctf.c (ctf_target_info): New.
9471 (ctf_target) <shortname, longname, doc>: Delete.
9472 <info>: New.
9473 (ctf_target::open): Rename to ...
9474 (ctf_target_open): ... this.
9475 (_initialize_ctf): Adjust.
9476 * exec.c (exec_target_info): New.
9477 (exec_target) <shortname, longname, doc>: Delete.
9478 <info>: New.
9479 (exec_target::open): Rename to ...
9480 (exec_target_open): ... this.
9481 * gdbcore.h (core_target_open): Declare.
9482 * go32-nat.c (_initialize_go32_nat): Use add_inf_child_target.
9483 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Use
9484 add_inf_child_target.
9485 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Use
9486 add_inf_child_target.
9487 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Use
9488 add_inf_child_target.
9489 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Use
9490 add_inf_child_target.
9491 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Use
9492 add_inf_child_target.
9493 * i386-gnu-nat.c (_initialize_i386gnu_nat): Use
9494 add_inf_child_target.
9495 * i386-linux-nat.c (_initialize_i386_linux_nat): Use
9496 add_inf_child_target.
9497 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Use
9498 add_inf_child_target.
9499 * i386-obsd-nat.c (_initialize_i386obsd_nat): Use
9500 add_inf_child_target.
9501 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Use
9502 add_inf_child_target.
9503 * inf-child.c (inf_child_target_info): New.
9504 (inf_child_target::info): New.
9505 (inf_child_open_target): Remove 'target' parameter. Use
9506 get_native_target instead.
9507 (inf_child_target::open): Delete.
9508 (add_inf_child_target): New.
9509 * inf-child.h (inf_child_target) <shortname, longname, doc, open>:
9510 Delete.
9511 <info>: New.
9512 (add_inf_child_target): Declare.
9513 (inf_child_open_target): Declare.
9514 * linux-thread-db.c (thread_db_target_info): New.
9515 (thread_db_target) <shortname, longname, doc>: Delete.
9516 <info>: New.
9517 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Use
9518 add_inf_child_target.
9519 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Use
9520 add_inf_child_target.
9521 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Use
9522 add_inf_child_target.
9523 * m88k-bsd-nat.c (_initialize_m88kbsd_nat): Use
9524 add_inf_child_target.
9525 * make-target-delegates (print_class): Adjust.
9526 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Use
9527 add_inf_child_target.
9528 * mips-linux-nat.c (_initialize_mips_linux_nat): Use
9529 add_inf_child_target.
9530 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Use
9531 add_inf_child_target.
9532 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Use
9533 add_inf_child_target.
9534 * nto-procfs.c (nto_native_target_info): New.
9535 (nto_procfs_target_native) <shortname, longname, doc>:
9536 Delete.
9537 <info>: New.
9538 (nto_procfs_target_info): New.
9539 (nto_procfs_target_procfs) <shortname, longname, doc>:
9540 Delete.
9541 <info>: New.
9542 (init_procfs_targets): Adjust.
9543 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Use
9544 add_inf_child_target.
9545 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Use
9546 add_inf_child_target.
9547 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Use
9548 add_inf_child_target.
9549 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Use
9550 add_inf_child_target.
9551 * ravenscar-thread.c (ravenscar_target_info): New.
9552 (ravenscar_thread_target) <shortname, longname, doc>:
9553 Delete.
9554 <info>: New.
9555 * record-btrace.c (record_btrace_target_info):
9556 (record_btrace_target) <shortname, longname, doc>: Delete.
9557 <info>: New.
9558 (record_btrace_target::open): Rename to ...
9559 (record_btrace_target_open): ... this. Adjust.
9560 * record-full.c (record_longname, record_doc): New.
9561 (record_full_base_target) <shortname, longname, doc>: Delete.
9562 <info>: New.
9563 (record_full_target_info): New.
9564 (record_full_target): <shortname>: Delete.
9565 <info>: New.
9566 (record_full_core_open_1, record_full_open_1): Update comments.
9567 (record_full_base_target::open): Rename to ...
9568 (record_full_open): ... this.
9569 (cmd_record_full_restore): Update.
9570 (_initialize_record_full): Update.
9571 * remote-sim.c (remote_sim_target_info): New.
9572 (gdbsim_target) <shortname, longname, doc>: Delete.
9573 <info>: New.
9574 (gdbsim_target::open): Rename to ...
9575 (gdbsim_target_open): ... this.
9576 (_initialize_remote_sim): Adjust.
9577 * remote.c (remote_doc): New.
9578 (remote_target_info): New.
9579 (remote_target) <shortname, longname, doc>: Delete.
9580 <info>: New.
9581 (extended_remote_target_info): New.
9582 (extended_remote_target) <shortname, longname, doc>: Delete.
9583 <info>: New.
9584 (remote_target::open_1): Make static. Adjust.
9585 * rs6000-nat.c (_initialize_rs6000_nat): Use add_inf_child_target.
9586 * s390-linux-nat.c (_initialize_s390_nat): Use
9587 add_inf_child_target.
9588 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Use
9589 add_inf_child_target.
9590 * sol-thread.c (thread_db_target_info): New.
9591 (sol_thread_target) <shortname, longname, doc>: Delete.
9592 <info>: New.
9593 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Use
9594 add_inf_child_target.
9595 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Use
9596 add_inf_child_target.
9597 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Use
9598 add_inf_child_target.
9599 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Use
9600 add_inf_child_target.
9601 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Use
9602 add_inf_child_target.
9603 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Use
9604 add_inf_child_target.
9605 * spu-linux-nat.c (_initialize_spu_nat): Use
9606 add_inf_child_target.
9607 * spu-multiarch.c (spu_multiarch_target_info): New.
9608 (spu_multiarch_target) <shortname, longname, doc>: Delete.
9609 <info>: New.
9610 * target-delegates.c: Regenerate.
9611 * target.c: Include <unordered_map>.
9612 (target_ops_p): Delete.
9613 (DEF_VEC_P(target_ops_p)): Delete.
9614 (target_factories): New.
9615 (test_target_info): New.
9616 (test_target_ops::info): New.
9617 (open_target): Adjust to use target_factories.
9618 (add_target_with_completer): Rename to ...
9619 (add_target): ... this. Change prototype. Register target_info
9620 and open callback in target_factories. Register target_info in
9621 command context instead of target_ops.
9622 (add_target): Delete old implementation.
9623 (add_deprecated_target_alias): Change prototype. Adjust.
9624 (the_native_target): New.
9625 (set_native_target, get_native_target): New.
9626 (find_default_run_target): Use the_native_target.
9627 (find_attach_target, find_run_target): Simplify.
9628 (target_ops::open): Delete.
9629 (dummy_target_info): New.
9630 (dummy_target::shortname, dummy_target::longname)
9631 (dummy_target::doc): Delete.
9632 (dummy_target::info): New.
9633 (debug_target::shortname, debug_target::longname)
9634 (debug_target::doc): Delete.
9635 (debug_target::info): New.
9636 * target.h (struct target_info): New.
9637 (target_ops::~target_ops): Add comment.
9638 (target_ops::info): New.
9639 (target_ops::shortname, target_ops::longname, target_ops::doc): No
9640 longer virtual. Implement in terms of target_info.
9641 (set_native_target, get_native_target): Declare.
9642 (target_open_ftype): New.
9643 (add_target, add_target_with_completer)
9644 (add_deprecated_target_alias): Change prototype.
9645 (test_target) <shortname, longname, doc>: Delete.
9646 <info>: New.
9647 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Use
9648 add_inf_child_target.
9649 * tracefile-tfile.c (tfile_target_info): New.
9650 (tfile_target) <shortname, longname, doc>: Delete.
9651 <info>: New.
9652 (tfile_target::open): Rename to ...
9653 (tfile_target_open): ... this.
9654 (_initialize_tracefile_tfile): Adjust.
9655 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Use
9656 add_inf_child_target.
9657 * windows-nat.c (_initialize_windows_nat): Use
9658 add_inf_child_target.
9659 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Use
9660 add_inf_child_target.
9661
135340af
PA
96622018-05-02 Pedro Alves <palves@redhat.com>
9663
9664 * linux-nat.h (linux_nat_target) <low_new_thread,
9665 low_delete_thread, low_new_fork, low_forget_process,
9666 low_prepare_to_resume, low_siginfo_fixup, low_status_is_event>:
9667 New virtual methods.
9668 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
9669 (linux_nat_new_fork_ftype, linux_nat_set_new_fork)
9670 (linux_nat_forget_process_ftype, linux_nat_set_forget_process)
9671 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
9672 (linux_nat_set_prepare_to_resume, linux_nat_set_status_is_event):
9673 Delete.
9674 * linux-fork.c (delete_fork): Adjust to call low method.
9675 * linux-nat.c (linux_nat_new_thread, linux_nat_delete_thread)
9676 (linux_nat_new_fork, linux_nat_forget_process_hook)
9677 (linux_nat_prepare_to_resume, linux_nat_siginfo_fixup)
9678 (linux_nat_status_is_event):
9679 (linux_nat_target::follow_fork, lwp_free, add_lwp, detach_one_lwp)
9680 (linux_resume_one_lwp_throw, linux_handle_extended_wait): Adjust
9681 to call low method.
9682 (sigtrap_is_event): Rename to ...
9683 (linux_nat_target::low_status_is_event): ... this.
9684 (linux_nat_set_status_is_event): Delete.
9685 (save_stop_reason, linux_nat_wait_1)
9686 (linux_nat_target::mourn_inferior, siginfo_fixup): Adjust to call
9687 low methods.
9688 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
9689 (linux_nat_set_new_fork, linux_nat_set_forget_process)
9690 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
9691 (linux_nat_set_prepare_to_resume): Delete.
9692 * aarch64-linux-nat.c: All linux_nat_set_* callbacks converted to
9693 low virtual methods.
9694 * amd64-linux-nat.c: Likewise.
9695 * arm-linux-nat.c: Likewise.
9696 * i386-linux-nat.c: Likewise.
9697 * ia64-linux-nat.c: Likewise.
9698 * mips-linux-nat.c: Likewise.
9699 * ppc-linux-nat.c: Likewise.
9700 * s390-linux-nat.c: Likewise.
9701 * sparc64-linux-nat.c: Likewise.
9702 * x86-linux-nat.c: Likewise.
9703 * x86-linux-nat.h: Include "nat/x86-linux.h".
9704 (x86_linux_nat_target) <low_new_fork, low_forget_process,
9705 low_prepare_to_resume, low_new_thread, low_delete_thread>:
9706 Override methods.
9707
57810aa7
PA
97082018-05-02 Pedro Alves <palves@redhat.com>
9709
9710 * target.h (target_ops)
9711 <stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
9712 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint,
9713 stopped_by_watchpoint, have_continuable_watchpoint,
9714 stopped_data_address, watchpoint_addr_within_range,
9715 can_accel_watchpoint_condition, can_run, thread_alive,
9716 has_all_memory, has_memory, has_stack, has_registers,
9717 has_execution, can_async_p, is_async_p, supports_non_stop,
9718 always_non_stop_p, can_execute_reverse, supports_multi_process,
9719 supports_enable_disable_tracepoint,
9720 supports_disable_randomization, supports_string_tracing,
9721 supports_evaluation_of_breakpoint_conditions,
9722 can_run_breakpoint_commands, filesystem_is_local,
9723 can_download_tracepoint, get_trace_state_variable_value,
9724 set_trace_notes, get_tib_address, use_agent, can_use_agent,
9725 record_is_replaying, record_will_replay,
9726 augmented_libraries_svr4_read>: Adjust to return bool.
9727 * aarch64-linux-nat.c: All implementations adjusted.
9728 * aix-thread.c: All implementations adjusted.
9729 * arm-linux-nat.c: All implementations adjusted.
9730 * breakpoint.c: All implementations adjusted.
9731 * bsd-kvm.c: All implementations adjusted.
9732 * bsd-uthread.c: All implementations adjusted.
9733 * corelow.c: All implementations adjusted.
9734 * ctf.c: All implementations adjusted.
9735 * darwin-nat.c: All implementations adjusted.
9736 * darwin-nat.h: All implementations adjusted.
9737 * exec.c: All implementations adjusted.
9738 * fbsd-nat.c: All implementations adjusted.
9739 * fbsd-nat.h: All implementations adjusted.
9740 * gnu-nat.c: All implementations adjusted.
9741 * gnu-nat.h: All implementations adjusted.
9742 * go32-nat.c: All implementations adjusted.
9743 * ia64-linux-nat.c: All implementations adjusted.
9744 * inf-child.c: All implementations adjusted.
9745 * inf-child.h: All implementations adjusted.
9746 * inf-ptrace.c: All implementations adjusted.
9747 * inf-ptrace.h: All implementations adjusted.
9748 * linux-nat.c: All implementations adjusted.
9749 * linux-nat.h: All implementations adjusted.
9750 * mips-linux-nat.c: All implementations adjusted.
9751 * nto-procfs.c: All implementations adjusted.
9752 * ppc-linux-nat.c: All implementations adjusted.
9753 * procfs.c: All implementations adjusted.
9754 * ravenscar-thread.c: All implementations adjusted.
9755 * record-btrace.c: All implementations adjusted.
9756 * record-full.c: All implementations adjusted.
9757 * remote-sim.c: All implementations adjusted.
9758 * remote.c: All implementations adjusted.
9759 * s390-linux-nat.c: All implementations adjusted.
9760 * sol-thread.c: All implementations adjusted.
9761 * spu-multiarch.c: All implementations adjusted.
9762 * target-delegates.c: All implementations adjusted.
9763 * target.c: All implementations adjusted.
9764 * target.h: All implementations adjusted.
9765 * tracefile-tfile.c: All implementations adjusted.
9766 * tracefile.c: All implementations adjusted.
9767 * tracefile.h: All implementations adjusted.
9768 * windows-nat.c: All implementations adjusted.
9769 * x86-linux-nat.h: All implementations adjusted.
9770 * x86-nat.h: All implementations adjusted.
9771
ad6a4e2d
PA
97722018-05-02 Pedro Alves <palves@redhat.com>
9773
9774 * make-target-delegates (scan_target_h): Don't trim lines here.
9775 Replace sequences of tabs and/or whitespace with a single
9776 whitespace.
9777 (top level, parsing methods): Trim each line before processing it
9778 here.
9779
f6ac5f3d
PA
97802018-05-02 Pedro Alves <palves@redhat.com>
9781 John Baldwin <jhb@freebsd.org>
9782
9783 * target.h (enum strata) <debug_stratum>: New.
9784 (struct target_ops) <all delegation methods>: Replace by C++
9785 virtual methods, and drop "to_" prefix. All references updated
9786 throughout.
9787 <to_shortname, to_longname, to_doc, to_data,
9788 to_have_steppable_watchpoint, to_have_continuable_watchpoint,
9789 to_has_thread_control, to_attach_no_wait>: Delete, replaced by
9790 virtual methods. All references updated throughout.
9791 <can_attach, supports_terminal_ours, can_create_inferior,
9792 get_thread_control_capabilities, attach_no_wait>: New
9793 virtual methods.
9794 <insert_breakpoint, remove_breakpoint>: Now
9795 TARGET_DEFAULT_NORETURN methods.
9796 <info_proc>: Now returns bool.
9797 <to_magic>: Delete.
9798 (OPS_MAGIC): Delete.
9799 (current_target): Delete. All references replaced by references
9800 to ...
9801 (target_stack): ... this. New.
9802 (target_shortname, target_longname): Adjust.
9803 (target_can_run): Now a function declaration.
9804 (default_child_has_all_memory, default_child_has_memory)
9805 (default_child_has_stack, default_child_has_registers)
9806 (default_child_has_execution): Remove target_ops parameter.
9807 (complete_target_initialization): Delete.
9808 (memory_breakpoint_target): New template class.
9809 (test_target_ops): Refactor as a C++ class with virtual methods.
9810 * make-target-delegates (NAME_PART): Tighten.
9811 (POINTER_PART, CP_SYMBOL): New.
9812 (SIMPLE_RETURN_PART): Reimplement.
9813 (VEC_RETURN_PART): Expect less.
9814 (RETURN_PART, VIRTUAL_PART): New.
9815 (METHOD): Adjust to C++ virtual methods.
9816 (scan_target_h): Remove reference to C99.
9817 (dname): Output "target_ops::" prefix.
9818 (write_function_header): Adjust to output a C++ class method.
9819 (write_declaration): New.
9820 (write_delegator): Adjust to output a C++ class method.
9821 (tdname): Output "dummy_target::" prefix.
9822 (write_tdefault, write_debugmethod): Adjust to output a C++ class
9823 method.
9824 (tdefault_names, debug_names): Delete.
9825 (return_types, tdefaults, styles, argtypes_array): New.
9826 (top level): All methods are delegators.
9827 (print_class): New.
9828 (top level): Print dummy_target and debug_target classes.
9829 * target-delegates.c: Regenerate.
9830 * target-debug.h (target_debug_print_enum_info_proc_what)
9831 (target_debug_print_thread_control_capabilities)
9832 (target_debug_print_thread_info_p): New.
9833 * target.c (dummy_target): Delete.
9834 (the_dummy_target, the_debug_target): New.
9835 (target_stack): Now extern.
9836 (set_targetdebug): Push/unpush debug target.
9837 (default_child_has_all_memory, default_child_has_memory)
9838 (default_child_has_stack, default_child_has_registers)
9839 (default_child_has_execution): Remove target_ops parameter.
9840 (complete_target_initialization): Delete.
9841 (add_target_with_completer): No longer call
9842 complete_target_initialization.
9843 (target_supports_terminal_ours): Use regular delegation.
9844 (update_current_target): Delete.
9845 (push_target): No longer check magic number. Don't call
9846 update_current_target.
9847 (unpush_target): Don't call update_current_target.
9848 (target_is_pushed): No longer check magic number.
9849 (target_require_runnable): Skip for all stratums over
9850 process_stratum.
9851 (target_ops::info_proc): New.
9852 (target_info_proc): Use find_target_at and
9853 find_default_run_target.
9854 (target_supports_disable_randomization): Use regular delegation.
9855 (target_get_osdata): Use find_target_at.
9856 (target_ops::open, target_ops::close, target_ops::can_attach)
9857 (target_ops::attach, target_ops::can_create_inferior)
9858 (target_ops::create_inferior, target_ops::can_run)
9859 (target_can_run): New.
9860 (default_fileio_target): Use regular delegation.
9861 (target_ops::fileio_open, target_ops::fileio_pwrite)
9862 (target_ops::fileio_pread, target_ops::fileio_fstat)
9863 (target_ops::fileio_close, target_ops::fileio_unlink)
9864 (target_ops::fileio_readlink): New.
9865 (target_fileio_open_1, target_fileio_unlink)
9866 (target_fileio_readlink): Always call the target method. Handle
9867 FILEIO_ENOSYS.
9868 (return_zero, return_zero_has_execution): Delete.
9869 (init_dummy_target): Delete.
9870 (dummy_target::dummy_target, dummy_target::shortname)
9871 (dummy_target::longname, dummy_target::doc)
9872 (debug_target::debug_target, debug_target::shortname)
9873 (debug_target::longname, debug_target::doc): New.
9874 (target_supports_delete_record): Use regular delegation.
9875 (setup_target_debug): Delete.
9876 (maintenance_print_target_stack): Skip debug_stratum.
9877 (initialize_targets): Instantiate the_dummy_target and
9878 the_debug_target.
9879 * auxv.c (target_auxv_parse): Remove 'ops' parameter. Adjust to
9880 use target_stack.
9881 (target_auxv_search, fprint_target_auxv): Adjust.
9882 (info_auxv_command): Adjust to use target_stack.
9883 * auxv.h (target_auxv_parse): Remove 'ops' parameter.
9884 * exceptions.c (print_flush): Handle a NULL target_stack.
9885 * regcache.c (target_ops_no_register): Refactor as class with
9886 virtual methods.
9887
9888 * exec.c (exec_target): New class.
9889 (exec_ops): Now an exec_target.
9890 (exec_open, exec_close_1, exec_get_section_table)
9891 (exec_xfer_partial, exec_files_info, exec_has_memory)
9892 (exec_make_note_section): Refactor as exec_target methods.
9893 (exec_file_clear, ignore, exec_remove_breakpoint, init_exec_ops):
9894 Delete.
9895 (exec_target::find_memory_regions): New.
9896 (_initialize_exec): Don't call init_exec_ops.
9897 * gdbcore.h (exec_file_clear): Delete.
9898
9899 * corefile.c (core_target): Delete.
9900 (core_file_command): Adjust.
9901 * corelow.c (core_target): New class.
9902 (the_core_target): New.
9903 (core_close): Remove target_ops parameter.
9904 (core_close_cleanup): Adjust.
9905 (core_target::close): New.
9906 (core_open, core_detach, get_core_registers, core_files_info)
9907 (core_xfer_partial, core_thread_alive, core_read_description)
9908 (core_pid_to_str, core_thread_name, core_has_memory)
9909 (core_has_stack, core_has_registers, core_info_proc): Rework as
9910 core_target methods.
9911 (ignore, core_remove_breakpoint, init_core_ops): Delete.
9912 (_initialize_corelow): Initialize the_core_target.
9913 * gdbcore.h (core_target): Delete.
9914 (the_core_target): New.
9915
9916 * ctf.c: (ctf_target): New class.
9917 (ctf_ops): Now a ctf_target.
9918 (ctf_open, ctf_close, ctf_files_info, ctf_fetch_registers)
9919 (ctf_xfer_partial, ctf_get_trace_state_variable_value)
9920 (ctf_trace_find, ctf_traceframe_info): Refactor as ctf_target
9921 methods.
9922 (init_ctf_ops): Delete.
9923 (_initialize_ctf): Don't call it.
9924 * tracefile-tfile.c (tfile_target): New class.
9925 (tfile_ops): Now a tfile_target.
9926 (tfile_open, tfile_close, tfile_files_info)
9927 (tfile_get_tracepoint_status, tfile_trace_find)
9928 (tfile_fetch_registers, tfile_xfer_partial)
9929 (tfile_get_trace_state_variable_value, tfile_traceframe_info):
9930 Refactor as tfile_target methods.
9931 (tfile_xfer_partial_features): Remove target_ops parameter.
9932 (init_tfile_ops): Delete.
9933 (_initialize_tracefile_tfile): Don't call it.
9934 * tracefile.c (tracefile_has_all_memory, tracefile_has_memory)
9935 (tracefile_has_stack, tracefile_has_registers)
9936 (tracefile_thread_alive, tracefile_get_trace_status): Refactor as
9937 tracefile_target methods.
9938 (init_tracefile_ops): Delete.
9939 (tracefile_target::tracefile_target): New.
9940 * tracefile.h: Include "target.h".
9941 (tracefile_target): New class.
9942 (init_tracefile_ops): Delete.
9943
9944 * spu-multiarch.c (spu_multiarch_target): New class.
9945 (spu_ops): Now a spu_multiarch_target.
9946 (spu_thread_architecture, spu_region_ok_for_hw_watchpoint)
9947 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
9948 (spu_search_memory, spu_mourn_inferior): Refactor as
9949 spu_multiarch_target methods.
9950 (init_spu_ops): Delete.
9951 (_initialize_spu_multiarch): Remove references to init_spu_ops,
9952 complete_target_initialization.
9953
9954 * ravenscar-thread.c (ravenscar_thread_target): New class.
9955 (ravenscar_ops): Now a ravenscar_thread_target.
9956 (ravenscar_resume, ravenscar_wait, ravenscar_update_thread_list)
9957 (ravenscar_thread_alive, ravenscar_pid_to_str)
9958 (ravenscar_fetch_registers, ravenscar_store_registers)
9959 (ravenscar_prepare_to_store, ravenscar_stopped_by_sw_breakpoint)
9960 (ravenscar_stopped_by_hw_breakpoint)
9961 (ravenscar_stopped_by_watchpoint, ravenscar_stopped_data_address)
9962 (ravenscar_mourn_inferior, ravenscar_core_of_thread)
9963 (ravenscar_get_ada_task_ptid): Refactor as ravenscar_thread_target
9964 methods.
9965 (init_ravenscar_thread_ops): Delete.
9966 (_initialize_ravenscar): Remove references to
9967 init_ravenscar_thread_ops and complete_target_initialization.
9968
9969 * bsd-uthread.c (bsd_uthread_ops_hack): Delete.
9970 (bsd_uthread_target): New class.
9971 (bsd_uthread_ops): Now a bsd_uthread_target.
9972 (bsd_uthread_activate): Adjust to refer to bsd_uthread_ops.
9973 (bsd_uthread_close, bsd_uthread_mourn_inferior)
9974 (bsd_uthread_fetch_registers, bsd_uthread_store_registers)
9975 (bsd_uthread_wait, bsd_uthread_resume, bsd_uthread_thread_alive)
9976 (bsd_uthread_update_thread_list, bsd_uthread_extra_thread_info)
9977 (bsd_uthread_pid_to_str): Refactor as bsd_uthread_target methods.
9978 (bsd_uthread_target): Delete function.
9979 (_initialize_bsd_uthread): Remove reference to
9980 complete_target_initialization.
9981
9982 * bfd-target.c (target_bfd_data): Delete. Fields folded into ...
9983 (target_bfd): ... this new class.
9984 (target_bfd_xfer_partial, target_bfd_get_section_table)
9985 (target_bfd_close): Refactor as target_bfd methods.
9986 (target_bfd::~target_bfd): New.
9987 (target_bfd_reopen): Adjust.
9988 (target_bfd::close): New.
9989
9990 * record-btrace.c (record_btrace_target): New class.
9991 (record_btrace_ops): Now a record_btrace_target.
9992 (record_btrace_open, record_btrace_stop_recording)
9993 (record_btrace_disconnect, record_btrace_close)
9994 (record_btrace_async, record_btrace_info)
9995 (record_btrace_insn_history, record_btrace_insn_history_range)
9996 (record_btrace_insn_history_from, record_btrace_call_history)
9997 (record_btrace_call_history_range)
9998 (record_btrace_call_history_from, record_btrace_record_method)
9999 (record_btrace_is_replaying, record_btrace_will_replay)
10000 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
10001 (record_btrace_remove_breakpoint, record_btrace_fetch_registers)
10002 (record_btrace_store_registers, record_btrace_prepare_to_store)
10003 (record_btrace_to_get_unwinder)
10004 (record_btrace_to_get_tailcall_unwinder, record_btrace_resume)
10005 (record_btrace_commit_resume, record_btrace_wait)
10006 (record_btrace_stop, record_btrace_can_execute_reverse)
10007 (record_btrace_stopped_by_sw_breakpoint)
10008 (record_btrace_supports_stopped_by_sw_breakpoint)
10009 (record_btrace_stopped_by_hw_breakpoint)
10010 (record_btrace_supports_stopped_by_hw_breakpoint)
10011 (record_btrace_update_thread_list, record_btrace_thread_alive)
10012 (record_btrace_goto_begin, record_btrace_goto_end)
10013 (record_btrace_goto, record_btrace_stop_replaying_all)
10014 (record_btrace_execution_direction)
10015 (record_btrace_prepare_to_generate_core)
10016 (record_btrace_done_generating_core): Refactor as
10017 record_btrace_target methods.
10018 (init_record_btrace_ops): Delete.
10019 (_initialize_record_btrace): Remove reference to
10020 init_record_btrace_ops.
10021 * record-full.c (RECORD_FULL_IS_REPLAY): Adjust to always refer to
10022 the execution_direction global.
10023 (record_full_base_target, record_full_target)
10024 (record_full_core_target): New classes.
10025 (record_full_ops): Now a record_full_target.
10026 (record_full_core_ops): Now a record_full_core_target.
10027 (record_full_target::detach, record_full_target::disconnect)
10028 (record_full_core_target::disconnect)
10029 (record_full_target::mourn_inferior, record_full_target::kill):
10030 New.
10031 (record_full_open, record_full_close, record_full_async): Refactor
10032 as methods of the record_full_base_target class.
10033 (record_full_resume, record_full_commit_resume): Refactor
10034 as methods of the record_full_target class.
10035 (record_full_wait, record_full_stopped_by_watchpoint)
10036 (record_full_stopped_data_address)
10037 (record_full_stopped_by_sw_breakpoint)
10038 (record_full_supports_stopped_by_sw_breakpoint)
10039 (record_full_stopped_by_hw_breakpoint)
10040 (record_full_supports_stopped_by_hw_breakpoint): Refactor as
10041 methods of the record_full_base_target class.
10042 (record_full_store_registers, record_full_xfer_partial)
10043 (record_full_insert_breakpoint, record_full_remove_breakpoint):
10044 Refactor as methods of the record_full_target class.
10045 (record_full_can_execute_reverse, record_full_get_bookmark)
10046 (record_full_goto_bookmark, record_full_execution_direction)
10047 (record_full_record_method, record_full_info, record_full_delete)
10048 (record_full_is_replaying, record_full_will_replay)
10049 (record_full_goto_begin, record_full_goto_end, record_full_goto)
10050 (record_full_stop_replaying): Refactor as methods of the
10051 record_full_base_target class.
10052 (record_full_core_resume, record_full_core_kill)
10053 (record_full_core_fetch_registers)
10054 (record_full_core_prepare_to_store)
10055 (record_full_core_store_registers, record_full_core_xfer_partial)
10056 (record_full_core_insert_breakpoint)
10057 (record_full_core_remove_breakpoint)
10058 (record_full_core_has_execution): Refactor
10059 as methods of the record_full_core_target class.
10060 (record_full_base_target::supports_delete_record): New.
10061 (init_record_full_ops): Delete.
10062 (init_record_full_core_ops): Delete.
10063 (record_full_save): Refactor as method of the
10064 record_full_base_target class.
10065 (_initialize_record_full): Remove references to
10066 init_record_full_ops and init_record_full_core_ops.
10067
10068 * remote.c (remote_target, extended_remote_target): New classes.
10069 (remote_ops): Now a remote_target.
10070 (extended_remote_ops): Now an extended_remote_target.
10071 (remote_insert_fork_catchpoint, remote_remove_fork_catchpoint)
10072 (remote_insert_vfork_catchpoint, remote_remove_vfork_catchpoint)
10073 (remote_insert_exec_catchpoint, remote_remove_exec_catchpoint)
10074 (remote_pass_signals, remote_set_syscall_catchpoint)
10075 (remote_program_signals, )
10076 (remote_thread_always_alive): Remove target_ops parameter.
10077 (remote_thread_alive, remote_thread_name)
10078 (remote_update_thread_list, remote_threads_extra_info)
10079 (remote_static_tracepoint_marker_at)
10080 (remote_static_tracepoint_markers_by_strid)
10081 (remote_get_ada_task_ptid, remote_close, remote_start_remote)
10082 (remote_open): Refactor as methods of remote_target.
10083 (extended_remote_open, extended_remote_detach)
10084 (extended_remote_attach, extended_remote_post_attach):
10085 (extended_remote_supports_disable_randomization)
10086 (extended_remote_create_inferior): : Refactor as method of
10087 extended_remote_target.
10088 (remote_set_permissions, remote_open_1, remote_detach)
10089 (remote_follow_fork, remote_follow_exec, remote_disconnect)
10090 (remote_resume, remote_commit_resume, remote_stop)
10091 (remote_interrupt, remote_pass_ctrlc, remote_terminal_inferior)
10092 (remote_terminal_ours, remote_wait, remote_fetch_registers)
10093 (remote_prepare_to_store, remote_store_registers)
10094 (remote_flash_erase, remote_flash_done, remote_files_info)
10095 (remote_kill, remote_mourn, remote_insert_breakpoint)
10096 (remote_remove_breakpoint, remote_insert_watchpoint)
10097 (remote_watchpoint_addr_within_range)
10098 (remote_remove_watchpoint, remote_region_ok_for_hw_watchpoint)
10099 (remote_check_watch_resources, remote_stopped_by_sw_breakpoint)
10100 (remote_supports_stopped_by_sw_breakpoint)
10101 (remote_stopped_by_hw_breakpoint)
10102 (remote_supports_stopped_by_hw_breakpoint)
10103 (remote_stopped_by_watchpoint, remote_stopped_data_address)
10104 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
10105 (remote_verify_memory): Refactor as methods of remote_target.
10106 (remote_write_qxfer, remote_read_qxfer): Remove target_ops
10107 parameter.
10108 (remote_xfer_partial, remote_get_memory_xfer_limit)
10109 (remote_search_memory, remote_rcmd, remote_memory_map)
10110 (remote_pid_to_str, remote_get_thread_local_address)
10111 (remote_get_tib_address, remote_read_description): Refactor as
10112 methods of remote_target.
10113 (remote_target::fileio_open, remote_target::fileio_pwrite)
10114 (remote_target::fileio_pread, remote_target::fileio_close): New.
10115 (remote_hostio_readlink, remote_hostio_fstat)
10116 (remote_filesystem_is_local, remote_can_execute_reverse)
10117 (remote_supports_non_stop, remote_supports_disable_randomization)
10118 (remote_supports_multi_process, remote_supports_cond_breakpoints)
10119 (remote_supports_enable_disable_tracepoint)
10120 (remote_supports_string_tracing)
10121 (remote_can_run_breakpoint_commands, remote_trace_init)
10122 (remote_download_tracepoint, remote_can_download_tracepoint)
10123 (remote_download_trace_state_variable, remote_enable_tracepoint)
10124 (remote_disable_tracepoint, remote_trace_set_readonly_regions)
10125 (remote_trace_start, remote_get_trace_status)
10126 (remote_get_tracepoint_status, remote_trace_stop)
10127 (remote_trace_find, remote_get_trace_state_variable_value)
10128 (remote_save_trace_data, remote_get_raw_trace_data)
10129 (remote_set_disconnected_tracing, remote_core_of_thread)
10130 (remote_set_circular_trace_buffer, remote_traceframe_info)
10131 (remote_get_min_fast_tracepoint_insn_len)
10132 (remote_set_trace_buffer_size, remote_set_trace_notes)
10133 (remote_use_agent, remote_can_use_agent, remote_enable_btrace)
10134 (remote_disable_btrace, remote_teardown_btrace)
10135 (remote_read_btrace, remote_btrace_conf)
10136 (remote_augmented_libraries_svr4_read, remote_load)
10137 (remote_pid_to_exec_file, remote_can_do_single_step)
10138 (remote_execution_direction, remote_thread_handle_to_thread_info):
10139 Refactor as methods of remote_target.
10140 (init_remote_ops, init_extended_remote_ops): Delete.
10141 (remote_can_async_p, remote_is_async_p, remote_async)
10142 (remote_thread_events, remote_upload_tracepoints)
10143 (remote_upload_trace_state_variables): Refactor as methods of
10144 remote_target.
10145 (_initialize_remote): Remove references to init_remote_ops and
10146 init_extended_remote_ops.
10147
10148 * remote-sim.c (gdbsim_target): New class.
10149 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_kill)
10150 (gdbsim_load, gdbsim_create_inferior, gdbsim_open, gdbsim_close)
10151 (gdbsim_detach, gdbsim_resume, gdbsim_interrupt)
10152 (gdbsim_wait, gdbsim_prepare_to_store, gdbsim_xfer_partial)
10153 (gdbsim_files_info, gdbsim_mourn_inferior, gdbsim_thread_alive)
10154 (gdbsim_pid_to_str, gdbsim_has_all_memory, gdbsim_has_memory):
10155 Refactor as methods of gdbsim_target.
10156 (gdbsim_ops): Now a gdbsim_target.
10157 (init_gdbsim_ops): Delete.
10158 (gdbsim_cntrl_c): Adjust.
10159 (_initialize_remote_sim): Remove reference to init_gdbsim_ops.
10160
10161 * amd64-linux-nat.c (amd64_linux_nat_target): New class.
10162 (the_amd64_linux_nat_target): New.
10163 (amd64_linux_fetch_inferior_registers)
10164 (amd64_linux_store_inferior_registers): Refactor as methods of
10165 amd64_linux_nat_target.
10166 (_initialize_amd64_linux_nat): Adjust. Set linux_target.
10167 * i386-linux-nat.c: Don't include "linux-nat.h".
10168 (i386_linux_nat_target): New class.
10169 (the_i386_linux_nat_target): New.
10170 (i386_linux_fetch_inferior_registers)
10171 (i386_linux_store_inferior_registers, i386_linux_resume): Refactor
10172 as methods of i386_linux_nat_target.
10173 (_initialize_i386_linux_nat): Adjust. Set linux_target.
10174 * inf-child.c (inf_child_ops): Delete.
10175 (inf_child_fetch_inferior_registers)
10176 (inf_child_store_inferior_registers): Delete.
10177 (inf_child_post_attach, inf_child_prepare_to_store): Refactor as
10178 methods of inf_child_target.
10179 (inf_child_target::supports_terminal_ours)
10180 (inf_child_target::terminal_init)
10181 (inf_child_target::terminal_inferior)
10182 (inf_child_target::terminal_ours_for_output)
10183 (inf_child_target::terminal_ours, inf_child_target::interrupt)
10184 (inf_child_target::pass_ctrlc, inf_child_target::terminal_info):
10185 New.
10186 (inf_child_open, inf_child_disconnect, inf_child_close)
10187 (inf_child_mourn_inferior, inf_child_maybe_unpush_target)
10188 (inf_child_post_startup_inferior, inf_child_can_run)
10189 (inf_child_pid_to_exec_file): Refactor as methods of
10190 inf_child_target.
10191 (inf_child_follow_fork): Delete.
10192 (inf_child_target::can_create_inferior)
10193 (inf_child_target::can_attach): New.
10194 (inf_child_target::has_all_memory, inf_child_target::has_memory)
10195 (inf_child_target::has_stack, inf_child_target::has_registers)
10196 (inf_child_target::has_execution): New.
10197 (inf_child_fileio_open, inf_child_fileio_pwrite)
10198 (inf_child_fileio_pread, inf_child_fileio_fstat)
10199 (inf_child_fileio_close, inf_child_fileio_unlink)
10200 (inf_child_fileio_readlink, inf_child_use_agent)
10201 (inf_child_can_use_agent): Refactor as methods of
10202 inf_child_target.
10203 (return_zero, inf_child_target): Delete.
10204 (inf_child_target::inf_child_target): New.
10205 * inf-child.h: Include "target.h".
10206 (inf_child_target): Delete function prototype.
10207 (inf_child_target): New class.
10208 (inf_child_open_target, inf_child_mourn_inferior)
10209 (inf_child_maybe_unpush_target): Delete.
10210 * inf-ptrace.c (inf_ptrace_target::~inf_ptrace_target): New.
10211 (inf_ptrace_follow_fork, inf_ptrace_insert_fork_catchpoint)
10212 (inf_ptrace_remove_fork_catchpoint, inf_ptrace_create_inferior)
10213 (inf_ptrace_post_startup_inferior, inf_ptrace_mourn_inferior)
10214 (inf_ptrace_attach, inf_ptrace_post_attach, inf_ptrace_detach)
10215 (inf_ptrace_detach_success, inf_ptrace_kill, inf_ptrace_resume)
10216 (inf_ptrace_wait, inf_ptrace_xfer_partial)
10217 (inf_ptrace_thread_alive, inf_ptrace_files_info)
10218 (inf_ptrace_pid_to_str, inf_ptrace_auxv_parse): Refactor as
10219 methods of inf_ptrace_target.
10220 (inf_ptrace_target): Delete function.
10221 * inf-ptrace.h: Include "inf-child.h".
10222 (inf_ptrace_target): Delete function declaration.
10223 (inf_ptrace_target): New class.
10224 (inf_ptrace_trad_target, inf_ptrace_detach_success): Delete.
10225 * linux-nat.c (linux_target): New.
10226 (linux_ops, linux_ops_saved, super_xfer_partial): Delete.
10227 (linux_nat_target::~linux_nat_target): New.
10228 (linux_child_post_attach, linux_child_post_startup_inferior)
10229 (linux_child_follow_fork, linux_child_insert_fork_catchpoint)
10230 (linux_child_remove_fork_catchpoint)
10231 (linux_child_insert_vfork_catchpoint)
10232 (linux_child_remove_vfork_catchpoint)
10233 (linux_child_insert_exec_catchpoint)
10234 (linux_child_remove_exec_catchpoint)
10235 (linux_child_set_syscall_catchpoint, linux_nat_pass_signals)
10236 (linux_nat_create_inferior, linux_nat_attach, linux_nat_detach)
10237 (linux_nat_resume, linux_nat_stopped_by_watchpoint)
10238 (linux_nat_stopped_data_address)
10239 (linux_nat_stopped_by_sw_breakpoint)
10240 (linux_nat_supports_stopped_by_sw_breakpoint)
10241 (linux_nat_stopped_by_hw_breakpoint)
10242 (linux_nat_supports_stopped_by_hw_breakpoint, linux_nat_wait)
10243 (linux_nat_kill, linux_nat_mourn_inferior)
10244 (linux_nat_xfer_partial, linux_nat_thread_alive)
10245 (linux_nat_update_thread_list, linux_nat_pid_to_str)
10246 (linux_nat_thread_name, linux_child_pid_to_exec_file)
10247 (linux_child_static_tracepoint_markers_by_strid)
10248 (linux_nat_is_async_p, linux_nat_can_async_p)
10249 (linux_nat_supports_non_stop, linux_nat_always_non_stop_p)
10250 (linux_nat_supports_multi_process)
10251 (linux_nat_supports_disable_randomization, linux_nat_async)
10252 (linux_nat_stop, linux_nat_close, linux_nat_thread_address_space)
10253 (linux_nat_core_of_thread, linux_nat_filesystem_is_local)
10254 (linux_nat_fileio_open, linux_nat_fileio_readlink)
10255 (linux_nat_fileio_unlink, linux_nat_thread_events): Refactor as
10256 methods of linux_nat_target.
10257 (linux_nat_wait_1, linux_xfer_siginfo, linux_proc_xfer_partial)
10258 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Remove target_ops
10259 parameter.
10260 (check_stopped_by_watchpoint): Adjust.
10261 (linux_xfer_partial): Delete.
10262 (linux_target_install_ops, linux_target, linux_nat_add_target):
10263 Delete.
10264 (linux_nat_target::linux_nat_target): New.
10265 * linux-nat.h: Include "inf-ptrace.h".
10266 (linux_nat_target): New.
10267 (linux_target, linux_target_install_ops, linux_nat_add_target):
10268 Delete function declarations.
10269 (linux_target): Declare global.
10270 * linux-thread-db.c (thread_db_target): New.
10271 (thread_db_target::thread_db_target): New.
10272 (thread_db_ops): Delete.
10273 (the_thread_db_target): New.
10274 (thread_db_detach, thread_db_wait, thread_db_mourn_inferior)
10275 (thread_db_update_thread_list, thread_db_pid_to_str)
10276 (thread_db_extra_thread_info)
10277 (thread_db_thread_handle_to_thread_info)
10278 (thread_db_get_thread_local_address, thread_db_get_ada_task_ptid)
10279 (thread_db_resume): Refactor as methods of thread_db_target.
10280 (init_thread_db_ops): Delete.
10281 (_initialize_thread_db): Remove reference to init_thread_db_ops.
10282 * x86-linux-nat.c: Don't include "linux-nat.h".
10283 (super_post_startup_inferior): Delete.
10284 (x86_linux_nat_target::~x86_linux_nat_target): New.
10285 (x86_linux_child_post_startup_inferior)
10286 (x86_linux_read_description, x86_linux_enable_btrace)
10287 (x86_linux_disable_btrace, x86_linux_teardown_btrace)
10288 (x86_linux_read_btrace, x86_linux_btrace_conf): Refactor as
10289 methods of x86_linux_nat_target.
10290 (x86_linux_create_target): Delete. Bits folded ...
10291 (x86_linux_add_target): ... here. Now takes a linux_nat_target
10292 pointer.
10293 * x86-linux-nat.h: Include "linux-nat.h" and "x86-nat.h".
10294 (x86_linux_nat_target): New class.
10295 (x86_linux_create_target): Delete.
10296 (x86_linux_add_target): Now takes a linux_nat_target pointer.
10297 * x86-nat.c (x86_insert_watchpoint, x86_remove_watchpoint)
10298 (x86_region_ok_for_watchpoint, x86_stopped_data_address)
10299 (x86_stopped_by_watchpoint, x86_insert_hw_breakpoint)
10300 (x86_remove_hw_breakpoint, x86_can_use_hw_breakpoint)
10301 (x86_stopped_by_hw_breakpoint): Remove target_ops parameter and
10302 make extern.
10303 (x86_use_watchpoints): Delete.
10304 * x86-nat.h: Include "breakpoint.h" and "target.h".
10305 (x86_use_watchpoints): Delete.
10306 (x86_can_use_hw_breakpoint, x86_region_ok_for_hw_watchpoint)
10307 (x86_stopped_by_watchpoint, x86_stopped_data_address)
10308 (x86_insert_watchpoint, x86_remove_watchpoint)
10309 (x86_insert_hw_breakpoint, x86_remove_hw_breakpoint)
10310 (x86_stopped_by_hw_breakpoint): New declarations.
10311 (x86_nat_target): New template class.
10312
10313 * ppc-linux-nat.c (ppc_linux_nat_target): New class.
10314 (the_ppc_linux_nat_target): New.
10315 (ppc_linux_fetch_inferior_registers)
10316 (ppc_linux_can_use_hw_breakpoint)
10317 (ppc_linux_region_ok_for_hw_watchpoint)
10318 (ppc_linux_ranged_break_num_registers)
10319 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
10320 (ppc_linux_insert_mask_watchpoint)
10321 (ppc_linux_remove_mask_watchpoint)
10322 (ppc_linux_can_accel_watchpoint_condition)
10323 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint)
10324 (ppc_linux_stopped_data_address, ppc_linux_stopped_by_watchpoint)
10325 (ppc_linux_watchpoint_addr_within_range)
10326 (ppc_linux_masked_watch_num_registers)
10327 (ppc_linux_store_inferior_registers, ppc_linux_auxv_parse)
10328 (ppc_linux_read_description): Refactor as methods of
10329 ppc_linux_nat_target.
10330 (_initialize_ppc_linux_nat): Adjust. Set linux_target.
10331
10332 * procfs.c (procfs_xfer_partial): Delete forward declaration.
10333 (procfs_target): New class.
10334 (the_procfs_target): New.
10335 (procfs_target): Delete function.
10336 (procfs_auxv_parse, procfs_attach, procfs_detach)
10337 (procfs_fetch_registers, procfs_store_registers, procfs_wait)
10338 (procfs_xfer_partial, procfs_resume, procfs_pass_signals)
10339 (procfs_files_info, procfs_kill_inferior, procfs_mourn_inferior)
10340 (procfs_create_inferior, procfs_update_thread_list)
10341 (procfs_thread_alive, procfs_pid_to_str)
10342 (procfs_can_use_hw_breakpoint, procfs_stopped_by_watchpoint)
10343 (procfs_stopped_data_address, procfs_insert_watchpoint)
10344 (procfs_remove_watchpoint, procfs_region_ok_for_hw_watchpoint)
10345 (proc_find_memory_regions, procfs_info_proc)
10346 (procfs_make_note_section): Refactor as methods of procfs_target.
10347 (_initialize_procfs): Adjust.
10348 * sol-thread.c (sol_thread_target): New class.
10349 (sol_thread_ops): Now a sol_thread_target.
10350 (sol_thread_detach, sol_thread_resume, sol_thread_wait)
10351 (sol_thread_fetch_registers, sol_thread_store_registers)
10352 (sol_thread_xfer_partial, sol_thread_mourn_inferior)
10353 (sol_thread_alive, solaris_pid_to_str, sol_update_thread_list)
10354 (sol_get_ada_task_ptid): Refactor as methods of sol_thread_target.
10355 (init_sol_thread_ops): Delete.
10356 (_initialize_sol_thread): Adjust. Remove references to
10357 init_sol_thread_ops and complete_target_initialization.
10358
10359 * windows-nat.c (windows_nat_target): New class.
10360 (windows_fetch_inferior_registers)
10361 (windows_store_inferior_registers, windows_resume, windows_wait)
10362 (windows_attach, windows_detach, windows_pid_to_exec_file)
10363 (windows_files_info, windows_create_inferior)
10364 (windows_mourn_inferior, windows_interrupt, windows_kill_inferior)
10365 (windows_close, windows_pid_to_str, windows_xfer_partial)
10366 (windows_get_tib_address, windows_get_ada_task_ptid)
10367 (windows_thread_name, windows_thread_alive): Refactor as
10368 windows_nat_target methods.
10369 (do_initial_windows_stuff): Adjust.
10370 (windows_target): Delete function.
10371 (_initialize_windows_nat): Adjust.
10372
10373 * darwin-nat.c (darwin_resume, darwin_wait_to, darwin_interrupt)
10374 (darwin_mourn_inferior, darwin_kill_inferior)
10375 (darwin_create_inferior, darwin_attach, darwin_detach)
10376 (darwin_pid_to_str, darwin_thread_alive, darwin_xfer_partial)
10377 (darwin_pid_to_exec_file, darwin_get_ada_task_ptid)
10378 (darwin_supports_multi_process): Refactor as darwin_nat_target
10379 methods.
10380 (darwin_resume_to, darwin_files_info): Delete.
10381 (_initialize_darwin_inferior): Rename to ...
10382 (_initialize_darwin_nat): ... this. Adjust to C++ification.
10383 * darwin-nat.h: Include "inf-child.h".
10384 (darwin_nat_target): New class.
10385 (darwin_complete_target): Delete.
10386 * i386-darwin-nat.c (i386_darwin_nat_target): New class.
10387 (darwin_target): New.
10388 (i386_darwin_fetch_inferior_registers)
10389 (i386_darwin_store_inferior_registers): Refactor as methods of
10390 darwin_nat_target.
10391 (darwin_complete_target): Delete, with ...
10392 (_initialize_i386_darwin_nat): ... bits factored out here.
10393
10394 * alpha-linux-nat.c (alpha_linux_nat_target): New class.
10395 (the_alpha_linux_nat_target): New.
10396 (alpha_linux_register_u_offset): Refactor as
10397 alpha_linux_nat_target method.
10398 (_initialize_alpha_linux_nat): Adjust.
10399 * linux-nat-trad.c (inf_ptrace_register_u_offset): Delete.
10400 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
10401 (inf_ptrace_store_register, inf_ptrace_store_registers): Refact as
10402 methods of linux_nat_trad_target.
10403 (linux_trad_target): Delete.
10404 * linux-nat-trad.h (linux_trad_target): Delete function.
10405 (linux_nat_trad_target): New class.
10406 * mips-linux-nat.c (mips_linux_nat_target): New class.
10407 (super_fetch_registers, super_store_registers, super_close):
10408 Delete.
10409 (the_mips_linux_nat_target): New.
10410 (mips64_linux_regsets_fetch_registers)
10411 (mips64_linux_regsets_store_registers)
10412 (mips64_linux_fetch_registers, mips64_linux_store_registers)
10413 (mips_linux_register_u_offset, mips_linux_read_description)
10414 (mips_linux_can_use_hw_breakpoint)
10415 (mips_linux_stopped_by_watchpoint)
10416 (mips_linux_stopped_data_address)
10417 (mips_linux_region_ok_for_hw_watchpoint)
10418 (mips_linux_insert_watchpoint, mips_linux_remove_watchpoint)
10419 (mips_linux_close): Refactor as methods of mips_linux_nat.
10420 (_initialize_mips_linux_nat): Adjust to C++ification.
10421
10422 * aix-thread.c (aix_thread_target): New class.
10423 (aix_thread_ops): Now an aix_thread_target.
10424 (aix_thread_detach, aix_thread_resume, aix_thread_wait)
10425 (aix_thread_fetch_registers, aix_thread_store_registers)
10426 (aix_thread_xfer_partial, aix_thread_mourn_inferior)
10427 (aix_thread_thread_alive, aix_thread_pid_to_str)
10428 (aix_thread_extra_thread_info, aix_thread_get_ada_task_ptid):
10429 Refactor as methods of aix_thread_target.
10430 (init_aix_thread_ops): Delete.
10431 (_initialize_aix_thread): Remove references to init_aix_thread_ops
10432 and complete_target_initialization.
10433 * rs6000-nat.c (rs6000_xfer_shared_libraries): Delete.
10434 (rs6000_nat_target): New class.
10435 (the_rs6000_nat_target): New.
10436 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers)
10437 (rs6000_xfer_partial, rs6000_wait, rs6000_create_inferior)
10438 (rs6000_xfer_shared_libraries): Refactor as rs6000_nat_target methods.
10439 (super_create_inferior): Delete.
10440 (_initialize_rs6000_nat): Adjust to C++ification.
10441
10442 * arm-linux-nat.c (arm_linux_nat_target): New class.
10443 (the_arm_linux_nat_target): New.
10444 (arm_linux_fetch_inferior_registers)
10445 (arm_linux_store_inferior_registers, arm_linux_read_description)
10446 (arm_linux_can_use_hw_breakpoint, arm_linux_insert_hw_breakpoint)
10447 (arm_linux_remove_hw_breakpoint)
10448 (arm_linux_region_ok_for_hw_watchpoint)
10449 (arm_linux_insert_watchpoint, arm_linux_remove_watchpoint)
10450 (arm_linux_stopped_data_address, arm_linux_stopped_by_watchpoint)
10451 (arm_linux_watchpoint_addr_within_range): Refactor as methods of
10452 arm_linux_nat_target.
10453 (_initialize_arm_linux_nat): Adjust to C++ification.
10454
10455 * aarch64-linux-nat.c (aarch64_linux_nat_target): New class.
10456 (the_aarch64_linux_nat_target): New.
10457 (aarch64_linux_fetch_inferior_registers)
10458 (aarch64_linux_store_inferior_registers)
10459 (aarch64_linux_child_post_startup_inferior)
10460 (aarch64_linux_read_description)
10461 (aarch64_linux_can_use_hw_breakpoint)
10462 (aarch64_linux_insert_hw_breakpoint)
10463 (aarch64_linux_remove_hw_breakpoint)
10464 (aarch64_linux_insert_watchpoint, aarch64_linux_remove_watchpoint)
10465 (aarch64_linux_region_ok_for_hw_watchpoint)
10466 (aarch64_linux_stopped_data_address)
10467 (aarch64_linux_stopped_by_watchpoint)
10468 (aarch64_linux_watchpoint_addr_within_range)
10469 (aarch64_linux_can_do_single_step): Refactor as methods of
10470 aarch64_linux_nat_target.
10471 (super_post_startup_inferior): Delete.
10472 (_initialize_aarch64_linux_nat): Adjust to C++ification.
10473
10474 * hppa-linux-nat.c (hppa_linux_nat_target): New class.
10475 (the_hppa_linux_nat_target): New.
10476 (hppa_linux_fetch_inferior_registers)
10477 (hppa_linux_store_inferior_registers): Refactor as methods of
10478 hppa_linux_nat_target.
10479 (_initialize_hppa_linux_nat): Adjust to C++ification.
10480
10481 * ia64-linux-nat.c (ia64_linux_nat_target): New class.
10482 (the_ia64_linux_nat_target): New.
10483 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint)
10484 (ia64_linux_stopped_data_address)
10485 (ia64_linux_stopped_by_watchpoint, ia64_linux_fetch_registers)
10486 (ia64_linux_store_registers, ia64_linux_xfer_partial): Refactor as
10487 ia64_linux_nat_target methods.
10488 (super_xfer_partial): Delete.
10489 (_initialize_ia64_linux_nat): Adjust to C++ification.
10490
10491 * m32r-linux-nat.c (m32r_linux_nat_target): New class.
10492 (the_m32r_linux_nat_target): New.
10493 (m32r_linux_fetch_inferior_registers)
10494 (m32r_linux_store_inferior_registers): Refactor as
10495 m32r_linux_nat_target methods.
10496 (_initialize_m32r_linux_nat): Adjust to C++ification.
10497
10498 * m68k-linux-nat.c (m68k_linux_nat_target): New class.
10499 (the_m68k_linux_nat_target): New.
10500 (m68k_linux_fetch_inferior_registers)
10501 (m68k_linux_store_inferior_registers): Refactor as
10502 m68k_linux_nat_target methods.
10503 (_initialize_m68k_linux_nat): Adjust to C++ification.
10504
10505 * s390-linux-nat.c (s390_linux_nat_target): New class.
10506 (the_s390_linux_nat_target): New.
10507 (s390_linux_fetch_inferior_registers)
10508 (s390_linux_store_inferior_registers, s390_stopped_by_watchpoint)
10509 (s390_insert_watchpoint, s390_remove_watchpoint)
10510 (s390_can_use_hw_breakpoint, s390_insert_hw_breakpoint)
10511 (s390_remove_hw_breakpoint, s390_region_ok_for_hw_watchpoint)
10512 (s390_auxv_parse, s390_read_description): Refactor as methods of
10513 s390_linux_nat_target.
10514 (_initialize_s390_nat): Adjust to C++ification.
10515
10516 * sparc-linux-nat.c (sparc_linux_nat_target): New class.
10517 (the_sparc_linux_nat_target): New.
10518 (_initialize_sparc_linux_nat): Adjust to C++ification.
10519 * sparc-nat.c (sparc_fetch_inferior_registers)
10520 (sparc_store_inferior_registers): Remove target_ops parameter.
10521 * sparc-nat.h (sparc_fetch_inferior_registers)
10522 (sparc_store_inferior_registers): Remove target_ops parameter.
10523 * sparc64-linux-nat.c (sparc64_linux_nat_target): New class.
10524 (the_sparc64_linux_nat_target): New.
10525 (_initialize_sparc64_linux_nat): Adjust to C++ification.
10526
10527 * spu-linux-nat.c (spu_linux_nat_target): New class.
10528 (the_spu_linux_nat_target): New.
10529 (spu_child_post_startup_inferior, spu_child_post_attach)
10530 (spu_child_wait, spu_fetch_inferior_registers)
10531 (spu_store_inferior_registers, spu_xfer_partial)
10532 (spu_can_use_hw_breakpoint): Refactor as spu_linux_nat_target
10533 methods.
10534 (_initialize_spu_nat): Adjust to C++ification.
10535
10536 * tilegx-linux-nat.c (tilegx_linux_nat_target): New class.
10537 (the_tilegx_linux_nat_target): New.
10538 (fetch_inferior_registers, store_inferior_registers):
10539 Refactor as methods.
10540 (_initialize_tile_linux_nat): Adjust to C++ification.
10541
10542 * xtensa-linux-nat.c (xtensa_linux_nat_target): New class.
10543 (the_xtensa_linux_nat_target): New.
10544 (xtensa_linux_fetch_inferior_registers)
10545 (xtensa_linux_store_inferior_registers): Refactor as
10546 xtensa_linux_nat_target methods.
10547 (_initialize_xtensa_linux_nat): Adjust to C++ification.
10548
10549 * fbsd-nat.c (USE_SIGTRAP_SIGINFO): Delete.
10550 (fbsd_pid_to_exec_file, fbsd_find_memory_regions)
10551 (fbsd_find_memory_regions, fbsd_info_proc, fbsd_xfer_partial)
10552 (fbsd_thread_alive, fbsd_pid_to_str, fbsd_thread_name)
10553 (fbsd_update_thread_list, fbsd_resume, fbsd_wait)
10554 (fbsd_stopped_by_sw_breakpoint)
10555 (fbsd_supports_stopped_by_sw_breakpoint, fbsd_follow_fork)
10556 (fbsd_insert_fork_catchpoint, fbsd_remove_fork_catchpoint)
10557 (fbsd_insert_vfork_catchpoint, fbsd_remove_vfork_catchpoint)
10558 (fbsd_post_startup_inferior, fbsd_post_attach)
10559 (fbsd_insert_exec_catchpoint, fbsd_remove_exec_catchpoint)
10560 (fbsd_set_syscall_catchpoint)
10561 (super_xfer_partial, super_resume, super_wait)
10562 (fbsd_supports_stopped_by_hw_breakpoint): Delete.
10563 (fbsd_handle_debug_trap): Remove target_ops parameter.
10564 (fbsd_nat_add_target): Delete.
10565 * fbsd-nat.h: Include "inf-ptrace.h".
10566 (fbsd_nat_add_target): Delete.
10567 (USE_SIGTRAP_SIGINFO): Define.
10568 (fbsd_nat_target): New class.
10569
10570 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers)
10571 (amd64bsd_store_inferior_registers): Remove target_ops parameter.
10572 (amd64bsd_target): Delete.
10573 * amd64-bsd-nat.h: New file.
10574 * amd64-fbsd-nat.c: Include "amd64-bsd-nat.h" instead of
10575 "x86-bsd-nat.h".
10576 (amd64_fbsd_nat_target): New class.
10577 (the_amd64_fbsd_nat_target): New.
10578 (amd64fbsd_read_description): Refactor as method of
10579 amd64_fbsd_nat_target.
10580 (amd64_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
10581 (_initialize_amd64fbsd_nat): Adjust to C++ification.
10582 * amd64-nat.h (amd64bsd_target): Delete function declaration.
10583 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers)
10584 (i386bsd_store_inferior_registers): Remove target_ops parameter.
10585 (i386bsd_target): Delete.
10586 * i386-bsd-nat.h (i386bsd_target): Delete function declaration.
10587 (i386bsd_fetch_inferior_registers)
10588 (i386bsd_store_inferior_registers): Declare.
10589 (i386_bsd_nat_target): New class.
10590 * i386-fbsd-nat.c (i386_fbsd_nat_target): New class.
10591 (the_i386_fbsd_nat_target): New.
10592 (i386fbsd_resume, i386fbsd_read_description): Refactor as
10593 i386_fbsd_nat_target methods.
10594 (i386_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
10595 (_initialize_i386fbsd_nat): Adjust to C++ification.
10596 * x86-bsd-nat.c (super_mourn_inferior): Delete.
10597 (x86bsd_mourn_inferior, x86bsd_target): Delete.
10598 (_initialize_x86_bsd_nat): Adjust to C++ification.
10599 * x86-bsd-nat.h: Include "x86-nat.h".
10600 (x86bsd_target): Delete declaration.
10601 (x86bsd_nat_target): New class.
10602
10603 * aarch64-fbsd-nat.c (aarch64_fbsd_nat_target): New class.
10604 (the_aarch64_fbsd_nat_target): New.
10605 (aarch64_fbsd_fetch_inferior_registers)
10606 (aarch64_fbsd_store_inferior_registers): Refactor as methods of
10607 aarch64_fbsd_nat_target.
10608 (_initialize_aarch64_fbsd_nat): Adjust to C++ification.
10609 * alpha-bsd-nat.c (alpha_bsd_nat_target): New class.
10610 (the_alpha_bsd_nat_target): New.
10611 (alphabsd_fetch_inferior_registers)
10612 (alphabsd_store_inferior_registers): Refactor as
10613 alpha_bsd_nat_target methods.
10614 (_initialize_alphabsd_nat): Refactor as methods of
10615 alpha_bsd_nat_target.
10616 * amd64-nbsd-nat.c: Include "amd64-bsd-nat.h".
10617 (the_amd64_nbsd_nat_target): New.
10618 (_initialize_amd64nbsd_nat): Adjust to C++ification.
10619 * amd64-obsd-nat.c: Include "amd64-bsd-nat.h".
10620 (the_amd64_obsd_nat_target): New.
10621 (_initialize_amd64obsd_nat): Adjust to C++ification.
10622 * arm-fbsd-nat.c (arm_fbsd_nat_target): New.
10623 (the_arm_fbsd_nat_target): New.
10624 (arm_fbsd_fetch_inferior_registers)
10625 (arm_fbsd_store_inferior_registers, arm_fbsd_read_description):
10626 (_initialize_arm_fbsd_nat): Refactor as methods of
10627 arm_fbsd_nat_target.
10628 (_initialize_arm_fbsd_nat): Adjust to C++ification.
10629 * arm-nbsd-nat.c (arm_netbsd_nat_target): New class.
10630 (the_arm_netbsd_nat_target): New.
10631 (armnbsd_fetch_registers, armnbsd_store_registers): Refactor as
10632 arm_netbsd_nat_target.
10633 (_initialize_arm_netbsd_nat): Adjust to C++ification.
10634 * hppa-nbsd-nat.c (hppa_nbsd_nat_target): New class.
10635 (the_hppa_nbsd_nat_target): New.
10636 (hppanbsd_fetch_registers, hppanbsd_store_registers): Refactor as
10637 hppa_nbsd_nat_target methods.
10638 (_initialize_hppanbsd_nat): Adjust to C++ification.
10639 * hppa-obsd-nat.c (hppa_obsd_nat_target): New class.
10640 (the_hppa_obsd_nat_target): New.
10641 (hppaobsd_fetch_registers, hppaobsd_store_registers): Refactor as
10642 methods of hppa_obsd_nat_target.
10643 (_initialize_hppaobsd_nat): Adjust to C++ification. Use
10644 add_target.
10645 * i386-nbsd-nat.c (the_i386_nbsd_nat_target): New.
10646 (_initialize_i386nbsd_nat): Adjust to C++ification. Use
10647 add_target.
10648 * i386-obsd-nat.c (the_i386_obsd_nat_target): New.
10649 (_initialize_i386obsd_nat): Use add_target.
10650 * m68k-bsd-nat.c (m68k_bsd_nat_target): New class.
10651 (the_m68k_bsd_nat_target): New.
10652 (m68kbsd_fetch_inferior_registers)
10653 (m68kbsd_store_inferior_registers): Refactor as methods of
10654 m68k_bsd_nat_target.
10655 (_initialize_m68kbsd_nat): Adjust to C++ification.
10656 * mips-fbsd-nat.c (mips_fbsd_nat_target): New class.
10657 (the_mips_fbsd_nat_target): New.
10658 (mips_fbsd_fetch_inferior_registers)
10659 (mips_fbsd_store_inferior_registers): Refactor as methods of
10660 mips_fbsd_nat_target.
10661 (_initialize_mips_fbsd_nat): Adjust to C++ification. Use
10662 add_target.
10663 * mips-nbsd-nat.c (mips_nbsd_nat_target): New class.
10664 (the_mips_nbsd_nat_target): New.
10665 (mipsnbsd_fetch_inferior_registers)
10666 (mipsnbsd_store_inferior_registers): Refactor as methods of
10667 mips_nbsd_nat_target.
10668 (_initialize_mipsnbsd_nat): Adjust to C++ification.
10669 * mips64-obsd-nat.c (mips64_obsd_nat_target): New class.
10670 (the_mips64_obsd_nat_target): New.
10671 (mips64obsd_fetch_inferior_registers)
10672 (mips64obsd_store_inferior_registers): Refactor as methods of
10673 mips64_obsd_nat_target.
10674 (_initialize_mips64obsd_nat): Adjust to C++ification. Use
10675 add_target.
10676 * nbsd-nat.c (nbsd_pid_to_exec_file): Refactor as method of
10677 nbsd_nat_target.
10678 * nbsd-nat.h: Include "inf-ptrace.h".
10679 (nbsd_nat_target): New class.
10680 * obsd-nat.c (obsd_pid_to_str, obsd_update_thread_list)
10681 (obsd_wait): Refactor as methods of obsd_nat_target.
10682 (obsd_add_target): Delete.
10683 * obsd-nat.h: Include "inf-ptrace.h".
10684 (obsd_nat_target): New class.
10685 * ppc-fbsd-nat.c (ppc_fbsd_nat_target): New class.
10686 (the_ppc_fbsd_nat_target): New.
10687 (ppcfbsd_fetch_inferior_registers)
10688 (ppcfbsd_store_inferior_registers): Refactor as methods of
10689 ppc_fbsd_nat_target.
10690 (_initialize_ppcfbsd_nat): Adjust to C++ification. Use
10691 add_target.
10692 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): New class.
10693 (the_ppc_nbsd_nat_target): New.
10694 (ppcnbsd_fetch_inferior_registers)
10695 (ppcnbsd_store_inferior_registers): Refactor as methods of
10696 ppc_nbsd_nat_target.
10697 (_initialize_ppcnbsd_nat): Adjust to C++ification.
10698 * ppc-obsd-nat.c (ppc_obsd_nat_target): New class.
10699 (the_ppc_obsd_nat_target): New.
10700 (ppcobsd_fetch_registers, ppcobsd_store_registers): Refactor as
10701 methods of ppc_obsd_nat_target.
10702 (_initialize_ppcobsd_nat): Adjust to C++ification. Use
10703 add_target.
10704 * sh-nbsd-nat.c (sh_nbsd_nat_target): New class.
10705 (the_sh_nbsd_nat_target): New.
10706 (shnbsd_fetch_inferior_registers)
10707 (shnbsd_store_inferior_registers): Refactor as methods of
10708 sh_nbsd_nat_target.
10709 (_initialize_shnbsd_nat): Adjust to C++ification.
10710 * sparc-nat.c (sparc_xfer_wcookie): Make extern.
10711 (inf_ptrace_xfer_partial): Delete.
10712 (sparc_xfer_partial, sparc_target): Delete.
10713 * sparc-nat.h (sparc_fetch_inferior_registers)
10714 (sparc_store_inferior_registers, sparc_xfer_wcookie): Declare.
10715 (sparc_target): Delete function declaration.
10716 (sparc_target): New template class.
10717 * sparc-nbsd-nat.c (the_sparc_nbsd_nat_target): New.
10718 (_initialize_sparcnbsd_nat): Adjust to C++ification.
10719 * sparc64-fbsd-nat.c (the_sparc64_fbsd_nat_target): New.
10720 (_initialize_sparc64fbsd_nat): Adjust to C++ification. Use
10721 add_target.
10722 * sparc64-nbsd-nat.c (the_sparc64_nbsd_nat_target): New.
10723 (_initialize_sparc64nbsd_nat): Adjust to C++ification.
10724 * sparc64-obsd-nat.c (the_sparc64_obsd_nat_target): New.
10725 (_initialize_sparc64obsd_nat): Adjust to C++ification. Use
10726 add_target.
10727 * vax-bsd-nat.c (vax_bsd_nat_target): New class.
10728 (the_vax_bsd_nat_target): New.
10729 (vaxbsd_fetch_inferior_registers)
10730 (vaxbsd_store_inferior_registers): Refactor as vax_bsd_nat_target
10731 methods.
10732 (_initialize_vaxbsd_nat): Adjust to C++ification.
10733
10734 * bsd-kvm.c (bsd_kvm_target): New class.
10735 (bsd_kvm_ops): Now a bsd_kvm_target.
10736 (bsd_kvm_open, bsd_kvm_close, bsd_kvm_xfer_partial)
10737 (bsd_kvm_files_info, bsd_kvm_fetch_registers)
10738 (bsd_kvm_thread_alive, bsd_kvm_pid_to_str): Refactor as methods of
10739 bsd_kvm_target.
10740 (bsd_kvm_return_one): Delete.
10741 (bsd_kvm_add_target): Adjust to C++ification.
10742
10743 * nto-procfs.c (nto_procfs_target, nto_procfs_target_native)
10744 (nto_procfs_target_procfs): New classes.
10745 (procfs_open_1, procfs_thread_alive, procfs_update_thread_list)
10746 (procfs_files_info, procfs_pid_to_exec_file, procfs_attach)
10747 (procfs_post_attach, procfs_wait, procfs_fetch_registers)
10748 (procfs_xfer_partial, procfs_detach, procfs_insert_breakpoint)
10749 (procfs_remove_breakpoint, procfs_insert_hw_breakpoint)
10750 (procfs_remove_hw_breakpoint, procfs_resume)
10751 (procfs_mourn_inferior, procfs_create_inferior, procfs_interrupt)
10752 (procfs_kill_inferior, procfs_store_registers)
10753 (procfs_pass_signals, procfs_pid_to_str, procfs_can_run): Refactor
10754 as methods of nto_procfs_target.
10755 (nto_procfs_ops): Now an nto_procfs_target_procfs.
10756 (nto_native_ops): Delete.
10757 (procfs_open, procfs_native_open): Delete.
10758 (nto_native_ops): Now an nto_procfs_target_native.
10759 (init_procfs_targets): Adjust to C++ification.
10760 (procfs_can_use_hw_breakpoint, procfs_remove_hw_watchpoint)
10761 (procfs_insert_hw_watchpoint, procfs_stopped_by_watchpoint):
10762 Refactor as methods of nto_procfs_target.
10763
10764 * go32-nat.c (go32_nat_target): New class.
10765 (the_go32_nat_target): New.
10766 (go32_attach, go32_resume, go32_wait, go32_fetch_registers)
10767 (go32_store_registers, go32_xfer_partial, go32_files_info)
10768 (go32_kill_inferior, go32_create_inferior, go32_mourn_inferior)
10769 (go32_terminal_init, go32_terminal_info, go32_terminal_inferior)
10770 (go32_terminal_ours, go32_pass_ctrlc, go32_thread_alive)
10771 (go32_pid_to_str): Refactor as methods of go32_nat_target.
10772 (go32_target): Delete.
10773 (_initialize_go32_nat): Adjust to C++ification.
10774
10775 * gnu-nat.c (gnu_wait, gnu_resume, gnu_kill_inferior)
10776 (gnu_mourn_inferior, gnu_create_inferior, gnu_attach, gnu_detach)
10777 (gnu_stop, gnu_thread_alive, gnu_xfer_partial)
10778 (gnu_find_memory_regions, gnu_pid_to_str): Refactor as methods of
10779 gnu_nat_target.
10780 (gnu_target): Delete.
10781 * gnu-nat.h (gnu_target): Delete.
10782 (gnu_nat_target): New class.
10783 * i386-gnu-nat.c (gnu_base_target): New.
10784 (i386_gnu_nat_target): New class.
10785 (the_i386_gnu_nat_target): New.
10786 (_initialize_i386gnu_nat): Adjust to C++ification.
10787
3fffc070
PA
107882018-05-02 Pedro Alves <palves@redhat.com>
10789
10790 * bfd-target.c (target_bfd_xclose): Rename to ...
10791 (target_bfd_close): ... this.
10792 (target_bfd_reopen): Adjust.
10793 * target.c (target_close): Remove references to to_xclose.
10794 * target.h (target_ops::to_xclose): Delete.
10795 (target_ops::to_close): Update comments.
10796
6798487f
PA
107972018-05-02 Pedro Alves <palves@redhat.com>
10798
10799 * alpha-linux-nat.c: Include "linux-nat-trad.h" instead of
10800 "linux-nat.h".
10801 * configure.nat (alpha-linux, linux-mips): Add linux-nat-trad.o.
10802 * inf-ptrace.c (inf_ptrace_register_u_offset)
10803 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
10804 (inf_ptrace_store_register, inf_ptrace_store_registers)
10805 (inf_ptrace_trad_target): Move to ...
10806 * linux-nat-trad.c: ... this new file.
10807 * linux-nat-trad.h: New file.
10808 * linux-nat.c (linux_target_install_ops): Make extern.
10809 (linux_trad_target): Delete.
10810 * linux-nat.h (linux_trad_target): Delete declaration.
10811 (linux_target_install_ops): Declare.
10812 * mips-linux-nat.c: Include "linux-nat-trad.h" instead of
10813 "linux-nat.h".
10814
c1955e17
PA
108152018-05-02 Pedro Alves <palves@redhat.com>
10816
10817 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
10818 procfs_target/add_target here.
10819 * procfs.c (procfs_target): Make static.
10820 (_initialize_procfs): Call add_target here.
10821 * procfs.h (struct target_ops): Remove forward declaration.
10822 (procfs_target): Remove declaration.
10823 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Delete.
10824
b5c8fcb1
PA
108252018-05-02 Pedro Alves <palves@redhat.com>
10826
10827 * procfs.c (procfs_stopped_by_watchpoint)
10828 (procfs_insert_watchpoint, procfs_remove_watchpoint)
10829 (procfs_region_ok_for_hw_watchpoint, procfs_stopped_data_address):
10830 Forward declare.
10831 (procfs_use_watchpoints): Delete, move contents...
10832 (procfs_target): ... here.
10833 * procfs.h (procfs_use_watchpoints): Delete declaration.
10834 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
10835 procfs_use_watchpoints.
10836 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Don't call
10837 procfs_use_watchpoints.
10838
0489430a
TT
108392018-05-02 Tom Tromey <tom@tromey.com>
10840
10841 PR python/20084:
10842 * python/python.c (gdbpy_parameter_value): Handle var_zuinteger
10843 and var_zuinteger_unlimited.
10844 * python/py-param.c (struct parm_constant): Add PARAM_ZUINTEGER
10845 and PARAM_ZUINTEGER_UNLIMITED.
10846 (set_parameter_value): Handle var_zuinteger and
10847 var_zuinteger_unlimited.
10848 (add_setshow_generic): Likewise.
10849 (parmpy_init): Likewise.
10850
1632f8ba
DR
108512018-04-28 Dan Robertson <danlrobertson89@gmail.com>
10852
10853 PR rust/23124
10854 * gdb/rust-exp.y (convert_params_to_types): Ensure that the params
10855 pointer is not null before dereferencing it.
10856
76761936
TT
108572018-04-30 Tom Tromey <tom@tromey.com>
10858
10859 * darwin-nat-info.c (darwin_debug_regions_recurse): Remove use of
10860 is_mi_like_p.
10861
2d33446d
TT
108622018-04-30 Tom Tromey <tom@tromey.com>
10863
10864 * breakpoint.c (mention): Remove use of is_mi_like_p.
10865 (print_mention_ranged_breakpoint): Likewise.
10866 * break-catch-throw.c (print_it_exception_catchpoint): Remove use
10867 of is_mi_like_p.
10868
f3c6abab
TT
108692018-04-30 Tom Tromey <tom@tromey.com>
10870
10871 * tracepoint.c (tvariables_info_1): Remove use of is_mi_like_p.
10872
40c03530
TT
108732018-04-30 Tom Tromey <tom@tromey.com>
10874
10875 * spu-tdep.c (info_spu_mailbox_list, info_spu_dma_cmdlist)
10876 (info_spu_event_command): Remove some uses of is_mi_like_p.
10877
2038b7fd
TT
108782018-04-30 Tom Tromey <tom@tromey.com>
10879
10880 * python/py-framefilter.c (py_print_single_arg)
10881 (enumerate_locals, py_print_args, py_print_frame): Remove some
10882 uses of is_mi_like_p.
10883
4904c3c6
TT
108842018-04-30 Tom Tromey <tom@tromey.com>
10885
10886 * ui-out.c: Update.
10887 * cli-out.h (cli_ui_out::do_is_mi_like_p): Update.
10888 * ui-out.h (ui_out::is_mi_like_p): Now const.
10889 (ui_out::do_is_mi_like_p): Now const.
10890 * mi/mi-out.h (mi_ui_out::do_is_mi_like_p): Update.
10891
7c66fffc
TT
108922018-04-30 Tom Tromey <tom@tromey.com>
10893
10894 * varobj.c (varobj_set_visualizer): Use new_reference.
10895 * python/python.c (gdbpy_decode_line): Use new_reference.
10896 * python/py-cmd.c (cmdpy_function, cmdpy_completer_helper): Use
10897 new_reference.
10898
bbfa6f00
TT
108992018-04-30 Tom Tromey <tom@tromey.com>
10900
10901 * varobj.c (install_new_value): Use new_reference.
10902 * value.h (value_incref): Return void. Swap intro comment with
10903 value_decref.
10904 * value.c (set_value_parent): Use new_reference.
10905 (value_incref): Return void. Update intro comment.
10906 (release_value): Use new_reference.
10907 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use new_reference.
10908
1831a9f9
TT
109092018-04-30 Tom Tromey <tom@tromey.com>
10910
10911 * symfile-mem.c (symbol_file_add_from_memory): Use new_reference.
10912 * gdb_bfd.h (new_bfd_ref): Remove.
10913 (gdb_bfd_open): Update comment.
10914 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
10915 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_record_inclusion)
10916 (gdb_bfd_fdopenr): Use new_reference.
10917 * exec.c (exec_file_attach): Use new_reference.
10918
7c1b5f3d
TT
109192018-04-30 Tom Tromey <tom@tromey.com>
10920
10921 * common/gdb_ref_ptr.h (ref_ptr::new_reference): New static
10922 method.
10923
e11fb955
TT
109242018-04-30 Tom Tromey <tom@tromey.com>
10925
10926 * jit.c (jit_read_code_entry): Use type_align.
10927 * i386-tdep.c (i386_gdbarch_init): Don't call
10928 set_gdbarch_long_long_align_bit.
10929 * gdbarch.sh: Remove long_long_align_bit.
10930 * gdbarch.c, gdbarch.h: Rebuild.
10931 * arc-tdep.c (arc_type_align): New function.
10932 (arc_gdbarch_init): Use arc_type_align. Don't call
10933 set_gdbarch_long_long_align_bit.
10934
2fff16dd
TT
109352018-04-30 Tom Tromey <tom@tromey.com>
10936
10937 * rust-lang.c (rust_type_alignment): Remove.
10938 (rust_composite_type): Use type_align.
10939
6d7bb824
TT
109402018-04-30 Tom Tromey <tom@tromey.com>
10941
10942 * NEWS: Mention Type.align.
10943 * python/py-type.c (typy_get_alignof): New function.
10944 (type_object_getset): Add "alignof".
10945
007e1530
TT
109462018-04-30 Tom Tromey <tom@tromey.com>
10947
10948 PR exp/17095:
10949 * NEWS: Update.
10950 * std-operator.def (UNOP_ALIGNOF): New operator.
10951 * expprint.c (dump_subexp_body_standard) <case UNOP_ALIGNOF>:
10952 New.
10953 * eval.c (evaluate_subexp_standard) <case UNOP_ALIGNOF>: New.
10954 * c-lang.c (c_op_print_tab): Add alignof.
10955 * c-exp.y (ALIGNOF): New token.
10956 (exp): Add "ALIGNOF" production.
10957 (ident_tokens): Add _Alignof and alignof.
10958
2b4424c3
TT
109592018-04-30 Tom Tromey <tom@tromey.com>
10960
10961 * i386-tdep.c (i386_type_align): New function.
10962 (i386_gdbarch_init): Update.
10963 * gdbarch.sh (type_align): New method.
10964 * gdbarch.c, gdbarch.h: Rebuild.
10965 * arch-utils.h (default_type_align): Declare.
10966 * arch-utils.c (default_type_align): New function.
10967 * gdbtypes.h (TYPE_ALIGN_BITS): New define.
10968 (struct type) <align_log2>: New field.
10969 <instance_flags>: Now a bitfield.
10970 (TYPE_RAW_ALIGN): New macro.
10971 (type_align, type_raw_align, set_type_align): Declare.
10972 * gdbtypes.c (type_align, type_raw_align, set_type_align): New
10973 functions.
10974 * dwarf2read.c (quirk_rust_enum): Set type alignment.
10975 (get_alignment, maybe_set_alignment): New functions.
10976 (read_structure_type, read_enumeration_type, read_array_type)
10977 (read_set_type, read_tag_pointer_type, read_tag_reference_type)
10978 (read_subrange_type, read_base_type): Set type alignment.
10979
d33bc52e
SM
109802018-04-30 Simon Marchi <simon.marchi@ericsson.com>
10981
10982 * dwarf2read.c (read_index_from_section): Use bool.
10983
e28b63a9
FG
109842018-04-29 Fabian Groffen <grobian@gentoo.org>
10985
10986 PR gdb/22950
10987 * proc-events.c (init_syscall_table): Guard usage os SYS_uuidsys
10988 with #ifdef.
10989
cd8c76e4
JR
109902018-04-29 John Reiser <jreiser@BitWagon.com>
10991
10992 PR build/22873
10993 * gdb/Makefile.in: (.c:.l, .c:.y): Write the target only in the
10994 last step, and do it atomically.
10995
476d250e
AO
109962018-04-27 Alexandre Oliva <aoliva@redhat.com>
10997
10998 * compile/compile-c-types.c (convert_int, convert_float):
10999 Update for C FE v1.
11000
6873858b
TT
110012018-04-27 Tom Tromey <tom@tromey.com>
11002
11003 PR rust/22545:
11004 * rust-lang.c (rust_inclusive_range_type_p): New function.
11005 (rust_range): Handle inclusive ranges.
11006 (rust_compute_range): Likewise.
11007 * rust-exp.y (struct rust_op) <inclusive>: New field.
11008 (DOTDOTEQ): New constant.
11009 (range_expr): Add "..=" productions.
11010 (operator_tokens): Add "..=" token.
11011 (ast_range): Add "inclusive" parameter.
11012 (convert_ast_to_expression) <case OP_RANGE>: Handle inclusive
11013 ranges.
11014 * parse.c (operator_length_standard) <case OP_RANGE>: Handle new
11015 bounds values.
11016 * expression.h (enum range_type) <NONE_BOUND_DEFAULT_EXCLUSIVE,
11017 LOW_BOUND_DEFAULT_EXCLUSIVE>: New constants.
11018 Update comments.
11019 * expprint.c (print_subexp_standard): Handle new bounds values.
11020 (dump_subexp_body_standard): Likewise.
11021
632e107b
TT
110222018-04-27 Tom Tromey <tom@tromey.com>
11023
11024 * configure: Rebuild.
11025 * warning.m4 (AM_GDB_WARNINGS): Add -Wsuggest-override.
11026 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Use "override", not
11027 "OVERRIDE".
11028 (class symbol_needs_eval_context): Likewise.
11029 * dwarf2read.c (mock_mapped_index::symbol_name_count)
11030 (mock_mapped_index::symbol_name_at): Use "override". Remove
11031 "virtual".
11032 * dwarf2-frame.c (dwarf_expr_executor::get_addr_index): Use
11033 "override".
11034 (class dwarf_expr_executor): Use "override", not "OVERRIDE".
11035 * aarch64-tdep.c (instruction_reader::read): Use "override".
11036 (instruction_reader_test::read): Likewise.
11037 * arm-tdep.c (instruction_reader::read): Use "override".
11038 (instruction_reader_thumb::read): Likewise.
11039
b75abf5b
AK
110402018-04-26 Andrzej Kaczmarek <andrzej.kaczmarek@codecoup.pl>
11041
11042 PR remote/9665
11043 * remote.c (send_g_packet): Use putpkt/getpkt/packet_check_result
11044 instead of remote_send.
11045 (remote_send): Remove.
11046
79188d8d
PA
110472018-04-26 Pedro Alves <palves@redhat.com>
11048
11049 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Use
11050 find_function_start_sal instead of find_pc_line.
11051
f50776aa
PA
110522018-04-26 Pedro Alves <palves@redhat.com>
11053
11054 * breakpoint.c (set_breakpoint_location_function): Handle
11055 mst_data_gnu_ifunc.
11056 * c-exp.y (variable production): Handle mst_data_gnu_ifunc.
11057 * elfread.c (elf_symtab_read): Give data symbols with
11058 BSF_GNU_INDIRECT_FUNCTION set mst_data_gnu_ifunc type.
11059 (elf_rel_plt_read): Update comment.
11060 * linespec.c (convert_linespec_to_sals): Handle
11061 mst_data_gnu_ifunc.
11062 (minsym_found): Handle mst_data_gnu_ifunc.
11063 * minsyms.c (msymbol_is_function, minimal_symbol_reader::record)
11064 (find_solib_trampoline_target): Handle mst_data_gnu_ifunc.
11065 * parse.c (find_minsym_type_and_address): Handle
11066 mst_data_gnu_ifunc.
11067 * symmisc.c (dump_msymbols): Handle mst_data_gnu_ifunc.
11068 * symtab.c (find_gnu_ifunc): Handle mst_data_gnu_ifunc.
11069 * symtab.h (minimal_symbol_type) <mst_text_gnu_ifunc>: Update
11070 comment.
11071 <mst_data_gnu_ifunc>: New enumerator.
11072
20944a6e
PA
110732018-04-26 Pedro Alves <palves@redhat.com>
11074
11075 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Rename to ...
11076 (lookup_minimal_symbol_by_pc_section): ... this. Replace
11077 'want_trampoline' parameter by a lookup_msym_prefer parameter.
11078 Handle it.
11079 (lookup_minimal_symbol_by_pc_section): Delete old implementation.
11080 (lookup_minimal_symbol_by_pc): Adjust.
11081 (in_gnu_ifunc_stub): Prefer GNU ifunc symbols.
11082 (lookup_solib_trampoline_symbol_by_pc): Adjust.
11083 * minsyms.h (lookup_msym_prefer): New enum.
11084 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
11085 parameter by a lookup_msym_prefer parameter.
11086
1adeb822
PA
110872018-04-26 Pedro Alves <palves@redhat.com>
11088
11089 * elfread.c (elf_gnu_ifunc_record_cache): Check if the symbol name
11090 ends in "@plt" instead of looking at the symbol's section.
11091
a0aca7b0
PA
110922018-04-26 Pedro Alves <palves@redhat.com>
11093
11094 * blockframe.c (cache_pc_function_is_gnu_ifunc): Delete. Remove
11095 all references.
11096 (find_pc_partial_function_gnu_ifunc): Rename to ...
11097 (find_pc_partial_function): ... this, and remove references to
11098 'is_gnu_ifunc_p'.
11099 (find_pc_partial_function): Delete old implementation.
11100 * symtab.h (find_pc_partial_function_gnu_ifunc): Delete.
11101
76af0f26
PA
111022018-04-26 Pedro Alves <palves@redhat.com>
11103
11104 * linespec.c (struct bound_minimal_symbol_search_key): New.
11105 (convert_linespec_to_sals): Sort minimal symbols earlier. Don't
11106 skip first line if we found a GNU ifunc minimal symbol by name.
11107 (compare_msymbols): Change parameters to work with a destructured
11108 lhs minsym.
11109 (compare_msymbols_for_qsort, compare_msymbols_for_bsearch): New
11110 functions.
11111
3467ec66
PA
111122018-04-26 Pedro Alves <palves@redhat.com>
11113
11114 * breakpoint.c (set_breakpoint_location_function): Don't resolve
11115 ifunc targets here. Instead, if we have an ifunc minsym, use its
11116 address/name.
11117 (add_location_to_breakpoint): Store the minsym and the objfile in
11118 the breakpoint location.
11119 * breakpoint.h (bp_location) <msymbol, objfile>: New fields.
11120 * linespec.c (minsym_found): Resolve GNU ifunc targets here.
11121 Record the minsym in the sal.
11122 * symtab.h (symtab_and_line) <msymbol>: New field.
11123
28f4fa4d
PA
111242018-04-26 Pedro Alves <palves@redhat.com>
11125
11126 * elfread.c (elf_gnu_ifunc_resolve_by_got): Don't write to *ADDR_P
11127 unless we actually resolved the ifunc.
11128
ca31ab1d
PA
111292018-04-26 Pedro Alves <palves@redhat.com>
11130
11131 * c-exp.y (variable production): Prefer ifunc minsyms over
11132 regular function symbols.
11133 * symtab.c (find_gnu_ifunc): New function.
11134 * minsyms.h (lookup_msym_prefer): New enum.
11135 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
11136 parameter by a lookup_msym_prefer parameter.
11137 * symtab.h (find_gnu_ifunc): New declaration.
11138
8388016d
PA
111392018-04-26 Pedro Alves <palves@redhat.com>
11140
11141 * blockframe.c (find_gnu_ifunc_target_type): New function.
11142 (find_function_type): New.
11143 * eval.c (evaluate_var_msym_value): For GNU ifunc types, always
11144 return a value with a memory address.
11145 (eval_call): For calls to GNU ifunc functions, try to find the
11146 type of the target function from the type that the resolver
11147 returns.
11148 * gdbtypes.c (objfile_type): Don't install a return type for ifunc
11149 symbols.
11150 * infcall.c (find_function_return_type): Delete.
11151 (find_function_addr): Add 'function_type' parameter. For calls to
11152 GNU ifunc functions, try to find the type of the target function
11153 from the type that the resolver returns, and return it via
11154 FUNCTION_TYPE.
11155 (call_function_by_hand_dummy): Adjust to use the function type
11156 returned by find_function_addr.
11157 (find_function_addr): Add 'function_type' parameter and move
11158 description here.
11159 * symtab.h (find_function_type, find_gnu_ifunc_target_type): New
11160 declarations.
11161
a376e11d
PA
111622018-04-26 Pedro Alves <palves@redhat.com>
11163
11164 * c-exp.y (variable production): Skip finding an alias for ifunc
11165 symbols.
11166
02e169e2
PA
111672018-04-26 Pedro Alves <palves@redhat.com>
11168
11169 * elfread.c (elf_rel_plt_read): Look for relocations for .got.plt too.
11170
249b5733
PA
111712018-04-25 Pedro Alves <palves@redhat.com>
11172
11173 * infcmd.c (kill_command): Print the pid as string, not the whole
11174 thread's ptid. Add comment. s/has been killed/killed/ in output
11175 message.
11176 * remote.c (remote_detach_1): Print the pid as string, not the
11177 whole thread's ptid.
11178
f67c0c91
SDJ
111792018-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
11180 Sergio Durigan Junior <sergiodj@redhat.com>
11181 Pedro Alves <palves@redhat.com>
11182
11183 * infcmd.c (kill_command): Print message when inferior has
11184 been killed.
11185 * inferior.c (print_inferior_events): Remove 'static'. Set as
11186 '1'.
11187 (add_inferior): Improve message printed when
11188 'print_inferior_events' is on.
11189 (exit_inferior): Remove message printed when
11190 'print_inferior_events' is on.
11191 (detach_inferior): Improve message printed when
11192 'print_inferior_events' is on.
11193 (initialize_inferiors): Use 'add_inferior_silent' to set
11194 'current_inferior_'.
11195 * inferior.h (print_inferior_events): Declare here as
11196 'extern'.
11197 * infrun.c (follow_fork_inferior): Print '[Attaching...]' or
11198 '[Detaching...]' messages when 'print_inferior_events' is on.
11199 Use 'add_thread_silent' instead of 'add_thread'. Add '[' and ']'
11200 as prefix/suffix for messages. Remove periods. Fix erroneous
11201 'Detaching after fork from child...', replace it by '... from
11202 parent...'.
11203 (handle_vfork_child_exec_or_exit): Add '[' and ']' as
11204 prefix/suffix when printing 'Detaching...' messages. Print
11205 them when 'print_inferior_events' is on.
11206 * remote.c (remote_detach_1): Print message when detaching
11207 from inferior and '!is_fork_parent'.
11208
e427af18
TT
112092018-04-24 Tom Tromey <tom@tromey.com>
11210
11211 * cli-out.h: Reindent.
11212
05b1d8d6
TT
112132018-04-24 Tom Tromey <tom@tromey.com>
11214
11215 * cli-out.c (cli_ui_out::out_field_fmt): Remove.
11216 (cli_ui_out::do_field_string): Use fputs_filtered.
11217 * cli-out.h (class cli_ui_out) <out_field_fmt>: Remove.
11218
a95c7dab
TT
112192018-04-23 Tom Tromey <tom@tromey.com>
11220
11221 * guile/scm-frame.c (gdbscm_frame_read_var): Use
11222 gdb::unique_xmalloc_ptr.
11223
458412c3
TT
112242018-04-23 Tom Tromey <tom@tromey.com>
11225
11226 * configure: Rebuild.
11227
db86b02b
RS
112282018-04-22 Rajendra SY <rajendra.sy@gmail.com>
11229
11230 PR gdb/23095
11231 * gdb/testsuite/gdb.base/break-probes.exp: Pass shlib_load to
11232 prepare_for_testing. Set normal_bp to r_debug_state if target
11233 is bsd.
11234
00aecdcf
PA
112352018-04-21 Pedro Alves <palves@redhat.com>
11236 Rajendra SY <rajendra.sy@gmail.com>
11237
11238 * inf-ptrace.c (inf_ptrace_attach): Mark the thread as executing.
11239 * remote.c (extended_remote_attach): In all-stop mode, mark the
11240 thread as executing.
11241
224608c3
PW
112422018-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11243
11244 * thread.c (thread_apply_all_command): Fix comment.
11245 (thread_command): Fix comment.
11246
3b74854b
AH
112472018-04-10 Alan Hayward <alan.hayward@arm.com>
11248
11249 * common/tdesc.h (tdesc_create_feature): Remove xml filename
11250 parameter.
11251 * features/aarch64-core.c (create_feature_aarch64_core):
11252 Regenerate.
11253 * features/aarch64-fpu.c (create_feature_aarch64_fpu):
11254 Likewise.
11255 * features/i386/32bit-avx.c (create_feature_i386_32bit_avx):
11256 Likewise.
11257 * features/i386/32bit-avx512.c
11258 (create_feature_i386_32bit_avx512): Likewise.
11259 * features/i386/32bit-core.c (create_feature_i386_32bit_core):
11260 Likewise.
11261 * features/i386/32bit-linux.c (create_feature_i386_32bit_linux):
11262 Likewise.
11263 * features/i386/32bit-mpx.c (create_feature_i386_32bit_mpx):
11264 Likewise.
11265 * features/i386/32bit-pkeys.c (create_feature_i386_32bit_pkeys):
11266 Likewise.
11267 * features/i386/32bit-sse.c (create_feature_i386_32bit_sse):
11268 Likewise.
11269 * features/i386/64bit-avx.c (create_feature_i386_64bit_avx):
11270 Likewise.
11271 * features/i386/64bit-avx512.c
11272 (create_feature_i386_64bit_avx512): Likewise.
11273 * features/i386/64bit-core.c (create_feature_i386_64bit_core):
11274 Likewise.
11275 * features/i386/64bit-linux.c (create_feature_i386_64bit_linux):
11276 Likewise.
11277 * features/i386/64bit-mpx.c (create_feature_i386_64bit_mpx):
11278 Likewise.
11279 * features/i386/64bit-pkeys.c (create_feature_i386_64bit_pkeys):
11280 Likewise.
11281 * features/i386/64bit-segments.c
11282 (create_feature_i386_64bit_segments): Likewise.
11283 * features/i386/64bit-sse.c (create_feature_i386_64bit_sse):
11284 Likewise.
11285 * features/i386/x32-core.c
11286 (create_feature_i386_x32_core): Likewise.
11287 * features/tic6x-c6xp.c (create_feature_tic6x_c6xp): Likewise.
11288 * features/tic6x-core.c (create_feature_tic6x_core): Likewise.
11289 * features/tic6x-gp.c (create_feature_tic6x_gp): Likewise.
11290 * target-descriptions.c: In generated code, don't pass xml
11291 filename.
11292
e98577a9
AH
112932018-04-18 Alan Hayward <alan.hayward@arm.com>
11294
11295 * common/tdesc.c (print_xml_feature::visit_pre): Add xml parsing.
11296 (print_xml_feature::visit_post): Likewise.
11297 (print_xml_feature::visit): Likewise.
11298 * common/tdesc.h (tdesc_get_features_xml): Use const tdesc.
11299 (print_xml_feature): Add new class.
11300 * regformats/regdat.sh: Null xmltarget on feature targets.
11301 * target-descriptions.c (struct target_desc): Add xmltarget.
11302 (maintenance_check_tdesc_xml_convert): Add unittest function.
11303 (tdesc_get_features_xml): Add function to get xml.
11304 (maintenance_check_xml_descriptions): Test xml generation.
11305 * xml-tdesc.c (string_read_description_xml): Add function.
11306 * xml-tdesc.h (string_read_description_xml): Add declaration.
11307
ad7fc756
AH
113082018-04-18 Alan Hayward <alan.hayward@arm.com>
11309
11310 * features/Makefile: Add feature marker to targets with new style
11311 target descriptions.
11312 * regformats/aarch64.dat: Regenerate.
11313 * regformats/i386/amd64-avx-avx512-linux.dat: Likewise.
11314 * regformats/i386/amd64-avx-linux.dat: Likewise.
11315 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Likewise.
11316 * regformats/i386/amd64-avx-mpx-linux.dat: Likewise.
11317 * regformats/i386/amd64-linux.dat: Likewise.
11318 * regformats/i386/amd64-mpx-linux.dat: Likewise.
11319 * regformats/i386/amd64.dat: Likewise.
11320 * regformats/i386/i386-avx-avx512-linux.dat: Likewise.
11321 * regformats/i386/i386-avx-linux.dat: Likewise.
11322 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Likewise.
11323 * regformats/i386/i386-avx-mpx-linux.dat: Likewise.
11324 * regformats/i386/i386-linux.dat: Likewise.
11325 * regformats/i386/i386-mmx-linux.dat: Likewise.
11326 * regformats/i386/i386-mpx-linux.dat: Likewise.
11327 * regformats/i386/i386.dat: Likewise.
11328 * regformats/i386/x32-avx-avx512-linux.dat: Likewise.
11329 * regformats/i386/x32-avx-linux.dat: Likewise.
11330 * regformats/i386/x32-linux.dat: Likewise.
11331 * regformats/tic6x-c62x-linux.dat: Likewise.
11332 * regformats/tic6x-c64x-linux.dat: Likewise.
11333 * regformats/tic6x-c64xp-linux.dat: Likewise.
11334 * regformats/regdat.sh: Parse feature marker.
11335
d278f585
AH
113362018-04-18 Alan Hayward <alan.hayward@arm.com>
11337
11338 * common/tdesc.h (tdesc_architecture_name): Add new declaration.
11339 (tdesc_osabi_name): Likewise.
11340 * target-descriptions.c (tdesc_architecture_name): Add new
11341 function.
11342 (tdesc_osabi_name): Likewise.
11343
eee8a18d
AH
113442018-04-18 Alan Hayward <alan.hayward@arm.com>
11345
11346 * common/tdesc.c (tdesc_predefined_type): Move to here.
11347 (tdesc_named_type): Likewise.
11348 (tdesc_create_vector): Likewise.
11349 (tdesc_create_struct): Likewise.
11350 (tdesc_set_struct_size): Likewise.
11351 (tdesc_create_union): Likewise.
11352 (tdesc_create_flags): Likewise.
11353 (tdesc_create_enum): Likewise.
11354 (tdesc_add_field): Likewise.
11355 (tdesc_add_typed_bitfield): Likewise.
11356 (tdesc_add_bitfield): Likewise.
11357 (tdesc_add_flag): Likewise.
11358 (tdesc_add_enum_value): Likewise.
11359 * common/tdesc.h (struct tdesc_type_builtin): Likewise.
11360 (struct tdesc_type_vector): Likewise.
11361 (struct tdesc_type_field): Likewise.
11362 (struct tdesc_type_with_fields): Likewise.
11363 (tdesc_create_enum): Add declaration.
11364 (tdesc_add_typed_bitfield): Likewise.
11365 (tdesc_add_enum_value): Likewise.
11366 * target-descriptions.c (tdesc_type_field): Move from here.
11367 (tdesc_type_builtin): Likewise.
11368 (tdesc_type_vector): Likewise.
11369 (tdesc_type_with_fields): Likewise.
11370 (tdesc_predefined_types): Likewise.
11371 (tdesc_named_type): Likewise.
11372 (tdesc_create_vector): Likewise.
11373 (tdesc_create_struct): Likewise.
11374 (tdesc_set_struct_size): Likewise.
11375 (tdesc_create_union): Likewise.
11376 (tdesc_create_flags): Likewise.
11377 (tdesc_create_enum): Likewise.
11378 (tdesc_add_field): Likewise.
11379 (tdesc_add_typed_bitfield): Likewise.
11380 (tdesc_add_bitfield): Likewise.
11381 (tdesc_add_flag): Likewise.
11382 (tdesc_add_enum_value): Likewise.
11383 * gdb/target-descriptions.h (tdesc_create_enum): Likewise.
11384 (tdesc_add_typed_bitfield): Likewise.
11385 (tdesc_add_enum_value): Likewise.
11386
82ec9bc7
AH
113872018-04-18 Alan Hayward <alan.hayward@arm.com>
11388
11389 * common/tdesc.c (tdesc_feature::accept): Move to here.
11390 (tdesc_feature::operator==): Likewise.
11391 (tdesc_create_reg): Likewise.
11392 * common/tdesc.h (tdesc_type_kind): Likewise.
11393 (struct tdesc_type): Likewise.
11394 (struct tdesc_feature): Likewise.
11395 * regformats/regdat.sh: Create a feature.
11396 * target-descriptions.c (tdesc_type_kind): Move from here.
11397 (tdesc_type): Likewise.
11398 (tdesc_type_up): Likewise.
11399 (tdesc_feature): Likewise.
11400 (tdesc_create_reg): Likewise.
11401
ea3e7d71
AH
114022018-04-18 Alan Hayward <alan.hayward@arm.com>
11403
11404 * Makefile.in: Add arch/tdesc.c
11405 * common/tdesc.c: New file.
11406 * common/tdesc.h (tdesc_element_visitor): Move to here.
11407 (tdesc_element): Likewise.
11408 (tdesc_reg): Likewise.
11409 (tdesc_reg_up): Likewise.
11410 * regformats/regdef.h (reg): Add offset to constructors.
11411 * target-descriptions.c (tdesc_element_visitor): Move from here.
11412 (tdesc_element): Likewise.
11413 (tdesc_reg): Likewise.
11414 (tdesc_reg_up): Likewise.
11415
bedda9ac
TT
114162018-04-17 Tom Tromey <tom@tromey.com>
11417
11418 * dwarf2read.c (quirk_rust_enum): Conditionally drop the
11419 discriminant field.
11420
a037790e
TT
114212018-04-17 Tom Tromey <tom@tromey.com>
11422
11423 * dwarf2read.c (quirk_rust_enum): Handle unions correctly.
11424
c7dcbf88
AA
114252018-04-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
11426
11427 * symtab.c (print_symbol_info): Skip printing filename and line
11428 number when `last' is NULL.
11429 (symtab_symbol_info): Use empty string instead of NULL for first
11430 invocation of print_symbol_info.
11431 (rbreak_command): Pass NULL to `last' parameter of
11432 print_symbol_info.
11433
07d28c77
SM
114342018-04-16 Simon Marchi <simon.marchi@ericsson.com>
11435
11436 * linux-tdep.c (linux_spu_make_corefile_notes): Return note_data
11437 instead of nullptr.
11438
8a3de5e1
PA
114392018-04-16 Pedro Alves <palves@redhat.com>
11440
11441 * MAINTAINERS (sh): Remove.
11442 * Makefile.in (ALL_TARGET_OBS): Remove sh64-tdep.o.
11443 (HFILES_NO_SRCDIR): Remove sh64-tdep.h.
11444 (ALLDEPFILES): Remove sh64-tdep.c.
11445 * NEWS: Mentions that support for SH-5/SH64 is removed.
11446 * configure.tgt (sh*-*-linux*): Remove reference to sh64-tdep.o.
11447 (sh*-*-openbsd*): Ditto.
11448 (sh64-*-elf*): Remove.
11449 (sh*): Remove.
11450 * regcache.c (cooked_write_test): Remove bfd_mach_sh5 case.
11451 * sh-linux-tdep.c: Remove reference to bfd_mach_sh5.
11452 * sh-tdep.c: No longer include "sh64-tdep.h".
11453 (sh_gdbarch_init): Remove reference to bfd_mach_sh5.
11454 * sh64-tdep.c, sh64-tdep.h: Remove files.
11455
a2a79012
PA
114562018-04-16 Pedro Alves <palves@redhat.com>
11457
11458 * MAINTAINERS: Remove m88k.
11459 * Makefile.in (ALL_TARGET_OBS): Remove m88k-tdep.o.
11460 (HFILES_NO_SRCDIR): Remove m88k-tdep.h.
11461 (ALLDEPFILES): Remove m88k-bsd-nat.c and m88k-tdep.c.
11462 * NEWS: Mention that support for m88k was removed.
11463 * configure.host (m88*-*-*): Remove support.
11464 * configure.nat (m88k-*-*): Remove support.
11465 * configure.tgt (m88*-*-openbsd*): Remove.
11466 * m88k-bsd-nat.c, m88k-tdep.c, m88k-tdep.h: Delete.
11467
eda4efb1
SM
114682018-04-15 Simon Marchi <simon.marchi@polymtl.ca>
11469
11470 * configure.tgt (x86_tobjs): New variable.
11471 (amd64_tobjs, i386_tobjs): Use it.
11472
b744723f
AA
114732018-04-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11474
11475 * symtab.c (print_symbol_info): Precede the symbol definition by
11476 the line number when available.
11477 * NEWS: Advertise this enhancement.
11478
4a4495d6
MM
114792018-04-13 Markus Metzger <markus.t.metzger@intel.com>
11480
11481 * NEWS (New options): announce set/show record btrace cpu.
11482 * btrace.c: Include record-btrace.h.
11483 (btrace_compute_ftrace_pt): Skip enabling errata workarounds if
11484 the vendor is unknown.
11485 (btrace_compute_ftrace_1): Add cpu parameter. Update callers.
11486 Maybe overwrite the btrace configuration's cpu.
11487 (btrace_compute_ftrace): Add cpu parameter. Update callers.
11488 (btrace_fetch): Add cpu parameter. Update callers.
11489 (btrace_maint_update_pt_packets): Call record_btrace_get_cpu.
11490 Maybe overwrite the btrace configuration's cpu. Skip enabling
11491 errata workarounds if the vendor is unknown.
11492 * python/py-record-btrace.c: Include record-btrace.h.
11493 (recpy_bt_begin, recpy_bt_end, recpy_bt_instruction_history)
11494 (recpy_bt_function_call_history): Call record_btrace_get_cpu.
11495 * record-btrace.c (record_btrace_cpu_state_kind): New.
11496 (record_btrace_cpu): New.
11497 (set_record_btrace_cpu_cmdlist): New.
11498 (record_btrace_get_cpu): New.
11499 (require_btrace_thread, record_btrace_info)
11500 (record_btrace_resume_thread): Call record_btrace_get_cpu.
11501 (cmd_set_record_btrace_cpu_none): New.
11502 (cmd_set_record_btrace_cpu_auto): New.
11503 (cmd_set_record_btrace_cpu): New.
11504 (cmd_show_record_btrace_cpu): New.
11505 (_initialize_record_btrace): Initialize set/show record btrace cpu
11506 commands.
11507 * record-btrace.h (record_btrace_get_cpu): New.
11508
69f90c75
MM
115092018-04-13 Markus Metzger <markus.t.metzger@intel.com>
11510
11511 * record.c (set_record_command): Fix typo in message.
11512
b85310e1
MM
115132018-04-13 Markus Metzger <markus.t.metzger@intel.com>
11514
11515 * record-btrace.c (cmd_set_record_btrace): Print sub-commands.
11516
1d509aa6
MM
115172018-04-13 Markus Metzger <markus.t.metzger@intel.com>
11518
11519 * infrun.c (process_event_stop_test): Call
11520 gdbarch_in_indirect_branch_thunk.
11521 * gdbarch.sh (in_indirect_branch_thunk): New.
11522 * gdbarch.c: Regenerated.
11523 * gdbarch.h: Regenerated.
11524 * x86-tdep.h: New.
11525 * x86-tdep.c: New.
11526 * Makefile.in (ALL_TARGET_OBS): Add x86-tdep.o.
11527 (HFILES_NO_SRCDIR): Add x86-tdep.h.
11528 (ALLDEPFILES): Add x86-tdep.c.
11529 * arch-utils.h (default_in_indirect_branch_thunk): New.
11530 * arch-utils.c (default_in_indirect_branch_thunk): New.
11531 * i386-tdep: Include x86-tdep.h.
11532 (i386_in_indirect_branch_thunk): New.
11533 (i386_elf_init_abi): Set in_indirect_branch_thunk gdbarch
11534 function.
11535 * amd64-tdep: Include x86-tdep.h.
11536 (amd64_in_indirect_branch_thunk): New.
11537 (amd64_init_abi): Set in_indirect_branch_thunk gdbarch function.
11538
b4be9bfd
JK
115392018-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11540
11541 PR gdb/23053
11542 * dwarf-index-write.c (data_buf::grow) (write_one_signatured_type)
11543 (recursively_write_psymbols) (debug_names::recursively_write_psymbols)
11544 (debug_names::write_one_signatured_type): Fix -D_GLIBCXX_DEBUG
11545 regression.
11546
53d7df28
TT
115472018-04-12 Tom Tromey <tom@tromey.com>
11548
11549 * rust-lang.c (rust_print_struct_def): Remove univariant code.
11550 (rust_evaluate_subexp): Likewise.
11551
70b33f19
PA
115522018-04-12 Pedro Alves <palves@redhat.com>
11553
11554 * procfs.c (procfs_detach): Make forward declaration's prototype
11555 match definition's protototype.
11556 (proc_get_LDT_entry): Remove stale do_cleanups call.
11557
436411b1
PA
115582018-04-12 Pedro Alves <palves@redhat.com>
11559
11560 * target.h (target_ops::to_has_exited): Delete.
11561 (target_has_exited): Delete.
11562 * target-delegates.c: Regenerate.
11563
20db9c52
PA
115642018-04-11 Pedro Alves <palves@redhat.com>
11565
11566 * target.c (fileio_fh_t::t): Add comment.
11567 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
11568 (target_fileio_close): Handle a NULL target.
11569 (invalidate_fileio_fh): New.
11570 (target_close): Call it.
11571 * remote.c (remote_hostio_send_command): No longer check whether
11572 remote_desc is open.
11573
5ff79300
PA
115742018-04-11 Pedro Alves <palves@redhat.com>
11575
11576 * target.c (fileio_fh_t): Make it a named struct instead of a
11577 typedef.
11578 (fileio_fh_t::is_closed): New method.
11579 (DEF_VEC_O (fileio_fh_t)): Remove.
11580 (fileio_fhandles): Now a std::vector.
11581 (is_closed_fileio_fh): Delete.
11582 (acquire_fileio_fd): Adjust. Rename parameters.
11583 (release_fileio_fd): Adjust.
11584 (fileio_fd_to_fh): Reimplement as a function instead of a macro.
11585 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
11586 (target_fileio_close): Adjust.
11587
6e22e10d
SM
115882018-04-10 Simon Marchi <simon.marchi@ericsson.com>
11589
11590 * auto-load.c (auto_load_safe_path_vec_update): Iterate by
11591 index.
11592
731f534f
PA
115932018-04-10 Pedro Alves <palves@redhat.com>
11594
11595 * gdbthread.h (finish_thread_state_cleanup): Delete declaration.
11596 (scoped_finish_thread_state): New class.
11597 * infcmd.c (run_command_1): Use it instead of finish_thread_state
11598 cleanup.
11599 * infrun.c (proceed, prepare_for_detach, wait_for_inferior)
11600 (fetch_inferior_event, normal_stop): Likewise.
11601 * thread.c (finish_thread_state_cleanup): Delete.
11602
d5f4488f
SM
116032018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
11604 Pedro Alves <palves@redhat.com>
11605
11606 * value.c: Include "selftest.h" and "common/array-view.h".
11607 (struct range) <operator ==>: New.
11608 (test_ranges_contain): New.
11609 (check_ranges_vector): New.
11610 (test_insert_into_bit_range_vector): New.
11611 (_initialize_values): Register selftests.
11612 * common/array-view.h (operator==, operator!=): New.
11613
b24531ed
SM
116142018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
11615
11616 * common/gdb_vecs.h (unordered_remove): Add overload that takes
11617 an iterator.
11618 * inline-frame.c: Include <algorithm>.
11619 (struct inline_state): Add constructor.
11620 (inline_state_s): Remove.
11621 (DEF_VEC_O(inline_state_s)): Remove.
11622 (inline_states): Change type to std::vector.
11623 (find_inline_frame_state): Adjust to std::vector.
11624 (allocate_inline_frame_state): Remove.
11625 (clear_inline_frame_state): Adjust to std::vector.
11626 (skip_inline_frames): Adjust to std::vector.
11627
c252925c
SM
116282018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
11629
11630 * tracepoint.h (struct trace_state_variable): Add constructor.
11631 <name>: Change type to std::string.
11632 * tracepoint.c (tsv_s): Remove.
11633 (DEF_VEC_O(tsv_s)): Remove.
11634 (tvariables): Change to std::vector.
11635 (create_trace_state_variable): Adjust to std::vector.
11636 (find_trace_state_variable): Likewise.
11637 (find_trace_state_variable_by_number): Likewise.
11638 (delete_trace_state_variable): Likewise.
11639 (trace_variable_command): Adjust to std::string.
11640 (delete_trace_variable_command): Likewise.
11641 (tvariables_info_1): Adjust to std::vector.
11642 (save_trace_state_variables): Likewise.
11643 (start_tracing): Likewise.
11644 (merge_uploaded_trace_state_variables): Adjust to std::vector
11645 and std::string.
11646 * target.h (struct target_ops)
11647 <to_download_trace_state_variable>: Pass reference to
11648 trace_state_variable.
11649 * target-debug.h (target_debug_print_const_trace_state_variable_r): New.
11650 * target-delegates.c: Re-generate.
11651 * mi/mi-interp.c (mi_tsv_created): Adjust to std::string.
11652 (mi_tsv_deleted): Likewise.
11653 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
11654 * remote.c (remote_download_trace_state_variable): Change
11655 pointer to reference and adjust.
11656 * make-target-delegates (parse_argtypes): Handle references.
11657 (write_function_header): Likewise.
11658 (munge_type): Likewise.
11659
c9638d26
SM
116602018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
11661
11662 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11663 string_view-selftests.c.
11664 * unittests/basic_string_view/capacity/1.cc: Adapt to GDB
11665 testsuite.
11666 * unittests/basic_string_view/cons/char/1.cc: Likewise.
11667 * unittests/basic_string_view/cons/char/2.cc: Likewise.
11668 * unittests/basic_string_view/cons/char/3.cc: Likewise.
11669 * unittests/basic_string_view/element_access/char/1.cc:
11670 Likewise.
11671 * unittests/basic_string_view/element_access/char/empty.cc:
11672 Likewise.
11673 * unittests/basic_string_view/element_access/char/front_back.cc:
11674 Likewise.
11675 * unittests/basic_string_view/inserters/char/2.cc: Likewise.
11676 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc:
11677 Likewise.
11678 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc:
11679 Likewise.
11680 * unittests/basic_string_view/modifiers/swap/char/1.cc:
11681 Likewise.
11682 * unittests/basic_string_view/operations/compare/char/1.cc:
11683 Likewise.
11684 * unittests/basic_string_view/operations/compare/char/13650.cc:
11685 Likewise.
11686 * unittests/basic_string_view/operations/copy/char/1.cc:
11687 Likewise.
11688 * unittests/basic_string_view/operations/data/char/1.cc:
11689 Likewise.
11690 * unittests/basic_string_view/operations/find/char/1.cc:
11691 Likewise.
11692 * unittests/basic_string_view/operations/find/char/2.cc:
11693 Likewise.
11694 * unittests/basic_string_view/operations/find/char/3.cc:
11695 Likewise.
11696 * unittests/basic_string_view/operations/find/char/4.cc:
11697 Likewise.
11698 * unittests/basic_string_view/operations/rfind/char/1.cc:
11699 Likewise.
11700 * unittests/basic_string_view/operations/rfind/char/2.cc:
11701 Likewise.
11702 * unittests/basic_string_view/operations/rfind/char/3.cc:
11703 Likewise.
11704 * unittests/basic_string_view/operations/substr/char/1.cc:
11705 Likewise.
11706 * unittests/basic_string_view/operators/char/2.cc: Likewise.
11707 * unittests/string_view-selftests.c: New file.
11708
fdc11678
SM
117092018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
11710
11711 * unittests/basic_string_view/capacity/1.cc: New file.
11712 * unittests/basic_string_view/capacity/empty_neg.cc: New file.
11713 * unittests/basic_string_view/cons/char/1.cc: New file.
11714 * unittests/basic_string_view/cons/char/2.cc: New file.
11715 * unittests/basic_string_view/cons/char/3.cc: New file.
11716 * unittests/basic_string_view/cons/wchar_t/1.cc: New file.
11717 * unittests/basic_string_view/cons/wchar_t/2.cc: New file.
11718 * unittests/basic_string_view/cons/wchar_t/3.cc: New file.
11719 * unittests/basic_string_view/element_access/char/1.cc: New file.
11720 * unittests/basic_string_view/element_access/char/2.cc: New file.
11721 * unittests/basic_string_view/element_access/char/empty.cc: New file.
11722 * unittests/basic_string_view/element_access/char/front_back.cc: New file.
11723 * unittests/basic_string_view/element_access/wchar_t/1.cc: New file.
11724 * unittests/basic_string_view/element_access/wchar_t/2.cc: New file.
11725 * unittests/basic_string_view/element_access/wchar_t/empty.cc: New file.
11726 * unittests/basic_string_view/element_access/wchar_t/front_back.cc: New file.
11727 * unittests/basic_string_view/include.cc: New file.
11728 * unittests/basic_string_view/inserters/char/1.cc: New file.
11729 * unittests/basic_string_view/inserters/char/2.cc: New file.
11730 * unittests/basic_string_view/inserters/char/3.cc: New file.
11731 * unittests/basic_string_view/inserters/pod/10081-out.cc: New file.
11732 * unittests/basic_string_view/inserters/wchar_t/1.cc: New file.
11733 * unittests/basic_string_view/inserters/wchar_t/2.cc: New file.
11734 * unittests/basic_string_view/inserters/wchar_t/3.cc: New file.
11735 * unittests/basic_string_view/literals/types.cc: New file.
11736 * unittests/basic_string_view/literals/values.cc: New file.
11737 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc: New file.
11738 * unittests/basic_string_view/modifiers/remove_prefix/wchar_t/1.cc: New file.
11739 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc: New file.
11740 * unittests/basic_string_view/modifiers/remove_suffix/wchar_t/1.cc: New file.
11741 * unittests/basic_string_view/modifiers/swap/char/1.cc: New file.
11742 * unittests/basic_string_view/modifiers/swap/wchar_t/1.cc: New file.
11743 * unittests/basic_string_view/operations/compare/char/1.cc: New file.
11744 * unittests/basic_string_view/operations/compare/char/13650.cc: New file.
11745 * unittests/basic_string_view/operations/compare/char/2.cc: New file.
11746 * unittests/basic_string_view/operations/compare/char/70483.cc: New file.
11747 * unittests/basic_string_view/operations/compare/wchar_t/1.cc: New file.
11748 * unittests/basic_string_view/operations/compare/wchar_t/13650.cc: New file.
11749 * unittests/basic_string_view/operations/compare/wchar_t/2.cc: New file.
11750 * unittests/basic_string_view/operations/copy/char/1.cc: New file.
11751 * unittests/basic_string_view/operations/copy/wchar_t/1.cc: New file.
11752 * unittests/basic_string_view/operations/data/char/1.cc: New file.
11753 * unittests/basic_string_view/operations/data/wchar_t/1.cc: New file.
11754 * unittests/basic_string_view/operations/find/char/1.cc: New file.
11755 * unittests/basic_string_view/operations/find/char/2.cc: New file.
11756 * unittests/basic_string_view/operations/find/char/3.cc: New file.
11757 * unittests/basic_string_view/operations/find/char/4.cc: New file.
11758 * unittests/basic_string_view/operations/find/wchar_t/1.cc: New file.
11759 * unittests/basic_string_view/operations/find/wchar_t/2.cc: New file.
11760 * unittests/basic_string_view/operations/find/wchar_t/3.cc: New file.
11761 * unittests/basic_string_view/operations/find/wchar_t/4.cc: New file.
11762 * unittests/basic_string_view/operations/rfind/char/1.cc: New file.
11763 * unittests/basic_string_view/operations/rfind/char/2.cc: New file.
11764 * unittests/basic_string_view/operations/rfind/char/3.cc: New file.
11765 * unittests/basic_string_view/operations/rfind/wchar_t/1.cc: New file.
11766 * unittests/basic_string_view/operations/rfind/wchar_t/2.cc: New file.
11767 * unittests/basic_string_view/operations/rfind/wchar_t/3.cc: New file.
11768 * unittests/basic_string_view/operations/string_conversion/1.cc: New file.
11769 * unittests/basic_string_view/operations/substr/char/1.cc: New file.
11770 * unittests/basic_string_view/operations/substr/wchar_t/1.cc: New file.
11771 * unittests/basic_string_view/operators/char/2.cc: New file.
11772 * unittests/basic_string_view/operators/wchar_t/2.cc: New file.
11773 * unittests/basic_string_view/range_access/char/1.cc: New file.
11774 * unittests/basic_string_view/range_access/wchar_t/1.cc: New file.
11775 * unittests/basic_string_view/requirements/explicit_instantiation/1.cc: New file.
11776 * unittests/basic_string_view/requirements/explicit_instantiation/char/1.cc: New file.
11777 * unittests/basic_string_view/requirements/explicit_instantiation/char16_t/1.cc: New file.
11778 * unittests/basic_string_view/requirements/explicit_instantiation/char32_t/1.cc: New file.
11779 * unittests/basic_string_view/requirements/explicit_instantiation/wchar_t/1.cc: New file.
11780 * unittests/basic_string_view/requirements/typedefs.cc: New file.
11781 * unittests/basic_string_view/typedefs.cc: New file.
11782 * unittests/basic_string_view/types/1.cc: New file.
11783
8345c4a2
SM
117842018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
11785
11786 * common/gdb_string_view.h: Remove libstdc++ implementation
11787 details, adjust to gdb reality.
11788 * common/gdb_string_view.tcc: Likewise.
11789 * cli/cli-script.c (struct string_view): Remove.
11790 (user_args) <m_args>: Change element type to gdb::string_view.
11791 (user_args::insert_args): Adjust.
11792
7adcdf08
SM
117932018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
11794
11795 * common/gdb_string_view.h: New file.
11796 * common/gdb_string_view.tcc: New file.
11797
41260ac2
SM
117982018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
11799
11800 * ax_cxx_compile_stdcxx.m4: Sync with upstream.
11801 * configure: Re-generate.
11802
0bee6dd4
PA
118032018-04-09 Pedro Alves <palves@redhat.com>
11804
11805 * gdbarch.sh: Include "observable.h" instead of "observer.h".
11806 (set_target_gdbarch): Call
11807 gdb::observers::architecture_changed.notify instead of
11808 observer_notify_architecture_changed.
11809
6f14adc5
SM
118102018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
11811
11812 * tracepoint.c (struct current_traceframe_cleanup): Remove.
11813 (do_restore_current_traceframe_cleanup): Remove.
11814 (restore_current_traceframe_cleanup_dtor): Remove.
11815 (make_cleanup_restore_current_traceframe): Remove.
11816 (scoped_restore_current_traceframe::scoped_restore_current_traceframe):
11817 New.
11818 * tracepoint.h (struct scoped_restore_current_traceframe): New.
11819 * infrun.c (fetch_inferior_event): Use
11820 scoped_restore_current_traceframe.
11821
b2bdb8cf
SM
118222018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
11823
11824 * dwarf2read.h (struct dwarf2_per_objfile) <n_type_units>:
11825 Remove.
11826 <n_allocated_type_units>: Remove.
11827 <all_type_units>: Change to std::vector.
11828 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
11829 to std::vector change.
11830 (dwarf2_per_objfile::get_cutu): Likewise.
11831 (dwarf2_per_objfile::get_tu): Likewise.
11832 (create_signatured_type_table_from_index): Likewise.
11833 (create_signatured_type_table_from_debug_names): Likewise.
11834 (dw2_symtab_iter_next): Likewise.
11835 (dw2_print_stats): Likewise.
11836 (dw2_expand_all_symtabs): Likewise.
11837 (dw2_expand_marked_cus): Likewise.
11838 (dw2_debug_names_iterator::next): Likewise.
11839 (dwarf2_initialize_objfile): Likewise.
11840 (add_signatured_type_cu_to_table): Likewise.
11841 (create_all_type_units): Likewise.
11842 (add_type_unit): Likewise.
11843 (struct tu_abbrev_offset): Add constructor.
11844 (build_type_psymtabs_1): Adjust to std::vector change.
11845 (print_tu_stats): Likewise.
11846 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
11847 (write_debug_names): Likewise.
11848
b76e467d
SM
118492018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
11850
11851 * dwarf2read.h (struct dwarf2_per_objfile) <all_comp_units>: Likewise.
11852 Make an std::vector.
11853 <n_comp_units>: Remove.
11854 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
11855 to std::vector change.
11856 (dwarf2_per_objfile::get_cutu): Likewise.
11857 (dwarf2_per_objfile::get_cu): Likewise.
11858 (create_cus_from_index): Likewise.
11859 (create_addrmap_from_index): Likewise.
11860 (create_addrmap_from_aranges): Likewise.
11861 (dwarf2_read_index): Likewise.
11862 (dw2_find_last_source_symtab): Likewise.
11863 (dw2_map_symtabs_matching_filename): Likewise.
11864 (dw2_symtab_iter_next): Likewise.
11865 (dw2_print_stats): Likewise.
11866 (dw2_expand_all_symtabs): Likewise.
11867 (dw2_expand_symtabs_with_fullname): Likewise.
11868 (dw2_expand_marked_cus): Likewise.
11869 (dw2_map_symbol_filenames): Likewise.
11870 (create_cus_from_debug_names): Likewise.
11871 (dwarf2_read_debug_names): Likewise.
11872 (dw2_debug_names_iterator::next): Likewise.
11873 (dwarf2_initialize_objfile): Likewise.
11874 (set_partial_user): Likewise.
11875 (dwarf2_build_psymtabs_hard): Likewise.
11876 (read_comp_units_from_section): Remove arguments, adjust to
11877 std::vector change.
11878 (create_all_comp_units): Adjust to std::vector and
11879 read_comp_units_from_section changes.
11880 (dwarf2_find_containing_comp_unit): Adjust to std::vector
11881 change.
11882 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
11883 (psyms_seen_size): Likewise.
11884 (write_gdbindex): Likewise.
11885 (write_debug_names): Likewise.
11886
12359b5e
SM
118872018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
11888
11889 * dwarf2read.c (create_cus_from_index_list): Replace objfile arg
11890 with dwarf2_per_objfile.
11891 (create_cus_from_index): Likewise.
11892 (create_signatured_type_table_from_index): Likewise.
11893 (dwarf2_read_index): Likewise.
11894 (dwarf2_initialize_objfile): Likewise.
11895 (dwarf2_fetch_die_loc_sect_off): Get dwarf2_per_objfile from
11896 per_cu rather than get_dwarf2_per_objfile.
11897
ff4c9fec
SM
118982018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
11899
11900 * dwarf2read.h (struct signatured_type): Forward declare.
11901 (struct dwarf2_per_objfile) <get_cutu, get_cu, get_tu>:
11902 New methods.
11903 * dwarf2read.c (dwarf2_per_objfile::get_cutu): Rename from...
11904 (dw2_get_cutu): ...this.
11905 (dwarf2_per_objfile::get_cu): Rename from...
11906 (dw2_get_cu): ...this.
11907 (dwarf2_per_objfile::get_tu): New.
11908 (create_addrmap_from_index): Adjust.
11909 (create_addrmap_from_aranges): Adjust.
11910 (dw2_find_last_source_symtab): Adjust.
11911 (dw2_map_symtabs_matching_filename): Adjust.
11912 (dw2_symtab_iter_next): Adjust.
11913 (dw2_print_stats): Adjust.
11914 (dw2_expand_all_symtabs): Adjust.
11915 (dw2_expand_symtabs_with_fullname): Adjust.
11916 (dw2_expand_marked_cus): Adjust.
11917 (dw_expand_symtabs_matching_file_matcher): Adjust.
11918 (dw2_map_symbol_filenames): Adjust.
11919 (dw2_debug_names_iterator::next): Adjust.
11920 (dwarf2_initialize_objfile): Adjust.
11921 (set_partial_user): Adjust.
11922 (dwarf2_build_psymtabs_hard): Adjust.
11923
5ca3fcb6
SM
119242018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
11925
11926 * dwarf2read.c (create_signatured_type_table_from_debug_names):
11927 Remove unused variables.
11928 (dw2_map_symtabs_matching_filename): Likewise.
11929 (dwarf2_record_block_ranges): Likewise.
11930 (dwarf2_read_addr_index): Likewise.
11931 (follow_die_offset): Likewise.
11932
b2e586e8
SM
119332018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
11934
11935 * progspace.c (clone_program_space): Pass SYMFILE_DEFER_BP_RESET
11936 to symbol_file_add_main.
11937
7c4e78cf
SM
119382018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
11939
11940 PR mi/22299
11941 * mi/mi-console.c (do_fputc_async_safe): New.
11942 (mi_console_file::write_async_safe): New.
11943 (mi_console_file::flush): Adjust calls to fputstrn_unfiltered.
11944 * mi/mi-console.h (class mi_console_file) <write_async_safe>:
11945 New.
11946 * ui-file.c (ui_file::putstrn): Adjust call to
11947 fputstrn_unfiltered.
11948 * utils.c (printchar): Replace do_fputs and do_fprintf
11949 parameters by do_fputc.
11950 (fputstr_filtered): Adjust call to printchar.
11951 (fputstr_unfiltered): Likewise.
11952 (fputstrn_filtered): Likewise.
11953 (fputstrn_unfiltered): Add do_fputc parameter, pass to
11954 printchar.
11955 * utils.h (do_fputc_ftype): New typedef.
11956 (fputstrn_unfiltered): Add do_fputc parameter.
11957
5dc026d3
SM
119582018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
11959
11960 * regformats/i386/i386-avx.dat: Remove.
11961
c912f608
SM
119622018-04-07 Simon Marchi <simon.marchi@ericsson.com>
11963
11964 PR gdb/22979
11965 * amd64-tdep.c (amd64_none_init_abi): New function.
11966 (amd64_x32_none_init_abi): New function.
11967 (_initialize_amd64_tdep): Register handlers for x86-64 and
11968 x64_32 with GDB_OSABI_NONE.
11969 * osabi.c (gdbarch_init_osabi): Allow running handlers for the
11970 GDB_OSABI_NONE osabi.
11971
26540402
SM
119722018-04-07 Simon Marchi <simon.marchi@ericsson.com>
11973
11974 PR gdb/22980
11975 * defs.h (enum gdb_osabi): Remove GDB_OSABI_UNINITIALIZED, add
11976 GDB_OSABI_NONE.
11977 * arch-utils.c (gdbarch_info_init): Don't set info->osabi.
11978 * osabi.c (gdb_osabi_names): Add "unknown" entry.
11979
9018be22
SM
119802018-04-07 Simon Marchi <simon.marchi@ericsson.com>
11981
11982 * common/byte-vector.h (char_vector): New type.
11983 * target.h (target_read_alloc): Return
11984 gdb::optional<byte_vector>.
11985 (target_read_stralloc): Return gdb::optional<char_vector>.
11986 (target_get_osdata): Return gdb::optional<char_vector>.
11987 * target.c (target_read_alloc_1): Templatize. Replacement
11988 manual memory management with vector.
11989 (target_read_alloc): Change return type, adjust.
11990 (target_read_stralloc): Change return type, adjust.
11991 (target_get_osdata): Change return type, adjust.
11992 * auxv.c (struct auxv_info) <length>: Remove.
11993 <data>: Change type to gdb::optional<byte_vector>.
11994 (auxv_inferior_data_cleanup): Free auxv_info with delete.
11995 (get_auxv_inferior_data): Allocate auxv_info with new, adjust.
11996 (target_auxv_search): Adjust.
11997 (fprint_target_auxv): Adjust.
11998 * avr-tdep.c (avr_io_reg_read_command): Adjust.
11999 * linux-tdep.c (linux_spu_make_corefile_notes): Adjust.
12000 (linux_make_corefile_notes): Adjust.
12001 * osdata.c (get_osdata): Adjust.
12002 * remote.c (remote_get_threads_with_qxfer): Adjust.
12003 (remote_memory_map): Adjust.
12004 (remote_traceframe_info): Adjust.
12005 (btrace_read_config): Adjust.
12006 (remote_read_btrace): Adjust.
12007 (remote_pid_to_exec_file): Adjust.
12008 * solib-aix.c (solib_aix_get_library_list): Adjust.
12009 * solib-dsbt.c (decode_loadmap): Don't free buf.
12010 (dsbt_get_initial_loadmaps): Adjust.
12011 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Adjust.
12012 * solib-target.c (solib_target_current_sos): Adjust.
12013 * tracepoint.c (sdata_make_value): Adjust.
12014 * xml-support.c (xinclude_start_include): Adjust.
12015 (xml_fetch_content_from_file): Adjust.
12016 * xml-support.h (xml_fetch_another): Change return type.
12017 (xml_fetch_content_from_file): Change return type.
12018 * xml-syscall.c (xml_init_syscalls_info): Adjust.
12019 * xml-tdesc.c (file_read_description_xml): Adjust.
12020 (fetch_available_features_from_target): Change return type.
12021 (target_fetch_description_xml): Adjust.
12022 (target_read_description_xml): Adjust.
12023
14c88955
TT
120242018-04-06 Tom Tromey <tom@tromey.com>
12025
12026 * value.c (~value): Update.
12027 (struct value) <contents>: Now unique_xmalloc_ptr.
12028 (value_contents_bits_eq, allocate_value_contents)
12029 (value_contents_raw, value_contents_all_raw)
12030 (value_contents_for_printing, value_contents_for_printing_const)
12031 (set_value_enclosing_type): Update.
12032
0c7e6dd8
TT
120332018-04-06 Tom Tromey <tom@tromey.com>
12034
12035 * value.c (range_s): Remove typedef, VEC.
12036 (struct range): Add operator<.
12037 (range_lessthan): Remove.
12038 (ranges_contain): Change type.
12039 (~value): Update.
12040 (struct value) <unavailable, optimized_out>: Now std::vector.
12041 (value_entirely_available)
12042 (value_entirely_covered_by_range_vector)
12043 (value_entirely_unavailable, value_entirely_optimized_out):
12044 Update.
12045 (insert_into_bit_range_vector): Change argument type.
12046 (find_first_range_overlap): Likewise.
12047 (struct ranges_and_idx, value_contents_bits_eq)
12048 (require_not_optimized_out, require_available): Update.
12049 (ranges_copy_adjusted): Change argument types.
12050 (value_optimized_out, value_copy, value_fetch_lazy): Update.
12051
2c8331b9
TT
120522018-04-06 Tom Tromey <tom@tromey.com>
12053
12054 * value.c (~value): Update.
12055 (struct value) <parent>: Now a value_ref_ptr.
12056 (value_parent, set_value_parent, value_address, value_copy):
12057 Update.
12058
466ce3ae
TT
120592018-04-06 Tom Tromey <tom@tromey.com>
12060
12061 * value.c (struct value): Add constructor, destructor, and member
12062 initializers.
12063 (allocate_value_lazy, value_decref): Update.
12064
062d818d
TT
120652018-04-06 Tom Tromey <tom@tromey.com>
12066
12067 * value.c (struct value) <released, next>: Remove.
12068 (all_values): Now a std::vector.
12069 (allocate_value_lazy): Update.
12070 (value_next): Remove.
12071 (value_mark, value_free_to_mark, release_value)
12072 (value_release_to_mark): Update.
12073
a6535de1
TT
120742018-04-06 Tom Tromey <tom@tromey.com>
12075
12076 * value.h (fetch_subexp_value, value_release_to_mark): Update.
12077 (free_value_chain): Remove.
12078 * value.c (free_value_chain): Remove.
12079 (value_release_to_mark): Return a std::vector.
12080 * ppc-linux-nat.c (num_memory_accesses): Change "chain" to a
12081 std::vector.
12082 (check_condition): Update.
12083 * eval.c (fetch_subexp_value): Change "val_chain" to a
12084 std::vector.
12085 * breakpoint.c (update_watchpoint): Update.
12086 (can_use_hardware_watchpoint): Change "vals" to a std::vector.
12087
b5621201
TT
120882018-04-06 Tom Tromey <tom@tromey.com>
12089
12090 * value.h (free_all_values): Remove.
12091 * value.c (free_all_values): Remove.
12092
4d0266a0
TT
120932018-04-06 Tom Tromey <tom@tromey.com>
12094
12095 * value.c (VALUE_HISTORY_CHUNK, struct value_history_chunk)
12096 (value_history_chain, value_history_count): Remove.
12097 (value_history): New global.
12098 (record_latest_value, access_value_history, show_values)
12099 (preserve_values): Update.
12100
b4d61099
TT
121012018-04-06 Tom Tromey <tom@tromey.com>
12102
12103 * varobj.h (struct varobj) <value>: Now a value_ref_ptr.
12104 * varobj.c (varobj_set_display_format, varobj_set_value)
12105 (install_default_visualizer, construct_visualizer)
12106 (install_new_value, ~varobj, varobj_get_value_type)
12107 (my_value_of_variable, varobj_editable_p): Update.
12108 * c-varobj.c (c_describe_child, c_value_of_variable)
12109 (cplus_number_of_children, cplus_describe_child): Update.
12110 * ada-varobj.c (ada_number_of_children, ada_name_of_child)
12111 (ada_path_expr_of_child, ada_value_of_child, ada_type_of_child)
12112 (ada_value_of_variable, ada_value_is_changeable_p): Update.
12113
9b558729
TT
121142018-04-06 Tom Tromey <tom@tromey.com>
12115
12116 * printcmd.c (last_examine_address): Change type to
12117 value_ref_ptr.
12118 (do_examine, x_command): Update.
12119
850645cf
TT
121202018-04-06 Tom Tromey <tom@tromey.com>
12121
12122 * value.c (release_value): Update.
12123 * breakpoint.h (struct watchpoint) <val>: Now a value_ref_ptr.
12124 (struct bpstats) <val>: Now a value_ref_ptr.
12125 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
12126 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
12127 (~watchpoint, print_it_watchpoint, watch_command_1)
12128 (invalidate_bp_value_on_memory_change): Update.
12129
22bc8444
TT
121302018-04-06 Tom Tromey <tom@tromey.com>
12131
12132 * varobj.c (varobj_clear_saved_item)
12133 (update_dynamic_varobj_children, install_new_value, ~varobj):
12134 Update.
12135 * value.h (value_incref): Move declaration earlier.
12136 (value_decref): Rename from value_free.
12137 (struct value_ref_policy): New.
12138 (value_ref_ptr): New typedef.
12139 (struct value_deleter): Remove.
12140 (gdb_value_up): Remove typedef.
12141 (release_value): Change return type.
12142 (release_value_or_incref): Remove.
12143 * value.c (set_value_parent): Update.
12144 (value_incref): Change return type.
12145 (value_decref): Rename from value_free.
12146 (value_free_to_mark, free_all_values, free_value_chain): Update.
12147 (release_value): Return value_ref_ptr.
12148 (release_value_or_incref): Remove.
12149 (record_latest_value, set_internalvar, clear_internalvar):
12150 Update.
12151 * stack.c (info_frame_command): Don't call value_free.
12152 * python/py-value.c (valpy_dealloc, valpy_new)
12153 (value_to_value_object): Update.
12154 * printcmd.c (do_examine): Update.
12155 * opencl-lang.c (lval_func_free_closure): Update.
12156 * mi/mi-main.c (register_changed_p): Don't call value_free.
12157 * mep-tdep.c (mep_frame_prev_register): Don't call value_free.
12158 * m88k-tdep.c (m88k_frame_prev_register): Don't call value_free.
12159 * m68hc11-tdep.c (m68hc11_frame_prev_register): Don't call
12160 value_free.
12161 * guile/scm-value.c (vlscm_free_value_smob)
12162 (vlscm_scm_from_value): Update.
12163 * frame.c (frame_register_unwind, frame_unwind_register_signed)
12164 (frame_unwind_register_unsigned, get_frame_register_bytes)
12165 (put_frame_register_bytes): Don't call value_free.
12166 * findvar.c (address_from_register): Don't call value_free.
12167 * dwarf2read.c (dwarf2_compute_name): Don't call value_free.
12168 * dwarf2loc.c (entry_data_value_free_closure)
12169 (value_of_dwarf_reg_entry, free_pieced_value_closure)
12170 (dwarf2_evaluate_loc_desc_full): Update.
12171 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
12172 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
12173 (~watchpoint, watch_command_1)
12174 (invalidate_bp_value_on_memory_change): Update.
12175 * alpha-tdep.c (alpha_register_to_value): Don't call value_free.
12176
7f8a5d38
SM
121772018-04-06 Simon Marchi <simon.marchi@polymtl.ca>
12178
12179 PR gdb/23022
12180 * warning.m4: Add -Wno-error=deprecated-register.
12181 * configure: Re-generate.
12182
8a76bd3b
TT
121832018-04-05 Tom Tromey <tom@tromey.com>
12184
12185 * linespec.h: Remove include of "vec.h".
12186
8e8d776e
TT
121872018-04-05 Tom Tromey <tom@tromey.com>
12188
12189 * linespec.c (typep): Remove typedef.
12190 (find_methods, find_superclass_methods): Take a std::vector.
12191 (find_method): Use std::vector.
12192
9b2f8581
TT
121932018-04-05 Tom Tromey <tom@tromey.com>
12194
12195 * utils.c (compare_strings): Remove.
12196 * utils.h (compare_strings): Remove.
12197 * objc-lang.h (find_imps): Update.
12198 * objc-lang.c (find_methods): Take a std::vector.
12199 (uniquify_strings, find_imps): Likewise.
12200 * linespec.c (find_methods): Take a std::vector.
12201 (decode_objc): Use std::vector.
12202 (add_all_symbol_names_from_pspace, find_superclass_methods): Take
12203 a std::vector.
12204 (find_method, find_function_symbols): Use std::vector.
12205
459a2e4c
TT
122062018-04-05 Tom Tromey <tom@tromey.com>
12207
12208 * completer.c (completion_tracker::completion_tracker): Remove
12209 cast.
12210 (completion_tracker::discard_completions): Likewise.
12211 * breakpoint.c (ambiguous_names_p): Remove cast.
12212 * ada-lang.c (_initialize_ada_language): Remove cast.
12213 * utils.h (streq): Update.
12214 (streq_hash): Add new declaration.
12215 * utils.c (streq): Return bool.
12216 (streq_hash): New function.
12217
9be2c17a
TT
122182018-04-05 Tom Tromey <tom@tromey.com>
12219
12220 * linespec.c (event_location_to_sals) <case ADDRESS_LOCATION>:
12221 Remove a string copy.
12222
f73c6ece
TT
122232018-04-05 Tom Tromey <tom@tromey.com>
12224
12225 * linespec.c (filter_results): Use std::vector.
12226 (decode_line_2, decode_line_full): Update.
12227
53a0f8a2
TT
122282018-04-05 Tom Tromey <tom@tromey.com>
12229
12230 * linespec.c (canonical_to_fullform): Return std::string.
12231 (filter_results): Update.
12232 (struct decode_line_2_item): Add constructor.
12233 <fullform, displayform>: Now std::string.
12234 (decode_line_2_compare_items): Now a std::sort comparator.
12235 (decode_line_2): Update.
12236
a5b5adf5
TT
122372018-04-05 Tom Tromey <tom@tromey.com>
12238
12239 * linespec.c (copy_token_string): Return a unique_xmalloc_ptr.
12240 (unexpected_linespec_error): Update.
12241 (linespec_parse_basic, parse_linespec): Update.
12242
6a307fc5
TT
122432018-04-05 Tom Tromey <tom@tromey.com>
12244
12245 * linespec.c (linespec_parse_basic): Reindent.
12246
41c1efc6
TT
122472018-04-05 Tom Tromey <tom@tromey.com>
12248
12249 * minsyms.h (iterate_over_minimal_symbols): Update.
12250 * minsyms.c (iterate_over_minimal_symbols): Take a
12251 gdb::function_view.
12252 * linespec.c (struct collect_minsyms): Remove.
12253 (compare_msyms): Now a std::sort comparator.
12254 (add_minsym): Add parameters.
12255 (search_minsyms_for_name): Update. Use std::vector.
12256
c5edbf3d
TT
122572018-04-03 Tom Tromey <tom@tromey.com>
12258
12259 * mipsread.c (read_alphacoff_dynamic_symtab): Use
12260 gdb::byte_vector.
12261
b39efc48
WP
122622018-04-02 Weimin Pan <weimin.pan@oracle.com>
12263
12264 * MAINTAINERS (Write After Approval): Add Weimin Pan.
12265
121ad66c 122662018-04-02 Weimin Pan <weimin.pan@oracle.com>
79f18731
WP
12267
12268 PR gdb/16959
12269 * cp-valprint.c: (cp_print_static_field) Fix infinite recursion when
12270 printing static type.
12271
09473be8
TT
122722018-04-01 Tom Tromey <tom@tromey.com>
12273
12274 * rs6000-nat.c (rs6000_ptrace_ldinfo): Return a byte_vector.
12275 (rs6000_xfer_shared_libraries): Update.
12276
ec1f2d91
SM
122772018-04-01 Simon Marchi <simon.marchi@polymtl.ca>
12278
12279 * common/gdb_vecs.h (char_ptr): Remove.
12280 * tracepoint.c (encode_actions_1): Remove usage of char_ptr.
12281
d8611974
SM
122822018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
12283
12284 * guile/scm-utils.c (gdbscm_parse_function_args): Replace VEC
12285 with std::vector.
12286 * common/gdb_vecs.h (DEF_VEC_P (char_ptr)): Remove.
12287
a18ba4e4
SM
122882018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
12289
12290 * tracepoint.h (struct uploaded_tp): Initialize fields.
12291 <actions, step_actions, cmd_strings>: Change type to
12292 std::vector<char *>.
12293 * tracepoint.c (get_uploaded_tp): Allocate with new.
12294 (free_uploaded_tps): Free with delete.
12295 (parse_tracepoint_definition): Adjust to std::vector change.
12296 * breakpoint.c (read_uploaded_action): Likewise.
12297 (create_tracepoint_from_upload): Likewise.
12298 * ctf.c (ctf_write_uploaded_tp): Likewise.
12299 (SET_ARRAY_FIELD): Likewise.
12300 * tracefile-tfile.c (tfile_write_uploaded_tp): Likewise.
12301
a7961323
TT
123022018-03-30 Tom Tromey <tom@tromey.com>
12303
12304 * solib-svr4.c (lm_info_read): Use gdb::byte_vector. Return
12305 std::unique_ptr.
12306 (svr4_keep_data_in_core): Update.
12307 (svr4_read_so_list): Update.
12308
e83e4e24
TT
123092018-03-30 Tom Tromey <tom@tromey.com>
12310
12311 * windows-nat.c (handle_output_debug_string, handle_exception):
12312 Update.
12313 * target.h (target_read_string): Update.
12314 * target.c (target_read_string): Change "string" to
12315 unique_xmalloc_ptr.
12316 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
12317 Update.
12318 * solib-frv.c (frv_current_sos): Update.
12319 * solib-dsbt.c (dsbt_current_sos): Update.
12320 * solib-darwin.c (darwin_current_sos): Update.
12321 * linux-thread-db.c (inferior_has_bug): Update.
12322 * expprint.c (print_subexp_standard) <case OP_OBJC_MSGCALL>:
12323 Update. Remove alloca.
12324 * ada-lang.c (ada_main_name): Update.
12325
263db9a1
TT
123262018-03-30 Tom Tromey <tom@tromey.com>
12327
12328 * dwarf2read.c (struct free_dwo_file_cleanup_data): Remove.
12329 (struct dwo_file_deleter): New.
12330 (dwo_file_up): New typedef.
12331 (open_and_init_dwo_file): Use dwo_file_up.
12332 (free_dwo_file_cleanup): Remove.
12333
5dafb3d1
TT
123342018-03-30 Tom Tromey <tom@tromey.com>
12335
12336 * dwarf2read.c (free_dwo_file): Remove "objfile" parameter.
12337 (free_dwo_file_cleanup, free_dwo_file_from_slot): Update.
12338
11ed8cad
TT
123392018-03-30 Tom Tromey <tom@tromey.com>
12340
12341 * dwarf2read.c (class free_cached_comp_units): New class.
12342 (dw2_instantiate_symtab, dwarf2_build_psymtabs_hard): Use it.
12343 (free_cached_comp_units): Remove function.
12344
9ae79dac
TT
123452018-03-30 Tom Tromey <tom@tromey.com>
12346
12347 * utils.h (make_cleanup_unpush_target): Remove.
12348 * inf-ptrace.c (struct target_unpusher): New.
12349 (target_unpush_up) New typedef.
12350 (inf_ptrace_create_inferior, inf_ptrace_attach): Use
12351 target_unpush_up.
12352 * utils.c (do_unpush_target, make_cleanup_unpush_target): Remove.
12353
5aa89276
TT
123542018-03-27 Tom Tromey <tom@tromey.com>
12355
12356 * utils.c (prompt_for_continue): Use unique_xmalloc_ptr.
12357
1dbeed45
TT
123582018-03-27 Pedro Alves <palves@redhat.com>
12359 Tom Tromey <tom@tromey.com>
12360
12361 * top.c (class gdb_readline_wrapper_cleanup): Add constructor,
12362 destructor. Now a class.
12363 (gdb_readline_wrapper_cleanup): Remove function.
12364 (gdb_readline_wrapper): Remove cleanups.
12365
c819b2c0
TT
123662018-03-27 Tom Tromey <tom@tromey.com>
12367
12368 * typeprint.h (struct type_print_options) <local_typedefs,
12369 global_typedefs>: Remove "struct" keyword.
12370 (class typedef_hash_table): New class.
12371 (recursively_update_typedef_hash, add_template_parameters)
12372 (create_typedef_hash, free_typedef_hash, copy_typedef_hash)
12373 (find_typedef_in_hash): Don't declare.
12374 * typeprint.c (struct typedef_hash_table): Move to typeprint.h.
12375 (typedef_hash_table::recursively_update): Rename from
12376 recursively_update_typedef_hash. Now a member.
12377 (typedef_hash_table::add_template_parameters): Rename from
12378 add_template_parameters. Now a member.
12379 (typedef_hash_table::typedef_hash_table): Now a constructor;
12380 rename from create_typedef_hash.
12381 (typedef_hash_table::~typedef_hash_table): Now a destructor;
12382 rename from free_typedef_hash.
12383 (do_free_typedef_hash, make_cleanup_free_typedef_hash)
12384 (do_free_global_table): Remove.
12385 (typedef_hash_table::typedef_hash_table): New constructor; renamed
12386 from copy_type_recursive.
12387 (create_global_typedef_table): Remove.
12388 (typedef_hash_table::find_global_typedef): Now a member of
12389 typedef_hash_table.
12390 (typedef_hash_table::find_typedef): Rename from
12391 find_typedef_in_hash; now a member.
12392 (whatis_exp): Update.
12393 * extension.h (struct ext_lang_type_printers): Add constructor and
12394 destructor.
12395 (start_ext_lang_type_printers, free_ext_lang_type_printers): Don't
12396 declare.
12397 * extension.c (ext_lang_type_printers::ext_lang_type_printers):
12398 Now a constructor; rename from start_ext_lang_type_printers.
12399 (ext_lang_type_printers): Now a destructor; rename from
12400 free_ext_lang_type_printers.
12401 * c-typeprint.c (find_typedef_for_canonicalize, c_print_type_1):
12402 Update.
12403 (c_type_print_base_struct_union): Update. Remove cleanups.
12404
608219fb
TT
124052018-03-27 Tom Tromey <tom@tromey.com>
12406
12407 * dwarf-index-write.c: Include <cmath>.
12408
3fcded8f
JB
124092018-03-27 Joel Brobecker <brobecker@adacore.com>
12410
12411 * NEWS: Add entry describing new "set|show varsize-limit" command.
12412 * ada-lang.c (_initialize_ada_language): Add "set/show varsize-limit"
12413 command.
12414 * printcmd.c (_initialize_printcmd): Add "set var" alias of
12415 "set variable".
12416
cd4fb1b2
SM
124172018-03-27 Simon Marchi <simon.marchi@ericsson.com>
12418
12419 * Makefile.in (COMMON_SFILES): Add dwarf-index-common.c and
12420 dwarf-index-write.c
12421 (HFILES_NO_SRCDIR): Add dwarf-index-common.h and dwarf2read.h.
12422 * dwarf-index-common.c: New file.
12423 * dwarf-index-common.h: New file.
12424 * dwarf-index-write.c: New file.
12425 * dwarf2read.c: Include dwarf2read.h and dwarf-index-common.h.
12426 (struct dwarf2_section_info): Move from here.
12427 (dwarf2_section_info_def): Likewise.
12428 (DEF_VEC_O (dwarf2_section_info_def)): Likewise.
12429 (offset_type): Likewise.
12430 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): Likewise.
12431 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): Likewise.
12432 (DW2_GDB_INDEX_CU_SET_VALUE): Likewise.
12433 (byte_swap): Likewise.
12434 (MAYBE_SWAP): Likewise.
12435 (dwarf2_per_cu_ptr): Likewise.
12436 (DEF_VEC_P (dwarf2_per_cu_ptr)): Likewise.
12437 (struct tu_stats): Likewise.
12438 (struct dwarf2_per_objfile): Likewise.
12439 (struct dwarf2_per_cu_data): Likewise.
12440 (struct signatured_type): Likewise.
12441 (sig_type_ptr): Likewise.
12442 (DEF_VEC_P (sig_type_ptr)): Likewise.
12443 (INDEX4_SUFFIX): Likewise.
12444 (INDEX5_SUFFIX): Likewise.
12445 (DEBUG_STR_SUFFIX): Likewise.
12446 (dwarf2_read_section): Make non-static.
12447 (mapped_index_string_hash): Move from here.
12448 (dwarf5_djb_hash): Likewise.
12449 (file_write): Likewise.
12450 (class data_buf): Likewise.
12451 (struct symtab_index_entry): Likewise.
12452 (struct mapped_symtab): Likewise.
12453 (find_slot): Likewise.
12454 (hash_expand): Likewise.
12455 (add_index_entry): Likewise.
12456 (uniquify_cu_indices): Likewise.
12457 (class c_str_view): Likewise.
12458 (class c_str_view_hasher): Likewise.
12459 (class vector_hasher): Likewise.
12460 (write_hash_table): Likewise.
12461 (psym_index_map): Likewise.
12462 (struct addrmap_index_data): Likewise.
12463 (add_address_entry): Likewise.
12464 (add_address_entry_worker): Likewise.
12465 (write_address_map): Likewise.
12466 (symbol_kind): Likewise.
12467 (write_psymbols): Likewise.
12468 (struct signatured_type_index_data): Likewise.
12469 (write_one_signatured_type): Likewise.
12470 (recursively_count_psymbols): Likewise.
12471 (recursively_write_psymbols): Likewise.
12472 (class debug_names): Likewise.
12473 (check_dwarf64_offsets): Likewise.
12474 (psyms_seen_size): Likewise.
12475 (write_gdbindex): Likewise.
12476 (write_debug_names): Likewise.
12477 (assert_file_size): Likewise.
12478 (write_psymtabs_to_index): Likewise.
12479 (save_gdb_index_command): Likewise.
12480 (_initialize_dwarf2_read): Don't register the "save gdb-index"
12481 command.
12482 * dwarf2read.h: New file.
12483
59cc4834
JB
124842018-03-27 Joel Brobecker <brobecker@adacore.com>
12485
12486 PR gdb/22670
12487 * dwarf2read.c (dwarf2_physname): Do not return the demangled
12488 symbol name if the CU's language stores symbol names in linkage
12489 format.
12490 * language.h (struct language_defn)
12491 <la_store_sym_names_in_linkage_form_p>: New field. Adjust
12492 all instances of this struct.
12493
67501539
TT
124942018-03-26 Tom Tromey <tom@tromey.com>
12495
12496 * stack.c (backtrace_command_1): Remove verbose code.
12497
76c939ac
TT
124982018-03-26 Tom Tromey <tom@tromey.com>
12499
12500 * python/py-framefilter.c (py_print_type): Don't catch
12501 exceptions. Return void.
12502 (py_print_value): Likewise.
12503 (py_print_single_arg): Likewise.
12504 (enumerate_args): Don't catch exceptions.
12505 (py_print_args): Likewise.
12506 (py_print_frame): Likewise.
12507 (gdbpy_apply_frame_filter): Catch exceptions here.
12508
9507b29c
TT
125092018-03-26 Tom Tromey <tom@tromey.com>
12510
12511 * stack.c (_initialize_stack): Remove trailing newlines from help
12512 text. Add "Usage" line to "backtrace" help.
12513
eb68e487
TT
125142018-03-26 Tom Tromey <tom@tromey.com>
12515
12516 PR python/16486:
12517 * python/py-framefilter.c (py_print_args): Call wrap_hint.
12518
1f111921
TT
125192018-03-26 Tom Tromey <tom@tromey.com>
12520
12521 * python/py-framefilter.c (py_print_single_arg): Return
12522 EXT_LANG_BT_ERROR from catch.
12523
fb7eb8b5
TT
125242018-03-26 Tom Tromey <tom@tromey.com>
12525
12526 PR backtrace/15584:
12527 * stack.c (backtrace_command_1): Move some code into no-filters
12528 "if".
12529
4ca59a9f
TT
125302018-03-26 Tom Tromey <tom@tromey.com>
12531
12532 * python/py-framefilter.c (throw_quit_or_print_exception): New
12533 function.
12534 (gdbpy_apply_frame_filter): Use it.
12535
92256134
TT
125362018-03-26 Tom Tromey <tom@tromey.com>
12537
12538 PR cli/17716:
12539 * python/py-framefilter.c (py_print_type, py_print_value)
12540 (enumerate_args, py_print_args, gdbpy_apply_frame_filter): Use
12541 RETURN_MASK_ERROR.
12542
7a630bc2
TT
125432018-03-26 Tom Tromey <tom@tromey.com>
12544
12545 * python/py-framefilter.c (enumerate_args): Use
12546 gdb::unique_xmalloc_ptr.
12547
63283d4a
TT
125482018-03-26 Tom Tromey <tom@tromey.com>
12549
12550 * python/py-framefilter.c (py_print_frame): Return
12551 EXT_LANG_BT_OK.
12552 (gdbpy_apply_frame_filter): Update comment.
12553 * extension.h (enum ext_lang_bt_status) <EXT_LANG_BT_COMPLETED>:
12554 Remove.
12555 <EXT_LANG_BT_NO_FILTERS>: Change value.
12556
978d6c75
TT
125572018-03-26 Tom Tromey <tom@tromey.com>
12558
12559 PR backtrace/15582:
12560 * stack.c (backtrace_command): Parse "hide" argument.
12561 * python/py-framefilter.c (py_print_frame): Handle PRINT_HIDE.
12562 * extension.h (enum frame_filter_flags) <PRINT_HIDE>: New
12563 constant.
12564
1cf7e640
TT
125652018-03-26 Tom Tromey <tom@tromey.com>
12566
12567 * stack.c (backtrace_command_1): Remove "show_locals" parameter,
12568 add "flags".
12569 (backtrace_command): Remove "fulltrace", add "flags".
12570
ea3b0687
TT
125712018-03-26 Tom Tromey <tom@tromey.com>
12572
12573 * stack.c (backtrace_command): Rewrite command line parsing.
12574
9f034d75
SM
125752018-03-26 Simon Marchi <simon.marchi@ericsson.com>
12576
12577 * dwarf2read.c (DEF_VEC_I(offset_type)): Remove.
12578
ce1459e5
SM
125792018-03-26 Simon Marchi <simon.marchi@ericsson.com>
12580
12581 * filename-seen-cache.h: Add include guard.
12582
4f7ae6f5
KS
125832018-03-26 Keith Seitz <keiths@redhat.com>
12584
12585 * symfile.c (place_section): Remove "struct" from section_addr_info
12586 in comment.
12587 * windows-nat.c (struct safe_symbol_file_add_args) <addrs>: Remove
12588 "struct" keyword from section_addr_info.
12589
5cd3e386
AH
125902018-03-26 Alan Hayward <alan.hayward@arm.com>
12591
12592 * regformats/regdef.h (reg): Add constructors.
12593
3e5ef9a4
PA
125942018-03-25 Pedro Alves <palves@redhat.com>
12595
12596 * eval.c (evaluate_funcall): Swap OP_VAR_MSYM_VALUE/OP_VAR_VALUE
12597 if then/else bodies in var_func_name extraction.
12598
c88d2fcc 125992018-03-23 Weimin Pan <weimin.pan@oracle.com>
bce02d88
WP
12600
12601 * minsyms.c (lookup_minimal_symbol_and_objfile): Use
12602 lookup_minimal_symbol() to find symbol entry.
12603 * minsyms.h (lookup_minimal_symbol_and_objfile): Update comment.
12604
b7fee5a3
KS
126052018-03-23 Keith Seitz <keiths@redhat.com>
12606
12607 PR c++/22968
12608 * dwarf2read.c (scan_partial_symbols): Scan structs/classes for
12609 nested type definitions for C++, too.
12610
2cc9b304
TT
126112018-03-23 Tom Tromey <tom@tromey.com>
12612
12613 * machoread.c (struct oso_el): Add a constructor. Don't define as
12614 a typedef.
12615 (macho_register_oso): Remove.
12616 (macho_symtab_read): Take a std::vector.
12617 (oso_el_compare_name): Now a std::sort comparator.
12618 (macho_symfile_read_all_oso): Take a std::vector.
12619 (macho_symfile_read): Use std::vector. Remove cleanups.
12620
a2b2bc12
TT
126212018-03-22 Tom Tromey <tom@tromey.com>
12622
12623 * record-full.c (record_full_exec_insn): Use gdb::byte_vector.
12624 (record_full_goto_bookmark): Use std::string.
12625
7a8f494c
PFC
126262018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
12627
12628 PR tdep/18295
12629 * rs6000-tdep.c (skip_prologue): Match both stwux and stdux
12630 a single mask.
12631
dd6d677f
PFC
126322018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
12633
12634 * rs6000-tdep.c (store_insn_p): New function.
12635 (skip_prologue): New variable alloca_reg_offset. Set lr_reg
12636 and cr_reg to their unshifted values. Use store_insn_p to
12637 match LR saves using either R1 or fdata->alloca_reg. Use
12638 store_insn_p to match CR saves. Set alloca_reg_offset
12639 when alloca_reg and framep are set. Remove lr_reg shift
12640 when assigning to fdata->lr_register.
12641
26d6cec4
AA
126422018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
12643
12644 * linux-tdep.c (linux_info_proc): For "info proc cmdline", print
12645 command line args instead of emitting a warning.
12646
5d9310c4
SM
126472018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
12648
12649 * tracepoint.h (struct static_tracepoint_marker): Initialize
12650 fields, define default constructor, move constructor and move
12651 assignment, disable the rest.
12652 <str_id, extra>: Make std::string.
12653 (release_static_tracepoint_marker): Remove.
12654 (free_current_marker): Remove.
12655 * tracepoint.c (free_current_marker): Remove.
12656 (parse_static_tracepoint_marker_definition): Adjust to
12657 std::string, use new hex2str overload.
12658 (release_static_tracepoint_marker): Remove.
12659 (print_one_static_tracepoint_marker): Get marker by reference
12660 and adjust to std::string.
12661 (info_static_tracepoint_markers_command): Adjust to std::vector
12662 changes
12663 * target.h (static_tracepoint_marker_p): Remove typedef.
12664 (DEF_VEC_P(static_tracepoint_marker_p)): Remove.
12665 (struct target_ops) <to_static_tracepoint_marker_at>: Return
12666 bool.
12667 <to_static_tracepoint_markers_by_strid>: Return std::vector.
12668 * target-debug.h
12669 (target_debug_print_VEC_static_tracepoint_marker_p_p): Remove.
12670 (target_debug_print_std_vector_static_tracepoint_marker): New.
12671 (target_debug_print_struct_static_tracepoint_marker_p): Rename
12672 to...
12673 (target_debug_print_static_tracepoint_marker_p): ... this.
12674 * target-delegates.c: Re-generate.
12675 * breakpoint.h (struct tracepoint) <static_trace_marker_id>:
12676 Make std::string.
12677 * breakpoint.c (init_breakpoint_sal): Adjust to std::string.
12678 (decode_static_tracepoint_spec): Adjust to std::vector.
12679 (tracepoint_print_one_detail): Adjust to std::string.
12680 (strace_marker_decode_location): Adjust to std::string.
12681 (update_static_tracepoint): Adjust to std::string, remove call
12682 to release_static_tracepoint_marker.
12683 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
12684 Adjust to std::vector.
12685 * remote.c (remote_static_tracepoint_marker_at): Return bool.
12686 (remote_static_tracepoint_markers_by_strid): Adjust to
12687 std::vector.
12688 * common/rsp-low.h (hex2str): New overload with explicit count
12689 of bytes.
12690 * common/rsp-low.c (hex2str): New overload with explicit count
12691 of bytes.
12692 * unittests/rsp-low-selftests.c (test_hex2str): New function.
12693 (_initialize_rsp_low_selftests): Add test_hex2str test.
12694 * unittests/tracepoint-selftests.c
12695 (test_parse_static_tracepoint_marker_definition): Adjust to
12696 std::string.
12697
62c222b6
SM
126982018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
12699
12700 * tracepoint.c (parse_static_tracepoint_marker_definition):
12701 Consider case where the definition is followed by more
12702 definitions.
12703 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12704 tracepoint-selftests.c.
12705 * unittests/tracepoint-selftests.c: New.
12706
7eb2418f
PFC
127072018-03-21 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
12708
12709 * MAINTAINERS (Write After Approval): Add Pedro Franco de
12710 Carvalho.
12711
7cbe16e9
SR
127122018-03-20 Stephen Roberts <stephen.roberts@arm.com>
12713
3d6b3b82 12714 * symtab.c (find_pc_sect_line): fixed indentation.
7cbe16e9 12715
4ee89e90
SR
127162018-03-20 Stephen Roberts <stephen.roberts@arm.com>
12717
3d6b3b82 12718 * symtab.c (find_pc_sect_line): now uses binary search.
4ee89e90 12719
92630041
TT
127202018-03-19 Tom Tromey <tom@tromey.com>
12721
12722 * rust-exp.y (struct_expr_tail, struct_expr_list): Add plain
12723 "IDENT" production.
12724
76727919
TT
127252018-03-19 Pedro Alves <palves@redhat.com>
12726 Tom Tromey <tom@tromey.com>
12727
12728 * unittests/observable-selftests.c: New file.
12729 * common/observable.h: New file.
12730 * observable.h: New file.
12731 * ada-lang.c, ada-tasks.c, agent.c, aix-thread.c, annotate.c,
12732 arm-tdep.c, auto-load.c, auxv.c, break-catch-syscall.c,
12733 breakpoint.c, bsd-uthread.c, cli/cli-interp.c, cli/cli-setshow.c,
12734 corefile.c, dummy-frame.c, event-loop.c, event-top.c, exec.c,
12735 extension.c, frame.c, gdbarch.c, guile/scm-breakpoint.c,
12736 infcall.c, infcmd.c, inferior.c, inflow.c, infrun.c, jit.c,
12737 linux-tdep.c, linux-thread-db.c, m68klinux-tdep.c,
12738 mi/mi-cmd-break.c, mi/mi-interp.c, mi/mi-main.c, objfiles.c,
12739 ppc-linux-nat.c, ppc-linux-tdep.c, printcmd.c, procfs.c,
12740 python/py-breakpoint.c, python/py-finishbreakpoint.c,
12741 python/py-inferior.c, python/py-unwind.c, ravenscar-thread.c,
12742 record-btrace.c, record-full.c, record.c, regcache.c, remote.c,
12743 riscv-tdep.c, sol-thread.c, solib-aix.c, solib-spu.c, solib.c,
12744 spu-multiarch.c, spu-tdep.c, stack.c, symfile-mem.c, symfile.c,
12745 symtab.c, thread.c, top.c, tracepoint.c, tui/tui-hooks.c,
12746 tui/tui-interp.c, valops.c: Update all users.
12747 * tui/tui-hooks.c (tui_bp_created_observer)
12748 (tui_bp_deleted_observer, tui_bp_modified_observer)
12749 (tui_inferior_exit_observer, tui_before_prompt_observer)
12750 (tui_normal_stop_observer, tui_register_changed_observer):
12751 Remove.
12752 (tui_observers_token): New global.
12753 (attach_or_detach, tui_attach_detach_observers): New functions.
12754 (tui_install_hooks, tui_remove_hooks): Use
12755 tui_attach_detach_observers.
12756 * record-btrace.c (record_btrace_thread_observer): Remove.
12757 (record_btrace_thread_observer_token): New global.
12758 * observer.sh: Remove.
12759 * observer.c: Rename to observable.c.
12760 * observable.c (namespace gdb_observers): Define new objects.
12761 (observer_debug): Move into gdb_observers namespace.
12762 (struct observer, struct observer_list, xalloc_observer_list_node)
12763 (xfree_observer_list_node, generic_observer_attach)
12764 (generic_observer_detach, generic_observer_notify): Remove.
12765 (_initialize_observer): Update.
12766 Don't include observer.inc.
12767 * Makefile.in (generated_files): Remove observer.h, observer.inc.
12768 (clean mostlyclean): Likewise.
12769 (observer.h, observer.inc): Remove targets.
12770 (SUBDIR_UNITTESTS_SRCS): Add observable-selftests.c.
12771 (COMMON_SFILES): Use observable.c, not observer.c.
12772 * .gitignore: Remove observer.h.
12773
1cb1f3da
TT
127742018-03-18 Tom Tromey <tom@tromey.com>
12775
12776 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Use
12777 gdb::def_vector.
12778 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
12779
a06ab151
TT
127802018-03-17 Tom Tromey <tom@tromey.com>
12781
12782 * auto-load.c (auto_load_objfile_script_1): Use std::string.
12783
770623f7
TT
127842018-03-17 Tom Tromey <tom@tromey.com>
12785
12786 * target.c (class scoped_target_fd): New.
12787 (target_fileio_close_cleanup): Remove.
12788 (target_fileio_read_alloc_1): Use scoped_target_fd.
12789
39be3c7e
SM
127902018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
12791
12792 * silent-rules.mk: New.
12793 * Makefile.in: Include silent-rules.mk
12794 (srcdir, VPATH, top_srcdir): Move up.
12795 (COMPILE): Add ECHO_CXX.
12796 (test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD.
12797 (init.c): Add ECHO_INIT_C.
12798 (gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
12799 (version.c): Add ECHO_GEN.
12800 (printcmd.o): Add ECHO_CXX.
12801 (target-float.o): Add ECHO_CXX.
12802 (ada-exp.o): Add ECHO_CXX.
12803 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN.
12804 (insight$(EXEEXT)): Add ECHO_CXXLD.
12805 * gnulib/configure.ac: Add AM_SILENT_RULES.
12806 * gnulib/aclocal.m4: Re-generate.
12807 * gnulib/configure: Re-generate.
12808 * gnulib/import/Makefile.in: Re-generate.
12809
37e136b1
TT
128102018-03-16 Tom Tromey <tom@tromey.com>
12811
12812 * xcoffread.c (xcoff_symfile_offsets): Change type of "addrs".
12813 * utils.h (make_cleanup_free_section_addr_info): Don't declare.
12814 * utils.c (do_free_section_addr_info)
12815 (make_cleanup_free_section_addr_info): Remove.
12816 * symfile.h (struct other_sections): Add constructor.
12817 (struct section_addr_info): Remove.
12818 (section_addr_info): New typedef.
12819 (struct sym_fns) <sym_offsets>: Change type of parameter.
12820 (build_section_addr_info_from_objfile)
12821 (relative_addr_info_to_section_offsets, addr_info_make_relative)
12822 (default_symfile_offsets, symbol_file_add)
12823 (symbol_file_add_from_bfd)
12824 (build_section_addr_info_from_section_table): Update.
12825 (alloc_section_addr_info, free_section_addr_info): Don't declare.
12826 * symfile.c (alloc_section_addr_info): Remove.
12827 (build_section_addr_info_from_section_table): Change return type.
12828 Update.
12829 (build_section_addr_info_from_bfd)
12830 (build_section_addr_info_from_objfile): Likewise.
12831 (free_section_addr_info): Remove.
12832 (relative_addr_info_to_section_offsets): Change type of "addrs".
12833 (addrs_section_compar): Now a std::sort comparator.
12834 (addrs_section_sort): Change return type.
12835 (addr_info_make_relative): Change type of "addrs". Update.
12836 (default_symfile_offsets, syms_from_objfile_1)
12837 (syms_from_objfile, symbol_file_add_with_addrs): Likewise.
12838 (symbol_file_add_separate): Update.
12839 (symbol_file_add): Change type of "addrs". Update.
12840 (add_symbol_file_command): Update. Remove cleanups.
12841 * symfile-mem.c (symbol_file_add_from_memory): Update. Remove
12842 cleanups.
12843 * symfile-debug.c (debug_sym_offsets): Change type of "info".
12844 * solib.c (solib_read_symbols): Update.
12845 * objfiles.c (objfile_relocate): Update. Remove cleanups.
12846 * machoread.c (macho_symfile_offsets): Update.
12847 * jit.c (jit_bfd_try_read_symtab): Update.
12848
03afa6ef
SM
128492018-03-15 Simon Marchi <simon.marchi@polymtl.ca>
12850
12851 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12852 unittests/utils-selftests.c.
12853 * unittests/utils-selftests.c: New file.
12854
3ae9ce5d
TT
128552018-03-14 Tom Tromey <tom@tromey.com>
12856
12857 PR cli/14977:
12858 * printcmd.c (printf_c_string, printf_wide_c_string): Special case
12859 for NULL.
12860
b8c2339b
TT
128612018-03-14 Tom Tromey <tom@tromey.com>
12862
12863 PR cli/19918:
12864 * printcmd.c (printf_pointer): Allow "-" in format.
12865
80ae639d
TT
128662018-03-14 Tom Tromey <tom@tromey.com>
12867
12868 * printcmd.c (_initialize_printcmd): Add usage to printf.
12869
0d671d99
YQ
128702018-03-14 Yao Qi <qiyao@sourceware.org>
12871
12872 * MAINTAINERS: Update my email address.
12873
b577b6af
TT
128742018-03-13 Tom Tromey <tom@tromey.com>
12875
12876 * machoread.c (macho_check_dsym): Change filenamep to a
12877 std::string*.
12878 (macho_symfile_read): Update.
12879 * symfile.c (load_command): Use std::string.
12880
89a3b63e
AB
128812018-03-12 Andrew Burgess <andrew.burgess@embecosm.com>
12882
12883 * riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization
12884 to error message string.
12885 (riscv_register_name): Use xsnprintf instead of sprintf.
12886 (riscv_insn::fetch_instruction): Use gdb_assert instead of
12887 internal_error.
12888 (riscv_print_arg_location): Use gdb_assert_not_reached instead of
12889 error.
12890 (riscv_push_dummy_call): Likewise.
12891
984c7238
TT
128922018-03-12 Tom Tromey <tom@tromey.com>
12893
12894 * rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix):
12895 Use gdb::byte_vector.
12896 * arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector.
12897
933522d1
YQ
128982018-03-12 Yao Qi <yao.qi@linaro.org>
12899
12900 * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change
12901 parameter type to readable_regcache.
12902 * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update
12903 the declaration.
12904
be2daae6
TT
129052018-03-11 Tom Tromey <tom@tromey.com>
12906
12907 * dwarf2read.c (struct nextfield): Add initializers.
12908 (struct nextfnfield): Remove.
12909 (struct fnfieldlist): Add initializers. Remove "length" and
12910 "head", use std::vector.
12911 (struct decl_field_list): Remove.
12912 (struct field_info): Add initializers.
12913 <fields, baseclasses>: Now std::vector.
12914 <nbaseclasses, nfnfields, typedef_field_list_count,
12915 nested_types_list_count>: Remove.
12916 (dwarf2_add_field, dwarf2_add_type_defn)
12917 (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
12918 (dwarf2_attach_fn_fields_to_type, handle_struct_member_die)
12919 (process_structure_scope): Update.
12920
484cf504
TT
129212018-03-11 Tom Tromey <tom@tromey.com>
12922
12923 * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable
12924 for use by std::sort.
12925 (build_type_psymtabs_1): Use std::vector.
12926
9bd8e0b0
EZ
129272018-03-09 Eli Zaretskii <eliz@gnu.org>
12928
12929 * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK,
12930 and LIBMPFR in the printed configuration.
12931
5dc1a704
TT
129322018-03-08 Tom Tromey <tom@tromey.com>
12933
12934 * source.c (get_filename_and_charpos): Use scoped_fd.
12935 * nto-procfs.c (procfs_open_1): Use scoped_fd.
12936 (procfs_pidlist): Likewise.
12937 * procfs.c (proc_get_LDT_entry): Use scoped_fd.
12938 (iterate_over_mappings): Likewise.
12939
fdf07f3a
TT
129402018-03-08 Tom Tromey <tom@tromey.com>
12941
12942 * infcall.c (struct call_return_meta_info)
12943 <stack_temporaries_enabled>: Remove.
12944 (get_call_return_value, call_function_by_hand_dummy): Update.
12945 * thread.c (disable_thread_stack_temporaries): Remove.
12946 (enable_thread_stack_temporaries): Remove.
12947 (thread_stack_temporaries_enabled_p): Return bool.
12948 (push_thread_stack_temporary, value_in_thread_stack_temporaries)
12949 (get_last_thread_stack_temporary): Update.
12950 * eval.c (evaluate_subexp): Update.
12951 * gdbthread.h (class enable_thread_stack_temporaries): Now a
12952 class, not a function.
12953 (value_ptr, value_vec): Remove typedefs.
12954 (class thread_info) <stack_temporaries_enabled>: Now bool.
12955 <stack_temporaries>: Now a std::vector.
12956 (thread_stack_temporaries_enabled_p)
12957 (value_in_thread_stack_temporaries): Return bool.
12958
567a3e54
SM
129592018-03-08 Simon Marchi <simon.marchi@ericsson.com>
12960
12961 * remote.c (putpkt_binary): Fix omitted bytes reporting.
12962 (getpkt_or_notif_sane_1): Likewise.
12963
00b40057
SM
129642018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
12965
12966 * build-id.c (build_id_to_debug_bfd): Use std::string.
12967
a8dbfd58
SM
129682018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
12969
12970 * build-id.c (find_separate_debug_file_by_buildid): Return
12971 std::string.
12972 * build-id.h (find_separate_debug_file_by_buildid): Return
12973 std::string.
12974 * coffread.c (coff_symfile_read): Adjust to std::string.
12975 * elfread.c (elf_symfile_read): Adjust to std::string.
12976 * symfile.c (separate_debug_file_exists): Change parameter to
12977 std::string.
12978 (find_separate_debug_file): Return std::string.
12979 (find_separate_debug_file_by_debuglink): Return std::string.
12980 * symfile.h (find_separate_debug_file_by_debuglink): Return
12981 std::string.
12982
e6a58aa8
SM
129832018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
12984
12985 * common/xml-utils.c (xml_escape_text): Move code to...
12986 (xml_escape_text_append): ... this new function.
12987 * common/xml-utils.h (xml_escape_text_append): New declaration.
12988 * unittests/xml-utils-selftests.c (test_xml_escape_text_append):
12989 New function.
12990 (_initialize_xml_utils): register test_xml_escape_text_append as
12991 a selftest.
12992
4ef0bef6
AH
129932018-03-07 Alan Hayward <alan.hayward@arm.com>
12994
12995 * defs.h: Remove MAX_REGISTER_SIZE.
12996 * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE
12997 asserts.
12998 * python/py-unwind.c (pyuw_sniffer): Likewise.
12999
e0d3522b
TT
130002018-03-07 Tom Tromey <tom@tromey.com>
13001
13002 * linux-tdep.c (linux_info_proc): Update.
13003 * target.h (struct target_ops) <to_fileio_readlink>: Return
13004 optional<string>.
13005 (target_fileio_readlink): Return optional<string>.
13006 * remote.c (remote_hostio_readlink): Return optional<string>.
13007 * inf-child.c (inf_child_fileio_readlink): Return
13008 optional<string>.
13009 * target.c (target_fileio_readlink): Return optional<string>.
13010
ea005f31
AB
130112018-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
13012
13013 * regcache.c (cooked_read_test): Add riscv to the list of
13014 architectures that have a save_reggroup.
13015
e95a97d4
AA
130162018-03-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
13017
13018 * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given
13019 value is not a dynamic class object.
13020
d8344f3d
TT
130212018-03-06 Tom Tromey <tom@tromey.com>
13022
13023 * rust-exp.y: Formatting fixes.
13024
9add17f2
AB
130252018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13026
13027 * riscv-tdep.c (riscv_register_name): Remove target description
13028 support.
13029 (riscv_gdbarch_init): Remove target description check.
13030
c9486dfe
AB
130312018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13032
13033 * riscv-tdep.c: Remove 'Contributed by ...' lines from header
13034 comment.
13035 * riscv-tdep.h: Likewise.
13036
d74aff3d
AB
130372018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13038
13039 * riscv-tdep.c (riscv_pseudo_register_read): Delete.
13040 (riscv_pseudo_register_write): Delete.
13041 (riscv_gdbarch_init): Remove all use of pseudo registers.
13042
7ea78b59
SM
130432018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
13044
13045 * record-btrace.c (btrace_print_lines): Replace cleanup
13046 parameter with RAII equivalents.
13047 (btrace_insn_history): Replace cleanup with RAII equivalents.
13048 * ui-out.h (make_cleanup_ui_out_list_begin_end,
13049 make_cleanup_ui_out_tuple_begin_end): Remove.
13050 * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end,
13051 make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end,
13052 make_cleanup_ui_out_list_begin_end): Remove.
13053
53127008
SM
130542018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
13055
13056 * record-btrace.c (record_btrace_maybe_mark_async_event): Change
13057 parameter types to std::vector. Use bool.
13058 (record_btrace_wait): Replace VEC(tp_t) with
13059 std::vector<thread_info *>.
13060 * common/gdb_vecs.h (unordered_remove, ordered_remove): New.
13061
228f1508
SM
130622018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
13063
13064 * record-btrace.c (record_btrace_disable_callback): Remove.
13065 (struct scoped_btrace_disable): New.
13066 (record_btrace_open): Use scoped_btrace_disable.
13067
b2970c23
AB
130682018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13069
13070 * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for
13071 reading values from registers.
13072
fb294655
AB
130732018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13074
13075 * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz
13076 where appropriate.
13077
cab5bb9d
AB
130782018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13079
13080 * riscv-tdep.c (riscv_print_arg_location): Add header comment,
13081 change parameter type. Use GDB's print functions, and use
13082 core_addr_to_string where appropriate.
13083 (riscv_push_dummy_call): Use core_addr_to_string where
13084 appropriate, update call to riscv_print_arg_location, and reindent
13085 a few lines.
13086 (riscv_return_value): Update call to riscv_print_arg_location.
13087
dbbb1059
AB
130882018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13089 Tim Newsome <tim@sifive.com>
13090 Albert Ou <a0u@eecs.berkeley.edu>
13091 Darius Rad <darius@bluespec.com>
13092
13093 * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o
13094 (HFILES_NO_SRCDIR): Add riscv-tdep.h.
13095 (ALLDEPFILES): Add riscv-tdep.c
13096 * configure.tgt: Add riscv support.
13097 * riscv-tdep.c: New file.
13098 * riscv-tdep.h: New file.
13099 * NEWS: Mention new target.
13100 * MAINTAINERS: Add entry for riscv.
13101
5dc43913
AB
131022018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13103
13104 * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized
13105 fields within aggregates.
13106
3dea1ef7
SM
131072018-03-04 Simon Marchi <simon.marchi@polymtl.ca>
13108
13109 * record-btrace.c (btrace_print_lines): Change type of flags to
13110 gdb_disassembly_flags.
13111
7efba073
JB
131122018-03-04 John Baldwin <jhb@FreeBSD.org>
13113
13114 * fbsd-nat.c: Include "inf-ptrace.h".
13115 (USE_SIGTRAP_SIGINFO): Conditionally define.
13116 [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function.
13117 (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap".
13118 [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New
13119 function.
13120 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint):
13121 Likewise.
13122 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint):
13123 Likewise.
13124 (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set
13125 "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint",
13126 "supports_stopped_by_hw_breakpoint" target methods.
13127
386a8676
JB
131282018-03-04 John Baldwin <jhb@FreeBSD.org>
13129
13130 * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat".
13131 * fbsd-nat.c (debug_fbsd_nat): New variable.
13132 (show_fbsd_nat_debug): New function.
13133 (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled.
13134 (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command.
13135
12279366
JB
131362018-03-04 John Baldwin <jhb@FreeBSD.org>
13137
13138 * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function.
13139 * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New
13140 prototype.
13141 * x86-nat.c (x86_stopped_by_hw_breakpoint): New function.
13142 (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target
13143 method.
13144
54693cf5
SM
131452018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
13146
13147 * common/gdb_vecs.c (free_char_ptr_vec): Remove.
13148 * common/gdb_vecs.h (free_char_ptr_vec): Remove.
13149
ccb2231c
SM
131502018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
13151
13152 * charset.c (struct charset_vector): New.
13153 (charsets): Change type to charset_vector.
13154 (find_charset_names): Adjust.
13155 (add_one): Adjust.
13156 (_initialize_charset): Adjust.
13157
6fb16ce6
SM
131582018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
13159
13160 * progspace.h (struct program_space) <deleted_solibs>: Change
13161 type to std::vector<std::string>.
13162 * progspace.c (clear_program_space_solib_cache): Adjust.
13163 * breakpoint.c (print_solib_event): Adjust.
13164 (check_status_catch_solib): Adjust.
13165 * solib.c (update_solib_list): Adjust.
13166 * ui-out.h (class ui_out) <field_string>: New overload.
13167 * ui-out.c (ui_out::field_string): New overload.
13168
564b1e3f
SM
131692018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
13170
13171 * progspace.h (struct program_space): Add constructor and
13172 destructor, initialize fields.
13173 (add_program_space): Remove.
13174 * progspace.c (add_program_space): Rename to...
13175 (program_space::program_space): ... this.
13176 (release_program_space): Rename to...
13177 (program_space::~program_space): ... this.
13178 (delete_program_space): Use delete to delete program_space.
13179 (initialize_progspace): Use new to allocate program_space.
13180 * inferior.c (add_inferior_with_spaces): Likewise.
13181 (clone_inferior_command): Likewise.
13182 * infrun.c (follow_fork_inferior): Likewise.
13183 (handle_vfork_child_exec_or_exit): Likewise.
13184
e80aaf61
SM
131852018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
13186
13187 * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove.
13188 (delim_string_to_char_ptr_vec): Return std::vector of
13189 gdb::unique_xmalloc_ptr.
13190 (dirnames_to_char_ptr_vec_append): Take std::vector of
13191 gdb::unique_xmalloc_ptr.
13192 (dirnames_to_char_ptr_vec): Return std::vector of
13193 gdb::unique_xmalloc_ptr.
13194 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append):
13195 Take std::vector of gdb::unique_xmalloc_ptr, adjust the code.
13196 (delim_string_to_char_ptr_vec): Return an std::vector of
13197 gdb::unique_xmalloc_ptr, adjust the code.
13198 (dirnames_to_char_ptr_vec_append): Take an std::vector of
13199 gdb::unique_xmalloc_ptr, adjust the code.
13200 (dirnames_to_char_ptr_vec): Return an std::vector of
13201 gdb::unique_xmalloc_ptr, adjust the code.
13202 * auto-load.c (auto_load_safe_path_vec): Change type to
13203 std::vector of gdb::unique_xmalloc_ptr.
13204 (auto_load_expand_dir_vars): Return an std::vector of
13205 gdb::unique_xmalloc_ptr, adjust the code.
13206 (auto_load_safe_path_vec_update): Adjust.
13207 (filename_is_in_auto_load_safe_path_vec): Adjust.
13208 (auto_load_objfile_script_1): Adjust.
13209 * build-id.c (build_id_to_debug_bfd): Adjust.
13210 * linux-thread-db.c (thread_db_load_search): Adjust.
13211 * source.c (add_path): Adjust.
13212 (openp): Adjust.
13213 * symfile.c (find_separate_debug_file): Adjust.
13214 * utils.c (do_free_char_ptr_vec): Remove.
13215 (make_cleanup_free_char_ptr_vec): Remove.
13216
ab818ade
SDJ
132172018-03-01 Sergio Durigan Junior <sergiodj@redhat.com>
13218
13219 PR gdb/22907
13220 * common/pathstuff.c: Conditionally include "<windows.h>".
13221
e1e6f073
GS
132222018-03-01 Georg Sauthoff <mail@georg.so>
13223
13224 PR gdb/22888
13225 * gcore.in: Quote variables and switch interpreter to bash.
13226
c7b15a66
TT
132272018-03-01 Tom Tromey <tom@tromey.com>
13228
13229 * dwarf2read.c (alloc_discriminant_info): Fix default_index
13230 assertion. Add assertion for discriminant_index.
13231 (quirk_rust_enum): Use correct base type name in univariant case.
13232
0cb7c7b0
SM
132332018-03-01 Simon Marchi <simon.marchi@ericsson.com>
13234
13235 * record.c (get_call_history_modifiers): Return a
13236 record_print_flags.
13237 (cmd_record_call_history): Adjust.
13238 * record-btrace.c (record_btrace_call_history): Adjust.
13239 (record_btrace_call_history_range): Adjust.
13240 (record_btrace_call_history_from): Adjust.
13241 * target-debug.h (target_debug_print_record_print_flags): New.
13242 * target-delegates.c: Re-generate.
13243 * target.c (target_call_history): Change flags type.
13244 (target_call_history_from): Likewise.
13245 (target_call_history_range): Likewise.
13246 * target.h (struct target_ops) <target_call_history>: Likewise.
13247 (target_call_history_from): Likewise.
13248 (target_call_history_range): Likewise.
13249
25e3c82c
SDJ
132502018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
13251 Simon Marchi <simon.marchi@polymtl.ca>
13252
13253 * common/common-utils.c: Include "sys/stat.h".
13254 (is_regular_file): Move here from "source.c"; change return
13255 type to "bool".
13256 * common/common-utils.h (is_regular_file): New prototype.
13257 * common/pathstuff.c (contains_dir_separator): New function.
13258 * common/pathstuff.h (contains_dir_separator): New prototype.
13259 * source.c: Don't include "sys/stat.h".
13260 (is_regular_file): Move to "common/common-utils.c".
13261
b4987c95
SDJ
132622018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
13263
13264 * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c".
13265 (HFILES_NO_SRCDIR): Add "common/pathstuff.h".
13266 * auto-load.c: Include "common/pathstuff.h".
13267 * common/common-def.h (current_directory): Move here.
13268 * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New
13269 function.
13270 * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New
13271 prototype.
13272 * common/pathstuff.c: New file.
13273 * common/pathstuff.h: New file.
13274 * compile/compile.c: Include "common/pathstuff.h".
13275 * defs.h (current_directory): Move to "common/common-defs.h".
13276 * dwarf2read.c: Include "common/pathstuff.h".
13277 * exec.c: Likewise.
13278 * guile/scm-safe-call.c: Likewise.
13279 * linux-thread-db.c: Likewise.
13280 * main.c: Likewise.
13281 * nto-tdep.c: Likewise.
13282 * objfiles.c: Likewise.
13283 * source.c: Likewise.
13284 * symtab.c: Likewise.
13285 * utils.c: Include "common/pathstuff.h".
13286 (gdb_realpath): Move to "common/pathstuff.c".
13287 (gdb_realpath_keepfile): Likewise.
13288 (gdb_abspath): Likewise.
13289 * utils.h (gdb_realpath): Move to "common/pathstuff.h".
13290 (gdb_realpath_keepfile): Likewise.
13291 (gdb_abspath): Likewise.
13292
f169cfdc
JB
132932018-02-28 John Baldwin <jhb@FreeBSD.org>
13294
13295 * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a
13296 wildcard process pid for super_resume for kernels with a
13297 specific bug.
13298
e05cac70
PM
132992018-02-27 Phil Muldoon <pmuldoon@redhat.com>
13300
13301 * compile/compile.c (get_args): Add additional comments
13302 explaining function.
13303
55089490
TT
133042018-02-27 Simon Marchi <simon.marchi@polymtl.ca>
13305 Tom Tromey <tom@tromey.com>
13306
13307 * target.h (memory_write_request_s): Remove typedef. Don't define
13308 VEC.
13309 (target_write_memory_blocks): Change argument to std::vector.
13310 (struct memory_write_request): Add constructor.
13311 * target-memory.c (compare_block_starting_address): Return bool.
13312 Change argument types.
13313 (claim_memory): Change arguments to use std::vector.
13314 (split_regular_and_flash_blocks, blocks_to_erase)
13315 (compute_garbled_blocks): Likewise.
13316 (cleanup_request_data, cleanup_write_requests_vector): Remove.
13317 (target_write_memory_blocks): Change argument to std::vector.
13318 * symfile.c (struct load_section_data): Add constructor and
13319 destructor. Use std::vector for "requests".
13320 (struct load_progress_data): Add initializers.
13321 (load_section_callback): Update. Use "new".
13322 (clear_memory_write_data): Remove.
13323 (generic_load): Update.
13324
0c305b61
AH
133252018-02-27 Alan Hayward <alan.hayward@arm.com>
13326
13327 * arch/aarch64.h: Use common/tdesc.h.
13328
c5196c92
MR
133292018-02-26 Maciej W. Rozycki <macro@mips.com>
13330
13331 * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD
13332 architecture with a 64-bit ABI.
13333
37c33887
MR
133342018-02-26 Maciej W. Rozycki <macro@mips.com>
13335
13336 * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination
13337 ahead of target description loading.
13338
d4dd3282
TT
133392018-02-26 Tom Tromey <tom@tromey.com>
13340
13341 * stack.c (backtrace_command_1): Update.
13342 * python/python-internal.h (gdbpy_apply_frame_filter): Change type
13343 of "flags".
13344 * python/py-framefilter.c (py_print_frame)
13345 (gdbpy_apply_frame_filter): Change type of "flags".
13346 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type
13347 of "flags".
13348 (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals)
13349 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update.
13350 * extension.h (enum frame_filter_flag): Rename from
13351 frame_filter_flags.
13352 (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE.
13353 (apply_ext_lang_frame_filter): Change type of "flags".
13354 * extension.c (apply_ext_lang_frame_filter): Change type of
13355 "flags".
13356 * extension-priv.h (struct extension_language_ops)
13357 <apply_frame_filter>: Change type of "flags".
13358
6893c19a
TT
133592018-02-26 Tom Tromey <tom@tromey.com>
13360
13361 PR python/16497:
13362 * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag. Fix
13363 off-by-one in py_end computation.
13364 * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle
13365 PRINT_MORE_FRAMES.
13366 * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New
13367 constant.
13368
2ddeaf8a
TT
133692018-02-26 Tom Tromey <tom@tromey.com>
13370
13371 * dwarf2read.c (struct variant_field): New.
13372 (struct nextfield) <variant>: New field.
13373 (dwarf2_add_field): Handle DW_TAG_variant_part.
13374 (dwarf2_attach_fields_to_type): Attach a discriminant_info to a
13375 discriminated union.
13376 (read_structure_type): Handle DW_TAG_variant_part.
13377 (handle_struct_member_die): New function, extracted from
13378 process_structure_scope. Handle DW_TAG_variant.
13379 (process_structure_scope): Handle discriminated unions. Call
13380 handle_struct_member_die.
13381
c9317f21
TT
133822018-02-26 Tom Tromey <tom@tromey.com>
13383
13384 * rust-lang.h (rust_last_path_segment): Declare.
13385 * rust-lang.c (rust_last_path_segment): Now public. Change
13386 contract.
13387 (struct disr_info): Remove.
13388 (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL)
13389 (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged)
13390 (rust_get_disr_info, rust_tuple_variant_type_p): Remove.
13391 (rust_enum_p, rust_enum_variant): New function.
13392 (rust_underscore_fields): Remove "offset" parameter.
13393 (rust_print_enum): New function.
13394 (rust_val_print) <TYPE_CODE_UNION>: Remove enum code.
13395 <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate.
13396 (rust_print_struct_def): Add "for_rust_enum" parameter. Handle
13397 enums.
13398 (rust_internal_print_type): New function, from rust_print_type.
13399 Remove enum code.
13400 (rust_print_type): Call rust_internal_print_type.
13401 (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>:
13402 Update enum handling.
13403 * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field.
13404 (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum)
13405 (rust_union_quirks): New functions.
13406 (process_full_comp_unit, process_full_type_unit): Call
13407 rust_union_quirks.
13408 (process_structure_scope): Update rust_unions if necessary.
13409
7c22600a
TT
134102018-02-26 Tom Tromey <tom@tromey.com>
13411
13412 * value.h (value_union_variant): Declare.
13413 * valops.c (value_union_variant): New function.
13414 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro.
13415 (struct discriminant_info): New.
13416 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New
13417 enumerator.
13418 (struct main_type) <flag_discriminated_union>: New field.
13419
15ce8941
TT
134202018-02-26 Tom Tromey <tom@tromey.com>
13421
13422 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13423 unittests/unpack-selftests.c.
13424 * unittests/unpack-selftests.c: New file.
13425 * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases.
13426
48fbe735
YQ
134272018-02-26 Yao Qi <yao.qi@linaro.org>
13428
13429 * dwarf2read.c (struct partial_die_info) <read>: New method.
13430 (read_partial_die): Remove the declaration.
13431 (load_partial_dies): Update.
13432 (partial_die_info::partial_die_info):
13433 (read_partial_die): Change it to partial_die_info::read.
13434
52356b79
YQ
134352018-02-26 Yao Qi <yao.qi@linaro.org>
13436
13437 * dwarf2read.c (struct partial_die_info) <fixup>: New method.
13438 (fixup_partial_die): Remove declaration.
13439 (scan_partial_symbols): Update.
13440 (partial_die_parent_scope): Likewise.
13441 (partial_die_full_name): Likewise.
13442 (fixup_partial_die): Change it to partial_die_info::fixup.
13443
35cc7ed7
YQ
134442018-02-26 Yao Qi <yao.qi@linaro.org>
13445
13446 * dwarf2read.c (read_partial_die): Update the declaration.
13447 (load_partial_dies): Caller update.
13448 (read_partial_die): Remove one argument abbrev_len.
13449
6f06d47b
YQ
134502018-02-26 Yao Qi <yao.qi@linaro.org>
13451
13452 * dwarf2read.c (struct partial_die_info): Add ctor, delete
13453 assignment operator.
13454 (load_partial_dies): Use ctor and copy ctor.
13455 (read_partial_die): Update.
13456 (dwarf2_cu::find_partial_die): Use ctor.
13457
d590ff25
YQ
134582018-02-26 Yao Qi <yao.qi@linaro.org>
13459
13460 * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method.
13461 (find_partial_die_in_comp_unit): Change it to
13462 dwarf2_cu::find_partial_die.
13463 (find_partial_die): Update.
13464
fd0a254f
YQ
134652018-02-26 Yao Qi <yao.qi@linaro.org>
13466
13467 * dwarf2read.c (read_partial_die): Remove the code checking abbrev
13468 is NULL.
13469
cd9983dd
YQ
134702018-02-26 Yao Qi <yao.qi@linaro.org>
13471
13472 * dwarf2read.c (load_partial_dies): Move the location of XOBNEW.
13473
f46cd62a
AH
134742018-02-26 Alan Hayward <alan.hayward@arm.com>
13475
13476 * arch/amd64.h: Use common/tdesc.h.
13477 * arch/i386.c: Likewise.
13478 * arch/i386.h: Likewise.
13479 * arch/tic6x.c: Likewise.
13480 * arch/tdesc.h: Move file from here...
13481 * common/tdesc.h: ...to here.
13482 * features/aarch64-core.c: Regenerate.
13483 * features/aarch64-fpu.c: Regenerate.
13484 * features/i386/32bit-avx.c: Regenerate.
13485 * features/i386/32bit-avx512.c: Regenerate.
13486 * features/i386/32bit-core.c: Regenerate.
13487 * features/i386/32bit-linux.c: Regenerate.
13488 * features/i386/32bit-mpx.c: Regenerate.
13489 * features/i386/32bit-pkeys.c: Regenerate.
13490 * features/i386/32bit-sse.c: Regenerate.
13491 * features/i386/64bit-avx.c: Regenerate.
13492 * features/i386/64bit-avx512.c: Regenerate.
13493 * features/i386/64bit-core.c: Regenerate.
13494 * features/i386/64bit-linux.c: Regenerate.
13495 * features/i386/64bit-mpx.c: Regenerate.
13496 * features/i386/64bit-pkeys.c: Regenerate.
13497 * features/i386/64bit-segments.c: Regenerate.
13498 * features/i386/64bit-sse.c: Regenerate.
13499 * features/i386/x32-core.c: Regenerate.
13500 * features/tic6x-c6xp.c: Regenerate.
13501 * features/tic6x-core.c: Regenerate.
13502 * features/tic6x-gp.c: Regenerate.
13503 * target-descriptions.c: Use common/tdesc.h.
13504 * target-descriptions.h: Likewise.
13505
9b292f68
TT
135062018-02-24 Tom Tromey <tom@tromey.com>
13507
13508 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
13509 (try_thread_db_load_from_dir, thread_db_load_search): Use
13510 std::string.
13511 (info_auto_load_libthread_db_compare): Return bool. Change
13512 argument types.
13513 (info_auto_load_libthread_db): Use std::vector, std::string.
13514 Remove cleanups.
13515
281d762b
TT
135162018-02-24 Tom Tromey <tom@tromey.com>
13517
13518 * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a
13519 std::string.
13520 * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a
13521 std::string*.
13522 * gdbarch.c: Rebuild.
13523 * gdbarch.h: Rebuild.
13524 * breakpoint.c (check_fast_tracepoint_sals): Use std::string.
13525 * arch-utils.h (default_fast_tracepoint_valid_at): Update.
13526 * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a
13527 std::string*.
13528
9d8780f0
SM
135292018-02-23 Simon Marchi <simon.marchi@polymtl.ca>
13530
13531 * gdbtypes.h (sect_offset): Change type to uint64_t.
13532 (sect_offset_str): New function.
13533 * dwarf2read.c (create_addrmap_from_aranges): Use
13534 sect_offset_str.
13535 (error_check_comp_unit_head): Likewise.
13536 (create_debug_type_hash_table): Likewise.
13537 (read_cutu_die_from_dwo): Likewise.
13538 (init_cutu_and_read_dies): Likewise.
13539 (init_cutu_and_read_dies_no_follow): Likewise.
13540 (process_psymtab_comp_unit_reader): Likewise.
13541 (partial_die_parent_scope): Likewise.
13542 (peek_die_abbrev): Likewise.
13543 (process_queue): Likewise.
13544 (dwarf2_physname): Likewise.
13545 (read_namespace_alias): Likewise.
13546 (read_import_statement): Likewise.
13547 (create_dwo_cu_reader): Likewise.
13548 (create_cus_hash_table): Likewise.
13549 (lookup_dwo_cutu): Likewise.
13550 (inherit_abstract_dies): Likewise.
13551 (read_func_scope): Likewise.
13552 (read_call_site_scope): Likewise.
13553 (dwarf2_add_member_fn): Likewise.
13554 (read_common_block): Likewise.
13555 (read_module_type): Likewise.
13556 (read_typedef): Likewise.
13557 (read_subrange_type): Likewise.
13558 (load_partial_dies): Likewise.
13559 (read_partial_die): Likewise.
13560 (find_partial_die): Likewise.
13561 (read_str_index): Likewise.
13562 (dwarf2_string_attr): Likewise.
13563 (build_error_marker_type): Likewise.
13564 (lookup_die_type): Likewise.
13565 (dump_die_shallow): Likewise.
13566 (follow_die_ref): Likewise.
13567 (dwarf2_fetch_die_loc_sect_off): Likewise.
13568 (dwarf2_fetch_constant_bytes): Likewise.
13569 (follow_die_sig): Likewise.
13570 (get_signatured_type): Likewise.
13571 (get_DW_AT_signature_type): Likewise.
13572 (dwarf2_find_containing_comp_unit): Likewise.
13573 (set_die_type): Likewise.
13574
8ec57239
JB
135752018-02-21 John Baldwin <jhb@FreeBSD.org>
13576
13577 * arch/aarch64.c: Include "common-defs.h".
13578 * arch/amd64.c: Likewise.
13579 * arch/i386.c: Likewise.
13580
3eac2b65
TT
135812018-02-21 Tom Tromey <tom@tromey.com>
13582
13583 * value.h: (extract_field_op): Update.
13584 * eval.c (extract_field_op): Return a const char *.
13585 * expression.h (parse_expression_for_completion): Update.
13586 * completer.c (complete_expression): Update.
13587 (add_struct_fields): Make fieldname const.
13588 * parse.c (expout_completion_name): Now a unique_xmalloc_ptr.
13589 (mark_completion_tag, parse_exp_in_context_1): Update.
13590 (parse_expression_for_completion): Change "name" to
13591 unique_xmalloc_ptr*.
13592
6ccb583f
TT
135932018-02-21 Tom Tromey <tom@tromey.com>
13594
13595 * infcall.c (call_function_by_hand_dummy): Use std::vector.
13596
c113ed0c
YQ
135972018-02-21 Yao Qi <yao.qi@linaro.org>
13598
13599 * avr-tdep.c (avr_read_pc): Change parameter type to
13600 readable_regcache.
13601 * gdbarch.sh (read_pc): Likewise.
13602 * gdbarch.c: Re-generated.
13603 * gdbarch.h: Re-generated.
13604 * hppa-tdep.c (hppa_read_pc): Change parameter type to
13605 readable_regcache.
13606 * ia64-tdep.c (ia64_read_pc): Likewise.
13607 * mips-tdep.c (mips_read_pc): Likewise.
13608 * spu-tdep.c (spu_read_pc): Likewise.
13609
4c74fe6b
YQ
136102018-02-21 Yao Qi <yao.qi@linaro.org>
13611
13612 * Makefile.in (COMMON_SFILES): Add regcache-dump.c
13613 * regcache-dump.c: New file.
13614 * regcache.c: Move register_dump to regcache-dump.c.
13615 (maintenance_print_registers): Likewise.
13616 (maintenance_print_raw_registers): Likewise.
13617 (maintenance_print_cooked_registers): Likewise.
13618 (maintenance_print_register_groups): Likewise.
13619 (maintenance_print_remote_registers): Likewise.
13620 (_initialize_regcache): Likewise.
13621 * regcache.h (register_dump): Moved from regcache.c.
13622
796bb026
YQ
136232018-02-21 Yao Qi <yao.qi@linaro.org>
13624
13625 * regcache.c (regcache::regcache): Update.
13626 (regcache::invalidate): Move it to detached_regcache::invalidate.
13627 (get_thread_arch_aspace_regcache): Update.
13628 (regcache::raw_update): Update.
13629 (regcache::cooked_read): Remove some code.
13630 (regcache::cooked_read_value): Likewise.
13631 (regcache::raw_write): Remove assert on m_readonly_p.
13632 (regcache::raw_supply_integer): Move it to
13633 detached_regcache::raw_supply_integer.
13634 (regcache::raw_supply_zeroed): Likewise.
13635 * regcache.h (detached_regcache) <raw_supply_integer>: New
13636 declaration.
13637 <raw_supply_zeroed, invalidate>: Likewise.
13638 (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed.
13639 <invalidate>: Likewise.
13640 <m_readonly_p>: Removed.
13641
215c69dc
YQ
136422018-02-21 Yao Qi <yao.qi@linaro.org>
13643
13644 * infcmd.c (get_return_value): Let stop_regs point to
13645 get_current_regcache.
13646 * regcache.c (regcache::regcache): Remove.
13647 (register_dump_reg_buffer): New class.
13648 (regcache_print): Adjust.
13649 * regcache.h (regcache): Remove constructors.
13650
f3384e66
YQ
136512018-02-21 Yao Qi <yao.qi@linaro.org>
13652
13653 * regcache.c (class register_dump): New class.
13654 (register_dump_regcache, register_dump_none): New class.
13655 (register_dump_remote, register_dump_groups): New class.
13656 (regcache_print): Update.
13657 * regcache.h (regcache_dump_what): Move it to regcache.c.
13658 (regcache) <dump>: Remove.
13659
c8ec2f33
YQ
136602018-02-21 Yao Qi <yao.qi@linaro.org>
13661
13662 * jit.c (struct jit_unwind_private) <regcache>: Change its type to
13663 reg_buffer_rw *.
13664 (jit_unwind_reg_set_impl): Call raw_supply.
13665 (jit_frame_sniffer): Use reg_buffer_rw.
13666 * record-full.c (record_full_core_regbuf): Change its type.
13667 (record_full_core_open_1): Use reg_buffer_rw.
13668 (record_full_close): Likewise.
13669 (record_full_core_fetch_registers): Use regcache->raw_supply.
13670 (record_full_core_store_registers): Likewise.
13671 * regcache.c (regcache::get_register_status): Move it to
13672 reg_buffer.
13673 (regcache_raw_set_cached_value): Remove.
13674 (regcache::raw_set_cached_value): Remove.
13675 (regcache::raw_write): Call raw_supply.
13676 (regcache::raw_supply): Move it to reg_buffer_rw.
13677 * regcache.h (regcache_raw_set_cached_value): Remove.
13678 (reg_buffer_rw): New class.
13679
daf6667d
YQ
136802018-02-21 Yao Qi <yao.qi@linaro.org>
13681
13682 * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use
13683 readonly_detached_regcache.
13684 (dummy_frame_prev_register): Use regcache->cooked_read.
13685 * frame.c (frame_save_as_regcache): Change return type.
13686 (frame_pop): Update.
13687 * frame.h (frame_save_as_regcache): Update declaration.
13688 * inferior.h (get_infcall_suspend_state_regcache): Update
13689 declaration.
13690 * infrun.c (infcall_suspend_state) <registers>: use
13691 readonly_detached_regcache.
13692 (save_infcall_suspend_state): Don't use regcache_dup.
13693 (get_infcall_suspend_state_regcache): Change return type.
13694 * linux-fork.c (struct fork_info) <savedregs>: Change to
13695 readonly_detached_regcache.
13696 <pc>: New field.
13697 (fork_save_infrun_state): Don't use regcache_dup.
13698 (info_checkpoints_command): Adjust.
13699 * mi/mi-main.c (register_changed_p): Update declaration.
13700 (mi_cmd_data_list_changed_registers): Use
13701 readonly_detached_regcache.
13702 (register_changed_p): Change parameter type to
13703 readonly_detached_regcache.
13704 * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use
13705 readonly_detached_regcache.
13706 (ppu2spu_sniffer): Construct a new readonly_detached_regcache.
13707 * regcache.c (readonly_detached_regcache::readonly_detached_regcache):
13708 New.
13709 (regcache::save): Move it to reg_buffer.
13710 (regcache::restore): Change parameter type.
13711 (regcache_dup): Remove.
13712 * regcache.h (reg_buffer) <save>: New method.
13713 (readonly_detached_regcache): New class.
13714 * spu-tdep.c (spu2ppu_cache) <regcache>: Use
13715 readonly_detached_regcache.
13716 (spu2ppu_sniffer): Construct a new readonly_detached_regcache.
13717
fc5b8736
YQ
137182018-02-21 Yao Qi <yao.qi@linaro.org>
13719
13720 * frame.c (frame_save_as_regcache): Use regcache method save.
13721 (frame_pop): Use regcache method restore.
13722 * infrun.c (restore_infcall_suspend_state): Likewise.
13723 * linux-fork.c (fork_load_infrun_state): Likewise.
13724 * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method
13725 save.
13726 * regcache.c (regcache_save): Remove.
13727 (regcache::restore): More asserts.
13728 (regcache_cpy): Remove.
13729 * regcache.h (regcache_save): Remove the declaration.
13730 (regcache::restore): Move from private to public.
13731 Remove the friend declaration of regcache_cpy.
13732 (regcache_cpy): Remove declaration.
13733
849d0ba8
YQ
137342018-02-21 Yao Qi <yao.qi@linaro.org>
13735
13736 * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change
13737 parameter type to 'readable_regcache *'.
13738 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
13739 * arm-tdep.c (arm_neon_quad_read): Likewise.
13740 (arm_pseudo_read): Likewise.
13741 * avr-tdep.c (avr_pseudo_register_read): Likewise.
13742 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
13743 * frv-tdep.c (frv_pseudo_register_read): Likewise.
13744 * gdbarch.c: Re-generated.
13745 * gdbarch.h: Re-generated.
13746 * gdbarch.sh (pseudo_register_read): Change parameter type to
13747 'readable_regcache *'.
13748 (pseudo_register_read_value): Likewise.
13749 * h8300-tdep.c (pseudo_from_raw_register): Likewise.
13750 (h8300_pseudo_register_read): Likewise.
13751 * hppa-tdep.c (hppa_pseudo_register_read): Likewise.
13752 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
13753 (i386_pseudo_register_read_into_value): Likewise.
13754 (i386_pseudo_register_read_value): Likewise.
13755 * i386-tdep.h (i386_pseudo_register_read_into_value): Update
13756 declaration.
13757 * ia64-tdep.c (ia64_pseudo_register_read): Likewise.
13758 * m32c-tdep.c (m32c_raw_read): Likewise.
13759 (m32c_read_flg): Likewise.
13760 (m32c_banked_register): Likewise.
13761 (m32c_banked_read): Likewise.
13762 (m32c_sb_read): Likewise.
13763 (m32c_part_read): Likewise.
13764 (m32c_cat_read): Likewise.
13765 (m32c_r3r2r1r0_read): Likewise.
13766 (m32c_pseudo_register_read): Likewise.
13767 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
13768 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
13769 (mep_pseudo_cr64_read): Likewise.
13770 (mep_pseudo_register_read): Likewise.
13771 * mips-tdep.c (mips_pseudo_register_read): Likewise.
13772 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
13773 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
13774 * regcache.c (regcache::raw_read): Move it to readable_regcache.
13775 (regcache::cooked_read): Likewise.
13776 (regcache::cooked_read_value): Likewise.
13777 (regcache_cooked_read_signed):
13778 (regcache::cooked_read): Likewise.
13779 * regcache.h (readable_regcache): New class.
13780 (regcache): Inherit readable_regcache. Move some methods to
13781 readable_regcache.
13782 * rl78-tdep.c (rl78_pseudo_register_read): Change
13783 parameter type to 'readable_regcache *'.
13784 * rs6000-tdep.c (do_regcache_raw_read): Remove.
13785 (e500_pseudo_register_read): Change parameter type to
13786 'readable_regcache *'.
13787 (dfp_pseudo_register_read): Likewise.
13788 (vsx_pseudo_register_read): Likewise.
13789 (efpr_pseudo_register_read): Likewise.
13790 * s390-tdep.c (s390_pseudo_register_read): Likewise.
13791 * sh-tdep.c (sh_pseudo_register_read): Likewise.
13792 * sh64-tdep.c (pseudo_register_read_portions): Likewise.
13793 (sh64_pseudo_register_read): Likewise.
13794 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
13795 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
13796 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
13797 (spu_pseudo_register_read): Likewise.
13798 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
13799 (xtensa_pseudo_register_read): Likewise.
13800
31716595
YQ
138012018-02-21 Yao Qi <yao.qi@linaro.org>
13802
13803 * regcache.c (regcache::regcache): Call reg_buffer ctor.
13804 (regcache::arch): Move it to reg_buffer::arch.
13805 (regcache::register_buffer): Likewise.
13806 (regcache::assert_regnum): Likewise.
13807 (regcache::num_raw_registers): Likewise.
13808 * regcache.h (reg_buffer): New class.
13809 (regcache): Inherit reg_buffer.
13810
7104e59b
SM
138112018-02-20 Simon Marchi <simon.marchi@ericsson.com>
13812
13813 * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
13814 gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF.
13815
2d8adcbd
MM
138162018-02-20 Markus Metzger <markus.t.metzger@intel.com>
13817
13818 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp.
13819
b5884fa7
AH
138202018-02-19 Alan Hayward <alan.hayward@arm.com>
13821
13822 * Makefile.in: (COMMON_SFILES): Add common/*.c files.
13823 (SFILES): Remove common/*.c files.
13824 (COMMON_OBS): Remove some *.o files built from common/*.c files.
13825 * common/common.host: Add common reference.
13826 * configure.ac: Likewise.
13827 * configure: Regenerate.
13828
fd90ace4
YQ
138292018-02-16 Yao Qi <yao.qi@linaro.org>
13830
13831 * block.c (block_namespace_info): Inherit allocate_on_obstack.
13832 (block_initialize_namespace): Use new.
13833 * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack.
13834 (dwarf2_free_objfile): Use delete.
13835 * gdbtypes.c (type_pair): Inherit allocate_on_obstack.
13836 (copy_type_recursive): Use new.
13837 * gdb_obstack.h (allocate_on_obstack): New.
13838
85046ae2
YQ
138392018-02-15 Yao Qi <yao.qi@linaro.org>
13840
13841 PR gdb/22849
13842 * inferior.c (exit_inferior_1): Reset inf->control.
13843
355c559b
JB
138442018-02-15 Joel Brobecker <brobecker@adacore.com>
13845
13846 * ada-lang.c (ada_to_fixed_value_create): Delete advance
13847 declaration.
13848
980548fd
PA
138492018-02-14 Pedro Alves <palves@redhat.com>
13850
13851 * frame-unwind.c (frame_unwind_try_unwinder): Always call
13852 frame_cleanup_after_sniffer on exception.
13853
692d6f97
TT
138542018-02-14 Tom Tromey <tom@tromey.com>
13855
13856 * solist.h (struct target_so_ops) <bfd_open>: Make pathname
13857 const.
13858 (solib_bfd_open): Make pathname const.
13859 * solib.c (solib_bfd_open): Make pathname const.
13860 * solib-spu.c (spu_bfd_fopen): Make name const.
13861 (spu_bfd_open): Make pathname const.
13862 * solib-darwin.c (darwin_bfd_open): Make pathname const.
13863 * solib-aix.c (solib_aix_bfd_open): Make pathname const.
13864
e0cc99a6
TT
138652018-02-14 Tom Tromey <tom@tromey.com>
13866
13867 * symfile.c (symfile_bfd_open): Update.
13868 * source.h (openp, source_full_path_of, find_and_open_source):
13869 Change argument type to unique_xmalloc_ptr.
13870 * source.c (openp): Take a unique_xmalloc_ptr.
13871 (source_full_path_of, find_and_open_source): Likewise.
13872 (open_source_file, symtab_to_fullname): Update.
13873 * solist.h (struct target_so_ops) <find_and_open_solib>: Take a
13874 unique_xmalloc_ptr.
13875 * solib.c (solib_find_1): Use unique_xmalloc_ptr.
13876 (exec_file_find): Update.
13877 * psymtab.c (psymtab_to_fullname): Update.
13878 * nto-tdep.h (nto_find_and_open_solib): Update.
13879 * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a
13880 unique_xmalloc_ptr.
13881 * exec.c (exec_file_attach): Update.
13882 * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr.
13883 * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr.
13884
b46a8d7c
TT
138852018-02-14 Tom Tromey <tom@tromey.com>
13886
13887 * solib.c: Include source.h.
13888 * nto-tdep.c: Include source.h.
13889 * mi/mi-cmd-env.c: Include source.h.
13890 * infcmd.c: Include source.h.
13891 * exec.c: Include source.h.
13892 * defs.h (enum openp_flag, openp, source_full_path_of, mod_path)
13893 (add_path, directory_switch, source_path, init_source_path): Move
13894 declarations...
13895 * source.h (enum openp_flag, openp, source_full_path_of, mod_path)
13896 (add_path, directory_switch, source_path, init_source_path):
13897 ...here.
13898
797bc1cb
TT
138992018-02-14 Tom Tromey <tom@tromey.com>
13900
13901 * solist.h (exec_file_find, solib_find): Return
13902 unique_xmalloc_ptr.
13903 (solib_bfd_fopen): Take a const char *.
13904 * solib.c (solib_find_1): Return unique_xmalloc_ptr.
13905 (exec_file_find, solib_find): Likewise.
13906 (solib_bfd_fopen): Do not take ownership of "pathname".
13907 (solib_bfd_open): Use unique_xmalloc_ptr.
13908 * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr.
13909 * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr.
13910 * infrun.c (follow_exec): Use unique_xmalloc_ptr.
13911 * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr.
13912
f98b2e33
JB
139132018-02-14 Joel Brobecker <brobecker@adacore.com>
13914
13915 * ada-lang.c (name_match_type_from_name): Remove reference to
13916 ada_name_for_lookup in function's documentation.
13917 * ada-lang.h (ada_name_for_lookup): Delete declaration.
13918
24b9144d
SM
139192018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
13920
13921 * defs.h (enum openp_flags): New enum.
13922 (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH):
13923 Move to enum openp_flags.
13924 (openp_flags): New enum flags.
13925 (openp): Change parameter type to openp_flags.
13926 * source.c (openp): Change parameter type to openp_flags.
13927 * cli/cli-cmds.c (find_and_open_script): Use openp_flags.
13928 * dwarf2read.c (try_open_dwop_file): Use openp_flags.
13929
387cd15b
SM
139302018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
13931
13932 * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show
13933 per-command.
13934
b303c6f6
AB
139352018-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
13936
13937 * dwarf2read.c (dwarf2_release_queue): Delete function, move body
13938 into...
13939 (class dwarf2_queue_guard): ...the destructor of this new class.
13940 (dw2_do_instantiate_symtab): Create instance of the new class
13941 dwarf2_queue_guard, remove cleanup.
13942
9c3630e9
TT
139432018-02-09 Tom Tromey <tom@tromey.com>
13944
13945 * source.c (find_source_lines): Don't reference past the end of
13946 the vector.
13947
c4e12631
MM
139482018-02-09 Markus Metzger <markus.t.metzger@intel.com>
13949
13950 * remote.c (remote_btrace_maybe_reopen): Change error message.
13951 * btrace.c (btrace_enable): Likewise.
13952 (parse_xml_btrace): Likewise.
13953 (parse_xml_btrace_conf): Likewise.
13954
88711fbf
MM
139552018-02-09 Markus Metzger <markus.t.metzger@intel.com>
13956
13957 * nat/linux-btrace.c (diagnose_perf_event_open_fail): New.
13958 (linux_enable_pt, linux_enable_bts): Call
13959 diagnose_perf_event_open_fail.
13960
17ad2a4f
MM
139612018-02-09 Markus Metzger <markus.t.metzger@intel.com>
13962
13963 * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message.
13964 Remove parameter and change return type. Update callers. Move it.
13965 (linux_enable_bts, linux_enable_pt): Improve error message.
13966 (linux_enable_pt): Remove zero buffer size check.
13967 (linux_enable_btrace): Improve error messages. Remove NULL return
13968 check.
13969
de6242d3
MM
139702018-02-09 Markus Metzger <markus.t.metzger@intel.com>
13971
13972 * btrace.c (btrace_enable): Remove target_supports_btrace call.
13973 * nat/linux-btrace.c (perf_event_pt_event_type): Move.
13974 (kernel_supports_bts, kernel_supports_pt, linux_supports_bts)
13975 (linux_supports_pt, linux_supports_btrace): Remove.
13976 (linux_enable_bts): Call cpu_supports_bts.
13977 * nat/linux-btrace.h (linux_supports_btrace): Remove.
13978 * remote.c (remote_supports_btrace): Remove.
13979 (init_remote_ops): Remove remote_supports_btrace.
13980 * target-delegates.c: Regenerated.
13981 * target.c (target_supports_btrace): Remove.
13982 * target.h (target_ops) <to_supports_btrace>: Remove
13983 (target_supports_btrace): Remove.
13984 * x86-linux-nat.c (x86_linux_create_target): Remove
13985 linux_supports_btrace.
13986
9ee23a85
MM
139872018-02-09 Markus Metzger <markus.t.metzger@intel.com>
13988
13989 * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling
13990 btrace failed.
13991 * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling
13992 exception and use message in own exception.
13993
5c3284c1
MM
139942018-02-09 Markus Metzger <markus.t.metzger@intel.com>
13995
13996 * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h.
13997 (perf_event_pt_event_type): Use gdb_file_up.
13998 (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr,
13999 scoped_fd, and scoped_mmap.
14000
84696f37
MM
140012018-02-09 Markus Metzger <markus.t.metzger@intel.com>
14002
14003 * common/scoped_mmap.h: New.
14004 * unittests/scoped_mmap-selftest.c: New.
14005 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
14006 unittests/scoped_mmap-selftest.c.
14007
ea4a0888
MM
140082018-02-09 Markus Metzger <markus.t.metzger@intel.com>
14009
14010 * common/scoped_fd.h: New.
14011 * unittests/scoped_fd-selftest.c: New.
14012 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
14013 unittests/scoped_fd-selftest.c.
14014
869e8290
TT
140152018-02-09 Tom Tromey <tom@tromey.com>
14016
14017 * auto-load.c (auto_load_section_scripts): Use
14018 gdb::unique_xmalloc_ptr.
14019
a37a2ae7
TT
140202018-02-09 Tom Tromey <tom@tromey.com>
14021
14022 * auto-load.c (execute_script_contents): Use std::string.
14023
4e725347
JB
140242018-02-09 Joel Brobecker <brobecker@adacore.com>
14025
14026 * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new
14027 Python function, rather than a new command.
14028
9a897d43
TT
140292018-02-08 Tom Tromey <tom@tromey.com>
14030
14031 * solib.c (solib_find_1): Use std::string.
14032 (solib_bfd_fopen): Use unique_xmalloc_ptr.
14033
58ef3771
TT
140342018-02-08 Tom Tromey <tom@tromey.com>
14035
14036 * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr.
14037
a9abc434
TT
140382018-02-08 Tom Tromey <tom@tromey.com>
14039
14040 * source.c (find_source_lines): Use gdb::def_vector.
14041
84f27c6f
TT
140422018-02-08 Tom Tromey <tom@tromey.com>
14043
14044 * macrocmd.c (struct temporary_macro_definition): New.
14045 (macro_define_command): Use temporary_macro_definition. Remove
14046 cleanups.
14047 (free_macro_definition_ptr): Remove.
14048
0354904b
TT
140492018-02-08 Tom Tromey <tom@tromey.com>
14050
14051 * macroexp.c (maybe_expand): Use std::string.
14052
1739cf24
TT
140532018-02-08 Tom Tromey <tom@tromey.com>
14054
14055 * macroexp.c (struct macro_buffer): Add initializers for some
14056 members.
14057 (init_buffer, init_shared_buffer, free_buffer)
14058 (free_buffer_return_text): Remove.
14059 (macro_buffer): New constructors.
14060 (~macro_buffer): New destructor.
14061 (macro_buffer::set_shared): New method.
14062 (macro_buffer::resize_buffer, macro_buffer::appendc)
14063 (macro_buffer::appendmem): Now methods, not free functions.
14064 (set_token, append_tokens_without_splicing, stringify)
14065 (macro_stringify): Update.
14066 (gather_arguments): Change return type. Remove argc_p argument,
14067 add args_ptr argument. Use std::vector.
14068 (substitute_args): Remove argc argument. Accept std::vector.
14069 (expand): Update. Use std::vector.
14070 (scan, macro_expand, macro_expand_next): Update.
14071
f6c2623e
TT
140722018-02-08 Tom Tromey <tom@tromey.com>
14073
14074 * symtab.c (default_collect_symbol_completion_matches_break_on):
14075 Use unique_xmalloc_ptr.
14076 * macroscope.h: (sal_macro_scope, user_macro_scope)
14077 (default_macro_scope): Return unique_xmalloc_ptr.
14078 * macroscope.c (sal_macro_scope, user_macro_scope)
14079 (default_macro_scope): Return unique_xmalloc_ptr.
14080 * macroexp.h (macro_expand, macro_expand_once): Return
14081 unique_xmalloc_ptr.
14082 * macroexp.c (macro_expand, macro_expand_once): Return
14083 unique_xmalloc_ptr.
14084 * macrocmd.c (macro_expand_command, macro_expand_once_command)
14085 (info_macro_command, info_macros_command): Use
14086 unique_xmalloc_ptr.
14087 * compile/compile-c-support.c (write_macro_definitions): Use
14088 unique_xmalloc_ptr.
14089 * c-exp.y (c_parse): Use unique_xmalloc_ptr.
14090
c2e0e465
SM
140912018-02-07 Simon Marchi <simon.marchi@ericsson.com>
14092
14093 * value.c (value_static_field): Assign field type instead of
14094 containing type when returning an optimized out value.
14095
3f8c94b4
YQ
140962018-02-06 Yao Qi <yao.qi@linaro.org>
14097
14098 * ft32-tdep.c (ft32_read_pc): Remove.
14099 (ft32_write_pc): Remove.
14100 (ft32_gdbarch_init): Update.
14101 * m32r-tdep.c (m32r_read_pc): Remove.
14102 (m32r_gdbarch_init): Update.
14103 * mep-tdep.c (mep_read_pc): Remove.
14104 (mep_gdbarch_init): Update.
14105 * microblaze-tdep.c (microblaze_write_pc): Remove.
14106 (microblaze_gdbarch_init): Update.
14107 * mn10300-tdep.c (mn10300_read_pc): Remove.
14108 (mn10300_write_pc): Remove.
14109 (mn10300_gdbarch_init): Update.
14110 * moxie-tdep.c (moxie_read_pc): Remove.
14111 (moxie_write_pc): Remove.
14112 (moxie_gdbarch_init): Update.
14113
bca65a23
YQ
141142018-02-06 Yao Qi <yao.qi@linaro.org>
14115
14116 * expprint.c (print_subexp_standard): Handle
14117 OP_F77_UNDETERMINED_ARGLIST.
14118 (dump_subexp_body_standard): Likewise.
14119
583e3f90 141202018-02-05 Alan Hayward <alan.hayward@arm.com>
b8df6ca7 14121
583e3f90
YQ
14122 * target-descriptions.c (tdesc_element_visitor) Add empty
14123 implementations.
b8df6ca7
AH
14124 (tdesc_type): Move make_gdb_type from here.
14125 (tdesc_type_builtin): Likewise.
14126 (tdesc_type_vector): Likewise.
14127 (tdesc_type_with_fields): Move make_gdb_type_ functions from here.
14128 (make_gdb_type_struct): Move from tdesc_type_with_fields.
14129 (make_gdb_type_union): Likewise.
14130 (make_gdb_type_flags): Likewise.
14131 (make_gdb_type_enum): Likewise.
14132 (make_gdb_type): New function.
14133 (tdesc_register_type): Use static make_gdb_type.
14134
e813d34a
RK
141352018-02-05 Ruslan Kabatsayev <b7.10110111@gmail.com>
14136
14137 * infcmd.c (default_print_one_register_info): Align natural-format
14138 column values consistently one under another.
14139 (pad_to_column): New function.
14140
0eb876f5
JB
141412018-02-05 Joel Brobecker <brobecker@adacore.com>
14142
14143 * dwarf2read.c (dwarf2_physname): Move commment.
14144
0625771b
LS
141452018-02-01 Leszek Swirski <leszeks@google.com>
14146
14147 * varobj.c (varobj_formatted_print_options): Allow recursive
14148 pretty printing if pretty printing is enabled.
14149
59498c30
LS
141502018-02-01 Leszek Swirski <leszeks@google.com>
14151
14152 * c-exp.y (lex_one_token, classify_name, yylex): Don't classify
14153 names after a structop as a filename.
14154
2d9e6acb
YQ
141552018-02-01 Yao Qi <yao.qi@linaro.org>
14156
14157 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it.
14158 (arm_record_coproc_data_proc): Likewise.
14159
df95a9cf
YQ
141602018-02-01 Yao Qi <yao.qi@linaro.org>
14161
14162 * arm-tdep.c (arm_record_extension_space): Change ret to signed.
14163
07e5f5cf
NP
141642018-01-31 Nikola Prica <nikola.prica@rt-rk.com>
14165
14166 * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and
14167 assign shifted lr_reg to fdata->lr_register when lr_reg is set.
14168
3045b475
PA
141692018-01-31 Pedro Alves <palves@redhat.com>
14170
14171 * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter.
14172 * inflow.c (child_terminal_save_inferior): Wrap reference to
14173 tcgetpgrp in HAVE_TERMIOS_H.
14174 (child_interrupt, child_pass_ctrlc): Wrap references to signal in
14175 _WIN32.
14176 * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and
14177 always iterate over all inferiors.
14178 (gdbsim_cntrl_c): Adjust.
14179 * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter.
14180
929b5ad4
JB
141812018-01-31 Joel Brobecker <brobecker@adacore.com>
14182
14183 * gdbtypes.c (lookup_array_range_type): Make sure the array's
14184 index type is objfile-owned if the element type is as well.
14185
29236ca2
JB
141862018-01-31 Joel Brobecker <brobecker@adacore.com>
14187
14188 GDB 8.1 released.
14189
c81e8879
PR
141902018-01-30 Philipp Rudo <prudo@linux.vnet.ibm.com>
14191
14192 * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and
14193 "features/s390x-linux64.c".
14194 (_initialize_s390_linux_tdep): Remove initialization of tdescs
14195 s390_linux32 and s390x_linux64.
14196 (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set
14197 default tdesc.
14198 * s390-tdep.c: Include "features/s390-linux32.c" and
14199 "features/s390x-linux64.c".
14200 (s390_tdesc_valid): Add check for tdesc_has_registers.
14201 (s390_gdbarch_init): Make sure there is always a valid tdesc.
14202 (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and
14203 tdesc_s390x_linux64.
14204 * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and
14205 tdesc_s390x_linux64 to...
14206 * s390-tdep.h: ...here.
14207
e671cd59
PA
142082018-01-30 Pedro Alves <palves@redhat.com>
14209
14210 PR gdb/13211
14211 * config.in, configure: Regenerate.
14212 * configure.ac: Check for getpgid.
14213 * go32-nat.c (go32_pass_ctrlc): New.
14214 (go32_target): Install it.
14215 * inf-child.c (inf_child_target): Install
14216 child_terminal_save_inferior, child_pass_ctrlc and
14217 child_interrupt.
14218 * inf-ptrace.c (inf_ptrace_interrupt): Delete.
14219 (inf_ptrace_target): No longer install it.
14220 * infcmd.c (interrupt_target_1): Adjust.
14221 * inferior.h (child_terminal_save_inferior, child_pass_ctrlc)
14222 (child_interrupt): Declare.
14223 (inferior::terminal_state): New.
14224 * inflow.c (struct terminal_info): Update comments.
14225 (inferior_process_group): Delete.
14226 (terminal_is_ours): Delete.
14227 (gdb_tty_state): New.
14228 (child_terminal_init): Adjust.
14229 (is_gdb_terminal, sharing_input_terminal_1)
14230 (sharing_input_terminal): New functions.
14231 (child_terminal_inferior): Adjust. Use sharing_input_terminal.
14232 Set the process's actual process group in the foreground if
14233 possible. Handle is_ours_for_output/is_ours distinction. Don't
14234 mark terminal as the inferior's if not sharing GDB's terminal.
14235 Don't check attach_flag.
14236 (child_terminal_ours_for_output, child_terminal_ours): Adjust to
14237 pass down a target_terminal_state.
14238 (child_terminal_save_inferior): New, factored out from ...
14239 (child_terminal_ours_1): ... this. Handle
14240 target_terminal_state::is_ours_for_output.
14241 (child_interrupt, child_pass_ctrlc): New.
14242 (inflow_inferior_exit): Clear the inferior's terminal_state.
14243 (copy_terminal_info): Copy the inferior's terminal state.
14244 (_initialize_inflow): Remove reference to terminal_is_ours.
14245 * inflow.h (inferior_process_group): Delete.
14246 * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust.
14247 * procfs.c (procfs_target): Don't install procfs_interrupt.
14248 (procfs_interrupt): Delete.
14249 * remote.c (remote_serial_quit_handler): Adjust.
14250 (remote_interrupt): Remove ptid parameter. Adjust.
14251 * target-delegates.c: Regenerate.
14252 * target.c: Include "terminal.h".
14253 (target_terminal::terminal_state): Rename to ...
14254 (target_terminal::m_terminal_state): ... this.
14255 (target_terminal::init): Adjust.
14256 (target_terminal::inferior): Adjust to per-inferior
14257 terminal_state.
14258 (target_terminal::restore_inferior, target_terminal_is_ours_kind): New.
14259 (target_terminal::ours, target_terminal::ours_for_output): Use
14260 target_terminal_is_ours_kind.
14261 (target_interrupt): Remove ptid parameter. Adjust.
14262 (default_target_pass_ctrlc): Adjust.
14263 * target.h (target_ops::to_terminal_save_inferior): New field.
14264 (target_ops::to_interrupt): Remove ptid_t parameter.
14265 (target_interrupt): Remove ptid_t parameter. Update comment.
14266 (target_pass_ctrlc): Update comment.
14267 * target/target.h (target_terminal_state): New scoped enum,
14268 factored out of ...
14269 (target_terminal::terminal_state): ... here.
14270 (target_terminal::inferior): Update comments.
14271 (target_terminal::restore_inferior): New.
14272 (target_terminal::is_inferior, target_terminal::is_ours)
14273 (target_terminal::is_ours_for_output): Adjust.
14274 (target_terminal::scoped_restore_terminal_state): Adjust to
14275 rename, and call restore_inferior() instead of inferior().
14276 (target_terminal::scoped_restore_terminal_state::m_state): Change
14277 type.
14278 (target_terminal::terminal_state): Rename to ...
14279 (target_terminal::m_terminal_state): ... this and change type.
14280
9c3a5d93
PA
142812018-01-30 Pedro Alves <palves@redhat.com>
14282
14283 * linux-nat.c (wait_for_signal): New function.
14284 (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend
14285 directly.
14286 (async_terminal_is_ours)
14287 (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete.
14288 (linux_nat_add_target): Don't override
14289 to_terminal_inferior/to_terminal_ours.
14290
69ab5edb
SDJ
142912018-01-29 Sergio Durigan Junior <sergiodj@redhat.com>
14292
14293 * remote.c (remote_follow_fork): Don't call "detach_inferior".
14294
fc8e7e75
SM
142952018-01-28 Simon Marchi <simon.marchi@ericsson.com>
14296
14297 * dwarf2read.c (free_dwo_files): Add forward-declaration.
14298 (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from
14299 dwarf2_per_objfile_free here.
14300 (dwarf2_per_objfile_free): Remove.
14301 (_initialize_dwarf2_read): Don't register
14302 dwarf2_per_objfile_free as a registry cleanup.
14303
b2a426e2
EZ
143042018-01-27 Eli Zaretskii <eliz@gnu.org>
14305
14306 Avoid compilation errors in MinGW native builds
14307
14308 The error is triggered by including python-internal.h, and the
14309 error message is:
14310
14311 In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0,
14312 from build-gnulib/import/math.h:27,
14313 from d:/usr/Python26/include/pyport.h:235,
14314 from d:/usr/Python26/include/Python.h:58,
14315 from python/python-internal.h:94,
14316 from python/py-arch.c:24:
14317 d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared
14318 using ::hypot;
14319 ^~~~~
14320
14321 This happens because Python headers define 'hypot' to expand t
14322 '_hypot' in the Windows builds.
14323 * python/python-internal.h (_hypot) [__MINGW32__]: Define back to
14324 'hypoth'. This avoids a compilation error.
14325
0bdd8eac
AH
143262018-01-26 Alan Hayward <alan.hayward@arm.com>
14327
14328 * MAINTAINERS (Write After Approval): Fix ordering.
14329
56ae9dc3
AH
143302018-01-26 Alan Hayward <alan.hayward@arm.com>
14331
14332 * MAINTAINERS (Write After Approval): Add Alan Hayward.
14333
7433498b
AM
143342018-01-26 Alan Modra <amodra@gmail.com>
14335
14336 * ppc-linux-tdep.c (powerpc32_plt_stub): Make const.
14337 (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so.
14338 Remove nop. Make const. Comment.
14339 (powerpc32_plt_stub_so_2): New.
14340 (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN.
14341 Correct count. Update uses.
14342 (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too.
14343 Move common code reading PLT entry word. Correct
14344 powerpc32_plt_stub PLT address calculation.
14345 * ppc64-tdep.c (ppc64_standard_linkage1): Make const.
14346 (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise.
14347 (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise.
14348 (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise.
14349 (ppc64_standard_linkage8): Likewise.
14350 * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const.
14351 Correct insns description.
14352 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
14353
0f59d5fc
PA
143542018-01-24 Pedro Alves <palves@redhat.com>
14355
14356 GCC PR libstdc++/83906
14357 * gdbtypes.c (operator==(const dynamic_prop &,
14358 const dynamic_prop &)): New.
14359 (operator==(const range_bounds &, const range_bounds &)): New.
14360 (check_types_equal): Use them instead of memcmp.
14361 * gdbtypes.h (operator==(const dynamic_prop &,
14362 const dynamic_prop &)): Declare.
14363 (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare.
14364 (operator==(const range_bounds &, const range_bounds &)): Declare.
14365 (operator!=(const range_bounds &, const range_bounds &)): Declare.
14366
ef8914a4
PR
143672018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
14368
14369 * s390-linux-tdep.c (s390_record_address_mask)
14370 (s390_record_calc_disp_common, s390_record_calc_disp)
14371 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
14372 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
14373 (s390_process_record): Move to s390-tdep.c.
14374 (s390_linux_init_abi_any): Adjust.
14375 * s390-tdep.c (s390_record_address_mask)
14376 (s390_record_calc_disp_common, s390_record_calc_disp)
14377 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
14378 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
14379 (s390_process_record): Moved from s390-linux-tdep.c
14380 (s390_gdbarch_init): Adjust.
14381
d6e58945
PR
143822018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
14383
14384 * s390-linux-nat.c (s390-tdep.h): New include.
14385 * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o.
14386 (HFILES_NO_SRCDIR): Add s390-tdep.h.
14387 (ALLDEPFILES): Add s390-tdep.c.
14388 * configure.tgt (s390*-*-linux*): Add s390-tdep.o.
14389 * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to...
14390 * s390-tdep.h: ...this. New file.
14391 * s390-linux-tdep.c (s390-tdep.h): New include.
14392 (_initialize_s390_tdep): Rename to...
14393 (_initialize_s390_linux_tdep): ...this and adjust.
14394 (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep)
14395 (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to
14396 s390-tdep.h.
14397 (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri)
14398 (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy)
14399 (s390_is_partial_instruction, s390_software_single_step)
14400 (is_non_branch_ril, s390_displaced_step_copy_insn)
14401 (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep)
14402 (s390_prologue_data, s390_addr, s390_store, s390_load)
14403 (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue)
14404 (s390_register_call_saved, s390_guess_tracepoint_registers)
14405 (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum)
14406 (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register)
14407 (s390_pseudo_register_name, s390_pseudo_register_type)
14408 (s390_pseudo_register_read, s390_pseudo_register_write)
14409 (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect)
14410 (s390_ax_pseudo_register_push_stack, s390_gen_return_address)
14411 (s390_addr_bits_remove, s390_address_class_type_flags)
14412 (s390_address_class_type_flags_to_name)
14413 (s390_address_class_name_to_type_flags, s390_effective_inner_type)
14414 (s390_function_arg_float, s390_function_arg_vector)
14415 (is_power_of_two, s390_function_arg_integer, s390_arg_state)
14416 (s390_handle_arg, s390_push_dummy_call, s390_dummy_id)
14417 (s390_frame_align, s390_register_return_value, s390_return_value)
14418 (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp)
14419 (s390_unwind_pseudo_register, s390_adjust_frame_regnum)
14420 (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg)
14421 (s390_trad_frame_prev_register, s390_unwind_cache)
14422 (s390_prologue_frame_unwind_cache)
14423 (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache)
14424 (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind)
14425 (s390_stub_unwind_cache, s390_stub_frame_unwind_cache)
14426 (s390_stub_frame_this_id, s390_stub_frame_prev_register)
14427 (s390_stub_frame_sniffer, s390_stub_frame_unwind)
14428 (s390_frame_base_address, s390_local_base_address)
14429 (s390_frame_base, s390_gcc_target_options)
14430 (s390_gnu_triplet_regexp, s390_stap_is_single_operand)
14431 (s390_validate_reg_range, s390_tdesc_valid)
14432 (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to...
14433 * s390-tdep.c: ...this. New file.
14434
9c0b896e
PR
144352018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
14436
14437 * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook.
14438 (s390_process_record, s390_gdbarch_tdep_alloc)
14439 (s390_linux_init_abi_any): Use/set new hook.
14440
7042632b
PR
144412018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
14442
14443 * s390-linux-tdep.c (osabi.h): New include.
14444 (s390_linux_init_abi_31, s390_linux_init_abi_64)
14445 (s390_linux_init_abi_any): New functions.
14446 (s390_gdbarch_init, _initialize_s390_tdep): Adjust.
14447
650f5e13
PR
144482018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
14449
14450 * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for
14451 tdesc_has_registers check
14452
47c9317e
PR
144532018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
14454
14455 * s390-linux-tdep.c (s390_tdesc_valid): New function.
14456 (s390_validate_reg_range): New macro.
14457 (s390_gdbarch_init): Adjust.
14458
095085d8
PR
144592018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
14460
14461 * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field.
14462 (s390_gdbarch_tdep_alloc): Adjust.
14463 (s390_gdbarch_init): Adjust.
14464
ab9bcc67
PR
144652018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
14466
14467 * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2>
14468 <have_tdb>: Change type to bool.
14469 (s390_gdbarch_tdep_alloc): Adjust.
14470 (s390_gdbarch_init): Adjust.
14471
21f6f5ff
PR
144722018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
14473
14474 * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field.
14475 (gdbarch_tdep) <have_upper, have_vx>: New fields.
14476 (s390_gdbarch_tdep_alloc): New function.
14477 (s390_gdbarch_init): Allocate tdep at start and use its fields
14478 instead of separate variables.
14479
0eb97953
PR
144802018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
14481
14482 * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
14483 when looking for cached gdbarch and add comment for remaining.
14484
5c319bb2
PA
144852018-01-22 Pedro Alves <palves@redhat.com>
14486 Sergio Durigan Junior <sergiodj@redhat.com>
14487
14488 * typeprint.c (whatis_exp): Initialize "val" in the "whatis type"
14489 case.
14490
d65ce302
MR
144912018-01-22 Maciej W. Rozycki <macro@mips.com>
14492
14493 * MAINTAINERS: Update my company e-mail address.
14494
ec7a5fcb
YQ
144952018-01-22 Yao Qi <yao.qi@linaro.org>
14496
14497 * regcache.c (cooked_write_test): New function.
14498 (_initialize_regcache): Register the test.
14499
11f57cb6
YQ
145002018-01-22 Yao Qi <yao.qi@linaro.org>
14501
14502 * ia64-tdep.c (ia64_pseudo_register_read): Call
14503 regcache->cooked_read instead of regcache_cooked_read_unsigned.
14504 * m32c-tdep.c (m32c_cat_read): Likewise.
14505 (m32c_r3r2r1r0_read): Likewise.
14506 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
14507 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
14508
03f50fc8
YQ
145092018-01-22 Yao Qi <yao.qi@linaro.org>
14510
14511 * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
14512 method raw_read instead of regcache_raw_read.
14513 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
14514 * arm-tdep.c (arm_neon_quad_read): Likewise.
14515 * avr-tdep.c (avr_pseudo_register_read): Likewise.
14516 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
14517 * frv-tdep.c (frv_pseudo_register_read): Likewise.
14518 * h8300-tdep.c (h8300_pseudo_register_read): Likewise.
14519 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
14520 (i386_pseudo_register_read_into_value): Likewise.
14521 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
14522 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
14523 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
14524 * rl78-tdep.c (rl78_pseudo_register_read): Likewise.
14525 * s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
14526 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
14527 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
14528 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
14529 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
14530
dc711524
YQ
145312018-01-22 Yao Qi <yao.qi@linaro.org>
14532
14533 * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
14534 * configure.tgt: Remove target mt.
14535 * mt-tdep.c: Remove.
14536 * regcache.c (cooked_read_test): Remove the check for mt.
14537
3f5a868b
YQ
145382018-01-22 Yao Qi <yao.qi@linaro.org>
14539
14540 * jit.c (jit_frame_prev_register): Call regcache::cooked_read
14541 instead of gdbarch_pseudo_register_read_value.
14542
de4cb04a
JB
145432018-01-22 Joel Brobecker <brobecker@adacore.com>
14544
14545 * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
14546 language is Ada.
14547
a9e40818
JB
145482018-01-22 Joel Brobecker <brobecker@adacore.com>
14549
14550 * linespec.c (create_sals_line_offset): Remove code that preserved
14551 the symtab_and_line's line number.
14552
e707fc44
AB
145532018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
14554
14555 * varobj.c (varobj_create): Don't set valid_block when creating a
14556 floating varobj.
14557
03d0bf7b
AB
145582018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
14559
14560 * varobj.c (varobj_create): Remove out of date comment.
14561
ae451627
AB
145622018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
14563
14564 PR mi/20395
14565 * ada-exp.y (write_var_from_sym): Pass extra parameter when
14566 updating innermost block.
14567 * parse.c (innermost_block_tracker::update): Take extra type
14568 parameter, and check types match before updating innermost block.
14569 (write_dollar_variable): Update innermost block for registers.
14570 * parser-defs.h (enum innermost_block_tracker_type): New enum.
14571 (innermost_block_tracker::innermost_block_tracker): Initialise
14572 m_types member.
14573 (innermost_block_tracker::reset): Take type parameter.
14574 (innermost_block_tracker::update): Take type parameter, and pass
14575 type through as needed.
14576 (innermost_block_tracker::m_types): New member.
14577 * varobj.c (varobj_create): Pass type when reseting innermost
14578 block.
14579
aee1fcdf
AB
145802018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
14581
14582 * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
14583 * ada-lang.c (resolve_subexp): Likewise.
14584 * breakpoint.c (set_breakpoint_condition) Likewise.
14585 (watch_command_1) Likewise.
14586 * c-exp.y (variable): Likewise.
14587 * d-exp.y (PrimaryExpression): Likewise.
14588 * f-exp.y (variable): Likewise.
14589 * go-exp.y (variable): Likewise.
14590 * m2-exp.y (variable): Likewise.
14591 * objfiles.c (objfile::~objfile): Likewise.
14592 * p-exp.y (variable): Likewise.
14593 * parse.c (innermost_block): Change type.
14594 * parser-defs.h (class innermost_block_tracker): New.
14595 (innermost_block): Change to innermost_block_tracker.
14596 * printcmd.c (display_command): Switch to innermost_block API.
14597 (do_one_display): Likewise.
14598 * rust-exp.y (do_one_display): Likewise.
14599 * symfile.c (clear_symtab_users): Likewise.
14600 * varobj.c (varobj_create): Switch to innermost_block API, replace
14601 use of innermost_block with block stored on varobj object.
14602
396af9a1
AB
146032018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
14604
14605 * expression.h (innermost_block): Remove declaration.
14606 * varobj.c: Add 'parser-defs.h' include.
14607
fcfcc376
TT
146082018-01-19 Tom Tromey <tom@tromey.com>
14609
14610 * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
14611 symbols in the static and global blocks.
14612
5a6c3296
JC
146132018-01-19 James Clarke <jrtc27@jrtc27.com>
14614
14615 * nat/linux-ptrace.c: Remove unnecessary reinclusion of
14616 gdb_ptrace.h, and move including gdb_wait.h ...
14617 * nat/linux-ptrace.h: ... to here.
14618
bc09b0c1
SM
146192018-01-19 Simon Marchi <simon.marchi@ericsson.com>
14620
14621 * inf-ptrace.c (inf_ptrace_detach): Adjust call to
14622 inf_ptrace_detach_success.
14623 (inf_ptrace_detach_success): Add inferior parameter, use it
14624 instead of inferior_ptid, pass it to detach_inferior.
14625 * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
14626 parameter.
14627 * inferior.c (detach_inferior): Add overload that takes an
14628 inferior object.
14629 * inferior.h (detach_inferior): Likewise.
14630 * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
14631 use inferior_ptid, adjust call to inf_ptrace_detach_success.
14632 * linux-thread-db.c (thread_db_detach): Use inf parameter.
14633
6e1e1966
SM
146342018-01-19 Simon Marchi <simon.marchi@ericsson.com>
14635
14636 * target.h (struct target_ops) <to_detach>: Add inferior
14637 parameter.
14638 (target_detach): Likewise.
14639 * target.c (dispose_inferior): Pass inferior down.
14640 (target_detach): Pass inferior down. Assert that it is equal to
14641 the current inferior.
14642 * aix-thread.c (aix_thread_detach): Pass inferior down.
14643 * corefile.c (core_file_command): Pass current_inferior() down.
14644 * corelow.c (core_detach): Add inferior parameter.
14645 * darwin-nat.c (darwin_detach): Likewise.
14646 * gnu-nat.c (gnu_detach): Likewise.
14647 * inf-ptrace.c (inf_ptrace_detach): Likewise.
14648 * infcmd.c (detach_command): Pass current_inferior() down to
14649 target_detach.
14650 * infrun.c (follow_fork_inferior): Pass parent_inf to
14651 target_detach.
14652 (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
14653 target_detach.
14654 * linux-nat.c (linux_nat_detach): Add inferior parameter.
14655 * linux-thread-db.c (thread_db_detach): Likewise.
14656 * nto-procfs.c (procfs_detach): Likewise.
14657 * procfs.c (procfs_detach): Likewise.
14658 * record.c (record_detach): Likewise.
14659 * record.h (struct inferior): Forward-declare.
14660 (record_detach): Add inferior parameter.
14661 * remote-sim.c (gdbsim_detach): Likewise.
14662 * remote.c (remote_detach_1): Likewise.
14663 (remote_detach): Likewise.
14664 (extended_remote_detach): Likewise.
14665 * sol-thread.c (sol_thread_detach): Likewise.
14666 * target-debug.h (target_debug_print_inferior_p): New macro.
14667 * target-delegates.c: Re-generate.
14668 * top.c (kill_or_detach): Pass inferior down to target_detach.
14669 * windows-nat.c (windows_detach): Add inferior parameter.
14670
6bd6f3b6
SM
146712018-01-19 Simon Marchi <simon.marchi@ericsson.com>
14672
14673 * target.h (struct target_ops) <to_detach>: Remove args
14674 parameter.
14675 (target_detach): Likewise.
14676 * target.c (dispose_inferior): Adjust.
14677 (target_detach): Remove args parameter, adjust.
14678 * aix-thread.c (aix_thread_detach): Adjust.
14679 * corefile.c (core_file_command): Adjust.
14680 * corelow.c (core_detach): Adjust.
14681 * darwin-nat.c (darwin_detach): Adjust.
14682 * gnu-nat.c (gnu_detach): Adjust.
14683 * inf-ptrace.c (inf_ptrace_detach): Adjust.
14684 * infcmd.c (detach_command): Adjust
14685 * infrun.c (follow_fork_inferior): Adjust.
14686 (handle_vfork_child_exec_or_exit): Adjust.
14687 * linux-fork.c (linux_fork_detach): Remove args parameter.
14688 * linux-fork.h (linux_fork_detach): Likewise.
14689 * linux-nat.c (linux_nat_detach): Likewise, and adjust.
14690 * linux-thread-db.c (thread_db_detach): Likewise.
14691 * nto-procfs.c (procfs_detach): Likewise.
14692 * procfs.c (procfs_detach): Likewise.
14693 (do_detach): Remove signo parameter.
14694 * record.c (record_detach): Remove args parameter.
14695 * record.h (record_detach): Likewise.
14696 * remote-sim.c (gdbsim_detach): Likewise.
14697 * remote.c (remote_detach_1): Likewise.
14698 (remote_detach): Likewise.
14699 (extended_remote_detach): Likewise.
14700 * sol-thread.c (sol_thread_detach): Likewise.
14701 * target-delegates.c: Re-generate.
14702 * top.c (struct qt_args) <args>: Remove field.
14703 (kill_or_detach): Don't pass args.
14704 (quit_force): Don't set args.
14705 * windows-nat.c (windows_detach): Remove args parameter.
14706
88af8ea8
YQ
147072018-01-19 Yao Qi <yao.qi@linaro.org>
14708
14709 * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
14710 (arm_linux_init_abi): Install it.
14711
dea445b9
YQ
147122018-01-19 Yao Qi <yao.qi@linaro.org>
14713
14714 * osabi.c (gdb_osabi_names): Extend the regexp for
14715 arm-linux-gnueabihf.
14716
4a17f768
YQ
147172018-01-18 Yao Qi <yao.qi@linaro.org>
14718
14719 * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
14720 m_abbrevs.
14721 (abbrev_table::add_abbrev): Update.
14722 (abbrev_table::lookup_abbrev): Update.
14723
d679c21a
YQ
147242018-01-18 Yao Qi <yao.qi@linaro.org>
14725
14726 * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
14727
7d937cad
SDJ
147282018-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
14729
14730 * compile/compile.c (compile_to_object): Convert "triplet_rx"
14731 to "std::string".
14732
9e14690d
TT
147332018-01-17 Tom Tromey <tom@tromey.com>
14734
14735 * dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC.
14736
50a82047
TT
147372018-01-17 Tom Tromey <tom@tromey.com>
14738
14739 * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
14740 * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
14741 (create_array_type_with_stride): Update.
14742 * dwarf2read.c (set_die_type): Update.
14743
c89b44cd
TT
147442018-01-17 Tom Tromey <tom@tromey.com>
14745
14746 * dwarf2read.c (delayed_method_info): Remove typedef.
14747 (dwarf2_cu::method_info): Now a std::vector.
14748 (add_to_method_list): Update.
14749 (free_delayed_list): Remove.
14750 (compute_delayed_physnames): Update.
14751 (process_full_comp_unit, process_full_type_unit): Clear the method
14752 list. Remove cleanups.
14753 (psymtab_include_file_name): Add name_holder parameter. Use
14754 unique_xmalloc_ptr.
14755 (dwarf_decode_lines): Update.
14756
fcd3b13d
SM
147572018-01-17 Tom Tromey <tom@tromey.com>
14758 Simon Marchi <simon.marchi@ericsson.com>
14759
14760 * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
14761 (dwarf2_per_objfile::free_cached_comp_units)
14762 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
14763 (init_cutu_and_read_dies_no_follow): Update.
14764 (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
14765 (dwarf2_cu::~dwarf2_cu): New.
14766 (free_heap_comp_unit, free_stack_comp_unit): Remove.
14767 (age_cached_comp_units, free_one_cached_comp_unit): Update.
14768
685af9cd
TT
147692018-01-17 Tom Tromey <tom@tromey.com>
14770 Simon Marchi <simon.marchi@ericsson.com>
14771
14772 * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
14773 (struct die_reader_specs) <abbrev_table>: New member.
14774 (struct abbrev_table): Add constructor.
14775 <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
14776 <abbrev_obstack>: Now an auto_obstack.
14777 (abbrev_table_up): New typedef.
14778 (init_cu_die_reader): Add abbrev_table parameter.
14779 (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
14780 Add result_dwo_abbrev_table.
14781 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
14782 (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
14783 Update.
14784 (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
14785 parameter.
14786 (skip_children): Update.
14787 (abbrev_table::alloc_abbrev): Rename from
14788 abbrev_table_alloc_abbrev.
14789 (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
14790 (abbrev_table::lookup_abbrev): Rename from
14791 abbrev_table_lookup_abbrev.
14792 (abbrev_table_read_table): Return abbrev_table_up.
14793 (abbrev_table_free, abbrev_table_free_cleanup)
14794 (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
14795 (load_partial_dies): Update.
14796
5e2db402
TT
147972018-01-17 Tom Tromey <tom@tromey.com>
14798
14799 * dwarf2read.c (dwarf2_compute_name): Update comment.
14800 (read_func_scope, read_variable): Update.
14801 (new_symbol): Remove.
14802 (new_symbol_full): Rename to new_symbol.
14803
ee7f689e 148042018-01-17 Mike Gulick <mgulick@mathworks.com>
41667530
MG
14805
14806 PR gdb/16577
14807 * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
14808 a warning instead of throwing an error, set section size to 0 and return
14809 NULL.
14810 * gdb_bfd.h (gdb_bfd_map_section): Update description.
14811
4d9b86e1
SM
148122018-01-17 Simon Marchi <simon.marchi@ericsson.com>
14813
14814 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
14815 std::string.
14816 (linux_ptrace_attach_fail_reason_string): Likewise.
14817 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
14818 Likewise.
14819 (linux_ptrace_attach_fail_reason_string): Likewise.
14820 * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
14821
a7b2d0fb
SM
148222018-01-17 Simon Marchi <simon.marchi@ericsson.com>
14823
14824 * linux-nat.c (linux_nat_attach): Remove xstrdup.
14825
f517c180
EA
148262018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
14827
14828 PR gdb/21559
14829 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
14830 checking for fs_base/gs_base fields in struct user_regs_struct.
14831 * configure: Regenerate.
14832
7045b1ca
YQ
148332018-01-17 Yao Qi <yao.qi@linaro.org>
14834
14835 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
14836 function.
14837 (aarch64_linux_init_abi): Install it to gdbarch hook
14838 gcc_target_options.
14839
db422fb2
PA
148402018-01-15 Pedro Alves <palves@redhat.com>
14841
14842 * common/signals-state-save-restore.c
14843 (save_original_signals_state): Fix typos.
14844
ba643918
SDJ
148452017-01-12 Tom Tromey <tom@tromey.com>
14846 Sergio Durigan Junior <sergiodj@redhat.com>
14847
14848 * Makefile.in (install-only): Install gdb-add-index.
14849
906b4aac
JB
148502018-01-12 John Baldwin <jhb@FreeBSD.org>
14851
14852 * fbsd-tdep.c (KVE_PROTECTION): Correct value.
14853
bdf2a94a
AA
148542018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
14855
14856 * infrun.c (keep_going_pass_signal): Clear step-over info when
14857 insert_breakpoints fails.
14858
71d378ae
PA
148592018-01-11 Pedro Alves <palves@redhat.com>
14860
14861 PR gdb/22583
14862 * infrun.c (resume): Rename to ...
14863 (resume_1): ... this.
14864 (resume): Reimplement as wrapper around resume_1.
14865
3cada740
PA
148662018-01-11 Pedro Alves <palves@redhat.com>
14867
14868 PR remote/22597
14869 * remote.c (remote_parse_stop_reply): Default to the last-set
14870 general thread instead of to 'magic_null_ptid'.
14871
618daa93
PA
148722018-01-10 Pedro Alves <palves@redhat.com>
14873
14874 * language.h (language_get_symbol_name_matcher): Rename ...
14875 (get_symbol_name_matcher): ... this.
14876 * language.c (language_get_symbol_name_matcher): Ditto.
14877 * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
14878 callers adjusted.
14879
c63d3e8d
PA
148802018-01-10 Pedro Alves <palves@redhat.com>
14881
14882 PR gdb/22670
14883 * dwarf2read.c
14884 (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
14885 Adjust to use language_get_symbol_name_matcher instead of
14886 language_defn::la_get_symbol_name_matcher.
14887 * language.c (language_get_symbol_name_matcher): If in Ada mode
14888 and the lookup name is a verbatim match, return Ada's matcher.
14889 * language.h (language_get_symbol_name_matcher): Adjust comment.
14890 (ada_lookup_name_info::verbatim_p):: New method.
14891
d4c2a405
PA
148922018-01-10 Pedro Alves <palves@redhat.com>
14893
14894 PR gdb/22670
14895 * ada-lang.c (ada_collect_symbol_completion_matches): If the
14896 minsym's language is language_auto or language_cplus, pass down
14897 language_ada instead.
14898 * symtab.c (compare_symbol_name): Don't frob symbol language here.
14899
8825213e
PA
149002018-01-10 Pedro Alves <palves@redhat.com>
14901
14902 PR gdb/22670
14903 * minsyms.c (linkage_name_str): New function.
14904 (iterate_over_minimal_symbols): Use it.
14905
2d97a5d9
JB
149062018-01-09 John Baldwin <jhb@FreeBSD.org>
14907
14908 * NEWS: Document that 'info proc' now works on FreeBSD.
14909
92fce24d
JB
149102018-01-09 John Baldwin <jhb@FreeBSD.org>
14911
14912 * configure.ac: Check for kinfo_getfile in libutil.
14913 * configure: Regenerate.
14914 * config.in: Regenerate.
14915 * fbsd-nat.c: Include "fbsd-tdep.h".
14916 (fbsd_fetch_cmdline): New.
14917 (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
14918 rather than calling error.
14919 (fbsd_info_proc): New.
14920 (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
14921 (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
14922 (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
14923
262f62f5
JB
149242018-01-09 John Baldwin <jhb@FreeBSD.org>
14925
14926 * fbsd-nat.c (struct free_deleter): Remove.
14927 (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
14928
b999e203
JB
149292018-01-09 John Baldwin <jhb@FreeBSD.org>
14930
14931 * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
14932 NULL for an empty pathname.
14933
d2176225
JB
149342018-01-09 John Baldwin <jhb@FreeBSD.org>
14935
14936 * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
14937 (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
14938 (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
14939 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
14940 (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
14941 (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
14942 (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
14943 (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
14944 (kinfo_proc_layout_32, kinfo_proc_layout_i386)
14945 (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
14946 (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
14947 (fbsd_core_fetch_timeval, fbsd_print_sigset)
14948 (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
14949 (fbsd_init_abi): Install gdbarch "core_info_proc" method.
14950 * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
14951
9c4ac400
ST
149522018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
14953
14954 * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
14955 (gnu_xfer_auxv): New function.
14956 (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
14957 TARGET_OBJECT_AUXV.
14958
1e5ded6c
YQ
149592018-01-08 Yao Qi <yao.qi@linaro.org>
14960 Simon Marchi <simon.marchi@ericsson.com>
14961
14962 * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
14963 common/selftest.c.
14964 (COMMON_OBS): Remove selftest.o.
14965 * configure.ac: Append selftest-arch.c and common/selftest.c to
14966 CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS.
14967 * configure: Re-generated.
14968 * maint.c (maintenance_selftest): Wrap selftests::run_tests with
14969 GDB_SELF_TEST.
14970 (maintenance_info_selftests): Likewise.
14971
04bafb1e
XR
149722018-01-08 Xavier Roirand <roirand@adacore.com>
14973
14974 * ada-valprint.c (val_print_packed_array_elements): Use
14975 proper number of elements when printing an array indexed
14976 by an enumeration type.
14977
518817b3
SM
149782018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
14979
14980 * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
14981 (dw2_get_file_names_reader): Adjust.
14982 (lookup_dwo_signatured_type): Adjust.
14983 (lookup_dwp_signatured_type): Adjust.
14984 (lookup_signatured_type): Adjust.
14985 (create_type_unit_group): Adjust.
14986 (get_type_unit_group): Adjust.
14987 (process_psymtab_comp_unit_reader): Adjust.
14988 (build_type_psymtabs_reader): Adjust.
14989 (scan_partial_symbols): Adjust.
14990 (add_partial_symbol): Adjust.
14991 (add_partial_subprogram): Adjust.
14992 (peek_die_abbrev): Adjust.
14993 (fixup_go_packaging): Adjust.
14994 (process_imported_unit_die): Adjust.
14995 (dwarf2_compute_name): Adjust.
14996 (dwarf2_physname): Adjust.
14997 (read_import_statement): Adjust.
14998 (handle_DW_AT_stmt_list): Adjust.
14999 (read_file_scope): Adjust.
15000 (read_func_scope): Adjust.
15001 (read_lexical_block_scope): Adjust.
15002 (read_call_site_scope): Adjust.
15003 (read_variable): Adjust.
15004 (dwarf2_rnglists_process): Adjust.
15005 (dwarf2_ranges_process): Adjust.
15006 (dwarf2_ranges_read): Adjust.
15007 (dwarf2_get_pc_bounds): Adjust.
15008 (dwarf2_record_block_ranges): Adjust.
15009 (dwarf2_add_field): Adjust.
15010 (dwarf2_add_member_fn): Adjust.
15011 (read_structure_type): Adjust.
15012 (process_structure_scope): Adjust.
15013 (read_enumeration_type): Adjust.
15014 (read_array_type): Adjust.
15015 (mark_common_block_symbol_computed): Adjust.
15016 (read_common_block): Adjust.
15017 (read_namespace_type): Adjust.
15018 (read_namespace): Adjust.
15019 (read_module_type): Adjust.
15020 (read_tag_pointer_type): Adjust.
15021 (read_tag_ptr_to_member_type): Adjust.
15022 (read_tag_string_type): Adjust.
15023 (read_subroutine_type): Adjust.
15024 (read_typedef): Adjust.
15025 (read_base_type): Adjust.
15026 (attr_to_dynamic_prop): Adjust.
15027 (read_subrange_type): Adjust.
15028 (read_unspecified_type): Adjust.
15029 (dwarf2_read_abbrevs): Adjust.
15030 (load_partial_dies): Adjust.
15031 (read_partial_die): Adjust.
15032 (find_partial_die): Adjust.
15033 (guess_partial_die_structure_name): Adjust.
15034 (fixup_partial_die): Adjust.
15035 (read_attribute_value): Adjust.
15036 (read_addr_index): Adjust.
15037 (read_addr_index_from_leb128): Adjust.
15038 (read_str_index): Adjust.
15039 (dwarf2_string_attr): Adjust.
15040 (get_debug_line_section): Adjust.
15041 (dwarf_decode_line_header): Adjust.
15042 (lnp_state_machine::check_line_address): Adjust.
15043 (dwarf_decode_lines_1): Adjust.
15044 (dwarf_decode_lines): Adjust.
15045 (dwarf2_start_symtab): Adjust.
15046 (var_decode_location): Adjust.
15047 (new_symbol_full): Adjust.
15048 (dwarf2_const_value_data): Adjust.
15049 (dwarf2_const_value_attr): Adjust.
15050 (dwarf2_const_value): Adjust.
15051 (die_type): Adjust.
15052 (die_containing_type): Adjust.
15053 (build_error_marker_type): Adjust.
15054 (lookup_die_type): Adjust.
15055 (guess_full_die_structure_name): Adjust.
15056 (anonymous_struct_prefix): Adjust.
15057 (determine_prefix): Adjust.
15058 (dwarf2_name): Adjust.
15059 (follow_die_ref_or_sig): Adjust.
15060 (follow_die_offset): Adjust.
15061 (follow_die_ref): Adjust.
15062 (follow_die_sig_1): Adjust.
15063 (follow_die_sig): Adjust.
15064 (get_signatured_type): Adjust.
15065 (get_DW_AT_signature_type): Adjust.
15066 (decode_locdesc): Adjust.
15067 (dwarf_decode_macros): Adjust.
15068 (cu_debug_loc_section): Adjust.
15069 (fill_in_loclist_baton): Adjust.
15070 (dwarf2_symbol_mark_computed): Adjust.
15071 (init_one_comp_unit): Don't assign
15072 dwarf2_cu::dwarf2_per_objfile.
15073 (set_die_type): Adjust.
15074
ed2dc618
SM
150752018-01-07 Simon Marchi <simon.marchi@ericsson.com>
15076
15077 * dwarf2read.c (struct mapped_debug_names): Add constructor.
15078 <dwarf2_per_objfile>: New field.
15079 (dwarf2_per_objfile): Remove global.
15080 (get_dwarf2_per_objfile): New function.
15081 (set_dwarf2_per_objfile): New function.
15082 (dwarf2_build_psymtabs_hard): Change objfile parameter to
15083 dwarf2_per_objfile.
15084 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
15085 (read_abbrev_offset): Likewise.
15086 (read_indirect_string): Likewise.
15087 (read_indirect_line_string): Likewise.
15088 (read_indirect_string_at_offset): Likewise.
15089 (read_indirect_string_from_dwz): Likewise.
15090 (dwarf2_find_containing_comp_unit): Change objfile parameter to
15091 dwarf2_per_objfile.
15092 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
15093 (create_all_comp_units): Change objfile parameter to
15094 dwarf2_per_objfile.
15095 (create_all_type_units): Likewise.
15096 (process_queue): Add dwarf2_per_objfile parameter.
15097 (read_and_check_comp_unit_head): Likewise.
15098 (lookup_dwo_unit_in_dwp): Likewise.
15099 (get_dwp_file): Likewise.
15100 (process_cu_includes): Likewise.
15101 (struct free_dwo_file_cleanup_data): New struct.
15102 (dwarf2_has_info): Use get_dwarf2_per_objfile and
15103 set_dwarf2_per_objfile.
15104 (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
15105 (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
15106 context, adjust calls.
15107 (dw2_instantiate_symtab): Likewise.
15108 (dw2_get_cutu): Add dwarf2_per_objfile parameter.
15109 (dw2_get_cu): Likewise.
15110 (create_cu_from_index_list): Change objfile parameter to
15111 dwarf2_per_objfile.
15112 (create_cus_from_index_list): Get dwarf2_per_objfile from
15113 context, adjust calls.
15114 (create_cus_from_index): Likewise.
15115 (create_signatured_type_table_from_index): Change objfile
15116 parameter to dwarf2_per_objfile.
15117 (create_signatured_type_table_from_debug_names): Change objfile
15118 parameter to dwarf2_per_objfile.
15119 (create_addrmap_from_index): Likewise.
15120 (create_addrmap_from_aranges): Likewise.
15121 (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
15122 (dw2_setup): Remove.
15123 (dw2_get_file_names_reader): Get dwarf2_per_objfile from
15124 context.
15125 (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
15126 get_dwarf2_per_objfile.
15127 (dw2_forget_cached_source_info): Likewise.
15128 (dw2_map_symtabs_matching_filename): Likewise.
15129 (struct dw2_symtab_iterator) <index>: Remove.
15130 <dwarf2_per_objfile>: New field.
15131 (dw2_symtab_iter_init): Replace index parameter with
15132 dwarf2_per_objfile.
15133 (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
15134 (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
15135 (dw2_print_stats): Likewise.
15136 (dw2_dump): Likewise.
15137 (dw2_expand_symtabs_for_function): Likewise.
15138 (dw2_expand_all_symtabs): Likewise.
15139 (dw2_expand_symtabs_with_fullname): Likewise.
15140 (dw2_expand_marked_cus): Replace index and objfile parameters
15141 with dwarf2_per_objfile.
15142 (dw_expand_symtabs_matching_file_matcher): Add
15143 dwarf2_per_objfile parameter and adjust calls.
15144 (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
15145 adjust calls.
15146 (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
15147 (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
15148 adjust calls.
15149 (create_cus_from_debug_names_list): Replace objfile parameter
15150 with dwarf2_per_objfile and adjust calls.
15151 (create_cus_from_debug_names): Likewise.
15152 (dwarf2_read_debug_names): Likewise.
15153 (mapped_debug_names::namei_to_name): Adjust call.
15154 (dw2_debug_names_iterator::next): Likewise.
15155 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
15156 (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
15157 (dw2_debug_names_dump): Likewise.
15158 (dw2_debug_names_expand_symtabs_for_function): Likewise.
15159 (dw2_debug_names_expand_symtabs_matching): Likewise.
15160 (dwarf2_initialize_objfile): Likewise.
15161 (dwarf2_build_psymtabs): Likewise.
15162 (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
15163 this_cu.
15164 (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
15165 (read_and_check_comp_unit_head): Likewise.
15166 (read_abbrev_offset): Likewise.
15167 (create_debug_type_hash_table): Likewise.
15168 (create_debug_types_hash_table): Likewise.
15169 (create_all_type_units): Replace objfile parameter with
15170 dwarf2_per_objfile.
15171 (add_type_unit): Add dwarf2_per_objfile parameter.
15172 (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
15173 with dwarf2_per_objfile.
15174 (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
15175 (lookup_dwp_signatured_type): Likewise.
15176 (lookup_signatured_type): Likewise.
15177 (read_cutu_die_from_dwo): Likewise.
15178 (init_tu_and_read_dwo_dies): Likewise.
15179 (init_cutu_and_read_dies): Likewise.
15180 (init_cutu_and_read_dies_no_follow): Likewise.
15181 (allocate_type_unit_groups_table): Add objfile parameter.
15182 (create_type_unit_group): Use dwarf2_per_objfile from cu.
15183 (get_type_unit_group): Likewise.
15184 (process_psymtab_comp_unit): Update call.
15185 (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
15186 (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
15187 (print_tu_stats): Likewise.
15188 (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
15189 in void* parameter.
15190 (build_type_psymtabs): Change objfile parameter to
15191 dwarf2_per_objfile.
15192 (process_skeletonless_type_unit): Use dwarf2_per_objfile
15193 passed in void* parameter.
15194 (process_skeletonless_type_units): Change objfile parameter to
15195 dwarf2_per_objfile.
15196 (set_partial_user): Likewise.
15197 (dwarf2_build_psymtabs_hard): Likewise.
15198 (read_comp_units_from_section): Likewise.
15199 (create_all_comp_units): Likewise.
15200 (scan_partial_symbols): Update calls.
15201 (add_partial_symbol): Likewise.
15202 (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
15203 (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
15204 (process_queue): Add dwarf2_per_objfile parameter.
15205 (get_compunit_symtab): Use dwarf2_per_objfile from cu.
15206 (compute_compunit_symtab_includes): Likewise.
15207 (process_cu_includes): Add dwarf2_per_objfile parameter.
15208 (process_full_comp_unit): Use dwarf2_per_objfile from cu.
15209 (process_full_type_unit): Likewise.
15210 (process_imported_unit_die): Update call.
15211 (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
15212 (read_file_scope): Likewise.
15213 (allocate_dwo_file_hash_table): Add objfile parameter.
15214 (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
15215 (create_cus_hash_table): Likewise.
15216 (create_dwp_hash_table): Likewise.
15217 (create_dwo_unit_in_dwp_v1): Likewise.
15218 (create_dwp_v2_section): Likewise.
15219 (create_dwo_unit_in_dwp_v2): Likewise.
15220 (lookup_dwo_unit_in_dwp): Likewise.
15221 (try_open_dwop_file): Likewise.
15222 (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
15223 (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
15224 cleanup to include a reference to dwarf2_per_objfile.
15225 (open_dwp_file): Add dwarf2_per_objfile parameter.
15226 (open_and_init_dwp_file): Likewise.
15227 (get_dwp_file): Likewise.
15228 (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
15229 (queue_and_load_all_dwo_tus): Update call.
15230 (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
15231 data.
15232 (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
15233 (dwarf2_ranges_process): Likewise.
15234 (dwarf2_get_pc_bounds): Likewise.
15235 (mark_common_block_symbol_computed): Likewise.
15236 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
15237 (dwarf2_read_abbrevs): Update call.
15238 (read_partial_die): Use dwarf2_per_objfile from cu.
15239 (find_partial_die): Likewise.
15240 (fixup_partial_die): Likewise.
15241 (read_attribute_value): Likewise.
15242 (read_indirect_string_at_offset_from): Add objfile parameter.
15243 (read_indirect_string_at_offset): Add dwarf2_per_objfile
15244 parameter.
15245 (read_indirect_string_from_dwz): Add objfile parameter.
15246 (read_indirect_string): Add objfile parameter.
15247 (read_addr_index_1): Add dwarf2_per_objfile parameter.
15248 (read_addr_index): Use dwarf2_per_objfile from cu.
15249 (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
15250 call dw2_setup.
15251 (read_str_index): Use dwarf2_per_objfile from cu.
15252 (get_debug_line_section): Likewise.
15253 (read_formatted_entries): Add dwarf2_per_objfile parameter.
15254 (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
15255 (new_symbol_full): Use dwarf2_per_objfile from cu.
15256 (build_error_marker_type): Likewise.
15257 (lookup_die_type): Likewise.
15258 (determine_prefix): Likewise.
15259 (follow_die_offset): Likewise.
15260 (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
15261 (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
15262 (dwarf2_fetch_die_type_sect_off): Likewise.
15263 (dwarf2_get_die_type): Likewise.
15264 (follow_die_sig_1): Use dwarf2_per_objfile from cu.
15265 (get_signatured_type): Likewise.
15266 (get_DW_AT_signature_type): Likewise.
15267 (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
15268 (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
15269 (cu_debug_loc_section): Likewise.
15270 (fill_in_loclist_baton): Likewise.
15271 (dwarf2_symbol_mark_computed): Likewise.
15272 (dwarf2_find_containing_comp_unit): Change objfile parameter to
15273 dwarf2_per_objfile.
15274 (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
15275 parameter.
15276 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
15277 (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
15278 (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
15279 (set_die_type): Use dwarf2_free_objfile from cu.
15280 (get_die_type_at_offset): Likewise.
15281 (dwarf2_per_objfile_free): Don't assign global variable.
15282 (debug_names) <constructor>: Add dwarf2_per_objfile
15283 parameter, update m_debugstrlookup construction.
15284 (debug_names::debug_str_lookup): Add dwarf2_per_objfile
15285 parameter.
15286 <m_dwarf2_per_objfile>: New field.
15287 <lookup>: Use m_dwarf2_per_objfile.
15288 (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
15289 (psyms_seen_size): Likewise.
15290 (write_gdbindex): Replace objfile parameter with
15291 dwarf2_per_objfile.
15292 (write_debug_names): Likewise.
15293 (write_psymtabs_to_index): Likewise.
15294 (save_gdb_index_command): Use get_dwarf2_per_objfile, update
15295 calls.
15296
e3b94546
SM
152972018-01-07 Simon Marchi <simon.marchi@ericsson.com>
15298
15299 * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
15300 <dwarf2_per_objfile>: New field.
15301 (struct dwarf2_per_cu_data) <objfile>: Remove.
15302 <dwarf2_per_objfile>: New field.
15303 (create_cu_from_index_list): Assign dwarf2_per_objfile instead
15304 of objfile.
15305 (create_signatured_type_table_from_index): Likewise.
15306 (create_debug_type_hash_table): Likewise.
15307 (fill_in_sig_entry_from_dwo_entry): Likewise.
15308 (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
15309 (create_type_unit_group): Assign dwarf2_per_objfile instead of
15310 objfile.
15311 (create_partial_symtab): Access objfile through
15312 dwarf2_per_objfile.
15313 (process_psymtab_comp_unit_reader): Likewise.
15314 (read_comp_units_from_section): Likewise.
15315 (scan_partial_symbols): Likewise.
15316 (add_partial_symbol): Likewise.
15317 (add_partial_subprogram): Likewise.
15318 (peek_die_abbrev): Likewise.
15319 (fixup_go_packaging): Likewise.
15320 (process_full_comp_unit): Likewise.
15321 (process_full_type_unit): Likewise.
15322 (process_imported_unit_die): Likewise.
15323 (dwarf2_compute_name): Likewise.
15324 (dwarf2_physname): Likewise.
15325 (read_import_statement): Likewise.
15326 (create_cus_hash_table): Assign dwarf2_physname instead of
15327 objfile.
15328 (read_func_scope): Access objfile through dwarf2_per_objfile.
15329 (read_lexical_block_scope): Likewise.
15330 (read_call_site_scope): Likewise.
15331 (read_variable): Likewise.
15332 (dwarf2_rnglists_process): Likewise.
15333 (dwarf2_ranges_process): Likewise.
15334 (dwarf2_ranges_read): Likewise.
15335 (dwarf2_record_block_ranges): Likewise.
15336 (dwarf2_add_field): Likewise.
15337 (dwarf2_add_member_fn): Likewise.
15338 (read_structure_type): Likewise.
15339 (process_structure_scope): Likewise.
15340 (read_enumeration_type): Likewise.
15341 (read_array_type): Likewise.
15342 (read_common_block): Likewise.
15343 (read_namespace_type): Likewise.
15344 (read_namespace): Likewise.
15345 (read_module_type): Likewise.
15346 (read_tag_pointer_type): Likewise.
15347 (read_tag_ptr_to_member_type): Likewise.
15348 (read_tag_string_type): Likewise.
15349 (read_subroutine_type): Likewise.
15350 (read_typedef): Likewise.
15351 (read_base_type): Likewise.
15352 (attr_to_dynamic_prop): Likewise.
15353 (read_subrange_type): Likewise.
15354 (read_unspecified_type): Likewise.
15355 (load_partial_dies): Likewise.
15356 (read_partial_die): Likewise.
15357 (find_partial_die): Likewise.
15358 (guess_partial_die_structure_name): Likewise.
15359 (fixup_partial_die): Likewise.
15360 (read_attribute_value): Likewise.
15361 (read_addr_index_from_leb128): Likewise.
15362 (dwarf2_read_addr_index): Likewise.
15363 (dwarf2_string_attr): Likewise.
15364 (lnp_state_machine::check_line_address): Likewise.
15365 (dwarf_decode_lines_1): Likewise.
15366 (dwarf_decode_lines): Likewise.
15367 (dwarf2_start_symtab): Likewise.
15368 (var_decode_location): Likewise.
15369 (new_symbol_full): Likewise.
15370 (dwarf2_const_value_data): Likewise.
15371 (dwarf2_const_value_attr): Likewise.
15372 (dwarf2_const_value): Likewise.
15373 (die_type): Likewise.
15374 (die_containing_type): Likewise.
15375 (lookup_die_type): Likewise.
15376 (guess_full_die_structure_name): Likewise.
15377 (anonymous_struct_prefix): Likewise.
15378 (dwarf2_name): Likewise.
15379 (follow_die_ref_or_sig): Likewise.
15380 (follow_die_offset): Likewise.
15381 (follow_die_ref): Likewise.
15382 (dwarf2_fetch_die_loc_sect_off): Likewise.
15383 (dwarf2_fetch_constant_bytes): Likewise.
15384 (dwarf2_fetch_die_type_sect_off): Likewise.
15385 (dwarf2_get_die_type): Likewise.
15386 (follow_die_sig): Likewise.
15387 (decode_locdesc): Likewise.
15388 (dwarf2_per_cu_objfile): Likewise.
15389 (dwarf2_per_cu_text_offset): Likewise.
15390 (init_one_comp_unit): Assign dwarf2_per_objfile instead of
15391 objfile.
15392 (set_die_type): Access objfile through
15393 dwarf2_per_objfile.
15394
b01ba14d
SM
153952018-01-07 Simon Marchi <simon.marchi@ericsson.com>
15396
15397 * valprint.c (converted_character_d): Remove typedef.
15398 (DEF_VEC_O (converted_character_d)): Remove.
15399 (count_next_character): Use std::vector.
15400 (print_converted_chars_to_obstack): Likewise.
15401 (generic_printstr): Likewise.
15402
4d0fdd9b
SM
154032018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
15404
15405 * xml-support.h (struct gdb_xml_value): Add constructor.
15406 <value>: Change type to unique_xmalloc_ptr.
15407 (gdb_xml_value_s): Remove typedef.
15408 (DEF_VEC_O (gdb_xml_value_s)): Remove.
15409 (gdb_xml_element_start_handler): Change parameter type to
15410 std::vector.
15411 (xml_find_attribute): Likewise.
15412 * xml-support.c (xml_find_attribute): Change parameter type to
15413 std::vector and adjust.
15414 (gdb_xml_values_cleanup): Remove.
15415 (gdb_xml_parser::start_element): Adjust to std::vector.
15416 (xinclude_start_include): Change paraeter type to std::vector
15417 and adjust.
15418 * btrace.c (check_xml_btrace_version): Likewise.
15419 (parse_xml_btrace_block): Likewise.
15420 (parse_xml_btrace_pt_config_cpu): Likewise.
15421 (parse_xml_btrace_pt): Likewise.
15422 (parse_xml_btrace_conf_bts): Likewise.
15423 (parse_xml_btrace_conf_pt): Likewise.
15424 * memory-map.c (memory_map_start_memory): Likewise.
15425 (memory_map_start_property): Likewise.
15426 * osdata.c (osdata_start_osdata): Likewise.
15427 (osdata_start_item): Likewise.
15428 (osdata_start_column): Likewise.
15429 * remote.c (start_thread): Likewise.
15430 * solib-aix.c (library_list_start_library): Likewise.
15431 (library_list_start_list): Likewise.
15432 * solib-svr4.c (library_list_start_library): Likewise.
15433 (svr4_library_list_start_list): Likewise.
15434 * solib-target.c (library_list_start_segment): Likewise.
15435 (library_list_start_section): Likewise.
15436 (library_list_start_library): Likewise.
15437 (library_list_start_list): Likewise.
15438 * tracepoint.c (traceframe_info_start_memory): Likewise.
15439 (traceframe_info_start_tvar): Likewise.
15440 * xml-syscall.c (syscall_start_syscall): Likewise.
15441 * xml-tdesc.c (tdesc_start_target): Likewise.
15442 (tdesc_start_feature): Likewise.
15443 (tdesc_start_reg): Likewise.
15444 (tdesc_start_union): Likewise.
15445 (tdesc_start_struct): Likewise.
15446 (tdesc_start_flags): Likewise.
15447 (tdesc_start_enum): Likewise.
15448 (tdesc_start_field): Likewise.
15449 (tdesc_start_enum_value): Likewise.
15450 (tdesc_start_vector): Likewise.
15451
f979c73f
SM
154522018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
15453
15454 * extension.h (struct xmethod_worker) <clone>: Remove.
15455 * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
15456 Remove.
15457 (python_xmethod_worker::clone): Remove.
15458 * valops.c (find_overload_match): Use std::move instead of
15459 clone.
15460
ba18742c
SM
154612018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
15462
15463 * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
15464 (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
15465 <free_xmethod_worker_data>: Remove.
15466 <get_matching_xmethod_workers>: Chance VEC to std::vector.
15467 <get_xmethod_arg_types>: Remove.
15468 <get_xmethod_result_type>: Remove.
15469 <invoke_xmethod>: Remove.
15470 * extension.c (new_xmethod_worker): Remove.
15471 (clone_xmethod_worker): Remove.
15472 (get_matching_xmethod_workers): Return void, pass std::vector by
15473 pointer.
15474 (get_xmethod_arg_types): Rename to...
15475 (xmethod_worker::get_arg_types): ... this, and adjust.
15476 (get_xmethod_result_type): Rename to...
15477 (xmethod_worker::get_result_type): ... this, and adjust.
15478 (invoke_xmethod): Remove.
15479 (free_xmethod_worker): Remove.
15480 (free_xmethod_worker_vec): Remove.
15481 * extension.h (enum ext_lang_rc): Move here from
15482 extension-priv.h.
15483 (struct xmethod_worker): Add constructor and destructor.
15484 <data>: Remove.
15485 <value>: Remove.
15486 <invoke, clone, do_get_result_type, do_get_arg_types>: New
15487 virtual pure methods.
15488 <get_arg_types, get_result_type>: New methods.
15489 (xmethod_worker_ptr): Remove typedef.
15490 (DEF_VEC_P (xmethod_worker_ptr)): Remove.
15491 (xmethod_worker_vec): Remove typedef.
15492 (xmethod_worker_up): New typedef.
15493 (invoke_xmethod): Remove.
15494 (clone_xmethod_worker): Remove.
15495 (free_xmethod_worker): Remove.
15496 (free_xmethod_worker_vec): Remove.
15497 (get_xmethod_arg_types): Remove.
15498 (get_xmethod_result_type): Remove.
15499 * valops.c (find_method_list): Use std::vector, don't use
15500 intermediate vector.
15501 (value_find_oload_method_list): Use std::vector.
15502 (find_overload_match): Use std::vector.
15503 (find_oload_champ): Use std::vector.
15504 * value.c (value_free): Use operator delete.
15505 (value_of_xmethod): Rename to...
15506 (value_from_xmethod): ... this. Don't assign
15507 xmethod_worker::value, take rvalue-reference.
15508 (result_type_of_xmethod): Adjust.
15509 (call_xmethod): Adjust.
15510 * value.h: Include extension.h.
15511 (struct xmethod_worker): Don't forward-declare.
15512 (value_of_xmethod): Rename to...
15513 (value_from_xmethod): ... this, take rvalue-reference.
15514 * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
15515 (struct python_xmethod_worker): ... this, add constructor and
15516 destructor.
15517 <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
15518 (gdbpy_free_xmethod_worker_data): Rename to...
15519 (python_xmethod_worker::~python_xmethod_worker): ... this and
15520 adjust.
15521 (gdbpy_clone_xmethod_worker_data): Rename to...
15522 (python_xmethod_worker::clone): ... this and adjust.
15523 (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
15524 temporary vector.
15525 (gdbpy_get_xmethod_arg_types): Rename to...
15526 (python_xmethod_worker::do_get_arg_types): ... this and adjust.
15527 (gdbpy_get_xmethod_result_type): Rename to...
15528 (python_xmethod_worker::do_get_result_type): ... this and
15529 adjust.
15530 (gdbpy_invoke_xmethod): Rename to...
15531 (python_xmethod_worker::invoke): ... this and adjust.
15532 (new_python_xmethod_worker): Rename to...
15533 (python_xmethod_worker::python_xmethod_worker): ... this and
15534 adjust.
15535 * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
15536 Remove.
15537 (gdbpy_free_xmethod_worker_data): Remove.
15538 (gdbpy_get_matching_xmethod_workers): Use std::vector.
15539 (gdbpy_get_xmethod_arg_types): Remove.
15540 (gdbpy_get_xmethod_result_type): Remove.
15541 (gdbpy_invoke_xmethod): Remove.
15542 * python/python.c (python_extension_ops): Remove obsolete
15543 callbacks.
15544
e379cee6
PA
155452018-01-05 Pedro Alves <palves@redhat.com>
15546
15547 PR gdb/18653
15548 * common/signals-state-save-restore.c
15549 (save_original_signals_state): New parameter 'quiet'. Warn if we
15550 find a custom handler preinstalled, instead of internal erroring.
15551 But only warn if !quiet.
15552 * common/signals-state-save-restore.h
15553 (save_original_signals_state): New parameter 'quiet'.
15554 * main.c (captured_main_1): Move save_original_signals_state call
15555 after option handling, and pass QUIET.
15556
a655456c
PA
155572018-01-05 Pedro Alves <palves@redhat.com>
15558
15559 * spu-tdep.c (spu_catch_start): Pass
15560 symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
15561
de63c46b
PA
155622018-01-05 Pedro Alves <palves@redhat.com>
15563
15564 PR gdb/22670
15565 * ada-lang.c (literal_symbol_name_matcher): New function.
15566 (ada_get_symbol_name_matcher): Use it for
15567 symbol_name_match_type::SEARCH_NAME.
15568 * block.c (block_lookup_symbol): New parameter 'match_type'. Pass
15569 it down instead of assuming symbol_name_match_type::FULL.
15570 * block.h (block_lookup_symbol): New parameter 'match_type'.
15571 * c-valprint.c (print_unpacked_pointer): Use
15572 lookup_symbol_search_name instead of lookup_symbol.
15573 * compile/compile-object-load.c (get_out_value_type): Pass down
15574 symbol_name_match_type::SEARCH_NAME.
15575 * cp-namespace.c (cp_basic_lookup_symbol): Pass down
15576 symbol_name_match_type::FULL.
15577 * cp-support.c (cp_get_symbol_name_matcher): Handle
15578 symbol_name_match_type::SEARCH_NAME.
15579 * infrun.c (insert_exception_resume_breakpoint): Use
15580 lookup_symbol_search_name.
15581 * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
15582 * psymtab.c (maintenance_check_psymtabs): Use
15583 symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
15584 * stack.c (print_frame_args): Use lookup_symbol_search_name and
15585 SYMBOL_SEARCH_NAME.
15586 * symtab.c (lookup_local_symbol): Don't demangle the lookup name
15587 if symbol_name_match_type::SEARCH_NAME.
15588 (lookup_symbol_in_language): Pass down
15589 symbol_name_match_type::FULL.
15590 (lookup_symbol_search_name): New.
15591 (lookup_language_this): Pass down
15592 symbol_name_match_type::SEARCH_NAME.
15593 (lookup_symbol_aux, lookup_local_symbol): New parameter
15594 'match_type'. Pass it down.
15595 * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
15596 (lookup_symbol_search_name): New declaration.
15597 (lookup_symbol_in_block): New 'match_type' parameter.
15598
f98fc17b
PA
155992018-01-05 Pedro Alves <palves@redhat.com>
15600
15601 PR gdb/22670
15602 * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
15603 ada_lookup_symbol.
15604 (ada_lookup_symbol): Reimplement in terms of
15605 ada_lookup_symbol_list, bits factored out from
15606 ada_lookup_encoded_symbol.
15607
342f8240
JB
156082018-01-05 Joel Brobecker <brobecker@adacore.com>
15609
15610 * ada-exp.y (write_object_renaming): When subscripting an array
15611 using a symbol as the index, pass the block in call to
15612 ada_lookup_encoded_symbol when looking that symbol up.
15613
7150d33c
JG
156142018-01-05 Jerome Guitton <guitton@adacore.com>
15615
15616 * ada-lang.c (ada_array_length): Use ada_index_type instead of
15617 TYPE_INDEX_TYPE.
15618
cc0e770c
JB
156192018-01-05 Joel Brobecker <brobecker@adacore.com>
15620
15621 * ada-lang.c (ada_to_fixed_value_create): Add handling of
15622 the case where VALUE_LVAL (val0) is not lval_memory.
15623
f79da888 156242018-01-05 Xavier Roirand <roirand@adacore.com>
e3861a03
XR
15625
15626 * ada-valprint.c (print_optional_low_bound): Handle
15627 character-indexed array printing like boolean-indexed array
15628 printing.
15629
cd385f94
JB
156302018-01-05 Joel Brobecker <brobecker@adacore.com>
15631
15632 * NEWS: Create a new section for the next release branch.
15633 Rename the section of the current branch, now that it has
15634 been cut.
15635
09aca949
JB
156362018-01-05 Joel Brobecker <brobecker@adacore.com>
15637
15638 GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
15639 * version.in: Bump version to 8.1.50.DATE-git.
15640
9f757bf7
XR
156412018-01-03 Xavier Roirand <roirand@adacore.com>
15642
15643 * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
15644 Add field.
15645 * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
15646 Add field.
15647 (default_exception_support_info) <catch_handlers_sym>: Add field.
15648 (exception_support_info_fallback) <catch_handlers_sym>: Add field.
15649 (ada_exception_name_addr_1): Add "catch handlers" handling.
15650 (ada_exception_catchpoint_cond_string) <ex>: New parameter.
15651 Update all callers.
15652 (create_excep_cond_exprs) <ex>: Add parameter.
15653 (re_set_exception): Update create_excep_cond_exprs call.
15654 (print_it_exception, print_one_exception, print_mention_exception)
15655 (print_recreate_exception): Add "catch handler" handling.
15656 (allocate_location_catch_handlers, re_set_catch_handlers)
15657 (check_status_catch_handlers, print_it_catch_handlers)
15658 (print_one_catch_handlers, print_mention_catch_handlers)
15659 (print_recreate_catch_handlers): New function.
15660 (catch_handlers_breakpoint_ops): New variable.
15661 (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
15662 Add parameter. Add "catch handler" handling.
15663 (ada_exception_sym_name, ada_exception_breakpoint_ops):
15664 Add "catch handler" handling.
15665 (ada_exception_catchpoint_cond_string): Add "catch handler"
15666 handling.
15667 (create_ada_exception_catchpoint): Update create_excep_cond_exprs
15668 call.
15669 (catch_ada_handlers_command): New function.
15670 (initialize_ada_catchpoint_ops): Initialize "catch handlers"
15671 operations structure.
15672 (_initialize_ada_language): Add "catch handlers" command entry.
15673 * NEWS: Document "catch handlers" feature.
15674
9fe561ab
JB
156752018-01-02 Joel Brobecker <brobecker@adacore.com>
15676
15677 * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
15678 account when creating the array type of the slice.
15679 (ada_value_slice): Likewise.
15680
a405673c
JB
156812018-01-02 Joel Brobecker <brobecker@adacore.com>
15682
15683 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
15684 New enum value.
15685 (create_array_type_with_stride): Add byte_stride_prop parameter.
15686 * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
15687 New parameter. Update all callers in this file.
15688 (array_type_has_dynamic_stride): New function.
15689 (is_dynamic_type_internal, resolve_dynamic_array): Add handling
15690 of arrays with dynamic byte strides.
15691 * dwarf2read.c (read_array_type): Add support for dynamic
15692 DW_AT_byte_stride attributes.
15693
74a2f8ff
JB
156942018-01-02 Joel Brobecker <brobecker@adacore.com>
15695
15696 * dwarf2read.c (read_unspecified_type): Treat
15697 DW_TAG_enumeration_type DIEs from Ada units as stubs.
15698
e2882c85
JB
156992018-01-01 Joel Brobecker <brobecker@adacore.com>
15700
15701 Update copyright year range in all GDB files.
15702
5e70ee09 157032018-01-01, 18 Joel Brobecker <brobecker@adacore.com>
1690bb24
JB
15704
15705 * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
15706 and gdb/testsuite/gdb.base/step-line.c.
15707
0f0c98a8
JB
157082018-01-01 Joel Brobecker <brobecker@adacore.com>
15709
15710 * copyright.py (main): Dump the contents of
15711 MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
15712 even if BY_HAND is empty.
15713
82e1e79a
JB
157142018-01-01 Joel Brobecker <brobecker@adacore.com>
15715
15716 * top.c (print_gdb_version): Update Copyright year in version
15717 message.
15718
053f54e5 157192018-01-01 Joel Brobecker <brobecker@adacore.com>
47fea877 15720
053f54e5 15721 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
47fea877 15722
053f54e5 15723For older changes see ChangeLog-2017.
c906108c
SS
15724\f
15725Local Variables:
15726mode: change-log
15727left-margin: 8
15728fill-column: 74
15729version-control: never
57da7796 15730coding: utf-8
c906108c 15731End:
This page took 3.035012 seconds and 4 git commands to generate.