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