Commit | Line | Data |
---|---|---|
e8e7d10c SM |
1 | 2017-11-26 Simon Marchi <simon.marchi@polymtl.ca> |
2 | ||
3 | * python/python.c (do_start_initialization): Change progname | |
4 | type to gdb::unique_xmalloc_ptr. Release the pointer when using | |
5 | Python 2. | |
6 | ||
6a997029 TT |
7 | 2017-11-26 Tom Tromey <tom@tromey.com> |
8 | ||
9 | * common/format.h: Add include guards. | |
10 | ||
41272101 TT |
11 | 2017-11-26 Tom Tromey <tom@tromey.com> |
12 | ||
13 | * nat/linux-personality.h (class | |
14 | maybe_disable_address_space_randomization): New class. | |
15 | (maybe_disable_address_space_randomization): Don't declare | |
16 | function. | |
17 | * nat/linux-personality.c (restore_personality) | |
18 | (make_disable_asr_cleanup): Remove. | |
19 | (maybe_disable_address_space_randomization): Now a constructor. | |
20 | (~maybe_disable_address_space_randomization): New destructor. | |
21 | * linux-nat.c (linux_nat_create_inferior): Update. | |
22 | ||
44287fd8 TT |
23 | 2017-11-26 Tom Tromey <tom@tromey.com> |
24 | ||
25 | * gcore.c (write_gcore_file_1): Use gdb::unique_xmalloc_ptr. | |
26 | ||
5ffd2cb7 UW |
27 | 2017-11-26 Ulrich Weigand <uweigand@de.ibm.com> |
28 | ||
29 | * spu-tdep.c (spu_software_single_step): Access SPU_LSLR_REGNUM as | |
30 | "cooked" register. Access only first four bytes of branch target | |
31 | registers. | |
32 | ||
0e5457dc SDJ |
33 | 2017-11-25 Sergio Durigan Junior <sergiodj@redhat.com> |
34 | ||
35 | PR gdb/22491 | |
36 | * stap-probe.c (relocate_address): New function. | |
37 | (stap_probe::get_relocated_address): Use 'relocate_address'. | |
38 | (stap_probe::set_semaphore): Use 'relocate_address' and pass | |
39 | 'm_sem_addr'. | |
40 | (stap_probe::clear_semaphore): Likewise. | |
41 | ||
deeeba55 PA |
42 | 2017-11-25 Pedro Alves <palves@redhat.com> |
43 | ||
44 | * dictionary.c: Include "safe-ctype.h". | |
45 | * minsyms.c: Include "safe-ctype.h". | |
46 | * minsyms.c (SYMBOL_HASH_NEXT): Use TOLOWER instead of tolower. | |
47 | ||
a81aaca0 PA |
48 | 2017-11-25 Pedro Alves <palves@redhat.com> |
49 | ||
50 | * completer.c (complete_line_internal_1): Skip spaces until the | |
51 | start of the command. | |
52 | ||
0662b6a7 PA |
53 | 2017-11-24 Pedro Alves <palves@redhat.com> |
54 | ||
55 | * cp-support.c (cp_symbol_name_matches_1): New, factored out from | |
56 | cp_fq_symbol_name_matches. Pass language_cplus to | |
57 | strncmp_with_mode. | |
58 | (cp_fq_symbol_name_matches): Call cp_symbol_name_matches_1. | |
59 | (selftests::test_cp_symbol_name_cmp): New. | |
60 | (_initialize_cp_support): Register "cp_symbol_name_matches" | |
61 | selftests. | |
62 | * language.c (default_symbol_name_matcher): Pass language_minimal | |
63 | to strncmp_iw_with_mode. | |
64 | * utils.c: Include "cp-support.h" and <algorithm>. | |
65 | (valid_identifier_name_char, cp_skip_operator_token, skip_ws) | |
66 | (cp_is_operator): New functions. | |
67 | (strncmp_iw_with_mode): Use them. Add language parameter. Don't | |
68 | skip whitespace in the symbol name when the lookup name doesn't | |
69 | have spaces, and vice versa. | |
70 | (strncmp_iw, strcmp_iw): Pass language to strncmp_iw_with_mode. | |
71 | * utils.h (strncmp_iw_with_mode): Add language parameter. | |
72 | ||
e547c119 JB |
73 | 2017-11-24 Joel Brobecker <brobecker@adacore.com> |
74 | ||
75 | * ada-lang.c (ada_exception_message_1, ada_exception_message): | |
76 | New functions. | |
77 | (print_it_exception): If available, display the exception | |
78 | message as well. | |
79 | * NEWS: Document new feature. | |
80 | ||
d7fcdff9 UW |
81 | 2017-11-24 Ulrich Weigand <uweigand@de.ibm.com> |
82 | ||
83 | * configure.nat <spu-linux>: Add fork-inferior.o to NATDEPFILES. | |
84 | ||
30649c14 PR |
85 | 2017-11-24 Philipp Rudo <prudo@linux.vnet.ibm.com> |
86 | ||
87 | * dtrace-probe.c (dtrace_probe::build_arg_exprs) | |
88 | (dtrace_probe::is_enabled, dtrace_probe::enable) | |
89 | (dtrace_probe::disable): Remove keyword 'struct' at for-range | |
90 | variable | |
91 | * probe.c (gen_ui_out_table_header_info) | |
92 | (print_ui_out_not_applicables): Remove keyword 'struct' at | |
93 | for-range variable | |
94 | ||
7696f5c9 AH |
95 | 2017-11-24 Alan Hayward <alan.hayward@arm.com> |
96 | ||
97 | * configure.tgt: Add arch/aarch64.o | |
98 | ||
8172f16b SM |
99 | 2017-11-24 Simon Marchi <simon.marchi@polymtl.ca> |
100 | ||
101 | * common/common-utils.h: Include poison.h. | |
102 | (xfree): Remove declaration, add definition with static_assert. | |
103 | * common/common-utils.c (xfree): Remove. | |
104 | * common/poison.h (IsMallocatable): Define. | |
105 | (IsFreeable): Define. | |
106 | (free): Delete for non-freeable types. | |
107 | (xnew): New. | |
108 | (XNEW): Undef and redefine. | |
109 | (xcnew): New. | |
110 | (XCNEW): Undef and redefine. | |
111 | (xdelete): New. | |
112 | (XDELETE): Undef and redefine. | |
113 | (xnewvec): New. | |
114 | (XNEWVEC): Undef and redefine. | |
115 | (xcnewvec): New. | |
116 | (XCNEWVEC): Undef and redefine. | |
117 | (xresizevec): New. | |
118 | (XRESIZEVEC): Undef and redefine. | |
119 | (xdeletevec): New. | |
120 | (XDELETEVEC): Undef and redefine. | |
121 | (xnewvar): New. | |
122 | (XNEWVAR): Undef and redefine. | |
123 | (xcnewvar): New. | |
124 | (XCNEWVAR): Undef and redefine. | |
125 | (xresizevar): New. | |
126 | (XRESIZEVAR): Undef and redefine. | |
127 | ||
7aabaf9d SM |
128 | 2017-11-24 Simon Marchi <simon.marchi@polymtl.ca> |
129 | ||
130 | * gdbthread.h (private_thread_info): Define structure type, add | |
131 | virtual pure destructor. | |
132 | (thread_info) <priv>: Change type to unique_ptr. | |
133 | <private_dtor>: Remove. | |
134 | * thread.c (add_thread_with_info): Adjust to use of unique_ptr. | |
135 | (private_thread_info::~private_thread_info): Provide default | |
136 | implementation. | |
137 | (thread_info::~thread_info): Don't call private_dtor nor | |
138 | manually free priv. | |
139 | * aix-thread.c (private_thread_info): Rename to ... | |
140 | (aix_thread_info): ... this. | |
141 | (get_aix_thread_info): New. | |
142 | (sync_threadlists): Adjust. | |
143 | (iter_tid): Adjust. | |
144 | (aix_thread_resume): Adjust. | |
145 | (aix_thread_fetch_registers): Adjust. | |
146 | (aix_thread_store_registers): Adjust. | |
147 | (aix_thread_extra_thread_info): Adjust. | |
148 | * darwin-nat.h (private_thread_info): Rename to ... | |
149 | (darwin_thread_info): ... this. | |
150 | (get_darwin_thread_info): New. | |
151 | * darwin-nat.c (darwin_init_thread_list): Adjust. | |
152 | (darwin_check_new_threads): Adjust. | |
153 | (thread_info_from_private_thread_info): Adjust. | |
154 | * linux-thread-db.c (private_thread_info): Rename to ... | |
155 | (thread_db_thread_info): ... this, initialize fields. | |
156 | (get_thread_db_thread_info): New. | |
157 | <dying>: Change type to bool. | |
158 | (update_thread_state): Adjust to type rename. | |
159 | (record_thread): Adjust to type rename an use of unique_ptr. | |
160 | (thread_db_pid_to_str): Likewise. | |
161 | (thread_db_extra_thread_info): Likewise. | |
162 | (thread_db_thread_handle_to_thread_info): Likewise. | |
163 | (thread_db_get_thread_local_address): Likewise. | |
164 | * nto-tdep.h (private_thread_info): Rename to ... | |
165 | (nto_thread_info): ... this, initialize fields. | |
166 | (get_nto_thread_info): New. | |
167 | <name>: Change type to std::string. | |
168 | * nto-tdep.c (nto_extra_thread_info): Adjust to type rename and | |
169 | use of unique_ptr. | |
170 | * nto-procfs.c (update_thread_private_data_name): Adjust to | |
171 | std::string change, allocate nto_private_thread_info with new. | |
172 | (update_thread_private_data): Adjust to unique_ptr. | |
173 | * remote.c (private_thread_info): Rename to ... | |
174 | (remote_thread_info): ... this, initialize data members with | |
175 | default values. | |
176 | <extra, name>: Change type to std::string. | |
177 | <thread_handle>: Change type to non-pointer. | |
178 | (free_private_thread_info): Remove. | |
179 | (get_private_info_thread): Rename to... | |
180 | (get_remote_thread_info): ... this, change return type, adjust to | |
181 | use of unique_ptr, use remote_thread_info constructor. | |
182 | (remote_add_thread): Adjust. | |
183 | (get_private_info_ptid): Rename to... | |
184 | (get_remote_thread_info): ...this, change return type. | |
185 | (remote_thread_name): Use get_remote_thread_info, adjust to | |
186 | change to std::string. | |
187 | (struct thread_item) <~thread_item>: Remove. | |
188 | <thread_handle>: Make non pointer. | |
189 | (start_thread): Adjust to thread_item::thread_handle type | |
190 | change. | |
191 | (remote_update_thread_list): Adjust to type name change, move | |
192 | strings from temporary to long-lived object instead of | |
193 | duplicating. | |
194 | (remote_threads_extra_info): Use get_remote_thread_info. | |
195 | (process_initial_stop_replies): Likewise. | |
196 | (resume_clear_thread_private_info): Likewise. | |
197 | (remote_resume): Adjust to type name change. | |
198 | (remote_commit_resume): Use get_remote_thread_info. | |
199 | (process_stop_reply): Adjust to type name change. | |
200 | (remote_stopped_by_sw_breakpoint): Use get_remote_thread_info. | |
201 | (remote_stopped_by_hw_breakpoint): Likewise. | |
202 | (remote_stopped_by_watchpoint): Likewise. | |
203 | (remote_stopped_data_address): Likewise. | |
204 | (remote_core_of_thread): Likewise. | |
205 | (remote_thread_handle_to_thread_info): Use | |
206 | get_private_info_thread, adjust to thread_handle field type | |
207 | change. | |
208 | ||
21fe1c75 SM |
209 | 2017-11-24 Simon Marchi <simon.marchi@polymtl.ca> |
210 | ||
211 | * remote.c (struct thread_item): Add constructor, disable copy | |
212 | construction and copy assignment, define default move | |
213 | construction and move assignment. | |
214 | <extra, name>: Change type to std::string. | |
215 | <core>: Initialize. | |
216 | <thread_handle>: Make non-pointer. | |
217 | (thread_item_t): Remove typedef. | |
218 | (DEF_VEC_O(thread_item_t)): Remove. | |
219 | (threads_listing_context) <contains_thread>: New method. | |
220 | <remove_thread>: New method. | |
221 | <items>: Change type to std::vector. | |
222 | (clear_threads_listing_context): Remove. | |
223 | (threads_listing_context_remove): Remove. | |
224 | (remote_newthread_step): Use thread_item constructor, adjust to | |
225 | change to std::vector. | |
226 | (start_thread): Use thread_item constructor, adjust to change to | |
227 | std::vector. | |
228 | (end_thread): Adjust to change to std::vector and std::string. | |
229 | (remote_get_threads_with_qthreadinfo): Use thread_item | |
230 | constructor, adjust to std::vector. | |
231 | (remote_update_thread_list): Adjust to change to std::vector and | |
232 | std::string, use threads_listing_context methods. | |
233 | (remove_child_of_pending_fork): Adjust. | |
234 | (remove_new_fork_children): Adjust. | |
235 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add rsp-low-selftests.c. | |
236 | (SUBDIR_UNITTESTS_OBS): Add rsp-low-selftests.o. | |
237 | * unittests/rsp-low-selftests.c: New file. | |
238 | * common/rsp-low.h: Include common/byte-vector.h. | |
239 | (hex2bin): New overload. | |
240 | * common/rsp-low.c (hex2bin): New overload. | |
241 | ||
089354bb SM |
242 | 2017-11-24 Simon Marchi <simon.marchi@ericsson.com> |
243 | ||
244 | * inferior.h (private_inferior): Define structure type, add | |
245 | virtual pure destructor. | |
246 | (inferior) <priv>: Change type to unique_ptr. | |
247 | * inferior.c (private_inferior::~private_inferior): Provide | |
248 | default implementation. | |
249 | (inferior::~inferior): Don't free priv field. | |
250 | (exit_inferior_1): Likewise. | |
251 | * darwin-nat.h (struct darwin_exception_info): Initialize fields. | |
252 | (darwin_exception_info): Remove typedef. | |
253 | (DEF_VEC_O (darwin_thread_t)); Remove. | |
254 | (private_inferior): Rename to ... | |
255 | (darwin_private_inferior): ... this, extend private_inferior. | |
256 | (get_darwin_inferior): New. | |
257 | <threads>: Change type to std::vector of darwin_thread_t pointers. | |
258 | * darwin-nat.c (darwin_check_new_threads): Adjust. | |
259 | (find_inferior_task_it): Adjust. | |
260 | (darwin_find_thread); Adjust. | |
261 | (darwin_suspend_inferior): Adjust. | |
262 | (darwin_resume_inferior): Adjust. | |
263 | (darwin_find_new_inferior): Adjust. | |
264 | (darwin_decode_notify_message): Adjust. | |
265 | (darwin_send_reply): Adjust. | |
266 | (darwin_resume_inferior_threads): Adjust. | |
267 | (darwin_suspend_inferior_threads): Adjust. | |
268 | (darwin_decode_message): Adjust. | |
269 | (darwin_wait): Adjust. | |
270 | (darwin_interrupt): Adjust. | |
271 | (darwin_deallocate_threads): Adjust. | |
272 | (darwin_mourn_inferior): Adjust, don't free private data. | |
273 | (darwin_reply_to_all_pending_messages): Adjust. | |
274 | (darwin_stop_inferior): Adjust. | |
275 | (darwin_setup_exceptions): Adjust. | |
276 | (darwin_kill_inferior): Adjust. | |
277 | (darwin_setup_request_notification): Adjust. | |
278 | (darwin_attach_pid): Adjust. | |
279 | (darwin_init_thread_list): Adjust. | |
280 | (darwin_setup_fake_stop_event): Adjust. | |
281 | (darwin_attach): Adjust. | |
282 | (darwin_detach): Adjust. | |
283 | (darwin_xfer_partial): Adjust. | |
284 | (set_enable_mach_exceptions): Adjust. | |
285 | (darwin_pid_to_exec_file): Adjust. | |
286 | (darwin_get_ada_task_ptid): Adjust. | |
287 | * darwin-nat-info.c (get_task_from_args): Adjust. | |
288 | (info_mach_ports_command): Adjust. | |
289 | (info_mach_region_command): Adjust. | |
290 | (info_mach_exceptions_command): Adjust. | |
291 | * remote.c (private_inferior): Rename to ... | |
292 | (remote_private_inferior): ... this, initialize fields. | |
293 | (get_remote_inferior); New. | |
294 | (remote_commit_resume): Use get_remote_inferior. | |
295 | (check_pending_event_prevents_wildcard_vcont_callback): Likewise. | |
296 | ||
d044bac8 PA |
297 | 2017-11-24 Pedro Alves <palves@redhat.com> |
298 | ||
299 | * NEWS: Mention linespecs and explicit locations, and completion | |
300 | improvements. | |
301 | ||
e8d58cba YQ |
302 | 2017-11-24 Yao Qi <yao.qi@linaro.org> |
303 | ||
304 | * regcache.c (regcache::dump): Remove footnote_register_size. | |
305 | ||
a63f2d2f YQ |
306 | 2017-11-24 Yao Qi <yao.qi@linaro.org> |
307 | ||
308 | * regcache.c (cooked_read_test): Add more test for readonly | |
309 | regcache. | |
310 | ||
1b30aaa5 YQ |
311 | 2017-11-24 Yao Qi <yao.qi@linaro.org> |
312 | ||
313 | * gdbarch-selftests.c (test_target_has_registers): Move it to | |
314 | target.c. | |
315 | (test_target_has_stack): Likewise. | |
316 | (test_target_has_memory): Likewise. | |
317 | (test_target_prepare_to_store): Likewise. | |
318 | (test_target_store_registers): Likewise. | |
319 | (test_target_ops): Likewise. | |
320 | * regcache.c: Include selftest-arch.h and gdbthread.h. | |
321 | (target_ops_no_register): New class. | |
322 | (test_target_fetch_registers): New. | |
323 | (test_target_store_registers): New. | |
324 | (test_target_xfer_partial): New. | |
325 | (readwrite_regcache): New. | |
326 | (cooked_read_test): New. | |
327 | (_initialize_regcache): Register the test. | |
328 | * target.c: (test_target_has_registers): Moved from | |
329 | gdbarch-selftests.c. | |
330 | (test_target_has_stack): Likewise. | |
331 | (test_target_has_memory): Likewise. | |
332 | (test_target_prepare_to_store): Likewise. | |
333 | (test_target_store_registers): Likewise. | |
334 | * target.h (test_target_ops): New class. | |
335 | ||
6654d750 AH |
336 | 2017-11-24 Alan Hayward <alan.hayward@arm.com> |
337 | ||
338 | * aarch64-tdep.c (_initialize_aarch64_tdep): Add target desc | |
339 | selftest. | |
340 | ||
49bdb7ee AH |
341 | 2017-11-24 Alan Hayward <alan.hayward@arm.com> |
342 | ||
343 | * aarch64-tdep.c (_initialize_aarch64_tdep): Remove init. | |
344 | * arch/aarch64.c (aarch64_create_target_description): Create | |
345 | new target description. | |
346 | * features/Makefile: Add new files. | |
347 | * features/aarch64.c: Remove file. | |
348 | * features/aarch64-core.c: New autogenerated file. | |
349 | * features/aarch64-fpu.c: New autogenerated file. | |
350 | * target-descriptions.c (maint_print_c_tdesc_cmd): Check for aarch64. | |
da434ccb AH |
351 | |
352 | 2017-11-24 Alan Hayward <alan.hayward@arm.com> | |
353 | ||
354 | * Makefile.in: Add new files. | |
355 | * aarch64-linux-nat.c (aarch64_linux_read_description): Call | |
356 | aarch64_read_description. | |
357 | * aarch64-linux-tdep.c (aarch64_linux_core_read_description): | |
358 | Call aarch64_read_description. | |
359 | * aarch64-tdep.c (aarch64_read_description): New function. | |
360 | (aarch64_gdbarch_init): Call aarch64_read_description. | |
361 | * aarch64-tdep.h (aarch64_read_description): New function. | |
362 | * arch/aarch64.c: New file. | |
363 | * configure.tgt: Add new files. | |
364 | ||
98ead37e YQ |
365 | 2017-11-24 Yao Qi <yao.qi@linaro.org> |
366 | ||
367 | * mi/mi-main.c (register_changed_p): Update. | |
368 | * value.c (value_contents_bits_eq): Change return type. | |
369 | (value_contents_eq): Likewise. | |
370 | * value.h: Update comments. | |
371 | ||
62ad7ce7 YQ |
372 | 2017-11-24 Yao Qi <yao.qi@linaro.org> |
373 | ||
374 | * mi/mi-main.c (mi_cmd_data_list_changed_registers): Remove | |
375 | local 'changed'. Remove error. | |
376 | (register_changed_p): Change return type to bool. | |
377 | ||
506fe5f4 YQ |
378 | 2017-11-24 Yao Qi <yao.qi@linaro.org> |
379 | ||
380 | * arch/tic6x.c: New file. | |
381 | * arch/tic6x.h: New file. | |
382 | * features/Makefile (FEATURE_XMLFILES): Add tic6x-c6xp.xml, | |
383 | tic6x-core.xml and tic6x-gp.xml. | |
384 | * features/tic6x-c6xp.c: Generated. | |
385 | * features/tic6x-core.c: Generated. | |
386 | * features/tic6x-gp.c: Generated. | |
387 | * target-descriptions.c (maint_print_c_tdesc_cmd): Match | |
388 | "tic6x-". | |
389 | ||
00ea2e2a SM |
390 | 2017-11-23 Simon Marchi <simon.marchi@ericsson.com> |
391 | ||
392 | * mi/mi-main.c (list_available_thread_groups): Change map value | |
393 | type to std::vector. | |
394 | ||
f45e2a77 SM |
395 | 2017-11-23 Simon Marchi <simon.marchi@ericsson.com> |
396 | ||
397 | * osdata.c (osdata_end_column, get_osdata): Remove std::move. | |
398 | ||
bd046f64 SM |
399 | 2017-11-23 Simon Marchi <simon.marchi@ericsson.com> |
400 | ||
401 | * varobj.c (struct varobj_dynamic) <children_requested_>: Rename | |
402 | back to... | |
403 | <children_requested>: ... this. | |
404 | (varobj_get_num_children, varobj_update): Adjust. | |
405 | ||
4c37490d SM |
406 | 2017-11-23 Simon Marchi <simon.marchi@ericsson.com> |
407 | ||
408 | * ada-varobj.c (ada_value_is_changeable_p): Change int to bool where applicable. | |
409 | (ada_value_has_mutated): Likewise. | |
410 | * c-varobj.c (varobj_is_anonymous_child): Likewise. | |
411 | (c_is_path_expr_parent): Likewise. | |
412 | * mi/mi-cmd-var.c (varobj_update_one): Likewise. | |
413 | (mi_cmd_var_set_frozen): Likewise. | |
414 | (mi_cmd_var_update_iter): Likewise. | |
415 | (mi_cmd_var_update): Likewise. | |
416 | * varobj.c (pretty_printing): Likewise. | |
417 | (varobj_enable_pretty_printing): Likewise. | |
418 | (struct varobj_root) <floating, is_valid>: Likewise. | |
419 | (struct varobj_dynamic) <children_requested>: Likewise. | |
420 | (delete_variable): Likewise. | |
421 | (delete_variable_1): Likewise. | |
422 | (install_variable): Likewise. | |
423 | (update_type_if_necessary): Likewise. | |
424 | (install_new_value): Likewise. | |
425 | (value_of_root): Likewise. | |
426 | (is_root_p): Likewise. | |
427 | (varobj_create): Likewise. | |
428 | (varobj_delete): Likewise. | |
429 | (varobj_has_more): Likewise. | |
430 | (varobj_set_frozen): Likewise. | |
431 | (varobj_get_frozen): Likewise. | |
432 | (install_dynamic_child): Likewise. | |
433 | (dynamic_varobj_has_child_method): Likewise. | |
434 | (update_dynamic_varobj_children): Likewise. | |
435 | (varobj_get_num_children): Likewise. | |
436 | (varobj_list_children): Likewise. | |
437 | (is_path_expr_parent): Likewise. | |
438 | (varobj_default_is_path_expr_parent): Likewise. | |
439 | (varobj_is_dynamic_p): Likewise. | |
440 | (varobj_set_value): Likewise. | |
441 | (varobj_value_has_mutated): Likewise. | |
442 | (varobj_update): Likewise. | |
443 | (check_scope): Likewise. | |
444 | (value_of_root_1): Likewise. | |
445 | (varobj_value_get_print_value): Likewise. | |
446 | (varobj_editable_p): Likewise. | |
447 | (varobj_value_is_changeable_p): Likewise. | |
448 | (varobj_floating_p): Likewise. | |
449 | (varobj_default_value_is_changeable_p): Likewise. | |
450 | (varobj_invalidate_iter): Likewise. | |
451 | * varobj.h (struct varobj_update_result) <type_changed, | |
452 | children_changed, changed, value_installed>: Likewise. | |
453 | (struct varobj) <updated, frozen, not_fetched>: Likewise. | |
454 | (struct lang_varobj_ops) <value_is_changeable_p, | |
455 | value_has_mutated, is_path_expr_parent>: Likewise. | |
456 | (varobj_delete): Likewise. | |
457 | (varobj_set_frozen): Likewise. | |
458 | (varobj_get_frozen): Likewise. | |
459 | (varobj_set_value): Likewise. | |
460 | (varobj_update): Likewise. | |
461 | (varobj_editable_p): Likewise. | |
462 | (varobj_floating_p): Likewise. | |
463 | (varobj_has_more): Likewise. | |
464 | (varobj_is_dynamic_p): Likewise. | |
465 | (varobj_default_value_is_changeable_p): Likewise. | |
466 | (varobj_value_is_changeable_p): Likewise. | |
467 | (varobj_is_anonymous_child): Likewise. | |
468 | (varobj_default_is_path_expr_parent): Likewise. | |
469 | ||
9c23b42f SDJ |
470 | 2017-11-22 Sergio Durigan Junior <sergiodj@redhat.com> |
471 | ||
472 | * dtrace-probe.c (struct probe_ops dtrace_probe_ops): Delete. | |
473 | (struct dtrace_probe_arg) <dtrace_probe_arg>: New constructor. | |
474 | <type_str>: Convert to 'std::string'. | |
475 | <expr>: Convert to 'expression_up'. | |
476 | (dtrace_probe_arg_s): Delete type and VEC. | |
477 | (dtrace_probe_enabler_s): Likewise. | |
478 | (struct dtrace_probe): Replace by... | |
479 | (class dtrace_static_probe_ops): ...this and... | |
480 | (class dtrace_probe): ...this. | |
481 | (dtrace_probe_is_linespec): Rename to... | |
482 | (dtrace_static_probe_ops::is_linespec): ...this. Adjust code | |
483 | to reflect change. | |
484 | (dtrace_process_dof_probe): Use 'std::vector' instead of VEC. | |
485 | Adjust code. Create new instance of 'dtrace_probe'. | |
486 | (dtrace_build_arg_exprs): Rename to... | |
487 | (dtrace_probe::build_arg_exprs): ...this. Adjust code to | |
488 | reflect change. | |
489 | (dtrace_get_probes): Rename to... | |
490 | (dtrace_static_probe_ops::get_probes): ...this. Adjust code | |
491 | to reflect change. | |
492 | (dtrace_get_arg): Rename to... | |
493 | (dtrace_probe::get_arg_by_number): ...this. Adjust code to | |
494 | reflect change. | |
495 | (dtrace_probe_is_enabled): Rename to... | |
496 | (dtrace_probe::is_enabled): ...this. Adjust code to reflect | |
497 | change. | |
498 | (dtrace_get_probe_address): Rename to... | |
499 | (dtrace_probe::get_relocated_address): ...this. Adjust code | |
500 | to reflect change. | |
501 | (dtrace_get_probe_argument_count): Rename to... | |
502 | (dtrace_probe::get_argument_count): ...this. Adjust code to | |
503 | reflect change. | |
504 | (dtrace_can_evaluate_probe_arguments): Rename to... | |
505 | (dtrace_probe::can_evaluate_arguments): ...this. Adjust code | |
506 | to reflect change. | |
507 | (dtrace_evaluate_probe_argument): Rename to... | |
508 | (dtrace_probe::evaluate_argument): ...this. Adjust code to | |
509 | reflect change. | |
510 | (dtrace_compile_to_ax): Rename to... | |
511 | (dtrace_probe::compile_to_ax): ...this. Adjust code to | |
512 | reflect change. | |
513 | (dtrace_probe_destroy): Delete. | |
514 | (dtrace_type_name): Rename to... | |
515 | (dtrace_static_probe_ops::type_name): ...this. Adjust code to | |
516 | reflect change. | |
517 | (dtrace_probe::get_static_ops): New method. | |
518 | (dtrace_gen_info_probes_table_header): Rename to... | |
519 | (dtrace_static_probe_ops::gen_info_probes_table_header): | |
520 | ...this. Adjust code to reflect change. | |
521 | (dtrace_gen_info_probes_table_values): Rename to... | |
522 | (dtrace_probe::gen_info_probes_table_values): ...this. Adjust | |
523 | code to reflect change. | |
524 | (dtrace_enable_probe): Rename to... | |
525 | (dtrace_probe::enable_probe): ...this. Adjust code to reflect | |
526 | change. | |
527 | (dtrace_disable_probe): Rename to... | |
528 | (dtrace_probe::disable_probe): ...this. Adjust code to reflect | |
529 | change. | |
530 | (struct probe_ops dtrace_probe_ops): Delete. | |
531 | (info_probes_dtrace_command): Call 'info_probes_for_spops' | |
532 | instead of 'info_probes_for_ops'. | |
533 | (_initialize_dtrace_probe): Use 'all_static_probe_ops' instead | |
534 | of 'all_probe_ops'. | |
535 | ||
0e9ae10f SDJ |
536 | 2017-11-22 Sergio Durigan Junior <sergiodj@redhat.com> |
537 | Simon Marchi <simark@simark.ca> | |
538 | ||
539 | * stap-probe.c (struct probe_ops stap_probe_ops): Delete | |
540 | variable. | |
541 | (struct stap_probe_arg) <stap_probe_arg>: New constructor. | |
542 | <aexpr>: Change type to 'expression_up'. | |
543 | (stap_probe_arg_s): Delete type and VEC. | |
544 | (struct stap_probe): Delete. Replace by... | |
545 | (class stap_static_probe_ops): ...this and... | |
546 | (class stap_probe): ...this. Rename variables to add 'm_' | |
547 | prefix. Do not use 'union' for arguments anymore. | |
548 | (stap_get_expected_argument_type): Receive probe name instead | |
549 | of 'struct stap_probe'. Adjust code. | |
550 | (stap_parse_probe_arguments): Rename to... | |
551 | (stap_probe::parse_arguments): ...this. Adjust code to | |
552 | reflect change. | |
553 | (stap_get_probe_address): Rename to... | |
554 | (stap_probe::get_relocated_address): ...this. Adjust code | |
555 | to reflect change. | |
556 | (stap_get_probe_argument_count): Rename to... | |
557 | (stap_probe::get_argument_count): ...this. Adjust code | |
558 | to reflect change. | |
559 | (stap_get_arg): Rename to... | |
560 | (stap_probe::get_arg_by_number'): ...this. Adjust code to | |
561 | reflect change. | |
562 | (can_evaluate_probe_arguments): Rename to... | |
563 | (stap_probe::can_evaluate_arguments): ...this. Adjust code | |
564 | to reflect change. | |
565 | (stap_evaluate_probe_argument): Rename to... | |
566 | (stap_probe::evaluate_argument): ...this. Adjust code | |
567 | to reflect change. | |
568 | (stap_compile_to_ax): Rename to... | |
569 | (stap_probe::compile_to_ax): ...this. Adjust code to | |
570 | reflect change. | |
571 | (stap_probe_destroy): Delete. | |
572 | (stap_modify_semaphore): Adjust comment. | |
573 | (stap_set_semaphore): Rename to... | |
574 | (stap_probe::set_semaphore): ...this. Adjust code to reflect | |
575 | change. | |
576 | (stap_clear_semaphore): Rename to... | |
577 | (stap_probe::clear_semaphore): ...this. Adjust code to | |
578 | reflect change. | |
579 | (stap_probe::get_static_ops): New method. | |
580 | (handle_stap_probe): Adjust code to create instance of | |
581 | 'stap_probe'. | |
582 | (stap_get_probes): Rename to... | |
583 | (stap_static_probe_ops::get_probes): ...this. Adjust code to | |
584 | reflect change. | |
585 | (stap_probe_is_linespec): Rename to... | |
586 | (stap_static_probe_ops::is_linespec): ...this. Adjust code to | |
587 | reflect change. | |
588 | (stap_type_name): Rename to... | |
589 | (stap_static_probe_ops::type_name): ...this. Adjust code to | |
590 | reflect change. | |
591 | (stap_gen_info_probes_table_header): Rename to... | |
592 | (stap_static_probe_ops::gen_info_probes_table_header): | |
593 | ...this. Adjust code to reflect change. | |
594 | (stap_gen_info_probes_table_values): Rename to... | |
595 | (stap_probe::gen_info_probes_table_values): ...this. Adjust | |
596 | code to reflect change. | |
597 | (struct probe_ops stap_probe_ops): Delete. | |
598 | (info_probes_stap_command): Use 'info_probes_for_spops' | |
599 | instead of 'info_probes_for_ops'. | |
600 | (_initialize_stap_probe): Use 'all_static_probe_ops' instead | |
601 | of 'all_probe_ops'. | |
602 | ||
935676c9 SDJ |
603 | 2017-11-22 Sergio Durigan Junior <sergiodj@redhat.com> |
604 | ||
605 | * break-catch-throw.c (fetch_probe_arguments): Use | |
606 | 'probe.prob' instead of 'probe.probe'. | |
607 | * breakpoint.c (create_longjmp_master_breakpoint): Call | |
608 | 'can_evaluate_arguments' and 'get_relocated_address' methods | |
609 | from probe. | |
610 | (create_exception_master_breakpoint): Likewise. | |
611 | (add_location_to_breakpoint): Use 'sal->prob' instead of | |
612 | 'sal->probe'. | |
613 | (bkpt_probe_insert_location): Call 'set_semaphore' method from | |
614 | probe. | |
615 | (bkpt_probe_remove_location): Likewise, for 'clear_semaphore'. | |
616 | * elfread.c (elf_get_probes): Use 'static_probe_ops' instead | |
617 | of 'probe_ops'. | |
618 | (probe_key_free): Call 'delete' on probe. | |
619 | (check_exception_resume): Use 'probe.prob' instead of | |
620 | 'probe.probe'. | |
621 | * location.c (string_to_event_location_basic): Call | |
622 | 'probe_linespec_to_static_ops'. | |
623 | * probe.c (class any_static_probe_ops): New class. | |
624 | (any_static_probe_ops any_static_probe_ops): New variable. | |
625 | (parse_probes_in_pspace): Receive 'static_probe_ops' as | |
626 | argument. Adjust code to reflect change. | |
627 | (parse_probes): Use 'static_probe_ops' instead of | |
628 | 'probe_ops'. Adjust code to reflect change. | |
629 | (find_probes_in_objfile): Call methods to get name and | |
630 | provider from probe. | |
631 | (find_probe_by_pc): Use 'result.prob' instead of | |
632 | 'result.probe'. Call 'get_relocated_address' method from | |
633 | probe. | |
634 | (collect_probes): Adjust comment and argument list to receive | |
635 | 'static_probe_ops' instead of 'probe_ops'. Adjust code to | |
636 | reflect change. Call necessary methods from probe. | |
637 | (compare_probes): Call methods to get name and provider from | |
638 | probes. | |
639 | (gen_ui_out_table_header_info): Receive 'static_probe_ops' | |
640 | instead of 'probe_ops'. Use 'std::vector' instead of VEC, | |
641 | adjust code accordingly. | |
642 | (print_ui_out_not_applicables): Likewise. | |
643 | (info_probes_for_ops): Rename to... | |
644 | (info_probes_for_spops): ...this. Receive 'static_probe_ops' | |
645 | as argument instead of 'probe_ops'. Adjust code. Call | |
646 | necessary methods from probe. | |
647 | (info_probes_command): Use 'info_probes_for_spops'. | |
648 | (enable_probes_command): Pass correct argument to | |
649 | 'collect_probes'. Call methods from probe. | |
650 | (disable_probes_command): Likewise. | |
651 | (get_probe_address): Move to 'any_static_probe_ops::get_address'. | |
652 | (get_probe_argument_count): Move to | |
653 | 'any_static_probe_ops::get_argument_count'. | |
654 | (can_evaluate_probe_arguments): Move to | |
655 | 'any_static_probe_ops::can_evaluate_arguments'. | |
656 | (evaluate_probe_argument): Move to | |
657 | 'any_static_probe_ops::evaluate_argument'. | |
658 | (probe_safe_evaluate_at_pc): Use 'probe.prob' instead of | |
659 | 'probe.probe'. | |
660 | (probe_linespec_to_ops): Rename to... | |
661 | (probe_linespec_to_static_ops): ...this. Adjust code. | |
662 | (probe_any_is_linespec): Rename to... | |
663 | (any_static_probe_ops::is_linespec): ...this. | |
664 | (probe_any_get_probes): Rename to... | |
665 | (any_static_probe_ops::get_probes): ...this. | |
666 | (any_static_probe_ops::type_name): New method. | |
667 | (any_static_probe_ops::gen_info_probes_table_header): New | |
668 | method. | |
669 | (compute_probe_arg): Use 'pc_probe.prob' instead of | |
670 | 'pc_probe.probe'. Call methods from probe. | |
671 | (compile_probe_arg): Likewise. | |
672 | (std::vector<const probe_ops *> all_probe_ops): Delete. | |
673 | (std::vector<const static_probe_ops *> all_static_probe_ops): | |
674 | New variable. | |
675 | (_initialize_probe): Use 'all_static_probe_ops' instead of | |
676 | 'all_probe_ops'. | |
677 | * probe.h (struct info_probe_column) <field_name>: Delete | |
678 | extraneous newline | |
679 | (info_probe_column_s): Delete type and VEC. | |
680 | (struct probe_ops): Delete. Replace with... | |
681 | (class static_probe_ops): ...this and... | |
682 | (clas probe): ...this. | |
683 | (struct bound_probe) <bound_probe>: Delete extraneous | |
684 | newline. Adjust constructor to receive 'probe' instead of | |
685 | 'struct probe'. | |
686 | <probe>: Rename to... | |
687 | <prob>: ...this. Delete extraneous newline. | |
688 | <objfile>: Delete extraneous newline. | |
689 | (register_probe_ops): Delete unused prototype. | |
690 | (info_probes_for_ops): Rename to... | |
691 | (info_probes_for_spops): ...this. Adjust comment. | |
692 | (get_probe_address): Move to 'probe::get_address'. | |
693 | (get_probe_argument_count): Move to | |
694 | 'probe::get_argument_count'. | |
695 | (can_evaluate_probe_arguments): Move to | |
696 | 'probe::can_evaluate_arguments'. | |
697 | (evaluate_probe_argument): Move to 'probe::evaluate_argument'. | |
698 | * solib-svr4.c (struct svr4_info): Adjust comment. | |
699 | (struct probe_and_action) <probe>: Rename to... | |
700 | <prob>: ...this. | |
701 | (register_solib_event_probe): Receive 'probe' instead of | |
702 | 'struct probe' as argument. Use 'prob' instead of 'probe' | |
703 | when applicable. | |
704 | (solib_event_probe_action): Call 'get_argument_count' method | |
705 | from probe. Adjust comment. | |
706 | (svr4_handle_solib_event): Adjust comment. Call | |
707 | 'evaluate_argument' method from probe. | |
708 | (svr4_create_probe_breakpoints): Call 'get_relocated_address' | |
709 | from probe. | |
710 | (svr4_create_solib_event_breakpoints): Use 'probe' instead of | |
711 | 'struct probe'. Call 'can_evaluate_arguments' from probe. | |
712 | * symfile.h: Forward declare 'class probe' instead of 'struct | |
713 | probe'. | |
714 | * symtab.h: Likewise. | |
715 | (struct symtab_and_line) <probe>: Rename to... | |
716 | <prob>: ...this. | |
717 | * tracepoint.c (start_tracing): Use 'prob' when applicable. | |
718 | Call probe methods. | |
719 | (stop_tracing): Likewise. | |
720 | ||
8f6cb6c3 JB |
721 | 2017-11-22 Joel Brobecker <brobecker@adacore.com> |
722 | ||
723 | * ravenscar-thread.c (ravenscar_inferior_created): Remove | |
724 | trailing newline at end of string in call to warning. | |
725 | ||
479f8de1 SM |
726 | 2017-11-22 Simon Marchi <simon.marchi@polymtl.ca> |
727 | ||
728 | * osdata.h: Include vector isntead of vec.h. | |
729 | (osdata_column_s): Remove typedef. | |
730 | (struct osdata_column): Add constructor. | |
731 | <name, value>: Change type to std::string. | |
732 | (DEF_VEC_O (osdata_column_s)): Remove. | |
733 | (osdata_item_s): Remove typedef. | |
734 | (struct osdata_item) <columns>: Change type to std::vector. | |
735 | (DEF_VEC_O (osdata_item_s)): Remove. | |
736 | (struct osdata): Add constructor. | |
737 | <type>: Change type to std::string. | |
738 | <items>: Change type to std::vector. | |
739 | (osdata_p): Remove typedef. | |
740 | (DEF_VEC_P (osdata_p)): Remove. | |
741 | (osdata_parse): Return a unique_ptr. | |
742 | (osdata_free): Remove. | |
743 | (make_cleanup_osdata_free): Remove. | |
744 | (get_osdata): Return a unique_ptr. | |
745 | (get_osdata_column): Return pointer to std::string, take a | |
746 | reference to osdata_item as parameter. | |
747 | * osdata.c (struct osdata_parsing_data) <osdata>: Change type to | |
748 | unique_ptr. | |
749 | <property_name>: Change type to std::string. | |
750 | (osdata_start_osdata): Allocate osdata with new and adjust. | |
751 | (osdata_start_item): Adjust. | |
752 | (osdata_start_column): Adjust. | |
753 | (osdata_end_column): Adjust. | |
754 | (clear_parsing_data): Remove. | |
755 | (osdata_parse): Return a unique_ptr and adjust, remove cleanup. | |
756 | (osdata_item_clear): Remove. | |
757 | (get_osdata): return a unique_ptr and adjust. | |
758 | (get_osdata_column): Return a pointer to std::string and adjust. | |
759 | (info_osdata): Adjust. | |
760 | * mi/mi-main.c: Include <map>. | |
761 | (free_vector_of_osdata_items): Remove. | |
762 | (list_available_thread_groups): Adjust, use std::map instead of | |
763 | splay tree. | |
764 | ||
41bd68f5 SM |
765 | 2017-11-22 Simon Marchi <simon.marchi@ericsson.com> |
766 | ||
767 | * stack.c (iterate_over_block_locals): Add LOC_OPTIMIZED_OUT | |
768 | case in switch. | |
769 | ||
7e2fd2f4 SM |
770 | 2017-11-22 Simon Marchi <simon.marchi@polymtl.ca> |
771 | ||
772 | * varobj.h (DEF_VEC_P (varobj_p)): Remove. | |
773 | ||
0604393c SM |
774 | 2017-11-22 Simon Marchi <simon.marchi@polymtl.ca> |
775 | ||
776 | * varobj.h (struct varobj_update_result): Add constructor, add | |
777 | move constructor, disable copy and assign, initialize fields. | |
778 | <newobj>: Change type to std::vector. | |
779 | (varobj_update): Return std::vector. | |
780 | * varobj.c (install_dynamic_child): Change VEC parameters to | |
781 | std::vector and adjust. | |
782 | (update_dynamic_varobj_children): Likewise. | |
783 | (varobj_update): Return std::vector and adjust. | |
784 | * mi/mi-cmd-var.c (varobj_update_one): Adjust to vector changes. | |
785 | ||
ddf0ea08 SM |
786 | 2017-11-22 Simon Marchi <simon.marchi@polymtl.ca> |
787 | ||
788 | * varobj.h (struct varobj) <parent>: Remove const. | |
789 | <children>: Change type to std::vector. | |
790 | (varobj_list_children): Return std::vector const reference. | |
791 | (varobj_restrict_range): Change parameter type to std::vector | |
792 | const reference. | |
793 | * varobj.c (varobj_has_more): Adjust. | |
794 | (varobj_restrict_range): Change parameter type to std::vector | |
795 | const reference and adjust. | |
796 | (install_dynamic_child): Adjust. | |
797 | (update_dynamic_varobj_children): Adjust. | |
798 | (varobj_list_children): Return std::vector const reference and | |
799 | adjust. | |
800 | (varobj_add_child): Adjust. | |
801 | (update_type_if_necessary): Adjust. | |
802 | (varobj_update): Adjust. | |
803 | (delete_variable_1): Adjust. | |
804 | * ada-varobj.c (ada_value_has_mutated): Adjust. | |
805 | * mi/mi-cmd-var.c (mi_cmd_var_list_children): Adjust. | |
806 | ||
9e5b9d2b SM |
807 | 2017-11-22 Simon Marchi <simon.marchi@polymtl.ca> |
808 | ||
809 | * varobj.h (struct varobj): Add constructor and destructor, | |
810 | initialize fields. | |
811 | * varobj.c (struct varobj_root): Initialize fields. | |
812 | (struct varobj_dynamic): Initialize fields. | |
813 | (varobj_create): Use unique_ptr instead of cleanup. Create | |
814 | varobj with new instead of new_root_variable. | |
815 | (delete_variable_1): Free variable with delete instead of | |
816 | free_variable. | |
817 | (create_child_with_value): Create variable with new instead of | |
818 | new_variable. | |
819 | (varobj::varobj): New. | |
820 | (varobj::~varobj): New (body mostly coming from free_variable). | |
821 | (new_variable): Remove. | |
822 | (free_variable): Remove. | |
823 | (do_free_variable_cleanup): Remove. | |
824 | (make_cleanup_free_variable): Remove. | |
825 | ||
fc35dab1 UW |
826 | 2017-11-22 Ulrich Weigand <uweigand@de.ibm.com> |
827 | ||
828 | * core-regset.c: Remove file. | |
829 | * Makefile.in (ALLDEPFILES): Remove core-regset.c. | |
830 | ||
2400729e UW |
831 | 2017-11-22 Ulrich Weigand <uweigand@de.ibm.com> |
832 | ||
833 | * NEWS: Document use of GNU MPFR. | |
834 | * README: Likewise. | |
835 | ||
836 | * Makefile.in (LIBMPFR): Add define. | |
837 | (CLIBS): Add $(LIBMPFR). | |
838 | * configure.ac: Add --with-mpfr configure option. | |
839 | * configure: Regenerate. | |
840 | * config.in: Regenerate. | |
841 | ||
842 | * target-float.c [HAVE_LIBMPFR]: Include <mpfr.h>. | |
843 | (class mpfr_float_ops): New type. | |
844 | (mpfr_float_ops::from_target): Two new overloaded functions. | |
845 | (mpfr_float_ops::to_target): Likewise. | |
846 | (mpfr_float_ops::to_string): New function. | |
847 | (mpfr_float_ops::from_string): Likewise. | |
848 | (mpfr_float_ops::to_longest): Likewise. | |
849 | (mpfr_float_ops::from_longest): Likewise. | |
850 | (mpfr_float_ops::from_ulongest): Likewise. | |
851 | (mpfr_float_ops::to_host_double): Likewise. | |
852 | (mpfr_float_ops::from_host_double): Likewise. | |
853 | (mpfr_float_ops::convert): Likewise. | |
854 | (mpfr_float_ops::binop): Likewise. | |
855 | (mpfr_float_ops::compare): Likewise. | |
856 | (get_target_float_ops): Use mpfr_float_ops if available. | |
857 | ||
7a26362d UW |
858 | 2017-11-22 Ulrich Weigand <uweigand@de.ibm.com> |
859 | ||
860 | * target-float.c: Do not include <math.h>. | |
861 | Include <cmath> and <limits>. | |
862 | (DOUBLEST): Do not define. | |
863 | (class target_float_ops): New type. | |
864 | (class host_float_ops): New templated type. | |
865 | (class decimal_float_ops): New type. | |
866 | ||
867 | (floatformat_to_doublest): Rename to ... | |
868 | (host_float_ops<T>::from_target): ... this. Use template type T | |
869 | instead of DOUBLEST. Use C++ math routines. Update recursive calls. | |
870 | (host_float_ops<T>::from_target): New overload using a type argument. | |
871 | (floatformat_from_doublest): Rename to ... | |
872 | (host_float_ops<T>::to_target): ... this. Use template type T | |
873 | instead of DOUBLEST. Use C++ math routines. Update recursive calls. | |
874 | (host_float_ops<T>::to_target): New overload using a type argument. | |
875 | (floatformat_printf_format): New function. | |
876 | (struct printf_length_modifier): New templated type. | |
877 | (floatformat_to_string): Rename to ... | |
878 | (host_float_ops<T>::to_string): ... this. Use type instead of | |
879 | floatformat argument. Use floatformat_printf_format and | |
880 | printf_length_modifier. Remove special handling of invalid numbers, | |
881 | infinities and NaN (moved to target_float_to_string). | |
882 | (struct scanf_length_modifier): New templated type. | |
883 | (floatformat_from_string): Rename to ... | |
884 | (host_float_ops<T>::from_string): ... this. Use type instead of | |
885 | floatformat argument. Use scanf_length_modifier. | |
886 | (floatformat_to_longest): Rename to ... | |
887 | (host_float_ops<T>::to_longest): ... this. Use type instead of | |
888 | floatformat argument. Handle out-of-range values deterministically. | |
889 | (floatformat_from_longest): Rename to ... | |
890 | (host_float_ops<T>::from_longest): ... this. Use type instead of | |
891 | floatformat argument. | |
892 | (floatformat_from_ulongest): Rename to ... | |
893 | (host_float_ops<T>::from_ulongest): ... this. Use type instead of | |
894 | floatformat argument. | |
895 | (floatformat_to_host_double): Rename to ... | |
896 | (host_float_ops<T>::to_host_double): ... this. Use type instead of | |
897 | floatformat argument. | |
898 | (floatformat_from_host_double): Rename to ... | |
899 | (host_float_ops<T>::from_host_double): ... this. Use type instead of | |
900 | floatformat argument. | |
901 | (floatformat_convert): Rename to ... | |
902 | (host_float_ops<T>::convert): ... this. Use type instead of | |
903 | floatformat arguments. Remove handling of no-op conversions. | |
904 | (floatformat_binop): Rename to ... | |
905 | (host_float_ops<T>::binop): ... this. Use type instead of | |
906 | floatformat arguments. | |
907 | (floatformat_compare): Rename to ... | |
908 | (host_float_ops<T>::compare): ... this. Use type instead of | |
909 | floatformat arguments. | |
910 | ||
911 | (match_endianness): Use type instead of length/byte_order arguments. | |
912 | (set_decnumber_context): Likewise. | |
913 | (decimal_from_number): Likewise. Update calls. | |
914 | (decimal_to_number): Likewise. | |
915 | (decimal_is_zero): Likewise. Update calls. Move to earlier in file. | |
916 | (decimal_float_ops::to_host_double): New dummy function. | |
917 | (decimal_float_ops::from_host_double): Likewise. | |
918 | (decimal_to_string): Rename to ... | |
919 | (decimal_float_ops::to_string): ... this. Use type instead of | |
920 | length/byte_order arguments. Update calls. | |
921 | (decimal_from_string): Rename to ... | |
922 | (decimal_float_ops::from_string): ... this. Use type instead of | |
923 | length/byte_order arguments. Update calls. | |
924 | (decimal_from_longest): Rename to ... | |
925 | (decimal_float_ops::from_longest): ... this. Use type instead of | |
926 | length/byte_order arguments. Update calls. | |
927 | (decimal_from_ulongest): Rename to ... | |
928 | (decimal_float_ops::from_ulongest): ... this. Use type instead of | |
929 | length/byte_order arguments. Update calls. | |
930 | (decimal_to_longest): Rename to ... | |
931 | (decimal_float_ops::to_longest): ... this. Use type instead of | |
932 | length/byte_order arguments. Update calls. | |
933 | (decimal_binop): Rename to ... | |
934 | (decimal_float_ops::binop): ... this. Use type instead of | |
935 | length/byte_order arguments. Update calls. | |
936 | (decimal_compare): Rename to ... | |
937 | (decimal_float_ops::compare): ... this. Use type instead of | |
938 | length/byte_order arguments. Update calls. | |
939 | (decimal_convert): Rename to ... | |
940 | (decimal_float_ops::convert): ... this. Use type instead of | |
941 | length/byte_order arguments. Update calls. | |
942 | ||
943 | (target_float_same_category_p): New function. | |
944 | (target_float_same_format_p): Likewise. | |
945 | (target_float_format_length): Likewise. | |
946 | (enum target_float_ops_kind): New type. | |
947 | (get_target_float_ops_kind): New function. | |
948 | (get_target_float_ops): Three new overloaded functions. | |
949 | ||
950 | (target_float_is_zero): Update call. | |
951 | (target_float_to_string): Add special handling of invalid numbers, | |
952 | infinities and NaN (moved from floatformat_to_string). Use | |
953 | target_float_ops callback. | |
954 | (target_float_from_string): Use target_float_ops callback. | |
955 | (target_float_to_longest): Likewise. | |
956 | (target_float_from_longest): Likewise. | |
957 | (target_float_from_ulongest): Likewise. | |
958 | (target_float_to_host_double): Likewise. | |
959 | (target_float_from_host_double): Likewise. | |
960 | (target_float_convert): Add special case for no-op conversions. | |
961 | Use target_float_ops callback. | |
962 | (target_float_binop): Use target_float_ops callback. | |
963 | (target_float_compare): Likewise. | |
964 | ||
a9f26f60 YQ |
965 | 2017-11-22 Yao Qi <yao.qi@linaro.org> |
966 | ||
967 | * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use strcpy. | |
968 | ||
29f9a567 YQ |
969 | 2017-11-22 Yao Qi <yao.qi@linaro.org> |
970 | ||
971 | * cli/cli-decode.c (help_list): Use memcpy instead of strncpy. | |
972 | * cp-namespace.c (cp_lookup_transparent_type_loop): Likewise. | |
973 | ||
3b1b69bf JG |
974 | 2017-11-21 Jerome Guitton <guitton@adacore.com> |
975 | ||
976 | * ravenscar-thread.c (ravenscar_wait): Update inferior ptid | |
977 | with event ptid from the lower layer before doing the | |
978 | ravenscar-specific update. | |
979 | ||
54aa6c67 JB |
980 | 2017-11-21 Joel Brobecker <brobecker@adacore.com> |
981 | ||
982 | * ravenscar-thread.c (is_ravenscar_task): Also verify that | |
983 | the ptid's TID is nonzero. | |
984 | ||
cf3fbed4 JB |
985 | 2017-11-21 Joel Brobecker <brobecker@adacore.com> |
986 | ||
987 | * ada-lang.h (ada_get_tcb_types_info): Add declaration. | |
988 | * ada-tasks.c (ada_get_tcb_types_info): Renames get_tcb_types_info. | |
989 | Make non-static. Change return type to char *. Adjust code | |
990 | accordingly. Rewrite the function's documentation. | |
991 | (read_atcb): Adjust call to get_tcb_types_info accordingly. | |
992 | * ravenscar-thread.c (ravenscar_inferior_created): Check that | |
993 | we have enough debugging information in the runtime to support | |
994 | Ada task debugging before we enable the ravenscar-thread layer. | |
995 | ||
9edcc12f JB |
996 | 2017-11-21 Joel Brobecker <brobecker@adacore.com> |
997 | ||
998 | * ada-lang.h (ada_get_task_info_from_ptid): Add declaration. | |
999 | * ada-tasks.c (ada_get_task_info_from_ptid): New function. | |
1000 | * ravenscar-thread.c: Add into comment. | |
1001 | (base_magic_null_ptid): Delete. | |
1002 | (base_ptid): Change documentation. | |
1003 | (ravenscar_active_task): Renames ravenscar_running_thread. | |
1004 | All callers updated throughout. | |
1005 | (is_ravenscar_task, ravenscar_get_thread_base_cpu): New function. | |
1006 | (ravenscar_task_is_currently_active): Likewise. | |
1007 | (get_base_thread_from_ravenscar_task): Ditto. | |
1008 | (ravenscar_update_inferior_ptid): Adjust to handle multiple CPUs. | |
1009 | (ravenscar_runtime_initialized): Likewise. | |
1010 | (get_running_thread_id): Add new parameter "cpu". Adjust | |
1011 | implementation to handle this new parameter. | |
1012 | (ravenscar_fetch_registers): Small adjustment to use | |
1013 | is_ravenscar_task and ravenscar_task_is_currently_active in | |
1014 | order to decide whether to use the target beneath or this | |
1015 | module's arch_ops. | |
1016 | (ravenscar_store_registers, ravenscar_prepare_to_store): Likewise. | |
1017 | (ravenscar_stopped_by_sw_breakpoint): Use | |
1018 | get_base_thread_from_ravenscar_task to get the underlying | |
1019 | thread, rather than using base_ptid. | |
1020 | (ravenscar_stopped_by_hw_breakpoint, ravenscar_stopped_by_watchpoint) | |
1021 | (ravenscar_stopped_data_address, ravenscar_core_of_thread): | |
1022 | Likewise. | |
1023 | (ravenscar_inferior_created): Do not set base_magic_null_ptid. | |
1024 | ||
65d40437 JB |
1025 | 2017-11-21 Joel Brobecker <brobecker@adacore.com> |
1026 | ||
1027 | * ada-lang.h (struct ada_task_info) <base_cpu>: New field. | |
1028 | * ada-lang.c (struct atcb_fieldno) <base_cpu>: New field. | |
1029 | (get_tcb_types_info): Set fieldnos.base_cpu. | |
1030 | (read_atcb): Set task_info->base_cpu. | |
1031 | (info_task): Print "Base CPU" info if set by runtime. | |
1032 | ||
e02544b2 JB |
1033 | 2017-11-21 Joel Brobecker <brobecker@adacore.com> |
1034 | ||
1035 | * ravenscar-thread.c (ravenscar_stopped_by_sw_breakpoint) | |
1036 | (ravenscar_stopped_by_hw_breakpoint, ravenscar_stopped_by_watchpoint) | |
1037 | (ravenscar_stopped_data_address, ravenscar_core_of_thread): | |
1038 | New functions. | |
1039 | (init_ravenscar_thread_ops): Set the to_stopped_by_sw_breakpoint, | |
1040 | to_stopped_by_hw_breakpoint, to_stopped_by_watchpoint, | |
1041 | to_stopped_data_address and to_core_of_thread fields of | |
1042 | ravenscar_ops. | |
1043 | ||
ed0f4273 UW |
1044 | 2017-11-21 Ulrich Weigand <uweigand@de.ibm.com> |
1045 | ||
1046 | * ppc-tdep.h (enum powerpc_long_double_abi): New data type. | |
1047 | (struct gdbarch_tdep): New member long_double_abi. | |
1048 | * rs6000-tdep.c (rs6000_gdbarch_init): Initialize long_double_abi | |
1049 | member of tdep struct based on Tag_GNU_Power_ABI_FP attribute. | |
1050 | * ppc-linux-tdep.c (ppc_linux_init_abi): Install long double data | |
1051 | format depending on long_double_abi tdep member. | |
1052 | (ppc_floatformat_for_type): Handle __ibm128 type. | |
1053 | ||
0fc76421 SM |
1054 | 2017-11-20 Simon Marchi <simon.marchi@polymtl.ca> |
1055 | ||
1056 | * darwin-nat.c (set_enable_mach_exceptions): Constify parameter. | |
1057 | ||
e6b2f5ef PA |
1058 | 2017-11-21 Pedro Alves <palves@redhat.com> |
1059 | ||
1060 | * dwarf2read.c (mapped_index::find_name_components_bounds) | |
1061 | <completion mode, upper bound>: Use std::lower_bound instead of | |
1062 | std::upper_bound. | |
1063 | (test_mapped_index_find_name_component_bounds): Remove incorrect | |
1064 | "t1_fund" from expected symbols. | |
1065 | ||
5c58de74 PA |
1066 | 2017-11-21 Pedro Alves <palves@redhat.com> |
1067 | ||
1068 | * dwarf2read.c (mapped_index::name_components_casing): New field. | |
1069 | (mapped_index) <build_name_components, | |
1070 | find_name_components_bounds): Declare new methods. | |
1071 | (mapped_index::find_name_components_bounds) | |
1072 | (mapped_index::build_name_components): New methods, factored out | |
1073 | from dw2_expand_symtabs_matching_symbol. | |
1074 | (check_find_bounds_finds) | |
1075 | (test_mapped_index_find_name_component_bounds): New. | |
1076 | (run_test): Rename to ... | |
1077 | (test_dw2_expand_symtabs_matching_symbol): ... this. | |
1078 | (run_test): Reimplement. | |
1079 | ||
e1ef7d7a PA |
1080 | 2017-11-21 Pedro Alves <palves@redhat.com> |
1081 | ||
1082 | * cp-name-parser.y (cp_ident_is_alpha, cp_ident_is_alnum): New. | |
1083 | (symbol_end): Use cp_ident_is_alnum. | |
1084 | (yylex): Use cp_ident_is_alpha and cp_ident_is_alnum. | |
1085 | * dwarf2read.c (make_sort_after_prefix_name): New function. | |
1086 | (dw2_expand_symtabs_matching_symbol): Use it. | |
1087 | (test_symbols): Add more symbols. | |
1088 | (run_test): Add tests. | |
1089 | ||
cf724bc9 TT |
1090 | 2017-11-17 Tom Tromey <tom@tromey.com> |
1091 | ||
1092 | * symtab.h (enum symbol_subclass_kind): New. | |
1093 | (struct symbol) <is_cplus_template_function, is_rust_vtable>: | |
1094 | Remove. | |
1095 | <subclass>: New member. | |
1096 | (SYMBOL_IS_CPLUS_TEMPLATE_FUNCTION): Update. | |
1097 | * rust-lang.c (rust_get_trait_object_pointer): Update. | |
1098 | * dwarf2read.c (read_func_scope): Update. | |
1099 | (read_variable): Update. | |
1100 | ||
68e745e3 TT |
1101 | 2017-11-17 Tom Tromey <tom@tromey.com> |
1102 | ||
1103 | * dwarf2read.c (read_func_scope): Update. | |
1104 | * symtab.h (struct template_symbol): Derive from symbol. | |
1105 | <base>: Remove. | |
1106 | ||
71a3c369 TT |
1107 | 2017-11-17 Tom Tromey <tom@tromey.com> |
1108 | ||
1109 | * symtab.h (struct symbol) <is_rust_vtable>: New member. | |
1110 | (struct rust_vtable_symbol): New. | |
1111 | (find_symbol_at_address): Declare. | |
1112 | * symtab.c (find_symbol_at_address): New function. | |
1113 | * symfile.h (struct quick_symbol_functions) | |
1114 | <find_compunit_symtab_by_address>: New member. | |
1115 | * symfile-debug.c (debug_qf_find_compunit_symtab_by_address): New | |
1116 | function. | |
1117 | (debug_sym_quick_functions): Link to | |
1118 | debug_qf_find_compunit_symtab_by_address. | |
1119 | * rust-lang.c (rust_get_trait_object_pointer): New function. | |
1120 | (rust_evaluate_subexp) <case UNOP_IND>: New case. Call | |
1121 | rust_get_trait_object_pointer. | |
1122 | * psymtab.c (psym_relocate): Clear psymbol_map. | |
1123 | (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address): New | |
1124 | functions. | |
1125 | (psym_functions): Link to psym_find_compunit_symtab_by_address. | |
1126 | * objfiles.h (struct objfile) <psymbol_map>: New member. | |
1127 | * dwarf2read.c (dwarf2_gdb_index_functions): Update. | |
1128 | (process_die) <DW_TAG_variable>: New case. Call read_variable. | |
1129 | (rust_containing_type, read_variable): New functions. | |
1130 | ||
7468702d SM |
1131 | 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca> |
1132 | ||
1133 | * common/gdb_vecs.h (DEF_VEC_I (int)): Remove. | |
1134 | ||
37269bc9 SM |
1135 | 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca> |
1136 | ||
1137 | * common/filestuff.c: Include <algorithm>. | |
1138 | (open_fds): Change type to std::vector<int>. | |
1139 | (do_mark_open_fd): Adjust. | |
1140 | (unmark_fd_no_cloexec): Adjust. | |
1141 | (do_close): Adjust. | |
1142 | ||
5c632425 SM |
1143 | 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca> |
1144 | ||
1145 | * breakpoint.c (output_thread_groups): Take an std::vector. | |
1146 | (print_one_breakpoint_location): Adjust. | |
1147 | ||
ced9779b JB |
1148 | 2017-11-17 Joel Brobecker <brobecker@adacore.com> |
1149 | ||
1150 | * ada-lang.c (resolve_subexp): Add handling of OP_VAR_MSYM_VALUE. | |
1151 | (ada_evaluate_subexp_for_cast): New function. | |
1152 | (ada_evaluate_subexp) <UNOP_CAST>: Replace code by call to | |
1153 | ada_evaluate_subexp_for_cast. | |
1154 | (ada_evaluate_subexp) <nosideret>: Replace code by call to | |
1155 | eval_skip_value. | |
1156 | * eval.c (evaluate_var_value): Make non-static. | |
1157 | (evaluate_var_msym_value, eval_skip_value): Likewise. | |
1158 | * value.h (evaluate_var_value, evaluate_var_msym_value) | |
1159 | (eval_skip_value): Declare. | |
1160 | ||
b7e22850 JB |
1161 | 2017-11-16 Joel Brobecker <brobecker@adacore.com> |
1162 | ||
1163 | * ada-lang.c (ada_value_cast): Remove parameter "noside". | |
1164 | Update all callers. | |
1165 | ||
9ccabccd PA |
1166 | 2017-11-16 Pedro Alves <palves@redhat.com> |
1167 | ||
1168 | * python/py-unwind.c (pyuw_sniffer): Translate | |
1169 | PyExc_KeyboardInterrupt to a GDB Quit exception. | |
1170 | ||
d930703d PA |
1171 | 2017-11-16 Pedro Alves <palves@redhat.com> |
1172 | ||
1173 | * infrun.c (resume_cleanups): Delete. | |
1174 | (resume): No longer install a resume_cleanups cleanup nor call | |
1175 | QUIT. | |
1176 | (proceed): Pass the terminal to the inferior. | |
1177 | (keep_going_pass_signal): No longer install a resume_cleanups | |
1178 | cleanup. | |
1179 | ||
38dc2859 PA |
1180 | 2017-11-16 Pedro Alves <palves@redhat.com> |
1181 | ||
1182 | * inf-loop.c (inferior_event_handler): Don't swallow the exception | |
1183 | if the prompt is blocked. | |
1184 | ||
688fca4f PA |
1185 | 2017-11-16 Pedro Alves <palves@redhat.com> |
1186 | ||
1187 | * breakpoint.c (insert_bp_location): Replace bp_err and | |
1188 | bp_err_message locals by a gdb_exception local. | |
1189 | ||
e2c33ac7 PA |
1190 | 2017-11-16 Pedro Alves <palves@redhat.com> |
1191 | ||
1192 | * inflow.c (scoped_ignore_sigttou): New class. | |
1193 | (child_terminal_ours_1, new_tty): Use it. | |
1194 | ||
d7236961 UW |
1195 | 2017-11-16 Ulrich Weigand <uweigand@de.ibm.com> |
1196 | ||
1197 | * target-float.c (decimal_from_number): Add byte_order argument and | |
1198 | call match_endianness. Error if unknown floating-point type. | |
1199 | (decimal_to_number): Add byte_order argument and call match_endianness. | |
1200 | (decimal_from_longest): Update call. Do not call match_endianness. | |
1201 | (decimal_from_ulongest): Likewise. | |
1202 | (decimal_binop): Likewise. | |
1203 | (decimal_is_zero): Likewise. | |
1204 | (decimal_compare): Likewise. | |
1205 | (decimal_convert): Likewise. | |
1206 | ||
d8ae99a7 PM |
1207 | 2017-11-16 Phil Muldoon <pmuldoon@redhat.com> |
1208 | ||
1209 | * python/python.c (gdbpy_rbreak): New function. | |
1210 | * NEWS: Document Python rbreak feature. | |
1211 | ||
c632b645 YQ |
1212 | 2017-11-16 Yao Qi <yao.qi@linaro.org> |
1213 | ||
1214 | * features/tic6x-c62x.xml: Remove. | |
1215 | * features/tic6x-c64x.xml: Remove. | |
1216 | * features/tic6x-c64xp.xml: Remove. | |
1217 | ||
a014b87a JB |
1218 | 2017-11-15 John Baldwin <jhb@FreeBSD.org> |
1219 | ||
1220 | * symtab.h: Include <array>. | |
1221 | ||
94765011 JB |
1222 | 2017-11-15 John Baldwin <jhb@FreeBSD.org> |
1223 | ||
1224 | * bsd-kvm.c (bsd_kvm_cmd): Constify 'arg'. | |
1225 | (bsd_kvm_proc_cmd): Likewise. | |
1226 | ||
625ad440 SM |
1227 | 2017-11-15 Simon Marchi <simon.marchi@ericsson.com> |
1228 | ||
1229 | * tui/tui-win.c (window_name_completer): Replace VEC with | |
1230 | std::vector. | |
1231 | ||
c0c11fa9 AC |
1232 | 2017-11-15 Andrew Cagney <cagney@gnu.org> |
1233 | ||
1234 | * MAINTAINERS: Remove no-longer applicable entries. | |
1235 | ||
34a7ebaf AC |
1236 | 2017-11-15 Andrew Cagney <cagney@gnu.org> |
1237 | ||
1238 | * MAINTAINERS: Move self to Past Maintainers. | |
1239 | ||
5334ef39 YQ |
1240 | 2017-11-15 Yao Qi <yao.qi@linaro.org> |
1241 | ||
1242 | * features/Makefile (XMLTOC): Remove nios2-linux.xml. | |
1243 | * features/nios2-linux.c: Remove. | |
1244 | * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Don't call | |
1245 | initialize_tdesc_nios2_linux. | |
1246 | ||
a714b0d6 YQ |
1247 | 2017-11-15 Yao Qi <yao.qi@linaro.org> |
1248 | ||
1249 | * m68hc11-tdep.c (M68HC11_NUM_REGS): Change it to | |
1250 | M68HC11_LAST_HARD_REG + 1. | |
1251 | ||
92ffd475 PC |
1252 | 2017-11-14 Paul Carroll <pcarroll@codesourcery.com> |
1253 | ||
1254 | PR gdb/22388 | |
1255 | * remote.c (remote_write_bytes_aux, remote_read_bytes_1, | |
1256 | remote_read_bytes, remote_write_qxfer, remote_xfer_partial): | |
1257 | Return TARGET_XFER_EOF if size of returned data is 0. | |
1258 | ||
07431908 SM |
1259 | 2017-11-14 Simon Marchi <simon.marchi@ericsson.com> |
1260 | ||
1261 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add | |
1262 | memory-map-selftests.c. | |
1263 | (SUBDIR_UNITTESTS_OBS): Add memory-map-selftests.o. | |
1264 | * memory-map.c (memory_map_start_memory): Fix computation of hi | |
1265 | address. | |
1266 | * unittests/memory-map-selftests.c: New file. | |
1267 | ||
31432a67 JB |
1268 | 2017-11-09 Joel Brobecker <brobecker@adacore.com> |
1269 | ||
1270 | * ada-lang.c: Fix some typos in the general command documenting | |
1271 | how Ada expressions are being evaluated and how their result | |
1272 | is printed. | |
1273 | ||
e793c052 TT |
1274 | 2017-11-09 Tom Tromey <tom@tromey.com> |
1275 | ||
1276 | * psymtab.c (psymbol_hash): Do not hash string contents. | |
1277 | (psymbol_compare): Add comment. | |
1278 | ||
7e8835c5 TT |
1279 | 2017-11-09 Tom Tromey <tom@tromey.com> |
1280 | ||
1281 | * dictionary.c (dict_hash): Move "TKB" check into the "switch". | |
1282 | ||
286acbb5 JB |
1283 | 2017-11-08 Joel Brobecker <brobecker@adacore.com> |
1284 | ||
1285 | * ada-exp.y (write_var_from_sym): Remove parameter | |
1286 | "orig_left_context". Update all callers. | |
1287 | ||
b44ec619 SM |
1288 | 2017-11-08 Simon Marchi <simon.marchi@ericsson.com> |
1289 | ||
1290 | * tracepoint.h (class collection_list) <stringify>: Return | |
1291 | std::vector<std::string>. | |
1292 | (encode_actions_rsp): Change parameters to | |
1293 | std::vector<std::string> *. | |
1294 | * tracepoint.c (collection_list::stringify): Return | |
1295 | std::vector<std::string> and adjust accordingly. | |
1296 | (encode_actions_rsp): Changee parameters to | |
1297 | std::vector<std::string> and adjust accordingly. | |
1298 | * remote.c (free_actions_list), | |
1299 | free_actions_list_cleanup_wrapper): Remove. | |
1300 | (remote_download_tracepoint): Adjust to std::vector. | |
1301 | ||
2f4732b0 TT |
1302 | 2017-11-08 Tom Tromey <tom@tromey.com> |
1303 | ||
1304 | * dwarf2read.c (symbolp): Remove typedef. | |
1305 | (read_func_scope): Use std::vector. | |
1306 | (process_structure_scope): Use std::vector. | |
1307 | ||
f9d67a22 PA |
1308 | 2017-11-08 Pedro Alves <palves@redhat.com> |
1309 | ||
1310 | * ada-lang.c (ada_make_symbol_completion_list): Use | |
1311 | completion_skip_symbol. | |
1312 | * symtab.c (symbol_is_function_or_method(minimal_symbol*)): New. | |
1313 | (symbol_is_function_or_method(symbol*)): New. | |
1314 | (add_symtab_completions): Add complete_symbol_mode parameter. Use | |
1315 | completion_skip_symbol. | |
1316 | (default_collect_symbol_completion_matches_break_on): Use | |
1317 | completion_skip_symbol. Pass down mode. | |
1318 | (collect_file_symbol_completion_matches): Pass down mode. | |
1319 | * symtab.h (symbol_is_function_or_method): New declarations. | |
1320 | (completion_skip_symbol): New template function. | |
1321 | ||
56d87ef7 PA |
1322 | 2017-11-08 Pedro Alves <palves@redhat.com> |
1323 | ||
1324 | * linespec.c (iterate_over_all_matching_symtabs): Add | |
1325 | search_domain parameter. Pass it down to expand_symtabs_matching. | |
1326 | (decode_objc): Request FUNCTIONS_DOMAIN symbols only. | |
1327 | (lookup_prefix_sym): Adjust by passing ALL_DOMAIN as | |
1328 | search_domain. | |
1329 | (add_all_symbol_names_from_pspace): Add search_domain parameter. | |
1330 | Pass it down. | |
1331 | (find_method, find_function_symbols): Request FUNCTIONS_DOMAIN | |
1332 | symbols. | |
1333 | (add_matching_symbols_to_info): Add search_domain parameter. Pass | |
1334 | it down. | |
1335 | ||
1b026119 PA |
1336 | 2017-11-08 Pedro Alves <palves@redhat.com> |
1337 | ||
1338 | * ada-lang.c (ada_make_symbol_completion_list): Remove text and | |
1339 | text_len locals and don't pass them down. | |
1340 | * symtab.c (completion_list_add_name): Remove | |
1341 | sym_text/sym_text_len parameters and adjust. | |
1342 | (completion_list_add_symbol, completion_list_add_msymbol) | |
1343 | (completion_list_objc_symbol, completion_list_add_fields) | |
1344 | (add_symtab_completions): Likewise. | |
1345 | (default_collect_symbol_completion_matches_break_on) | |
1346 | (collect_file_symbol_completion_matches): Remove sym_text_len | |
1347 | local and don't pass it down. | |
1348 | * symtab.h (completion_list_add_name): Remove | |
1349 | sym_text/sym_text_len parameters. | |
1350 | ||
c62446b1 PA |
1351 | 2017-11-08 Pedro Alves <palves@redhat.com> |
1352 | ||
1353 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add | |
1354 | unittests/lookup_name_info-selftests.c. | |
1355 | (SUBDIR_UNITTESTS_OBS): Add lookup_name_info-selftests.o. | |
1356 | * cp-support.c: Include "selftest.h". | |
1357 | (cp_remove_params_1): Rename from cp_remove_params. Add | |
1358 | 'require_param' parameter, and handle it. | |
1359 | (cp_remove_params): Reimplement. | |
1360 | (cp_remove_params_if_any): New. | |
1361 | (selftests::quote): New. | |
1362 | (selftests::check_remove_params): New. | |
1363 | (selftests::test_cp_remove_params): New. | |
1364 | (_initialize_cp_support): Install | |
1365 | selftests::test_cp_remove_params. | |
1366 | * cp-support.h (cp_remove_params_if_any): Declare. | |
1367 | * dwarf2read.c :Include "selftest.h". | |
1368 | (dw2_expand_symtabs_matching_symbol): Use | |
1369 | lookup_name_info::make_ignore_params. | |
1370 | (selftests::dw2_expand_symtabs_matching::mock_mapped_index) | |
1371 | (selftests::dw2_expand_symtabs_matching::string_or_null) | |
1372 | (selftests::dw2_expand_symtabs_matching::check_match) | |
1373 | (selftests::dw2_expand_symtabs_matching::test_symbols) | |
1374 | (selftests::dw2_expand_symtabs_matching::run_test): New. | |
1375 | (_initialize_dwarf2_read): Register | |
1376 | selftests::dw2_expand_symtabs_matching::run_test. | |
1377 | * psymtab.c (psym_expand_symtabs_matching): Use | |
1378 | lookup_name_info::make_ignore_params. | |
1379 | * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info): | |
1380 | If the lookup name wants to ignore parameters, strip them. | |
1381 | (compare_symbol_name): Remove sym_text/sym_text_len parameters and | |
1382 | code handling '('. | |
1383 | (completion_list_add_name): Don't pass down sym_text/sym_text_len. | |
1384 | (default_collect_symbol_completion_matches_break_on): Don't try to | |
1385 | strip parameters. | |
1386 | * symtab.h (lookup_name_info::lookup_name_info): Add | |
1387 | 'ignore_parameters' parameter. | |
1388 | (lookup_name_info::ignore_parameters) | |
1389 | (lookup_name_info::make_ignore_params): New methods. | |
1390 | (lookup_name_info::m_ignore_parameters): New field. | |
1391 | * unittests/lookup_name_info-selftests.c: New file. | |
1392 | ||
61920122 PA |
1393 | 2017-11-08 Pedro Alves <palves@redhat.com> |
1394 | ||
1395 | * dwarf2read.c (dw2_expand_marked_cus) | |
1396 | (dw2_expand_symtabs_matching_symbol): Remove forward declarations. | |
1397 | (dw2_expand_symtabs_matching): Move further below. | |
1398 | (dw2_expand_marked_cus): Reindent. | |
1399 | ||
3f563c84 PA |
1400 | 2017-11-08 Pedro Alves <palves@redhat.com> |
1401 | ||
1402 | * dwarf2read.c (byte_swap, MAYBE_SWAP): Move higher up in file. | |
1403 | (struct name_component): New. | |
1404 | (mapped_index::name_components): New field. | |
1405 | (mapped_index::symbol_name_at): New method. | |
1406 | (dwarf2_read_index): Call mapped_index ctor. | |
1407 | (dw2_map_matching_symbols): Add comment about name_components | |
1408 | table. | |
1409 | (dw2_expand_symtabs_matching): Factor part to... | |
1410 | (dw2_expand_symtabs_matching_symbol): ... this new function. | |
1411 | Build name components table, and lookup symbols in it before | |
1412 | calling the name matcher. | |
1413 | (dw2_expand_marked_cus): New, factored out from | |
1414 | dw2_expand_symtabs_matching. | |
1415 | (dwarf2_per_objfile_free): Call the mapped_index's dtor. | |
1416 | ||
b5ec771e PA |
1417 | 2017-11-08 Pedro Alves <palves@redhat.com> |
1418 | ||
1419 | * ada-lang.c (ada_encode): Rename to .. | |
1420 | (ada_encode_1): ... this. Add throw_errors parameter and handle | |
1421 | it. | |
1422 | (ada_encode): Reimplement. | |
1423 | (match_name): Delete, folded into full_name. | |
1424 | (resolve_subexp): No longer pass the encoded name to | |
1425 | ada_lookup_symbol_list. | |
1426 | (should_use_wild_match): Delete. | |
1427 | (name_match_type_from_name): New. | |
1428 | (ada_lookup_simple_minsym): Use lookup_name_info and the | |
1429 | language's symbol_name_matcher_ftype. | |
1430 | (add_symbols_from_enclosing_procs, ada_add_local_symbols) | |
1431 | (ada_add_block_renamings): Adjust to use lookup_name_info. | |
1432 | (ada_lookup_name): New. | |
1433 | (add_nonlocal_symbols, ada_add_all_symbols) | |
1434 | (ada_lookup_symbol_list_worker, ada_lookup_symbol_list) | |
1435 | (ada_iterate_over_symbols): Adjust to use lookup_name_info. | |
1436 | (ada_name_for_lookup): Delete. | |
1437 | (ada_lookup_encoded_symbol): Construct a verbatim name. | |
1438 | (wild_match): Reverse sense of return type. Use bool. | |
1439 | (full_match): Reverse sense of return type. Inline bits of old | |
1440 | match_name here. | |
1441 | (ada_add_block_symbols): Adjust to use lookup_name_info. | |
1442 | (symbol_completion_match): Delete, folded into... | |
1443 | (ada_lookup_name_info::matches): ... .this new method. | |
1444 | (symbol_completion_add): Delete. | |
1445 | (ada_collect_symbol_completion_matches): Add name_match_type | |
1446 | parameter. Adjust to use lookup_name_info and | |
1447 | completion_list_add_name. | |
1448 | (get_var_value, ada_add_global_exceptions): Adjust to use | |
1449 | lookup_name_info. | |
1450 | (ada_get_symbol_name_cmp): Delete. | |
1451 | (do_wild_match, do_full_match): New functions. | |
1452 | (ada_lookup_name_info::ada_lookup_name_info): New method. | |
1453 | (ada_symbol_name_matches, ada_get_symbol_name_matcher): New | |
1454 | functions. | |
1455 | (ada_language_defn): Install ada_get_symbol_name_matcher. | |
1456 | * ada-lex.l (processId): If name starts with '<', copy it | |
1457 | verbatim. | |
1458 | * block.c (block_iter_match_step, block_iter_match_first) | |
1459 | (block_iter_match_next, block_lookup_symbol) | |
1460 | (block_lookup_symbol_primary, block_find_symbol): Adjust to use | |
1461 | lookup_name_info. | |
1462 | * block.h (block_iter_match_first, block_iter_match_next) | |
1463 | (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use lookup_name_info. | |
1464 | * c-lang.c (c_language_defn, cplus_language_defn) | |
1465 | (asm_language_defn, minimal_language_defn): Adjust comments to | |
1466 | refer to la_get_symbol_name_matcher. | |
1467 | * completer.c (complete_files_symbols) | |
1468 | (collect_explicit_location_matches, symbol_completer): Pass a | |
1469 | symbol_name_match_type down. | |
1470 | * completer.h (class completion_match, completion_match_result): | |
1471 | New classes. | |
1472 | (completion_tracker::reset_completion_match_result): New method. | |
1473 | (completion_tracker::m_completion_match_result): New field. | |
1474 | * cp-support.c (make_symbol_overload_list_block): Adjust to use | |
1475 | lookup_name_info. | |
1476 | (cp_fq_symbol_name_matches, cp_get_symbol_name_matcher): New | |
1477 | functions. | |
1478 | * cp-support.h (cp_get_symbol_name_matcher): New declaration. | |
1479 | * d-lang.c: Adjust comments to refer to | |
1480 | la_get_symbol_name_matcher. | |
1481 | * dictionary.c (dict_vector) <iter_match_first, iter_match_next>: | |
1482 | Adjust to use lookup_name_info. | |
1483 | (dict_iter_match_first, dict_iter_match_next) | |
1484 | (iter_match_first_hashed, iter_match_next_hashed) | |
1485 | (iter_match_first_linear, iter_match_next_linear): Adjust to work | |
1486 | with a lookup_name_info. | |
1487 | * dictionary.h (dict_iter_match_first, dict_iter_match_next): | |
1488 | Likewise. | |
1489 | * dwarf2read.c (dw2_lookup_symbol): Adjust to use lookup_name_info. | |
1490 | (dw2_map_matching_symbols): Adjust to use symbol_name_match_type. | |
1491 | (gdb_index_symbol_name_matcher): New class. | |
1492 | (dw2_expand_symtabs_matching) Adjust to use lookup_name_info and | |
1493 | gdb_index_symbol_name_matcher. Accept a NULL symbol_matcher. | |
1494 | * f-lang.c (f_collect_symbol_completion_matches): Adjust to work | |
1495 | with a symbol_name_match_type. | |
1496 | (f_language_defn): Adjust comments to refer to | |
1497 | la_get_symbol_name_matcher. | |
1498 | * go-lang.c (go_language_defn): Adjust comments to refer to | |
1499 | la_get_symbol_name_matcher. | |
1500 | * language.c (default_symbol_name_matcher) | |
1501 | (language_get_symbol_name_matcher): New functions. | |
1502 | (unknown_language_defn, auto_language_defn): Adjust comments to | |
1503 | refer to la_get_symbol_name_matcher. | |
1504 | * language.h (symbol_name_cmp_ftype): Delete. | |
1505 | (language_defn) <la_collect_symbol_completion_matches>: Add match | |
1506 | type parameter. | |
1507 | <la_get_symbol_name_cmp>: Delete field. | |
1508 | <la_get_symbol_name_matcher>: New field. | |
1509 | <la_iterate_over_symbols>: Adjust to use lookup_name_info. | |
1510 | (default_symbol_name_matcher, language_get_symbol_name_matcher): | |
1511 | Declare. | |
1512 | * linespec.c (iterate_over_all_matching_symtabs) | |
1513 | (iterate_over_file_blocks): Adjust to use lookup_name_info. | |
1514 | (find_methods): Add language parameter, and use lookup_name_info | |
1515 | and the language's symbol_name_matcher_ftype. | |
1516 | (linespec_complete_function): Adjust. | |
1517 | (lookup_prefix_sym): Use lookup_name_info. | |
1518 | (add_all_symbol_names_from_pspace): Adjust. | |
1519 | (find_superclass_methods): Add language parameter and pass it | |
1520 | down. | |
1521 | (find_method): Pass symbol language down. | |
1522 | (find_linespec_symbols): Don't demangle or Ada encode here. | |
1523 | (search_minsyms_for_name): Add lookup_name_info parameter. | |
1524 | (add_matching_symbols_to_info): Add name_match_type parameter. | |
1525 | Use lookup_name_info. | |
1526 | * m2-lang.c (m2_language_defn): Adjust comments to refer to | |
1527 | la_get_symbol_name_matcher. | |
1528 | * minsyms.c: Include <algorithm>. | |
1529 | (add_minsym_to_demangled_hash_table): Remove table parameter and | |
1530 | add objfile parameter. Use search_name_hash, and add language to | |
1531 | demangled languages vector. | |
1532 | (struct found_minimal_symbols): New struct. | |
1533 | (lookup_minimal_symbol_mangled, lookup_minimal_symbol_demangled): | |
1534 | New functions. | |
1535 | (lookup_minimal_symbol): Adjust to use them. Don't canonicalize | |
1536 | input names here. Use lookup_name_info instead. Lookup up | |
1537 | demangled names once for each language in the demangled names | |
1538 | vector. | |
1539 | (iterate_over_minimal_symbols): Use lookup_name_info. Lookup up | |
1540 | demangled names once for each language in the demangled names | |
1541 | vector. | |
1542 | (build_minimal_symbol_hash_tables): Adjust. | |
1543 | * minsyms.h (iterate_over_minimal_symbols): Adjust to pass down a | |
1544 | lookup_name_info. | |
1545 | * objc-lang.c (objc_language_defn): Adjust comment to refer to | |
1546 | la_get_symbol_name_matcher. | |
1547 | * objfiles.h: Include <vector>. | |
1548 | (objfile_per_bfd_storage) <demangled_hash_languages>: New field. | |
1549 | * opencl-lang.c (opencl_language_defn): Adjust comment to refer to | |
1550 | la_get_symbol_name_matcher. | |
1551 | * p-lang.c (pascal_language_defn): Adjust comment to refer to | |
1552 | la_get_symbol_name_matcher. | |
1553 | * psymtab.c (psym_lookup_symbol): Use lookup_name_info. | |
1554 | (match_partial_symbol): Use symbol_name_match_type, | |
1555 | lookup_name_info and psymbol_name_matches. | |
1556 | (lookup_partial_symbol): Use lookup_name_info. | |
1557 | (map_block): Use symbol_name_match_type and lookup_name_info. | |
1558 | (psym_map_matching_symbols): Use symbol_name_match_type. | |
1559 | (psymbol_name_matches): New. | |
1560 | (recursively_search_psymtabs): Use lookup_name_info and | |
1561 | psymbol_name_matches. Rename 'kind' parameter to 'domain'. | |
1562 | (psym_expand_symtabs_matching): Use lookup_name_info. Rename | |
1563 | 'kind' parameter to 'domain'. | |
1564 | * rust-lang.c (rust_language_defn): Adjust comment to refer to | |
1565 | la_get_symbol_name_matcher. | |
1566 | * symfile-debug.c (debug_qf_map_matching_symbols) | |
1567 | (debug_qf_map_matching_symbols): Use symbol_name_match_type. | |
1568 | (debug_qf_expand_symtabs_matching): Use lookup_name_info. | |
1569 | * symfile.c (expand_symtabs_matching): Use lookup_name_info. | |
1570 | * symfile.h (quick_symbol_functions) <map_matching_symbols>: | |
1571 | Adjust to use symbol_name_match_type. | |
1572 | <expand_symtabs_matching>: Adjust to use lookup_name_info. | |
1573 | (expand_symtabs_matching): Adjust to use lookup_name_info. | |
1574 | * symmisc.c (maintenance_expand_symtabs): Use | |
1575 | lookup_name_info::match_any (). | |
1576 | * symtab.c (symbol_matches_search_name): New. | |
1577 | (eq_symbol_entry): Adjust to use lookup_name_info and the | |
1578 | language's matcher. | |
1579 | (demangle_for_lookup_info::demangle_for_lookup_info): New. | |
1580 | (lookup_name_info::match_any): New. | |
1581 | (iterate_over_symbols, search_symbols): Use lookup_name_info. | |
1582 | (compare_symbol_name): Add language, lookup_name_info and | |
1583 | completion_match_result parameters, and use them. | |
1584 | (completion_list_add_name): Make extern. Add language and | |
1585 | lookup_name_info parameters. Use them. | |
1586 | (completion_list_add_symbol, completion_list_add_msymbol) | |
1587 | (completion_list_objc_symbol): Add lookup_name_info parameters and | |
1588 | adjust. Pass down language. | |
1589 | (completion_list_add_fields): Add lookup_name_info parameters and | |
1590 | adjust. Pass down language. | |
1591 | (add_symtab_completions): Add lookup_name_info parameters and | |
1592 | adjust. | |
1593 | (default_collect_symbol_completion_matches_break_on): Add | |
1594 | name_match_type parameter, and use it. Use lookup_name_info. | |
1595 | (default_collect_symbol_completion_matches) | |
1596 | (collect_symbol_completion_matches): Add name_match_type | |
1597 | parameter, and pass it down. | |
1598 | (collect_symbol_completion_matches_type): Adjust. | |
1599 | (collect_file_symbol_completion_matches): Add name_match_type | |
1600 | parameter, and use lookup_name_info. | |
1601 | * symtab.h: Include <string> and "common/gdb_optional.h". | |
1602 | (enum class symbol_name_match_type): New. | |
1603 | (class ada_lookup_name_info): New. | |
1604 | (struct demangle_for_lookup_info): New. | |
1605 | (class lookup_name_info): New. | |
1606 | (symbol_name_matcher_ftype): New. | |
1607 | (SYMBOL_MATCHES_SEARCH_NAME): Use symbol_matches_search_name. | |
1608 | (symbol_matches_search_name): Declare. | |
1609 | (MSYMBOL_MATCHES_SEARCH_NAME): Delete. | |
1610 | (default_collect_symbol_completion_matches) | |
1611 | (collect_symbol_completion_matches) | |
1612 | (collect_file_symbol_completion_matches): Add name_match_type | |
1613 | parameter. | |
1614 | (iterate_over_symbols): Use lookup_name_info. | |
1615 | (completion_list_add_name): Declare. | |
1616 | * utils.c (enum class strncmp_iw_mode): Moved to utils.h. | |
1617 | (strncmp_iw_with_mode): Now extern. | |
1618 | * utils.h (enum class strncmp_iw_mode): Moved from utils.c. | |
1619 | (strncmp_iw_with_mode): Declare. | |
1620 | ||
5ffa0793 PA |
1621 | 2017-11-08 Keith Seitz <keiths@redhat.com> |
1622 | Pedro Alves <palves@redhat.com> | |
1623 | ||
1624 | * ada-lang.c (ada_language_defn): Install | |
1625 | default_search_name_hash. | |
1626 | * buildsym.c (struct buildsym_compunit): <language>: New field. | |
1627 | (finish_block_internal): Pass language when creating dictionaries. | |
1628 | (start_buildsym_compunit, start_symtab): New language parameters. | |
1629 | Use them. | |
1630 | (restart_symtab): Pass down compilation unit's language. | |
1631 | * buildsym.h (enum language): Forward declare. | |
1632 | (start_symtab): New 'language' parameter. | |
1633 | * c-lang.c (c_language_defn, cplus_language_defn) | |
1634 | (asm_language_defn, minimal_language_defn): Install | |
1635 | default_search_name_hash. | |
1636 | * coffread.c (coff_start_symtab): Adjust. | |
1637 | * d-lang.c (d_language_defn): Install default_search_name_hash. | |
1638 | * dbxread.c (struct symloc): Add 'pst_language' field. | |
1639 | (PST_LANGUAGE): Define. | |
1640 | (start_psymtab, read_ofile_symtab): Use it. | |
1641 | (process_one_symbol): New 'language' parameter. Pass it down. | |
1642 | * dictionary.c (struct dictionary) <language>: New field. | |
1643 | (DICT_LANGUAGE): Define. | |
1644 | (dict_create_hashed, dict_create_hashed_expandable) | |
1645 | (dict_create_linear, dict_create_linear_expandable): New parameter | |
1646 | 'language'. Set the dictionary's language. | |
1647 | (iter_match_first_hashed): Adjust to rename. | |
1648 | (insert_symbol_hashed): Assert we don't see mismatching | |
1649 | languages. Adjust to rename. | |
1650 | (dict_hash): Rename to ... | |
1651 | (default_search_name_hash): ... this and make extern. | |
1652 | * dictionary.h (struct language_defn): Forward declare. | |
1653 | (dict_create_hashed): New parameter 'language'. | |
1654 | * dwarf2read.c (dwarf2_start_symtab): Pass down language. | |
1655 | * f-lang.c (f_language_defn): Install default_search_name_hash. | |
1656 | * go-lang.c (go_language_defn): Install default_search_name_hash. | |
1657 | * jit.c (finalize_symtab): Pass compunit's language to dictionary | |
1658 | creation. | |
1659 | * language.c (unknown_language_defn, auto_language_defn): | |
1660 | * language.h (language_defn::la_search_name_hash): New field. | |
1661 | (default_search_name_hash): Declare. | |
1662 | * m2-lang.c (m2_language_defn): Install default_search_name_hash. | |
1663 | * mdebugread.c (new_block): New parameter 'language'. | |
1664 | * mdebugread.c (parse_symbol): Pass symbol language to block | |
1665 | allocation. | |
1666 | (psymtab_to_symtab_1): Pass down language. | |
1667 | (new_symtab): Pass compunit's language to block allocation. | |
1668 | * objc-lang.c (objc_language_defn): Install | |
1669 | default_search_name_hash. | |
1670 | * opencl-lang.c (opencl_language_defn): | |
1671 | * p-lang.c (pascal_language_defn): Install | |
1672 | default_search_name_hash. | |
1673 | * rust-lang.c (rust_language_defn): Install | |
1674 | default_search_name_hash. | |
1675 | * stabsread.h (enum language): Forward declare. | |
1676 | (process_one_symbol): Add 'language' parameter. | |
1677 | * symtab.c (search_name_hash): New function. | |
1678 | * symtab.h (search_name_hash): Declare. | |
1679 | * xcoffread.c (read_xcoff_symtab): Pass language to start_symtab. | |
1680 | ||
2a1dde5d PA |
1681 | 2017-11-08 Pedro Alves <palves@redhat.com> |
1682 | ||
1683 | * cp-name-parser.y (main): Don't initialize extra_chars. | |
1684 | ||
95a6b0a1 TT |
1685 | 2017-11-07 Tom Tromey <tom@tromey.com> |
1686 | ||
1687 | * event-top.h (command_handler): Constify. | |
1688 | * record-full.c (cmd_record_full_start): Update. | |
1689 | * thread.c (thread_apply_all_command): Update. | |
1690 | * printcmd.c (eval_command): Update. | |
1691 | * mi/mi-main.c (mi_execute_cli_command): Update. | |
1692 | (mi_execute_async_cli_command): Update. | |
1693 | * tui/tui-stack.c (tui_update_command): Update. | |
1694 | * cli/cli-interp.c (safe_execute_command): Constify. | |
1695 | * record.c (record_start): Update. | |
1696 | (record_start, record_stop, cmd_record_start): Update. | |
1697 | * record-btrace.c (cmd_record_btrace_bts_start): Update. | |
1698 | (cmd_record_btrace_pt_start): Update. | |
1699 | (cmd_record_btrace_start): Update. | |
1700 | (cmd_record_btrace_start): Update. | |
1701 | * reverse.c (exec_reverse_once): Update. | |
1702 | * python/python.c (execute_gdb_command): Don't copy the command. | |
1703 | * event-top.c (command_line_handler): Update. | |
1704 | (command_handler): Constify. | |
1705 | * defs.h (deprecated_call_command_hook): Constify. | |
1706 | * cli/cli-script.h (execute_user_command): Constify. | |
1707 | * cli/cli-script.c (execute_user_command): Constify. | |
1708 | (execute_cmd_pre_hook, execute_cmd_post_hook): Constify. | |
1709 | (enum command_control_type): Update. | |
1710 | * main.c (catch_command_errors): Remove non-const overload. | |
1711 | (catch_command_errors_ftype): Remove. | |
1712 | * python/py-cmd.c (cmdpy_function): Constify. | |
1713 | * guile/scm-cmd.c (cmdscm_function): Constify. | |
1714 | * cli/cli-dump.c (call_dump_func): Constify. | |
1715 | * cli/cli-decode.c (do_const_cfunc): Constify. | |
1716 | (do_sfunc): Constify. | |
1717 | (cmd_func): Constify. | |
1718 | * gdbcmd.h (execute_command, execute_command_to_string): Constify. | |
1719 | * top.h (execute_command): Constify. | |
1720 | * top.c (execute_command): Constify. | |
1721 | (execute_command_to_string): Constify. | |
1722 | (deprecated_call_command_hook): Constify. | |
1723 | * command.h (cmd_func): Constify. | |
1724 | * cli/cli-decode.h (struct cmd_list_element) <func>: Constify. | |
1725 | ||
eb4c3f4a TT |
1726 | 2017-11-07 Tom Tromey <tom@tromey.com> |
1727 | ||
1728 | * ada-lang.c (catch_ada_exception_command): Constify. | |
1729 | (catch_assert_command): Constify. | |
1730 | * break-catch-throw.c (catch_catch_command, catch_throw_command) | |
1731 | (catch_rethrow_command): Constify. | |
1732 | (catch_exception_command_1): Constify. | |
1733 | * breakpoint.h (add_catch_command): Constify. | |
1734 | * break-catch-syscall.c (catch_syscall_command_1): Constify. | |
1735 | (catch_syscall_split_args): Constify. | |
1736 | * break-catch-sig.c (catch_signal_command): Constify. | |
1737 | (catch_signal_split_args): Constify. | |
1738 | * cli/cli-decode.h (struct cmd_list_element) <function>: Use | |
1739 | cmd_const_sfunc_ftype. | |
1740 | * cli/cli-decode.c (add_setshow_cmd_full): Constify. | |
1741 | (add_setshow_enum_cmd, add_setshow_auto_boolean_cmd) | |
1742 | (add_setshow_boolean_cmd, add_setshow_filename_cmd) | |
1743 | (add_setshow_string_cmd, struct cmd_list_element) | |
1744 | (add_setshow_optional_filename_cmd, add_setshow_integer_cmd) | |
1745 | (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd) | |
1746 | (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd): | |
1747 | Constify. | |
1748 | (set_cmd_sfunc): Constify. | |
1749 | (empty_sfunc): Constify. | |
1750 | * command.h (add_setshow_enum_cmd, add_setshow_auto_boolean_cmd) | |
1751 | (add_setshow_boolean_cmd, add_setshow_filename_cmd) | |
1752 | (add_setshow_string_cmd, add_setshow_string_noescape_cmd) | |
1753 | (add_setshow_optional_filename_cmd, add_setshow_integer_cmd) | |
1754 | (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd) | |
1755 | (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd): | |
1756 | Constify. | |
1757 | (set_cmd_sfunc): Constify. | |
1758 | (cmd_sfunc_ftype): Remove. | |
1759 | * compile/compile.c (set_compile_args): Constify. | |
1760 | * infrun.c (set_disable_randomization): Constify. | |
1761 | * infcmd.c (set_args_command, set_cwd_command): Constify. | |
1762 | * breakpoint.c (set_condition_evaluation_mode): Constify. | |
1763 | (add_catch_command): Constify. | |
1764 | (catch_fork_command_1, catch_exec_command_1) | |
1765 | (catch_load_command_1, catch_unload_command_1): Constify. | |
1766 | (catch_load_or_unload): Constify. | |
1767 | * guile/scm-param.c (pascm_set_func): Constify. | |
1768 | (add_setshow_generic): Constify. | |
1769 | * python/py-param.c (get_set_value): Constify. | |
1770 | * top.h (set_verbose): Constify. | |
1771 | * tui/tui-win.c (tui_set_var_cmd): Constify. | |
1772 | * mi/mi-main.c (set_mi_async_command): Constify. | |
1773 | * cli/cli-logging.c (set_logging_overwrite) | |
1774 | (set_logging_redirect): Constify. | |
1775 | * value.c (set_max_value_size): Constify. | |
1776 | * valprint.c (set_input_radix, set_output_radix): Constify. | |
1777 | * utils.c (set_width_command, set_height_command): Constify. | |
1778 | * typeprint.c (set_print_type_methods, set_print_type_typedefs): Constify. | |
1779 | * tracepoint.c (set_disconnected_tracing) | |
1780 | (set_circular_trace_buffer, set_trace_buffer_size) | |
1781 | (set_trace_user, set_trace_notes, set_trace_stop_notes): Constify. | |
1782 | * top.c (set_history_size_command, set_verbose, set_editing) | |
1783 | (set_gdb_datadir, set_history_filename): Constify. | |
1784 | * target.c (set_targetdebug, maint_set_target_async_command) | |
1785 | (maint_set_target_non_stop_command, set_target_permissions) | |
1786 | (set_write_memory_permission): Constify. | |
1787 | (open_target): Constify. | |
1788 | * target-descriptions.c (set_tdesc_filename_cmd): Constify. | |
1789 | * target-dcache.c (set_stack_cache, set_code_cache): Constify. | |
1790 | * symtab.c (set_symbol_cache_size_handler): Constify. | |
1791 | * symfile.c (set_ext_lang_command): Constify. | |
1792 | * symfile-debug.c (set_debug_symfile): Constify. | |
1793 | * source.c (set_directories_command): Constify. | |
1794 | * solib.c (reload_shared_libraries, gdb_sysroot_changed): Constify. | |
1795 | * serial.c (set_parity): Constify. | |
1796 | * rs6000-tdep.c (powerpc_set_soft_float, powerpc_set_vector_abi): Constify. | |
1797 | * remote.c (set_remote_exec_file, set_remotebreak) | |
1798 | (set_remote_protocol_Z_packet_cmd, set_range_stepping): Constify. | |
1799 | * record.c (set_record_insn_history_size) | |
1800 | (set_record_call_history_size): Constify. | |
1801 | * record-full.c (set_record_full_insn_max_num): Constify. | |
1802 | * proc-api.c (set_procfs_trace_cmd, set_procfs_file_cmd): Constify. | |
1803 | * osabi.c (set_osabi): Constify. | |
1804 | * mips-tdep.c (set_mips64_transfers_32bit_regs) | |
1805 | (reinit_frame_cache_sfunc, mips_abi_update): Constify. | |
1806 | * maint.c (maintenance_set_profile_cmd): Constify. | |
1807 | * linux-thread-db.c (set_libthread_db_search_path): Constify. | |
1808 | * language.c (set_language_command, set_range_command) | |
1809 | (set_case_command): Constify. | |
1810 | * infrun.c (set_non_stop, set_observer_mode) | |
1811 | (set_stop_on_solib_events, set_schedlock_func) | |
1812 | (set_exec_direction_func): Constify. | |
1813 | * infcmd.c (set_inferior_tty_command): Constify. | |
1814 | * disasm.c (set_disassembler_options_sfunc): Constify. | |
1815 | * demangle.c (set_demangling_command): Constify. | |
1816 | * dcache.c (set_dcache_size, set_dcache_line_size): Constify. | |
1817 | * cris-tdep.c (set_cris_version, set_cris_mode) | |
1818 | (set_cris_dwarf2_cfi): Constify. | |
1819 | * corefile.c (set_gnutarget_command): Constify. | |
1820 | * charset.c (set_host_charset_sfunc, set_target_charset_sfunc) | |
1821 | (set_target_wide_charset_sfunc): Constify. | |
1822 | * breakpoint.c (update_dprintf_commands): Constify. | |
1823 | * auto-load.c (set_auto_load_dir, set_auto_load_safe_path): Constify. | |
1824 | * arm-tdep.c (set_fp_model_sfunc, arm_set_abi) | |
1825 | (set_disassembly_style_sfunc): Constify. | |
1826 | * arch-utils.c (set_endian, set_architecture): Constify. | |
1827 | * alpha-tdep.c (reinit_frame_cache_sfunc): Constify. | |
1828 | * agent.c (set_can_use_agent): Constify. | |
1829 | ||
5fed81ff TT |
1830 | 2017-11-07 Tom Tromey <tom@tromey.com> |
1831 | ||
1832 | * go32-nat.c (go32_sysinfo, go32_sldt, go32_sgdt, go32_sidt) | |
1833 | (go32_pde, go32_pte, go32_pte_for_address): Constify. | |
1834 | * gnu-nat.c (_parse_bool_arg, show_thread_default_pause_cmd) | |
1835 | (set_thread_default_pause_cmd, set_thread_default_run_cmd) | |
1836 | (show_thread_default_run_cmd, set_thread_default_detach_sc_cmd) | |
1837 | (parse_int_arg, show_thread_default_detach_sc_cmd) | |
1838 | (set_signals_cmd, show_signals_cmd, set_sig_thread_cmd) | |
1839 | (show_sig_thread_cmd, set_stopped_cmd, show_stopped_cmd) | |
1840 | (set_exceptions_cmd, show_exceptions_cmd, set_task_pause_cmd) | |
1841 | (show_task_pause_cmd, set_task_detach_sc_cmd) | |
1842 | (show_task_detach_sc_cmd, set_task_exc_port_cmd) | |
1843 | (set_noninvasive_cmd, set_thread_pause_cmd) | |
1844 | (show_thread_pause_cmd, set_thread_run_cmd, show_thread_run_cmd) | |
1845 | (set_thread_detach_sc_cmd, show_thread_detach_sc_cmd) | |
1846 | (set_thread_exc_port_cmd, thread_takeover_sc_cmd): Constify. | |
1847 | * windows-nat.c (display_selectors): Constify. | |
1848 | * cli/cli-decode.h (struct cmd_list_element) <function>: Remove | |
1849 | non-const "cfunc". | |
1850 | * cli/cli-decode.c (set_cmd_cfunc): Remove non-const overload. | |
1851 | (cmd_cfunc_eq): Likewise. | |
1852 | (struct cmd_list_element): Likewise. | |
1853 | (do_cfunc): Remove. | |
1854 | (cli_user_command_p): Update. | |
1855 | * command.h (add_cmd): Remove non-const overload. | |
1856 | (cmd_cfunc_ftype): Remove typedef. | |
1857 | (cmd_cfunc_eq): Remove non-const overload. | |
1858 | * value.c (show_values): Constify. | |
1859 | * thread.c (thread_apply_all_command): Constify. | |
1860 | * symfile.c (load_command): Constify. | |
1861 | * source.c (directory_command): Constify. | |
1862 | * maint.c (maintenance_internal_error) | |
1863 | (maintenance_demangler_warning, maintenance_space_display) | |
1864 | (maintenance_print_architecture, maintenance_translate_address) | |
1865 | (maintenance_info_selftests, maintenance_internal_warning): | |
1866 | Constify. | |
1867 | * breakpoint.c (disable_trace_command, enable_trace_command): | |
1868 | Constify. | |
1869 | * auto-load.c (info_auto_load_local_gdbinit, add_auto_load_dir): | |
1870 | Constify. | |
1871 | (add_auto_load_safe_path): Constify. | |
1872 | * guile/scm-auto-load.c (info_auto_load_guile_scripts): Constify. | |
1873 | * top.h (show_commands): Constify. | |
1874 | * linux-thread-db.c (info_auto_load_libthread_db): Constify. | |
1875 | * sparc64-tdep.c (adi_examine_command): Constify. | |
1876 | (adi_assign_command): Constify. | |
1877 | ||
1d12d88f TT |
1878 | 2017-11-07 Tom Tromey <tom@tromey.com> |
1879 | ||
1880 | * frame.h (info_locals_command, info_args_command): Constify. | |
1881 | * auto-load.h (auto_load_info_scripts): Constify. | |
1882 | * inferior.h (registers_info): Constify. | |
1883 | * copying.c: Rebuild. | |
1884 | * copying.awk: Constify generated commands. | |
1885 | * auto-load.c (auto_load_info_scripts) | |
1886 | (info_auto_load_gdb_scripts): Constify. | |
1887 | * cli/cli-decode.c (struct cmd_list_element): Take a | |
1888 | cmd_const_cfunc_ftype. | |
1889 | * command.h (add_info): Take a cmd_const_cfunc_ftype. | |
1890 | * tui/tui-win.c (tui_all_windows_info): Constify. | |
1891 | * python/py-auto-load.c (info_auto_load_python_scripts): | |
1892 | Constify. | |
1893 | * cli/cli-cmds.c (show_command): Remove non-const overload. | |
1894 | * tracepoint.c (info_tvariables_command, info_scope_command): | |
1895 | Constify. | |
1896 | (info_static_tracepoint_markers_command): Constify. | |
1897 | * thread.c (info_threads_command): Constify. | |
1898 | (print_thread_info_1): Constify. | |
1899 | * target.c (info_target_command): Constify. | |
1900 | * symtab.c (info_sources_command, info_functions_command) | |
1901 | (info_types_command): Constify. | |
1902 | (info_variables_command): Remove non-const overload. | |
1903 | * symfile.c (info_ext_lang_command): Constify. | |
1904 | * stack.c (info_frame_command, info_locals_command) | |
1905 | (info_args_command): Constify. | |
1906 | (backtrace_command): Remove non-const overload. | |
1907 | * source.c (info_source_command, info_line_command): Constify. | |
1908 | * solib.c (info_sharedlibrary_command): Constify. | |
1909 | * skip.c (info_skip_command): Constify. | |
1910 | * ser-go32.c (info_serial_command): Constify. | |
1911 | * reverse.c (info_bookmarks_command): Constify. | |
1912 | * printcmd.c (info_symbol_command, info_address_command) | |
1913 | (info_display_command): Constify. | |
1914 | * osdata.c (info_osdata_command): Constify. | |
1915 | * objc-lang.c (info_selectors_command, info_classes_command): | |
1916 | Constify. | |
1917 | * nto-procfs.c (procfs_pidlist, procfs_meminfo): Constify. | |
1918 | * memattr.c (info_mem_command): Constify. | |
1919 | * macrocmd.c (info_macro_command, info_macros_command): Constify. | |
1920 | * linux-fork.c (info_checkpoints_command): Constify. | |
1921 | * infrun.c (info_signals_command): Constify. | |
1922 | * inflow.c (info_terminal_command): Constify. | |
1923 | * inferior.c (info_inferiors_command): Constify. | |
1924 | (print_inferior): Constify. | |
1925 | * infcmd.c (info_program_command, info_all_registers_command) | |
1926 | (info_registers_command, info_vector_command) | |
1927 | (info_float_command): Constify. | |
1928 | (registers_info): Constify. | |
1929 | * gnu-nat.c (info_send_rights_cmd, info_recv_rights_cmd) | |
1930 | (info_port_sets_cmd, info_dead_names_cmd, info_port_rights_cmd): | |
1931 | Constify. | |
1932 | * f-valprint.c (info_common_command): Constify. | |
1933 | * dcache.c (info_dcache_command): Constify. | |
1934 | (dcache_info_1): Constify. | |
1935 | * darwin-nat-info.c (info_mach_tasks_command) | |
1936 | (info_mach_task_command, info_mach_ports_command) | |
1937 | (info_mach_port_command, info_mach_threads_command) | |
1938 | (info_mach_thread_command, info_mach_regions_command) | |
1939 | (info_mach_regions_recurse_command, info_mach_region_command) | |
1940 | (info_mach_exceptions_command): Constify. | |
1941 | (get_task_from_args): Constify. | |
1942 | * cp-support.c (info_vtbl_command): Constify. | |
1943 | * breakpoint.c (info_watchpoints_command) | |
1944 | (info_tracepoints_command): Constify. | |
1945 | (info_breakpoints_command): Remove non-const overload. | |
1946 | * avr-tdep.c (avr_io_reg_read_command): Constify. | |
1947 | * auxv.c (info_auxv_command): Constify. | |
1948 | * ada-tasks.c (info_tasks_command): Constify. | |
1949 | (info_task): Constify. | |
1950 | * ada-lang.c (info_exceptions_command): Constify. | |
1951 | ||
0b39b52e TT |
1952 | 2017-11-07 Tom Tromey <tom@tromey.com> |
1953 | ||
1954 | * solib.h (no_shared_libraries): Constify. | |
1955 | * frame.h (return_command): Constify. | |
1956 | * cli/cli-cmds.h (quit_command): Constify. | |
1957 | * top.h (quit_command, execute_command): Constify. | |
1958 | * target.h (flash_erase_command): Constify. | |
1959 | * inferior.h (set_inferior_args, attach_command): Constify. | |
1960 | * tracepoint.h (start_tracing, stop_tracing): Constify. | |
1961 | * breakpoint.h (break_command, tbreak_command) | |
1962 | (hbreak_command_wrapper, thbreak_command_wrapper) | |
1963 | (rbreak_command_wrapper, watch_command_wrapper) | |
1964 | (awatch_command_wrapper, rwatch_command_wrapper) | |
1965 | (get_tracepoint_by_number): Constify. | |
1966 | * symtab.c (info_variables_command, rbreak_command) | |
1967 | (symtab_symbol_info): Constify. | |
1968 | (info_variables_command): Add non-const overload. | |
1969 | * top.c (dont_repeat_command): Constify. | |
1970 | * breakpoint.c (ignore_command, commands_command) | |
1971 | (condition_command, tbreak_command, hbreak_command) | |
1972 | (thbreak_command, clear_command, break_command) | |
1973 | (info_breakpoints_command, watch_command, rwatch_command) | |
1974 | (awatch_command, trace_command, ftrace_command, strace_command) | |
1975 | (trace_pass_command, break_range_command, dprintf_command) | |
1976 | (agent_printf_command, get_tracepoint_by_number) | |
1977 | (watch_maybe_just_location, trace_pass_command): Constify. | |
1978 | (info_breakpoints_command): Add non-const overload. | |
1979 | * tracefile.c (tsave_command): Constify. | |
1980 | * infcmd.c (attach_command, disconnect_command, signal_command) | |
1981 | (queue_signal_command, stepi_command, nexti_command) | |
1982 | (finish_command, next_command, step_command, until_command) | |
1983 | (advance_command, jump_command, continue_command, run_command) | |
1984 | (start_command, starti_command, interrupt_command) | |
1985 | (run_command_1, set_inferior_args, step_1): Constify. | |
1986 | * inferior.c (add_inferior_command, remove_inferior_command) | |
1987 | (clone_inferior_command): Constify. | |
1988 | * linux-fork.c (checkpoint_command, restart_command): Constify. | |
1989 | * windows-nat.c (signal_event_command): Constify. | |
1990 | * guile/guile.c (guile_repl_command, guile_command): Constify. | |
1991 | * printcmd.c (x_command, display_command, printf_command) | |
1992 | (output_command, set_command, call_command, print_command) | |
1993 | (eval_command): Constify. | |
1994 | (non_const_set_command): Remove. | |
1995 | (_initialize_printcmd): Update. | |
1996 | * source.c (forward_search_command, reverse_search_command): | |
1997 | Constify. | |
1998 | * jit.c (jit_reader_load_command, jit_reader_unload_command): | |
1999 | Constify. | |
2000 | * infrun.c (handle_command): Constify. | |
2001 | * memattr.c (mem_command): Constify. | |
2002 | * stack.c (return_command, up_command, up_silently_command) | |
2003 | (down_command, down_silently_command, frame_command) | |
2004 | (backtrace_command, func_command, backtrace_command_1): Constify. | |
2005 | (backtrace_command): Add non-const overload. | |
2006 | * remote-sim.c (simulator_command): Constify. | |
2007 | * exec.c (set_section_command): Constify. | |
2008 | * tracepoint.c (tdump_command, trace_variable_command) | |
2009 | (tstatus_command, tstop_command, tstart_command) | |
2010 | (end_actions_pseudocommand, while_stepping_pseudocommand) | |
2011 | (collect_pseudocommand, teval_pseudocommand, actions_command) | |
2012 | (start_tracing, stop_tracing): Constify. | |
2013 | * value.c (init_if_undefined_command): Constify. | |
2014 | * tui/tui-stack.c (tui_update_command): Constify. | |
2015 | * tui/tui-win.c (tui_refresh_all_command) | |
2016 | (tui_set_tab_width_command, tui_set_win_height_command) | |
2017 | (tui_set_focus_command, tui_scroll_forward_command) | |
2018 | (tui_scroll_backward_command, tui_scroll_left_command) | |
2019 | (tui_scroll_right_command, parse_scrolling_args, tui_set_focus) | |
2020 | (tui_set_win_height): Constify. | |
2021 | * tui/tui-layout.c (tui_layout_command): Constify. | |
2022 | * procfs.c (proc_trace_syscalls, proc_trace_sysentry_cmd) | |
2023 | (proc_trace_sysexit_cmd, proc_untrace_sysentry_cmd) | |
2024 | (proc_untrace_sysexit_cmd): Constify. | |
2025 | * remote.c (threadlist_test_cmd, threadinfo_test_cmd) | |
2026 | (threadset_test_cmd, threadlist_update_test_cmd) | |
2027 | (threadalive_test): Constify. | |
2028 | * objc-lang.c (print_object_command): Constify. | |
2029 | * command.h (add_com): Constify. | |
2030 | * cli/cli-dump.c (restore_command): Constify. | |
2031 | * cli/cli-cmds.c (pwd_command, echo_command, quit_command) | |
2032 | (help_command, complete_command, shell_command, edit_command) | |
2033 | (list_command, disassemble_command, make_command) | |
2034 | (apropos_command, alias_command): Constify. | |
2035 | * cli/cli-script.c (document_command, define_command) | |
2036 | (while_command, if_command, validate_comname): Constify. | |
2037 | * cli/cli-decode.c (struct cmd_list_element): Change type of | |
2038 | "fun". | |
2039 | * target.c (do_monitor_command, flash_erase_command): Constify. | |
2040 | * regcache.c (reg_flush_command): Constify. | |
2041 | * reverse.c (reverse_step, reverse_next, reverse_stepi) | |
2042 | (reverse_nexti, reverse_continue, reverse_finish) | |
2043 | (save_bookmark_command, goto_bookmark_command) | |
2044 | (exec_reverse_once): Constify. | |
2045 | * python/python.c (python_interactive_command, python_command): | |
2046 | Constify. | |
2047 | * typeprint.c (ptype_command, whatis_command, whatis_exp): | |
2048 | Constify. | |
2049 | * solib.c (sharedlibrary_command, no_shared_libraries): Constify. | |
2050 | * gcore.c (gcore_command): Constify. | |
2051 | ||
85c4be7c TT |
2052 | 2017-11-07 Tom Tromey <tom@tromey.com> |
2053 | ||
2054 | * printcmd.c (x_command): Call set_repeat_arguments. | |
2055 | * cli/cli-cmds.c (list_command): Call set_repeat_arguments. | |
2056 | * top.c (repeat_arguments): New global. | |
2057 | (set_repeat_arguments): New function. | |
2058 | (execute_command): Handle repeat_arguments. | |
2059 | (show_commands): Calls set_repeat_arguments. | |
2060 | * command.h (set_repeat_arguments): Declare. | |
2061 | ||
022643b4 TT |
2062 | 2017-11-07 Tom Tromey <tom@tromey.com> |
2063 | ||
2064 | * stack.c (backtrace_command): Use std::string. | |
2065 | (backtrace_command_1): Make "count_exp" const. | |
2066 | ||
5614fb77 TT |
2067 | 2017-11-07 Tom Tromey <tom@tromey.com> |
2068 | ||
2069 | * source.c (directory_switch, mod_path, add_path): Constify. | |
2070 | * defs.h (add_path, mod_path, directory_switch): Constify. | |
2071 | * mi/mi-cmd-env.c (env_mod_path): Constify. | |
2072 | ||
6be9a197 TT |
2073 | 2017-11-07 Tom Tromey <tom@tromey.com> |
2074 | ||
2075 | * infcmd.c (strip_bg_char): Return gdb::unique_xmalloc_ptr. | |
2076 | (run_command_1, continue_command, step_1, jump_command) | |
2077 | (signal_command, until_command, advance_command, finish_command) | |
2078 | (attach_command): Update. | |
2079 | ||
c2252c0d TT |
2080 | 2017-11-07 Tom Tromey <tom@tromey.com> |
2081 | ||
2082 | * command.h (set_cmd_cfunc): Don't declare. | |
2083 | * cli/cli-decode.c (set_cmd_cfunc): Now static. | |
2084 | ||
1ee870c5 TT |
2085 | 2017-11-07 Tom Tromey <tom@tromey.com> |
2086 | ||
2087 | * stack.c (select_frame_command): Constify. | |
2088 | * cli/cli-decode.c (add_com_suppress_notification): Constify. | |
2089 | * command.h (add_com_suppress_notification): Constify. | |
2090 | ||
ee7ddd71 TT |
2091 | 2017-11-07 Tom Tromey <tom@tromey.com> |
2092 | ||
2093 | * breakpoint.c (stop_command): Constify. | |
2094 | * cli/cli-decode.c (struct cmd_list_element): Constify. | |
2095 | * command.h (add_abbrev_prefix_cmd): Constify. | |
2096 | ||
95e95a6d PA |
2097 | 2017-11-07 Pedro Alves <palves@redhat.com> |
2098 | ||
2099 | * breakpoint.c (extract_bp_kind): New enum. | |
2100 | (extract_bp_num, extract_bp_or_bp_range): New functions, partially | |
2101 | factored out from ... | |
2102 | (extract_bp_number_and_location): ... here. | |
2103 | * cli/cli-utils.c (get_number_trailer): Handle '-$variable'. | |
2104 | ||
cc638e86 PA |
2105 | 2017-11-07 Pedro Alves <palves@redhat.com> |
2106 | ||
2107 | * breakpoint.c (extract_bp_number_and_location): Change return | |
2108 | type to void. Throw error instead of warning. | |
2109 | (enable_disable_command): Adjust. | |
2110 | ||
d0fe4701 XR |
2111 | 2017-11-07 Xavier Roirand <roirand@adacore.com> |
2112 | Pedro Alves <palves@redhat.com> | |
2113 | ||
2114 | * breakpoint.c (map_breakpoint_number_range): New, factored out | |
2115 | from ... | |
2116 | (map_breakpoint_numbers): ... here. | |
2117 | (find_location_by_number): Change parameters from string to | |
2118 | breakpoint number and location. | |
2119 | (extract_bp_number_and_location): New function. | |
2120 | (enable_disable_bp_num_loc) | |
2121 | (enable_disable_breakpoint_location_range) | |
2122 | (enable_disable_command): New functions, factored out ... | |
2123 | (enable_command, disable_command): ... these functions, and | |
2124 | adjusted to support ranges. | |
2125 | * NEWS: Document enable/disable breakpoint location range feature. | |
2126 | ||
635dc5b2 LM |
2127 | 2017-11-06 Luis Machado <luis.machado@linaro.org> |
2128 | ||
2129 | * MAINTAINERS (Write After Approval): Update my e-mail address. | |
2130 | ||
556e5da5 PA |
2131 | 2017-11-06 Pedro Alves <palves@redhat.com> |
2132 | ||
2133 | * gnu-nat.c (gnu_terminal_init): Delete. | |
2134 | (gnu_target): Don't install gnu_terminal_init. | |
2135 | * inflow.c (child_terminal_init_with_pgrp): Delete, merged with ... | |
2136 | (child_terminal_init): ... this function. | |
2137 | ||
d1928160 PA |
2138 | 2017-11-06 Pedro Alves <palves@redhat.com> |
2139 | ||
2140 | * common/common.m4 (GDB_AC_COMMON): No longer check termio.h nor | |
2141 | sgtty.h. | |
2142 | * config.in, configure: Regenerate. | |
2143 | ||
6aa899ce PA |
2144 | 2017-11-06 Pedro Alves <palves@redhat.com> |
2145 | ||
2146 | * event-top.c: Check SIGTSTP instead of STOP_SIGNAL thoughout. | |
2147 | (async_init_signals): Adjust. | |
2148 | (handle_stop_sig): Rename to ... | |
2149 | (handle_sigtstp): ... this. | |
2150 | (async_stop_sig): Rename to ... | |
2151 | (async_sigtstp_handler): ... this, and delete STOP_SIGNAL != | |
2152 | SIGTSTP path. | |
2153 | * event-top.h: Move signal.h include to the top. Check SIGTSTP | |
2154 | instead of STOP_SIGNAL thoughout. | |
2155 | (handle_stop_sig): Rename to ... | |
2156 | (handle_sigtstp): ... this. | |
2157 | * top.c (command_line_input): Replace STOP_SIGNAL -> SIGTSTP. | |
2158 | ||
a94799ac PA |
2159 | 2017-11-06 Pedro Alves <palves@redhat.com> |
2160 | ||
2161 | * inflow.c (child_terminal_inferior, child_terminal_ours_1): No | |
2162 | longer set flags twice in row. | |
2163 | ||
726e1356 PA |
2164 | 2017-11-06 Pedro Alves <palves@redhat.com> |
2165 | ||
2166 | * Makefile.in (SER_HARDWIRE): Update comment. | |
2167 | (HFILES_NO_SRCDIR): Remove gdb_termios.h. | |
2168 | * common/gdb_termios.h: Delete file. | |
2169 | * common/job-control.c: Include termios.h and unistd.h instead of | |
2170 | gdb_termios.h. | |
2171 | (gdb_setpgid): Remove HAVE_TERMIOS || TIOCGPGRP preprocessor | |
2172 | check. | |
2173 | (have_job_control): Check HAVE_TERMIOS_H instead of HAVE_TERMIOS. | |
2174 | Remove sgtty code. | |
2175 | * configure.ac: No longer check for termio.h and sgtty.h. | |
2176 | * configure: Regenerate. | |
2177 | * inflow.c: Include termios.h instead of gdb_termios.h. Replace | |
2178 | PROCESS_GROUP_TYPE checks with HAVE_TERMIOS_H checks throughout. | |
2179 | Replace PROCESS_GROUP_TYPE references with pid_t references | |
2180 | throughout. | |
2181 | (gdb_getpgrp): Delete. | |
2182 | (set_initial_gdb_ttystate): Use tcgetpgrp instead of gdb_getpgrp. | |
2183 | (child_terminal_inferior): Remove comment. Remove sgtty code. | |
2184 | (child_terminal_ours_1): Use tcgetpgrp directly instead of | |
2185 | gdb_getpgrp. Use serial_set_tty_state instead aof | |
2186 | serial_noflush_set_tty_state. Remove sgtty code. | |
2187 | * inflow.h: Include unistd.h instead of gdb_termios.h. Replace | |
2188 | PROCESS_GROUP_TYPE check with HAVE_TERMIOS_H check. | |
2189 | (inferior_process_group): Now returns pid_t. | |
2190 | * ser-base.c (ser_base_noflush_set_tty_state): Delete. | |
2191 | * ser-base.h (ser_base_noflush_set_tty_state): Delete. | |
2192 | * ser-event.c (serial_event_ops): Update. | |
2193 | * ser-go32.c (dos_noflush_set_tty_state): Delete. | |
2194 | (dos_ops): Update. | |
2195 | * ser-mingw.c (hardwire_ops, tty_ops, pipe_ops, tcp_ops): Update. | |
2196 | * ser-pipe.c (pipe_ops): Update. | |
2197 | * ser-tcp.c (tcp_ops): Update. | |
2198 | * ser-unix.c: Include termios.h instead of gdb_termios.h. Remove | |
2199 | HAVE_TERMIOS checks. | |
2200 | [HAVE_TERMIO] (struct hardwire_ttystate): Delete. | |
2201 | [HAVE_SGTTY] (struct hardwire_ttystate): Delete. | |
2202 | (get_tty_state, set_tty_state): Drop termio and sgtty code, and | |
2203 | assume termios. | |
2204 | (hardwire_noflush_set_tty_state): Delete. | |
2205 | (hardwire_print_tty_state, hardwire_drain_output) | |
2206 | (hardwire_flush_output, hardwire_flush_input) | |
2207 | (hardwire_send_break, hardwire_raw, hardwire_setbaudrate) | |
2208 | (hardwire_setstopbits, hardwire_setparity): Drop termio and sgtty | |
2209 | code, and assume termios. | |
2210 | (hardwire_ops): Update. | |
2211 | (_initialize_ser_hardwire): Remove HAVE_TERMIOS check. | |
2212 | * serial.c (serial_noflush_set_tty_state): Delete. | |
2213 | * serial.h (serial_noflush_set_tty_state): Delete. | |
2214 | (serial_ops::noflush_set_tty_state): Delete. | |
2215 | ||
1cfb73db UW |
2216 | 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com> |
2217 | ||
2218 | * Makefile.in (SFILES): Remove doublest.c and dfp.c. | |
2219 | (HFILES_NO_SRCDIR): Remove doublest.h and dfp.h. | |
2220 | (COMMON_OBS): Remove doublest.o and dfp.o. | |
2221 | Do not build target-float.c (instead of doublest.c) | |
2222 | with -Wformat-nonliteral. | |
2223 | ||
2224 | * doublest.c: Remove file. | |
2225 | * doublest.h: Remove file. | |
2226 | * dfp.c: Remove file. | |
2227 | * dfp.h: Remove file. | |
2228 | ||
2229 | * target-float.c: Do not include "doublest.h" and "dfp.h". | |
2230 | (DOUBLEST): Move here from doublest.h. | |
2231 | (enum float_kind): Likewise. | |
2232 | (FLOATFORMAT_CHAR_BIT): Likewise. | |
2233 | (FLOATFORMAT_LARGEST_BYTES): Likewise. | |
2234 | (floatformat_totalsize_bytes): Move here from doublest.c. Make static. | |
2235 | (floatformat_precision): Likewise. | |
2236 | (floatformat_normalize_byteorder, get_field, put_field): Likewise. | |
2237 | (floatformat_is_negative, floatformat_classify, floatformat_mantissa): | |
2238 | Likewise. | |
2239 | (host_float_format, host_double_format, host_long_double_format): | |
2240 | Likewise. | |
2241 | (floatformat_to_string, floatformat_from_string): Likewise. | |
2242 | (floatformat_to_doublest): Likewise. Also, inline the original | |
2243 | convert_floatformat_to_doublest. | |
2244 | (floatformat_from_doublest): Likewise. Also, inline the original | |
2245 | convert_floatformat_from_doublest. | |
2246 | ||
2247 | Include "dpd/decimal128.h", "dpd/decimal64.h", and "dpd/decimal32.h". | |
2248 | (MAX_DECIMAL_STRING): Move here from dfp.c. | |
2249 | (match_endianness): Likewise. | |
2250 | (set_decnumber_context, decimal_check_errors): Likewise. | |
2251 | (decimal_from_number, decimal_to_number): Likewise. | |
2252 | (decimal_to_string, decimal_from_string): Likewise. Make static. | |
2253 | (decimal_from_longest, decimal_from_ulongest): Likewise. | |
2254 | (decimal_to_longest): Likewise. | |
2255 | (decimal_binop, decimal_is_zero, decimal_compare): Likewise. | |
2256 | (decimal_convert): Likewise. | |
2257 | ||
b07e9c46 UW |
2258 | 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com> |
2259 | ||
2260 | * doublest.c: Do not include "gdbtypes.h". | |
2261 | (extract_typed_floating): Remove. | |
2262 | (store_typed_floating): Remove. | |
2263 | (convert_typed_floating): Remove. | |
2264 | * doublest.h (struct type): Remove. | |
2265 | (DOUBLEST_PRINT_FORMAT): Remove. | |
2266 | (DOUBLEST_SCAN_FORMAT): Remove. | |
2267 | (extract_typed_floating): Remove. | |
2268 | (store_typed_floating): Remove. | |
2269 | (convert_typed_floating): Remove. | |
2270 | ||
2271 | * dfp.c (decimal_from_doublest): Remove. | |
2272 | (decimal_to_doublest): Remove. | |
2273 | * dfp.h: Do not include "doublest.h". | |
2274 | (decimal_from_doublest): Remove. | |
2275 | (decimal_to_doublest): Remove. | |
2276 | ||
2277 | * value.c: Do not include "doublest.h" and "dfp.h". | |
2278 | (value_as_double): Remove. | |
2279 | (unpack_double): Remove. | |
2280 | (value_from_double): Remove. | |
2281 | (value_from_decfloat): Remove. | |
2282 | * value.h: Do not include "doublest.h". | |
2283 | (value_as_double): Remove. | |
2284 | (unpack_double): Remove. | |
2285 | (value_from_double): Remove. | |
2286 | (value_from_decfloat): Remove. | |
2287 | ||
3b2ca824 UW |
2288 | 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com> |
2289 | ||
2290 | * i386-tdep.c: Include "target-float.h". Do not include "doublest.h". | |
2291 | (i386_extract_return_value): Use target_float_convert. | |
2292 | (i386_store_return_value): Likewise. | |
2293 | * i387-tdep.c (i387_register_to_value): Use target_float_convert. | |
2294 | (i387_value_to_register): Likewise. | |
2295 | * ia64-tdep.c: Include "target-float.h". Do not include "doublest.h". | |
2296 | (ia64_register_to_value): Use target_float_convert. | |
2297 | (ia64_value_to_register): Likewise. | |
2298 | (ia64_extract_return_value): Likewise. | |
2299 | (ia64_store_return_value): Likewise. | |
2300 | (ia64_push_dummy_call): Likewise. | |
2301 | * m68k-tdep.c: Include "target-float.h". | |
2302 | (m68k_register_to_value): Use target_float_convert. | |
2303 | (m68k_value_to_register): Likewise. | |
2304 | (m68k_svr4_extract_return_value): Likewise. | |
2305 | (m68k_svr4_store_return_value): Likewise. | |
2306 | * ppc-sysv-tdep.c: Include "target-float.h". | |
2307 | (ppc_sysv_abi_push_dummy_call): Use target_float_convert. | |
2308 | (do_ppc_sysv_return_value): Likewise. | |
2309 | (ppc64_sysv_abi_push_freg): Likewise. | |
2310 | (ppc64_sysv_abi_return_value_base): Likewise. | |
2311 | * rs6000-aix-tdep.c: Include "target-float.h". | |
2312 | (rs6000_push_dummy_call): Use target_float_convert. | |
2313 | (rs6000_return_value): Likewise. | |
2314 | * rs6000-lynx178-tdep.c: Include "target-float.h". | |
2315 | (rs6000_lynx178_push_dummy_call): Use target_float_convert. | |
2316 | (rs6000_lynx178_return_value): Likewise. | |
2317 | * rs6000-tdep.c: Include "target-float.h". Do not include "doublest.h". | |
2318 | (rs6000_register_to_value): Use target_float_convert. | |
2319 | (rs6000_value_to_register): Likewise. | |
2320 | * arm-tdep.c: Include "target-float.h". Do not include "doublest.h". | |
2321 | (arm_extract_return_value): Use target_float_convert. | |
2322 | (arm_store_return_value): Likewise. | |
2323 | * sh-tdep.c: Include "target-float.h". Do not include "doublest.h". | |
2324 | (sh_register_convert_to_virtual): Use target_float_convert. | |
2325 | (sh_register_convert_to_raw): Likewise. | |
2326 | * sh64-tdep.c: Include "target-float.h". | |
2327 | (sh64_extract_return_value): Use target_float_convert. | |
2328 | (sh64_register_convert_to_virtual): Likewise. | |
2329 | (sh64_register_convert_to_raw): Likewise. Fix argument types. | |
2330 | ||
14ad9311 UW |
2331 | 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com> |
2332 | ||
2333 | * target-float.c (floatformat_to_host_double): New function. | |
2334 | (floatformat_from_host_double): Likewise. | |
2335 | (target_float_to_host_double): Likewise. | |
2336 | (target_float_from_host_double): Likewise. | |
2337 | * target-float.h (target_float_to_host_double): Add prototype. | |
2338 | (target_float_from_host_double): Likewise. | |
2339 | ||
2340 | * guile/scm-value.c: Include "target-float.h". | |
2341 | (gdbscm_value_to_real): Use target_float_to_host_double. | |
2342 | Handle integer source values via value_as_long. | |
2343 | * guile/scm-math.c: Include "target-float.h". Do not include | |
2344 | "doublest.h", "dfp.h", and "expression.h". | |
2345 | (vlscm_convert_typed_number): Use target_float_from_host_double. | |
2346 | (vlscm_convert_number): Likewise. | |
2347 | ||
2348 | * python/py-value.c (valpy_float): Use target_float_to_host_double. | |
2349 | (convert_value_from_python): Use target_float_from_host_double. | |
2350 | ||
50eff16b UW |
2351 | 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com> |
2352 | ||
2353 | * ada-lang.c (cast_to_fixed): Reimplement in target arithmetic. | |
2354 | (cast_from_fixed): Likewise. | |
2355 | (ada_scaling_type): New function. | |
2356 | (ada_delta): Return value instead of DOUBLEST. Perform target | |
2357 | arithmetic instead of host arithmetic. | |
2358 | (scaling_factor): Rename to ... | |
2359 | (ada_scaling_factor) ... this. Make non-static. Return value instead | |
2360 | of DOUBLEST. Perform target arithmetic instead of host arithmetic. | |
2361 | (ada_fixed_to_float): Remove. | |
2362 | (ada_float_to_fixed): Remove. | |
2363 | * ada-lang.h (ada_fixed_to_float): Remove. | |
2364 | (ada_float_to_fixed): Remove. | |
2365 | (ada_delta): Return value instead of DOUBLEST. | |
2366 | (ada_scaling_factor): Add prototype. | |
2367 | ||
2368 | * ada-typeprint.c: Include "target-float.h". | |
2369 | (print_fixed_point_type): Perform target arithmetic instead of | |
2370 | host arithmetic. | |
2371 | * ada-valprint.c: Include "target-float.h". | |
2372 | (ada_val_print_num): Perform target arithmetic instead of | |
2373 | host arithmetic for fixed-point types. | |
2374 | ||
66c02b9e UW |
2375 | 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com> |
2376 | ||
2377 | * target-float.c: Include <math.h>. | |
2378 | (floatformat_binop): New function. | |
2379 | (floatformat_compare): Likewise. | |
2380 | (target_float_binop): Likewise. | |
2381 | (target_float_compare): Likewise. | |
2382 | * target-float.h: Include "expression.h". | |
2383 | (target_float_binop): Add prototype. | |
2384 | (target_float_compare): Likewise. | |
2385 | ||
2386 | * valarith.c: Do not include "doublest.h" and "dfp.h". | |
2387 | Include "common/byte-vector.h". | |
2388 | (value_args_as_decimal): Remove, replace by ... | |
2389 | (value_args_as_target_float): ... this function. Handle both | |
2390 | binary and decimal target floating-point formats. | |
2391 | (scalar_binop): Handle both binary and decimal FP using | |
2392 | value_args_as_target_float and target_float_binop. | |
2393 | (value_equal): Handle both binary and decimal FP using | |
2394 | value_args_as_target_float and target_float_compare. | |
2395 | (value_less): Likewise. | |
2396 | (value_pos): Handle all scalar types as simple copy. | |
2397 | (value_neg): Handle all scalar types via BINOP_SUB from 0. | |
2398 | * dfp.c (decimal_binop): Throw error instead of internal_error | |
2399 | when called with an unsupported operation code. | |
2400 | ||
f69fdf9b UW |
2401 | 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com> |
2402 | ||
2403 | * target-float.c (target_float_to_string): New function. | |
2404 | (target_float_from_string): New function. | |
2405 | * target-float.h (target_float_to_string): Add prototype. | |
2406 | (target_float_from_string): Add prototype. | |
2407 | ||
2408 | * valprint.c: Include "target-float.h". Do not include | |
2409 | "doublest.h" and "dfp.h". | |
2410 | (print_floating): Use target_float_to_string. | |
2411 | * printcmd.c: Include "target-float.h". Do not include "dfp.h". | |
2412 | (printf_floating): Use target_float_to_string. | |
2413 | * i387-tdep.c: Include "target-float.h". Do not include "doublest.h". | |
2414 | (print_i387_value): Use target_float_to_string. | |
2415 | * mips-tdep.c: Include "target-float.h". | |
2416 | (mips_print_fp_register): Use target_float_to_string. | |
2417 | * sh64-tdep.c: Include "target-float.h". | |
2418 | (sh64_do_fp_register): Use target_float_to_string. | |
2419 | ||
2420 | * parse.c: Include "target-float.h". Do not include | |
2421 | "doublest.h" and "dfp.h". | |
2422 | (parse_float): Use target_float_from_string. | |
2423 | * stabsread.c: Include "target-float.h". Do not include "doublest.h". | |
2424 | (define_symbol): Use target_float_from_string. | |
2425 | * gdbarch-selftests.c: Include "target-float.h". | |
2426 | (register_to_value_test): Use target_float_from_string. | |
2427 | ||
70100014 UW |
2428 | 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com> |
2429 | ||
2430 | * Makefile.c (SFILES): Add target-float.c. | |
2431 | (HFILES_NO_SRCDIR): Add target-float.h. | |
2432 | (COMMON_OBS): Add target-float.o. | |
2433 | * target-float.h: New file. | |
2434 | * target-float.c: New file. | |
2435 | ||
2436 | * doublest.c (floatformat_classify): Fix detection of float_zero. | |
2437 | ||
2438 | * gdbtypes.c (is_floating_type): New function. | |
2439 | * gdbtypes.h (is_floating_type): Add prototype. | |
2440 | ||
2441 | * value.c: Do not include "floatformat.h". | |
2442 | (unpack_double): Use target_float_is_valid. | |
2443 | (is_floating_value): New function. | |
2444 | * value.h (is_floating_value): Add prototype- | |
2445 | ||
2446 | * valarith.c: Include "target-float.h". | |
2447 | (value_logical_not): Use target_float_is_zero. | |
2448 | ||
2449 | * python/py-value.c: Include "target-float.h". | |
2450 | (valpy_nonzero): Use target_float_is_zero. | |
2451 | ||
ab4b1c46 TT |
2452 | 2017-11-04 Tom Tromey <tom@tromey.com> |
2453 | ||
2454 | * h8300-tdep.c (h8300_push_dummy_call): Use std::vector. | |
2455 | ||
454dafbd TT |
2456 | 2017-11-04 Tom Tromey <tom@tromey.com> |
2457 | ||
2458 | * breakpoint.c (set_momentary_breakpoint): Return | |
2459 | breakpoint_up. | |
2460 | (until_break_command): Update. | |
2461 | (new_until_break_fsm): Change argument types to | |
2462 | breakpoint_up. | |
2463 | (set_momentary_breakpoint_at_pc): Return breakpoint_up. | |
2464 | (do_delete_breakpoint_cleanup, make_cleanup_delete_breakpoint): | |
2465 | Remove. | |
2466 | * infcmd.c (finish_forward): Update. | |
2467 | * breakpoint.h (set_momentary_breakpoint) | |
2468 | (set_momentary_breakpoint_at_pc): Return breakpoint_up. | |
2469 | (make_cleanup_delete_breakpoint): Remove. | |
2470 | (struct breakpoint_deleter): New. | |
2471 | (breakpoint_up): New typedef. | |
2472 | * infrun.c (insert_step_resume_breakpoint_at_sal_1): Update. | |
2473 | (insert_exception_resume_breakpoint): Update. | |
2474 | (insert_exception_resume_from_probe): Update. | |
2475 | (insert_longjmp_resume_breakpoint): Update. | |
2476 | * arm-linux-tdep.c (arm_linux_copy_svc): Update. | |
2477 | * elfread.c (elf_gnu_ifunc_resolver_stop): Update. | |
2478 | * infcall.c (call_function_by_hand_dummy): Update | |
2479 | ||
331b71e5 TT |
2480 | 2017-11-04 Tom Tromey <tom@tromey.com> |
2481 | ||
2482 | * c-typeprint.c (c_type_print_base): Use gdb::unique_xmalloc_ptr. | |
2483 | ||
9f584b37 TT |
2484 | 2017-11-04 Tom Tromey <tom@tromey.com> |
2485 | ||
2486 | * linux-tdep.c (linux_core_info_proc_mappings): Use | |
2487 | gdb::def_vector. | |
2488 | (linux_get_siginfo_data): Return gdb::byte_vector. Remove | |
2489 | "size" argument. | |
2490 | (linux_corefile_thread): Update. | |
2491 | (linux_make_corefile_notes): Remove unused variable. | |
2492 | ||
779bc38e TT |
2493 | 2017-11-04 Tom Tromey <tom@tromey.com> |
2494 | ||
2495 | * ppc-linux-tdep.c (ppc_linux_get_syscall_number): Use | |
2496 | gdb::byte_vector. | |
2497 | ||
ed2b3126 TT |
2498 | 2017-11-04 Tom Tromey <tom@tromey.com> |
2499 | ||
2500 | * objfiles.c (do_free_objfile_cleanup): Remove. | |
2501 | * compile/compile-object-load.c (compile_object_load): Update. | |
2502 | * objfiles.h (make_cleanup_free_objfile): Remove. | |
2503 | ||
7f6743fd TT |
2504 | 2017-11-04 Tom Tromey <tom@tromey.com> |
2505 | ||
2506 | * sparc64-tdep.c (do_examine): Use gdb::def_vector. | |
2507 | (adi_read_versions): Change "tags" to "gdb_byte *". | |
2508 | (adi_print_versions): Likewise. | |
2509 | ||
c80049d3 TT |
2510 | 2017-11-04 Tom Tromey <tom@tromey.com> |
2511 | ||
2512 | * breakpoint.c | |
2513 | (scoped_rbreak_breakpoints::scoped_rbreak_breakpoints): Rename | |
2514 | from start_rbreak_breakpoints. | |
2515 | (scoped_rbreak_breakpoints): Rename from end_rbreak_breakpoints. | |
2516 | * breakpoint.h (class scoped_rbreak_breakpoints): New. | |
2517 | (start_rbreak_breakpoints, end_rbreak_breakpoints): Remove. | |
2518 | * symtab.c (do_end_rbreak_breakpoints): Remove. | |
2519 | (rbreak_command): Use scoped_rbreak_breakpoints, std::string. | |
2520 | ||
167b0be1 TT |
2521 | 2017-11-04 Tom Tromey <tom@tromey.com> |
2522 | ||
2523 | * cp-namespace.c (reset_directive_searched): Remove. | |
2524 | (cp_lookup_symbol_via_imports): Use scoped_restore. | |
2525 | * cp-support.c (reset_directive_searched): Remove. | |
2526 | (make_symbol_overload_list_using): Use scoped_restore. | |
2527 | * d-namespace.c (d_lookup_symbol_imports): Use scoped_restore. | |
2528 | (reset_directive_searched): Remove. | |
2529 | ||
5eae7aea TT |
2530 | 2017-11-04 Tom Tromey <tom@tromey.com> |
2531 | ||
2532 | * symfile.c (find_separate_debug_file_by_debuglink): Use | |
2533 | unique_xmalloc_ptr. | |
2534 | ||
c6bcad5f TT |
2535 | 2017-11-04 Tom Tromey <tom@tromey.com> |
2536 | ||
2537 | * compile/compile-loc2c.c (compute_stack_depth_worker): Change | |
2538 | type of "info". | |
2539 | (compute_stack_depth): Likewise. | |
2540 | (do_compile_dwarf_expr_to_c): Use std::vector. | |
2541 | ||
20dcd8ca TT |
2542 | 2017-11-04 Tom Tromey <tom@tromey.com> |
2543 | ||
2544 | * compile/compile-object-load.c (link_callbacks_einfo): Use | |
2545 | std::string. | |
2546 | ||
33c7c59d TT |
2547 | 2017-11-04 Tom Tromey <tom@tromey.com> |
2548 | ||
2549 | * dwarf2read.c (process_full_comp_unit, process_full_type_unit): | |
2550 | Use scoped_free_pendings. | |
2551 | * dbxread.c (dbx_symfile_read, dbx_psymtab_to_symtab_1): Use | |
2552 | scoped_free_pendings. | |
2553 | * xcoffread.c (xcoff_psymtab_to_symtab_1): Use scoped_free_pendings. | |
2554 | (xcoff_initial_scan): Likewise. | |
2555 | * buildsym.c (reset_symtab_globals): Update comment. | |
2556 | (scoped_free_pendings): Rename from really_free_pendings. | |
2557 | (prepare_for_building): Update comment. | |
2558 | (buildsym_init): Likewise. | |
2559 | * buildsym.h (class scoped_free_pendings): New class. | |
2560 | (really_free_pendings): Don't declare. | |
2561 | ||
67fa57cf UW |
2562 | 2017-11-03 Ulrich Weigand <uweigand@de.ibm.com> |
2563 | ||
2564 | * doublest.c (convert_doublest_to_floatformat): Fix uninitialized | |
2565 | output when converting a zero value to a special byteorder format. | |
2566 | ||
f26ae15b YQ |
2567 | 2017-11-02 Yao Qi <yao.qi@linaro.org> |
2568 | ||
2569 | * frame.c (do_frame_register_read): Remove aspace. | |
2570 | * jit.c (jit_frame_sniffer): Likwise. | |
2571 | * ppc-linux-tdep.c (ppu2spu_sniffer): Likewise. | |
2572 | * regcache.c (regcache::regcache): Pass nullptr. | |
2573 | (regcache_print): Caller updated. | |
2574 | * regcache.h (regcache::regcache): Remove one constructor | |
2575 | parameter aspace. | |
2576 | ||
6c6e9412 YQ |
2577 | 2017-11-02 Yao Qi <yao.qi@linaro.org> |
2578 | ||
2579 | * regcache.h (regcache) <m_readonly_p>: Change it to const bool. | |
2580 | ||
8b86c959 YQ |
2581 | 2017-11-02 Yao Qi <yao.qi@linaro.org> |
2582 | ||
2583 | * breakpoint.c (insert_single_step_breakpoints): Update. | |
2584 | * frame.c (struct frame_info) <aspace>: Add const. | |
2585 | (frame_save_as_regcache): Add const. | |
2586 | (get_frame_address_space): Return const address_space *. | |
2587 | * frame.h (get_frame_address_space): Update declaration. | |
2588 | * infrun.c (struct step_over_info) <aspace>: Add const. | |
2589 | (set_step_over_info): Make aspace const. | |
2590 | (displaced_step_prepare_throw): Change variable const. | |
2591 | (resume): Likewise. | |
2592 | (proceed): Likewise. | |
2593 | (adjust_pc_after_break): Likewise. | |
2594 | (save_waitstatus): Likewise. | |
2595 | (handle_signal_stop): Likewise. | |
2596 | (keep_going_pass_signal): Likewise. | |
2597 | * jit.c (jit_frame_sniffer): Add const. | |
2598 | * mips-tdep.c (mips_single_step_through_delay): Likewise. | |
2599 | * ppc-linux-tdep.c (ppu2spu_sniffer): Likewise. | |
2600 | * record-full.c (record_full_wait_1): Likewise. | |
2601 | * regcache.c (regcache::regcache): Change parameter to const. | |
2602 | * regcache.h (regcache::regcache): Likewise. | |
2603 | (regcache::aspace): Return const address_space *. | |
2604 | (regcache) <m_aspace>: Add const. | |
2605 | ||
a01bda52 YQ |
2606 | 2017-11-02 Yao Qi <yao.qi@linaro.org> |
2607 | ||
2608 | * darwin-nat.c (cancel_breakpoint): Use regcache->aspace (). | |
2609 | * frame.c (create_sentinel_frame): Likewise. | |
2610 | * infrun.c (displaced_step_prepare_throw): Likewise. | |
2611 | (resume): Likewise. | |
2612 | (thread_still_needs_step_over_bp): Likewise. | |
2613 | (proceed): Likewise. | |
2614 | (do_target_wait): Likewise. | |
2615 | (adjust_pc_after_break): Likewise. | |
2616 | (handle_syscall_event): Likewise. | |
2617 | (save_waitstatus): Likewise. | |
2618 | (handle_inferior_event_1): Likewise. | |
2619 | (handle_signal_stop): Likewise. | |
2620 | (keep_going_pass_signal): Likewise. | |
2621 | * linux-nat.c (status_callback): Likewise. | |
2622 | (save_stop_reason): Likewise. | |
2623 | (resume_stopped_resumed_lwps): Likewise. | |
2624 | * record-full.c (record_full_exec_insn): Likewise. | |
2625 | (record_full_wait_1): Likewise. | |
2626 | * regcache.c (get_regcache_aspace): Remove. | |
2627 | * regcache.h (get_regcache_aspace): Remove. | |
2628 | ||
d999647b YQ |
2629 | 2017-11-02 Yao Qi <yao.qi@linaro.org> |
2630 | ||
2631 | * regcache.c (struct regcache_descr) <nr_raw_registers>: Remove. | |
2632 | (init_regcache_descr): Use gdbarch_num_regs. | |
2633 | (regcache::regcache): Likewise. | |
2634 | (regcache::get_register_status): Likewise. | |
2635 | (regcache::assert_raw_regnum): Likewise. | |
2636 | (regcache::cooked_read): Likewise. | |
2637 | (regcache::cooked_read_value): Likewise. | |
2638 | (regcache::cooked_write): Likewise. | |
2639 | (regcache::dump): Likewise. | |
2640 | (regcache::num_raw_registers): New method. | |
2641 | * regcache.h (class regcache) <num_raw_registers>: New. | |
2642 | ||
4e888c28 YQ |
2643 | 2017-11-02 Yao Qi <yao.qi@linaro.org> |
2644 | ||
2645 | * regcache.c (regcache::assert_regnum): New method. | |
2646 | (regcache::invalidate): Call assert_regnum. | |
2647 | (regcache::raw_update): Likewise. | |
2648 | (regcache::raw_write): Likewise. | |
2649 | (regcache::raw_read_part): Likewise. | |
2650 | (regcache::raw_write_part): Likewise. | |
2651 | (regcache::raw_supply): Likewise. | |
2652 | (regcache::raw_supply_integer): Likewise. | |
2653 | (regcache::raw_supply_zeroed): Likewise. | |
2654 | (regcache::raw_collect): Likewise. | |
2655 | (regcache::raw_collect_integer): Likewise. | |
2656 | * regcache.h (regcache::assert_regnum): Declare. | |
2657 | ||
2e1b49b3 YQ |
2658 | 2017-11-02 Yao Qi <yao.qi@linaro.org> |
2659 | ||
2660 | * regcache.c (regcache::dump): Remove code. | |
2661 | ||
6c5218df YQ |
2662 | 2017-11-02 Yao Qi <yao.qi@linaro.org> |
2663 | ||
2664 | * regcache.c (struct regcache_descr) <sizeof_raw_register_status>: | |
2665 | Remove. | |
2666 | <sizeof_cooked_register_status>: Remove. | |
2667 | (init_regcache_descr): Update. | |
2668 | (regcache::regcache): Use nr_cooked_registers and nr_raw_registers. | |
2669 | (regcache::save): Likewise. | |
2670 | (regcache::dump): Likewise. | |
2671 | ||
dcc31d28 JB |
2672 | 2017-11-01 James Bowman <james.bowman@ftdichip.com> |
2673 | ||
2674 | * ft32-tdep.c (ft32_fetch_instruction): New function. | |
2675 | (ft32_analyze_prologue): Use ft32_fetch_instruction(). | |
2676 | ||
3a87ae65 SM |
2677 | 2017-10-31 Simon Marchi <simon.marchi@polymtl.ca> |
2678 | ||
2679 | * cli/cli-script.c (execute_control_command): Rename to ... | |
2680 | (execute_control_command_1): ... this. | |
2681 | (execute_control_command): New function. | |
2682 | ||
09b847f3 SM |
2683 | 2017-10-31 Simon Marchi <simon.marchi@ericsson.com> |
2684 | ||
2685 | * tracepoint.c (tfind_command): Remove const_cast. | |
2686 | ||
f871c485 MG |
2687 | 2017-10-30 Mike Gulick <mgulick@mathworks.com> |
2688 | ||
2689 | * Makefile.in (HFILES_NO_SRCDIR): Remove reference to gdb.h. | |
2690 | ||
b020ff80 SM |
2691 | 2017-10-30 Simon Marchi <simon.marchi@ericsson.com> |
2692 | ||
2693 | * common/common-utils.h (in_inclusive_range): New function. | |
2694 | * arm-tdep.c (arm_record_extension_space): Use | |
2695 | in_inclusive_range. | |
2696 | (thumb_record_ld_st_reg_offset): Use in_inclusive_range. | |
2697 | * cris-tdep.c (cris_spec_reg_applicable): Use | |
2698 | in_inclusive_range. | |
2699 | ||
1b81856f PA |
2700 | 2017-10-30 Pedro Alves <palves@redhat.com> |
2701 | Simon Marchi <simon.marchi@ericsson.com> | |
2702 | ||
2703 | * remote.c (remote_set_syscall_catchpoint): Build a std::string | |
2704 | instead of a gdb::unique_xmalloc_ptr, using string_appendf. | |
2705 | ||
31b833b3 PA |
2706 | 2017-10-30 Pedro Alves <palves@redhat.com> |
2707 | ||
2708 | * common/common-utils.c (string_appendf, string_vappendf): New | |
2709 | functions. | |
2710 | * common/common-utils.h (string_appendf, string_vappendf): New | |
2711 | declarations. | |
2712 | * unittests/common-utils-selftests.c (string_appendf_func) | |
2713 | (test_appendf_func, string_vappendf_wrapper, string_appendf_tests) | |
2714 | (string_vappendf_tests): New functions. | |
2715 | (_initialize_common_utils_selftests): Register "string_appendf" and | |
2716 | "string_vappendf tests". | |
2717 | ||
4a250334 PA |
2718 | 2017-10-30 Pedro Alves <palves@redhat.com> |
2719 | ||
2720 | * unittests/common-utils-selftests.c (format_func): New typedef. | |
2721 | (string_printf_tests, string_vprintf_tests): Tests factored out | |
2722 | and merged to ... | |
2723 | (test_format_func): ... this new function. | |
2724 | (string_printf_tests, string_vprintf_tests): Reimplement on top of | |
2725 | test_format_func. | |
2726 | ||
16c5c17e SM |
2727 | 2017-10-29 Simon Marchi <simon.marchi@ericsson.com> |
2728 | ||
2729 | * darwin-nat.c: Remove include of gdb.h. | |
2730 | ||
7ca51576 SM |
2731 | 2017-10-29 Simon Marchi <simon.marchi@ericsson.com> |
2732 | ||
2733 | * xtensa-xtregs.c: Fix formatting issues. | |
2734 | ||
c1342859 SM |
2735 | 2017-10-29 Simon Marchi <simon.marchi@ericsson.com> |
2736 | ||
2737 | * xtensa-xtregs.c (xtensa_regtable_t) <name>: Constify. | |
2738 | ||
484d8d36 MD |
2739 | 2017-10-28 Maksim Dzabraev <dzabraew@gmail.com> |
2740 | ||
2741 | PR python/21213 | |
2742 | * python/py-infthread.c (thpy_get_inferior): Increment reference | |
2743 | of inferior before returning it. | |
2744 | ||
b5540b5f SM |
2745 | 2017-10-27 Simon Marchi <simon.marchi@ericsson.com> |
2746 | ||
2747 | * unittests/common-utils-selftests.c (format): Add | |
2748 | ATTRIBUTE_PRINTF. | |
2749 | ||
5a9dcda1 SM |
2750 | 2017-10-27 Simon Marchi <simon.marchi@polymtl.ca> |
2751 | ||
2752 | * xml-syscall.c (struct syscall_desc): Add constructor. | |
2753 | <name>: Change type to std::string. | |
2754 | (syscall_desc_up): New typedef. | |
2755 | (syscall_desc_p): Remove typeder. | |
2756 | (DEF_VEC_P(syscall_desc_p)): Remove. | |
2757 | (struct syscall_group_desc): Add constructor. | |
2758 | <name>: Change type to std::string. | |
2759 | <syscalls>: Change type to std::vector. | |
2760 | (syscall_group_desc_up): New typedef. | |
2761 | (syscall_group_desc_p): Remove typedef. | |
2762 | (DEF_VEC_P(syscall_group_desc_p)): Remove. | |
2763 | (struct syscalls_info) <syscalls>: Change type to std::vector of | |
2764 | unique_ptr. | |
2765 | <groups>: Likewise. | |
2766 | <my_gdb_datadir>: Change type to std::string. | |
2767 | (syscalls_info_up): New typedef. | |
2768 | (allocate_syscalls_info): Remove. | |
2769 | (syscalls_info_free_syscalls_desc): Remove. | |
2770 | (syscalls_info_free_syscall_group_desc): Remove. | |
2771 | (free_syscalls_info): Remove. | |
2772 | (make_cleanup_free_syscalls_info): Remove. | |
2773 | (syscall_group_create_syscall_group_desc): Adjust. | |
2774 | (syscall_group_add_syscall): Adjust. | |
2775 | (syscall_create_syscall_desc): Adjust. | |
2776 | (syscall_parse_xml): Adjust, use unique_ptr instead of cleanup. | |
2777 | (init_syscalls_info): Adjust. | |
2778 | (syscall_group_get_group_by_name): Adjust. | |
2779 | (xml_get_syscall_number): Adjust. | |
2780 | (xml_get_syscall_name): Adjust. | |
2781 | (xml_list_of_syscalls): Adjust. | |
2782 | (xml_list_syscalls_by_group): Adjust. | |
2783 | (xml_list_of_groups): Adjust. | |
2784 | ||
45461e0d SM |
2785 | 2017-10-27 Simon Marchi <simon.marchi@ericsson.com> |
2786 | ||
2787 | * probe.h: Don't include gdb_vecs.h. | |
2788 | (DEF_VEC_P (probe_p)): Remove. | |
2789 | (find_probes_in_objfile): Return an std::vector. | |
2790 | * probe.c (find_probes_in_objfile): Likewise. | |
2791 | * breakpoint.c (breakpoint_objfile_data) | |
2792 | <longjmp_probes>: Change type to std::vector. | |
2793 | <exception_probes>: Likewise. | |
2794 | (free_breakpoint_probes): Don't manually free vectors. | |
2795 | (create_longjmp_master_breakpoint): Adjust. | |
2796 | (create_exception_master_breakpoint): Adjust. | |
2797 | * solib-svr4.c (svr4_create_probe_breakpoints): Change | |
2798 | parameter type, adjust. | |
2799 | (svr4_create_solib_event_breakpoints): Adjust. | |
2800 | ||
43dce439 SM |
2801 | 2017-10-27 Simon Marchi <simon.marchi@ericsson.com> |
2802 | ||
2803 | * breakpoint.c (breakpoint_objfile_data): Initialize fields. | |
2804 | (get_breakpoint_objfile_data): Allocate breakpoint_objfile_data | |
2805 | with new. | |
2806 | (free_breakpoint_probes): Rename to ... | |
2807 | (free_breakpoint_objfile_data): ... this, and call delete on | |
2808 | bp_objfile_data.. | |
2809 | ||
6a1b9516 SM |
2810 | 2017-10-27 Simon Marchi <simon.marchi@polymtl.ca> |
2811 | ||
2812 | * auto-load.c: Don't include gdb_vecs.h, include algorithm. | |
2813 | (loaded_script_ptr): Remove typedef. | |
2814 | (DEF_VEC_P (loaded_script_ptr)): Remove. | |
2815 | (struct collect_matching_scripts_data): Add constructor. | |
2816 | <scripts_p>: Change type to (pointer to) std::vector. | |
2817 | (collect_matching_scripts_data): Adjust. | |
2818 | (sort_scripts_by_name): Make suitable for std::sort. | |
2819 | (print_scripts): Don't sort vector, adjust to std::vector. | |
2820 | (auto_load_info_scripts): Sort vectors, adjust to std::vector. | |
2821 | ||
593e3209 SM |
2822 | 2017-10-27 Simon Marchi <simon.marchi@ericsson.com> |
2823 | ||
2824 | * symfile.c (filename_language): Make struct, not typedef. Add | |
2825 | constructor. | |
2826 | <ext>: Change type to std::string. | |
2827 | (DEF_VEC_O (filename_language)): Remove. | |
2828 | (filename_language_table): Change type to std::vector. | |
2829 | (add_filename_language): Adjust. | |
2830 | (set_ext_lang_command): Adjust. | |
2831 | (info_ext_lang_command): Adjust. | |
2832 | (deduce_language_from_filename): Adjust. | |
2833 | (class scoped_restore_filename_language_table): Remove. | |
2834 | (test_filename_language): Use scoped_restore. | |
2835 | (test_set_ext_lang_command): Use scoped_restore, adjust to | |
2836 | std::vector change. | |
2837 | ||
32fa66eb SM |
2838 | 2017-10-27 Simon Marchi <simon.marchi@ericsson.com> |
2839 | ||
2840 | * symfile.c: Include selftest.h. | |
2841 | (class scoped_restore_filename_language_table): New. | |
2842 | (test_filename_language): New test. | |
2843 | (test_set_ext_lang_command): New test. | |
2844 | (_initialize_symfile): Register tests. | |
2845 | ||
4a27f119 KS |
2846 | 2017-10-27 Keith Seitz <keiths@redhat.com> |
2847 | ||
2848 | * breakpoint.c (print_breakpoint_location): Use the symbol saved | |
2849 | in the bp_location, falling back to find_pc_sect_function when | |
2850 | needed. | |
2851 | (add_location_to_breakpoint): Save sal->symbol. | |
2852 | * breakpoint.h (struct bp_location) <symbol>: New field. | |
2853 | * symtab.c (find_function_start_sal): Save the symbol into the SaL. | |
2854 | * symtab.h (struct symtab_and_line) <symbol>: New field. | |
2855 | ||
a43f3893 PF |
2856 | 2017-10-26 Patrick Frants <osscontribute@gmail.com> |
2857 | ||
7453e6b2 | 2858 | PR gdb/13669 |
a43f3893 PF |
2859 | * cp-valprint.c (cp_print_value_fields): Use obstack_blank_fast |
2860 | to rewind obstack. | |
2861 | ||
23cc4e1b PA |
2862 | 2017-10-26 Pedro Alves <palves@redhat.com> |
2863 | ||
2864 | * remote.c (remote_async_terminal_ours_p): Delete. | |
2865 | (remote_open_1, remote_terminal_inferior, remote_terminal_ours): | |
2866 | Remove references to 'remote_async_terminal_ours_p'. | |
2867 | ||
6abc18bb YQ |
2868 | 2017-10-26 Yao Qi <yao.qi@linaro.org> |
2869 | ||
2870 | * breakpoint.h (regular_breakpoint_inserted_here_p): Remove. | |
2871 | ||
bd522513 YQ |
2872 | 2017-10-26 Yao Qi <yao.qi@linaro.org> |
2873 | ||
2874 | * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Make | |
2875 | aspace const. | |
2876 | * break-catch-syscall.c (breakpoint_hit_catch_syscall): | |
2877 | Likewise. | |
2878 | * breakpoint.c (bpstat_check_location): Remove cast. | |
2879 | (breakpoint_hit_catch_fork): Make aspce const. | |
2880 | (breakpoint_hit_catch_solib): Likewise. | |
2881 | (breakpoint_hit_catch_exec): Likewise. | |
2882 | (breakpoint_hit_ranged_breakpoint): Likewise. | |
2883 | (breakpoint_hit_watchpoint): Likewise. | |
2884 | (base_breakpoint_breakpoint_hit): Likewise. | |
2885 | (bkpt_breakpoint_hit): Likewise. | |
2886 | (dprintf_breakpoint_hit): Likewise. | |
2887 | (tracepoint_breakpoint_hit): Likewise. | |
2888 | * breakpoint.h (breakpoint_ops) <breakpoint_hit>: Likewise. | |
2889 | ||
accd0bcd YQ |
2890 | 2017-10-26 Yao Qi <yao.qi@linaro.org> |
2891 | ||
2892 | * breakpoint.c (breakpoint_location_address_match): Change | |
2893 | "struct address_space *" to "const address_space". | |
2894 | (breakpoint_location_address_range_overlap): Likewise. | |
2895 | (breakpoint_here_p): Likewise. | |
2896 | (breakpoint_in_range_p): Likewise. | |
2897 | (moribund_breakpoint_here_p): Likewise. | |
2898 | (bp_location_inserted_here_p): Likewise. | |
2899 | (software_breakpoint_inserted_here_p): Likewise. | |
2900 | (hardware_breakpoint_inserted_here_p): Likewise. | |
2901 | (hardware_watchpoint_inserted_in_range): Likewise. | |
2902 | (bpstat_check_location): Likewise. | |
2903 | (bpstat_stop_status): Likewise. | |
2904 | (breakpoint_address_match): Likewise. | |
2905 | (breakpoint_address_match_range): Likewise. | |
2906 | (breakpoint_location_address_match): Likewise. | |
2907 | (breakpoint_location_address_range_overlap): Likewise. | |
2908 | (insert_single_step_breakpoint): Likewise. | |
2909 | (breakpoint_has_location_inserted_here): Likewise. | |
2910 | (single_step_breakpoint_inserted_here_p): Likewise. | |
2911 | (pc_at_non_inline_function): Likewise. | |
2912 | * breakpoint.h (bpstat_stop_status): Update declaration. | |
2913 | (breakpoint_here_p): Likewise. | |
2914 | (breakpoint_in_range_p): Likewise. | |
2915 | (moribund_breakpoint_here_p): Likewise. | |
2916 | (breakpoint_inserted_here_p): Likewise. | |
2917 | (software_breakpoint_inserted_here_p): Likewise. | |
2918 | (hardware_breakpoint_inserted_here_p): Likewise. | |
2919 | (breakpoint_has_location_inserted_here): Likewise. | |
2920 | (single_step_breakpoint_inserted_here_p): Likewise. | |
2921 | (hardware_watchpoint_inserted_in_range): Likewise. | |
2922 | (breakpoint_address_match): Likewise. | |
2923 | (insert_single_step_breakpoint): Likewise. | |
2924 | (pc_at_non_inline_function): Likewise. | |
2925 | * gdbthread.h (thread_has_single_step_breakpoint_here): Likewise. | |
2926 | * record.c (record_check_stopped_by_breakpoint): Likewise. | |
2927 | * record.h (record_check_stopped_by_breakpoint): Likewise. | |
2928 | * thread.c (thread_has_single_step_breakpoint_here): Likewise. | |
2929 | ||
ac7936df YQ |
2930 | 2017-10-25 Yao Qi <yao.qi@linaro.org> |
2931 | ||
2932 | * aarch32-linux-nat.c (aarch32_gp_regcache_supply): Use | |
2933 | regcache->arch () instead get_regcache_arch. | |
2934 | * aarch64-fbsd-nat.c (aarch64_fbsd_fetch_inferior_registers): | |
2935 | Likewise. | |
2936 | (aarch64_fbsd_store_inferior_registers): Likewise. | |
2937 | * aarch64-linux-nat.c (fetch_gregs_from_thread): Likewise. | |
2938 | (store_gregs_to_thread): Likewise. | |
2939 | (fetch_fpregs_from_thread): Likewise. | |
2940 | (store_fpregs_to_thread): Likewise. | |
2941 | * aarch64-tdep.c (aarch64_extract_return_value): Likewise. | |
2942 | (aarch64_store_return_value): Likewise. | |
2943 | (aarch64_software_single_step): Likewise. | |
2944 | * aix-thread.c (aix_thread_wait): Likewise. | |
2945 | (supply_reg32): Likewise. | |
2946 | (supply_sprs64): Likewise. | |
2947 | (supply_sprs32): Likewise. | |
2948 | (fill_gprs64): Likewise. | |
2949 | (fill_gprs32): Likewise. | |
2950 | (fill_sprs64): Likewise. | |
2951 | (fill_sprs32): Likewise. | |
2952 | (store_regs_user_thread): Likewise. | |
2953 | (store_regs_kernel_thread): Likewise. | |
2954 | * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers): Likewise. | |
2955 | (alphabsd_store_inferior_registers): Likewise. | |
2956 | * alpha-tdep.c (alpha_extract_return_value): Likewise. | |
2957 | (alpha_store_return_value): Likewise. | |
2958 | (alpha_deal_with_atomic_sequence): Likewise. | |
2959 | (alpha_next_pc): Likewise. | |
2960 | (alpha_software_single_step): Likewise. | |
2961 | * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise. | |
2962 | (amd64bsd_store_inferior_registers): Likewise. | |
2963 | * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers): | |
2964 | Likewise. | |
2965 | (amd64_linux_store_inferior_registers): Likewise. | |
2966 | * amd64-nat.c (amd64_supply_native_gregset): Likewise. | |
2967 | (amd64_collect_native_gregset): Likewise. | |
2968 | * amd64-obsd-tdep.c (amd64obsd_supply_uthread): Likewise. | |
2969 | (amd64obsd_collect_uthread): Likewise. | |
2970 | * amd64-tdep.c (amd64_supply_fpregset): Likewise. | |
2971 | (amd64_collect_fpregset): Likewise. | |
2972 | (amd64_supply_fxsave): Likewise. | |
2973 | (amd64_supply_xsave): Likewise. | |
2974 | (amd64_collect_fxsave): Likewise. | |
2975 | (amd64_collect_xsave): Likewise. | |
2976 | * arc-tdep.c (arc_write_pc): Likewise. | |
2977 | * arch-utils.c (default_skip_permanent_breakpoint): Likewise. | |
2978 | * arm-fbsd-nat.c (arm_fbsd_fetch_inferior_registers): Likewise. | |
2979 | (arm_fbsd_store_inferior_registers): Likewise. | |
2980 | * arm-linux-nat.c (fetch_vfp_regs): Likewise. | |
2981 | (store_vfp_regs): Likewise. | |
2982 | (arm_linux_fetch_inferior_registers): Likewise. | |
2983 | (arm_linux_store_inferior_registers): Likewise. | |
2984 | * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise. | |
2985 | (arm_linux_sigreturn_next_pc): Likewise. | |
2986 | (arm_linux_get_next_pcs_syscall_next_pc): Likewise. | |
2987 | * arm-nbsd-nat.c (arm_supply_gregset): Likewise. | |
2988 | (fetch_register): Likewise. | |
2989 | (store_register): Likewise. | |
2990 | * arm-tdep.c (arm_is_thumb): Likewise. | |
2991 | (displaced_in_arm_mode): Likewise. | |
2992 | (bx_write_pc): Likewise. | |
2993 | (arm_get_next_pcs_addr_bits_remove): Likewise. | |
2994 | (arm_software_single_step): Likewise. | |
2995 | (arm_extract_return_value): Likewise. | |
2996 | (arm_store_return_value): Likewise. | |
2997 | (arm_write_pc): Likewise. | |
2998 | * bfin-tdep.c (bfin_extract_return_value): Likewise. | |
2999 | * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise. | |
3000 | (bsd_uthread_store_registers): Likewise. | |
3001 | * core-regset.c (fetch_core_registers): Likewise. | |
3002 | * corelow.c (get_core_registers): Likewise. | |
3003 | * cris-tdep.c (cris_store_return_value): Likewise. | |
3004 | (cris_extract_return_value): Likewise. | |
3005 | (find_step_target): Likewise. | |
3006 | (find_step_target): Likewise. | |
3007 | (cris_software_single_step): Likewise. | |
3008 | * ctf.c (ctf_fetch_registers): Likewise. | |
3009 | * darwin-nat.c (cancel_breakpoint): Likewise. | |
3010 | * fbsd-tdep.c (fbsd_collect_thread_registers): Likewise. | |
3011 | * frv-tdep.c (frv_extract_return_value): Likewise. | |
3012 | * ft32-tdep.c (ft32_store_return_value): Likewise. | |
3013 | (ft32_extract_return_value): Likewise. | |
3014 | * go32-nat.c (fetch_register): Likewise. | |
3015 | (go32_fetch_registers): Likewise. | |
3016 | (go32_store_registers): Likewise. | |
3017 | (store_register): Likewise. | |
3018 | * h8300-tdep.c (h8300_extract_return_value): Likewise. | |
3019 | (h8300_store_return_value): Likewise. | |
3020 | * hppa-linux-nat.c (fetch_register): Likewise. | |
3021 | (store_register): Likewise. | |
3022 | (hppa_linux_fetch_inferior_registers): Likewise. | |
3023 | (hppa_linux_store_inferior_registers): Likewise. | |
3024 | * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Likewise. | |
3025 | (i386_darwin_store_inferior_registers): Likewise. | |
3026 | * i386-gnu-nat.c (gnu_fetch_registers): Likewise. | |
3027 | (gnu_store_registers): Likewise. | |
3028 | * i386-linux-nat.c (fetch_register): Likewise. | |
3029 | (store_register): Likewise. | |
3030 | (supply_gregset): Likewise. | |
3031 | (fill_gregset): Likewise. | |
3032 | (i386_linux_fetch_inferior_registers): Likewise. | |
3033 | (i386_linux_store_inferior_registers): Likewise. | |
3034 | (i386_linux_resume): Likewise. | |
3035 | * i386-linux-tdep.c (i386_linux_get_syscall_number_from_regcache): | |
3036 | Likewise. | |
3037 | * i386-nto-tdep.c (i386nto_supply_gregset): Likewise. | |
3038 | * i386-obsd-nat.c (i386obsd_supply_pcb): Likewise. | |
3039 | * i386-obsd-tdep.c (i386obsd_supply_uthread): Likewise. | |
3040 | (i386obsd_collect_uthread): Likewise. | |
3041 | * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise. | |
3042 | (i386_supply_gregset): Likewise. | |
3043 | (i386_collect_gregset): Likewise. | |
3044 | (i386_supply_fpregset): Likewise. | |
3045 | (i386_collect_fpregset): Likewise. | |
3046 | (i386_mpx_bd_base): Likewise. | |
3047 | * i386-v4-nat.c (supply_fpregset): Likewise. | |
3048 | (fill_fpregset): Likewise. | |
3049 | * i387-tdep.c (i387_supply_fsave): Likewise. | |
3050 | (i387_collect_fsave): Likewise. | |
3051 | (i387_supply_fxsave): Likewise. | |
3052 | (i387_collect_fxsave): Likewise. | |
3053 | (i387_supply_xsave): Likewise. | |
3054 | (i387_collect_xsave): Likewise. | |
3055 | * ia64-linux-nat.c (ia64_linux_fetch_registers): Likewise. | |
3056 | (ia64_linux_store_registers): Likewise. | |
3057 | * ia64-tdep.c (ia64_access_rse_reg): Likewise. | |
3058 | (ia64_extract_return_value): Likewise. | |
3059 | (ia64_store_return_value): Likewise. | |
3060 | (find_func_descr): Likewise. | |
3061 | * inf-child.c (inf_child_fetch_inferior_registers): Likewise. | |
3062 | * inf-ptrace.c (inf_ptrace_fetch_registers): Likewise. | |
3063 | (inf_ptrace_store_registers): Likewise. | |
3064 | * infrun.c (use_displaced_stepping): Likewise. | |
3065 | (displaced_step_prepare_throw): Likewise. | |
3066 | (resume): Likewise. | |
3067 | (proceed): Likewise. | |
3068 | (do_target_wait): Likewise. | |
3069 | (adjust_pc_after_break): Likewise. | |
3070 | (handle_inferior_event_1): Likewise. | |
3071 | (handle_signal_stop): Likewise. | |
3072 | (save_infcall_suspend_state): Likewise. | |
3073 | (restore_infcall_suspend_state): Likewise. | |
3074 | * iq2000-tdep.c (iq2000_extract_return_value): Likewise. | |
3075 | * jit.c (jit_frame_prev_register): Likewise. | |
3076 | * linux-nat.c (save_stop_reason): Likewise. | |
3077 | (linux_nat_wait_1): Likewise. | |
3078 | (resume_stopped_resumed_lwps): Likewise. | |
3079 | * linux-record.c (record_linux_sockaddr): Likewise. | |
3080 | (record_linux_msghdr): Likewise. | |
3081 | (record_linux_system_call): Likewise. | |
3082 | * linux-tdep.c (linux_collect_thread_registers): Likewise. | |
3083 | * lm32-tdep.c (lm32_extract_return_value): Likewise. | |
3084 | (lm32_store_return_value): Likewise. | |
3085 | * m32c-tdep.c (m32c_read_flg): Likewise. | |
3086 | (m32c_pseudo_register_read): Likewise. | |
3087 | (m32c_pseudo_register_write): Likewise. | |
3088 | * m32r-linux-tdep.c (m32r_linux_supply_gregset): Likewise. | |
3089 | (m32r_linux_collect_gregset): Likewise. | |
3090 | * m32r-tdep.c (m32r_store_return_value): Likewise. | |
3091 | (m32r_extract_return_value): Likewise. | |
3092 | * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise. | |
3093 | (m68kbsd_collect_fpregset): Likewise. | |
3094 | * m68k-bsd-tdep.c (m68kbsd_supply_fpregset): Likewise. | |
3095 | * m68k-linux-nat.c (fetch_register): Likewise. | |
3096 | (old_fetch_inferior_registers): Likewise. | |
3097 | (old_store_inferior_registers): Likewise. | |
3098 | (store_regs): Likewise. | |
3099 | * m68k-tdep.c (m68k_svr4_extract_return_value): Likewise. | |
3100 | (m68k_svr4_store_return_value): Likewise. | |
3101 | * m88k-tdep.c (m88k_store_arguments): Likewise. | |
3102 | * mi/mi-main.c (mi_cmd_data_list_changed_registers): Likewise. | |
3103 | (mi_cmd_data_write_register_values): Likewise. | |
3104 | * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers): Likewise. | |
3105 | (mips_fbsd_store_inferior_registers): Likewise. | |
3106 | * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Likewise. | |
3107 | (mips_fbsd_supply_gregs): Likewise. | |
3108 | (mips_fbsd_collect_fpregs): Likewise. | |
3109 | (mips_fbsd_collect_gregs): Likewise. | |
3110 | (mips_fbsd_supply_fpregset): Likewise. | |
3111 | (mips_fbsd_collect_fpregset): Likewise. | |
3112 | (mips_fbsd_supply_gregset): Likewise. | |
3113 | (mips_fbsd_collect_gregset): Likewise. | |
3114 | * mips-linux-nat.c (supply_gregset): Likewise. | |
3115 | (fill_gregset): Likewise. | |
3116 | (supply_fpregset): Likewise. | |
3117 | (fill_fpregset): Likewise. | |
3118 | * mips-linux-tdep.c (mips_supply_gregset): Likewise. | |
3119 | (mips_fill_gregset): Likewise. | |
3120 | (mips_supply_fpregset): Likewise. | |
3121 | (mips_fill_fpregset): Likewise. | |
3122 | (mips64_supply_gregset): Likewise. | |
3123 | (micromips_linux_sigframe_validate): Likewise. | |
3124 | * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise. | |
3125 | (mipsnbsd_fetch_inferior_registers): Likewise. | |
3126 | (mipsnbsd_store_inferior_registers): Likewise. | |
3127 | * mips-nbsd-tdep.c (mipsnbsd_supply_fpregset): Likewise. | |
3128 | (mipsnbsd_supply_gregset): Likewise. | |
3129 | (mipsnbsd_iterate_over_regset_sections): Likewise. | |
3130 | (mipsnbsd_supply_reg): Likewise. | |
3131 | (mipsnbsd_supply_fpreg): Likewise. | |
3132 | * mips-tdep.c (mips_in_frame_stub): Likewise. | |
3133 | (mips_dummy_id): Likewise. | |
3134 | (is_octeon_bbit_op): Likewise. | |
3135 | (micromips_bc1_pc): Likewise. | |
3136 | (extended_mips16_next_pc): Likewise. | |
3137 | (mips16_next_pc): Likewise. | |
3138 | (deal_with_atomic_sequence): Likewise. | |
3139 | * moxie-tdep.c (moxie_process_readu): Likewise. | |
3140 | * nios2-tdep.c (nios2_get_next_pc): Likewise. | |
3141 | * nto-procfs.c (procfs_store_registers): Likewise. | |
3142 | * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers): Likewise. | |
3143 | (ppcfbsd_store_inferior_registers): Likewise. | |
3144 | * ppc-linux-nat.c (fetch_vsx_register): Likewise. | |
3145 | (fetch_altivec_register): Likewise. | |
3146 | (get_spe_registers): Likewise. | |
3147 | (fetch_spe_register): Likewise. | |
3148 | (fetch_altivec_registers): Likewise. | |
3149 | (fetch_all_gp_regs): Likewise. | |
3150 | (fetch_all_fp_regs): Likewise. | |
3151 | (store_vsx_register): Likewise. | |
3152 | (store_altivec_register): Likewise. | |
3153 | (set_spe_registers): Likewise. | |
3154 | (store_spe_register): Likewise. | |
3155 | (store_altivec_registers): Likewise. | |
3156 | (store_all_gp_regs): Likewise. | |
3157 | (store_all_fp_regs): Likewise. | |
3158 | * ppc-linux-tdep.c (ppc_linux_supply_gregset): Likewise. | |
3159 | (ppc_linux_collect_gregset): Likewise. | |
3160 | (ppc_canonicalize_syscall): Likewise. | |
3161 | (ppc_linux_record_signal): Likewise. | |
3162 | (ppu2spu_prev_register): Likewise. | |
3163 | * ppc-nbsd-nat.c (ppcnbsd_supply_pcb): Likewise. | |
3164 | * ppc-obsd-nat.c (ppcobsd_fetch_registers): Likewise. | |
3165 | (ppcobsd_store_registers): Likewise. | |
3166 | * ppc-ravenscar-thread.c (ppc_ravenscar_generic_fetch_registers): | |
3167 | Likewise. | |
3168 | (ppc_ravenscar_generic_store_registers): Likewise. | |
3169 | * procfs.c (procfs_fetch_registers): Likewise. | |
3170 | (procfs_store_registers): Likewise. | |
3171 | * ravenscar-thread.c (ravenscar_fetch_registers): Likewise. | |
3172 | (ravenscar_store_registers): Likewise. | |
3173 | (ravenscar_prepare_to_store): Likewise. | |
3174 | * record-btrace.c (record_btrace_fetch_registers): Likewise. | |
3175 | * record-full.c (record_full_wait_1): Likewise. | |
3176 | (record_full_registers_change): Likewise. | |
3177 | (record_full_store_registers): Likewise. | |
3178 | (record_full_core_fetch_registers): Likewise. | |
3179 | (record_full_save): Likewise. | |
3180 | (record_full_goto_insn): Likewise. | |
3181 | * regcache.c (regcache_register_size): Likewise. | |
3182 | (get_regcache_arch): Remove. | |
3183 | (regcache_read_pc): Likewise. | |
3184 | * regcache.h (get_regcache_arch): Remove. | |
3185 | * remote-sim.c (gdbsim_fetch_register): Likewise. | |
3186 | (gdbsim_store_register): Likewise. | |
3187 | * remote.c (fetch_register_using_p): Likewise. | |
3188 | (send_g_packet): Likewise. | |
3189 | (remote_prepare_to_store): Likewise. | |
3190 | (store_registers_using_G): Likewise. | |
3191 | * reverse.c (save_bookmark_command): Likewise. | |
3192 | (goto_bookmark_command): Likewise. | |
3193 | * rs6000-aix-tdep.c (branch_dest): Likewise. | |
3194 | * rs6000-nat.c (rs6000_ptrace64): Likewise. | |
3195 | (fetch_register): Likewise. | |
3196 | * rs6000-tdep.c (ppc_supply_reg): Likewise. | |
3197 | (ppc_collect_reg): Likewise. | |
3198 | (ppc_collect_gregset): Likewise. | |
3199 | (ppc_collect_fpregset): Likewise. | |
3200 | (ppc_collect_vsxregset): Likewise. | |
3201 | (ppc_collect_vrregset): Likewise. | |
3202 | (ppc_displaced_step_hw_singlestep): Likewise. | |
3203 | (rs6000_pseudo_register_read): Likewise. | |
3204 | (rs6000_pseudo_register_write): Likewise. | |
3205 | * s390-linux-nat.c (supply_gregset): Likewise. | |
3206 | (fill_gregset): Likewise. | |
3207 | (s390_linux_fetch_inferior_registers): Likewise. | |
3208 | * s390-linux-tdep.c (s390_write_pc): Likewise. | |
3209 | (s390_software_single_step): Likewise. | |
3210 | (s390_all_but_pc_registers_record): Likewise. | |
3211 | (s390_linux_syscall_record): Likewise. | |
3212 | * sentinel-frame.c (sentinel_frame_prev_arch): Likewise. | |
3213 | * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise. | |
3214 | (shnbsd_store_inferior_registers): Likewise. | |
3215 | * sh-tdep.c (sh_extract_return_value_nofpu): Likewise. | |
3216 | (sh_extract_return_value_fpu): Likewise. | |
3217 | (sh_store_return_value_nofpu): Likewise. | |
3218 | (sh_corefile_supply_regset): Likewise. | |
3219 | (sh_corefile_collect_regset): Likewise. | |
3220 | * sh64-tdep.c (sh64_extract_return_value): Likewise. | |
3221 | (sh64_store_return_value): Likewise. | |
3222 | * sparc-linux-tdep.c (sparc32_linux_collect_core_fpregset): Likewise. | |
3223 | * sparc-nat.c (sparc_fetch_inferior_registers): Likewise. | |
3224 | (sparc_store_inferior_registers): Likewise. | |
3225 | * sparc-ravenscar-thread.c (register_in_thread_descriptor_p): Likewise. | |
3226 | (sparc_ravenscar_prepare_to_store): Likewise. | |
3227 | * sparc-tdep.c (sparc32_store_arguments): Likewise. | |
3228 | (sparc_analyze_control_transfer): Likewise. | |
3229 | (sparc_step_trap): Likewise. | |
3230 | (sparc_software_single_step): Likewise. | |
3231 | (sparc32_gdbarch_init): Likewise. | |
3232 | (sparc_supply_rwindow): Likewise. | |
3233 | (sparc_collect_rwindow): Likewise. | |
3234 | * sparc64-linux-tdep.c (sparc64_linux_collect_core_fpregset): Likewise. | |
3235 | * sparc64-nbsd-nat.c (sparc64nbsd_supply_gregset): Likewise. | |
3236 | (sparc64nbsd_collect_gregset): Likewise. | |
3237 | (sparc64nbsd_supply_fpregset): Likewise. | |
3238 | (sparc64nbsd_collect_fpregset): Likewise. | |
3239 | * sparc64-tdep.c (sparc64_store_arguments): Likewise. | |
3240 | (sparc64_supply_gregset): Likewise. | |
3241 | (sparc64_collect_gregset): Likewise. | |
3242 | (sparc64_supply_fpregset): Likewise. | |
3243 | (sparc64_collect_fpregset): Likewise. | |
3244 | * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise. | |
3245 | * spu-tdep.c (spu_unwind_sp): Likewise. | |
3246 | (spu2ppu_prev_register): Likewise. | |
3247 | (spu_memory_remove_breakpoint): Likewise. | |
3248 | * stack.c (return_command): Likewise. | |
3249 | * tic6x-tdep.c (tic6x_extract_signed_field): Likewise. | |
3250 | * tracefile-tfile.c (tfile_fetch_registers): Likewise. | |
3251 | * tracefile.c (trace_save_ctf): Likewise. | |
3252 | * windows-nat.c (do_windows_fetch_inferior_registers): Likewise. | |
3253 | (do_windows_store_inferior_registers): Likewise. | |
3254 | (windows_resume): Likewise. | |
3255 | * xtensa-linux-nat.c (fill_gregset): Likewise. | |
3256 | (supply_gregset_reg): Likewise. | |
3257 | * xtensa-tdep.c (xtensa_register_write_masked): Likewise. | |
3258 | (xtensa_register_read_masked): Likewise. | |
3259 | (xtensa_supply_gregset): Likewise. | |
3260 | (xtensa_extract_return_value): Likewise. | |
3261 | (xtensa_store_return_value): Likewise. | |
3262 | ||
edd079d9 UW |
3263 | 2017-10-25 Ulrich Weigand <uweigand@de.ibm.com> |
3264 | ||
3265 | * doublest.c (floatformat_from_string): New function. | |
3266 | * doublest.h (floatformat_from_string): Add prototype. | |
3267 | ||
3268 | * std-operator.def (OP_DOUBLE, OP_DECFLOAT): Remove, replace by ... | |
3269 | (OP_FLOAT): ... this. | |
3270 | * expression.h: Do not include "doublest.h". | |
3271 | (union exp_element): Replace doubleconst and decfloatconst by | |
3272 | new element floatconst. | |
3273 | * ada-lang.c (resolve_subexp): Handle OP_FLOAT instead of OP_DOUBLE. | |
3274 | (ada_evaluate_subexp): Likewise. | |
3275 | * eval.c (evaluate_subexp_standard): Handle OP_FLOAT instead of | |
3276 | OP_DOUBLE and OP_DECFLOAT. | |
3277 | * expprint.c (print_subexp_standard): Likewise. | |
3278 | (dump_subexp_body_standard): Likewise. | |
3279 | * breakpoint.c (watchpoint_exp_is_const): Likewise. | |
3280 | ||
3281 | * parse.c: Include "dfp.h". | |
3282 | (write_exp_elt_dblcst, write_exp_elt_decfloatcst): Remove. | |
3283 | (write_exp_elt_floatcst): New function. | |
3284 | (operator_length_standard): Handle OP_FLOAT instead of OP_DOUBLE | |
3285 | and OP_DECFLOAT. | |
3286 | (operator_check_standard): Likewise. | |
3287 | (parse_float): Do not accept suffix. Take type as input. Return bool. | |
3288 | Return target format buffer instead of host DOUBLEST. | |
3289 | Use floatformat_from_string and decimal_from_string to parse | |
3290 | either binary or decimal floating-point types. | |
3291 | (parse_c_float): Remove. | |
3292 | * parser-defs.h: Do not include "doublest.h". | |
3293 | (write_exp_elt_dblcst, write_exp_elt_decfloatcst): Remove. | |
3294 | (write_exp_elt_floatcst): Add prototype. | |
3295 | (parse_float): Update prototype. | |
3296 | (parse_c_float): Remove. | |
3297 | ||
3298 | * c-exp.y: Do not include "dfp.h". | |
3299 | (typed_val_float): Use byte buffer instead of DOUBLEST. | |
3300 | (typed_val_decfloat): Remove. | |
3301 | (DECFLOAT): Remove. | |
3302 | (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst. | |
3303 | (parse_number): Update to new parse_float interface. | |
3304 | Parse suffixes and determine type before calling parse_float. | |
3305 | Handle decimal and binary FP types the same way. | |
3306 | ||
3307 | * d-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST. | |
3308 | (FLOAT_LITERAL): Use OP_FLOAT and write_exp_elt_floatcst. | |
3309 | (parse_number): Update to new parse_float interface. | |
3310 | Parse suffixes and determine type before calling parse_float. | |
3311 | ||
3312 | * f-exp.y: Replace dval by typed_val_float. | |
3313 | (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst. | |
3314 | (parse_number): Use parse_float instead of atof. | |
3315 | ||
3316 | * go-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST. | |
3317 | (parse_go_float): Remove. | |
3318 | (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst. | |
3319 | (parse_number): Call parse_float instead of parse_go_float. | |
3320 | Parse suffixes and determine type before calling parse_float. | |
3321 | ||
3322 | * p-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST. | |
3323 | (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst. | |
3324 | (parse_number): Update to new parse_float interface. | |
3325 | Parse suffixes and determine type before calling parse_float. | |
3326 | ||
3327 | * m2-exp.y: Replace dval by byte buffer val. | |
3328 | (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst. | |
3329 | (parse_number): Call parse_float instead of atof. | |
3330 | ||
3331 | * rust-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST. | |
3332 | (lex_number): Call parse_float instead of strtod. | |
3333 | (ast_dliteral): Use OP_FLOAT instead of OP_DOUBLE. | |
3334 | (convert_ast_to_expression): Handle OP_FLOAT instead of OP_DOUBLE. | |
3335 | Use write_exp_elt_floatcst. | |
3336 | (unit_testing): Remove static variable. | |
3337 | (rust_type): Do not check unit_testing. | |
3338 | (rust_lex_tests): Do not set uint_testing. Set up dummy rust_parser. | |
3339 | ||
3340 | * ada-exp.y (type_float, type_double): Remove. | |
3341 | (typed_val_float): Use byte buffer instead of DOUBLEST. | |
3342 | (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst. | |
3343 | * ada-lex.l (processReal): Use parse_float instead of sscanf. | |
3344 | ||
cc628f3d AH |
3345 | 2017-10-25 Alan Hayward <alan.hayward@arm.com> |
3346 | ||
3347 | * aarch64-tdep.h (enum aarch64_regnum): Remove. | |
3348 | * arch/aarch64.h: New file. | |
3349 | ||
09a7c6aa UW |
3350 | 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com> |
3351 | ||
3352 | * dfp.h (decimal_from_string): Use const reference for argument. | |
3353 | * dfp.c (decimal_from_string): Likewise. | |
3354 | ||
8ba0dd51 UW |
3355 | 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com> |
3356 | ||
3357 | * i387-tdep.c (print_i387_value): Use floatformat_to_string. | |
3358 | * sh64-tdep.c (sh64_do_fp_register): Likewise. | |
3359 | * mips-tdep.c (mips_print_fp_register): Likewise. | |
3360 | ||
16e812b2 UW |
3361 | 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com> |
3362 | ||
3363 | * common/format.h (enum argclass): Replace decfloat_arg by | |
3364 | dec32float_arg, dec64float_arg, and dec128float_arg. | |
3365 | * common/format.c (parse_format_string): Update to return | |
3366 | new decimal float argument classes. | |
3367 | ||
3368 | * printcmd.c (printf_decfloat): Rename to ... | |
3369 | (printf_floating): ... this. Add argclass argument, and use it | |
3370 | instead of parsing the format string again. Add support for | |
3371 | binary floating-point values, using floatformat_to_string. | |
3372 | Convert value to the target format if it doesn't already match. | |
3373 | (ui_printf): Call printf_floating instead of printf_decfloat, | |
3374 | also for double_arg / long_double_arg. Pass argclass. | |
3375 | ||
3376 | * dfp.c (decimal_to_string): Add format string argument. | |
3377 | * dfp.h (decimal_to_string): Likewise. | |
3378 | ||
3379 | * doublest.c (floatformat_to_string): Add format string argument. | |
3380 | * doublest.h (floatformat_to_string): Likewise. | |
3381 | ||
fdf0cbc2 UW |
3382 | 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com> |
3383 | ||
3384 | * doublest.c (floatformat_precision): New routine. | |
3385 | (floatformat_to_string): Likewise. | |
3386 | * doublest.c (floatformat_to_string): Add prototype. | |
3387 | ||
3388 | * printcmd.c (print_scalar_formatted): Only call print_floating | |
3389 | on floating-point types. | |
3390 | * valprint.c: Do not include "floatformat.h". | |
3391 | (generic_val_print_decfloat): Remove. | |
3392 | (generic_val_print): Call generic_val_print_float for both | |
3393 | TYPE_CODE_FLT and TYPE_CODE_DECFLOAT. | |
3394 | (print_floating): Use floatformat_to_string. Handle decimal float. | |
3395 | (print_decimal_floating): Remove, merge into floatformat_to_string. | |
3396 | * value.h (print_decimal_floating): Remove. | |
3397 | ||
3398 | * Makefile.in: Do not build doublest.c with -Wformat-nonliteral. | |
3399 | ||
5033013f UW |
3400 | 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com> |
3401 | ||
3402 | * buildsym.c (end_symtab_get_static_block): Use std::stable_sort. | |
3403 | ||
a664f67e SM |
3404 | 2017-10-21 Simon Marchi <simon.marchi@ericsson.com> |
3405 | ||
3406 | * memattr.h: Don't include vec.h. | |
3407 | (struct mem_attrib): Initialize fields. | |
3408 | <unknown>: New static method. | |
3409 | (struct mem_region): Add constructors, operator<, initialize | |
3410 | fields. | |
3411 | * memattr.c: Include algorithm. | |
3412 | (default_mem_attrib, unknown_mem_attrib): Remove. | |
3413 | (user_mem_region_list): New global. | |
3414 | (target_mem_region_list, mem_region_list): Change type to | |
3415 | std::vector<mem_region>. | |
3416 | (mem_use_target): Now a function. | |
3417 | (target_mem_regions_valid): Change type to bool. | |
3418 | (mem_region_lessthan, mem_region_cmp, mem_region_init): Remove. | |
3419 | (require_user_regions): Adjust. | |
3420 | (require_target_regions): Adjust. | |
3421 | (create_mem_region): Adjust. | |
3422 | (lookup_mem_region): Adjust. | |
3423 | (invalidate_target_mem_regions): Adjust. | |
3424 | (mem_clear): Rename to... | |
3425 | (user_mem_clear): ... this, and adjust. | |
3426 | (mem_command): Adjust. | |
3427 | (info_mem_command): Adjust. | |
3428 | (mem_enable, enable_mem_command, mem_disable, | |
3429 | disable_mem_command): Adjust. | |
3430 | (mem_delete): Adjust. | |
3431 | (delete_mem_command): Adjust. | |
3432 | * memory-map.h (parse_memory_map): Return an std::vector. | |
3433 | * memory-map.c (parse_memory_map): Likewise. | |
3434 | (struct memory_map_parsing_data): Add constructor. | |
3435 | <memory_map>: Point to std::vector. | |
3436 | (memory_map_start_memory): Adjust. | |
3437 | (memory_map_end_memory): Adjust. | |
3438 | (memory_map_end_property): Adjust. | |
3439 | (clear_result): Remove. | |
3440 | * remote.c (remote_memory_map): Return an std::vector. | |
3441 | * target-debug.h (target_debug_print_VEC_mem_region_s__p): | |
3442 | Remove. | |
3443 | (target_debug_print_mem_region_vector): New. | |
3444 | * target-delegates.c: Regenerate. | |
3445 | * target.h (mem_region_vector): New typedef. | |
3446 | (to_memory_map): Return mem_region_vector. | |
3447 | (target_memory_map): Return an std::vector. | |
3448 | * target.c (target_memory_map): Return an std::vector. | |
3449 | (flash_erase_command): Adjust. | |
3450 | ||
6e17c565 SM |
3451 | 2017-10-21 Simon Marchi <simon.marchi@ericsson.com> |
3452 | ||
3453 | * memory-map.c (struct memory_map_parsing_data) <property_name>: | |
3454 | Change type to std::string. | |
3455 | (memory_map_start_property): Adjust. | |
3456 | (memory_map_end_property): Adjust. | |
3457 | ||
cfba9872 SM |
3458 | 2017-10-21 Simon Marchi <simon.marchi@polymtl.ca> |
3459 | ||
3460 | * infrun.h: Include common/byte-vector.h. | |
3461 | (struct displaced_step_closure): New struct. | |
3462 | (struct buf_displaced_step_closure): New struct. | |
3463 | * infrun.c (displaced_step_closure::~displaced_step_closure): | |
3464 | Provide default implementation. | |
3465 | (displaced_step_clear): Deallocate step closure with delete. | |
3466 | * aarch64-tdep.c (displaced_step_closure): Rename to ... | |
3467 | (aarch64_displaced_step_closure): ... this, extend | |
3468 | displaced_step_closure. | |
3469 | (aarch64_displaced_step_data) <dsc>: Change type to | |
3470 | aarch64_displaced_step_closure. | |
3471 | (aarch64_displaced_step_copy_insn): Adjust to type change, use | |
3472 | unique_ptr. | |
3473 | (aarch64_displaced_step_fixup): Add cast for displaced step | |
3474 | closure. | |
3475 | * amd64-tdep.c (displaced_step_closure): Rename to ... | |
3476 | (amd64_displaced_step_closure): ... this, extend | |
3477 | displaced_step_closure. | |
3478 | <insn_buf>: Change type to std::vector<gdb_byte>. | |
3479 | <max_len>: Remove. | |
3480 | (fixup_riprel): Change type of DSC parameter, adjust to type | |
3481 | change of insn_buf. | |
3482 | (fixup_displaced_copy): Change type of DSC parameter. | |
3483 | (amd64_displaced_step_copy_insn): Instantiate | |
3484 | amd64_displaced_step_closure. | |
3485 | (amd64_displaced_step_fixup): Add cast for closure type, adjust | |
3486 | to type change of insn_buf. | |
3487 | * arm-linux-tdep.c (arm_linux_cleanup_svc): Change type of | |
3488 | parameter DSC. | |
3489 | (arm_linux_copy_svc): Likewise. | |
3490 | (cleanup_kernel_helper_return): Likewise. | |
3491 | (arm_catch_kernel_helper_return): Likewise. | |
3492 | (arm_linux_displaced_step_copy_insn): Instantiate | |
3493 | arm_displaced_step_closure. | |
3494 | * arm-tdep.c (arm_pc_is_thumb): Add cast for closure. | |
3495 | (displaced_read_reg): Change type of parameter DSC. | |
3496 | (branch_write_pc): Likewise. | |
3497 | (load_write_pc): Likewise. | |
3498 | (alu_write_pc): Likewise. | |
3499 | (displaced_write_reg): Likewise. | |
3500 | (arm_copy_unmodified): Likewise. | |
3501 | (thumb_copy_unmodified_32bit): Likewise. | |
3502 | (thumb_copy_unmodified_16bit): Likewise. | |
3503 | (cleanup_preload): Likewise. | |
3504 | (install_preload): Likewise. | |
3505 | (arm_copy_preload): Likewise. | |
3506 | (thumb2_copy_preload): Likewise. | |
3507 | (install_preload_reg): Likewise. | |
3508 | (arm_copy_preload_reg): Likewise. | |
3509 | (cleanup_copro_load_store): Likewise. | |
3510 | (install_copro_load_store): Likewise. | |
3511 | (arm_copy_copro_load_store) Likewise. | |
3512 | (thumb2_copy_copro_load_store): Likewise. | |
3513 | (cleanup_branch): Likewise. | |
3514 | (install_b_bl_blx): Likewise. | |
3515 | (arm_copy_b_bl_blx): Likewise. | |
3516 | (thumb2_copy_b_bl_blx): Likewise. | |
3517 | (thumb_copy_b): Likewise. | |
3518 | (install_bx_blx_reg): Likewise. | |
3519 | (arm_copy_bx_blx_reg): Likewise. | |
3520 | (thumb_copy_bx_blx_reg): Likewise. | |
3521 | (cleanup_alu_imm): Likewise. | |
3522 | (arm_copy_alu_imm): Likewise. | |
3523 | (thumb2_copy_alu_imm): Likewise. | |
3524 | (cleanup_alu_reg): Likewise. | |
3525 | (install_alu_reg): Likewise. | |
3526 | (arm_copy_alu_reg): Likewise. | |
3527 | (thumb_copy_alu_reg): Likewise. | |
3528 | (cleanup_alu_shifted_reg): Likewise. | |
3529 | (install_alu_shifted_reg): Likewise. | |
3530 | (arm_copy_alu_shifted_reg): Likewise. | |
3531 | (cleanup_load): Likewise. | |
3532 | (cleanup_store): Likewise. | |
3533 | (arm_copy_extra_ld_st): Likewise. | |
3534 | (install_load_store): Likewise. | |
3535 | (thumb2_copy_load_literal): Likewise. | |
3536 | (thumb2_copy_load_reg_imm): Likewise. | |
3537 | (arm_copy_ldr_str_ldrb_strb): Likewise. | |
3538 | (cleanup_block_load_all): Likewise. | |
3539 | (cleanup_block_store_pc): Likewise. | |
3540 | (cleanup_block_load_pc): Likewise. | |
3541 | (arm_copy_block_xfer): Likewise. | |
3542 | (thumb2_copy_block_xfer): Likewise. | |
3543 | (cleanup_svc): Likewise. | |
3544 | (install_svc): Likewise. | |
3545 | (arm_copy_svc): Likewise. | |
3546 | (thumb_copy_svc): Likewise. | |
3547 | (arm_copy_undef): Likewise. | |
3548 | (thumb_32bit_copy_undef): Likewise. | |
3549 | (arm_copy_unpred): Likewise. | |
3550 | (arm_decode_misc_memhint_neon): Likewise. | |
3551 | (arm_decode_unconditional): Likewise. | |
3552 | (arm_decode_miscellaneous): Likewise. | |
3553 | (arm_decode_dp_misc): Likewise. | |
3554 | (arm_decode_ld_st_word_ubyte): Likewise. | |
3555 | (arm_decode_media): Likewise. | |
3556 | (arm_decode_b_bl_ldmstm): Likewise. | |
3557 | (arm_decode_ext_reg_ld_st): Likewise. | |
3558 | (thumb2_decode_dp_shift_reg): Likewise. | |
3559 | (thumb2_decode_ext_reg_ld_st): Likewise. | |
3560 | (arm_decode_svc_copro): Likewise. | |
3561 | (thumb2_decode_svc_copro): Likewise. | |
3562 | (install_pc_relative): Likewise. | |
3563 | (thumb_copy_pc_relative_16bit): Likewise. | |
3564 | (thumb_decode_pc_relative_16bit): Likewise. | |
3565 | (thumb_copy_pc_relative_32bit): Likewise. | |
3566 | (thumb_copy_16bit_ldr_literal): Likewise. | |
3567 | (thumb_copy_cbnz_cbz): Likewise. | |
3568 | (thumb2_copy_table_branch): Likewise. | |
3569 | (cleanup_pop_pc_16bit_all): Likewise. | |
3570 | (thumb_copy_pop_pc_16bit): Likewise. | |
3571 | (thumb_process_displaced_16bit_insn): Likewise. | |
3572 | (decode_thumb_32bit_ld_mem_hints): Likewise. | |
3573 | (thumb_process_displaced_32bit_insn): Likewise. | |
3574 | (thumb_process_displaced_insn): Likewise. | |
3575 | (arm_process_displaced_insn): Likewise. | |
3576 | (arm_displaced_init_closure): Likewise. | |
3577 | (arm_displaced_step_fixup): Add cast for closure. | |
3578 | * arm-tdep.h: Include infrun.h. | |
3579 | (displaced_step_closure): Rename to ... | |
3580 | (arm_displaced_step_closure): ... this, extend | |
3581 | displaced_step_closure. | |
3582 | <u::svc::copy_svc_os>: Change type of parameter DSC. | |
3583 | <cleanup>: Likewise. | |
3584 | (arm_process_displaced_insn): Likewise. | |
3585 | (arm_displaced_init_closure): Likewise. | |
3586 | (displaced_read_reg): Likewise. | |
3587 | (displaced_write_reg): Likewise. | |
3588 | * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): | |
3589 | Adjust. | |
3590 | * i386-tdep.h: Include infrun.h. | |
3591 | (i386_displaced_step_closure): New typedef. | |
3592 | * i386-tdep.c (i386_displaced_step_copy_insn): Use | |
3593 | i386_displaced_step_closure. | |
3594 | (i386_displaced_step_fixup): Adjust. | |
3595 | * rs6000-tdep.c (ppc_displaced_step_closure): New typedef. | |
3596 | (ppc_displaced_step_copy_insn): Use ppc_displaced_step_closure | |
3597 | and unique_ptr. | |
3598 | (ppc_displaced_step_fixup): Adjust. | |
3599 | * s390-linux-tdep.c (s390_displaced_step_closure): New typedef. | |
3600 | (s390_displaced_step_copy_insn): Use s390_displaced_step_closure | |
3601 | and unique_ptr. | |
3602 | (s390_displaced_step_fixup): Adjust. | |
3603 | ||
b392b304 SM |
3604 | 2017-10-21 Simon Marchi <simon.marchi@polymtl.ca> |
3605 | ||
3606 | * interps.h (interp_resume, interp_suspend, interp_set_temp): | |
3607 | Remove declarations. | |
3608 | ||
d5833c62 TT |
3609 | 2017-10-20 Tom Tromey <tom@tromey.com> |
3610 | ||
3611 | * gdb_bfd.c (struct gdb_bfd_data) <included_bfds>: Now a | |
3612 | std::vector. | |
3613 | (gdb_bfd_record_inclusion): Update. | |
3614 | (bfdp): Remove typedef. | |
3615 | ||
06d5bbc8 TT |
3616 | 2017-10-20 Tom Tromey <tom@tromey.com> |
3617 | ||
3618 | * gdb_bfd.c (gdb_bfd_ref): Use new. | |
3619 | (struct gdb_bfd_data): Add constructor, destructor, and member | |
3620 | initializers. | |
3621 | (gdb_bfd_unref): Use delete. | |
3622 | ||
2712ce2e TT |
3623 | 2017-10-20 Tom Tromey <tom@tromey.com> |
3624 | ||
3625 | * exec.c (exec_file_attach): Use new_bfd_ref. | |
3626 | * symfile-mem.c (symbol_file_add_from_memory): Use new_bfd_ref. | |
3627 | * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr) | |
3628 | (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_fdopenr): Use | |
3629 | new_bfd_ref. | |
3630 | * gdb_bfd.h (new_bfd_ref): New function. | |
3631 | ||
fcc8fb2f PA |
3632 | 2017-10-20 Pedro Alves <palves@redhat.com> |
3633 | ||
3634 | * main.c (captured_command_loop): Add attribute noinline. | |
3635 | ||
4c2287b0 SM |
3636 | 2017-10-19 Simon Marchi <simon.marchi@ericsson.com> |
3637 | ||
3638 | * interps.c (struct interp_factory): Add constructor. | |
3639 | (interp_factory_p): Remove typedef. | |
3640 | (DEF_VEC_P(interp_factory_p)): Remove. | |
3641 | (interpreter_factories): Change type to std::vector. | |
3642 | (interp_factory_register): Adjust. | |
3643 | (interp_lookup): Adjust. | |
3644 | (interpreter_completer): Adjust. | |
3645 | ||
3d415c26 TT |
3646 | 2017-10-19 Tom Tromey <tom@tromey.com> |
3647 | ||
3648 | * break-catch-syscall.c (catch_syscall_completer): Use | |
3649 | std::string, gdb::unique_xmalloc_ptr. | |
3650 | ||
395423c4 TT |
3651 | 2017-10-19 Tom Tromey <tom@tromey.com> |
3652 | ||
3653 | * infcall.c (call_function_by_hand_dummy): Use std::string. | |
3654 | ||
54f70bc1 TT |
3655 | 2017-10-19 Tom Tromey <tom@tromey.com> |
3656 | ||
3657 | * mi/mi-main.c (mi_cmd_execute): Update. | |
3658 | * top.h (prepare_execute_command): Return scoped_value_mark. | |
3659 | * value.h (class scoped_value_mark): Use DISABLE_COPY_AND_ASSIGN. | |
3660 | Add move constructor. | |
3661 | * top.c (prepare_execute_command): Return scoped_value_mark. | |
3662 | (execute_command): Update. | |
3663 | ||
63929e84 PA |
3664 | 2017-10-19 Pedro Alves <palves@redhat.com> |
3665 | ||
3666 | * xml-support.c (xml_fetch_content_from_file): Check fread's | |
3667 | return. | |
3668 | ||
a75868f5 PA |
3669 | 2017-10-19 Pedro Alves <palves@redhat.com> |
3670 | ||
3671 | * ser-base.c (ser_base_read_error_fd): Delete the file handler if | |
3672 | async. | |
3673 | (handle_error_fd): New function. | |
3674 | (ser_base_async): Add/delete an event loop file handler for | |
3675 | error_fd. | |
3676 | ||
2edf834e PA |
3677 | 2017-10-19 Pedro Alves <palves@redhat.com> |
3678 | ||
3679 | * xml-support.c (xml_fetch_content_from_file): Don't read in | |
3680 | chunks. Instead use fseek to determine the file's size, and read | |
3681 | it in one go. | |
3682 | ||
c8ba13ad KS |
3683 | 2017-11-18 Keith Seitz <keiths@redhat.com> |
3684 | ||
3685 | * c-exp.y (oper): Canonicalize conversion operators of user-defined | |
3686 | types. | |
3687 | Add whitespace to front of type name. | |
3688 | ||
37534686 KS |
3689 | 2017-10-18 Keith Seitz <keiths@redhat.com> |
3690 | ||
3691 | * dwarf2read.c (dwarf2_add_typedef): Issue a complaint on unhandled | |
3692 | DW_AT_accessibility. | |
3693 | ||
28c7c158 YQ |
3694 | 2017-10-18 Yao Qi <yao.qi@linaro.org> |
3695 | ||
3696 | * features/tic6x-c62x-linux.c: Remove. | |
3697 | ||
30f0b101 TT |
3698 | 2017-10-17 Tom Tromey <tom@tromey.com> |
3699 | ||
3700 | * disasm.c (do_mixed_source_and_assembly_deprecated): Use | |
3701 | gdb::optional, ui_out_emit_list, ui_out_emit_tuple. | |
3702 | (do_mixed_source_and_assembly): Likewise. | |
3703 | ||
57e12da9 TT |
3704 | 2017-10-17 Tom Tromey <tom@tromey.com> |
3705 | ||
3706 | * regcache.c (regcache::xfer_part): Remove assertion. | |
3707 | ||
7b700999 PA |
3708 | 2017-10-17 Pedro Alves <palves@redhat.com> |
3709 | ||
3710 | * xml-support.c (xml_fetch_content_from_file): Call | |
3711 | unique_ptr::release() instead unique_ptr::get() when passing | |
3712 | through xrealloc. | |
3713 | ||
d3037ba6 YQ |
3714 | 2017-10-17 Yao Qi <yao.qi@linaro.org> |
3715 | ||
3716 | * regcache.c (regcache::xfer_part): Remove parameters read and | |
3717 | write, add parameter is_raw. All callers are updated. | |
3718 | ||
83d5a34d KS |
3719 | 2017-10-16 Keith Seitz <keiths@redhat.com> |
3720 | ||
3721 | * c-typeprint.c (enum access_specifier): Moved here from | |
3722 | c_type_print_base. | |
3723 | (output_access_specifier): New function. | |
3724 | (c_type_print_base): Consider typedefs when assessing | |
3725 | whether access labels are needed. | |
3726 | Use output_access_specifier as needed. | |
3727 | Output access specifier for typedefs, if needed. | |
3728 | * dwarf2read.c (dwarf2_add_typedef): Record DW_AT_accessibility. | |
3729 | * gdbtypes.h (struct typedef_field) <is_protected, is_private>: New | |
3730 | fields. | |
3731 | (TYPE_TYPEDEF_FIELD_PROTECTED, TYPE_TYPEDEF_FIELD_PRIVATE): New | |
3732 | accessor macros. | |
3733 | ||
87028b87 TT |
3734 | 2017-10-16 Tom Tromey <tom@tromey.com> |
3735 | ||
3736 | * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full) | |
3737 | (linux_fill_prpsinfo, linux_vsyscall_range_raw): Update. | |
3738 | * target.c (target_fileio_read_stralloc): Update. | |
3739 | * sparc64-tdep.c (adi_is_addr_mapped): Update. | |
3740 | * target.h (target_fileio_read_stralloc): Return | |
3741 | unique_xmalloc_ptr. | |
3742 | ||
b7b030ad TT |
3743 | 2017-10-16 Tom Tromey <tom@tromey.com> |
3744 | ||
3745 | * xml-syscall.c (xml_init_syscalls_info): Update. | |
3746 | * xml-support.c (xinclude_start_include): Update. | |
3747 | (xml_fetch_content_from_file): Return unique_xmalloc_ptr. | |
3748 | * xml-support.h (xml_fetch_another): Return unique_xmalloc_ptr. | |
3749 | (xml_fetch_content_from_file): Likewise. | |
3750 | * osdata.c (get_osdata): Update. | |
3751 | * target.h (target_read_stralloc, target_get_osdata): Return | |
3752 | unique_xmalloc_ptr. | |
3753 | * solib-aix.c (solib_aix_get_library_list): Update. | |
3754 | * solib-target.c (solib_target_current_sos): Update. | |
3755 | * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Update. | |
3756 | * xml-tdesc.c (fetch_available_features_from_target): Update. | |
3757 | (target_fetch_description_xml): Update. | |
3758 | (file_read_description_xml): Update. | |
3759 | * remote.c (remote_get_threads_with_qxfer, remote_memory_map) | |
3760 | (remote_traceframe_info, btrace_read_config, remote_read_btrace) | |
3761 | (remote_pid_to_exec_file): Update. | |
3762 | * target.c (target_read_stralloc): Return unique_xmalloc_ptr. | |
3763 | (target_get_osdata): Likewise. | |
3764 | ||
b80406ac TT |
3765 | 2017-10-16 Tom Tromey <tom@tromey.com> |
3766 | ||
3767 | * remote.c (remote_register_number_and_offset): Use std::vector. | |
3768 | (remote_set_syscall_catchpoint): Use gdb::unique_xmalloc_ptr. | |
3769 | (putpkt_binary): Use gdb::def_vector. | |
3770 | (compare_sections_command): Use gdb::byte_vector. | |
3771 | ||
a90ecff8 TT |
3772 | 2017-10-16 Tom Tromey <tom@tromey.com> |
3773 | ||
3774 | * ppc-linux-nat.c (hwdebug_insert_point): Use | |
3775 | gdb::unique_xmalloc_ptr, XDUP. | |
3776 | ||
2dc0e219 TT |
3777 | 2017-10-16 Tom Tromey <tom@tromey.com> |
3778 | ||
3779 | * probe.c (parse_probes): Use std::string. | |
3780 | (info_probes_for_ops, enable_probes_command) | |
3781 | (disable_probes_command): Remove cleanups. | |
3782 | ||
b05628f0 TT |
3783 | 2017-10-16 Tom Tromey <tom@tromey.com> |
3784 | ||
3785 | * buildsym.c (block_compar): Remove. | |
3786 | (end_symtab_get_static_block): Use std::vector. | |
3787 | ||
a79b1bc6 SM |
3788 | 2017-10-16 Simon Marchi <simon.marchi@ericsson.com> |
3789 | ||
3790 | * memrange.h (struct mem_range): Define operator< and operator==. | |
3791 | (mem_range_s): Remove. | |
3792 | (DEF_VEC_O (mem_range_s)): Remove. | |
3793 | (normalize_mem_ranges): Change parameter type to std::vector. | |
3794 | * memrange.c (compare_mem_ranges): Remove. | |
3795 | (normalize_mem_ranges): Change parameter type to std::vector, | |
3796 | adjust to vector change. | |
3797 | * exec.c (section_table_available_memory): Return vector, remove | |
3798 | parameter. | |
3799 | (section_table_read_available_memory): Adjust to std::vector | |
3800 | change. | |
3801 | * remote.c (remote_read_bytes): Adjust to std::vector | |
3802 | change. | |
3803 | * tracepoint.h (traceframe_available_memory): Change parameter | |
3804 | type to std::vector. | |
3805 | * tracepoint.c (traceframe_available_memory): Change parameter | |
3806 | type to std::vector, adjust. | |
3807 | * gdb/mi/mi-main.c (mi_cmd_trace_frame_collected): Adjust to | |
3808 | std::vector change. | |
3809 | * gdb/Makefile.in (SUBDIR_UNITTESTS_SRCS): Add | |
3810 | unittests/memrange-selftests.c. | |
3811 | (SUBDIR_UNITTESTS_OBS): Add memrange-selftests.o. | |
3812 | * gdb/unittests/memrange-selftests.c: New file. | |
3813 | ||
63f0e930 PA |
3814 | 2017-10-16 Pedro Alves <palves@redhat.com> |
3815 | ||
3816 | * elfread.c (probe_key_free): Rename range-for variable. | |
3817 | * probe.c (parse_probes_in_pspace, find_probes_in_objfile) | |
3818 | (find_probe_by_pc, collect_probes): Rename range-for variable. | |
3819 | ||
c40c7bfc YQ |
3820 | 2017-10-16 Yao Qi <yao.qi@linaro.org> |
3821 | ||
3822 | * features/Makefile (XMLTOC): Remove tic6x-*.xml. | |
3823 | * features/tic6x-c62x.c: Remove. | |
3824 | * features/tic6x-c64x-linux.c: Remove. | |
3825 | * features/tic6x-c64x.c: Remove. | |
3826 | * features/tic6x-c64xp-linux.c: Remove. | |
3827 | * features/tic6x-c64xp.c: Remove. | |
3828 | * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Don't call | |
3829 | initialize_tdesc_tic6x_*_linux functions. | |
3830 | * tic6x-tdep.c (_initialize_tic6x_tdep): Don't call | |
3831 | initialize_tdesc_tic6x_* functions. | |
3832 | ||
df27ae6a YQ |
3833 | 2017-10-16 Yao Qi <yao.qi@linaro.org> |
3834 | ||
3835 | * features/Makefile (WHICH): Remove tic6x-c64xp, tic6x-c64x | |
3836 | tic6x-c62x. | |
3837 | * regformats/tic6x-c62x.dat: Remove. | |
3838 | * regformats/tic6x-c64x.dat: Remove. | |
3839 | * regformats/tic6x-c64xp.dat: Remove. | |
3840 | ||
86766165 SM |
3841 | 2017-10-15 Simon Marchi <simon.marchi@ericsson.com> |
3842 | ||
3843 | * tracepoint.c (parse_traceframe_info): Return a unique_ptr | |
3844 | (the !HAVE_LIBEXPAT version). | |
3845 | ||
824dfcc3 SM |
3846 | 2017-10-14 Simon Marchi <simon.marchi@ericsson.com> |
3847 | ||
3848 | * nat/linux-osdata.c (struct pid_pgid_entry) <operator<>: Make | |
3849 | const. | |
3850 | ||
2098b393 SM |
3851 | 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca> |
3852 | ||
3853 | * target.h: Include tracepoint.h. | |
3854 | (enum trace_find_type): Move to tracepoint.h. | |
3855 | (struct target_ops) <to_traceframe_info>: Return a unique ptr. | |
3856 | * tracepoint.h: Don't include target.h | |
3857 | (enum trace_find_type): Move from target.h. | |
3858 | (parse_traceframe_info): Return a unique ptr. | |
3859 | * tracepoint.c (current_traceframe_info): Change type to unique | |
3860 | ptr. | |
3861 | (free_traceframe_info): Remove. | |
3862 | (clear_traceframe_info): Don't manually free | |
3863 | current_traceframe_info. | |
3864 | (free_result): Remove. | |
3865 | (parse_traceframe_info): Return a unique ptr. | |
3866 | (get_traceframe_info): Adjust to unique ptr. | |
3867 | * ctf.c (ctf_traceframe_info): Return a unique ptr. | |
3868 | * remote.c (remote_traceframe_info): Return a unique ptr. | |
3869 | * tracefile-tfile.c (tfile_traceframe_info): Return a unique | |
3870 | ptr. | |
3871 | * target-debug.h (target_debug_print_traceframe_info_up): New | |
3872 | macro. | |
3873 | * target-delegates.c: Regenerate. | |
3874 | ||
4cdd21a8 SM |
3875 | 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca> |
3876 | ||
3877 | * memrange.h (struct mem_range): Add constructors. | |
3878 | * tracepoint.h (struct traceframe_info) <memory>: Change type to | |
3879 | std::vector<mem_range>. | |
3880 | * tracepoint.c (free_traceframe_info): Don't manually free | |
3881 | vector. | |
3882 | (traceframe_info_start_memory): Adjust to vector change. | |
3883 | (traceframe_available_memory): Likewise. | |
3884 | * tracefile-tfile.c (build_traceframe_info): Likewise. | |
3885 | * ctf.c (ctf_traceframe_info): Likewise. | |
3886 | ||
d0d292a2 SM |
3887 | 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca> |
3888 | ||
3889 | * tracepoint.h (struct traceframe_info) <tvars>: Change type to | |
3890 | std::vector<int>. | |
3891 | * tracepoint.c (free_traceframe_info): Deallocate with delete. | |
3892 | (traceframe_info_start_tvar): Adjust to vector change. | |
3893 | (parse_traceframe_info): Allocate with new. | |
3894 | * ctf.c (ctf_traceframe_info): Allocate with new, adjust to | |
3895 | vector change. | |
3896 | * tracefile-tfile.c (build_traceframe_info): Adjust to vector | |
3897 | change. | |
3898 | tfile_traceframe_info): Allocate with new. | |
3899 | * mi/mi-main.c (mi_cmd_trace_frame_collected): Adjust to vector | |
3900 | change. | |
3901 | ||
8d3c73ef SM |
3902 | 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca> |
3903 | ||
3904 | * tracepoint.c (traceframe_info): Rename to... | |
3905 | (current_traceframe_info): ...this. | |
3906 | (clear_traceframe_info): Adjust. | |
3907 | (get_traceframe_info): Adjust. | |
3908 | ||
b129dcac SM |
3909 | 2017-10-14 Simon Marchi <simon.marchi@ericsson.com> |
3910 | ||
3911 | * nat/linux-osdata.c: Include algorithm. | |
3912 | (compare_processes): Remove. | |
3913 | (struct pid_pgid_entry): New struct. | |
3914 | (linux_xfer_osdata_processgroups): Use std::vector instead of | |
3915 | XNEWVEC. | |
3916 | ||
af5bf4ad SM |
3917 | 2017-10-14 Simon Marchi <simon.marchi@ericsson.com> |
3918 | ||
3919 | * objfiles.h: Don't include symfile.h. | |
3920 | (struct partial_symbol): Remove forward-declaration. | |
3921 | (struct objfile) <global_psymbols, static_psymbols>: Change type | |
3922 | to std::vector<partial_symbol *>. | |
3923 | * objfiles.c (objfile::objfile): Don't memset those fields. | |
3924 | (objfile::~objfile): Don't free those fields. | |
3925 | * psympriv.h (struct psymbol_allocation_list): Remove | |
3926 | forward-declaration. | |
3927 | (add_psymbol_to_list): Change psymbol_allocation_list parameter | |
3928 | to std::vector. | |
3929 | (start_psymtab_common): Change parameters to std::vector. | |
3930 | * psymtab.c: Include algorithm. | |
3931 | (require_partial_symbols): Call shrink_to_fit. | |
3932 | (find_pc_sect_psymbol): Adjust to vector change. | |
3933 | (match_partial_symbol): Likewise. | |
3934 | (lookup_partial_symbol): Likewise. | |
3935 | (psym_relocate): Likewise. | |
3936 | (dump_psymtab): Likewise. | |
3937 | (recursively_search_psymtabs): Likewise. | |
3938 | (compare_psymbols): Remove. | |
3939 | (sort_pst_symbols): Adjust to vector change. | |
3940 | (start_psymtab_common): Likewise. | |
3941 | (end_psymtab_common): Likewise. | |
3942 | (psymbol_bcache_full): De-constify return value. | |
3943 | (add_psymbol_to_bcache): Likewise. | |
3944 | (extend_psymbol_list): Remove. | |
3945 | (append_psymbol_to_list): Adjust to vector change. | |
3946 | (add_psymbol_to_list): Likewise. | |
3947 | (init_psymbol_list): Likewise. | |
3948 | (maintenance_info_psymtabs): Likewise. | |
3949 | (maintenance_check_psymtabs): Likewise. | |
3950 | * symfile.h (struct psymbol_allocation_list): Remove. | |
3951 | * symfile.c (reread_symbols): Adjust to vector change. | |
3952 | * dbxread.c (start_psymtab): Change type of parameters. | |
3953 | (dbx_symfile_read): Adjust to vector change. | |
3954 | (read_dbx_symtab): Likewise. | |
3955 | (start_psymtab): Change type of parameters. | |
3956 | * dwarf2read.c (dwarf2_build_psymtabs): Adjust to vector change. | |
3957 | (create_partial_symtab): Likewise. | |
3958 | (add_partial_symbol): Likewise. | |
3959 | (write_one_signatured_type): Likewise. | |
3960 | (recursively_write_psymbols): Likewise. | |
3961 | * mdebugread.c (parse_partial_symbols): Likewise. | |
3962 | * xcoffread.c (xcoff_start_psymtab): Change type of parameters. | |
3963 | (scan_xcoff_symtab): Adjust to vector change. | |
3964 | (xcoff_initial_scan): Likewise. | |
3965 | ||
3ec5942f SM |
3966 | 2017-10-13 Simon Marchi <simon.marchi@ericsson.com> |
3967 | ||
3968 | * ada-typeprint.c (print_dynamic_range_bound): Use std::string. | |
3969 | ||
2399fe6a YQ |
3970 | 2017-10-13 Yao Qi <yao.qi@linaro.org> |
3971 | ||
3972 | * features/Makefile: Remove tic6x-*-expedite, add tic6x-expedite. | |
3973 | Remove s390x-*-expedite, add s390x-expedite. | |
3974 | ||
4bf3f4a8 YQ |
3975 | 2017-10-13 Yao Qi <yao.qi@linaro.org> |
3976 | ||
3977 | * features/s390-gs-linux64.c: Regenerated. | |
3978 | * features/s390x-gs-linux64.c: Regenerated. | |
3979 | ||
9e86da07 TT |
3980 | 2017-10-13 Tom Tromey <tom@tromey.com> |
3981 | ||
3982 | * compile/compile-object-run.c (do_module_cleanup): Use delete. | |
3983 | * solib.c (update_solib_list, reload_shared_libraries_1): Use | |
3984 | delete. | |
3985 | * symfile.c (symbol_file_add_with_addrs): Use new. | |
3986 | (symbol_file_add_separate): Update comment. | |
3987 | (syms_from_objfile_1, remove_symbol_file_command): Use delete. | |
3988 | * jit.c (jit_object_close_impl): Use new. | |
3989 | (jit_unregister_code): Use delete. | |
3990 | * objfiles.c (objfile::objfile): Rename from allocate_objfile. | |
3991 | (~objfile): Rename from free_objfile. | |
3992 | (free_objfile_separate_debug, do_free_objfile_cleanup) | |
3993 | (free_all_objfiles, objfile_purge_solibs): Use delete. | |
3994 | * objfiles.h (struct objfile): Add constructor and destructor. | |
3995 | Use DISABLE_COPY_AND_ASSIGN. Add initializers to data members. | |
3996 | (allocate_objfile, free_objfile): Don't declare. | |
3997 | (struct objstats): Add initializers. | |
3998 | ||
c2508e90 SM |
3999 | 2017-10-12 Simon Marchi <simon.marchi@ericsson.com> |
4000 | ||
4001 | * arch-utils.h (simple_displaced_step_copy_insn): Remove. | |
4002 | * arch-utils.c (simple_displaced_step_copy_insn): Remove. | |
4003 | * gdbarch.sh (displaced_step_copy_insn): Adjust comment. | |
4004 | * gdbarch.h: Regenerate. | |
4005 | * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): | |
4006 | Adjust comment. | |
4007 | * i386-tdep.c (i386_displaced_step_copy_insn): Adjust comment. | |
4008 | (i386_displaced_step_fixup): Adjust comment. | |
4009 | * rs6000-tdep.c (ppc_displaced_step_copy_insn): Adjust comment. | |
4010 | ||
a900ff72 TT |
4011 | 2017-10-12 Tom Tromey <tom@tromey.com> |
4012 | ||
4013 | * prologue-value.h (pv_area::store_would_trash): Return bool. | |
4014 | (pv_area::find_reg): Likewise. | |
4015 | * prologue-value.c (pv_area::store_would_trash): Return bool. | |
4016 | (pv_area::find_reg): Likewise. | |
4017 | ||
f7b7ed97 TT |
4018 | 2017-10-12 Tom Tromey <tom@tromey.com> |
4019 | ||
4020 | * s390-linux-tdep.c (s390_store, s390_load) | |
4021 | (s390_check_for_saved, s390_analyze_prologue): Update. | |
4022 | * rx-tdep.c (check_for_saved, rx_analyze_prologue): Update. | |
4023 | * rl78-tdep.c (rl78_analyze_prologue, check_for_saved): Update. | |
4024 | * prologue-value.h (class pv_area): Move from prologue-value.c. | |
4025 | Change names of members. Add constructor, destructor, member | |
4026 | functions. | |
4027 | (make_pv_area, free_pv_area, make_cleanup_free_pv_area) | |
4028 | (pv_area_store, pv_area_fetch, pv_area_store_would_trash) | |
4029 | (pv_area_fetch, pv_area_scan): Don't declare. | |
4030 | * prologue-value.c (struct pv_area::area_entry): Now member of | |
4031 | pv_area. | |
4032 | (struct pv_area): Move to prologue-value.h. | |
4033 | (pv_area::pv_area): Rename from make_pv_area. | |
4034 | (pv_area::~pv_area): Rename from free_pv_area. | |
4035 | (do_free_pv_area_cleanup, make_cleanup_free_pv_area): Remove. | |
4036 | (clear_entries, find_entry, overlaps, store_would_trash, store) | |
4037 | (fetch, find_reg, scan): Now member of pv_area. | |
4038 | Remove "area" argument. Update. | |
4039 | * msp430-tdep.c (check_for_saved, msp430_analyze_prologue): | |
4040 | Update. | |
4041 | * mn10300-tdep.c (push_reg, check_for_saved) | |
4042 | (mn10300_analyze_prologue): Update. | |
4043 | * mep-tdep.c (is_arg_spill, check_for_saved) | |
4044 | (mep_analyze_prologue): Update. | |
4045 | * m32c-tdep.c (m32c_pv_push, m32c_srcdest_fetch) | |
4046 | (m32c_srcdest_store, m32c_pv_enter, m32c_is_arg_spill) | |
4047 | (m32c_is_struct_return, m32c_analyze_prologue): Update. | |
4048 | * arm-tdep.c (thumb_analyze_prologue, arm_analyze_prologue): | |
4049 | Update. | |
4050 | * arc-tdep.c (arc_is_in_prologue, arc_analyze_prologue): Update. | |
4051 | * aarch64-tdep.c (aarch64_analyze_prologue): Update. | |
4052 | ||
466eecee SM |
4053 | 2017-10-12 Simon Marchi <simon.marchi@ericsson.com> |
4054 | ||
4055 | * linux-nat.h (linux_nat_set_delete_thread): New declaration. | |
4056 | * linux-nat.c (linux_nat_delete_thread): New variable. | |
4057 | (lwp_free): Invoke linux_nat_delete_thread if set. | |
4058 | (linux_nat_set_delete_thread): New function. | |
4059 | * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Assign | |
4060 | thread delete callback. | |
4061 | * arm-linux-nat.c (arm_linux_delete_thread): New function. | |
4062 | (_initialize_arm_linux_nat): Assign thread delete callback. | |
4063 | * s390-linux-nat.c (s390_delete_thread): New function. | |
4064 | (_initialize_s390_nat): Assign thread delete callback. | |
4065 | * x86-linux-nat.c (x86_linux_add_target): Likewise. | |
4066 | * nat/aarch64-linux.c (aarch64_linux_delete_thread): New | |
4067 | function. | |
4068 | * nat/aarch64-linux.h (aarch64_linux_delete_thread): New | |
4069 | declaration. | |
4070 | * nat/x86-linux.c (x86_linux_delete_thread): New function. | |
4071 | * nat/x86-linux.h (x86_linux_delete_thread): New declaration. | |
4072 | ||
f71c8822 TT |
4073 | 2017-10-09 Tom Tromey <tom@tromey.com> |
4074 | ||
4075 | * tui/tui-win.c (tui_set_win_height, parse_scrolling_args): Use | |
4076 | std::string. | |
4077 | * tui/tui-layout.c (enum tui_status): Use std::string. | |
4078 | ||
981a3fb3 TT |
4079 | 2017-10-11 Tom Tromey <tom@tromey.com> |
4080 | ||
4081 | * gdbthread.h (thread_command): Constify. | |
4082 | * inferior.h (detach_command): Constify. | |
4083 | * top.h (set_history, show_history): Constify. | |
4084 | * arm-tdep.c (set_arm_command, show_arm_command): Constify. | |
4085 | * serial.c (serial_set_cmd, serial_show_cmd): Constify. | |
4086 | * bsd-kvm.c (bsd_kvm_cmd): Constify. | |
4087 | * printcmd.c (set_command): Constify. | |
4088 | (non_const_set_command): New function. | |
4089 | * dcache.c (set_dcache_command, show_dcache_command): Constify. | |
4090 | * breakpoint.c (enable_command, disable_command, delete_command) | |
4091 | (catch_command, tcatch_command, set_breakpoint_cmd) | |
4092 | (show_breakpoint_cmd): Constify. | |
4093 | * macrocmd.c (macro_command): Constify. | |
4094 | * infcmd.c (unset_command, kill_command, detach_command) | |
4095 | (info_proc_cmd): Constify. | |
4096 | * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Constify. | |
4097 | * auto-load.c (show_auto_load_cmd, set_auto_load_cmd) | |
4098 | (info_auto_load_cmd): Constify. | |
4099 | * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd) | |
4100 | (unset_tdesc_cmd): Constify. | |
4101 | * ada-lang.c (set_ada_command, show_ada_command) | |
4102 | (maint_set_ada_cmd, maint_show_ada_cmd): Constify. | |
4103 | * guile/guile.c (set_guile_command, show_guile_command) | |
4104 | (info_guile_command): Constify. | |
4105 | * tui/tui-win.c (tui_command, set_tui_cmd, show_tui_cmd): | |
4106 | Constify. | |
4107 | * skip.c (skip_command): Constify. | |
4108 | * compile/compile.c (_initialize_compile): Constify. | |
4109 | * dwarf2read.c (set_dwarf_cmd, show_dwarf_cmd): Constify. | |
4110 | * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd) | |
4111 | (maint_btrace_show_cmd, maint_btrace_pt_set_cmd) | |
4112 | (maint_btrace_pt_show_cmd): Constify. | |
4113 | * remote.c (set_remote_cmd, show_remote_cmd, remote_command): | |
4114 | Constify. | |
4115 | * python/python.c (user_show_python, user_set_python): Constify. | |
4116 | * mips-tdep.c (set_mips_command, show_mips_command) | |
4117 | (set_mipsfpu_command): Constify. | |
4118 | * record-btrace.c (cmd_record_btrace_start) | |
4119 | (cmd_set_record_btrace, cmd_show_record_btrace) | |
4120 | (cmd_set_record_btrace_bts, cmd_show_record_btrace_bts) | |
4121 | (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): Constify. | |
4122 | * rs6000-tdep.c (set_powerpc_command, show_powerpc_command): | |
4123 | Constify. | |
4124 | * symfile.c (overlay_command): Constify. | |
4125 | * spu-tdep.c (set_spu_command, show_spu_command): Constify. | |
4126 | * cli/cli-logging.c (set_logging_command, show_logging_command): | |
4127 | Constify. | |
4128 | * cli/cli-dump.c (dump_command, append_command) | |
4129 | (srec_dump_command, ihex_dump_command, verilog_dump_command) | |
4130 | (tekhex_dump_command, binary_dump_command) | |
4131 | (binary_append_command): Constify. | |
4132 | * cli/cli-decode.c (struct cmd_list_element): Change type of | |
4133 | "fun". | |
4134 | * cli/cli-cmds.c (info_command, show_command, set_debug) | |
4135 | (show_debug): Constify. | |
4136 | (show_command): Add non-const overload. | |
4137 | * top.c (set_history, show_history): Constify. | |
4138 | * sh-tdep.c (set_sh_command, show_sh_command): Constify. | |
4139 | * command.h (add_prefix_cmd): Accept a cmd_const_cfunc_ftype. | |
4140 | * target.c (target_command): Constify. | |
4141 | * sparc64-tdep.c (info_adi_command): Constify. | |
4142 | * record-full.c (cmd_record_full_start): Constify. | |
4143 | (set_record_full_command): Constify. Fix typo. | |
4144 | (show_record_full_command): Constify. | |
4145 | * thread.c (thread_command, thread_apply_command): Constify. | |
4146 | * memattr.c (dummy_cmd): Constify. | |
4147 | * value.c (function_command): Constify. | |
4148 | * frame.c (set_backtrace_cmd, show_backtrace_cmd): Constify. | |
4149 | * probe.c (info_probes_command): Constify. | |
4150 | * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Constify. | |
4151 | * gnu-nat.c (set_task_cmd, show_task_cmd, set_thread_cmd) | |
4152 | (show_thread_cmd, set_thread_default_cmd) | |
4153 | (show_thread_default_cmd): Constify. | |
4154 | (check_empty): Constify. | |
4155 | * tracepoint.c (tfind_command): Constify. | |
4156 | * cp-support.c (maint_cplus_command): Constify. | |
4157 | * windows-tdep.c (info_w32_command): Constify. | |
4158 | * record.c (cmd_record_start, set_record_command) | |
4159 | (show_record_command, info_record_command, cmd_record_goto): | |
4160 | Constify. | |
4161 | * ravenscar-thread.c (set_ravenscar_command) | |
4162 | (show_ravenscar_command): Constify. | |
4163 | * utils.c (set_internal_problem_cmd, show_internal_problem_cmd): | |
4164 | Constify. | |
4165 | (add_internal_problem_command): Remove casts. | |
4166 | * arc-tdep.c (maintenance_print_arc_command): Constify. | |
4167 | * valprint.c (set_print, show_print, set_print_raw) | |
4168 | (show_print_raw): Constify. | |
4169 | * maint.c (maintenance_command, maintenance_info_command) | |
4170 | (maintenance_print_command, maintenance_set_cmd) | |
4171 | (maintenance_show_cmd, set_per_command_cmd) | |
4172 | (show_per_command_cmd, maintenance_check_command): Constify. | |
4173 | * language.c (set_check, show_check): Constify. | |
4174 | * typeprint.c (show_print_type, set_print_type): Constify. | |
4175 | * go32-nat.c (go32_info_dos_command): Constify. | |
4176 | ||
fdf44873 TT |
4177 | 2017-10-11 Tom Tromey <tom@tromey.com> |
4178 | ||
4179 | * breakpoint.c (prepare_re_set_context): Remove. | |
4180 | (breakpoint_re_set_one): Update. Don't use cleanups. | |
4181 | (breakpoint_re_set): Use scoped_restore, std::string, and | |
4182 | scoped_restore_current_language. | |
4183 | ||
81b1e71c TT |
4184 | 2017-10-11 Tom Tromey <tom@tromey.com> |
4185 | ||
4186 | * breakpoint.c (commands_command_1): Use std::string. | |
4187 | (cleanup_executing_breakpoints): Remove. | |
4188 | (bpstat_do_actions_1): Use scoped_restore. | |
4189 | (bpstat_check_watchpoint): Use std::string. | |
4190 | (decode_static_tracepoint_spec): Likewise. | |
4191 | (break_range_command): Likewise. | |
4192 | (watch_command_1): Likewise. | |
4193 | (compare_breakpoints): Change argument types. | |
4194 | (clear_command): Use std::vector. | |
4195 | (cleanup_executing_breakpoints): Remove. | |
4196 | (update_global_location_list): Use unique_xmalloc_ptr. | |
4197 | (strace_command): Remove unused declaration. | |
4198 | ||
4f9d9906 JB |
4199 | 2017-10-11 John Baldwin <jhb@FreeBSD.org> |
4200 | ||
4201 | * Makefile.in (ALLDEPFILES): Add arm-fbsd-nat.c. | |
4202 | * NEWS: Mention new FreeBSD/arm native configuration. | |
4203 | * configure.host: Add arm*-*-freebsd*. | |
4204 | * configure.nat: Likewise. | |
4205 | * arm-fbsd-nat.c: New file. | |
4206 | ||
7176dfd2 JB |
4207 | 2017-10-11 John Baldwin <jhb@FreeBSD.org> |
4208 | ||
4209 | * Makefile.in (ALL_TARGET_OBS): Add arm-fbsd-tdep.o. | |
4210 | (ALLDEPFILES): Add arm-fbsd-tdep.c. | |
4211 | * NEWS: Mention new FreeBSD/arm target. | |
4212 | * configure.tgt: Add arm*-*-freebsd*. | |
4213 | * arm-fbsd-tdep.c: New file. | |
4214 | * arm-fbsd-tdep.h: New file. | |
4215 | ||
fe220226 MR |
4216 | 2017-10-11 Maciej W. Rozycki <macro@imgtec.com> |
4217 | ||
4218 | * linux-tdep.c (linux_make_corefile_notes): Remove call to | |
4219 | `gdbarch_elfcore_write_linux_prpsinfo'. | |
4220 | * gdbarch.sh (elfcore_write_linux_prpsinfo): Remove architecture | |
4221 | method. | |
4222 | (elf_internal_linux_prpsinfo): Remove declaration. | |
4223 | * gdbarch.h: Regenerate. | |
4224 | * gdbarch.c: Regenerate. | |
4225 | ||
a2f63b2e MR |
4226 | 2017-10-11 Maciej W. Rozycki <macro@imgtec.com> |
4227 | ||
4228 | * ppc-linux-tdep.c (ppc_linux_init_abi): Remove call to | |
4229 | `set_gdbarch_elfcore_write_linux_prpsinfo'. | |
4230 | ||
458ca1d0 PA |
4231 | 2017-10-11 Pedro Alves <palves@redhat.com> |
4232 | ||
4233 | * breakpoint.c (reattach_breakpoints): Delete. | |
4234 | * breakpoint.h (reattach_breakpoints): Delete. | |
4235 | ||
905014d7 SM |
4236 | 2017-10-11 Simon Marchi <simon.marchi@ericsson.com> |
4237 | ||
4238 | * symfile.c (registered_sym_fns): Make struct, not typedef. | |
4239 | (DEF_VEC_O (registered_sym_fns)): Remove. | |
4240 | (symtab_fns): Change type to std::vector. | |
4241 | (add_symtab_fns): Adjust. | |
4242 | (find_sym_fns): Adjust. | |
4243 | ||
56d704da AK |
4244 | 2017-10-11 Anton Kolesov <Anton.Kolesov@synopsys.com> |
4245 | ||
4246 | * arc-tdep.c (arc_gdbarch_init): Pass proper cpu value to disassembler. | |
4247 | * arc-tdep.h (arc_arch_is_em): New function. | |
4248 | (arc_arch_is_hs): Likewise. | |
4249 | ||
7fa29be9 EB |
4250 | 2017-10-11 Egeyar Bagcioglu <egeyar.bagcioglu@oracle.com> |
4251 | ||
4252 | * macrotab.h (macro_lookup_inclusion): Remove unnecessary | |
4253 | parentheses in the declaration. | |
4254 | (macro_lookup_inclusion): Likewise. | |
4255 | (macro_lookup_definition): Likewise. | |
4256 | * p-lang.h (pascal_builtin_types): Likewise. | |
4257 | * tui/tui-data.c (tui_win_list): Likewise. | |
4258 | * tui/tui-data.h (tui_win_list): Likewise. | |
4259 | * utils.h (make_cleanup_free_section_addr_info): Likewise. | |
4260 | ||
d9b477e3 KB |
4261 | 2017-10-11 Mark Rages <markrages@gmail.com> |
4262 | ||
4263 | * target-memory.c (block_boundaries): Fix for block address not | |
4264 | aligned on block size. | |
4265 | ||
65630365 PA |
4266 | 2017-10-10 Pedro Alves <palves@redhat.com> |
4267 | Tom Tromey <tom@tromey.com> | |
4268 | ||
4269 | * breakpoint.c (struct captured_breakpoint_query_args) | |
4270 | (do_captured_breakpoint_query, gdb_breakpoint_query): Delete. | |
4271 | (print_breakpoint): New. | |
4272 | * breakpoint.h (print_breakpoint): Declare. | |
4273 | * common/common-exceptions.h (enum return_reason): Remove | |
4274 | references to catch_exceptions. | |
4275 | * exceptions.c (catch_exceptions, catch_exceptions_with_msg): | |
4276 | Delete. | |
4277 | * exceptions.h (catch_exceptions_ftype, catch_exceptions) | |
4278 | (catch_exception_ftype, catch_exceptions_with_msg): Delete. | |
4279 | * gdb.h: Delete. | |
4280 | * gdbthread.h (thread_select): Declare. | |
4281 | * mi/mi-cmd-break.c: Don't include gdb.h. | |
4282 | (breakpoint_notify): Use print_breakpoint. | |
4283 | * mi/mi-cmd-catch.c: Don't include gdb.h. | |
4284 | * mi/mi-interp.c: Don't include gdb.h. | |
4285 | (mi_print_breakpoint_for_event): New. | |
4286 | (mi_breakpoint_created, mi_breakpoint_modified): Use | |
4287 | mi_print_breakpoint_for_event. | |
4288 | * mi/mi-main.c: Don't include gdb.h. | |
4289 | (mi_cmd_thread_select): Parse the global thread ID here. Use | |
4290 | thread_select instead of gdb_thread_select. | |
4291 | (mi_cmd_thread_list_ids): Output "thread-ids" tuple here instead | |
4292 | of using gdb_list_thread_ids. | |
4293 | * remote-fileio.c (do_remote_fileio_request): Change type. Reply | |
4294 | FILEIO_ENOSYS here. | |
4295 | (remote_fileio_request): Use TRY/CATCH instead of | |
4296 | catch_exceptions. | |
4297 | * symfile-mem.c (struct symbol_file_add_from_memory_args) | |
4298 | (symbol_file_add_from_memory_wrapper): Delete. | |
4299 | (add_vsyscall_page): Use TRY/CATCH instead of catch_exceptions. | |
4300 | * thread.c: Don't include gdb.h. | |
4301 | (do_captured_list_thread_ids, gdb_list_thread_ids): Delete. | |
4302 | (thread_alive): Use thread_select. | |
4303 | (do_captured_thread_select): Delete, parts salvaged as ... | |
4304 | (thread_select): ... this new function. | |
4305 | (gdb_thread_select): Delete. | |
4306 | ||
bf469271 PA |
4307 | 2017-10-10 Pedro Alves <palves@redhat.com> |
4308 | Tom Tromey <tom@tromey.com> | |
4309 | ||
4310 | * breakpoint.c (breakpoint_cond_eval): Change return type to bool | |
4311 | and reverse logic. | |
4312 | (WP_DELETED, WP_VALUE_CHANGED, WP_VALUE_NOT_CHANGED, WP_IGNORE): | |
4313 | No longer macros. Instead ... | |
4314 | (enum wp_check_result): They're now values of this new | |
4315 | enumeration. | |
4316 | (watchpoint_check): Change return type to wp_check_result and | |
4317 | parameter type to bpstat. | |
4318 | (bpstat_check_watchpoint): Use TRY/CATCH instead of catch_errors. | |
4319 | (bpstat_check_breakpoint_conditions): Use TRY/CATCH instead of | |
4320 | catch_errors. Reverse logic of watchpoint_check call. | |
4321 | (breakpoint_re_set_one): Now returns void and takes a breakpoint | |
4322 | pointer as parameter. | |
4323 | (breakpoint_re_set): Use TRY/CATCH instead of catch_errors. | |
4324 | * common/common-exceptions.c (throw_exception_sjlj): Update | |
4325 | comments to avoid mentioning catch_errors. | |
4326 | * exceptions.c (catch_errors): Delete. | |
4327 | * exceptions.h: Update comments to avoid mentioning catch_errors. | |
4328 | (catch_errors_ftype, catch_errors): Delete. | |
4329 | * infrun.c (normal_stop): Use TRY/CATCH instead of catch_errors. | |
4330 | (hook_stop_stub): Delete. | |
4331 | (restore_selected_frame): Change return type to void, and | |
4332 | parameter type to const frame_id &. | |
4333 | (restore_infcall_control_state): Use TRY/CATCH instead of | |
4334 | catch_errors. | |
4335 | * main.c (captured_command_loop): Return void and remove | |
4336 | parameter. Remove references to catch_errors. | |
4337 | (captured_main): Use TRY/CATCH instead of catch_errors. | |
4338 | * objc-lang.c (objc_submethod_helper_data) | |
4339 | (find_objc_msgcall_submethod_helper): Delete. | |
4340 | (find_objc_msgcall_submethod): Use TRY/CATCH instead of | |
4341 | catch_errors. | |
4342 | * record-full.c (record_full_message): Return void. | |
4343 | (record_full_message_args, record_full_message_wrapper): Delete. | |
4344 | (record_full_message_wrapper_safe): Return bool and use TRY/CATCH | |
4345 | instead of catch_errors. | |
4346 | * solib-aix.c (solib_aix_open_symbol_file_object): Change | |
4347 | parameter type to int. | |
4348 | * solib-darwin.c (open_symbol_file_object): Ditto. | |
4349 | * solib-dsbt.c (open_symbol_file_object): Ditto. | |
4350 | * solib-frv.c (open_symbol_file_object): Ditto. | |
4351 | * solib-svr4.c (open_symbol_file_object): Ditto. | |
4352 | * solib-target.c (solib_target_open_symbol_file_object): Ditto. | |
4353 | * solib.c (update_solib_list): Use TRY/CATCH instead of | |
4354 | catch_errors. | |
4355 | * solist.h (struct target_so_ops) <open_symbol_file_object>: | |
4356 | Change type. | |
4357 | * symmisc.c (struct print_symbol_args): Remove. | |
4358 | (dump_symtab_1): Use TRY/CATCH instead of catch_errors. | |
4359 | (print_symbol): Change type. | |
4360 | * windows-nat.c (handle_load_dll, handle_unload_dll): Return void | |
4361 | and remove parameters. | |
4362 | (catch_errors): New. | |
4363 | (get_windows_debug_event): Adjust. | |
4364 | ||
1a56bfa5 TT |
4365 | 2017-10-09 Tom Tromey <tom@tromey.com> |
4366 | ||
4367 | * mi/mi-main.c (free_splay_tree): Remove. | |
4368 | (list_available_thread_groups): Use splay_tree_up. | |
4369 | * common/gdb_splay_tree.h: New file. | |
4370 | ||
0c478e2d TT |
4371 | 2017-10-09 Tom Tromey <tom@tromey.com> |
4372 | ||
4373 | * mi/mi-main.c (do_nothing): Remove. | |
4374 | (list_available_thread_groups): Update. | |
4375 | ||
cbd2b4e3 PA |
4376 | 2017-10-09 Pedro Alves <palves@redhat.com> |
4377 | ||
4378 | * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>: Skip | |
4379 | reading registers when switching context. | |
4380 | ||
a181c0bf JB |
4381 | 2017-10-09 John Baldwin <jhb@FreeBSD.org> |
4382 | ||
4383 | * fbsd-nat.c (fbsd_siginfo_size): Use gdbarch_long_bit. | |
4384 | (fbsd_convert_siginfo): Likewise. | |
4385 | * fbsd-tdep.c (fbsd_core_xfer_siginfo): Likewise. | |
4386 | ||
6e66f753 SM |
4387 | 2017-10-09 Simon Marchi <simon.marchi@polymtl.ca> |
4388 | ||
4389 | * configure.ac (try_guile_versions): Remove guile-2.2. | |
4390 | * configure: Regenerate. | |
4391 | ||
890e9790 TT |
4392 | 2017-10-09 Tom Tromey <tom@tromey.com> |
4393 | ||
4394 | * Makefile.in (COMPILE.post, POSTCOMPILE): Restore $(basename). | |
4395 | (COMPILE.pre): Use $(CXX). | |
4396 | ||
109483d9 PA |
4397 | 2017-10-09 Pedro Alves <palves@redhat.com> |
4398 | ||
4399 | * cp-support.c (cp_remove_params): Return a gdb::unique_xmalloc_ptr. | |
4400 | Use bool. | |
4401 | (overload_list_add_symbol): Adjust to use gdb::unique_xmalloc_ptr. | |
4402 | * cp-support.h (cp_remove_params): Now returns a | |
4403 | gdb::unique_xmalloc_ptr. | |
4404 | * dwarf2read.c (find_slot_in_mapped_hash): Now returns bool. | |
4405 | Adjust to cp_remove_params returning a gdb::unique_xmalloc_ptr. | |
4406 | * psymtab.c (psymtab_search_name): Adjust to cp_remove_params | |
4407 | returning a gdb::unique_xmalloc_ptr. | |
4408 | (lookup_partial_symbol): Adjust to use gdb::unique_xmalloc_ptr. | |
4409 | * stack.c (find_frame_funname): Adjust to cp_remove_params | |
4410 | returning a gdb::unique_xmalloc_ptr. | |
4411 | ||
791afaa2 TT |
4412 | 2017-10-08 Tom Tromey <tom@tromey.com> |
4413 | ||
4414 | * dwarf2read.c (dwarf2_get_dwz_file): Use | |
4415 | gdb::unique_xmalloc_ptr. | |
4416 | (find_slot_in_mapped_hash): Likewise. | |
4417 | (dwarf2_physname): Likewise. | |
4418 | (create_dwo_unit_in_dwp_v1): Use std::string. | |
4419 | (create_dwo_unit_in_dwp_v2): Likewise. | |
4420 | (lookup_dwo_cutu): Likewise. | |
4421 | (inherit_abstract_dies): Use std::vector. | |
4422 | (read_array_type): Likewise. | |
4423 | (dwarf_decode_macros): Remove unused declaration. | |
4424 | (unsigned_int_compar): Remove. | |
4425 | (dwarf2_build_psymtabs_hard): Use scoped_restore. | |
4426 | (psymtabs_addrmap_cleanup): Remove. | |
4427 | ||
30a9c02f TT |
4428 | 2017-10-08 Tom Tromey <tom@tromey.com> |
4429 | ||
4430 | * frame-unwind.c (frame_unwind_try_unwinder): Update. | |
4431 | * frame.h (frame_cleanup_after_sniffer): Declare. | |
4432 | (frame_prepare_for_sniffer): Return void. | |
4433 | * frame.c (frame_cleanup_after_sniffer): No longer static. Change | |
4434 | type of argument. | |
4435 | (frame_prepare_for_sniffer): Return void. | |
4436 | ||
757325a3 TT |
4437 | 2017-10-08 Tom Tromey <tom@tromey.com> |
4438 | ||
4439 | * utils.h (make_cleanup_value_free): Remove. | |
4440 | * utils.c (do_value_free, struct cleanup): Remove. | |
4441 | * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>: | |
4442 | Use gdb_value_up. | |
4443 | * value.h (struct value_deleter): New. | |
4444 | (gdb_value_up): New typedef. | |
4445 | ||
b9c04fb2 TT |
4446 | 2017-10-08 Tom Tromey <tom@tromey.com> |
4447 | ||
4448 | * symtab.c (free_search_symbols, do_free_search_symbols_cleanup) | |
4449 | (make_cleanup_free_search_symbols): Remove. | |
4450 | (search_symbols): Return std::vector. | |
4451 | (symbol_search::compare_search_syms): Now member of | |
4452 | symbol_search. Change arguments. | |
4453 | (sort_search_symbols_remove_dups): Change arguments. Rewrite. | |
4454 | (symtab_symbol_info, rbreak_command): Update. | |
4455 | * symtab.h (struct symbol_search) <next>: Remove. | |
4456 | Add constructors. | |
4457 | (symbol_search::operator<): New function. | |
4458 | (symbol_search::operator==): New function. | |
4459 | (search_symbols): Remove std::vector. | |
4460 | (free_search_symbols, make_cleanup_free_search_symbols): Remove. | |
4461 | (symbol_search::compare_search_syms): Declare. | |
4462 | ||
0d28b0a5 YQ |
4463 | 2017-10-06 Yao Qi <yao.qi@linaro.org> |
4464 | ||
4465 | * Makefile.in (ALL_64_TARGET_OBS): Replace aarch64-insn.o with | |
4466 | arch/aarch64-insn.o. | |
4467 | Remove one rule. | |
4468 | * configure.tgt: Replace aarch64-insn.o with arch/aarch64-insn.o. | |
4469 | ||
71917808 YQ |
4470 | 2017-10-06 Yao Qi <yao.qi@linaro.org> |
4471 | ||
4472 | * Makefile.in (ALL_TARGET_OBS): Replace arm.o, arm-get-next-pcs.o, | |
4473 | and arm-linux.o with arch/arm.o, arch/arm-get-next-pcs.o and | |
4474 | arch/arm-linux.o respectively. | |
4475 | * configure.tgt: Likewise. | |
4476 | ||
2081b2b2 YQ |
4477 | 2017-10-06 Yao Qi <yao.qi@linaro.org> |
4478 | ||
4479 | * Makefile.in (ALL_TARGET_OBS): Rename i386.o to arch/i386.o. | |
4480 | * configure.tgt (i386_tobjs): Replace i386.o with arch/i386.o. | |
4481 | ||
a1b85d28 PA |
4482 | 2017-10-06 Pedro Alves <palves@redhat.com> |
4483 | ||
4484 | * windows-nat.c: Include <algorithm>. | |
4485 | ||
d97987e2 YQ |
4486 | 2017-10-06 Yao Qi <yao.qi@linaro.org> |
4487 | ||
4488 | * configure.tgt (i386_tobjs): New variable. | |
4489 | (amd64_tobjs): New variable. | |
4490 | Set $cpu_obs and $os_obs. | |
4491 | ||
f38307f5 YQ |
4492 | 2017-10-06 Yao Qi <yao.qi@linaro.org> |
4493 | ||
4494 | * Makefile.in (CONFIG_SRC_SUBDIR): New. | |
4495 | (ALL_64_TARGET_OBS): Replace amd64.o with arch/amd64.o. | |
4496 | (clean): Remove object files and dependency files. | |
4497 | (distclean): Remove the directory. | |
4498 | * configure.ac: Invoke AC_CONFIG_COMMANDS. | |
4499 | * configure: Re-generated. | |
4500 | * configure.tgt: Replace amd64.o with arch/amd64.o. | |
4501 | ||
2f924de6 JM |
4502 | 2017-10-05 Jose E. Marchesi <jose.marchesi@oracle.com> |
4503 | ||
4504 | PR build/22188 | |
4505 | * arm-tdep.c (arm_decode_misc_memhint_neon): Fix decoding of CPS | |
4506 | and SETEND. | |
4507 | ||
2fd9d7ca PA |
4508 | 2017-10-05 Pedro Alves <palves@redhat.com> |
4509 | ||
4510 | * linux-nat.c (linux_child_follow_fork): When following the parent | |
4511 | and detaching the child, consult the parent thread's architecture | |
4512 | instead of the child's. | |
4513 | ||
d13b8493 UW |
4514 | 2017-10-05 Ulrich Weigand <uweigand@de.ibm.com> |
4515 | ||
4516 | * ax.h: Do not include "doublest.h". | |
4517 | (union agent_val): Remove. | |
4518 | ||
3b4b2f16 UW |
4519 | 2017-10-05 Ulrich Weigand <uweigand@de.ibm.com> |
4520 | ||
4521 | * dfp.h (MAX_DECIMAL_STRING): Move to dfp.c. | |
4522 | (decimal_to_string): Return std::string object. | |
4523 | (decimal_from_string): Accept std::string object. Return bool. | |
4524 | (decimal_from_integral, decimal_from_doublest): Remove. | |
4525 | (decimal_from_longest): Add prototype. | |
4526 | (decimal_from_ulongest): Likewise. | |
4527 | (decimal_to_longest): Likewise. | |
4528 | (decimal_from_doublest): Likewise. | |
4529 | * dfp.c: Do not include "gdbtypes.h" or "value.h". | |
4530 | (MAX_DECIMAL_STRING): Move here. | |
4531 | (decimal_to_string): Return std::string object. | |
4532 | (decimal_from_string): Accept std::string object. Return bool. | |
4533 | (decimal_from_integral): Remove, replace by ... | |
4534 | (decimal_from_longest, decimal_from_ulongest): ... these new functions. | |
4535 | (decimal_to_longest): New function. | |
4536 | (decimal_from_floating): Remove, replace by ... | |
4537 | (decimal_from_doublest): ... this new function. | |
4538 | (decimal_to_doublest): Update to new decimal_to_string interface. | |
4539 | ||
4540 | * value.c (unpack_long): Use decimal_to_longest. | |
4541 | * valops.c (value_cast): Use decimal_from_doublest instead of | |
4542 | decimal_from_floating. Use decimal_from_[u]longest isntead of | |
4543 | decimal_from_integral. | |
4544 | * valarith.c (value_args_as_decimal): Likewise. | |
4545 | * valprint.c (print_decimal_floating): Update to new | |
4546 | decimal_to_string interface. | |
4547 | * printcmd.c (printf_decfloat): Likewise. | |
4548 | * c-exp.y (parse_number): Update to new decimal_from_string interface. | |
4549 | ||
1841ee5d UW |
4550 | 2017-10-05 Ulrich Weigand <uweigand@de.ibm.com> |
4551 | ||
4552 | * doublest.h: Do not include "floatformat.h". Remove stale comments. | |
4553 | * gdbtypes.c: Include "floatformat.h". | |
4554 | * value.c: Likewise. | |
4555 | * m68k-tdep.c: Likewise. | |
4556 | ||
4557 | * findvar.c: Do not include "floatformat.h". | |
4558 | * amd64-darwin-tdep.c: Likewise. | |
4559 | * arm-linux-tdep.c: Likewise. | |
4560 | * i386-darwin-tdep.c: Likewise. | |
4561 | * i387-tdep.c: Likewise. | |
4562 | * m68k-linux-tdep.c: Likewise. | |
4563 | * mep-tdep.c: Likewise. | |
4564 | * mips-tdep.c: Likewise. | |
4565 | * nios2-tdep.c: Likewise. | |
4566 | * s390-linux-tdep.c: Likewise. | |
4567 | * sparc-obsd-tdep.c: Likewise. | |
4568 | * sparc-tdep.c: Likewise. | |
4569 | * sparc64-tdep.c: Likewise. | |
4570 | * spu-tdep.c: Likewise. | |
4571 | * tic6x-tdep.c: Likewise. | |
4572 | * tilegx-tdep.c: Likewise. | |
4573 | * vax-tdep.c: Likewise. | |
4574 | * xstormy16-tdep.c: Likewise. | |
4575 | * xtensa-tdep.c: Likewise. | |
4576 | ||
4577 | * top.c: Do not include "doublest.h". | |
4578 | * aarch64-tdep.c: Likewise. | |
4579 | * alpha-tdep.c: Likewise. | |
4580 | * arm-linux-tdep.c: Likewise. | |
4581 | * m68k-linux-tdep.c: Likewise. | |
4582 | * tilegx-tdep.c: Likewise. | |
4583 | * xstormy16-tdep.c: Likewise. | |
4584 | ||
a80a6471 JB |
4585 | 2017-10-05 John Baldwin <jhb@FreeBSD.org> |
4586 | ||
4587 | * mips-fbsd-tdep.c (MIPS_INST_ADDIU_A0_SP_N32): Define. | |
4588 | (mipsn32_fbsd_sigframe): Define. | |
4589 | (mips_fbsd_init_abi): Install mipsn32_fbsd_sigframe unwinder | |
4590 | for FreeBSD/mipsn32. | |
4591 | ||
12c4bd7f JB |
4592 | 2017-10-05 John Baldwin <jhb@FreeBSD.org> |
4593 | ||
4594 | * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_EHDRFLAGS and | |
4595 | AT_HWCAP. | |
4596 | ||
c91933e9 TG |
4597 | 2017-10-05 Tristan Gingold <tgingold@free.fr> |
4598 | ||
4599 | * MAINTAINERS (Misc): Update my email address. | |
4600 | ||
5cd63fda PA |
4601 | 2017-10-04 Pedro Alves <palves@redhat.com> |
4602 | ||
4603 | * remote.c (get_remote_arch_state): New 'gdbarch' parameter. Use | |
4604 | it instead of target_gdbarch. | |
4605 | (get_remote_state, get_remote_packet_size): Adjust | |
4606 | get_remote_arch_state calls, passing down target_gdbarch | |
4607 | explicitly. | |
4608 | (packet_reg_from_regnum, packet_reg_from_pnum): New parameter | |
4609 | 'gdbarch' and use it instead of target_gdbarch. | |
4610 | (get_memory_packet_size): Adjust get_remote_arch_state calls, | |
4611 | passing down target_gdbarch explicitly. | |
4612 | (struct stop_reply) <arch>: New field. | |
4613 | (remote_parse_stop_reply): Use the stopped thread's architecture, | |
4614 | not the current inferior's. Save the architecture in the | |
4615 | stop_reply. | |
4616 | (process_stop_reply): Use the stop reply's architecture. | |
4617 | (process_g_packet, remote_fetch_registers) | |
4618 | (remote_prepare_to_store, store_registers_using_G) | |
4619 | (remote_store_registers): Adjust get_remote_arch_state calls, | |
4620 | using the regcache's architecture. | |
4621 | (remote_get_trace_status): Adjust get_remote_arch_state calls, | |
4622 | passing down target_gdbarch explicitly. | |
4623 | * spu-multiarch.c (spu_thread_architecture): Defer to the target | |
4624 | beneath instead of calling target_gdbarch. | |
4625 | * target.c (default_thread_architecture): Use the specified | |
4626 | inferior's architecture, instead of the current inferior's | |
4627 | architecture (via target_gdbarch). | |
4628 | ||
ed4227b7 PA |
4629 | 2017-10-04 Pedro Alves <palves@redhat.com> |
4630 | ||
4631 | * regcache.c (get_thread_arch_regcache): Remove null_ptid special | |
4632 | case. | |
4633 | (regcache_print): Handle !target_has_registers here instead. | |
4634 | ||
55b11ddf PA |
4635 | 2017-10-04 Pedro Alves <palves@redhat.com> |
4636 | ||
4637 | * frame.c (create_test_frame): Delete. | |
4638 | * frame.h (create_test_frame): Delete. | |
4639 | * gdbarch-selftests.c: Include gdbthread.h and target.h. | |
4640 | (class regcache_test): Delete. | |
4641 | (test_target_has_registers, test_target_has_stack) | |
4642 | (test_target_has_memory, test_target_prepare_to_store) | |
4643 | (test_target_store_registers): New functions. | |
4644 | (test_target_ops): New class. | |
4645 | (register_to_value_test): Error out if there's already a | |
4646 | process_stratum (or higher) target pushed. Create a fuller mock | |
4647 | environment, with mock target_ops, inferior, address space, thread | |
4648 | and inferior_ptid. | |
4649 | * progspace.c (struct address_space): Move to ... | |
4650 | * progspace.h (struct address_space): ... here. | |
4651 | * regcache.h (regcache::~regcache, regcache::raw_write) | |
4652 | [GDB_SELF_TEST]: No longer virtual. | |
4653 | ||
4c71c105 SM |
4654 | 2017-10-04 Simon Marchi <simon.marchi@ericsson.com> |
4655 | ||
4656 | * mi/mi-main.c (list_available_thread_groups): Reverse filter logic. | |
4657 | ||
73dcd72d PA |
4658 | 2017-10-04 Pedro Alves <palves@redhat.com> |
4659 | ||
4660 | * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Move code | |
4661 | out of 'between TRY and CATCH'. | |
4662 | ||
44704526 PA |
4663 | 2017-10-04 Pedro Alves <palves@redhat.com> |
4664 | ||
4665 | * cli/cli-cmds.c (complete_command): Add missing END_CATCH. | |
4666 | * common/common-exceptions.h (TRY): Open an outermost scope. | |
4667 | Expand intro comment. | |
4668 | (CATCH): Reindent. | |
4669 | (END_CATCH): Close the outermost scope. | |
4670 | * completer.c (complete_line_internal): Add missing END_CATCH. | |
4671 | ||
bc3b087d SDJ |
4672 | 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com> |
4673 | ||
4674 | * NEWS (Changes since GDB 8.0): Add entry about new | |
4675 | 'set-cwd-on-gdbserver' feature. | |
4676 | (New remote packets): Add entry for QSetWorkingDir. | |
4677 | * common/common-inferior.h (set_inferior_cwd): New prototype. | |
4678 | * infcmd.c (set_inferior_cwd): Remove "static". | |
4679 | (show_cwd_command): Expand text to include remote debugging. | |
4680 | * remote.c: Add PACKET_QSetWorkingDir. | |
4681 | (remote_protocol_features) <QSetWorkingDir>: New entry for | |
4682 | PACKET_QSetWorkingDir. | |
4683 | (extended_remote_set_inferior_cwd): New function. | |
4684 | (extended_remote_create_inferior): Call | |
4685 | "extended_remote_set_inferior_cwd". | |
4686 | (_initialize_remote): Call "add_packet_config_cmd" for | |
4687 | QSetWorkingDir. | |
4688 | ||
d092c5a2 SDJ |
4689 | 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com> |
4690 | ||
4691 | * NEWS (New commands): Mention "set/show cwd". | |
4692 | * cli/cli-cmds.c (_initialize_cli_cmds): Mention "set cwd" on | |
4693 | "cd" command's help text. | |
4694 | * common/common-inferior.h (get_inferior_cwd): New prototype. | |
4695 | * infcmd.c (inferior_cwd_scratch): New global variable. | |
4696 | (set_inferior_cwd): New function. | |
4697 | (get_inferior_cwd): Likewise. | |
4698 | (set_cwd_command): Likewise. | |
4699 | (show_cwd_command): Likewise. | |
4700 | (_initialize_infcmd): Add "set/show cwd" commands. | |
4701 | * inferior.h (class inferior) <cwd>: New field. | |
4702 | * nat/fork-inferior.c: Include "gdb_tilde_expand.h". | |
4703 | (fork_inferior): Change inferior's cwd before its execution. | |
4704 | * windows-nat.c (windows_create_inferior): Pass inferior's cwd | |
4705 | to CreateProcess. | |
4706 | ||
7da0a886 SDJ |
4707 | 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com> |
4708 | ||
4709 | * Makefile.in (SFILES): Add gdb_tilde_expand.c. | |
4710 | (HFILES_NO_SRCDIR): Add gdb_tilde_expand.h. | |
4711 | (COMMON_OBS): Add gdb_tilde_expand.o. | |
4712 | * common/gdb_tilde_expand.c: New file. | |
4713 | * common/gdb_tilde_expand.h: Likewise. | |
4714 | ||
db8dd160 MR |
4715 | 2017-10-03 Maciej W. Rozycki <macro@imgtec.com> |
4716 | ||
4717 | * gdbarch.sh (objfile): Remove duplicate declaration. | |
4718 | * gdbarch.h: Regenerate. | |
4719 | ||
f8bfbf22 TT |
4720 | 2017-10-03 Tom Tromey <tom@tromey.com> |
4721 | ||
4722 | * utils.c (internal_vproblem): Use string_vprintf. | |
4723 | ||
5178ed48 TT |
4724 | 2017-10-03 Tom Tromey <tom@tromey.com> |
4725 | ||
4726 | * printcmd.c (info_symbol_command): Use std::string. | |
4727 | ||
8cff8730 TT |
4728 | 2017-10-03 Tom Tromey <tom@tromey.com> |
4729 | ||
4730 | * top.c (gdb_safe_append_history): Use std::string. | |
4731 | ||
895b8f30 TT |
4732 | 2017-10-03 Tom Tromey <tom@tromey.com> |
4733 | ||
4734 | * event-top.c (stdin_event_handler): Update. | |
4735 | * main.c (captured_main_1): Update. | |
4736 | * top.h (make_delete_ui_cleanup): Remove. | |
4737 | (struct ui): Add constructor and destructor. | |
4738 | (new_ui, delete_ui): Remove. | |
4739 | * top.c (make_delete_ui_cleanup): Remove. | |
4740 | (new_ui_command): Use std::unique_ptr. | |
4741 | (delete_ui_cleanup): Remove. | |
4742 | (ui::ui): Rename from new_ui. Update. | |
4743 | (free_ui): Remove. | |
4744 | (ui::~ui): Rename from delete_ui. Update. | |
4745 | ||
0efef640 TT |
4746 | 2017-10-03 Tom Tromey <tom@tromey.com> |
4747 | ||
4748 | * symfile.c (load_progress): Use gdb::byte_vector. | |
4749 | ||
245ad7d3 TT |
4750 | 2017-10-03 Tom Tromey <tom@tromey.com> |
4751 | ||
4752 | * mi/mi-main.c (mi_cmd_trace_frame_collected): Remove unused | |
4753 | declaration. | |
4754 | * printcmd.c (x_command): Remove unused declaration. | |
4755 | * symfile.c (symbol_file_command): Remove unused declaration. | |
4756 | ||
e05550d7 TT |
4757 | 2017-10-03 Tom Tromey <tom@tromey.com> |
4758 | ||
4759 | * utils.c (internal_vproblem): Use std::string. | |
4760 | (defaulted_query): Likewise. | |
4761 | ||
b95de2b7 TT |
4762 | 2017-10-03 Tom Tromey <tom@tromey.com> |
4763 | ||
4764 | * guile/scm-ports.c (ioscm_with_output_to_port_worker): Update. | |
4765 | * top.c (execute_command_to_string): Update. | |
4766 | * utils.c (make_cleanup_restore_page_info): Remove. | |
4767 | (do_restore_page_info_cleanup): Remove. | |
4768 | (set_batch_flag_and_restore_page_info): | |
4769 | New. | |
4770 | (make_cleanup_restore_page_info): Remove. | |
4771 | (set_batch_flag_and_make_cleanup_restore_page_info): Remove. | |
4772 | (~set_batch_flag_and_restore_page_info): New | |
4773 | (make_cleanup_restore_uinteger): Remove. | |
4774 | (make_cleanup_restore_integer): Remove. | |
4775 | (struct restore_integer_closure): Remove. | |
4776 | (restore_integer): Remove. | |
4777 | * utils.h (struct set_batch_flag_and_restore_page_info): New | |
4778 | class. | |
4779 | (set_batch_flag_and_make_cleanup_restore_page_info): Remove. | |
4780 | (make_cleanup_restore_page_info): Remove. | |
4781 | (make_cleanup_restore_uinteger) Remove. | |
4782 | (make_cleanup_restore_integer) Remove. | |
4783 | ||
07036511 TT |
4784 | 2017-10-03 Tom Tromey <tom@tromey.com> |
4785 | ||
4786 | * record-full.h (record_full_gdb_operation_disable_set): Return | |
4787 | scoped_restore_tmpl<int>. | |
4788 | * infrun.c (adjust_pc_after_break): Update. | |
4789 | (handle_signal_stop): Update. | |
4790 | * record-full.c (record_full_gdb_operation_disable_set): Return | |
4791 | scoped_restore_tmpl<int>. | |
4792 | (record_full_wait_1, record_full_insert_breakpoint) | |
4793 | (record_full_remove_breakpoint, record_full_save) | |
4794 | (record_full_goto_insn): Update. | |
4795 | ||
45320ffa TT |
4796 | 2017-10-02 Tom Tromey <tom@tromey.com> |
4797 | ||
4798 | PR rust/22236: | |
4799 | * rust-lang.c (rust_val_print_str): New function. | |
4800 | (val_print_struct): Call it. | |
4801 | (rust_subscript): Preserve name of slice type. | |
4802 | ||
b3e3859b TT |
4803 | 2017-10-02 Tom Tromey <tom@tromey.com> |
4804 | ||
4805 | * rust-lang.c (rust_subscript): Handle slices in | |
4806 | EVAL_AVOID_SIDE_EFFECTS case. | |
4807 | ||
01af5e0d TT |
4808 | 2017-10-02 Tom Tromey <tom@tromey.com> |
4809 | ||
4810 | * rust-lang.c (rust_slice_type_p): Recognize &str as a slice type. | |
4811 | ||
888e3ddb TT |
4812 | 2017-10-02 Tom Tromey <tom@tromey.com> |
4813 | ||
4814 | * rust-lang.h (rust_slice_type): Add "extern". | |
4815 | ||
cc536b21 PA |
4816 | 2017-10-02 Tom Tromey <tom@tromey.com> |
4817 | Pedro Alves <palves@redhat.com> | |
4818 | ||
4819 | * ada-lang.h (ada_exc_info::operator<): Make const. | |
4820 | (ada_exc_info::operator==): Make const. | |
4821 | * ada-lang.c (ada_exc_info::operator<, ada_exc_info::operator==): | |
4822 | Make const. | |
4823 | ||
386c8614 TT |
4824 | 2017-09-29 Tom Tromey <tom@tromey.com> |
4825 | ||
4826 | * target.c (read_whatever_is_readable): Change type of "result". | |
4827 | Update. | |
4828 | (free_memory_read_result_vector): Remove. | |
4829 | (read_memory_robust): Change return type. Update. | |
4830 | * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Update. Use | |
4831 | bin2hex, std::string. | |
4832 | * target.h (memory_read_result_s): Remove typedef. | |
4833 | (free_memory_read_result_vector): Remove. | |
4834 | (read_memory_robust): Return std::vector. | |
4835 | ||
789c4b5e TT |
4836 | 2017-09-29 Tom Tromey <tom@tromey.com> |
4837 | ||
4838 | * mi/mi-main.c (captured_mi_execute_command): Use scope_restore. | |
4839 | ||
ab816a27 TT |
4840 | 2017-09-29 Tom Tromey <tom@tromey.com> |
4841 | ||
4842 | * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Update. | |
4843 | * ada-lang.h (struct ada_exc_info): Remove typedef. Declare | |
4844 | operator< and operator==. | |
4845 | (ada_exceptions_list): Return a std::vector. | |
4846 | * ada-lang.c (ada_exc_info::operator<): Rename from | |
4847 | compare_ada_exception_info. | |
4848 | (ada_exc_info::operator==): New. | |
4849 | (sort_remove_dups_ada_exceptions_list): Change type of | |
4850 | "exceptions". | |
4851 | (ada_add_standard_exceptions, ada_add_exceptions_from_frame) | |
4852 | (ada_add_global_exceptions): Likewise. | |
4853 | (ada_exceptions_list_1): Return a std::vector. | |
4854 | (ada_exceptions_list): Likewise. | |
4855 | ||
52f9abe4 TT |
4856 | 2017-09-29 Tom Tromey <tom@tromey.com> |
4857 | ||
4858 | * mi/mi-main.c (struct print_one_inferior_data) <inferiors>: Now a | |
4859 | 'std::set *'. | |
4860 | (print_one_inferior): Update. | |
4861 | (free_vector_of_ints): Remove. | |
4862 | (list_available_thread_groups): Change "ids" to std::set. | |
4863 | (mi_cmd_list_thread_groups): Update. | |
4864 | (struct collect_cores_data) <core>: Now a std::set. | |
4865 | (collect_cores): Update. | |
4866 | (unique): Remove. | |
4867 | (print_one_inferior): Update. | |
4868 | ||
dcd5ddcc TT |
4869 | 2017-09-29 Tom Tromey <tom@tromey.com> |
4870 | ||
4871 | * mi/mi-main.c (mi_execute_cli_command): Use std::string. | |
4872 | (mi_execute_async_cli_command): Likewise. | |
4873 | (mi_cmd_trace_frame_collected): Use field_fmt. | |
4874 | ||
45d288cc TT |
4875 | 2017-09-29 Tom Tromey <tom@tromey.com> |
4876 | ||
4877 | * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Use | |
4878 | gdb::byte_vector. | |
4879 | ||
6afe2f4a TT |
4880 | 2017-09-29 Tom Tromey <tom@tromey.com> |
4881 | ||
4882 | * mi/mi-parse.c (mi_parse): Remove unused declaration. | |
4883 | ||
9813429a TT |
4884 | 2017-09-29 Tom Tromey <tom@tromey.com> |
4885 | ||
4886 | * mi/mi-cmd-disas.c (mi_cmd_disassemble): Don't copy "oarg". | |
4887 | ||
2d6960b4 TT |
4888 | 2017-09-29 Tom Tromey <tom@tromey.com> |
4889 | ||
4890 | * varobj.h (varobj_gen_name): Return std::string. | |
4891 | * varobj.c (varobj_gen_name): Return std::string. | |
4892 | * mi/mi-cmd-var.c (mi_cmd_var_create): Use std::string. | |
4893 | (mi_cmd_var_delete): Don't copy "name". | |
4894 | ||
784c453a TT |
4895 | 2017-09-29 Tom Tromey <tom@tromey.com> |
4896 | ||
4897 | * mi/mi-cmd-break.c (mi_argv_to_format): Return std::string. | |
4898 | (mi_cmd_break_insert_1): Update. | |
4899 | ||
a9bc57b9 TT |
4900 | 2017-09-29 Tom Tromey <tom@tromey.com> |
4901 | ||
4902 | * target.h (make_scoped_defer_target_commit_resume): Update. | |
4903 | * target.c (make_scoped_defer_target_commit_resume): Rename from | |
4904 | make_cleanup_defer_target_commit_resume. Return a | |
4905 | scoped_restore. | |
4906 | * infrun.c (proceed): Use make_scoped_defer_target_commit_resume. | |
4907 | ||
9754d8c4 TT |
4908 | 2017-09-29 Tom Tromey <tom@tromey.com> |
4909 | ||
4910 | * main.c (captured_main_1): Remove unused declaration. | |
4911 | * spu-multiarch.c (parse_spufs_run): Remove unused declaration. | |
4912 | ||
99ef965c TT |
4913 | 2017-09-29 Tom Tromey <tom@tromey.com> |
4914 | ||
4915 | * symtab.c (search_symbols): Remove unused outer cleanup. | |
4916 | (make_source_files_completion_list): Remove unused declaration. | |
4917 | ||
42518ba7 TT |
4918 | 2017-09-29 Tom Tromey <tom@tromey.com> |
4919 | ||
4920 | * mt-tdep.c (mt_push_dummy_call): Use gdb::byte_vector. | |
4921 | ||
726b2169 TT |
4922 | 2017-09-29 Tom Tromey <tom@tromey.com> |
4923 | ||
4924 | * xstormy16-tdep.c (xstormy16_push_dummy_call): Use | |
4925 | gdb::byte_vector. | |
4926 | ||
55b06432 TT |
4927 | 2017-09-29 Tom Tromey <tom@tromey.com> |
4928 | ||
4929 | * complaints.c (vcomplaint): Use std::string. | |
4930 | ||
8abcee91 TT |
4931 | 2017-09-29 Tom Tromey <tom@tromey.com> |
4932 | ||
4933 | * tracepoint.c (trace_variable_command): Use std::string. | |
4934 | (encode_actions_1): Remove unused declarations. | |
4935 | (create_tsv_from_upload): Use std::string. | |
4936 | ||
6ad94bc7 TT |
4937 | 2017-09-29 Tom Tromey <tom@tromey.com> |
4938 | ||
4939 | * cp-support.c (gdb_demangle): Use std::string. | |
4940 | ||
2003f3d8 TT |
4941 | 2017-09-29 Tom Tromey <tom@tromey.com> |
4942 | ||
4943 | * stack.c (parse_frame_specification): Use std::string | |
4944 | (info_frame_command): Use gdb::unique_xmalloc_ptr. | |
4945 | ||
8f8accb5 TT |
4946 | 2017-09-29 Tom Tromey <tom@tromey.com> |
4947 | ||
4948 | * tilegx-tdep.c (tilegx_push_dummy_call): Use gdb::byte_vector. | |
4949 | ||
200aa7b1 TT |
4950 | 2017-09-29 Tom Tromey <tom@tromey.com> |
4951 | ||
4952 | * utils.c (vfprintf_maybe_filtered): Use std::string. | |
4953 | (vfprintf_unfiltered): Likewise. | |
4954 | ||
606aae8a TT |
4955 | 2017-09-29 Tom Tromey <tom@tromey.com> |
4956 | ||
4957 | * event-top.c (top_level_prompt): Return std::string. | |
4958 | (display_gdb_prompt): Update. | |
4959 | ||
bd413795 TT |
4960 | 2017-09-29 Tom Tromey <tom@tromey.com> |
4961 | ||
4962 | * unittests/common-utils-selftests.c (format): New function. | |
4963 | (string_vprintf_tests): New function. | |
4964 | (_initialize_common_utils_selftests): Register new tests. | |
4965 | * common/common-utils.c (string_vprintf): New function. | |
4966 | * common/common-utils.h (string_vprintf): Declare. | |
4967 | ||
256642e8 PA |
4968 | 2017-09-29 Pedro Alves <palves@redhat.com> |
4969 | ||
4970 | * common/rsp-low.c (unpack_varlen_hex): Constify. | |
4971 | * common/rsp-low.h (unpack_varlen_hex): Constify. | |
4972 | * linux-nat.c (linux_child_static_tracepoint_markers_by_strid): | |
4973 | Constify. | |
4974 | * remote.c (remote_set_permissions, read_ptid) | |
4975 | (remote_current_thread, remote_get_threads_with_qthreadinfo) | |
4976 | (remote_static_tracepoint_marker_at) | |
4977 | (remote_static_tracepoint_markers_by_strid) | |
4978 | (stop_reply_extract_thread, remote_parse_stop_reply): Constify. | |
4979 | * tracepoint.c (parse_trace_status, parse_tracepoint_status) | |
4980 | (parse_tracepoint_definition, parse_tsv_definition) | |
4981 | (parse_static_tracepoint_marker_definition): Constify. | |
4982 | * tracepoint.h (parse_static_tracepoint_marker_definition) | |
4983 | (parse_trace_status, parse_tracepoint_status) | |
4984 | (parse_tracepoint_definition, parse_tsv_definition): Constify. | |
4985 | ||
b6bb3468 PA |
4986 | 2017-09-29 Pedro Alves <palves@redhat.com> |
4987 | ||
4988 | * remote.c (target_buf, target_buf_size): Delete. | |
4989 | (remote_get_noisy_reply): Remove buf_p and sizeof_buf parameters. | |
4990 | Use the connection's packet buffer instead. | |
4991 | All callers adjusted. | |
4992 | (_initialize_remote): Remove references to target_buf and | |
4993 | target_buf_size. | |
4994 | ||
b2f8eb7a PA |
4995 | 2017-09-28 Pedro Alves <palves@redhat.com> |
4996 | ||
4997 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add | |
4998 | unittests/common-utils-selftests.c. | |
4999 | (SUBDIR_UNITTESTS_OBS): Add common-utils-selftests.o. | |
5000 | (COMMON_OBS): Remove utils-selftests.o. | |
5001 | * utils-selftests.c: Move to ... | |
5002 | * unittests/common-utils-selftests.c: ... here and rename self | |
5003 | test to "string_printf". | |
5004 | ||
08302ed2 DE |
5005 | 2017-09-28 Alexander Shaposhnikov <alexander.v.shaposhnikov@gmail.com> (tiny patch) |
5006 | ||
5007 | * dwarf2read.c (open_and_init_dwp_file): Protect against dwp_file | |
5008 | having NULL cus or tus. | |
5009 | ||
96a5a1d3 UW |
5010 | 2017-09-27 Ulrich Weigand <uweigand@de.ibm.com> |
5011 | ||
5012 | * arm-tdep.c: (convert_from_extended): Remove. | |
5013 | (convert_to_extended): Likewise. | |
5014 | (arm_extract_return_value): Use convert_typed_floating. | |
5015 | (arm_store_return_value): Likewise. | |
5016 | ||
5017 | * sh-tdep.h (struct gdbarch_tdep): Add sh_littlebyte_bigword_type. | |
5018 | * sh-tdep.c: Do not include "floatformat.h". | |
5019 | (sh_littlebyte_bigword_type): New function. | |
5020 | (sh_register_convert_to_virtual): Use convert_typed_floating. | |
5021 | (sh_register_convert_to_raw): Likewise. | |
5022 | * sh64-tdep.c: (struct gdbarch_tdep): Add sh_littlebyte_bigword_type. | |
5023 | (sh64_littlebyte_bigword_type): New function. | |
5024 | (sh64_extract_return_value): Use convert_typed_floating. | |
5025 | (sh64_register_convert_to_virtual): Likewise. | |
5026 | (sh64_register_convert_to_raw): Likewise. | |
5027 | ||
0db7851f UW |
5028 | 2017-09-27 Ulrich Weigand <uweigand@de.ibm.com> |
5029 | ||
5030 | * doublest.h (floatformat_from_type): Move to gdbtypes.h. | |
5031 | * doublest.c (floatformat_from_type): Move to gdbtypes.c. | |
5032 | ||
5033 | * gdbtypes.h (union type_specific): Make field floatformat hold | |
5034 | just a single struct floatformat, not an array. | |
5035 | (floatformat_from_type): Move here. | |
5036 | * gdbtypes.c (floatformat_from_type): Move here. Update to | |
5037 | changed TYPE_FLOATFORMAT definition. | |
5038 | (verify_floatformat): Update to changed TYPE_FLOATFORMAT. | |
5039 | (recursive_dump_type): Likewise. | |
5040 | (init_float_type): Install correct floatformat for byte order. | |
5041 | (arch_float_type): Likewise. | |
5042 | ||
77b7c781 UW |
5043 | 2017-09-27 Ulrich Weigand <uweigand@de.ibm.com> |
5044 | ||
5045 | * gdbtypes.c (init_type): Change incoming argument from | |
5046 | length-in-bytes to length-in-bits. Assert length is a | |
5047 | multiple of TARGET_CHAR_BITS. | |
5048 | (arch_type, arch_flags_type): Likewise. | |
5049 | (init_integer_type): Update call to init_type. | |
5050 | (init_character_type): Likewise. | |
5051 | (init_boolean_type): Likewise. | |
5052 | (init_float_type): Likewise. | |
5053 | (init_decfloat_type): Likewise. | |
5054 | (init_complex_type): Likewise. | |
5055 | (init_pointer_type): Likewise. | |
5056 | (objfile_type): Likewise. | |
5057 | (arch_integer_type): Update call to arch_type. | |
5058 | (arch_character_type): Likewise. | |
5059 | (arch_boolean_type): Likewise. | |
5060 | (arch_float_type): Likewise. | |
5061 | (arch_decfloat_type): Likewise. | |
5062 | (arch_complex_type): Likewise. | |
5063 | (arch_pointer_type): Likewise. | |
5064 | (gdbtypes_post_init): Likewise. | |
5065 | ||
5066 | * dwarf2read.c (dwarf2_init_float_type): Update call to init_type. | |
5067 | (read_base_type): Likewise. | |
5068 | * mdebugread.c (basic_type): Likewise. | |
5069 | * stabsread.c (dbx_init_float_type): Likewise. | |
5070 | (rs6000_builtin_type): Likewise. | |
5071 | (read_range_type): Likewise. Also, fix call to init_integer_type | |
5072 | with erroneous length argument. | |
5073 | ||
5074 | * ada-lang.c (ada_language_arch_info): Update call to arch_type. | |
5075 | * d-lang.c (build_d_types): Likewise. | |
5076 | * f-lang.c (build_fortran_types): Likewise. | |
5077 | * go-lang.c (build_go_types): Likewise. | |
5078 | * opencl-lang.c (build_opencl_types): Likewise. | |
5079 | * jit.c (finalize_symtab): Likewise. | |
5080 | * gnu-v3-abi.c (build_gdb_vtable_type): Likewise. | |
5081 | (build_std_type_info_type): Likewise. | |
5082 | * target-descriptions.c (tdesc_gdb_type): Likewise. Also, | |
5083 | update call to arch_flags_type. | |
5084 | ||
5085 | * linux-tdep.c (linux_get_siginfo_type_with_fields): Update call to | |
5086 | arch_type. | |
5087 | * fbsd-tdep.c (fbsd_get_siginfo_type): Likewise. | |
5088 | * windows-tdep.c (windows_get_tlb_type): Likewise. | |
5089 | ||
5090 | * avr-tdep.c (avr_gdbarch_init): Update call to arch_type. | |
5091 | * ft32-tdep.c (ft32_gdbarch_init): Likewise. | |
5092 | * m32c-tdep.c (make_types): Likewise. | |
5093 | * rl78-tdep.c (rl78_gdbarch_init): Likewise. | |
5094 | (rl78_psw_type): Update call to arch_flags_type. | |
5095 | * m68k-tdep.c (m68k_ps_type): Update call to arch_flags_type. | |
5096 | * rx-tdep.c (rx_psw_type): Likewise. | |
5097 | (rx_fpsw_type): Likewise. | |
5098 | * sparc-tdep.c (sparc_psr_type): Likewise. | |
5099 | (sparc_fsr_type): Likewise. | |
5100 | * sparc64-tdep.c (sparc64_pstate_type): Likewise. | |
5101 | (sparc64_ccr_type): Likewise. | |
5102 | (sparc64_fsr_type): Likewise. | |
5103 | (sparc64_fprs_type): Likewise. | |
5104 | ||
f21b4d5c TT |
5105 | 2017-09-27 Tom Tromey <tom@tromey.com> |
5106 | ||
5107 | * findcmd.c (find_command): Constify. | |
5108 | ||
643c2ffa TT |
5109 | 2017-09-27 Tom Tromey <tom@tromey.com> |
5110 | ||
5111 | * ada-tasks.c (task_command_1, task_command): Constify. | |
5112 | ||
510e5e56 TT |
5113 | 2017-09-27 Tom Tromey <tom@tromey.com> |
5114 | ||
5115 | * symtab.c (maintenance_print_symbol_cache) | |
5116 | (maintenance_flush_symbol_cache) | |
5117 | (maintenance_print_symbol_cache_statistics): Constify. | |
5118 | ||
e503b191 TT |
5119 | 2017-09-27 Tom Tromey <tom@tromey.com> |
5120 | ||
5121 | * inferior.c (detach_inferior_command, kill_inferior_command) | |
5122 | (inferior_command): Constify. | |
5123 | ||
4e001312 TT |
5124 | 2017-09-27 Tom Tromey <tom@tromey.com> |
5125 | ||
5126 | * regcache.c (regcache_print, maintenance_print_registers) | |
5127 | (maintenance_print_raw_registers) | |
5128 | (maintenance_print_cooked_registers) | |
5129 | (maintenance_print_register_groups) | |
5130 | (maintenance_print_remote_registers): Constify. | |
5131 | ||
77763700 TT |
5132 | 2017-09-27 Tom Tromey <tom@tromey.com> |
5133 | ||
5134 | * printcmd.c (map_display_numbers, undisplay_command) | |
5135 | (enable_disable_display_command, enable_display_command) | |
5136 | (disable_display_command): Constify. | |
5137 | ||
4495129a TT |
5138 | 2017-09-27 Tom Tromey <tom@tromey.com> |
5139 | ||
5140 | * breakpoint.h (delete_command): Don't declare. | |
5141 | * breakpoint.c (delete_command, enable_once_command) | |
5142 | (enable_count_command, enable_delete_command, breakpoint_1) | |
5143 | (maintenance_info_breakpoints, stopin_command, stopat_command) | |
5144 | (delete_command, delete_trace_command, save_breakpoints) | |
5145 | (save_breakpoints_command, save_tracepoints_command): Constify. | |
5146 | ||
3088cf40 TT |
5147 | 2017-09-27 Tom Tromey <tom@tromey.com> |
5148 | ||
5149 | * macrocmd.c (macro_expand_command, macro_expand_once_command) | |
5150 | (skip_ws, extract_identifier, macro_define_command) | |
5151 | (macro_undef_command, macro_list_command): Constify. | |
5152 | ||
69f476a3 TT |
5153 | 2017-09-27 Tom Tromey <tom@tromey.com> |
5154 | ||
5155 | * infcmd.c (environment_info, set_environment_command) | |
5156 | (unset_environment_command, path_info, info_proc_cmd_1) | |
5157 | (info_proc_cmd_mappings, info_proc_cmd_stat) | |
5158 | (info_proc_cmd_status, info_proc_cmd_cwd, info_proc_cmd_cmdline) | |
5159 | (info_proc_cmd_exe, info_proc_cmd_all): Constify. | |
5160 | ||
c4a3e68e TT |
5161 | 2017-09-27 Tom Tromey <tom@tromey.com> |
5162 | ||
5163 | * i386-tdep.c (i386_mpx_info_bounds, i386_mpx_set_bounds): | |
5164 | Constify. | |
5165 | ||
c9d31bd6 TT |
5166 | 2017-09-27 Tom Tromey <tom@tromey.com> |
5167 | ||
5168 | * symfile-mem.c (add_symbol_file_from_memory_command): Constify. | |
5169 | ||
1f3f85eb TT |
5170 | 2017-09-27 Tom Tromey <tom@tromey.com> |
5171 | ||
5172 | * demangle.c (demangle_command): Constify. | |
5173 | ||
9c504b5d TT |
5174 | 2017-09-27 Tom Tromey <tom@tromey.com> |
5175 | ||
5176 | * progspace.c (maintenance_info_program_spaces_command): | |
5177 | Constify. | |
5178 | ||
6663cf91 TT |
5179 | 2017-09-27 Tom Tromey <tom@tromey.com> |
5180 | ||
5181 | * compile/compile.c (check_raw_argument, compile_file_command) | |
5182 | (compile_code_command, compile_print_command): Constify. | |
5183 | ||
34e5fa26 TT |
5184 | 2017-09-27 Tom Tromey <tom@tromey.com> |
5185 | ||
5186 | * reggroups.c (maintenance_print_reggroups): Constify. | |
5187 | ||
8384c356 TT |
5188 | 2017-09-27 Tom Tromey <tom@tromey.com> |
5189 | ||
5190 | * dwarf2read.c (save_gdb_index_command): Constify. | |
5191 | ||
884beb0c TT |
5192 | 2017-09-27 Tom Tromey <tom@tromey.com> |
5193 | ||
5194 | * stap-probe.c (info_probes_stap_command): Constify. | |
5195 | ||
e0b2930c TT |
5196 | 2017-09-27 Tom Tromey <tom@tromey.com> |
5197 | ||
5198 | * fork-child.c (unset_exec_wrapper_command): Constify. | |
5199 | ||
f938677d TT |
5200 | 2017-09-27 Tom Tromey <tom@tromey.com> |
5201 | ||
5202 | * btrace.c (get_uint, get_context_size, no_chunk) | |
5203 | (maint_btrace_packet_history_cmd) | |
5204 | (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd) | |
5205 | (maint_info_btrace_cmd): Constify. | |
5206 | ||
8949cb87 TT |
5207 | 2017-09-27 Tom Tromey <tom@tromey.com> |
5208 | ||
5209 | * reverse.c (delete_bookmark_command): Constify. | |
5210 | ||
ac88e2de TT |
5211 | 2017-09-27 Tom Tromey <tom@tromey.com> |
5212 | ||
5213 | * remote.c (set_memory_packet_size) | |
5214 | (set_memory_write_packet_size, show_memory_write_packet_size) | |
5215 | (set_memory_read_packet_size, show_memory_read_packet_size) | |
5216 | (compare_sections_command, packet_command, remote_put_command) | |
5217 | (remote_get_command, remote_delete_command): Constify. | |
5218 | ||
bd4c9dfe TT |
5219 | 2017-09-27 Tom Tromey <tom@tromey.com> |
5220 | ||
5221 | * mips-tdep.c (show_mipsfpu_command, set_mipsfpu_single_command) | |
5222 | (set_mipsfpu_double_command, set_mipsfpu_none_command) | |
5223 | (set_mipsfpu_auto_command): Constify. | |
5224 | ||
5e93d4c6 TT |
5225 | 2017-09-27 Tom Tromey <tom@tromey.com> |
5226 | ||
5227 | * cli/cli-cmds.h (cd_command): Constify. | |
5228 | * cli/cli-cmds.c (cd_command): Constify. | |
5229 | ||
fc41a75b TT |
5230 | 2017-09-27 Tom Tromey <tom@tromey.com> |
5231 | ||
5232 | * thread.c (thread_name_command, thread_find_command): Constify. | |
5233 | ||
67810076 TT |
5234 | 2017-09-27 Tom Tromey <tom@tromey.com> |
5235 | ||
5236 | * probe.c (enable_probes_command, disable_probes_command): | |
5237 | Constify. | |
5238 | ||
1d8b34a7 TT |
5239 | 2017-09-27 Tom Tromey <tom@tromey.com> |
5240 | ||
5241 | * symfile.c (symbol_file_command): Constify. | |
5242 | * gdbcore.h (deprecated_file_changed_hook): Constify. | |
5243 | * exec.c (deprecated_file_changed_hook, exec_file_command) | |
5244 | (file_command): Constify. | |
5245 | * defs.h (symbol_file_command): Constify. | |
5246 | ||
442019e1 TT |
5247 | 2017-09-27 Tom Tromey <tom@tromey.com> |
5248 | ||
5249 | * remote-fileio.c (set_system_call_allowed) | |
5250 | (show_system_call_allowed): Constify. | |
5251 | ||
2983f7cb TT |
5252 | 2017-09-27 Tom Tromey <tom@tromey.com> |
5253 | ||
5254 | * tracepoint.c (delete_trace_variable_command) | |
5255 | (tfind_end_command, tfind_start_command, tfind_pc_command) | |
5256 | (tfind_tracepoint_command, tfind_line_command) | |
5257 | (tfind_range_command, tfind_outside_command): Constify. | |
5258 | ||
4fd41b24 TT |
5259 | 2017-09-27 Tom Tromey <tom@tromey.com> |
5260 | ||
5261 | * ax-gdb.c (maint_agent_printf_command, agent_command) | |
5262 | (agent_eval_command): Constify. | |
5263 | ||
f2fc3015 TT |
5264 | 2017-09-27 Tom Tromey <tom@tromey.com> |
5265 | ||
5266 | * tracepoint.c (info_scope_command): Constify. | |
5267 | * python/python.c (gdbpy_decode_line): Constify. | |
5268 | * python/py-breakpoint.c (bppy_init): Constify. | |
5269 | * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Constify. | |
5270 | * location.h: (new_linespec_location) | |
5271 | (string_to_event_location_basic, string_to_event_location): | |
5272 | Constify. | |
5273 | * location.c (new_linespec_location) | |
5274 | (string_to_event_location_basic, string_to_event_location): | |
5275 | Constify. | |
5276 | * linespec.h (decode_line_with_current_source) | |
5277 | (decode_line_with_last_displayed, linespec_lex_to_end): Constify. | |
5278 | * linespec.c (linespec_lex_to_end) | |
5279 | (decode_line_with_current_source) | |
5280 | (decode_line_with_last_displayed): Constify. | |
5281 | * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): | |
5282 | Constify. | |
5283 | * cli/cli-cmds.c (edit_command, list_command): Constify. | |
5284 | * breakpoint.h (until_break_command, watch_command_wrapper) | |
5285 | (awatch_command_wrapper, rwatch_command_wrapper) | |
5286 | (init_ada_exception_breakpoint): Constify. | |
5287 | * breakpoint.c (break_command_1, dprintf_command) | |
5288 | (break_range_command, watch_command_wrapper) | |
5289 | (rwatch_command_wrapper, awatch_command_wrapper) | |
5290 | (until_break_command, init_ada_exception_breakpoint) | |
5291 | (strace_marker_create_sals_from_location, trace_command) | |
5292 | (ftrace_command, strace_command, struct tracepoint): Constify. | |
5293 | * ax-gdb.c (agent_command_1): Constify. | |
5294 | * ada-lang.c (ada_exception_sal): Constify. | |
5295 | ||
8c2f95f4 TT |
5296 | 2017-09-27 Tom Tromey <tom@tromey.com> |
5297 | ||
5298 | * record.c (cmd_record_delete, cmd_record_stop, cmd_record_save) | |
5299 | (cmd_record_goto_begin, cmd_record_goto_end, get_insn_number) | |
5300 | (get_context_size, no_chunk, get_insn_history_modifiers) | |
5301 | (cmd_record_insn_history, get_call_history_modifiers) | |
5302 | (cmd_record_call_history): Constify. | |
5303 | ||
a0d65762 TT |
5304 | 2017-09-27 Tom Tromey <tom@tromey.com> |
5305 | ||
5306 | * source.c (show_substitute_path_command) | |
5307 | (unset_substitute_path_command, set_substitute_path_command): | |
5308 | Constify. | |
5309 | ||
58971144 TT |
5310 | 2017-09-27 Tom Tromey <tom@tromey.com> |
5311 | ||
5312 | * typeprint.c (maintenance_print_type): Constify. | |
5313 | * maint.c (maintenance_dump_me, maintenance_demangle) | |
5314 | (maintenance_time_display, maintenance_info_sections) | |
5315 | (maintenance_print_statistics, maintenance_deprecate) | |
5316 | (maintenance_undeprecate): Constify. | |
5317 | (maintenance_do_deprecate): Constify. Use std::string. | |
5318 | (maintenance_selftest): Constify. | |
5319 | * gdbtypes.h (maintenance_print_type): Constify. | |
5320 | ||
c482f52c TT |
5321 | 2017-09-27 Tom Tromey <tom@tromey.com> |
5322 | ||
5323 | * hppa-tdep.c (unwind_command): Constify. | |
5324 | ||
e100df1a TT |
5325 | 2017-09-27 Tom Tromey <tom@tromey.com> |
5326 | ||
5327 | * target-descriptions.c (unset_tdesc_filename_cmd) | |
5328 | (maint_print_c_tdesc_cmd, maintenance_check_xml_descriptions): | |
5329 | Constify. | |
5330 | ||
31d56ade TT |
5331 | 2017-09-27 Tom Tromey <tom@tromey.com> |
5332 | ||
5333 | * dummy-frame.c (maintenance_print_dummy_frames): Constify. | |
5334 | ||
b961da0b TT |
5335 | 2017-09-27 Tom Tromey <tom@tromey.com> |
5336 | ||
5337 | * tui/tui.c (tui_enable_command, tui_disable_command): Constify. | |
5338 | ||
e2d8ae16 TT |
5339 | 2017-09-27 Tom Tromey <tom@tromey.com> |
5340 | ||
5341 | * tui/tui-regs.c (tui_reg_command): Constify. | |
5342 | ||
863779b0 TT |
5343 | 2017-09-27 Tom Tromey <tom@tromey.com> |
5344 | ||
5345 | * skip.c (skip_file_command, skip_function_command) | |
5346 | (skip_enable_command, skip_disable_command, skip_delete_command): | |
5347 | Constify. | |
5348 | ||
cdb34d4a TT |
5349 | 2017-09-27 Tom Tromey <tom@tromey.com> |
5350 | ||
5351 | * record-btrace.c (cmd_record_btrace_bts_start) | |
5352 | (cmd_record_btrace_pt_start): Constify. | |
5353 | ||
e99c83e7 TT |
5354 | 2017-09-27 Tom Tromey <tom@tromey.com> |
5355 | ||
5356 | * symmisc.c (maintenance_print_symbols) | |
5357 | (maintenance_print_msymbols, maintenance_print_objfiles) | |
5358 | (maintenance_info_symtabs, maintenance_check_symtabs) | |
5359 | (maintenance_expand_symtabs, maintenance_info_line_tables): | |
5360 | Constify. | |
5361 | ||
32faf971 TT |
5362 | 2017-09-27 Tom Tromey <tom@tromey.com> |
5363 | ||
5364 | * top.c (new_ui_command): Constify. | |
5365 | ||
2cf311eb TT |
5366 | 2017-09-27 Tom Tromey <tom@tromey.com> |
5367 | ||
5368 | * symfile.c (add_symbol_file_command) | |
5369 | (remove_symbol_file_command, list_overlays_command) | |
5370 | (map_overlay_command, unmap_overlay_command) | |
5371 | (overlay_auto_command, overlay_manual_command) | |
5372 | (overlay_off_command, overlay_load_command): Constify. | |
5373 | ||
e6738699 TT |
5374 | 2017-09-27 Tom Tromey <tom@tromey.com> |
5375 | ||
5376 | * spu-tdep.c (info_spu_event_command, info_spu_signal_command) | |
5377 | (info_spu_mailbox_command, info_spu_dma_command) | |
5378 | (info_spu_proxydma_command): Constify. | |
5379 | ||
aa360cd5 TT |
5380 | 2017-09-27 Tom Tromey <tom@tromey.com> |
5381 | ||
5382 | * cli/cli-logging.c (set_logging_on, set_logging_off): Constify. | |
5383 | ||
898241a5 TT |
5384 | 2017-09-27 Tom Tromey <tom@tromey.com> |
5385 | ||
5386 | * cli/cli-script.c (user_defined_command): Constify. | |
5387 | ||
2d0ac106 TT |
5388 | 2017-09-27 Tom Tromey <tom@tromey.com> |
5389 | ||
5390 | * cli/cli-dump.c (dump_memory_command, dump_value_command) | |
5391 | (dump_srec_memory, dump_srec_value, dump_ihex_memory) | |
5392 | (dump_ihex_value, dump_verilog_memory, dump_verilog_value) | |
5393 | (dump_tekhex_memory, dump_tekhex_value, dump_binary_memory) | |
5394 | (dump_binary_value, append_binary_memory, append_binary_value): | |
5395 | Constify. | |
5396 | (struct dump_context) <func>: Constify. | |
5397 | (add_dump_command): Update. | |
5398 | ||
dede02ce TT |
5399 | 2017-09-27 Tom Tromey <tom@tromey.com> |
5400 | ||
5401 | * cli/cli-cmds.c (show_version, show_configuration) | |
5402 | (source_command, show_user): Constify. | |
5403 | ||
d3cb6b99 TT |
5404 | 2017-09-27 Tom Tromey <tom@tromey.com> |
5405 | ||
5406 | * target.c (maintenance_print_target_stack): Constify. | |
5407 | ||
1970a12f TT |
5408 | 2017-09-27 Tom Tromey <tom@tromey.com> |
5409 | ||
5410 | * interps.c (interpreter_exec_cmd): Constify. | |
5411 | ||
41243651 TT |
5412 | 2017-09-27 Tom Tromey <tom@tromey.com> |
5413 | ||
5414 | * record-full.c (cmd_record_full_restore): Constify. | |
5415 | ||
4465d9db TT |
5416 | 2017-09-27 Tom Tromey <tom@tromey.com> |
5417 | ||
5418 | * memattr.c (enable_mem_command, disable_mem_command) | |
5419 | (delete_mem_command): Constify. | |
5420 | ||
ad25e423 TT |
5421 | 2017-09-27 Tom Tromey <tom@tromey.com> |
5422 | ||
5423 | * value.c (show_convenience): Constify. | |
5424 | ||
d64097b1 TT |
5425 | 2017-09-27 Tom Tromey <tom@tromey.com> |
5426 | ||
5427 | * gdbcore.h (core_file_command): Update. | |
5428 | * corefile.c (core_file_command): Constify. | |
5429 | ||
4d4589ef TT |
5430 | 2017-09-27 Tom Tromey <tom@tromey.com> |
5431 | ||
5432 | * user-regs.c (maintenance_print_user_registers): Constify. | |
5433 | ||
32a7bf17 TT |
5434 | 2017-09-27 Tom Tromey <tom@tromey.com> |
5435 | ||
5436 | * cp-namespace.c (maintenance_cplus_namespace): Constify. | |
5437 | ||
4a475551 TT |
5438 | 2017-09-27 Tom Tromey <tom@tromey.com> |
5439 | ||
5440 | * cp-support.c (first_component_command): Constify. | |
5441 | ||
990b9f9f TT |
5442 | 2017-09-27 Tom Tromey <tom@tromey.com> |
5443 | ||
5444 | * psymtab.c (maintenance_print_psymbols) | |
5445 | (maintenance_info_psymtabs, maintenance_check_psymtabs): | |
5446 | Constify. | |
5447 | ||
c281872e TT |
5448 | 2017-09-27 Tom Tromey <tom@tromey.com> |
5449 | ||
5450 | * windows-tdep.c (display_tib): Constify. | |
5451 | ||
5b64bf74 TT |
5452 | 2017-09-27 Tom Tromey <tom@tromey.com> |
5453 | ||
5454 | * linux-fork.c (delete_checkpoint_command) | |
5455 | (detach_checkpoint_command): Constify. | |
5456 | ||
4ada038f TT |
5457 | 2017-09-27 Tom Tromey <tom@tromey.com> |
5458 | ||
5459 | * cp-abi.c (set_cp_abi_cmd, show_cp_abi_cmd): Constify. | |
5460 | ||
57f5a81b TT |
5461 | 2017-09-27 Tom Tromey <tom@tromey.com> |
5462 | ||
5463 | * arc-tdep.c (dump_arc_instruction_command): Constify. | |
5464 | ||
b0a8e6c4 TT |
5465 | 2017-09-27 Tom Tromey <tom@tromey.com> |
5466 | ||
5467 | * valprint.c (set_radix, show_radix): Constify. | |
5468 | ||
8d97dc1c TT |
5469 | 2017-09-27 Tom Tromey <tom@tromey.com> |
5470 | ||
5471 | * dtrace-probe.c (info_probes_dtrace_command): Constify. | |
5472 | ||
eb7c454d TT |
5473 | 2017-09-27 Tom Tromey <tom@tromey.com> |
5474 | ||
5475 | * command.h (not_just_help_class_command): Update. | |
5476 | * cli/cli-decode.h (not_just_help_class_command): Update. | |
5477 | * cli/cli-decode.c (not_just_help_class_command): Constify. | |
5478 | ||
e4e33335 TT |
5479 | 2017-09-27 Tom Tromey <tom@tromey.com> |
5480 | ||
5481 | * gdb_bfd.c (maintenance_info_bfds): Constify. | |
5482 | ||
0450cc4c TT |
5483 | 2017-09-27 Tom Tromey <tom@tromey.com> |
5484 | ||
5485 | * cli/cli-decode.c (add_cmd, set_cmd_cfunc): New function | |
5486 | overloads. | |
5487 | (do_add_cmd): Rename from add_cmd. Don't call set_cmd_cfunc. | |
5488 | (do_const_cfunc): New function. | |
5489 | (cmd_cfunc_eq): New overload. | |
5490 | (cli_user_command_p): Check do_const_cfunc. | |
5491 | * cli/cli-decode.h (struct cmd_list_element) <function>: New field | |
5492 | const_cfunc. | |
5493 | * command.h (add_cmd): Add const overload and no-function | |
5494 | overload. | |
5495 | (set_cmd_cfunc): Add const overload. | |
5496 | (cmd_const_cfunc_ftype): Declare. | |
5497 | (cmd_cfunc_eq): Add const overload. | |
5498 | * breakpoint.c, cli-cmds.c, cli-dump.c, guile/scm-cmd.c, | |
5499 | python/py-cmd.c, target.c, tracepoint.c: Use no-function add_cmd | |
5500 | overload. | |
5501 | ||
a9bbfbd8 TT |
5502 | 2017-09-27 Tom Tromey <tom@tromey.com> |
5503 | ||
5504 | * macroexp.c (get_next_token_for_substitution): New function. | |
5505 | (substitute_args): Call it. Check for __VA_OPT__. | |
5506 | ||
5230b05a WT |
5507 | 2017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com> |
5508 | Pedro Alves <palves@redhat.com> | |
5509 | ||
5510 | * dwarf2read.c (dwarf2_cu): Remove field producer_is_icc and add | |
5511 | producer_is_icc_lt_14. | |
5512 | (producer_is_icc_lt_14): New function. | |
5513 | (check_producer): Add code for checking version of ICC. | |
5514 | (producer_is_icc): Move to producer.c. | |
5515 | (read_structure_type): Restrict ICC workaround to ICC<14. | |
5516 | * producer.c: Include selftest.h. | |
5517 | (producer_is_icc, producer_parsing_tests, _initialize_producer): | |
5518 | New functions. | |
5519 | * producer.h (producer_is_icc): New declaration. | |
5520 | ||
b32b108a WT |
5521 | 2017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com> |
5522 | ||
5523 | * Makefile.in (SFILES): Add producer.c. | |
5524 | (COMMON_OBS): Add producer.o | |
5525 | * amd64-tdep.c (producer.h): Add new include. | |
5526 | * dwarf2read.c (producer.h): Add new include. | |
5527 | * producer.c: New file. | |
5528 | * producer.h: New file. | |
5529 | * utils.c (producer_is_gcc, producer_is_gcc_ge_4): Move to | |
5530 | producer.c. | |
5531 | * utils.h (producer_is_gcc, producer_is_gcc_ge_4): Move to | |
5532 | producer.h. | |
5533 | ||
5007d765 MK |
5534 | 2017-09-26 Matthias Klose <doko@ubuntu.com> |
5535 | ||
5536 | * configure.ac: Search ncursesw before ncurses. | |
5537 | Check ncursesw/ncurses.h before ncurses/ncurses.h. | |
5538 | * gdb_curses.h: Include <ncursesw/ncurses.h> | |
5539 | * config.in, configure: Regenerate. | |
5540 | ||
281c4447 RO |
5541 | 2017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
5542 | ||
5543 | PR gdb/22185 | |
5544 | * configure.host <*-*-solaris2.[01], *-*-solaris2.[2-9]*>: Mark as | |
5545 | obsolete. | |
5546 | Use gdb_host sol2 for i[34567]86-*-solaris2*, x86_64-*-solaris2*. | |
5547 | Remove i386sol2 support. | |
5548 | * configure.nat <i386sol2>: Remove. | |
5549 | <sol2-64>: Fold into ... | |
5550 | <sol2>: ... this. | |
5551 | Move common settings to default section. | |
5552 | Add sol-thread.o. | |
5553 | * configure.tgt <i[34567]86-*-solaris2.1[0-9]*, | |
5554 | x86_64-*-solaris2.1[0-9]*>: Rename to ... | |
5555 | <i[34567]86-*-solaris2*, x86_64-*-solaris2*>: ... this. | |
5556 | <i[34567]86-*-solaris*>: Remove. | |
5557 | <sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*>: Remove. | |
5558 | ||
5559 | * configure.ac: Remove wctype in libw check. | |
5560 | (_MSE_INT_H): Don't define on Solaris 7-9. | |
5561 | <solaris*>: Remove libthread_db.so.1 check. | |
5562 | * configure: Regenerate. | |
5563 | * config.in: Regenerate. | |
5564 | ||
5565 | * proc-service.c: Remove PROC_SERVICE_IS_OLD handling. | |
5566 | (gdb_ps_prochandle_t, gdb_ps_read_buf_t, gdb_ps_write_buf_t) | |
5567 | (gdb_ps_size_t): Remove. | |
5568 | Use base types in users. | |
5569 | * sol-thread.c: Likewise, also for gdb_ps_addr_t. | |
5570 | ||
5571 | * NEWS (Changes since GDB 8.0): Document Solaris 2.0-9 removal. | |
5572 | ||
39b06c20 RO |
5573 | 2017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
5574 | ||
5575 | PR build/22206 | |
5576 | * sparc64-tdep.c (adi_tag_fd): Print pid as long. | |
5577 | (adi_is_addr_mapped): Likewise. | |
5578 | (PSR_ICC): Don't redefine. | |
5579 | (PSR_IMPL): Likewise. | |
5580 | ||
6c3e20f1 TT |
5581 | 2017-09-25 Tom Tromey <tom@tromey.com> |
5582 | ||
5583 | * regcache.c (regcache::dump): Use string_printf. | |
5584 | ||
b292235f TT |
5585 | 2017-09-25 Tom Tromey <tom@tromey.com> |
5586 | ||
5587 | * regcache.c (class regcache_invalidator): New. | |
5588 | (struct register_to_invalidate): Remove. | |
5589 | (make_cleanup_regcache_invalidate): Remove. | |
5590 | (regcache::raw_write): Use regcache_invalidator. | |
5591 | ||
9ac86b52 TT |
5592 | 2017-09-25 Tom Tromey <tom@tromey.com> |
5593 | ||
5594 | * spu-tdep.c (spu2ppu_sniffer): Update. | |
5595 | * regcache.h (make_cleanup_regcache_xfree): Don't declare. | |
5596 | * regcache.c (do_regcache_xfree, make_cleanup_regcache_xfree): | |
5597 | Remove. | |
5598 | * ppc-linux-tdep.c (ppu2spu_sniffer): Update. | |
5599 | * mi/mi-main.c (mi_cmd_data_list_changed_registers): Update. | |
5600 | * frame.h (frame_save_as_regcache): Return std::unique_ptr. | |
5601 | * frame.c (frame_save_as_regcache): Return std::unique_ptr. | |
5602 | (frame_pop): Update. | |
5603 | ||
c0e383c6 TT |
5604 | 2017-09-25 Tom Tromey <tom@tromey.com> |
5605 | ||
5606 | * spu-tdep.c (spu2ppu_dealloc_cache): Use delete. | |
5607 | * regcache.h (regcache_xfree): Don't declare. | |
5608 | * regcache.c (regcache_xfree): Remove. | |
5609 | (do_regcache_xfree): Use delete. | |
5610 | * ppc-linux-tdep.c (ppu2spu_dealloc_cache): Use delete. | |
5611 | * linux-fork.c (free_fork): Use delete. | |
5612 | (fork_save_infrun_state): Likewise. | |
5613 | * jit.c (jit_dealloc_cache): Use delete. | |
5614 | * infrun.c (discard_infcall_suspend_state): Use delete. | |
5615 | ||
791199cc TT |
5616 | 2017-09-25 Tom Tromey <tom@tromey.com> |
5617 | ||
5618 | * regcache.h (regcache_xmalloc): Don't declare. | |
5619 | (regcache_raw_set_cached_value): Update comment. | |
5620 | * regcache.c (regcache_xmalloc): Remove. | |
5621 | * ppc-linux-tdep.c (ppu2spu_sniffer): Use new. | |
5622 | * jit.c (jit_frame_sniffer): Use new. | |
5623 | * frame.c (frame_save_as_regcache): Use new. | |
5624 | ||
289e23aa AA |
5625 | 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com> |
5626 | ||
5627 | * NEWS: Advertise support for guarded-storage registers on IBM z. | |
5628 | ||
1b63490c AA |
5629 | 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com> |
5630 | ||
5631 | * s390-linux-nat.c (have_regset_gs): New static variable. | |
5632 | (s390_linux_fetch_inferior_registers): Handle guarded-storage | |
5633 | control block and guarded-storage broadcast control regsets. | |
5634 | (s390_read_description): Detect whether the target has | |
5635 | guarded-storage support, return appropriate tdesc. | |
5636 | * s390-linux-tdep.c (features/s390-gs-linux64.c): New include. | |
5637 | (features/s390x-gs-linux64.c): Likewise. | |
5638 | (struct gdbarch_tdep) <have_gs>: New field. | |
5639 | (s390_regmap_gs, s390_regmap_gsbc, s390_gs_regset) | |
5640 | (s390_gsbc_regset): New variables. | |
5641 | (s390_iterate_over_regset_sections): Iterate over s390_gs_regset | |
5642 | and s390_gsbc_regset, if applicable. | |
5643 | (s390_core_read_description): Check whether core file was from a | |
5644 | target with guarded-storage support; include appropriate regsets. | |
5645 | (s390_gdbarch_init): Add registers for guarded-storage support. | |
5646 | (_initialize_s390_tdep): Initialize new target descriptions that | |
5647 | include registers for guarded-storage support. | |
5648 | * s390-linux-tdep.h (HWCAP_S390_GS, S390_GSD_REGNUM) | |
5649 | (S390_GSSM_REGNUM, S390_GSEPLA_REGNUM) | |
5650 | (S390_BC_GSD_REGNUM, S390_BC_GSSM_REGNUM): New defines. | |
5651 | (S390_NUM_REGS): Adjust macro definition. | |
5652 | (s390_gs_regset, s390_gsbc_regset, tdesc_s390_gs_linux64) | |
5653 | (tdesc_s390x_gs_linux64): New declarations. | |
5654 | ||
96235dc1 AA |
5655 | 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com> |
5656 | ||
5657 | * features/s390-gs-linux64.xml: New file. | |
5658 | * features/s390-gs.xml: New file. | |
5659 | * features/s390-gsbc.xml: New file. | |
5660 | * features/s390x-gs-linux64.xml: New file. | |
5661 | * features/Makefile (WHICH): Add s390-gs-linux64 and | |
5662 | s390x-gs-linux64. | |
5663 | (s390-gs-linux64-expedite, s390x-gs-linux64-expedite): New macros. | |
5664 | (XMLTOC): Add s390-gs-linux64.xml and s390x-linux64.xml. | |
5665 | * features/s390-gs-linux64.c: New generated file. | |
5666 | * features/s390x-gs-linux64.c: New file. | |
5667 | * regformats/s390-gs-linux64.dat: New file. | |
5668 | * regformats/s390x-gs-linux64.dat: New file. | |
5669 | ||
b4a7c699 TT |
5670 | 2017-09-23 Tom Tromey <tom@tromey.com> |
5671 | ||
5672 | * defs.h (make_cleanup_override_quit_handler): Don't declare. | |
5673 | ||
c2f97536 TT |
5674 | 2017-09-22 Tom Tromey <tom@tromey.com> |
5675 | ||
5676 | * utils.c (class scoped_input_handler) <m_quit_handler>: Change | |
5677 | type to scoped_restore_tmpl. | |
5678 | <scoped_input_handler>: Initialize m_quit_handler directly. | |
5679 | ||
43573013 SDJ |
5680 | 2017-09-22 Sergio Durigan Junior <sergiodj@redhat.com> |
5681 | ||
5682 | * cli/cli-cmds.c (pwd_command): Use "getcwd (NULL, 0)". | |
5683 | (cd_command): Likewise. Free "current_directory" before | |
5684 | assigning to it. | |
5685 | * main.c (captured_main_1): Use "getcwd (NULL, 0)". | |
5686 | * mi/mi-cmd-env.c (mi_cmd_env_pwd): Likewise. | |
5687 | * top.c (gdb_dirbuf): Remove global declaration. | |
5688 | * top.h (gdb_dirbuf): Likewise. | |
5689 | ||
6ec2e0f5 SDJ |
5690 | 2017-09-22 Sergio Durigan Junior <sergiodj@redhat.com> |
5691 | ||
5692 | * gnulib/aclocal.m4: Regenerate. | |
5693 | * gnulib/config.in: Regenerate. | |
5694 | * gnulib/configure: Regenerate. | |
5695 | * gnulib/import/Makefile.am: Regenerate. | |
5696 | * gnulib/import/Makefile.in: Regenerate. | |
5697 | * gnulib/import/assure.h: New file. | |
5698 | * gnulib/import/at-func.c: Likewise | |
5699 | * gnulib/import/chdir-long.c: New file. | |
5700 | * gnulib/import/chdir-long.h: New file. | |
5701 | * gnulib/import/cloexec.c: New file. | |
5702 | * gnulib/import/cloexec.h: New file. | |
5703 | * gnulib/import/close.c: New file. | |
5704 | * gnulib/import/closedir.c: New file. | |
5705 | * gnulib/import/dirent-private.h: New file. | |
5706 | * gnulib/import/dup-safer.c: New file. | |
5707 | * gnulib/import/dup.c: New file. | |
5708 | * gnulib/import/dup2.c: New file. | |
5709 | * gnulib/import/error.c: New file. | |
5710 | * gnulib/import/error.h: New file. | |
5711 | * gnulib/import/exitfail.c: New file. | |
5712 | * gnulib/import/exitfail.h: New file. | |
5713 | * gnulib/import/fchdir.c: New file. | |
5714 | * gnulib/import/fcntl.c: New file. | |
5715 | * gnulib/import/fcntl.in.h: New file. | |
5716 | * gnulib/import/fd-hook.c: New file. | |
5717 | * gnulib/import/fd-hook.h: New file. | |
5718 | * gnulib/import/fd-safer.c: New file. | |
5719 | * gnulib/import/fdopendir.c: New file. | |
5720 | * gnulib/import/filename.h: New file. | |
5721 | * gnulib/import/filenamecat-lgpl.c: New file. | |
5722 | * gnulib/import/filenamecat.h: New file. | |
5723 | * gnulib/import/fstat.c: New file. | |
5724 | * gnulib/import/fstatat.c: New file. | |
5725 | * gnulib/import/getcwd-lgpl.c: New file. | |
5726 | * gnulib/import/getcwd.c: New file. | |
5727 | * gnulib/import/getdtablesize.c: New file. | |
5728 | * gnulib/import/getlogin_r.c: New file. | |
5729 | * gnulib/import/getprogname.c: New file. | |
5730 | * gnulib/import/getprogname.h: New file. | |
5731 | * gnulib/import/gettext.h: New file. | |
5732 | * gnulib/import/glob-libc.h: New file. | |
5733 | * gnulib/import/glob.c: New file. | |
5734 | * gnulib/import/glob.in.h: New file. | |
5735 | * gnulib/import/intprops.h: New file. | |
5736 | * gnulib/import/m4/chdir-long.m4: New file. | |
5737 | * gnulib/import/m4/close.m4: New file. | |
5738 | * gnulib/import/m4/closedir.m4: New file. | |
5739 | * gnulib/import/m4/d-ino.m4: New file. | |
5740 | * gnulib/import/m4/d-type.m4: New file. | |
5741 | * gnulib/import/m4/dup.m4: New file. | |
5742 | * gnulib/import/m4/dup2.m4: New file. | |
5743 | * gnulib/import/m4/error.m4: New file. | |
5744 | * gnulib/import/m4/fchdir.m4: New file. | |
5745 | * gnulib/import/m4/fcntl.m4: New file. | |
5746 | * gnulib/import/m4/fcntl_h.m4: New file. | |
5747 | * gnulib/import/m4/fdopendir.m4: New file. | |
5748 | * gnulib/import/m4/filenamecat.m4: New file. | |
5749 | * gnulib/import/m4/fstat.m4: New file. | |
5750 | * gnulib/import/m4/fstatat.m4: New file. | |
5751 | * gnulib/import/m4/getcwd-abort-bug.m4: New file. | |
5752 | * gnulib/import/m4/getcwd-path-max.m4: New file. | |
5753 | * gnulib/import/m4/getcwd.m4: New file. | |
5754 | * gnulib/import/m4/getdtablesize.m4: New file. | |
5755 | * gnulib/import/m4/getlogin_r.m4: New file. | |
5756 | * gnulib/import/m4/getprogname.m4: New file. | |
5757 | * gnulib/import/m4/glob.m4: New file. | |
5758 | * gnulib/import/m4/gnulib-cache.m4: Regenerate. | |
5759 | * gnulib/import/m4/gnulib-comp.m4: Regenerate. | |
5760 | * gnulib/import/m4/mempcpy.m4: New file. | |
5761 | * gnulib/import/m4/memrchr.m4: New file. | |
5762 | * gnulib/import/m4/mode_t.m4: New file. | |
5763 | * gnulib/import/m4/msvc-inval.m4: New file. | |
5764 | * gnulib/import/m4/msvc-nothrow.m4: New file. | |
5765 | * gnulib/import/m4/open.m4: New file. | |
5766 | * gnulib/import/m4/openat.m4: New file. | |
5767 | * gnulib/import/m4/opendir.m4: New file. | |
5768 | * gnulib/import/m4/readdir.m4: New file. | |
5769 | * gnulib/import/m4/realloc.m4: New file. | |
5770 | * gnulib/import/m4/rewinddir.m4: New file. | |
5771 | * gnulib/import/m4/save-cwd.m4: New file. | |
5772 | * gnulib/import/m4/strdup.m4: New file. | |
5773 | * gnulib/import/m4/strerror.m4: New file. | |
5774 | * gnulib/import/m4/unistd-safer.m4: New file. | |
5775 | * gnulib/import/mempcpy.c: New file. | |
5776 | * gnulib/import/memrchr.c: New file. | |
5777 | * gnulib/import/msvc-inval.c: New file. | |
5778 | * gnulib/import/msvc-inval.h: New file. | |
5779 | * gnulib/import/msvc-nothrow.c: New file. | |
5780 | * gnulib/import/msvc-nothrow.h: New file. | |
5781 | * gnulib/import/open.c: New file. | |
5782 | * gnulib/import/openat-die.c: New file. | |
5783 | * gnulib/import/openat-priv.h: New file. | |
5784 | * gnulib/import/openat-proc.c: New file. | |
5785 | * gnulib/import/openat.c: New file. | |
5786 | * gnulib/import/openat.h: New file. | |
5787 | * gnulib/import/opendir.c: New file. | |
5788 | * gnulib/import/pipe-safer.c: New file. | |
5789 | * gnulib/import/readdir.c: New file. | |
5790 | * gnulib/import/realloc.c: New file. | |
5791 | * gnulib/import/rewinddir.c: New file. | |
5792 | * gnulib/import/save-cwd.c: New file. | |
5793 | * gnulib/import/save-cwd.h: New file. | |
5794 | * gnulib/import/strdup.c: New file. | |
5795 | * gnulib/import/strerror-override.c: New file. | |
5796 | * gnulib/import/strerror-override.h: New file. | |
5797 | * gnulib/import/strerror.c: New file. | |
5798 | * gnulib/import/unistd--.h: New file. | |
5799 | * gnulib/import/unistd-safer.h: New file. | |
5800 | * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add | |
5801 | "getcwd" and "glob". | |
5802 | * ser-tcp.c: Undefine "close" before redefining it. | |
5803 | ||
432ae719 SM |
5804 | 2017-09-21 Simon Marchi <simon.marchi@ericsson.com> |
5805 | ||
5806 | * guile/scm-value.c (gdbscm_value_address): Initialize address, | |
5807 | get rid of res_val. | |
5808 | ||
4fa7574e RO |
5809 | 2017-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
5810 | ||
5811 | * configure.nat <i386sol2,i386>: Add fork-inferior.o to NATDEPFILES. | |
5812 | <sol2,sparc>: Likewise. | |
5813 | <sol2-64,i386>: Likewise. | |
5814 | ||
5815 | * warning.m4 (AM_GDB_WARNINGS): Disable -Wunknown-pragmas, | |
5816 | -Wdeprecated-declarations on *-*-solaris*. | |
5817 | * configure: Regenerate. | |
5818 | ||
5819 | * procfs.c: Include "nat/inferior.h". | |
5820 | (procfs_info_proc): Fix typo. | |
5821 | ||
f6327dcb KB |
5822 | 2017-09-21 Kevin Buettner <kevinb@redhat.com> |
5823 | ||
5824 | * remote.c (vector): Include. | |
5825 | (struct private_thread_info): Add field, thread_handle. | |
5826 | (free_private_thread_info): Deallocate storage associated with | |
5827 | thread handle. | |
5828 | (get_private_info_thread): Initialize `thread_handle' field. | |
5829 | (struct thread_item): Add field, thread_handle. | |
5830 | (clear_threads_listing_context): Deallocate storage associated | |
5831 | with thread handle. | |
5832 | (start_thread): Add support for "handle" attribute. | |
5833 | (thread_attributes): Add "handle". | |
5834 | (remote_get_threads_with_qthreadinfo): Initialize thread_handle | |
5835 | field. | |
5836 | (remote_update_thread_list): Update thread_handle. | |
5837 | (remote_thread_handle_to_thread_info): New function. | |
5838 | (init_remote_ops): Initialize to_thread_handle_to_thread_info. | |
5839 | ||
fbbe5337 KB |
5840 | 2017-09-21 Kevin Buettner <kevinb@redhat.com> |
5841 | ||
5842 | * python/py-inferior.c (gdbpy_thread_from_thread_handle): New | |
5843 | function. | |
5844 | (inferior_object_methods): Add gdbpy_thread_from_thread_handle. | |
5845 | * python/python-internal.h (thread_object_type): Declare. | |
5846 | ||
e04ee09e KB |
5847 | 2017-09-21 Kevin Buettner <kevinb@redhat.com> |
5848 | ||
5849 | * target.h (struct target_ops): Add to_thread_handle_to_thread_info. | |
5850 | (target_thread_handle_to_thread_info): Declare. | |
5851 | * target.c (target_thread_handle_to_thread_info): New function. | |
5852 | * target-delegates.c: Regenerate. | |
5853 | * gdbthread.h (find_thread_by_handle): Declare. | |
5854 | * thread.c (find_thread_by_handle): New function. | |
5855 | * linux-thread-db.c (thread_db_thread_handle_to_thread_info): New | |
5856 | function. | |
5857 | (init_thread_db_ops): Register thread_db_thread_handle_to_thread_info. | |
5858 | ||
1e5b66ed SM |
5859 | 2017-09-21 Simon Marchi <simon.marchi@ericsson.com> |
5860 | ||
5861 | * nat/linux-waitpid.c (linux_debug): Add ATTRIBUTE_PRINTF. | |
5862 | ||
ebe48ba0 SM |
5863 | 2017-09-21 Simon Marchi <simon.marchi@ericsson.com> |
5864 | ||
5865 | * microblaze-tdep.c (microblaze_debug): Add ATTRIBUTE_PRINTF. | |
5866 | ||
0a0bf5dc YQ |
5867 | 2017-09-21 Yao Qi <yao.qi@linaro.org> |
5868 | ||
5869 | * configure.tgt (aarch64*-*-freebsd*): Add fbsd-tdep.o solib-svr4.o | |
5870 | to gdb_target_obs. | |
5871 | ||
d1b0a7bf TT |
5872 | 2017-09-20 Tom Tromey <tom@tromey.com> |
5873 | ||
5874 | * breakpoint.c (struct counted_command_line): Remove. | |
5875 | (breakpoint_commands): Update. | |
5876 | (alloc_counted_command_line, incref_counted_command_line) | |
5877 | (decref_counted_command_line, do_cleanup_counted_command_line) | |
5878 | (make_cleanup_decref_counted_command_line): Remove. | |
5879 | (breakpoint_set_commands, commands_command_1, ~bpstats, bpstats) | |
5880 | (bpstat_clear_actions, bpstat_do_actions_1, watchpoint_check) | |
5881 | (bpstat_stop_status, print_one_breakpoint_location, ~breakpoint) | |
5882 | (save_breakpoints): Update. | |
5883 | * breakpoint.h (counted_command_line): Now a typedef to | |
5884 | shared_ptr. | |
5885 | (struct breakpoint) <commands>: Now a counted_command_line. | |
5886 | (struct bpstats) <command>: Likewise. | |
5887 | ||
48649e1b TT |
5888 | 2017-09-20 Tom Tromey <tom@tromey.com> |
5889 | ||
5890 | * breakpoint.c (struct commands_info, do_map_commands_command): | |
5891 | Remove. | |
5892 | (commands_command_1): Update. | |
5893 | (iterate_over_related_breakpoints): Take a function_view. | |
5894 | (do_delete_breakpoint, do_map_delete_breakpoint): Remove. | |
5895 | (delete_command): Update. | |
5896 | (map_breakpoint_numbers): Take a function_view. | |
5897 | (do_disable_breakpoint, do_map_delete_breakpoint): Remove. | |
5898 | (disable_command): Update. | |
5899 | (do_enable_breakpoint, do_map_enable_breakpoint): Remove. | |
5900 | (enable_command): Update. | |
5901 | (struct disp_data, do_enable_breakpoint_disp) | |
5902 | (do_map_enable_once_breakpoint, do_map_enable_count_breakpoint) | |
5903 | (do_map_enable_delete_breakpoint): Remove. | |
5904 | (enable_once_command, enable_count_command, enable_delete_command) | |
5905 | (delete_trace_variable_command): Update. | |
5906 | ||
04afa70c TT |
5907 | 2017-09-20 Tom Tromey <tom@tromey.com> |
5908 | ||
5909 | * breakpoint.c (~bpstats): Rename from bpstat_free. Update. | |
5910 | (bpstat_clear): Use delete. | |
5911 | (bpstats): New constructors. | |
5912 | (bpstat_copy, bpstat_stop_status): Use new. | |
5913 | (dprintf_after_condition_true): Update. | |
5914 | * breakpoint.h (bpstats::bpstats): Add constructors. | |
5915 | (bpstats::~bpstats): Add destructor. | |
5916 | ||
c83833f4 PA |
5917 | 2017-09-20 Pedro Alves <palves@redhat.com> |
5918 | ||
5919 | * eval.c (make_params): Delete, refactored as ... | |
5920 | (class fake_method): ... this new type's ctor. | |
5921 | (fake_method::~fake_method): New. | |
5922 | (evaluate_subexp_standard): Use 'fake_method'. | |
5923 | ||
223ffa71 TT |
5924 | 2017-09-20 Tom Tromey <tom@tromey.com> |
5925 | ||
5926 | * windows-nat.c (get_windows_debug_event, windows_wait) | |
5927 | (do_initial_windows_stuff, windows_attach): Update. | |
5928 | * utils.c (vwarning, internal_vproblem): Update. | |
5929 | (ui_unregister_input_event_handler_cleanup) | |
5930 | (prepare_to_handle_input): Remove. | |
5931 | (class scoped_input_handler): New. | |
5932 | (defaulted_query, prompt_for_continue): Update. | |
5933 | * tui/tui-hooks.c (tui_refresh_frame_and_register_information): | |
5934 | Update. | |
5935 | * top.c (undo_terminal_modifications_before_exit): Update. | |
5936 | * target/target.h (target_terminal_init, target_terminal_inferior) | |
5937 | (target_terminal_ours): Don't declare. | |
5938 | (class target_terminal): New. | |
5939 | * target.h (target_terminal_is_inferior, target_terminal_is_ours) | |
5940 | (target_terminal_ours_for_output) | |
5941 | (make_cleanup_restore_target_terminal): Don't declare. | |
5942 | (target_terminal_info): Remove. | |
5943 | * target.c (enum terminal_state, terminal_state): Remove. | |
5944 | (target_terminal::terminal_state): Define. | |
5945 | (target_terminal::init): Rename from target_terminal_init. | |
5946 | (target_terminal::inferior): Rename from | |
5947 | target_terminal_inferior. | |
5948 | (target_terminal::ours): Rename from target_terminal_ours. | |
5949 | (target_terminal::ours_for_output): Rename from | |
5950 | target_terminal_ours_for_output. | |
5951 | (target_terminal::info): New method. | |
5952 | (cleanup_restore_target_terminal) | |
5953 | (make_cleanup_restore_target_terminal): Remove. | |
5954 | * solib.c (handle_solib_event): Update. | |
5955 | * remote.c (remote_serial_quit_handler): Update. | |
5956 | (remote_terminal_inferior, remote_wait_as): Update. | |
5957 | * record-full.c (record_full_wait_1): Update. | |
5958 | * nto-procfs.c (procfs_create_inferior): Update. | |
5959 | * nat/fork-inferior.c (startup_inferior): Update. | |
5960 | * mi/mi-interp.c (mi_new_thread, mi_thread_exit) | |
5961 | (mi_record_changed, mi_inferior_added, mi_inferior_appeared) | |
5962 | (mi_inferior_exit, mi_inferior_removed, mi_traceframe_changed) | |
5963 | (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified) | |
5964 | (mi_breakpoint_created, mi_breakpoint_deleted) | |
5965 | (mi_breakpoint_modified, mi_on_resume, mi_solib_loaded) | |
5966 | (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed) | |
5967 | (mi_user_selected_context_changed, report_initial_inferior): | |
5968 | Update. | |
5969 | * linux-nat.c (linux_nat_attach, linux_nat_terminal_ours) | |
5970 | (linux_nat_terminal_inferior): Update. | |
5971 | * infrun.c (follow_fork_inferior) | |
5972 | (handle_vfork_child_exec_or_exit, do_target_resume) | |
5973 | (check_curr_ui_sync_execution_done, handle_inferior_event_1) | |
5974 | (handle_signal_stop, maybe_remove_breakpoints, normal_stop): | |
5975 | Update. | |
5976 | * inflow.c (child_terminal_init, info_terminal_command): Update. | |
5977 | * infcmd.c (post_create_inferior, continue_1, prepare_one_step) | |
5978 | (attach_command): Update. | |
5979 | * infcall.c (call_thread_fsm_should_stop): Update. | |
5980 | * gnu-nat.c (gnu_attach): Update. | |
5981 | * extension.c (struct active_ext_lang_state) | |
5982 | (restore_active_ext_lang): Update. | |
5983 | * exceptions.c (print_flush): Update. | |
5984 | * event-top.c (async_enable_stdin, default_quit_handler): Update. | |
5985 | (struct quit_handler_cleanup_data, restore_quit_handler) | |
5986 | (restore_quit_handler_dtor, make_cleanup_override_quit_handler): | |
5987 | Remove. | |
5988 | * cp-support.c (gdb_demangle): Update. | |
5989 | * breakpoint.c (update_inserted_breakpoint_locations) | |
5990 | (insert_breakpoint_locations, handle_jit_event) | |
5991 | (disable_breakpoints_in_unloaded_shlib): Update. | |
5992 | * annotate.c (annotate_breakpoints_invalid) | |
5993 | (annotate_frames_invalid): Update. | |
5994 | ||
013af3fc TT |
5995 | 2017-09-20 Tom Tromey <tom@tromey.com> |
5996 | ||
5997 | * main.c (catch_command_errors): Rename from | |
5998 | catch_command_errors_const. | |
5999 | (captured_main_1): Update. | |
6000 | ||
06871ae8 PA |
6001 | 2017-09-20 Pedro Alves <palves@redhat.com> |
6002 | ||
6003 | * cli/cli-cmds.c (list_command): Use print_sal_location. | |
6004 | (print_sal_location): New function. | |
6005 | (ambiguous_line_spec): Use print_sal_location. | |
6006 | * linespec.c (symbol_to_sal): Record the symbol in the sal. | |
6007 | * symtab.c (find_function_start_sal): Likewise. | |
6008 | * symtab.h (symtab_and_line::symbol): New field. | |
6009 | ||
e5f25bc5 PA |
6010 | 2017-09-20 Pedro Alves <palves@redhat.com> |
6011 | ||
6012 | * linespec.c (minsym_found): Handle non-text minsyms. | |
6013 | (symbol_to_sal): Record a sal.pc for non-block, non-label symbols. | |
6014 | ||
1b7fa39e WT |
6015 | 2017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com> |
6016 | ||
6017 | * features/Makefile (i386-avx-mpx-avx512-pku.dat): Add missing | |
6018 | backslash. | |
6019 | ||
37dd0825 WT |
6020 | 2017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com> |
6021 | ||
6022 | * gdb.arch/i386-avx512.c (move_zmm_data_to_reg): Use | |
6023 | vmovups instead vmovaps. | |
6024 | (move_zmm_data_to_memory): Use vmovups instead vmovaps. | |
6025 | ||
4e5a4f58 JB |
6026 | 2017-09-19 John Baldwin <jhb@FreeBSD.org> |
6027 | ||
6028 | * NEWS (Changes since GDB 8.0): Add starti. | |
6029 | * infcmd.c (enum run_break): New. | |
6030 | (run_command_1): Queue pending event for RUN_STOP_AT_FIRST_INSN | |
6031 | case. | |
6032 | (run_command): Use enum run_how. | |
6033 | (start_command): Likewise. | |
6034 | (starti_command): New function. | |
6035 | (RUN_ARGS_HELP): New macro. | |
6036 | (_initialize_infcmd): Use RUN_ARGS_HELP for run and start | |
6037 | commands. Add starti command. | |
6038 | ||
aa70c9f1 YQ |
6039 | 2017-09-19 Yao Qi <yao.qi@linaro.org> |
6040 | ||
6041 | * Makefile.in (monitor.o): Remove the rule. | |
6042 | ||
d6541620 YQ |
6043 | 2017-09-19 Yao Qi <yao.qi@linaro.org> |
6044 | ||
6045 | * annotate.h (struct annotate_arg_emitter): Use | |
6046 | DISABLE_COPY_AND_ASSIGN. | |
6047 | * common/refcounted-object.h (refcounted_object): Likewise. | |
6048 | * completer.h (struct completion_result): Likewise. | |
6049 | * dwarf2read.c (struct dwarf2_per_objfile): Likewise. | |
6050 | * filename-seen-cache.h (filename_seen_cache): Likewise. | |
6051 | * gdbcore.h (thread_section_name): Likewise. | |
6052 | * gdb_regex.h (compiled_regex): Likewise. | |
6053 | * gdbthread.h (scoped_restore_current_thread): Likewise. | |
6054 | * inferior.h (scoped_restore_current_inferior): Likewise. | |
6055 | * jit.c (jit_reader): Likewise. | |
6056 | * linespec.h (struct linespec_result): Likewise. | |
6057 | * mi/mi-parse.h (struct mi_parse): Likewise. | |
6058 | * nat/fork-inferior.c (execv_argv): Likewise. | |
6059 | * progspace.h (scoped_restore_current_program_space): Likewise. | |
6060 | * python/python-internal.h (class gdbpy_enter): Likewise. | |
6061 | * regcache.h (regcache): Likewise. | |
6062 | * target-descriptions.c (struct tdesc_reg): Likewise. | |
6063 | (struct tdesc_type): Likewise. | |
6064 | (struct tdesc_feature): Likewise. | |
6065 | * ui-out.h (ui_out_emit_type): Likewise. | |
6066 | ||
0615127c SM |
6067 | 2017-09-18 Simon Marchi <simon.marchi@ericsson.com> |
6068 | ||
6069 | * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Remove | |
6070 | label abort_expression. | |
6071 | ||
5e187554 SM |
6072 | 2017-09-16 Simon Marchi <simon.marchi@ericsson.com> |
6073 | ||
6074 | * common/buffer.c (buffer_xml_printf): Adjust. | |
6075 | * common/xml-utils.c (xml_escape_text): Change return type to | |
6076 | std::string, update code accordingly. | |
6077 | * common/xml-utils.h (xml_escape_text): Change return type to | |
6078 | std::string. | |
6079 | * rs6000-aix-tdep.c (rs6000_aix_shared_library_to_xml): Adjust. | |
6080 | * windows-tdep.c (windows_xfer_shared_library): Adjust. | |
6081 | * unittests/xml-utils-selftests.c (test_xml_escape_text): | |
6082 | Adjust. | |
6083 | ||
c3d7b541 SM |
6084 | 2017-09-16 Simon Marchi <simon.marchi@ericsson.com> |
6085 | ||
6086 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new source file. | |
6087 | (SUBDIR_UNITTESTS_OBS): Add new object file. | |
6088 | * unittests/xml-utils-selftests.c: New file. | |
6089 | ||
1526853e SM |
6090 | 2017-09-16 Simon Marchi <simon.marchi@ericsson.com> |
6091 | ||
6092 | * common/selftest.h (selftest): New struct/interface. | |
6093 | (register_test): Add name parameter, add new overload. | |
6094 | (run_tests): Add filter parameter. | |
6095 | (for_each_selftest_ftype): New typedef. | |
6096 | (for_each_selftest): New declaration. | |
6097 | * common/selftest.c (tests): Change type to | |
6098 | map<string, unique_ptr<selftest>>. | |
6099 | (simple_selftest): New struct. | |
6100 | (register_test): New function. | |
6101 | (register_test): Add name parameter and use it. | |
6102 | (run_tests): Add filter parameter and use it. Add prints. | |
6103 | Adjust to vector -> map change. | |
6104 | * aarch64-tdep.c (_initialize_aarch64_tdep): Add names when | |
6105 | registering selftests. | |
6106 | * arm-tdep.c (_initialize_arm_tdep): Likewise. | |
6107 | * disasm-selftests.c (_initialize_disasm_selftests): Likewise. | |
6108 | * dwarf2-frame.c (_initialize_dwarf2_frame): Likewise. | |
6109 | * dwarf2loc.c (_initialize_dwarf2loc): Likewise. | |
6110 | * findvar.c (_initialize_findvar): Likewise. | |
6111 | * gdbarch-selftests.c (_initialize_gdbarch_selftests): Likewise. | |
6112 | * maint.c (maintenance_selftest): Update call to run_tests. | |
6113 | (maintenance_info_selftests): New function. | |
6114 | (_initialize_maint_cmds): Register "maintenance info selftests" | |
6115 | command. Update "maintenance selftest" doc. | |
6116 | * regcache.c (_initialize_regcache): Add names when registering | |
6117 | selftests. | |
6118 | * rust-exp.y (_initialize_rust_exp): Likewise. | |
6119 | * selftest-arch.c (gdbarch_selftest): New struct. | |
6120 | (gdbarch_tests): Remove. | |
6121 | (register_test_foreach_arch): Add name parameter. Call | |
6122 | register_test. | |
6123 | (tests_with_arch): Remove, move most content to | |
6124 | gdbarch_selftest::operator(). | |
6125 | (_initialize_selftests_foreach_arch): Remove. | |
6126 | * selftest-arch.h (register_test_foreach_arch): Add name | |
6127 | parameter. | |
6128 | (run_tests_with_arch): New declaration. | |
6129 | * utils-selftests.c (_initialize_utils_selftests): Add names | |
6130 | when registering selftests. | |
6131 | * utils.c (_initialize_utils): Likewise. | |
6132 | * unittests/array-view-selftests.c | |
6133 | (_initialize_array_view_selftests): Likewise. | |
6134 | * unittests/environ-selftests.c (_initialize_environ_selftests): | |
6135 | Likewise. | |
6136 | * unittests/function-view-selftests.c | |
6137 | (_initialize_function_view_selftests): Likewise. | |
6138 | * unittests/offset-type-selftests.c | |
6139 | (_initialize_offset_type_selftests): Likewise. | |
6140 | * unittests/optional-selftests.c | |
6141 | (_initialize_optional_selftests): Likewise. | |
6142 | * unittests/scoped_restore-selftests.c | |
6143 | (_initialize_scoped_restore_selftests): Likewise. | |
6144 | * NEWS: Document "maintenance selftest" and "maint info | |
6145 | selftests". | |
6146 | ||
5846367a SM |
6147 | 2017-09-16 Simon Marchi <simon.marchi@ericsson.com> |
6148 | ||
6149 | * mi/mi-main.c (mi_load_progress): Restore current_uiout using a | |
6150 | scoped_restore. | |
6151 | ||
bd77e8ff SM |
6152 | 2017-09-16 Simon Marchi <simon.marchi@ericsson.com> |
6153 | ||
6154 | * mi/mi-main.c (mi_load_progress): Make uiout variable | |
6155 | a unique_ptr. | |
6156 | ||
26a67918 PA |
6157 | 2017-09-15 Pedro Alves <palves@redhat.com> |
6158 | ||
6159 | * compile/compile-c-types.c (convert_enum, convert_int) | |
6160 | (convert_float): Adjust to refer to int_type_v0 and float_type_v0. | |
6161 | ||
3f8a7804 SM |
6162 | 2017-09-15 Simon Marchi <simon.marchi@ericsson.com> |
6163 | ||
6164 | * dwarf2read.c (copy_string): Remove. | |
6165 | (parse_macro_definition): Replace copy_string with savestring. | |
6166 | ||
8d200706 YQ |
6167 | 2017-09-15 Yao Qi <yao.qi@linaro.org> |
6168 | ||
6169 | * configure.tgt (i[34567]86-*-darwin*): Append amd64.o to | |
6170 | gdb_target_obs. | |
6171 | (i[34567]86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*): | |
6172 | Likewise. | |
6173 | (i[34567]86-*-linux*): Likewise. | |
6174 | ||
d185219d SM |
6175 | 2017-09-14 Simon Marchi <simon.marchi@ericsson.com> |
6176 | ||
6177 | * dwarf2expr.h (dwarf_stack_value): Add constructor. | |
6178 | (dwarf_expr_context) <~dwarf_expr_context>: Define as default. | |
6179 | <stack>: Change type to std::vector. | |
6180 | <stack_len, stack_allocated>: Remove. | |
6181 | <grow_stack>: Remove. | |
6182 | * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust. | |
6183 | (dwarf_expr_context::~dwarf_expr_context): Remove. | |
6184 | (dwarf_expr_context::grow_stack): Remove. | |
6185 | (dwarf_expr_context::push): Adjust. | |
6186 | (dwarf_expr_context::pop): Adjust. | |
6187 | (dwarf_expr_context::fetch): Adjust. | |
6188 | (dwarf_expr_context::fetch_in_stack_memory): Adjust. | |
6189 | (dwarf_expr_context::stack_empty_p): Adjust. | |
6190 | (dwarf_expr_context::execute_stack_op): Adjust. | |
6191 | ||
eccd80d6 SM |
6192 | 2017-09-14 Simon Marchi <simon.marchi@ericsson.com> |
6193 | ||
6194 | * dwarf2expr.h (dwarf_expr_context) <stack_empty_p>: Change | |
6195 | return type to bool. | |
6196 | * dwarf2expr.c (dwarf_expr_context::stack_empty_p): Likewise. | |
6197 | ||
69009882 SM |
6198 | 2017-09-14 Simon Marchi <simon.marchi@ericsson.com> |
6199 | ||
6200 | * dwarf2expr.h (dwarf_expr_piece) <v.mem.in_stack_memory>: | |
6201 | Change type to bool. | |
6202 | (dwarf_stack_value) <in_stack_memory>: Likewise. | |
6203 | (dwarf_expr_context) <push_address>: Change parameter type to | |
6204 | bool. | |
6205 | <fetch_in_stack_memory>: Change return type to bool. | |
6206 | <push>: Change parameter type to bool. | |
6207 | * dwarf2expr.c (dwarf_expr_context::push): Change parameter type | |
6208 | to bool. | |
6209 | (dwarf_expr_context::push_address): Likewise. | |
6210 | (dwarf_expr_context::fetch_in_stack_memory): Change return type | |
6211 | to bool. | |
6212 | (dwarf_expr_context::execute_stack_op): Adjust. | |
6213 | * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Adjust. | |
6214 | ||
1e467161 SM |
6215 | 2017-09-14 Simon Marchi <simon.marchi@ericsson.com> |
6216 | ||
6217 | * dwarf2expr.h (struct dwarf_expr_piece): Move up. | |
6218 | (struct dwarf_expr_context) <n_pieces>: Remove. | |
6219 | <pieces>: Change type to std::vector. | |
6220 | * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust. | |
6221 | (dwarf_expr_context::~dwarf_expr_context): Don't manually free | |
6222 | pieces. | |
6223 | (dwarf_expr_context::add_piece): Adjust. | |
6224 | * dwarf2loc.c (struct piece_closure): Initialize fields. | |
6225 | <n_pieces>: Remove. | |
6226 | <pieces>: Change type to std::vector. | |
6227 | (allocate_piece_closure): Adjust, change parameter to | |
6228 | std::vector rvalue and std::move it to piece_closure. | |
6229 | (rw_pieced_value): Adjust. | |
6230 | (check_pieced_synthetic_pointer): Adjust. | |
6231 | (indirect_synthetic_pointer): Adjust. | |
6232 | (coerce_pieced_ref): Adjust. | |
6233 | (free_pieced_value_closure): Adjust. Use delete to free | |
6234 | piece_closure. | |
6235 | (dwarf2_evaluate_loc_desc_full): Adjust. std::move ctx.pieces | |
6236 | to allocate_piece_closure. | |
6237 | (dwarf2_loc_desc_get_symbol_read_needs): Adjust. | |
6238 | ||
0782db84 SM |
6239 | 2017-09-12 Simon Marchi <simon.marchi@ericsson.com> |
6240 | ||
6241 | * probe.h (probe_ops_cp): Remove typedef. | |
6242 | (DEF_VEC_P (probe_ops_cp)): Remove. | |
6243 | (all_probe_ops): Change type to std::vector. | |
6244 | * probe.c (info_probes_for_ops): Adjust to vector change. | |
6245 | (probe_linespec_to_ops): Likewise. | |
6246 | (all_probe_ops): Change type to std::vector. | |
6247 | (_initialize_probe): Adjust to vector change. | |
6248 | * dtrace-probe.c (_initialize_dtrace_probe): Likewise. | |
6249 | * elfread.c (elf_get_probes): Likewise. | |
6250 | * stap-probe.c (_initialize_stap_probe): Likewise. | |
6251 | ||
1eac6bea SM |
6252 | 2017-09-12 Simon Marchi <simon.marchi@ericsson.com> |
6253 | ||
6254 | * probe.h (struct bound_probe): Define constructors. | |
6255 | * probe.c (bound_probe_s): Remove typedef. | |
6256 | (DEF_VEC_O (bound_probe_s)): Remove VEC. | |
6257 | (collect_probes): Change return type to std::vector, remove | |
6258 | cleanup. | |
6259 | (compare_probes): Return bool, change parameter type. Change | |
6260 | semantic to "less than". | |
6261 | (gen_ui_out_table_header_info): Change parameter to std::vector | |
6262 | and update. | |
6263 | (exists_probe_with_pops): Likewise. | |
6264 | (info_probes_for_ops): Update to std::vector change. | |
6265 | (enable_probes_command): Likewise. | |
6266 | (disable_probes_command): Likewise. | |
6267 | ||
aaa63a31 SM |
6268 | 2017-09-12 Simon Marchi <simon.marchi@ericsson.com> |
6269 | ||
6270 | * probe.h (struct probe_ops) <get_probes>: Change parameter from | |
6271 | vec to std::vector. | |
6272 | * probe.c (parse_probes_in_pspace): Update. | |
6273 | (find_probes_in_objfile): Update. | |
6274 | (find_probe_by_pc): Update. | |
6275 | (collect_probes): Update. | |
6276 | (probe_any_get_probes): Update. | |
6277 | * symfile.h (struct sym_probe_fns) <sym_get_probes> Change | |
6278 | return type to reference to std::vector. | |
6279 | * dtrace-probe.c (dtrace_process_dof_probe): Change parameter to | |
6280 | std::vector and update. | |
6281 | (dtrace_process_dof): Likewise. | |
6282 | (dtrace_get_probes): Likewise. | |
6283 | * elfread.c (elf_get_probes): Change return type to std::vector, | |
6284 | store an std::vector in bfd_data. | |
6285 | (probe_key_free): Update to std::vector. | |
6286 | * stap-probe.c (handle_stap_probe): Change parameter to | |
6287 | std::vector and update. | |
6288 | (stap_get_probes): Likewise. | |
6289 | * symfile-debug.c (debug_sym_get_probes): Change return type to | |
6290 | std::vector and update. | |
6291 | ||
cb85b21b TT |
6292 | 2017-09-11 Tom Tromey <tom@tromey.com> |
6293 | ||
6294 | * breakpoint.c (program_breakpoint_here_p): Update. | |
6295 | * target.c (make_scoped_restore_show_memory_breakpoints): Rename | |
6296 | from make_show_memory_breakpoints_cleanup. Return a | |
6297 | scoped_restore_tmpl<int>. | |
6298 | (restore_show_memory_breakpoints): Remove. | |
6299 | * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Update. | |
6300 | * mem-break.c (memory_validate_breakpoint): Update. | |
6301 | * ia64-tdep.c (ia64_memory_insert_breakpoint): Update. | |
6302 | (ia64_memory_remove_breakpoint): Update. | |
6303 | (ia64_breakpoint_from_pc): Update. | |
6304 | * target.h (make_scoped_restore_show_memory_breakpoints): Rename | |
6305 | from make_show_memory_breakpoints_cleanup. | |
6306 | ||
8fbc99ef TT |
6307 | 2017-09-11 Tom Tromey <tom@tromey.com> |
6308 | ||
6309 | * d-namespace.c (d_lookup_symbol): Use std::string. | |
6310 | (find_symbol_in_baseclass): Likewise. | |
6311 | ||
50feb4bd TT |
6312 | 2017-09-11 Tom Tromey <tom@tromey.com> |
6313 | ||
6314 | * ctf.c (ctf_start): Use std::string. | |
6315 | ||
c6dc63a1 TT |
6316 | 2017-09-11 Tom Tromey <tom@tromey.com> |
6317 | ||
6318 | * ada-lang.c (is_known_support_routine): Update. | |
6319 | (ada_unhandled_exception_name_addr_from_raise): Update. | |
6320 | * guile/scm-frame.c (gdbscm_frame_name): Update. | |
6321 | * python/py-frame.c (frapy_name): Update. | |
6322 | (frapy_function): Update. | |
6323 | * stack.h (find_frame_funname): Update. | |
6324 | * stack.c (find_frame_funname): Return unique_xmalloc_ptr. | |
6325 | (print_frame): Update. | |
6326 | ||
d6b9b80f TT |
6327 | 2017-09-11 Tom Tromey <tom@tromey.com> |
6328 | ||
6329 | * findcmd.c (put_bits): Take a gdb::byte_vector. | |
6330 | (parse_find_args): Return gdb::byte_vector. "args" now const. | |
6331 | Remove "pattern_bufp" and "pattern_lenp" parameters. Remove | |
6332 | cleanups. | |
6333 | (find_command): Update. | |
6334 | ||
a9921622 TT |
6335 | 2017-09-11 Tom Tromey <tom@tromey.com> |
6336 | ||
6337 | * cli/cli-script.c (class scoped_restore_hook_in): New. | |
6338 | (clear_hook_in_cleanup): Remove. | |
6339 | (execute_cmd_pre_hook, execute_cmd_post_hook): Use | |
6340 | scoped_restore_hook_in. | |
6341 | ||
be0d7abb TT |
6342 | 2017-09-11 Tom Tromey <tom@tromey.com> |
6343 | ||
6344 | * cli/cli-script.c (restore_interp): Remove. | |
6345 | (read_command_lines): Use scoped_restore_interp. | |
6346 | * interps.c (scoped_restore_interp::set_temp): Rename from | |
6347 | interp_set_temp. | |
6348 | * interps.h (class scoped_restore_interp): New. | |
6349 | (interp_set_temp): Remove. | |
6350 | ||
00f675ff TT |
6351 | 2017-09-11 Tom Tromey <tom@tromey.com> |
6352 | ||
6353 | * mi/mi-cmd-catch.c (mi_cmd_catch_assert) | |
6354 | (mi_cmd_catch_exception, mi_catch_load_unload): Update. | |
6355 | * mi/mi-cmd-break.c (setup_breakpoint_reporting): Return a | |
6356 | scoped_restore. | |
6357 | (mi_cmd_break_insert_1): Update. | |
6358 | * mi/mi-cmd-break.h (setup_breakpoint_reporting): Return a | |
6359 | scoped_restore. | |
6360 | ||
cb791d59 TT |
6361 | 2017-09-11 Tom Tromey <tom@tromey.com> |
6362 | ||
6363 | * demangle.c (demangle_command): Update. | |
6364 | * breakpoint.c (disable_command): Update. | |
6365 | (enable_command): Update. | |
6366 | (find_location_by_number): Make "number" const. Use | |
6367 | get_number_trailer. | |
6368 | * cli/cli-utils.c (extract_arg): Return std::string. | |
6369 | * probe.c (parse_probe_linespec): Update. Change types. | |
6370 | (collect_probes): Take string arguments. | |
6371 | (parse_probe_linespec): Likewise. | |
6372 | (info_probes_for_ops): Update. | |
6373 | (enable_probes_command): Update. | |
6374 | (disable_probes_command): Update. | |
6375 | * break-catch-sig.c (catch_signal_split_args): Update. | |
6376 | * mi/mi-parse.c (mi_parse): Update. | |
6377 | ||
2039bd9f TT |
6378 | 2017-09-11 Tom Tromey <tom@tromey.com> |
6379 | ||
6380 | * language.h (language_enum): Make argument const. | |
6381 | * language.c (language_enum): Make argument const. | |
6382 | ||
f1735a53 TT |
6383 | 2017-09-11 Tom Tromey <tom@tromey.com> |
6384 | ||
6385 | * common/common-utils.h (skip_to_space): Remove macro, redeclare | |
6386 | as function. | |
6387 | (skip_to_space): Rename from skip_to_space_const. | |
6388 | * common/common-utils.c (skip_to_space): New function. | |
6389 | (skip_to_space): Rename from skip_to_space_const. | |
6390 | * cli/cli-utils.h (get_number): Rename from get_number_const. | |
6391 | (extract_arg): Rename from extract_arg_const. | |
6392 | * cli/cli-utils.c (get_number): Rename from get_number_const. | |
6393 | (extract_arg): Rename from extract_arg_const. | |
6394 | (number_or_range_parser::get_number): Use ::get_number. | |
6395 | * aarch64-linux-tdep.c, ada-lang.c, arm-linux-tdep.c, ax-gdb.c, | |
6396 | break-catch-throw.c, breakpoint.c, cli/cli-cmds.c, cli/cli-dump.c, | |
6397 | cli/cli-script.c, cli/cli-setshow.c, compile/compile.c, | |
6398 | completer.c, demangle.c, disasm.c, findcmd.c, linespec.c, | |
6399 | linux-tdep.c, linux-thread-db.c, location.c, mi/mi-parse.c, | |
6400 | minsyms.c, nat/linux-procfs.c, printcmd.c, probe.c, | |
6401 | python/py-breakpoint.c, record.c, rust-exp.y, serial.c, stack.c, | |
6402 | stap-probe.c, tid-parse.c, tracepoint.c: Update all callers. | |
6403 | ||
7d221d74 TT |
6404 | 2017-09-11 Tom Tromey <tom@tromey.com> |
6405 | ||
6406 | * python/python.c (do_start_initialization): Use | |
6407 | py-event-types.def to initialize types. | |
6408 | Define all object type structures. | |
6409 | * python/python-internal.h: Don't declare event initialization | |
6410 | functions. | |
6411 | * python/py-threadevent.c (thread_event_object_type): Don't | |
6412 | define. | |
6413 | * python/py-stopevent.c (stop_event_object_type): Don't define. | |
6414 | * python/py-signalevent.c (signal_event_object_type): Don't | |
6415 | declare or define. | |
6416 | * python/py-newobjfileevent.c (new_objfile_event_object_type) | |
6417 | (clear_objfiles_event_object_type): Don't declare or define. | |
6418 | * python/py-infevents.c (inferior_call_pre_event_object_type) | |
6419 | (inferior_call_post_event_object_type) | |
6420 | (register_changed_event_object_type) | |
6421 | (memory_changed_event_object_type): Don't declare or define. | |
6422 | * python/py-inferior.c (new_thread_event_object_type) | |
6423 | (new_inferior_event_object_type) | |
6424 | (inferior_deleted_event_object_type): Don't declare or define. | |
6425 | * python/py-exitedevent.c (exited_event_object_type): Don't | |
6426 | declare or define. | |
6427 | * python/py-evts.c (gdbpy_initialize_py_events): Use | |
6428 | py-all-events.def. | |
6429 | * python/py-events.h (thread_event_object_type): Don't declare. | |
6430 | (events_object): Use py-all-events.def. | |
6431 | * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove. Use | |
6432 | py-event-types.def. | |
6433 | * python/py-event-types.def: New file. | |
6434 | * python/py-continueevent.c (create_continue_event_object): Don't | |
6435 | declare or define. | |
6436 | * python/py-bpevent.c (breakpoint_event_object_type): Don't | |
6437 | declare or define. | |
6438 | * python/py-all-events.def: New file. | |
6439 | ||
35c61a1d TT |
6440 | 2017-09-11 Tom Tromey <tom@tromey.com> |
6441 | ||
6442 | * python/py-threadevent.c (create_thread_event_object): Return | |
6443 | gdbpy_ref. | |
6444 | * python/py-stopevent.h (create_stop_event_object) | |
6445 | (create_breakpoint_event_object, create_signal_event_object): | |
6446 | Update. | |
6447 | * python/py-stopevent.c (create_stop_event_object): Return | |
6448 | gdbpy_ref. | |
6449 | (emit_stop_event): Update. | |
6450 | * python/py-signalevent.c (create_signal_event_object): Return | |
6451 | gdbpy_ref. | |
6452 | * python/py-infevents.c (create_inferior_call_event_object): | |
6453 | Update. | |
6454 | * python/py-event.h (create_event_object) | |
6455 | (create_thread_event_object): Update. | |
6456 | * python/py-event.c (create_event_object): Return gdbpy_ref. | |
6457 | * python/py-continueevent.c: Return gdbpy_ref. | |
6458 | * python/py-bpevent.c (create_breakpoint_event_object): Return | |
6459 | gdbpy_ref. | |
6460 | ||
7c96f8c1 TT |
6461 | 2017-09-11 Tom Tromey <tom@tromey.com> |
6462 | ||
6463 | PR python/15622: | |
6464 | * NEWS: Add entry. | |
6465 | * python/python.c (do_start_initialization): Initialize new event | |
6466 | types. | |
6467 | * python/python-internal.h (gdbpy_initialize_new_inferior_event) | |
6468 | (gdbpy_initialize_inferior_deleted_event) | |
6469 | (gdbpy_initialize_new_thread_event): Declare. | |
6470 | * python/py-threadevent.c (create_thread_event_object): Add option | |
6471 | "thread" parameter. | |
6472 | * python/py-inferior.c (new_thread_event_object_type) | |
6473 | (new_inferior_event_object_type) | |
6474 | (inferior_deleted_event_object_type): Declare. | |
6475 | (python_new_inferior, python_inferior_deleted): New functions. | |
6476 | (add_thread_object): Emit new_thread event. | |
6477 | (gdbpy_initialize_inferior): Attach new functions to corresponding | |
6478 | observers. | |
6479 | (new_thread, new_inferior, inferior_deleted): Define new event | |
6480 | types. | |
6481 | * python/py-evts.c (gdbpy_initialize_py_events): Add new | |
6482 | registries. | |
6483 | * python/py-events.h (events_object) <new_inferior, | |
6484 | inferior_deleted, new_thread>: New fields. | |
6485 | * python/py-event.h (create_thread_event_breakpoint): Add optional | |
6486 | "thread" parameter. | |
6487 | ||
72542b8e AB |
6488 | 2017-09-10 Andrew Burgess <andrew.burgess@embecosm.com> |
6489 | ||
6490 | * utils.c (abort_with_message): Don't compare gdb_stderr to NULL, | |
6491 | check current_ui instead. | |
6492 | (internal_vproblem): Likewise. | |
6493 | ||
0d64823e SM |
6494 | 2017-09-09 Simon Marchi <simon.marchi@ericsson.com> |
6495 | ||
6496 | * thread.c (print_thread_info_1): Remove unnecessary calls to | |
6497 | uiout->is_mi_like_p. | |
6498 | ||
eb1e02fd TT |
6499 | 2017-09-09 Tom Tromey <tom@tromey.com> |
6500 | ||
6501 | * namespace.h (add_using_directive): Update. | |
6502 | * namespace.c (add_using_directive): Change type of excludes to | |
6503 | std::vector. | |
6504 | * dwarf2read.c (read_import_statement): Use std::vector. | |
6505 | (read_namespace): Update. | |
6506 | * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update. | |
6507 | ||
0fc21fd8 TT |
6508 | 2017-09-09 Tom Tromey <tom@tromey.com> |
6509 | ||
6510 | * linespec.c (create_sals_line_offset): Use gdb::def_vector. | |
6511 | ||
49663d05 TT |
6512 | 2017-09-09 Tom Tromey <tom@tromey.com> |
6513 | ||
6514 | * p-valprint.c (pascal_object_print_value): Use gdb::byte_vector. | |
6515 | ||
0b868b60 TT |
6516 | 2017-09-09 Tom Tromey <tom@tromey.com> |
6517 | ||
6518 | * stack.c (func_command): Use gdb::def_vector. | |
6519 | ||
c0470d48 TT |
6520 | 2017-09-09 Tom Tromey <tom@tromey.com> |
6521 | ||
6522 | * mi/mi-cmd-var.c (mi_cmd_var_list_children): Use gdb::optional, | |
6523 | ui_out_emit_list, ui_out_emit_tuple. | |
6524 | (mi_cmd_var_update): Likewise. | |
6525 | ||
ca5909c7 TT |
6526 | 2017-09-09 Tom Tromey <tom@tromey.com> |
6527 | ||
6528 | * mi/mi-interp.c (mi_user_selected_context_changed): Use | |
6529 | ui_out_redirect_pop. | |
6530 | * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use | |
6531 | ui_out_redirect_pop. | |
6532 | * utils.c (do_ui_out_redirect_pop) | |
6533 | (make_cleanup_ui_out_redirect_pop): Remove. | |
6534 | * top.c (execute_command_to_string): Use ui_out_redirect_pop. | |
6535 | * utils.h (make_cleanup_ui_out_redirect_pop): Remove. | |
6536 | * ui-out.h (ui_out_redirect_pop): New class. | |
6537 | ||
e6a2252a TT |
6538 | 2017-09-09 Tom Tromey <tom@tromey.com> |
6539 | ||
6540 | * mi/mi-main.c (output_cores): Use ui_out_emit_list. | |
6541 | (list_available_thread_groups, mi_cmd_list_thread_groups) | |
6542 | (mi_cmd_data_list_changed_registers, mi_cmd_data_read_memory) | |
6543 | (mi_cmd_data_read_memory_bytes, mi_cmd_trace_frame_collected): | |
6544 | Likewise. | |
6545 | ||
393702cd TT |
6546 | 2017-09-09 Tom Tromey <tom@tromey.com> |
6547 | ||
6548 | * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use | |
6549 | ui_out_emit_tuple. | |
6550 | ||
76f9c9cf TT |
6551 | 2017-09-09 Tom Tromey <tom@tromey.com> |
6552 | ||
6553 | * target.c (flash_erase_command): Use ui_out_emit_tuple. | |
6554 | * stack.c (print_frame): Use ui_out_emit_tuple. | |
6555 | * spu-tdep.c (info_spu_event_command): Use ui_out_emit_tuple. | |
6556 | (info_spu_mailbox_command, info_spu_dma_command) | |
6557 | (info_spu_proxydma_command): Likewise. | |
6558 | * mi/mi-main.c (mi_cmd_trace_frame_collected): Use | |
6559 | ui_out_emit_tuple, gdb::byte_vector, bin2hex. | |
6560 | * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use | |
6561 | ui_out_emit_tuple. | |
6562 | * breakpoint.c (print_it_watchpoint): Use ui_out_emit_tuple. | |
6563 | ||
dc9fe180 TT |
6564 | 2017-09-09 Tom Tromey <tom@tromey.com> |
6565 | ||
6566 | * ui-out.h (make_cleanup_ui_out_table_begin_end): Remove. | |
6567 | (class ui_out_emit_table): Update comment. | |
6568 | * ui-out.c (do_cleanup_table_end) | |
6569 | (make_cleanup_ui_out_table_begin_end): Remove. | |
6570 | * spu-tdep.c (info_spu_mailbox_list): Use ui_out_emit_table. | |
6571 | (info_spu_dma_cmdlist): Likewise. | |
6572 | * probe.c (info_probes_for_ops): Use ui_out_emit_table. | |
6573 | * darwin-nat-info.c (darwin_debug_regions_recurse): Use | |
6574 | ui_out_emit_table. | |
6575 | ||
f8cc3da6 TT |
6576 | 2017-09-09 Tom Tromey <tom@tromey.com> |
6577 | ||
6578 | * thread.c (print_thread_info_1): Use ui_out_emit_table, | |
6579 | ui_out_emit_list, gdb::optional. | |
6580 | ||
481695ed JB |
6581 | 2017-09-09 John Baldwin <jhb@FreeBSD.org> |
6582 | ||
6583 | * aarch64-linux-nat.c: Remove _initialize_aarch64_linux_nat | |
6584 | prototype. | |
6585 | * aarch64-linux-tdep.c: Remove _initialize_aarch64_linux_tdep | |
6586 | prototype. | |
6587 | * aarch64-newlib-tdep.c: Remove _initialize_aarch64_newlib_tdep | |
6588 | prototype. | |
6589 | * aarch64-tdep.c: Remove _initialize_aarch64_tdep prototype. | |
6590 | * ada-exp.y: Remove _initialize_ada_exp prototype. | |
6591 | * ada-lang.c: Remove _initialize_ada_language prototype. | |
6592 | * ada-tasks.c: Remove _initialize_tasks prototype. | |
6593 | * addrmap.c: Remove _initialize_addrmap prototype. | |
6594 | * agent.c: Remove _initialize_agent prototype. | |
6595 | * aix-thread.c: Remove _initialize_aix_thread prototype. | |
6596 | * alpha-bsd-nat.c: Remove _initialize_alphabsd_nat prototype. | |
6597 | * alpha-linux-nat.c: Remove _initialize_alpha_linux_nat prototype. | |
6598 | * alpha-linux-tdep.c: Remove _initialize_alpha_linux_tdep | |
6599 | prototype. | |
6600 | * alpha-nbsd-tdep.c: Remove _initialize_alphanbsd_tdep prototype. | |
6601 | * alpha-obsd-tdep.c: Remove _initialize_alphaobsd_tdep prototype. | |
6602 | * alpha-tdep.c: Remove _initialize_alpha_tdep prototype. | |
6603 | * amd64-darwin-tdep.c: Remove _initialize_amd64_darwin_tdep | |
6604 | prototype. | |
6605 | * amd64-dicos-tdep.c: Remove _initialize_amd64_dicos_tdep | |
6606 | prototype. | |
6607 | * amd64-fbsd-nat.c: Remove _initialize_amd64fbsd_nat prototype. | |
6608 | * amd64-fbsd-tdep.c: Remove _initialize_amd64fbsd_tdep prototype. | |
6609 | * amd64-linux-nat.c: Remove _initialize_amd64_linux_nat prototype. | |
6610 | * amd64-linux-tdep.c: Remove _initialize_amd64_linux_tdep | |
6611 | prototype. | |
6612 | * amd64-nbsd-nat.c: Remove _initialize_amd64nbsd_nat prototype. | |
6613 | * amd64-nbsd-tdep.c: Remove _initialize_amd64nbsd_tdep prototype. | |
6614 | * amd64-obsd-nat.c: Remove _initialize_amd64obsd_nat prototype. | |
6615 | * amd64-obsd-tdep.c: Remove _initialize_amd64obsd_tdep prototype. | |
6616 | * amd64-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype. | |
6617 | * amd64-tdep.c: Remove _initialize_amd64_tdep prototype. | |
6618 | * amd64-windows-nat.c: Remove _initialize_amd64_windows_nat | |
6619 | prototype. | |
6620 | * amd64-windows-tdep.c: Remove _initialize_amd64_windows_tdep | |
6621 | prototype. | |
6622 | * annotate.c: Remove _initialize_annotate prototype. | |
6623 | * arc-newlib-tdep.c: Remove _initialize_arc_newlib_tdep prototype. | |
6624 | * arc-tdep.c: Remove _initialize_arc_tdep prototype. | |
6625 | * arch-utils.c: Remove _initialize_gdbarch_utils prototype. | |
6626 | * arm-linux-nat.c: Remove _initialize_arm_linux_nat prototype. | |
6627 | * arm-linux-tdep.c: Remove _initialize_arm_linux_tdep prototype. | |
6628 | * arm-nbsd-tdep.c: Remove _initialize_arm_netbsd_tdep prototype. | |
6629 | * arm-obsd-tdep.c: Remove _initialize_armobsd_tdep prototype. | |
6630 | * arm-symbian-tdep.c: Remove _initialize_arm_symbian_tdep | |
6631 | prototype. | |
6632 | * arm-tdep.c: Remove _initialize_arm_tdep prototype. | |
6633 | * arm-wince-tdep.c: Remove _initialize_arm_wince_tdep prototype. | |
6634 | * auto-load.c: Remove _initialize_auto_load prototype. | |
6635 | * auxv.c: Remove _initialize_auxv prototype. | |
6636 | * avr-tdep.c: Remove _initialize_avr_tdep prototype. | |
6637 | * ax-gdb.c: Remove _initialize_ax_gdb prototype. | |
6638 | * bfin-linux-tdep.c: Remove _initialize_bfin_linux_tdep prototype. | |
6639 | * bfin-tdep.c: Remove _initialize_bfin_tdep prototype. | |
6640 | * break-catch-sig.c: Remove _initialize_break_catch_sig prototype. | |
6641 | * break-catch-syscall.c: Remove _initialize_break_catch_syscall | |
6642 | prototype. | |
6643 | * break-catch-throw.c: Remove _initialize_break_catch_throw | |
6644 | prototype. | |
6645 | * breakpoint.c: Remove _initialize_breakpoint prototype. | |
6646 | * bsd-uthread.c: Remove _initialize_bsd_uthread prototype. | |
6647 | * btrace.c: Remove _initialize_btrace prototype. | |
6648 | * charset.c: Remove _initialize_charset prototype. | |
6649 | * cli/cli-cmds.c: Remove _initialize_cli_cmds prototype. | |
6650 | * cli/cli-dump.c: Remove _initialize_cli_dump prototype. | |
6651 | * cli/cli-interp.c: Remove _initialize_cli_interp prototype. | |
6652 | * cli/cli-logging.c: Remove _initialize_cli_logging prototype. | |
6653 | * cli/cli-script.c: Remove _initialize_cli_script prototype. | |
6654 | * coff-pe-read.c: Remove _initialize_coff_pe_read prototype. | |
6655 | * coffread.c: Remove _initialize_coffread prototype. | |
6656 | * compile/compile.c: Remove _initialize_compile prototype. | |
6657 | * complaints.c: Remove _initialize_complaints prototype. | |
6658 | * completer.c: Remove _initialize_completer prototype. | |
6659 | * copying.awk: Remove _initialize_copying prototype. | |
6660 | * copying.c: Regenerate. | |
6661 | * core-regset.c: Remove _initialize_core_regset prototype. | |
6662 | * corefile.c: Remove _initialize_core prototype. | |
6663 | * corelow.c: Remove _initialize_corelow prototype. | |
6664 | * cp-abi.c: Remove _initialize_cp_abi prototype. | |
6665 | * cp-namespace.c: Remove _initialize_cp_namespace prototype. | |
6666 | * cp-support.c: Remove _initialize_cp_support prototype. | |
6667 | * cp-valprint.c: Remove _initialize_cp_valprint prototype. | |
6668 | * cris-linux-tdep.c: Remove _initialize_cris_linux_tdep prototype. | |
6669 | * cris-tdep.c: Remove _initialize_cris_tdep prototype. | |
6670 | * ctf.c: Remove _initialize_ctf prototype. | |
6671 | * d-lang.c: Remove _initialize_d_language prototype. | |
6672 | * darwin-nat-info.c: Remove _initialize_darwin_info_commands | |
6673 | prototype. | |
6674 | * darwin-nat.c: Remove _initialize_darwin_inferior prototype. | |
6675 | * dbxread.c: Remove _initialize_dbxread prototype. | |
6676 | * dcache.c: Remove _initialize_dcache prototype. | |
6677 | * demangle.c: Remove _initialize_demangler prototype. | |
6678 | * disasm-selftests.c: Remove _initialize_disasm_selftests | |
6679 | prototype. | |
6680 | * disasm.c: Remove _initialize_disasm prototype. | |
6681 | * dtrace-probe.c: Remove _initialize_dtrace_probe prototype. | |
6682 | * dummy-frame.c: Remove _initialize_dummy_frame prototype. | |
6683 | * dwarf2-frame-tailcall.c: Remove _initialize_tailcall_frame | |
6684 | prototype. | |
6685 | * dwarf2-frame.c: Remove _initialize_dwarf2_frame prototype. | |
6686 | * dwarf2expr.c: Remove _initialize_dwarf2expr prototype. | |
6687 | * dwarf2loc.c: Remove _initialize_dwarf2loc prototype. | |
6688 | * dwarf2read.c: Remove _initialize_dwarf2_read prototype. | |
6689 | * elfread.c: Remove _initialize_elfread prototype. | |
6690 | * exec.c: Remove _initialize_exec prototype. | |
6691 | * extension.c: Remove _initialize_extension prototype. | |
6692 | * f-lang.c: Remove _initialize_f_language prototype. | |
6693 | * f-valprint.c: Remove _initialize_f_valprint prototype. | |
6694 | * fbsd-nat.c: Remove _initialize_fbsd_nat prototype. | |
6695 | * fbsd-tdep.c: Remove _initialize_fbsd_tdep prototype. | |
6696 | * filesystem.c: Remove _initialize_filesystem prototype. | |
6697 | * findcmd.c: Remove _initialize_mem_search prototype. | |
6698 | * fork-child.c: Remove _initialize_fork_child prototype. | |
6699 | * frame-base.c: Remove _initialize_frame_base prototype. | |
6700 | * frame-unwind.c: Remove _initialize_frame_unwind prototype. | |
6701 | * frame.c: Remove _initialize_frame prototype. | |
6702 | * frv-linux-tdep.c: Remove _initialize_frv_linux_tdep prototype. | |
6703 | * frv-tdep.c: Remove _initialize_frv_tdep prototype. | |
6704 | * ft32-tdep.c: Remove _initialize_ft32_tdep prototype. | |
6705 | * gcore.c: Remove _initialize_gcore prototype. | |
6706 | * gdb_bfd.c: Remove _initialize_gdb_bfd prototype. | |
6707 | * gdbarch.c: Regenerate. | |
6708 | * gdbarch.sh: Remove _initialize_gdbarch prototype. | |
6709 | * gdbtypes.c: Remove _initialize_gdbtypes prototype. | |
6710 | * gnu-nat.c: Remove _initialize_gnu_nat prototype. | |
6711 | * gnu-v2-abi.c: Remove _initialize_gnu_v2_abi prototype. | |
6712 | * gnu-v3-abi.c: Remove _initialize_gnu_v3_abi prototype. | |
6713 | * go-lang.c: Remove _initialize_go_language prototype. | |
6714 | * go32-nat.c: Remove _initialize_go32_nat prototype. | |
6715 | * guile/guile.c: Remove _initialize_guile prototype. | |
6716 | * h8300-tdep.c: Remove _initialize_h8300_tdep prototype. | |
6717 | * hppa-linux-nat.c: Remove _initialize_hppa_linux_nat prototype. | |
6718 | * hppa-linux-tdep.c: Remove _initialize_hppa_linux_tdep prototype. | |
6719 | * hppa-nbsd-nat.c: Remove _initialize_hppanbsd_nat prototype. | |
6720 | * hppa-nbsd-tdep.c: Remove _initialize_hppanbsd_tdep prototype. | |
6721 | * hppa-obsd-nat.c: Remove _initialize_hppaobsd_nat prototype. | |
6722 | * hppa-obsd-tdep.c: Remove _initialize_hppaobsd_tdep prototype. | |
6723 | * hppa-tdep.c: Remove _initialize_hppa_tdep prototype. | |
6724 | * i386-bsd-nat.c: Remove _initialize_i386bsd_nat prototype. | |
6725 | * i386-cygwin-tdep.c: Remove _initialize_i386_cygwin_tdep | |
6726 | prototype. | |
6727 | * i386-darwin-tdep.c: Remove _initialize_i386_darwin_tdep | |
6728 | prototype. | |
6729 | * i386-dicos-tdep.c: Remove _initialize_i386_dicos_tdep prototype. | |
6730 | * i386-fbsd-nat.c: Remove _initialize_i386fbsd_nat prototype. | |
6731 | * i386-fbsd-tdep.c: Remove _initialize_i386fbsd_tdep prototype. | |
6732 | * i386-gnu-nat.c: Remove _initialize_i386gnu_nat prototype. | |
6733 | * i386-gnu-tdep.c: Remove _initialize_i386gnu_tdep prototype. | |
6734 | * i386-linux-nat.c: Remove _initialize_i386_linux_nat prototype. | |
6735 | * i386-linux-tdep.c: Remove _initialize_i386_linux_tdep prototype. | |
6736 | * i386-nbsd-nat.c: Remove _initialize_i386nbsd_nat prototype. | |
6737 | * i386-nbsd-tdep.c: Remove _initialize_i386nbsd_tdep prototype. | |
6738 | * i386-nto-tdep.c: Remove _initialize_i386nto_tdep prototype. | |
6739 | * i386-obsd-nat.c: Remove _initialize_i386obsd_nat prototype. | |
6740 | * i386-obsd-tdep.c: Remove _initialize_i386obsd_tdep prototype. | |
6741 | * i386-sol2-nat.c: Remove _initialize_amd64_sol2_nat prototype. | |
6742 | * i386-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype. | |
6743 | * i386-tdep.c: Remove _initialize_i386_tdep prototype. | |
6744 | * i386-windows-nat.c: Remove _initialize_i386_windows_nat | |
6745 | prototype. | |
6746 | * ia64-libunwind-tdep.c: Remove _initialize_libunwind_frame | |
6747 | prototype. | |
6748 | * ia64-linux-nat.c: Remove _initialize_ia64_linux_nat prototype. | |
6749 | * ia64-linux-tdep.c: Remove _initialize_ia64_linux_tdep prototype. | |
6750 | * ia64-tdep.c: Remove _initialize_ia64_tdep prototype. | |
6751 | * ia64-vms-tdep.c: Remove _initialize_ia64_vms_tdep prototype. | |
6752 | * infcall.c: Remove _initialize_infcall prototype. | |
6753 | * infcmd.c: Remove _initialize_infcmd prototype. | |
6754 | * inferior.c: Remove _initialize_inferiors prototype. | |
6755 | * inflow.c: Remove _initialize_inflow prototype. | |
6756 | * infrun.c: Remove _initialize_infrun prototype. | |
6757 | * interps.c: Remove _initialize_interpreter prototype. | |
6758 | * iq2000-tdep.c: Remove _initialize_iq2000_tdep prototype. | |
6759 | * jit.c: Remove _initialize_jit prototype. | |
6760 | * language.c: Remove _initialize_language prototype. | |
6761 | * linux-fork.c: Remove _initialize_linux_fork prototype. | |
6762 | * linux-nat.c: Remove _initialize_linux_nat prototype. | |
6763 | * linux-tdep.c: Remove _initialize_linux_tdep prototype. | |
6764 | * linux-thread-db.c: Remove _initialize_thread_db prototype. | |
6765 | * lm32-tdep.c: Remove _initialize_lm32_tdep prototype. | |
6766 | * m2-lang.c: Remove _initialize_m2_language prototype. | |
6767 | * m32c-tdep.c: Remove _initialize_m32c_tdep prototype. | |
6768 | * m32r-linux-nat.c: Remove _initialize_m32r_linux_nat prototype. | |
6769 | * m32r-linux-tdep.c: Remove _initialize_m32r_linux_tdep prototype. | |
6770 | * m32r-tdep.c: Remove _initialize_m32r_tdep prototype. | |
6771 | * m68hc11-tdep.c: Remove _initialize_m68hc11_tdep prototype. | |
6772 | * m68k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype. | |
6773 | * m68k-bsd-tdep.c: Remove _initialize_m68kbsd_tdep prototype. | |
6774 | * m68k-linux-nat.c: Remove _initialize_m68k_linux_tdep prototype. | |
6775 | * m68k-linux-tdep.c: Remove _initialize_m68k_linux_tdep prototype. | |
6776 | * m68k-tdep.c: Remove _initialize_m68k_tdep prototype. | |
6777 | * m88k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype. | |
6778 | * m88k-tdep.c: Remove _initialize_m68kbsd_tdep prototype. | |
6779 | * machoread.c: Remove _initialize_machoread prototype. | |
6780 | * macrocmd.c: Remove _initialize_macrocmd prototype. | |
6781 | * macroscope.c: Remove _initialize_macroscope prototype. | |
6782 | * maint.c: Remove _initialize_maint_cmds prototype. | |
6783 | * mdebugread.c: Remove _initialize_mdebugread prototype. | |
6784 | * memattr.c: Remove _initialize_mem prototype. | |
6785 | * mep-tdep.c: Remove _initialize_mep_tdep prototype. | |
6786 | * mi/mi-cmd-env.c: Remove _initialize_mi_cmd_env prototype. | |
6787 | * mi/mi-cmds.c: Remove _initialize_mi_cmds prototype. | |
6788 | * mi/mi-interp.c: Remove _initialize_mi_interp prototype. | |
6789 | * mi/mi-main.c: Remove _initialize_mi_main prototype. | |
6790 | * microblaze-linux-tdep.c: Remove | |
6791 | _initialize_microblaze_linux_tdep prototype. | |
6792 | * microblaze-tdep.c: Remove _initialize_microblaze_tdep prototype. | |
6793 | * mips-fbsd-nat.c: Remove _initialize_mips_fbsd_nat prototype. | |
6794 | * mips-fbsd-tdep.c: Remove _initialize_mips_fbsd_tdep prototype. | |
6795 | * mips-linux-nat.c: Remove _initialize_mips_linux_nat prototype. | |
6796 | * mips-linux-tdep.c: Remove _initialize_mips_linux_tdep prototype. | |
6797 | * mips-nbsd-nat.c: Remove _initialize_mipsnbsd_nat prototype. | |
6798 | * mips-nbsd-tdep.c: Remove _initialize_mipsnbsd_tdep prototype. | |
6799 | * mips-sde-tdep.c: Remove _initialize_mips_sde_tdep prototype. | |
6800 | * mips-tdep.c: Remove _initialize_mips_tdep prototype. | |
6801 | * mips64-obsd-nat.c: Remove _initialize_mips64obsd_nat prototype. | |
6802 | * mips64-obsd-tdep.c: Remove _initialize_mips64obsd_tdep | |
6803 | prototype. | |
6804 | * mipsread.c: Remove _initialize_mipsread prototype. | |
6805 | * mn10300-linux-tdep.c: Remove _initialize_mn10300_linux_tdep | |
6806 | prototype. | |
6807 | * mn10300-tdep.c: Remove _initialize_mn10300_tdep prototype. | |
6808 | * moxie-tdep.c: Remove _initialize_moxie_tdep prototype. | |
6809 | * msp430-tdep.c: Remove _initialize_msp430_tdep prototype. | |
6810 | * mt-tdep.c: Remove _initialize_mt_tdep prototype. | |
6811 | * nds32-tdep.c: Remove _initialize_nds32_tdep prototype. | |
6812 | * nios2-linux-tdep.c: Remove _initialize_nios2_linux_tdep | |
6813 | prototype. | |
6814 | * nios2-tdep.c: Remove _initialize_nios2_tdep prototype. | |
6815 | * nto-procfs.c: Remove _initialize_procfs prototype. | |
6816 | * nto-tdep.c: Remove _initialize_nto_tdep prototype. | |
6817 | * objc-lang.c: Remove _initialize_objc_language prototype. | |
6818 | * objfiles.c: Remove _initialize_objfiles prototype. | |
6819 | * observer.c: Remove observer_test_first_notification_function, | |
6820 | observer_test_second_notification_function, | |
6821 | observer_test_third_notification_function, and | |
6822 | _initialize_observer prototypes. | |
6823 | * opencl-lang.c: Remove _initialize_opencl_language prototypes. | |
6824 | * osabi.c: Remove _initialize_gdb_osabi prototype. | |
6825 | * osdata.c: Remove _initialize_osdata prototype. | |
6826 | * p-valprint.c: Remove _initialize_pascal_valprint prototype. | |
6827 | * parse.c: Remove _initialize_parse prototype. | |
6828 | * ppc-fbsd-nat.c: Remove _initialize_ppcfbsd_nat prototype. | |
6829 | * ppc-fbsd-tdep.c: Remove _initialize_ppcfbsd_tdep prototype. | |
6830 | * ppc-linux-nat.c: Remove _initialize_ppc_linux_nat prototype. | |
6831 | * ppc-linux-tdep.c: Remove _initialize_ppc_linux_tdep prototype. | |
6832 | * ppc-nbsd-nat.c: Remove _initialize_ppcnbsd_nat prototype. | |
6833 | * ppc-nbsd-tdep.c: Remove _initialize_ppcnbsd_tdep prototype. | |
6834 | * ppc-obsd-nat.c: Remove _initialize_ppcobsd_nat prototype. | |
6835 | * ppc-obsd-tdep.c: Remove _initialize_ppcobsd_tdep prototype. | |
6836 | * printcmd.c: Remove _initialize_printcmd prototype. | |
6837 | * probe.c: Remove _initialize_probe prototype. | |
6838 | * proc-api.c: Remove _initialize_proc_api prototype. | |
6839 | * proc-events.c: Remove _initialize_proc_events prototype. | |
6840 | * proc-service.c: Remove _initialize_proc_service prototype. | |
6841 | * procfs.c: Remove _initialize_procfs prototype. | |
6842 | * psymtab.c: Remove _initialize_psymtab prototype. | |
6843 | * python/python.c: Remove _initialize_python prototype. | |
6844 | * ravenscar-thread.c: Remove _initialize_ravenscar prototype. | |
6845 | * record-btrace.c: Remove _initialize_record_btrace prototype. | |
6846 | * record-full.c: Remove _initialize_record_full prototype. | |
6847 | * record.c: Remove _initialize_record prototype. | |
6848 | * regcache.c: Remove _initialize_regcache prototype. | |
6849 | * reggroups.c: Remove _initialize_reggroup prototype. | |
6850 | * remote-notif.c: Remove _initialize_notif prototype. | |
6851 | * remote-sim.c: Remove _initialize_remote_sim prototype. | |
6852 | * remote.c: Remove _initialize_remote prototype. | |
6853 | * reverse.c: Remove _initialize_reverse prototype. | |
6854 | * rl78-tdep.c: Remove _initialize_rl78_tdep prototype. | |
6855 | * rs6000-aix-tdep.c: Remove _initialize_rs6000_aix_tdep prototype. | |
6856 | * rs6000-lynx178-tdep.c: Remove _initialize_rs6000_lynx178_tdep | |
6857 | prototype. | |
6858 | * rs6000-nat.c: Remove _initialize_rs6000_nat prototype. | |
6859 | * rs6000-tdep.c: Remove _initialize_rs6000_tdep prototype. | |
6860 | * rust-exp.y: Remove _initialize_rust_exp prototype. | |
6861 | * rx-tdep.c: Remove _initialize_rx_tdep prototype. | |
6862 | * s390-linux-nat.c: Remove _initialize_s390_nat prototype. | |
6863 | * s390-linux-tdep.c: Remove _initialize_s390_tdep prototype. | |
6864 | * score-tdep.c: Remove _initialize_score_tdep prototype. | |
6865 | * selftest-arch.c: Remove _initialize_selftests_foreach_arch | |
6866 | prototype. | |
6867 | * ser-go32.c: Remove _initialize_ser_dos prototype. | |
6868 | * ser-mingw.c: Remove _initialize_ser_windows prototype. | |
6869 | * ser-pipe.c: Remove _initialize_ser_pipe prototype. | |
6870 | * ser-tcp.c: Remove _initialize_ser_tcp prototype. | |
6871 | * ser-unix.c: Remove _initialize_ser_hardwire prototype. | |
6872 | * serial.c: Remove _initialize_serial prototype. | |
6873 | * sh-linux-tdep.c: Remove _initialize_sh_linux_tdep prototype. | |
6874 | * sh-nbsd-nat.c: Remove _initialize_shnbsd_nat prototype. | |
6875 | * sh-nbsd-tdep.c: Remove _initialize_shnbsd_tdep prototype. | |
6876 | * sh-tdep.c: Remove _initialize_sh_tdep prototype. | |
6877 | * skip.c: Remove _initialize_step_skip prototype. | |
6878 | * sol-thread.c: Remove _initialize_sol_thread prototype. | |
6879 | * solib-aix.c: Remove _initialize_solib_aix prototype. | |
6880 | * solib-darwin.c: Remove _initialize_darwin_solib prototype. | |
6881 | * solib-dsbt.c: Remove _initialize_dsbt_solib prototype. | |
6882 | * solib-frv.c: Remove _initialize_frv_solib prototype. | |
6883 | * solib-spu.c: Remove _initialize_spu_solib prototype. | |
6884 | * solib-svr4.c: Remove _initialize_svr4_solib prototype. | |
6885 | * solib-target.c: Remove _initialize_solib_target prototype. | |
6886 | * solib.c: Remove _initialize_solib prototype. | |
6887 | * source.c: Remove _initialize_source prototype. | |
6888 | * sparc-linux-nat.c: Remove _initialize_sparc_linux_nat prototype. | |
6889 | * sparc-linux-tdep.c: Remove _initialize_sparc_linux_tdep | |
6890 | prototype. | |
6891 | * sparc-nat.c: Remove _initialize_sparc_nat prototype. | |
6892 | * sparc-nbsd-nat.c: Remove _initialize_sparcnbsd_nat prototype. | |
6893 | * sparc-nbsd-tdep.c: Remove _initialize_sparcnbsd_tdep prototype. | |
6894 | * sparc-obsd-tdep.c: Remove _initialize_sparc32obsd_tdep | |
6895 | prototype. | |
6896 | * sparc-sol2-nat.c: Remove _initialize_sparc_sol2_nat prototype. | |
6897 | * sparc-sol2-tdep.c: Remove _initialize_sparc_sol2_tdep prototype. | |
6898 | * sparc-tdep.c: Remove _initialize_sparc_tdep prototype. | |
6899 | * sparc64-fbsd-nat.c: Remove _initialize_sparc64fbsd_nat | |
6900 | prototype. | |
6901 | * sparc64-fbsd-tdep.c: Remove _initialize_sparc64fbsd_tdep | |
6902 | prototype. | |
6903 | * sparc64-linux-nat.c: Remove _initialize_sparc64_linux_nat | |
6904 | prototype. | |
6905 | * sparc64-linux-tdep.c: Remove _initialize_sparc64_linux_tdep | |
6906 | prototype. | |
6907 | * sparc64-nat.c: Remove _initialize_sparc64_nat prototype. | |
6908 | * sparc64-nbsd-nat.c: Remove _initialize_sparc64nbsd_nat | |
6909 | prototype. | |
6910 | * sparc64-nbsd-tdep.c: Remove _initialize_sparc64nbsd_tdep | |
6911 | prototype. | |
6912 | * sparc64-obsd-nat.c: Remove _initialize_sparc64obsd_nat | |
6913 | prototype. | |
6914 | * sparc64-obsd-tdep.c: Remove _initialize_sparc64obsd_tdep | |
6915 | prototype. | |
6916 | * sparc64-sol2-tdep.c: Remove _initialize_sparc64_sol2_tdep | |
6917 | prototype. | |
6918 | * spu-linux-nat.c: Remove _initialize_spu_nat prototype. | |
6919 | * spu-multiarch.c: Remove _initialize_spu_multiarch prototype. | |
6920 | * spu-tdep.c: Remove _initialize_spu_tdep prototype. | |
6921 | * stabsread.c: Remove _initialize_stabsread prototype. | |
6922 | * stack.c: Remove _initialize_stack prototype. | |
6923 | * stap-probe.c: Remove _initialize_stap_probe prototype. | |
6924 | * std-regs.c: Remove _initialize_frame_reg prototype. | |
6925 | * symfile-debug.c: Remove _initialize_symfile_debug prototype. | |
6926 | * symfile-mem.c: Remove _initialize_symfile_mem prototype. | |
6927 | * symfile.c: Remove _initialize_symfile prototype. | |
6928 | * symmisc.c: Remove _initialize_symmisc prototype. | |
6929 | * symtab.c: Remove _initialize_symtab prototype. | |
6930 | * target-dcache.c: Remove _initialize_target_dcache prototype. | |
6931 | * target-descriptions.c: Remove _initialize_target_descriptions | |
6932 | prototype. | |
6933 | * thread.c: Remove _initialize_thread prototype. | |
6934 | * tic6x-linux-tdep.c: Remove _initialize_tic6x_linux_tdep | |
6935 | prototype. | |
6936 | * tic6x-tdep.c: Remove _initialize_tic6x_tdep prototype. | |
6937 | * tilegx-linux-nat.c: Remove _initialize_tile_linux_nat prototype. | |
6938 | * tilegx-linux-tdep.c: Remove _initialize_tilegx_linux_tdep | |
6939 | prototype. | |
6940 | * tilegx-tdep.c: Remove _initialize_tilegx_tdep prototype. | |
6941 | * tracefile-tfile.c: Remove _initialize_tracefile_tfile prototype. | |
6942 | * tracefile.c: Remove _initialize_tracefile prototype. | |
6943 | * tracepoint.c: Remove _initialize_tracepoint prototype. | |
6944 | * tui/tui-hooks.c: Remove _initialize_tui_hooks prototype. | |
6945 | * tui/tui-interp.c: Remove _initialize_tui_interp prototype. | |
6946 | * tui/tui-layout.c: Remove _initialize_tui_layout prototype. | |
6947 | * tui/tui-regs.c: Remove _initialize_tui_regs prototype. | |
6948 | * tui/tui-stack.c: Remove _initialize_tui_stack prototype. | |
6949 | * tui/tui-win.c: Remove _initialize_tui_win prototype. | |
6950 | * tui/tui.c: Remove _initialize_tui prototype. | |
6951 | * typeprint.c: Remove _initialize_typeprint prototype. | |
6952 | * user-regs.c: Remove _initialize_user_regs prototype. | |
6953 | * utils.c: Remove _initialize_utils prototype. | |
6954 | * v850-tdep.c: Remove _initialize_v850_tdep prototype. | |
6955 | * valarith.c: Remove _initialize_valarith prototype. | |
6956 | * valops.c: Remove _initialize_valops prototype. | |
6957 | * valprint.c: Remove _initialize_valprint prototype. | |
6958 | * value.c: Remove _initialize_values prototype. | |
6959 | * varobj.c: Remove _initialize_varobj prototype. | |
6960 | * vax-bsd-nat.c: Remove _initialize_vaxbsd_nat prototype. | |
6961 | * vax-nbsd-tdep.c: Remove _initialize_vaxnbsd_tdep prototype. | |
6962 | * vax-tdep.c: Remove _initialize_vax_tdep prototype. | |
6963 | * windows-nat.c: Remove _initialize_windows_nat, | |
6964 | _initialize_check_for_gdb_ini, and _initialize_loadable | |
6965 | prototypes. | |
6966 | * windows-tdep.c: Remove _initialize_windows_tdep prototype. | |
6967 | * xcoffread.c: Remove _initialize_xcoffread prototype. | |
6968 | * xml-support.c: Remove _initialize_xml_support prototype. | |
6969 | * xstormy16-tdep.c: Remove _initialize_xstormy16_tdep prototype. | |
6970 | * xtensa-linux-nat.c: Remove _initialize_xtensa_linux_nat | |
6971 | prototype. | |
6972 | * xtensa-linux-tdep.c: Remove _initialize_xtensa_linux_tdep | |
6973 | prototype. | |
6974 | * xtensa-tdep.c: Remove _initialize_xtensa_tdep prototype. | |
6975 | ||
a611b5cb KS |
6976 | 2017-09-08 Keith Seitz <keiths@redhat.com> |
6977 | ||
6978 | * dwarf2read.c (struct field_info) <fnfields>: Remove unused | |
6979 | field. | |
6980 | ||
469412dd CW |
6981 | 2017-09-08 Christoph Weinmann <christoph.t.weinmann@intel.com> |
6982 | ||
6983 | * f-valprint.c (f_val_print): Remove check for one byte | |
6984 | sized integers. Remove printing of character type. | |
6985 | ||
a5ad232b FP |
6986 | 2017-09-08 Frank Penczek <frank.penczek@intel.com> |
6987 | Christoph Weinmann <christoph.t.weinmann@intel.com> | |
6988 | Bernhard Heckel <bernhard.heckel@intel.com> | |
6989 | ||
6990 | * f-typeprint.c (f_type_print_base): Use fprintfi_filtered | |
6991 | to maintain proper indentation when printing pointers/refs. | |
6992 | ||
e5014227 JB |
6993 | 2017-09-07 Joel Brobecker <brobecker@adacore.com> |
6994 | ||
6995 | GDB 8.0.1 released. | |
6996 | ||
63c99141 JB |
6997 | 2017-09-07 Joel Brobecker <brobecker@adacore.com> |
6998 | ||
6999 | * NEWS (Changes in GDB 7.11): Remove entry for QStartupWithShell. | |
7000 | ||
69c1e056 TT |
7001 | 2017-09-05 Tom Tromey <tom@tromey.com> |
7002 | ||
7003 | * parse.c (funcall_chain): Now a std::vector. | |
7004 | (start_arglist, end_arglist): Simplify. | |
7005 | (free_funcalls): Remove. | |
7006 | (parse_exp_in_context_1): Remove cleanup. | |
7007 | ||
fef704bf TT |
7008 | 2017-09-05 Tom Tromey <tom@tromey.com> |
7009 | ||
7010 | * go-exp.y (go_parse): Don't create a cleanup. | |
7011 | ||
5613c585 TT |
7012 | 2017-09-05 Tom Tromey <tom@tromey.com> |
7013 | ||
7014 | * d-exp.y (PrimaryExpression): Use std::string. | |
7015 | (d_parse): Don't create a cleanup. | |
7016 | ||
eae49211 TT |
7017 | 2017-09-05 Tom Tromey <tom@tromey.com> |
7018 | ||
7019 | * utils.c (do_clear_parser_state): Remove. | |
7020 | (make_cleanup_clear_parser_state): Remove. | |
7021 | * p-exp.y (pascal_parse): Use scoped_restore. | |
7022 | * m2-exp.y (m2_parse): Use scoped_restore. | |
7023 | * f-exp.y (f_parse): Use scoped_restore. | |
7024 | * d-exp.y (d_parse): Use scoped_restore. | |
7025 | * c-exp.y (c_parse): Use scoped_restore. | |
7026 | * ada-exp.y (ada_parse): Use scoped_restore. | |
7027 | * utils.h (make_cleanup_clear_parser_state): Remove. | |
7028 | ||
73b9be8b KS |
7029 | 2017-09-06 Keith Seitz <keiths@redhat.com> |
7030 | ||
7031 | * dwarf2read.c (dw2_linkage_name_attr): New function. | |
7032 | (dw2_linkage_name): New function. | |
7033 | (dwarf2_compute_name, dwarf2_physname, read_call_site_scope) | |
7034 | (guess_full_die_structure_name, dwarf2_name): Use dw2_linkage_name. | |
7035 | (anonymous_struct_prefix, dwarf2_name): Use dw2_linkage_name_attr. | |
7036 | ||
a102602b KR |
7037 | 2017-09-06 Kamil Rytarowski <n54@gmx.com> |
7038 | ||
7039 | * config/djgpp/djconfig.sh: Correct shell portability issue. | |
7040 | ||
28ad437d KR |
7041 | 2017-09-06 Kamil Rytarowski <n54@gmx.com> |
7042 | ||
7043 | * configure.nat: Define HAVE_NATIVE_GCORE_HOST on NetBSD. | |
7044 | ||
351787dd JB |
7045 | 2017-09-06 John Baldwin <jhb@FreeBSD.org> |
7046 | ||
7047 | * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c. | |
7048 | * NEWS: Mention new FreeBSD/mips native configuration. | |
7049 | * configure.host: Add aarch64*-*-freebsd*. | |
7050 | * configure.nat: Likewise. | |
7051 | * aarch64-fbsd-nat.c: New file. | |
7052 | ||
c0f84956 JB |
7053 | 2017-09-06 John Baldwin <jhb@FreeBSD.org> |
7054 | ||
7055 | * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-fbsd-tdep.o. | |
7056 | (ALLDEPFILES): Add aarch64-fbsd-tdep.c. | |
7057 | * NEWS: Mention new FreeBSD/aarch64 target. | |
7058 | * configure.tgt: Add aarch64*-*-freebsd*. | |
7059 | * aarch64-fbsd-tdep.c: New file. | |
7060 | * aarch64-fbsd-tdep.h: New file. | |
7061 | ||
7610297a KR |
7062 | 2017-09-06 Kamil Rytarowski <n54@gmx.com> |
7063 | ||
7064 | * MAINTAINERS (Write After Approval): Add Kamil Rytarowski. | |
7065 | ||
fbd1b771 JK |
7066 | 2017-09-06 Jan Kratochvil <jan.kratochvil@redhat.com> |
7067 | ||
7068 | * parse.c (find_minsym_type_and_address): Don't relocate addresses | |
7069 | of TLS symbols. | |
7070 | ||
5ca79eae PW |
7071 | 2017-09-05 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
7072 | ||
7073 | * objfiles.c (get_objfile_bfd_data): Remove useless obstack_init | |
7074 | call. | |
7075 | ||
bf93d7ba SM |
7076 | 2017-09-05 Simon Marchi <simon.marchi@ericsson.com> |
7077 | ||
7078 | * infrun.c (follow_exec): Call add_thread after | |
7079 | target_find_description. | |
7080 | ||
1bb7c059 SM |
7081 | 2017-09-05 Simon Marchi <simon.marchi@ericsson.com> |
7082 | ||
7083 | * infrun.c (handle_inferior_event_1): When exec'ing, read | |
7084 | stop_pc after follow_exec. | |
7085 | ||
fc809827 SM |
7086 | 2017-09-05 Simon Marchi <simon.marchi@ericsson.com> |
7087 | ||
7088 | * remote.c (process_g_packet): Update error message. | |
7089 | ||
d2fcdd85 YQ |
7090 | 2017-09-05 Yao Qi <yao.qi@linaro.org> |
7091 | ||
7092 | * configure.tgt (gdb_target_obs): Add i386.o for x86_64-* | |
7093 | targets. | |
7094 | ||
e69570ee PA |
7095 | 2017-09-05 Pedro Alves <palves@redhat.com> |
7096 | ||
7097 | * eval.c (eval_call, evaluate_funcall): New functions, factored | |
7098 | out from ... | |
7099 | (evaluate_subexp_standard): ... this. | |
7100 | ||
22916b07 YQ |
7101 | 2017-09-05 Yao Qi <yao.qi@linaro.org> |
7102 | ||
7103 | * amd64-tdep.c (amd64_target_description): Create target | |
7104 | descriptions. | |
7105 | (_initialize_amd64_tdep): Don't call functions | |
7106 | initialize_tdesc_amd64_*. Add self tests. | |
7107 | * arch/amd64.c (amd64_create_target_description): Add parameter | |
7108 | is_linux. Call set_tdesc_osabi if is_linux is true. | |
7109 | * arch/amd64.h (amd64_create_target_description): Update the | |
7110 | declaration. | |
7111 | * arch/i386.c (i386_create_target_description): Add parameter | |
7112 | is_linux. Call set_tdesc_osabi if is_linux is true. | |
7113 | * arch/i386.h (i386_create_target_description): Update | |
7114 | declaration. | |
7115 | * configure.tgt: Add i386.o to gdb_target_obs. | |
7116 | * features/Makefile (XMLTOC): Remove i386/*.xml. | |
7117 | * features/i386/amd64-avx-avx512.c: Remove. | |
7118 | * features/i386/amd64-avx-mpx-avx512-pku.c: Remove. | |
7119 | * features/i386/amd64-avx-mpx.c: Remove. | |
7120 | * features/i386/amd64-avx.c: Remove. | |
7121 | * features/i386/amd64-mpx.c: Remove. | |
7122 | * features/i386/amd64.c: Remove. | |
7123 | * features/i386/i386-avx-avx512.c: Remove. | |
7124 | * features/i386/i386-avx-mpx-avx512-pku.c: Remove. | |
7125 | * features/i386/i386-avx-mpx.c: Remove. | |
7126 | * features/i386/i386-avx.c: Remove. | |
7127 | * features/i386/i386-mmx.c: Remove. | |
7128 | * features/i386/i386-mpx.c: Remove. | |
7129 | * features/i386/i386.c: Remove. | |
7130 | * i386-tdep.c: Don't include features/i386/i386*.c., include | |
7131 | target-descriptions.h and arch/i386.h. | |
7132 | (i386_target_description): Create target descriptions. | |
7133 | (i386_gdbarch_init): Don't call initialize_tdesc_i386_* | |
7134 | functions. Do self tests. | |
7135 | ||
0854b7b1 YQ |
7136 | 2017-09-05 Yao Qi <yao.qi@linaro.org> |
7137 | ||
7138 | * features/Makefile (XMLTOC): Remove i386/amd64XXX-linux.xml. | |
7139 | * features/i386/amd64-avx-avx512-linux.c: Removed. | |
7140 | * features/i386/amd64-avx-linux.c: Removed. | |
7141 | * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Removed. | |
7142 | * features/i386/amd64-avx-mpx-linux.c: Removed. | |
7143 | * features/i386/amd64-linux.c: Removed. | |
7144 | * features/i386/amd64-mpx-linux.c: Removed. | |
7145 | * features/i386/x32-avx-avx512-linux.c: Removed. | |
7146 | * features/i386/x32-avx-linux.c: Removed. | |
7147 | * features/i386/x32-linux.c: Removed. | |
7148 | ||
b4570e4b YQ |
7149 | 2017-09-05 Yao Qi <yao.qi@linaro.org> |
7150 | ||
7151 | * amd64-linux-tdep.c: Include arch/amd64.h. Don't include | |
7152 | features/i386/*.c. | |
7153 | (amd64_linux_read_description): Call | |
7154 | amd64_create_target_description. | |
7155 | * arch/amd64.c: New file. | |
7156 | * arch/amd64.h: New file. | |
7157 | * configure.tgt (x86_64-*-linux*): Append amd64.o. | |
7158 | * Makefile.in (ALL_64_TARGET_OBS): Append amd64.o. | |
7159 | ||
6c73f67f YQ |
7160 | 2017-09-05 Yao Qi <yao.qi@linaro.org> |
7161 | ||
7162 | * amd64-linux-tdep.c: Don't include amd64-XXX-linux and | |
7163 | x32-XXX-linux.c. Include 64bit-XX.c and x32-XX.c. | |
7164 | (amd64_linux_read_description): Create target descriptions. | |
7165 | (_initialize_amd64_linux_tdep): Don't call initialize_tdesc_XXX | |
7166 | functions. Add unit tests. | |
7167 | * features/Makefile (FEATURE_XMLFILES): Append 64bit-XXX.xml and | |
7168 | x32-core.xml. | |
7169 | * features/i386/64bit-avx.c: Generated. | |
7170 | * features/i386/64bit-avx512.c: Generated. | |
7171 | * features/i386/64bit-core.c: Generated. | |
7172 | * features/i386/64bit-linux.c: Generated. | |
7173 | * features/i386/64bit-mpx.c: Generated. | |
7174 | * features/i386/64bit-pkeys.c: Generated. | |
7175 | * features/i386/64bit-segments.c: Generated. | |
7176 | * features/i386/64bit-sse.c: Generated. | |
7177 | * features/i386/x32-core.c: Generated. | |
7178 | * target-descriptions.c (maint_print_c_tdesc_cmd): Print feature | |
7179 | c files for amd64-linux and x32-linux. | |
7180 | ||
9d3d478b YQ |
7181 | 2017-09-05 Yao Qi <yao.qi@linaro.org> |
7182 | ||
7183 | * amd64-linux-tdep.c (amd64_linux_read_description): New | |
7184 | function. | |
7185 | (amd64_linux_core_read_description): Call | |
7186 | amd64_linux_read_description. | |
7187 | (amd64_linux_init_abi): Likewise. | |
7188 | (amd64_x32_linux_init_abi): Likewise. | |
7189 | * amd64-linux-tdep.h (amd64_linux_read_description): Declare. | |
7190 | * x86-linux-nat.c (x86_linux_read_description): Call | |
7191 | amd64_linux_read_description. | |
7192 | ||
b9f1d50f YQ |
7193 | 2017-09-05 Yao Qi <yao.qi@linaro.org> |
7194 | ||
7195 | * amd64-linux-tdep.c (amd64_linux_core_read_description): Update | |
7196 | comments. | |
7197 | ||
188c9e6d YQ |
7198 | 2017-09-05 Yao Qi <yao.qi@linaro.org> |
7199 | ||
7200 | * features/Makefile (XMLTOC): Remove i386/i386-XX-linux.xml. | |
7201 | * features/i386/i386-avx-avx512-linux.c: Remove. | |
7202 | * features/i386/i386-avx-linux.c: Remove. | |
7203 | * features/i386/i386-avx-mpx-avx512-pku-linux.c: Remove. | |
7204 | * features/i386/i386-avx-mpx-linux.c: Remove. | |
7205 | * features/i386/i386-linux.c: Remove. | |
7206 | * features/i386/i386-mmx-linux.c: Remove. | |
7207 | * features/i386/i386-mpx-linux.c: Remove. | |
7208 | ||
5f035c07 YQ |
7209 | 2017-09-05 Yao Qi <yao.qi@linaro.org> |
7210 | ||
7211 | * Makefile.in (ALL_TARGET_OBS): Add i386.o. | |
7212 | (SFILES): Add arch/i386.c. | |
7213 | (HFILES_NO_SRCDIR): Add arch/i386.h. | |
7214 | * arch/i386.c: New file. | |
7215 | * arch/i386.h: New file. | |
7216 | * arch/tdesc.h (allocate_target_description): Declare. | |
7217 | (set_tdesc_architecture): Declare. | |
7218 | (set_tdesc_osabi): Declare. | |
7219 | * configure.tgt (i[34567]86-*-linux*): Add i386.o. | |
7220 | * i386-linux-tdep.c: Don't include ../features/i386/32bit-XXX.c. | |
7221 | include arch/i386.h. | |
7222 | (i386_linux_read_description): Remove code and call | |
7223 | i386_create_target_description. | |
7224 | (set_tdesc_architecture): New function. | |
7225 | (set_tdesc_osabi): New function. | |
7226 | * target-descriptions.h (allocate_target_description): Remove. | |
7227 | ||
0abe8a89 YQ |
7228 | 2017-09-05 Yao Qi <yao.qi@linaro.org> |
7229 | ||
7230 | * arch/tdesc.h (tdesc_create_feature): Add an argument xml. | |
7231 | * target-descriptions.c (tdesc_create_feature): Likewise, and | |
7232 | adjust code. | |
7233 | * features/i386/32bit-avx.c: Re-generated. | |
7234 | * features/i386/32bit-avx512.c: Re-generated. | |
7235 | * features/i386/32bit-core.c: Re-generated. | |
7236 | * features/i386/32bit-linux.c: Re-generated. | |
7237 | * features/i386/32bit-mpx.c: Re-generated. | |
7238 | * features/i386/32bit-pkeys.c: Re-generated. | |
7239 | * features/i386/32bit-sse.c: Re-generated. | |
7240 | ||
0a188386 YQ |
7241 | 2017-09-05 Yao Qi <yao.qi@linaro.org> |
7242 | ||
7243 | * regformats/regdef.h (struct reg): Override operator == and !=. | |
7244 | ||
f49ff000 YQ |
7245 | 2017-09-05 Yao Qi <yao.qi@linaro.org> |
7246 | ||
7247 | * arch/tdesc.h: New file. | |
7248 | * regformats/regdat.sh: Generate code using tdesc_create_reg. | |
7249 | * target-descriptions.c: Update comments. | |
7250 | * target-descriptions.h: Include "arch/tdesc.h". Remove the | |
7251 | declarations. | |
7252 | * features/i386/32bit-avx.c: Re-generated. | |
7253 | * features/i386/32bit-avx512.c: Re-generated. | |
7254 | * features/i386/32bit-core.c: Re-generated. | |
7255 | * features/i386/32bit-linux.c: Re-generated. | |
7256 | * features/i386/32bit-mpx.c: Re-generated. | |
7257 | * features/i386/32bit-pkeys.c: Re-generated. | |
7258 | * features/i386/32bit-sse.c: Re-generated. | |
7259 | ||
f7000548 YQ |
7260 | 2017-09-05 Yao Qi <yao.qi@linaro.org> |
7261 | ||
7262 | * regformats/regdat.sh: Update generated code. | |
7263 | ||
c9a5e2a5 YQ |
7264 | 2017-09-05 Yao Qi <yao.qi@linaro.org> |
7265 | ||
7266 | * regformats/regdat.sh: Adjust code order. | |
7267 | ||
d6b687ac SM |
7268 | 2017-09-05 Simon Marchi <simon.marchi@ericsson.com> |
7269 | ||
7270 | * expprint.c (dump_subexp_body_standard): Use constant format | |
7271 | string in fprintf_filtered call. | |
7272 | ||
a379bfd0 JB |
7273 | 2017-09-04 John Baldwin <jhb@FreeBSD.org> |
7274 | ||
7275 | * configure.nat: Add "x86-nat.o x86-dregs.o" for NetBSD/amd64 and | |
7276 | NetBSD/i386. | |
7277 | * x86-bsd-nat.c [!DBREG_DRX && __NetBSD__]: Define DBREG_DRX. | |
7278 | ||
f7efc967 JB |
7279 | 2017-09-04 John Baldwin <jhb@FreeBSD.org> |
7280 | ||
7281 | * bsd-kvm.o: Make <sys/user.h> conditional on HAVE_SYS_USER_H. | |
7282 | ||
c49fbc6c JB |
7283 | 2017-09-04 John Baldwin <jhb@FreeBSD.org> |
7284 | ||
7285 | * bsd-kvm.o: Define _KMEMUSER. | |
7286 | * configure.ac: Define _KMEMUSER when checking for "struct lwp". | |
7287 | * configure: Regenerate. | |
7288 | ||
26562e73 JB |
7289 | 2017-09-04 John Baldwin <jhb@FreeBSD.org> |
7290 | ||
7291 | * amd64-fbsd-nat.c: Add include of "x86-xstate.h". | |
7292 | * i386-fbsd-nat.c: Likewise. | |
7293 | ||
31cf1487 JB |
7294 | 2017-09-04 John Baldwin <jhb@FreeBSD.org> |
7295 | ||
7296 | * unittests/array-view-selftests.c: Add include of <array>. | |
7297 | ||
5b9f8a7c JB |
7298 | 2017-09-04 John Baldwin <jhb@FreeBSD.org> |
7299 | ||
7300 | * spu-tdep.c (flush_ea_cache): Add missing argument to | |
7301 | call_function_by_hand. | |
7302 | ||
d69cf9b2 PA |
7303 | 2017-09-04 Pedro Alves <palves@redhat.com> |
7304 | ||
7305 | * NEWS (Safer support for debugging with no debug info): New. | |
7306 | ||
3693fdb3 PA |
7307 | 2017-09-04 Pedro Alves <palves@redhat.com> |
7308 | ||
7309 | * c-exp.y (function_method, function_method_void): Add current | |
7310 | instance flags to TYPE_INSTANCE. | |
7311 | * dwarf2read.c (check_modifier): New. | |
7312 | (compute_delayed_physnames): Assert that only C++ adds delayed | |
7313 | physnames. Mark fn_fields as const/volatile depending on | |
7314 | physname. | |
7315 | * eval.c (make_params): New type_instance_flags parameter. Use | |
7316 | it as the new type's instance flags. | |
7317 | (evaluate_subexp_standard) <TYPE_INSTANCE>: Extract the instance | |
7318 | flags element and pass it to make_params. | |
7319 | * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: Handle | |
7320 | instance flags element. | |
7321 | (dump_subexp_body_standard) <TYPE_INSTANCE>: Likewise. | |
7322 | * gdbtypes.h: Include "enum-flags.h". | |
7323 | (type_instance_flags): New enum-flags type. | |
7324 | (TYPE_CONST, TYPE_VOLATILE, TYPE_RESTRICT, TYPE_ATOMIC) | |
7325 | (TYPE_CODE_SPACE, TYPE_DATA_SPACE): Return boolean. | |
7326 | * parse.c (operator_length_standard) <TYPE_INSTANCE>: Adjust. | |
7327 | (follow_type_instance_flags): New function. | |
7328 | (operator_check_standard) <TYPE_INSTANCE>: Adjust. | |
7329 | * parser-defs.h (follow_type_instance_flags): Declare. | |
7330 | * valops.c (value_struct_elt_for_reference): const/volatile must | |
7331 | match too. | |
7332 | ||
e68cb8e0 PA |
7333 | 2017-09-04 Pedro Alves <palves@redhat.com> |
7334 | ||
7335 | * cp-namespace.c (cp_search_static_and_baseclasses): Handle | |
7336 | function/method scopes; lookup the nested name as a function local | |
7337 | static variable. | |
7338 | ||
858be34c PA |
7339 | 2017-09-04 Pedro Alves <palves@redhat.com> |
7340 | ||
7341 | (%type <voidval>): Add function_method. | |
7342 | * c-exp.y (exp): New production for calls with no arguments. | |
7343 | (function_method, function_method_void_or_typelist): New | |
7344 | productions. | |
7345 | (exp): New production for "method()::static_var". | |
7346 | * eval.c (evaluate_subexp_standard): Handle OP_FUNC_STATIC_VAR. | |
7347 | * expprint.c (print_subexp_standard, dump_subexp_body_standard): | |
7348 | Handle OP_FUNC_STATIC_VAR. | |
7349 | * parse.c (operator_length_standard): | |
7350 | Handle OP_FUNC_STATIC_VAR. | |
7351 | ||
dd5901a6 PA |
7352 | 2017-09-04 Pedro Alves <palves@redhat.com> |
7353 | ||
7354 | * eval.c (evaluate_subexp_standard): Remove UNOP_MEMVAL_TLS | |
7355 | handling. | |
7356 | * expprint.c (print_subexp_standard, dump_subexp_body_standard): | |
7357 | Ditto. | |
7358 | * parse.c (operator_length_standard, operator_check_standard): | |
7359 | Ditto. | |
7360 | * std-operator.def (UNOP_MEMVAL_TLS): Delete. | |
7361 | ||
46a4882b PA |
7362 | 2017-09-04 Pedro Alves <palves@redhat.com> |
7363 | ||
7364 | * ax-gdb.c: Include "typeprint.h". | |
7365 | (gen_expr_for_cast): New function. | |
7366 | (gen_expr) <OP_CAST, OP_CAST_TYPE>: Use it. | |
7367 | <OP_VAR_VALUE, OP_MSYM_VAR_VALUE>: Error out if the variable's | |
7368 | type is unknown. | |
7369 | * dwarf2read.c (new_symbol_full): Fallback to int instead of | |
7370 | nodebug_data_symbol. | |
7371 | * eval.c: Include "typeprint.h". | |
7372 | (evaluate_subexp_standard) <OP_VAR_VALUE, OP_VAR_MSYM_VALUE>: | |
7373 | Error out if symbol has unknown type. | |
7374 | <UNOP_CAST, UNOP_CAST_TYPE>: Common bits factored out to | |
7375 | evaluate_subexp_for_cast. | |
7376 | (evaluate_subexp_for_address, evaluate_subexp_for_sizeof): Handle | |
7377 | OP_VAR_MSYM_VALUE. | |
7378 | (evaluate_subexp_for_cast): New function. | |
7379 | * gdbtypes.c (init_nodebug_var_type): New function. | |
7380 | (objfile_type): Use it to initialize types of variables with no | |
7381 | debug info. | |
7382 | * typeprint.c (error_unknown_type): New. | |
7383 | * typeprint.h (error_unknown_type): New declaration. | |
7384 | * compile/compile-c-types.c (convert_type_basic): Handle | |
7385 | TYPE_CODE_ERROR; warn and fallback to int for variables with | |
7386 | unknown type. | |
7387 | ||
fe13dfec PA |
7388 | 2017-09-04 Pedro Alves <palves@redhat.com> |
7389 | ||
7390 | * eval.c (evaluate_var_value): New function, factored out from ... | |
7391 | (evaluate_subexp_standard): ... here. | |
7392 | ||
d008ee21 PA |
7393 | 2017-09-04 Pedro Alves <palves@redhat.com> |
7394 | ||
7395 | * eval.c (evaluate_subexp_standard) <UNOP_COMPLEMENT, UNOP_ADDR>: | |
7396 | Remove useless assignments to 'op'. | |
7397 | ||
827d0c51 PA |
7398 | 2017-09-04 Pedro Alves <palves@redhat.com> |
7399 | ||
7400 | * eval.c (eval_skip_value): New function. | |
7401 | (evaluate_subexp_standard): Use it. | |
7402 | ||
2c5a2be1 PA |
7403 | 2017-09-04 Pedro Alves <palves@redhat.com> |
7404 | ||
7405 | * eval.c (evaluate_subexp_standard): <OP_FUNCALL>: Extract | |
7406 | function name from symbol/minsym and pass it to | |
7407 | error_call_unknown_return_type. | |
7408 | ||
74ea4be4 PA |
7409 | 2017-09-04 Pedro Alves <palves@redhat.com> |
7410 | ||
7411 | * ada-lang.c (resolve_subexp): Handle OP_VAR_MSYM_VALUE. | |
7412 | * ax-gdb.c (gen_msym_var_ref): New function. | |
7413 | (gen_expr): Handle OP_VAR_MSYM_VALUE. | |
7414 | * eval.c (evaluate_var_msym_value): New function. | |
7415 | * eval.c (evaluate_subexp_standard): Handle OP_VAR_MSYM_VALUE. | |
7416 | <OP_FUNCALL>: Extract function name from symbol/minsym and pass it | |
7417 | to call_function_by_hand. | |
7418 | * expprint.c (print_subexp_standard, dump_subexp_body_standard): | |
7419 | Handle OP_VAR_MSYM_VALUE. | |
7420 | (union exp_element) <msymbol>: New field. | |
7421 | * minsyms.h (struct type): Forward declare. | |
7422 | (find_minsym_type_and_address): Declare. | |
7423 | * parse.c (write_exp_elt_msym): New function. | |
7424 | (write_exp_msymbol): Delete, refactored as ... | |
7425 | (find_minsym_type_and_address): ... this new function. | |
7426 | (write_exp_msymbol): Reimplement using OP_VAR_MSYM_VALUE. | |
7427 | (operator_length_standard, operator_check_standard): Handle | |
7428 | OP_VAR_MSYM_VALUE. | |
7429 | * std-operator.def (OP_VAR_MSYM_VALUE): New. | |
7430 | ||
7022349d PA |
7431 | 2017-09-04 Pedro Alves <palves@redhat.com> |
7432 | ||
7433 | * ada-lang.c (ada_evaluate_subexp) <TYPE_CODE_FUNC>: Don't handle | |
7434 | TYPE_GNU_IFUNC specially here. Throw error if return type is | |
7435 | unknown. | |
7436 | * ada-typeprint.c (print_func_type): Handle functions with unknown | |
7437 | return type. | |
7438 | * c-typeprint.c (c_type_print_base): Handle functions and methods | |
7439 | with unknown return type. | |
7440 | * compile/compile-c-symbols.c (convert_symbol_bmsym) | |
7441 | <mst_text_gnu_ifunc>: Use nodebug_text_gnu_ifunc_symbol. | |
7442 | * compile/compile-c-types.c: Include "objfiles.h". | |
7443 | (convert_func): For functions with unknown return type, warn and | |
7444 | default to int. | |
7445 | * compile/compile-object-run.c (compile_object_run): Adjust call | |
7446 | to call_function_by_hand_dummy. | |
7447 | * elfread.c (elf_gnu_ifunc_resolve_addr): Adjust call to | |
7448 | call_function_by_hand. | |
7449 | * eval.c (evaluate_subexp_standard): Adjust calls to | |
7450 | call_function_by_hand. Handle functions and methods with unknown | |
7451 | return type. Pass expect_type to call_function_by_hand. | |
7452 | * f-typeprint.c (f_type_print_base): Handle functions with unknown | |
7453 | return type. | |
7454 | * gcore.c (call_target_sbrk): Adjust call to | |
7455 | call_function_by_hand. | |
7456 | * gdbtypes.c (objfile_type): Leave nodebug text symbol with NULL | |
7457 | return type instead of int. Make nodebug_text_gnu_ifunc_symbol be | |
7458 | an integer address type instead of nodebug. | |
7459 | * guile/scm-value.c (gdbscm_value_call): Adjust call to | |
7460 | call_function_by_hand. | |
7461 | * infcall.c (error_call_unknown_return_type): New function. | |
7462 | (call_function_by_hand): New "default_return_type" parameter. | |
7463 | Pass it down. | |
7464 | (call_function_by_hand_dummy): New "default_return_type" | |
7465 | parameter. Use it instead of defaulting to int. If there's no | |
7466 | default and the return type is unknown, throw an error. If | |
7467 | there's a default return type, and the called function has no | |
7468 | debug info, then assume the function is prototyped. | |
7469 | * infcall.h (call_function_by_hand, call_function_by_hand_dummy): | |
7470 | New "default_return_type" parameter. | |
7471 | (error_call_unknown_return_type): New declaration. | |
7472 | * linux-fork.c (call_lseek): Cast return type of lseek. | |
7473 | (inferior_call_waitpid, checkpoint_command): Adjust calls to | |
7474 | call_function_by_hand. | |
7475 | * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap): Adjust | |
7476 | calls to call_function_by_hand. | |
7477 | * m2-typeprint.c (m2_procedure): Handle functions with unknown | |
7478 | return type. | |
7479 | * objc-lang.c (lookup_objc_class, lookup_child_selector) | |
7480 | (value_nsstring, print_object_command): Adjust calls to | |
7481 | call_function_by_hand. | |
7482 | * p-typeprint.c (pascal_type_print_varspec_prefix): Handle | |
7483 | functions with unknown return type. | |
7484 | (pascal_type_print_func_varspec_suffix): New function. | |
7485 | (pascal_type_print_varspec_suffix) <TYPE_CODE_FUNC, | |
7486 | TYPE_CODE_METHOD>: Use it. | |
7487 | * python/py-value.c (valpy_call): Adjust call to | |
7488 | call_function_by_hand. | |
7489 | * rust-lang.c (rust_evaluate_funcall): Adjust call to | |
7490 | call_function_by_hand. | |
7491 | * valarith.c (value_x_binop, value_x_unop): Adjust calls to | |
7492 | call_function_by_hand. | |
7493 | * valops.c (value_allocate_space_in_inferior): Adjust call to | |
7494 | call_function_by_hand. | |
7495 | * typeprint.c (type_print_unknown_return_type): New function. | |
7496 | * typeprint.h (type_print_unknown_return_type): New declaration. | |
7497 | ||
54990598 PA |
7498 | 2017-09-04 Pedro Alves <palves@redhat.com> |
7499 | ||
7500 | * gdbtypes.c (lookup_function_type_with_arguments): Mark function | |
7501 | types with more than one parameter as prototyped. | |
7502 | ||
9a24775b PA |
7503 | 2017-09-04 Pedro Alves <palves@redhat.com> |
7504 | ||
7505 | * cli/cli-cmds.c (print_disassembly, disassemble_current_function) | |
7506 | (disassemble_command): Use gdb_disassembly_flags instead of bare | |
7507 | int. | |
7508 | * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn) | |
7509 | (dump_insns, do_mixed_source_and_assembly_deprecated) | |
7510 | (do_mixed_source_and_assembly, do_assembly_only, gdb_disassembly): | |
7511 | Use gdb_disassembly_flags instead of bare int. | |
7512 | * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED, DISASSEMBLY_RAW_INSN) | |
7513 | (DISASSEMBLY_OMIT_FNAME, DISASSEMBLY_FILENAME) | |
7514 | (DISASSEMBLY_OMIT_PC, DISASSEMBLY_SOURCE) | |
7515 | (DISASSEMBLY_SPECULATIVE): No longer macros. Instead they're... | |
7516 | (enum gdb_disassembly_flag): ... values of this new enumeration. | |
7517 | (gdb_disassembly_flags): Define. | |
7518 | (gdb_disassembly) | |
7519 | (gdb_pretty_print_disassembler::pretty_print_insn): Use it. | |
7520 | * mi/mi-cmd-disas.c (mi_cmd_disassemble): Use | |
7521 | gdb_disassembly_flags instead of bare int. | |
7522 | * record-btrace.c (btrace_insn_history) | |
7523 | (record_btrace_insn_history, record_btrace_insn_history_range) | |
7524 | (record_btrace_insn_history_from): Use gdb_disassembly_flags | |
7525 | instead of bare int. | |
7526 | * record.c (get_insn_history_modifiers, cmd_record_insn_history): | |
7527 | Use gdb_disassembly_flags instead of bare int. | |
7528 | * target-debug.h (target_debug_print_gdb_disassembly_flags): | |
7529 | Define. | |
7530 | * target-delegates.c: Regenerate. | |
7531 | * target.c (target_insn_history, target_insn_history_from) | |
7532 | (target_insn_history_range): Use gdb_disassembly_flags instead of | |
7533 | bare int. | |
7534 | * target.h: Include "disasm.h". | |
7535 | (struct target_ops) <to_insn_history, to_insn_history_from, | |
7536 | to_insn_history_range>: Use gdb_disassembly_flags instead of bare | |
7537 | int. | |
7538 | (target_insn_history, target_insn_history_from) | |
7539 | (target_insn_history_range): Use gdb_disassembly_flags instead of | |
7540 | bare int. | |
7541 | ||
80a65e9b SM |
7542 | 2017-09-04 Simon Marchi <simon.marchi@ericsson.com> |
7543 | ||
7544 | * cli/cli-script.c (build_command_line): For if/while commands, | |
7545 | check whether args is empty. | |
7546 | ||
6b66338c SM |
7547 | 2017-09-04 Simon Marchi <simon.marchi@ericsson.com> |
7548 | ||
7549 | * cli/cli-script.h (enum misc_command_type): Move from defs.h. | |
7550 | (enum command_control_type): Likewise. | |
7551 | (struct command_line): Likewise. | |
7552 | (free_command_lines): Likewise. | |
7553 | (struct command_lines_deleter): Likewise. | |
7554 | (command_line_up): Likewise. | |
7555 | (read_command_lines): Likewise. | |
7556 | (read_command_lines_1): Likewise. | |
7557 | * defs.h (enum misc_command_type): Move to cli/cli-script.h. | |
7558 | (enum command_control_type): Likewise. | |
7559 | (struct command_line): Likewise. | |
7560 | (free_command_lines): Likewise. | |
7561 | (struct command_lines_deleter): Likewise. | |
7562 | (command_line_up): Likewise. | |
7563 | (read_command_lines): Likewise. | |
7564 | (read_command_lines_1): Likewise. | |
7565 | * breakpoint.h: Include cli/cli-script.h. | |
7566 | * extension-priv.h: Likewise. | |
7567 | * gdbcmd.h: Likewise. | |
7568 | ||
51abb421 PA |
7569 | 2017-09-04 Pedro Alves <palves@redhat.com> |
7570 | ||
7571 | * ada-lang.c (is_known_support_routine): Move sal declaration to | |
7572 | where it is initialized. | |
7573 | * breakpoint.c (create_internal_breakpoint, init_catchpoint) | |
7574 | (parse_breakpoint_sals, decode_static_tracepoint_spec) | |
7575 | (clear_command, update_static_tracepoint): Remove init_sal | |
7576 | references. Move declarations closer to initializations. | |
7577 | * cli/cli-cmds.c (list_command): Move sal declarations closer to | |
7578 | initializations. | |
7579 | * elfread.c (elf_gnu_ifunc_resolver_stop): Remove init_sal | |
7580 | references. Move sal declarations closer to initializations. | |
7581 | * frame.c (find_frame_sal): Return a symtab_and_line via function | |
7582 | return instead of output parameter. Remove init_sal references. | |
7583 | * frame.h (find_frame_sal): Return a symtab_and_line via function | |
7584 | return instead of output parameter. | |
7585 | * guile/scm-frame.c (gdbscm_frame_sal): Adjust. | |
7586 | * guile/scm-symtab.c (stscm_make_sal_smob): Use in-place new | |
7587 | instead of memset. | |
7588 | (gdbscm_find_pc_line): Remove init_sal reference. | |
7589 | * infcall.c (call_function_by_hand_dummy): Remove init_sal | |
7590 | references. Move declarations closer to initializations. | |
7591 | * infcmd.c (set_step_frame): Update. Move declarations closer to | |
7592 | initializations. | |
7593 | (finish_backward): Remove init_sal references. Move declarations | |
7594 | closer to initializations. | |
7595 | * infrun.c (process_event_stop_test, handle_step_into_function) | |
7596 | (insert_hp_step_resume_breakpoint_at_frame) | |
7597 | (insert_step_resume_breakpoint_at_caller): Likewise. | |
7598 | * linespec.c (create_sals_line_offset, decode_digits_ordinary) | |
7599 | (symbol_to_sal): Likewise. | |
7600 | * probe.c (parse_probes_in_pspace): Remove init_sal reference. | |
7601 | * python/py-frame.c (frapy_find_sal): Move sal declaration closer | |
7602 | to its initialization. | |
7603 | * reverse.c (save_bookmark_command): Use new/delete. Remove | |
7604 | init_sal references. Move declarations closer to initializations. | |
7605 | * source.c (get_current_source_symtab_and_line): Remove brace | |
7606 | initialization. | |
7607 | (set_current_source_symtab_and_line): Now takes the sal by const | |
7608 | reference. Remove brace initialization. | |
7609 | (line_info): Remove init_sal reference. | |
7610 | * source.h (set_current_source_symtab_and_line): Now takes a | |
7611 | symtab_and_line via const reference. | |
7612 | * stack.c (set_current_sal_from_frame): Adjust. | |
7613 | (print_frame_info): Adjust. | |
7614 | (get_last_displayed_sal): Return the sal via function return | |
7615 | instead of via output parameter. Simplify. | |
7616 | (frame_info): Adjust. | |
7617 | * stack.h (get_last_displayed_sal): Return the sal via function | |
7618 | return instead of via output parameter. | |
7619 | * symtab.c (init_sal): Delete. | |
7620 | (find_pc_sect_line): Remove init_sal references. Move | |
7621 | declarations closer to initializations. | |
7622 | (find_function_start_sal): Remove init_sal references. Move | |
7623 | declarations closer to initializations. | |
7624 | * symtab.h (struct symtab_and_line): In-class initialize all | |
7625 | fields. | |
7626 | * tracepoint.c (set_traceframe_context) | |
7627 | (print_one_static_tracepoint_marker): Remove init_sal references. | |
7628 | Move declarations closer to initializations. | |
7629 | * tui/tui-disasm.c (tui_show_disassem_and_update_source): Adjust. | |
7630 | * tui/tui-stack.c (tui_show_frame_info): Adjust. Move | |
7631 | declarations closer to initializations. | |
7632 | * tui/tui-winsource.c (tui_update_source_window_as_is): Remove | |
7633 | init_sal references. Adjust. | |
7634 | ||
6c5b2ebe PA |
7635 | 2017-09-04 Pedro Alves <palves@redhat.com> |
7636 | ||
7637 | * ax-gdb.c (agent_command_1): Use range-for. | |
7638 | * break-catch-throw.c (re_set_exception_catchpoint): Update. | |
7639 | * breakpoint.c: Include "common/array-view.h". | |
7640 | (init_breakpoint_sal, create_breakpoint_sal): Change sals | |
7641 | parameter from struct symtabs_and_lines to | |
7642 | array_view<symtab_and_line>. Adjust. Use range-for. Update. | |
7643 | (breakpoint_sals_to_pc): Change sals parameter from struct | |
7644 | symtabs_and_lines to std::vector reference. | |
7645 | (check_fast_tracepoint_sals): Change sals parameter from struct | |
7646 | symtabs_and_lines to std::array_view. Use range-for. | |
7647 | (decode_static_tracepoint_spec): Return a std::vector instead of | |
7648 | symtabs_and_lines. Update. | |
7649 | (create_breakpoint): Update. | |
7650 | (break_range_command, until_break_command, clear_command): Update. | |
7651 | (base_breakpoint_decode_location, bkpt_decode_location) | |
7652 | (bkpt_probe_create_sals_from_location) | |
7653 | (bkpt_probe_decode_location, tracepoint_decode_location) | |
7654 | (tracepoint_probe_decode_location) | |
7655 | (strace_marker_create_sals_from_location): Return a std::vector | |
7656 | instead of symtabs_and_lines. | |
7657 | (strace_marker_create_breakpoints_sal): Update. | |
7658 | (strace_marker_decode_location): Return a std::vector instead of | |
7659 | symtabs_and_lines. Update. | |
7660 | (update_breakpoint_locations): Change struct symtabs_and_lines | |
7661 | parameters to gdb::array_view. Adjust. | |
7662 | (location_to_sals): Return a std::vector instead of | |
7663 | symtabs_and_lines. Update. | |
7664 | (breakpoint_re_set_default): Use std::vector instead of struct | |
7665 | symtabs_and_lines. | |
7666 | (decode_location_default): Return a std::vector instead of | |
7667 | symtabs_and_lines. Update. | |
7668 | * breakpoint.h: Include "common/array-view.h". | |
7669 | (struct breakpoint_ops) <decode_location>: Now returns a | |
7670 | std::vector instead of returning a symtabs_and_lines via output | |
7671 | parameter. | |
7672 | (update_breakpoint_locations): Change sals parameters to use | |
7673 | gdb::array_view. | |
7674 | * cli/cli-cmds.c (edit_command, list_command): Update to use | |
7675 | std::vector and gdb::array_view. | |
7676 | (ambiguous_line_spec): Adjust to use gdb::array_view and | |
7677 | range-for. | |
7678 | (compare_symtabs): Rename to ... | |
7679 | (cmp_symtabs): ... this. Change parameters to symtab_and_line | |
7680 | const reference and adjust. | |
7681 | (filter_sals): Rewrite using std::vector and standard algorithms. | |
7682 | * elfread.c (elf_gnu_ifunc_resolver_return_stop): Simplify. | |
7683 | (jump_command): Update to use std::vector. | |
7684 | * linespec.c (struct linespec_state) <canonical_names>: Update | |
7685 | comment. | |
7686 | (add_sal_to_sals_basic): Delete. | |
7687 | (add_sal_to_sals, filter_results, convert_results_to_lsals) | |
7688 | (decode_line_2, create_sals_line_offset) | |
7689 | (convert_address_location_to_sals, convert_linespec_to_sals) | |
7690 | (convert_explicit_location_to_sals, parse_linespec) | |
7691 | (event_location_to_sals, decode_line_full, decode_line_1) | |
7692 | (decode_line_with_current_source) | |
7693 | (decode_line_with_last_displayed, decode_objc) | |
7694 | (decode_digits_list_mode, decode_digits_ordinary, minsym_found) | |
7695 | (linespec_result::~linespec_result): Adjust to use std::vector | |
7696 | instead of symtabs_and_lines. | |
7697 | * linespec.h (linespec_sals::sals): Now a std::vector. | |
7698 | (struct linespec_result): Use std::vector, bool, and in-class | |
7699 | initialization. | |
7700 | (decode_line_1, decode_line_with_current_source) | |
7701 | (decode_line_with_last_displayed): Return std::vector. | |
7702 | * macrocmd.c (info_macros_command): Use std::vector. | |
7703 | * mi/mi-main.c (mi_cmd_trace_find): Use std::vector. | |
7704 | * probe.c (parse_probes_in_pspace, parse_probes): Adjust to use | |
7705 | std::vector. | |
7706 | * probe.h (parse_probes): Return a std::vector. | |
7707 | * python/python.c (gdbpy_decode_line): Use std::vector and | |
7708 | gdb::array_view. | |
7709 | * source.c (select_source_symtab, line_info): Use std::vector. | |
7710 | * stack.c (func_command): Use std::vector. | |
7711 | * symtab.h (struct symtabs_and_lines): Delete. | |
7712 | * tracepoint.c (tfind_line_command, scope_info): Use std::vector. | |
7713 | ||
7c44b49c PA |
7714 | 2017-09-04 Pedro Alves <palves@redhat.com> |
7715 | ||
7716 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add | |
7717 | unittests/array-view-selftests.c. | |
7718 | (SUBDIR_UNITTESTS_OBS): Add array-view-selftests.o. | |
7719 | * common/array-view.h: New file. | |
7720 | * unittests/array-view-selftests.c: New file. | |
7721 | ||
e439fa14 PA |
7722 | 2017-09-04 Pedro Alves <palves@redhat.com> |
7723 | ||
7724 | * cli/cli-cmds.c (edit_command): Pass message to | |
7725 | ambiguous_line_spec. | |
7726 | (list_command): Pass message to ambiguous_line_spec. Say | |
7727 | "first"/"last" instead of "start" and "end" to be consistent with | |
7728 | the manual. | |
7729 | (ambiguous_line_spec): Add 'format' and vararg parameters. Use | |
7730 | them to print formatted message. | |
7731 | ||
7525b645 PA |
7732 | 2017-09-04 Pedro Alves <palves@redhat.com> |
7733 | ||
7734 | * btrace.c (ftrace_add_pt): Pass btrace_insn to | |
7735 | ftrace_update_insns by reference instead of pointer. | |
7736 | ||
badc0020 YQ |
7737 | 2017-09-04 Yao Qi <yao.qi@linaro.org> |
7738 | ||
7739 | * i386-go32-tdep.c: Include x86-xstate.h. | |
7740 | (i386_go32_init_abi): Call i386_target_description. | |
7741 | * i386-tdep.c (i386_target_description): Return tdesc_i386_mmx | |
7742 | if xcr0 is X86_XSTATE_X87_MASK. | |
7743 | * i386-tdep.h (tdesc_i386): Remove the declaration. | |
7744 | (tdesc_i386_mmx): Likewise. | |
7745 | ||
d78bdb54 YQ |
7746 | 2017-09-04 Yao Qi <yao.qi@linaro.org> |
7747 | ||
7748 | * i386-fbsd-tdep.c (i386fbsd_core_read_xcr0): Return | |
7749 | X86_XSTATE_SSE_MASK instead of 0. | |
7750 | ||
ca1fa5ee YQ |
7751 | 2017-09-04 Yao Qi <yao.qi@linaro.org> |
7752 | ||
7753 | * amd64-fbsd-nat.c (amd64fbsd_read_description): Call | |
7754 | i386_target_description. | |
7755 | * i386-fbsd-nat.c (i386fbsd_read_description): Call | |
7756 | i386_target_description. | |
7757 | * i386-tdep.c (i386_gdbarch_init): Likewise. | |
7758 | ||
2434b019 YQ |
7759 | 2017-09-04 Yao Qi <yao.qi@linaro.org> |
7760 | ||
7761 | * amd64-darwin-tdep.c: Include "x86-xstate.h". | |
7762 | (x86_darwin_init_abi_64): Call amd64_target_description. | |
7763 | * amd64-dicos-tdep.c: Likewise. | |
7764 | * amd64-fbsd-nat.c: Likewise. | |
7765 | * amd64-fbsd-tdep.c: Likewise. | |
7766 | * amd64-nbsd-tdep.c: Likewise. | |
7767 | * amd64-obsd-tdep.c: Likewise. | |
7768 | * amd64-sol2-tdep.c: Likewise. | |
7769 | * amd64-windows-tdep.c: Likewise. | |
7770 | * amd64-tdep.h (tdesc_amd64): Remove the declaration. | |
7771 | ||
0860c437 SM |
7772 | 2017-09-04 Simon Marchi <simon.marchi@ericsson.com> |
7773 | ||
7774 | * btrace.h (btrace_insn_s, DEF_VEC_O (btrace_insn_s)): Remove. | |
7775 | (btrace_function) <insn>: Change type to use std::vector. | |
7776 | * btrace.c (ftrace_debug, ftrace_call_num_insn, | |
7777 | ftrace_find_call, ftrace_new_gap, ftrace_update_function, | |
7778 | ftrace_update_insns, ftrace_compute_global_level_offset, | |
7779 | btrace_stitch_bts, btrace_clear, btrace_insn_get, | |
7780 | btrace_insn_end, btrace_insn_next, btrace_insn_prev): Adjust to | |
7781 | change to std::vector. | |
7782 | (ftrace_update_insns): Adjust to change to std::vector, change | |
7783 | type of INSN parameter. | |
7784 | (btrace_compute_ftrace_bts): Adjust call to ftrace_update_insns. | |
7785 | * record-btrace.c (btrace_call_history_insn_range, | |
7786 | btrace_compute_src_line_range, | |
7787 | record_btrace_frame_prev_register): Adjust to change to | |
7788 | std::vector. | |
7789 | * python/py-record-btrace.c (recpy_bt_func_instructions): Adjust | |
7790 | to change to std::vector. | |
7791 | ||
0638b7f9 TT |
7792 | 2017-09-03 Tom Tromey <tom@tromey.com> |
7793 | ||
7794 | * corefile.c (reopen_exec_file): Use std::string. | |
7795 | ||
8f84fb0e TT |
7796 | 2017-09-03 Tom Tromey <tom@tromey.com> |
7797 | ||
7798 | * compile/compile.c (compile_register_name_mangled): Return | |
7799 | std::string. | |
7800 | * compile/compile-loc2c.c (pushf_register_address): Update. | |
7801 | (pushf_register): Update. | |
7802 | * compile/compile-c-types.c (convert_array): Update. | |
7803 | * compile/compile-c-symbols.c (generate_vla_size): Update. | |
7804 | (error_symbol_once): Use a gdb::unique_xmalloc_ptr. | |
7805 | (symbol_substitution_name): Return a gdb::unique_xmalloc_ptr. | |
7806 | (convert_one_symbol): Update. | |
7807 | (generate_c_for_for_one_variable): Update. | |
7808 | * compile/compile-c-support.c (c_get_range_decl_name): Return a | |
7809 | std::string. | |
7810 | (generate_register_struct): Update. | |
7811 | * compile/compile-internal.h (c_get_range_decl_name): Return a | |
7812 | std::string. | |
7813 | (compile_register_name_mangled): Return std::string. | |
7814 | ||
18e9961f TT |
7815 | 2017-09-03 Tom Tromey <tom@tromey.com> |
7816 | ||
7817 | * utils.c (perror_string): Return a std::string. | |
7818 | (throw_perror_with_name, perror_warning_with_name): Update. | |
7819 | ||
45343786 TT |
7820 | 2017-09-03 Tom Tromey <tom@tromey.com> |
7821 | ||
7822 | * demangle.c (demangle_command): Use std::string, | |
7823 | unique_xmalloc_ptr. | |
7824 | ||
b57af503 TT |
7825 | 2017-09-03 Tom Tromey <tom@tromey.com> |
7826 | ||
7827 | * cli/cli-setshow.c (do_set_command): Use std::string. | |
7828 | ||
6eecf35f TT |
7829 | 2017-09-03 Tom Tromey <tom@tromey.com> |
7830 | ||
7831 | * cli/cli-cmds.c (cd_command): Use gdb::unique_xmalloc_ptr. | |
7832 | ||
56496dd4 TT |
7833 | 2017-09-03 Tom Tromey <tom@tromey.com> |
7834 | ||
7835 | * mi/mi-interp.c (mi_cmd_interpreter_exec): Use std::string. | |
7836 | ||
e91a1fa7 TT |
7837 | 2017-09-03 Tom Tromey <tom@tromey.com> |
7838 | ||
7839 | * mi/mi-cmd-env.c (env_execute_cli_command): Use | |
7840 | gdb::unique_xmalloc_ptr. | |
7841 | ||
7ffd83d7 TT |
7842 | 2017-09-03 Tom Tromey <tom@tromey.com> |
7843 | ||
7844 | * thread.c (print_thread_info_1): Use string_printf. | |
7845 | (thread_apply_command, thread_apply_all_command): Use | |
7846 | std::string. | |
7847 | ||
1ccbe998 TT |
7848 | 2017-09-03 Tom Tromey <tom@tromey.com> |
7849 | ||
7850 | * valprint.c (val_print_string): Update. | |
7851 | * gdbcore.h (memory_error_message): Return std::string. | |
7852 | * corefile.c (memory_error_message): Return std::string. | |
7853 | (memory_error): Update. | |
7854 | * breakpoint.c (insert_bp_location): Update. | |
7855 | ||
23fdd69e SM |
7856 | 2017-09-03 Simon Marchi <simon.marchi@ericsson.com> |
7857 | ||
7858 | * target/waitstatus.h (target_waitstatus_to_string): Change | |
7859 | return type to std::string. | |
7860 | * target/waitstatus.c (target_waitstatus_to_string): Return | |
7861 | std::string. | |
7862 | * target.h (target_waitstatus_to_string): Remove declaration. | |
7863 | * infrun.c (resume, clear_proceed_status_thread, | |
7864 | print_target_wait_results, do_target_wait, save_waitstatus, | |
7865 | stop_all_threads): Adjust. | |
7866 | * record-btrace.c (record_btrace_wait): Adjust. | |
7867 | * target-debug.h | |
7868 | (target_debug_print_struct_target_waitstatus_p): Adjust. | |
7869 | ||
5c811d30 JK |
7870 | 2017-09-01 Jan Kratochvil <jan.kratochvil@redhat.com> |
7871 | ||
7872 | PR gdb/22046 | |
7873 | * nat/linux-procfs.c (parse_proc_status_state): Fix PROC_STATE_STOPPED | |
7874 | detection. | |
7875 | ||
0a2dde4a SDJ |
7876 | 2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com> |
7877 | ||
7878 | * NEWS (Changes since GDB 8.0): Add entry mentioning new support | |
7879 | for setting/unsetting environment variables on the remote target. | |
7880 | (New remote packets): Add entries for QEnvironmentHexEncoded, | |
7881 | QEnvironmentUnset and QEnvironmentReset. | |
7882 | * common/environ.c (gdb_environ::operator=): Extend method to | |
7883 | handle m_user_set_env_list and m_user_unset_env_list. | |
7884 | (gdb_environ::clear): Likewise. | |
7885 | (match_var_in_string): Change type of first parameter from 'char | |
7886 | *' to 'const char *'. | |
7887 | (gdb_environ::set): Extend method to handle | |
7888 | m_user_set_env_list and m_user_unset_env_list. | |
7889 | (gdb_environ::unset): Likewise. | |
7890 | (gdb_environ::clear_user_set_env): New method. | |
7891 | (gdb_environ::user_set_envp): Likewise. | |
7892 | (gdb_environ::user_unset_envp): Likewise. | |
7893 | * common/environ.h (gdb_environ): Handle m_user_set_env_list and | |
7894 | m_user_unset_env_list on move constructor/assignment. | |
7895 | (unset): Add new default parameter 'update_unset_list = true'. | |
7896 | (clear_user_set_env): New method. | |
7897 | (user_set_envp): Likewise. | |
7898 | (user_unset_envp): Likewise. | |
7899 | (m_user_set_env_list): New std::set. | |
7900 | (m_user_unset_env_list): Likewise. | |
7901 | * common/rsp-low.c (hex2str): New function. | |
7902 | (bin2hex): New overload for bin2hex function. | |
7903 | * common/rsp-low.c (hex2str): New prototype. | |
7904 | (str2hex): New overload prototype. | |
7905 | * remote.c: Include "environ.h". Add QEnvironmentHexEncoded, | |
7906 | QEnvironmentUnset and QEnvironmentReset. | |
7907 | (remote_protocol_features): Add QEnvironmentHexEncoded, | |
7908 | QEnvironmentUnset and QEnvironmentReset packets. | |
7909 | (send_environment_packet): New function. | |
7910 | (extended_remote_environment_support): Likewise. | |
7911 | (extended_remote_create_inferior): Call | |
7912 | extended_remote_environment_support. | |
7913 | (_initialize_remote): Add QEnvironmentHexEncoded, | |
7914 | QEnvironmentUnset and QEnvironmentReset packet configs. | |
7915 | * unittests/environ-selftests.c (gdb_selftest_env_var): | |
7916 | New variable. | |
7917 | (test_vector_initialization): New function. | |
7918 | (test_init_from_host_environ): Likewise. | |
7919 | (test_reinit_from_host_environ): Likewise. | |
7920 | (test_set_A_unset_B_unset_A_cannot_find_A_can_find_B): | |
7921 | Likewise. | |
7922 | (test_unset_set_empty_vector): Likewise. | |
7923 | (test_vector_clear): Likewise. | |
7924 | (test_std_move): Likewise. | |
7925 | (test_move_constructor): | |
7926 | (test_self_move): Likewise. | |
7927 | (test_set_unset_reset): Likewise. | |
7928 | (run_tests): Rewrite in terms of the functions above. | |
7929 | ||
654670a4 WP |
7930 | 2017-08-31 Weimin Pan <weimin.pan@oracle.com> |
7931 | ||
7932 | * sparc64-tdep.c (adi_stat_t): Fix comment formatting. | |
7933 | (adi_available): Use a temp variable of type CORE_ADDR as argument | |
7934 | 3 when calling target_auxv_search. | |
7935 | (adi_normalize_address): Use masks and xor operators to calculate | |
7936 | normalized address. | |
7937 | (adi_read_versions, adi_write_versions, adi_print_versions) | |
7938 | (do_examine, do_assign): Use paddress. | |
7939 | ||
7755ddb7 JB |
7940 | 2017-08-29 John Baldwin <jhb@FreeBSD.org> |
7941 | ||
7942 | * mips-fbsd-nat.c (getfpregs_supplies): Return true for FIR. | |
7943 | * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Split supply of FSR | |
7944 | out of loop and add supply of FIR. | |
7945 | (mips_fbsd_collect_fpregs): Split collect of FSR out of loop and | |
7946 | add collect of FIR. | |
7947 | ||
fd437cbc SM |
7948 | 2017-08-28 Simon Marchi <simon.marchi@ericsson.com> |
7949 | ||
3804a343 | 7950 | PR gdb/21827 |
fd437cbc SM |
7951 | * cli/cli-script.c (define_command): Don't convert command name |
7952 | to lower case. | |
7953 | ||
988f6b3d JB |
7954 | 2017-08-25 Joel Brobecker <brobecker@adacore.com> |
7955 | ||
7956 | * ada-lang.c (ada_lookup_struct_elt_type): Remove parameter "dispp". | |
7957 | Update all callers accordingly. Remove all code blocks handling | |
7958 | the case where DISPP is not NULL. | |
7959 | ||
663c44ac JK |
7960 | 2017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com> |
7961 | ||
7962 | PR symtab/22003 | |
7963 | * dwarf2read.c (dwarf2_const_value_attr, dump_die_shallow) | |
7964 | (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes) | |
7965 | (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_implicit_const. | |
7966 | ||
f1902523 JK |
7967 | 2017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com> |
7968 | ||
7969 | * dwarf2read.c (build_type_psymtabs_reader): New prototype. | |
7970 | (process_psymtab_comp_unit): Accept IS_DEBUG_TYPES. | |
7971 | (read_comp_units_from_section): New parameter abbrev_section, use | |
7972 | read_and_check_comp_unit_head, allocate signatured_type if needed. | |
7973 | (create_all_comp_units): Update read_comp_units_from_section caller. | |
7974 | ||
87215ad1 SDJ |
7975 | 2017-08-23 Pedro Alves <palves@redhat.com> |
7976 | ||
7977 | PR remote/21852 | |
7978 | * remote.c (add_current_inferior_and_thread): Set inferior_ptid | |
7979 | to null_ptid and switch to thread without reading the registers | |
7980 | after adding the inferior. | |
7981 | ||
6e41ddec JK |
7982 | 2017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com> |
7983 | ||
7984 | * NEWS (Changes since GDB 8.0): Add set compile-gcc and show | |
7985 | compile-gcc. | |
7986 | * compile/compile.c (compile_gcc, show_compile_gcc): New. | |
7987 | (compile_to_object): Implement compile_gcc. | |
7988 | (_initialize_compile): Install "set compile-gcc". Initialize | |
7989 | compile_gcc. | |
7990 | ||
e68c32d5 JK |
7991 | 2017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com> |
7992 | ||
7993 | * compile/compile.c (compile_to_object): Conditionally call | |
7994 | set_verbose. Conditionally call compile or compile_v0. | |
7995 | ||
58afddc6 WP |
7996 | 2017-08-07 Weimin Pan <weimin.pan@oracle.com> |
7997 | ||
7998 | * sparc64-tdep.h: (adi_normalize_address): New export. | |
7999 | * sparc-nat.h: (open_adi_tag_fd): New export. | |
8000 | * sparc64-linux-nat.c: (open_adi_tag_fd): New function. | |
8001 | * sparc64-linux-tdep.c: | |
8002 | (SEGV_ACCADI, SEGV_ADIDERR, SEGV_ADIPERR) New defines. | |
8003 | (sparc64_linux_handle_segmentation_fault): New function. | |
8004 | (sparc64_linux_init_abi): Register | |
8005 | sparc64_linux_handle_segmentation_fault | |
8006 | * sparc64-tdep.c: Include cli-utils.h,gdbcmd.h,auxv.h. | |
8007 | (sparc64_addr_bits_remove): New function. | |
8008 | (sparc64_init_abi): Register sparc64_addr_bits_remove. | |
8009 | (MAX_PROC_NAME_SIZE): New macro. | |
8010 | (AT_ADI_BLKSZ, AT_ADI_NBITS, AT_ADI_UEONADI) New defines. | |
8011 | (sparc64adilist): New variable. | |
8012 | (adi_proc_list): New variable. | |
8013 | (find_adi_info): New function. | |
8014 | (add_adi_info): New function. | |
8015 | (get_adi_info_proc): New function. | |
8016 | (get_adi_info): New function. | |
8017 | (info_adi_command): New function. | |
8018 | (read_maps_entry): New function. | |
8019 | (adi_available): New function. | |
8020 | (adi_normalize_address): New function. | |
8021 | (adi_align_address): New function. | |
8022 | (adi_convert_byte_count): New function. | |
8023 | (adi_tag_fd): New function. | |
8024 | (adi_is_addr_mapped): New function. | |
8025 | (adi_read_versions): New function. | |
8026 | (adi_write_versions): New function. | |
8027 | (adi_print_versions): New function. | |
8028 | (do_examine): New function. | |
8029 | (do_assign): New function. | |
8030 | (adi_examine_command): New function. | |
8031 | (adi_assign_command): New function. | |
8032 | (_initialize_sparc64_adi_tdep): New function. | |
8033 | ||
11db9430 SM |
8034 | 2017-08-22 Simon Marchi <simon.marchi@ericsson.com> |
8035 | ||
8036 | * breakpoint.c (breakpoints_info): Rename to ... | |
8037 | (info_breakpoints_command): ... this. | |
8038 | (watchpoints_info): Rename to ... | |
8039 | (info_watchpoints_command): ... this. | |
8040 | (tracepoints_info): Rename to ... | |
8041 | (info_tracepoints_command): ... this. | |
8042 | (_initialize_breakpoint): Adjust. | |
8043 | * dcache.c (dcache_info): Rename to ... | |
8044 | (info_display_command): ... this. | |
8045 | (_initialize_dcache): Adjust. | |
8046 | * frame.h (args_info): Rename to ... | |
8047 | (info_args_command): ... this. | |
8048 | (locals_info): Rename to ... | |
8049 | (info_locals_command): ... this. | |
8050 | * infcmd.c (nofp_registers_info): Rename to ... | |
8051 | (info_registers_command): ... this. | |
8052 | (float_info): Rename to ... | |
8053 | (info_float_command): ... this. | |
8054 | (program_info): Rename to ... | |
8055 | (info_program_command): ... this. | |
8056 | (all_registers_info): Rename to ... | |
8057 | (info_all_registers_command): ... this. | |
8058 | (vector_info): Rename to ... | |
8059 | (info_vector_command): ... this. | |
8060 | (float_info): Rename to ... | |
8061 | (info_float_command): ... this. | |
8062 | (_initialize_infcmd): Adjust. | |
8063 | * inferior.h (term_info): Rename to ... | |
8064 | (info_terminal_command): ... this. | |
8065 | * inflow.c (term_info): Rename to ... | |
8066 | (info_terminal_command): ... this. | |
8067 | (_initialize_inflow): Adjust. | |
8068 | * infrun.c (signals_info): Rename to ... | |
8069 | (info_signals_command): ... this. | |
8070 | (_initialize_infrun): Adjust. | |
8071 | * objc-lang.c (classes_info): Rename to ... | |
8072 | (info_classes_command): ... this. | |
8073 | (selectors_info): Rename to ... | |
8074 | (info_selectors_command): ... this. | |
8075 | (_initialize_objc_language): Adjust. | |
8076 | * printcmd.c (sym_info): Rename to ... | |
8077 | (info_symbol_command): ... this. | |
8078 | (address_info): Rename to ... | |
8079 | (info_address_command): ... this. | |
8080 | (display_info): Rename to ... | |
8081 | (info_display_command): ... this. | |
8082 | (_initialize_printcmd): Adjust. | |
8083 | * reverse.c (bookmarks_info): Rename to ... | |
8084 | (info_breakpoints_command): ... this. | |
8085 | (_initialize_reverse): Adjust. | |
8086 | * ser-go32.c (dos_info): Rename to ... | |
8087 | (info_serial_command): ... this. | |
8088 | (_initialize_ser_dos): Adjust. | |
8089 | * skip.c (skip_info): Rename to ... | |
8090 | (info_skip_command): ... this. | |
8091 | (_initialize_step_skip): Adjust. | |
8092 | * source.c (line_info): Rename to ... | |
8093 | (info_line_command): ... this. | |
8094 | (source_info): Rename to ... | |
8095 | (info_source_command) | |
8096 | * stack.c (frame_info): Rename to ... | |
8097 | (info_frame_command): ... this. | |
8098 | (locals_info): Rename to ... | |
8099 | (info_locals_command): ... this. | |
8100 | (args_info): Rename to ... | |
8101 | (info_args_command): ... this. | |
8102 | (_initialize_stack): Adjust. | |
8103 | * symtab.c (sources_info): Rename to ... | |
8104 | (info_sources_command): ... this. | |
8105 | (variables_info): Rename to ... | |
8106 | (info_variables_command): ... this. | |
8107 | (functions_info): Rename to ... | |
8108 | (info_functions_command): ... this. | |
8109 | (types_info): Rename to ... | |
8110 | (info_types_command): ... this. | |
8111 | (_initialize_symtab): Adjust. | |
8112 | * target.c (target_info): Rename to ... | |
8113 | (info_target_command): ... this. | |
8114 | (initialize_targets): Adjust. | |
8115 | * tracepoint.c (tvariables_info): Rename to ... | |
8116 | (info_tvariables_command): ... this. | |
8117 | (scope_info): Rename to ... | |
8118 | (info_scope_command): ... this. | |
8119 | (trace_dump_actions): Adjust. | |
8120 | (_initialize_tracepoint): Adjust. | |
8121 | ||
b270e6f9 TT |
8122 | 2017-08-22 Tom Tromey <tom@tromey.com> |
8123 | ||
8124 | * breakpoint.h (install_breakpoint): Update. | |
8125 | * breakpoint.c (add_solib_catchpoint): Update. | |
8126 | (install_breakpoint): Change argument to a std::unique_ptr. | |
8127 | (create_fork_vfork_event_catchpoint): Use std::unique_ptr. | |
8128 | (create_breakpoint_sal, create_breakpoint): Update. | |
8129 | (watch_command_1, catch_exec_command_1) | |
8130 | (strace_marker_create_breakpoints_sal): Use std::unique_ptr. | |
8131 | (add_to_breakpoint_chain): Change argument to a std::unique_ptr. | |
8132 | Return the breakpoint. | |
8133 | (set_raw_breakpoint_without_location, set_raw_breakpoint) | |
8134 | (new_single_step_breakpoint): Update. | |
8135 | * break-catch-throw.c (handle_gnu_v3_exceptions): Use | |
8136 | std::unique_ptr. | |
8137 | * break-catch-syscall.c (create_syscall_event_catchpoint): Use | |
8138 | std::unique_ptr. | |
8139 | * break-catch-sig.c (create_signal_catchpoint): Use | |
8140 | std::unique_ptr. | |
8141 | * ada-lang.c (create_ada_exception_catchpoint): Use | |
8142 | std::unique_ptr. | |
8143 | ||
36bd8eaa TT |
8144 | 2017-08-22 Tom Tromey <tom@tromey.com> |
8145 | ||
8146 | * breakpoint.c (add_solib_catchpoint): Use std::unique_ptr. | |
8147 | ||
56f37645 TT |
8148 | 2017-08-22 Tom Tromey <tom@tromey.com> |
8149 | ||
8150 | * psymtab.c (psymtab_search_name): Return a unique_xmalloc_ptr. | |
8151 | (lookup_partial_symbol): Update. | |
8152 | ||
0b581c69 TT |
8153 | 2017-08-22 Tom Tromey <tom@tromey.com> |
8154 | ||
8155 | * source.h (rewrite_source_path): Return a unique_xmalloc_ptr. | |
8156 | * source.c (rewrite_source_path): Return a unique_xmalloc_ptr. | |
8157 | (find_and_open_source, symtab_to_fullname): Update. | |
8158 | * psymtab.c (psymtab_to_fullname): Update. | |
8159 | ||
14278e1f TT |
8160 | 2017-08-22 Tom Tromey <tom@tromey.com> |
8161 | ||
8162 | * exec.c (exec_file_attach): Update. | |
8163 | * linux-thread-db.c (try_thread_db_load): Update. | |
8164 | * guile/scm-safe-call.c (gdbscm_safe_source_script): Update. | |
8165 | * utils.c (gdb_realpath): Change return type. | |
8166 | (gdb_realpath_keepfile): Update. | |
8167 | (gdb_realpath_check_trailer, gdb_realpath_tests): New functions. | |
8168 | (_initialize_utils): Register the new self test. | |
8169 | * source.c (openp): Update. | |
8170 | (find_and_open_source): Update. | |
8171 | * nto-tdep.c (nto_find_and_open_solib): Update. | |
8172 | * main.c (set_gdb_data_directory): Update. | |
8173 | (captured_main_1): Update. | |
8174 | * dwarf2read.c (dwarf2_get_dwz_file): Update | |
8175 | (dw2_map_symbol_filenames): Update. | |
8176 | * auto-load.c (auto_load_safe_path_vec_update): Update. | |
8177 | (filename_is_in_auto_load_safe_path_vec): Change type of | |
8178 | "filename_realp". | |
8179 | (auto_load_objfile_script): Update. | |
8180 | (file_is_auto_load_safe): Update. Use std::string. | |
8181 | * utils.h (gdb_realpath): Return a gdb::unique_xmalloc_ptr. | |
8182 | ||
4971c9a7 TT |
8183 | 2017-08-22 Tom Tromey <tom@tromey.com> |
8184 | ||
8185 | * utils.c (gdb_realpath_keepfile): Return a | |
8186 | gdb::unique_xmalloc_ptr. | |
8187 | * exec.c (exec_file_attach): Update. | |
8188 | * utils.h (gdb_realpath_keepfile): Return a | |
8189 | gdb::unique_xmalloc_ptr. | |
8190 | ||
e3e41d58 TT |
8191 | 2017-08-22 Tom Tromey <tom@tromey.com> |
8192 | ||
8193 | * compile/compile.c (compile_file_command): Use | |
8194 | gdb::unique_xmalloc_ptr, std::string. | |
8195 | * utils.c (gdb_abspath): Change return type. | |
8196 | * source.c (openp): Update. | |
8197 | * objfiles.c (allocate_objfile): Update. | |
8198 | * main.c (set_gdb_data_directory): Update. | |
8199 | * utils.h (gdb_abspath): Return a gdb::unique_xmalloc_ptr. | |
8200 | ||
0d999a6e ZZ |
8201 | 2017-08-22 Zhouyi Zhou <zhouzhouyi@gmail.com> |
8202 | ||
8203 | * cli-cmds.c (list_commands): List actual code around more than | |
8204 | one location. | |
8205 | ||
329d5e7e JB |
8206 | 2017-08-21 John Baldwin <jhb@FreeBSD.org> |
8207 | ||
8208 | * fbsd-nat.c (fbsd_add_threads): Use array type for `lwps'. | |
8209 | ||
bf223d3e PA |
8210 | 2017-08-21 Pedro Alves <palves@redhat.com> |
8211 | ||
8212 | PR gdb/19487 | |
8213 | * c-exp.y (variable production): Handle function aliases. | |
8214 | * minsyms.c (msymbol_is_text): New function. | |
8215 | * minsyms.h (msymbol_is_text): Declare. | |
8216 | * symtab.c (find_function_alias_target): New function. | |
8217 | * symtab.h (find_function_alias_target): Declare. | |
8218 | ||
c973d0aa PA |
8219 | 2017-08-21 Pedro Alves <palves@redhat.com> |
8220 | ||
8221 | * eval.c (evaluate_subexp_standard) <OP_TYPE>: Don't dig past | |
8222 | typedefs. | |
8223 | * typeprint.c (whatis_exp): If handling "whatis", and expression | |
8224 | is OP_TYPE, strip one typedef level. Otherwise don't strip | |
8225 | typedefs here. | |
8226 | * valops.c (value_cast): Save "to" type before resolving | |
8227 | stubs/typedefs. Use that type as resulting value's type. | |
8228 | ||
2989a365 TT |
8229 | 2017-08-18 Tom Tromey <tom@tromey.com> |
8230 | Pedro Alves <palves@redhat.com> | |
8231 | ||
8232 | * spu-multiarch.c (parse_spufs_run): Use scoped_restore. | |
8233 | * sol-thread.c (sol_thread_resume, sol_thread_wait) | |
8234 | (sol_thread_xfer_partial, rw_common): Use scoped_restore. | |
8235 | * procfs.c (procfs_do_thread_registers): Use scoped_restore. | |
8236 | * proc-service.c (ps_xfer_memory): Use scoped_restore. | |
8237 | * linux-tdep.c (linux_corefile_thread): Remove a cleanup. | |
8238 | (linux_get_siginfo_data): Add "thread" argument. Use | |
8239 | scoped_restore. | |
8240 | * linux-nat.c (linux_child_follow_fork) | |
8241 | (check_stopped_by_watchpoint): Use scoped_restore. | |
8242 | * infrun.c (displaced_step_prepare_throw, write_memory_ptid) | |
8243 | (THREAD_STOPPED_BY, handle_signal_stop): Use scoped_restore. | |
8244 | (restore_inferior_ptid, save_inferior_ptid): Remove. | |
8245 | * btrace.c (btrace_fetch): Use scoped_restore. | |
8246 | * bsd-uthread.c (bsd_uthread_fetch_registers) | |
8247 | (bsd_uthread_store_registers): Use scoped_restore. | |
8248 | * breakpoint.c (reattach_breakpoints, detach_breakpoints): Use | |
8249 | scoped_restore. | |
8250 | * aix-thread.c (aix_thread_resume, aix_thread_wait) | |
8251 | (aix_thread_xfer_partial): Use scoped_restore. | |
8252 | * inferior.h (save_inferior_ptid): Remove. | |
8253 | ||
e60eb288 YQ |
8254 | 2017-08-18 Yao Qi <yao.qi@linaro.org> |
8255 | ||
8256 | PR tdep/21818 | |
8257 | * arm-tdep.c (gdb_print_insn_arm): Mark | |
8258 | USER_SPECIFIED_MACHINE_TYPE if exec_bfd isn't NULL. | |
8259 | ||
6d580b63 YQ |
8260 | 2017-08-18 Yao Qi <yao.qi@linaro.org> |
8261 | ||
8262 | * NEWS: Mention GDBserver's new option "--selftest". | |
8263 | * Makefile.in (SFILES): Remove selftest.c, add common/selftest.c. | |
8264 | * selftest.c: Move it to common/selftest.c. | |
8265 | * selftest.h: Move it to common/selftest.h. | |
8266 | * selftest-arch.c (reset): New function. | |
8267 | (tests_with_arch): Call reset. | |
8268 | ||
86dcbf50 YQ |
8269 | 2017-08-18 Yao Qi <yao.qi@linaro.org> |
8270 | ||
8271 | * selftest.c (run_tests): Don't call QUIT. Call debug_printf | |
8272 | instead of exception_fprintf and printf_filtered. | |
8273 | ||
7649770c YQ |
8274 | 2017-08-18 Yao Qi <yao.qi@linaro.org> |
8275 | ||
8276 | * selftest.c (register_self_test): Rename it to | |
8277 | selftests::register_test. | |
8278 | (run_self_tests): selftest::run_tests. | |
8279 | * selftest.h: Update declarations. | |
8280 | * selftest-arch.c (register_self_test_foreach_arch): Rename it to | |
8281 | selftests::register_test_foreach_arch. | |
8282 | * selftest-arch.h: Update declaration. | |
8283 | * aarch64-tdep.c: Update. | |
8284 | * arm-tdep.c: Likewise. | |
8285 | * disasm-selftests.c: Likewise. | |
8286 | * dwarf2loc.c: Likewise. | |
8287 | * dwarf2-frame.c: Likewise. | |
8288 | * findvar.c: Likewise. | |
8289 | * gdbarch-selftests.c: Likewise. | |
8290 | * maint.c (maintenance_selftest): Likewise. | |
8291 | * regcache.c: Likewise. | |
8292 | * rust-exp.y: Likewise. | |
8293 | * selftest-arch.c: Likewise. | |
8294 | * unittests/environ-selftests.c: Likewise. | |
8295 | * unittests/function-view-selftests.c: Likewise. | |
8296 | * unittests/offset-type-selftests.c: Likewise. | |
8297 | * unittests/optional-selftests.c: Likewise. | |
8298 | * unittests/scoped_restore-selftests.c: Likewise. | |
8299 | * utils-selftests.c: Likewise. | |
8300 | ||
b0cba12e PA |
8301 | 2017-08-17 Pedro Alves <palves@redhat.com> |
8302 | ||
8303 | * cli/cli-cmds.c (source_command): Delete 'old_source_verbose' | |
8304 | local. | |
8305 | ||
4c8aa72d PA |
8306 | 2017-08-17 Pedro Alves <palves@redhat.com> |
8307 | ||
8308 | * dwarf2read.c (struct dwarf2_cu) <line_header_die_owner>: New | |
8309 | field. | |
8310 | (reset_die_in_process): Delete, replaced by ... | |
8311 | (process_die_scope): ... this new class. Make it responsible for | |
8312 | freeing cu->line_header too. | |
8313 | (process_die): Use process_die_scope. | |
8314 | (handle_DW_AT_stmt_list): Record the line header's owner CU/DIE in | |
8315 | cu->line_header_die_owner. Don't release the line header if it's | |
8316 | owned by the CU. | |
8317 | (setup_type_unit_groups): Make the CU/DIE own the line header. | |
8318 | Don't release the line header here. | |
8319 | ||
ba713918 AL |
8320 | 2017-08-17 Alex Lindsay <alexlindsay239@gmail.com> (tiny change) |
8321 | ||
8322 | * elfread.c (elf_read_minimal_symbols): xfree synthsyms. | |
8323 | ||
44d0fb3a RK |
8324 | 2017-08-17 Ruslan Kabatsayev <b7.10110111@gmail.com> |
8325 | ||
8326 | * NEWS: Mention new shortcuts for nexti and stepi in TUI | |
8327 | Single-Key mode | |
8328 | ||
a5afdb16 RK |
8329 | 2017-08-16 Ruslan Kabatsayev <b7.10110111@gmail.com> |
8330 | ||
8331 | * tui/tui.c (tui_commands): Add "nexti" and "stepi" to the Single-Key | |
8332 | mode command list. | |
8333 | ||
47613aeb SH |
8334 | 2017-08-15 Stafford Horne <shorne@gmail.com> |
8335 | ||
8336 | * MAINTAINERS (Write After Approval): Add Stafford Horne. | |
8337 | ||
9c3cc999 SH |
8338 | 2017-08-15 Stafford Horne <shorne@gmail.com> |
8339 | ||
8340 | * xtensa-tdep.c (xtensa_init_reggroups): Use xstrdup for cpname. | |
8341 | ||
206726fb SDJ |
8342 | 2017-08-15 Sergio Durigan Junior <sergiodj@redhat.com> |
8343 | ||
8344 | PR gdb/21954 | |
8345 | * infcmd.c (unset_environment_command): Use the 'clear' method on | |
8346 | the environment instead of resetting it. | |
8347 | ||
0335ac6d JB |
8348 | 2017-08-15 John Baldwin <jhb@FreeBSD.org> |
8349 | ||
8350 | * fbsd-nat.c (fbsd_convert_siginfo): Fix compile on big-endian | |
8351 | platforms. | |
8352 | ||
d3abe1c8 TT |
8353 | 2017-08-14 Tom Tromey <tom@tromey.com> |
8354 | ||
8355 | * valprint.c (print_octal_chars): Use HOST_CHAR_BIT. | |
8356 | (print_binary_chars): Likewise. | |
8357 | (BITS_IN_BYTES): Remove. | |
8358 | ||
d6382fff TT |
8359 | 2017-08-14 Tom Tromey <tom@tromey.com> |
8360 | ||
8361 | PR gdb/21675 | |
8362 | * valprint.c (LOW_ZERO): Change value to 034. | |
8363 | (print_octal_chars): Add static_asserts for octal constants. | |
8364 | * printcmd.c (print_scalar_formatted): Add 'd' case. | |
8365 | ||
f978cb06 TT |
8366 | 2017-08-11 Tom Tromey <tom@tromey.com> |
8367 | ||
8368 | * symfile.c (add_symbol_file_command): Use std::vector. | |
8369 | ||
2f5404b3 TT |
8370 | 2017-08-14 Tom Tromey <tom@tromey.com> |
8371 | ||
8372 | * break-catch-throw.c (handle_gnu_v3_exceptions): Use std::move. | |
8373 | * break-catch-syscall.c (create_syscall_event_catchpoint): Use | |
8374 | std::move. | |
8375 | * break-catch-sig.c (create_signal_catchpoint): Use std::move. | |
8376 | ||
de7985c3 PA |
8377 | 2017-08-11 Pedro Alves <palves@redhat.com> |
8378 | ||
8379 | * infrun.c (process_event_stop_test): Adjust | |
8380 | function_name_is_marked_for_skip call. | |
8381 | * skip.c: Include <list>. | |
8382 | (skiplist_entry): Make it a class with private fields, and | |
8383 | getters/setters. | |
8384 | (skiplist_entry_chain): Delete. | |
8385 | (skiplist_entries): New. | |
8386 | (skiplist_entry_count): Delete. | |
8387 | (highest_skiplist_entry_num): New. | |
8388 | (ALL_SKIPLIST_ENTRIES, ALL_SKIPLIST_ENTRIES_SAFE): Delete. | |
8389 | (add_skiplist_entry): Delete. | |
8390 | (skiplist_entry::skiplist_entry): New. | |
8391 | (skiplist_entry::add_entry): New. | |
8392 | (skip_file_command, skip_function): Adjust. | |
8393 | (compile_skip_regexp): Delete. | |
8394 | (skip_command): Don't compile regexp here. Adjust to use | |
8395 | skiplist_entry::add_entry. | |
8396 | (skip_info): Adjust to use range-for and getters. | |
8397 | (skip_enable_command, skip_disable_command): Adjust to use | |
8398 | range-for and setters. | |
8399 | (skip_delete_command): Adjust to use std::list. | |
8400 | (add_skiplist_entry): Delete. | |
8401 | (skip_file_p): Delete, refactored as ... | |
8402 | (skiplist_entry::do_skip_file_p): ... this new method. | |
8403 | (skip_gfile_p): Delete, refactored as ... | |
8404 | (skiplist_entry::do_gskip_file_p): ... this new method. | |
8405 | (skip_function_p, skip_rfunction_p): Delete, refactored as ... | |
8406 | (skiplist_entry::skip_function_p): ... this new method. | |
8407 | (function_name_is_marked_for_skip): Now returns bool, and takes | |
8408 | the function sal by const reference. Adjust to use range-for and | |
8409 | skiplist_entry methods. | |
8410 | (_initialize_step_skip): Remove references to | |
8411 | skiplist_entry_chain, skiplist_entry_count. | |
8412 | * skip.h (function_name_is_marked_for_skip): Now returns bool, and | |
8413 | takes the function sal by const reference. | |
8414 | ||
be7d3cd5 YQ |
8415 | 2017-08-11 Yao Qi <yao.qi@linaro.org> |
8416 | ||
8417 | * dwarf2-frame.c (clear_pointer_cleanup): Remove. | |
8418 | (dwarf2_frame_cache): Remove reset_cache_cleanup. | |
8419 | (dwarf2_frame_cache): | |
8420 | * frame-unwind.c (frame_unwind_try_unwinder): Catch | |
8421 | RETURN_MASK_ALL and set *this_case to NULL. | |
8422 | * frame-unwind.h: Update comments. | |
8423 | ||
1c90d9f0 YQ |
8424 | 2017-08-11 Yao Qi <yao.qi@linaro.org> |
8425 | ||
8426 | * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Remove. | |
8427 | (dwarf2_frame_state_copy_regs): Remove. | |
8428 | (dwarf2_frame_state_free_regs): Remove. | |
8429 | (dwarf2_frame_state::~dwarf2_frame_state): Remove. | |
8430 | (dwarf2_restore_rule): Call method .alloc_regs instead of | |
8431 | dwarf2_frame_state_alloc_regs. | |
8432 | (execute_cfa_program): Likewise. Call dwarf2_frame_state_reg_info | |
8433 | constructor. Call std::move. | |
8434 | (dwarf2_fetch_cfa_info): Don't call dwarf2_frame_state_copy_regs. | |
8435 | (dwarf2_frame_cache): Likewise. | |
8436 | ||
8437 | [GDB_SELF_TEST]: Include selftest.h and | |
8438 | selftest-arch.h. | |
8439 | [GDB_SELF_TEST] (execute_cfa_program_test): New function. | |
8440 | (_initialize_dwarf2_frame) [GDB_SELF_TEST]: Register | |
8441 | execute_cfa_program_test. | |
8442 | ||
8443 | * dwarf2-frame.h (dwarf2_frame_state_reg_info): Add ctor, dtor, | |
8444 | copy ctor, assignment operator, move assignment. | |
8445 | <alloc_regs>: New method. | |
8446 | <swap>: New method. | |
8447 | (struct dwarf2_frame_state): Delete dtor. | |
8448 | (dwarf2_frame_state_alloc_regs): Remove declaration. | |
8449 | * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): Don't call | |
8450 | dwarf2_frame_state_alloc_regs, use .alloc_regs instead. | |
8451 | ||
afe37d6b YQ |
8452 | 2017-08-11 Yao Qi <yao.qi@linaro.org> |
8453 | ||
8454 | * dwarf2-frame.c (dwarf2_frame_state_free): Remove. | |
8455 | (dwarf2_frame_state::dwarf2_frame_state): New. | |
8456 | (dwarf2_frame_state::~dwarf2_frame_state): New. | |
8457 | (dwarf2_fetch_cfa_info): Update. | |
8458 | (dwarf2_frame_cache): Remove old_chain. Change 'fs' to an object | |
8459 | rather than a pointer. Update code. | |
8460 | * dwarf2-frame.h (struct dwarf2_frame_state): Declare ctor and | |
8461 | dtor. | |
8462 | <data_align, code_align, retaddr_column>: Change them to const. | |
8463 | <armcc_cfa_offsets_sf, armcc_cfa_offsets_reversed>: Change them | |
8464 | to bool. | |
8465 | ||
b348037f YQ |
8466 | 2017-08-11 Yao Qi <yao.qi@linaro.org> |
8467 | ||
8468 | * dwarf2-frame.h (struct dwarf2_frame_state_reg) <exp_len>: Remove. | |
8469 | <loc.exp>: New field. | |
8470 | * dwarf2-frame.c (execute_cfa_program): Update. | |
8471 | (dwarf2_frame_prev_register): Update. | |
8472 | ||
e7c9de26 PA |
8473 | 2017-08-10 Pedro Alves <palves@redhat.com> |
8474 | ||
8475 | * common/gdb_unique_ptr.h (xfree_deleter<T[]>): Define. | |
8476 | ||
e8c6b620 JB |
8477 | 2017-08-09 John Baldwin <jhb@FreeBSD.org> |
8478 | ||
8479 | * fbsd-nat.c (struct fbsd_fork_info): Remove. | |
8480 | (fbsd_pending_children): Use std::list. | |
8481 | (fbsd_remember_child): Likewise. | |
8482 | (fbsd_is_child_pending): Likewise. | |
8483 | (fbsd_pending_vfork_done): Use std::forward_list. | |
8484 | (fbsd_add_vfork_done): Likewise. | |
8485 | (fbsd_is_vfork_done_pending): Likewise. | |
8486 | (fbsd_next_vfork_done): Likewise. | |
8487 | ||
e4a26669 JB |
8488 | 2017-08-09 John Baldwin <jhb@FreeBSD.org> |
8489 | ||
8490 | * fbsd-nat.c [HAVE_KINFO_GETVMMAP] (struct free_deleter): New. | |
8491 | (fbsd_find_memory_regions): Use free_deleter with std::unique_ptr. | |
8492 | [!HAVE_KINFO_GETVMMAP] (fbsd_find_memory_regions): Use std::string | |
8493 | for `mapfilename'. | |
8494 | (fbsd_xfer_partial): Use gdb::byte_vector. | |
af3881e6 | 8495 | (fbsd_add_threads): Use gdb::unique_xmalloc_ptr. |
e4a26669 | 8496 | |
142311d3 JB |
8497 | 2017-08-09 John Baldwin <jhb@FreeBSD.org> |
8498 | ||
8499 | * fbsd-nat.c: [!HAVE_KINFO_GETVMMAP]: Include <sys/user.h> and | |
8500 | "filestuff.h". | |
8501 | (fbsd_find_memory_regions): Fix `mapfile' initialization. | |
8502 | ||
42fa2e0e TT |
8503 | 2017-08-09 Tom Tromey <tom@tromey.com> |
8504 | ||
8505 | * skip.c (skiplist_entry): New constructor. | |
8506 | (skiplist_entry::enabled, skiplist_entry::function_is_regexp) | |
8507 | (skiplist_entry::file_is_glob): Now bool. | |
8508 | (skiplist_entry::file, skiplist_entry::function): Now | |
8509 | std::string. | |
8510 | (make_skip_entry): Return a unique_ptr. Use new. | |
8511 | (free_skiplist_entry, free_skiplist_entry_cleanup) | |
8512 | (make_free_skiplist_entry_cleanup): Remove. | |
8513 | (skip_command, skip_disable_command, add_skiplist_entry) | |
8514 | (skip_form_bytes, compile_skip_regexp, skip_command, skip_info) | |
8515 | (skip_file_p, skip_gfile_p, skip_function_p, skip_rfunction_p) | |
8516 | (function_name_is_marked_for_skip): Update. | |
8517 | (skip_delete_command): Update. Use delete. | |
8518 | ||
cd3af38d JW |
8519 | 2017-08-09 Jiong Wang <jiong.wang@arm.com> |
8520 | ||
8521 | * aarch64-linux-tdep.c: Include "auxv.h" and "elf/common.h". | |
8522 | (aarch64_linux_core_read_description): New function. | |
8523 | (aarch64_linux_init_abi): Register gdbarch_core_read_description. | |
8524 | ||
29592bde PA |
8525 | 2017-08-09 Pedro Alves <palves@redhat.com> |
8526 | ||
8527 | * cp-name-parser.y (cp_comp_to_string): Return a | |
8528 | gdb::unique_xmalloc_ptr<char>. | |
8529 | * cp-support.c (replace_typedefs_qualified_name) | |
8530 | (replace_typedefs): Adjust to use gdb::unique_xmalloc_ptr<char>. | |
8531 | (cp_canonicalize_string_full): Use op= instead of explicit | |
8532 | convertion. | |
8533 | (cp_class_name_from_physname, method_name_from_physname) | |
8534 | (cp_func_name, cp_remove_params): Adjust to use | |
8535 | gdb::unique_xmalloc_ptr<char>. | |
8536 | * cp-support.h (cp_comp_to_string): Return a | |
8537 | gdb::unique_xmalloc_ptr<char>. | |
8538 | * python/py-type.c (typy_lookup_type): Adjust to use | |
8539 | gdb::unique_xmalloc_ptr<char>. | |
8540 | ||
b3340438 L |
8541 | 2017-08-09 H.J. Lu <hongjiu.lu@intel.com> |
8542 | ||
8543 | * dwarf2read.c (dwarf2_string_attr): Fix a typo. | |
8544 | ||
e88e8651 YQ |
8545 | 2017-08-09 Alex Lindsay <alexlindsay239@gmail.com> |
8546 | Yao Qi <yao.qi@linaro.org> | |
8547 | ||
8548 | * cp-support.c (cp_canonicalize_string_full): Use | |
8549 | gdb::unique_xmalloc_ptr<char>. | |
8550 | (cp_canonicalize_string): Likewise. | |
8551 | ||
f5a29eb0 YQ |
8552 | 2017-08-09 Yao Qi <yao.qi@linaro.org> |
8553 | ||
8554 | * features/Makefile (WHICH): Remove i386/ non-linux stuff. | |
8555 | * regformats/i386/amd64-avx-avx512.dat: Remove. | |
8556 | * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Remove. | |
8557 | * regformats/i386/amd64-avx-mpx.dat:Remove. | |
8558 | * regformats/i386/amd64-avx.dat: Remove. | |
8559 | * regformats/i386/amd64-mpx.dat: Remove. | |
8560 | * regformats/i386/i386-avx-avx512.dat: Remove. | |
8561 | * regformats/i386/i386-avx-mpx-avx512-pku.dat: Remove. | |
8562 | * regformats/i386/i386-avx-mpx.dat: Remove. | |
8563 | * regformats/i386/i386-mmx.dat: Remove. | |
8564 | * regformats/i386/i386-mpx.dat: Remove. | |
8565 | ||
57757c2f YQ |
8566 | 2017-08-09 Yao Qi <yao.qi@linaro.org> |
8567 | ||
8568 | * amd64-tdep.h (tdesc_x32): Remove the declaration. | |
8569 | * amd64-tdep.c: Don't include features/i386/x32*.c. | |
8570 | (_initialize_amd64_tdep): Don't call initialize_tdesc_x32* | |
8571 | functions. | |
8572 | * features/Makefile (WHICH): Remove i386/x32, i386/x32-avx, | |
8573 | and i386/x32-avx-avx512. | |
8574 | (XMLTOC): Remove i386/x32-avx.xml, i386/x32-avx-avx512.xml, | |
8575 | and i386/x32.xml. | |
8576 | * features/i386/x32-avx-avx512.c: Removed. | |
8577 | * features/i386/x32-avx-avx512.xml: Removed. | |
8578 | * features/i386/x32-avx.c: Removed. | |
8579 | * features/i386/x32-avx.xml: Removed. | |
8580 | * features/i386/x32.c: Removed. | |
8581 | * features/i386/x32.xml: Removed. | |
8582 | * regformats/i386/x32-avx-avx512.dat: Removed. | |
8583 | * regformats/i386/x32-avx.dat: Removed. | |
8584 | * regformats/i386/x32.dat: Removed. | |
8585 | ||
ba7b109b MR |
8586 | 2017-08-07 Maciej W. Rozycki <macro@imgtec.com> |
8587 | ||
8588 | PR breakpoints/21886 | |
8589 | * mem-break.c (default_memory_insert_breakpoint): Use | |
8590 | `->placed_address' rather than `->reqstd_address' for the | |
8591 | breakpoint location. | |
8592 | ||
e347efc3 MR |
8593 | 2017-08-07 Maciej W. Rozycki <macro@imgtec.com> |
8594 | ||
8595 | * arch-utils.c (default_print_insn): Remove arch/mach/endian | |
8596 | assertions. | |
8597 | ||
0dba2a6c MR |
8598 | 2017-08-07 Maciej W. Rozycki <macro@imgtec.com> |
8599 | ||
8600 | * gdbarch.sh (gdbarch_info): Replace the `tdep_info' member with | |
8601 | a union of `tdep_info', `tdesc_data' and `id'. | |
8602 | * aarch64-tdep.c (aarch64_gdbarch_init): Use `info.tdesc_data' | |
8603 | rather than `info.tdep_info'. | |
8604 | * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise. | |
8605 | * i386-linux-tdep.c (i386_linux_init_abi): Likewise. | |
8606 | * i386-tdep.c (i386_gdbarch_init): Likewise. | |
8607 | * mips-linux-tdep.c (mips_linux_init_abi): Likewise. | |
8608 | * mips-tdep.c (mips_gdbarch_init): Likewise. | |
8609 | * nds32-tdep.c (nds32_gdbarch_init): Likewise. | |
8610 | * rs6000-tdep.c (rs6000_gdbarch_init): Likewise. | |
8611 | * ppc-linux-tdep.c (ppu2spu_sniffer): Use `info.id' rather than | |
8612 | `info.tdep_info'. | |
8613 | (ppc_linux_init_abi): Use `info.tdesc_data' rather than | |
8614 | `info.tdep_info'. | |
8615 | * sparc-tdep.c (sparc32_gdbarch_init): Likewise. | |
8616 | * spu-multiarch.c (spu_gdbarch): Use `info.id' rather than | |
8617 | `info.tdep_info'. | |
8618 | * spu-tdep.c (spu_gdbarch_init): Likewise. | |
8619 | * gdbarch.h: Regenerate. | |
8620 | ||
16eb6b2d LS |
8621 | 2017-08-07 Leszek Swirski <leszeks@google.com> |
8622 | ||
7b005726 | 8623 | PR symtab/20899 |
16eb6b2d LS |
8624 | * dwarf2read.c (dwarf2_string_attr): Allow DW_FORM_GNU_strp_alt. |
8625 | ||
74cbb09e SM |
8626 | 2017-08-07 Simon Marchi <simon.marchi@ericsson.com> |
8627 | ||
8628 | * remote-sim.c (gdbsim_load): Remove char **argv local variable. | |
8629 | (gdbsim_open): Rename gdb_argv args object to argv. | |
8630 | ||
ee0c3293 TT |
8631 | 2017-08-05 Tom Tromey <tom@tromey.com> |
8632 | ||
8633 | * compile/compile-object-load.c (compile_object_load): Use | |
8634 | gdb::unique_xmalloc_ptr. | |
8635 | * cli/cli-dump.c (scan_filename): Rename from | |
8636 | scan_filename_with_cleanup. Change return type. | |
8637 | (scan_expression): Rename from scan_expression_with_cleanup. | |
8638 | Change return type. | |
8639 | (dump_memory_to_file, dump_value_to_file, restore_command): | |
8640 | Use gdb::unique_xmalloc_ptr. Update. | |
8641 | * cli/cli-cmds.c (find_and_open_script): Use | |
8642 | gdb::unique_xmalloc_ptr. | |
8643 | * tracefile-tfile.c (tfile_open): Use gdb::unique_xmalloc_ptr. | |
8644 | * symmisc.c (maintenance_print_symbols) | |
8645 | (maintenance_print_msymbols): Use gdb::unique_xmalloc_ptr. | |
8646 | * symfile.c (symfile_bfd_open, generic_load) | |
8647 | (add_symbol_file_command, remove_symbol_file_command): Use | |
8648 | gdb::unique_xmalloc_ptr. | |
8649 | * source.c (openp): Use gdb::unique_xmalloc_ptr. | |
8650 | * psymtab.c (maintenance_print_psymbols): Use | |
8651 | gdb::unique_xmalloc_ptr. | |
8652 | * corelow.c (core_open): Use gdb::unique_xmalloc_ptr. | |
8653 | * breakpoint.c (save_breakpoints): Use gdb::unique_xmalloc_ptr. | |
8654 | * solib.c (solib_map_sections): Use gdb::unique_xmalloc_ptr. | |
8655 | (reload_shared_libraries_1): Likewise. | |
8656 | ||
3232fabd TT |
8657 | 2017-08-05 Tom Tromey <tom@tromey.com> |
8658 | ||
8659 | * rust-exp.y (rust_op_ptr, set_field): Remove typedefs. | |
8660 | (rust_op_vector, rust_set_vector): New typedefs. | |
8661 | (current_parser): New global. | |
8662 | (work_obstack): Change to pointer type. Update all users. | |
8663 | (rust_ast, pstate): Remove globals. | |
8664 | (struct rust_parser): New. | |
8665 | (%union) <params, field_inits>: Change type. | |
8666 | (start, tuple_expr, unit_expr, struct_expr_list, literal) | |
8667 | (field_expr, expr_list, maybe_expr_list, type_list): Update. | |
8668 | (ast_call_ish, ast_path, ast_function_type, ast_tuple_type) | |
8669 | (convert_params_to_types, convert_params_to_expression): Change | |
8670 | type of "params". | |
8671 | (ast_string): Change type of "fields". | |
8672 | (rust_parse): Make a rust_parser. Remove cleanups. | |
8673 | (rust_lex_tests): Make and install an auto_obstack. | |
8674 | ||
f02fd774 YQ |
8675 | 2017-08-04 Yao Qi <yao.qi@linaro.org> |
8676 | ||
8677 | * configure.srv (ipa_x32_linux_regobj): New. | |
8678 | * linux-amd64-ipa.c (get_ipa_tdesc): Use X86_TDESC_AVX_AVX512 | |
8679 | instead of X86_TDESC_AVX512. | |
8680 | (initialize_low_tracepoint): Call | |
8681 | init_registers_x32_avx_avx512_linux. | |
8682 | ||
91975afd YQ |
8683 | 2017-08-04 Yao Qi <yao.qi@linaro.org> |
8684 | ||
8685 | * utils.h (gdb_argv): Add namespace std for nullptr_t. | |
8686 | ||
2331fa3a RK |
8687 | 2017-08-03 Ruslan Kabatsayev <b7.10110111@gmail.com> |
8688 | ||
8689 | * MAINTAINERS (Write After Approval): Add Ruslan Kabatsayev. | |
8690 | ||
744e4fe1 TT |
8691 | 2017-08-03 Tom Tromey <tom@tromey.com> |
8692 | ||
8693 | * utils.c (make_cleanup_freeargv, do_freeargv, gdb_buildargv): | |
8694 | Remove. | |
8695 | * utils.h (make_cleanup_freeargv, gdb_buildargv): Remove. | |
8696 | ||
1c034b67 TT |
8697 | 2017-08-03 Tom Tromey <tom@tromey.com> |
8698 | ||
8699 | * python/py-param.c (compute_enum_values): Use gdb_argv. | |
8700 | ||
773a1edc TT |
8701 | 2017-08-03 Tom Tromey <tom@tromey.com> |
8702 | ||
8703 | * utils.h (struct gdb_argv_deleter): New. | |
8704 | (gdb_argv): New class. | |
8705 | * utils.c (gdb_argv::reset): New method. | |
8706 | * tracepoint.c (delete_trace_variable_command): Use gdb_argv. | |
8707 | * tracefile.c (tsave_command): Use gdb_argv. | |
8708 | * top.c (new_ui_command): Use gdb_argv. | |
8709 | * symmisc.c (maintenance_print_symbols) | |
8710 | (maintenance_print_msymbols, maintenance_expand_symtabs): Use gdb_argv. | |
8711 | * symfile.c (symbol_file_command, generic_load) | |
8712 | (remove_symbol_file_command): Use gdb_argv. | |
8713 | * stack.c (backtrace_command): Use gdb_argv. | |
8714 | * source.c (add_path, show_substitute_path_command) | |
8715 | (unset_substitute_path_command, set_substitute_path_command): | |
8716 | Use gdb_argv. | |
8717 | * skip.c (skip_command): Use gdb_argv. Use gdb_buildargv. | |
8718 | * ser-mingw.c (pipe_windows_open): Use gdb_argv. | |
8719 | * remote.c (extended_remote_run, remote_put_command) | |
8720 | (remote_get_command, remote_delete_command): Use gdb_argv. | |
8721 | * remote-sim.c (gdbsim_load, gdbsim_create_inferior) | |
8722 | (gdbsim_open): Use gdb_argv. | |
8723 | * python/py-cmd.c (gdbpy_string_to_argv): Use gdb_argv. | |
8724 | * psymtab.c (maintenance_print_psymbols): Use gdb_argv. | |
8725 | * procfs.c (procfs_info_proc): Use gdb_argv. | |
8726 | * interps.c (interpreter_exec_cmd): Use gdb_argv. | |
8727 | * infrun.c (handle_command): Use gdb_argv. | |
8728 | * inferior.c (add_inferior_command, clone_inferior_command): | |
8729 | Use gdb_argv. | |
8730 | * guile/scm-string.c (gdbscm_string_to_argv): Use gdb_argv. | |
8731 | * exec.c (exec_file_command): Use gdb_argv. | |
8732 | * cli/cli-cmds.c (alias_command): Use gdb_argv. | |
8733 | * compile/compile.c (build_argc_argv): Use gdb_argv. | |
8734 | ||
0d50bde3 TT |
8735 | 2017-08-03 Tom Tromey <tom@tromey.com> |
8736 | ||
8737 | * python/python.c (gdbpy_decode_line): Use unique_xmalloc_ptr. | |
8738 | ||
7f968c89 TT |
8739 | 2017-08-03 Tom Tromey <tom@tromey.com> |
8740 | ||
8741 | * python/python.c (compute_python_string): Return std::string. | |
8742 | (gdbpy_eval_from_control_command): Update. | |
8743 | (do_start_initialization): Use std::string. | |
8744 | * python/py-varobj.c (py_varobj_iter_next): Use string_printf, not | |
8745 | xstrprintf. | |
8746 | * python/py-breakpoint.c (local_setattro): Use string_printf, not | |
8747 | xstrprintf. | |
8748 | ||
3c9ebddd TT |
8749 | 2017-08-03 Tom Tromey <tom@tromey.com> |
8750 | ||
8751 | * top.h (do_restore_instream_cleanup): Remove. | |
8752 | * top.c (do_restore_instream_cleanup): Remove. | |
8753 | (read_command_file): Use scoped_restore. | |
8754 | * cli/cli-script.c (execute_user_command): Use scoped_restore. | |
8755 | ||
b51b225e TT |
8756 | 2017-08-03 Tom Tromey <tom@tromey.com> |
8757 | ||
8758 | * cli/cli-script.c (execute_user_command) | |
8759 | (execute_control_command): Use scoped_restore. | |
8760 | ||
ac991630 TT |
8761 | 2017-08-03 Tom Tromey <tom@tromey.com> |
8762 | ||
8763 | * cli/cli-script.c (do_restore_user_call_depth): Remove. | |
8764 | (execute_user_command): Remove user_call_depth; use | |
8765 | user_args_stack's size instead. | |
8766 | ||
898e0c8e TT |
8767 | 2017-08-03 Tom Tromey <tom@tromey.com> |
8768 | ||
8769 | * top.h (in_user_command): Remove. | |
8770 | * top.c (in_user_command): Remove. | |
8771 | * cli/cli-script.c (do_restore_user_call_depth) | |
8772 | (execute_user_command): Update. | |
8773 | ||
26fcd5d7 TT |
8774 | 2017-08-03 Tom Tromey <tom@tromey.com> |
8775 | ||
8776 | * valops.c (search_struct_method): Use gdb::byte_vector. | |
8777 | * valarith.c (value_concat): Use std::vector. | |
8778 | * target.c (memory_xfer_partial): Use gdb::byte_vector. | |
8779 | (simple_search_memory): Likewise. | |
8780 | * printcmd.c (find_string_backward): Use gdb::byte_vector. | |
8781 | * mi/mi-main.c (mi_cmd_data_write_memory): Use gdb::byte_vector. | |
8782 | * gcore.c (gcore_copy_callback): Use gdb::byte_vector. | |
8783 | * elfread.c (elf_rel_plt_read): Use std::string. | |
8784 | * cp-valprint.c (cp_print_value): Use gdb::byte_vector. | |
8785 | * cli/cli-dump.c (restore_section_callback): Use | |
8786 | gdb::byte_vector. | |
8787 | ||
7c218e6c TT |
8788 | 2017-08-03 Tom Tromey <tom@tromey.com> |
8789 | ||
8790 | * jit.c (jit_reader_load_command): Use unique_xmalloc_ptr. | |
8791 | ||
31b68d4a TT |
8792 | 2017-08-03 Tom Tromey <tom@tromey.com> |
8793 | ||
8794 | * tui/tui-regs.c (tui_restore_gdbout): Remove. | |
8795 | (tui_register_format): Use scoped_restore. | |
8796 | ||
2ec845e7 TT |
8797 | 2017-08-03 Tom Tromey <tom@tromey.com> |
8798 | ||
8799 | * reverse.c (exec_direction_default): Remove. | |
8800 | (exec_reverse_once): Use scoped_restore. | |
8801 | * remote.c (restore_remote_timeout): Remove. | |
8802 | (remote_flash_erase, remote_flash_write, remote_flash_done) | |
8803 | (readchar, remote_serial_write): Use scoped_restore. | |
8804 | * cli/cli-script.c (struct source_cleanup_lines_args) | |
8805 | (source_cleanup_lines): Remove. | |
8806 | (script_from_file): Use scoped_restore. | |
8807 | * cli/cli-cmds.c (source_verbose_cleanup): Remove. | |
8808 | (source_command): Use scoped_restore. | |
8809 | ||
b3bc8453 TT |
8810 | 2017-08-03 Tom Tromey <tom@tromey.com> |
8811 | ||
8812 | * utils.h (make_cleanup_free_so): Remove. | |
8813 | * utils.c (do_free_so, make_cleanup_free_so): Remove. | |
8814 | * solist.h (struct so_deleter): New. | |
8815 | (so_list_up): New typedef. | |
8816 | * solib-svr4.c (svr4_read_so_list): Use so_list_up. | |
8817 | ||
e3ad2841 TT |
8818 | 2017-08-03 Tom Tromey <tom@tromey.com> |
8819 | ||
8820 | * utils.h (make_cleanup_restore_current_language): Remove. | |
8821 | * utils.c (do_restore_current_language) | |
8822 | (make_cleanup_restore_current_language): Remove. | |
8823 | * parse.c (parse_exp_in_context_1) | |
8824 | (parse_expression_with_language): Use | |
8825 | scoped_restore_current_language. | |
8826 | * mi/mi-main.c (mi_cmd_execute): Use | |
8827 | scoped_restore_current_language. | |
8828 | * language.h (scoped_restore_current_language): New class. | |
8829 | ||
b80cf838 TT |
8830 | 2017-08-03 Tom Tromey <tom@tromey.com> |
8831 | ||
8832 | * compile/compile.c (cleanup_unlink_file): Remove. | |
8833 | (compile_to_object): Use gdb::unlinker. | |
8834 | (eval_compile_command): Likewise. | |
8835 | ||
fad0444a TT |
8836 | 2017-08-03 Tom Tromey <tom@tromey.com> |
8837 | ||
8838 | * utils.h (make_cleanup_fclose): Remove. | |
8839 | * utils.c (do_fclose_cleanup, make_cleanup_fclose): Remove. | |
8840 | ||
6e7bc05c TT |
8841 | 2017-08-03 Tom Tromey <tom@tromey.com> |
8842 | ||
8843 | * top.c (open_terminal_stream): Return gdb_file_up. | |
8844 | (new_ui_command): Update. | |
8845 | ||
4a45905b TT |
8846 | 2017-08-03 Tom Tromey <tom@tromey.com> |
8847 | ||
8848 | * source.c (print_source_lines_base, forward_search_command) | |
8849 | (reverse_search_command): Use gdb_file_up. | |
8850 | ||
7cd06d6e TT |
8851 | 2017-08-03 Tom Tromey <tom@tromey.com> |
8852 | ||
8853 | * fbsd-nat.c (fbsd_find_memory_regions): Update. | |
8854 | ||
ed166945 TT |
8855 | 2017-08-03 Tom Tromey <tom@tromey.com> |
8856 | ||
8857 | * cli/cli-cmds.c (find_and_open_script): Change return type. | |
8858 | Remove "streamp" and "full_path" parameters. | |
8859 | (source_script_with_search): Update. | |
8860 | * auto-load.c (source_script_file): Update. | |
8861 | * cli/cli-cmds.h (find_and_open_script): Change type. | |
8862 | (open_script): New struct. | |
8863 | ||
d419f42d TT |
8864 | 2017-08-03 Tom Tromey <tom@tromey.com> |
8865 | ||
8866 | * xml-support.c (xml_fetch_content_from_file): Update. | |
8867 | * ui-file.c (stdio_file::open): Update. | |
8868 | * tracefile-tfile.c (tfile_start): Update. | |
8869 | * remote.c (remote_file_put, remote_file_get): Update. | |
8870 | * nat/linux-procfs.c (linux_proc_get_int) | |
8871 | (linux_proc_pid_get_state, linux_proc_tid_get_name): Update. | |
8872 | * nat/linux-osdata.c (linux_common_core_of_thread): Update. | |
8873 | (command_from_pid, commandline_from_pid, linux_xfer_osdata_cpus) | |
8874 | (print_sockets, linux_xfer_osdata_shm, linux_xfer_osdata_sem) | |
8875 | (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Update. | |
8876 | * nat/linux-btrace.c (linux_determine_kernel_start): Update. | |
8877 | * linux-nat.c (linux_proc_pending_signals): Update. | |
8878 | * dwarf2read.c (write_psymtabs_to_index): Use gdb_file_up. | |
8879 | (file_closer): Remove. | |
8880 | * compile/compile.c (compile_to_object): Update. | |
8881 | * common/filestuff.h (struct gdb_file_deleter): New. | |
8882 | (gdb_file_up): New typedef. | |
8883 | (gdb_fopen_cloexec): Change return type. | |
8884 | * common/filestuff.c (gdb_fopen_cloexec): Return gdb_file_up. | |
8885 | * cli/cli-dump.c (fopen_with_cleanup): Remove. | |
8886 | (dump_binary_file, restore_binary_file): Update. | |
8887 | * auto-load.c (auto_load_objfile_script_1): Update. | |
8888 | ||
4a2b031d TT |
8889 | 2017-08-03 Tom Tromey <tom@tromey.com> |
8890 | ||
8891 | * tracepoint.c (tvariables_info_1): Use ui_out_emit_table. | |
8892 | (info_static_tracepoint_markers_command): Likewise. | |
8893 | * solib.c (info_sharedlibrary_command): Use ui_out_emit_table. | |
8894 | * skip.c (skip_info): Use ui_out_emit_table. | |
8895 | * progspace.c (print_program_space): Use ui_out_emit_table. | |
8896 | * osdata.c (info_osdata): Use ui_out_emit_table. | |
8897 | * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Use | |
8898 | ui_out_emit_table. | |
8899 | * linux-thread-db.c (info_auto_load_libthread_db): Use | |
8900 | ui_out_emit_table. | |
8901 | * inferior.c (print_inferior): Use ui_out_emit_table. | |
8902 | * gdb_bfd.c (maintenance_info_bfds): Use ui_out_emit_table. | |
8903 | * breakpoint.c (breakpoint_1): Use ui_out_emit_table. | |
8904 | * auto-load.c (auto_load_info_scripts): Use ui_out_emit_table. | |
8905 | * ada-tasks.c (print_ada_task_info): Use ui_out_emit_table. | |
8906 | * ui-out.h (class ui_out_emit_table): New. | |
8907 | ||
a4f320fd MR |
8908 | 2017-08-02 Maciej W. Rozycki <macro@imgtec.com> |
8909 | ||
8910 | * mips-tdep.c (mips_fpu_type_str): New function. | |
8911 | (mips_dump_tdep): Call it. | |
8912 | ||
a2f1f308 MR |
8913 | 2017-08-01 Maciej W. Rozycki <macro@imgtec.com> |
8914 | ||
8915 | * mips-tdep.c (mips_gdbarch_init): Use MIPS_FPU_TYPE to access | |
8916 | `->mips_fpu_type'. | |
8917 | ||
7e5ed83b XR |
8918 | 2017-07-31 Xavier Roirand <roirand@adacore.com> |
8919 | ||
8920 | * solib-darwin.c (DYLD_VERSION_MAX): Increase value. | |
8921 | ||
4c9dc811 XR |
8922 | 2017-07-27 Xavier Roirand <roirand@adacore.com> |
8923 | ||
8924 | * MAINTAINERS (Write After Approval): Add Xavier Roirand. | |
8925 | ||
27d41eac YQ |
8926 | 2017-07-26 Yao Qi <yao.qi@linaro.org> |
8927 | ||
8928 | * cli/cli-cmds.c (maintenancechecklist): New variable. | |
8929 | * gdbcmd.h (maintenancechecklist): Declare it. | |
8930 | * i386-linux-tdep.c (_initialize_i386_linux_tdep) [GDB_SELF_TEST]: | |
8931 | Call i386_linux_read_description with different masks. | |
8932 | * maint.c (maintenance_check_command): New function. | |
8933 | (_initialize_maint_cmds): Call add_prefix_cmd. | |
8934 | * target-descriptions.c (tdesc_reg): override operator != and ==. | |
8935 | (tdesc_type): Likewise. | |
8936 | (tdesc_feature): Likewise. | |
8937 | (target_desc): Likewise. | |
8938 | [GDB_SELF_TEST] (selftests::record_xml_tdesc): New function. | |
8939 | (maintenance_check_xml_descriptions): New function. | |
8940 | (_initialize_target_descriptions) Add command "xml-descriptions". | |
8941 | * target-descriptions.h (selftests::record_xml_tdesc): Declare. | |
8942 | ||
ea03d0d3 YQ |
8943 | 2017-07-26 Yao Qi <yao.qi@linaro.org> |
8944 | ||
8945 | * i386-linux-tdep.c: Don't include features/i386/i386-*linux.c. | |
8946 | Include features/i386/32bit-*.c. | |
8947 | (i386_linux_read_description): Generate target description if it | |
8948 | doesn't exist. | |
8949 | (_initialize_i386_linux_tdep): Don't call _initialize_tdesc_i386 | |
8950 | functions. | |
8951 | * features/i386/32bit-linux.c: Re-generated. | |
8952 | * features/i386/32bit-sse.c: Likewise. | |
8953 | * target-descriptions.c (print_c_feature::visit): Print code to | |
8954 | set register number if needed. | |
8955 | (print_c_feature) <m_next_regnum>: New field. | |
8956 | ||
25aa13e5 YQ |
8957 | 2017-07-26 Yao Qi <yao.qi@linaro.org> |
8958 | ||
8959 | * features/Makefile (CFILES): Rename with TDESC_CFILES. | |
8960 | (FEATURE_XMLFILES): New. | |
8961 | (FEATURE_CFILES): New. | |
8962 | New rules. | |
8963 | (clean-cfiles): Remove generated c files. | |
8964 | * features/i386/32bit-avx.c: Generated. | |
8965 | * features/i386/32bit-avx512.c: Generated. | |
8966 | * features/i386/32bit-core.c: Generated. | |
8967 | * features/i386/32bit-linux.c: Generated. | |
8968 | * features/i386/32bit-mpx.c: Generated. | |
8969 | * features/i386/32bit-pkeys.c: Generated. | |
8970 | * features/i386/32bit-sse.c: Generated. | |
8971 | * target-descriptions.c: Include algorithm. | |
8972 | (tdesc_element_visitor): Add method visit_end. | |
8973 | (print_c_tdesc): Implement visit_end. | |
8974 | (print_c_tdesc:: m_filename_after_features): Move it to | |
8975 | protected. | |
8976 | (print_c_feature): New class. | |
8977 | (maint_print_c_tdesc_cmd): Use print_c_feature if XML file | |
8978 | name starts with "i386/32bit-". | |
8979 | ||
6eb1e6a8 YQ |
8980 | 2017-07-26 Yao Qi <yao.qi@linaro.org> |
8981 | ||
8982 | * target-descriptions.c (tdesc_element_visitor): New class. | |
8983 | (tdesc_element): New class. | |
8984 | (tdesc_reg): Inherit from tdesc_element. | |
8985 | (tdesc_reg::accept): New function. | |
8986 | (tdesc_type): Inherit from tdesc_element. | |
8987 | (tdesc_type::accept): New function. | |
8988 | (tdesc_feature): Inherit from tdesc_element. | |
8989 | (tdesc_feature::accept): New function. | |
8990 | (target_desc): Inherit from tdesc_element. | |
8991 | (target_desc::target_desc): New. | |
8992 | (target_desc::~target_desc): New. | |
8993 | (target_desc::accept): New. | |
8994 | (allocate_target_description): Use new. | |
8995 | (free_target_description): Use delete. | |
8996 | (print_c_tdesc): New class. | |
8997 | (maint_print_c_tdesc_cmd): Adjust. | |
8998 | ||
8999 | * features/aarch64.c: Re-generated. | |
9000 | * features/arc-arcompact.c: Re-generated. | |
9001 | * features/arc-v2.c: Re-generated. | |
9002 | * features/arm/arm-with-iwmmxt.c: Re-generated. | |
9003 | * features/arm/arm-with-m.c: Re-generated. | |
9004 | * features/arm/arm-with-m-fpa-layout.c: Re-generated. | |
9005 | * features/arm/arm-with-m-vfp-d16.c: Re-generated. | |
9006 | * features/arm/arm-with-neon.c: Re-generated. | |
9007 | * features/arm/arm-with-vfpv2.c: Re-generated. | |
9008 | * features/arm/arm-with-vfpv3.c: Re-generated. | |
9009 | * features/i386/amd64-avx-avx512.c: Re-generated. | |
9010 | * features/i386/amd64-avx-avx512-linux.c: Re-generated. | |
9011 | * features/i386/amd64-avx.c: Re-generated. | |
9012 | * features/i386/amd64-avx-linux.c: Re-generated. | |
9013 | * features/i386/amd64-avx-mpx-avx512-pku.c: Re-generated. | |
9014 | * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated. | |
9015 | * features/i386/amd64-avx-mpx.c: Re-generated. | |
9016 | * features/i386/amd64-avx-mpx-linux.c: Re-generated. | |
9017 | * features/i386/amd64.c: Re-generated. | |
9018 | * features/i386/amd64-linux.c: Re-generated. | |
9019 | * features/i386/amd64-mpx.c: Re-generated. | |
9020 | * features/i386/amd64-mpx-linux.c: Re-generated. | |
9021 | * features/i386/i386-avx-avx512.c: Re-generated. | |
9022 | * features/i386/i386-avx-avx512-linux.c: Re-generated. | |
9023 | * features/i386/i386-avx.c: Re-generated. | |
9024 | * features/i386/i386-avx-linux.c: Re-generated. | |
9025 | * features/i386/i386-avx-mpx-avx512-pku.c: Re-generated. | |
9026 | * features/i386/i386-avx-mpx-avx512-pku-linux.c: Re-generated. | |
9027 | * features/i386/i386-avx-mpx.c: Re-generated. | |
9028 | * features/i386/i386-avx-mpx-linux.c: Re-generated. | |
9029 | * features/i386/i386.c: Re-generated. | |
9030 | * features/i386/i386-linux.c: Re-generated. | |
9031 | * features/i386/i386-mmx.c: Re-generated. | |
9032 | * features/i386/i386-mmx-linux.c: Re-generated. | |
9033 | * features/i386/i386-mpx.c: Re-generated. | |
9034 | * features/i386/i386-mpx-linux.c: Re-generated. | |
9035 | * features/i386/x32-avx-avx512.c: Re-generated. | |
9036 | * features/i386/x32-avx-avx512-linux.c: Re-generated. | |
9037 | * features/i386/x32-avx.c: Re-generated. | |
9038 | * features/i386/x32-avx-linux.c: Re-generated. | |
9039 | * features/i386/x32.c: Re-generated. | |
9040 | * features/i386/x32-linux.c: Re-generated. | |
9041 | * features/microblaze.c: Re-generated. | |
9042 | * features/microblaze-with-stack-protect.c: Re-generated. | |
9043 | * features/mips64-dsp-linux.c: Re-generated. | |
9044 | * features/mips64-linux.c: Re-generated. | |
9045 | * features/mips-dsp-linux.c: Re-generated. | |
9046 | * features/mips-linux.c: Re-generated. | |
9047 | * features/nds32.c: Re-generated. | |
9048 | * features/nios2.c: Re-generated. | |
9049 | * features/nios2-linux.c: Re-generated. | |
9050 | * features/rs6000/powerpc-32.c: Re-generated. | |
9051 | * features/rs6000/powerpc-32l.c: Re-generated. | |
9052 | * features/rs6000/powerpc-403.c: Re-generated. | |
9053 | * features/rs6000/powerpc-403gc.c : Re-generated. | |
9054 | * features/rs6000/powerpc-405.c: Re-generated. | |
9055 | * features/rs6000/powerpc-505.c: Re-generated. | |
9056 | * features/rs6000/powerpc-601.c: Re-generated. | |
9057 | * features/rs6000/powerpc-602.c: Re-generated. | |
9058 | * features/rs6000/powerpc-603.c: Re-generated. | |
9059 | * features/rs6000/powerpc-604.c: Re-generated. | |
9060 | * features/rs6000/powerpc-64.c: Re-generated. | |
9061 | * features/rs6000/powerpc-64l.c: Re-generated. | |
9062 | * features/rs6000/powerpc-7400.c: Re-generated. | |
9063 | * features/rs6000/powerpc-750.c: Re-generated. | |
9064 | * features/rs6000/powerpc-860.c: Re-generated. | |
9065 | * features/rs6000/powerpc-altivec32.c: Re-generated. | |
9066 | * features/rs6000/powerpc-altivec32l.c: Re-generated. | |
9067 | * features/rs6000/powerpc-altivec64.c: Re-generated. | |
9068 | * features/rs6000/powerpc-altivec64l.c: Re-generated. | |
9069 | * features/rs6000/powerpc-cell32l.c: Re-generated. | |
9070 | * features/rs6000/powerpc-cell64l.c: Re-generated. | |
9071 | * features/rs6000/powerpc-e500.c: Re-generated. | |
9072 | * features/rs6000/powerpc-e500l.c: Re-generated. | |
9073 | * features/rs6000/powerpc-isa205-32l.c: Re-generated. | |
9074 | * features/rs6000/powerpc-isa205-64l.c: Re-generated. | |
9075 | * features/rs6000/powerpc-isa205-altivec32l.c: Re-generated. | |
9076 | * features/rs6000/powerpc-isa205-altivec64l.c: Re-generated. | |
9077 | * features/rs6000/powerpc-isa205-vsx32l.c: Re-generated. | |
9078 | * features/rs6000/powerpc-isa205-vsx64l.c: Re-generated. | |
9079 | * features/rs6000/powerpc-vsx32.c: Re-generated. | |
9080 | * features/rs6000/powerpc-vsx32l.c: Re-generated. | |
9081 | * features/rs6000/powerpc-vsx64.c: Re-generated. | |
9082 | * features/rs6000/powerpc-vsx64l.c: Re-generated. | |
9083 | * features/rs6000/rs6000.c: Re-generated. | |
9084 | * features/s390-linux32.c: Re-generated. | |
9085 | * features/s390-linux32v1.c: Re-generated. | |
9086 | * features/s390-linux32v2.c: Re-generated. | |
9087 | * features/s390-linux64.c: Re-generated. | |
9088 | * features/s390-linux64v1.c: Re-generated. | |
9089 | * features/s390-linux64v2.c: Re-generated. | |
9090 | * features/s390-te-linux64.c: Re-generated. | |
9091 | * features/s390-tevx-linux64.c: Re-generated. | |
9092 | * features/s390-vx-linux64.c: Re-generated. | |
9093 | * features/s390x-linux64.c: Re-generated. | |
9094 | * features/s390x-linux64v1.c: Re-generated. | |
9095 | * features/s390x-linux64v2.c: Re-generated. | |
9096 | * features/s390x-te-linux64.c: Re-generated. | |
9097 | * features/s390x-tevx-linux64.c: Re-generated. | |
9098 | * features/s390x-vx-linux64.c: Re-generated. | |
9099 | * features/sparc/sparc32-solaris.c: Re-generated. | |
9100 | * features/sparc/sparc64-solaris.c: Re-generated. | |
9101 | * features/tic6x-c62x.c: Re-generated. | |
9102 | * features/tic6x-c62x-linux.c: Re-generated. | |
9103 | * features/tic6x-c64x.c: Re-generated. | |
9104 | * features/tic6x-c64x-linux.c: Re-generated. | |
9105 | * features/tic6x-c64xp.c: Re-generated. | |
9106 | * features/tic6x-c64xp-linux.c: Re-generated. | |
9107 | ||
35b4818d YQ |
9108 | 2017-07-26 Yao Qi <yao.qi@linaro.org> |
9109 | ||
9110 | * i386-linux-tdep.c (i386_linux_read_description): New function. | |
9111 | (i386_linux_core_read_description): Call | |
9112 | i386_linux_read_description. | |
9113 | * i386-linux-tdep.h (i386_linux_read_description): Declare. | |
9114 | (tdesc_i386_linux, tdesc_i386_mmx_linux): Remove declarations. | |
9115 | (tdesc_i386_avx_linux, tdesc_i386_mpx_linux): Likewise | |
9116 | (tdesc_i386_avx_mpx_linux, tdesc_i386_avx_avx512_linux): Likewise. | |
9117 | (tdesc_i386_avx_mpx_avx512_pku_linux): Likewise. | |
9118 | * x86-linux-nat.c (x86_linux_read_description): Call | |
9119 | i386_linux_read_description. | |
9120 | ||
8e2141c6 YQ |
9121 | 2017-07-26 Yao Qi <yao.qi@linaro.org> |
9122 | ||
9123 | * NEWS: Mention it. | |
9124 | * features/Makefile (%.c: %.xml): Pass the xml file name to | |
9125 | command "maint print c-tdesc". | |
9126 | * target-descriptions.c (maint_print_c_tdesc_cmd): Get file | |
9127 | name from 'arg'. | |
9128 | ||
b468ff4c YQ |
9129 | 2017-07-26 Yao Qi <yao.qi@linaro.org> |
9130 | ||
9131 | * target-descriptions.c (target_desc): Add ctor and dtor. Do | |
9132 | in-class initialization. | |
9133 | (tdesc_create_feature): Call new instead of XCNEW. | |
9134 | (free_target_description): Ue delete. | |
9135 | ||
b9c0e1b4 JB |
9136 | 2017-07-25 John Baldwin <jhb@FreeBSD.org> |
9137 | ||
9138 | * configure.nat: Add "-lkvm" for NetBSD/sparc64 and fix typo. | |
9139 | ||
a04b5337 YQ |
9140 | 2017-07-25 Yao Qi <yao.qi@linaro.org> |
9141 | ||
9142 | * amd64-tdep.c (amd64_init_abi): Make argument default_tdesc | |
9143 | constant. | |
9144 | (amd64_x32_init_abi): Likewise. | |
9145 | * amd64-tdep.h (amd64_init_abi): Update declaration. | |
9146 | (amd64_x32_init_abi): Likewise. | |
9147 | ||
02ad7fc2 YQ |
9148 | 2017-07-25 Yao Qi <yao.qi@linaro.org> |
9149 | ||
9150 | PR tdep/21717 | |
9151 | * arm-linux-nat.c (arm_linux_fetch_inferior_registers): Update | |
9152 | condition for FPSCR. | |
9153 | (arm_linux_store_inferior_registers): Likewise. | |
9154 | ||
b6f48cb0 TT |
9155 | 2017-07-22 Tom Tromey <tom@tromey.com> |
9156 | ||
9157 | * break-catch-syscall.c (struct catch_syscall_inferior_data) | |
9158 | <syscalls_counts>: Now a std::vector. | |
9159 | (get_catch_syscall_inferior_data): Use "new". | |
9160 | (catch_syscall_inferior_data_cleanup): Use "delete". | |
9161 | (insert_catch_syscall, remove_catch_syscall) | |
9162 | (clear_syscall_counts): Update. | |
9163 | ||
e12c9b7a TT |
9164 | 2017-07-22 Tom Tromey <tom@tromey.com> |
9165 | ||
9166 | * break-catch-syscall.c (syscall_catchpoint) | |
9167 | <syscalls_to_be_caught>: Now a std::vector<int> | |
9168 | (~syscall_catchpoint): Remove. | |
9169 | (insert_catch_syscall, remove_catch_syscall) | |
9170 | (breakpoint_hit_catch_syscall, print_one_catch_syscall) | |
9171 | (print_mention_catch_syscall, print_recreate_catch_syscall): | |
9172 | Update. | |
9173 | (create_syscall_event_catchpoint): Change type of "filter" | |
9174 | parameter. | |
9175 | (catch_syscall_split_args): Return a std::vector. | |
9176 | (catch_syscall_command_1, catching_syscall_number_1): Update. | |
9177 | ||
4fa8aeac TT |
9178 | 2017-07-22 Tom Tromey <tom@tromey.com> |
9179 | ||
9180 | * break-catch-throw.c (struct exception_catchpoint) | |
9181 | <exception_rx>: Now a std::string. | |
9182 | (~exception_catchpoint): Remove. | |
9183 | (print_one_detail_exception_catchpoint): Update. | |
9184 | (handle_gnu_v3_exceptions): Change type of except_rx. | |
9185 | (extract_exception_regexp): Return a std::string. | |
9186 | (catch_exception_command_1): Update. | |
9187 | ||
f746a154 TT |
9188 | 2017-07-22 Tom Tromey <tom@tromey.com> |
9189 | ||
9190 | * break-catch-sig.c (gdb_signal_type): Remove typedef. | |
9191 | (struct signal_catchpoint) <signals_to_be_caught>: Now a | |
9192 | std::vector. | |
9193 | <catch_all>: Now a bool. | |
9194 | (~signal_catchpoint): Remove. | |
9195 | (signal_catchpoint_insert_location) | |
9196 | (signal_catchpoint_remove_location) | |
9197 | (signal_catchpoint_breakpoint_hit, signal_catchpoint_print_one) | |
9198 | (signal_catchpoint_print_mention) | |
9199 | (signal_catchpoint_print_recreate) | |
9200 | (signal_catchpoint_explains_signal): Update. | |
9201 | (create_signal_catchpoint): Change type of "filter" and | |
9202 | "catch_all". | |
9203 | (catch_signal_split_args): Return a std::vector. Change type of | |
9204 | "catch_all". | |
9205 | (catch_signal_command): Update. | |
9206 | ||
47e77640 PA |
9207 | 2017-07-20 Pedro Alves <palves@redhat.com> |
9208 | ||
9209 | * ada-lang.c (ada_language_defn): Make extern. | |
9210 | (_initialize_ada_language): Remove add_language call. | |
9211 | * c-lang.c (c_language_defn, cplus_language_defn) | |
9212 | (asm_language_defn, minimal_language_defn): Make extern. | |
9213 | (_initialize_c_language): Delete. | |
9214 | * completer.c (compare_cstrings): Delete, moved to utils.h. | |
9215 | * d-lang.c (d_language_defn): Make extern. | |
9216 | (_initialize_d_language): Remove add_language calls. | |
9217 | * defs.h (enum language): Add comment. | |
9218 | * f-lang.c (f_language_defn): Make extern. | |
9219 | (_initialize_f_language): Remove add_language call. | |
9220 | * go-lang.c (go_language_defn): Make extern. | |
9221 | (_initialize_go_language): Remove add_language call. | |
9222 | * language.c: Include <algorithm>. | |
9223 | (languages): Redefine as const array. | |
9224 | (languages_size, languages_allocsize, DEFAULT_ALLOCSIZE): Delete. | |
9225 | (set_language_command): Handle "local". Use for-range loop. | |
9226 | (set_language): Remove loop. | |
9227 | (language_enum): Rewrite. | |
9228 | (language_def, language_str): Remove loops. | |
9229 | (add_language): Delete. | |
9230 | (add_set_language_command): New, based on add_languages. | |
9231 | (skip_language_trampoline): Adjust. | |
9232 | (local_language_defn): Delete. | |
9233 | (language_gdbarch_post_init): Adjust. | |
9234 | (_initialize_language): Remove add_language calls. Call | |
9235 | add_set_language_command. | |
9236 | * language.h (add_language): Delete. | |
9237 | (auto_language_defn) | |
9238 | (unknown_language_defn, minimal_language_defn, ada_language_defn) | |
9239 | (asm_language_defn, c_language_defn, cplus_language_defn) | |
9240 | (d_language_defn, f_language_defn, go_language_defn) | |
9241 | (m2_language_defn, objc_language_defn, opencl_language_defn) | |
9242 | (pascal_language_defn, rust_language_defn): Declare. | |
9243 | * m2-lang.c (m2_language_defn): Make extern. | |
9244 | (_initialize_m2_language): Remove add_language call. | |
9245 | * objc-lang.c (objc_language_defn): Make extern. | |
9246 | (_initialize_objc_language): Remove add_language call. | |
9247 | * opencl-lang.c (opencl_language_defn): Make extern. | |
9248 | (_initialize_opencl_language): Remove add_language call. | |
9249 | * p-lang.c (pascal_language_defn): Make extern. | |
9250 | (_initialize_pascal_language): Delete. | |
9251 | * rust-lang.c (rust_language_defn): Make extern. | |
9252 | (_initialize_rust_language): Delete. | |
9253 | * utils.h (compare_cstrings): New static inline function. | |
9254 | ||
edb0c9cb PA |
9255 | 2017-07-20 Pedro Alves <palves@redhat.com> |
9256 | ||
9257 | * ada-lang.c (ada_to_fixed_type_1): Adjust. | |
9258 | (get_var_value): Constify parameters. | |
9259 | (get_int_var_value): Change prototype. | |
9260 | (to_fixed_range_type): Adjust. | |
9261 | * ada-lang.h (get_int_var_value): Change prototype. | |
9262 | ||
a778f165 PA |
9263 | 2017-07-20 Pedro Alves <palves@redhat.com> |
9264 | ||
9265 | * dwarf2read.c (dw2_lookup_symbol): Use | |
9266 | SYMBOL_MATCHES_SEARCH_NAME. | |
9267 | * psymtab.c (psym_lookup_symbol): Use SYMBOL_MATCHES_SEARCH_NAME. | |
9268 | ||
42edd901 PA |
9269 | 2017-07-20 Pedro Alves <palves@redhat.com> |
9270 | ||
9271 | * block.c (block_iter_name_step, block_iter_name_first) | |
9272 | (block_iter_name_next): Delete. | |
9273 | (block_lookup_symbol_primary): Adjust to use | |
9274 | dict_iter_match_first/dict_iter_match_next. | |
9275 | * block.h (block_iter_name_first, block_iter_name_next): Delete | |
9276 | declarations. | |
9277 | (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use | |
9278 | dict_iter_match_first/dict_iter_match_next. | |
9279 | ||
cf325299 PA |
9280 | 2017-07-20 Pedro Alves <palves@redhat.com> |
9281 | ||
9282 | * cp-support.c (cp_find_first_component_aux): Add missing case for | |
9283 | end of string. | |
9284 | ||
c5ed0576 DB |
9285 | 2017-07-18 David Blaikie <dblaikie@gmail.com> |
9286 | ||
9287 | * dwarf2read.c (create_cus_hash_table): Re-add lost initialization | |
9288 | of dwo_cu's dwo_file. | |
9289 | ||
27841e76 YQ |
9290 | 2017-07-18 Yao Qi <yao.qi@linaro.org> |
9291 | ||
9292 | * remote.c (store_registers_using_G): Remove one line comment. | |
9293 | ||
cfb7e58b YQ |
9294 | 2017-07-18 Yao Qi <yao.qi@linaro.org> |
9295 | ||
9296 | * regcache.c (regcache_cpy): Simplify it. | |
9297 | (regcache::cpy_no_passthrough): Remove it. | |
9298 | * regcache.h (cpy_no_passthrough): Remove it. | |
9299 | (regcache_dup, regcache_cpy): Update comments. | |
9300 | ||
386535dd PA |
9301 | 2017-07-18 Pedro Alves <palves@redhat.com> |
9302 | ||
9303 | * remote-sim.c (sim_command_completer): Adjust to work with a | |
9304 | completion_tracker instead of a VEC. | |
9305 | ||
c45ec17c PA |
9306 | 2017-07-17 Pedro Alves <palves@redhat.com> |
9307 | ||
9308 | * completer.c (complete_source_filenames): New function. | |
9309 | (complete_address_and_linespec_locations): New function. | |
9310 | (location_completer): Use complete_address_and_linespec_locations. | |
9311 | (completion_tracker::build_completion_result): Honor the tracker's | |
9312 | request to suppress append. | |
9313 | * completer.h (completion_tracker::suppress_append_ws) | |
9314 | (completion_tracker::set_suppress_append_ws): New methods. | |
9315 | (completion_tracker::m_suppress_append_ws): New field. | |
9316 | (complete_source_filenames): New declaration. | |
9317 | * linespec.c (linespec_complete_what): New. | |
9318 | (struct ls_parser) <complete_what, completion_word, | |
9319 | completion_quote_char, completion_quote_end, completion_tracker>: | |
9320 | New fields. | |
9321 | (string_find_incomplete_keyword_at_end): New. | |
9322 | (linespec_lexer_lex_string): Record quote char. If in completion | |
9323 | mode, don't throw. | |
9324 | (linespec_lexer_consume_token): Advance the completion word point. | |
9325 | (linespec_lexer_peek_token): Save/restore completion info. | |
9326 | (save_stream_and_consume_token): New. | |
9327 | (set_completion_after_number): New. | |
9328 | (linespec_parse_basic): Set what to complete next depending on | |
9329 | token. Handle function and label completions specially. | |
9330 | (parse_linespec): Disable objc shortcut in completion mode. Set | |
9331 | what to complete next depending on token type. Skip keyword if in | |
9332 | completion mode. | |
9333 | (complete_linespec_component, linespec_complete): New. | |
9334 | * linespec.h (linespec_complete): Declare. | |
9335 | ||
be966d42 PA |
9336 | 2017-07-17 Pedro Alves <palves@redhat.com> |
9337 | ||
9338 | * linespec.c (linespec_lexer_lex_string, find_toplevel_char): | |
9339 | Handle 'operator<' / 'operator<<'. | |
9340 | ||
a2459270 PA |
9341 | 2017-07-17 Pedro Alves <palves@redhat.com> |
9342 | ||
9343 | * completer.c (collect_explicit_location_matches): Handle | |
9344 | MATCH_LABEL. | |
9345 | (convert_explicit_location_to_linespec): New, factored out from | |
9346 | ... | |
9347 | (convert_explicit_location_to_sals): ... this. | |
9348 | (complete_label): New. | |
9349 | (linespec_complete_label, find_label_symbols_in_block): New. | |
9350 | (find_label_symbols): Add completion_mode parameter and adjust to | |
9351 | call find_label_symbols_in_block. | |
9352 | * linespec.h (linespec_complete_label): Declare. | |
9353 | ||
c6756f62 PA |
9354 | 2017-07-17 Pedro Alves <palves@redhat.com> |
9355 | ||
9356 | * ada-lang.c (ada_collect_symbol_completion_matches): Add | |
9357 | complete_symbol_mode parameter. | |
9358 | * cli/cli-cmds.c (complete_command): Get the completion result out | |
9359 | of the handle_brkchars tracker if used a custom word point. | |
9360 | * completer.c: Include "linespec.h". | |
9361 | (enum explicit_location_match_type) <MATCH_LINE>: New enumerator. | |
9362 | (advance_to_expression_complete_word_point): New. | |
9363 | (completion_tracker::completes_to_completion_word): New. | |
9364 | (complete_files_symbols): Pass down | |
9365 | complete_symbol_mode::EXPRESSION. | |
9366 | (explicit_options, probe_options): New. | |
9367 | (collect_explicit_location_matches): Complete on the | |
9368 | explictit_loc->foo instead of word. Use | |
9369 | linespec_complete_function. Handle MATCH_LINE. Handle offering | |
9370 | keyword and options completions. | |
9371 | (backup_text_ptr): Delete. | |
9372 | (skip_keyword): New. | |
9373 | (complete_explicit_location): Remove 'word' parameter. Add | |
9374 | language, quoted_arg_start and quoted_arg_end parameters. | |
9375 | Rewrite, parsing left to right. | |
9376 | (location_completer): Rewrite. | |
9377 | (location_completer_handle_brkchars): New function. | |
9378 | (symbol_completer): Pass down complete_symbol_mode::EXPRESSION. | |
9379 | (enum complete_line_internal_reason): Adjust comments. | |
9380 | (completion_tracker::discard_completions): New. | |
9381 | (completer_handle_brkchars_func_for_completer): Handle | |
9382 | location_completer. | |
9383 | (gdb_custom_word_point_brkchars) | |
9384 | (gdb_org_rl_basic_quote_characters): New. | |
9385 | (gdb_completion_word_break_characters_throw) | |
9386 | (completion_find_completion_word): Handle trackers that use a | |
9387 | custom word point. | |
9388 | (completion_tracker::advance_custom_word_point_by): New. | |
9389 | (completion_tracker::build_completion_result): Don't rely on | |
9390 | readline appending the quote char. | |
9391 | (gdb_rl_attempted_completion_function_throw): Handle trackers that | |
9392 | use a custom word point. | |
9393 | (gdb_rl_attempted_completion_function): Restore | |
9394 | rl_basic_quote_characters. | |
9395 | * completer.h (class completion_tracker): Extend intro comment. | |
9396 | (completion_tracker::set_quote_char) | |
9397 | (completion_tracker::quote_char) | |
9398 | (completion_tracker::set_use_custom_word_point) | |
9399 | (completion_tracker::use_custom_word_point) | |
9400 | (completion_tracker::custom_word_point) | |
9401 | (completion_tracker::set_custom_word_point) | |
9402 | (completion_tracker::advance_custom_word_point_by) | |
9403 | (completion_tracker::completes_to_completion_word) | |
9404 | (completion_tracker::discard_completions): New methods. | |
9405 | (completion_tracker::m_quote_char) | |
9406 | (completion_tracker::m_use_custom_word_point) | |
9407 | (completion_tracker::m_custom_word_point): New fields. | |
9408 | (advance_to_expression_complete_word_point): Declare. | |
9409 | * f-lang.c (f_collect_symbol_completion_matches): Add | |
9410 | complete_symbol_mode parameter. | |
9411 | * language.h (struct language_defn) | |
9412 | <la_collect_symbol_completion_matches>: Add complete_symbol_mode | |
9413 | parameter. | |
9414 | * linespec.c (linespec_keywords): Add NULL terminator. Make extern. | |
9415 | (linespec_complete_function): New function. | |
9416 | (linespec_lexer_lex_keyword): Adjust. | |
9417 | * linespec.h (linespec_keywords, linespec_complete_function): New | |
9418 | declarations. | |
9419 | * location.c (find_end_quote): New function. | |
9420 | (explicit_location_lex_one): Add explicit_completion_info | |
9421 | parameter. Save quoting info. Don't throw if being called for | |
9422 | completion. Don't handle Ada operators here. | |
9423 | (is_cp_operator, skip_op_false_positives, first_of) | |
9424 | (explicit_location_lex_one_function): New function. | |
9425 | (string_to_explicit_location): Replace 'dont_throw' parameter with | |
9426 | an explicit_completion_info pointer parameter. Handle it. Don't | |
9427 | use explicit_location_lex_one to lex function names. Use | |
9428 | explicit_location_lex_one_function instead. | |
9429 | * location.h (struct explicit_completion_info): New. | |
9430 | (string_to_explicit_location): Replace 'dont_throw' parameter with | |
9431 | an explicit_completion_info pointer parameter. | |
9432 | * symtab.c (default_collect_symbol_completion_matches_break_on): | |
9433 | Add complete_symbol_mode parameter. Handle LINESPEC mode. | |
9434 | (default_collect_symbol_completion_matches) | |
9435 | (collect_symbol_completion_matches): Add complete_symbol_mode | |
9436 | parameter. | |
9437 | (collect_symbol_completion_matches_type): Pass down | |
9438 | complete_symbol_mode::EXPRESSION. | |
9439 | (collect_file_symbol_completion_matches): Add complete_symbol_mode | |
9440 | parameter. Handle LINESPEC mode. | |
9441 | * symtab.h (complete_symbol_mode): New. | |
9442 | (default_collect_symbol_completion_matches_break_on) | |
9443 | (default_collect_symbol_completion_matches) | |
9444 | (collect_symbol_completion_matches) | |
9445 | (collect_file_symbol_completion_matches): Add complete_symbol_mode | |
9446 | parameter. | |
9447 | ||
1d550c82 PA |
9448 | 2017-07-17 Pedro Alves <palves@redhat.com> |
9449 | ||
9450 | * utils.c (enum class strncmp_iw_mode): New. | |
9451 | (strcmp_iw): Rename to ... | |
9452 | (strncmp_iw_with_mode): ... this. Add string2_len and mode | |
9453 | parameters. Handle them. | |
9454 | (strncmp_iw): New. | |
9455 | (strcmp_iw): Reimplement as wrapper around strncmp_iw_with_mode. | |
9456 | * utils.h (strncmp_iw): Declare. | |
9457 | (strcmp_iw): Move describing comments here. | |
9458 | ||
8090b426 PA |
9459 | 2017-07-17 Pedro Alves <palves@redhat.com> |
9460 | ||
9461 | * c-exp.y (operator_stoken): Use CP_OPERATOR_LEN and | |
9462 | CP_OPERATOR_STR. | |
9463 | * c-typeprint.c (is_type_conversion_operator): Use | |
9464 | CP_OPERATOR_STR. | |
9465 | * cp-support.c (LENGTH_OF_OPERATOR): Delete. | |
9466 | (cp_find_first_component_aux): Use CP_OPERATOR_STR and | |
9467 | CP_OPERATOR_LEN. | |
9468 | * cp-support.h (CP_OPERATOR_STR, CP_OPERATOR_LEN): New. | |
9469 | * gnu-v2-abi.c (gnuv2_is_operator_name): Use CP_OPERATOR_STR. | |
9470 | * gnu-v3-abi.c (gnuv3_is_operator_name): Use CP_OPERATOR_STR. | |
9471 | * linespec.c (linespec_lexer_lex_string): Use CP_OPERATOR_LEN and | |
9472 | CP_OPERATOR_STR. | |
9473 | * location.c: Include "cp-support.h". | |
9474 | (explicit_location_lex_one): Use CP_OPERATOR_LEN and | |
9475 | CP_OPERATOR_STR. | |
9476 | * symtab.c (operator_chars): Use CP_OPERATOR_STR and | |
9477 | CP_OPERATOR_LEN. | |
9478 | ||
6a2c1b87 PA |
9479 | 2017-07-17 Pedro Alves <palves@redhat.com> |
9480 | ||
9481 | * cli/cli-cmds.c (complete_command): Use a completion tracker | |
9482 | along with completion_find_completion_word for handle_brkchars | |
9483 | phase. | |
9484 | * completer.c (RL_QF_SINGLE_QUOTE, RL_QF_DOUBLE_QUOTE) | |
9485 | (RL_QF_BACKSLASH, RL_QF_OTHER_QUOTE): New. | |
9486 | (struct gdb_rl_completion_word_info): New. | |
9487 | (gdb_rl_find_completion_word): New. | |
9488 | (completion_find_completion_word): New. | |
9489 | * completer.h (completion_find_completion_word): Declare. | |
9490 | ||
eb3ff9a5 PA |
9491 | 2017-07-17 Pedro Alves <palves@redhat.com> |
9492 | ||
9493 | * ada-lang.c (symbol_completion_match): Adjust comments. | |
9494 | (symbol_completion_add): Replace vector parameter with | |
9495 | completion_tracker parameter. Use it. | |
9496 | (ada_make_symbol_completion_list): Rename to... | |
9497 | (ada_collect_symbol_completion_matches): ... this. Add | |
9498 | completion_tracker parameter and use it. | |
9499 | (ada_language_defn): Adjust. | |
9500 | * break-catch-syscall.c (catch_syscall_completer): Adjust | |
9501 | prototype and work with completion_tracker instead of VEC. | |
9502 | * breakpoint.c (condition_completer): Adjust prototype and work | |
9503 | with completion_tracker instead of VEC. | |
9504 | * c-lang.c (c_language_defn, cplus_language_defn) | |
9505 | (asm_language_defn, minimal_language_defn): Adjust to renames. | |
9506 | * cli/cli-cmds.c (complete_command): Rework using | |
9507 | completion_tracker. Catch exceptions when completing. | |
9508 | * cli/cli-decode.c (integer_unlimited_completer) | |
9509 | (complete_on_cmdlist, complete_on_enum): Adjust prototype and work | |
9510 | with completion_tracker instead of VEC. | |
9511 | * command.h (struct completion_tracker): Forward declare. | |
9512 | (completer_ftype, completer_handle_brkchars_ftype): Change | |
9513 | types. | |
9514 | (complete_on_cmdlist, complete_on_enum): Adjust. | |
9515 | * completer.c: Include <algorithm>. | |
9516 | (struct gdb_completer_state): New. | |
9517 | (current_completion): New global. | |
9518 | (readline_line_completion_function): Delete. | |
9519 | (noop_completer, filename_completer) | |
9520 | (filename_completer_handle_brkchars, complete_files_symbols) | |
9521 | (linespec_location_completer): Adjust to work with a | |
9522 | completion_tracker instead of a VEC. | |
9523 | (string_or_empty): New. | |
9524 | (collect_explicit_location_matches): Adjust to work with a | |
9525 | completion_tracker instead of a VEC. | |
9526 | (explicit_location_completer): Rename to ... | |
9527 | (complete_explicit_location): ... this and adjust to work with a | |
9528 | completion_tracker instead of a VEC. | |
9529 | (location_completer): Adjust to work with a completion_tracker | |
9530 | instead of a VEC. | |
9531 | (add_struct_fields): Adjust to work with a completion_list instead | |
9532 | of VEC. | |
9533 | (expression_completer): Rename to ... | |
9534 | (complete_expression): ... this and adjust to work with a | |
9535 | completion_tracker instead of a VEC. Use complete_files_symbols. | |
9536 | (expression_completer): Reimplement on top of complete_expression. | |
9537 | (symbol_completer): Adjust to work with a completion_tracker | |
9538 | instead of a VEC. | |
9539 | (enum complete_line_internal_reason): Add describing comments. | |
9540 | (complete_line_internal_normal_command): Adjust to work with a | |
9541 | completion_tracker instead of a VEC. | |
9542 | (complete_line_internal): Rename to ... | |
9543 | (complete_line_internal_1): ... this and adjust to work with a | |
9544 | completion_tracker instead of a VEC. Assert TEXT is NULL in the | |
9545 | handle_brkchars phase. | |
9546 | (new_completion_tracker): Delete. | |
9547 | (complete_line_internal): Reimplement as TRY/CATCH wrapper around | |
9548 | complete_line_internal_1. | |
9549 | (free_completion_tracker): Delete. | |
9550 | (INITIAL_COMPLETION_HTAB_SIZE): New. | |
9551 | (completion_tracker::completion_tracker) | |
9552 | (completion_tracker::~completion_tracker): New. | |
9553 | (maybe_add_completion): Delete. | |
9554 | (completion_tracker::maybe_add_completion) | |
9555 | (completion_tracker::add_completion) | |
9556 | (completion_tracker::add_completions): New. | |
9557 | (throw_max_completions_reached_error): Delete. | |
9558 | (complete_line): Adjust to work with a completion_tracker instead | |
9559 | of a VEC. Don't create a completion_tracker_t or check for max | |
9560 | completions here. | |
9561 | (command_completer, command_completer_handle_brkchars) | |
9562 | (signal_completer, reg_or_group_completer_1) | |
9563 | (reg_or_group_completer, default_completer_handle_brkchars): | |
9564 | Adjust to work with a completion_tracker. | |
9565 | (gdb_completion_word_break_characters_throw): New. | |
9566 | (gdb_completion_word_break_characters): Reimplement. | |
9567 | (line_completion_function): Delete. | |
9568 | (completion_tracker::recompute_lowest_common_denominator) | |
9569 | (expand_preserving_ws) | |
9570 | (completion_tracker::build_completion_result) | |
9571 | (completion_result::completion_result) | |
9572 | (completion_result::completion_result) | |
9573 | (completion_result::~completion_result) | |
9574 | (completion_result::completion_result) | |
9575 | (completion_result::release_match_list, compare_cstrings) | |
9576 | (completion_result::sort_match_list) | |
9577 | (completion_result::reset_match_list) | |
9578 | (gdb_rl_attempted_completion_function_throw) | |
9579 | (gdb_rl_attempted_completion_function): New. | |
9580 | * completer.h (completion_list, struct completion_result) | |
9581 | (class completion_tracker): New. | |
9582 | (complete_line): Add completion_tracker parameter. | |
9583 | (readline_line_completion_function): Delete. | |
9584 | (gdb_rl_attempted_completion_function): New. | |
9585 | (noop_completer, filename_completer, expression_completer) | |
9586 | (location_completer, symbol_completer, command_completer) | |
9587 | (signal_completer, reg_or_group_completer): Update prototypes. | |
9588 | (completion_tracker_t, new_completion_tracker) | |
9589 | (make_cleanup_free_completion_tracker): Delete. | |
9590 | (enum maybe_add_completion_enum): Delete. | |
9591 | (maybe_add_completion): Delete. | |
9592 | (throw_max_completions_reached_error): Delete. | |
9593 | * corefile.c (complete_set_gnutarget): Adjust to work with a | |
9594 | completion_tracker instead of a VEC. | |
9595 | * cp-abi.c (cp_abi_completer): Adjust to work with a | |
9596 | completion_tracker instead of a VEC. | |
9597 | * d-lang.c (d_language_defn): Adjust. | |
9598 | * disasm.c (disassembler_options_completer): Adjust to work with a | |
9599 | completion_tracker instead of a VEC. | |
9600 | * f-lang.c (f_make_symbol_completion_list): Rename to ... | |
9601 | (f_collect_symbol_completion_matches): ... this. Adjust to work | |
9602 | with a completion_tracker instead of a VEC. | |
9603 | (f_language_defn): Adjust. | |
9604 | * go-lang.c (go_language_defn): Adjust. | |
9605 | * guile/scm-cmd.c (cmdscm_add_completion, cmdscm_completer): | |
9606 | Adjust to work with a completion_tracker instead of a VEC. | |
9607 | * infrun.c (handle_completer): Likewise. | |
9608 | * interps.c (interpreter_completer): Likewise. | |
9609 | * interps.h (interpreter_completer): Likewise. | |
9610 | * language.c (unknown_language_defn, auto_language_defn) | |
9611 | (local_language_defn): Adjust. | |
9612 | * language.h (language_defn::la_make_symbol_completion_list): | |
9613 | Rename to ... | |
9614 | (language_defn::la_collect_symbol_completion_matches): ... this | |
9615 | and adjust to work with a completion_tracker instead of a VEC. | |
9616 | * m2-lang.c (m2_language_defn): Adjust. | |
9617 | * objc-lang.c (objc_language_defn): Adjust. | |
9618 | * opencl-lang.c (opencl_language_defn): Adjust. | |
9619 | * p-lang.c (pascal_language_defn): Adjust. | |
9620 | * python/py-cmd.c (cmdpy_completer_helper): Handle NULL word. | |
9621 | (cmdpy_completer_handle_brkchars, cmdpy_completer): Adjust to work | |
9622 | with a completion_tracker. | |
9623 | * rust-lang.c (rust_language_defn): Adjust. | |
9624 | * symtab.c (free_completion_list, do_free_completion_list) | |
9625 | (return_val, completion_tracker): Delete. | |
9626 | (completion_list_add_name, completion_list_add_symbol) | |
9627 | (completion_list_add_msymbol, completion_list_objc_symbol) | |
9628 | (completion_list_add_fields, add_symtab_completions): Add | |
9629 | completion_tracker parameter and use it. | |
9630 | (default_make_symbol_completion_list_break_on_1): Rename to... | |
9631 | (default_collect_symbol_completion_matches_break_on): ... this. | |
9632 | Add completion_tracker parameter and use it instead of allocating | |
9633 | a completion tracker here. | |
9634 | (default_make_symbol_completion_list_break_on): Delete old | |
9635 | implementation. | |
9636 | (default_make_symbol_completion_list): Delete. | |
9637 | (default_collect_symbol_completion_matches): New. | |
9638 | (make_symbol_completion_list): Delete. | |
9639 | (collect_symbol_completion_matches): New. | |
9640 | (make_symbol_completion_type): Rename to ... | |
9641 | (collect_symbol_completion_matches_type): ... this. Add | |
9642 | completion_tracker parameter and use it instead of VEC. | |
9643 | (make_file_symbol_completion_list_1): Rename to... | |
9644 | (collect_file_symbol_completion_matches): ... this. Add | |
9645 | completion_tracker parameter and use it instead of VEC. | |
9646 | (make_file_symbol_completion_list): Delete. | |
9647 | (add_filename_to_list): Use completion_list instead of a VEC. | |
9648 | (add_partial_filename_data::list): Now a completion_list. | |
9649 | (make_source_files_completion_list): Work with a completion_list | |
9650 | instead of a VEC. | |
9651 | * symtab.h: Include "completer.h". | |
9652 | (default_make_symbol_completion_list_break_on) | |
9653 | (default_make_symbol_completion_list, make_symbol_completion_list) | |
9654 | (make_symbol_completion_type, make_file_symbol_completion_list) | |
9655 | (make_source_files_completion_list): Delete. | |
9656 | (default_collect_symbol_completion_matches_break_on) | |
9657 | (default_collect_symbol_completion_matches) | |
9658 | (collect_symbol_completion_matches) | |
9659 | (collect_symbol_completion_matches_type) | |
9660 | (collect_file_symbol_completion_matches) | |
9661 | (make_source_files_completion_list): New. | |
9662 | * top.c (init_main): Don't install a rl_completion_entry_function | |
9663 | hook. Install a rl_attempted_completion_function hook instead. | |
9664 | * tui/tui-layout.c (layout_completer): Adjust to work with a | |
9665 | completion_tracker. | |
9666 | * tui/tui-regs.c (tui_reggroup_completer): | |
9667 | * tui/tui-win.c (window_name_completer, focus_completer) | |
9668 | (winheight_completer): Adjust to work with a completion_tracker. | |
9669 | * value.c: Include "completer.h". | |
9670 | (complete_internalvar): Adjust to work with a completion_tracker. | |
9671 | * value.h (complete_internalvar): Likewise. | |
9672 | ||
6e1dbf8c PA |
9673 | 2017-07-17 Pedro Alves <palves@redhat.com> |
9674 | ||
9675 | * cli/cli-decode.c (set_cmd_completer_handle_brkchars): Adjust to | |
9676 | renames. | |
9677 | * cli/cli-decode.h (struct cmd_list_element) <completer>: Move | |
9678 | comments to completer_ftype's declaration. | |
9679 | <completer_handle_brkchars>: Change type to | |
9680 | completer_handle_brkchars_ftype. | |
9681 | * command.h (completer_ftype): Add describing comment and give | |
9682 | names to parameters. | |
9683 | (completer_ftype_void): Rename to ... | |
9684 | (completer_handle_brkchars_ftype) ... this. Add describing comment. | |
9685 | (set_cmd_completer_handle_brkchars): Adjust. | |
9686 | * completer.c (filename_completer_handle_brkchars): New function. | |
9687 | (complete_line_internal_normal_command): New function, factored | |
9688 | out from ... | |
9689 | (complete_line_internal): ... here. | |
9690 | (command_completer_handle_brkchars) | |
9691 | (default_completer_handle_brkchars) | |
9692 | (completer_handle_brkchars_func_for_completer): New functions. | |
9693 | * completer.h (set_gdb_completion_word_break_characters): Delete | |
9694 | declaration. | |
9695 | (completer_handle_brkchars_func_for_completer): New declaration. | |
9696 | * python/py-cmd.c (cmdpy_completer_handle_brkchars): Adjust to use | |
9697 | completer_handle_brkchars_func_for_completer. | |
9698 | ||
78b13106 PA |
9699 | 2017-07-17 Pedro Alves <palves@redhat.com> |
9700 | ||
9701 | * completer.c (symbol_completer): New function, based on | |
9702 | make_symbol_completion_list_fn. | |
9703 | * completer.h (symbol_completer): New declaration. | |
9704 | * guile/scm-cmd.c (cmdscm_completers): Adjust. | |
9705 | * python/py-cmd.c (completers): Adjust. | |
9706 | * symtab.c (make_symbol_completion_list_fn): Delete. | |
9707 | * symtab.h (make_symbol_completion_list_fn): Delete. | |
9708 | * cli/cli-decode.c (add_cmd): Adjust. | |
9709 | ||
bbf2f4df PA |
9710 | 2017-07-17 Pedro Alves <palves@redhat.com> |
9711 | ||
9712 | * Makefile.in (COMMON_OBS): Add filename-seen-cache.o. | |
9713 | * dwarf2read.c: Include "filename-seen-cache.h". | |
9714 | * dwarf2read.c (dwarf2_per_objfile) <filenames_cache>: New field. | |
9715 | (dw2_map_symbol_filenames): Build and use a filenames_seen_cache. | |
9716 | * filename-seen-cache.c: New file. | |
9717 | * filename-seen-cache.h: New file. | |
9718 | * symtab.c: Include "filename-seen-cache.h". | |
9719 | (struct filename_seen_cache, INITIAL_FILENAME_SEEN_CACHE_SIZE) | |
9720 | (create_filename_seen_cache, clear_filename_seen_cache) | |
9721 | (delete_filename_seen_cache, filename_seen): Delete, parts moved | |
9722 | to filename-seen-cache.h/filename-seen-cache.c. | |
9723 | (output_source_filename, sources_info) | |
9724 | (maybe_add_partial_symtab_filename) | |
9725 | (make_source_files_completion_list): Adjust to use | |
9726 | filename_seen_cache. | |
9727 | ||
330cdd98 PA |
9728 | 2017-07-17 Pedro Alves <palves@redhat.com> |
9729 | ||
9730 | * dwarf2read.c (dwarf2_per_objfile): In-class initialize all | |
9731 | fields. | |
9732 | (dwarf2_per_objfile::dwarf2_per_objfile(objfile*, const | |
9733 | dwarf2_debug_sections*)): New. | |
9734 | (dwarf2_per_objfile::dwarf2_per_objfile(const | |
9735 | dwarf2_per_objfile&)): Declare as deleted. | |
9736 | (dwarf2_per_objfile::operator=): Declare as deleted. | |
9737 | (dwarf2_per_objfile::dwarf2_per_objfile) | |
9738 | (dwarf2_per_objfile::~dwarf2_per_objfile) | |
9739 | (dwarf2_per_objfile::free_cached_comp_units): New. | |
9740 | (dwarf2_has_info): dwarf2_per_objfile initialization code moved to | |
9741 | ctor. Call dwarf2_per_objfile's ctor manually. | |
9742 | (dwarf2_locate_sections): Deleted/refactored as ... | |
9743 | (dwarf2_per_objfile::locate_sections): ... this new method. | |
9744 | (free_cached_comp_units): Defer to | |
9745 | dwarf2_per_objfile::free_cached_comp_units. | |
9746 | (dwarf2_free_objfile): Call dwarf2_per_objfile's dtor manually. | |
9747 | ||
8880f2a9 TT |
9748 | 2017-07-14 Tom Tromey <tom@tromey.com> |
9749 | ||
9750 | PR rust/21764: | |
9751 | * rust-exp.y (convert_ast_to_expression): Add "want_type" | |
9752 | parameter. | |
9753 | <UNOP_SIZEOF>: Split into separate case. | |
9754 | <UNOP_VAR_VALUE>: Handle want_type. Add error case. | |
9755 | ||
65547233 TT |
9756 | 2017-07-14 Tom Tromey <tom@tromey.com> |
9757 | ||
9758 | PR rust/21763: | |
9759 | * symtab.c (symbol_matches_domain): Add language_rust to special | |
9760 | case. | |
9761 | * rust-exp.y (convert_ast_to_expression) <OP_VAR_VALUE>: Don't | |
9762 | treat LOC_TYPEDEF symbols as variables. | |
9763 | ||
8f14146e PA |
9764 | 2017-07-14 Pedro Alves <palves@redhat.com> |
9765 | ||
9766 | * symtab.c (make_file_symbol_completion_list_1): Iterate over | |
9767 | symtabs matching all symtabs with SRCFILE as file name instead of | |
9768 | only considering the first hit, with lookup_symtab. | |
9769 | ||
2347965c SM |
9770 | 2017-07-14 Simon Marchi <simon.marchi@ericsson.com> |
9771 | ||
9772 | * ax-gdb.c (gen_aggregate_elt_ref): Remove operand_name and | |
9773 | operator_name parameters. | |
9774 | (gen_expr): Update function call. | |
9775 | ||
40f4af28 SM |
9776 | 2017-07-14 Simon Marchi <simon.marchi@ericsson.com> |
9777 | ||
9778 | * dwarf2loc.h (dwarf2_compile_expr_to_ax): Remove gdbarch | |
9779 | parameter. | |
9780 | * symtab.h (struct symbol_computed_ops::tracepoint_var_ref): | |
9781 | Likewise. | |
9782 | * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove gdbarch | |
9783 | parameter, use agent_expr::gdbarch instead, update function | |
9784 | calls. | |
9785 | (locexpr_tracepoint_var_ref): Likewise. | |
9786 | (loclist_tracepoint_var_ref): Likewise. | |
9787 | * ax-gdb.c (gen_trace_static_fields): Likewise. | |
9788 | (gen_traced_pop): Likewise. | |
9789 | (gen_frame_args_address): Likewise. | |
9790 | (gen_frame_locals_address): Likewise. | |
9791 | (gen_var_ref): Likewise. | |
9792 | (gen_struct_ref_recursive): Likewise. | |
9793 | (gen_static_field): Likewise. | |
9794 | (gen_maybe_namespace_elt): Likewise. | |
9795 | (gen_expr): Likewise. | |
9796 | (gen_trace_for_var): Likewise. | |
9797 | (gen_trace_for_expr): Likewise. | |
9798 | (gen_trace_for_return_address): Likewise. | |
9799 | ||
053f8057 SM |
9800 | 2017-07-14 Simon Marchi <simon.marchi@ericsson.com> |
9801 | ||
9802 | * ax-gdb.c (gen_deref, gen_address_of): Remove unused ax | |
9803 | parameter. | |
9804 | (gen_struct_ref, gen_expr, gen_expr_binop_rest): Update call. | |
9805 | ||
6661ad48 SM |
9806 | 2017-07-14 Simon Marchi <simon.marchi@ericsson.com> |
9807 | ||
9808 | * ax-gdb.c (gen_usual_unary): Remove exp parameter, get gdbarch | |
9809 | from ax, update calls. | |
9810 | (gen_usual_arithmetic): Likewise. | |
9811 | (gen_integral_promotions): Likewise. | |
9812 | (gen_bitfield_ref): Likewise. | |
9813 | (gen_primitive_field): Likewise. | |
9814 | (gen_struct_ref_recursive): Likewise. | |
9815 | (gen_struct_ref): Likewise. | |
9816 | (gen_maybe_namespace_elt): Likewise. | |
9817 | (gen_struct_elt_for_reference): Likewise. | |
9818 | (gen_namespace_elt): Likewise. | |
9819 | (gen_aggregate_elt_ref): Likewise. | |
9820 | (gen_expr): Get gdbarch from ax, update calls. | |
9821 | (gen_expr_binop_rest): Likewise. | |
9822 | ||
c55a47e7 PA |
9823 | 2017-07-13 Pedro Alves <palves@redhat.com> |
9824 | ||
9825 | * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Pass tdesc_amd64 | |
9826 | as default tdesc. | |
9827 | * amd64-dicos-tdep.c (amd64_dicos_init_abi): | |
9828 | * amd64-fbsd-tdep.c (amd64fbsd_init_abi): | |
9829 | * amd64-linux-tdep.c (amd64_linux_init_abi): Pass | |
9830 | tdesc_amd64_linux as default tdesc. Get final tdesc from the | |
9831 | tdep. | |
9832 | (amd64_x32_linux_init_abi): Pass tdesc_x32_linux as default tdesc. | |
9833 | Get final tdesc from the tdep. | |
9834 | * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Pass tdesc_amd64 as | |
9835 | default tdesc. | |
9836 | * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise. | |
9837 | * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise. | |
9838 | * amd64-tdep.c (amd64_init_abi): Add 'default_tdesc' parameter. | |
9839 | Use it as default tdesc. | |
9840 | (amd64_x32_init_abi): Add 'default_tdesc' parameter, and pass it | |
9841 | down to amd_init_abi. No longer handle fallback tdesc here. | |
9842 | * amd64-tdep.h (tdesc_x32): Declare. | |
9843 | (amd64_init_abi, amd64_x32_init_abi): Add 'default_tdesc' | |
9844 | parameter. | |
9845 | * amd64-windows-tdep.c (amd64_windows_init_abi): Pass tdesc_amd64 | |
9846 | as default tdesc. | |
9847 | ||
55efceab AA |
9848 | 2017-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
9849 | ||
9850 | * s390-linux-tdep.c (s390_process_record): Add support for | |
9851 | instructions new in arch12. | |
9852 | ||
0aa37b65 JB |
9853 | 2017-07-11 John Baldwin <jhb@FreeBSD.org> |
9854 | ||
9855 | * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use | |
9856 | PT_GETFSBASE and PT_GETGSBASE. | |
9857 | (amd64bsd_store_inferior_registers): Use PT_SETFSBASE and | |
9858 | PT_SETGSBASE. | |
9859 | ||
48aeef91 JB |
9860 | 2017-07-11 John Baldwin <jhb@FreeBSD.org> |
9861 | ||
9862 | * features/Makefile (amd64.dat, amd64-avx.dat, amd64-mpx.dat) | |
9863 | (amd64-avx-mpx.dat, amd64-avx-avx512.dat) | |
9864 | (amd64-avx-mpx-avx512-pku.dat): Add i386/64bit-segments.xml in | |
9865 | those rules. | |
9866 | * features/i386/amd64-avx-avx512.xml: Add 64bit-segments.xml. | |
9867 | * features/i386/amd64-avx-mpx-avx512-pku.xml: Add 64bit-segments.xml. | |
9868 | * features/i386/amd64-avx-mpx.xml: Add 64bit-segments.xml. | |
9869 | * features/i386/amd64-avx.xml: Add 64bit-segments.xml. | |
9870 | * features/i386/amd64-mpx.xml: Add 64bit-segments.xml. | |
9871 | * features/i386/amd64.xml: Add 64bit-segments.xml. | |
9872 | * features/i386/amd64-avx-avx512.c: Regenerated. | |
9873 | * features/i386/amd64-avx-mpx-avx512-pku.c: Regenerated. | |
9874 | * features/i386/amd64-avx-mpx.c: Regenerated. | |
9875 | * features/i386/amd64-avx.c: Regenerated. | |
9876 | * features/i386/amd64-mpx.c: Regenerated. | |
9877 | * features/i386/amd64.c: Regenerated. | |
9878 | * regformats/i386/amd64-avx-avx512.dat: Regenerated. | |
9879 | * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated. | |
9880 | * regformats/i386/amd64-avx-mpx.dat: Regenerated. | |
9881 | * regformats/i386/amd64-avx.dat: Regenerated. | |
9882 | * regformats/i386/amd64-mpx.dat: Regenerated. | |
9883 | * regformats/i386/amd64.dat: Regenerated. | |
9884 | ||
77c501bc YQ |
9885 | 2017-07-10 Yao Qi <yao.qi@linaro.org> |
9886 | ||
9887 | * features/i386/amd64-avx-avx512-linux.c: Re-generated. | |
9888 | * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated. | |
9889 | ||
6dc8d757 AK |
9890 | 2017-07-10 Anton Kolesov <Anton.Kolesov@synopsys.com> |
9891 | ||
9892 | * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add setenv and | |
9893 | unsetenv. | |
9894 | * gnulib/aclocal.m4: Regenerate. | |
9895 | * gnulib/config.in: Regenerate. | |
9896 | * gnulib/configure: Regenerate. | |
9897 | * gnulib/import/Makefile.am: Regenerate. | |
9898 | * gnulib/import/Makefile.in: Regenerate. | |
9899 | * gnulib/import/m4/gnulib-cache.m4: Regenerate. | |
9900 | * gnulib/import/m4/gnulib-comp.m4: Regenerate. | |
9901 | * gnulib/import/m4/environ.m4: New file. | |
9902 | * gnulib/import/m4/setenv.m4: New file. | |
9903 | * gnulib/import/setenv.c: New file. | |
9904 | * gnulib/import/unsetenv.c: New file. | |
9905 | ||
266934d1 SM |
9906 | 2017-07-09 Simon Marchi <simon.marchi@ericsson.com> |
9907 | ||
9908 | * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Read | |
9909 | address when op is DW_OP_addr. | |
9910 | ||
03278692 TT |
9911 | 2017-07-09 Tom Tromey <tom@tromey.com> |
9912 | ||
9913 | * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Reverse size | |
9914 | check and apply to outer type. | |
9915 | ||
4b654465 JB |
9916 | 2017-07-07 John Baldwin <jhb@FreeBSD.org> |
9917 | ||
9918 | * fbsd-tdep.c (LWPINFO_OFFSET, LWPINFO_PL_FLAGS) | |
9919 | (LWPINFO64_PL_SIGINFO, LWPINFO32_PL_SIGINFO, PL_FLAG_SI) | |
9920 | (SIZE64_SIGINFO_T, SIZE32_SIGINFO_T, fbsd_core_xfer_siginfo): New. | |
9921 | (fbsd_init_abi): Install gdbarch "core_xfer_siginfo" method. | |
9922 | ||
2af9fc44 JB |
9923 | 2017-07-07 John Baldwin <jhb@FreeBSD.org> |
9924 | ||
9925 | * fbsd-tdep.c (fbsd_core_thread_name): Use thread_section_name. | |
9926 | ||
382b69bb JB |
9927 | 2017-07-07 John Baldwin <jhb@FreeBSD.org> |
9928 | ||
9929 | * corelow.c (get_core_siginfo): Remove. | |
9930 | (core_xfer_partial): Use the gdbarch "core_xfer_siginfo" method | |
9931 | instead of get_core_siginfo. | |
9932 | * gdbarch.sh (core_xfer_siginfo): New gdbarch callback. | |
9933 | * gdbarch.h: Re-generate. | |
9934 | * gdbarch.c: Re-generate. | |
9935 | * linux-tdep.c (linux_core_xfer_siginfo): New. | |
9936 | (linux_init_abi): Install gdbarch "core_xfer_siginfo" method. | |
9937 | ||
6e5eab33 JB |
9938 | 2017-07-07 John Baldwin <jhb@FreeBSD.org> |
9939 | ||
9940 | * corelow.c (thread_section_name): Move to ... | |
9941 | * gdbcore.h (thread_section_name): ... here. | |
9942 | ||
929edea9 JB |
9943 | 2017-07-07 John Baldwin <jhb@FreeBSD.org> |
9944 | ||
9945 | * fbsd-nat.c [PT_LWPINFO && __LP64__] (union sigval32) | |
9946 | (struct siginfo32): New. | |
9947 | [PT_LWPINFO] (fbsd_siginfo_size, fbsd_convert_siginfo): New. | |
9948 | (fbsd_xfer_partial) [PT_LWPINFO]: Handle TARGET_OBJECT_SIGNAL_INFO | |
9949 | via ptrace(PT_LWPINFO). | |
9950 | ||
762c974a JB |
9951 | 2017-07-07 John Baldwin <jhb@FreeBSD.org> |
9952 | ||
9953 | * fbsd-tdep.c (fbsd_gdbarch_data_handle, struct fbsd_gdbarch_data) | |
9954 | (init_fbsd_gdbarch_data, get_fbsd_gdbarch_data) | |
9955 | (fbsd_get_siginfo_type): New. | |
9956 | (fbsd_init_abi): Install gdbarch "get_siginfo_type" method. | |
9957 | (_initialize_fbsd_tdep): New. | |
9958 | ||
33c5cd75 DB |
9959 | 2017-07-06 David Blaikie <dblaikie@gmail.com> |
9960 | ||
9961 | * dwarf2read.c (struct dwo_file): Use a htab of dwo_unit* (rather than | |
9962 | a singular dwo_unit*) to support multiple CUs in the same way that | |
9963 | multiple TUs are supported. | |
9964 | (create_cus_hash_table): Replace create_dwo_cu with a function for | |
9965 | parsing multiple CUs from a DWO file. | |
9966 | (open_and_init_dwo_file): Use create_cus_hash_table rather than | |
9967 | create_dwo_cu. | |
9968 | (lookup_dwo_cutu): Lookup CU in the hash table in the dwo_file with | |
9969 | htab_find, rather than comparing the signature to a singleton CU in | |
9970 | the dwo_file. | |
9971 | ||
8455d262 PA |
9972 | 2017-07-06 Pedro Alves <palves@redhat.com> |
9973 | ||
9974 | * python/py-unwind.c (pyuw_dealloc_cache): Fix for loop condition. | |
9975 | ||
4da3eb35 PA |
9976 | 2017-07-04 Pedro Alves <palves@redhat.com> |
9977 | ||
9978 | * gdbtypes.c (recursive_dump_type): Don't reference TYPE_STATIC. | |
9979 | * gdbtypes.h (TYPE_STATIC): Delete. | |
9980 | (struct fn_field) <is_public, is_abstract, is_static, is_final, | |
9981 | is_synchronized, is_native>: Delete. | |
9982 | <dummy>: Bump. | |
9983 | (TYPE_FN_FIELD_PUBLIC, TYPE_FN_FIELD_STATIC, TYPE_FN_FIELD_FINAL) | |
9984 | (TYPE_FN_FIELD_SYNCHRONIZED, TYPE_FN_FIELD_NATIVE) | |
9985 | (TYPE_FN_FIELD_ABSTRACT): Delete. | |
9986 | ||
5bfd255c SM |
9987 | 2017-07-03 Simon Marchi <simon.marchi@ericsson.com> |
9988 | ||
9989 | * buffer.h (buffer_finish): Fix spelling mistakes. | |
9990 | ||
25c54127 EZ |
9991 | 2017-07-01 Eli Zaretskii <eliz@gnu.org> |
9992 | ||
9993 | * .dir-locals.el: Automatically switch to C-style comments in | |
9994 | versions of Emacs that support the feature. | |
9995 | ||
dc4bde35 SDJ |
9996 | 2017-06-30 Sergio Durigan Junior <sergiodj@redhat.com> |
9997 | Pedro Alves <palves@redhat.com> | |
9998 | ||
9999 | PR cli/21688 | |
10000 | * cli/cli-script.c (command_name_equals_not_inline): Remove function. | |
10001 | (process_next_line): New variable 'inline_cmd'. | |
10002 | Adjust 'if' clauses for "python", "compile" and "guile" to use | |
10003 | 'command_name_equals' and check for '!inline_cmd'. | |
10004 | ||
51ed89aa SDJ |
10005 | 2017-06-30 Sergio Durigan Junior <sergiodj@redhat.com> |
10006 | ||
10007 | PR cli/21688 | |
10008 | * cli/cli-script.c (command_name_equals_not_inline): New function. | |
10009 | (process_next_line): Adjust 'if' clauses for "python", "compile" | |
10010 | and "guile" to use command_name_equals_not_inline. | |
10011 | ||
eb17d413 PA |
10012 | 2017-06-29 Pedro Alves <palves@redhat.com> |
10013 | ||
10014 | * completer.c (expression_completer): Call | |
10015 | linespec_location_completer instead of location_completer. | |
10016 | ||
195bcdd5 PA |
10017 | 2017-06-29 Pedro Alves <palves@redhat.com> |
10018 | ||
10019 | * completer.c (expression_completer): Remove code that recomputes | |
10020 | 'text' from 'word'. | |
10021 | ||
adc764e7 YQ |
10022 | 2017-06-29 Yao Qi <yao.qi@linaro.org> |
10023 | ||
10024 | * regformats/regdat.sh: Generate code with | |
10025 | "ifndef IN_PROCESS_AGENT". | |
10026 | ||
6e75794e PA |
10027 | 2017-06-28 Pedro Alves <palves@redhat.com> |
10028 | ||
10029 | * command.h: Include "common/scoped_restore.h". | |
10030 | ||
bc491f2e YQ |
10031 | 2017-06-28 Yao Qi <yao.qi@linaro.org> |
10032 | ||
10033 | * mi/mi-cmd-break.c (mi_argv_to_format): Use obstack_grow_str | |
10034 | instead of obstack_grow. | |
10035 | ||
41664b45 DG |
10036 | 2017-06-28 Doug Gilmore <Doug.Gilmore@imgtec.com> |
10037 | ||
10038 | PR gdb/21337 | |
10039 | * symfile.c (reread_symbols): Call objfiles_changed just before | |
10040 | read_symbols. | |
10041 | ||
6da67eb1 PA |
10042 | 2017-06-27 Pedro Alves <palves@redhat.com> |
10043 | ||
10044 | * symtab.c (COMPLETION_LIST_ADD_SYMBOL) | |
10045 | (MCOMPLETION_LIST_ADD_SYMBOL): Delete macros, replace with ... | |
10046 | (completion_list_add_symbol, completion_list_add_msymbol): | |
10047 | ... these new functions. | |
10048 | (add_symtab_completions) | |
10049 | (default_make_symbol_completion_list_break_on_1): Adjust. | |
10050 | ||
23732b1e PA |
10051 | 2017-06-27 Pedro Alves <palves@redhat.com> |
10052 | ||
10053 | * objfiles.c (get_objfile_bfd_data): Call bfd_alloc instead of | |
10054 | bfd_zalloc. Call objfile_per_bfd_storage's ctor. | |
10055 | (free_objfile_per_bfd_storage): Call objfile_per_bfd_storage's | |
10056 | dtor. | |
10057 | * objfiles.h (objfile_per_bfd_storage): Add ctor. Make | |
10058 | 'storage_obstack' field an auto_obstack. In-class initialize all | |
10059 | non-bitfield fields. Make minsyms_read bool. | |
10060 | * symfile.c (read_symbols): Adjust. | |
10061 | ||
a4d1e79a AH |
10062 | 2017-06-27 Alan Hayward <alan.hayward@arm.com> |
10063 | ||
10064 | * remote-sim.c (gdbsim_fetch_register): Use byte_vector. | |
10065 | (gdbsim_store_register): Likewise. | |
10066 | ||
8268c778 PA |
10067 | 2017-06-27 Pedro Alves <palves@redhat.com> |
10068 | ||
10069 | * c-exp.y (name_obstack): Now an auto_obstack. | |
10070 | (yylex): Use auto_obstack::clear. | |
10071 | (c_parse): Use auto_obstack::clear instead of reinitializing and | |
10072 | freeing the obstack. | |
10073 | * c-lang.c (evaluate_subexp_c): Use auto_obstack. | |
10074 | * d-exp.y (name_obstack): Now an auto_obstack. | |
10075 | (yylex): Use auto_obstack::clear. | |
10076 | (d_parse): Use auto_obstack::clear instead of reinitializing and | |
10077 | freeing the obstack. | |
10078 | * dwarf2loc.c (fetch_const_value_from_synthetic_pointer): Use | |
10079 | auto_obstack. | |
10080 | * dwarf2read.c (create_addrmap_from_index) | |
10081 | (dwarf2_build_psymtabs_hard) | |
10082 | (update_enumeration_type_from_children): Likewise. | |
10083 | * gdb_obstack.h (auto_obstack): New type. | |
10084 | * go-exp.y (name_obstack): Now an auto_obstack. | |
10085 | (build_packaged_name): Use auto_obstack::clear. | |
10086 | (go_parse): Use auto_obstack::clear instead of reinitializing and | |
10087 | freeing the obstack. | |
10088 | * linux-tdep.c (linux_make_mappings_corefile_notes): Use | |
10089 | auto_obstack. | |
10090 | * printcmd.c (printf_wide_c_string, ui_printf): Use auto_obstack. | |
10091 | * rust-exp.y (work_obstack): Now an auto_obstack. | |
10092 | (rust_parse, rust_lex_tests): Use auto_obstack::clear instead of | |
10093 | reinitializing and freeing the obstack. | |
10094 | * utils.c (do_obstack_free, make_cleanup_obstack_free): Delete. | |
10095 | (host_char_to_target): Use auto_obstack. | |
10096 | * utils.h (make_cleanup_obstack_free): Delete declaration. | |
10097 | * valprint.c (generic_emit_char, generic_printstr): Use | |
10098 | auto_obstack. | |
10099 | ||
db665f42 SM |
10100 | 2017-06-27 Simon Marchi <simon.marchi@ericsson.com> |
10101 | ||
10102 | * darwin-nat.c (darwin_check_new_threads): Don't handle dummy | |
10103 | thread. | |
10104 | (darwin_init_thread_list): Don't update dummy thread. | |
10105 | (darwin_create_inferior, darwin_attach): Don't add a dummy thread. | |
10106 | ||
873c0814 SM |
10107 | 2017-06-26 Simon Marchi <simon.marchi@ericsson.com> |
10108 | ||
10109 | * record-full.c (netorder16): Remove. | |
10110 | ||
8b5a7a6e SM |
10111 | 2017-06-26 Simon Marchi <simon.marchi@ericsson.com> |
10112 | ||
10113 | * common/diagnostics.h: Define macros for GCC. | |
10114 | (DIAGNOSTIC_IGNORE_UNUSED_FUNCTION): New macro. | |
10115 | * common/vec.h: Include diagnostics.h. | |
10116 | (DIAGNOSTIC_IGNORE_UNUSED_VEC_FUNCTION): New macro. | |
10117 | (DEF_VEC_I, DEF_VEC_P, DEF_VEC_O): Ignore -Wunused-function | |
10118 | warning. | |
10119 | ||
d1435379 SM |
10120 | 2017-06-26 Simon Marchi <simon.marchi@ericsson.com> |
10121 | ||
10122 | * common/diagnostics.h (DIAGNOSTIC_IGNORE_DEPRECATED_REGISTER): | |
10123 | New macro. | |
10124 | * ada-lex.l: Ignore deprecated register warnings. | |
10125 | ||
cc75e0fd SM |
10126 | 2017-06-25 Simon Marchi <simon.marchi@ericsson.com> |
10127 | ||
10128 | * main.c (get_init_files): Replace "SYSTEM_GDBINIT + | |
10129 | datadir_len" with "&SYSTEM_GDBINIT[datadir_len]". | |
10130 | ||
07809eaf SM |
10131 | 2017-06-25 Simon Marchi <simon.marchi@ericsson.com> |
10132 | ||
10133 | * dtrace-probe.c (dtrace_process_dof_probe): Put semi-colon on | |
10134 | its own line. | |
10135 | ||
f076f034 SM |
10136 | 2017-06-25 Simon Marchi <simon.marchi@ericsson.com> |
10137 | ||
10138 | * nat/x86-dregs.c (x86_show_dr): Print registers one per line. | |
10139 | ||
0dd5cbc5 AH |
10140 | 2017-06-23 Alan Hayward <alan.hayward@arm.com> |
10141 | ||
10142 | * xtensa-tdep.c (XTENSA_MAX_REGISTER_SIZE): Add. | |
10143 | (xtensa_register_write_masked): Use XTENSA_MAX_REGISTER_SIZE. | |
10144 | (xtensa_register_read_masked): Likewise. | |
10145 | ||
d4c6ce5b SDJ |
10146 | 2017-06-22 Sergio Durigan Junior <sergiodj@redhat.com> |
10147 | ||
10148 | * common/environ.c (gdb_environ::unset): Update comment. | |
10149 | ||
16892a03 AH |
10150 | 2017-06-22 Alan Hayward <alan.hayward@arm.com> |
10151 | ||
10152 | * python/py-unwind.c (pyuw_sniffer): Allocate space for | |
10153 | registers. | |
10154 | ||
d7dcbefc AH |
10155 | 2017-06-22 Alan Hayward <alan.hayward@arm.com> |
10156 | ||
10157 | * record-full.c (record_full_exec_insn): Use byte_vector. | |
10158 | ||
b30ff123 YQ |
10159 | 2017-06-22 Yao Qi <yao.qi@linaro.org> |
10160 | ||
10161 | * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Regenerated. | |
10162 | * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated. | |
10163 | ||
4fa847d7 AH |
10164 | 2017-06-22 Alan Hayward <alan.hayward@arm.com> |
10165 | ||
10166 | * remote.c (cached_reg): Move from here... | |
10167 | * regcache.h (cached_reg): ...to here. | |
10168 | * python/py-unwind.c (struct reg_info): Remove. | |
10169 | (cached_frame_info): Use cached_reg_t. | |
10170 | (pyuw_prev_register): Likewise. | |
10171 | (pyuw_sniffer): Use cached_reg_t and allocate registers. | |
10172 | (pyuw_dealloc_cache): Free all registers. | |
10173 | ||
f4906a9a PA |
10174 | 2017-06-22 Pedro Alves <palves@redhat.com> |
10175 | Simon Marchi <simon.marchi@ericsson.com> | |
10176 | ||
10177 | * unittests/environ-selftests.c (run_tests): Ignore -Wself-move | |
10178 | warning. | |
10179 | * common/diagnostics.h: New file. | |
10180 | ||
b45a1208 PA |
10181 | 2017-06-22 Pedro Alves <palves@redhat.com> |
10182 | ||
10183 | * common/agent.h: Add include guards. | |
10184 | ||
e4da2c61 SM |
10185 | 2017-06-21 Simon Marchi <simon.marchi@ericsson.com> |
10186 | ||
10187 | * target.h (struct target_ops) <to_xfer_partial>: Update doc to | |
10188 | talk about addressable units instead of bytes. | |
10189 | ||
96160d60 SDJ |
10190 | 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com> |
10191 | ||
10192 | * common/environ.c (gdb_environ::unset): Use '::iterator' instead | |
10193 | of '::const_iterator'. | |
10194 | ||
9a6c7d9c SDJ |
10195 | 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com> |
10196 | ||
10197 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add | |
10198 | 'unittests/environ-selftests.c'. | |
10199 | (SUBDIR_UNITTESTS_OBS): Add 'environ-selftests.o'. | |
10200 | * charset.c (find_charset_names): Declare object 'iconv_env'. | |
10201 | Update code to use 'iconv_env' object. Remove call to | |
10202 | 'free_environ'. | |
10203 | * common/environ.c: Include <utility>. | |
10204 | (make_environ): Delete function. | |
10205 | (free_environ): Delete function. | |
10206 | (gdb_environ::clear): New function. | |
10207 | (gdb_environ::operator=): New function. | |
10208 | (gdb_environ::get): Likewise. | |
10209 | (environ_vector): Delete function. | |
10210 | (set_in_environ): Delete function. | |
10211 | (gdb_environ::set): New function. | |
10212 | (unset_in_environ): Delete function. | |
10213 | (gdb_environ::unset): New function. | |
10214 | (gdb_environ::envp): Likewise. | |
10215 | * common/environ.h: Include <vector>. | |
10216 | (struct gdb_environ): Delete; transform into... | |
10217 | (class gdb_environ): ... this class. | |
10218 | (free_environ): Delete prototype. | |
10219 | (init_environ, get_in_environ, set_in_environ, unset_in_environ, | |
10220 | environ_vector): Likewise. | |
10221 | * infcmd.c (run_command_1): Update code to call | |
10222 | 'envp' from 'gdb_environ' class. | |
10223 | (environment_info): Update code to call methods from 'gdb_environ' | |
10224 | class. | |
10225 | (unset_environment_command): Likewise. | |
10226 | (path_info): Likewise. | |
10227 | (path_command): Likewise. | |
10228 | * inferior.c (inferior::~inferior): Delete call to 'free_environ'. | |
10229 | (inferior::inferior): Initialize 'environment' using the host's | |
10230 | information. | |
10231 | * inferior.h: Remove forward declaration of 'struct gdb_environ'. | |
10232 | Include "environ.h". | |
10233 | (class inferior) <environment>: Change type from 'struct | |
10234 | gdb_environ' to 'gdb_environ'. | |
10235 | * mi/mi-cmd-env.c (mi_cmd_env_path): Update code to call | |
10236 | methods from 'gdb_environ' class. | |
10237 | * solib.c (solib_find_1): Likewise | |
10238 | * unittests/environ-selftests.c: New file. | |
10239 | ||
75c554cf YQ |
10240 | 2017-06-20 Yao Qi <yao.qi@linaro.org> |
10241 | ||
10242 | * features/i386/i386-linux.xml: Exchange the order of including | |
10243 | 32bit-linux.xml and 32bit-sse.xml. | |
10244 | * features/i386/i386-linux.c: Regenerated. | |
10245 | ||
72ddacb7 YQ |
10246 | 2017-06-20 Yao Qi <yao.qi@linaro.org> |
10247 | ||
10248 | * target-descriptions.c (tdesc_reg): Add ctor, dtor. | |
10249 | Delete copy ctor and assignment operator. | |
10250 | (tdesc_type): Likewise. | |
10251 | (tdesc_feature): Likewise. | |
10252 | (tdesc_free_reg): Remove. | |
10253 | (tdesc_create_reg): Use new. | |
10254 | (tdesc_free_type): Remove. | |
10255 | (tdesc_create_vector): Use new. | |
10256 | (tdesc_create_union): Likewise. | |
10257 | (tdesc_create_flags): Likewise. | |
10258 | (tdesc_create_enum): Likewise. | |
10259 | (tdesc_free_feature): Delete. | |
10260 | (free_target_description): Use delete. | |
10261 | ||
325c9fd4 JB |
10262 | 2017-06-19 John Baldwin <jhb@FreeBSD.org> |
10263 | ||
10264 | * mips-tdep.c (print_gp_register_row): Don't error for unavailable | |
10265 | registers. | |
10266 | ||
16b7a719 PA |
10267 | 2017-06-19 Pedro Alves <palves@redhat.com> |
10268 | ||
10269 | * dwarf2read.c (write_psymtabs_to_index): Construct file_closer | |
10270 | after gdb::unlinker. | |
10271 | ||
1c8e01c9 SDJ |
10272 | 2017-06-19 Sergio Durigan Junior <sergiodj@redhat.com> |
10273 | ||
10274 | * mi/mi-cm-env.c (_initialize_mi_cmd_env): Use getenv instead of | |
10275 | gdb_environ to access an environment variable. | |
10276 | ||
ffce45d2 TP |
10277 | 2017-06-18 Thomas Petazzoni <thomas.petazzoni@free-electrons.com> |
10278 | ||
10279 | * nat/linux-ptrace.c (linux_fork_to_function): Add cast to | |
10280 | gdb_byte*. | |
10281 | ||
1d4fbac9 SM |
10282 | 2017-06-17 Simon Marchi <simon.marchi@ericsson.com> |
10283 | ||
10284 | * nat/fork-inferior.h (trace_start_error): Add ATTRIBUTE_PRINTF. | |
10285 | ||
8465943a SM |
10286 | 2017-06-17 Simon Marchi <simon.marchi@ericsson.com> |
10287 | ||
10288 | * configure: Re-generate. | |
10289 | * warning.m4 (build_warnings): Add -Wno-mismatched-tags. | |
10290 | ||
3e019bdc SM |
10291 | 2017-06-17 Simon Marchi <simon.marchi@ericsson.com> |
10292 | ||
10293 | * configure: Re-generate. | |
10294 | * warning.m4: Pass -Werror to compiler when checking for | |
10295 | supported warning flags. | |
10296 | ||
cf0dd6f0 SM |
10297 | 2017-06-17 Simon Marchi <simon.marchi@ericsson.com> |
10298 | ||
10299 | * Makefile.in (COMPILE.pre): Add "-x c++". | |
10300 | ||
6f98355c YQ |
10301 | 2017-06-16 Alan Hayward <alan.hayward@arm.com> |
10302 | Pedro Alves <palves@redhat.com> | |
10303 | Yao Qi <yao.qi@linaro.org> | |
10304 | ||
10305 | * defs.h (RequireLongest): New. | |
10306 | (extract_integer): Declare function template. | |
10307 | (extract_signed_integer): Remove the declaration, but define it | |
10308 | static inline. | |
10309 | (extract_unsigned_integer): Likewise. | |
10310 | (store_integer): Declare function template. | |
10311 | (store_signed_integer): Remove the declaration, but define it | |
10312 | static inline. | |
10313 | (store_unsigned_integer): Likewise. | |
10314 | * findvar.c (extract_integer): New function template. | |
10315 | (extract_signed_integer): Remove. | |
10316 | (extract_unsigned_integer): Remove. | |
10317 | (extract_integer<LONGEST>, extract_integer<ULONGEST>): Explicit | |
10318 | instantiations. | |
10319 | (store_integer): New function template. | |
10320 | (store_signed_integer): Remove. | |
10321 | (store_unsigned_integer): Remove. | |
10322 | (store_integer): Explicit instantiations. | |
10323 | * regcache.c (regcache_raw_read_signed): Update. | |
10324 | (regcache::raw_read): New function. | |
10325 | (regcache::raw_read_signed): Remove. | |
10326 | (regcache::raw_read_unsigned): Remove. | |
10327 | (regcache_raw_read_unsigned): Update. | |
10328 | (regcache_raw_write_unsigned): Update. | |
10329 | (regcache::raw_write_signed): Remove. | |
10330 | (regcache::raw_write): New function. | |
10331 | (regcache_cooked_read_signed): Update. | |
10332 | (regcache::raw_write_unsigned): Remove. | |
10333 | (regcache::cooked_read_signed): Remove. | |
10334 | (regcache_cooked_read_unsigned): Update. | |
10335 | (regcache::cooked_read_unsigned): Remove. | |
10336 | (regcache_cooked_write_signed): Update. | |
10337 | (regcache_cooked_write_unsigned): Update. | |
10338 | * regcache.h (regcache) <raw_read_signed>: Remove. | |
10339 | <raw_write_signed, raw_read_unsigned, raw_write_unsigned>: Remove. | |
10340 | <raw_read, raw_write>: New. | |
10341 | <cooked_read_signed, cooked_write_signed>: Remove. | |
10342 | <cooked_write_unsigned, cooked_read_unsigned>: Remove. | |
10343 | <cooked_read, cooked_write>: New. | |
10344 | * sh64-tdep.c (sh64_pseudo_register_read): Update. | |
10345 | (sh64_pseudo_register_write): Update. | |
10346 | ||
a87dc45a AK |
10347 | 2017-06-16 Anton Kolesov <anton.kolesov@synopsys.com> |
10348 | ||
10349 | * arc-tdep.c (arc_disassembler_options): New variable. | |
10350 | (arc_gdbarch_init): Set and use it. Use arc_delayed_print_insn instead | |
10351 | of default_print_insn. | |
10352 | (arc_delayed_print_insn): Set info->section when needed, | |
10353 | use default_print_insn to retrieve a disassembler. | |
10354 | ||
45159d6a SDJ |
10355 | 2017-06-14 Sergio Durigan Junior <sergiodj@redhat.com> |
10356 | ||
10357 | PR gdb/21574 | |
10358 | * infcmd.c (_initialize_infcmd): Expand "help run" documentation | |
10359 | to mention $SHELL and startup-with-shell. | |
10360 | ||
b46c4cf0 MF |
10361 | 2017-06-14 Max Filippov <jcmvbkbc@gmail.com> |
10362 | ||
10363 | * MAINTAINERS: Move Maxim Grigoriev to the Past Maintainers. | |
10364 | ||
6394c606 YQ |
10365 | 2017-06-14 Yao Qi <yao.qi@linaro.org> |
10366 | ||
10367 | * aarch64-tdep.c (aarch64_gdb_print_insn): Call | |
10368 | default_print_insn instead of print_insn_aarch64. | |
10369 | * arm-tdep.c (gdb_print_insn_arm): Call | |
10370 | default_print_insn instead of print_insn_big_arm | |
10371 | and print_insn_little_arm. | |
10372 | * i386-tdep.c (i386_print_insn): Call default_print_insn | |
10373 | instead of print_insn_i386. | |
10374 | * ia64-tdep.c (ia64_print_insn): Call | |
10375 | default_print_insn instead of print_insn_ia64. | |
10376 | * mips-tdep.c (gdb_print_insn_mips): Call | |
10377 | default_print_insn instead of print_insn_big_mips | |
10378 | and print_insn_little_mips. | |
10379 | * spu-tdep.c (gdb_print_insn_spu): Call default_print_insn | |
10380 | instead of print_insn_spu. | |
10381 | ||
d5722aa2 PA |
10382 | 2017-06-14 Pedro Alves <palves@redhat.com> |
10383 | ||
10384 | * ada-lang.c: Include "common/byte-vector.h". | |
10385 | (ada_value_primitive_packed_val): Use gdb::byte_vector. | |
10386 | * charset.c (wchar_iterator::iterate): Resize the vector instead | |
10387 | of reserving it. | |
10388 | * common/byte-vector.h: Include "common/def-vector.h". | |
10389 | (wchar_iterator::m_out): Now a gdb::def_vector<gdb_wchar_t>. | |
10390 | * cli/cli-dump.c: Include "common/byte-vector.h". | |
10391 | (dump_memory_to_file, restore_binary_file): Use gdb::byte_vector. | |
10392 | * common/byte-vector.h: New file. | |
10393 | * common/def-vector.h: New file. | |
10394 | * common/default-init-alloc.h: New file. | |
10395 | * dwarf2loc.c: Include "common/byte-vector.h". | |
10396 | (rw_pieced_value): Use gdb::byte_vector, and resize the vector | |
10397 | instead of reserving it. | |
10398 | * dwarf2read.c: Include "common/byte-vector.h". | |
10399 | (data_buf::m_vec): Now a gdb::byte_vector. | |
10400 | * gdb_regex.c: Include "common/def-vector.h". | |
10401 | (compiled_regex::compiled_regex): Use gdb::def_vector<char>. | |
10402 | * mi/mi-main.c: Include "common/byte-vector.h". | |
10403 | (mi_cmd_data_read_memory): Use gdb::byte_vector. | |
10404 | * printcmd.c: Include "common/byte-vector.h". | |
10405 | (print_scalar_formatted): Use gdb::byte_vector. | |
10406 | * valprint.c: Include "common/byte-vector.h". | |
10407 | (maybe_negate_by_bytes, print_decimal_chars): Use | |
10408 | gdb::byte_vector. | |
10409 | ||
01ec7a27 SM |
10410 | 2017-06-13 Simon Marchi <simon.marchi@ericsson.com> |
10411 | ||
10412 | * darwin-nat.c: Include "nat/fork-inferior.h". | |
10413 | ||
848d9074 SM |
10414 | 2017-06-13 Simon Marchi <simon.marchi@ericsson.com> |
10415 | ||
10416 | * configure.nat: Factor out Darwin bits that are not | |
10417 | architecture-specific. Add fork-inferior.o. | |
10418 | ||
3b912944 SM |
10419 | 2017-06-13 Simon Marchi <simon.marchi@ericsson.com> |
10420 | ||
10421 | * configure.nat: Factor out AIX bits that are not | |
10422 | architecture-specific. Add fork-inferior.o. | |
10423 | ||
55acdf22 AA |
10424 | 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
10425 | ||
10426 | * dwarf2loc.c (rw_pieced_value): New. Merge logic from... | |
10427 | (read_pieced_value, write_pieced_value): ...here. Reduce to | |
10428 | wrappers that just call rw_pieced_value. | |
10429 | ||
f65e2044 AA |
10430 | 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
10431 | ||
10432 | * dwarf2loc.c (write_pieced_value): When writing the data for a | |
10433 | memory piece, use write_memory_with_notification instead of | |
10434 | write_memory. | |
10435 | ||
23f945bf AA |
10436 | 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
10437 | ||
10438 | * valops.c (read_value_memory): Change embedded_offset to | |
10439 | represent a bit offset instead of a byte offset. | |
10440 | * value.h (read_value_memory): Adjust comment. | |
10441 | ||
f236533e AA |
10442 | 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
10443 | ||
10444 | * dwarf2loc.c (read_pieced_value): Remove unnecessary variables | |
10445 | dest_offset_bits and source_offset_bits. | |
10446 | (write_pieced_value): Likewise. | |
10447 | ||
65d84b76 AA |
10448 | 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
10449 | ||
10450 | * dwarf2loc.c (read_pieced_value): Respect the piece offset, as | |
10451 | given by DW_OP_bit_piece. | |
10452 | (write_pieced_value): Likewise. | |
10453 | ||
242d31ab AA |
10454 | 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
10455 | ||
10456 | * dwarf2loc.c (read_pieced_value): Move the buffer allocation and | |
10457 | some other preparations to the places where sufficient information | |
10458 | is available. | |
10459 | (write_pieced_value): Likewise. | |
10460 | ||
03c8af18 AA |
10461 | 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
10462 | ||
10463 | * dwarf2loc.c (bits_to_bytes): New function. | |
10464 | (read_pieced_value): Fix offset calculations for register pieces | |
10465 | on big-endian targets. | |
10466 | (write_pieced_value): Likewise. | |
10467 | ||
840989c1 AA |
10468 | 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
10469 | ||
10470 | * dwarf2loc.c (read_pieced_value): Remove buffer_size variable. | |
10471 | (write_pieced_value): Likewise. | |
10472 | ||
359b19bb AA |
10473 | 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
10474 | ||
10475 | * dwarf2loc.c (write_pieced_value): When writing to a bit-field, | |
10476 | transfer the source value's least significant bits, instead of its | |
10477 | lowest-addressed ones. Rename type_len to max_offset. | |
10478 | (read_pieced_value): Mirror above changes to write_pieced_value as | |
10479 | applicable. | |
10480 | ||
07c9ca3b AA |
10481 | 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
10482 | ||
10483 | * dwarf2loc.c (write_pieced_value): In DWARF_VALUE_MEMORY, | |
10484 | truncate full bytes from dest_offset_bits before using it as an | |
10485 | offset into the buffer. | |
10486 | ||
f1cc9874 AA |
10487 | 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
10488 | ||
10489 | * dwarf2loc.c (write_pieced_value): Include transfer size in | |
10490 | byte-wise check. | |
10491 | ||
cdaac320 AA |
10492 | 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
10493 | ||
10494 | * dwarf2loc.c (write_pieced_value): Fix copy/paste error in the | |
10495 | calculation of this_size. | |
10496 | ||
af547a96 AA |
10497 | 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
10498 | ||
10499 | * dwarf2loc.c (read_pieced_value): Respect parent value's offset | |
10500 | when targeting a bit-field. | |
10501 | (write_pieced_value): Likewise. | |
10502 | ||
ddd7882a AA |
10503 | 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
10504 | ||
10505 | * dwarf2loc.c (struct piece_closure) <addr_size>: Remove field. | |
10506 | (allocate_piece_closure): Drop addr_size parameter. | |
10507 | (dwarf2_evaluate_loc_desc_full): Adjust call to | |
10508 | allocate_piece_closure. | |
10509 | ||
e9352324 AA |
10510 | 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
10511 | ||
10512 | PR gdb/21226 | |
10513 | * dwarf2loc.c (read_pieced_value): Anchor stack value pieces at | |
10514 | the LSB end, independent of endianness. | |
10515 | ||
d5d1163e AA |
10516 | 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
10517 | ||
10518 | * dwarf2loc.c (write_pieced_value): Fix order of calculations for | |
10519 | size capping. | |
10520 | ||
032bb6ea YQ |
10521 | 2017-06-13 Yao Qi <yao.qi@linaro.org> |
10522 | ||
10523 | * mips-linux-nat.c: Move include features/mips*-linux.c to | |
10524 | mips-linux-tdep.c. | |
10525 | (_initialize_mips_linux_nat): Move initialize_tdesc_mips* calls | |
10526 | to mips-linux-tdep.c. | |
10527 | * mips-linux-tdep.c: Include features/mips*-linux.c | |
10528 | (_initialize_mips_linux_tdep): Call initialize_tdesc_mips* | |
10529 | functions. | |
10530 | * mips-linux-tdep.h (tdesc_mips_linux): Declare. | |
10531 | (tdesc_mips_dsp_linux, tdesc_mips64_linux): Declare. | |
10532 | (tdesc_mips64_dsp_linux): Declare. | |
10533 | ||
f12f6bad TT |
10534 | 2017-06-12 Tom Tromey <tom@tromey.com> |
10535 | ||
10536 | * valprint.h (val_print_type_code_int): Remove. | |
10537 | * valprint.c (generic_val_print_int): Always call | |
10538 | val_print_scalar_formatted. | |
10539 | (val_print_type_code_int): Remove. | |
10540 | * printcmd.c (print_scalar_formatted): Handle options->format==0. | |
10541 | * f-valprint.c (f_val_print): Use val_print_scalar_formatted. | |
10542 | * c-valprint.c (c_val_print_int): Use val_print_scalar_formatted. | |
10543 | * ada-valprint.c (ada_val_print_num): Use | |
10544 | val_print_scalar_formatted. | |
10545 | ||
d9109c80 TT |
10546 | 2017-06-12 Tom Tromey <tom@tromey.com> |
10547 | ||
10548 | * printcmd.c (print_scalar_formatted): Unify the two switches. | |
10549 | Don't convert scalars to LONGEST. | |
10550 | ||
4ac0cb1c TT |
10551 | 2017-06-12 Tom Tromey <tom@tromey.com> |
10552 | ||
10553 | PR exp/16225: | |
10554 | * valprint.h (print_decimal_chars): Update. | |
10555 | * valprint.c (maybe_negate_by_bytes): New function. | |
10556 | (print_decimal_chars): Add "is_signed" argument. | |
10557 | * printcmd.c (print_scalar_formatted): Update. | |
10558 | ||
30a25466 TT |
10559 | 2017-06-12 Tom Tromey <tom@tromey.com> |
10560 | ||
10561 | PR exp/16225: | |
10562 | * valprint.h (print_binary_chars, print_hex_chars): Update. | |
10563 | * valprint.c (val_print_type_code_int): Update. | |
10564 | (print_binary_chars): Add "zero_pad" argument. | |
10565 | (emit_octal_digit): New function. | |
10566 | (print_octal_chars): Don't zero-pad. | |
10567 | (print_decimal_chars): Likewise. | |
10568 | (print_hex_chars): Add "zero_pad" argument. | |
10569 | * sh64-tdep.c (sh64_do_fp_register): Update. | |
10570 | * regcache.c (regcache::dump): Update. | |
10571 | * printcmd.c (print_scalar_formatted): Update. | |
10572 | * infcmd.c (default_print_one_register_info): Update. | |
10573 | ||
b3464d03 PA |
10574 | 2017-06-12 Pedro Alves <palves@redhat.com> |
10575 | Alan Hayward <alan.hayward@arm.com> | |
10576 | ||
10577 | * mips-tdep.c (MAX_MIPS_ABI_REGSIZE): New. | |
10578 | (mips_eabi_push_dummy_call): Rename local 'regsize' to | |
10579 | 'abi_regsize'. Rename local array 'valbuf' to 'ref_valbuf', and | |
10580 | use MAX_MIPS_ABI_REGSIZE instead of MAX_REGISTER_SIZE to size it. | |
10581 | Assert that abi_regsize bytes fit in 'ref_valbuf'. | |
10582 | ||
4b76cda9 PA |
10583 | 2017-06-12 Pedro Alves <palves@redhat.com> |
10584 | ||
10585 | * dwarf2read.c (mapped_symtab::data): Now a vector of | |
10586 | symtab_index_entry instead of vector of | |
10587 | std::unique_ptr<symtab_index_entry>. All users adjusted to check | |
10588 | whether an element's name is NULL instead of checking whether the | |
10589 | element itself is NULL. | |
10590 | (find_slot): Change return type. Adjust. | |
10591 | (hash_expand, , add_index_entry, uniquify_cu_indices) | |
10592 | (write_hash_table): Adjust. | |
10593 | ||
e8f8bcb3 PA |
10594 | 2017-06-12 Pedro Alves <palves@redhat.com> |
10595 | ||
10596 | * dwarf2read.c (recursively_count_psymbols): New function. | |
10597 | (write_psymtabs_to_index): Call it to compute number of psyms and | |
10598 | pass estimate size of psyms_seen to unordered_set's ctor. | |
10599 | ||
70a1152b PA |
10600 | 2017-06-12 Pedro Alves <palves@redhat.com> |
10601 | ||
10602 | * dwarf2read.c (write_hash_table): Check if key already exists | |
10603 | before emplacing. | |
10604 | ||
c2f134ac PA |
10605 | 2017-06-12 Pedro Alves <palves@redhat.com> |
10606 | ||
10607 | * dwarf2read.c (data_buf::append_space): Rename to... | |
10608 | (data_buf::grow): ... this, and make private. Adjust all callers. | |
10609 | (data_buf::append_uint): New method. | |
10610 | (add_address_entry, write_one_signatured_type) | |
10611 | (write_psymtabs_to_index): Use it. | |
10612 | ||
a81e6d4d PA |
10613 | 2017-06-12 Pedro Alves <palves@redhat.com> |
10614 | ||
10615 | * dwarf2read.c (file_write(FILE *, const void *, size_t)): Delete. | |
10616 | (file_write (FILE *, const std::vector<Elem>&)): Delete. | |
10617 | (data_buf::file_write): Call ::fwrite directly. | |
10618 | ||
6fd931f2 PA |
10619 | 2017-06-12 Pedro Alves <palves@redhat.com> |
10620 | ||
10621 | * dwarf2read.c (uniquify_cu_indices): Use std::unique and | |
10622 | std::vector::erase. | |
10623 | ||
bc8f2430 JK |
10624 | 2017-06-12 Jan Kratochvil <jan.kratochvil@redhat.com> |
10625 | ||
10626 | Code cleanup: C++ify .gdb_index producer. | |
10627 | * dwarf2read.c: Include <unordered_set> and <unordered_map>. | |
10628 | (MAYBE_SWAP) [WORDS_BIGENDIAN]: Cast to offset_type. | |
10629 | (struct strtab_entry, hash_strtab_entry, eq_strtab_entry) | |
10630 | (create_strtab, add_string): Remove. | |
10631 | (file_write, data_buf): New. | |
10632 | (struct symtab_index_entry): Use std::vector for cu_indices. | |
10633 | (struct mapped_symtab): Use std::vector for data. | |
10634 | (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry) | |
10635 | (create_symbol_hash_table, create_mapped_symtab, cleanup_mapped_symtab): | |
10636 | Remove. | |
10637 | (find_slot): Change return type. Update it to the new data structures. | |
10638 | (hash_expand, add_index_entry): Update it to the new data structures. | |
10639 | (offset_type_compare): Remove. | |
10640 | (uniquify_cu_indices): Update it to the new data structures. | |
10641 | (c_str_view, c_str_view_hasher, vector_hasher): New. | |
10642 | (add_indices_to_cpool): Remove. | |
10643 | (write_hash_table): Update it to the new data structures. | |
10644 | (struct psymtab_cu_index_map, hash_psymtab_cu_index) | |
10645 | (eq_psymtab_cu_index): Remove. | |
10646 | (psym_index_map): New typedef. | |
10647 | (struct addrmap_index_data): Change addr_obstack pointer to data_buf | |
10648 | reference and std::unordered_map for cu_index_htab. | |
10649 | (add_address_entry, add_address_entry_worker, write_address_map) | |
10650 | (write_psymbols): Update it to the new data structures. | |
10651 | (write_obstack): Remove. | |
10652 | (struct signatured_type_index_data): Change types_list to a data_buf | |
10653 | reference and psyms_seen to a std::unordered_set reference. | |
10654 | (write_one_signatured_type, recursively_write_psymbols) | |
10655 | (write_psymtabs_to_index): Update it to the new data structures. | |
10656 | ||
c4dcb155 SM |
10657 | 2017-06-11 Simon Marchi <simon.marchi@ericsson.com> |
10658 | ||
10659 | * NEWS (Changes since GDB 8.0): Announce {set,show} debug | |
10660 | separate-debug-file commands. | |
10661 | * symfile.h (separate_debug_file_debug): New global. | |
10662 | * symfile.c (separate_debug_file_debug): New global. | |
10663 | (separate_debug_file_exists, find_separate_debug_file): Add | |
10664 | debug output. | |
10665 | (_initialize_symfile): Add "set debug separate-debug-file" | |
10666 | command. | |
10667 | * build-id.c (build_id_to_debug_bfd, | |
10668 | find_separate_debug_file_by_buildid): Add debug output. | |
10669 | ||
6d45d4b4 SM |
10670 | 2017-06-10 Simon Marchi <simon.marchi@polymtl.ca> |
10671 | ||
10672 | * gdbarch.sh (displaced_step_free_closure): Remove. | |
10673 | * gdbarch.h, gdbarch.c: Re-generate. | |
10674 | * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't set | |
10675 | displaced_step_free_closure. | |
10676 | * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise. | |
10677 | * arm-linux-tdep.c (arm_linux_init_abi): Likewise. | |
10678 | * i386-linux-tdep.c (i386_linux_init_abi): Likewise. | |
10679 | * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise. | |
10680 | * rs6000-tdep.c (rs6000_gdbarch_init): Likewise. | |
10681 | * s390-linux-tdep.c (s390_gdbarch_init): Likewise. | |
10682 | * arch-utils.h (simple_displaced_step_free_closure): Remove. | |
10683 | * arch-utils.c (simple_displaced_step_free_closure): Remove. | |
10684 | * infrun.c (displaced_step_clear): Call xfree instead of | |
10685 | gdbarch_displaced_step_free_closure. | |
10686 | ||
2f91880f SDJ |
10687 | 2017-06-08 Sergio Durigan Junior <sergiodj@redhat.com> |
10688 | ||
10689 | * common/common-utils.c (stringify_argv): Check for "arg[0] != | |
10690 | NULL". | |
10691 | ||
b8b6e72f AH |
10692 | 2017-06-08 Alan Hayward <alan.hayward@arm.com> |
10693 | ||
10694 | * mn10300-tdep.c (MN10300_MAX_REGISTER_SIZE): Add. | |
10695 | (mn10300_extract_return_value): Use MN10300_MAX_REGISTER_SIZE. | |
10696 | (mn10300_push_dummy_call): Likewise. | |
10697 | ||
5369082e AH |
10698 | 2017-06-08 Alan Hayward <alan.hayward@arm.com> |
10699 | ||
10700 | * mi/mi-main.c (register_changed_p): Use value_contents_eq. | |
10701 | ||
ff4ca5ac AH |
10702 | 2017-06-08 Alan Hayward <alan.hayward@arm.com> |
10703 | ||
10704 | * mi/mi-main.c (register_changed_p): Use cooked_read_value. | |
10705 | ||
aefd8b33 SDJ |
10706 | 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com> |
10707 | ||
10708 | * NEWS (Changes since GDB 8.0): Announce that GDBserver is now | |
10709 | able to start inferiors using a shell. | |
10710 | (New remote packets): Announce new packet "QStartupWithShell". | |
10711 | * remote.c: Add PACKET_QStartupWithShell. | |
10712 | (extended_remote_create_inferior): Handle new | |
10713 | PACKET_QStartupWithShell. | |
10714 | (remote_protocol_features) <QStartupWithShell>: New entry for | |
10715 | PACKET_QStartupWithShell. | |
10716 | (_initialize_remote): Call "add_packet_config_cmd" for | |
10717 | QStartupShell. | |
10718 | ||
2090129c SDJ |
10719 | 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com> |
10720 | Pedro Alves <palves@redhat.com> | |
10721 | ||
10722 | * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-inferior.h" | |
10723 | and "nat/fork-inferior.h". | |
10724 | * common/common-inferior.h: New file, with contents from | |
10725 | "gdb/inferior.h". | |
10726 | * commom/common-utils.c: Include "common-utils.h". | |
10727 | (stringify_argv): New function. | |
10728 | * common/common-utils.h (stringify_argv): New prototype. | |
10729 | * configure.nat: Add "fork-inferior.o" as a dependency for | |
10730 | "*linux*", "fbsd*" and "nbsd*" hosts. | |
10731 | * corefile.c (get_exec_file): Update comment. | |
10732 | * darwin-nat.c (darwin_ptrace_him): Call "gdb_startup_inferior" | |
10733 | instead of "startup_inferior". | |
10734 | (darwin_create_inferior): Call "add_thread_silent" after | |
10735 | "fork_inferior". | |
10736 | * fork-child.c: Cleanup unnecessary includes. | |
10737 | (SHELL_FILE): Move to "common/common-fork-child.c". | |
10738 | (environ): Likewise. | |
10739 | (exec_wrapper): Initialize. | |
10740 | (get_exec_wrapper): New function. | |
10741 | (breakup_args): Move to "common/common-fork-child.c"; rename to | |
10742 | "breakup_args_for_exec". | |
10743 | (escape_bang_in_quoted_argument): Move to | |
10744 | "common/common-fork-child.c". | |
10745 | (saved_ui): New variable. | |
10746 | (prefork_hook): New function. | |
10747 | (postfork_hook): Likewise. | |
10748 | (postfork_child_hook): Likewise. | |
10749 | (gdb_startup_inferior): Likewise. | |
10750 | (fork_inferior): Move to "common/common-fork-child.c". Update | |
10751 | function to support gdbserver. | |
10752 | (startup_inferior): Likewise. | |
10753 | * gdbcore.h (get_exec_file): Remove declaration. | |
10754 | * gnu-nat.c (gnu_create_inferior): Call "gdb_startup_inferior" | |
10755 | instead of "startup_inferior". Call "add_thread_silent" after | |
10756 | "fork_inferior". | |
10757 | * inf-ptrace.c: Include "nat/fork-inferior.h" and "utils.h". | |
10758 | (inf_ptrace_create_inferior): Call "gdb_startup_inferior" | |
10759 | instead of "startup_inferior". Call "add_thread_silent" after | |
10760 | "fork_inferior". | |
10761 | * inferior.h: Include "common-inferior.h". | |
10762 | (trace_start_error): Move to "common/common-utils.h". | |
10763 | (trace_start_error_with_name): Likewise. | |
10764 | (fork_inferior): Move prototype to "nat/fork-inferior.h". | |
10765 | (startup_inferior): Likewise. | |
10766 | (gdb_startup_inferior): New prototype. | |
10767 | * nat/fork-inferior.c: New file, with contents from "fork-child.c". | |
10768 | * nat/fork-inferior.h: New file. | |
10769 | * procfs.c (procfs_init_inferior): Call "gdb_startup_inferior" | |
10770 | instead of "startup_inferior". Call "add_thread_silent" after | |
10771 | "fork_inferior". | |
10772 | * target.h (target_terminal_init): Move prototype to | |
10773 | "target/target.h". | |
10774 | (target_terminal_inferior): Likewise. | |
10775 | (target_terminal_ours): Likewise. | |
10776 | * target/target.h (target_terminal_init): New prototype, moved | |
10777 | from "target.h". | |
10778 | (target_terminal_inferior): Likewise. | |
10779 | (target_terminal_ours): Likewise. | |
10780 | * utils.c (gdb_flush_out_err): New function. | |
10781 | ||
043a4934 SDJ |
10782 | 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com> |
10783 | ||
10784 | * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-gdbthread.h". | |
10785 | * common/common-gdbthread.h: New file, with parts from | |
10786 | "gdb/gdbthread.h". | |
10787 | * gdbthread.h: Include "common-gdbthread.h". | |
10788 | (switch_to_thread): Moved to "common/common-gdbthread.h". | |
10789 | ||
15652511 SDJ |
10790 | 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com> |
10791 | ||
10792 | * Makefile.in (SFILES): Add "common/job-control.c". | |
10793 | (HFILES_NO_SRCDIR): Add "common/job-control.h". | |
10794 | (COMMON_OBS): Add "job-control.o". | |
10795 | * common/job-control.c: New file, with contents from | |
10796 | "gdb/inflow.c". | |
10797 | * common/job-control.h: New file, with contents from "terminal.h". | |
10798 | * fork-child.c: Include "job-control.h". | |
10799 | * inflow.c: Include "job-control.h". | |
10800 | (gdb_setpgid): Move to "common/common-inflow.c". | |
10801 | (_initialize_inflow): Move setting of "job_control" to | |
10802 | "handle_job_control". | |
10803 | * terminal.h (job_control): Moved to "common/common-terminal.h". | |
10804 | (gdb_setpgid): Likewise. | |
10805 | * top.c: Include "job_control.h". | |
10806 | * utils.c: Likewise. | |
10807 | (job_control): Moved to "job-control.c". | |
10808 | ||
2d7cc5c7 PA |
10809 | 2017-06-07 Pedro Alves <palves@redhat.com> |
10810 | ||
10811 | * Makefile.in (SFILES): Add gdb_regex.c. | |
10812 | (COMMON_OBS): Add gdb_regex.o. | |
10813 | * ada-lang.c (ada_add_standard_exceptions) | |
10814 | (ada_add_exceptions_from_frame, name_matches_regex) | |
10815 | (ada_add_global_exceptions, ada_exceptions_list_1): Change regex | |
10816 | parameter type to compiled_regex. Adjust. | |
10817 | (ada_exceptions_list): Use compiled_regex. | |
10818 | * break-catch-throw.c (exception_catchpoint::pattern): Now a | |
10819 | std::unique_ptr<compiled_regex>. | |
10820 | (exception_catchpoint::~exception_catchpoint): Remove regfree | |
10821 | call. | |
10822 | (check_status_exception_catchpoint): Adjust to use compiled_regex. | |
10823 | (handle_gnu_v3_exceptions): Adjust to use compiled_regex. | |
10824 | * breakpoint.c (solib_catchpoint::compiled): Now a | |
10825 | std::unique_ptr<compiled_regex>. | |
10826 | (solib_catchpoint::~solib_catchpoint): Remove regfree call. | |
10827 | (check_status_catch_solib): Adjust to use compiled_regex. | |
10828 | (add_solib_catchpoint): Adjust to use compiled_regex. | |
10829 | * cli/cli-cmds.c (apropos_command): Use compiled_regex. | |
10830 | * cli/cli-decode.c (apropos_cmd): Change regex parameter to | |
10831 | compiled_regex reference. Adjust to use it. | |
10832 | * cli/cli-decode.h: Remove struct re_pattern_buffer forward | |
10833 | declaration. Include "gdb_regex.h". | |
10834 | (apropos_cmd): Change regex parameter to compiled_regex reference. | |
10835 | * gdb_regex.c: New file. | |
10836 | * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Delete | |
10837 | declarations. | |
10838 | (class compiled_regex): New. | |
10839 | * linux-tdep.c: Include "common/gdb_optional.h". | |
10840 | (struct mapping_regexes): New, factored out from | |
10841 | mapping_is_anonymous_p, and adjusted to use compiled_regex. | |
10842 | (mapping_is_anonymous_p): Use mapping_regexes wrapped in a | |
10843 | gdb::optional and remove cleanups. Adjust to compiled_regex. | |
10844 | * probe.c: Include "common/gdb_optional.h". | |
10845 | (collect_probes): Use compiled_regex and gdb::optional and remove | |
10846 | cleanups. | |
10847 | * skip.c: Include "common/gdb_optional.h". | |
10848 | (skiplist_entry::compiled_function_regexp): Now a | |
10849 | gdb::optional<compiled_regex>. | |
10850 | (skiplist_entry::compiled_function_regexp_is_valid): Delete field. | |
10851 | (free_skiplist_entry): Remove regfree call. | |
10852 | (compile_skip_regexp, skip_rfunction_p): Adjust to use | |
10853 | compiled_regex and gdb::optional. | |
10854 | * symtab.c: Include "common/gdb_optional.h". | |
10855 | (search_symbols): Use compiled_regex and gdb::optional. | |
10856 | * utils.c (do_regfree_cleanup, make_regfree_cleanup) | |
10857 | (get_regcomp_error, compile_rx_or_error): Delete. Some bits moved | |
10858 | to gdb_regex.c. | |
10859 | ||
50d6adef AH |
10860 | 2017-06-07 Alan Hayward <alan.hayward@arm.com> |
10861 | ||
10862 | * regcache.c (regcache::save): Avoid buffer use. | |
10863 | (regcache::dump): Likewise. | |
10864 | ||
4a8a33c8 AH |
10865 | 2017-06-07 Alan Hayward <alan.hayward@arm.com> |
10866 | ||
10867 | * sh-tdep.c (sh_pseudo_register_read): Remove | |
10868 | MAX_REGISTER_SIZE. | |
10869 | (sh_pseudo_register_write): Likewise. | |
10870 | * sh64-tdep.c (sh64_pseudo_register_read): Likewise. | |
10871 | (sh64_pseudo_register_write): Likewise | |
10872 | ||
d1be909e AH |
10873 | 2017-06-07 Alan Hayward <alan.hayward@arm.com> |
10874 | ||
10875 | * aarch64-tdep.c (aarch64_store_return_value): Use | |
10876 | V_REGISTER_SIZE. | |
10877 | (aarch64_pseudo_read_value): Likewise. | |
10878 | (aarch64_pseudo_write): Likewise. | |
10879 | ||
f4a65042 YQ |
10880 | 2017-06-06 Yao Qi <yao.qi@linaro.org> |
10881 | ||
10882 | * regformats/regdef.h (set_register_cache): Remove the | |
10883 | declaration. | |
10884 | ||
9f7fb0aa AH |
10885 | 2017-06-06 Alan Hayward <alan.hayward@arm.com> |
10886 | ||
10887 | * frame.c (frame_unwind_register_signed): Use | |
10888 | frame_unwind_register_value. | |
10889 | ||
e1e01040 PA |
10890 | 2017-06-06 Pedro Alves <palves@redhat.com> |
10891 | ||
10892 | PR breakpoints/21553 | |
10893 | * breakpoint.c (create_breakpoints_sal_default) | |
10894 | (init_breakpoint_sal, create_breakpoint_sal): Use | |
10895 | gdb::unique_xmalloc_ptr for string parameters. | |
10896 | (create_breakpoint): Constify 'extra_string' and 'cond_string' | |
10897 | parameters. Replace cleanups with gdb::unique_xmalloc_ptr. | |
10898 | (base_breakpoint_create_breakpoints_sal) | |
10899 | (bkpt_create_breakpoints_sal, tracepoint_create_breakpoints_sal) | |
10900 | (strace_marker_create_breakpoints_sal) | |
10901 | (create_breakpoints_sal_default): Use gdb::unique_xmalloc_ptr for | |
10902 | string parameters. | |
10903 | * breakpoint.h (breakpoint_ops::create_breakpoints_sal): Use | |
10904 | gdb::unique_xmalloc_ptr for string parameters. | |
10905 | (create_breakpoint): Constify 'extra_string' and 'cond_string' | |
10906 | parameters. | |
10907 | ||
fbe654c8 AH |
10908 | 2017-06-06 Alan Hayward <alan.hayward@arm.com> |
10909 | ||
10910 | * alpha-tdep.c (alpha_register_to_value): Use | |
10911 | get_frame_register_value. | |
10912 | (alpha_value_to_register): Use ALPHA_REGISTER_SIZE. | |
10913 | ||
ae0d01d6 AH |
10914 | 2017-06-06 Alan Hayward <alan.hayward@arm.com> |
10915 | ||
10916 | * ia64-tdep.c (IA64_MAX_FP_REGISTER_SIZE) Add. | |
10917 | (ia64_register_to_value): Use IA64_MAX_FP_REGISTER_SIZE. | |
10918 | (ia64_value_to_register): Likewise. | |
10919 | (ia64_extract_return_value): Likewise. | |
10920 | (ia64_store_return_value): Likewise. | |
10921 | (ia64_push_dummy_call): Likewise. | |
10922 | ||
49cf576c JB |
10923 | 2017-06-04 Joel Brobecker <brobecker@adacore.com> |
10924 | ||
10925 | GDB 8.0 released. | |
10926 | ||
26b6a6ab SM |
10927 | 2017-06-03 Simon Marchi <simon.marchi@ericsson.com> |
10928 | ||
10929 | * x86-linux-nat.c (struct arch_lwp_info): Remove. | |
10930 | ||
22827c51 SM |
10931 | 2017-06-03 Simon Marchi <simon.marchi@polymtl.ca> |
10932 | ||
10933 | * linux-nat.c (linux_nat_post_attach_wait): Remove FIRST | |
10934 | parameter. | |
10935 | (linux_nat_attach): Adjust call to linux_nat_post_attach_wait. | |
10936 | ||
0e05cf3a SM |
10937 | 2017-06-02 Simon Marchi <simon.marchi@ericsson.com> |
10938 | ||
10939 | * event-loop.c (poll_timers): Unallocate timer using delete | |
10940 | instead of xfree. | |
10941 | ||
c1fc2657 SM |
10942 | 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca> |
10943 | ||
10944 | * breakpoint.h (struct breakpoint_ops) <dtor>: Remove. | |
10945 | (struct breakpoint) <~breakpoint>: New. | |
10946 | (struct watchpoint): Inherit from breakpoint. | |
10947 | <~watchpoint>: New. | |
10948 | <base>: Remove. | |
10949 | (struct tracepoint): Inherit from breakpoint. | |
10950 | <base>: Remove. | |
10951 | * breakpoint.c (longjmp_breakpoint_ops): Remove. | |
10952 | (struct longjmp_breakpoint): Inherit from breakpoint. | |
10953 | <~longjmp_breakpoint>: New. | |
10954 | <base>: Remove. | |
10955 | (new_breakpoint_from_type): Remove casts. | |
10956 | (watchpoint_in_thread_scope): Remove reference to base field. | |
10957 | (watchpoint_del_at_next_stop): Likewise. | |
10958 | (update_watchpoint): Likewise. | |
10959 | (watchpoint_check): Likewise. | |
10960 | (bpstat_check_watchpoint): Likewise. | |
10961 | (set_longjmp_breakpoint): Likewise. | |
10962 | (struct fork_catchpoint): Inherit from breakpoint. | |
10963 | <base>: Remove. | |
10964 | (struct solib_catchpoint): Inherit from breakpoint. | |
10965 | <~solib_catchpoint>: New. | |
10966 | <base>: Remove. | |
10967 | (dtor_catch_solib): Change to ... | |
10968 | (solib_catchpoint::~solib_catchpoint): ... this. | |
10969 | (breakpoint_hit_catch_solib): Remove reference to base field. | |
10970 | (add_solib_catchpoint): Likewise. | |
10971 | (create_fork_vfork_event_catchpoint): Likewise. | |
10972 | (struct exec_catchpoint): Inherit from breakpoint. | |
10973 | <~exec_catchpoint>: New. | |
10974 | <base>: Remove. | |
10975 | (dtor_catch_exec): Change to ... | |
10976 | (exec_catchpoint::~exec_catchpoint): ... this. | |
10977 | (dtor_watchpoint): Change to ... | |
10978 | (watchpoint::~watchpoint): ... this. | |
10979 | (watch_command_1): Remove reference to base field. | |
10980 | (catch_exec_command_1): Likewise. | |
10981 | (base_breakpoint_dtor): Change to ... | |
10982 | (breakpoint::~breakpoint): ... this. | |
10983 | (base_breakpoint_ops): Remove dtor field value. | |
10984 | (longjmp_bkpt_dtor): Change to ... | |
10985 | (longjmp_breakpoint::~longjmp_breakpoint): ... this. | |
10986 | (strace_marker_create_breakpoints_sal): Remove reference to base | |
10987 | field. | |
10988 | (delete_breakpoint): Don't manually call breakpoint destructor. | |
10989 | (create_tracepoint_from_upload): Remove reference to base field. | |
10990 | (trace_pass_set_count): Likewise. | |
10991 | (initialize_breakpoint_ops): Don't initialize | |
10992 | momentary_breakpoint_ops, don't set dtors. | |
10993 | * ada-lang.c (struct ada_catchpoint): Inherit from breakpoint. | |
10994 | <~ada_catchpoint>: New. | |
10995 | <base>: Remove. | |
10996 | (create_excep_cond_exprs): Remove reference to base field. | |
10997 | (dtor_exception): Change to ... | |
10998 | (ada_catchpoint::~ada_catchpoint): ... this. | |
10999 | (dtor_catch_exception): Remove. | |
11000 | (dtor_catch_exception_unhandled): Remove. | |
11001 | (dtor_catch_assert): Remove. | |
11002 | (create_ada_exception_catchpoint): Remove reference to base | |
11003 | field. | |
11004 | (initialize_ada_catchpoint_ops): Don't set dtors. | |
11005 | * break-catch-sig.c (struct signal_catchpoint): Inherit from | |
11006 | breakpoint. | |
11007 | <~signal_catchpoint>: New. | |
11008 | <base>: Remove. | |
11009 | (signal_catchpoint_dtor): Change to ... | |
11010 | (signal_catchpoint::~signal_catchpoint): ... this. | |
11011 | (create_signal_catchpoint): Remove reference to base field. | |
11012 | (initialize_signal_catchpoint_ops): Don't set dtor. | |
11013 | * break-catch-syscall.c (struct syscall_catchpoint): Inherit | |
11014 | from breakpoint. | |
11015 | <~syscall_catchpoint>: New. | |
11016 | <base>: Remove. | |
11017 | (dtor_catch_syscall): Change to ... | |
11018 | (syscall_catchpoint::~syscall_catchpoint): ... this. | |
11019 | (create_syscall_event_catchpoint): Remove reference to base | |
11020 | field. | |
11021 | (initialize_syscall_catchpoint_ops): Don't set dtor. | |
11022 | * break-catch-throw.c (struct exception_catchpoint): Inherit | |
11023 | from breakpoint. | |
11024 | <~exception_catchpoint>: New. | |
11025 | <base>: Remove. | |
11026 | (dtor_exception_catchpoint): Change to ... | |
11027 | (exception_catchpoint::~exception_catchpoint): ... this. | |
11028 | (handle_gnu_v3_exceptions): Remove reference to base field. | |
11029 | (initialize_throw_catchpoint_ops): Don't set dtor. | |
11030 | * ctf.c (ctf_get_traceframe_address): Remove reference to base | |
11031 | field. | |
11032 | * remote.c (remote_get_tracepoint_status): Likewise. | |
11033 | * tracefile-tfile.c (tfile_get_traceframe_address): Likewise. | |
11034 | * tracefile.c (tracefile_fetch_registers): Likewise. | |
11035 | * tracepoint.c (actions_command): Likewise. | |
11036 | (validate_actionline): Likewise. | |
11037 | (tfind_1): Likewise. | |
11038 | (get_traceframe_location): Likewise. | |
11039 | (find_matching_tracepoint_location): Likewise. | |
11040 | (parse_tracepoint_status): Likewise. | |
11041 | * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise. | |
11042 | ||
3b0871f4 SM |
11043 | 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca> |
11044 | ||
11045 | * breakpoint.c (struct longjmp_breakpoint): New struct. | |
11046 | (is_tracepoint_type): Change return type to bool. | |
11047 | (is_longjmp_type): New function. | |
11048 | (new_breakpoint_from_type): Handle longjmp kinds of breakpoints. | |
11049 | (set_raw_breakpoint_without_location): Use | |
11050 | new_breakpoint_from_type. | |
11051 | (set_raw_breakpoint): Likewise. | |
11052 | ||
a5e364af SM |
11053 | 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca> |
11054 | ||
11055 | * breakpoint.c (new_breakpoint_from_type): New function. | |
11056 | (create_breakpoint_sal): Use new_breakpoint_from_type and | |
11057 | unique_ptr. | |
11058 | (create_breakpoint): Likewise. | |
11059 | ||
ae3b3f34 SM |
11060 | 2017-05-31 Simon Marchi <simon.marchi@ericsson.com> |
11061 | ||
11062 | * memattr.c (mem_info_command): Rename to ... | |
11063 | (info_mem_command): ... this. | |
11064 | (mem_enable_command): Rename to ... | |
11065 | (enable_mem_command): ... this. | |
11066 | (mem_disable_command): Rename to ... | |
11067 | (disable_mem_command): ... this. | |
11068 | (mem_delete_command): Rename to ... | |
11069 | (delete_mem_command): ... this. | |
11070 | (_initialize_mem): Adjust function names. | |
11071 | ||
13ace077 MM |
11072 | 2017-05-31 Markus Metzger <markus.t.metzger@intel.com> |
11073 | ||
11074 | * btrace.c (handle_pt_insn_events): New. | |
11075 | (ftrace_add_pt): Call handle_pt_insn_events. Rename ERRCODE into | |
11076 | STATUS. Split into this and ... | |
11077 | (handle_pt_insn_event_flags): ... this. | |
11078 | ||
c56ccc05 MM |
11079 | 2017-05-31 Markus Metzger <markus.t.metzger@intel.com> |
11080 | ||
11081 | * configure.ac: Check for pt_insn_event, struct pt_insn.enabled, | |
11082 | and struct pt_insn.resynced. | |
11083 | * configure: Regenerated. | |
11084 | * config.in: Regenerated. | |
11085 | ||
08c3f6d2 TW |
11086 | 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com> |
11087 | ||
11088 | * btrace.c (ftrace_find_call_by_number): New function. | |
11089 | (ftrace_new_function): Store objects, not pointers. | |
11090 | (ftrace_find_call_by_number, ftrace_new_return, ftrace_new_switch, | |
11091 | ftrace_new_gap, ftrace_update_function, | |
11092 | ftrace_compute_global_level_offset, btrace_stich_bts, btrace_clear, | |
11093 | btrace_insn_get, btrace_insn_get_error, btrace_insn_end, | |
11094 | btrace_insn_next, btrace_insn_prev, ptrace_find_insn_by_number, | |
11095 | btrace_ends_with_single_insn, btrace_call_get): Account for | |
11096 | btrace_thread_info::functions now storing objects. | |
11097 | * btrace.h (struct btrace_thread_info): Add constructor. | |
11098 | (struct btrace_thread_info) <functions>: Make std::vector. | |
11099 | (struct btrace_thread_info) <prev, next, up, insn, errcode, flags): | |
11100 | Initialize with default values. | |
11101 | * record-btrace.c (record_btrace_frame_sniffer): Account for | |
11102 | btrace_thread_info::functions now storing objects. | |
11103 | ||
8ffd39f2 TW |
11104 | 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com> |
11105 | ||
11106 | * btrace.c: Remove typedef bfun_s. | |
11107 | (ftrace_new_gap): Directly add gaps to the list of gaps. | |
11108 | (btrace_bridge_gaps, btrace_compute_ftrace_bts, pt_btrace_insn_flags, | |
11109 | ftrace_add_pt, btrace_compute_ftrace_pt, btrace_compute_ftrace_1, | |
11110 | btrace_finalize_ftrace, btrace_compute_ftrace): Use std::vector | |
11111 | instead of gdb VEC. | |
11112 | ||
4aeb0dfc TW |
11113 | 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com> |
11114 | ||
11115 | * btrace.c (ftrace_fixup_caller, ftrace_new_return, ftrace_connect_bfun, | |
11116 | ftrace_bridge_gap): Replace references to btrace_thread_info::segment | |
11117 | with btrace_thread_info::next_segment and | |
11118 | btrace_thread_info::prev_segment. | |
11119 | * btrace.h: Remove struct btrace_func_link. | |
11120 | (struct btrace_function): Replace pair of function segment pointers | |
11121 | with pair of indices. | |
11122 | * python/py-record-btrace.c (btpy_call_prev_sibling, | |
11123 | btpy_call_next_sibling): Replace references to | |
11124 | btrace_thread_info::segment with btrace_thread_info::next_segment and | |
11125 | btrace_thread_info::prev_segment. | |
11126 | * record-btrace.c (record_btrace_frame_this_id): Use | |
11127 | btrace_find_call_by_number. | |
11128 | ||
eb8f2b9c TW |
11129 | 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com> |
11130 | ||
11131 | * btrace.c (ftrace_new_function, ftrace_fixup_level, | |
11132 | ftrace_connect_bfun, ftrace_bridge_gap, btrace_bridge_gaps, | |
11133 | btrace_insn_next, btrace_insn_prev): Remove references to | |
11134 | btrace_thread_info::flow. | |
11135 | * btrace.h (struct btrace_function): Remove FLOW. | |
11136 | ||
42bfe59e TW |
11137 | 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com> |
11138 | ||
11139 | * btrace.c (ftrace_find_call_by_number): New function. | |
11140 | (ftrace_update_caller, ftrace_new_call, ftrace_new_tailcall, | |
11141 | ftrace_get_caller, ftrace_find_call, ftrace_new_return, | |
11142 | ftrace_match_backtrace, ftrace_connect_bfun, ftrace_connect_backtrace, | |
11143 | ftrace_bridge_gap, btrace_bridge_gaps): Use btrace_function::up as an | |
11144 | index. | |
11145 | * btrace.h (struct btrace_function): Turn UP into an index. | |
11146 | * python/py-record-btrace.c (btpy_call_up): Use btrace_function::up | |
11147 | as an index. | |
11148 | * record-btrace.c (record_btrace_frame_unwind_stop_reason, | |
11149 | record_btrace_frame_prev_register, record_btrace_frame_sniffer, | |
11150 | record_btrace_tailcall_frame_sniffe): Use btrace_find_call_by_number. | |
11151 | ||
b54b03bd TW |
11152 | 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com> |
11153 | ||
11154 | * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall, | |
11155 | ftrace_new_return, ftrace_new_switch, ftrace_new_gap, | |
11156 | ftrace_update_function, ftrace_compute_global_level_offset, | |
11157 | btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt, | |
11158 | btrace_stitch_bts, btrace_fetch, btrace_clear, btrace_insn_number, | |
11159 | btrace_insn_end, btrace_is_empty): Remove references to | |
11160 | btrace_thread_info::begin and btrace_thread_info::end. | |
11161 | * btrace.h (struct btrace_thread_info): Remove BEGIN and END. | |
11162 | (struct btrace_thread_info) <functions>: Adjust comment. | |
11163 | * record-btrace.c (record_btrace_start_replaying): Remove reference to | |
11164 | btrace_thread_info::begin. | |
11165 | ||
8286623c TW |
11166 | 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com> |
11167 | ||
11168 | * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall, | |
11169 | ftrace_new_return, ftrace_new_switch, ftrace_new_gap, | |
11170 | ftrace_update_function): Remove arguments that implicitly were always | |
11171 | BTINFO->END. | |
11172 | (btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt): | |
11173 | Don't pass BTINFO->END. | |
11174 | ||
a0f1b963 TW |
11175 | 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com> |
11176 | ||
11177 | * btrace.c: (btrace_insn_get, btrace_insn_get_error, btrace_insn_number, | |
11178 | btrace_insn_begin, btrace_insn_end, btrace_insn_next, btrace_insn_prev, | |
11179 | btrace_find_insn_by_number): Replace function segment pointer with | |
11180 | index. | |
11181 | (btrace_insn_cmp): Simplify. | |
11182 | * btrace.h: (struct btrace_insn_iterator) Rename index to | |
11183 | insn_index. Replace function segment pointer with index into function | |
11184 | segment vector. | |
11185 | * record-btrace.c (record_btrace_call_history): Replace function | |
11186 | segment pointer use with index. | |
11187 | (record_btrace_frame_sniffer): Retrieve function call segment through | |
11188 | vector. | |
11189 | (record_btrace_set_replay): Remove defunc't safety check. | |
11190 | ||
f158f208 TW |
11191 | 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com> |
11192 | ||
11193 | * btrace.c (btrace_ends_with_single_insn): New function. | |
11194 | (btrace_call_get, btrace_call_number, btrace_call_begin, | |
11195 | btrace_call_end, btrace_call_next, btrace_call_prev, | |
11196 | btrace_find_call_by_number): Use index into call segment vector | |
11197 | instead of pointer. | |
11198 | (btrace_call_cmp): Simplify. | |
11199 | * btrace.h (struct btrace_call_iterator): Replace function call segment | |
11200 | pointer with index into vector. | |
11201 | * record-btrace.c (record_btrace_call_history): Use index instead of | |
11202 | pointer. | |
11203 | ||
521103fd TW |
11204 | 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com> |
11205 | ||
11206 | * btrace.c (btrace_insn_begin, btrace_insn_end, | |
11207 | btrace_find_insn_by_number): Add btinfo to iterator. | |
11208 | * btrace.h (struct btrace_insn_iterator): Add btinfo. | |
11209 | ||
17b89b34 TW |
11210 | 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com> |
11211 | ||
11212 | * btrace.c (ftrace_new_function): Add btrace_thread_info to arguments | |
11213 | and save pointers directly. | |
11214 | (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return, | |
11215 | ftrace_new_switch, ftrace_new_gap, ftrace_update_function, | |
11216 | ftrace_add_pt): Add btrace_thread_info to arguments. Adjust for | |
11217 | changed signature of functions. | |
11218 | (btrace_compute_ftrace_pt): Adjust for changed signature of functions. | |
11219 | (btrace_fetch): Remove code that adds btrace_function pointers to | |
11220 | vector of btrace_functions. | |
11221 | (btrace_clear): Simplify freeing vector of btrace_functions. | |
11222 | ||
2b51eddc TW |
11223 | 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com> |
11224 | ||
11225 | * btrace.c (btrace_fetch, btrace_clear, btrace_find_insn_by_number): | |
11226 | Replace VEC_* with std::vector functions. | |
11227 | * btrace.h: Add include: vector. Remove typedef for DEF_VEC_P. | |
11228 | (struct btrace_thread_info)<functions>: Change type to std::vector. | |
11229 | ||
db6be0d5 SM |
11230 | 2017-05-30 Simon Marchi <simon.marchi@ericsson.com> |
11231 | ||
11232 | * NEWS (Changes in GDB 8.0): Remove extra empty line. Move | |
11233 | "Removed targets and native configurations" up. Merge duplicate | |
11234 | "New commands" sub-sections. Add "New options" sub-sections. | |
11235 | ||
b057297a AH |
11236 | 2017-05-26 Alan Hayward <alan.hayward@arm.com> |
11237 | ||
11238 | * defs.h (copy_integer_to_size): New declaration. | |
11239 | * findvar.c (copy_integer_to_size): New function. | |
11240 | (do_cint_test): New selftest function. | |
11241 | (copy_integer_to_size_test): Likewise. | |
11242 | (_initialize_findvar): Likewise. | |
11243 | * mips-fbsd-tdep.c (mips_fbsd_supply_reg): Use raw_supply_integer. | |
11244 | (mips_fbsd_collect_reg): Use raw_collect_integer. | |
11245 | * mips-linux-tdep.c (supply_32bit_reg): Use raw_supply_integer. | |
11246 | (mips64_fill_gregset): Use raw_collect_integer | |
11247 | (mips64_fill_fpregset): Use raw_supply_integer. | |
11248 | * regcache.c (regcache::raw_supply_integer): New function. | |
11249 | (regcache::raw_collect_integer): Likewise. | |
11250 | * regcache.h: (regcache::raw_supply_integer): New declaration. | |
11251 | (regcache::raw_collect_integer): Likewise. | |
11252 | ||
b77b02a5 YQ |
11253 | 2017-05-24 Yao Qi <yao.qi@linaro.org> |
11254 | ||
11255 | * Makefile.in (SFILES): Add gdbarch-selftests.c. | |
11256 | (COMMON_OBS): Add gdbarch-selftests.o. | |
11257 | * frame.c [GDB_SELF_TESTS] (create_new_frame): New function. | |
11258 | * frame.h [GDB_SELF_TESTS] (create_new_frame): Declare. | |
11259 | * gdbarch-selftests.c: New file. | |
11260 | * regcache.h (regcache) <~regcache>: Mark it virtual if | |
11261 | GDB_SELF_TEST. | |
11262 | <raw_write>: Likewise. | |
11263 | ||
e521e87e YQ |
11264 | 2017-05-24 Yao Qi <yao.qi@linaro.org> |
11265 | ||
11266 | * regcache.c (current_regcache): Change it to | |
11267 | regcache::current_regcache. | |
11268 | (regcache_observer_target_changed): Update. | |
11269 | (regcache_thread_ptid_changed): Make it a regcache static | |
11270 | method. | |
11271 | (regcache_thread_ptid_changed): Update. | |
11272 | (class regcache_access): New. | |
11273 | (current_regcache_test): Update. | |
11274 | (_initialize_regcache): Update. | |
11275 | * regcache.h: Include forward_list. | |
11276 | (regcache): Declare regcache_thread_ptid_changed and declare | |
11277 | registers_changed_ptid as friend. | |
11278 | ||
d8e07dda YQ |
11279 | 2017-05-24 Yao Qi <yao.qi@linaro.org> |
11280 | ||
11281 | * i387-tdep.c (i387_register_to_value): Use register_size | |
11282 | instead of TYPE_LENGTH. | |
11283 | * m68k-tdep.c (m68k_register_to_value): Likewise. | |
11284 | ||
8c8f9122 YQ |
11285 | 2017-05-24 Yao Qi <yao.qi@linaro.org> |
11286 | ||
11287 | * i387-tdep.c (i387_convert_register_p): Return false if type | |
11288 | code isn't TYPE_CODE_FLT. | |
11289 | ||
68fce50f YQ |
11290 | 2017-05-24 Yao Qi <yao.qi@linaro.org> |
11291 | ||
11292 | * alpha-tdep.c (alpha_convert_register_p): Return true if type | |
11293 | length is 4. | |
11294 | (alpha_register_to_value): Remove type length check. | |
11295 | (alpha_value_to_register): Likewise. | |
11296 | ||
88954b49 YQ |
11297 | 2017-05-24 Yao Qi <yao.qi@linaro.org> |
11298 | ||
11299 | * ia64-tdep.c (ia64_convert_register_p): Check type's code is | |
11300 | TYPE_CODE_FLT. | |
11301 | ||
e3ec9b69 YQ |
11302 | 2017-05-24 Yao Qi <yao.qi@linaro.org> |
11303 | ||
11304 | * m68k-tdep.c (m68k_convert_register_p): Check type's code is | |
11305 | TYPE_CODE_FLT or not. | |
11306 | ||
cdd238da YQ |
11307 | 2017-05-24 Yao Qi <yao.qi@linaro.org> |
11308 | ||
11309 | * alpha-tdep.c (alpha_gdbarch_init): Use XCNEW instead of XNEW. | |
11310 | * avr-tdep.c (avr_gdbarch_init): Likewise. | |
11311 | * bfin-tdep.c (bfin_gdbarch_init): Likewise. | |
11312 | * cris-tdep.c (cris_gdbarch_init): Likewise. | |
11313 | * ft32-tdep.c (ft32_gdbarch_init): Likewise. | |
11314 | * lm32-tdep.c (lm32_gdbarch_init): Likewise. | |
11315 | * m32r-tdep.c (m32r_gdbarch_init): Likewise. | |
11316 | * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise. | |
11317 | * mep-tdep.c (mep_gdbarch_init): Likewise. | |
11318 | * microblaze-tdep.c (microblaze_gdbarch_init): Likewise. | |
11319 | * mips-tdep.c (mips_gdbarch_init): Likewise. | |
11320 | * mn10300-tdep.c (mn10300_gdbarch_init): Likewise. | |
11321 | * moxie-tdep.c (moxie_gdbarch_init): Likewise. | |
11322 | * msp430-tdep.c (msp430_gdbarch_init): Likewise. | |
11323 | * sh64-tdep.c (sh64_gdbarch_init): Likewise. | |
11324 | * v850-tdep.c (v850_gdbarch_init): Likewise. | |
11325 | ||
7a3929c4 YQ |
11326 | 2017-05-24 Yao Qi <yao.qi@linaro.org> |
11327 | ||
11328 | * selftest-arch.c (tests_with_arch): Call registers_changed | |
11329 | and reinit_frame_cache. | |
11330 | * selftest.c (run_self_tests): Likewise. | |
11331 | ||
f4985dba YQ |
11332 | 2017-05-24 Yao Qi <yao.qi@linaro.org> |
11333 | ||
11334 | * rs6000-tdep.c (gdb_print_insn_powerpc): Remove. | |
11335 | (rs6000_gdbarch_init): Don't call set_gdbarch_print_insn. | |
11336 | ||
ab20fa4a YQ |
11337 | 2017-05-24 Yao Qi <yao.qi@linaro.org> |
11338 | ||
11339 | * rl78-tdep.c (rl78_gdbarch_init): Don't call | |
11340 | set_gdbarch_print_insn. | |
11341 | ||
f532ab94 YQ |
11342 | 2017-05-24 Yao Qi <yao.qi@linaro.org> |
11343 | ||
11344 | * h8300-tdep.c (h8300_gdbarch_init): Don't call | |
11345 | set_gdbarch_print_insn. | |
11346 | ||
39503f82 YQ |
11347 | 2017-05-24 Yao Qi <yao.qi@linaro.org> |
11348 | ||
11349 | * alpha-tdep.c (alpha_gdbarch_init): Don't call | |
11350 | set_gdbarch_print_insn. | |
11351 | * arc-tdep.c (arc_gdbarch_init): Likewise. | |
11352 | * arch-utils.c: include dis-asm.h. | |
11353 | (default_print_insn): New function. | |
11354 | * arch-utils.h (default_print_insn): Declare. | |
11355 | * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_print_insn. | |
11356 | * bfin-tdep.c (bfin_gdbarch_init): Likewise. | |
11357 | * cris-tdep.c (cris_delayed_get_disassembler): Remove. | |
11358 | (cris_gdbarch_init): Don't call set_gdbarch_print_insn. | |
11359 | * frv-tdep.c (frv_gdbarch_init): Likewise. | |
11360 | * ft32-tdep.c (ft32_gdbarch_init): Likewise. | |
11361 | * gdbarch.sh (print_insn): Use default_print_insn. | |
11362 | * gdbarch.c: Regenerated. | |
11363 | * hppa-tdep.c (hppa_gdbarch_init): Likewise. | |
11364 | * iq2000-tdep.c (iq2000_gdbarch_init): Likewise. | |
11365 | * lm32-tdep.c (lm32_gdbarch_init): Likewise. | |
11366 | * m32c-tdep.c (m32c_gdbarch_init): Likewise. | |
11367 | * m32r-tdep.c (m32r_gdbarch_init): Likewise. | |
11368 | * m68hc11-tdep.c (gdb_print_insn_m68hc11): Remove. | |
11369 | (m68hc11_gdbarch_init): Don't call set_gdbarch_print_insn. | |
11370 | * m68k-tdep.c (m68k_gdbarch_init): Likewise. | |
11371 | * m88k-tdep.c (m88k_gdbarch_init): Likewise. | |
11372 | * microblaze-tdep.c (microblaze_gdbarch_init): Likewise. | |
11373 | * mn10300-tdep.c (mn10300_gdbarch_init): Likewise. | |
11374 | * moxie-tdep.c (moxie_gdbarch_init): Likewise. | |
11375 | * msp430-tdep.c (msp430_gdbarch_init): Likewise. | |
11376 | * mt-tdep.c (mt_gdbarch_init): Likewise. | |
11377 | * nds32-tdep.c (nds32_gdbarch_init): Likewise. | |
11378 | * nios2-tdep.c (nios2_print_insn): Remove. | |
11379 | (nios2_gdbarch_init): Don't call set_gdbarch_print_insn. | |
11380 | * rx-tdep.c (rx_gdbarch_init): Likewise. | |
11381 | * s390-linux-tdep.c (s390_gdbarch_init): Likewise. | |
11382 | * score-tdep.c (score_print_insn): Remove. | |
11383 | (score_gdbarch_init): Don't call set_gdbarch_print_insn. | |
11384 | * sh-tdep.c (sh_gdbarch_init): Likewise. | |
11385 | * sh64-tdep.c (sh64_gdbarch_init): Likewise. | |
11386 | * sparc-tdep.c (sparc32_gdbarch_init): Likewise. | |
11387 | * tic6x-tdep.c (tic6x_print_insn): Remove. | |
11388 | (tic6x_gdbarch_init): Don't call set_gdbarch_print_insn. | |
11389 | * tilegx-tdep.c (tilegx_gdbarch_init): Likewise. | |
11390 | * v850-tdep.c (v850_gdbarch_init): Likewise. | |
11391 | * vax-tdep.c (vax_gdbarch_init): Likewise. | |
11392 | * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise. | |
11393 | * xtensa-tdep.c (xtensa_gdbarch_init): Likewise. | |
11394 | ||
f7241d4f JB |
11395 | 2017-05-23 John Baldwin <jhb@FreeBSD.org> |
11396 | ||
11397 | * mips-fbsd-tdep.c (MIPS_PC_REGNUM): Remove. | |
11398 | (MIPS_FP0_REGNUM): Remove. | |
11399 | (MIPS_FSR_REGNUM): Remove. | |
11400 | (mips_fbsd_supply_fpregs): Use mips_regnum. | |
11401 | (mips_fbsd_supply_gregs): Likewise. | |
11402 | (mips_fbsd_collect_fpregs): Likewise. | |
11403 | (mips_fbsd_collect_gregs): Likewise. | |
11404 | ||
d489d81d JB |
11405 | 2017-05-23 John Baldwin <jhb@FreeBSD.org> |
11406 | ||
11407 | * mips-fbsd-nat.c (getregs_supplies): Fix upper bound comparison. | |
11408 | (getpfpregs_supplies): New function. | |
11409 | (mips_fbsd_fetch_inferior_registers): Remove early exit and use | |
11410 | getfpregs_supplies. | |
11411 | (mips_fbsd_store_inferior_registers): Likewise. | |
11412 | ||
e11b3cdc PA |
11413 | 2017-05-22 Pedro Alves <palves@redhat.com> |
11414 | ||
11415 | * MAINTAINERS (Host/Native): Add John Baldwin as FreeBSD | |
11416 | maintainer. | |
11417 | ||
0f068fb5 AH |
11418 | 2017-05-22 Alan Hayward <alan.hayward@arm.com> |
11419 | ||
11420 | * ppc-linux-nat.c (fetch_register): Use PPC_MAX_REGISTER_SIZE. | |
11421 | (store_register): Likewise. | |
11422 | * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Likewise. | |
11423 | (get_decimal_float_return_value): Likewise. | |
11424 | (do_ppc_sysv_return_value): Likewise. | |
11425 | (ppc64_sysv_abi_push_integer): Likewise. | |
11426 | (ppc64_sysv_abi_push_freg): Likewise. | |
11427 | (ppc64_sysv_abi_return_value_base): Likewise. | |
11428 | (ppc64_sysv_abi_return_value): Likewise. | |
11429 | * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise. | |
11430 | * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise. | |
11431 | * rs6000-nat.c: Likewise. | |
11432 | * rs6000-tdep.c (rs6000_register_to_value): Likewise. | |
11433 | (rs6000_value_to_register): Likewise. | |
11434 | * ppc-tdep.h (PPC_MAX_REGISTER_SIZE): Add. | |
11435 | ||
e6cf65f2 TT |
11436 | 2017-05-21 Tom Tromey <tom@tromey.com> |
11437 | ||
11438 | PR rust/21466: | |
11439 | * rust-lang.c (rust_print_type) <TYPE_CODE_ARRAY>: Print unsized | |
11440 | arrays as "[T]", not "[T; ]". | |
11441 | ||
43cc5389 TT |
11442 | 2017-05-19 Tom Tromey <tom@tromey.com> |
11443 | ||
11444 | PR rust/21484: | |
11445 | * rust-lang.c (exp_descriptor_rust): New function. | |
11446 | (rust_language_defn): Use it. | |
11447 | * p-lang.c (pascal_language_defn): Update. | |
11448 | * opencl-lang.c (opencl_language_defn): Update. | |
11449 | * objc-lang.c (objc_language_defn): Update. | |
11450 | * m2-lang.c (m2_language_defn): Update. | |
11451 | * language.h (struct language_defn) | |
11452 | <la_watch_location_expression>: New member. | |
11453 | * language.c (unknown_language_defn, auto_language_defn) | |
11454 | (local_language_defn): Update. | |
11455 | * go-lang.c (go_language_defn): Update. | |
11456 | * f-lang.c (f_language_defn): Update. | |
11457 | * d-lang.c (d_language_defn): Update. | |
11458 | * c-lang.h (c_watch_location_expression): Declare. | |
11459 | * c-lang.c (c_watch_location_expression): New function. | |
11460 | (c_language_defn, cplus_language_defn, asm_language_defn) | |
11461 | (minimal_language_defn): Use it. | |
11462 | * breakpoint.c (watch_command_1): Call | |
11463 | la_watch_location_expression. | |
11464 | * ada-lang.c (ada_language_defn): Update. | |
11465 | ||
7a6e7fcc RO |
11466 | 2017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
11467 | ||
6e7e1744 RO |
11468 | PR tui/21482 |
11469 | * gdb_curses.h (NOMACROS): Define. | |
11470 | (NCURSES_NOMACROS): Define. | |
11471 | ||
11472 | 2017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | |
11473 | ||
11474 | PR tui/21482 | |
7a6e7fcc RO |
11475 | * tui/tui-windata.c (tui_erase_data_content): Cast last mvwaddstr |
11476 | arg to char *. | |
11477 | * tui/tui-wingeneral.c (box_win): Likewise. | |
11478 | * tui/tui-winsource.c (tui_erase_source_content): Likewise. | |
11479 | (tui_show_source_line): Likewise. | |
11480 | (tui_show_exec_info_content): Likewise. | |
11481 | ||
1933fd8e VM |
11482 | 2017-05-19 Vladimir Mezentsev <vladimir.mezentsev@oracle.com> |
11483 | ||
11484 | * sparc-tdep.c (sparc_structure_return_p) | |
11485 | (sparc_arg_on_registers_p): New functions. | |
11486 | (sparc32_store_arguments): Use them. | |
11487 | * sparc64-tdep.c (sparc64_16_byte_align_p) | |
11488 | (sparc64_store_floating_fields, sparc64_extract_floating_fields): | |
11489 | Handle TYPE_CODE_ARRAY. | |
11490 | ||
21873064 YQ |
11491 | 2017-05-17 Yao Qi <yao.qi@linaro.org> |
11492 | ||
11493 | * cli/cli-decode.c (add_alias_cmd): New function. | |
11494 | * command.h (add_alias_cmd): Declare. | |
11495 | * infcmd.c (_initialize_infcmd): Don't call add_com_alias, | |
11496 | instead call add_alias_cmd. | |
11497 | ||
2b351b19 PA |
11498 | 2017-05-17 Pedro Alves <palves@redhat.com> |
11499 | ||
11500 | * Makefile.in (nat_extra_makefile_frag): Rename to ... | |
11501 | (nat_makefile_frag): ... this. All references updated. | |
11502 | * configure.ac: Likewise. | |
11503 | * configure.nat: Likewise. Enhance comments. | |
11504 | * configure: Regenerate. | |
11505 | ||
5f2ad7a3 RO |
11506 | 2017-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
11507 | ||
11508 | * procfs.c (procfs_create_inferior): Change prototype to match | |
11509 | definition. | |
11510 | ||
adf3dde5 EZ |
11511 | 2017-05-13 Eli Zaretskii <eliz@gnu.org> |
11512 | ||
11513 | * tui/tui.c (tui_enable): Cast "unknown" to 'char *' to avoid a | |
11514 | C++ compiler warning. | |
11515 | ||
6830f270 TT |
11516 | 2017-05-12 Tom Tromey <tom@tromey.com> |
11517 | ||
11518 | PR rust/21483: | |
11519 | * rust-lang.c (rust_evaluate_subexp) <STRUCTOP_STRUCT>: Don't | |
11520 | recurse, just call value_struct_elt directly. | |
11521 | ||
68f2f2e3 TT |
11522 | 2017-05-12 Tom Tromey <tom@tromey.com> |
11523 | ||
11524 | * rust-lang.c (rust_dump_subexp_body) <STRUCTOP_ANONYMOUS, | |
11525 | OP_RUST_ARRAY>: Fix. | |
11526 | ||
256afbc2 TT |
11527 | 2017-05-12 Tom Tromey <tom@tromey.com> |
11528 | ||
11529 | * rust-lang.c (rust_print_subexp): Replace "return" with "break". | |
11530 | ||
94bb8dfe YQ |
11531 | 2017-05-09 Yao Qi <yao.qi@linaro.org> |
11532 | ||
11533 | * regcache.c: Include <forward_list>. | |
11534 | (struct regcache_list): Remove. | |
11535 | (current_regcache): Update. | |
11536 | (get_thread_arch_aspace_regcache): Update for std::forward_list. | |
11537 | (regcache_thread_ptid_changed): Likewise. | |
11538 | (registers_changed_ptid): Likewise. | |
11539 | (current_regcache_size): Likewise. | |
11540 | ||
8248946c YQ |
11541 | 2017-05-09 Yao Qi <yao.qi@linaro.org> |
11542 | ||
11543 | * regcache.c [GDB_SELF_TEST]: Include selftest.h. | |
11544 | (current_regcache_size): New function. | |
11545 | (current_regcache_test): New function. | |
11546 | (_initialize_regcache) [GDB_SELF_TEST]: Register the unit test. | |
11547 | ||
313c5961 AH |
11548 | 2017-05-08 Alan Hayward <alan.hayward@arm.com> |
11549 | ||
11550 | * mips-tdep.c (mips_o32_return_value): Remove unused buffer. | |
11551 | (print_gp_register_row): Use get_frame_register_value. | |
11552 | ||
27bfc1d1 AH |
11553 | 2017-05-08 Alan Hayward <alan.hayward@arm.com> |
11554 | ||
11555 | * mips-linux-tdep.c (mips_supply_gregset): Use raw_supply_zeroed. | |
11556 | (mips_supply_fpregset): Likewise. | |
11557 | (mips64_supply_gregset): Likewise. | |
11558 | ||
146e6c5c AH |
11559 | 2017-05-08 Alan Hayward <alan.hayward@arm.com> |
11560 | ||
11561 | * mn10300-linux-tdep.c (am33_supply_gregset_method): Use | |
11562 | regcache->raw_supply_zeroed. | |
11563 | ||
e50f25ec SDJ |
11564 | 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com> |
11565 | ||
11566 | * configure.nat: Rearrange 'case' statements to match | |
11567 | host before cpu. | |
11568 | ||
21ea5acd SDJ |
11569 | 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com> |
11570 | ||
11571 | * Makefile.in: Remove "@host_makefile_frag@". Add variables | |
11572 | NAT_FILE, NATDEPFILES, NAT_CDEPS, LOADLIBES, MH_CFLAGS, XM_CLIBS, | |
11573 | NAT_GENERATED_FILES, HAVE_NATIVE_GCORE_HOST. Add | |
11574 | "@nat_extra_makefile_frag@". | |
11575 | (Makefile): Remove dependency on "@frags@". | |
11576 | ($(GNULIB_BUILDDIR)/Makefile): Likewise. | |
11577 | (data-directory/Makefile): Likewise. | |
11578 | * config/aarch64/linux.mh: Deleted; moved contents to | |
11579 | "gdb/configure.nat". | |
11580 | * config/alpha/alpha-linux.mh: Likewise. | |
11581 | * config/alpha/nbsd.mh: Likewise. | |
11582 | * config/arm/linux.mh: Likewise. | |
11583 | * config/arm/nbsdelf.mh: Likewise. | |
11584 | * config/i386/cygwin.mh: Likewise. | |
11585 | * config/i386/cygwin64.mh: Likewise. | |
11586 | * config/i386/darwin.mh: Likewise. | |
11587 | * config/i386/fbsd.mh: Likewise. | |
11588 | * config/i386/fbsd64.mh: Likewise. | |
11589 | * config/i386/go32.mh: Likewise. | |
11590 | * config/i386/i386gnu.mh: Likewise. | |
11591 | * config/i386/i386sol2.mh: Likewise. | |
11592 | * config/i386/linux.mh: Likewise. | |
11593 | * config/i386/linux64.mh: Likewise. | |
11594 | * config/i386/mingw.mh: Likewise. | |
11595 | * config/i386/mingw64.mh: Likewise. | |
11596 | * config/i386/nbsd64.mh: Likewise. | |
11597 | * config/i386/nbsdelf.mh: Likewise. | |
11598 | * config/i386/nto.mh: Likewise. | |
11599 | * config/i386/obsd.mh: Likewise. | |
11600 | * config/i386/obsd64.mh: Likewise. | |
11601 | * config/i386/sol2-64.mh: Likewise. | |
11602 | * config/ia64/linux.mh: Likewise. | |
11603 | * config/m32r/linux.mh: Likewise. | |
11604 | * config/m68k/linux.mh: Likewise. | |
11605 | * config/m68k/nbsdelf.mh: Likewise. | |
11606 | * config/m68k/obsd.mh: Likewise. | |
11607 | * config/m88k/obsd.mh: Likewise. | |
11608 | * config/mips/fbsd.mh: Likewise. | |
11609 | * config/mips/linux.mh: Likewise. | |
11610 | * config/mips/nbsd.mh: Likewise. | |
11611 | * config/mips/obsd64.mh: Likewise. | |
11612 | * config/pa/linux.mh: Likewise. | |
11613 | * config/pa/nbsd.mh: Likewise. | |
11614 | * config/pa/obsd.mh: Likewise. | |
11615 | * config/powerpc/aix.mh: Likewise. | |
11616 | * config/powerpc/fbsd.mh: Likewise. | |
11617 | * config/powerpc/linux.mh: Likewise. | |
11618 | * config/powerpc/nbsd.mh: Likewise. | |
11619 | * config/powerpc/obsd.mh: Likewise. | |
11620 | * config/powerpc/ppc64-linux.mh: Likewise. | |
11621 | * config/powerpc/spu-linux.mh: Likewise. | |
11622 | * config/s390/linux.mh: Likewise. | |
11623 | * config/sh/nbsd.mh: Likewise. | |
11624 | * config/sparc/fbsd.mh: Likewise. | |
11625 | * config/sparc/linux.mh: Likewise. | |
11626 | * config/sparc/linux64.mh: Likewise. | |
11627 | * config/sparc/nbsd64.mh: Likewise. | |
11628 | * config/sparc/nbsdelf.mh: Likewise. | |
11629 | * config/sparc/obsd64.mh: Likewise. | |
11630 | * config/sparc/sol2.mh: Likewise. | |
11631 | * config/tilegx/linux.mh: Likewise. | |
11632 | * config/vax/nbsdelf.mh: Likewise. | |
11633 | * config/vax/obsd.mh: Likewise. | |
11634 | * config/xtensa/linux.mh: Likewise. | |
11635 | * config/i386/i386gnu.mn: New file, with excerpts from | |
11636 | "config/i386/i386gnu.mh". | |
11637 | * configure: Regenerate. | |
11638 | * configure.ac: Rewrite code to use "gdb/configure.nat" instead of | |
11639 | *.mh files under "gdb/config". | |
11640 | * configure.nat: New file, with contents from the | |
11641 | "gdb/config/*/*.mh" files. | |
11642 | ||
7ed1acaf TW |
11643 | 2017-05-05 Tim Wiederhake <tim.wiederhake@intel.com> |
11644 | ||
11645 | * btrace.c (btrace_clear): Free insn vector. | |
11646 | ||
e13cb306 PA |
11647 | 2017-05-05 Pedro Alves <palves@redhat.com> |
11648 | ||
11649 | * warning.m4 (build_warnings): Add -Wno-error=maybe-uninitialized. | |
11650 | * configure: Regenerate. | |
11651 | ||
5ed8105e PA |
11652 | 2017-05-04 Pedro Alves <palves@redhat.com> |
11653 | ||
11654 | * Makefile.in (SFILES): Add progspace-and-thread.c. | |
11655 | (HFILES_NO_SRCDIR): Add progspace-and-thread.h. | |
11656 | (COMMON_OBS): Add progspace-and-thread.o. | |
11657 | * breakpoint.c: Include "progspace-and-thread.h". | |
11658 | (update_inserted_breakpoint_locations) | |
11659 | (insert_breakpoint_locations, create_longjmp_master_breakpoint): | |
11660 | Use scoped_restore_current_pspace_and_thread. | |
11661 | (create_std_terminate_master_breakpoint): Use | |
11662 | scoped_restore_current_program_space. | |
11663 | (remove_breakpoint): Use scoped_restore_current_pspace_and_thread. | |
11664 | (print_breakpoint_location): Use | |
11665 | scoped_restore_current_program_space. | |
11666 | (bp_loc_is_permanent): Use | |
11667 | scoped_restore_current_pspace_and_thread. | |
11668 | (resolve_sal_pc): Use scoped_restore_current_pspace_and_thread. | |
11669 | (download_tracepoint_locations): Use | |
11670 | scoped_restore_current_pspace_and_thread. | |
11671 | (breakpoint_re_set): Use scoped_restore_current_pspace_and_thread. | |
11672 | * exec.c (exec_close_1): Use scoped_restore_current_program_space. | |
11673 | (enum step_over_calls_kind): Moved from inferior.h. | |
11674 | (class scoped_restore_current_thread): New class. | |
11675 | * gdbthread.h (make_cleanup_restore_current_thread): Delete | |
11676 | declaration. | |
11677 | (scoped_restore_current_thread): New class. | |
11678 | * infcmd.c: Include "common/gdb_optional.h". | |
11679 | (continue_1, proceed_after_attach): Use | |
11680 | scoped_restore_current_thread. | |
11681 | (notice_new_inferior): Use scoped_restore_current_thread. | |
11682 | * inferior.c: Include "progspace-and-thread.h". | |
11683 | (restore_inferior, save_current_inferior): Delete. | |
11684 | (add_inferior_command, clone_inferior_command): Use | |
11685 | scoped_restore_current_pspace_and_thread. | |
11686 | * inferior.h (scoped_restore_current_inferior): New class. | |
11687 | * infrun.c: Include "progspace-and-thread.h" and | |
11688 | "common/gdb_optional.h". | |
11689 | (follow_fork_inferior): Use | |
11690 | scoped_restore_current_pspace_and_thread. | |
11691 | (scoped_restore_exited_inferior): New class. | |
11692 | (handle_vfork_child_exec_or_exit): Use | |
11693 | scoped_restore_exited_inferior, | |
11694 | scoped_restore_current_pspace_and_thread, | |
11695 | scoped_restore_current_thread and scoped_restore. | |
11696 | (fetch_inferior_event): Use scoped_restore_current_thread. | |
11697 | * linespec.c (decode_line_full, decode_line_1): Use | |
11698 | scoped_restore_current_program_space. | |
11699 | * mi/mi-main.c: Include "progspace-and-thread.h". | |
11700 | (exec_continue): Use scoped_restore_current_thread. | |
11701 | (mi_cmd_exec_run): Use scoped_restore_current_pspace_and_thread. | |
11702 | (mi_cmd_trace_frame_collected): Use scoped_restore_current_thread. | |
11703 | * proc-service.c (ps_pglobal_lookup): Use | |
11704 | scoped_restore_current_program_space. | |
11705 | * progspace-and-thread.c: New file. | |
11706 | * progspace-and-thread.h: New file. | |
11707 | * progspace.c (release_program_space, clone_program_space): Use | |
11708 | scoped_restore_current_program_space. | |
11709 | (restore_program_space, save_current_program_space) | |
11710 | (save_current_space_and_thread): Delete. | |
11711 | (switch_to_program_space_and_thread): Moved to | |
11712 | progspace-and-thread.c. | |
11713 | * progspace.h (save_current_program_space) | |
11714 | (save_current_space_and_thread): Delete declarations. | |
11715 | (scoped_restore_current_program_space): New class. | |
11716 | * remote.c (remote_btrace_maybe_reopen): Use | |
11717 | scoped_restore_current_thread. | |
11718 | * symtab.c: Include "progspace-and-thread.h". | |
11719 | (skip_prologue_sal): Use scoped_restore_current_pspace_and_thread. | |
11720 | * thread.c (print_thread_info_1): Use | |
11721 | scoped_restore_current_thread. | |
11722 | (struct current_thread_cleanup): Delete. | |
11723 | (do_restore_current_thread_cleanup) | |
11724 | (restore_current_thread_cleanup_dtor): Rename/convert both to ... | |
11725 | (scoped_restore_current_thread::~scoped_restore_current_thread): | |
11726 | ... this new dtor. | |
11727 | (make_cleanup_restore_current_thread): Rename/convert to ... | |
11728 | (scoped_restore_current_thread::scoped_restore_current_thread): | |
11729 | ... this new ctor. | |
11730 | (thread_apply_all_command): Use scoped_restore_current_thread. | |
11731 | (thread_apply_command): Use scoped_restore_current_thread. | |
11732 | * tracepoint.c (tdump_command): Use scoped_restore_current_thread. | |
11733 | * varobj.c (value_of_root_1): Use scoped_restore_current_thread. | |
11734 | ||
f6223dbb PA |
11735 | 2017-05-04 Pedro Alves <palves@redhat.com> |
11736 | ||
11737 | * thread.c (make_cleanup_restore_current_thread): Move | |
11738 | find_thread_ptid call before the is_stopped call. Assert that the | |
11739 | thread is found. Replace is_stopped call by checking the thread's | |
11740 | state directly. Remove unnecessary NULL-thread check. | |
11741 | ||
3c3ae77e PA |
11742 | 2017-05-04 Pedro Alves <palves@redhat.com> |
11743 | ||
11744 | * corelow.c (thread_section_name): New class. | |
11745 | (get_core_register_section, get_core_siginfo): Use it. | |
11746 | ||
45eba0ab AA |
11747 | 2017-05-04 Andreas Arnez <arnez@linux.vnet.ibm.com> |
11748 | ||
11749 | * corelow.c (sniff_core_bfd): Remove extra semicolon. | |
11750 | (get_core_register_section): Remove xfree of NULL pointer. | |
11751 | ||
f81fdd35 AH |
11752 | 2017-05-03 Alan Hayward <alan.hayward@arm.com> |
11753 | ||
11754 | * frv-linux-tdep.c (frv_linux_supply_gregset): Use raw_supply_zeroed. | |
11755 | * regcache.c (regcache::raw_supply_zeroed): New function. | |
11756 | * regcache.h (regcache::raw_supply_zeroed): New declaration. | |
11757 | ||
35837774 SM |
11758 | 2017-05-03 Simon Marchi <simon.marchi@ericsson.com> |
11759 | ||
11760 | * gdbarch.sh: Remove commented out definition of | |
11761 | TARGET_CHAR_BIT. | |
11762 | * gdbarch.h: Re-generate. | |
11763 | ||
c94fee56 SDJ |
11764 | 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com> |
11765 | ||
11766 | * configure: Regenerate. | |
11767 | ||
d17f7b36 SM |
11768 | 2017-05-02 Simon Marchi <simon.marchi@ericsson.com> |
11769 | ||
11770 | * solib-target.c (solib_target_relocate_section_addresses): | |
11771 | Remove num_section_bases, num_bases, segment_bases variables. | |
11772 | ||
b560ebd6 SM |
11773 | 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca> |
11774 | ||
11775 | * common/gdb_vecs.h (DEF_VEC_I (CORE_ADDR)): Remove. | |
11776 | ||
f2f46dfc SM |
11777 | 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca> |
11778 | ||
11779 | * solib-target.c: Include <vector> | |
11780 | (struct lm_info_target) <~lm_info_target>: Remove. | |
11781 | <segment_bases, section_bases>: Change type to | |
11782 | std::vector<CORE_ADDR>. | |
11783 | (library_list_start_segment, library_list_start_section, | |
11784 | library_list_end_library, | |
11785 | solib_target_relocate_section_addresses): Adjust. | |
11786 | ||
a0ff9e1a SM |
11787 | 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca> |
11788 | ||
11789 | * gdbarch.sh (software_single_step): Change return type to | |
11790 | std::vector<CORE_ADDR>. | |
11791 | * gdbarch.c, gdbarch.h: Re-generate. | |
11792 | * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw): | |
11793 | Adjust. | |
11794 | (arm_deal_with_atomic_sequence_raw): Adjust. | |
11795 | (thumb_get_next_pcs_raw): Adjust. | |
11796 | (arm_get_next_pcs_raw): Adjust. | |
11797 | (arm_get_next_pcs): Adjust. | |
11798 | * arch/arm-get-next-pcs.h (arm_get_next_pcs): Adjust. | |
11799 | * aarch64-tdep.c (aarch64_software_single_step): Adjust. | |
11800 | * alpha-tdep.c (alpha_deal_with_atomic_sequence): Adjust. | |
11801 | (alpha_software_single_step): Adjust. | |
11802 | * alpha-tdep.h (alpha_software_single_step): Adjust. | |
11803 | * arm-linux-tdep.c (arm_linux_software_single_step): Adjust. | |
11804 | * arm-tdep.c (arm_software_single_step): Adjust. | |
11805 | (arm_breakpoint_kind_from_current_state): Adjust. | |
11806 | * arm-tdep.h (arm_software_single_step): Adjust. | |
11807 | * breakpoint.c (insert_single_step_breakpoint): Adjust. | |
11808 | * cris-tdep.c (cris_software_single_step): Adjust. | |
11809 | * mips-tdep.c (mips_deal_with_atomic_sequence): Adjust. | |
11810 | (micromips_deal_with_atomic_sequence): Adjust. | |
11811 | (deal_with_atomic_sequence): Adjust. | |
11812 | (mips_software_single_step): Adjust. | |
11813 | * mips-tdep.h (mips_software_single_step): Adjust. | |
11814 | * moxie-tdep.c (moxie_software_single_step): Adjust. | |
11815 | * nios2-tdep.c (nios2_software_single_step): Adjust. | |
11816 | * ppc-tdep.h (ppc_deal_with_atomic_sequence): Adjust. | |
11817 | * rs6000-aix-tdep.c (rs6000_software_single_step): Adjust. | |
11818 | * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Adjust. | |
11819 | * s390-linux-tdep.c (s390_software_single_step): Adjust. | |
11820 | * sparc-tdep.c (sparc_software_single_step): Adjust. | |
11821 | * spu-tdep.c (spu_software_single_step): Adjust. | |
11822 | * tic6x-tdep.c (tic6x_software_single_step): Adjust. | |
11823 | ||
ea480a30 SM |
11824 | 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca> |
11825 | ||
11826 | * gdbarch.sh: Use semi-colon as field separator instead of colon. | |
11827 | * gdbarch.h: Re-generate. | |
11828 | ||
d050f7d7 TW |
11829 | 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com> |
11830 | ||
11831 | * Makefile.in (SUBDIR_PYTHON_OBS): Add py-instruction.o. | |
11832 | (SUBDIR_PYTHON_SRCS): Add py-instruction.c. | |
11833 | * python/py-instruction.c, python/py-instruction.h: New file. | |
11834 | * python/py-record.c: Add py-instruction.h include. | |
11835 | (gdbpy_initialize_record): Make gdb.Instruction a super class of | |
11836 | gdb.RecordInstruction. | |
11837 | * python/python-internal.h: Add gdbpy_initialize_instruction | |
11838 | declaration. | |
11839 | * python/python.c (do_start_initialization): Add | |
11840 | gdbpy_initialize_instruction. | |
11841 | ||
14f819c8 TW |
11842 | 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com> |
11843 | ||
11844 | * python/py-record-btrace.c (BTPY_REQUIRE_VALID_CALL, btpy_call_type): | |
11845 | Remove. | |
11846 | (btrace_func_from_recpy_func): New function. | |
11847 | (btpy_call_new, btpy_number, btpy_hash, btpy_richcompare): Remove. | |
11848 | (btpy_call_level, btpy_call_symbol, btpy_call_instructions, | |
11849 | btpy_call_up, btpy_call_prev_sibling, btpy_call_next_sibling): Rename to ... | |
11850 | (recpy_bt_func_level, recpy_bt_func_symbol, recpy_bt_func_instructions, | |
11851 | recpy_bt_func_up, recpy_bt_func_prev, recpy_bt_func_next): This. | |
11852 | Also, use new helper functions. | |
11853 | (btpy_list_item): Use new helper functions. | |
11854 | (recpy_bt_function_call_history): Use new type name. | |
11855 | (btpy_call_getset): Remove. | |
11856 | (gdbpy_initialize_btrace): Remove code to initialize | |
11857 | gdb.BtraceFunctionCall. | |
11858 | * python/py-record-btrace.h (recpy_bt_func_number, recpy_btb_func_level, | |
11859 | recpy_btb_func_symbol, recpy_bt_func_instructions, recpy_bt_func_up, | |
11860 | recpy_bt_func_prev, recpy_bt_func_next): New export. | |
11861 | * python/py-record.c (recpy_func_type): New static object. | |
11862 | (recpy_func_new, recpy_func_level, recpy_func_symbol, | |
11863 | recpy_func_instructions, recpy_func_up, recpy_func_prev, | |
11864 | recpy_func_next): New function. | |
11865 | (recpy_element_hash, recpy_element_richcompare): Updated comment. | |
11866 | (recpy_func_getset): New static object. | |
11867 | (gdbpy_initialize_record): Add code to initialize gdb.RecordInstruction. | |
11868 | * python/py-record.h (recpy_func_type, recpy_func_new): New export. | |
11869 | ||
0ed5da75 TW |
11870 | 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com> |
11871 | ||
11872 | * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN): Remove. | |
11873 | (btpy_object, btpy_insn_type, btpy_new): Remove. | |
11874 | (btpy_list_object): Use gdb.RecordInstruction type instead of | |
11875 | gdb.BtraceInstruction type. | |
11876 | (btrace_insn_from_recpy_insn): New function. | |
11877 | (btpy_insn_or_gap_new): Adjust comment. Use recpy_insn_new instead of | |
11878 | btpy_new. | |
11879 | (btpy_call_new, btpy_list_item): Do not use btpy_new anymore. | |
11880 | (btpy_number, btpy_hash, btpy_call_level, btpy_call_symbol, | |
11881 | btpy_call_instructions, btpy_call_up, btpy_call_prev_sibling, | |
11882 | btpy_call_next_sibling, btpy_richcompare): Use recpy_element_object | |
11883 | instead of btpy_object. | |
11884 | (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative, | |
11885 | btpy_insn_data, btpy_insn_decode): Rename to ... | |
11886 | (recpy_bt_insn_sal, recpy_bt_insn_pc, recpy_bt_insn_size, | |
11887 | recpy_bt_insn_is_speculative, recpy_bt_insn_data, | |
11888 | recpy_bt_insn_decode): This. Also, use new helper functions. | |
11889 | (btpy_list_position, recpy_bt_goto): Use recpy_element_object and | |
11890 | recpy_insn_type. | |
11891 | (btpy_insn_getset): Remove. | |
11892 | (gdbpy_initialize_btrace): Remove code to initialize | |
11893 | gdb.BtraceInstruction. Use recpy_element_object. | |
11894 | * python/py-record-btrace.h (recpy_bt_insn_number, recpy_bt_insn_sal, | |
11895 | recpy_bt_insn_pc, recpy_bt_insn_data, recpy_bt_insn_decoded, | |
11896 | recpy_bt_insn_size, recpy_bt_insn_is_speculative): New export. | |
11897 | * python/py-record.c (recpy_insn_type): New static object. | |
11898 | (recpy_insn_new, recpy_insn_sal, recpy_insn_pc, recpy_insn_data, | |
11899 | recpy_insn_decoded, recpy_insn_size, recpy_insn_is_speculative, | |
11900 | recpy_element_number, recpy_element_hash, recpy_element_richcompare): | |
11901 | New function. | |
11902 | (recpy_insn_getset): New static object. | |
11903 | (gdbpy_initialize_record): Initialize gdb.RecordInstruction. | |
11904 | * python/py-record.h (recpy_element_object): New typedef. | |
11905 | (recpy_insn_type, recpy_insn_new): New export. | |
11906 | ||
913aeadd TW |
11907 | 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com> |
11908 | ||
11909 | * py-record-btrace.c (btpy_insn_new): Removed. | |
11910 | (btpy_insn_or_gap_new): New function. | |
11911 | (btpy_insn_error): Removed. | |
11912 | (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative, | |
11913 | btpy_insn_data, btpy_insn_decode): Remove code path for gaps. | |
11914 | (recpy_bt_replay_position, recpy_bt_begin, recpy_bt_end): Call | |
11915 | btpy_insn_or_gap_new instead of btpy_insn_new. | |
11916 | (btpy_insn_getset): Remove btpy_insn_error. | |
11917 | * py-record.c (recpy_gap_type): New static object. | |
11918 | (recpy_gap_object): New typedef. | |
11919 | (recpy_gap_new, recpy_gap_number, recpy_gap_reason_code, | |
11920 | recpy_gap_reason_string): New function. | |
11921 | (recpy_gap_getset): New static object. | |
11922 | (gdbpy_initialize_record): Initialize gdb.RecordGap type. | |
11923 | * py-record.h (recpy_gap_new): New export. | |
11924 | ||
a3be24ad TW |
11925 | 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com> |
11926 | ||
11927 | * python/py-record.c (recpy_ptid): Remove. | |
11928 | (recpy_record_getset): Remove recpy_ptid. | |
11929 | ||
ae20e79a TW |
11930 | 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com> |
11931 | ||
11932 | * btrace.c (btrace_fetch): Set inferior_ptid. | |
11933 | * python/py-record-btrace.c: Add "py-record.h" include. | |
11934 | (recpy_bt_format, recpy_bt_replay_position, recpy_bt_begin, | |
11935 | recpy_bt_end, recpy_bt_instruction_history, | |
11936 | recpy_bt_function_call_history, recpy_bt_goto): Use ptid stored | |
11937 | in gdb.Record object instead of current ptid. | |
11938 | * python/py-record.c: Include new "py-record.h" file. | |
11939 | (recpy_record_object): Moved to py-record.h. | |
11940 | * python/py-record.h: New file. | |
11941 | ||
8d0050ea TW |
11942 | 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com> |
11943 | ||
11944 | * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN, | |
11945 | BTPY_REQUIRE_VALID_CALL, recpy_bt_function_call_history): Fix | |
11946 | indentation. | |
11947 | ||
3f380b50 JB |
11948 | 2017-05-01 Joel Brobecker <brobecker@adacore.com> |
11949 | ||
11950 | * MAINTAINERS: Move Daniel Jacobowitz and Mark Kettenis to | |
11951 | the past maintainers section. | |
11952 | ||
07495424 YQ |
11953 | 2017-04-28 Yao Qi <yao.qi@linaro.org> |
11954 | ||
11955 | * infcmd.c (get_return_value): Use regcache ctor, and remove | |
11956 | cleanup. | |
11957 | ||
deb1fa3e YQ |
11958 | 2017-04-28 Yao Qi <yao.qi@linaro.org> |
11959 | Pedro Alves <palves@redhat.com> | |
11960 | ||
11961 | * regcache.c (regcache::regcache): New tag dispatch ctor. | |
11962 | (do_cooked_read): Moved above. | |
11963 | (regcache_dup): Use the tag dispatch ctor.. | |
11964 | * regcache.h (regcache): Declare ctor, delete copy ctor and | |
11965 | assignment operator, remove friend regcache_dup. | |
11966 | ||
b421c83c YQ |
11967 | 2017-04-28 Yao Qi <yao.qi@linaro.org> |
11968 | ||
11969 | * regcache.c (regcache_dup): Assert !src->m_readonly_p and | |
11970 | call method save instead of regcache_cpy. | |
11971 | * regcache.h (struct regcache): Make regcache_dup a friend. | |
11972 | ||
ef79d9a3 YQ |
11973 | 2017-04-28 Yao Qi <yao.qi@linaro.org> |
11974 | ||
11975 | * regcache.c (struct regcache): Move to regcache.h | |
11976 | (regcache::arch): New method. | |
11977 | (regcache_get_ptid): Update. | |
11978 | (get_regcache_arch): Call arch method. | |
11979 | (get_regcache_aspace): Call method aspace. | |
11980 | (register_buffer): Change it to method. | |
11981 | (regcache_save): Change it to regcache::save. | |
11982 | (regcache_restore): Likewise. | |
11983 | (regcache_cpy_no_passthrough): Remove the declaration. | |
11984 | (regcache_cpy): Call methods restore and cpy_no_passthrough. | |
11985 | (regcache_cpy_no_passthrough): Change it to method | |
11986 | cpy_no_passthrough. | |
11987 | (regcache_register_status): Change it to method | |
11988 | get_register_status. | |
11989 | (regcache_invalidate): Change it to method invalidate. | |
11990 | (regcache_thread_ptid_changed): Use methods ptid and set_ptid. | |
11991 | (regcache_raw_update): Change it to method raw_update. | |
11992 | (regcache_raw_read): Likewise. | |
11993 | (regcache_raw_read_signed): Likewise. | |
11994 | (regcache_raw_read_unsigned): Likewise. | |
11995 | (regcache_raw_write_signed): Likewise. | |
11996 | (regcache_raw_write_unsigned): Likewise. | |
11997 | (regcache_cooked_read): Likewise. | |
11998 | (regcache_cooked_read_value): Likewise. | |
11999 | (regcache_cooked_read_signed): Likewise. | |
12000 | (regcache_cooked_read_unsigned): Likewise. | |
12001 | (regcache_cooked_write_signed): Likewise. | |
12002 | (regcache_cooked_write_unsigned): Likewise. | |
12003 | (regcache_raw_set_cached_value): Likewise. | |
12004 | (regcache_raw_write): Likewise. | |
12005 | (regcache_cooked_write): Likewise. | |
12006 | (regcache_xfer_part): Likewise. | |
12007 | (regcache_raw_read_part): Likewise. | |
12008 | (regcache_raw_write_part): Likewise. | |
12009 | (regcache_cooked_read_part): Likewise. | |
12010 | (regcache_cooked_write_part): Likewise. | |
12011 | (regcache_raw_supply): Likewise. | |
12012 | (regcache_raw_collect): Likewise. | |
12013 | (regcache_transfer_regset): Likewise. | |
12014 | (regcache_supply_regset): Likewise. | |
12015 | (regcache_collect_regset): Likewise. | |
12016 | (regcache_debug_print_register): Likewise. | |
12017 | (enum regcache_dump_what): Move it to regcache.h. | |
12018 | (regcache_dump): Change it to method dump. | |
12019 | * regcache.h (enum regcache_dump_what): New. | |
12020 | (class regcache): New. | |
12021 | * target.c (target_fetch_registers): Call method | |
12022 | debug_print_register. | |
12023 | (target_store_registers): Likewise. | |
12024 | ||
f8fdb78e SM |
12025 | 2017-04-28 Simon Marchi <simon.marchi@ericsson.com> |
12026 | ||
12027 | * windows-nat.c (struct lm_info_windows): Initialize field. | |
12028 | (windows_make_so): Allocate lm_info_windows with new. | |
12029 | (windows_free_so): Free lm_info_windows with delete. | |
12030 | ||
9ccbfd7b SM |
12031 | 2017-04-28 Simon Marchi <simon.marchi@ericsson.com> |
12032 | ||
12033 | * solib-darwin.c (struct lm_info_darwin): Initialize field. | |
12034 | (darwin_current_sos): Allocate lm_info_darwin with new, remove | |
12035 | cleanup. | |
12036 | (darwin_free_so): Free lm_info_darwin with delete. | |
12037 | ||
76e75227 SM |
12038 | 2017-04-28 Simon Marchi <simon.marchi@ericsson.com> |
12039 | ||
12040 | * solib-svr4.h (struct lm_info_svr4): Initialize fields. | |
12041 | <l_addr_p>: Change type to bool. | |
12042 | * solib-svr4.c (lm_info_read): Allocate lm_info_svr4 with new. | |
12043 | (svr4_free_so): Free lm_info_svr4 with delete. | |
12044 | (svr4_copy_library_list): Replace memcpy with call to copy | |
12045 | constructor. | |
12046 | (library_list_start_library, svr4_default_sos): Allocate | |
12047 | lm_info_svr4 with new. | |
12048 | ||
51046d9e SM |
12049 | 2017-04-28 Simon Marchi <simon.marchi@ericsson.com> |
12050 | ||
12051 | * solib-target.c (struct lm_info_target): Add destructor, | |
12052 | initialize fields. | |
12053 | <name>: Change type to std::string. | |
12054 | (library_list_start_library): Allocate lm_info_target with new. | |
12055 | (solib_target_free_library_list): Free lm_info_target with | |
12056 | delete. | |
12057 | (solib_target_current_sos): Adapt to std::string. | |
12058 | (solib_target_free_so): Free lm_info_target with delete. | |
12059 | ||
4023ae76 SM |
12060 | 2017-04-28 Simon Marchi <simon.marchi@ericsson.com> |
12061 | ||
12062 | * solib-frv.c (struct lm_info_frv): Add destructor, initialize | |
12063 | fields. | |
12064 | (frv_current_sos): Allocate lm_info_frv with new. | |
12065 | (frv_relocate_main_executable): Free lm_info_frv with delete, | |
12066 | allocate with new. | |
12067 | (frv_clear_solib, frv_free_so): Free lm_info_frv with delete. | |
12068 | ||
af43057b SM |
12069 | 2017-04-28 Simon Marchi <simon.marchi@ericsson.com> |
12070 | ||
12071 | * solib-frv.c (struct lm_info_frv): Fix indentation. | |
12072 | ||
b0911207 SM |
12073 | 2017-04-28 Simon Marchi <simon.marchi@ericsson.com> |
12074 | ||
12075 | * solib-dsbt.c (struct lm_info_dsbt): Add destructor, initialize | |
12076 | map field. | |
12077 | (dsbt_current_sos): Allocate lm_info_dsbt with new. | |
12078 | (dsbt_relocate_main_executable): Free lm_info_dsbt with delete | |
12079 | and allocate with new. | |
12080 | (dsbt_clear_solib, dsbt_free_so): Free lm_info_dsbt with delete. | |
12081 | ||
6c401f72 SM |
12082 | 2017-04-28 Simon Marchi <simon.marchi@ericsson.com> |
12083 | ||
12084 | * solib-aix.c (struct lm_info_aix): Initialize fields in-class. | |
12085 | <filename, member_name>: Change type to std::string. | |
12086 | (solib_aix_new_lm_info, solib_aix_xfree_lm_info): Remove. | |
12087 | (library_list_start_library): Allocate lm_info_aix with new. | |
12088 | (solib_aix_free_library_list, solib_aix_free_so): Free with delete. | |
12089 | (solib_aix_current_sos): Adapt to std::string, copy lm_info_aix | |
12090 | with copy constructor. | |
12091 | ||
d0e449a1 SM |
12092 | 2017-04-28 Simon Marchi <simon.marchi@ericsson.com> |
12093 | ||
12094 | * solist.h (struct lm_info): Remove. | |
12095 | (struct lm_info_base): New class. | |
12096 | (struct so_list) <lm_info>: Change type to lm_info_base *. | |
12097 | * nto-tdep.c (struct lm_info): Remove. | |
12098 | (lm_addr): Adjust. | |
12099 | * solib-aix.c (struct lm_info): Rename to ... | |
12100 | (struct lm_info_aix): ... this. Extend lm_info_base. | |
12101 | (lm_info_p): Rename to ... | |
12102 | (lm_info_aix_p): ... this, and adjust. | |
12103 | (solib_aix_new_lm_info, solib_aix_xfree_lm_info, | |
12104 | solib_aix_parse_libraries, library_list_start_library, | |
12105 | solib_aix_free_library_list, solib_aix_parse_libraries, | |
12106 | solib_aix_get_library_list, | |
12107 | solib_aix_relocate_section_addresses, solib_aix_free_so, | |
12108 | solib_aix_get_section_offsets, | |
12109 | solib_aix_solib_create_inferior_hook, solib_aix_current_sos): | |
12110 | Adjust. | |
12111 | (struct solib_aix_inferior_data) <library_list>: Adjust. | |
12112 | * solib-darwin.c (struct lm_info): Rename to ... | |
12113 | (struct lm_info_darwin): ... this. Extend lm_info_base. | |
12114 | (darwin_current_sos, darwin_relocate_section_addresses): Adjust. | |
12115 | * solib-dsbt.c (struct lm_info): Rename to ... | |
12116 | (struct lm_info_dsbt): ... this. Extend lm_info_base. | |
12117 | (struct dsbt_info) <main_executable_lm_info): Adjust. | |
12118 | (dsbt_current_sos, dsbt_relocate_main_executable, dsbt_free_so, | |
12119 | dsbt_relocate_section_addresses): Adjust. | |
12120 | * solib-frv.c (struct lm_info): Rename to ... | |
12121 | (struct lm_info_frv): ... this. Extend lm_info_base. | |
12122 | (main_executable_lm_info): Adjust. | |
12123 | (frv_current_sos, frv_relocate_main_executable, frv_free_so, | |
12124 | frv_relocate_section_addresses, frv_fdpic_find_global_pointer, | |
12125 | find_canonical_descriptor_in_load_object, | |
12126 | frv_fdpic_find_canonical_descriptor): Adjust. | |
12127 | * solib-svr4.c (struct lm_info): Move to solib-svr4.h, renamed | |
12128 | to lm_info_svr4. | |
12129 | (lm_info_read, lm_addr_check, svr4_keep_data_in_core, | |
12130 | svr4_clear_so, svr4_copy_library_list, | |
12131 | library_list_start_library, svr4_default_sos, svr4_read_so_list, | |
12132 | svr4_current_sos, svr4_fetch_objfile_link_map, | |
12133 | solist_update_incremental): Adjust. | |
12134 | * solib-svr4.h (struct lm_info_svr4): Move here from | |
12135 | solib-svr4.c. | |
12136 | * solib-target.c (struct lm_info): Rename to ... | |
12137 | (struct lm_info_target): ... this. Extend lm_info_base. | |
12138 | (lm_info_p): Rename to ... | |
12139 | (lm_info_target_p): ... this. | |
12140 | (solib_target_parse_libraries, library_list_start_segment, | |
12141 | library_list_start_section, library_list_start_library, | |
12142 | library_list_end_library, solib_target_free_library_list, | |
12143 | solib_target_current_sos, solib_target_free_so, | |
12144 | solib_target_relocate_section_addresses): Adjust. | |
12145 | * windows-nat.c (struct lm_info): Rename to ... | |
12146 | (struct lm_info_windows): ... this. Extend lm_info_base. | |
12147 | (windows_make_so, handle_load_dll, handle_unload_dll, | |
12148 | windows_xfer_shared_libraries): Adjust. | |
12149 | ||
434a4023 SM |
12150 | 2017-04-28 Simon Marchi <simon.marchi@ericsson.com> |
12151 | ||
12152 | * solib-darwin.c (struct darwin_so_list): Remove. | |
12153 | (darwin_current_sos): Allocate an so_list object instead of a | |
12154 | darwin_so_list, separately allocate an lm_info object. | |
12155 | (darwin_free_so): Free lm_info. | |
12156 | ||
428544e8 JB |
12157 | 2017-04-28 John Baldwin <jhb@FreeBSD.org> |
12158 | ||
12159 | * mips-tdep.c (print_gp_register_row): Replace printf_filtered | |
12160 | with fprintf_filtered. | |
12161 | ||
4621115f YQ |
12162 | 2017-04-28 Yao Qi <yao.qi@linaro.org> |
12163 | ||
12164 | * regcache.c (regcache::regcache): New function. | |
12165 | (regcache::~regcache): New function. | |
12166 | (regcache_xmalloc_1): Remove. | |
12167 | (regcache_xmalloc): Call new regcache. | |
12168 | (regcache_xfree): Call delete regcache. | |
12169 | (get_thread_arch_aspace_regcache): Call new regcache. | |
12170 | ||
339053c2 YQ |
12171 | 2017-04-28 Yao Qi <yao.qi@linaro.org> |
12172 | ||
12173 | * mips-linux-nat.c (mips_linux_new_thread): Use ptid method | |
12174 | lwp instead of ptid_get_lwp. | |
12175 | ||
7974a605 YQ |
12176 | 2017-04-28 Yao Qi <yao.qi@linaro.org> |
12177 | ||
12178 | * mips-linux-nat.c (mips_linux_new_thread): Get lwpid from | |
12179 | lwp_info instead of getting from inferior_ptid. | |
12180 | ||
e15c3eb4 KS |
12181 | 2017-04-27 Keith Seitz <keiths@redhat.com> |
12182 | ||
12183 | * gdbtypes.c (LVALUE_REFERENCE_TO_RVALUE_BINDING_BADNESS) | |
12184 | DIFFERENT_REFERENCE_TYPE_BADNESS): Remove. | |
12185 | (CV_CONVERSION_BADNESS): Define. | |
12186 | (rank_one_type): Remove overly restrictive rvalue reference | |
12187 | rank checks. | |
12188 | Add cv-qualifier checks and subranks for type equality. | |
12189 | * gdbtypes.h (REFERENCE_CONVERSION_RVALUE, | |
12190 | REFERENCE_CONVERSION_CONST_LVALUE, CV_CONVERSION_BADNESS, | |
12191 | CV_CONVERSION_CONST, CV_CONVERSION_VOLATILE): Declare. | |
12192 | ||
72bc1d24 SM |
12193 | 2017-04-27 Simon Marchi <simon.marchi@ericsson.com> |
12194 | ||
12195 | * python/py-inferior.c (inferior_to_inferior_object): Increment reference | |
12196 | count when creating the object. | |
12197 | ||
55bcecda UW |
12198 | 2017-04-27 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com> |
12199 | Ulrich Weigand <uweigand@de.ibm.com> | |
12200 | ||
12201 | * xcoffread.c (read_xcoff_symtab): Read correct function auxiliary | |
12202 | entry if xlc -qfuncsect or gcc -ffunction-sections compiler option | |
12203 | is used in AIX. | |
12204 | (read_xcoff_symtab): Handle C_WEAKEXT storage class. | |
12205 | (process_xcoff_symbol): Likewise. | |
12206 | (scan_xcoff_symtab): Likewise. | |
12207 | ||
5c99fcf8 AH |
12208 | 2017-04-26 Alan Hayward <alan.hayward@arm.com> |
12209 | ||
12210 | * ia64-tdep.c (examine_prologue): Use get_frame_register_unsigned. | |
12211 | (ia64_sigtramp_frame_prev_register): Use read_memory_unsigned_integer. | |
12212 | (ia64_access_reg): Use get_frame_register_unsigned. | |
12213 | (ia64_access_rse_reg): Likewise. | |
12214 | (ia64_libunwind_frame_prev_register): Likewise. | |
12215 | ||
b41c5a85 JW |
12216 | 2017-04-26 Jiong Wang <jiong.wang@arm.com> |
12217 | ||
12218 | * gdbarch.sh: New gdbarch method execute_dwarf_cfa_vendor_op. | |
12219 | * gdbarch.c: Regenerated. | |
12220 | * gdbarch.h: Regenerated. | |
12221 | * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Made the | |
12222 | visibility external. | |
12223 | (execute_cfa_program): Call execute_dwarf_cfa_vendor_op for CFI | |
12224 | between DW_CFA_lo_user and DW_CFA_high_user inclusive. | |
12225 | (enum cfa_how_kind): Move to ... | |
12226 | (struct dwarf2_frame_state_reg_info): Likewise. | |
12227 | (struct dwarf2_frame_state): Likewise. | |
12228 | * dwarf2-frame.h: ... here. | |
12229 | (dwarf2_frame_state_alloc_regs): New declaration. | |
12230 | * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): New function. | |
12231 | (sparc32_gdbarch_init): Register execute_dwarf_cfa_vendor_op hook. | |
12232 | ||
c185f580 AH |
12233 | 2017-04-26 Alan Hayward <alan.hayward@arm.com> |
12234 | ||
12235 | * xtensa-tdep.c (xtensa_pseudo_register_read): Use | |
12236 | regcache_raw_read_unsigned. | |
12237 | (xtensa_pseudo_register_write): Likewise. | |
12238 | ||
19c45594 AH |
12239 | 2017-04-26 Alan Hayward <alan.hayward@arm.com> |
12240 | ||
12241 | * nds32-tdep.c (nds32_pseudo_register_read): Abort on errors. | |
12242 | (nds32_pseudo_register_write): Likewise. | |
12243 | ||
4658f12e YQ |
12244 | 2017-04-25 Yao Qi <yao.qi@linaro.org> |
12245 | ||
12246 | * regcache.c (struct regcache) <readonly_p>: Change its type | |
12247 | to bool. | |
12248 | (regcache_xmalloc_1): Update parameter type and callers update. | |
12249 | ||
d581dda8 YQ |
12250 | 2017-04-25 Yao Qi <yao.qi@linaro.org> |
12251 | ||
12252 | * aarch64-tdep.c (aarch64_gdbarch_init): Don't call | |
12253 | set_gdbarch_wchar_bit. | |
12254 | * arm-tdep.c (arm_gdbarch_init): Likewise. | |
12255 | ||
debed3db PA |
12256 | 2017-04-25 Pedro Alves <palves@redhat.com> |
12257 | ||
12258 | * common/poison.h [!HAVE_IS_TRIVIALLY_COPYABLE] (IsRelocatable) | |
12259 | (BothAreRelocatable, memcopy, memmove): Don't define. | |
12260 | * common/traits.h (__has_feature, HAVE_IS_TRIVIALLY_COPYABLE): New | |
12261 | macros. | |
12262 | ||
b0b92aeb PA |
12263 | 2017-04-25 Pedro Alves <palves@redhat.com> |
12264 | ||
12265 | * common/common-defs.h: Include "common/poison.h". | |
12266 | * common/function-view.h: (Not, Or, Requires): Move to traits.h | |
12267 | and adjust. | |
12268 | * common/poison.h: New file. | |
12269 | * common/traits.h: Include <type_traits>. | |
12270 | (Not, Or, Requires): New, moved from common/function-view.h. | |
12271 | ||
16c4d54a PA |
12272 | 2017-04-25 Pedro Alves <palves@redhat.com> |
12273 | ||
12274 | * breakpoint.h (struct breakpoint): In-class initialize all | |
12275 | fields. Make boolean fields "bool". | |
12276 | * breakpoint.c (init_raw_breakpoint_without_location): Remove | |
12277 | memset call and initializations no longer necessary. | |
12278 | ||
b5c36682 PA |
12279 | 2017-04-25 Pedro Alves <palves@redhat.com> |
12280 | ||
12281 | * btrace.c (pt_btrace_insn_flags): Change parameter type to | |
12282 | reference. | |
12283 | (pt_btrace_insn): New function. | |
12284 | (ftrace_add_pt): Remove memset call and use pt_btrace_insn. | |
12285 | ||
5625a286 PA |
12286 | 2017-04-25 Pedro Alves <palves@redhat.com> |
12287 | ||
12288 | * ada-lang.c (ada_catchpoint_location): Now a "class". Remove | |
12289 | "base" field and inherit from "bp_location" instead. Add | |
12290 | non-default ctor. | |
12291 | (allocate_location_exception): Use new non-default ctor. | |
12292 | * breakpoint.c (get_first_locp_gte_addr): Remove memset call. | |
12293 | (init_bp_location): Convert to ... | |
12294 | (bp_location::bp_location): ... this new ctor, and remove memset | |
12295 | call. | |
12296 | (base_breakpoint_allocate_location): Use the new non-default ctor. | |
12297 | * breakpoint.h (bp_location): Now a class. Declare default and | |
12298 | non-default ctors. In-class initialize all members. | |
12299 | (init_bp_location): Remove declaration. | |
12300 | ||
23bcc18f PA |
12301 | 2017-04-25 Pedro Alves <palves@redhat.com> |
12302 | ||
12303 | * common/enum-flags.h (enum_flags): Don't implement copy ctor and | |
12304 | assignment operator. | |
12305 | ||
e1ba3053 YQ |
12306 | 2017-04-24 Yao Qi <yao.qi@linaro.org> |
12307 | ||
12308 | * doublest.c (convert_doublest_to_floatformat): Call | |
12309 | floatformat_totalsize_bytes. | |
12310 | ||
10f489e5 TT |
12311 | 2017-04-22 Tom Tromey <tom@tromey.com> |
12312 | ||
12313 | * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use | |
12314 | ui_out_emit_list. | |
12315 | * stack.c (print_frame): Use ui_out_emit_list. | |
12316 | * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use | |
12317 | ui_out_emit_list. | |
12318 | * mi/mi-main.c (print_one_inferior) | |
12319 | (mi_cmd_data_list_register_names) | |
12320 | (mi_cmd_data_list_register_values, mi_cmd_list_features) | |
12321 | (mi_cmd_list_target_features, mi_cmd_trace_frame_collected): Use | |
12322 | ui_out_emit_list. | |
12323 | * mi/mi-interp.c (mi_on_normal_stop_1): Use ui_out_emit_list. | |
12324 | (mi_output_solib_attribs): Use ui_out_emit_list, | |
12325 | ui_out_emit_tuple. | |
12326 | * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_list. | |
12327 | * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames) | |
12328 | (mi_cmd_stack_list_args, list_args_or_locals): Use | |
12329 | ui_out_emit_list. | |
12330 | * disasm.c (do_assembly_only): Use ui_out_emit_list. | |
12331 | * breakpoint.c (print_solib_event, output_thread_groups): Use | |
12332 | ui_out_emit_list. | |
12333 | ||
0092b74d TT |
12334 | 2017-04-22 Tom Tromey <tom@tromey.com> |
12335 | ||
12336 | * mi/mi-main.c (print_variable_or_computed): Use ui_out_emit_tuple. | |
12337 | * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_tuple. | |
12338 | * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_out_emit_tuple. | |
12339 | ||
a14a62dd TT |
12340 | 2017-04-22 Tom Tromey <tom@tromey.com> |
12341 | ||
12342 | * tracepoint.c (tvariables_info_1) | |
12343 | (print_one_static_tracepoint_marker): Use ui_out_emit_tuple. | |
12344 | ||
46b9c129 TT |
12345 | 2017-04-22 Tom Tromey <tom@tromey.com> |
12346 | ||
12347 | * stack.c (print_frame_arg): Use ui_out_emit_tuple, | |
12348 | annotate_arg_emitter. | |
12349 | * breakpoint.c (print_mention_watchpoint) | |
12350 | (print_mention_masked_watchpoint): Use ui_out_emit_tuple. | |
12351 | * annotate.h (struct annotate_arg_emitter): New. | |
12352 | ||
2e783024 TT |
12353 | 2017-04-22 Tom Tromey <tom@tromey.com> |
12354 | ||
12355 | * record-btrace.c (record_btrace_insn_history) | |
12356 | (record_btrace_insn_history_range, record_btrace_call_history) | |
12357 | (record_btrace_call_history_range): Use ui_out_emit_tuple. | |
12358 | * thread.c (do_captured_list_thread_ids, print_thread_info_1): Use | |
12359 | ui_out_emit_tuple. | |
12360 | * stack.c (print_frame_info): Use ui_out_emit_tuple. | |
12361 | * solib.c (info_sharedlibrary_command): Use ui_out_emit_tuple. | |
12362 | * skip.c (skip_info): Use ui_out_emit_tuple. | |
12363 | * remote.c (show_remote_cmd): Use ui_out_emit_tuple. | |
12364 | * progspace.c (print_program_space): Use ui_out_emit_tuple. | |
12365 | * probe.c (info_probes_for_ops): Use ui_out_emit_tuple. | |
12366 | * osdata.c (info_osdata): Use ui_out_emit_tuple. | |
12367 | * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use | |
12368 | ui_out_emit_tuple. | |
12369 | * mi/mi-main.c (print_one_inferior, list_available_thread_groups) | |
12370 | (output_register, mi_cmd_data_read_memory) | |
12371 | (mi_cmd_data_read_memory_bytes, mi_load_progress) | |
12372 | (mi_cmd_trace_frame_collected): Use ui_out_emit_tuple. | |
12373 | * mi/mi-cmd-var.c (mi_cmd_var_list_children, varobj_update_one): | |
12374 | Use ui_out_emit_tuple. | |
12375 | * mi/mi-cmd-stack.c (mi_cmd_stack_list_args): Use | |
12376 | ui_out_emit_tuple. | |
12377 | * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions) | |
12378 | (mi_cmd_info_gdb_mi_command): Use ui_out_emit_tuple. | |
12379 | * linux-thread-db.c (info_auto_load_libthread_db): Use | |
12380 | ui_out_emit_tuple. | |
12381 | * inferior.c (print_inferior): Use ui_out_emit_tuple. | |
12382 | * gdb_bfd.c (print_one_bfd): Use ui_out_emit_tuple. | |
12383 | * disasm.c (do_mixed_source_and_assembly_deprecated) | |
12384 | (do_mixed_source_and_assembly): Use ui_out_emit_tuple. | |
12385 | * cp-abi.c (list_cp_abis): Use ui_out_emit_tuple. | |
12386 | * cli/cli-setshow.c (cmd_show_list): Use ui_out_emit_tuple. | |
12387 | * breakpoint.c (print_one_breakpoint_location) | |
12388 | (print_one_breakpoint): Use ui_out_emit_tuple. | |
12389 | * auto-load.c (print_script, info_auto_load_cmd): Use | |
12390 | ui_out_emit_tuple. | |
12391 | * ada-tasks.c (print_ada_task_info): Use ui_out_emit_tuple. | |
12392 | ||
9be21bb4 SM |
12393 | 2017-04-21 Simon Marchi <simon.marchi@ericsson.com> |
12394 | ||
12395 | * thread.c (print_thread_info_1): Remove dead code. | |
12396 | ||
0d4c07af JK |
12397 | 2017-04-21 Jan Kratochvil <jan.kratochvil@redhat.com> |
12398 | ||
12399 | * aarch64-tdep.c (selftests::aarch64_process_record_test): Make it #if | |
12400 | GDB_SELF_TEST. | |
12401 | * arm-tdep.c (selftests::arm_record_test): Likewise. | |
12402 | ||
4daf993d YQ |
12403 | 2017-04-21 Yao Qi <yao.qi@linaro.org> |
12404 | ||
12405 | * regcache.c (regcache_restore): Remove argument 2. Replace | |
12406 | argument 3 with regcache. Get register status from | |
12407 | src->register_status and get register contents from | |
12408 | register_buffer (src, regnum). | |
12409 | (regcache_cpy): Update. | |
12410 | ||
a6c21d4a PA |
12411 | 2017-04-19 Pedro Alves <palves@redhat.com> |
12412 | ||
12413 | * gdbthread.h (thread): Add missing closing parenthesis in | |
12414 | comment. | |
12415 | ||
3a3fd0fd PA |
12416 | 2017-04-19 Pedro Alves <palves@redhat.com> |
12417 | ||
12418 | * common/refcounted-object.h: New file. | |
12419 | * gdbthread.h: Include "common/refcounted-object.h". | |
12420 | (thread_info): Inherit from refcounted_object and add comments. | |
12421 | (thread_info::incref, thread_info::decref) | |
12422 | (thread_info::m_refcount): Delete. | |
12423 | (thread_info::deletable): Use the refcounted_object::refcount() | |
12424 | method. | |
12425 | * inferior.c (current_inferior_): Add comment. | |
12426 | (set_current_inferior): Increment/decrement refcounts. | |
12427 | (prune_inferiors, remove_inferior_command): Skip inferiors marked | |
12428 | not-deletable instead of comparing with the current inferior. | |
12429 | (initialize_inferiors): Increment the initial inferior's refcount. | |
12430 | * inferior.h (struct inferior): Forward declare. | |
12431 | Include "common/refcounted-object.h". | |
12432 | (current_inferior, set_current_inferior): Move declaration to | |
12433 | before struct inferior's definition, and fix comment. | |
12434 | (inferior): Inherit from refcounted_object. Add comments. | |
12435 | * thread.c (switch_to_thread_no_regs): Reference the thread's | |
12436 | inferior pointer directly instead of doing a ptid lookup. | |
12437 | (switch_to_no_thread): New function. | |
12438 | (switch_to_thread(thread_info *)): New function, factored out | |
12439 | from ... | |
12440 | (switch_to_thread(ptid_t)): ... this. | |
12441 | (restore_current_thread): Delete. | |
12442 | (current_thread_cleanup): Remove 'inf_id' and 'was_removable' | |
12443 | fields, and add 'inf' field. | |
12444 | (do_restore_current_thread_cleanup): Check whether old->inf is | |
12445 | alive instead of looking up an inferior by ptid. Use | |
12446 | switch_to_thread and switch_to_no_thread. | |
12447 | (restore_current_thread_cleanup_dtor): Use old->inf directly | |
12448 | instead of lookup up an inferior by id. Decref the inferior. | |
12449 | Don't restore 'removable'. | |
12450 | (make_cleanup_restore_current_thread): Same the inferior pointer | |
12451 | in old, instead of the inferior number. Incref the inferior. | |
12452 | Don't save/clear 'removable'. | |
12453 | ||
9bcb1f16 PA |
12454 | 2017-04-19 Pedro Alves <palves@redhat.com> |
12455 | ||
12456 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add | |
12457 | unittests/scoped_restore-selftests.c. | |
12458 | (SUBDIR_UNITTESTS_OBS): Add scoped_restore-selftests.o. | |
12459 | * common/scoped_restore.h (scoped_restore_base): Make "class". | |
12460 | (scoped_restore_base::release): New public method. | |
12461 | (scoped_restore_base::scoped_restore_base): New protected ctor. | |
12462 | (scoped_restore_base::m_saved_var): New protected field. | |
12463 | (scoped_restore_tmpl::scoped_restore_tmpl(T*)): Initialize the | |
12464 | scoped_restore_base base class instead of m_saved_var directly. | |
12465 | (scoped_restore_tmpl::scoped_restore_tmpl(T*, T2)): Likewise. | |
12466 | (scoped_restore_tmpl::scoped_restore_tmpl(const | |
12467 | scoped_restore_tmpl<T>&)): Likewise. | |
12468 | (scoped_restore_tmpl::~scoped_restore_tmpl): Use the saved_var | |
12469 | method. | |
12470 | (scoped_restore_tmpl::saved_var): New method. | |
12471 | (scoped_restore_tmpl::m_saved_var): Delete. | |
12472 | * inferior.h (inferior::detaching): Now a bool. | |
12473 | * infrun.c (prepare_for_detach): Use a scoped_restore instead of a | |
12474 | cleanup. | |
12475 | * unittests/scoped_restore-selftests.c: New file. | |
12476 | ||
26fcd539 PA |
12477 | 2017-04-19 Pedro Alves <palves@redhat.com> |
12478 | ||
12479 | * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS): | |
12480 | Re-sort in alphabetic order. | |
12481 | ||
fdd243b0 PA |
12482 | 2017-04-18 Pedro Alves <palves@redhat.com> |
12483 | ||
12484 | * xml-support.c (obstack_xml_printf): Delete. | |
12485 | * xml-support.h (obstack_xml_printf): Delete. | |
12486 | ||
4895cde2 PA |
12487 | 2017-04-18 Pedro Alves <palves@redhat.com> |
12488 | ||
12489 | * xml-support.c (gdb_xml_parser) <use_dtd, dtd_name, parse, | |
12490 | vdebug, verror, body_text, start_element, end_element, name, | |
12491 | user_data, set_is_xinclude, set_error, expat_parser>: New methods. | |
12492 | <name, user_data, expat_parser, scopes, error, last_line, dtd_name, | |
12493 | is_xinclude>: Make private and add m_ prefix. | |
12494 | (gdb_xml_parser::body_text): New method, based on ... | |
12495 | (gdb_xml_body_text): ... this. Adjust. | |
12496 | (gdb_xml_parser::vdebug): New method, based on ... | |
12497 | (gdb_xml_debug): ... this. Adjust. | |
12498 | (gdb_xml_parser::verror): New method, based on ... | |
12499 | (gdb_xml_error): ... this. Adjust. | |
12500 | (gdb_xml_parser::start_element): New method, based on ... | |
12501 | (gdb_xml_start_element): ... this. Adjust. | |
12502 | (gdb_xml_start_element_wrapper): Defer to | |
12503 | gdb_xml_parser::start_element and gdb_xml_parser::set_error. | |
12504 | (gdb_xml_parser::end_element): New method, based on ... | |
12505 | (gdb_xml_end_element_wrapper): ... this. Adjust. | |
12506 | (gdb_xml_parser::~gdb_xml_parser): Adjust. | |
12507 | (gdb_xml_parser::gdb_xml_parser): Adjust to field renames. | |
12508 | (gdb_xml_parser::use_dtd): New method, based on ... | |
12509 | (gdb_xml_use_dtd): ... this. Adjust. | |
12510 | (gdb_xml_parser::parse): New method, based on ... | |
12511 | (gdb_xml_parse): ... this. Adjust. | |
12512 | (gdb_xml_parse_quick): Adjust to call the parser's parse method. | |
12513 | (xinclude_start_include): Adjust to call the parser's name method. | |
12514 | (xml_xinclude_default, xml_xinclude_start_doctype) | |
12515 | (xml_xinclude_end_doctype): Adjust to call the parser's user_data | |
12516 | method. | |
12517 | (xml_process_xincludes): Adjust to call parser methods. | |
12518 | * xml-support.h (gdb_xml_use_dtd, gdb_xml_parse): Delete | |
12519 | declarations. | |
12520 | ||
bd8a901f PA |
12521 | 2017-04-18 Pedro Alves <palves@redhat.com> |
12522 | ||
12523 | * tracefile-tfile.c (tfile_write_tdesc): Adjust to use | |
12524 | gdb::optional<std::string>. | |
12525 | * xml-support.c: Include <string>. | |
12526 | (scope_level::scope_level(scope_level &&)) | |
12527 | (scope_level::~scope_level): Delete. | |
12528 | (scope_level::body): Now a std::string. | |
12529 | (gdb_xml_body_text, gdb_xml_end_element): Adjust. | |
12530 | (xinclude_parsing_data::xinclude_parsing_data): Add 'output' | |
12531 | parameter. | |
12532 | (xinclude_parsing_data::~xinclude_parsing_data): Delete. | |
12533 | (xinclude_parsing_data::output): Now a std::string reference. | |
12534 | (xinclude_start_include): Adjust. | |
12535 | (xml_xinclude_default): Adjust. | |
12536 | (xml_process_xincludes): Add 'output' parameter, and return bool. | |
12537 | * xml-support.h (xml_process_xincludes): Add 'output' parameter, | |
12538 | and return bool. | |
12539 | * xml-tdesc.c: Include <unordered_map> and <string>. | |
12540 | (tdesc_xml_cache): Delete. | |
12541 | (tdesc_xml_cache_s): Delete. | |
12542 | (xml_cache): Now an std::unordered_map. | |
12543 | (tdesc_parse_xml): Adjust to use std::string and unordered_map. | |
12544 | (target_fetch_description_xml): Change return type to | |
12545 | gdb::optional<std::string>, and adjust. | |
12546 | * xml-tdesc.h: Include "common/gdb_optional.h" and <string>. | |
12547 | (target_fetch_description_xml): Change return type to | |
12548 | gdb::optional<std::string>. | |
12549 | ||
d35d1958 PA |
12550 | 2017-04-18 Pedro Alves <palves@redhat.com> |
12551 | ||
12552 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add | |
12553 | unittests/optional-selftests.c. | |
12554 | (SUBDIR_UNITTESTS_OBS): Add optional-selftests.o. | |
12555 | * unittests/optional-selftests.c: New file. | |
12556 | * unittests/optional/assignment/1.cc: New file. | |
12557 | * unittests/optional/assignment/2.cc: New file. | |
12558 | * unittests/optional/assignment/3.cc: New file. | |
12559 | * unittests/optional/assignment/4.cc: New file. | |
12560 | * unittests/optional/assignment/5.cc: New file. | |
12561 | * unittests/optional/assignment/6.cc: New file. | |
12562 | * unittests/optional/assignment/7.cc: New file. | |
12563 | * unittests/optional/cons/copy.cc: New file. | |
12564 | * unittests/optional/cons/default.cc: New file. | |
12565 | * unittests/optional/cons/move.cc: New file. | |
12566 | * unittests/optional/cons/value.cc: New file. | |
12567 | * unittests/optional/in_place.cc: New file. | |
12568 | * unittests/optional/observers/1.cc: New file. | |
12569 | * unittests/optional/observers/2.cc: New file. | |
12570 | ||
22796e97 PA |
12571 | 2017-04-18 Pedro Alves <palves@redhat.com> |
12572 | ||
12573 | * common/gdb_optional.h: Include common/traits.h. | |
12574 | (in_place_t): New type. | |
12575 | (in_place): New constexpr variable. | |
12576 | (optional::optional): Remove member initialization of | |
12577 | m_instantiated. | |
12578 | (optional::optional(in_place_t...)): New constructor. | |
12579 | (optional::~optional): Use reset. | |
12580 | (optional::optional(const optional&)): New. | |
12581 | (optional::optional(const optional&&)): New. | |
12582 | (optional::optional(T &)): New. | |
12583 | (optional::optional(T &&)): New. | |
12584 | (operator::operator=(const optional &)): New. | |
12585 | (operator::operator=(optional &&)): New. | |
12586 | (operator::operator= (const T &)) | |
12587 | (operator::operator= (T &&)) | |
12588 | (operator::emplace (Args &&... args)): Return a T&. Use reset. | |
12589 | (operator::reset): New. | |
12590 | (operator::m_instantiated):: Add in-class initializer. | |
12591 | * common/traits.h: Include <type_traits>. | |
12592 | (struct And): New types. | |
12593 | ||
a7fc9b61 PA |
12594 | 2017-04-18 Pedro Alves <palves@redhat.com> |
12595 | ||
12596 | * xml-support.c: Include <vector>. | |
12597 | (scope_level::scope_level(const gdb_xml_element *)) | |
12598 | (scope_level::scope_level(scope_level&&)): New. | |
12599 | (scope_level::~scope_level): New. | |
12600 | (scope_level_s): Delete. | |
12601 | (gdb_xml_parser::scopes): Now a std::vector. | |
12602 | (gdb_xml_body_text, gdb_xml_start_element, gdb_xml_end_element): | |
12603 | Use std::vector. | |
12604 | (gdb_xml_parser::~gdb_xml_parser): Remove now unnecessary | |
12605 | scope cleanup code. | |
12606 | (gdb_xml_parser::gdb_xml_parser): Remove explicit initialization | |
12607 | of the scopes member. Use std::vector::emplace_back. | |
12608 | ||
010151c9 PA |
12609 | 2017-04-18 Pedro Alves <palves@redhat.com> |
12610 | ||
12611 | * xml-support.c (gdb_xml_parser): Add ctor/dtor. Make is_xinclude | |
12612 | a bool. | |
12613 | (gdb_xml_end_element): Change type of first parameter. | |
12614 | (gdb_xml_cleanup): Rename to ... | |
12615 | (gdb_xml_parser::~gdb_xml_parser): ... this. | |
12616 | (gdb_xml_create_parser_and_cleanup): Delete with ... | |
12617 | (gdb_xml_parser::gdb_xml_parser): ... creation parts factored out | |
12618 | to this new ctor. | |
12619 | (gdb_xml_parse_quick): Create a local gdb_xml_parser instead of | |
12620 | using gdb_xml_create_parser_and_cleanup. | |
12621 | (xinclude_parsing_data): Add ctor/dtor. | |
12622 | (xml_xinclude_cleanup): Delete. | |
12623 | (xml_process_xincludes): Create a local xinclude_parsing_data | |
12624 | instead of heap-allocating one. Create a local gdb_xml_parser | |
12625 | instead of heap-allocating one with | |
12626 | gdb_xml_create_parser_and_cleanup. | |
12627 | ||
d56060f0 JB |
12628 | 2017-04-18 John Baldwin <jhb@FreeBSD.org> |
12629 | ||
12630 | PR threads/20743 | |
12631 | * fbsd-nat.c (resume_one_thread_cb): Remove. | |
12632 | (resume_all_threads_cb): Remove. | |
12633 | (fbsd_resume): Use ALL_NON_EXITED_THREADS instead of | |
12634 | iterate_over_threads. | |
12635 | ||
305d16a9 JB |
12636 | 2017-04-17 Joel Brobecker <brobecker@adacore.com> |
12637 | ||
12638 | * NEWS: Create a new section for the next release branch. | |
12639 | Rename the section of the current branch, now that it has | |
12640 | been cut. | |
12641 | ||
8bb57231 JB |
12642 | 2017-04-17 Joel Brobecker <brobecker@adacore.com> |
12643 | ||
12644 | GDB 8.0 branch created (725bf5cf125783c2a7ca4ab63d3768e220bab2db): | |
12645 | * version.in: Bump version to 8.0.50.DATE-git. | |
12646 | ||
096c92dd SDJ |
12647 | 2017-04-13 Sergio Durigan Junior <sergiodj@redhat.com> |
12648 | ||
12649 | PR gdb/21385 | |
12650 | * windows-nat.c (windows_create_inferior): Declare 'allargs' | |
12651 | independently of the host, and fix build breakage on Cygwin. | |
12652 | ||
0550c955 PA |
12653 | 2017-04-13 Pedro Alves <palves@redhat.com> |
12654 | ||
12655 | * inferior.c (free_inferior): Convert to ... | |
12656 | (inferior::~inferior): ... this dtor. | |
12657 | (inferior::inferior): New ctor, factored out from ... | |
12658 | (add_inferior_silent): ... here. Allocate the inferior with a new | |
12659 | expression. | |
12660 | (delete_inferior): Call delete instead of free_inferior. | |
12661 | * inferior.h (gdb_environ, continuation): Forward declare. | |
12662 | (inferior): Now a class. Add in-class initialization to all | |
12663 | members. Make boolean fields bool, except 'detaching'. | |
12664 | (inferior::inferior): New explicit ctor. | |
12665 | (inferior::~inferior): New. | |
12666 | ||
e3d60dfc PA |
12667 | 2017-04-13 Pedro Alves <palves@redhat.com> |
12668 | ||
12669 | * inferior.c (init_inferior_list): Delete. | |
12670 | * inferior.h (init_inferior_list): Delete. | |
12671 | ||
5fd69d0a PA |
12672 | 2017-04-13 Pedro Alves <palves@redhat.com> |
12673 | ||
12674 | PR threads/13217 | |
12675 | * gdb.threads/threadapply.exp (thr_apply_detach): New procedure. | |
12676 | (top level): Call it twice, with different thread sets. | |
12677 | ||
c6609450 PA |
12678 | 2017-04-13 Pedro Alves <palves@redhat.com> |
12679 | ||
12680 | * thread.c: Include <algorithm>. | |
12681 | (thread_array_cleanup): Delete. | |
12682 | (scoped_inc_dec_ref): New class. | |
12683 | (live_threads_count): New function. | |
12684 | (set_thread_refcount): Delete. | |
12685 | (tp_array_compar_ascending): Now a bool. | |
12686 | (tp_array_compar): Convert to a std::sort comparison function. | |
12687 | (thread_apply_all_command): Use std::vector and scoped_inc_dec_ref | |
12688 | and live_threads_count. | |
12689 | ||
2a00d7ce PA |
12690 | 2017-04-13 Pedro Alves <palves@redhat.com> |
12691 | ||
12692 | * infrun.c (follow_fork_inferior): Also switch the current | |
12693 | inferior. | |
12694 | ||
441d7c93 PA |
12695 | 2017-04-13 Pedro Alves <palves@redhat.com> |
12696 | ||
12697 | * breakpoint.c (watch_command_1): Save watchpoint-frame info | |
12698 | before calling create_internal_breakpoint. | |
12699 | ||
808480f6 PA |
12700 | 2017-04-13 Pedro Alves <palves@redhat.com> |
12701 | ||
12702 | * fork-child.c (execv_argv): New class. | |
12703 | (breakup_args): Refactored as ... | |
12704 | (execv_argv::init_for_no_shell): .. this method of execv_argv. | |
12705 | Copy arguments to storage and replace separators with NULL | |
12706 | terminators in place. | |
12707 | (escape_bang_in_quoted_argument): Adjust to return bool. | |
12708 | (execv_argv::execv_argv): New ctor. | |
12709 | (execv_argv::init_for_shell): New method, factored out from | |
12710 | fork_inferior. Don't strdup strings into the vector. | |
12711 | (fork_inferior): Eliminate "shell" local and use execv_argv. Use | |
12712 | Remove free_vector_argv call. | |
12713 | ||
ad3d022a YQ |
12714 | 2017-04-13 Yao Qi <yao.qi@linaro.org> |
12715 | ||
12716 | * rx-tdep.c (rx_fpsw_type): Check tdep->rx_fpsw_type instead of | |
12717 | tdep->rx_psw_type. | |
12718 | ||
e6ddc3bf YQ |
12719 | 2017-04-13 Yao Qi <yao.qi@linaro.org> |
12720 | ||
12721 | * rl78-tdep.c (rl78_gdbarch_init): Use XCNEW instead of XNEW. | |
12722 | * rx-tdep.c (rx_gdbarch_init): Likewise. | |
12723 | ||
bfb8cf90 PA |
12724 | 2017-04-13 Pedro Alves <palves@redhat.com> |
12725 | ||
12726 | * breakpoint.h (struct breakpoint): Reindent. | |
12727 | ||
f5336ca5 PA |
12728 | 2017-04-13 Pedro Alves <palves@redhat.com> |
12729 | ||
12730 | * breakpoint.c (bp_location): Rename to ... | |
12731 | (bp_locations): ... this. All references updated. | |
12732 | (bp_location_count): Rename to ... | |
12733 | (bp_locations_count): ... this. All references updated. | |
12734 | (bp_location_placed_address_before_address_max): Rename to ... | |
12735 | (bp_locations_placed_address_before_address_max): ... this. All | |
12736 | references updated. | |
12737 | (bp_location_shadow_len_after_address_max): Rename to ... | |
12738 | (bp_locations_shadow_len_after_address_max): ... this. All | |
12739 | references updated. | |
12740 | (bp_location_compare_addrs): Rename to ... | |
12741 | (bp_locations_compare_addrs): ... this. All references updated. | |
12742 | (bp_location_compare):Rename to ... | |
12743 | (bp_locations_compare): ... this. All references updated. | |
12744 | (bp_location_target_extensions_update): Rename to ... | |
12745 | (bp_locations_target_extensions_update): ... this. All references | |
12746 | updated. | |
12747 | ||
be628ab8 SDJ |
12748 | 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com> |
12749 | ||
12750 | * Makefile.in (HFILES_NO_SRCDIR): Add "common/gdb_termios.h". | |
12751 | * common/common.m4: Check headers 'termios.h', 'termio.h' and | |
12752 | 'sgtty.h'. | |
12753 | * common/gdb_termios.h: New file, with parts of "terminal.h". | |
12754 | * inflow.c: Include "gdb_termios.h". | |
12755 | * ser-unix.c: Include "gdb_termios.h". | |
12756 | * terminal.h: Move terminal-related defines to | |
12757 | "common/gdb_termios.h". | |
12758 | ||
8e9e35b1 TT |
12759 | 2017-04-12 Tom Tromey <tom@tromey.com> |
12760 | ||
12761 | * probe.c (parse_probes): Update. | |
12762 | * location.h (delete_event_location): Don't declare. | |
12763 | (event_location_deleter::operator()): Update. | |
12764 | * location.c (event_location_deleter::operator()): Rename from | |
12765 | delete_event_location. | |
12766 | * linespec.h (linespec_result) <location>: Change type to | |
12767 | event_location_up. | |
12768 | * linespec.c (canonicalize_linespec, event_location_to_sals) | |
12769 | (decode_objc): Update. | |
12770 | (linespec_result): Don't call delete_event_location. | |
12771 | * breakpoint.c (create_breakpoints_sal) | |
12772 | (bkpt_probe_create_sals_from_location) | |
12773 | (strace_marker_create_sals_from_location): Update. | |
12774 | ||
16e802b9 TT |
12775 | 2017-04-12 Tom Tromey <tom@tromey.com> |
12776 | ||
12777 | * linespec.h (struct linespec_result): Add constructor and | |
12778 | destructor. | |
12779 | (init_linespec_result, destroy_linespec_result) | |
12780 | (make_cleanup_destroy_linespec_result): Don't declare. | |
12781 | * linespec.c (init_linespec_result): Remove. | |
12782 | (linespec_result::~linespec_result): Rename from | |
12783 | destroy_linespec_result. Update. | |
12784 | (cleanup_linespec_result, make_cleanup_destroy_linespec_result): | |
12785 | Remove. | |
12786 | * breakpoint.c (create_breakpoint, break_range_command) | |
12787 | (decode_location_default): Update. | |
12788 | * ax-gdb.c (agent_command_1): Update. | |
12789 | ||
d28cd78a TT |
12790 | 2017-04-12 Tom Tromey <tom@tromey.com> |
12791 | ||
12792 | * remote.c (remote_download_tracepoint): Update. | |
12793 | * python/py-breakpoint.c (bppy_get_location): Update. | |
12794 | * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob) | |
12795 | (gdbscm_breakpoint_location): Update. | |
12796 | * elfread.c (elf_gnu_ifunc_resolver_return_stop): Update. | |
12797 | * breakpoint.h (struct breakpoint) <location, location_range_end>: | |
12798 | Change type to event_location_up. | |
12799 | * breakpoint.c (create_overlay_event_breakpoint) | |
12800 | (create_longjmp_master_breakpoint) | |
12801 | (create_std_terminate_master_breakpoint) | |
12802 | (create_exception_master_breakpoint) | |
12803 | (breakpoint_event_location_empty_p, print_breakpoint_location) | |
12804 | (print_one_breakpoint_location, create_thread_event_breakpoint) | |
12805 | (init_breakpoint_sal, create_breakpoint) | |
12806 | (print_recreate_ranged_breakpoint, break_range_command) | |
12807 | (init_ada_exception_breakpoint, say_where): Update. | |
12808 | (base_breakpoint_dtor): Don't call delete_event_location. | |
12809 | (bkpt_print_recreate, tracepoint_print_recreate) | |
12810 | (dprintf_print_recreate, update_static_tracepoint) | |
12811 | (breakpoint_re_set_default): Update. | |
12812 | ||
711799d5 TT |
12813 | 2017-04-12 Tom Tromey <tom@tromey.com> |
12814 | ||
12815 | * compile/compile-loc2c.c (compute_stack_depth_worker): Change | |
12816 | type of "to_do". Update. | |
12817 | (compute_stack_depth): Use std::vector. | |
12818 | ||
52d214d3 TT |
12819 | 2017-04-12 Tom Tromey <tom@tromey.com> |
12820 | ||
12821 | * printcmd.c (find_instruction_backward): Use std::vector. | |
12822 | ||
4c404b8b TT |
12823 | 2017-04-12 Tom Tromey <tom@tromey.com> |
12824 | ||
12825 | * symfile.c (objfilep): Remove typedef. | |
12826 | (reread_symbols): Use a std::vector. | |
12827 | ||
156d9eab TT |
12828 | 2017-04-12 Tom Tromey <tom@tromey.com> |
12829 | ||
12830 | * mi/mi-main.c (exec_direction_forward): Remove. | |
12831 | (exec_reverse_continue, mi_execute_command): Use scoped_restore. | |
12832 | * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use | |
12833 | scoped_restore. | |
12834 | * guile/guile.c (guile_repl_command, guile_command) | |
12835 | (gdbscm_execute_gdb_command): Use scoped_restore. | |
12836 | * go-exp.y (go_parse): Use scoped_restore. | |
12837 | * d-exp.y (d_parse): Use scoped_restore. | |
12838 | * cli/cli-decode.c (cmd_func): Use scoped_restore. | |
12839 | * c-exp.y (c_parse): Use scoped_restore. | |
12840 | ||
4d89769a TT |
12841 | 2017-04-12 Tom Tromey <tom@tromey.com> |
12842 | ||
12843 | * mi/mi-parse.h (struct mi_parse): Add constructor, destructor. | |
12844 | (mi_parse): Update return type. | |
12845 | (mi_parse_free): Remove. | |
12846 | * mi/mi-parse.c (mi_parse::mi_parse): New constructor. | |
12847 | (mi_parse::~mi_parse): Rename from mi_parse_free. | |
12848 | (mi_parse_cleanup): Remove. | |
12849 | (mi_parse): Return a unique_ptr. Use new. | |
12850 | * mi/mi-main.c (mi_execute_command): Update. | |
12851 | ||
4b217cc7 TT |
12852 | 2017-04-12 Tom Tromey <tom@tromey.com> |
12853 | ||
12854 | * location.c (explicit_location_lex_one): Return a | |
12855 | unique_xmalloc_ptr. | |
12856 | (string_to_explicit_location): Update. Remove cleanups. | |
12857 | ||
59d3651b TT |
12858 | 2017-04-12 Tom Tromey <tom@tromey.com> |
12859 | ||
12860 | * gnu-v3-abi.c (value_and_voffset_p): Remove typedef. | |
12861 | (compare_value_and_voffset): Change type. Update. | |
12862 | (compute_vtable_size): Change type of "offset_vec". | |
12863 | (gnuv3_print_vtable): Use std::vector. Remove cleanups. | |
12864 | (gnuv3_get_typeid): Remove extraneous declaration. | |
12865 | ||
b24b0d6c TT |
12866 | 2017-04-12 Tom Tromey <tom@tromey.com> |
12867 | ||
12868 | * charset.h (wchar_iterator): Fix comment. | |
12869 | ||
80a3b8c5 TT |
12870 | 2017-04-12 Tom Tromey <tom@tromey.com> |
12871 | ||
12872 | * charset.c (iconv_wrapper): New class. | |
12873 | (cleanup_iconv): Remove. | |
12874 | (convert_between_encodings): Use it. | |
12875 | ||
c83dd867 TT |
12876 | 2017-04-12 Tom Tromey <tom@tromey.com> |
12877 | ||
12878 | * symfile.h (increment_reading_symtab): Update type. | |
12879 | * symfile.c (decrement_reading_symtab): Remove. | |
12880 | (increment_reading_symtab): Return a scoped_restore_tmpl<int>. | |
12881 | * psymtab.c (psymtab_to_symtab): Update. | |
12882 | * dwarf2read.c (dw2_instantiate_symtab): Update. | |
12883 | ||
0e8621a0 TT |
12884 | 2017-04-12 Tom Tromey <tom@tromey.com> |
12885 | ||
12886 | * jit.c (struct jit_reader): Declare separately. Add constructor | |
12887 | and destructor. Change type of "handle". | |
12888 | (loaded_jit_reader): Define separately. | |
12889 | (jit_reader_load): Update. New "new". | |
12890 | (jit_reader_unload_command): Use "delete". | |
12891 | * gdb-dlfcn.h (struct dlclose_deleter): New. | |
12892 | (gdb_dlhandle_up): New typedef. | |
12893 | (gdb_dlopen, gdb_dlsym): Update types. | |
12894 | (gdb_dlclose): Remove. | |
12895 | * gdb-dlfcn.c (gdb_dlopen): Return a gdb_dlhandle_up. | |
12896 | (gdb_dlsym): Change type of "handle". | |
12897 | (make_cleanup_dlclose): Remove. | |
12898 | (dlclose_deleter::operator()): Rename from gdb_dlclose. | |
12899 | * compile/compile-c-support.c (load_libcc): Update. | |
12900 | ||
67d89901 TT |
12901 | 2017-04-12 Tom Tromey <tom@tromey.com> |
12902 | ||
12903 | * symtab.h (find_pcs_for_symtab_line): Change return type. | |
12904 | * symtab.c (find_pcs_for_symtab_line): Change return type. | |
12905 | * python/py-linetable.c (build_line_table_tuple_from_pcs): Change | |
12906 | type of "vec". Update. | |
12907 | (ltpy_get_pcs_for_line): Update. | |
12908 | * linespec.c (decode_digits_ordinary): Update. | |
12909 | ||
93921405 TT |
12910 | 2017-04-12 Tom Tromey <tom@tromey.com> |
12911 | ||
12912 | * tracepoint.c (actions_command): Update. | |
12913 | * python/python.c (python_command, python_interactive_command): | |
12914 | Update. | |
12915 | * mi/mi-cmd-break.c (mi_cmd_break_commands): Update. | |
12916 | * guile/guile.c (guile_command): Update. | |
12917 | * defs.h (read_command_lines, read_command_lines_1): Return | |
12918 | command_line_up. | |
12919 | (command_lines_deleter): New struct. | |
12920 | (command_line_up): New typedef. | |
12921 | * compile/compile.c (compile_code_command) | |
12922 | (compile_print_command): Update. | |
12923 | * cli/cli-script.h (get_command_line, copy_command_lines): Return | |
12924 | command_line_up. | |
12925 | (make_cleanup_free_command_lines): Remove. | |
12926 | * cli/cli-script.c (get_command_line, read_command_lines_1) | |
12927 | (copy_command_lines): Return command_line_up. | |
12928 | (while_command, if_command, read_command_lines, define_command) | |
12929 | (document_command): Update. | |
12930 | (do_free_command_lines_cleanup, make_cleanup_free_command_lines): | |
12931 | Remove. | |
12932 | * breakpoint.h (breakpoint_set_commands): Change type of | |
12933 | "commands". | |
12934 | * breakpoint.c (breakpoint_set_commands): Change type of | |
12935 | "commands". Update. | |
12936 | (do_map_commands_command, update_dprintf_command_list) | |
12937 | (create_tracepoint_from_upload): Update. | |
12938 | ||
ffc2605c TT |
12939 | 2017-04-12 Tom Tromey <tom@tromey.com> |
12940 | ||
12941 | * tracepoint.c (scope_info): Update. | |
12942 | * spu-tdep.c (spu_catch_start): Update. | |
12943 | * python/python.c (gdbpy_decode_line): Update. | |
12944 | * python/py-finishbreakpoint.c (bpfinishpy_init): Update. | |
12945 | * python/py-breakpoint.c (bppy_init): Update. | |
12946 | * probe.c (parse_probes): Update. | |
12947 | * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update. | |
12948 | * location.h (event_location_deleter): New struct. | |
12949 | (event_location_up): New typedef. | |
12950 | (new_linespec_location, new_address_location, new_probe_location) | |
12951 | (new_explicit_location, copy_event_location) | |
12952 | (string_to_event_location, string_to_event_location_basic) | |
12953 | (string_to_explicit_location): Update return type. | |
12954 | (make_cleanup_delete_event_location): Remove. | |
12955 | * location.c (new_linespec_location, new_address_location) | |
12956 | (new_probe_location, new_explicit_location, copy_event_location): | |
12957 | Return event_location_up. | |
12958 | (delete_event_location_cleanup) | |
12959 | (make_cleanup_delete_event_location): Remove. | |
12960 | (string_to_explicit_location, string_to_event_location_basic) | |
12961 | (string_to_event_location): Return event_location_up. | |
12962 | * linespec.c (canonicalize_linespec, event_location_to_sals) | |
12963 | (decode_line_with_current_source) | |
12964 | (decode_line_with_last_displayed, decode_objc): Update. | |
12965 | * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update. | |
12966 | * completer.c (location_completer): Update. | |
12967 | * cli/cli-cmds.c (edit_command, list_command): Update. | |
12968 | * breakpoint.c (create_overlay_event_breakpoint) | |
12969 | (create_longjmp_master_breakpoint) | |
12970 | (create_std_terminate_master_breakpoint) | |
12971 | (create_exception_master_breakpoint) | |
12972 | (create_thread_event_breakpoint): Update. | |
12973 | (init_breakpoint_sal): Update. Remove some dead code. | |
12974 | (create_breakpoint_sal): Change type of "location". Update. | |
12975 | (create_breakpoints_sal, create_breakpoint, break_command_1) | |
12976 | (dprintf_command, break_range_command, until_break_command) | |
12977 | (init_ada_exception_breakpoint) | |
12978 | (strace_marker_create_sals_from_location) | |
12979 | (update_static_tracepoint, trace_command, ftrace_command) | |
12980 | (strace_command, create_tracepoint_from_upload): Update. | |
12981 | * break-catch-throw.c (re_set_exception_catchpoint): Update. | |
12982 | * ax-gdb.c (agent_command_1): Update. | |
12983 | ||
8f10c932 PA |
12984 | 2017-04-12 Pedro Alves <palves@redhat.com> |
12985 | ||
12986 | * Makefile.in (ALL_TARGET_OBS): Add i386-go32-tdep.o. | |
12987 | * configure.tgt: Handle i[34567]86-*-go32* and | |
12988 | i[34567]86-*-msdosdjgpp*. | |
12989 | * i386-tdep.c (i386_svr4_reg_to_regnum): | |
12990 | Make extern. | |
12991 | (i386_go32_init_abi, i386_coff_osabi_sniffer): Moved to | |
12992 | i386-go32-tdep.c. | |
12993 | (_initialize_i386_tdep): DJGPP bits moved to i386-go32-tdep.c. | |
12994 | * i386-go32-tdep.c: New file. | |
12995 | * i386-tdep.h (tdesc_i386_mmx, i386_svr4_reg_to_regnum): New | |
12996 | declarations. | |
12997 | ||
0a31ccfb SM |
12998 | 2017-04-12 Simon Marchi <simon.marchi@ericsson.com> |
12999 | ||
13000 | * aix-thread.c (pd_status2str): Change return type to const char *. | |
13001 | ||
e9bb3fbb PA |
13002 | 2017-04-12 Pedro Alves <palves@redhat.com> |
13003 | ||
13004 | * i386-tdep.c (i386_elf_init_abi, i386_go32_init_abi): Remove | |
13005 | calls to set_gdbarch_gnu_triplet_regexp. | |
13006 | ||
53375380 PA |
13007 | 2017-04-12 Pedro Alves <palves@redhat.com> |
13008 | ||
13009 | PR gdb/21323 | |
13010 | * c-lang.c (cplus_primitive_types) <cplus_primitive_type_wchar_t>: | |
13011 | New enum value. | |
13012 | (cplus_language_arch_info): Register cplus_primitive_type_wchar_t. | |
13013 | * gdbtypes.h (struct builtin_type) <builtin_wchar>: New field. | |
13014 | * gdbtypes.c (gdbtypes_post_init): Create the "wchar_t" type. | |
13015 | * gdbarch.sh (wchar_bit, wchar_signed): New per-arch values. | |
13016 | * gdbarch.h, gdbarch.c: Regenerate. | |
13017 | * aarch64-tdep.c (aarch64_gdbarch_init): Override | |
13018 | gdbarch_wchar_bit and gdbarch_wchar_signed. | |
13019 | * alpha-tdep.c (alpha_gdbarch_init): Likewise. | |
13020 | * arm-tdep.c (arm_gdbarch_init): Likewise. | |
13021 | * avr-tdep.c (avr_gdbarch_init): Likewise. | |
13022 | * h8300-tdep.c (h8300_gdbarch_init): Likewise. | |
13023 | * i386-nto-tdep.c (i386nto_init_abi): Likewise. | |
13024 | * i386-tdep.c (i386_go32_init_abi): Likewise. | |
13025 | * m32r-tdep.c (m32r_gdbarch_init): Likewise. | |
13026 | * moxie-tdep.c (moxie_gdbarch_init): Likewise. | |
13027 | * nds32-tdep.c (nds32_gdbarch_init): Likewise. | |
13028 | * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise. | |
13029 | * sh-tdep.c (sh_gdbarch_init): Likewise. | |
13030 | * sparc-tdep.c (sparc32_gdbarch_init): Likewise. | |
13031 | * sparc64-tdep.c (sparc64_init_abi): Likewise. | |
13032 | * windows-tdep.c (windows_init_abi): Likewise. | |
13033 | * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise. | |
13034 | ||
53e710ac PA |
13035 | 2017-04-12 Pedro Alves <palves@redhat.com> |
13036 | ||
13037 | PR c++/21323 | |
13038 | * c-lang.c (cplus_primitive_types) <cplus_primitive_type_char16_t, | |
13039 | cplus_primitive_type_char32_t>: New enum values. | |
13040 | (cplus_language_arch_info): Register cplus_primitive_type_char16_t | |
13041 | and cplus_primitive_type_char32_t. | |
13042 | * dwarf2read.c (read_base_type) <DW_ATE_UTF>: If bit size is 16 or | |
13043 | 32, use the archtecture's built-in type for char16_t and char32_t, | |
13044 | respectively. Otherwise, fallback to init_integer_type as before, | |
13045 | but make the type unsigned, and issue a complaint. | |
13046 | * gdbtypes.c (gdbtypes_post_init): Make char16_t and char32_t unsigned. | |
13047 | ||
ab0538b8 AH |
13048 | 2017-04-12 Alan Hayward <alan.hayward@arm.com> |
13049 | ||
5e0e0422 | 13050 | * m32r-tdep.c (M32R_ARG_REGISTER_SIZE): Added. |
ab0538b8 AH |
13051 | (m32r_push_dummy_call): Use M32R_ARG_REGISTER_SIZE. |
13052 | ||
5430098f SDJ |
13053 | 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com> |
13054 | ||
13055 | * windows-nat.c (windows_create_inferior): Declare 'toexec' as | |
13056 | 'const char *'. | |
13057 | ||
7c5ded6a SDJ |
13058 | 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com> |
13059 | ||
13060 | * common/common-utils.c (free_vector_argv): New function. | |
13061 | * common/common-utils.h: Include <vector>. | |
13062 | (free_vector_argv): New prototype. | |
13063 | * darwin-nat.c (darwin_create_inferior): Rewrite function | |
13064 | prototype in order to constify "exec_file" and accept a | |
13065 | "std::string" for "allargs". | |
13066 | * fork-child.c: Include <vector>. | |
13067 | (breakup_args): Rewrite function, using C++. | |
13068 | (fork_inferior): Rewrite function header, constify "exec_file_arg" | |
13069 | and accept "std::string" for "allargs". Update the code to | |
13070 | calculate "argv" based on "allargs". Update calls to "exec_fun" | |
13071 | and "execvp". | |
13072 | * gnu-nat.c (gnu_create_inferior): Rewrite function prototype in | |
13073 | order to constify "exec_file" and accept a "std::string" for | |
13074 | "allargs". | |
13075 | * go32-nat.c (go32_create_inferior): Likewise. | |
13076 | * inf-ptrace.c (inf_ptrace_create_inferior): Likewise. | |
13077 | * infcmd.c (run_command_1): Constify "exec_file". Use | |
13078 | "std::string" for inferior arguments. | |
13079 | * inferior.h (fork_inferior): Update prototype. | |
13080 | * linux-nat.c (linux_nat_create_inferior): Rewrite function | |
13081 | prototype in order to constify "exec_file" and accept a | |
13082 | "std::string" for "allargs". | |
13083 | * nto-procfs.c (procfs_create_inferior): Likewise. | |
13084 | * procfs.c (procfs_create_inferior): Likewise. | |
13085 | * remote-sim.c (gdbsim_create_inferior): Likewise. | |
13086 | * remote.c (extended_remote_run): Update code to accept | |
13087 | "std::string" as argument. | |
13088 | (extended_remote_create_inferior): Rewrite function prototype in | |
13089 | order to constify "exec_file" and accept a "std::string" for | |
13090 | "allargs". | |
13091 | * rs6000-nat.c (super_create_inferior): Likewise. | |
13092 | (rs6000_create_inferior): Likewise. | |
13093 | * target.h (struct target_ops) <to_create_inferior>: Likewise. | |
13094 | * windows-nat.c (windows_create_inferior): Likewise. | |
13095 | ||
ae0eee42 PA |
13096 | 2017-04-11 Pedro Alves <palves@redhat.com> |
13097 | ||
13098 | * thread.c: Fix whitespace throughout. | |
13099 | ||
a6acac06 PR |
13100 | 2017-04-11 Philipp Rudo <prudo@linux.vnet.ibm.com> |
13101 | ||
13102 | * linux-nat.c (linux_nat_detach): Remove delete_lwp call. | |
13103 | ||
64403bd1 AH |
13104 | 2017-04-11 Alan Hayward <alan.hayward@arm.com> |
13105 | ||
13106 | * arm-tdep.c (arm_store_return_value): Use FP_REGISTER_SIZE | |
13107 | ||
a5bef50f SDJ |
13108 | 2017-04-10 Sergio Durigan Junior <sergiodj@redhat.com> |
13109 | ||
13110 | PR gdb/21364 | |
13111 | * osdata.c (info_osdata): Check if 'type' is an empty string | |
13112 | instead of NULL. | |
13113 | ||
9295a5a9 PA |
13114 | 2017-04-10 Pedro Alves <palves@redhat.com> |
13115 | ||
13116 | * thread.c (add_thread_silent, delete_thread_1, find_thread_ptid) | |
13117 | (ptid_to_global_thread_id, in_thread_list) | |
13118 | (do_captured_list_thread_ids, set_resumed, set_running) | |
13119 | (set_executing, set_stop_requested, finish_thread_state) | |
13120 | (validate_registers_access, can_access_registers_ptid) | |
13121 | (print_thread_info_1, switch_to_thread) | |
13122 | (do_restore_current_thread_cleanup) | |
13123 | (make_cleanup_restore_current_thread, thread_command) | |
13124 | (thread_name_command): Use operator== instead of ptid_equal. | |
13125 | ||
996812e3 PA |
13126 | 2017-04-10 Pedro Alves <palves@redhat.com> |
13127 | ||
13128 | * thread.c (struct current_thread_cleanup) <next>: Delete field. | |
13129 | (current_thread_cleanup_chain): Delete. | |
13130 | (restore_current_thread_cleanup_dtor) | |
13131 | (make_cleanup_restore_current_thread): Remove references to | |
13132 | current_thread_cleanup_chain. | |
13133 | ||
845b344f AH |
13134 | 2017-04-10 Alan Hayward <alan.hayward@arm.com> |
13135 | ||
13136 | * msp430-tdep.c (msp430_pseudo_register_read): Never return | |
13137 | REG_UNKNOWN. | |
13138 | ||
803bdfe4 YQ |
13139 | 2017-04-10 Yao Qi <yao.qi@linaro.org> |
13140 | ||
13141 | PR gdb/19942 | |
13142 | * gdbthread.h (thread_info::deletable): New method. | |
13143 | (thread_info::incref): New method. | |
13144 | (thread_info::decref): New method. | |
13145 | (thread_info::refcount): Move it to private. | |
13146 | * infrun.c (save_stop_context): Call inc_refcount. | |
13147 | (release_stop_context_cleanup): Likewise. | |
13148 | * thread.c (set_thread_exited): New function. | |
13149 | (init_thread_list): Delete "tp" only it is deletable, otherwise | |
13150 | call set_thread_exited. | |
13151 | (delete_thread_1): Call set_thread_exited. | |
13152 | (current_thread_cleanup) <inferior_pid>: Remove. | |
13153 | <thread>: New field. | |
13154 | (restore_current_thread_ptid_changed): Removed. | |
13155 | (do_restore_current_thread_cleanup): Adjust. | |
13156 | (restore_current_thread_cleanup_dtor): Don't call | |
13157 | find_thread_ptid. | |
13158 | (set_thread_refcount): Use dec_refcount. | |
13159 | (make_cleanup_restore_current_thread): Adjust. | |
13160 | (thread_apply_all_command): Call inc_refcount. | |
13161 | (_initialize_thread): Don't call | |
13162 | observer_attach_thread_ptid_changed. | |
13163 | ||
8c25b497 YQ |
13164 | 2017-04-10 Yao Qi <yao.qi@linaro.org> |
13165 | ||
13166 | * thread.c (delete_thread_1): Hoist code on marking thread as | |
13167 | exited. | |
13168 | ||
8473b447 SM |
13169 | 2017-04-09 Simon Marchi <simon.marchi@polymtl.ca> |
13170 | ||
13171 | * windows-nat.c (windows_detach): Initialize ptid with | |
13172 | minus_one_ptid. | |
13173 | ||
6670ec13 SM |
13174 | 2017-04-07 Simon Marchi <simon.marchi@ericsson.com> |
13175 | ||
13176 | * unittests/ptid-selftests.c: Fix erroneous assert messages. | |
13177 | ||
ba2f91bb AH |
13178 | 2017-04-07 Alan Hayward <alan.hayward@arm.com> |
13179 | ||
13180 | * bfin-tdep.c (BFIN_MAX_REGISTER_SIZE): Add. | |
13181 | (bfin_pseudo_register_read): Use BFIN_MAX_REGISTER_SIZE. | |
13182 | (bfin_pseudo_register_write): Likewise | |
13183 | ||
436252de SM |
13184 | 2017-04-06 Simon Marchi <simon.marchi@ericsson.com> |
13185 | ||
13186 | * common/ptid.h (struct ptid): Change to... | |
13187 | (class ptid_t): ... this. | |
13188 | <ptid_t>: New constructors. | |
13189 | <pid, lwp_p, lwp, tid_p, tid, is_pid, operator==, operator!=, | |
13190 | matches>: New methods. | |
13191 | <make_null, make_minus_one>: New static methods. | |
13192 | <pid>: Rename to... | |
13193 | <m_pid>: ...this. | |
13194 | <lwp>: Rename to... | |
13195 | <m_lwp>: ...this. | |
13196 | <tid>: Rename to... | |
13197 | <m_tid>: ...this. | |
13198 | (ptid_build, ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, | |
13199 | ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match): Take ptid arguments | |
13200 | as references, move comment to class ptid_t. | |
13201 | * common/ptid.c (null_ptid, minus_one_ptid): Initialize with | |
13202 | ptid_t static methods. | |
13203 | (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_tid, | |
13204 | ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match): | |
13205 | Take ptid arguments as references, implement using ptid_t methods. | |
13206 | * unittests/ptid-selftests.c: New file. | |
13207 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add | |
13208 | unittests/ptid-selftests.c. | |
13209 | (SUBDIR_UNITTESTS_OBS): Add unittests/ptid-selftests.o. | |
13210 | ||
0dedf377 TP |
13211 | 2017-04-06 Thomas Preud'homme <thomas.preudhomme@arm.com> |
13212 | ||
13213 | * python/python.c (python_run_simple_file): Cast mode literal to | |
13214 | non-const char pointer as expected by PyFile_FromString. | |
13215 | ||
4e9868d4 SM |
13216 | 2017-04-05 Simon Marchi <simon.marchi@ericsson.com> |
13217 | ||
13218 | * common/ptid.c (ptid_lwp_p, ptid_tid_p): Remove comparison with | |
13219 | minus_one_ptid and null_ptid. | |
13220 | ||
9bf2a700 PA |
13221 | 2017-04-05 Pedro Alves <palves@redhat.com> |
13222 | ||
13223 | * warning.m4 (build_warnings): Remove -Wno-write-strings. | |
13224 | * configure: Regenerate. | |
13225 | ||
a121b7c1 PA |
13226 | 2017-04-05 Pedro Alves <palves@redhat.com> |
13227 | ||
13228 | * ada-exp.y (yyerror): Constify. | |
13229 | * ada-lang.c (bound_name, get_selections) | |
13230 | (ada_variant_discrim_type) | |
13231 | (ada_variant_discrim_name, ada_value_struct_elt) | |
13232 | (ada_lookup_struct_elt_type, is_unchecked_variant) | |
13233 | (ada_which_variant_applies, standard_exc, ada_get_next_arg) | |
13234 | (catch_ada_exception_command_split) | |
13235 | (catch_ada_assert_command_split, catch_assert_command) | |
13236 | (ada_op_name): Constify. | |
13237 | * ada-lang.h (ada_yyerror, get_selections) | |
13238 | (ada_variant_discrim_name, ada_value_struct_elt): Constify. | |
13239 | * arc-tdep.c (arc_print_frame_cache): Constify. | |
13240 | * arm-tdep.c (arm_skip_stub): Constify. | |
13241 | * ax-gdb.c (gen_binop, gen_struct_ref_recursive, gen_struct_ref) | |
13242 | (gen_aggregate_elt_ref): Constify. | |
13243 | * bcache.c (print_bcache_statistics): Constify. | |
13244 | * bcache.h (print_bcache_statistics): Constify. | |
13245 | * break-catch-throw.c (catch_exception_command_1): | |
13246 | * breakpoint.c (struct ep_type_description::description): | |
13247 | Constify. | |
13248 | (add_solib_catchpoint): Constify. | |
13249 | (catch_fork_command_1): Add cast. | |
13250 | (add_catch_command): Constify. | |
13251 | * breakpoint.h (add_catch_command, add_solib_catchpoint): | |
13252 | Constify. | |
13253 | * bsd-uthread.c (bsd_uthread_state): Constify. | |
13254 | * buildsym.c (patch_subfile_names): Constify. | |
13255 | * buildsym.h (next_symbol_text_func, patch_subfile_names): | |
13256 | Constify. | |
13257 | * c-exp.y (yyerror): Constify. | |
13258 | (token::oper): Constify. | |
13259 | * c-lang.h (c_yyerror, cp_print_class_member): Constify. | |
13260 | * c-varobj.c (cplus_describe_child): Constify. | |
13261 | * charset.c (find_charset_names): Add cast. | |
13262 | (find_charset_names): Constify array and add const_cast. | |
13263 | * cli/cli-cmds.c (complete_command, cd_command): Constify. | |
13264 | (edit_command): Constify. | |
13265 | * cli/cli-decode.c (lookup_cmd): Constify. | |
13266 | * cli/cli-dump.c (dump_memory_command, dump_value_command): | |
13267 | Constify. | |
13268 | (struct dump_context): Constify. | |
13269 | (add_dump_command, restore_command): Constify. | |
13270 | * cli/cli-script.c (get_command_line): Constify. | |
13271 | * cli/cli-script.h (get_command_line): Constify. | |
13272 | * cli/cli-utils.c (check_for_argument): Constify. | |
13273 | * cli/cli-utils.h (check_for_argument): Constify. | |
13274 | * coff-pe-read.c (struct read_pe_section_data): Constify. | |
13275 | * command.h (lookup_cmd): Constify. | |
13276 | * common/print-utils.c (decimal2str): Constify. | |
13277 | * completer.c (gdb_print_filename): Constify. | |
13278 | * corefile.c (set_gnutarget): Constify. | |
13279 | * cp-name-parser.y (yyerror): Constify. | |
13280 | * cp-valprint.c (cp_print_class_member): Constify. | |
13281 | * cris-tdep.c (cris_register_name, crisv32_register_name): | |
13282 | Constify. | |
13283 | * d-exp.y (yyerror): Constify. | |
13284 | (struct token::oper): Constify. | |
13285 | * d-lang.h (d_yyerror): Constify. | |
13286 | * dbxread.c (struct header_file_location::name): Constify. | |
13287 | (add_old_header_file, add_new_header_file, last_function_name) | |
13288 | (dbx_next_symbol_text, add_bincl_to_list) | |
13289 | (find_corresponding_bincl_psymtab, set_namestring) | |
13290 | (find_stab_function_addr, read_dbx_symtab, start_psymtab) | |
13291 | (dbx_end_psymtab, read_ofile_symtab, process_one_symbol): | |
13292 | * defs.h (command_line_input, print_address_symbolic) | |
13293 | (deprecated_readline_begin_hook): Constify. | |
13294 | * dwarf2read.c (anonymous_struct_prefix, dwarf_bool_name): | |
13295 | Constify. | |
13296 | * event-top.c (handle_line_of_input): Constify and add cast. | |
13297 | * exceptions.c (catch_errors): Constify. | |
13298 | * exceptions.h (catch_errors): Constify. | |
13299 | * expprint.c (print_subexp_standard, op_string, op_name) | |
13300 | (op_name_standard, dump_raw_expression, dump_raw_expression): | |
13301 | * expression.h (op_name, op_string, dump_raw_expression): | |
13302 | Constify. | |
13303 | * f-exp.y (yyerror): Constify. | |
13304 | (struct token::oper): Constify. | |
13305 | (struct f77_boolean_val::name): Constify. | |
13306 | * f-lang.c (f_word_break_characters): Constify. | |
13307 | * f-lang.h (f_yyerror): Constify. | |
13308 | * fork-child.c (fork_inferior): Add cast. | |
13309 | * frv-tdep.c (struct gdbarch_tdep::register_names): Constify. | |
13310 | (new_variant): Constify. | |
13311 | * gdbarch.sh (pstring_ptr, pstring_list): Constify. | |
13312 | * gdbarch.c: Regenerate. | |
13313 | * gdbcore.h (set_gnutarget): Constify. | |
13314 | * go-exp.y (yyerror): Constify. | |
13315 | (token::oper): Constify. | |
13316 | * go-lang.h (go_yyerror): Constify. | |
13317 | * go32-nat.c (go32_sysinfo): Constify. | |
13318 | * guile/scm-breakpoint.c (gdbscm_breakpoint_expression): Constify. | |
13319 | * guile/scm-cmd.c (cmdscm_function): Constify. | |
13320 | * guile/scm-param.c (pascm_param_value): Constify. | |
13321 | * h8300-tdep.c (h8300_register_name, h8300s_register_name) | |
13322 | (h8300sx_register_name): Constify. | |
13323 | * hppa-tdep.c (hppa32_register_name, hppa64_register_name): | |
13324 | Constify. | |
13325 | * ia64-tdep.c (ia64_register_names): Constify. | |
13326 | * infcmd.c (construct_inferior_arguments): Constify. | |
13327 | (path_command, attach_post_wait): Constify. | |
13328 | * language.c (show_range_command, show_case_command) | |
13329 | (unk_lang_error): Constify. | |
13330 | * language.h (language_defn::la_error) | |
13331 | (language_defn::la_name_of_this): Constify. | |
13332 | * linespec.c (decode_line_2): Constify. | |
13333 | * linux-thread-db.c (thread_db_err_str): Constify. | |
13334 | * lm32-tdep.c (lm32_register_name): Constify. | |
13335 | * m2-exp.y (yyerror): Constify. | |
13336 | * m2-lang.h (m2_yyerror): Constify. | |
13337 | * m32r-tdep.c (m32r_register_names): Constify and make static. | |
13338 | * m68hc11-tdep.c (m68hc11_register_names): Constify. | |
13339 | * m88k-tdep.c (m88k_register_name): Constify. | |
13340 | * macroexp.c (appendmem): Constify. | |
13341 | * mdebugread.c (fdr_name, add_data_symbol, parse_type) | |
13342 | (upgrade_type, parse_external, parse_partial_symbols) | |
13343 | (mdebug_next_symbol_text, cross_ref, mylookup_symbol, new_psymtab) | |
13344 | (new_symbol): Constify. | |
13345 | * memattr.c (mem_info_command): Constify. | |
13346 | * mep-tdep.c (register_name_from_keyword): Constify. | |
13347 | * mi/mi-cmd-env.c (mi_cmd_env_path, _initialize_mi_cmd_env): | |
13348 | Constify. | |
13349 | * mi/mi-cmd-stack.c (list_args_or_locals): Constify. | |
13350 | * mi/mi-cmd-var.c (mi_cmd_var_show_attributes): Constify. | |
13351 | * mi/mi-main.c (captured_mi_execute_command): Constify and add | |
13352 | cast. | |
13353 | (mi_execute_async_cli_command): Constify. | |
13354 | * mips-tdep.c (mips_register_name): Constify. | |
13355 | * mn10300-tdep.c (register_name, mn10300_generic_register_name) | |
13356 | (am33_register_name, am33_2_register_name) | |
13357 | * moxie-tdep.c (moxie_register_names): Constify. | |
13358 | * nat/linux-osdata.c (osdata_type): Constify fields. | |
13359 | * nto-tdep.c (nto_parse_redirection): Constify. | |
13360 | * objc-lang.c (lookup_struct_typedef, lookup_objc_class) | |
13361 | (lookup_child_selector): Constify. | |
13362 | (objc_methcall::name): Constify. | |
13363 | * objc-lang.h (lookup_objc_class, lookup_child_selector) | |
13364 | (lookup_struct_typedef): Constify. | |
13365 | * objfiles.c (pc_in_section): Constify. | |
13366 | * objfiles.h (pc_in_section): Constify. | |
13367 | * p-exp.y (struct token::oper): Constify. | |
13368 | (yyerror): Constify. | |
13369 | * p-lang.h (pascal_yyerror): Constify. | |
13370 | * parser-defs.h (op_name_standard): Constify. | |
13371 | (op_print::string): Constify. | |
13372 | (exp_descriptor::op_name): Constify. | |
13373 | * printcmd.c (print_address_symbolic): Constify. | |
13374 | * psymtab.c (print_partial_symbols): Constify. | |
13375 | * python/py-breakpoint.c (stop_func): Constify. | |
13376 | (bppy_get_expression): Constify. | |
13377 | * python/py-cmd.c (cmdpy_completer::name): Constify. | |
13378 | (cmdpy_function): Constify. | |
13379 | * python/py-event.c (evpy_add_attribute) | |
13380 | (gdbpy_initialize_event_generic): Constify. | |
13381 | * python/py-event.h (evpy_add_attribute) | |
13382 | (gdbpy_initialize_event_generic): Constify. | |
13383 | * python/py-evts.c (add_new_registry): Constify. | |
13384 | * python/py-finishbreakpoint.c (outofscope_func): Constify. | |
13385 | * python/py-framefilter.c (get_py_iter_from_func): Constify. | |
13386 | * python/py-inferior.c (get_buffer): Add cast. | |
13387 | * python/py-param.c (parm_constant::name): Constify. | |
13388 | * python/py-unwind.c (fprint_frame_id): Constify. | |
13389 | * python/python.c (gdbpy_parameter_value): Constify. | |
13390 | * remote-fileio.c (remote_fio_func_map): Make 'name' const. | |
13391 | * remote.c (memory_packet_config::name): Constify. | |
13392 | (show_packet_config_cmd, remote_write_bytes) | |
13393 | (remote_buffer_add_string): | |
13394 | * reverse.c (exec_reverse_once): Constify. | |
13395 | * rs6000-tdep.c (variant::name, variant::description): Constify. | |
13396 | * rust-exp.y (rustyyerror): Constify. | |
13397 | * rust-lang.c (rust_op_name): Constify. | |
13398 | * rust-lang.h (rustyyerror): Constify. | |
13399 | * serial.h (serial_ops::name): Constify. | |
13400 | * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name) | |
13401 | (sh_sh3e_register_name, sh_sh2e_register_name) | |
13402 | (sh_sh2a_register_name, sh_sh2a_nofpu_register_name) | |
13403 | (sh_sh_dsp_register_name, sh_sh3_dsp_register_name) | |
13404 | (sh_sh4_register_name, sh_sh4_nofpu_register_name) | |
13405 | (sh_sh4al_dsp_register_name): Constify. | |
13406 | * sh64-tdep.c (sh64_register_name): Constify. | |
13407 | * solib-darwin.c (lookup_symbol_from_bfd): Constify. | |
13408 | * spu-tdep.c (spu_register_name, info_spu_dma_cmdlist): Constify. | |
13409 | * stabsread.c (patch_block_stabs, read_type_number) | |
13410 | (ref_map::stabs, ref_add, process_reference) | |
13411 | (symbol_reference_defined, define_symbol, define_symbol) | |
13412 | (error_type, read_type, read_member_functions, read_cpp_abbrev) | |
13413 | (read_one_struct_field, read_struct_fields, read_baseclasses) | |
13414 | (read_tilde_fields, read_struct_type, read_array_type) | |
13415 | (read_enum_type, read_sun_builtin_type, read_sun_floating_type) | |
13416 | (read_huge_number, read_range_type, read_args, common_block_start) | |
13417 | (find_name_end): Constify. | |
13418 | * stabsread.h (common_block_start, define_symbol) | |
13419 | (process_one_symbol, symbol_reference_defined, ref_add): | |
13420 | * symfile.c (get_section_index, add_symbol_file_command): | |
13421 | * symfile.h (get_section_index): Constify. | |
13422 | * target-descriptions.c (tdesc_type::name): Constify. | |
13423 | (tdesc_free_type): Add cast. | |
13424 | * target.c (find_default_run_target): | |
13425 | (add_deprecated_target_alias, find_default_run_target) | |
13426 | (target_announce_detach): Constify. | |
13427 | (do_option): Constify. | |
13428 | * target.h (add_deprecated_target_alias): Constify. | |
13429 | * thread.c (print_thread_info_1): Constify. | |
13430 | * top.c (deprecated_readline_begin_hook, command_line_input): | |
13431 | Constify. | |
13432 | (init_main): Add casts. | |
13433 | * top.h (handle_line_of_input): Constify. | |
13434 | * tracefile-tfile.c (tfile_write_uploaded_tsv): Constify. | |
13435 | * tracepoint.c (tvariables_info_1, trace_status_mi): Constify. | |
13436 | (tfind_command): Rename to ... | |
13437 | (tfind_command_1): ... this and constify. | |
13438 | (tfind_command): New function. | |
13439 | (tfind_end_command, tfind_start_command): Adjust. | |
13440 | (encode_source_string): Constify. | |
13441 | * tracepoint.h (encode_source_string): Constify. | |
13442 | * tui/tui-data.c (tui_partial_win_by_name): Constify. | |
13443 | * tui/tui-data.h (tui_partial_win_by_name): Constify. | |
13444 | * tui/tui-source.c (tui_set_source_content_nil): Constify. | |
13445 | * tui/tui-source.h (tui_set_source_content_nil): Constify. | |
13446 | * tui/tui-win.c (parse_scrolling_args): Constify. | |
13447 | * tui/tui-windata.c (tui_erase_data_content): Constify. | |
13448 | * tui/tui-windata.h (tui_erase_data_content): Constify. | |
13449 | * tui/tui-winsource.c (tui_erase_source_content): Constify. | |
13450 | * tui/tui.c (tui_enable): Add cast. | |
13451 | * utils.c (defaulted_query): Constify. | |
13452 | (init_page_info): Add cast. | |
13453 | (puts_debug, subset_compare): Constify. | |
13454 | * utils.h (subset_compare): Constify. | |
13455 | * varobj.c (varobj_format_string): Constify. | |
13456 | * varobj.h (varobj_format_string): Constify. | |
13457 | * vax-tdep.c (vax_register_name): Constify. | |
13458 | * windows-nat.c (windows_detach): Constify. | |
13459 | * xcoffread.c (process_linenos, xcoff_next_symbol_text): Constify. | |
13460 | * xml-support.c (gdb_xml_end_element): Constify. | |
13461 | * xml-tdesc.c (tdesc_start_reg): Constify. | |
13462 | * xstormy16-tdep.c (xstormy16_register_name): Constify. | |
13463 | * xtensa-tdep.c (xtensa_find_register_by_name): Constify. | |
13464 | * xtensa-tdep.h (xtensa_register_t::name): Constify. | |
13465 | ||
995816ba PA |
13466 | 2017-04-05 Pedro Alves <palves@redhat.com> |
13467 | ||
13468 | * proc-api.c (struct trans): Constify. | |
13469 | (procfs_note): Constify. | |
13470 | * proc-events.c (struct trans, syscall_table): | |
13471 | * proc-flags.c (struct trans): Constify. | |
13472 | * proc-utils.h (procfs_note): Constify. | |
13473 | * proc-why.c (struct trans): Constify. | |
13474 | * procfs.c (dead_procinfo, find_syscall, proc_warn, proc_error) | |
13475 | (procfs_detach): Constify. | |
13476 | * sol-thread.c (struct string_map): Constify. | |
13477 | (td_err_string, td_state_string): Constify. | |
13478 | ||
3e83a920 PA |
13479 | 2017-04-05 Pedro Alves <palves@redhat.com> |
13480 | ||
13481 | * proc-api.c (procfs_filename): Don't initialize | |
13482 | procfs_filename. | |
13483 | (prepare_to_trace): Assume procfs_filename is non-NULL. | |
13484 | (_initialize_proc_api): Give procfs_filename a default value here. | |
13485 | ||
63160a43 PA |
13486 | 2017-04-05 Pedro Alves <palves@redhat.com> |
13487 | ||
13488 | * break-catch-throw.c (handle_gnu_v3_exceptions): Constify | |
13489 | 'cond_string' parameter. | |
13490 | (extract_exception_regexp): Constify 'string' parameter. | |
13491 | (catch_exception_command_1): Constify. | |
13492 | * breakpoint.c (init_catchpoint) | |
13493 | (create_fork_vfork_event_catchpoint): Constify 'cond_string' | |
13494 | parameter. | |
13495 | (ep_parse_optional_if_clause, catch_fork_command_1) | |
13496 | (catch_exec_command_1): Constify. | |
13497 | * breakpoint.h (init_catchpoint): Constify 'cond_string' | |
13498 | parameter. | |
13499 | (ep_parse_optional_if_clause): Constify. | |
13500 | * cli/cli-utils.c (remove_trailing_whitespace) | |
13501 | (check_for_argument): Constify. | |
13502 | * cli/cli-utils.h (remove_trailing_whitespace): Constify and add | |
13503 | non-const overload. | |
13504 | (check_for_argument): Likewise. | |
13505 | ||
9b2eba3d PA |
13506 | 2017-04-05 Pedro Alves <palves@redhat.com> |
13507 | ||
13508 | * event-top.c (command_line_handler): Add cast to execute_command | |
13509 | call. | |
13510 | * record-btrace.c (cmd_record_btrace_bts_start) | |
13511 | (cmd_record_btrace_pt_start, cmd_record_btrace_start) | |
13512 | (cmd_record_btrace_start): Add cast to execute_command call. | |
13513 | * record-full.c (record_full_goto_insn): | |
13514 | * record.c (record_start, record_stop): Add cast to | |
13515 | execute_command_to_string calls. | |
13516 | (cmd_record_start): Add cast to execute_command calls. | |
13517 | ||
2adadf51 PA |
13518 | 2017-04-05 Pedro Alves <palves@redhat.com> |
13519 | ||
13520 | * python/python-internal.h (gdb_PyArg_ParseTupleAndKeywords): New | |
13521 | static inline function. | |
13522 | * python/py-arch.c (archpy_disassemble): Constify 'keywords' | |
13523 | array and use gdb_PyArg_ParseTupleAndKeywords. | |
13524 | * python/py-cmd.c (cmdpy_init): Likewise. | |
13525 | * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise. | |
13526 | * python/py-inferior.c (infpy_read_memory, infpy_write_memory) | |
13527 | (infpy_search_memory): Likewise. | |
13528 | * python/py-objfile.c (objfpy_add_separate_debug_file) | |
13529 | (gdbpy_lookup_objfile): Likewise. | |
13530 | * python/py-symbol.c (gdbpy_lookup_symbol) | |
13531 | (gdbpy_lookup_global_symbol): Likewise. | |
13532 | * python/py-type.c (gdbpy_lookup_type): Likewise. | |
13533 | * python/py-value.c (valpy_lazy_string, valpy_string): Likewise. | |
13534 | * python/python.c (execute_gdb_command, gdbpy_write, gdbpy_flush): | |
13535 | Likewise. | |
13536 | ||
0d1f4ceb PA |
13537 | 2017-04-05 Pedro Alves <palves@redhat.com> |
13538 | ||
13539 | * python/python-internal.h (gdb_PyGetSetDef): New type. | |
13540 | * python/py-block.c (block_object_getset) | |
13541 | (breakpoint_object_getset): Now a gdb_PyGetSetDef array. | |
13542 | * python/py-event.c (event_object_getset) | |
13543 | (finish_breakpoint_object_getset): Likewise. | |
13544 | * python/py-inferior.c (inferior_object_getset): Likewise. | |
13545 | * python/py-infthread.c (thread_object_getset): Likewise. | |
13546 | * python/py-lazy-string.c (lazy_string_object_getset): Likewise. | |
13547 | * python/py-linetable.c (linetable_entry_object_getset): Likewise. | |
13548 | * python/py-objfile.c (objfile_getset): Likewise. | |
13549 | * python/py-progspace.c (pspace_getset): Likewise. | |
13550 | * python/py-record-btrace.c (btpy_insn_getset, btpy_call_getset): | |
13551 | Likewise. | |
13552 | * python/py-record.c (recpy_record_getset): Likewise. | |
13553 | * python/py-symbol.c (symbol_object_getset): Likewise. | |
13554 | * python/py-symtab.c (symtab_object_getset, sal_object_getset): | |
13555 | Likewise. | |
13556 | * python/py-type.c (type_object_getset, field_object_getset): | |
13557 | Likewise. | |
13558 | * python/py-value.c (value_object_getset): Likewise. | |
13559 | ||
4d759979 PA |
13560 | 2017-04-05 Pedro Alves <palves@redhat.com> |
13561 | ||
13562 | * python/python-internal.h (gdb_PyObject_CallMethod) | |
13563 | (gdb_PyErr_NewException, gdb_PySys_GetObject, gdb_PySys_SetPath): | |
13564 | New functions. | |
13565 | (GDB_PYSYS_SETPATH_CHAR, PyObject_CallMethod, PyErr_NewException) | |
13566 | (PySys_GetObject, PySys_SetPath): New macros. | |
13567 | ||
fdf9e36f PA |
13568 | 2017-04-05 Pedro Alves <palves@redhat.com> |
13569 | ||
13570 | * mi/mi-cmd-info.c (mi_cmd_info_os): Call info_osdata instead of | |
13571 | info_osdata_command. | |
13572 | * osdata.c (info_osdata_command): Rename to ... | |
13573 | (info_osdata): ... this. Constify 'type' parameter, and remove | |
13574 | the 'from_tty' parameter. Accept NULL TYPE. | |
13575 | (info_osdata_command): New function. | |
13576 | * osdata.h (info_osdata_command): Remove declaration. | |
13577 | (info_osdata): New declaration. | |
13578 | ||
9f33b8b7 PA |
13579 | 2017-04-05 Pedro Alves <palves@redhat.com> |
13580 | ||
13581 | * mi/mi-cmd-break.c (mi_cmd_break_insert_1, mi_cmd_break_insert) | |
13582 | (mi_cmd_dprintf_insert, mi_cmd_break_passcount) | |
13583 | (mi_cmd_break_watch, mi_cmd_break_commands): Constify 'command' | |
13584 | parameter. | |
13585 | * mi/mi-cmd-catch.c (mi_cmd_catch_assert, mi_cmd_catch_exception) | |
13586 | (mi_cmd_catch_load, mi_cmd_catch_unload): Constify cmd' parameter. | |
13587 | * mi/mi-cmd-disas.c (mi_cmd_disassemble): Constify 'command' | |
13588 | parameter. | |
13589 | * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_cd, mi_cmd_env_path) | |
13590 | (mi_cmd_env_dir, mi_cmd_inferior_tty_set, _cmd_inferior_tty_show) | |
13591 | * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file) | |
13592 | (mi_cmd_file_list_exec_source_files) | |
13593 | (mi_cmd_file_list_shared_libraries): Constify 'command' parameter. | |
13594 | * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions) | |
13595 | (mi_cmd_info_gdb_mi_command, mi_cmd_info_os): Constify 'command' | |
13596 | parameter. | |
13597 | * mi/mi-cmd-stack.c (mi_cmd_enable_frame_filters) | |
13598 | (mi_cmd_stack_list_frames, mi_cmd_stack_info_depth) | |
13599 | (mi_cmd_stack_list_locals, mi_cmd_stack_list_args) | |
13600 | (mi_cmd_stack_list_variables, mi_cmd_stack_select_frame) | |
13601 | (mi_cmd_stack_info_frame): Constify 'command' parameter. | |
13602 | * mi/mi-cmd-target.c (mi_cmd_target_file_get) | |
13603 | (mi_cmd_target_file_put, mi_cmd_target_file_delete): Constify | |
13604 | 'command' parameter. | |
13605 | * mi/mi-cmd-var.c (mi_cmd_var_create, mi_cmd_var_delete) | |
13606 | (mi_cmd_var_set_format, mi_cmd_var_set_visualizer) | |
13607 | (mi_cmd_var_set_frozen, mi_cmd_var_show_format) | |
13608 | (mi_cmd_var_info_num_children, mi_cmd_var_list_children) | |
13609 | (mi_cmd_var_info_type, mi_cmd_var_info_path_expression) | |
13610 | (mi_cmd_var_info_expression, mi_cmd_var_show_attributes) | |
13611 | (mi_cmd_var_evaluate_expression, mi_cmd_var_assign) | |
13612 | (mi_cmd_var_update, mi_cmd_enable_pretty_printing) | |
13613 | (mi_cmd_var_set_update_range): Constify 'command' parameter. | |
13614 | * mi/mi-cmds.h (mi_cmd_argv_ftype): Constify 'command' parameter. | |
13615 | * mi/mi-interp.c (mi_cmd_interpreter_exec): Constify 'command' | |
13616 | parameter. | |
13617 | * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_exec_next) | |
13618 | (mi_cmd_exec_next_instruction, mi_cmd_exec_step) | |
13619 | (mi_cmd_exec_step_instruction, mi_cmd_exec_finish) | |
13620 | (mi_cmd_exec_return ,mi_cmd_exec_jump, mi_cmd_exec_continue) | |
13621 | (mi_cmd_exec_interrupt, mi_cmd_exec_run, mi_cmd_target_detach) | |
13622 | (mi_cmd_target_flash_erase, mi_cmd_thread_select) | |
13623 | (mi_cmd_thread_list_ids, mi_cmd_thread_info) | |
13624 | (mi_cmd_list_thread_groups, mi_cmd_data_list_register_names) | |
13625 | (mi_cmd_data_list_changed_registers) | |
13626 | (mi_cmd_data_write_register_values) | |
13627 | (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory) | |
13628 | (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory) | |
13629 | (mi_cmd_data_write_memory_bytes, mi_cmd_enable_timings) | |
13630 | (mi_cmd_list_features, mi_cmd_list_target_features) | |
13631 | (mi_cmd_add_inferior, mi_cmd_remove_inferior) | |
13632 | (mi_cmd_trace_define_variable, mi_cmd_trace_list_variables) | |
13633 | (mi_cmd_trace_find, mi_cmd_trace_save, mi_cmd_trace_start) | |
13634 | (mi_cmd_trace_status, mi_cmd_trace_stop, mi_cmd_ada_task_info) | |
13635 | (mi_cmd_trace_frame_collected): Constify 'command' | |
13636 | parameter. | |
13637 | * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Constify | |
13638 | 'command' parameter. | |
13639 | ||
67cb5b2d PA |
13640 | 2017-04-05 Pedro Alves <palves@redhat.com> |
13641 | ||
13642 | * ada-lang.c (ada_completer_word_break_characters): Now a const | |
13643 | array. | |
13644 | (ada_get_gdb_completer_word_break_characters): Constify. | |
13645 | * completer.c (gdb_completer_command_word_break_characters) | |
13646 | (gdb_completer_file_name_break_characters) | |
13647 | (gdb_completer_quote_characters): Now const arrays. | |
13648 | (get_gdb_completer_quote_characters): Constify. | |
13649 | (set_rl_completer_word_break_characters): New function. | |
13650 | (set_gdb_completion_word_break_characters) | |
13651 | (complete_line_internal): Use it. | |
13652 | * completer.h (get_gdb_completer_quote_characters): Constify. | |
13653 | (set_rl_completer_word_break_characters): Declare. | |
13654 | * f-lang.c (f_word_break_characters): Constify. | |
13655 | * language.c (default_word_break_characters): Constify. | |
13656 | * language.h (language_defn::la_word_break_characters): Constify. | |
13657 | (default_word_break_characters): Constify. | |
13658 | * top.c (init_main): Use set_rl_completer_word_break_characters. | |
13659 | ||
7a114964 PA |
13660 | 2017-04-05 Pedro Alves <palves@redhat.com> |
13661 | ||
13662 | * aix-thread.c (aix_thread_pid_to_str) | |
13663 | (aix_thread_extra_thread_info): Constify. | |
13664 | * bsd-kvm.c (bsd_kvm_pid_to_str): Constify. | |
13665 | * bsd-uthread.c (bsd_uthread_extra_thread_info) | |
13666 | (bsd_uthread_pid_to_str): Constify. | |
13667 | * corelow.c (core_pid_to_str): Constify. | |
13668 | * darwin-nat.c (darwin_pid_to_str): Constify. | |
13669 | * fbsd-nat.c (fbsd_pid_to_str): Constify. | |
13670 | * fbsd-tdep.c (fbsd_core_pid_to_str, gdbarch_core_pid_to_str): | |
13671 | Constify. | |
13672 | * gnu-nat.c (gnu_pid_to_str): Constify. | |
13673 | * go32-nat.c (go32_pid_to_str): Constify. | |
13674 | * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Constify. | |
13675 | * inf-ptrace.c (inf_ptrace_pid_to_str): Constify. | |
13676 | * inferior.c (inferior_pid_to_str): Constify. | |
13677 | * linux-nat.c (linux_nat_pid_to_str): Constify. | |
13678 | * linux-tdep.c (linux_core_pid_to_str): Constify. | |
13679 | * linux-thread-db.c (thread_db_pid_to_str) | |
13680 | (thread_db_extra_thread_info): Constify. | |
13681 | * nto-tdep.c (nto_extra_thread_info): Constify. | |
13682 | * nto-tdep.h (nto_extra_thread_info): Constify. | |
13683 | * obsd-nat.c (obsd_pid_to_str): Constify. | |
13684 | * procfs.c (procfs_pid_to_str): Constify. | |
13685 | * ravenscar-thread.c (ravenscar_extra_thread_info) | |
13686 | (ravenscar_pid_to_str): Constify. | |
13687 | * remote-sim.c (gdbsim_pid_to_str): Constify. | |
13688 | * remote.c (remote_threads_extra_info, remote_pid_to_str): | |
13689 | Constify. | |
13690 | * sol-thread.c (solaris_pid_to_str): Constify. | |
13691 | * sol2-tdep.c (sol2_core_pid_to_str): Constify. | |
13692 | * sol2-tdep.h (sol2_core_pid_to_str): Constify. | |
13693 | * target.c (default_pid_to_str, target_pid_to_str) | |
13694 | (normal_pid_to_str, default_pid_to_str): Constify. | |
13695 | * target.h (target_ops::to_pid_to_str) | |
13696 | (target_ops::to_extra_thread_info): Constify. | |
13697 | (target_pid_to_str, normal_pid_to_str): Constify. | |
13698 | * windows-nat.c (windows_pid_to_str): Constify. | |
13699 | * gdbarch.sh (core_pid_to_str): Constify. | |
13700 | * target-delegates.c: Regenerate. | |
13701 | * gdbarch.h, gdbarch.c: Regenerate. | |
13702 | ||
69bbf465 PA |
13703 | 2017-04-05 Pedro Alves <palves@redhat.com> |
13704 | ||
13705 | * main.c (captured_main_1): Use gdb::unique_xmalloc_ptr to manage | |
13706 | the memory of the temporary warning_pre_print override. | |
13707 | * utils.c (warning_pre_print): Constify. | |
13708 | * utils.h (warning_pre_print): Constify. | |
13709 | ||
be47f9e8 PA |
13710 | 2017-04-05 Pedro Alves <palves@redhat.com> |
13711 | ||
13712 | * cli/cli-cmds.c (shell_escape): Constify 'arg' parameter. | |
13713 | (shell_command): New function. | |
13714 | (make_command): Use std::string. | |
13715 | (init_cli_cmds): Register shell_command instead of shell_escape. | |
13716 | ||
bde6261a PA |
13717 | 2017-04-05 Pedro Alves <palves@redhat.com> |
13718 | ||
13719 | * breakpoint.c (dprintf_function, dprintf_channel): Don't initialize. | |
13720 | * tracepoint.c (default_collect): Don't initialize. | |
13721 | ||
b38ef47f PA |
13722 | 2017-04-05 Pedro Alves <palves@redhat.com> |
13723 | ||
13724 | * macroexp.c (macro_buffer::shared): Now a bool. | |
13725 | (init_buffer): Update. | |
13726 | (init_shared_buffer): Constify 'addr' parameter. | |
13727 | (substitute_args, expand, macro_expand, macro_expand_next): Remove | |
13728 | casts. | |
13729 | ||
f995bbe8 PA |
13730 | 2017-04-05 Pedro Alves <palves@redhat.com> |
13731 | ||
13732 | * arm-tdep.c (show_disassembly_style_sfunc): Constify local. | |
13733 | * disasm.c (set_disassembler_options): Constify local. | |
13734 | * i386-tdep.c (i386_print_insn): Remove cast and FIXME comment. | |
13735 | ||
4a596fe2 SDJ |
13736 | 2017-04-05 Sergio Durigan Junior <sergiodj@redhat.com> |
13737 | ||
13738 | PR gdb/21352 | |
13739 | * tracefile.c (tsave_command): Fix argument parsing for '-r' | |
13740 | option. | |
13741 | ||
2cad08ea YQ |
13742 | 2017-04-05 Yao Qi <yao.qi@linaro.org> |
13743 | ||
13744 | * frame.c (frame_unwind_register_unsigned): Call | |
13745 | frame_unwind_register_value. | |
13746 | ||
55a98976 YQ |
13747 | 2017-04-05 Yao Qi <yao.qi@linaro.org> |
13748 | ||
13749 | * gdb.threads/thread-specific-bp.exp (check_thread_specific_breakpoint): | |
13750 | Use gdb_test_multiple, and don't match anchor. | |
13751 | ||
4ac40124 PA |
13752 | 2017-04-05 Pedro Alves <palves@redhat.com> |
13753 | ||
13754 | * MAINTAINERS (Global Maintainers): Add Simon Marchi. | |
13755 | (Write After Approval): Remove Simon Marchi. | |
13756 | ||
c053b654 PA |
13757 | 2017-04-05 Pedro Alves <palves@redhat.com> |
13758 | ||
13759 | * common/gdb_optional.h (optional::optional): Make constexpr and | |
13760 | initialize m_dummy. | |
13761 | ||
4c7bf4f9 JB |
13762 | 2017-04-04 John Baldwin <jhb@FreeBSD.org> |
13763 | ||
13764 | * amd64-fbsd-tdep.c: Remove "bsd-uthread.h" include. | |
13765 | (amd64fbsd_jmp_buf_reg_offset): Remove. | |
13766 | (amd64fbsd_supply_uthread): Remove function. | |
13767 | (amd64fbsd_collect_uthread): Remove function. | |
13768 | (amd64fbsd_init_abi): Don't set bsd-uthread callbacks. | |
13769 | * configure.tgt (i[34567]86-*-freebsd*): Remove bsd-uthread.o. | |
13770 | (x86_64-*-freebsd*): Remove bsd-uthread.o. | |
13771 | (fbsd-nat.c): Update comment. | |
13772 | * i386-fbsd-tdep.c: Remove "bsd-uthread.h" include. | |
13773 | (i386fbsd_jmp_buf_reg_offset): Remove. | |
13774 | (i386fbsd_supply_uthread): Remove function. | |
13775 | (i386fbsd_collect_uthread): Remove function. | |
13776 | (i386fbsd_init_abi): Don't set bsd-uthread callbacks. | |
13777 | ||
1e1a8bef JB |
13778 | 2017-04-04 John Baldwin <jhb@FreeBSD.org> |
13779 | ||
13780 | * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-fbsd-tdep.o. | |
13781 | (ALLDEPFILES): Remove alpha-fbsd-tdep.c | |
13782 | * NEWS: Mention that support for FreeBSD/alpha was removed. | |
13783 | * alpha-fbsd-tdep.c: Delete file. | |
13784 | * config/alpha/fbsd.mh: Delete file. | |
13785 | * configure.host: Delete alpha*-*-freebsd* and | |
13786 | alpha*-*-kfreebsd*-gnu. | |
13787 | * configure.tgt: Delete alpha*-*-freebsd* and | |
13788 | alpha*-*-kfreebsd*-gnu. | |
13789 | ||
49907934 JB |
13790 | 2017-04-04 John Baldwin <jhb@FreeBSD.org> |
13791 | ||
13792 | * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers, | |
13793 | amd64bsd_store_inferior_registers): Use ptid from regcache. | |
13794 | ||
6f77053d PA |
13795 | 2017-04-04 Pedro Alves <palves@redhat.com> |
13796 | ||
13797 | * dwarf2read.c (lnp_state_machine): Now a class. Initialize all | |
13798 | data fields, make them private and add "m_" prefixes. | |
13799 | (lnp_state_machine::lnp_state_machine): New ctor. | |
13800 | (record_line, check_line_address, handle_set_discriminator) | |
13801 | (handle_set_address, handle_advance_pc, handle_special_opcode) | |
13802 | (handle_advance_line, handle_set_file, handle_negate_stmt) | |
13803 | (handle_const_add_pc, handle_fixed_advance_pc, handle_copy) | |
13804 | (end_sequence, advance_line): New methods. | |
13805 | (m_gdbarch, m_record_lines_p): New fields. | |
13806 | (lnp_reader_state): Delete. | |
13807 | (dwarf_record_line): Rename to ... | |
13808 | (lnp_state_machine::record_line): ... adjust. | |
13809 | (init_lnp_state_machine): Delete. | |
13810 | (lnp_state_machine::lnp_state_machine): New. | |
13811 | (check_line_address): Rename to ... | |
13812 | (lnp_state_machine::check_line_address): This. | |
13813 | (dwarf_decode_lines_1): Remove reference to "reader_state". | |
13814 | Adjust lnp_state_machine having a non-default ctor. Use bool. | |
13815 | State machine internal state manipulation moved to | |
13816 | lnp_state_machine methods. | |
13817 | ||
9c541725 PA |
13818 | 2017-04-04 Pedro Alves <palves@redhat.com> |
13819 | ||
13820 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add | |
13821 | unittests/offset-type-selftests.c. | |
13822 | (SUBDIR_UNITTESTS_OBS): Add offset-type-selftests.o. | |
13823 | * common/offset-type.h: New file. | |
13824 | * common/preprocessor.h: New file. | |
13825 | * common/traits.h: New file. | |
13826 | * common/valid-expr.h: New file. | |
13827 | * dwarf2expr.c: Include "common/underlying.h". Adjust to use | |
13828 | sect_offset and cu_offset strong typedefs throughout. | |
13829 | * dwarf2expr.h: Adjust to use sect_offset and cu_offset strong | |
13830 | typedefs throughout. | |
13831 | * dwarf2loc.c: Include "common/underlying.h". Adjust to use | |
13832 | sect_offset and cu_offset strong typedefs throughout. | |
13833 | * dwarf2read.c: Adjust to use sect_offset and cu_offset strong | |
13834 | typedefs throughout. | |
13835 | * gdbtypes.h: Include "common/offset-type.h". | |
13836 | (cu_offset): Now an offset type (strong typedef) instead of a | |
13837 | struct. | |
13838 | (sect_offset): Likewise. | |
13839 | (union call_site_parameter_u): Rename "param_offset" field to | |
13840 | "param_cu_off". | |
13841 | * unittests/offset-type-selftests.c: New file. | |
13842 | ||
ecfb656c PA |
13843 | 2017-04-04 Pedro Alves <palves@redhat.com> |
13844 | ||
13845 | * common/underlying.h: New file. | |
13846 | * dwarf2read.c: Include "common/gdb_optional.h" and | |
13847 | "common/underlying.h". | |
13848 | (dir_index, file_name_index): New types. | |
13849 | (file_entry): Use them. | |
13850 | (file_entry::include): Use to_underlying. | |
13851 | (line_header::add_file_name): Use dir_index. | |
13852 | (read_formatted_entries): Use gdb::optional. Read form before | |
13853 | writting to file_entry. | |
13854 | (dwarf_decode_line_header): Use dir_index. | |
13855 | (lnp_state_machine::current_file): Use to_underlying. | |
13856 | (lnp_state_machine::file): Change type to file_name_index. | |
13857 | (dwarf_record_line): Use to_underlying. | |
13858 | (init_lnp_state_machine): Use file_name_index. | |
13859 | (dwarf_decode_lines_1): Use dir_index and file_name_index. | |
13860 | ||
d194f1fe PA |
13861 | 2017-04-04 Pedro Alves <palves@redhat.com> |
13862 | ||
13863 | * common/gdb_optional.h (gdb::optiona): Add operator->, operator*, | |
13864 | operator bool, has_value and get methods. | |
13865 | ||
fff8551c PA |
13866 | 2017-04-04 Pedro Alves <palves@redhat.com> |
13867 | ||
13868 | * dwarf2read.c (struct file_entry): Add ctors, and initialize all | |
13869 | fields. | |
13870 | (line_header): Initialize all data fields. Change type of | |
13871 | standard_opcode_lengths to std::unique_ptr<unsigned char[]>. | |
13872 | Change type of include_dirs to std::vector<const char *>. Remove | |
13873 | num_include_dirs, include_dirs_size. Change type of file_names to | |
13874 | std::vector<file_entry>. Remove num_file_names, file_names_size. | |
13875 | (line_header::line_header): New. | |
13876 | (line_header::add_include_dir, line_header::add_file_name): New | |
13877 | methods. | |
13878 | (line_header::include_dir_at): Remove NULL check. | |
13879 | (line_header::file_name_at): Add const overload. | |
13880 | (line_header_up): New unique_ptr typedef. | |
13881 | (dw2_get_file_names_reader): Use line_header_up. Adjust to use | |
13882 | std::vector. Remove free_line_header call. | |
13883 | (dwarf2_build_include_psymtabs): Use line_header_up. Remove | |
13884 | free_line_header call. | |
13885 | (free_cu_line_header): Delete. | |
13886 | (handle_DW_AT_stmt_list, handle_DW_AT_stmt_list) | |
13887 | (setup_type_unit_groups): Use line_header_up instead of cleanups. | |
13888 | Adjust to use std::vector. | |
13889 | (free_line_header): Delete. | |
13890 | (free_line_header_voidp): Use delete. | |
13891 | (add_include_dir): Replace with ... | |
13892 | (line_header::add_include_dir): ... this method. Use std::vector. | |
13893 | (add_file_name): Replace with ... | |
13894 | (line_header::add_file_name): ... this method. Use std::vector. | |
13895 | (add_include_dir_stub): Delete. | |
13896 | (read_formatted_entries): Remove memset. | |
13897 | (dwarf_decode_line_header): Return a line_header_up instead of a | |
13898 | raw pointer. Remove cleanup handling. Pass lambdas to | |
13899 | read_formatted_entries. Adjust to use line_header methods. | |
13900 | (dwarf_decode_lines_1): Adjust to use line_header methods. | |
13901 | (dwarf_decode_lines, file_file_name, file_full_name): Adjust to | |
13902 | use std::vector. | |
13903 | ||
d62a8ae2 SM |
13904 | 2017-04-04 Simon Marchi <simon.marchi@polymtl.ca> |
13905 | ||
13906 | * remote.c (set_general_thread, set_continue_thread): Use ptid_t | |
13907 | instead of struct ptid. | |
13908 | ||
db3a1dc7 AH |
13909 | 2017-05-04 Alan Hayward <alan.hayward@arm.com> |
13910 | ||
13911 | * frame.c (get_frame_register_bytes): Unwind using value. | |
13912 | (put_frame_register_bytes): Likewise. | |
13913 | ||
b1b45502 IB |
13914 | 2017-03-30 Iain Buclaw <ibuclaw@gdcproject.org> |
13915 | ||
13916 | * d-exp.y (type_aggregate_p): Treat TYPE_CODE_MODULE as being | |
13917 | aggregate-like. | |
13918 | ||
ec13808e JK |
13919 | 2017-03-29 Jan Kratochvil <jan.kratochvil@redhat.com> |
13920 | ||
13921 | * auto-load.c (auto_load_section_scripts): Check SEC_HAS_CONTENTS. | |
13922 | ||
12316564 YQ |
13923 | 2017-03-29 Yao Qi <yao.qi@linaro.org> |
13924 | ||
13925 | * gdbthread.h (struct thread_info): Declare constructor and | |
13926 | destructor. Add some in-class member initializers. | |
13927 | * thread.c (free_thread): Remove. | |
13928 | (init_thread_list): Call delete instead of free_thread. | |
13929 | (new_thread): Call thread_info constructor. | |
13930 | (thread_info::thread_info): New function. | |
13931 | (thread_info::~thread_info): New function. | |
13932 | (delete_thread_1): Call delete instead of free_thread. | |
13933 | (make_cleanup_restore_current_thread): Move tp and frame to | |
13934 | inner block. | |
13935 | ||
fe5f7374 AK |
13936 | 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com> |
13937 | ||
13938 | * arc-tdep.c (arc_frame_cache): Add support for prologue analysis. | |
13939 | (arc_skip_prologue): Likewise. | |
13940 | (arc_make_frame_cache): Likewise. | |
13941 | (arc_pv_get_operand): New function. | |
13942 | (arc_is_in_prologue): Likewise. | |
13943 | (arc_analyze_prologue): Likewise. | |
13944 | (arc_print_frame_cache): Likewise. | |
13945 | (MAX_PROLOGUE_LENGTH): New constant. | |
13946 | ||
eea78757 AK |
13947 | 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com> |
13948 | ||
13949 | * configure.tgt: Add arc-insn.o. | |
13950 | * arc-tdep.c (arc_delayed_print_insn): Make non-static. | |
13951 | (dump_arc_instruction_command): New function. | |
13952 | (arc_fprintf_disasm): Likewise. | |
13953 | (arc_disassemble_info): Likewise. | |
13954 | (arc_insn_get_operand_value): Likewise. | |
13955 | (arc_insn_get_operand_value_signed): Likewise. | |
13956 | (arc_insn_get_memory_base_reg): Likewise. | |
13957 | (arc_insn_get_memory_offset): Likewise. | |
13958 | (arc_insn_get_branch_target): Likewise. | |
13959 | (arc_insn_dump): Likewise. | |
13960 | (arc_insn_get_linear_next_pc): Likewise. | |
13961 | * arc-tdep.h (arc_delayed_print_insn): Add function declaration. | |
13962 | (arc_disassemble_info): Likewise. | |
13963 | (arc_insn_get_branch_target): Likewise. | |
13964 | (arc_insn_get_linear_next_pc): Likewise. | |
13965 | * NEWS: Mention new "maint print arc arc-instruction". | |
13966 | ||
3be78afd AK |
13967 | 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com> |
13968 | ||
13969 | * arc-tdep (maintenance_print_arc_list): New variable. | |
13970 | (maintenance_print_arc_command): New function. | |
13971 | ||
296ec4fa AK |
13972 | 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com> |
13973 | ||
13974 | * arc-tdep.c (core_v2_register_names, core_arcompact_register_names) | |
13975 | Add "limm" and "reserved". | |
13976 | (arc_cannot_fetch_register, arc_cannot_store_register): Add | |
13977 | ARC_RESERVED_REGNUM and ARC_LIMM_REGNUM. | |
13978 | * arc-tdep.h (arc_regnum): Likewise. | |
13979 | ||
f74f865e MF |
13980 | 2017-03-27 Max Filippov <jcmvbkbc@gmail.com> |
13981 | ||
13982 | * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect | |
13983 | for THREADPTR register. | |
13984 | (supply_gregset_reg): Call regcache_raw_supply for THREADPTR | |
13985 | register. | |
13986 | * xtensa-tdep.c (XTENSA_DBREGN_UREG): New definition. | |
13987 | (xtensa_derive_tdep): Initialize tdep->threadptr_regnum. | |
13988 | * xtensa-tdep.h (gdbarch_tdep::threadptr_regnum): New field. | |
13989 | ||
0d0bf81a MF |
13990 | 2017-03-27 Max Filippov <jcmvbkbc@gmail.com> |
13991 | ||
13992 | * xtensa-tdep.c (xtensa_pseudo_register_read): Treat all | |
13993 | registers above gdbarch_num_regs (gdbarch) as privileged in | |
13994 | call0 ABI. | |
13995 | ||
0ce4291e MF |
13996 | 2017-03-27 Max Filippov <jcmvbkbc@gmail.com> |
13997 | ||
13998 | * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect | |
13999 | for a single specified register or for all registers in | |
14000 | a0_base..a0_base + C0_NREGS range. | |
14001 | (supply_gregset_reg): Call regcache_raw_supply for a single | |
14002 | specified register or for all registers in a0_base..a0_base + | |
14003 | C0_NREGS range. | |
14004 | ||
c56054f9 MF |
14005 | 2017-03-27 Max Filippov <jcmvbkbc@gmail.com> |
14006 | ||
14007 | * arch/xtensa.h (C0_NREGS): Add definition. | |
14008 | * xtensa-tdep.c (C0_NREGS): Remove definition. | |
14009 | ||
a4398628 MF |
14010 | 2017-03-27 Max Filippov <jcmvbkbc@gmail.com> |
14011 | ||
14012 | * xtensa-tdep.c (xtensa_scan_prologue, call0_analyze_prologue): | |
14013 | Drop xtensa_default_isa initialization. | |
14014 | (xtensa_gdbarch_init): Initialize xtensa_default_isa. | |
14015 | ||
8c43009f PA |
14016 | 2017-03-27 Pedro Alves <palves@redhat.com> |
14017 | ||
14018 | * dwarf2read.c (file_entry) <dir_index>: Add comment. | |
14019 | (file_entry::include_dir): New method. | |
14020 | (line_header::include_dir_at, line_header::file_name_at): New | |
14021 | methods. | |
14022 | (setup_type_unit_groups, setup_type_unit_groups) | |
14023 | (psymtab_include_file_name): Simplify using the new methods. | |
14024 | (lnp_state_machine) <the_line_header>: New field. | |
14025 | <file>: Add comment. | |
14026 | (lnp_state_machine::current_file): New method. | |
14027 | (dwarf_record_line): Simplify using the new methods. | |
14028 | (init_lnp_state_machine): Initialize the "the_line_header" field. | |
14029 | (dwarf_decode_lines_1, dwarf_decode_lines, file_file_name): | |
14030 | Simplify using the new methods. | |
14031 | ||
a7e80b9e PA |
14032 | 2017-03-27 Pedro Alves <palves@redhat.com> |
14033 | ||
14034 | * cp-name-parser.y (make_empty): Delete. | |
14035 | (demangler_special, nested_name, ptr_operator, array_indicator) | |
14036 | (direct_declarator, declarator_1): Use fill_comp instead of | |
14037 | make_empty. | |
14038 | ||
21047726 PA |
14039 | 2017-03-27 Pedro Alves <palves@redhat.com> |
14040 | ||
14041 | * xml-support.h (gdb_xml_debug): Pass a "first-to-check" argument | |
14042 | to ATTRIBUTE_PRINTF. | |
14043 | * solib-target.c (library_list_start_list): Print "string" not | |
14044 | "version". | |
14045 | * xml-tdesc.c (tdesc_start_field): Pass "field_name" to | |
14046 | gdb_xml_error call. | |
14047 | ||
d721ba37 PA |
14048 | 2017-03-27 Pedro Alves <palves@redhat.com> |
14049 | ||
14050 | * dwarf2read.c (struct file_and_directory): New. | |
14051 | (dwarf2_get_dwz_file): Adjust to use std::string. | |
14052 | (dw2_get_file_names_reader): Adjust to use file_and_directory. | |
14053 | (find_file_and_directory): Adjust to return a file_and_directory | |
14054 | object. | |
14055 | (read_file_scope): Adjust to use file_and_directory. Remove | |
14056 | make_cleanup/do_cleanups calls. | |
14057 | (open_and_init_dwp_file): Adjust to use std::string. Remove | |
14058 | make_cleanup/do_cleanups calls. | |
14059 | * python/python.c (do_start_initialization): Adjust to ldirname | |
14060 | returning a std::string. | |
14061 | * utils.c (ldirname): Now returns a std::string. | |
14062 | * utils.h (ldirname): Change return type to std::string. | |
14063 | * xml-syscall.c (xml_init_syscalls_info): Adjust to ldirname | |
14064 | returning a std::string. | |
14065 | * xml-tdesc.c (file_read_description_xml): Likewise. | |
14066 | ||
ed771251 AH |
14067 | 2017-03-24 Alan Hayward <alan.hayward@arm.com> |
14068 | ||
14069 | * regcache.c (regcache_debug_print_register): New function. | |
14070 | * regcache.h (regcache_debug_print_register): New declaration. | |
14071 | * target.c (debug_print_register): Remove. | |
14072 | (target_fetch_registers): Call regcache_debug_print_register. | |
14073 | (target_store_registers): Likewise. | |
14074 | ||
568c1b9f PB |
14075 | 2017-03-24 Pádraig Brady <pbrady@fb.com> |
14076 | ||
14077 | * dwarf2read.c (setup_type_unit_groups): Ensure dir_index doesn't | |
14078 | reference beyond the 'lh->include_dirs' array before accessing to | |
14079 | it. | |
14080 | (psymtab_include_file_name): Likewise. | |
14081 | (dwarf_decode_lines_1): Likewise. | |
14082 | (dwarf_decode_lines): Likewise. | |
14083 | (file_file_name): Likewise. | |
14084 | ||
3e00d44f SM |
14085 | 2017-03-23 Simon Marchi <simon.marchi@ericsson.com> |
14086 | ||
14087 | * fbsd-tdep.c (fbsd_corefile_thread): Don't set/restore | |
14088 | inferior_ptid. | |
14089 | * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, | |
14090 | ps_lsetfpregs): Likewise. | |
14091 | * regcache.c (regcache_raw_update, regcache_raw_write): Likewise. | |
14092 | * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, | |
14093 | ps_lsetfpregs): Likewise. | |
14094 | * target.c (target_fetch_registers, target_store_registers): | |
14095 | Remove asserts. | |
14096 | ||
077ae656 AH |
14097 | 2017-03-23 Alan Hayward <alan.hayward@arm.com> |
14098 | ||
14099 | * sol-thread.c (sol_thread_store_registers): Remove regcache calls. | |
14100 | ||
1e2b521d YQ |
14101 | 2017-03-23 Yao Qi <yao.qi@linaro.org> |
14102 | ||
14103 | * aarch64-tdep.c (aarch64_process_record_test): Declare. | |
14104 | (_initialize_aarch64_tdep): Register it. | |
14105 | (aarch64_record_load_store): Handle PRFM instruction. | |
14106 | (aarch64_process_record_test): New function. | |
14107 | ||
33877125 YQ |
14108 | 2017-03-23 Yao Qi <yao.qi@linaro.org> |
14109 | ||
14110 | * aarch64-tdep.c (aarch64_record_load_store): Fix code | |
14111 | indentation. | |
14112 | ||
a0eef940 YQ |
14113 | 2017-03-23 Yao Qi <yao.qi@linaro.org> |
14114 | ||
14115 | * aarch64-tdep.c: Remove AARCH64_RECORD_FAILURE. | |
14116 | ||
3f2a3564 PR |
14117 | 2017-03-23 Philipp Rudo <prudo@linux.vnet.ibm.com> |
14118 | ||
14119 | python/python.c (do_start_initialization): Fix memory leak. | |
14120 | ||
b67aeab0 SM |
14121 | 2017-03-22 Simon Marchi <simon.marchi@polymtl.ca> |
14122 | ||
14123 | * inf-ptrace.c (inf_ptrace_xfer_partial): Get pid from ptid | |
14124 | using get_ptrace_pid. | |
14125 | * linux-nat.c (linux_nat_xfer_partial): Don't set/restore | |
14126 | inferior_ptid. | |
14127 | (linux_proc_xfer_partial, linux_proc_xfer_spu): Use lwp of | |
14128 | inferior_ptid instead of pid. | |
14129 | ||
ffdbe864 YQ |
14130 | 2017-03-22 Yao Qi <yao.qi@linaro.org> |
14131 | ||
14132 | * aarch64-tdep.c: Wrap locally used classes in anonymous | |
14133 | namespace. | |
14134 | * arm-tdep.c: Likewise. | |
14135 | * linespec.c: Likewise. | |
14136 | * ui-out.c: Likewise. | |
14137 | ||
9d736fbf JG |
14138 | 2017-03-22 Jonah Graham <jonah@kichwacoders.com> |
14139 | ||
14140 | PR gdb/19637 | |
14141 | * python/lib/gdb/printer/bound_registers.py: Import sys. | |
14142 | ||
3de88e9a SM |
14143 | 2017-03-21 Simon Marchi <simon.marchi@ericsson.com> |
14144 | ||
14145 | * windows-nat.c (do_windows_fetch_inferior_registers): Add | |
14146 | windows_thread_info parameter and use it instead of | |
14147 | current_thread. | |
14148 | (windows_fetch_inferior_registers): Don't set current_thread, | |
14149 | pass the thread to do_windows_fetch_inferior_registers. Use | |
14150 | ptid from regcache instead of inferior_ptid. | |
14151 | (do_windows_store_inferior_registers): Add windows_thread_info | |
14152 | parameter and use it instead of current_thread. | |
14153 | (windows_store_inferior_registers): Don't set current_thread, | |
14154 | pass the thread to do_windows_store_inferior_registers. Use | |
14155 | ptid from regcache instead of inferior_ptid. | |
14156 | ||
0e7b8f61 SM |
14157 | 2017-03-21 Simon Marchi <simon.marchi@ericsson.com> |
14158 | ||
14159 | * ser-mingw.c (ser_windows_raw): Remove reference to | |
14160 | struct serial::current_timeout. | |
14161 | ||
5badf10a IR |
14162 | 2017-03-21 Ivo Raisr <ivo.raisr@oracle.com> |
14163 | ||
14164 | PR tdep/20928 | |
14165 | * gdb/sparc-tdep.h (gdbarch_tdep) <sparc64_ccr_type>: New field. | |
14166 | * gdb/sparc64-tdep.c (sparc64_ccr_type): New function. | |
14167 | (sparc64_fsr_type): Fix %fsr decoding. | |
14168 | ||
cee59b3f TW |
14169 | 2017-03-21 Tim Wiederhake <tim.wiederhake@intel.com> |
14170 | ||
14171 | * python/py-record-btrace.c (btpy_insn_data): Change return type | |
14172 | for Python 2. | |
14173 | ||
639a9038 SM |
14174 | 2017-03-20 Simon Marchi <simon.marchi@polymtl.ca> |
14175 | ||
14176 | * spu-linux-nat.c (spu_fetch_inferior_registers, | |
14177 | spu_store_inferior_registers): Use ptid from regcache, set and | |
14178 | restore inferior_ptid. | |
14179 | * spu-multiarch.c (spu_fetch_registers, spu_store_registers): | |
14180 | Likewise. | |
14181 | ||
bcc0c096 SM |
14182 | 2017-03-20 Simon Marchi <simon.marchi@polymtl.ca> |
14183 | ||
14184 | * i386-linux-nat.c (fetch_register, store_register, | |
14185 | i386_linux_fetch_inferior_registers, | |
14186 | i386_linux_store_inferior_registers): Use ptid from regcache. | |
14187 | * ia64-linux-nat.c (ia64_linux_fetch_register, | |
14188 | ia64_linux_store_register): Likewise. | |
14189 | * inf-ptrace.c (inf_ptrace_fetch_register, | |
14190 | inf_ptrace_store_register): Likewise. | |
14191 | * m32r-linux-nat.c (m32r_linux_fetch_inferior_registers, | |
14192 | m32r_linux_store_inferior_registers): Likewise. | |
14193 | * m68k-bsd-nat.c (m68kbsd_fetch_inferior_registers, | |
14194 | m68kbsd_store_inferior_registers): Likewise. | |
14195 | * m68k-linux-nat.c (fetch_register, store_register, | |
14196 | m68k_linux_fetch_inferior_registers, | |
14197 | m68k_linux_store_inferior_registers): Likewise. | |
14198 | * m88k-bsd-nat.c (m88kbsd_fetch_inferior_registers, | |
14199 | m88kbsd_store_inferior_registers): Likewise. | |
14200 | * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers, | |
14201 | mips_fbsd_store_inferior_registers): Likewise. | |
14202 | * mips-linux-nat.c (mips64_linux_regsets_fetch_registers, | |
14203 | mips64_linux_regsets_store_registers): Likewise. | |
14204 | * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers, | |
14205 | mipsnbsd_store_inferior_registers): Likewise. | |
14206 | * mips-obsd-nat.c (mips64obsd_fetch_inferior_registers, | |
14207 | mips64obsd_store_inferior_registers): Likewise. | |
14208 | * nto-procfs.c (procfs_fetch_registers, procfs_store_registers): | |
14209 | Likewise. | |
14210 | * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers, | |
14211 | ppcfbsd_store_inferior_registers): Likewise. | |
14212 | * ppc-linux-nat.c (ppc_linux_fetch_inferior_registers, | |
14213 | ppc_linux_store_inferior_registers): Likewise. | |
14214 | * ppc-nbsd-nat.c (ppcnbsd_fetch_inferior_registers, | |
14215 | ppcnbsd_store_inferior_registers): Likewise. | |
14216 | * ppc-obsd-nat.c (ppcobsd_fetch_registers, | |
14217 | ppcobsd_store_registers): Likewise. | |
14218 | * procfs.c (procfs_fetch_registers, procfs_store_registers): | |
14219 | Likewise. | |
14220 | * ravenscar-thread.c (ravenscar_fetch_registers, | |
14221 | ravenscar_store_registers, ravenscar_prepare_to_store): | |
14222 | Likewise. | |
14223 | * record-btrace.c (record_btrace_fetch_registers, | |
14224 | record_btrace_store_registers, record_btrace_prepare_to_store): | |
14225 | Likewise. | |
14226 | * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): | |
14227 | Lookup inferior using ptid from regcache, instead of | |
14228 | current_inferior. | |
14229 | * remote.c (remote_fetch_registers, remote_store_registers): Use | |
14230 | ptid from regcache. | |
14231 | * rs6000-nat.c (fetch_register, store_register): Likewise. | |
14232 | * s390-linux-nat.c (s390_linux_fetch_inferior_registers, | |
14233 | s390_linux_store_inferior_registers): Likewise. | |
14234 | * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers, | |
14235 | shnbsd_store_inferior_registers): Likewise. | |
14236 | * sol-thread.c (sol_thread_fetch_registers, | |
14237 | sol_thread_store_registers): Likewise. | |
14238 | * sparc-nat.c (sparc_fetch_inferior_registers, | |
14239 | sparc_store_inferior_registers): Likewise. | |
14240 | * tilegx-linux-nat.c (fetch_inferior_registers, | |
14241 | store_inferior_registers): Likewise. | |
14242 | * vax-bsd-nat.c (vaxbsd_fetch_inferior_registers, | |
14243 | vaxbsd_store_inferior_registers): Likewise. | |
14244 | * xtensa-linux-nat.c (fetch_gregs, store_gregs, fetch_xtregs, | |
14245 | store_xtregs): Likewise. | |
14246 | ||
c0f55cc6 AV |
14247 | 2017-03-20 Artemiy Volkov <artemiyv@acm.org> |
14248 | ||
14249 | PR gdb/14441 | |
14250 | * NEWS: Mention support for rvalue references in GDB and python. | |
14251 | * doc/gdb.texinfo (C Plus Plus Expressions): Mention that GDB | |
14252 | supports both lvalue and rvalue references. | |
14253 | ||
15c0a2a9 AV |
14254 | 2017-03-20 Artemiy Volkov <artemiyv@acm.org> |
14255 | ||
14256 | PR gdb/14441 | |
14257 | * gdbtypes.c (rank_one_type): Implement overloading | |
14258 | resolution rules regarding rvalue references. | |
14259 | ||
aa006118 AV |
14260 | 2017-03-20 Artemiy Volkov <artemiyv@acm.org> |
14261 | ||
14262 | PR gdb/14441 | |
14263 | * aarch64-tdep.c (aarch64_type_align) | |
14264 | (aarch64_extract_return_value, aarch64_store_return_value): Change | |
14265 | lvalue reference type checks to general reference type checks. | |
14266 | * amd64-tdep.c (amd64_classify): Likewise. | |
14267 | * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register): | |
14268 | Likewise. | |
14269 | * arm-tdep.c (arm_type_align, arm_extract_return_value) | |
14270 | (arm_store_return_value): Likewise. | |
14271 | * ax-gdb.c (gen_fetch, gen_cast): Likewise. | |
14272 | * c-typeprint.c (c_print_type): Likewise. | |
14273 | * c-varobj.c (adjust_value_for_child_access, c_value_of_variable) | |
14274 | (cplus_number_of_children, cplus_describe_child): Likewise. | |
14275 | * compile/compile-c-symbols.c (generate_vla_size): Likewise. | |
14276 | * completer.c (expression_completer): Likewise. | |
14277 | * cp-support.c (make_symbol_overload_list_adl_namespace): | |
14278 | Likewise. | |
14279 | * darwin-nat-info.c (info_mach_region_command): Likewise. | |
14280 | * dwarf2loc.c (entry_data_value_coerce_ref) | |
14281 | (value_of_dwarf_reg_entry): Likewise. | |
14282 | * eval.c (ptrmath_type_p, evaluate_subexp_standard) | |
14283 | (evaluate_subexp_for_address, evaluate_subexp_for_sizeof): | |
14284 | Likewise. | |
14285 | * findvar.c (extract_typed_address, store_typed_address): | |
14286 | Likewise. | |
14287 | * gdbtypes.c (rank_one_type): Likewise. | |
14288 | * hppa-tdep.c (hppa64_integral_or_pointer_p): Likewise. | |
14289 | * infcall.c (value_arg_coerce): Likewise. | |
14290 | * language.c (pointer_type): Likewise. | |
14291 | * m32c-tdep.c (m32c_reg_arg_type, m32c_m16c_address_to_pointer): | |
14292 | Likewise. | |
14293 | * m88k-tdep.c (m88k_integral_or_pointer_p): Likewise. | |
14294 | * mn10300-tdep.c (mn10300_type_align): Likewise. | |
14295 | * msp430-tdep.c (msp430_push_dummy_call): Likewise. | |
14296 | * ppc-sysv-tdep.c (do_ppc_sysv_return_value) | |
14297 | (ppc64_sysv_abi_push_param, ppc64_sysv_abi_return_value): | |
14298 | Likewise. | |
14299 | * printcmd.c (print_formatted, x_command): Likewise. | |
14300 | * python/py-type.c (typy_get_composite, typy_template_argument): | |
14301 | Likewise. | |
14302 | * python/py-value.c (valpy_referenced_value) | |
14303 | (valpy_get_dynamic_type, value_has_field): Likewise. | |
14304 | * s390-linux-tdep.c (s390_function_arg_integer): Likewise. | |
14305 | * sparc-tdep.c (sparc_integral_or_pointer_p): Likewise. | |
14306 | * sparc64-tdep.c (sparc64_integral_or_pointer_p): Likewise. | |
14307 | * spu-tdep.c (spu_scalar_value_p): Likewise. | |
14308 | * symtab.c (lookup_symbol_aux): Likewise. | |
14309 | * typeprint.c (whatis_exp, print_type_scalar): Likewise. | |
14310 | * valarith.c (binop_types_user_defined_p, unop_user_defined_p): | |
14311 | Likewise. | |
14312 | * valops.c (value_cast_pointers, value_cast) | |
14313 | (value_reinterpret_cast, value_dynamic_cast, value_addr, typecmp) | |
14314 | (value_struct_elt, value_struct_elt_bitpos) | |
14315 | (value_find_oload_method_list, find_overload_match) | |
14316 | (value_rtti_indirect_type): Likewise. | |
14317 | * valprint.c (val_print_scalar_type_p, generic_val_print): | |
14318 | Likewise. | |
14319 | * value.c (value_actual_type, value_as_address, unpack_long) | |
14320 | (pack_long, pack_unsigned_long, coerce_ref_if_computed) | |
14321 | (coerce_ref): Likewise. | |
14322 | * varobj.c (varobj_get_value_type): Likewise. | |
14323 | ||
3fcf899d AV |
14324 | 2017-03-20 Artemiy Volkov <artemiyv@acm.org> |
14325 | ||
14326 | PR gdb/14441 | |
14327 | * doc/python.texi (Types in Python): Add TYPE_CODE_RVALUE_REF to | |
14328 | table of constants. | |
14329 | * python/lib/gdb/command/explore.py: Support exploring values | |
14330 | of rvalue reference types. | |
14331 | * python/lib/gdb/types.py: Implement get_basic_type() for | |
14332 | rvalue reference types. | |
14333 | * python/py-type.c (pyty_codes) <TYPE_CODE_RVALUE_REF>: New | |
14334 | constant. | |
14335 | * python/py-value.c (valpy_getitem): Add an rvalue reference | |
14336 | check. | |
14337 | (valpy_reference_value): Add new parameter "refcode". | |
14338 | (valpy_lvalue_reference_value, valpy_rvalue_reference_value): | |
14339 | New wrappers for valpy_reference_value(). | |
14340 | * python/py-xmethods.c (gdbpy_get_xmethod_result_type) | |
14341 | (gdbpy_invoke_xmethod): Likewise. | |
14342 | ||
4297a3f0 AV |
14343 | 2017-03-20 Artemiy Volkov <artemiyv@acm.org> |
14344 | ||
14345 | PR gdb/14441 | |
14346 | * dwarf2read.c (process_die, read_type_die_1): Handle the | |
14347 | DW_TAG_rvalue_reference_type DIE. | |
14348 | (read_tag_reference_type): Add new parameter "refcode". | |
14349 | ||
e1cb3213 AV |
14350 | 2017-03-20 Artemiy Volkov <artemiyv@acm.org> |
14351 | ||
14352 | PR gdb/14441 | |
14353 | * c-typeprint.c (c_print_type, c_type_print_varspec_prefix) | |
14354 | (c_type_print_modifier, c_type_print_varspec_suffix) | |
14355 | (c_type_print_base): Support printing rvalue reference types. | |
14356 | * c-valprint.c (c_val_print, c_value_print): Support printing | |
14357 | rvalue reference values. | |
14358 | ||
e4347c89 AV |
14359 | 2017-03-20 Artemiy Volkov <artemiyv@acm.org> |
14360 | ||
14361 | PR gdb/14441 | |
14362 | * cp-name-parser.y (ptr_operator): Handle the '&&' token in | |
14363 | typename. | |
14364 | * cp-support.c (replace_typedefs): Handle | |
14365 | DEMANGLE_COMPONENT_RVALUE_REFERENCE. | |
14366 | * python/py-type.c (typy_lookup_type): Likewise. | |
14367 | ||
53cc15f5 AV |
14368 | 2017-03-20 Artemiy Volkov <artemiyv@acm.org> |
14369 | ||
14370 | PR gdb/14441 | |
14371 | * c-exp.y (ptr_operator): Handle the '&&' token in the typename. | |
14372 | * parse.c (insert_type): Change assert statement. | |
14373 | (follow_types): Handle rvalue reference types. | |
14374 | * parser-defs.h (enum type_pieces) <tp_rvalue_reference>: New | |
14375 | constant. | |
14376 | ||
a65cfae5 AV |
14377 | 2017-03-20 Artemiy Volkov <artemiyv@acm.org> |
14378 | ||
14379 | PR gdb/14441 | |
14380 | * ada-lang.c (ada_evaluate_subexp): Adhere to the new | |
14381 | value_ref() interface. | |
14382 | * c-valprint.c (c_value_print): Likewise. | |
14383 | * infcall.c (value_arg_coerce): Likewise. | |
14384 | * python/py-value.c (valpy_reference_value): Likewise. | |
14385 | * valops.c (value_cast, value_reinterpret_cast) | |
14386 | (value_dynamic_cast, typecmp): Likewise. | |
14387 | (value_ref): Parameterize by kind of return value reference type. | |
14388 | * value.h (value_ref): Add new parameter "refcode". | |
14389 | ||
3b224330 AV |
14390 | 2017-03-20 Artemiy Volkov <artemiyv@acm.org> |
14391 | ||
14392 | PR gdb/14441 | |
14393 | * dwarf2read.c (read_tag_reference_type): Use | |
14394 | lookup_lvalue_reference_type() instead of lookup_reference_type(). | |
14395 | * eval.c (evaluate_subexp_standard): Likewise. | |
14396 | * f-exp.y: Likewise. | |
14397 | * gdbtypes.c (make_reference_type, lookup_reference_type): | |
14398 | Generalize with rvalue reference types. | |
14399 | (lookup_lvalue_reference_type, lookup_rvalue_reference_type): New | |
14400 | convenience wrappers for lookup_reference_type(). | |
14401 | * gdbtypes.h (make_reference_type, lookup_reference_type): Add a | |
14402 | reference kind parameter. | |
14403 | (lookup_lvalue_reference_type, lookup_rvalue_reference_type): Add | |
14404 | wrappers for lookup_reference_type(). | |
14405 | * guile/scm-type.c (gdbscm_type_reference): Use | |
14406 | lookup_lvalue_reference_type() instead of lookup_reference_type(). | |
14407 | * guile/scm-value.c (gdbscm_value_dynamic_type): Likewise. | |
14408 | * parse.c (follow_types): Likewise. | |
14409 | * python/py-type.c (typy_reference, typy_lookup_type): Likewise. | |
14410 | * python/py-value.c (valpy_get_dynamic_type, valpy_getitem): | |
14411 | Likewise. | |
14412 | * python/py-xmethods.c (gdbpy_get_xmethod_result_type) | |
14413 | (gdbpy_invoke_xmethod): Likewise. | |
14414 | * stabsread.c: Provide extra argument to make_reference_type() | |
14415 | call. | |
14416 | * valops.c (value_ref, value_rtti_indirect_type): Use | |
14417 | lookup_lvalue_reference_type() instead of lookup_reference_type(). | |
14418 | ||
f9aeb8d4 AV |
14419 | 2017-03-20 Artemiy Volkov <artemiyv@acm.org> |
14420 | ||
14421 | PR gdb/14441 | |
14422 | * gdbtypes.h (enum type_code) <TYPE_CODE_RVALUE_REF>: New constant. | |
14423 | (TYPE_IS_REFERENCE): New macro. | |
14424 | (struct type): Add rvalue_reference_type field. | |
14425 | (TYPE_RVALUE_REFERENCE_TYPE): New macro. | |
14426 | ||
51457a05 MAL |
14427 | 2017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com> |
14428 | ||
14429 | * NEWS: Add an entry about new '-file-list-shared-libraries' command. | |
14430 | * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): | |
14431 | New function definition. | |
14432 | * mi/mi-cmds.c (mi_cmds): Add -file-list-shared-libraries command. | |
14433 | * mi/mi-cmds.h (mi_cmd_file_list_shared_libraries): | |
14434 | New function declaration. | |
14435 | * mi/mi-interp.c (mi_output_solib_attribs): New Function. | |
14436 | * mi/mi-interp.h: New file. | |
14437 | * solib.c (info_sharedlibrary_command): Replace for loop with | |
14438 | ALL_SO_LIBS macro | |
14439 | * solib.h (update_solib_list): New function declaration. | |
14440 | (so_list_head): Move macro. | |
14441 | * solist.h (ALL_SO_LIBS): New macro. | |
14442 | ||
e696b3ad MAL |
14443 | 2017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com> |
14444 | ||
14445 | * infcmd.c (post_create_inferior): Remove unused argument in | |
14446 | call to solib_add. | |
14447 | * remote.c (remote_start_remote): Likewise. | |
14448 | * solib-frv.c (frv_fetch_objfile_link_map): Likewise. | |
14449 | * solib-svr4.c: (svr4_fetch_objfile_link_map): Likewise. | |
14450 | (enable_break): Likewise. | |
14451 | * solib.c (update_solib_list): Remove unused target argument | |
14452 | and its documentation. | |
14453 | (solib_add): Remove unused target argument. Remove unused | |
14454 | argument in call to update_solib_list. | |
14455 | (info_sharedlibrary_command): Remove unused argument in call | |
14456 | to update_solib_list. | |
14457 | (sharedlibrary_command): Remove unused argument in call to | |
14458 | solib_add. | |
14459 | (handle_solib_event): Likewise. | |
14460 | (reload_shared_libraries): Likewise. | |
14461 | * solib.h (solib_add): Remove unused target argument. | |
14462 | ||
dcb84eda AA |
14463 | 2017-03-20 Andreas Arnez <arnez@linux.vnet.ibm.com> |
14464 | ||
14465 | * s390-linux-tdep.c (is_rsi, is_rie): Remove functions. | |
14466 | (s390_displaced_step_fixup): Cover relative branches with the | |
14467 | default fixup handling. This fixes lack of support for some | |
14468 | relative branch instructions. | |
14469 | ||
d9cb6cdc SM |
14470 | 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca> |
14471 | ||
14472 | * i386-gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Use | |
14473 | ptid from regcache. | |
14474 | ||
1afaf9f4 SM |
14475 | 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca> |
14476 | ||
14477 | * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers, | |
14478 | i386_darwin_store_inferior_registers): Use ptid from regcache. | |
14479 | ||
aac12e24 SM |
14480 | 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca> |
14481 | ||
14482 | * i386-bsd-nat.c (i386bsd_fetch_inferior_registers, | |
14483 | i386bsd_store_inferior_registers): Use ptid from regcache. | |
14484 | ||
bbe1eef1 SM |
14485 | 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca> |
14486 | ||
14487 | * hppa-obsd-nat.c (hppaobsd_fetch_registers, | |
14488 | hppaobsd_store_registers): Use ptid from regcache. | |
14489 | ||
10799020 SM |
14490 | 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca> |
14491 | ||
14492 | * hppa-nbsd-nat.c (hppanbsd_fetch_registers, | |
14493 | hppanbsd_store_registers): Use ptid from regcache. | |
14494 | ||
00204cf7 SM |
14495 | 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca> |
14496 | ||
14497 | * hppa-linux-nat.c (fetch_register, store_register): Use ptid | |
14498 | from regcache. Use get_ptrace_pid. | |
14499 | ||
11a33714 SM |
14500 | 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca> |
14501 | ||
14502 | * corelow.c (get_core_register_section): Use ptid from regcache, | |
14503 | update doc. | |
14504 | ||
317cd492 SM |
14505 | 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca> |
14506 | ||
14507 | * bsd-uthread.c (bsd_uthread_fetch_registers, | |
14508 | bsd_uthread_store_registers): Use ptid from regcache, set and | |
14509 | restore inferior_ptid. | |
14510 | ||
9ac8a7c2 SM |
14511 | 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca> |
14512 | ||
14513 | * arm-nbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register, | |
14514 | fetch_fp_regs, store_register, store_regs, store_fp_register, | |
14515 | store_fp_regs): Use ptid from regcache. | |
14516 | ||
4ac4bb6a SM |
14517 | 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca> |
14518 | ||
14519 | * arm-linux-nat.c (fetch_fpregs, store_fpregs, fetch_regs, | |
14520 | store_regs, fetch_wmmx_regs, store_wmmx_regs, fetch_vfp_regs, | |
14521 | store_vfp_regs): Use ptid from regcache. | |
14522 | ||
9bcbdca8 PA |
14523 | 2017-03-17 Pedro Alves <palves@redhat.com> |
14524 | ||
14525 | PR remote/21188 | |
14526 | * ser-base.c (ser_base_wait_for): Add comment. | |
14527 | (do_ser_base_readchar): Improve comment based on the ser-unix.c's | |
14528 | version. | |
14529 | * ser-unix.c (hardwire_raw): Remove reference to | |
14530 | scb->current_timeout. | |
14531 | (wait_for, do_hardwire_readchar, hardwire_readchar): Delete. | |
14532 | (hardwire_ops): Install ser_base_readchar instead of | |
14533 | hardwire_readchar. | |
14534 | * serial.h (struct serial) <current_timeout, timeout_remaining>: | |
14535 | Remove fields. | |
14536 | ||
7503099f JG |
14537 | 2017-03-17 Jonah Graham <jonah@kichwacoders.com> |
14538 | ||
14539 | PR gdb/19637 | |
14540 | * python/lib/gdb/printer/bound_registers.py: Add support for | |
14541 | Python 3. | |
14542 | ||
7942e96e AA |
14543 | 2017-03-16 Andreas Arnez <arnez@linux.vnet.ibm.com> |
14544 | ||
14545 | * dwarf2loc.c (indirect_synthetic_pointer): Get data type of | |
14546 | pointed-to DIE and pass it to dwarf2_evaluate_loc_desc_full. | |
14547 | (dwarf2_evaluate_loc_desc_full): New parameter subobj_type; rename | |
14548 | byte_offset to subobj_byte_offset. Fix the handling of | |
14549 | DWARF_VALUE_STACK on big-endian targets when coming via an | |
14550 | implicit pointer. | |
14551 | (dwarf2_evaluate_loc_desc): Adjust call to | |
14552 | dwarf2_evaluate_loc_desc_full. | |
14553 | * dwarf2loc.h (dwarf2_fetch_die_type_sect_off): New declaration. | |
14554 | * dwarf2read.c (dwarf2_fetch_die_type_sect_off): New function. | |
14555 | ||
ba14f379 YQ |
14556 | 2017-03-16 Yao Qi <yao.qi@linaro.org> |
14557 | ||
14558 | * arm-tdep.c (thumb_record_misc): Decode CBNZ, CBZ, REV16, | |
14559 | and REVSH instructions. | |
14560 | ||
b121eeb9 YQ |
14561 | 2017-03-16 Yao Qi <yao.qi@linaro.org> |
14562 | ||
14563 | * arm-tdep.c [GDB_SELF_TEST]: include "selftests.h". | |
14564 | (arm_record_test): Declare. | |
14565 | (_initialize_arm_tdep) [GDB_SELF_TEST]: call register_self_test. | |
14566 | (thumb_record_ld_st_reg_offset): Rewrite the opcode matching to | |
14567 | align with the manual. | |
14568 | (thumb_record_misc): Adjust the code order to align with the | |
14569 | manual. | |
14570 | (thumb2_record_decode_insn_handler): Fix instruction matching. | |
14571 | (instruction_reader_thumb): New class. | |
14572 | (arm_record_test): New function. | |
14573 | ||
728a7913 YQ |
14574 | 2017-03-16 Yao Qi <yao.qi@linaro.org> |
14575 | ||
14576 | * arm-tdep.c (abstract_memory_reader): New class. | |
14577 | (instruction_reader): New class. | |
14578 | (extract_arm_insn): Add argument 'reader'. Callers updated. | |
14579 | (decode_insn): Likewise. | |
14580 | ||
34b43320 DE |
14581 | 2017-03-16 Doug Evans <dje@google.com> |
14582 | ||
a7c0469f DE |
14583 | * guile/scm-lazy-string.c (lazy_string_smob): Clarify use of LENGTH |
14584 | member. Change type of TYPE member to SCM. All uses updated. | |
14585 | (lsscm_make_lazy_string_smob): Add assert. | |
14586 | (lsscm_make_lazy_string): Flag bad length values. | |
14587 | (lsscm_elt_type): New function. | |
14588 | (gdbscm_lazy_string_to_value): Rewrite to use | |
14589 | lsscm_safe_lazy_string_to_value. | |
14590 | (lsscm_safe_lazy_string_to_value): Fix handling of TYPE_CODE_PTR. | |
14591 | * guile/scm-value.c (gdbscm_value_to_lazy_string): Flag bad length | |
14592 | values. Fix TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle typedefs | |
14593 | in incoming type. | |
14594 | * guile/guile-internal.h (tyscm_scm_to_type): Declare. | |
14595 | * guile/scm-type.c (tyscm_scm_to_type): New function. | |
14596 | ||
14597 | 2017-03-15 Doug Evans <dje@google.com> | |
14598 | ||
34b43320 DE |
14599 | PR python/17728, python/18439, python/18779 |
14600 | * python/py-lazy-string.c (lazy_string_object): Clarify use of LENGTH | |
14601 | member. Change type of TYPE member to PyObject *. All uses updated. | |
14602 | (stpy_convert_to_value): Fix handling of TYPE_CODE_PTR. | |
14603 | (gdbpy_create_lazy_string_object): Flag bad length values. | |
14604 | Handle TYPE_CODE_ARRAY with possibly different user-provided length. | |
14605 | Handle typedefs in incoming type. | |
14606 | (stpy_lazy_string_elt_type): New function. | |
14607 | (gdbpy_extract_lazy_string): Call it. | |
14608 | * python/py-value.c (valpy_lazy_string): Flag bad length values. | |
14609 | Fix handling of TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle | |
14610 | typedefs in incoming type. | |
14611 | ||
a3a5fecc DE |
14612 | 2017-03-16 Doug Evans <dje@google.com> |
14613 | ||
14614 | * guile/guile-internal.h (tyscm_scm_to_type): Declare. | |
14615 | * guile/scm-type.c (tyscm_scm_to_type): New function. | |
14616 | ||
28f1c605 JW |
14617 | 2017-03-16 Jiong Wang <jiong.wang@arm.com> |
14618 | ||
14619 | * inf-ptrace.c (inf_ptrace_peek_poke): Change the type to | |
14620 | "ULONGEST" for "skip". | |
14621 | ||
87c336f6 AA |
14622 | 2017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com> |
14623 | ||
14624 | PR gdb/21220 | |
14625 | * inf-ptrace.c (inf_ptrace_xfer_partial): In "case | |
14626 | TARGET_OBJECT_MEMORY", extract the logic for ptrace peek/poke... | |
14627 | (inf_ptrace_peek_poke): ...here. New function. Now also loop | |
14628 | over ptrace peek/poke until end of buffer or error. | |
14629 | ||
cf81cf60 SM |
14630 | 2017-03-14 Simon Marchi <simon.marchi@ericsson.com> |
14631 | ||
14632 | * parse.c (length_of_subexp): Make static. | |
14633 | * parser-defs.h (length_of_subexp): Remove. | |
14634 | ||
a379284a AA |
14635 | 2017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com> |
14636 | ||
14637 | * linux-nat.c (linux_proc_xfer_partial): Handle write operations | |
14638 | as well. | |
14639 | ||
8a6200ba PA |
14640 | 2017-03-14 Pedro Alves <palves@redhat.com> |
14641 | ||
14642 | * cp-name-parser.y (cp_demangled_name_to_comp): Update comment. | |
14643 | (main): Use std::unique_ptr. Remove calls to | |
14644 | cp_demangled_name_parse_free. | |
14645 | ||
f79ec206 SM |
14646 | 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca> |
14647 | ||
14648 | * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers, | |
14649 | alphabsd_store_inferior_registers): Use regcache->ptid instead | |
14650 | of inferior_ptid. | |
14651 | ||
edb5fb00 SM |
14652 | 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca> |
14653 | ||
14654 | * aix-thread.c (aix_thread_fetch_registers, | |
14655 | aix_thread_store_registers): Use regcache->ptid instead of | |
14656 | inferior_ptid. | |
14657 | ||
55119686 SM |
14658 | 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca> |
14659 | ||
14660 | * aarch64-linux-nat.c (fetch_gregs_from_thread, | |
14661 | store_gregs_to_thread, fetch_fpregs_from_thread, | |
14662 | store_fpregs_to_thread): Use regcache->ptid instead of | |
14663 | inferior_ptid. | |
14664 | ||
6a06fbb7 SM |
14665 | 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca> |
14666 | ||
14667 | * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers, | |
14668 | amd64_linux_fetch_inferior_registers): Use regcache->ptid | |
14669 | instead of inferior_ptid. | |
14670 | ||
c6386875 SM |
14671 | 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca> |
14672 | ||
14673 | * target.c (target_fetch_registers, target_store_registers): Add | |
14674 | assert. | |
14675 | ||
ddaaf0fb SM |
14676 | 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca> |
14677 | ||
14678 | * regcache.h (regcache_get_ptid): New function. | |
14679 | * regcache.c (regcache_get_ptid): New function. | |
14680 | ||
b9da89d1 | 14681 | 2017-03-13 Mark Wielaard <mark@klomp.org> |
14682 | ||
14683 | * cp-name-parser.y (make_empty): Initialize d_printing to zero. | |
14684 | ||
5f4d1085 KS |
14685 | 2017-03-10 Keith Seitz <keiths@redhat.com> |
14686 | ||
14687 | PR c++/8218 | |
14688 | * c-typeprint.c (cp_type_print_method_args): Skip artificial arguments. | |
14689 | ||
c65d6b55 PA |
14690 | 2017-03-08 Pedro Alves <palves@redhat.com> |
14691 | ||
14692 | PR gdb/18360 | |
14693 | * infrun.c (start_step_over, do_target_resume, resume) | |
14694 | (restart_threads): Assert we're not resuming a thread that is | |
14695 | meant to be stopped. | |
14696 | (infrun_thread_stop_requested_callback): Delete. | |
14697 | (infrun_thread_stop_requested): If the thread is internally | |
14698 | stopped, queue a pending stop event and clear the thread's | |
14699 | inline-frame state. | |
14700 | (handle_stop_requested): New function. | |
14701 | (handle_syscall_event, handle_inferior_event_1): Use | |
14702 | handle_stop_requested. | |
14703 | (handle_stop_requested): New function. | |
14704 | (handle_signal_stop): Set the thread's stop_signal here instead of | |
14705 | at caller. | |
14706 | (finish_step_over): Clear step over info unconditionally. | |
14707 | (handle_signal_stop): If the user had interrupted the event | |
14708 | thread, consider the stop a random signal. | |
14709 | (handle_signal_stop) <signal arrived while stepping over | |
14710 | breakpoint>: Don't restart threads here. | |
14711 | (stop_waiting): Don't clear step-over info here. | |
14712 | ||
15c22686 PA |
14713 | 2017-03-08 Pedro Alves <palves@redhat.com> |
14714 | ||
14715 | PR 21206 | |
14716 | * common/gdb_unlinker.h (unlinker::unlinker): Attribute nonnull | |
14717 | goes to argument 2, not 1. | |
14718 | ||
6e5d74e7 PA |
14719 | 2017-03-08 Pedro Alves <palves@redhat.com> |
14720 | ||
14721 | PR cli/21218 | |
14722 | * top.c (gdb_readline_wrapper): Avoid passing NULL to | |
14723 | display_gdb_prompt. | |
14724 | (command_line_input): Add comment. | |
14725 | ||
9753a2f6 PA |
14726 | 2017-03-08 Pedro Alves <palves@redhat.com> |
14727 | ||
14728 | PR tui/21216 | |
14729 | * tui/tui-file.c (tui_file::write): New. | |
14730 | * tui/tui-file.h (tui_file): Override "write". | |
14731 | * tui/tui-io.c (do_tui_putc, update_start_line): New functions, | |
14732 | factored out from ... | |
14733 | (tui_puts): ... here. | |
14734 | (tui_putc): Use them. | |
14735 | (tui_write): New function. | |
14736 | * tui/tui-io.h (tui_write): Declare. | |
14737 | ||
1672e0d9 SDJ |
14738 | 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com> |
14739 | ||
14740 | * Makefile.in (SFILES): Replace "environ.c" with | |
14741 | "common/environ.c". | |
14742 | (HFILES_NO_SRCDIR): Likewise, for "environ.h". | |
14743 | * environ.c: Include "common-defs.h" instead of "defs.h. Moved | |
14744 | to... | |
14745 | * common/environ.c: ... here. | |
14746 | * environ.h: Moved to... | |
14747 | * common/environ.h: ... here. | |
14748 | ||
f7bb4e3a PB |
14749 | 2017-03-07 Peter Bergner <bergner@vnet.ibm.com> |
14750 | ||
14751 | * gdbarch.sh (pstring_ptr): New static function. | |
14752 | (gdbarch_disassembler_options): Use it. | |
14753 | (gdbarch_verify_disassembler_options): Print valid_disassembler_options, | |
14754 | not valid_disassembler_option->name. | |
14755 | * gdbarch.c: Regenerate. | |
14756 | ||
e45ced6c PB |
14757 | 2017-03-07 Peter Bergner <bergner@vnet.ibm.com> |
14758 | ||
14759 | * config/powerpc/ppc64-linux.mh (MH_CFLAGS): Delete. | |
14760 | ||
5f6fd321 PA |
14761 | 2017-03-07 Pedro Alves <palves@redhat.com> |
14762 | ||
14763 | * tui/tui-regs.c (tui_restore_gdbout): Don't delete gdb_stdout. | |
14764 | ||
6dbb839a | 14765 | 2017-03-07 Walfred Tedeschi <walfred.tedeschi@intel.com> |
4a612d6f WT |
14766 | |
14767 | * i387-tdep.h (i387_reset_bnd_regs): Add function definition. | |
14768 | * i387-tdep.c (i387_reset_bnd_regs): Add function implementation. | |
14769 | * i386-tdep.c (i386_push_dummy_call): Call i387_reset_bnd_regs. | |
6dbb839a | 14770 | * amd64-tdep.c (amd64_push_dummy_call): Call i387_reset_bnd_regs. |
4a612d6f | 14771 | |
d274ecf4 SM |
14772 | 2017-03-06 Simon Marchi <simon.marchi@ericsson.com> |
14773 | ||
14774 | * xtensa-linux-nat.c (fetch_gregs): Remove const. | |
14775 | ||
df97be55 SM |
14776 | 2017-03-03 Simon Marchi <simon.marchi@ericsson.com> |
14777 | ||
14778 | * remote.c (remote_add_target_side_commands): Use range-based | |
14779 | for loop. | |
14780 | ||
7d45f3df YQ |
14781 | 2017-03-03 Yao Qi <yao.qi@linaro.org> |
14782 | ||
14783 | PR gdb/21165 | |
14784 | * ada-valprint.c (ada_val_print_ref): Call value_fetch_lazy if | |
14785 | value is lazy. | |
14786 | * valprint.c (common_val_print): Likewise. | |
14787 | ||
65b48a81 PB |
14788 | 2017-02-28 Peter Bergner <bergner@vnet.ibm.com> |
14789 | ||
14790 | * NEWS: Mention new set/show disassembler-options commands. | |
14791 | * doc/gdb.texinfo: Document new set/show disassembler-options commands. | |
14792 | * disasm.c: Include "arch-utils.h", "gdbcmd.h" and "safe-ctype.h". | |
14793 | (prospective_options): New static variable. | |
14794 | (gdb_disassembler::gdb_disassembler): Initialize | |
14795 | m_di.disassembler_options. | |
14796 | (gdb_buffered_insn_length_init_dis): Initilize di->disassembler_options. | |
14797 | (get_disassembler_options): New function. | |
14798 | (set_disassembler_options): Likewise. | |
14799 | (set_disassembler_options_sfunc): Likewise. | |
14800 | (show_disassembler_options_sfunc): Likewise. | |
14801 | (disassembler_options_completer): Likewise. | |
14802 | (_initialize_disasm): Likewise. | |
14803 | * disasm.h (get_disassembler_options): New prototype. | |
14804 | (set_disassembler_options): Likewise. | |
14805 | * gdbarch.sh (gdbarch_disassembler_options): New variable. | |
14806 | (gdbarch_verify_disassembler_options): Likewise. | |
14807 | * gdbarch.c: Regenerate. | |
14808 | * gdbarch.h: Likewise. | |
14809 | * arm-tdep.c (num_disassembly_options): Delete. | |
14810 | (set_disassembly_style): Likewise. | |
14811 | (arm_disassembler_options): New static variable. | |
14812 | (set_disassembly_style_sfunc): Convert short style name into long | |
14813 | option name. Call set_disassembler_options. | |
14814 | (show_disassembly_style_sfunc): New function. | |
14815 | (arm_gdbarch_init): Call set_gdbarch_disassembler_options and | |
14816 | set_gdbarch_verify_disassembler_options. | |
14817 | (_initialize_arm_tdep): Delete regnames variable and update callers. | |
14818 | (arm_disassembler_options): Initialize. | |
14819 | (disasm_options): New variable. | |
14820 | (num_disassembly_options): Rename from this... | |
14821 | (num_disassembly_styles): ...to this. Compute by scanning through | |
14822 | disasm_options. | |
14823 | (valid_disassembly_styles): Initialize using disasm_options. | |
14824 | Remove calls to parse_arm_disassembler_option, get_arm_regnames and | |
14825 | set_arm_regname_option. | |
14826 | Pass show_disassembly_style_sfunc to the "disassembler" setshow command. | |
14827 | * rs6000-tdep.c (powerpc_disassembler_options): New static variable. | |
14828 | (rs6000_gdbarch_init): Call set_gdbarch_disassembler_options and | |
14829 | set_gdbarch_verify_disassembler_options. | |
14830 | * s390-tdep.c (s390_disassembler_options): New static variable. | |
14831 | (s390_gdbarch_init):all set_gdbarch_disassembler_options and | |
14832 | set_gdbarch_verify_disassembler_options. | |
14833 | ||
d538e36d SM |
14834 | 2017-02-27 Simon Marchi <simon.marchi@ericsson.com> |
14835 | ||
14836 | * remote.c (remote_add_target_side_condition): Remove "struct" | |
14837 | keyword from range-based for loop. | |
14838 | ||
83621223 SM |
14839 | 2017-02-27 Simon Marchi <simon.marchi@ericsson.com> |
14840 | ||
14841 | * remote.c (remote_add_target_side_condition): Use range-based | |
14842 | for loop. Update comment. | |
14843 | ||
2123df0e YQ |
14844 | 2017-02-27 Yao Qi <yao.qi@linaro.org> |
14845 | ||
14846 | * f-typeprint.c (f_print_type): Check "varstring" is empty first. | |
14847 | ||
8e368124 AH |
14848 | 2017-02-26 Alan Hayward <alan.hayward@arm.com> |
14849 | ||
14850 | * regcache.c (regcache_raw_update): New function. | |
14851 | (regcache_raw_read): Move code to regcache_raw_update. | |
14852 | * regcache.h (regcache_raw_update): New declaration. | |
14853 | * remote.c (remote_prepare_to_store): Call regcache_raw_update. | |
14854 | ||
a49dd8dd JK |
14855 | 2017-02-26 Jan Kratochvil <jan.kratochvil@redhat.com> |
14856 | ||
14857 | * dwarf2read.c (create_debug_type_hash_table): Initialize | |
14858 | header.signature and header.type_offset_in_tu. | |
14859 | ||
34e4bae9 PA |
14860 | 2017-02-24 Pedro Alves <palves@redhat.com> |
14861 | ||
14862 | * symtab.c (make_file_symbol_completion_list_1): Use | |
14863 | add_symtab_completions. | |
14864 | ||
b0e4b369 AH |
14865 | 2017-02-24 Alan Hayward <alan.hayward@arm.com> |
14866 | ||
14867 | * stack.c (frame_info): Use frame_unwind_register_value to avoid buf. | |
14868 | ||
975c21ab AH |
14869 | 2017-02-24 Alan Hayward <alan.hayward@arm.com> |
14870 | ||
14871 | * i386-tdep.c (i386_pseudo_register_read_into_value): Use | |
14872 | I386_MAX_REGISTER_SIZE. | |
14873 | (i386_pseudo_register_write): Likewise. | |
14874 | (i386_process_record): Likewise. | |
14875 | * i387-tdep.c (i387_supply_xsave): Likewise. | |
14876 | * m68k-linux-nat.c (fetch_register): Use M68K_MAX_REGISTER_SIZE. | |
14877 | (store_register): Likewise. | |
14878 | ||
14bc53a8 PA |
14879 | 2017-02-23 Pedro Alves <palves@redhat.com> |
14880 | ||
14881 | * ada-lang.c: Include "common/function-view.h". | |
14882 | (ada_iterate_over_symbols): Adjust to use function_view as | |
14883 | callback type. | |
14884 | (struct add_partial_datum, ada_complete_symbol_matcher): Delete. | |
14885 | (ada_make_symbol_completion_list): Use a lambda. | |
14886 | (ada_exc_search_name_matches): Delete. | |
14887 | (name_matches_regex): New. | |
14888 | (ada_add_global_exceptions): Use a lambda and name_matches_regex. | |
14889 | * compile/compile-c-support.c: Include "common/function-view.h". | |
14890 | (print_one_macro): Change prototype to accept a ui_file pointer. | |
14891 | (write_macro_definitions): Use a lambda. | |
14892 | * dwarf2read.c: Include "common/function-view.h". | |
14893 | (dw2_map_expand_apply, dw2_map_symtabs_matching_filename) | |
14894 | (dw2_expand_symtabs_matching): Adjust to use function_view as | |
14895 | callback type. | |
14896 | * language.h: Include "common/function-view.h". | |
14897 | (struct language_defn) <la_iterate_over_symbols>: Adjust to use | |
14898 | function_view as callback type. | |
14899 | (LA_ITERATE_OVER_SYMBOLS): Remove DATA parameter. | |
14900 | * linespec.c: Include "common/function-view.h". | |
14901 | (collect_info::add_symbol): New method. | |
14902 | (struct symbol_and_data_callback, iterate_inline_only, struct | |
14903 | symbol_matcher_data, iterate_name_matcher): Delete. | |
14904 | (iterate_over_all_matching_symtabs): Adjust to use function_view | |
14905 | as callback type and lambdas. | |
14906 | (iterate_over_file_blocks): Adjust to use function_view as | |
14907 | callback type. | |
14908 | (decode_compound_collector): Now a class with private fields. | |
14909 | (decode_compound_collector::release_symbols): New method. | |
14910 | (collect_one_symbol): Rename to... | |
14911 | (decode_compound_collector::operator()): ... this and adjust. | |
14912 | (lookup_prefix_sym): decode_compound_collector construction bits | |
14913 | move to decode_compound_collector ctor. Pass the | |
14914 | decode_compound_collector object directly as callback. Remove | |
14915 | cleanups and use decode_compound_collector::release_symbols | |
14916 | instead. | |
14917 | (symtab_collector): Now a class with private fields. | |
14918 | (symtab_collector::release_symtabs): New method. | |
14919 | (add_symtabs_to_list): Rename to... | |
14920 | (symtab_collector::operator()): ... this and adjust. | |
14921 | (collect_symtabs_from_filename): symtab_collector construction | |
14922 | bits move to symtab_collector ctor. Pass the symtab_collector | |
14923 | object directly as callback. Remove cleanups and use | |
14924 | symtab_collector::release_symtabs instead. | |
14925 | (collect_symbols): Delete. | |
14926 | (add_matching_symbols_to_info): Use lambdas. | |
14927 | * macrocmd.c (print_macro_callback): Delete. | |
14928 | (info_macro_command): Use a lambda. | |
14929 | (info_macros_command): Pass print_macro_definition as callable | |
14930 | directly. | |
14931 | (print_one_macro): Remove 'ignore' parameter. | |
14932 | (macro_list_command): Adjust. | |
14933 | * macrotab.c (macro_for_each_data::fn): Now a function_view. | |
14934 | (macro_for_each_data::user_data): Delete field. | |
14935 | (foreach_macro): Adjust to call the function_view. | |
14936 | (macro_for_each): Adjust to use function_view as callback type. | |
14937 | (foreach_macro_in_scope): Adjust to call the function_view. | |
14938 | (macro_for_each_in_scope): Adjust to use function_view as callback | |
14939 | type. | |
14940 | * macrotab.h: Include "common/function-view.h". | |
14941 | (macro_callback_fn): Declare a prototype instead of a pointer. | |
14942 | Remove "user_data" parameter. | |
14943 | (macro_for_each, macro_for_each_in_scope): Adjust to use | |
14944 | function_view as callback type. | |
14945 | * psymtab.c (partial_map_expand_apply) | |
14946 | (psym_map_symtabs_matching_filename, recursively_search_psymtabs): | |
14947 | Adjust to use function_view as callback type and to return bool. | |
14948 | (psym_expand_symtabs_matching): Adjust to use function_view as | |
14949 | callback types. | |
14950 | * symfile-debug.c (debug_qf_map_symtabs_matching_filename): Adjust | |
14951 | to use function_view as callback type and to return bool. | |
14952 | (debug_qf_expand_symtabs_matching): Adjust to use function_view as | |
14953 | callback types. | |
14954 | * symfile.c (expand_symtabs_matching): Adjust to use function_view | |
14955 | as callback types. | |
14956 | * symfile.h: Include "common/function-view.h". | |
14957 | (expand_symtabs_file_matcher_ftype) | |
14958 | (expand_symtabs_symbol_matcher_ftype) | |
14959 | (expand_symtabs_exp_notify_ftype): Remove "data" parameter and | |
14960 | return bool. | |
14961 | (quick_symbol_functions::map_symtabs_matching_filename) | |
14962 | (quick_symbol_functions::expand_symtabs_matching): Adjust to use | |
14963 | function_view as callback type and return bool. | |
14964 | (expand_symtabs_matching): Adjust to use function_view as callback | |
14965 | type. | |
14966 | (maintenance_expand_name_matcher) | |
14967 | (maintenance_expand_file_matcher): Delete. | |
14968 | (maintenance_expand_symtabs): Use lambdas. | |
14969 | * symtab.c (iterate_over_some_symtabs): Adjust to use | |
14970 | function_view as callback types and return bool. | |
14971 | (iterate_over_symtabs): Likewise. Use unique_xmalloc_ptr instead | |
14972 | of a cleanup. | |
14973 | (lookup_symtab_callback): Delete. | |
14974 | (lookup_symtab): Use a lambda. | |
14975 | (iterate_over_symbols): Adjust to use function_view as callback | |
14976 | type. | |
14977 | (struct search_symbols_data, search_symbols_file_matches) | |
14978 | (search_symbols_name_matches): Delete. | |
14979 | (search_symbols): Use a pair of lambdas. | |
14980 | (struct add_name_data, add_macro_name, symbol_completion_matcher) | |
14981 | (symtab_expansion_callback): Delete. | |
14982 | (default_make_symbol_completion_list_break_on_1): Use lambdas. | |
14983 | * symtab.h: Include "common/function-view.h". | |
14984 | (iterate_over_some_symtabs): Adjust to use function_view as | |
14985 | callback type and return bool. | |
14986 | (iterate_over_symtabs): Adjust to use function_view as callback | |
14987 | type. | |
14988 | (symbol_found_callback_ftype): Remove 'data' parameter and return | |
14989 | bool. | |
14990 | (iterate_over_symbols): Adjust to use function_view as callback | |
14991 | type. | |
14992 | ||
07e253aa PA |
14993 | 2017-02-23 Pedro Alves <palves@redhat.com> |
14994 | ||
14995 | * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS): New. | |
14996 | (%.o) <unittests/%.c>: New pattern. | |
14997 | * configure.ac ($development): Add $(SUBDIR_UNITTESTS_OBS) to | |
14998 | CONFIG_OBS, and $(SUBDIR_UNITTESTS_SRCS) to CONFIG_SRCS. | |
14999 | * common/function-view.h: New file. | |
15000 | * unittests/function-view-selftests.c: New file. | |
15001 | * configure: Regenerate. | |
15002 | ||
8eaf5320 SM |
15003 | 2017-02-23 Simon Marchi <simon.marchi@ericsson.com> |
15004 | ||
15005 | * bsd-uthread.c (bsd_uthread_thread_alive): Use ptid instead of | |
15006 | inferior_ptid. | |
15007 | * go32-nat.c (go32_thread_alive): Likewise. | |
15008 | ||
38768751 YQ |
15009 | 2017-02-23 Yao Qi <yao.qi@linaro.org> |
15010 | ||
15011 | * varobj-iter.h (varobj_iter_delete): Call xfree instead of | |
15012 | delete. | |
15013 | ||
0a8beaba YQ |
15014 | 2017-02-23 Yao Qi <yao.qi@linaro.org> |
15015 | ||
15016 | * varobj.c (varobj_clear_saved_item): Use delete instead of | |
15017 | xfree. | |
15018 | (update_dynamic_varobj_children): Likewise. | |
15019 | ||
58fdfd2c JK |
15020 | 2017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com> |
15021 | ||
15022 | * dwarf2read.c (dwarf2_record_block_ranges): Add forgotten BASEADDR. | |
15023 | ||
1b90b139 SM |
15024 | 2017-02-21 Simon Marchi <simon.marchi@ericsson.com> |
15025 | ||
15026 | * common/enum-flags.h (enum_flags::enum_flags): Initialize | |
15027 | m_enum_value to 0 in default constructor. | |
15028 | ||
2039d74e EBM |
15029 | 2017-02-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com> |
15030 | ||
15031 | * rs6000-tdep.c (LOAD_AND_RESERVE_MASK): Rename from LWARX_MASK. | |
15032 | (STORE_CONDITIONAL_MASK): Rename from STWCX_MASK. | |
15033 | (LBARX_INSTRUCTION, LHARX_INSTRUCTION, LQARX_INSTRUCTION, | |
15034 | STBCX_INSTRUCTION, STHCX_INSTRUCTION, STQCX_INSTRUCTION): New defines. | |
15035 | (IS_LOAD_AND_RESERVE_INSN, IS_STORE_CONDITIONAL_INSN): New macros. | |
15036 | (ppc_displaced_step_copy_insn): Use IS_LOAD_AND_RESERVE_INSN. | |
15037 | (ppc_deal_with_atomic_sequence): Use IS_LOAD_AND_RESERVE_INSN and | |
15038 | IS_STORE_CONDITIONAL_INSN. | |
15039 | ||
7814882a JK |
15040 | 2017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com> |
15041 | ||
15042 | * dwarf2_rnglists_process: Initialize range_beginning and range_end. | |
15043 | ||
0ae60b63 JK |
15044 | 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com> |
15045 | ||
15046 | * NEWS (Changes since GDB 7.12): Add DWARF-5. | |
15047 | ||
0224619f JK |
15048 | 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com> |
15049 | ||
15050 | * dwarf2read.c (skip_one_die, read_attribute_value) | |
15051 | (dwarf2_const_value_attr, dump_die_shallow) | |
15052 | (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes) | |
15053 | (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_data16. | |
15054 | ||
0af92d60 JK |
15055 | 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com> |
15056 | ||
15057 | * dwarf2read.c (read_file_scope): Rename DW_MACRO_GNU_*. | |
15058 | (dwarf_parse_macro_header): Accept DWARF version 5. | |
15059 | (dwarf_decode_macro_bytes, dwarf_decode_macros): Rename DW_MACRO_GNU_*. | |
15060 | ||
216f72a1 JK |
15061 | 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com> |
15062 | ||
15063 | * block.c (call_site_for_pc): Rename DW_OP_GNU_*, DW_TAG_GNU_* and | |
15064 | DW_AT_GNU_*. | |
15065 | * common/common-exceptions.h (enum errors): Likewise. | |
15066 | * dwarf2-frame.c (class dwarf_expr_executor): Likewise. | |
15067 | * dwarf2expr.c (dwarf_block_to_dwarf_reg) | |
15068 | (dwarf_expr_context::execute_stack_op): Likewise. | |
15069 | * dwarf2expr.h (struct dwarf_expr_context, struct dwarf_expr_piece): | |
15070 | Likewise. | |
15071 | * dwarf2loc.c (dwarf_evaluate_loc_desc::get_base_type) | |
15072 | (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value) | |
15073 | (show_entry_values_debug, call_site_to_target_addr) | |
15074 | (func_addr_to_tail_call_list, func_verify_no_selftailcall) | |
15075 | (dwarf_expr_reg_to_entry_parameter, dwarf_entry_parameter_to_value) | |
15076 | (entry_data_value_free_closure, value_of_dwarf_reg_entry) | |
15077 | (value_of_dwarf_block_entry, indirect_pieced_value) | |
15078 | (symbol_needs_eval_context::push_dwarf_reg_entry_value): | |
15079 | (disassemble_dwarf_expression): Likewise. | |
15080 | * dwarf2read.c (process_die, inherit_abstract_dies) | |
15081 | (read_call_site_scope): Likewise. | |
15082 | * gdbtypes.h (struct func_type, struct call_site_parameter) | |
15083 | (struct call_site): Likewise. | |
15084 | * stack.c (read_frame_arg): Likewise. | |
15085 | * std-operator.def (OP_VAR_ENTRY_VALUE): Likewise. | |
15086 | ||
43988095 JK |
15087 | 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com> |
15088 | ||
15089 | * defs.h (read_unsigned_leb128): New declaration. | |
15090 | * dwarf2loc.c (decode_debug_loclists_addresses): New function. | |
15091 | (decode_debug_loc_dwo_addresses): Update DEBUG_LOC_* to DW_LLE_*. | |
15092 | (dwarf2_find_location_expression): Call also | |
15093 | decode_debug_loclists_addresses. Handle DWARF-5 ULEB128 length. | |
15094 | * dwarf2loc.h (dwarf2_version): New declaration. | |
15095 | * dwarf2read.c (struct dwarf2_per_objfile): Add loclists, line_str, | |
15096 | rnglists. | |
15097 | (dwarf2_elf_names): Add .debug_loclists, .debug_line_str, | |
15098 | .debug_rnglists. | |
15099 | (struct dwop_section_names): Add loclists_dwo. | |
15100 | (dwop_section_names): Add .debug_loclists.dwo. | |
15101 | (struct comp_unit_head): Add unit_type, signature, type_offset_in_tu. | |
15102 | (struct dwarf2_per_cu_data): Add dwarf_version. | |
15103 | (struct dwo_sections): Add loclists. | |
15104 | (struct attr_abbrev): Add implicit_const. | |
15105 | (read_indirect_line_string): New declaration. | |
15106 | (read_unsigned_leb128): Delete declaration. | |
15107 | (rcuh_kind): New definition. | |
15108 | (read_and_check_comp_unit_head): Change parameter | |
15109 | is_debug_types_section to section_kind. | |
15110 | (dwarf2_locate_sections): Handle loclists, line_str and rnglists. | |
15111 | (read_comp_unit_head): Change parameter abfd to section, add parameter | |
15112 | section_kind. Handle DWARF-5. | |
15113 | (error_check_comp_unit_head): Accept also DWARF version 5. | |
15114 | (read_and_check_comp_unit_head): Change parameter | |
15115 | is_debug_types_section to section_kind. | |
15116 | (read_and_check_type_unit_head): Delete function. | |
15117 | (read_abbrev_offset): Handle DWARF-5. | |
15118 | (create_debug_type_hash_table): Add parameter section_kind. Process | |
15119 | only DW_UT_type. Use signature and type_offset_in_tu from struct | |
15120 | comp_unit_head. | |
15121 | (create_debug_types_hash_table): Update create_debug_type_hash_table | |
15122 | caller. | |
15123 | (create_all_type_units): Call create_debug_type_hash_table. | |
15124 | (read_cutu_die_from_dwo, init_cutu_and_read_dies): Change | |
15125 | read_and_check_type_unit_head caller to read_and_check_comp_unit_head | |
15126 | caller. | |
15127 | (skip_one_die): Handle DW_FORM_implicit_const. | |
15128 | (dwarf2_rnglists_process): New function. | |
15129 | (dwarf2_ranges_process): Call dwarf2_rnglists_process for DWARF-5. | |
15130 | (abbrev_table_read_table): Handle DW_FORM_implicit_const. | |
15131 | (read_attribute_value): Handle DW_FORM_implicit_const, | |
15132 | DW_FORM_line_strp. | |
15133 | (read_attribute): Handle DW_FORM_implicit_const. | |
15134 | (read_indirect_string_at_offset_from): New function from | |
15135 | read_indirect_string_at_offset. | |
15136 | (read_indirect_string_at_offset): Call | |
15137 | read_indirect_string_at_offset_from. | |
15138 | (read_indirect_line_string_at_offset): New function. | |
15139 | (read_indirect_string): New function comment. | |
15140 | (read_indirect_line_string): New function. | |
15141 | (read_unsigned_leb128): Make it global. | |
15142 | (dwarf2_string_attr): Handle DWARF-5. | |
15143 | (add_include_dir_stub, read_formatted_entries): New functions. | |
15144 | (dwarf_decode_line_header, dump_die_shallow, cu_debug_loc_section): | |
15145 | Handle DWARF-5. | |
15146 | (per_cu_header_read_in): Update read_comp_unit_head caller. | |
15147 | (dwarf2_version): New function. | |
15148 | * symfile.h (struct dwarf2_debug_sections): Add loclists, line_str and | |
15149 | rnglists. | |
15150 | * xcoffread.c (dwarf2_xcoff_names): Update struct dwarf2_debug_sections | |
15151 | fields. | |
15152 | ||
22d2f3ab JK |
15153 | 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com> |
15154 | ||
15155 | * dwarf2read.c (abbrev_table_read_table): Read the data only once. | |
15156 | ||
5f46c5a5 JK |
15157 | 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com> |
15158 | ||
15159 | * dwarf2read.c (dwarf2_ranges_process): New function from | |
15160 | dwarf2_ranges_read. | |
15161 | (dwarf2_ranges_read, dwarf2_record_block_ranges): Use | |
15162 | dwarf2_ranges_process. | |
15163 | ||
78d4d2c5 JK |
15164 | 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com> |
15165 | ||
15166 | * dwarf2read.c (create_debug_type_hash_table): New function from | |
15167 | create_debug_types_hash_table. | |
15168 | (create_debug_types_hash_table): Call create_debug_type_hash_table. | |
15169 | (create_all_type_units, open_and_init_dwo_file): Update | |
15170 | create_debug_types_hash_table callers. | |
15171 | ||
1b076f25 SDJ |
15172 | 2017-02-20 Sergio Durigan Junior <sergiodj@redhat.com> |
15173 | ||
15174 | PR gdb/16188 | |
15175 | * fork-child.c (trace_start_error): Fix thinko. va_end should | |
15176 | refer to 'ap', not 'args'. | |
15177 | ||
0db8980c SDJ |
15178 | 2017-02-20 Sergio Durigan Junior <sergiodj@redhat.com> |
15179 | Pedro Alves <palves@redhat.com> | |
15180 | ||
15181 | PR gdb/16188 | |
15182 | * darwin-nat.c (darwin_ptrace_me): Check if calls to system | |
15183 | calls succeeded. | |
15184 | * fork-child.c (trace_start_error): New function. | |
15185 | (trace_start_error_with_name): Likewise. | |
15186 | * gnu-nat.c (gnu_ptrace_me): Check if call to PTRACE succeeded. | |
15187 | * inf-ptrace.c (inf_ptrace_me): Likewise. | |
15188 | * inferior.h (trace_start_error): New prototype. | |
15189 | (trace_start_error_with_name): Likewise. | |
15190 | ||
99e8a4f9 SDJ |
15191 | 2017-02-15 Sergio Durigan Junior <sergiodj@redhat.com> |
15192 | ||
15193 | PR gdb/21164 | |
15194 | * psymtab.c (maintenance_print_psymbols): Verify if 'argv' is not | |
15195 | NULL before using it. | |
15196 | * symmisc.c (maintenance_print_symbols): Likewise. | |
15197 | (maintenance_print_msymbols): Likewise. | |
15198 | ||
4e746bb6 TW |
15199 | 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com> |
15200 | ||
15201 | * NEWS: Add record Python bindings entry. | |
15202 | ||
15203 | 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com> | |
15204 | ||
15205 | * Makefile.in (SUBDIR_PYTHON_OBS): Add py-record-btrace.o, | |
15206 | py-record-full.o. | |
15207 | (SUBDIR_PYTHON_SRCS): Add py-record-btrace.c, py-record-full.c. | |
15208 | * python/py-record-btrace.c, python/py-record-btrace.h, | |
15209 | python/py-record-full.c, python/py-record-full.h: New file. | |
15210 | * python/py-record.c: Add include for py-record-btrace.h and | |
15211 | py-record-full.h. | |
15212 | (recpy_method, recpy_format, recpy_goto, recpy_replay_position, | |
15213 | recpy_instruction_history, recpy_function_call_history, recpy_begin, | |
15214 | recpy_end): Use functions from py-record-btrace.c and py-record-full.c. | |
15215 | * python/python-internal.h (PyInt_FromSsize_t, PyInt_AsSsize_t): | |
15216 | New definition. | |
15217 | (gdbpy_initialize_btrace): New export. | |
15218 | * python/python.c (_initialize_python): Add gdbpy_initialize_btrace. | |
15219 | ||
15220 | 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com> | |
15221 | ||
15222 | * Makefile.in (SUBDIR_PYTHON_OBS): Add python/py-record.o. | |
15223 | (SUBDIR_PYTHON_SRCS): Add python/py-record.c. | |
15224 | * python/py-record.c: New file. | |
15225 | * python/python-internal.h (gdbpy_start_recording, | |
15226 | gdbpy_current_recording, gdpy_stop_recording, | |
15227 | gdbpy_initialize_record): New export. | |
15228 | * python/python.c (_initialize_python): Add gdbpy_initialize_record. | |
15229 | (python_GdbMethods): Add gdbpy_start_recording, | |
15230 | gdbpy_current_recording and gdbpy_stop_recording. | |
15231 | ||
15232 | 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com> | |
15233 | ||
15234 | * record-btrace.c (record_btrace_record_method): New function. | |
15235 | (init_record_btrace_ops): Initialize to_record_method. | |
15236 | * record-full.c (record_full_record_method): New function. | |
15237 | (init_record_full_ops, init_record_full_core_ops): Add | |
15238 | record_full_record_method. | |
15239 | * record.h (enum record_method): New enum. | |
15240 | * target-debug.h (target_debug_print_enum_record_method: New define. | |
15241 | * target-delegates.c: Regenerate. | |
15242 | * target.c (target_record_method): New function. | |
15243 | * target.h: Include record.h. | |
15244 | (struct target_ops) <to_record_method>: New field. | |
15245 | (target_record_method): New export. | |
15246 | ||
15247 | 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com> | |
15248 | ||
15249 | * record.h (record_start, record_stop): New export. | |
15250 | * record.c (record_start, record_stop): New function. | |
15251 | ||
15252 | 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com> | |
15253 | ||
15254 | * btrace.c (btrace_fetch): Copy function call segments pointer | |
15255 | into a vector. | |
15256 | (btrace_clear): Clear the vector. | |
15257 | (btrace_find_insn_by_number): Use binary search to find the correct | |
15258 | function call segment. | |
15259 | * btrace.h (brace_fun_p): New typedef. | |
15260 | (struct btrace_thread_info) <functions>: New field. | |
15261 | ||
15262 | 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com> | |
15263 | ||
15264 | * record-btrace.c (btrace_ui_out_decode_error): Move most of it ... | |
15265 | * btrace.c (btrace_decode_error): ... here. New function. | |
15266 | * btrace.h (btrace_decode_error): New export. | |
15267 | ||
15268 | 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com> | |
15269 | ||
15270 | * btrace.c (ftrace_call_num_insn, btrace_insn_get_error): New function. | |
15271 | (ftrace_new_function, btrace_insn_number, btrace_insn_cmp, | |
15272 | btrace_find_insn_by_number): Remove special case for gaps. | |
15273 | * btrace.h (btrace_insn_get_error): New export. | |
15274 | (btrace_insn_number, btrace_find_insn_by_number): Adjust comment. | |
15275 | * record-btrace.c (btrace_insn_history): Print number for gaps. | |
15276 | (record_btrace_info, record_btrace_goto): Handle gaps. | |
15277 | ||
3f77c769 TT |
15278 | 2017-02-14 Tom Tromey <tom@tromey.com> |
15279 | ||
15280 | PR python/13598: | |
15281 | * python/python.c (gdbpy_before_prompt_hook): Emit before_prompt | |
15282 | event. | |
15283 | * python/py-evts.c (gdbpy_initialize_py_events): Add | |
15284 | before_prompt registry. | |
15285 | * python/py-events.h (events_object) <before_prompt>: New field. | |
15286 | ||
4c2c7ac6 MM |
15287 | 2017-02-14 Markus Metzger <markus.t.metzger@intel.com> |
15288 | ||
15289 | * btrace.c (ftrace_new_switch): Preserve up link and flags. | |
15290 | ||
5cf30ebf LM |
15291 | 2017-02-13 Luis Machado <lgustavo@codesourcery.com> |
15292 | ||
15293 | * symfile (_initialize_symfile): Add usage text to the load command's | |
15294 | help text. | |
15295 | ||
26a06916 SM |
15296 | 2017-02-10 Simon Marchi <simon.marchi@ericsson.com> |
15297 | ||
15298 | * utils.c (defaulted_query): Don't query on secondary UIs. | |
15299 | ||
0b145e37 TT |
15300 | 2017-02-10 Tom Tromey <tom@tromey.com> |
15301 | ||
15302 | * rust-lang.c (rust_get_disr_info): Remove unused variable. | |
15303 | ||
2d8365c4 TT |
15304 | 2017-02-10 Tom Tromey <tom@tromey.com> |
15305 | ||
15306 | * python/py-value.c (valpy_richcompare_throw): Remove unnecessary | |
15307 | "cleanup" local. | |
15308 | * python/py-type.c (typy_legacy_template_argument): Remove | |
15309 | unnecessary "cleanup" local. | |
15310 | ||
2bb8f231 TT |
15311 | 2017-02-10 Tom Tromey <tom@tromey.com> |
15312 | ||
15313 | * python/python.c (do_start_initialization): New function, from | |
15314 | _initialize_python. | |
15315 | (_initialize_python): Call do_start_initialization. | |
15316 | * python/py-linetable.c (ltpy_iternext): Use explicit returns, not | |
15317 | goto. | |
15318 | ||
1bdfaf42 TT |
15319 | 2017-02-10 Tom Tromey <tom@tromey.com> |
15320 | ||
15321 | * python/py-prettyprint.c (pretty_print_one_value): Use | |
15322 | gdbpy_ref. | |
15323 | ||
88b6faea TT |
15324 | 2017-02-10 Tom Tromey <tom@tromey.com> |
15325 | ||
15326 | * python/py-cmd.c (cmdpy_destroyer): Use gdbpy_ref. | |
15327 | * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Use | |
15328 | gdbpy_ref. | |
15329 | * python/py-type.c (field_new): Use gdbpy_ref. | |
15330 | * python/py-symtab.c (symtab_and_line_to_sal_object): Use | |
15331 | gdbpy_ref. | |
15332 | * python/py-progspace.c (pspy_new): Use gdbpy_ref. | |
15333 | (py_free_pspace): Likewise. | |
15334 | (pspace_to_pspace_object): Likewise. | |
15335 | * python/py-objfile.c (objfpy_new): Use gdbpy_ref. | |
15336 | (py_free_objfile): Likewise. | |
15337 | (objfile_to_objfile_object): Likewise. | |
15338 | * python/py-inferior.c (delete_thread_object): Use | |
15339 | gdbpy_ref. | |
15340 | (infpy_read_memory): Likewise. | |
15341 | (py_free_inferior): Likewise. | |
15342 | * python/py-evtregistry.c (create_eventregistry_object): Use | |
15343 | gdbpy_ref. | |
15344 | * python/py-event.c (create_event_object): Use gdbpy_ref. | |
15345 | ||
7780f186 TT |
15346 | 2017-02-10 Tom Tromey <tom@tromey.com> |
15347 | ||
15348 | * python/py-ref.h (gdbpy_ref_policy): Now a template. | |
15349 | (gdbpy_ref): Now a template; allow subclasses of PyObject to be | |
15350 | used. | |
15351 | * python/py-arch.c, python/py-bpevent.c, python/py-breakpoint.c, | |
15352 | python/py-cmd.c, python/py-continueevent.c, python/py-event.c, | |
15353 | python/py-exitedevent.c, python/py-finishbreakpoint.c, | |
15354 | python/py-framefilter.c, python/py-function.c, | |
15355 | python/py-inferior.c, python/py-infevents.c, | |
15356 | python/py-linetable.c, python/py-newobjfileevent.c, | |
15357 | python/py-param.c, python/py-prettyprint.c, python/py-ref.h, | |
15358 | python/py-signalevent.c, python/py-stopevent.c, | |
15359 | python/py-symbol.c, python/py-threadevent.c, python/py-type.c, | |
15360 | python/py-unwind.c, python/py-utils.c, python/py-value.c, | |
15361 | python/py-varobj.c, python/py-xmethods.c, python/python.c, | |
15362 | varobj.c: Change gdbpy_ref to gdbpy_ref<>. | |
15363 | ||
d4b0bb18 TT |
15364 | 2017-02-10 Tom Tromey <tom@tromey.com> |
15365 | ||
15366 | * ui-out.h (ui_out_emit_type): New class. | |
15367 | (ui_out_emit_tuple, ui_out_emit_list): New typedefs. | |
15368 | * python/py-framefilter.c (py_print_single_arg): Use gdb::optional | |
15369 | and ui_out_emit_tuple. | |
15370 | (enumerate_locals): Likewise. | |
15371 | (py_mi_print_variables, py_print_locals, py_print_args): Use | |
15372 | ui_out_emit_list. | |
15373 | (py_print_frame): Use gdb::optional, ui_out_emit_tuple, | |
15374 | ui_out_emit_list. | |
15375 | * common/gdb_optional.h: New file. | |
15376 | ||
f67f945c MG |
15377 | 2017-02-10 Martin Galvan <martingalvan@sourceware.org> |
15378 | ||
15379 | * MAINTAINERS (Write After Approval): Update my e-mail address. | |
15380 | ||
18da0c51 MG |
15381 | 2017-02-10 Martin Galvan <martingalvan@sourceware.org> |
15382 | ||
15383 | PR gdb/21122 | |
15384 | * breakpoint.c (_initialize_breakpoint): Update the help description | |
15385 | of the 'commands' command to indicate that it takes a list argument. | |
15386 | ||
62c14536 SM |
15387 | 2017-02-09 Simon Marchi <simon.marchi@ericsson.com> |
15388 | ||
15389 | * interps.c (current_interp_set_logging): Remove "return". | |
15390 | ||
ff6fa247 GB |
15391 | 2017-02-09 Gary Benson <gbenson@redhat.com> |
15392 | ||
15393 | * symtab.c (add_symtab_completions): Prevent NULL pointer | |
15394 | dereference. | |
15395 | ||
a474bd8e PA |
15396 | 2017-02-08 Pedro Alves <palves@redhat.com> |
15397 | ||
15398 | * interps.c (interp::interp): Remove reference to quiet_p. | |
15399 | (interp_set): Make static. Remove dead "Switching to" output | |
15400 | code. | |
15401 | (interp_quiet_p, interp_set_quiet): Delete. | |
15402 | (interpreter_exec_cmd): Don't set the interpreter quiet. | |
15403 | * interps.h (interp_quiet_p): Make static. | |
15404 | (class interp) <quiet_p>: Remove field | |
15405 | ||
3d7b173c JG |
15406 | 2017-02-08 Jerome Guitton <guitton@adacore.com> |
15407 | ||
604c4576 JG |
15408 | * cli/cli-decode.c (find_command_name_length): Make it extern. |
15409 | * cli/cli-decode.h (find_command_name_length): Declare. | |
15410 | * cli/cli-script.c (command_name_equals, line_first_arg): | |
15411 | New functions. | |
15412 | (process_next_line): Use cli-decode to parse command names. | |
15413 | (build_command_line): Make args a constant pointer. | |
15414 | ||
15415 | 2017-02-08 Jerome Guitton <guitton@adacore.com> | |
6dbb839a | 15416 | |
3d7b173c JG |
15417 | * cli-decode.c (lookup_cmd_1, lookup_cmd_composition): |
15418 | Remove case-insensitive search. | |
15419 | ||
1291063d JM |
15420 | 2017-02-07 Jose E. Marchesi <jose.marchesi@oracle.com> |
15421 | ||
15422 | * sparc-tdep.c (sparc32_gdbarch_init): Do not place a + operator | |
15423 | at the end of the line. Avoids an ARI warning. | |
15424 | ||
20b477a7 LM |
15425 | 2017-02-06 Luis Machado <lgustavo@codesourcery.com> |
15426 | ||
15427 | * NEWS: Mention support for record/replay of Intel 64 rdrand and | |
15428 | rdseed instructions. | |
15429 | i386-tdep.c (i386_process_record): Handle Intel 64 rdrand and rseed. | |
15430 | ||
3f7b46f2 IR |
15431 | 2017-02-06 Ivo Raisr <ivo.raisr@oracle.com> |
15432 | ||
15433 | PR tdep/20936 | |
15434 | Provide and use sparc32 and sparc64 target description XML files. | |
15435 | * features/sparc/sparc32-cp0.xml, features/sparc/sparc32-cpu.xml, | |
15436 | features/sparc/sparc32-fpu.xml: New files for sparc 32-bit. | |
15437 | * features/sparc/sparc64-cp0.xml, features/sparc/sparc64-cpu.xml, | |
15438 | features/sparc/sparc64-fpu.xml: New files for sparc 64-bit. | |
15439 | * features/sparc/sparc32-solaris.xml: New file. | |
15440 | * features/sparc/sparc64-solaris.xml: New file. | |
15441 | * features/sparc/sparc32-solaris.c: Generated. | |
15442 | * features/sparc/sparc64-solaris.c: Generated. | |
15443 | * sparc-tdep.h: Account for differences in target descriptions. | |
15444 | * sparc-tdep.c (sparc32_register_name): Use target provided registers. | |
15445 | (sparc32_register_type): Use target provided registers. | |
15446 | (validate_tdesc_registers): New function. | |
15447 | (sparc32_gdbarch_init): Use tdesc_has_registers. | |
15448 | Set pseudoregister functions. | |
15449 | * sparc64-tdep.c (sparc64_register_name): Use target provided registers. | |
15450 | (sparc64_register_type): Use target provided registers. | |
15451 | (sparc64_init_abi): Set pseudoregister functions. | |
15452 | ||
f0fd41c1 TT |
15453 | 2017-02-03 Tom Tromey <tom@tromey.com> |
15454 | ||
15455 | PR rust/21097: | |
15456 | * rust-lang.c (rust_print_type) <TYPE_CODE_UNION>: Handle enums | |
15457 | with a single member. | |
15458 | ||
d6f9b0fb PA |
15459 | 2017-02-03 Pedro Alves <palves@redhat.com> |
15460 | ||
15461 | * cli/cli-interp.c (cli_interp_base::cli_interp_base) | |
15462 | (cli_interp_base::~cli_interp_base): New. | |
15463 | (cli_interp): New struct. | |
15464 | (as_cli_interp): Cast the interp itself to cli_interp. | |
15465 | (cli_interpreter_pre_command_loop): Rename to ... | |
15466 | (cli_interp_base::pre_command_loop): ... this. Remove 'self' | |
15467 | parameter. | |
15468 | (cli_interpreter_init): Rename to ... | |
15469 | (cli_interp::init): ... this. Remove 'self' parameter. Use | |
15470 | boolean. Make extern. | |
15471 | (cli_interpreter_resume): Rename to ... | |
15472 | (cli_interp::resume): ... this. Remove 'data' parameter. Make | |
15473 | extern. | |
15474 | (cli_interpreter_suspend): Rename to ... | |
15475 | (cli_interp::suspend): ... this. Remove 'data' parameter. Make | |
15476 | extern. | |
15477 | (cli_interpreter_exec): Rename to ... | |
15478 | (cli_interp::exec): ... this. Remove 'data' parameter. Make | |
15479 | extern. | |
15480 | (cli_interpreter_supports_command_editing): Rename to ... | |
15481 | (cli_interp_base::supports_command_editing): ... this. Remove | |
15482 | 'interp' parameter. Make extern. | |
15483 | (cli_ui_out): Rename to ... | |
15484 | (cli_interp::interp_ui_out): ... this. Remove 'interp' parameter. | |
15485 | Make extern. | |
15486 | (cli_set_logging): Rename to ... | |
15487 | (cli_interp_base::set_logging): ... this. Remove 'interp' | |
15488 | parameter. Make extern. | |
15489 | (cli_interp_procs): Delete. | |
15490 | (cli_interp_factory): Adjust to use "new". | |
15491 | * cli/cli-interp.h: Include "interps.h". | |
15492 | (struct cli_interp_base): New struct. | |
15493 | * interps.c (struct interp): Delete. Fields moved to interps.h. | |
15494 | (interp_new): Delete. | |
15495 | (interp::interp, interp::~interp): New. | |
15496 | (interp_set): Use bool, and return void. Assume the interpreter | |
15497 | has suspend, init and resume methods, and that the all return | |
15498 | void. | |
15499 | (set_top_level_interpreter): interp_set returns void. | |
15500 | (interp_ui_out): Adapt. | |
15501 | (current_interp_set_logging): Adapt. | |
15502 | (interp_data): Delete. | |
15503 | (interp_pre_command_loop, interp_supports_command_editing): Adapt. | |
15504 | (interp_exec): Adapt. | |
15505 | (top_level_interpreter_data): Delete. | |
15506 | * interps.h (interp_init_ftype, interp_resume_ftype) | |
15507 | (interp_suspend_ftype, interp_exec_ftype) | |
15508 | (interp_pre_command_loop_ftype, interp_ui_out_ftype): Delete. | |
15509 | (class interp): New. | |
15510 | (interp_new): Delete. | |
15511 | (interp_set): Now returns void. Use bool. | |
15512 | (interp_data, top_level_interpreter_data): Delete. | |
15513 | * mi/mi-common.h: Include interps.h. | |
15514 | (class mi_interp): Inherit from interp. Define a ctor. Declare | |
15515 | init, resume, suspect, exec, interp_ui_out, set_logging and | |
15516 | pre_command_loop methods. | |
15517 | * mi/mi-interp.c (as_mi_interp): Cast the interp itself. | |
15518 | (mi_interpreter_init): Rename to ... | |
15519 | (mi_interp::init): ... this. Remove the 'interp' parameter, use | |
15520 | bool, return void and make extern. Adjust. | |
15521 | (mi_interpreter_resume): ... Rename to ... | |
15522 | (mi_interp::resume): ... this. Remove the 'data' parameter, | |
15523 | return void and make extern. Adjust. | |
15524 | (mi_interpreter_suspend): ... Rename to ... | |
15525 | (mi_interp::suspend): ... this. Remove the 'data' parameter, | |
15526 | return void and make extern. Adjust. | |
15527 | (mi_interpreter_exec): ... Rename to ... | |
15528 | (mi_interp::exec): ... this. Remove the 'data' parameter and make | |
15529 | extern. Adjust. | |
15530 | (mi_interpreter_pre_command_loop): ... Rename to ... | |
15531 | (mi_interp::pre_command_loop): ... this. Remove the 'self' | |
15532 | parameter and make extern. | |
15533 | (mi_on_normal_stop_1): Adjust. | |
15534 | (mi_ui_out): Rename to ... | |
15535 | (mi_interp::interp_ui_out): ... this. Remove the 'interp' | |
15536 | parameter and make extern. Adjust. | |
15537 | (mi_set_logging): Rename to ... | |
15538 | (mi_interp::set_logging): ... this. Remove the 'interp' | |
15539 | parameter and make extern. Adjust. | |
15540 | (mi_interp_procs): Delete. | |
15541 | (mi_interp_factory): Adjust to use 'new'. | |
15542 | * mi/mi-main.c (mi_cmd_gdb_exit, captured_mi_execute_command) | |
15543 | (mi_print_exception, mi_execute_command, mi_load_progress): | |
15544 | Adjust. | |
15545 | * tui/tui-interp.c (tui_interp): New class. | |
15546 | (as_tui_interp): Return a tui_interp pointer. | |
15547 | (tui_on_normal_stop, tui_on_signal_received) | |
15548 | (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited) | |
15549 | (tui_on_no_history, tui_on_user_selected_context_changed): Adjust | |
15550 | to use interp::interp_ui_out. | |
15551 | (tui_init): Rename to ... | |
15552 | (tui_interp::init): ... this. Remove the 'self' parameter, use | |
15553 | bool, return void and make extern. Adjust. | |
15554 | (tui_resume): Rename to ... | |
15555 | (tui_interp::resume): ... this. Remove the 'data' parameter, | |
15556 | return void and make extern. Adjust. | |
15557 | (tui_suspend): Rename to ... | |
15558 | (tui_interp::suspend): ... this. Remove the 'data' parameter, | |
15559 | return void and make extern. Adjust. | |
15560 | (tui_ui_out): Rename to ... | |
15561 | (tui_interp::interp_ui_out): ... this. Remove the 'self' | |
15562 | parameter, and make extern. Adjust. | |
15563 | (tui_exec): Rename to ... | |
15564 | (tui_interp::exec): ... this. Remove the 'data' parameter and | |
15565 | make extern. | |
15566 | (tui_interp_procs): Delete. | |
15567 | (tui_interp_factory): Use "new". | |
15568 | ||
65c40c95 TT |
15569 | 2017-02-02 Tom Tromey <tom@tromey.com> |
15570 | ||
15571 | * rust-exp.y (ends_raw_string, space_then_number) | |
15572 | (rust_identifier_start_p): Return bool. | |
15573 | * rust-lang.c (rust_tuple_type_p, rust_underscore_fields) | |
15574 | (rust_tuple_struct_type_p, rust_tuple_variant_type_p) | |
15575 | (rust_slice_type_p, rust_range_type_p, rust_u8_type_p) | |
15576 | (rust_chartype_p): Return bool. | |
15577 | (val_print_struct, rust_print_struct_def, rust_print_type): | |
15578 | Update. | |
15579 | * rust-lang.h (rust_tuple_type_p, rust_tuple_struct_type_p): | |
15580 | Return bool. | |
15581 | ||
b50f188d TT |
15582 | 2017-02-02 Tom Tromey <tom@tromey.com> |
15583 | ||
15584 | * rust-lang.c: Reindent. | |
15585 | ||
03c85b11 TT |
15586 | 2017-02-02 Tom Tromey <tom@tromey.com> |
15587 | ||
15588 | * rust-lang.h (rust_crate_for_block): Update. | |
15589 | * rust-lang.c (rust_crate_for_block): Return std::string. | |
15590 | (rust_get_disr_info): Use std:;string, not | |
15591 | gdb::unique_xmalloc_ptr. | |
15592 | * rust-exp.y (crate_name): Update. | |
15593 | ||
9b6da501 PA |
15594 | 2017-02-02 Pedro Alves <palves@redhat.com> |
15595 | ||
15596 | * disasm-selftests.c (print_one_insn_test): Move the "verbose" | |
15597 | field out of gdb_disassembler_test and make it static. | |
15598 | ||
ec4cb20b PA |
15599 | 2017-02-02 Pedro Alves <palves@redhat.com> |
15600 | ||
15601 | * mi/mi-common.h (struct mi_interp): Delete the mi2_interp, | |
15602 | mi1_interp and mi_interp fields. | |
15603 | ||
5be5dbf0 PA |
15604 | 2017-02-02 Pedro Alves <palves@redhat.com> |
15605 | ||
616268b6 PA |
15606 | * cli/cli-interp.c (struct saved_output_files, saved_output): |
15607 | Moved from cli/cli-logging.c. | |
15608 | (cli_set_logging): New function. | |
15609 | (cli_interp_procs): Install cli_set_logging. | |
15610 | * cli/cli-interp.h (make_logging_output, cli_set_logging): | |
15611 | Declare. | |
15612 | * cli/cli-logging.c (struct saved_output_files, saved_output): | |
15613 | Moved to cli/cli-interp.c. | |
15614 | (pop_output_files): Don't save outputs here. | |
15615 | (make_logging_output): New function. | |
15616 | (handle_redirections): Don't build tee nor save previous outputs | |
15617 | here. | |
15618 | * interps.c (current_interp_set_logging): Change prototype. | |
15619 | Assume there's always a set_logging_proc method installed. | |
15620 | * interps.h (interp_set_logging_ftype): Change prototype. | |
15621 | (current_interp_set_logging): Change prototype and adjust comment. | |
15622 | * mi/mi-interp.c (mi_set_logging): Change protototype. Adjust to | |
15623 | use make_logging_output. | |
15624 | * tui/tui-interp.c (tui_interp_procs): Install cli_set_logging. | |
15625 | 2017-02-02 Pedro Alves <palves@redhat.com> | |
15626 | ||
5be5dbf0 PA |
15627 | * cli/cli-logging.c (maybe_warn_already_logging): New factored out |
15628 | from ... | |
15629 | (set_logging_overwrite): ... here. | |
15630 | (logging_no_redirect_file): Delete. | |
15631 | (set_logging_redirect): Don't handle redirection on the fly. | |
15632 | Instead warn that "logging off" / "logging on" is necessary. | |
15633 | (pop_output_files): Delete references to logging_no_redirect_file. | |
15634 | (show_logging_command): Always speak in terms of what will happen | |
15635 | once logging is reenabled. | |
15636 | ||
c99cc448 PA |
15637 | 2017-02-02 Pedro Alves <palves@redhat.com> |
15638 | ||
15639 | * disasm.h (gdb_pretty_print_disassembler): Tweak intro comment. | |
15640 | ||
8b172ce7 PA |
15641 | 2017-02-02 Pedro Alves <palves@redhat.com> |
15642 | ||
15643 | * disasm.c (gdb_pretty_print_insn): Rename to ... | |
15644 | (gdb_pretty_print_disassembler::pretty_print_insn): ... this. | |
15645 | Remove gdbarch parameter. Adapt to clear the object's buffers | |
15646 | instead of allocating new buffers, and to print using the object's | |
15647 | gdb_disassembler instead of calling gdb_print_insn. | |
15648 | (dump_insns): Use gdb_pretty_print_disassembler. | |
15649 | * disasm.h (gdb_pretty_print_insn): Delete declaration. | |
15650 | (gdb_pretty_print_disassembler): New class. | |
15651 | * record-btrace.c (btrace_insn_history): Use | |
15652 | gdb_pretty_print_disassembler. | |
15653 | ||
d7e74731 PA |
15654 | 2017-02-02 Pedro Alves <palves@redhat.com> |
15655 | ||
15656 | * ada-lang.c (type_as_string): Use string_file. | |
15657 | * ada-valprint.c (ada_print_floating): Use string_file. | |
15658 | * ada-varobj.c (ada_varobj_scalar_image) | |
15659 | (ada_varobj_get_value_image): Use string_file. | |
15660 | * aix-thread.c (aix_thread_extra_thread_info): Use string_file. | |
15661 | * arm-tdep.c (_initialize_arm_tdep): Use string_printf. | |
15662 | * breakpoint.c (update_inserted_breakpoint_locations) | |
15663 | (insert_breakpoint_locations, reattach_breakpoints) | |
15664 | (print_breakpoint_location, print_one_detail_ranged_breakpoint) | |
15665 | (print_it_watchpoint): Use string_file. | |
15666 | (save_breakpoints): Use stdio_file. | |
15667 | * c-exp.y (oper): Use string_file. | |
15668 | * cli/cli-logging.c (set_logging_redirect): Use ui_file_up and | |
15669 | tee_file. | |
15670 | (pop_output_files): Use delete. | |
15671 | (handle_redirections): Use stdio_file and tee_file. | |
15672 | * cli/cli-setshow.c (do_show_command): Use string_file. | |
15673 | * compile/compile-c-support.c (c_compute_program): Use | |
15674 | string_file. | |
15675 | * compile/compile-c-symbols.c (generate_vla_size): Take a | |
15676 | 'string_file &' instead of a 'ui_file *'. | |
15677 | (generate_c_for_for_one_variable): Take a 'string_file &' instead | |
15678 | of a 'ui_file *'. Use string_file. | |
15679 | (generate_c_for_variable_locations): Take a 'string_file &' | |
15680 | instead of a 'ui_file *'. | |
15681 | * compile/compile-internal.h (generate_c_for_for_one_variable): | |
15682 | Take a 'string_file &' instead of a 'ui_file *'. | |
15683 | * compile/compile-loc2c.c (push, pushf, unary, binary) | |
15684 | (print_label, pushf_register_address, pushf_register) | |
15685 | (do_compile_dwarf_expr_to_c): Take a 'string_file &' instead of a | |
15686 | 'ui_file *'. Adjust. | |
15687 | * compile/compile.c (compile_to_object): Use string_file. | |
15688 | * compile/compile.h (compile_dwarf_expr_to_c) | |
15689 | (compile_dwarf_bounds_to_c): Take a 'string_file &' instead of a | |
15690 | 'ui_file *'. | |
15691 | * cp-support.c (inspect_type): Use string_file and obstack_copy0. | |
15692 | (replace_typedefs_qualified_name): Use string_file and | |
15693 | obstack_copy0. | |
15694 | * disasm.c (gdb_pretty_print_insn): Use string_file. | |
15695 | (gdb_disassembly): Adjust reference the null_stream global. | |
15696 | (do_ui_file_delete): Delete. | |
15697 | (gdb_insn_length): Use null_stream. | |
15698 | * dummy-frame.c (maintenance_print_dummy_frames): Use stdio_file. | |
15699 | * dwarf2loc.c (dwarf2_compile_property_to_c) | |
15700 | (locexpr_generate_c_location, loclist_generate_c_location): Take a | |
15701 | 'string_file &' instead of a 'ui_file *'. | |
15702 | * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise. | |
15703 | * dwarf2read.c (do_ui_file_peek_last): Delete. | |
15704 | (dwarf2_compute_name): Use string_file. | |
15705 | * event-top.c (gdb_setup_readline): Use stdio_file. | |
15706 | * gdbarch.sh (verify_gdbarch): Use string_file. | |
15707 | * gdbtypes.c (safe_parse_type): Use null_stream. | |
15708 | * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Use | |
15709 | string_file. | |
15710 | * guile/scm-disasm.c (gdbscm_print_insn_from_port): Take a | |
15711 | 'string_file *' instead of a 'ui_file *'. | |
15712 | (gdbscm_arch_disassemble): Use string_file. | |
15713 | * guile/scm-frame.c (frscm_print_frame_smob): Use string_file. | |
15714 | * guile/scm-ports.c (class ioscm_file_port): Now a class that | |
15715 | inherits from ui_file. | |
15716 | (ioscm_file_port_delete, ioscm_file_port_rewind) | |
15717 | (ioscm_file_port_put): Delete. | |
15718 | (ioscm_file_port_write): Rename to ... | |
15719 | (ioscm_file_port::write): ... this. Remove file_port_magic | |
15720 | checks. | |
15721 | (ioscm_file_port_new): Delete. | |
15722 | (ioscm_with_output_to_port_worker): Use ioscm_file_port and | |
15723 | ui_file_up. | |
15724 | * guile/scm-type.c (tyscm_type_name): Use string_file. | |
15725 | * guile/scm-value.c (vlscm_print_value_smob, gdbscm_value_print): | |
15726 | Use string_file. | |
15727 | * infcmd.c (print_return_value_1): Use string_file. | |
15728 | * infrun.c (print_target_wait_results): Use string_file. | |
15729 | * language.c (add_language): Use string_file. | |
15730 | * location.c (explicit_to_string_internal): Use string_file. | |
15731 | * main.c (captured_main_1): Use null_file. | |
15732 | * maint.c (maintenance_print_architecture): Use stdio_file. | |
15733 | * mi/mi-cmd-stack.c (list_arg_or_local): Use string_file. | |
15734 | * mi/mi-common.h (struct mi_interp) <out, err, log, targ, | |
15735 | event_channel>: Change type to mi_console_file pointer. | |
15736 | * mi/mi-console.c (mi_console_file_fputs, mi_console_file_flush) | |
15737 | (mi_console_file_delete): Delete. | |
15738 | (struct mi_console_file): Delete. | |
15739 | (mi_console_file_magic): Delete. | |
15740 | (mi_console_file_new): Delete. | |
15741 | (mi_console_file::mi_console_file): New. | |
15742 | (mi_console_file_delete): Delete. | |
15743 | (mi_console_file_fputs): Delete. | |
15744 | (mi_console_file::write): New. | |
15745 | (mi_console_raw_packet): Delete. | |
15746 | (mi_console_file::flush): New. | |
15747 | (mi_console_file_flush): Delete. | |
15748 | (mi_console_set_raw): Rename to ... | |
15749 | (mi_console_file::set_raw): ... this. | |
15750 | * mi/mi-console.h (class mi_console_file): New class. | |
15751 | (mi_console_file_new, mi_console_set_raw): Delete. | |
15752 | * mi/mi-interp.c (mi_interpreter_init): Use mi_console_file. | |
15753 | (mi_set_logging): Use delete and tee_file. Adjust. | |
15754 | * mi/mi-main.c (output_register): Use string_file. | |
15755 | (mi_cmd_data_evaluate_expression): Use string_file. | |
15756 | (mi_cmd_data_read_memory): Use string_file. | |
15757 | (mi_cmd_execute, print_variable_or_computed): Use string_file. | |
15758 | * mi/mi-out.c (mi_ui_out::main_stream): New. | |
15759 | (mi_ui_out::rewind): Use main_stream and | |
15760 | string_file. | |
15761 | (mi_ui_out::put): Use main_stream and string_file. | |
15762 | (mi_ui_out::mi_ui_out): Remove 'stream' parameter. | |
15763 | Allocate a 'string_file' instead. | |
15764 | (mi_out_new): Don't allocate a mem_fileopen stream here. | |
15765 | * mi/mi-out.h (mi_ui_out::mi_ui_out): Remove 'stream' parameter. | |
15766 | (mi_ui_out::main_stream): Declare method. | |
15767 | * printcmd.c (eval_command): Use string_file. | |
15768 | * psymtab.c (maintenance_print_psymbols): Use stdio_file. | |
15769 | * python/py-arch.c (archpy_disassemble): Use string_file. | |
15770 | * python/py-breakpoint.c (bppy_get_commands): Use string_file. | |
15771 | * python/py-frame.c (frapy_str): Use string_file. | |
15772 | * python/py-framefilter.c (py_print_type, py_print_single_arg): | |
15773 | Use string_file. | |
15774 | * python/py-type.c (typy_str): Use string_file. | |
15775 | * python/py-unwind.c (unwind_infopy_str): Use string_file. | |
15776 | * python/py-value.c (valpy_str): Use string_file. | |
15777 | * record-btrace.c (btrace_insn_history): Use string_file. | |
15778 | * regcache.c (regcache_print): Use stdio_file. | |
15779 | * reggroups.c (maintenance_print_reggroups): Use stdio_file. | |
15780 | * remote.c (escape_buffer): Use string_file. | |
15781 | * rust-lang.c (rust_get_disr_info): Use string_file. | |
15782 | * serial.c (serial_open_ops_1): Use stdio_file. | |
15783 | (do_serial_close): Use delete. | |
15784 | * stack.c (print_frame_arg): Use string_file. | |
15785 | (print_frame_args): Remove local mem_fileopen stream, not used. | |
15786 | (print_frame): Use string_file. | |
15787 | * symmisc.c (maintenance_print_symbols): Use stdio_file. | |
15788 | * symtab.h (struct symbol_computed_ops) <generate_c_location>: | |
15789 | Take a 'string_file *' instead of a 'ui_file *'. | |
15790 | * top.c (new_ui): Use stdio_file and stderr_file. | |
15791 | (free_ui): Use delete. | |
15792 | (execute_command_to_string): Use string_file. | |
15793 | (quit_confirm): Use string_file. | |
15794 | * tracepoint.c (collection_list::append_exp): Use string_file. | |
15795 | * tui/tui-disasm.c (tui_disassemble): Use string_file. | |
15796 | * tui/tui-file.c: Don't include "ui-file.h". | |
15797 | (enum streamtype, struct tui_stream): Delete. | |
15798 | (tui_file_new, tui_file_delete, tui_fileopen, tui_sfileopen) | |
15799 | (tui_file_isatty, tui_file_rewind, tui_file_put): Delete. | |
15800 | (tui_file::tui_file): New method. | |
15801 | (tui_file_fputs): Delete. | |
15802 | (tui_file_get_strbuf): Delete. | |
15803 | (tui_file::puts): New method. | |
15804 | (tui_file_adjust_strbuf): Delete. | |
15805 | (tui_file_flush): Delete. | |
15806 | (tui_file::flush): New method. | |
15807 | * tui/tui-file.h: Tweak intro comment. | |
15808 | Include ui-file.h. | |
15809 | (tui_fileopen, tui_sfileopen, tui_file_get_strbuf) | |
15810 | (tui_file_adjust_strbuf): Delete declarations. | |
15811 | (class tui_file): New class. | |
15812 | * tui/tui-io.c (tui_initialize_io): Use tui_file. | |
15813 | * tui/tui-regs.c (tui_restore_gdbout): Use delete. | |
15814 | (tui_register_format): Use string_stream. | |
15815 | * tui/tui-stack.c (tui_make_status_line): Use string_file. | |
15816 | (tui_get_function_from_frame): Use string_file. | |
15817 | * typeprint.c (type_to_string): Use string_file. | |
15818 | * ui-file.c (struct ui_file, ui_file_magic, ui_file_new): Delete. | |
15819 | (null_stream): New global. | |
15820 | (ui_file_delete): Delete. | |
15821 | (ui_file::ui_file): New. | |
15822 | (null_file_isatty): Delete. | |
15823 | (ui_file::~ui_file): New. | |
15824 | (null_file_rewind): Delete. | |
15825 | (ui_file::printf): New. | |
15826 | (null_file_put): Delete. | |
15827 | (null_file_flush): Delete. | |
15828 | (ui_file::putstr): New. | |
15829 | (null_file_write): Delete. | |
15830 | (ui_file::putstrn): New. | |
15831 | (null_file_read): Delete. | |
15832 | (ui_file::putc): New. | |
15833 | (null_file_fputs): Delete. | |
15834 | (null_file_write_async_safe): Delete. | |
15835 | (ui_file::vprintf): New. | |
15836 | (null_file_delete): Delete. | |
15837 | (null_file::write): New. | |
15838 | (null_file_fseek): Delete. | |
15839 | (null_file::puts): New. | |
15840 | (ui_file_data): Delete. | |
15841 | (null_file::write_async_safe): New. | |
15842 | (gdb_flush, ui_file_isatty): Adjust. | |
15843 | (ui_file_put, ui_file_rewind): Delete. | |
15844 | (ui_file_write): Adjust. | |
15845 | (ui_file_write_for_put): Delete. | |
15846 | (ui_file_write_async_safe, ui_file_read): Adjust. | |
15847 | (ui_file_fseek): Delete. | |
15848 | (fputs_unfiltered): Adjust. | |
15849 | (set_ui_file_flush, set_ui_file_isatty, set_ui_file_rewind) | |
15850 | (set_ui_file_put, set_ui_file_write, set_ui_file_write_async_safe) | |
15851 | (set_ui_file_read, set_ui_file_fputs, set_ui_file_fseek) | |
15852 | (set_ui_file_data): Delete. | |
15853 | (string_file::~string_file, string_file::write) | |
15854 | (struct accumulated_ui_file, do_ui_file_xstrdup, ui_file_xstrdup) | |
15855 | (do_ui_file_as_string, ui_file_as_string): Delete. | |
15856 | (do_ui_file_obsavestring, ui_file_obsavestring): Delete. | |
15857 | (struct mem_file): Delete. | |
15858 | (mem_file_new): Delete. | |
15859 | (stdio_file::stdio_file): New. | |
15860 | (mem_file_delete): Delete. | |
15861 | (stdio_file::stdio_file): New. | |
15862 | (mem_fileopen): Delete. | |
15863 | (stdio_file::~stdio_file): New. | |
15864 | (mem_file_rewind): Delete. | |
15865 | (stdio_file::set_stream): New. | |
15866 | (mem_file_put): Delete. | |
15867 | (stdio_file::open): New. | |
15868 | (mem_file_write): Delete. | |
15869 | (stdio_file_magic, struct stdio_file): Delete. | |
15870 | (stdio_file_new, stdio_file_delete, stdio_file_flush): Delete. | |
15871 | (stdio_file::flush): New. | |
15872 | (stdio_file_read): Rename to ... | |
15873 | (stdio_file::read): ... this. Adjust. | |
15874 | (stdio_file_write): Rename to ... | |
15875 | (stdio_file::write): ... this. Adjust. | |
15876 | (stdio_file_write_async_safe): Rename to ... | |
15877 | (stdio_file::write_async_safe) ... this. Adjust. | |
15878 | (stdio_file_fputs): Rename to ... | |
15879 | (stdio_file::puts) ... this. Adjust. | |
15880 | (stdio_file_isatty): Delete. | |
15881 | (stdio_file_fseek): Delete. | |
15882 | (stdio_file::isatty): New. | |
15883 | (stderr_file_write): Rename to ... | |
15884 | (stderr_file::write) ... this. Adjust. | |
15885 | (stderr_file_fputs): Rename to ... | |
15886 | (stderr_file::puts) ... this. Adjust. | |
15887 | (stderr_fileopen, stdio_fileopen, gdb_fopen): Delete. | |
15888 | (stderr_file::stderr_file): New. | |
15889 | (tee_file_magic): Delete. | |
15890 | (struct tee_file): Delete. | |
15891 | (tee_file::tee_file): New. | |
15892 | (tee_file_new): Delete. | |
15893 | (tee_file::~tee_file): New. | |
15894 | (tee_file_delete): Delete. | |
15895 | (tee_file_flush): Rename to ... | |
15896 | (tee_file::flush): ... this. Adjust. | |
15897 | (tee_file_write): Rename to ... | |
15898 | (tee_file::write): ... this. Adjust. | |
15899 | (tee_file::write_async_safe): New. | |
15900 | (tee_file_fputs): Rename to ... | |
15901 | (tee_file::puts): ... this. Adjust. | |
15902 | (tee_file_isatty): Rename to ... | |
15903 | (tee_file::isatty): ... this. Adjust. | |
15904 | * ui-file.h (struct obstack, struct ui_file): Don't | |
15905 | forward-declare. | |
15906 | (ui_file_new, ui_file_flush_ftype, set_ui_file_flush) | |
15907 | (ui_file_write_ftype) | |
15908 | (set_ui_file_write, ui_file_fputs_ftype, set_ui_file_fputs) | |
15909 | (ui_file_write_async_safe_ftype, set_ui_file_write_async_safe) | |
15910 | (ui_file_read_ftype, set_ui_file_read, ui_file_isatty_ftype) | |
15911 | (set_ui_file_isatty, ui_file_rewind_ftype, set_ui_file_rewind) | |
15912 | (ui_file_put_method_ftype, ui_file_put_ftype, set_ui_file_put) | |
15913 | (ui_file_delete_ftype, set_ui_file_data, ui_file_fseek_ftype) | |
15914 | (set_ui_file_fseek): Delete. | |
15915 | (ui_file_data, ui_file_delete, ui_file_rewind) | |
15916 | (struct ui_file): New. | |
15917 | (ui_file_up): New. | |
15918 | (class null_file): New. | |
15919 | (null_stream): Declare. | |
15920 | (ui_file_write_for_put, ui_file_put): Delete. | |
15921 | (ui_file_xstrdup, ui_file_as_string, ui_file_obsavestring): | |
15922 | Delete. | |
15923 | (ui_file_fseek, mem_fileopen, stdio_fileopen, stderr_fileopen) | |
15924 | (gdb_fopen, tee_file_new): Delete. | |
15925 | (struct string_file): New. | |
15926 | (struct stdio_file): New. | |
15927 | (stdio_file_up): New. | |
15928 | (struct stderr_file): New. | |
15929 | (class tee_file): New. | |
15930 | * ui-out.c (ui_out::field_stream): Take a 'string_file &' instead | |
15931 | of a 'ui_file *'. Adjust. | |
15932 | * ui-out.h (class ui_out) <field_stream>: Likewise. | |
15933 | * utils.c (do_ui_file_delete, make_cleanup_ui_file_delete) | |
15934 | (null_stream): Delete. | |
15935 | (error_stream): Take a 'string_file &' instead of a 'ui_file *'. | |
15936 | Adjust. | |
15937 | * utils.h (struct ui_file): Delete forward declaration.. | |
15938 | (make_cleanup_ui_file_delete, null_stream): Delete declarations. | |
15939 | (error_stream): Take a 'string_file &' instead of a | |
15940 | 'ui_file *'. | |
15941 | * varobj.c (varobj_value_get_print_value): Use string_file. | |
15942 | * xtensa-tdep.c (xtensa_verify_config): Use string_file. | |
15943 | * gdbarch.c: Regenerate. | |
15944 | ||
187808b0 PA |
15945 | 2017-02-02 Pedro Alves <palves@redhat.com> |
15946 | ||
15947 | * disasm.c (gdb_disassembler::pretty_print_insn): Rename to... | |
15948 | (gdb_pretty_print_insn): ... this. Now a free function. Add back | |
15949 | a 'gdbarch' parameter. Allocate a mem_fileopen stream here. | |
15950 | Adjust to call gdb_print_insn instead of | |
15951 | gdb_disassembler::print_insn. | |
15952 | (dump_insns, do_mixed_source_and_assembly_deprecated) | |
15953 | (do_mixed_source_and_assembly, do_assembly_only): Add back a | |
15954 | 'gdbarch' parameter. Remove gdb_disassembler parameter. | |
15955 | (gdb_disassembly): Don't allocate a gdb_disassembler here. | |
15956 | * disasm.h (gdb_disassembler::pretty_print_insn): Delete | |
15957 | declaration. | |
15958 | (gdb_pretty_print_insn): Re-add declaration. | |
15959 | * record-btrace.c (btrace_insn_history): Don't allocate a | |
15960 | gdb_disassembler here. Adjust to call gdb_pretty_print_insn. | |
15961 | ||
7a8eb317 SM |
15962 | 2017-02-01 Simon Marchi <simon.marchi@polymtl.ca> |
15963 | ||
15964 | * disasm.h (gdb_disassembly): Remove file_string parameter. | |
15965 | * disasm.c (gdb_disassembly): Likewise. | |
15966 | * cli/cli-cmds.c (print_disassembly): Adapt. | |
15967 | * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise. | |
15968 | * stack.c (do_gdb_disassembly): Likewise. | |
15969 | ||
7346ef59 AA |
15970 | 2017-02-01 Andreas Arnez <arnez@linux.vnet.ibm.com> |
15971 | ||
15972 | * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): For | |
15973 | DWARF_VALUE_LITERAL, no longer ignore the offset on big-endian | |
15974 | targets. And if the implicit value is longer than needed, extract | |
15975 | the first bytes instead of the "least significant" ones. | |
15976 | ||
cd4007e4 MM |
15977 | 2017-02-01 Markus Metzger <markus.t.metzger@intel.com> |
15978 | ||
15979 | * btrace.c (btrace_enable): Do not call btrace_add_pc for | |
15980 | BTRACE_FORMAT_PT or if can_access_registers_ptid returns false. | |
15981 | (btrace_fetch): Assert can_access_registers_ptid. | |
15982 | * record-btrace.c (require_btrace_thread, record_btrace_info): Call | |
15983 | validate_registers_access. | |
15984 | ||
cf77c34e MM |
15985 | 2017-02-01 Markus Metzger <markus.t.metzger@intel.com> |
15986 | ||
15987 | * gdbthread.h (can_access_registers_ptid): New. | |
15988 | * thread.c (can_access_registers_ptid): New. | |
15989 | ||
be85ce7d PA |
15990 | 2017-02-01 Pedro Alves <palves@redhat.com> |
15991 | ||
15992 | * i386-tdep.c (i386_fast_tracepoint_valid_at): Use gdb_insn_length. | |
15993 | ||
29b0b251 PA |
15994 | 2017-01-31 Pedro Alves <palves@redhat.com> |
15995 | ||
15996 | * mi/mi-interp.c (mi_breakpoint_created, mi_breakpoint_modified): | |
15997 | Fix typos. | |
15998 | ||
289b5b24 PA |
15999 | 2017-01-31 Pedro Alves <palves@redhat.com> |
16000 | ||
16001 | * stack.c (print_frame_args): Remove local mem_fileopen stream, | |
16002 | not used. | |
16003 | ||
b47413b4 PA |
16004 | 2017-01-31 Pedro Alves <palves@redhat.com> |
16005 | ||
16006 | * varobj.c (varobj_value_get_print_value): Remove xstrdup call. | |
16007 | ||
60adb36c PA |
16008 | 2017-01-31 Pedro Alves <palves@redhat.com> |
16009 | ||
16010 | * common/scoped_restore.h | |
16011 | (scoped_restore_tmpl::scoped_restore_tmpl): Template on T2, and | |
16012 | change the value's parameter type to T2. | |
16013 | (make_scoped_restore): Likewise. | |
16014 | ||
2735833d WT |
16015 | 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com> |
16016 | Richard Henderson <rth@redhat.com> | |
16017 | ||
16018 | * amd64-linux-nat.c (PTRACE_ARCH_PRCTL): New define. | |
16019 | (amd64_linux_fetch_inferior_registers): Add case to fetch FS_BASE | |
16020 | GS_BASE for older kernels. | |
16021 | (amd64_linux_store_inferior_registers): Add case to store FS_BASE | |
16022 | GS_BASE for older kernels. | |
16023 | * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Add FS_BASE | |
16024 | and GS_BASE to the offset table. | |
16025 | (amd64_linux_register_reggroup_p): Add FS_BASE and GS_BASE to the | |
16026 | system register group. | |
16027 | * amd64-nat.c (amd64_native_gregset_reg_offset): Implements case | |
16028 | for older kernels. | |
16029 | * amd64-tdep.c (amd64_init_abi): Add segment registers for the | |
16030 | amd64 ABI. | |
16031 | * amd64-tdep.h (amd64_regnum): Add AMD64_FSBASE_REGNUM and | |
16032 | AMD64_GSBASE_REGNUM. | |
16033 | (AMD64_NUM_REGS): Set to AMD64_GSBASE_REGNUM + 1. | |
16034 | * features/Makefile (amd64-linux.dat, amd64-avx-linux.dat) | |
16035 | (amd64-mpx-linux.dat, amd64-avx512-linux.dat, x32-linux.dat) | |
16036 | (x32-avx-linux.dat, x32-avx512-linux.dat): Add | |
16037 | i386/64bit-segments.xml in those rules. | |
16038 | * features/i386/64bit-segments.xml: New file. | |
16039 | * features/i386/amd64-avx-mpx-linux.xml: Add 64bit-segments.xml. | |
16040 | * features/i386/amd64-avx-linux.xml: Add 64bit-segments.xml. | |
16041 | * features/i386/amd64-avx512-linux.xml: Add 64bit-segments.xml. | |
16042 | * features/i386/amd64-mpx-linux.xml: Add 64bit-segments.xml. | |
16043 | * features/i386/x32-avx512-linux.xml: Add 64bit-segments.xml. | |
16044 | * features/i386/x32-avx-linux.xml: Add 64bit-segments.xml. | |
16045 | * features/i386/amd64-linux.xml: Add 64bit-segments.xml. | |
16046 | * features/i386/amd64-avx-linux.c: Regenerated. | |
16047 | * features/i386/amd64-avx-mpx-linux.c: Regenerated. | |
16048 | * features/i386/amd64-avx-mpx.c: Regenerated. | |
16049 | * features/i386/amd64-avx512-linux.c: Regenerated. | |
16050 | * features/i386/amd64-linux.c: Regenerated. | |
16051 | * features/i386/amd64-mpx-linux.c: Regenerated. | |
16052 | * features/i386/i386-avx-mpx-linux.c: Regenerated. | |
16053 | * features/i386/i386-avx-mpx.c: Regenerated. | |
16054 | * features/i386/x32-avx-linux.c: Regenerated. | |
16055 | * features/i386/x32-avx512-linux.c: Regenerated. | |
16056 | * regformats/i386/amd64-avx-linux.dat: Regenerated. | |
16057 | * regformats/i386/amd64-avx-mpx-linux.dat: Regenerated. | |
16058 | * regformats/i386/amd64-avx512-linux.dat: Regenerated. | |
16059 | * regformats/i386/amd64-linux.dat: Regenerated. | |
16060 | * regformats/i386/amd64-mpx-linux.dat: Regenerated. | |
16061 | * regformats/i386/x32-avx-linux.dat: Regenerated. | |
16062 | * regformats/i386/x32-avx512-linux.dat: Regenerated. | |
16063 | * regformats/i386/x32-linux.dat: Regenerated. | |
16064 | ||
8884e97e WT |
16065 | 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com> |
16066 | ||
16067 | * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): | |
16068 | Set to AMD64_NUM_REGS. | |
16069 | ||
7005d26a WT |
16070 | 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com> |
16071 | ||
16072 | * amd64-nat.c (amd64_native_gregset_reg_offset): Simplify logic | |
16073 | that checks validity of a register number. | |
16074 | ||
4bd2e1b2 KC |
16075 | 2017-01-27 Kees Cook <keescook@google.com> |
16076 | ||
16077 | * gdb/arm-linux-nat.c (arm_linux_fetch_inferior_registers): Call | |
16078 | fetch_fpregs if target has fpa registers. | |
16079 | (arm_linux_store_inferior_registers): Call store_fpregs if target | |
16080 | has fpa registers. | |
16081 | ||
7cf1de6c AA |
16082 | 2017-01-26 Andreas Arnez <arnez@linux.vnet.ibm.com> |
16083 | ||
16084 | * cris-tdep.c (cris_gdbarch_init): Remove check for | |
16085 | info.byte_order and force it to BFD_ENDIAN_LITTLE. | |
16086 | ||
874a1c8c AT |
16087 | 2017-01-26 Antoine Tremblay <antoine.tremblay@ericsson.com> |
16088 | ||
16089 | * corelow.c (get_core_register_section): Check for regset | |
16090 | existence before checking for REGSET_VARIABLE_SIZE. | |
16091 | ||
d8b49cf0 YQ |
16092 | 2017-01-26 Yao Qi <yao.qi@linaro.org> |
16093 | Pedro Alves <palves@redhat.com> | |
16094 | ||
16095 | PR gdb/20939 | |
16096 | * disasm.c (gdb_disassembler::dis_asm_memory_error): Don't | |
16097 | call memory_error, save memaddr instead. | |
16098 | (gdb_disassembler::print_insn): If gdbarch_print_insn returns | |
16099 | negative, cal memory_error. | |
16100 | * disasm.h (gdb_disassembler) <m_err_memaddr>: New field. | |
16101 | ||
658ca58c YQ |
16102 | 2017-01-26 Yao Qi <yao.qi@linaro.org> |
16103 | ||
16104 | * disasm-selftests.c (memory_error_test): New function. | |
16105 | (_initialize_disasm_selftests): Register memory_error_test. | |
16106 | ||
79843d45 YQ |
16107 | 2017-01-26 Yao Qi <yao.qi@linaro.org> |
16108 | ||
16109 | * Makefile.in (SFILES): Add disasm-selftests.c and | |
16110 | selftest-arch.c. | |
16111 | (COMMON_OBS): Add disasm-selftests.o and selftest-arch.o. | |
16112 | * disasm-selftests.c: New file. | |
16113 | * selftest-arch.c: New file. | |
16114 | * selftest-arch.h: New file. | |
16115 | ||
8cafda32 YQ |
16116 | 2017-01-26 Yao Qi <yao.qi@linaro.org> |
16117 | ||
16118 | * mep-tdep.c (mep_gdb_print_insn): Set info->arch | |
16119 | to bfd_arch_mep. Don't return 0 if section is not | |
16120 | found. Call print_insn_mep. | |
16121 | ||
e47ad6c0 YQ |
16122 | 2017-01-26 Pedro Alves <palves@redhat.com> |
16123 | Yao Qi <yao.qi@linaro.org> | |
16124 | ||
16125 | * arm-tdep.c: Include "disasm.h". | |
16126 | (gdb_print_insn_arm): Update code to get gdbarch. | |
16127 | * disasm.c (dis_asm_read_memory): Change it to | |
16128 | gdb_disassembler::dis_asm_read_memory. | |
16129 | (dis_asm_memory_error): Likewise. | |
16130 | (dis_asm_print_address): Likewise. | |
16131 | (gdb_pretty_print_insn): Change it to | |
16132 | gdb_disassembler::pretty_print_insn. | |
16133 | (dump_insns): Add one argument gdb_disassemlber. All | |
16134 | callers updated. | |
16135 | (do_mixed_source_and_assembly_deprecated): Likewise. | |
16136 | (do_mixed_source_and_assembly): Likewise. | |
16137 | (do_assembly_only): Likewise. | |
16138 | (gdb_disassembler::gdb_disassembler): New. | |
16139 | (gdb_disassembler::print_insn): New. | |
16140 | * disasm.h (class gdb_disassembler): New. | |
16141 | (gdb_pretty_print_insn): Remove declaration. | |
16142 | (gdb_disassemble_info): Likewise. | |
16143 | * guile/scm-disasm.c (class gdbscm_disassembler): New. | |
16144 | (gdbscm_disasm_read_memory_worker): Update. | |
16145 | (gdbscm_disasm_read_memory): Update. | |
16146 | (gdbscm_disasm_memory_error): Remove. | |
16147 | (gdbscm_disasm_print_address): Remove. | |
16148 | (gdbscm_disassembler::gdbscm_disassembler): New. | |
16149 | (gdbscm_print_insn_from_port): Update. | |
16150 | * mips-tdep.c: Include disasm.h. | |
16151 | (gdb_print_insn_mips): Update code to get gdbarch. | |
16152 | * record-btrace.c (btrace_insn_history): Update. | |
16153 | * spu-tdep.c: Include disasm.h. | |
16154 | (struct spu_dis_asm_data): Remove. | |
16155 | (struct spu_dis_asm_info): New. | |
16156 | (spu_dis_asm_print_address): Use spu_dis_asm_info to get | |
16157 | SPU id. | |
16158 | (gdb_print_insn_spu): Cast disassemble_info to | |
16159 | spu_dis_asm_info. | |
16160 | ||
80d75874 YQ |
16161 | 2017-01-26 Yao Qi <yao.qi@linaro.org> |
16162 | ||
16163 | * disasm.c (do_ui_file_delete): Delete. | |
16164 | (gdb_insn_length): Move code creating stream to ... | |
16165 | * utils.c (null_stream): ... here. New function. | |
16166 | * utils.h (null_stream): Declare. | |
16167 | ||
60685cd0 SM |
16168 | 2017-01-23 Simon Marchi <simon.marchi@polymtl.ca> |
16169 | ||
16170 | * python/py-inferior.c (find_thread_object): Return directly | |
16171 | from the loop. Remove "found" variable. | |
16172 | ||
eb1cdb62 JB |
16173 | 2017-01-21 Joel Brobecker <brobecker@adacore.com> |
16174 | ||
16175 | GDB 7.12.1 released. | |
16176 | ||
b1ce6568 SM |
16177 | 2017-01-20 Simon Marchi <simon.marchi@ericsson.com> |
16178 | ||
16179 | * python/py-function.c (fnpy_call): Reorder declarations to have | |
16180 | the gdbpy_enter object declared first. | |
16181 | * python/py-xmethods.c (gdbpy_get_xmethod_arg_types): Likewise. | |
16182 | ||
6f8b0407 SM |
16183 | 2017-01-20 Simon Marchi <simon.marchi@ericsson.com> |
16184 | ||
fec93fb1 | 16185 | PR python/21068 |
6f8b0407 SM |
16186 | * python/python-internal.h (PyMem_RawMalloc): Define for |
16187 | Python < 3.4. | |
16188 | * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use | |
16189 | PyMem_RawMalloc instead of PyMem_Malloc. | |
16190 | ||
78cbbba8 LM |
16191 | 2017-01-20 Mike Wrighton <mike_wrighton@codesourcery.com> |
16192 | Luis Machado <lgustavo@codesourcery.com> | |
16193 | ||
16194 | * NEWS (New commands): Mention flash-erase. | |
16195 | (New MI commands): Mention target-flash-erase. | |
16196 | * mi/mi-cmds.c (mi_cmd_target_flash_erase): Add target-flash-erase MI | |
16197 | command. | |
16198 | * mi/mi-cmds.h (mi_cmd_target_flash_erase): New declaration. | |
16199 | * mi/mi-main.c (mi_cmd_target_flash_erase): New function. | |
16200 | * target.c (flash_erase_command): New function. | |
16201 | (initialize_targets): Add new flash-erase command. | |
16202 | * target.h (flash_erase_command): New declaration. | |
16203 | ||
2132fe85 JB |
16204 | 2017-01-20 Joel Brobecker <brobecker@adacore.com> |
16205 | ||
16206 | * nat/linux-ptrace.c: Only include <sys/procfs.h> if | |
16207 | HAVE_SYS_PROCFS_H is defined. | |
16208 | ||
d1dff226 AH |
16209 | 2017-01-18 Alan Hayward <alan.hayward@arm.com> |
16210 | ||
16211 | * remote.c (struct cached_reg): Change data into a pointer. | |
16212 | * (stop_reply_dtr): Free data pointers before deleting vector. | |
16213 | (process_stop_reply): Likewise. | |
16214 | (remote_parse_stop_reply): Allocate space for data | |
16215 | ||
9890e433 AH |
16216 | 2017-01-18 Alan Hayward <alan.hayward@arm.com> |
16217 | ||
16218 | * amd64-tdep.c (amd64_pseudo_register_read_value): remove | |
16219 | MAX_REGISTER_SIZE. | |
16220 | (amd64_pseudo_register_read_value): Likewise. | |
16221 | * remote.c (fetch_register_using_p): Remove MAX_REGISTER_SIZE. | |
16222 | (store_register_using_P): Likewise. | |
16223 | * regcache.c (regcache_xfer_part): Likewise. | |
16224 | ||
7a36499a IR |
16225 | 2017-01-16 Ivo Raisr <ivo.raisr@oracle.com> |
16226 | ||
16227 | Split real and pseudo registers. | |
16228 | * sparc-tdep.h (SPARC_CORE_REGISTERS): New macro. | |
16229 | (sparc32_pseudo_regnum): New enum. | |
16230 | * sparc64-tdep.h (sparc64_pseudo_regnum): New enum. | |
16231 | * sparc-tdep.c (SPARC32_FPU_REGISTERS): New macro. | |
16232 | (SPARC32_CP0_REGISTERS): New macro. | |
16233 | (sparc32_pseudo_register_name): New function. | |
16234 | (sparc32_register_name): Use sparc32_pseudo_register_name. | |
16235 | (sparc32_pseudo_register_type): New function. | |
16236 | (sparc32_register_type): Use sparc32_pseudo_register_type. | |
16237 | (sparc32_pseudo_register_read, sparc32_pseudo_register_write): Handle | |
16238 | pseudo register numbers. | |
16239 | * sparc64-tdep.c SPARC64_FPU_REGISTERS): New macro. | |
16240 | (SPARC64_CP0_REGISTERS): New macro. | |
16241 | (sparc64_pseudo_register_name): New function. | |
16242 | (sparc64_register_name): Use sparc64_pseudo_register_name. | |
16243 | (sparc64_pseudo_register_type): New function. | |
16244 | (sparc64_register_type): Use sparc64_pseudo_register_type. | |
16245 | (sparc64_pseudo_register_read, sparc64_pseudo_register_write): Handle | |
16246 | pseudo register numbers. | |
16247 | (sparc64_store_floating_fields, sparc64_extract_floating_fields, | |
16248 | sparc64_store_arguments): Handle pseudo register numbers. | |
16249 | ||
6f8976bf YQ |
16250 | 2017-01-13 Yao Qi <yao.qi@linaro.org> |
16251 | ||
16252 | * remote.c (REMOTE_DEBUG_MAX_CHAR): New macro. | |
16253 | (putpkt_binary): Print only REMOTE_DEBUG_MAX_CHAR chars in debug | |
16254 | output. | |
16255 | (getpkt_or_notif_sane_1): Likewise. | |
16256 | ||
e4241ace YQ |
16257 | 2017-01-13 Yao Qi <yao.qi@linaro.org> |
16258 | ||
16259 | * Makefile.in (checker-headers): Use CXX and CXX_DIALET instead | |
16260 | of CC. Pass "-x c++-header" instead of "-x c". | |
16261 | ||
3015c064 SM |
16262 | 2017-01-12 Simon Marchi <simon.marchi@ericsson.com> |
16263 | ||
16264 | * remote.c (remote_can_async_p): Update comment. | |
16265 | ||
fde1b17d SM |
16266 | 2017-01-12 Simon Marchi <simon.marchi@ericsson.com> |
16267 | ||
16268 | * linux-nat.c (linux_nat_can_async_p): Update comment. | |
16269 | ||
ca1ca08b SM |
16270 | 2017-01-12 Simon Marchi <simon.marchi@ericsson.com> |
16271 | ||
16272 | * serial.c (serial_open): Forget about "pc" and "lpt" serial interface. | |
16273 | ||
4ad2da73 SM |
16274 | 2017-01-11 Simon Marchi <simon.marchi@ericsson.com> |
16275 | ||
16276 | * cli/cli-decode.c (lookup_cmd_1): Fix typo in comment. | |
16277 | ||
c8b23b3f TT |
16278 | 2017-01-10 Tom Tromey <tom@tromey.com> |
16279 | ||
16280 | * python/py-type.c (typy_legacy_template_argument): Update. | |
16281 | * cp-support.h (struct demangle_parse_info) (demangle_parse_info, | |
16282 | ~demangle_parse_info): Declare new members. | |
16283 | (cp_demangled_name_to_comp): Return unique_ptr. | |
16284 | (cp_demangled_name_parse_free) | |
16285 | (make_cleanup_cp_demangled_name_parse_free) | |
16286 | (cp_new_demangle_parse_info): Remove. | |
16287 | * cp-support.c (do_demangled_name_parse_free_cleanup) | |
16288 | (make_cleanup_cp_demangled_name_parse_free): Remove. | |
16289 | (inspect_type, cp_canonicalize_string_full) | |
16290 | (cp_canonicalize_string): Update. | |
16291 | (mangled_name_to_comp): Change return type. | |
16292 | (cp_class_name_from_physname, method_name_from_physname) | |
16293 | (cp_func_name, cp_remove_params): Update. | |
16294 | * cp-name-parser.y (demangle_parse_info): New constructor, from | |
16295 | cp_new_demangle_parse_info. | |
16296 | (~demangle_parse_info): New destructor, from | |
16297 | cp_demangled_name_parse_free. | |
16298 | (cp_merge_demangle_parse_infos): Update. | |
16299 | (cp_demangled_name_to_comp): Change return type. | |
16300 | ||
1ac32117 TT |
16301 | 2017-01-10 Tom Tromey <tom@tromey.com> |
16302 | ||
16303 | * top.c (prevent_dont_repeat): Change return type. | |
16304 | * python/python.c (execute_gdb_command): Use std::string. | |
16305 | Update. | |
16306 | * guile/guile.c (gdbscm_execute_gdb_command): Update. | |
16307 | * command.h (prevent_dont_repeat): Change return type. | |
16308 | * breakpoint.c (bpstat_do_actions_1): Update. | |
16309 | ||
0cf08227 TT |
16310 | 2017-01-10 Tom Tromey <tom@tromey.com> |
16311 | ||
16312 | * value.h (scoped_value_mark::~scoped_value_mark): Call | |
16313 | free_to_mark. | |
16314 | (scoped_value_mark::free_to_mark): New method. | |
16315 | * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use | |
16316 | scoped_value_mark. | |
16317 | ||
eb115069 TT |
16318 | 2017-01-10 Tom Tromey <tom@tromey.com> |
16319 | ||
16320 | * python/py-value.c (valpy_dereference, valpy_referenced_value) | |
16321 | (valpy_reference_value, valpy_const_value, valpy_get_address) | |
16322 | (valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast) | |
16323 | (valpy_getitem, valpy_call, valpy_binop_throw, valpy_negative) | |
16324 | (valpy_absolute, valpy_richcompare_throw): Use scoped_value_mark. | |
16325 | * dwarf2loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use | |
16326 | scoped_value_mark. | |
16327 | * dwarf2-frame.c (execute_stack_op): Use scoped_value_mark. | |
16328 | * value.h (scoped_value_mark): New class. | |
16329 | ||
906768f9 TT |
16330 | 2017-01-10 Tom Tromey <tom@tromey.com> |
16331 | ||
16332 | * dwarf2read.c (dwarf2_build_psymtabs): Use psymtab_discarder. | |
16333 | * psympriv.h (make_cleanup_discard_psymtabs): Don't declare. | |
16334 | * psymtab.c (discard_psymtabs_upto): Remove. | |
16335 | (make_cleanup_discard_psymtabs): Remove. | |
16336 | (struct psymtab_state): Remove. | |
16337 | ||
bef155c3 TT |
16338 | 2017-01-10 Tom Tromey <tom@tromey.com> |
16339 | ||
16340 | * record-full.c (record_full_save_cleanups): Remove. | |
16341 | (record_full_save): Use gdb::unlinker. | |
16342 | * gcore.c (do_bfd_delete_cleanup): Remove. | |
16343 | (gcore_command): Use gdb::unlinker, unique_xmalloc_ptr. Remove | |
16344 | cleanups. | |
16345 | * dwarf2read.c (unlink_if_set): Remove. | |
16346 | (write_psymtabs_to_index): Use gdb::unlinker. | |
16347 | * common/gdb_unlinker.h: New file. | |
16348 | ||
192b62ce TT |
16349 | 2017-01-10 Tom Tromey <tom@tromey.com> |
16350 | ||
16351 | * windows-tdep.c (windows_xfer_shared_library): Update. | |
16352 | * windows-nat.c (windows_make_so): Update. | |
16353 | * utils.h (make_cleanup_bfd_unref): Remove. | |
16354 | * utils.c (do_bfd_close_cleanup, make_cleanup_bfd_unref): Remove. | |
16355 | * symfile.h (symfile_bfd_open) | |
16356 | (find_separate_debug_file_in_section): Return gdb_bfd_ref_ptr. | |
16357 | * symfile.c (read_symbols, symbol_file_add) | |
16358 | (separate_debug_file_exists): Update. | |
16359 | (symfile_bfd_open): Return gdb_bfd_ref_ptr. | |
16360 | (generic_load, reread_symbols): Update. | |
16361 | * symfile-mem.c (symbol_file_add_from_memory): Update. | |
16362 | * spu-linux-nat.c (spu_bfd_open): Return gdb_bfd_ref_ptr. | |
16363 | (spu_symbol_file_add_from_memory): Update. | |
16364 | * solist.h (struct target_so_ops) <bfd_open>: Return | |
16365 | gdb_bfd_ref_ptr. | |
16366 | (solib_bfd_fopen, solib_bfd_open): Return gdb_bfd_ref_ptr. | |
16367 | * solib.c (solib_bfd_fopen, solib_bfd_open): Return | |
16368 | gdb_bfd_ref_ptr. | |
16369 | (solib_map_sections, reload_shared_libraries_1): Update. | |
16370 | * solib-svr4.c (enable_break): Update. | |
16371 | * solib-spu.c (spu_bfd_fopen): Return gdb_bfd_ref_ptr. | |
16372 | * solib-frv.c (enable_break2): Update. | |
16373 | * solib-dsbt.c (enable_break): Update. | |
16374 | * solib-darwin.c (gdb_bfd_mach_o_fat_extract): Return | |
16375 | gdb_bfd_ref_ptr. | |
16376 | (darwin_solib_get_all_image_info_addr_at_init): Update. | |
16377 | (darwin_bfd_open): Return gdb_bfd_ref_ptr. | |
16378 | * solib-aix.c (solib_aix_bfd_open): Return gdb_bfd_ref_ptr. | |
16379 | * record-full.c (record_full_save): Update. | |
16380 | * python/py-objfile.c (objfpy_add_separate_debug_file): Update. | |
16381 | * procfs.c (insert_dbx_link_bpt_in_file): Update. | |
16382 | * minidebug.c (find_separate_debug_file_in_section): Return | |
16383 | gdb_bfd_ref_ptr. | |
16384 | * machoread.c (macho_add_oso_symfile): Change abfd to | |
16385 | gdb_bfd_ref_ptr. | |
16386 | (macho_symfile_read_all_oso): Update. | |
16387 | (macho_check_dsym): Return gdb_bfd_ref_ptr. | |
16388 | (macho_symfile_read): Update. | |
16389 | * jit.c (bfd_open_from_target_memory): Return gdb_bfd_ref_ptr. | |
16390 | (jit_bfd_try_read_symtab): Update. | |
16391 | * gdb_bfd.h (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr) | |
16392 | (gdb_bfd_openw, gdb_bfd_openr_iovec) | |
16393 | (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return | |
16394 | gdb_bfd_ref_ptr. | |
16395 | (gdb_bfd_ref_policy): New struct. | |
16396 | (gdb_bfd_ref_ptr): New typedef. | |
16397 | * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr) | |
16398 | (gdb_bfd_openw, gdb_bfd_openr_iovec) | |
16399 | (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return | |
16400 | gdb_bfd_ref_ptr. | |
16401 | * gcore.h (create_gcore_bfd): Return gdb_bfd_ref_ptr. | |
16402 | * gcore.c (create_gcore_bfd): Return gdb_bfd_ref_ptr. | |
16403 | (gcore_command): Update. | |
16404 | * exec.c (exec_file_attach): Update. | |
16405 | * elfread.c (elf_symfile_read): Update. | |
16406 | * dwarf2read.c (dwarf2_get_dwz_file): Update. | |
16407 | (try_open_dwop_file, open_dwo_file): Return gdb_bfd_ref_ptr. | |
16408 | (open_and_init_dwo_file): Update. | |
16409 | (open_dwp_file): Return gdb_bfd_ref_ptr. | |
16410 | (open_and_init_dwp_file): Update. | |
16411 | * corelow.c (core_open): Update. | |
16412 | * compile/compile-object-load.c (compile_object_load): Update. | |
16413 | * common/gdb_ref_ptr.h (ref_ptr::operator->): New operator. | |
16414 | * coffread.c (coff_symfile_read): Update. | |
16415 | * cli/cli-dump.c (bfd_openr_or_error, bfd_openw_or_error): Return | |
16416 | gdb_bfd_ref_ptr. Rename. | |
16417 | (dump_bfd_file, restore_command): Update. | |
16418 | * build-id.h (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr. | |
16419 | * build-id.c (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr. | |
16420 | (find_separate_debug_file_by_buildid): Update. | |
16421 | ||
50315b21 TT |
16422 | 2017-01-10 Tom Tromey <tom@tromey.com> |
16423 | ||
16424 | * common/gdb_ref_ptr.h: New file. | |
16425 | * python/py-ref.h (struct gdbpy_ref_policy): New. | |
16426 | (gdbpy_ref): Now a typedef. | |
16427 | ||
fc4007c9 TT |
16428 | 2017-01-10 Tom Tromey <tom@tromey.com> |
16429 | ||
16430 | * utils.h (make_cleanup_htab_delete): Don't declare. | |
16431 | * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete): | |
16432 | Remove. | |
16433 | * linespec.c (decode_compound_collector): Add constructor, | |
16434 | destructor. | |
16435 | (lookup_prefix_sym): Remove cleanup. | |
16436 | (symtab_collector): Add constructor, destructor. | |
16437 | (collect_symtabs_from_filename): Remove cleanup. | |
16438 | * disasm.c (do_mixed_source_and_assembly): Use htab_up. | |
16439 | * compile/compile-c-symbols.c (generate_c_for_variable_locations): | |
16440 | Use htab_up. | |
16441 | * gnu-v3-abi.c (gnuv3_print_vtable): Use htab_up. | |
16442 | * dwarf2read.c (dw2_expand_symtabs_matching) | |
16443 | (dw2_map_symbol_filenames, dwarf_decode_macros) | |
16444 | (write_psymtabs_to_index): Use htab_up. | |
16445 | * dwarf2loc.c (func_verify_no_selftailcall) | |
16446 | (call_site_find_chain_1, func_verify_no_selftailcall) | |
16447 | (chain_candidate, call_site_find_chain_1): Use std::unordered_set, | |
16448 | std::vector, gdb::unique_xmalloc_ptr. | |
16449 | (call_sitep): Remove typedef. | |
16450 | (dwarf2_locexpr_baton_eval): Remove unused variable. | |
16451 | ||
8dbcee67 TT |
16452 | 2017-01-10 Tom Tromey <tom@tromey.com> |
16453 | ||
16454 | * python/python-internal.h (make_cleanup_py_decref) | |
16455 | (make_cleanup_py_xdecref): Don't declare. | |
16456 | * python/py-utils.c (py_decref, make_cleanup_py_decref) | |
16457 | (py_xdecref, make_cleanup_py_xdecref): Remove. | |
16458 | ||
13df46cc TT |
16459 | 2017-01-10 Tom Tromey <tom@tromey.com> |
16460 | ||
16461 | * python/py-framefilter.c (py_mi_print_variables): Use gdbpy_ref. | |
16462 | (py_print_locals, enumerate_locals, py_print_args): Use gdbpy_ref. | |
16463 | ||
06fc9bf7 TT |
16464 | 2017-01-10 Tom Tromey <tom@tromey.com> |
16465 | ||
16466 | * python/py-framefilter.c (enumerate_args): Use gdbpy_ref. | |
16467 | ||
830a4934 TT |
16468 | 2017-01-10 Tom Tromey <tom@tromey.com> |
16469 | ||
16470 | * python/py-utils.c (unicode_to_encoded_string) | |
16471 | (python_string_to_target_string) | |
16472 | (python_string_to_target_python_string) | |
16473 | (python_string_to_host_string, gdbpy_obj_to_string) | |
16474 | (get_addr_from_python): Use gdbpy_ref. | |
16475 | ||
4586d543 TT |
16476 | 2017-01-10 Tom Tromey <tom@tromey.com> |
16477 | ||
16478 | * python/py-unwind.c (pyuw_object_attribute_to_pointer): Use | |
16479 | gdbpy_ref. | |
16480 | ||
59876f8f TT |
16481 | 2017-01-10 Tom Tromey <tom@tromey.com> |
16482 | ||
16483 | * python/python.c (eval_python_command, gdbpy_decode_line) | |
16484 | (gdbpy_run_events, gdbpy_start_type_printers) | |
16485 | (gdbpy_apply_type_printers): Use gdbpy_ref. | |
16486 | ||
97d83487 TT |
16487 | 2017-01-10 Tom Tromey <tom@tromey.com> |
16488 | ||
16489 | * python/py-param.c (get_doc_string, compute_enum_values): Use | |
16490 | gdbpy_ref. | |
16491 | ||
9205649a TT |
16492 | 2017-01-10 Tom Tromey <tom@tromey.com> |
16493 | ||
16494 | * python/py-inferior.c (find_thread_object, build_inferior_list): | |
16495 | Use gdbpy_ref. | |
16496 | ||
74c49d45 TT |
16497 | 2017-01-10 Tom Tromey <tom@tromey.com> |
16498 | ||
16499 | * python/py-framefilter.c (py_print_frame): Use gdbpy_ref. | |
16500 | ||
16361ffb TT |
16501 | 2017-01-10 Tom Tromey <tom@tromey.com> |
16502 | ||
16503 | * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope): Use | |
16504 | gdbpy_ref. | |
16505 | ||
905f2cca TT |
16506 | 2017-01-10 Tom Tromey <tom@tromey.com> |
16507 | ||
16508 | * python/py-cmd.c (cmdpy_completer_helper): Use gdbpy_ref. Remove | |
16509 | extra incref. | |
16510 | (cmdpy_completer_handle_brkchars, cmdpy_completer, cmdpy_init): | |
16511 | Use gdbpy_ref. | |
16512 | ||
64081434 TT |
16513 | 2017-01-10 Tom Tromey <tom@tromey.com> |
16514 | ||
16515 | * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use | |
16516 | gdbpy_ref. | |
16517 | ||
59e9e831 TT |
16518 | 2017-01-10 Tom Tromey <tom@tromey.com> |
16519 | ||
16520 | * python/py-arch.c (archpy_disassemble): Use gdbpy_ref. Don't | |
16521 | decref results of PyArg_ParseTupleAndKeywords. | |
16522 | ||
9de10f6d TT |
16523 | 2017-01-10 Tom Tromey <tom@tromey.com> |
16524 | ||
16525 | * python/python.c (python_run_simple_file): Use | |
16526 | unique_xmalloc_ptr, gdbpy_ref. | |
16527 | ||
2bd5759d TT |
16528 | 2017-01-10 Tom Tromey <tom@tromey.com> |
16529 | ||
16530 | * python/py-prettyprint.c (print_stack_unless_memory_error) | |
16531 | (print_string_repr, print_children): Use gdbpy_ref. | |
16532 | (dummy_python_frame): New class. | |
16533 | (dummy_python_frame::dummy_python_frame): Rename from | |
16534 | push_dummy_python_frame. | |
16535 | (py_restore_tstate): Remove. | |
16536 | ||
3b4e0e01 TT |
16537 | 2017-01-10 Tom Tromey <tom@tromey.com> |
16538 | ||
16539 | * python/py-framefilter.c (py_print_frame): Use gdbpy_ref. | |
16540 | ||
17a22718 TT |
16541 | 2017-01-10 Tom Tromey <tom@tromey.com> |
16542 | ||
16543 | * python/python.c (ensure_python_env, restore_python_env): | |
16544 | Remove. | |
16545 | * python/python-internal.h (ensure_python_env): Don't declare. | |
16546 | * varobj.h (varobj_ensure_python_env): Don't declare. | |
16547 | * varobj.c (varobj_ensure_python_env): Remove. | |
16548 | ||
68cdc557 TT |
16549 | 2017-01-10 Tom Tromey <tom@tromey.com> |
16550 | ||
16551 | * varobj.c (varobj_value_get_print_value): Use | |
16552 | gdbpy_enter_varobj. | |
16553 | ||
1eba6383 TT |
16554 | 2017-01-10 Tom Tromey <tom@tromey.com> |
16555 | ||
16556 | * python/py-prettyprint.c (print_string_repr, print_children): | |
16557 | Update. | |
16558 | * python/py-lazy-string.c (gdbpy_extract_lazy_string): Change type | |
16559 | of "encoding". | |
16560 | * varobj.c (varobj_value_get_print_value): Update. | |
16561 | * python/python-internal.h (gdbpy_extract_lazy_string): Update. | |
16562 | ||
bde7b3e3 TT |
16563 | 2017-01-10 Tom Tromey <tom@tromey.com> |
16564 | ||
16565 | * varobj.c (varobj_get_display_hint) | |
16566 | (dynamic_varobj_has_child_method, install_new_value_visualizer) | |
16567 | (varobj_set_visualizer, free_variable): Use | |
16568 | gdbpy_enter_varobj. | |
16569 | ||
a7785f8c TT |
16570 | 2017-01-10 Tom Tromey <tom@tromey.com> |
16571 | ||
16572 | * python/python.c (python_command): Use gdbpy_enter, gdbpy_ref. | |
16573 | (do_finish_initialization): New function. Use gdbpy_ref. | |
16574 | (gdbpy_finish_initialization): Use gdbpy_enter. Call | |
16575 | do_finish_initialization. | |
16576 | ||
2865bfce TT |
16577 | 2017-01-10 Tom Tromey <tom@tromey.com> |
16578 | ||
16579 | * python/py-param.c (get_set_value, get_show_value): Use | |
16580 | gdbpy_enter, gdbpy_ref. | |
16581 | ||
0e9dcc75 TT |
16582 | 2017-01-10 Tom Tromey <tom@tromey.com> |
16583 | ||
16584 | * python/py-function.c (fnpy_call): Use gdbpy_enter, gdbpy_ref. | |
16585 | ||
12a5cedd TT |
16586 | 2017-01-10 Tom Tromey <tom@tromey.com> |
16587 | ||
16588 | * python/py-cmd.c (cmdpy_function): Use gdbpy_enter, gdbpy_ref. | |
16589 | ||
788f2586 TT |
16590 | 2017-01-10 Tom Tromey <tom@tromey.com> |
16591 | ||
16592 | * python/py-varobj.c (py_varobj_iter_dtor, py_varobj_iter_next): | |
16593 | Use gdbpy_enter_varobj. | |
16594 | ||
6cd67bea TT |
16595 | 2017-01-10 Tom Tromey <tom@tromey.com> |
16596 | ||
16597 | * varobj.c (gdbpy_enter_varobj): New constructor. | |
16598 | * python/python-internal.h (gdbpy_enter_varobj): New class. | |
16599 | * python/py-varobj.c (py_varobj_get_iterator): Use | |
16600 | gdbpy_enter_varobj. | |
16601 | ||
14b122bf TT |
16602 | 2017-01-10 Tom Tromey <tom@tromey.com> |
16603 | ||
16604 | * python/py-xmethods.c (gdbpy_get_xmethod_result_type): Use | |
16605 | gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr. | |
16606 | (gdbpy_invoke_xmethod): Use gdbpy_ref, gdbpy_enter. | |
16607 | (gdbpy_get_xmethod_arg_types): Use gdbpy_ref, | |
16608 | unique_xmalloc_ptr. | |
16609 | (gdbpy_get_xmethod_arg_types): Use gdbpy_ref, gdbpy_enter. | |
16610 | ||
bf1ca3b9 TT |
16611 | 2017-01-10 Tom Tromey <tom@tromey.com> |
16612 | ||
16613 | * python/py-xmethods.c (invoke_match_method): Use | |
16614 | gdbpy_ref. | |
16615 | ||
572a5524 TT |
16616 | 2017-01-10 Tom Tromey <tom@tromey.com> |
16617 | ||
16618 | * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): use | |
16619 | gdbpy_enter, gdbpy_ref. | |
16620 | ||
396a78b6 TT |
16621 | 2017-01-10 Tom Tromey <tom@tromey.com> |
16622 | ||
16623 | * python/python.c (python_interactive_command): Use gdbpy_enter. | |
16624 | ||
a88b13c7 TT |
16625 | 2017-01-10 Tom Tromey <tom@tromey.com> |
16626 | ||
16627 | * python/python.c (gdbpy_before_prompt_hook): Use gdbpy_enter, | |
16628 | gdbpy_ref. | |
16629 | ||
e9f0c363 TT |
16630 | 2017-01-10 Tom Tromey <tom@tromey.com> |
16631 | ||
16632 | * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Use | |
16633 | gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr. | |
16634 | ||
6349f452 TT |
16635 | 2017-01-10 Tom Tromey <tom@tromey.com> |
16636 | ||
16637 | * utils.h (htab_deleter): New struct. | |
16638 | (htab_up): New typedef. | |
16639 | * python/py-framefilter.c (gdbpy_apply_frame_filter): Use | |
16640 | gdbpy_enter, gdbpy_ref, htab_up. | |
16641 | ||
c0171de6 TT |
16642 | 2017-01-10 Tom Tromey <tom@tromey.com> |
16643 | ||
16644 | * python/py-unwind.c (pending_frame_invalidate): Remove. | |
16645 | (pyuw_sniffer): Use gdbpy_enter and gdbpy_ref. | |
16646 | ||
f18e226f TT |
16647 | 2017-01-10 Tom Tromey <tom@tromey.com> |
16648 | ||
16649 | * python/py-xmethods.c (gdbpy_free_xmethod_worker_data) | |
16650 | (gdbpy_clone_xmethod_worker_data): Use gdbpy_enter. | |
16651 | ||
c57af3f1 TT |
16652 | 2017-01-10 Tom Tromey <tom@tromey.com> |
16653 | ||
16654 | * python/py-type.c (save_objfile_types): Use gdbpy_enter. | |
16655 | ||
60e600ec TT |
16656 | 2017-01-10 Tom Tromey <tom@tromey.com> |
16657 | ||
16658 | * python/python.c (gdbpy_eval_from_control_command) | |
16659 | (gdbpy_source_script, gdbpy_run_events) | |
16660 | (gdbpy_source_objfile_script, gdbpy_execute_objfile_script) | |
16661 | (gdbpy_free_type_printers, gdbpy_finish_initialization): Use | |
16662 | gdbpy_enter. | |
16663 | ||
bf7da5b0 TT |
16664 | 2017-01-10 Tom Tromey <tom@tromey.com> |
16665 | ||
16666 | * python/py-progspace.c (py_free_pspace): Use gdbpy_enter. | |
16667 | ||
2d38bced TT |
16668 | 2017-01-10 Tom Tromey <tom@tromey.com> |
16669 | ||
16670 | * python/py-objfile.c (py_free_objfile): Use gdbpy_enter. | |
16671 | ||
07bc7329 TT |
16672 | 2017-01-10 Tom Tromey <tom@tromey.com> |
16673 | ||
16674 | * python/py-inferior.c (python_on_normal_stop, python_on_resume) | |
16675 | (python_on_inferior_call_pre, python_on_inferior_call_post) | |
16676 | (python_on_memory_change, python_on_register_change) | |
16677 | (python_inferior_exit, python_new_objfile, add_thread_object) | |
16678 | (delete_thread_object, py_free_inferior): Use gdbpy_enter. | |
16679 | ||
6e7c365e TT |
16680 | 2017-01-10 Tom Tromey <tom@tromey.com> |
16681 | ||
16682 | * python/py-finishbreakpoint.c (bpfinishpy_handle_stop) | |
16683 | (bpfinishpy_handle_exit): Use gdbpy_enter. | |
16684 | ||
6ba0cd40 TT |
16685 | 2017-01-10 Tom Tromey <tom@tromey.com> |
16686 | ||
16687 | * python/py-cmd.c (cmdpy_destroyer) | |
16688 | (cmdpy_completer_handle_brkchars, cmdpy_completer): Use | |
16689 | gdbpy_enter. | |
16690 | ||
de2dc875 TT |
16691 | 2017-01-10 Tom Tromey <tom@tromey.com> |
16692 | ||
16693 | * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use | |
16694 | gdbpy_enter. | |
16695 | (gdbpy_breakpoint_has_cond): Likewise. | |
16696 | ||
4ecee2c4 TT |
16697 | 2017-01-10 Tom Tromey <tom@tromey.com> |
16698 | ||
16699 | * python/python.c (gdbpy_enter): New constructor. | |
16700 | (~gdbpy_enter): New destructor. | |
16701 | (restore_python_env, ensure_python_env): Rewrite. | |
16702 | * python/python-internal.h (gdbpy_enter): New class. | |
16703 | ||
37fce74f TT |
16704 | 2017-01-10 Tom Tromey <tom@tromey.com> |
16705 | ||
16706 | * python/py-symbol.c (gdbpy_lookup_symbol): Use gdbpy_ref. | |
16707 | ||
53a0cca3 TT |
16708 | 2017-01-10 Tom Tromey <tom@tromey.com> |
16709 | ||
16710 | * python/py-value.c (value_has_field, get_field_flag) | |
16711 | (get_field_type, valpy_getitem, convert_value_from_python): Use | |
16712 | gdbpy_ref. | |
16713 | ||
ff3724f5 TT |
16714 | 2017-01-10 Tom Tromey <tom@tromey.com> |
16715 | ||
16716 | * python/python.c (gdbpy_progspaces, gdbpy_objfiles): Use | |
16717 | gdbpy_ref. | |
16718 | ||
0700aea5 TT |
16719 | 2017-01-10 Tom Tromey <tom@tromey.com> |
16720 | ||
16721 | * python/py-prettyprint.c (search_pp_list) | |
16722 | (find_pretty_printer_from_objfiles) | |
16723 | (find_pretty_printer_from_progspace) | |
16724 | (find_pretty_printer_from_gdb, find_pretty_printer) | |
16725 | (gdbpy_get_display_hint, gdbpy_get_varobj_pretty_printer): Use | |
16726 | gdbpy_ref. | |
16727 | ||
1bb44c9f TT |
16728 | 2017-01-10 Tom Tromey <tom@tromey.com> |
16729 | ||
16730 | * python/py-param.c (call_doc_function): Use gdbpy_ref. | |
16731 | ||
87ce03fd TT |
16732 | 2017-01-10 Tom Tromey <tom@tromey.com> |
16733 | ||
16734 | * python/py-linetable.c (build_line_table_tuple_from_pcs) | |
16735 | (ltpy_get_all_source_lines): Use gdbpy_ref. | |
16736 | ||
ee0a3fb8 TT |
16737 | 2017-01-10 Tom Tromey <tom@tromey.com> |
16738 | ||
16739 | * python/py-framefilter.c (extract_sym, extract_value) | |
16740 | (get_py_iter_from_func, bootstrap_python_frame_filters): Use | |
16741 | gdbpy_ref. | |
16742 | ||
bf2a52fa TT |
16743 | 2017-01-10 Tom Tromey <tom@tromey.com> |
16744 | ||
16745 | * python/py-breakpoint.c (gdbpy_breakpoints): Use gdbpy_ref. | |
16746 | ||
f59fe7f8 TT |
16747 | 2017-01-10 Tom Tromey <tom@tromey.com> |
16748 | ||
16749 | * python/py-inferior.c (gdbpy_inferiors): Use gdbpy_ref. | |
16750 | ||
80bd970a TT |
16751 | 2017-01-10 Tom Tromey <tom@tromey.com> |
16752 | ||
16753 | * python/py-function.c (convert_values_to_python, fnpy_init): Use | |
16754 | gdbpy_ref. | |
16755 | ||
d1b3de2e TT |
16756 | 2017-01-10 Tom Tromey <tom@tromey.com> |
16757 | ||
16758 | * python/py-cmd.c (gdbpy_string_to_argv): Use gdbpy_ref. | |
16759 | ||
3bb43384 TT |
16760 | 2017-01-10 Tom Tromey <tom@tromey.com> |
16761 | ||
16762 | * python/py-type.c (convert_field, make_fielditem, typy_fields) | |
16763 | (typy_range): Use gdbpy_ref. | |
16764 | ||
abf5651e TT |
16765 | 2017-01-10 Tom Tromey <tom@tromey.com> |
16766 | ||
16767 | * python/py-threadevent.c (create_thread_event_object): Use | |
16768 | gdbpy_ref. | |
16769 | * python/py-stopevent.c (create_stop_event_object): Simplify. | |
16770 | (emit_stop_event): Use gdbpy_ref. | |
16771 | * python/py-signalevent.c (create_signal_event_object): Use | |
16772 | gdbpy_ref. | |
16773 | * python/py-newobjfileevent.c (create_new_objfile_event_object) | |
16774 | (emit_new_objfile_event, create_clear_objfiles_event_object) | |
16775 | (emit_clear_objfiles_event): Use gdbpy_ref. | |
16776 | * python/py-infevents.c (create_inferior_call_event_object) | |
16777 | (create_register_changed_event_object) | |
16778 | (create_memory_changed_event_object, emit_inferior_call_event) | |
16779 | (emit_memory_changed_event, emit_register_changed_event): Use | |
16780 | gdbpy_ref. | |
16781 | * python/py-exitedevent.c (create_exited_event_object) | |
16782 | (emit_exited_event): Use gdbpy_ref. | |
16783 | * python/py-event.h (evpy_emit_event): Remove | |
16784 | CPYCHECKER_STEALS_REFERENCE_TO_ARG annotation. | |
16785 | * python/py-event.c (evpy_emit_event): Use gdbpy_ref. | |
16786 | * python/py-continueevent.c (emit_continue_event): Use | |
16787 | gdbpy_ref. | |
16788 | * python/py-breakpoint.c (gdbpy_breakpoint_created) | |
16789 | (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use | |
16790 | gdbpy_ref. | |
16791 | * python/py-bpevent.c (create_breakpoint_event_object): Use | |
16792 | gdbpy_ref. | |
16793 | ||
a68ff33e TT |
16794 | 2017-01-10 Tom Tromey <tom@tromey.com> |
16795 | ||
16796 | * python/py-ref.h: New file. | |
16797 | ||
7becfd03 SM |
16798 | 2017-01-10 Simon Marchi <simon.marchi@ericsson.com> |
16799 | ||
16800 | * cli-out.c (cli_ui_out::do_redirect): Change return type to | |
16801 | void. | |
16802 | * cli-out.h (cli_ui_out::do_redirect): Likewise. | |
16803 | * mi/mi-out.c (mi_ui_out::do_redirect): Likewise. | |
16804 | * mi/mi-out.h (mi_ui_out::do_redirect): Likewise. | |
16805 | * ui-out.c (ui_out::redirect): Likewise. | |
16806 | * ui-out.h (ui_out::redirect, ui_out::do_redirect): Likewise. | |
16807 | * cli/cli-logging.c (set_logging_redirect): Update call site of | |
16808 | ui_out::redirect. | |
16809 | (handle_redirections): Likewise. | |
16810 | * scm-ports.c (ioscm_with_output_to_port_worker): Likewise. | |
16811 | * top.c (execute_command_to_string): Likewise. | |
16812 | * utils.c (do_ui_out_redirect_pop): Likewise. | |
16813 | ||
df294654 SM |
16814 | 2017-01-10 Simon Marchi <simon.marchi@ericsson.com> |
16815 | ||
16816 | * stack.c (_initialize_stack): Update "frame" command help message. | |
16817 | ||
f5e6296e IB |
16818 | 2017-01-08 Iain Buclaw <ibuclaw@gdcproject.org> |
16819 | ||
16820 | * d-exp.y (CastExpression): Emit UNOP_CAST_TYPE. | |
16821 | ||
0e2d6fa6 YQ |
16822 | 2017-01-06 Yao Qi <yao.qi@linaro.org> |
16823 | ||
16824 | * x86-linux-nat.h: Include gdb_proc_service.h. | |
16825 | ||
44d6d3f9 YQ |
16826 | 2017-01-06 Yao Qi <yao.qi@linaro.org> |
16827 | ||
16828 | * ser-base.h: Include serial.h. | |
16829 | ||
656731fe YQ |
16830 | 2017-01-06 Yao Qi <yao.qi@linaro.org> |
16831 | ||
16832 | * ppc-linux-tdep.h: Include ppc-tdep.h. | |
16833 | ||
1ca8f924 YQ |
16834 | 2017-01-06 Yao Qi <yao.qi@linaro.org> |
16835 | ||
16836 | * nat/amd64-linux-siginfo.h: Include signal.h. | |
16837 | ||
bc3008c4 YQ |
16838 | 2017-01-06 Yao Qi <yao.qi@linaro.org> |
16839 | ||
16840 | * nat/aarch64-linux-hw-point.h: Include break-common.h. | |
16841 | ||
66c80d03 YQ |
16842 | 2017-01-06 Yao Qi <yao.qi@linaro.org> |
16843 | ||
16844 | * mi/mi-parse.h: Include mi-cmds.h. | |
16845 | ||
051d2dda YQ |
16846 | 2017-01-06 Yao Qi <yao.qi@linaro.org> |
16847 | ||
16848 | * inf-loop.c: Don't include "target.h". | |
16849 | * inf-loop.h: Include it here. | |
16850 | ||
8018d34f YQ |
16851 | 2017-01-06 Yao Qi <yao.qi@linaro.org> |
16852 | ||
16853 | * dfp.h: Include "dboulest.h" and "expression.h". | |
16854 | ||
c0b8369c YQ |
16855 | 2017-01-06 Yao Qi <yao.qi@linaro.org> |
16856 | ||
16857 | * ax-gdb.h: Include "ax.h". | |
16858 | ||
ad5cba2a YQ |
16859 | 2017-01-06 Yao Qi <yao.qi@linaro.org> |
16860 | ||
16861 | * Makefile.in (HFILES_NO_SRCDIR): Replace gdb_ptrace.h | |
16862 | with nat/gdb_ptrace.h. | |
16863 | ||
1c33cd7f YQ |
16864 | 2017-01-05 Yao Qi <yao.qi@linaro.org> |
16865 | ||
16866 | * mips-fbsd-tdep.c (mips_fbsd_sigframe_init): Move && to | |
16867 | new line. | |
16868 | (mips64_fbsd_sigframe_init): Likewise. | |
16869 | ||
c988ac1d JB |
16870 | 2017-01-04 John Baldwin <jhb@FreeBSD.org> |
16871 | ||
16872 | * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Use | |
16873 | GDB_OSABI_FREEBSD instead of GDB_OSABI_FREEBSD_ELF. | |
16874 | ||
b268007c JB |
16875 | 2017-01-04 John Baldwin <jhb@FreeBSD.org> |
16876 | ||
16877 | * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c. | |
16878 | * NEWS: Mention new FreeBSD/mips native configuration. | |
16879 | * config/mips/fbsd.mh: New file. | |
16880 | * configure.host: Add mips*-*-freebsd*. | |
16881 | * mips-fbsd-nat.c: New file. | |
16882 | ||
387360da JB |
16883 | 2017-01-04 John Baldwin <jhb@FreeBSD.org> |
16884 | ||
16885 | * Makefile.in (ALL_TARGET_OBS): Add mips-fbsd-tdep.o. | |
16886 | (ALLDEPFILES): Add mips-fbsd-tdep.c. | |
16887 | * NEWS: Mention new FreeBSD/mips target. | |
16888 | * configure.tgt: Add mips*-*-freebsd*. | |
16889 | * mips-fbsd-tdep.c: New file. | |
16890 | * mips-fbsd-tdep.h: New file. | |
16891 | ||
2aaaf250 YQ |
16892 | 2017-01-04 Yao Qi <yao.qi@linaro.org> |
16893 | ||
16894 | * dwarf2loc.c (write_pieced_value): Don't use VALUE_FRAME_ID (to), | |
16895 | use c->frame_id when the piece location is DWARF_VALUE_REGISTER. | |
16896 | ||
61baf725 JB |
16897 | 2017-01-01 Joel Brobecker <brobecker@adacore.com> |
16898 | ||
6dbb839a | 16899 | Update copyright year range in all GDB files. |
61baf725 | 16900 | |
c113e7ff | 16901 | 2017-01-01 Joel Brobecker <brobecker@adacore.com> |
ce0db137 | 16902 | |
c113e7ff | 16903 | * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2016. |
ce0db137 | 16904 | |
c113e7ff | 16905 | For older changes see ChangeLog-2016. |
c906108c SS |
16906 | \f |
16907 | Local Variables: | |
16908 | mode: change-log | |
16909 | left-margin: 8 | |
16910 | fill-column: 74 | |
16911 | version-control: never | |
57da7796 | 16912 | coding: utf-8 |
c906108c | 16913 | End: |