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