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