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