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