Commit | Line | Data |
---|---|---|
8fd8d003 TT |
1 | 2017-11-27 Tom Tromey <tom@tromey.com> |
2 | ||
3 | * Makefile.in (SUBDIR_PYTHON_OBS): Redefine. | |
4 | (CONFIG_SRC_SUBDIR): Add python. | |
5 | (%.o): Remove python rule. | |
6 | (python/%.o): New rule. | |
7 | * configure: Rebuild. | |
8 | * configure.ac (CONFIG_OBS): Refer to python/python.o | |
9 | ||
bd810fff TT |
10 | 2017-11-27 Tom Tromey <tom@tromey.com> |
11 | ||
12 | * configure: Rebuild. | |
13 | * configure.ac (CONFIG_OBS): Refer to guile/guile.o. | |
14 | * Makefile.in (SUBDIR_GUILE_OBS): Redefine. | |
15 | (CONFIG_SRC_SUBDIR): Add guile. | |
16 | (%.o): Remove guile rule. | |
17 | ||
75787ac1 TT |
18 | 2017-11-27 Tom Tromey <tom@tromey.com> |
19 | ||
20 | * Makefile.in (SUBDIR_UNITTESTS_OBS): Redefine. | |
21 | (%.o): Remove unittests rule. | |
22 | (CONFIG_SRC_SUBDIR): Add unittests. | |
23 | ||
5c8a9431 TT |
24 | 2017-11-27 Tom Tromey <tom@tromey.com> |
25 | ||
26 | * Makefile.in (SUBDIR_TUI_OBS): Redefine. | |
27 | (CONFIG_SRC_SUBDIR): Add tui. | |
28 | (%.o): Remove tui rule. | |
29 | ||
a26aa30c TT |
30 | 2017-11-27 Tom Tromey <tom@tromey.com> |
31 | ||
32 | * Makefile.in (SUBDIR_GCC_COMPILE_OBS): Redefine. | |
33 | (%.o): Remove compile rule. | |
34 | (CONFIG_SRC_SUBDIR): Add compile. | |
35 | ||
6f3cdf9a TT |
36 | 2017-11-27 Tom Tromey <tom@tromey.com> |
37 | ||
38 | * Makefile.in (SUBDIR_MI_OBS): Redefine. | |
39 | (%.o): Remove mi rule. | |
40 | (CONFIG_SRC_SUBDIR): Add mi. | |
41 | (COMMON_OBS): Use mi/mi-common.o | |
42 | ||
f06afa53 TT |
43 | 2017-11-27 Tom Tromey <tom@tromey.com> |
44 | ||
45 | * Makefile.in (SUBDIR_CLI_OBS): Redefine. | |
46 | (%.o): Remove cli rule. | |
47 | (CONFIG_SRC_SUBDIR): Add cli. | |
48 | ||
b22c88c2 TT |
49 | 2017-11-27 Tom Tromey <tom@tromey.com> |
50 | ||
51 | * configure.ac (CONFIG_SRC_SUBDIR): Don't subst. | |
52 | * configure: Rebuild. | |
53 | * Makefile.in (CONFIG_SRC_SUBDIR): Redefine. | |
54 | (CONFIG_DEP_SUBDIR): New variable. | |
55 | (%.o): Add order-only dependency. | |
56 | ($(CONFIG_DEP_SUBDIR)): New target. | |
57 | ||
ee9a09e9 DC |
58 | 2017-11-26 Dominik Czarnota <dominik.b.czarnota@gmail.com> |
59 | ||
60 | PR gdb/21945 | |
61 | * findcmd.c (_initialize_mem_search): Update find command help | |
62 | text. | |
63 | ||
e8e7d10c SM |
64 | 2017-11-26 Simon Marchi <simon.marchi@polymtl.ca> |
65 | ||
66 | * python/python.c (do_start_initialization): Change progname | |
67 | type to gdb::unique_xmalloc_ptr. Release the pointer when using | |
68 | Python 2. | |
69 | ||
6a997029 TT |
70 | 2017-11-26 Tom Tromey <tom@tromey.com> |
71 | ||
72 | * common/format.h: Add include guards. | |
73 | ||
41272101 TT |
74 | 2017-11-26 Tom Tromey <tom@tromey.com> |
75 | ||
76 | * nat/linux-personality.h (class | |
77 | maybe_disable_address_space_randomization): New class. | |
78 | (maybe_disable_address_space_randomization): Don't declare | |
79 | function. | |
80 | * nat/linux-personality.c (restore_personality) | |
81 | (make_disable_asr_cleanup): Remove. | |
82 | (maybe_disable_address_space_randomization): Now a constructor. | |
83 | (~maybe_disable_address_space_randomization): New destructor. | |
84 | * linux-nat.c (linux_nat_create_inferior): Update. | |
85 | ||
44287fd8 TT |
86 | 2017-11-26 Tom Tromey <tom@tromey.com> |
87 | ||
88 | * gcore.c (write_gcore_file_1): Use gdb::unique_xmalloc_ptr. | |
89 | ||
5ffd2cb7 UW |
90 | 2017-11-26 Ulrich Weigand <uweigand@de.ibm.com> |
91 | ||
92 | * spu-tdep.c (spu_software_single_step): Access SPU_LSLR_REGNUM as | |
93 | "cooked" register. Access only first four bytes of branch target | |
94 | registers. | |
95 | ||
0e5457dc SDJ |
96 | 2017-11-25 Sergio Durigan Junior <sergiodj@redhat.com> |
97 | ||
98 | PR gdb/22491 | |
99 | * stap-probe.c (relocate_address): New function. | |
100 | (stap_probe::get_relocated_address): Use 'relocate_address'. | |
101 | (stap_probe::set_semaphore): Use 'relocate_address' and pass | |
102 | 'm_sem_addr'. | |
103 | (stap_probe::clear_semaphore): Likewise. | |
104 | ||
deeeba55 PA |
105 | 2017-11-25 Pedro Alves <palves@redhat.com> |
106 | ||
107 | * dictionary.c: Include "safe-ctype.h". | |
108 | * minsyms.c: Include "safe-ctype.h". | |
109 | * minsyms.c (SYMBOL_HASH_NEXT): Use TOLOWER instead of tolower. | |
110 | ||
a81aaca0 PA |
111 | 2017-11-25 Pedro Alves <palves@redhat.com> |
112 | ||
113 | * completer.c (complete_line_internal_1): Skip spaces until the | |
114 | start of the command. | |
115 | ||
0662b6a7 PA |
116 | 2017-11-24 Pedro Alves <palves@redhat.com> |
117 | ||
118 | * cp-support.c (cp_symbol_name_matches_1): New, factored out from | |
119 | cp_fq_symbol_name_matches. Pass language_cplus to | |
120 | strncmp_with_mode. | |
121 | (cp_fq_symbol_name_matches): Call cp_symbol_name_matches_1. | |
122 | (selftests::test_cp_symbol_name_cmp): New. | |
123 | (_initialize_cp_support): Register "cp_symbol_name_matches" | |
124 | selftests. | |
125 | * language.c (default_symbol_name_matcher): Pass language_minimal | |
126 | to strncmp_iw_with_mode. | |
127 | * utils.c: Include "cp-support.h" and <algorithm>. | |
128 | (valid_identifier_name_char, cp_skip_operator_token, skip_ws) | |
129 | (cp_is_operator): New functions. | |
130 | (strncmp_iw_with_mode): Use them. Add language parameter. Don't | |
131 | skip whitespace in the symbol name when the lookup name doesn't | |
132 | have spaces, and vice versa. | |
133 | (strncmp_iw, strcmp_iw): Pass language to strncmp_iw_with_mode. | |
134 | * utils.h (strncmp_iw_with_mode): Add language parameter. | |
135 | ||
e547c119 JB |
136 | 2017-11-24 Joel Brobecker <brobecker@adacore.com> |
137 | ||
138 | * ada-lang.c (ada_exception_message_1, ada_exception_message): | |
139 | New functions. | |
140 | (print_it_exception): If available, display the exception | |
141 | message as well. | |
142 | * NEWS: Document new feature. | |
143 | ||
d7fcdff9 UW |
144 | 2017-11-24 Ulrich Weigand <uweigand@de.ibm.com> |
145 | ||
146 | * configure.nat <spu-linux>: Add fork-inferior.o to NATDEPFILES. | |
147 | ||
30649c14 PR |
148 | 2017-11-24 Philipp Rudo <prudo@linux.vnet.ibm.com> |
149 | ||
150 | * dtrace-probe.c (dtrace_probe::build_arg_exprs) | |
151 | (dtrace_probe::is_enabled, dtrace_probe::enable) | |
152 | (dtrace_probe::disable): Remove keyword 'struct' at for-range | |
153 | variable | |
154 | * probe.c (gen_ui_out_table_header_info) | |
155 | (print_ui_out_not_applicables): Remove keyword 'struct' at | |
156 | for-range variable | |
157 | ||
7696f5c9 AH |
158 | 2017-11-24 Alan Hayward <alan.hayward@arm.com> |
159 | ||
160 | * configure.tgt: Add arch/aarch64.o | |
161 | ||
8172f16b SM |
162 | 2017-11-24 Simon Marchi <simon.marchi@polymtl.ca> |
163 | ||
164 | * common/common-utils.h: Include poison.h. | |
165 | (xfree): Remove declaration, add definition with static_assert. | |
166 | * common/common-utils.c (xfree): Remove. | |
167 | * common/poison.h (IsMallocatable): Define. | |
168 | (IsFreeable): Define. | |
169 | (free): Delete for non-freeable types. | |
170 | (xnew): New. | |
171 | (XNEW): Undef and redefine. | |
172 | (xcnew): New. | |
173 | (XCNEW): Undef and redefine. | |
174 | (xdelete): New. | |
175 | (XDELETE): Undef and redefine. | |
176 | (xnewvec): New. | |
177 | (XNEWVEC): Undef and redefine. | |
178 | (xcnewvec): New. | |
179 | (XCNEWVEC): Undef and redefine. | |
180 | (xresizevec): New. | |
181 | (XRESIZEVEC): Undef and redefine. | |
182 | (xdeletevec): New. | |
183 | (XDELETEVEC): Undef and redefine. | |
184 | (xnewvar): New. | |
185 | (XNEWVAR): Undef and redefine. | |
186 | (xcnewvar): New. | |
187 | (XCNEWVAR): Undef and redefine. | |
188 | (xresizevar): New. | |
189 | (XRESIZEVAR): Undef and redefine. | |
190 | ||
7aabaf9d SM |
191 | 2017-11-24 Simon Marchi <simon.marchi@polymtl.ca> |
192 | ||
193 | * gdbthread.h (private_thread_info): Define structure type, add | |
194 | virtual pure destructor. | |
195 | (thread_info) <priv>: Change type to unique_ptr. | |
196 | <private_dtor>: Remove. | |
197 | * thread.c (add_thread_with_info): Adjust to use of unique_ptr. | |
198 | (private_thread_info::~private_thread_info): Provide default | |
199 | implementation. | |
200 | (thread_info::~thread_info): Don't call private_dtor nor | |
201 | manually free priv. | |
202 | * aix-thread.c (private_thread_info): Rename to ... | |
203 | (aix_thread_info): ... this. | |
204 | (get_aix_thread_info): New. | |
205 | (sync_threadlists): Adjust. | |
206 | (iter_tid): Adjust. | |
207 | (aix_thread_resume): Adjust. | |
208 | (aix_thread_fetch_registers): Adjust. | |
209 | (aix_thread_store_registers): Adjust. | |
210 | (aix_thread_extra_thread_info): Adjust. | |
211 | * darwin-nat.h (private_thread_info): Rename to ... | |
212 | (darwin_thread_info): ... this. | |
213 | (get_darwin_thread_info): New. | |
214 | * darwin-nat.c (darwin_init_thread_list): Adjust. | |
215 | (darwin_check_new_threads): Adjust. | |
216 | (thread_info_from_private_thread_info): Adjust. | |
217 | * linux-thread-db.c (private_thread_info): Rename to ... | |
218 | (thread_db_thread_info): ... this, initialize fields. | |
219 | (get_thread_db_thread_info): New. | |
220 | <dying>: Change type to bool. | |
221 | (update_thread_state): Adjust to type rename. | |
222 | (record_thread): Adjust to type rename an use of unique_ptr. | |
223 | (thread_db_pid_to_str): Likewise. | |
224 | (thread_db_extra_thread_info): Likewise. | |
225 | (thread_db_thread_handle_to_thread_info): Likewise. | |
226 | (thread_db_get_thread_local_address): Likewise. | |
227 | * nto-tdep.h (private_thread_info): Rename to ... | |
228 | (nto_thread_info): ... this, initialize fields. | |
229 | (get_nto_thread_info): New. | |
230 | <name>: Change type to std::string. | |
231 | * nto-tdep.c (nto_extra_thread_info): Adjust to type rename and | |
232 | use of unique_ptr. | |
233 | * nto-procfs.c (update_thread_private_data_name): Adjust to | |
234 | std::string change, allocate nto_private_thread_info with new. | |
235 | (update_thread_private_data): Adjust to unique_ptr. | |
236 | * remote.c (private_thread_info): Rename to ... | |
237 | (remote_thread_info): ... this, initialize data members with | |
238 | default values. | |
239 | <extra, name>: Change type to std::string. | |
240 | <thread_handle>: Change type to non-pointer. | |
241 | (free_private_thread_info): Remove. | |
242 | (get_private_info_thread): Rename to... | |
243 | (get_remote_thread_info): ... this, change return type, adjust to | |
244 | use of unique_ptr, use remote_thread_info constructor. | |
245 | (remote_add_thread): Adjust. | |
246 | (get_private_info_ptid): Rename to... | |
247 | (get_remote_thread_info): ...this, change return type. | |
248 | (remote_thread_name): Use get_remote_thread_info, adjust to | |
249 | change to std::string. | |
250 | (struct thread_item) <~thread_item>: Remove. | |
251 | <thread_handle>: Make non pointer. | |
252 | (start_thread): Adjust to thread_item::thread_handle type | |
253 | change. | |
254 | (remote_update_thread_list): Adjust to type name change, move | |
255 | strings from temporary to long-lived object instead of | |
256 | duplicating. | |
257 | (remote_threads_extra_info): Use get_remote_thread_info. | |
258 | (process_initial_stop_replies): Likewise. | |
259 | (resume_clear_thread_private_info): Likewise. | |
260 | (remote_resume): Adjust to type name change. | |
261 | (remote_commit_resume): Use get_remote_thread_info. | |
262 | (process_stop_reply): Adjust to type name change. | |
263 | (remote_stopped_by_sw_breakpoint): Use get_remote_thread_info. | |
264 | (remote_stopped_by_hw_breakpoint): Likewise. | |
265 | (remote_stopped_by_watchpoint): Likewise. | |
266 | (remote_stopped_data_address): Likewise. | |
267 | (remote_core_of_thread): Likewise. | |
268 | (remote_thread_handle_to_thread_info): Use | |
269 | get_private_info_thread, adjust to thread_handle field type | |
270 | change. | |
271 | ||
21fe1c75 SM |
272 | 2017-11-24 Simon Marchi <simon.marchi@polymtl.ca> |
273 | ||
274 | * remote.c (struct thread_item): Add constructor, disable copy | |
275 | construction and copy assignment, define default move | |
276 | construction and move assignment. | |
277 | <extra, name>: Change type to std::string. | |
278 | <core>: Initialize. | |
279 | <thread_handle>: Make non-pointer. | |
280 | (thread_item_t): Remove typedef. | |
281 | (DEF_VEC_O(thread_item_t)): Remove. | |
282 | (threads_listing_context) <contains_thread>: New method. | |
283 | <remove_thread>: New method. | |
284 | <items>: Change type to std::vector. | |
285 | (clear_threads_listing_context): Remove. | |
286 | (threads_listing_context_remove): Remove. | |
287 | (remote_newthread_step): Use thread_item constructor, adjust to | |
288 | change to std::vector. | |
289 | (start_thread): Use thread_item constructor, adjust to change to | |
290 | std::vector. | |
291 | (end_thread): Adjust to change to std::vector and std::string. | |
292 | (remote_get_threads_with_qthreadinfo): Use thread_item | |
293 | constructor, adjust to std::vector. | |
294 | (remote_update_thread_list): Adjust to change to std::vector and | |
295 | std::string, use threads_listing_context methods. | |
296 | (remove_child_of_pending_fork): Adjust. | |
297 | (remove_new_fork_children): Adjust. | |
298 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add rsp-low-selftests.c. | |
299 | (SUBDIR_UNITTESTS_OBS): Add rsp-low-selftests.o. | |
300 | * unittests/rsp-low-selftests.c: New file. | |
301 | * common/rsp-low.h: Include common/byte-vector.h. | |
302 | (hex2bin): New overload. | |
303 | * common/rsp-low.c (hex2bin): New overload. | |
304 | ||
089354bb SM |
305 | 2017-11-24 Simon Marchi <simon.marchi@ericsson.com> |
306 | ||
307 | * inferior.h (private_inferior): Define structure type, add | |
308 | virtual pure destructor. | |
309 | (inferior) <priv>: Change type to unique_ptr. | |
310 | * inferior.c (private_inferior::~private_inferior): Provide | |
311 | default implementation. | |
312 | (inferior::~inferior): Don't free priv field. | |
313 | (exit_inferior_1): Likewise. | |
314 | * darwin-nat.h (struct darwin_exception_info): Initialize fields. | |
315 | (darwin_exception_info): Remove typedef. | |
316 | (DEF_VEC_O (darwin_thread_t)); Remove. | |
317 | (private_inferior): Rename to ... | |
318 | (darwin_private_inferior): ... this, extend private_inferior. | |
319 | (get_darwin_inferior): New. | |
320 | <threads>: Change type to std::vector of darwin_thread_t pointers. | |
321 | * darwin-nat.c (darwin_check_new_threads): Adjust. | |
322 | (find_inferior_task_it): Adjust. | |
323 | (darwin_find_thread); Adjust. | |
324 | (darwin_suspend_inferior): Adjust. | |
325 | (darwin_resume_inferior): Adjust. | |
326 | (darwin_find_new_inferior): Adjust. | |
327 | (darwin_decode_notify_message): Adjust. | |
328 | (darwin_send_reply): Adjust. | |
329 | (darwin_resume_inferior_threads): Adjust. | |
330 | (darwin_suspend_inferior_threads): Adjust. | |
331 | (darwin_decode_message): Adjust. | |
332 | (darwin_wait): Adjust. | |
333 | (darwin_interrupt): Adjust. | |
334 | (darwin_deallocate_threads): Adjust. | |
335 | (darwin_mourn_inferior): Adjust, don't free private data. | |
336 | (darwin_reply_to_all_pending_messages): Adjust. | |
337 | (darwin_stop_inferior): Adjust. | |
338 | (darwin_setup_exceptions): Adjust. | |
339 | (darwin_kill_inferior): Adjust. | |
340 | (darwin_setup_request_notification): Adjust. | |
341 | (darwin_attach_pid): Adjust. | |
342 | (darwin_init_thread_list): Adjust. | |
343 | (darwin_setup_fake_stop_event): Adjust. | |
344 | (darwin_attach): Adjust. | |
345 | (darwin_detach): Adjust. | |
346 | (darwin_xfer_partial): Adjust. | |
347 | (set_enable_mach_exceptions): Adjust. | |
348 | (darwin_pid_to_exec_file): Adjust. | |
349 | (darwin_get_ada_task_ptid): Adjust. | |
350 | * darwin-nat-info.c (get_task_from_args): Adjust. | |
351 | (info_mach_ports_command): Adjust. | |
352 | (info_mach_region_command): Adjust. | |
353 | (info_mach_exceptions_command): Adjust. | |
354 | * remote.c (private_inferior): Rename to ... | |
355 | (remote_private_inferior): ... this, initialize fields. | |
356 | (get_remote_inferior); New. | |
357 | (remote_commit_resume): Use get_remote_inferior. | |
358 | (check_pending_event_prevents_wildcard_vcont_callback): Likewise. | |
359 | ||
d044bac8 PA |
360 | 2017-11-24 Pedro Alves <palves@redhat.com> |
361 | ||
362 | * NEWS: Mention linespecs and explicit locations, and completion | |
363 | improvements. | |
364 | ||
e8d58cba YQ |
365 | 2017-11-24 Yao Qi <yao.qi@linaro.org> |
366 | ||
367 | * regcache.c (regcache::dump): Remove footnote_register_size. | |
368 | ||
a63f2d2f YQ |
369 | 2017-11-24 Yao Qi <yao.qi@linaro.org> |
370 | ||
371 | * regcache.c (cooked_read_test): Add more test for readonly | |
372 | regcache. | |
373 | ||
1b30aaa5 YQ |
374 | 2017-11-24 Yao Qi <yao.qi@linaro.org> |
375 | ||
376 | * gdbarch-selftests.c (test_target_has_registers): Move it to | |
377 | target.c. | |
378 | (test_target_has_stack): Likewise. | |
379 | (test_target_has_memory): Likewise. | |
380 | (test_target_prepare_to_store): Likewise. | |
381 | (test_target_store_registers): Likewise. | |
382 | (test_target_ops): Likewise. | |
383 | * regcache.c: Include selftest-arch.h and gdbthread.h. | |
384 | (target_ops_no_register): New class. | |
385 | (test_target_fetch_registers): New. | |
386 | (test_target_store_registers): New. | |
387 | (test_target_xfer_partial): New. | |
388 | (readwrite_regcache): New. | |
389 | (cooked_read_test): New. | |
390 | (_initialize_regcache): Register the test. | |
391 | * target.c: (test_target_has_registers): Moved from | |
392 | gdbarch-selftests.c. | |
393 | (test_target_has_stack): Likewise. | |
394 | (test_target_has_memory): Likewise. | |
395 | (test_target_prepare_to_store): Likewise. | |
396 | (test_target_store_registers): Likewise. | |
397 | * target.h (test_target_ops): New class. | |
398 | ||
6654d750 AH |
399 | 2017-11-24 Alan Hayward <alan.hayward@arm.com> |
400 | ||
401 | * aarch64-tdep.c (_initialize_aarch64_tdep): Add target desc | |
402 | selftest. | |
403 | ||
49bdb7ee AH |
404 | 2017-11-24 Alan Hayward <alan.hayward@arm.com> |
405 | ||
406 | * aarch64-tdep.c (_initialize_aarch64_tdep): Remove init. | |
407 | * arch/aarch64.c (aarch64_create_target_description): Create | |
408 | new target description. | |
409 | * features/Makefile: Add new files. | |
410 | * features/aarch64.c: Remove file. | |
411 | * features/aarch64-core.c: New autogenerated file. | |
412 | * features/aarch64-fpu.c: New autogenerated file. | |
413 | * target-descriptions.c (maint_print_c_tdesc_cmd): Check for aarch64. | |
da434ccb AH |
414 | |
415 | 2017-11-24 Alan Hayward <alan.hayward@arm.com> | |
416 | ||
417 | * Makefile.in: Add new files. | |
418 | * aarch64-linux-nat.c (aarch64_linux_read_description): Call | |
419 | aarch64_read_description. | |
420 | * aarch64-linux-tdep.c (aarch64_linux_core_read_description): | |
421 | Call aarch64_read_description. | |
422 | * aarch64-tdep.c (aarch64_read_description): New function. | |
423 | (aarch64_gdbarch_init): Call aarch64_read_description. | |
424 | * aarch64-tdep.h (aarch64_read_description): New function. | |
425 | * arch/aarch64.c: New file. | |
426 | * configure.tgt: Add new files. | |
427 | ||
98ead37e YQ |
428 | 2017-11-24 Yao Qi <yao.qi@linaro.org> |
429 | ||
430 | * mi/mi-main.c (register_changed_p): Update. | |
431 | * value.c (value_contents_bits_eq): Change return type. | |
432 | (value_contents_eq): Likewise. | |
433 | * value.h: Update comments. | |
434 | ||
62ad7ce7 YQ |
435 | 2017-11-24 Yao Qi <yao.qi@linaro.org> |
436 | ||
437 | * mi/mi-main.c (mi_cmd_data_list_changed_registers): Remove | |
438 | local 'changed'. Remove error. | |
439 | (register_changed_p): Change return type to bool. | |
440 | ||
506fe5f4 YQ |
441 | 2017-11-24 Yao Qi <yao.qi@linaro.org> |
442 | ||
443 | * arch/tic6x.c: New file. | |
444 | * arch/tic6x.h: New file. | |
445 | * features/Makefile (FEATURE_XMLFILES): Add tic6x-c6xp.xml, | |
446 | tic6x-core.xml and tic6x-gp.xml. | |
447 | * features/tic6x-c6xp.c: Generated. | |
448 | * features/tic6x-core.c: Generated. | |
449 | * features/tic6x-gp.c: Generated. | |
450 | * target-descriptions.c (maint_print_c_tdesc_cmd): Match | |
451 | "tic6x-". | |
452 | ||
00ea2e2a SM |
453 | 2017-11-23 Simon Marchi <simon.marchi@ericsson.com> |
454 | ||
455 | * mi/mi-main.c (list_available_thread_groups): Change map value | |
456 | type to std::vector. | |
457 | ||
f45e2a77 SM |
458 | 2017-11-23 Simon Marchi <simon.marchi@ericsson.com> |
459 | ||
460 | * osdata.c (osdata_end_column, get_osdata): Remove std::move. | |
461 | ||
bd046f64 SM |
462 | 2017-11-23 Simon Marchi <simon.marchi@ericsson.com> |
463 | ||
464 | * varobj.c (struct varobj_dynamic) <children_requested_>: Rename | |
465 | back to... | |
466 | <children_requested>: ... this. | |
467 | (varobj_get_num_children, varobj_update): Adjust. | |
468 | ||
4c37490d SM |
469 | 2017-11-23 Simon Marchi <simon.marchi@ericsson.com> |
470 | ||
471 | * ada-varobj.c (ada_value_is_changeable_p): Change int to bool where applicable. | |
472 | (ada_value_has_mutated): Likewise. | |
473 | * c-varobj.c (varobj_is_anonymous_child): Likewise. | |
474 | (c_is_path_expr_parent): Likewise. | |
475 | * mi/mi-cmd-var.c (varobj_update_one): Likewise. | |
476 | (mi_cmd_var_set_frozen): Likewise. | |
477 | (mi_cmd_var_update_iter): Likewise. | |
478 | (mi_cmd_var_update): Likewise. | |
479 | * varobj.c (pretty_printing): Likewise. | |
480 | (varobj_enable_pretty_printing): Likewise. | |
481 | (struct varobj_root) <floating, is_valid>: Likewise. | |
482 | (struct varobj_dynamic) <children_requested>: Likewise. | |
483 | (delete_variable): Likewise. | |
484 | (delete_variable_1): Likewise. | |
485 | (install_variable): Likewise. | |
486 | (update_type_if_necessary): Likewise. | |
487 | (install_new_value): Likewise. | |
488 | (value_of_root): Likewise. | |
489 | (is_root_p): Likewise. | |
490 | (varobj_create): Likewise. | |
491 | (varobj_delete): Likewise. | |
492 | (varobj_has_more): Likewise. | |
493 | (varobj_set_frozen): Likewise. | |
494 | (varobj_get_frozen): Likewise. | |
495 | (install_dynamic_child): Likewise. | |
496 | (dynamic_varobj_has_child_method): Likewise. | |
497 | (update_dynamic_varobj_children): Likewise. | |
498 | (varobj_get_num_children): Likewise. | |
499 | (varobj_list_children): Likewise. | |
500 | (is_path_expr_parent): Likewise. | |
501 | (varobj_default_is_path_expr_parent): Likewise. | |
502 | (varobj_is_dynamic_p): Likewise. | |
503 | (varobj_set_value): Likewise. | |
504 | (varobj_value_has_mutated): Likewise. | |
505 | (varobj_update): Likewise. | |
506 | (check_scope): Likewise. | |
507 | (value_of_root_1): Likewise. | |
508 | (varobj_value_get_print_value): Likewise. | |
509 | (varobj_editable_p): Likewise. | |
510 | (varobj_value_is_changeable_p): Likewise. | |
511 | (varobj_floating_p): Likewise. | |
512 | (varobj_default_value_is_changeable_p): Likewise. | |
513 | (varobj_invalidate_iter): Likewise. | |
514 | * varobj.h (struct varobj_update_result) <type_changed, | |
515 | children_changed, changed, value_installed>: Likewise. | |
516 | (struct varobj) <updated, frozen, not_fetched>: Likewise. | |
517 | (struct lang_varobj_ops) <value_is_changeable_p, | |
518 | value_has_mutated, is_path_expr_parent>: Likewise. | |
519 | (varobj_delete): Likewise. | |
520 | (varobj_set_frozen): Likewise. | |
521 | (varobj_get_frozen): Likewise. | |
522 | (varobj_set_value): Likewise. | |
523 | (varobj_update): Likewise. | |
524 | (varobj_editable_p): Likewise. | |
525 | (varobj_floating_p): Likewise. | |
526 | (varobj_has_more): Likewise. | |
527 | (varobj_is_dynamic_p): Likewise. | |
528 | (varobj_default_value_is_changeable_p): Likewise. | |
529 | (varobj_value_is_changeable_p): Likewise. | |
530 | (varobj_is_anonymous_child): Likewise. | |
531 | (varobj_default_is_path_expr_parent): Likewise. | |
532 | ||
9c23b42f SDJ |
533 | 2017-11-22 Sergio Durigan Junior <sergiodj@redhat.com> |
534 | ||
535 | * dtrace-probe.c (struct probe_ops dtrace_probe_ops): Delete. | |
536 | (struct dtrace_probe_arg) <dtrace_probe_arg>: New constructor. | |
537 | <type_str>: Convert to 'std::string'. | |
538 | <expr>: Convert to 'expression_up'. | |
539 | (dtrace_probe_arg_s): Delete type and VEC. | |
540 | (dtrace_probe_enabler_s): Likewise. | |
541 | (struct dtrace_probe): Replace by... | |
542 | (class dtrace_static_probe_ops): ...this and... | |
543 | (class dtrace_probe): ...this. | |
544 | (dtrace_probe_is_linespec): Rename to... | |
545 | (dtrace_static_probe_ops::is_linespec): ...this. Adjust code | |
546 | to reflect change. | |
547 | (dtrace_process_dof_probe): Use 'std::vector' instead of VEC. | |
548 | Adjust code. Create new instance of 'dtrace_probe'. | |
549 | (dtrace_build_arg_exprs): Rename to... | |
550 | (dtrace_probe::build_arg_exprs): ...this. Adjust code to | |
551 | reflect change. | |
552 | (dtrace_get_probes): Rename to... | |
553 | (dtrace_static_probe_ops::get_probes): ...this. Adjust code | |
554 | to reflect change. | |
555 | (dtrace_get_arg): Rename to... | |
556 | (dtrace_probe::get_arg_by_number): ...this. Adjust code to | |
557 | reflect change. | |
558 | (dtrace_probe_is_enabled): Rename to... | |
559 | (dtrace_probe::is_enabled): ...this. Adjust code to reflect | |
560 | change. | |
561 | (dtrace_get_probe_address): Rename to... | |
562 | (dtrace_probe::get_relocated_address): ...this. Adjust code | |
563 | to reflect change. | |
564 | (dtrace_get_probe_argument_count): Rename to... | |
565 | (dtrace_probe::get_argument_count): ...this. Adjust code to | |
566 | reflect change. | |
567 | (dtrace_can_evaluate_probe_arguments): Rename to... | |
568 | (dtrace_probe::can_evaluate_arguments): ...this. Adjust code | |
569 | to reflect change. | |
570 | (dtrace_evaluate_probe_argument): Rename to... | |
571 | (dtrace_probe::evaluate_argument): ...this. Adjust code to | |
572 | reflect change. | |
573 | (dtrace_compile_to_ax): Rename to... | |
574 | (dtrace_probe::compile_to_ax): ...this. Adjust code to | |
575 | reflect change. | |
576 | (dtrace_probe_destroy): Delete. | |
577 | (dtrace_type_name): Rename to... | |
578 | (dtrace_static_probe_ops::type_name): ...this. Adjust code to | |
579 | reflect change. | |
580 | (dtrace_probe::get_static_ops): New method. | |
581 | (dtrace_gen_info_probes_table_header): Rename to... | |
582 | (dtrace_static_probe_ops::gen_info_probes_table_header): | |
583 | ...this. Adjust code to reflect change. | |
584 | (dtrace_gen_info_probes_table_values): Rename to... | |
585 | (dtrace_probe::gen_info_probes_table_values): ...this. Adjust | |
586 | code to reflect change. | |
587 | (dtrace_enable_probe): Rename to... | |
588 | (dtrace_probe::enable_probe): ...this. Adjust code to reflect | |
589 | change. | |
590 | (dtrace_disable_probe): Rename to... | |
591 | (dtrace_probe::disable_probe): ...this. Adjust code to reflect | |
592 | change. | |
593 | (struct probe_ops dtrace_probe_ops): Delete. | |
594 | (info_probes_dtrace_command): Call 'info_probes_for_spops' | |
595 | instead of 'info_probes_for_ops'. | |
596 | (_initialize_dtrace_probe): Use 'all_static_probe_ops' instead | |
597 | of 'all_probe_ops'. | |
598 | ||
0e9ae10f SDJ |
599 | 2017-11-22 Sergio Durigan Junior <sergiodj@redhat.com> |
600 | Simon Marchi <simark@simark.ca> | |
601 | ||
602 | * stap-probe.c (struct probe_ops stap_probe_ops): Delete | |
603 | variable. | |
604 | (struct stap_probe_arg) <stap_probe_arg>: New constructor. | |
605 | <aexpr>: Change type to 'expression_up'. | |
606 | (stap_probe_arg_s): Delete type and VEC. | |
607 | (struct stap_probe): Delete. Replace by... | |
608 | (class stap_static_probe_ops): ...this and... | |
609 | (class stap_probe): ...this. Rename variables to add 'm_' | |
610 | prefix. Do not use 'union' for arguments anymore. | |
611 | (stap_get_expected_argument_type): Receive probe name instead | |
612 | of 'struct stap_probe'. Adjust code. | |
613 | (stap_parse_probe_arguments): Rename to... | |
614 | (stap_probe::parse_arguments): ...this. Adjust code to | |
615 | reflect change. | |
616 | (stap_get_probe_address): Rename to... | |
617 | (stap_probe::get_relocated_address): ...this. Adjust code | |
618 | to reflect change. | |
619 | (stap_get_probe_argument_count): Rename to... | |
620 | (stap_probe::get_argument_count): ...this. Adjust code | |
621 | to reflect change. | |
622 | (stap_get_arg): Rename to... | |
623 | (stap_probe::get_arg_by_number'): ...this. Adjust code to | |
624 | reflect change. | |
625 | (can_evaluate_probe_arguments): Rename to... | |
626 | (stap_probe::can_evaluate_arguments): ...this. Adjust code | |
627 | to reflect change. | |
628 | (stap_evaluate_probe_argument): Rename to... | |
629 | (stap_probe::evaluate_argument): ...this. Adjust code | |
630 | to reflect change. | |
631 | (stap_compile_to_ax): Rename to... | |
632 | (stap_probe::compile_to_ax): ...this. Adjust code to | |
633 | reflect change. | |
634 | (stap_probe_destroy): Delete. | |
635 | (stap_modify_semaphore): Adjust comment. | |
636 | (stap_set_semaphore): Rename to... | |
637 | (stap_probe::set_semaphore): ...this. Adjust code to reflect | |
638 | change. | |
639 | (stap_clear_semaphore): Rename to... | |
640 | (stap_probe::clear_semaphore): ...this. Adjust code to | |
641 | reflect change. | |
642 | (stap_probe::get_static_ops): New method. | |
643 | (handle_stap_probe): Adjust code to create instance of | |
644 | 'stap_probe'. | |
645 | (stap_get_probes): Rename to... | |
646 | (stap_static_probe_ops::get_probes): ...this. Adjust code to | |
647 | reflect change. | |
648 | (stap_probe_is_linespec): Rename to... | |
649 | (stap_static_probe_ops::is_linespec): ...this. Adjust code to | |
650 | reflect change. | |
651 | (stap_type_name): Rename to... | |
652 | (stap_static_probe_ops::type_name): ...this. Adjust code to | |
653 | reflect change. | |
654 | (stap_gen_info_probes_table_header): Rename to... | |
655 | (stap_static_probe_ops::gen_info_probes_table_header): | |
656 | ...this. Adjust code to reflect change. | |
657 | (stap_gen_info_probes_table_values): Rename to... | |
658 | (stap_probe::gen_info_probes_table_values): ...this. Adjust | |
659 | code to reflect change. | |
660 | (struct probe_ops stap_probe_ops): Delete. | |
661 | (info_probes_stap_command): Use 'info_probes_for_spops' | |
662 | instead of 'info_probes_for_ops'. | |
663 | (_initialize_stap_probe): Use 'all_static_probe_ops' instead | |
664 | of 'all_probe_ops'. | |
665 | ||
935676c9 SDJ |
666 | 2017-11-22 Sergio Durigan Junior <sergiodj@redhat.com> |
667 | ||
668 | * break-catch-throw.c (fetch_probe_arguments): Use | |
669 | 'probe.prob' instead of 'probe.probe'. | |
670 | * breakpoint.c (create_longjmp_master_breakpoint): Call | |
671 | 'can_evaluate_arguments' and 'get_relocated_address' methods | |
672 | from probe. | |
673 | (create_exception_master_breakpoint): Likewise. | |
674 | (add_location_to_breakpoint): Use 'sal->prob' instead of | |
675 | 'sal->probe'. | |
676 | (bkpt_probe_insert_location): Call 'set_semaphore' method from | |
677 | probe. | |
678 | (bkpt_probe_remove_location): Likewise, for 'clear_semaphore'. | |
679 | * elfread.c (elf_get_probes): Use 'static_probe_ops' instead | |
680 | of 'probe_ops'. | |
681 | (probe_key_free): Call 'delete' on probe. | |
682 | (check_exception_resume): Use 'probe.prob' instead of | |
683 | 'probe.probe'. | |
684 | * location.c (string_to_event_location_basic): Call | |
685 | 'probe_linespec_to_static_ops'. | |
686 | * probe.c (class any_static_probe_ops): New class. | |
687 | (any_static_probe_ops any_static_probe_ops): New variable. | |
688 | (parse_probes_in_pspace): Receive 'static_probe_ops' as | |
689 | argument. Adjust code to reflect change. | |
690 | (parse_probes): Use 'static_probe_ops' instead of | |
691 | 'probe_ops'. Adjust code to reflect change. | |
692 | (find_probes_in_objfile): Call methods to get name and | |
693 | provider from probe. | |
694 | (find_probe_by_pc): Use 'result.prob' instead of | |
695 | 'result.probe'. Call 'get_relocated_address' method from | |
696 | probe. | |
697 | (collect_probes): Adjust comment and argument list to receive | |
698 | 'static_probe_ops' instead of 'probe_ops'. Adjust code to | |
699 | reflect change. Call necessary methods from probe. | |
700 | (compare_probes): Call methods to get name and provider from | |
701 | probes. | |
702 | (gen_ui_out_table_header_info): Receive 'static_probe_ops' | |
703 | instead of 'probe_ops'. Use 'std::vector' instead of VEC, | |
704 | adjust code accordingly. | |
705 | (print_ui_out_not_applicables): Likewise. | |
706 | (info_probes_for_ops): Rename to... | |
707 | (info_probes_for_spops): ...this. Receive 'static_probe_ops' | |
708 | as argument instead of 'probe_ops'. Adjust code. Call | |
709 | necessary methods from probe. | |
710 | (info_probes_command): Use 'info_probes_for_spops'. | |
711 | (enable_probes_command): Pass correct argument to | |
712 | 'collect_probes'. Call methods from probe. | |
713 | (disable_probes_command): Likewise. | |
714 | (get_probe_address): Move to 'any_static_probe_ops::get_address'. | |
715 | (get_probe_argument_count): Move to | |
716 | 'any_static_probe_ops::get_argument_count'. | |
717 | (can_evaluate_probe_arguments): Move to | |
718 | 'any_static_probe_ops::can_evaluate_arguments'. | |
719 | (evaluate_probe_argument): Move to | |
720 | 'any_static_probe_ops::evaluate_argument'. | |
721 | (probe_safe_evaluate_at_pc): Use 'probe.prob' instead of | |
722 | 'probe.probe'. | |
723 | (probe_linespec_to_ops): Rename to... | |
724 | (probe_linespec_to_static_ops): ...this. Adjust code. | |
725 | (probe_any_is_linespec): Rename to... | |
726 | (any_static_probe_ops::is_linespec): ...this. | |
727 | (probe_any_get_probes): Rename to... | |
728 | (any_static_probe_ops::get_probes): ...this. | |
729 | (any_static_probe_ops::type_name): New method. | |
730 | (any_static_probe_ops::gen_info_probes_table_header): New | |
731 | method. | |
732 | (compute_probe_arg): Use 'pc_probe.prob' instead of | |
733 | 'pc_probe.probe'. Call methods from probe. | |
734 | (compile_probe_arg): Likewise. | |
735 | (std::vector<const probe_ops *> all_probe_ops): Delete. | |
736 | (std::vector<const static_probe_ops *> all_static_probe_ops): | |
737 | New variable. | |
738 | (_initialize_probe): Use 'all_static_probe_ops' instead of | |
739 | 'all_probe_ops'. | |
740 | * probe.h (struct info_probe_column) <field_name>: Delete | |
741 | extraneous newline | |
742 | (info_probe_column_s): Delete type and VEC. | |
743 | (struct probe_ops): Delete. Replace with... | |
744 | (class static_probe_ops): ...this and... | |
745 | (clas probe): ...this. | |
746 | (struct bound_probe) <bound_probe>: Delete extraneous | |
747 | newline. Adjust constructor to receive 'probe' instead of | |
748 | 'struct probe'. | |
749 | <probe>: Rename to... | |
750 | <prob>: ...this. Delete extraneous newline. | |
751 | <objfile>: Delete extraneous newline. | |
752 | (register_probe_ops): Delete unused prototype. | |
753 | (info_probes_for_ops): Rename to... | |
754 | (info_probes_for_spops): ...this. Adjust comment. | |
755 | (get_probe_address): Move to 'probe::get_address'. | |
756 | (get_probe_argument_count): Move to | |
757 | 'probe::get_argument_count'. | |
758 | (can_evaluate_probe_arguments): Move to | |
759 | 'probe::can_evaluate_arguments'. | |
760 | (evaluate_probe_argument): Move to 'probe::evaluate_argument'. | |
761 | * solib-svr4.c (struct svr4_info): Adjust comment. | |
762 | (struct probe_and_action) <probe>: Rename to... | |
763 | <prob>: ...this. | |
764 | (register_solib_event_probe): Receive 'probe' instead of | |
765 | 'struct probe' as argument. Use 'prob' instead of 'probe' | |
766 | when applicable. | |
767 | (solib_event_probe_action): Call 'get_argument_count' method | |
768 | from probe. Adjust comment. | |
769 | (svr4_handle_solib_event): Adjust comment. Call | |
770 | 'evaluate_argument' method from probe. | |
771 | (svr4_create_probe_breakpoints): Call 'get_relocated_address' | |
772 | from probe. | |
773 | (svr4_create_solib_event_breakpoints): Use 'probe' instead of | |
774 | 'struct probe'. Call 'can_evaluate_arguments' from probe. | |
775 | * symfile.h: Forward declare 'class probe' instead of 'struct | |
776 | probe'. | |
777 | * symtab.h: Likewise. | |
778 | (struct symtab_and_line) <probe>: Rename to... | |
779 | <prob>: ...this. | |
780 | * tracepoint.c (start_tracing): Use 'prob' when applicable. | |
781 | Call probe methods. | |
782 | (stop_tracing): Likewise. | |
783 | ||
8f6cb6c3 JB |
784 | 2017-11-22 Joel Brobecker <brobecker@adacore.com> |
785 | ||
786 | * ravenscar-thread.c (ravenscar_inferior_created): Remove | |
787 | trailing newline at end of string in call to warning. | |
788 | ||
479f8de1 SM |
789 | 2017-11-22 Simon Marchi <simon.marchi@polymtl.ca> |
790 | ||
791 | * osdata.h: Include vector isntead of vec.h. | |
792 | (osdata_column_s): Remove typedef. | |
793 | (struct osdata_column): Add constructor. | |
794 | <name, value>: Change type to std::string. | |
795 | (DEF_VEC_O (osdata_column_s)): Remove. | |
796 | (osdata_item_s): Remove typedef. | |
797 | (struct osdata_item) <columns>: Change type to std::vector. | |
798 | (DEF_VEC_O (osdata_item_s)): Remove. | |
799 | (struct osdata): Add constructor. | |
800 | <type>: Change type to std::string. | |
801 | <items>: Change type to std::vector. | |
802 | (osdata_p): Remove typedef. | |
803 | (DEF_VEC_P (osdata_p)): Remove. | |
804 | (osdata_parse): Return a unique_ptr. | |
805 | (osdata_free): Remove. | |
806 | (make_cleanup_osdata_free): Remove. | |
807 | (get_osdata): Return a unique_ptr. | |
808 | (get_osdata_column): Return pointer to std::string, take a | |
809 | reference to osdata_item as parameter. | |
810 | * osdata.c (struct osdata_parsing_data) <osdata>: Change type to | |
811 | unique_ptr. | |
812 | <property_name>: Change type to std::string. | |
813 | (osdata_start_osdata): Allocate osdata with new and adjust. | |
814 | (osdata_start_item): Adjust. | |
815 | (osdata_start_column): Adjust. | |
816 | (osdata_end_column): Adjust. | |
817 | (clear_parsing_data): Remove. | |
818 | (osdata_parse): Return a unique_ptr and adjust, remove cleanup. | |
819 | (osdata_item_clear): Remove. | |
820 | (get_osdata): return a unique_ptr and adjust. | |
821 | (get_osdata_column): Return a pointer to std::string and adjust. | |
822 | (info_osdata): Adjust. | |
823 | * mi/mi-main.c: Include <map>. | |
824 | (free_vector_of_osdata_items): Remove. | |
825 | (list_available_thread_groups): Adjust, use std::map instead of | |
826 | splay tree. | |
827 | ||
41bd68f5 SM |
828 | 2017-11-22 Simon Marchi <simon.marchi@ericsson.com> |
829 | ||
830 | * stack.c (iterate_over_block_locals): Add LOC_OPTIMIZED_OUT | |
831 | case in switch. | |
832 | ||
7e2fd2f4 SM |
833 | 2017-11-22 Simon Marchi <simon.marchi@polymtl.ca> |
834 | ||
835 | * varobj.h (DEF_VEC_P (varobj_p)): Remove. | |
836 | ||
0604393c SM |
837 | 2017-11-22 Simon Marchi <simon.marchi@polymtl.ca> |
838 | ||
839 | * varobj.h (struct varobj_update_result): Add constructor, add | |
840 | move constructor, disable copy and assign, initialize fields. | |
841 | <newobj>: Change type to std::vector. | |
842 | (varobj_update): Return std::vector. | |
843 | * varobj.c (install_dynamic_child): Change VEC parameters to | |
844 | std::vector and adjust. | |
845 | (update_dynamic_varobj_children): Likewise. | |
846 | (varobj_update): Return std::vector and adjust. | |
847 | * mi/mi-cmd-var.c (varobj_update_one): Adjust to vector changes. | |
848 | ||
ddf0ea08 SM |
849 | 2017-11-22 Simon Marchi <simon.marchi@polymtl.ca> |
850 | ||
851 | * varobj.h (struct varobj) <parent>: Remove const. | |
852 | <children>: Change type to std::vector. | |
853 | (varobj_list_children): Return std::vector const reference. | |
854 | (varobj_restrict_range): Change parameter type to std::vector | |
855 | const reference. | |
856 | * varobj.c (varobj_has_more): Adjust. | |
857 | (varobj_restrict_range): Change parameter type to std::vector | |
858 | const reference and adjust. | |
859 | (install_dynamic_child): Adjust. | |
860 | (update_dynamic_varobj_children): Adjust. | |
861 | (varobj_list_children): Return std::vector const reference and | |
862 | adjust. | |
863 | (varobj_add_child): Adjust. | |
864 | (update_type_if_necessary): Adjust. | |
865 | (varobj_update): Adjust. | |
866 | (delete_variable_1): Adjust. | |
867 | * ada-varobj.c (ada_value_has_mutated): Adjust. | |
868 | * mi/mi-cmd-var.c (mi_cmd_var_list_children): Adjust. | |
869 | ||
9e5b9d2b SM |
870 | 2017-11-22 Simon Marchi <simon.marchi@polymtl.ca> |
871 | ||
872 | * varobj.h (struct varobj): Add constructor and destructor, | |
873 | initialize fields. | |
874 | * varobj.c (struct varobj_root): Initialize fields. | |
875 | (struct varobj_dynamic): Initialize fields. | |
876 | (varobj_create): Use unique_ptr instead of cleanup. Create | |
877 | varobj with new instead of new_root_variable. | |
878 | (delete_variable_1): Free variable with delete instead of | |
879 | free_variable. | |
880 | (create_child_with_value): Create variable with new instead of | |
881 | new_variable. | |
882 | (varobj::varobj): New. | |
883 | (varobj::~varobj): New (body mostly coming from free_variable). | |
884 | (new_variable): Remove. | |
885 | (free_variable): Remove. | |
886 | (do_free_variable_cleanup): Remove. | |
887 | (make_cleanup_free_variable): Remove. | |
888 | ||
fc35dab1 UW |
889 | 2017-11-22 Ulrich Weigand <uweigand@de.ibm.com> |
890 | ||
891 | * core-regset.c: Remove file. | |
892 | * Makefile.in (ALLDEPFILES): Remove core-regset.c. | |
893 | ||
2400729e UW |
894 | 2017-11-22 Ulrich Weigand <uweigand@de.ibm.com> |
895 | ||
896 | * NEWS: Document use of GNU MPFR. | |
897 | * README: Likewise. | |
898 | ||
899 | * Makefile.in (LIBMPFR): Add define. | |
900 | (CLIBS): Add $(LIBMPFR). | |
901 | * configure.ac: Add --with-mpfr configure option. | |
902 | * configure: Regenerate. | |
903 | * config.in: Regenerate. | |
904 | ||
905 | * target-float.c [HAVE_LIBMPFR]: Include <mpfr.h>. | |
906 | (class mpfr_float_ops): New type. | |
907 | (mpfr_float_ops::from_target): Two new overloaded functions. | |
908 | (mpfr_float_ops::to_target): Likewise. | |
909 | (mpfr_float_ops::to_string): New function. | |
910 | (mpfr_float_ops::from_string): Likewise. | |
911 | (mpfr_float_ops::to_longest): Likewise. | |
912 | (mpfr_float_ops::from_longest): Likewise. | |
913 | (mpfr_float_ops::from_ulongest): Likewise. | |
914 | (mpfr_float_ops::to_host_double): Likewise. | |
915 | (mpfr_float_ops::from_host_double): Likewise. | |
916 | (mpfr_float_ops::convert): Likewise. | |
917 | (mpfr_float_ops::binop): Likewise. | |
918 | (mpfr_float_ops::compare): Likewise. | |
919 | (get_target_float_ops): Use mpfr_float_ops if available. | |
920 | ||
7a26362d UW |
921 | 2017-11-22 Ulrich Weigand <uweigand@de.ibm.com> |
922 | ||
923 | * target-float.c: Do not include <math.h>. | |
924 | Include <cmath> and <limits>. | |
925 | (DOUBLEST): Do not define. | |
926 | (class target_float_ops): New type. | |
927 | (class host_float_ops): New templated type. | |
928 | (class decimal_float_ops): New type. | |
929 | ||
930 | (floatformat_to_doublest): Rename to ... | |
931 | (host_float_ops<T>::from_target): ... this. Use template type T | |
932 | instead of DOUBLEST. Use C++ math routines. Update recursive calls. | |
933 | (host_float_ops<T>::from_target): New overload using a type argument. | |
934 | (floatformat_from_doublest): Rename to ... | |
935 | (host_float_ops<T>::to_target): ... this. Use template type T | |
936 | instead of DOUBLEST. Use C++ math routines. Update recursive calls. | |
937 | (host_float_ops<T>::to_target): New overload using a type argument. | |
938 | (floatformat_printf_format): New function. | |
939 | (struct printf_length_modifier): New templated type. | |
940 | (floatformat_to_string): Rename to ... | |
941 | (host_float_ops<T>::to_string): ... this. Use type instead of | |
942 | floatformat argument. Use floatformat_printf_format and | |
943 | printf_length_modifier. Remove special handling of invalid numbers, | |
944 | infinities and NaN (moved to target_float_to_string). | |
945 | (struct scanf_length_modifier): New templated type. | |
946 | (floatformat_from_string): Rename to ... | |
947 | (host_float_ops<T>::from_string): ... this. Use type instead of | |
948 | floatformat argument. Use scanf_length_modifier. | |
949 | (floatformat_to_longest): Rename to ... | |
950 | (host_float_ops<T>::to_longest): ... this. Use type instead of | |
951 | floatformat argument. Handle out-of-range values deterministically. | |
952 | (floatformat_from_longest): Rename to ... | |
953 | (host_float_ops<T>::from_longest): ... this. Use type instead of | |
954 | floatformat argument. | |
955 | (floatformat_from_ulongest): Rename to ... | |
956 | (host_float_ops<T>::from_ulongest): ... this. Use type instead of | |
957 | floatformat argument. | |
958 | (floatformat_to_host_double): Rename to ... | |
959 | (host_float_ops<T>::to_host_double): ... this. Use type instead of | |
960 | floatformat argument. | |
961 | (floatformat_from_host_double): Rename to ... | |
962 | (host_float_ops<T>::from_host_double): ... this. Use type instead of | |
963 | floatformat argument. | |
964 | (floatformat_convert): Rename to ... | |
965 | (host_float_ops<T>::convert): ... this. Use type instead of | |
966 | floatformat arguments. Remove handling of no-op conversions. | |
967 | (floatformat_binop): Rename to ... | |
968 | (host_float_ops<T>::binop): ... this. Use type instead of | |
969 | floatformat arguments. | |
970 | (floatformat_compare): Rename to ... | |
971 | (host_float_ops<T>::compare): ... this. Use type instead of | |
972 | floatformat arguments. | |
973 | ||
974 | (match_endianness): Use type instead of length/byte_order arguments. | |
975 | (set_decnumber_context): Likewise. | |
976 | (decimal_from_number): Likewise. Update calls. | |
977 | (decimal_to_number): Likewise. | |
978 | (decimal_is_zero): Likewise. Update calls. Move to earlier in file. | |
979 | (decimal_float_ops::to_host_double): New dummy function. | |
980 | (decimal_float_ops::from_host_double): Likewise. | |
981 | (decimal_to_string): Rename to ... | |
982 | (decimal_float_ops::to_string): ... this. Use type instead of | |
983 | length/byte_order arguments. Update calls. | |
984 | (decimal_from_string): Rename to ... | |
985 | (decimal_float_ops::from_string): ... this. Use type instead of | |
986 | length/byte_order arguments. Update calls. | |
987 | (decimal_from_longest): Rename to ... | |
988 | (decimal_float_ops::from_longest): ... this. Use type instead of | |
989 | length/byte_order arguments. Update calls. | |
990 | (decimal_from_ulongest): Rename to ... | |
991 | (decimal_float_ops::from_ulongest): ... this. Use type instead of | |
992 | length/byte_order arguments. Update calls. | |
993 | (decimal_to_longest): Rename to ... | |
994 | (decimal_float_ops::to_longest): ... this. Use type instead of | |
995 | length/byte_order arguments. Update calls. | |
996 | (decimal_binop): Rename to ... | |
997 | (decimal_float_ops::binop): ... this. Use type instead of | |
998 | length/byte_order arguments. Update calls. | |
999 | (decimal_compare): Rename to ... | |
1000 | (decimal_float_ops::compare): ... this. Use type instead of | |
1001 | length/byte_order arguments. Update calls. | |
1002 | (decimal_convert): Rename to ... | |
1003 | (decimal_float_ops::convert): ... this. Use type instead of | |
1004 | length/byte_order arguments. Update calls. | |
1005 | ||
1006 | (target_float_same_category_p): New function. | |
1007 | (target_float_same_format_p): Likewise. | |
1008 | (target_float_format_length): Likewise. | |
1009 | (enum target_float_ops_kind): New type. | |
1010 | (get_target_float_ops_kind): New function. | |
1011 | (get_target_float_ops): Three new overloaded functions. | |
1012 | ||
1013 | (target_float_is_zero): Update call. | |
1014 | (target_float_to_string): Add special handling of invalid numbers, | |
1015 | infinities and NaN (moved from floatformat_to_string). Use | |
1016 | target_float_ops callback. | |
1017 | (target_float_from_string): Use target_float_ops callback. | |
1018 | (target_float_to_longest): Likewise. | |
1019 | (target_float_from_longest): Likewise. | |
1020 | (target_float_from_ulongest): Likewise. | |
1021 | (target_float_to_host_double): Likewise. | |
1022 | (target_float_from_host_double): Likewise. | |
1023 | (target_float_convert): Add special case for no-op conversions. | |
1024 | Use target_float_ops callback. | |
1025 | (target_float_binop): Use target_float_ops callback. | |
1026 | (target_float_compare): Likewise. | |
1027 | ||
a9f26f60 YQ |
1028 | 2017-11-22 Yao Qi <yao.qi@linaro.org> |
1029 | ||
1030 | * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use strcpy. | |
1031 | ||
29f9a567 YQ |
1032 | 2017-11-22 Yao Qi <yao.qi@linaro.org> |
1033 | ||
1034 | * cli/cli-decode.c (help_list): Use memcpy instead of strncpy. | |
1035 | * cp-namespace.c (cp_lookup_transparent_type_loop): Likewise. | |
1036 | ||
3b1b69bf JG |
1037 | 2017-11-21 Jerome Guitton <guitton@adacore.com> |
1038 | ||
1039 | * ravenscar-thread.c (ravenscar_wait): Update inferior ptid | |
1040 | with event ptid from the lower layer before doing the | |
1041 | ravenscar-specific update. | |
1042 | ||
54aa6c67 JB |
1043 | 2017-11-21 Joel Brobecker <brobecker@adacore.com> |
1044 | ||
1045 | * ravenscar-thread.c (is_ravenscar_task): Also verify that | |
1046 | the ptid's TID is nonzero. | |
1047 | ||
cf3fbed4 JB |
1048 | 2017-11-21 Joel Brobecker <brobecker@adacore.com> |
1049 | ||
1050 | * ada-lang.h (ada_get_tcb_types_info): Add declaration. | |
1051 | * ada-tasks.c (ada_get_tcb_types_info): Renames get_tcb_types_info. | |
1052 | Make non-static. Change return type to char *. Adjust code | |
1053 | accordingly. Rewrite the function's documentation. | |
1054 | (read_atcb): Adjust call to get_tcb_types_info accordingly. | |
1055 | * ravenscar-thread.c (ravenscar_inferior_created): Check that | |
1056 | we have enough debugging information in the runtime to support | |
1057 | Ada task debugging before we enable the ravenscar-thread layer. | |
1058 | ||
9edcc12f JB |
1059 | 2017-11-21 Joel Brobecker <brobecker@adacore.com> |
1060 | ||
1061 | * ada-lang.h (ada_get_task_info_from_ptid): Add declaration. | |
1062 | * ada-tasks.c (ada_get_task_info_from_ptid): New function. | |
1063 | * ravenscar-thread.c: Add into comment. | |
1064 | (base_magic_null_ptid): Delete. | |
1065 | (base_ptid): Change documentation. | |
1066 | (ravenscar_active_task): Renames ravenscar_running_thread. | |
1067 | All callers updated throughout. | |
1068 | (is_ravenscar_task, ravenscar_get_thread_base_cpu): New function. | |
1069 | (ravenscar_task_is_currently_active): Likewise. | |
1070 | (get_base_thread_from_ravenscar_task): Ditto. | |
1071 | (ravenscar_update_inferior_ptid): Adjust to handle multiple CPUs. | |
1072 | (ravenscar_runtime_initialized): Likewise. | |
1073 | (get_running_thread_id): Add new parameter "cpu". Adjust | |
1074 | implementation to handle this new parameter. | |
1075 | (ravenscar_fetch_registers): Small adjustment to use | |
1076 | is_ravenscar_task and ravenscar_task_is_currently_active in | |
1077 | order to decide whether to use the target beneath or this | |
1078 | module's arch_ops. | |
1079 | (ravenscar_store_registers, ravenscar_prepare_to_store): Likewise. | |
1080 | (ravenscar_stopped_by_sw_breakpoint): Use | |
1081 | get_base_thread_from_ravenscar_task to get the underlying | |
1082 | thread, rather than using base_ptid. | |
1083 | (ravenscar_stopped_by_hw_breakpoint, ravenscar_stopped_by_watchpoint) | |
1084 | (ravenscar_stopped_data_address, ravenscar_core_of_thread): | |
1085 | Likewise. | |
1086 | (ravenscar_inferior_created): Do not set base_magic_null_ptid. | |
1087 | ||
65d40437 JB |
1088 | 2017-11-21 Joel Brobecker <brobecker@adacore.com> |
1089 | ||
1090 | * ada-lang.h (struct ada_task_info) <base_cpu>: New field. | |
1091 | * ada-lang.c (struct atcb_fieldno) <base_cpu>: New field. | |
1092 | (get_tcb_types_info): Set fieldnos.base_cpu. | |
1093 | (read_atcb): Set task_info->base_cpu. | |
1094 | (info_task): Print "Base CPU" info if set by runtime. | |
1095 | ||
e02544b2 JB |
1096 | 2017-11-21 Joel Brobecker <brobecker@adacore.com> |
1097 | ||
1098 | * ravenscar-thread.c (ravenscar_stopped_by_sw_breakpoint) | |
1099 | (ravenscar_stopped_by_hw_breakpoint, ravenscar_stopped_by_watchpoint) | |
1100 | (ravenscar_stopped_data_address, ravenscar_core_of_thread): | |
1101 | New functions. | |
1102 | (init_ravenscar_thread_ops): Set the to_stopped_by_sw_breakpoint, | |
1103 | to_stopped_by_hw_breakpoint, to_stopped_by_watchpoint, | |
1104 | to_stopped_data_address and to_core_of_thread fields of | |
1105 | ravenscar_ops. | |
1106 | ||
ed0f4273 UW |
1107 | 2017-11-21 Ulrich Weigand <uweigand@de.ibm.com> |
1108 | ||
1109 | * ppc-tdep.h (enum powerpc_long_double_abi): New data type. | |
1110 | (struct gdbarch_tdep): New member long_double_abi. | |
1111 | * rs6000-tdep.c (rs6000_gdbarch_init): Initialize long_double_abi | |
1112 | member of tdep struct based on Tag_GNU_Power_ABI_FP attribute. | |
1113 | * ppc-linux-tdep.c (ppc_linux_init_abi): Install long double data | |
1114 | format depending on long_double_abi tdep member. | |
1115 | (ppc_floatformat_for_type): Handle __ibm128 type. | |
1116 | ||
0fc76421 SM |
1117 | 2017-11-20 Simon Marchi <simon.marchi@polymtl.ca> |
1118 | ||
1119 | * darwin-nat.c (set_enable_mach_exceptions): Constify parameter. | |
1120 | ||
e6b2f5ef PA |
1121 | 2017-11-21 Pedro Alves <palves@redhat.com> |
1122 | ||
1123 | * dwarf2read.c (mapped_index::find_name_components_bounds) | |
1124 | <completion mode, upper bound>: Use std::lower_bound instead of | |
1125 | std::upper_bound. | |
1126 | (test_mapped_index_find_name_component_bounds): Remove incorrect | |
1127 | "t1_fund" from expected symbols. | |
1128 | ||
5c58de74 PA |
1129 | 2017-11-21 Pedro Alves <palves@redhat.com> |
1130 | ||
1131 | * dwarf2read.c (mapped_index::name_components_casing): New field. | |
1132 | (mapped_index) <build_name_components, | |
1133 | find_name_components_bounds): Declare new methods. | |
1134 | (mapped_index::find_name_components_bounds) | |
1135 | (mapped_index::build_name_components): New methods, factored out | |
1136 | from dw2_expand_symtabs_matching_symbol. | |
1137 | (check_find_bounds_finds) | |
1138 | (test_mapped_index_find_name_component_bounds): New. | |
1139 | (run_test): Rename to ... | |
1140 | (test_dw2_expand_symtabs_matching_symbol): ... this. | |
1141 | (run_test): Reimplement. | |
1142 | ||
e1ef7d7a PA |
1143 | 2017-11-21 Pedro Alves <palves@redhat.com> |
1144 | ||
1145 | * cp-name-parser.y (cp_ident_is_alpha, cp_ident_is_alnum): New. | |
1146 | (symbol_end): Use cp_ident_is_alnum. | |
1147 | (yylex): Use cp_ident_is_alpha and cp_ident_is_alnum. | |
1148 | * dwarf2read.c (make_sort_after_prefix_name): New function. | |
1149 | (dw2_expand_symtabs_matching_symbol): Use it. | |
1150 | (test_symbols): Add more symbols. | |
1151 | (run_test): Add tests. | |
1152 | ||
cf724bc9 TT |
1153 | 2017-11-17 Tom Tromey <tom@tromey.com> |
1154 | ||
1155 | * symtab.h (enum symbol_subclass_kind): New. | |
1156 | (struct symbol) <is_cplus_template_function, is_rust_vtable>: | |
1157 | Remove. | |
1158 | <subclass>: New member. | |
1159 | (SYMBOL_IS_CPLUS_TEMPLATE_FUNCTION): Update. | |
1160 | * rust-lang.c (rust_get_trait_object_pointer): Update. | |
1161 | * dwarf2read.c (read_func_scope): Update. | |
1162 | (read_variable): Update. | |
1163 | ||
68e745e3 TT |
1164 | 2017-11-17 Tom Tromey <tom@tromey.com> |
1165 | ||
1166 | * dwarf2read.c (read_func_scope): Update. | |
1167 | * symtab.h (struct template_symbol): Derive from symbol. | |
1168 | <base>: Remove. | |
1169 | ||
71a3c369 TT |
1170 | 2017-11-17 Tom Tromey <tom@tromey.com> |
1171 | ||
1172 | * symtab.h (struct symbol) <is_rust_vtable>: New member. | |
1173 | (struct rust_vtable_symbol): New. | |
1174 | (find_symbol_at_address): Declare. | |
1175 | * symtab.c (find_symbol_at_address): New function. | |
1176 | * symfile.h (struct quick_symbol_functions) | |
1177 | <find_compunit_symtab_by_address>: New member. | |
1178 | * symfile-debug.c (debug_qf_find_compunit_symtab_by_address): New | |
1179 | function. | |
1180 | (debug_sym_quick_functions): Link to | |
1181 | debug_qf_find_compunit_symtab_by_address. | |
1182 | * rust-lang.c (rust_get_trait_object_pointer): New function. | |
1183 | (rust_evaluate_subexp) <case UNOP_IND>: New case. Call | |
1184 | rust_get_trait_object_pointer. | |
1185 | * psymtab.c (psym_relocate): Clear psymbol_map. | |
1186 | (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address): New | |
1187 | functions. | |
1188 | (psym_functions): Link to psym_find_compunit_symtab_by_address. | |
1189 | * objfiles.h (struct objfile) <psymbol_map>: New member. | |
1190 | * dwarf2read.c (dwarf2_gdb_index_functions): Update. | |
1191 | (process_die) <DW_TAG_variable>: New case. Call read_variable. | |
1192 | (rust_containing_type, read_variable): New functions. | |
1193 | ||
7468702d SM |
1194 | 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca> |
1195 | ||
1196 | * common/gdb_vecs.h (DEF_VEC_I (int)): Remove. | |
1197 | ||
37269bc9 SM |
1198 | 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca> |
1199 | ||
1200 | * common/filestuff.c: Include <algorithm>. | |
1201 | (open_fds): Change type to std::vector<int>. | |
1202 | (do_mark_open_fd): Adjust. | |
1203 | (unmark_fd_no_cloexec): Adjust. | |
1204 | (do_close): Adjust. | |
1205 | ||
5c632425 SM |
1206 | 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca> |
1207 | ||
1208 | * breakpoint.c (output_thread_groups): Take an std::vector. | |
1209 | (print_one_breakpoint_location): Adjust. | |
1210 | ||
ced9779b JB |
1211 | 2017-11-17 Joel Brobecker <brobecker@adacore.com> |
1212 | ||
1213 | * ada-lang.c (resolve_subexp): Add handling of OP_VAR_MSYM_VALUE. | |
1214 | (ada_evaluate_subexp_for_cast): New function. | |
1215 | (ada_evaluate_subexp) <UNOP_CAST>: Replace code by call to | |
1216 | ada_evaluate_subexp_for_cast. | |
1217 | (ada_evaluate_subexp) <nosideret>: Replace code by call to | |
1218 | eval_skip_value. | |
1219 | * eval.c (evaluate_var_value): Make non-static. | |
1220 | (evaluate_var_msym_value, eval_skip_value): Likewise. | |
1221 | * value.h (evaluate_var_value, evaluate_var_msym_value) | |
1222 | (eval_skip_value): Declare. | |
1223 | ||
b7e22850 JB |
1224 | 2017-11-16 Joel Brobecker <brobecker@adacore.com> |
1225 | ||
1226 | * ada-lang.c (ada_value_cast): Remove parameter "noside". | |
1227 | Update all callers. | |
1228 | ||
9ccabccd PA |
1229 | 2017-11-16 Pedro Alves <palves@redhat.com> |
1230 | ||
1231 | * python/py-unwind.c (pyuw_sniffer): Translate | |
1232 | PyExc_KeyboardInterrupt to a GDB Quit exception. | |
1233 | ||
d930703d PA |
1234 | 2017-11-16 Pedro Alves <palves@redhat.com> |
1235 | ||
1236 | * infrun.c (resume_cleanups): Delete. | |
1237 | (resume): No longer install a resume_cleanups cleanup nor call | |
1238 | QUIT. | |
1239 | (proceed): Pass the terminal to the inferior. | |
1240 | (keep_going_pass_signal): No longer install a resume_cleanups | |
1241 | cleanup. | |
1242 | ||
38dc2859 PA |
1243 | 2017-11-16 Pedro Alves <palves@redhat.com> |
1244 | ||
1245 | * inf-loop.c (inferior_event_handler): Don't swallow the exception | |
1246 | if the prompt is blocked. | |
1247 | ||
688fca4f PA |
1248 | 2017-11-16 Pedro Alves <palves@redhat.com> |
1249 | ||
1250 | * breakpoint.c (insert_bp_location): Replace bp_err and | |
1251 | bp_err_message locals by a gdb_exception local. | |
1252 | ||
e2c33ac7 PA |
1253 | 2017-11-16 Pedro Alves <palves@redhat.com> |
1254 | ||
1255 | * inflow.c (scoped_ignore_sigttou): New class. | |
1256 | (child_terminal_ours_1, new_tty): Use it. | |
1257 | ||
d7236961 UW |
1258 | 2017-11-16 Ulrich Weigand <uweigand@de.ibm.com> |
1259 | ||
1260 | * target-float.c (decimal_from_number): Add byte_order argument and | |
1261 | call match_endianness. Error if unknown floating-point type. | |
1262 | (decimal_to_number): Add byte_order argument and call match_endianness. | |
1263 | (decimal_from_longest): Update call. Do not call match_endianness. | |
1264 | (decimal_from_ulongest): Likewise. | |
1265 | (decimal_binop): Likewise. | |
1266 | (decimal_is_zero): Likewise. | |
1267 | (decimal_compare): Likewise. | |
1268 | (decimal_convert): Likewise. | |
1269 | ||
d8ae99a7 PM |
1270 | 2017-11-16 Phil Muldoon <pmuldoon@redhat.com> |
1271 | ||
1272 | * python/python.c (gdbpy_rbreak): New function. | |
1273 | * NEWS: Document Python rbreak feature. | |
1274 | ||
c632b645 YQ |
1275 | 2017-11-16 Yao Qi <yao.qi@linaro.org> |
1276 | ||
1277 | * features/tic6x-c62x.xml: Remove. | |
1278 | * features/tic6x-c64x.xml: Remove. | |
1279 | * features/tic6x-c64xp.xml: Remove. | |
1280 | ||
a014b87a JB |
1281 | 2017-11-15 John Baldwin <jhb@FreeBSD.org> |
1282 | ||
1283 | * symtab.h: Include <array>. | |
1284 | ||
94765011 JB |
1285 | 2017-11-15 John Baldwin <jhb@FreeBSD.org> |
1286 | ||
1287 | * bsd-kvm.c (bsd_kvm_cmd): Constify 'arg'. | |
1288 | (bsd_kvm_proc_cmd): Likewise. | |
1289 | ||
625ad440 SM |
1290 | 2017-11-15 Simon Marchi <simon.marchi@ericsson.com> |
1291 | ||
1292 | * tui/tui-win.c (window_name_completer): Replace VEC with | |
1293 | std::vector. | |
1294 | ||
c0c11fa9 AC |
1295 | 2017-11-15 Andrew Cagney <cagney@gnu.org> |
1296 | ||
1297 | * MAINTAINERS: Remove no-longer applicable entries. | |
1298 | ||
34a7ebaf AC |
1299 | 2017-11-15 Andrew Cagney <cagney@gnu.org> |
1300 | ||
1301 | * MAINTAINERS: Move self to Past Maintainers. | |
1302 | ||
5334ef39 YQ |
1303 | 2017-11-15 Yao Qi <yao.qi@linaro.org> |
1304 | ||
1305 | * features/Makefile (XMLTOC): Remove nios2-linux.xml. | |
1306 | * features/nios2-linux.c: Remove. | |
1307 | * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Don't call | |
1308 | initialize_tdesc_nios2_linux. | |
1309 | ||
a714b0d6 YQ |
1310 | 2017-11-15 Yao Qi <yao.qi@linaro.org> |
1311 | ||
1312 | * m68hc11-tdep.c (M68HC11_NUM_REGS): Change it to | |
1313 | M68HC11_LAST_HARD_REG + 1. | |
1314 | ||
92ffd475 PC |
1315 | 2017-11-14 Paul Carroll <pcarroll@codesourcery.com> |
1316 | ||
1317 | PR gdb/22388 | |
1318 | * remote.c (remote_write_bytes_aux, remote_read_bytes_1, | |
1319 | remote_read_bytes, remote_write_qxfer, remote_xfer_partial): | |
1320 | Return TARGET_XFER_EOF if size of returned data is 0. | |
1321 | ||
07431908 SM |
1322 | 2017-11-14 Simon Marchi <simon.marchi@ericsson.com> |
1323 | ||
1324 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add | |
1325 | memory-map-selftests.c. | |
1326 | (SUBDIR_UNITTESTS_OBS): Add memory-map-selftests.o. | |
1327 | * memory-map.c (memory_map_start_memory): Fix computation of hi | |
1328 | address. | |
1329 | * unittests/memory-map-selftests.c: New file. | |
1330 | ||
31432a67 JB |
1331 | 2017-11-09 Joel Brobecker <brobecker@adacore.com> |
1332 | ||
1333 | * ada-lang.c: Fix some typos in the general command documenting | |
1334 | how Ada expressions are being evaluated and how their result | |
1335 | is printed. | |
1336 | ||
e793c052 TT |
1337 | 2017-11-09 Tom Tromey <tom@tromey.com> |
1338 | ||
1339 | * psymtab.c (psymbol_hash): Do not hash string contents. | |
1340 | (psymbol_compare): Add comment. | |
1341 | ||
7e8835c5 TT |
1342 | 2017-11-09 Tom Tromey <tom@tromey.com> |
1343 | ||
1344 | * dictionary.c (dict_hash): Move "TKB" check into the "switch". | |
1345 | ||
286acbb5 JB |
1346 | 2017-11-08 Joel Brobecker <brobecker@adacore.com> |
1347 | ||
1348 | * ada-exp.y (write_var_from_sym): Remove parameter | |
1349 | "orig_left_context". Update all callers. | |
1350 | ||
b44ec619 SM |
1351 | 2017-11-08 Simon Marchi <simon.marchi@ericsson.com> |
1352 | ||
1353 | * tracepoint.h (class collection_list) <stringify>: Return | |
1354 | std::vector<std::string>. | |
1355 | (encode_actions_rsp): Change parameters to | |
1356 | std::vector<std::string> *. | |
1357 | * tracepoint.c (collection_list::stringify): Return | |
1358 | std::vector<std::string> and adjust accordingly. | |
1359 | (encode_actions_rsp): Changee parameters to | |
1360 | std::vector<std::string> and adjust accordingly. | |
1361 | * remote.c (free_actions_list), | |
1362 | free_actions_list_cleanup_wrapper): Remove. | |
1363 | (remote_download_tracepoint): Adjust to std::vector. | |
1364 | ||
2f4732b0 TT |
1365 | 2017-11-08 Tom Tromey <tom@tromey.com> |
1366 | ||
1367 | * dwarf2read.c (symbolp): Remove typedef. | |
1368 | (read_func_scope): Use std::vector. | |
1369 | (process_structure_scope): Use std::vector. | |
1370 | ||
f9d67a22 PA |
1371 | 2017-11-08 Pedro Alves <palves@redhat.com> |
1372 | ||
1373 | * ada-lang.c (ada_make_symbol_completion_list): Use | |
1374 | completion_skip_symbol. | |
1375 | * symtab.c (symbol_is_function_or_method(minimal_symbol*)): New. | |
1376 | (symbol_is_function_or_method(symbol*)): New. | |
1377 | (add_symtab_completions): Add complete_symbol_mode parameter. Use | |
1378 | completion_skip_symbol. | |
1379 | (default_collect_symbol_completion_matches_break_on): Use | |
1380 | completion_skip_symbol. Pass down mode. | |
1381 | (collect_file_symbol_completion_matches): Pass down mode. | |
1382 | * symtab.h (symbol_is_function_or_method): New declarations. | |
1383 | (completion_skip_symbol): New template function. | |
1384 | ||
56d87ef7 PA |
1385 | 2017-11-08 Pedro Alves <palves@redhat.com> |
1386 | ||
1387 | * linespec.c (iterate_over_all_matching_symtabs): Add | |
1388 | search_domain parameter. Pass it down to expand_symtabs_matching. | |
1389 | (decode_objc): Request FUNCTIONS_DOMAIN symbols only. | |
1390 | (lookup_prefix_sym): Adjust by passing ALL_DOMAIN as | |
1391 | search_domain. | |
1392 | (add_all_symbol_names_from_pspace): Add search_domain parameter. | |
1393 | Pass it down. | |
1394 | (find_method, find_function_symbols): Request FUNCTIONS_DOMAIN | |
1395 | symbols. | |
1396 | (add_matching_symbols_to_info): Add search_domain parameter. Pass | |
1397 | it down. | |
1398 | ||
1b026119 PA |
1399 | 2017-11-08 Pedro Alves <palves@redhat.com> |
1400 | ||
1401 | * ada-lang.c (ada_make_symbol_completion_list): Remove text and | |
1402 | text_len locals and don't pass them down. | |
1403 | * symtab.c (completion_list_add_name): Remove | |
1404 | sym_text/sym_text_len parameters and adjust. | |
1405 | (completion_list_add_symbol, completion_list_add_msymbol) | |
1406 | (completion_list_objc_symbol, completion_list_add_fields) | |
1407 | (add_symtab_completions): Likewise. | |
1408 | (default_collect_symbol_completion_matches_break_on) | |
1409 | (collect_file_symbol_completion_matches): Remove sym_text_len | |
1410 | local and don't pass it down. | |
1411 | * symtab.h (completion_list_add_name): Remove | |
1412 | sym_text/sym_text_len parameters. | |
1413 | ||
c62446b1 PA |
1414 | 2017-11-08 Pedro Alves <palves@redhat.com> |
1415 | ||
1416 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add | |
1417 | unittests/lookup_name_info-selftests.c. | |
1418 | (SUBDIR_UNITTESTS_OBS): Add lookup_name_info-selftests.o. | |
1419 | * cp-support.c: Include "selftest.h". | |
1420 | (cp_remove_params_1): Rename from cp_remove_params. Add | |
1421 | 'require_param' parameter, and handle it. | |
1422 | (cp_remove_params): Reimplement. | |
1423 | (cp_remove_params_if_any): New. | |
1424 | (selftests::quote): New. | |
1425 | (selftests::check_remove_params): New. | |
1426 | (selftests::test_cp_remove_params): New. | |
1427 | (_initialize_cp_support): Install | |
1428 | selftests::test_cp_remove_params. | |
1429 | * cp-support.h (cp_remove_params_if_any): Declare. | |
1430 | * dwarf2read.c :Include "selftest.h". | |
1431 | (dw2_expand_symtabs_matching_symbol): Use | |
1432 | lookup_name_info::make_ignore_params. | |
1433 | (selftests::dw2_expand_symtabs_matching::mock_mapped_index) | |
1434 | (selftests::dw2_expand_symtabs_matching::string_or_null) | |
1435 | (selftests::dw2_expand_symtabs_matching::check_match) | |
1436 | (selftests::dw2_expand_symtabs_matching::test_symbols) | |
1437 | (selftests::dw2_expand_symtabs_matching::run_test): New. | |
1438 | (_initialize_dwarf2_read): Register | |
1439 | selftests::dw2_expand_symtabs_matching::run_test. | |
1440 | * psymtab.c (psym_expand_symtabs_matching): Use | |
1441 | lookup_name_info::make_ignore_params. | |
1442 | * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info): | |
1443 | If the lookup name wants to ignore parameters, strip them. | |
1444 | (compare_symbol_name): Remove sym_text/sym_text_len parameters and | |
1445 | code handling '('. | |
1446 | (completion_list_add_name): Don't pass down sym_text/sym_text_len. | |
1447 | (default_collect_symbol_completion_matches_break_on): Don't try to | |
1448 | strip parameters. | |
1449 | * symtab.h (lookup_name_info::lookup_name_info): Add | |
1450 | 'ignore_parameters' parameter. | |
1451 | (lookup_name_info::ignore_parameters) | |
1452 | (lookup_name_info::make_ignore_params): New methods. | |
1453 | (lookup_name_info::m_ignore_parameters): New field. | |
1454 | * unittests/lookup_name_info-selftests.c: New file. | |
1455 | ||
61920122 PA |
1456 | 2017-11-08 Pedro Alves <palves@redhat.com> |
1457 | ||
1458 | * dwarf2read.c (dw2_expand_marked_cus) | |
1459 | (dw2_expand_symtabs_matching_symbol): Remove forward declarations. | |
1460 | (dw2_expand_symtabs_matching): Move further below. | |
1461 | (dw2_expand_marked_cus): Reindent. | |
1462 | ||
3f563c84 PA |
1463 | 2017-11-08 Pedro Alves <palves@redhat.com> |
1464 | ||
1465 | * dwarf2read.c (byte_swap, MAYBE_SWAP): Move higher up in file. | |
1466 | (struct name_component): New. | |
1467 | (mapped_index::name_components): New field. | |
1468 | (mapped_index::symbol_name_at): New method. | |
1469 | (dwarf2_read_index): Call mapped_index ctor. | |
1470 | (dw2_map_matching_symbols): Add comment about name_components | |
1471 | table. | |
1472 | (dw2_expand_symtabs_matching): Factor part to... | |
1473 | (dw2_expand_symtabs_matching_symbol): ... this new function. | |
1474 | Build name components table, and lookup symbols in it before | |
1475 | calling the name matcher. | |
1476 | (dw2_expand_marked_cus): New, factored out from | |
1477 | dw2_expand_symtabs_matching. | |
1478 | (dwarf2_per_objfile_free): Call the mapped_index's dtor. | |
1479 | ||
b5ec771e PA |
1480 | 2017-11-08 Pedro Alves <palves@redhat.com> |
1481 | ||
1482 | * ada-lang.c (ada_encode): Rename to .. | |
1483 | (ada_encode_1): ... this. Add throw_errors parameter and handle | |
1484 | it. | |
1485 | (ada_encode): Reimplement. | |
1486 | (match_name): Delete, folded into full_name. | |
1487 | (resolve_subexp): No longer pass the encoded name to | |
1488 | ada_lookup_symbol_list. | |
1489 | (should_use_wild_match): Delete. | |
1490 | (name_match_type_from_name): New. | |
1491 | (ada_lookup_simple_minsym): Use lookup_name_info and the | |
1492 | language's symbol_name_matcher_ftype. | |
1493 | (add_symbols_from_enclosing_procs, ada_add_local_symbols) | |
1494 | (ada_add_block_renamings): Adjust to use lookup_name_info. | |
1495 | (ada_lookup_name): New. | |
1496 | (add_nonlocal_symbols, ada_add_all_symbols) | |
1497 | (ada_lookup_symbol_list_worker, ada_lookup_symbol_list) | |
1498 | (ada_iterate_over_symbols): Adjust to use lookup_name_info. | |
1499 | (ada_name_for_lookup): Delete. | |
1500 | (ada_lookup_encoded_symbol): Construct a verbatim name. | |
1501 | (wild_match): Reverse sense of return type. Use bool. | |
1502 | (full_match): Reverse sense of return type. Inline bits of old | |
1503 | match_name here. | |
1504 | (ada_add_block_symbols): Adjust to use lookup_name_info. | |
1505 | (symbol_completion_match): Delete, folded into... | |
1506 | (ada_lookup_name_info::matches): ... .this new method. | |
1507 | (symbol_completion_add): Delete. | |
1508 | (ada_collect_symbol_completion_matches): Add name_match_type | |
1509 | parameter. Adjust to use lookup_name_info and | |
1510 | completion_list_add_name. | |
1511 | (get_var_value, ada_add_global_exceptions): Adjust to use | |
1512 | lookup_name_info. | |
1513 | (ada_get_symbol_name_cmp): Delete. | |
1514 | (do_wild_match, do_full_match): New functions. | |
1515 | (ada_lookup_name_info::ada_lookup_name_info): New method. | |
1516 | (ada_symbol_name_matches, ada_get_symbol_name_matcher): New | |
1517 | functions. | |
1518 | (ada_language_defn): Install ada_get_symbol_name_matcher. | |
1519 | * ada-lex.l (processId): If name starts with '<', copy it | |
1520 | verbatim. | |
1521 | * block.c (block_iter_match_step, block_iter_match_first) | |
1522 | (block_iter_match_next, block_lookup_symbol) | |
1523 | (block_lookup_symbol_primary, block_find_symbol): Adjust to use | |
1524 | lookup_name_info. | |
1525 | * block.h (block_iter_match_first, block_iter_match_next) | |
1526 | (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use lookup_name_info. | |
1527 | * c-lang.c (c_language_defn, cplus_language_defn) | |
1528 | (asm_language_defn, minimal_language_defn): Adjust comments to | |
1529 | refer to la_get_symbol_name_matcher. | |
1530 | * completer.c (complete_files_symbols) | |
1531 | (collect_explicit_location_matches, symbol_completer): Pass a | |
1532 | symbol_name_match_type down. | |
1533 | * completer.h (class completion_match, completion_match_result): | |
1534 | New classes. | |
1535 | (completion_tracker::reset_completion_match_result): New method. | |
1536 | (completion_tracker::m_completion_match_result): New field. | |
1537 | * cp-support.c (make_symbol_overload_list_block): Adjust to use | |
1538 | lookup_name_info. | |
1539 | (cp_fq_symbol_name_matches, cp_get_symbol_name_matcher): New | |
1540 | functions. | |
1541 | * cp-support.h (cp_get_symbol_name_matcher): New declaration. | |
1542 | * d-lang.c: Adjust comments to refer to | |
1543 | la_get_symbol_name_matcher. | |
1544 | * dictionary.c (dict_vector) <iter_match_first, iter_match_next>: | |
1545 | Adjust to use lookup_name_info. | |
1546 | (dict_iter_match_first, dict_iter_match_next) | |
1547 | (iter_match_first_hashed, iter_match_next_hashed) | |
1548 | (iter_match_first_linear, iter_match_next_linear): Adjust to work | |
1549 | with a lookup_name_info. | |
1550 | * dictionary.h (dict_iter_match_first, dict_iter_match_next): | |
1551 | Likewise. | |
1552 | * dwarf2read.c (dw2_lookup_symbol): Adjust to use lookup_name_info. | |
1553 | (dw2_map_matching_symbols): Adjust to use symbol_name_match_type. | |
1554 | (gdb_index_symbol_name_matcher): New class. | |
1555 | (dw2_expand_symtabs_matching) Adjust to use lookup_name_info and | |
1556 | gdb_index_symbol_name_matcher. Accept a NULL symbol_matcher. | |
1557 | * f-lang.c (f_collect_symbol_completion_matches): Adjust to work | |
1558 | with a symbol_name_match_type. | |
1559 | (f_language_defn): Adjust comments to refer to | |
1560 | la_get_symbol_name_matcher. | |
1561 | * go-lang.c (go_language_defn): Adjust comments to refer to | |
1562 | la_get_symbol_name_matcher. | |
1563 | * language.c (default_symbol_name_matcher) | |
1564 | (language_get_symbol_name_matcher): New functions. | |
1565 | (unknown_language_defn, auto_language_defn): Adjust comments to | |
1566 | refer to la_get_symbol_name_matcher. | |
1567 | * language.h (symbol_name_cmp_ftype): Delete. | |
1568 | (language_defn) <la_collect_symbol_completion_matches>: Add match | |
1569 | type parameter. | |
1570 | <la_get_symbol_name_cmp>: Delete field. | |
1571 | <la_get_symbol_name_matcher>: New field. | |
1572 | <la_iterate_over_symbols>: Adjust to use lookup_name_info. | |
1573 | (default_symbol_name_matcher, language_get_symbol_name_matcher): | |
1574 | Declare. | |
1575 | * linespec.c (iterate_over_all_matching_symtabs) | |
1576 | (iterate_over_file_blocks): Adjust to use lookup_name_info. | |
1577 | (find_methods): Add language parameter, and use lookup_name_info | |
1578 | and the language's symbol_name_matcher_ftype. | |
1579 | (linespec_complete_function): Adjust. | |
1580 | (lookup_prefix_sym): Use lookup_name_info. | |
1581 | (add_all_symbol_names_from_pspace): Adjust. | |
1582 | (find_superclass_methods): Add language parameter and pass it | |
1583 | down. | |
1584 | (find_method): Pass symbol language down. | |
1585 | (find_linespec_symbols): Don't demangle or Ada encode here. | |
1586 | (search_minsyms_for_name): Add lookup_name_info parameter. | |
1587 | (add_matching_symbols_to_info): Add name_match_type parameter. | |
1588 | Use lookup_name_info. | |
1589 | * m2-lang.c (m2_language_defn): Adjust comments to refer to | |
1590 | la_get_symbol_name_matcher. | |
1591 | * minsyms.c: Include <algorithm>. | |
1592 | (add_minsym_to_demangled_hash_table): Remove table parameter and | |
1593 | add objfile parameter. Use search_name_hash, and add language to | |
1594 | demangled languages vector. | |
1595 | (struct found_minimal_symbols): New struct. | |
1596 | (lookup_minimal_symbol_mangled, lookup_minimal_symbol_demangled): | |
1597 | New functions. | |
1598 | (lookup_minimal_symbol): Adjust to use them. Don't canonicalize | |
1599 | input names here. Use lookup_name_info instead. Lookup up | |
1600 | demangled names once for each language in the demangled names | |
1601 | vector. | |
1602 | (iterate_over_minimal_symbols): Use lookup_name_info. Lookup up | |
1603 | demangled names once for each language in the demangled names | |
1604 | vector. | |
1605 | (build_minimal_symbol_hash_tables): Adjust. | |
1606 | * minsyms.h (iterate_over_minimal_symbols): Adjust to pass down a | |
1607 | lookup_name_info. | |
1608 | * objc-lang.c (objc_language_defn): Adjust comment to refer to | |
1609 | la_get_symbol_name_matcher. | |
1610 | * objfiles.h: Include <vector>. | |
1611 | (objfile_per_bfd_storage) <demangled_hash_languages>: New field. | |
1612 | * opencl-lang.c (opencl_language_defn): Adjust comment to refer to | |
1613 | la_get_symbol_name_matcher. | |
1614 | * p-lang.c (pascal_language_defn): Adjust comment to refer to | |
1615 | la_get_symbol_name_matcher. | |
1616 | * psymtab.c (psym_lookup_symbol): Use lookup_name_info. | |
1617 | (match_partial_symbol): Use symbol_name_match_type, | |
1618 | lookup_name_info and psymbol_name_matches. | |
1619 | (lookup_partial_symbol): Use lookup_name_info. | |
1620 | (map_block): Use symbol_name_match_type and lookup_name_info. | |
1621 | (psym_map_matching_symbols): Use symbol_name_match_type. | |
1622 | (psymbol_name_matches): New. | |
1623 | (recursively_search_psymtabs): Use lookup_name_info and | |
1624 | psymbol_name_matches. Rename 'kind' parameter to 'domain'. | |
1625 | (psym_expand_symtabs_matching): Use lookup_name_info. Rename | |
1626 | 'kind' parameter to 'domain'. | |
1627 | * rust-lang.c (rust_language_defn): Adjust comment to refer to | |
1628 | la_get_symbol_name_matcher. | |
1629 | * symfile-debug.c (debug_qf_map_matching_symbols) | |
1630 | (debug_qf_map_matching_symbols): Use symbol_name_match_type. | |
1631 | (debug_qf_expand_symtabs_matching): Use lookup_name_info. | |
1632 | * symfile.c (expand_symtabs_matching): Use lookup_name_info. | |
1633 | * symfile.h (quick_symbol_functions) <map_matching_symbols>: | |
1634 | Adjust to use symbol_name_match_type. | |
1635 | <expand_symtabs_matching>: Adjust to use lookup_name_info. | |
1636 | (expand_symtabs_matching): Adjust to use lookup_name_info. | |
1637 | * symmisc.c (maintenance_expand_symtabs): Use | |
1638 | lookup_name_info::match_any (). | |
1639 | * symtab.c (symbol_matches_search_name): New. | |
1640 | (eq_symbol_entry): Adjust to use lookup_name_info and the | |
1641 | language's matcher. | |
1642 | (demangle_for_lookup_info::demangle_for_lookup_info): New. | |
1643 | (lookup_name_info::match_any): New. | |
1644 | (iterate_over_symbols, search_symbols): Use lookup_name_info. | |
1645 | (compare_symbol_name): Add language, lookup_name_info and | |
1646 | completion_match_result parameters, and use them. | |
1647 | (completion_list_add_name): Make extern. Add language and | |
1648 | lookup_name_info parameters. Use them. | |
1649 | (completion_list_add_symbol, completion_list_add_msymbol) | |
1650 | (completion_list_objc_symbol): Add lookup_name_info parameters and | |
1651 | adjust. Pass down language. | |
1652 | (completion_list_add_fields): Add lookup_name_info parameters and | |
1653 | adjust. Pass down language. | |
1654 | (add_symtab_completions): Add lookup_name_info parameters and | |
1655 | adjust. | |
1656 | (default_collect_symbol_completion_matches_break_on): Add | |
1657 | name_match_type parameter, and use it. Use lookup_name_info. | |
1658 | (default_collect_symbol_completion_matches) | |
1659 | (collect_symbol_completion_matches): Add name_match_type | |
1660 | parameter, and pass it down. | |
1661 | (collect_symbol_completion_matches_type): Adjust. | |
1662 | (collect_file_symbol_completion_matches): Add name_match_type | |
1663 | parameter, and use lookup_name_info. | |
1664 | * symtab.h: Include <string> and "common/gdb_optional.h". | |
1665 | (enum class symbol_name_match_type): New. | |
1666 | (class ada_lookup_name_info): New. | |
1667 | (struct demangle_for_lookup_info): New. | |
1668 | (class lookup_name_info): New. | |
1669 | (symbol_name_matcher_ftype): New. | |
1670 | (SYMBOL_MATCHES_SEARCH_NAME): Use symbol_matches_search_name. | |
1671 | (symbol_matches_search_name): Declare. | |
1672 | (MSYMBOL_MATCHES_SEARCH_NAME): Delete. | |
1673 | (default_collect_symbol_completion_matches) | |
1674 | (collect_symbol_completion_matches) | |
1675 | (collect_file_symbol_completion_matches): Add name_match_type | |
1676 | parameter. | |
1677 | (iterate_over_symbols): Use lookup_name_info. | |
1678 | (completion_list_add_name): Declare. | |
1679 | * utils.c (enum class strncmp_iw_mode): Moved to utils.h. | |
1680 | (strncmp_iw_with_mode): Now extern. | |
1681 | * utils.h (enum class strncmp_iw_mode): Moved from utils.c. | |
1682 | (strncmp_iw_with_mode): Declare. | |
1683 | ||
5ffa0793 PA |
1684 | 2017-11-08 Keith Seitz <keiths@redhat.com> |
1685 | Pedro Alves <palves@redhat.com> | |
1686 | ||
1687 | * ada-lang.c (ada_language_defn): Install | |
1688 | default_search_name_hash. | |
1689 | * buildsym.c (struct buildsym_compunit): <language>: New field. | |
1690 | (finish_block_internal): Pass language when creating dictionaries. | |
1691 | (start_buildsym_compunit, start_symtab): New language parameters. | |
1692 | Use them. | |
1693 | (restart_symtab): Pass down compilation unit's language. | |
1694 | * buildsym.h (enum language): Forward declare. | |
1695 | (start_symtab): New 'language' parameter. | |
1696 | * c-lang.c (c_language_defn, cplus_language_defn) | |
1697 | (asm_language_defn, minimal_language_defn): Install | |
1698 | default_search_name_hash. | |
1699 | * coffread.c (coff_start_symtab): Adjust. | |
1700 | * d-lang.c (d_language_defn): Install default_search_name_hash. | |
1701 | * dbxread.c (struct symloc): Add 'pst_language' field. | |
1702 | (PST_LANGUAGE): Define. | |
1703 | (start_psymtab, read_ofile_symtab): Use it. | |
1704 | (process_one_symbol): New 'language' parameter. Pass it down. | |
1705 | * dictionary.c (struct dictionary) <language>: New field. | |
1706 | (DICT_LANGUAGE): Define. | |
1707 | (dict_create_hashed, dict_create_hashed_expandable) | |
1708 | (dict_create_linear, dict_create_linear_expandable): New parameter | |
1709 | 'language'. Set the dictionary's language. | |
1710 | (iter_match_first_hashed): Adjust to rename. | |
1711 | (insert_symbol_hashed): Assert we don't see mismatching | |
1712 | languages. Adjust to rename. | |
1713 | (dict_hash): Rename to ... | |
1714 | (default_search_name_hash): ... this and make extern. | |
1715 | * dictionary.h (struct language_defn): Forward declare. | |
1716 | (dict_create_hashed): New parameter 'language'. | |
1717 | * dwarf2read.c (dwarf2_start_symtab): Pass down language. | |
1718 | * f-lang.c (f_language_defn): Install default_search_name_hash. | |
1719 | * go-lang.c (go_language_defn): Install default_search_name_hash. | |
1720 | * jit.c (finalize_symtab): Pass compunit's language to dictionary | |
1721 | creation. | |
1722 | * language.c (unknown_language_defn, auto_language_defn): | |
1723 | * language.h (language_defn::la_search_name_hash): New field. | |
1724 | (default_search_name_hash): Declare. | |
1725 | * m2-lang.c (m2_language_defn): Install default_search_name_hash. | |
1726 | * mdebugread.c (new_block): New parameter 'language'. | |
1727 | * mdebugread.c (parse_symbol): Pass symbol language to block | |
1728 | allocation. | |
1729 | (psymtab_to_symtab_1): Pass down language. | |
1730 | (new_symtab): Pass compunit's language to block allocation. | |
1731 | * objc-lang.c (objc_language_defn): Install | |
1732 | default_search_name_hash. | |
1733 | * opencl-lang.c (opencl_language_defn): | |
1734 | * p-lang.c (pascal_language_defn): Install | |
1735 | default_search_name_hash. | |
1736 | * rust-lang.c (rust_language_defn): Install | |
1737 | default_search_name_hash. | |
1738 | * stabsread.h (enum language): Forward declare. | |
1739 | (process_one_symbol): Add 'language' parameter. | |
1740 | * symtab.c (search_name_hash): New function. | |
1741 | * symtab.h (search_name_hash): Declare. | |
1742 | * xcoffread.c (read_xcoff_symtab): Pass language to start_symtab. | |
1743 | ||
2a1dde5d PA |
1744 | 2017-11-08 Pedro Alves <palves@redhat.com> |
1745 | ||
1746 | * cp-name-parser.y (main): Don't initialize extra_chars. | |
1747 | ||
95a6b0a1 TT |
1748 | 2017-11-07 Tom Tromey <tom@tromey.com> |
1749 | ||
1750 | * event-top.h (command_handler): Constify. | |
1751 | * record-full.c (cmd_record_full_start): Update. | |
1752 | * thread.c (thread_apply_all_command): Update. | |
1753 | * printcmd.c (eval_command): Update. | |
1754 | * mi/mi-main.c (mi_execute_cli_command): Update. | |
1755 | (mi_execute_async_cli_command): Update. | |
1756 | * tui/tui-stack.c (tui_update_command): Update. | |
1757 | * cli/cli-interp.c (safe_execute_command): Constify. | |
1758 | * record.c (record_start): Update. | |
1759 | (record_start, record_stop, cmd_record_start): Update. | |
1760 | * record-btrace.c (cmd_record_btrace_bts_start): Update. | |
1761 | (cmd_record_btrace_pt_start): Update. | |
1762 | (cmd_record_btrace_start): Update. | |
1763 | (cmd_record_btrace_start): Update. | |
1764 | * reverse.c (exec_reverse_once): Update. | |
1765 | * python/python.c (execute_gdb_command): Don't copy the command. | |
1766 | * event-top.c (command_line_handler): Update. | |
1767 | (command_handler): Constify. | |
1768 | * defs.h (deprecated_call_command_hook): Constify. | |
1769 | * cli/cli-script.h (execute_user_command): Constify. | |
1770 | * cli/cli-script.c (execute_user_command): Constify. | |
1771 | (execute_cmd_pre_hook, execute_cmd_post_hook): Constify. | |
1772 | (enum command_control_type): Update. | |
1773 | * main.c (catch_command_errors): Remove non-const overload. | |
1774 | (catch_command_errors_ftype): Remove. | |
1775 | * python/py-cmd.c (cmdpy_function): Constify. | |
1776 | * guile/scm-cmd.c (cmdscm_function): Constify. | |
1777 | * cli/cli-dump.c (call_dump_func): Constify. | |
1778 | * cli/cli-decode.c (do_const_cfunc): Constify. | |
1779 | (do_sfunc): Constify. | |
1780 | (cmd_func): Constify. | |
1781 | * gdbcmd.h (execute_command, execute_command_to_string): Constify. | |
1782 | * top.h (execute_command): Constify. | |
1783 | * top.c (execute_command): Constify. | |
1784 | (execute_command_to_string): Constify. | |
1785 | (deprecated_call_command_hook): Constify. | |
1786 | * command.h (cmd_func): Constify. | |
1787 | * cli/cli-decode.h (struct cmd_list_element) <func>: Constify. | |
1788 | ||
eb4c3f4a TT |
1789 | 2017-11-07 Tom Tromey <tom@tromey.com> |
1790 | ||
1791 | * ada-lang.c (catch_ada_exception_command): Constify. | |
1792 | (catch_assert_command): Constify. | |
1793 | * break-catch-throw.c (catch_catch_command, catch_throw_command) | |
1794 | (catch_rethrow_command): Constify. | |
1795 | (catch_exception_command_1): Constify. | |
1796 | * breakpoint.h (add_catch_command): Constify. | |
1797 | * break-catch-syscall.c (catch_syscall_command_1): Constify. | |
1798 | (catch_syscall_split_args): Constify. | |
1799 | * break-catch-sig.c (catch_signal_command): Constify. | |
1800 | (catch_signal_split_args): Constify. | |
1801 | * cli/cli-decode.h (struct cmd_list_element) <function>: Use | |
1802 | cmd_const_sfunc_ftype. | |
1803 | * cli/cli-decode.c (add_setshow_cmd_full): Constify. | |
1804 | (add_setshow_enum_cmd, add_setshow_auto_boolean_cmd) | |
1805 | (add_setshow_boolean_cmd, add_setshow_filename_cmd) | |
1806 | (add_setshow_string_cmd, struct cmd_list_element) | |
1807 | (add_setshow_optional_filename_cmd, add_setshow_integer_cmd) | |
1808 | (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd) | |
1809 | (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd): | |
1810 | Constify. | |
1811 | (set_cmd_sfunc): Constify. | |
1812 | (empty_sfunc): Constify. | |
1813 | * command.h (add_setshow_enum_cmd, add_setshow_auto_boolean_cmd) | |
1814 | (add_setshow_boolean_cmd, add_setshow_filename_cmd) | |
1815 | (add_setshow_string_cmd, add_setshow_string_noescape_cmd) | |
1816 | (add_setshow_optional_filename_cmd, add_setshow_integer_cmd) | |
1817 | (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd) | |
1818 | (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd): | |
1819 | Constify. | |
1820 | (set_cmd_sfunc): Constify. | |
1821 | (cmd_sfunc_ftype): Remove. | |
1822 | * compile/compile.c (set_compile_args): Constify. | |
1823 | * infrun.c (set_disable_randomization): Constify. | |
1824 | * infcmd.c (set_args_command, set_cwd_command): Constify. | |
1825 | * breakpoint.c (set_condition_evaluation_mode): Constify. | |
1826 | (add_catch_command): Constify. | |
1827 | (catch_fork_command_1, catch_exec_command_1) | |
1828 | (catch_load_command_1, catch_unload_command_1): Constify. | |
1829 | (catch_load_or_unload): Constify. | |
1830 | * guile/scm-param.c (pascm_set_func): Constify. | |
1831 | (add_setshow_generic): Constify. | |
1832 | * python/py-param.c (get_set_value): Constify. | |
1833 | * top.h (set_verbose): Constify. | |
1834 | * tui/tui-win.c (tui_set_var_cmd): Constify. | |
1835 | * mi/mi-main.c (set_mi_async_command): Constify. | |
1836 | * cli/cli-logging.c (set_logging_overwrite) | |
1837 | (set_logging_redirect): Constify. | |
1838 | * value.c (set_max_value_size): Constify. | |
1839 | * valprint.c (set_input_radix, set_output_radix): Constify. | |
1840 | * utils.c (set_width_command, set_height_command): Constify. | |
1841 | * typeprint.c (set_print_type_methods, set_print_type_typedefs): Constify. | |
1842 | * tracepoint.c (set_disconnected_tracing) | |
1843 | (set_circular_trace_buffer, set_trace_buffer_size) | |
1844 | (set_trace_user, set_trace_notes, set_trace_stop_notes): Constify. | |
1845 | * top.c (set_history_size_command, set_verbose, set_editing) | |
1846 | (set_gdb_datadir, set_history_filename): Constify. | |
1847 | * target.c (set_targetdebug, maint_set_target_async_command) | |
1848 | (maint_set_target_non_stop_command, set_target_permissions) | |
1849 | (set_write_memory_permission): Constify. | |
1850 | (open_target): Constify. | |
1851 | * target-descriptions.c (set_tdesc_filename_cmd): Constify. | |
1852 | * target-dcache.c (set_stack_cache, set_code_cache): Constify. | |
1853 | * symtab.c (set_symbol_cache_size_handler): Constify. | |
1854 | * symfile.c (set_ext_lang_command): Constify. | |
1855 | * symfile-debug.c (set_debug_symfile): Constify. | |
1856 | * source.c (set_directories_command): Constify. | |
1857 | * solib.c (reload_shared_libraries, gdb_sysroot_changed): Constify. | |
1858 | * serial.c (set_parity): Constify. | |
1859 | * rs6000-tdep.c (powerpc_set_soft_float, powerpc_set_vector_abi): Constify. | |
1860 | * remote.c (set_remote_exec_file, set_remotebreak) | |
1861 | (set_remote_protocol_Z_packet_cmd, set_range_stepping): Constify. | |
1862 | * record.c (set_record_insn_history_size) | |
1863 | (set_record_call_history_size): Constify. | |
1864 | * record-full.c (set_record_full_insn_max_num): Constify. | |
1865 | * proc-api.c (set_procfs_trace_cmd, set_procfs_file_cmd): Constify. | |
1866 | * osabi.c (set_osabi): Constify. | |
1867 | * mips-tdep.c (set_mips64_transfers_32bit_regs) | |
1868 | (reinit_frame_cache_sfunc, mips_abi_update): Constify. | |
1869 | * maint.c (maintenance_set_profile_cmd): Constify. | |
1870 | * linux-thread-db.c (set_libthread_db_search_path): Constify. | |
1871 | * language.c (set_language_command, set_range_command) | |
1872 | (set_case_command): Constify. | |
1873 | * infrun.c (set_non_stop, set_observer_mode) | |
1874 | (set_stop_on_solib_events, set_schedlock_func) | |
1875 | (set_exec_direction_func): Constify. | |
1876 | * infcmd.c (set_inferior_tty_command): Constify. | |
1877 | * disasm.c (set_disassembler_options_sfunc): Constify. | |
1878 | * demangle.c (set_demangling_command): Constify. | |
1879 | * dcache.c (set_dcache_size, set_dcache_line_size): Constify. | |
1880 | * cris-tdep.c (set_cris_version, set_cris_mode) | |
1881 | (set_cris_dwarf2_cfi): Constify. | |
1882 | * corefile.c (set_gnutarget_command): Constify. | |
1883 | * charset.c (set_host_charset_sfunc, set_target_charset_sfunc) | |
1884 | (set_target_wide_charset_sfunc): Constify. | |
1885 | * breakpoint.c (update_dprintf_commands): Constify. | |
1886 | * auto-load.c (set_auto_load_dir, set_auto_load_safe_path): Constify. | |
1887 | * arm-tdep.c (set_fp_model_sfunc, arm_set_abi) | |
1888 | (set_disassembly_style_sfunc): Constify. | |
1889 | * arch-utils.c (set_endian, set_architecture): Constify. | |
1890 | * alpha-tdep.c (reinit_frame_cache_sfunc): Constify. | |
1891 | * agent.c (set_can_use_agent): Constify. | |
1892 | ||
5fed81ff TT |
1893 | 2017-11-07 Tom Tromey <tom@tromey.com> |
1894 | ||
1895 | * go32-nat.c (go32_sysinfo, go32_sldt, go32_sgdt, go32_sidt) | |
1896 | (go32_pde, go32_pte, go32_pte_for_address): Constify. | |
1897 | * gnu-nat.c (_parse_bool_arg, show_thread_default_pause_cmd) | |
1898 | (set_thread_default_pause_cmd, set_thread_default_run_cmd) | |
1899 | (show_thread_default_run_cmd, set_thread_default_detach_sc_cmd) | |
1900 | (parse_int_arg, show_thread_default_detach_sc_cmd) | |
1901 | (set_signals_cmd, show_signals_cmd, set_sig_thread_cmd) | |
1902 | (show_sig_thread_cmd, set_stopped_cmd, show_stopped_cmd) | |
1903 | (set_exceptions_cmd, show_exceptions_cmd, set_task_pause_cmd) | |
1904 | (show_task_pause_cmd, set_task_detach_sc_cmd) | |
1905 | (show_task_detach_sc_cmd, set_task_exc_port_cmd) | |
1906 | (set_noninvasive_cmd, set_thread_pause_cmd) | |
1907 | (show_thread_pause_cmd, set_thread_run_cmd, show_thread_run_cmd) | |
1908 | (set_thread_detach_sc_cmd, show_thread_detach_sc_cmd) | |
1909 | (set_thread_exc_port_cmd, thread_takeover_sc_cmd): Constify. | |
1910 | * windows-nat.c (display_selectors): Constify. | |
1911 | * cli/cli-decode.h (struct cmd_list_element) <function>: Remove | |
1912 | non-const "cfunc". | |
1913 | * cli/cli-decode.c (set_cmd_cfunc): Remove non-const overload. | |
1914 | (cmd_cfunc_eq): Likewise. | |
1915 | (struct cmd_list_element): Likewise. | |
1916 | (do_cfunc): Remove. | |
1917 | (cli_user_command_p): Update. | |
1918 | * command.h (add_cmd): Remove non-const overload. | |
1919 | (cmd_cfunc_ftype): Remove typedef. | |
1920 | (cmd_cfunc_eq): Remove non-const overload. | |
1921 | * value.c (show_values): Constify. | |
1922 | * thread.c (thread_apply_all_command): Constify. | |
1923 | * symfile.c (load_command): Constify. | |
1924 | * source.c (directory_command): Constify. | |
1925 | * maint.c (maintenance_internal_error) | |
1926 | (maintenance_demangler_warning, maintenance_space_display) | |
1927 | (maintenance_print_architecture, maintenance_translate_address) | |
1928 | (maintenance_info_selftests, maintenance_internal_warning): | |
1929 | Constify. | |
1930 | * breakpoint.c (disable_trace_command, enable_trace_command): | |
1931 | Constify. | |
1932 | * auto-load.c (info_auto_load_local_gdbinit, add_auto_load_dir): | |
1933 | Constify. | |
1934 | (add_auto_load_safe_path): Constify. | |
1935 | * guile/scm-auto-load.c (info_auto_load_guile_scripts): Constify. | |
1936 | * top.h (show_commands): Constify. | |
1937 | * linux-thread-db.c (info_auto_load_libthread_db): Constify. | |
1938 | * sparc64-tdep.c (adi_examine_command): Constify. | |
1939 | (adi_assign_command): Constify. | |
1940 | ||
1d12d88f TT |
1941 | 2017-11-07 Tom Tromey <tom@tromey.com> |
1942 | ||
1943 | * frame.h (info_locals_command, info_args_command): Constify. | |
1944 | * auto-load.h (auto_load_info_scripts): Constify. | |
1945 | * inferior.h (registers_info): Constify. | |
1946 | * copying.c: Rebuild. | |
1947 | * copying.awk: Constify generated commands. | |
1948 | * auto-load.c (auto_load_info_scripts) | |
1949 | (info_auto_load_gdb_scripts): Constify. | |
1950 | * cli/cli-decode.c (struct cmd_list_element): Take a | |
1951 | cmd_const_cfunc_ftype. | |
1952 | * command.h (add_info): Take a cmd_const_cfunc_ftype. | |
1953 | * tui/tui-win.c (tui_all_windows_info): Constify. | |
1954 | * python/py-auto-load.c (info_auto_load_python_scripts): | |
1955 | Constify. | |
1956 | * cli/cli-cmds.c (show_command): Remove non-const overload. | |
1957 | * tracepoint.c (info_tvariables_command, info_scope_command): | |
1958 | Constify. | |
1959 | (info_static_tracepoint_markers_command): Constify. | |
1960 | * thread.c (info_threads_command): Constify. | |
1961 | (print_thread_info_1): Constify. | |
1962 | * target.c (info_target_command): Constify. | |
1963 | * symtab.c (info_sources_command, info_functions_command) | |
1964 | (info_types_command): Constify. | |
1965 | (info_variables_command): Remove non-const overload. | |
1966 | * symfile.c (info_ext_lang_command): Constify. | |
1967 | * stack.c (info_frame_command, info_locals_command) | |
1968 | (info_args_command): Constify. | |
1969 | (backtrace_command): Remove non-const overload. | |
1970 | * source.c (info_source_command, info_line_command): Constify. | |
1971 | * solib.c (info_sharedlibrary_command): Constify. | |
1972 | * skip.c (info_skip_command): Constify. | |
1973 | * ser-go32.c (info_serial_command): Constify. | |
1974 | * reverse.c (info_bookmarks_command): Constify. | |
1975 | * printcmd.c (info_symbol_command, info_address_command) | |
1976 | (info_display_command): Constify. | |
1977 | * osdata.c (info_osdata_command): Constify. | |
1978 | * objc-lang.c (info_selectors_command, info_classes_command): | |
1979 | Constify. | |
1980 | * nto-procfs.c (procfs_pidlist, procfs_meminfo): Constify. | |
1981 | * memattr.c (info_mem_command): Constify. | |
1982 | * macrocmd.c (info_macro_command, info_macros_command): Constify. | |
1983 | * linux-fork.c (info_checkpoints_command): Constify. | |
1984 | * infrun.c (info_signals_command): Constify. | |
1985 | * inflow.c (info_terminal_command): Constify. | |
1986 | * inferior.c (info_inferiors_command): Constify. | |
1987 | (print_inferior): Constify. | |
1988 | * infcmd.c (info_program_command, info_all_registers_command) | |
1989 | (info_registers_command, info_vector_command) | |
1990 | (info_float_command): Constify. | |
1991 | (registers_info): Constify. | |
1992 | * gnu-nat.c (info_send_rights_cmd, info_recv_rights_cmd) | |
1993 | (info_port_sets_cmd, info_dead_names_cmd, info_port_rights_cmd): | |
1994 | Constify. | |
1995 | * f-valprint.c (info_common_command): Constify. | |
1996 | * dcache.c (info_dcache_command): Constify. | |
1997 | (dcache_info_1): Constify. | |
1998 | * darwin-nat-info.c (info_mach_tasks_command) | |
1999 | (info_mach_task_command, info_mach_ports_command) | |
2000 | (info_mach_port_command, info_mach_threads_command) | |
2001 | (info_mach_thread_command, info_mach_regions_command) | |
2002 | (info_mach_regions_recurse_command, info_mach_region_command) | |
2003 | (info_mach_exceptions_command): Constify. | |
2004 | (get_task_from_args): Constify. | |
2005 | * cp-support.c (info_vtbl_command): Constify. | |
2006 | * breakpoint.c (info_watchpoints_command) | |
2007 | (info_tracepoints_command): Constify. | |
2008 | (info_breakpoints_command): Remove non-const overload. | |
2009 | * avr-tdep.c (avr_io_reg_read_command): Constify. | |
2010 | * auxv.c (info_auxv_command): Constify. | |
2011 | * ada-tasks.c (info_tasks_command): Constify. | |
2012 | (info_task): Constify. | |
2013 | * ada-lang.c (info_exceptions_command): Constify. | |
2014 | ||
0b39b52e TT |
2015 | 2017-11-07 Tom Tromey <tom@tromey.com> |
2016 | ||
2017 | * solib.h (no_shared_libraries): Constify. | |
2018 | * frame.h (return_command): Constify. | |
2019 | * cli/cli-cmds.h (quit_command): Constify. | |
2020 | * top.h (quit_command, execute_command): Constify. | |
2021 | * target.h (flash_erase_command): Constify. | |
2022 | * inferior.h (set_inferior_args, attach_command): Constify. | |
2023 | * tracepoint.h (start_tracing, stop_tracing): Constify. | |
2024 | * breakpoint.h (break_command, tbreak_command) | |
2025 | (hbreak_command_wrapper, thbreak_command_wrapper) | |
2026 | (rbreak_command_wrapper, watch_command_wrapper) | |
2027 | (awatch_command_wrapper, rwatch_command_wrapper) | |
2028 | (get_tracepoint_by_number): Constify. | |
2029 | * symtab.c (info_variables_command, rbreak_command) | |
2030 | (symtab_symbol_info): Constify. | |
2031 | (info_variables_command): Add non-const overload. | |
2032 | * top.c (dont_repeat_command): Constify. | |
2033 | * breakpoint.c (ignore_command, commands_command) | |
2034 | (condition_command, tbreak_command, hbreak_command) | |
2035 | (thbreak_command, clear_command, break_command) | |
2036 | (info_breakpoints_command, watch_command, rwatch_command) | |
2037 | (awatch_command, trace_command, ftrace_command, strace_command) | |
2038 | (trace_pass_command, break_range_command, dprintf_command) | |
2039 | (agent_printf_command, get_tracepoint_by_number) | |
2040 | (watch_maybe_just_location, trace_pass_command): Constify. | |
2041 | (info_breakpoints_command): Add non-const overload. | |
2042 | * tracefile.c (tsave_command): Constify. | |
2043 | * infcmd.c (attach_command, disconnect_command, signal_command) | |
2044 | (queue_signal_command, stepi_command, nexti_command) | |
2045 | (finish_command, next_command, step_command, until_command) | |
2046 | (advance_command, jump_command, continue_command, run_command) | |
2047 | (start_command, starti_command, interrupt_command) | |
2048 | (run_command_1, set_inferior_args, step_1): Constify. | |
2049 | * inferior.c (add_inferior_command, remove_inferior_command) | |
2050 | (clone_inferior_command): Constify. | |
2051 | * linux-fork.c (checkpoint_command, restart_command): Constify. | |
2052 | * windows-nat.c (signal_event_command): Constify. | |
2053 | * guile/guile.c (guile_repl_command, guile_command): Constify. | |
2054 | * printcmd.c (x_command, display_command, printf_command) | |
2055 | (output_command, set_command, call_command, print_command) | |
2056 | (eval_command): Constify. | |
2057 | (non_const_set_command): Remove. | |
2058 | (_initialize_printcmd): Update. | |
2059 | * source.c (forward_search_command, reverse_search_command): | |
2060 | Constify. | |
2061 | * jit.c (jit_reader_load_command, jit_reader_unload_command): | |
2062 | Constify. | |
2063 | * infrun.c (handle_command): Constify. | |
2064 | * memattr.c (mem_command): Constify. | |
2065 | * stack.c (return_command, up_command, up_silently_command) | |
2066 | (down_command, down_silently_command, frame_command) | |
2067 | (backtrace_command, func_command, backtrace_command_1): Constify. | |
2068 | (backtrace_command): Add non-const overload. | |
2069 | * remote-sim.c (simulator_command): Constify. | |
2070 | * exec.c (set_section_command): Constify. | |
2071 | * tracepoint.c (tdump_command, trace_variable_command) | |
2072 | (tstatus_command, tstop_command, tstart_command) | |
2073 | (end_actions_pseudocommand, while_stepping_pseudocommand) | |
2074 | (collect_pseudocommand, teval_pseudocommand, actions_command) | |
2075 | (start_tracing, stop_tracing): Constify. | |
2076 | * value.c (init_if_undefined_command): Constify. | |
2077 | * tui/tui-stack.c (tui_update_command): Constify. | |
2078 | * tui/tui-win.c (tui_refresh_all_command) | |
2079 | (tui_set_tab_width_command, tui_set_win_height_command) | |
2080 | (tui_set_focus_command, tui_scroll_forward_command) | |
2081 | (tui_scroll_backward_command, tui_scroll_left_command) | |
2082 | (tui_scroll_right_command, parse_scrolling_args, tui_set_focus) | |
2083 | (tui_set_win_height): Constify. | |
2084 | * tui/tui-layout.c (tui_layout_command): Constify. | |
2085 | * procfs.c (proc_trace_syscalls, proc_trace_sysentry_cmd) | |
2086 | (proc_trace_sysexit_cmd, proc_untrace_sysentry_cmd) | |
2087 | (proc_untrace_sysexit_cmd): Constify. | |
2088 | * remote.c (threadlist_test_cmd, threadinfo_test_cmd) | |
2089 | (threadset_test_cmd, threadlist_update_test_cmd) | |
2090 | (threadalive_test): Constify. | |
2091 | * objc-lang.c (print_object_command): Constify. | |
2092 | * command.h (add_com): Constify. | |
2093 | * cli/cli-dump.c (restore_command): Constify. | |
2094 | * cli/cli-cmds.c (pwd_command, echo_command, quit_command) | |
2095 | (help_command, complete_command, shell_command, edit_command) | |
2096 | (list_command, disassemble_command, make_command) | |
2097 | (apropos_command, alias_command): Constify. | |
2098 | * cli/cli-script.c (document_command, define_command) | |
2099 | (while_command, if_command, validate_comname): Constify. | |
2100 | * cli/cli-decode.c (struct cmd_list_element): Change type of | |
2101 | "fun". | |
2102 | * target.c (do_monitor_command, flash_erase_command): Constify. | |
2103 | * regcache.c (reg_flush_command): Constify. | |
2104 | * reverse.c (reverse_step, reverse_next, reverse_stepi) | |
2105 | (reverse_nexti, reverse_continue, reverse_finish) | |
2106 | (save_bookmark_command, goto_bookmark_command) | |
2107 | (exec_reverse_once): Constify. | |
2108 | * python/python.c (python_interactive_command, python_command): | |
2109 | Constify. | |
2110 | * typeprint.c (ptype_command, whatis_command, whatis_exp): | |
2111 | Constify. | |
2112 | * solib.c (sharedlibrary_command, no_shared_libraries): Constify. | |
2113 | * gcore.c (gcore_command): Constify. | |
2114 | ||
85c4be7c TT |
2115 | 2017-11-07 Tom Tromey <tom@tromey.com> |
2116 | ||
2117 | * printcmd.c (x_command): Call set_repeat_arguments. | |
2118 | * cli/cli-cmds.c (list_command): Call set_repeat_arguments. | |
2119 | * top.c (repeat_arguments): New global. | |
2120 | (set_repeat_arguments): New function. | |
2121 | (execute_command): Handle repeat_arguments. | |
2122 | (show_commands): Calls set_repeat_arguments. | |
2123 | * command.h (set_repeat_arguments): Declare. | |
2124 | ||
022643b4 TT |
2125 | 2017-11-07 Tom Tromey <tom@tromey.com> |
2126 | ||
2127 | * stack.c (backtrace_command): Use std::string. | |
2128 | (backtrace_command_1): Make "count_exp" const. | |
2129 | ||
5614fb77 TT |
2130 | 2017-11-07 Tom Tromey <tom@tromey.com> |
2131 | ||
2132 | * source.c (directory_switch, mod_path, add_path): Constify. | |
2133 | * defs.h (add_path, mod_path, directory_switch): Constify. | |
2134 | * mi/mi-cmd-env.c (env_mod_path): Constify. | |
2135 | ||
6be9a197 TT |
2136 | 2017-11-07 Tom Tromey <tom@tromey.com> |
2137 | ||
2138 | * infcmd.c (strip_bg_char): Return gdb::unique_xmalloc_ptr. | |
2139 | (run_command_1, continue_command, step_1, jump_command) | |
2140 | (signal_command, until_command, advance_command, finish_command) | |
2141 | (attach_command): Update. | |
2142 | ||
c2252c0d TT |
2143 | 2017-11-07 Tom Tromey <tom@tromey.com> |
2144 | ||
2145 | * command.h (set_cmd_cfunc): Don't declare. | |
2146 | * cli/cli-decode.c (set_cmd_cfunc): Now static. | |
2147 | ||
1ee870c5 TT |
2148 | 2017-11-07 Tom Tromey <tom@tromey.com> |
2149 | ||
2150 | * stack.c (select_frame_command): Constify. | |
2151 | * cli/cli-decode.c (add_com_suppress_notification): Constify. | |
2152 | * command.h (add_com_suppress_notification): Constify. | |
2153 | ||
ee7ddd71 TT |
2154 | 2017-11-07 Tom Tromey <tom@tromey.com> |
2155 | ||
2156 | * breakpoint.c (stop_command): Constify. | |
2157 | * cli/cli-decode.c (struct cmd_list_element): Constify. | |
2158 | * command.h (add_abbrev_prefix_cmd): Constify. | |
2159 | ||
95e95a6d PA |
2160 | 2017-11-07 Pedro Alves <palves@redhat.com> |
2161 | ||
2162 | * breakpoint.c (extract_bp_kind): New enum. | |
2163 | (extract_bp_num, extract_bp_or_bp_range): New functions, partially | |
2164 | factored out from ... | |
2165 | (extract_bp_number_and_location): ... here. | |
2166 | * cli/cli-utils.c (get_number_trailer): Handle '-$variable'. | |
2167 | ||
cc638e86 PA |
2168 | 2017-11-07 Pedro Alves <palves@redhat.com> |
2169 | ||
2170 | * breakpoint.c (extract_bp_number_and_location): Change return | |
2171 | type to void. Throw error instead of warning. | |
2172 | (enable_disable_command): Adjust. | |
2173 | ||
d0fe4701 XR |
2174 | 2017-11-07 Xavier Roirand <roirand@adacore.com> |
2175 | Pedro Alves <palves@redhat.com> | |
2176 | ||
2177 | * breakpoint.c (map_breakpoint_number_range): New, factored out | |
2178 | from ... | |
2179 | (map_breakpoint_numbers): ... here. | |
2180 | (find_location_by_number): Change parameters from string to | |
2181 | breakpoint number and location. | |
2182 | (extract_bp_number_and_location): New function. | |
2183 | (enable_disable_bp_num_loc) | |
2184 | (enable_disable_breakpoint_location_range) | |
2185 | (enable_disable_command): New functions, factored out ... | |
2186 | (enable_command, disable_command): ... these functions, and | |
2187 | adjusted to support ranges. | |
2188 | * NEWS: Document enable/disable breakpoint location range feature. | |
2189 | ||
635dc5b2 LM |
2190 | 2017-11-06 Luis Machado <luis.machado@linaro.org> |
2191 | ||
2192 | * MAINTAINERS (Write After Approval): Update my e-mail address. | |
2193 | ||
556e5da5 PA |
2194 | 2017-11-06 Pedro Alves <palves@redhat.com> |
2195 | ||
2196 | * gnu-nat.c (gnu_terminal_init): Delete. | |
2197 | (gnu_target): Don't install gnu_terminal_init. | |
2198 | * inflow.c (child_terminal_init_with_pgrp): Delete, merged with ... | |
2199 | (child_terminal_init): ... this function. | |
2200 | ||
d1928160 PA |
2201 | 2017-11-06 Pedro Alves <palves@redhat.com> |
2202 | ||
2203 | * common/common.m4 (GDB_AC_COMMON): No longer check termio.h nor | |
2204 | sgtty.h. | |
2205 | * config.in, configure: Regenerate. | |
2206 | ||
6aa899ce PA |
2207 | 2017-11-06 Pedro Alves <palves@redhat.com> |
2208 | ||
2209 | * event-top.c: Check SIGTSTP instead of STOP_SIGNAL thoughout. | |
2210 | (async_init_signals): Adjust. | |
2211 | (handle_stop_sig): Rename to ... | |
2212 | (handle_sigtstp): ... this. | |
2213 | (async_stop_sig): Rename to ... | |
2214 | (async_sigtstp_handler): ... this, and delete STOP_SIGNAL != | |
2215 | SIGTSTP path. | |
2216 | * event-top.h: Move signal.h include to the top. Check SIGTSTP | |
2217 | instead of STOP_SIGNAL thoughout. | |
2218 | (handle_stop_sig): Rename to ... | |
2219 | (handle_sigtstp): ... this. | |
2220 | * top.c (command_line_input): Replace STOP_SIGNAL -> SIGTSTP. | |
2221 | ||
a94799ac PA |
2222 | 2017-11-06 Pedro Alves <palves@redhat.com> |
2223 | ||
2224 | * inflow.c (child_terminal_inferior, child_terminal_ours_1): No | |
2225 | longer set flags twice in row. | |
2226 | ||
726e1356 PA |
2227 | 2017-11-06 Pedro Alves <palves@redhat.com> |
2228 | ||
2229 | * Makefile.in (SER_HARDWIRE): Update comment. | |
2230 | (HFILES_NO_SRCDIR): Remove gdb_termios.h. | |
2231 | * common/gdb_termios.h: Delete file. | |
2232 | * common/job-control.c: Include termios.h and unistd.h instead of | |
2233 | gdb_termios.h. | |
2234 | (gdb_setpgid): Remove HAVE_TERMIOS || TIOCGPGRP preprocessor | |
2235 | check. | |
2236 | (have_job_control): Check HAVE_TERMIOS_H instead of HAVE_TERMIOS. | |
2237 | Remove sgtty code. | |
2238 | * configure.ac: No longer check for termio.h and sgtty.h. | |
2239 | * configure: Regenerate. | |
2240 | * inflow.c: Include termios.h instead of gdb_termios.h. Replace | |
2241 | PROCESS_GROUP_TYPE checks with HAVE_TERMIOS_H checks throughout. | |
2242 | Replace PROCESS_GROUP_TYPE references with pid_t references | |
2243 | throughout. | |
2244 | (gdb_getpgrp): Delete. | |
2245 | (set_initial_gdb_ttystate): Use tcgetpgrp instead of gdb_getpgrp. | |
2246 | (child_terminal_inferior): Remove comment. Remove sgtty code. | |
2247 | (child_terminal_ours_1): Use tcgetpgrp directly instead of | |
2248 | gdb_getpgrp. Use serial_set_tty_state instead aof | |
2249 | serial_noflush_set_tty_state. Remove sgtty code. | |
2250 | * inflow.h: Include unistd.h instead of gdb_termios.h. Replace | |
2251 | PROCESS_GROUP_TYPE check with HAVE_TERMIOS_H check. | |
2252 | (inferior_process_group): Now returns pid_t. | |
2253 | * ser-base.c (ser_base_noflush_set_tty_state): Delete. | |
2254 | * ser-base.h (ser_base_noflush_set_tty_state): Delete. | |
2255 | * ser-event.c (serial_event_ops): Update. | |
2256 | * ser-go32.c (dos_noflush_set_tty_state): Delete. | |
2257 | (dos_ops): Update. | |
2258 | * ser-mingw.c (hardwire_ops, tty_ops, pipe_ops, tcp_ops): Update. | |
2259 | * ser-pipe.c (pipe_ops): Update. | |
2260 | * ser-tcp.c (tcp_ops): Update. | |
2261 | * ser-unix.c: Include termios.h instead of gdb_termios.h. Remove | |
2262 | HAVE_TERMIOS checks. | |
2263 | [HAVE_TERMIO] (struct hardwire_ttystate): Delete. | |
2264 | [HAVE_SGTTY] (struct hardwire_ttystate): Delete. | |
2265 | (get_tty_state, set_tty_state): Drop termio and sgtty code, and | |
2266 | assume termios. | |
2267 | (hardwire_noflush_set_tty_state): Delete. | |
2268 | (hardwire_print_tty_state, hardwire_drain_output) | |
2269 | (hardwire_flush_output, hardwire_flush_input) | |
2270 | (hardwire_send_break, hardwire_raw, hardwire_setbaudrate) | |
2271 | (hardwire_setstopbits, hardwire_setparity): Drop termio and sgtty | |
2272 | code, and assume termios. | |
2273 | (hardwire_ops): Update. | |
2274 | (_initialize_ser_hardwire): Remove HAVE_TERMIOS check. | |
2275 | * serial.c (serial_noflush_set_tty_state): Delete. | |
2276 | * serial.h (serial_noflush_set_tty_state): Delete. | |
2277 | (serial_ops::noflush_set_tty_state): Delete. | |
2278 | ||
1cfb73db UW |
2279 | 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com> |
2280 | ||
2281 | * Makefile.in (SFILES): Remove doublest.c and dfp.c. | |
2282 | (HFILES_NO_SRCDIR): Remove doublest.h and dfp.h. | |
2283 | (COMMON_OBS): Remove doublest.o and dfp.o. | |
2284 | Do not build target-float.c (instead of doublest.c) | |
2285 | with -Wformat-nonliteral. | |
2286 | ||
2287 | * doublest.c: Remove file. | |
2288 | * doublest.h: Remove file. | |
2289 | * dfp.c: Remove file. | |
2290 | * dfp.h: Remove file. | |
2291 | ||
2292 | * target-float.c: Do not include "doublest.h" and "dfp.h". | |
2293 | (DOUBLEST): Move here from doublest.h. | |
2294 | (enum float_kind): Likewise. | |
2295 | (FLOATFORMAT_CHAR_BIT): Likewise. | |
2296 | (FLOATFORMAT_LARGEST_BYTES): Likewise. | |
2297 | (floatformat_totalsize_bytes): Move here from doublest.c. Make static. | |
2298 | (floatformat_precision): Likewise. | |
2299 | (floatformat_normalize_byteorder, get_field, put_field): Likewise. | |
2300 | (floatformat_is_negative, floatformat_classify, floatformat_mantissa): | |
2301 | Likewise. | |
2302 | (host_float_format, host_double_format, host_long_double_format): | |
2303 | Likewise. | |
2304 | (floatformat_to_string, floatformat_from_string): Likewise. | |
2305 | (floatformat_to_doublest): Likewise. Also, inline the original | |
2306 | convert_floatformat_to_doublest. | |
2307 | (floatformat_from_doublest): Likewise. Also, inline the original | |
2308 | convert_floatformat_from_doublest. | |
2309 | ||
2310 | Include "dpd/decimal128.h", "dpd/decimal64.h", and "dpd/decimal32.h". | |
2311 | (MAX_DECIMAL_STRING): Move here from dfp.c. | |
2312 | (match_endianness): Likewise. | |
2313 | (set_decnumber_context, decimal_check_errors): Likewise. | |
2314 | (decimal_from_number, decimal_to_number): Likewise. | |
2315 | (decimal_to_string, decimal_from_string): Likewise. Make static. | |
2316 | (decimal_from_longest, decimal_from_ulongest): Likewise. | |
2317 | (decimal_to_longest): Likewise. | |
2318 | (decimal_binop, decimal_is_zero, decimal_compare): Likewise. | |
2319 | (decimal_convert): Likewise. | |
2320 | ||
b07e9c46 UW |
2321 | 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com> |
2322 | ||
2323 | * doublest.c: Do not include "gdbtypes.h". | |
2324 | (extract_typed_floating): Remove. | |
2325 | (store_typed_floating): Remove. | |
2326 | (convert_typed_floating): Remove. | |
2327 | * doublest.h (struct type): Remove. | |
2328 | (DOUBLEST_PRINT_FORMAT): Remove. | |
2329 | (DOUBLEST_SCAN_FORMAT): Remove. | |
2330 | (extract_typed_floating): Remove. | |
2331 | (store_typed_floating): Remove. | |
2332 | (convert_typed_floating): Remove. | |
2333 | ||
2334 | * dfp.c (decimal_from_doublest): Remove. | |
2335 | (decimal_to_doublest): Remove. | |
2336 | * dfp.h: Do not include "doublest.h". | |
2337 | (decimal_from_doublest): Remove. | |
2338 | (decimal_to_doublest): Remove. | |
2339 | ||
2340 | * value.c: Do not include "doublest.h" and "dfp.h". | |
2341 | (value_as_double): Remove. | |
2342 | (unpack_double): Remove. | |
2343 | (value_from_double): Remove. | |
2344 | (value_from_decfloat): Remove. | |
2345 | * value.h: Do not include "doublest.h". | |
2346 | (value_as_double): Remove. | |
2347 | (unpack_double): Remove. | |
2348 | (value_from_double): Remove. | |
2349 | (value_from_decfloat): Remove. | |
2350 | ||
3b2ca824 UW |
2351 | 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com> |
2352 | ||
2353 | * i386-tdep.c: Include "target-float.h". Do not include "doublest.h". | |
2354 | (i386_extract_return_value): Use target_float_convert. | |
2355 | (i386_store_return_value): Likewise. | |
2356 | * i387-tdep.c (i387_register_to_value): Use target_float_convert. | |
2357 | (i387_value_to_register): Likewise. | |
2358 | * ia64-tdep.c: Include "target-float.h". Do not include "doublest.h". | |
2359 | (ia64_register_to_value): Use target_float_convert. | |
2360 | (ia64_value_to_register): Likewise. | |
2361 | (ia64_extract_return_value): Likewise. | |
2362 | (ia64_store_return_value): Likewise. | |
2363 | (ia64_push_dummy_call): Likewise. | |
2364 | * m68k-tdep.c: Include "target-float.h". | |
2365 | (m68k_register_to_value): Use target_float_convert. | |
2366 | (m68k_value_to_register): Likewise. | |
2367 | (m68k_svr4_extract_return_value): Likewise. | |
2368 | (m68k_svr4_store_return_value): Likewise. | |
2369 | * ppc-sysv-tdep.c: Include "target-float.h". | |
2370 | (ppc_sysv_abi_push_dummy_call): Use target_float_convert. | |
2371 | (do_ppc_sysv_return_value): Likewise. | |
2372 | (ppc64_sysv_abi_push_freg): Likewise. | |
2373 | (ppc64_sysv_abi_return_value_base): Likewise. | |
2374 | * rs6000-aix-tdep.c: Include "target-float.h". | |
2375 | (rs6000_push_dummy_call): Use target_float_convert. | |
2376 | (rs6000_return_value): Likewise. | |
2377 | * rs6000-lynx178-tdep.c: Include "target-float.h". | |
2378 | (rs6000_lynx178_push_dummy_call): Use target_float_convert. | |
2379 | (rs6000_lynx178_return_value): Likewise. | |
2380 | * rs6000-tdep.c: Include "target-float.h". Do not include "doublest.h". | |
2381 | (rs6000_register_to_value): Use target_float_convert. | |
2382 | (rs6000_value_to_register): Likewise. | |
2383 | * arm-tdep.c: Include "target-float.h". Do not include "doublest.h". | |
2384 | (arm_extract_return_value): Use target_float_convert. | |
2385 | (arm_store_return_value): Likewise. | |
2386 | * sh-tdep.c: Include "target-float.h". Do not include "doublest.h". | |
2387 | (sh_register_convert_to_virtual): Use target_float_convert. | |
2388 | (sh_register_convert_to_raw): Likewise. | |
2389 | * sh64-tdep.c: Include "target-float.h". | |
2390 | (sh64_extract_return_value): Use target_float_convert. | |
2391 | (sh64_register_convert_to_virtual): Likewise. | |
2392 | (sh64_register_convert_to_raw): Likewise. Fix argument types. | |
2393 | ||
14ad9311 UW |
2394 | 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com> |
2395 | ||
2396 | * target-float.c (floatformat_to_host_double): New function. | |
2397 | (floatformat_from_host_double): Likewise. | |
2398 | (target_float_to_host_double): Likewise. | |
2399 | (target_float_from_host_double): Likewise. | |
2400 | * target-float.h (target_float_to_host_double): Add prototype. | |
2401 | (target_float_from_host_double): Likewise. | |
2402 | ||
2403 | * guile/scm-value.c: Include "target-float.h". | |
2404 | (gdbscm_value_to_real): Use target_float_to_host_double. | |
2405 | Handle integer source values via value_as_long. | |
2406 | * guile/scm-math.c: Include "target-float.h". Do not include | |
2407 | "doublest.h", "dfp.h", and "expression.h". | |
2408 | (vlscm_convert_typed_number): Use target_float_from_host_double. | |
2409 | (vlscm_convert_number): Likewise. | |
2410 | ||
2411 | * python/py-value.c (valpy_float): Use target_float_to_host_double. | |
2412 | (convert_value_from_python): Use target_float_from_host_double. | |
2413 | ||
50eff16b UW |
2414 | 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com> |
2415 | ||
2416 | * ada-lang.c (cast_to_fixed): Reimplement in target arithmetic. | |
2417 | (cast_from_fixed): Likewise. | |
2418 | (ada_scaling_type): New function. | |
2419 | (ada_delta): Return value instead of DOUBLEST. Perform target | |
2420 | arithmetic instead of host arithmetic. | |
2421 | (scaling_factor): Rename to ... | |
2422 | (ada_scaling_factor) ... this. Make non-static. Return value instead | |
2423 | of DOUBLEST. Perform target arithmetic instead of host arithmetic. | |
2424 | (ada_fixed_to_float): Remove. | |
2425 | (ada_float_to_fixed): Remove. | |
2426 | * ada-lang.h (ada_fixed_to_float): Remove. | |
2427 | (ada_float_to_fixed): Remove. | |
2428 | (ada_delta): Return value instead of DOUBLEST. | |
2429 | (ada_scaling_factor): Add prototype. | |
2430 | ||
2431 | * ada-typeprint.c: Include "target-float.h". | |
2432 | (print_fixed_point_type): Perform target arithmetic instead of | |
2433 | host arithmetic. | |
2434 | * ada-valprint.c: Include "target-float.h". | |
2435 | (ada_val_print_num): Perform target arithmetic instead of | |
2436 | host arithmetic for fixed-point types. | |
2437 | ||
66c02b9e UW |
2438 | 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com> |
2439 | ||
2440 | * target-float.c: Include <math.h>. | |
2441 | (floatformat_binop): New function. | |
2442 | (floatformat_compare): Likewise. | |
2443 | (target_float_binop): Likewise. | |
2444 | (target_float_compare): Likewise. | |
2445 | * target-float.h: Include "expression.h". | |
2446 | (target_float_binop): Add prototype. | |
2447 | (target_float_compare): Likewise. | |
2448 | ||
2449 | * valarith.c: Do not include "doublest.h" and "dfp.h". | |
2450 | Include "common/byte-vector.h". | |
2451 | (value_args_as_decimal): Remove, replace by ... | |
2452 | (value_args_as_target_float): ... this function. Handle both | |
2453 | binary and decimal target floating-point formats. | |
2454 | (scalar_binop): Handle both binary and decimal FP using | |
2455 | value_args_as_target_float and target_float_binop. | |
2456 | (value_equal): Handle both binary and decimal FP using | |
2457 | value_args_as_target_float and target_float_compare. | |
2458 | (value_less): Likewise. | |
2459 | (value_pos): Handle all scalar types as simple copy. | |
2460 | (value_neg): Handle all scalar types via BINOP_SUB from 0. | |
2461 | * dfp.c (decimal_binop): Throw error instead of internal_error | |
2462 | when called with an unsupported operation code. | |
2463 | ||
f69fdf9b UW |
2464 | 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com> |
2465 | ||
2466 | * target-float.c (target_float_to_string): New function. | |
2467 | (target_float_from_string): New function. | |
2468 | * target-float.h (target_float_to_string): Add prototype. | |
2469 | (target_float_from_string): Add prototype. | |
2470 | ||
2471 | * valprint.c: Include "target-float.h". Do not include | |
2472 | "doublest.h" and "dfp.h". | |
2473 | (print_floating): Use target_float_to_string. | |
2474 | * printcmd.c: Include "target-float.h". Do not include "dfp.h". | |
2475 | (printf_floating): Use target_float_to_string. | |
2476 | * i387-tdep.c: Include "target-float.h". Do not include "doublest.h". | |
2477 | (print_i387_value): Use target_float_to_string. | |
2478 | * mips-tdep.c: Include "target-float.h". | |
2479 | (mips_print_fp_register): Use target_float_to_string. | |
2480 | * sh64-tdep.c: Include "target-float.h". | |
2481 | (sh64_do_fp_register): Use target_float_to_string. | |
2482 | ||
2483 | * parse.c: Include "target-float.h". Do not include | |
2484 | "doublest.h" and "dfp.h". | |
2485 | (parse_float): Use target_float_from_string. | |
2486 | * stabsread.c: Include "target-float.h". Do not include "doublest.h". | |
2487 | (define_symbol): Use target_float_from_string. | |
2488 | * gdbarch-selftests.c: Include "target-float.h". | |
2489 | (register_to_value_test): Use target_float_from_string. | |
2490 | ||
70100014 UW |
2491 | 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com> |
2492 | ||
2493 | * Makefile.c (SFILES): Add target-float.c. | |
2494 | (HFILES_NO_SRCDIR): Add target-float.h. | |
2495 | (COMMON_OBS): Add target-float.o. | |
2496 | * target-float.h: New file. | |
2497 | * target-float.c: New file. | |
2498 | ||
2499 | * doublest.c (floatformat_classify): Fix detection of float_zero. | |
2500 | ||
2501 | * gdbtypes.c (is_floating_type): New function. | |
2502 | * gdbtypes.h (is_floating_type): Add prototype. | |
2503 | ||
2504 | * value.c: Do not include "floatformat.h". | |
2505 | (unpack_double): Use target_float_is_valid. | |
2506 | (is_floating_value): New function. | |
2507 | * value.h (is_floating_value): Add prototype- | |
2508 | ||
2509 | * valarith.c: Include "target-float.h". | |
2510 | (value_logical_not): Use target_float_is_zero. | |
2511 | ||
2512 | * python/py-value.c: Include "target-float.h". | |
2513 | (valpy_nonzero): Use target_float_is_zero. | |
2514 | ||
ab4b1c46 TT |
2515 | 2017-11-04 Tom Tromey <tom@tromey.com> |
2516 | ||
2517 | * h8300-tdep.c (h8300_push_dummy_call): Use std::vector. | |
2518 | ||
454dafbd TT |
2519 | 2017-11-04 Tom Tromey <tom@tromey.com> |
2520 | ||
2521 | * breakpoint.c (set_momentary_breakpoint): Return | |
2522 | breakpoint_up. | |
2523 | (until_break_command): Update. | |
2524 | (new_until_break_fsm): Change argument types to | |
2525 | breakpoint_up. | |
2526 | (set_momentary_breakpoint_at_pc): Return breakpoint_up. | |
2527 | (do_delete_breakpoint_cleanup, make_cleanup_delete_breakpoint): | |
2528 | Remove. | |
2529 | * infcmd.c (finish_forward): Update. | |
2530 | * breakpoint.h (set_momentary_breakpoint) | |
2531 | (set_momentary_breakpoint_at_pc): Return breakpoint_up. | |
2532 | (make_cleanup_delete_breakpoint): Remove. | |
2533 | (struct breakpoint_deleter): New. | |
2534 | (breakpoint_up): New typedef. | |
2535 | * infrun.c (insert_step_resume_breakpoint_at_sal_1): Update. | |
2536 | (insert_exception_resume_breakpoint): Update. | |
2537 | (insert_exception_resume_from_probe): Update. | |
2538 | (insert_longjmp_resume_breakpoint): Update. | |
2539 | * arm-linux-tdep.c (arm_linux_copy_svc): Update. | |
2540 | * elfread.c (elf_gnu_ifunc_resolver_stop): Update. | |
2541 | * infcall.c (call_function_by_hand_dummy): Update | |
2542 | ||
331b71e5 TT |
2543 | 2017-11-04 Tom Tromey <tom@tromey.com> |
2544 | ||
2545 | * c-typeprint.c (c_type_print_base): Use gdb::unique_xmalloc_ptr. | |
2546 | ||
9f584b37 TT |
2547 | 2017-11-04 Tom Tromey <tom@tromey.com> |
2548 | ||
2549 | * linux-tdep.c (linux_core_info_proc_mappings): Use | |
2550 | gdb::def_vector. | |
2551 | (linux_get_siginfo_data): Return gdb::byte_vector. Remove | |
2552 | "size" argument. | |
2553 | (linux_corefile_thread): Update. | |
2554 | (linux_make_corefile_notes): Remove unused variable. | |
2555 | ||
779bc38e TT |
2556 | 2017-11-04 Tom Tromey <tom@tromey.com> |
2557 | ||
2558 | * ppc-linux-tdep.c (ppc_linux_get_syscall_number): Use | |
2559 | gdb::byte_vector. | |
2560 | ||
ed2b3126 TT |
2561 | 2017-11-04 Tom Tromey <tom@tromey.com> |
2562 | ||
2563 | * objfiles.c (do_free_objfile_cleanup): Remove. | |
2564 | * compile/compile-object-load.c (compile_object_load): Update. | |
2565 | * objfiles.h (make_cleanup_free_objfile): Remove. | |
2566 | ||
7f6743fd TT |
2567 | 2017-11-04 Tom Tromey <tom@tromey.com> |
2568 | ||
2569 | * sparc64-tdep.c (do_examine): Use gdb::def_vector. | |
2570 | (adi_read_versions): Change "tags" to "gdb_byte *". | |
2571 | (adi_print_versions): Likewise. | |
2572 | ||
c80049d3 TT |
2573 | 2017-11-04 Tom Tromey <tom@tromey.com> |
2574 | ||
2575 | * breakpoint.c | |
2576 | (scoped_rbreak_breakpoints::scoped_rbreak_breakpoints): Rename | |
2577 | from start_rbreak_breakpoints. | |
2578 | (scoped_rbreak_breakpoints): Rename from end_rbreak_breakpoints. | |
2579 | * breakpoint.h (class scoped_rbreak_breakpoints): New. | |
2580 | (start_rbreak_breakpoints, end_rbreak_breakpoints): Remove. | |
2581 | * symtab.c (do_end_rbreak_breakpoints): Remove. | |
2582 | (rbreak_command): Use scoped_rbreak_breakpoints, std::string. | |
2583 | ||
167b0be1 TT |
2584 | 2017-11-04 Tom Tromey <tom@tromey.com> |
2585 | ||
2586 | * cp-namespace.c (reset_directive_searched): Remove. | |
2587 | (cp_lookup_symbol_via_imports): Use scoped_restore. | |
2588 | * cp-support.c (reset_directive_searched): Remove. | |
2589 | (make_symbol_overload_list_using): Use scoped_restore. | |
2590 | * d-namespace.c (d_lookup_symbol_imports): Use scoped_restore. | |
2591 | (reset_directive_searched): Remove. | |
2592 | ||
5eae7aea TT |
2593 | 2017-11-04 Tom Tromey <tom@tromey.com> |
2594 | ||
2595 | * symfile.c (find_separate_debug_file_by_debuglink): Use | |
2596 | unique_xmalloc_ptr. | |
2597 | ||
c6bcad5f TT |
2598 | 2017-11-04 Tom Tromey <tom@tromey.com> |
2599 | ||
2600 | * compile/compile-loc2c.c (compute_stack_depth_worker): Change | |
2601 | type of "info". | |
2602 | (compute_stack_depth): Likewise. | |
2603 | (do_compile_dwarf_expr_to_c): Use std::vector. | |
2604 | ||
20dcd8ca TT |
2605 | 2017-11-04 Tom Tromey <tom@tromey.com> |
2606 | ||
2607 | * compile/compile-object-load.c (link_callbacks_einfo): Use | |
2608 | std::string. | |
2609 | ||
33c7c59d TT |
2610 | 2017-11-04 Tom Tromey <tom@tromey.com> |
2611 | ||
2612 | * dwarf2read.c (process_full_comp_unit, process_full_type_unit): | |
2613 | Use scoped_free_pendings. | |
2614 | * dbxread.c (dbx_symfile_read, dbx_psymtab_to_symtab_1): Use | |
2615 | scoped_free_pendings. | |
2616 | * xcoffread.c (xcoff_psymtab_to_symtab_1): Use scoped_free_pendings. | |
2617 | (xcoff_initial_scan): Likewise. | |
2618 | * buildsym.c (reset_symtab_globals): Update comment. | |
2619 | (scoped_free_pendings): Rename from really_free_pendings. | |
2620 | (prepare_for_building): Update comment. | |
2621 | (buildsym_init): Likewise. | |
2622 | * buildsym.h (class scoped_free_pendings): New class. | |
2623 | (really_free_pendings): Don't declare. | |
2624 | ||
67fa57cf UW |
2625 | 2017-11-03 Ulrich Weigand <uweigand@de.ibm.com> |
2626 | ||
2627 | * doublest.c (convert_doublest_to_floatformat): Fix uninitialized | |
2628 | output when converting a zero value to a special byteorder format. | |
2629 | ||
f26ae15b YQ |
2630 | 2017-11-02 Yao Qi <yao.qi@linaro.org> |
2631 | ||
2632 | * frame.c (do_frame_register_read): Remove aspace. | |
2633 | * jit.c (jit_frame_sniffer): Likwise. | |
2634 | * ppc-linux-tdep.c (ppu2spu_sniffer): Likewise. | |
2635 | * regcache.c (regcache::regcache): Pass nullptr. | |
2636 | (regcache_print): Caller updated. | |
2637 | * regcache.h (regcache::regcache): Remove one constructor | |
2638 | parameter aspace. | |
2639 | ||
6c6e9412 YQ |
2640 | 2017-11-02 Yao Qi <yao.qi@linaro.org> |
2641 | ||
2642 | * regcache.h (regcache) <m_readonly_p>: Change it to const bool. | |
2643 | ||
8b86c959 YQ |
2644 | 2017-11-02 Yao Qi <yao.qi@linaro.org> |
2645 | ||
2646 | * breakpoint.c (insert_single_step_breakpoints): Update. | |
2647 | * frame.c (struct frame_info) <aspace>: Add const. | |
2648 | (frame_save_as_regcache): Add const. | |
2649 | (get_frame_address_space): Return const address_space *. | |
2650 | * frame.h (get_frame_address_space): Update declaration. | |
2651 | * infrun.c (struct step_over_info) <aspace>: Add const. | |
2652 | (set_step_over_info): Make aspace const. | |
2653 | (displaced_step_prepare_throw): Change variable const. | |
2654 | (resume): Likewise. | |
2655 | (proceed): Likewise. | |
2656 | (adjust_pc_after_break): Likewise. | |
2657 | (save_waitstatus): Likewise. | |
2658 | (handle_signal_stop): Likewise. | |
2659 | (keep_going_pass_signal): Likewise. | |
2660 | * jit.c (jit_frame_sniffer): Add const. | |
2661 | * mips-tdep.c (mips_single_step_through_delay): Likewise. | |
2662 | * ppc-linux-tdep.c (ppu2spu_sniffer): Likewise. | |
2663 | * record-full.c (record_full_wait_1): Likewise. | |
2664 | * regcache.c (regcache::regcache): Change parameter to const. | |
2665 | * regcache.h (regcache::regcache): Likewise. | |
2666 | (regcache::aspace): Return const address_space *. | |
2667 | (regcache) <m_aspace>: Add const. | |
2668 | ||
a01bda52 YQ |
2669 | 2017-11-02 Yao Qi <yao.qi@linaro.org> |
2670 | ||
2671 | * darwin-nat.c (cancel_breakpoint): Use regcache->aspace (). | |
2672 | * frame.c (create_sentinel_frame): Likewise. | |
2673 | * infrun.c (displaced_step_prepare_throw): Likewise. | |
2674 | (resume): Likewise. | |
2675 | (thread_still_needs_step_over_bp): Likewise. | |
2676 | (proceed): Likewise. | |
2677 | (do_target_wait): Likewise. | |
2678 | (adjust_pc_after_break): Likewise. | |
2679 | (handle_syscall_event): Likewise. | |
2680 | (save_waitstatus): Likewise. | |
2681 | (handle_inferior_event_1): Likewise. | |
2682 | (handle_signal_stop): Likewise. | |
2683 | (keep_going_pass_signal): Likewise. | |
2684 | * linux-nat.c (status_callback): Likewise. | |
2685 | (save_stop_reason): Likewise. | |
2686 | (resume_stopped_resumed_lwps): Likewise. | |
2687 | * record-full.c (record_full_exec_insn): Likewise. | |
2688 | (record_full_wait_1): Likewise. | |
2689 | * regcache.c (get_regcache_aspace): Remove. | |
2690 | * regcache.h (get_regcache_aspace): Remove. | |
2691 | ||
d999647b YQ |
2692 | 2017-11-02 Yao Qi <yao.qi@linaro.org> |
2693 | ||
2694 | * regcache.c (struct regcache_descr) <nr_raw_registers>: Remove. | |
2695 | (init_regcache_descr): Use gdbarch_num_regs. | |
2696 | (regcache::regcache): Likewise. | |
2697 | (regcache::get_register_status): Likewise. | |
2698 | (regcache::assert_raw_regnum): Likewise. | |
2699 | (regcache::cooked_read): Likewise. | |
2700 | (regcache::cooked_read_value): Likewise. | |
2701 | (regcache::cooked_write): Likewise. | |
2702 | (regcache::dump): Likewise. | |
2703 | (regcache::num_raw_registers): New method. | |
2704 | * regcache.h (class regcache) <num_raw_registers>: New. | |
2705 | ||
4e888c28 YQ |
2706 | 2017-11-02 Yao Qi <yao.qi@linaro.org> |
2707 | ||
2708 | * regcache.c (regcache::assert_regnum): New method. | |
2709 | (regcache::invalidate): Call assert_regnum. | |
2710 | (regcache::raw_update): Likewise. | |
2711 | (regcache::raw_write): Likewise. | |
2712 | (regcache::raw_read_part): Likewise. | |
2713 | (regcache::raw_write_part): Likewise. | |
2714 | (regcache::raw_supply): Likewise. | |
2715 | (regcache::raw_supply_integer): Likewise. | |
2716 | (regcache::raw_supply_zeroed): Likewise. | |
2717 | (regcache::raw_collect): Likewise. | |
2718 | (regcache::raw_collect_integer): Likewise. | |
2719 | * regcache.h (regcache::assert_regnum): Declare. | |
2720 | ||
2e1b49b3 YQ |
2721 | 2017-11-02 Yao Qi <yao.qi@linaro.org> |
2722 | ||
2723 | * regcache.c (regcache::dump): Remove code. | |
2724 | ||
6c5218df YQ |
2725 | 2017-11-02 Yao Qi <yao.qi@linaro.org> |
2726 | ||
2727 | * regcache.c (struct regcache_descr) <sizeof_raw_register_status>: | |
2728 | Remove. | |
2729 | <sizeof_cooked_register_status>: Remove. | |
2730 | (init_regcache_descr): Update. | |
2731 | (regcache::regcache): Use nr_cooked_registers and nr_raw_registers. | |
2732 | (regcache::save): Likewise. | |
2733 | (regcache::dump): Likewise. | |
2734 | ||
dcc31d28 JB |
2735 | 2017-11-01 James Bowman <james.bowman@ftdichip.com> |
2736 | ||
2737 | * ft32-tdep.c (ft32_fetch_instruction): New function. | |
2738 | (ft32_analyze_prologue): Use ft32_fetch_instruction(). | |
2739 | ||
3a87ae65 SM |
2740 | 2017-10-31 Simon Marchi <simon.marchi@polymtl.ca> |
2741 | ||
2742 | * cli/cli-script.c (execute_control_command): Rename to ... | |
2743 | (execute_control_command_1): ... this. | |
2744 | (execute_control_command): New function. | |
2745 | ||
09b847f3 SM |
2746 | 2017-10-31 Simon Marchi <simon.marchi@ericsson.com> |
2747 | ||
2748 | * tracepoint.c (tfind_command): Remove const_cast. | |
2749 | ||
f871c485 MG |
2750 | 2017-10-30 Mike Gulick <mgulick@mathworks.com> |
2751 | ||
2752 | * Makefile.in (HFILES_NO_SRCDIR): Remove reference to gdb.h. | |
2753 | ||
b020ff80 SM |
2754 | 2017-10-30 Simon Marchi <simon.marchi@ericsson.com> |
2755 | ||
2756 | * common/common-utils.h (in_inclusive_range): New function. | |
2757 | * arm-tdep.c (arm_record_extension_space): Use | |
2758 | in_inclusive_range. | |
2759 | (thumb_record_ld_st_reg_offset): Use in_inclusive_range. | |
2760 | * cris-tdep.c (cris_spec_reg_applicable): Use | |
2761 | in_inclusive_range. | |
2762 | ||
1b81856f PA |
2763 | 2017-10-30 Pedro Alves <palves@redhat.com> |
2764 | Simon Marchi <simon.marchi@ericsson.com> | |
2765 | ||
2766 | * remote.c (remote_set_syscall_catchpoint): Build a std::string | |
2767 | instead of a gdb::unique_xmalloc_ptr, using string_appendf. | |
2768 | ||
31b833b3 PA |
2769 | 2017-10-30 Pedro Alves <palves@redhat.com> |
2770 | ||
2771 | * common/common-utils.c (string_appendf, string_vappendf): New | |
2772 | functions. | |
2773 | * common/common-utils.h (string_appendf, string_vappendf): New | |
2774 | declarations. | |
2775 | * unittests/common-utils-selftests.c (string_appendf_func) | |
2776 | (test_appendf_func, string_vappendf_wrapper, string_appendf_tests) | |
2777 | (string_vappendf_tests): New functions. | |
2778 | (_initialize_common_utils_selftests): Register "string_appendf" and | |
2779 | "string_vappendf tests". | |
2780 | ||
4a250334 PA |
2781 | 2017-10-30 Pedro Alves <palves@redhat.com> |
2782 | ||
2783 | * unittests/common-utils-selftests.c (format_func): New typedef. | |
2784 | (string_printf_tests, string_vprintf_tests): Tests factored out | |
2785 | and merged to ... | |
2786 | (test_format_func): ... this new function. | |
2787 | (string_printf_tests, string_vprintf_tests): Reimplement on top of | |
2788 | test_format_func. | |
2789 | ||
16c5c17e SM |
2790 | 2017-10-29 Simon Marchi <simon.marchi@ericsson.com> |
2791 | ||
2792 | * darwin-nat.c: Remove include of gdb.h. | |
2793 | ||
7ca51576 SM |
2794 | 2017-10-29 Simon Marchi <simon.marchi@ericsson.com> |
2795 | ||
2796 | * xtensa-xtregs.c: Fix formatting issues. | |
2797 | ||
c1342859 SM |
2798 | 2017-10-29 Simon Marchi <simon.marchi@ericsson.com> |
2799 | ||
2800 | * xtensa-xtregs.c (xtensa_regtable_t) <name>: Constify. | |
2801 | ||
484d8d36 MD |
2802 | 2017-10-28 Maksim Dzabraev <dzabraew@gmail.com> |
2803 | ||
2804 | PR python/21213 | |
2805 | * python/py-infthread.c (thpy_get_inferior): Increment reference | |
2806 | of inferior before returning it. | |
2807 | ||
b5540b5f SM |
2808 | 2017-10-27 Simon Marchi <simon.marchi@ericsson.com> |
2809 | ||
2810 | * unittests/common-utils-selftests.c (format): Add | |
2811 | ATTRIBUTE_PRINTF. | |
2812 | ||
5a9dcda1 SM |
2813 | 2017-10-27 Simon Marchi <simon.marchi@polymtl.ca> |
2814 | ||
2815 | * xml-syscall.c (struct syscall_desc): Add constructor. | |
2816 | <name>: Change type to std::string. | |
2817 | (syscall_desc_up): New typedef. | |
2818 | (syscall_desc_p): Remove typeder. | |
2819 | (DEF_VEC_P(syscall_desc_p)): Remove. | |
2820 | (struct syscall_group_desc): Add constructor. | |
2821 | <name>: Change type to std::string. | |
2822 | <syscalls>: Change type to std::vector. | |
2823 | (syscall_group_desc_up): New typedef. | |
2824 | (syscall_group_desc_p): Remove typedef. | |
2825 | (DEF_VEC_P(syscall_group_desc_p)): Remove. | |
2826 | (struct syscalls_info) <syscalls>: Change type to std::vector of | |
2827 | unique_ptr. | |
2828 | <groups>: Likewise. | |
2829 | <my_gdb_datadir>: Change type to std::string. | |
2830 | (syscalls_info_up): New typedef. | |
2831 | (allocate_syscalls_info): Remove. | |
2832 | (syscalls_info_free_syscalls_desc): Remove. | |
2833 | (syscalls_info_free_syscall_group_desc): Remove. | |
2834 | (free_syscalls_info): Remove. | |
2835 | (make_cleanup_free_syscalls_info): Remove. | |
2836 | (syscall_group_create_syscall_group_desc): Adjust. | |
2837 | (syscall_group_add_syscall): Adjust. | |
2838 | (syscall_create_syscall_desc): Adjust. | |
2839 | (syscall_parse_xml): Adjust, use unique_ptr instead of cleanup. | |
2840 | (init_syscalls_info): Adjust. | |
2841 | (syscall_group_get_group_by_name): Adjust. | |
2842 | (xml_get_syscall_number): Adjust. | |
2843 | (xml_get_syscall_name): Adjust. | |
2844 | (xml_list_of_syscalls): Adjust. | |
2845 | (xml_list_syscalls_by_group): Adjust. | |
2846 | (xml_list_of_groups): Adjust. | |
2847 | ||
45461e0d SM |
2848 | 2017-10-27 Simon Marchi <simon.marchi@ericsson.com> |
2849 | ||
2850 | * probe.h: Don't include gdb_vecs.h. | |
2851 | (DEF_VEC_P (probe_p)): Remove. | |
2852 | (find_probes_in_objfile): Return an std::vector. | |
2853 | * probe.c (find_probes_in_objfile): Likewise. | |
2854 | * breakpoint.c (breakpoint_objfile_data) | |
2855 | <longjmp_probes>: Change type to std::vector. | |
2856 | <exception_probes>: Likewise. | |
2857 | (free_breakpoint_probes): Don't manually free vectors. | |
2858 | (create_longjmp_master_breakpoint): Adjust. | |
2859 | (create_exception_master_breakpoint): Adjust. | |
2860 | * solib-svr4.c (svr4_create_probe_breakpoints): Change | |
2861 | parameter type, adjust. | |
2862 | (svr4_create_solib_event_breakpoints): Adjust. | |
2863 | ||
43dce439 SM |
2864 | 2017-10-27 Simon Marchi <simon.marchi@ericsson.com> |
2865 | ||
2866 | * breakpoint.c (breakpoint_objfile_data): Initialize fields. | |
2867 | (get_breakpoint_objfile_data): Allocate breakpoint_objfile_data | |
2868 | with new. | |
2869 | (free_breakpoint_probes): Rename to ... | |
2870 | (free_breakpoint_objfile_data): ... this, and call delete on | |
2871 | bp_objfile_data.. | |
2872 | ||
6a1b9516 SM |
2873 | 2017-10-27 Simon Marchi <simon.marchi@polymtl.ca> |
2874 | ||
2875 | * auto-load.c: Don't include gdb_vecs.h, include algorithm. | |
2876 | (loaded_script_ptr): Remove typedef. | |
2877 | (DEF_VEC_P (loaded_script_ptr)): Remove. | |
2878 | (struct collect_matching_scripts_data): Add constructor. | |
2879 | <scripts_p>: Change type to (pointer to) std::vector. | |
2880 | (collect_matching_scripts_data): Adjust. | |
2881 | (sort_scripts_by_name): Make suitable for std::sort. | |
2882 | (print_scripts): Don't sort vector, adjust to std::vector. | |
2883 | (auto_load_info_scripts): Sort vectors, adjust to std::vector. | |
2884 | ||
593e3209 SM |
2885 | 2017-10-27 Simon Marchi <simon.marchi@ericsson.com> |
2886 | ||
2887 | * symfile.c (filename_language): Make struct, not typedef. Add | |
2888 | constructor. | |
2889 | <ext>: Change type to std::string. | |
2890 | (DEF_VEC_O (filename_language)): Remove. | |
2891 | (filename_language_table): Change type to std::vector. | |
2892 | (add_filename_language): Adjust. | |
2893 | (set_ext_lang_command): Adjust. | |
2894 | (info_ext_lang_command): Adjust. | |
2895 | (deduce_language_from_filename): Adjust. | |
2896 | (class scoped_restore_filename_language_table): Remove. | |
2897 | (test_filename_language): Use scoped_restore. | |
2898 | (test_set_ext_lang_command): Use scoped_restore, adjust to | |
2899 | std::vector change. | |
2900 | ||
32fa66eb SM |
2901 | 2017-10-27 Simon Marchi <simon.marchi@ericsson.com> |
2902 | ||
2903 | * symfile.c: Include selftest.h. | |
2904 | (class scoped_restore_filename_language_table): New. | |
2905 | (test_filename_language): New test. | |
2906 | (test_set_ext_lang_command): New test. | |
2907 | (_initialize_symfile): Register tests. | |
2908 | ||
4a27f119 KS |
2909 | 2017-10-27 Keith Seitz <keiths@redhat.com> |
2910 | ||
2911 | * breakpoint.c (print_breakpoint_location): Use the symbol saved | |
2912 | in the bp_location, falling back to find_pc_sect_function when | |
2913 | needed. | |
2914 | (add_location_to_breakpoint): Save sal->symbol. | |
2915 | * breakpoint.h (struct bp_location) <symbol>: New field. | |
2916 | * symtab.c (find_function_start_sal): Save the symbol into the SaL. | |
2917 | * symtab.h (struct symtab_and_line) <symbol>: New field. | |
2918 | ||
a43f3893 PF |
2919 | 2017-10-26 Patrick Frants <osscontribute@gmail.com> |
2920 | ||
7453e6b2 | 2921 | PR gdb/13669 |
a43f3893 PF |
2922 | * cp-valprint.c (cp_print_value_fields): Use obstack_blank_fast |
2923 | to rewind obstack. | |
2924 | ||
23cc4e1b PA |
2925 | 2017-10-26 Pedro Alves <palves@redhat.com> |
2926 | ||
2927 | * remote.c (remote_async_terminal_ours_p): Delete. | |
2928 | (remote_open_1, remote_terminal_inferior, remote_terminal_ours): | |
2929 | Remove references to 'remote_async_terminal_ours_p'. | |
2930 | ||
6abc18bb YQ |
2931 | 2017-10-26 Yao Qi <yao.qi@linaro.org> |
2932 | ||
2933 | * breakpoint.h (regular_breakpoint_inserted_here_p): Remove. | |
2934 | ||
bd522513 YQ |
2935 | 2017-10-26 Yao Qi <yao.qi@linaro.org> |
2936 | ||
2937 | * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Make | |
2938 | aspace const. | |
2939 | * break-catch-syscall.c (breakpoint_hit_catch_syscall): | |
2940 | Likewise. | |
2941 | * breakpoint.c (bpstat_check_location): Remove cast. | |
2942 | (breakpoint_hit_catch_fork): Make aspce const. | |
2943 | (breakpoint_hit_catch_solib): Likewise. | |
2944 | (breakpoint_hit_catch_exec): Likewise. | |
2945 | (breakpoint_hit_ranged_breakpoint): Likewise. | |
2946 | (breakpoint_hit_watchpoint): Likewise. | |
2947 | (base_breakpoint_breakpoint_hit): Likewise. | |
2948 | (bkpt_breakpoint_hit): Likewise. | |
2949 | (dprintf_breakpoint_hit): Likewise. | |
2950 | (tracepoint_breakpoint_hit): Likewise. | |
2951 | * breakpoint.h (breakpoint_ops) <breakpoint_hit>: Likewise. | |
2952 | ||
accd0bcd YQ |
2953 | 2017-10-26 Yao Qi <yao.qi@linaro.org> |
2954 | ||
2955 | * breakpoint.c (breakpoint_location_address_match): Change | |
2956 | "struct address_space *" to "const address_space". | |
2957 | (breakpoint_location_address_range_overlap): Likewise. | |
2958 | (breakpoint_here_p): Likewise. | |
2959 | (breakpoint_in_range_p): Likewise. | |
2960 | (moribund_breakpoint_here_p): Likewise. | |
2961 | (bp_location_inserted_here_p): Likewise. | |
2962 | (software_breakpoint_inserted_here_p): Likewise. | |
2963 | (hardware_breakpoint_inserted_here_p): Likewise. | |
2964 | (hardware_watchpoint_inserted_in_range): Likewise. | |
2965 | (bpstat_check_location): Likewise. | |
2966 | (bpstat_stop_status): Likewise. | |
2967 | (breakpoint_address_match): Likewise. | |
2968 | (breakpoint_address_match_range): Likewise. | |
2969 | (breakpoint_location_address_match): Likewise. | |
2970 | (breakpoint_location_address_range_overlap): Likewise. | |
2971 | (insert_single_step_breakpoint): Likewise. | |
2972 | (breakpoint_has_location_inserted_here): Likewise. | |
2973 | (single_step_breakpoint_inserted_here_p): Likewise. | |
2974 | (pc_at_non_inline_function): Likewise. | |
2975 | * breakpoint.h (bpstat_stop_status): Update declaration. | |
2976 | (breakpoint_here_p): Likewise. | |
2977 | (breakpoint_in_range_p): Likewise. | |
2978 | (moribund_breakpoint_here_p): Likewise. | |
2979 | (breakpoint_inserted_here_p): Likewise. | |
2980 | (software_breakpoint_inserted_here_p): Likewise. | |
2981 | (hardware_breakpoint_inserted_here_p): Likewise. | |
2982 | (breakpoint_has_location_inserted_here): Likewise. | |
2983 | (single_step_breakpoint_inserted_here_p): Likewise. | |
2984 | (hardware_watchpoint_inserted_in_range): Likewise. | |
2985 | (breakpoint_address_match): Likewise. | |
2986 | (insert_single_step_breakpoint): Likewise. | |
2987 | (pc_at_non_inline_function): Likewise. | |
2988 | * gdbthread.h (thread_has_single_step_breakpoint_here): Likewise. | |
2989 | * record.c (record_check_stopped_by_breakpoint): Likewise. | |
2990 | * record.h (record_check_stopped_by_breakpoint): Likewise. | |
2991 | * thread.c (thread_has_single_step_breakpoint_here): Likewise. | |
2992 | ||
ac7936df YQ |
2993 | 2017-10-25 Yao Qi <yao.qi@linaro.org> |
2994 | ||
2995 | * aarch32-linux-nat.c (aarch32_gp_regcache_supply): Use | |
2996 | regcache->arch () instead get_regcache_arch. | |
2997 | * aarch64-fbsd-nat.c (aarch64_fbsd_fetch_inferior_registers): | |
2998 | Likewise. | |
2999 | (aarch64_fbsd_store_inferior_registers): Likewise. | |
3000 | * aarch64-linux-nat.c (fetch_gregs_from_thread): Likewise. | |
3001 | (store_gregs_to_thread): Likewise. | |
3002 | (fetch_fpregs_from_thread): Likewise. | |
3003 | (store_fpregs_to_thread): Likewise. | |
3004 | * aarch64-tdep.c (aarch64_extract_return_value): Likewise. | |
3005 | (aarch64_store_return_value): Likewise. | |
3006 | (aarch64_software_single_step): Likewise. | |
3007 | * aix-thread.c (aix_thread_wait): Likewise. | |
3008 | (supply_reg32): Likewise. | |
3009 | (supply_sprs64): Likewise. | |
3010 | (supply_sprs32): Likewise. | |
3011 | (fill_gprs64): Likewise. | |
3012 | (fill_gprs32): Likewise. | |
3013 | (fill_sprs64): Likewise. | |
3014 | (fill_sprs32): Likewise. | |
3015 | (store_regs_user_thread): Likewise. | |
3016 | (store_regs_kernel_thread): Likewise. | |
3017 | * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers): Likewise. | |
3018 | (alphabsd_store_inferior_registers): Likewise. | |
3019 | * alpha-tdep.c (alpha_extract_return_value): Likewise. | |
3020 | (alpha_store_return_value): Likewise. | |
3021 | (alpha_deal_with_atomic_sequence): Likewise. | |
3022 | (alpha_next_pc): Likewise. | |
3023 | (alpha_software_single_step): Likewise. | |
3024 | * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise. | |
3025 | (amd64bsd_store_inferior_registers): Likewise. | |
3026 | * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers): | |
3027 | Likewise. | |
3028 | (amd64_linux_store_inferior_registers): Likewise. | |
3029 | * amd64-nat.c (amd64_supply_native_gregset): Likewise. | |
3030 | (amd64_collect_native_gregset): Likewise. | |
3031 | * amd64-obsd-tdep.c (amd64obsd_supply_uthread): Likewise. | |
3032 | (amd64obsd_collect_uthread): Likewise. | |
3033 | * amd64-tdep.c (amd64_supply_fpregset): Likewise. | |
3034 | (amd64_collect_fpregset): Likewise. | |
3035 | (amd64_supply_fxsave): Likewise. | |
3036 | (amd64_supply_xsave): Likewise. | |
3037 | (amd64_collect_fxsave): Likewise. | |
3038 | (amd64_collect_xsave): Likewise. | |
3039 | * arc-tdep.c (arc_write_pc): Likewise. | |
3040 | * arch-utils.c (default_skip_permanent_breakpoint): Likewise. | |
3041 | * arm-fbsd-nat.c (arm_fbsd_fetch_inferior_registers): Likewise. | |
3042 | (arm_fbsd_store_inferior_registers): Likewise. | |
3043 | * arm-linux-nat.c (fetch_vfp_regs): Likewise. | |
3044 | (store_vfp_regs): Likewise. | |
3045 | (arm_linux_fetch_inferior_registers): Likewise. | |
3046 | (arm_linux_store_inferior_registers): Likewise. | |
3047 | * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise. | |
3048 | (arm_linux_sigreturn_next_pc): Likewise. | |
3049 | (arm_linux_get_next_pcs_syscall_next_pc): Likewise. | |
3050 | * arm-nbsd-nat.c (arm_supply_gregset): Likewise. | |
3051 | (fetch_register): Likewise. | |
3052 | (store_register): Likewise. | |
3053 | * arm-tdep.c (arm_is_thumb): Likewise. | |
3054 | (displaced_in_arm_mode): Likewise. | |
3055 | (bx_write_pc): Likewise. | |
3056 | (arm_get_next_pcs_addr_bits_remove): Likewise. | |
3057 | (arm_software_single_step): Likewise. | |
3058 | (arm_extract_return_value): Likewise. | |
3059 | (arm_store_return_value): Likewise. | |
3060 | (arm_write_pc): Likewise. | |
3061 | * bfin-tdep.c (bfin_extract_return_value): Likewise. | |
3062 | * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise. | |
3063 | (bsd_uthread_store_registers): Likewise. | |
3064 | * core-regset.c (fetch_core_registers): Likewise. | |
3065 | * corelow.c (get_core_registers): Likewise. | |
3066 | * cris-tdep.c (cris_store_return_value): Likewise. | |
3067 | (cris_extract_return_value): Likewise. | |
3068 | (find_step_target): Likewise. | |
3069 | (find_step_target): Likewise. | |
3070 | (cris_software_single_step): Likewise. | |
3071 | * ctf.c (ctf_fetch_registers): Likewise. | |
3072 | * darwin-nat.c (cancel_breakpoint): Likewise. | |
3073 | * fbsd-tdep.c (fbsd_collect_thread_registers): Likewise. | |
3074 | * frv-tdep.c (frv_extract_return_value): Likewise. | |
3075 | * ft32-tdep.c (ft32_store_return_value): Likewise. | |
3076 | (ft32_extract_return_value): Likewise. | |
3077 | * go32-nat.c (fetch_register): Likewise. | |
3078 | (go32_fetch_registers): Likewise. | |
3079 | (go32_store_registers): Likewise. | |
3080 | (store_register): Likewise. | |
3081 | * h8300-tdep.c (h8300_extract_return_value): Likewise. | |
3082 | (h8300_store_return_value): Likewise. | |
3083 | * hppa-linux-nat.c (fetch_register): Likewise. | |
3084 | (store_register): Likewise. | |
3085 | (hppa_linux_fetch_inferior_registers): Likewise. | |
3086 | (hppa_linux_store_inferior_registers): Likewise. | |
3087 | * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Likewise. | |
3088 | (i386_darwin_store_inferior_registers): Likewise. | |
3089 | * i386-gnu-nat.c (gnu_fetch_registers): Likewise. | |
3090 | (gnu_store_registers): Likewise. | |
3091 | * i386-linux-nat.c (fetch_register): Likewise. | |
3092 | (store_register): Likewise. | |
3093 | (supply_gregset): Likewise. | |
3094 | (fill_gregset): Likewise. | |
3095 | (i386_linux_fetch_inferior_registers): Likewise. | |
3096 | (i386_linux_store_inferior_registers): Likewise. | |
3097 | (i386_linux_resume): Likewise. | |
3098 | * i386-linux-tdep.c (i386_linux_get_syscall_number_from_regcache): | |
3099 | Likewise. | |
3100 | * i386-nto-tdep.c (i386nto_supply_gregset): Likewise. | |
3101 | * i386-obsd-nat.c (i386obsd_supply_pcb): Likewise. | |
3102 | * i386-obsd-tdep.c (i386obsd_supply_uthread): Likewise. | |
3103 | (i386obsd_collect_uthread): Likewise. | |
3104 | * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise. | |
3105 | (i386_supply_gregset): Likewise. | |
3106 | (i386_collect_gregset): Likewise. | |
3107 | (i386_supply_fpregset): Likewise. | |
3108 | (i386_collect_fpregset): Likewise. | |
3109 | (i386_mpx_bd_base): Likewise. | |
3110 | * i386-v4-nat.c (supply_fpregset): Likewise. | |
3111 | (fill_fpregset): Likewise. | |
3112 | * i387-tdep.c (i387_supply_fsave): Likewise. | |
3113 | (i387_collect_fsave): Likewise. | |
3114 | (i387_supply_fxsave): Likewise. | |
3115 | (i387_collect_fxsave): Likewise. | |
3116 | (i387_supply_xsave): Likewise. | |
3117 | (i387_collect_xsave): Likewise. | |
3118 | * ia64-linux-nat.c (ia64_linux_fetch_registers): Likewise. | |
3119 | (ia64_linux_store_registers): Likewise. | |
3120 | * ia64-tdep.c (ia64_access_rse_reg): Likewise. | |
3121 | (ia64_extract_return_value): Likewise. | |
3122 | (ia64_store_return_value): Likewise. | |
3123 | (find_func_descr): Likewise. | |
3124 | * inf-child.c (inf_child_fetch_inferior_registers): Likewise. | |
3125 | * inf-ptrace.c (inf_ptrace_fetch_registers): Likewise. | |
3126 | (inf_ptrace_store_registers): Likewise. | |
3127 | * infrun.c (use_displaced_stepping): Likewise. | |
3128 | (displaced_step_prepare_throw): Likewise. | |
3129 | (resume): Likewise. | |
3130 | (proceed): Likewise. | |
3131 | (do_target_wait): Likewise. | |
3132 | (adjust_pc_after_break): Likewise. | |
3133 | (handle_inferior_event_1): Likewise. | |
3134 | (handle_signal_stop): Likewise. | |
3135 | (save_infcall_suspend_state): Likewise. | |
3136 | (restore_infcall_suspend_state): Likewise. | |
3137 | * iq2000-tdep.c (iq2000_extract_return_value): Likewise. | |
3138 | * jit.c (jit_frame_prev_register): Likewise. | |
3139 | * linux-nat.c (save_stop_reason): Likewise. | |
3140 | (linux_nat_wait_1): Likewise. | |
3141 | (resume_stopped_resumed_lwps): Likewise. | |
3142 | * linux-record.c (record_linux_sockaddr): Likewise. | |
3143 | (record_linux_msghdr): Likewise. | |
3144 | (record_linux_system_call): Likewise. | |
3145 | * linux-tdep.c (linux_collect_thread_registers): Likewise. | |
3146 | * lm32-tdep.c (lm32_extract_return_value): Likewise. | |
3147 | (lm32_store_return_value): Likewise. | |
3148 | * m32c-tdep.c (m32c_read_flg): Likewise. | |
3149 | (m32c_pseudo_register_read): Likewise. | |
3150 | (m32c_pseudo_register_write): Likewise. | |
3151 | * m32r-linux-tdep.c (m32r_linux_supply_gregset): Likewise. | |
3152 | (m32r_linux_collect_gregset): Likewise. | |
3153 | * m32r-tdep.c (m32r_store_return_value): Likewise. | |
3154 | (m32r_extract_return_value): Likewise. | |
3155 | * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise. | |
3156 | (m68kbsd_collect_fpregset): Likewise. | |
3157 | * m68k-bsd-tdep.c (m68kbsd_supply_fpregset): Likewise. | |
3158 | * m68k-linux-nat.c (fetch_register): Likewise. | |
3159 | (old_fetch_inferior_registers): Likewise. | |
3160 | (old_store_inferior_registers): Likewise. | |
3161 | (store_regs): Likewise. | |
3162 | * m68k-tdep.c (m68k_svr4_extract_return_value): Likewise. | |
3163 | (m68k_svr4_store_return_value): Likewise. | |
3164 | * m88k-tdep.c (m88k_store_arguments): Likewise. | |
3165 | * mi/mi-main.c (mi_cmd_data_list_changed_registers): Likewise. | |
3166 | (mi_cmd_data_write_register_values): Likewise. | |
3167 | * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers): Likewise. | |
3168 | (mips_fbsd_store_inferior_registers): Likewise. | |
3169 | * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Likewise. | |
3170 | (mips_fbsd_supply_gregs): Likewise. | |
3171 | (mips_fbsd_collect_fpregs): Likewise. | |
3172 | (mips_fbsd_collect_gregs): Likewise. | |
3173 | (mips_fbsd_supply_fpregset): Likewise. | |
3174 | (mips_fbsd_collect_fpregset): Likewise. | |
3175 | (mips_fbsd_supply_gregset): Likewise. | |
3176 | (mips_fbsd_collect_gregset): Likewise. | |
3177 | * mips-linux-nat.c (supply_gregset): Likewise. | |
3178 | (fill_gregset): Likewise. | |
3179 | (supply_fpregset): Likewise. | |
3180 | (fill_fpregset): Likewise. | |
3181 | * mips-linux-tdep.c (mips_supply_gregset): Likewise. | |
3182 | (mips_fill_gregset): Likewise. | |
3183 | (mips_supply_fpregset): Likewise. | |
3184 | (mips_fill_fpregset): Likewise. | |
3185 | (mips64_supply_gregset): Likewise. | |
3186 | (micromips_linux_sigframe_validate): Likewise. | |
3187 | * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise. | |
3188 | (mipsnbsd_fetch_inferior_registers): Likewise. | |
3189 | (mipsnbsd_store_inferior_registers): Likewise. | |
3190 | * mips-nbsd-tdep.c (mipsnbsd_supply_fpregset): Likewise. | |
3191 | (mipsnbsd_supply_gregset): Likewise. | |
3192 | (mipsnbsd_iterate_over_regset_sections): Likewise. | |
3193 | (mipsnbsd_supply_reg): Likewise. | |
3194 | (mipsnbsd_supply_fpreg): Likewise. | |
3195 | * mips-tdep.c (mips_in_frame_stub): Likewise. | |
3196 | (mips_dummy_id): Likewise. | |
3197 | (is_octeon_bbit_op): Likewise. | |
3198 | (micromips_bc1_pc): Likewise. | |
3199 | (extended_mips16_next_pc): Likewise. | |
3200 | (mips16_next_pc): Likewise. | |
3201 | (deal_with_atomic_sequence): Likewise. | |
3202 | * moxie-tdep.c (moxie_process_readu): Likewise. | |
3203 | * nios2-tdep.c (nios2_get_next_pc): Likewise. | |
3204 | * nto-procfs.c (procfs_store_registers): Likewise. | |
3205 | * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers): Likewise. | |
3206 | (ppcfbsd_store_inferior_registers): Likewise. | |
3207 | * ppc-linux-nat.c (fetch_vsx_register): Likewise. | |
3208 | (fetch_altivec_register): Likewise. | |
3209 | (get_spe_registers): Likewise. | |
3210 | (fetch_spe_register): Likewise. | |
3211 | (fetch_altivec_registers): Likewise. | |
3212 | (fetch_all_gp_regs): Likewise. | |
3213 | (fetch_all_fp_regs): Likewise. | |
3214 | (store_vsx_register): Likewise. | |
3215 | (store_altivec_register): Likewise. | |
3216 | (set_spe_registers): Likewise. | |
3217 | (store_spe_register): Likewise. | |
3218 | (store_altivec_registers): Likewise. | |
3219 | (store_all_gp_regs): Likewise. | |
3220 | (store_all_fp_regs): Likewise. | |
3221 | * ppc-linux-tdep.c (ppc_linux_supply_gregset): Likewise. | |
3222 | (ppc_linux_collect_gregset): Likewise. | |
3223 | (ppc_canonicalize_syscall): Likewise. | |
3224 | (ppc_linux_record_signal): Likewise. | |
3225 | (ppu2spu_prev_register): Likewise. | |
3226 | * ppc-nbsd-nat.c (ppcnbsd_supply_pcb): Likewise. | |
3227 | * ppc-obsd-nat.c (ppcobsd_fetch_registers): Likewise. | |
3228 | (ppcobsd_store_registers): Likewise. | |
3229 | * ppc-ravenscar-thread.c (ppc_ravenscar_generic_fetch_registers): | |
3230 | Likewise. | |
3231 | (ppc_ravenscar_generic_store_registers): Likewise. | |
3232 | * procfs.c (procfs_fetch_registers): Likewise. | |
3233 | (procfs_store_registers): Likewise. | |
3234 | * ravenscar-thread.c (ravenscar_fetch_registers): Likewise. | |
3235 | (ravenscar_store_registers): Likewise. | |
3236 | (ravenscar_prepare_to_store): Likewise. | |
3237 | * record-btrace.c (record_btrace_fetch_registers): Likewise. | |
3238 | * record-full.c (record_full_wait_1): Likewise. | |
3239 | (record_full_registers_change): Likewise. | |
3240 | (record_full_store_registers): Likewise. | |
3241 | (record_full_core_fetch_registers): Likewise. | |
3242 | (record_full_save): Likewise. | |
3243 | (record_full_goto_insn): Likewise. | |
3244 | * regcache.c (regcache_register_size): Likewise. | |
3245 | (get_regcache_arch): Remove. | |
3246 | (regcache_read_pc): Likewise. | |
3247 | * regcache.h (get_regcache_arch): Remove. | |
3248 | * remote-sim.c (gdbsim_fetch_register): Likewise. | |
3249 | (gdbsim_store_register): Likewise. | |
3250 | * remote.c (fetch_register_using_p): Likewise. | |
3251 | (send_g_packet): Likewise. | |
3252 | (remote_prepare_to_store): Likewise. | |
3253 | (store_registers_using_G): Likewise. | |
3254 | * reverse.c (save_bookmark_command): Likewise. | |
3255 | (goto_bookmark_command): Likewise. | |
3256 | * rs6000-aix-tdep.c (branch_dest): Likewise. | |
3257 | * rs6000-nat.c (rs6000_ptrace64): Likewise. | |
3258 | (fetch_register): Likewise. | |
3259 | * rs6000-tdep.c (ppc_supply_reg): Likewise. | |
3260 | (ppc_collect_reg): Likewise. | |
3261 | (ppc_collect_gregset): Likewise. | |
3262 | (ppc_collect_fpregset): Likewise. | |
3263 | (ppc_collect_vsxregset): Likewise. | |
3264 | (ppc_collect_vrregset): Likewise. | |
3265 | (ppc_displaced_step_hw_singlestep): Likewise. | |
3266 | (rs6000_pseudo_register_read): Likewise. | |
3267 | (rs6000_pseudo_register_write): Likewise. | |
3268 | * s390-linux-nat.c (supply_gregset): Likewise. | |
3269 | (fill_gregset): Likewise. | |
3270 | (s390_linux_fetch_inferior_registers): Likewise. | |
3271 | * s390-linux-tdep.c (s390_write_pc): Likewise. | |
3272 | (s390_software_single_step): Likewise. | |
3273 | (s390_all_but_pc_registers_record): Likewise. | |
3274 | (s390_linux_syscall_record): Likewise. | |
3275 | * sentinel-frame.c (sentinel_frame_prev_arch): Likewise. | |
3276 | * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise. | |
3277 | (shnbsd_store_inferior_registers): Likewise. | |
3278 | * sh-tdep.c (sh_extract_return_value_nofpu): Likewise. | |
3279 | (sh_extract_return_value_fpu): Likewise. | |
3280 | (sh_store_return_value_nofpu): Likewise. | |
3281 | (sh_corefile_supply_regset): Likewise. | |
3282 | (sh_corefile_collect_regset): Likewise. | |
3283 | * sh64-tdep.c (sh64_extract_return_value): Likewise. | |
3284 | (sh64_store_return_value): Likewise. | |
3285 | * sparc-linux-tdep.c (sparc32_linux_collect_core_fpregset): Likewise. | |
3286 | * sparc-nat.c (sparc_fetch_inferior_registers): Likewise. | |
3287 | (sparc_store_inferior_registers): Likewise. | |
3288 | * sparc-ravenscar-thread.c (register_in_thread_descriptor_p): Likewise. | |
3289 | (sparc_ravenscar_prepare_to_store): Likewise. | |
3290 | * sparc-tdep.c (sparc32_store_arguments): Likewise. | |
3291 | (sparc_analyze_control_transfer): Likewise. | |
3292 | (sparc_step_trap): Likewise. | |
3293 | (sparc_software_single_step): Likewise. | |
3294 | (sparc32_gdbarch_init): Likewise. | |
3295 | (sparc_supply_rwindow): Likewise. | |
3296 | (sparc_collect_rwindow): Likewise. | |
3297 | * sparc64-linux-tdep.c (sparc64_linux_collect_core_fpregset): Likewise. | |
3298 | * sparc64-nbsd-nat.c (sparc64nbsd_supply_gregset): Likewise. | |
3299 | (sparc64nbsd_collect_gregset): Likewise. | |
3300 | (sparc64nbsd_supply_fpregset): Likewise. | |
3301 | (sparc64nbsd_collect_fpregset): Likewise. | |
3302 | * sparc64-tdep.c (sparc64_store_arguments): Likewise. | |
3303 | (sparc64_supply_gregset): Likewise. | |
3304 | (sparc64_collect_gregset): Likewise. | |
3305 | (sparc64_supply_fpregset): Likewise. | |
3306 | (sparc64_collect_fpregset): Likewise. | |
3307 | * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise. | |
3308 | * spu-tdep.c (spu_unwind_sp): Likewise. | |
3309 | (spu2ppu_prev_register): Likewise. | |
3310 | (spu_memory_remove_breakpoint): Likewise. | |
3311 | * stack.c (return_command): Likewise. | |
3312 | * tic6x-tdep.c (tic6x_extract_signed_field): Likewise. | |
3313 | * tracefile-tfile.c (tfile_fetch_registers): Likewise. | |
3314 | * tracefile.c (trace_save_ctf): Likewise. | |
3315 | * windows-nat.c (do_windows_fetch_inferior_registers): Likewise. | |
3316 | (do_windows_store_inferior_registers): Likewise. | |
3317 | (windows_resume): Likewise. | |
3318 | * xtensa-linux-nat.c (fill_gregset): Likewise. | |
3319 | (supply_gregset_reg): Likewise. | |
3320 | * xtensa-tdep.c (xtensa_register_write_masked): Likewise. | |
3321 | (xtensa_register_read_masked): Likewise. | |
3322 | (xtensa_supply_gregset): Likewise. | |
3323 | (xtensa_extract_return_value): Likewise. | |
3324 | (xtensa_store_return_value): Likewise. | |
3325 | ||
edd079d9 UW |
3326 | 2017-10-25 Ulrich Weigand <uweigand@de.ibm.com> |
3327 | ||
3328 | * doublest.c (floatformat_from_string): New function. | |
3329 | * doublest.h (floatformat_from_string): Add prototype. | |
3330 | ||
3331 | * std-operator.def (OP_DOUBLE, OP_DECFLOAT): Remove, replace by ... | |
3332 | (OP_FLOAT): ... this. | |
3333 | * expression.h: Do not include "doublest.h". | |
3334 | (union exp_element): Replace doubleconst and decfloatconst by | |
3335 | new element floatconst. | |
3336 | * ada-lang.c (resolve_subexp): Handle OP_FLOAT instead of OP_DOUBLE. | |
3337 | (ada_evaluate_subexp): Likewise. | |
3338 | * eval.c (evaluate_subexp_standard): Handle OP_FLOAT instead of | |
3339 | OP_DOUBLE and OP_DECFLOAT. | |
3340 | * expprint.c (print_subexp_standard): Likewise. | |
3341 | (dump_subexp_body_standard): Likewise. | |
3342 | * breakpoint.c (watchpoint_exp_is_const): Likewise. | |
3343 | ||
3344 | * parse.c: Include "dfp.h". | |
3345 | (write_exp_elt_dblcst, write_exp_elt_decfloatcst): Remove. | |
3346 | (write_exp_elt_floatcst): New function. | |
3347 | (operator_length_standard): Handle OP_FLOAT instead of OP_DOUBLE | |
3348 | and OP_DECFLOAT. | |
3349 | (operator_check_standard): Likewise. | |
3350 | (parse_float): Do not accept suffix. Take type as input. Return bool. | |
3351 | Return target format buffer instead of host DOUBLEST. | |
3352 | Use floatformat_from_string and decimal_from_string to parse | |
3353 | either binary or decimal floating-point types. | |
3354 | (parse_c_float): Remove. | |
3355 | * parser-defs.h: Do not include "doublest.h". | |
3356 | (write_exp_elt_dblcst, write_exp_elt_decfloatcst): Remove. | |
3357 | (write_exp_elt_floatcst): Add prototype. | |
3358 | (parse_float): Update prototype. | |
3359 | (parse_c_float): Remove. | |
3360 | ||
3361 | * c-exp.y: Do not include "dfp.h". | |
3362 | (typed_val_float): Use byte buffer instead of DOUBLEST. | |
3363 | (typed_val_decfloat): Remove. | |
3364 | (DECFLOAT): Remove. | |
3365 | (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst. | |
3366 | (parse_number): Update to new parse_float interface. | |
3367 | Parse suffixes and determine type before calling parse_float. | |
3368 | Handle decimal and binary FP types the same way. | |
3369 | ||
3370 | * d-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST. | |
3371 | (FLOAT_LITERAL): Use OP_FLOAT and write_exp_elt_floatcst. | |
3372 | (parse_number): Update to new parse_float interface. | |
3373 | Parse suffixes and determine type before calling parse_float. | |
3374 | ||
3375 | * f-exp.y: Replace dval by typed_val_float. | |
3376 | (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst. | |
3377 | (parse_number): Use parse_float instead of atof. | |
3378 | ||
3379 | * go-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST. | |
3380 | (parse_go_float): Remove. | |
3381 | (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst. | |
3382 | (parse_number): Call parse_float instead of parse_go_float. | |
3383 | Parse suffixes and determine type before calling parse_float. | |
3384 | ||
3385 | * p-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST. | |
3386 | (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst. | |
3387 | (parse_number): Update to new parse_float interface. | |
3388 | Parse suffixes and determine type before calling parse_float. | |
3389 | ||
3390 | * m2-exp.y: Replace dval by byte buffer val. | |
3391 | (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst. | |
3392 | (parse_number): Call parse_float instead of atof. | |
3393 | ||
3394 | * rust-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST. | |
3395 | (lex_number): Call parse_float instead of strtod. | |
3396 | (ast_dliteral): Use OP_FLOAT instead of OP_DOUBLE. | |
3397 | (convert_ast_to_expression): Handle OP_FLOAT instead of OP_DOUBLE. | |
3398 | Use write_exp_elt_floatcst. | |
3399 | (unit_testing): Remove static variable. | |
3400 | (rust_type): Do not check unit_testing. | |
3401 | (rust_lex_tests): Do not set uint_testing. Set up dummy rust_parser. | |
3402 | ||
3403 | * ada-exp.y (type_float, type_double): Remove. | |
3404 | (typed_val_float): Use byte buffer instead of DOUBLEST. | |
3405 | (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst. | |
3406 | * ada-lex.l (processReal): Use parse_float instead of sscanf. | |
3407 | ||
cc628f3d AH |
3408 | 2017-10-25 Alan Hayward <alan.hayward@arm.com> |
3409 | ||
3410 | * aarch64-tdep.h (enum aarch64_regnum): Remove. | |
3411 | * arch/aarch64.h: New file. | |
3412 | ||
09a7c6aa UW |
3413 | 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com> |
3414 | ||
3415 | * dfp.h (decimal_from_string): Use const reference for argument. | |
3416 | * dfp.c (decimal_from_string): Likewise. | |
3417 | ||
8ba0dd51 UW |
3418 | 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com> |
3419 | ||
3420 | * i387-tdep.c (print_i387_value): Use floatformat_to_string. | |
3421 | * sh64-tdep.c (sh64_do_fp_register): Likewise. | |
3422 | * mips-tdep.c (mips_print_fp_register): Likewise. | |
3423 | ||
16e812b2 UW |
3424 | 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com> |
3425 | ||
3426 | * common/format.h (enum argclass): Replace decfloat_arg by | |
3427 | dec32float_arg, dec64float_arg, and dec128float_arg. | |
3428 | * common/format.c (parse_format_string): Update to return | |
3429 | new decimal float argument classes. | |
3430 | ||
3431 | * printcmd.c (printf_decfloat): Rename to ... | |
3432 | (printf_floating): ... this. Add argclass argument, and use it | |
3433 | instead of parsing the format string again. Add support for | |
3434 | binary floating-point values, using floatformat_to_string. | |
3435 | Convert value to the target format if it doesn't already match. | |
3436 | (ui_printf): Call printf_floating instead of printf_decfloat, | |
3437 | also for double_arg / long_double_arg. Pass argclass. | |
3438 | ||
3439 | * dfp.c (decimal_to_string): Add format string argument. | |
3440 | * dfp.h (decimal_to_string): Likewise. | |
3441 | ||
3442 | * doublest.c (floatformat_to_string): Add format string argument. | |
3443 | * doublest.h (floatformat_to_string): Likewise. | |
3444 | ||
fdf0cbc2 UW |
3445 | 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com> |
3446 | ||
3447 | * doublest.c (floatformat_precision): New routine. | |
3448 | (floatformat_to_string): Likewise. | |
3449 | * doublest.c (floatformat_to_string): Add prototype. | |
3450 | ||
3451 | * printcmd.c (print_scalar_formatted): Only call print_floating | |
3452 | on floating-point types. | |
3453 | * valprint.c: Do not include "floatformat.h". | |
3454 | (generic_val_print_decfloat): Remove. | |
3455 | (generic_val_print): Call generic_val_print_float for both | |
3456 | TYPE_CODE_FLT and TYPE_CODE_DECFLOAT. | |
3457 | (print_floating): Use floatformat_to_string. Handle decimal float. | |
3458 | (print_decimal_floating): Remove, merge into floatformat_to_string. | |
3459 | * value.h (print_decimal_floating): Remove. | |
3460 | ||
3461 | * Makefile.in: Do not build doublest.c with -Wformat-nonliteral. | |
3462 | ||
5033013f UW |
3463 | 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com> |
3464 | ||
3465 | * buildsym.c (end_symtab_get_static_block): Use std::stable_sort. | |
3466 | ||
a664f67e SM |
3467 | 2017-10-21 Simon Marchi <simon.marchi@ericsson.com> |
3468 | ||
3469 | * memattr.h: Don't include vec.h. | |
3470 | (struct mem_attrib): Initialize fields. | |
3471 | <unknown>: New static method. | |
3472 | (struct mem_region): Add constructors, operator<, initialize | |
3473 | fields. | |
3474 | * memattr.c: Include algorithm. | |
3475 | (default_mem_attrib, unknown_mem_attrib): Remove. | |
3476 | (user_mem_region_list): New global. | |
3477 | (target_mem_region_list, mem_region_list): Change type to | |
3478 | std::vector<mem_region>. | |
3479 | (mem_use_target): Now a function. | |
3480 | (target_mem_regions_valid): Change type to bool. | |
3481 | (mem_region_lessthan, mem_region_cmp, mem_region_init): Remove. | |
3482 | (require_user_regions): Adjust. | |
3483 | (require_target_regions): Adjust. | |
3484 | (create_mem_region): Adjust. | |
3485 | (lookup_mem_region): Adjust. | |
3486 | (invalidate_target_mem_regions): Adjust. | |
3487 | (mem_clear): Rename to... | |
3488 | (user_mem_clear): ... this, and adjust. | |
3489 | (mem_command): Adjust. | |
3490 | (info_mem_command): Adjust. | |
3491 | (mem_enable, enable_mem_command, mem_disable, | |
3492 | disable_mem_command): Adjust. | |
3493 | (mem_delete): Adjust. | |
3494 | (delete_mem_command): Adjust. | |
3495 | * memory-map.h (parse_memory_map): Return an std::vector. | |
3496 | * memory-map.c (parse_memory_map): Likewise. | |
3497 | (struct memory_map_parsing_data): Add constructor. | |
3498 | <memory_map>: Point to std::vector. | |
3499 | (memory_map_start_memory): Adjust. | |
3500 | (memory_map_end_memory): Adjust. | |
3501 | (memory_map_end_property): Adjust. | |
3502 | (clear_result): Remove. | |
3503 | * remote.c (remote_memory_map): Return an std::vector. | |
3504 | * target-debug.h (target_debug_print_VEC_mem_region_s__p): | |
3505 | Remove. | |
3506 | (target_debug_print_mem_region_vector): New. | |
3507 | * target-delegates.c: Regenerate. | |
3508 | * target.h (mem_region_vector): New typedef. | |
3509 | (to_memory_map): Return mem_region_vector. | |
3510 | (target_memory_map): Return an std::vector. | |
3511 | * target.c (target_memory_map): Return an std::vector. | |
3512 | (flash_erase_command): Adjust. | |
3513 | ||
6e17c565 SM |
3514 | 2017-10-21 Simon Marchi <simon.marchi@ericsson.com> |
3515 | ||
3516 | * memory-map.c (struct memory_map_parsing_data) <property_name>: | |
3517 | Change type to std::string. | |
3518 | (memory_map_start_property): Adjust. | |
3519 | (memory_map_end_property): Adjust. | |
3520 | ||
cfba9872 SM |
3521 | 2017-10-21 Simon Marchi <simon.marchi@polymtl.ca> |
3522 | ||
3523 | * infrun.h: Include common/byte-vector.h. | |
3524 | (struct displaced_step_closure): New struct. | |
3525 | (struct buf_displaced_step_closure): New struct. | |
3526 | * infrun.c (displaced_step_closure::~displaced_step_closure): | |
3527 | Provide default implementation. | |
3528 | (displaced_step_clear): Deallocate step closure with delete. | |
3529 | * aarch64-tdep.c (displaced_step_closure): Rename to ... | |
3530 | (aarch64_displaced_step_closure): ... this, extend | |
3531 | displaced_step_closure. | |
3532 | (aarch64_displaced_step_data) <dsc>: Change type to | |
3533 | aarch64_displaced_step_closure. | |
3534 | (aarch64_displaced_step_copy_insn): Adjust to type change, use | |
3535 | unique_ptr. | |
3536 | (aarch64_displaced_step_fixup): Add cast for displaced step | |
3537 | closure. | |
3538 | * amd64-tdep.c (displaced_step_closure): Rename to ... | |
3539 | (amd64_displaced_step_closure): ... this, extend | |
3540 | displaced_step_closure. | |
3541 | <insn_buf>: Change type to std::vector<gdb_byte>. | |
3542 | <max_len>: Remove. | |
3543 | (fixup_riprel): Change type of DSC parameter, adjust to type | |
3544 | change of insn_buf. | |
3545 | (fixup_displaced_copy): Change type of DSC parameter. | |
3546 | (amd64_displaced_step_copy_insn): Instantiate | |
3547 | amd64_displaced_step_closure. | |
3548 | (amd64_displaced_step_fixup): Add cast for closure type, adjust | |
3549 | to type change of insn_buf. | |
3550 | * arm-linux-tdep.c (arm_linux_cleanup_svc): Change type of | |
3551 | parameter DSC. | |
3552 | (arm_linux_copy_svc): Likewise. | |
3553 | (cleanup_kernel_helper_return): Likewise. | |
3554 | (arm_catch_kernel_helper_return): Likewise. | |
3555 | (arm_linux_displaced_step_copy_insn): Instantiate | |
3556 | arm_displaced_step_closure. | |
3557 | * arm-tdep.c (arm_pc_is_thumb): Add cast for closure. | |
3558 | (displaced_read_reg): Change type of parameter DSC. | |
3559 | (branch_write_pc): Likewise. | |
3560 | (load_write_pc): Likewise. | |
3561 | (alu_write_pc): Likewise. | |
3562 | (displaced_write_reg): Likewise. | |
3563 | (arm_copy_unmodified): Likewise. | |
3564 | (thumb_copy_unmodified_32bit): Likewise. | |
3565 | (thumb_copy_unmodified_16bit): Likewise. | |
3566 | (cleanup_preload): Likewise. | |
3567 | (install_preload): Likewise. | |
3568 | (arm_copy_preload): Likewise. | |
3569 | (thumb2_copy_preload): Likewise. | |
3570 | (install_preload_reg): Likewise. | |
3571 | (arm_copy_preload_reg): Likewise. | |
3572 | (cleanup_copro_load_store): Likewise. | |
3573 | (install_copro_load_store): Likewise. | |
3574 | (arm_copy_copro_load_store) Likewise. | |
3575 | (thumb2_copy_copro_load_store): Likewise. | |
3576 | (cleanup_branch): Likewise. | |
3577 | (install_b_bl_blx): Likewise. | |
3578 | (arm_copy_b_bl_blx): Likewise. | |
3579 | (thumb2_copy_b_bl_blx): Likewise. | |
3580 | (thumb_copy_b): Likewise. | |
3581 | (install_bx_blx_reg): Likewise. | |
3582 | (arm_copy_bx_blx_reg): Likewise. | |
3583 | (thumb_copy_bx_blx_reg): Likewise. | |
3584 | (cleanup_alu_imm): Likewise. | |
3585 | (arm_copy_alu_imm): Likewise. | |
3586 | (thumb2_copy_alu_imm): Likewise. | |
3587 | (cleanup_alu_reg): Likewise. | |
3588 | (install_alu_reg): Likewise. | |
3589 | (arm_copy_alu_reg): Likewise. | |
3590 | (thumb_copy_alu_reg): Likewise. | |
3591 | (cleanup_alu_shifted_reg): Likewise. | |
3592 | (install_alu_shifted_reg): Likewise. | |
3593 | (arm_copy_alu_shifted_reg): Likewise. | |
3594 | (cleanup_load): Likewise. | |
3595 | (cleanup_store): Likewise. | |
3596 | (arm_copy_extra_ld_st): Likewise. | |
3597 | (install_load_store): Likewise. | |
3598 | (thumb2_copy_load_literal): Likewise. | |
3599 | (thumb2_copy_load_reg_imm): Likewise. | |
3600 | (arm_copy_ldr_str_ldrb_strb): Likewise. | |
3601 | (cleanup_block_load_all): Likewise. | |
3602 | (cleanup_block_store_pc): Likewise. | |
3603 | (cleanup_block_load_pc): Likewise. | |
3604 | (arm_copy_block_xfer): Likewise. | |
3605 | (thumb2_copy_block_xfer): Likewise. | |
3606 | (cleanup_svc): Likewise. | |
3607 | (install_svc): Likewise. | |
3608 | (arm_copy_svc): Likewise. | |
3609 | (thumb_copy_svc): Likewise. | |
3610 | (arm_copy_undef): Likewise. | |
3611 | (thumb_32bit_copy_undef): Likewise. | |
3612 | (arm_copy_unpred): Likewise. | |
3613 | (arm_decode_misc_memhint_neon): Likewise. | |
3614 | (arm_decode_unconditional): Likewise. | |
3615 | (arm_decode_miscellaneous): Likewise. | |
3616 | (arm_decode_dp_misc): Likewise. | |
3617 | (arm_decode_ld_st_word_ubyte): Likewise. | |
3618 | (arm_decode_media): Likewise. | |
3619 | (arm_decode_b_bl_ldmstm): Likewise. | |
3620 | (arm_decode_ext_reg_ld_st): Likewise. | |
3621 | (thumb2_decode_dp_shift_reg): Likewise. | |
3622 | (thumb2_decode_ext_reg_ld_st): Likewise. | |
3623 | (arm_decode_svc_copro): Likewise. | |
3624 | (thumb2_decode_svc_copro): Likewise. | |
3625 | (install_pc_relative): Likewise. | |
3626 | (thumb_copy_pc_relative_16bit): Likewise. | |
3627 | (thumb_decode_pc_relative_16bit): Likewise. | |
3628 | (thumb_copy_pc_relative_32bit): Likewise. | |
3629 | (thumb_copy_16bit_ldr_literal): Likewise. | |
3630 | (thumb_copy_cbnz_cbz): Likewise. | |
3631 | (thumb2_copy_table_branch): Likewise. | |
3632 | (cleanup_pop_pc_16bit_all): Likewise. | |
3633 | (thumb_copy_pop_pc_16bit): Likewise. | |
3634 | (thumb_process_displaced_16bit_insn): Likewise. | |
3635 | (decode_thumb_32bit_ld_mem_hints): Likewise. | |
3636 | (thumb_process_displaced_32bit_insn): Likewise. | |
3637 | (thumb_process_displaced_insn): Likewise. | |
3638 | (arm_process_displaced_insn): Likewise. | |
3639 | (arm_displaced_init_closure): Likewise. | |
3640 | (arm_displaced_step_fixup): Add cast for closure. | |
3641 | * arm-tdep.h: Include infrun.h. | |
3642 | (displaced_step_closure): Rename to ... | |
3643 | (arm_displaced_step_closure): ... this, extend | |
3644 | displaced_step_closure. | |
3645 | <u::svc::copy_svc_os>: Change type of parameter DSC. | |
3646 | <cleanup>: Likewise. | |
3647 | (arm_process_displaced_insn): Likewise. | |
3648 | (arm_displaced_init_closure): Likewise. | |
3649 | (displaced_read_reg): Likewise. | |
3650 | (displaced_write_reg): Likewise. | |
3651 | * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): | |
3652 | Adjust. | |
3653 | * i386-tdep.h: Include infrun.h. | |
3654 | (i386_displaced_step_closure): New typedef. | |
3655 | * i386-tdep.c (i386_displaced_step_copy_insn): Use | |
3656 | i386_displaced_step_closure. | |
3657 | (i386_displaced_step_fixup): Adjust. | |
3658 | * rs6000-tdep.c (ppc_displaced_step_closure): New typedef. | |
3659 | (ppc_displaced_step_copy_insn): Use ppc_displaced_step_closure | |
3660 | and unique_ptr. | |
3661 | (ppc_displaced_step_fixup): Adjust. | |
3662 | * s390-linux-tdep.c (s390_displaced_step_closure): New typedef. | |
3663 | (s390_displaced_step_copy_insn): Use s390_displaced_step_closure | |
3664 | and unique_ptr. | |
3665 | (s390_displaced_step_fixup): Adjust. | |
3666 | ||
b392b304 SM |
3667 | 2017-10-21 Simon Marchi <simon.marchi@polymtl.ca> |
3668 | ||
3669 | * interps.h (interp_resume, interp_suspend, interp_set_temp): | |
3670 | Remove declarations. | |
3671 | ||
d5833c62 TT |
3672 | 2017-10-20 Tom Tromey <tom@tromey.com> |
3673 | ||
3674 | * gdb_bfd.c (struct gdb_bfd_data) <included_bfds>: Now a | |
3675 | std::vector. | |
3676 | (gdb_bfd_record_inclusion): Update. | |
3677 | (bfdp): Remove typedef. | |
3678 | ||
06d5bbc8 TT |
3679 | 2017-10-20 Tom Tromey <tom@tromey.com> |
3680 | ||
3681 | * gdb_bfd.c (gdb_bfd_ref): Use new. | |
3682 | (struct gdb_bfd_data): Add constructor, destructor, and member | |
3683 | initializers. | |
3684 | (gdb_bfd_unref): Use delete. | |
3685 | ||
2712ce2e TT |
3686 | 2017-10-20 Tom Tromey <tom@tromey.com> |
3687 | ||
3688 | * exec.c (exec_file_attach): Use new_bfd_ref. | |
3689 | * symfile-mem.c (symbol_file_add_from_memory): Use new_bfd_ref. | |
3690 | * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr) | |
3691 | (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_fdopenr): Use | |
3692 | new_bfd_ref. | |
3693 | * gdb_bfd.h (new_bfd_ref): New function. | |
3694 | ||
fcc8fb2f PA |
3695 | 2017-10-20 Pedro Alves <palves@redhat.com> |
3696 | ||
3697 | * main.c (captured_command_loop): Add attribute noinline. | |
3698 | ||
4c2287b0 SM |
3699 | 2017-10-19 Simon Marchi <simon.marchi@ericsson.com> |
3700 | ||
3701 | * interps.c (struct interp_factory): Add constructor. | |
3702 | (interp_factory_p): Remove typedef. | |
3703 | (DEF_VEC_P(interp_factory_p)): Remove. | |
3704 | (interpreter_factories): Change type to std::vector. | |
3705 | (interp_factory_register): Adjust. | |
3706 | (interp_lookup): Adjust. | |
3707 | (interpreter_completer): Adjust. | |
3708 | ||
3d415c26 TT |
3709 | 2017-10-19 Tom Tromey <tom@tromey.com> |
3710 | ||
3711 | * break-catch-syscall.c (catch_syscall_completer): Use | |
3712 | std::string, gdb::unique_xmalloc_ptr. | |
3713 | ||
395423c4 TT |
3714 | 2017-10-19 Tom Tromey <tom@tromey.com> |
3715 | ||
3716 | * infcall.c (call_function_by_hand_dummy): Use std::string. | |
3717 | ||
54f70bc1 TT |
3718 | 2017-10-19 Tom Tromey <tom@tromey.com> |
3719 | ||
3720 | * mi/mi-main.c (mi_cmd_execute): Update. | |
3721 | * top.h (prepare_execute_command): Return scoped_value_mark. | |
3722 | * value.h (class scoped_value_mark): Use DISABLE_COPY_AND_ASSIGN. | |
3723 | Add move constructor. | |
3724 | * top.c (prepare_execute_command): Return scoped_value_mark. | |
3725 | (execute_command): Update. | |
3726 | ||
63929e84 PA |
3727 | 2017-10-19 Pedro Alves <palves@redhat.com> |
3728 | ||
3729 | * xml-support.c (xml_fetch_content_from_file): Check fread's | |
3730 | return. | |
3731 | ||
a75868f5 PA |
3732 | 2017-10-19 Pedro Alves <palves@redhat.com> |
3733 | ||
3734 | * ser-base.c (ser_base_read_error_fd): Delete the file handler if | |
3735 | async. | |
3736 | (handle_error_fd): New function. | |
3737 | (ser_base_async): Add/delete an event loop file handler for | |
3738 | error_fd. | |
3739 | ||
2edf834e PA |
3740 | 2017-10-19 Pedro Alves <palves@redhat.com> |
3741 | ||
3742 | * xml-support.c (xml_fetch_content_from_file): Don't read in | |
3743 | chunks. Instead use fseek to determine the file's size, and read | |
3744 | it in one go. | |
3745 | ||
c8ba13ad KS |
3746 | 2017-11-18 Keith Seitz <keiths@redhat.com> |
3747 | ||
3748 | * c-exp.y (oper): Canonicalize conversion operators of user-defined | |
3749 | types. | |
3750 | Add whitespace to front of type name. | |
3751 | ||
37534686 KS |
3752 | 2017-10-18 Keith Seitz <keiths@redhat.com> |
3753 | ||
3754 | * dwarf2read.c (dwarf2_add_typedef): Issue a complaint on unhandled | |
3755 | DW_AT_accessibility. | |
3756 | ||
28c7c158 YQ |
3757 | 2017-10-18 Yao Qi <yao.qi@linaro.org> |
3758 | ||
3759 | * features/tic6x-c62x-linux.c: Remove. | |
3760 | ||
30f0b101 TT |
3761 | 2017-10-17 Tom Tromey <tom@tromey.com> |
3762 | ||
3763 | * disasm.c (do_mixed_source_and_assembly_deprecated): Use | |
3764 | gdb::optional, ui_out_emit_list, ui_out_emit_tuple. | |
3765 | (do_mixed_source_and_assembly): Likewise. | |
3766 | ||
57e12da9 TT |
3767 | 2017-10-17 Tom Tromey <tom@tromey.com> |
3768 | ||
3769 | * regcache.c (regcache::xfer_part): Remove assertion. | |
3770 | ||
7b700999 PA |
3771 | 2017-10-17 Pedro Alves <palves@redhat.com> |
3772 | ||
3773 | * xml-support.c (xml_fetch_content_from_file): Call | |
3774 | unique_ptr::release() instead unique_ptr::get() when passing | |
3775 | through xrealloc. | |
3776 | ||
d3037ba6 YQ |
3777 | 2017-10-17 Yao Qi <yao.qi@linaro.org> |
3778 | ||
3779 | * regcache.c (regcache::xfer_part): Remove parameters read and | |
3780 | write, add parameter is_raw. All callers are updated. | |
3781 | ||
83d5a34d KS |
3782 | 2017-10-16 Keith Seitz <keiths@redhat.com> |
3783 | ||
3784 | * c-typeprint.c (enum access_specifier): Moved here from | |
3785 | c_type_print_base. | |
3786 | (output_access_specifier): New function. | |
3787 | (c_type_print_base): Consider typedefs when assessing | |
3788 | whether access labels are needed. | |
3789 | Use output_access_specifier as needed. | |
3790 | Output access specifier for typedefs, if needed. | |
3791 | * dwarf2read.c (dwarf2_add_typedef): Record DW_AT_accessibility. | |
3792 | * gdbtypes.h (struct typedef_field) <is_protected, is_private>: New | |
3793 | fields. | |
3794 | (TYPE_TYPEDEF_FIELD_PROTECTED, TYPE_TYPEDEF_FIELD_PRIVATE): New | |
3795 | accessor macros. | |
3796 | ||
87028b87 TT |
3797 | 2017-10-16 Tom Tromey <tom@tromey.com> |
3798 | ||
3799 | * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full) | |
3800 | (linux_fill_prpsinfo, linux_vsyscall_range_raw): Update. | |
3801 | * target.c (target_fileio_read_stralloc): Update. | |
3802 | * sparc64-tdep.c (adi_is_addr_mapped): Update. | |
3803 | * target.h (target_fileio_read_stralloc): Return | |
3804 | unique_xmalloc_ptr. | |
3805 | ||
b7b030ad TT |
3806 | 2017-10-16 Tom Tromey <tom@tromey.com> |
3807 | ||
3808 | * xml-syscall.c (xml_init_syscalls_info): Update. | |
3809 | * xml-support.c (xinclude_start_include): Update. | |
3810 | (xml_fetch_content_from_file): Return unique_xmalloc_ptr. | |
3811 | * xml-support.h (xml_fetch_another): Return unique_xmalloc_ptr. | |
3812 | (xml_fetch_content_from_file): Likewise. | |
3813 | * osdata.c (get_osdata): Update. | |
3814 | * target.h (target_read_stralloc, target_get_osdata): Return | |
3815 | unique_xmalloc_ptr. | |
3816 | * solib-aix.c (solib_aix_get_library_list): Update. | |
3817 | * solib-target.c (solib_target_current_sos): Update. | |
3818 | * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Update. | |
3819 | * xml-tdesc.c (fetch_available_features_from_target): Update. | |
3820 | (target_fetch_description_xml): Update. | |
3821 | (file_read_description_xml): Update. | |
3822 | * remote.c (remote_get_threads_with_qxfer, remote_memory_map) | |
3823 | (remote_traceframe_info, btrace_read_config, remote_read_btrace) | |
3824 | (remote_pid_to_exec_file): Update. | |
3825 | * target.c (target_read_stralloc): Return unique_xmalloc_ptr. | |
3826 | (target_get_osdata): Likewise. | |
3827 | ||
b80406ac TT |
3828 | 2017-10-16 Tom Tromey <tom@tromey.com> |
3829 | ||
3830 | * remote.c (remote_register_number_and_offset): Use std::vector. | |
3831 | (remote_set_syscall_catchpoint): Use gdb::unique_xmalloc_ptr. | |
3832 | (putpkt_binary): Use gdb::def_vector. | |
3833 | (compare_sections_command): Use gdb::byte_vector. | |
3834 | ||
a90ecff8 TT |
3835 | 2017-10-16 Tom Tromey <tom@tromey.com> |
3836 | ||
3837 | * ppc-linux-nat.c (hwdebug_insert_point): Use | |
3838 | gdb::unique_xmalloc_ptr, XDUP. | |
3839 | ||
2dc0e219 TT |
3840 | 2017-10-16 Tom Tromey <tom@tromey.com> |
3841 | ||
3842 | * probe.c (parse_probes): Use std::string. | |
3843 | (info_probes_for_ops, enable_probes_command) | |
3844 | (disable_probes_command): Remove cleanups. | |
3845 | ||
b05628f0 TT |
3846 | 2017-10-16 Tom Tromey <tom@tromey.com> |
3847 | ||
3848 | * buildsym.c (block_compar): Remove. | |
3849 | (end_symtab_get_static_block): Use std::vector. | |
3850 | ||
a79b1bc6 SM |
3851 | 2017-10-16 Simon Marchi <simon.marchi@ericsson.com> |
3852 | ||
3853 | * memrange.h (struct mem_range): Define operator< and operator==. | |
3854 | (mem_range_s): Remove. | |
3855 | (DEF_VEC_O (mem_range_s)): Remove. | |
3856 | (normalize_mem_ranges): Change parameter type to std::vector. | |
3857 | * memrange.c (compare_mem_ranges): Remove. | |
3858 | (normalize_mem_ranges): Change parameter type to std::vector, | |
3859 | adjust to vector change. | |
3860 | * exec.c (section_table_available_memory): Return vector, remove | |
3861 | parameter. | |
3862 | (section_table_read_available_memory): Adjust to std::vector | |
3863 | change. | |
3864 | * remote.c (remote_read_bytes): Adjust to std::vector | |
3865 | change. | |
3866 | * tracepoint.h (traceframe_available_memory): Change parameter | |
3867 | type to std::vector. | |
3868 | * tracepoint.c (traceframe_available_memory): Change parameter | |
3869 | type to std::vector, adjust. | |
3870 | * gdb/mi/mi-main.c (mi_cmd_trace_frame_collected): Adjust to | |
3871 | std::vector change. | |
3872 | * gdb/Makefile.in (SUBDIR_UNITTESTS_SRCS): Add | |
3873 | unittests/memrange-selftests.c. | |
3874 | (SUBDIR_UNITTESTS_OBS): Add memrange-selftests.o. | |
3875 | * gdb/unittests/memrange-selftests.c: New file. | |
3876 | ||
63f0e930 PA |
3877 | 2017-10-16 Pedro Alves <palves@redhat.com> |
3878 | ||
3879 | * elfread.c (probe_key_free): Rename range-for variable. | |
3880 | * probe.c (parse_probes_in_pspace, find_probes_in_objfile) | |
3881 | (find_probe_by_pc, collect_probes): Rename range-for variable. | |
3882 | ||
c40c7bfc YQ |
3883 | 2017-10-16 Yao Qi <yao.qi@linaro.org> |
3884 | ||
3885 | * features/Makefile (XMLTOC): Remove tic6x-*.xml. | |
3886 | * features/tic6x-c62x.c: Remove. | |
3887 | * features/tic6x-c64x-linux.c: Remove. | |
3888 | * features/tic6x-c64x.c: Remove. | |
3889 | * features/tic6x-c64xp-linux.c: Remove. | |
3890 | * features/tic6x-c64xp.c: Remove. | |
3891 | * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Don't call | |
3892 | initialize_tdesc_tic6x_*_linux functions. | |
3893 | * tic6x-tdep.c (_initialize_tic6x_tdep): Don't call | |
3894 | initialize_tdesc_tic6x_* functions. | |
3895 | ||
df27ae6a YQ |
3896 | 2017-10-16 Yao Qi <yao.qi@linaro.org> |
3897 | ||
3898 | * features/Makefile (WHICH): Remove tic6x-c64xp, tic6x-c64x | |
3899 | tic6x-c62x. | |
3900 | * regformats/tic6x-c62x.dat: Remove. | |
3901 | * regformats/tic6x-c64x.dat: Remove. | |
3902 | * regformats/tic6x-c64xp.dat: Remove. | |
3903 | ||
86766165 SM |
3904 | 2017-10-15 Simon Marchi <simon.marchi@ericsson.com> |
3905 | ||
3906 | * tracepoint.c (parse_traceframe_info): Return a unique_ptr | |
3907 | (the !HAVE_LIBEXPAT version). | |
3908 | ||
824dfcc3 SM |
3909 | 2017-10-14 Simon Marchi <simon.marchi@ericsson.com> |
3910 | ||
3911 | * nat/linux-osdata.c (struct pid_pgid_entry) <operator<>: Make | |
3912 | const. | |
3913 | ||
2098b393 SM |
3914 | 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca> |
3915 | ||
3916 | * target.h: Include tracepoint.h. | |
3917 | (enum trace_find_type): Move to tracepoint.h. | |
3918 | (struct target_ops) <to_traceframe_info>: Return a unique ptr. | |
3919 | * tracepoint.h: Don't include target.h | |
3920 | (enum trace_find_type): Move from target.h. | |
3921 | (parse_traceframe_info): Return a unique ptr. | |
3922 | * tracepoint.c (current_traceframe_info): Change type to unique | |
3923 | ptr. | |
3924 | (free_traceframe_info): Remove. | |
3925 | (clear_traceframe_info): Don't manually free | |
3926 | current_traceframe_info. | |
3927 | (free_result): Remove. | |
3928 | (parse_traceframe_info): Return a unique ptr. | |
3929 | (get_traceframe_info): Adjust to unique ptr. | |
3930 | * ctf.c (ctf_traceframe_info): Return a unique ptr. | |
3931 | * remote.c (remote_traceframe_info): Return a unique ptr. | |
3932 | * tracefile-tfile.c (tfile_traceframe_info): Return a unique | |
3933 | ptr. | |
3934 | * target-debug.h (target_debug_print_traceframe_info_up): New | |
3935 | macro. | |
3936 | * target-delegates.c: Regenerate. | |
3937 | ||
4cdd21a8 SM |
3938 | 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca> |
3939 | ||
3940 | * memrange.h (struct mem_range): Add constructors. | |
3941 | * tracepoint.h (struct traceframe_info) <memory>: Change type to | |
3942 | std::vector<mem_range>. | |
3943 | * tracepoint.c (free_traceframe_info): Don't manually free | |
3944 | vector. | |
3945 | (traceframe_info_start_memory): Adjust to vector change. | |
3946 | (traceframe_available_memory): Likewise. | |
3947 | * tracefile-tfile.c (build_traceframe_info): Likewise. | |
3948 | * ctf.c (ctf_traceframe_info): Likewise. | |
3949 | ||
d0d292a2 SM |
3950 | 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca> |
3951 | ||
3952 | * tracepoint.h (struct traceframe_info) <tvars>: Change type to | |
3953 | std::vector<int>. | |
3954 | * tracepoint.c (free_traceframe_info): Deallocate with delete. | |
3955 | (traceframe_info_start_tvar): Adjust to vector change. | |
3956 | (parse_traceframe_info): Allocate with new. | |
3957 | * ctf.c (ctf_traceframe_info): Allocate with new, adjust to | |
3958 | vector change. | |
3959 | * tracefile-tfile.c (build_traceframe_info): Adjust to vector | |
3960 | change. | |
3961 | tfile_traceframe_info): Allocate with new. | |
3962 | * mi/mi-main.c (mi_cmd_trace_frame_collected): Adjust to vector | |
3963 | change. | |
3964 | ||
8d3c73ef SM |
3965 | 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca> |
3966 | ||
3967 | * tracepoint.c (traceframe_info): Rename to... | |
3968 | (current_traceframe_info): ...this. | |
3969 | (clear_traceframe_info): Adjust. | |
3970 | (get_traceframe_info): Adjust. | |
3971 | ||
b129dcac SM |
3972 | 2017-10-14 Simon Marchi <simon.marchi@ericsson.com> |
3973 | ||
3974 | * nat/linux-osdata.c: Include algorithm. | |
3975 | (compare_processes): Remove. | |
3976 | (struct pid_pgid_entry): New struct. | |
3977 | (linux_xfer_osdata_processgroups): Use std::vector instead of | |
3978 | XNEWVEC. | |
3979 | ||
af5bf4ad SM |
3980 | 2017-10-14 Simon Marchi <simon.marchi@ericsson.com> |
3981 | ||
3982 | * objfiles.h: Don't include symfile.h. | |
3983 | (struct partial_symbol): Remove forward-declaration. | |
3984 | (struct objfile) <global_psymbols, static_psymbols>: Change type | |
3985 | to std::vector<partial_symbol *>. | |
3986 | * objfiles.c (objfile::objfile): Don't memset those fields. | |
3987 | (objfile::~objfile): Don't free those fields. | |
3988 | * psympriv.h (struct psymbol_allocation_list): Remove | |
3989 | forward-declaration. | |
3990 | (add_psymbol_to_list): Change psymbol_allocation_list parameter | |
3991 | to std::vector. | |
3992 | (start_psymtab_common): Change parameters to std::vector. | |
3993 | * psymtab.c: Include algorithm. | |
3994 | (require_partial_symbols): Call shrink_to_fit. | |
3995 | (find_pc_sect_psymbol): Adjust to vector change. | |
3996 | (match_partial_symbol): Likewise. | |
3997 | (lookup_partial_symbol): Likewise. | |
3998 | (psym_relocate): Likewise. | |
3999 | (dump_psymtab): Likewise. | |
4000 | (recursively_search_psymtabs): Likewise. | |
4001 | (compare_psymbols): Remove. | |
4002 | (sort_pst_symbols): Adjust to vector change. | |
4003 | (start_psymtab_common): Likewise. | |
4004 | (end_psymtab_common): Likewise. | |
4005 | (psymbol_bcache_full): De-constify return value. | |
4006 | (add_psymbol_to_bcache): Likewise. | |
4007 | (extend_psymbol_list): Remove. | |
4008 | (append_psymbol_to_list): Adjust to vector change. | |
4009 | (add_psymbol_to_list): Likewise. | |
4010 | (init_psymbol_list): Likewise. | |
4011 | (maintenance_info_psymtabs): Likewise. | |
4012 | (maintenance_check_psymtabs): Likewise. | |
4013 | * symfile.h (struct psymbol_allocation_list): Remove. | |
4014 | * symfile.c (reread_symbols): Adjust to vector change. | |
4015 | * dbxread.c (start_psymtab): Change type of parameters. | |
4016 | (dbx_symfile_read): Adjust to vector change. | |
4017 | (read_dbx_symtab): Likewise. | |
4018 | (start_psymtab): Change type of parameters. | |
4019 | * dwarf2read.c (dwarf2_build_psymtabs): Adjust to vector change. | |
4020 | (create_partial_symtab): Likewise. | |
4021 | (add_partial_symbol): Likewise. | |
4022 | (write_one_signatured_type): Likewise. | |
4023 | (recursively_write_psymbols): Likewise. | |
4024 | * mdebugread.c (parse_partial_symbols): Likewise. | |
4025 | * xcoffread.c (xcoff_start_psymtab): Change type of parameters. | |
4026 | (scan_xcoff_symtab): Adjust to vector change. | |
4027 | (xcoff_initial_scan): Likewise. | |
4028 | ||
3ec5942f SM |
4029 | 2017-10-13 Simon Marchi <simon.marchi@ericsson.com> |
4030 | ||
4031 | * ada-typeprint.c (print_dynamic_range_bound): Use std::string. | |
4032 | ||
2399fe6a YQ |
4033 | 2017-10-13 Yao Qi <yao.qi@linaro.org> |
4034 | ||
4035 | * features/Makefile: Remove tic6x-*-expedite, add tic6x-expedite. | |
4036 | Remove s390x-*-expedite, add s390x-expedite. | |
4037 | ||
4bf3f4a8 YQ |
4038 | 2017-10-13 Yao Qi <yao.qi@linaro.org> |
4039 | ||
4040 | * features/s390-gs-linux64.c: Regenerated. | |
4041 | * features/s390x-gs-linux64.c: Regenerated. | |
4042 | ||
9e86da07 TT |
4043 | 2017-10-13 Tom Tromey <tom@tromey.com> |
4044 | ||
4045 | * compile/compile-object-run.c (do_module_cleanup): Use delete. | |
4046 | * solib.c (update_solib_list, reload_shared_libraries_1): Use | |
4047 | delete. | |
4048 | * symfile.c (symbol_file_add_with_addrs): Use new. | |
4049 | (symbol_file_add_separate): Update comment. | |
4050 | (syms_from_objfile_1, remove_symbol_file_command): Use delete. | |
4051 | * jit.c (jit_object_close_impl): Use new. | |
4052 | (jit_unregister_code): Use delete. | |
4053 | * objfiles.c (objfile::objfile): Rename from allocate_objfile. | |
4054 | (~objfile): Rename from free_objfile. | |
4055 | (free_objfile_separate_debug, do_free_objfile_cleanup) | |
4056 | (free_all_objfiles, objfile_purge_solibs): Use delete. | |
4057 | * objfiles.h (struct objfile): Add constructor and destructor. | |
4058 | Use DISABLE_COPY_AND_ASSIGN. Add initializers to data members. | |
4059 | (allocate_objfile, free_objfile): Don't declare. | |
4060 | (struct objstats): Add initializers. | |
4061 | ||
c2508e90 SM |
4062 | 2017-10-12 Simon Marchi <simon.marchi@ericsson.com> |
4063 | ||
4064 | * arch-utils.h (simple_displaced_step_copy_insn): Remove. | |
4065 | * arch-utils.c (simple_displaced_step_copy_insn): Remove. | |
4066 | * gdbarch.sh (displaced_step_copy_insn): Adjust comment. | |
4067 | * gdbarch.h: Regenerate. | |
4068 | * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): | |
4069 | Adjust comment. | |
4070 | * i386-tdep.c (i386_displaced_step_copy_insn): Adjust comment. | |
4071 | (i386_displaced_step_fixup): Adjust comment. | |
4072 | * rs6000-tdep.c (ppc_displaced_step_copy_insn): Adjust comment. | |
4073 | ||
a900ff72 TT |
4074 | 2017-10-12 Tom Tromey <tom@tromey.com> |
4075 | ||
4076 | * prologue-value.h (pv_area::store_would_trash): Return bool. | |
4077 | (pv_area::find_reg): Likewise. | |
4078 | * prologue-value.c (pv_area::store_would_trash): Return bool. | |
4079 | (pv_area::find_reg): Likewise. | |
4080 | ||
f7b7ed97 TT |
4081 | 2017-10-12 Tom Tromey <tom@tromey.com> |
4082 | ||
4083 | * s390-linux-tdep.c (s390_store, s390_load) | |
4084 | (s390_check_for_saved, s390_analyze_prologue): Update. | |
4085 | * rx-tdep.c (check_for_saved, rx_analyze_prologue): Update. | |
4086 | * rl78-tdep.c (rl78_analyze_prologue, check_for_saved): Update. | |
4087 | * prologue-value.h (class pv_area): Move from prologue-value.c. | |
4088 | Change names of members. Add constructor, destructor, member | |
4089 | functions. | |
4090 | (make_pv_area, free_pv_area, make_cleanup_free_pv_area) | |
4091 | (pv_area_store, pv_area_fetch, pv_area_store_would_trash) | |
4092 | (pv_area_fetch, pv_area_scan): Don't declare. | |
4093 | * prologue-value.c (struct pv_area::area_entry): Now member of | |
4094 | pv_area. | |
4095 | (struct pv_area): Move to prologue-value.h. | |
4096 | (pv_area::pv_area): Rename from make_pv_area. | |
4097 | (pv_area::~pv_area): Rename from free_pv_area. | |
4098 | (do_free_pv_area_cleanup, make_cleanup_free_pv_area): Remove. | |
4099 | (clear_entries, find_entry, overlaps, store_would_trash, store) | |
4100 | (fetch, find_reg, scan): Now member of pv_area. | |
4101 | Remove "area" argument. Update. | |
4102 | * msp430-tdep.c (check_for_saved, msp430_analyze_prologue): | |
4103 | Update. | |
4104 | * mn10300-tdep.c (push_reg, check_for_saved) | |
4105 | (mn10300_analyze_prologue): Update. | |
4106 | * mep-tdep.c (is_arg_spill, check_for_saved) | |
4107 | (mep_analyze_prologue): Update. | |
4108 | * m32c-tdep.c (m32c_pv_push, m32c_srcdest_fetch) | |
4109 | (m32c_srcdest_store, m32c_pv_enter, m32c_is_arg_spill) | |
4110 | (m32c_is_struct_return, m32c_analyze_prologue): Update. | |
4111 | * arm-tdep.c (thumb_analyze_prologue, arm_analyze_prologue): | |
4112 | Update. | |
4113 | * arc-tdep.c (arc_is_in_prologue, arc_analyze_prologue): Update. | |
4114 | * aarch64-tdep.c (aarch64_analyze_prologue): Update. | |
4115 | ||
466eecee SM |
4116 | 2017-10-12 Simon Marchi <simon.marchi@ericsson.com> |
4117 | ||
4118 | * linux-nat.h (linux_nat_set_delete_thread): New declaration. | |
4119 | * linux-nat.c (linux_nat_delete_thread): New variable. | |
4120 | (lwp_free): Invoke linux_nat_delete_thread if set. | |
4121 | (linux_nat_set_delete_thread): New function. | |
4122 | * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Assign | |
4123 | thread delete callback. | |
4124 | * arm-linux-nat.c (arm_linux_delete_thread): New function. | |
4125 | (_initialize_arm_linux_nat): Assign thread delete callback. | |
4126 | * s390-linux-nat.c (s390_delete_thread): New function. | |
4127 | (_initialize_s390_nat): Assign thread delete callback. | |
4128 | * x86-linux-nat.c (x86_linux_add_target): Likewise. | |
4129 | * nat/aarch64-linux.c (aarch64_linux_delete_thread): New | |
4130 | function. | |
4131 | * nat/aarch64-linux.h (aarch64_linux_delete_thread): New | |
4132 | declaration. | |
4133 | * nat/x86-linux.c (x86_linux_delete_thread): New function. | |
4134 | * nat/x86-linux.h (x86_linux_delete_thread): New declaration. | |
4135 | ||
f71c8822 TT |
4136 | 2017-10-09 Tom Tromey <tom@tromey.com> |
4137 | ||
4138 | * tui/tui-win.c (tui_set_win_height, parse_scrolling_args): Use | |
4139 | std::string. | |
4140 | * tui/tui-layout.c (enum tui_status): Use std::string. | |
4141 | ||
981a3fb3 TT |
4142 | 2017-10-11 Tom Tromey <tom@tromey.com> |
4143 | ||
4144 | * gdbthread.h (thread_command): Constify. | |
4145 | * inferior.h (detach_command): Constify. | |
4146 | * top.h (set_history, show_history): Constify. | |
4147 | * arm-tdep.c (set_arm_command, show_arm_command): Constify. | |
4148 | * serial.c (serial_set_cmd, serial_show_cmd): Constify. | |
4149 | * bsd-kvm.c (bsd_kvm_cmd): Constify. | |
4150 | * printcmd.c (set_command): Constify. | |
4151 | (non_const_set_command): New function. | |
4152 | * dcache.c (set_dcache_command, show_dcache_command): Constify. | |
4153 | * breakpoint.c (enable_command, disable_command, delete_command) | |
4154 | (catch_command, tcatch_command, set_breakpoint_cmd) | |
4155 | (show_breakpoint_cmd): Constify. | |
4156 | * macrocmd.c (macro_command): Constify. | |
4157 | * infcmd.c (unset_command, kill_command, detach_command) | |
4158 | (info_proc_cmd): Constify. | |
4159 | * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Constify. | |
4160 | * auto-load.c (show_auto_load_cmd, set_auto_load_cmd) | |
4161 | (info_auto_load_cmd): Constify. | |
4162 | * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd) | |
4163 | (unset_tdesc_cmd): Constify. | |
4164 | * ada-lang.c (set_ada_command, show_ada_command) | |
4165 | (maint_set_ada_cmd, maint_show_ada_cmd): Constify. | |
4166 | * guile/guile.c (set_guile_command, show_guile_command) | |
4167 | (info_guile_command): Constify. | |
4168 | * tui/tui-win.c (tui_command, set_tui_cmd, show_tui_cmd): | |
4169 | Constify. | |
4170 | * skip.c (skip_command): Constify. | |
4171 | * compile/compile.c (_initialize_compile): Constify. | |
4172 | * dwarf2read.c (set_dwarf_cmd, show_dwarf_cmd): Constify. | |
4173 | * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd) | |
4174 | (maint_btrace_show_cmd, maint_btrace_pt_set_cmd) | |
4175 | (maint_btrace_pt_show_cmd): Constify. | |
4176 | * remote.c (set_remote_cmd, show_remote_cmd, remote_command): | |
4177 | Constify. | |
4178 | * python/python.c (user_show_python, user_set_python): Constify. | |
4179 | * mips-tdep.c (set_mips_command, show_mips_command) | |
4180 | (set_mipsfpu_command): Constify. | |
4181 | * record-btrace.c (cmd_record_btrace_start) | |
4182 | (cmd_set_record_btrace, cmd_show_record_btrace) | |
4183 | (cmd_set_record_btrace_bts, cmd_show_record_btrace_bts) | |
4184 | (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): Constify. | |
4185 | * rs6000-tdep.c (set_powerpc_command, show_powerpc_command): | |
4186 | Constify. | |
4187 | * symfile.c (overlay_command): Constify. | |
4188 | * spu-tdep.c (set_spu_command, show_spu_command): Constify. | |
4189 | * cli/cli-logging.c (set_logging_command, show_logging_command): | |
4190 | Constify. | |
4191 | * cli/cli-dump.c (dump_command, append_command) | |
4192 | (srec_dump_command, ihex_dump_command, verilog_dump_command) | |
4193 | (tekhex_dump_command, binary_dump_command) | |
4194 | (binary_append_command): Constify. | |
4195 | * cli/cli-decode.c (struct cmd_list_element): Change type of | |
4196 | "fun". | |
4197 | * cli/cli-cmds.c (info_command, show_command, set_debug) | |
4198 | (show_debug): Constify. | |
4199 | (show_command): Add non-const overload. | |
4200 | * top.c (set_history, show_history): Constify. | |
4201 | * sh-tdep.c (set_sh_command, show_sh_command): Constify. | |
4202 | * command.h (add_prefix_cmd): Accept a cmd_const_cfunc_ftype. | |
4203 | * target.c (target_command): Constify. | |
4204 | * sparc64-tdep.c (info_adi_command): Constify. | |
4205 | * record-full.c (cmd_record_full_start): Constify. | |
4206 | (set_record_full_command): Constify. Fix typo. | |
4207 | (show_record_full_command): Constify. | |
4208 | * thread.c (thread_command, thread_apply_command): Constify. | |
4209 | * memattr.c (dummy_cmd): Constify. | |
4210 | * value.c (function_command): Constify. | |
4211 | * frame.c (set_backtrace_cmd, show_backtrace_cmd): Constify. | |
4212 | * probe.c (info_probes_command): Constify. | |
4213 | * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Constify. | |
4214 | * gnu-nat.c (set_task_cmd, show_task_cmd, set_thread_cmd) | |
4215 | (show_thread_cmd, set_thread_default_cmd) | |
4216 | (show_thread_default_cmd): Constify. | |
4217 | (check_empty): Constify. | |
4218 | * tracepoint.c (tfind_command): Constify. | |
4219 | * cp-support.c (maint_cplus_command): Constify. | |
4220 | * windows-tdep.c (info_w32_command): Constify. | |
4221 | * record.c (cmd_record_start, set_record_command) | |
4222 | (show_record_command, info_record_command, cmd_record_goto): | |
4223 | Constify. | |
4224 | * ravenscar-thread.c (set_ravenscar_command) | |
4225 | (show_ravenscar_command): Constify. | |
4226 | * utils.c (set_internal_problem_cmd, show_internal_problem_cmd): | |
4227 | Constify. | |
4228 | (add_internal_problem_command): Remove casts. | |
4229 | * arc-tdep.c (maintenance_print_arc_command): Constify. | |
4230 | * valprint.c (set_print, show_print, set_print_raw) | |
4231 | (show_print_raw): Constify. | |
4232 | * maint.c (maintenance_command, maintenance_info_command) | |
4233 | (maintenance_print_command, maintenance_set_cmd) | |
4234 | (maintenance_show_cmd, set_per_command_cmd) | |
4235 | (show_per_command_cmd, maintenance_check_command): Constify. | |
4236 | * language.c (set_check, show_check): Constify. | |
4237 | * typeprint.c (show_print_type, set_print_type): Constify. | |
4238 | * go32-nat.c (go32_info_dos_command): Constify. | |
4239 | ||
fdf44873 TT |
4240 | 2017-10-11 Tom Tromey <tom@tromey.com> |
4241 | ||
4242 | * breakpoint.c (prepare_re_set_context): Remove. | |
4243 | (breakpoint_re_set_one): Update. Don't use cleanups. | |
4244 | (breakpoint_re_set): Use scoped_restore, std::string, and | |
4245 | scoped_restore_current_language. | |
4246 | ||
81b1e71c TT |
4247 | 2017-10-11 Tom Tromey <tom@tromey.com> |
4248 | ||
4249 | * breakpoint.c (commands_command_1): Use std::string. | |
4250 | (cleanup_executing_breakpoints): Remove. | |
4251 | (bpstat_do_actions_1): Use scoped_restore. | |
4252 | (bpstat_check_watchpoint): Use std::string. | |
4253 | (decode_static_tracepoint_spec): Likewise. | |
4254 | (break_range_command): Likewise. | |
4255 | (watch_command_1): Likewise. | |
4256 | (compare_breakpoints): Change argument types. | |
4257 | (clear_command): Use std::vector. | |
4258 | (cleanup_executing_breakpoints): Remove. | |
4259 | (update_global_location_list): Use unique_xmalloc_ptr. | |
4260 | (strace_command): Remove unused declaration. | |
4261 | ||
4f9d9906 JB |
4262 | 2017-10-11 John Baldwin <jhb@FreeBSD.org> |
4263 | ||
4264 | * Makefile.in (ALLDEPFILES): Add arm-fbsd-nat.c. | |
4265 | * NEWS: Mention new FreeBSD/arm native configuration. | |
4266 | * configure.host: Add arm*-*-freebsd*. | |
4267 | * configure.nat: Likewise. | |
4268 | * arm-fbsd-nat.c: New file. | |
4269 | ||
7176dfd2 JB |
4270 | 2017-10-11 John Baldwin <jhb@FreeBSD.org> |
4271 | ||
4272 | * Makefile.in (ALL_TARGET_OBS): Add arm-fbsd-tdep.o. | |
4273 | (ALLDEPFILES): Add arm-fbsd-tdep.c. | |
4274 | * NEWS: Mention new FreeBSD/arm target. | |
4275 | * configure.tgt: Add arm*-*-freebsd*. | |
4276 | * arm-fbsd-tdep.c: New file. | |
4277 | * arm-fbsd-tdep.h: New file. | |
4278 | ||
fe220226 MR |
4279 | 2017-10-11 Maciej W. Rozycki <macro@imgtec.com> |
4280 | ||
4281 | * linux-tdep.c (linux_make_corefile_notes): Remove call to | |
4282 | `gdbarch_elfcore_write_linux_prpsinfo'. | |
4283 | * gdbarch.sh (elfcore_write_linux_prpsinfo): Remove architecture | |
4284 | method. | |
4285 | (elf_internal_linux_prpsinfo): Remove declaration. | |
4286 | * gdbarch.h: Regenerate. | |
4287 | * gdbarch.c: Regenerate. | |
4288 | ||
a2f63b2e MR |
4289 | 2017-10-11 Maciej W. Rozycki <macro@imgtec.com> |
4290 | ||
4291 | * ppc-linux-tdep.c (ppc_linux_init_abi): Remove call to | |
4292 | `set_gdbarch_elfcore_write_linux_prpsinfo'. | |
4293 | ||
458ca1d0 PA |
4294 | 2017-10-11 Pedro Alves <palves@redhat.com> |
4295 | ||
4296 | * breakpoint.c (reattach_breakpoints): Delete. | |
4297 | * breakpoint.h (reattach_breakpoints): Delete. | |
4298 | ||
905014d7 SM |
4299 | 2017-10-11 Simon Marchi <simon.marchi@ericsson.com> |
4300 | ||
4301 | * symfile.c (registered_sym_fns): Make struct, not typedef. | |
4302 | (DEF_VEC_O (registered_sym_fns)): Remove. | |
4303 | (symtab_fns): Change type to std::vector. | |
4304 | (add_symtab_fns): Adjust. | |
4305 | (find_sym_fns): Adjust. | |
4306 | ||
56d704da AK |
4307 | 2017-10-11 Anton Kolesov <Anton.Kolesov@synopsys.com> |
4308 | ||
4309 | * arc-tdep.c (arc_gdbarch_init): Pass proper cpu value to disassembler. | |
4310 | * arc-tdep.h (arc_arch_is_em): New function. | |
4311 | (arc_arch_is_hs): Likewise. | |
4312 | ||
7fa29be9 EB |
4313 | 2017-10-11 Egeyar Bagcioglu <egeyar.bagcioglu@oracle.com> |
4314 | ||
4315 | * macrotab.h (macro_lookup_inclusion): Remove unnecessary | |
4316 | parentheses in the declaration. | |
4317 | (macro_lookup_inclusion): Likewise. | |
4318 | (macro_lookup_definition): Likewise. | |
4319 | * p-lang.h (pascal_builtin_types): Likewise. | |
4320 | * tui/tui-data.c (tui_win_list): Likewise. | |
4321 | * tui/tui-data.h (tui_win_list): Likewise. | |
4322 | * utils.h (make_cleanup_free_section_addr_info): Likewise. | |
4323 | ||
d9b477e3 KB |
4324 | 2017-10-11 Mark Rages <markrages@gmail.com> |
4325 | ||
4326 | * target-memory.c (block_boundaries): Fix for block address not | |
4327 | aligned on block size. | |
4328 | ||
65630365 PA |
4329 | 2017-10-10 Pedro Alves <palves@redhat.com> |
4330 | Tom Tromey <tom@tromey.com> | |
4331 | ||
4332 | * breakpoint.c (struct captured_breakpoint_query_args) | |
4333 | (do_captured_breakpoint_query, gdb_breakpoint_query): Delete. | |
4334 | (print_breakpoint): New. | |
4335 | * breakpoint.h (print_breakpoint): Declare. | |
4336 | * common/common-exceptions.h (enum return_reason): Remove | |
4337 | references to catch_exceptions. | |
4338 | * exceptions.c (catch_exceptions, catch_exceptions_with_msg): | |
4339 | Delete. | |
4340 | * exceptions.h (catch_exceptions_ftype, catch_exceptions) | |
4341 | (catch_exception_ftype, catch_exceptions_with_msg): Delete. | |
4342 | * gdb.h: Delete. | |
4343 | * gdbthread.h (thread_select): Declare. | |
4344 | * mi/mi-cmd-break.c: Don't include gdb.h. | |
4345 | (breakpoint_notify): Use print_breakpoint. | |
4346 | * mi/mi-cmd-catch.c: Don't include gdb.h. | |
4347 | * mi/mi-interp.c: Don't include gdb.h. | |
4348 | (mi_print_breakpoint_for_event): New. | |
4349 | (mi_breakpoint_created, mi_breakpoint_modified): Use | |
4350 | mi_print_breakpoint_for_event. | |
4351 | * mi/mi-main.c: Don't include gdb.h. | |
4352 | (mi_cmd_thread_select): Parse the global thread ID here. Use | |
4353 | thread_select instead of gdb_thread_select. | |
4354 | (mi_cmd_thread_list_ids): Output "thread-ids" tuple here instead | |
4355 | of using gdb_list_thread_ids. | |
4356 | * remote-fileio.c (do_remote_fileio_request): Change type. Reply | |
4357 | FILEIO_ENOSYS here. | |
4358 | (remote_fileio_request): Use TRY/CATCH instead of | |
4359 | catch_exceptions. | |
4360 | * symfile-mem.c (struct symbol_file_add_from_memory_args) | |
4361 | (symbol_file_add_from_memory_wrapper): Delete. | |
4362 | (add_vsyscall_page): Use TRY/CATCH instead of catch_exceptions. | |
4363 | * thread.c: Don't include gdb.h. | |
4364 | (do_captured_list_thread_ids, gdb_list_thread_ids): Delete. | |
4365 | (thread_alive): Use thread_select. | |
4366 | (do_captured_thread_select): Delete, parts salvaged as ... | |
4367 | (thread_select): ... this new function. | |
4368 | (gdb_thread_select): Delete. | |
4369 | ||
bf469271 PA |
4370 | 2017-10-10 Pedro Alves <palves@redhat.com> |
4371 | Tom Tromey <tom@tromey.com> | |
4372 | ||
4373 | * breakpoint.c (breakpoint_cond_eval): Change return type to bool | |
4374 | and reverse logic. | |
4375 | (WP_DELETED, WP_VALUE_CHANGED, WP_VALUE_NOT_CHANGED, WP_IGNORE): | |
4376 | No longer macros. Instead ... | |
4377 | (enum wp_check_result): They're now values of this new | |
4378 | enumeration. | |
4379 | (watchpoint_check): Change return type to wp_check_result and | |
4380 | parameter type to bpstat. | |
4381 | (bpstat_check_watchpoint): Use TRY/CATCH instead of catch_errors. | |
4382 | (bpstat_check_breakpoint_conditions): Use TRY/CATCH instead of | |
4383 | catch_errors. Reverse logic of watchpoint_check call. | |
4384 | (breakpoint_re_set_one): Now returns void and takes a breakpoint | |
4385 | pointer as parameter. | |
4386 | (breakpoint_re_set): Use TRY/CATCH instead of catch_errors. | |
4387 | * common/common-exceptions.c (throw_exception_sjlj): Update | |
4388 | comments to avoid mentioning catch_errors. | |
4389 | * exceptions.c (catch_errors): Delete. | |
4390 | * exceptions.h: Update comments to avoid mentioning catch_errors. | |
4391 | (catch_errors_ftype, catch_errors): Delete. | |
4392 | * infrun.c (normal_stop): Use TRY/CATCH instead of catch_errors. | |
4393 | (hook_stop_stub): Delete. | |
4394 | (restore_selected_frame): Change return type to void, and | |
4395 | parameter type to const frame_id &. | |
4396 | (restore_infcall_control_state): Use TRY/CATCH instead of | |
4397 | catch_errors. | |
4398 | * main.c (captured_command_loop): Return void and remove | |
4399 | parameter. Remove references to catch_errors. | |
4400 | (captured_main): Use TRY/CATCH instead of catch_errors. | |
4401 | * objc-lang.c (objc_submethod_helper_data) | |
4402 | (find_objc_msgcall_submethod_helper): Delete. | |
4403 | (find_objc_msgcall_submethod): Use TRY/CATCH instead of | |
4404 | catch_errors. | |
4405 | * record-full.c (record_full_message): Return void. | |
4406 | (record_full_message_args, record_full_message_wrapper): Delete. | |
4407 | (record_full_message_wrapper_safe): Return bool and use TRY/CATCH | |
4408 | instead of catch_errors. | |
4409 | * solib-aix.c (solib_aix_open_symbol_file_object): Change | |
4410 | parameter type to int. | |
4411 | * solib-darwin.c (open_symbol_file_object): Ditto. | |
4412 | * solib-dsbt.c (open_symbol_file_object): Ditto. | |
4413 | * solib-frv.c (open_symbol_file_object): Ditto. | |
4414 | * solib-svr4.c (open_symbol_file_object): Ditto. | |
4415 | * solib-target.c (solib_target_open_symbol_file_object): Ditto. | |
4416 | * solib.c (update_solib_list): Use TRY/CATCH instead of | |
4417 | catch_errors. | |
4418 | * solist.h (struct target_so_ops) <open_symbol_file_object>: | |
4419 | Change type. | |
4420 | * symmisc.c (struct print_symbol_args): Remove. | |
4421 | (dump_symtab_1): Use TRY/CATCH instead of catch_errors. | |
4422 | (print_symbol): Change type. | |
4423 | * windows-nat.c (handle_load_dll, handle_unload_dll): Return void | |
4424 | and remove parameters. | |
4425 | (catch_errors): New. | |
4426 | (get_windows_debug_event): Adjust. | |
4427 | ||
1a56bfa5 TT |
4428 | 2017-10-09 Tom Tromey <tom@tromey.com> |
4429 | ||
4430 | * mi/mi-main.c (free_splay_tree): Remove. | |
4431 | (list_available_thread_groups): Use splay_tree_up. | |
4432 | * common/gdb_splay_tree.h: New file. | |
4433 | ||
0c478e2d TT |
4434 | 2017-10-09 Tom Tromey <tom@tromey.com> |
4435 | ||
4436 | * mi/mi-main.c (do_nothing): Remove. | |
4437 | (list_available_thread_groups): Update. | |
4438 | ||
cbd2b4e3 PA |
4439 | 2017-10-09 Pedro Alves <palves@redhat.com> |
4440 | ||
4441 | * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>: Skip | |
4442 | reading registers when switching context. | |
4443 | ||
a181c0bf JB |
4444 | 2017-10-09 John Baldwin <jhb@FreeBSD.org> |
4445 | ||
4446 | * fbsd-nat.c (fbsd_siginfo_size): Use gdbarch_long_bit. | |
4447 | (fbsd_convert_siginfo): Likewise. | |
4448 | * fbsd-tdep.c (fbsd_core_xfer_siginfo): Likewise. | |
4449 | ||
6e66f753 SM |
4450 | 2017-10-09 Simon Marchi <simon.marchi@polymtl.ca> |
4451 | ||
4452 | * configure.ac (try_guile_versions): Remove guile-2.2. | |
4453 | * configure: Regenerate. | |
4454 | ||
890e9790 TT |
4455 | 2017-10-09 Tom Tromey <tom@tromey.com> |
4456 | ||
4457 | * Makefile.in (COMPILE.post, POSTCOMPILE): Restore $(basename). | |
4458 | (COMPILE.pre): Use $(CXX). | |
4459 | ||
109483d9 PA |
4460 | 2017-10-09 Pedro Alves <palves@redhat.com> |
4461 | ||
4462 | * cp-support.c (cp_remove_params): Return a gdb::unique_xmalloc_ptr. | |
4463 | Use bool. | |
4464 | (overload_list_add_symbol): Adjust to use gdb::unique_xmalloc_ptr. | |
4465 | * cp-support.h (cp_remove_params): Now returns a | |
4466 | gdb::unique_xmalloc_ptr. | |
4467 | * dwarf2read.c (find_slot_in_mapped_hash): Now returns bool. | |
4468 | Adjust to cp_remove_params returning a gdb::unique_xmalloc_ptr. | |
4469 | * psymtab.c (psymtab_search_name): Adjust to cp_remove_params | |
4470 | returning a gdb::unique_xmalloc_ptr. | |
4471 | (lookup_partial_symbol): Adjust to use gdb::unique_xmalloc_ptr. | |
4472 | * stack.c (find_frame_funname): Adjust to cp_remove_params | |
4473 | returning a gdb::unique_xmalloc_ptr. | |
4474 | ||
791afaa2 TT |
4475 | 2017-10-08 Tom Tromey <tom@tromey.com> |
4476 | ||
4477 | * dwarf2read.c (dwarf2_get_dwz_file): Use | |
4478 | gdb::unique_xmalloc_ptr. | |
4479 | (find_slot_in_mapped_hash): Likewise. | |
4480 | (dwarf2_physname): Likewise. | |
4481 | (create_dwo_unit_in_dwp_v1): Use std::string. | |
4482 | (create_dwo_unit_in_dwp_v2): Likewise. | |
4483 | (lookup_dwo_cutu): Likewise. | |
4484 | (inherit_abstract_dies): Use std::vector. | |
4485 | (read_array_type): Likewise. | |
4486 | (dwarf_decode_macros): Remove unused declaration. | |
4487 | (unsigned_int_compar): Remove. | |
4488 | (dwarf2_build_psymtabs_hard): Use scoped_restore. | |
4489 | (psymtabs_addrmap_cleanup): Remove. | |
4490 | ||
30a9c02f TT |
4491 | 2017-10-08 Tom Tromey <tom@tromey.com> |
4492 | ||
4493 | * frame-unwind.c (frame_unwind_try_unwinder): Update. | |
4494 | * frame.h (frame_cleanup_after_sniffer): Declare. | |
4495 | (frame_prepare_for_sniffer): Return void. | |
4496 | * frame.c (frame_cleanup_after_sniffer): No longer static. Change | |
4497 | type of argument. | |
4498 | (frame_prepare_for_sniffer): Return void. | |
4499 | ||
757325a3 TT |
4500 | 2017-10-08 Tom Tromey <tom@tromey.com> |
4501 | ||
4502 | * utils.h (make_cleanup_value_free): Remove. | |
4503 | * utils.c (do_value_free, struct cleanup): Remove. | |
4504 | * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>: | |
4505 | Use gdb_value_up. | |
4506 | * value.h (struct value_deleter): New. | |
4507 | (gdb_value_up): New typedef. | |
4508 | ||
b9c04fb2 TT |
4509 | 2017-10-08 Tom Tromey <tom@tromey.com> |
4510 | ||
4511 | * symtab.c (free_search_symbols, do_free_search_symbols_cleanup) | |
4512 | (make_cleanup_free_search_symbols): Remove. | |
4513 | (search_symbols): Return std::vector. | |
4514 | (symbol_search::compare_search_syms): Now member of | |
4515 | symbol_search. Change arguments. | |
4516 | (sort_search_symbols_remove_dups): Change arguments. Rewrite. | |
4517 | (symtab_symbol_info, rbreak_command): Update. | |
4518 | * symtab.h (struct symbol_search) <next>: Remove. | |
4519 | Add constructors. | |
4520 | (symbol_search::operator<): New function. | |
4521 | (symbol_search::operator==): New function. | |
4522 | (search_symbols): Remove std::vector. | |
4523 | (free_search_symbols, make_cleanup_free_search_symbols): Remove. | |
4524 | (symbol_search::compare_search_syms): Declare. | |
4525 | ||
0d28b0a5 YQ |
4526 | 2017-10-06 Yao Qi <yao.qi@linaro.org> |
4527 | ||
4528 | * Makefile.in (ALL_64_TARGET_OBS): Replace aarch64-insn.o with | |
4529 | arch/aarch64-insn.o. | |
4530 | Remove one rule. | |
4531 | * configure.tgt: Replace aarch64-insn.o with arch/aarch64-insn.o. | |
4532 | ||
71917808 YQ |
4533 | 2017-10-06 Yao Qi <yao.qi@linaro.org> |
4534 | ||
4535 | * Makefile.in (ALL_TARGET_OBS): Replace arm.o, arm-get-next-pcs.o, | |
4536 | and arm-linux.o with arch/arm.o, arch/arm-get-next-pcs.o and | |
4537 | arch/arm-linux.o respectively. | |
4538 | * configure.tgt: Likewise. | |
4539 | ||
2081b2b2 YQ |
4540 | 2017-10-06 Yao Qi <yao.qi@linaro.org> |
4541 | ||
4542 | * Makefile.in (ALL_TARGET_OBS): Rename i386.o to arch/i386.o. | |
4543 | * configure.tgt (i386_tobjs): Replace i386.o with arch/i386.o. | |
4544 | ||
a1b85d28 PA |
4545 | 2017-10-06 Pedro Alves <palves@redhat.com> |
4546 | ||
4547 | * windows-nat.c: Include <algorithm>. | |
4548 | ||
d97987e2 YQ |
4549 | 2017-10-06 Yao Qi <yao.qi@linaro.org> |
4550 | ||
4551 | * configure.tgt (i386_tobjs): New variable. | |
4552 | (amd64_tobjs): New variable. | |
4553 | Set $cpu_obs and $os_obs. | |
4554 | ||
f38307f5 YQ |
4555 | 2017-10-06 Yao Qi <yao.qi@linaro.org> |
4556 | ||
4557 | * Makefile.in (CONFIG_SRC_SUBDIR): New. | |
4558 | (ALL_64_TARGET_OBS): Replace amd64.o with arch/amd64.o. | |
4559 | (clean): Remove object files and dependency files. | |
4560 | (distclean): Remove the directory. | |
4561 | * configure.ac: Invoke AC_CONFIG_COMMANDS. | |
4562 | * configure: Re-generated. | |
4563 | * configure.tgt: Replace amd64.o with arch/amd64.o. | |
4564 | ||
2f924de6 JM |
4565 | 2017-10-05 Jose E. Marchesi <jose.marchesi@oracle.com> |
4566 | ||
4567 | PR build/22188 | |
4568 | * arm-tdep.c (arm_decode_misc_memhint_neon): Fix decoding of CPS | |
4569 | and SETEND. | |
4570 | ||
2fd9d7ca PA |
4571 | 2017-10-05 Pedro Alves <palves@redhat.com> |
4572 | ||
4573 | * linux-nat.c (linux_child_follow_fork): When following the parent | |
4574 | and detaching the child, consult the parent thread's architecture | |
4575 | instead of the child's. | |
4576 | ||
d13b8493 UW |
4577 | 2017-10-05 Ulrich Weigand <uweigand@de.ibm.com> |
4578 | ||
4579 | * ax.h: Do not include "doublest.h". | |
4580 | (union agent_val): Remove. | |
4581 | ||
3b4b2f16 UW |
4582 | 2017-10-05 Ulrich Weigand <uweigand@de.ibm.com> |
4583 | ||
4584 | * dfp.h (MAX_DECIMAL_STRING): Move to dfp.c. | |
4585 | (decimal_to_string): Return std::string object. | |
4586 | (decimal_from_string): Accept std::string object. Return bool. | |
4587 | (decimal_from_integral, decimal_from_doublest): Remove. | |
4588 | (decimal_from_longest): Add prototype. | |
4589 | (decimal_from_ulongest): Likewise. | |
4590 | (decimal_to_longest): Likewise. | |
4591 | (decimal_from_doublest): Likewise. | |
4592 | * dfp.c: Do not include "gdbtypes.h" or "value.h". | |
4593 | (MAX_DECIMAL_STRING): Move here. | |
4594 | (decimal_to_string): Return std::string object. | |
4595 | (decimal_from_string): Accept std::string object. Return bool. | |
4596 | (decimal_from_integral): Remove, replace by ... | |
4597 | (decimal_from_longest, decimal_from_ulongest): ... these new functions. | |
4598 | (decimal_to_longest): New function. | |
4599 | (decimal_from_floating): Remove, replace by ... | |
4600 | (decimal_from_doublest): ... this new function. | |
4601 | (decimal_to_doublest): Update to new decimal_to_string interface. | |
4602 | ||
4603 | * value.c (unpack_long): Use decimal_to_longest. | |
4604 | * valops.c (value_cast): Use decimal_from_doublest instead of | |
4605 | decimal_from_floating. Use decimal_from_[u]longest isntead of | |
4606 | decimal_from_integral. | |
4607 | * valarith.c (value_args_as_decimal): Likewise. | |
4608 | * valprint.c (print_decimal_floating): Update to new | |
4609 | decimal_to_string interface. | |
4610 | * printcmd.c (printf_decfloat): Likewise. | |
4611 | * c-exp.y (parse_number): Update to new decimal_from_string interface. | |
4612 | ||
1841ee5d UW |
4613 | 2017-10-05 Ulrich Weigand <uweigand@de.ibm.com> |
4614 | ||
4615 | * doublest.h: Do not include "floatformat.h". Remove stale comments. | |
4616 | * gdbtypes.c: Include "floatformat.h". | |
4617 | * value.c: Likewise. | |
4618 | * m68k-tdep.c: Likewise. | |
4619 | ||
4620 | * findvar.c: Do not include "floatformat.h". | |
4621 | * amd64-darwin-tdep.c: Likewise. | |
4622 | * arm-linux-tdep.c: Likewise. | |
4623 | * i386-darwin-tdep.c: Likewise. | |
4624 | * i387-tdep.c: Likewise. | |
4625 | * m68k-linux-tdep.c: Likewise. | |
4626 | * mep-tdep.c: Likewise. | |
4627 | * mips-tdep.c: Likewise. | |
4628 | * nios2-tdep.c: Likewise. | |
4629 | * s390-linux-tdep.c: Likewise. | |
4630 | * sparc-obsd-tdep.c: Likewise. | |
4631 | * sparc-tdep.c: Likewise. | |
4632 | * sparc64-tdep.c: Likewise. | |
4633 | * spu-tdep.c: Likewise. | |
4634 | * tic6x-tdep.c: Likewise. | |
4635 | * tilegx-tdep.c: Likewise. | |
4636 | * vax-tdep.c: Likewise. | |
4637 | * xstormy16-tdep.c: Likewise. | |
4638 | * xtensa-tdep.c: Likewise. | |
4639 | ||
4640 | * top.c: Do not include "doublest.h". | |
4641 | * aarch64-tdep.c: Likewise. | |
4642 | * alpha-tdep.c: Likewise. | |
4643 | * arm-linux-tdep.c: Likewise. | |
4644 | * m68k-linux-tdep.c: Likewise. | |
4645 | * tilegx-tdep.c: Likewise. | |
4646 | * xstormy16-tdep.c: Likewise. | |
4647 | ||
a80a6471 JB |
4648 | 2017-10-05 John Baldwin <jhb@FreeBSD.org> |
4649 | ||
4650 | * mips-fbsd-tdep.c (MIPS_INST_ADDIU_A0_SP_N32): Define. | |
4651 | (mipsn32_fbsd_sigframe): Define. | |
4652 | (mips_fbsd_init_abi): Install mipsn32_fbsd_sigframe unwinder | |
4653 | for FreeBSD/mipsn32. | |
4654 | ||
12c4bd7f JB |
4655 | 2017-10-05 John Baldwin <jhb@FreeBSD.org> |
4656 | ||
4657 | * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_EHDRFLAGS and | |
4658 | AT_HWCAP. | |
4659 | ||
c91933e9 TG |
4660 | 2017-10-05 Tristan Gingold <tgingold@free.fr> |
4661 | ||
4662 | * MAINTAINERS (Misc): Update my email address. | |
4663 | ||
5cd63fda PA |
4664 | 2017-10-04 Pedro Alves <palves@redhat.com> |
4665 | ||
4666 | * remote.c (get_remote_arch_state): New 'gdbarch' parameter. Use | |
4667 | it instead of target_gdbarch. | |
4668 | (get_remote_state, get_remote_packet_size): Adjust | |
4669 | get_remote_arch_state calls, passing down target_gdbarch | |
4670 | explicitly. | |
4671 | (packet_reg_from_regnum, packet_reg_from_pnum): New parameter | |
4672 | 'gdbarch' and use it instead of target_gdbarch. | |
4673 | (get_memory_packet_size): Adjust get_remote_arch_state calls, | |
4674 | passing down target_gdbarch explicitly. | |
4675 | (struct stop_reply) <arch>: New field. | |
4676 | (remote_parse_stop_reply): Use the stopped thread's architecture, | |
4677 | not the current inferior's. Save the architecture in the | |
4678 | stop_reply. | |
4679 | (process_stop_reply): Use the stop reply's architecture. | |
4680 | (process_g_packet, remote_fetch_registers) | |
4681 | (remote_prepare_to_store, store_registers_using_G) | |
4682 | (remote_store_registers): Adjust get_remote_arch_state calls, | |
4683 | using the regcache's architecture. | |
4684 | (remote_get_trace_status): Adjust get_remote_arch_state calls, | |
4685 | passing down target_gdbarch explicitly. | |
4686 | * spu-multiarch.c (spu_thread_architecture): Defer to the target | |
4687 | beneath instead of calling target_gdbarch. | |
4688 | * target.c (default_thread_architecture): Use the specified | |
4689 | inferior's architecture, instead of the current inferior's | |
4690 | architecture (via target_gdbarch). | |
4691 | ||
ed4227b7 PA |
4692 | 2017-10-04 Pedro Alves <palves@redhat.com> |
4693 | ||
4694 | * regcache.c (get_thread_arch_regcache): Remove null_ptid special | |
4695 | case. | |
4696 | (regcache_print): Handle !target_has_registers here instead. | |
4697 | ||
55b11ddf PA |
4698 | 2017-10-04 Pedro Alves <palves@redhat.com> |
4699 | ||
4700 | * frame.c (create_test_frame): Delete. | |
4701 | * frame.h (create_test_frame): Delete. | |
4702 | * gdbarch-selftests.c: Include gdbthread.h and target.h. | |
4703 | (class regcache_test): Delete. | |
4704 | (test_target_has_registers, test_target_has_stack) | |
4705 | (test_target_has_memory, test_target_prepare_to_store) | |
4706 | (test_target_store_registers): New functions. | |
4707 | (test_target_ops): New class. | |
4708 | (register_to_value_test): Error out if there's already a | |
4709 | process_stratum (or higher) target pushed. Create a fuller mock | |
4710 | environment, with mock target_ops, inferior, address space, thread | |
4711 | and inferior_ptid. | |
4712 | * progspace.c (struct address_space): Move to ... | |
4713 | * progspace.h (struct address_space): ... here. | |
4714 | * regcache.h (regcache::~regcache, regcache::raw_write) | |
4715 | [GDB_SELF_TEST]: No longer virtual. | |
4716 | ||
4c71c105 SM |
4717 | 2017-10-04 Simon Marchi <simon.marchi@ericsson.com> |
4718 | ||
4719 | * mi/mi-main.c (list_available_thread_groups): Reverse filter logic. | |
4720 | ||
73dcd72d PA |
4721 | 2017-10-04 Pedro Alves <palves@redhat.com> |
4722 | ||
4723 | * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Move code | |
4724 | out of 'between TRY and CATCH'. | |
4725 | ||
44704526 PA |
4726 | 2017-10-04 Pedro Alves <palves@redhat.com> |
4727 | ||
4728 | * cli/cli-cmds.c (complete_command): Add missing END_CATCH. | |
4729 | * common/common-exceptions.h (TRY): Open an outermost scope. | |
4730 | Expand intro comment. | |
4731 | (CATCH): Reindent. | |
4732 | (END_CATCH): Close the outermost scope. | |
4733 | * completer.c (complete_line_internal): Add missing END_CATCH. | |
4734 | ||
bc3b087d SDJ |
4735 | 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com> |
4736 | ||
4737 | * NEWS (Changes since GDB 8.0): Add entry about new | |
4738 | 'set-cwd-on-gdbserver' feature. | |
4739 | (New remote packets): Add entry for QSetWorkingDir. | |
4740 | * common/common-inferior.h (set_inferior_cwd): New prototype. | |
4741 | * infcmd.c (set_inferior_cwd): Remove "static". | |
4742 | (show_cwd_command): Expand text to include remote debugging. | |
4743 | * remote.c: Add PACKET_QSetWorkingDir. | |
4744 | (remote_protocol_features) <QSetWorkingDir>: New entry for | |
4745 | PACKET_QSetWorkingDir. | |
4746 | (extended_remote_set_inferior_cwd): New function. | |
4747 | (extended_remote_create_inferior): Call | |
4748 | "extended_remote_set_inferior_cwd". | |
4749 | (_initialize_remote): Call "add_packet_config_cmd" for | |
4750 | QSetWorkingDir. | |
4751 | ||
d092c5a2 SDJ |
4752 | 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com> |
4753 | ||
4754 | * NEWS (New commands): Mention "set/show cwd". | |
4755 | * cli/cli-cmds.c (_initialize_cli_cmds): Mention "set cwd" on | |
4756 | "cd" command's help text. | |
4757 | * common/common-inferior.h (get_inferior_cwd): New prototype. | |
4758 | * infcmd.c (inferior_cwd_scratch): New global variable. | |
4759 | (set_inferior_cwd): New function. | |
4760 | (get_inferior_cwd): Likewise. | |
4761 | (set_cwd_command): Likewise. | |
4762 | (show_cwd_command): Likewise. | |
4763 | (_initialize_infcmd): Add "set/show cwd" commands. | |
4764 | * inferior.h (class inferior) <cwd>: New field. | |
4765 | * nat/fork-inferior.c: Include "gdb_tilde_expand.h". | |
4766 | (fork_inferior): Change inferior's cwd before its execution. | |
4767 | * windows-nat.c (windows_create_inferior): Pass inferior's cwd | |
4768 | to CreateProcess. | |
4769 | ||
7da0a886 SDJ |
4770 | 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com> |
4771 | ||
4772 | * Makefile.in (SFILES): Add gdb_tilde_expand.c. | |
4773 | (HFILES_NO_SRCDIR): Add gdb_tilde_expand.h. | |
4774 | (COMMON_OBS): Add gdb_tilde_expand.o. | |
4775 | * common/gdb_tilde_expand.c: New file. | |
4776 | * common/gdb_tilde_expand.h: Likewise. | |
4777 | ||
db8dd160 MR |
4778 | 2017-10-03 Maciej W. Rozycki <macro@imgtec.com> |
4779 | ||
4780 | * gdbarch.sh (objfile): Remove duplicate declaration. | |
4781 | * gdbarch.h: Regenerate. | |
4782 | ||
f8bfbf22 TT |
4783 | 2017-10-03 Tom Tromey <tom@tromey.com> |
4784 | ||
4785 | * utils.c (internal_vproblem): Use string_vprintf. | |
4786 | ||
5178ed48 TT |
4787 | 2017-10-03 Tom Tromey <tom@tromey.com> |
4788 | ||
4789 | * printcmd.c (info_symbol_command): Use std::string. | |
4790 | ||
8cff8730 TT |
4791 | 2017-10-03 Tom Tromey <tom@tromey.com> |
4792 | ||
4793 | * top.c (gdb_safe_append_history): Use std::string. | |
4794 | ||
895b8f30 TT |
4795 | 2017-10-03 Tom Tromey <tom@tromey.com> |
4796 | ||
4797 | * event-top.c (stdin_event_handler): Update. | |
4798 | * main.c (captured_main_1): Update. | |
4799 | * top.h (make_delete_ui_cleanup): Remove. | |
4800 | (struct ui): Add constructor and destructor. | |
4801 | (new_ui, delete_ui): Remove. | |
4802 | * top.c (make_delete_ui_cleanup): Remove. | |
4803 | (new_ui_command): Use std::unique_ptr. | |
4804 | (delete_ui_cleanup): Remove. | |
4805 | (ui::ui): Rename from new_ui. Update. | |
4806 | (free_ui): Remove. | |
4807 | (ui::~ui): Rename from delete_ui. Update. | |
4808 | ||
0efef640 TT |
4809 | 2017-10-03 Tom Tromey <tom@tromey.com> |
4810 | ||
4811 | * symfile.c (load_progress): Use gdb::byte_vector. | |
4812 | ||
245ad7d3 TT |
4813 | 2017-10-03 Tom Tromey <tom@tromey.com> |
4814 | ||
4815 | * mi/mi-main.c (mi_cmd_trace_frame_collected): Remove unused | |
4816 | declaration. | |
4817 | * printcmd.c (x_command): Remove unused declaration. | |
4818 | * symfile.c (symbol_file_command): Remove unused declaration. | |
4819 | ||
e05550d7 TT |
4820 | 2017-10-03 Tom Tromey <tom@tromey.com> |
4821 | ||
4822 | * utils.c (internal_vproblem): Use std::string. | |
4823 | (defaulted_query): Likewise. | |
4824 | ||
b95de2b7 TT |
4825 | 2017-10-03 Tom Tromey <tom@tromey.com> |
4826 | ||
4827 | * guile/scm-ports.c (ioscm_with_output_to_port_worker): Update. | |
4828 | * top.c (execute_command_to_string): Update. | |
4829 | * utils.c (make_cleanup_restore_page_info): Remove. | |
4830 | (do_restore_page_info_cleanup): Remove. | |
4831 | (set_batch_flag_and_restore_page_info): | |
4832 | New. | |
4833 | (make_cleanup_restore_page_info): Remove. | |
4834 | (set_batch_flag_and_make_cleanup_restore_page_info): Remove. | |
4835 | (~set_batch_flag_and_restore_page_info): New | |
4836 | (make_cleanup_restore_uinteger): Remove. | |
4837 | (make_cleanup_restore_integer): Remove. | |
4838 | (struct restore_integer_closure): Remove. | |
4839 | (restore_integer): Remove. | |
4840 | * utils.h (struct set_batch_flag_and_restore_page_info): New | |
4841 | class. | |
4842 | (set_batch_flag_and_make_cleanup_restore_page_info): Remove. | |
4843 | (make_cleanup_restore_page_info): Remove. | |
4844 | (make_cleanup_restore_uinteger) Remove. | |
4845 | (make_cleanup_restore_integer) Remove. | |
4846 | ||
07036511 TT |
4847 | 2017-10-03 Tom Tromey <tom@tromey.com> |
4848 | ||
4849 | * record-full.h (record_full_gdb_operation_disable_set): Return | |
4850 | scoped_restore_tmpl<int>. | |
4851 | * infrun.c (adjust_pc_after_break): Update. | |
4852 | (handle_signal_stop): Update. | |
4853 | * record-full.c (record_full_gdb_operation_disable_set): Return | |
4854 | scoped_restore_tmpl<int>. | |
4855 | (record_full_wait_1, record_full_insert_breakpoint) | |
4856 | (record_full_remove_breakpoint, record_full_save) | |
4857 | (record_full_goto_insn): Update. | |
4858 | ||
45320ffa TT |
4859 | 2017-10-02 Tom Tromey <tom@tromey.com> |
4860 | ||
4861 | PR rust/22236: | |
4862 | * rust-lang.c (rust_val_print_str): New function. | |
4863 | (val_print_struct): Call it. | |
4864 | (rust_subscript): Preserve name of slice type. | |
4865 | ||
b3e3859b TT |
4866 | 2017-10-02 Tom Tromey <tom@tromey.com> |
4867 | ||
4868 | * rust-lang.c (rust_subscript): Handle slices in | |
4869 | EVAL_AVOID_SIDE_EFFECTS case. | |
4870 | ||
01af5e0d TT |
4871 | 2017-10-02 Tom Tromey <tom@tromey.com> |
4872 | ||
4873 | * rust-lang.c (rust_slice_type_p): Recognize &str as a slice type. | |
4874 | ||
888e3ddb TT |
4875 | 2017-10-02 Tom Tromey <tom@tromey.com> |
4876 | ||
4877 | * rust-lang.h (rust_slice_type): Add "extern". | |
4878 | ||
cc536b21 PA |
4879 | 2017-10-02 Tom Tromey <tom@tromey.com> |
4880 | Pedro Alves <palves@redhat.com> | |
4881 | ||
4882 | * ada-lang.h (ada_exc_info::operator<): Make const. | |
4883 | (ada_exc_info::operator==): Make const. | |
4884 | * ada-lang.c (ada_exc_info::operator<, ada_exc_info::operator==): | |
4885 | Make const. | |
4886 | ||
386c8614 TT |
4887 | 2017-09-29 Tom Tromey <tom@tromey.com> |
4888 | ||
4889 | * target.c (read_whatever_is_readable): Change type of "result". | |
4890 | Update. | |
4891 | (free_memory_read_result_vector): Remove. | |
4892 | (read_memory_robust): Change return type. Update. | |
4893 | * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Update. Use | |
4894 | bin2hex, std::string. | |
4895 | * target.h (memory_read_result_s): Remove typedef. | |
4896 | (free_memory_read_result_vector): Remove. | |
4897 | (read_memory_robust): Return std::vector. | |
4898 | ||
789c4b5e TT |
4899 | 2017-09-29 Tom Tromey <tom@tromey.com> |
4900 | ||
4901 | * mi/mi-main.c (captured_mi_execute_command): Use scope_restore. | |
4902 | ||
ab816a27 TT |
4903 | 2017-09-29 Tom Tromey <tom@tromey.com> |
4904 | ||
4905 | * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Update. | |
4906 | * ada-lang.h (struct ada_exc_info): Remove typedef. Declare | |
4907 | operator< and operator==. | |
4908 | (ada_exceptions_list): Return a std::vector. | |
4909 | * ada-lang.c (ada_exc_info::operator<): Rename from | |
4910 | compare_ada_exception_info. | |
4911 | (ada_exc_info::operator==): New. | |
4912 | (sort_remove_dups_ada_exceptions_list): Change type of | |
4913 | "exceptions". | |
4914 | (ada_add_standard_exceptions, ada_add_exceptions_from_frame) | |
4915 | (ada_add_global_exceptions): Likewise. | |
4916 | (ada_exceptions_list_1): Return a std::vector. | |
4917 | (ada_exceptions_list): Likewise. | |
4918 | ||
52f9abe4 TT |
4919 | 2017-09-29 Tom Tromey <tom@tromey.com> |
4920 | ||
4921 | * mi/mi-main.c (struct print_one_inferior_data) <inferiors>: Now a | |
4922 | 'std::set *'. | |
4923 | (print_one_inferior): Update. | |
4924 | (free_vector_of_ints): Remove. | |
4925 | (list_available_thread_groups): Change "ids" to std::set. | |
4926 | (mi_cmd_list_thread_groups): Update. | |
4927 | (struct collect_cores_data) <core>: Now a std::set. | |
4928 | (collect_cores): Update. | |
4929 | (unique): Remove. | |
4930 | (print_one_inferior): Update. | |
4931 | ||
dcd5ddcc TT |
4932 | 2017-09-29 Tom Tromey <tom@tromey.com> |
4933 | ||
4934 | * mi/mi-main.c (mi_execute_cli_command): Use std::string. | |
4935 | (mi_execute_async_cli_command): Likewise. | |
4936 | (mi_cmd_trace_frame_collected): Use field_fmt. | |
4937 | ||
45d288cc TT |
4938 | 2017-09-29 Tom Tromey <tom@tromey.com> |
4939 | ||
4940 | * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Use | |
4941 | gdb::byte_vector. | |
4942 | ||
6afe2f4a TT |
4943 | 2017-09-29 Tom Tromey <tom@tromey.com> |
4944 | ||
4945 | * mi/mi-parse.c (mi_parse): Remove unused declaration. | |
4946 | ||
9813429a TT |
4947 | 2017-09-29 Tom Tromey <tom@tromey.com> |
4948 | ||
4949 | * mi/mi-cmd-disas.c (mi_cmd_disassemble): Don't copy "oarg". | |
4950 | ||
2d6960b4 TT |
4951 | 2017-09-29 Tom Tromey <tom@tromey.com> |
4952 | ||
4953 | * varobj.h (varobj_gen_name): Return std::string. | |
4954 | * varobj.c (varobj_gen_name): Return std::string. | |
4955 | * mi/mi-cmd-var.c (mi_cmd_var_create): Use std::string. | |
4956 | (mi_cmd_var_delete): Don't copy "name". | |
4957 | ||
784c453a TT |
4958 | 2017-09-29 Tom Tromey <tom@tromey.com> |
4959 | ||
4960 | * mi/mi-cmd-break.c (mi_argv_to_format): Return std::string. | |
4961 | (mi_cmd_break_insert_1): Update. | |
4962 | ||
a9bc57b9 TT |
4963 | 2017-09-29 Tom Tromey <tom@tromey.com> |
4964 | ||
4965 | * target.h (make_scoped_defer_target_commit_resume): Update. | |
4966 | * target.c (make_scoped_defer_target_commit_resume): Rename from | |
4967 | make_cleanup_defer_target_commit_resume. Return a | |
4968 | scoped_restore. | |
4969 | * infrun.c (proceed): Use make_scoped_defer_target_commit_resume. | |
4970 | ||
9754d8c4 TT |
4971 | 2017-09-29 Tom Tromey <tom@tromey.com> |
4972 | ||
4973 | * main.c (captured_main_1): Remove unused declaration. | |
4974 | * spu-multiarch.c (parse_spufs_run): Remove unused declaration. | |
4975 | ||
99ef965c TT |
4976 | 2017-09-29 Tom Tromey <tom@tromey.com> |
4977 | ||
4978 | * symtab.c (search_symbols): Remove unused outer cleanup. | |
4979 | (make_source_files_completion_list): Remove unused declaration. | |
4980 | ||
42518ba7 TT |
4981 | 2017-09-29 Tom Tromey <tom@tromey.com> |
4982 | ||
4983 | * mt-tdep.c (mt_push_dummy_call): Use gdb::byte_vector. | |
4984 | ||
726b2169 TT |
4985 | 2017-09-29 Tom Tromey <tom@tromey.com> |
4986 | ||
4987 | * xstormy16-tdep.c (xstormy16_push_dummy_call): Use | |
4988 | gdb::byte_vector. | |
4989 | ||
55b06432 TT |
4990 | 2017-09-29 Tom Tromey <tom@tromey.com> |
4991 | ||
4992 | * complaints.c (vcomplaint): Use std::string. | |
4993 | ||
8abcee91 TT |
4994 | 2017-09-29 Tom Tromey <tom@tromey.com> |
4995 | ||
4996 | * tracepoint.c (trace_variable_command): Use std::string. | |
4997 | (encode_actions_1): Remove unused declarations. | |
4998 | (create_tsv_from_upload): Use std::string. | |
4999 | ||
6ad94bc7 TT |
5000 | 2017-09-29 Tom Tromey <tom@tromey.com> |
5001 | ||
5002 | * cp-support.c (gdb_demangle): Use std::string. | |
5003 | ||
2003f3d8 TT |
5004 | 2017-09-29 Tom Tromey <tom@tromey.com> |
5005 | ||
5006 | * stack.c (parse_frame_specification): Use std::string | |
5007 | (info_frame_command): Use gdb::unique_xmalloc_ptr. | |
5008 | ||
8f8accb5 TT |
5009 | 2017-09-29 Tom Tromey <tom@tromey.com> |
5010 | ||
5011 | * tilegx-tdep.c (tilegx_push_dummy_call): Use gdb::byte_vector. | |
5012 | ||
200aa7b1 TT |
5013 | 2017-09-29 Tom Tromey <tom@tromey.com> |
5014 | ||
5015 | * utils.c (vfprintf_maybe_filtered): Use std::string. | |
5016 | (vfprintf_unfiltered): Likewise. | |
5017 | ||
606aae8a TT |
5018 | 2017-09-29 Tom Tromey <tom@tromey.com> |
5019 | ||
5020 | * event-top.c (top_level_prompt): Return std::string. | |
5021 | (display_gdb_prompt): Update. | |
5022 | ||
bd413795 TT |
5023 | 2017-09-29 Tom Tromey <tom@tromey.com> |
5024 | ||
5025 | * unittests/common-utils-selftests.c (format): New function. | |
5026 | (string_vprintf_tests): New function. | |
5027 | (_initialize_common_utils_selftests): Register new tests. | |
5028 | * common/common-utils.c (string_vprintf): New function. | |
5029 | * common/common-utils.h (string_vprintf): Declare. | |
5030 | ||
256642e8 PA |
5031 | 2017-09-29 Pedro Alves <palves@redhat.com> |
5032 | ||
5033 | * common/rsp-low.c (unpack_varlen_hex): Constify. | |
5034 | * common/rsp-low.h (unpack_varlen_hex): Constify. | |
5035 | * linux-nat.c (linux_child_static_tracepoint_markers_by_strid): | |
5036 | Constify. | |
5037 | * remote.c (remote_set_permissions, read_ptid) | |
5038 | (remote_current_thread, remote_get_threads_with_qthreadinfo) | |
5039 | (remote_static_tracepoint_marker_at) | |
5040 | (remote_static_tracepoint_markers_by_strid) | |
5041 | (stop_reply_extract_thread, remote_parse_stop_reply): Constify. | |
5042 | * tracepoint.c (parse_trace_status, parse_tracepoint_status) | |
5043 | (parse_tracepoint_definition, parse_tsv_definition) | |
5044 | (parse_static_tracepoint_marker_definition): Constify. | |
5045 | * tracepoint.h (parse_static_tracepoint_marker_definition) | |
5046 | (parse_trace_status, parse_tracepoint_status) | |
5047 | (parse_tracepoint_definition, parse_tsv_definition): Constify. | |
5048 | ||
b6bb3468 PA |
5049 | 2017-09-29 Pedro Alves <palves@redhat.com> |
5050 | ||
5051 | * remote.c (target_buf, target_buf_size): Delete. | |
5052 | (remote_get_noisy_reply): Remove buf_p and sizeof_buf parameters. | |
5053 | Use the connection's packet buffer instead. | |
5054 | All callers adjusted. | |
5055 | (_initialize_remote): Remove references to target_buf and | |
5056 | target_buf_size. | |
5057 | ||
b2f8eb7a PA |
5058 | 2017-09-28 Pedro Alves <palves@redhat.com> |
5059 | ||
5060 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add | |
5061 | unittests/common-utils-selftests.c. | |
5062 | (SUBDIR_UNITTESTS_OBS): Add common-utils-selftests.o. | |
5063 | (COMMON_OBS): Remove utils-selftests.o. | |
5064 | * utils-selftests.c: Move to ... | |
5065 | * unittests/common-utils-selftests.c: ... here and rename self | |
5066 | test to "string_printf". | |
5067 | ||
08302ed2 DE |
5068 | 2017-09-28 Alexander Shaposhnikov <alexander.v.shaposhnikov@gmail.com> (tiny patch) |
5069 | ||
5070 | * dwarf2read.c (open_and_init_dwp_file): Protect against dwp_file | |
5071 | having NULL cus or tus. | |
5072 | ||
96a5a1d3 UW |
5073 | 2017-09-27 Ulrich Weigand <uweigand@de.ibm.com> |
5074 | ||
5075 | * arm-tdep.c: (convert_from_extended): Remove. | |
5076 | (convert_to_extended): Likewise. | |
5077 | (arm_extract_return_value): Use convert_typed_floating. | |
5078 | (arm_store_return_value): Likewise. | |
5079 | ||
5080 | * sh-tdep.h (struct gdbarch_tdep): Add sh_littlebyte_bigword_type. | |
5081 | * sh-tdep.c: Do not include "floatformat.h". | |
5082 | (sh_littlebyte_bigword_type): New function. | |
5083 | (sh_register_convert_to_virtual): Use convert_typed_floating. | |
5084 | (sh_register_convert_to_raw): Likewise. | |
5085 | * sh64-tdep.c: (struct gdbarch_tdep): Add sh_littlebyte_bigword_type. | |
5086 | (sh64_littlebyte_bigword_type): New function. | |
5087 | (sh64_extract_return_value): Use convert_typed_floating. | |
5088 | (sh64_register_convert_to_virtual): Likewise. | |
5089 | (sh64_register_convert_to_raw): Likewise. | |
5090 | ||
0db7851f UW |
5091 | 2017-09-27 Ulrich Weigand <uweigand@de.ibm.com> |
5092 | ||
5093 | * doublest.h (floatformat_from_type): Move to gdbtypes.h. | |
5094 | * doublest.c (floatformat_from_type): Move to gdbtypes.c. | |
5095 | ||
5096 | * gdbtypes.h (union type_specific): Make field floatformat hold | |
5097 | just a single struct floatformat, not an array. | |
5098 | (floatformat_from_type): Move here. | |
5099 | * gdbtypes.c (floatformat_from_type): Move here. Update to | |
5100 | changed TYPE_FLOATFORMAT definition. | |
5101 | (verify_floatformat): Update to changed TYPE_FLOATFORMAT. | |
5102 | (recursive_dump_type): Likewise. | |
5103 | (init_float_type): Install correct floatformat for byte order. | |
5104 | (arch_float_type): Likewise. | |
5105 | ||
77b7c781 UW |
5106 | 2017-09-27 Ulrich Weigand <uweigand@de.ibm.com> |
5107 | ||
5108 | * gdbtypes.c (init_type): Change incoming argument from | |
5109 | length-in-bytes to length-in-bits. Assert length is a | |
5110 | multiple of TARGET_CHAR_BITS. | |
5111 | (arch_type, arch_flags_type): Likewise. | |
5112 | (init_integer_type): Update call to init_type. | |
5113 | (init_character_type): Likewise. | |
5114 | (init_boolean_type): Likewise. | |
5115 | (init_float_type): Likewise. | |
5116 | (init_decfloat_type): Likewise. | |
5117 | (init_complex_type): Likewise. | |
5118 | (init_pointer_type): Likewise. | |
5119 | (objfile_type): Likewise. | |
5120 | (arch_integer_type): Update call to arch_type. | |
5121 | (arch_character_type): Likewise. | |
5122 | (arch_boolean_type): Likewise. | |
5123 | (arch_float_type): Likewise. | |
5124 | (arch_decfloat_type): Likewise. | |
5125 | (arch_complex_type): Likewise. | |
5126 | (arch_pointer_type): Likewise. | |
5127 | (gdbtypes_post_init): Likewise. | |
5128 | ||
5129 | * dwarf2read.c (dwarf2_init_float_type): Update call to init_type. | |
5130 | (read_base_type): Likewise. | |
5131 | * mdebugread.c (basic_type): Likewise. | |
5132 | * stabsread.c (dbx_init_float_type): Likewise. | |
5133 | (rs6000_builtin_type): Likewise. | |
5134 | (read_range_type): Likewise. Also, fix call to init_integer_type | |
5135 | with erroneous length argument. | |
5136 | ||
5137 | * ada-lang.c (ada_language_arch_info): Update call to arch_type. | |
5138 | * d-lang.c (build_d_types): Likewise. | |
5139 | * f-lang.c (build_fortran_types): Likewise. | |
5140 | * go-lang.c (build_go_types): Likewise. | |
5141 | * opencl-lang.c (build_opencl_types): Likewise. | |
5142 | * jit.c (finalize_symtab): Likewise. | |
5143 | * gnu-v3-abi.c (build_gdb_vtable_type): Likewise. | |
5144 | (build_std_type_info_type): Likewise. | |
5145 | * target-descriptions.c (tdesc_gdb_type): Likewise. Also, | |
5146 | update call to arch_flags_type. | |
5147 | ||
5148 | * linux-tdep.c (linux_get_siginfo_type_with_fields): Update call to | |
5149 | arch_type. | |
5150 | * fbsd-tdep.c (fbsd_get_siginfo_type): Likewise. | |
5151 | * windows-tdep.c (windows_get_tlb_type): Likewise. | |
5152 | ||
5153 | * avr-tdep.c (avr_gdbarch_init): Update call to arch_type. | |
5154 | * ft32-tdep.c (ft32_gdbarch_init): Likewise. | |
5155 | * m32c-tdep.c (make_types): Likewise. | |
5156 | * rl78-tdep.c (rl78_gdbarch_init): Likewise. | |
5157 | (rl78_psw_type): Update call to arch_flags_type. | |
5158 | * m68k-tdep.c (m68k_ps_type): Update call to arch_flags_type. | |
5159 | * rx-tdep.c (rx_psw_type): Likewise. | |
5160 | (rx_fpsw_type): Likewise. | |
5161 | * sparc-tdep.c (sparc_psr_type): Likewise. | |
5162 | (sparc_fsr_type): Likewise. | |
5163 | * sparc64-tdep.c (sparc64_pstate_type): Likewise. | |
5164 | (sparc64_ccr_type): Likewise. | |
5165 | (sparc64_fsr_type): Likewise. | |
5166 | (sparc64_fprs_type): Likewise. | |
5167 | ||
f21b4d5c TT |
5168 | 2017-09-27 Tom Tromey <tom@tromey.com> |
5169 | ||
5170 | * findcmd.c (find_command): Constify. | |
5171 | ||
643c2ffa TT |
5172 | 2017-09-27 Tom Tromey <tom@tromey.com> |
5173 | ||
5174 | * ada-tasks.c (task_command_1, task_command): Constify. | |
5175 | ||
510e5e56 TT |
5176 | 2017-09-27 Tom Tromey <tom@tromey.com> |
5177 | ||
5178 | * symtab.c (maintenance_print_symbol_cache) | |
5179 | (maintenance_flush_symbol_cache) | |
5180 | (maintenance_print_symbol_cache_statistics): Constify. | |
5181 | ||
e503b191 TT |
5182 | 2017-09-27 Tom Tromey <tom@tromey.com> |
5183 | ||
5184 | * inferior.c (detach_inferior_command, kill_inferior_command) | |
5185 | (inferior_command): Constify. | |
5186 | ||
4e001312 TT |
5187 | 2017-09-27 Tom Tromey <tom@tromey.com> |
5188 | ||
5189 | * regcache.c (regcache_print, maintenance_print_registers) | |
5190 | (maintenance_print_raw_registers) | |
5191 | (maintenance_print_cooked_registers) | |
5192 | (maintenance_print_register_groups) | |
5193 | (maintenance_print_remote_registers): Constify. | |
5194 | ||
77763700 TT |
5195 | 2017-09-27 Tom Tromey <tom@tromey.com> |
5196 | ||
5197 | * printcmd.c (map_display_numbers, undisplay_command) | |
5198 | (enable_disable_display_command, enable_display_command) | |
5199 | (disable_display_command): Constify. | |
5200 | ||
4495129a TT |
5201 | 2017-09-27 Tom Tromey <tom@tromey.com> |
5202 | ||
5203 | * breakpoint.h (delete_command): Don't declare. | |
5204 | * breakpoint.c (delete_command, enable_once_command) | |
5205 | (enable_count_command, enable_delete_command, breakpoint_1) | |
5206 | (maintenance_info_breakpoints, stopin_command, stopat_command) | |
5207 | (delete_command, delete_trace_command, save_breakpoints) | |
5208 | (save_breakpoints_command, save_tracepoints_command): Constify. | |
5209 | ||
3088cf40 TT |
5210 | 2017-09-27 Tom Tromey <tom@tromey.com> |
5211 | ||
5212 | * macrocmd.c (macro_expand_command, macro_expand_once_command) | |
5213 | (skip_ws, extract_identifier, macro_define_command) | |
5214 | (macro_undef_command, macro_list_command): Constify. | |
5215 | ||
69f476a3 TT |
5216 | 2017-09-27 Tom Tromey <tom@tromey.com> |
5217 | ||
5218 | * infcmd.c (environment_info, set_environment_command) | |
5219 | (unset_environment_command, path_info, info_proc_cmd_1) | |
5220 | (info_proc_cmd_mappings, info_proc_cmd_stat) | |
5221 | (info_proc_cmd_status, info_proc_cmd_cwd, info_proc_cmd_cmdline) | |
5222 | (info_proc_cmd_exe, info_proc_cmd_all): Constify. | |
5223 | ||
c4a3e68e TT |
5224 | 2017-09-27 Tom Tromey <tom@tromey.com> |
5225 | ||
5226 | * i386-tdep.c (i386_mpx_info_bounds, i386_mpx_set_bounds): | |
5227 | Constify. | |
5228 | ||
c9d31bd6 TT |
5229 | 2017-09-27 Tom Tromey <tom@tromey.com> |
5230 | ||
5231 | * symfile-mem.c (add_symbol_file_from_memory_command): Constify. | |
5232 | ||
1f3f85eb TT |
5233 | 2017-09-27 Tom Tromey <tom@tromey.com> |
5234 | ||
5235 | * demangle.c (demangle_command): Constify. | |
5236 | ||
9c504b5d TT |
5237 | 2017-09-27 Tom Tromey <tom@tromey.com> |
5238 | ||
5239 | * progspace.c (maintenance_info_program_spaces_command): | |
5240 | Constify. | |
5241 | ||
6663cf91 TT |
5242 | 2017-09-27 Tom Tromey <tom@tromey.com> |
5243 | ||
5244 | * compile/compile.c (check_raw_argument, compile_file_command) | |
5245 | (compile_code_command, compile_print_command): Constify. | |
5246 | ||
34e5fa26 TT |
5247 | 2017-09-27 Tom Tromey <tom@tromey.com> |
5248 | ||
5249 | * reggroups.c (maintenance_print_reggroups): Constify. | |
5250 | ||
8384c356 TT |
5251 | 2017-09-27 Tom Tromey <tom@tromey.com> |
5252 | ||
5253 | * dwarf2read.c (save_gdb_index_command): Constify. | |
5254 | ||
884beb0c TT |
5255 | 2017-09-27 Tom Tromey <tom@tromey.com> |
5256 | ||
5257 | * stap-probe.c (info_probes_stap_command): Constify. | |
5258 | ||
e0b2930c TT |
5259 | 2017-09-27 Tom Tromey <tom@tromey.com> |
5260 | ||
5261 | * fork-child.c (unset_exec_wrapper_command): Constify. | |
5262 | ||
f938677d TT |
5263 | 2017-09-27 Tom Tromey <tom@tromey.com> |
5264 | ||
5265 | * btrace.c (get_uint, get_context_size, no_chunk) | |
5266 | (maint_btrace_packet_history_cmd) | |
5267 | (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd) | |
5268 | (maint_info_btrace_cmd): Constify. | |
5269 | ||
8949cb87 TT |
5270 | 2017-09-27 Tom Tromey <tom@tromey.com> |
5271 | ||
5272 | * reverse.c (delete_bookmark_command): Constify. | |
5273 | ||
ac88e2de TT |
5274 | 2017-09-27 Tom Tromey <tom@tromey.com> |
5275 | ||
5276 | * remote.c (set_memory_packet_size) | |
5277 | (set_memory_write_packet_size, show_memory_write_packet_size) | |
5278 | (set_memory_read_packet_size, show_memory_read_packet_size) | |
5279 | (compare_sections_command, packet_command, remote_put_command) | |
5280 | (remote_get_command, remote_delete_command): Constify. | |
5281 | ||
bd4c9dfe TT |
5282 | 2017-09-27 Tom Tromey <tom@tromey.com> |
5283 | ||
5284 | * mips-tdep.c (show_mipsfpu_command, set_mipsfpu_single_command) | |
5285 | (set_mipsfpu_double_command, set_mipsfpu_none_command) | |
5286 | (set_mipsfpu_auto_command): Constify. | |
5287 | ||
5e93d4c6 TT |
5288 | 2017-09-27 Tom Tromey <tom@tromey.com> |
5289 | ||
5290 | * cli/cli-cmds.h (cd_command): Constify. | |
5291 | * cli/cli-cmds.c (cd_command): Constify. | |
5292 | ||
fc41a75b TT |
5293 | 2017-09-27 Tom Tromey <tom@tromey.com> |
5294 | ||
5295 | * thread.c (thread_name_command, thread_find_command): Constify. | |
5296 | ||
67810076 TT |
5297 | 2017-09-27 Tom Tromey <tom@tromey.com> |
5298 | ||
5299 | * probe.c (enable_probes_command, disable_probes_command): | |
5300 | Constify. | |
5301 | ||
1d8b34a7 TT |
5302 | 2017-09-27 Tom Tromey <tom@tromey.com> |
5303 | ||
5304 | * symfile.c (symbol_file_command): Constify. | |
5305 | * gdbcore.h (deprecated_file_changed_hook): Constify. | |
5306 | * exec.c (deprecated_file_changed_hook, exec_file_command) | |
5307 | (file_command): Constify. | |
5308 | * defs.h (symbol_file_command): Constify. | |
5309 | ||
442019e1 TT |
5310 | 2017-09-27 Tom Tromey <tom@tromey.com> |
5311 | ||
5312 | * remote-fileio.c (set_system_call_allowed) | |
5313 | (show_system_call_allowed): Constify. | |
5314 | ||
2983f7cb TT |
5315 | 2017-09-27 Tom Tromey <tom@tromey.com> |
5316 | ||
5317 | * tracepoint.c (delete_trace_variable_command) | |
5318 | (tfind_end_command, tfind_start_command, tfind_pc_command) | |
5319 | (tfind_tracepoint_command, tfind_line_command) | |
5320 | (tfind_range_command, tfind_outside_command): Constify. | |
5321 | ||
4fd41b24 TT |
5322 | 2017-09-27 Tom Tromey <tom@tromey.com> |
5323 | ||
5324 | * ax-gdb.c (maint_agent_printf_command, agent_command) | |
5325 | (agent_eval_command): Constify. | |
5326 | ||
f2fc3015 TT |
5327 | 2017-09-27 Tom Tromey <tom@tromey.com> |
5328 | ||
5329 | * tracepoint.c (info_scope_command): Constify. | |
5330 | * python/python.c (gdbpy_decode_line): Constify. | |
5331 | * python/py-breakpoint.c (bppy_init): Constify. | |
5332 | * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Constify. | |
5333 | * location.h: (new_linespec_location) | |
5334 | (string_to_event_location_basic, string_to_event_location): | |
5335 | Constify. | |
5336 | * location.c (new_linespec_location) | |
5337 | (string_to_event_location_basic, string_to_event_location): | |
5338 | Constify. | |
5339 | * linespec.h (decode_line_with_current_source) | |
5340 | (decode_line_with_last_displayed, linespec_lex_to_end): Constify. | |
5341 | * linespec.c (linespec_lex_to_end) | |
5342 | (decode_line_with_current_source) | |
5343 | (decode_line_with_last_displayed): Constify. | |
5344 | * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): | |
5345 | Constify. | |
5346 | * cli/cli-cmds.c (edit_command, list_command): Constify. | |
5347 | * breakpoint.h (until_break_command, watch_command_wrapper) | |
5348 | (awatch_command_wrapper, rwatch_command_wrapper) | |
5349 | (init_ada_exception_breakpoint): Constify. | |
5350 | * breakpoint.c (break_command_1, dprintf_command) | |
5351 | (break_range_command, watch_command_wrapper) | |
5352 | (rwatch_command_wrapper, awatch_command_wrapper) | |
5353 | (until_break_command, init_ada_exception_breakpoint) | |
5354 | (strace_marker_create_sals_from_location, trace_command) | |
5355 | (ftrace_command, strace_command, struct tracepoint): Constify. | |
5356 | * ax-gdb.c (agent_command_1): Constify. | |
5357 | * ada-lang.c (ada_exception_sal): Constify. | |
5358 | ||
8c2f95f4 TT |
5359 | 2017-09-27 Tom Tromey <tom@tromey.com> |
5360 | ||
5361 | * record.c (cmd_record_delete, cmd_record_stop, cmd_record_save) | |
5362 | (cmd_record_goto_begin, cmd_record_goto_end, get_insn_number) | |
5363 | (get_context_size, no_chunk, get_insn_history_modifiers) | |
5364 | (cmd_record_insn_history, get_call_history_modifiers) | |
5365 | (cmd_record_call_history): Constify. | |
5366 | ||
a0d65762 TT |
5367 | 2017-09-27 Tom Tromey <tom@tromey.com> |
5368 | ||
5369 | * source.c (show_substitute_path_command) | |
5370 | (unset_substitute_path_command, set_substitute_path_command): | |
5371 | Constify. | |
5372 | ||
58971144 TT |
5373 | 2017-09-27 Tom Tromey <tom@tromey.com> |
5374 | ||
5375 | * typeprint.c (maintenance_print_type): Constify. | |
5376 | * maint.c (maintenance_dump_me, maintenance_demangle) | |
5377 | (maintenance_time_display, maintenance_info_sections) | |
5378 | (maintenance_print_statistics, maintenance_deprecate) | |
5379 | (maintenance_undeprecate): Constify. | |
5380 | (maintenance_do_deprecate): Constify. Use std::string. | |
5381 | (maintenance_selftest): Constify. | |
5382 | * gdbtypes.h (maintenance_print_type): Constify. | |
5383 | ||
c482f52c TT |
5384 | 2017-09-27 Tom Tromey <tom@tromey.com> |
5385 | ||
5386 | * hppa-tdep.c (unwind_command): Constify. | |
5387 | ||
e100df1a TT |
5388 | 2017-09-27 Tom Tromey <tom@tromey.com> |
5389 | ||
5390 | * target-descriptions.c (unset_tdesc_filename_cmd) | |
5391 | (maint_print_c_tdesc_cmd, maintenance_check_xml_descriptions): | |
5392 | Constify. | |
5393 | ||
31d56ade TT |
5394 | 2017-09-27 Tom Tromey <tom@tromey.com> |
5395 | ||
5396 | * dummy-frame.c (maintenance_print_dummy_frames): Constify. | |
5397 | ||
b961da0b TT |
5398 | 2017-09-27 Tom Tromey <tom@tromey.com> |
5399 | ||
5400 | * tui/tui.c (tui_enable_command, tui_disable_command): Constify. | |
5401 | ||
e2d8ae16 TT |
5402 | 2017-09-27 Tom Tromey <tom@tromey.com> |
5403 | ||
5404 | * tui/tui-regs.c (tui_reg_command): Constify. | |
5405 | ||
863779b0 TT |
5406 | 2017-09-27 Tom Tromey <tom@tromey.com> |
5407 | ||
5408 | * skip.c (skip_file_command, skip_function_command) | |
5409 | (skip_enable_command, skip_disable_command, skip_delete_command): | |
5410 | Constify. | |
5411 | ||
cdb34d4a TT |
5412 | 2017-09-27 Tom Tromey <tom@tromey.com> |
5413 | ||
5414 | * record-btrace.c (cmd_record_btrace_bts_start) | |
5415 | (cmd_record_btrace_pt_start): Constify. | |
5416 | ||
e99c83e7 TT |
5417 | 2017-09-27 Tom Tromey <tom@tromey.com> |
5418 | ||
5419 | * symmisc.c (maintenance_print_symbols) | |
5420 | (maintenance_print_msymbols, maintenance_print_objfiles) | |
5421 | (maintenance_info_symtabs, maintenance_check_symtabs) | |
5422 | (maintenance_expand_symtabs, maintenance_info_line_tables): | |
5423 | Constify. | |
5424 | ||
32faf971 TT |
5425 | 2017-09-27 Tom Tromey <tom@tromey.com> |
5426 | ||
5427 | * top.c (new_ui_command): Constify. | |
5428 | ||
2cf311eb TT |
5429 | 2017-09-27 Tom Tromey <tom@tromey.com> |
5430 | ||
5431 | * symfile.c (add_symbol_file_command) | |
5432 | (remove_symbol_file_command, list_overlays_command) | |
5433 | (map_overlay_command, unmap_overlay_command) | |
5434 | (overlay_auto_command, overlay_manual_command) | |
5435 | (overlay_off_command, overlay_load_command): Constify. | |
5436 | ||
e6738699 TT |
5437 | 2017-09-27 Tom Tromey <tom@tromey.com> |
5438 | ||
5439 | * spu-tdep.c (info_spu_event_command, info_spu_signal_command) | |
5440 | (info_spu_mailbox_command, info_spu_dma_command) | |
5441 | (info_spu_proxydma_command): Constify. | |
5442 | ||
aa360cd5 TT |
5443 | 2017-09-27 Tom Tromey <tom@tromey.com> |
5444 | ||
5445 | * cli/cli-logging.c (set_logging_on, set_logging_off): Constify. | |
5446 | ||
898241a5 TT |
5447 | 2017-09-27 Tom Tromey <tom@tromey.com> |
5448 | ||
5449 | * cli/cli-script.c (user_defined_command): Constify. | |
5450 | ||
2d0ac106 TT |
5451 | 2017-09-27 Tom Tromey <tom@tromey.com> |
5452 | ||
5453 | * cli/cli-dump.c (dump_memory_command, dump_value_command) | |
5454 | (dump_srec_memory, dump_srec_value, dump_ihex_memory) | |
5455 | (dump_ihex_value, dump_verilog_memory, dump_verilog_value) | |
5456 | (dump_tekhex_memory, dump_tekhex_value, dump_binary_memory) | |
5457 | (dump_binary_value, append_binary_memory, append_binary_value): | |
5458 | Constify. | |
5459 | (struct dump_context) <func>: Constify. | |
5460 | (add_dump_command): Update. | |
5461 | ||
dede02ce TT |
5462 | 2017-09-27 Tom Tromey <tom@tromey.com> |
5463 | ||
5464 | * cli/cli-cmds.c (show_version, show_configuration) | |
5465 | (source_command, show_user): Constify. | |
5466 | ||
d3cb6b99 TT |
5467 | 2017-09-27 Tom Tromey <tom@tromey.com> |
5468 | ||
5469 | * target.c (maintenance_print_target_stack): Constify. | |
5470 | ||
1970a12f TT |
5471 | 2017-09-27 Tom Tromey <tom@tromey.com> |
5472 | ||
5473 | * interps.c (interpreter_exec_cmd): Constify. | |
5474 | ||
41243651 TT |
5475 | 2017-09-27 Tom Tromey <tom@tromey.com> |
5476 | ||
5477 | * record-full.c (cmd_record_full_restore): Constify. | |
5478 | ||
4465d9db TT |
5479 | 2017-09-27 Tom Tromey <tom@tromey.com> |
5480 | ||
5481 | * memattr.c (enable_mem_command, disable_mem_command) | |
5482 | (delete_mem_command): Constify. | |
5483 | ||
ad25e423 TT |
5484 | 2017-09-27 Tom Tromey <tom@tromey.com> |
5485 | ||
5486 | * value.c (show_convenience): Constify. | |
5487 | ||
d64097b1 TT |
5488 | 2017-09-27 Tom Tromey <tom@tromey.com> |
5489 | ||
5490 | * gdbcore.h (core_file_command): Update. | |
5491 | * corefile.c (core_file_command): Constify. | |
5492 | ||
4d4589ef TT |
5493 | 2017-09-27 Tom Tromey <tom@tromey.com> |
5494 | ||
5495 | * user-regs.c (maintenance_print_user_registers): Constify. | |
5496 | ||
32a7bf17 TT |
5497 | 2017-09-27 Tom Tromey <tom@tromey.com> |
5498 | ||
5499 | * cp-namespace.c (maintenance_cplus_namespace): Constify. | |
5500 | ||
4a475551 TT |
5501 | 2017-09-27 Tom Tromey <tom@tromey.com> |
5502 | ||
5503 | * cp-support.c (first_component_command): Constify. | |
5504 | ||
990b9f9f TT |
5505 | 2017-09-27 Tom Tromey <tom@tromey.com> |
5506 | ||
5507 | * psymtab.c (maintenance_print_psymbols) | |
5508 | (maintenance_info_psymtabs, maintenance_check_psymtabs): | |
5509 | Constify. | |
5510 | ||
c281872e TT |
5511 | 2017-09-27 Tom Tromey <tom@tromey.com> |
5512 | ||
5513 | * windows-tdep.c (display_tib): Constify. | |
5514 | ||
5b64bf74 TT |
5515 | 2017-09-27 Tom Tromey <tom@tromey.com> |
5516 | ||
5517 | * linux-fork.c (delete_checkpoint_command) | |
5518 | (detach_checkpoint_command): Constify. | |
5519 | ||
4ada038f TT |
5520 | 2017-09-27 Tom Tromey <tom@tromey.com> |
5521 | ||
5522 | * cp-abi.c (set_cp_abi_cmd, show_cp_abi_cmd): Constify. | |
5523 | ||
57f5a81b TT |
5524 | 2017-09-27 Tom Tromey <tom@tromey.com> |
5525 | ||
5526 | * arc-tdep.c (dump_arc_instruction_command): Constify. | |
5527 | ||
b0a8e6c4 TT |
5528 | 2017-09-27 Tom Tromey <tom@tromey.com> |
5529 | ||
5530 | * valprint.c (set_radix, show_radix): Constify. | |
5531 | ||
8d97dc1c TT |
5532 | 2017-09-27 Tom Tromey <tom@tromey.com> |
5533 | ||
5534 | * dtrace-probe.c (info_probes_dtrace_command): Constify. | |
5535 | ||
eb7c454d TT |
5536 | 2017-09-27 Tom Tromey <tom@tromey.com> |
5537 | ||
5538 | * command.h (not_just_help_class_command): Update. | |
5539 | * cli/cli-decode.h (not_just_help_class_command): Update. | |
5540 | * cli/cli-decode.c (not_just_help_class_command): Constify. | |
5541 | ||
e4e33335 TT |
5542 | 2017-09-27 Tom Tromey <tom@tromey.com> |
5543 | ||
5544 | * gdb_bfd.c (maintenance_info_bfds): Constify. | |
5545 | ||
0450cc4c TT |
5546 | 2017-09-27 Tom Tromey <tom@tromey.com> |
5547 | ||
5548 | * cli/cli-decode.c (add_cmd, set_cmd_cfunc): New function | |
5549 | overloads. | |
5550 | (do_add_cmd): Rename from add_cmd. Don't call set_cmd_cfunc. | |
5551 | (do_const_cfunc): New function. | |
5552 | (cmd_cfunc_eq): New overload. | |
5553 | (cli_user_command_p): Check do_const_cfunc. | |
5554 | * cli/cli-decode.h (struct cmd_list_element) <function>: New field | |
5555 | const_cfunc. | |
5556 | * command.h (add_cmd): Add const overload and no-function | |
5557 | overload. | |
5558 | (set_cmd_cfunc): Add const overload. | |
5559 | (cmd_const_cfunc_ftype): Declare. | |
5560 | (cmd_cfunc_eq): Add const overload. | |
5561 | * breakpoint.c, cli-cmds.c, cli-dump.c, guile/scm-cmd.c, | |
5562 | python/py-cmd.c, target.c, tracepoint.c: Use no-function add_cmd | |
5563 | overload. | |
5564 | ||
a9bbfbd8 TT |
5565 | 2017-09-27 Tom Tromey <tom@tromey.com> |
5566 | ||
5567 | * macroexp.c (get_next_token_for_substitution): New function. | |
5568 | (substitute_args): Call it. Check for __VA_OPT__. | |
5569 | ||
5230b05a WT |
5570 | 2017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com> |
5571 | Pedro Alves <palves@redhat.com> | |
5572 | ||
5573 | * dwarf2read.c (dwarf2_cu): Remove field producer_is_icc and add | |
5574 | producer_is_icc_lt_14. | |
5575 | (producer_is_icc_lt_14): New function. | |
5576 | (check_producer): Add code for checking version of ICC. | |
5577 | (producer_is_icc): Move to producer.c. | |
5578 | (read_structure_type): Restrict ICC workaround to ICC<14. | |
5579 | * producer.c: Include selftest.h. | |
5580 | (producer_is_icc, producer_parsing_tests, _initialize_producer): | |
5581 | New functions. | |
5582 | * producer.h (producer_is_icc): New declaration. | |
5583 | ||
b32b108a WT |
5584 | 2017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com> |
5585 | ||
5586 | * Makefile.in (SFILES): Add producer.c. | |
5587 | (COMMON_OBS): Add producer.o | |
5588 | * amd64-tdep.c (producer.h): Add new include. | |
5589 | * dwarf2read.c (producer.h): Add new include. | |
5590 | * producer.c: New file. | |
5591 | * producer.h: New file. | |
5592 | * utils.c (producer_is_gcc, producer_is_gcc_ge_4): Move to | |
5593 | producer.c. | |
5594 | * utils.h (producer_is_gcc, producer_is_gcc_ge_4): Move to | |
5595 | producer.h. | |
5596 | ||
5007d765 MK |
5597 | 2017-09-26 Matthias Klose <doko@ubuntu.com> |
5598 | ||
5599 | * configure.ac: Search ncursesw before ncurses. | |
5600 | Check ncursesw/ncurses.h before ncurses/ncurses.h. | |
5601 | * gdb_curses.h: Include <ncursesw/ncurses.h> | |
5602 | * config.in, configure: Regenerate. | |
5603 | ||
281c4447 RO |
5604 | 2017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
5605 | ||
5606 | PR gdb/22185 | |
5607 | * configure.host <*-*-solaris2.[01], *-*-solaris2.[2-9]*>: Mark as | |
5608 | obsolete. | |
5609 | Use gdb_host sol2 for i[34567]86-*-solaris2*, x86_64-*-solaris2*. | |
5610 | Remove i386sol2 support. | |
5611 | * configure.nat <i386sol2>: Remove. | |
5612 | <sol2-64>: Fold into ... | |
5613 | <sol2>: ... this. | |
5614 | Move common settings to default section. | |
5615 | Add sol-thread.o. | |
5616 | * configure.tgt <i[34567]86-*-solaris2.1[0-9]*, | |
5617 | x86_64-*-solaris2.1[0-9]*>: Rename to ... | |
5618 | <i[34567]86-*-solaris2*, x86_64-*-solaris2*>: ... this. | |
5619 | <i[34567]86-*-solaris*>: Remove. | |
5620 | <sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*>: Remove. | |
5621 | ||
5622 | * configure.ac: Remove wctype in libw check. | |
5623 | (_MSE_INT_H): Don't define on Solaris 7-9. | |
5624 | <solaris*>: Remove libthread_db.so.1 check. | |
5625 | * configure: Regenerate. | |
5626 | * config.in: Regenerate. | |
5627 | ||
5628 | * proc-service.c: Remove PROC_SERVICE_IS_OLD handling. | |
5629 | (gdb_ps_prochandle_t, gdb_ps_read_buf_t, gdb_ps_write_buf_t) | |
5630 | (gdb_ps_size_t): Remove. | |
5631 | Use base types in users. | |
5632 | * sol-thread.c: Likewise, also for gdb_ps_addr_t. | |
5633 | ||
5634 | * NEWS (Changes since GDB 8.0): Document Solaris 2.0-9 removal. | |
5635 | ||
39b06c20 RO |
5636 | 2017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
5637 | ||
5638 | PR build/22206 | |
5639 | * sparc64-tdep.c (adi_tag_fd): Print pid as long. | |
5640 | (adi_is_addr_mapped): Likewise. | |
5641 | (PSR_ICC): Don't redefine. | |
5642 | (PSR_IMPL): Likewise. | |
5643 | ||
6c3e20f1 TT |
5644 | 2017-09-25 Tom Tromey <tom@tromey.com> |
5645 | ||
5646 | * regcache.c (regcache::dump): Use string_printf. | |
5647 | ||
b292235f TT |
5648 | 2017-09-25 Tom Tromey <tom@tromey.com> |
5649 | ||
5650 | * regcache.c (class regcache_invalidator): New. | |
5651 | (struct register_to_invalidate): Remove. | |
5652 | (make_cleanup_regcache_invalidate): Remove. | |
5653 | (regcache::raw_write): Use regcache_invalidator. | |
5654 | ||
9ac86b52 TT |
5655 | 2017-09-25 Tom Tromey <tom@tromey.com> |
5656 | ||
5657 | * spu-tdep.c (spu2ppu_sniffer): Update. | |
5658 | * regcache.h (make_cleanup_regcache_xfree): Don't declare. | |
5659 | * regcache.c (do_regcache_xfree, make_cleanup_regcache_xfree): | |
5660 | Remove. | |
5661 | * ppc-linux-tdep.c (ppu2spu_sniffer): Update. | |
5662 | * mi/mi-main.c (mi_cmd_data_list_changed_registers): Update. | |
5663 | * frame.h (frame_save_as_regcache): Return std::unique_ptr. | |
5664 | * frame.c (frame_save_as_regcache): Return std::unique_ptr. | |
5665 | (frame_pop): Update. | |
5666 | ||
c0e383c6 TT |
5667 | 2017-09-25 Tom Tromey <tom@tromey.com> |
5668 | ||
5669 | * spu-tdep.c (spu2ppu_dealloc_cache): Use delete. | |
5670 | * regcache.h (regcache_xfree): Don't declare. | |
5671 | * regcache.c (regcache_xfree): Remove. | |
5672 | (do_regcache_xfree): Use delete. | |
5673 | * ppc-linux-tdep.c (ppu2spu_dealloc_cache): Use delete. | |
5674 | * linux-fork.c (free_fork): Use delete. | |
5675 | (fork_save_infrun_state): Likewise. | |
5676 | * jit.c (jit_dealloc_cache): Use delete. | |
5677 | * infrun.c (discard_infcall_suspend_state): Use delete. | |
5678 | ||
791199cc TT |
5679 | 2017-09-25 Tom Tromey <tom@tromey.com> |
5680 | ||
5681 | * regcache.h (regcache_xmalloc): Don't declare. | |
5682 | (regcache_raw_set_cached_value): Update comment. | |
5683 | * regcache.c (regcache_xmalloc): Remove. | |
5684 | * ppc-linux-tdep.c (ppu2spu_sniffer): Use new. | |
5685 | * jit.c (jit_frame_sniffer): Use new. | |
5686 | * frame.c (frame_save_as_regcache): Use new. | |
5687 | ||
289e23aa AA |
5688 | 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com> |
5689 | ||
5690 | * NEWS: Advertise support for guarded-storage registers on IBM z. | |
5691 | ||
1b63490c AA |
5692 | 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com> |
5693 | ||
5694 | * s390-linux-nat.c (have_regset_gs): New static variable. | |
5695 | (s390_linux_fetch_inferior_registers): Handle guarded-storage | |
5696 | control block and guarded-storage broadcast control regsets. | |
5697 | (s390_read_description): Detect whether the target has | |
5698 | guarded-storage support, return appropriate tdesc. | |
5699 | * s390-linux-tdep.c (features/s390-gs-linux64.c): New include. | |
5700 | (features/s390x-gs-linux64.c): Likewise. | |
5701 | (struct gdbarch_tdep) <have_gs>: New field. | |
5702 | (s390_regmap_gs, s390_regmap_gsbc, s390_gs_regset) | |
5703 | (s390_gsbc_regset): New variables. | |
5704 | (s390_iterate_over_regset_sections): Iterate over s390_gs_regset | |
5705 | and s390_gsbc_regset, if applicable. | |
5706 | (s390_core_read_description): Check whether core file was from a | |
5707 | target with guarded-storage support; include appropriate regsets. | |
5708 | (s390_gdbarch_init): Add registers for guarded-storage support. | |
5709 | (_initialize_s390_tdep): Initialize new target descriptions that | |
5710 | include registers for guarded-storage support. | |
5711 | * s390-linux-tdep.h (HWCAP_S390_GS, S390_GSD_REGNUM) | |
5712 | (S390_GSSM_REGNUM, S390_GSEPLA_REGNUM) | |
5713 | (S390_BC_GSD_REGNUM, S390_BC_GSSM_REGNUM): New defines. | |
5714 | (S390_NUM_REGS): Adjust macro definition. | |
5715 | (s390_gs_regset, s390_gsbc_regset, tdesc_s390_gs_linux64) | |
5716 | (tdesc_s390x_gs_linux64): New declarations. | |
5717 | ||
96235dc1 AA |
5718 | 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com> |
5719 | ||
5720 | * features/s390-gs-linux64.xml: New file. | |
5721 | * features/s390-gs.xml: New file. | |
5722 | * features/s390-gsbc.xml: New file. | |
5723 | * features/s390x-gs-linux64.xml: New file. | |
5724 | * features/Makefile (WHICH): Add s390-gs-linux64 and | |
5725 | s390x-gs-linux64. | |
5726 | (s390-gs-linux64-expedite, s390x-gs-linux64-expedite): New macros. | |
5727 | (XMLTOC): Add s390-gs-linux64.xml and s390x-linux64.xml. | |
5728 | * features/s390-gs-linux64.c: New generated file. | |
5729 | * features/s390x-gs-linux64.c: New file. | |
5730 | * regformats/s390-gs-linux64.dat: New file. | |
5731 | * regformats/s390x-gs-linux64.dat: New file. | |
5732 | ||
b4a7c699 TT |
5733 | 2017-09-23 Tom Tromey <tom@tromey.com> |
5734 | ||
5735 | * defs.h (make_cleanup_override_quit_handler): Don't declare. | |
5736 | ||
c2f97536 TT |
5737 | 2017-09-22 Tom Tromey <tom@tromey.com> |
5738 | ||
5739 | * utils.c (class scoped_input_handler) <m_quit_handler>: Change | |
5740 | type to scoped_restore_tmpl. | |
5741 | <scoped_input_handler>: Initialize m_quit_handler directly. | |
5742 | ||
43573013 SDJ |
5743 | 2017-09-22 Sergio Durigan Junior <sergiodj@redhat.com> |
5744 | ||
5745 | * cli/cli-cmds.c (pwd_command): Use "getcwd (NULL, 0)". | |
5746 | (cd_command): Likewise. Free "current_directory" before | |
5747 | assigning to it. | |
5748 | * main.c (captured_main_1): Use "getcwd (NULL, 0)". | |
5749 | * mi/mi-cmd-env.c (mi_cmd_env_pwd): Likewise. | |
5750 | * top.c (gdb_dirbuf): Remove global declaration. | |
5751 | * top.h (gdb_dirbuf): Likewise. | |
5752 | ||
6ec2e0f5 SDJ |
5753 | 2017-09-22 Sergio Durigan Junior <sergiodj@redhat.com> |
5754 | ||
5755 | * gnulib/aclocal.m4: Regenerate. | |
5756 | * gnulib/config.in: Regenerate. | |
5757 | * gnulib/configure: Regenerate. | |
5758 | * gnulib/import/Makefile.am: Regenerate. | |
5759 | * gnulib/import/Makefile.in: Regenerate. | |
5760 | * gnulib/import/assure.h: New file. | |
5761 | * gnulib/import/at-func.c: Likewise | |
5762 | * gnulib/import/chdir-long.c: New file. | |
5763 | * gnulib/import/chdir-long.h: New file. | |
5764 | * gnulib/import/cloexec.c: New file. | |
5765 | * gnulib/import/cloexec.h: New file. | |
5766 | * gnulib/import/close.c: New file. | |
5767 | * gnulib/import/closedir.c: New file. | |
5768 | * gnulib/import/dirent-private.h: New file. | |
5769 | * gnulib/import/dup-safer.c: New file. | |
5770 | * gnulib/import/dup.c: New file. | |
5771 | * gnulib/import/dup2.c: New file. | |
5772 | * gnulib/import/error.c: New file. | |
5773 | * gnulib/import/error.h: New file. | |
5774 | * gnulib/import/exitfail.c: New file. | |
5775 | * gnulib/import/exitfail.h: New file. | |
5776 | * gnulib/import/fchdir.c: New file. | |
5777 | * gnulib/import/fcntl.c: New file. | |
5778 | * gnulib/import/fcntl.in.h: New file. | |
5779 | * gnulib/import/fd-hook.c: New file. | |
5780 | * gnulib/import/fd-hook.h: New file. | |
5781 | * gnulib/import/fd-safer.c: New file. | |
5782 | * gnulib/import/fdopendir.c: New file. | |
5783 | * gnulib/import/filename.h: New file. | |
5784 | * gnulib/import/filenamecat-lgpl.c: New file. | |
5785 | * gnulib/import/filenamecat.h: New file. | |
5786 | * gnulib/import/fstat.c: New file. | |
5787 | * gnulib/import/fstatat.c: New file. | |
5788 | * gnulib/import/getcwd-lgpl.c: New file. | |
5789 | * gnulib/import/getcwd.c: New file. | |
5790 | * gnulib/import/getdtablesize.c: New file. | |
5791 | * gnulib/import/getlogin_r.c: New file. | |
5792 | * gnulib/import/getprogname.c: New file. | |
5793 | * gnulib/import/getprogname.h: New file. | |
5794 | * gnulib/import/gettext.h: New file. | |
5795 | * gnulib/import/glob-libc.h: New file. | |
5796 | * gnulib/import/glob.c: New file. | |
5797 | * gnulib/import/glob.in.h: New file. | |
5798 | * gnulib/import/intprops.h: New file. | |
5799 | * gnulib/import/m4/chdir-long.m4: New file. | |
5800 | * gnulib/import/m4/close.m4: New file. | |
5801 | * gnulib/import/m4/closedir.m4: New file. | |
5802 | * gnulib/import/m4/d-ino.m4: New file. | |
5803 | * gnulib/import/m4/d-type.m4: New file. | |
5804 | * gnulib/import/m4/dup.m4: New file. | |
5805 | * gnulib/import/m4/dup2.m4: New file. | |
5806 | * gnulib/import/m4/error.m4: New file. | |
5807 | * gnulib/import/m4/fchdir.m4: New file. | |
5808 | * gnulib/import/m4/fcntl.m4: New file. | |
5809 | * gnulib/import/m4/fcntl_h.m4: New file. | |
5810 | * gnulib/import/m4/fdopendir.m4: New file. | |
5811 | * gnulib/import/m4/filenamecat.m4: New file. | |
5812 | * gnulib/import/m4/fstat.m4: New file. | |
5813 | * gnulib/import/m4/fstatat.m4: New file. | |
5814 | * gnulib/import/m4/getcwd-abort-bug.m4: New file. | |
5815 | * gnulib/import/m4/getcwd-path-max.m4: New file. | |
5816 | * gnulib/import/m4/getcwd.m4: New file. | |
5817 | * gnulib/import/m4/getdtablesize.m4: New file. | |
5818 | * gnulib/import/m4/getlogin_r.m4: New file. | |
5819 | * gnulib/import/m4/getprogname.m4: New file. | |
5820 | * gnulib/import/m4/glob.m4: New file. | |
5821 | * gnulib/import/m4/gnulib-cache.m4: Regenerate. | |
5822 | * gnulib/import/m4/gnulib-comp.m4: Regenerate. | |
5823 | * gnulib/import/m4/mempcpy.m4: New file. | |
5824 | * gnulib/import/m4/memrchr.m4: New file. | |
5825 | * gnulib/import/m4/mode_t.m4: New file. | |
5826 | * gnulib/import/m4/msvc-inval.m4: New file. | |
5827 | * gnulib/import/m4/msvc-nothrow.m4: New file. | |
5828 | * gnulib/import/m4/open.m4: New file. | |
5829 | * gnulib/import/m4/openat.m4: New file. | |
5830 | * gnulib/import/m4/opendir.m4: New file. | |
5831 | * gnulib/import/m4/readdir.m4: New file. | |
5832 | * gnulib/import/m4/realloc.m4: New file. | |
5833 | * gnulib/import/m4/rewinddir.m4: New file. | |
5834 | * gnulib/import/m4/save-cwd.m4: New file. | |
5835 | * gnulib/import/m4/strdup.m4: New file. | |
5836 | * gnulib/import/m4/strerror.m4: New file. | |
5837 | * gnulib/import/m4/unistd-safer.m4: New file. | |
5838 | * gnulib/import/mempcpy.c: New file. | |
5839 | * gnulib/import/memrchr.c: New file. | |
5840 | * gnulib/import/msvc-inval.c: New file. | |
5841 | * gnulib/import/msvc-inval.h: New file. | |
5842 | * gnulib/import/msvc-nothrow.c: New file. | |
5843 | * gnulib/import/msvc-nothrow.h: New file. | |
5844 | * gnulib/import/open.c: New file. | |
5845 | * gnulib/import/openat-die.c: New file. | |
5846 | * gnulib/import/openat-priv.h: New file. | |
5847 | * gnulib/import/openat-proc.c: New file. | |
5848 | * gnulib/import/openat.c: New file. | |
5849 | * gnulib/import/openat.h: New file. | |
5850 | * gnulib/import/opendir.c: New file. | |
5851 | * gnulib/import/pipe-safer.c: New file. | |
5852 | * gnulib/import/readdir.c: New file. | |
5853 | * gnulib/import/realloc.c: New file. | |
5854 | * gnulib/import/rewinddir.c: New file. | |
5855 | * gnulib/import/save-cwd.c: New file. | |
5856 | * gnulib/import/save-cwd.h: New file. | |
5857 | * gnulib/import/strdup.c: New file. | |
5858 | * gnulib/import/strerror-override.c: New file. | |
5859 | * gnulib/import/strerror-override.h: New file. | |
5860 | * gnulib/import/strerror.c: New file. | |
5861 | * gnulib/import/unistd--.h: New file. | |
5862 | * gnulib/import/unistd-safer.h: New file. | |
5863 | * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add | |
5864 | "getcwd" and "glob". | |
5865 | * ser-tcp.c: Undefine "close" before redefining it. | |
5866 | ||
432ae719 SM |
5867 | 2017-09-21 Simon Marchi <simon.marchi@ericsson.com> |
5868 | ||
5869 | * guile/scm-value.c (gdbscm_value_address): Initialize address, | |
5870 | get rid of res_val. | |
5871 | ||
4fa7574e RO |
5872 | 2017-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
5873 | ||
5874 | * configure.nat <i386sol2,i386>: Add fork-inferior.o to NATDEPFILES. | |
5875 | <sol2,sparc>: Likewise. | |
5876 | <sol2-64,i386>: Likewise. | |
5877 | ||
5878 | * warning.m4 (AM_GDB_WARNINGS): Disable -Wunknown-pragmas, | |
5879 | -Wdeprecated-declarations on *-*-solaris*. | |
5880 | * configure: Regenerate. | |
5881 | ||
5882 | * procfs.c: Include "nat/inferior.h". | |
5883 | (procfs_info_proc): Fix typo. | |
5884 | ||
f6327dcb KB |
5885 | 2017-09-21 Kevin Buettner <kevinb@redhat.com> |
5886 | ||
5887 | * remote.c (vector): Include. | |
5888 | (struct private_thread_info): Add field, thread_handle. | |
5889 | (free_private_thread_info): Deallocate storage associated with | |
5890 | thread handle. | |
5891 | (get_private_info_thread): Initialize `thread_handle' field. | |
5892 | (struct thread_item): Add field, thread_handle. | |
5893 | (clear_threads_listing_context): Deallocate storage associated | |
5894 | with thread handle. | |
5895 | (start_thread): Add support for "handle" attribute. | |
5896 | (thread_attributes): Add "handle". | |
5897 | (remote_get_threads_with_qthreadinfo): Initialize thread_handle | |
5898 | field. | |
5899 | (remote_update_thread_list): Update thread_handle. | |
5900 | (remote_thread_handle_to_thread_info): New function. | |
5901 | (init_remote_ops): Initialize to_thread_handle_to_thread_info. | |
5902 | ||
fbbe5337 KB |
5903 | 2017-09-21 Kevin Buettner <kevinb@redhat.com> |
5904 | ||
5905 | * python/py-inferior.c (gdbpy_thread_from_thread_handle): New | |
5906 | function. | |
5907 | (inferior_object_methods): Add gdbpy_thread_from_thread_handle. | |
5908 | * python/python-internal.h (thread_object_type): Declare. | |
5909 | ||
e04ee09e KB |
5910 | 2017-09-21 Kevin Buettner <kevinb@redhat.com> |
5911 | ||
5912 | * target.h (struct target_ops): Add to_thread_handle_to_thread_info. | |
5913 | (target_thread_handle_to_thread_info): Declare. | |
5914 | * target.c (target_thread_handle_to_thread_info): New function. | |
5915 | * target-delegates.c: Regenerate. | |
5916 | * gdbthread.h (find_thread_by_handle): Declare. | |
5917 | * thread.c (find_thread_by_handle): New function. | |
5918 | * linux-thread-db.c (thread_db_thread_handle_to_thread_info): New | |
5919 | function. | |
5920 | (init_thread_db_ops): Register thread_db_thread_handle_to_thread_info. | |
5921 | ||
1e5b66ed SM |
5922 | 2017-09-21 Simon Marchi <simon.marchi@ericsson.com> |
5923 | ||
5924 | * nat/linux-waitpid.c (linux_debug): Add ATTRIBUTE_PRINTF. | |
5925 | ||
ebe48ba0 SM |
5926 | 2017-09-21 Simon Marchi <simon.marchi@ericsson.com> |
5927 | ||
5928 | * microblaze-tdep.c (microblaze_debug): Add ATTRIBUTE_PRINTF. | |
5929 | ||
0a0bf5dc YQ |
5930 | 2017-09-21 Yao Qi <yao.qi@linaro.org> |
5931 | ||
5932 | * configure.tgt (aarch64*-*-freebsd*): Add fbsd-tdep.o solib-svr4.o | |
5933 | to gdb_target_obs. | |
5934 | ||
d1b0a7bf TT |
5935 | 2017-09-20 Tom Tromey <tom@tromey.com> |
5936 | ||
5937 | * breakpoint.c (struct counted_command_line): Remove. | |
5938 | (breakpoint_commands): Update. | |
5939 | (alloc_counted_command_line, incref_counted_command_line) | |
5940 | (decref_counted_command_line, do_cleanup_counted_command_line) | |
5941 | (make_cleanup_decref_counted_command_line): Remove. | |
5942 | (breakpoint_set_commands, commands_command_1, ~bpstats, bpstats) | |
5943 | (bpstat_clear_actions, bpstat_do_actions_1, watchpoint_check) | |
5944 | (bpstat_stop_status, print_one_breakpoint_location, ~breakpoint) | |
5945 | (save_breakpoints): Update. | |
5946 | * breakpoint.h (counted_command_line): Now a typedef to | |
5947 | shared_ptr. | |
5948 | (struct breakpoint) <commands>: Now a counted_command_line. | |
5949 | (struct bpstats) <command>: Likewise. | |
5950 | ||
48649e1b TT |
5951 | 2017-09-20 Tom Tromey <tom@tromey.com> |
5952 | ||
5953 | * breakpoint.c (struct commands_info, do_map_commands_command): | |
5954 | Remove. | |
5955 | (commands_command_1): Update. | |
5956 | (iterate_over_related_breakpoints): Take a function_view. | |
5957 | (do_delete_breakpoint, do_map_delete_breakpoint): Remove. | |
5958 | (delete_command): Update. | |
5959 | (map_breakpoint_numbers): Take a function_view. | |
5960 | (do_disable_breakpoint, do_map_delete_breakpoint): Remove. | |
5961 | (disable_command): Update. | |
5962 | (do_enable_breakpoint, do_map_enable_breakpoint): Remove. | |
5963 | (enable_command): Update. | |
5964 | (struct disp_data, do_enable_breakpoint_disp) | |
5965 | (do_map_enable_once_breakpoint, do_map_enable_count_breakpoint) | |
5966 | (do_map_enable_delete_breakpoint): Remove. | |
5967 | (enable_once_command, enable_count_command, enable_delete_command) | |
5968 | (delete_trace_variable_command): Update. | |
5969 | ||
04afa70c TT |
5970 | 2017-09-20 Tom Tromey <tom@tromey.com> |
5971 | ||
5972 | * breakpoint.c (~bpstats): Rename from bpstat_free. Update. | |
5973 | (bpstat_clear): Use delete. | |
5974 | (bpstats): New constructors. | |
5975 | (bpstat_copy, bpstat_stop_status): Use new. | |
5976 | (dprintf_after_condition_true): Update. | |
5977 | * breakpoint.h (bpstats::bpstats): Add constructors. | |
5978 | (bpstats::~bpstats): Add destructor. | |
5979 | ||
c83833f4 PA |
5980 | 2017-09-20 Pedro Alves <palves@redhat.com> |
5981 | ||
5982 | * eval.c (make_params): Delete, refactored as ... | |
5983 | (class fake_method): ... this new type's ctor. | |
5984 | (fake_method::~fake_method): New. | |
5985 | (evaluate_subexp_standard): Use 'fake_method'. | |
5986 | ||
223ffa71 TT |
5987 | 2017-09-20 Tom Tromey <tom@tromey.com> |
5988 | ||
5989 | * windows-nat.c (get_windows_debug_event, windows_wait) | |
5990 | (do_initial_windows_stuff, windows_attach): Update. | |
5991 | * utils.c (vwarning, internal_vproblem): Update. | |
5992 | (ui_unregister_input_event_handler_cleanup) | |
5993 | (prepare_to_handle_input): Remove. | |
5994 | (class scoped_input_handler): New. | |
5995 | (defaulted_query, prompt_for_continue): Update. | |
5996 | * tui/tui-hooks.c (tui_refresh_frame_and_register_information): | |
5997 | Update. | |
5998 | * top.c (undo_terminal_modifications_before_exit): Update. | |
5999 | * target/target.h (target_terminal_init, target_terminal_inferior) | |
6000 | (target_terminal_ours): Don't declare. | |
6001 | (class target_terminal): New. | |
6002 | * target.h (target_terminal_is_inferior, target_terminal_is_ours) | |
6003 | (target_terminal_ours_for_output) | |
6004 | (make_cleanup_restore_target_terminal): Don't declare. | |
6005 | (target_terminal_info): Remove. | |
6006 | * target.c (enum terminal_state, terminal_state): Remove. | |
6007 | (target_terminal::terminal_state): Define. | |
6008 | (target_terminal::init): Rename from target_terminal_init. | |
6009 | (target_terminal::inferior): Rename from | |
6010 | target_terminal_inferior. | |
6011 | (target_terminal::ours): Rename from target_terminal_ours. | |
6012 | (target_terminal::ours_for_output): Rename from | |
6013 | target_terminal_ours_for_output. | |
6014 | (target_terminal::info): New method. | |
6015 | (cleanup_restore_target_terminal) | |
6016 | (make_cleanup_restore_target_terminal): Remove. | |
6017 | * solib.c (handle_solib_event): Update. | |
6018 | * remote.c (remote_serial_quit_handler): Update. | |
6019 | (remote_terminal_inferior, remote_wait_as): Update. | |
6020 | * record-full.c (record_full_wait_1): Update. | |
6021 | * nto-procfs.c (procfs_create_inferior): Update. | |
6022 | * nat/fork-inferior.c (startup_inferior): Update. | |
6023 | * mi/mi-interp.c (mi_new_thread, mi_thread_exit) | |
6024 | (mi_record_changed, mi_inferior_added, mi_inferior_appeared) | |
6025 | (mi_inferior_exit, mi_inferior_removed, mi_traceframe_changed) | |
6026 | (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified) | |
6027 | (mi_breakpoint_created, mi_breakpoint_deleted) | |
6028 | (mi_breakpoint_modified, mi_on_resume, mi_solib_loaded) | |
6029 | (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed) | |
6030 | (mi_user_selected_context_changed, report_initial_inferior): | |
6031 | Update. | |
6032 | * linux-nat.c (linux_nat_attach, linux_nat_terminal_ours) | |
6033 | (linux_nat_terminal_inferior): Update. | |
6034 | * infrun.c (follow_fork_inferior) | |
6035 | (handle_vfork_child_exec_or_exit, do_target_resume) | |
6036 | (check_curr_ui_sync_execution_done, handle_inferior_event_1) | |
6037 | (handle_signal_stop, maybe_remove_breakpoints, normal_stop): | |
6038 | Update. | |
6039 | * inflow.c (child_terminal_init, info_terminal_command): Update. | |
6040 | * infcmd.c (post_create_inferior, continue_1, prepare_one_step) | |
6041 | (attach_command): Update. | |
6042 | * infcall.c (call_thread_fsm_should_stop): Update. | |
6043 | * gnu-nat.c (gnu_attach): Update. | |
6044 | * extension.c (struct active_ext_lang_state) | |
6045 | (restore_active_ext_lang): Update. | |
6046 | * exceptions.c (print_flush): Update. | |
6047 | * event-top.c (async_enable_stdin, default_quit_handler): Update. | |
6048 | (struct quit_handler_cleanup_data, restore_quit_handler) | |
6049 | (restore_quit_handler_dtor, make_cleanup_override_quit_handler): | |
6050 | Remove. | |
6051 | * cp-support.c (gdb_demangle): Update. | |
6052 | * breakpoint.c (update_inserted_breakpoint_locations) | |
6053 | (insert_breakpoint_locations, handle_jit_event) | |
6054 | (disable_breakpoints_in_unloaded_shlib): Update. | |
6055 | * annotate.c (annotate_breakpoints_invalid) | |
6056 | (annotate_frames_invalid): Update. | |
6057 | ||
013af3fc TT |
6058 | 2017-09-20 Tom Tromey <tom@tromey.com> |
6059 | ||
6060 | * main.c (catch_command_errors): Rename from | |
6061 | catch_command_errors_const. | |
6062 | (captured_main_1): Update. | |
6063 | ||
06871ae8 PA |
6064 | 2017-09-20 Pedro Alves <palves@redhat.com> |
6065 | ||
6066 | * cli/cli-cmds.c (list_command): Use print_sal_location. | |
6067 | (print_sal_location): New function. | |
6068 | (ambiguous_line_spec): Use print_sal_location. | |
6069 | * linespec.c (symbol_to_sal): Record the symbol in the sal. | |
6070 | * symtab.c (find_function_start_sal): Likewise. | |
6071 | * symtab.h (symtab_and_line::symbol): New field. | |
6072 | ||
e5f25bc5 PA |
6073 | 2017-09-20 Pedro Alves <palves@redhat.com> |
6074 | ||
6075 | * linespec.c (minsym_found): Handle non-text minsyms. | |
6076 | (symbol_to_sal): Record a sal.pc for non-block, non-label symbols. | |
6077 | ||
1b7fa39e WT |
6078 | 2017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com> |
6079 | ||
6080 | * features/Makefile (i386-avx-mpx-avx512-pku.dat): Add missing | |
6081 | backslash. | |
6082 | ||
37dd0825 WT |
6083 | 2017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com> |
6084 | ||
6085 | * gdb.arch/i386-avx512.c (move_zmm_data_to_reg): Use | |
6086 | vmovups instead vmovaps. | |
6087 | (move_zmm_data_to_memory): Use vmovups instead vmovaps. | |
6088 | ||
4e5a4f58 JB |
6089 | 2017-09-19 John Baldwin <jhb@FreeBSD.org> |
6090 | ||
6091 | * NEWS (Changes since GDB 8.0): Add starti. | |
6092 | * infcmd.c (enum run_break): New. | |
6093 | (run_command_1): Queue pending event for RUN_STOP_AT_FIRST_INSN | |
6094 | case. | |
6095 | (run_command): Use enum run_how. | |
6096 | (start_command): Likewise. | |
6097 | (starti_command): New function. | |
6098 | (RUN_ARGS_HELP): New macro. | |
6099 | (_initialize_infcmd): Use RUN_ARGS_HELP for run and start | |
6100 | commands. Add starti command. | |
6101 | ||
aa70c9f1 YQ |
6102 | 2017-09-19 Yao Qi <yao.qi@linaro.org> |
6103 | ||
6104 | * Makefile.in (monitor.o): Remove the rule. | |
6105 | ||
d6541620 YQ |
6106 | 2017-09-19 Yao Qi <yao.qi@linaro.org> |
6107 | ||
6108 | * annotate.h (struct annotate_arg_emitter): Use | |
6109 | DISABLE_COPY_AND_ASSIGN. | |
6110 | * common/refcounted-object.h (refcounted_object): Likewise. | |
6111 | * completer.h (struct completion_result): Likewise. | |
6112 | * dwarf2read.c (struct dwarf2_per_objfile): Likewise. | |
6113 | * filename-seen-cache.h (filename_seen_cache): Likewise. | |
6114 | * gdbcore.h (thread_section_name): Likewise. | |
6115 | * gdb_regex.h (compiled_regex): Likewise. | |
6116 | * gdbthread.h (scoped_restore_current_thread): Likewise. | |
6117 | * inferior.h (scoped_restore_current_inferior): Likewise. | |
6118 | * jit.c (jit_reader): Likewise. | |
6119 | * linespec.h (struct linespec_result): Likewise. | |
6120 | * mi/mi-parse.h (struct mi_parse): Likewise. | |
6121 | * nat/fork-inferior.c (execv_argv): Likewise. | |
6122 | * progspace.h (scoped_restore_current_program_space): Likewise. | |
6123 | * python/python-internal.h (class gdbpy_enter): Likewise. | |
6124 | * regcache.h (regcache): Likewise. | |
6125 | * target-descriptions.c (struct tdesc_reg): Likewise. | |
6126 | (struct tdesc_type): Likewise. | |
6127 | (struct tdesc_feature): Likewise. | |
6128 | * ui-out.h (ui_out_emit_type): Likewise. | |
6129 | ||
0615127c SM |
6130 | 2017-09-18 Simon Marchi <simon.marchi@ericsson.com> |
6131 | ||
6132 | * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Remove | |
6133 | label abort_expression. | |
6134 | ||
5e187554 SM |
6135 | 2017-09-16 Simon Marchi <simon.marchi@ericsson.com> |
6136 | ||
6137 | * common/buffer.c (buffer_xml_printf): Adjust. | |
6138 | * common/xml-utils.c (xml_escape_text): Change return type to | |
6139 | std::string, update code accordingly. | |
6140 | * common/xml-utils.h (xml_escape_text): Change return type to | |
6141 | std::string. | |
6142 | * rs6000-aix-tdep.c (rs6000_aix_shared_library_to_xml): Adjust. | |
6143 | * windows-tdep.c (windows_xfer_shared_library): Adjust. | |
6144 | * unittests/xml-utils-selftests.c (test_xml_escape_text): | |
6145 | Adjust. | |
6146 | ||
c3d7b541 SM |
6147 | 2017-09-16 Simon Marchi <simon.marchi@ericsson.com> |
6148 | ||
6149 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new source file. | |
6150 | (SUBDIR_UNITTESTS_OBS): Add new object file. | |
6151 | * unittests/xml-utils-selftests.c: New file. | |
6152 | ||
1526853e SM |
6153 | 2017-09-16 Simon Marchi <simon.marchi@ericsson.com> |
6154 | ||
6155 | * common/selftest.h (selftest): New struct/interface. | |
6156 | (register_test): Add name parameter, add new overload. | |
6157 | (run_tests): Add filter parameter. | |
6158 | (for_each_selftest_ftype): New typedef. | |
6159 | (for_each_selftest): New declaration. | |
6160 | * common/selftest.c (tests): Change type to | |
6161 | map<string, unique_ptr<selftest>>. | |
6162 | (simple_selftest): New struct. | |
6163 | (register_test): New function. | |
6164 | (register_test): Add name parameter and use it. | |
6165 | (run_tests): Add filter parameter and use it. Add prints. | |
6166 | Adjust to vector -> map change. | |
6167 | * aarch64-tdep.c (_initialize_aarch64_tdep): Add names when | |
6168 | registering selftests. | |
6169 | * arm-tdep.c (_initialize_arm_tdep): Likewise. | |
6170 | * disasm-selftests.c (_initialize_disasm_selftests): Likewise. | |
6171 | * dwarf2-frame.c (_initialize_dwarf2_frame): Likewise. | |
6172 | * dwarf2loc.c (_initialize_dwarf2loc): Likewise. | |
6173 | * findvar.c (_initialize_findvar): Likewise. | |
6174 | * gdbarch-selftests.c (_initialize_gdbarch_selftests): Likewise. | |
6175 | * maint.c (maintenance_selftest): Update call to run_tests. | |
6176 | (maintenance_info_selftests): New function. | |
6177 | (_initialize_maint_cmds): Register "maintenance info selftests" | |
6178 | command. Update "maintenance selftest" doc. | |
6179 | * regcache.c (_initialize_regcache): Add names when registering | |
6180 | selftests. | |
6181 | * rust-exp.y (_initialize_rust_exp): Likewise. | |
6182 | * selftest-arch.c (gdbarch_selftest): New struct. | |
6183 | (gdbarch_tests): Remove. | |
6184 | (register_test_foreach_arch): Add name parameter. Call | |
6185 | register_test. | |
6186 | (tests_with_arch): Remove, move most content to | |
6187 | gdbarch_selftest::operator(). | |
6188 | (_initialize_selftests_foreach_arch): Remove. | |
6189 | * selftest-arch.h (register_test_foreach_arch): Add name | |
6190 | parameter. | |
6191 | (run_tests_with_arch): New declaration. | |
6192 | * utils-selftests.c (_initialize_utils_selftests): Add names | |
6193 | when registering selftests. | |
6194 | * utils.c (_initialize_utils): Likewise. | |
6195 | * unittests/array-view-selftests.c | |
6196 | (_initialize_array_view_selftests): Likewise. | |
6197 | * unittests/environ-selftests.c (_initialize_environ_selftests): | |
6198 | Likewise. | |
6199 | * unittests/function-view-selftests.c | |
6200 | (_initialize_function_view_selftests): Likewise. | |
6201 | * unittests/offset-type-selftests.c | |
6202 | (_initialize_offset_type_selftests): Likewise. | |
6203 | * unittests/optional-selftests.c | |
6204 | (_initialize_optional_selftests): Likewise. | |
6205 | * unittests/scoped_restore-selftests.c | |
6206 | (_initialize_scoped_restore_selftests): Likewise. | |
6207 | * NEWS: Document "maintenance selftest" and "maint info | |
6208 | selftests". | |
6209 | ||
5846367a SM |
6210 | 2017-09-16 Simon Marchi <simon.marchi@ericsson.com> |
6211 | ||
6212 | * mi/mi-main.c (mi_load_progress): Restore current_uiout using a | |
6213 | scoped_restore. | |
6214 | ||
bd77e8ff SM |
6215 | 2017-09-16 Simon Marchi <simon.marchi@ericsson.com> |
6216 | ||
6217 | * mi/mi-main.c (mi_load_progress): Make uiout variable | |
6218 | a unique_ptr. | |
6219 | ||
26a67918 PA |
6220 | 2017-09-15 Pedro Alves <palves@redhat.com> |
6221 | ||
6222 | * compile/compile-c-types.c (convert_enum, convert_int) | |
6223 | (convert_float): Adjust to refer to int_type_v0 and float_type_v0. | |
6224 | ||
3f8a7804 SM |
6225 | 2017-09-15 Simon Marchi <simon.marchi@ericsson.com> |
6226 | ||
6227 | * dwarf2read.c (copy_string): Remove. | |
6228 | (parse_macro_definition): Replace copy_string with savestring. | |
6229 | ||
8d200706 YQ |
6230 | 2017-09-15 Yao Qi <yao.qi@linaro.org> |
6231 | ||
6232 | * configure.tgt (i[34567]86-*-darwin*): Append amd64.o to | |
6233 | gdb_target_obs. | |
6234 | (i[34567]86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*): | |
6235 | Likewise. | |
6236 | (i[34567]86-*-linux*): Likewise. | |
6237 | ||
d185219d SM |
6238 | 2017-09-14 Simon Marchi <simon.marchi@ericsson.com> |
6239 | ||
6240 | * dwarf2expr.h (dwarf_stack_value): Add constructor. | |
6241 | (dwarf_expr_context) <~dwarf_expr_context>: Define as default. | |
6242 | <stack>: Change type to std::vector. | |
6243 | <stack_len, stack_allocated>: Remove. | |
6244 | <grow_stack>: Remove. | |
6245 | * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust. | |
6246 | (dwarf_expr_context::~dwarf_expr_context): Remove. | |
6247 | (dwarf_expr_context::grow_stack): Remove. | |
6248 | (dwarf_expr_context::push): Adjust. | |
6249 | (dwarf_expr_context::pop): Adjust. | |
6250 | (dwarf_expr_context::fetch): Adjust. | |
6251 | (dwarf_expr_context::fetch_in_stack_memory): Adjust. | |
6252 | (dwarf_expr_context::stack_empty_p): Adjust. | |
6253 | (dwarf_expr_context::execute_stack_op): Adjust. | |
6254 | ||
eccd80d6 SM |
6255 | 2017-09-14 Simon Marchi <simon.marchi@ericsson.com> |
6256 | ||
6257 | * dwarf2expr.h (dwarf_expr_context) <stack_empty_p>: Change | |
6258 | return type to bool. | |
6259 | * dwarf2expr.c (dwarf_expr_context::stack_empty_p): Likewise. | |
6260 | ||
69009882 SM |
6261 | 2017-09-14 Simon Marchi <simon.marchi@ericsson.com> |
6262 | ||
6263 | * dwarf2expr.h (dwarf_expr_piece) <v.mem.in_stack_memory>: | |
6264 | Change type to bool. | |
6265 | (dwarf_stack_value) <in_stack_memory>: Likewise. | |
6266 | (dwarf_expr_context) <push_address>: Change parameter type to | |
6267 | bool. | |
6268 | <fetch_in_stack_memory>: Change return type to bool. | |
6269 | <push>: Change parameter type to bool. | |
6270 | * dwarf2expr.c (dwarf_expr_context::push): Change parameter type | |
6271 | to bool. | |
6272 | (dwarf_expr_context::push_address): Likewise. | |
6273 | (dwarf_expr_context::fetch_in_stack_memory): Change return type | |
6274 | to bool. | |
6275 | (dwarf_expr_context::execute_stack_op): Adjust. | |
6276 | * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Adjust. | |
6277 | ||
1e467161 SM |
6278 | 2017-09-14 Simon Marchi <simon.marchi@ericsson.com> |
6279 | ||
6280 | * dwarf2expr.h (struct dwarf_expr_piece): Move up. | |
6281 | (struct dwarf_expr_context) <n_pieces>: Remove. | |
6282 | <pieces>: Change type to std::vector. | |
6283 | * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust. | |
6284 | (dwarf_expr_context::~dwarf_expr_context): Don't manually free | |
6285 | pieces. | |
6286 | (dwarf_expr_context::add_piece): Adjust. | |
6287 | * dwarf2loc.c (struct piece_closure): Initialize fields. | |
6288 | <n_pieces>: Remove. | |
6289 | <pieces>: Change type to std::vector. | |
6290 | (allocate_piece_closure): Adjust, change parameter to | |
6291 | std::vector rvalue and std::move it to piece_closure. | |
6292 | (rw_pieced_value): Adjust. | |
6293 | (check_pieced_synthetic_pointer): Adjust. | |
6294 | (indirect_synthetic_pointer): Adjust. | |
6295 | (coerce_pieced_ref): Adjust. | |
6296 | (free_pieced_value_closure): Adjust. Use delete to free | |
6297 | piece_closure. | |
6298 | (dwarf2_evaluate_loc_desc_full): Adjust. std::move ctx.pieces | |
6299 | to allocate_piece_closure. | |
6300 | (dwarf2_loc_desc_get_symbol_read_needs): Adjust. | |
6301 | ||
0782db84 SM |
6302 | 2017-09-12 Simon Marchi <simon.marchi@ericsson.com> |
6303 | ||
6304 | * probe.h (probe_ops_cp): Remove typedef. | |
6305 | (DEF_VEC_P (probe_ops_cp)): Remove. | |
6306 | (all_probe_ops): Change type to std::vector. | |
6307 | * probe.c (info_probes_for_ops): Adjust to vector change. | |
6308 | (probe_linespec_to_ops): Likewise. | |
6309 | (all_probe_ops): Change type to std::vector. | |
6310 | (_initialize_probe): Adjust to vector change. | |
6311 | * dtrace-probe.c (_initialize_dtrace_probe): Likewise. | |
6312 | * elfread.c (elf_get_probes): Likewise. | |
6313 | * stap-probe.c (_initialize_stap_probe): Likewise. | |
6314 | ||
1eac6bea SM |
6315 | 2017-09-12 Simon Marchi <simon.marchi@ericsson.com> |
6316 | ||
6317 | * probe.h (struct bound_probe): Define constructors. | |
6318 | * probe.c (bound_probe_s): Remove typedef. | |
6319 | (DEF_VEC_O (bound_probe_s)): Remove VEC. | |
6320 | (collect_probes): Change return type to std::vector, remove | |
6321 | cleanup. | |
6322 | (compare_probes): Return bool, change parameter type. Change | |
6323 | semantic to "less than". | |
6324 | (gen_ui_out_table_header_info): Change parameter to std::vector | |
6325 | and update. | |
6326 | (exists_probe_with_pops): Likewise. | |
6327 | (info_probes_for_ops): Update to std::vector change. | |
6328 | (enable_probes_command): Likewise. | |
6329 | (disable_probes_command): Likewise. | |
6330 | ||
aaa63a31 SM |
6331 | 2017-09-12 Simon Marchi <simon.marchi@ericsson.com> |
6332 | ||
6333 | * probe.h (struct probe_ops) <get_probes>: Change parameter from | |
6334 | vec to std::vector. | |
6335 | * probe.c (parse_probes_in_pspace): Update. | |
6336 | (find_probes_in_objfile): Update. | |
6337 | (find_probe_by_pc): Update. | |
6338 | (collect_probes): Update. | |
6339 | (probe_any_get_probes): Update. | |
6340 | * symfile.h (struct sym_probe_fns) <sym_get_probes> Change | |
6341 | return type to reference to std::vector. | |
6342 | * dtrace-probe.c (dtrace_process_dof_probe): Change parameter to | |
6343 | std::vector and update. | |
6344 | (dtrace_process_dof): Likewise. | |
6345 | (dtrace_get_probes): Likewise. | |
6346 | * elfread.c (elf_get_probes): Change return type to std::vector, | |
6347 | store an std::vector in bfd_data. | |
6348 | (probe_key_free): Update to std::vector. | |
6349 | * stap-probe.c (handle_stap_probe): Change parameter to | |
6350 | std::vector and update. | |
6351 | (stap_get_probes): Likewise. | |
6352 | * symfile-debug.c (debug_sym_get_probes): Change return type to | |
6353 | std::vector and update. | |
6354 | ||
cb85b21b TT |
6355 | 2017-09-11 Tom Tromey <tom@tromey.com> |
6356 | ||
6357 | * breakpoint.c (program_breakpoint_here_p): Update. | |
6358 | * target.c (make_scoped_restore_show_memory_breakpoints): Rename | |
6359 | from make_show_memory_breakpoints_cleanup. Return a | |
6360 | scoped_restore_tmpl<int>. | |
6361 | (restore_show_memory_breakpoints): Remove. | |
6362 | * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Update. | |
6363 | * mem-break.c (memory_validate_breakpoint): Update. | |
6364 | * ia64-tdep.c (ia64_memory_insert_breakpoint): Update. | |
6365 | (ia64_memory_remove_breakpoint): Update. | |
6366 | (ia64_breakpoint_from_pc): Update. | |
6367 | * target.h (make_scoped_restore_show_memory_breakpoints): Rename | |
6368 | from make_show_memory_breakpoints_cleanup. | |
6369 | ||
8fbc99ef TT |
6370 | 2017-09-11 Tom Tromey <tom@tromey.com> |
6371 | ||
6372 | * d-namespace.c (d_lookup_symbol): Use std::string. | |
6373 | (find_symbol_in_baseclass): Likewise. | |
6374 | ||
50feb4bd TT |
6375 | 2017-09-11 Tom Tromey <tom@tromey.com> |
6376 | ||
6377 | * ctf.c (ctf_start): Use std::string. | |
6378 | ||
c6dc63a1 TT |
6379 | 2017-09-11 Tom Tromey <tom@tromey.com> |
6380 | ||
6381 | * ada-lang.c (is_known_support_routine): Update. | |
6382 | (ada_unhandled_exception_name_addr_from_raise): Update. | |
6383 | * guile/scm-frame.c (gdbscm_frame_name): Update. | |
6384 | * python/py-frame.c (frapy_name): Update. | |
6385 | (frapy_function): Update. | |
6386 | * stack.h (find_frame_funname): Update. | |
6387 | * stack.c (find_frame_funname): Return unique_xmalloc_ptr. | |
6388 | (print_frame): Update. | |
6389 | ||
d6b9b80f TT |
6390 | 2017-09-11 Tom Tromey <tom@tromey.com> |
6391 | ||
6392 | * findcmd.c (put_bits): Take a gdb::byte_vector. | |
6393 | (parse_find_args): Return gdb::byte_vector. "args" now const. | |
6394 | Remove "pattern_bufp" and "pattern_lenp" parameters. Remove | |
6395 | cleanups. | |
6396 | (find_command): Update. | |
6397 | ||
a9921622 TT |
6398 | 2017-09-11 Tom Tromey <tom@tromey.com> |
6399 | ||
6400 | * cli/cli-script.c (class scoped_restore_hook_in): New. | |
6401 | (clear_hook_in_cleanup): Remove. | |
6402 | (execute_cmd_pre_hook, execute_cmd_post_hook): Use | |
6403 | scoped_restore_hook_in. | |
6404 | ||
be0d7abb TT |
6405 | 2017-09-11 Tom Tromey <tom@tromey.com> |
6406 | ||
6407 | * cli/cli-script.c (restore_interp): Remove. | |
6408 | (read_command_lines): Use scoped_restore_interp. | |
6409 | * interps.c (scoped_restore_interp::set_temp): Rename from | |
6410 | interp_set_temp. | |
6411 | * interps.h (class scoped_restore_interp): New. | |
6412 | (interp_set_temp): Remove. | |
6413 | ||
00f675ff TT |
6414 | 2017-09-11 Tom Tromey <tom@tromey.com> |
6415 | ||
6416 | * mi/mi-cmd-catch.c (mi_cmd_catch_assert) | |
6417 | (mi_cmd_catch_exception, mi_catch_load_unload): Update. | |
6418 | * mi/mi-cmd-break.c (setup_breakpoint_reporting): Return a | |
6419 | scoped_restore. | |
6420 | (mi_cmd_break_insert_1): Update. | |
6421 | * mi/mi-cmd-break.h (setup_breakpoint_reporting): Return a | |
6422 | scoped_restore. | |
6423 | ||
cb791d59 TT |
6424 | 2017-09-11 Tom Tromey <tom@tromey.com> |
6425 | ||
6426 | * demangle.c (demangle_command): Update. | |
6427 | * breakpoint.c (disable_command): Update. | |
6428 | (enable_command): Update. | |
6429 | (find_location_by_number): Make "number" const. Use | |
6430 | get_number_trailer. | |
6431 | * cli/cli-utils.c (extract_arg): Return std::string. | |
6432 | * probe.c (parse_probe_linespec): Update. Change types. | |
6433 | (collect_probes): Take string arguments. | |
6434 | (parse_probe_linespec): Likewise. | |
6435 | (info_probes_for_ops): Update. | |
6436 | (enable_probes_command): Update. | |
6437 | (disable_probes_command): Update. | |
6438 | * break-catch-sig.c (catch_signal_split_args): Update. | |
6439 | * mi/mi-parse.c (mi_parse): Update. | |
6440 | ||
2039bd9f TT |
6441 | 2017-09-11 Tom Tromey <tom@tromey.com> |
6442 | ||
6443 | * language.h (language_enum): Make argument const. | |
6444 | * language.c (language_enum): Make argument const. | |
6445 | ||
f1735a53 TT |
6446 | 2017-09-11 Tom Tromey <tom@tromey.com> |
6447 | ||
6448 | * common/common-utils.h (skip_to_space): Remove macro, redeclare | |
6449 | as function. | |
6450 | (skip_to_space): Rename from skip_to_space_const. | |
6451 | * common/common-utils.c (skip_to_space): New function. | |
6452 | (skip_to_space): Rename from skip_to_space_const. | |
6453 | * cli/cli-utils.h (get_number): Rename from get_number_const. | |
6454 | (extract_arg): Rename from extract_arg_const. | |
6455 | * cli/cli-utils.c (get_number): Rename from get_number_const. | |
6456 | (extract_arg): Rename from extract_arg_const. | |
6457 | (number_or_range_parser::get_number): Use ::get_number. | |
6458 | * aarch64-linux-tdep.c, ada-lang.c, arm-linux-tdep.c, ax-gdb.c, | |
6459 | break-catch-throw.c, breakpoint.c, cli/cli-cmds.c, cli/cli-dump.c, | |
6460 | cli/cli-script.c, cli/cli-setshow.c, compile/compile.c, | |
6461 | completer.c, demangle.c, disasm.c, findcmd.c, linespec.c, | |
6462 | linux-tdep.c, linux-thread-db.c, location.c, mi/mi-parse.c, | |
6463 | minsyms.c, nat/linux-procfs.c, printcmd.c, probe.c, | |
6464 | python/py-breakpoint.c, record.c, rust-exp.y, serial.c, stack.c, | |
6465 | stap-probe.c, tid-parse.c, tracepoint.c: Update all callers. | |
6466 | ||
7d221d74 TT |
6467 | 2017-09-11 Tom Tromey <tom@tromey.com> |
6468 | ||
6469 | * python/python.c (do_start_initialization): Use | |
6470 | py-event-types.def to initialize types. | |
6471 | Define all object type structures. | |
6472 | * python/python-internal.h: Don't declare event initialization | |
6473 | functions. | |
6474 | * python/py-threadevent.c (thread_event_object_type): Don't | |
6475 | define. | |
6476 | * python/py-stopevent.c (stop_event_object_type): Don't define. | |
6477 | * python/py-signalevent.c (signal_event_object_type): Don't | |
6478 | declare or define. | |
6479 | * python/py-newobjfileevent.c (new_objfile_event_object_type) | |
6480 | (clear_objfiles_event_object_type): Don't declare or define. | |
6481 | * python/py-infevents.c (inferior_call_pre_event_object_type) | |
6482 | (inferior_call_post_event_object_type) | |
6483 | (register_changed_event_object_type) | |
6484 | (memory_changed_event_object_type): Don't declare or define. | |
6485 | * python/py-inferior.c (new_thread_event_object_type) | |
6486 | (new_inferior_event_object_type) | |
6487 | (inferior_deleted_event_object_type): Don't declare or define. | |
6488 | * python/py-exitedevent.c (exited_event_object_type): Don't | |
6489 | declare or define. | |
6490 | * python/py-evts.c (gdbpy_initialize_py_events): Use | |
6491 | py-all-events.def. | |
6492 | * python/py-events.h (thread_event_object_type): Don't declare. | |
6493 | (events_object): Use py-all-events.def. | |
6494 | * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove. Use | |
6495 | py-event-types.def. | |
6496 | * python/py-event-types.def: New file. | |
6497 | * python/py-continueevent.c (create_continue_event_object): Don't | |
6498 | declare or define. | |
6499 | * python/py-bpevent.c (breakpoint_event_object_type): Don't | |
6500 | declare or define. | |
6501 | * python/py-all-events.def: New file. | |
6502 | ||
35c61a1d TT |
6503 | 2017-09-11 Tom Tromey <tom@tromey.com> |
6504 | ||
6505 | * python/py-threadevent.c (create_thread_event_object): Return | |
6506 | gdbpy_ref. | |
6507 | * python/py-stopevent.h (create_stop_event_object) | |
6508 | (create_breakpoint_event_object, create_signal_event_object): | |
6509 | Update. | |
6510 | * python/py-stopevent.c (create_stop_event_object): Return | |
6511 | gdbpy_ref. | |
6512 | (emit_stop_event): Update. | |
6513 | * python/py-signalevent.c (create_signal_event_object): Return | |
6514 | gdbpy_ref. | |
6515 | * python/py-infevents.c (create_inferior_call_event_object): | |
6516 | Update. | |
6517 | * python/py-event.h (create_event_object) | |
6518 | (create_thread_event_object): Update. | |
6519 | * python/py-event.c (create_event_object): Return gdbpy_ref. | |
6520 | * python/py-continueevent.c: Return gdbpy_ref. | |
6521 | * python/py-bpevent.c (create_breakpoint_event_object): Return | |
6522 | gdbpy_ref. | |
6523 | ||
7c96f8c1 TT |
6524 | 2017-09-11 Tom Tromey <tom@tromey.com> |
6525 | ||
6526 | PR python/15622: | |
6527 | * NEWS: Add entry. | |
6528 | * python/python.c (do_start_initialization): Initialize new event | |
6529 | types. | |
6530 | * python/python-internal.h (gdbpy_initialize_new_inferior_event) | |
6531 | (gdbpy_initialize_inferior_deleted_event) | |
6532 | (gdbpy_initialize_new_thread_event): Declare. | |
6533 | * python/py-threadevent.c (create_thread_event_object): Add option | |
6534 | "thread" parameter. | |
6535 | * python/py-inferior.c (new_thread_event_object_type) | |
6536 | (new_inferior_event_object_type) | |
6537 | (inferior_deleted_event_object_type): Declare. | |
6538 | (python_new_inferior, python_inferior_deleted): New functions. | |
6539 | (add_thread_object): Emit new_thread event. | |
6540 | (gdbpy_initialize_inferior): Attach new functions to corresponding | |
6541 | observers. | |
6542 | (new_thread, new_inferior, inferior_deleted): Define new event | |
6543 | types. | |
6544 | * python/py-evts.c (gdbpy_initialize_py_events): Add new | |
6545 | registries. | |
6546 | * python/py-events.h (events_object) <new_inferior, | |
6547 | inferior_deleted, new_thread>: New fields. | |
6548 | * python/py-event.h (create_thread_event_breakpoint): Add optional | |
6549 | "thread" parameter. | |
6550 | ||
72542b8e AB |
6551 | 2017-09-10 Andrew Burgess <andrew.burgess@embecosm.com> |
6552 | ||
6553 | * utils.c (abort_with_message): Don't compare gdb_stderr to NULL, | |
6554 | check current_ui instead. | |
6555 | (internal_vproblem): Likewise. | |
6556 | ||
0d64823e SM |
6557 | 2017-09-09 Simon Marchi <simon.marchi@ericsson.com> |
6558 | ||
6559 | * thread.c (print_thread_info_1): Remove unnecessary calls to | |
6560 | uiout->is_mi_like_p. | |
6561 | ||
eb1e02fd TT |
6562 | 2017-09-09 Tom Tromey <tom@tromey.com> |
6563 | ||
6564 | * namespace.h (add_using_directive): Update. | |
6565 | * namespace.c (add_using_directive): Change type of excludes to | |
6566 | std::vector. | |
6567 | * dwarf2read.c (read_import_statement): Use std::vector. | |
6568 | (read_namespace): Update. | |
6569 | * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update. | |
6570 | ||
0fc21fd8 TT |
6571 | 2017-09-09 Tom Tromey <tom@tromey.com> |
6572 | ||
6573 | * linespec.c (create_sals_line_offset): Use gdb::def_vector. | |
6574 | ||
49663d05 TT |
6575 | 2017-09-09 Tom Tromey <tom@tromey.com> |
6576 | ||
6577 | * p-valprint.c (pascal_object_print_value): Use gdb::byte_vector. | |
6578 | ||
0b868b60 TT |
6579 | 2017-09-09 Tom Tromey <tom@tromey.com> |
6580 | ||
6581 | * stack.c (func_command): Use gdb::def_vector. | |
6582 | ||
c0470d48 TT |
6583 | 2017-09-09 Tom Tromey <tom@tromey.com> |
6584 | ||
6585 | * mi/mi-cmd-var.c (mi_cmd_var_list_children): Use gdb::optional, | |
6586 | ui_out_emit_list, ui_out_emit_tuple. | |
6587 | (mi_cmd_var_update): Likewise. | |
6588 | ||
ca5909c7 TT |
6589 | 2017-09-09 Tom Tromey <tom@tromey.com> |
6590 | ||
6591 | * mi/mi-interp.c (mi_user_selected_context_changed): Use | |
6592 | ui_out_redirect_pop. | |
6593 | * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use | |
6594 | ui_out_redirect_pop. | |
6595 | * utils.c (do_ui_out_redirect_pop) | |
6596 | (make_cleanup_ui_out_redirect_pop): Remove. | |
6597 | * top.c (execute_command_to_string): Use ui_out_redirect_pop. | |
6598 | * utils.h (make_cleanup_ui_out_redirect_pop): Remove. | |
6599 | * ui-out.h (ui_out_redirect_pop): New class. | |
6600 | ||
e6a2252a TT |
6601 | 2017-09-09 Tom Tromey <tom@tromey.com> |
6602 | ||
6603 | * mi/mi-main.c (output_cores): Use ui_out_emit_list. | |
6604 | (list_available_thread_groups, mi_cmd_list_thread_groups) | |
6605 | (mi_cmd_data_list_changed_registers, mi_cmd_data_read_memory) | |
6606 | (mi_cmd_data_read_memory_bytes, mi_cmd_trace_frame_collected): | |
6607 | Likewise. | |
6608 | ||
393702cd TT |
6609 | 2017-09-09 Tom Tromey <tom@tromey.com> |
6610 | ||
6611 | * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use | |
6612 | ui_out_emit_tuple. | |
6613 | ||
76f9c9cf TT |
6614 | 2017-09-09 Tom Tromey <tom@tromey.com> |
6615 | ||
6616 | * target.c (flash_erase_command): Use ui_out_emit_tuple. | |
6617 | * stack.c (print_frame): Use ui_out_emit_tuple. | |
6618 | * spu-tdep.c (info_spu_event_command): Use ui_out_emit_tuple. | |
6619 | (info_spu_mailbox_command, info_spu_dma_command) | |
6620 | (info_spu_proxydma_command): Likewise. | |
6621 | * mi/mi-main.c (mi_cmd_trace_frame_collected): Use | |
6622 | ui_out_emit_tuple, gdb::byte_vector, bin2hex. | |
6623 | * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use | |
6624 | ui_out_emit_tuple. | |
6625 | * breakpoint.c (print_it_watchpoint): Use ui_out_emit_tuple. | |
6626 | ||
dc9fe180 TT |
6627 | 2017-09-09 Tom Tromey <tom@tromey.com> |
6628 | ||
6629 | * ui-out.h (make_cleanup_ui_out_table_begin_end): Remove. | |
6630 | (class ui_out_emit_table): Update comment. | |
6631 | * ui-out.c (do_cleanup_table_end) | |
6632 | (make_cleanup_ui_out_table_begin_end): Remove. | |
6633 | * spu-tdep.c (info_spu_mailbox_list): Use ui_out_emit_table. | |
6634 | (info_spu_dma_cmdlist): Likewise. | |
6635 | * probe.c (info_probes_for_ops): Use ui_out_emit_table. | |
6636 | * darwin-nat-info.c (darwin_debug_regions_recurse): Use | |
6637 | ui_out_emit_table. | |
6638 | ||
f8cc3da6 TT |
6639 | 2017-09-09 Tom Tromey <tom@tromey.com> |
6640 | ||
6641 | * thread.c (print_thread_info_1): Use ui_out_emit_table, | |
6642 | ui_out_emit_list, gdb::optional. | |
6643 | ||
481695ed JB |
6644 | 2017-09-09 John Baldwin <jhb@FreeBSD.org> |
6645 | ||
6646 | * aarch64-linux-nat.c: Remove _initialize_aarch64_linux_nat | |
6647 | prototype. | |
6648 | * aarch64-linux-tdep.c: Remove _initialize_aarch64_linux_tdep | |
6649 | prototype. | |
6650 | * aarch64-newlib-tdep.c: Remove _initialize_aarch64_newlib_tdep | |
6651 | prototype. | |
6652 | * aarch64-tdep.c: Remove _initialize_aarch64_tdep prototype. | |
6653 | * ada-exp.y: Remove _initialize_ada_exp prototype. | |
6654 | * ada-lang.c: Remove _initialize_ada_language prototype. | |
6655 | * ada-tasks.c: Remove _initialize_tasks prototype. | |
6656 | * addrmap.c: Remove _initialize_addrmap prototype. | |
6657 | * agent.c: Remove _initialize_agent prototype. | |
6658 | * aix-thread.c: Remove _initialize_aix_thread prototype. | |
6659 | * alpha-bsd-nat.c: Remove _initialize_alphabsd_nat prototype. | |
6660 | * alpha-linux-nat.c: Remove _initialize_alpha_linux_nat prototype. | |
6661 | * alpha-linux-tdep.c: Remove _initialize_alpha_linux_tdep | |
6662 | prototype. | |
6663 | * alpha-nbsd-tdep.c: Remove _initialize_alphanbsd_tdep prototype. | |
6664 | * alpha-obsd-tdep.c: Remove _initialize_alphaobsd_tdep prototype. | |
6665 | * alpha-tdep.c: Remove _initialize_alpha_tdep prototype. | |
6666 | * amd64-darwin-tdep.c: Remove _initialize_amd64_darwin_tdep | |
6667 | prototype. | |
6668 | * amd64-dicos-tdep.c: Remove _initialize_amd64_dicos_tdep | |
6669 | prototype. | |
6670 | * amd64-fbsd-nat.c: Remove _initialize_amd64fbsd_nat prototype. | |
6671 | * amd64-fbsd-tdep.c: Remove _initialize_amd64fbsd_tdep prototype. | |
6672 | * amd64-linux-nat.c: Remove _initialize_amd64_linux_nat prototype. | |
6673 | * amd64-linux-tdep.c: Remove _initialize_amd64_linux_tdep | |
6674 | prototype. | |
6675 | * amd64-nbsd-nat.c: Remove _initialize_amd64nbsd_nat prototype. | |
6676 | * amd64-nbsd-tdep.c: Remove _initialize_amd64nbsd_tdep prototype. | |
6677 | * amd64-obsd-nat.c: Remove _initialize_amd64obsd_nat prototype. | |
6678 | * amd64-obsd-tdep.c: Remove _initialize_amd64obsd_tdep prototype. | |
6679 | * amd64-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype. | |
6680 | * amd64-tdep.c: Remove _initialize_amd64_tdep prototype. | |
6681 | * amd64-windows-nat.c: Remove _initialize_amd64_windows_nat | |
6682 | prototype. | |
6683 | * amd64-windows-tdep.c: Remove _initialize_amd64_windows_tdep | |
6684 | prototype. | |
6685 | * annotate.c: Remove _initialize_annotate prototype. | |
6686 | * arc-newlib-tdep.c: Remove _initialize_arc_newlib_tdep prototype. | |
6687 | * arc-tdep.c: Remove _initialize_arc_tdep prototype. | |
6688 | * arch-utils.c: Remove _initialize_gdbarch_utils prototype. | |
6689 | * arm-linux-nat.c: Remove _initialize_arm_linux_nat prototype. | |
6690 | * arm-linux-tdep.c: Remove _initialize_arm_linux_tdep prototype. | |
6691 | * arm-nbsd-tdep.c: Remove _initialize_arm_netbsd_tdep prototype. | |
6692 | * arm-obsd-tdep.c: Remove _initialize_armobsd_tdep prototype. | |
6693 | * arm-symbian-tdep.c: Remove _initialize_arm_symbian_tdep | |
6694 | prototype. | |
6695 | * arm-tdep.c: Remove _initialize_arm_tdep prototype. | |
6696 | * arm-wince-tdep.c: Remove _initialize_arm_wince_tdep prototype. | |
6697 | * auto-load.c: Remove _initialize_auto_load prototype. | |
6698 | * auxv.c: Remove _initialize_auxv prototype. | |
6699 | * avr-tdep.c: Remove _initialize_avr_tdep prototype. | |
6700 | * ax-gdb.c: Remove _initialize_ax_gdb prototype. | |
6701 | * bfin-linux-tdep.c: Remove _initialize_bfin_linux_tdep prototype. | |
6702 | * bfin-tdep.c: Remove _initialize_bfin_tdep prototype. | |
6703 | * break-catch-sig.c: Remove _initialize_break_catch_sig prototype. | |
6704 | * break-catch-syscall.c: Remove _initialize_break_catch_syscall | |
6705 | prototype. | |
6706 | * break-catch-throw.c: Remove _initialize_break_catch_throw | |
6707 | prototype. | |
6708 | * breakpoint.c: Remove _initialize_breakpoint prototype. | |
6709 | * bsd-uthread.c: Remove _initialize_bsd_uthread prototype. | |
6710 | * btrace.c: Remove _initialize_btrace prototype. | |
6711 | * charset.c: Remove _initialize_charset prototype. | |
6712 | * cli/cli-cmds.c: Remove _initialize_cli_cmds prototype. | |
6713 | * cli/cli-dump.c: Remove _initialize_cli_dump prototype. | |
6714 | * cli/cli-interp.c: Remove _initialize_cli_interp prototype. | |
6715 | * cli/cli-logging.c: Remove _initialize_cli_logging prototype. | |
6716 | * cli/cli-script.c: Remove _initialize_cli_script prototype. | |
6717 | * coff-pe-read.c: Remove _initialize_coff_pe_read prototype. | |
6718 | * coffread.c: Remove _initialize_coffread prototype. | |
6719 | * compile/compile.c: Remove _initialize_compile prototype. | |
6720 | * complaints.c: Remove _initialize_complaints prototype. | |
6721 | * completer.c: Remove _initialize_completer prototype. | |
6722 | * copying.awk: Remove _initialize_copying prototype. | |
6723 | * copying.c: Regenerate. | |
6724 | * core-regset.c: Remove _initialize_core_regset prototype. | |
6725 | * corefile.c: Remove _initialize_core prototype. | |
6726 | * corelow.c: Remove _initialize_corelow prototype. | |
6727 | * cp-abi.c: Remove _initialize_cp_abi prototype. | |
6728 | * cp-namespace.c: Remove _initialize_cp_namespace prototype. | |
6729 | * cp-support.c: Remove _initialize_cp_support prototype. | |
6730 | * cp-valprint.c: Remove _initialize_cp_valprint prototype. | |
6731 | * cris-linux-tdep.c: Remove _initialize_cris_linux_tdep prototype. | |
6732 | * cris-tdep.c: Remove _initialize_cris_tdep prototype. | |
6733 | * ctf.c: Remove _initialize_ctf prototype. | |
6734 | * d-lang.c: Remove _initialize_d_language prototype. | |
6735 | * darwin-nat-info.c: Remove _initialize_darwin_info_commands | |
6736 | prototype. | |
6737 | * darwin-nat.c: Remove _initialize_darwin_inferior prototype. | |
6738 | * dbxread.c: Remove _initialize_dbxread prototype. | |
6739 | * dcache.c: Remove _initialize_dcache prototype. | |
6740 | * demangle.c: Remove _initialize_demangler prototype. | |
6741 | * disasm-selftests.c: Remove _initialize_disasm_selftests | |
6742 | prototype. | |
6743 | * disasm.c: Remove _initialize_disasm prototype. | |
6744 | * dtrace-probe.c: Remove _initialize_dtrace_probe prototype. | |
6745 | * dummy-frame.c: Remove _initialize_dummy_frame prototype. | |
6746 | * dwarf2-frame-tailcall.c: Remove _initialize_tailcall_frame | |
6747 | prototype. | |
6748 | * dwarf2-frame.c: Remove _initialize_dwarf2_frame prototype. | |
6749 | * dwarf2expr.c: Remove _initialize_dwarf2expr prototype. | |
6750 | * dwarf2loc.c: Remove _initialize_dwarf2loc prototype. | |
6751 | * dwarf2read.c: Remove _initialize_dwarf2_read prototype. | |
6752 | * elfread.c: Remove _initialize_elfread prototype. | |
6753 | * exec.c: Remove _initialize_exec prototype. | |
6754 | * extension.c: Remove _initialize_extension prototype. | |
6755 | * f-lang.c: Remove _initialize_f_language prototype. | |
6756 | * f-valprint.c: Remove _initialize_f_valprint prototype. | |
6757 | * fbsd-nat.c: Remove _initialize_fbsd_nat prototype. | |
6758 | * fbsd-tdep.c: Remove _initialize_fbsd_tdep prototype. | |
6759 | * filesystem.c: Remove _initialize_filesystem prototype. | |
6760 | * findcmd.c: Remove _initialize_mem_search prototype. | |
6761 | * fork-child.c: Remove _initialize_fork_child prototype. | |
6762 | * frame-base.c: Remove _initialize_frame_base prototype. | |
6763 | * frame-unwind.c: Remove _initialize_frame_unwind prototype. | |
6764 | * frame.c: Remove _initialize_frame prototype. | |
6765 | * frv-linux-tdep.c: Remove _initialize_frv_linux_tdep prototype. | |
6766 | * frv-tdep.c: Remove _initialize_frv_tdep prototype. | |
6767 | * ft32-tdep.c: Remove _initialize_ft32_tdep prototype. | |
6768 | * gcore.c: Remove _initialize_gcore prototype. | |
6769 | * gdb_bfd.c: Remove _initialize_gdb_bfd prototype. | |
6770 | * gdbarch.c: Regenerate. | |
6771 | * gdbarch.sh: Remove _initialize_gdbarch prototype. | |
6772 | * gdbtypes.c: Remove _initialize_gdbtypes prototype. | |
6773 | * gnu-nat.c: Remove _initialize_gnu_nat prototype. | |
6774 | * gnu-v2-abi.c: Remove _initialize_gnu_v2_abi prototype. | |
6775 | * gnu-v3-abi.c: Remove _initialize_gnu_v3_abi prototype. | |
6776 | * go-lang.c: Remove _initialize_go_language prototype. | |
6777 | * go32-nat.c: Remove _initialize_go32_nat prototype. | |
6778 | * guile/guile.c: Remove _initialize_guile prototype. | |
6779 | * h8300-tdep.c: Remove _initialize_h8300_tdep prototype. | |
6780 | * hppa-linux-nat.c: Remove _initialize_hppa_linux_nat prototype. | |
6781 | * hppa-linux-tdep.c: Remove _initialize_hppa_linux_tdep prototype. | |
6782 | * hppa-nbsd-nat.c: Remove _initialize_hppanbsd_nat prototype. | |
6783 | * hppa-nbsd-tdep.c: Remove _initialize_hppanbsd_tdep prototype. | |
6784 | * hppa-obsd-nat.c: Remove _initialize_hppaobsd_nat prototype. | |
6785 | * hppa-obsd-tdep.c: Remove _initialize_hppaobsd_tdep prototype. | |
6786 | * hppa-tdep.c: Remove _initialize_hppa_tdep prototype. | |
6787 | * i386-bsd-nat.c: Remove _initialize_i386bsd_nat prototype. | |
6788 | * i386-cygwin-tdep.c: Remove _initialize_i386_cygwin_tdep | |
6789 | prototype. | |
6790 | * i386-darwin-tdep.c: Remove _initialize_i386_darwin_tdep | |
6791 | prototype. | |
6792 | * i386-dicos-tdep.c: Remove _initialize_i386_dicos_tdep prototype. | |
6793 | * i386-fbsd-nat.c: Remove _initialize_i386fbsd_nat prototype. | |
6794 | * i386-fbsd-tdep.c: Remove _initialize_i386fbsd_tdep prototype. | |
6795 | * i386-gnu-nat.c: Remove _initialize_i386gnu_nat prototype. | |
6796 | * i386-gnu-tdep.c: Remove _initialize_i386gnu_tdep prototype. | |
6797 | * i386-linux-nat.c: Remove _initialize_i386_linux_nat prototype. | |
6798 | * i386-linux-tdep.c: Remove _initialize_i386_linux_tdep prototype. | |
6799 | * i386-nbsd-nat.c: Remove _initialize_i386nbsd_nat prototype. | |
6800 | * i386-nbsd-tdep.c: Remove _initialize_i386nbsd_tdep prototype. | |
6801 | * i386-nto-tdep.c: Remove _initialize_i386nto_tdep prototype. | |
6802 | * i386-obsd-nat.c: Remove _initialize_i386obsd_nat prototype. | |
6803 | * i386-obsd-tdep.c: Remove _initialize_i386obsd_tdep prototype. | |
6804 | * i386-sol2-nat.c: Remove _initialize_amd64_sol2_nat prototype. | |
6805 | * i386-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype. | |
6806 | * i386-tdep.c: Remove _initialize_i386_tdep prototype. | |
6807 | * i386-windows-nat.c: Remove _initialize_i386_windows_nat | |
6808 | prototype. | |
6809 | * ia64-libunwind-tdep.c: Remove _initialize_libunwind_frame | |
6810 | prototype. | |
6811 | * ia64-linux-nat.c: Remove _initialize_ia64_linux_nat prototype. | |
6812 | * ia64-linux-tdep.c: Remove _initialize_ia64_linux_tdep prototype. | |
6813 | * ia64-tdep.c: Remove _initialize_ia64_tdep prototype. | |
6814 | * ia64-vms-tdep.c: Remove _initialize_ia64_vms_tdep prototype. | |
6815 | * infcall.c: Remove _initialize_infcall prototype. | |
6816 | * infcmd.c: Remove _initialize_infcmd prototype. | |
6817 | * inferior.c: Remove _initialize_inferiors prototype. | |
6818 | * inflow.c: Remove _initialize_inflow prototype. | |
6819 | * infrun.c: Remove _initialize_infrun prototype. | |
6820 | * interps.c: Remove _initialize_interpreter prototype. | |
6821 | * iq2000-tdep.c: Remove _initialize_iq2000_tdep prototype. | |
6822 | * jit.c: Remove _initialize_jit prototype. | |
6823 | * language.c: Remove _initialize_language prototype. | |
6824 | * linux-fork.c: Remove _initialize_linux_fork prototype. | |
6825 | * linux-nat.c: Remove _initialize_linux_nat prototype. | |
6826 | * linux-tdep.c: Remove _initialize_linux_tdep prototype. | |
6827 | * linux-thread-db.c: Remove _initialize_thread_db prototype. | |
6828 | * lm32-tdep.c: Remove _initialize_lm32_tdep prototype. | |
6829 | * m2-lang.c: Remove _initialize_m2_language prototype. | |
6830 | * m32c-tdep.c: Remove _initialize_m32c_tdep prototype. | |
6831 | * m32r-linux-nat.c: Remove _initialize_m32r_linux_nat prototype. | |
6832 | * m32r-linux-tdep.c: Remove _initialize_m32r_linux_tdep prototype. | |
6833 | * m32r-tdep.c: Remove _initialize_m32r_tdep prototype. | |
6834 | * m68hc11-tdep.c: Remove _initialize_m68hc11_tdep prototype. | |
6835 | * m68k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype. | |
6836 | * m68k-bsd-tdep.c: Remove _initialize_m68kbsd_tdep prototype. | |
6837 | * m68k-linux-nat.c: Remove _initialize_m68k_linux_tdep prototype. | |
6838 | * m68k-linux-tdep.c: Remove _initialize_m68k_linux_tdep prototype. | |
6839 | * m68k-tdep.c: Remove _initialize_m68k_tdep prototype. | |
6840 | * m88k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype. | |
6841 | * m88k-tdep.c: Remove _initialize_m68kbsd_tdep prototype. | |
6842 | * machoread.c: Remove _initialize_machoread prototype. | |
6843 | * macrocmd.c: Remove _initialize_macrocmd prototype. | |
6844 | * macroscope.c: Remove _initialize_macroscope prototype. | |
6845 | * maint.c: Remove _initialize_maint_cmds prototype. | |
6846 | * mdebugread.c: Remove _initialize_mdebugread prototype. | |
6847 | * memattr.c: Remove _initialize_mem prototype. | |
6848 | * mep-tdep.c: Remove _initialize_mep_tdep prototype. | |
6849 | * mi/mi-cmd-env.c: Remove _initialize_mi_cmd_env prototype. | |
6850 | * mi/mi-cmds.c: Remove _initialize_mi_cmds prototype. | |
6851 | * mi/mi-interp.c: Remove _initialize_mi_interp prototype. | |
6852 | * mi/mi-main.c: Remove _initialize_mi_main prototype. | |
6853 | * microblaze-linux-tdep.c: Remove | |
6854 | _initialize_microblaze_linux_tdep prototype. | |
6855 | * microblaze-tdep.c: Remove _initialize_microblaze_tdep prototype. | |
6856 | * mips-fbsd-nat.c: Remove _initialize_mips_fbsd_nat prototype. | |
6857 | * mips-fbsd-tdep.c: Remove _initialize_mips_fbsd_tdep prototype. | |
6858 | * mips-linux-nat.c: Remove _initialize_mips_linux_nat prototype. | |
6859 | * mips-linux-tdep.c: Remove _initialize_mips_linux_tdep prototype. | |
6860 | * mips-nbsd-nat.c: Remove _initialize_mipsnbsd_nat prototype. | |
6861 | * mips-nbsd-tdep.c: Remove _initialize_mipsnbsd_tdep prototype. | |
6862 | * mips-sde-tdep.c: Remove _initialize_mips_sde_tdep prototype. | |
6863 | * mips-tdep.c: Remove _initialize_mips_tdep prototype. | |
6864 | * mips64-obsd-nat.c: Remove _initialize_mips64obsd_nat prototype. | |
6865 | * mips64-obsd-tdep.c: Remove _initialize_mips64obsd_tdep | |
6866 | prototype. | |
6867 | * mipsread.c: Remove _initialize_mipsread prototype. | |
6868 | * mn10300-linux-tdep.c: Remove _initialize_mn10300_linux_tdep | |
6869 | prototype. | |
6870 | * mn10300-tdep.c: Remove _initialize_mn10300_tdep prototype. | |
6871 | * moxie-tdep.c: Remove _initialize_moxie_tdep prototype. | |
6872 | * msp430-tdep.c: Remove _initialize_msp430_tdep prototype. | |
6873 | * mt-tdep.c: Remove _initialize_mt_tdep prototype. | |
6874 | * nds32-tdep.c: Remove _initialize_nds32_tdep prototype. | |
6875 | * nios2-linux-tdep.c: Remove _initialize_nios2_linux_tdep | |
6876 | prototype. | |
6877 | * nios2-tdep.c: Remove _initialize_nios2_tdep prototype. | |
6878 | * nto-procfs.c: Remove _initialize_procfs prototype. | |
6879 | * nto-tdep.c: Remove _initialize_nto_tdep prototype. | |
6880 | * objc-lang.c: Remove _initialize_objc_language prototype. | |
6881 | * objfiles.c: Remove _initialize_objfiles prototype. | |
6882 | * observer.c: Remove observer_test_first_notification_function, | |
6883 | observer_test_second_notification_function, | |
6884 | observer_test_third_notification_function, and | |
6885 | _initialize_observer prototypes. | |
6886 | * opencl-lang.c: Remove _initialize_opencl_language prototypes. | |
6887 | * osabi.c: Remove _initialize_gdb_osabi prototype. | |
6888 | * osdata.c: Remove _initialize_osdata prototype. | |
6889 | * p-valprint.c: Remove _initialize_pascal_valprint prototype. | |
6890 | * parse.c: Remove _initialize_parse prototype. | |
6891 | * ppc-fbsd-nat.c: Remove _initialize_ppcfbsd_nat prototype. | |
6892 | * ppc-fbsd-tdep.c: Remove _initialize_ppcfbsd_tdep prototype. | |
6893 | * ppc-linux-nat.c: Remove _initialize_ppc_linux_nat prototype. | |
6894 | * ppc-linux-tdep.c: Remove _initialize_ppc_linux_tdep prototype. | |
6895 | * ppc-nbsd-nat.c: Remove _initialize_ppcnbsd_nat prototype. | |
6896 | * ppc-nbsd-tdep.c: Remove _initialize_ppcnbsd_tdep prototype. | |
6897 | * ppc-obsd-nat.c: Remove _initialize_ppcobsd_nat prototype. | |
6898 | * ppc-obsd-tdep.c: Remove _initialize_ppcobsd_tdep prototype. | |
6899 | * printcmd.c: Remove _initialize_printcmd prototype. | |
6900 | * probe.c: Remove _initialize_probe prototype. | |
6901 | * proc-api.c: Remove _initialize_proc_api prototype. | |
6902 | * proc-events.c: Remove _initialize_proc_events prototype. | |
6903 | * proc-service.c: Remove _initialize_proc_service prototype. | |
6904 | * procfs.c: Remove _initialize_procfs prototype. | |
6905 | * psymtab.c: Remove _initialize_psymtab prototype. | |
6906 | * python/python.c: Remove _initialize_python prototype. | |
6907 | * ravenscar-thread.c: Remove _initialize_ravenscar prototype. | |
6908 | * record-btrace.c: Remove _initialize_record_btrace prototype. | |
6909 | * record-full.c: Remove _initialize_record_full prototype. | |
6910 | * record.c: Remove _initialize_record prototype. | |
6911 | * regcache.c: Remove _initialize_regcache prototype. | |
6912 | * reggroups.c: Remove _initialize_reggroup prototype. | |
6913 | * remote-notif.c: Remove _initialize_notif prototype. | |
6914 | * remote-sim.c: Remove _initialize_remote_sim prototype. | |
6915 | * remote.c: Remove _initialize_remote prototype. | |
6916 | * reverse.c: Remove _initialize_reverse prototype. | |
6917 | * rl78-tdep.c: Remove _initialize_rl78_tdep prototype. | |
6918 | * rs6000-aix-tdep.c: Remove _initialize_rs6000_aix_tdep prototype. | |
6919 | * rs6000-lynx178-tdep.c: Remove _initialize_rs6000_lynx178_tdep | |
6920 | prototype. | |
6921 | * rs6000-nat.c: Remove _initialize_rs6000_nat prototype. | |
6922 | * rs6000-tdep.c: Remove _initialize_rs6000_tdep prototype. | |
6923 | * rust-exp.y: Remove _initialize_rust_exp prototype. | |
6924 | * rx-tdep.c: Remove _initialize_rx_tdep prototype. | |
6925 | * s390-linux-nat.c: Remove _initialize_s390_nat prototype. | |
6926 | * s390-linux-tdep.c: Remove _initialize_s390_tdep prototype. | |
6927 | * score-tdep.c: Remove _initialize_score_tdep prototype. | |
6928 | * selftest-arch.c: Remove _initialize_selftests_foreach_arch | |
6929 | prototype. | |
6930 | * ser-go32.c: Remove _initialize_ser_dos prototype. | |
6931 | * ser-mingw.c: Remove _initialize_ser_windows prototype. | |
6932 | * ser-pipe.c: Remove _initialize_ser_pipe prototype. | |
6933 | * ser-tcp.c: Remove _initialize_ser_tcp prototype. | |
6934 | * ser-unix.c: Remove _initialize_ser_hardwire prototype. | |
6935 | * serial.c: Remove _initialize_serial prototype. | |
6936 | * sh-linux-tdep.c: Remove _initialize_sh_linux_tdep prototype. | |
6937 | * sh-nbsd-nat.c: Remove _initialize_shnbsd_nat prototype. | |
6938 | * sh-nbsd-tdep.c: Remove _initialize_shnbsd_tdep prototype. | |
6939 | * sh-tdep.c: Remove _initialize_sh_tdep prototype. | |
6940 | * skip.c: Remove _initialize_step_skip prototype. | |
6941 | * sol-thread.c: Remove _initialize_sol_thread prototype. | |
6942 | * solib-aix.c: Remove _initialize_solib_aix prototype. | |
6943 | * solib-darwin.c: Remove _initialize_darwin_solib prototype. | |
6944 | * solib-dsbt.c: Remove _initialize_dsbt_solib prototype. | |
6945 | * solib-frv.c: Remove _initialize_frv_solib prototype. | |
6946 | * solib-spu.c: Remove _initialize_spu_solib prototype. | |
6947 | * solib-svr4.c: Remove _initialize_svr4_solib prototype. | |
6948 | * solib-target.c: Remove _initialize_solib_target prototype. | |
6949 | * solib.c: Remove _initialize_solib prototype. | |
6950 | * source.c: Remove _initialize_source prototype. | |
6951 | * sparc-linux-nat.c: Remove _initialize_sparc_linux_nat prototype. | |
6952 | * sparc-linux-tdep.c: Remove _initialize_sparc_linux_tdep | |
6953 | prototype. | |
6954 | * sparc-nat.c: Remove _initialize_sparc_nat prototype. | |
6955 | * sparc-nbsd-nat.c: Remove _initialize_sparcnbsd_nat prototype. | |
6956 | * sparc-nbsd-tdep.c: Remove _initialize_sparcnbsd_tdep prototype. | |
6957 | * sparc-obsd-tdep.c: Remove _initialize_sparc32obsd_tdep | |
6958 | prototype. | |
6959 | * sparc-sol2-nat.c: Remove _initialize_sparc_sol2_nat prototype. | |
6960 | * sparc-sol2-tdep.c: Remove _initialize_sparc_sol2_tdep prototype. | |
6961 | * sparc-tdep.c: Remove _initialize_sparc_tdep prototype. | |
6962 | * sparc64-fbsd-nat.c: Remove _initialize_sparc64fbsd_nat | |
6963 | prototype. | |
6964 | * sparc64-fbsd-tdep.c: Remove _initialize_sparc64fbsd_tdep | |
6965 | prototype. | |
6966 | * sparc64-linux-nat.c: Remove _initialize_sparc64_linux_nat | |
6967 | prototype. | |
6968 | * sparc64-linux-tdep.c: Remove _initialize_sparc64_linux_tdep | |
6969 | prototype. | |
6970 | * sparc64-nat.c: Remove _initialize_sparc64_nat prototype. | |
6971 | * sparc64-nbsd-nat.c: Remove _initialize_sparc64nbsd_nat | |
6972 | prototype. | |
6973 | * sparc64-nbsd-tdep.c: Remove _initialize_sparc64nbsd_tdep | |
6974 | prototype. | |
6975 | * sparc64-obsd-nat.c: Remove _initialize_sparc64obsd_nat | |
6976 | prototype. | |
6977 | * sparc64-obsd-tdep.c: Remove _initialize_sparc64obsd_tdep | |
6978 | prototype. | |
6979 | * sparc64-sol2-tdep.c: Remove _initialize_sparc64_sol2_tdep | |
6980 | prototype. | |
6981 | * spu-linux-nat.c: Remove _initialize_spu_nat prototype. | |
6982 | * spu-multiarch.c: Remove _initialize_spu_multiarch prototype. | |
6983 | * spu-tdep.c: Remove _initialize_spu_tdep prototype. | |
6984 | * stabsread.c: Remove _initialize_stabsread prototype. | |
6985 | * stack.c: Remove _initialize_stack prototype. | |
6986 | * stap-probe.c: Remove _initialize_stap_probe prototype. | |
6987 | * std-regs.c: Remove _initialize_frame_reg prototype. | |
6988 | * symfile-debug.c: Remove _initialize_symfile_debug prototype. | |
6989 | * symfile-mem.c: Remove _initialize_symfile_mem prototype. | |
6990 | * symfile.c: Remove _initialize_symfile prototype. | |
6991 | * symmisc.c: Remove _initialize_symmisc prototype. | |
6992 | * symtab.c: Remove _initialize_symtab prototype. | |
6993 | * target-dcache.c: Remove _initialize_target_dcache prototype. | |
6994 | * target-descriptions.c: Remove _initialize_target_descriptions | |
6995 | prototype. | |
6996 | * thread.c: Remove _initialize_thread prototype. | |
6997 | * tic6x-linux-tdep.c: Remove _initialize_tic6x_linux_tdep | |
6998 | prototype. | |
6999 | * tic6x-tdep.c: Remove _initialize_tic6x_tdep prototype. | |
7000 | * tilegx-linux-nat.c: Remove _initialize_tile_linux_nat prototype. | |
7001 | * tilegx-linux-tdep.c: Remove _initialize_tilegx_linux_tdep | |
7002 | prototype. | |
7003 | * tilegx-tdep.c: Remove _initialize_tilegx_tdep prototype. | |
7004 | * tracefile-tfile.c: Remove _initialize_tracefile_tfile prototype. | |
7005 | * tracefile.c: Remove _initialize_tracefile prototype. | |
7006 | * tracepoint.c: Remove _initialize_tracepoint prototype. | |
7007 | * tui/tui-hooks.c: Remove _initialize_tui_hooks prototype. | |
7008 | * tui/tui-interp.c: Remove _initialize_tui_interp prototype. | |
7009 | * tui/tui-layout.c: Remove _initialize_tui_layout prototype. | |
7010 | * tui/tui-regs.c: Remove _initialize_tui_regs prototype. | |
7011 | * tui/tui-stack.c: Remove _initialize_tui_stack prototype. | |
7012 | * tui/tui-win.c: Remove _initialize_tui_win prototype. | |
7013 | * tui/tui.c: Remove _initialize_tui prototype. | |
7014 | * typeprint.c: Remove _initialize_typeprint prototype. | |
7015 | * user-regs.c: Remove _initialize_user_regs prototype. | |
7016 | * utils.c: Remove _initialize_utils prototype. | |
7017 | * v850-tdep.c: Remove _initialize_v850_tdep prototype. | |
7018 | * valarith.c: Remove _initialize_valarith prototype. | |
7019 | * valops.c: Remove _initialize_valops prototype. | |
7020 | * valprint.c: Remove _initialize_valprint prototype. | |
7021 | * value.c: Remove _initialize_values prototype. | |
7022 | * varobj.c: Remove _initialize_varobj prototype. | |
7023 | * vax-bsd-nat.c: Remove _initialize_vaxbsd_nat prototype. | |
7024 | * vax-nbsd-tdep.c: Remove _initialize_vaxnbsd_tdep prototype. | |
7025 | * vax-tdep.c: Remove _initialize_vax_tdep prototype. | |
7026 | * windows-nat.c: Remove _initialize_windows_nat, | |
7027 | _initialize_check_for_gdb_ini, and _initialize_loadable | |
7028 | prototypes. | |
7029 | * windows-tdep.c: Remove _initialize_windows_tdep prototype. | |
7030 | * xcoffread.c: Remove _initialize_xcoffread prototype. | |
7031 | * xml-support.c: Remove _initialize_xml_support prototype. | |
7032 | * xstormy16-tdep.c: Remove _initialize_xstormy16_tdep prototype. | |
7033 | * xtensa-linux-nat.c: Remove _initialize_xtensa_linux_nat | |
7034 | prototype. | |
7035 | * xtensa-linux-tdep.c: Remove _initialize_xtensa_linux_tdep | |
7036 | prototype. | |
7037 | * xtensa-tdep.c: Remove _initialize_xtensa_tdep prototype. | |
7038 | ||
a611b5cb KS |
7039 | 2017-09-08 Keith Seitz <keiths@redhat.com> |
7040 | ||
7041 | * dwarf2read.c (struct field_info) <fnfields>: Remove unused | |
7042 | field. | |
7043 | ||
469412dd CW |
7044 | 2017-09-08 Christoph Weinmann <christoph.t.weinmann@intel.com> |
7045 | ||
7046 | * f-valprint.c (f_val_print): Remove check for one byte | |
7047 | sized integers. Remove printing of character type. | |
7048 | ||
a5ad232b FP |
7049 | 2017-09-08 Frank Penczek <frank.penczek@intel.com> |
7050 | Christoph Weinmann <christoph.t.weinmann@intel.com> | |
7051 | Bernhard Heckel <bernhard.heckel@intel.com> | |
7052 | ||
7053 | * f-typeprint.c (f_type_print_base): Use fprintfi_filtered | |
7054 | to maintain proper indentation when printing pointers/refs. | |
7055 | ||
e5014227 JB |
7056 | 2017-09-07 Joel Brobecker <brobecker@adacore.com> |
7057 | ||
7058 | GDB 8.0.1 released. | |
7059 | ||
63c99141 JB |
7060 | 2017-09-07 Joel Brobecker <brobecker@adacore.com> |
7061 | ||
7062 | * NEWS (Changes in GDB 7.11): Remove entry for QStartupWithShell. | |
7063 | ||
69c1e056 TT |
7064 | 2017-09-05 Tom Tromey <tom@tromey.com> |
7065 | ||
7066 | * parse.c (funcall_chain): Now a std::vector. | |
7067 | (start_arglist, end_arglist): Simplify. | |
7068 | (free_funcalls): Remove. | |
7069 | (parse_exp_in_context_1): Remove cleanup. | |
7070 | ||
fef704bf TT |
7071 | 2017-09-05 Tom Tromey <tom@tromey.com> |
7072 | ||
7073 | * go-exp.y (go_parse): Don't create a cleanup. | |
7074 | ||
5613c585 TT |
7075 | 2017-09-05 Tom Tromey <tom@tromey.com> |
7076 | ||
7077 | * d-exp.y (PrimaryExpression): Use std::string. | |
7078 | (d_parse): Don't create a cleanup. | |
7079 | ||
eae49211 TT |
7080 | 2017-09-05 Tom Tromey <tom@tromey.com> |
7081 | ||
7082 | * utils.c (do_clear_parser_state): Remove. | |
7083 | (make_cleanup_clear_parser_state): Remove. | |
7084 | * p-exp.y (pascal_parse): Use scoped_restore. | |
7085 | * m2-exp.y (m2_parse): Use scoped_restore. | |
7086 | * f-exp.y (f_parse): Use scoped_restore. | |
7087 | * d-exp.y (d_parse): Use scoped_restore. | |
7088 | * c-exp.y (c_parse): Use scoped_restore. | |
7089 | * ada-exp.y (ada_parse): Use scoped_restore. | |
7090 | * utils.h (make_cleanup_clear_parser_state): Remove. | |
7091 | ||
73b9be8b KS |
7092 | 2017-09-06 Keith Seitz <keiths@redhat.com> |
7093 | ||
7094 | * dwarf2read.c (dw2_linkage_name_attr): New function. | |
7095 | (dw2_linkage_name): New function. | |
7096 | (dwarf2_compute_name, dwarf2_physname, read_call_site_scope) | |
7097 | (guess_full_die_structure_name, dwarf2_name): Use dw2_linkage_name. | |
7098 | (anonymous_struct_prefix, dwarf2_name): Use dw2_linkage_name_attr. | |
7099 | ||
a102602b KR |
7100 | 2017-09-06 Kamil Rytarowski <n54@gmx.com> |
7101 | ||
7102 | * config/djgpp/djconfig.sh: Correct shell portability issue. | |
7103 | ||
28ad437d KR |
7104 | 2017-09-06 Kamil Rytarowski <n54@gmx.com> |
7105 | ||
7106 | * configure.nat: Define HAVE_NATIVE_GCORE_HOST on NetBSD. | |
7107 | ||
351787dd JB |
7108 | 2017-09-06 John Baldwin <jhb@FreeBSD.org> |
7109 | ||
7110 | * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c. | |
7111 | * NEWS: Mention new FreeBSD/mips native configuration. | |
7112 | * configure.host: Add aarch64*-*-freebsd*. | |
7113 | * configure.nat: Likewise. | |
7114 | * aarch64-fbsd-nat.c: New file. | |
7115 | ||
c0f84956 JB |
7116 | 2017-09-06 John Baldwin <jhb@FreeBSD.org> |
7117 | ||
7118 | * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-fbsd-tdep.o. | |
7119 | (ALLDEPFILES): Add aarch64-fbsd-tdep.c. | |
7120 | * NEWS: Mention new FreeBSD/aarch64 target. | |
7121 | * configure.tgt: Add aarch64*-*-freebsd*. | |
7122 | * aarch64-fbsd-tdep.c: New file. | |
7123 | * aarch64-fbsd-tdep.h: New file. | |
7124 | ||
7610297a KR |
7125 | 2017-09-06 Kamil Rytarowski <n54@gmx.com> |
7126 | ||
7127 | * MAINTAINERS (Write After Approval): Add Kamil Rytarowski. | |
7128 | ||
fbd1b771 JK |
7129 | 2017-09-06 Jan Kratochvil <jan.kratochvil@redhat.com> |
7130 | ||
7131 | * parse.c (find_minsym_type_and_address): Don't relocate addresses | |
7132 | of TLS symbols. | |
7133 | ||
5ca79eae PW |
7134 | 2017-09-05 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
7135 | ||
7136 | * objfiles.c (get_objfile_bfd_data): Remove useless obstack_init | |
7137 | call. | |
7138 | ||
bf93d7ba SM |
7139 | 2017-09-05 Simon Marchi <simon.marchi@ericsson.com> |
7140 | ||
7141 | * infrun.c (follow_exec): Call add_thread after | |
7142 | target_find_description. | |
7143 | ||
1bb7c059 SM |
7144 | 2017-09-05 Simon Marchi <simon.marchi@ericsson.com> |
7145 | ||
7146 | * infrun.c (handle_inferior_event_1): When exec'ing, read | |
7147 | stop_pc after follow_exec. | |
7148 | ||
fc809827 SM |
7149 | 2017-09-05 Simon Marchi <simon.marchi@ericsson.com> |
7150 | ||
7151 | * remote.c (process_g_packet): Update error message. | |
7152 | ||
d2fcdd85 YQ |
7153 | 2017-09-05 Yao Qi <yao.qi@linaro.org> |
7154 | ||
7155 | * configure.tgt (gdb_target_obs): Add i386.o for x86_64-* | |
7156 | targets. | |
7157 | ||
e69570ee PA |
7158 | 2017-09-05 Pedro Alves <palves@redhat.com> |
7159 | ||
7160 | * eval.c (eval_call, evaluate_funcall): New functions, factored | |
7161 | out from ... | |
7162 | (evaluate_subexp_standard): ... this. | |
7163 | ||
22916b07 YQ |
7164 | 2017-09-05 Yao Qi <yao.qi@linaro.org> |
7165 | ||
7166 | * amd64-tdep.c (amd64_target_description): Create target | |
7167 | descriptions. | |
7168 | (_initialize_amd64_tdep): Don't call functions | |
7169 | initialize_tdesc_amd64_*. Add self tests. | |
7170 | * arch/amd64.c (amd64_create_target_description): Add parameter | |
7171 | is_linux. Call set_tdesc_osabi if is_linux is true. | |
7172 | * arch/amd64.h (amd64_create_target_description): Update the | |
7173 | declaration. | |
7174 | * arch/i386.c (i386_create_target_description): Add parameter | |
7175 | is_linux. Call set_tdesc_osabi if is_linux is true. | |
7176 | * arch/i386.h (i386_create_target_description): Update | |
7177 | declaration. | |
7178 | * configure.tgt: Add i386.o to gdb_target_obs. | |
7179 | * features/Makefile (XMLTOC): Remove i386/*.xml. | |
7180 | * features/i386/amd64-avx-avx512.c: Remove. | |
7181 | * features/i386/amd64-avx-mpx-avx512-pku.c: Remove. | |
7182 | * features/i386/amd64-avx-mpx.c: Remove. | |
7183 | * features/i386/amd64-avx.c: Remove. | |
7184 | * features/i386/amd64-mpx.c: Remove. | |
7185 | * features/i386/amd64.c: Remove. | |
7186 | * features/i386/i386-avx-avx512.c: Remove. | |
7187 | * features/i386/i386-avx-mpx-avx512-pku.c: Remove. | |
7188 | * features/i386/i386-avx-mpx.c: Remove. | |
7189 | * features/i386/i386-avx.c: Remove. | |
7190 | * features/i386/i386-mmx.c: Remove. | |
7191 | * features/i386/i386-mpx.c: Remove. | |
7192 | * features/i386/i386.c: Remove. | |
7193 | * i386-tdep.c: Don't include features/i386/i386*.c., include | |
7194 | target-descriptions.h and arch/i386.h. | |
7195 | (i386_target_description): Create target descriptions. | |
7196 | (i386_gdbarch_init): Don't call initialize_tdesc_i386_* | |
7197 | functions. Do self tests. | |
7198 | ||
0854b7b1 YQ |
7199 | 2017-09-05 Yao Qi <yao.qi@linaro.org> |
7200 | ||
7201 | * features/Makefile (XMLTOC): Remove i386/amd64XXX-linux.xml. | |
7202 | * features/i386/amd64-avx-avx512-linux.c: Removed. | |
7203 | * features/i386/amd64-avx-linux.c: Removed. | |
7204 | * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Removed. | |
7205 | * features/i386/amd64-avx-mpx-linux.c: Removed. | |
7206 | * features/i386/amd64-linux.c: Removed. | |
7207 | * features/i386/amd64-mpx-linux.c: Removed. | |
7208 | * features/i386/x32-avx-avx512-linux.c: Removed. | |
7209 | * features/i386/x32-avx-linux.c: Removed. | |
7210 | * features/i386/x32-linux.c: Removed. | |
7211 | ||
b4570e4b YQ |
7212 | 2017-09-05 Yao Qi <yao.qi@linaro.org> |
7213 | ||
7214 | * amd64-linux-tdep.c: Include arch/amd64.h. Don't include | |
7215 | features/i386/*.c. | |
7216 | (amd64_linux_read_description): Call | |
7217 | amd64_create_target_description. | |
7218 | * arch/amd64.c: New file. | |
7219 | * arch/amd64.h: New file. | |
7220 | * configure.tgt (x86_64-*-linux*): Append amd64.o. | |
7221 | * Makefile.in (ALL_64_TARGET_OBS): Append amd64.o. | |
7222 | ||
6c73f67f YQ |
7223 | 2017-09-05 Yao Qi <yao.qi@linaro.org> |
7224 | ||
7225 | * amd64-linux-tdep.c: Don't include amd64-XXX-linux and | |
7226 | x32-XXX-linux.c. Include 64bit-XX.c and x32-XX.c. | |
7227 | (amd64_linux_read_description): Create target descriptions. | |
7228 | (_initialize_amd64_linux_tdep): Don't call initialize_tdesc_XXX | |
7229 | functions. Add unit tests. | |
7230 | * features/Makefile (FEATURE_XMLFILES): Append 64bit-XXX.xml and | |
7231 | x32-core.xml. | |
7232 | * features/i386/64bit-avx.c: Generated. | |
7233 | * features/i386/64bit-avx512.c: Generated. | |
7234 | * features/i386/64bit-core.c: Generated. | |
7235 | * features/i386/64bit-linux.c: Generated. | |
7236 | * features/i386/64bit-mpx.c: Generated. | |
7237 | * features/i386/64bit-pkeys.c: Generated. | |
7238 | * features/i386/64bit-segments.c: Generated. | |
7239 | * features/i386/64bit-sse.c: Generated. | |
7240 | * features/i386/x32-core.c: Generated. | |
7241 | * target-descriptions.c (maint_print_c_tdesc_cmd): Print feature | |
7242 | c files for amd64-linux and x32-linux. | |
7243 | ||
9d3d478b YQ |
7244 | 2017-09-05 Yao Qi <yao.qi@linaro.org> |
7245 | ||
7246 | * amd64-linux-tdep.c (amd64_linux_read_description): New | |
7247 | function. | |
7248 | (amd64_linux_core_read_description): Call | |
7249 | amd64_linux_read_description. | |
7250 | (amd64_linux_init_abi): Likewise. | |
7251 | (amd64_x32_linux_init_abi): Likewise. | |
7252 | * amd64-linux-tdep.h (amd64_linux_read_description): Declare. | |
7253 | * x86-linux-nat.c (x86_linux_read_description): Call | |
7254 | amd64_linux_read_description. | |
7255 | ||
b9f1d50f YQ |
7256 | 2017-09-05 Yao Qi <yao.qi@linaro.org> |
7257 | ||
7258 | * amd64-linux-tdep.c (amd64_linux_core_read_description): Update | |
7259 | comments. | |
7260 | ||
188c9e6d YQ |
7261 | 2017-09-05 Yao Qi <yao.qi@linaro.org> |
7262 | ||
7263 | * features/Makefile (XMLTOC): Remove i386/i386-XX-linux.xml. | |
7264 | * features/i386/i386-avx-avx512-linux.c: Remove. | |
7265 | * features/i386/i386-avx-linux.c: Remove. | |
7266 | * features/i386/i386-avx-mpx-avx512-pku-linux.c: Remove. | |
7267 | * features/i386/i386-avx-mpx-linux.c: Remove. | |
7268 | * features/i386/i386-linux.c: Remove. | |
7269 | * features/i386/i386-mmx-linux.c: Remove. | |
7270 | * features/i386/i386-mpx-linux.c: Remove. | |
7271 | ||
5f035c07 YQ |
7272 | 2017-09-05 Yao Qi <yao.qi@linaro.org> |
7273 | ||
7274 | * Makefile.in (ALL_TARGET_OBS): Add i386.o. | |
7275 | (SFILES): Add arch/i386.c. | |
7276 | (HFILES_NO_SRCDIR): Add arch/i386.h. | |
7277 | * arch/i386.c: New file. | |
7278 | * arch/i386.h: New file. | |
7279 | * arch/tdesc.h (allocate_target_description): Declare. | |
7280 | (set_tdesc_architecture): Declare. | |
7281 | (set_tdesc_osabi): Declare. | |
7282 | * configure.tgt (i[34567]86-*-linux*): Add i386.o. | |
7283 | * i386-linux-tdep.c: Don't include ../features/i386/32bit-XXX.c. | |
7284 | include arch/i386.h. | |
7285 | (i386_linux_read_description): Remove code and call | |
7286 | i386_create_target_description. | |
7287 | (set_tdesc_architecture): New function. | |
7288 | (set_tdesc_osabi): New function. | |
7289 | * target-descriptions.h (allocate_target_description): Remove. | |
7290 | ||
0abe8a89 YQ |
7291 | 2017-09-05 Yao Qi <yao.qi@linaro.org> |
7292 | ||
7293 | * arch/tdesc.h (tdesc_create_feature): Add an argument xml. | |
7294 | * target-descriptions.c (tdesc_create_feature): Likewise, and | |
7295 | adjust code. | |
7296 | * features/i386/32bit-avx.c: Re-generated. | |
7297 | * features/i386/32bit-avx512.c: Re-generated. | |
7298 | * features/i386/32bit-core.c: Re-generated. | |
7299 | * features/i386/32bit-linux.c: Re-generated. | |
7300 | * features/i386/32bit-mpx.c: Re-generated. | |
7301 | * features/i386/32bit-pkeys.c: Re-generated. | |
7302 | * features/i386/32bit-sse.c: Re-generated. | |
7303 | ||
0a188386 YQ |
7304 | 2017-09-05 Yao Qi <yao.qi@linaro.org> |
7305 | ||
7306 | * regformats/regdef.h (struct reg): Override operator == and !=. | |
7307 | ||
f49ff000 YQ |
7308 | 2017-09-05 Yao Qi <yao.qi@linaro.org> |
7309 | ||
7310 | * arch/tdesc.h: New file. | |
7311 | * regformats/regdat.sh: Generate code using tdesc_create_reg. | |
7312 | * target-descriptions.c: Update comments. | |
7313 | * target-descriptions.h: Include "arch/tdesc.h". Remove the | |
7314 | declarations. | |
7315 | * features/i386/32bit-avx.c: Re-generated. | |
7316 | * features/i386/32bit-avx512.c: Re-generated. | |
7317 | * features/i386/32bit-core.c: Re-generated. | |
7318 | * features/i386/32bit-linux.c: Re-generated. | |
7319 | * features/i386/32bit-mpx.c: Re-generated. | |
7320 | * features/i386/32bit-pkeys.c: Re-generated. | |
7321 | * features/i386/32bit-sse.c: Re-generated. | |
7322 | ||
f7000548 YQ |
7323 | 2017-09-05 Yao Qi <yao.qi@linaro.org> |
7324 | ||
7325 | * regformats/regdat.sh: Update generated code. | |
7326 | ||
c9a5e2a5 YQ |
7327 | 2017-09-05 Yao Qi <yao.qi@linaro.org> |
7328 | ||
7329 | * regformats/regdat.sh: Adjust code order. | |
7330 | ||
d6b687ac SM |
7331 | 2017-09-05 Simon Marchi <simon.marchi@ericsson.com> |
7332 | ||
7333 | * expprint.c (dump_subexp_body_standard): Use constant format | |
7334 | string in fprintf_filtered call. | |
7335 | ||
a379bfd0 JB |
7336 | 2017-09-04 John Baldwin <jhb@FreeBSD.org> |
7337 | ||
7338 | * configure.nat: Add "x86-nat.o x86-dregs.o" for NetBSD/amd64 and | |
7339 | NetBSD/i386. | |
7340 | * x86-bsd-nat.c [!DBREG_DRX && __NetBSD__]: Define DBREG_DRX. | |
7341 | ||
f7efc967 JB |
7342 | 2017-09-04 John Baldwin <jhb@FreeBSD.org> |
7343 | ||
7344 | * bsd-kvm.o: Make <sys/user.h> conditional on HAVE_SYS_USER_H. | |
7345 | ||
c49fbc6c JB |
7346 | 2017-09-04 John Baldwin <jhb@FreeBSD.org> |
7347 | ||
7348 | * bsd-kvm.o: Define _KMEMUSER. | |
7349 | * configure.ac: Define _KMEMUSER when checking for "struct lwp". | |
7350 | * configure: Regenerate. | |
7351 | ||
26562e73 JB |
7352 | 2017-09-04 John Baldwin <jhb@FreeBSD.org> |
7353 | ||
7354 | * amd64-fbsd-nat.c: Add include of "x86-xstate.h". | |
7355 | * i386-fbsd-nat.c: Likewise. | |
7356 | ||
31cf1487 JB |
7357 | 2017-09-04 John Baldwin <jhb@FreeBSD.org> |
7358 | ||
7359 | * unittests/array-view-selftests.c: Add include of <array>. | |
7360 | ||
5b9f8a7c JB |
7361 | 2017-09-04 John Baldwin <jhb@FreeBSD.org> |
7362 | ||
7363 | * spu-tdep.c (flush_ea_cache): Add missing argument to | |
7364 | call_function_by_hand. | |
7365 | ||
d69cf9b2 PA |
7366 | 2017-09-04 Pedro Alves <palves@redhat.com> |
7367 | ||
7368 | * NEWS (Safer support for debugging with no debug info): New. | |
7369 | ||
3693fdb3 PA |
7370 | 2017-09-04 Pedro Alves <palves@redhat.com> |
7371 | ||
7372 | * c-exp.y (function_method, function_method_void): Add current | |
7373 | instance flags to TYPE_INSTANCE. | |
7374 | * dwarf2read.c (check_modifier): New. | |
7375 | (compute_delayed_physnames): Assert that only C++ adds delayed | |
7376 | physnames. Mark fn_fields as const/volatile depending on | |
7377 | physname. | |
7378 | * eval.c (make_params): New type_instance_flags parameter. Use | |
7379 | it as the new type's instance flags. | |
7380 | (evaluate_subexp_standard) <TYPE_INSTANCE>: Extract the instance | |
7381 | flags element and pass it to make_params. | |
7382 | * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: Handle | |
7383 | instance flags element. | |
7384 | (dump_subexp_body_standard) <TYPE_INSTANCE>: Likewise. | |
7385 | * gdbtypes.h: Include "enum-flags.h". | |
7386 | (type_instance_flags): New enum-flags type. | |
7387 | (TYPE_CONST, TYPE_VOLATILE, TYPE_RESTRICT, TYPE_ATOMIC) | |
7388 | (TYPE_CODE_SPACE, TYPE_DATA_SPACE): Return boolean. | |
7389 | * parse.c (operator_length_standard) <TYPE_INSTANCE>: Adjust. | |
7390 | (follow_type_instance_flags): New function. | |
7391 | (operator_check_standard) <TYPE_INSTANCE>: Adjust. | |
7392 | * parser-defs.h (follow_type_instance_flags): Declare. | |
7393 | * valops.c (value_struct_elt_for_reference): const/volatile must | |
7394 | match too. | |
7395 | ||
e68cb8e0 PA |
7396 | 2017-09-04 Pedro Alves <palves@redhat.com> |
7397 | ||
7398 | * cp-namespace.c (cp_search_static_and_baseclasses): Handle | |
7399 | function/method scopes; lookup the nested name as a function local | |
7400 | static variable. | |
7401 | ||
858be34c PA |
7402 | 2017-09-04 Pedro Alves <palves@redhat.com> |
7403 | ||
7404 | (%type <voidval>): Add function_method. | |
7405 | * c-exp.y (exp): New production for calls with no arguments. | |
7406 | (function_method, function_method_void_or_typelist): New | |
7407 | productions. | |
7408 | (exp): New production for "method()::static_var". | |
7409 | * eval.c (evaluate_subexp_standard): Handle OP_FUNC_STATIC_VAR. | |
7410 | * expprint.c (print_subexp_standard, dump_subexp_body_standard): | |
7411 | Handle OP_FUNC_STATIC_VAR. | |
7412 | * parse.c (operator_length_standard): | |
7413 | Handle OP_FUNC_STATIC_VAR. | |
7414 | ||
dd5901a6 PA |
7415 | 2017-09-04 Pedro Alves <palves@redhat.com> |
7416 | ||
7417 | * eval.c (evaluate_subexp_standard): Remove UNOP_MEMVAL_TLS | |
7418 | handling. | |
7419 | * expprint.c (print_subexp_standard, dump_subexp_body_standard): | |
7420 | Ditto. | |
7421 | * parse.c (operator_length_standard, operator_check_standard): | |
7422 | Ditto. | |
7423 | * std-operator.def (UNOP_MEMVAL_TLS): Delete. | |
7424 | ||
46a4882b PA |
7425 | 2017-09-04 Pedro Alves <palves@redhat.com> |
7426 | ||
7427 | * ax-gdb.c: Include "typeprint.h". | |
7428 | (gen_expr_for_cast): New function. | |
7429 | (gen_expr) <OP_CAST, OP_CAST_TYPE>: Use it. | |
7430 | <OP_VAR_VALUE, OP_MSYM_VAR_VALUE>: Error out if the variable's | |
7431 | type is unknown. | |
7432 | * dwarf2read.c (new_symbol_full): Fallback to int instead of | |
7433 | nodebug_data_symbol. | |
7434 | * eval.c: Include "typeprint.h". | |
7435 | (evaluate_subexp_standard) <OP_VAR_VALUE, OP_VAR_MSYM_VALUE>: | |
7436 | Error out if symbol has unknown type. | |
7437 | <UNOP_CAST, UNOP_CAST_TYPE>: Common bits factored out to | |
7438 | evaluate_subexp_for_cast. | |
7439 | (evaluate_subexp_for_address, evaluate_subexp_for_sizeof): Handle | |
7440 | OP_VAR_MSYM_VALUE. | |
7441 | (evaluate_subexp_for_cast): New function. | |
7442 | * gdbtypes.c (init_nodebug_var_type): New function. | |
7443 | (objfile_type): Use it to initialize types of variables with no | |
7444 | debug info. | |
7445 | * typeprint.c (error_unknown_type): New. | |
7446 | * typeprint.h (error_unknown_type): New declaration. | |
7447 | * compile/compile-c-types.c (convert_type_basic): Handle | |
7448 | TYPE_CODE_ERROR; warn and fallback to int for variables with | |
7449 | unknown type. | |
7450 | ||
fe13dfec PA |
7451 | 2017-09-04 Pedro Alves <palves@redhat.com> |
7452 | ||
7453 | * eval.c (evaluate_var_value): New function, factored out from ... | |
7454 | (evaluate_subexp_standard): ... here. | |
7455 | ||
d008ee21 PA |
7456 | 2017-09-04 Pedro Alves <palves@redhat.com> |
7457 | ||
7458 | * eval.c (evaluate_subexp_standard) <UNOP_COMPLEMENT, UNOP_ADDR>: | |
7459 | Remove useless assignments to 'op'. | |
7460 | ||
827d0c51 PA |
7461 | 2017-09-04 Pedro Alves <palves@redhat.com> |
7462 | ||
7463 | * eval.c (eval_skip_value): New function. | |
7464 | (evaluate_subexp_standard): Use it. | |
7465 | ||
2c5a2be1 PA |
7466 | 2017-09-04 Pedro Alves <palves@redhat.com> |
7467 | ||
7468 | * eval.c (evaluate_subexp_standard): <OP_FUNCALL>: Extract | |
7469 | function name from symbol/minsym and pass it to | |
7470 | error_call_unknown_return_type. | |
7471 | ||
74ea4be4 PA |
7472 | 2017-09-04 Pedro Alves <palves@redhat.com> |
7473 | ||
7474 | * ada-lang.c (resolve_subexp): Handle OP_VAR_MSYM_VALUE. | |
7475 | * ax-gdb.c (gen_msym_var_ref): New function. | |
7476 | (gen_expr): Handle OP_VAR_MSYM_VALUE. | |
7477 | * eval.c (evaluate_var_msym_value): New function. | |
7478 | * eval.c (evaluate_subexp_standard): Handle OP_VAR_MSYM_VALUE. | |
7479 | <OP_FUNCALL>: Extract function name from symbol/minsym and pass it | |
7480 | to call_function_by_hand. | |
7481 | * expprint.c (print_subexp_standard, dump_subexp_body_standard): | |
7482 | Handle OP_VAR_MSYM_VALUE. | |
7483 | (union exp_element) <msymbol>: New field. | |
7484 | * minsyms.h (struct type): Forward declare. | |
7485 | (find_minsym_type_and_address): Declare. | |
7486 | * parse.c (write_exp_elt_msym): New function. | |
7487 | (write_exp_msymbol): Delete, refactored as ... | |
7488 | (find_minsym_type_and_address): ... this new function. | |
7489 | (write_exp_msymbol): Reimplement using OP_VAR_MSYM_VALUE. | |
7490 | (operator_length_standard, operator_check_standard): Handle | |
7491 | OP_VAR_MSYM_VALUE. | |
7492 | * std-operator.def (OP_VAR_MSYM_VALUE): New. | |
7493 | ||
7022349d PA |
7494 | 2017-09-04 Pedro Alves <palves@redhat.com> |
7495 | ||
7496 | * ada-lang.c (ada_evaluate_subexp) <TYPE_CODE_FUNC>: Don't handle | |
7497 | TYPE_GNU_IFUNC specially here. Throw error if return type is | |
7498 | unknown. | |
7499 | * ada-typeprint.c (print_func_type): Handle functions with unknown | |
7500 | return type. | |
7501 | * c-typeprint.c (c_type_print_base): Handle functions and methods | |
7502 | with unknown return type. | |
7503 | * compile/compile-c-symbols.c (convert_symbol_bmsym) | |
7504 | <mst_text_gnu_ifunc>: Use nodebug_text_gnu_ifunc_symbol. | |
7505 | * compile/compile-c-types.c: Include "objfiles.h". | |
7506 | (convert_func): For functions with unknown return type, warn and | |
7507 | default to int. | |
7508 | * compile/compile-object-run.c (compile_object_run): Adjust call | |
7509 | to call_function_by_hand_dummy. | |
7510 | * elfread.c (elf_gnu_ifunc_resolve_addr): Adjust call to | |
7511 | call_function_by_hand. | |
7512 | * eval.c (evaluate_subexp_standard): Adjust calls to | |
7513 | call_function_by_hand. Handle functions and methods with unknown | |
7514 | return type. Pass expect_type to call_function_by_hand. | |
7515 | * f-typeprint.c (f_type_print_base): Handle functions with unknown | |
7516 | return type. | |
7517 | * gcore.c (call_target_sbrk): Adjust call to | |
7518 | call_function_by_hand. | |
7519 | * gdbtypes.c (objfile_type): Leave nodebug text symbol with NULL | |
7520 | return type instead of int. Make nodebug_text_gnu_ifunc_symbol be | |
7521 | an integer address type instead of nodebug. | |
7522 | * guile/scm-value.c (gdbscm_value_call): Adjust call to | |
7523 | call_function_by_hand. | |
7524 | * infcall.c (error_call_unknown_return_type): New function. | |
7525 | (call_function_by_hand): New "default_return_type" parameter. | |
7526 | Pass it down. | |
7527 | (call_function_by_hand_dummy): New "default_return_type" | |
7528 | parameter. Use it instead of defaulting to int. If there's no | |
7529 | default and the return type is unknown, throw an error. If | |
7530 | there's a default return type, and the called function has no | |
7531 | debug info, then assume the function is prototyped. | |
7532 | * infcall.h (call_function_by_hand, call_function_by_hand_dummy): | |
7533 | New "default_return_type" parameter. | |
7534 | (error_call_unknown_return_type): New declaration. | |
7535 | * linux-fork.c (call_lseek): Cast return type of lseek. | |
7536 | (inferior_call_waitpid, checkpoint_command): Adjust calls to | |
7537 | call_function_by_hand. | |
7538 | * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap): Adjust | |
7539 | calls to call_function_by_hand. | |
7540 | * m2-typeprint.c (m2_procedure): Handle functions with unknown | |
7541 | return type. | |
7542 | * objc-lang.c (lookup_objc_class, lookup_child_selector) | |
7543 | (value_nsstring, print_object_command): Adjust calls to | |
7544 | call_function_by_hand. | |
7545 | * p-typeprint.c (pascal_type_print_varspec_prefix): Handle | |
7546 | functions with unknown return type. | |
7547 | (pascal_type_print_func_varspec_suffix): New function. | |
7548 | (pascal_type_print_varspec_suffix) <TYPE_CODE_FUNC, | |
7549 | TYPE_CODE_METHOD>: Use it. | |
7550 | * python/py-value.c (valpy_call): Adjust call to | |
7551 | call_function_by_hand. | |
7552 | * rust-lang.c (rust_evaluate_funcall): Adjust call to | |
7553 | call_function_by_hand. | |
7554 | * valarith.c (value_x_binop, value_x_unop): Adjust calls to | |
7555 | call_function_by_hand. | |
7556 | * valops.c (value_allocate_space_in_inferior): Adjust call to | |
7557 | call_function_by_hand. | |
7558 | * typeprint.c (type_print_unknown_return_type): New function. | |
7559 | * typeprint.h (type_print_unknown_return_type): New declaration. | |
7560 | ||
54990598 PA |
7561 | 2017-09-04 Pedro Alves <palves@redhat.com> |
7562 | ||
7563 | * gdbtypes.c (lookup_function_type_with_arguments): Mark function | |
7564 | types with more than one parameter as prototyped. | |
7565 | ||
9a24775b PA |
7566 | 2017-09-04 Pedro Alves <palves@redhat.com> |
7567 | ||
7568 | * cli/cli-cmds.c (print_disassembly, disassemble_current_function) | |
7569 | (disassemble_command): Use gdb_disassembly_flags instead of bare | |
7570 | int. | |
7571 | * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn) | |
7572 | (dump_insns, do_mixed_source_and_assembly_deprecated) | |
7573 | (do_mixed_source_and_assembly, do_assembly_only, gdb_disassembly): | |
7574 | Use gdb_disassembly_flags instead of bare int. | |
7575 | * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED, DISASSEMBLY_RAW_INSN) | |
7576 | (DISASSEMBLY_OMIT_FNAME, DISASSEMBLY_FILENAME) | |
7577 | (DISASSEMBLY_OMIT_PC, DISASSEMBLY_SOURCE) | |
7578 | (DISASSEMBLY_SPECULATIVE): No longer macros. Instead they're... | |
7579 | (enum gdb_disassembly_flag): ... values of this new enumeration. | |
7580 | (gdb_disassembly_flags): Define. | |
7581 | (gdb_disassembly) | |
7582 | (gdb_pretty_print_disassembler::pretty_print_insn): Use it. | |
7583 | * mi/mi-cmd-disas.c (mi_cmd_disassemble): Use | |
7584 | gdb_disassembly_flags instead of bare int. | |
7585 | * record-btrace.c (btrace_insn_history) | |
7586 | (record_btrace_insn_history, record_btrace_insn_history_range) | |
7587 | (record_btrace_insn_history_from): Use gdb_disassembly_flags | |
7588 | instead of bare int. | |
7589 | * record.c (get_insn_history_modifiers, cmd_record_insn_history): | |
7590 | Use gdb_disassembly_flags instead of bare int. | |
7591 | * target-debug.h (target_debug_print_gdb_disassembly_flags): | |
7592 | Define. | |
7593 | * target-delegates.c: Regenerate. | |
7594 | * target.c (target_insn_history, target_insn_history_from) | |
7595 | (target_insn_history_range): Use gdb_disassembly_flags instead of | |
7596 | bare int. | |
7597 | * target.h: Include "disasm.h". | |
7598 | (struct target_ops) <to_insn_history, to_insn_history_from, | |
7599 | to_insn_history_range>: Use gdb_disassembly_flags instead of bare | |
7600 | int. | |
7601 | (target_insn_history, target_insn_history_from) | |
7602 | (target_insn_history_range): Use gdb_disassembly_flags instead of | |
7603 | bare int. | |
7604 | ||
80a65e9b SM |
7605 | 2017-09-04 Simon Marchi <simon.marchi@ericsson.com> |
7606 | ||
7607 | * cli/cli-script.c (build_command_line): For if/while commands, | |
7608 | check whether args is empty. | |
7609 | ||
6b66338c SM |
7610 | 2017-09-04 Simon Marchi <simon.marchi@ericsson.com> |
7611 | ||
7612 | * cli/cli-script.h (enum misc_command_type): Move from defs.h. | |
7613 | (enum command_control_type): Likewise. | |
7614 | (struct command_line): Likewise. | |
7615 | (free_command_lines): Likewise. | |
7616 | (struct command_lines_deleter): Likewise. | |
7617 | (command_line_up): Likewise. | |
7618 | (read_command_lines): Likewise. | |
7619 | (read_command_lines_1): Likewise. | |
7620 | * defs.h (enum misc_command_type): Move to cli/cli-script.h. | |
7621 | (enum command_control_type): Likewise. | |
7622 | (struct command_line): Likewise. | |
7623 | (free_command_lines): Likewise. | |
7624 | (struct command_lines_deleter): Likewise. | |
7625 | (command_line_up): Likewise. | |
7626 | (read_command_lines): Likewise. | |
7627 | (read_command_lines_1): Likewise. | |
7628 | * breakpoint.h: Include cli/cli-script.h. | |
7629 | * extension-priv.h: Likewise. | |
7630 | * gdbcmd.h: Likewise. | |
7631 | ||
51abb421 PA |
7632 | 2017-09-04 Pedro Alves <palves@redhat.com> |
7633 | ||
7634 | * ada-lang.c (is_known_support_routine): Move sal declaration to | |
7635 | where it is initialized. | |
7636 | * breakpoint.c (create_internal_breakpoint, init_catchpoint) | |
7637 | (parse_breakpoint_sals, decode_static_tracepoint_spec) | |
7638 | (clear_command, update_static_tracepoint): Remove init_sal | |
7639 | references. Move declarations closer to initializations. | |
7640 | * cli/cli-cmds.c (list_command): Move sal declarations closer to | |
7641 | initializations. | |
7642 | * elfread.c (elf_gnu_ifunc_resolver_stop): Remove init_sal | |
7643 | references. Move sal declarations closer to initializations. | |
7644 | * frame.c (find_frame_sal): Return a symtab_and_line via function | |
7645 | return instead of output parameter. Remove init_sal references. | |
7646 | * frame.h (find_frame_sal): Return a symtab_and_line via function | |
7647 | return instead of output parameter. | |
7648 | * guile/scm-frame.c (gdbscm_frame_sal): Adjust. | |
7649 | * guile/scm-symtab.c (stscm_make_sal_smob): Use in-place new | |
7650 | instead of memset. | |
7651 | (gdbscm_find_pc_line): Remove init_sal reference. | |
7652 | * infcall.c (call_function_by_hand_dummy): Remove init_sal | |
7653 | references. Move declarations closer to initializations. | |
7654 | * infcmd.c (set_step_frame): Update. Move declarations closer to | |
7655 | initializations. | |
7656 | (finish_backward): Remove init_sal references. Move declarations | |
7657 | closer to initializations. | |
7658 | * infrun.c (process_event_stop_test, handle_step_into_function) | |
7659 | (insert_hp_step_resume_breakpoint_at_frame) | |
7660 | (insert_step_resume_breakpoint_at_caller): Likewise. | |
7661 | * linespec.c (create_sals_line_offset, decode_digits_ordinary) | |
7662 | (symbol_to_sal): Likewise. | |
7663 | * probe.c (parse_probes_in_pspace): Remove init_sal reference. | |
7664 | * python/py-frame.c (frapy_find_sal): Move sal declaration closer | |
7665 | to its initialization. | |
7666 | * reverse.c (save_bookmark_command): Use new/delete. Remove | |
7667 | init_sal references. Move declarations closer to initializations. | |
7668 | * source.c (get_current_source_symtab_and_line): Remove brace | |
7669 | initialization. | |
7670 | (set_current_source_symtab_and_line): Now takes the sal by const | |
7671 | reference. Remove brace initialization. | |
7672 | (line_info): Remove init_sal reference. | |
7673 | * source.h (set_current_source_symtab_and_line): Now takes a | |
7674 | symtab_and_line via const reference. | |
7675 | * stack.c (set_current_sal_from_frame): Adjust. | |
7676 | (print_frame_info): Adjust. | |
7677 | (get_last_displayed_sal): Return the sal via function return | |
7678 | instead of via output parameter. Simplify. | |
7679 | (frame_info): Adjust. | |
7680 | * stack.h (get_last_displayed_sal): Return the sal via function | |
7681 | return instead of via output parameter. | |
7682 | * symtab.c (init_sal): Delete. | |
7683 | (find_pc_sect_line): Remove init_sal references. Move | |
7684 | declarations closer to initializations. | |
7685 | (find_function_start_sal): Remove init_sal references. Move | |
7686 | declarations closer to initializations. | |
7687 | * symtab.h (struct symtab_and_line): In-class initialize all | |
7688 | fields. | |
7689 | * tracepoint.c (set_traceframe_context) | |
7690 | (print_one_static_tracepoint_marker): Remove init_sal references. | |
7691 | Move declarations closer to initializations. | |
7692 | * tui/tui-disasm.c (tui_show_disassem_and_update_source): Adjust. | |
7693 | * tui/tui-stack.c (tui_show_frame_info): Adjust. Move | |
7694 | declarations closer to initializations. | |
7695 | * tui/tui-winsource.c (tui_update_source_window_as_is): Remove | |
7696 | init_sal references. Adjust. | |
7697 | ||
6c5b2ebe PA |
7698 | 2017-09-04 Pedro Alves <palves@redhat.com> |
7699 | ||
7700 | * ax-gdb.c (agent_command_1): Use range-for. | |
7701 | * break-catch-throw.c (re_set_exception_catchpoint): Update. | |
7702 | * breakpoint.c: Include "common/array-view.h". | |
7703 | (init_breakpoint_sal, create_breakpoint_sal): Change sals | |
7704 | parameter from struct symtabs_and_lines to | |
7705 | array_view<symtab_and_line>. Adjust. Use range-for. Update. | |
7706 | (breakpoint_sals_to_pc): Change sals parameter from struct | |
7707 | symtabs_and_lines to std::vector reference. | |
7708 | (check_fast_tracepoint_sals): Change sals parameter from struct | |
7709 | symtabs_and_lines to std::array_view. Use range-for. | |
7710 | (decode_static_tracepoint_spec): Return a std::vector instead of | |
7711 | symtabs_and_lines. Update. | |
7712 | (create_breakpoint): Update. | |
7713 | (break_range_command, until_break_command, clear_command): Update. | |
7714 | (base_breakpoint_decode_location, bkpt_decode_location) | |
7715 | (bkpt_probe_create_sals_from_location) | |
7716 | (bkpt_probe_decode_location, tracepoint_decode_location) | |
7717 | (tracepoint_probe_decode_location) | |
7718 | (strace_marker_create_sals_from_location): Return a std::vector | |
7719 | instead of symtabs_and_lines. | |
7720 | (strace_marker_create_breakpoints_sal): Update. | |
7721 | (strace_marker_decode_location): Return a std::vector instead of | |
7722 | symtabs_and_lines. Update. | |
7723 | (update_breakpoint_locations): Change struct symtabs_and_lines | |
7724 | parameters to gdb::array_view. Adjust. | |
7725 | (location_to_sals): Return a std::vector instead of | |
7726 | symtabs_and_lines. Update. | |
7727 | (breakpoint_re_set_default): Use std::vector instead of struct | |
7728 | symtabs_and_lines. | |
7729 | (decode_location_default): Return a std::vector instead of | |
7730 | symtabs_and_lines. Update. | |
7731 | * breakpoint.h: Include "common/array-view.h". | |
7732 | (struct breakpoint_ops) <decode_location>: Now returns a | |
7733 | std::vector instead of returning a symtabs_and_lines via output | |
7734 | parameter. | |
7735 | (update_breakpoint_locations): Change sals parameters to use | |
7736 | gdb::array_view. | |
7737 | * cli/cli-cmds.c (edit_command, list_command): Update to use | |
7738 | std::vector and gdb::array_view. | |
7739 | (ambiguous_line_spec): Adjust to use gdb::array_view and | |
7740 | range-for. | |
7741 | (compare_symtabs): Rename to ... | |
7742 | (cmp_symtabs): ... this. Change parameters to symtab_and_line | |
7743 | const reference and adjust. | |
7744 | (filter_sals): Rewrite using std::vector and standard algorithms. | |
7745 | * elfread.c (elf_gnu_ifunc_resolver_return_stop): Simplify. | |
7746 | (jump_command): Update to use std::vector. | |
7747 | * linespec.c (struct linespec_state) <canonical_names>: Update | |
7748 | comment. | |
7749 | (add_sal_to_sals_basic): Delete. | |
7750 | (add_sal_to_sals, filter_results, convert_results_to_lsals) | |
7751 | (decode_line_2, create_sals_line_offset) | |
7752 | (convert_address_location_to_sals, convert_linespec_to_sals) | |
7753 | (convert_explicit_location_to_sals, parse_linespec) | |
7754 | (event_location_to_sals, decode_line_full, decode_line_1) | |
7755 | (decode_line_with_current_source) | |
7756 | (decode_line_with_last_displayed, decode_objc) | |
7757 | (decode_digits_list_mode, decode_digits_ordinary, minsym_found) | |
7758 | (linespec_result::~linespec_result): Adjust to use std::vector | |
7759 | instead of symtabs_and_lines. | |
7760 | * linespec.h (linespec_sals::sals): Now a std::vector. | |
7761 | (struct linespec_result): Use std::vector, bool, and in-class | |
7762 | initialization. | |
7763 | (decode_line_1, decode_line_with_current_source) | |
7764 | (decode_line_with_last_displayed): Return std::vector. | |
7765 | * macrocmd.c (info_macros_command): Use std::vector. | |
7766 | * mi/mi-main.c (mi_cmd_trace_find): Use std::vector. | |
7767 | * probe.c (parse_probes_in_pspace, parse_probes): Adjust to use | |
7768 | std::vector. | |
7769 | * probe.h (parse_probes): Return a std::vector. | |
7770 | * python/python.c (gdbpy_decode_line): Use std::vector and | |
7771 | gdb::array_view. | |
7772 | * source.c (select_source_symtab, line_info): Use std::vector. | |
7773 | * stack.c (func_command): Use std::vector. | |
7774 | * symtab.h (struct symtabs_and_lines): Delete. | |
7775 | * tracepoint.c (tfind_line_command, scope_info): Use std::vector. | |
7776 | ||
7c44b49c PA |
7777 | 2017-09-04 Pedro Alves <palves@redhat.com> |
7778 | ||
7779 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add | |
7780 | unittests/array-view-selftests.c. | |
7781 | (SUBDIR_UNITTESTS_OBS): Add array-view-selftests.o. | |
7782 | * common/array-view.h: New file. | |
7783 | * unittests/array-view-selftests.c: New file. | |
7784 | ||
e439fa14 PA |
7785 | 2017-09-04 Pedro Alves <palves@redhat.com> |
7786 | ||
7787 | * cli/cli-cmds.c (edit_command): Pass message to | |
7788 | ambiguous_line_spec. | |
7789 | (list_command): Pass message to ambiguous_line_spec. Say | |
7790 | "first"/"last" instead of "start" and "end" to be consistent with | |
7791 | the manual. | |
7792 | (ambiguous_line_spec): Add 'format' and vararg parameters. Use | |
7793 | them to print formatted message. | |
7794 | ||
7525b645 PA |
7795 | 2017-09-04 Pedro Alves <palves@redhat.com> |
7796 | ||
7797 | * btrace.c (ftrace_add_pt): Pass btrace_insn to | |
7798 | ftrace_update_insns by reference instead of pointer. | |
7799 | ||
badc0020 YQ |
7800 | 2017-09-04 Yao Qi <yao.qi@linaro.org> |
7801 | ||
7802 | * i386-go32-tdep.c: Include x86-xstate.h. | |
7803 | (i386_go32_init_abi): Call i386_target_description. | |
7804 | * i386-tdep.c (i386_target_description): Return tdesc_i386_mmx | |
7805 | if xcr0 is X86_XSTATE_X87_MASK. | |
7806 | * i386-tdep.h (tdesc_i386): Remove the declaration. | |
7807 | (tdesc_i386_mmx): Likewise. | |
7808 | ||
d78bdb54 YQ |
7809 | 2017-09-04 Yao Qi <yao.qi@linaro.org> |
7810 | ||
7811 | * i386-fbsd-tdep.c (i386fbsd_core_read_xcr0): Return | |
7812 | X86_XSTATE_SSE_MASK instead of 0. | |
7813 | ||
ca1fa5ee YQ |
7814 | 2017-09-04 Yao Qi <yao.qi@linaro.org> |
7815 | ||
7816 | * amd64-fbsd-nat.c (amd64fbsd_read_description): Call | |
7817 | i386_target_description. | |
7818 | * i386-fbsd-nat.c (i386fbsd_read_description): Call | |
7819 | i386_target_description. | |
7820 | * i386-tdep.c (i386_gdbarch_init): Likewise. | |
7821 | ||
2434b019 YQ |
7822 | 2017-09-04 Yao Qi <yao.qi@linaro.org> |
7823 | ||
7824 | * amd64-darwin-tdep.c: Include "x86-xstate.h". | |
7825 | (x86_darwin_init_abi_64): Call amd64_target_description. | |
7826 | * amd64-dicos-tdep.c: Likewise. | |
7827 | * amd64-fbsd-nat.c: Likewise. | |
7828 | * amd64-fbsd-tdep.c: Likewise. | |
7829 | * amd64-nbsd-tdep.c: Likewise. | |
7830 | * amd64-obsd-tdep.c: Likewise. | |
7831 | * amd64-sol2-tdep.c: Likewise. | |
7832 | * amd64-windows-tdep.c: Likewise. | |
7833 | * amd64-tdep.h (tdesc_amd64): Remove the declaration. | |
7834 | ||
0860c437 SM |
7835 | 2017-09-04 Simon Marchi <simon.marchi@ericsson.com> |
7836 | ||
7837 | * btrace.h (btrace_insn_s, DEF_VEC_O (btrace_insn_s)): Remove. | |
7838 | (btrace_function) <insn>: Change type to use std::vector. | |
7839 | * btrace.c (ftrace_debug, ftrace_call_num_insn, | |
7840 | ftrace_find_call, ftrace_new_gap, ftrace_update_function, | |
7841 | ftrace_update_insns, ftrace_compute_global_level_offset, | |
7842 | btrace_stitch_bts, btrace_clear, btrace_insn_get, | |
7843 | btrace_insn_end, btrace_insn_next, btrace_insn_prev): Adjust to | |
7844 | change to std::vector. | |
7845 | (ftrace_update_insns): Adjust to change to std::vector, change | |
7846 | type of INSN parameter. | |
7847 | (btrace_compute_ftrace_bts): Adjust call to ftrace_update_insns. | |
7848 | * record-btrace.c (btrace_call_history_insn_range, | |
7849 | btrace_compute_src_line_range, | |
7850 | record_btrace_frame_prev_register): Adjust to change to | |
7851 | std::vector. | |
7852 | * python/py-record-btrace.c (recpy_bt_func_instructions): Adjust | |
7853 | to change to std::vector. | |
7854 | ||
0638b7f9 TT |
7855 | 2017-09-03 Tom Tromey <tom@tromey.com> |
7856 | ||
7857 | * corefile.c (reopen_exec_file): Use std::string. | |
7858 | ||
8f84fb0e TT |
7859 | 2017-09-03 Tom Tromey <tom@tromey.com> |
7860 | ||
7861 | * compile/compile.c (compile_register_name_mangled): Return | |
7862 | std::string. | |
7863 | * compile/compile-loc2c.c (pushf_register_address): Update. | |
7864 | (pushf_register): Update. | |
7865 | * compile/compile-c-types.c (convert_array): Update. | |
7866 | * compile/compile-c-symbols.c (generate_vla_size): Update. | |
7867 | (error_symbol_once): Use a gdb::unique_xmalloc_ptr. | |
7868 | (symbol_substitution_name): Return a gdb::unique_xmalloc_ptr. | |
7869 | (convert_one_symbol): Update. | |
7870 | (generate_c_for_for_one_variable): Update. | |
7871 | * compile/compile-c-support.c (c_get_range_decl_name): Return a | |
7872 | std::string. | |
7873 | (generate_register_struct): Update. | |
7874 | * compile/compile-internal.h (c_get_range_decl_name): Return a | |
7875 | std::string. | |
7876 | (compile_register_name_mangled): Return std::string. | |
7877 | ||
18e9961f TT |
7878 | 2017-09-03 Tom Tromey <tom@tromey.com> |
7879 | ||
7880 | * utils.c (perror_string): Return a std::string. | |
7881 | (throw_perror_with_name, perror_warning_with_name): Update. | |
7882 | ||
45343786 TT |
7883 | 2017-09-03 Tom Tromey <tom@tromey.com> |
7884 | ||
7885 | * demangle.c (demangle_command): Use std::string, | |
7886 | unique_xmalloc_ptr. | |
7887 | ||
b57af503 TT |
7888 | 2017-09-03 Tom Tromey <tom@tromey.com> |
7889 | ||
7890 | * cli/cli-setshow.c (do_set_command): Use std::string. | |
7891 | ||
6eecf35f TT |
7892 | 2017-09-03 Tom Tromey <tom@tromey.com> |
7893 | ||
7894 | * cli/cli-cmds.c (cd_command): Use gdb::unique_xmalloc_ptr. | |
7895 | ||
56496dd4 TT |
7896 | 2017-09-03 Tom Tromey <tom@tromey.com> |
7897 | ||
7898 | * mi/mi-interp.c (mi_cmd_interpreter_exec): Use std::string. | |
7899 | ||
e91a1fa7 TT |
7900 | 2017-09-03 Tom Tromey <tom@tromey.com> |
7901 | ||
7902 | * mi/mi-cmd-env.c (env_execute_cli_command): Use | |
7903 | gdb::unique_xmalloc_ptr. | |
7904 | ||
7ffd83d7 TT |
7905 | 2017-09-03 Tom Tromey <tom@tromey.com> |
7906 | ||
7907 | * thread.c (print_thread_info_1): Use string_printf. | |
7908 | (thread_apply_command, thread_apply_all_command): Use | |
7909 | std::string. | |
7910 | ||
1ccbe998 TT |
7911 | 2017-09-03 Tom Tromey <tom@tromey.com> |
7912 | ||
7913 | * valprint.c (val_print_string): Update. | |
7914 | * gdbcore.h (memory_error_message): Return std::string. | |
7915 | * corefile.c (memory_error_message): Return std::string. | |
7916 | (memory_error): Update. | |
7917 | * breakpoint.c (insert_bp_location): Update. | |
7918 | ||
23fdd69e SM |
7919 | 2017-09-03 Simon Marchi <simon.marchi@ericsson.com> |
7920 | ||
7921 | * target/waitstatus.h (target_waitstatus_to_string): Change | |
7922 | return type to std::string. | |
7923 | * target/waitstatus.c (target_waitstatus_to_string): Return | |
7924 | std::string. | |
7925 | * target.h (target_waitstatus_to_string): Remove declaration. | |
7926 | * infrun.c (resume, clear_proceed_status_thread, | |
7927 | print_target_wait_results, do_target_wait, save_waitstatus, | |
7928 | stop_all_threads): Adjust. | |
7929 | * record-btrace.c (record_btrace_wait): Adjust. | |
7930 | * target-debug.h | |
7931 | (target_debug_print_struct_target_waitstatus_p): Adjust. | |
7932 | ||
5c811d30 JK |
7933 | 2017-09-01 Jan Kratochvil <jan.kratochvil@redhat.com> |
7934 | ||
7935 | PR gdb/22046 | |
7936 | * nat/linux-procfs.c (parse_proc_status_state): Fix PROC_STATE_STOPPED | |
7937 | detection. | |
7938 | ||
0a2dde4a SDJ |
7939 | 2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com> |
7940 | ||
7941 | * NEWS (Changes since GDB 8.0): Add entry mentioning new support | |
7942 | for setting/unsetting environment variables on the remote target. | |
7943 | (New remote packets): Add entries for QEnvironmentHexEncoded, | |
7944 | QEnvironmentUnset and QEnvironmentReset. | |
7945 | * common/environ.c (gdb_environ::operator=): Extend method to | |
7946 | handle m_user_set_env_list and m_user_unset_env_list. | |
7947 | (gdb_environ::clear): Likewise. | |
7948 | (match_var_in_string): Change type of first parameter from 'char | |
7949 | *' to 'const char *'. | |
7950 | (gdb_environ::set): Extend method to handle | |
7951 | m_user_set_env_list and m_user_unset_env_list. | |
7952 | (gdb_environ::unset): Likewise. | |
7953 | (gdb_environ::clear_user_set_env): New method. | |
7954 | (gdb_environ::user_set_envp): Likewise. | |
7955 | (gdb_environ::user_unset_envp): Likewise. | |
7956 | * common/environ.h (gdb_environ): Handle m_user_set_env_list and | |
7957 | m_user_unset_env_list on move constructor/assignment. | |
7958 | (unset): Add new default parameter 'update_unset_list = true'. | |
7959 | (clear_user_set_env): New method. | |
7960 | (user_set_envp): Likewise. | |
7961 | (user_unset_envp): Likewise. | |
7962 | (m_user_set_env_list): New std::set. | |
7963 | (m_user_unset_env_list): Likewise. | |
7964 | * common/rsp-low.c (hex2str): New function. | |
7965 | (bin2hex): New overload for bin2hex function. | |
7966 | * common/rsp-low.c (hex2str): New prototype. | |
7967 | (str2hex): New overload prototype. | |
7968 | * remote.c: Include "environ.h". Add QEnvironmentHexEncoded, | |
7969 | QEnvironmentUnset and QEnvironmentReset. | |
7970 | (remote_protocol_features): Add QEnvironmentHexEncoded, | |
7971 | QEnvironmentUnset and QEnvironmentReset packets. | |
7972 | (send_environment_packet): New function. | |
7973 | (extended_remote_environment_support): Likewise. | |
7974 | (extended_remote_create_inferior): Call | |
7975 | extended_remote_environment_support. | |
7976 | (_initialize_remote): Add QEnvironmentHexEncoded, | |
7977 | QEnvironmentUnset and QEnvironmentReset packet configs. | |
7978 | * unittests/environ-selftests.c (gdb_selftest_env_var): | |
7979 | New variable. | |
7980 | (test_vector_initialization): New function. | |
7981 | (test_init_from_host_environ): Likewise. | |
7982 | (test_reinit_from_host_environ): Likewise. | |
7983 | (test_set_A_unset_B_unset_A_cannot_find_A_can_find_B): | |
7984 | Likewise. | |
7985 | (test_unset_set_empty_vector): Likewise. | |
7986 | (test_vector_clear): Likewise. | |
7987 | (test_std_move): Likewise. | |
7988 | (test_move_constructor): | |
7989 | (test_self_move): Likewise. | |
7990 | (test_set_unset_reset): Likewise. | |
7991 | (run_tests): Rewrite in terms of the functions above. | |
7992 | ||
654670a4 WP |
7993 | 2017-08-31 Weimin Pan <weimin.pan@oracle.com> |
7994 | ||
7995 | * sparc64-tdep.c (adi_stat_t): Fix comment formatting. | |
7996 | (adi_available): Use a temp variable of type CORE_ADDR as argument | |
7997 | 3 when calling target_auxv_search. | |
7998 | (adi_normalize_address): Use masks and xor operators to calculate | |
7999 | normalized address. | |
8000 | (adi_read_versions, adi_write_versions, adi_print_versions) | |
8001 | (do_examine, do_assign): Use paddress. | |
8002 | ||
7755ddb7 JB |
8003 | 2017-08-29 John Baldwin <jhb@FreeBSD.org> |
8004 | ||
8005 | * mips-fbsd-nat.c (getfpregs_supplies): Return true for FIR. | |
8006 | * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Split supply of FSR | |
8007 | out of loop and add supply of FIR. | |
8008 | (mips_fbsd_collect_fpregs): Split collect of FSR out of loop and | |
8009 | add collect of FIR. | |
8010 | ||
fd437cbc SM |
8011 | 2017-08-28 Simon Marchi <simon.marchi@ericsson.com> |
8012 | ||
3804a343 | 8013 | PR gdb/21827 |
fd437cbc SM |
8014 | * cli/cli-script.c (define_command): Don't convert command name |
8015 | to lower case. | |
8016 | ||
988f6b3d JB |
8017 | 2017-08-25 Joel Brobecker <brobecker@adacore.com> |
8018 | ||
8019 | * ada-lang.c (ada_lookup_struct_elt_type): Remove parameter "dispp". | |
8020 | Update all callers accordingly. Remove all code blocks handling | |
8021 | the case where DISPP is not NULL. | |
8022 | ||
663c44ac JK |
8023 | 2017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com> |
8024 | ||
8025 | PR symtab/22003 | |
8026 | * dwarf2read.c (dwarf2_const_value_attr, dump_die_shallow) | |
8027 | (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes) | |
8028 | (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_implicit_const. | |
8029 | ||
f1902523 JK |
8030 | 2017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com> |
8031 | ||
8032 | * dwarf2read.c (build_type_psymtabs_reader): New prototype. | |
8033 | (process_psymtab_comp_unit): Accept IS_DEBUG_TYPES. | |
8034 | (read_comp_units_from_section): New parameter abbrev_section, use | |
8035 | read_and_check_comp_unit_head, allocate signatured_type if needed. | |
8036 | (create_all_comp_units): Update read_comp_units_from_section caller. | |
8037 | ||
87215ad1 SDJ |
8038 | 2017-08-23 Pedro Alves <palves@redhat.com> |
8039 | ||
8040 | PR remote/21852 | |
8041 | * remote.c (add_current_inferior_and_thread): Set inferior_ptid | |
8042 | to null_ptid and switch to thread without reading the registers | |
8043 | after adding the inferior. | |
8044 | ||
6e41ddec JK |
8045 | 2017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com> |
8046 | ||
8047 | * NEWS (Changes since GDB 8.0): Add set compile-gcc and show | |
8048 | compile-gcc. | |
8049 | * compile/compile.c (compile_gcc, show_compile_gcc): New. | |
8050 | (compile_to_object): Implement compile_gcc. | |
8051 | (_initialize_compile): Install "set compile-gcc". Initialize | |
8052 | compile_gcc. | |
8053 | ||
e68c32d5 JK |
8054 | 2017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com> |
8055 | ||
8056 | * compile/compile.c (compile_to_object): Conditionally call | |
8057 | set_verbose. Conditionally call compile or compile_v0. | |
8058 | ||
58afddc6 WP |
8059 | 2017-08-07 Weimin Pan <weimin.pan@oracle.com> |
8060 | ||
8061 | * sparc64-tdep.h: (adi_normalize_address): New export. | |
8062 | * sparc-nat.h: (open_adi_tag_fd): New export. | |
8063 | * sparc64-linux-nat.c: (open_adi_tag_fd): New function. | |
8064 | * sparc64-linux-tdep.c: | |
8065 | (SEGV_ACCADI, SEGV_ADIDERR, SEGV_ADIPERR) New defines. | |
8066 | (sparc64_linux_handle_segmentation_fault): New function. | |
8067 | (sparc64_linux_init_abi): Register | |
8068 | sparc64_linux_handle_segmentation_fault | |
8069 | * sparc64-tdep.c: Include cli-utils.h,gdbcmd.h,auxv.h. | |
8070 | (sparc64_addr_bits_remove): New function. | |
8071 | (sparc64_init_abi): Register sparc64_addr_bits_remove. | |
8072 | (MAX_PROC_NAME_SIZE): New macro. | |
8073 | (AT_ADI_BLKSZ, AT_ADI_NBITS, AT_ADI_UEONADI) New defines. | |
8074 | (sparc64adilist): New variable. | |
8075 | (adi_proc_list): New variable. | |
8076 | (find_adi_info): New function. | |
8077 | (add_adi_info): New function. | |
8078 | (get_adi_info_proc): New function. | |
8079 | (get_adi_info): New function. | |
8080 | (info_adi_command): New function. | |
8081 | (read_maps_entry): New function. | |
8082 | (adi_available): New function. | |
8083 | (adi_normalize_address): New function. | |
8084 | (adi_align_address): New function. | |
8085 | (adi_convert_byte_count): New function. | |
8086 | (adi_tag_fd): New function. | |
8087 | (adi_is_addr_mapped): New function. | |
8088 | (adi_read_versions): New function. | |
8089 | (adi_write_versions): New function. | |
8090 | (adi_print_versions): New function. | |
8091 | (do_examine): New function. | |
8092 | (do_assign): New function. | |
8093 | (adi_examine_command): New function. | |
8094 | (adi_assign_command): New function. | |
8095 | (_initialize_sparc64_adi_tdep): New function. | |
8096 | ||
11db9430 SM |
8097 | 2017-08-22 Simon Marchi <simon.marchi@ericsson.com> |
8098 | ||
8099 | * breakpoint.c (breakpoints_info): Rename to ... | |
8100 | (info_breakpoints_command): ... this. | |
8101 | (watchpoints_info): Rename to ... | |
8102 | (info_watchpoints_command): ... this. | |
8103 | (tracepoints_info): Rename to ... | |
8104 | (info_tracepoints_command): ... this. | |
8105 | (_initialize_breakpoint): Adjust. | |
8106 | * dcache.c (dcache_info): Rename to ... | |
8107 | (info_display_command): ... this. | |
8108 | (_initialize_dcache): Adjust. | |
8109 | * frame.h (args_info): Rename to ... | |
8110 | (info_args_command): ... this. | |
8111 | (locals_info): Rename to ... | |
8112 | (info_locals_command): ... this. | |
8113 | * infcmd.c (nofp_registers_info): Rename to ... | |
8114 | (info_registers_command): ... this. | |
8115 | (float_info): Rename to ... | |
8116 | (info_float_command): ... this. | |
8117 | (program_info): Rename to ... | |
8118 | (info_program_command): ... this. | |
8119 | (all_registers_info): Rename to ... | |
8120 | (info_all_registers_command): ... this. | |
8121 | (vector_info): Rename to ... | |
8122 | (info_vector_command): ... this. | |
8123 | (float_info): Rename to ... | |
8124 | (info_float_command): ... this. | |
8125 | (_initialize_infcmd): Adjust. | |
8126 | * inferior.h (term_info): Rename to ... | |
8127 | (info_terminal_command): ... this. | |
8128 | * inflow.c (term_info): Rename to ... | |
8129 | (info_terminal_command): ... this. | |
8130 | (_initialize_inflow): Adjust. | |
8131 | * infrun.c (signals_info): Rename to ... | |
8132 | (info_signals_command): ... this. | |
8133 | (_initialize_infrun): Adjust. | |
8134 | * objc-lang.c (classes_info): Rename to ... | |
8135 | (info_classes_command): ... this. | |
8136 | (selectors_info): Rename to ... | |
8137 | (info_selectors_command): ... this. | |
8138 | (_initialize_objc_language): Adjust. | |
8139 | * printcmd.c (sym_info): Rename to ... | |
8140 | (info_symbol_command): ... this. | |
8141 | (address_info): Rename to ... | |
8142 | (info_address_command): ... this. | |
8143 | (display_info): Rename to ... | |
8144 | (info_display_command): ... this. | |
8145 | (_initialize_printcmd): Adjust. | |
8146 | * reverse.c (bookmarks_info): Rename to ... | |
8147 | (info_breakpoints_command): ... this. | |
8148 | (_initialize_reverse): Adjust. | |
8149 | * ser-go32.c (dos_info): Rename to ... | |
8150 | (info_serial_command): ... this. | |
8151 | (_initialize_ser_dos): Adjust. | |
8152 | * skip.c (skip_info): Rename to ... | |
8153 | (info_skip_command): ... this. | |
8154 | (_initialize_step_skip): Adjust. | |
8155 | * source.c (line_info): Rename to ... | |
8156 | (info_line_command): ... this. | |
8157 | (source_info): Rename to ... | |
8158 | (info_source_command) | |
8159 | * stack.c (frame_info): Rename to ... | |
8160 | (info_frame_command): ... this. | |
8161 | (locals_info): Rename to ... | |
8162 | (info_locals_command): ... this. | |
8163 | (args_info): Rename to ... | |
8164 | (info_args_command): ... this. | |
8165 | (_initialize_stack): Adjust. | |
8166 | * symtab.c (sources_info): Rename to ... | |
8167 | (info_sources_command): ... this. | |
8168 | (variables_info): Rename to ... | |
8169 | (info_variables_command): ... this. | |
8170 | (functions_info): Rename to ... | |
8171 | (info_functions_command): ... this. | |
8172 | (types_info): Rename to ... | |
8173 | (info_types_command): ... this. | |
8174 | (_initialize_symtab): Adjust. | |
8175 | * target.c (target_info): Rename to ... | |
8176 | (info_target_command): ... this. | |
8177 | (initialize_targets): Adjust. | |
8178 | * tracepoint.c (tvariables_info): Rename to ... | |
8179 | (info_tvariables_command): ... this. | |
8180 | (scope_info): Rename to ... | |
8181 | (info_scope_command): ... this. | |
8182 | (trace_dump_actions): Adjust. | |
8183 | (_initialize_tracepoint): Adjust. | |
8184 | ||
b270e6f9 TT |
8185 | 2017-08-22 Tom Tromey <tom@tromey.com> |
8186 | ||
8187 | * breakpoint.h (install_breakpoint): Update. | |
8188 | * breakpoint.c (add_solib_catchpoint): Update. | |
8189 | (install_breakpoint): Change argument to a std::unique_ptr. | |
8190 | (create_fork_vfork_event_catchpoint): Use std::unique_ptr. | |
8191 | (create_breakpoint_sal, create_breakpoint): Update. | |
8192 | (watch_command_1, catch_exec_command_1) | |
8193 | (strace_marker_create_breakpoints_sal): Use std::unique_ptr. | |
8194 | (add_to_breakpoint_chain): Change argument to a std::unique_ptr. | |
8195 | Return the breakpoint. | |
8196 | (set_raw_breakpoint_without_location, set_raw_breakpoint) | |
8197 | (new_single_step_breakpoint): Update. | |
8198 | * break-catch-throw.c (handle_gnu_v3_exceptions): Use | |
8199 | std::unique_ptr. | |
8200 | * break-catch-syscall.c (create_syscall_event_catchpoint): Use | |
8201 | std::unique_ptr. | |
8202 | * break-catch-sig.c (create_signal_catchpoint): Use | |
8203 | std::unique_ptr. | |
8204 | * ada-lang.c (create_ada_exception_catchpoint): Use | |
8205 | std::unique_ptr. | |
8206 | ||
36bd8eaa TT |
8207 | 2017-08-22 Tom Tromey <tom@tromey.com> |
8208 | ||
8209 | * breakpoint.c (add_solib_catchpoint): Use std::unique_ptr. | |
8210 | ||
56f37645 TT |
8211 | 2017-08-22 Tom Tromey <tom@tromey.com> |
8212 | ||
8213 | * psymtab.c (psymtab_search_name): Return a unique_xmalloc_ptr. | |
8214 | (lookup_partial_symbol): Update. | |
8215 | ||
0b581c69 TT |
8216 | 2017-08-22 Tom Tromey <tom@tromey.com> |
8217 | ||
8218 | * source.h (rewrite_source_path): Return a unique_xmalloc_ptr. | |
8219 | * source.c (rewrite_source_path): Return a unique_xmalloc_ptr. | |
8220 | (find_and_open_source, symtab_to_fullname): Update. | |
8221 | * psymtab.c (psymtab_to_fullname): Update. | |
8222 | ||
14278e1f TT |
8223 | 2017-08-22 Tom Tromey <tom@tromey.com> |
8224 | ||
8225 | * exec.c (exec_file_attach): Update. | |
8226 | * linux-thread-db.c (try_thread_db_load): Update. | |
8227 | * guile/scm-safe-call.c (gdbscm_safe_source_script): Update. | |
8228 | * utils.c (gdb_realpath): Change return type. | |
8229 | (gdb_realpath_keepfile): Update. | |
8230 | (gdb_realpath_check_trailer, gdb_realpath_tests): New functions. | |
8231 | (_initialize_utils): Register the new self test. | |
8232 | * source.c (openp): Update. | |
8233 | (find_and_open_source): Update. | |
8234 | * nto-tdep.c (nto_find_and_open_solib): Update. | |
8235 | * main.c (set_gdb_data_directory): Update. | |
8236 | (captured_main_1): Update. | |
8237 | * dwarf2read.c (dwarf2_get_dwz_file): Update | |
8238 | (dw2_map_symbol_filenames): Update. | |
8239 | * auto-load.c (auto_load_safe_path_vec_update): Update. | |
8240 | (filename_is_in_auto_load_safe_path_vec): Change type of | |
8241 | "filename_realp". | |
8242 | (auto_load_objfile_script): Update. | |
8243 | (file_is_auto_load_safe): Update. Use std::string. | |
8244 | * utils.h (gdb_realpath): Return a gdb::unique_xmalloc_ptr. | |
8245 | ||
4971c9a7 TT |
8246 | 2017-08-22 Tom Tromey <tom@tromey.com> |
8247 | ||
8248 | * utils.c (gdb_realpath_keepfile): Return a | |
8249 | gdb::unique_xmalloc_ptr. | |
8250 | * exec.c (exec_file_attach): Update. | |
8251 | * utils.h (gdb_realpath_keepfile): Return a | |
8252 | gdb::unique_xmalloc_ptr. | |
8253 | ||
e3e41d58 TT |
8254 | 2017-08-22 Tom Tromey <tom@tromey.com> |
8255 | ||
8256 | * compile/compile.c (compile_file_command): Use | |
8257 | gdb::unique_xmalloc_ptr, std::string. | |
8258 | * utils.c (gdb_abspath): Change return type. | |
8259 | * source.c (openp): Update. | |
8260 | * objfiles.c (allocate_objfile): Update. | |
8261 | * main.c (set_gdb_data_directory): Update. | |
8262 | * utils.h (gdb_abspath): Return a gdb::unique_xmalloc_ptr. | |
8263 | ||
0d999a6e ZZ |
8264 | 2017-08-22 Zhouyi Zhou <zhouzhouyi@gmail.com> |
8265 | ||
8266 | * cli-cmds.c (list_commands): List actual code around more than | |
8267 | one location. | |
8268 | ||
329d5e7e JB |
8269 | 2017-08-21 John Baldwin <jhb@FreeBSD.org> |
8270 | ||
8271 | * fbsd-nat.c (fbsd_add_threads): Use array type for `lwps'. | |
8272 | ||
bf223d3e PA |
8273 | 2017-08-21 Pedro Alves <palves@redhat.com> |
8274 | ||
8275 | PR gdb/19487 | |
8276 | * c-exp.y (variable production): Handle function aliases. | |
8277 | * minsyms.c (msymbol_is_text): New function. | |
8278 | * minsyms.h (msymbol_is_text): Declare. | |
8279 | * symtab.c (find_function_alias_target): New function. | |
8280 | * symtab.h (find_function_alias_target): Declare. | |
8281 | ||
c973d0aa PA |
8282 | 2017-08-21 Pedro Alves <palves@redhat.com> |
8283 | ||
8284 | * eval.c (evaluate_subexp_standard) <OP_TYPE>: Don't dig past | |
8285 | typedefs. | |
8286 | * typeprint.c (whatis_exp): If handling "whatis", and expression | |
8287 | is OP_TYPE, strip one typedef level. Otherwise don't strip | |
8288 | typedefs here. | |
8289 | * valops.c (value_cast): Save "to" type before resolving | |
8290 | stubs/typedefs. Use that type as resulting value's type. | |
8291 | ||
2989a365 TT |
8292 | 2017-08-18 Tom Tromey <tom@tromey.com> |
8293 | Pedro Alves <palves@redhat.com> | |
8294 | ||
8295 | * spu-multiarch.c (parse_spufs_run): Use scoped_restore. | |
8296 | * sol-thread.c (sol_thread_resume, sol_thread_wait) | |
8297 | (sol_thread_xfer_partial, rw_common): Use scoped_restore. | |
8298 | * procfs.c (procfs_do_thread_registers): Use scoped_restore. | |
8299 | * proc-service.c (ps_xfer_memory): Use scoped_restore. | |
8300 | * linux-tdep.c (linux_corefile_thread): Remove a cleanup. | |
8301 | (linux_get_siginfo_data): Add "thread" argument. Use | |
8302 | scoped_restore. | |
8303 | * linux-nat.c (linux_child_follow_fork) | |
8304 | (check_stopped_by_watchpoint): Use scoped_restore. | |
8305 | * infrun.c (displaced_step_prepare_throw, write_memory_ptid) | |
8306 | (THREAD_STOPPED_BY, handle_signal_stop): Use scoped_restore. | |
8307 | (restore_inferior_ptid, save_inferior_ptid): Remove. | |
8308 | * btrace.c (btrace_fetch): Use scoped_restore. | |
8309 | * bsd-uthread.c (bsd_uthread_fetch_registers) | |
8310 | (bsd_uthread_store_registers): Use scoped_restore. | |
8311 | * breakpoint.c (reattach_breakpoints, detach_breakpoints): Use | |
8312 | scoped_restore. | |
8313 | * aix-thread.c (aix_thread_resume, aix_thread_wait) | |
8314 | (aix_thread_xfer_partial): Use scoped_restore. | |
8315 | * inferior.h (save_inferior_ptid): Remove. | |
8316 | ||
e60eb288 YQ |
8317 | 2017-08-18 Yao Qi <yao.qi@linaro.org> |
8318 | ||
8319 | PR tdep/21818 | |
8320 | * arm-tdep.c (gdb_print_insn_arm): Mark | |
8321 | USER_SPECIFIED_MACHINE_TYPE if exec_bfd isn't NULL. | |
8322 | ||
6d580b63 YQ |
8323 | 2017-08-18 Yao Qi <yao.qi@linaro.org> |
8324 | ||
8325 | * NEWS: Mention GDBserver's new option "--selftest". | |
8326 | * Makefile.in (SFILES): Remove selftest.c, add common/selftest.c. | |
8327 | * selftest.c: Move it to common/selftest.c. | |
8328 | * selftest.h: Move it to common/selftest.h. | |
8329 | * selftest-arch.c (reset): New function. | |
8330 | (tests_with_arch): Call reset. | |
8331 | ||
86dcbf50 YQ |
8332 | 2017-08-18 Yao Qi <yao.qi@linaro.org> |
8333 | ||
8334 | * selftest.c (run_tests): Don't call QUIT. Call debug_printf | |
8335 | instead of exception_fprintf and printf_filtered. | |
8336 | ||
7649770c YQ |
8337 | 2017-08-18 Yao Qi <yao.qi@linaro.org> |
8338 | ||
8339 | * selftest.c (register_self_test): Rename it to | |
8340 | selftests::register_test. | |
8341 | (run_self_tests): selftest::run_tests. | |
8342 | * selftest.h: Update declarations. | |
8343 | * selftest-arch.c (register_self_test_foreach_arch): Rename it to | |
8344 | selftests::register_test_foreach_arch. | |
8345 | * selftest-arch.h: Update declaration. | |
8346 | * aarch64-tdep.c: Update. | |
8347 | * arm-tdep.c: Likewise. | |
8348 | * disasm-selftests.c: Likewise. | |
8349 | * dwarf2loc.c: Likewise. | |
8350 | * dwarf2-frame.c: Likewise. | |
8351 | * findvar.c: Likewise. | |
8352 | * gdbarch-selftests.c: Likewise. | |
8353 | * maint.c (maintenance_selftest): Likewise. | |
8354 | * regcache.c: Likewise. | |
8355 | * rust-exp.y: Likewise. | |
8356 | * selftest-arch.c: Likewise. | |
8357 | * unittests/environ-selftests.c: Likewise. | |
8358 | * unittests/function-view-selftests.c: Likewise. | |
8359 | * unittests/offset-type-selftests.c: Likewise. | |
8360 | * unittests/optional-selftests.c: Likewise. | |
8361 | * unittests/scoped_restore-selftests.c: Likewise. | |
8362 | * utils-selftests.c: Likewise. | |
8363 | ||
b0cba12e PA |
8364 | 2017-08-17 Pedro Alves <palves@redhat.com> |
8365 | ||
8366 | * cli/cli-cmds.c (source_command): Delete 'old_source_verbose' | |
8367 | local. | |
8368 | ||
4c8aa72d PA |
8369 | 2017-08-17 Pedro Alves <palves@redhat.com> |
8370 | ||
8371 | * dwarf2read.c (struct dwarf2_cu) <line_header_die_owner>: New | |
8372 | field. | |
8373 | (reset_die_in_process): Delete, replaced by ... | |
8374 | (process_die_scope): ... this new class. Make it responsible for | |
8375 | freeing cu->line_header too. | |
8376 | (process_die): Use process_die_scope. | |
8377 | (handle_DW_AT_stmt_list): Record the line header's owner CU/DIE in | |
8378 | cu->line_header_die_owner. Don't release the line header if it's | |
8379 | owned by the CU. | |
8380 | (setup_type_unit_groups): Make the CU/DIE own the line header. | |
8381 | Don't release the line header here. | |
8382 | ||
ba713918 AL |
8383 | 2017-08-17 Alex Lindsay <alexlindsay239@gmail.com> (tiny change) |
8384 | ||
8385 | * elfread.c (elf_read_minimal_symbols): xfree synthsyms. | |
8386 | ||
44d0fb3a RK |
8387 | 2017-08-17 Ruslan Kabatsayev <b7.10110111@gmail.com> |
8388 | ||
8389 | * NEWS: Mention new shortcuts for nexti and stepi in TUI | |
8390 | Single-Key mode | |
8391 | ||
a5afdb16 RK |
8392 | 2017-08-16 Ruslan Kabatsayev <b7.10110111@gmail.com> |
8393 | ||
8394 | * tui/tui.c (tui_commands): Add "nexti" and "stepi" to the Single-Key | |
8395 | mode command list. | |
8396 | ||
47613aeb SH |
8397 | 2017-08-15 Stafford Horne <shorne@gmail.com> |
8398 | ||
8399 | * MAINTAINERS (Write After Approval): Add Stafford Horne. | |
8400 | ||
9c3cc999 SH |
8401 | 2017-08-15 Stafford Horne <shorne@gmail.com> |
8402 | ||
8403 | * xtensa-tdep.c (xtensa_init_reggroups): Use xstrdup for cpname. | |
8404 | ||
206726fb SDJ |
8405 | 2017-08-15 Sergio Durigan Junior <sergiodj@redhat.com> |
8406 | ||
8407 | PR gdb/21954 | |
8408 | * infcmd.c (unset_environment_command): Use the 'clear' method on | |
8409 | the environment instead of resetting it. | |
8410 | ||
0335ac6d JB |
8411 | 2017-08-15 John Baldwin <jhb@FreeBSD.org> |
8412 | ||
8413 | * fbsd-nat.c (fbsd_convert_siginfo): Fix compile on big-endian | |
8414 | platforms. | |
8415 | ||
d3abe1c8 TT |
8416 | 2017-08-14 Tom Tromey <tom@tromey.com> |
8417 | ||
8418 | * valprint.c (print_octal_chars): Use HOST_CHAR_BIT. | |
8419 | (print_binary_chars): Likewise. | |
8420 | (BITS_IN_BYTES): Remove. | |
8421 | ||
d6382fff TT |
8422 | 2017-08-14 Tom Tromey <tom@tromey.com> |
8423 | ||
8424 | PR gdb/21675 | |
8425 | * valprint.c (LOW_ZERO): Change value to 034. | |
8426 | (print_octal_chars): Add static_asserts for octal constants. | |
8427 | * printcmd.c (print_scalar_formatted): Add 'd' case. | |
8428 | ||
f978cb06 TT |
8429 | 2017-08-11 Tom Tromey <tom@tromey.com> |
8430 | ||
8431 | * symfile.c (add_symbol_file_command): Use std::vector. | |
8432 | ||
2f5404b3 TT |
8433 | 2017-08-14 Tom Tromey <tom@tromey.com> |
8434 | ||
8435 | * break-catch-throw.c (handle_gnu_v3_exceptions): Use std::move. | |
8436 | * break-catch-syscall.c (create_syscall_event_catchpoint): Use | |
8437 | std::move. | |
8438 | * break-catch-sig.c (create_signal_catchpoint): Use std::move. | |
8439 | ||
de7985c3 PA |
8440 | 2017-08-11 Pedro Alves <palves@redhat.com> |
8441 | ||
8442 | * infrun.c (process_event_stop_test): Adjust | |
8443 | function_name_is_marked_for_skip call. | |
8444 | * skip.c: Include <list>. | |
8445 | (skiplist_entry): Make it a class with private fields, and | |
8446 | getters/setters. | |
8447 | (skiplist_entry_chain): Delete. | |
8448 | (skiplist_entries): New. | |
8449 | (skiplist_entry_count): Delete. | |
8450 | (highest_skiplist_entry_num): New. | |
8451 | (ALL_SKIPLIST_ENTRIES, ALL_SKIPLIST_ENTRIES_SAFE): Delete. | |
8452 | (add_skiplist_entry): Delete. | |
8453 | (skiplist_entry::skiplist_entry): New. | |
8454 | (skiplist_entry::add_entry): New. | |
8455 | (skip_file_command, skip_function): Adjust. | |
8456 | (compile_skip_regexp): Delete. | |
8457 | (skip_command): Don't compile regexp here. Adjust to use | |
8458 | skiplist_entry::add_entry. | |
8459 | (skip_info): Adjust to use range-for and getters. | |
8460 | (skip_enable_command, skip_disable_command): Adjust to use | |
8461 | range-for and setters. | |
8462 | (skip_delete_command): Adjust to use std::list. | |
8463 | (add_skiplist_entry): Delete. | |
8464 | (skip_file_p): Delete, refactored as ... | |
8465 | (skiplist_entry::do_skip_file_p): ... this new method. | |
8466 | (skip_gfile_p): Delete, refactored as ... | |
8467 | (skiplist_entry::do_gskip_file_p): ... this new method. | |
8468 | (skip_function_p, skip_rfunction_p): Delete, refactored as ... | |
8469 | (skiplist_entry::skip_function_p): ... this new method. | |
8470 | (function_name_is_marked_for_skip): Now returns bool, and takes | |
8471 | the function sal by const reference. Adjust to use range-for and | |
8472 | skiplist_entry methods. | |
8473 | (_initialize_step_skip): Remove references to | |
8474 | skiplist_entry_chain, skiplist_entry_count. | |
8475 | * skip.h (function_name_is_marked_for_skip): Now returns bool, and | |
8476 | takes the function sal by const reference. | |
8477 | ||
be7d3cd5 YQ |
8478 | 2017-08-11 Yao Qi <yao.qi@linaro.org> |
8479 | ||
8480 | * dwarf2-frame.c (clear_pointer_cleanup): Remove. | |
8481 | (dwarf2_frame_cache): Remove reset_cache_cleanup. | |
8482 | (dwarf2_frame_cache): | |
8483 | * frame-unwind.c (frame_unwind_try_unwinder): Catch | |
8484 | RETURN_MASK_ALL and set *this_case to NULL. | |
8485 | * frame-unwind.h: Update comments. | |
8486 | ||
1c90d9f0 YQ |
8487 | 2017-08-11 Yao Qi <yao.qi@linaro.org> |
8488 | ||
8489 | * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Remove. | |
8490 | (dwarf2_frame_state_copy_regs): Remove. | |
8491 | (dwarf2_frame_state_free_regs): Remove. | |
8492 | (dwarf2_frame_state::~dwarf2_frame_state): Remove. | |
8493 | (dwarf2_restore_rule): Call method .alloc_regs instead of | |
8494 | dwarf2_frame_state_alloc_regs. | |
8495 | (execute_cfa_program): Likewise. Call dwarf2_frame_state_reg_info | |
8496 | constructor. Call std::move. | |
8497 | (dwarf2_fetch_cfa_info): Don't call dwarf2_frame_state_copy_regs. | |
8498 | (dwarf2_frame_cache): Likewise. | |
8499 | ||
8500 | [GDB_SELF_TEST]: Include selftest.h and | |
8501 | selftest-arch.h. | |
8502 | [GDB_SELF_TEST] (execute_cfa_program_test): New function. | |
8503 | (_initialize_dwarf2_frame) [GDB_SELF_TEST]: Register | |
8504 | execute_cfa_program_test. | |
8505 | ||
8506 | * dwarf2-frame.h (dwarf2_frame_state_reg_info): Add ctor, dtor, | |
8507 | copy ctor, assignment operator, move assignment. | |
8508 | <alloc_regs>: New method. | |
8509 | <swap>: New method. | |
8510 | (struct dwarf2_frame_state): Delete dtor. | |
8511 | (dwarf2_frame_state_alloc_regs): Remove declaration. | |
8512 | * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): Don't call | |
8513 | dwarf2_frame_state_alloc_regs, use .alloc_regs instead. | |
8514 | ||
afe37d6b YQ |
8515 | 2017-08-11 Yao Qi <yao.qi@linaro.org> |
8516 | ||
8517 | * dwarf2-frame.c (dwarf2_frame_state_free): Remove. | |
8518 | (dwarf2_frame_state::dwarf2_frame_state): New. | |
8519 | (dwarf2_frame_state::~dwarf2_frame_state): New. | |
8520 | (dwarf2_fetch_cfa_info): Update. | |
8521 | (dwarf2_frame_cache): Remove old_chain. Change 'fs' to an object | |
8522 | rather than a pointer. Update code. | |
8523 | * dwarf2-frame.h (struct dwarf2_frame_state): Declare ctor and | |
8524 | dtor. | |
8525 | <data_align, code_align, retaddr_column>: Change them to const. | |
8526 | <armcc_cfa_offsets_sf, armcc_cfa_offsets_reversed>: Change them | |
8527 | to bool. | |
8528 | ||
b348037f YQ |
8529 | 2017-08-11 Yao Qi <yao.qi@linaro.org> |
8530 | ||
8531 | * dwarf2-frame.h (struct dwarf2_frame_state_reg) <exp_len>: Remove. | |
8532 | <loc.exp>: New field. | |
8533 | * dwarf2-frame.c (execute_cfa_program): Update. | |
8534 | (dwarf2_frame_prev_register): Update. | |
8535 | ||
e7c9de26 PA |
8536 | 2017-08-10 Pedro Alves <palves@redhat.com> |
8537 | ||
8538 | * common/gdb_unique_ptr.h (xfree_deleter<T[]>): Define. | |
8539 | ||
e8c6b620 JB |
8540 | 2017-08-09 John Baldwin <jhb@FreeBSD.org> |
8541 | ||
8542 | * fbsd-nat.c (struct fbsd_fork_info): Remove. | |
8543 | (fbsd_pending_children): Use std::list. | |
8544 | (fbsd_remember_child): Likewise. | |
8545 | (fbsd_is_child_pending): Likewise. | |
8546 | (fbsd_pending_vfork_done): Use std::forward_list. | |
8547 | (fbsd_add_vfork_done): Likewise. | |
8548 | (fbsd_is_vfork_done_pending): Likewise. | |
8549 | (fbsd_next_vfork_done): Likewise. | |
8550 | ||
e4a26669 JB |
8551 | 2017-08-09 John Baldwin <jhb@FreeBSD.org> |
8552 | ||
8553 | * fbsd-nat.c [HAVE_KINFO_GETVMMAP] (struct free_deleter): New. | |
8554 | (fbsd_find_memory_regions): Use free_deleter with std::unique_ptr. | |
8555 | [!HAVE_KINFO_GETVMMAP] (fbsd_find_memory_regions): Use std::string | |
8556 | for `mapfilename'. | |
8557 | (fbsd_xfer_partial): Use gdb::byte_vector. | |
af3881e6 | 8558 | (fbsd_add_threads): Use gdb::unique_xmalloc_ptr. |
e4a26669 | 8559 | |
142311d3 JB |
8560 | 2017-08-09 John Baldwin <jhb@FreeBSD.org> |
8561 | ||
8562 | * fbsd-nat.c: [!HAVE_KINFO_GETVMMAP]: Include <sys/user.h> and | |
8563 | "filestuff.h". | |
8564 | (fbsd_find_memory_regions): Fix `mapfile' initialization. | |
8565 | ||
42fa2e0e TT |
8566 | 2017-08-09 Tom Tromey <tom@tromey.com> |
8567 | ||
8568 | * skip.c (skiplist_entry): New constructor. | |
8569 | (skiplist_entry::enabled, skiplist_entry::function_is_regexp) | |
8570 | (skiplist_entry::file_is_glob): Now bool. | |
8571 | (skiplist_entry::file, skiplist_entry::function): Now | |
8572 | std::string. | |
8573 | (make_skip_entry): Return a unique_ptr. Use new. | |
8574 | (free_skiplist_entry, free_skiplist_entry_cleanup) | |
8575 | (make_free_skiplist_entry_cleanup): Remove. | |
8576 | (skip_command, skip_disable_command, add_skiplist_entry) | |
8577 | (skip_form_bytes, compile_skip_regexp, skip_command, skip_info) | |
8578 | (skip_file_p, skip_gfile_p, skip_function_p, skip_rfunction_p) | |
8579 | (function_name_is_marked_for_skip): Update. | |
8580 | (skip_delete_command): Update. Use delete. | |
8581 | ||
cd3af38d JW |
8582 | 2017-08-09 Jiong Wang <jiong.wang@arm.com> |
8583 | ||
8584 | * aarch64-linux-tdep.c: Include "auxv.h" and "elf/common.h". | |
8585 | (aarch64_linux_core_read_description): New function. | |
8586 | (aarch64_linux_init_abi): Register gdbarch_core_read_description. | |
8587 | ||
29592bde PA |
8588 | 2017-08-09 Pedro Alves <palves@redhat.com> |
8589 | ||
8590 | * cp-name-parser.y (cp_comp_to_string): Return a | |
8591 | gdb::unique_xmalloc_ptr<char>. | |
8592 | * cp-support.c (replace_typedefs_qualified_name) | |
8593 | (replace_typedefs): Adjust to use gdb::unique_xmalloc_ptr<char>. | |
8594 | (cp_canonicalize_string_full): Use op= instead of explicit | |
8595 | convertion. | |
8596 | (cp_class_name_from_physname, method_name_from_physname) | |
8597 | (cp_func_name, cp_remove_params): Adjust to use | |
8598 | gdb::unique_xmalloc_ptr<char>. | |
8599 | * cp-support.h (cp_comp_to_string): Return a | |
8600 | gdb::unique_xmalloc_ptr<char>. | |
8601 | * python/py-type.c (typy_lookup_type): Adjust to use | |
8602 | gdb::unique_xmalloc_ptr<char>. | |
8603 | ||
b3340438 L |
8604 | 2017-08-09 H.J. Lu <hongjiu.lu@intel.com> |
8605 | ||
8606 | * dwarf2read.c (dwarf2_string_attr): Fix a typo. | |
8607 | ||
e88e8651 YQ |
8608 | 2017-08-09 Alex Lindsay <alexlindsay239@gmail.com> |
8609 | Yao Qi <yao.qi@linaro.org> | |
8610 | ||
8611 | * cp-support.c (cp_canonicalize_string_full): Use | |
8612 | gdb::unique_xmalloc_ptr<char>. | |
8613 | (cp_canonicalize_string): Likewise. | |
8614 | ||
f5a29eb0 YQ |
8615 | 2017-08-09 Yao Qi <yao.qi@linaro.org> |
8616 | ||
8617 | * features/Makefile (WHICH): Remove i386/ non-linux stuff. | |
8618 | * regformats/i386/amd64-avx-avx512.dat: Remove. | |
8619 | * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Remove. | |
8620 | * regformats/i386/amd64-avx-mpx.dat:Remove. | |
8621 | * regformats/i386/amd64-avx.dat: Remove. | |
8622 | * regformats/i386/amd64-mpx.dat: Remove. | |
8623 | * regformats/i386/i386-avx-avx512.dat: Remove. | |
8624 | * regformats/i386/i386-avx-mpx-avx512-pku.dat: Remove. | |
8625 | * regformats/i386/i386-avx-mpx.dat: Remove. | |
8626 | * regformats/i386/i386-mmx.dat: Remove. | |
8627 | * regformats/i386/i386-mpx.dat: Remove. | |
8628 | ||
57757c2f YQ |
8629 | 2017-08-09 Yao Qi <yao.qi@linaro.org> |
8630 | ||
8631 | * amd64-tdep.h (tdesc_x32): Remove the declaration. | |
8632 | * amd64-tdep.c: Don't include features/i386/x32*.c. | |
8633 | (_initialize_amd64_tdep): Don't call initialize_tdesc_x32* | |
8634 | functions. | |
8635 | * features/Makefile (WHICH): Remove i386/x32, i386/x32-avx, | |
8636 | and i386/x32-avx-avx512. | |
8637 | (XMLTOC): Remove i386/x32-avx.xml, i386/x32-avx-avx512.xml, | |
8638 | and i386/x32.xml. | |
8639 | * features/i386/x32-avx-avx512.c: Removed. | |
8640 | * features/i386/x32-avx-avx512.xml: Removed. | |
8641 | * features/i386/x32-avx.c: Removed. | |
8642 | * features/i386/x32-avx.xml: Removed. | |
8643 | * features/i386/x32.c: Removed. | |
8644 | * features/i386/x32.xml: Removed. | |
8645 | * regformats/i386/x32-avx-avx512.dat: Removed. | |
8646 | * regformats/i386/x32-avx.dat: Removed. | |
8647 | * regformats/i386/x32.dat: Removed. | |
8648 | ||
ba7b109b MR |
8649 | 2017-08-07 Maciej W. Rozycki <macro@imgtec.com> |
8650 | ||
8651 | PR breakpoints/21886 | |
8652 | * mem-break.c (default_memory_insert_breakpoint): Use | |
8653 | `->placed_address' rather than `->reqstd_address' for the | |
8654 | breakpoint location. | |
8655 | ||
e347efc3 MR |
8656 | 2017-08-07 Maciej W. Rozycki <macro@imgtec.com> |
8657 | ||
8658 | * arch-utils.c (default_print_insn): Remove arch/mach/endian | |
8659 | assertions. | |
8660 | ||
0dba2a6c MR |
8661 | 2017-08-07 Maciej W. Rozycki <macro@imgtec.com> |
8662 | ||
8663 | * gdbarch.sh (gdbarch_info): Replace the `tdep_info' member with | |
8664 | a union of `tdep_info', `tdesc_data' and `id'. | |
8665 | * aarch64-tdep.c (aarch64_gdbarch_init): Use `info.tdesc_data' | |
8666 | rather than `info.tdep_info'. | |
8667 | * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise. | |
8668 | * i386-linux-tdep.c (i386_linux_init_abi): Likewise. | |
8669 | * i386-tdep.c (i386_gdbarch_init): Likewise. | |
8670 | * mips-linux-tdep.c (mips_linux_init_abi): Likewise. | |
8671 | * mips-tdep.c (mips_gdbarch_init): Likewise. | |
8672 | * nds32-tdep.c (nds32_gdbarch_init): Likewise. | |
8673 | * rs6000-tdep.c (rs6000_gdbarch_init): Likewise. | |
8674 | * ppc-linux-tdep.c (ppu2spu_sniffer): Use `info.id' rather than | |
8675 | `info.tdep_info'. | |
8676 | (ppc_linux_init_abi): Use `info.tdesc_data' rather than | |
8677 | `info.tdep_info'. | |
8678 | * sparc-tdep.c (sparc32_gdbarch_init): Likewise. | |
8679 | * spu-multiarch.c (spu_gdbarch): Use `info.id' rather than | |
8680 | `info.tdep_info'. | |
8681 | * spu-tdep.c (spu_gdbarch_init): Likewise. | |
8682 | * gdbarch.h: Regenerate. | |
8683 | ||
16eb6b2d LS |
8684 | 2017-08-07 Leszek Swirski <leszeks@google.com> |
8685 | ||
7b005726 | 8686 | PR symtab/20899 |
16eb6b2d LS |
8687 | * dwarf2read.c (dwarf2_string_attr): Allow DW_FORM_GNU_strp_alt. |
8688 | ||
74cbb09e SM |
8689 | 2017-08-07 Simon Marchi <simon.marchi@ericsson.com> |
8690 | ||
8691 | * remote-sim.c (gdbsim_load): Remove char **argv local variable. | |
8692 | (gdbsim_open): Rename gdb_argv args object to argv. | |
8693 | ||
ee0c3293 TT |
8694 | 2017-08-05 Tom Tromey <tom@tromey.com> |
8695 | ||
8696 | * compile/compile-object-load.c (compile_object_load): Use | |
8697 | gdb::unique_xmalloc_ptr. | |
8698 | * cli/cli-dump.c (scan_filename): Rename from | |
8699 | scan_filename_with_cleanup. Change return type. | |
8700 | (scan_expression): Rename from scan_expression_with_cleanup. | |
8701 | Change return type. | |
8702 | (dump_memory_to_file, dump_value_to_file, restore_command): | |
8703 | Use gdb::unique_xmalloc_ptr. Update. | |
8704 | * cli/cli-cmds.c (find_and_open_script): Use | |
8705 | gdb::unique_xmalloc_ptr. | |
8706 | * tracefile-tfile.c (tfile_open): Use gdb::unique_xmalloc_ptr. | |
8707 | * symmisc.c (maintenance_print_symbols) | |
8708 | (maintenance_print_msymbols): Use gdb::unique_xmalloc_ptr. | |
8709 | * symfile.c (symfile_bfd_open, generic_load) | |
8710 | (add_symbol_file_command, remove_symbol_file_command): Use | |
8711 | gdb::unique_xmalloc_ptr. | |
8712 | * source.c (openp): Use gdb::unique_xmalloc_ptr. | |
8713 | * psymtab.c (maintenance_print_psymbols): Use | |
8714 | gdb::unique_xmalloc_ptr. | |
8715 | * corelow.c (core_open): Use gdb::unique_xmalloc_ptr. | |
8716 | * breakpoint.c (save_breakpoints): Use gdb::unique_xmalloc_ptr. | |
8717 | * solib.c (solib_map_sections): Use gdb::unique_xmalloc_ptr. | |
8718 | (reload_shared_libraries_1): Likewise. | |
8719 | ||
3232fabd TT |
8720 | 2017-08-05 Tom Tromey <tom@tromey.com> |
8721 | ||
8722 | * rust-exp.y (rust_op_ptr, set_field): Remove typedefs. | |
8723 | (rust_op_vector, rust_set_vector): New typedefs. | |
8724 | (current_parser): New global. | |
8725 | (work_obstack): Change to pointer type. Update all users. | |
8726 | (rust_ast, pstate): Remove globals. | |
8727 | (struct rust_parser): New. | |
8728 | (%union) <params, field_inits>: Change type. | |
8729 | (start, tuple_expr, unit_expr, struct_expr_list, literal) | |
8730 | (field_expr, expr_list, maybe_expr_list, type_list): Update. | |
8731 | (ast_call_ish, ast_path, ast_function_type, ast_tuple_type) | |
8732 | (convert_params_to_types, convert_params_to_expression): Change | |
8733 | type of "params". | |
8734 | (ast_string): Change type of "fields". | |
8735 | (rust_parse): Make a rust_parser. Remove cleanups. | |
8736 | (rust_lex_tests): Make and install an auto_obstack. | |
8737 | ||
f02fd774 YQ |
8738 | 2017-08-04 Yao Qi <yao.qi@linaro.org> |
8739 | ||
8740 | * configure.srv (ipa_x32_linux_regobj): New. | |
8741 | * linux-amd64-ipa.c (get_ipa_tdesc): Use X86_TDESC_AVX_AVX512 | |
8742 | instead of X86_TDESC_AVX512. | |
8743 | (initialize_low_tracepoint): Call | |
8744 | init_registers_x32_avx_avx512_linux. | |
8745 | ||
91975afd YQ |
8746 | 2017-08-04 Yao Qi <yao.qi@linaro.org> |
8747 | ||
8748 | * utils.h (gdb_argv): Add namespace std for nullptr_t. | |
8749 | ||
2331fa3a RK |
8750 | 2017-08-03 Ruslan Kabatsayev <b7.10110111@gmail.com> |
8751 | ||
8752 | * MAINTAINERS (Write After Approval): Add Ruslan Kabatsayev. | |
8753 | ||
744e4fe1 TT |
8754 | 2017-08-03 Tom Tromey <tom@tromey.com> |
8755 | ||
8756 | * utils.c (make_cleanup_freeargv, do_freeargv, gdb_buildargv): | |
8757 | Remove. | |
8758 | * utils.h (make_cleanup_freeargv, gdb_buildargv): Remove. | |
8759 | ||
1c034b67 TT |
8760 | 2017-08-03 Tom Tromey <tom@tromey.com> |
8761 | ||
8762 | * python/py-param.c (compute_enum_values): Use gdb_argv. | |
8763 | ||
773a1edc TT |
8764 | 2017-08-03 Tom Tromey <tom@tromey.com> |
8765 | ||
8766 | * utils.h (struct gdb_argv_deleter): New. | |
8767 | (gdb_argv): New class. | |
8768 | * utils.c (gdb_argv::reset): New method. | |
8769 | * tracepoint.c (delete_trace_variable_command): Use gdb_argv. | |
8770 | * tracefile.c (tsave_command): Use gdb_argv. | |
8771 | * top.c (new_ui_command): Use gdb_argv. | |
8772 | * symmisc.c (maintenance_print_symbols) | |
8773 | (maintenance_print_msymbols, maintenance_expand_symtabs): Use gdb_argv. | |
8774 | * symfile.c (symbol_file_command, generic_load) | |
8775 | (remove_symbol_file_command): Use gdb_argv. | |
8776 | * stack.c (backtrace_command): Use gdb_argv. | |
8777 | * source.c (add_path, show_substitute_path_command) | |
8778 | (unset_substitute_path_command, set_substitute_path_command): | |
8779 | Use gdb_argv. | |
8780 | * skip.c (skip_command): Use gdb_argv. Use gdb_buildargv. | |
8781 | * ser-mingw.c (pipe_windows_open): Use gdb_argv. | |
8782 | * remote.c (extended_remote_run, remote_put_command) | |
8783 | (remote_get_command, remote_delete_command): Use gdb_argv. | |
8784 | * remote-sim.c (gdbsim_load, gdbsim_create_inferior) | |
8785 | (gdbsim_open): Use gdb_argv. | |
8786 | * python/py-cmd.c (gdbpy_string_to_argv): Use gdb_argv. | |
8787 | * psymtab.c (maintenance_print_psymbols): Use gdb_argv. | |
8788 | * procfs.c (procfs_info_proc): Use gdb_argv. | |
8789 | * interps.c (interpreter_exec_cmd): Use gdb_argv. | |
8790 | * infrun.c (handle_command): Use gdb_argv. | |
8791 | * inferior.c (add_inferior_command, clone_inferior_command): | |
8792 | Use gdb_argv. | |
8793 | * guile/scm-string.c (gdbscm_string_to_argv): Use gdb_argv. | |
8794 | * exec.c (exec_file_command): Use gdb_argv. | |
8795 | * cli/cli-cmds.c (alias_command): Use gdb_argv. | |
8796 | * compile/compile.c (build_argc_argv): Use gdb_argv. | |
8797 | ||
0d50bde3 TT |
8798 | 2017-08-03 Tom Tromey <tom@tromey.com> |
8799 | ||
8800 | * python/python.c (gdbpy_decode_line): Use unique_xmalloc_ptr. | |
8801 | ||
7f968c89 TT |
8802 | 2017-08-03 Tom Tromey <tom@tromey.com> |
8803 | ||
8804 | * python/python.c (compute_python_string): Return std::string. | |
8805 | (gdbpy_eval_from_control_command): Update. | |
8806 | (do_start_initialization): Use std::string. | |
8807 | * python/py-varobj.c (py_varobj_iter_next): Use string_printf, not | |
8808 | xstrprintf. | |
8809 | * python/py-breakpoint.c (local_setattro): Use string_printf, not | |
8810 | xstrprintf. | |
8811 | ||
3c9ebddd TT |
8812 | 2017-08-03 Tom Tromey <tom@tromey.com> |
8813 | ||
8814 | * top.h (do_restore_instream_cleanup): Remove. | |
8815 | * top.c (do_restore_instream_cleanup): Remove. | |
8816 | (read_command_file): Use scoped_restore. | |
8817 | * cli/cli-script.c (execute_user_command): Use scoped_restore. | |
8818 | ||
b51b225e TT |
8819 | 2017-08-03 Tom Tromey <tom@tromey.com> |
8820 | ||
8821 | * cli/cli-script.c (execute_user_command) | |
8822 | (execute_control_command): Use scoped_restore. | |
8823 | ||
ac991630 TT |
8824 | 2017-08-03 Tom Tromey <tom@tromey.com> |
8825 | ||
8826 | * cli/cli-script.c (do_restore_user_call_depth): Remove. | |
8827 | (execute_user_command): Remove user_call_depth; use | |
8828 | user_args_stack's size instead. | |
8829 | ||
898e0c8e TT |
8830 | 2017-08-03 Tom Tromey <tom@tromey.com> |
8831 | ||
8832 | * top.h (in_user_command): Remove. | |
8833 | * top.c (in_user_command): Remove. | |
8834 | * cli/cli-script.c (do_restore_user_call_depth) | |
8835 | (execute_user_command): Update. | |
8836 | ||
26fcd5d7 TT |
8837 | 2017-08-03 Tom Tromey <tom@tromey.com> |
8838 | ||
8839 | * valops.c (search_struct_method): Use gdb::byte_vector. | |
8840 | * valarith.c (value_concat): Use std::vector. | |
8841 | * target.c (memory_xfer_partial): Use gdb::byte_vector. | |
8842 | (simple_search_memory): Likewise. | |
8843 | * printcmd.c (find_string_backward): Use gdb::byte_vector. | |
8844 | * mi/mi-main.c (mi_cmd_data_write_memory): Use gdb::byte_vector. | |
8845 | * gcore.c (gcore_copy_callback): Use gdb::byte_vector. | |
8846 | * elfread.c (elf_rel_plt_read): Use std::string. | |
8847 | * cp-valprint.c (cp_print_value): Use gdb::byte_vector. | |
8848 | * cli/cli-dump.c (restore_section_callback): Use | |
8849 | gdb::byte_vector. | |
8850 | ||
7c218e6c TT |
8851 | 2017-08-03 Tom Tromey <tom@tromey.com> |
8852 | ||
8853 | * jit.c (jit_reader_load_command): Use unique_xmalloc_ptr. | |
8854 | ||
31b68d4a TT |
8855 | 2017-08-03 Tom Tromey <tom@tromey.com> |
8856 | ||
8857 | * tui/tui-regs.c (tui_restore_gdbout): Remove. | |
8858 | (tui_register_format): Use scoped_restore. | |
8859 | ||
2ec845e7 TT |
8860 | 2017-08-03 Tom Tromey <tom@tromey.com> |
8861 | ||
8862 | * reverse.c (exec_direction_default): Remove. | |
8863 | (exec_reverse_once): Use scoped_restore. | |
8864 | * remote.c (restore_remote_timeout): Remove. | |
8865 | (remote_flash_erase, remote_flash_write, remote_flash_done) | |
8866 | (readchar, remote_serial_write): Use scoped_restore. | |
8867 | * cli/cli-script.c (struct source_cleanup_lines_args) | |
8868 | (source_cleanup_lines): Remove. | |
8869 | (script_from_file): Use scoped_restore. | |
8870 | * cli/cli-cmds.c (source_verbose_cleanup): Remove. | |
8871 | (source_command): Use scoped_restore. | |
8872 | ||
b3bc8453 TT |
8873 | 2017-08-03 Tom Tromey <tom@tromey.com> |
8874 | ||
8875 | * utils.h (make_cleanup_free_so): Remove. | |
8876 | * utils.c (do_free_so, make_cleanup_free_so): Remove. | |
8877 | * solist.h (struct so_deleter): New. | |
8878 | (so_list_up): New typedef. | |
8879 | * solib-svr4.c (svr4_read_so_list): Use so_list_up. | |
8880 | ||
e3ad2841 TT |
8881 | 2017-08-03 Tom Tromey <tom@tromey.com> |
8882 | ||
8883 | * utils.h (make_cleanup_restore_current_language): Remove. | |
8884 | * utils.c (do_restore_current_language) | |
8885 | (make_cleanup_restore_current_language): Remove. | |
8886 | * parse.c (parse_exp_in_context_1) | |
8887 | (parse_expression_with_language): Use | |
8888 | scoped_restore_current_language. | |
8889 | * mi/mi-main.c (mi_cmd_execute): Use | |
8890 | scoped_restore_current_language. | |
8891 | * language.h (scoped_restore_current_language): New class. | |
8892 | ||
b80cf838 TT |
8893 | 2017-08-03 Tom Tromey <tom@tromey.com> |
8894 | ||
8895 | * compile/compile.c (cleanup_unlink_file): Remove. | |
8896 | (compile_to_object): Use gdb::unlinker. | |
8897 | (eval_compile_command): Likewise. | |
8898 | ||
fad0444a TT |
8899 | 2017-08-03 Tom Tromey <tom@tromey.com> |
8900 | ||
8901 | * utils.h (make_cleanup_fclose): Remove. | |
8902 | * utils.c (do_fclose_cleanup, make_cleanup_fclose): Remove. | |
8903 | ||
6e7bc05c TT |
8904 | 2017-08-03 Tom Tromey <tom@tromey.com> |
8905 | ||
8906 | * top.c (open_terminal_stream): Return gdb_file_up. | |
8907 | (new_ui_command): Update. | |
8908 | ||
4a45905b TT |
8909 | 2017-08-03 Tom Tromey <tom@tromey.com> |
8910 | ||
8911 | * source.c (print_source_lines_base, forward_search_command) | |
8912 | (reverse_search_command): Use gdb_file_up. | |
8913 | ||
7cd06d6e TT |
8914 | 2017-08-03 Tom Tromey <tom@tromey.com> |
8915 | ||
8916 | * fbsd-nat.c (fbsd_find_memory_regions): Update. | |
8917 | ||
ed166945 TT |
8918 | 2017-08-03 Tom Tromey <tom@tromey.com> |
8919 | ||
8920 | * cli/cli-cmds.c (find_and_open_script): Change return type. | |
8921 | Remove "streamp" and "full_path" parameters. | |
8922 | (source_script_with_search): Update. | |
8923 | * auto-load.c (source_script_file): Update. | |
8924 | * cli/cli-cmds.h (find_and_open_script): Change type. | |
8925 | (open_script): New struct. | |
8926 | ||
d419f42d TT |
8927 | 2017-08-03 Tom Tromey <tom@tromey.com> |
8928 | ||
8929 | * xml-support.c (xml_fetch_content_from_file): Update. | |
8930 | * ui-file.c (stdio_file::open): Update. | |
8931 | * tracefile-tfile.c (tfile_start): Update. | |
8932 | * remote.c (remote_file_put, remote_file_get): Update. | |
8933 | * nat/linux-procfs.c (linux_proc_get_int) | |
8934 | (linux_proc_pid_get_state, linux_proc_tid_get_name): Update. | |
8935 | * nat/linux-osdata.c (linux_common_core_of_thread): Update. | |
8936 | (command_from_pid, commandline_from_pid, linux_xfer_osdata_cpus) | |
8937 | (print_sockets, linux_xfer_osdata_shm, linux_xfer_osdata_sem) | |
8938 | (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Update. | |
8939 | * nat/linux-btrace.c (linux_determine_kernel_start): Update. | |
8940 | * linux-nat.c (linux_proc_pending_signals): Update. | |
8941 | * dwarf2read.c (write_psymtabs_to_index): Use gdb_file_up. | |
8942 | (file_closer): Remove. | |
8943 | * compile/compile.c (compile_to_object): Update. | |
8944 | * common/filestuff.h (struct gdb_file_deleter): New. | |
8945 | (gdb_file_up): New typedef. | |
8946 | (gdb_fopen_cloexec): Change return type. | |
8947 | * common/filestuff.c (gdb_fopen_cloexec): Return gdb_file_up. | |
8948 | * cli/cli-dump.c (fopen_with_cleanup): Remove. | |
8949 | (dump_binary_file, restore_binary_file): Update. | |
8950 | * auto-load.c (auto_load_objfile_script_1): Update. | |
8951 | ||
4a2b031d TT |
8952 | 2017-08-03 Tom Tromey <tom@tromey.com> |
8953 | ||
8954 | * tracepoint.c (tvariables_info_1): Use ui_out_emit_table. | |
8955 | (info_static_tracepoint_markers_command): Likewise. | |
8956 | * solib.c (info_sharedlibrary_command): Use ui_out_emit_table. | |
8957 | * skip.c (skip_info): Use ui_out_emit_table. | |
8958 | * progspace.c (print_program_space): Use ui_out_emit_table. | |
8959 | * osdata.c (info_osdata): Use ui_out_emit_table. | |
8960 | * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Use | |
8961 | ui_out_emit_table. | |
8962 | * linux-thread-db.c (info_auto_load_libthread_db): Use | |
8963 | ui_out_emit_table. | |
8964 | * inferior.c (print_inferior): Use ui_out_emit_table. | |
8965 | * gdb_bfd.c (maintenance_info_bfds): Use ui_out_emit_table. | |
8966 | * breakpoint.c (breakpoint_1): Use ui_out_emit_table. | |
8967 | * auto-load.c (auto_load_info_scripts): Use ui_out_emit_table. | |
8968 | * ada-tasks.c (print_ada_task_info): Use ui_out_emit_table. | |
8969 | * ui-out.h (class ui_out_emit_table): New. | |
8970 | ||
a4f320fd MR |
8971 | 2017-08-02 Maciej W. Rozycki <macro@imgtec.com> |
8972 | ||
8973 | * mips-tdep.c (mips_fpu_type_str): New function. | |
8974 | (mips_dump_tdep): Call it. | |
8975 | ||
a2f1f308 MR |
8976 | 2017-08-01 Maciej W. Rozycki <macro@imgtec.com> |
8977 | ||
8978 | * mips-tdep.c (mips_gdbarch_init): Use MIPS_FPU_TYPE to access | |
8979 | `->mips_fpu_type'. | |
8980 | ||
7e5ed83b XR |
8981 | 2017-07-31 Xavier Roirand <roirand@adacore.com> |
8982 | ||
8983 | * solib-darwin.c (DYLD_VERSION_MAX): Increase value. | |
8984 | ||
4c9dc811 XR |
8985 | 2017-07-27 Xavier Roirand <roirand@adacore.com> |
8986 | ||
8987 | * MAINTAINERS (Write After Approval): Add Xavier Roirand. | |
8988 | ||
27d41eac YQ |
8989 | 2017-07-26 Yao Qi <yao.qi@linaro.org> |
8990 | ||
8991 | * cli/cli-cmds.c (maintenancechecklist): New variable. | |
8992 | * gdbcmd.h (maintenancechecklist): Declare it. | |
8993 | * i386-linux-tdep.c (_initialize_i386_linux_tdep) [GDB_SELF_TEST]: | |
8994 | Call i386_linux_read_description with different masks. | |
8995 | * maint.c (maintenance_check_command): New function. | |
8996 | (_initialize_maint_cmds): Call add_prefix_cmd. | |
8997 | * target-descriptions.c (tdesc_reg): override operator != and ==. | |
8998 | (tdesc_type): Likewise. | |
8999 | (tdesc_feature): Likewise. | |
9000 | (target_desc): Likewise. | |
9001 | [GDB_SELF_TEST] (selftests::record_xml_tdesc): New function. | |
9002 | (maintenance_check_xml_descriptions): New function. | |
9003 | (_initialize_target_descriptions) Add command "xml-descriptions". | |
9004 | * target-descriptions.h (selftests::record_xml_tdesc): Declare. | |
9005 | ||
ea03d0d3 YQ |
9006 | 2017-07-26 Yao Qi <yao.qi@linaro.org> |
9007 | ||
9008 | * i386-linux-tdep.c: Don't include features/i386/i386-*linux.c. | |
9009 | Include features/i386/32bit-*.c. | |
9010 | (i386_linux_read_description): Generate target description if it | |
9011 | doesn't exist. | |
9012 | (_initialize_i386_linux_tdep): Don't call _initialize_tdesc_i386 | |
9013 | functions. | |
9014 | * features/i386/32bit-linux.c: Re-generated. | |
9015 | * features/i386/32bit-sse.c: Likewise. | |
9016 | * target-descriptions.c (print_c_feature::visit): Print code to | |
9017 | set register number if needed. | |
9018 | (print_c_feature) <m_next_regnum>: New field. | |
9019 | ||
25aa13e5 YQ |
9020 | 2017-07-26 Yao Qi <yao.qi@linaro.org> |
9021 | ||
9022 | * features/Makefile (CFILES): Rename with TDESC_CFILES. | |
9023 | (FEATURE_XMLFILES): New. | |
9024 | (FEATURE_CFILES): New. | |
9025 | New rules. | |
9026 | (clean-cfiles): Remove generated c files. | |
9027 | * features/i386/32bit-avx.c: Generated. | |
9028 | * features/i386/32bit-avx512.c: Generated. | |
9029 | * features/i386/32bit-core.c: Generated. | |
9030 | * features/i386/32bit-linux.c: Generated. | |
9031 | * features/i386/32bit-mpx.c: Generated. | |
9032 | * features/i386/32bit-pkeys.c: Generated. | |
9033 | * features/i386/32bit-sse.c: Generated. | |
9034 | * target-descriptions.c: Include algorithm. | |
9035 | (tdesc_element_visitor): Add method visit_end. | |
9036 | (print_c_tdesc): Implement visit_end. | |
9037 | (print_c_tdesc:: m_filename_after_features): Move it to | |
9038 | protected. | |
9039 | (print_c_feature): New class. | |
9040 | (maint_print_c_tdesc_cmd): Use print_c_feature if XML file | |
9041 | name starts with "i386/32bit-". | |
9042 | ||
6eb1e6a8 YQ |
9043 | 2017-07-26 Yao Qi <yao.qi@linaro.org> |
9044 | ||
9045 | * target-descriptions.c (tdesc_element_visitor): New class. | |
9046 | (tdesc_element): New class. | |
9047 | (tdesc_reg): Inherit from tdesc_element. | |
9048 | (tdesc_reg::accept): New function. | |
9049 | (tdesc_type): Inherit from tdesc_element. | |
9050 | (tdesc_type::accept): New function. | |
9051 | (tdesc_feature): Inherit from tdesc_element. | |
9052 | (tdesc_feature::accept): New function. | |
9053 | (target_desc): Inherit from tdesc_element. | |
9054 | (target_desc::target_desc): New. | |
9055 | (target_desc::~target_desc): New. | |
9056 | (target_desc::accept): New. | |
9057 | (allocate_target_description): Use new. | |
9058 | (free_target_description): Use delete. | |
9059 | (print_c_tdesc): New class. | |
9060 | (maint_print_c_tdesc_cmd): Adjust. | |
9061 | ||
9062 | * features/aarch64.c: Re-generated. | |
9063 | * features/arc-arcompact.c: Re-generated. | |
9064 | * features/arc-v2.c: Re-generated. | |
9065 | * features/arm/arm-with-iwmmxt.c: Re-generated. | |
9066 | * features/arm/arm-with-m.c: Re-generated. | |
9067 | * features/arm/arm-with-m-fpa-layout.c: Re-generated. | |
9068 | * features/arm/arm-with-m-vfp-d16.c: Re-generated. | |
9069 | * features/arm/arm-with-neon.c: Re-generated. | |
9070 | * features/arm/arm-with-vfpv2.c: Re-generated. | |
9071 | * features/arm/arm-with-vfpv3.c: Re-generated. | |
9072 | * features/i386/amd64-avx-avx512.c: Re-generated. | |
9073 | * features/i386/amd64-avx-avx512-linux.c: Re-generated. | |
9074 | * features/i386/amd64-avx.c: Re-generated. | |
9075 | * features/i386/amd64-avx-linux.c: Re-generated. | |
9076 | * features/i386/amd64-avx-mpx-avx512-pku.c: Re-generated. | |
9077 | * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated. | |
9078 | * features/i386/amd64-avx-mpx.c: Re-generated. | |
9079 | * features/i386/amd64-avx-mpx-linux.c: Re-generated. | |
9080 | * features/i386/amd64.c: Re-generated. | |
9081 | * features/i386/amd64-linux.c: Re-generated. | |
9082 | * features/i386/amd64-mpx.c: Re-generated. | |
9083 | * features/i386/amd64-mpx-linux.c: Re-generated. | |
9084 | * features/i386/i386-avx-avx512.c: Re-generated. | |
9085 | * features/i386/i386-avx-avx512-linux.c: Re-generated. | |
9086 | * features/i386/i386-avx.c: Re-generated. | |
9087 | * features/i386/i386-avx-linux.c: Re-generated. | |
9088 | * features/i386/i386-avx-mpx-avx512-pku.c: Re-generated. | |
9089 | * features/i386/i386-avx-mpx-avx512-pku-linux.c: Re-generated. | |
9090 | * features/i386/i386-avx-mpx.c: Re-generated. | |
9091 | * features/i386/i386-avx-mpx-linux.c: Re-generated. | |
9092 | * features/i386/i386.c: Re-generated. | |
9093 | * features/i386/i386-linux.c: Re-generated. | |
9094 | * features/i386/i386-mmx.c: Re-generated. | |
9095 | * features/i386/i386-mmx-linux.c: Re-generated. | |
9096 | * features/i386/i386-mpx.c: Re-generated. | |
9097 | * features/i386/i386-mpx-linux.c: Re-generated. | |
9098 | * features/i386/x32-avx-avx512.c: Re-generated. | |
9099 | * features/i386/x32-avx-avx512-linux.c: Re-generated. | |
9100 | * features/i386/x32-avx.c: Re-generated. | |
9101 | * features/i386/x32-avx-linux.c: Re-generated. | |
9102 | * features/i386/x32.c: Re-generated. | |
9103 | * features/i386/x32-linux.c: Re-generated. | |
9104 | * features/microblaze.c: Re-generated. | |
9105 | * features/microblaze-with-stack-protect.c: Re-generated. | |
9106 | * features/mips64-dsp-linux.c: Re-generated. | |
9107 | * features/mips64-linux.c: Re-generated. | |
9108 | * features/mips-dsp-linux.c: Re-generated. | |
9109 | * features/mips-linux.c: Re-generated. | |
9110 | * features/nds32.c: Re-generated. | |
9111 | * features/nios2.c: Re-generated. | |
9112 | * features/nios2-linux.c: Re-generated. | |
9113 | * features/rs6000/powerpc-32.c: Re-generated. | |
9114 | * features/rs6000/powerpc-32l.c: Re-generated. | |
9115 | * features/rs6000/powerpc-403.c: Re-generated. | |
9116 | * features/rs6000/powerpc-403gc.c : Re-generated. | |
9117 | * features/rs6000/powerpc-405.c: Re-generated. | |
9118 | * features/rs6000/powerpc-505.c: Re-generated. | |
9119 | * features/rs6000/powerpc-601.c: Re-generated. | |
9120 | * features/rs6000/powerpc-602.c: Re-generated. | |
9121 | * features/rs6000/powerpc-603.c: Re-generated. | |
9122 | * features/rs6000/powerpc-604.c: Re-generated. | |
9123 | * features/rs6000/powerpc-64.c: Re-generated. | |
9124 | * features/rs6000/powerpc-64l.c: Re-generated. | |
9125 | * features/rs6000/powerpc-7400.c: Re-generated. | |
9126 | * features/rs6000/powerpc-750.c: Re-generated. | |
9127 | * features/rs6000/powerpc-860.c: Re-generated. | |
9128 | * features/rs6000/powerpc-altivec32.c: Re-generated. | |
9129 | * features/rs6000/powerpc-altivec32l.c: Re-generated. | |
9130 | * features/rs6000/powerpc-altivec64.c: Re-generated. | |
9131 | * features/rs6000/powerpc-altivec64l.c: Re-generated. | |
9132 | * features/rs6000/powerpc-cell32l.c: Re-generated. | |
9133 | * features/rs6000/powerpc-cell64l.c: Re-generated. | |
9134 | * features/rs6000/powerpc-e500.c: Re-generated. | |
9135 | * features/rs6000/powerpc-e500l.c: Re-generated. | |
9136 | * features/rs6000/powerpc-isa205-32l.c: Re-generated. | |
9137 | * features/rs6000/powerpc-isa205-64l.c: Re-generated. | |
9138 | * features/rs6000/powerpc-isa205-altivec32l.c: Re-generated. | |
9139 | * features/rs6000/powerpc-isa205-altivec64l.c: Re-generated. | |
9140 | * features/rs6000/powerpc-isa205-vsx32l.c: Re-generated. | |
9141 | * features/rs6000/powerpc-isa205-vsx64l.c: Re-generated. | |
9142 | * features/rs6000/powerpc-vsx32.c: Re-generated. | |
9143 | * features/rs6000/powerpc-vsx32l.c: Re-generated. | |
9144 | * features/rs6000/powerpc-vsx64.c: Re-generated. | |
9145 | * features/rs6000/powerpc-vsx64l.c: Re-generated. | |
9146 | * features/rs6000/rs6000.c: Re-generated. | |
9147 | * features/s390-linux32.c: Re-generated. | |
9148 | * features/s390-linux32v1.c: Re-generated. | |
9149 | * features/s390-linux32v2.c: Re-generated. | |
9150 | * features/s390-linux64.c: Re-generated. | |
9151 | * features/s390-linux64v1.c: Re-generated. | |
9152 | * features/s390-linux64v2.c: Re-generated. | |
9153 | * features/s390-te-linux64.c: Re-generated. | |
9154 | * features/s390-tevx-linux64.c: Re-generated. | |
9155 | * features/s390-vx-linux64.c: Re-generated. | |
9156 | * features/s390x-linux64.c: Re-generated. | |
9157 | * features/s390x-linux64v1.c: Re-generated. | |
9158 | * features/s390x-linux64v2.c: Re-generated. | |
9159 | * features/s390x-te-linux64.c: Re-generated. | |
9160 | * features/s390x-tevx-linux64.c: Re-generated. | |
9161 | * features/s390x-vx-linux64.c: Re-generated. | |
9162 | * features/sparc/sparc32-solaris.c: Re-generated. | |
9163 | * features/sparc/sparc64-solaris.c: Re-generated. | |
9164 | * features/tic6x-c62x.c: Re-generated. | |
9165 | * features/tic6x-c62x-linux.c: Re-generated. | |
9166 | * features/tic6x-c64x.c: Re-generated. | |
9167 | * features/tic6x-c64x-linux.c: Re-generated. | |
9168 | * features/tic6x-c64xp.c: Re-generated. | |
9169 | * features/tic6x-c64xp-linux.c: Re-generated. | |
9170 | ||
35b4818d YQ |
9171 | 2017-07-26 Yao Qi <yao.qi@linaro.org> |
9172 | ||
9173 | * i386-linux-tdep.c (i386_linux_read_description): New function. | |
9174 | (i386_linux_core_read_description): Call | |
9175 | i386_linux_read_description. | |
9176 | * i386-linux-tdep.h (i386_linux_read_description): Declare. | |
9177 | (tdesc_i386_linux, tdesc_i386_mmx_linux): Remove declarations. | |
9178 | (tdesc_i386_avx_linux, tdesc_i386_mpx_linux): Likewise | |
9179 | (tdesc_i386_avx_mpx_linux, tdesc_i386_avx_avx512_linux): Likewise. | |
9180 | (tdesc_i386_avx_mpx_avx512_pku_linux): Likewise. | |
9181 | * x86-linux-nat.c (x86_linux_read_description): Call | |
9182 | i386_linux_read_description. | |
9183 | ||
8e2141c6 YQ |
9184 | 2017-07-26 Yao Qi <yao.qi@linaro.org> |
9185 | ||
9186 | * NEWS: Mention it. | |
9187 | * features/Makefile (%.c: %.xml): Pass the xml file name to | |
9188 | command "maint print c-tdesc". | |
9189 | * target-descriptions.c (maint_print_c_tdesc_cmd): Get file | |
9190 | name from 'arg'. | |
9191 | ||
b468ff4c YQ |
9192 | 2017-07-26 Yao Qi <yao.qi@linaro.org> |
9193 | ||
9194 | * target-descriptions.c (target_desc): Add ctor and dtor. Do | |
9195 | in-class initialization. | |
9196 | (tdesc_create_feature): Call new instead of XCNEW. | |
9197 | (free_target_description): Ue delete. | |
9198 | ||
b9c0e1b4 JB |
9199 | 2017-07-25 John Baldwin <jhb@FreeBSD.org> |
9200 | ||
9201 | * configure.nat: Add "-lkvm" for NetBSD/sparc64 and fix typo. | |
9202 | ||
a04b5337 YQ |
9203 | 2017-07-25 Yao Qi <yao.qi@linaro.org> |
9204 | ||
9205 | * amd64-tdep.c (amd64_init_abi): Make argument default_tdesc | |
9206 | constant. | |
9207 | (amd64_x32_init_abi): Likewise. | |
9208 | * amd64-tdep.h (amd64_init_abi): Update declaration. | |
9209 | (amd64_x32_init_abi): Likewise. | |
9210 | ||
02ad7fc2 YQ |
9211 | 2017-07-25 Yao Qi <yao.qi@linaro.org> |
9212 | ||
9213 | PR tdep/21717 | |
9214 | * arm-linux-nat.c (arm_linux_fetch_inferior_registers): Update | |
9215 | condition for FPSCR. | |
9216 | (arm_linux_store_inferior_registers): Likewise. | |
9217 | ||
b6f48cb0 TT |
9218 | 2017-07-22 Tom Tromey <tom@tromey.com> |
9219 | ||
9220 | * break-catch-syscall.c (struct catch_syscall_inferior_data) | |
9221 | <syscalls_counts>: Now a std::vector. | |
9222 | (get_catch_syscall_inferior_data): Use "new". | |
9223 | (catch_syscall_inferior_data_cleanup): Use "delete". | |
9224 | (insert_catch_syscall, remove_catch_syscall) | |
9225 | (clear_syscall_counts): Update. | |
9226 | ||
e12c9b7a TT |
9227 | 2017-07-22 Tom Tromey <tom@tromey.com> |
9228 | ||
9229 | * break-catch-syscall.c (syscall_catchpoint) | |
9230 | <syscalls_to_be_caught>: Now a std::vector<int> | |
9231 | (~syscall_catchpoint): Remove. | |
9232 | (insert_catch_syscall, remove_catch_syscall) | |
9233 | (breakpoint_hit_catch_syscall, print_one_catch_syscall) | |
9234 | (print_mention_catch_syscall, print_recreate_catch_syscall): | |
9235 | Update. | |
9236 | (create_syscall_event_catchpoint): Change type of "filter" | |
9237 | parameter. | |
9238 | (catch_syscall_split_args): Return a std::vector. | |
9239 | (catch_syscall_command_1, catching_syscall_number_1): Update. | |
9240 | ||
4fa8aeac TT |
9241 | 2017-07-22 Tom Tromey <tom@tromey.com> |
9242 | ||
9243 | * break-catch-throw.c (struct exception_catchpoint) | |
9244 | <exception_rx>: Now a std::string. | |
9245 | (~exception_catchpoint): Remove. | |
9246 | (print_one_detail_exception_catchpoint): Update. | |
9247 | (handle_gnu_v3_exceptions): Change type of except_rx. | |
9248 | (extract_exception_regexp): Return a std::string. | |
9249 | (catch_exception_command_1): Update. | |
9250 | ||
f746a154 TT |
9251 | 2017-07-22 Tom Tromey <tom@tromey.com> |
9252 | ||
9253 | * break-catch-sig.c (gdb_signal_type): Remove typedef. | |
9254 | (struct signal_catchpoint) <signals_to_be_caught>: Now a | |
9255 | std::vector. | |
9256 | <catch_all>: Now a bool. | |
9257 | (~signal_catchpoint): Remove. | |
9258 | (signal_catchpoint_insert_location) | |
9259 | (signal_catchpoint_remove_location) | |
9260 | (signal_catchpoint_breakpoint_hit, signal_catchpoint_print_one) | |
9261 | (signal_catchpoint_print_mention) | |
9262 | (signal_catchpoint_print_recreate) | |
9263 | (signal_catchpoint_explains_signal): Update. | |
9264 | (create_signal_catchpoint): Change type of "filter" and | |
9265 | "catch_all". | |
9266 | (catch_signal_split_args): Return a std::vector. Change type of | |
9267 | "catch_all". | |
9268 | (catch_signal_command): Update. | |
9269 | ||
47e77640 PA |
9270 | 2017-07-20 Pedro Alves <palves@redhat.com> |
9271 | ||
9272 | * ada-lang.c (ada_language_defn): Make extern. | |
9273 | (_initialize_ada_language): Remove add_language call. | |
9274 | * c-lang.c (c_language_defn, cplus_language_defn) | |
9275 | (asm_language_defn, minimal_language_defn): Make extern. | |
9276 | (_initialize_c_language): Delete. | |
9277 | * completer.c (compare_cstrings): Delete, moved to utils.h. | |
9278 | * d-lang.c (d_language_defn): Make extern. | |
9279 | (_initialize_d_language): Remove add_language calls. | |
9280 | * defs.h (enum language): Add comment. | |
9281 | * f-lang.c (f_language_defn): Make extern. | |
9282 | (_initialize_f_language): Remove add_language call. | |
9283 | * go-lang.c (go_language_defn): Make extern. | |
9284 | (_initialize_go_language): Remove add_language call. | |
9285 | * language.c: Include <algorithm>. | |
9286 | (languages): Redefine as const array. | |
9287 | (languages_size, languages_allocsize, DEFAULT_ALLOCSIZE): Delete. | |
9288 | (set_language_command): Handle "local". Use for-range loop. | |
9289 | (set_language): Remove loop. | |
9290 | (language_enum): Rewrite. | |
9291 | (language_def, language_str): Remove loops. | |
9292 | (add_language): Delete. | |
9293 | (add_set_language_command): New, based on add_languages. | |
9294 | (skip_language_trampoline): Adjust. | |
9295 | (local_language_defn): Delete. | |
9296 | (language_gdbarch_post_init): Adjust. | |
9297 | (_initialize_language): Remove add_language calls. Call | |
9298 | add_set_language_command. | |
9299 | * language.h (add_language): Delete. | |
9300 | (auto_language_defn) | |
9301 | (unknown_language_defn, minimal_language_defn, ada_language_defn) | |
9302 | (asm_language_defn, c_language_defn, cplus_language_defn) | |
9303 | (d_language_defn, f_language_defn, go_language_defn) | |
9304 | (m2_language_defn, objc_language_defn, opencl_language_defn) | |
9305 | (pascal_language_defn, rust_language_defn): Declare. | |
9306 | * m2-lang.c (m2_language_defn): Make extern. | |
9307 | (_initialize_m2_language): Remove add_language call. | |
9308 | * objc-lang.c (objc_language_defn): Make extern. | |
9309 | (_initialize_objc_language): Remove add_language call. | |
9310 | * opencl-lang.c (opencl_language_defn): Make extern. | |
9311 | (_initialize_opencl_language): Remove add_language call. | |
9312 | * p-lang.c (pascal_language_defn): Make extern. | |
9313 | (_initialize_pascal_language): Delete. | |
9314 | * rust-lang.c (rust_language_defn): Make extern. | |
9315 | (_initialize_rust_language): Delete. | |
9316 | * utils.h (compare_cstrings): New static inline function. | |
9317 | ||
edb0c9cb PA |
9318 | 2017-07-20 Pedro Alves <palves@redhat.com> |
9319 | ||
9320 | * ada-lang.c (ada_to_fixed_type_1): Adjust. | |
9321 | (get_var_value): Constify parameters. | |
9322 | (get_int_var_value): Change prototype. | |
9323 | (to_fixed_range_type): Adjust. | |
9324 | * ada-lang.h (get_int_var_value): Change prototype. | |
9325 | ||
a778f165 PA |
9326 | 2017-07-20 Pedro Alves <palves@redhat.com> |
9327 | ||
9328 | * dwarf2read.c (dw2_lookup_symbol): Use | |
9329 | SYMBOL_MATCHES_SEARCH_NAME. | |
9330 | * psymtab.c (psym_lookup_symbol): Use SYMBOL_MATCHES_SEARCH_NAME. | |
9331 | ||
42edd901 PA |
9332 | 2017-07-20 Pedro Alves <palves@redhat.com> |
9333 | ||
9334 | * block.c (block_iter_name_step, block_iter_name_first) | |
9335 | (block_iter_name_next): Delete. | |
9336 | (block_lookup_symbol_primary): Adjust to use | |
9337 | dict_iter_match_first/dict_iter_match_next. | |
9338 | * block.h (block_iter_name_first, block_iter_name_next): Delete | |
9339 | declarations. | |
9340 | (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use | |
9341 | dict_iter_match_first/dict_iter_match_next. | |
9342 | ||
cf325299 PA |
9343 | 2017-07-20 Pedro Alves <palves@redhat.com> |
9344 | ||
9345 | * cp-support.c (cp_find_first_component_aux): Add missing case for | |
9346 | end of string. | |
9347 | ||
c5ed0576 DB |
9348 | 2017-07-18 David Blaikie <dblaikie@gmail.com> |
9349 | ||
9350 | * dwarf2read.c (create_cus_hash_table): Re-add lost initialization | |
9351 | of dwo_cu's dwo_file. | |
9352 | ||
27841e76 YQ |
9353 | 2017-07-18 Yao Qi <yao.qi@linaro.org> |
9354 | ||
9355 | * remote.c (store_registers_using_G): Remove one line comment. | |
9356 | ||
cfb7e58b YQ |
9357 | 2017-07-18 Yao Qi <yao.qi@linaro.org> |
9358 | ||
9359 | * regcache.c (regcache_cpy): Simplify it. | |
9360 | (regcache::cpy_no_passthrough): Remove it. | |
9361 | * regcache.h (cpy_no_passthrough): Remove it. | |
9362 | (regcache_dup, regcache_cpy): Update comments. | |
9363 | ||
386535dd PA |
9364 | 2017-07-18 Pedro Alves <palves@redhat.com> |
9365 | ||
9366 | * remote-sim.c (sim_command_completer): Adjust to work with a | |
9367 | completion_tracker instead of a VEC. | |
9368 | ||
c45ec17c PA |
9369 | 2017-07-17 Pedro Alves <palves@redhat.com> |
9370 | ||
9371 | * completer.c (complete_source_filenames): New function. | |
9372 | (complete_address_and_linespec_locations): New function. | |
9373 | (location_completer): Use complete_address_and_linespec_locations. | |
9374 | (completion_tracker::build_completion_result): Honor the tracker's | |
9375 | request to suppress append. | |
9376 | * completer.h (completion_tracker::suppress_append_ws) | |
9377 | (completion_tracker::set_suppress_append_ws): New methods. | |
9378 | (completion_tracker::m_suppress_append_ws): New field. | |
9379 | (complete_source_filenames): New declaration. | |
9380 | * linespec.c (linespec_complete_what): New. | |
9381 | (struct ls_parser) <complete_what, completion_word, | |
9382 | completion_quote_char, completion_quote_end, completion_tracker>: | |
9383 | New fields. | |
9384 | (string_find_incomplete_keyword_at_end): New. | |
9385 | (linespec_lexer_lex_string): Record quote char. If in completion | |
9386 | mode, don't throw. | |
9387 | (linespec_lexer_consume_token): Advance the completion word point. | |
9388 | (linespec_lexer_peek_token): Save/restore completion info. | |
9389 | (save_stream_and_consume_token): New. | |
9390 | (set_completion_after_number): New. | |
9391 | (linespec_parse_basic): Set what to complete next depending on | |
9392 | token. Handle function and label completions specially. | |
9393 | (parse_linespec): Disable objc shortcut in completion mode. Set | |
9394 | what to complete next depending on token type. Skip keyword if in | |
9395 | completion mode. | |
9396 | (complete_linespec_component, linespec_complete): New. | |
9397 | * linespec.h (linespec_complete): Declare. | |
9398 | ||
be966d42 PA |
9399 | 2017-07-17 Pedro Alves <palves@redhat.com> |
9400 | ||
9401 | * linespec.c (linespec_lexer_lex_string, find_toplevel_char): | |
9402 | Handle 'operator<' / 'operator<<'. | |
9403 | ||
a2459270 PA |
9404 | 2017-07-17 Pedro Alves <palves@redhat.com> |
9405 | ||
9406 | * completer.c (collect_explicit_location_matches): Handle | |
9407 | MATCH_LABEL. | |
9408 | (convert_explicit_location_to_linespec): New, factored out from | |
9409 | ... | |
9410 | (convert_explicit_location_to_sals): ... this. | |
9411 | (complete_label): New. | |
9412 | (linespec_complete_label, find_label_symbols_in_block): New. | |
9413 | (find_label_symbols): Add completion_mode parameter and adjust to | |
9414 | call find_label_symbols_in_block. | |
9415 | * linespec.h (linespec_complete_label): Declare. | |
9416 | ||
c6756f62 PA |
9417 | 2017-07-17 Pedro Alves <palves@redhat.com> |
9418 | ||
9419 | * ada-lang.c (ada_collect_symbol_completion_matches): Add | |
9420 | complete_symbol_mode parameter. | |
9421 | * cli/cli-cmds.c (complete_command): Get the completion result out | |
9422 | of the handle_brkchars tracker if used a custom word point. | |
9423 | * completer.c: Include "linespec.h". | |
9424 | (enum explicit_location_match_type) <MATCH_LINE>: New enumerator. | |
9425 | (advance_to_expression_complete_word_point): New. | |
9426 | (completion_tracker::completes_to_completion_word): New. | |
9427 | (complete_files_symbols): Pass down | |
9428 | complete_symbol_mode::EXPRESSION. | |
9429 | (explicit_options, probe_options): New. | |
9430 | (collect_explicit_location_matches): Complete on the | |
9431 | explictit_loc->foo instead of word. Use | |
9432 | linespec_complete_function. Handle MATCH_LINE. Handle offering | |
9433 | keyword and options completions. | |
9434 | (backup_text_ptr): Delete. | |
9435 | (skip_keyword): New. | |
9436 | (complete_explicit_location): Remove 'word' parameter. Add | |
9437 | language, quoted_arg_start and quoted_arg_end parameters. | |
9438 | Rewrite, parsing left to right. | |
9439 | (location_completer): Rewrite. | |
9440 | (location_completer_handle_brkchars): New function. | |
9441 | (symbol_completer): Pass down complete_symbol_mode::EXPRESSION. | |
9442 | (enum complete_line_internal_reason): Adjust comments. | |
9443 | (completion_tracker::discard_completions): New. | |
9444 | (completer_handle_brkchars_func_for_completer): Handle | |
9445 | location_completer. | |
9446 | (gdb_custom_word_point_brkchars) | |
9447 | (gdb_org_rl_basic_quote_characters): New. | |
9448 | (gdb_completion_word_break_characters_throw) | |
9449 | (completion_find_completion_word): Handle trackers that use a | |
9450 | custom word point. | |
9451 | (completion_tracker::advance_custom_word_point_by): New. | |
9452 | (completion_tracker::build_completion_result): Don't rely on | |
9453 | readline appending the quote char. | |
9454 | (gdb_rl_attempted_completion_function_throw): Handle trackers that | |
9455 | use a custom word point. | |
9456 | (gdb_rl_attempted_completion_function): Restore | |
9457 | rl_basic_quote_characters. | |
9458 | * completer.h (class completion_tracker): Extend intro comment. | |
9459 | (completion_tracker::set_quote_char) | |
9460 | (completion_tracker::quote_char) | |
9461 | (completion_tracker::set_use_custom_word_point) | |
9462 | (completion_tracker::use_custom_word_point) | |
9463 | (completion_tracker::custom_word_point) | |
9464 | (completion_tracker::set_custom_word_point) | |
9465 | (completion_tracker::advance_custom_word_point_by) | |
9466 | (completion_tracker::completes_to_completion_word) | |
9467 | (completion_tracker::discard_completions): New methods. | |
9468 | (completion_tracker::m_quote_char) | |
9469 | (completion_tracker::m_use_custom_word_point) | |
9470 | (completion_tracker::m_custom_word_point): New fields. | |
9471 | (advance_to_expression_complete_word_point): Declare. | |
9472 | * f-lang.c (f_collect_symbol_completion_matches): Add | |
9473 | complete_symbol_mode parameter. | |
9474 | * language.h (struct language_defn) | |
9475 | <la_collect_symbol_completion_matches>: Add complete_symbol_mode | |
9476 | parameter. | |
9477 | * linespec.c (linespec_keywords): Add NULL terminator. Make extern. | |
9478 | (linespec_complete_function): New function. | |
9479 | (linespec_lexer_lex_keyword): Adjust. | |
9480 | * linespec.h (linespec_keywords, linespec_complete_function): New | |
9481 | declarations. | |
9482 | * location.c (find_end_quote): New function. | |
9483 | (explicit_location_lex_one): Add explicit_completion_info | |
9484 | parameter. Save quoting info. Don't throw if being called for | |
9485 | completion. Don't handle Ada operators here. | |
9486 | (is_cp_operator, skip_op_false_positives, first_of) | |
9487 | (explicit_location_lex_one_function): New function. | |
9488 | (string_to_explicit_location): Replace 'dont_throw' parameter with | |
9489 | an explicit_completion_info pointer parameter. Handle it. Don't | |
9490 | use explicit_location_lex_one to lex function names. Use | |
9491 | explicit_location_lex_one_function instead. | |
9492 | * location.h (struct explicit_completion_info): New. | |
9493 | (string_to_explicit_location): Replace 'dont_throw' parameter with | |
9494 | an explicit_completion_info pointer parameter. | |
9495 | * symtab.c (default_collect_symbol_completion_matches_break_on): | |
9496 | Add complete_symbol_mode parameter. Handle LINESPEC mode. | |
9497 | (default_collect_symbol_completion_matches) | |
9498 | (collect_symbol_completion_matches): Add complete_symbol_mode | |
9499 | parameter. | |
9500 | (collect_symbol_completion_matches_type): Pass down | |
9501 | complete_symbol_mode::EXPRESSION. | |
9502 | (collect_file_symbol_completion_matches): Add complete_symbol_mode | |
9503 | parameter. Handle LINESPEC mode. | |
9504 | * symtab.h (complete_symbol_mode): New. | |
9505 | (default_collect_symbol_completion_matches_break_on) | |
9506 | (default_collect_symbol_completion_matches) | |
9507 | (collect_symbol_completion_matches) | |
9508 | (collect_file_symbol_completion_matches): Add complete_symbol_mode | |
9509 | parameter. | |
9510 | ||
1d550c82 PA |
9511 | 2017-07-17 Pedro Alves <palves@redhat.com> |
9512 | ||
9513 | * utils.c (enum class strncmp_iw_mode): New. | |
9514 | (strcmp_iw): Rename to ... | |
9515 | (strncmp_iw_with_mode): ... this. Add string2_len and mode | |
9516 | parameters. Handle them. | |
9517 | (strncmp_iw): New. | |
9518 | (strcmp_iw): Reimplement as wrapper around strncmp_iw_with_mode. | |
9519 | * utils.h (strncmp_iw): Declare. | |
9520 | (strcmp_iw): Move describing comments here. | |
9521 | ||
8090b426 PA |
9522 | 2017-07-17 Pedro Alves <palves@redhat.com> |
9523 | ||
9524 | * c-exp.y (operator_stoken): Use CP_OPERATOR_LEN and | |
9525 | CP_OPERATOR_STR. | |
9526 | * c-typeprint.c (is_type_conversion_operator): Use | |
9527 | CP_OPERATOR_STR. | |
9528 | * cp-support.c (LENGTH_OF_OPERATOR): Delete. | |
9529 | (cp_find_first_component_aux): Use CP_OPERATOR_STR and | |
9530 | CP_OPERATOR_LEN. | |
9531 | * cp-support.h (CP_OPERATOR_STR, CP_OPERATOR_LEN): New. | |
9532 | * gnu-v2-abi.c (gnuv2_is_operator_name): Use CP_OPERATOR_STR. | |
9533 | * gnu-v3-abi.c (gnuv3_is_operator_name): Use CP_OPERATOR_STR. | |
9534 | * linespec.c (linespec_lexer_lex_string): Use CP_OPERATOR_LEN and | |
9535 | CP_OPERATOR_STR. | |
9536 | * location.c: Include "cp-support.h". | |
9537 | (explicit_location_lex_one): Use CP_OPERATOR_LEN and | |
9538 | CP_OPERATOR_STR. | |
9539 | * symtab.c (operator_chars): Use CP_OPERATOR_STR and | |
9540 | CP_OPERATOR_LEN. | |
9541 | ||
6a2c1b87 PA |
9542 | 2017-07-17 Pedro Alves <palves@redhat.com> |
9543 | ||
9544 | * cli/cli-cmds.c (complete_command): Use a completion tracker | |
9545 | along with completion_find_completion_word for handle_brkchars | |
9546 | phase. | |
9547 | * completer.c (RL_QF_SINGLE_QUOTE, RL_QF_DOUBLE_QUOTE) | |
9548 | (RL_QF_BACKSLASH, RL_QF_OTHER_QUOTE): New. | |
9549 | (struct gdb_rl_completion_word_info): New. | |
9550 | (gdb_rl_find_completion_word): New. | |
9551 | (completion_find_completion_word): New. | |
9552 | * completer.h (completion_find_completion_word): Declare. | |
9553 | ||
eb3ff9a5 PA |
9554 | 2017-07-17 Pedro Alves <palves@redhat.com> |
9555 | ||
9556 | * ada-lang.c (symbol_completion_match): Adjust comments. | |
9557 | (symbol_completion_add): Replace vector parameter with | |
9558 | completion_tracker parameter. Use it. | |
9559 | (ada_make_symbol_completion_list): Rename to... | |
9560 | (ada_collect_symbol_completion_matches): ... this. Add | |
9561 | completion_tracker parameter and use it. | |
9562 | (ada_language_defn): Adjust. | |
9563 | * break-catch-syscall.c (catch_syscall_completer): Adjust | |
9564 | prototype and work with completion_tracker instead of VEC. | |
9565 | * breakpoint.c (condition_completer): Adjust prototype and work | |
9566 | with completion_tracker instead of VEC. | |
9567 | * c-lang.c (c_language_defn, cplus_language_defn) | |
9568 | (asm_language_defn, minimal_language_defn): Adjust to renames. | |
9569 | * cli/cli-cmds.c (complete_command): Rework using | |
9570 | completion_tracker. Catch exceptions when completing. | |
9571 | * cli/cli-decode.c (integer_unlimited_completer) | |
9572 | (complete_on_cmdlist, complete_on_enum): Adjust prototype and work | |
9573 | with completion_tracker instead of VEC. | |
9574 | * command.h (struct completion_tracker): Forward declare. | |
9575 | (completer_ftype, completer_handle_brkchars_ftype): Change | |
9576 | types. | |
9577 | (complete_on_cmdlist, complete_on_enum): Adjust. | |
9578 | * completer.c: Include <algorithm>. | |
9579 | (struct gdb_completer_state): New. | |
9580 | (current_completion): New global. | |
9581 | (readline_line_completion_function): Delete. | |
9582 | (noop_completer, filename_completer) | |
9583 | (filename_completer_handle_brkchars, complete_files_symbols) | |
9584 | (linespec_location_completer): Adjust to work with a | |
9585 | completion_tracker instead of a VEC. | |
9586 | (string_or_empty): New. | |
9587 | (collect_explicit_location_matches): Adjust to work with a | |
9588 | completion_tracker instead of a VEC. | |
9589 | (explicit_location_completer): Rename to ... | |
9590 | (complete_explicit_location): ... this and adjust to work with a | |
9591 | completion_tracker instead of a VEC. | |
9592 | (location_completer): Adjust to work with a completion_tracker | |
9593 | instead of a VEC. | |
9594 | (add_struct_fields): Adjust to work with a completion_list instead | |
9595 | of VEC. | |
9596 | (expression_completer): Rename to ... | |
9597 | (complete_expression): ... this and adjust to work with a | |
9598 | completion_tracker instead of a VEC. Use complete_files_symbols. | |
9599 | (expression_completer): Reimplement on top of complete_expression. | |
9600 | (symbol_completer): Adjust to work with a completion_tracker | |
9601 | instead of a VEC. | |
9602 | (enum complete_line_internal_reason): Add describing comments. | |
9603 | (complete_line_internal_normal_command): Adjust to work with a | |
9604 | completion_tracker instead of a VEC. | |
9605 | (complete_line_internal): Rename to ... | |
9606 | (complete_line_internal_1): ... this and adjust to work with a | |
9607 | completion_tracker instead of a VEC. Assert TEXT is NULL in the | |
9608 | handle_brkchars phase. | |
9609 | (new_completion_tracker): Delete. | |
9610 | (complete_line_internal): Reimplement as TRY/CATCH wrapper around | |
9611 | complete_line_internal_1. | |
9612 | (free_completion_tracker): Delete. | |
9613 | (INITIAL_COMPLETION_HTAB_SIZE): New. | |
9614 | (completion_tracker::completion_tracker) | |
9615 | (completion_tracker::~completion_tracker): New. | |
9616 | (maybe_add_completion): Delete. | |
9617 | (completion_tracker::maybe_add_completion) | |
9618 | (completion_tracker::add_completion) | |
9619 | (completion_tracker::add_completions): New. | |
9620 | (throw_max_completions_reached_error): Delete. | |
9621 | (complete_line): Adjust to work with a completion_tracker instead | |
9622 | of a VEC. Don't create a completion_tracker_t or check for max | |
9623 | completions here. | |
9624 | (command_completer, command_completer_handle_brkchars) | |
9625 | (signal_completer, reg_or_group_completer_1) | |
9626 | (reg_or_group_completer, default_completer_handle_brkchars): | |
9627 | Adjust to work with a completion_tracker. | |
9628 | (gdb_completion_word_break_characters_throw): New. | |
9629 | (gdb_completion_word_break_characters): Reimplement. | |
9630 | (line_completion_function): Delete. | |
9631 | (completion_tracker::recompute_lowest_common_denominator) | |
9632 | (expand_preserving_ws) | |
9633 | (completion_tracker::build_completion_result) | |
9634 | (completion_result::completion_result) | |
9635 | (completion_result::completion_result) | |
9636 | (completion_result::~completion_result) | |
9637 | (completion_result::completion_result) | |
9638 | (completion_result::release_match_list, compare_cstrings) | |
9639 | (completion_result::sort_match_list) | |
9640 | (completion_result::reset_match_list) | |
9641 | (gdb_rl_attempted_completion_function_throw) | |
9642 | (gdb_rl_attempted_completion_function): New. | |
9643 | * completer.h (completion_list, struct completion_result) | |
9644 | (class completion_tracker): New. | |
9645 | (complete_line): Add completion_tracker parameter. | |
9646 | (readline_line_completion_function): Delete. | |
9647 | (gdb_rl_attempted_completion_function): New. | |
9648 | (noop_completer, filename_completer, expression_completer) | |
9649 | (location_completer, symbol_completer, command_completer) | |
9650 | (signal_completer, reg_or_group_completer): Update prototypes. | |
9651 | (completion_tracker_t, new_completion_tracker) | |
9652 | (make_cleanup_free_completion_tracker): Delete. | |
9653 | (enum maybe_add_completion_enum): Delete. | |
9654 | (maybe_add_completion): Delete. | |
9655 | (throw_max_completions_reached_error): Delete. | |
9656 | * corefile.c (complete_set_gnutarget): Adjust to work with a | |
9657 | completion_tracker instead of a VEC. | |
9658 | * cp-abi.c (cp_abi_completer): Adjust to work with a | |
9659 | completion_tracker instead of a VEC. | |
9660 | * d-lang.c (d_language_defn): Adjust. | |
9661 | * disasm.c (disassembler_options_completer): Adjust to work with a | |
9662 | completion_tracker instead of a VEC. | |
9663 | * f-lang.c (f_make_symbol_completion_list): Rename to ... | |
9664 | (f_collect_symbol_completion_matches): ... this. Adjust to work | |
9665 | with a completion_tracker instead of a VEC. | |
9666 | (f_language_defn): Adjust. | |
9667 | * go-lang.c (go_language_defn): Adjust. | |
9668 | * guile/scm-cmd.c (cmdscm_add_completion, cmdscm_completer): | |
9669 | Adjust to work with a completion_tracker instead of a VEC. | |
9670 | * infrun.c (handle_completer): Likewise. | |
9671 | * interps.c (interpreter_completer): Likewise. | |
9672 | * interps.h (interpreter_completer): Likewise. | |
9673 | * language.c (unknown_language_defn, auto_language_defn) | |
9674 | (local_language_defn): Adjust. | |
9675 | * language.h (language_defn::la_make_symbol_completion_list): | |
9676 | Rename to ... | |
9677 | (language_defn::la_collect_symbol_completion_matches): ... this | |
9678 | and adjust to work with a completion_tracker instead of a VEC. | |
9679 | * m2-lang.c (m2_language_defn): Adjust. | |
9680 | * objc-lang.c (objc_language_defn): Adjust. | |
9681 | * opencl-lang.c (opencl_language_defn): Adjust. | |
9682 | * p-lang.c (pascal_language_defn): Adjust. | |
9683 | * python/py-cmd.c (cmdpy_completer_helper): Handle NULL word. | |
9684 | (cmdpy_completer_handle_brkchars, cmdpy_completer): Adjust to work | |
9685 | with a completion_tracker. | |
9686 | * rust-lang.c (rust_language_defn): Adjust. | |
9687 | * symtab.c (free_completion_list, do_free_completion_list) | |
9688 | (return_val, completion_tracker): Delete. | |
9689 | (completion_list_add_name, completion_list_add_symbol) | |
9690 | (completion_list_add_msymbol, completion_list_objc_symbol) | |
9691 | (completion_list_add_fields, add_symtab_completions): Add | |
9692 | completion_tracker parameter and use it. | |
9693 | (default_make_symbol_completion_list_break_on_1): Rename to... | |
9694 | (default_collect_symbol_completion_matches_break_on): ... this. | |
9695 | Add completion_tracker parameter and use it instead of allocating | |
9696 | a completion tracker here. | |
9697 | (default_make_symbol_completion_list_break_on): Delete old | |
9698 | implementation. | |
9699 | (default_make_symbol_completion_list): Delete. | |
9700 | (default_collect_symbol_completion_matches): New. | |
9701 | (make_symbol_completion_list): Delete. | |
9702 | (collect_symbol_completion_matches): New. | |
9703 | (make_symbol_completion_type): Rename to ... | |
9704 | (collect_symbol_completion_matches_type): ... this. Add | |
9705 | completion_tracker parameter and use it instead of VEC. | |
9706 | (make_file_symbol_completion_list_1): Rename to... | |
9707 | (collect_file_symbol_completion_matches): ... this. Add | |
9708 | completion_tracker parameter and use it instead of VEC. | |
9709 | (make_file_symbol_completion_list): Delete. | |
9710 | (add_filename_to_list): Use completion_list instead of a VEC. | |
9711 | (add_partial_filename_data::list): Now a completion_list. | |
9712 | (make_source_files_completion_list): Work with a completion_list | |
9713 | instead of a VEC. | |
9714 | * symtab.h: Include "completer.h". | |
9715 | (default_make_symbol_completion_list_break_on) | |
9716 | (default_make_symbol_completion_list, make_symbol_completion_list) | |
9717 | (make_symbol_completion_type, make_file_symbol_completion_list) | |
9718 | (make_source_files_completion_list): Delete. | |
9719 | (default_collect_symbol_completion_matches_break_on) | |
9720 | (default_collect_symbol_completion_matches) | |
9721 | (collect_symbol_completion_matches) | |
9722 | (collect_symbol_completion_matches_type) | |
9723 | (collect_file_symbol_completion_matches) | |
9724 | (make_source_files_completion_list): New. | |
9725 | * top.c (init_main): Don't install a rl_completion_entry_function | |
9726 | hook. Install a rl_attempted_completion_function hook instead. | |
9727 | * tui/tui-layout.c (layout_completer): Adjust to work with a | |
9728 | completion_tracker. | |
9729 | * tui/tui-regs.c (tui_reggroup_completer): | |
9730 | * tui/tui-win.c (window_name_completer, focus_completer) | |
9731 | (winheight_completer): Adjust to work with a completion_tracker. | |
9732 | * value.c: Include "completer.h". | |
9733 | (complete_internalvar): Adjust to work with a completion_tracker. | |
9734 | * value.h (complete_internalvar): Likewise. | |
9735 | ||
6e1dbf8c PA |
9736 | 2017-07-17 Pedro Alves <palves@redhat.com> |
9737 | ||
9738 | * cli/cli-decode.c (set_cmd_completer_handle_brkchars): Adjust to | |
9739 | renames. | |
9740 | * cli/cli-decode.h (struct cmd_list_element) <completer>: Move | |
9741 | comments to completer_ftype's declaration. | |
9742 | <completer_handle_brkchars>: Change type to | |
9743 | completer_handle_brkchars_ftype. | |
9744 | * command.h (completer_ftype): Add describing comment and give | |
9745 | names to parameters. | |
9746 | (completer_ftype_void): Rename to ... | |
9747 | (completer_handle_brkchars_ftype) ... this. Add describing comment. | |
9748 | (set_cmd_completer_handle_brkchars): Adjust. | |
9749 | * completer.c (filename_completer_handle_brkchars): New function. | |
9750 | (complete_line_internal_normal_command): New function, factored | |
9751 | out from ... | |
9752 | (complete_line_internal): ... here. | |
9753 | (command_completer_handle_brkchars) | |
9754 | (default_completer_handle_brkchars) | |
9755 | (completer_handle_brkchars_func_for_completer): New functions. | |
9756 | * completer.h (set_gdb_completion_word_break_characters): Delete | |
9757 | declaration. | |
9758 | (completer_handle_brkchars_func_for_completer): New declaration. | |
9759 | * python/py-cmd.c (cmdpy_completer_handle_brkchars): Adjust to use | |
9760 | completer_handle_brkchars_func_for_completer. | |
9761 | ||
78b13106 PA |
9762 | 2017-07-17 Pedro Alves <palves@redhat.com> |
9763 | ||
9764 | * completer.c (symbol_completer): New function, based on | |
9765 | make_symbol_completion_list_fn. | |
9766 | * completer.h (symbol_completer): New declaration. | |
9767 | * guile/scm-cmd.c (cmdscm_completers): Adjust. | |
9768 | * python/py-cmd.c (completers): Adjust. | |
9769 | * symtab.c (make_symbol_completion_list_fn): Delete. | |
9770 | * symtab.h (make_symbol_completion_list_fn): Delete. | |
9771 | * cli/cli-decode.c (add_cmd): Adjust. | |
9772 | ||
bbf2f4df PA |
9773 | 2017-07-17 Pedro Alves <palves@redhat.com> |
9774 | ||
9775 | * Makefile.in (COMMON_OBS): Add filename-seen-cache.o. | |
9776 | * dwarf2read.c: Include "filename-seen-cache.h". | |
9777 | * dwarf2read.c (dwarf2_per_objfile) <filenames_cache>: New field. | |
9778 | (dw2_map_symbol_filenames): Build and use a filenames_seen_cache. | |
9779 | * filename-seen-cache.c: New file. | |
9780 | * filename-seen-cache.h: New file. | |
9781 | * symtab.c: Include "filename-seen-cache.h". | |
9782 | (struct filename_seen_cache, INITIAL_FILENAME_SEEN_CACHE_SIZE) | |
9783 | (create_filename_seen_cache, clear_filename_seen_cache) | |
9784 | (delete_filename_seen_cache, filename_seen): Delete, parts moved | |
9785 | to filename-seen-cache.h/filename-seen-cache.c. | |
9786 | (output_source_filename, sources_info) | |
9787 | (maybe_add_partial_symtab_filename) | |
9788 | (make_source_files_completion_list): Adjust to use | |
9789 | filename_seen_cache. | |
9790 | ||
330cdd98 PA |
9791 | 2017-07-17 Pedro Alves <palves@redhat.com> |
9792 | ||
9793 | * dwarf2read.c (dwarf2_per_objfile): In-class initialize all | |
9794 | fields. | |
9795 | (dwarf2_per_objfile::dwarf2_per_objfile(objfile*, const | |
9796 | dwarf2_debug_sections*)): New. | |
9797 | (dwarf2_per_objfile::dwarf2_per_objfile(const | |
9798 | dwarf2_per_objfile&)): Declare as deleted. | |
9799 | (dwarf2_per_objfile::operator=): Declare as deleted. | |
9800 | (dwarf2_per_objfile::dwarf2_per_objfile) | |
9801 | (dwarf2_per_objfile::~dwarf2_per_objfile) | |
9802 | (dwarf2_per_objfile::free_cached_comp_units): New. | |
9803 | (dwarf2_has_info): dwarf2_per_objfile initialization code moved to | |
9804 | ctor. Call dwarf2_per_objfile's ctor manually. | |
9805 | (dwarf2_locate_sections): Deleted/refactored as ... | |
9806 | (dwarf2_per_objfile::locate_sections): ... this new method. | |
9807 | (free_cached_comp_units): Defer to | |
9808 | dwarf2_per_objfile::free_cached_comp_units. | |
9809 | (dwarf2_free_objfile): Call dwarf2_per_objfile's dtor manually. | |
9810 | ||
8880f2a9 TT |
9811 | 2017-07-14 Tom Tromey <tom@tromey.com> |
9812 | ||
9813 | PR rust/21764: | |
9814 | * rust-exp.y (convert_ast_to_expression): Add "want_type" | |
9815 | parameter. | |
9816 | <UNOP_SIZEOF>: Split into separate case. | |
9817 | <UNOP_VAR_VALUE>: Handle want_type. Add error case. | |
9818 | ||
65547233 TT |
9819 | 2017-07-14 Tom Tromey <tom@tromey.com> |
9820 | ||
9821 | PR rust/21763: | |
9822 | * symtab.c (symbol_matches_domain): Add language_rust to special | |
9823 | case. | |
9824 | * rust-exp.y (convert_ast_to_expression) <OP_VAR_VALUE>: Don't | |
9825 | treat LOC_TYPEDEF symbols as variables. | |
9826 | ||
8f14146e PA |
9827 | 2017-07-14 Pedro Alves <palves@redhat.com> |
9828 | ||
9829 | * symtab.c (make_file_symbol_completion_list_1): Iterate over | |
9830 | symtabs matching all symtabs with SRCFILE as file name instead of | |
9831 | only considering the first hit, with lookup_symtab. | |
9832 | ||
2347965c SM |
9833 | 2017-07-14 Simon Marchi <simon.marchi@ericsson.com> |
9834 | ||
9835 | * ax-gdb.c (gen_aggregate_elt_ref): Remove operand_name and | |
9836 | operator_name parameters. | |
9837 | (gen_expr): Update function call. | |
9838 | ||
40f4af28 SM |
9839 | 2017-07-14 Simon Marchi <simon.marchi@ericsson.com> |
9840 | ||
9841 | * dwarf2loc.h (dwarf2_compile_expr_to_ax): Remove gdbarch | |
9842 | parameter. | |
9843 | * symtab.h (struct symbol_computed_ops::tracepoint_var_ref): | |
9844 | Likewise. | |
9845 | * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove gdbarch | |
9846 | parameter, use agent_expr::gdbarch instead, update function | |
9847 | calls. | |
9848 | (locexpr_tracepoint_var_ref): Likewise. | |
9849 | (loclist_tracepoint_var_ref): Likewise. | |
9850 | * ax-gdb.c (gen_trace_static_fields): Likewise. | |
9851 | (gen_traced_pop): Likewise. | |
9852 | (gen_frame_args_address): Likewise. | |
9853 | (gen_frame_locals_address): Likewise. | |
9854 | (gen_var_ref): Likewise. | |
9855 | (gen_struct_ref_recursive): Likewise. | |
9856 | (gen_static_field): Likewise. | |
9857 | (gen_maybe_namespace_elt): Likewise. | |
9858 | (gen_expr): Likewise. | |
9859 | (gen_trace_for_var): Likewise. | |
9860 | (gen_trace_for_expr): Likewise. | |
9861 | (gen_trace_for_return_address): Likewise. | |
9862 | ||
053f8057 SM |
9863 | 2017-07-14 Simon Marchi <simon.marchi@ericsson.com> |
9864 | ||
9865 | * ax-gdb.c (gen_deref, gen_address_of): Remove unused ax | |
9866 | parameter. | |
9867 | (gen_struct_ref, gen_expr, gen_expr_binop_rest): Update call. | |
9868 | ||
6661ad48 SM |
9869 | 2017-07-14 Simon Marchi <simon.marchi@ericsson.com> |
9870 | ||
9871 | * ax-gdb.c (gen_usual_unary): Remove exp parameter, get gdbarch | |
9872 | from ax, update calls. | |
9873 | (gen_usual_arithmetic): Likewise. | |
9874 | (gen_integral_promotions): Likewise. | |
9875 | (gen_bitfield_ref): Likewise. | |
9876 | (gen_primitive_field): Likewise. | |
9877 | (gen_struct_ref_recursive): Likewise. | |
9878 | (gen_struct_ref): Likewise. | |
9879 | (gen_maybe_namespace_elt): Likewise. | |
9880 | (gen_struct_elt_for_reference): Likewise. | |
9881 | (gen_namespace_elt): Likewise. | |
9882 | (gen_aggregate_elt_ref): Likewise. | |
9883 | (gen_expr): Get gdbarch from ax, update calls. | |
9884 | (gen_expr_binop_rest): Likewise. | |
9885 | ||
c55a47e7 PA |
9886 | 2017-07-13 Pedro Alves <palves@redhat.com> |
9887 | ||
9888 | * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Pass tdesc_amd64 | |
9889 | as default tdesc. | |
9890 | * amd64-dicos-tdep.c (amd64_dicos_init_abi): | |
9891 | * amd64-fbsd-tdep.c (amd64fbsd_init_abi): | |
9892 | * amd64-linux-tdep.c (amd64_linux_init_abi): Pass | |
9893 | tdesc_amd64_linux as default tdesc. Get final tdesc from the | |
9894 | tdep. | |
9895 | (amd64_x32_linux_init_abi): Pass tdesc_x32_linux as default tdesc. | |
9896 | Get final tdesc from the tdep. | |
9897 | * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Pass tdesc_amd64 as | |
9898 | default tdesc. | |
9899 | * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise. | |
9900 | * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise. | |
9901 | * amd64-tdep.c (amd64_init_abi): Add 'default_tdesc' parameter. | |
9902 | Use it as default tdesc. | |
9903 | (amd64_x32_init_abi): Add 'default_tdesc' parameter, and pass it | |
9904 | down to amd_init_abi. No longer handle fallback tdesc here. | |
9905 | * amd64-tdep.h (tdesc_x32): Declare. | |
9906 | (amd64_init_abi, amd64_x32_init_abi): Add 'default_tdesc' | |
9907 | parameter. | |
9908 | * amd64-windows-tdep.c (amd64_windows_init_abi): Pass tdesc_amd64 | |
9909 | as default tdesc. | |
9910 | ||
55efceab AA |
9911 | 2017-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
9912 | ||
9913 | * s390-linux-tdep.c (s390_process_record): Add support for | |
9914 | instructions new in arch12. | |
9915 | ||
0aa37b65 JB |
9916 | 2017-07-11 John Baldwin <jhb@FreeBSD.org> |
9917 | ||
9918 | * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use | |
9919 | PT_GETFSBASE and PT_GETGSBASE. | |
9920 | (amd64bsd_store_inferior_registers): Use PT_SETFSBASE and | |
9921 | PT_SETGSBASE. | |
9922 | ||
48aeef91 JB |
9923 | 2017-07-11 John Baldwin <jhb@FreeBSD.org> |
9924 | ||
9925 | * features/Makefile (amd64.dat, amd64-avx.dat, amd64-mpx.dat) | |
9926 | (amd64-avx-mpx.dat, amd64-avx-avx512.dat) | |
9927 | (amd64-avx-mpx-avx512-pku.dat): Add i386/64bit-segments.xml in | |
9928 | those rules. | |
9929 | * features/i386/amd64-avx-avx512.xml: Add 64bit-segments.xml. | |
9930 | * features/i386/amd64-avx-mpx-avx512-pku.xml: Add 64bit-segments.xml. | |
9931 | * features/i386/amd64-avx-mpx.xml: Add 64bit-segments.xml. | |
9932 | * features/i386/amd64-avx.xml: Add 64bit-segments.xml. | |
9933 | * features/i386/amd64-mpx.xml: Add 64bit-segments.xml. | |
9934 | * features/i386/amd64.xml: Add 64bit-segments.xml. | |
9935 | * features/i386/amd64-avx-avx512.c: Regenerated. | |
9936 | * features/i386/amd64-avx-mpx-avx512-pku.c: Regenerated. | |
9937 | * features/i386/amd64-avx-mpx.c: Regenerated. | |
9938 | * features/i386/amd64-avx.c: Regenerated. | |
9939 | * features/i386/amd64-mpx.c: Regenerated. | |
9940 | * features/i386/amd64.c: Regenerated. | |
9941 | * regformats/i386/amd64-avx-avx512.dat: Regenerated. | |
9942 | * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated. | |
9943 | * regformats/i386/amd64-avx-mpx.dat: Regenerated. | |
9944 | * regformats/i386/amd64-avx.dat: Regenerated. | |
9945 | * regformats/i386/amd64-mpx.dat: Regenerated. | |
9946 | * regformats/i386/amd64.dat: Regenerated. | |
9947 | ||
77c501bc YQ |
9948 | 2017-07-10 Yao Qi <yao.qi@linaro.org> |
9949 | ||
9950 | * features/i386/amd64-avx-avx512-linux.c: Re-generated. | |
9951 | * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated. | |
9952 | ||
6dc8d757 AK |
9953 | 2017-07-10 Anton Kolesov <Anton.Kolesov@synopsys.com> |
9954 | ||
9955 | * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add setenv and | |
9956 | unsetenv. | |
9957 | * gnulib/aclocal.m4: Regenerate. | |
9958 | * gnulib/config.in: Regenerate. | |
9959 | * gnulib/configure: Regenerate. | |
9960 | * gnulib/import/Makefile.am: Regenerate. | |
9961 | * gnulib/import/Makefile.in: Regenerate. | |
9962 | * gnulib/import/m4/gnulib-cache.m4: Regenerate. | |
9963 | * gnulib/import/m4/gnulib-comp.m4: Regenerate. | |
9964 | * gnulib/import/m4/environ.m4: New file. | |
9965 | * gnulib/import/m4/setenv.m4: New file. | |
9966 | * gnulib/import/setenv.c: New file. | |
9967 | * gnulib/import/unsetenv.c: New file. | |
9968 | ||
266934d1 SM |
9969 | 2017-07-09 Simon Marchi <simon.marchi@ericsson.com> |
9970 | ||
9971 | * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Read | |
9972 | address when op is DW_OP_addr. | |
9973 | ||
03278692 TT |
9974 | 2017-07-09 Tom Tromey <tom@tromey.com> |
9975 | ||
9976 | * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Reverse size | |
9977 | check and apply to outer type. | |
9978 | ||
4b654465 JB |
9979 | 2017-07-07 John Baldwin <jhb@FreeBSD.org> |
9980 | ||
9981 | * fbsd-tdep.c (LWPINFO_OFFSET, LWPINFO_PL_FLAGS) | |
9982 | (LWPINFO64_PL_SIGINFO, LWPINFO32_PL_SIGINFO, PL_FLAG_SI) | |
9983 | (SIZE64_SIGINFO_T, SIZE32_SIGINFO_T, fbsd_core_xfer_siginfo): New. | |
9984 | (fbsd_init_abi): Install gdbarch "core_xfer_siginfo" method. | |
9985 | ||
2af9fc44 JB |
9986 | 2017-07-07 John Baldwin <jhb@FreeBSD.org> |
9987 | ||
9988 | * fbsd-tdep.c (fbsd_core_thread_name): Use thread_section_name. | |
9989 | ||
382b69bb JB |
9990 | 2017-07-07 John Baldwin <jhb@FreeBSD.org> |
9991 | ||
9992 | * corelow.c (get_core_siginfo): Remove. | |
9993 | (core_xfer_partial): Use the gdbarch "core_xfer_siginfo" method | |
9994 | instead of get_core_siginfo. | |
9995 | * gdbarch.sh (core_xfer_siginfo): New gdbarch callback. | |
9996 | * gdbarch.h: Re-generate. | |
9997 | * gdbarch.c: Re-generate. | |
9998 | * linux-tdep.c (linux_core_xfer_siginfo): New. | |
9999 | (linux_init_abi): Install gdbarch "core_xfer_siginfo" method. | |
10000 | ||
6e5eab33 JB |
10001 | 2017-07-07 John Baldwin <jhb@FreeBSD.org> |
10002 | ||
10003 | * corelow.c (thread_section_name): Move to ... | |
10004 | * gdbcore.h (thread_section_name): ... here. | |
10005 | ||
929edea9 JB |
10006 | 2017-07-07 John Baldwin <jhb@FreeBSD.org> |
10007 | ||
10008 | * fbsd-nat.c [PT_LWPINFO && __LP64__] (union sigval32) | |
10009 | (struct siginfo32): New. | |
10010 | [PT_LWPINFO] (fbsd_siginfo_size, fbsd_convert_siginfo): New. | |
10011 | (fbsd_xfer_partial) [PT_LWPINFO]: Handle TARGET_OBJECT_SIGNAL_INFO | |
10012 | via ptrace(PT_LWPINFO). | |
10013 | ||
762c974a JB |
10014 | 2017-07-07 John Baldwin <jhb@FreeBSD.org> |
10015 | ||
10016 | * fbsd-tdep.c (fbsd_gdbarch_data_handle, struct fbsd_gdbarch_data) | |
10017 | (init_fbsd_gdbarch_data, get_fbsd_gdbarch_data) | |
10018 | (fbsd_get_siginfo_type): New. | |
10019 | (fbsd_init_abi): Install gdbarch "get_siginfo_type" method. | |
10020 | (_initialize_fbsd_tdep): New. | |
10021 | ||
33c5cd75 DB |
10022 | 2017-07-06 David Blaikie <dblaikie@gmail.com> |
10023 | ||
10024 | * dwarf2read.c (struct dwo_file): Use a htab of dwo_unit* (rather than | |
10025 | a singular dwo_unit*) to support multiple CUs in the same way that | |
10026 | multiple TUs are supported. | |
10027 | (create_cus_hash_table): Replace create_dwo_cu with a function for | |
10028 | parsing multiple CUs from a DWO file. | |
10029 | (open_and_init_dwo_file): Use create_cus_hash_table rather than | |
10030 | create_dwo_cu. | |
10031 | (lookup_dwo_cutu): Lookup CU in the hash table in the dwo_file with | |
10032 | htab_find, rather than comparing the signature to a singleton CU in | |
10033 | the dwo_file. | |
10034 | ||
8455d262 PA |
10035 | 2017-07-06 Pedro Alves <palves@redhat.com> |
10036 | ||
10037 | * python/py-unwind.c (pyuw_dealloc_cache): Fix for loop condition. | |
10038 | ||
4da3eb35 PA |
10039 | 2017-07-04 Pedro Alves <palves@redhat.com> |
10040 | ||
10041 | * gdbtypes.c (recursive_dump_type): Don't reference TYPE_STATIC. | |
10042 | * gdbtypes.h (TYPE_STATIC): Delete. | |
10043 | (struct fn_field) <is_public, is_abstract, is_static, is_final, | |
10044 | is_synchronized, is_native>: Delete. | |
10045 | <dummy>: Bump. | |
10046 | (TYPE_FN_FIELD_PUBLIC, TYPE_FN_FIELD_STATIC, TYPE_FN_FIELD_FINAL) | |
10047 | (TYPE_FN_FIELD_SYNCHRONIZED, TYPE_FN_FIELD_NATIVE) | |
10048 | (TYPE_FN_FIELD_ABSTRACT): Delete. | |
10049 | ||
5bfd255c SM |
10050 | 2017-07-03 Simon Marchi <simon.marchi@ericsson.com> |
10051 | ||
10052 | * buffer.h (buffer_finish): Fix spelling mistakes. | |
10053 | ||
25c54127 EZ |
10054 | 2017-07-01 Eli Zaretskii <eliz@gnu.org> |
10055 | ||
10056 | * .dir-locals.el: Automatically switch to C-style comments in | |
10057 | versions of Emacs that support the feature. | |
10058 | ||
dc4bde35 SDJ |
10059 | 2017-06-30 Sergio Durigan Junior <sergiodj@redhat.com> |
10060 | Pedro Alves <palves@redhat.com> | |
10061 | ||
10062 | PR cli/21688 | |
10063 | * cli/cli-script.c (command_name_equals_not_inline): Remove function. | |
10064 | (process_next_line): New variable 'inline_cmd'. | |
10065 | Adjust 'if' clauses for "python", "compile" and "guile" to use | |
10066 | 'command_name_equals' and check for '!inline_cmd'. | |
10067 | ||
51ed89aa SDJ |
10068 | 2017-06-30 Sergio Durigan Junior <sergiodj@redhat.com> |
10069 | ||
10070 | PR cli/21688 | |
10071 | * cli/cli-script.c (command_name_equals_not_inline): New function. | |
10072 | (process_next_line): Adjust 'if' clauses for "python", "compile" | |
10073 | and "guile" to use command_name_equals_not_inline. | |
10074 | ||
eb17d413 PA |
10075 | 2017-06-29 Pedro Alves <palves@redhat.com> |
10076 | ||
10077 | * completer.c (expression_completer): Call | |
10078 | linespec_location_completer instead of location_completer. | |
10079 | ||
195bcdd5 PA |
10080 | 2017-06-29 Pedro Alves <palves@redhat.com> |
10081 | ||
10082 | * completer.c (expression_completer): Remove code that recomputes | |
10083 | 'text' from 'word'. | |
10084 | ||
adc764e7 YQ |
10085 | 2017-06-29 Yao Qi <yao.qi@linaro.org> |
10086 | ||
10087 | * regformats/regdat.sh: Generate code with | |
10088 | "ifndef IN_PROCESS_AGENT". | |
10089 | ||
6e75794e PA |
10090 | 2017-06-28 Pedro Alves <palves@redhat.com> |
10091 | ||
10092 | * command.h: Include "common/scoped_restore.h". | |
10093 | ||
bc491f2e YQ |
10094 | 2017-06-28 Yao Qi <yao.qi@linaro.org> |
10095 | ||
10096 | * mi/mi-cmd-break.c (mi_argv_to_format): Use obstack_grow_str | |
10097 | instead of obstack_grow. | |
10098 | ||
41664b45 DG |
10099 | 2017-06-28 Doug Gilmore <Doug.Gilmore@imgtec.com> |
10100 | ||
10101 | PR gdb/21337 | |
10102 | * symfile.c (reread_symbols): Call objfiles_changed just before | |
10103 | read_symbols. | |
10104 | ||
6da67eb1 PA |
10105 | 2017-06-27 Pedro Alves <palves@redhat.com> |
10106 | ||
10107 | * symtab.c (COMPLETION_LIST_ADD_SYMBOL) | |
10108 | (MCOMPLETION_LIST_ADD_SYMBOL): Delete macros, replace with ... | |
10109 | (completion_list_add_symbol, completion_list_add_msymbol): | |
10110 | ... these new functions. | |
10111 | (add_symtab_completions) | |
10112 | (default_make_symbol_completion_list_break_on_1): Adjust. | |
10113 | ||
23732b1e PA |
10114 | 2017-06-27 Pedro Alves <palves@redhat.com> |
10115 | ||
10116 | * objfiles.c (get_objfile_bfd_data): Call bfd_alloc instead of | |
10117 | bfd_zalloc. Call objfile_per_bfd_storage's ctor. | |
10118 | (free_objfile_per_bfd_storage): Call objfile_per_bfd_storage's | |
10119 | dtor. | |
10120 | * objfiles.h (objfile_per_bfd_storage): Add ctor. Make | |
10121 | 'storage_obstack' field an auto_obstack. In-class initialize all | |
10122 | non-bitfield fields. Make minsyms_read bool. | |
10123 | * symfile.c (read_symbols): Adjust. | |
10124 | ||
a4d1e79a AH |
10125 | 2017-06-27 Alan Hayward <alan.hayward@arm.com> |
10126 | ||
10127 | * remote-sim.c (gdbsim_fetch_register): Use byte_vector. | |
10128 | (gdbsim_store_register): Likewise. | |
10129 | ||
8268c778 PA |
10130 | 2017-06-27 Pedro Alves <palves@redhat.com> |
10131 | ||
10132 | * c-exp.y (name_obstack): Now an auto_obstack. | |
10133 | (yylex): Use auto_obstack::clear. | |
10134 | (c_parse): Use auto_obstack::clear instead of reinitializing and | |
10135 | freeing the obstack. | |
10136 | * c-lang.c (evaluate_subexp_c): Use auto_obstack. | |
10137 | * d-exp.y (name_obstack): Now an auto_obstack. | |
10138 | (yylex): Use auto_obstack::clear. | |
10139 | (d_parse): Use auto_obstack::clear instead of reinitializing and | |
10140 | freeing the obstack. | |
10141 | * dwarf2loc.c (fetch_const_value_from_synthetic_pointer): Use | |
10142 | auto_obstack. | |
10143 | * dwarf2read.c (create_addrmap_from_index) | |
10144 | (dwarf2_build_psymtabs_hard) | |
10145 | (update_enumeration_type_from_children): Likewise. | |
10146 | * gdb_obstack.h (auto_obstack): New type. | |
10147 | * go-exp.y (name_obstack): Now an auto_obstack. | |
10148 | (build_packaged_name): Use auto_obstack::clear. | |
10149 | (go_parse): Use auto_obstack::clear instead of reinitializing and | |
10150 | freeing the obstack. | |
10151 | * linux-tdep.c (linux_make_mappings_corefile_notes): Use | |
10152 | auto_obstack. | |
10153 | * printcmd.c (printf_wide_c_string, ui_printf): Use auto_obstack. | |
10154 | * rust-exp.y (work_obstack): Now an auto_obstack. | |
10155 | (rust_parse, rust_lex_tests): Use auto_obstack::clear instead of | |
10156 | reinitializing and freeing the obstack. | |
10157 | * utils.c (do_obstack_free, make_cleanup_obstack_free): Delete. | |
10158 | (host_char_to_target): Use auto_obstack. | |
10159 | * utils.h (make_cleanup_obstack_free): Delete declaration. | |
10160 | * valprint.c (generic_emit_char, generic_printstr): Use | |
10161 | auto_obstack. | |
10162 | ||
db665f42 SM |
10163 | 2017-06-27 Simon Marchi <simon.marchi@ericsson.com> |
10164 | ||
10165 | * darwin-nat.c (darwin_check_new_threads): Don't handle dummy | |
10166 | thread. | |
10167 | (darwin_init_thread_list): Don't update dummy thread. | |
10168 | (darwin_create_inferior, darwin_attach): Don't add a dummy thread. | |
10169 | ||
873c0814 SM |
10170 | 2017-06-26 Simon Marchi <simon.marchi@ericsson.com> |
10171 | ||
10172 | * record-full.c (netorder16): Remove. | |
10173 | ||
8b5a7a6e SM |
10174 | 2017-06-26 Simon Marchi <simon.marchi@ericsson.com> |
10175 | ||
10176 | * common/diagnostics.h: Define macros for GCC. | |
10177 | (DIAGNOSTIC_IGNORE_UNUSED_FUNCTION): New macro. | |
10178 | * common/vec.h: Include diagnostics.h. | |
10179 | (DIAGNOSTIC_IGNORE_UNUSED_VEC_FUNCTION): New macro. | |
10180 | (DEF_VEC_I, DEF_VEC_P, DEF_VEC_O): Ignore -Wunused-function | |
10181 | warning. | |
10182 | ||
d1435379 SM |
10183 | 2017-06-26 Simon Marchi <simon.marchi@ericsson.com> |
10184 | ||
10185 | * common/diagnostics.h (DIAGNOSTIC_IGNORE_DEPRECATED_REGISTER): | |
10186 | New macro. | |
10187 | * ada-lex.l: Ignore deprecated register warnings. | |
10188 | ||
cc75e0fd SM |
10189 | 2017-06-25 Simon Marchi <simon.marchi@ericsson.com> |
10190 | ||
10191 | * main.c (get_init_files): Replace "SYSTEM_GDBINIT + | |
10192 | datadir_len" with "&SYSTEM_GDBINIT[datadir_len]". | |
10193 | ||
07809eaf SM |
10194 | 2017-06-25 Simon Marchi <simon.marchi@ericsson.com> |
10195 | ||
10196 | * dtrace-probe.c (dtrace_process_dof_probe): Put semi-colon on | |
10197 | its own line. | |
10198 | ||
f076f034 SM |
10199 | 2017-06-25 Simon Marchi <simon.marchi@ericsson.com> |
10200 | ||
10201 | * nat/x86-dregs.c (x86_show_dr): Print registers one per line. | |
10202 | ||
0dd5cbc5 AH |
10203 | 2017-06-23 Alan Hayward <alan.hayward@arm.com> |
10204 | ||
10205 | * xtensa-tdep.c (XTENSA_MAX_REGISTER_SIZE): Add. | |
10206 | (xtensa_register_write_masked): Use XTENSA_MAX_REGISTER_SIZE. | |
10207 | (xtensa_register_read_masked): Likewise. | |
10208 | ||
d4c6ce5b SDJ |
10209 | 2017-06-22 Sergio Durigan Junior <sergiodj@redhat.com> |
10210 | ||
10211 | * common/environ.c (gdb_environ::unset): Update comment. | |
10212 | ||
16892a03 AH |
10213 | 2017-06-22 Alan Hayward <alan.hayward@arm.com> |
10214 | ||
10215 | * python/py-unwind.c (pyuw_sniffer): Allocate space for | |
10216 | registers. | |
10217 | ||
d7dcbefc AH |
10218 | 2017-06-22 Alan Hayward <alan.hayward@arm.com> |
10219 | ||
10220 | * record-full.c (record_full_exec_insn): Use byte_vector. | |
10221 | ||
b30ff123 YQ |
10222 | 2017-06-22 Yao Qi <yao.qi@linaro.org> |
10223 | ||
10224 | * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Regenerated. | |
10225 | * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated. | |
10226 | ||
4fa847d7 AH |
10227 | 2017-06-22 Alan Hayward <alan.hayward@arm.com> |
10228 | ||
10229 | * remote.c (cached_reg): Move from here... | |
10230 | * regcache.h (cached_reg): ...to here. | |
10231 | * python/py-unwind.c (struct reg_info): Remove. | |
10232 | (cached_frame_info): Use cached_reg_t. | |
10233 | (pyuw_prev_register): Likewise. | |
10234 | (pyuw_sniffer): Use cached_reg_t and allocate registers. | |
10235 | (pyuw_dealloc_cache): Free all registers. | |
10236 | ||
f4906a9a PA |
10237 | 2017-06-22 Pedro Alves <palves@redhat.com> |
10238 | Simon Marchi <simon.marchi@ericsson.com> | |
10239 | ||
10240 | * unittests/environ-selftests.c (run_tests): Ignore -Wself-move | |
10241 | warning. | |
10242 | * common/diagnostics.h: New file. | |
10243 | ||
b45a1208 PA |
10244 | 2017-06-22 Pedro Alves <palves@redhat.com> |
10245 | ||
10246 | * common/agent.h: Add include guards. | |
10247 | ||
e4da2c61 SM |
10248 | 2017-06-21 Simon Marchi <simon.marchi@ericsson.com> |
10249 | ||
10250 | * target.h (struct target_ops) <to_xfer_partial>: Update doc to | |
10251 | talk about addressable units instead of bytes. | |
10252 | ||
96160d60 SDJ |
10253 | 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com> |
10254 | ||
10255 | * common/environ.c (gdb_environ::unset): Use '::iterator' instead | |
10256 | of '::const_iterator'. | |
10257 | ||
9a6c7d9c SDJ |
10258 | 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com> |
10259 | ||
10260 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add | |
10261 | 'unittests/environ-selftests.c'. | |
10262 | (SUBDIR_UNITTESTS_OBS): Add 'environ-selftests.o'. | |
10263 | * charset.c (find_charset_names): Declare object 'iconv_env'. | |
10264 | Update code to use 'iconv_env' object. Remove call to | |
10265 | 'free_environ'. | |
10266 | * common/environ.c: Include <utility>. | |
10267 | (make_environ): Delete function. | |
10268 | (free_environ): Delete function. | |
10269 | (gdb_environ::clear): New function. | |
10270 | (gdb_environ::operator=): New function. | |
10271 | (gdb_environ::get): Likewise. | |
10272 | (environ_vector): Delete function. | |
10273 | (set_in_environ): Delete function. | |
10274 | (gdb_environ::set): New function. | |
10275 | (unset_in_environ): Delete function. | |
10276 | (gdb_environ::unset): New function. | |
10277 | (gdb_environ::envp): Likewise. | |
10278 | * common/environ.h: Include <vector>. | |
10279 | (struct gdb_environ): Delete; transform into... | |
10280 | (class gdb_environ): ... this class. | |
10281 | (free_environ): Delete prototype. | |
10282 | (init_environ, get_in_environ, set_in_environ, unset_in_environ, | |
10283 | environ_vector): Likewise. | |
10284 | * infcmd.c (run_command_1): Update code to call | |
10285 | 'envp' from 'gdb_environ' class. | |
10286 | (environment_info): Update code to call methods from 'gdb_environ' | |
10287 | class. | |
10288 | (unset_environment_command): Likewise. | |
10289 | (path_info): Likewise. | |
10290 | (path_command): Likewise. | |
10291 | * inferior.c (inferior::~inferior): Delete call to 'free_environ'. | |
10292 | (inferior::inferior): Initialize 'environment' using the host's | |
10293 | information. | |
10294 | * inferior.h: Remove forward declaration of 'struct gdb_environ'. | |
10295 | Include "environ.h". | |
10296 | (class inferior) <environment>: Change type from 'struct | |
10297 | gdb_environ' to 'gdb_environ'. | |
10298 | * mi/mi-cmd-env.c (mi_cmd_env_path): Update code to call | |
10299 | methods from 'gdb_environ' class. | |
10300 | * solib.c (solib_find_1): Likewise | |
10301 | * unittests/environ-selftests.c: New file. | |
10302 | ||
75c554cf YQ |
10303 | 2017-06-20 Yao Qi <yao.qi@linaro.org> |
10304 | ||
10305 | * features/i386/i386-linux.xml: Exchange the order of including | |
10306 | 32bit-linux.xml and 32bit-sse.xml. | |
10307 | * features/i386/i386-linux.c: Regenerated. | |
10308 | ||
72ddacb7 YQ |
10309 | 2017-06-20 Yao Qi <yao.qi@linaro.org> |
10310 | ||
10311 | * target-descriptions.c (tdesc_reg): Add ctor, dtor. | |
10312 | Delete copy ctor and assignment operator. | |
10313 | (tdesc_type): Likewise. | |
10314 | (tdesc_feature): Likewise. | |
10315 | (tdesc_free_reg): Remove. | |
10316 | (tdesc_create_reg): Use new. | |
10317 | (tdesc_free_type): Remove. | |
10318 | (tdesc_create_vector): Use new. | |
10319 | (tdesc_create_union): Likewise. | |
10320 | (tdesc_create_flags): Likewise. | |
10321 | (tdesc_create_enum): Likewise. | |
10322 | (tdesc_free_feature): Delete. | |
10323 | (free_target_description): Use delete. | |
10324 | ||
325c9fd4 JB |
10325 | 2017-06-19 John Baldwin <jhb@FreeBSD.org> |
10326 | ||
10327 | * mips-tdep.c (print_gp_register_row): Don't error for unavailable | |
10328 | registers. | |
10329 | ||
16b7a719 PA |
10330 | 2017-06-19 Pedro Alves <palves@redhat.com> |
10331 | ||
10332 | * dwarf2read.c (write_psymtabs_to_index): Construct file_closer | |
10333 | after gdb::unlinker. | |
10334 | ||
1c8e01c9 SDJ |
10335 | 2017-06-19 Sergio Durigan Junior <sergiodj@redhat.com> |
10336 | ||
10337 | * mi/mi-cm-env.c (_initialize_mi_cmd_env): Use getenv instead of | |
10338 | gdb_environ to access an environment variable. | |
10339 | ||
ffce45d2 TP |
10340 | 2017-06-18 Thomas Petazzoni <thomas.petazzoni@free-electrons.com> |
10341 | ||
10342 | * nat/linux-ptrace.c (linux_fork_to_function): Add cast to | |
10343 | gdb_byte*. | |
10344 | ||
1d4fbac9 SM |
10345 | 2017-06-17 Simon Marchi <simon.marchi@ericsson.com> |
10346 | ||
10347 | * nat/fork-inferior.h (trace_start_error): Add ATTRIBUTE_PRINTF. | |
10348 | ||
8465943a SM |
10349 | 2017-06-17 Simon Marchi <simon.marchi@ericsson.com> |
10350 | ||
10351 | * configure: Re-generate. | |
10352 | * warning.m4 (build_warnings): Add -Wno-mismatched-tags. | |
10353 | ||
3e019bdc SM |
10354 | 2017-06-17 Simon Marchi <simon.marchi@ericsson.com> |
10355 | ||
10356 | * configure: Re-generate. | |
10357 | * warning.m4: Pass -Werror to compiler when checking for | |
10358 | supported warning flags. | |
10359 | ||
cf0dd6f0 SM |
10360 | 2017-06-17 Simon Marchi <simon.marchi@ericsson.com> |
10361 | ||
10362 | * Makefile.in (COMPILE.pre): Add "-x c++". | |
10363 | ||
6f98355c YQ |
10364 | 2017-06-16 Alan Hayward <alan.hayward@arm.com> |
10365 | Pedro Alves <palves@redhat.com> | |
10366 | Yao Qi <yao.qi@linaro.org> | |
10367 | ||
10368 | * defs.h (RequireLongest): New. | |
10369 | (extract_integer): Declare function template. | |
10370 | (extract_signed_integer): Remove the declaration, but define it | |
10371 | static inline. | |
10372 | (extract_unsigned_integer): Likewise. | |
10373 | (store_integer): Declare function template. | |
10374 | (store_signed_integer): Remove the declaration, but define it | |
10375 | static inline. | |
10376 | (store_unsigned_integer): Likewise. | |
10377 | * findvar.c (extract_integer): New function template. | |
10378 | (extract_signed_integer): Remove. | |
10379 | (extract_unsigned_integer): Remove. | |
10380 | (extract_integer<LONGEST>, extract_integer<ULONGEST>): Explicit | |
10381 | instantiations. | |
10382 | (store_integer): New function template. | |
10383 | (store_signed_integer): Remove. | |
10384 | (store_unsigned_integer): Remove. | |
10385 | (store_integer): Explicit instantiations. | |
10386 | * regcache.c (regcache_raw_read_signed): Update. | |
10387 | (regcache::raw_read): New function. | |
10388 | (regcache::raw_read_signed): Remove. | |
10389 | (regcache::raw_read_unsigned): Remove. | |
10390 | (regcache_raw_read_unsigned): Update. | |
10391 | (regcache_raw_write_unsigned): Update. | |
10392 | (regcache::raw_write_signed): Remove. | |
10393 | (regcache::raw_write): New function. | |
10394 | (regcache_cooked_read_signed): Update. | |
10395 | (regcache::raw_write_unsigned): Remove. | |
10396 | (regcache::cooked_read_signed): Remove. | |
10397 | (regcache_cooked_read_unsigned): Update. | |
10398 | (regcache::cooked_read_unsigned): Remove. | |
10399 | (regcache_cooked_write_signed): Update. | |
10400 | (regcache_cooked_write_unsigned): Update. | |
10401 | * regcache.h (regcache) <raw_read_signed>: Remove. | |
10402 | <raw_write_signed, raw_read_unsigned, raw_write_unsigned>: Remove. | |
10403 | <raw_read, raw_write>: New. | |
10404 | <cooked_read_signed, cooked_write_signed>: Remove. | |
10405 | <cooked_write_unsigned, cooked_read_unsigned>: Remove. | |
10406 | <cooked_read, cooked_write>: New. | |
10407 | * sh64-tdep.c (sh64_pseudo_register_read): Update. | |
10408 | (sh64_pseudo_register_write): Update. | |
10409 | ||
a87dc45a AK |
10410 | 2017-06-16 Anton Kolesov <anton.kolesov@synopsys.com> |
10411 | ||
10412 | * arc-tdep.c (arc_disassembler_options): New variable. | |
10413 | (arc_gdbarch_init): Set and use it. Use arc_delayed_print_insn instead | |
10414 | of default_print_insn. | |
10415 | (arc_delayed_print_insn): Set info->section when needed, | |
10416 | use default_print_insn to retrieve a disassembler. | |
10417 | ||
45159d6a SDJ |
10418 | 2017-06-14 Sergio Durigan Junior <sergiodj@redhat.com> |
10419 | ||
10420 | PR gdb/21574 | |
10421 | * infcmd.c (_initialize_infcmd): Expand "help run" documentation | |
10422 | to mention $SHELL and startup-with-shell. | |
10423 | ||
b46c4cf0 MF |
10424 | 2017-06-14 Max Filippov <jcmvbkbc@gmail.com> |
10425 | ||
10426 | * MAINTAINERS: Move Maxim Grigoriev to the Past Maintainers. | |
10427 | ||
6394c606 YQ |
10428 | 2017-06-14 Yao Qi <yao.qi@linaro.org> |
10429 | ||
10430 | * aarch64-tdep.c (aarch64_gdb_print_insn): Call | |
10431 | default_print_insn instead of print_insn_aarch64. | |
10432 | * arm-tdep.c (gdb_print_insn_arm): Call | |
10433 | default_print_insn instead of print_insn_big_arm | |
10434 | and print_insn_little_arm. | |
10435 | * i386-tdep.c (i386_print_insn): Call default_print_insn | |
10436 | instead of print_insn_i386. | |
10437 | * ia64-tdep.c (ia64_print_insn): Call | |
10438 | default_print_insn instead of print_insn_ia64. | |
10439 | * mips-tdep.c (gdb_print_insn_mips): Call | |
10440 | default_print_insn instead of print_insn_big_mips | |
10441 | and print_insn_little_mips. | |
10442 | * spu-tdep.c (gdb_print_insn_spu): Call default_print_insn | |
10443 | instead of print_insn_spu. | |
10444 | ||
d5722aa2 PA |
10445 | 2017-06-14 Pedro Alves <palves@redhat.com> |
10446 | ||
10447 | * ada-lang.c: Include "common/byte-vector.h". | |
10448 | (ada_value_primitive_packed_val): Use gdb::byte_vector. | |
10449 | * charset.c (wchar_iterator::iterate): Resize the vector instead | |
10450 | of reserving it. | |
10451 | * common/byte-vector.h: Include "common/def-vector.h". | |
10452 | (wchar_iterator::m_out): Now a gdb::def_vector<gdb_wchar_t>. | |
10453 | * cli/cli-dump.c: Include "common/byte-vector.h". | |
10454 | (dump_memory_to_file, restore_binary_file): Use gdb::byte_vector. | |
10455 | * common/byte-vector.h: New file. | |
10456 | * common/def-vector.h: New file. | |
10457 | * common/default-init-alloc.h: New file. | |
10458 | * dwarf2loc.c: Include "common/byte-vector.h". | |
10459 | (rw_pieced_value): Use gdb::byte_vector, and resize the vector | |
10460 | instead of reserving it. | |
10461 | * dwarf2read.c: Include "common/byte-vector.h". | |
10462 | (data_buf::m_vec): Now a gdb::byte_vector. | |
10463 | * gdb_regex.c: Include "common/def-vector.h". | |
10464 | (compiled_regex::compiled_regex): Use gdb::def_vector<char>. | |
10465 | * mi/mi-main.c: Include "common/byte-vector.h". | |
10466 | (mi_cmd_data_read_memory): Use gdb::byte_vector. | |
10467 | * printcmd.c: Include "common/byte-vector.h". | |
10468 | (print_scalar_formatted): Use gdb::byte_vector. | |
10469 | * valprint.c: Include "common/byte-vector.h". | |
10470 | (maybe_negate_by_bytes, print_decimal_chars): Use | |
10471 | gdb::byte_vector. | |
10472 | ||
01ec7a27 SM |
10473 | 2017-06-13 Simon Marchi <simon.marchi@ericsson.com> |
10474 | ||
10475 | * darwin-nat.c: Include "nat/fork-inferior.h". | |
10476 | ||
848d9074 SM |
10477 | 2017-06-13 Simon Marchi <simon.marchi@ericsson.com> |
10478 | ||
10479 | * configure.nat: Factor out Darwin bits that are not | |
10480 | architecture-specific. Add fork-inferior.o. | |
10481 | ||
3b912944 SM |
10482 | 2017-06-13 Simon Marchi <simon.marchi@ericsson.com> |
10483 | ||
10484 | * configure.nat: Factor out AIX bits that are not | |
10485 | architecture-specific. Add fork-inferior.o. | |
10486 | ||
55acdf22 AA |
10487 | 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
10488 | ||
10489 | * dwarf2loc.c (rw_pieced_value): New. Merge logic from... | |
10490 | (read_pieced_value, write_pieced_value): ...here. Reduce to | |
10491 | wrappers that just call rw_pieced_value. | |
10492 | ||
f65e2044 AA |
10493 | 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
10494 | ||
10495 | * dwarf2loc.c (write_pieced_value): When writing the data for a | |
10496 | memory piece, use write_memory_with_notification instead of | |
10497 | write_memory. | |
10498 | ||
23f945bf AA |
10499 | 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
10500 | ||
10501 | * valops.c (read_value_memory): Change embedded_offset to | |
10502 | represent a bit offset instead of a byte offset. | |
10503 | * value.h (read_value_memory): Adjust comment. | |
10504 | ||
f236533e AA |
10505 | 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
10506 | ||
10507 | * dwarf2loc.c (read_pieced_value): Remove unnecessary variables | |
10508 | dest_offset_bits and source_offset_bits. | |
10509 | (write_pieced_value): Likewise. | |
10510 | ||
65d84b76 AA |
10511 | 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
10512 | ||
10513 | * dwarf2loc.c (read_pieced_value): Respect the piece offset, as | |
10514 | given by DW_OP_bit_piece. | |
10515 | (write_pieced_value): Likewise. | |
10516 | ||
242d31ab AA |
10517 | 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
10518 | ||
10519 | * dwarf2loc.c (read_pieced_value): Move the buffer allocation and | |
10520 | some other preparations to the places where sufficient information | |
10521 | is available. | |
10522 | (write_pieced_value): Likewise. | |
10523 | ||
03c8af18 AA |
10524 | 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
10525 | ||
10526 | * dwarf2loc.c (bits_to_bytes): New function. | |
10527 | (read_pieced_value): Fix offset calculations for register pieces | |
10528 | on big-endian targets. | |
10529 | (write_pieced_value): Likewise. | |
10530 | ||
840989c1 AA |
10531 | 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
10532 | ||
10533 | * dwarf2loc.c (read_pieced_value): Remove buffer_size variable. | |
10534 | (write_pieced_value): Likewise. | |
10535 | ||
359b19bb AA |
10536 | 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
10537 | ||
10538 | * dwarf2loc.c (write_pieced_value): When writing to a bit-field, | |
10539 | transfer the source value's least significant bits, instead of its | |
10540 | lowest-addressed ones. Rename type_len to max_offset. | |
10541 | (read_pieced_value): Mirror above changes to write_pieced_value as | |
10542 | applicable. | |
10543 | ||
07c9ca3b AA |
10544 | 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
10545 | ||
10546 | * dwarf2loc.c (write_pieced_value): In DWARF_VALUE_MEMORY, | |
10547 | truncate full bytes from dest_offset_bits before using it as an | |
10548 | offset into the buffer. | |
10549 | ||
f1cc9874 AA |
10550 | 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
10551 | ||
10552 | * dwarf2loc.c (write_pieced_value): Include transfer size in | |
10553 | byte-wise check. | |
10554 | ||
cdaac320 AA |
10555 | 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
10556 | ||
10557 | * dwarf2loc.c (write_pieced_value): Fix copy/paste error in the | |
10558 | calculation of this_size. | |
10559 | ||
af547a96 AA |
10560 | 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
10561 | ||
10562 | * dwarf2loc.c (read_pieced_value): Respect parent value's offset | |
10563 | when targeting a bit-field. | |
10564 | (write_pieced_value): Likewise. | |
10565 | ||
ddd7882a AA |
10566 | 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
10567 | ||
10568 | * dwarf2loc.c (struct piece_closure) <addr_size>: Remove field. | |
10569 | (allocate_piece_closure): Drop addr_size parameter. | |
10570 | (dwarf2_evaluate_loc_desc_full): Adjust call to | |
10571 | allocate_piece_closure. | |
10572 | ||
e9352324 AA |
10573 | 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
10574 | ||
10575 | PR gdb/21226 | |
10576 | * dwarf2loc.c (read_pieced_value): Anchor stack value pieces at | |
10577 | the LSB end, independent of endianness. | |
10578 | ||
d5d1163e AA |
10579 | 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
10580 | ||
10581 | * dwarf2loc.c (write_pieced_value): Fix order of calculations for | |
10582 | size capping. | |
10583 | ||
032bb6ea YQ |
10584 | 2017-06-13 Yao Qi <yao.qi@linaro.org> |
10585 | ||
10586 | * mips-linux-nat.c: Move include features/mips*-linux.c to | |
10587 | mips-linux-tdep.c. | |
10588 | (_initialize_mips_linux_nat): Move initialize_tdesc_mips* calls | |
10589 | to mips-linux-tdep.c. | |
10590 | * mips-linux-tdep.c: Include features/mips*-linux.c | |
10591 | (_initialize_mips_linux_tdep): Call initialize_tdesc_mips* | |
10592 | functions. | |
10593 | * mips-linux-tdep.h (tdesc_mips_linux): Declare. | |
10594 | (tdesc_mips_dsp_linux, tdesc_mips64_linux): Declare. | |
10595 | (tdesc_mips64_dsp_linux): Declare. | |
10596 | ||
f12f6bad TT |
10597 | 2017-06-12 Tom Tromey <tom@tromey.com> |
10598 | ||
10599 | * valprint.h (val_print_type_code_int): Remove. | |
10600 | * valprint.c (generic_val_print_int): Always call | |
10601 | val_print_scalar_formatted. | |
10602 | (val_print_type_code_int): Remove. | |
10603 | * printcmd.c (print_scalar_formatted): Handle options->format==0. | |
10604 | * f-valprint.c (f_val_print): Use val_print_scalar_formatted. | |
10605 | * c-valprint.c (c_val_print_int): Use val_print_scalar_formatted. | |
10606 | * ada-valprint.c (ada_val_print_num): Use | |
10607 | val_print_scalar_formatted. | |
10608 | ||
d9109c80 TT |
10609 | 2017-06-12 Tom Tromey <tom@tromey.com> |
10610 | ||
10611 | * printcmd.c (print_scalar_formatted): Unify the two switches. | |
10612 | Don't convert scalars to LONGEST. | |
10613 | ||
4ac0cb1c TT |
10614 | 2017-06-12 Tom Tromey <tom@tromey.com> |
10615 | ||
10616 | PR exp/16225: | |
10617 | * valprint.h (print_decimal_chars): Update. | |
10618 | * valprint.c (maybe_negate_by_bytes): New function. | |
10619 | (print_decimal_chars): Add "is_signed" argument. | |
10620 | * printcmd.c (print_scalar_formatted): Update. | |
10621 | ||
30a25466 TT |
10622 | 2017-06-12 Tom Tromey <tom@tromey.com> |
10623 | ||
10624 | PR exp/16225: | |
10625 | * valprint.h (print_binary_chars, print_hex_chars): Update. | |
10626 | * valprint.c (val_print_type_code_int): Update. | |
10627 | (print_binary_chars): Add "zero_pad" argument. | |
10628 | (emit_octal_digit): New function. | |
10629 | (print_octal_chars): Don't zero-pad. | |
10630 | (print_decimal_chars): Likewise. | |
10631 | (print_hex_chars): Add "zero_pad" argument. | |
10632 | * sh64-tdep.c (sh64_do_fp_register): Update. | |
10633 | * regcache.c (regcache::dump): Update. | |
10634 | * printcmd.c (print_scalar_formatted): Update. | |
10635 | * infcmd.c (default_print_one_register_info): Update. | |
10636 | ||
b3464d03 PA |
10637 | 2017-06-12 Pedro Alves <palves@redhat.com> |
10638 | Alan Hayward <alan.hayward@arm.com> | |
10639 | ||
10640 | * mips-tdep.c (MAX_MIPS_ABI_REGSIZE): New. | |
10641 | (mips_eabi_push_dummy_call): Rename local 'regsize' to | |
10642 | 'abi_regsize'. Rename local array 'valbuf' to 'ref_valbuf', and | |
10643 | use MAX_MIPS_ABI_REGSIZE instead of MAX_REGISTER_SIZE to size it. | |
10644 | Assert that abi_regsize bytes fit in 'ref_valbuf'. | |
10645 | ||
4b76cda9 PA |
10646 | 2017-06-12 Pedro Alves <palves@redhat.com> |
10647 | ||
10648 | * dwarf2read.c (mapped_symtab::data): Now a vector of | |
10649 | symtab_index_entry instead of vector of | |
10650 | std::unique_ptr<symtab_index_entry>. All users adjusted to check | |
10651 | whether an element's name is NULL instead of checking whether the | |
10652 | element itself is NULL. | |
10653 | (find_slot): Change return type. Adjust. | |
10654 | (hash_expand, , add_index_entry, uniquify_cu_indices) | |
10655 | (write_hash_table): Adjust. | |
10656 | ||
e8f8bcb3 PA |
10657 | 2017-06-12 Pedro Alves <palves@redhat.com> |
10658 | ||
10659 | * dwarf2read.c (recursively_count_psymbols): New function. | |
10660 | (write_psymtabs_to_index): Call it to compute number of psyms and | |
10661 | pass estimate size of psyms_seen to unordered_set's ctor. | |
10662 | ||
70a1152b PA |
10663 | 2017-06-12 Pedro Alves <palves@redhat.com> |
10664 | ||
10665 | * dwarf2read.c (write_hash_table): Check if key already exists | |
10666 | before emplacing. | |
10667 | ||
c2f134ac PA |
10668 | 2017-06-12 Pedro Alves <palves@redhat.com> |
10669 | ||
10670 | * dwarf2read.c (data_buf::append_space): Rename to... | |
10671 | (data_buf::grow): ... this, and make private. Adjust all callers. | |
10672 | (data_buf::append_uint): New method. | |
10673 | (add_address_entry, write_one_signatured_type) | |
10674 | (write_psymtabs_to_index): Use it. | |
10675 | ||
a81e6d4d PA |
10676 | 2017-06-12 Pedro Alves <palves@redhat.com> |
10677 | ||
10678 | * dwarf2read.c (file_write(FILE *, const void *, size_t)): Delete. | |
10679 | (file_write (FILE *, const std::vector<Elem>&)): Delete. | |
10680 | (data_buf::file_write): Call ::fwrite directly. | |
10681 | ||
6fd931f2 PA |
10682 | 2017-06-12 Pedro Alves <palves@redhat.com> |
10683 | ||
10684 | * dwarf2read.c (uniquify_cu_indices): Use std::unique and | |
10685 | std::vector::erase. | |
10686 | ||
bc8f2430 JK |
10687 | 2017-06-12 Jan Kratochvil <jan.kratochvil@redhat.com> |
10688 | ||
10689 | Code cleanup: C++ify .gdb_index producer. | |
10690 | * dwarf2read.c: Include <unordered_set> and <unordered_map>. | |
10691 | (MAYBE_SWAP) [WORDS_BIGENDIAN]: Cast to offset_type. | |
10692 | (struct strtab_entry, hash_strtab_entry, eq_strtab_entry) | |
10693 | (create_strtab, add_string): Remove. | |
10694 | (file_write, data_buf): New. | |
10695 | (struct symtab_index_entry): Use std::vector for cu_indices. | |
10696 | (struct mapped_symtab): Use std::vector for data. | |
10697 | (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry) | |
10698 | (create_symbol_hash_table, create_mapped_symtab, cleanup_mapped_symtab): | |
10699 | Remove. | |
10700 | (find_slot): Change return type. Update it to the new data structures. | |
10701 | (hash_expand, add_index_entry): Update it to the new data structures. | |
10702 | (offset_type_compare): Remove. | |
10703 | (uniquify_cu_indices): Update it to the new data structures. | |
10704 | (c_str_view, c_str_view_hasher, vector_hasher): New. | |
10705 | (add_indices_to_cpool): Remove. | |
10706 | (write_hash_table): Update it to the new data structures. | |
10707 | (struct psymtab_cu_index_map, hash_psymtab_cu_index) | |
10708 | (eq_psymtab_cu_index): Remove. | |
10709 | (psym_index_map): New typedef. | |
10710 | (struct addrmap_index_data): Change addr_obstack pointer to data_buf | |
10711 | reference and std::unordered_map for cu_index_htab. | |
10712 | (add_address_entry, add_address_entry_worker, write_address_map) | |
10713 | (write_psymbols): Update it to the new data structures. | |
10714 | (write_obstack): Remove. | |
10715 | (struct signatured_type_index_data): Change types_list to a data_buf | |
10716 | reference and psyms_seen to a std::unordered_set reference. | |
10717 | (write_one_signatured_type, recursively_write_psymbols) | |
10718 | (write_psymtabs_to_index): Update it to the new data structures. | |
10719 | ||
c4dcb155 SM |
10720 | 2017-06-11 Simon Marchi <simon.marchi@ericsson.com> |
10721 | ||
10722 | * NEWS (Changes since GDB 8.0): Announce {set,show} debug | |
10723 | separate-debug-file commands. | |
10724 | * symfile.h (separate_debug_file_debug): New global. | |
10725 | * symfile.c (separate_debug_file_debug): New global. | |
10726 | (separate_debug_file_exists, find_separate_debug_file): Add | |
10727 | debug output. | |
10728 | (_initialize_symfile): Add "set debug separate-debug-file" | |
10729 | command. | |
10730 | * build-id.c (build_id_to_debug_bfd, | |
10731 | find_separate_debug_file_by_buildid): Add debug output. | |
10732 | ||
6d45d4b4 SM |
10733 | 2017-06-10 Simon Marchi <simon.marchi@polymtl.ca> |
10734 | ||
10735 | * gdbarch.sh (displaced_step_free_closure): Remove. | |
10736 | * gdbarch.h, gdbarch.c: Re-generate. | |
10737 | * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't set | |
10738 | displaced_step_free_closure. | |
10739 | * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise. | |
10740 | * arm-linux-tdep.c (arm_linux_init_abi): Likewise. | |
10741 | * i386-linux-tdep.c (i386_linux_init_abi): Likewise. | |
10742 | * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise. | |
10743 | * rs6000-tdep.c (rs6000_gdbarch_init): Likewise. | |
10744 | * s390-linux-tdep.c (s390_gdbarch_init): Likewise. | |
10745 | * arch-utils.h (simple_displaced_step_free_closure): Remove. | |
10746 | * arch-utils.c (simple_displaced_step_free_closure): Remove. | |
10747 | * infrun.c (displaced_step_clear): Call xfree instead of | |
10748 | gdbarch_displaced_step_free_closure. | |
10749 | ||
2f91880f SDJ |
10750 | 2017-06-08 Sergio Durigan Junior <sergiodj@redhat.com> |
10751 | ||
10752 | * common/common-utils.c (stringify_argv): Check for "arg[0] != | |
10753 | NULL". | |
10754 | ||
b8b6e72f AH |
10755 | 2017-06-08 Alan Hayward <alan.hayward@arm.com> |
10756 | ||
10757 | * mn10300-tdep.c (MN10300_MAX_REGISTER_SIZE): Add. | |
10758 | (mn10300_extract_return_value): Use MN10300_MAX_REGISTER_SIZE. | |
10759 | (mn10300_push_dummy_call): Likewise. | |
10760 | ||
5369082e AH |
10761 | 2017-06-08 Alan Hayward <alan.hayward@arm.com> |
10762 | ||
10763 | * mi/mi-main.c (register_changed_p): Use value_contents_eq. | |
10764 | ||
ff4ca5ac AH |
10765 | 2017-06-08 Alan Hayward <alan.hayward@arm.com> |
10766 | ||
10767 | * mi/mi-main.c (register_changed_p): Use cooked_read_value. | |
10768 | ||
aefd8b33 SDJ |
10769 | 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com> |
10770 | ||
10771 | * NEWS (Changes since GDB 8.0): Announce that GDBserver is now | |
10772 | able to start inferiors using a shell. | |
10773 | (New remote packets): Announce new packet "QStartupWithShell". | |
10774 | * remote.c: Add PACKET_QStartupWithShell. | |
10775 | (extended_remote_create_inferior): Handle new | |
10776 | PACKET_QStartupWithShell. | |
10777 | (remote_protocol_features) <QStartupWithShell>: New entry for | |
10778 | PACKET_QStartupWithShell. | |
10779 | (_initialize_remote): Call "add_packet_config_cmd" for | |
10780 | QStartupShell. | |
10781 | ||
2090129c SDJ |
10782 | 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com> |
10783 | Pedro Alves <palves@redhat.com> | |
10784 | ||
10785 | * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-inferior.h" | |
10786 | and "nat/fork-inferior.h". | |
10787 | * common/common-inferior.h: New file, with contents from | |
10788 | "gdb/inferior.h". | |
10789 | * commom/common-utils.c: Include "common-utils.h". | |
10790 | (stringify_argv): New function. | |
10791 | * common/common-utils.h (stringify_argv): New prototype. | |
10792 | * configure.nat: Add "fork-inferior.o" as a dependency for | |
10793 | "*linux*", "fbsd*" and "nbsd*" hosts. | |
10794 | * corefile.c (get_exec_file): Update comment. | |
10795 | * darwin-nat.c (darwin_ptrace_him): Call "gdb_startup_inferior" | |
10796 | instead of "startup_inferior". | |
10797 | (darwin_create_inferior): Call "add_thread_silent" after | |
10798 | "fork_inferior". | |
10799 | * fork-child.c: Cleanup unnecessary includes. | |
10800 | (SHELL_FILE): Move to "common/common-fork-child.c". | |
10801 | (environ): Likewise. | |
10802 | (exec_wrapper): Initialize. | |
10803 | (get_exec_wrapper): New function. | |
10804 | (breakup_args): Move to "common/common-fork-child.c"; rename to | |
10805 | "breakup_args_for_exec". | |
10806 | (escape_bang_in_quoted_argument): Move to | |
10807 | "common/common-fork-child.c". | |
10808 | (saved_ui): New variable. | |
10809 | (prefork_hook): New function. | |
10810 | (postfork_hook): Likewise. | |
10811 | (postfork_child_hook): Likewise. | |
10812 | (gdb_startup_inferior): Likewise. | |
10813 | (fork_inferior): Move to "common/common-fork-child.c". Update | |
10814 | function to support gdbserver. | |
10815 | (startup_inferior): Likewise. | |
10816 | * gdbcore.h (get_exec_file): Remove declaration. | |
10817 | * gnu-nat.c (gnu_create_inferior): Call "gdb_startup_inferior" | |
10818 | instead of "startup_inferior". Call "add_thread_silent" after | |
10819 | "fork_inferior". | |
10820 | * inf-ptrace.c: Include "nat/fork-inferior.h" and "utils.h". | |
10821 | (inf_ptrace_create_inferior): Call "gdb_startup_inferior" | |
10822 | instead of "startup_inferior". Call "add_thread_silent" after | |
10823 | "fork_inferior". | |
10824 | * inferior.h: Include "common-inferior.h". | |
10825 | (trace_start_error): Move to "common/common-utils.h". | |
10826 | (trace_start_error_with_name): Likewise. | |
10827 | (fork_inferior): Move prototype to "nat/fork-inferior.h". | |
10828 | (startup_inferior): Likewise. | |
10829 | (gdb_startup_inferior): New prototype. | |
10830 | * nat/fork-inferior.c: New file, with contents from "fork-child.c". | |
10831 | * nat/fork-inferior.h: New file. | |
10832 | * procfs.c (procfs_init_inferior): Call "gdb_startup_inferior" | |
10833 | instead of "startup_inferior". Call "add_thread_silent" after | |
10834 | "fork_inferior". | |
10835 | * target.h (target_terminal_init): Move prototype to | |
10836 | "target/target.h". | |
10837 | (target_terminal_inferior): Likewise. | |
10838 | (target_terminal_ours): Likewise. | |
10839 | * target/target.h (target_terminal_init): New prototype, moved | |
10840 | from "target.h". | |
10841 | (target_terminal_inferior): Likewise. | |
10842 | (target_terminal_ours): Likewise. | |
10843 | * utils.c (gdb_flush_out_err): New function. | |
10844 | ||
043a4934 SDJ |
10845 | 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com> |
10846 | ||
10847 | * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-gdbthread.h". | |
10848 | * common/common-gdbthread.h: New file, with parts from | |
10849 | "gdb/gdbthread.h". | |
10850 | * gdbthread.h: Include "common-gdbthread.h". | |
10851 | (switch_to_thread): Moved to "common/common-gdbthread.h". | |
10852 | ||
15652511 SDJ |
10853 | 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com> |
10854 | ||
10855 | * Makefile.in (SFILES): Add "common/job-control.c". | |
10856 | (HFILES_NO_SRCDIR): Add "common/job-control.h". | |
10857 | (COMMON_OBS): Add "job-control.o". | |
10858 | * common/job-control.c: New file, with contents from | |
10859 | "gdb/inflow.c". | |
10860 | * common/job-control.h: New file, with contents from "terminal.h". | |
10861 | * fork-child.c: Include "job-control.h". | |
10862 | * inflow.c: Include "job-control.h". | |
10863 | (gdb_setpgid): Move to "common/common-inflow.c". | |
10864 | (_initialize_inflow): Move setting of "job_control" to | |
10865 | "handle_job_control". | |
10866 | * terminal.h (job_control): Moved to "common/common-terminal.h". | |
10867 | (gdb_setpgid): Likewise. | |
10868 | * top.c: Include "job_control.h". | |
10869 | * utils.c: Likewise. | |
10870 | (job_control): Moved to "job-control.c". | |
10871 | ||
2d7cc5c7 PA |
10872 | 2017-06-07 Pedro Alves <palves@redhat.com> |
10873 | ||
10874 | * Makefile.in (SFILES): Add gdb_regex.c. | |
10875 | (COMMON_OBS): Add gdb_regex.o. | |
10876 | * ada-lang.c (ada_add_standard_exceptions) | |
10877 | (ada_add_exceptions_from_frame, name_matches_regex) | |
10878 | (ada_add_global_exceptions, ada_exceptions_list_1): Change regex | |
10879 | parameter type to compiled_regex. Adjust. | |
10880 | (ada_exceptions_list): Use compiled_regex. | |
10881 | * break-catch-throw.c (exception_catchpoint::pattern): Now a | |
10882 | std::unique_ptr<compiled_regex>. | |
10883 | (exception_catchpoint::~exception_catchpoint): Remove regfree | |
10884 | call. | |
10885 | (check_status_exception_catchpoint): Adjust to use compiled_regex. | |
10886 | (handle_gnu_v3_exceptions): Adjust to use compiled_regex. | |
10887 | * breakpoint.c (solib_catchpoint::compiled): Now a | |
10888 | std::unique_ptr<compiled_regex>. | |
10889 | (solib_catchpoint::~solib_catchpoint): Remove regfree call. | |
10890 | (check_status_catch_solib): Adjust to use compiled_regex. | |
10891 | (add_solib_catchpoint): Adjust to use compiled_regex. | |
10892 | * cli/cli-cmds.c (apropos_command): Use compiled_regex. | |
10893 | * cli/cli-decode.c (apropos_cmd): Change regex parameter to | |
10894 | compiled_regex reference. Adjust to use it. | |
10895 | * cli/cli-decode.h: Remove struct re_pattern_buffer forward | |
10896 | declaration. Include "gdb_regex.h". | |
10897 | (apropos_cmd): Change regex parameter to compiled_regex reference. | |
10898 | * gdb_regex.c: New file. | |
10899 | * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Delete | |
10900 | declarations. | |
10901 | (class compiled_regex): New. | |
10902 | * linux-tdep.c: Include "common/gdb_optional.h". | |
10903 | (struct mapping_regexes): New, factored out from | |
10904 | mapping_is_anonymous_p, and adjusted to use compiled_regex. | |
10905 | (mapping_is_anonymous_p): Use mapping_regexes wrapped in a | |
10906 | gdb::optional and remove cleanups. Adjust to compiled_regex. | |
10907 | * probe.c: Include "common/gdb_optional.h". | |
10908 | (collect_probes): Use compiled_regex and gdb::optional and remove | |
10909 | cleanups. | |
10910 | * skip.c: Include "common/gdb_optional.h". | |
10911 | (skiplist_entry::compiled_function_regexp): Now a | |
10912 | gdb::optional<compiled_regex>. | |
10913 | (skiplist_entry::compiled_function_regexp_is_valid): Delete field. | |
10914 | (free_skiplist_entry): Remove regfree call. | |
10915 | (compile_skip_regexp, skip_rfunction_p): Adjust to use | |
10916 | compiled_regex and gdb::optional. | |
10917 | * symtab.c: Include "common/gdb_optional.h". | |
10918 | (search_symbols): Use compiled_regex and gdb::optional. | |
10919 | * utils.c (do_regfree_cleanup, make_regfree_cleanup) | |
10920 | (get_regcomp_error, compile_rx_or_error): Delete. Some bits moved | |
10921 | to gdb_regex.c. | |
10922 | ||
50d6adef AH |
10923 | 2017-06-07 Alan Hayward <alan.hayward@arm.com> |
10924 | ||
10925 | * regcache.c (regcache::save): Avoid buffer use. | |
10926 | (regcache::dump): Likewise. | |
10927 | ||
4a8a33c8 AH |
10928 | 2017-06-07 Alan Hayward <alan.hayward@arm.com> |
10929 | ||
10930 | * sh-tdep.c (sh_pseudo_register_read): Remove | |
10931 | MAX_REGISTER_SIZE. | |
10932 | (sh_pseudo_register_write): Likewise. | |
10933 | * sh64-tdep.c (sh64_pseudo_register_read): Likewise. | |
10934 | (sh64_pseudo_register_write): Likewise | |
10935 | ||
d1be909e AH |
10936 | 2017-06-07 Alan Hayward <alan.hayward@arm.com> |
10937 | ||
10938 | * aarch64-tdep.c (aarch64_store_return_value): Use | |
10939 | V_REGISTER_SIZE. | |
10940 | (aarch64_pseudo_read_value): Likewise. | |
10941 | (aarch64_pseudo_write): Likewise. | |
10942 | ||
f4a65042 YQ |
10943 | 2017-06-06 Yao Qi <yao.qi@linaro.org> |
10944 | ||
10945 | * regformats/regdef.h (set_register_cache): Remove the | |
10946 | declaration. | |
10947 | ||
9f7fb0aa AH |
10948 | 2017-06-06 Alan Hayward <alan.hayward@arm.com> |
10949 | ||
10950 | * frame.c (frame_unwind_register_signed): Use | |
10951 | frame_unwind_register_value. | |
10952 | ||
e1e01040 PA |
10953 | 2017-06-06 Pedro Alves <palves@redhat.com> |
10954 | ||
10955 | PR breakpoints/21553 | |
10956 | * breakpoint.c (create_breakpoints_sal_default) | |
10957 | (init_breakpoint_sal, create_breakpoint_sal): Use | |
10958 | gdb::unique_xmalloc_ptr for string parameters. | |
10959 | (create_breakpoint): Constify 'extra_string' and 'cond_string' | |
10960 | parameters. Replace cleanups with gdb::unique_xmalloc_ptr. | |
10961 | (base_breakpoint_create_breakpoints_sal) | |
10962 | (bkpt_create_breakpoints_sal, tracepoint_create_breakpoints_sal) | |
10963 | (strace_marker_create_breakpoints_sal) | |
10964 | (create_breakpoints_sal_default): Use gdb::unique_xmalloc_ptr for | |
10965 | string parameters. | |
10966 | * breakpoint.h (breakpoint_ops::create_breakpoints_sal): Use | |
10967 | gdb::unique_xmalloc_ptr for string parameters. | |
10968 | (create_breakpoint): Constify 'extra_string' and 'cond_string' | |
10969 | parameters. | |
10970 | ||
fbe654c8 AH |
10971 | 2017-06-06 Alan Hayward <alan.hayward@arm.com> |
10972 | ||
10973 | * alpha-tdep.c (alpha_register_to_value): Use | |
10974 | get_frame_register_value. | |
10975 | (alpha_value_to_register): Use ALPHA_REGISTER_SIZE. | |
10976 | ||
ae0d01d6 AH |
10977 | 2017-06-06 Alan Hayward <alan.hayward@arm.com> |
10978 | ||
10979 | * ia64-tdep.c (IA64_MAX_FP_REGISTER_SIZE) Add. | |
10980 | (ia64_register_to_value): Use IA64_MAX_FP_REGISTER_SIZE. | |
10981 | (ia64_value_to_register): Likewise. | |
10982 | (ia64_extract_return_value): Likewise. | |
10983 | (ia64_store_return_value): Likewise. | |
10984 | (ia64_push_dummy_call): Likewise. | |
10985 | ||
49cf576c JB |
10986 | 2017-06-04 Joel Brobecker <brobecker@adacore.com> |
10987 | ||
10988 | GDB 8.0 released. | |
10989 | ||
26b6a6ab SM |
10990 | 2017-06-03 Simon Marchi <simon.marchi@ericsson.com> |
10991 | ||
10992 | * x86-linux-nat.c (struct arch_lwp_info): Remove. | |
10993 | ||
22827c51 SM |
10994 | 2017-06-03 Simon Marchi <simon.marchi@polymtl.ca> |
10995 | ||
10996 | * linux-nat.c (linux_nat_post_attach_wait): Remove FIRST | |
10997 | parameter. | |
10998 | (linux_nat_attach): Adjust call to linux_nat_post_attach_wait. | |
10999 | ||
0e05cf3a SM |
11000 | 2017-06-02 Simon Marchi <simon.marchi@ericsson.com> |
11001 | ||
11002 | * event-loop.c (poll_timers): Unallocate timer using delete | |
11003 | instead of xfree. | |
11004 | ||
c1fc2657 SM |
11005 | 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca> |
11006 | ||
11007 | * breakpoint.h (struct breakpoint_ops) <dtor>: Remove. | |
11008 | (struct breakpoint) <~breakpoint>: New. | |
11009 | (struct watchpoint): Inherit from breakpoint. | |
11010 | <~watchpoint>: New. | |
11011 | <base>: Remove. | |
11012 | (struct tracepoint): Inherit from breakpoint. | |
11013 | <base>: Remove. | |
11014 | * breakpoint.c (longjmp_breakpoint_ops): Remove. | |
11015 | (struct longjmp_breakpoint): Inherit from breakpoint. | |
11016 | <~longjmp_breakpoint>: New. | |
11017 | <base>: Remove. | |
11018 | (new_breakpoint_from_type): Remove casts. | |
11019 | (watchpoint_in_thread_scope): Remove reference to base field. | |
11020 | (watchpoint_del_at_next_stop): Likewise. | |
11021 | (update_watchpoint): Likewise. | |
11022 | (watchpoint_check): Likewise. | |
11023 | (bpstat_check_watchpoint): Likewise. | |
11024 | (set_longjmp_breakpoint): Likewise. | |
11025 | (struct fork_catchpoint): Inherit from breakpoint. | |
11026 | <base>: Remove. | |
11027 | (struct solib_catchpoint): Inherit from breakpoint. | |
11028 | <~solib_catchpoint>: New. | |
11029 | <base>: Remove. | |
11030 | (dtor_catch_solib): Change to ... | |
11031 | (solib_catchpoint::~solib_catchpoint): ... this. | |
11032 | (breakpoint_hit_catch_solib): Remove reference to base field. | |
11033 | (add_solib_catchpoint): Likewise. | |
11034 | (create_fork_vfork_event_catchpoint): Likewise. | |
11035 | (struct exec_catchpoint): Inherit from breakpoint. | |
11036 | <~exec_catchpoint>: New. | |
11037 | <base>: Remove. | |
11038 | (dtor_catch_exec): Change to ... | |
11039 | (exec_catchpoint::~exec_catchpoint): ... this. | |
11040 | (dtor_watchpoint): Change to ... | |
11041 | (watchpoint::~watchpoint): ... this. | |
11042 | (watch_command_1): Remove reference to base field. | |
11043 | (catch_exec_command_1): Likewise. | |
11044 | (base_breakpoint_dtor): Change to ... | |
11045 | (breakpoint::~breakpoint): ... this. | |
11046 | (base_breakpoint_ops): Remove dtor field value. | |
11047 | (longjmp_bkpt_dtor): Change to ... | |
11048 | (longjmp_breakpoint::~longjmp_breakpoint): ... this. | |
11049 | (strace_marker_create_breakpoints_sal): Remove reference to base | |
11050 | field. | |
11051 | (delete_breakpoint): Don't manually call breakpoint destructor. | |
11052 | (create_tracepoint_from_upload): Remove reference to base field. | |
11053 | (trace_pass_set_count): Likewise. | |
11054 | (initialize_breakpoint_ops): Don't initialize | |
11055 | momentary_breakpoint_ops, don't set dtors. | |
11056 | * ada-lang.c (struct ada_catchpoint): Inherit from breakpoint. | |
11057 | <~ada_catchpoint>: New. | |
11058 | <base>: Remove. | |
11059 | (create_excep_cond_exprs): Remove reference to base field. | |
11060 | (dtor_exception): Change to ... | |
11061 | (ada_catchpoint::~ada_catchpoint): ... this. | |
11062 | (dtor_catch_exception): Remove. | |
11063 | (dtor_catch_exception_unhandled): Remove. | |
11064 | (dtor_catch_assert): Remove. | |
11065 | (create_ada_exception_catchpoint): Remove reference to base | |
11066 | field. | |
11067 | (initialize_ada_catchpoint_ops): Don't set dtors. | |
11068 | * break-catch-sig.c (struct signal_catchpoint): Inherit from | |
11069 | breakpoint. | |
11070 | <~signal_catchpoint>: New. | |
11071 | <base>: Remove. | |
11072 | (signal_catchpoint_dtor): Change to ... | |
11073 | (signal_catchpoint::~signal_catchpoint): ... this. | |
11074 | (create_signal_catchpoint): Remove reference to base field. | |
11075 | (initialize_signal_catchpoint_ops): Don't set dtor. | |
11076 | * break-catch-syscall.c (struct syscall_catchpoint): Inherit | |
11077 | from breakpoint. | |
11078 | <~syscall_catchpoint>: New. | |
11079 | <base>: Remove. | |
11080 | (dtor_catch_syscall): Change to ... | |
11081 | (syscall_catchpoint::~syscall_catchpoint): ... this. | |
11082 | (create_syscall_event_catchpoint): Remove reference to base | |
11083 | field. | |
11084 | (initialize_syscall_catchpoint_ops): Don't set dtor. | |
11085 | * break-catch-throw.c (struct exception_catchpoint): Inherit | |
11086 | from breakpoint. | |
11087 | <~exception_catchpoint>: New. | |
11088 | <base>: Remove. | |
11089 | (dtor_exception_catchpoint): Change to ... | |
11090 | (exception_catchpoint::~exception_catchpoint): ... this. | |
11091 | (handle_gnu_v3_exceptions): Remove reference to base field. | |
11092 | (initialize_throw_catchpoint_ops): Don't set dtor. | |
11093 | * ctf.c (ctf_get_traceframe_address): Remove reference to base | |
11094 | field. | |
11095 | * remote.c (remote_get_tracepoint_status): Likewise. | |
11096 | * tracefile-tfile.c (tfile_get_traceframe_address): Likewise. | |
11097 | * tracefile.c (tracefile_fetch_registers): Likewise. | |
11098 | * tracepoint.c (actions_command): Likewise. | |
11099 | (validate_actionline): Likewise. | |
11100 | (tfind_1): Likewise. | |
11101 | (get_traceframe_location): Likewise. | |
11102 | (find_matching_tracepoint_location): Likewise. | |
11103 | (parse_tracepoint_status): Likewise. | |
11104 | * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise. | |
11105 | ||
3b0871f4 SM |
11106 | 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca> |
11107 | ||
11108 | * breakpoint.c (struct longjmp_breakpoint): New struct. | |
11109 | (is_tracepoint_type): Change return type to bool. | |
11110 | (is_longjmp_type): New function. | |
11111 | (new_breakpoint_from_type): Handle longjmp kinds of breakpoints. | |
11112 | (set_raw_breakpoint_without_location): Use | |
11113 | new_breakpoint_from_type. | |
11114 | (set_raw_breakpoint): Likewise. | |
11115 | ||
a5e364af SM |
11116 | 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca> |
11117 | ||
11118 | * breakpoint.c (new_breakpoint_from_type): New function. | |
11119 | (create_breakpoint_sal): Use new_breakpoint_from_type and | |
11120 | unique_ptr. | |
11121 | (create_breakpoint): Likewise. | |
11122 | ||
ae3b3f34 SM |
11123 | 2017-05-31 Simon Marchi <simon.marchi@ericsson.com> |
11124 | ||
11125 | * memattr.c (mem_info_command): Rename to ... | |
11126 | (info_mem_command): ... this. | |
11127 | (mem_enable_command): Rename to ... | |
11128 | (enable_mem_command): ... this. | |
11129 | (mem_disable_command): Rename to ... | |
11130 | (disable_mem_command): ... this. | |
11131 | (mem_delete_command): Rename to ... | |
11132 | (delete_mem_command): ... this. | |
11133 | (_initialize_mem): Adjust function names. | |
11134 | ||
13ace077 MM |
11135 | 2017-05-31 Markus Metzger <markus.t.metzger@intel.com> |
11136 | ||
11137 | * btrace.c (handle_pt_insn_events): New. | |
11138 | (ftrace_add_pt): Call handle_pt_insn_events. Rename ERRCODE into | |
11139 | STATUS. Split into this and ... | |
11140 | (handle_pt_insn_event_flags): ... this. | |
11141 | ||
c56ccc05 MM |
11142 | 2017-05-31 Markus Metzger <markus.t.metzger@intel.com> |
11143 | ||
11144 | * configure.ac: Check for pt_insn_event, struct pt_insn.enabled, | |
11145 | and struct pt_insn.resynced. | |
11146 | * configure: Regenerated. | |
11147 | * config.in: Regenerated. | |
11148 | ||
08c3f6d2 TW |
11149 | 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com> |
11150 | ||
11151 | * btrace.c (ftrace_find_call_by_number): New function. | |
11152 | (ftrace_new_function): Store objects, not pointers. | |
11153 | (ftrace_find_call_by_number, ftrace_new_return, ftrace_new_switch, | |
11154 | ftrace_new_gap, ftrace_update_function, | |
11155 | ftrace_compute_global_level_offset, btrace_stich_bts, btrace_clear, | |
11156 | btrace_insn_get, btrace_insn_get_error, btrace_insn_end, | |
11157 | btrace_insn_next, btrace_insn_prev, ptrace_find_insn_by_number, | |
11158 | btrace_ends_with_single_insn, btrace_call_get): Account for | |
11159 | btrace_thread_info::functions now storing objects. | |
11160 | * btrace.h (struct btrace_thread_info): Add constructor. | |
11161 | (struct btrace_thread_info) <functions>: Make std::vector. | |
11162 | (struct btrace_thread_info) <prev, next, up, insn, errcode, flags): | |
11163 | Initialize with default values. | |
11164 | * record-btrace.c (record_btrace_frame_sniffer): Account for | |
11165 | btrace_thread_info::functions now storing objects. | |
11166 | ||
8ffd39f2 TW |
11167 | 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com> |
11168 | ||
11169 | * btrace.c: Remove typedef bfun_s. | |
11170 | (ftrace_new_gap): Directly add gaps to the list of gaps. | |
11171 | (btrace_bridge_gaps, btrace_compute_ftrace_bts, pt_btrace_insn_flags, | |
11172 | ftrace_add_pt, btrace_compute_ftrace_pt, btrace_compute_ftrace_1, | |
11173 | btrace_finalize_ftrace, btrace_compute_ftrace): Use std::vector | |
11174 | instead of gdb VEC. | |
11175 | ||
4aeb0dfc TW |
11176 | 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com> |
11177 | ||
11178 | * btrace.c (ftrace_fixup_caller, ftrace_new_return, ftrace_connect_bfun, | |
11179 | ftrace_bridge_gap): Replace references to btrace_thread_info::segment | |
11180 | with btrace_thread_info::next_segment and | |
11181 | btrace_thread_info::prev_segment. | |
11182 | * btrace.h: Remove struct btrace_func_link. | |
11183 | (struct btrace_function): Replace pair of function segment pointers | |
11184 | with pair of indices. | |
11185 | * python/py-record-btrace.c (btpy_call_prev_sibling, | |
11186 | btpy_call_next_sibling): Replace references to | |
11187 | btrace_thread_info::segment with btrace_thread_info::next_segment and | |
11188 | btrace_thread_info::prev_segment. | |
11189 | * record-btrace.c (record_btrace_frame_this_id): Use | |
11190 | btrace_find_call_by_number. | |
11191 | ||
eb8f2b9c TW |
11192 | 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com> |
11193 | ||
11194 | * btrace.c (ftrace_new_function, ftrace_fixup_level, | |
11195 | ftrace_connect_bfun, ftrace_bridge_gap, btrace_bridge_gaps, | |
11196 | btrace_insn_next, btrace_insn_prev): Remove references to | |
11197 | btrace_thread_info::flow. | |
11198 | * btrace.h (struct btrace_function): Remove FLOW. | |
11199 | ||
42bfe59e TW |
11200 | 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com> |
11201 | ||
11202 | * btrace.c (ftrace_find_call_by_number): New function. | |
11203 | (ftrace_update_caller, ftrace_new_call, ftrace_new_tailcall, | |
11204 | ftrace_get_caller, ftrace_find_call, ftrace_new_return, | |
11205 | ftrace_match_backtrace, ftrace_connect_bfun, ftrace_connect_backtrace, | |
11206 | ftrace_bridge_gap, btrace_bridge_gaps): Use btrace_function::up as an | |
11207 | index. | |
11208 | * btrace.h (struct btrace_function): Turn UP into an index. | |
11209 | * python/py-record-btrace.c (btpy_call_up): Use btrace_function::up | |
11210 | as an index. | |
11211 | * record-btrace.c (record_btrace_frame_unwind_stop_reason, | |
11212 | record_btrace_frame_prev_register, record_btrace_frame_sniffer, | |
11213 | record_btrace_tailcall_frame_sniffe): Use btrace_find_call_by_number. | |
11214 | ||
b54b03bd TW |
11215 | 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com> |
11216 | ||
11217 | * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall, | |
11218 | ftrace_new_return, ftrace_new_switch, ftrace_new_gap, | |
11219 | ftrace_update_function, ftrace_compute_global_level_offset, | |
11220 | btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt, | |
11221 | btrace_stitch_bts, btrace_fetch, btrace_clear, btrace_insn_number, | |
11222 | btrace_insn_end, btrace_is_empty): Remove references to | |
11223 | btrace_thread_info::begin and btrace_thread_info::end. | |
11224 | * btrace.h (struct btrace_thread_info): Remove BEGIN and END. | |
11225 | (struct btrace_thread_info) <functions>: Adjust comment. | |
11226 | * record-btrace.c (record_btrace_start_replaying): Remove reference to | |
11227 | btrace_thread_info::begin. | |
11228 | ||
8286623c TW |
11229 | 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com> |
11230 | ||
11231 | * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall, | |
11232 | ftrace_new_return, ftrace_new_switch, ftrace_new_gap, | |
11233 | ftrace_update_function): Remove arguments that implicitly were always | |
11234 | BTINFO->END. | |
11235 | (btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt): | |
11236 | Don't pass BTINFO->END. | |
11237 | ||
a0f1b963 TW |
11238 | 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com> |
11239 | ||
11240 | * btrace.c: (btrace_insn_get, btrace_insn_get_error, btrace_insn_number, | |
11241 | btrace_insn_begin, btrace_insn_end, btrace_insn_next, btrace_insn_prev, | |
11242 | btrace_find_insn_by_number): Replace function segment pointer with | |
11243 | index. | |
11244 | (btrace_insn_cmp): Simplify. | |
11245 | * btrace.h: (struct btrace_insn_iterator) Rename index to | |
11246 | insn_index. Replace function segment pointer with index into function | |
11247 | segment vector. | |
11248 | * record-btrace.c (record_btrace_call_history): Replace function | |
11249 | segment pointer use with index. | |
11250 | (record_btrace_frame_sniffer): Retrieve function call segment through | |
11251 | vector. | |
11252 | (record_btrace_set_replay): Remove defunc't safety check. | |
11253 | ||
f158f208 TW |
11254 | 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com> |
11255 | ||
11256 | * btrace.c (btrace_ends_with_single_insn): New function. | |
11257 | (btrace_call_get, btrace_call_number, btrace_call_begin, | |
11258 | btrace_call_end, btrace_call_next, btrace_call_prev, | |
11259 | btrace_find_call_by_number): Use index into call segment vector | |
11260 | instead of pointer. | |
11261 | (btrace_call_cmp): Simplify. | |
11262 | * btrace.h (struct btrace_call_iterator): Replace function call segment | |
11263 | pointer with index into vector. | |
11264 | * record-btrace.c (record_btrace_call_history): Use index instead of | |
11265 | pointer. | |
11266 | ||
521103fd TW |
11267 | 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com> |
11268 | ||
11269 | * btrace.c (btrace_insn_begin, btrace_insn_end, | |
11270 | btrace_find_insn_by_number): Add btinfo to iterator. | |
11271 | * btrace.h (struct btrace_insn_iterator): Add btinfo. | |
11272 | ||
17b89b34 TW |
11273 | 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com> |
11274 | ||
11275 | * btrace.c (ftrace_new_function): Add btrace_thread_info to arguments | |
11276 | and save pointers directly. | |
11277 | (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return, | |
11278 | ftrace_new_switch, ftrace_new_gap, ftrace_update_function, | |
11279 | ftrace_add_pt): Add btrace_thread_info to arguments. Adjust for | |
11280 | changed signature of functions. | |
11281 | (btrace_compute_ftrace_pt): Adjust for changed signature of functions. | |
11282 | (btrace_fetch): Remove code that adds btrace_function pointers to | |
11283 | vector of btrace_functions. | |
11284 | (btrace_clear): Simplify freeing vector of btrace_functions. | |
11285 | ||
2b51eddc TW |
11286 | 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com> |
11287 | ||
11288 | * btrace.c (btrace_fetch, btrace_clear, btrace_find_insn_by_number): | |
11289 | Replace VEC_* with std::vector functions. | |
11290 | * btrace.h: Add include: vector. Remove typedef for DEF_VEC_P. | |
11291 | (struct btrace_thread_info)<functions>: Change type to std::vector. | |
11292 | ||
db6be0d5 SM |
11293 | 2017-05-30 Simon Marchi <simon.marchi@ericsson.com> |
11294 | ||
11295 | * NEWS (Changes in GDB 8.0): Remove extra empty line. Move | |
11296 | "Removed targets and native configurations" up. Merge duplicate | |
11297 | "New commands" sub-sections. Add "New options" sub-sections. | |
11298 | ||
b057297a AH |
11299 | 2017-05-26 Alan Hayward <alan.hayward@arm.com> |
11300 | ||
11301 | * defs.h (copy_integer_to_size): New declaration. | |
11302 | * findvar.c (copy_integer_to_size): New function. | |
11303 | (do_cint_test): New selftest function. | |
11304 | (copy_integer_to_size_test): Likewise. | |
11305 | (_initialize_findvar): Likewise. | |
11306 | * mips-fbsd-tdep.c (mips_fbsd_supply_reg): Use raw_supply_integer. | |
11307 | (mips_fbsd_collect_reg): Use raw_collect_integer. | |
11308 | * mips-linux-tdep.c (supply_32bit_reg): Use raw_supply_integer. | |
11309 | (mips64_fill_gregset): Use raw_collect_integer | |
11310 | (mips64_fill_fpregset): Use raw_supply_integer. | |
11311 | * regcache.c (regcache::raw_supply_integer): New function. | |
11312 | (regcache::raw_collect_integer): Likewise. | |
11313 | * regcache.h: (regcache::raw_supply_integer): New declaration. | |
11314 | (regcache::raw_collect_integer): Likewise. | |
11315 | ||
b77b02a5 YQ |
11316 | 2017-05-24 Yao Qi <yao.qi@linaro.org> |
11317 | ||
11318 | * Makefile.in (SFILES): Add gdbarch-selftests.c. | |
11319 | (COMMON_OBS): Add gdbarch-selftests.o. | |
11320 | * frame.c [GDB_SELF_TESTS] (create_new_frame): New function. | |
11321 | * frame.h [GDB_SELF_TESTS] (create_new_frame): Declare. | |
11322 | * gdbarch-selftests.c: New file. | |
11323 | * regcache.h (regcache) <~regcache>: Mark it virtual if | |
11324 | GDB_SELF_TEST. | |
11325 | <raw_write>: Likewise. | |
11326 | ||
e521e87e YQ |
11327 | 2017-05-24 Yao Qi <yao.qi@linaro.org> |
11328 | ||
11329 | * regcache.c (current_regcache): Change it to | |
11330 | regcache::current_regcache. | |
11331 | (regcache_observer_target_changed): Update. | |
11332 | (regcache_thread_ptid_changed): Make it a regcache static | |
11333 | method. | |
11334 | (regcache_thread_ptid_changed): Update. | |
11335 | (class regcache_access): New. | |
11336 | (current_regcache_test): Update. | |
11337 | (_initialize_regcache): Update. | |
11338 | * regcache.h: Include forward_list. | |
11339 | (regcache): Declare regcache_thread_ptid_changed and declare | |
11340 | registers_changed_ptid as friend. | |
11341 | ||
d8e07dda YQ |
11342 | 2017-05-24 Yao Qi <yao.qi@linaro.org> |
11343 | ||
11344 | * i387-tdep.c (i387_register_to_value): Use register_size | |
11345 | instead of TYPE_LENGTH. | |
11346 | * m68k-tdep.c (m68k_register_to_value): Likewise. | |
11347 | ||
8c8f9122 YQ |
11348 | 2017-05-24 Yao Qi <yao.qi@linaro.org> |
11349 | ||
11350 | * i387-tdep.c (i387_convert_register_p): Return false if type | |
11351 | code isn't TYPE_CODE_FLT. | |
11352 | ||
68fce50f YQ |
11353 | 2017-05-24 Yao Qi <yao.qi@linaro.org> |
11354 | ||
11355 | * alpha-tdep.c (alpha_convert_register_p): Return true if type | |
11356 | length is 4. | |
11357 | (alpha_register_to_value): Remove type length check. | |
11358 | (alpha_value_to_register): Likewise. | |
11359 | ||
88954b49 YQ |
11360 | 2017-05-24 Yao Qi <yao.qi@linaro.org> |
11361 | ||
11362 | * ia64-tdep.c (ia64_convert_register_p): Check type's code is | |
11363 | TYPE_CODE_FLT. | |
11364 | ||
e3ec9b69 YQ |
11365 | 2017-05-24 Yao Qi <yao.qi@linaro.org> |
11366 | ||
11367 | * m68k-tdep.c (m68k_convert_register_p): Check type's code is | |
11368 | TYPE_CODE_FLT or not. | |
11369 | ||
cdd238da YQ |
11370 | 2017-05-24 Yao Qi <yao.qi@linaro.org> |
11371 | ||
11372 | * alpha-tdep.c (alpha_gdbarch_init): Use XCNEW instead of XNEW. | |
11373 | * avr-tdep.c (avr_gdbarch_init): Likewise. | |
11374 | * bfin-tdep.c (bfin_gdbarch_init): Likewise. | |
11375 | * cris-tdep.c (cris_gdbarch_init): Likewise. | |
11376 | * ft32-tdep.c (ft32_gdbarch_init): Likewise. | |
11377 | * lm32-tdep.c (lm32_gdbarch_init): Likewise. | |
11378 | * m32r-tdep.c (m32r_gdbarch_init): Likewise. | |
11379 | * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise. | |
11380 | * mep-tdep.c (mep_gdbarch_init): Likewise. | |
11381 | * microblaze-tdep.c (microblaze_gdbarch_init): Likewise. | |
11382 | * mips-tdep.c (mips_gdbarch_init): Likewise. | |
11383 | * mn10300-tdep.c (mn10300_gdbarch_init): Likewise. | |
11384 | * moxie-tdep.c (moxie_gdbarch_init): Likewise. | |
11385 | * msp430-tdep.c (msp430_gdbarch_init): Likewise. | |
11386 | * sh64-tdep.c (sh64_gdbarch_init): Likewise. | |
11387 | * v850-tdep.c (v850_gdbarch_init): Likewise. | |
11388 | ||
7a3929c4 YQ |
11389 | 2017-05-24 Yao Qi <yao.qi@linaro.org> |
11390 | ||
11391 | * selftest-arch.c (tests_with_arch): Call registers_changed | |
11392 | and reinit_frame_cache. | |
11393 | * selftest.c (run_self_tests): Likewise. | |
11394 | ||
f4985dba YQ |
11395 | 2017-05-24 Yao Qi <yao.qi@linaro.org> |
11396 | ||
11397 | * rs6000-tdep.c (gdb_print_insn_powerpc): Remove. | |
11398 | (rs6000_gdbarch_init): Don't call set_gdbarch_print_insn. | |
11399 | ||
ab20fa4a YQ |
11400 | 2017-05-24 Yao Qi <yao.qi@linaro.org> |
11401 | ||
11402 | * rl78-tdep.c (rl78_gdbarch_init): Don't call | |
11403 | set_gdbarch_print_insn. | |
11404 | ||
f532ab94 YQ |
11405 | 2017-05-24 Yao Qi <yao.qi@linaro.org> |
11406 | ||
11407 | * h8300-tdep.c (h8300_gdbarch_init): Don't call | |
11408 | set_gdbarch_print_insn. | |
11409 | ||
39503f82 YQ |
11410 | 2017-05-24 Yao Qi <yao.qi@linaro.org> |
11411 | ||
11412 | * alpha-tdep.c (alpha_gdbarch_init): Don't call | |
11413 | set_gdbarch_print_insn. | |
11414 | * arc-tdep.c (arc_gdbarch_init): Likewise. | |
11415 | * arch-utils.c: include dis-asm.h. | |
11416 | (default_print_insn): New function. | |
11417 | * arch-utils.h (default_print_insn): Declare. | |
11418 | * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_print_insn. | |
11419 | * bfin-tdep.c (bfin_gdbarch_init): Likewise. | |
11420 | * cris-tdep.c (cris_delayed_get_disassembler): Remove. | |
11421 | (cris_gdbarch_init): Don't call set_gdbarch_print_insn. | |
11422 | * frv-tdep.c (frv_gdbarch_init): Likewise. | |
11423 | * ft32-tdep.c (ft32_gdbarch_init): Likewise. | |
11424 | * gdbarch.sh (print_insn): Use default_print_insn. | |
11425 | * gdbarch.c: Regenerated. | |
11426 | * hppa-tdep.c (hppa_gdbarch_init): Likewise. | |
11427 | * iq2000-tdep.c (iq2000_gdbarch_init): Likewise. | |
11428 | * lm32-tdep.c (lm32_gdbarch_init): Likewise. | |
11429 | * m32c-tdep.c (m32c_gdbarch_init): Likewise. | |
11430 | * m32r-tdep.c (m32r_gdbarch_init): Likewise. | |
11431 | * m68hc11-tdep.c (gdb_print_insn_m68hc11): Remove. | |
11432 | (m68hc11_gdbarch_init): Don't call set_gdbarch_print_insn. | |
11433 | * m68k-tdep.c (m68k_gdbarch_init): Likewise. | |
11434 | * m88k-tdep.c (m88k_gdbarch_init): Likewise. | |
11435 | * microblaze-tdep.c (microblaze_gdbarch_init): Likewise. | |
11436 | * mn10300-tdep.c (mn10300_gdbarch_init): Likewise. | |
11437 | * moxie-tdep.c (moxie_gdbarch_init): Likewise. | |
11438 | * msp430-tdep.c (msp430_gdbarch_init): Likewise. | |
11439 | * mt-tdep.c (mt_gdbarch_init): Likewise. | |
11440 | * nds32-tdep.c (nds32_gdbarch_init): Likewise. | |
11441 | * nios2-tdep.c (nios2_print_insn): Remove. | |
11442 | (nios2_gdbarch_init): Don't call set_gdbarch_print_insn. | |
11443 | * rx-tdep.c (rx_gdbarch_init): Likewise. | |
11444 | * s390-linux-tdep.c (s390_gdbarch_init): Likewise. | |
11445 | * score-tdep.c (score_print_insn): Remove. | |
11446 | (score_gdbarch_init): Don't call set_gdbarch_print_insn. | |
11447 | * sh-tdep.c (sh_gdbarch_init): Likewise. | |
11448 | * sh64-tdep.c (sh64_gdbarch_init): Likewise. | |
11449 | * sparc-tdep.c (sparc32_gdbarch_init): Likewise. | |
11450 | * tic6x-tdep.c (tic6x_print_insn): Remove. | |
11451 | (tic6x_gdbarch_init): Don't call set_gdbarch_print_insn. | |
11452 | * tilegx-tdep.c (tilegx_gdbarch_init): Likewise. | |
11453 | * v850-tdep.c (v850_gdbarch_init): Likewise. | |
11454 | * vax-tdep.c (vax_gdbarch_init): Likewise. | |
11455 | * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise. | |
11456 | * xtensa-tdep.c (xtensa_gdbarch_init): Likewise. | |
11457 | ||
f7241d4f JB |
11458 | 2017-05-23 John Baldwin <jhb@FreeBSD.org> |
11459 | ||
11460 | * mips-fbsd-tdep.c (MIPS_PC_REGNUM): Remove. | |
11461 | (MIPS_FP0_REGNUM): Remove. | |
11462 | (MIPS_FSR_REGNUM): Remove. | |
11463 | (mips_fbsd_supply_fpregs): Use mips_regnum. | |
11464 | (mips_fbsd_supply_gregs): Likewise. | |
11465 | (mips_fbsd_collect_fpregs): Likewise. | |
11466 | (mips_fbsd_collect_gregs): Likewise. | |
11467 | ||
d489d81d JB |
11468 | 2017-05-23 John Baldwin <jhb@FreeBSD.org> |
11469 | ||
11470 | * mips-fbsd-nat.c (getregs_supplies): Fix upper bound comparison. | |
11471 | (getpfpregs_supplies): New function. | |
11472 | (mips_fbsd_fetch_inferior_registers): Remove early exit and use | |
11473 | getfpregs_supplies. | |
11474 | (mips_fbsd_store_inferior_registers): Likewise. | |
11475 | ||
e11b3cdc PA |
11476 | 2017-05-22 Pedro Alves <palves@redhat.com> |
11477 | ||
11478 | * MAINTAINERS (Host/Native): Add John Baldwin as FreeBSD | |
11479 | maintainer. | |
11480 | ||
0f068fb5 AH |
11481 | 2017-05-22 Alan Hayward <alan.hayward@arm.com> |
11482 | ||
11483 | * ppc-linux-nat.c (fetch_register): Use PPC_MAX_REGISTER_SIZE. | |
11484 | (store_register): Likewise. | |
11485 | * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Likewise. | |
11486 | (get_decimal_float_return_value): Likewise. | |
11487 | (do_ppc_sysv_return_value): Likewise. | |
11488 | (ppc64_sysv_abi_push_integer): Likewise. | |
11489 | (ppc64_sysv_abi_push_freg): Likewise. | |
11490 | (ppc64_sysv_abi_return_value_base): Likewise. | |
11491 | (ppc64_sysv_abi_return_value): Likewise. | |
11492 | * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise. | |
11493 | * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise. | |
11494 | * rs6000-nat.c: Likewise. | |
11495 | * rs6000-tdep.c (rs6000_register_to_value): Likewise. | |
11496 | (rs6000_value_to_register): Likewise. | |
11497 | * ppc-tdep.h (PPC_MAX_REGISTER_SIZE): Add. | |
11498 | ||
e6cf65f2 TT |
11499 | 2017-05-21 Tom Tromey <tom@tromey.com> |
11500 | ||
11501 | PR rust/21466: | |
11502 | * rust-lang.c (rust_print_type) <TYPE_CODE_ARRAY>: Print unsized | |
11503 | arrays as "[T]", not "[T; ]". | |
11504 | ||
43cc5389 TT |
11505 | 2017-05-19 Tom Tromey <tom@tromey.com> |
11506 | ||
11507 | PR rust/21484: | |
11508 | * rust-lang.c (exp_descriptor_rust): New function. | |
11509 | (rust_language_defn): Use it. | |
11510 | * p-lang.c (pascal_language_defn): Update. | |
11511 | * opencl-lang.c (opencl_language_defn): Update. | |
11512 | * objc-lang.c (objc_language_defn): Update. | |
11513 | * m2-lang.c (m2_language_defn): Update. | |
11514 | * language.h (struct language_defn) | |
11515 | <la_watch_location_expression>: New member. | |
11516 | * language.c (unknown_language_defn, auto_language_defn) | |
11517 | (local_language_defn): Update. | |
11518 | * go-lang.c (go_language_defn): Update. | |
11519 | * f-lang.c (f_language_defn): Update. | |
11520 | * d-lang.c (d_language_defn): Update. | |
11521 | * c-lang.h (c_watch_location_expression): Declare. | |
11522 | * c-lang.c (c_watch_location_expression): New function. | |
11523 | (c_language_defn, cplus_language_defn, asm_language_defn) | |
11524 | (minimal_language_defn): Use it. | |
11525 | * breakpoint.c (watch_command_1): Call | |
11526 | la_watch_location_expression. | |
11527 | * ada-lang.c (ada_language_defn): Update. | |
11528 | ||
7a6e7fcc RO |
11529 | 2017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
11530 | ||
6e7e1744 RO |
11531 | PR tui/21482 |
11532 | * gdb_curses.h (NOMACROS): Define. | |
11533 | (NCURSES_NOMACROS): Define. | |
11534 | ||
11535 | 2017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | |
11536 | ||
11537 | PR tui/21482 | |
7a6e7fcc RO |
11538 | * tui/tui-windata.c (tui_erase_data_content): Cast last mvwaddstr |
11539 | arg to char *. | |
11540 | * tui/tui-wingeneral.c (box_win): Likewise. | |
11541 | * tui/tui-winsource.c (tui_erase_source_content): Likewise. | |
11542 | (tui_show_source_line): Likewise. | |
11543 | (tui_show_exec_info_content): Likewise. | |
11544 | ||
1933fd8e VM |
11545 | 2017-05-19 Vladimir Mezentsev <vladimir.mezentsev@oracle.com> |
11546 | ||
11547 | * sparc-tdep.c (sparc_structure_return_p) | |
11548 | (sparc_arg_on_registers_p): New functions. | |
11549 | (sparc32_store_arguments): Use them. | |
11550 | * sparc64-tdep.c (sparc64_16_byte_align_p) | |
11551 | (sparc64_store_floating_fields, sparc64_extract_floating_fields): | |
11552 | Handle TYPE_CODE_ARRAY. | |
11553 | ||
21873064 YQ |
11554 | 2017-05-17 Yao Qi <yao.qi@linaro.org> |
11555 | ||
11556 | * cli/cli-decode.c (add_alias_cmd): New function. | |
11557 | * command.h (add_alias_cmd): Declare. | |
11558 | * infcmd.c (_initialize_infcmd): Don't call add_com_alias, | |
11559 | instead call add_alias_cmd. | |
11560 | ||
2b351b19 PA |
11561 | 2017-05-17 Pedro Alves <palves@redhat.com> |
11562 | ||
11563 | * Makefile.in (nat_extra_makefile_frag): Rename to ... | |
11564 | (nat_makefile_frag): ... this. All references updated. | |
11565 | * configure.ac: Likewise. | |
11566 | * configure.nat: Likewise. Enhance comments. | |
11567 | * configure: Regenerate. | |
11568 | ||
5f2ad7a3 RO |
11569 | 2017-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
11570 | ||
11571 | * procfs.c (procfs_create_inferior): Change prototype to match | |
11572 | definition. | |
11573 | ||
adf3dde5 EZ |
11574 | 2017-05-13 Eli Zaretskii <eliz@gnu.org> |
11575 | ||
11576 | * tui/tui.c (tui_enable): Cast "unknown" to 'char *' to avoid a | |
11577 | C++ compiler warning. | |
11578 | ||
6830f270 TT |
11579 | 2017-05-12 Tom Tromey <tom@tromey.com> |
11580 | ||
11581 | PR rust/21483: | |
11582 | * rust-lang.c (rust_evaluate_subexp) <STRUCTOP_STRUCT>: Don't | |
11583 | recurse, just call value_struct_elt directly. | |
11584 | ||
68f2f2e3 TT |
11585 | 2017-05-12 Tom Tromey <tom@tromey.com> |
11586 | ||
11587 | * rust-lang.c (rust_dump_subexp_body) <STRUCTOP_ANONYMOUS, | |
11588 | OP_RUST_ARRAY>: Fix. | |
11589 | ||
256afbc2 TT |
11590 | 2017-05-12 Tom Tromey <tom@tromey.com> |
11591 | ||
11592 | * rust-lang.c (rust_print_subexp): Replace "return" with "break". | |
11593 | ||
94bb8dfe YQ |
11594 | 2017-05-09 Yao Qi <yao.qi@linaro.org> |
11595 | ||
11596 | * regcache.c: Include <forward_list>. | |
11597 | (struct regcache_list): Remove. | |
11598 | (current_regcache): Update. | |
11599 | (get_thread_arch_aspace_regcache): Update for std::forward_list. | |
11600 | (regcache_thread_ptid_changed): Likewise. | |
11601 | (registers_changed_ptid): Likewise. | |
11602 | (current_regcache_size): Likewise. | |
11603 | ||
8248946c YQ |
11604 | 2017-05-09 Yao Qi <yao.qi@linaro.org> |
11605 | ||
11606 | * regcache.c [GDB_SELF_TEST]: Include selftest.h. | |
11607 | (current_regcache_size): New function. | |
11608 | (current_regcache_test): New function. | |
11609 | (_initialize_regcache) [GDB_SELF_TEST]: Register the unit test. | |
11610 | ||
313c5961 AH |
11611 | 2017-05-08 Alan Hayward <alan.hayward@arm.com> |
11612 | ||
11613 | * mips-tdep.c (mips_o32_return_value): Remove unused buffer. | |
11614 | (print_gp_register_row): Use get_frame_register_value. | |
11615 | ||
27bfc1d1 AH |
11616 | 2017-05-08 Alan Hayward <alan.hayward@arm.com> |
11617 | ||
11618 | * mips-linux-tdep.c (mips_supply_gregset): Use raw_supply_zeroed. | |
11619 | (mips_supply_fpregset): Likewise. | |
11620 | (mips64_supply_gregset): Likewise. | |
11621 | ||
146e6c5c AH |
11622 | 2017-05-08 Alan Hayward <alan.hayward@arm.com> |
11623 | ||
11624 | * mn10300-linux-tdep.c (am33_supply_gregset_method): Use | |
11625 | regcache->raw_supply_zeroed. | |
11626 | ||
e50f25ec SDJ |
11627 | 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com> |
11628 | ||
11629 | * configure.nat: Rearrange 'case' statements to match | |
11630 | host before cpu. | |
11631 | ||
21ea5acd SDJ |
11632 | 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com> |
11633 | ||
11634 | * Makefile.in: Remove "@host_makefile_frag@". Add variables | |
11635 | NAT_FILE, NATDEPFILES, NAT_CDEPS, LOADLIBES, MH_CFLAGS, XM_CLIBS, | |
11636 | NAT_GENERATED_FILES, HAVE_NATIVE_GCORE_HOST. Add | |
11637 | "@nat_extra_makefile_frag@". | |
11638 | (Makefile): Remove dependency on "@frags@". | |
11639 | ($(GNULIB_BUILDDIR)/Makefile): Likewise. | |
11640 | (data-directory/Makefile): Likewise. | |
11641 | * config/aarch64/linux.mh: Deleted; moved contents to | |
11642 | "gdb/configure.nat". | |
11643 | * config/alpha/alpha-linux.mh: Likewise. | |
11644 | * config/alpha/nbsd.mh: Likewise. | |
11645 | * config/arm/linux.mh: Likewise. | |
11646 | * config/arm/nbsdelf.mh: Likewise. | |
11647 | * config/i386/cygwin.mh: Likewise. | |
11648 | * config/i386/cygwin64.mh: Likewise. | |
11649 | * config/i386/darwin.mh: Likewise. | |
11650 | * config/i386/fbsd.mh: Likewise. | |
11651 | * config/i386/fbsd64.mh: Likewise. | |
11652 | * config/i386/go32.mh: Likewise. | |
11653 | * config/i386/i386gnu.mh: Likewise. | |
11654 | * config/i386/i386sol2.mh: Likewise. | |
11655 | * config/i386/linux.mh: Likewise. | |
11656 | * config/i386/linux64.mh: Likewise. | |
11657 | * config/i386/mingw.mh: Likewise. | |
11658 | * config/i386/mingw64.mh: Likewise. | |
11659 | * config/i386/nbsd64.mh: Likewise. | |
11660 | * config/i386/nbsdelf.mh: Likewise. | |
11661 | * config/i386/nto.mh: Likewise. | |
11662 | * config/i386/obsd.mh: Likewise. | |
11663 | * config/i386/obsd64.mh: Likewise. | |
11664 | * config/i386/sol2-64.mh: Likewise. | |
11665 | * config/ia64/linux.mh: Likewise. | |
11666 | * config/m32r/linux.mh: Likewise. | |
11667 | * config/m68k/linux.mh: Likewise. | |
11668 | * config/m68k/nbsdelf.mh: Likewise. | |
11669 | * config/m68k/obsd.mh: Likewise. | |
11670 | * config/m88k/obsd.mh: Likewise. | |
11671 | * config/mips/fbsd.mh: Likewise. | |
11672 | * config/mips/linux.mh: Likewise. | |
11673 | * config/mips/nbsd.mh: Likewise. | |
11674 | * config/mips/obsd64.mh: Likewise. | |
11675 | * config/pa/linux.mh: Likewise. | |
11676 | * config/pa/nbsd.mh: Likewise. | |
11677 | * config/pa/obsd.mh: Likewise. | |
11678 | * config/powerpc/aix.mh: Likewise. | |
11679 | * config/powerpc/fbsd.mh: Likewise. | |
11680 | * config/powerpc/linux.mh: Likewise. | |
11681 | * config/powerpc/nbsd.mh: Likewise. | |
11682 | * config/powerpc/obsd.mh: Likewise. | |
11683 | * config/powerpc/ppc64-linux.mh: Likewise. | |
11684 | * config/powerpc/spu-linux.mh: Likewise. | |
11685 | * config/s390/linux.mh: Likewise. | |
11686 | * config/sh/nbsd.mh: Likewise. | |
11687 | * config/sparc/fbsd.mh: Likewise. | |
11688 | * config/sparc/linux.mh: Likewise. | |
11689 | * config/sparc/linux64.mh: Likewise. | |
11690 | * config/sparc/nbsd64.mh: Likewise. | |
11691 | * config/sparc/nbsdelf.mh: Likewise. | |
11692 | * config/sparc/obsd64.mh: Likewise. | |
11693 | * config/sparc/sol2.mh: Likewise. | |
11694 | * config/tilegx/linux.mh: Likewise. | |
11695 | * config/vax/nbsdelf.mh: Likewise. | |
11696 | * config/vax/obsd.mh: Likewise. | |
11697 | * config/xtensa/linux.mh: Likewise. | |
11698 | * config/i386/i386gnu.mn: New file, with excerpts from | |
11699 | "config/i386/i386gnu.mh". | |
11700 | * configure: Regenerate. | |
11701 | * configure.ac: Rewrite code to use "gdb/configure.nat" instead of | |
11702 | *.mh files under "gdb/config". | |
11703 | * configure.nat: New file, with contents from the | |
11704 | "gdb/config/*/*.mh" files. | |
11705 | ||
7ed1acaf TW |
11706 | 2017-05-05 Tim Wiederhake <tim.wiederhake@intel.com> |
11707 | ||
11708 | * btrace.c (btrace_clear): Free insn vector. | |
11709 | ||
e13cb306 PA |
11710 | 2017-05-05 Pedro Alves <palves@redhat.com> |
11711 | ||
11712 | * warning.m4 (build_warnings): Add -Wno-error=maybe-uninitialized. | |
11713 | * configure: Regenerate. | |
11714 | ||
5ed8105e PA |
11715 | 2017-05-04 Pedro Alves <palves@redhat.com> |
11716 | ||
11717 | * Makefile.in (SFILES): Add progspace-and-thread.c. | |
11718 | (HFILES_NO_SRCDIR): Add progspace-and-thread.h. | |
11719 | (COMMON_OBS): Add progspace-and-thread.o. | |
11720 | * breakpoint.c: Include "progspace-and-thread.h". | |
11721 | (update_inserted_breakpoint_locations) | |
11722 | (insert_breakpoint_locations, create_longjmp_master_breakpoint): | |
11723 | Use scoped_restore_current_pspace_and_thread. | |
11724 | (create_std_terminate_master_breakpoint): Use | |
11725 | scoped_restore_current_program_space. | |
11726 | (remove_breakpoint): Use scoped_restore_current_pspace_and_thread. | |
11727 | (print_breakpoint_location): Use | |
11728 | scoped_restore_current_program_space. | |
11729 | (bp_loc_is_permanent): Use | |
11730 | scoped_restore_current_pspace_and_thread. | |
11731 | (resolve_sal_pc): Use scoped_restore_current_pspace_and_thread. | |
11732 | (download_tracepoint_locations): Use | |
11733 | scoped_restore_current_pspace_and_thread. | |
11734 | (breakpoint_re_set): Use scoped_restore_current_pspace_and_thread. | |
11735 | * exec.c (exec_close_1): Use scoped_restore_current_program_space. | |
11736 | (enum step_over_calls_kind): Moved from inferior.h. | |
11737 | (class scoped_restore_current_thread): New class. | |
11738 | * gdbthread.h (make_cleanup_restore_current_thread): Delete | |
11739 | declaration. | |
11740 | (scoped_restore_current_thread): New class. | |
11741 | * infcmd.c: Include "common/gdb_optional.h". | |
11742 | (continue_1, proceed_after_attach): Use | |
11743 | scoped_restore_current_thread. | |
11744 | (notice_new_inferior): Use scoped_restore_current_thread. | |
11745 | * inferior.c: Include "progspace-and-thread.h". | |
11746 | (restore_inferior, save_current_inferior): Delete. | |
11747 | (add_inferior_command, clone_inferior_command): Use | |
11748 | scoped_restore_current_pspace_and_thread. | |
11749 | * inferior.h (scoped_restore_current_inferior): New class. | |
11750 | * infrun.c: Include "progspace-and-thread.h" and | |
11751 | "common/gdb_optional.h". | |
11752 | (follow_fork_inferior): Use | |
11753 | scoped_restore_current_pspace_and_thread. | |
11754 | (scoped_restore_exited_inferior): New class. | |
11755 | (handle_vfork_child_exec_or_exit): Use | |
11756 | scoped_restore_exited_inferior, | |
11757 | scoped_restore_current_pspace_and_thread, | |
11758 | scoped_restore_current_thread and scoped_restore. | |
11759 | (fetch_inferior_event): Use scoped_restore_current_thread. | |
11760 | * linespec.c (decode_line_full, decode_line_1): Use | |
11761 | scoped_restore_current_program_space. | |
11762 | * mi/mi-main.c: Include "progspace-and-thread.h". | |
11763 | (exec_continue): Use scoped_restore_current_thread. | |
11764 | (mi_cmd_exec_run): Use scoped_restore_current_pspace_and_thread. | |
11765 | (mi_cmd_trace_frame_collected): Use scoped_restore_current_thread. | |
11766 | * proc-service.c (ps_pglobal_lookup): Use | |
11767 | scoped_restore_current_program_space. | |
11768 | * progspace-and-thread.c: New file. | |
11769 | * progspace-and-thread.h: New file. | |
11770 | * progspace.c (release_program_space, clone_program_space): Use | |
11771 | scoped_restore_current_program_space. | |
11772 | (restore_program_space, save_current_program_space) | |
11773 | (save_current_space_and_thread): Delete. | |
11774 | (switch_to_program_space_and_thread): Moved to | |
11775 | progspace-and-thread.c. | |
11776 | * progspace.h (save_current_program_space) | |
11777 | (save_current_space_and_thread): Delete declarations. | |
11778 | (scoped_restore_current_program_space): New class. | |
11779 | * remote.c (remote_btrace_maybe_reopen): Use | |
11780 | scoped_restore_current_thread. | |
11781 | * symtab.c: Include "progspace-and-thread.h". | |
11782 | (skip_prologue_sal): Use scoped_restore_current_pspace_and_thread. | |
11783 | * thread.c (print_thread_info_1): Use | |
11784 | scoped_restore_current_thread. | |
11785 | (struct current_thread_cleanup): Delete. | |
11786 | (do_restore_current_thread_cleanup) | |
11787 | (restore_current_thread_cleanup_dtor): Rename/convert both to ... | |
11788 | (scoped_restore_current_thread::~scoped_restore_current_thread): | |
11789 | ... this new dtor. | |
11790 | (make_cleanup_restore_current_thread): Rename/convert to ... | |
11791 | (scoped_restore_current_thread::scoped_restore_current_thread): | |
11792 | ... this new ctor. | |
11793 | (thread_apply_all_command): Use scoped_restore_current_thread. | |
11794 | (thread_apply_command): Use scoped_restore_current_thread. | |
11795 | * tracepoint.c (tdump_command): Use scoped_restore_current_thread. | |
11796 | * varobj.c (value_of_root_1): Use scoped_restore_current_thread. | |
11797 | ||
f6223dbb PA |
11798 | 2017-05-04 Pedro Alves <palves@redhat.com> |
11799 | ||
11800 | * thread.c (make_cleanup_restore_current_thread): Move | |
11801 | find_thread_ptid call before the is_stopped call. Assert that the | |
11802 | thread is found. Replace is_stopped call by checking the thread's | |
11803 | state directly. Remove unnecessary NULL-thread check. | |
11804 | ||
3c3ae77e PA |
11805 | 2017-05-04 Pedro Alves <palves@redhat.com> |
11806 | ||
11807 | * corelow.c (thread_section_name): New class. | |
11808 | (get_core_register_section, get_core_siginfo): Use it. | |
11809 | ||
45eba0ab AA |
11810 | 2017-05-04 Andreas Arnez <arnez@linux.vnet.ibm.com> |
11811 | ||
11812 | * corelow.c (sniff_core_bfd): Remove extra semicolon. | |
11813 | (get_core_register_section): Remove xfree of NULL pointer. | |
11814 | ||
f81fdd35 AH |
11815 | 2017-05-03 Alan Hayward <alan.hayward@arm.com> |
11816 | ||
11817 | * frv-linux-tdep.c (frv_linux_supply_gregset): Use raw_supply_zeroed. | |
11818 | * regcache.c (regcache::raw_supply_zeroed): New function. | |
11819 | * regcache.h (regcache::raw_supply_zeroed): New declaration. | |
11820 | ||
35837774 SM |
11821 | 2017-05-03 Simon Marchi <simon.marchi@ericsson.com> |
11822 | ||
11823 | * gdbarch.sh: Remove commented out definition of | |
11824 | TARGET_CHAR_BIT. | |
11825 | * gdbarch.h: Re-generate. | |
11826 | ||
c94fee56 SDJ |
11827 | 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com> |
11828 | ||
11829 | * configure: Regenerate. | |
11830 | ||
d17f7b36 SM |
11831 | 2017-05-02 Simon Marchi <simon.marchi@ericsson.com> |
11832 | ||
11833 | * solib-target.c (solib_target_relocate_section_addresses): | |
11834 | Remove num_section_bases, num_bases, segment_bases variables. | |
11835 | ||
b560ebd6 SM |
11836 | 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca> |
11837 | ||
11838 | * common/gdb_vecs.h (DEF_VEC_I (CORE_ADDR)): Remove. | |
11839 | ||
f2f46dfc SM |
11840 | 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca> |
11841 | ||
11842 | * solib-target.c: Include <vector> | |
11843 | (struct lm_info_target) <~lm_info_target>: Remove. | |
11844 | <segment_bases, section_bases>: Change type to | |
11845 | std::vector<CORE_ADDR>. | |
11846 | (library_list_start_segment, library_list_start_section, | |
11847 | library_list_end_library, | |
11848 | solib_target_relocate_section_addresses): Adjust. | |
11849 | ||
a0ff9e1a SM |
11850 | 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca> |
11851 | ||
11852 | * gdbarch.sh (software_single_step): Change return type to | |
11853 | std::vector<CORE_ADDR>. | |
11854 | * gdbarch.c, gdbarch.h: Re-generate. | |
11855 | * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw): | |
11856 | Adjust. | |
11857 | (arm_deal_with_atomic_sequence_raw): Adjust. | |
11858 | (thumb_get_next_pcs_raw): Adjust. | |
11859 | (arm_get_next_pcs_raw): Adjust. | |
11860 | (arm_get_next_pcs): Adjust. | |
11861 | * arch/arm-get-next-pcs.h (arm_get_next_pcs): Adjust. | |
11862 | * aarch64-tdep.c (aarch64_software_single_step): Adjust. | |
11863 | * alpha-tdep.c (alpha_deal_with_atomic_sequence): Adjust. | |
11864 | (alpha_software_single_step): Adjust. | |
11865 | * alpha-tdep.h (alpha_software_single_step): Adjust. | |
11866 | * arm-linux-tdep.c (arm_linux_software_single_step): Adjust. | |
11867 | * arm-tdep.c (arm_software_single_step): Adjust. | |
11868 | (arm_breakpoint_kind_from_current_state): Adjust. | |
11869 | * arm-tdep.h (arm_software_single_step): Adjust. | |
11870 | * breakpoint.c (insert_single_step_breakpoint): Adjust. | |
11871 | * cris-tdep.c (cris_software_single_step): Adjust. | |
11872 | * mips-tdep.c (mips_deal_with_atomic_sequence): Adjust. | |
11873 | (micromips_deal_with_atomic_sequence): Adjust. | |
11874 | (deal_with_atomic_sequence): Adjust. | |
11875 | (mips_software_single_step): Adjust. | |
11876 | * mips-tdep.h (mips_software_single_step): Adjust. | |
11877 | * moxie-tdep.c (moxie_software_single_step): Adjust. | |
11878 | * nios2-tdep.c (nios2_software_single_step): Adjust. | |
11879 | * ppc-tdep.h (ppc_deal_with_atomic_sequence): Adjust. | |
11880 | * rs6000-aix-tdep.c (rs6000_software_single_step): Adjust. | |
11881 | * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Adjust. | |
11882 | * s390-linux-tdep.c (s390_software_single_step): Adjust. | |
11883 | * sparc-tdep.c (sparc_software_single_step): Adjust. | |
11884 | * spu-tdep.c (spu_software_single_step): Adjust. | |
11885 | * tic6x-tdep.c (tic6x_software_single_step): Adjust. | |
11886 | ||
ea480a30 SM |
11887 | 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca> |
11888 | ||
11889 | * gdbarch.sh: Use semi-colon as field separator instead of colon. | |
11890 | * gdbarch.h: Re-generate. | |
11891 | ||
d050f7d7 TW |
11892 | 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com> |
11893 | ||
11894 | * Makefile.in (SUBDIR_PYTHON_OBS): Add py-instruction.o. | |
11895 | (SUBDIR_PYTHON_SRCS): Add py-instruction.c. | |
11896 | * python/py-instruction.c, python/py-instruction.h: New file. | |
11897 | * python/py-record.c: Add py-instruction.h include. | |
11898 | (gdbpy_initialize_record): Make gdb.Instruction a super class of | |
11899 | gdb.RecordInstruction. | |
11900 | * python/python-internal.h: Add gdbpy_initialize_instruction | |
11901 | declaration. | |
11902 | * python/python.c (do_start_initialization): Add | |
11903 | gdbpy_initialize_instruction. | |
11904 | ||
14f819c8 TW |
11905 | 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com> |
11906 | ||
11907 | * python/py-record-btrace.c (BTPY_REQUIRE_VALID_CALL, btpy_call_type): | |
11908 | Remove. | |
11909 | (btrace_func_from_recpy_func): New function. | |
11910 | (btpy_call_new, btpy_number, btpy_hash, btpy_richcompare): Remove. | |
11911 | (btpy_call_level, btpy_call_symbol, btpy_call_instructions, | |
11912 | btpy_call_up, btpy_call_prev_sibling, btpy_call_next_sibling): Rename to ... | |
11913 | (recpy_bt_func_level, recpy_bt_func_symbol, recpy_bt_func_instructions, | |
11914 | recpy_bt_func_up, recpy_bt_func_prev, recpy_bt_func_next): This. | |
11915 | Also, use new helper functions. | |
11916 | (btpy_list_item): Use new helper functions. | |
11917 | (recpy_bt_function_call_history): Use new type name. | |
11918 | (btpy_call_getset): Remove. | |
11919 | (gdbpy_initialize_btrace): Remove code to initialize | |
11920 | gdb.BtraceFunctionCall. | |
11921 | * python/py-record-btrace.h (recpy_bt_func_number, recpy_btb_func_level, | |
11922 | recpy_btb_func_symbol, recpy_bt_func_instructions, recpy_bt_func_up, | |
11923 | recpy_bt_func_prev, recpy_bt_func_next): New export. | |
11924 | * python/py-record.c (recpy_func_type): New static object. | |
11925 | (recpy_func_new, recpy_func_level, recpy_func_symbol, | |
11926 | recpy_func_instructions, recpy_func_up, recpy_func_prev, | |
11927 | recpy_func_next): New function. | |
11928 | (recpy_element_hash, recpy_element_richcompare): Updated comment. | |
11929 | (recpy_func_getset): New static object. | |
11930 | (gdbpy_initialize_record): Add code to initialize gdb.RecordInstruction. | |
11931 | * python/py-record.h (recpy_func_type, recpy_func_new): New export. | |
11932 | ||
0ed5da75 TW |
11933 | 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com> |
11934 | ||
11935 | * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN): Remove. | |
11936 | (btpy_object, btpy_insn_type, btpy_new): Remove. | |
11937 | (btpy_list_object): Use gdb.RecordInstruction type instead of | |
11938 | gdb.BtraceInstruction type. | |
11939 | (btrace_insn_from_recpy_insn): New function. | |
11940 | (btpy_insn_or_gap_new): Adjust comment. Use recpy_insn_new instead of | |
11941 | btpy_new. | |
11942 | (btpy_call_new, btpy_list_item): Do not use btpy_new anymore. | |
11943 | (btpy_number, btpy_hash, btpy_call_level, btpy_call_symbol, | |
11944 | btpy_call_instructions, btpy_call_up, btpy_call_prev_sibling, | |
11945 | btpy_call_next_sibling, btpy_richcompare): Use recpy_element_object | |
11946 | instead of btpy_object. | |
11947 | (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative, | |
11948 | btpy_insn_data, btpy_insn_decode): Rename to ... | |
11949 | (recpy_bt_insn_sal, recpy_bt_insn_pc, recpy_bt_insn_size, | |
11950 | recpy_bt_insn_is_speculative, recpy_bt_insn_data, | |
11951 | recpy_bt_insn_decode): This. Also, use new helper functions. | |
11952 | (btpy_list_position, recpy_bt_goto): Use recpy_element_object and | |
11953 | recpy_insn_type. | |
11954 | (btpy_insn_getset): Remove. | |
11955 | (gdbpy_initialize_btrace): Remove code to initialize | |
11956 | gdb.BtraceInstruction. Use recpy_element_object. | |
11957 | * python/py-record-btrace.h (recpy_bt_insn_number, recpy_bt_insn_sal, | |
11958 | recpy_bt_insn_pc, recpy_bt_insn_data, recpy_bt_insn_decoded, | |
11959 | recpy_bt_insn_size, recpy_bt_insn_is_speculative): New export. | |
11960 | * python/py-record.c (recpy_insn_type): New static object. | |
11961 | (recpy_insn_new, recpy_insn_sal, recpy_insn_pc, recpy_insn_data, | |
11962 | recpy_insn_decoded, recpy_insn_size, recpy_insn_is_speculative, | |
11963 | recpy_element_number, recpy_element_hash, recpy_element_richcompare): | |
11964 | New function. | |
11965 | (recpy_insn_getset): New static object. | |
11966 | (gdbpy_initialize_record): Initialize gdb.RecordInstruction. | |
11967 | * python/py-record.h (recpy_element_object): New typedef. | |
11968 | (recpy_insn_type, recpy_insn_new): New export. | |
11969 | ||
913aeadd TW |
11970 | 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com> |
11971 | ||
11972 | * py-record-btrace.c (btpy_insn_new): Removed. | |
11973 | (btpy_insn_or_gap_new): New function. | |
11974 | (btpy_insn_error): Removed. | |
11975 | (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative, | |
11976 | btpy_insn_data, btpy_insn_decode): Remove code path for gaps. | |
11977 | (recpy_bt_replay_position, recpy_bt_begin, recpy_bt_end): Call | |
11978 | btpy_insn_or_gap_new instead of btpy_insn_new. | |
11979 | (btpy_insn_getset): Remove btpy_insn_error. | |
11980 | * py-record.c (recpy_gap_type): New static object. | |
11981 | (recpy_gap_object): New typedef. | |
11982 | (recpy_gap_new, recpy_gap_number, recpy_gap_reason_code, | |
11983 | recpy_gap_reason_string): New function. | |
11984 | (recpy_gap_getset): New static object. | |
11985 | (gdbpy_initialize_record): Initialize gdb.RecordGap type. | |
11986 | * py-record.h (recpy_gap_new): New export. | |
11987 | ||
a3be24ad TW |
11988 | 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com> |
11989 | ||
11990 | * python/py-record.c (recpy_ptid): Remove. | |
11991 | (recpy_record_getset): Remove recpy_ptid. | |
11992 | ||
ae20e79a TW |
11993 | 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com> |
11994 | ||
11995 | * btrace.c (btrace_fetch): Set inferior_ptid. | |
11996 | * python/py-record-btrace.c: Add "py-record.h" include. | |
11997 | (recpy_bt_format, recpy_bt_replay_position, recpy_bt_begin, | |
11998 | recpy_bt_end, recpy_bt_instruction_history, | |
11999 | recpy_bt_function_call_history, recpy_bt_goto): Use ptid stored | |
12000 | in gdb.Record object instead of current ptid. | |
12001 | * python/py-record.c: Include new "py-record.h" file. | |
12002 | (recpy_record_object): Moved to py-record.h. | |
12003 | * python/py-record.h: New file. | |
12004 | ||
8d0050ea TW |
12005 | 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com> |
12006 | ||
12007 | * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN, | |
12008 | BTPY_REQUIRE_VALID_CALL, recpy_bt_function_call_history): Fix | |
12009 | indentation. | |
12010 | ||
3f380b50 JB |
12011 | 2017-05-01 Joel Brobecker <brobecker@adacore.com> |
12012 | ||
12013 | * MAINTAINERS: Move Daniel Jacobowitz and Mark Kettenis to | |
12014 | the past maintainers section. | |
12015 | ||
07495424 YQ |
12016 | 2017-04-28 Yao Qi <yao.qi@linaro.org> |
12017 | ||
12018 | * infcmd.c (get_return_value): Use regcache ctor, and remove | |
12019 | cleanup. | |
12020 | ||
deb1fa3e YQ |
12021 | 2017-04-28 Yao Qi <yao.qi@linaro.org> |
12022 | Pedro Alves <palves@redhat.com> | |
12023 | ||
12024 | * regcache.c (regcache::regcache): New tag dispatch ctor. | |
12025 | (do_cooked_read): Moved above. | |
12026 | (regcache_dup): Use the tag dispatch ctor.. | |
12027 | * regcache.h (regcache): Declare ctor, delete copy ctor and | |
12028 | assignment operator, remove friend regcache_dup. | |
12029 | ||
b421c83c YQ |
12030 | 2017-04-28 Yao Qi <yao.qi@linaro.org> |
12031 | ||
12032 | * regcache.c (regcache_dup): Assert !src->m_readonly_p and | |
12033 | call method save instead of regcache_cpy. | |
12034 | * regcache.h (struct regcache): Make regcache_dup a friend. | |
12035 | ||
ef79d9a3 YQ |
12036 | 2017-04-28 Yao Qi <yao.qi@linaro.org> |
12037 | ||
12038 | * regcache.c (struct regcache): Move to regcache.h | |
12039 | (regcache::arch): New method. | |
12040 | (regcache_get_ptid): Update. | |
12041 | (get_regcache_arch): Call arch method. | |
12042 | (get_regcache_aspace): Call method aspace. | |
12043 | (register_buffer): Change it to method. | |
12044 | (regcache_save): Change it to regcache::save. | |
12045 | (regcache_restore): Likewise. | |
12046 | (regcache_cpy_no_passthrough): Remove the declaration. | |
12047 | (regcache_cpy): Call methods restore and cpy_no_passthrough. | |
12048 | (regcache_cpy_no_passthrough): Change it to method | |
12049 | cpy_no_passthrough. | |
12050 | (regcache_register_status): Change it to method | |
12051 | get_register_status. | |
12052 | (regcache_invalidate): Change it to method invalidate. | |
12053 | (regcache_thread_ptid_changed): Use methods ptid and set_ptid. | |
12054 | (regcache_raw_update): Change it to method raw_update. | |
12055 | (regcache_raw_read): Likewise. | |
12056 | (regcache_raw_read_signed): Likewise. | |
12057 | (regcache_raw_read_unsigned): Likewise. | |
12058 | (regcache_raw_write_signed): Likewise. | |
12059 | (regcache_raw_write_unsigned): Likewise. | |
12060 | (regcache_cooked_read): Likewise. | |
12061 | (regcache_cooked_read_value): Likewise. | |
12062 | (regcache_cooked_read_signed): Likewise. | |
12063 | (regcache_cooked_read_unsigned): Likewise. | |
12064 | (regcache_cooked_write_signed): Likewise. | |
12065 | (regcache_cooked_write_unsigned): Likewise. | |
12066 | (regcache_raw_set_cached_value): Likewise. | |
12067 | (regcache_raw_write): Likewise. | |
12068 | (regcache_cooked_write): Likewise. | |
12069 | (regcache_xfer_part): Likewise. | |
12070 | (regcache_raw_read_part): Likewise. | |
12071 | (regcache_raw_write_part): Likewise. | |
12072 | (regcache_cooked_read_part): Likewise. | |
12073 | (regcache_cooked_write_part): Likewise. | |
12074 | (regcache_raw_supply): Likewise. | |
12075 | (regcache_raw_collect): Likewise. | |
12076 | (regcache_transfer_regset): Likewise. | |
12077 | (regcache_supply_regset): Likewise. | |
12078 | (regcache_collect_regset): Likewise. | |
12079 | (regcache_debug_print_register): Likewise. | |
12080 | (enum regcache_dump_what): Move it to regcache.h. | |
12081 | (regcache_dump): Change it to method dump. | |
12082 | * regcache.h (enum regcache_dump_what): New. | |
12083 | (class regcache): New. | |
12084 | * target.c (target_fetch_registers): Call method | |
12085 | debug_print_register. | |
12086 | (target_store_registers): Likewise. | |
12087 | ||
f8fdb78e SM |
12088 | 2017-04-28 Simon Marchi <simon.marchi@ericsson.com> |
12089 | ||
12090 | * windows-nat.c (struct lm_info_windows): Initialize field. | |
12091 | (windows_make_so): Allocate lm_info_windows with new. | |
12092 | (windows_free_so): Free lm_info_windows with delete. | |
12093 | ||
9ccbfd7b SM |
12094 | 2017-04-28 Simon Marchi <simon.marchi@ericsson.com> |
12095 | ||
12096 | * solib-darwin.c (struct lm_info_darwin): Initialize field. | |
12097 | (darwin_current_sos): Allocate lm_info_darwin with new, remove | |
12098 | cleanup. | |
12099 | (darwin_free_so): Free lm_info_darwin with delete. | |
12100 | ||
76e75227 SM |
12101 | 2017-04-28 Simon Marchi <simon.marchi@ericsson.com> |
12102 | ||
12103 | * solib-svr4.h (struct lm_info_svr4): Initialize fields. | |
12104 | <l_addr_p>: Change type to bool. | |
12105 | * solib-svr4.c (lm_info_read): Allocate lm_info_svr4 with new. | |
12106 | (svr4_free_so): Free lm_info_svr4 with delete. | |
12107 | (svr4_copy_library_list): Replace memcpy with call to copy | |
12108 | constructor. | |
12109 | (library_list_start_library, svr4_default_sos): Allocate | |
12110 | lm_info_svr4 with new. | |
12111 | ||
51046d9e SM |
12112 | 2017-04-28 Simon Marchi <simon.marchi@ericsson.com> |
12113 | ||
12114 | * solib-target.c (struct lm_info_target): Add destructor, | |
12115 | initialize fields. | |
12116 | <name>: Change type to std::string. | |
12117 | (library_list_start_library): Allocate lm_info_target with new. | |
12118 | (solib_target_free_library_list): Free lm_info_target with | |
12119 | delete. | |
12120 | (solib_target_current_sos): Adapt to std::string. | |
12121 | (solib_target_free_so): Free lm_info_target with delete. | |
12122 | ||
4023ae76 SM |
12123 | 2017-04-28 Simon Marchi <simon.marchi@ericsson.com> |
12124 | ||
12125 | * solib-frv.c (struct lm_info_frv): Add destructor, initialize | |
12126 | fields. | |
12127 | (frv_current_sos): Allocate lm_info_frv with new. | |
12128 | (frv_relocate_main_executable): Free lm_info_frv with delete, | |
12129 | allocate with new. | |
12130 | (frv_clear_solib, frv_free_so): Free lm_info_frv with delete. | |
12131 | ||
af43057b SM |
12132 | 2017-04-28 Simon Marchi <simon.marchi@ericsson.com> |
12133 | ||
12134 | * solib-frv.c (struct lm_info_frv): Fix indentation. | |
12135 | ||
b0911207 SM |
12136 | 2017-04-28 Simon Marchi <simon.marchi@ericsson.com> |
12137 | ||
12138 | * solib-dsbt.c (struct lm_info_dsbt): Add destructor, initialize | |
12139 | map field. | |
12140 | (dsbt_current_sos): Allocate lm_info_dsbt with new. | |
12141 | (dsbt_relocate_main_executable): Free lm_info_dsbt with delete | |
12142 | and allocate with new. | |
12143 | (dsbt_clear_solib, dsbt_free_so): Free lm_info_dsbt with delete. | |
12144 | ||
6c401f72 SM |
12145 | 2017-04-28 Simon Marchi <simon.marchi@ericsson.com> |
12146 | ||
12147 | * solib-aix.c (struct lm_info_aix): Initialize fields in-class. | |
12148 | <filename, member_name>: Change type to std::string. | |
12149 | (solib_aix_new_lm_info, solib_aix_xfree_lm_info): Remove. | |
12150 | (library_list_start_library): Allocate lm_info_aix with new. | |
12151 | (solib_aix_free_library_list, solib_aix_free_so): Free with delete. | |
12152 | (solib_aix_current_sos): Adapt to std::string, copy lm_info_aix | |
12153 | with copy constructor. | |
12154 | ||
d0e449a1 SM |
12155 | 2017-04-28 Simon Marchi <simon.marchi@ericsson.com> |
12156 | ||
12157 | * solist.h (struct lm_info): Remove. | |
12158 | (struct lm_info_base): New class. | |
12159 | (struct so_list) <lm_info>: Change type to lm_info_base *. | |
12160 | * nto-tdep.c (struct lm_info): Remove. | |
12161 | (lm_addr): Adjust. | |
12162 | * solib-aix.c (struct lm_info): Rename to ... | |
12163 | (struct lm_info_aix): ... this. Extend lm_info_base. | |
12164 | (lm_info_p): Rename to ... | |
12165 | (lm_info_aix_p): ... this, and adjust. | |
12166 | (solib_aix_new_lm_info, solib_aix_xfree_lm_info, | |
12167 | solib_aix_parse_libraries, library_list_start_library, | |
12168 | solib_aix_free_library_list, solib_aix_parse_libraries, | |
12169 | solib_aix_get_library_list, | |
12170 | solib_aix_relocate_section_addresses, solib_aix_free_so, | |
12171 | solib_aix_get_section_offsets, | |
12172 | solib_aix_solib_create_inferior_hook, solib_aix_current_sos): | |
12173 | Adjust. | |
12174 | (struct solib_aix_inferior_data) <library_list>: Adjust. | |
12175 | * solib-darwin.c (struct lm_info): Rename to ... | |
12176 | (struct lm_info_darwin): ... this. Extend lm_info_base. | |
12177 | (darwin_current_sos, darwin_relocate_section_addresses): Adjust. | |
12178 | * solib-dsbt.c (struct lm_info): Rename to ... | |
12179 | (struct lm_info_dsbt): ... this. Extend lm_info_base. | |
12180 | (struct dsbt_info) <main_executable_lm_info): Adjust. | |
12181 | (dsbt_current_sos, dsbt_relocate_main_executable, dsbt_free_so, | |
12182 | dsbt_relocate_section_addresses): Adjust. | |
12183 | * solib-frv.c (struct lm_info): Rename to ... | |
12184 | (struct lm_info_frv): ... this. Extend lm_info_base. | |
12185 | (main_executable_lm_info): Adjust. | |
12186 | (frv_current_sos, frv_relocate_main_executable, frv_free_so, | |
12187 | frv_relocate_section_addresses, frv_fdpic_find_global_pointer, | |
12188 | find_canonical_descriptor_in_load_object, | |
12189 | frv_fdpic_find_canonical_descriptor): Adjust. | |
12190 | * solib-svr4.c (struct lm_info): Move to solib-svr4.h, renamed | |
12191 | to lm_info_svr4. | |
12192 | (lm_info_read, lm_addr_check, svr4_keep_data_in_core, | |
12193 | svr4_clear_so, svr4_copy_library_list, | |
12194 | library_list_start_library, svr4_default_sos, svr4_read_so_list, | |
12195 | svr4_current_sos, svr4_fetch_objfile_link_map, | |
12196 | solist_update_incremental): Adjust. | |
12197 | * solib-svr4.h (struct lm_info_svr4): Move here from | |
12198 | solib-svr4.c. | |
12199 | * solib-target.c (struct lm_info): Rename to ... | |
12200 | (struct lm_info_target): ... this. Extend lm_info_base. | |
12201 | (lm_info_p): Rename to ... | |
12202 | (lm_info_target_p): ... this. | |
12203 | (solib_target_parse_libraries, library_list_start_segment, | |
12204 | library_list_start_section, library_list_start_library, | |
12205 | library_list_end_library, solib_target_free_library_list, | |
12206 | solib_target_current_sos, solib_target_free_so, | |
12207 | solib_target_relocate_section_addresses): Adjust. | |
12208 | * windows-nat.c (struct lm_info): Rename to ... | |
12209 | (struct lm_info_windows): ... this. Extend lm_info_base. | |
12210 | (windows_make_so, handle_load_dll, handle_unload_dll, | |
12211 | windows_xfer_shared_libraries): Adjust. | |
12212 | ||
434a4023 SM |
12213 | 2017-04-28 Simon Marchi <simon.marchi@ericsson.com> |
12214 | ||
12215 | * solib-darwin.c (struct darwin_so_list): Remove. | |
12216 | (darwin_current_sos): Allocate an so_list object instead of a | |
12217 | darwin_so_list, separately allocate an lm_info object. | |
12218 | (darwin_free_so): Free lm_info. | |
12219 | ||
428544e8 JB |
12220 | 2017-04-28 John Baldwin <jhb@FreeBSD.org> |
12221 | ||
12222 | * mips-tdep.c (print_gp_register_row): Replace printf_filtered | |
12223 | with fprintf_filtered. | |
12224 | ||
4621115f YQ |
12225 | 2017-04-28 Yao Qi <yao.qi@linaro.org> |
12226 | ||
12227 | * regcache.c (regcache::regcache): New function. | |
12228 | (regcache::~regcache): New function. | |
12229 | (regcache_xmalloc_1): Remove. | |
12230 | (regcache_xmalloc): Call new regcache. | |
12231 | (regcache_xfree): Call delete regcache. | |
12232 | (get_thread_arch_aspace_regcache): Call new regcache. | |
12233 | ||
339053c2 YQ |
12234 | 2017-04-28 Yao Qi <yao.qi@linaro.org> |
12235 | ||
12236 | * mips-linux-nat.c (mips_linux_new_thread): Use ptid method | |
12237 | lwp instead of ptid_get_lwp. | |
12238 | ||
7974a605 YQ |
12239 | 2017-04-28 Yao Qi <yao.qi@linaro.org> |
12240 | ||
12241 | * mips-linux-nat.c (mips_linux_new_thread): Get lwpid from | |
12242 | lwp_info instead of getting from inferior_ptid. | |
12243 | ||
e15c3eb4 KS |
12244 | 2017-04-27 Keith Seitz <keiths@redhat.com> |
12245 | ||
12246 | * gdbtypes.c (LVALUE_REFERENCE_TO_RVALUE_BINDING_BADNESS) | |
12247 | DIFFERENT_REFERENCE_TYPE_BADNESS): Remove. | |
12248 | (CV_CONVERSION_BADNESS): Define. | |
12249 | (rank_one_type): Remove overly restrictive rvalue reference | |
12250 | rank checks. | |
12251 | Add cv-qualifier checks and subranks for type equality. | |
12252 | * gdbtypes.h (REFERENCE_CONVERSION_RVALUE, | |
12253 | REFERENCE_CONVERSION_CONST_LVALUE, CV_CONVERSION_BADNESS, | |
12254 | CV_CONVERSION_CONST, CV_CONVERSION_VOLATILE): Declare. | |
12255 | ||
72bc1d24 SM |
12256 | 2017-04-27 Simon Marchi <simon.marchi@ericsson.com> |
12257 | ||
12258 | * python/py-inferior.c (inferior_to_inferior_object): Increment reference | |
12259 | count when creating the object. | |
12260 | ||
55bcecda UW |
12261 | 2017-04-27 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com> |
12262 | Ulrich Weigand <uweigand@de.ibm.com> | |
12263 | ||
12264 | * xcoffread.c (read_xcoff_symtab): Read correct function auxiliary | |
12265 | entry if xlc -qfuncsect or gcc -ffunction-sections compiler option | |
12266 | is used in AIX. | |
12267 | (read_xcoff_symtab): Handle C_WEAKEXT storage class. | |
12268 | (process_xcoff_symbol): Likewise. | |
12269 | (scan_xcoff_symtab): Likewise. | |
12270 | ||
5c99fcf8 AH |
12271 | 2017-04-26 Alan Hayward <alan.hayward@arm.com> |
12272 | ||
12273 | * ia64-tdep.c (examine_prologue): Use get_frame_register_unsigned. | |
12274 | (ia64_sigtramp_frame_prev_register): Use read_memory_unsigned_integer. | |
12275 | (ia64_access_reg): Use get_frame_register_unsigned. | |
12276 | (ia64_access_rse_reg): Likewise. | |
12277 | (ia64_libunwind_frame_prev_register): Likewise. | |
12278 | ||
b41c5a85 JW |
12279 | 2017-04-26 Jiong Wang <jiong.wang@arm.com> |
12280 | ||
12281 | * gdbarch.sh: New gdbarch method execute_dwarf_cfa_vendor_op. | |
12282 | * gdbarch.c: Regenerated. | |
12283 | * gdbarch.h: Regenerated. | |
12284 | * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Made the | |
12285 | visibility external. | |
12286 | (execute_cfa_program): Call execute_dwarf_cfa_vendor_op for CFI | |
12287 | between DW_CFA_lo_user and DW_CFA_high_user inclusive. | |
12288 | (enum cfa_how_kind): Move to ... | |
12289 | (struct dwarf2_frame_state_reg_info): Likewise. | |
12290 | (struct dwarf2_frame_state): Likewise. | |
12291 | * dwarf2-frame.h: ... here. | |
12292 | (dwarf2_frame_state_alloc_regs): New declaration. | |
12293 | * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): New function. | |
12294 | (sparc32_gdbarch_init): Register execute_dwarf_cfa_vendor_op hook. | |
12295 | ||
c185f580 AH |
12296 | 2017-04-26 Alan Hayward <alan.hayward@arm.com> |
12297 | ||
12298 | * xtensa-tdep.c (xtensa_pseudo_register_read): Use | |
12299 | regcache_raw_read_unsigned. | |
12300 | (xtensa_pseudo_register_write): Likewise. | |
12301 | ||
19c45594 AH |
12302 | 2017-04-26 Alan Hayward <alan.hayward@arm.com> |
12303 | ||
12304 | * nds32-tdep.c (nds32_pseudo_register_read): Abort on errors. | |
12305 | (nds32_pseudo_register_write): Likewise. | |
12306 | ||
4658f12e YQ |
12307 | 2017-04-25 Yao Qi <yao.qi@linaro.org> |
12308 | ||
12309 | * regcache.c (struct regcache) <readonly_p>: Change its type | |
12310 | to bool. | |
12311 | (regcache_xmalloc_1): Update parameter type and callers update. | |
12312 | ||
d581dda8 YQ |
12313 | 2017-04-25 Yao Qi <yao.qi@linaro.org> |
12314 | ||
12315 | * aarch64-tdep.c (aarch64_gdbarch_init): Don't call | |
12316 | set_gdbarch_wchar_bit. | |
12317 | * arm-tdep.c (arm_gdbarch_init): Likewise. | |
12318 | ||
debed3db PA |
12319 | 2017-04-25 Pedro Alves <palves@redhat.com> |
12320 | ||
12321 | * common/poison.h [!HAVE_IS_TRIVIALLY_COPYABLE] (IsRelocatable) | |
12322 | (BothAreRelocatable, memcopy, memmove): Don't define. | |
12323 | * common/traits.h (__has_feature, HAVE_IS_TRIVIALLY_COPYABLE): New | |
12324 | macros. | |
12325 | ||
b0b92aeb PA |
12326 | 2017-04-25 Pedro Alves <palves@redhat.com> |
12327 | ||
12328 | * common/common-defs.h: Include "common/poison.h". | |
12329 | * common/function-view.h: (Not, Or, Requires): Move to traits.h | |
12330 | and adjust. | |
12331 | * common/poison.h: New file. | |
12332 | * common/traits.h: Include <type_traits>. | |
12333 | (Not, Or, Requires): New, moved from common/function-view.h. | |
12334 | ||
16c4d54a PA |
12335 | 2017-04-25 Pedro Alves <palves@redhat.com> |
12336 | ||
12337 | * breakpoint.h (struct breakpoint): In-class initialize all | |
12338 | fields. Make boolean fields "bool". | |
12339 | * breakpoint.c (init_raw_breakpoint_without_location): Remove | |
12340 | memset call and initializations no longer necessary. | |
12341 | ||
b5c36682 PA |
12342 | 2017-04-25 Pedro Alves <palves@redhat.com> |
12343 | ||
12344 | * btrace.c (pt_btrace_insn_flags): Change parameter type to | |
12345 | reference. | |
12346 | (pt_btrace_insn): New function. | |
12347 | (ftrace_add_pt): Remove memset call and use pt_btrace_insn. | |
12348 | ||
5625a286 PA |
12349 | 2017-04-25 Pedro Alves <palves@redhat.com> |
12350 | ||
12351 | * ada-lang.c (ada_catchpoint_location): Now a "class". Remove | |
12352 | "base" field and inherit from "bp_location" instead. Add | |
12353 | non-default ctor. | |
12354 | (allocate_location_exception): Use new non-default ctor. | |
12355 | * breakpoint.c (get_first_locp_gte_addr): Remove memset call. | |
12356 | (init_bp_location): Convert to ... | |
12357 | (bp_location::bp_location): ... this new ctor, and remove memset | |
12358 | call. | |
12359 | (base_breakpoint_allocate_location): Use the new non-default ctor. | |
12360 | * breakpoint.h (bp_location): Now a class. Declare default and | |
12361 | non-default ctors. In-class initialize all members. | |
12362 | (init_bp_location): Remove declaration. | |
12363 | ||
23bcc18f PA |
12364 | 2017-04-25 Pedro Alves <palves@redhat.com> |
12365 | ||
12366 | * common/enum-flags.h (enum_flags): Don't implement copy ctor and | |
12367 | assignment operator. | |
12368 | ||
e1ba3053 YQ |
12369 | 2017-04-24 Yao Qi <yao.qi@linaro.org> |
12370 | ||
12371 | * doublest.c (convert_doublest_to_floatformat): Call | |
12372 | floatformat_totalsize_bytes. | |
12373 | ||
10f489e5 TT |
12374 | 2017-04-22 Tom Tromey <tom@tromey.com> |
12375 | ||
12376 | * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use | |
12377 | ui_out_emit_list. | |
12378 | * stack.c (print_frame): Use ui_out_emit_list. | |
12379 | * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use | |
12380 | ui_out_emit_list. | |
12381 | * mi/mi-main.c (print_one_inferior) | |
12382 | (mi_cmd_data_list_register_names) | |
12383 | (mi_cmd_data_list_register_values, mi_cmd_list_features) | |
12384 | (mi_cmd_list_target_features, mi_cmd_trace_frame_collected): Use | |
12385 | ui_out_emit_list. | |
12386 | * mi/mi-interp.c (mi_on_normal_stop_1): Use ui_out_emit_list. | |
12387 | (mi_output_solib_attribs): Use ui_out_emit_list, | |
12388 | ui_out_emit_tuple. | |
12389 | * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_list. | |
12390 | * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames) | |
12391 | (mi_cmd_stack_list_args, list_args_or_locals): Use | |
12392 | ui_out_emit_list. | |
12393 | * disasm.c (do_assembly_only): Use ui_out_emit_list. | |
12394 | * breakpoint.c (print_solib_event, output_thread_groups): Use | |
12395 | ui_out_emit_list. | |
12396 | ||
0092b74d TT |
12397 | 2017-04-22 Tom Tromey <tom@tromey.com> |
12398 | ||
12399 | * mi/mi-main.c (print_variable_or_computed): Use ui_out_emit_tuple. | |
12400 | * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_tuple. | |
12401 | * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_out_emit_tuple. | |
12402 | ||
a14a62dd TT |
12403 | 2017-04-22 Tom Tromey <tom@tromey.com> |
12404 | ||
12405 | * tracepoint.c (tvariables_info_1) | |
12406 | (print_one_static_tracepoint_marker): Use ui_out_emit_tuple. | |
12407 | ||
46b9c129 TT |
12408 | 2017-04-22 Tom Tromey <tom@tromey.com> |
12409 | ||
12410 | * stack.c (print_frame_arg): Use ui_out_emit_tuple, | |
12411 | annotate_arg_emitter. | |
12412 | * breakpoint.c (print_mention_watchpoint) | |
12413 | (print_mention_masked_watchpoint): Use ui_out_emit_tuple. | |
12414 | * annotate.h (struct annotate_arg_emitter): New. | |
12415 | ||
2e783024 TT |
12416 | 2017-04-22 Tom Tromey <tom@tromey.com> |
12417 | ||
12418 | * record-btrace.c (record_btrace_insn_history) | |
12419 | (record_btrace_insn_history_range, record_btrace_call_history) | |
12420 | (record_btrace_call_history_range): Use ui_out_emit_tuple. | |
12421 | * thread.c (do_captured_list_thread_ids, print_thread_info_1): Use | |
12422 | ui_out_emit_tuple. | |
12423 | * stack.c (print_frame_info): Use ui_out_emit_tuple. | |
12424 | * solib.c (info_sharedlibrary_command): Use ui_out_emit_tuple. | |
12425 | * skip.c (skip_info): Use ui_out_emit_tuple. | |
12426 | * remote.c (show_remote_cmd): Use ui_out_emit_tuple. | |
12427 | * progspace.c (print_program_space): Use ui_out_emit_tuple. | |
12428 | * probe.c (info_probes_for_ops): Use ui_out_emit_tuple. | |
12429 | * osdata.c (info_osdata): Use ui_out_emit_tuple. | |
12430 | * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use | |
12431 | ui_out_emit_tuple. | |
12432 | * mi/mi-main.c (print_one_inferior, list_available_thread_groups) | |
12433 | (output_register, mi_cmd_data_read_memory) | |
12434 | (mi_cmd_data_read_memory_bytes, mi_load_progress) | |
12435 | (mi_cmd_trace_frame_collected): Use ui_out_emit_tuple. | |
12436 | * mi/mi-cmd-var.c (mi_cmd_var_list_children, varobj_update_one): | |
12437 | Use ui_out_emit_tuple. | |
12438 | * mi/mi-cmd-stack.c (mi_cmd_stack_list_args): Use | |
12439 | ui_out_emit_tuple. | |
12440 | * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions) | |
12441 | (mi_cmd_info_gdb_mi_command): Use ui_out_emit_tuple. | |
12442 | * linux-thread-db.c (info_auto_load_libthread_db): Use | |
12443 | ui_out_emit_tuple. | |
12444 | * inferior.c (print_inferior): Use ui_out_emit_tuple. | |
12445 | * gdb_bfd.c (print_one_bfd): Use ui_out_emit_tuple. | |
12446 | * disasm.c (do_mixed_source_and_assembly_deprecated) | |
12447 | (do_mixed_source_and_assembly): Use ui_out_emit_tuple. | |
12448 | * cp-abi.c (list_cp_abis): Use ui_out_emit_tuple. | |
12449 | * cli/cli-setshow.c (cmd_show_list): Use ui_out_emit_tuple. | |
12450 | * breakpoint.c (print_one_breakpoint_location) | |
12451 | (print_one_breakpoint): Use ui_out_emit_tuple. | |
12452 | * auto-load.c (print_script, info_auto_load_cmd): Use | |
12453 | ui_out_emit_tuple. | |
12454 | * ada-tasks.c (print_ada_task_info): Use ui_out_emit_tuple. | |
12455 | ||
9be21bb4 SM |
12456 | 2017-04-21 Simon Marchi <simon.marchi@ericsson.com> |
12457 | ||
12458 | * thread.c (print_thread_info_1): Remove dead code. | |
12459 | ||
0d4c07af JK |
12460 | 2017-04-21 Jan Kratochvil <jan.kratochvil@redhat.com> |
12461 | ||
12462 | * aarch64-tdep.c (selftests::aarch64_process_record_test): Make it #if | |
12463 | GDB_SELF_TEST. | |
12464 | * arm-tdep.c (selftests::arm_record_test): Likewise. | |
12465 | ||
4daf993d YQ |
12466 | 2017-04-21 Yao Qi <yao.qi@linaro.org> |
12467 | ||
12468 | * regcache.c (regcache_restore): Remove argument 2. Replace | |
12469 | argument 3 with regcache. Get register status from | |
12470 | src->register_status and get register contents from | |
12471 | register_buffer (src, regnum). | |
12472 | (regcache_cpy): Update. | |
12473 | ||
a6c21d4a PA |
12474 | 2017-04-19 Pedro Alves <palves@redhat.com> |
12475 | ||
12476 | * gdbthread.h (thread): Add missing closing parenthesis in | |
12477 | comment. | |
12478 | ||
3a3fd0fd PA |
12479 | 2017-04-19 Pedro Alves <palves@redhat.com> |
12480 | ||
12481 | * common/refcounted-object.h: New file. | |
12482 | * gdbthread.h: Include "common/refcounted-object.h". | |
12483 | (thread_info): Inherit from refcounted_object and add comments. | |
12484 | (thread_info::incref, thread_info::decref) | |
12485 | (thread_info::m_refcount): Delete. | |
12486 | (thread_info::deletable): Use the refcounted_object::refcount() | |
12487 | method. | |
12488 | * inferior.c (current_inferior_): Add comment. | |
12489 | (set_current_inferior): Increment/decrement refcounts. | |
12490 | (prune_inferiors, remove_inferior_command): Skip inferiors marked | |
12491 | not-deletable instead of comparing with the current inferior. | |
12492 | (initialize_inferiors): Increment the initial inferior's refcount. | |
12493 | * inferior.h (struct inferior): Forward declare. | |
12494 | Include "common/refcounted-object.h". | |
12495 | (current_inferior, set_current_inferior): Move declaration to | |
12496 | before struct inferior's definition, and fix comment. | |
12497 | (inferior): Inherit from refcounted_object. Add comments. | |
12498 | * thread.c (switch_to_thread_no_regs): Reference the thread's | |
12499 | inferior pointer directly instead of doing a ptid lookup. | |
12500 | (switch_to_no_thread): New function. | |
12501 | (switch_to_thread(thread_info *)): New function, factored out | |
12502 | from ... | |
12503 | (switch_to_thread(ptid_t)): ... this. | |
12504 | (restore_current_thread): Delete. | |
12505 | (current_thread_cleanup): Remove 'inf_id' and 'was_removable' | |
12506 | fields, and add 'inf' field. | |
12507 | (do_restore_current_thread_cleanup): Check whether old->inf is | |
12508 | alive instead of looking up an inferior by ptid. Use | |
12509 | switch_to_thread and switch_to_no_thread. | |
12510 | (restore_current_thread_cleanup_dtor): Use old->inf directly | |
12511 | instead of lookup up an inferior by id. Decref the inferior. | |
12512 | Don't restore 'removable'. | |
12513 | (make_cleanup_restore_current_thread): Same the inferior pointer | |
12514 | in old, instead of the inferior number. Incref the inferior. | |
12515 | Don't save/clear 'removable'. | |
12516 | ||
9bcb1f16 PA |
12517 | 2017-04-19 Pedro Alves <palves@redhat.com> |
12518 | ||
12519 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add | |
12520 | unittests/scoped_restore-selftests.c. | |
12521 | (SUBDIR_UNITTESTS_OBS): Add scoped_restore-selftests.o. | |
12522 | * common/scoped_restore.h (scoped_restore_base): Make "class". | |
12523 | (scoped_restore_base::release): New public method. | |
12524 | (scoped_restore_base::scoped_restore_base): New protected ctor. | |
12525 | (scoped_restore_base::m_saved_var): New protected field. | |
12526 | (scoped_restore_tmpl::scoped_restore_tmpl(T*)): Initialize the | |
12527 | scoped_restore_base base class instead of m_saved_var directly. | |
12528 | (scoped_restore_tmpl::scoped_restore_tmpl(T*, T2)): Likewise. | |
12529 | (scoped_restore_tmpl::scoped_restore_tmpl(const | |
12530 | scoped_restore_tmpl<T>&)): Likewise. | |
12531 | (scoped_restore_tmpl::~scoped_restore_tmpl): Use the saved_var | |
12532 | method. | |
12533 | (scoped_restore_tmpl::saved_var): New method. | |
12534 | (scoped_restore_tmpl::m_saved_var): Delete. | |
12535 | * inferior.h (inferior::detaching): Now a bool. | |
12536 | * infrun.c (prepare_for_detach): Use a scoped_restore instead of a | |
12537 | cleanup. | |
12538 | * unittests/scoped_restore-selftests.c: New file. | |
12539 | ||
26fcd539 PA |
12540 | 2017-04-19 Pedro Alves <palves@redhat.com> |
12541 | ||
12542 | * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS): | |
12543 | Re-sort in alphabetic order. | |
12544 | ||
fdd243b0 PA |
12545 | 2017-04-18 Pedro Alves <palves@redhat.com> |
12546 | ||
12547 | * xml-support.c (obstack_xml_printf): Delete. | |
12548 | * xml-support.h (obstack_xml_printf): Delete. | |
12549 | ||
4895cde2 PA |
12550 | 2017-04-18 Pedro Alves <palves@redhat.com> |
12551 | ||
12552 | * xml-support.c (gdb_xml_parser) <use_dtd, dtd_name, parse, | |
12553 | vdebug, verror, body_text, start_element, end_element, name, | |
12554 | user_data, set_is_xinclude, set_error, expat_parser>: New methods. | |
12555 | <name, user_data, expat_parser, scopes, error, last_line, dtd_name, | |
12556 | is_xinclude>: Make private and add m_ prefix. | |
12557 | (gdb_xml_parser::body_text): New method, based on ... | |
12558 | (gdb_xml_body_text): ... this. Adjust. | |
12559 | (gdb_xml_parser::vdebug): New method, based on ... | |
12560 | (gdb_xml_debug): ... this. Adjust. | |
12561 | (gdb_xml_parser::verror): New method, based on ... | |
12562 | (gdb_xml_error): ... this. Adjust. | |
12563 | (gdb_xml_parser::start_element): New method, based on ... | |
12564 | (gdb_xml_start_element): ... this. Adjust. | |
12565 | (gdb_xml_start_element_wrapper): Defer to | |
12566 | gdb_xml_parser::start_element and gdb_xml_parser::set_error. | |
12567 | (gdb_xml_parser::end_element): New method, based on ... | |
12568 | (gdb_xml_end_element_wrapper): ... this. Adjust. | |
12569 | (gdb_xml_parser::~gdb_xml_parser): Adjust. | |
12570 | (gdb_xml_parser::gdb_xml_parser): Adjust to field renames. | |
12571 | (gdb_xml_parser::use_dtd): New method, based on ... | |
12572 | (gdb_xml_use_dtd): ... this. Adjust. | |
12573 | (gdb_xml_parser::parse): New method, based on ... | |
12574 | (gdb_xml_parse): ... this. Adjust. | |
12575 | (gdb_xml_parse_quick): Adjust to call the parser's parse method. | |
12576 | (xinclude_start_include): Adjust to call the parser's name method. | |
12577 | (xml_xinclude_default, xml_xinclude_start_doctype) | |
12578 | (xml_xinclude_end_doctype): Adjust to call the parser's user_data | |
12579 | method. | |
12580 | (xml_process_xincludes): Adjust to call parser methods. | |
12581 | * xml-support.h (gdb_xml_use_dtd, gdb_xml_parse): Delete | |
12582 | declarations. | |
12583 | ||
bd8a901f PA |
12584 | 2017-04-18 Pedro Alves <palves@redhat.com> |
12585 | ||
12586 | * tracefile-tfile.c (tfile_write_tdesc): Adjust to use | |
12587 | gdb::optional<std::string>. | |
12588 | * xml-support.c: Include <string>. | |
12589 | (scope_level::scope_level(scope_level &&)) | |
12590 | (scope_level::~scope_level): Delete. | |
12591 | (scope_level::body): Now a std::string. | |
12592 | (gdb_xml_body_text, gdb_xml_end_element): Adjust. | |
12593 | (xinclude_parsing_data::xinclude_parsing_data): Add 'output' | |
12594 | parameter. | |
12595 | (xinclude_parsing_data::~xinclude_parsing_data): Delete. | |
12596 | (xinclude_parsing_data::output): Now a std::string reference. | |
12597 | (xinclude_start_include): Adjust. | |
12598 | (xml_xinclude_default): Adjust. | |
12599 | (xml_process_xincludes): Add 'output' parameter, and return bool. | |
12600 | * xml-support.h (xml_process_xincludes): Add 'output' parameter, | |
12601 | and return bool. | |
12602 | * xml-tdesc.c: Include <unordered_map> and <string>. | |
12603 | (tdesc_xml_cache): Delete. | |
12604 | (tdesc_xml_cache_s): Delete. | |
12605 | (xml_cache): Now an std::unordered_map. | |
12606 | (tdesc_parse_xml): Adjust to use std::string and unordered_map. | |
12607 | (target_fetch_description_xml): Change return type to | |
12608 | gdb::optional<std::string>, and adjust. | |
12609 | * xml-tdesc.h: Include "common/gdb_optional.h" and <string>. | |
12610 | (target_fetch_description_xml): Change return type to | |
12611 | gdb::optional<std::string>. | |
12612 | ||
d35d1958 PA |
12613 | 2017-04-18 Pedro Alves <palves@redhat.com> |
12614 | ||
12615 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add | |
12616 | unittests/optional-selftests.c. | |
12617 | (SUBDIR_UNITTESTS_OBS): Add optional-selftests.o. | |
12618 | * unittests/optional-selftests.c: New file. | |
12619 | * unittests/optional/assignment/1.cc: New file. | |
12620 | * unittests/optional/assignment/2.cc: New file. | |
12621 | * unittests/optional/assignment/3.cc: New file. | |
12622 | * unittests/optional/assignment/4.cc: New file. | |
12623 | * unittests/optional/assignment/5.cc: New file. | |
12624 | * unittests/optional/assignment/6.cc: New file. | |
12625 | * unittests/optional/assignment/7.cc: New file. | |
12626 | * unittests/optional/cons/copy.cc: New file. | |
12627 | * unittests/optional/cons/default.cc: New file. | |
12628 | * unittests/optional/cons/move.cc: New file. | |
12629 | * unittests/optional/cons/value.cc: New file. | |
12630 | * unittests/optional/in_place.cc: New file. | |
12631 | * unittests/optional/observers/1.cc: New file. | |
12632 | * unittests/optional/observers/2.cc: New file. | |
12633 | ||
22796e97 PA |
12634 | 2017-04-18 Pedro Alves <palves@redhat.com> |
12635 | ||
12636 | * common/gdb_optional.h: Include common/traits.h. | |
12637 | (in_place_t): New type. | |
12638 | (in_place): New constexpr variable. | |
12639 | (optional::optional): Remove member initialization of | |
12640 | m_instantiated. | |
12641 | (optional::optional(in_place_t...)): New constructor. | |
12642 | (optional::~optional): Use reset. | |
12643 | (optional::optional(const optional&)): New. | |
12644 | (optional::optional(const optional&&)): New. | |
12645 | (optional::optional(T &)): New. | |
12646 | (optional::optional(T &&)): New. | |
12647 | (operator::operator=(const optional &)): New. | |
12648 | (operator::operator=(optional &&)): New. | |
12649 | (operator::operator= (const T &)) | |
12650 | (operator::operator= (T &&)) | |
12651 | (operator::emplace (Args &&... args)): Return a T&. Use reset. | |
12652 | (operator::reset): New. | |
12653 | (operator::m_instantiated):: Add in-class initializer. | |
12654 | * common/traits.h: Include <type_traits>. | |
12655 | (struct And): New types. | |
12656 | ||
a7fc9b61 PA |
12657 | 2017-04-18 Pedro Alves <palves@redhat.com> |
12658 | ||
12659 | * xml-support.c: Include <vector>. | |
12660 | (scope_level::scope_level(const gdb_xml_element *)) | |
12661 | (scope_level::scope_level(scope_level&&)): New. | |
12662 | (scope_level::~scope_level): New. | |
12663 | (scope_level_s): Delete. | |
12664 | (gdb_xml_parser::scopes): Now a std::vector. | |
12665 | (gdb_xml_body_text, gdb_xml_start_element, gdb_xml_end_element): | |
12666 | Use std::vector. | |
12667 | (gdb_xml_parser::~gdb_xml_parser): Remove now unnecessary | |
12668 | scope cleanup code. | |
12669 | (gdb_xml_parser::gdb_xml_parser): Remove explicit initialization | |
12670 | of the scopes member. Use std::vector::emplace_back. | |
12671 | ||
010151c9 PA |
12672 | 2017-04-18 Pedro Alves <palves@redhat.com> |
12673 | ||
12674 | * xml-support.c (gdb_xml_parser): Add ctor/dtor. Make is_xinclude | |
12675 | a bool. | |
12676 | (gdb_xml_end_element): Change type of first parameter. | |
12677 | (gdb_xml_cleanup): Rename to ... | |
12678 | (gdb_xml_parser::~gdb_xml_parser): ... this. | |
12679 | (gdb_xml_create_parser_and_cleanup): Delete with ... | |
12680 | (gdb_xml_parser::gdb_xml_parser): ... creation parts factored out | |
12681 | to this new ctor. | |
12682 | (gdb_xml_parse_quick): Create a local gdb_xml_parser instead of | |
12683 | using gdb_xml_create_parser_and_cleanup. | |
12684 | (xinclude_parsing_data): Add ctor/dtor. | |
12685 | (xml_xinclude_cleanup): Delete. | |
12686 | (xml_process_xincludes): Create a local xinclude_parsing_data | |
12687 | instead of heap-allocating one. Create a local gdb_xml_parser | |
12688 | instead of heap-allocating one with | |
12689 | gdb_xml_create_parser_and_cleanup. | |
12690 | ||
d56060f0 JB |
12691 | 2017-04-18 John Baldwin <jhb@FreeBSD.org> |
12692 | ||
12693 | PR threads/20743 | |
12694 | * fbsd-nat.c (resume_one_thread_cb): Remove. | |
12695 | (resume_all_threads_cb): Remove. | |
12696 | (fbsd_resume): Use ALL_NON_EXITED_THREADS instead of | |
12697 | iterate_over_threads. | |
12698 | ||
305d16a9 JB |
12699 | 2017-04-17 Joel Brobecker <brobecker@adacore.com> |
12700 | ||
12701 | * NEWS: Create a new section for the next release branch. | |
12702 | Rename the section of the current branch, now that it has | |
12703 | been cut. | |
12704 | ||
8bb57231 JB |
12705 | 2017-04-17 Joel Brobecker <brobecker@adacore.com> |
12706 | ||
12707 | GDB 8.0 branch created (725bf5cf125783c2a7ca4ab63d3768e220bab2db): | |
12708 | * version.in: Bump version to 8.0.50.DATE-git. | |
12709 | ||
096c92dd SDJ |
12710 | 2017-04-13 Sergio Durigan Junior <sergiodj@redhat.com> |
12711 | ||
12712 | PR gdb/21385 | |
12713 | * windows-nat.c (windows_create_inferior): Declare 'allargs' | |
12714 | independently of the host, and fix build breakage on Cygwin. | |
12715 | ||
0550c955 PA |
12716 | 2017-04-13 Pedro Alves <palves@redhat.com> |
12717 | ||
12718 | * inferior.c (free_inferior): Convert to ... | |
12719 | (inferior::~inferior): ... this dtor. | |
12720 | (inferior::inferior): New ctor, factored out from ... | |
12721 | (add_inferior_silent): ... here. Allocate the inferior with a new | |
12722 | expression. | |
12723 | (delete_inferior): Call delete instead of free_inferior. | |
12724 | * inferior.h (gdb_environ, continuation): Forward declare. | |
12725 | (inferior): Now a class. Add in-class initialization to all | |
12726 | members. Make boolean fields bool, except 'detaching'. | |
12727 | (inferior::inferior): New explicit ctor. | |
12728 | (inferior::~inferior): New. | |
12729 | ||
e3d60dfc PA |
12730 | 2017-04-13 Pedro Alves <palves@redhat.com> |
12731 | ||
12732 | * inferior.c (init_inferior_list): Delete. | |
12733 | * inferior.h (init_inferior_list): Delete. | |
12734 | ||
5fd69d0a PA |
12735 | 2017-04-13 Pedro Alves <palves@redhat.com> |
12736 | ||
12737 | PR threads/13217 | |
12738 | * gdb.threads/threadapply.exp (thr_apply_detach): New procedure. | |
12739 | (top level): Call it twice, with different thread sets. | |
12740 | ||
c6609450 PA |
12741 | 2017-04-13 Pedro Alves <palves@redhat.com> |
12742 | ||
12743 | * thread.c: Include <algorithm>. | |
12744 | (thread_array_cleanup): Delete. | |
12745 | (scoped_inc_dec_ref): New class. | |
12746 | (live_threads_count): New function. | |
12747 | (set_thread_refcount): Delete. | |
12748 | (tp_array_compar_ascending): Now a bool. | |
12749 | (tp_array_compar): Convert to a std::sort comparison function. | |
12750 | (thread_apply_all_command): Use std::vector and scoped_inc_dec_ref | |
12751 | and live_threads_count. | |
12752 | ||
2a00d7ce PA |
12753 | 2017-04-13 Pedro Alves <palves@redhat.com> |
12754 | ||
12755 | * infrun.c (follow_fork_inferior): Also switch the current | |
12756 | inferior. | |
12757 | ||
441d7c93 PA |
12758 | 2017-04-13 Pedro Alves <palves@redhat.com> |
12759 | ||
12760 | * breakpoint.c (watch_command_1): Save watchpoint-frame info | |
12761 | before calling create_internal_breakpoint. | |
12762 | ||
808480f6 PA |
12763 | 2017-04-13 Pedro Alves <palves@redhat.com> |
12764 | ||
12765 | * fork-child.c (execv_argv): New class. | |
12766 | (breakup_args): Refactored as ... | |
12767 | (execv_argv::init_for_no_shell): .. this method of execv_argv. | |
12768 | Copy arguments to storage and replace separators with NULL | |
12769 | terminators in place. | |
12770 | (escape_bang_in_quoted_argument): Adjust to return bool. | |
12771 | (execv_argv::execv_argv): New ctor. | |
12772 | (execv_argv::init_for_shell): New method, factored out from | |
12773 | fork_inferior. Don't strdup strings into the vector. | |
12774 | (fork_inferior): Eliminate "shell" local and use execv_argv. Use | |
12775 | Remove free_vector_argv call. | |
12776 | ||
ad3d022a YQ |
12777 | 2017-04-13 Yao Qi <yao.qi@linaro.org> |
12778 | ||
12779 | * rx-tdep.c (rx_fpsw_type): Check tdep->rx_fpsw_type instead of | |
12780 | tdep->rx_psw_type. | |
12781 | ||
e6ddc3bf YQ |
12782 | 2017-04-13 Yao Qi <yao.qi@linaro.org> |
12783 | ||
12784 | * rl78-tdep.c (rl78_gdbarch_init): Use XCNEW instead of XNEW. | |
12785 | * rx-tdep.c (rx_gdbarch_init): Likewise. | |
12786 | ||
bfb8cf90 PA |
12787 | 2017-04-13 Pedro Alves <palves@redhat.com> |
12788 | ||
12789 | * breakpoint.h (struct breakpoint): Reindent. | |
12790 | ||
f5336ca5 PA |
12791 | 2017-04-13 Pedro Alves <palves@redhat.com> |
12792 | ||
12793 | * breakpoint.c (bp_location): Rename to ... | |
12794 | (bp_locations): ... this. All references updated. | |
12795 | (bp_location_count): Rename to ... | |
12796 | (bp_locations_count): ... this. All references updated. | |
12797 | (bp_location_placed_address_before_address_max): Rename to ... | |
12798 | (bp_locations_placed_address_before_address_max): ... this. All | |
12799 | references updated. | |
12800 | (bp_location_shadow_len_after_address_max): Rename to ... | |
12801 | (bp_locations_shadow_len_after_address_max): ... this. All | |
12802 | references updated. | |
12803 | (bp_location_compare_addrs): Rename to ... | |
12804 | (bp_locations_compare_addrs): ... this. All references updated. | |
12805 | (bp_location_compare):Rename to ... | |
12806 | (bp_locations_compare): ... this. All references updated. | |
12807 | (bp_location_target_extensions_update): Rename to ... | |
12808 | (bp_locations_target_extensions_update): ... this. All references | |
12809 | updated. | |
12810 | ||
be628ab8 SDJ |
12811 | 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com> |
12812 | ||
12813 | * Makefile.in (HFILES_NO_SRCDIR): Add "common/gdb_termios.h". | |
12814 | * common/common.m4: Check headers 'termios.h', 'termio.h' and | |
12815 | 'sgtty.h'. | |
12816 | * common/gdb_termios.h: New file, with parts of "terminal.h". | |
12817 | * inflow.c: Include "gdb_termios.h". | |
12818 | * ser-unix.c: Include "gdb_termios.h". | |
12819 | * terminal.h: Move terminal-related defines to | |
12820 | "common/gdb_termios.h". | |
12821 | ||
8e9e35b1 TT |
12822 | 2017-04-12 Tom Tromey <tom@tromey.com> |
12823 | ||
12824 | * probe.c (parse_probes): Update. | |
12825 | * location.h (delete_event_location): Don't declare. | |
12826 | (event_location_deleter::operator()): Update. | |
12827 | * location.c (event_location_deleter::operator()): Rename from | |
12828 | delete_event_location. | |
12829 | * linespec.h (linespec_result) <location>: Change type to | |
12830 | event_location_up. | |
12831 | * linespec.c (canonicalize_linespec, event_location_to_sals) | |
12832 | (decode_objc): Update. | |
12833 | (linespec_result): Don't call delete_event_location. | |
12834 | * breakpoint.c (create_breakpoints_sal) | |
12835 | (bkpt_probe_create_sals_from_location) | |
12836 | (strace_marker_create_sals_from_location): Update. | |
12837 | ||
16e802b9 TT |
12838 | 2017-04-12 Tom Tromey <tom@tromey.com> |
12839 | ||
12840 | * linespec.h (struct linespec_result): Add constructor and | |
12841 | destructor. | |
12842 | (init_linespec_result, destroy_linespec_result) | |
12843 | (make_cleanup_destroy_linespec_result): Don't declare. | |
12844 | * linespec.c (init_linespec_result): Remove. | |
12845 | (linespec_result::~linespec_result): Rename from | |
12846 | destroy_linespec_result. Update. | |
12847 | (cleanup_linespec_result, make_cleanup_destroy_linespec_result): | |
12848 | Remove. | |
12849 | * breakpoint.c (create_breakpoint, break_range_command) | |
12850 | (decode_location_default): Update. | |
12851 | * ax-gdb.c (agent_command_1): Update. | |
12852 | ||
d28cd78a TT |
12853 | 2017-04-12 Tom Tromey <tom@tromey.com> |
12854 | ||
12855 | * remote.c (remote_download_tracepoint): Update. | |
12856 | * python/py-breakpoint.c (bppy_get_location): Update. | |
12857 | * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob) | |
12858 | (gdbscm_breakpoint_location): Update. | |
12859 | * elfread.c (elf_gnu_ifunc_resolver_return_stop): Update. | |
12860 | * breakpoint.h (struct breakpoint) <location, location_range_end>: | |
12861 | Change type to event_location_up. | |
12862 | * breakpoint.c (create_overlay_event_breakpoint) | |
12863 | (create_longjmp_master_breakpoint) | |
12864 | (create_std_terminate_master_breakpoint) | |
12865 | (create_exception_master_breakpoint) | |
12866 | (breakpoint_event_location_empty_p, print_breakpoint_location) | |
12867 | (print_one_breakpoint_location, create_thread_event_breakpoint) | |
12868 | (init_breakpoint_sal, create_breakpoint) | |
12869 | (print_recreate_ranged_breakpoint, break_range_command) | |
12870 | (init_ada_exception_breakpoint, say_where): Update. | |
12871 | (base_breakpoint_dtor): Don't call delete_event_location. | |
12872 | (bkpt_print_recreate, tracepoint_print_recreate) | |
12873 | (dprintf_print_recreate, update_static_tracepoint) | |
12874 | (breakpoint_re_set_default): Update. | |
12875 | ||
711799d5 TT |
12876 | 2017-04-12 Tom Tromey <tom@tromey.com> |
12877 | ||
12878 | * compile/compile-loc2c.c (compute_stack_depth_worker): Change | |
12879 | type of "to_do". Update. | |
12880 | (compute_stack_depth): Use std::vector. | |
12881 | ||
52d214d3 TT |
12882 | 2017-04-12 Tom Tromey <tom@tromey.com> |
12883 | ||
12884 | * printcmd.c (find_instruction_backward): Use std::vector. | |
12885 | ||
4c404b8b TT |
12886 | 2017-04-12 Tom Tromey <tom@tromey.com> |
12887 | ||
12888 | * symfile.c (objfilep): Remove typedef. | |
12889 | (reread_symbols): Use a std::vector. | |
12890 | ||
156d9eab TT |
12891 | 2017-04-12 Tom Tromey <tom@tromey.com> |
12892 | ||
12893 | * mi/mi-main.c (exec_direction_forward): Remove. | |
12894 | (exec_reverse_continue, mi_execute_command): Use scoped_restore. | |
12895 | * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use | |
12896 | scoped_restore. | |
12897 | * guile/guile.c (guile_repl_command, guile_command) | |
12898 | (gdbscm_execute_gdb_command): Use scoped_restore. | |
12899 | * go-exp.y (go_parse): Use scoped_restore. | |
12900 | * d-exp.y (d_parse): Use scoped_restore. | |
12901 | * cli/cli-decode.c (cmd_func): Use scoped_restore. | |
12902 | * c-exp.y (c_parse): Use scoped_restore. | |
12903 | ||
4d89769a TT |
12904 | 2017-04-12 Tom Tromey <tom@tromey.com> |
12905 | ||
12906 | * mi/mi-parse.h (struct mi_parse): Add constructor, destructor. | |
12907 | (mi_parse): Update return type. | |
12908 | (mi_parse_free): Remove. | |
12909 | * mi/mi-parse.c (mi_parse::mi_parse): New constructor. | |
12910 | (mi_parse::~mi_parse): Rename from mi_parse_free. | |
12911 | (mi_parse_cleanup): Remove. | |
12912 | (mi_parse): Return a unique_ptr. Use new. | |
12913 | * mi/mi-main.c (mi_execute_command): Update. | |
12914 | ||
4b217cc7 TT |
12915 | 2017-04-12 Tom Tromey <tom@tromey.com> |
12916 | ||
12917 | * location.c (explicit_location_lex_one): Return a | |
12918 | unique_xmalloc_ptr. | |
12919 | (string_to_explicit_location): Update. Remove cleanups. | |
12920 | ||
59d3651b TT |
12921 | 2017-04-12 Tom Tromey <tom@tromey.com> |
12922 | ||
12923 | * gnu-v3-abi.c (value_and_voffset_p): Remove typedef. | |
12924 | (compare_value_and_voffset): Change type. Update. | |
12925 | (compute_vtable_size): Change type of "offset_vec". | |
12926 | (gnuv3_print_vtable): Use std::vector. Remove cleanups. | |
12927 | (gnuv3_get_typeid): Remove extraneous declaration. | |
12928 | ||
b24b0d6c TT |
12929 | 2017-04-12 Tom Tromey <tom@tromey.com> |
12930 | ||
12931 | * charset.h (wchar_iterator): Fix comment. | |
12932 | ||
80a3b8c5 TT |
12933 | 2017-04-12 Tom Tromey <tom@tromey.com> |
12934 | ||
12935 | * charset.c (iconv_wrapper): New class. | |
12936 | (cleanup_iconv): Remove. | |
12937 | (convert_between_encodings): Use it. | |
12938 | ||
c83dd867 TT |
12939 | 2017-04-12 Tom Tromey <tom@tromey.com> |
12940 | ||
12941 | * symfile.h (increment_reading_symtab): Update type. | |
12942 | * symfile.c (decrement_reading_symtab): Remove. | |
12943 | (increment_reading_symtab): Return a scoped_restore_tmpl<int>. | |
12944 | * psymtab.c (psymtab_to_symtab): Update. | |
12945 | * dwarf2read.c (dw2_instantiate_symtab): Update. | |
12946 | ||
0e8621a0 TT |
12947 | 2017-04-12 Tom Tromey <tom@tromey.com> |
12948 | ||
12949 | * jit.c (struct jit_reader): Declare separately. Add constructor | |
12950 | and destructor. Change type of "handle". | |
12951 | (loaded_jit_reader): Define separately. | |
12952 | (jit_reader_load): Update. New "new". | |
12953 | (jit_reader_unload_command): Use "delete". | |
12954 | * gdb-dlfcn.h (struct dlclose_deleter): New. | |
12955 | (gdb_dlhandle_up): New typedef. | |
12956 | (gdb_dlopen, gdb_dlsym): Update types. | |
12957 | (gdb_dlclose): Remove. | |
12958 | * gdb-dlfcn.c (gdb_dlopen): Return a gdb_dlhandle_up. | |
12959 | (gdb_dlsym): Change type of "handle". | |
12960 | (make_cleanup_dlclose): Remove. | |
12961 | (dlclose_deleter::operator()): Rename from gdb_dlclose. | |
12962 | * compile/compile-c-support.c (load_libcc): Update. | |
12963 | ||
67d89901 TT |
12964 | 2017-04-12 Tom Tromey <tom@tromey.com> |
12965 | ||
12966 | * symtab.h (find_pcs_for_symtab_line): Change return type. | |
12967 | * symtab.c (find_pcs_for_symtab_line): Change return type. | |
12968 | * python/py-linetable.c (build_line_table_tuple_from_pcs): Change | |
12969 | type of "vec". Update. | |
12970 | (ltpy_get_pcs_for_line): Update. | |
12971 | * linespec.c (decode_digits_ordinary): Update. | |
12972 | ||
93921405 TT |
12973 | 2017-04-12 Tom Tromey <tom@tromey.com> |
12974 | ||
12975 | * tracepoint.c (actions_command): Update. | |
12976 | * python/python.c (python_command, python_interactive_command): | |
12977 | Update. | |
12978 | * mi/mi-cmd-break.c (mi_cmd_break_commands): Update. | |
12979 | * guile/guile.c (guile_command): Update. | |
12980 | * defs.h (read_command_lines, read_command_lines_1): Return | |
12981 | command_line_up. | |
12982 | (command_lines_deleter): New struct. | |
12983 | (command_line_up): New typedef. | |
12984 | * compile/compile.c (compile_code_command) | |
12985 | (compile_print_command): Update. | |
12986 | * cli/cli-script.h (get_command_line, copy_command_lines): Return | |
12987 | command_line_up. | |
12988 | (make_cleanup_free_command_lines): Remove. | |
12989 | * cli/cli-script.c (get_command_line, read_command_lines_1) | |
12990 | (copy_command_lines): Return command_line_up. | |
12991 | (while_command, if_command, read_command_lines, define_command) | |
12992 | (document_command): Update. | |
12993 | (do_free_command_lines_cleanup, make_cleanup_free_command_lines): | |
12994 | Remove. | |
12995 | * breakpoint.h (breakpoint_set_commands): Change type of | |
12996 | "commands". | |
12997 | * breakpoint.c (breakpoint_set_commands): Change type of | |
12998 | "commands". Update. | |
12999 | (do_map_commands_command, update_dprintf_command_list) | |
13000 | (create_tracepoint_from_upload): Update. | |
13001 | ||
ffc2605c TT |
13002 | 2017-04-12 Tom Tromey <tom@tromey.com> |
13003 | ||
13004 | * tracepoint.c (scope_info): Update. | |
13005 | * spu-tdep.c (spu_catch_start): Update. | |
13006 | * python/python.c (gdbpy_decode_line): Update. | |
13007 | * python/py-finishbreakpoint.c (bpfinishpy_init): Update. | |
13008 | * python/py-breakpoint.c (bppy_init): Update. | |
13009 | * probe.c (parse_probes): Update. | |
13010 | * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update. | |
13011 | * location.h (event_location_deleter): New struct. | |
13012 | (event_location_up): New typedef. | |
13013 | (new_linespec_location, new_address_location, new_probe_location) | |
13014 | (new_explicit_location, copy_event_location) | |
13015 | (string_to_event_location, string_to_event_location_basic) | |
13016 | (string_to_explicit_location): Update return type. | |
13017 | (make_cleanup_delete_event_location): Remove. | |
13018 | * location.c (new_linespec_location, new_address_location) | |
13019 | (new_probe_location, new_explicit_location, copy_event_location): | |
13020 | Return event_location_up. | |
13021 | (delete_event_location_cleanup) | |
13022 | (make_cleanup_delete_event_location): Remove. | |
13023 | (string_to_explicit_location, string_to_event_location_basic) | |
13024 | (string_to_event_location): Return event_location_up. | |
13025 | * linespec.c (canonicalize_linespec, event_location_to_sals) | |
13026 | (decode_line_with_current_source) | |
13027 | (decode_line_with_last_displayed, decode_objc): Update. | |
13028 | * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update. | |
13029 | * completer.c (location_completer): Update. | |
13030 | * cli/cli-cmds.c (edit_command, list_command): Update. | |
13031 | * breakpoint.c (create_overlay_event_breakpoint) | |
13032 | (create_longjmp_master_breakpoint) | |
13033 | (create_std_terminate_master_breakpoint) | |
13034 | (create_exception_master_breakpoint) | |
13035 | (create_thread_event_breakpoint): Update. | |
13036 | (init_breakpoint_sal): Update. Remove some dead code. | |
13037 | (create_breakpoint_sal): Change type of "location". Update. | |
13038 | (create_breakpoints_sal, create_breakpoint, break_command_1) | |
13039 | (dprintf_command, break_range_command, until_break_command) | |
13040 | (init_ada_exception_breakpoint) | |
13041 | (strace_marker_create_sals_from_location) | |
13042 | (update_static_tracepoint, trace_command, ftrace_command) | |
13043 | (strace_command, create_tracepoint_from_upload): Update. | |
13044 | * break-catch-throw.c (re_set_exception_catchpoint): Update. | |
13045 | * ax-gdb.c (agent_command_1): Update. | |
13046 | ||
8f10c932 PA |
13047 | 2017-04-12 Pedro Alves <palves@redhat.com> |
13048 | ||
13049 | * Makefile.in (ALL_TARGET_OBS): Add i386-go32-tdep.o. | |
13050 | * configure.tgt: Handle i[34567]86-*-go32* and | |
13051 | i[34567]86-*-msdosdjgpp*. | |
13052 | * i386-tdep.c (i386_svr4_reg_to_regnum): | |
13053 | Make extern. | |
13054 | (i386_go32_init_abi, i386_coff_osabi_sniffer): Moved to | |
13055 | i386-go32-tdep.c. | |
13056 | (_initialize_i386_tdep): DJGPP bits moved to i386-go32-tdep.c. | |
13057 | * i386-go32-tdep.c: New file. | |
13058 | * i386-tdep.h (tdesc_i386_mmx, i386_svr4_reg_to_regnum): New | |
13059 | declarations. | |
13060 | ||
0a31ccfb SM |
13061 | 2017-04-12 Simon Marchi <simon.marchi@ericsson.com> |
13062 | ||
13063 | * aix-thread.c (pd_status2str): Change return type to const char *. | |
13064 | ||
e9bb3fbb PA |
13065 | 2017-04-12 Pedro Alves <palves@redhat.com> |
13066 | ||
13067 | * i386-tdep.c (i386_elf_init_abi, i386_go32_init_abi): Remove | |
13068 | calls to set_gdbarch_gnu_triplet_regexp. | |
13069 | ||
53375380 PA |
13070 | 2017-04-12 Pedro Alves <palves@redhat.com> |
13071 | ||
13072 | PR gdb/21323 | |
13073 | * c-lang.c (cplus_primitive_types) <cplus_primitive_type_wchar_t>: | |
13074 | New enum value. | |
13075 | (cplus_language_arch_info): Register cplus_primitive_type_wchar_t. | |
13076 | * gdbtypes.h (struct builtin_type) <builtin_wchar>: New field. | |
13077 | * gdbtypes.c (gdbtypes_post_init): Create the "wchar_t" type. | |
13078 | * gdbarch.sh (wchar_bit, wchar_signed): New per-arch values. | |
13079 | * gdbarch.h, gdbarch.c: Regenerate. | |
13080 | * aarch64-tdep.c (aarch64_gdbarch_init): Override | |
13081 | gdbarch_wchar_bit and gdbarch_wchar_signed. | |
13082 | * alpha-tdep.c (alpha_gdbarch_init): Likewise. | |
13083 | * arm-tdep.c (arm_gdbarch_init): Likewise. | |
13084 | * avr-tdep.c (avr_gdbarch_init): Likewise. | |
13085 | * h8300-tdep.c (h8300_gdbarch_init): Likewise. | |
13086 | * i386-nto-tdep.c (i386nto_init_abi): Likewise. | |
13087 | * i386-tdep.c (i386_go32_init_abi): Likewise. | |
13088 | * m32r-tdep.c (m32r_gdbarch_init): Likewise. | |
13089 | * moxie-tdep.c (moxie_gdbarch_init): Likewise. | |
13090 | * nds32-tdep.c (nds32_gdbarch_init): Likewise. | |
13091 | * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise. | |
13092 | * sh-tdep.c (sh_gdbarch_init): Likewise. | |
13093 | * sparc-tdep.c (sparc32_gdbarch_init): Likewise. | |
13094 | * sparc64-tdep.c (sparc64_init_abi): Likewise. | |
13095 | * windows-tdep.c (windows_init_abi): Likewise. | |
13096 | * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise. | |
13097 | ||
53e710ac PA |
13098 | 2017-04-12 Pedro Alves <palves@redhat.com> |
13099 | ||
13100 | PR c++/21323 | |
13101 | * c-lang.c (cplus_primitive_types) <cplus_primitive_type_char16_t, | |
13102 | cplus_primitive_type_char32_t>: New enum values. | |
13103 | (cplus_language_arch_info): Register cplus_primitive_type_char16_t | |
13104 | and cplus_primitive_type_char32_t. | |
13105 | * dwarf2read.c (read_base_type) <DW_ATE_UTF>: If bit size is 16 or | |
13106 | 32, use the archtecture's built-in type for char16_t and char32_t, | |
13107 | respectively. Otherwise, fallback to init_integer_type as before, | |
13108 | but make the type unsigned, and issue a complaint. | |
13109 | * gdbtypes.c (gdbtypes_post_init): Make char16_t and char32_t unsigned. | |
13110 | ||
ab0538b8 AH |
13111 | 2017-04-12 Alan Hayward <alan.hayward@arm.com> |
13112 | ||
5e0e0422 | 13113 | * m32r-tdep.c (M32R_ARG_REGISTER_SIZE): Added. |
ab0538b8 AH |
13114 | (m32r_push_dummy_call): Use M32R_ARG_REGISTER_SIZE. |
13115 | ||
5430098f SDJ |
13116 | 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com> |
13117 | ||
13118 | * windows-nat.c (windows_create_inferior): Declare 'toexec' as | |
13119 | 'const char *'. | |
13120 | ||
7c5ded6a SDJ |
13121 | 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com> |
13122 | ||
13123 | * common/common-utils.c (free_vector_argv): New function. | |
13124 | * common/common-utils.h: Include <vector>. | |
13125 | (free_vector_argv): New prototype. | |
13126 | * darwin-nat.c (darwin_create_inferior): Rewrite function | |
13127 | prototype in order to constify "exec_file" and accept a | |
13128 | "std::string" for "allargs". | |
13129 | * fork-child.c: Include <vector>. | |
13130 | (breakup_args): Rewrite function, using C++. | |
13131 | (fork_inferior): Rewrite function header, constify "exec_file_arg" | |
13132 | and accept "std::string" for "allargs". Update the code to | |
13133 | calculate "argv" based on "allargs". Update calls to "exec_fun" | |
13134 | and "execvp". | |
13135 | * gnu-nat.c (gnu_create_inferior): Rewrite function prototype in | |
13136 | order to constify "exec_file" and accept a "std::string" for | |
13137 | "allargs". | |
13138 | * go32-nat.c (go32_create_inferior): Likewise. | |
13139 | * inf-ptrace.c (inf_ptrace_create_inferior): Likewise. | |
13140 | * infcmd.c (run_command_1): Constify "exec_file". Use | |
13141 | "std::string" for inferior arguments. | |
13142 | * inferior.h (fork_inferior): Update prototype. | |
13143 | * linux-nat.c (linux_nat_create_inferior): Rewrite function | |
13144 | prototype in order to constify "exec_file" and accept a | |
13145 | "std::string" for "allargs". | |
13146 | * nto-procfs.c (procfs_create_inferior): Likewise. | |
13147 | * procfs.c (procfs_create_inferior): Likewise. | |
13148 | * remote-sim.c (gdbsim_create_inferior): Likewise. | |
13149 | * remote.c (extended_remote_run): Update code to accept | |
13150 | "std::string" as argument. | |
13151 | (extended_remote_create_inferior): Rewrite function prototype in | |
13152 | order to constify "exec_file" and accept a "std::string" for | |
13153 | "allargs". | |
13154 | * rs6000-nat.c (super_create_inferior): Likewise. | |
13155 | (rs6000_create_inferior): Likewise. | |
13156 | * target.h (struct target_ops) <to_create_inferior>: Likewise. | |
13157 | * windows-nat.c (windows_create_inferior): Likewise. | |
13158 | ||
ae0eee42 PA |
13159 | 2017-04-11 Pedro Alves <palves@redhat.com> |
13160 | ||
13161 | * thread.c: Fix whitespace throughout. | |
13162 | ||
a6acac06 PR |
13163 | 2017-04-11 Philipp Rudo <prudo@linux.vnet.ibm.com> |
13164 | ||
13165 | * linux-nat.c (linux_nat_detach): Remove delete_lwp call. | |
13166 | ||
64403bd1 AH |
13167 | 2017-04-11 Alan Hayward <alan.hayward@arm.com> |
13168 | ||
13169 | * arm-tdep.c (arm_store_return_value): Use FP_REGISTER_SIZE | |
13170 | ||
a5bef50f SDJ |
13171 | 2017-04-10 Sergio Durigan Junior <sergiodj@redhat.com> |
13172 | ||
13173 | PR gdb/21364 | |
13174 | * osdata.c (info_osdata): Check if 'type' is an empty string | |
13175 | instead of NULL. | |
13176 | ||
9295a5a9 PA |
13177 | 2017-04-10 Pedro Alves <palves@redhat.com> |
13178 | ||
13179 | * thread.c (add_thread_silent, delete_thread_1, find_thread_ptid) | |
13180 | (ptid_to_global_thread_id, in_thread_list) | |
13181 | (do_captured_list_thread_ids, set_resumed, set_running) | |
13182 | (set_executing, set_stop_requested, finish_thread_state) | |
13183 | (validate_registers_access, can_access_registers_ptid) | |
13184 | (print_thread_info_1, switch_to_thread) | |
13185 | (do_restore_current_thread_cleanup) | |
13186 | (make_cleanup_restore_current_thread, thread_command) | |
13187 | (thread_name_command): Use operator== instead of ptid_equal. | |
13188 | ||
996812e3 PA |
13189 | 2017-04-10 Pedro Alves <palves@redhat.com> |
13190 | ||
13191 | * thread.c (struct current_thread_cleanup) <next>: Delete field. | |
13192 | (current_thread_cleanup_chain): Delete. | |
13193 | (restore_current_thread_cleanup_dtor) | |
13194 | (make_cleanup_restore_current_thread): Remove references to | |
13195 | current_thread_cleanup_chain. | |
13196 | ||
845b344f AH |
13197 | 2017-04-10 Alan Hayward <alan.hayward@arm.com> |
13198 | ||
13199 | * msp430-tdep.c (msp430_pseudo_register_read): Never return | |
13200 | REG_UNKNOWN. | |
13201 | ||
803bdfe4 YQ |
13202 | 2017-04-10 Yao Qi <yao.qi@linaro.org> |
13203 | ||
13204 | PR gdb/19942 | |
13205 | * gdbthread.h (thread_info::deletable): New method. | |
13206 | (thread_info::incref): New method. | |
13207 | (thread_info::decref): New method. | |
13208 | (thread_info::refcount): Move it to private. | |
13209 | * infrun.c (save_stop_context): Call inc_refcount. | |
13210 | (release_stop_context_cleanup): Likewise. | |
13211 | * thread.c (set_thread_exited): New function. | |
13212 | (init_thread_list): Delete "tp" only it is deletable, otherwise | |
13213 | call set_thread_exited. | |
13214 | (delete_thread_1): Call set_thread_exited. | |
13215 | (current_thread_cleanup) <inferior_pid>: Remove. | |
13216 | <thread>: New field. | |
13217 | (restore_current_thread_ptid_changed): Removed. | |
13218 | (do_restore_current_thread_cleanup): Adjust. | |
13219 | (restore_current_thread_cleanup_dtor): Don't call | |
13220 | find_thread_ptid. | |
13221 | (set_thread_refcount): Use dec_refcount. | |
13222 | (make_cleanup_restore_current_thread): Adjust. | |
13223 | (thread_apply_all_command): Call inc_refcount. | |
13224 | (_initialize_thread): Don't call | |
13225 | observer_attach_thread_ptid_changed. | |
13226 | ||
8c25b497 YQ |
13227 | 2017-04-10 Yao Qi <yao.qi@linaro.org> |
13228 | ||
13229 | * thread.c (delete_thread_1): Hoist code on marking thread as | |
13230 | exited. | |
13231 | ||
8473b447 SM |
13232 | 2017-04-09 Simon Marchi <simon.marchi@polymtl.ca> |
13233 | ||
13234 | * windows-nat.c (windows_detach): Initialize ptid with | |
13235 | minus_one_ptid. | |
13236 | ||
6670ec13 SM |
13237 | 2017-04-07 Simon Marchi <simon.marchi@ericsson.com> |
13238 | ||
13239 | * unittests/ptid-selftests.c: Fix erroneous assert messages. | |
13240 | ||
ba2f91bb AH |
13241 | 2017-04-07 Alan Hayward <alan.hayward@arm.com> |
13242 | ||
13243 | * bfin-tdep.c (BFIN_MAX_REGISTER_SIZE): Add. | |
13244 | (bfin_pseudo_register_read): Use BFIN_MAX_REGISTER_SIZE. | |
13245 | (bfin_pseudo_register_write): Likewise | |
13246 | ||
436252de SM |
13247 | 2017-04-06 Simon Marchi <simon.marchi@ericsson.com> |
13248 | ||
13249 | * common/ptid.h (struct ptid): Change to... | |
13250 | (class ptid_t): ... this. | |
13251 | <ptid_t>: New constructors. | |
13252 | <pid, lwp_p, lwp, tid_p, tid, is_pid, operator==, operator!=, | |
13253 | matches>: New methods. | |
13254 | <make_null, make_minus_one>: New static methods. | |
13255 | <pid>: Rename to... | |
13256 | <m_pid>: ...this. | |
13257 | <lwp>: Rename to... | |
13258 | <m_lwp>: ...this. | |
13259 | <tid>: Rename to... | |
13260 | <m_tid>: ...this. | |
13261 | (ptid_build, ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, | |
13262 | ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match): Take ptid arguments | |
13263 | as references, move comment to class ptid_t. | |
13264 | * common/ptid.c (null_ptid, minus_one_ptid): Initialize with | |
13265 | ptid_t static methods. | |
13266 | (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_tid, | |
13267 | ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match): | |
13268 | Take ptid arguments as references, implement using ptid_t methods. | |
13269 | * unittests/ptid-selftests.c: New file. | |
13270 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add | |
13271 | unittests/ptid-selftests.c. | |
13272 | (SUBDIR_UNITTESTS_OBS): Add unittests/ptid-selftests.o. | |
13273 | ||
0dedf377 TP |
13274 | 2017-04-06 Thomas Preud'homme <thomas.preudhomme@arm.com> |
13275 | ||
13276 | * python/python.c (python_run_simple_file): Cast mode literal to | |
13277 | non-const char pointer as expected by PyFile_FromString. | |
13278 | ||
4e9868d4 SM |
13279 | 2017-04-05 Simon Marchi <simon.marchi@ericsson.com> |
13280 | ||
13281 | * common/ptid.c (ptid_lwp_p, ptid_tid_p): Remove comparison with | |
13282 | minus_one_ptid and null_ptid. | |
13283 | ||
9bf2a700 PA |
13284 | 2017-04-05 Pedro Alves <palves@redhat.com> |
13285 | ||
13286 | * warning.m4 (build_warnings): Remove -Wno-write-strings. | |
13287 | * configure: Regenerate. | |
13288 | ||
a121b7c1 PA |
13289 | 2017-04-05 Pedro Alves <palves@redhat.com> |
13290 | ||
13291 | * ada-exp.y (yyerror): Constify. | |
13292 | * ada-lang.c (bound_name, get_selections) | |
13293 | (ada_variant_discrim_type) | |
13294 | (ada_variant_discrim_name, ada_value_struct_elt) | |
13295 | (ada_lookup_struct_elt_type, is_unchecked_variant) | |
13296 | (ada_which_variant_applies, standard_exc, ada_get_next_arg) | |
13297 | (catch_ada_exception_command_split) | |
13298 | (catch_ada_assert_command_split, catch_assert_command) | |
13299 | (ada_op_name): Constify. | |
13300 | * ada-lang.h (ada_yyerror, get_selections) | |
13301 | (ada_variant_discrim_name, ada_value_struct_elt): Constify. | |
13302 | * arc-tdep.c (arc_print_frame_cache): Constify. | |
13303 | * arm-tdep.c (arm_skip_stub): Constify. | |
13304 | * ax-gdb.c (gen_binop, gen_struct_ref_recursive, gen_struct_ref) | |
13305 | (gen_aggregate_elt_ref): Constify. | |
13306 | * bcache.c (print_bcache_statistics): Constify. | |
13307 | * bcache.h (print_bcache_statistics): Constify. | |
13308 | * break-catch-throw.c (catch_exception_command_1): | |
13309 | * breakpoint.c (struct ep_type_description::description): | |
13310 | Constify. | |
13311 | (add_solib_catchpoint): Constify. | |
13312 | (catch_fork_command_1): Add cast. | |
13313 | (add_catch_command): Constify. | |
13314 | * breakpoint.h (add_catch_command, add_solib_catchpoint): | |
13315 | Constify. | |
13316 | * bsd-uthread.c (bsd_uthread_state): Constify. | |
13317 | * buildsym.c (patch_subfile_names): Constify. | |
13318 | * buildsym.h (next_symbol_text_func, patch_subfile_names): | |
13319 | Constify. | |
13320 | * c-exp.y (yyerror): Constify. | |
13321 | (token::oper): Constify. | |
13322 | * c-lang.h (c_yyerror, cp_print_class_member): Constify. | |
13323 | * c-varobj.c (cplus_describe_child): Constify. | |
13324 | * charset.c (find_charset_names): Add cast. | |
13325 | (find_charset_names): Constify array and add const_cast. | |
13326 | * cli/cli-cmds.c (complete_command, cd_command): Constify. | |
13327 | (edit_command): Constify. | |
13328 | * cli/cli-decode.c (lookup_cmd): Constify. | |
13329 | * cli/cli-dump.c (dump_memory_command, dump_value_command): | |
13330 | Constify. | |
13331 | (struct dump_context): Constify. | |
13332 | (add_dump_command, restore_command): Constify. | |
13333 | * cli/cli-script.c (get_command_line): Constify. | |
13334 | * cli/cli-script.h (get_command_line): Constify. | |
13335 | * cli/cli-utils.c (check_for_argument): Constify. | |
13336 | * cli/cli-utils.h (check_for_argument): Constify. | |
13337 | * coff-pe-read.c (struct read_pe_section_data): Constify. | |
13338 | * command.h (lookup_cmd): Constify. | |
13339 | * common/print-utils.c (decimal2str): Constify. | |
13340 | * completer.c (gdb_print_filename): Constify. | |
13341 | * corefile.c (set_gnutarget): Constify. | |
13342 | * cp-name-parser.y (yyerror): Constify. | |
13343 | * cp-valprint.c (cp_print_class_member): Constify. | |
13344 | * cris-tdep.c (cris_register_name, crisv32_register_name): | |
13345 | Constify. | |
13346 | * d-exp.y (yyerror): Constify. | |
13347 | (struct token::oper): Constify. | |
13348 | * d-lang.h (d_yyerror): Constify. | |
13349 | * dbxread.c (struct header_file_location::name): Constify. | |
13350 | (add_old_header_file, add_new_header_file, last_function_name) | |
13351 | (dbx_next_symbol_text, add_bincl_to_list) | |
13352 | (find_corresponding_bincl_psymtab, set_namestring) | |
13353 | (find_stab_function_addr, read_dbx_symtab, start_psymtab) | |
13354 | (dbx_end_psymtab, read_ofile_symtab, process_one_symbol): | |
13355 | * defs.h (command_line_input, print_address_symbolic) | |
13356 | (deprecated_readline_begin_hook): Constify. | |
13357 | * dwarf2read.c (anonymous_struct_prefix, dwarf_bool_name): | |
13358 | Constify. | |
13359 | * event-top.c (handle_line_of_input): Constify and add cast. | |
13360 | * exceptions.c (catch_errors): Constify. | |
13361 | * exceptions.h (catch_errors): Constify. | |
13362 | * expprint.c (print_subexp_standard, op_string, op_name) | |
13363 | (op_name_standard, dump_raw_expression, dump_raw_expression): | |
13364 | * expression.h (op_name, op_string, dump_raw_expression): | |
13365 | Constify. | |
13366 | * f-exp.y (yyerror): Constify. | |
13367 | (struct token::oper): Constify. | |
13368 | (struct f77_boolean_val::name): Constify. | |
13369 | * f-lang.c (f_word_break_characters): Constify. | |
13370 | * f-lang.h (f_yyerror): Constify. | |
13371 | * fork-child.c (fork_inferior): Add cast. | |
13372 | * frv-tdep.c (struct gdbarch_tdep::register_names): Constify. | |
13373 | (new_variant): Constify. | |
13374 | * gdbarch.sh (pstring_ptr, pstring_list): Constify. | |
13375 | * gdbarch.c: Regenerate. | |
13376 | * gdbcore.h (set_gnutarget): Constify. | |
13377 | * go-exp.y (yyerror): Constify. | |
13378 | (token::oper): Constify. | |
13379 | * go-lang.h (go_yyerror): Constify. | |
13380 | * go32-nat.c (go32_sysinfo): Constify. | |
13381 | * guile/scm-breakpoint.c (gdbscm_breakpoint_expression): Constify. | |
13382 | * guile/scm-cmd.c (cmdscm_function): Constify. | |
13383 | * guile/scm-param.c (pascm_param_value): Constify. | |
13384 | * h8300-tdep.c (h8300_register_name, h8300s_register_name) | |
13385 | (h8300sx_register_name): Constify. | |
13386 | * hppa-tdep.c (hppa32_register_name, hppa64_register_name): | |
13387 | Constify. | |
13388 | * ia64-tdep.c (ia64_register_names): Constify. | |
13389 | * infcmd.c (construct_inferior_arguments): Constify. | |
13390 | (path_command, attach_post_wait): Constify. | |
13391 | * language.c (show_range_command, show_case_command) | |
13392 | (unk_lang_error): Constify. | |
13393 | * language.h (language_defn::la_error) | |
13394 | (language_defn::la_name_of_this): Constify. | |
13395 | * linespec.c (decode_line_2): Constify. | |
13396 | * linux-thread-db.c (thread_db_err_str): Constify. | |
13397 | * lm32-tdep.c (lm32_register_name): Constify. | |
13398 | * m2-exp.y (yyerror): Constify. | |
13399 | * m2-lang.h (m2_yyerror): Constify. | |
13400 | * m32r-tdep.c (m32r_register_names): Constify and make static. | |
13401 | * m68hc11-tdep.c (m68hc11_register_names): Constify. | |
13402 | * m88k-tdep.c (m88k_register_name): Constify. | |
13403 | * macroexp.c (appendmem): Constify. | |
13404 | * mdebugread.c (fdr_name, add_data_symbol, parse_type) | |
13405 | (upgrade_type, parse_external, parse_partial_symbols) | |
13406 | (mdebug_next_symbol_text, cross_ref, mylookup_symbol, new_psymtab) | |
13407 | (new_symbol): Constify. | |
13408 | * memattr.c (mem_info_command): Constify. | |
13409 | * mep-tdep.c (register_name_from_keyword): Constify. | |
13410 | * mi/mi-cmd-env.c (mi_cmd_env_path, _initialize_mi_cmd_env): | |
13411 | Constify. | |
13412 | * mi/mi-cmd-stack.c (list_args_or_locals): Constify. | |
13413 | * mi/mi-cmd-var.c (mi_cmd_var_show_attributes): Constify. | |
13414 | * mi/mi-main.c (captured_mi_execute_command): Constify and add | |
13415 | cast. | |
13416 | (mi_execute_async_cli_command): Constify. | |
13417 | * mips-tdep.c (mips_register_name): Constify. | |
13418 | * mn10300-tdep.c (register_name, mn10300_generic_register_name) | |
13419 | (am33_register_name, am33_2_register_name) | |
13420 | * moxie-tdep.c (moxie_register_names): Constify. | |
13421 | * nat/linux-osdata.c (osdata_type): Constify fields. | |
13422 | * nto-tdep.c (nto_parse_redirection): Constify. | |
13423 | * objc-lang.c (lookup_struct_typedef, lookup_objc_class) | |
13424 | (lookup_child_selector): Constify. | |
13425 | (objc_methcall::name): Constify. | |
13426 | * objc-lang.h (lookup_objc_class, lookup_child_selector) | |
13427 | (lookup_struct_typedef): Constify. | |
13428 | * objfiles.c (pc_in_section): Constify. | |
13429 | * objfiles.h (pc_in_section): Constify. | |
13430 | * p-exp.y (struct token::oper): Constify. | |
13431 | (yyerror): Constify. | |
13432 | * p-lang.h (pascal_yyerror): Constify. | |
13433 | * parser-defs.h (op_name_standard): Constify. | |
13434 | (op_print::string): Constify. | |
13435 | (exp_descriptor::op_name): Constify. | |
13436 | * printcmd.c (print_address_symbolic): Constify. | |
13437 | * psymtab.c (print_partial_symbols): Constify. | |
13438 | * python/py-breakpoint.c (stop_func): Constify. | |
13439 | (bppy_get_expression): Constify. | |
13440 | * python/py-cmd.c (cmdpy_completer::name): Constify. | |
13441 | (cmdpy_function): Constify. | |
13442 | * python/py-event.c (evpy_add_attribute) | |
13443 | (gdbpy_initialize_event_generic): Constify. | |
13444 | * python/py-event.h (evpy_add_attribute) | |
13445 | (gdbpy_initialize_event_generic): Constify. | |
13446 | * python/py-evts.c (add_new_registry): Constify. | |
13447 | * python/py-finishbreakpoint.c (outofscope_func): Constify. | |
13448 | * python/py-framefilter.c (get_py_iter_from_func): Constify. | |
13449 | * python/py-inferior.c (get_buffer): Add cast. | |
13450 | * python/py-param.c (parm_constant::name): Constify. | |
13451 | * python/py-unwind.c (fprint_frame_id): Constify. | |
13452 | * python/python.c (gdbpy_parameter_value): Constify. | |
13453 | * remote-fileio.c (remote_fio_func_map): Make 'name' const. | |
13454 | * remote.c (memory_packet_config::name): Constify. | |
13455 | (show_packet_config_cmd, remote_write_bytes) | |
13456 | (remote_buffer_add_string): | |
13457 | * reverse.c (exec_reverse_once): Constify. | |
13458 | * rs6000-tdep.c (variant::name, variant::description): Constify. | |
13459 | * rust-exp.y (rustyyerror): Constify. | |
13460 | * rust-lang.c (rust_op_name): Constify. | |
13461 | * rust-lang.h (rustyyerror): Constify. | |
13462 | * serial.h (serial_ops::name): Constify. | |
13463 | * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name) | |
13464 | (sh_sh3e_register_name, sh_sh2e_register_name) | |
13465 | (sh_sh2a_register_name, sh_sh2a_nofpu_register_name) | |
13466 | (sh_sh_dsp_register_name, sh_sh3_dsp_register_name) | |
13467 | (sh_sh4_register_name, sh_sh4_nofpu_register_name) | |
13468 | (sh_sh4al_dsp_register_name): Constify. | |
13469 | * sh64-tdep.c (sh64_register_name): Constify. | |
13470 | * solib-darwin.c (lookup_symbol_from_bfd): Constify. | |
13471 | * spu-tdep.c (spu_register_name, info_spu_dma_cmdlist): Constify. | |
13472 | * stabsread.c (patch_block_stabs, read_type_number) | |
13473 | (ref_map::stabs, ref_add, process_reference) | |
13474 | (symbol_reference_defined, define_symbol, define_symbol) | |
13475 | (error_type, read_type, read_member_functions, read_cpp_abbrev) | |
13476 | (read_one_struct_field, read_struct_fields, read_baseclasses) | |
13477 | (read_tilde_fields, read_struct_type, read_array_type) | |
13478 | (read_enum_type, read_sun_builtin_type, read_sun_floating_type) | |
13479 | (read_huge_number, read_range_type, read_args, common_block_start) | |
13480 | (find_name_end): Constify. | |
13481 | * stabsread.h (common_block_start, define_symbol) | |
13482 | (process_one_symbol, symbol_reference_defined, ref_add): | |
13483 | * symfile.c (get_section_index, add_symbol_file_command): | |
13484 | * symfile.h (get_section_index): Constify. | |
13485 | * target-descriptions.c (tdesc_type::name): Constify. | |
13486 | (tdesc_free_type): Add cast. | |
13487 | * target.c (find_default_run_target): | |
13488 | (add_deprecated_target_alias, find_default_run_target) | |
13489 | (target_announce_detach): Constify. | |
13490 | (do_option): Constify. | |
13491 | * target.h (add_deprecated_target_alias): Constify. | |
13492 | * thread.c (print_thread_info_1): Constify. | |
13493 | * top.c (deprecated_readline_begin_hook, command_line_input): | |
13494 | Constify. | |
13495 | (init_main): Add casts. | |
13496 | * top.h (handle_line_of_input): Constify. | |
13497 | * tracefile-tfile.c (tfile_write_uploaded_tsv): Constify. | |
13498 | * tracepoint.c (tvariables_info_1, trace_status_mi): Constify. | |
13499 | (tfind_command): Rename to ... | |
13500 | (tfind_command_1): ... this and constify. | |
13501 | (tfind_command): New function. | |
13502 | (tfind_end_command, tfind_start_command): Adjust. | |
13503 | (encode_source_string): Constify. | |
13504 | * tracepoint.h (encode_source_string): Constify. | |
13505 | * tui/tui-data.c (tui_partial_win_by_name): Constify. | |
13506 | * tui/tui-data.h (tui_partial_win_by_name): Constify. | |
13507 | * tui/tui-source.c (tui_set_source_content_nil): Constify. | |
13508 | * tui/tui-source.h (tui_set_source_content_nil): Constify. | |
13509 | * tui/tui-win.c (parse_scrolling_args): Constify. | |
13510 | * tui/tui-windata.c (tui_erase_data_content): Constify. | |
13511 | * tui/tui-windata.h (tui_erase_data_content): Constify. | |
13512 | * tui/tui-winsource.c (tui_erase_source_content): Constify. | |
13513 | * tui/tui.c (tui_enable): Add cast. | |
13514 | * utils.c (defaulted_query): Constify. | |
13515 | (init_page_info): Add cast. | |
13516 | (puts_debug, subset_compare): Constify. | |
13517 | * utils.h (subset_compare): Constify. | |
13518 | * varobj.c (varobj_format_string): Constify. | |
13519 | * varobj.h (varobj_format_string): Constify. | |
13520 | * vax-tdep.c (vax_register_name): Constify. | |
13521 | * windows-nat.c (windows_detach): Constify. | |
13522 | * xcoffread.c (process_linenos, xcoff_next_symbol_text): Constify. | |
13523 | * xml-support.c (gdb_xml_end_element): Constify. | |
13524 | * xml-tdesc.c (tdesc_start_reg): Constify. | |
13525 | * xstormy16-tdep.c (xstormy16_register_name): Constify. | |
13526 | * xtensa-tdep.c (xtensa_find_register_by_name): Constify. | |
13527 | * xtensa-tdep.h (xtensa_register_t::name): Constify. | |
13528 | ||
995816ba PA |
13529 | 2017-04-05 Pedro Alves <palves@redhat.com> |
13530 | ||
13531 | * proc-api.c (struct trans): Constify. | |
13532 | (procfs_note): Constify. | |
13533 | * proc-events.c (struct trans, syscall_table): | |
13534 | * proc-flags.c (struct trans): Constify. | |
13535 | * proc-utils.h (procfs_note): Constify. | |
13536 | * proc-why.c (struct trans): Constify. | |
13537 | * procfs.c (dead_procinfo, find_syscall, proc_warn, proc_error) | |
13538 | (procfs_detach): Constify. | |
13539 | * sol-thread.c (struct string_map): Constify. | |
13540 | (td_err_string, td_state_string): Constify. | |
13541 | ||
3e83a920 PA |
13542 | 2017-04-05 Pedro Alves <palves@redhat.com> |
13543 | ||
13544 | * proc-api.c (procfs_filename): Don't initialize | |
13545 | procfs_filename. | |
13546 | (prepare_to_trace): Assume procfs_filename is non-NULL. | |
13547 | (_initialize_proc_api): Give procfs_filename a default value here. | |
13548 | ||
63160a43 PA |
13549 | 2017-04-05 Pedro Alves <palves@redhat.com> |
13550 | ||
13551 | * break-catch-throw.c (handle_gnu_v3_exceptions): Constify | |
13552 | 'cond_string' parameter. | |
13553 | (extract_exception_regexp): Constify 'string' parameter. | |
13554 | (catch_exception_command_1): Constify. | |
13555 | * breakpoint.c (init_catchpoint) | |
13556 | (create_fork_vfork_event_catchpoint): Constify 'cond_string' | |
13557 | parameter. | |
13558 | (ep_parse_optional_if_clause, catch_fork_command_1) | |
13559 | (catch_exec_command_1): Constify. | |
13560 | * breakpoint.h (init_catchpoint): Constify 'cond_string' | |
13561 | parameter. | |
13562 | (ep_parse_optional_if_clause): Constify. | |
13563 | * cli/cli-utils.c (remove_trailing_whitespace) | |
13564 | (check_for_argument): Constify. | |
13565 | * cli/cli-utils.h (remove_trailing_whitespace): Constify and add | |
13566 | non-const overload. | |
13567 | (check_for_argument): Likewise. | |
13568 | ||
9b2eba3d PA |
13569 | 2017-04-05 Pedro Alves <palves@redhat.com> |
13570 | ||
13571 | * event-top.c (command_line_handler): Add cast to execute_command | |
13572 | call. | |
13573 | * record-btrace.c (cmd_record_btrace_bts_start) | |
13574 | (cmd_record_btrace_pt_start, cmd_record_btrace_start) | |
13575 | (cmd_record_btrace_start): Add cast to execute_command call. | |
13576 | * record-full.c (record_full_goto_insn): | |
13577 | * record.c (record_start, record_stop): Add cast to | |
13578 | execute_command_to_string calls. | |
13579 | (cmd_record_start): Add cast to execute_command calls. | |
13580 | ||
2adadf51 PA |
13581 | 2017-04-05 Pedro Alves <palves@redhat.com> |
13582 | ||
13583 | * python/python-internal.h (gdb_PyArg_ParseTupleAndKeywords): New | |
13584 | static inline function. | |
13585 | * python/py-arch.c (archpy_disassemble): Constify 'keywords' | |
13586 | array and use gdb_PyArg_ParseTupleAndKeywords. | |
13587 | * python/py-cmd.c (cmdpy_init): Likewise. | |
13588 | * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise. | |
13589 | * python/py-inferior.c (infpy_read_memory, infpy_write_memory) | |
13590 | (infpy_search_memory): Likewise. | |
13591 | * python/py-objfile.c (objfpy_add_separate_debug_file) | |
13592 | (gdbpy_lookup_objfile): Likewise. | |
13593 | * python/py-symbol.c (gdbpy_lookup_symbol) | |
13594 | (gdbpy_lookup_global_symbol): Likewise. | |
13595 | * python/py-type.c (gdbpy_lookup_type): Likewise. | |
13596 | * python/py-value.c (valpy_lazy_string, valpy_string): Likewise. | |
13597 | * python/python.c (execute_gdb_command, gdbpy_write, gdbpy_flush): | |
13598 | Likewise. | |
13599 | ||
0d1f4ceb PA |
13600 | 2017-04-05 Pedro Alves <palves@redhat.com> |
13601 | ||
13602 | * python/python-internal.h (gdb_PyGetSetDef): New type. | |
13603 | * python/py-block.c (block_object_getset) | |
13604 | (breakpoint_object_getset): Now a gdb_PyGetSetDef array. | |
13605 | * python/py-event.c (event_object_getset) | |
13606 | (finish_breakpoint_object_getset): Likewise. | |
13607 | * python/py-inferior.c (inferior_object_getset): Likewise. | |
13608 | * python/py-infthread.c (thread_object_getset): Likewise. | |
13609 | * python/py-lazy-string.c (lazy_string_object_getset): Likewise. | |
13610 | * python/py-linetable.c (linetable_entry_object_getset): Likewise. | |
13611 | * python/py-objfile.c (objfile_getset): Likewise. | |
13612 | * python/py-progspace.c (pspace_getset): Likewise. | |
13613 | * python/py-record-btrace.c (btpy_insn_getset, btpy_call_getset): | |
13614 | Likewise. | |
13615 | * python/py-record.c (recpy_record_getset): Likewise. | |
13616 | * python/py-symbol.c (symbol_object_getset): Likewise. | |
13617 | * python/py-symtab.c (symtab_object_getset, sal_object_getset): | |
13618 | Likewise. | |
13619 | * python/py-type.c (type_object_getset, field_object_getset): | |
13620 | Likewise. | |
13621 | * python/py-value.c (value_object_getset): Likewise. | |
13622 | ||
4d759979 PA |
13623 | 2017-04-05 Pedro Alves <palves@redhat.com> |
13624 | ||
13625 | * python/python-internal.h (gdb_PyObject_CallMethod) | |
13626 | (gdb_PyErr_NewException, gdb_PySys_GetObject, gdb_PySys_SetPath): | |
13627 | New functions. | |
13628 | (GDB_PYSYS_SETPATH_CHAR, PyObject_CallMethod, PyErr_NewException) | |
13629 | (PySys_GetObject, PySys_SetPath): New macros. | |
13630 | ||
fdf9e36f PA |
13631 | 2017-04-05 Pedro Alves <palves@redhat.com> |
13632 | ||
13633 | * mi/mi-cmd-info.c (mi_cmd_info_os): Call info_osdata instead of | |
13634 | info_osdata_command. | |
13635 | * osdata.c (info_osdata_command): Rename to ... | |
13636 | (info_osdata): ... this. Constify 'type' parameter, and remove | |
13637 | the 'from_tty' parameter. Accept NULL TYPE. | |
13638 | (info_osdata_command): New function. | |
13639 | * osdata.h (info_osdata_command): Remove declaration. | |
13640 | (info_osdata): New declaration. | |
13641 | ||
9f33b8b7 PA |
13642 | 2017-04-05 Pedro Alves <palves@redhat.com> |
13643 | ||
13644 | * mi/mi-cmd-break.c (mi_cmd_break_insert_1, mi_cmd_break_insert) | |
13645 | (mi_cmd_dprintf_insert, mi_cmd_break_passcount) | |
13646 | (mi_cmd_break_watch, mi_cmd_break_commands): Constify 'command' | |
13647 | parameter. | |
13648 | * mi/mi-cmd-catch.c (mi_cmd_catch_assert, mi_cmd_catch_exception) | |
13649 | (mi_cmd_catch_load, mi_cmd_catch_unload): Constify cmd' parameter. | |
13650 | * mi/mi-cmd-disas.c (mi_cmd_disassemble): Constify 'command' | |
13651 | parameter. | |
13652 | * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_cd, mi_cmd_env_path) | |
13653 | (mi_cmd_env_dir, mi_cmd_inferior_tty_set, _cmd_inferior_tty_show) | |
13654 | * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file) | |
13655 | (mi_cmd_file_list_exec_source_files) | |
13656 | (mi_cmd_file_list_shared_libraries): Constify 'command' parameter. | |
13657 | * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions) | |
13658 | (mi_cmd_info_gdb_mi_command, mi_cmd_info_os): Constify 'command' | |
13659 | parameter. | |
13660 | * mi/mi-cmd-stack.c (mi_cmd_enable_frame_filters) | |
13661 | (mi_cmd_stack_list_frames, mi_cmd_stack_info_depth) | |
13662 | (mi_cmd_stack_list_locals, mi_cmd_stack_list_args) | |
13663 | (mi_cmd_stack_list_variables, mi_cmd_stack_select_frame) | |
13664 | (mi_cmd_stack_info_frame): Constify 'command' parameter. | |
13665 | * mi/mi-cmd-target.c (mi_cmd_target_file_get) | |
13666 | (mi_cmd_target_file_put, mi_cmd_target_file_delete): Constify | |
13667 | 'command' parameter. | |
13668 | * mi/mi-cmd-var.c (mi_cmd_var_create, mi_cmd_var_delete) | |
13669 | (mi_cmd_var_set_format, mi_cmd_var_set_visualizer) | |
13670 | (mi_cmd_var_set_frozen, mi_cmd_var_show_format) | |
13671 | (mi_cmd_var_info_num_children, mi_cmd_var_list_children) | |
13672 | (mi_cmd_var_info_type, mi_cmd_var_info_path_expression) | |
13673 | (mi_cmd_var_info_expression, mi_cmd_var_show_attributes) | |
13674 | (mi_cmd_var_evaluate_expression, mi_cmd_var_assign) | |
13675 | (mi_cmd_var_update, mi_cmd_enable_pretty_printing) | |
13676 | (mi_cmd_var_set_update_range): Constify 'command' parameter. | |
13677 | * mi/mi-cmds.h (mi_cmd_argv_ftype): Constify 'command' parameter. | |
13678 | * mi/mi-interp.c (mi_cmd_interpreter_exec): Constify 'command' | |
13679 | parameter. | |
13680 | * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_exec_next) | |
13681 | (mi_cmd_exec_next_instruction, mi_cmd_exec_step) | |
13682 | (mi_cmd_exec_step_instruction, mi_cmd_exec_finish) | |
13683 | (mi_cmd_exec_return ,mi_cmd_exec_jump, mi_cmd_exec_continue) | |
13684 | (mi_cmd_exec_interrupt, mi_cmd_exec_run, mi_cmd_target_detach) | |
13685 | (mi_cmd_target_flash_erase, mi_cmd_thread_select) | |
13686 | (mi_cmd_thread_list_ids, mi_cmd_thread_info) | |
13687 | (mi_cmd_list_thread_groups, mi_cmd_data_list_register_names) | |
13688 | (mi_cmd_data_list_changed_registers) | |
13689 | (mi_cmd_data_write_register_values) | |
13690 | (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory) | |
13691 | (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory) | |
13692 | (mi_cmd_data_write_memory_bytes, mi_cmd_enable_timings) | |
13693 | (mi_cmd_list_features, mi_cmd_list_target_features) | |
13694 | (mi_cmd_add_inferior, mi_cmd_remove_inferior) | |
13695 | (mi_cmd_trace_define_variable, mi_cmd_trace_list_variables) | |
13696 | (mi_cmd_trace_find, mi_cmd_trace_save, mi_cmd_trace_start) | |
13697 | (mi_cmd_trace_status, mi_cmd_trace_stop, mi_cmd_ada_task_info) | |
13698 | (mi_cmd_trace_frame_collected): Constify 'command' | |
13699 | parameter. | |
13700 | * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Constify | |
13701 | 'command' parameter. | |
13702 | ||
67cb5b2d PA |
13703 | 2017-04-05 Pedro Alves <palves@redhat.com> |
13704 | ||
13705 | * ada-lang.c (ada_completer_word_break_characters): Now a const | |
13706 | array. | |
13707 | (ada_get_gdb_completer_word_break_characters): Constify. | |
13708 | * completer.c (gdb_completer_command_word_break_characters) | |
13709 | (gdb_completer_file_name_break_characters) | |
13710 | (gdb_completer_quote_characters): Now const arrays. | |
13711 | (get_gdb_completer_quote_characters): Constify. | |
13712 | (set_rl_completer_word_break_characters): New function. | |
13713 | (set_gdb_completion_word_break_characters) | |
13714 | (complete_line_internal): Use it. | |
13715 | * completer.h (get_gdb_completer_quote_characters): Constify. | |
13716 | (set_rl_completer_word_break_characters): Declare. | |
13717 | * f-lang.c (f_word_break_characters): Constify. | |
13718 | * language.c (default_word_break_characters): Constify. | |
13719 | * language.h (language_defn::la_word_break_characters): Constify. | |
13720 | (default_word_break_characters): Constify. | |
13721 | * top.c (init_main): Use set_rl_completer_word_break_characters. | |
13722 | ||
7a114964 PA |
13723 | 2017-04-05 Pedro Alves <palves@redhat.com> |
13724 | ||
13725 | * aix-thread.c (aix_thread_pid_to_str) | |
13726 | (aix_thread_extra_thread_info): Constify. | |
13727 | * bsd-kvm.c (bsd_kvm_pid_to_str): Constify. | |
13728 | * bsd-uthread.c (bsd_uthread_extra_thread_info) | |
13729 | (bsd_uthread_pid_to_str): Constify. | |
13730 | * corelow.c (core_pid_to_str): Constify. | |
13731 | * darwin-nat.c (darwin_pid_to_str): Constify. | |
13732 | * fbsd-nat.c (fbsd_pid_to_str): Constify. | |
13733 | * fbsd-tdep.c (fbsd_core_pid_to_str, gdbarch_core_pid_to_str): | |
13734 | Constify. | |
13735 | * gnu-nat.c (gnu_pid_to_str): Constify. | |
13736 | * go32-nat.c (go32_pid_to_str): Constify. | |
13737 | * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Constify. | |
13738 | * inf-ptrace.c (inf_ptrace_pid_to_str): Constify. | |
13739 | * inferior.c (inferior_pid_to_str): Constify. | |
13740 | * linux-nat.c (linux_nat_pid_to_str): Constify. | |
13741 | * linux-tdep.c (linux_core_pid_to_str): Constify. | |
13742 | * linux-thread-db.c (thread_db_pid_to_str) | |
13743 | (thread_db_extra_thread_info): Constify. | |
13744 | * nto-tdep.c (nto_extra_thread_info): Constify. | |
13745 | * nto-tdep.h (nto_extra_thread_info): Constify. | |
13746 | * obsd-nat.c (obsd_pid_to_str): Constify. | |
13747 | * procfs.c (procfs_pid_to_str): Constify. | |
13748 | * ravenscar-thread.c (ravenscar_extra_thread_info) | |
13749 | (ravenscar_pid_to_str): Constify. | |
13750 | * remote-sim.c (gdbsim_pid_to_str): Constify. | |
13751 | * remote.c (remote_threads_extra_info, remote_pid_to_str): | |
13752 | Constify. | |
13753 | * sol-thread.c (solaris_pid_to_str): Constify. | |
13754 | * sol2-tdep.c (sol2_core_pid_to_str): Constify. | |
13755 | * sol2-tdep.h (sol2_core_pid_to_str): Constify. | |
13756 | * target.c (default_pid_to_str, target_pid_to_str) | |
13757 | (normal_pid_to_str, default_pid_to_str): Constify. | |
13758 | * target.h (target_ops::to_pid_to_str) | |
13759 | (target_ops::to_extra_thread_info): Constify. | |
13760 | (target_pid_to_str, normal_pid_to_str): Constify. | |
13761 | * windows-nat.c (windows_pid_to_str): Constify. | |
13762 | * gdbarch.sh (core_pid_to_str): Constify. | |
13763 | * target-delegates.c: Regenerate. | |
13764 | * gdbarch.h, gdbarch.c: Regenerate. | |
13765 | ||
69bbf465 PA |
13766 | 2017-04-05 Pedro Alves <palves@redhat.com> |
13767 | ||
13768 | * main.c (captured_main_1): Use gdb::unique_xmalloc_ptr to manage | |
13769 | the memory of the temporary warning_pre_print override. | |
13770 | * utils.c (warning_pre_print): Constify. | |
13771 | * utils.h (warning_pre_print): Constify. | |
13772 | ||
be47f9e8 PA |
13773 | 2017-04-05 Pedro Alves <palves@redhat.com> |
13774 | ||
13775 | * cli/cli-cmds.c (shell_escape): Constify 'arg' parameter. | |
13776 | (shell_command): New function. | |
13777 | (make_command): Use std::string. | |
13778 | (init_cli_cmds): Register shell_command instead of shell_escape. | |
13779 | ||
bde6261a PA |
13780 | 2017-04-05 Pedro Alves <palves@redhat.com> |
13781 | ||
13782 | * breakpoint.c (dprintf_function, dprintf_channel): Don't initialize. | |
13783 | * tracepoint.c (default_collect): Don't initialize. | |
13784 | ||
b38ef47f PA |
13785 | 2017-04-05 Pedro Alves <palves@redhat.com> |
13786 | ||
13787 | * macroexp.c (macro_buffer::shared): Now a bool. | |
13788 | (init_buffer): Update. | |
13789 | (init_shared_buffer): Constify 'addr' parameter. | |
13790 | (substitute_args, expand, macro_expand, macro_expand_next): Remove | |
13791 | casts. | |
13792 | ||
f995bbe8 PA |
13793 | 2017-04-05 Pedro Alves <palves@redhat.com> |
13794 | ||
13795 | * arm-tdep.c (show_disassembly_style_sfunc): Constify local. | |
13796 | * disasm.c (set_disassembler_options): Constify local. | |
13797 | * i386-tdep.c (i386_print_insn): Remove cast and FIXME comment. | |
13798 | ||
4a596fe2 SDJ |
13799 | 2017-04-05 Sergio Durigan Junior <sergiodj@redhat.com> |
13800 | ||
13801 | PR gdb/21352 | |
13802 | * tracefile.c (tsave_command): Fix argument parsing for '-r' | |
13803 | option. | |
13804 | ||
2cad08ea YQ |
13805 | 2017-04-05 Yao Qi <yao.qi@linaro.org> |
13806 | ||
13807 | * frame.c (frame_unwind_register_unsigned): Call | |
13808 | frame_unwind_register_value. | |
13809 | ||
55a98976 YQ |
13810 | 2017-04-05 Yao Qi <yao.qi@linaro.org> |
13811 | ||
13812 | * gdb.threads/thread-specific-bp.exp (check_thread_specific_breakpoint): | |
13813 | Use gdb_test_multiple, and don't match anchor. | |
13814 | ||
4ac40124 PA |
13815 | 2017-04-05 Pedro Alves <palves@redhat.com> |
13816 | ||
13817 | * MAINTAINERS (Global Maintainers): Add Simon Marchi. | |
13818 | (Write After Approval): Remove Simon Marchi. | |
13819 | ||
c053b654 PA |
13820 | 2017-04-05 Pedro Alves <palves@redhat.com> |
13821 | ||
13822 | * common/gdb_optional.h (optional::optional): Make constexpr and | |
13823 | initialize m_dummy. | |
13824 | ||
4c7bf4f9 JB |
13825 | 2017-04-04 John Baldwin <jhb@FreeBSD.org> |
13826 | ||
13827 | * amd64-fbsd-tdep.c: Remove "bsd-uthread.h" include. | |
13828 | (amd64fbsd_jmp_buf_reg_offset): Remove. | |
13829 | (amd64fbsd_supply_uthread): Remove function. | |
13830 | (amd64fbsd_collect_uthread): Remove function. | |
13831 | (amd64fbsd_init_abi): Don't set bsd-uthread callbacks. | |
13832 | * configure.tgt (i[34567]86-*-freebsd*): Remove bsd-uthread.o. | |
13833 | (x86_64-*-freebsd*): Remove bsd-uthread.o. | |
13834 | (fbsd-nat.c): Update comment. | |
13835 | * i386-fbsd-tdep.c: Remove "bsd-uthread.h" include. | |
13836 | (i386fbsd_jmp_buf_reg_offset): Remove. | |
13837 | (i386fbsd_supply_uthread): Remove function. | |
13838 | (i386fbsd_collect_uthread): Remove function. | |
13839 | (i386fbsd_init_abi): Don't set bsd-uthread callbacks. | |
13840 | ||
1e1a8bef JB |
13841 | 2017-04-04 John Baldwin <jhb@FreeBSD.org> |
13842 | ||
13843 | * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-fbsd-tdep.o. | |
13844 | (ALLDEPFILES): Remove alpha-fbsd-tdep.c | |
13845 | * NEWS: Mention that support for FreeBSD/alpha was removed. | |
13846 | * alpha-fbsd-tdep.c: Delete file. | |
13847 | * config/alpha/fbsd.mh: Delete file. | |
13848 | * configure.host: Delete alpha*-*-freebsd* and | |
13849 | alpha*-*-kfreebsd*-gnu. | |
13850 | * configure.tgt: Delete alpha*-*-freebsd* and | |
13851 | alpha*-*-kfreebsd*-gnu. | |
13852 | ||
49907934 JB |
13853 | 2017-04-04 John Baldwin <jhb@FreeBSD.org> |
13854 | ||
13855 | * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers, | |
13856 | amd64bsd_store_inferior_registers): Use ptid from regcache. | |
13857 | ||
6f77053d PA |
13858 | 2017-04-04 Pedro Alves <palves@redhat.com> |
13859 | ||
13860 | * dwarf2read.c (lnp_state_machine): Now a class. Initialize all | |
13861 | data fields, make them private and add "m_" prefixes. | |
13862 | (lnp_state_machine::lnp_state_machine): New ctor. | |
13863 | (record_line, check_line_address, handle_set_discriminator) | |
13864 | (handle_set_address, handle_advance_pc, handle_special_opcode) | |
13865 | (handle_advance_line, handle_set_file, handle_negate_stmt) | |
13866 | (handle_const_add_pc, handle_fixed_advance_pc, handle_copy) | |
13867 | (end_sequence, advance_line): New methods. | |
13868 | (m_gdbarch, m_record_lines_p): New fields. | |
13869 | (lnp_reader_state): Delete. | |
13870 | (dwarf_record_line): Rename to ... | |
13871 | (lnp_state_machine::record_line): ... adjust. | |
13872 | (init_lnp_state_machine): Delete. | |
13873 | (lnp_state_machine::lnp_state_machine): New. | |
13874 | (check_line_address): Rename to ... | |
13875 | (lnp_state_machine::check_line_address): This. | |
13876 | (dwarf_decode_lines_1): Remove reference to "reader_state". | |
13877 | Adjust lnp_state_machine having a non-default ctor. Use bool. | |
13878 | State machine internal state manipulation moved to | |
13879 | lnp_state_machine methods. | |
13880 | ||
9c541725 PA |
13881 | 2017-04-04 Pedro Alves <palves@redhat.com> |
13882 | ||
13883 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add | |
13884 | unittests/offset-type-selftests.c. | |
13885 | (SUBDIR_UNITTESTS_OBS): Add offset-type-selftests.o. | |
13886 | * common/offset-type.h: New file. | |
13887 | * common/preprocessor.h: New file. | |
13888 | * common/traits.h: New file. | |
13889 | * common/valid-expr.h: New file. | |
13890 | * dwarf2expr.c: Include "common/underlying.h". Adjust to use | |
13891 | sect_offset and cu_offset strong typedefs throughout. | |
13892 | * dwarf2expr.h: Adjust to use sect_offset and cu_offset strong | |
13893 | typedefs throughout. | |
13894 | * dwarf2loc.c: Include "common/underlying.h". Adjust to use | |
13895 | sect_offset and cu_offset strong typedefs throughout. | |
13896 | * dwarf2read.c: Adjust to use sect_offset and cu_offset strong | |
13897 | typedefs throughout. | |
13898 | * gdbtypes.h: Include "common/offset-type.h". | |
13899 | (cu_offset): Now an offset type (strong typedef) instead of a | |
13900 | struct. | |
13901 | (sect_offset): Likewise. | |
13902 | (union call_site_parameter_u): Rename "param_offset" field to | |
13903 | "param_cu_off". | |
13904 | * unittests/offset-type-selftests.c: New file. | |
13905 | ||
ecfb656c PA |
13906 | 2017-04-04 Pedro Alves <palves@redhat.com> |
13907 | ||
13908 | * common/underlying.h: New file. | |
13909 | * dwarf2read.c: Include "common/gdb_optional.h" and | |
13910 | "common/underlying.h". | |
13911 | (dir_index, file_name_index): New types. | |
13912 | (file_entry): Use them. | |
13913 | (file_entry::include): Use to_underlying. | |
13914 | (line_header::add_file_name): Use dir_index. | |
13915 | (read_formatted_entries): Use gdb::optional. Read form before | |
13916 | writting to file_entry. | |
13917 | (dwarf_decode_line_header): Use dir_index. | |
13918 | (lnp_state_machine::current_file): Use to_underlying. | |
13919 | (lnp_state_machine::file): Change type to file_name_index. | |
13920 | (dwarf_record_line): Use to_underlying. | |
13921 | (init_lnp_state_machine): Use file_name_index. | |
13922 | (dwarf_decode_lines_1): Use dir_index and file_name_index. | |
13923 | ||
d194f1fe PA |
13924 | 2017-04-04 Pedro Alves <palves@redhat.com> |
13925 | ||
13926 | * common/gdb_optional.h (gdb::optiona): Add operator->, operator*, | |
13927 | operator bool, has_value and get methods. | |
13928 | ||
fff8551c PA |
13929 | 2017-04-04 Pedro Alves <palves@redhat.com> |
13930 | ||
13931 | * dwarf2read.c (struct file_entry): Add ctors, and initialize all | |
13932 | fields. | |
13933 | (line_header): Initialize all data fields. Change type of | |
13934 | standard_opcode_lengths to std::unique_ptr<unsigned char[]>. | |
13935 | Change type of include_dirs to std::vector<const char *>. Remove | |
13936 | num_include_dirs, include_dirs_size. Change type of file_names to | |
13937 | std::vector<file_entry>. Remove num_file_names, file_names_size. | |
13938 | (line_header::line_header): New. | |
13939 | (line_header::add_include_dir, line_header::add_file_name): New | |
13940 | methods. | |
13941 | (line_header::include_dir_at): Remove NULL check. | |
13942 | (line_header::file_name_at): Add const overload. | |
13943 | (line_header_up): New unique_ptr typedef. | |
13944 | (dw2_get_file_names_reader): Use line_header_up. Adjust to use | |
13945 | std::vector. Remove free_line_header call. | |
13946 | (dwarf2_build_include_psymtabs): Use line_header_up. Remove | |
13947 | free_line_header call. | |
13948 | (free_cu_line_header): Delete. | |
13949 | (handle_DW_AT_stmt_list, handle_DW_AT_stmt_list) | |
13950 | (setup_type_unit_groups): Use line_header_up instead of cleanups. | |
13951 | Adjust to use std::vector. | |
13952 | (free_line_header): Delete. | |
13953 | (free_line_header_voidp): Use delete. | |
13954 | (add_include_dir): Replace with ... | |
13955 | (line_header::add_include_dir): ... this method. Use std::vector. | |
13956 | (add_file_name): Replace with ... | |
13957 | (line_header::add_file_name): ... this method. Use std::vector. | |
13958 | (add_include_dir_stub): Delete. | |
13959 | (read_formatted_entries): Remove memset. | |
13960 | (dwarf_decode_line_header): Return a line_header_up instead of a | |
13961 | raw pointer. Remove cleanup handling. Pass lambdas to | |
13962 | read_formatted_entries. Adjust to use line_header methods. | |
13963 | (dwarf_decode_lines_1): Adjust to use line_header methods. | |
13964 | (dwarf_decode_lines, file_file_name, file_full_name): Adjust to | |
13965 | use std::vector. | |
13966 | ||
d62a8ae2 SM |
13967 | 2017-04-04 Simon Marchi <simon.marchi@polymtl.ca> |
13968 | ||
13969 | * remote.c (set_general_thread, set_continue_thread): Use ptid_t | |
13970 | instead of struct ptid. | |
13971 | ||
db3a1dc7 AH |
13972 | 2017-05-04 Alan Hayward <alan.hayward@arm.com> |
13973 | ||
13974 | * frame.c (get_frame_register_bytes): Unwind using value. | |
13975 | (put_frame_register_bytes): Likewise. | |
13976 | ||
b1b45502 IB |
13977 | 2017-03-30 Iain Buclaw <ibuclaw@gdcproject.org> |
13978 | ||
13979 | * d-exp.y (type_aggregate_p): Treat TYPE_CODE_MODULE as being | |
13980 | aggregate-like. | |
13981 | ||
ec13808e JK |
13982 | 2017-03-29 Jan Kratochvil <jan.kratochvil@redhat.com> |
13983 | ||
13984 | * auto-load.c (auto_load_section_scripts): Check SEC_HAS_CONTENTS. | |
13985 | ||
12316564 YQ |
13986 | 2017-03-29 Yao Qi <yao.qi@linaro.org> |
13987 | ||
13988 | * gdbthread.h (struct thread_info): Declare constructor and | |
13989 | destructor. Add some in-class member initializers. | |
13990 | * thread.c (free_thread): Remove. | |
13991 | (init_thread_list): Call delete instead of free_thread. | |
13992 | (new_thread): Call thread_info constructor. | |
13993 | (thread_info::thread_info): New function. | |
13994 | (thread_info::~thread_info): New function. | |
13995 | (delete_thread_1): Call delete instead of free_thread. | |
13996 | (make_cleanup_restore_current_thread): Move tp and frame to | |
13997 | inner block. | |
13998 | ||
fe5f7374 AK |
13999 | 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com> |
14000 | ||
14001 | * arc-tdep.c (arc_frame_cache): Add support for prologue analysis. | |
14002 | (arc_skip_prologue): Likewise. | |
14003 | (arc_make_frame_cache): Likewise. | |
14004 | (arc_pv_get_operand): New function. | |
14005 | (arc_is_in_prologue): Likewise. | |
14006 | (arc_analyze_prologue): Likewise. | |
14007 | (arc_print_frame_cache): Likewise. | |
14008 | (MAX_PROLOGUE_LENGTH): New constant. | |
14009 | ||
eea78757 AK |
14010 | 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com> |
14011 | ||
14012 | * configure.tgt: Add arc-insn.o. | |
14013 | * arc-tdep.c (arc_delayed_print_insn): Make non-static. | |
14014 | (dump_arc_instruction_command): New function. | |
14015 | (arc_fprintf_disasm): Likewise. | |
14016 | (arc_disassemble_info): Likewise. | |
14017 | (arc_insn_get_operand_value): Likewise. | |
14018 | (arc_insn_get_operand_value_signed): Likewise. | |
14019 | (arc_insn_get_memory_base_reg): Likewise. | |
14020 | (arc_insn_get_memory_offset): Likewise. | |
14021 | (arc_insn_get_branch_target): Likewise. | |
14022 | (arc_insn_dump): Likewise. | |
14023 | (arc_insn_get_linear_next_pc): Likewise. | |
14024 | * arc-tdep.h (arc_delayed_print_insn): Add function declaration. | |
14025 | (arc_disassemble_info): Likewise. | |
14026 | (arc_insn_get_branch_target): Likewise. | |
14027 | (arc_insn_get_linear_next_pc): Likewise. | |
14028 | * NEWS: Mention new "maint print arc arc-instruction". | |
14029 | ||
3be78afd AK |
14030 | 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com> |
14031 | ||
14032 | * arc-tdep (maintenance_print_arc_list): New variable. | |
14033 | (maintenance_print_arc_command): New function. | |
14034 | ||
296ec4fa AK |
14035 | 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com> |
14036 | ||
14037 | * arc-tdep.c (core_v2_register_names, core_arcompact_register_names) | |
14038 | Add "limm" and "reserved". | |
14039 | (arc_cannot_fetch_register, arc_cannot_store_register): Add | |
14040 | ARC_RESERVED_REGNUM and ARC_LIMM_REGNUM. | |
14041 | * arc-tdep.h (arc_regnum): Likewise. | |
14042 | ||
f74f865e MF |
14043 | 2017-03-27 Max Filippov <jcmvbkbc@gmail.com> |
14044 | ||
14045 | * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect | |
14046 | for THREADPTR register. | |
14047 | (supply_gregset_reg): Call regcache_raw_supply for THREADPTR | |
14048 | register. | |
14049 | * xtensa-tdep.c (XTENSA_DBREGN_UREG): New definition. | |
14050 | (xtensa_derive_tdep): Initialize tdep->threadptr_regnum. | |
14051 | * xtensa-tdep.h (gdbarch_tdep::threadptr_regnum): New field. | |
14052 | ||
0d0bf81a MF |
14053 | 2017-03-27 Max Filippov <jcmvbkbc@gmail.com> |
14054 | ||
14055 | * xtensa-tdep.c (xtensa_pseudo_register_read): Treat all | |
14056 | registers above gdbarch_num_regs (gdbarch) as privileged in | |
14057 | call0 ABI. | |
14058 | ||
0ce4291e MF |
14059 | 2017-03-27 Max Filippov <jcmvbkbc@gmail.com> |
14060 | ||
14061 | * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect | |
14062 | for a single specified register or for all registers in | |
14063 | a0_base..a0_base + C0_NREGS range. | |
14064 | (supply_gregset_reg): Call regcache_raw_supply for a single | |
14065 | specified register or for all registers in a0_base..a0_base + | |
14066 | C0_NREGS range. | |
14067 | ||
c56054f9 MF |
14068 | 2017-03-27 Max Filippov <jcmvbkbc@gmail.com> |
14069 | ||
14070 | * arch/xtensa.h (C0_NREGS): Add definition. | |
14071 | * xtensa-tdep.c (C0_NREGS): Remove definition. | |
14072 | ||
a4398628 MF |
14073 | 2017-03-27 Max Filippov <jcmvbkbc@gmail.com> |
14074 | ||
14075 | * xtensa-tdep.c (xtensa_scan_prologue, call0_analyze_prologue): | |
14076 | Drop xtensa_default_isa initialization. | |
14077 | (xtensa_gdbarch_init): Initialize xtensa_default_isa. | |
14078 | ||
8c43009f PA |
14079 | 2017-03-27 Pedro Alves <palves@redhat.com> |
14080 | ||
14081 | * dwarf2read.c (file_entry) <dir_index>: Add comment. | |
14082 | (file_entry::include_dir): New method. | |
14083 | (line_header::include_dir_at, line_header::file_name_at): New | |
14084 | methods. | |
14085 | (setup_type_unit_groups, setup_type_unit_groups) | |
14086 | (psymtab_include_file_name): Simplify using the new methods. | |
14087 | (lnp_state_machine) <the_line_header>: New field. | |
14088 | <file>: Add comment. | |
14089 | (lnp_state_machine::current_file): New method. | |
14090 | (dwarf_record_line): Simplify using the new methods. | |
14091 | (init_lnp_state_machine): Initialize the "the_line_header" field. | |
14092 | (dwarf_decode_lines_1, dwarf_decode_lines, file_file_name): | |
14093 | Simplify using the new methods. | |
14094 | ||
a7e80b9e PA |
14095 | 2017-03-27 Pedro Alves <palves@redhat.com> |
14096 | ||
14097 | * cp-name-parser.y (make_empty): Delete. | |
14098 | (demangler_special, nested_name, ptr_operator, array_indicator) | |
14099 | (direct_declarator, declarator_1): Use fill_comp instead of | |
14100 | make_empty. | |
14101 | ||
21047726 PA |
14102 | 2017-03-27 Pedro Alves <palves@redhat.com> |
14103 | ||
14104 | * xml-support.h (gdb_xml_debug): Pass a "first-to-check" argument | |
14105 | to ATTRIBUTE_PRINTF. | |
14106 | * solib-target.c (library_list_start_list): Print "string" not | |
14107 | "version". | |
14108 | * xml-tdesc.c (tdesc_start_field): Pass "field_name" to | |
14109 | gdb_xml_error call. | |
14110 | ||
d721ba37 PA |
14111 | 2017-03-27 Pedro Alves <palves@redhat.com> |
14112 | ||
14113 | * dwarf2read.c (struct file_and_directory): New. | |
14114 | (dwarf2_get_dwz_file): Adjust to use std::string. | |
14115 | (dw2_get_file_names_reader): Adjust to use file_and_directory. | |
14116 | (find_file_and_directory): Adjust to return a file_and_directory | |
14117 | object. | |
14118 | (read_file_scope): Adjust to use file_and_directory. Remove | |
14119 | make_cleanup/do_cleanups calls. | |
14120 | (open_and_init_dwp_file): Adjust to use std::string. Remove | |
14121 | make_cleanup/do_cleanups calls. | |
14122 | * python/python.c (do_start_initialization): Adjust to ldirname | |
14123 | returning a std::string. | |
14124 | * utils.c (ldirname): Now returns a std::string. | |
14125 | * utils.h (ldirname): Change return type to std::string. | |
14126 | * xml-syscall.c (xml_init_syscalls_info): Adjust to ldirname | |
14127 | returning a std::string. | |
14128 | * xml-tdesc.c (file_read_description_xml): Likewise. | |
14129 | ||
ed771251 AH |
14130 | 2017-03-24 Alan Hayward <alan.hayward@arm.com> |
14131 | ||
14132 | * regcache.c (regcache_debug_print_register): New function. | |
14133 | * regcache.h (regcache_debug_print_register): New declaration. | |
14134 | * target.c (debug_print_register): Remove. | |
14135 | (target_fetch_registers): Call regcache_debug_print_register. | |
14136 | (target_store_registers): Likewise. | |
14137 | ||
568c1b9f PB |
14138 | 2017-03-24 Pádraig Brady <pbrady@fb.com> |
14139 | ||
14140 | * dwarf2read.c (setup_type_unit_groups): Ensure dir_index doesn't | |
14141 | reference beyond the 'lh->include_dirs' array before accessing to | |
14142 | it. | |
14143 | (psymtab_include_file_name): Likewise. | |
14144 | (dwarf_decode_lines_1): Likewise. | |
14145 | (dwarf_decode_lines): Likewise. | |
14146 | (file_file_name): Likewise. | |
14147 | ||
3e00d44f SM |
14148 | 2017-03-23 Simon Marchi <simon.marchi@ericsson.com> |
14149 | ||
14150 | * fbsd-tdep.c (fbsd_corefile_thread): Don't set/restore | |
14151 | inferior_ptid. | |
14152 | * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, | |
14153 | ps_lsetfpregs): Likewise. | |
14154 | * regcache.c (regcache_raw_update, regcache_raw_write): Likewise. | |
14155 | * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, | |
14156 | ps_lsetfpregs): Likewise. | |
14157 | * target.c (target_fetch_registers, target_store_registers): | |
14158 | Remove asserts. | |
14159 | ||
077ae656 AH |
14160 | 2017-03-23 Alan Hayward <alan.hayward@arm.com> |
14161 | ||
14162 | * sol-thread.c (sol_thread_store_registers): Remove regcache calls. | |
14163 | ||
1e2b521d YQ |
14164 | 2017-03-23 Yao Qi <yao.qi@linaro.org> |
14165 | ||
14166 | * aarch64-tdep.c (aarch64_process_record_test): Declare. | |
14167 | (_initialize_aarch64_tdep): Register it. | |
14168 | (aarch64_record_load_store): Handle PRFM instruction. | |
14169 | (aarch64_process_record_test): New function. | |
14170 | ||
33877125 YQ |
14171 | 2017-03-23 Yao Qi <yao.qi@linaro.org> |
14172 | ||
14173 | * aarch64-tdep.c (aarch64_record_load_store): Fix code | |
14174 | indentation. | |
14175 | ||
a0eef940 YQ |
14176 | 2017-03-23 Yao Qi <yao.qi@linaro.org> |
14177 | ||
14178 | * aarch64-tdep.c: Remove AARCH64_RECORD_FAILURE. | |
14179 | ||
3f2a3564 PR |
14180 | 2017-03-23 Philipp Rudo <prudo@linux.vnet.ibm.com> |
14181 | ||
14182 | python/python.c (do_start_initialization): Fix memory leak. | |
14183 | ||
b67aeab0 SM |
14184 | 2017-03-22 Simon Marchi <simon.marchi@polymtl.ca> |
14185 | ||
14186 | * inf-ptrace.c (inf_ptrace_xfer_partial): Get pid from ptid | |
14187 | using get_ptrace_pid. | |
14188 | * linux-nat.c (linux_nat_xfer_partial): Don't set/restore | |
14189 | inferior_ptid. | |
14190 | (linux_proc_xfer_partial, linux_proc_xfer_spu): Use lwp of | |
14191 | inferior_ptid instead of pid. | |
14192 | ||
ffdbe864 YQ |
14193 | 2017-03-22 Yao Qi <yao.qi@linaro.org> |
14194 | ||
14195 | * aarch64-tdep.c: Wrap locally used classes in anonymous | |
14196 | namespace. | |
14197 | * arm-tdep.c: Likewise. | |
14198 | * linespec.c: Likewise. | |
14199 | * ui-out.c: Likewise. | |
14200 | ||
9d736fbf JG |
14201 | 2017-03-22 Jonah Graham <jonah@kichwacoders.com> |
14202 | ||
14203 | PR gdb/19637 | |
14204 | * python/lib/gdb/printer/bound_registers.py: Import sys. | |
14205 | ||
3de88e9a SM |
14206 | 2017-03-21 Simon Marchi <simon.marchi@ericsson.com> |
14207 | ||
14208 | * windows-nat.c (do_windows_fetch_inferior_registers): Add | |
14209 | windows_thread_info parameter and use it instead of | |
14210 | current_thread. | |
14211 | (windows_fetch_inferior_registers): Don't set current_thread, | |
14212 | pass the thread to do_windows_fetch_inferior_registers. Use | |
14213 | ptid from regcache instead of inferior_ptid. | |
14214 | (do_windows_store_inferior_registers): Add windows_thread_info | |
14215 | parameter and use it instead of current_thread. | |
14216 | (windows_store_inferior_registers): Don't set current_thread, | |
14217 | pass the thread to do_windows_store_inferior_registers. Use | |
14218 | ptid from regcache instead of inferior_ptid. | |
14219 | ||
0e7b8f61 SM |
14220 | 2017-03-21 Simon Marchi <simon.marchi@ericsson.com> |
14221 | ||
14222 | * ser-mingw.c (ser_windows_raw): Remove reference to | |
14223 | struct serial::current_timeout. | |
14224 | ||
5badf10a IR |
14225 | 2017-03-21 Ivo Raisr <ivo.raisr@oracle.com> |
14226 | ||
14227 | PR tdep/20928 | |
14228 | * gdb/sparc-tdep.h (gdbarch_tdep) <sparc64_ccr_type>: New field. | |
14229 | * gdb/sparc64-tdep.c (sparc64_ccr_type): New function. | |
14230 | (sparc64_fsr_type): Fix %fsr decoding. | |
14231 | ||
cee59b3f TW |
14232 | 2017-03-21 Tim Wiederhake <tim.wiederhake@intel.com> |
14233 | ||
14234 | * python/py-record-btrace.c (btpy_insn_data): Change return type | |
14235 | for Python 2. | |
14236 | ||
639a9038 SM |
14237 | 2017-03-20 Simon Marchi <simon.marchi@polymtl.ca> |
14238 | ||
14239 | * spu-linux-nat.c (spu_fetch_inferior_registers, | |
14240 | spu_store_inferior_registers): Use ptid from regcache, set and | |
14241 | restore inferior_ptid. | |
14242 | * spu-multiarch.c (spu_fetch_registers, spu_store_registers): | |
14243 | Likewise. | |
14244 | ||
bcc0c096 SM |
14245 | 2017-03-20 Simon Marchi <simon.marchi@polymtl.ca> |
14246 | ||
14247 | * i386-linux-nat.c (fetch_register, store_register, | |
14248 | i386_linux_fetch_inferior_registers, | |
14249 | i386_linux_store_inferior_registers): Use ptid from regcache. | |
14250 | * ia64-linux-nat.c (ia64_linux_fetch_register, | |
14251 | ia64_linux_store_register): Likewise. | |
14252 | * inf-ptrace.c (inf_ptrace_fetch_register, | |
14253 | inf_ptrace_store_register): Likewise. | |
14254 | * m32r-linux-nat.c (m32r_linux_fetch_inferior_registers, | |
14255 | m32r_linux_store_inferior_registers): Likewise. | |
14256 | * m68k-bsd-nat.c (m68kbsd_fetch_inferior_registers, | |
14257 | m68kbsd_store_inferior_registers): Likewise. | |
14258 | * m68k-linux-nat.c (fetch_register, store_register, | |
14259 | m68k_linux_fetch_inferior_registers, | |
14260 | m68k_linux_store_inferior_registers): Likewise. | |
14261 | * m88k-bsd-nat.c (m88kbsd_fetch_inferior_registers, | |
14262 | m88kbsd_store_inferior_registers): Likewise. | |
14263 | * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers, | |
14264 | mips_fbsd_store_inferior_registers): Likewise. | |
14265 | * mips-linux-nat.c (mips64_linux_regsets_fetch_registers, | |
14266 | mips64_linux_regsets_store_registers): Likewise. | |
14267 | * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers, | |
14268 | mipsnbsd_store_inferior_registers): Likewise. | |
14269 | * mips-obsd-nat.c (mips64obsd_fetch_inferior_registers, | |
14270 | mips64obsd_store_inferior_registers): Likewise. | |
14271 | * nto-procfs.c (procfs_fetch_registers, procfs_store_registers): | |
14272 | Likewise. | |
14273 | * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers, | |
14274 | ppcfbsd_store_inferior_registers): Likewise. | |
14275 | * ppc-linux-nat.c (ppc_linux_fetch_inferior_registers, | |
14276 | ppc_linux_store_inferior_registers): Likewise. | |
14277 | * ppc-nbsd-nat.c (ppcnbsd_fetch_inferior_registers, | |
14278 | ppcnbsd_store_inferior_registers): Likewise. | |
14279 | * ppc-obsd-nat.c (ppcobsd_fetch_registers, | |
14280 | ppcobsd_store_registers): Likewise. | |
14281 | * procfs.c (procfs_fetch_registers, procfs_store_registers): | |
14282 | Likewise. | |
14283 | * ravenscar-thread.c (ravenscar_fetch_registers, | |
14284 | ravenscar_store_registers, ravenscar_prepare_to_store): | |
14285 | Likewise. | |
14286 | * record-btrace.c (record_btrace_fetch_registers, | |
14287 | record_btrace_store_registers, record_btrace_prepare_to_store): | |
14288 | Likewise. | |
14289 | * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): | |
14290 | Lookup inferior using ptid from regcache, instead of | |
14291 | current_inferior. | |
14292 | * remote.c (remote_fetch_registers, remote_store_registers): Use | |
14293 | ptid from regcache. | |
14294 | * rs6000-nat.c (fetch_register, store_register): Likewise. | |
14295 | * s390-linux-nat.c (s390_linux_fetch_inferior_registers, | |
14296 | s390_linux_store_inferior_registers): Likewise. | |
14297 | * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers, | |
14298 | shnbsd_store_inferior_registers): Likewise. | |
14299 | * sol-thread.c (sol_thread_fetch_registers, | |
14300 | sol_thread_store_registers): Likewise. | |
14301 | * sparc-nat.c (sparc_fetch_inferior_registers, | |
14302 | sparc_store_inferior_registers): Likewise. | |
14303 | * tilegx-linux-nat.c (fetch_inferior_registers, | |
14304 | store_inferior_registers): Likewise. | |
14305 | * vax-bsd-nat.c (vaxbsd_fetch_inferior_registers, | |
14306 | vaxbsd_store_inferior_registers): Likewise. | |
14307 | * xtensa-linux-nat.c (fetch_gregs, store_gregs, fetch_xtregs, | |
14308 | store_xtregs): Likewise. | |
14309 | ||
c0f55cc6 AV |
14310 | 2017-03-20 Artemiy Volkov <artemiyv@acm.org> |
14311 | ||
14312 | PR gdb/14441 | |
14313 | * NEWS: Mention support for rvalue references in GDB and python. | |
14314 | * doc/gdb.texinfo (C Plus Plus Expressions): Mention that GDB | |
14315 | supports both lvalue and rvalue references. | |
14316 | ||
15c0a2a9 AV |
14317 | 2017-03-20 Artemiy Volkov <artemiyv@acm.org> |
14318 | ||
14319 | PR gdb/14441 | |
14320 | * gdbtypes.c (rank_one_type): Implement overloading | |
14321 | resolution rules regarding rvalue references. | |
14322 | ||
aa006118 AV |
14323 | 2017-03-20 Artemiy Volkov <artemiyv@acm.org> |
14324 | ||
14325 | PR gdb/14441 | |
14326 | * aarch64-tdep.c (aarch64_type_align) | |
14327 | (aarch64_extract_return_value, aarch64_store_return_value): Change | |
14328 | lvalue reference type checks to general reference type checks. | |
14329 | * amd64-tdep.c (amd64_classify): Likewise. | |
14330 | * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register): | |
14331 | Likewise. | |
14332 | * arm-tdep.c (arm_type_align, arm_extract_return_value) | |
14333 | (arm_store_return_value): Likewise. | |
14334 | * ax-gdb.c (gen_fetch, gen_cast): Likewise. | |
14335 | * c-typeprint.c (c_print_type): Likewise. | |
14336 | * c-varobj.c (adjust_value_for_child_access, c_value_of_variable) | |
14337 | (cplus_number_of_children, cplus_describe_child): Likewise. | |
14338 | * compile/compile-c-symbols.c (generate_vla_size): Likewise. | |
14339 | * completer.c (expression_completer): Likewise. | |
14340 | * cp-support.c (make_symbol_overload_list_adl_namespace): | |
14341 | Likewise. | |
14342 | * darwin-nat-info.c (info_mach_region_command): Likewise. | |
14343 | * dwarf2loc.c (entry_data_value_coerce_ref) | |
14344 | (value_of_dwarf_reg_entry): Likewise. | |
14345 | * eval.c (ptrmath_type_p, evaluate_subexp_standard) | |
14346 | (evaluate_subexp_for_address, evaluate_subexp_for_sizeof): | |
14347 | Likewise. | |
14348 | * findvar.c (extract_typed_address, store_typed_address): | |
14349 | Likewise. | |
14350 | * gdbtypes.c (rank_one_type): Likewise. | |
14351 | * hppa-tdep.c (hppa64_integral_or_pointer_p): Likewise. | |
14352 | * infcall.c (value_arg_coerce): Likewise. | |
14353 | * language.c (pointer_type): Likewise. | |
14354 | * m32c-tdep.c (m32c_reg_arg_type, m32c_m16c_address_to_pointer): | |
14355 | Likewise. | |
14356 | * m88k-tdep.c (m88k_integral_or_pointer_p): Likewise. | |
14357 | * mn10300-tdep.c (mn10300_type_align): Likewise. | |
14358 | * msp430-tdep.c (msp430_push_dummy_call): Likewise. | |
14359 | * ppc-sysv-tdep.c (do_ppc_sysv_return_value) | |
14360 | (ppc64_sysv_abi_push_param, ppc64_sysv_abi_return_value): | |
14361 | Likewise. | |
14362 | * printcmd.c (print_formatted, x_command): Likewise. | |
14363 | * python/py-type.c (typy_get_composite, typy_template_argument): | |
14364 | Likewise. | |
14365 | * python/py-value.c (valpy_referenced_value) | |
14366 | (valpy_get_dynamic_type, value_has_field): Likewise. | |
14367 | * s390-linux-tdep.c (s390_function_arg_integer): Likewise. | |
14368 | * sparc-tdep.c (sparc_integral_or_pointer_p): Likewise. | |
14369 | * sparc64-tdep.c (sparc64_integral_or_pointer_p): Likewise. | |
14370 | * spu-tdep.c (spu_scalar_value_p): Likewise. | |
14371 | * symtab.c (lookup_symbol_aux): Likewise. | |
14372 | * typeprint.c (whatis_exp, print_type_scalar): Likewise. | |
14373 | * valarith.c (binop_types_user_defined_p, unop_user_defined_p): | |
14374 | Likewise. | |
14375 | * valops.c (value_cast_pointers, value_cast) | |
14376 | (value_reinterpret_cast, value_dynamic_cast, value_addr, typecmp) | |
14377 | (value_struct_elt, value_struct_elt_bitpos) | |
14378 | (value_find_oload_method_list, find_overload_match) | |
14379 | (value_rtti_indirect_type): Likewise. | |
14380 | * valprint.c (val_print_scalar_type_p, generic_val_print): | |
14381 | Likewise. | |
14382 | * value.c (value_actual_type, value_as_address, unpack_long) | |
14383 | (pack_long, pack_unsigned_long, coerce_ref_if_computed) | |
14384 | (coerce_ref): Likewise. | |
14385 | * varobj.c (varobj_get_value_type): Likewise. | |
14386 | ||
3fcf899d AV |
14387 | 2017-03-20 Artemiy Volkov <artemiyv@acm.org> |
14388 | ||
14389 | PR gdb/14441 | |
14390 | * doc/python.texi (Types in Python): Add TYPE_CODE_RVALUE_REF to | |
14391 | table of constants. | |
14392 | * python/lib/gdb/command/explore.py: Support exploring values | |
14393 | of rvalue reference types. | |
14394 | * python/lib/gdb/types.py: Implement get_basic_type() for | |
14395 | rvalue reference types. | |
14396 | * python/py-type.c (pyty_codes) <TYPE_CODE_RVALUE_REF>: New | |
14397 | constant. | |
14398 | * python/py-value.c (valpy_getitem): Add an rvalue reference | |
14399 | check. | |
14400 | (valpy_reference_value): Add new parameter "refcode". | |
14401 | (valpy_lvalue_reference_value, valpy_rvalue_reference_value): | |
14402 | New wrappers for valpy_reference_value(). | |
14403 | * python/py-xmethods.c (gdbpy_get_xmethod_result_type) | |
14404 | (gdbpy_invoke_xmethod): Likewise. | |
14405 | ||
4297a3f0 AV |
14406 | 2017-03-20 Artemiy Volkov <artemiyv@acm.org> |
14407 | ||
14408 | PR gdb/14441 | |
14409 | * dwarf2read.c (process_die, read_type_die_1): Handle the | |
14410 | DW_TAG_rvalue_reference_type DIE. | |
14411 | (read_tag_reference_type): Add new parameter "refcode". | |
14412 | ||
e1cb3213 AV |
14413 | 2017-03-20 Artemiy Volkov <artemiyv@acm.org> |
14414 | ||
14415 | PR gdb/14441 | |
14416 | * c-typeprint.c (c_print_type, c_type_print_varspec_prefix) | |
14417 | (c_type_print_modifier, c_type_print_varspec_suffix) | |
14418 | (c_type_print_base): Support printing rvalue reference types. | |
14419 | * c-valprint.c (c_val_print, c_value_print): Support printing | |
14420 | rvalue reference values. | |
14421 | ||
e4347c89 AV |
14422 | 2017-03-20 Artemiy Volkov <artemiyv@acm.org> |
14423 | ||
14424 | PR gdb/14441 | |
14425 | * cp-name-parser.y (ptr_operator): Handle the '&&' token in | |
14426 | typename. | |
14427 | * cp-support.c (replace_typedefs): Handle | |
14428 | DEMANGLE_COMPONENT_RVALUE_REFERENCE. | |
14429 | * python/py-type.c (typy_lookup_type): Likewise. | |
14430 | ||
53cc15f5 AV |
14431 | 2017-03-20 Artemiy Volkov <artemiyv@acm.org> |
14432 | ||
14433 | PR gdb/14441 | |
14434 | * c-exp.y (ptr_operator): Handle the '&&' token in the typename. | |
14435 | * parse.c (insert_type): Change assert statement. | |
14436 | (follow_types): Handle rvalue reference types. | |
14437 | * parser-defs.h (enum type_pieces) <tp_rvalue_reference>: New | |
14438 | constant. | |
14439 | ||
a65cfae5 AV |
14440 | 2017-03-20 Artemiy Volkov <artemiyv@acm.org> |
14441 | ||
14442 | PR gdb/14441 | |
14443 | * ada-lang.c (ada_evaluate_subexp): Adhere to the new | |
14444 | value_ref() interface. | |
14445 | * c-valprint.c (c_value_print): Likewise. | |
14446 | * infcall.c (value_arg_coerce): Likewise. | |
14447 | * python/py-value.c (valpy_reference_value): Likewise. | |
14448 | * valops.c (value_cast, value_reinterpret_cast) | |
14449 | (value_dynamic_cast, typecmp): Likewise. | |
14450 | (value_ref): Parameterize by kind of return value reference type. | |
14451 | * value.h (value_ref): Add new parameter "refcode". | |
14452 | ||
3b224330 AV |
14453 | 2017-03-20 Artemiy Volkov <artemiyv@acm.org> |
14454 | ||
14455 | PR gdb/14441 | |
14456 | * dwarf2read.c (read_tag_reference_type): Use | |
14457 | lookup_lvalue_reference_type() instead of lookup_reference_type(). | |
14458 | * eval.c (evaluate_subexp_standard): Likewise. | |
14459 | * f-exp.y: Likewise. | |
14460 | * gdbtypes.c (make_reference_type, lookup_reference_type): | |
14461 | Generalize with rvalue reference types. | |
14462 | (lookup_lvalue_reference_type, lookup_rvalue_reference_type): New | |
14463 | convenience wrappers for lookup_reference_type(). | |
14464 | * gdbtypes.h (make_reference_type, lookup_reference_type): Add a | |
14465 | reference kind parameter. | |
14466 | (lookup_lvalue_reference_type, lookup_rvalue_reference_type): Add | |
14467 | wrappers for lookup_reference_type(). | |
14468 | * guile/scm-type.c (gdbscm_type_reference): Use | |
14469 | lookup_lvalue_reference_type() instead of lookup_reference_type(). | |
14470 | * guile/scm-value.c (gdbscm_value_dynamic_type): Likewise. | |
14471 | * parse.c (follow_types): Likewise. | |
14472 | * python/py-type.c (typy_reference, typy_lookup_type): Likewise. | |
14473 | * python/py-value.c (valpy_get_dynamic_type, valpy_getitem): | |
14474 | Likewise. | |
14475 | * python/py-xmethods.c (gdbpy_get_xmethod_result_type) | |
14476 | (gdbpy_invoke_xmethod): Likewise. | |
14477 | * stabsread.c: Provide extra argument to make_reference_type() | |
14478 | call. | |
14479 | * valops.c (value_ref, value_rtti_indirect_type): Use | |
14480 | lookup_lvalue_reference_type() instead of lookup_reference_type(). | |
14481 | ||
f9aeb8d4 AV |
14482 | 2017-03-20 Artemiy Volkov <artemiyv@acm.org> |
14483 | ||
14484 | PR gdb/14441 | |
14485 | * gdbtypes.h (enum type_code) <TYPE_CODE_RVALUE_REF>: New constant. | |
14486 | (TYPE_IS_REFERENCE): New macro. | |
14487 | (struct type): Add rvalue_reference_type field. | |
14488 | (TYPE_RVALUE_REFERENCE_TYPE): New macro. | |
14489 | ||
51457a05 MAL |
14490 | 2017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com> |
14491 | ||
14492 | * NEWS: Add an entry about new '-file-list-shared-libraries' command. | |
14493 | * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): | |
14494 | New function definition. | |
14495 | * mi/mi-cmds.c (mi_cmds): Add -file-list-shared-libraries command. | |
14496 | * mi/mi-cmds.h (mi_cmd_file_list_shared_libraries): | |
14497 | New function declaration. | |
14498 | * mi/mi-interp.c (mi_output_solib_attribs): New Function. | |
14499 | * mi/mi-interp.h: New file. | |
14500 | * solib.c (info_sharedlibrary_command): Replace for loop with | |
14501 | ALL_SO_LIBS macro | |
14502 | * solib.h (update_solib_list): New function declaration. | |
14503 | (so_list_head): Move macro. | |
14504 | * solist.h (ALL_SO_LIBS): New macro. | |
14505 | ||
e696b3ad MAL |
14506 | 2017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com> |
14507 | ||
14508 | * infcmd.c (post_create_inferior): Remove unused argument in | |
14509 | call to solib_add. | |
14510 | * remote.c (remote_start_remote): Likewise. | |
14511 | * solib-frv.c (frv_fetch_objfile_link_map): Likewise. | |
14512 | * solib-svr4.c: (svr4_fetch_objfile_link_map): Likewise. | |
14513 | (enable_break): Likewise. | |
14514 | * solib.c (update_solib_list): Remove unused target argument | |
14515 | and its documentation. | |
14516 | (solib_add): Remove unused target argument. Remove unused | |
14517 | argument in call to update_solib_list. | |
14518 | (info_sharedlibrary_command): Remove unused argument in call | |
14519 | to update_solib_list. | |
14520 | (sharedlibrary_command): Remove unused argument in call to | |
14521 | solib_add. | |
14522 | (handle_solib_event): Likewise. | |
14523 | (reload_shared_libraries): Likewise. | |
14524 | * solib.h (solib_add): Remove unused target argument. | |
14525 | ||
dcb84eda AA |
14526 | 2017-03-20 Andreas Arnez <arnez@linux.vnet.ibm.com> |
14527 | ||
14528 | * s390-linux-tdep.c (is_rsi, is_rie): Remove functions. | |
14529 | (s390_displaced_step_fixup): Cover relative branches with the | |
14530 | default fixup handling. This fixes lack of support for some | |
14531 | relative branch instructions. | |
14532 | ||
d9cb6cdc SM |
14533 | 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca> |
14534 | ||
14535 | * i386-gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Use | |
14536 | ptid from regcache. | |
14537 | ||
1afaf9f4 SM |
14538 | 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca> |
14539 | ||
14540 | * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers, | |
14541 | i386_darwin_store_inferior_registers): Use ptid from regcache. | |
14542 | ||
aac12e24 SM |
14543 | 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca> |
14544 | ||
14545 | * i386-bsd-nat.c (i386bsd_fetch_inferior_registers, | |
14546 | i386bsd_store_inferior_registers): Use ptid from regcache. | |
14547 | ||
bbe1eef1 SM |
14548 | 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca> |
14549 | ||
14550 | * hppa-obsd-nat.c (hppaobsd_fetch_registers, | |
14551 | hppaobsd_store_registers): Use ptid from regcache. | |
14552 | ||
10799020 SM |
14553 | 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca> |
14554 | ||
14555 | * hppa-nbsd-nat.c (hppanbsd_fetch_registers, | |
14556 | hppanbsd_store_registers): Use ptid from regcache. | |
14557 | ||
00204cf7 SM |
14558 | 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca> |
14559 | ||
14560 | * hppa-linux-nat.c (fetch_register, store_register): Use ptid | |
14561 | from regcache. Use get_ptrace_pid. | |
14562 | ||
11a33714 SM |
14563 | 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca> |
14564 | ||
14565 | * corelow.c (get_core_register_section): Use ptid from regcache, | |
14566 | update doc. | |
14567 | ||
317cd492 SM |
14568 | 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca> |
14569 | ||
14570 | * bsd-uthread.c (bsd_uthread_fetch_registers, | |
14571 | bsd_uthread_store_registers): Use ptid from regcache, set and | |
14572 | restore inferior_ptid. | |
14573 | ||
9ac8a7c2 SM |
14574 | 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca> |
14575 | ||
14576 | * arm-nbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register, | |
14577 | fetch_fp_regs, store_register, store_regs, store_fp_register, | |
14578 | store_fp_regs): Use ptid from regcache. | |
14579 | ||
4ac4bb6a SM |
14580 | 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca> |
14581 | ||
14582 | * arm-linux-nat.c (fetch_fpregs, store_fpregs, fetch_regs, | |
14583 | store_regs, fetch_wmmx_regs, store_wmmx_regs, fetch_vfp_regs, | |
14584 | store_vfp_regs): Use ptid from regcache. | |
14585 | ||
9bcbdca8 PA |
14586 | 2017-03-17 Pedro Alves <palves@redhat.com> |
14587 | ||
14588 | PR remote/21188 | |
14589 | * ser-base.c (ser_base_wait_for): Add comment. | |
14590 | (do_ser_base_readchar): Improve comment based on the ser-unix.c's | |
14591 | version. | |
14592 | * ser-unix.c (hardwire_raw): Remove reference to | |
14593 | scb->current_timeout. | |
14594 | (wait_for, do_hardwire_readchar, hardwire_readchar): Delete. | |
14595 | (hardwire_ops): Install ser_base_readchar instead of | |
14596 | hardwire_readchar. | |
14597 | * serial.h (struct serial) <current_timeout, timeout_remaining>: | |
14598 | Remove fields. | |
14599 | ||
7503099f JG |
14600 | 2017-03-17 Jonah Graham <jonah@kichwacoders.com> |
14601 | ||
14602 | PR gdb/19637 | |
14603 | * python/lib/gdb/printer/bound_registers.py: Add support for | |
14604 | Python 3. | |
14605 | ||
7942e96e AA |
14606 | 2017-03-16 Andreas Arnez <arnez@linux.vnet.ibm.com> |
14607 | ||
14608 | * dwarf2loc.c (indirect_synthetic_pointer): Get data type of | |
14609 | pointed-to DIE and pass it to dwarf2_evaluate_loc_desc_full. | |
14610 | (dwarf2_evaluate_loc_desc_full): New parameter subobj_type; rename | |
14611 | byte_offset to subobj_byte_offset. Fix the handling of | |
14612 | DWARF_VALUE_STACK on big-endian targets when coming via an | |
14613 | implicit pointer. | |
14614 | (dwarf2_evaluate_loc_desc): Adjust call to | |
14615 | dwarf2_evaluate_loc_desc_full. | |
14616 | * dwarf2loc.h (dwarf2_fetch_die_type_sect_off): New declaration. | |
14617 | * dwarf2read.c (dwarf2_fetch_die_type_sect_off): New function. | |
14618 | ||
ba14f379 YQ |
14619 | 2017-03-16 Yao Qi <yao.qi@linaro.org> |
14620 | ||
14621 | * arm-tdep.c (thumb_record_misc): Decode CBNZ, CBZ, REV16, | |
14622 | and REVSH instructions. | |
14623 | ||
b121eeb9 YQ |
14624 | 2017-03-16 Yao Qi <yao.qi@linaro.org> |
14625 | ||
14626 | * arm-tdep.c [GDB_SELF_TEST]: include "selftests.h". | |
14627 | (arm_record_test): Declare. | |
14628 | (_initialize_arm_tdep) [GDB_SELF_TEST]: call register_self_test. | |
14629 | (thumb_record_ld_st_reg_offset): Rewrite the opcode matching to | |
14630 | align with the manual. | |
14631 | (thumb_record_misc): Adjust the code order to align with the | |
14632 | manual. | |
14633 | (thumb2_record_decode_insn_handler): Fix instruction matching. | |
14634 | (instruction_reader_thumb): New class. | |
14635 | (arm_record_test): New function. | |
14636 | ||
728a7913 YQ |
14637 | 2017-03-16 Yao Qi <yao.qi@linaro.org> |
14638 | ||
14639 | * arm-tdep.c (abstract_memory_reader): New class. | |
14640 | (instruction_reader): New class. | |
14641 | (extract_arm_insn): Add argument 'reader'. Callers updated. | |
14642 | (decode_insn): Likewise. | |
14643 | ||
34b43320 DE |
14644 | 2017-03-16 Doug Evans <dje@google.com> |
14645 | ||
a7c0469f DE |
14646 | * guile/scm-lazy-string.c (lazy_string_smob): Clarify use of LENGTH |
14647 | member. Change type of TYPE member to SCM. All uses updated. | |
14648 | (lsscm_make_lazy_string_smob): Add assert. | |
14649 | (lsscm_make_lazy_string): Flag bad length values. | |
14650 | (lsscm_elt_type): New function. | |
14651 | (gdbscm_lazy_string_to_value): Rewrite to use | |
14652 | lsscm_safe_lazy_string_to_value. | |
14653 | (lsscm_safe_lazy_string_to_value): Fix handling of TYPE_CODE_PTR. | |
14654 | * guile/scm-value.c (gdbscm_value_to_lazy_string): Flag bad length | |
14655 | values. Fix TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle typedefs | |
14656 | in incoming type. | |
14657 | * guile/guile-internal.h (tyscm_scm_to_type): Declare. | |
14658 | * guile/scm-type.c (tyscm_scm_to_type): New function. | |
14659 | ||
14660 | 2017-03-15 Doug Evans <dje@google.com> | |
14661 | ||
34b43320 DE |
14662 | PR python/17728, python/18439, python/18779 |
14663 | * python/py-lazy-string.c (lazy_string_object): Clarify use of LENGTH | |
14664 | member. Change type of TYPE member to PyObject *. All uses updated. | |
14665 | (stpy_convert_to_value): Fix handling of TYPE_CODE_PTR. | |
14666 | (gdbpy_create_lazy_string_object): Flag bad length values. | |
14667 | Handle TYPE_CODE_ARRAY with possibly different user-provided length. | |
14668 | Handle typedefs in incoming type. | |
14669 | (stpy_lazy_string_elt_type): New function. | |
14670 | (gdbpy_extract_lazy_string): Call it. | |
14671 | * python/py-value.c (valpy_lazy_string): Flag bad length values. | |
14672 | Fix handling of TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle | |
14673 | typedefs in incoming type. | |
14674 | ||
a3a5fecc DE |
14675 | 2017-03-16 Doug Evans <dje@google.com> |
14676 | ||
14677 | * guile/guile-internal.h (tyscm_scm_to_type): Declare. | |
14678 | * guile/scm-type.c (tyscm_scm_to_type): New function. | |
14679 | ||
28f1c605 JW |
14680 | 2017-03-16 Jiong Wang <jiong.wang@arm.com> |
14681 | ||
14682 | * inf-ptrace.c (inf_ptrace_peek_poke): Change the type to | |
14683 | "ULONGEST" for "skip". | |
14684 | ||
87c336f6 AA |
14685 | 2017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com> |
14686 | ||
14687 | PR gdb/21220 | |
14688 | * inf-ptrace.c (inf_ptrace_xfer_partial): In "case | |
14689 | TARGET_OBJECT_MEMORY", extract the logic for ptrace peek/poke... | |
14690 | (inf_ptrace_peek_poke): ...here. New function. Now also loop | |
14691 | over ptrace peek/poke until end of buffer or error. | |
14692 | ||
cf81cf60 SM |
14693 | 2017-03-14 Simon Marchi <simon.marchi@ericsson.com> |
14694 | ||
14695 | * parse.c (length_of_subexp): Make static. | |
14696 | * parser-defs.h (length_of_subexp): Remove. | |
14697 | ||
a379284a AA |
14698 | 2017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com> |
14699 | ||
14700 | * linux-nat.c (linux_proc_xfer_partial): Handle write operations | |
14701 | as well. | |
14702 | ||
8a6200ba PA |
14703 | 2017-03-14 Pedro Alves <palves@redhat.com> |
14704 | ||
14705 | * cp-name-parser.y (cp_demangled_name_to_comp): Update comment. | |
14706 | (main): Use std::unique_ptr. Remove calls to | |
14707 | cp_demangled_name_parse_free. | |
14708 | ||
f79ec206 SM |
14709 | 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca> |
14710 | ||
14711 | * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers, | |
14712 | alphabsd_store_inferior_registers): Use regcache->ptid instead | |
14713 | of inferior_ptid. | |
14714 | ||
edb5fb00 SM |
14715 | 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca> |
14716 | ||
14717 | * aix-thread.c (aix_thread_fetch_registers, | |
14718 | aix_thread_store_registers): Use regcache->ptid instead of | |
14719 | inferior_ptid. | |
14720 | ||
55119686 SM |
14721 | 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca> |
14722 | ||
14723 | * aarch64-linux-nat.c (fetch_gregs_from_thread, | |
14724 | store_gregs_to_thread, fetch_fpregs_from_thread, | |
14725 | store_fpregs_to_thread): Use regcache->ptid instead of | |
14726 | inferior_ptid. | |
14727 | ||
6a06fbb7 SM |
14728 | 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca> |
14729 | ||
14730 | * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers, | |
14731 | amd64_linux_fetch_inferior_registers): Use regcache->ptid | |
14732 | instead of inferior_ptid. | |
14733 | ||
c6386875 SM |
14734 | 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca> |
14735 | ||
14736 | * target.c (target_fetch_registers, target_store_registers): Add | |
14737 | assert. | |
14738 | ||
ddaaf0fb SM |
14739 | 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca> |
14740 | ||
14741 | * regcache.h (regcache_get_ptid): New function. | |
14742 | * regcache.c (regcache_get_ptid): New function. | |
14743 | ||
b9da89d1 | 14744 | 2017-03-13 Mark Wielaard <mark@klomp.org> |
14745 | ||
14746 | * cp-name-parser.y (make_empty): Initialize d_printing to zero. | |
14747 | ||
5f4d1085 KS |
14748 | 2017-03-10 Keith Seitz <keiths@redhat.com> |
14749 | ||
14750 | PR c++/8218 | |
14751 | * c-typeprint.c (cp_type_print_method_args): Skip artificial arguments. | |
14752 | ||
c65d6b55 PA |
14753 | 2017-03-08 Pedro Alves <palves@redhat.com> |
14754 | ||
14755 | PR gdb/18360 | |
14756 | * infrun.c (start_step_over, do_target_resume, resume) | |
14757 | (restart_threads): Assert we're not resuming a thread that is | |
14758 | meant to be stopped. | |
14759 | (infrun_thread_stop_requested_callback): Delete. | |
14760 | (infrun_thread_stop_requested): If the thread is internally | |
14761 | stopped, queue a pending stop event and clear the thread's | |
14762 | inline-frame state. | |
14763 | (handle_stop_requested): New function. | |
14764 | (handle_syscall_event, handle_inferior_event_1): Use | |
14765 | handle_stop_requested. | |
14766 | (handle_stop_requested): New function. | |
14767 | (handle_signal_stop): Set the thread's stop_signal here instead of | |
14768 | at caller. | |
14769 | (finish_step_over): Clear step over info unconditionally. | |
14770 | (handle_signal_stop): If the user had interrupted the event | |
14771 | thread, consider the stop a random signal. | |
14772 | (handle_signal_stop) <signal arrived while stepping over | |
14773 | breakpoint>: Don't restart threads here. | |
14774 | (stop_waiting): Don't clear step-over info here. | |
14775 | ||
15c22686 PA |
14776 | 2017-03-08 Pedro Alves <palves@redhat.com> |
14777 | ||
14778 | PR 21206 | |
14779 | * common/gdb_unlinker.h (unlinker::unlinker): Attribute nonnull | |
14780 | goes to argument 2, not 1. | |
14781 | ||
6e5d74e7 PA |
14782 | 2017-03-08 Pedro Alves <palves@redhat.com> |
14783 | ||
14784 | PR cli/21218 | |
14785 | * top.c (gdb_readline_wrapper): Avoid passing NULL to | |
14786 | display_gdb_prompt. | |
14787 | (command_line_input): Add comment. | |
14788 | ||
9753a2f6 PA |
14789 | 2017-03-08 Pedro Alves <palves@redhat.com> |
14790 | ||
14791 | PR tui/21216 | |
14792 | * tui/tui-file.c (tui_file::write): New. | |
14793 | * tui/tui-file.h (tui_file): Override "write". | |
14794 | * tui/tui-io.c (do_tui_putc, update_start_line): New functions, | |
14795 | factored out from ... | |
14796 | (tui_puts): ... here. | |
14797 | (tui_putc): Use them. | |
14798 | (tui_write): New function. | |
14799 | * tui/tui-io.h (tui_write): Declare. | |
14800 | ||
1672e0d9 SDJ |
14801 | 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com> |
14802 | ||
14803 | * Makefile.in (SFILES): Replace "environ.c" with | |
14804 | "common/environ.c". | |
14805 | (HFILES_NO_SRCDIR): Likewise, for "environ.h". | |
14806 | * environ.c: Include "common-defs.h" instead of "defs.h. Moved | |
14807 | to... | |
14808 | * common/environ.c: ... here. | |
14809 | * environ.h: Moved to... | |
14810 | * common/environ.h: ... here. | |
14811 | ||
f7bb4e3a PB |
14812 | 2017-03-07 Peter Bergner <bergner@vnet.ibm.com> |
14813 | ||
14814 | * gdbarch.sh (pstring_ptr): New static function. | |
14815 | (gdbarch_disassembler_options): Use it. | |
14816 | (gdbarch_verify_disassembler_options): Print valid_disassembler_options, | |
14817 | not valid_disassembler_option->name. | |
14818 | * gdbarch.c: Regenerate. | |
14819 | ||
e45ced6c PB |
14820 | 2017-03-07 Peter Bergner <bergner@vnet.ibm.com> |
14821 | ||
14822 | * config/powerpc/ppc64-linux.mh (MH_CFLAGS): Delete. | |
14823 | ||
5f6fd321 PA |
14824 | 2017-03-07 Pedro Alves <palves@redhat.com> |
14825 | ||
14826 | * tui/tui-regs.c (tui_restore_gdbout): Don't delete gdb_stdout. | |
14827 | ||
6dbb839a | 14828 | 2017-03-07 Walfred Tedeschi <walfred.tedeschi@intel.com> |
4a612d6f WT |
14829 | |
14830 | * i387-tdep.h (i387_reset_bnd_regs): Add function definition. | |
14831 | * i387-tdep.c (i387_reset_bnd_regs): Add function implementation. | |
14832 | * i386-tdep.c (i386_push_dummy_call): Call i387_reset_bnd_regs. | |
6dbb839a | 14833 | * amd64-tdep.c (amd64_push_dummy_call): Call i387_reset_bnd_regs. |
4a612d6f | 14834 | |
d274ecf4 SM |
14835 | 2017-03-06 Simon Marchi <simon.marchi@ericsson.com> |
14836 | ||
14837 | * xtensa-linux-nat.c (fetch_gregs): Remove const. | |
14838 | ||
df97be55 SM |
14839 | 2017-03-03 Simon Marchi <simon.marchi@ericsson.com> |
14840 | ||
14841 | * remote.c (remote_add_target_side_commands): Use range-based | |
14842 | for loop. | |
14843 | ||
7d45f3df YQ |
14844 | 2017-03-03 Yao Qi <yao.qi@linaro.org> |
14845 | ||
14846 | PR gdb/21165 | |
14847 | * ada-valprint.c (ada_val_print_ref): Call value_fetch_lazy if | |
14848 | value is lazy. | |
14849 | * valprint.c (common_val_print): Likewise. | |
14850 | ||
65b48a81 PB |
14851 | 2017-02-28 Peter Bergner <bergner@vnet.ibm.com> |
14852 | ||
14853 | * NEWS: Mention new set/show disassembler-options commands. | |
14854 | * doc/gdb.texinfo: Document new set/show disassembler-options commands. | |
14855 | * disasm.c: Include "arch-utils.h", "gdbcmd.h" and "safe-ctype.h". | |
14856 | (prospective_options): New static variable. | |
14857 | (gdb_disassembler::gdb_disassembler): Initialize | |
14858 | m_di.disassembler_options. | |
14859 | (gdb_buffered_insn_length_init_dis): Initilize di->disassembler_options. | |
14860 | (get_disassembler_options): New function. | |
14861 | (set_disassembler_options): Likewise. | |
14862 | (set_disassembler_options_sfunc): Likewise. | |
14863 | (show_disassembler_options_sfunc): Likewise. | |
14864 | (disassembler_options_completer): Likewise. | |
14865 | (_initialize_disasm): Likewise. | |
14866 | * disasm.h (get_disassembler_options): New prototype. | |
14867 | (set_disassembler_options): Likewise. | |
14868 | * gdbarch.sh (gdbarch_disassembler_options): New variable. | |
14869 | (gdbarch_verify_disassembler_options): Likewise. | |
14870 | * gdbarch.c: Regenerate. | |
14871 | * gdbarch.h: Likewise. | |
14872 | * arm-tdep.c (num_disassembly_options): Delete. | |
14873 | (set_disassembly_style): Likewise. | |
14874 | (arm_disassembler_options): New static variable. | |
14875 | (set_disassembly_style_sfunc): Convert short style name into long | |
14876 | option name. Call set_disassembler_options. | |
14877 | (show_disassembly_style_sfunc): New function. | |
14878 | (arm_gdbarch_init): Call set_gdbarch_disassembler_options and | |
14879 | set_gdbarch_verify_disassembler_options. | |
14880 | (_initialize_arm_tdep): Delete regnames variable and update callers. | |
14881 | (arm_disassembler_options): Initialize. | |
14882 | (disasm_options): New variable. | |
14883 | (num_disassembly_options): Rename from this... | |
14884 | (num_disassembly_styles): ...to this. Compute by scanning through | |
14885 | disasm_options. | |
14886 | (valid_disassembly_styles): Initialize using disasm_options. | |
14887 | Remove calls to parse_arm_disassembler_option, get_arm_regnames and | |
14888 | set_arm_regname_option. | |
14889 | Pass show_disassembly_style_sfunc to the "disassembler" setshow command. | |
14890 | * rs6000-tdep.c (powerpc_disassembler_options): New static variable. | |
14891 | (rs6000_gdbarch_init): Call set_gdbarch_disassembler_options and | |
14892 | set_gdbarch_verify_disassembler_options. | |
14893 | * s390-tdep.c (s390_disassembler_options): New static variable. | |
14894 | (s390_gdbarch_init):all set_gdbarch_disassembler_options and | |
14895 | set_gdbarch_verify_disassembler_options. | |
14896 | ||
d538e36d SM |
14897 | 2017-02-27 Simon Marchi <simon.marchi@ericsson.com> |
14898 | ||
14899 | * remote.c (remote_add_target_side_condition): Remove "struct" | |
14900 | keyword from range-based for loop. | |
14901 | ||
83621223 SM |
14902 | 2017-02-27 Simon Marchi <simon.marchi@ericsson.com> |
14903 | ||
14904 | * remote.c (remote_add_target_side_condition): Use range-based | |
14905 | for loop. Update comment. | |
14906 | ||
2123df0e YQ |
14907 | 2017-02-27 Yao Qi <yao.qi@linaro.org> |
14908 | ||
14909 | * f-typeprint.c (f_print_type): Check "varstring" is empty first. | |
14910 | ||
8e368124 AH |
14911 | 2017-02-26 Alan Hayward <alan.hayward@arm.com> |
14912 | ||
14913 | * regcache.c (regcache_raw_update): New function. | |
14914 | (regcache_raw_read): Move code to regcache_raw_update. | |
14915 | * regcache.h (regcache_raw_update): New declaration. | |
14916 | * remote.c (remote_prepare_to_store): Call regcache_raw_update. | |
14917 | ||
a49dd8dd JK |
14918 | 2017-02-26 Jan Kratochvil <jan.kratochvil@redhat.com> |
14919 | ||
14920 | * dwarf2read.c (create_debug_type_hash_table): Initialize | |
14921 | header.signature and header.type_offset_in_tu. | |
14922 | ||
34e4bae9 PA |
14923 | 2017-02-24 Pedro Alves <palves@redhat.com> |
14924 | ||
14925 | * symtab.c (make_file_symbol_completion_list_1): Use | |
14926 | add_symtab_completions. | |
14927 | ||
b0e4b369 AH |
14928 | 2017-02-24 Alan Hayward <alan.hayward@arm.com> |
14929 | ||
14930 | * stack.c (frame_info): Use frame_unwind_register_value to avoid buf. | |
14931 | ||
975c21ab AH |
14932 | 2017-02-24 Alan Hayward <alan.hayward@arm.com> |
14933 | ||
14934 | * i386-tdep.c (i386_pseudo_register_read_into_value): Use | |
14935 | I386_MAX_REGISTER_SIZE. | |
14936 | (i386_pseudo_register_write): Likewise. | |
14937 | (i386_process_record): Likewise. | |
14938 | * i387-tdep.c (i387_supply_xsave): Likewise. | |
14939 | * m68k-linux-nat.c (fetch_register): Use M68K_MAX_REGISTER_SIZE. | |
14940 | (store_register): Likewise. | |
14941 | ||
14bc53a8 PA |
14942 | 2017-02-23 Pedro Alves <palves@redhat.com> |
14943 | ||
14944 | * ada-lang.c: Include "common/function-view.h". | |
14945 | (ada_iterate_over_symbols): Adjust to use function_view as | |
14946 | callback type. | |
14947 | (struct add_partial_datum, ada_complete_symbol_matcher): Delete. | |
14948 | (ada_make_symbol_completion_list): Use a lambda. | |
14949 | (ada_exc_search_name_matches): Delete. | |
14950 | (name_matches_regex): New. | |
14951 | (ada_add_global_exceptions): Use a lambda and name_matches_regex. | |
14952 | * compile/compile-c-support.c: Include "common/function-view.h". | |
14953 | (print_one_macro): Change prototype to accept a ui_file pointer. | |
14954 | (write_macro_definitions): Use a lambda. | |
14955 | * dwarf2read.c: Include "common/function-view.h". | |
14956 | (dw2_map_expand_apply, dw2_map_symtabs_matching_filename) | |
14957 | (dw2_expand_symtabs_matching): Adjust to use function_view as | |
14958 | callback type. | |
14959 | * language.h: Include "common/function-view.h". | |
14960 | (struct language_defn) <la_iterate_over_symbols>: Adjust to use | |
14961 | function_view as callback type. | |
14962 | (LA_ITERATE_OVER_SYMBOLS): Remove DATA parameter. | |
14963 | * linespec.c: Include "common/function-view.h". | |
14964 | (collect_info::add_symbol): New method. | |
14965 | (struct symbol_and_data_callback, iterate_inline_only, struct | |
14966 | symbol_matcher_data, iterate_name_matcher): Delete. | |
14967 | (iterate_over_all_matching_symtabs): Adjust to use function_view | |
14968 | as callback type and lambdas. | |
14969 | (iterate_over_file_blocks): Adjust to use function_view as | |
14970 | callback type. | |
14971 | (decode_compound_collector): Now a class with private fields. | |
14972 | (decode_compound_collector::release_symbols): New method. | |
14973 | (collect_one_symbol): Rename to... | |
14974 | (decode_compound_collector::operator()): ... this and adjust. | |
14975 | (lookup_prefix_sym): decode_compound_collector construction bits | |
14976 | move to decode_compound_collector ctor. Pass the | |
14977 | decode_compound_collector object directly as callback. Remove | |
14978 | cleanups and use decode_compound_collector::release_symbols | |
14979 | instead. | |
14980 | (symtab_collector): Now a class with private fields. | |
14981 | (symtab_collector::release_symtabs): New method. | |
14982 | (add_symtabs_to_list): Rename to... | |
14983 | (symtab_collector::operator()): ... this and adjust. | |
14984 | (collect_symtabs_from_filename): symtab_collector construction | |
14985 | bits move to symtab_collector ctor. Pass the symtab_collector | |
14986 | object directly as callback. Remove cleanups and use | |
14987 | symtab_collector::release_symtabs instead. | |
14988 | (collect_symbols): Delete. | |
14989 | (add_matching_symbols_to_info): Use lambdas. | |
14990 | * macrocmd.c (print_macro_callback): Delete. | |
14991 | (info_macro_command): Use a lambda. | |
14992 | (info_macros_command): Pass print_macro_definition as callable | |
14993 | directly. | |
14994 | (print_one_macro): Remove 'ignore' parameter. | |
14995 | (macro_list_command): Adjust. | |
14996 | * macrotab.c (macro_for_each_data::fn): Now a function_view. | |
14997 | (macro_for_each_data::user_data): Delete field. | |
14998 | (foreach_macro): Adjust to call the function_view. | |
14999 | (macro_for_each): Adjust to use function_view as callback type. | |
15000 | (foreach_macro_in_scope): Adjust to call the function_view. | |
15001 | (macro_for_each_in_scope): Adjust to use function_view as callback | |
15002 | type. | |
15003 | * macrotab.h: Include "common/function-view.h". | |
15004 | (macro_callback_fn): Declare a prototype instead of a pointer. | |
15005 | Remove "user_data" parameter. | |
15006 | (macro_for_each, macro_for_each_in_scope): Adjust to use | |
15007 | function_view as callback type. | |
15008 | * psymtab.c (partial_map_expand_apply) | |
15009 | (psym_map_symtabs_matching_filename, recursively_search_psymtabs): | |
15010 | Adjust to use function_view as callback type and to return bool. | |
15011 | (psym_expand_symtabs_matching): Adjust to use function_view as | |
15012 | callback types. | |
15013 | * symfile-debug.c (debug_qf_map_symtabs_matching_filename): Adjust | |
15014 | to use function_view as callback type and to return bool. | |
15015 | (debug_qf_expand_symtabs_matching): Adjust to use function_view as | |
15016 | callback types. | |
15017 | * symfile.c (expand_symtabs_matching): Adjust to use function_view | |
15018 | as callback types. | |
15019 | * symfile.h: Include "common/function-view.h". | |
15020 | (expand_symtabs_file_matcher_ftype) | |
15021 | (expand_symtabs_symbol_matcher_ftype) | |
15022 | (expand_symtabs_exp_notify_ftype): Remove "data" parameter and | |
15023 | return bool. | |
15024 | (quick_symbol_functions::map_symtabs_matching_filename) | |
15025 | (quick_symbol_functions::expand_symtabs_matching): Adjust to use | |
15026 | function_view as callback type and return bool. | |
15027 | (expand_symtabs_matching): Adjust to use function_view as callback | |
15028 | type. | |
15029 | (maintenance_expand_name_matcher) | |
15030 | (maintenance_expand_file_matcher): Delete. | |
15031 | (maintenance_expand_symtabs): Use lambdas. | |
15032 | * symtab.c (iterate_over_some_symtabs): Adjust to use | |
15033 | function_view as callback types and return bool. | |
15034 | (iterate_over_symtabs): Likewise. Use unique_xmalloc_ptr instead | |
15035 | of a cleanup. | |
15036 | (lookup_symtab_callback): Delete. | |
15037 | (lookup_symtab): Use a lambda. | |
15038 | (iterate_over_symbols): Adjust to use function_view as callback | |
15039 | type. | |
15040 | (struct search_symbols_data, search_symbols_file_matches) | |
15041 | (search_symbols_name_matches): Delete. | |
15042 | (search_symbols): Use a pair of lambdas. | |
15043 | (struct add_name_data, add_macro_name, symbol_completion_matcher) | |
15044 | (symtab_expansion_callback): Delete. | |
15045 | (default_make_symbol_completion_list_break_on_1): Use lambdas. | |
15046 | * symtab.h: Include "common/function-view.h". | |
15047 | (iterate_over_some_symtabs): Adjust to use function_view as | |
15048 | callback type and return bool. | |
15049 | (iterate_over_symtabs): Adjust to use function_view as callback | |
15050 | type. | |
15051 | (symbol_found_callback_ftype): Remove 'data' parameter and return | |
15052 | bool. | |
15053 | (iterate_over_symbols): Adjust to use function_view as callback | |
15054 | type. | |
15055 | ||
07e253aa PA |
15056 | 2017-02-23 Pedro Alves <palves@redhat.com> |
15057 | ||
15058 | * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS): New. | |
15059 | (%.o) <unittests/%.c>: New pattern. | |
15060 | * configure.ac ($development): Add $(SUBDIR_UNITTESTS_OBS) to | |
15061 | CONFIG_OBS, and $(SUBDIR_UNITTESTS_SRCS) to CONFIG_SRCS. | |
15062 | * common/function-view.h: New file. | |
15063 | * unittests/function-view-selftests.c: New file. | |
15064 | * configure: Regenerate. | |
15065 | ||
8eaf5320 SM |
15066 | 2017-02-23 Simon Marchi <simon.marchi@ericsson.com> |
15067 | ||
15068 | * bsd-uthread.c (bsd_uthread_thread_alive): Use ptid instead of | |
15069 | inferior_ptid. | |
15070 | * go32-nat.c (go32_thread_alive): Likewise. | |
15071 | ||
38768751 YQ |
15072 | 2017-02-23 Yao Qi <yao.qi@linaro.org> |
15073 | ||
15074 | * varobj-iter.h (varobj_iter_delete): Call xfree instead of | |
15075 | delete. | |
15076 | ||
0a8beaba YQ |
15077 | 2017-02-23 Yao Qi <yao.qi@linaro.org> |
15078 | ||
15079 | * varobj.c (varobj_clear_saved_item): Use delete instead of | |
15080 | xfree. | |
15081 | (update_dynamic_varobj_children): Likewise. | |
15082 | ||
58fdfd2c JK |
15083 | 2017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com> |
15084 | ||
15085 | * dwarf2read.c (dwarf2_record_block_ranges): Add forgotten BASEADDR. | |
15086 | ||
1b90b139 SM |
15087 | 2017-02-21 Simon Marchi <simon.marchi@ericsson.com> |
15088 | ||
15089 | * common/enum-flags.h (enum_flags::enum_flags): Initialize | |
15090 | m_enum_value to 0 in default constructor. | |
15091 | ||
2039d74e EBM |
15092 | 2017-02-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com> |
15093 | ||
15094 | * rs6000-tdep.c (LOAD_AND_RESERVE_MASK): Rename from LWARX_MASK. | |
15095 | (STORE_CONDITIONAL_MASK): Rename from STWCX_MASK. | |
15096 | (LBARX_INSTRUCTION, LHARX_INSTRUCTION, LQARX_INSTRUCTION, | |
15097 | STBCX_INSTRUCTION, STHCX_INSTRUCTION, STQCX_INSTRUCTION): New defines. | |
15098 | (IS_LOAD_AND_RESERVE_INSN, IS_STORE_CONDITIONAL_INSN): New macros. | |
15099 | (ppc_displaced_step_copy_insn): Use IS_LOAD_AND_RESERVE_INSN. | |
15100 | (ppc_deal_with_atomic_sequence): Use IS_LOAD_AND_RESERVE_INSN and | |
15101 | IS_STORE_CONDITIONAL_INSN. | |
15102 | ||
7814882a JK |
15103 | 2017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com> |
15104 | ||
15105 | * dwarf2_rnglists_process: Initialize range_beginning and range_end. | |
15106 | ||
0ae60b63 JK |
15107 | 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com> |
15108 | ||
15109 | * NEWS (Changes since GDB 7.12): Add DWARF-5. | |
15110 | ||
0224619f JK |
15111 | 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com> |
15112 | ||
15113 | * dwarf2read.c (skip_one_die, read_attribute_value) | |
15114 | (dwarf2_const_value_attr, dump_die_shallow) | |
15115 | (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes) | |
15116 | (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_data16. | |
15117 | ||
0af92d60 JK |
15118 | 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com> |
15119 | ||
15120 | * dwarf2read.c (read_file_scope): Rename DW_MACRO_GNU_*. | |
15121 | (dwarf_parse_macro_header): Accept DWARF version 5. | |
15122 | (dwarf_decode_macro_bytes, dwarf_decode_macros): Rename DW_MACRO_GNU_*. | |
15123 | ||
216f72a1 JK |
15124 | 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com> |
15125 | ||
15126 | * block.c (call_site_for_pc): Rename DW_OP_GNU_*, DW_TAG_GNU_* and | |
15127 | DW_AT_GNU_*. | |
15128 | * common/common-exceptions.h (enum errors): Likewise. | |
15129 | * dwarf2-frame.c (class dwarf_expr_executor): Likewise. | |
15130 | * dwarf2expr.c (dwarf_block_to_dwarf_reg) | |
15131 | (dwarf_expr_context::execute_stack_op): Likewise. | |
15132 | * dwarf2expr.h (struct dwarf_expr_context, struct dwarf_expr_piece): | |
15133 | Likewise. | |
15134 | * dwarf2loc.c (dwarf_evaluate_loc_desc::get_base_type) | |
15135 | (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value) | |
15136 | (show_entry_values_debug, call_site_to_target_addr) | |
15137 | (func_addr_to_tail_call_list, func_verify_no_selftailcall) | |
15138 | (dwarf_expr_reg_to_entry_parameter, dwarf_entry_parameter_to_value) | |
15139 | (entry_data_value_free_closure, value_of_dwarf_reg_entry) | |
15140 | (value_of_dwarf_block_entry, indirect_pieced_value) | |
15141 | (symbol_needs_eval_context::push_dwarf_reg_entry_value): | |
15142 | (disassemble_dwarf_expression): Likewise. | |
15143 | * dwarf2read.c (process_die, inherit_abstract_dies) | |
15144 | (read_call_site_scope): Likewise. | |
15145 | * gdbtypes.h (struct func_type, struct call_site_parameter) | |
15146 | (struct call_site): Likewise. | |
15147 | * stack.c (read_frame_arg): Likewise. | |
15148 | * std-operator.def (OP_VAR_ENTRY_VALUE): Likewise. | |
15149 | ||
43988095 JK |
15150 | 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com> |
15151 | ||
15152 | * defs.h (read_unsigned_leb128): New declaration. | |
15153 | * dwarf2loc.c (decode_debug_loclists_addresses): New function. | |
15154 | (decode_debug_loc_dwo_addresses): Update DEBUG_LOC_* to DW_LLE_*. | |
15155 | (dwarf2_find_location_expression): Call also | |
15156 | decode_debug_loclists_addresses. Handle DWARF-5 ULEB128 length. | |
15157 | * dwarf2loc.h (dwarf2_version): New declaration. | |
15158 | * dwarf2read.c (struct dwarf2_per_objfile): Add loclists, line_str, | |
15159 | rnglists. | |
15160 | (dwarf2_elf_names): Add .debug_loclists, .debug_line_str, | |
15161 | .debug_rnglists. | |
15162 | (struct dwop_section_names): Add loclists_dwo. | |
15163 | (dwop_section_names): Add .debug_loclists.dwo. | |
15164 | (struct comp_unit_head): Add unit_type, signature, type_offset_in_tu. | |
15165 | (struct dwarf2_per_cu_data): Add dwarf_version. | |
15166 | (struct dwo_sections): Add loclists. | |
15167 | (struct attr_abbrev): Add implicit_const. | |
15168 | (read_indirect_line_string): New declaration. | |
15169 | (read_unsigned_leb128): Delete declaration. | |
15170 | (rcuh_kind): New definition. | |
15171 | (read_and_check_comp_unit_head): Change parameter | |
15172 | is_debug_types_section to section_kind. | |
15173 | (dwarf2_locate_sections): Handle loclists, line_str and rnglists. | |
15174 | (read_comp_unit_head): Change parameter abfd to section, add parameter | |
15175 | section_kind. Handle DWARF-5. | |
15176 | (error_check_comp_unit_head): Accept also DWARF version 5. | |
15177 | (read_and_check_comp_unit_head): Change parameter | |
15178 | is_debug_types_section to section_kind. | |
15179 | (read_and_check_type_unit_head): Delete function. | |
15180 | (read_abbrev_offset): Handle DWARF-5. | |
15181 | (create_debug_type_hash_table): Add parameter section_kind. Process | |
15182 | only DW_UT_type. Use signature and type_offset_in_tu from struct | |
15183 | comp_unit_head. | |
15184 | (create_debug_types_hash_table): Update create_debug_type_hash_table | |
15185 | caller. | |
15186 | (create_all_type_units): Call create_debug_type_hash_table. | |
15187 | (read_cutu_die_from_dwo, init_cutu_and_read_dies): Change | |
15188 | read_and_check_type_unit_head caller to read_and_check_comp_unit_head | |
15189 | caller. | |
15190 | (skip_one_die): Handle DW_FORM_implicit_const. | |
15191 | (dwarf2_rnglists_process): New function. | |
15192 | (dwarf2_ranges_process): Call dwarf2_rnglists_process for DWARF-5. | |
15193 | (abbrev_table_read_table): Handle DW_FORM_implicit_const. | |
15194 | (read_attribute_value): Handle DW_FORM_implicit_const, | |
15195 | DW_FORM_line_strp. | |
15196 | (read_attribute): Handle DW_FORM_implicit_const. | |
15197 | (read_indirect_string_at_offset_from): New function from | |
15198 | read_indirect_string_at_offset. | |
15199 | (read_indirect_string_at_offset): Call | |
15200 | read_indirect_string_at_offset_from. | |
15201 | (read_indirect_line_string_at_offset): New function. | |
15202 | (read_indirect_string): New function comment. | |
15203 | (read_indirect_line_string): New function. | |
15204 | (read_unsigned_leb128): Make it global. | |
15205 | (dwarf2_string_attr): Handle DWARF-5. | |
15206 | (add_include_dir_stub, read_formatted_entries): New functions. | |
15207 | (dwarf_decode_line_header, dump_die_shallow, cu_debug_loc_section): | |
15208 | Handle DWARF-5. | |
15209 | (per_cu_header_read_in): Update read_comp_unit_head caller. | |
15210 | (dwarf2_version): New function. | |
15211 | * symfile.h (struct dwarf2_debug_sections): Add loclists, line_str and | |
15212 | rnglists. | |
15213 | * xcoffread.c (dwarf2_xcoff_names): Update struct dwarf2_debug_sections | |
15214 | fields. | |
15215 | ||
22d2f3ab JK |
15216 | 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com> |
15217 | ||
15218 | * dwarf2read.c (abbrev_table_read_table): Read the data only once. | |
15219 | ||
5f46c5a5 JK |
15220 | 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com> |
15221 | ||
15222 | * dwarf2read.c (dwarf2_ranges_process): New function from | |
15223 | dwarf2_ranges_read. | |
15224 | (dwarf2_ranges_read, dwarf2_record_block_ranges): Use | |
15225 | dwarf2_ranges_process. | |
15226 | ||
78d4d2c5 JK |
15227 | 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com> |
15228 | ||
15229 | * dwarf2read.c (create_debug_type_hash_table): New function from | |
15230 | create_debug_types_hash_table. | |
15231 | (create_debug_types_hash_table): Call create_debug_type_hash_table. | |
15232 | (create_all_type_units, open_and_init_dwo_file): Update | |
15233 | create_debug_types_hash_table callers. | |
15234 | ||
1b076f25 SDJ |
15235 | 2017-02-20 Sergio Durigan Junior <sergiodj@redhat.com> |
15236 | ||
15237 | PR gdb/16188 | |
15238 | * fork-child.c (trace_start_error): Fix thinko. va_end should | |
15239 | refer to 'ap', not 'args'. | |
15240 | ||
0db8980c SDJ |
15241 | 2017-02-20 Sergio Durigan Junior <sergiodj@redhat.com> |
15242 | Pedro Alves <palves@redhat.com> | |
15243 | ||
15244 | PR gdb/16188 | |
15245 | * darwin-nat.c (darwin_ptrace_me): Check if calls to system | |
15246 | calls succeeded. | |
15247 | * fork-child.c (trace_start_error): New function. | |
15248 | (trace_start_error_with_name): Likewise. | |
15249 | * gnu-nat.c (gnu_ptrace_me): Check if call to PTRACE succeeded. | |
15250 | * inf-ptrace.c (inf_ptrace_me): Likewise. | |
15251 | * inferior.h (trace_start_error): New prototype. | |
15252 | (trace_start_error_with_name): Likewise. | |
15253 | ||
99e8a4f9 SDJ |
15254 | 2017-02-15 Sergio Durigan Junior <sergiodj@redhat.com> |
15255 | ||
15256 | PR gdb/21164 | |
15257 | * psymtab.c (maintenance_print_psymbols): Verify if 'argv' is not | |
15258 | NULL before using it. | |
15259 | * symmisc.c (maintenance_print_symbols): Likewise. | |
15260 | (maintenance_print_msymbols): Likewise. | |
15261 | ||
4e746bb6 TW |
15262 | 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com> |
15263 | ||
15264 | * NEWS: Add record Python bindings entry. | |
15265 | ||
15266 | 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com> | |
15267 | ||
15268 | * Makefile.in (SUBDIR_PYTHON_OBS): Add py-record-btrace.o, | |
15269 | py-record-full.o. | |
15270 | (SUBDIR_PYTHON_SRCS): Add py-record-btrace.c, py-record-full.c. | |
15271 | * python/py-record-btrace.c, python/py-record-btrace.h, | |
15272 | python/py-record-full.c, python/py-record-full.h: New file. | |
15273 | * python/py-record.c: Add include for py-record-btrace.h and | |
15274 | py-record-full.h. | |
15275 | (recpy_method, recpy_format, recpy_goto, recpy_replay_position, | |
15276 | recpy_instruction_history, recpy_function_call_history, recpy_begin, | |
15277 | recpy_end): Use functions from py-record-btrace.c and py-record-full.c. | |
15278 | * python/python-internal.h (PyInt_FromSsize_t, PyInt_AsSsize_t): | |
15279 | New definition. | |
15280 | (gdbpy_initialize_btrace): New export. | |
15281 | * python/python.c (_initialize_python): Add gdbpy_initialize_btrace. | |
15282 | ||
15283 | 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com> | |
15284 | ||
15285 | * Makefile.in (SUBDIR_PYTHON_OBS): Add python/py-record.o. | |
15286 | (SUBDIR_PYTHON_SRCS): Add python/py-record.c. | |
15287 | * python/py-record.c: New file. | |
15288 | * python/python-internal.h (gdbpy_start_recording, | |
15289 | gdbpy_current_recording, gdpy_stop_recording, | |
15290 | gdbpy_initialize_record): New export. | |
15291 | * python/python.c (_initialize_python): Add gdbpy_initialize_record. | |
15292 | (python_GdbMethods): Add gdbpy_start_recording, | |
15293 | gdbpy_current_recording and gdbpy_stop_recording. | |
15294 | ||
15295 | 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com> | |
15296 | ||
15297 | * record-btrace.c (record_btrace_record_method): New function. | |
15298 | (init_record_btrace_ops): Initialize to_record_method. | |
15299 | * record-full.c (record_full_record_method): New function. | |
15300 | (init_record_full_ops, init_record_full_core_ops): Add | |
15301 | record_full_record_method. | |
15302 | * record.h (enum record_method): New enum. | |
15303 | * target-debug.h (target_debug_print_enum_record_method: New define. | |
15304 | * target-delegates.c: Regenerate. | |
15305 | * target.c (target_record_method): New function. | |
15306 | * target.h: Include record.h. | |
15307 | (struct target_ops) <to_record_method>: New field. | |
15308 | (target_record_method): New export. | |
15309 | ||
15310 | 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com> | |
15311 | ||
15312 | * record.h (record_start, record_stop): New export. | |
15313 | * record.c (record_start, record_stop): New function. | |
15314 | ||
15315 | 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com> | |
15316 | ||
15317 | * btrace.c (btrace_fetch): Copy function call segments pointer | |
15318 | into a vector. | |
15319 | (btrace_clear): Clear the vector. | |
15320 | (btrace_find_insn_by_number): Use binary search to find the correct | |
15321 | function call segment. | |
15322 | * btrace.h (brace_fun_p): New typedef. | |
15323 | (struct btrace_thread_info) <functions>: New field. | |
15324 | ||
15325 | 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com> | |
15326 | ||
15327 | * record-btrace.c (btrace_ui_out_decode_error): Move most of it ... | |
15328 | * btrace.c (btrace_decode_error): ... here. New function. | |
15329 | * btrace.h (btrace_decode_error): New export. | |
15330 | ||
15331 | 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com> | |
15332 | ||
15333 | * btrace.c (ftrace_call_num_insn, btrace_insn_get_error): New function. | |
15334 | (ftrace_new_function, btrace_insn_number, btrace_insn_cmp, | |
15335 | btrace_find_insn_by_number): Remove special case for gaps. | |
15336 | * btrace.h (btrace_insn_get_error): New export. | |
15337 | (btrace_insn_number, btrace_find_insn_by_number): Adjust comment. | |
15338 | * record-btrace.c (btrace_insn_history): Print number for gaps. | |
15339 | (record_btrace_info, record_btrace_goto): Handle gaps. | |
15340 | ||
3f77c769 TT |
15341 | 2017-02-14 Tom Tromey <tom@tromey.com> |
15342 | ||
15343 | PR python/13598: | |
15344 | * python/python.c (gdbpy_before_prompt_hook): Emit before_prompt | |
15345 | event. | |
15346 | * python/py-evts.c (gdbpy_initialize_py_events): Add | |
15347 | before_prompt registry. | |
15348 | * python/py-events.h (events_object) <before_prompt>: New field. | |
15349 | ||
4c2c7ac6 MM |
15350 | 2017-02-14 Markus Metzger <markus.t.metzger@intel.com> |
15351 | ||
15352 | * btrace.c (ftrace_new_switch): Preserve up link and flags. | |
15353 | ||
5cf30ebf LM |
15354 | 2017-02-13 Luis Machado <lgustavo@codesourcery.com> |
15355 | ||
15356 | * symfile (_initialize_symfile): Add usage text to the load command's | |
15357 | help text. | |
15358 | ||
26a06916 SM |
15359 | 2017-02-10 Simon Marchi <simon.marchi@ericsson.com> |
15360 | ||
15361 | * utils.c (defaulted_query): Don't query on secondary UIs. | |
15362 | ||
0b145e37 TT |
15363 | 2017-02-10 Tom Tromey <tom@tromey.com> |
15364 | ||
15365 | * rust-lang.c (rust_get_disr_info): Remove unused variable. | |
15366 | ||
2d8365c4 TT |
15367 | 2017-02-10 Tom Tromey <tom@tromey.com> |
15368 | ||
15369 | * python/py-value.c (valpy_richcompare_throw): Remove unnecessary | |
15370 | "cleanup" local. | |
15371 | * python/py-type.c (typy_legacy_template_argument): Remove | |
15372 | unnecessary "cleanup" local. | |
15373 | ||
2bb8f231 TT |
15374 | 2017-02-10 Tom Tromey <tom@tromey.com> |
15375 | ||
15376 | * python/python.c (do_start_initialization): New function, from | |
15377 | _initialize_python. | |
15378 | (_initialize_python): Call do_start_initialization. | |
15379 | * python/py-linetable.c (ltpy_iternext): Use explicit returns, not | |
15380 | goto. | |
15381 | ||
1bdfaf42 TT |
15382 | 2017-02-10 Tom Tromey <tom@tromey.com> |
15383 | ||
15384 | * python/py-prettyprint.c (pretty_print_one_value): Use | |
15385 | gdbpy_ref. | |
15386 | ||
88b6faea TT |
15387 | 2017-02-10 Tom Tromey <tom@tromey.com> |
15388 | ||
15389 | * python/py-cmd.c (cmdpy_destroyer): Use gdbpy_ref. | |
15390 | * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Use | |
15391 | gdbpy_ref. | |
15392 | * python/py-type.c (field_new): Use gdbpy_ref. | |
15393 | * python/py-symtab.c (symtab_and_line_to_sal_object): Use | |
15394 | gdbpy_ref. | |
15395 | * python/py-progspace.c (pspy_new): Use gdbpy_ref. | |
15396 | (py_free_pspace): Likewise. | |
15397 | (pspace_to_pspace_object): Likewise. | |
15398 | * python/py-objfile.c (objfpy_new): Use gdbpy_ref. | |
15399 | (py_free_objfile): Likewise. | |
15400 | (objfile_to_objfile_object): Likewise. | |
15401 | * python/py-inferior.c (delete_thread_object): Use | |
15402 | gdbpy_ref. | |
15403 | (infpy_read_memory): Likewise. | |
15404 | (py_free_inferior): Likewise. | |
15405 | * python/py-evtregistry.c (create_eventregistry_object): Use | |
15406 | gdbpy_ref. | |
15407 | * python/py-event.c (create_event_object): Use gdbpy_ref. | |
15408 | ||
7780f186 TT |
15409 | 2017-02-10 Tom Tromey <tom@tromey.com> |
15410 | ||
15411 | * python/py-ref.h (gdbpy_ref_policy): Now a template. | |
15412 | (gdbpy_ref): Now a template; allow subclasses of PyObject to be | |
15413 | used. | |
15414 | * python/py-arch.c, python/py-bpevent.c, python/py-breakpoint.c, | |
15415 | python/py-cmd.c, python/py-continueevent.c, python/py-event.c, | |
15416 | python/py-exitedevent.c, python/py-finishbreakpoint.c, | |
15417 | python/py-framefilter.c, python/py-function.c, | |
15418 | python/py-inferior.c, python/py-infevents.c, | |
15419 | python/py-linetable.c, python/py-newobjfileevent.c, | |
15420 | python/py-param.c, python/py-prettyprint.c, python/py-ref.h, | |
15421 | python/py-signalevent.c, python/py-stopevent.c, | |
15422 | python/py-symbol.c, python/py-threadevent.c, python/py-type.c, | |
15423 | python/py-unwind.c, python/py-utils.c, python/py-value.c, | |
15424 | python/py-varobj.c, python/py-xmethods.c, python/python.c, | |
15425 | varobj.c: Change gdbpy_ref to gdbpy_ref<>. | |
15426 | ||
d4b0bb18 TT |
15427 | 2017-02-10 Tom Tromey <tom@tromey.com> |
15428 | ||
15429 | * ui-out.h (ui_out_emit_type): New class. | |
15430 | (ui_out_emit_tuple, ui_out_emit_list): New typedefs. | |
15431 | * python/py-framefilter.c (py_print_single_arg): Use gdb::optional | |
15432 | and ui_out_emit_tuple. | |
15433 | (enumerate_locals): Likewise. | |
15434 | (py_mi_print_variables, py_print_locals, py_print_args): Use | |
15435 | ui_out_emit_list. | |
15436 | (py_print_frame): Use gdb::optional, ui_out_emit_tuple, | |
15437 | ui_out_emit_list. | |
15438 | * common/gdb_optional.h: New file. | |
15439 | ||
f67f945c MG |
15440 | 2017-02-10 Martin Galvan <martingalvan@sourceware.org> |
15441 | ||
15442 | * MAINTAINERS (Write After Approval): Update my e-mail address. | |
15443 | ||
18da0c51 MG |
15444 | 2017-02-10 Martin Galvan <martingalvan@sourceware.org> |
15445 | ||
15446 | PR gdb/21122 | |
15447 | * breakpoint.c (_initialize_breakpoint): Update the help description | |
15448 | of the 'commands' command to indicate that it takes a list argument. | |
15449 | ||
62c14536 SM |
15450 | 2017-02-09 Simon Marchi <simon.marchi@ericsson.com> |
15451 | ||
15452 | * interps.c (current_interp_set_logging): Remove "return". | |
15453 | ||
ff6fa247 GB |
15454 | 2017-02-09 Gary Benson <gbenson@redhat.com> |
15455 | ||
15456 | * symtab.c (add_symtab_completions): Prevent NULL pointer | |
15457 | dereference. | |
15458 | ||
a474bd8e PA |
15459 | 2017-02-08 Pedro Alves <palves@redhat.com> |
15460 | ||
15461 | * interps.c (interp::interp): Remove reference to quiet_p. | |
15462 | (interp_set): Make static. Remove dead "Switching to" output | |
15463 | code. | |
15464 | (interp_quiet_p, interp_set_quiet): Delete. | |
15465 | (interpreter_exec_cmd): Don't set the interpreter quiet. | |
15466 | * interps.h (interp_quiet_p): Make static. | |
15467 | (class interp) <quiet_p>: Remove field | |
15468 | ||
3d7b173c JG |
15469 | 2017-02-08 Jerome Guitton <guitton@adacore.com> |
15470 | ||
604c4576 JG |
15471 | * cli/cli-decode.c (find_command_name_length): Make it extern. |
15472 | * cli/cli-decode.h (find_command_name_length): Declare. | |
15473 | * cli/cli-script.c (command_name_equals, line_first_arg): | |
15474 | New functions. | |
15475 | (process_next_line): Use cli-decode to parse command names. | |
15476 | (build_command_line): Make args a constant pointer. | |
15477 | ||
15478 | 2017-02-08 Jerome Guitton <guitton@adacore.com> | |
6dbb839a | 15479 | |
3d7b173c JG |
15480 | * cli-decode.c (lookup_cmd_1, lookup_cmd_composition): |
15481 | Remove case-insensitive search. | |
15482 | ||
1291063d JM |
15483 | 2017-02-07 Jose E. Marchesi <jose.marchesi@oracle.com> |
15484 | ||
15485 | * sparc-tdep.c (sparc32_gdbarch_init): Do not place a + operator | |
15486 | at the end of the line. Avoids an ARI warning. | |
15487 | ||
20b477a7 LM |
15488 | 2017-02-06 Luis Machado <lgustavo@codesourcery.com> |
15489 | ||
15490 | * NEWS: Mention support for record/replay of Intel 64 rdrand and | |
15491 | rdseed instructions. | |
15492 | i386-tdep.c (i386_process_record): Handle Intel 64 rdrand and rseed. | |
15493 | ||
3f7b46f2 IR |
15494 | 2017-02-06 Ivo Raisr <ivo.raisr@oracle.com> |
15495 | ||
15496 | PR tdep/20936 | |
15497 | Provide and use sparc32 and sparc64 target description XML files. | |
15498 | * features/sparc/sparc32-cp0.xml, features/sparc/sparc32-cpu.xml, | |
15499 | features/sparc/sparc32-fpu.xml: New files for sparc 32-bit. | |
15500 | * features/sparc/sparc64-cp0.xml, features/sparc/sparc64-cpu.xml, | |
15501 | features/sparc/sparc64-fpu.xml: New files for sparc 64-bit. | |
15502 | * features/sparc/sparc32-solaris.xml: New file. | |
15503 | * features/sparc/sparc64-solaris.xml: New file. | |
15504 | * features/sparc/sparc32-solaris.c: Generated. | |
15505 | * features/sparc/sparc64-solaris.c: Generated. | |
15506 | * sparc-tdep.h: Account for differences in target descriptions. | |
15507 | * sparc-tdep.c (sparc32_register_name): Use target provided registers. | |
15508 | (sparc32_register_type): Use target provided registers. | |
15509 | (validate_tdesc_registers): New function. | |
15510 | (sparc32_gdbarch_init): Use tdesc_has_registers. | |
15511 | Set pseudoregister functions. | |
15512 | * sparc64-tdep.c (sparc64_register_name): Use target provided registers. | |
15513 | (sparc64_register_type): Use target provided registers. | |
15514 | (sparc64_init_abi): Set pseudoregister functions. | |
15515 | ||
f0fd41c1 TT |
15516 | 2017-02-03 Tom Tromey <tom@tromey.com> |
15517 | ||
15518 | PR rust/21097: | |
15519 | * rust-lang.c (rust_print_type) <TYPE_CODE_UNION>: Handle enums | |
15520 | with a single member. | |
15521 | ||
d6f9b0fb PA |
15522 | 2017-02-03 Pedro Alves <palves@redhat.com> |
15523 | ||
15524 | * cli/cli-interp.c (cli_interp_base::cli_interp_base) | |
15525 | (cli_interp_base::~cli_interp_base): New. | |
15526 | (cli_interp): New struct. | |
15527 | (as_cli_interp): Cast the interp itself to cli_interp. | |
15528 | (cli_interpreter_pre_command_loop): Rename to ... | |
15529 | (cli_interp_base::pre_command_loop): ... this. Remove 'self' | |
15530 | parameter. | |
15531 | (cli_interpreter_init): Rename to ... | |
15532 | (cli_interp::init): ... this. Remove 'self' parameter. Use | |
15533 | boolean. Make extern. | |
15534 | (cli_interpreter_resume): Rename to ... | |
15535 | (cli_interp::resume): ... this. Remove 'data' parameter. Make | |
15536 | extern. | |
15537 | (cli_interpreter_suspend): Rename to ... | |
15538 | (cli_interp::suspend): ... this. Remove 'data' parameter. Make | |
15539 | extern. | |
15540 | (cli_interpreter_exec): Rename to ... | |
15541 | (cli_interp::exec): ... this. Remove 'data' parameter. Make | |
15542 | extern. | |
15543 | (cli_interpreter_supports_command_editing): Rename to ... | |
15544 | (cli_interp_base::supports_command_editing): ... this. Remove | |
15545 | 'interp' parameter. Make extern. | |
15546 | (cli_ui_out): Rename to ... | |
15547 | (cli_interp::interp_ui_out): ... this. Remove 'interp' parameter. | |
15548 | Make extern. | |
15549 | (cli_set_logging): Rename to ... | |
15550 | (cli_interp_base::set_logging): ... this. Remove 'interp' | |
15551 | parameter. Make extern. | |
15552 | (cli_interp_procs): Delete. | |
15553 | (cli_interp_factory): Adjust to use "new". | |
15554 | * cli/cli-interp.h: Include "interps.h". | |
15555 | (struct cli_interp_base): New struct. | |
15556 | * interps.c (struct interp): Delete. Fields moved to interps.h. | |
15557 | (interp_new): Delete. | |
15558 | (interp::interp, interp::~interp): New. | |
15559 | (interp_set): Use bool, and return void. Assume the interpreter | |
15560 | has suspend, init and resume methods, and that the all return | |
15561 | void. | |
15562 | (set_top_level_interpreter): interp_set returns void. | |
15563 | (interp_ui_out): Adapt. | |
15564 | (current_interp_set_logging): Adapt. | |
15565 | (interp_data): Delete. | |
15566 | (interp_pre_command_loop, interp_supports_command_editing): Adapt. | |
15567 | (interp_exec): Adapt. | |
15568 | (top_level_interpreter_data): Delete. | |
15569 | * interps.h (interp_init_ftype, interp_resume_ftype) | |
15570 | (interp_suspend_ftype, interp_exec_ftype) | |
15571 | (interp_pre_command_loop_ftype, interp_ui_out_ftype): Delete. | |
15572 | (class interp): New. | |
15573 | (interp_new): Delete. | |
15574 | (interp_set): Now returns void. Use bool. | |
15575 | (interp_data, top_level_interpreter_data): Delete. | |
15576 | * mi/mi-common.h: Include interps.h. | |
15577 | (class mi_interp): Inherit from interp. Define a ctor. Declare | |
15578 | init, resume, suspect, exec, interp_ui_out, set_logging and | |
15579 | pre_command_loop methods. | |
15580 | * mi/mi-interp.c (as_mi_interp): Cast the interp itself. | |
15581 | (mi_interpreter_init): Rename to ... | |
15582 | (mi_interp::init): ... this. Remove the 'interp' parameter, use | |
15583 | bool, return void and make extern. Adjust. | |
15584 | (mi_interpreter_resume): ... Rename to ... | |
15585 | (mi_interp::resume): ... this. Remove the 'data' parameter, | |
15586 | return void and make extern. Adjust. | |
15587 | (mi_interpreter_suspend): ... Rename to ... | |
15588 | (mi_interp::suspend): ... this. Remove the 'data' parameter, | |
15589 | return void and make extern. Adjust. | |
15590 | (mi_interpreter_exec): ... Rename to ... | |
15591 | (mi_interp::exec): ... this. Remove the 'data' parameter and make | |
15592 | extern. Adjust. | |
15593 | (mi_interpreter_pre_command_loop): ... Rename to ... | |
15594 | (mi_interp::pre_command_loop): ... this. Remove the 'self' | |
15595 | parameter and make extern. | |
15596 | (mi_on_normal_stop_1): Adjust. | |
15597 | (mi_ui_out): Rename to ... | |
15598 | (mi_interp::interp_ui_out): ... this. Remove the 'interp' | |
15599 | parameter and make extern. Adjust. | |
15600 | (mi_set_logging): Rename to ... | |
15601 | (mi_interp::set_logging): ... this. Remove the 'interp' | |
15602 | parameter and make extern. Adjust. | |
15603 | (mi_interp_procs): Delete. | |
15604 | (mi_interp_factory): Adjust to use 'new'. | |
15605 | * mi/mi-main.c (mi_cmd_gdb_exit, captured_mi_execute_command) | |
15606 | (mi_print_exception, mi_execute_command, mi_load_progress): | |
15607 | Adjust. | |
15608 | * tui/tui-interp.c (tui_interp): New class. | |
15609 | (as_tui_interp): Return a tui_interp pointer. | |
15610 | (tui_on_normal_stop, tui_on_signal_received) | |
15611 | (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited) | |
15612 | (tui_on_no_history, tui_on_user_selected_context_changed): Adjust | |
15613 | to use interp::interp_ui_out. | |
15614 | (tui_init): Rename to ... | |
15615 | (tui_interp::init): ... this. Remove the 'self' parameter, use | |
15616 | bool, return void and make extern. Adjust. | |
15617 | (tui_resume): Rename to ... | |
15618 | (tui_interp::resume): ... this. Remove the 'data' parameter, | |
15619 | return void and make extern. Adjust. | |
15620 | (tui_suspend): Rename to ... | |
15621 | (tui_interp::suspend): ... this. Remove the 'data' parameter, | |
15622 | return void and make extern. Adjust. | |
15623 | (tui_ui_out): Rename to ... | |
15624 | (tui_interp::interp_ui_out): ... this. Remove the 'self' | |
15625 | parameter, and make extern. Adjust. | |
15626 | (tui_exec): Rename to ... | |
15627 | (tui_interp::exec): ... this. Remove the 'data' parameter and | |
15628 | make extern. | |
15629 | (tui_interp_procs): Delete. | |
15630 | (tui_interp_factory): Use "new". | |
15631 | ||
65c40c95 TT |
15632 | 2017-02-02 Tom Tromey <tom@tromey.com> |
15633 | ||
15634 | * rust-exp.y (ends_raw_string, space_then_number) | |
15635 | (rust_identifier_start_p): Return bool. | |
15636 | * rust-lang.c (rust_tuple_type_p, rust_underscore_fields) | |
15637 | (rust_tuple_struct_type_p, rust_tuple_variant_type_p) | |
15638 | (rust_slice_type_p, rust_range_type_p, rust_u8_type_p) | |
15639 | (rust_chartype_p): Return bool. | |
15640 | (val_print_struct, rust_print_struct_def, rust_print_type): | |
15641 | Update. | |
15642 | * rust-lang.h (rust_tuple_type_p, rust_tuple_struct_type_p): | |
15643 | Return bool. | |
15644 | ||
b50f188d TT |
15645 | 2017-02-02 Tom Tromey <tom@tromey.com> |
15646 | ||
15647 | * rust-lang.c: Reindent. | |
15648 | ||
03c85b11 TT |
15649 | 2017-02-02 Tom Tromey <tom@tromey.com> |
15650 | ||
15651 | * rust-lang.h (rust_crate_for_block): Update. | |
15652 | * rust-lang.c (rust_crate_for_block): Return std::string. | |
15653 | (rust_get_disr_info): Use std:;string, not | |
15654 | gdb::unique_xmalloc_ptr. | |
15655 | * rust-exp.y (crate_name): Update. | |
15656 | ||
9b6da501 PA |
15657 | 2017-02-02 Pedro Alves <palves@redhat.com> |
15658 | ||
15659 | * disasm-selftests.c (print_one_insn_test): Move the "verbose" | |
15660 | field out of gdb_disassembler_test and make it static. | |
15661 | ||
ec4cb20b PA |
15662 | 2017-02-02 Pedro Alves <palves@redhat.com> |
15663 | ||
15664 | * mi/mi-common.h (struct mi_interp): Delete the mi2_interp, | |
15665 | mi1_interp and mi_interp fields. | |
15666 | ||
5be5dbf0 PA |
15667 | 2017-02-02 Pedro Alves <palves@redhat.com> |
15668 | ||
616268b6 PA |
15669 | * cli/cli-interp.c (struct saved_output_files, saved_output): |
15670 | Moved from cli/cli-logging.c. | |
15671 | (cli_set_logging): New function. | |
15672 | (cli_interp_procs): Install cli_set_logging. | |
15673 | * cli/cli-interp.h (make_logging_output, cli_set_logging): | |
15674 | Declare. | |
15675 | * cli/cli-logging.c (struct saved_output_files, saved_output): | |
15676 | Moved to cli/cli-interp.c. | |
15677 | (pop_output_files): Don't save outputs here. | |
15678 | (make_logging_output): New function. | |
15679 | (handle_redirections): Don't build tee nor save previous outputs | |
15680 | here. | |
15681 | * interps.c (current_interp_set_logging): Change prototype. | |
15682 | Assume there's always a set_logging_proc method installed. | |
15683 | * interps.h (interp_set_logging_ftype): Change prototype. | |
15684 | (current_interp_set_logging): Change prototype and adjust comment. | |
15685 | * mi/mi-interp.c (mi_set_logging): Change protototype. Adjust to | |
15686 | use make_logging_output. | |
15687 | * tui/tui-interp.c (tui_interp_procs): Install cli_set_logging. | |
15688 | 2017-02-02 Pedro Alves <palves@redhat.com> | |
15689 | ||
5be5dbf0 PA |
15690 | * cli/cli-logging.c (maybe_warn_already_logging): New factored out |
15691 | from ... | |
15692 | (set_logging_overwrite): ... here. | |
15693 | (logging_no_redirect_file): Delete. | |
15694 | (set_logging_redirect): Don't handle redirection on the fly. | |
15695 | Instead warn that "logging off" / "logging on" is necessary. | |
15696 | (pop_output_files): Delete references to logging_no_redirect_file. | |
15697 | (show_logging_command): Always speak in terms of what will happen | |
15698 | once logging is reenabled. | |
15699 | ||
c99cc448 PA |
15700 | 2017-02-02 Pedro Alves <palves@redhat.com> |
15701 | ||
15702 | * disasm.h (gdb_pretty_print_disassembler): Tweak intro comment. | |
15703 | ||
8b172ce7 PA |
15704 | 2017-02-02 Pedro Alves <palves@redhat.com> |
15705 | ||
15706 | * disasm.c (gdb_pretty_print_insn): Rename to ... | |
15707 | (gdb_pretty_print_disassembler::pretty_print_insn): ... this. | |
15708 | Remove gdbarch parameter. Adapt to clear the object's buffers | |
15709 | instead of allocating new buffers, and to print using the object's | |
15710 | gdb_disassembler instead of calling gdb_print_insn. | |
15711 | (dump_insns): Use gdb_pretty_print_disassembler. | |
15712 | * disasm.h (gdb_pretty_print_insn): Delete declaration. | |
15713 | (gdb_pretty_print_disassembler): New class. | |
15714 | * record-btrace.c (btrace_insn_history): Use | |
15715 | gdb_pretty_print_disassembler. | |
15716 | ||
d7e74731 PA |
15717 | 2017-02-02 Pedro Alves <palves@redhat.com> |
15718 | ||
15719 | * ada-lang.c (type_as_string): Use string_file. | |
15720 | * ada-valprint.c (ada_print_floating): Use string_file. | |
15721 | * ada-varobj.c (ada_varobj_scalar_image) | |
15722 | (ada_varobj_get_value_image): Use string_file. | |
15723 | * aix-thread.c (aix_thread_extra_thread_info): Use string_file. | |
15724 | * arm-tdep.c (_initialize_arm_tdep): Use string_printf. | |
15725 | * breakpoint.c (update_inserted_breakpoint_locations) | |
15726 | (insert_breakpoint_locations, reattach_breakpoints) | |
15727 | (print_breakpoint_location, print_one_detail_ranged_breakpoint) | |
15728 | (print_it_watchpoint): Use string_file. | |
15729 | (save_breakpoints): Use stdio_file. | |
15730 | * c-exp.y (oper): Use string_file. | |
15731 | * cli/cli-logging.c (set_logging_redirect): Use ui_file_up and | |
15732 | tee_file. | |
15733 | (pop_output_files): Use delete. | |
15734 | (handle_redirections): Use stdio_file and tee_file. | |
15735 | * cli/cli-setshow.c (do_show_command): Use string_file. | |
15736 | * compile/compile-c-support.c (c_compute_program): Use | |
15737 | string_file. | |
15738 | * compile/compile-c-symbols.c (generate_vla_size): Take a | |
15739 | 'string_file &' instead of a 'ui_file *'. | |
15740 | (generate_c_for_for_one_variable): Take a 'string_file &' instead | |
15741 | of a 'ui_file *'. Use string_file. | |
15742 | (generate_c_for_variable_locations): Take a 'string_file &' | |
15743 | instead of a 'ui_file *'. | |
15744 | * compile/compile-internal.h (generate_c_for_for_one_variable): | |
15745 | Take a 'string_file &' instead of a 'ui_file *'. | |
15746 | * compile/compile-loc2c.c (push, pushf, unary, binary) | |
15747 | (print_label, pushf_register_address, pushf_register) | |
15748 | (do_compile_dwarf_expr_to_c): Take a 'string_file &' instead of a | |
15749 | 'ui_file *'. Adjust. | |
15750 | * compile/compile.c (compile_to_object): Use string_file. | |
15751 | * compile/compile.h (compile_dwarf_expr_to_c) | |
15752 | (compile_dwarf_bounds_to_c): Take a 'string_file &' instead of a | |
15753 | 'ui_file *'. | |
15754 | * cp-support.c (inspect_type): Use string_file and obstack_copy0. | |
15755 | (replace_typedefs_qualified_name): Use string_file and | |
15756 | obstack_copy0. | |
15757 | * disasm.c (gdb_pretty_print_insn): Use string_file. | |
15758 | (gdb_disassembly): Adjust reference the null_stream global. | |
15759 | (do_ui_file_delete): Delete. | |
15760 | (gdb_insn_length): Use null_stream. | |
15761 | * dummy-frame.c (maintenance_print_dummy_frames): Use stdio_file. | |
15762 | * dwarf2loc.c (dwarf2_compile_property_to_c) | |
15763 | (locexpr_generate_c_location, loclist_generate_c_location): Take a | |
15764 | 'string_file &' instead of a 'ui_file *'. | |
15765 | * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise. | |
15766 | * dwarf2read.c (do_ui_file_peek_last): Delete. | |
15767 | (dwarf2_compute_name): Use string_file. | |
15768 | * event-top.c (gdb_setup_readline): Use stdio_file. | |
15769 | * gdbarch.sh (verify_gdbarch): Use string_file. | |
15770 | * gdbtypes.c (safe_parse_type): Use null_stream. | |
15771 | * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Use | |
15772 | string_file. | |
15773 | * guile/scm-disasm.c (gdbscm_print_insn_from_port): Take a | |
15774 | 'string_file *' instead of a 'ui_file *'. | |
15775 | (gdbscm_arch_disassemble): Use string_file. | |
15776 | * guile/scm-frame.c (frscm_print_frame_smob): Use string_file. | |
15777 | * guile/scm-ports.c (class ioscm_file_port): Now a class that | |
15778 | inherits from ui_file. | |
15779 | (ioscm_file_port_delete, ioscm_file_port_rewind) | |
15780 | (ioscm_file_port_put): Delete. | |
15781 | (ioscm_file_port_write): Rename to ... | |
15782 | (ioscm_file_port::write): ... this. Remove file_port_magic | |
15783 | checks. | |
15784 | (ioscm_file_port_new): Delete. | |
15785 | (ioscm_with_output_to_port_worker): Use ioscm_file_port and | |
15786 | ui_file_up. | |
15787 | * guile/scm-type.c (tyscm_type_name): Use string_file. | |
15788 | * guile/scm-value.c (vlscm_print_value_smob, gdbscm_value_print): | |
15789 | Use string_file. | |
15790 | * infcmd.c (print_return_value_1): Use string_file. | |
15791 | * infrun.c (print_target_wait_results): Use string_file. | |
15792 | * language.c (add_language): Use string_file. | |
15793 | * location.c (explicit_to_string_internal): Use string_file. | |
15794 | * main.c (captured_main_1): Use null_file. | |
15795 | * maint.c (maintenance_print_architecture): Use stdio_file. | |
15796 | * mi/mi-cmd-stack.c (list_arg_or_local): Use string_file. | |
15797 | * mi/mi-common.h (struct mi_interp) <out, err, log, targ, | |
15798 | event_channel>: Change type to mi_console_file pointer. | |
15799 | * mi/mi-console.c (mi_console_file_fputs, mi_console_file_flush) | |
15800 | (mi_console_file_delete): Delete. | |
15801 | (struct mi_console_file): Delete. | |
15802 | (mi_console_file_magic): Delete. | |
15803 | (mi_console_file_new): Delete. | |
15804 | (mi_console_file::mi_console_file): New. | |
15805 | (mi_console_file_delete): Delete. | |
15806 | (mi_console_file_fputs): Delete. | |
15807 | (mi_console_file::write): New. | |
15808 | (mi_console_raw_packet): Delete. | |
15809 | (mi_console_file::flush): New. | |
15810 | (mi_console_file_flush): Delete. | |
15811 | (mi_console_set_raw): Rename to ... | |
15812 | (mi_console_file::set_raw): ... this. | |
15813 | * mi/mi-console.h (class mi_console_file): New class. | |
15814 | (mi_console_file_new, mi_console_set_raw): Delete. | |
15815 | * mi/mi-interp.c (mi_interpreter_init): Use mi_console_file. | |
15816 | (mi_set_logging): Use delete and tee_file. Adjust. | |
15817 | * mi/mi-main.c (output_register): Use string_file. | |
15818 | (mi_cmd_data_evaluate_expression): Use string_file. | |
15819 | (mi_cmd_data_read_memory): Use string_file. | |
15820 | (mi_cmd_execute, print_variable_or_computed): Use string_file. | |
15821 | * mi/mi-out.c (mi_ui_out::main_stream): New. | |
15822 | (mi_ui_out::rewind): Use main_stream and | |
15823 | string_file. | |
15824 | (mi_ui_out::put): Use main_stream and string_file. | |
15825 | (mi_ui_out::mi_ui_out): Remove 'stream' parameter. | |
15826 | Allocate a 'string_file' instead. | |
15827 | (mi_out_new): Don't allocate a mem_fileopen stream here. | |
15828 | * mi/mi-out.h (mi_ui_out::mi_ui_out): Remove 'stream' parameter. | |
15829 | (mi_ui_out::main_stream): Declare method. | |
15830 | * printcmd.c (eval_command): Use string_file. | |
15831 | * psymtab.c (maintenance_print_psymbols): Use stdio_file. | |
15832 | * python/py-arch.c (archpy_disassemble): Use string_file. | |
15833 | * python/py-breakpoint.c (bppy_get_commands): Use string_file. | |
15834 | * python/py-frame.c (frapy_str): Use string_file. | |
15835 | * python/py-framefilter.c (py_print_type, py_print_single_arg): | |
15836 | Use string_file. | |
15837 | * python/py-type.c (typy_str): Use string_file. | |
15838 | * python/py-unwind.c (unwind_infopy_str): Use string_file. | |
15839 | * python/py-value.c (valpy_str): Use string_file. | |
15840 | * record-btrace.c (btrace_insn_history): Use string_file. | |
15841 | * regcache.c (regcache_print): Use stdio_file. | |
15842 | * reggroups.c (maintenance_print_reggroups): Use stdio_file. | |
15843 | * remote.c (escape_buffer): Use string_file. | |
15844 | * rust-lang.c (rust_get_disr_info): Use string_file. | |
15845 | * serial.c (serial_open_ops_1): Use stdio_file. | |
15846 | (do_serial_close): Use delete. | |
15847 | * stack.c (print_frame_arg): Use string_file. | |
15848 | (print_frame_args): Remove local mem_fileopen stream, not used. | |
15849 | (print_frame): Use string_file. | |
15850 | * symmisc.c (maintenance_print_symbols): Use stdio_file. | |
15851 | * symtab.h (struct symbol_computed_ops) <generate_c_location>: | |
15852 | Take a 'string_file *' instead of a 'ui_file *'. | |
15853 | * top.c (new_ui): Use stdio_file and stderr_file. | |
15854 | (free_ui): Use delete. | |
15855 | (execute_command_to_string): Use string_file. | |
15856 | (quit_confirm): Use string_file. | |
15857 | * tracepoint.c (collection_list::append_exp): Use string_file. | |
15858 | * tui/tui-disasm.c (tui_disassemble): Use string_file. | |
15859 | * tui/tui-file.c: Don't include "ui-file.h". | |
15860 | (enum streamtype, struct tui_stream): Delete. | |
15861 | (tui_file_new, tui_file_delete, tui_fileopen, tui_sfileopen) | |
15862 | (tui_file_isatty, tui_file_rewind, tui_file_put): Delete. | |
15863 | (tui_file::tui_file): New method. | |
15864 | (tui_file_fputs): Delete. | |
15865 | (tui_file_get_strbuf): Delete. | |
15866 | (tui_file::puts): New method. | |
15867 | (tui_file_adjust_strbuf): Delete. | |
15868 | (tui_file_flush): Delete. | |
15869 | (tui_file::flush): New method. | |
15870 | * tui/tui-file.h: Tweak intro comment. | |
15871 | Include ui-file.h. | |
15872 | (tui_fileopen, tui_sfileopen, tui_file_get_strbuf) | |
15873 | (tui_file_adjust_strbuf): Delete declarations. | |
15874 | (class tui_file): New class. | |
15875 | * tui/tui-io.c (tui_initialize_io): Use tui_file. | |
15876 | * tui/tui-regs.c (tui_restore_gdbout): Use delete. | |
15877 | (tui_register_format): Use string_stream. | |
15878 | * tui/tui-stack.c (tui_make_status_line): Use string_file. | |
15879 | (tui_get_function_from_frame): Use string_file. | |
15880 | * typeprint.c (type_to_string): Use string_file. | |
15881 | * ui-file.c (struct ui_file, ui_file_magic, ui_file_new): Delete. | |
15882 | (null_stream): New global. | |
15883 | (ui_file_delete): Delete. | |
15884 | (ui_file::ui_file): New. | |
15885 | (null_file_isatty): Delete. | |
15886 | (ui_file::~ui_file): New. | |
15887 | (null_file_rewind): Delete. | |
15888 | (ui_file::printf): New. | |
15889 | (null_file_put): Delete. | |
15890 | (null_file_flush): Delete. | |
15891 | (ui_file::putstr): New. | |
15892 | (null_file_write): Delete. | |
15893 | (ui_file::putstrn): New. | |
15894 | (null_file_read): Delete. | |
15895 | (ui_file::putc): New. | |
15896 | (null_file_fputs): Delete. | |
15897 | (null_file_write_async_safe): Delete. | |
15898 | (ui_file::vprintf): New. | |
15899 | (null_file_delete): Delete. | |
15900 | (null_file::write): New. | |
15901 | (null_file_fseek): Delete. | |
15902 | (null_file::puts): New. | |
15903 | (ui_file_data): Delete. | |
15904 | (null_file::write_async_safe): New. | |
15905 | (gdb_flush, ui_file_isatty): Adjust. | |
15906 | (ui_file_put, ui_file_rewind): Delete. | |
15907 | (ui_file_write): Adjust. | |
15908 | (ui_file_write_for_put): Delete. | |
15909 | (ui_file_write_async_safe, ui_file_read): Adjust. | |
15910 | (ui_file_fseek): Delete. | |
15911 | (fputs_unfiltered): Adjust. | |
15912 | (set_ui_file_flush, set_ui_file_isatty, set_ui_file_rewind) | |
15913 | (set_ui_file_put, set_ui_file_write, set_ui_file_write_async_safe) | |
15914 | (set_ui_file_read, set_ui_file_fputs, set_ui_file_fseek) | |
15915 | (set_ui_file_data): Delete. | |
15916 | (string_file::~string_file, string_file::write) | |
15917 | (struct accumulated_ui_file, do_ui_file_xstrdup, ui_file_xstrdup) | |
15918 | (do_ui_file_as_string, ui_file_as_string): Delete. | |
15919 | (do_ui_file_obsavestring, ui_file_obsavestring): Delete. | |
15920 | (struct mem_file): Delete. | |
15921 | (mem_file_new): Delete. | |
15922 | (stdio_file::stdio_file): New. | |
15923 | (mem_file_delete): Delete. | |
15924 | (stdio_file::stdio_file): New. | |
15925 | (mem_fileopen): Delete. | |
15926 | (stdio_file::~stdio_file): New. | |
15927 | (mem_file_rewind): Delete. | |
15928 | (stdio_file::set_stream): New. | |
15929 | (mem_file_put): Delete. | |
15930 | (stdio_file::open): New. | |
15931 | (mem_file_write): Delete. | |
15932 | (stdio_file_magic, struct stdio_file): Delete. | |
15933 | (stdio_file_new, stdio_file_delete, stdio_file_flush): Delete. | |
15934 | (stdio_file::flush): New. | |
15935 | (stdio_file_read): Rename to ... | |
15936 | (stdio_file::read): ... this. Adjust. | |
15937 | (stdio_file_write): Rename to ... | |
15938 | (stdio_file::write): ... this. Adjust. | |
15939 | (stdio_file_write_async_safe): Rename to ... | |
15940 | (stdio_file::write_async_safe) ... this. Adjust. | |
15941 | (stdio_file_fputs): Rename to ... | |
15942 | (stdio_file::puts) ... this. Adjust. | |
15943 | (stdio_file_isatty): Delete. | |
15944 | (stdio_file_fseek): Delete. | |
15945 | (stdio_file::isatty): New. | |
15946 | (stderr_file_write): Rename to ... | |
15947 | (stderr_file::write) ... this. Adjust. | |
15948 | (stderr_file_fputs): Rename to ... | |
15949 | (stderr_file::puts) ... this. Adjust. | |
15950 | (stderr_fileopen, stdio_fileopen, gdb_fopen): Delete. | |
15951 | (stderr_file::stderr_file): New. | |
15952 | (tee_file_magic): Delete. | |
15953 | (struct tee_file): Delete. | |
15954 | (tee_file::tee_file): New. | |
15955 | (tee_file_new): Delete. | |
15956 | (tee_file::~tee_file): New. | |
15957 | (tee_file_delete): Delete. | |
15958 | (tee_file_flush): Rename to ... | |
15959 | (tee_file::flush): ... this. Adjust. | |
15960 | (tee_file_write): Rename to ... | |
15961 | (tee_file::write): ... this. Adjust. | |
15962 | (tee_file::write_async_safe): New. | |
15963 | (tee_file_fputs): Rename to ... | |
15964 | (tee_file::puts): ... this. Adjust. | |
15965 | (tee_file_isatty): Rename to ... | |
15966 | (tee_file::isatty): ... this. Adjust. | |
15967 | * ui-file.h (struct obstack, struct ui_file): Don't | |
15968 | forward-declare. | |
15969 | (ui_file_new, ui_file_flush_ftype, set_ui_file_flush) | |
15970 | (ui_file_write_ftype) | |
15971 | (set_ui_file_write, ui_file_fputs_ftype, set_ui_file_fputs) | |
15972 | (ui_file_write_async_safe_ftype, set_ui_file_write_async_safe) | |
15973 | (ui_file_read_ftype, set_ui_file_read, ui_file_isatty_ftype) | |
15974 | (set_ui_file_isatty, ui_file_rewind_ftype, set_ui_file_rewind) | |
15975 | (ui_file_put_method_ftype, ui_file_put_ftype, set_ui_file_put) | |
15976 | (ui_file_delete_ftype, set_ui_file_data, ui_file_fseek_ftype) | |
15977 | (set_ui_file_fseek): Delete. | |
15978 | (ui_file_data, ui_file_delete, ui_file_rewind) | |
15979 | (struct ui_file): New. | |
15980 | (ui_file_up): New. | |
15981 | (class null_file): New. | |
15982 | (null_stream): Declare. | |
15983 | (ui_file_write_for_put, ui_file_put): Delete. | |
15984 | (ui_file_xstrdup, ui_file_as_string, ui_file_obsavestring): | |
15985 | Delete. | |
15986 | (ui_file_fseek, mem_fileopen, stdio_fileopen, stderr_fileopen) | |
15987 | (gdb_fopen, tee_file_new): Delete. | |
15988 | (struct string_file): New. | |
15989 | (struct stdio_file): New. | |
15990 | (stdio_file_up): New. | |
15991 | (struct stderr_file): New. | |
15992 | (class tee_file): New. | |
15993 | * ui-out.c (ui_out::field_stream): Take a 'string_file &' instead | |
15994 | of a 'ui_file *'. Adjust. | |
15995 | * ui-out.h (class ui_out) <field_stream>: Likewise. | |
15996 | * utils.c (do_ui_file_delete, make_cleanup_ui_file_delete) | |
15997 | (null_stream): Delete. | |
15998 | (error_stream): Take a 'string_file &' instead of a 'ui_file *'. | |
15999 | Adjust. | |
16000 | * utils.h (struct ui_file): Delete forward declaration.. | |
16001 | (make_cleanup_ui_file_delete, null_stream): Delete declarations. | |
16002 | (error_stream): Take a 'string_file &' instead of a | |
16003 | 'ui_file *'. | |
16004 | * varobj.c (varobj_value_get_print_value): Use string_file. | |
16005 | * xtensa-tdep.c (xtensa_verify_config): Use string_file. | |
16006 | * gdbarch.c: Regenerate. | |
16007 | ||
187808b0 PA |
16008 | 2017-02-02 Pedro Alves <palves@redhat.com> |
16009 | ||
16010 | * disasm.c (gdb_disassembler::pretty_print_insn): Rename to... | |
16011 | (gdb_pretty_print_insn): ... this. Now a free function. Add back | |
16012 | a 'gdbarch' parameter. Allocate a mem_fileopen stream here. | |
16013 | Adjust to call gdb_print_insn instead of | |
16014 | gdb_disassembler::print_insn. | |
16015 | (dump_insns, do_mixed_source_and_assembly_deprecated) | |
16016 | (do_mixed_source_and_assembly, do_assembly_only): Add back a | |
16017 | 'gdbarch' parameter. Remove gdb_disassembler parameter. | |
16018 | (gdb_disassembly): Don't allocate a gdb_disassembler here. | |
16019 | * disasm.h (gdb_disassembler::pretty_print_insn): Delete | |
16020 | declaration. | |
16021 | (gdb_pretty_print_insn): Re-add declaration. | |
16022 | * record-btrace.c (btrace_insn_history): Don't allocate a | |
16023 | gdb_disassembler here. Adjust to call gdb_pretty_print_insn. | |
16024 | ||
7a8eb317 SM |
16025 | 2017-02-01 Simon Marchi <simon.marchi@polymtl.ca> |
16026 | ||
16027 | * disasm.h (gdb_disassembly): Remove file_string parameter. | |
16028 | * disasm.c (gdb_disassembly): Likewise. | |
16029 | * cli/cli-cmds.c (print_disassembly): Adapt. | |
16030 | * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise. | |
16031 | * stack.c (do_gdb_disassembly): Likewise. | |
16032 | ||
7346ef59 AA |
16033 | 2017-02-01 Andreas Arnez <arnez@linux.vnet.ibm.com> |
16034 | ||
16035 | * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): For | |
16036 | DWARF_VALUE_LITERAL, no longer ignore the offset on big-endian | |
16037 | targets. And if the implicit value is longer than needed, extract | |
16038 | the first bytes instead of the "least significant" ones. | |
16039 | ||
cd4007e4 MM |
16040 | 2017-02-01 Markus Metzger <markus.t.metzger@intel.com> |
16041 | ||
16042 | * btrace.c (btrace_enable): Do not call btrace_add_pc for | |
16043 | BTRACE_FORMAT_PT or if can_access_registers_ptid returns false. | |
16044 | (btrace_fetch): Assert can_access_registers_ptid. | |
16045 | * record-btrace.c (require_btrace_thread, record_btrace_info): Call | |
16046 | validate_registers_access. | |
16047 | ||
cf77c34e MM |
16048 | 2017-02-01 Markus Metzger <markus.t.metzger@intel.com> |
16049 | ||
16050 | * gdbthread.h (can_access_registers_ptid): New. | |
16051 | * thread.c (can_access_registers_ptid): New. | |
16052 | ||
be85ce7d PA |
16053 | 2017-02-01 Pedro Alves <palves@redhat.com> |
16054 | ||
16055 | * i386-tdep.c (i386_fast_tracepoint_valid_at): Use gdb_insn_length. | |
16056 | ||
29b0b251 PA |
16057 | 2017-01-31 Pedro Alves <palves@redhat.com> |
16058 | ||
16059 | * mi/mi-interp.c (mi_breakpoint_created, mi_breakpoint_modified): | |
16060 | Fix typos. | |
16061 | ||
289b5b24 PA |
16062 | 2017-01-31 Pedro Alves <palves@redhat.com> |
16063 | ||
16064 | * stack.c (print_frame_args): Remove local mem_fileopen stream, | |
16065 | not used. | |
16066 | ||
b47413b4 PA |
16067 | 2017-01-31 Pedro Alves <palves@redhat.com> |
16068 | ||
16069 | * varobj.c (varobj_value_get_print_value): Remove xstrdup call. | |
16070 | ||
60adb36c PA |
16071 | 2017-01-31 Pedro Alves <palves@redhat.com> |
16072 | ||
16073 | * common/scoped_restore.h | |
16074 | (scoped_restore_tmpl::scoped_restore_tmpl): Template on T2, and | |
16075 | change the value's parameter type to T2. | |
16076 | (make_scoped_restore): Likewise. | |
16077 | ||
2735833d WT |
16078 | 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com> |
16079 | Richard Henderson <rth@redhat.com> | |
16080 | ||
16081 | * amd64-linux-nat.c (PTRACE_ARCH_PRCTL): New define. | |
16082 | (amd64_linux_fetch_inferior_registers): Add case to fetch FS_BASE | |
16083 | GS_BASE for older kernels. | |
16084 | (amd64_linux_store_inferior_registers): Add case to store FS_BASE | |
16085 | GS_BASE for older kernels. | |
16086 | * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Add FS_BASE | |
16087 | and GS_BASE to the offset table. | |
16088 | (amd64_linux_register_reggroup_p): Add FS_BASE and GS_BASE to the | |
16089 | system register group. | |
16090 | * amd64-nat.c (amd64_native_gregset_reg_offset): Implements case | |
16091 | for older kernels. | |
16092 | * amd64-tdep.c (amd64_init_abi): Add segment registers for the | |
16093 | amd64 ABI. | |
16094 | * amd64-tdep.h (amd64_regnum): Add AMD64_FSBASE_REGNUM and | |
16095 | AMD64_GSBASE_REGNUM. | |
16096 | (AMD64_NUM_REGS): Set to AMD64_GSBASE_REGNUM + 1. | |
16097 | * features/Makefile (amd64-linux.dat, amd64-avx-linux.dat) | |
16098 | (amd64-mpx-linux.dat, amd64-avx512-linux.dat, x32-linux.dat) | |
16099 | (x32-avx-linux.dat, x32-avx512-linux.dat): Add | |
16100 | i386/64bit-segments.xml in those rules. | |
16101 | * features/i386/64bit-segments.xml: New file. | |
16102 | * features/i386/amd64-avx-mpx-linux.xml: Add 64bit-segments.xml. | |
16103 | * features/i386/amd64-avx-linux.xml: Add 64bit-segments.xml. | |
16104 | * features/i386/amd64-avx512-linux.xml: Add 64bit-segments.xml. | |
16105 | * features/i386/amd64-mpx-linux.xml: Add 64bit-segments.xml. | |
16106 | * features/i386/x32-avx512-linux.xml: Add 64bit-segments.xml. | |
16107 | * features/i386/x32-avx-linux.xml: Add 64bit-segments.xml. | |
16108 | * features/i386/amd64-linux.xml: Add 64bit-segments.xml. | |
16109 | * features/i386/amd64-avx-linux.c: Regenerated. | |
16110 | * features/i386/amd64-avx-mpx-linux.c: Regenerated. | |
16111 | * features/i386/amd64-avx-mpx.c: Regenerated. | |
16112 | * features/i386/amd64-avx512-linux.c: Regenerated. | |
16113 | * features/i386/amd64-linux.c: Regenerated. | |
16114 | * features/i386/amd64-mpx-linux.c: Regenerated. | |
16115 | * features/i386/i386-avx-mpx-linux.c: Regenerated. | |
16116 | * features/i386/i386-avx-mpx.c: Regenerated. | |
16117 | * features/i386/x32-avx-linux.c: Regenerated. | |
16118 | * features/i386/x32-avx512-linux.c: Regenerated. | |
16119 | * regformats/i386/amd64-avx-linux.dat: Regenerated. | |
16120 | * regformats/i386/amd64-avx-mpx-linux.dat: Regenerated. | |
16121 | * regformats/i386/amd64-avx512-linux.dat: Regenerated. | |
16122 | * regformats/i386/amd64-linux.dat: Regenerated. | |
16123 | * regformats/i386/amd64-mpx-linux.dat: Regenerated. | |
16124 | * regformats/i386/x32-avx-linux.dat: Regenerated. | |
16125 | * regformats/i386/x32-avx512-linux.dat: Regenerated. | |
16126 | * regformats/i386/x32-linux.dat: Regenerated. | |
16127 | ||
8884e97e WT |
16128 | 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com> |
16129 | ||
16130 | * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): | |
16131 | Set to AMD64_NUM_REGS. | |
16132 | ||
7005d26a WT |
16133 | 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com> |
16134 | ||
16135 | * amd64-nat.c (amd64_native_gregset_reg_offset): Simplify logic | |
16136 | that checks validity of a register number. | |
16137 | ||
4bd2e1b2 KC |
16138 | 2017-01-27 Kees Cook <keescook@google.com> |
16139 | ||
16140 | * gdb/arm-linux-nat.c (arm_linux_fetch_inferior_registers): Call | |
16141 | fetch_fpregs if target has fpa registers. | |
16142 | (arm_linux_store_inferior_registers): Call store_fpregs if target | |
16143 | has fpa registers. | |
16144 | ||
7cf1de6c AA |
16145 | 2017-01-26 Andreas Arnez <arnez@linux.vnet.ibm.com> |
16146 | ||
16147 | * cris-tdep.c (cris_gdbarch_init): Remove check for | |
16148 | info.byte_order and force it to BFD_ENDIAN_LITTLE. | |
16149 | ||
874a1c8c AT |
16150 | 2017-01-26 Antoine Tremblay <antoine.tremblay@ericsson.com> |
16151 | ||
16152 | * corelow.c (get_core_register_section): Check for regset | |
16153 | existence before checking for REGSET_VARIABLE_SIZE. | |
16154 | ||
d8b49cf0 YQ |
16155 | 2017-01-26 Yao Qi <yao.qi@linaro.org> |
16156 | Pedro Alves <palves@redhat.com> | |
16157 | ||
16158 | PR gdb/20939 | |
16159 | * disasm.c (gdb_disassembler::dis_asm_memory_error): Don't | |
16160 | call memory_error, save memaddr instead. | |
16161 | (gdb_disassembler::print_insn): If gdbarch_print_insn returns | |
16162 | negative, cal memory_error. | |
16163 | * disasm.h (gdb_disassembler) <m_err_memaddr>: New field. | |
16164 | ||
658ca58c YQ |
16165 | 2017-01-26 Yao Qi <yao.qi@linaro.org> |
16166 | ||
16167 | * disasm-selftests.c (memory_error_test): New function. | |
16168 | (_initialize_disasm_selftests): Register memory_error_test. | |
16169 | ||
79843d45 YQ |
16170 | 2017-01-26 Yao Qi <yao.qi@linaro.org> |
16171 | ||
16172 | * Makefile.in (SFILES): Add disasm-selftests.c and | |
16173 | selftest-arch.c. | |
16174 | (COMMON_OBS): Add disasm-selftests.o and selftest-arch.o. | |
16175 | * disasm-selftests.c: New file. | |
16176 | * selftest-arch.c: New file. | |
16177 | * selftest-arch.h: New file. | |
16178 | ||
8cafda32 YQ |
16179 | 2017-01-26 Yao Qi <yao.qi@linaro.org> |
16180 | ||
16181 | * mep-tdep.c (mep_gdb_print_insn): Set info->arch | |
16182 | to bfd_arch_mep. Don't return 0 if section is not | |
16183 | found. Call print_insn_mep. | |
16184 | ||
e47ad6c0 YQ |
16185 | 2017-01-26 Pedro Alves <palves@redhat.com> |
16186 | Yao Qi <yao.qi@linaro.org> | |
16187 | ||
16188 | * arm-tdep.c: Include "disasm.h". | |
16189 | (gdb_print_insn_arm): Update code to get gdbarch. | |
16190 | * disasm.c (dis_asm_read_memory): Change it to | |
16191 | gdb_disassembler::dis_asm_read_memory. | |
16192 | (dis_asm_memory_error): Likewise. | |
16193 | (dis_asm_print_address): Likewise. | |
16194 | (gdb_pretty_print_insn): Change it to | |
16195 | gdb_disassembler::pretty_print_insn. | |
16196 | (dump_insns): Add one argument gdb_disassemlber. All | |
16197 | callers updated. | |
16198 | (do_mixed_source_and_assembly_deprecated): Likewise. | |
16199 | (do_mixed_source_and_assembly): Likewise. | |
16200 | (do_assembly_only): Likewise. | |
16201 | (gdb_disassembler::gdb_disassembler): New. | |
16202 | (gdb_disassembler::print_insn): New. | |
16203 | * disasm.h (class gdb_disassembler): New. | |
16204 | (gdb_pretty_print_insn): Remove declaration. | |
16205 | (gdb_disassemble_info): Likewise. | |
16206 | * guile/scm-disasm.c (class gdbscm_disassembler): New. | |
16207 | (gdbscm_disasm_read_memory_worker): Update. | |
16208 | (gdbscm_disasm_read_memory): Update. | |
16209 | (gdbscm_disasm_memory_error): Remove. | |
16210 | (gdbscm_disasm_print_address): Remove. | |
16211 | (gdbscm_disassembler::gdbscm_disassembler): New. | |
16212 | (gdbscm_print_insn_from_port): Update. | |
16213 | * mips-tdep.c: Include disasm.h. | |
16214 | (gdb_print_insn_mips): Update code to get gdbarch. | |
16215 | * record-btrace.c (btrace_insn_history): Update. | |
16216 | * spu-tdep.c: Include disasm.h. | |
16217 | (struct spu_dis_asm_data): Remove. | |
16218 | (struct spu_dis_asm_info): New. | |
16219 | (spu_dis_asm_print_address): Use spu_dis_asm_info to get | |
16220 | SPU id. | |
16221 | (gdb_print_insn_spu): Cast disassemble_info to | |
16222 | spu_dis_asm_info. | |
16223 | ||
80d75874 YQ |
16224 | 2017-01-26 Yao Qi <yao.qi@linaro.org> |
16225 | ||
16226 | * disasm.c (do_ui_file_delete): Delete. | |
16227 | (gdb_insn_length): Move code creating stream to ... | |
16228 | * utils.c (null_stream): ... here. New function. | |
16229 | * utils.h (null_stream): Declare. | |
16230 | ||
60685cd0 SM |
16231 | 2017-01-23 Simon Marchi <simon.marchi@polymtl.ca> |
16232 | ||
16233 | * python/py-inferior.c (find_thread_object): Return directly | |
16234 | from the loop. Remove "found" variable. | |
16235 | ||
eb1cdb62 JB |
16236 | 2017-01-21 Joel Brobecker <brobecker@adacore.com> |
16237 | ||
16238 | GDB 7.12.1 released. | |
16239 | ||
b1ce6568 SM |
16240 | 2017-01-20 Simon Marchi <simon.marchi@ericsson.com> |
16241 | ||
16242 | * python/py-function.c (fnpy_call): Reorder declarations to have | |
16243 | the gdbpy_enter object declared first. | |
16244 | * python/py-xmethods.c (gdbpy_get_xmethod_arg_types): Likewise. | |
16245 | ||
6f8b0407 SM |
16246 | 2017-01-20 Simon Marchi <simon.marchi@ericsson.com> |
16247 | ||
fec93fb1 | 16248 | PR python/21068 |
6f8b0407 SM |
16249 | * python/python-internal.h (PyMem_RawMalloc): Define for |
16250 | Python < 3.4. | |
16251 | * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use | |
16252 | PyMem_RawMalloc instead of PyMem_Malloc. | |
16253 | ||
78cbbba8 LM |
16254 | 2017-01-20 Mike Wrighton <mike_wrighton@codesourcery.com> |
16255 | Luis Machado <lgustavo@codesourcery.com> | |
16256 | ||
16257 | * NEWS (New commands): Mention flash-erase. | |
16258 | (New MI commands): Mention target-flash-erase. | |
16259 | * mi/mi-cmds.c (mi_cmd_target_flash_erase): Add target-flash-erase MI | |
16260 | command. | |
16261 | * mi/mi-cmds.h (mi_cmd_target_flash_erase): New declaration. | |
16262 | * mi/mi-main.c (mi_cmd_target_flash_erase): New function. | |
16263 | * target.c (flash_erase_command): New function. | |
16264 | (initialize_targets): Add new flash-erase command. | |
16265 | * target.h (flash_erase_command): New declaration. | |
16266 | ||
2132fe85 JB |
16267 | 2017-01-20 Joel Brobecker <brobecker@adacore.com> |
16268 | ||
16269 | * nat/linux-ptrace.c: Only include <sys/procfs.h> if | |
16270 | HAVE_SYS_PROCFS_H is defined. | |
16271 | ||
d1dff226 AH |
16272 | 2017-01-18 Alan Hayward <alan.hayward@arm.com> |
16273 | ||
16274 | * remote.c (struct cached_reg): Change data into a pointer. | |
16275 | * (stop_reply_dtr): Free data pointers before deleting vector. | |
16276 | (process_stop_reply): Likewise. | |
16277 | (remote_parse_stop_reply): Allocate space for data | |
16278 | ||
9890e433 AH |
16279 | 2017-01-18 Alan Hayward <alan.hayward@arm.com> |
16280 | ||
16281 | * amd64-tdep.c (amd64_pseudo_register_read_value): remove | |
16282 | MAX_REGISTER_SIZE. | |
16283 | (amd64_pseudo_register_read_value): Likewise. | |
16284 | * remote.c (fetch_register_using_p): Remove MAX_REGISTER_SIZE. | |
16285 | (store_register_using_P): Likewise. | |
16286 | * regcache.c (regcache_xfer_part): Likewise. | |
16287 | ||
7a36499a IR |
16288 | 2017-01-16 Ivo Raisr <ivo.raisr@oracle.com> |
16289 | ||
16290 | Split real and pseudo registers. | |
16291 | * sparc-tdep.h (SPARC_CORE_REGISTERS): New macro. | |
16292 | (sparc32_pseudo_regnum): New enum. | |
16293 | * sparc64-tdep.h (sparc64_pseudo_regnum): New enum. | |
16294 | * sparc-tdep.c (SPARC32_FPU_REGISTERS): New macro. | |
16295 | (SPARC32_CP0_REGISTERS): New macro. | |
16296 | (sparc32_pseudo_register_name): New function. | |
16297 | (sparc32_register_name): Use sparc32_pseudo_register_name. | |
16298 | (sparc32_pseudo_register_type): New function. | |
16299 | (sparc32_register_type): Use sparc32_pseudo_register_type. | |
16300 | (sparc32_pseudo_register_read, sparc32_pseudo_register_write): Handle | |
16301 | pseudo register numbers. | |
16302 | * sparc64-tdep.c SPARC64_FPU_REGISTERS): New macro. | |
16303 | (SPARC64_CP0_REGISTERS): New macro. | |
16304 | (sparc64_pseudo_register_name): New function. | |
16305 | (sparc64_register_name): Use sparc64_pseudo_register_name. | |
16306 | (sparc64_pseudo_register_type): New function. | |
16307 | (sparc64_register_type): Use sparc64_pseudo_register_type. | |
16308 | (sparc64_pseudo_register_read, sparc64_pseudo_register_write): Handle | |
16309 | pseudo register numbers. | |
16310 | (sparc64_store_floating_fields, sparc64_extract_floating_fields, | |
16311 | sparc64_store_arguments): Handle pseudo register numbers. | |
16312 | ||
6f8976bf YQ |
16313 | 2017-01-13 Yao Qi <yao.qi@linaro.org> |
16314 | ||
16315 | * remote.c (REMOTE_DEBUG_MAX_CHAR): New macro. | |
16316 | (putpkt_binary): Print only REMOTE_DEBUG_MAX_CHAR chars in debug | |
16317 | output. | |
16318 | (getpkt_or_notif_sane_1): Likewise. | |
16319 | ||
e4241ace YQ |
16320 | 2017-01-13 Yao Qi <yao.qi@linaro.org> |
16321 | ||
16322 | * Makefile.in (checker-headers): Use CXX and CXX_DIALET instead | |
16323 | of CC. Pass "-x c++-header" instead of "-x c". | |
16324 | ||
3015c064 SM |
16325 | 2017-01-12 Simon Marchi <simon.marchi@ericsson.com> |
16326 | ||
16327 | * remote.c (remote_can_async_p): Update comment. | |
16328 | ||
fde1b17d SM |
16329 | 2017-01-12 Simon Marchi <simon.marchi@ericsson.com> |
16330 | ||
16331 | * linux-nat.c (linux_nat_can_async_p): Update comment. | |
16332 | ||
ca1ca08b SM |
16333 | 2017-01-12 Simon Marchi <simon.marchi@ericsson.com> |
16334 | ||
16335 | * serial.c (serial_open): Forget about "pc" and "lpt" serial interface. | |
16336 | ||
4ad2da73 SM |
16337 | 2017-01-11 Simon Marchi <simon.marchi@ericsson.com> |
16338 | ||
16339 | * cli/cli-decode.c (lookup_cmd_1): Fix typo in comment. | |
16340 | ||
c8b23b3f TT |
16341 | 2017-01-10 Tom Tromey <tom@tromey.com> |
16342 | ||
16343 | * python/py-type.c (typy_legacy_template_argument): Update. | |
16344 | * cp-support.h (struct demangle_parse_info) (demangle_parse_info, | |
16345 | ~demangle_parse_info): Declare new members. | |
16346 | (cp_demangled_name_to_comp): Return unique_ptr. | |
16347 | (cp_demangled_name_parse_free) | |
16348 | (make_cleanup_cp_demangled_name_parse_free) | |
16349 | (cp_new_demangle_parse_info): Remove. | |
16350 | * cp-support.c (do_demangled_name_parse_free_cleanup) | |
16351 | (make_cleanup_cp_demangled_name_parse_free): Remove. | |
16352 | (inspect_type, cp_canonicalize_string_full) | |
16353 | (cp_canonicalize_string): Update. | |
16354 | (mangled_name_to_comp): Change return type. | |
16355 | (cp_class_name_from_physname, method_name_from_physname) | |
16356 | (cp_func_name, cp_remove_params): Update. | |
16357 | * cp-name-parser.y (demangle_parse_info): New constructor, from | |
16358 | cp_new_demangle_parse_info. | |
16359 | (~demangle_parse_info): New destructor, from | |
16360 | cp_demangled_name_parse_free. | |
16361 | (cp_merge_demangle_parse_infos): Update. | |
16362 | (cp_demangled_name_to_comp): Change return type. | |
16363 | ||
1ac32117 TT |
16364 | 2017-01-10 Tom Tromey <tom@tromey.com> |
16365 | ||
16366 | * top.c (prevent_dont_repeat): Change return type. | |
16367 | * python/python.c (execute_gdb_command): Use std::string. | |
16368 | Update. | |
16369 | * guile/guile.c (gdbscm_execute_gdb_command): Update. | |
16370 | * command.h (prevent_dont_repeat): Change return type. | |
16371 | * breakpoint.c (bpstat_do_actions_1): Update. | |
16372 | ||
0cf08227 TT |
16373 | 2017-01-10 Tom Tromey <tom@tromey.com> |
16374 | ||
16375 | * value.h (scoped_value_mark::~scoped_value_mark): Call | |
16376 | free_to_mark. | |
16377 | (scoped_value_mark::free_to_mark): New method. | |
16378 | * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use | |
16379 | scoped_value_mark. | |
16380 | ||
eb115069 TT |
16381 | 2017-01-10 Tom Tromey <tom@tromey.com> |
16382 | ||
16383 | * python/py-value.c (valpy_dereference, valpy_referenced_value) | |
16384 | (valpy_reference_value, valpy_const_value, valpy_get_address) | |
16385 | (valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast) | |
16386 | (valpy_getitem, valpy_call, valpy_binop_throw, valpy_negative) | |
16387 | (valpy_absolute, valpy_richcompare_throw): Use scoped_value_mark. | |
16388 | * dwarf2loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use | |
16389 | scoped_value_mark. | |
16390 | * dwarf2-frame.c (execute_stack_op): Use scoped_value_mark. | |
16391 | * value.h (scoped_value_mark): New class. | |
16392 | ||
906768f9 TT |
16393 | 2017-01-10 Tom Tromey <tom@tromey.com> |
16394 | ||
16395 | * dwarf2read.c (dwarf2_build_psymtabs): Use psymtab_discarder. | |
16396 | * psympriv.h (make_cleanup_discard_psymtabs): Don't declare. | |
16397 | * psymtab.c (discard_psymtabs_upto): Remove. | |
16398 | (make_cleanup_discard_psymtabs): Remove. | |
16399 | (struct psymtab_state): Remove. | |
16400 | ||
bef155c3 TT |
16401 | 2017-01-10 Tom Tromey <tom@tromey.com> |
16402 | ||
16403 | * record-full.c (record_full_save_cleanups): Remove. | |
16404 | (record_full_save): Use gdb::unlinker. | |
16405 | * gcore.c (do_bfd_delete_cleanup): Remove. | |
16406 | (gcore_command): Use gdb::unlinker, unique_xmalloc_ptr. Remove | |
16407 | cleanups. | |
16408 | * dwarf2read.c (unlink_if_set): Remove. | |
16409 | (write_psymtabs_to_index): Use gdb::unlinker. | |
16410 | * common/gdb_unlinker.h: New file. | |
16411 | ||
192b62ce TT |
16412 | 2017-01-10 Tom Tromey <tom@tromey.com> |
16413 | ||
16414 | * windows-tdep.c (windows_xfer_shared_library): Update. | |
16415 | * windows-nat.c (windows_make_so): Update. | |
16416 | * utils.h (make_cleanup_bfd_unref): Remove. | |
16417 | * utils.c (do_bfd_close_cleanup, make_cleanup_bfd_unref): Remove. | |
16418 | * symfile.h (symfile_bfd_open) | |
16419 | (find_separate_debug_file_in_section): Return gdb_bfd_ref_ptr. | |
16420 | * symfile.c (read_symbols, symbol_file_add) | |
16421 | (separate_debug_file_exists): Update. | |
16422 | (symfile_bfd_open): Return gdb_bfd_ref_ptr. | |
16423 | (generic_load, reread_symbols): Update. | |
16424 | * symfile-mem.c (symbol_file_add_from_memory): Update. | |
16425 | * spu-linux-nat.c (spu_bfd_open): Return gdb_bfd_ref_ptr. | |
16426 | (spu_symbol_file_add_from_memory): Update. | |
16427 | * solist.h (struct target_so_ops) <bfd_open>: Return | |
16428 | gdb_bfd_ref_ptr. | |
16429 | (solib_bfd_fopen, solib_bfd_open): Return gdb_bfd_ref_ptr. | |
16430 | * solib.c (solib_bfd_fopen, solib_bfd_open): Return | |
16431 | gdb_bfd_ref_ptr. | |
16432 | (solib_map_sections, reload_shared_libraries_1): Update. | |
16433 | * solib-svr4.c (enable_break): Update. | |
16434 | * solib-spu.c (spu_bfd_fopen): Return gdb_bfd_ref_ptr. | |
16435 | * solib-frv.c (enable_break2): Update. | |
16436 | * solib-dsbt.c (enable_break): Update. | |
16437 | * solib-darwin.c (gdb_bfd_mach_o_fat_extract): Return | |
16438 | gdb_bfd_ref_ptr. | |
16439 | (darwin_solib_get_all_image_info_addr_at_init): Update. | |
16440 | (darwin_bfd_open): Return gdb_bfd_ref_ptr. | |
16441 | * solib-aix.c (solib_aix_bfd_open): Return gdb_bfd_ref_ptr. | |
16442 | * record-full.c (record_full_save): Update. | |
16443 | * python/py-objfile.c (objfpy_add_separate_debug_file): Update. | |
16444 | * procfs.c (insert_dbx_link_bpt_in_file): Update. | |
16445 | * minidebug.c (find_separate_debug_file_in_section): Return | |
16446 | gdb_bfd_ref_ptr. | |
16447 | * machoread.c (macho_add_oso_symfile): Change abfd to | |
16448 | gdb_bfd_ref_ptr. | |
16449 | (macho_symfile_read_all_oso): Update. | |
16450 | (macho_check_dsym): Return gdb_bfd_ref_ptr. | |
16451 | (macho_symfile_read): Update. | |
16452 | * jit.c (bfd_open_from_target_memory): Return gdb_bfd_ref_ptr. | |
16453 | (jit_bfd_try_read_symtab): Update. | |
16454 | * gdb_bfd.h (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr) | |
16455 | (gdb_bfd_openw, gdb_bfd_openr_iovec) | |
16456 | (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return | |
16457 | gdb_bfd_ref_ptr. | |
16458 | (gdb_bfd_ref_policy): New struct. | |
16459 | (gdb_bfd_ref_ptr): New typedef. | |
16460 | * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr) | |
16461 | (gdb_bfd_openw, gdb_bfd_openr_iovec) | |
16462 | (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return | |
16463 | gdb_bfd_ref_ptr. | |
16464 | * gcore.h (create_gcore_bfd): Return gdb_bfd_ref_ptr. | |
16465 | * gcore.c (create_gcore_bfd): Return gdb_bfd_ref_ptr. | |
16466 | (gcore_command): Update. | |
16467 | * exec.c (exec_file_attach): Update. | |
16468 | * elfread.c (elf_symfile_read): Update. | |
16469 | * dwarf2read.c (dwarf2_get_dwz_file): Update. | |
16470 | (try_open_dwop_file, open_dwo_file): Return gdb_bfd_ref_ptr. | |
16471 | (open_and_init_dwo_file): Update. | |
16472 | (open_dwp_file): Return gdb_bfd_ref_ptr. | |
16473 | (open_and_init_dwp_file): Update. | |
16474 | * corelow.c (core_open): Update. | |
16475 | * compile/compile-object-load.c (compile_object_load): Update. | |
16476 | * common/gdb_ref_ptr.h (ref_ptr::operator->): New operator. | |
16477 | * coffread.c (coff_symfile_read): Update. | |
16478 | * cli/cli-dump.c (bfd_openr_or_error, bfd_openw_or_error): Return | |
16479 | gdb_bfd_ref_ptr. Rename. | |
16480 | (dump_bfd_file, restore_command): Update. | |
16481 | * build-id.h (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr. | |
16482 | * build-id.c (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr. | |
16483 | (find_separate_debug_file_by_buildid): Update. | |
16484 | ||
50315b21 TT |
16485 | 2017-01-10 Tom Tromey <tom@tromey.com> |
16486 | ||
16487 | * common/gdb_ref_ptr.h: New file. | |
16488 | * python/py-ref.h (struct gdbpy_ref_policy): New. | |
16489 | (gdbpy_ref): Now a typedef. | |
16490 | ||
fc4007c9 TT |
16491 | 2017-01-10 Tom Tromey <tom@tromey.com> |
16492 | ||
16493 | * utils.h (make_cleanup_htab_delete): Don't declare. | |
16494 | * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete): | |
16495 | Remove. | |
16496 | * linespec.c (decode_compound_collector): Add constructor, | |
16497 | destructor. | |
16498 | (lookup_prefix_sym): Remove cleanup. | |
16499 | (symtab_collector): Add constructor, destructor. | |
16500 | (collect_symtabs_from_filename): Remove cleanup. | |
16501 | * disasm.c (do_mixed_source_and_assembly): Use htab_up. | |
16502 | * compile/compile-c-symbols.c (generate_c_for_variable_locations): | |
16503 | Use htab_up. | |
16504 | * gnu-v3-abi.c (gnuv3_print_vtable): Use htab_up. | |
16505 | * dwarf2read.c (dw2_expand_symtabs_matching) | |
16506 | (dw2_map_symbol_filenames, dwarf_decode_macros) | |
16507 | (write_psymtabs_to_index): Use htab_up. | |
16508 | * dwarf2loc.c (func_verify_no_selftailcall) | |
16509 | (call_site_find_chain_1, func_verify_no_selftailcall) | |
16510 | (chain_candidate, call_site_find_chain_1): Use std::unordered_set, | |
16511 | std::vector, gdb::unique_xmalloc_ptr. | |
16512 | (call_sitep): Remove typedef. | |
16513 | (dwarf2_locexpr_baton_eval): Remove unused variable. | |
16514 | ||
8dbcee67 TT |
16515 | 2017-01-10 Tom Tromey <tom@tromey.com> |
16516 | ||
16517 | * python/python-internal.h (make_cleanup_py_decref) | |
16518 | (make_cleanup_py_xdecref): Don't declare. | |
16519 | * python/py-utils.c (py_decref, make_cleanup_py_decref) | |
16520 | (py_xdecref, make_cleanup_py_xdecref): Remove. | |
16521 | ||
13df46cc TT |
16522 | 2017-01-10 Tom Tromey <tom@tromey.com> |
16523 | ||
16524 | * python/py-framefilter.c (py_mi_print_variables): Use gdbpy_ref. | |
16525 | (py_print_locals, enumerate_locals, py_print_args): Use gdbpy_ref. | |
16526 | ||
06fc9bf7 TT |
16527 | 2017-01-10 Tom Tromey <tom@tromey.com> |
16528 | ||
16529 | * python/py-framefilter.c (enumerate_args): Use gdbpy_ref. | |
16530 | ||
830a4934 TT |
16531 | 2017-01-10 Tom Tromey <tom@tromey.com> |
16532 | ||
16533 | * python/py-utils.c (unicode_to_encoded_string) | |
16534 | (python_string_to_target_string) | |
16535 | (python_string_to_target_python_string) | |
16536 | (python_string_to_host_string, gdbpy_obj_to_string) | |
16537 | (get_addr_from_python): Use gdbpy_ref. | |
16538 | ||
4586d543 TT |
16539 | 2017-01-10 Tom Tromey <tom@tromey.com> |
16540 | ||
16541 | * python/py-unwind.c (pyuw_object_attribute_to_pointer): Use | |
16542 | gdbpy_ref. | |
16543 | ||
59876f8f TT |
16544 | 2017-01-10 Tom Tromey <tom@tromey.com> |
16545 | ||
16546 | * python/python.c (eval_python_command, gdbpy_decode_line) | |
16547 | (gdbpy_run_events, gdbpy_start_type_printers) | |
16548 | (gdbpy_apply_type_printers): Use gdbpy_ref. | |
16549 | ||
97d83487 TT |
16550 | 2017-01-10 Tom Tromey <tom@tromey.com> |
16551 | ||
16552 | * python/py-param.c (get_doc_string, compute_enum_values): Use | |
16553 | gdbpy_ref. | |
16554 | ||
9205649a TT |
16555 | 2017-01-10 Tom Tromey <tom@tromey.com> |
16556 | ||
16557 | * python/py-inferior.c (find_thread_object, build_inferior_list): | |
16558 | Use gdbpy_ref. | |
16559 | ||
74c49d45 TT |
16560 | 2017-01-10 Tom Tromey <tom@tromey.com> |
16561 | ||
16562 | * python/py-framefilter.c (py_print_frame): Use gdbpy_ref. | |
16563 | ||
16361ffb TT |
16564 | 2017-01-10 Tom Tromey <tom@tromey.com> |
16565 | ||
16566 | * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope): Use | |
16567 | gdbpy_ref. | |
16568 | ||
905f2cca TT |
16569 | 2017-01-10 Tom Tromey <tom@tromey.com> |
16570 | ||
16571 | * python/py-cmd.c (cmdpy_completer_helper): Use gdbpy_ref. Remove | |
16572 | extra incref. | |
16573 | (cmdpy_completer_handle_brkchars, cmdpy_completer, cmdpy_init): | |
16574 | Use gdbpy_ref. | |
16575 | ||
64081434 TT |
16576 | 2017-01-10 Tom Tromey <tom@tromey.com> |
16577 | ||
16578 | * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use | |
16579 | gdbpy_ref. | |
16580 | ||
59e9e831 TT |
16581 | 2017-01-10 Tom Tromey <tom@tromey.com> |
16582 | ||
16583 | * python/py-arch.c (archpy_disassemble): Use gdbpy_ref. Don't | |
16584 | decref results of PyArg_ParseTupleAndKeywords. | |
16585 | ||
9de10f6d TT |
16586 | 2017-01-10 Tom Tromey <tom@tromey.com> |
16587 | ||
16588 | * python/python.c (python_run_simple_file): Use | |
16589 | unique_xmalloc_ptr, gdbpy_ref. | |
16590 | ||
2bd5759d TT |
16591 | 2017-01-10 Tom Tromey <tom@tromey.com> |
16592 | ||
16593 | * python/py-prettyprint.c (print_stack_unless_memory_error) | |
16594 | (print_string_repr, print_children): Use gdbpy_ref. | |
16595 | (dummy_python_frame): New class. | |
16596 | (dummy_python_frame::dummy_python_frame): Rename from | |
16597 | push_dummy_python_frame. | |
16598 | (py_restore_tstate): Remove. | |
16599 | ||
3b4e0e01 TT |
16600 | 2017-01-10 Tom Tromey <tom@tromey.com> |
16601 | ||
16602 | * python/py-framefilter.c (py_print_frame): Use gdbpy_ref. | |
16603 | ||
17a22718 TT |
16604 | 2017-01-10 Tom Tromey <tom@tromey.com> |
16605 | ||
16606 | * python/python.c (ensure_python_env, restore_python_env): | |
16607 | Remove. | |
16608 | * python/python-internal.h (ensure_python_env): Don't declare. | |
16609 | * varobj.h (varobj_ensure_python_env): Don't declare. | |
16610 | * varobj.c (varobj_ensure_python_env): Remove. | |
16611 | ||
68cdc557 TT |
16612 | 2017-01-10 Tom Tromey <tom@tromey.com> |
16613 | ||
16614 | * varobj.c (varobj_value_get_print_value): Use | |
16615 | gdbpy_enter_varobj. | |
16616 | ||
1eba6383 TT |
16617 | 2017-01-10 Tom Tromey <tom@tromey.com> |
16618 | ||
16619 | * python/py-prettyprint.c (print_string_repr, print_children): | |
16620 | Update. | |
16621 | * python/py-lazy-string.c (gdbpy_extract_lazy_string): Change type | |
16622 | of "encoding". | |
16623 | * varobj.c (varobj_value_get_print_value): Update. | |
16624 | * python/python-internal.h (gdbpy_extract_lazy_string): Update. | |
16625 | ||
bde7b3e3 TT |
16626 | 2017-01-10 Tom Tromey <tom@tromey.com> |
16627 | ||
16628 | * varobj.c (varobj_get_display_hint) | |
16629 | (dynamic_varobj_has_child_method, install_new_value_visualizer) | |
16630 | (varobj_set_visualizer, free_variable): Use | |
16631 | gdbpy_enter_varobj. | |
16632 | ||
a7785f8c TT |
16633 | 2017-01-10 Tom Tromey <tom@tromey.com> |
16634 | ||
16635 | * python/python.c (python_command): Use gdbpy_enter, gdbpy_ref. | |
16636 | (do_finish_initialization): New function. Use gdbpy_ref. | |
16637 | (gdbpy_finish_initialization): Use gdbpy_enter. Call | |
16638 | do_finish_initialization. | |
16639 | ||
2865bfce TT |
16640 | 2017-01-10 Tom Tromey <tom@tromey.com> |
16641 | ||
16642 | * python/py-param.c (get_set_value, get_show_value): Use | |
16643 | gdbpy_enter, gdbpy_ref. | |
16644 | ||
0e9dcc75 TT |
16645 | 2017-01-10 Tom Tromey <tom@tromey.com> |
16646 | ||
16647 | * python/py-function.c (fnpy_call): Use gdbpy_enter, gdbpy_ref. | |
16648 | ||
12a5cedd TT |
16649 | 2017-01-10 Tom Tromey <tom@tromey.com> |
16650 | ||
16651 | * python/py-cmd.c (cmdpy_function): Use gdbpy_enter, gdbpy_ref. | |
16652 | ||
788f2586 TT |
16653 | 2017-01-10 Tom Tromey <tom@tromey.com> |
16654 | ||
16655 | * python/py-varobj.c (py_varobj_iter_dtor, py_varobj_iter_next): | |
16656 | Use gdbpy_enter_varobj. | |
16657 | ||
6cd67bea TT |
16658 | 2017-01-10 Tom Tromey <tom@tromey.com> |
16659 | ||
16660 | * varobj.c (gdbpy_enter_varobj): New constructor. | |
16661 | * python/python-internal.h (gdbpy_enter_varobj): New class. | |
16662 | * python/py-varobj.c (py_varobj_get_iterator): Use | |
16663 | gdbpy_enter_varobj. | |
16664 | ||
14b122bf TT |
16665 | 2017-01-10 Tom Tromey <tom@tromey.com> |
16666 | ||
16667 | * python/py-xmethods.c (gdbpy_get_xmethod_result_type): Use | |
16668 | gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr. | |
16669 | (gdbpy_invoke_xmethod): Use gdbpy_ref, gdbpy_enter. | |
16670 | (gdbpy_get_xmethod_arg_types): Use gdbpy_ref, | |
16671 | unique_xmalloc_ptr. | |
16672 | (gdbpy_get_xmethod_arg_types): Use gdbpy_ref, gdbpy_enter. | |
16673 | ||
bf1ca3b9 TT |
16674 | 2017-01-10 Tom Tromey <tom@tromey.com> |
16675 | ||
16676 | * python/py-xmethods.c (invoke_match_method): Use | |
16677 | gdbpy_ref. | |
16678 | ||
572a5524 TT |
16679 | 2017-01-10 Tom Tromey <tom@tromey.com> |
16680 | ||
16681 | * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): use | |
16682 | gdbpy_enter, gdbpy_ref. | |
16683 | ||
396a78b6 TT |
16684 | 2017-01-10 Tom Tromey <tom@tromey.com> |
16685 | ||
16686 | * python/python.c (python_interactive_command): Use gdbpy_enter. | |
16687 | ||
a88b13c7 TT |
16688 | 2017-01-10 Tom Tromey <tom@tromey.com> |
16689 | ||
16690 | * python/python.c (gdbpy_before_prompt_hook): Use gdbpy_enter, | |
16691 | gdbpy_ref. | |
16692 | ||
e9f0c363 TT |
16693 | 2017-01-10 Tom Tromey <tom@tromey.com> |
16694 | ||
16695 | * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Use | |
16696 | gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr. | |
16697 | ||
6349f452 TT |
16698 | 2017-01-10 Tom Tromey <tom@tromey.com> |
16699 | ||
16700 | * utils.h (htab_deleter): New struct. | |
16701 | (htab_up): New typedef. | |
16702 | * python/py-framefilter.c (gdbpy_apply_frame_filter): Use | |
16703 | gdbpy_enter, gdbpy_ref, htab_up. | |
16704 | ||
c0171de6 TT |
16705 | 2017-01-10 Tom Tromey <tom@tromey.com> |
16706 | ||
16707 | * python/py-unwind.c (pending_frame_invalidate): Remove. | |
16708 | (pyuw_sniffer): Use gdbpy_enter and gdbpy_ref. | |
16709 | ||
f18e226f TT |
16710 | 2017-01-10 Tom Tromey <tom@tromey.com> |
16711 | ||
16712 | * python/py-xmethods.c (gdbpy_free_xmethod_worker_data) | |
16713 | (gdbpy_clone_xmethod_worker_data): Use gdbpy_enter. | |
16714 | ||
c57af3f1 TT |
16715 | 2017-01-10 Tom Tromey <tom@tromey.com> |
16716 | ||
16717 | * python/py-type.c (save_objfile_types): Use gdbpy_enter. | |
16718 | ||
60e600ec TT |
16719 | 2017-01-10 Tom Tromey <tom@tromey.com> |
16720 | ||
16721 | * python/python.c (gdbpy_eval_from_control_command) | |
16722 | (gdbpy_source_script, gdbpy_run_events) | |
16723 | (gdbpy_source_objfile_script, gdbpy_execute_objfile_script) | |
16724 | (gdbpy_free_type_printers, gdbpy_finish_initialization): Use | |
16725 | gdbpy_enter. | |
16726 | ||
bf7da5b0 TT |
16727 | 2017-01-10 Tom Tromey <tom@tromey.com> |
16728 | ||
16729 | * python/py-progspace.c (py_free_pspace): Use gdbpy_enter. | |
16730 | ||
2d38bced TT |
16731 | 2017-01-10 Tom Tromey <tom@tromey.com> |
16732 | ||
16733 | * python/py-objfile.c (py_free_objfile): Use gdbpy_enter. | |
16734 | ||
07bc7329 TT |
16735 | 2017-01-10 Tom Tromey <tom@tromey.com> |
16736 | ||
16737 | * python/py-inferior.c (python_on_normal_stop, python_on_resume) | |
16738 | (python_on_inferior_call_pre, python_on_inferior_call_post) | |
16739 | (python_on_memory_change, python_on_register_change) | |
16740 | (python_inferior_exit, python_new_objfile, add_thread_object) | |
16741 | (delete_thread_object, py_free_inferior): Use gdbpy_enter. | |
16742 | ||
6e7c365e TT |
16743 | 2017-01-10 Tom Tromey <tom@tromey.com> |
16744 | ||
16745 | * python/py-finishbreakpoint.c (bpfinishpy_handle_stop) | |
16746 | (bpfinishpy_handle_exit): Use gdbpy_enter. | |
16747 | ||
6ba0cd40 TT |
16748 | 2017-01-10 Tom Tromey <tom@tromey.com> |
16749 | ||
16750 | * python/py-cmd.c (cmdpy_destroyer) | |
16751 | (cmdpy_completer_handle_brkchars, cmdpy_completer): Use | |
16752 | gdbpy_enter. | |
16753 | ||
de2dc875 TT |
16754 | 2017-01-10 Tom Tromey <tom@tromey.com> |
16755 | ||
16756 | * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use | |
16757 | gdbpy_enter. | |
16758 | (gdbpy_breakpoint_has_cond): Likewise. | |
16759 | ||
4ecee2c4 TT |
16760 | 2017-01-10 Tom Tromey <tom@tromey.com> |
16761 | ||
16762 | * python/python.c (gdbpy_enter): New constructor. | |
16763 | (~gdbpy_enter): New destructor. | |
16764 | (restore_python_env, ensure_python_env): Rewrite. | |
16765 | * python/python-internal.h (gdbpy_enter): New class. | |
16766 | ||
37fce74f TT |
16767 | 2017-01-10 Tom Tromey <tom@tromey.com> |
16768 | ||
16769 | * python/py-symbol.c (gdbpy_lookup_symbol): Use gdbpy_ref. | |
16770 | ||
53a0cca3 TT |
16771 | 2017-01-10 Tom Tromey <tom@tromey.com> |
16772 | ||
16773 | * python/py-value.c (value_has_field, get_field_flag) | |
16774 | (get_field_type, valpy_getitem, convert_value_from_python): Use | |
16775 | gdbpy_ref. | |
16776 | ||
ff3724f5 TT |
16777 | 2017-01-10 Tom Tromey <tom@tromey.com> |
16778 | ||
16779 | * python/python.c (gdbpy_progspaces, gdbpy_objfiles): Use | |
16780 | gdbpy_ref. | |
16781 | ||
0700aea5 TT |
16782 | 2017-01-10 Tom Tromey <tom@tromey.com> |
16783 | ||
16784 | * python/py-prettyprint.c (search_pp_list) | |
16785 | (find_pretty_printer_from_objfiles) | |
16786 | (find_pretty_printer_from_progspace) | |
16787 | (find_pretty_printer_from_gdb, find_pretty_printer) | |
16788 | (gdbpy_get_display_hint, gdbpy_get_varobj_pretty_printer): Use | |
16789 | gdbpy_ref. | |
16790 | ||
1bb44c9f TT |
16791 | 2017-01-10 Tom Tromey <tom@tromey.com> |
16792 | ||
16793 | * python/py-param.c (call_doc_function): Use gdbpy_ref. | |
16794 | ||
87ce03fd TT |
16795 | 2017-01-10 Tom Tromey <tom@tromey.com> |
16796 | ||
16797 | * python/py-linetable.c (build_line_table_tuple_from_pcs) | |
16798 | (ltpy_get_all_source_lines): Use gdbpy_ref. | |
16799 | ||
ee0a3fb8 TT |
16800 | 2017-01-10 Tom Tromey <tom@tromey.com> |
16801 | ||
16802 | * python/py-framefilter.c (extract_sym, extract_value) | |
16803 | (get_py_iter_from_func, bootstrap_python_frame_filters): Use | |
16804 | gdbpy_ref. | |
16805 | ||
bf2a52fa TT |
16806 | 2017-01-10 Tom Tromey <tom@tromey.com> |
16807 | ||
16808 | * python/py-breakpoint.c (gdbpy_breakpoints): Use gdbpy_ref. | |
16809 | ||
f59fe7f8 TT |
16810 | 2017-01-10 Tom Tromey <tom@tromey.com> |
16811 | ||
16812 | * python/py-inferior.c (gdbpy_inferiors): Use gdbpy_ref. | |
16813 | ||
80bd970a TT |
16814 | 2017-01-10 Tom Tromey <tom@tromey.com> |
16815 | ||
16816 | * python/py-function.c (convert_values_to_python, fnpy_init): Use | |
16817 | gdbpy_ref. | |
16818 | ||
d1b3de2e TT |
16819 | 2017-01-10 Tom Tromey <tom@tromey.com> |
16820 | ||
16821 | * python/py-cmd.c (gdbpy_string_to_argv): Use gdbpy_ref. | |
16822 | ||
3bb43384 TT |
16823 | 2017-01-10 Tom Tromey <tom@tromey.com> |
16824 | ||
16825 | * python/py-type.c (convert_field, make_fielditem, typy_fields) | |
16826 | (typy_range): Use gdbpy_ref. | |
16827 | ||
abf5651e TT |
16828 | 2017-01-10 Tom Tromey <tom@tromey.com> |
16829 | ||
16830 | * python/py-threadevent.c (create_thread_event_object): Use | |
16831 | gdbpy_ref. | |
16832 | * python/py-stopevent.c (create_stop_event_object): Simplify. | |
16833 | (emit_stop_event): Use gdbpy_ref. | |
16834 | * python/py-signalevent.c (create_signal_event_object): Use | |
16835 | gdbpy_ref. | |
16836 | * python/py-newobjfileevent.c (create_new_objfile_event_object) | |
16837 | (emit_new_objfile_event, create_clear_objfiles_event_object) | |
16838 | (emit_clear_objfiles_event): Use gdbpy_ref. | |
16839 | * python/py-infevents.c (create_inferior_call_event_object) | |
16840 | (create_register_changed_event_object) | |
16841 | (create_memory_changed_event_object, emit_inferior_call_event) | |
16842 | (emit_memory_changed_event, emit_register_changed_event): Use | |
16843 | gdbpy_ref. | |
16844 | * python/py-exitedevent.c (create_exited_event_object) | |
16845 | (emit_exited_event): Use gdbpy_ref. | |
16846 | * python/py-event.h (evpy_emit_event): Remove | |
16847 | CPYCHECKER_STEALS_REFERENCE_TO_ARG annotation. | |
16848 | * python/py-event.c (evpy_emit_event): Use gdbpy_ref. | |
16849 | * python/py-continueevent.c (emit_continue_event): Use | |
16850 | gdbpy_ref. | |
16851 | * python/py-breakpoint.c (gdbpy_breakpoint_created) | |
16852 | (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use | |
16853 | gdbpy_ref. | |
16854 | * python/py-bpevent.c (create_breakpoint_event_object): Use | |
16855 | gdbpy_ref. | |
16856 | ||
a68ff33e TT |
16857 | 2017-01-10 Tom Tromey <tom@tromey.com> |
16858 | ||
16859 | * python/py-ref.h: New file. | |
16860 | ||
7becfd03 SM |
16861 | 2017-01-10 Simon Marchi <simon.marchi@ericsson.com> |
16862 | ||
16863 | * cli-out.c (cli_ui_out::do_redirect): Change return type to | |
16864 | void. | |
16865 | * cli-out.h (cli_ui_out::do_redirect): Likewise. | |
16866 | * mi/mi-out.c (mi_ui_out::do_redirect): Likewise. | |
16867 | * mi/mi-out.h (mi_ui_out::do_redirect): Likewise. | |
16868 | * ui-out.c (ui_out::redirect): Likewise. | |
16869 | * ui-out.h (ui_out::redirect, ui_out::do_redirect): Likewise. | |
16870 | * cli/cli-logging.c (set_logging_redirect): Update call site of | |
16871 | ui_out::redirect. | |
16872 | (handle_redirections): Likewise. | |
16873 | * scm-ports.c (ioscm_with_output_to_port_worker): Likewise. | |
16874 | * top.c (execute_command_to_string): Likewise. | |
16875 | * utils.c (do_ui_out_redirect_pop): Likewise. | |
16876 | ||
df294654 SM |
16877 | 2017-01-10 Simon Marchi <simon.marchi@ericsson.com> |
16878 | ||
16879 | * stack.c (_initialize_stack): Update "frame" command help message. | |
16880 | ||
f5e6296e IB |
16881 | 2017-01-08 Iain Buclaw <ibuclaw@gdcproject.org> |
16882 | ||
16883 | * d-exp.y (CastExpression): Emit UNOP_CAST_TYPE. | |
16884 | ||
0e2d6fa6 YQ |
16885 | 2017-01-06 Yao Qi <yao.qi@linaro.org> |
16886 | ||
16887 | * x86-linux-nat.h: Include gdb_proc_service.h. | |
16888 | ||
44d6d3f9 YQ |
16889 | 2017-01-06 Yao Qi <yao.qi@linaro.org> |
16890 | ||
16891 | * ser-base.h: Include serial.h. | |
16892 | ||
656731fe YQ |
16893 | 2017-01-06 Yao Qi <yao.qi@linaro.org> |
16894 | ||
16895 | * ppc-linux-tdep.h: Include ppc-tdep.h. | |
16896 | ||
1ca8f924 YQ |
16897 | 2017-01-06 Yao Qi <yao.qi@linaro.org> |
16898 | ||
16899 | * nat/amd64-linux-siginfo.h: Include signal.h. | |
16900 | ||
bc3008c4 YQ |
16901 | 2017-01-06 Yao Qi <yao.qi@linaro.org> |
16902 | ||
16903 | * nat/aarch64-linux-hw-point.h: Include break-common.h. | |
16904 | ||
66c80d03 YQ |
16905 | 2017-01-06 Yao Qi <yao.qi@linaro.org> |
16906 | ||
16907 | * mi/mi-parse.h: Include mi-cmds.h. | |
16908 | ||
051d2dda YQ |
16909 | 2017-01-06 Yao Qi <yao.qi@linaro.org> |
16910 | ||
16911 | * inf-loop.c: Don't include "target.h". | |
16912 | * inf-loop.h: Include it here. | |
16913 | ||
8018d34f YQ |
16914 | 2017-01-06 Yao Qi <yao.qi@linaro.org> |
16915 | ||
16916 | * dfp.h: Include "dboulest.h" and "expression.h". | |
16917 | ||
c0b8369c YQ |
16918 | 2017-01-06 Yao Qi <yao.qi@linaro.org> |
16919 | ||
16920 | * ax-gdb.h: Include "ax.h". | |
16921 | ||
ad5cba2a YQ |
16922 | 2017-01-06 Yao Qi <yao.qi@linaro.org> |
16923 | ||
16924 | * Makefile.in (HFILES_NO_SRCDIR): Replace gdb_ptrace.h | |
16925 | with nat/gdb_ptrace.h. | |
16926 | ||
1c33cd7f YQ |
16927 | 2017-01-05 Yao Qi <yao.qi@linaro.org> |
16928 | ||
16929 | * mips-fbsd-tdep.c (mips_fbsd_sigframe_init): Move && to | |
16930 | new line. | |
16931 | (mips64_fbsd_sigframe_init): Likewise. | |
16932 | ||
c988ac1d JB |
16933 | 2017-01-04 John Baldwin <jhb@FreeBSD.org> |
16934 | ||
16935 | * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Use | |
16936 | GDB_OSABI_FREEBSD instead of GDB_OSABI_FREEBSD_ELF. | |
16937 | ||
b268007c JB |
16938 | 2017-01-04 John Baldwin <jhb@FreeBSD.org> |
16939 | ||
16940 | * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c. | |
16941 | * NEWS: Mention new FreeBSD/mips native configuration. | |
16942 | * config/mips/fbsd.mh: New file. | |
16943 | * configure.host: Add mips*-*-freebsd*. | |
16944 | * mips-fbsd-nat.c: New file. | |
16945 | ||
387360da JB |
16946 | 2017-01-04 John Baldwin <jhb@FreeBSD.org> |
16947 | ||
16948 | * Makefile.in (ALL_TARGET_OBS): Add mips-fbsd-tdep.o. | |
16949 | (ALLDEPFILES): Add mips-fbsd-tdep.c. | |
16950 | * NEWS: Mention new FreeBSD/mips target. | |
16951 | * configure.tgt: Add mips*-*-freebsd*. | |
16952 | * mips-fbsd-tdep.c: New file. | |
16953 | * mips-fbsd-tdep.h: New file. | |
16954 | ||
2aaaf250 YQ |
16955 | 2017-01-04 Yao Qi <yao.qi@linaro.org> |
16956 | ||
16957 | * dwarf2loc.c (write_pieced_value): Don't use VALUE_FRAME_ID (to), | |
16958 | use c->frame_id when the piece location is DWARF_VALUE_REGISTER. | |
16959 | ||
61baf725 JB |
16960 | 2017-01-01 Joel Brobecker <brobecker@adacore.com> |
16961 | ||
6dbb839a | 16962 | Update copyright year range in all GDB files. |
61baf725 | 16963 | |
c113e7ff | 16964 | 2017-01-01 Joel Brobecker <brobecker@adacore.com> |
ce0db137 | 16965 | |
c113e7ff | 16966 | * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2016. |
ce0db137 | 16967 | |
c113e7ff | 16968 | For older changes see ChangeLog-2016. |
c906108c SS |
16969 | \f |
16970 | Local Variables: | |
16971 | mode: change-log | |
16972 | left-margin: 8 | |
16973 | fill-column: 74 | |
16974 | version-control: never | |
57da7796 | 16975 | coding: utf-8 |
c906108c | 16976 | End: |