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