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