Change read_alphacoff_dynamic_symtab to use gdb::byte_vector
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2018-04-03 Tom Tromey <tom@tromey.com>
2
3 * mipsread.c (read_alphacoff_dynamic_symtab): Use
4 gdb::byte_vector.
5
6 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
7
8 * MAINTAINERS (Write After Approval): Add Weimin Pan.
9
10 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
11
12 PR gdb/16959
13 * cp-valprint.c: (cp_print_static_field) Fix infinite recursion when
14 printing static type.
15
16 2018-04-01 Tom Tromey <tom@tromey.com>
17
18 * rs6000-nat.c (rs6000_ptrace_ldinfo): Return a byte_vector.
19 (rs6000_xfer_shared_libraries): Update.
20
21 2018-04-01 Simon Marchi <simon.marchi@polymtl.ca>
22
23 * common/gdb_vecs.h (char_ptr): Remove.
24 * tracepoint.c (encode_actions_1): Remove usage of char_ptr.
25
26 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
27
28 * guile/scm-utils.c (gdbscm_parse_function_args): Replace VEC
29 with std::vector.
30 * common/gdb_vecs.h (DEF_VEC_P (char_ptr)): Remove.
31
32 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
33
34 * tracepoint.h (struct uploaded_tp): Initialize fields.
35 <actions, step_actions, cmd_strings>: Change type to
36 std::vector<char *>.
37 * tracepoint.c (get_uploaded_tp): Allocate with new.
38 (free_uploaded_tps): Free with delete.
39 (parse_tracepoint_definition): Adjust to std::vector change.
40 * breakpoint.c (read_uploaded_action): Likewise.
41 (create_tracepoint_from_upload): Likewise.
42 * ctf.c (ctf_write_uploaded_tp): Likewise.
43 (SET_ARRAY_FIELD): Likewise.
44 * tracefile-tfile.c (tfile_write_uploaded_tp): Likewise.
45
46 2018-03-30 Tom Tromey <tom@tromey.com>
47
48 * solib-svr4.c (lm_info_read): Use gdb::byte_vector. Return
49 std::unique_ptr.
50 (svr4_keep_data_in_core): Update.
51 (svr4_read_so_list): Update.
52
53 2018-03-30 Tom Tromey <tom@tromey.com>
54
55 * windows-nat.c (handle_output_debug_string, handle_exception):
56 Update.
57 * target.h (target_read_string): Update.
58 * target.c (target_read_string): Change "string" to
59 unique_xmalloc_ptr.
60 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
61 Update.
62 * solib-frv.c (frv_current_sos): Update.
63 * solib-dsbt.c (dsbt_current_sos): Update.
64 * solib-darwin.c (darwin_current_sos): Update.
65 * linux-thread-db.c (inferior_has_bug): Update.
66 * expprint.c (print_subexp_standard) <case OP_OBJC_MSGCALL>:
67 Update. Remove alloca.
68 * ada-lang.c (ada_main_name): Update.
69
70 2018-03-30 Tom Tromey <tom@tromey.com>
71
72 * dwarf2read.c (struct free_dwo_file_cleanup_data): Remove.
73 (struct dwo_file_deleter): New.
74 (dwo_file_up): New typedef.
75 (open_and_init_dwo_file): Use dwo_file_up.
76 (free_dwo_file_cleanup): Remove.
77
78 2018-03-30 Tom Tromey <tom@tromey.com>
79
80 * dwarf2read.c (free_dwo_file): Remove "objfile" parameter.
81 (free_dwo_file_cleanup, free_dwo_file_from_slot): Update.
82
83 2018-03-30 Tom Tromey <tom@tromey.com>
84
85 * dwarf2read.c (class free_cached_comp_units): New class.
86 (dw2_instantiate_symtab, dwarf2_build_psymtabs_hard): Use it.
87 (free_cached_comp_units): Remove function.
88
89 2018-03-30 Tom Tromey <tom@tromey.com>
90
91 * utils.h (make_cleanup_unpush_target): Remove.
92 * inf-ptrace.c (struct target_unpusher): New.
93 (target_unpush_up) New typedef.
94 (inf_ptrace_create_inferior, inf_ptrace_attach): Use
95 target_unpush_up.
96 * utils.c (do_unpush_target, make_cleanup_unpush_target): Remove.
97
98 2018-03-27 Tom Tromey <tom@tromey.com>
99
100 * utils.c (prompt_for_continue): Use unique_xmalloc_ptr.
101
102 2018-03-27 Pedro Alves <palves@redhat.com>
103 Tom Tromey <tom@tromey.com>
104
105 * top.c (class gdb_readline_wrapper_cleanup): Add constructor,
106 destructor. Now a class.
107 (gdb_readline_wrapper_cleanup): Remove function.
108 (gdb_readline_wrapper): Remove cleanups.
109
110 2018-03-27 Tom Tromey <tom@tromey.com>
111
112 * typeprint.h (struct type_print_options) <local_typedefs,
113 global_typedefs>: Remove "struct" keyword.
114 (class typedef_hash_table): New class.
115 (recursively_update_typedef_hash, add_template_parameters)
116 (create_typedef_hash, free_typedef_hash, copy_typedef_hash)
117 (find_typedef_in_hash): Don't declare.
118 * typeprint.c (struct typedef_hash_table): Move to typeprint.h.
119 (typedef_hash_table::recursively_update): Rename from
120 recursively_update_typedef_hash. Now a member.
121 (typedef_hash_table::add_template_parameters): Rename from
122 add_template_parameters. Now a member.
123 (typedef_hash_table::typedef_hash_table): Now a constructor;
124 rename from create_typedef_hash.
125 (typedef_hash_table::~typedef_hash_table): Now a destructor;
126 rename from free_typedef_hash.
127 (do_free_typedef_hash, make_cleanup_free_typedef_hash)
128 (do_free_global_table): Remove.
129 (typedef_hash_table::typedef_hash_table): New constructor; renamed
130 from copy_type_recursive.
131 (create_global_typedef_table): Remove.
132 (typedef_hash_table::find_global_typedef): Now a member of
133 typedef_hash_table.
134 (typedef_hash_table::find_typedef): Rename from
135 find_typedef_in_hash; now a member.
136 (whatis_exp): Update.
137 * extension.h (struct ext_lang_type_printers): Add constructor and
138 destructor.
139 (start_ext_lang_type_printers, free_ext_lang_type_printers): Don't
140 declare.
141 * extension.c (ext_lang_type_printers::ext_lang_type_printers):
142 Now a constructor; rename from start_ext_lang_type_printers.
143 (ext_lang_type_printers): Now a destructor; rename from
144 free_ext_lang_type_printers.
145 * c-typeprint.c (find_typedef_for_canonicalize, c_print_type_1):
146 Update.
147 (c_type_print_base_struct_union): Update. Remove cleanups.
148
149 2018-03-27 Tom Tromey <tom@tromey.com>
150
151 * dwarf-index-write.c: Include <cmath>.
152
153 2018-03-27 Joel Brobecker <brobecker@adacore.com>
154
155 * NEWS: Add entry describing new "set|show varsize-limit" command.
156 * ada-lang.c (_initialize_ada_language): Add "set/show varsize-limit"
157 command.
158 * printcmd.c (_initialize_printcmd): Add "set var" alias of
159 "set variable".
160
161 2018-03-27 Simon Marchi <simon.marchi@ericsson.com>
162
163 * Makefile.in (COMMON_SFILES): Add dwarf-index-common.c and
164 dwarf-index-write.c
165 (HFILES_NO_SRCDIR): Add dwarf-index-common.h and dwarf2read.h.
166 * dwarf-index-common.c: New file.
167 * dwarf-index-common.h: New file.
168 * dwarf-index-write.c: New file.
169 * dwarf2read.c: Include dwarf2read.h and dwarf-index-common.h.
170 (struct dwarf2_section_info): Move from here.
171 (dwarf2_section_info_def): Likewise.
172 (DEF_VEC_O (dwarf2_section_info_def)): Likewise.
173 (offset_type): Likewise.
174 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): Likewise.
175 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): Likewise.
176 (DW2_GDB_INDEX_CU_SET_VALUE): Likewise.
177 (byte_swap): Likewise.
178 (MAYBE_SWAP): Likewise.
179 (dwarf2_per_cu_ptr): Likewise.
180 (DEF_VEC_P (dwarf2_per_cu_ptr)): Likewise.
181 (struct tu_stats): Likewise.
182 (struct dwarf2_per_objfile): Likewise.
183 (struct dwarf2_per_cu_data): Likewise.
184 (struct signatured_type): Likewise.
185 (sig_type_ptr): Likewise.
186 (DEF_VEC_P (sig_type_ptr)): Likewise.
187 (INDEX4_SUFFIX): Likewise.
188 (INDEX5_SUFFIX): Likewise.
189 (DEBUG_STR_SUFFIX): Likewise.
190 (dwarf2_read_section): Make non-static.
191 (mapped_index_string_hash): Move from here.
192 (dwarf5_djb_hash): Likewise.
193 (file_write): Likewise.
194 (class data_buf): Likewise.
195 (struct symtab_index_entry): Likewise.
196 (struct mapped_symtab): Likewise.
197 (find_slot): Likewise.
198 (hash_expand): Likewise.
199 (add_index_entry): Likewise.
200 (uniquify_cu_indices): Likewise.
201 (class c_str_view): Likewise.
202 (class c_str_view_hasher): Likewise.
203 (class vector_hasher): Likewise.
204 (write_hash_table): Likewise.
205 (psym_index_map): Likewise.
206 (struct addrmap_index_data): Likewise.
207 (add_address_entry): Likewise.
208 (add_address_entry_worker): Likewise.
209 (write_address_map): Likewise.
210 (symbol_kind): Likewise.
211 (write_psymbols): Likewise.
212 (struct signatured_type_index_data): Likewise.
213 (write_one_signatured_type): Likewise.
214 (recursively_count_psymbols): Likewise.
215 (recursively_write_psymbols): Likewise.
216 (class debug_names): Likewise.
217 (check_dwarf64_offsets): Likewise.
218 (psyms_seen_size): Likewise.
219 (write_gdbindex): Likewise.
220 (write_debug_names): Likewise.
221 (assert_file_size): Likewise.
222 (write_psymtabs_to_index): Likewise.
223 (save_gdb_index_command): Likewise.
224 (_initialize_dwarf2_read): Don't register the "save gdb-index"
225 command.
226 * dwarf2read.h: New file.
227
228 2018-03-27 Joel Brobecker <brobecker@adacore.com>
229
230 PR gdb/22670
231 * dwarf2read.c (dwarf2_physname): Do not return the demangled
232 symbol name if the CU's language stores symbol names in linkage
233 format.
234 * language.h (struct language_defn)
235 <la_store_sym_names_in_linkage_form_p>: New field. Adjust
236 all instances of this struct.
237
238 2018-03-26 Tom Tromey <tom@tromey.com>
239
240 * stack.c (backtrace_command_1): Remove verbose code.
241
242 2018-03-26 Tom Tromey <tom@tromey.com>
243
244 * python/py-framefilter.c (py_print_type): Don't catch
245 exceptions. Return void.
246 (py_print_value): Likewise.
247 (py_print_single_arg): Likewise.
248 (enumerate_args): Don't catch exceptions.
249 (py_print_args): Likewise.
250 (py_print_frame): Likewise.
251 (gdbpy_apply_frame_filter): Catch exceptions here.
252
253 2018-03-26 Tom Tromey <tom@tromey.com>
254
255 * stack.c (_initialize_stack): Remove trailing newlines from help
256 text. Add "Usage" line to "backtrace" help.
257
258 2018-03-26 Tom Tromey <tom@tromey.com>
259
260 PR python/16486:
261 * python/py-framefilter.c (py_print_args): Call wrap_hint.
262
263 2018-03-26 Tom Tromey <tom@tromey.com>
264
265 * python/py-framefilter.c (py_print_single_arg): Return
266 EXT_LANG_BT_ERROR from catch.
267
268 2018-03-26 Tom Tromey <tom@tromey.com>
269
270 PR backtrace/15584:
271 * stack.c (backtrace_command_1): Move some code into no-filters
272 "if".
273
274 2018-03-26 Tom Tromey <tom@tromey.com>
275
276 * python/py-framefilter.c (throw_quit_or_print_exception): New
277 function.
278 (gdbpy_apply_frame_filter): Use it.
279
280 2018-03-26 Tom Tromey <tom@tromey.com>
281
282 PR cli/17716:
283 * python/py-framefilter.c (py_print_type, py_print_value)
284 (enumerate_args, py_print_args, gdbpy_apply_frame_filter): Use
285 RETURN_MASK_ERROR.
286
287 2018-03-26 Tom Tromey <tom@tromey.com>
288
289 * python/py-framefilter.c (enumerate_args): Use
290 gdb::unique_xmalloc_ptr.
291
292 2018-03-26 Tom Tromey <tom@tromey.com>
293
294 * python/py-framefilter.c (py_print_frame): Return
295 EXT_LANG_BT_OK.
296 (gdbpy_apply_frame_filter): Update comment.
297 * extension.h (enum ext_lang_bt_status) <EXT_LANG_BT_COMPLETED>:
298 Remove.
299 <EXT_LANG_BT_NO_FILTERS>: Change value.
300
301 2018-03-26 Tom Tromey <tom@tromey.com>
302
303 PR backtrace/15582:
304 * stack.c (backtrace_command): Parse "hide" argument.
305 * python/py-framefilter.c (py_print_frame): Handle PRINT_HIDE.
306 * extension.h (enum frame_filter_flags) <PRINT_HIDE>: New
307 constant.
308
309 2018-03-26 Tom Tromey <tom@tromey.com>
310
311 * stack.c (backtrace_command_1): Remove "show_locals" parameter,
312 add "flags".
313 (backtrace_command): Remove "fulltrace", add "flags".
314
315 2018-03-26 Tom Tromey <tom@tromey.com>
316
317 * stack.c (backtrace_command): Rewrite command line parsing.
318
319 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
320
321 * dwarf2read.c (DEF_VEC_I(offset_type)): Remove.
322
323 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
324
325 * filename-seen-cache.h: Add include guard.
326
327 2018-03-26 Keith Seitz <keiths@redhat.com>
328
329 * symfile.c (place_section): Remove "struct" from section_addr_info
330 in comment.
331 * windows-nat.c (struct safe_symbol_file_add_args) <addrs>: Remove
332 "struct" keyword from section_addr_info.
333
334 2018-03-26 Alan Hayward <alan.hayward@arm.com>
335
336 * regformats/regdef.h (reg): Add constructors.
337
338 2018-03-25 Pedro Alves <palves@redhat.com>
339
340 * eval.c (evaluate_funcall): Swap OP_VAR_MSYM_VALUE/OP_VAR_VALUE
341 if then/else bodies in var_func_name extraction.
342
343 2018-03-23 Weimin Pan <weimin.pan@oracle.com>
344
345 * minsyms.c (lookup_minimal_symbol_and_objfile): Use
346 lookup_minimal_symbol() to find symbol entry.
347 * minsyms.h (lookup_minimal_symbol_and_objfile): Update comment.
348
349 2018-03-23 Keith Seitz <keiths@redhat.com>
350
351 PR c++/22968
352 * dwarf2read.c (scan_partial_symbols): Scan structs/classes for
353 nested type definitions for C++, too.
354
355 2018-03-23 Tom Tromey <tom@tromey.com>
356
357 * machoread.c (struct oso_el): Add a constructor. Don't define as
358 a typedef.
359 (macho_register_oso): Remove.
360 (macho_symtab_read): Take a std::vector.
361 (oso_el_compare_name): Now a std::sort comparator.
362 (macho_symfile_read_all_oso): Take a std::vector.
363 (macho_symfile_read): Use std::vector. Remove cleanups.
364
365 2018-03-22 Tom Tromey <tom@tromey.com>
366
367 * record-full.c (record_full_exec_insn): Use gdb::byte_vector.
368 (record_full_goto_bookmark): Use std::string.
369
370 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
371
372 PR tdep/18295
373 * rs6000-tdep.c (skip_prologue): Match both stwux and stdux
374 a single mask.
375
376 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
377
378 * rs6000-tdep.c (store_insn_p): New function.
379 (skip_prologue): New variable alloca_reg_offset. Set lr_reg
380 and cr_reg to their unshifted values. Use store_insn_p to
381 match LR saves using either R1 or fdata->alloca_reg. Use
382 store_insn_p to match CR saves. Set alloca_reg_offset
383 when alloca_reg and framep are set. Remove lr_reg shift
384 when assigning to fdata->lr_register.
385
386 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
387
388 * linux-tdep.c (linux_info_proc): For "info proc cmdline", print
389 command line args instead of emitting a warning.
390
391 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
392
393 * tracepoint.h (struct static_tracepoint_marker): Initialize
394 fields, define default constructor, move constructor and move
395 assignment, disable the rest.
396 <str_id, extra>: Make std::string.
397 (release_static_tracepoint_marker): Remove.
398 (free_current_marker): Remove.
399 * tracepoint.c (free_current_marker): Remove.
400 (parse_static_tracepoint_marker_definition): Adjust to
401 std::string, use new hex2str overload.
402 (release_static_tracepoint_marker): Remove.
403 (print_one_static_tracepoint_marker): Get marker by reference
404 and adjust to std::string.
405 (info_static_tracepoint_markers_command): Adjust to std::vector
406 changes
407 * target.h (static_tracepoint_marker_p): Remove typedef.
408 (DEF_VEC_P(static_tracepoint_marker_p)): Remove.
409 (struct target_ops) <to_static_tracepoint_marker_at>: Return
410 bool.
411 <to_static_tracepoint_markers_by_strid>: Return std::vector.
412 * target-debug.h
413 (target_debug_print_VEC_static_tracepoint_marker_p_p): Remove.
414 (target_debug_print_std_vector_static_tracepoint_marker): New.
415 (target_debug_print_struct_static_tracepoint_marker_p): Rename
416 to...
417 (target_debug_print_static_tracepoint_marker_p): ... this.
418 * target-delegates.c: Re-generate.
419 * breakpoint.h (struct tracepoint) <static_trace_marker_id>:
420 Make std::string.
421 * breakpoint.c (init_breakpoint_sal): Adjust to std::string.
422 (decode_static_tracepoint_spec): Adjust to std::vector.
423 (tracepoint_print_one_detail): Adjust to std::string.
424 (strace_marker_decode_location): Adjust to std::string.
425 (update_static_tracepoint): Adjust to std::string, remove call
426 to release_static_tracepoint_marker.
427 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
428 Adjust to std::vector.
429 * remote.c (remote_static_tracepoint_marker_at): Return bool.
430 (remote_static_tracepoint_markers_by_strid): Adjust to
431 std::vector.
432 * common/rsp-low.h (hex2str): New overload with explicit count
433 of bytes.
434 * common/rsp-low.c (hex2str): New overload with explicit count
435 of bytes.
436 * unittests/rsp-low-selftests.c (test_hex2str): New function.
437 (_initialize_rsp_low_selftests): Add test_hex2str test.
438 * unittests/tracepoint-selftests.c
439 (test_parse_static_tracepoint_marker_definition): Adjust to
440 std::string.
441
442 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
443
444 * tracepoint.c (parse_static_tracepoint_marker_definition):
445 Consider case where the definition is followed by more
446 definitions.
447 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
448 tracepoint-selftests.c.
449 * unittests/tracepoint-selftests.c: New.
450
451 2018-03-21 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
452
453 * MAINTAINERS (Write After Approval): Add Pedro Franco de
454 Carvalho.
455
456 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
457
458 * symtab.c (find_pc_sect_line): fixed indentation.
459
460 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
461
462 * symtab.c (find_pc_sect_line): now uses binary search.
463
464 2018-03-19 Tom Tromey <tom@tromey.com>
465
466 * rust-exp.y (struct_expr_tail, struct_expr_list): Add plain
467 "IDENT" production.
468
469 2018-03-19 Pedro Alves <palves@redhat.com>
470 Tom Tromey <tom@tromey.com>
471
472 * unittests/observable-selftests.c: New file.
473 * common/observable.h: New file.
474 * observable.h: New file.
475 * ada-lang.c, ada-tasks.c, agent.c, aix-thread.c, annotate.c,
476 arm-tdep.c, auto-load.c, auxv.c, break-catch-syscall.c,
477 breakpoint.c, bsd-uthread.c, cli/cli-interp.c, cli/cli-setshow.c,
478 corefile.c, dummy-frame.c, event-loop.c, event-top.c, exec.c,
479 extension.c, frame.c, gdbarch.c, guile/scm-breakpoint.c,
480 infcall.c, infcmd.c, inferior.c, inflow.c, infrun.c, jit.c,
481 linux-tdep.c, linux-thread-db.c, m68klinux-tdep.c,
482 mi/mi-cmd-break.c, mi/mi-interp.c, mi/mi-main.c, objfiles.c,
483 ppc-linux-nat.c, ppc-linux-tdep.c, printcmd.c, procfs.c,
484 python/py-breakpoint.c, python/py-finishbreakpoint.c,
485 python/py-inferior.c, python/py-unwind.c, ravenscar-thread.c,
486 record-btrace.c, record-full.c, record.c, regcache.c, remote.c,
487 riscv-tdep.c, sol-thread.c, solib-aix.c, solib-spu.c, solib.c,
488 spu-multiarch.c, spu-tdep.c, stack.c, symfile-mem.c, symfile.c,
489 symtab.c, thread.c, top.c, tracepoint.c, tui/tui-hooks.c,
490 tui/tui-interp.c, valops.c: Update all users.
491 * tui/tui-hooks.c (tui_bp_created_observer)
492 (tui_bp_deleted_observer, tui_bp_modified_observer)
493 (tui_inferior_exit_observer, tui_before_prompt_observer)
494 (tui_normal_stop_observer, tui_register_changed_observer):
495 Remove.
496 (tui_observers_token): New global.
497 (attach_or_detach, tui_attach_detach_observers): New functions.
498 (tui_install_hooks, tui_remove_hooks): Use
499 tui_attach_detach_observers.
500 * record-btrace.c (record_btrace_thread_observer): Remove.
501 (record_btrace_thread_observer_token): New global.
502 * observer.sh: Remove.
503 * observer.c: Rename to observable.c.
504 * observable.c (namespace gdb_observers): Define new objects.
505 (observer_debug): Move into gdb_observers namespace.
506 (struct observer, struct observer_list, xalloc_observer_list_node)
507 (xfree_observer_list_node, generic_observer_attach)
508 (generic_observer_detach, generic_observer_notify): Remove.
509 (_initialize_observer): Update.
510 Don't include observer.inc.
511 * Makefile.in (generated_files): Remove observer.h, observer.inc.
512 (clean mostlyclean): Likewise.
513 (observer.h, observer.inc): Remove targets.
514 (SUBDIR_UNITTESTS_SRCS): Add observable-selftests.c.
515 (COMMON_SFILES): Use observable.c, not observer.c.
516 * .gitignore: Remove observer.h.
517
518 2018-03-18 Tom Tromey <tom@tromey.com>
519
520 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Use
521 gdb::def_vector.
522 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
523
524 2018-03-17 Tom Tromey <tom@tromey.com>
525
526 * auto-load.c (auto_load_objfile_script_1): Use std::string.
527
528 2018-03-17 Tom Tromey <tom@tromey.com>
529
530 * target.c (class scoped_target_fd): New.
531 (target_fileio_close_cleanup): Remove.
532 (target_fileio_read_alloc_1): Use scoped_target_fd.
533
534 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
535
536 * silent-rules.mk: New.
537 * Makefile.in: Include silent-rules.mk
538 (srcdir, VPATH, top_srcdir): Move up.
539 (COMPILE): Add ECHO_CXX.
540 (test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD.
541 (init.c): Add ECHO_INIT_C.
542 (gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
543 (version.c): Add ECHO_GEN.
544 (printcmd.o): Add ECHO_CXX.
545 (target-float.o): Add ECHO_CXX.
546 (ada-exp.o): Add ECHO_CXX.
547 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN.
548 (insight$(EXEEXT)): Add ECHO_CXXLD.
549 * gnulib/configure.ac: Add AM_SILENT_RULES.
550 * gnulib/aclocal.m4: Re-generate.
551 * gnulib/configure: Re-generate.
552 * gnulib/import/Makefile.in: Re-generate.
553
554 2018-03-16 Tom Tromey <tom@tromey.com>
555
556 * xcoffread.c (xcoff_symfile_offsets): Change type of "addrs".
557 * utils.h (make_cleanup_free_section_addr_info): Don't declare.
558 * utils.c (do_free_section_addr_info)
559 (make_cleanup_free_section_addr_info): Remove.
560 * symfile.h (struct other_sections): Add constructor.
561 (struct section_addr_info): Remove.
562 (section_addr_info): New typedef.
563 (struct sym_fns) <sym_offsets>: Change type of parameter.
564 (build_section_addr_info_from_objfile)
565 (relative_addr_info_to_section_offsets, addr_info_make_relative)
566 (default_symfile_offsets, symbol_file_add)
567 (symbol_file_add_from_bfd)
568 (build_section_addr_info_from_section_table): Update.
569 (alloc_section_addr_info, free_section_addr_info): Don't declare.
570 * symfile.c (alloc_section_addr_info): Remove.
571 (build_section_addr_info_from_section_table): Change return type.
572 Update.
573 (build_section_addr_info_from_bfd)
574 (build_section_addr_info_from_objfile): Likewise.
575 (free_section_addr_info): Remove.
576 (relative_addr_info_to_section_offsets): Change type of "addrs".
577 (addrs_section_compar): Now a std::sort comparator.
578 (addrs_section_sort): Change return type.
579 (addr_info_make_relative): Change type of "addrs". Update.
580 (default_symfile_offsets, syms_from_objfile_1)
581 (syms_from_objfile, symbol_file_add_with_addrs): Likewise.
582 (symbol_file_add_separate): Update.
583 (symbol_file_add): Change type of "addrs". Update.
584 (add_symbol_file_command): Update. Remove cleanups.
585 * symfile-mem.c (symbol_file_add_from_memory): Update. Remove
586 cleanups.
587 * symfile-debug.c (debug_sym_offsets): Change type of "info".
588 * solib.c (solib_read_symbols): Update.
589 * objfiles.c (objfile_relocate): Update. Remove cleanups.
590 * machoread.c (macho_symfile_offsets): Update.
591 * jit.c (jit_bfd_try_read_symtab): Update.
592
593 2018-03-15 Simon Marchi <simon.marchi@polymtl.ca>
594
595 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
596 unittests/utils-selftests.c.
597 * unittests/utils-selftests.c: New file.
598
599 2018-03-14 Tom Tromey <tom@tromey.com>
600
601 PR cli/14977:
602 * printcmd.c (printf_c_string, printf_wide_c_string): Special case
603 for NULL.
604
605 2018-03-14 Tom Tromey <tom@tromey.com>
606
607 PR cli/19918:
608 * printcmd.c (printf_pointer): Allow "-" in format.
609
610 2018-03-14 Tom Tromey <tom@tromey.com>
611
612 * printcmd.c (_initialize_printcmd): Add usage to printf.
613
614 2018-03-14 Yao Qi <qiyao@sourceware.org>
615
616 * MAINTAINERS: Update my email address.
617
618 2018-03-13 Tom Tromey <tom@tromey.com>
619
620 * machoread.c (macho_check_dsym): Change filenamep to a
621 std::string*.
622 (macho_symfile_read): Update.
623 * symfile.c (load_command): Use std::string.
624
625 2018-03-12 Andrew Burgess <andrew.burgess@embecosm.com>
626
627 * riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization
628 to error message string.
629 (riscv_register_name): Use xsnprintf instead of sprintf.
630 (riscv_insn::fetch_instruction): Use gdb_assert instead of
631 internal_error.
632 (riscv_print_arg_location): Use gdb_assert_not_reached instead of
633 error.
634 (riscv_push_dummy_call): Likewise.
635
636 2018-03-12 Tom Tromey <tom@tromey.com>
637
638 * rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix):
639 Use gdb::byte_vector.
640 * arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector.
641
642 2018-03-12 Yao Qi <yao.qi@linaro.org>
643
644 * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change
645 parameter type to readable_regcache.
646 * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update
647 the declaration.
648
649 2018-03-11 Tom Tromey <tom@tromey.com>
650
651 * dwarf2read.c (struct nextfield): Add initializers.
652 (struct nextfnfield): Remove.
653 (struct fnfieldlist): Add initializers. Remove "length" and
654 "head", use std::vector.
655 (struct decl_field_list): Remove.
656 (struct field_info): Add initializers.
657 <fields, baseclasses>: Now std::vector.
658 <nbaseclasses, nfnfields, typedef_field_list_count,
659 nested_types_list_count>: Remove.
660 (dwarf2_add_field, dwarf2_add_type_defn)
661 (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
662 (dwarf2_attach_fn_fields_to_type, handle_struct_member_die)
663 (process_structure_scope): Update.
664
665 2018-03-11 Tom Tromey <tom@tromey.com>
666
667 * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable
668 for use by std::sort.
669 (build_type_psymtabs_1): Use std::vector.
670
671 2018-03-09 Eli Zaretskii <eliz@gnu.org>
672
673 * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK,
674 and LIBMPFR in the printed configuration.
675
676 2018-03-08 Tom Tromey <tom@tromey.com>
677
678 * source.c (get_filename_and_charpos): Use scoped_fd.
679 * nto-procfs.c (procfs_open_1): Use scoped_fd.
680 (procfs_pidlist): Likewise.
681 * procfs.c (proc_get_LDT_entry): Use scoped_fd.
682 (iterate_over_mappings): Likewise.
683
684 2018-03-08 Tom Tromey <tom@tromey.com>
685
686 * infcall.c (struct call_return_meta_info)
687 <stack_temporaries_enabled>: Remove.
688 (get_call_return_value, call_function_by_hand_dummy): Update.
689 * thread.c (disable_thread_stack_temporaries): Remove.
690 (enable_thread_stack_temporaries): Remove.
691 (thread_stack_temporaries_enabled_p): Return bool.
692 (push_thread_stack_temporary, value_in_thread_stack_temporaries)
693 (get_last_thread_stack_temporary): Update.
694 * eval.c (evaluate_subexp): Update.
695 * gdbthread.h (class enable_thread_stack_temporaries): Now a
696 class, not a function.
697 (value_ptr, value_vec): Remove typedefs.
698 (class thread_info) <stack_temporaries_enabled>: Now bool.
699 <stack_temporaries>: Now a std::vector.
700 (thread_stack_temporaries_enabled_p)
701 (value_in_thread_stack_temporaries): Return bool.
702
703 2018-03-08 Simon Marchi <simon.marchi@ericsson.com>
704
705 * remote.c (putpkt_binary): Fix omitted bytes reporting.
706 (getpkt_or_notif_sane_1): Likewise.
707
708 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
709
710 * build-id.c (build_id_to_debug_bfd): Use std::string.
711
712 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
713
714 * build-id.c (find_separate_debug_file_by_buildid): Return
715 std::string.
716 * build-id.h (find_separate_debug_file_by_buildid): Return
717 std::string.
718 * coffread.c (coff_symfile_read): Adjust to std::string.
719 * elfread.c (elf_symfile_read): Adjust to std::string.
720 * symfile.c (separate_debug_file_exists): Change parameter to
721 std::string.
722 (find_separate_debug_file): Return std::string.
723 (find_separate_debug_file_by_debuglink): Return std::string.
724 * symfile.h (find_separate_debug_file_by_debuglink): Return
725 std::string.
726
727 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
728
729 * common/xml-utils.c (xml_escape_text): Move code to...
730 (xml_escape_text_append): ... this new function.
731 * common/xml-utils.h (xml_escape_text_append): New declaration.
732 * unittests/xml-utils-selftests.c (test_xml_escape_text_append):
733 New function.
734 (_initialize_xml_utils): register test_xml_escape_text_append as
735 a selftest.
736
737 2018-03-07 Alan Hayward <alan.hayward@arm.com>
738
739 * defs.h: Remove MAX_REGISTER_SIZE.
740 * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE
741 asserts.
742 * python/py-unwind.c (pyuw_sniffer): Likewise.
743
744 2018-03-07 Tom Tromey <tom@tromey.com>
745
746 * linux-tdep.c (linux_info_proc): Update.
747 * target.h (struct target_ops) <to_fileio_readlink>: Return
748 optional<string>.
749 (target_fileio_readlink): Return optional<string>.
750 * remote.c (remote_hostio_readlink): Return optional<string>.
751 * inf-child.c (inf_child_fileio_readlink): Return
752 optional<string>.
753 * target.c (target_fileio_readlink): Return optional<string>.
754
755 2018-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
756
757 * regcache.c (cooked_read_test): Add riscv to the list of
758 architectures that have a save_reggroup.
759
760 2018-03-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
761
762 * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given
763 value is not a dynamic class object.
764
765 2018-03-06 Tom Tromey <tom@tromey.com>
766
767 * rust-exp.y: Formatting fixes.
768
769 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
770
771 * riscv-tdep.c (riscv_register_name): Remove target description
772 support.
773 (riscv_gdbarch_init): Remove target description check.
774
775 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
776
777 * riscv-tdep.c: Remove 'Contributed by ...' lines from header
778 comment.
779 * riscv-tdep.h: Likewise.
780
781 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
782
783 * riscv-tdep.c (riscv_pseudo_register_read): Delete.
784 (riscv_pseudo_register_write): Delete.
785 (riscv_gdbarch_init): Remove all use of pseudo registers.
786
787 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
788
789 * record-btrace.c (btrace_print_lines): Replace cleanup
790 parameter with RAII equivalents.
791 (btrace_insn_history): Replace cleanup with RAII equivalents.
792 * ui-out.h (make_cleanup_ui_out_list_begin_end,
793 make_cleanup_ui_out_tuple_begin_end): Remove.
794 * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end,
795 make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end,
796 make_cleanup_ui_out_list_begin_end): Remove.
797
798 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
799
800 * record-btrace.c (record_btrace_maybe_mark_async_event): Change
801 parameter types to std::vector. Use bool.
802 (record_btrace_wait): Replace VEC(tp_t) with
803 std::vector<thread_info *>.
804 * common/gdb_vecs.h (unordered_remove, ordered_remove): New.
805
806 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
807
808 * record-btrace.c (record_btrace_disable_callback): Remove.
809 (struct scoped_btrace_disable): New.
810 (record_btrace_open): Use scoped_btrace_disable.
811
812 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
813
814 * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for
815 reading values from registers.
816
817 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
818
819 * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz
820 where appropriate.
821
822 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
823
824 * riscv-tdep.c (riscv_print_arg_location): Add header comment,
825 change parameter type. Use GDB's print functions, and use
826 core_addr_to_string where appropriate.
827 (riscv_push_dummy_call): Use core_addr_to_string where
828 appropriate, update call to riscv_print_arg_location, and reindent
829 a few lines.
830 (riscv_return_value): Update call to riscv_print_arg_location.
831
832 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
833 Tim Newsome <tim@sifive.com>
834 Albert Ou <a0u@eecs.berkeley.edu>
835 Darius Rad <darius@bluespec.com>
836
837 * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o
838 (HFILES_NO_SRCDIR): Add riscv-tdep.h.
839 (ALLDEPFILES): Add riscv-tdep.c
840 * configure.tgt: Add riscv support.
841 * riscv-tdep.c: New file.
842 * riscv-tdep.h: New file.
843 * NEWS: Mention new target.
844 * MAINTAINERS: Add entry for riscv.
845
846 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
847
848 * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized
849 fields within aggregates.
850
851 2018-03-04 Simon Marchi <simon.marchi@polymtl.ca>
852
853 * record-btrace.c (btrace_print_lines): Change type of flags to
854 gdb_disassembly_flags.
855
856 2018-03-04 John Baldwin <jhb@FreeBSD.org>
857
858 * fbsd-nat.c: Include "inf-ptrace.h".
859 (USE_SIGTRAP_SIGINFO): Conditionally define.
860 [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function.
861 (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap".
862 [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New
863 function.
864 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint):
865 Likewise.
866 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint):
867 Likewise.
868 (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set
869 "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint",
870 "supports_stopped_by_hw_breakpoint" target methods.
871
872 2018-03-04 John Baldwin <jhb@FreeBSD.org>
873
874 * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat".
875 * fbsd-nat.c (debug_fbsd_nat): New variable.
876 (show_fbsd_nat_debug): New function.
877 (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled.
878 (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command.
879
880 2018-03-04 John Baldwin <jhb@FreeBSD.org>
881
882 * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function.
883 * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New
884 prototype.
885 * x86-nat.c (x86_stopped_by_hw_breakpoint): New function.
886 (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target
887 method.
888
889 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
890
891 * common/gdb_vecs.c (free_char_ptr_vec): Remove.
892 * common/gdb_vecs.h (free_char_ptr_vec): Remove.
893
894 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
895
896 * charset.c (struct charset_vector): New.
897 (charsets): Change type to charset_vector.
898 (find_charset_names): Adjust.
899 (add_one): Adjust.
900 (_initialize_charset): Adjust.
901
902 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
903
904 * progspace.h (struct program_space) <deleted_solibs>: Change
905 type to std::vector<std::string>.
906 * progspace.c (clear_program_space_solib_cache): Adjust.
907 * breakpoint.c (print_solib_event): Adjust.
908 (check_status_catch_solib): Adjust.
909 * solib.c (update_solib_list): Adjust.
910 * ui-out.h (class ui_out) <field_string>: New overload.
911 * ui-out.c (ui_out::field_string): New overload.
912
913 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
914
915 * progspace.h (struct program_space): Add constructor and
916 destructor, initialize fields.
917 (add_program_space): Remove.
918 * progspace.c (add_program_space): Rename to...
919 (program_space::program_space): ... this.
920 (release_program_space): Rename to...
921 (program_space::~program_space): ... this.
922 (delete_program_space): Use delete to delete program_space.
923 (initialize_progspace): Use new to allocate program_space.
924 * inferior.c (add_inferior_with_spaces): Likewise.
925 (clone_inferior_command): Likewise.
926 * infrun.c (follow_fork_inferior): Likewise.
927 (handle_vfork_child_exec_or_exit): Likewise.
928
929 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
930
931 * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove.
932 (delim_string_to_char_ptr_vec): Return std::vector of
933 gdb::unique_xmalloc_ptr.
934 (dirnames_to_char_ptr_vec_append): Take std::vector of
935 gdb::unique_xmalloc_ptr.
936 (dirnames_to_char_ptr_vec): Return std::vector of
937 gdb::unique_xmalloc_ptr.
938 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append):
939 Take std::vector of gdb::unique_xmalloc_ptr, adjust the code.
940 (delim_string_to_char_ptr_vec): Return an std::vector of
941 gdb::unique_xmalloc_ptr, adjust the code.
942 (dirnames_to_char_ptr_vec_append): Take an std::vector of
943 gdb::unique_xmalloc_ptr, adjust the code.
944 (dirnames_to_char_ptr_vec): Return an std::vector of
945 gdb::unique_xmalloc_ptr, adjust the code.
946 * auto-load.c (auto_load_safe_path_vec): Change type to
947 std::vector of gdb::unique_xmalloc_ptr.
948 (auto_load_expand_dir_vars): Return an std::vector of
949 gdb::unique_xmalloc_ptr, adjust the code.
950 (auto_load_safe_path_vec_update): Adjust.
951 (filename_is_in_auto_load_safe_path_vec): Adjust.
952 (auto_load_objfile_script_1): Adjust.
953 * build-id.c (build_id_to_debug_bfd): Adjust.
954 * linux-thread-db.c (thread_db_load_search): Adjust.
955 * source.c (add_path): Adjust.
956 (openp): Adjust.
957 * symfile.c (find_separate_debug_file): Adjust.
958 * utils.c (do_free_char_ptr_vec): Remove.
959 (make_cleanup_free_char_ptr_vec): Remove.
960
961 2018-03-01 Sergio Durigan Junior <sergiodj@redhat.com>
962
963 PR gdb/22907
964 * common/pathstuff.c: Conditionally include "<windows.h>".
965
966 2018-03-01 Georg Sauthoff <mail@georg.so>
967
968 PR gdb/22888
969 * gcore.in: Quote variables and switch interpreter to bash.
970
971 2018-03-01 Tom Tromey <tom@tromey.com>
972
973 * dwarf2read.c (alloc_discriminant_info): Fix default_index
974 assertion. Add assertion for discriminant_index.
975 (quirk_rust_enum): Use correct base type name in univariant case.
976
977 2018-03-01 Simon Marchi <simon.marchi@ericsson.com>
978
979 * record.c (get_call_history_modifiers): Return a
980 record_print_flags.
981 (cmd_record_call_history): Adjust.
982 * record-btrace.c (record_btrace_call_history): Adjust.
983 (record_btrace_call_history_range): Adjust.
984 (record_btrace_call_history_from): Adjust.
985 * target-debug.h (target_debug_print_record_print_flags): New.
986 * target-delegates.c: Re-generate.
987 * target.c (target_call_history): Change flags type.
988 (target_call_history_from): Likewise.
989 (target_call_history_range): Likewise.
990 * target.h (struct target_ops) <target_call_history>: Likewise.
991 (target_call_history_from): Likewise.
992 (target_call_history_range): Likewise.
993
994 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
995 Simon Marchi <simon.marchi@polymtl.ca>
996
997 * common/common-utils.c: Include "sys/stat.h".
998 (is_regular_file): Move here from "source.c"; change return
999 type to "bool".
1000 * common/common-utils.h (is_regular_file): New prototype.
1001 * common/pathstuff.c (contains_dir_separator): New function.
1002 * common/pathstuff.h (contains_dir_separator): New prototype.
1003 * source.c: Don't include "sys/stat.h".
1004 (is_regular_file): Move to "common/common-utils.c".
1005
1006 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
1007
1008 * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c".
1009 (HFILES_NO_SRCDIR): Add "common/pathstuff.h".
1010 * auto-load.c: Include "common/pathstuff.h".
1011 * common/common-def.h (current_directory): Move here.
1012 * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New
1013 function.
1014 * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New
1015 prototype.
1016 * common/pathstuff.c: New file.
1017 * common/pathstuff.h: New file.
1018 * compile/compile.c: Include "common/pathstuff.h".
1019 * defs.h (current_directory): Move to "common/common-defs.h".
1020 * dwarf2read.c: Include "common/pathstuff.h".
1021 * exec.c: Likewise.
1022 * guile/scm-safe-call.c: Likewise.
1023 * linux-thread-db.c: Likewise.
1024 * main.c: Likewise.
1025 * nto-tdep.c: Likewise.
1026 * objfiles.c: Likewise.
1027 * source.c: Likewise.
1028 * symtab.c: Likewise.
1029 * utils.c: Include "common/pathstuff.h".
1030 (gdb_realpath): Move to "common/pathstuff.c".
1031 (gdb_realpath_keepfile): Likewise.
1032 (gdb_abspath): Likewise.
1033 * utils.h (gdb_realpath): Move to "common/pathstuff.h".
1034 (gdb_realpath_keepfile): Likewise.
1035 (gdb_abspath): Likewise.
1036
1037 2018-02-28 John Baldwin <jhb@FreeBSD.org>
1038
1039 * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a
1040 wildcard process pid for super_resume for kernels with a
1041 specific bug.
1042
1043 2018-02-27 Phil Muldoon <pmuldoon@redhat.com>
1044
1045 * compile/compile.c (get_args): Add additional comments
1046 explaining function.
1047
1048 2018-02-27 Simon Marchi <simon.marchi@polymtl.ca>
1049 Tom Tromey <tom@tromey.com>
1050
1051 * target.h (memory_write_request_s): Remove typedef. Don't define
1052 VEC.
1053 (target_write_memory_blocks): Change argument to std::vector.
1054 (struct memory_write_request): Add constructor.
1055 * target-memory.c (compare_block_starting_address): Return bool.
1056 Change argument types.
1057 (claim_memory): Change arguments to use std::vector.
1058 (split_regular_and_flash_blocks, blocks_to_erase)
1059 (compute_garbled_blocks): Likewise.
1060 (cleanup_request_data, cleanup_write_requests_vector): Remove.
1061 (target_write_memory_blocks): Change argument to std::vector.
1062 * symfile.c (struct load_section_data): Add constructor and
1063 destructor. Use std::vector for "requests".
1064 (struct load_progress_data): Add initializers.
1065 (load_section_callback): Update. Use "new".
1066 (clear_memory_write_data): Remove.
1067 (generic_load): Update.
1068
1069 2018-02-27 Alan Hayward <alan.hayward@arm.com>
1070
1071 * arch/aarch64.h: Use common/tdesc.h.
1072
1073 2018-02-26 Maciej W. Rozycki <macro@mips.com>
1074
1075 * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD
1076 architecture with a 64-bit ABI.
1077
1078 2018-02-26 Maciej W. Rozycki <macro@mips.com>
1079
1080 * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination
1081 ahead of target description loading.
1082
1083 2018-02-26 Tom Tromey <tom@tromey.com>
1084
1085 * stack.c (backtrace_command_1): Update.
1086 * python/python-internal.h (gdbpy_apply_frame_filter): Change type
1087 of "flags".
1088 * python/py-framefilter.c (py_print_frame)
1089 (gdbpy_apply_frame_filter): Change type of "flags".
1090 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type
1091 of "flags".
1092 (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals)
1093 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update.
1094 * extension.h (enum frame_filter_flag): Rename from
1095 frame_filter_flags.
1096 (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE.
1097 (apply_ext_lang_frame_filter): Change type of "flags".
1098 * extension.c (apply_ext_lang_frame_filter): Change type of
1099 "flags".
1100 * extension-priv.h (struct extension_language_ops)
1101 <apply_frame_filter>: Change type of "flags".
1102
1103 2018-02-26 Tom Tromey <tom@tromey.com>
1104
1105 PR python/16497:
1106 * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag. Fix
1107 off-by-one in py_end computation.
1108 * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle
1109 PRINT_MORE_FRAMES.
1110 * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New
1111 constant.
1112
1113 2018-02-26 Tom Tromey <tom@tromey.com>
1114
1115 * dwarf2read.c (struct variant_field): New.
1116 (struct nextfield) <variant>: New field.
1117 (dwarf2_add_field): Handle DW_TAG_variant_part.
1118 (dwarf2_attach_fields_to_type): Attach a discriminant_info to a
1119 discriminated union.
1120 (read_structure_type): Handle DW_TAG_variant_part.
1121 (handle_struct_member_die): New function, extracted from
1122 process_structure_scope. Handle DW_TAG_variant.
1123 (process_structure_scope): Handle discriminated unions. Call
1124 handle_struct_member_die.
1125
1126 2018-02-26 Tom Tromey <tom@tromey.com>
1127
1128 * rust-lang.h (rust_last_path_segment): Declare.
1129 * rust-lang.c (rust_last_path_segment): Now public. Change
1130 contract.
1131 (struct disr_info): Remove.
1132 (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL)
1133 (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged)
1134 (rust_get_disr_info, rust_tuple_variant_type_p): Remove.
1135 (rust_enum_p, rust_enum_variant): New function.
1136 (rust_underscore_fields): Remove "offset" parameter.
1137 (rust_print_enum): New function.
1138 (rust_val_print) <TYPE_CODE_UNION>: Remove enum code.
1139 <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate.
1140 (rust_print_struct_def): Add "for_rust_enum" parameter. Handle
1141 enums.
1142 (rust_internal_print_type): New function, from rust_print_type.
1143 Remove enum code.
1144 (rust_print_type): Call rust_internal_print_type.
1145 (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>:
1146 Update enum handling.
1147 * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field.
1148 (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum)
1149 (rust_union_quirks): New functions.
1150 (process_full_comp_unit, process_full_type_unit): Call
1151 rust_union_quirks.
1152 (process_structure_scope): Update rust_unions if necessary.
1153
1154 2018-02-26 Tom Tromey <tom@tromey.com>
1155
1156 * value.h (value_union_variant): Declare.
1157 * valops.c (value_union_variant): New function.
1158 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro.
1159 (struct discriminant_info): New.
1160 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New
1161 enumerator.
1162 (struct main_type) <flag_discriminated_union>: New field.
1163
1164 2018-02-26 Tom Tromey <tom@tromey.com>
1165
1166 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1167 unittests/unpack-selftests.c.
1168 * unittests/unpack-selftests.c: New file.
1169 * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases.
1170
1171 2018-02-26 Yao Qi <yao.qi@linaro.org>
1172
1173 * dwarf2read.c (struct partial_die_info) <read>: New method.
1174 (read_partial_die): Remove the declaration.
1175 (load_partial_dies): Update.
1176 (partial_die_info::partial_die_info):
1177 (read_partial_die): Change it to partial_die_info::read.
1178
1179 2018-02-26 Yao Qi <yao.qi@linaro.org>
1180
1181 * dwarf2read.c (struct partial_die_info) <fixup>: New method.
1182 (fixup_partial_die): Remove declaration.
1183 (scan_partial_symbols): Update.
1184 (partial_die_parent_scope): Likewise.
1185 (partial_die_full_name): Likewise.
1186 (fixup_partial_die): Change it to partial_die_info::fixup.
1187
1188 2018-02-26 Yao Qi <yao.qi@linaro.org>
1189
1190 * dwarf2read.c (read_partial_die): Update the declaration.
1191 (load_partial_dies): Caller update.
1192 (read_partial_die): Remove one argument abbrev_len.
1193
1194 2018-02-26 Yao Qi <yao.qi@linaro.org>
1195
1196 * dwarf2read.c (struct partial_die_info): Add ctor, delete
1197 assignment operator.
1198 (load_partial_dies): Use ctor and copy ctor.
1199 (read_partial_die): Update.
1200 (dwarf2_cu::find_partial_die): Use ctor.
1201
1202 2018-02-26 Yao Qi <yao.qi@linaro.org>
1203
1204 * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method.
1205 (find_partial_die_in_comp_unit): Change it to
1206 dwarf2_cu::find_partial_die.
1207 (find_partial_die): Update.
1208
1209 2018-02-26 Yao Qi <yao.qi@linaro.org>
1210
1211 * dwarf2read.c (read_partial_die): Remove the code checking abbrev
1212 is NULL.
1213
1214 2018-02-26 Yao Qi <yao.qi@linaro.org>
1215
1216 * dwarf2read.c (load_partial_dies): Move the location of XOBNEW.
1217
1218 2018-02-26 Alan Hayward <alan.hayward@arm.com>
1219
1220 * arch/amd64.h: Use common/tdesc.h.
1221 * arch/i386.c: Likewise.
1222 * arch/i386.h: Likewise.
1223 * arch/tic6x.c: Likewise.
1224 * arch/tdesc.h: Move file from here...
1225 * common/tdesc.h: ...to here.
1226 * features/aarch64-core.c: Regenerate.
1227 * features/aarch64-fpu.c: Regenerate.
1228 * features/i386/32bit-avx.c: Regenerate.
1229 * features/i386/32bit-avx512.c: Regenerate.
1230 * features/i386/32bit-core.c: Regenerate.
1231 * features/i386/32bit-linux.c: Regenerate.
1232 * features/i386/32bit-mpx.c: Regenerate.
1233 * features/i386/32bit-pkeys.c: Regenerate.
1234 * features/i386/32bit-sse.c: Regenerate.
1235 * features/i386/64bit-avx.c: Regenerate.
1236 * features/i386/64bit-avx512.c: Regenerate.
1237 * features/i386/64bit-core.c: Regenerate.
1238 * features/i386/64bit-linux.c: Regenerate.
1239 * features/i386/64bit-mpx.c: Regenerate.
1240 * features/i386/64bit-pkeys.c: Regenerate.
1241 * features/i386/64bit-segments.c: Regenerate.
1242 * features/i386/64bit-sse.c: Regenerate.
1243 * features/i386/x32-core.c: Regenerate.
1244 * features/tic6x-c6xp.c: Regenerate.
1245 * features/tic6x-core.c: Regenerate.
1246 * features/tic6x-gp.c: Regenerate.
1247 * target-descriptions.c: Use common/tdesc.h.
1248 * target-descriptions.h: Likewise.
1249
1250 2018-02-24 Tom Tromey <tom@tromey.com>
1251
1252 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
1253 (try_thread_db_load_from_dir, thread_db_load_search): Use
1254 std::string.
1255 (info_auto_load_libthread_db_compare): Return bool. Change
1256 argument types.
1257 (info_auto_load_libthread_db): Use std::vector, std::string.
1258 Remove cleanups.
1259
1260 2018-02-24 Tom Tromey <tom@tromey.com>
1261
1262 * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a
1263 std::string.
1264 * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a
1265 std::string*.
1266 * gdbarch.c: Rebuild.
1267 * gdbarch.h: Rebuild.
1268 * breakpoint.c (check_fast_tracepoint_sals): Use std::string.
1269 * arch-utils.h (default_fast_tracepoint_valid_at): Update.
1270 * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a
1271 std::string*.
1272
1273 2018-02-23 Simon Marchi <simon.marchi@polymtl.ca>
1274
1275 * gdbtypes.h (sect_offset): Change type to uint64_t.
1276 (sect_offset_str): New function.
1277 * dwarf2read.c (create_addrmap_from_aranges): Use
1278 sect_offset_str.
1279 (error_check_comp_unit_head): Likewise.
1280 (create_debug_type_hash_table): Likewise.
1281 (read_cutu_die_from_dwo): Likewise.
1282 (init_cutu_and_read_dies): Likewise.
1283 (init_cutu_and_read_dies_no_follow): Likewise.
1284 (process_psymtab_comp_unit_reader): Likewise.
1285 (partial_die_parent_scope): Likewise.
1286 (peek_die_abbrev): Likewise.
1287 (process_queue): Likewise.
1288 (dwarf2_physname): Likewise.
1289 (read_namespace_alias): Likewise.
1290 (read_import_statement): Likewise.
1291 (create_dwo_cu_reader): Likewise.
1292 (create_cus_hash_table): Likewise.
1293 (lookup_dwo_cutu): Likewise.
1294 (inherit_abstract_dies): Likewise.
1295 (read_func_scope): Likewise.
1296 (read_call_site_scope): Likewise.
1297 (dwarf2_add_member_fn): Likewise.
1298 (read_common_block): Likewise.
1299 (read_module_type): Likewise.
1300 (read_typedef): Likewise.
1301 (read_subrange_type): Likewise.
1302 (load_partial_dies): Likewise.
1303 (read_partial_die): Likewise.
1304 (find_partial_die): Likewise.
1305 (read_str_index): Likewise.
1306 (dwarf2_string_attr): Likewise.
1307 (build_error_marker_type): Likewise.
1308 (lookup_die_type): Likewise.
1309 (dump_die_shallow): Likewise.
1310 (follow_die_ref): Likewise.
1311 (dwarf2_fetch_die_loc_sect_off): Likewise.
1312 (dwarf2_fetch_constant_bytes): Likewise.
1313 (follow_die_sig): Likewise.
1314 (get_signatured_type): Likewise.
1315 (get_DW_AT_signature_type): Likewise.
1316 (dwarf2_find_containing_comp_unit): Likewise.
1317 (set_die_type): Likewise.
1318
1319 2018-02-21 John Baldwin <jhb@FreeBSD.org>
1320
1321 * arch/aarch64.c: Include "common-defs.h".
1322 * arch/amd64.c: Likewise.
1323 * arch/i386.c: Likewise.
1324
1325 2018-02-21 Tom Tromey <tom@tromey.com>
1326
1327 * value.h: (extract_field_op): Update.
1328 * eval.c (extract_field_op): Return a const char *.
1329 * expression.h (parse_expression_for_completion): Update.
1330 * completer.c (complete_expression): Update.
1331 (add_struct_fields): Make fieldname const.
1332 * parse.c (expout_completion_name): Now a unique_xmalloc_ptr.
1333 (mark_completion_tag, parse_exp_in_context_1): Update.
1334 (parse_expression_for_completion): Change "name" to
1335 unique_xmalloc_ptr*.
1336
1337 2018-02-21 Tom Tromey <tom@tromey.com>
1338
1339 * infcall.c (call_function_by_hand_dummy): Use std::vector.
1340
1341 2018-02-21 Yao Qi <yao.qi@linaro.org>
1342
1343 * avr-tdep.c (avr_read_pc): Change parameter type to
1344 readable_regcache.
1345 * gdbarch.sh (read_pc): Likewise.
1346 * gdbarch.c: Re-generated.
1347 * gdbarch.h: Re-generated.
1348 * hppa-tdep.c (hppa_read_pc): Change parameter type to
1349 readable_regcache.
1350 * ia64-tdep.c (ia64_read_pc): Likewise.
1351 * mips-tdep.c (mips_read_pc): Likewise.
1352 * spu-tdep.c (spu_read_pc): Likewise.
1353
1354 2018-02-21 Yao Qi <yao.qi@linaro.org>
1355
1356 * Makefile.in (COMMON_SFILES): Add regcache-dump.c
1357 * regcache-dump.c: New file.
1358 * regcache.c: Move register_dump to regcache-dump.c.
1359 (maintenance_print_registers): Likewise.
1360 (maintenance_print_raw_registers): Likewise.
1361 (maintenance_print_cooked_registers): Likewise.
1362 (maintenance_print_register_groups): Likewise.
1363 (maintenance_print_remote_registers): Likewise.
1364 (_initialize_regcache): Likewise.
1365 * regcache.h (register_dump): Moved from regcache.c.
1366
1367 2018-02-21 Yao Qi <yao.qi@linaro.org>
1368
1369 * regcache.c (regcache::regcache): Update.
1370 (regcache::invalidate): Move it to detached_regcache::invalidate.
1371 (get_thread_arch_aspace_regcache): Update.
1372 (regcache::raw_update): Update.
1373 (regcache::cooked_read): Remove some code.
1374 (regcache::cooked_read_value): Likewise.
1375 (regcache::raw_write): Remove assert on m_readonly_p.
1376 (regcache::raw_supply_integer): Move it to
1377 detached_regcache::raw_supply_integer.
1378 (regcache::raw_supply_zeroed): Likewise.
1379 * regcache.h (detached_regcache) <raw_supply_integer>: New
1380 declaration.
1381 <raw_supply_zeroed, invalidate>: Likewise.
1382 (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed.
1383 <invalidate>: Likewise.
1384 <m_readonly_p>: Removed.
1385
1386 2018-02-21 Yao Qi <yao.qi@linaro.org>
1387
1388 * infcmd.c (get_return_value): Let stop_regs point to
1389 get_current_regcache.
1390 * regcache.c (regcache::regcache): Remove.
1391 (register_dump_reg_buffer): New class.
1392 (regcache_print): Adjust.
1393 * regcache.h (regcache): Remove constructors.
1394
1395 2018-02-21 Yao Qi <yao.qi@linaro.org>
1396
1397 * regcache.c (class register_dump): New class.
1398 (register_dump_regcache, register_dump_none): New class.
1399 (register_dump_remote, register_dump_groups): New class.
1400 (regcache_print): Update.
1401 * regcache.h (regcache_dump_what): Move it to regcache.c.
1402 (regcache) <dump>: Remove.
1403
1404 2018-02-21 Yao Qi <yao.qi@linaro.org>
1405
1406 * jit.c (struct jit_unwind_private) <regcache>: Change its type to
1407 reg_buffer_rw *.
1408 (jit_unwind_reg_set_impl): Call raw_supply.
1409 (jit_frame_sniffer): Use reg_buffer_rw.
1410 * record-full.c (record_full_core_regbuf): Change its type.
1411 (record_full_core_open_1): Use reg_buffer_rw.
1412 (record_full_close): Likewise.
1413 (record_full_core_fetch_registers): Use regcache->raw_supply.
1414 (record_full_core_store_registers): Likewise.
1415 * regcache.c (regcache::get_register_status): Move it to
1416 reg_buffer.
1417 (regcache_raw_set_cached_value): Remove.
1418 (regcache::raw_set_cached_value): Remove.
1419 (regcache::raw_write): Call raw_supply.
1420 (regcache::raw_supply): Move it to reg_buffer_rw.
1421 * regcache.h (regcache_raw_set_cached_value): Remove.
1422 (reg_buffer_rw): New class.
1423
1424 2018-02-21 Yao Qi <yao.qi@linaro.org>
1425
1426 * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use
1427 readonly_detached_regcache.
1428 (dummy_frame_prev_register): Use regcache->cooked_read.
1429 * frame.c (frame_save_as_regcache): Change return type.
1430 (frame_pop): Update.
1431 * frame.h (frame_save_as_regcache): Update declaration.
1432 * inferior.h (get_infcall_suspend_state_regcache): Update
1433 declaration.
1434 * infrun.c (infcall_suspend_state) <registers>: use
1435 readonly_detached_regcache.
1436 (save_infcall_suspend_state): Don't use regcache_dup.
1437 (get_infcall_suspend_state_regcache): Change return type.
1438 * linux-fork.c (struct fork_info) <savedregs>: Change to
1439 readonly_detached_regcache.
1440 <pc>: New field.
1441 (fork_save_infrun_state): Don't use regcache_dup.
1442 (info_checkpoints_command): Adjust.
1443 * mi/mi-main.c (register_changed_p): Update declaration.
1444 (mi_cmd_data_list_changed_registers): Use
1445 readonly_detached_regcache.
1446 (register_changed_p): Change parameter type to
1447 readonly_detached_regcache.
1448 * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use
1449 readonly_detached_regcache.
1450 (ppu2spu_sniffer): Construct a new readonly_detached_regcache.
1451 * regcache.c (readonly_detached_regcache::readonly_detached_regcache):
1452 New.
1453 (regcache::save): Move it to reg_buffer.
1454 (regcache::restore): Change parameter type.
1455 (regcache_dup): Remove.
1456 * regcache.h (reg_buffer) <save>: New method.
1457 (readonly_detached_regcache): New class.
1458 * spu-tdep.c (spu2ppu_cache) <regcache>: Use
1459 readonly_detached_regcache.
1460 (spu2ppu_sniffer): Construct a new readonly_detached_regcache.
1461
1462 2018-02-21 Yao Qi <yao.qi@linaro.org>
1463
1464 * frame.c (frame_save_as_regcache): Use regcache method save.
1465 (frame_pop): Use regcache method restore.
1466 * infrun.c (restore_infcall_suspend_state): Likewise.
1467 * linux-fork.c (fork_load_infrun_state): Likewise.
1468 * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method
1469 save.
1470 * regcache.c (regcache_save): Remove.
1471 (regcache::restore): More asserts.
1472 (regcache_cpy): Remove.
1473 * regcache.h (regcache_save): Remove the declaration.
1474 (regcache::restore): Move from private to public.
1475 Remove the friend declaration of regcache_cpy.
1476 (regcache_cpy): Remove declaration.
1477
1478 2018-02-21 Yao Qi <yao.qi@linaro.org>
1479
1480 * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change
1481 parameter type to 'readable_regcache *'.
1482 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
1483 * arm-tdep.c (arm_neon_quad_read): Likewise.
1484 (arm_pseudo_read): Likewise.
1485 * avr-tdep.c (avr_pseudo_register_read): Likewise.
1486 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
1487 * frv-tdep.c (frv_pseudo_register_read): Likewise.
1488 * gdbarch.c: Re-generated.
1489 * gdbarch.h: Re-generated.
1490 * gdbarch.sh (pseudo_register_read): Change parameter type to
1491 'readable_regcache *'.
1492 (pseudo_register_read_value): Likewise.
1493 * h8300-tdep.c (pseudo_from_raw_register): Likewise.
1494 (h8300_pseudo_register_read): Likewise.
1495 * hppa-tdep.c (hppa_pseudo_register_read): Likewise.
1496 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
1497 (i386_pseudo_register_read_into_value): Likewise.
1498 (i386_pseudo_register_read_value): Likewise.
1499 * i386-tdep.h (i386_pseudo_register_read_into_value): Update
1500 declaration.
1501 * ia64-tdep.c (ia64_pseudo_register_read): Likewise.
1502 * m32c-tdep.c (m32c_raw_read): Likewise.
1503 (m32c_read_flg): Likewise.
1504 (m32c_banked_register): Likewise.
1505 (m32c_banked_read): Likewise.
1506 (m32c_sb_read): Likewise.
1507 (m32c_part_read): Likewise.
1508 (m32c_cat_read): Likewise.
1509 (m32c_r3r2r1r0_read): Likewise.
1510 (m32c_pseudo_register_read): Likewise.
1511 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
1512 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
1513 (mep_pseudo_cr64_read): Likewise.
1514 (mep_pseudo_register_read): Likewise.
1515 * mips-tdep.c (mips_pseudo_register_read): Likewise.
1516 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
1517 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
1518 * regcache.c (regcache::raw_read): Move it to readable_regcache.
1519 (regcache::cooked_read): Likewise.
1520 (regcache::cooked_read_value): Likewise.
1521 (regcache_cooked_read_signed):
1522 (regcache::cooked_read): Likewise.
1523 * regcache.h (readable_regcache): New class.
1524 (regcache): Inherit readable_regcache. Move some methods to
1525 readable_regcache.
1526 * rl78-tdep.c (rl78_pseudo_register_read): Change
1527 parameter type to 'readable_regcache *'.
1528 * rs6000-tdep.c (do_regcache_raw_read): Remove.
1529 (e500_pseudo_register_read): Change parameter type to
1530 'readable_regcache *'.
1531 (dfp_pseudo_register_read): Likewise.
1532 (vsx_pseudo_register_read): Likewise.
1533 (efpr_pseudo_register_read): Likewise.
1534 * s390-tdep.c (s390_pseudo_register_read): Likewise.
1535 * sh-tdep.c (sh_pseudo_register_read): Likewise.
1536 * sh64-tdep.c (pseudo_register_read_portions): Likewise.
1537 (sh64_pseudo_register_read): Likewise.
1538 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
1539 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
1540 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
1541 (spu_pseudo_register_read): Likewise.
1542 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
1543 (xtensa_pseudo_register_read): Likewise.
1544
1545 2018-02-21 Yao Qi <yao.qi@linaro.org>
1546
1547 * regcache.c (regcache::regcache): Call reg_buffer ctor.
1548 (regcache::arch): Move it to reg_buffer::arch.
1549 (regcache::register_buffer): Likewise.
1550 (regcache::assert_regnum): Likewise.
1551 (regcache::num_raw_registers): Likewise.
1552 * regcache.h (reg_buffer): New class.
1553 (regcache): Inherit reg_buffer.
1554
1555 2018-02-20 Simon Marchi <simon.marchi@ericsson.com>
1556
1557 * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
1558 gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF.
1559
1560 2018-02-20 Markus Metzger <markus.t.metzger@intel.com>
1561
1562 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp.
1563
1564 2018-02-19 Alan Hayward <alan.hayward@arm.com>
1565
1566 * Makefile.in: (COMMON_SFILES): Add common/*.c files.
1567 (SFILES): Remove common/*.c files.
1568 (COMMON_OBS): Remove some *.o files built from common/*.c files.
1569 * common/common.host: Add common reference.
1570 * configure.ac: Likewise.
1571 * configure: Regenerate.
1572
1573 2018-02-16 Yao Qi <yao.qi@linaro.org>
1574
1575 * block.c (block_namespace_info): Inherit allocate_on_obstack.
1576 (block_initialize_namespace): Use new.
1577 * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack.
1578 (dwarf2_free_objfile): Use delete.
1579 * gdbtypes.c (type_pair): Inherit allocate_on_obstack.
1580 (copy_type_recursive): Use new.
1581 * gdb_obstack.h (allocate_on_obstack): New.
1582
1583 2018-02-15 Yao Qi <yao.qi@linaro.org>
1584
1585 PR gdb/22849
1586 * inferior.c (exit_inferior_1): Reset inf->control.
1587
1588 2018-02-15 Joel Brobecker <brobecker@adacore.com>
1589
1590 * ada-lang.c (ada_to_fixed_value_create): Delete advance
1591 declaration.
1592
1593 2018-02-14 Pedro Alves <palves@redhat.com>
1594
1595 * frame-unwind.c (frame_unwind_try_unwinder): Always call
1596 frame_cleanup_after_sniffer on exception.
1597
1598 2018-02-14 Tom Tromey <tom@tromey.com>
1599
1600 * solist.h (struct target_so_ops) <bfd_open>: Make pathname
1601 const.
1602 (solib_bfd_open): Make pathname const.
1603 * solib.c (solib_bfd_open): Make pathname const.
1604 * solib-spu.c (spu_bfd_fopen): Make name const.
1605 (spu_bfd_open): Make pathname const.
1606 * solib-darwin.c (darwin_bfd_open): Make pathname const.
1607 * solib-aix.c (solib_aix_bfd_open): Make pathname const.
1608
1609 2018-02-14 Tom Tromey <tom@tromey.com>
1610
1611 * symfile.c (symfile_bfd_open): Update.
1612 * source.h (openp, source_full_path_of, find_and_open_source):
1613 Change argument type to unique_xmalloc_ptr.
1614 * source.c (openp): Take a unique_xmalloc_ptr.
1615 (source_full_path_of, find_and_open_source): Likewise.
1616 (open_source_file, symtab_to_fullname): Update.
1617 * solist.h (struct target_so_ops) <find_and_open_solib>: Take a
1618 unique_xmalloc_ptr.
1619 * solib.c (solib_find_1): Use unique_xmalloc_ptr.
1620 (exec_file_find): Update.
1621 * psymtab.c (psymtab_to_fullname): Update.
1622 * nto-tdep.h (nto_find_and_open_solib): Update.
1623 * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a
1624 unique_xmalloc_ptr.
1625 * exec.c (exec_file_attach): Update.
1626 * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr.
1627 * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr.
1628
1629 2018-02-14 Tom Tromey <tom@tromey.com>
1630
1631 * solib.c: Include source.h.
1632 * nto-tdep.c: Include source.h.
1633 * mi/mi-cmd-env.c: Include source.h.
1634 * infcmd.c: Include source.h.
1635 * exec.c: Include source.h.
1636 * defs.h (enum openp_flag, openp, source_full_path_of, mod_path)
1637 (add_path, directory_switch, source_path, init_source_path): Move
1638 declarations...
1639 * source.h (enum openp_flag, openp, source_full_path_of, mod_path)
1640 (add_path, directory_switch, source_path, init_source_path):
1641 ...here.
1642
1643 2018-02-14 Tom Tromey <tom@tromey.com>
1644
1645 * solist.h (exec_file_find, solib_find): Return
1646 unique_xmalloc_ptr.
1647 (solib_bfd_fopen): Take a const char *.
1648 * solib.c (solib_find_1): Return unique_xmalloc_ptr.
1649 (exec_file_find, solib_find): Likewise.
1650 (solib_bfd_fopen): Do not take ownership of "pathname".
1651 (solib_bfd_open): Use unique_xmalloc_ptr.
1652 * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr.
1653 * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr.
1654 * infrun.c (follow_exec): Use unique_xmalloc_ptr.
1655 * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr.
1656
1657 2018-02-14 Joel Brobecker <brobecker@adacore.com>
1658
1659 * ada-lang.c (name_match_type_from_name): Remove reference to
1660 ada_name_for_lookup in function's documentation.
1661 * ada-lang.h (ada_name_for_lookup): Delete declaration.
1662
1663 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
1664
1665 * defs.h (enum openp_flags): New enum.
1666 (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH):
1667 Move to enum openp_flags.
1668 (openp_flags): New enum flags.
1669 (openp): Change parameter type to openp_flags.
1670 * source.c (openp): Change parameter type to openp_flags.
1671 * cli/cli-cmds.c (find_and_open_script): Use openp_flags.
1672 * dwarf2read.c (try_open_dwop_file): Use openp_flags.
1673
1674 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
1675
1676 * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show
1677 per-command.
1678
1679 2018-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
1680
1681 * dwarf2read.c (dwarf2_release_queue): Delete function, move body
1682 into...
1683 (class dwarf2_queue_guard): ...the destructor of this new class.
1684 (dw2_do_instantiate_symtab): Create instance of the new class
1685 dwarf2_queue_guard, remove cleanup.
1686
1687 2018-02-09 Tom Tromey <tom@tromey.com>
1688
1689 * source.c (find_source_lines): Don't reference past the end of
1690 the vector.
1691
1692 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
1693
1694 * remote.c (remote_btrace_maybe_reopen): Change error message.
1695 * btrace.c (btrace_enable): Likewise.
1696 (parse_xml_btrace): Likewise.
1697 (parse_xml_btrace_conf): Likewise.
1698
1699 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
1700
1701 * nat/linux-btrace.c (diagnose_perf_event_open_fail): New.
1702 (linux_enable_pt, linux_enable_bts): Call
1703 diagnose_perf_event_open_fail.
1704
1705 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
1706
1707 * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message.
1708 Remove parameter and change return type. Update callers. Move it.
1709 (linux_enable_bts, linux_enable_pt): Improve error message.
1710 (linux_enable_pt): Remove zero buffer size check.
1711 (linux_enable_btrace): Improve error messages. Remove NULL return
1712 check.
1713
1714 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
1715
1716 * btrace.c (btrace_enable): Remove target_supports_btrace call.
1717 * nat/linux-btrace.c (perf_event_pt_event_type): Move.
1718 (kernel_supports_bts, kernel_supports_pt, linux_supports_bts)
1719 (linux_supports_pt, linux_supports_btrace): Remove.
1720 (linux_enable_bts): Call cpu_supports_bts.
1721 * nat/linux-btrace.h (linux_supports_btrace): Remove.
1722 * remote.c (remote_supports_btrace): Remove.
1723 (init_remote_ops): Remove remote_supports_btrace.
1724 * target-delegates.c: Regenerated.
1725 * target.c (target_supports_btrace): Remove.
1726 * target.h (target_ops) <to_supports_btrace>: Remove
1727 (target_supports_btrace): Remove.
1728 * x86-linux-nat.c (x86_linux_create_target): Remove
1729 linux_supports_btrace.
1730
1731 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
1732
1733 * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling
1734 btrace failed.
1735 * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling
1736 exception and use message in own exception.
1737
1738 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
1739
1740 * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h.
1741 (perf_event_pt_event_type): Use gdb_file_up.
1742 (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr,
1743 scoped_fd, and scoped_mmap.
1744
1745 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
1746
1747 * common/scoped_mmap.h: New.
1748 * unittests/scoped_mmap-selftest.c: New.
1749 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1750 unittests/scoped_mmap-selftest.c.
1751
1752 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
1753
1754 * common/scoped_fd.h: New.
1755 * unittests/scoped_fd-selftest.c: New.
1756 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1757 unittests/scoped_fd-selftest.c.
1758
1759 2018-02-09 Tom Tromey <tom@tromey.com>
1760
1761 * auto-load.c (auto_load_section_scripts): Use
1762 gdb::unique_xmalloc_ptr.
1763
1764 2018-02-09 Tom Tromey <tom@tromey.com>
1765
1766 * auto-load.c (execute_script_contents): Use std::string.
1767
1768 2018-02-09 Joel Brobecker <brobecker@adacore.com>
1769
1770 * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new
1771 Python function, rather than a new command.
1772
1773 2018-02-08 Tom Tromey <tom@tromey.com>
1774
1775 * solib.c (solib_find_1): Use std::string.
1776 (solib_bfd_fopen): Use unique_xmalloc_ptr.
1777
1778 2018-02-08 Tom Tromey <tom@tromey.com>
1779
1780 * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr.
1781
1782 2018-02-08 Tom Tromey <tom@tromey.com>
1783
1784 * source.c (find_source_lines): Use gdb::def_vector.
1785
1786 2018-02-08 Tom Tromey <tom@tromey.com>
1787
1788 * macrocmd.c (struct temporary_macro_definition): New.
1789 (macro_define_command): Use temporary_macro_definition. Remove
1790 cleanups.
1791 (free_macro_definition_ptr): Remove.
1792
1793 2018-02-08 Tom Tromey <tom@tromey.com>
1794
1795 * macroexp.c (maybe_expand): Use std::string.
1796
1797 2018-02-08 Tom Tromey <tom@tromey.com>
1798
1799 * macroexp.c (struct macro_buffer): Add initializers for some
1800 members.
1801 (init_buffer, init_shared_buffer, free_buffer)
1802 (free_buffer_return_text): Remove.
1803 (macro_buffer): New constructors.
1804 (~macro_buffer): New destructor.
1805 (macro_buffer::set_shared): New method.
1806 (macro_buffer::resize_buffer, macro_buffer::appendc)
1807 (macro_buffer::appendmem): Now methods, not free functions.
1808 (set_token, append_tokens_without_splicing, stringify)
1809 (macro_stringify): Update.
1810 (gather_arguments): Change return type. Remove argc_p argument,
1811 add args_ptr argument. Use std::vector.
1812 (substitute_args): Remove argc argument. Accept std::vector.
1813 (expand): Update. Use std::vector.
1814 (scan, macro_expand, macro_expand_next): Update.
1815
1816 2018-02-08 Tom Tromey <tom@tromey.com>
1817
1818 * symtab.c (default_collect_symbol_completion_matches_break_on):
1819 Use unique_xmalloc_ptr.
1820 * macroscope.h: (sal_macro_scope, user_macro_scope)
1821 (default_macro_scope): Return unique_xmalloc_ptr.
1822 * macroscope.c (sal_macro_scope, user_macro_scope)
1823 (default_macro_scope): Return unique_xmalloc_ptr.
1824 * macroexp.h (macro_expand, macro_expand_once): Return
1825 unique_xmalloc_ptr.
1826 * macroexp.c (macro_expand, macro_expand_once): Return
1827 unique_xmalloc_ptr.
1828 * macrocmd.c (macro_expand_command, macro_expand_once_command)
1829 (info_macro_command, info_macros_command): Use
1830 unique_xmalloc_ptr.
1831 * compile/compile-c-support.c (write_macro_definitions): Use
1832 unique_xmalloc_ptr.
1833 * c-exp.y (c_parse): Use unique_xmalloc_ptr.
1834
1835 2018-02-07 Simon Marchi <simon.marchi@ericsson.com>
1836
1837 * value.c (value_static_field): Assign field type instead of
1838 containing type when returning an optimized out value.
1839
1840 2018-02-06 Yao Qi <yao.qi@linaro.org>
1841
1842 * ft32-tdep.c (ft32_read_pc): Remove.
1843 (ft32_write_pc): Remove.
1844 (ft32_gdbarch_init): Update.
1845 * m32r-tdep.c (m32r_read_pc): Remove.
1846 (m32r_gdbarch_init): Update.
1847 * mep-tdep.c (mep_read_pc): Remove.
1848 (mep_gdbarch_init): Update.
1849 * microblaze-tdep.c (microblaze_write_pc): Remove.
1850 (microblaze_gdbarch_init): Update.
1851 * mn10300-tdep.c (mn10300_read_pc): Remove.
1852 (mn10300_write_pc): Remove.
1853 (mn10300_gdbarch_init): Update.
1854 * moxie-tdep.c (moxie_read_pc): Remove.
1855 (moxie_write_pc): Remove.
1856 (moxie_gdbarch_init): Update.
1857
1858 2018-02-06 Yao Qi <yao.qi@linaro.org>
1859
1860 * expprint.c (print_subexp_standard): Handle
1861 OP_F77_UNDETERMINED_ARGLIST.
1862 (dump_subexp_body_standard): Likewise.
1863
1864 2018-02-05 Alan Hayward <alan.hayward@arm.com>
1865
1866 * target-descriptions.c (tdesc_element_visitor) Add empty
1867 implementations.
1868 (tdesc_type): Move make_gdb_type from here.
1869 (tdesc_type_builtin): Likewise.
1870 (tdesc_type_vector): Likewise.
1871 (tdesc_type_with_fields): Move make_gdb_type_ functions from here.
1872 (make_gdb_type_struct): Move from tdesc_type_with_fields.
1873 (make_gdb_type_union): Likewise.
1874 (make_gdb_type_flags): Likewise.
1875 (make_gdb_type_enum): Likewise.
1876 (make_gdb_type): New function.
1877 (tdesc_register_type): Use static make_gdb_type.
1878
1879 2018-02-05 Ruslan Kabatsayev <b7.10110111@gmail.com>
1880
1881 * infcmd.c (default_print_one_register_info): Align natural-format
1882 column values consistently one under another.
1883 (pad_to_column): New function.
1884
1885 2018-02-05 Joel Brobecker <brobecker@adacore.com>
1886
1887 * dwarf2read.c (dwarf2_physname): Move commment.
1888
1889 2018-02-01 Leszek Swirski <leszeks@google.com>
1890
1891 * varobj.c (varobj_formatted_print_options): Allow recursive
1892 pretty printing if pretty printing is enabled.
1893
1894 2018-02-01 Leszek Swirski <leszeks@google.com>
1895
1896 * c-exp.y (lex_one_token, classify_name, yylex): Don't classify
1897 names after a structop as a filename.
1898
1899 2018-02-01 Yao Qi <yao.qi@linaro.org>
1900
1901 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it.
1902 (arm_record_coproc_data_proc): Likewise.
1903
1904 2018-02-01 Yao Qi <yao.qi@linaro.org>
1905
1906 * arm-tdep.c (arm_record_extension_space): Change ret to signed.
1907
1908 2018-01-31 Nikola Prica <nikola.prica@rt-rk.com>
1909
1910 * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and
1911 assign shifted lr_reg to fdata->lr_register when lr_reg is set.
1912
1913 2018-01-31 Pedro Alves <palves@redhat.com>
1914
1915 * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter.
1916 * inflow.c (child_terminal_save_inferior): Wrap reference to
1917 tcgetpgrp in HAVE_TERMIOS_H.
1918 (child_interrupt, child_pass_ctrlc): Wrap references to signal in
1919 _WIN32.
1920 * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and
1921 always iterate over all inferiors.
1922 (gdbsim_cntrl_c): Adjust.
1923 * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter.
1924
1925 2018-01-31 Joel Brobecker <brobecker@adacore.com>
1926
1927 * gdbtypes.c (lookup_array_range_type): Make sure the array's
1928 index type is objfile-owned if the element type is as well.
1929
1930 2018-01-31 Joel Brobecker <brobecker@adacore.com>
1931
1932 GDB 8.1 released.
1933
1934 2018-01-30 Philipp Rudo <prudo@linux.vnet.ibm.com>
1935
1936 * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and
1937 "features/s390x-linux64.c".
1938 (_initialize_s390_linux_tdep): Remove initialization of tdescs
1939 s390_linux32 and s390x_linux64.
1940 (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set
1941 default tdesc.
1942 * s390-tdep.c: Include "features/s390-linux32.c" and
1943 "features/s390x-linux64.c".
1944 (s390_tdesc_valid): Add check for tdesc_has_registers.
1945 (s390_gdbarch_init): Make sure there is always a valid tdesc.
1946 (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and
1947 tdesc_s390x_linux64.
1948 * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and
1949 tdesc_s390x_linux64 to...
1950 * s390-tdep.h: ...here.
1951
1952 2018-01-30 Pedro Alves <palves@redhat.com>
1953
1954 PR gdb/13211
1955 * config.in, configure: Regenerate.
1956 * configure.ac: Check for getpgid.
1957 * go32-nat.c (go32_pass_ctrlc): New.
1958 (go32_target): Install it.
1959 * inf-child.c (inf_child_target): Install
1960 child_terminal_save_inferior, child_pass_ctrlc and
1961 child_interrupt.
1962 * inf-ptrace.c (inf_ptrace_interrupt): Delete.
1963 (inf_ptrace_target): No longer install it.
1964 * infcmd.c (interrupt_target_1): Adjust.
1965 * inferior.h (child_terminal_save_inferior, child_pass_ctrlc)
1966 (child_interrupt): Declare.
1967 (inferior::terminal_state): New.
1968 * inflow.c (struct terminal_info): Update comments.
1969 (inferior_process_group): Delete.
1970 (terminal_is_ours): Delete.
1971 (gdb_tty_state): New.
1972 (child_terminal_init): Adjust.
1973 (is_gdb_terminal, sharing_input_terminal_1)
1974 (sharing_input_terminal): New functions.
1975 (child_terminal_inferior): Adjust. Use sharing_input_terminal.
1976 Set the process's actual process group in the foreground if
1977 possible. Handle is_ours_for_output/is_ours distinction. Don't
1978 mark terminal as the inferior's if not sharing GDB's terminal.
1979 Don't check attach_flag.
1980 (child_terminal_ours_for_output, child_terminal_ours): Adjust to
1981 pass down a target_terminal_state.
1982 (child_terminal_save_inferior): New, factored out from ...
1983 (child_terminal_ours_1): ... this. Handle
1984 target_terminal_state::is_ours_for_output.
1985 (child_interrupt, child_pass_ctrlc): New.
1986 (inflow_inferior_exit): Clear the inferior's terminal_state.
1987 (copy_terminal_info): Copy the inferior's terminal state.
1988 (_initialize_inflow): Remove reference to terminal_is_ours.
1989 * inflow.h (inferior_process_group): Delete.
1990 * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust.
1991 * procfs.c (procfs_target): Don't install procfs_interrupt.
1992 (procfs_interrupt): Delete.
1993 * remote.c (remote_serial_quit_handler): Adjust.
1994 (remote_interrupt): Remove ptid parameter. Adjust.
1995 * target-delegates.c: Regenerate.
1996 * target.c: Include "terminal.h".
1997 (target_terminal::terminal_state): Rename to ...
1998 (target_terminal::m_terminal_state): ... this.
1999 (target_terminal::init): Adjust.
2000 (target_terminal::inferior): Adjust to per-inferior
2001 terminal_state.
2002 (target_terminal::restore_inferior, target_terminal_is_ours_kind): New.
2003 (target_terminal::ours, target_terminal::ours_for_output): Use
2004 target_terminal_is_ours_kind.
2005 (target_interrupt): Remove ptid parameter. Adjust.
2006 (default_target_pass_ctrlc): Adjust.
2007 * target.h (target_ops::to_terminal_save_inferior): New field.
2008 (target_ops::to_interrupt): Remove ptid_t parameter.
2009 (target_interrupt): Remove ptid_t parameter. Update comment.
2010 (target_pass_ctrlc): Update comment.
2011 * target/target.h (target_terminal_state): New scoped enum,
2012 factored out of ...
2013 (target_terminal::terminal_state): ... here.
2014 (target_terminal::inferior): Update comments.
2015 (target_terminal::restore_inferior): New.
2016 (target_terminal::is_inferior, target_terminal::is_ours)
2017 (target_terminal::is_ours_for_output): Adjust.
2018 (target_terminal::scoped_restore_terminal_state): Adjust to
2019 rename, and call restore_inferior() instead of inferior().
2020 (target_terminal::scoped_restore_terminal_state::m_state): Change
2021 type.
2022 (target_terminal::terminal_state): Rename to ...
2023 (target_terminal::m_terminal_state): ... this and change type.
2024
2025 2018-01-30 Pedro Alves <palves@redhat.com>
2026
2027 * linux-nat.c (wait_for_signal): New function.
2028 (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend
2029 directly.
2030 (async_terminal_is_ours)
2031 (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete.
2032 (linux_nat_add_target): Don't override
2033 to_terminal_inferior/to_terminal_ours.
2034
2035 2018-01-29 Sergio Durigan Junior <sergiodj@redhat.com>
2036
2037 * remote.c (remote_follow_fork): Don't call "detach_inferior".
2038
2039 2018-01-28 Simon Marchi <simon.marchi@ericsson.com>
2040
2041 * dwarf2read.c (free_dwo_files): Add forward-declaration.
2042 (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from
2043 dwarf2_per_objfile_free here.
2044 (dwarf2_per_objfile_free): Remove.
2045 (_initialize_dwarf2_read): Don't register
2046 dwarf2_per_objfile_free as a registry cleanup.
2047
2048 2018-01-27 Eli Zaretskii <eliz@gnu.org>
2049
2050 Avoid compilation errors in MinGW native builds
2051
2052 The error is triggered by including python-internal.h, and the
2053 error message is:
2054
2055 In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0,
2056 from build-gnulib/import/math.h:27,
2057 from d:/usr/Python26/include/pyport.h:235,
2058 from d:/usr/Python26/include/Python.h:58,
2059 from python/python-internal.h:94,
2060 from python/py-arch.c:24:
2061 d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared
2062 using ::hypot;
2063 ^~~~~
2064
2065 This happens because Python headers define 'hypot' to expand t
2066 '_hypot' in the Windows builds.
2067 * python/python-internal.h (_hypot) [__MINGW32__]: Define back to
2068 'hypoth'. This avoids a compilation error.
2069
2070 2018-01-26 Alan Hayward <alan.hayward@arm.com>
2071
2072 * MAINTAINERS (Write After Approval): Fix ordering.
2073
2074 2018-01-26 Alan Hayward <alan.hayward@arm.com>
2075
2076 * MAINTAINERS (Write After Approval): Add Alan Hayward.
2077
2078 2018-01-26 Alan Modra <amodra@gmail.com>
2079
2080 * ppc-linux-tdep.c (powerpc32_plt_stub): Make const.
2081 (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so.
2082 Remove nop. Make const. Comment.
2083 (powerpc32_plt_stub_so_2): New.
2084 (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN.
2085 Correct count. Update uses.
2086 (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too.
2087 Move common code reading PLT entry word. Correct
2088 powerpc32_plt_stub PLT address calculation.
2089 * ppc64-tdep.c (ppc64_standard_linkage1): Make const.
2090 (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise.
2091 (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise.
2092 (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise.
2093 (ppc64_standard_linkage8): Likewise.
2094 * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const.
2095 Correct insns description.
2096 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
2097
2098 2018-01-24 Pedro Alves <palves@redhat.com>
2099
2100 GCC PR libstdc++/83906
2101 * gdbtypes.c (operator==(const dynamic_prop &,
2102 const dynamic_prop &)): New.
2103 (operator==(const range_bounds &, const range_bounds &)): New.
2104 (check_types_equal): Use them instead of memcmp.
2105 * gdbtypes.h (operator==(const dynamic_prop &,
2106 const dynamic_prop &)): Declare.
2107 (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare.
2108 (operator==(const range_bounds &, const range_bounds &)): Declare.
2109 (operator!=(const range_bounds &, const range_bounds &)): Declare.
2110
2111 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
2112
2113 * s390-linux-tdep.c (s390_record_address_mask)
2114 (s390_record_calc_disp_common, s390_record_calc_disp)
2115 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
2116 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
2117 (s390_process_record): Move to s390-tdep.c.
2118 (s390_linux_init_abi_any): Adjust.
2119 * s390-tdep.c (s390_record_address_mask)
2120 (s390_record_calc_disp_common, s390_record_calc_disp)
2121 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
2122 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
2123 (s390_process_record): Moved from s390-linux-tdep.c
2124 (s390_gdbarch_init): Adjust.
2125
2126 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
2127
2128 * s390-linux-nat.c (s390-tdep.h): New include.
2129 * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o.
2130 (HFILES_NO_SRCDIR): Add s390-tdep.h.
2131 (ALLDEPFILES): Add s390-tdep.c.
2132 * configure.tgt (s390*-*-linux*): Add s390-tdep.o.
2133 * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to...
2134 * s390-tdep.h: ...this. New file.
2135 * s390-linux-tdep.c (s390-tdep.h): New include.
2136 (_initialize_s390_tdep): Rename to...
2137 (_initialize_s390_linux_tdep): ...this and adjust.
2138 (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep)
2139 (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to
2140 s390-tdep.h.
2141 (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri)
2142 (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy)
2143 (s390_is_partial_instruction, s390_software_single_step)
2144 (is_non_branch_ril, s390_displaced_step_copy_insn)
2145 (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep)
2146 (s390_prologue_data, s390_addr, s390_store, s390_load)
2147 (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue)
2148 (s390_register_call_saved, s390_guess_tracepoint_registers)
2149 (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum)
2150 (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register)
2151 (s390_pseudo_register_name, s390_pseudo_register_type)
2152 (s390_pseudo_register_read, s390_pseudo_register_write)
2153 (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect)
2154 (s390_ax_pseudo_register_push_stack, s390_gen_return_address)
2155 (s390_addr_bits_remove, s390_address_class_type_flags)
2156 (s390_address_class_type_flags_to_name)
2157 (s390_address_class_name_to_type_flags, s390_effective_inner_type)
2158 (s390_function_arg_float, s390_function_arg_vector)
2159 (is_power_of_two, s390_function_arg_integer, s390_arg_state)
2160 (s390_handle_arg, s390_push_dummy_call, s390_dummy_id)
2161 (s390_frame_align, s390_register_return_value, s390_return_value)
2162 (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp)
2163 (s390_unwind_pseudo_register, s390_adjust_frame_regnum)
2164 (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg)
2165 (s390_trad_frame_prev_register, s390_unwind_cache)
2166 (s390_prologue_frame_unwind_cache)
2167 (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache)
2168 (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind)
2169 (s390_stub_unwind_cache, s390_stub_frame_unwind_cache)
2170 (s390_stub_frame_this_id, s390_stub_frame_prev_register)
2171 (s390_stub_frame_sniffer, s390_stub_frame_unwind)
2172 (s390_frame_base_address, s390_local_base_address)
2173 (s390_frame_base, s390_gcc_target_options)
2174 (s390_gnu_triplet_regexp, s390_stap_is_single_operand)
2175 (s390_validate_reg_range, s390_tdesc_valid)
2176 (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to...
2177 * s390-tdep.c: ...this. New file.
2178
2179 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
2180
2181 * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook.
2182 (s390_process_record, s390_gdbarch_tdep_alloc)
2183 (s390_linux_init_abi_any): Use/set new hook.
2184
2185 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
2186
2187 * s390-linux-tdep.c (osabi.h): New include.
2188 (s390_linux_init_abi_31, s390_linux_init_abi_64)
2189 (s390_linux_init_abi_any): New functions.
2190 (s390_gdbarch_init, _initialize_s390_tdep): Adjust.
2191
2192 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
2193
2194 * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for
2195 tdesc_has_registers check
2196
2197 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
2198
2199 * s390-linux-tdep.c (s390_tdesc_valid): New function.
2200 (s390_validate_reg_range): New macro.
2201 (s390_gdbarch_init): Adjust.
2202
2203 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
2204
2205 * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field.
2206 (s390_gdbarch_tdep_alloc): Adjust.
2207 (s390_gdbarch_init): Adjust.
2208
2209 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
2210
2211 * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2>
2212 <have_tdb>: Change type to bool.
2213 (s390_gdbarch_tdep_alloc): Adjust.
2214 (s390_gdbarch_init): Adjust.
2215
2216 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
2217
2218 * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field.
2219 (gdbarch_tdep) <have_upper, have_vx>: New fields.
2220 (s390_gdbarch_tdep_alloc): New function.
2221 (s390_gdbarch_init): Allocate tdep at start and use its fields
2222 instead of separate variables.
2223
2224 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
2225
2226 * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
2227 when looking for cached gdbarch and add comment for remaining.
2228
2229 2018-01-22 Pedro Alves <palves@redhat.com>
2230 Sergio Durigan Junior <sergiodj@redhat.com>
2231
2232 * typeprint.c (whatis_exp): Initialize "val" in the "whatis type"
2233 case.
2234
2235 2018-01-22 Maciej W. Rozycki <macro@mips.com>
2236
2237 * MAINTAINERS: Update my company e-mail address.
2238
2239 2018-01-22 Yao Qi <yao.qi@linaro.org>
2240
2241 * regcache.c (cooked_write_test): New function.
2242 (_initialize_regcache): Register the test.
2243
2244 2018-01-22 Yao Qi <yao.qi@linaro.org>
2245
2246 * ia64-tdep.c (ia64_pseudo_register_read): Call
2247 regcache->cooked_read instead of regcache_cooked_read_unsigned.
2248 * m32c-tdep.c (m32c_cat_read): Likewise.
2249 (m32c_r3r2r1r0_read): Likewise.
2250 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
2251 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
2252
2253 2018-01-22 Yao Qi <yao.qi@linaro.org>
2254
2255 * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
2256 method raw_read instead of regcache_raw_read.
2257 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
2258 * arm-tdep.c (arm_neon_quad_read): Likewise.
2259 * avr-tdep.c (avr_pseudo_register_read): Likewise.
2260 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
2261 * frv-tdep.c (frv_pseudo_register_read): Likewise.
2262 * h8300-tdep.c (h8300_pseudo_register_read): Likewise.
2263 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
2264 (i386_pseudo_register_read_into_value): Likewise.
2265 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
2266 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
2267 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
2268 * rl78-tdep.c (rl78_pseudo_register_read): Likewise.
2269 * s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
2270 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
2271 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
2272 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
2273 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
2274
2275 2018-01-22 Yao Qi <yao.qi@linaro.org>
2276
2277 * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
2278 * configure.tgt: Remove target mt.
2279 * mt-tdep.c: Remove.
2280 * regcache.c (cooked_read_test): Remove the check for mt.
2281
2282 2018-01-22 Yao Qi <yao.qi@linaro.org>
2283
2284 * jit.c (jit_frame_prev_register): Call regcache::cooked_read
2285 instead of gdbarch_pseudo_register_read_value.
2286
2287 2018-01-22 Joel Brobecker <brobecker@adacore.com>
2288
2289 * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
2290 language is Ada.
2291
2292 2018-01-22 Joel Brobecker <brobecker@adacore.com>
2293
2294 * linespec.c (create_sals_line_offset): Remove code that preserved
2295 the symtab_and_line's line number.
2296
2297 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
2298
2299 * varobj.c (varobj_create): Don't set valid_block when creating a
2300 floating varobj.
2301
2302 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
2303
2304 * varobj.c (varobj_create): Remove out of date comment.
2305
2306 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
2307
2308 PR mi/20395
2309 * ada-exp.y (write_var_from_sym): Pass extra parameter when
2310 updating innermost block.
2311 * parse.c (innermost_block_tracker::update): Take extra type
2312 parameter, and check types match before updating innermost block.
2313 (write_dollar_variable): Update innermost block for registers.
2314 * parser-defs.h (enum innermost_block_tracker_type): New enum.
2315 (innermost_block_tracker::innermost_block_tracker): Initialise
2316 m_types member.
2317 (innermost_block_tracker::reset): Take type parameter.
2318 (innermost_block_tracker::update): Take type parameter, and pass
2319 type through as needed.
2320 (innermost_block_tracker::m_types): New member.
2321 * varobj.c (varobj_create): Pass type when reseting innermost
2322 block.
2323
2324 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
2325
2326 * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
2327 * ada-lang.c (resolve_subexp): Likewise.
2328 * breakpoint.c (set_breakpoint_condition) Likewise.
2329 (watch_command_1) Likewise.
2330 * c-exp.y (variable): Likewise.
2331 * d-exp.y (PrimaryExpression): Likewise.
2332 * f-exp.y (variable): Likewise.
2333 * go-exp.y (variable): Likewise.
2334 * m2-exp.y (variable): Likewise.
2335 * objfiles.c (objfile::~objfile): Likewise.
2336 * p-exp.y (variable): Likewise.
2337 * parse.c (innermost_block): Change type.
2338 * parser-defs.h (class innermost_block_tracker): New.
2339 (innermost_block): Change to innermost_block_tracker.
2340 * printcmd.c (display_command): Switch to innermost_block API.
2341 (do_one_display): Likewise.
2342 * rust-exp.y (do_one_display): Likewise.
2343 * symfile.c (clear_symtab_users): Likewise.
2344 * varobj.c (varobj_create): Switch to innermost_block API, replace
2345 use of innermost_block with block stored on varobj object.
2346
2347 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
2348
2349 * expression.h (innermost_block): Remove declaration.
2350 * varobj.c: Add 'parser-defs.h' include.
2351
2352 2018-01-19 Tom Tromey <tom@tromey.com>
2353
2354 * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
2355 symbols in the static and global blocks.
2356
2357 2018-01-19 James Clarke <jrtc27@jrtc27.com>
2358
2359 * nat/linux-ptrace.c: Remove unnecessary reinclusion of
2360 gdb_ptrace.h, and move including gdb_wait.h ...
2361 * nat/linux-ptrace.h: ... to here.
2362
2363 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
2364
2365 * inf-ptrace.c (inf_ptrace_detach): Adjust call to
2366 inf_ptrace_detach_success.
2367 (inf_ptrace_detach_success): Add inferior parameter, use it
2368 instead of inferior_ptid, pass it to detach_inferior.
2369 * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
2370 parameter.
2371 * inferior.c (detach_inferior): Add overload that takes an
2372 inferior object.
2373 * inferior.h (detach_inferior): Likewise.
2374 * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
2375 use inferior_ptid, adjust call to inf_ptrace_detach_success.
2376 * linux-thread-db.c (thread_db_detach): Use inf parameter.
2377
2378 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
2379
2380 * target.h (struct target_ops) <to_detach>: Add inferior
2381 parameter.
2382 (target_detach): Likewise.
2383 * target.c (dispose_inferior): Pass inferior down.
2384 (target_detach): Pass inferior down. Assert that it is equal to
2385 the current inferior.
2386 * aix-thread.c (aix_thread_detach): Pass inferior down.
2387 * corefile.c (core_file_command): Pass current_inferior() down.
2388 * corelow.c (core_detach): Add inferior parameter.
2389 * darwin-nat.c (darwin_detach): Likewise.
2390 * gnu-nat.c (gnu_detach): Likewise.
2391 * inf-ptrace.c (inf_ptrace_detach): Likewise.
2392 * infcmd.c (detach_command): Pass current_inferior() down to
2393 target_detach.
2394 * infrun.c (follow_fork_inferior): Pass parent_inf to
2395 target_detach.
2396 (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
2397 target_detach.
2398 * linux-nat.c (linux_nat_detach): Add inferior parameter.
2399 * linux-thread-db.c (thread_db_detach): Likewise.
2400 * nto-procfs.c (procfs_detach): Likewise.
2401 * procfs.c (procfs_detach): Likewise.
2402 * record.c (record_detach): Likewise.
2403 * record.h (struct inferior): Forward-declare.
2404 (record_detach): Add inferior parameter.
2405 * remote-sim.c (gdbsim_detach): Likewise.
2406 * remote.c (remote_detach_1): Likewise.
2407 (remote_detach): Likewise.
2408 (extended_remote_detach): Likewise.
2409 * sol-thread.c (sol_thread_detach): Likewise.
2410 * target-debug.h (target_debug_print_inferior_p): New macro.
2411 * target-delegates.c: Re-generate.
2412 * top.c (kill_or_detach): Pass inferior down to target_detach.
2413 * windows-nat.c (windows_detach): Add inferior parameter.
2414
2415 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
2416
2417 * target.h (struct target_ops) <to_detach>: Remove args
2418 parameter.
2419 (target_detach): Likewise.
2420 * target.c (dispose_inferior): Adjust.
2421 (target_detach): Remove args parameter, adjust.
2422 * aix-thread.c (aix_thread_detach): Adjust.
2423 * corefile.c (core_file_command): Adjust.
2424 * corelow.c (core_detach): Adjust.
2425 * darwin-nat.c (darwin_detach): Adjust.
2426 * gnu-nat.c (gnu_detach): Adjust.
2427 * inf-ptrace.c (inf_ptrace_detach): Adjust.
2428 * infcmd.c (detach_command): Adjust
2429 * infrun.c (follow_fork_inferior): Adjust.
2430 (handle_vfork_child_exec_or_exit): Adjust.
2431 * linux-fork.c (linux_fork_detach): Remove args parameter.
2432 * linux-fork.h (linux_fork_detach): Likewise.
2433 * linux-nat.c (linux_nat_detach): Likewise, and adjust.
2434 * linux-thread-db.c (thread_db_detach): Likewise.
2435 * nto-procfs.c (procfs_detach): Likewise.
2436 * procfs.c (procfs_detach): Likewise.
2437 (do_detach): Remove signo parameter.
2438 * record.c (record_detach): Remove args parameter.
2439 * record.h (record_detach): Likewise.
2440 * remote-sim.c (gdbsim_detach): Likewise.
2441 * remote.c (remote_detach_1): Likewise.
2442 (remote_detach): Likewise.
2443 (extended_remote_detach): Likewise.
2444 * sol-thread.c (sol_thread_detach): Likewise.
2445 * target-delegates.c: Re-generate.
2446 * top.c (struct qt_args) <args>: Remove field.
2447 (kill_or_detach): Don't pass args.
2448 (quit_force): Don't set args.
2449 * windows-nat.c (windows_detach): Remove args parameter.
2450
2451 2018-01-19 Yao Qi <yao.qi@linaro.org>
2452
2453 * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
2454 (arm_linux_init_abi): Install it.
2455
2456 2018-01-19 Yao Qi <yao.qi@linaro.org>
2457
2458 * osabi.c (gdb_osabi_names): Extend the regexp for
2459 arm-linux-gnueabihf.
2460
2461 2018-01-18 Yao Qi <yao.qi@linaro.org>
2462
2463 * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
2464 m_abbrevs.
2465 (abbrev_table::add_abbrev): Update.
2466 (abbrev_table::lookup_abbrev): Update.
2467
2468 2018-01-18 Yao Qi <yao.qi@linaro.org>
2469
2470 * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
2471
2472 2018-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
2473
2474 * compile/compile.c (compile_to_object): Convert "triplet_rx"
2475 to "std::string".
2476
2477 2018-01-17 Tom Tromey <tom@tromey.com>
2478
2479 * dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC.
2480
2481 2018-01-17 Tom Tromey <tom@tromey.com>
2482
2483 * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
2484 * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
2485 (create_array_type_with_stride): Update.
2486 * dwarf2read.c (set_die_type): Update.
2487
2488 2018-01-17 Tom Tromey <tom@tromey.com>
2489
2490 * dwarf2read.c (delayed_method_info): Remove typedef.
2491 (dwarf2_cu::method_info): Now a std::vector.
2492 (add_to_method_list): Update.
2493 (free_delayed_list): Remove.
2494 (compute_delayed_physnames): Update.
2495 (process_full_comp_unit, process_full_type_unit): Clear the method
2496 list. Remove cleanups.
2497 (psymtab_include_file_name): Add name_holder parameter. Use
2498 unique_xmalloc_ptr.
2499 (dwarf_decode_lines): Update.
2500
2501 2018-01-17 Tom Tromey <tom@tromey.com>
2502 Simon Marchi <simon.marchi@ericsson.com>
2503
2504 * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
2505 (dwarf2_per_objfile::free_cached_comp_units)
2506 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
2507 (init_cutu_and_read_dies_no_follow): Update.
2508 (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
2509 (dwarf2_cu::~dwarf2_cu): New.
2510 (free_heap_comp_unit, free_stack_comp_unit): Remove.
2511 (age_cached_comp_units, free_one_cached_comp_unit): Update.
2512
2513 2018-01-17 Tom Tromey <tom@tromey.com>
2514 Simon Marchi <simon.marchi@ericsson.com>
2515
2516 * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
2517 (struct die_reader_specs) <abbrev_table>: New member.
2518 (struct abbrev_table): Add constructor.
2519 <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
2520 <abbrev_obstack>: Now an auto_obstack.
2521 (abbrev_table_up): New typedef.
2522 (init_cu_die_reader): Add abbrev_table parameter.
2523 (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
2524 Add result_dwo_abbrev_table.
2525 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
2526 (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
2527 Update.
2528 (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
2529 parameter.
2530 (skip_children): Update.
2531 (abbrev_table::alloc_abbrev): Rename from
2532 abbrev_table_alloc_abbrev.
2533 (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
2534 (abbrev_table::lookup_abbrev): Rename from
2535 abbrev_table_lookup_abbrev.
2536 (abbrev_table_read_table): Return abbrev_table_up.
2537 (abbrev_table_free, abbrev_table_free_cleanup)
2538 (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
2539 (load_partial_dies): Update.
2540
2541 2018-01-17 Tom Tromey <tom@tromey.com>
2542
2543 * dwarf2read.c (dwarf2_compute_name): Update comment.
2544 (read_func_scope, read_variable): Update.
2545 (new_symbol): Remove.
2546 (new_symbol_full): Rename to new_symbol.
2547
2548 2018-01-17 Mike Gulick <mgulick@mathworks.com>
2549
2550 PR gdb/16577
2551 * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
2552 a warning instead of throwing an error, set section size to 0 and return
2553 NULL.
2554 * gdb_bfd.h (gdb_bfd_map_section): Update description.
2555
2556 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
2557
2558 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
2559 std::string.
2560 (linux_ptrace_attach_fail_reason_string): Likewise.
2561 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
2562 Likewise.
2563 (linux_ptrace_attach_fail_reason_string): Likewise.
2564 * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
2565
2566 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
2567
2568 * linux-nat.c (linux_nat_attach): Remove xstrdup.
2569
2570 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
2571
2572 PR gdb/21559
2573 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
2574 checking for fs_base/gs_base fields in struct user_regs_struct.
2575 * configure: Regenerate.
2576
2577 2018-01-17 Yao Qi <yao.qi@linaro.org>
2578
2579 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
2580 function.
2581 (aarch64_linux_init_abi): Install it to gdbarch hook
2582 gcc_target_options.
2583
2584 2018-01-15 Pedro Alves <palves@redhat.com>
2585
2586 * common/signals-state-save-restore.c
2587 (save_original_signals_state): Fix typos.
2588
2589 2017-01-12 Tom Tromey <tom@tromey.com>
2590 Sergio Durigan Junior <sergiodj@redhat.com>
2591
2592 * Makefile.in (install-only): Install gdb-add-index.
2593
2594 2018-01-12 John Baldwin <jhb@FreeBSD.org>
2595
2596 * fbsd-tdep.c (KVE_PROTECTION): Correct value.
2597
2598 2018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
2599
2600 * infrun.c (keep_going_pass_signal): Clear step-over info when
2601 insert_breakpoints fails.
2602
2603 2018-01-11 Pedro Alves <palves@redhat.com>
2604
2605 PR gdb/22583
2606 * infrun.c (resume): Rename to ...
2607 (resume_1): ... this.
2608 (resume): Reimplement as wrapper around resume_1.
2609
2610 2018-01-11 Pedro Alves <palves@redhat.com>
2611
2612 PR remote/22597
2613 * remote.c (remote_parse_stop_reply): Default to the last-set
2614 general thread instead of to 'magic_null_ptid'.
2615
2616 2018-01-10 Pedro Alves <palves@redhat.com>
2617
2618 * language.h (language_get_symbol_name_matcher): Rename ...
2619 (get_symbol_name_matcher): ... this.
2620 * language.c (language_get_symbol_name_matcher): Ditto.
2621 * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
2622 callers adjusted.
2623
2624 2018-01-10 Pedro Alves <palves@redhat.com>
2625
2626 PR gdb/22670
2627 * dwarf2read.c
2628 (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
2629 Adjust to use language_get_symbol_name_matcher instead of
2630 language_defn::la_get_symbol_name_matcher.
2631 * language.c (language_get_symbol_name_matcher): If in Ada mode
2632 and the lookup name is a verbatim match, return Ada's matcher.
2633 * language.h (language_get_symbol_name_matcher): Adjust comment.
2634 (ada_lookup_name_info::verbatim_p):: New method.
2635
2636 2018-01-10 Pedro Alves <palves@redhat.com>
2637
2638 PR gdb/22670
2639 * ada-lang.c (ada_collect_symbol_completion_matches): If the
2640 minsym's language is language_auto or language_cplus, pass down
2641 language_ada instead.
2642 * symtab.c (compare_symbol_name): Don't frob symbol language here.
2643
2644 2018-01-10 Pedro Alves <palves@redhat.com>
2645
2646 PR gdb/22670
2647 * minsyms.c (linkage_name_str): New function.
2648 (iterate_over_minimal_symbols): Use it.
2649
2650 2018-01-09 John Baldwin <jhb@FreeBSD.org>
2651
2652 * NEWS: Document that 'info proc' now works on FreeBSD.
2653
2654 2018-01-09 John Baldwin <jhb@FreeBSD.org>
2655
2656 * configure.ac: Check for kinfo_getfile in libutil.
2657 * configure: Regenerate.
2658 * config.in: Regenerate.
2659 * fbsd-nat.c: Include "fbsd-tdep.h".
2660 (fbsd_fetch_cmdline): New.
2661 (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
2662 rather than calling error.
2663 (fbsd_info_proc): New.
2664 (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
2665 (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
2666 (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
2667
2668 2018-01-09 John Baldwin <jhb@FreeBSD.org>
2669
2670 * fbsd-nat.c (struct free_deleter): Remove.
2671 (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
2672
2673 2018-01-09 John Baldwin <jhb@FreeBSD.org>
2674
2675 * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
2676 NULL for an empty pathname.
2677
2678 2018-01-09 John Baldwin <jhb@FreeBSD.org>
2679
2680 * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
2681 (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
2682 (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
2683 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
2684 (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
2685 (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
2686 (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
2687 (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
2688 (kinfo_proc_layout_32, kinfo_proc_layout_i386)
2689 (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
2690 (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
2691 (fbsd_core_fetch_timeval, fbsd_print_sigset)
2692 (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
2693 (fbsd_init_abi): Install gdbarch "core_info_proc" method.
2694 * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
2695
2696 2018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
2697
2698 * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
2699 (gnu_xfer_auxv): New function.
2700 (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
2701 TARGET_OBJECT_AUXV.
2702
2703 2018-01-08 Yao Qi <yao.qi@linaro.org>
2704 Simon Marchi <simon.marchi@ericsson.com>
2705
2706 * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
2707 common/selftest.c.
2708 (COMMON_OBS): Remove selftest.o.
2709 * configure.ac: Append selftest-arch.c and common/selftest.c to
2710 CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS.
2711 * configure: Re-generated.
2712 * maint.c (maintenance_selftest): Wrap selftests::run_tests with
2713 GDB_SELF_TEST.
2714 (maintenance_info_selftests): Likewise.
2715
2716 2018-01-08 Xavier Roirand <roirand@adacore.com>
2717
2718 * ada-valprint.c (val_print_packed_array_elements): Use
2719 proper number of elements when printing an array indexed
2720 by an enumeration type.
2721
2722 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
2723
2724 * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
2725 (dw2_get_file_names_reader): Adjust.
2726 (lookup_dwo_signatured_type): Adjust.
2727 (lookup_dwp_signatured_type): Adjust.
2728 (lookup_signatured_type): Adjust.
2729 (create_type_unit_group): Adjust.
2730 (get_type_unit_group): Adjust.
2731 (process_psymtab_comp_unit_reader): Adjust.
2732 (build_type_psymtabs_reader): Adjust.
2733 (scan_partial_symbols): Adjust.
2734 (add_partial_symbol): Adjust.
2735 (add_partial_subprogram): Adjust.
2736 (peek_die_abbrev): Adjust.
2737 (fixup_go_packaging): Adjust.
2738 (process_imported_unit_die): Adjust.
2739 (dwarf2_compute_name): Adjust.
2740 (dwarf2_physname): Adjust.
2741 (read_import_statement): Adjust.
2742 (handle_DW_AT_stmt_list): Adjust.
2743 (read_file_scope): Adjust.
2744 (read_func_scope): Adjust.
2745 (read_lexical_block_scope): Adjust.
2746 (read_call_site_scope): Adjust.
2747 (read_variable): Adjust.
2748 (dwarf2_rnglists_process): Adjust.
2749 (dwarf2_ranges_process): Adjust.
2750 (dwarf2_ranges_read): Adjust.
2751 (dwarf2_get_pc_bounds): Adjust.
2752 (dwarf2_record_block_ranges): Adjust.
2753 (dwarf2_add_field): Adjust.
2754 (dwarf2_add_member_fn): Adjust.
2755 (read_structure_type): Adjust.
2756 (process_structure_scope): Adjust.
2757 (read_enumeration_type): Adjust.
2758 (read_array_type): Adjust.
2759 (mark_common_block_symbol_computed): Adjust.
2760 (read_common_block): Adjust.
2761 (read_namespace_type): Adjust.
2762 (read_namespace): Adjust.
2763 (read_module_type): Adjust.
2764 (read_tag_pointer_type): Adjust.
2765 (read_tag_ptr_to_member_type): Adjust.
2766 (read_tag_string_type): Adjust.
2767 (read_subroutine_type): Adjust.
2768 (read_typedef): Adjust.
2769 (read_base_type): Adjust.
2770 (attr_to_dynamic_prop): Adjust.
2771 (read_subrange_type): Adjust.
2772 (read_unspecified_type): Adjust.
2773 (dwarf2_read_abbrevs): Adjust.
2774 (load_partial_dies): Adjust.
2775 (read_partial_die): Adjust.
2776 (find_partial_die): Adjust.
2777 (guess_partial_die_structure_name): Adjust.
2778 (fixup_partial_die): Adjust.
2779 (read_attribute_value): Adjust.
2780 (read_addr_index): Adjust.
2781 (read_addr_index_from_leb128): Adjust.
2782 (read_str_index): Adjust.
2783 (dwarf2_string_attr): Adjust.
2784 (get_debug_line_section): Adjust.
2785 (dwarf_decode_line_header): Adjust.
2786 (lnp_state_machine::check_line_address): Adjust.
2787 (dwarf_decode_lines_1): Adjust.
2788 (dwarf_decode_lines): Adjust.
2789 (dwarf2_start_symtab): Adjust.
2790 (var_decode_location): Adjust.
2791 (new_symbol_full): Adjust.
2792 (dwarf2_const_value_data): Adjust.
2793 (dwarf2_const_value_attr): Adjust.
2794 (dwarf2_const_value): Adjust.
2795 (die_type): Adjust.
2796 (die_containing_type): Adjust.
2797 (build_error_marker_type): Adjust.
2798 (lookup_die_type): Adjust.
2799 (guess_full_die_structure_name): Adjust.
2800 (anonymous_struct_prefix): Adjust.
2801 (determine_prefix): Adjust.
2802 (dwarf2_name): Adjust.
2803 (follow_die_ref_or_sig): Adjust.
2804 (follow_die_offset): Adjust.
2805 (follow_die_ref): Adjust.
2806 (follow_die_sig_1): Adjust.
2807 (follow_die_sig): Adjust.
2808 (get_signatured_type): Adjust.
2809 (get_DW_AT_signature_type): Adjust.
2810 (decode_locdesc): Adjust.
2811 (dwarf_decode_macros): Adjust.
2812 (cu_debug_loc_section): Adjust.
2813 (fill_in_loclist_baton): Adjust.
2814 (dwarf2_symbol_mark_computed): Adjust.
2815 (init_one_comp_unit): Don't assign
2816 dwarf2_cu::dwarf2_per_objfile.
2817 (set_die_type): Adjust.
2818
2819 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
2820
2821 * dwarf2read.c (struct mapped_debug_names): Add constructor.
2822 <dwarf2_per_objfile>: New field.
2823 (dwarf2_per_objfile): Remove global.
2824 (get_dwarf2_per_objfile): New function.
2825 (set_dwarf2_per_objfile): New function.
2826 (dwarf2_build_psymtabs_hard): Change objfile parameter to
2827 dwarf2_per_objfile.
2828 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
2829 (read_abbrev_offset): Likewise.
2830 (read_indirect_string): Likewise.
2831 (read_indirect_line_string): Likewise.
2832 (read_indirect_string_at_offset): Likewise.
2833 (read_indirect_string_from_dwz): Likewise.
2834 (dwarf2_find_containing_comp_unit): Change objfile parameter to
2835 dwarf2_per_objfile.
2836 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
2837 (create_all_comp_units): Change objfile parameter to
2838 dwarf2_per_objfile.
2839 (create_all_type_units): Likewise.
2840 (process_queue): Add dwarf2_per_objfile parameter.
2841 (read_and_check_comp_unit_head): Likewise.
2842 (lookup_dwo_unit_in_dwp): Likewise.
2843 (get_dwp_file): Likewise.
2844 (process_cu_includes): Likewise.
2845 (struct free_dwo_file_cleanup_data): New struct.
2846 (dwarf2_has_info): Use get_dwarf2_per_objfile and
2847 set_dwarf2_per_objfile.
2848 (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
2849 (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
2850 context, adjust calls.
2851 (dw2_instantiate_symtab): Likewise.
2852 (dw2_get_cutu): Add dwarf2_per_objfile parameter.
2853 (dw2_get_cu): Likewise.
2854 (create_cu_from_index_list): Change objfile parameter to
2855 dwarf2_per_objfile.
2856 (create_cus_from_index_list): Get dwarf2_per_objfile from
2857 context, adjust calls.
2858 (create_cus_from_index): Likewise.
2859 (create_signatured_type_table_from_index): Change objfile
2860 parameter to dwarf2_per_objfile.
2861 (create_signatured_type_table_from_debug_names): Change objfile
2862 parameter to dwarf2_per_objfile.
2863 (create_addrmap_from_index): Likewise.
2864 (create_addrmap_from_aranges): Likewise.
2865 (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
2866 (dw2_setup): Remove.
2867 (dw2_get_file_names_reader): Get dwarf2_per_objfile from
2868 context.
2869 (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
2870 get_dwarf2_per_objfile.
2871 (dw2_forget_cached_source_info): Likewise.
2872 (dw2_map_symtabs_matching_filename): Likewise.
2873 (struct dw2_symtab_iterator) <index>: Remove.
2874 <dwarf2_per_objfile>: New field.
2875 (dw2_symtab_iter_init): Replace index parameter with
2876 dwarf2_per_objfile.
2877 (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
2878 (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
2879 (dw2_print_stats): Likewise.
2880 (dw2_dump): Likewise.
2881 (dw2_expand_symtabs_for_function): Likewise.
2882 (dw2_expand_all_symtabs): Likewise.
2883 (dw2_expand_symtabs_with_fullname): Likewise.
2884 (dw2_expand_marked_cus): Replace index and objfile parameters
2885 with dwarf2_per_objfile.
2886 (dw_expand_symtabs_matching_file_matcher): Add
2887 dwarf2_per_objfile parameter and adjust calls.
2888 (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
2889 adjust calls.
2890 (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
2891 (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
2892 adjust calls.
2893 (create_cus_from_debug_names_list): Replace objfile parameter
2894 with dwarf2_per_objfile and adjust calls.
2895 (create_cus_from_debug_names): Likewise.
2896 (dwarf2_read_debug_names): Likewise.
2897 (mapped_debug_names::namei_to_name): Adjust call.
2898 (dw2_debug_names_iterator::next): Likewise.
2899 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
2900 (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
2901 (dw2_debug_names_dump): Likewise.
2902 (dw2_debug_names_expand_symtabs_for_function): Likewise.
2903 (dw2_debug_names_expand_symtabs_matching): Likewise.
2904 (dwarf2_initialize_objfile): Likewise.
2905 (dwarf2_build_psymtabs): Likewise.
2906 (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
2907 this_cu.
2908 (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
2909 (read_and_check_comp_unit_head): Likewise.
2910 (read_abbrev_offset): Likewise.
2911 (create_debug_type_hash_table): Likewise.
2912 (create_debug_types_hash_table): Likewise.
2913 (create_all_type_units): Replace objfile parameter with
2914 dwarf2_per_objfile.
2915 (add_type_unit): Add dwarf2_per_objfile parameter.
2916 (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
2917 with dwarf2_per_objfile.
2918 (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
2919 (lookup_dwp_signatured_type): Likewise.
2920 (lookup_signatured_type): Likewise.
2921 (read_cutu_die_from_dwo): Likewise.
2922 (init_tu_and_read_dwo_dies): Likewise.
2923 (init_cutu_and_read_dies): Likewise.
2924 (init_cutu_and_read_dies_no_follow): Likewise.
2925 (allocate_type_unit_groups_table): Add objfile parameter.
2926 (create_type_unit_group): Use dwarf2_per_objfile from cu.
2927 (get_type_unit_group): Likewise.
2928 (process_psymtab_comp_unit): Update call.
2929 (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
2930 (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
2931 (print_tu_stats): Likewise.
2932 (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
2933 in void* parameter.
2934 (build_type_psymtabs): Change objfile parameter to
2935 dwarf2_per_objfile.
2936 (process_skeletonless_type_unit): Use dwarf2_per_objfile
2937 passed in void* parameter.
2938 (process_skeletonless_type_units): Change objfile parameter to
2939 dwarf2_per_objfile.
2940 (set_partial_user): Likewise.
2941 (dwarf2_build_psymtabs_hard): Likewise.
2942 (read_comp_units_from_section): Likewise.
2943 (create_all_comp_units): Likewise.
2944 (scan_partial_symbols): Update calls.
2945 (add_partial_symbol): Likewise.
2946 (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
2947 (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
2948 (process_queue): Add dwarf2_per_objfile parameter.
2949 (get_compunit_symtab): Use dwarf2_per_objfile from cu.
2950 (compute_compunit_symtab_includes): Likewise.
2951 (process_cu_includes): Add dwarf2_per_objfile parameter.
2952 (process_full_comp_unit): Use dwarf2_per_objfile from cu.
2953 (process_full_type_unit): Likewise.
2954 (process_imported_unit_die): Update call.
2955 (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
2956 (read_file_scope): Likewise.
2957 (allocate_dwo_file_hash_table): Add objfile parameter.
2958 (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
2959 (create_cus_hash_table): Likewise.
2960 (create_dwp_hash_table): Likewise.
2961 (create_dwo_unit_in_dwp_v1): Likewise.
2962 (create_dwp_v2_section): Likewise.
2963 (create_dwo_unit_in_dwp_v2): Likewise.
2964 (lookup_dwo_unit_in_dwp): Likewise.
2965 (try_open_dwop_file): Likewise.
2966 (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
2967 (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
2968 cleanup to include a reference to dwarf2_per_objfile.
2969 (open_dwp_file): Add dwarf2_per_objfile parameter.
2970 (open_and_init_dwp_file): Likewise.
2971 (get_dwp_file): Likewise.
2972 (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
2973 (queue_and_load_all_dwo_tus): Update call.
2974 (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
2975 data.
2976 (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
2977 (dwarf2_ranges_process): Likewise.
2978 (dwarf2_get_pc_bounds): Likewise.
2979 (mark_common_block_symbol_computed): Likewise.
2980 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
2981 (dwarf2_read_abbrevs): Update call.
2982 (read_partial_die): Use dwarf2_per_objfile from cu.
2983 (find_partial_die): Likewise.
2984 (fixup_partial_die): Likewise.
2985 (read_attribute_value): Likewise.
2986 (read_indirect_string_at_offset_from): Add objfile parameter.
2987 (read_indirect_string_at_offset): Add dwarf2_per_objfile
2988 parameter.
2989 (read_indirect_string_from_dwz): Add objfile parameter.
2990 (read_indirect_string): Add objfile parameter.
2991 (read_addr_index_1): Add dwarf2_per_objfile parameter.
2992 (read_addr_index): Use dwarf2_per_objfile from cu.
2993 (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
2994 call dw2_setup.
2995 (read_str_index): Use dwarf2_per_objfile from cu.
2996 (get_debug_line_section): Likewise.
2997 (read_formatted_entries): Add dwarf2_per_objfile parameter.
2998 (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
2999 (new_symbol_full): Use dwarf2_per_objfile from cu.
3000 (build_error_marker_type): Likewise.
3001 (lookup_die_type): Likewise.
3002 (determine_prefix): Likewise.
3003 (follow_die_offset): Likewise.
3004 (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
3005 (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
3006 (dwarf2_fetch_die_type_sect_off): Likewise.
3007 (dwarf2_get_die_type): Likewise.
3008 (follow_die_sig_1): Use dwarf2_per_objfile from cu.
3009 (get_signatured_type): Likewise.
3010 (get_DW_AT_signature_type): Likewise.
3011 (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
3012 (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
3013 (cu_debug_loc_section): Likewise.
3014 (fill_in_loclist_baton): Likewise.
3015 (dwarf2_symbol_mark_computed): Likewise.
3016 (dwarf2_find_containing_comp_unit): Change objfile parameter to
3017 dwarf2_per_objfile.
3018 (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
3019 parameter.
3020 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
3021 (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
3022 (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
3023 (set_die_type): Use dwarf2_free_objfile from cu.
3024 (get_die_type_at_offset): Likewise.
3025 (dwarf2_per_objfile_free): Don't assign global variable.
3026 (debug_names) <constructor>: Add dwarf2_per_objfile
3027 parameter, update m_debugstrlookup construction.
3028 (debug_names::debug_str_lookup): Add dwarf2_per_objfile
3029 parameter.
3030 <m_dwarf2_per_objfile>: New field.
3031 <lookup>: Use m_dwarf2_per_objfile.
3032 (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
3033 (psyms_seen_size): Likewise.
3034 (write_gdbindex): Replace objfile parameter with
3035 dwarf2_per_objfile.
3036 (write_debug_names): Likewise.
3037 (write_psymtabs_to_index): Likewise.
3038 (save_gdb_index_command): Use get_dwarf2_per_objfile, update
3039 calls.
3040
3041 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
3042
3043 * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
3044 <dwarf2_per_objfile>: New field.
3045 (struct dwarf2_per_cu_data) <objfile>: Remove.
3046 <dwarf2_per_objfile>: New field.
3047 (create_cu_from_index_list): Assign dwarf2_per_objfile instead
3048 of objfile.
3049 (create_signatured_type_table_from_index): Likewise.
3050 (create_debug_type_hash_table): Likewise.
3051 (fill_in_sig_entry_from_dwo_entry): Likewise.
3052 (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
3053 (create_type_unit_group): Assign dwarf2_per_objfile instead of
3054 objfile.
3055 (create_partial_symtab): Access objfile through
3056 dwarf2_per_objfile.
3057 (process_psymtab_comp_unit_reader): Likewise.
3058 (read_comp_units_from_section): Likewise.
3059 (scan_partial_symbols): Likewise.
3060 (add_partial_symbol): Likewise.
3061 (add_partial_subprogram): Likewise.
3062 (peek_die_abbrev): Likewise.
3063 (fixup_go_packaging): Likewise.
3064 (process_full_comp_unit): Likewise.
3065 (process_full_type_unit): Likewise.
3066 (process_imported_unit_die): Likewise.
3067 (dwarf2_compute_name): Likewise.
3068 (dwarf2_physname): Likewise.
3069 (read_import_statement): Likewise.
3070 (create_cus_hash_table): Assign dwarf2_physname instead of
3071 objfile.
3072 (read_func_scope): Access objfile through dwarf2_per_objfile.
3073 (read_lexical_block_scope): Likewise.
3074 (read_call_site_scope): Likewise.
3075 (read_variable): Likewise.
3076 (dwarf2_rnglists_process): Likewise.
3077 (dwarf2_ranges_process): Likewise.
3078 (dwarf2_ranges_read): Likewise.
3079 (dwarf2_record_block_ranges): Likewise.
3080 (dwarf2_add_field): Likewise.
3081 (dwarf2_add_member_fn): Likewise.
3082 (read_structure_type): Likewise.
3083 (process_structure_scope): Likewise.
3084 (read_enumeration_type): Likewise.
3085 (read_array_type): Likewise.
3086 (read_common_block): Likewise.
3087 (read_namespace_type): Likewise.
3088 (read_namespace): Likewise.
3089 (read_module_type): Likewise.
3090 (read_tag_pointer_type): Likewise.
3091 (read_tag_ptr_to_member_type): Likewise.
3092 (read_tag_string_type): Likewise.
3093 (read_subroutine_type): Likewise.
3094 (read_typedef): Likewise.
3095 (read_base_type): Likewise.
3096 (attr_to_dynamic_prop): Likewise.
3097 (read_subrange_type): Likewise.
3098 (read_unspecified_type): Likewise.
3099 (load_partial_dies): Likewise.
3100 (read_partial_die): Likewise.
3101 (find_partial_die): Likewise.
3102 (guess_partial_die_structure_name): Likewise.
3103 (fixup_partial_die): Likewise.
3104 (read_attribute_value): Likewise.
3105 (read_addr_index_from_leb128): Likewise.
3106 (dwarf2_read_addr_index): Likewise.
3107 (dwarf2_string_attr): Likewise.
3108 (lnp_state_machine::check_line_address): Likewise.
3109 (dwarf_decode_lines_1): Likewise.
3110 (dwarf_decode_lines): Likewise.
3111 (dwarf2_start_symtab): Likewise.
3112 (var_decode_location): Likewise.
3113 (new_symbol_full): Likewise.
3114 (dwarf2_const_value_data): Likewise.
3115 (dwarf2_const_value_attr): Likewise.
3116 (dwarf2_const_value): Likewise.
3117 (die_type): Likewise.
3118 (die_containing_type): Likewise.
3119 (lookup_die_type): Likewise.
3120 (guess_full_die_structure_name): Likewise.
3121 (anonymous_struct_prefix): Likewise.
3122 (dwarf2_name): Likewise.
3123 (follow_die_ref_or_sig): Likewise.
3124 (follow_die_offset): Likewise.
3125 (follow_die_ref): Likewise.
3126 (dwarf2_fetch_die_loc_sect_off): Likewise.
3127 (dwarf2_fetch_constant_bytes): Likewise.
3128 (dwarf2_fetch_die_type_sect_off): Likewise.
3129 (dwarf2_get_die_type): Likewise.
3130 (follow_die_sig): Likewise.
3131 (decode_locdesc): Likewise.
3132 (dwarf2_per_cu_objfile): Likewise.
3133 (dwarf2_per_cu_text_offset): Likewise.
3134 (init_one_comp_unit): Assign dwarf2_per_objfile instead of
3135 objfile.
3136 (set_die_type): Access objfile through
3137 dwarf2_per_objfile.
3138
3139 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
3140
3141 * valprint.c (converted_character_d): Remove typedef.
3142 (DEF_VEC_O (converted_character_d)): Remove.
3143 (count_next_character): Use std::vector.
3144 (print_converted_chars_to_obstack): Likewise.
3145 (generic_printstr): Likewise.
3146
3147 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
3148
3149 * xml-support.h (struct gdb_xml_value): Add constructor.
3150 <value>: Change type to unique_xmalloc_ptr.
3151 (gdb_xml_value_s): Remove typedef.
3152 (DEF_VEC_O (gdb_xml_value_s)): Remove.
3153 (gdb_xml_element_start_handler): Change parameter type to
3154 std::vector.
3155 (xml_find_attribute): Likewise.
3156 * xml-support.c (xml_find_attribute): Change parameter type to
3157 std::vector and adjust.
3158 (gdb_xml_values_cleanup): Remove.
3159 (gdb_xml_parser::start_element): Adjust to std::vector.
3160 (xinclude_start_include): Change paraeter type to std::vector
3161 and adjust.
3162 * btrace.c (check_xml_btrace_version): Likewise.
3163 (parse_xml_btrace_block): Likewise.
3164 (parse_xml_btrace_pt_config_cpu): Likewise.
3165 (parse_xml_btrace_pt): Likewise.
3166 (parse_xml_btrace_conf_bts): Likewise.
3167 (parse_xml_btrace_conf_pt): Likewise.
3168 * memory-map.c (memory_map_start_memory): Likewise.
3169 (memory_map_start_property): Likewise.
3170 * osdata.c (osdata_start_osdata): Likewise.
3171 (osdata_start_item): Likewise.
3172 (osdata_start_column): Likewise.
3173 * remote.c (start_thread): Likewise.
3174 * solib-aix.c (library_list_start_library): Likewise.
3175 (library_list_start_list): Likewise.
3176 * solib-svr4.c (library_list_start_library): Likewise.
3177 (svr4_library_list_start_list): Likewise.
3178 * solib-target.c (library_list_start_segment): Likewise.
3179 (library_list_start_section): Likewise.
3180 (library_list_start_library): Likewise.
3181 (library_list_start_list): Likewise.
3182 * tracepoint.c (traceframe_info_start_memory): Likewise.
3183 (traceframe_info_start_tvar): Likewise.
3184 * xml-syscall.c (syscall_start_syscall): Likewise.
3185 * xml-tdesc.c (tdesc_start_target): Likewise.
3186 (tdesc_start_feature): Likewise.
3187 (tdesc_start_reg): Likewise.
3188 (tdesc_start_union): Likewise.
3189 (tdesc_start_struct): Likewise.
3190 (tdesc_start_flags): Likewise.
3191 (tdesc_start_enum): Likewise.
3192 (tdesc_start_field): Likewise.
3193 (tdesc_start_enum_value): Likewise.
3194 (tdesc_start_vector): Likewise.
3195
3196 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
3197
3198 * extension.h (struct xmethod_worker) <clone>: Remove.
3199 * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
3200 Remove.
3201 (python_xmethod_worker::clone): Remove.
3202 * valops.c (find_overload_match): Use std::move instead of
3203 clone.
3204
3205 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
3206
3207 * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
3208 (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
3209 <free_xmethod_worker_data>: Remove.
3210 <get_matching_xmethod_workers>: Chance VEC to std::vector.
3211 <get_xmethod_arg_types>: Remove.
3212 <get_xmethod_result_type>: Remove.
3213 <invoke_xmethod>: Remove.
3214 * extension.c (new_xmethod_worker): Remove.
3215 (clone_xmethod_worker): Remove.
3216 (get_matching_xmethod_workers): Return void, pass std::vector by
3217 pointer.
3218 (get_xmethod_arg_types): Rename to...
3219 (xmethod_worker::get_arg_types): ... this, and adjust.
3220 (get_xmethod_result_type): Rename to...
3221 (xmethod_worker::get_result_type): ... this, and adjust.
3222 (invoke_xmethod): Remove.
3223 (free_xmethod_worker): Remove.
3224 (free_xmethod_worker_vec): Remove.
3225 * extension.h (enum ext_lang_rc): Move here from
3226 extension-priv.h.
3227 (struct xmethod_worker): Add constructor and destructor.
3228 <data>: Remove.
3229 <value>: Remove.
3230 <invoke, clone, do_get_result_type, do_get_arg_types>: New
3231 virtual pure methods.
3232 <get_arg_types, get_result_type>: New methods.
3233 (xmethod_worker_ptr): Remove typedef.
3234 (DEF_VEC_P (xmethod_worker_ptr)): Remove.
3235 (xmethod_worker_vec): Remove typedef.
3236 (xmethod_worker_up): New typedef.
3237 (invoke_xmethod): Remove.
3238 (clone_xmethod_worker): Remove.
3239 (free_xmethod_worker): Remove.
3240 (free_xmethod_worker_vec): Remove.
3241 (get_xmethod_arg_types): Remove.
3242 (get_xmethod_result_type): Remove.
3243 * valops.c (find_method_list): Use std::vector, don't use
3244 intermediate vector.
3245 (value_find_oload_method_list): Use std::vector.
3246 (find_overload_match): Use std::vector.
3247 (find_oload_champ): Use std::vector.
3248 * value.c (value_free): Use operator delete.
3249 (value_of_xmethod): Rename to...
3250 (value_from_xmethod): ... this. Don't assign
3251 xmethod_worker::value, take rvalue-reference.
3252 (result_type_of_xmethod): Adjust.
3253 (call_xmethod): Adjust.
3254 * value.h: Include extension.h.
3255 (struct xmethod_worker): Don't forward-declare.
3256 (value_of_xmethod): Rename to...
3257 (value_from_xmethod): ... this, take rvalue-reference.
3258 * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
3259 (struct python_xmethod_worker): ... this, add constructor and
3260 destructor.
3261 <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
3262 (gdbpy_free_xmethod_worker_data): Rename to...
3263 (python_xmethod_worker::~python_xmethod_worker): ... this and
3264 adjust.
3265 (gdbpy_clone_xmethod_worker_data): Rename to...
3266 (python_xmethod_worker::clone): ... this and adjust.
3267 (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
3268 temporary vector.
3269 (gdbpy_get_xmethod_arg_types): Rename to...
3270 (python_xmethod_worker::do_get_arg_types): ... this and adjust.
3271 (gdbpy_get_xmethod_result_type): Rename to...
3272 (python_xmethod_worker::do_get_result_type): ... this and
3273 adjust.
3274 (gdbpy_invoke_xmethod): Rename to...
3275 (python_xmethod_worker::invoke): ... this and adjust.
3276 (new_python_xmethod_worker): Rename to...
3277 (python_xmethod_worker::python_xmethod_worker): ... this and
3278 adjust.
3279 * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
3280 Remove.
3281 (gdbpy_free_xmethod_worker_data): Remove.
3282 (gdbpy_get_matching_xmethod_workers): Use std::vector.
3283 (gdbpy_get_xmethod_arg_types): Remove.
3284 (gdbpy_get_xmethod_result_type): Remove.
3285 (gdbpy_invoke_xmethod): Remove.
3286 * python/python.c (python_extension_ops): Remove obsolete
3287 callbacks.
3288
3289 2018-01-05 Pedro Alves <palves@redhat.com>
3290
3291 PR gdb/18653
3292 * common/signals-state-save-restore.c
3293 (save_original_signals_state): New parameter 'quiet'. Warn if we
3294 find a custom handler preinstalled, instead of internal erroring.
3295 But only warn if !quiet.
3296 * common/signals-state-save-restore.h
3297 (save_original_signals_state): New parameter 'quiet'.
3298 * main.c (captured_main_1): Move save_original_signals_state call
3299 after option handling, and pass QUIET.
3300
3301 2018-01-05 Pedro Alves <palves@redhat.com>
3302
3303 * spu-tdep.c (spu_catch_start): Pass
3304 symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
3305
3306 2018-01-05 Pedro Alves <palves@redhat.com>
3307
3308 PR gdb/22670
3309 * ada-lang.c (literal_symbol_name_matcher): New function.
3310 (ada_get_symbol_name_matcher): Use it for
3311 symbol_name_match_type::SEARCH_NAME.
3312 * block.c (block_lookup_symbol): New parameter 'match_type'. Pass
3313 it down instead of assuming symbol_name_match_type::FULL.
3314 * block.h (block_lookup_symbol): New parameter 'match_type'.
3315 * c-valprint.c (print_unpacked_pointer): Use
3316 lookup_symbol_search_name instead of lookup_symbol.
3317 * compile/compile-object-load.c (get_out_value_type): Pass down
3318 symbol_name_match_type::SEARCH_NAME.
3319 * cp-namespace.c (cp_basic_lookup_symbol): Pass down
3320 symbol_name_match_type::FULL.
3321 * cp-support.c (cp_get_symbol_name_matcher): Handle
3322 symbol_name_match_type::SEARCH_NAME.
3323 * infrun.c (insert_exception_resume_breakpoint): Use
3324 lookup_symbol_search_name.
3325 * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
3326 * psymtab.c (maintenance_check_psymtabs): Use
3327 symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
3328 * stack.c (print_frame_args): Use lookup_symbol_search_name and
3329 SYMBOL_SEARCH_NAME.
3330 * symtab.c (lookup_local_symbol): Don't demangle the lookup name
3331 if symbol_name_match_type::SEARCH_NAME.
3332 (lookup_symbol_in_language): Pass down
3333 symbol_name_match_type::FULL.
3334 (lookup_symbol_search_name): New.
3335 (lookup_language_this): Pass down
3336 symbol_name_match_type::SEARCH_NAME.
3337 (lookup_symbol_aux, lookup_local_symbol): New parameter
3338 'match_type'. Pass it down.
3339 * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
3340 (lookup_symbol_search_name): New declaration.
3341 (lookup_symbol_in_block): New 'match_type' parameter.
3342
3343 2018-01-05 Pedro Alves <palves@redhat.com>
3344
3345 PR gdb/22670
3346 * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
3347 ada_lookup_symbol.
3348 (ada_lookup_symbol): Reimplement in terms of
3349 ada_lookup_symbol_list, bits factored out from
3350 ada_lookup_encoded_symbol.
3351
3352 2018-01-05 Joel Brobecker <brobecker@adacore.com>
3353
3354 * ada-exp.y (write_object_renaming): When subscripting an array
3355 using a symbol as the index, pass the block in call to
3356 ada_lookup_encoded_symbol when looking that symbol up.
3357
3358 2018-01-05 Jerome Guitton <guitton@adacore.com>
3359
3360 * ada-lang.c (ada_array_length): Use ada_index_type instead of
3361 TYPE_INDEX_TYPE.
3362
3363 2018-01-05 Joel Brobecker <brobecker@adacore.com>
3364
3365 * ada-lang.c (ada_to_fixed_value_create): Add handling of
3366 the case where VALUE_LVAL (val0) is not lval_memory.
3367
3368 2018-01-05 Xavier Roirand <roirand@adacore.com>
3369
3370 * ada-valprint.c (print_optional_low_bound): Handle
3371 character-indexed array printing like boolean-indexed array
3372 printing.
3373
3374 2018-01-05 Joel Brobecker <brobecker@adacore.com>
3375
3376 * NEWS: Create a new section for the next release branch.
3377 Rename the section of the current branch, now that it has
3378 been cut.
3379
3380 2018-01-05 Joel Brobecker <brobecker@adacore.com>
3381
3382 GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
3383 * version.in: Bump version to 8.1.50.DATE-git.
3384
3385 2018-01-03 Xavier Roirand <roirand@adacore.com>
3386
3387 * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
3388 Add field.
3389 * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
3390 Add field.
3391 (default_exception_support_info) <catch_handlers_sym>: Add field.
3392 (exception_support_info_fallback) <catch_handlers_sym>: Add field.
3393 (ada_exception_name_addr_1): Add "catch handlers" handling.
3394 (ada_exception_catchpoint_cond_string) <ex>: New parameter.
3395 Update all callers.
3396 (create_excep_cond_exprs) <ex>: Add parameter.
3397 (re_set_exception): Update create_excep_cond_exprs call.
3398 (print_it_exception, print_one_exception, print_mention_exception)
3399 (print_recreate_exception): Add "catch handler" handling.
3400 (allocate_location_catch_handlers, re_set_catch_handlers)
3401 (check_status_catch_handlers, print_it_catch_handlers)
3402 (print_one_catch_handlers, print_mention_catch_handlers)
3403 (print_recreate_catch_handlers): New function.
3404 (catch_handlers_breakpoint_ops): New variable.
3405 (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
3406 Add parameter. Add "catch handler" handling.
3407 (ada_exception_sym_name, ada_exception_breakpoint_ops):
3408 Add "catch handler" handling.
3409 (ada_exception_catchpoint_cond_string): Add "catch handler"
3410 handling.
3411 (create_ada_exception_catchpoint): Update create_excep_cond_exprs
3412 call.
3413 (catch_ada_handlers_command): New function.
3414 (initialize_ada_catchpoint_ops): Initialize "catch handlers"
3415 operations structure.
3416 (_initialize_ada_language): Add "catch handlers" command entry.
3417 * NEWS: Document "catch handlers" feature.
3418
3419 2018-01-02 Joel Brobecker <brobecker@adacore.com>
3420
3421 * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
3422 account when creating the array type of the slice.
3423 (ada_value_slice): Likewise.
3424
3425 2018-01-02 Joel Brobecker <brobecker@adacore.com>
3426
3427 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
3428 New enum value.
3429 (create_array_type_with_stride): Add byte_stride_prop parameter.
3430 * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
3431 New parameter. Update all callers in this file.
3432 (array_type_has_dynamic_stride): New function.
3433 (is_dynamic_type_internal, resolve_dynamic_array): Add handling
3434 of arrays with dynamic byte strides.
3435 * dwarf2read.c (read_array_type): Add support for dynamic
3436 DW_AT_byte_stride attributes.
3437
3438 2018-01-02 Joel Brobecker <brobecker@adacore.com>
3439
3440 * dwarf2read.c (read_unspecified_type): Treat
3441 DW_TAG_enumeration_type DIEs from Ada units as stubs.
3442
3443 2018-01-01 Joel Brobecker <brobecker@adacore.com>
3444
3445 Update copyright year range in all GDB files.
3446
3447 2018-01-01 Joel Brobecker <brobecker@adacore.com>
3448
3449 * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
3450 and gdb/testsuite/gdb.base/step-line.c.
3451
3452 2018-01-01 Joel Brobecker <brobecker@adacore.com>
3453
3454 * copyright.py (main): Dump the contents of
3455 MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
3456 even if BY_HAND is empty.
3457
3458 2018-01-01 Joel Brobecker <brobecker@adacore.com>
3459
3460 * top.c (print_gdb_version): Update Copyright year in version
3461 message.
3462
3463 2018-01-01 Joel Brobecker <brobecker@adacore.com>
3464
3465 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
3466
3467 For older changes see ChangeLog-2017.
3468 \f
3469 Local Variables:
3470 mode: change-log
3471 left-margin: 8
3472 fill-column: 74
3473 version-control: never
3474 coding: utf-8
3475 End:
This page took 0.097176 seconds and 5 git commands to generate.