s390: Move tdesc validation to separate function
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
47c9317e
PR
12018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
2
3 * s390-linux-tdep.c (s390_tdesc_valid): New function.
4 (s390_validate_reg_range): New macro.
5 (s390_gdbarch_init): Adjust.
6
095085d8
PR
72018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
8
9 * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field.
10 (s390_gdbarch_tdep_alloc): Adjust.
11 (s390_gdbarch_init): Adjust.
12
ab9bcc67
PR
132018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
14
15 * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2>
16 <have_tdb>: Change type to bool.
17 (s390_gdbarch_tdep_alloc): Adjust.
18 (s390_gdbarch_init): Adjust.
19
21f6f5ff
PR
202018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
21
22 * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field.
23 (gdbarch_tdep) <have_upper, have_vx>: New fields.
24 (s390_gdbarch_tdep_alloc): New function.
25 (s390_gdbarch_init): Allocate tdep at start and use its fields
26 instead of separate variables.
27
0eb97953
PR
282018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
29
30 * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
31 when looking for cached gdbarch and add comment for remaining.
32
5c319bb2
PA
332018-01-22 Pedro Alves <palves@redhat.com>
34 Sergio Durigan Junior <sergiodj@redhat.com>
35
36 * typeprint.c (whatis_exp): Initialize "val" in the "whatis type"
37 case.
38
d65ce302
MR
392018-01-22 Maciej W. Rozycki <macro@mips.com>
40
41 * MAINTAINERS: Update my company e-mail address.
42
ec7a5fcb
YQ
432018-01-22 Yao Qi <yao.qi@linaro.org>
44
45 * regcache.c (cooked_write_test): New function.
46 (_initialize_regcache): Register the test.
47
11f57cb6
YQ
482018-01-22 Yao Qi <yao.qi@linaro.org>
49
50 * ia64-tdep.c (ia64_pseudo_register_read): Call
51 regcache->cooked_read instead of regcache_cooked_read_unsigned.
52 * m32c-tdep.c (m32c_cat_read): Likewise.
53 (m32c_r3r2r1r0_read): Likewise.
54 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
55 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
56
03f50fc8
YQ
572018-01-22 Yao Qi <yao.qi@linaro.org>
58
59 * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
60 method raw_read instead of regcache_raw_read.
61 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
62 * arm-tdep.c (arm_neon_quad_read): Likewise.
63 * avr-tdep.c (avr_pseudo_register_read): Likewise.
64 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
65 * frv-tdep.c (frv_pseudo_register_read): Likewise.
66 * h8300-tdep.c (h8300_pseudo_register_read): Likewise.
67 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
68 (i386_pseudo_register_read_into_value): Likewise.
69 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
70 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
71 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
72 * rl78-tdep.c (rl78_pseudo_register_read): Likewise.
73 * s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
74 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
75 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
76 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
77 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
78
dc711524
YQ
792018-01-22 Yao Qi <yao.qi@linaro.org>
80
81 * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
82 * configure.tgt: Remove target mt.
83 * mt-tdep.c: Remove.
84 * regcache.c (cooked_read_test): Remove the check for mt.
85
3f5a868b
YQ
862018-01-22 Yao Qi <yao.qi@linaro.org>
87
88 * jit.c (jit_frame_prev_register): Call regcache::cooked_read
89 instead of gdbarch_pseudo_register_read_value.
90
de4cb04a
JB
912018-01-22 Joel Brobecker <brobecker@adacore.com>
92
93 * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
94 language is Ada.
95
a9e40818
JB
962018-01-22 Joel Brobecker <brobecker@adacore.com>
97
98 * linespec.c (create_sals_line_offset): Remove code that preserved
99 the symtab_and_line's line number.
100
e707fc44
AB
1012018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
102
103 * varobj.c (varobj_create): Don't set valid_block when creating a
104 floating varobj.
105
03d0bf7b
AB
1062018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
107
108 * varobj.c (varobj_create): Remove out of date comment.
109
ae451627
AB
1102018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
111
112 PR mi/20395
113 * ada-exp.y (write_var_from_sym): Pass extra parameter when
114 updating innermost block.
115 * parse.c (innermost_block_tracker::update): Take extra type
116 parameter, and check types match before updating innermost block.
117 (write_dollar_variable): Update innermost block for registers.
118 * parser-defs.h (enum innermost_block_tracker_type): New enum.
119 (innermost_block_tracker::innermost_block_tracker): Initialise
120 m_types member.
121 (innermost_block_tracker::reset): Take type parameter.
122 (innermost_block_tracker::update): Take type parameter, and pass
123 type through as needed.
124 (innermost_block_tracker::m_types): New member.
125 * varobj.c (varobj_create): Pass type when reseting innermost
126 block.
127
aee1fcdf
AB
1282018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
129
130 * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
131 * ada-lang.c (resolve_subexp): Likewise.
132 * breakpoint.c (set_breakpoint_condition) Likewise.
133 (watch_command_1) Likewise.
134 * c-exp.y (variable): Likewise.
135 * d-exp.y (PrimaryExpression): Likewise.
136 * f-exp.y (variable): Likewise.
137 * go-exp.y (variable): Likewise.
138 * m2-exp.y (variable): Likewise.
139 * objfiles.c (objfile::~objfile): Likewise.
140 * p-exp.y (variable): Likewise.
141 * parse.c (innermost_block): Change type.
142 * parser-defs.h (class innermost_block_tracker): New.
143 (innermost_block): Change to innermost_block_tracker.
144 * printcmd.c (display_command): Switch to innermost_block API.
145 (do_one_display): Likewise.
146 * rust-exp.y (do_one_display): Likewise.
147 * symfile.c (clear_symtab_users): Likewise.
148 * varobj.c (varobj_create): Switch to innermost_block API, replace
149 use of innermost_block with block stored on varobj object.
150
396af9a1
AB
1512018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
152
153 * expression.h (innermost_block): Remove declaration.
154 * varobj.c: Add 'parser-defs.h' include.
155
fcfcc376
TT
1562018-01-19 Tom Tromey <tom@tromey.com>
157
158 * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
159 symbols in the static and global blocks.
160
5a6c3296
JC
1612018-01-19 James Clarke <jrtc27@jrtc27.com>
162
163 * nat/linux-ptrace.c: Remove unnecessary reinclusion of
164 gdb_ptrace.h, and move including gdb_wait.h ...
165 * nat/linux-ptrace.h: ... to here.
166
bc09b0c1
SM
1672018-01-19 Simon Marchi <simon.marchi@ericsson.com>
168
169 * inf-ptrace.c (inf_ptrace_detach): Adjust call to
170 inf_ptrace_detach_success.
171 (inf_ptrace_detach_success): Add inferior parameter, use it
172 instead of inferior_ptid, pass it to detach_inferior.
173 * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
174 parameter.
175 * inferior.c (detach_inferior): Add overload that takes an
176 inferior object.
177 * inferior.h (detach_inferior): Likewise.
178 * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
179 use inferior_ptid, adjust call to inf_ptrace_detach_success.
180 * linux-thread-db.c (thread_db_detach): Use inf parameter.
181
6e1e1966
SM
1822018-01-19 Simon Marchi <simon.marchi@ericsson.com>
183
184 * target.h (struct target_ops) <to_detach>: Add inferior
185 parameter.
186 (target_detach): Likewise.
187 * target.c (dispose_inferior): Pass inferior down.
188 (target_detach): Pass inferior down. Assert that it is equal to
189 the current inferior.
190 * aix-thread.c (aix_thread_detach): Pass inferior down.
191 * corefile.c (core_file_command): Pass current_inferior() down.
192 * corelow.c (core_detach): Add inferior parameter.
193 * darwin-nat.c (darwin_detach): Likewise.
194 * gnu-nat.c (gnu_detach): Likewise.
195 * inf-ptrace.c (inf_ptrace_detach): Likewise.
196 * infcmd.c (detach_command): Pass current_inferior() down to
197 target_detach.
198 * infrun.c (follow_fork_inferior): Pass parent_inf to
199 target_detach.
200 (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
201 target_detach.
202 * linux-nat.c (linux_nat_detach): Add inferior parameter.
203 * linux-thread-db.c (thread_db_detach): Likewise.
204 * nto-procfs.c (procfs_detach): Likewise.
205 * procfs.c (procfs_detach): Likewise.
206 * record.c (record_detach): Likewise.
207 * record.h (struct inferior): Forward-declare.
208 (record_detach): Add inferior parameter.
209 * remote-sim.c (gdbsim_detach): Likewise.
210 * remote.c (remote_detach_1): Likewise.
211 (remote_detach): Likewise.
212 (extended_remote_detach): Likewise.
213 * sol-thread.c (sol_thread_detach): Likewise.
214 * target-debug.h (target_debug_print_inferior_p): New macro.
215 * target-delegates.c: Re-generate.
216 * top.c (kill_or_detach): Pass inferior down to target_detach.
217 * windows-nat.c (windows_detach): Add inferior parameter.
218
6bd6f3b6
SM
2192018-01-19 Simon Marchi <simon.marchi@ericsson.com>
220
221 * target.h (struct target_ops) <to_detach>: Remove args
222 parameter.
223 (target_detach): Likewise.
224 * target.c (dispose_inferior): Adjust.
225 (target_detach): Remove args parameter, adjust.
226 * aix-thread.c (aix_thread_detach): Adjust.
227 * corefile.c (core_file_command): Adjust.
228 * corelow.c (core_detach): Adjust.
229 * darwin-nat.c (darwin_detach): Adjust.
230 * gnu-nat.c (gnu_detach): Adjust.
231 * inf-ptrace.c (inf_ptrace_detach): Adjust.
232 * infcmd.c (detach_command): Adjust
233 * infrun.c (follow_fork_inferior): Adjust.
234 (handle_vfork_child_exec_or_exit): Adjust.
235 * linux-fork.c (linux_fork_detach): Remove args parameter.
236 * linux-fork.h (linux_fork_detach): Likewise.
237 * linux-nat.c (linux_nat_detach): Likewise, and adjust.
238 * linux-thread-db.c (thread_db_detach): Likewise.
239 * nto-procfs.c (procfs_detach): Likewise.
240 * procfs.c (procfs_detach): Likewise.
241 (do_detach): Remove signo parameter.
242 * record.c (record_detach): Remove args parameter.
243 * record.h (record_detach): Likewise.
244 * remote-sim.c (gdbsim_detach): Likewise.
245 * remote.c (remote_detach_1): Likewise.
246 (remote_detach): Likewise.
247 (extended_remote_detach): Likewise.
248 * sol-thread.c (sol_thread_detach): Likewise.
249 * target-delegates.c: Re-generate.
250 * top.c (struct qt_args) <args>: Remove field.
251 (kill_or_detach): Don't pass args.
252 (quit_force): Don't set args.
253 * windows-nat.c (windows_detach): Remove args parameter.
254
88af8ea8
YQ
2552018-01-19 Yao Qi <yao.qi@linaro.org>
256
257 * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
258 (arm_linux_init_abi): Install it.
259
dea445b9
YQ
2602018-01-19 Yao Qi <yao.qi@linaro.org>
261
262 * osabi.c (gdb_osabi_names): Extend the regexp for
263 arm-linux-gnueabihf.
264
4a17f768
YQ
2652018-01-18 Yao Qi <yao.qi@linaro.org>
266
267 * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
268 m_abbrevs.
269 (abbrev_table::add_abbrev): Update.
270 (abbrev_table::lookup_abbrev): Update.
271
d679c21a
YQ
2722018-01-18 Yao Qi <yao.qi@linaro.org>
273
274 * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
275
7d937cad
SDJ
2762018-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
277
278 * compile/compile.c (compile_to_object): Convert "triplet_rx"
279 to "std::string".
280
9e14690d
TT
2812018-01-17 Tom Tromey <tom@tromey.com>
282
283 * dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC.
284
50a82047
TT
2852018-01-17 Tom Tromey <tom@tromey.com>
286
287 * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
288 * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
289 (create_array_type_with_stride): Update.
290 * dwarf2read.c (set_die_type): Update.
291
c89b44cd
TT
2922018-01-17 Tom Tromey <tom@tromey.com>
293
294 * dwarf2read.c (delayed_method_info): Remove typedef.
295 (dwarf2_cu::method_info): Now a std::vector.
296 (add_to_method_list): Update.
297 (free_delayed_list): Remove.
298 (compute_delayed_physnames): Update.
299 (process_full_comp_unit, process_full_type_unit): Clear the method
300 list. Remove cleanups.
301 (psymtab_include_file_name): Add name_holder parameter. Use
302 unique_xmalloc_ptr.
303 (dwarf_decode_lines): Update.
304
fcd3b13d
SM
3052018-01-17 Tom Tromey <tom@tromey.com>
306 Simon Marchi <simon.marchi@ericsson.com>
307
308 * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
309 (dwarf2_per_objfile::free_cached_comp_units)
310 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
311 (init_cutu_and_read_dies_no_follow): Update.
312 (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
313 (dwarf2_cu::~dwarf2_cu): New.
314 (free_heap_comp_unit, free_stack_comp_unit): Remove.
315 (age_cached_comp_units, free_one_cached_comp_unit): Update.
316
685af9cd
TT
3172018-01-17 Tom Tromey <tom@tromey.com>
318 Simon Marchi <simon.marchi@ericsson.com>
319
320 * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
321 (struct die_reader_specs) <abbrev_table>: New member.
322 (struct abbrev_table): Add constructor.
323 <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
324 <abbrev_obstack>: Now an auto_obstack.
325 (abbrev_table_up): New typedef.
326 (init_cu_die_reader): Add abbrev_table parameter.
327 (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
328 Add result_dwo_abbrev_table.
329 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
330 (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
331 Update.
332 (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
333 parameter.
334 (skip_children): Update.
335 (abbrev_table::alloc_abbrev): Rename from
336 abbrev_table_alloc_abbrev.
337 (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
338 (abbrev_table::lookup_abbrev): Rename from
339 abbrev_table_lookup_abbrev.
340 (abbrev_table_read_table): Return abbrev_table_up.
341 (abbrev_table_free, abbrev_table_free_cleanup)
342 (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
343 (load_partial_dies): Update.
344
5e2db402
TT
3452018-01-17 Tom Tromey <tom@tromey.com>
346
347 * dwarf2read.c (dwarf2_compute_name): Update comment.
348 (read_func_scope, read_variable): Update.
349 (new_symbol): Remove.
350 (new_symbol_full): Rename to new_symbol.
351
ee7f689e 3522018-01-17 Mike Gulick <mgulick@mathworks.com>
41667530
MG
353
354 PR gdb/16577
355 * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
356 a warning instead of throwing an error, set section size to 0 and return
357 NULL.
358 * gdb_bfd.h (gdb_bfd_map_section): Update description.
359
4d9b86e1
SM
3602018-01-17 Simon Marchi <simon.marchi@ericsson.com>
361
362 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
363 std::string.
364 (linux_ptrace_attach_fail_reason_string): Likewise.
365 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
366 Likewise.
367 (linux_ptrace_attach_fail_reason_string): Likewise.
368 * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
369
a7b2d0fb
SM
3702018-01-17 Simon Marchi <simon.marchi@ericsson.com>
371
372 * linux-nat.c (linux_nat_attach): Remove xstrdup.
373
f517c180
EA
3742018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
375
376 PR gdb/21559
377 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
378 checking for fs_base/gs_base fields in struct user_regs_struct.
379 * configure: Regenerate.
380
7045b1ca
YQ
3812018-01-17 Yao Qi <yao.qi@linaro.org>
382
383 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
384 function.
385 (aarch64_linux_init_abi): Install it to gdbarch hook
386 gcc_target_options.
387
db422fb2
PA
3882018-01-15 Pedro Alves <palves@redhat.com>
389
390 * common/signals-state-save-restore.c
391 (save_original_signals_state): Fix typos.
392
ba643918
SDJ
3932017-01-12 Tom Tromey <tom@tromey.com>
394 Sergio Durigan Junior <sergiodj@redhat.com>
395
396 * Makefile.in (install-only): Install gdb-add-index.
397
906b4aac
JB
3982018-01-12 John Baldwin <jhb@FreeBSD.org>
399
400 * fbsd-tdep.c (KVE_PROTECTION): Correct value.
401
bdf2a94a
AA
4022018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
403
404 * infrun.c (keep_going_pass_signal): Clear step-over info when
405 insert_breakpoints fails.
406
71d378ae
PA
4072018-01-11 Pedro Alves <palves@redhat.com>
408
409 PR gdb/22583
410 * infrun.c (resume): Rename to ...
411 (resume_1): ... this.
412 (resume): Reimplement as wrapper around resume_1.
413
3cada740
PA
4142018-01-11 Pedro Alves <palves@redhat.com>
415
416 PR remote/22597
417 * remote.c (remote_parse_stop_reply): Default to the last-set
418 general thread instead of to 'magic_null_ptid'.
419
618daa93
PA
4202018-01-10 Pedro Alves <palves@redhat.com>
421
422 * language.h (language_get_symbol_name_matcher): Rename ...
423 (get_symbol_name_matcher): ... this.
424 * language.c (language_get_symbol_name_matcher): Ditto.
425 * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
426 callers adjusted.
427
c63d3e8d
PA
4282018-01-10 Pedro Alves <palves@redhat.com>
429
430 PR gdb/22670
431 * dwarf2read.c
432 (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
433 Adjust to use language_get_symbol_name_matcher instead of
434 language_defn::la_get_symbol_name_matcher.
435 * language.c (language_get_symbol_name_matcher): If in Ada mode
436 and the lookup name is a verbatim match, return Ada's matcher.
437 * language.h (language_get_symbol_name_matcher): Adjust comment.
438 (ada_lookup_name_info::verbatim_p):: New method.
439
d4c2a405
PA
4402018-01-10 Pedro Alves <palves@redhat.com>
441
442 PR gdb/22670
443 * ada-lang.c (ada_collect_symbol_completion_matches): If the
444 minsym's language is language_auto or language_cplus, pass down
445 language_ada instead.
446 * symtab.c (compare_symbol_name): Don't frob symbol language here.
447
8825213e
PA
4482018-01-10 Pedro Alves <palves@redhat.com>
449
450 PR gdb/22670
451 * minsyms.c (linkage_name_str): New function.
452 (iterate_over_minimal_symbols): Use it.
453
2d97a5d9
JB
4542018-01-09 John Baldwin <jhb@FreeBSD.org>
455
456 * NEWS: Document that 'info proc' now works on FreeBSD.
457
92fce24d
JB
4582018-01-09 John Baldwin <jhb@FreeBSD.org>
459
460 * configure.ac: Check for kinfo_getfile in libutil.
461 * configure: Regenerate.
462 * config.in: Regenerate.
463 * fbsd-nat.c: Include "fbsd-tdep.h".
464 (fbsd_fetch_cmdline): New.
465 (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
466 rather than calling error.
467 (fbsd_info_proc): New.
468 (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
469 (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
470 (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
471
262f62f5
JB
4722018-01-09 John Baldwin <jhb@FreeBSD.org>
473
474 * fbsd-nat.c (struct free_deleter): Remove.
475 (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
476
b999e203
JB
4772018-01-09 John Baldwin <jhb@FreeBSD.org>
478
479 * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
480 NULL for an empty pathname.
481
d2176225
JB
4822018-01-09 John Baldwin <jhb@FreeBSD.org>
483
484 * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
485 (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
486 (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
487 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
488 (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
489 (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
490 (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
491 (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
492 (kinfo_proc_layout_32, kinfo_proc_layout_i386)
493 (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
494 (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
495 (fbsd_core_fetch_timeval, fbsd_print_sigset)
496 (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
497 (fbsd_init_abi): Install gdbarch "core_info_proc" method.
498 * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
499
9c4ac400
ST
5002018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
501
502 * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
503 (gnu_xfer_auxv): New function.
504 (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
505 TARGET_OBJECT_AUXV.
506
1e5ded6c
YQ
5072018-01-08 Yao Qi <yao.qi@linaro.org>
508 Simon Marchi <simon.marchi@ericsson.com>
509
510 * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
511 common/selftest.c.
512 (COMMON_OBS): Remove selftest.o.
513 * configure.ac: Append selftest-arch.c and common/selftest.c to
514 CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS.
515 * configure: Re-generated.
516 * maint.c (maintenance_selftest): Wrap selftests::run_tests with
517 GDB_SELF_TEST.
518 (maintenance_info_selftests): Likewise.
519
04bafb1e
XR
5202018-01-08 Xavier Roirand <roirand@adacore.com>
521
522 * ada-valprint.c (val_print_packed_array_elements): Use
523 proper number of elements when printing an array indexed
524 by an enumeration type.
525
518817b3
SM
5262018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
527
528 * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
529 (dw2_get_file_names_reader): Adjust.
530 (lookup_dwo_signatured_type): Adjust.
531 (lookup_dwp_signatured_type): Adjust.
532 (lookup_signatured_type): Adjust.
533 (create_type_unit_group): Adjust.
534 (get_type_unit_group): Adjust.
535 (process_psymtab_comp_unit_reader): Adjust.
536 (build_type_psymtabs_reader): Adjust.
537 (scan_partial_symbols): Adjust.
538 (add_partial_symbol): Adjust.
539 (add_partial_subprogram): Adjust.
540 (peek_die_abbrev): Adjust.
541 (fixup_go_packaging): Adjust.
542 (process_imported_unit_die): Adjust.
543 (dwarf2_compute_name): Adjust.
544 (dwarf2_physname): Adjust.
545 (read_import_statement): Adjust.
546 (handle_DW_AT_stmt_list): Adjust.
547 (read_file_scope): Adjust.
548 (read_func_scope): Adjust.
549 (read_lexical_block_scope): Adjust.
550 (read_call_site_scope): Adjust.
551 (read_variable): Adjust.
552 (dwarf2_rnglists_process): Adjust.
553 (dwarf2_ranges_process): Adjust.
554 (dwarf2_ranges_read): Adjust.
555 (dwarf2_get_pc_bounds): Adjust.
556 (dwarf2_record_block_ranges): Adjust.
557 (dwarf2_add_field): Adjust.
558 (dwarf2_add_member_fn): Adjust.
559 (read_structure_type): Adjust.
560 (process_structure_scope): Adjust.
561 (read_enumeration_type): Adjust.
562 (read_array_type): Adjust.
563 (mark_common_block_symbol_computed): Adjust.
564 (read_common_block): Adjust.
565 (read_namespace_type): Adjust.
566 (read_namespace): Adjust.
567 (read_module_type): Adjust.
568 (read_tag_pointer_type): Adjust.
569 (read_tag_ptr_to_member_type): Adjust.
570 (read_tag_string_type): Adjust.
571 (read_subroutine_type): Adjust.
572 (read_typedef): Adjust.
573 (read_base_type): Adjust.
574 (attr_to_dynamic_prop): Adjust.
575 (read_subrange_type): Adjust.
576 (read_unspecified_type): Adjust.
577 (dwarf2_read_abbrevs): Adjust.
578 (load_partial_dies): Adjust.
579 (read_partial_die): Adjust.
580 (find_partial_die): Adjust.
581 (guess_partial_die_structure_name): Adjust.
582 (fixup_partial_die): Adjust.
583 (read_attribute_value): Adjust.
584 (read_addr_index): Adjust.
585 (read_addr_index_from_leb128): Adjust.
586 (read_str_index): Adjust.
587 (dwarf2_string_attr): Adjust.
588 (get_debug_line_section): Adjust.
589 (dwarf_decode_line_header): Adjust.
590 (lnp_state_machine::check_line_address): Adjust.
591 (dwarf_decode_lines_1): Adjust.
592 (dwarf_decode_lines): Adjust.
593 (dwarf2_start_symtab): Adjust.
594 (var_decode_location): Adjust.
595 (new_symbol_full): Adjust.
596 (dwarf2_const_value_data): Adjust.
597 (dwarf2_const_value_attr): Adjust.
598 (dwarf2_const_value): Adjust.
599 (die_type): Adjust.
600 (die_containing_type): Adjust.
601 (build_error_marker_type): Adjust.
602 (lookup_die_type): Adjust.
603 (guess_full_die_structure_name): Adjust.
604 (anonymous_struct_prefix): Adjust.
605 (determine_prefix): Adjust.
606 (dwarf2_name): Adjust.
607 (follow_die_ref_or_sig): Adjust.
608 (follow_die_offset): Adjust.
609 (follow_die_ref): Adjust.
610 (follow_die_sig_1): Adjust.
611 (follow_die_sig): Adjust.
612 (get_signatured_type): Adjust.
613 (get_DW_AT_signature_type): Adjust.
614 (decode_locdesc): Adjust.
615 (dwarf_decode_macros): Adjust.
616 (cu_debug_loc_section): Adjust.
617 (fill_in_loclist_baton): Adjust.
618 (dwarf2_symbol_mark_computed): Adjust.
619 (init_one_comp_unit): Don't assign
620 dwarf2_cu::dwarf2_per_objfile.
621 (set_die_type): Adjust.
622
ed2dc618
SM
6232018-01-07 Simon Marchi <simon.marchi@ericsson.com>
624
625 * dwarf2read.c (struct mapped_debug_names): Add constructor.
626 <dwarf2_per_objfile>: New field.
627 (dwarf2_per_objfile): Remove global.
628 (get_dwarf2_per_objfile): New function.
629 (set_dwarf2_per_objfile): New function.
630 (dwarf2_build_psymtabs_hard): Change objfile parameter to
631 dwarf2_per_objfile.
632 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
633 (read_abbrev_offset): Likewise.
634 (read_indirect_string): Likewise.
635 (read_indirect_line_string): Likewise.
636 (read_indirect_string_at_offset): Likewise.
637 (read_indirect_string_from_dwz): Likewise.
638 (dwarf2_find_containing_comp_unit): Change objfile parameter to
639 dwarf2_per_objfile.
640 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
641 (create_all_comp_units): Change objfile parameter to
642 dwarf2_per_objfile.
643 (create_all_type_units): Likewise.
644 (process_queue): Add dwarf2_per_objfile parameter.
645 (read_and_check_comp_unit_head): Likewise.
646 (lookup_dwo_unit_in_dwp): Likewise.
647 (get_dwp_file): Likewise.
648 (process_cu_includes): Likewise.
649 (struct free_dwo_file_cleanup_data): New struct.
650 (dwarf2_has_info): Use get_dwarf2_per_objfile and
651 set_dwarf2_per_objfile.
652 (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
653 (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
654 context, adjust calls.
655 (dw2_instantiate_symtab): Likewise.
656 (dw2_get_cutu): Add dwarf2_per_objfile parameter.
657 (dw2_get_cu): Likewise.
658 (create_cu_from_index_list): Change objfile parameter to
659 dwarf2_per_objfile.
660 (create_cus_from_index_list): Get dwarf2_per_objfile from
661 context, adjust calls.
662 (create_cus_from_index): Likewise.
663 (create_signatured_type_table_from_index): Change objfile
664 parameter to dwarf2_per_objfile.
665 (create_signatured_type_table_from_debug_names): Change objfile
666 parameter to dwarf2_per_objfile.
667 (create_addrmap_from_index): Likewise.
668 (create_addrmap_from_aranges): Likewise.
669 (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
670 (dw2_setup): Remove.
671 (dw2_get_file_names_reader): Get dwarf2_per_objfile from
672 context.
673 (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
674 get_dwarf2_per_objfile.
675 (dw2_forget_cached_source_info): Likewise.
676 (dw2_map_symtabs_matching_filename): Likewise.
677 (struct dw2_symtab_iterator) <index>: Remove.
678 <dwarf2_per_objfile>: New field.
679 (dw2_symtab_iter_init): Replace index parameter with
680 dwarf2_per_objfile.
681 (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
682 (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
683 (dw2_print_stats): Likewise.
684 (dw2_dump): Likewise.
685 (dw2_expand_symtabs_for_function): Likewise.
686 (dw2_expand_all_symtabs): Likewise.
687 (dw2_expand_symtabs_with_fullname): Likewise.
688 (dw2_expand_marked_cus): Replace index and objfile parameters
689 with dwarf2_per_objfile.
690 (dw_expand_symtabs_matching_file_matcher): Add
691 dwarf2_per_objfile parameter and adjust calls.
692 (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
693 adjust calls.
694 (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
695 (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
696 adjust calls.
697 (create_cus_from_debug_names_list): Replace objfile parameter
698 with dwarf2_per_objfile and adjust calls.
699 (create_cus_from_debug_names): Likewise.
700 (dwarf2_read_debug_names): Likewise.
701 (mapped_debug_names::namei_to_name): Adjust call.
702 (dw2_debug_names_iterator::next): Likewise.
703 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
704 (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
705 (dw2_debug_names_dump): Likewise.
706 (dw2_debug_names_expand_symtabs_for_function): Likewise.
707 (dw2_debug_names_expand_symtabs_matching): Likewise.
708 (dwarf2_initialize_objfile): Likewise.
709 (dwarf2_build_psymtabs): Likewise.
710 (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
711 this_cu.
712 (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
713 (read_and_check_comp_unit_head): Likewise.
714 (read_abbrev_offset): Likewise.
715 (create_debug_type_hash_table): Likewise.
716 (create_debug_types_hash_table): Likewise.
717 (create_all_type_units): Replace objfile parameter with
718 dwarf2_per_objfile.
719 (add_type_unit): Add dwarf2_per_objfile parameter.
720 (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
721 with dwarf2_per_objfile.
722 (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
723 (lookup_dwp_signatured_type): Likewise.
724 (lookup_signatured_type): Likewise.
725 (read_cutu_die_from_dwo): Likewise.
726 (init_tu_and_read_dwo_dies): Likewise.
727 (init_cutu_and_read_dies): Likewise.
728 (init_cutu_and_read_dies_no_follow): Likewise.
729 (allocate_type_unit_groups_table): Add objfile parameter.
730 (create_type_unit_group): Use dwarf2_per_objfile from cu.
731 (get_type_unit_group): Likewise.
732 (process_psymtab_comp_unit): Update call.
733 (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
734 (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
735 (print_tu_stats): Likewise.
736 (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
737 in void* parameter.
738 (build_type_psymtabs): Change objfile parameter to
739 dwarf2_per_objfile.
740 (process_skeletonless_type_unit): Use dwarf2_per_objfile
741 passed in void* parameter.
742 (process_skeletonless_type_units): Change objfile parameter to
743 dwarf2_per_objfile.
744 (set_partial_user): Likewise.
745 (dwarf2_build_psymtabs_hard): Likewise.
746 (read_comp_units_from_section): Likewise.
747 (create_all_comp_units): Likewise.
748 (scan_partial_symbols): Update calls.
749 (add_partial_symbol): Likewise.
750 (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
751 (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
752 (process_queue): Add dwarf2_per_objfile parameter.
753 (get_compunit_symtab): Use dwarf2_per_objfile from cu.
754 (compute_compunit_symtab_includes): Likewise.
755 (process_cu_includes): Add dwarf2_per_objfile parameter.
756 (process_full_comp_unit): Use dwarf2_per_objfile from cu.
757 (process_full_type_unit): Likewise.
758 (process_imported_unit_die): Update call.
759 (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
760 (read_file_scope): Likewise.
761 (allocate_dwo_file_hash_table): Add objfile parameter.
762 (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
763 (create_cus_hash_table): Likewise.
764 (create_dwp_hash_table): Likewise.
765 (create_dwo_unit_in_dwp_v1): Likewise.
766 (create_dwp_v2_section): Likewise.
767 (create_dwo_unit_in_dwp_v2): Likewise.
768 (lookup_dwo_unit_in_dwp): Likewise.
769 (try_open_dwop_file): Likewise.
770 (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
771 (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
772 cleanup to include a reference to dwarf2_per_objfile.
773 (open_dwp_file): Add dwarf2_per_objfile parameter.
774 (open_and_init_dwp_file): Likewise.
775 (get_dwp_file): Likewise.
776 (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
777 (queue_and_load_all_dwo_tus): Update call.
778 (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
779 data.
780 (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
781 (dwarf2_ranges_process): Likewise.
782 (dwarf2_get_pc_bounds): Likewise.
783 (mark_common_block_symbol_computed): Likewise.
784 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
785 (dwarf2_read_abbrevs): Update call.
786 (read_partial_die): Use dwarf2_per_objfile from cu.
787 (find_partial_die): Likewise.
788 (fixup_partial_die): Likewise.
789 (read_attribute_value): Likewise.
790 (read_indirect_string_at_offset_from): Add objfile parameter.
791 (read_indirect_string_at_offset): Add dwarf2_per_objfile
792 parameter.
793 (read_indirect_string_from_dwz): Add objfile parameter.
794 (read_indirect_string): Add objfile parameter.
795 (read_addr_index_1): Add dwarf2_per_objfile parameter.
796 (read_addr_index): Use dwarf2_per_objfile from cu.
797 (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
798 call dw2_setup.
799 (read_str_index): Use dwarf2_per_objfile from cu.
800 (get_debug_line_section): Likewise.
801 (read_formatted_entries): Add dwarf2_per_objfile parameter.
802 (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
803 (new_symbol_full): Use dwarf2_per_objfile from cu.
804 (build_error_marker_type): Likewise.
805 (lookup_die_type): Likewise.
806 (determine_prefix): Likewise.
807 (follow_die_offset): Likewise.
808 (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
809 (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
810 (dwarf2_fetch_die_type_sect_off): Likewise.
811 (dwarf2_get_die_type): Likewise.
812 (follow_die_sig_1): Use dwarf2_per_objfile from cu.
813 (get_signatured_type): Likewise.
814 (get_DW_AT_signature_type): Likewise.
815 (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
816 (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
817 (cu_debug_loc_section): Likewise.
818 (fill_in_loclist_baton): Likewise.
819 (dwarf2_symbol_mark_computed): Likewise.
820 (dwarf2_find_containing_comp_unit): Change objfile parameter to
821 dwarf2_per_objfile.
822 (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
823 parameter.
824 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
825 (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
826 (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
827 (set_die_type): Use dwarf2_free_objfile from cu.
828 (get_die_type_at_offset): Likewise.
829 (dwarf2_per_objfile_free): Don't assign global variable.
830 (debug_names) <constructor>: Add dwarf2_per_objfile
831 parameter, update m_debugstrlookup construction.
832 (debug_names::debug_str_lookup): Add dwarf2_per_objfile
833 parameter.
834 <m_dwarf2_per_objfile>: New field.
835 <lookup>: Use m_dwarf2_per_objfile.
836 (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
837 (psyms_seen_size): Likewise.
838 (write_gdbindex): Replace objfile parameter with
839 dwarf2_per_objfile.
840 (write_debug_names): Likewise.
841 (write_psymtabs_to_index): Likewise.
842 (save_gdb_index_command): Use get_dwarf2_per_objfile, update
843 calls.
844
e3b94546
SM
8452018-01-07 Simon Marchi <simon.marchi@ericsson.com>
846
847 * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
848 <dwarf2_per_objfile>: New field.
849 (struct dwarf2_per_cu_data) <objfile>: Remove.
850 <dwarf2_per_objfile>: New field.
851 (create_cu_from_index_list): Assign dwarf2_per_objfile instead
852 of objfile.
853 (create_signatured_type_table_from_index): Likewise.
854 (create_debug_type_hash_table): Likewise.
855 (fill_in_sig_entry_from_dwo_entry): Likewise.
856 (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
857 (create_type_unit_group): Assign dwarf2_per_objfile instead of
858 objfile.
859 (create_partial_symtab): Access objfile through
860 dwarf2_per_objfile.
861 (process_psymtab_comp_unit_reader): Likewise.
862 (read_comp_units_from_section): Likewise.
863 (scan_partial_symbols): Likewise.
864 (add_partial_symbol): Likewise.
865 (add_partial_subprogram): Likewise.
866 (peek_die_abbrev): Likewise.
867 (fixup_go_packaging): Likewise.
868 (process_full_comp_unit): Likewise.
869 (process_full_type_unit): Likewise.
870 (process_imported_unit_die): Likewise.
871 (dwarf2_compute_name): Likewise.
872 (dwarf2_physname): Likewise.
873 (read_import_statement): Likewise.
874 (create_cus_hash_table): Assign dwarf2_physname instead of
875 objfile.
876 (read_func_scope): Access objfile through dwarf2_per_objfile.
877 (read_lexical_block_scope): Likewise.
878 (read_call_site_scope): Likewise.
879 (read_variable): Likewise.
880 (dwarf2_rnglists_process): Likewise.
881 (dwarf2_ranges_process): Likewise.
882 (dwarf2_ranges_read): Likewise.
883 (dwarf2_record_block_ranges): Likewise.
884 (dwarf2_add_field): Likewise.
885 (dwarf2_add_member_fn): Likewise.
886 (read_structure_type): Likewise.
887 (process_structure_scope): Likewise.
888 (read_enumeration_type): Likewise.
889 (read_array_type): Likewise.
890 (read_common_block): Likewise.
891 (read_namespace_type): Likewise.
892 (read_namespace): Likewise.
893 (read_module_type): Likewise.
894 (read_tag_pointer_type): Likewise.
895 (read_tag_ptr_to_member_type): Likewise.
896 (read_tag_string_type): Likewise.
897 (read_subroutine_type): Likewise.
898 (read_typedef): Likewise.
899 (read_base_type): Likewise.
900 (attr_to_dynamic_prop): Likewise.
901 (read_subrange_type): Likewise.
902 (read_unspecified_type): Likewise.
903 (load_partial_dies): Likewise.
904 (read_partial_die): Likewise.
905 (find_partial_die): Likewise.
906 (guess_partial_die_structure_name): Likewise.
907 (fixup_partial_die): Likewise.
908 (read_attribute_value): Likewise.
909 (read_addr_index_from_leb128): Likewise.
910 (dwarf2_read_addr_index): Likewise.
911 (dwarf2_string_attr): Likewise.
912 (lnp_state_machine::check_line_address): Likewise.
913 (dwarf_decode_lines_1): Likewise.
914 (dwarf_decode_lines): Likewise.
915 (dwarf2_start_symtab): Likewise.
916 (var_decode_location): Likewise.
917 (new_symbol_full): Likewise.
918 (dwarf2_const_value_data): Likewise.
919 (dwarf2_const_value_attr): Likewise.
920 (dwarf2_const_value): Likewise.
921 (die_type): Likewise.
922 (die_containing_type): Likewise.
923 (lookup_die_type): Likewise.
924 (guess_full_die_structure_name): Likewise.
925 (anonymous_struct_prefix): Likewise.
926 (dwarf2_name): Likewise.
927 (follow_die_ref_or_sig): Likewise.
928 (follow_die_offset): Likewise.
929 (follow_die_ref): Likewise.
930 (dwarf2_fetch_die_loc_sect_off): Likewise.
931 (dwarf2_fetch_constant_bytes): Likewise.
932 (dwarf2_fetch_die_type_sect_off): Likewise.
933 (dwarf2_get_die_type): Likewise.
934 (follow_die_sig): Likewise.
935 (decode_locdesc): Likewise.
936 (dwarf2_per_cu_objfile): Likewise.
937 (dwarf2_per_cu_text_offset): Likewise.
938 (init_one_comp_unit): Assign dwarf2_per_objfile instead of
939 objfile.
940 (set_die_type): Access objfile through
941 dwarf2_per_objfile.
942
b01ba14d
SM
9432018-01-07 Simon Marchi <simon.marchi@ericsson.com>
944
945 * valprint.c (converted_character_d): Remove typedef.
946 (DEF_VEC_O (converted_character_d)): Remove.
947 (count_next_character): Use std::vector.
948 (print_converted_chars_to_obstack): Likewise.
949 (generic_printstr): Likewise.
950
4d0fdd9b
SM
9512018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
952
953 * xml-support.h (struct gdb_xml_value): Add constructor.
954 <value>: Change type to unique_xmalloc_ptr.
955 (gdb_xml_value_s): Remove typedef.
956 (DEF_VEC_O (gdb_xml_value_s)): Remove.
957 (gdb_xml_element_start_handler): Change parameter type to
958 std::vector.
959 (xml_find_attribute): Likewise.
960 * xml-support.c (xml_find_attribute): Change parameter type to
961 std::vector and adjust.
962 (gdb_xml_values_cleanup): Remove.
963 (gdb_xml_parser::start_element): Adjust to std::vector.
964 (xinclude_start_include): Change paraeter type to std::vector
965 and adjust.
966 * btrace.c (check_xml_btrace_version): Likewise.
967 (parse_xml_btrace_block): Likewise.
968 (parse_xml_btrace_pt_config_cpu): Likewise.
969 (parse_xml_btrace_pt): Likewise.
970 (parse_xml_btrace_conf_bts): Likewise.
971 (parse_xml_btrace_conf_pt): Likewise.
972 * memory-map.c (memory_map_start_memory): Likewise.
973 (memory_map_start_property): Likewise.
974 * osdata.c (osdata_start_osdata): Likewise.
975 (osdata_start_item): Likewise.
976 (osdata_start_column): Likewise.
977 * remote.c (start_thread): Likewise.
978 * solib-aix.c (library_list_start_library): Likewise.
979 (library_list_start_list): Likewise.
980 * solib-svr4.c (library_list_start_library): Likewise.
981 (svr4_library_list_start_list): Likewise.
982 * solib-target.c (library_list_start_segment): Likewise.
983 (library_list_start_section): Likewise.
984 (library_list_start_library): Likewise.
985 (library_list_start_list): Likewise.
986 * tracepoint.c (traceframe_info_start_memory): Likewise.
987 (traceframe_info_start_tvar): Likewise.
988 * xml-syscall.c (syscall_start_syscall): Likewise.
989 * xml-tdesc.c (tdesc_start_target): Likewise.
990 (tdesc_start_feature): Likewise.
991 (tdesc_start_reg): Likewise.
992 (tdesc_start_union): Likewise.
993 (tdesc_start_struct): Likewise.
994 (tdesc_start_flags): Likewise.
995 (tdesc_start_enum): Likewise.
996 (tdesc_start_field): Likewise.
997 (tdesc_start_enum_value): Likewise.
998 (tdesc_start_vector): Likewise.
999
f979c73f
SM
10002018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
1001
1002 * extension.h (struct xmethod_worker) <clone>: Remove.
1003 * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
1004 Remove.
1005 (python_xmethod_worker::clone): Remove.
1006 * valops.c (find_overload_match): Use std::move instead of
1007 clone.
1008
ba18742c
SM
10092018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
1010
1011 * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
1012 (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
1013 <free_xmethod_worker_data>: Remove.
1014 <get_matching_xmethod_workers>: Chance VEC to std::vector.
1015 <get_xmethod_arg_types>: Remove.
1016 <get_xmethod_result_type>: Remove.
1017 <invoke_xmethod>: Remove.
1018 * extension.c (new_xmethod_worker): Remove.
1019 (clone_xmethod_worker): Remove.
1020 (get_matching_xmethod_workers): Return void, pass std::vector by
1021 pointer.
1022 (get_xmethod_arg_types): Rename to...
1023 (xmethod_worker::get_arg_types): ... this, and adjust.
1024 (get_xmethod_result_type): Rename to...
1025 (xmethod_worker::get_result_type): ... this, and adjust.
1026 (invoke_xmethod): Remove.
1027 (free_xmethod_worker): Remove.
1028 (free_xmethod_worker_vec): Remove.
1029 * extension.h (enum ext_lang_rc): Move here from
1030 extension-priv.h.
1031 (struct xmethod_worker): Add constructor and destructor.
1032 <data>: Remove.
1033 <value>: Remove.
1034 <invoke, clone, do_get_result_type, do_get_arg_types>: New
1035 virtual pure methods.
1036 <get_arg_types, get_result_type>: New methods.
1037 (xmethod_worker_ptr): Remove typedef.
1038 (DEF_VEC_P (xmethod_worker_ptr)): Remove.
1039 (xmethod_worker_vec): Remove typedef.
1040 (xmethod_worker_up): New typedef.
1041 (invoke_xmethod): Remove.
1042 (clone_xmethod_worker): Remove.
1043 (free_xmethod_worker): Remove.
1044 (free_xmethod_worker_vec): Remove.
1045 (get_xmethod_arg_types): Remove.
1046 (get_xmethod_result_type): Remove.
1047 * valops.c (find_method_list): Use std::vector, don't use
1048 intermediate vector.
1049 (value_find_oload_method_list): Use std::vector.
1050 (find_overload_match): Use std::vector.
1051 (find_oload_champ): Use std::vector.
1052 * value.c (value_free): Use operator delete.
1053 (value_of_xmethod): Rename to...
1054 (value_from_xmethod): ... this. Don't assign
1055 xmethod_worker::value, take rvalue-reference.
1056 (result_type_of_xmethod): Adjust.
1057 (call_xmethod): Adjust.
1058 * value.h: Include extension.h.
1059 (struct xmethod_worker): Don't forward-declare.
1060 (value_of_xmethod): Rename to...
1061 (value_from_xmethod): ... this, take rvalue-reference.
1062 * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
1063 (struct python_xmethod_worker): ... this, add constructor and
1064 destructor.
1065 <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
1066 (gdbpy_free_xmethod_worker_data): Rename to...
1067 (python_xmethod_worker::~python_xmethod_worker): ... this and
1068 adjust.
1069 (gdbpy_clone_xmethod_worker_data): Rename to...
1070 (python_xmethod_worker::clone): ... this and adjust.
1071 (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
1072 temporary vector.
1073 (gdbpy_get_xmethod_arg_types): Rename to...
1074 (python_xmethod_worker::do_get_arg_types): ... this and adjust.
1075 (gdbpy_get_xmethod_result_type): Rename to...
1076 (python_xmethod_worker::do_get_result_type): ... this and
1077 adjust.
1078 (gdbpy_invoke_xmethod): Rename to...
1079 (python_xmethod_worker::invoke): ... this and adjust.
1080 (new_python_xmethod_worker): Rename to...
1081 (python_xmethod_worker::python_xmethod_worker): ... this and
1082 adjust.
1083 * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
1084 Remove.
1085 (gdbpy_free_xmethod_worker_data): Remove.
1086 (gdbpy_get_matching_xmethod_workers): Use std::vector.
1087 (gdbpy_get_xmethod_arg_types): Remove.
1088 (gdbpy_get_xmethod_result_type): Remove.
1089 (gdbpy_invoke_xmethod): Remove.
1090 * python/python.c (python_extension_ops): Remove obsolete
1091 callbacks.
1092
e379cee6
PA
10932018-01-05 Pedro Alves <palves@redhat.com>
1094
1095 PR gdb/18653
1096 * common/signals-state-save-restore.c
1097 (save_original_signals_state): New parameter 'quiet'. Warn if we
1098 find a custom handler preinstalled, instead of internal erroring.
1099 But only warn if !quiet.
1100 * common/signals-state-save-restore.h
1101 (save_original_signals_state): New parameter 'quiet'.
1102 * main.c (captured_main_1): Move save_original_signals_state call
1103 after option handling, and pass QUIET.
1104
a655456c
PA
11052018-01-05 Pedro Alves <palves@redhat.com>
1106
1107 * spu-tdep.c (spu_catch_start): Pass
1108 symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
1109
de63c46b
PA
11102018-01-05 Pedro Alves <palves@redhat.com>
1111
1112 PR gdb/22670
1113 * ada-lang.c (literal_symbol_name_matcher): New function.
1114 (ada_get_symbol_name_matcher): Use it for
1115 symbol_name_match_type::SEARCH_NAME.
1116 * block.c (block_lookup_symbol): New parameter 'match_type'. Pass
1117 it down instead of assuming symbol_name_match_type::FULL.
1118 * block.h (block_lookup_symbol): New parameter 'match_type'.
1119 * c-valprint.c (print_unpacked_pointer): Use
1120 lookup_symbol_search_name instead of lookup_symbol.
1121 * compile/compile-object-load.c (get_out_value_type): Pass down
1122 symbol_name_match_type::SEARCH_NAME.
1123 * cp-namespace.c (cp_basic_lookup_symbol): Pass down
1124 symbol_name_match_type::FULL.
1125 * cp-support.c (cp_get_symbol_name_matcher): Handle
1126 symbol_name_match_type::SEARCH_NAME.
1127 * infrun.c (insert_exception_resume_breakpoint): Use
1128 lookup_symbol_search_name.
1129 * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
1130 * psymtab.c (maintenance_check_psymtabs): Use
1131 symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
1132 * stack.c (print_frame_args): Use lookup_symbol_search_name and
1133 SYMBOL_SEARCH_NAME.
1134 * symtab.c (lookup_local_symbol): Don't demangle the lookup name
1135 if symbol_name_match_type::SEARCH_NAME.
1136 (lookup_symbol_in_language): Pass down
1137 symbol_name_match_type::FULL.
1138 (lookup_symbol_search_name): New.
1139 (lookup_language_this): Pass down
1140 symbol_name_match_type::SEARCH_NAME.
1141 (lookup_symbol_aux, lookup_local_symbol): New parameter
1142 'match_type'. Pass it down.
1143 * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
1144 (lookup_symbol_search_name): New declaration.
1145 (lookup_symbol_in_block): New 'match_type' parameter.
1146
f98fc17b
PA
11472018-01-05 Pedro Alves <palves@redhat.com>
1148
1149 PR gdb/22670
1150 * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
1151 ada_lookup_symbol.
1152 (ada_lookup_symbol): Reimplement in terms of
1153 ada_lookup_symbol_list, bits factored out from
1154 ada_lookup_encoded_symbol.
1155
342f8240
JB
11562018-01-05 Joel Brobecker <brobecker@adacore.com>
1157
1158 * ada-exp.y (write_object_renaming): When subscripting an array
1159 using a symbol as the index, pass the block in call to
1160 ada_lookup_encoded_symbol when looking that symbol up.
1161
7150d33c
JG
11622018-01-05 Jerome Guitton <guitton@adacore.com>
1163
1164 * ada-lang.c (ada_array_length): Use ada_index_type instead of
1165 TYPE_INDEX_TYPE.
1166
cc0e770c
JB
11672018-01-05 Joel Brobecker <brobecker@adacore.com>
1168
1169 * ada-lang.c (ada_to_fixed_value_create): Add handling of
1170 the case where VALUE_LVAL (val0) is not lval_memory.
1171
f79da888 11722018-01-05 Xavier Roirand <roirand@adacore.com>
e3861a03
XR
1173
1174 * ada-valprint.c (print_optional_low_bound): Handle
1175 character-indexed array printing like boolean-indexed array
1176 printing.
1177
cd385f94
JB
11782018-01-05 Joel Brobecker <brobecker@adacore.com>
1179
1180 * NEWS: Create a new section for the next release branch.
1181 Rename the section of the current branch, now that it has
1182 been cut.
1183
09aca949
JB
11842018-01-05 Joel Brobecker <brobecker@adacore.com>
1185
1186 GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
1187 * version.in: Bump version to 8.1.50.DATE-git.
1188
9f757bf7
XR
11892018-01-03 Xavier Roirand <roirand@adacore.com>
1190
1191 * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
1192 Add field.
1193 * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
1194 Add field.
1195 (default_exception_support_info) <catch_handlers_sym>: Add field.
1196 (exception_support_info_fallback) <catch_handlers_sym>: Add field.
1197 (ada_exception_name_addr_1): Add "catch handlers" handling.
1198 (ada_exception_catchpoint_cond_string) <ex>: New parameter.
1199 Update all callers.
1200 (create_excep_cond_exprs) <ex>: Add parameter.
1201 (re_set_exception): Update create_excep_cond_exprs call.
1202 (print_it_exception, print_one_exception, print_mention_exception)
1203 (print_recreate_exception): Add "catch handler" handling.
1204 (allocate_location_catch_handlers, re_set_catch_handlers)
1205 (check_status_catch_handlers, print_it_catch_handlers)
1206 (print_one_catch_handlers, print_mention_catch_handlers)
1207 (print_recreate_catch_handlers): New function.
1208 (catch_handlers_breakpoint_ops): New variable.
1209 (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
1210 Add parameter. Add "catch handler" handling.
1211 (ada_exception_sym_name, ada_exception_breakpoint_ops):
1212 Add "catch handler" handling.
1213 (ada_exception_catchpoint_cond_string): Add "catch handler"
1214 handling.
1215 (create_ada_exception_catchpoint): Update create_excep_cond_exprs
1216 call.
1217 (catch_ada_handlers_command): New function.
1218 (initialize_ada_catchpoint_ops): Initialize "catch handlers"
1219 operations structure.
1220 (_initialize_ada_language): Add "catch handlers" command entry.
1221 * NEWS: Document "catch handlers" feature.
1222
9fe561ab
JB
12232018-01-02 Joel Brobecker <brobecker@adacore.com>
1224
1225 * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
1226 account when creating the array type of the slice.
1227 (ada_value_slice): Likewise.
1228
a405673c
JB
12292018-01-02 Joel Brobecker <brobecker@adacore.com>
1230
1231 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
1232 New enum value.
1233 (create_array_type_with_stride): Add byte_stride_prop parameter.
1234 * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
1235 New parameter. Update all callers in this file.
1236 (array_type_has_dynamic_stride): New function.
1237 (is_dynamic_type_internal, resolve_dynamic_array): Add handling
1238 of arrays with dynamic byte strides.
1239 * dwarf2read.c (read_array_type): Add support for dynamic
1240 DW_AT_byte_stride attributes.
1241
74a2f8ff
JB
12422018-01-02 Joel Brobecker <brobecker@adacore.com>
1243
1244 * dwarf2read.c (read_unspecified_type): Treat
1245 DW_TAG_enumeration_type DIEs from Ada units as stubs.
1246
e2882c85
JB
12472018-01-01 Joel Brobecker <brobecker@adacore.com>
1248
1249 Update copyright year range in all GDB files.
1250
1690bb24
JB
12512018-01-01 Joel Brobecker <brobecker@adacore.com>
1252
1253 * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
1254 and gdb/testsuite/gdb.base/step-line.c.
1255
0f0c98a8
JB
12562018-01-01 Joel Brobecker <brobecker@adacore.com>
1257
1258 * copyright.py (main): Dump the contents of
1259 MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
1260 even if BY_HAND is empty.
1261
82e1e79a
JB
12622018-01-01 Joel Brobecker <brobecker@adacore.com>
1263
1264 * top.c (print_gdb_version): Update Copyright year in version
1265 message.
1266
053f54e5 12672018-01-01 Joel Brobecker <brobecker@adacore.com>
47fea877 1268
053f54e5 1269 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
47fea877 1270
053f54e5 1271For older changes see ChangeLog-2017.
c906108c
SS
1272\f
1273Local Variables:
1274mode: change-log
1275left-margin: 8
1276fill-column: 74
1277version-control: never
57da7796 1278coding: utf-8
c906108c 1279End:
This page took 2.262618 seconds and 4 git commands to generate.