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