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