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