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