Move some declarations to source.h
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2018-02-14 Tom Tromey <tom@tromey.com>
2
3 * solib.c: Include source.h.
4 * nto-tdep.c: Include source.h.
5 * mi/mi-cmd-env.c: Include source.h.
6 * infcmd.c: Include source.h.
7 * exec.c: Include source.h.
8 * defs.h (enum openp_flag, openp, source_full_path_of, mod_path)
9 (add_path, directory_switch, source_path, init_source_path): Move
10 declarations...
11 * source.h (enum openp_flag, openp, source_full_path_of, mod_path)
12 (add_path, directory_switch, source_path, init_source_path):
13 ...here.
14
15 2018-02-14 Tom Tromey <tom@tromey.com>
16
17 * solist.h (exec_file_find, solib_find): Return
18 unique_xmalloc_ptr.
19 (solib_bfd_fopen): Take a const char *.
20 * solib.c (solib_find_1): Return unique_xmalloc_ptr.
21 (exec_file_find, solib_find): Likewise.
22 (solib_bfd_fopen): Do not take ownership of "pathname".
23 (solib_bfd_open): Use unique_xmalloc_ptr.
24 * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr.
25 * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr.
26 * infrun.c (follow_exec): Use unique_xmalloc_ptr.
27 * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr.
28
29 2018-02-14 Joel Brobecker <brobecker@adacore.com>
30
31 * ada-lang.c (name_match_type_from_name): Remove reference to
32 ada_name_for_lookup in function's documentation.
33 * ada-lang.h (ada_name_for_lookup): Delete declaration.
34
35 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
36
37 * defs.h (enum openp_flags): New enum.
38 (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH):
39 Move to enum openp_flags.
40 (openp_flags): New enum flags.
41 (openp): Change parameter type to openp_flags.
42 * source.c (openp): Change parameter type to openp_flags.
43 * cli/cli-cmds.c (find_and_open_script): Use openp_flags.
44 * dwarf2read.c (try_open_dwop_file): Use openp_flags.
45
46 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
47
48 * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show
49 per-command.
50
51 2018-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
52
53 * dwarf2read.c (dwarf2_release_queue): Delete function, move body
54 into...
55 (class dwarf2_queue_guard): ...the destructor of this new class.
56 (dw2_do_instantiate_symtab): Create instance of the new class
57 dwarf2_queue_guard, remove cleanup.
58
59 2018-02-09 Tom Tromey <tom@tromey.com>
60
61 * source.c (find_source_lines): Don't reference past the end of
62 the vector.
63
64 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
65
66 * remote.c (remote_btrace_maybe_reopen): Change error message.
67 * btrace.c (btrace_enable): Likewise.
68 (parse_xml_btrace): Likewise.
69 (parse_xml_btrace_conf): Likewise.
70
71 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
72
73 * nat/linux-btrace.c (diagnose_perf_event_open_fail): New.
74 (linux_enable_pt, linux_enable_bts): Call
75 diagnose_perf_event_open_fail.
76
77 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
78
79 * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message.
80 Remove parameter and change return type. Update callers. Move it.
81 (linux_enable_bts, linux_enable_pt): Improve error message.
82 (linux_enable_pt): Remove zero buffer size check.
83 (linux_enable_btrace): Improve error messages. Remove NULL return
84 check.
85
86 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
87
88 * btrace.c (btrace_enable): Remove target_supports_btrace call.
89 * nat/linux-btrace.c (perf_event_pt_event_type): Move.
90 (kernel_supports_bts, kernel_supports_pt, linux_supports_bts)
91 (linux_supports_pt, linux_supports_btrace): Remove.
92 (linux_enable_bts): Call cpu_supports_bts.
93 * nat/linux-btrace.h (linux_supports_btrace): Remove.
94 * remote.c (remote_supports_btrace): Remove.
95 (init_remote_ops): Remove remote_supports_btrace.
96 * target-delegates.c: Regenerated.
97 * target.c (target_supports_btrace): Remove.
98 * target.h (target_ops) <to_supports_btrace>: Remove
99 (target_supports_btrace): Remove.
100 * x86-linux-nat.c (x86_linux_create_target): Remove
101 linux_supports_btrace.
102
103 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
104
105 * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling
106 btrace failed.
107 * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling
108 exception and use message in own exception.
109
110 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
111
112 * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h.
113 (perf_event_pt_event_type): Use gdb_file_up.
114 (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr,
115 scoped_fd, and scoped_mmap.
116
117 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
118
119 * common/scoped_mmap.h: New.
120 * unittests/scoped_mmap-selftest.c: New.
121 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
122 unittests/scoped_mmap-selftest.c.
123
124 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
125
126 * common/scoped_fd.h: New.
127 * unittests/scoped_fd-selftest.c: New.
128 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
129 unittests/scoped_fd-selftest.c.
130
131 2018-02-09 Tom Tromey <tom@tromey.com>
132
133 * auto-load.c (auto_load_section_scripts): Use
134 gdb::unique_xmalloc_ptr.
135
136 2018-02-09 Tom Tromey <tom@tromey.com>
137
138 * auto-load.c (execute_script_contents): Use std::string.
139
140 2018-02-09 Joel Brobecker <brobecker@adacore.com>
141
142 * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new
143 Python function, rather than a new command.
144
145 2018-02-08 Tom Tromey <tom@tromey.com>
146
147 * solib.c (solib_find_1): Use std::string.
148 (solib_bfd_fopen): Use unique_xmalloc_ptr.
149
150 2018-02-08 Tom Tromey <tom@tromey.com>
151
152 * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr.
153
154 2018-02-08 Tom Tromey <tom@tromey.com>
155
156 * source.c (find_source_lines): Use gdb::def_vector.
157
158 2018-02-08 Tom Tromey <tom@tromey.com>
159
160 * macrocmd.c (struct temporary_macro_definition): New.
161 (macro_define_command): Use temporary_macro_definition. Remove
162 cleanups.
163 (free_macro_definition_ptr): Remove.
164
165 2018-02-08 Tom Tromey <tom@tromey.com>
166
167 * macroexp.c (maybe_expand): Use std::string.
168
169 2018-02-08 Tom Tromey <tom@tromey.com>
170
171 * macroexp.c (struct macro_buffer): Add initializers for some
172 members.
173 (init_buffer, init_shared_buffer, free_buffer)
174 (free_buffer_return_text): Remove.
175 (macro_buffer): New constructors.
176 (~macro_buffer): New destructor.
177 (macro_buffer::set_shared): New method.
178 (macro_buffer::resize_buffer, macro_buffer::appendc)
179 (macro_buffer::appendmem): Now methods, not free functions.
180 (set_token, append_tokens_without_splicing, stringify)
181 (macro_stringify): Update.
182 (gather_arguments): Change return type. Remove argc_p argument,
183 add args_ptr argument. Use std::vector.
184 (substitute_args): Remove argc argument. Accept std::vector.
185 (expand): Update. Use std::vector.
186 (scan, macro_expand, macro_expand_next): Update.
187
188 2018-02-08 Tom Tromey <tom@tromey.com>
189
190 * symtab.c (default_collect_symbol_completion_matches_break_on):
191 Use unique_xmalloc_ptr.
192 * macroscope.h: (sal_macro_scope, user_macro_scope)
193 (default_macro_scope): Return unique_xmalloc_ptr.
194 * macroscope.c (sal_macro_scope, user_macro_scope)
195 (default_macro_scope): Return unique_xmalloc_ptr.
196 * macroexp.h (macro_expand, macro_expand_once): Return
197 unique_xmalloc_ptr.
198 * macroexp.c (macro_expand, macro_expand_once): Return
199 unique_xmalloc_ptr.
200 * macrocmd.c (macro_expand_command, macro_expand_once_command)
201 (info_macro_command, info_macros_command): Use
202 unique_xmalloc_ptr.
203 * compile/compile-c-support.c (write_macro_definitions): Use
204 unique_xmalloc_ptr.
205 * c-exp.y (c_parse): Use unique_xmalloc_ptr.
206
207 2018-02-07 Simon Marchi <simon.marchi@ericsson.com>
208
209 * value.c (value_static_field): Assign field type instead of
210 containing type when returning an optimized out value.
211
212 2018-02-06 Yao Qi <yao.qi@linaro.org>
213
214 * ft32-tdep.c (ft32_read_pc): Remove.
215 (ft32_write_pc): Remove.
216 (ft32_gdbarch_init): Update.
217 * m32r-tdep.c (m32r_read_pc): Remove.
218 (m32r_gdbarch_init): Update.
219 * mep-tdep.c (mep_read_pc): Remove.
220 (mep_gdbarch_init): Update.
221 * microblaze-tdep.c (microblaze_write_pc): Remove.
222 (microblaze_gdbarch_init): Update.
223 * mn10300-tdep.c (mn10300_read_pc): Remove.
224 (mn10300_write_pc): Remove.
225 (mn10300_gdbarch_init): Update.
226 * moxie-tdep.c (moxie_read_pc): Remove.
227 (moxie_write_pc): Remove.
228 (moxie_gdbarch_init): Update.
229
230 2018-02-06 Yao Qi <yao.qi@linaro.org>
231
232 * expprint.c (print_subexp_standard): Handle
233 OP_F77_UNDETERMINED_ARGLIST.
234 (dump_subexp_body_standard): Likewise.
235
236 2018-02-05 Alan Hayward <alan.hayward@arm.com>
237
238 * target-descriptions.c (tdesc_element_visitor) Add empty
239 implementations.
240 (tdesc_type): Move make_gdb_type from here.
241 (tdesc_type_builtin): Likewise.
242 (tdesc_type_vector): Likewise.
243 (tdesc_type_with_fields): Move make_gdb_type_ functions from here.
244 (make_gdb_type_struct): Move from tdesc_type_with_fields.
245 (make_gdb_type_union): Likewise.
246 (make_gdb_type_flags): Likewise.
247 (make_gdb_type_enum): Likewise.
248 (make_gdb_type): New function.
249 (tdesc_register_type): Use static make_gdb_type.
250
251 2018-02-05 Ruslan Kabatsayev <b7.10110111@gmail.com>
252
253 * infcmd.c (default_print_one_register_info): Align natural-format
254 column values consistently one under another.
255 (pad_to_column): New function.
256
257 2018-02-05 Joel Brobecker <brobecker@adacore.com>
258
259 * dwarf2read.c (dwarf2_physname): Move commment.
260
261 2018-02-01 Leszek Swirski <leszeks@google.com>
262
263 * varobj.c (varobj_formatted_print_options): Allow recursive
264 pretty printing if pretty printing is enabled.
265
266 2018-02-01 Leszek Swirski <leszeks@google.com>
267
268 * c-exp.y (lex_one_token, classify_name, yylex): Don't classify
269 names after a structop as a filename.
270
271 2018-02-01 Yao Qi <yao.qi@linaro.org>
272
273 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it.
274 (arm_record_coproc_data_proc): Likewise.
275
276 2018-02-01 Yao Qi <yao.qi@linaro.org>
277
278 * arm-tdep.c (arm_record_extension_space): Change ret to signed.
279
280 2018-01-31 Nikola Prica <nikola.prica@rt-rk.com>
281
282 * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and
283 assign shifted lr_reg to fdata->lr_register when lr_reg is set.
284
285 2018-01-31 Pedro Alves <palves@redhat.com>
286
287 * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter.
288 * inflow.c (child_terminal_save_inferior): Wrap reference to
289 tcgetpgrp in HAVE_TERMIOS_H.
290 (child_interrupt, child_pass_ctrlc): Wrap references to signal in
291 _WIN32.
292 * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and
293 always iterate over all inferiors.
294 (gdbsim_cntrl_c): Adjust.
295 * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter.
296
297 2018-01-31 Joel Brobecker <brobecker@adacore.com>
298
299 * gdbtypes.c (lookup_array_range_type): Make sure the array's
300 index type is objfile-owned if the element type is as well.
301
302 2018-01-31 Joel Brobecker <brobecker@adacore.com>
303
304 GDB 8.1 released.
305
306 2018-01-30 Philipp Rudo <prudo@linux.vnet.ibm.com>
307
308 * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and
309 "features/s390x-linux64.c".
310 (_initialize_s390_linux_tdep): Remove initialization of tdescs
311 s390_linux32 and s390x_linux64.
312 (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set
313 default tdesc.
314 * s390-tdep.c: Include "features/s390-linux32.c" and
315 "features/s390x-linux64.c".
316 (s390_tdesc_valid): Add check for tdesc_has_registers.
317 (s390_gdbarch_init): Make sure there is always a valid tdesc.
318 (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and
319 tdesc_s390x_linux64.
320 * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and
321 tdesc_s390x_linux64 to...
322 * s390-tdep.h: ...here.
323
324 2018-01-30 Pedro Alves <palves@redhat.com>
325
326 PR gdb/13211
327 * config.in, configure: Regenerate.
328 * configure.ac: Check for getpgid.
329 * go32-nat.c (go32_pass_ctrlc): New.
330 (go32_target): Install it.
331 * inf-child.c (inf_child_target): Install
332 child_terminal_save_inferior, child_pass_ctrlc and
333 child_interrupt.
334 * inf-ptrace.c (inf_ptrace_interrupt): Delete.
335 (inf_ptrace_target): No longer install it.
336 * infcmd.c (interrupt_target_1): Adjust.
337 * inferior.h (child_terminal_save_inferior, child_pass_ctrlc)
338 (child_interrupt): Declare.
339 (inferior::terminal_state): New.
340 * inflow.c (struct terminal_info): Update comments.
341 (inferior_process_group): Delete.
342 (terminal_is_ours): Delete.
343 (gdb_tty_state): New.
344 (child_terminal_init): Adjust.
345 (is_gdb_terminal, sharing_input_terminal_1)
346 (sharing_input_terminal): New functions.
347 (child_terminal_inferior): Adjust. Use sharing_input_terminal.
348 Set the process's actual process group in the foreground if
349 possible. Handle is_ours_for_output/is_ours distinction. Don't
350 mark terminal as the inferior's if not sharing GDB's terminal.
351 Don't check attach_flag.
352 (child_terminal_ours_for_output, child_terminal_ours): Adjust to
353 pass down a target_terminal_state.
354 (child_terminal_save_inferior): New, factored out from ...
355 (child_terminal_ours_1): ... this. Handle
356 target_terminal_state::is_ours_for_output.
357 (child_interrupt, child_pass_ctrlc): New.
358 (inflow_inferior_exit): Clear the inferior's terminal_state.
359 (copy_terminal_info): Copy the inferior's terminal state.
360 (_initialize_inflow): Remove reference to terminal_is_ours.
361 * inflow.h (inferior_process_group): Delete.
362 * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust.
363 * procfs.c (procfs_target): Don't install procfs_interrupt.
364 (procfs_interrupt): Delete.
365 * remote.c (remote_serial_quit_handler): Adjust.
366 (remote_interrupt): Remove ptid parameter. Adjust.
367 * target-delegates.c: Regenerate.
368 * target.c: Include "terminal.h".
369 (target_terminal::terminal_state): Rename to ...
370 (target_terminal::m_terminal_state): ... this.
371 (target_terminal::init): Adjust.
372 (target_terminal::inferior): Adjust to per-inferior
373 terminal_state.
374 (target_terminal::restore_inferior, target_terminal_is_ours_kind): New.
375 (target_terminal::ours, target_terminal::ours_for_output): Use
376 target_terminal_is_ours_kind.
377 (target_interrupt): Remove ptid parameter. Adjust.
378 (default_target_pass_ctrlc): Adjust.
379 * target.h (target_ops::to_terminal_save_inferior): New field.
380 (target_ops::to_interrupt): Remove ptid_t parameter.
381 (target_interrupt): Remove ptid_t parameter. Update comment.
382 (target_pass_ctrlc): Update comment.
383 * target/target.h (target_terminal_state): New scoped enum,
384 factored out of ...
385 (target_terminal::terminal_state): ... here.
386 (target_terminal::inferior): Update comments.
387 (target_terminal::restore_inferior): New.
388 (target_terminal::is_inferior, target_terminal::is_ours)
389 (target_terminal::is_ours_for_output): Adjust.
390 (target_terminal::scoped_restore_terminal_state): Adjust to
391 rename, and call restore_inferior() instead of inferior().
392 (target_terminal::scoped_restore_terminal_state::m_state): Change
393 type.
394 (target_terminal::terminal_state): Rename to ...
395 (target_terminal::m_terminal_state): ... this and change type.
396
397 2018-01-30 Pedro Alves <palves@redhat.com>
398
399 * linux-nat.c (wait_for_signal): New function.
400 (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend
401 directly.
402 (async_terminal_is_ours)
403 (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete.
404 (linux_nat_add_target): Don't override
405 to_terminal_inferior/to_terminal_ours.
406
407 2018-01-29 Sergio Durigan Junior <sergiodj@redhat.com>
408
409 * remote.c (remote_follow_fork): Don't call "detach_inferior".
410
411 2018-01-28 Simon Marchi <simon.marchi@ericsson.com>
412
413 * dwarf2read.c (free_dwo_files): Add forward-declaration.
414 (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from
415 dwarf2_per_objfile_free here.
416 (dwarf2_per_objfile_free): Remove.
417 (_initialize_dwarf2_read): Don't register
418 dwarf2_per_objfile_free as a registry cleanup.
419
420 2018-01-27 Eli Zaretskii <eliz@gnu.org>
421
422 Avoid compilation errors in MinGW native builds
423
424 The error is triggered by including python-internal.h, and the
425 error message is:
426
427 In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0,
428 from build-gnulib/import/math.h:27,
429 from d:/usr/Python26/include/pyport.h:235,
430 from d:/usr/Python26/include/Python.h:58,
431 from python/python-internal.h:94,
432 from python/py-arch.c:24:
433 d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared
434 using ::hypot;
435 ^~~~~
436
437 This happens because Python headers define 'hypot' to expand t
438 '_hypot' in the Windows builds.
439 * python/python-internal.h (_hypot) [__MINGW32__]: Define back to
440 'hypoth'. This avoids a compilation error.
441
442 2018-01-26 Alan Hayward <alan.hayward@arm.com>
443
444 * MAINTAINERS (Write After Approval): Fix ordering.
445
446 2018-01-26 Alan Hayward <alan.hayward@arm.com>
447
448 * MAINTAINERS (Write After Approval): Add Alan Hayward.
449
450 2018-01-26 Alan Modra <amodra@gmail.com>
451
452 * ppc-linux-tdep.c (powerpc32_plt_stub): Make const.
453 (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so.
454 Remove nop. Make const. Comment.
455 (powerpc32_plt_stub_so_2): New.
456 (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN.
457 Correct count. Update uses.
458 (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too.
459 Move common code reading PLT entry word. Correct
460 powerpc32_plt_stub PLT address calculation.
461 * ppc64-tdep.c (ppc64_standard_linkage1): Make const.
462 (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise.
463 (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise.
464 (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise.
465 (ppc64_standard_linkage8): Likewise.
466 * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const.
467 Correct insns description.
468 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
469
470 2018-01-24 Pedro Alves <palves@redhat.com>
471
472 GCC PR libstdc++/83906
473 * gdbtypes.c (operator==(const dynamic_prop &,
474 const dynamic_prop &)): New.
475 (operator==(const range_bounds &, const range_bounds &)): New.
476 (check_types_equal): Use them instead of memcmp.
477 * gdbtypes.h (operator==(const dynamic_prop &,
478 const dynamic_prop &)): Declare.
479 (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare.
480 (operator==(const range_bounds &, const range_bounds &)): Declare.
481 (operator!=(const range_bounds &, const range_bounds &)): Declare.
482
483 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
484
485 * s390-linux-tdep.c (s390_record_address_mask)
486 (s390_record_calc_disp_common, s390_record_calc_disp)
487 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
488 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
489 (s390_process_record): Move to s390-tdep.c.
490 (s390_linux_init_abi_any): Adjust.
491 * s390-tdep.c (s390_record_address_mask)
492 (s390_record_calc_disp_common, s390_record_calc_disp)
493 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
494 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
495 (s390_process_record): Moved from s390-linux-tdep.c
496 (s390_gdbarch_init): Adjust.
497
498 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
499
500 * s390-linux-nat.c (s390-tdep.h): New include.
501 * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o.
502 (HFILES_NO_SRCDIR): Add s390-tdep.h.
503 (ALLDEPFILES): Add s390-tdep.c.
504 * configure.tgt (s390*-*-linux*): Add s390-tdep.o.
505 * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to...
506 * s390-tdep.h: ...this. New file.
507 * s390-linux-tdep.c (s390-tdep.h): New include.
508 (_initialize_s390_tdep): Rename to...
509 (_initialize_s390_linux_tdep): ...this and adjust.
510 (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep)
511 (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to
512 s390-tdep.h.
513 (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri)
514 (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy)
515 (s390_is_partial_instruction, s390_software_single_step)
516 (is_non_branch_ril, s390_displaced_step_copy_insn)
517 (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep)
518 (s390_prologue_data, s390_addr, s390_store, s390_load)
519 (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue)
520 (s390_register_call_saved, s390_guess_tracepoint_registers)
521 (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum)
522 (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register)
523 (s390_pseudo_register_name, s390_pseudo_register_type)
524 (s390_pseudo_register_read, s390_pseudo_register_write)
525 (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect)
526 (s390_ax_pseudo_register_push_stack, s390_gen_return_address)
527 (s390_addr_bits_remove, s390_address_class_type_flags)
528 (s390_address_class_type_flags_to_name)
529 (s390_address_class_name_to_type_flags, s390_effective_inner_type)
530 (s390_function_arg_float, s390_function_arg_vector)
531 (is_power_of_two, s390_function_arg_integer, s390_arg_state)
532 (s390_handle_arg, s390_push_dummy_call, s390_dummy_id)
533 (s390_frame_align, s390_register_return_value, s390_return_value)
534 (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp)
535 (s390_unwind_pseudo_register, s390_adjust_frame_regnum)
536 (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg)
537 (s390_trad_frame_prev_register, s390_unwind_cache)
538 (s390_prologue_frame_unwind_cache)
539 (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache)
540 (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind)
541 (s390_stub_unwind_cache, s390_stub_frame_unwind_cache)
542 (s390_stub_frame_this_id, s390_stub_frame_prev_register)
543 (s390_stub_frame_sniffer, s390_stub_frame_unwind)
544 (s390_frame_base_address, s390_local_base_address)
545 (s390_frame_base, s390_gcc_target_options)
546 (s390_gnu_triplet_regexp, s390_stap_is_single_operand)
547 (s390_validate_reg_range, s390_tdesc_valid)
548 (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to...
549 * s390-tdep.c: ...this. New file.
550
551 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
552
553 * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook.
554 (s390_process_record, s390_gdbarch_tdep_alloc)
555 (s390_linux_init_abi_any): Use/set new hook.
556
557 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
558
559 * s390-linux-tdep.c (osabi.h): New include.
560 (s390_linux_init_abi_31, s390_linux_init_abi_64)
561 (s390_linux_init_abi_any): New functions.
562 (s390_gdbarch_init, _initialize_s390_tdep): Adjust.
563
564 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
565
566 * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for
567 tdesc_has_registers check
568
569 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
570
571 * s390-linux-tdep.c (s390_tdesc_valid): New function.
572 (s390_validate_reg_range): New macro.
573 (s390_gdbarch_init): Adjust.
574
575 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
576
577 * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field.
578 (s390_gdbarch_tdep_alloc): Adjust.
579 (s390_gdbarch_init): Adjust.
580
581 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
582
583 * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2>
584 <have_tdb>: Change type to bool.
585 (s390_gdbarch_tdep_alloc): Adjust.
586 (s390_gdbarch_init): Adjust.
587
588 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
589
590 * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field.
591 (gdbarch_tdep) <have_upper, have_vx>: New fields.
592 (s390_gdbarch_tdep_alloc): New function.
593 (s390_gdbarch_init): Allocate tdep at start and use its fields
594 instead of separate variables.
595
596 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
597
598 * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
599 when looking for cached gdbarch and add comment for remaining.
600
601 2018-01-22 Pedro Alves <palves@redhat.com>
602 Sergio Durigan Junior <sergiodj@redhat.com>
603
604 * typeprint.c (whatis_exp): Initialize "val" in the "whatis type"
605 case.
606
607 2018-01-22 Maciej W. Rozycki <macro@mips.com>
608
609 * MAINTAINERS: Update my company e-mail address.
610
611 2018-01-22 Yao Qi <yao.qi@linaro.org>
612
613 * regcache.c (cooked_write_test): New function.
614 (_initialize_regcache): Register the test.
615
616 2018-01-22 Yao Qi <yao.qi@linaro.org>
617
618 * ia64-tdep.c (ia64_pseudo_register_read): Call
619 regcache->cooked_read instead of regcache_cooked_read_unsigned.
620 * m32c-tdep.c (m32c_cat_read): Likewise.
621 (m32c_r3r2r1r0_read): Likewise.
622 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
623 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
624
625 2018-01-22 Yao Qi <yao.qi@linaro.org>
626
627 * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
628 method raw_read instead of regcache_raw_read.
629 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
630 * arm-tdep.c (arm_neon_quad_read): Likewise.
631 * avr-tdep.c (avr_pseudo_register_read): Likewise.
632 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
633 * frv-tdep.c (frv_pseudo_register_read): Likewise.
634 * h8300-tdep.c (h8300_pseudo_register_read): Likewise.
635 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
636 (i386_pseudo_register_read_into_value): Likewise.
637 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
638 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
639 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
640 * rl78-tdep.c (rl78_pseudo_register_read): Likewise.
641 * s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
642 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
643 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
644 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
645 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
646
647 2018-01-22 Yao Qi <yao.qi@linaro.org>
648
649 * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
650 * configure.tgt: Remove target mt.
651 * mt-tdep.c: Remove.
652 * regcache.c (cooked_read_test): Remove the check for mt.
653
654 2018-01-22 Yao Qi <yao.qi@linaro.org>
655
656 * jit.c (jit_frame_prev_register): Call regcache::cooked_read
657 instead of gdbarch_pseudo_register_read_value.
658
659 2018-01-22 Joel Brobecker <brobecker@adacore.com>
660
661 * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
662 language is Ada.
663
664 2018-01-22 Joel Brobecker <brobecker@adacore.com>
665
666 * linespec.c (create_sals_line_offset): Remove code that preserved
667 the symtab_and_line's line number.
668
669 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
670
671 * varobj.c (varobj_create): Don't set valid_block when creating a
672 floating varobj.
673
674 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
675
676 * varobj.c (varobj_create): Remove out of date comment.
677
678 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
679
680 PR mi/20395
681 * ada-exp.y (write_var_from_sym): Pass extra parameter when
682 updating innermost block.
683 * parse.c (innermost_block_tracker::update): Take extra type
684 parameter, and check types match before updating innermost block.
685 (write_dollar_variable): Update innermost block for registers.
686 * parser-defs.h (enum innermost_block_tracker_type): New enum.
687 (innermost_block_tracker::innermost_block_tracker): Initialise
688 m_types member.
689 (innermost_block_tracker::reset): Take type parameter.
690 (innermost_block_tracker::update): Take type parameter, and pass
691 type through as needed.
692 (innermost_block_tracker::m_types): New member.
693 * varobj.c (varobj_create): Pass type when reseting innermost
694 block.
695
696 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
697
698 * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
699 * ada-lang.c (resolve_subexp): Likewise.
700 * breakpoint.c (set_breakpoint_condition) Likewise.
701 (watch_command_1) Likewise.
702 * c-exp.y (variable): Likewise.
703 * d-exp.y (PrimaryExpression): Likewise.
704 * f-exp.y (variable): Likewise.
705 * go-exp.y (variable): Likewise.
706 * m2-exp.y (variable): Likewise.
707 * objfiles.c (objfile::~objfile): Likewise.
708 * p-exp.y (variable): Likewise.
709 * parse.c (innermost_block): Change type.
710 * parser-defs.h (class innermost_block_tracker): New.
711 (innermost_block): Change to innermost_block_tracker.
712 * printcmd.c (display_command): Switch to innermost_block API.
713 (do_one_display): Likewise.
714 * rust-exp.y (do_one_display): Likewise.
715 * symfile.c (clear_symtab_users): Likewise.
716 * varobj.c (varobj_create): Switch to innermost_block API, replace
717 use of innermost_block with block stored on varobj object.
718
719 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
720
721 * expression.h (innermost_block): Remove declaration.
722 * varobj.c: Add 'parser-defs.h' include.
723
724 2018-01-19 Tom Tromey <tom@tromey.com>
725
726 * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
727 symbols in the static and global blocks.
728
729 2018-01-19 James Clarke <jrtc27@jrtc27.com>
730
731 * nat/linux-ptrace.c: Remove unnecessary reinclusion of
732 gdb_ptrace.h, and move including gdb_wait.h ...
733 * nat/linux-ptrace.h: ... to here.
734
735 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
736
737 * inf-ptrace.c (inf_ptrace_detach): Adjust call to
738 inf_ptrace_detach_success.
739 (inf_ptrace_detach_success): Add inferior parameter, use it
740 instead of inferior_ptid, pass it to detach_inferior.
741 * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
742 parameter.
743 * inferior.c (detach_inferior): Add overload that takes an
744 inferior object.
745 * inferior.h (detach_inferior): Likewise.
746 * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
747 use inferior_ptid, adjust call to inf_ptrace_detach_success.
748 * linux-thread-db.c (thread_db_detach): Use inf parameter.
749
750 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
751
752 * target.h (struct target_ops) <to_detach>: Add inferior
753 parameter.
754 (target_detach): Likewise.
755 * target.c (dispose_inferior): Pass inferior down.
756 (target_detach): Pass inferior down. Assert that it is equal to
757 the current inferior.
758 * aix-thread.c (aix_thread_detach): Pass inferior down.
759 * corefile.c (core_file_command): Pass current_inferior() down.
760 * corelow.c (core_detach): Add inferior parameter.
761 * darwin-nat.c (darwin_detach): Likewise.
762 * gnu-nat.c (gnu_detach): Likewise.
763 * inf-ptrace.c (inf_ptrace_detach): Likewise.
764 * infcmd.c (detach_command): Pass current_inferior() down to
765 target_detach.
766 * infrun.c (follow_fork_inferior): Pass parent_inf to
767 target_detach.
768 (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
769 target_detach.
770 * linux-nat.c (linux_nat_detach): Add inferior parameter.
771 * linux-thread-db.c (thread_db_detach): Likewise.
772 * nto-procfs.c (procfs_detach): Likewise.
773 * procfs.c (procfs_detach): Likewise.
774 * record.c (record_detach): Likewise.
775 * record.h (struct inferior): Forward-declare.
776 (record_detach): Add inferior parameter.
777 * remote-sim.c (gdbsim_detach): Likewise.
778 * remote.c (remote_detach_1): Likewise.
779 (remote_detach): Likewise.
780 (extended_remote_detach): Likewise.
781 * sol-thread.c (sol_thread_detach): Likewise.
782 * target-debug.h (target_debug_print_inferior_p): New macro.
783 * target-delegates.c: Re-generate.
784 * top.c (kill_or_detach): Pass inferior down to target_detach.
785 * windows-nat.c (windows_detach): Add inferior parameter.
786
787 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
788
789 * target.h (struct target_ops) <to_detach>: Remove args
790 parameter.
791 (target_detach): Likewise.
792 * target.c (dispose_inferior): Adjust.
793 (target_detach): Remove args parameter, adjust.
794 * aix-thread.c (aix_thread_detach): Adjust.
795 * corefile.c (core_file_command): Adjust.
796 * corelow.c (core_detach): Adjust.
797 * darwin-nat.c (darwin_detach): Adjust.
798 * gnu-nat.c (gnu_detach): Adjust.
799 * inf-ptrace.c (inf_ptrace_detach): Adjust.
800 * infcmd.c (detach_command): Adjust
801 * infrun.c (follow_fork_inferior): Adjust.
802 (handle_vfork_child_exec_or_exit): Adjust.
803 * linux-fork.c (linux_fork_detach): Remove args parameter.
804 * linux-fork.h (linux_fork_detach): Likewise.
805 * linux-nat.c (linux_nat_detach): Likewise, and adjust.
806 * linux-thread-db.c (thread_db_detach): Likewise.
807 * nto-procfs.c (procfs_detach): Likewise.
808 * procfs.c (procfs_detach): Likewise.
809 (do_detach): Remove signo parameter.
810 * record.c (record_detach): Remove args parameter.
811 * record.h (record_detach): Likewise.
812 * remote-sim.c (gdbsim_detach): Likewise.
813 * remote.c (remote_detach_1): Likewise.
814 (remote_detach): Likewise.
815 (extended_remote_detach): Likewise.
816 * sol-thread.c (sol_thread_detach): Likewise.
817 * target-delegates.c: Re-generate.
818 * top.c (struct qt_args) <args>: Remove field.
819 (kill_or_detach): Don't pass args.
820 (quit_force): Don't set args.
821 * windows-nat.c (windows_detach): Remove args parameter.
822
823 2018-01-19 Yao Qi <yao.qi@linaro.org>
824
825 * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
826 (arm_linux_init_abi): Install it.
827
828 2018-01-19 Yao Qi <yao.qi@linaro.org>
829
830 * osabi.c (gdb_osabi_names): Extend the regexp for
831 arm-linux-gnueabihf.
832
833 2018-01-18 Yao Qi <yao.qi@linaro.org>
834
835 * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
836 m_abbrevs.
837 (abbrev_table::add_abbrev): Update.
838 (abbrev_table::lookup_abbrev): Update.
839
840 2018-01-18 Yao Qi <yao.qi@linaro.org>
841
842 * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
843
844 2018-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
845
846 * compile/compile.c (compile_to_object): Convert "triplet_rx"
847 to "std::string".
848
849 2018-01-17 Tom Tromey <tom@tromey.com>
850
851 * dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC.
852
853 2018-01-17 Tom Tromey <tom@tromey.com>
854
855 * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
856 * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
857 (create_array_type_with_stride): Update.
858 * dwarf2read.c (set_die_type): Update.
859
860 2018-01-17 Tom Tromey <tom@tromey.com>
861
862 * dwarf2read.c (delayed_method_info): Remove typedef.
863 (dwarf2_cu::method_info): Now a std::vector.
864 (add_to_method_list): Update.
865 (free_delayed_list): Remove.
866 (compute_delayed_physnames): Update.
867 (process_full_comp_unit, process_full_type_unit): Clear the method
868 list. Remove cleanups.
869 (psymtab_include_file_name): Add name_holder parameter. Use
870 unique_xmalloc_ptr.
871 (dwarf_decode_lines): Update.
872
873 2018-01-17 Tom Tromey <tom@tromey.com>
874 Simon Marchi <simon.marchi@ericsson.com>
875
876 * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
877 (dwarf2_per_objfile::free_cached_comp_units)
878 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
879 (init_cutu_and_read_dies_no_follow): Update.
880 (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
881 (dwarf2_cu::~dwarf2_cu): New.
882 (free_heap_comp_unit, free_stack_comp_unit): Remove.
883 (age_cached_comp_units, free_one_cached_comp_unit): Update.
884
885 2018-01-17 Tom Tromey <tom@tromey.com>
886 Simon Marchi <simon.marchi@ericsson.com>
887
888 * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
889 (struct die_reader_specs) <abbrev_table>: New member.
890 (struct abbrev_table): Add constructor.
891 <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
892 <abbrev_obstack>: Now an auto_obstack.
893 (abbrev_table_up): New typedef.
894 (init_cu_die_reader): Add abbrev_table parameter.
895 (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
896 Add result_dwo_abbrev_table.
897 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
898 (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
899 Update.
900 (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
901 parameter.
902 (skip_children): Update.
903 (abbrev_table::alloc_abbrev): Rename from
904 abbrev_table_alloc_abbrev.
905 (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
906 (abbrev_table::lookup_abbrev): Rename from
907 abbrev_table_lookup_abbrev.
908 (abbrev_table_read_table): Return abbrev_table_up.
909 (abbrev_table_free, abbrev_table_free_cleanup)
910 (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
911 (load_partial_dies): Update.
912
913 2018-01-17 Tom Tromey <tom@tromey.com>
914
915 * dwarf2read.c (dwarf2_compute_name): Update comment.
916 (read_func_scope, read_variable): Update.
917 (new_symbol): Remove.
918 (new_symbol_full): Rename to new_symbol.
919
920 2018-01-17 Mike Gulick <mgulick@mathworks.com>
921
922 PR gdb/16577
923 * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
924 a warning instead of throwing an error, set section size to 0 and return
925 NULL.
926 * gdb_bfd.h (gdb_bfd_map_section): Update description.
927
928 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
929
930 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
931 std::string.
932 (linux_ptrace_attach_fail_reason_string): Likewise.
933 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
934 Likewise.
935 (linux_ptrace_attach_fail_reason_string): Likewise.
936 * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
937
938 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
939
940 * linux-nat.c (linux_nat_attach): Remove xstrdup.
941
942 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
943
944 PR gdb/21559
945 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
946 checking for fs_base/gs_base fields in struct user_regs_struct.
947 * configure: Regenerate.
948
949 2018-01-17 Yao Qi <yao.qi@linaro.org>
950
951 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
952 function.
953 (aarch64_linux_init_abi): Install it to gdbarch hook
954 gcc_target_options.
955
956 2018-01-15 Pedro Alves <palves@redhat.com>
957
958 * common/signals-state-save-restore.c
959 (save_original_signals_state): Fix typos.
960
961 2017-01-12 Tom Tromey <tom@tromey.com>
962 Sergio Durigan Junior <sergiodj@redhat.com>
963
964 * Makefile.in (install-only): Install gdb-add-index.
965
966 2018-01-12 John Baldwin <jhb@FreeBSD.org>
967
968 * fbsd-tdep.c (KVE_PROTECTION): Correct value.
969
970 2018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
971
972 * infrun.c (keep_going_pass_signal): Clear step-over info when
973 insert_breakpoints fails.
974
975 2018-01-11 Pedro Alves <palves@redhat.com>
976
977 PR gdb/22583
978 * infrun.c (resume): Rename to ...
979 (resume_1): ... this.
980 (resume): Reimplement as wrapper around resume_1.
981
982 2018-01-11 Pedro Alves <palves@redhat.com>
983
984 PR remote/22597
985 * remote.c (remote_parse_stop_reply): Default to the last-set
986 general thread instead of to 'magic_null_ptid'.
987
988 2018-01-10 Pedro Alves <palves@redhat.com>
989
990 * language.h (language_get_symbol_name_matcher): Rename ...
991 (get_symbol_name_matcher): ... this.
992 * language.c (language_get_symbol_name_matcher): Ditto.
993 * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
994 callers adjusted.
995
996 2018-01-10 Pedro Alves <palves@redhat.com>
997
998 PR gdb/22670
999 * dwarf2read.c
1000 (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
1001 Adjust to use language_get_symbol_name_matcher instead of
1002 language_defn::la_get_symbol_name_matcher.
1003 * language.c (language_get_symbol_name_matcher): If in Ada mode
1004 and the lookup name is a verbatim match, return Ada's matcher.
1005 * language.h (language_get_symbol_name_matcher): Adjust comment.
1006 (ada_lookup_name_info::verbatim_p):: New method.
1007
1008 2018-01-10 Pedro Alves <palves@redhat.com>
1009
1010 PR gdb/22670
1011 * ada-lang.c (ada_collect_symbol_completion_matches): If the
1012 minsym's language is language_auto or language_cplus, pass down
1013 language_ada instead.
1014 * symtab.c (compare_symbol_name): Don't frob symbol language here.
1015
1016 2018-01-10 Pedro Alves <palves@redhat.com>
1017
1018 PR gdb/22670
1019 * minsyms.c (linkage_name_str): New function.
1020 (iterate_over_minimal_symbols): Use it.
1021
1022 2018-01-09 John Baldwin <jhb@FreeBSD.org>
1023
1024 * NEWS: Document that 'info proc' now works on FreeBSD.
1025
1026 2018-01-09 John Baldwin <jhb@FreeBSD.org>
1027
1028 * configure.ac: Check for kinfo_getfile in libutil.
1029 * configure: Regenerate.
1030 * config.in: Regenerate.
1031 * fbsd-nat.c: Include "fbsd-tdep.h".
1032 (fbsd_fetch_cmdline): New.
1033 (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
1034 rather than calling error.
1035 (fbsd_info_proc): New.
1036 (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
1037 (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
1038 (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
1039
1040 2018-01-09 John Baldwin <jhb@FreeBSD.org>
1041
1042 * fbsd-nat.c (struct free_deleter): Remove.
1043 (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
1044
1045 2018-01-09 John Baldwin <jhb@FreeBSD.org>
1046
1047 * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
1048 NULL for an empty pathname.
1049
1050 2018-01-09 John Baldwin <jhb@FreeBSD.org>
1051
1052 * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
1053 (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
1054 (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
1055 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
1056 (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
1057 (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
1058 (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
1059 (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
1060 (kinfo_proc_layout_32, kinfo_proc_layout_i386)
1061 (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
1062 (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
1063 (fbsd_core_fetch_timeval, fbsd_print_sigset)
1064 (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
1065 (fbsd_init_abi): Install gdbarch "core_info_proc" method.
1066 * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
1067
1068 2018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
1069
1070 * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
1071 (gnu_xfer_auxv): New function.
1072 (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
1073 TARGET_OBJECT_AUXV.
1074
1075 2018-01-08 Yao Qi <yao.qi@linaro.org>
1076 Simon Marchi <simon.marchi@ericsson.com>
1077
1078 * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
1079 common/selftest.c.
1080 (COMMON_OBS): Remove selftest.o.
1081 * configure.ac: Append selftest-arch.c and common/selftest.c to
1082 CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS.
1083 * configure: Re-generated.
1084 * maint.c (maintenance_selftest): Wrap selftests::run_tests with
1085 GDB_SELF_TEST.
1086 (maintenance_info_selftests): Likewise.
1087
1088 2018-01-08 Xavier Roirand <roirand@adacore.com>
1089
1090 * ada-valprint.c (val_print_packed_array_elements): Use
1091 proper number of elements when printing an array indexed
1092 by an enumeration type.
1093
1094 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
1095
1096 * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
1097 (dw2_get_file_names_reader): Adjust.
1098 (lookup_dwo_signatured_type): Adjust.
1099 (lookup_dwp_signatured_type): Adjust.
1100 (lookup_signatured_type): Adjust.
1101 (create_type_unit_group): Adjust.
1102 (get_type_unit_group): Adjust.
1103 (process_psymtab_comp_unit_reader): Adjust.
1104 (build_type_psymtabs_reader): Adjust.
1105 (scan_partial_symbols): Adjust.
1106 (add_partial_symbol): Adjust.
1107 (add_partial_subprogram): Adjust.
1108 (peek_die_abbrev): Adjust.
1109 (fixup_go_packaging): Adjust.
1110 (process_imported_unit_die): Adjust.
1111 (dwarf2_compute_name): Adjust.
1112 (dwarf2_physname): Adjust.
1113 (read_import_statement): Adjust.
1114 (handle_DW_AT_stmt_list): Adjust.
1115 (read_file_scope): Adjust.
1116 (read_func_scope): Adjust.
1117 (read_lexical_block_scope): Adjust.
1118 (read_call_site_scope): Adjust.
1119 (read_variable): Adjust.
1120 (dwarf2_rnglists_process): Adjust.
1121 (dwarf2_ranges_process): Adjust.
1122 (dwarf2_ranges_read): Adjust.
1123 (dwarf2_get_pc_bounds): Adjust.
1124 (dwarf2_record_block_ranges): Adjust.
1125 (dwarf2_add_field): Adjust.
1126 (dwarf2_add_member_fn): Adjust.
1127 (read_structure_type): Adjust.
1128 (process_structure_scope): Adjust.
1129 (read_enumeration_type): Adjust.
1130 (read_array_type): Adjust.
1131 (mark_common_block_symbol_computed): Adjust.
1132 (read_common_block): Adjust.
1133 (read_namespace_type): Adjust.
1134 (read_namespace): Adjust.
1135 (read_module_type): Adjust.
1136 (read_tag_pointer_type): Adjust.
1137 (read_tag_ptr_to_member_type): Adjust.
1138 (read_tag_string_type): Adjust.
1139 (read_subroutine_type): Adjust.
1140 (read_typedef): Adjust.
1141 (read_base_type): Adjust.
1142 (attr_to_dynamic_prop): Adjust.
1143 (read_subrange_type): Adjust.
1144 (read_unspecified_type): Adjust.
1145 (dwarf2_read_abbrevs): Adjust.
1146 (load_partial_dies): Adjust.
1147 (read_partial_die): Adjust.
1148 (find_partial_die): Adjust.
1149 (guess_partial_die_structure_name): Adjust.
1150 (fixup_partial_die): Adjust.
1151 (read_attribute_value): Adjust.
1152 (read_addr_index): Adjust.
1153 (read_addr_index_from_leb128): Adjust.
1154 (read_str_index): Adjust.
1155 (dwarf2_string_attr): Adjust.
1156 (get_debug_line_section): Adjust.
1157 (dwarf_decode_line_header): Adjust.
1158 (lnp_state_machine::check_line_address): Adjust.
1159 (dwarf_decode_lines_1): Adjust.
1160 (dwarf_decode_lines): Adjust.
1161 (dwarf2_start_symtab): Adjust.
1162 (var_decode_location): Adjust.
1163 (new_symbol_full): Adjust.
1164 (dwarf2_const_value_data): Adjust.
1165 (dwarf2_const_value_attr): Adjust.
1166 (dwarf2_const_value): Adjust.
1167 (die_type): Adjust.
1168 (die_containing_type): Adjust.
1169 (build_error_marker_type): Adjust.
1170 (lookup_die_type): Adjust.
1171 (guess_full_die_structure_name): Adjust.
1172 (anonymous_struct_prefix): Adjust.
1173 (determine_prefix): Adjust.
1174 (dwarf2_name): Adjust.
1175 (follow_die_ref_or_sig): Adjust.
1176 (follow_die_offset): Adjust.
1177 (follow_die_ref): Adjust.
1178 (follow_die_sig_1): Adjust.
1179 (follow_die_sig): Adjust.
1180 (get_signatured_type): Adjust.
1181 (get_DW_AT_signature_type): Adjust.
1182 (decode_locdesc): Adjust.
1183 (dwarf_decode_macros): Adjust.
1184 (cu_debug_loc_section): Adjust.
1185 (fill_in_loclist_baton): Adjust.
1186 (dwarf2_symbol_mark_computed): Adjust.
1187 (init_one_comp_unit): Don't assign
1188 dwarf2_cu::dwarf2_per_objfile.
1189 (set_die_type): Adjust.
1190
1191 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
1192
1193 * dwarf2read.c (struct mapped_debug_names): Add constructor.
1194 <dwarf2_per_objfile>: New field.
1195 (dwarf2_per_objfile): Remove global.
1196 (get_dwarf2_per_objfile): New function.
1197 (set_dwarf2_per_objfile): New function.
1198 (dwarf2_build_psymtabs_hard): Change objfile parameter to
1199 dwarf2_per_objfile.
1200 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
1201 (read_abbrev_offset): Likewise.
1202 (read_indirect_string): Likewise.
1203 (read_indirect_line_string): Likewise.
1204 (read_indirect_string_at_offset): Likewise.
1205 (read_indirect_string_from_dwz): Likewise.
1206 (dwarf2_find_containing_comp_unit): Change objfile parameter to
1207 dwarf2_per_objfile.
1208 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
1209 (create_all_comp_units): Change objfile parameter to
1210 dwarf2_per_objfile.
1211 (create_all_type_units): Likewise.
1212 (process_queue): Add dwarf2_per_objfile parameter.
1213 (read_and_check_comp_unit_head): Likewise.
1214 (lookup_dwo_unit_in_dwp): Likewise.
1215 (get_dwp_file): Likewise.
1216 (process_cu_includes): Likewise.
1217 (struct free_dwo_file_cleanup_data): New struct.
1218 (dwarf2_has_info): Use get_dwarf2_per_objfile and
1219 set_dwarf2_per_objfile.
1220 (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
1221 (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
1222 context, adjust calls.
1223 (dw2_instantiate_symtab): Likewise.
1224 (dw2_get_cutu): Add dwarf2_per_objfile parameter.
1225 (dw2_get_cu): Likewise.
1226 (create_cu_from_index_list): Change objfile parameter to
1227 dwarf2_per_objfile.
1228 (create_cus_from_index_list): Get dwarf2_per_objfile from
1229 context, adjust calls.
1230 (create_cus_from_index): Likewise.
1231 (create_signatured_type_table_from_index): Change objfile
1232 parameter to dwarf2_per_objfile.
1233 (create_signatured_type_table_from_debug_names): Change objfile
1234 parameter to dwarf2_per_objfile.
1235 (create_addrmap_from_index): Likewise.
1236 (create_addrmap_from_aranges): Likewise.
1237 (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
1238 (dw2_setup): Remove.
1239 (dw2_get_file_names_reader): Get dwarf2_per_objfile from
1240 context.
1241 (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
1242 get_dwarf2_per_objfile.
1243 (dw2_forget_cached_source_info): Likewise.
1244 (dw2_map_symtabs_matching_filename): Likewise.
1245 (struct dw2_symtab_iterator) <index>: Remove.
1246 <dwarf2_per_objfile>: New field.
1247 (dw2_symtab_iter_init): Replace index parameter with
1248 dwarf2_per_objfile.
1249 (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
1250 (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
1251 (dw2_print_stats): Likewise.
1252 (dw2_dump): Likewise.
1253 (dw2_expand_symtabs_for_function): Likewise.
1254 (dw2_expand_all_symtabs): Likewise.
1255 (dw2_expand_symtabs_with_fullname): Likewise.
1256 (dw2_expand_marked_cus): Replace index and objfile parameters
1257 with dwarf2_per_objfile.
1258 (dw_expand_symtabs_matching_file_matcher): Add
1259 dwarf2_per_objfile parameter and adjust calls.
1260 (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
1261 adjust calls.
1262 (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
1263 (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
1264 adjust calls.
1265 (create_cus_from_debug_names_list): Replace objfile parameter
1266 with dwarf2_per_objfile and adjust calls.
1267 (create_cus_from_debug_names): Likewise.
1268 (dwarf2_read_debug_names): Likewise.
1269 (mapped_debug_names::namei_to_name): Adjust call.
1270 (dw2_debug_names_iterator::next): Likewise.
1271 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
1272 (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
1273 (dw2_debug_names_dump): Likewise.
1274 (dw2_debug_names_expand_symtabs_for_function): Likewise.
1275 (dw2_debug_names_expand_symtabs_matching): Likewise.
1276 (dwarf2_initialize_objfile): Likewise.
1277 (dwarf2_build_psymtabs): Likewise.
1278 (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
1279 this_cu.
1280 (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
1281 (read_and_check_comp_unit_head): Likewise.
1282 (read_abbrev_offset): Likewise.
1283 (create_debug_type_hash_table): Likewise.
1284 (create_debug_types_hash_table): Likewise.
1285 (create_all_type_units): Replace objfile parameter with
1286 dwarf2_per_objfile.
1287 (add_type_unit): Add dwarf2_per_objfile parameter.
1288 (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
1289 with dwarf2_per_objfile.
1290 (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
1291 (lookup_dwp_signatured_type): Likewise.
1292 (lookup_signatured_type): Likewise.
1293 (read_cutu_die_from_dwo): Likewise.
1294 (init_tu_and_read_dwo_dies): Likewise.
1295 (init_cutu_and_read_dies): Likewise.
1296 (init_cutu_and_read_dies_no_follow): Likewise.
1297 (allocate_type_unit_groups_table): Add objfile parameter.
1298 (create_type_unit_group): Use dwarf2_per_objfile from cu.
1299 (get_type_unit_group): Likewise.
1300 (process_psymtab_comp_unit): Update call.
1301 (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
1302 (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
1303 (print_tu_stats): Likewise.
1304 (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
1305 in void* parameter.
1306 (build_type_psymtabs): Change objfile parameter to
1307 dwarf2_per_objfile.
1308 (process_skeletonless_type_unit): Use dwarf2_per_objfile
1309 passed in void* parameter.
1310 (process_skeletonless_type_units): Change objfile parameter to
1311 dwarf2_per_objfile.
1312 (set_partial_user): Likewise.
1313 (dwarf2_build_psymtabs_hard): Likewise.
1314 (read_comp_units_from_section): Likewise.
1315 (create_all_comp_units): Likewise.
1316 (scan_partial_symbols): Update calls.
1317 (add_partial_symbol): Likewise.
1318 (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
1319 (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
1320 (process_queue): Add dwarf2_per_objfile parameter.
1321 (get_compunit_symtab): Use dwarf2_per_objfile from cu.
1322 (compute_compunit_symtab_includes): Likewise.
1323 (process_cu_includes): Add dwarf2_per_objfile parameter.
1324 (process_full_comp_unit): Use dwarf2_per_objfile from cu.
1325 (process_full_type_unit): Likewise.
1326 (process_imported_unit_die): Update call.
1327 (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
1328 (read_file_scope): Likewise.
1329 (allocate_dwo_file_hash_table): Add objfile parameter.
1330 (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
1331 (create_cus_hash_table): Likewise.
1332 (create_dwp_hash_table): Likewise.
1333 (create_dwo_unit_in_dwp_v1): Likewise.
1334 (create_dwp_v2_section): Likewise.
1335 (create_dwo_unit_in_dwp_v2): Likewise.
1336 (lookup_dwo_unit_in_dwp): Likewise.
1337 (try_open_dwop_file): Likewise.
1338 (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
1339 (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
1340 cleanup to include a reference to dwarf2_per_objfile.
1341 (open_dwp_file): Add dwarf2_per_objfile parameter.
1342 (open_and_init_dwp_file): Likewise.
1343 (get_dwp_file): Likewise.
1344 (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
1345 (queue_and_load_all_dwo_tus): Update call.
1346 (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
1347 data.
1348 (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
1349 (dwarf2_ranges_process): Likewise.
1350 (dwarf2_get_pc_bounds): Likewise.
1351 (mark_common_block_symbol_computed): Likewise.
1352 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
1353 (dwarf2_read_abbrevs): Update call.
1354 (read_partial_die): Use dwarf2_per_objfile from cu.
1355 (find_partial_die): Likewise.
1356 (fixup_partial_die): Likewise.
1357 (read_attribute_value): Likewise.
1358 (read_indirect_string_at_offset_from): Add objfile parameter.
1359 (read_indirect_string_at_offset): Add dwarf2_per_objfile
1360 parameter.
1361 (read_indirect_string_from_dwz): Add objfile parameter.
1362 (read_indirect_string): Add objfile parameter.
1363 (read_addr_index_1): Add dwarf2_per_objfile parameter.
1364 (read_addr_index): Use dwarf2_per_objfile from cu.
1365 (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
1366 call dw2_setup.
1367 (read_str_index): Use dwarf2_per_objfile from cu.
1368 (get_debug_line_section): Likewise.
1369 (read_formatted_entries): Add dwarf2_per_objfile parameter.
1370 (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
1371 (new_symbol_full): Use dwarf2_per_objfile from cu.
1372 (build_error_marker_type): Likewise.
1373 (lookup_die_type): Likewise.
1374 (determine_prefix): Likewise.
1375 (follow_die_offset): Likewise.
1376 (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
1377 (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
1378 (dwarf2_fetch_die_type_sect_off): Likewise.
1379 (dwarf2_get_die_type): Likewise.
1380 (follow_die_sig_1): Use dwarf2_per_objfile from cu.
1381 (get_signatured_type): Likewise.
1382 (get_DW_AT_signature_type): Likewise.
1383 (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
1384 (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
1385 (cu_debug_loc_section): Likewise.
1386 (fill_in_loclist_baton): Likewise.
1387 (dwarf2_symbol_mark_computed): Likewise.
1388 (dwarf2_find_containing_comp_unit): Change objfile parameter to
1389 dwarf2_per_objfile.
1390 (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
1391 parameter.
1392 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
1393 (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
1394 (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
1395 (set_die_type): Use dwarf2_free_objfile from cu.
1396 (get_die_type_at_offset): Likewise.
1397 (dwarf2_per_objfile_free): Don't assign global variable.
1398 (debug_names) <constructor>: Add dwarf2_per_objfile
1399 parameter, update m_debugstrlookup construction.
1400 (debug_names::debug_str_lookup): Add dwarf2_per_objfile
1401 parameter.
1402 <m_dwarf2_per_objfile>: New field.
1403 <lookup>: Use m_dwarf2_per_objfile.
1404 (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
1405 (psyms_seen_size): Likewise.
1406 (write_gdbindex): Replace objfile parameter with
1407 dwarf2_per_objfile.
1408 (write_debug_names): Likewise.
1409 (write_psymtabs_to_index): Likewise.
1410 (save_gdb_index_command): Use get_dwarf2_per_objfile, update
1411 calls.
1412
1413 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
1414
1415 * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
1416 <dwarf2_per_objfile>: New field.
1417 (struct dwarf2_per_cu_data) <objfile>: Remove.
1418 <dwarf2_per_objfile>: New field.
1419 (create_cu_from_index_list): Assign dwarf2_per_objfile instead
1420 of objfile.
1421 (create_signatured_type_table_from_index): Likewise.
1422 (create_debug_type_hash_table): Likewise.
1423 (fill_in_sig_entry_from_dwo_entry): Likewise.
1424 (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
1425 (create_type_unit_group): Assign dwarf2_per_objfile instead of
1426 objfile.
1427 (create_partial_symtab): Access objfile through
1428 dwarf2_per_objfile.
1429 (process_psymtab_comp_unit_reader): Likewise.
1430 (read_comp_units_from_section): Likewise.
1431 (scan_partial_symbols): Likewise.
1432 (add_partial_symbol): Likewise.
1433 (add_partial_subprogram): Likewise.
1434 (peek_die_abbrev): Likewise.
1435 (fixup_go_packaging): Likewise.
1436 (process_full_comp_unit): Likewise.
1437 (process_full_type_unit): Likewise.
1438 (process_imported_unit_die): Likewise.
1439 (dwarf2_compute_name): Likewise.
1440 (dwarf2_physname): Likewise.
1441 (read_import_statement): Likewise.
1442 (create_cus_hash_table): Assign dwarf2_physname instead of
1443 objfile.
1444 (read_func_scope): Access objfile through dwarf2_per_objfile.
1445 (read_lexical_block_scope): Likewise.
1446 (read_call_site_scope): Likewise.
1447 (read_variable): Likewise.
1448 (dwarf2_rnglists_process): Likewise.
1449 (dwarf2_ranges_process): Likewise.
1450 (dwarf2_ranges_read): Likewise.
1451 (dwarf2_record_block_ranges): Likewise.
1452 (dwarf2_add_field): Likewise.
1453 (dwarf2_add_member_fn): Likewise.
1454 (read_structure_type): Likewise.
1455 (process_structure_scope): Likewise.
1456 (read_enumeration_type): Likewise.
1457 (read_array_type): Likewise.
1458 (read_common_block): Likewise.
1459 (read_namespace_type): Likewise.
1460 (read_namespace): Likewise.
1461 (read_module_type): Likewise.
1462 (read_tag_pointer_type): Likewise.
1463 (read_tag_ptr_to_member_type): Likewise.
1464 (read_tag_string_type): Likewise.
1465 (read_subroutine_type): Likewise.
1466 (read_typedef): Likewise.
1467 (read_base_type): Likewise.
1468 (attr_to_dynamic_prop): Likewise.
1469 (read_subrange_type): Likewise.
1470 (read_unspecified_type): Likewise.
1471 (load_partial_dies): Likewise.
1472 (read_partial_die): Likewise.
1473 (find_partial_die): Likewise.
1474 (guess_partial_die_structure_name): Likewise.
1475 (fixup_partial_die): Likewise.
1476 (read_attribute_value): Likewise.
1477 (read_addr_index_from_leb128): Likewise.
1478 (dwarf2_read_addr_index): Likewise.
1479 (dwarf2_string_attr): Likewise.
1480 (lnp_state_machine::check_line_address): Likewise.
1481 (dwarf_decode_lines_1): Likewise.
1482 (dwarf_decode_lines): Likewise.
1483 (dwarf2_start_symtab): Likewise.
1484 (var_decode_location): Likewise.
1485 (new_symbol_full): Likewise.
1486 (dwarf2_const_value_data): Likewise.
1487 (dwarf2_const_value_attr): Likewise.
1488 (dwarf2_const_value): Likewise.
1489 (die_type): Likewise.
1490 (die_containing_type): Likewise.
1491 (lookup_die_type): Likewise.
1492 (guess_full_die_structure_name): Likewise.
1493 (anonymous_struct_prefix): Likewise.
1494 (dwarf2_name): Likewise.
1495 (follow_die_ref_or_sig): Likewise.
1496 (follow_die_offset): Likewise.
1497 (follow_die_ref): Likewise.
1498 (dwarf2_fetch_die_loc_sect_off): Likewise.
1499 (dwarf2_fetch_constant_bytes): Likewise.
1500 (dwarf2_fetch_die_type_sect_off): Likewise.
1501 (dwarf2_get_die_type): Likewise.
1502 (follow_die_sig): Likewise.
1503 (decode_locdesc): Likewise.
1504 (dwarf2_per_cu_objfile): Likewise.
1505 (dwarf2_per_cu_text_offset): Likewise.
1506 (init_one_comp_unit): Assign dwarf2_per_objfile instead of
1507 objfile.
1508 (set_die_type): Access objfile through
1509 dwarf2_per_objfile.
1510
1511 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
1512
1513 * valprint.c (converted_character_d): Remove typedef.
1514 (DEF_VEC_O (converted_character_d)): Remove.
1515 (count_next_character): Use std::vector.
1516 (print_converted_chars_to_obstack): Likewise.
1517 (generic_printstr): Likewise.
1518
1519 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
1520
1521 * xml-support.h (struct gdb_xml_value): Add constructor.
1522 <value>: Change type to unique_xmalloc_ptr.
1523 (gdb_xml_value_s): Remove typedef.
1524 (DEF_VEC_O (gdb_xml_value_s)): Remove.
1525 (gdb_xml_element_start_handler): Change parameter type to
1526 std::vector.
1527 (xml_find_attribute): Likewise.
1528 * xml-support.c (xml_find_attribute): Change parameter type to
1529 std::vector and adjust.
1530 (gdb_xml_values_cleanup): Remove.
1531 (gdb_xml_parser::start_element): Adjust to std::vector.
1532 (xinclude_start_include): Change paraeter type to std::vector
1533 and adjust.
1534 * btrace.c (check_xml_btrace_version): Likewise.
1535 (parse_xml_btrace_block): Likewise.
1536 (parse_xml_btrace_pt_config_cpu): Likewise.
1537 (parse_xml_btrace_pt): Likewise.
1538 (parse_xml_btrace_conf_bts): Likewise.
1539 (parse_xml_btrace_conf_pt): Likewise.
1540 * memory-map.c (memory_map_start_memory): Likewise.
1541 (memory_map_start_property): Likewise.
1542 * osdata.c (osdata_start_osdata): Likewise.
1543 (osdata_start_item): Likewise.
1544 (osdata_start_column): Likewise.
1545 * remote.c (start_thread): Likewise.
1546 * solib-aix.c (library_list_start_library): Likewise.
1547 (library_list_start_list): Likewise.
1548 * solib-svr4.c (library_list_start_library): Likewise.
1549 (svr4_library_list_start_list): Likewise.
1550 * solib-target.c (library_list_start_segment): Likewise.
1551 (library_list_start_section): Likewise.
1552 (library_list_start_library): Likewise.
1553 (library_list_start_list): Likewise.
1554 * tracepoint.c (traceframe_info_start_memory): Likewise.
1555 (traceframe_info_start_tvar): Likewise.
1556 * xml-syscall.c (syscall_start_syscall): Likewise.
1557 * xml-tdesc.c (tdesc_start_target): Likewise.
1558 (tdesc_start_feature): Likewise.
1559 (tdesc_start_reg): Likewise.
1560 (tdesc_start_union): Likewise.
1561 (tdesc_start_struct): Likewise.
1562 (tdesc_start_flags): Likewise.
1563 (tdesc_start_enum): Likewise.
1564 (tdesc_start_field): Likewise.
1565 (tdesc_start_enum_value): Likewise.
1566 (tdesc_start_vector): Likewise.
1567
1568 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
1569
1570 * extension.h (struct xmethod_worker) <clone>: Remove.
1571 * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
1572 Remove.
1573 (python_xmethod_worker::clone): Remove.
1574 * valops.c (find_overload_match): Use std::move instead of
1575 clone.
1576
1577 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
1578
1579 * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
1580 (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
1581 <free_xmethod_worker_data>: Remove.
1582 <get_matching_xmethod_workers>: Chance VEC to std::vector.
1583 <get_xmethod_arg_types>: Remove.
1584 <get_xmethod_result_type>: Remove.
1585 <invoke_xmethod>: Remove.
1586 * extension.c (new_xmethod_worker): Remove.
1587 (clone_xmethod_worker): Remove.
1588 (get_matching_xmethod_workers): Return void, pass std::vector by
1589 pointer.
1590 (get_xmethod_arg_types): Rename to...
1591 (xmethod_worker::get_arg_types): ... this, and adjust.
1592 (get_xmethod_result_type): Rename to...
1593 (xmethod_worker::get_result_type): ... this, and adjust.
1594 (invoke_xmethod): Remove.
1595 (free_xmethod_worker): Remove.
1596 (free_xmethod_worker_vec): Remove.
1597 * extension.h (enum ext_lang_rc): Move here from
1598 extension-priv.h.
1599 (struct xmethod_worker): Add constructor and destructor.
1600 <data>: Remove.
1601 <value>: Remove.
1602 <invoke, clone, do_get_result_type, do_get_arg_types>: New
1603 virtual pure methods.
1604 <get_arg_types, get_result_type>: New methods.
1605 (xmethod_worker_ptr): Remove typedef.
1606 (DEF_VEC_P (xmethod_worker_ptr)): Remove.
1607 (xmethod_worker_vec): Remove typedef.
1608 (xmethod_worker_up): New typedef.
1609 (invoke_xmethod): Remove.
1610 (clone_xmethod_worker): Remove.
1611 (free_xmethod_worker): Remove.
1612 (free_xmethod_worker_vec): Remove.
1613 (get_xmethod_arg_types): Remove.
1614 (get_xmethod_result_type): Remove.
1615 * valops.c (find_method_list): Use std::vector, don't use
1616 intermediate vector.
1617 (value_find_oload_method_list): Use std::vector.
1618 (find_overload_match): Use std::vector.
1619 (find_oload_champ): Use std::vector.
1620 * value.c (value_free): Use operator delete.
1621 (value_of_xmethod): Rename to...
1622 (value_from_xmethod): ... this. Don't assign
1623 xmethod_worker::value, take rvalue-reference.
1624 (result_type_of_xmethod): Adjust.
1625 (call_xmethod): Adjust.
1626 * value.h: Include extension.h.
1627 (struct xmethod_worker): Don't forward-declare.
1628 (value_of_xmethod): Rename to...
1629 (value_from_xmethod): ... this, take rvalue-reference.
1630 * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
1631 (struct python_xmethod_worker): ... this, add constructor and
1632 destructor.
1633 <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
1634 (gdbpy_free_xmethod_worker_data): Rename to...
1635 (python_xmethod_worker::~python_xmethod_worker): ... this and
1636 adjust.
1637 (gdbpy_clone_xmethod_worker_data): Rename to...
1638 (python_xmethod_worker::clone): ... this and adjust.
1639 (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
1640 temporary vector.
1641 (gdbpy_get_xmethod_arg_types): Rename to...
1642 (python_xmethod_worker::do_get_arg_types): ... this and adjust.
1643 (gdbpy_get_xmethod_result_type): Rename to...
1644 (python_xmethod_worker::do_get_result_type): ... this and
1645 adjust.
1646 (gdbpy_invoke_xmethod): Rename to...
1647 (python_xmethod_worker::invoke): ... this and adjust.
1648 (new_python_xmethod_worker): Rename to...
1649 (python_xmethod_worker::python_xmethod_worker): ... this and
1650 adjust.
1651 * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
1652 Remove.
1653 (gdbpy_free_xmethod_worker_data): Remove.
1654 (gdbpy_get_matching_xmethod_workers): Use std::vector.
1655 (gdbpy_get_xmethod_arg_types): Remove.
1656 (gdbpy_get_xmethod_result_type): Remove.
1657 (gdbpy_invoke_xmethod): Remove.
1658 * python/python.c (python_extension_ops): Remove obsolete
1659 callbacks.
1660
1661 2018-01-05 Pedro Alves <palves@redhat.com>
1662
1663 PR gdb/18653
1664 * common/signals-state-save-restore.c
1665 (save_original_signals_state): New parameter 'quiet'. Warn if we
1666 find a custom handler preinstalled, instead of internal erroring.
1667 But only warn if !quiet.
1668 * common/signals-state-save-restore.h
1669 (save_original_signals_state): New parameter 'quiet'.
1670 * main.c (captured_main_1): Move save_original_signals_state call
1671 after option handling, and pass QUIET.
1672
1673 2018-01-05 Pedro Alves <palves@redhat.com>
1674
1675 * spu-tdep.c (spu_catch_start): Pass
1676 symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
1677
1678 2018-01-05 Pedro Alves <palves@redhat.com>
1679
1680 PR gdb/22670
1681 * ada-lang.c (literal_symbol_name_matcher): New function.
1682 (ada_get_symbol_name_matcher): Use it for
1683 symbol_name_match_type::SEARCH_NAME.
1684 * block.c (block_lookup_symbol): New parameter 'match_type'. Pass
1685 it down instead of assuming symbol_name_match_type::FULL.
1686 * block.h (block_lookup_symbol): New parameter 'match_type'.
1687 * c-valprint.c (print_unpacked_pointer): Use
1688 lookup_symbol_search_name instead of lookup_symbol.
1689 * compile/compile-object-load.c (get_out_value_type): Pass down
1690 symbol_name_match_type::SEARCH_NAME.
1691 * cp-namespace.c (cp_basic_lookup_symbol): Pass down
1692 symbol_name_match_type::FULL.
1693 * cp-support.c (cp_get_symbol_name_matcher): Handle
1694 symbol_name_match_type::SEARCH_NAME.
1695 * infrun.c (insert_exception_resume_breakpoint): Use
1696 lookup_symbol_search_name.
1697 * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
1698 * psymtab.c (maintenance_check_psymtabs): Use
1699 symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
1700 * stack.c (print_frame_args): Use lookup_symbol_search_name and
1701 SYMBOL_SEARCH_NAME.
1702 * symtab.c (lookup_local_symbol): Don't demangle the lookup name
1703 if symbol_name_match_type::SEARCH_NAME.
1704 (lookup_symbol_in_language): Pass down
1705 symbol_name_match_type::FULL.
1706 (lookup_symbol_search_name): New.
1707 (lookup_language_this): Pass down
1708 symbol_name_match_type::SEARCH_NAME.
1709 (lookup_symbol_aux, lookup_local_symbol): New parameter
1710 'match_type'. Pass it down.
1711 * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
1712 (lookup_symbol_search_name): New declaration.
1713 (lookup_symbol_in_block): New 'match_type' parameter.
1714
1715 2018-01-05 Pedro Alves <palves@redhat.com>
1716
1717 PR gdb/22670
1718 * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
1719 ada_lookup_symbol.
1720 (ada_lookup_symbol): Reimplement in terms of
1721 ada_lookup_symbol_list, bits factored out from
1722 ada_lookup_encoded_symbol.
1723
1724 2018-01-05 Joel Brobecker <brobecker@adacore.com>
1725
1726 * ada-exp.y (write_object_renaming): When subscripting an array
1727 using a symbol as the index, pass the block in call to
1728 ada_lookup_encoded_symbol when looking that symbol up.
1729
1730 2018-01-05 Jerome Guitton <guitton@adacore.com>
1731
1732 * ada-lang.c (ada_array_length): Use ada_index_type instead of
1733 TYPE_INDEX_TYPE.
1734
1735 2018-01-05 Joel Brobecker <brobecker@adacore.com>
1736
1737 * ada-lang.c (ada_to_fixed_value_create): Add handling of
1738 the case where VALUE_LVAL (val0) is not lval_memory.
1739
1740 2018-01-05 Xavier Roirand <roirand@adacore.com>
1741
1742 * ada-valprint.c (print_optional_low_bound): Handle
1743 character-indexed array printing like boolean-indexed array
1744 printing.
1745
1746 2018-01-05 Joel Brobecker <brobecker@adacore.com>
1747
1748 * NEWS: Create a new section for the next release branch.
1749 Rename the section of the current branch, now that it has
1750 been cut.
1751
1752 2018-01-05 Joel Brobecker <brobecker@adacore.com>
1753
1754 GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
1755 * version.in: Bump version to 8.1.50.DATE-git.
1756
1757 2018-01-03 Xavier Roirand <roirand@adacore.com>
1758
1759 * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
1760 Add field.
1761 * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
1762 Add field.
1763 (default_exception_support_info) <catch_handlers_sym>: Add field.
1764 (exception_support_info_fallback) <catch_handlers_sym>: Add field.
1765 (ada_exception_name_addr_1): Add "catch handlers" handling.
1766 (ada_exception_catchpoint_cond_string) <ex>: New parameter.
1767 Update all callers.
1768 (create_excep_cond_exprs) <ex>: Add parameter.
1769 (re_set_exception): Update create_excep_cond_exprs call.
1770 (print_it_exception, print_one_exception, print_mention_exception)
1771 (print_recreate_exception): Add "catch handler" handling.
1772 (allocate_location_catch_handlers, re_set_catch_handlers)
1773 (check_status_catch_handlers, print_it_catch_handlers)
1774 (print_one_catch_handlers, print_mention_catch_handlers)
1775 (print_recreate_catch_handlers): New function.
1776 (catch_handlers_breakpoint_ops): New variable.
1777 (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
1778 Add parameter. Add "catch handler" handling.
1779 (ada_exception_sym_name, ada_exception_breakpoint_ops):
1780 Add "catch handler" handling.
1781 (ada_exception_catchpoint_cond_string): Add "catch handler"
1782 handling.
1783 (create_ada_exception_catchpoint): Update create_excep_cond_exprs
1784 call.
1785 (catch_ada_handlers_command): New function.
1786 (initialize_ada_catchpoint_ops): Initialize "catch handlers"
1787 operations structure.
1788 (_initialize_ada_language): Add "catch handlers" command entry.
1789 * NEWS: Document "catch handlers" feature.
1790
1791 2018-01-02 Joel Brobecker <brobecker@adacore.com>
1792
1793 * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
1794 account when creating the array type of the slice.
1795 (ada_value_slice): Likewise.
1796
1797 2018-01-02 Joel Brobecker <brobecker@adacore.com>
1798
1799 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
1800 New enum value.
1801 (create_array_type_with_stride): Add byte_stride_prop parameter.
1802 * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
1803 New parameter. Update all callers in this file.
1804 (array_type_has_dynamic_stride): New function.
1805 (is_dynamic_type_internal, resolve_dynamic_array): Add handling
1806 of arrays with dynamic byte strides.
1807 * dwarf2read.c (read_array_type): Add support for dynamic
1808 DW_AT_byte_stride attributes.
1809
1810 2018-01-02 Joel Brobecker <brobecker@adacore.com>
1811
1812 * dwarf2read.c (read_unspecified_type): Treat
1813 DW_TAG_enumeration_type DIEs from Ada units as stubs.
1814
1815 2018-01-01 Joel Brobecker <brobecker@adacore.com>
1816
1817 Update copyright year range in all GDB files.
1818
1819 2018-01-01 Joel Brobecker <brobecker@adacore.com>
1820
1821 * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
1822 and gdb/testsuite/gdb.base/step-line.c.
1823
1824 2018-01-01 Joel Brobecker <brobecker@adacore.com>
1825
1826 * copyright.py (main): Dump the contents of
1827 MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
1828 even if BY_HAND is empty.
1829
1830 2018-01-01 Joel Brobecker <brobecker@adacore.com>
1831
1832 * top.c (print_gdb_version): Update Copyright year in version
1833 message.
1834
1835 2018-01-01 Joel Brobecker <brobecker@adacore.com>
1836
1837 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
1838
1839 For older changes see ChangeLog-2017.
1840 \f
1841 Local Variables:
1842 mode: change-log
1843 left-margin: 8
1844 fill-column: 74
1845 version-control: never
1846 coding: utf-8
1847 End:
This page took 0.064196 seconds and 5 git commands to generate.