Commit | Line | Data |
---|---|---|
a2419b98 PW |
1 | 2018-12-08 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
2 | ||
3 | * linux-thread-db.c (struct thread_db_info): Add td_ta_delete_p. | |
4 | (thread_db_err_str): Forward declare. | |
5 | (delete_thread_db_info): Call td_ta_delete_p if available. | |
6 | (try_thread_db_load_1): Acquire td_ta_delete address. | |
7 | * nat/gdb_thread_db.h (td_ta_delete_ftype): Declare. | |
8 | ||
73e8dc90 PA |
9 | 2018-12-08 Pedro Alves <palves@redhat.com> |
10 | ||
11 | * source.c (forward_search_command): Rename to ... | |
12 | (search_command_helper): ... this. Add 'forward' parameter. | |
13 | Tweak to use a gdb::def_vector<char> instead of a xrealloc'ed | |
14 | buffer. Handle backward searches too. | |
15 | (forward_search_command, reverse_search_command): Reimplement by | |
16 | calling search_command_helper. | |
17 | ||
d9c859da AB |
18 | 2018-12-07 Andrew Burgess <andrew.burgess@embecosm.com> |
19 | ||
20 | * .dir-locals.el: Copy most of the settings from c-mode over to | |
21 | c++-mode. | |
22 | ||
42e151bf SH |
23 | 2018-12-08 Stafford Horne <shorne@gmail.com> |
24 | ||
25 | * Makefile.in (ALL_TARGET_OBS): Add or1k-linux-tdep.o. | |
26 | * configure.tgt: Add or1k*-*-linux*. | |
27 | * or1k-linux-tdep.c: New file. | |
28 | * or1k-tdep.c (or1k_gdbarch_init): Call gdbarch_init_osabi. | |
29 | ||
8bebfcda PA |
30 | 2018-12-07 Pedro Alves <palves@redhat.com> |
31 | ||
32 | * dwarf2read.c (get_gdb_index_contents_from_section): Use | |
33 | gdb::make_array_view. | |
34 | ||
4a811000 PW |
35 | 2018-12-05 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
36 | ||
37 | * language.c (_initialize_language): Fix leak by assigning | |
38 | a static string to language. Same for range and case_sensitive, | |
39 | even if no leak is detected for these variables. | |
40 | ||
2861ee4f JB |
41 | 2018-12-05 John Baldwin <jhb@FreeBSD.org> |
42 | ||
43 | * configure: Re-generate. | |
44 | * configure.ac: Use separate sed expressions to escape variables | |
45 | in auto-load directories. | |
46 | ||
90af0679 AB |
47 | 2018-12-05 Andrew Burgess <andrew.burgess@embecosm.com> |
48 | ||
49 | * riscv-tdep.c (riscv_features_from_gdbarch_info): New function. | |
50 | (riscv_find_default_target_description): Use new function to | |
51 | extract feature from gdbarch_info. | |
52 | (riscv_gdbarch_init): Add error checks for xlen and flen between | |
53 | target description and bfd headers. Be smarter about when we | |
54 | think the hardware floating point abi should be used. | |
55 | ||
754e3168 AH |
56 | 2018-12-05 Alan Hayward <alan.hayward@arm.com> |
57 | ||
58 | * nat/aarch64-linux-hw-point.c | |
59 | (aarch64_linux_any_set_debug_regs_state): New function. | |
60 | * nat/aarch64-linux-hw-point.h | |
61 | (aarch64_linux_any_set_debug_regs_state): New declaration. | |
62 | * nat/aarch64-linux.c (aarch64_linux_new_thread): Check if any | |
63 | BPs or WPs are set. | |
64 | ||
93579f6f JB |
65 | 2018-11-30 John Baldwin <jhb@FreeBSD.org> |
66 | ||
67 | * common/filestuff.c [HAVE_KINFO_GETFILE]: Include headers. | |
68 | (fdwalk) [HAVE_KINFO_GETFILE]: Use kinfo_getfile. | |
69 | ||
4717cec4 SM |
70 | 2018-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
71 | Simon Marchi <simon.marchi@ericsson.com> | |
72 | ||
73 | * linespec.c (symtab_vector_up): Remove. | |
74 | (symtabs_from_filename): Change return type to std::vector. | |
75 | (collect_symtabs_from_filename): Likewise. | |
76 | (create_sals_line_offset): Assign return value of | |
77 | collect_symtabs_from_filename to *ls->file_symtabs. | |
78 | (convert_explicit_location_to_linespec): Remove call to release. | |
79 | (parse_linespec): Likewise. | |
80 | (symtab_collector) <symtab_collector>: Remove initialization of | |
81 | m_symtabs. | |
82 | <release_symtabs>: Change return type to std::vector<symtab *>. | |
83 | <operator ()>: Adjust. | |
84 | ||
f8eb6a9e JB |
85 | 2018-11-30 John Baldwin <jhb@FreeBSD.org> |
86 | ||
87 | * fbsd-nat.c [__FreeBSD_version >= 700009] (USE_SIGINFO): Macro | |
88 | defined. | |
89 | (union sigval32, struct siginfo32, fbsd_siginfo_size) | |
90 | (fbsd_convert_siginfo): Make conditional on USE_SIGINFO instead | |
91 | of KERN_PROC_AUXV and PT_LWPINFO. | |
92 | (fbsd_nat_target::xfer_partial): Define method unconditionally. | |
93 | Make TARGET_OBJECT_SIGNAL_INFO conditional on USE_SIGINFO. | |
94 | Make TARGET_OBJECT_AUXV conditional on KERN_PROC_AUXV. | |
95 | Make TARGET_OBJECT_FREEBSD_VMMAP and | |
96 | TARGET_OBJECT_FREEBSD_PS_STRINGS conditional on KERN_PROC_VMMAP | |
97 | and KERN_PROC_PS_STRINGS. | |
98 | * fbsd-nat.h: Include <sys/proc.h>. | |
99 | (fbsd_nat_target::xfer_partial): Declare method unconditionally. | |
100 | ||
92528b67 AB |
101 | 2018-11-30 Andrew Burgess <andrew.burgess@embecosm.com> |
102 | ||
103 | * riscv-linux-nat.c: Add 'inferior.h' and 'target-descriptions.h' | |
104 | header files. | |
105 | (riscv_linux_nat_target::read_description): New method. | |
106 | ||
63449436 AB |
107 | 2018-11-30 Andrew Burgess <andrew.burgess@embecosm.com> |
108 | ||
109 | * arch/riscv.h (riscv_gdbarch_features::hash): New method. | |
110 | * arch/riscv.c (struct riscv_gdbarch_features_hasher): New. | |
111 | (riscv_tdesc_cache): New global. | |
112 | (riscv_create_target_description): Look in the cache before | |
113 | creating a new target description. | |
114 | ||
65a4b373 AB |
115 | 2018-11-30 Andrew Burgess <andrew.burgess@embecosm.com> |
116 | ||
117 | * arch/riscv.h (riscv_gdb_features::operator==): New. | |
118 | (riscv_gdb_features::operator!=): New. | |
119 | * riscv-tdep.c (riscv_gdbarch_init): Make use of the inequality | |
120 | operator. | |
121 | ||
0ff80bf7 AB |
122 | 2018-11-30 Andrew Burgess <andrew.burgess@embecosm.com> |
123 | ||
124 | * arch/riscv.h (riscv_create_target_description): Make return type | |
125 | const. | |
126 | * arch/riscv.c (riscv_create_target_description): Likewise. | |
127 | * riscv-tdep.c (riscv_find_default_target_description): Likewise. | |
128 | ||
81fbbaf9 SDJ |
129 | 2018-11-30 Jan Kratochvil <jan.kratochvil@redhat.com> |
130 | Keith Seitz <keiths@redhat.com> | |
131 | Tom Tromey <tom@tromey.com> | |
132 | Sergio Durigan Junior <sergiodj@redhat.com> | |
133 | ||
134 | https://bugzilla.redhat.com/show_bug.cgi?id=1613614 | |
135 | * dwarf2read.c (dwarf2_find_containing_comp_unit): Add | |
136 | 'mid_cu->length' to '*cu_off' when checking if 'sect_off' is | |
137 | inside the CU. | |
138 | ||
66b4deae PA |
139 | 2018-11-30 Pedro Alves <palves@redhat.com> |
140 | ||
141 | * aix-thread.c (aix_thread_target) <aix_thread_target>: Delete. | |
142 | <stratum>: New override. | |
143 | * bfd-target.c (aix_thread_target) <aix_thread_target>: Delete. | |
144 | <stratum>: New override. | |
145 | * bsd-uthread.c (bsd_uthread_target) <bsd_uthread_target>: Delete. | |
146 | <stratum>: New override. | |
147 | * exec.c (exec_target) <exec_target>: Delete. | |
148 | <stratum>: New override. | |
149 | * gdbarch-selftests.c (register_to_value_test): Adjust to use the | |
150 | stratum method instead of the to_stratum field. | |
151 | * linux-thread-db.c (thread_db_target) <thread_db_target>: Delete. | |
152 | <stratum>: New override. | |
153 | (thread_db_target::thread_db_target): Delete. | |
154 | * make-target-delegates (print_class): Don't print a ctor | |
155 | declaration. Print a stratum method override declaration. | |
156 | * process-stratum-target.h (process_stratum_target) | |
157 | <process_stratum_target>: Delete. | |
158 | <stratum>: New override. | |
159 | * ravenscar-thread.c (ravenscar_thread_target) | |
160 | <ravenscar_thread_target>: Delete. | |
161 | <stratum>: New override. | |
162 | * record-btrace.c (record_btrace_target) | |
163 | <record_btrace_target>: Delete. | |
164 | <stratum>: New override. | |
165 | * record-full.c (record_full_base_target) | |
166 | <record_full_base_target>: Delete. | |
167 | <stratum>: New override. | |
168 | * record.c (record_disconnect, record_detach) | |
169 | (record_mourn_inferior, record_kill): Adjust to use the stratum | |
170 | method instead of the to_stratum field. | |
171 | * regcache.c (cooked_read_test, cooked_write_test): Likewise. | |
172 | * sol-thread.c (sol_thread_target) | |
173 | <sol_thread_target>: Delete. | |
174 | <stratum>: New override. | |
175 | * spu-multiarch.c (spu_multiarch_target) | |
176 | <spu_multiarch_target>: Delete. | |
177 | <stratum>: New override. | |
178 | * target-delegates.c: Regenerate. | |
179 | * target.c (target_stack::push, target_stack::unpush) | |
180 | (pop_all_targets_above, pop_all_targets_at_and_above) | |
181 | (info_target_command, target_require_runnable) | |
182 | (target_stack::find_beneath): Adjust to use the stratum method | |
183 | instead of the to_stratum field. | |
184 | (dummy_target::dummy_target): Delete. | |
185 | (dummy_target::stratum): New. | |
186 | (debug_target::debug_target): Delete. | |
187 | (debug_target::stratum): New. | |
188 | (maintenance_print_target_stack): Adjust to use the stratum method | |
189 | instead of the to_stratum field. | |
190 | * target.h (struct target_ops) <stratum>: New method. | |
191 | <to_stratum>: Delete. | |
192 | <is_pushed>: Adjust to use the stratum method | |
193 | instead of the to_stratum field. | |
194 | ||
f3d11a9a PA |
195 | 2018-11-30 Pedro Alves <palves@redhat.com> |
196 | ||
197 | * corelow.c (core_target) <has_all_memory, has_execution>: New | |
198 | overrides. | |
199 | * inf-child.c (inf_child_target::has_all_memory) | |
200 | (inf_child_target::has_memory, inf_child_target::has_stack) | |
201 | (inf_child_target::has_registers) | |
202 | (inf_child_target::has_execution): Delete. | |
203 | * inf-child.h (inf_child_target) <has_all_memory, has_memory, | |
204 | has_stack, has_registers, has_execution>: Delete. | |
205 | * process-stratum-target.c | |
206 | (process_stratum_target::has_all_memory) | |
207 | (process_stratum_target::has_memory) | |
208 | (process_stratum_target::has_stack) | |
209 | (process_stratum_target::has_registers) | |
210 | (process_stratum_target::has_execution): New. | |
211 | * process-stratum-target.h (process_stratum_target) | |
212 | <has_all_memory, has_memory, has_stack, has_registers, | |
213 | has_execution>: New method overrides. | |
214 | * ravenscar-thread.c (ravenscar_thread_target) <has_all_memory, | |
215 | has_memory, has_stack, has_registers, has_execution>: Delete. | |
216 | * remote-sim.c (gdbsim_target) <has_stack, has_registers, | |
217 | has_execution>: Delete. | |
218 | * remote.c (remote_target) <has_all_memory, has_memory, has_stack, | |
219 | has_registers, has_execution>: Delete. | |
220 | * target.c (default_child_has_all_memory) | |
221 | (default_child_has_memory, default_child_has_stack) | |
222 | (default_child_has_registers, default_child_has_execution): | |
223 | Delete. | |
224 | * target.h (default_child_has_all_memory) | |
225 | (default_child_has_memory, default_child_has_stack) | |
226 | (default_child_has_registers, default_child_has_execution): | |
227 | Delete. | |
228 | * tracefile.h (tracefile_target) <has_execution>: New override. | |
229 | ||
3b3dac9b PA |
230 | 2018-11-30 Pedro Alves <palves@redhat.com> |
231 | ||
232 | * Makefile.in (COMMON_SFILES): Add process-stratum-target.c. | |
233 | * bsd-kvm.c: Include "process-stratum-target.h". | |
234 | (bsd_kvm_target): Now inherits from process_stratum_target. | |
235 | (bsd_kvm_target::bsd_kvm_target): Default it. | |
236 | * corelow.c: Include "process-stratum-target.h". | |
237 | (core_target): Now inherits from process_stratum_target. | |
238 | (core_target::core_target): Don't set to_stratum here. | |
239 | * inf-child.c (inf_child_target::inf_child_target): Delete. | |
240 | * inf-child.h: Include "process-stratum-target.h". | |
241 | (inf_child_target): Inherit from process_stratum_target. | |
242 | (inf_child_target) <inf_child_target>: Default it. | |
243 | <can_async_p, supports_non_stop, supports_disable_randomization>: | |
244 | Delete overrides. | |
245 | * process-stratum-target.c: New file. | |
246 | * process-stratum-target.h: New file. | |
247 | * remote-sim.c: Include "process-stratum-target.h". | |
248 | (gdbsim_target): Inherit from process_stratum_target. | |
249 | <gdbsim_target>: Default it. | |
250 | * remote.c: Include "process-stratum-target.h". | |
251 | (remote_target): Inherit from process_stratum_target. | |
252 | <remote_target>: Default it. | |
253 | * target.c (default_thread_address_space) | |
254 | (default_thread_architecture): Delete. | |
255 | * target.h (target_ops) <thread_architecture>: Now returns NULL by | |
256 | default. | |
257 | <thread_address_space>: Ditto. | |
258 | * test-target.h: Include "process-stratum-target.h" instead of | |
259 | "target.h". | |
260 | (test_target_ops): Inherit from process_stratum_target. | |
261 | <test_target_ops>: Default it. | |
262 | * tracefile.c (tracefile_target::tracefile_target): Delete. | |
263 | * tracefile.h: Include "process-stratum-target.h". | |
264 | (tracefile_target): Inherit from process_stratum_target. | |
265 | <tracefile_target>: Default it. | |
266 | * target-delegates.c: Regenerate. | |
267 | ||
c180496d PA |
268 | 2018-11-30 Pedro Alves <palves@redhat.com> |
269 | ||
270 | * Makefile.in (COMMON_SFILES): Add test-target.c. | |
271 | * gdbarch-selftests.c: Include "test-target.h". | |
272 | * regcache.c: Include "test-target.h". | |
273 | * target.c (test_target_info, test_target_ops::info): Move to ... | |
274 | * test-target.c: ... this new file. | |
275 | * target.h (test_target_ops): Move to ... | |
276 | * test-target.h: ... this new file. | |
277 | ||
95b1f9ac PW |
278 | 2018-11-29 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
279 | ||
280 | * source.c (forward_search_command): Fix leak by using | |
281 | xrealloc even for the first allocation in the loop, as buf | |
282 | is static. | |
283 | ||
e61667ef RS |
284 | 2018-11-29 Rajendra SY <rajendra.sy@gmail.com> |
285 | ||
286 | PR gdb/23093 | |
287 | * gdb/fbsd-tdep.c (fbsd_gdb_signal_from_target) | |
288 | (fbsd_gdb_signal_to_target): New. | |
289 | (fbsd_init_abi): Install gdbarch "signal_from_target" and | |
290 | "signal_to_target" methods. | |
291 | ||
3d5500e9 TT |
292 | 2018-11-29 Tom Tromey <tom@tromey.com> |
293 | ||
294 | * valarith.c (value_x_unop): Don't set argvec[3]. | |
295 | ||
ed2df75c SM |
296 | 2018-11-26 Simon Marchi <simon.marchi@ericsson.com> |
297 | ||
298 | PR gdb/23917 | |
299 | * sparc-linux-nat.c (sparc_linux_nat_target): Remove extraneous | |
300 | semicolon. | |
301 | ||
24bce9bb PA |
302 | 2018-11-26 Pedro Alves <palves@redhat.com> |
303 | ||
304 | * procfs.c (procfs_notice_thread): Replace uses of | |
305 | in_thread_list/is_exited with find_thread_ptid/THREAD_EXITED. | |
306 | * sol-thread.c (sol_thread_target::wait) | |
307 | (sol_update_thread_list_callback): Likewise. | |
308 | ||
b5b12e1d TT |
309 | 2018-11-25 Tom Tromey <tom@tromey.com> |
310 | ||
311 | * ui-out.c (ui_out::field_fmt): Remove comment. | |
312 | * tui/tui-out.c (tui_ui_out::do_field_fmt): Remove comment. | |
313 | * mi/mi-out.c (mi_ui_out::do_field_fmt): Remove comment. | |
314 | ||
54460946 PW |
315 | 2018-11-24 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
316 | ||
317 | * source.c (open_source_file): Leak fixed in '8e6a5953e1d Fix 4K | |
318 | leak in open_source_file' has been partially undone by '2179fbc36d23 | |
319 | Return scoped_fd from open_source_file'. Re-add the transfer of | |
320 | current s->fullname to the unique_xmalloc_ptr fullname given | |
321 | to find_and_open_source. | |
322 | ||
6af05e64 PA |
323 | 2018-11-23 Pedro Alves <palves@redhat.com> |
324 | ||
325 | * gdbthread.h (enum thread_state): Move comments here. | |
326 | (is_running, is_stopped, is_exited): Remove declarations. | |
327 | ||
08036331 PA |
328 | 2018-11-22 Pedro Alves <palves@redhat.com> |
329 | ||
330 | * Makefile.in (COMMON_SFILES): Add thread-iter.c. | |
331 | * breakpoint.c (breakpoints_should_be_inserted_now): Replace | |
332 | ALL_NON_EXITED_THREADS with all_non_exited_threads. | |
333 | (print_one_breakpoint_location): Replace ALL_INFERIORS with | |
334 | all_inferiors. | |
335 | * bsd-kvm.c: Include inferior.h. | |
336 | * btrace.c (btrace_free_objfile): Replace ALL_NON_EXITED_THREADS | |
337 | with all_non_exited_threads. | |
338 | * common/filtered-iterator.h: New. | |
339 | * common/safe-iterator.h: New. | |
340 | * corelow.c (core_target_open): Don't call init_thread_list here. | |
341 | * darwin-nat.c (thread_info_from_private_thread_info): Replace | |
342 | ALL_THREADS with all_threads. | |
343 | * fbsd-nat.c (fbsd_nat_target::resume): Replace | |
344 | ALL_NON_EXITED_THREADS with inf->non_exited_threads. | |
345 | * fbsd-tdep.c (fbsd_make_corefile_notes): Replace | |
346 | ALL_NON_EXITED_THREADS with inf->non_exited_threads. | |
347 | * fork-child.c (postfork_hook): Don't call init_thread_list here. | |
348 | * gdbarch-selftests.c (register_to_value_test): Adjust. | |
349 | * gdbthread.h: Don't include "inferior.h" here. | |
350 | (struct inferior): Forward declare. | |
351 | (enum step_over_calls_kind): Moved here from inferior.h. | |
352 | (thread_info::deletable): Definition moved to thread.c. | |
353 | (find_thread_ptid (inferior *, ptid_t)): Declare. | |
354 | (ALL_THREADS, ALL_THREADS_BY_INFERIOR, ALL_THREADS_SAFE): Delete. | |
355 | Include "thread-iter.h". | |
356 | (all_threads, all_non_exited_threads, all_threads_safe): New. | |
357 | (any_thread_p): Declare. | |
358 | (thread_list): Delete. | |
359 | * infcmd.c (signal_command): Replace ALL_NON_EXITED_THREADS with | |
360 | all_non_exited_threads. | |
361 | (proceed_after_attach_callback): Delete. | |
362 | (proceed_after_attach): Take an inferior pointer instead of an | |
363 | integer PID. Adjust to use range-for. | |
364 | (attach_post_wait): Pass down inferior pointer instead of pid. | |
365 | Use range-for instead of ALL_NON_EXITED_THREADS. | |
366 | (detach_command): Remove init_thread_list call. | |
367 | * inferior-iter.h: New. | |
368 | * inferior.c (struct delete_thread_of_inferior_arg): Delete. | |
369 | (delete_thread_of_inferior): Delete. | |
370 | (delete_inferior, exit_inferior_1): Use range-for with | |
371 | inf->threads_safe() instead of iterate_over_threads. | |
372 | (inferior_appeared): Call init_thread_list here. | |
373 | (discard_all_inferiors): Use all_non_exited_inferiors. | |
374 | (find_inferior_id, find_inferior_pid): Use all_inferiors. | |
375 | (iterate_over_inferiors): Use all_inferiors_safe. | |
376 | (have_inferiors, number_of_live_inferiors): Use | |
377 | all_non_exited_inferiors. | |
378 | (number_of_inferiors): Use all_inferiors and std::distance. | |
379 | (print_inferior): Use all_inferiors. | |
380 | * inferior.h: Include gdbthread.h. | |
381 | (enum step_over_calls_kind): Moved to gdbthread.h. | |
382 | (struct inferior) <thread_list>: New field. | |
383 | <threads, non_exited_threads, threads_safe>: New methods. | |
384 | (ALL_INFERIORS): Delete. | |
385 | Include "inferior-iter.h". | |
386 | (ALL_NON_EXITED_INFERIORS): Delete. | |
387 | (all_inferiors_safe, all_inferiors, all_non_exited_inferiors): New | |
388 | functions. | |
389 | * inflow.c (child_interrupt, child_pass_ctrlc): Replace | |
390 | ALL_NON_EXITED_THREADS with all_non_exited_threads. | |
391 | * infrun.c (follow_exec): Use all_threads_safe. | |
392 | (clear_proceed_status, proceed): Use all_non_exited_threads. | |
393 | (init_wait_for_inferior): Don't clear inline frame state here. | |
394 | (infrun_thread_stop_requested, for_each_just_stopped_thread): Use | |
395 | all_threads instead of ALL_NON_EXITED_THREADS. | |
396 | (random_pending_event_thread): Use all_non_exited_threads instead | |
397 | of ALL_NON_EXITED_THREADS. Use a lambda for repeated code. | |
398 | (clean_up_just_stopped_threads_fsms): Use all_non_exited_threads | |
399 | instead of ALL_NON_EXITED_THREADS. | |
400 | (handle_no_resumed): Use all_non_exited_threads instead of | |
401 | ALL_NON_EXITED_THREADS. Use all_inferiors instead of | |
402 | ALL_INFERIORS. | |
403 | (restart_threads, switch_back_to_stepped_thread): Use | |
404 | all_non_exited_threads instead of ALL_NON_EXITED_THREADS. | |
405 | * linux-nat.c (check_zombie_leaders): Replace ALL_INFERIORS with | |
406 | all_inferiors. | |
407 | (kill_unfollowed_fork_children): Use inf->non_exited_threads | |
408 | instead of ALL_NON_EXITED_THREADS. | |
409 | * linux-tdep.c (linux_make_corefile_notes): Use | |
410 | inf->non_exited_threads instead of ALL_NON_EXITED_THREADS. | |
411 | * linux-thread-db.c (thread_db_target::update_thread_list): | |
412 | Replace ALL_INFERIORS with all_inferiors. | |
413 | (thread_db_target::thread_handle_to_thread_info): Use | |
414 | inf->non_exited_threads instead of ALL_NON_EXITED_THREADS. | |
415 | * mi/mi-interp.c (multiple_inferiors_p): New. | |
416 | (mi_on_resume_1): Simplify using all_non_exited_threads and | |
417 | multiple_inferiors_p. | |
418 | * mi/mi-main.c (mi_cmd_thread_list_ids): Use all_non_exited_threads | |
419 | instead of ALL_NON_EXITED_THREADS. | |
420 | * nto-procfs.c (nto_procfs_target::open): Don't call | |
421 | init_thread_list here. | |
422 | * record-btrace.c (record_btrace_target_open) | |
423 | (record_btrace_target::stop_recording) | |
424 | (record_btrace_target::close) | |
425 | (record_btrace_target::record_is_replaying) | |
426 | (record_btrace_target::resume, record_btrace_target::wait) | |
427 | (record_btrace_target::record_stop_replaying): Use | |
428 | all_non_exited_threads instead of ALL_NON_EXITED_THREADS. | |
429 | * record-full.c (record_full_wait_1): Use all_non_exited_threads | |
430 | instead of ALL_NON_EXITED_THREADS. | |
431 | * regcache.c (cooked_read_test): Remove reference to global | |
432 | thread_list. | |
433 | * remote-sim.c (gdbsim_target::create_inferior): Don't call | |
434 | init_thread_list here. | |
435 | * remote.c (remote_target::update_thread_list): Use | |
436 | all_threads_safe instead of ALL_NON_EXITED_THREADS. | |
437 | (remote_target::process_initial_stop_replies): Replace | |
438 | ALL_INFERIORS with all_non_exited_inferiors and use | |
439 | all_non_exited_threads instead of ALL_NON_EXITED_THREADS. | |
440 | (remote_target::open_1): Don't call init_thread_list here. | |
441 | (remote_target::append_pending_thread_resumptions) | |
442 | (remote_target::remote_resume_with_hc): Use all_non_exited_threads | |
443 | instead of ALL_NON_EXITED_THREADS. | |
444 | (remote_target::commit_resume) | |
445 | (remote_target::remove_new_fork_children): Replace ALL_INFERIORS | |
446 | with all_non_exited_inferiors and use all_non_exited_threads | |
447 | instead of ALL_NON_EXITED_THREADS. | |
448 | (remote_target::kill_new_fork_children): Use | |
449 | all_non_exited_threads instead of ALL_NON_EXITED_THREADS. Remove | |
450 | init_thread_list and init_wait_for_inferior calls. | |
451 | (remote_target::remote_btrace_maybe_reopen) | |
452 | (remote_target::thread_handle_to_thread_info): Use | |
453 | all_non_exited_threads instead of ALL_NON_EXITED_THREADS. | |
454 | * target.c (target_terminal::restore_inferior) | |
455 | (target_terminal_is_ours_kind): Replace ALL_INFERIORS with | |
456 | all_non_exited_inferiors. | |
457 | * thread-iter.c: New file. | |
458 | * thread-iter.h: New file. | |
459 | * thread.c: Include "inline-frame.h". | |
460 | (thread_list): Delete. | |
461 | (clear_thread_inferior_resources): Call clear_inline_frame_state. | |
462 | (init_thread_list): Use all_threads_safe instead of | |
463 | ALL_THREADS_SAFE. Adjust to per-inferior thread lists. | |
464 | (new_thread): Adjust to per-inferior thread lists. | |
465 | (add_thread_silent): Pass inferior to find_thread_ptid. | |
466 | (thread_info::deletable): New, moved from the header. | |
467 | (delete_thread_1): Adjust to per-inferior thread lists. | |
468 | (find_thread_global_id): Use inf->threads(). | |
469 | (find_thread_ptid): Use find_inferior_ptid and pass inferior to | |
470 | find_thread_ptid. | |
471 | (find_thread_ptid(inferior*, ptid_t)): New overload. | |
472 | (iterate_over_threads): Use all_threads_safe. | |
473 | (any_thread_p): New. | |
474 | (thread_count): Use all_threads and std::distance. | |
475 | (live_threads_count): Use all_non_exited_threads and | |
476 | std::distance. | |
477 | (valid_global_thread_id): Use all_threads. | |
478 | (in_thread_list): Use find_thread_ptid. | |
479 | (first_thread_of_inferior): Adjust to per-inferior thread lists. | |
480 | (any_thread_of_inferior, any_live_thread_of_inferior): Use | |
481 | inf->non_exited_threads(). | |
482 | (prune_threads, delete_exited_threads): Use all_threads_safe. | |
483 | (thread_change_ptid): Pass inferior pointer to find_thread_ptid. | |
484 | (set_resumed, set_running): Use all_non_exited_threads. | |
485 | (is_thread_state, is_stopped, is_exited, is_running) | |
486 | (is_executing): Delete. | |
487 | (set_executing, set_stop_requested, finish_thread_state): Use | |
488 | all_non_exited_threads. | |
489 | (print_thread_info_1): Use all_inferiors and all_threads. | |
490 | (thread_apply_all_command): Use all_non_exited_threads. | |
491 | (thread_find_command): Use all_threads. | |
492 | (update_threads_executing): Use all_non_exited_threads. | |
493 | * tid-parse.c (parse_thread_id): Use inf->threads. | |
494 | * x86-bsd-nat.c (x86bsd_dr_set): Use inf->non_exited_threads (). | |
495 | ||
c4c17fb0 PA |
496 | 2018-11-22 Pedro Alves <palves@redhat.com> |
497 | ||
498 | * infrun.c (follow_exec) <set follow-exec new>: Add thread and | |
499 | switch to it before calling into try_open_exec_file. | |
500 | ||
151bb4a5 PA |
501 | 2018-11-22 Pedro Alves <palves@redhat.com> |
502 | ||
503 | * cli/cli-interp.c (cli_on_user_selected_context_changed): Use | |
504 | inferior_thread instead of find_thread_ptid, and only when | |
505 | inferior_ptid is not null_ptid. | |
506 | * inferior.c (add_inferior): Don't include target_pid_to_str | |
507 | output when the inferior is not started. | |
508 | * python/py-inferior.c (python_on_normal_stop): Don't use | |
509 | find_thread_ptid. | |
510 | (tui_on_user_selected_context_changed): Use inferior_thread | |
511 | instead of find_thread_ptid, and only when inferior_ptid is not | |
512 | null_ptid. | |
513 | ||
1c97054b BF |
514 | 2018-11-21 Benno Fünfstück <benno.fuenfstueck@gmail.com> |
515 | ||
516 | PR python/23714 | |
517 | * gdb/python/python.c (execute_gdb_command): Call | |
518 | prevent_dont_repeat earlier to avoid affecting dont_repeat. | |
519 | ||
b5ffee31 AB |
520 | 2018-11-21 Andrew Burgess <andrew.burgess@embecosm.com> |
521 | ||
522 | * Makefile.in (ALL_TARGET_OBS): Add arch/riscv.o. | |
523 | (HFILES_NO_SRCDIR): Add arch/riscv.h. | |
524 | * arch/riscv.c: New file. | |
525 | * arch/riscv.h: New file. | |
526 | * configure.tgt: Add cpu_obs list of riscv, move riscv-tdep.o into | |
527 | this list, and add arch/riscv.o. | |
528 | * features/Makefile: Add riscv features. | |
529 | * features/riscv/32bit-cpu.c: New file. | |
530 | * features/riscv/32bit-cpu.xml: New file. | |
531 | * features/riscv/32bit-csr.c: New file. | |
532 | * features/riscv/32bit-csr.xml: New file. | |
533 | * features/riscv/32bit-fpu.c: New file. | |
534 | * features/riscv/32bit-fpu.xml: New file. | |
535 | * features/riscv/64bit-cpu.c: New file. | |
536 | * features/riscv/64bit-cpu.xml: New file. | |
537 | * features/riscv/64bit-csr.c: New file. | |
538 | * features/riscv/64bit-csr.xml: New file. | |
539 | * features/riscv/64bit-fpu.c: New file. | |
540 | * features/riscv/64bit-fpu.xml: New file. | |
541 | * features/riscv/rebuild-csr-xml.sh: New file. | |
542 | * riscv-tdep.c: Add 'arch/riscv.h' include. | |
543 | (riscv_gdb_reg_names): Delete. | |
544 | (csr_reggroup): New global. | |
545 | (struct riscv_register_alias): Delete. | |
546 | (struct riscv_register_feature): New structure. | |
547 | (riscv_register_aliases): Delete. | |
548 | (riscv_xreg_feature): New global. | |
549 | (riscv_freg_feature): New global. | |
550 | (riscv_virtual_feature): New global. | |
551 | (riscv_csr_feature): New global. | |
552 | (riscv_create_csr_aliases): New function. | |
553 | (riscv_read_misa_reg): Delete. | |
554 | (riscv_has_feature): Delete. | |
555 | (riscv_isa_xlen): Simplify, just return cached xlen. | |
556 | (riscv_isa_flen): Simplify, just return cached flen. | |
557 | (riscv_has_fp_abi): Update for changes in struct gdbarch_tdep. | |
558 | (riscv_register_name): Update to make use of tdesc_register_name. | |
559 | Look up xreg and freg names in the new globals riscv_xreg_feature | |
560 | and riscv_freg_feature. Don't supply csr aliases here. | |
561 | (riscv_fpreg_q_type): Delete. | |
562 | (riscv_register_type): Use tdesc_register_type in almost all | |
563 | cases, override the returned type in a few specific cases only. | |
564 | (riscv_print_one_register_info): Handle errors reading registers. | |
565 | (riscv_register_reggroup_p): Use tdesc_register_in_reggroup_p for | |
566 | registers that are otherwise unknown to GDB. Also check the | |
567 | csr_reggroup. | |
568 | (riscv_print_registers_info): Remove assert about upper register | |
569 | number, and use gdbarch_register_reggroup_p instead of | |
570 | short-cutting. | |
571 | (riscv_find_default_target_description): New function. | |
572 | (riscv_check_tdesc_feature): New function. | |
573 | (riscv_add_reggroups): New function. | |
574 | (riscv_setup_register_aliases): New function. | |
575 | (riscv_init_reggroups): New function. | |
576 | (_initialize_riscv_tdep): Add calls to setup CSR aliases, and | |
577 | setup register groups. Register new riscv debug variable. | |
578 | * riscv-tdep.h: Add 'arch/riscv.h' include. | |
579 | (struct gdbarch_tdep): Remove abi union, and add | |
580 | riscv_gdbarch_features field. Remove cached quad floating point | |
581 | type, and provide initialisation for double type field. | |
582 | * target-descriptions.c (maint_print_c_tdesc_cmd): Add riscv to | |
583 | the list of targets using the feature based target descriptions. | |
584 | * NEWS: Mention target description support. | |
585 | ||
38139a96 PA |
586 | 2018-11-21 Pedro Alves <palves@redhat.com> |
587 | ||
588 | * valops.c (find_method_list, value_find_oload_method_list) | |
589 | (find_overload_match, find_oload_champ): Rename parameters and | |
590 | locals. | |
591 | ||
85cca2bc PA |
592 | 2018-11-21 Pedro Alves <palves@redhat.com> |
593 | ||
594 | * valops.c (find_method_list): Replace pointer and length | |
595 | parameters with an gdb::array_view. Adjust. | |
596 | (value_find_oload_method_list): Likewise. | |
597 | (find_overload_match): Use gdb::array_view for methods list. | |
598 | Adjust to find_oload_champ interface change. | |
599 | (find_oload_champ): 'xm_worker_vec' parameter now a pointer/array. | |
600 | 'num_fns' parameter now a size_t. Eliminate 'fn_count' local. | |
601 | ||
82ceee50 PA |
602 | 2018-11-21 Pedro Alves <palves@redhat.com> |
603 | ||
604 | * gdbtypes.c (compare_badness): Change type of parameters to const | |
605 | reference. Adjust to badness_vector being a std::vector now. | |
606 | (rank_function): Adjust to badness_vector being a std::vector now. | |
607 | * gdbtypes.h (badness_vector): Now a typedef to std::vector. | |
608 | (LENGTH_MATCH): Delete. | |
609 | (compare_badness): Change type of parameters to const reference. | |
610 | (rank_function): Return a badness_vector by value now. | |
611 | (find_overload_match): Adjust to badness_vector being a | |
612 | std::vector now. Remove cleanups. | |
613 | (find_oload_champ_namespace): 'oload_champ_bv' parameter now a | |
614 | badness_vector pointer. | |
615 | (find_oload_champ_namespace_loop): 'oload_champ_bv' parameter now | |
616 | a badness_vector pointer. Adjust to badness_vector being a | |
617 | std::vector now. Remove cleanups. | |
618 | (find_oload_champ): 'oload_champ_bv' parameter now | |
619 | a badness_vector pointer. Adjust to badness_vector being a | |
620 | std::vector now. Remove cleanups. | |
621 | ||
0891c3cc PA |
622 | 2018-11-21 Pedro Alves <palves@redhat.com> |
623 | ||
624 | * cp-support.c (sym_return_val_size, sym_return_val_index) | |
625 | (sym_return_val): Delete. | |
626 | (overload_list_add_symbol): Add std::vector parameter. Adjust to | |
627 | add to the vector. | |
628 | (make_symbol_overload_list): Adjust to return a std::vector | |
629 | instead of maintaining a global open coded vector. | |
630 | (make_symbol_overload_list_block): Add std::vector parameter. | |
631 | (make_symbol_overload_list_block): Rename to ... | |
632 | (add_symbol_overload_list_block): ... this and add std::vector | |
633 | parameter. | |
634 | (make_symbol_overload_list_namespace): Rename to ... | |
635 | (add_symbol_overload_list_namespace): ... this and add std::vector | |
636 | parameter. | |
637 | (make_symbol_overload_list_adl_namespace): Rename to ... | |
638 | (add_symbol_overload_list_adl_namespace): ... this and add | |
639 | std::vector parameter. | |
640 | (make_symbol_overload_list_adl): Delete. | |
641 | (add_symbol_overload_list_adl): New. | |
642 | (make_symbol_overload_list_using): Rename to ... | |
643 | (add_symbol_overload_list_using): ... this and add std::vector | |
644 | parameter. | |
645 | (make_symbol_overload_list_qualified): Rename to ... | |
646 | (add_symbol_overload_list_qualified): ... this and add std::vector | |
647 | parameter. | |
648 | * cp-support.h: Include "common/array-view.h" and <vector>. | |
649 | (make_symbol_overload_list): Change return type to std::vector. | |
650 | (make_symbol_overload_list_adl): Delete declaration. | |
651 | (add_symbol_overload_list_adl): New declaration. | |
652 | * valops.c (find_overload_match): Local 'oload_syms' now a | |
653 | std::vector. | |
654 | (find_oload_champ_namespace): 'oload_syms' parameter now a | |
655 | std::vector pointer. | |
656 | (find_oload_champ_namespace_loop): 'oload_syms' parameter now a | |
657 | std::vector pointer. Adjust to new make_symbol_overload_list | |
658 | interface. | |
659 | ||
6b1747cd PA |
660 | 2018-11-21 Pedro Alves <palves@redhat.com> |
661 | ||
662 | * common/array-view.h (array_view::splice(size_type, size_t)): New. | |
663 | (array_view::splice(size_type)): New. | |
664 | * eval.c (eval_call, evaluate_funcall): Adjust to use array_view. | |
665 | * extension.c (xmethod_worker::get_arg_types): Adjust to return an | |
666 | std::vector. | |
667 | (xmethod_worker::get_result_type): Adjust to use gdb::array_view. | |
668 | * extension.h: Include "common/array-view.h". | |
669 | (xmethod_worker::invoke): Adjust to use gdb::array_view. | |
670 | (xmethod_worker::get_arg_types): Adjust to return an std::vector. | |
671 | (xmethod_worker::get_result_type): Adjust to use gdb::array_view. | |
672 | (xmethod_worker::do_get_arg_types): Adjust to use std::vector. | |
673 | (xmethod_worker::do_get_result_type): Adjust to use | |
674 | gdb::array_view. | |
675 | * gdbtypes.c (rank_function): Adjust to use gdb::array_view. | |
676 | * gdbtypes.h: Include "common/array-view.h". | |
677 | (rank_function): Adjust to use gdb::array_view. | |
678 | * python/py-xmethods.c (python_xmethod_worker::invoke) | |
679 | (python_xmethod_worker::do_get_arg_types) | |
680 | (python_xmethod_worker::do_get_result_type) | |
681 | (python_xmethod_worker::invoke): Adjust to new interfaces. | |
682 | * valarith.c (value_user_defined_cpp_op, value_user_defined_op) | |
683 | (value_x_binop, value_x_unop): Adjust to use gdb::array_view. | |
684 | * valops.c (find_overload_match, find_oload_champ_namespace) | |
685 | (find_oload_champ_namespace_loop, find_oload_champ): Adjust to use | |
686 | gdb:array_view and the new xmethod_worker interfaces. | |
687 | * value.c (result_type_of_xmethod, call_xmethod): Adjust to use | |
688 | gdb::array_view. | |
689 | * value.h (find_overload_match, result_type_of_xmethod) | |
690 | (call_xmethod): Adjust to use gdb::array_view. | |
691 | * unittests/array-view-selftests.c: Add slicing tests. | |
692 | ||
e71585ff PA |
693 | 2018-11-21 Pedro Alves <palves@redhat.com> |
694 | ||
695 | * ada-lang.c (ada_evaluate_subexp): Adjust to pass an array_view. | |
696 | * common/array-view.h (make_array_view): New. | |
697 | * compile/compile-object-run.c (compile_object_run): Adjust to | |
698 | pass an array_view. | |
699 | * elfread.c (elf_gnu_ifunc_resolve_addr): Adjust. | |
700 | * eval.c (eval_call): Adjust to pass an array_view. | |
701 | (evaluate_subexp_standard): Adjust to pass an array_view. | |
702 | * gcore.c (call_target_sbrk): Adjust to pass an array_view. | |
703 | * guile/scm-value.c (gdbscm_value_call): Likewise. | |
704 | * infcall.c (push_dummy_code): Replace pointer + size parameters | |
705 | with an array_view parameter. | |
706 | (call_function_by_hand, call_function_by_hand_dummy): Likewise and | |
707 | adjust. | |
708 | * infcall.h: Include "common/array-view.h". | |
709 | (call_function_by_hand, call_function_by_hand_dummy): Replace | |
710 | pointer + size parameters with an array_view parameter. | |
711 | * linux-fork.c (inferior_call_waitpid): Adjust to use array_view. | |
712 | * linux-tdep.c (linux_infcall_mmap): Likewise. | |
713 | * objc-lang.c (lookup_objc_class, lookup_child_selector) | |
714 | (value_nsstring, print_object_command): Likewise. | |
715 | * python/py-value.c (valpy_call): Likewise. | |
716 | * rust-lang.c (rust_evaluate_funcall): Likewise. | |
717 | * spu-tdep.c (flush_ea_cache): Likewise. | |
718 | * valarith.c (value_x_binop, value_x_unop): Likewise. | |
719 | * valops.c (value_allocate_space_in_inferior): Likewise. | |
720 | * unittests/array-view-selftests.c (run_tests): Add | |
721 | gdb::make_array_view test. | |
722 | ||
d63095c4 AB |
723 | 2018-11-20 Andrew Burgess <andrew.burgess@embecosm.com> |
724 | ||
725 | * cli-out.c (cli_ui_out::do_field_int): Use string_printf rather | |
726 | than a fixed size buffer. | |
727 | ||
1871a62d AB |
728 | 2018-11-20 Andrew Burgess <andrew.burgess@embecosm.com> |
729 | ||
730 | * breakpoint.c (print_one_breakpoint_location): Reduce whitespace, | |
731 | and remove insertion of extra spaces in GDB's output. | |
732 | * cli-out.c (cli_ui_out::do_field_fmt): Update header comment. | |
733 | Layout field into a temporary buffer, and then output it as a | |
734 | string field. | |
735 | ||
604c4ca9 PW |
736 | 2018-11-20 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
737 | ||
738 | * NEWS: Document the language choice done by | |
739 | 'info [types|functions|variables]|rbreak'. | |
740 | ||
43d397ca PW |
741 | 2018-11-20 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
742 | ||
743 | * symtab.c (treg_matches_sym_type_name): Use | |
744 | scoped_switch_to_sym_language_if_auto instead of local logic. | |
745 | (print_symbol_info): Use scoped_switch_to_sym_language_if_auto | |
746 | to switch to SYM language when language mode is auto. | |
747 | ||
9e6a1ab6 PW |
748 | 2018-11-20 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
749 | ||
750 | * language.h (scoped_switch_to_sym_language_if_auto): New class. | |
751 | ||
a8462bbf PW |
752 | 2018-11-20 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
753 | ||
754 | * symtab.c (search_symbols): Properly check absence of type regexp | |
755 | before entering the loop scanning the minimal symbols. | |
756 | ||
4399bce9 | 757 | 2018-11-20 John Darrington <john@darrington.wattle.id.au> |
c3247a98 JD |
758 | |
759 | * s12z-tdep.c (s12z_extract_return_value): New function. | |
760 | (inv_reg_perm) New array. | |
761 | (s12z_return_value): Populate readbuf if non-null. | |
762 | ||
970d89d8 EZ |
763 | 2018-11-20 Eli Zaretskii <eliz@gnu.org> |
764 | ||
765 | * common/filestuff.c (gdb_fopen_cloexec): Disable use of "e" mode | |
766 | with 'fopen' also if O_CLOEXEC is equal to O_NOINHERIT, to cater | |
767 | to MinGW fixed by Gnulib. | |
2fa1b319 | 768 | (O_NOINHERIT): Define if not defined. |
970d89d8 | 769 | |
4399bce9 | 770 | 2018-11-19 John Darrington <john@darrington.wattle.id.au> |
7b5227d1 | 771 | |
4399bce9 | 772 | * s12z-tdep.c (s12z_frame_cache): Add an assertion. |
7b5227d1 | 773 | |
dbe4e654 SM |
774 | 2018-11-19 Simon Marchi <simon.marchi@polymtl.ca> |
775 | ||
776 | * infrun.c (displaced_step_inferior_state) <next>: Remove. | |
777 | ||
0614ef69 TT |
778 | 2018-11-19 Tom Tromey <tom@tromey.com> |
779 | ||
780 | * source.c (get_filename_and_charpos): Return void. | |
781 | ||
261f6f79 SM |
782 | 2018-11-19 Simon Marchi <simon.marchi@polymtl.ca> |
783 | ||
784 | * skip.c (_initialize_step_skip): Fix "info skip" help. | |
785 | ||
73fc52c4 TT |
786 | 2018-11-16 Tom Tromey <tom@tromey.com> |
787 | ||
788 | PR rust/23625: | |
789 | * rust-lang.c (rust_internal_print_type): Handle TYPE_CODE_PTR. | |
790 | ||
39a36629 SM |
791 | 2018-11-19 Simon Marchi <simon.marchi@ericsson.com> |
792 | ||
793 | * infrun.c (displaced_step_inferior_states): Change type to | |
794 | std::forward_list. | |
795 | (get_displaced_stepping_state): Adjust. | |
796 | (displaced_step_in_progress_any_inferior): Adjust. | |
797 | (add_displaced_stepping_state): Adjust. | |
798 | (remove_displaced_stepping_state): Adjust. | |
799 | ||
c2a6c5da TT |
800 | 2018-11-18 Tom Tromey <tom@tromey.com> |
801 | ||
802 | PR build/23814: | |
803 | * target-delegates.c: Rebuild. | |
804 | * ia64-linux-nat.c (class ia64_linux_nat_target) | |
805 | <have_steppable_watchpoint>: Use override. Return true, not 1. | |
806 | (ia64_linux_nat_target::can_use_hw_breakpoint): Rename. Remove | |
807 | "self" argument. | |
808 | (ia64_linux_nat_target::low_new_thread): Rename. | |
809 | (class ia64_linux_nat_target) <read_description>: Don't declare. | |
810 | * target.h (struct target_ops) <have_steppable_watchpoint>: Return | |
811 | bool. | |
812 | ||
38a72da0 AH |
813 | 2018-11-16 Alan Hayward <alan.hayward@arm.com> |
814 | ||
815 | PR gdb/22736: | |
816 | * aarch64-tdep.c (aarch64_push_dummy_call): Remove | |
817 | lang_struct_return code. | |
818 | ||
cf84fa6b AH |
819 | 2018-11-16 Alan Hayward <alan.hayward@arm.com> |
820 | ||
821 | * aarch64-tdep.c (aarch64_push_dummy_call): Replace arg with | |
822 | return_method. | |
823 | * alpha-tdep.c (alpha_push_dummy_call): Likewise. | |
824 | * amd64-tdep.c (amd64_push_arguments): Likewise. | |
825 | (amd64_push_dummy_call): Likewise. | |
826 | * amd64-windows-tdep.c (amd64_windows_push_arguments): Likewise. | |
827 | * arc-tdep.c (arc_push_dummy_call): Likewise. | |
828 | * arm-tdep.c (arm_push_dummy_call): Likewise. | |
829 | * avr-tdep.c (avr_push_dummy_call): Likewise. | |
830 | * bfin-tdep.c (bfin_push_dummy_call): Likewise. | |
831 | * cris-tdep.c (cris_push_dummy_call): Likewise. | |
832 | * csky-tdep.c (csky_push_dummy_call): Likewise. | |
833 | * frv-tdep.c (frv_push_dummy_call): Likewise. | |
834 | * gdbarch.c: Regenerate. | |
835 | * gdbarch.h: Regenerate. | |
836 | * gdbarch.sh (gdbarch_push_dummy_call): Replace arg with | |
837 | return_method. | |
838 | * h8300-tdep.c (h8300_push_dummy_call): Likewise. | |
839 | * hppa-tdep.c (hppa32_push_dummy_call): Likewise. | |
840 | (hppa64_push_dummy_call): Likewise. | |
841 | * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise. | |
842 | * i386-tdep.c (i386_push_dummy_call): Likewise. | |
843 | * ia64-tdep.c (ia64_push_dummy_call): Likewise. | |
844 | * infcall.c (call_function_by_hand_dummy): Likewise. | |
845 | * iq2000-tdep.c (iq2000_push_dummy_call): Likewise. | |
846 | * lm32-tdep.c (lm32_push_dummy_call): Likewise. | |
847 | * m32c-tdep.c (m32c_push_dummy_call): Likewise. | |
848 | * m32r-tdep.c (m32r_push_dummy_call): Likewise. | |
849 | * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise. | |
850 | * m68k-tdep.c (m68k_push_dummy_call): Likewise. | |
851 | * mep-tdep.c (mep_push_dummy_call): Likewise. | |
852 | * mips-tdep.c (mips_eabi_push_dummy_call): Likewise. | |
853 | (mips_n32n64_push_dummy_call): Likewise. | |
854 | (mips_o32_push_dummy_call): Likewise. | |
855 | (mips_o64_push_dummy_call): Likewise. | |
856 | * mn10300-tdep.c (mn10300_push_dummy_call): Likewise. | |
857 | * msp430-tdep.c (msp430_push_dummy_call): Likewise. | |
858 | * nds32-tdep.c (nds32_push_dummy_call): Likewise. | |
859 | * nios2-tdep.c (nios2_push_dummy_call): Likewise. | |
860 | * or1k-tdep.c (or1k_push_dummy_call): Likewise. | |
861 | * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Likewise. | |
862 | (ppc64_sysv_abi_push_dummy_call): Likewise. | |
863 | * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Likewise. | |
864 | (ppc64_sysv_abi_push_dummy_call): Likewise. | |
865 | * riscv-tdep.c (riscv_push_dummy_call): Likewise. | |
866 | * rl78-tdep.c (rl78_push_dummy_call): Likewise. | |
867 | * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise. | |
868 | * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise. | |
869 | * rx-tdep.c (rx_push_dummy_call): Likewise. | |
870 | * s390-tdep.c (s390_push_dummy_call): Likewise. | |
871 | * score-tdep.c (score_push_dummy_call): Likewise. | |
872 | * sh-tdep.c (sh_push_dummy_call_fpu): Likewise. | |
873 | (sh_push_dummy_call_nofpu): Likewise. | |
874 | * sparc-tdep.c (sparc32_store_arguments): Likewise. | |
875 | (sparc32_push_dummy_call): Likewise. | |
876 | * sparc64-tdep.c (sparc64_store_arguments): Likewise. | |
877 | (sparc64_push_dummy_call): Likewise. | |
878 | * spu-tdep.c (spu_push_dummy_call): Likewise. | |
879 | * tic6x-tdep.c (tic6x_push_dummy_call): Likewise. | |
880 | * tilegx-tdep.c (tilegx_push_dummy_call): Likewise. | |
881 | * v850-tdep.c (v850_push_dummy_call): Likewise. | |
882 | * vax-tdep.c (vax_push_dummy_call): Likewise. | |
883 | * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise. | |
884 | * xtensa-tdep.c (xtensa_push_dummy_call): Likewise. | |
885 | ||
c5ac5cbb AH |
886 | 2018-11-16 Alan Hayward <alan.hayward@arm.com> |
887 | ||
888 | * gdbarch.sh (enum function_call_return_method): Add enum. | |
889 | * gdbarch.h: Regenerate. | |
890 | * infcall.c (call_function_by_hand_dummy): Replace vars with enum. | |
891 | ||
f9db0c4c JB |
892 | 2018-11-15 Joel Brobecker <brobecker@adacore.com> |
893 | ||
894 | * unittests/copy_bitwise-selftests.c: New file. | |
895 | * utils.c (selftests::bits_to_str, selftests::check_copy_bitwise) | |
896 | (selftests::copy_bitwise_tests): Delete, moving this code to | |
897 | unittests/copy_bitwise-selftests.c instead. | |
898 | (_initialize_utils): Do not register copy_bitwise tests. | |
899 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add | |
900 | unittests/copy_bitwise-selftests.c. | |
901 | ||
a99bc3d2 JB |
902 | 2018-11-14 Joel Brobecker <brobecker@adacore.com> |
903 | ||
904 | * ada-lang.c (move_bits): Delete. Update all callers to use | |
905 | copy_bitwise instead. | |
906 | * dwarf2loc.c (copy_bitwise, bits_to_str::bits_to_str) | |
907 | (selftests::check_copy_bitwise, selftests::copy_bitwise_tests): | |
908 | Move from here to utils.c. | |
909 | (_initialize_dwarf2loc): Remove call to register copy_bitwise | |
910 | selftests. | |
911 | * utils.h (copy_bitwise): Add declaration. | |
912 | * utils.c (copy_bitwise, bits_to_str::bits_to_str) | |
913 | (selftests::check_copy_bitwise, selftests::copy_bitwise_tests): | |
914 | Moved here from dwarf2loc.c. | |
915 | (_initialize_utils): Register copy_bitwise selftests. | |
916 | ||
174f8ac8 JW |
917 | 2018-11-14 Jim Wilson <jimw@sifive.com> |
918 | ||
8b2d40cb JW |
919 | * riscv-tdep.c (struct riscv_arg_info): New field is_unnamed. |
920 | (riscv_call_arg_scalar_int): If unnamed arg with twice xlen alignment, | |
921 | then increment next_regnum if odd. | |
922 | (riscv_arg_location): New arg is_unnamed. Set ainfo->is_unnamed. | |
923 | (riscv_push_dummy_call): New local ftype. Call check_typedef to set | |
924 | function type. Pass new arg to riscv_arg_location based on function | |
925 | type. | |
926 | (riscv_return_value): Pass new arg to riscv_arg_location. | |
927 | ||
ef2de9e7 JW |
928 | * riscv-tdep.c (BIGGEST_ALIGNMENT): New. |
929 | (riscv_type_alignment) <TYPE_CODE_ARRAY>: If TYPE_VECTOR, return min | |
930 | of TYPE_LENGTH and BIGGEST_ALIGNMENT. | |
931 | ||
174f8ac8 JW |
932 | * riscv-tdep.c (riscv_call_arg_scalar_int): Use std::min when |
933 | setting len. New local align, set to max of arg align and xlen, | |
934 | and pass to first riscv_assign_stack_location call. | |
935 | ||
53a89d6e SM |
936 | 2018-11-12 Simon Marchi <simon.marchi@polymtl.ca> |
937 | ||
938 | * skip.c (complete_skip_number): New function. | |
939 | (_initialize_step_skip): Add completers to some skip commands. | |
940 | ||
eefce37f TT |
941 | 2018-11-09 Tom Tromey <tom@tromey.com> |
942 | ||
943 | * remote.c (remote_g_packet_guess_s): Remove typedef and DEF_VEC. | |
944 | (struct remote_g_packet_data): Derive from allocate_on_obstack. | |
945 | <guesses>: Now a std::vector. | |
946 | (remote_g_packet_data_init, register_remote_g_packet_guess): | |
947 | Update. | |
948 | (remote_read_description_p): Update. Return bool. | |
949 | (remote_target::read_description): Update. | |
950 | (struct remote_g_packet_guess): Add constructor. | |
951 | ||
2179fbc3 TT |
952 | 2018-11-09 Tom Tromey <tom@tromey.com> |
953 | ||
954 | * common/scoped_fd.h (class scoped_fd): Add move constructor and | |
955 | move assignment operator. | |
956 | * psymtab.c (psymtab_to_fullname): Update. | |
957 | * source.h (open_source_file): Return scoped_fd. | |
958 | (find_and_open_source): Likewise. | |
959 | * source.c (open_source_file): Return scoped_fd. | |
960 | (get_filename_and_charpos): Update. | |
961 | (print_source_lines_base): Update. Use scoped_fd::to_file. | |
962 | (forward_search_command): Likewise. | |
963 | (reverse_search_command): Likewise. | |
964 | (find_and_open_source): Return scoped_fd. | |
965 | * tui/tui-source.c (tui_set_source_content): Update. Use | |
966 | gdb_file_up. | |
967 | ||
9c122c7f JB |
968 | 2018-11-09 John Baldwin <jhb@FreeBSD.org> |
969 | ||
970 | * minsyms.c (minimal_symbol_reader::install): Fix unsigned | |
971 | overflow. | |
972 | ||
5d762de0 HAQ |
973 | 2018-11-09 Hafiz Abid Qadeer <abidh@codesourcery.com> |
974 | ||
975 | * configure: Regenerate. | |
976 | ||
9325300d TV |
977 | 2018-11-09 Tom de Vries <tdevries@suse.de> |
978 | ||
979 | * symtab.c (symbol_set_names): Call symbol_find_demangled_name | |
980 | unconditionally, to set the language of the symbol. Manage freeing | |
981 | returned pointer using gdb::unique_xmalloc_ptr. | |
982 | ||
9c710e11 TT |
983 | 2018-11-08 Tom Tromey <tom@tromey.com> |
984 | ||
985 | * record.c (require_record_target): Upper-case "<TAB>". | |
986 | ||
3c6618cd TT |
987 | 2018-11-08 Tom Tromey <tom@tromey.com> |
988 | ||
989 | * python/lib/gdb/command/pretty_printers.py | |
990 | (InfoPrettyPrinter.invoke): Don't indent "objfile" heading. | |
991 | ||
20f0d60d TT |
992 | 2018-11-08 Tom Tromey <tom@tromey.com> |
993 | ||
994 | PR gdb/23555: | |
995 | PR gdb/23838: | |
996 | * target.h (target_supports_terminal_ours): Return bool. | |
997 | * target.c (target_supports_terminal_ours): Handle case where | |
998 | current_top_target returns nullptr. Return bool. | |
999 | ||
d4718d5c JB |
1000 | 2018-11-08 Joel Brobecker <brobecker@adacore.com> |
1001 | ||
1002 | * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): | |
1003 | return the correct count for potential HFAs. | |
1004 | ||
b5420128 JB |
1005 | 2018-11-08 Jan Beulich <jbeulich@suse.com> |
1006 | ||
1007 | * i387-tdep.c (i387_supply_xsave): Split handling of | |
1008 | X86_XSTATE_ZMM_H and X86_XSTATE_ZMM. | |
1009 | (i387_collect_xsave): Likewise. | |
1010 | ||
17cf2897 AB |
1011 | 2018-11-08 Andrew Burgess <andrew.burgess@embecosm.com> |
1012 | ||
1013 | * riscv-tdep.c (riscv_insn::decode): Update header comment. | |
1014 | (riscv_frame_this_id): Catch errors thrown while building the | |
1015 | frame cache, leave the frame id as the default, which is the outer | |
1016 | frame id. | |
1017 | ||
76136aed JB |
1018 | 2018-11-07 Joel Brobecker <brobecker@adacore.com> |
1019 | ||
1020 | * ada-lang.c (read_atcb): Only set task_info->called_task if | |
1021 | task_info->state == Entry_Caller_Sleep. | |
1022 | (print_ada_task_info): Do not check task_info->state before | |
1023 | checking task_info->called_task. | |
1024 | (info_task): Likewise. | |
1025 | ||
07deea26 JB |
1026 | 2018-11-07 Joel Brobecker <brobecker@adacore.com> |
1027 | ||
1028 | * ada-tasks.c (read_atcb): Clear task_info before computing | |
1029 | the value of each of its fields. | |
1030 | ||
35ee2dc2 AB |
1031 | 2018-11-07 Andrew Burgess <andrew.burgess@embecosm.com> |
1032 | ||
1033 | * dwarf2read.c (dwarf2_init_integer_type): Check for name being | |
1034 | NULL before dereferencing it. | |
1035 | ||
31aceee8 TV |
1036 | 2018-11-06 Tom de Vries <tdevries@suse.de> |
1037 | ||
1038 | * linux-tdep.c (linux_vsyscall_range_raw): Use xmalloc to allocate | |
1039 | program headers. | |
1040 | ||
f11acc5e MF |
1041 | 2018-11-06 Max Filippov <jcmvbkbc@gmail.com> |
1042 | ||
1043 | * configure.tgt (xtensa*-*-linux*): Change to xtensa*-*-*linux* | |
1044 | so that it applies to uclinux as well. | |
1045 | ||
9e237747 MM |
1046 | 2018-11-06 Marius Muench <marius.muench@eurecom.fr> |
1047 | ||
1048 | * arm-tdep.c (arm_scan_prologue): Don't dereference FP reg | |
1049 | when on AAPCS. | |
1050 | ||
bcecc11d JB |
1051 | 2018-11-06 John Baldwin <jhb@FreeBSD.org> |
1052 | ||
1053 | * riscv-fbsd-nat.c (getregs_supplies): Return true for | |
1054 | RISCV_CSR_SSTATUS_REGNUM. | |
1055 | ||
bb20ccab PW |
1056 | 2018-11-04 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
1057 | ||
1058 | * source.c (open_source_file): Fix leak by transferring the | |
1059 | current s->fullname to the unique_xmalloc_ptr fullname given | |
1060 | to find_and_open_source. | |
1061 | ||
a31abe80 TT |
1062 | 2018-11-04 Tom Tromey <tom@tromey.com> |
1063 | ||
1064 | * varobj.c (install_default_visualizer): Update. | |
1065 | * python/python-internal.h (gdbpy_get_varobj_pretty_printer): | |
1066 | Return gdbpy_ref. | |
1067 | * python/py-prettyprint.c (search_pp_list): Return gdbpy_ref. | |
1068 | (find_pretty_printer_from_progspace) | |
1069 | (find_pretty_printer_from_gdb, find_pretty_printer) | |
1070 | (gdbpy_get_varobj_pretty_printer): Return gdbpy_ref. | |
1071 | (gdbpy_get_varobj_pretty_printer, gdbpy_default_visualizer): | |
1072 | Update. | |
1073 | ||
833d985d TT |
1074 | 2018-11-04 Tom Tromey <tom@tromey.com> |
1075 | ||
1076 | * python/python.c (gdbpy_parameter_value): Update. | |
1077 | * python/python-internal.h (python_string_to_unicode) | |
1078 | (python_string_to_target_python_string) | |
1079 | (host_string_to_python_string): Return gdbpy_ref. | |
1080 | * python/py-utils.c (python_string_to_unicode) | |
1081 | (unicode_to_encoded_python_string) | |
1082 | (unicode_to_target_python_string) | |
1083 | (python_string_to_target_string) | |
1084 | (python_string_to_target_python_string): Return gdbpy_ref. | |
1085 | (python_string_to_host_string): Update. | |
1086 | (host_string_to_python_string): Return gdbpy_ref. | |
1087 | * python/py-symtab.c (stpy_get_filename, stpy_get_producer) | |
1088 | (stpy_fullname): Update. | |
1089 | * python/py-progspace.c (pspy_get_filename, pspy_solib_name): | |
1090 | Update. | |
1091 | * python/py-prettyprint.c (print_string_repr): Update. | |
1092 | * python/py-objfile.c (objfpy_get_filename, objfpy_get_username) | |
1093 | (objfpy_get_build_id): Update. | |
1094 | * python/py-breakpoint.c (bppy_get_location) | |
1095 | (bppy_get_expression, bppy_get_condition, bppy_get_commands): | |
1096 | Update. | |
1097 | ||
12dfa12a TT |
1098 | 2018-11-04 Tom Tromey <tom@tromey.com> |
1099 | ||
1100 | * python/python-internal.h (gdb_py_object_from_longest) | |
1101 | (gdb_py_object_from_ulongest): Return gdbpy_ref. | |
1102 | * python/py-value.c (valpy_int): Update. | |
1103 | * python/py-utils.c (gdb_py_object_from_longest): Return | |
1104 | gdbpy_ref. | |
1105 | (gdb_py_object_from_ulongest): Likewise. | |
1106 | * python/py-type.c (typy_get_alignof): Update. | |
1107 | * python/py-linetable.c (ltpy_get_all_source_lines) | |
1108 | (ltpy_entry_get_line, ltpy_entry_get_pc): Update. | |
1109 | * python/py-block.c (blpy_get_start, blpy_get_end): Update. | |
1110 | ||
470678d7 PW |
1111 | 2018-11-03 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
1112 | ||
1113 | * ada-lang.c (_initialize_ada_language): Fix typo. | |
1114 | ||
814fa4f6 PW |
1115 | 2018-11-03 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
1116 | ||
1117 | * language.c (type): Remove. | |
1118 | (_initialize_language): Remove assignment to type. | |
1119 | ||
3c6dd3d1 | 1120 | 2018-11-02 Joel Brobecker <brobecker@adacore.com> |
e8bf1ce4 JB |
1121 | |
1122 | * aarch64-ravenscar-thread.h, aarch64-ravenscar-thread.c: New files. | |
1123 | * aarch64-tdep.c: #include "aarch64-ravenscar-thread.h". | |
1124 | (aarch64_gdbarch_init): Add call to register_aarch64_ravenscar_ops. | |
1125 | * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-ravenscar-thread.o. | |
1126 | (HFILES_NO_SRCDIR): Add aarch64-ravenscar-thread.h. | |
1127 | (ALLDEPFILES): Add aarch64-ravenscar-thread.c. | |
1128 | * configure.tgt (cpu_obs) [aarch64*-*-*]: Add ravenscar-thread.o | |
1129 | and aarch64-ravenscar-thread.o. | |
1130 | * NEWS: Add entry documenting Ravenscar tasking support | |
1131 | on AArch64 ELF. | |
1132 | ||
d54cfd76 PW |
1133 | 2018-11-02 Matthew Malcomson <matthew.malcomson@arm.com> |
1134 | ||
1135 | * symtab.c (info_functions_command): Initialize quiet flag. | |
1136 | * stack.c (info_args_command): Likewise. | |
1137 | ||
3ba2ee38 JW |
1138 | 2018-11-01 Jim Wilson <jimw@sifive.com> |
1139 | ||
1140 | * riscv-tdep.c (riscv_breakpoint_kind_from_pc): New local unaligned_p. | |
1141 | Set if pcptr if unaligned. Return 2 if unaligned_p true. Update | |
1142 | debugging messages. | |
1143 | ||
e2b7af72 JB |
1144 | 2018-11-01 Joel Brobecker <brobecker@adacore.com> |
1145 | ||
1146 | * ada-lang.c (ada_watch_location_expression): New function. | |
1147 | (ada_language_defn): Set la_watch_location_expression to | |
1148 | ada_watch_location_expression. | |
1149 | ||
8b578f9c JB |
1150 | 2018-11-01 Joel Brobecker <brobecker@adacore.com> |
1151 | ||
1152 | * print-utils.c (int_string): Remove unnecessary trailing spaces. | |
1153 | ||
1cc62f2e JB |
1154 | 2018-11-01 Joel Brobecker <brobecker@adacore.com> |
1155 | ||
1156 | * rs6000-tdep.c (skip_prologue): Fix potential negative left | |
1157 | shifting. | |
1158 | ||
e1c3a373 JG |
1159 | 2018-11-01 Jerome Guitton <guitton@adacore.com> |
1160 | Joel Brobecker <brobecker@adacore.com> | |
1161 | ||
1162 | * defs.h (enum gdb_osabi): Add GDB_OSABI_PIKEOS. | |
1163 | * osabi.c (gdb_osabi_names): Add name for GDB_OSABI_PIKEOS. | |
1164 | * arm-pikeos-tdep.c: New file. | |
1165 | * configure.tgt: Add arm-pikeos-tdep.o to the case of ARM | |
1166 | embedded system. | |
1167 | * Makefile.in (ALL_TARGET_OBS): Add arm-pikeos-tdep.o. | |
1168 | ||
e8d8cce6 SM |
1169 | 2018-11-01 Simon Marchi <simon.marchi@ericsson.com> |
1170 | ||
1171 | * common/pathstuff.c (get_standard_temp_dir): New. | |
1172 | * common/pathstuff.h (get_standard_temp_dir): New. | |
1173 | * config.in: Re-generate. | |
1174 | * configure: Re-generate. | |
1175 | * configure.ac: Don't check for mkdtemp. | |
1176 | * gnulib/aclocal-m4-deps.mk: Re-generate. | |
1177 | * gnulib/aclocal.m4: Re-generate. | |
1178 | * gnulib/config.in: Re-generate. | |
1179 | * gnulib/configure: Re-generate. | |
1180 | * gnulib/import/Makefile.am: Re-generate. | |
1181 | * gnulib/import/Makefile.in: Re-generate. | |
1182 | * gnulib/import/m4/gnulib-cache.m4: Re-generate. | |
1183 | * gnulib/import/m4/gnulib-comp.m4: Re-generate. | |
1184 | * gnulib/import/m4/mkdtemp.m4: New file. | |
1185 | * gnulib/import/mkdtemp.c: New file. | |
1186 | * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): | |
1187 | Add mkdtemp module. | |
1188 | * unittests/mkdir-recursive-selftests.c (test): Use | |
1189 | get_standard_temp_dir. | |
1190 | (_initialize_mkdir_recursive_selftests): Remove HAVE_MKDTEMP | |
1191 | ifdef. | |
1192 | * compile/compile.c (get_compile_file_tempdir): Likewise. | |
1193 | ||
cdcda965 SM |
1194 | 2018-11-01 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com> |
1195 | ||
1196 | * rs6000-aix-tdep.c: Include "trad-frame.h" and "frame-unwind.h". | |
1197 | (SIG_FRAME_LR_OFFSET64): New define. | |
1198 | (SIG_FRAME_FP_OFFSET64): New define. | |
1199 | (aix_sighandle_frame_cache): New Function. | |
1200 | (aix_sighandle_frame_this_id): New Function. | |
1201 | (aix_sighandle_frame_prev_register): New Function. | |
1202 | (aix_sighandle_frame_sniffer): New Function. | |
1203 | (aix_sighandle_frame_unwind): New global variable. | |
1204 | (rs6000_aix_init_osabi): Install new frame unwinder. | |
1205 | ||
656efb5e SDJ |
1206 | 2018-10-31 Sergio Durigan Junior <sergiodj@redhat.com> |
1207 | ||
1208 | PR gdb/23835 | |
1209 | * common/common-defs.h: Don't redefine _FORTIFY_SOURCE if it's | |
1210 | already defined. | |
1211 | ||
64f57f3d PFC |
1212 | 2018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com> |
1213 | ||
1214 | * ppc-linux-nat.c: Include nat/linux-ptrace.h. | |
1215 | ||
eb77c9df AB |
1216 | 2018-10-31 Andrew Burgess <andrew.burgess@embecosm.com> |
1217 | ||
1218 | * dwarf2read.c (struct dwarf2_cu): Add producer_is_icc field. | |
1219 | (producer_is_icc): New function. | |
1220 | (check_producer): Set producer_is_icc field on dwarf2_cu. | |
1221 | (dwarf2_init_integer_type): New function. | |
1222 | (read_base_type): Call dwarf2_init_integer_type instead of | |
1223 | init_integer_type in all cases. | |
1224 | (dwarf2_cu::dwarf2_cu): Initialise producer_is_icc field. | |
1225 | * valprint.c (maybe_negate_by_bytes): Add an assertion that the | |
1226 | LEN is greater than 0. | |
1227 | ||
4d5d1049 TT |
1228 | 2018-10-30 Tom Tromey <tom@tromey.com> |
1229 | ||
1230 | * main.c (captured_main_1): Check return value of bfd_init. | |
1231 | ||
fd332753 SDJ |
1232 | 2018-10-29 Sergio Durigan Junior <sergiodj@redhat.com> |
1233 | ||
1234 | * common/offset-type.h (DEFINE_OFFSET_REL_OP): Delete. | |
1235 | Adjust comments. | |
1236 | ||
30a7953d RO |
1237 | 2018-10-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
1238 | ||
1239 | * procfs.c: Include common/pathstuff.h. | |
1240 | ||
a3d72268 AB |
1241 | 2018-10-28 Andrew Burgess <andrew.burgess@embecosm.com> |
1242 | ||
1243 | * riscv-linux-nat.c (riscv_linux_nat_target::fetch_registers): | |
1244 | Add missing braces. No functional change. | |
1245 | ||
cd948f5b PW |
1246 | 2018-10-27 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
1247 | ||
1248 | * macrocmd.c (info_macro_command): Use report_unrecognized_option_error | |
1249 | to report a bad option and fix indentation. | |
1250 | * demangle.c (demangle_command): Use report_unrecognized_option_error | |
1251 | to report a bad option and correctly report the bad option. | |
1252 | ||
b50a8b9a TT |
1253 | 2018-10-27 Tom Tromey <tom@tromey.com> |
1254 | ||
1255 | PR cli/23364: | |
1256 | * darwin-nat.c (copied_shell): New global. | |
1257 | (may_have_sip): Rename from should_disable_startup_with_shell. | |
1258 | (copy_shell_to_cache, maybe_cache_shell): New functions. | |
1259 | (darwin_nat_target::create_inferior): Update. Use | |
1260 | copied_shell. | |
1261 | ||
36033ef5 TT |
1262 | 2018-10-27 Tom Tromey <tom@tromey.com> |
1263 | ||
1264 | * unittests/scoped_fd-selftests.c (test_to_file): New function. | |
1265 | (run_tests): Call test_to_file. | |
1266 | * dwarf-index-write.c (write_psymtabs_to_index): Do not reopen | |
1267 | temporary files. | |
1268 | * common/scoped_fd.h (scoped_fd::to_file): New method. | |
1269 | ||
b3279b60 TT |
1270 | 2018-10-27 Tom Tromey <tom@tromey.com> |
1271 | ||
1272 | * unittests/scoped_mmap-selftests.c (test_normal): Use | |
1273 | gdb_mkostemp_cloexec. | |
1274 | * unittests/scoped_fd-selftests.c (test_destroy, test_release): | |
1275 | Use gdb_mkostemp_cloexec. | |
1276 | * gnulib/aclocal-m4-deps.mk, gnulib/aclocal.m4, | |
1277 | gnulib/config.in, gnulib/configure, | |
1278 | gnulib/import/Makefile.am, gnulib/import/Makefile.in, | |
1279 | gnulib/import/m4/gnulib-cache.m4, | |
1280 | gnulib/import/m4/gnulib-comp.m4: Update. | |
1281 | * gnulib/import/m4/mkostemp.m4: New file. | |
1282 | * gnulib/import/m4/mkstemp.m4: Remove. | |
1283 | * gnulib/import/mkostemp.c: New file. | |
1284 | * gnulib/import/mkstemp.m4: Remove. | |
1285 | * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Remove | |
1286 | mkstemp, add mkostemp. Apply new patch. | |
1287 | * gnulib/import/stdlib.in.h: Apply patch. | |
1288 | * gnulib/patches/0002-mkostemp-mkostemps-Fix-compilation-error-in-C-mode-o.patch: | |
1289 | New file. | |
1290 | * dwarf-index-write.c (write_psymtabs_to_index): Use | |
1291 | gdb_mkostemp_cloexec. | |
1292 | * common/filestuff.h (gdb_mkostemp_cloexec): New function. | |
1293 | ||
e418a61a TT |
1294 | 2018-10-27 Tom Tromey <tom@tromey.com> |
1295 | ||
1296 | * unittests/mkdir-recursive-selftests.c: New file. | |
1297 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add | |
1298 | unittests/mkdir-recursive-selftests.c. | |
1299 | * dwarf-index-cache.c (mkdir_recursive): Move to | |
1300 | common/filestuff.c. | |
1301 | (index_cache::store): Check return value of mkdir_recursive. | |
1302 | (create_dir_and_check, test_mkdir_recursive): Move to new file. | |
1303 | (_initialize_index_cache): Don't register test. | |
1304 | * common/filestuff.h (mkdir_recursive): Declare. | |
1305 | * common/filestuff.c (mkdir_recursive): Move from | |
1306 | dwarf-index-cache.c. Return bool. | |
1307 | ||
29be4d9d TT |
1308 | 2018-10-27 Tom Tromey <tom@tromey.com> |
1309 | ||
1310 | * dwarf-index-write.c (write_psymtabs_to_index): Move | |
1311 | make_temp_filename to common/pathstuff.c. | |
1312 | * common/pathstuff.h (make_temp_filename): Declare. | |
1313 | * common/pathstuff.c (make_temp_filename): New function, moved | |
1314 | from dwarf-index-write.c. | |
1315 | ||
974e6844 TT |
1316 | 2018-10-27 Tom Tromey <tom@tromey.com> |
1317 | ||
1318 | * procfs.c (procfs_target::create_inferior): Use get_shell. | |
1319 | * cli/cli-cmds.c (shell_escape): Use get_shell. | |
1320 | * windows-nat.c (windows_nat_target::create_inferior): Use | |
1321 | get_shell. | |
1322 | * common/pathstuff.c (get_shell): New function. | |
1323 | * nat/fork-inferior.c (SHELL_FILE, get_startup_shell): Remove. | |
1324 | (fork_inferior): Use get_shell. | |
1325 | * common/pathstuff.h (get_shell): Declare. | |
1326 | ||
e0a7911f PW |
1327 | 2018-10-27 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
1328 | ||
1329 | * NEWS: Mention changes to 'info [args|functions|locals|variables]' | |
1330 | ||
12615cba PW |
1331 | 2018-10-27 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
1332 | ||
1333 | * stack.c (print_variable_and_value_data): Add preg and treg. | |
1334 | (print_frame_local_vars): Add quiet, regexp and t_regexp arguments, | |
1335 | and update callers. | |
1336 | (print_frame_arg_vars): Likewise. | |
1337 | (prepare_reg): New function. | |
1338 | (info_locals_command): Extract info print args and use them. | |
1339 | (info_args_command): Likewise. | |
1340 | (_initialize_stack): Modify on-line help. | |
1341 | * symtab.c (treg_matches_sym_type_name): New function. | |
1342 | (search_symbols): New arg t_regexp. | |
1343 | (symtab_symbol_info): New args quiet, regexp, t_regexp. | |
1344 | (info_variables_command): Extract info print args and use them. | |
1345 | (info_functions_command): Likewise. | |
1346 | (info_types_command): Update call to symtab_symbol_info. | |
1347 | (_initialize_symtab): Modify on-line help. | |
1348 | * symtab.h (treg_matches_sym_type_name): New function. | |
1349 | (search_symbols): New t_regexp arg. | |
1350 | ||
0d4cad90 PW |
1351 | 2018-10-27 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
1352 | ||
1353 | * cli-utils.c (extract_arg_maybe_quoted): New function. | |
1354 | (extract_info_print_args): New function. | |
1355 | (info_print_args_help): New function. | |
1356 | (report_unrecognized_option_error): New function. | |
1357 | * cli-utils.h (extract_arg_maybe_quoted): New function. | |
1358 | (extract_info_print_args): New function. | |
1359 | (info_print_args_help): New function. | |
1360 | (report_unrecognized_option_error): New function. | |
1361 | ||
4c39bc03 TT |
1362 | 2018-10-26 Tom Tromey <tom@tromey.com> |
1363 | ||
1364 | * dwarf2read.c (recursively_compute_inclusions): Use std::vector. | |
1365 | (compute_compunit_symtab_includes): Update. | |
1366 | * symtab.h: (symtab_ptr): Remove typedef. Don't define a VEC. | |
1367 | (compunit_symtab_ptr): Likewise. | |
1368 | ||
fd2b4de5 JB |
1369 | 2018-10-26 John Baldwin <jhb@FreeBSD.org> |
1370 | ||
1371 | * fbsd-tdep.c (fbsd_print_auxv_entry): Only use | |
1372 | default_print_auxv_entry for specific tag values. | |
1373 | ||
d7ded98f JB |
1374 | 2018-10-26 John Baldwin <jhb@FreeBSD.org> |
1375 | ||
1376 | * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_HWCAP2. | |
1377 | ||
8a613826 JW |
1378 | 2018-10-26 Jim Wilson <jimw@sifive.com> |
1379 | ||
77c6f5fc JW |
1380 | * riscv-linux-tdep.c: Include tramp-frame.h and trad-frame.h. |
1381 | (riscv_linux_sigframe_init): Declare. | |
1382 | (RISCV_INST_LI_A7_SIGRETURN, RISCV_INT_ECALL): New. | |
1383 | (riscv_linux_sigframe): New. | |
1384 | (SIGFRAME_SIGINFO_SIZE, UCONTEXT_MCONTEXT_OFFSET): New. | |
1385 | (riscv_linux_sigframe_init): Define. | |
1386 | (riscv_linux_init_abi): Call tramp_frame_prepend_unwinder. | |
1387 | ||
8a613826 JW |
1388 | * riscv-tdep.c (riscv_isa_xlen): Refer to riscv-tdep.h comment. |
1389 | (riscv_isa_flen): Likewise. Drop static. | |
1390 | * riscv-tdep.h (riscv_isa_xlen): Move riscv-tdep.c comment to here. | |
1391 | (riscv_isa_flen): Likewise. Declare. | |
1392 | ||
8d619c01 EBM |
1393 | 2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com> |
1394 | Pedro Franco de Carvalho <pedromfc@linux.ibm.com> | |
1395 | ||
1396 | * arch/ppc-linux-tdesc.h (tdesc_powerpc_isa207_htm_vsx32l) | |
1397 | (tdesc_powerpc_isa207_htm_vsx64l): Declare. | |
1398 | * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_TM_SPRREGSET) | |
1399 | (PPC32_LINUX_SIZEOF_CGPRREGSET, PPC64_LINUX_SIZEOF_CGPRREGSET) | |
1400 | (PPC_LINUX_SIZEOF_CFPRREGSET, PPC_LINUX_SIZEOF_CVMXREGSET) | |
1401 | (PPC_LINUX_SIZEOF_CVSXREGSET, PPC_LINUX_SIZEOF_CPPRREGSET) | |
1402 | (PPC_LINUX_SIZEOF_CDSCRREGSET, PPC_LINUX_SIZEOF_CTARREGSET): | |
1403 | Define. | |
1404 | (struct ppc_linux_features) <htm>: New field. | |
1405 | (ppc_linux_no_features): Add initializer for htm field. | |
1406 | * arch/ppc-linux-common.c (ppc_linux_match_description): Return | |
1407 | new tdescs. | |
1408 | * nat/ppc-linux.h (PPC_FEATURE2_HTM, NT_PPC_TM_CGPR) | |
1409 | (NT_PPC_TM_CFPR, NT_PPC_TM_CVMX, NT_PPC_TM_CVSX) | |
1410 | (NT_PPC_TM_SPR, NT_PPC_TM_CTAR, NT_PPC_TM_CPPR, NT_PPC_TM_CDSCR): | |
1411 | Define if not already defined. | |
1412 | * features/Makefile (WHICH): Add rs6000/powerpc-isa207-htm-vsx32l | |
1413 | and rs6000/powerpc-isa207-htm-vsx64l. | |
1414 | (XMLTOC): Add rs6000/powerpc-isa207-htm-vsx32l.xml and | |
1415 | rs6000/powerpc-isa207-htm-vsx64l.xml. | |
1416 | * features/rs6000/power-htm-spr.xml: New file. | |
1417 | * features/rs6000/power-htm-core.xml: New file. | |
1418 | * features/rs6000/power64-htm-core.xml: New file. | |
1419 | * features/rs6000/power-htm-fpu.xml: New file. | |
1420 | * features/rs6000/power-htm-altivec.xml: New file. | |
1421 | * features/rs6000/power-htm-vsx.xml: New file. | |
1422 | * features/rs6000/power-htm-ppr.xml: New file. | |
1423 | * features/rs6000/power-htm-dscr.xml: New file. | |
1424 | * features/rs6000/power-htm-tar.xml: New file. | |
1425 | * features/rs6000/powerpc-isa207-htm-vsx32l.xml: New file. | |
1426 | * features/rs6000/powerpc-isa207-htm-vsx64l.xml: New file. | |
1427 | * features/rs6000/powerpc-isa207-htm-vsx32l.c: Generate. | |
1428 | * features/rs6000/powerpc-isa207-htm-vsx64l.c: Generate. | |
1429 | * regformats/rs6000/powerpc-isa207-htm-vsx32l.dat: Generate. | |
1430 | * regformats/rs6000/powerpc-isa207-htm-vsx64l.dat: Generate. | |
1431 | * ppc-linux-nat.c (fetch_register, fetch_ppc_registers): Call | |
1432 | fetch_regset with HTM regsets. | |
1433 | (store_register, store_ppc_registers): Call store_regset with HTM | |
1434 | regsets. | |
1435 | (ppc_linux_nat_target::read_description): Set htm field in the | |
1436 | features struct if needed. | |
1437 | * ppc-linux-tdep.c: Include | |
1438 | features/rs6000/powerpc-isa207-htm-vsx32l.c and | |
1439 | features/rs6000/powerpc-isa207-htm-vsx64l.c. | |
1440 | (ppc32_regmap_tm_spr, ppc32_regmap_cgpr, ppc64_le_regmap_cgpr) | |
1441 | (ppc64_be_regmap_cgpr, ppc32_regmap_cfpr, ppc32_le_regmap_cvmx) | |
1442 | (ppc32_be_regmap_cvmx, ppc32_regmap_cvsx, ppc32_regmap_cppr) | |
1443 | (ppc32_regmap_cdscr, ppc32_regmap_ctar): New globals. | |
1444 | (ppc32_linux_tm_sprregset, ppc32_linux_cgprregset) | |
1445 | (ppc64_be_linux_cgprregset, ppc64_le_linux_cgprregset) | |
1446 | (ppc32_linux_cfprregset, ppc32_le_linux_cvmxregset) | |
1447 | (ppc32_be_linux_cvmxregset, ppc32_linux_cvsxregset) | |
1448 | (ppc32_linux_cpprregset, ppc32_linux_cdscrregset) | |
1449 | (ppc32_linux_ctarregset): New globals. | |
1450 | (ppc_linux_cgprregset, ppc_linux_cvmxregset): New functions. | |
1451 | (ppc_linux_collect_core_cpgrregset): New function. | |
1452 | (ppc_linux_iterate_over_regset_sections): Call back with the htm | |
1453 | regsets. | |
1454 | (ppc_linux_core_read_description): Check if the tm spr section is | |
1455 | present and set htm in the features struct. | |
1456 | (_initialize_ppc_linux_tdep): Call | |
1457 | initialize_tdesc_powerpc_isa207_htm_vsx32l and | |
1458 | initialize_tdesc_powerpc_isa207_htm_vsx64l. | |
1459 | * ppc-linux-tdep.h (ppc_linux_cgprregset, ppc_linux_cvmxregset): | |
1460 | Declare. | |
1461 | (ppc32_linux_tm_sprregset, ppc32_linux_cfprregset) | |
1462 | (ppc32_linux_cvsxregset, ppc32_linux_cpprregset) | |
1463 | (ppc32_linux_cdscrregset, ppc32_linux_ctarregset): Declare. | |
1464 | * ppc-tdep.h (struct gdbarch_tdep) <have_htm_spr, have_htm_core>: | |
1465 | New fields. | |
1466 | <have_htm_fpu, have_htm_altivec, have_htm_vsx>: | |
1467 | Likewise. | |
1468 | <ppc_cppr_regnum, ppc_cdscr_regnum, ppc_ctar_regnum>: Likewise. | |
1469 | <ppc_cdl0_regnum, ppc_cvsr0_regnum, ppc_cefpr0_regnum>: Likewise. | |
1470 | (enum) <PPC_TFHAR_REGNUM, PPC_TEXASR_REGNUM, PPC_TFIAR_REGNUM>: | |
1471 | New enum fields. | |
1472 | <PPC_CR0_REGNUM, PPC_CCR_REGNUM, PPC_CXER_REGNUM>: Likewise. | |
1473 | <PPC_CLR_REGNUM, PPC_CCTR_REGNUM, PPC_CF0_REGNUM>: Likewise. | |
1474 | <PPC_CFPSCR_REGNUM, PPC_CVR0_REGNUM, PPC_CVSCR_REGNUM>: Likewise. | |
1475 | <PPC_CVRSAVE_REGNUM, PPC_CVSR0_UPPER_REGNUM>: Likewise. | |
1476 | <PPC_CPPR_REGNUM, PPC_CDSCR_REGNUM>: Likewise. | |
1477 | <PPC_CTAR_REGNUM>: Likewise. | |
1478 | (PPC_IS_TMSPR_REGNUM, PPC_IS_CKPTGP_REGNUM, PPC_IS_CKPTFP_REGNUM) | |
1479 | (PPC_IS_CKPTVMX_REGNUM, PPC_IS_CKPTVSX_REGNUM): Define. | |
1480 | * rs6000-tdep.c (IS_CDFP_PSEUDOREG, IS_CVSX_PSEUDOREG) | |
1481 | (IS_CEFP_PSEUDOREG): Define. | |
1482 | (rs6000_register_name): Hide the upper halves of checkpointed VSX | |
1483 | registers. Return names for the checkpointed DFP, VSX, and EFP | |
1484 | pseudo registers. | |
1485 | (rs6000_pseudo_register_type): Remove initial assert and raise an | |
1486 | internal error in the else clause instead. Return types for the | |
1487 | checkpointed DFP, VSX, and EFP pseudo registers. | |
1488 | (dfp_pseudo_register_read, dfp_pseudo_register_write): Handle | |
1489 | checkpointed DFP pseudo registers. | |
1490 | (vsx_pseudo_register_read, vsx_pseudo_register_write): Handle | |
1491 | checkpointed VSX pseudo registers. | |
1492 | (efp_pseudo_register_read, efp_pseudo_register_write): Rename | |
1493 | from efpr_pseudo_register_read and | |
1494 | efpr_pseudo_register_write. Handle checkpointed EFP pseudo | |
1495 | registers. | |
1496 | (rs6000_pseudo_register_read, rs6000_pseudo_register_write): | |
1497 | Handle checkpointed DFP, VSX, and EFP registers. | |
1498 | (dfp_ax_pseudo_register_collect, vsx_ax_pseudo_register_collect) | |
1499 | (efp_ax_pseudo_register_collect): New functions. | |
1500 | (rs6000_ax_pseudo_register_collect): Move DFP, VSX and EFP pseudo | |
1501 | register logic to new functions. Handle checkpointed DFP, VSX, | |
1502 | and EFP pseudo registers. | |
1503 | (rs6000_gdbarch_init): Look for and validate the htm features. | |
1504 | Include checkpointed DFP, VSX and EFP pseudo-registers. | |
1505 | * NEWS: Mention access to PPR, DSCR, TAR, EBB/PMU registers and | |
1506 | HTM registers. | |
1507 | ||
81ab84fd PFC |
1508 | 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com> |
1509 | ||
1510 | * rs6000-tdep.c (rs6000_gdbarch_init): Reject tdescs with vsx but | |
1511 | without altivec or fpu. | |
1512 | ||
232bfb86 EBM |
1513 | 2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com> |
1514 | Pedro Franco de Carvalho <pedromfc@linux.ibm.com> | |
1515 | ||
1516 | * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_EBBREGSET) | |
1517 | (PPC_LINUX_SIZEOF_PMUREGSET): Declare. | |
1518 | * nat/ppc-linux.h (PPC_FEATURE2_EBB, NT_PPC_EBB, NT_PPC_PMU): | |
1519 | Define if not already defined. | |
1520 | * features/rs6000/power-ebb.xml: New file. | |
1521 | * features/rs6000/power-linux-pmu.xml: New file. | |
1522 | * features/rs6000/powerpc-isa207-vsx32l.xml: Include ebb and pmu | |
1523 | features. | |
1524 | * features/rs6000/powerpc-isa207-vsx64l.xml: Likewise. | |
1525 | * features/rs6000/powerpc-isa207-vsx32l.c: Re-generate. | |
1526 | * features/rs6000/powerpc-isa207-vsx64l.c: Re-generate. | |
1527 | * regformats/rs6000/powerpc-isa207-vsx32l.dat: Re-generate. | |
1528 | * regformats/rs6000/powerpc-isa207-vsx64l.dat: Re-generate. | |
1529 | * ppc-linux-nat.c (fetch_register, fetch_ppc_registers): Call | |
1530 | fetch_regset with ebb and pmu regsets. | |
1531 | (store_register, store_ppc_registers): Call store_regset with ebb | |
1532 | and pmu regsets. | |
1533 | (ppc_linux_nat_target::read_description): Set isa207 field in the | |
1534 | features struct if ebb and pmu are avaiable. | |
1535 | * ppc-linux-tdep.c (ppc32_regmap_ebb, ppc32_regmap_pmu) | |
1536 | (ppc32_linux_ebbregset, ppc32_linux_pmuregset): New globals. | |
1537 | (ppc_linux_iterate_over_regset_sections): Call back with the ebb | |
1538 | and pmu regsets. | |
1539 | (ppc_linux_core_read_description): Check if the pmu section is | |
1540 | present and set isa207 in the features struct. | |
1541 | * ppc-linux-tdep.h (ppc32_linux_ebbregset) | |
1542 | (ppc32_linux_pmuregset): Declare. | |
1543 | * ppc-tdep.h (struct gdbarch_tdep) <ppc_mmcr0_regnum>: New field. | |
1544 | <ppc_mmcr2_regnum, ppc_siar_regnum, ppc_sdar_regnum>: New fields. | |
1545 | <ppc_sier_regnum>: New field. | |
1546 | (enum): <PPC_BESCR_REGNUM, PPC_EBBHR_REGNUM, PPC_EBBRR_REGNUM>: | |
1547 | New enum values. | |
1548 | <PPC_MMCR0_REGNUM, PPC_MMCR2_REGNUM, PPC_SIAR_REGNUM>: New enum | |
1549 | values. | |
1550 | <PPC_SDAR_REGNUM, PPC_SIER_REGNUM>: New enum values. | |
1551 | (PPC_IS_EBB_REGNUM, PPC_IS_PMU_REGNUM): Define. | |
1552 | * rs6000-tdep.c (rs6000_gdbarch_init): Look for and validate the | |
1553 | ebb and pmu features. | |
1554 | ||
f2cf6173 EBM |
1555 | 2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com> |
1556 | Pedro Franco de Carvalho <pedromfc@linux.ibm.com> | |
1557 | ||
1558 | * arch/ppc-linux-tdesc.h (tdesc_powerpc_isa207_vsx32l) | |
1559 | (tdesc_powerpc_isa207_vsx64l): Declare. | |
1560 | * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_TARREGSET): Define. | |
1561 | (struct ppc_linux_features) <isa207>: New field. | |
1562 | (ppc_linux_no_features): Add initializer for isa207 field. | |
1563 | * arch/ppc-linux-common.c (ppc_linux_match_description): Return | |
1564 | new tdescs. | |
1565 | * nat/ppc-linux.h (PPC_FEATURE2_ARCH_2_07, PPC_FEATURE2_TAR) | |
1566 | (NT_PPC_TAR): Define if not already defined. | |
1567 | * features/Makefile (WHICH): Add rs6000/powerpc-isa207-vsx32l and | |
1568 | rs6000/powerpc-isa207-vsx64l. | |
1569 | (XMLTOC): Add rs6000/powerpc-isa207-vsx32l.xml and | |
1570 | rs6000/powerpc-isa207-vsx64l.xml. | |
1571 | * features/rs6000/power-tar.xml: New file. | |
1572 | * features/rs6000/powerpc-isa207-vsx32l.xml: New file. | |
1573 | * features/rs6000/powerpc-isa207-vsx64l.xml: New file. | |
1574 | * features/rs6000/powerpc-isa207-vsx32l.c: Generate. | |
1575 | * features/rs6000/powerpc-isa207-vsx64l.c: Generate. | |
1576 | * regformats/rs6000/powerpc-isa207-vsx32l.dat: Generate. | |
1577 | * regformats/rs6000/powerpc-isa207-vsx64l.dat: Generate. | |
1578 | * ppc-linux-nat.c (fetch_register, fetch_ppc_registers): Call | |
1579 | fetch_regset with the TAR regset. | |
1580 | (store_register, store_ppc_registers): Call store_regset with the | |
1581 | TAR regset. | |
1582 | (ppc_linux_nat_target::read_description): Set isa207 field in the | |
1583 | features struct if needed. | |
1584 | * ppc-linux-tdep.c: Include | |
1585 | features/rs6000/powerpc-isa207-vsx32l.c and | |
1586 | features/rs6000/powerpc-isa207-vsx64l.c. | |
1587 | (ppc32_regmap_tar, ppc32_linux_tarregset): New globals. | |
1588 | (ppc_linux_iterate_over_regset_sections): Call back with the tar | |
1589 | regset. | |
1590 | (ppc_linux_core_read_description): Check if the tar section is | |
1591 | present and set isa207 in the features struct. | |
1592 | (_initialize_ppc_linux_tdep): Call | |
1593 | initialize_tdesc_powerpc_isa207_vsx32l and | |
1594 | initialize_tdesc_powerpc_isa207_vsx64l. | |
1595 | * ppc-linux-tdep.h (ppc32_linux_tarregset): Declare. | |
1596 | * ppc-tdep.h (gdbarch_tdep) <ppc_tar_regnum>: New field. | |
1597 | (enum) <PPC_TAR_REGNUM>: New enum value. | |
1598 | * rs6000-tdep.c (rs6000_gdbarch_init): Look for and validate tar | |
1599 | feature. | |
1600 | (ppc_process_record_op31): Record changes to TAR. | |
1601 | ||
7ca18ed6 EBM |
1602 | 2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com> |
1603 | Pedro Franco de Carvalho <pedromfc@linux.ibm.com> | |
1604 | ||
1605 | * arch/ppc-linux-tdesc.h (tdesc_powerpc_isa205_ppr_dscr_vsx32l) | |
1606 | (tdesc_powerpc_isa205_ppr_dscr_vsx64l): Declare. | |
1607 | * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_PPRREGSET) | |
1608 | (PPC_LINUX_SIZEOF_DSCRREGSET): Define. | |
1609 | (struct ppc_linux_features) <ppr_dscr>: New field. | |
1610 | (ppc_linux_no_features): Add initializer for ppr_dscr field. | |
1611 | * arch/ppc-linux-common.c (ppc_linux_match_description): Return | |
1612 | new tdescs. | |
1613 | * nat/ppc-linux.h (PPC_FEATURE2_DSCR, NT_PPC_PPR, NT_PPC_DSCR): | |
1614 | Define if not already defined. | |
1615 | * features/Makefile (WHICH): Add | |
1616 | rs6000/powerpc-isa205-ppr-dscr-vsx32l and | |
1617 | rs6000/powerpc-isa205-ppr-dscr-vsx64l. | |
1618 | (XMLTOC): Add rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and | |
1619 | rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml. | |
1620 | * features/rs6000/power-dscr.xml: New file. | |
1621 | * features/rs6000/power-ppr.xml: New file. | |
1622 | * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml: New file. | |
1623 | * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml: New file. | |
1624 | * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Generate. | |
1625 | * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Generate. | |
1626 | * regformats/rs6000/powerpc-isa205-ppr-dscr-vsx32l.dat: Generate. | |
1627 | * regformats/rs6000/powerpc-isa205-ppr-dscr-vsx64l.dat: Generate. | |
1628 | * ppc-linux-nat.c: Include <sys/uio.h>. | |
1629 | (fetch_regset, store_regset, check_regset): New functions. | |
1630 | (fetch_register, fetch_ppc_registers): Call fetch_regset with | |
1631 | DSCR and PPR regsets. | |
1632 | (store_register, store_ppc_registers): Call store_regset with | |
1633 | DSCR and PPR regsets. | |
1634 | (ppc_linux_get_hwcap2): New function. | |
1635 | (ppc_linux_nat_target::read_description): Call | |
1636 | ppc_linux_get_hwcap2 and check_regset, set ppr_dscr field in the | |
1637 | features struct if needed. | |
1638 | * ppc-linux-tdep.c: Include | |
1639 | features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c and | |
1640 | features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c. | |
1641 | (ppc32_regmap_ppr, ppc32_regmap_dscr, ppc32_linux_pprregset) | |
1642 | (ppc32_linux_dscrregset): New globals. | |
1643 | (ppc_linux_iterate_over_regset_sections): Call back with the ppr | |
1644 | and dscr regsets. | |
1645 | (ppc_linux_core_read_description): Check if the ppr and dscr | |
1646 | sections are present and set ppr_dscr in the features struct. | |
1647 | (_initialize_ppc_linux_tdep): Call | |
1648 | initialize_tdesc_powerpc_isa205_ppr_dscr_vsx32l and | |
1649 | initialize_tdesc_powerpc_isa205_ppr_dscr_vsx64l. | |
1650 | * ppc-linux-tdep.h (ppc32_linux_pprregset) | |
1651 | (ppc32_linux_dscrregset): Declare. | |
1652 | * ppc-tdep.h (struct gdbarch_tdep) <ppc_ppr_regnum>: New field. | |
1653 | <ppc_dscr_regnum>: New field. | |
1654 | (enum) <PPC_PPR_REGNUM, PPC_DSCR_REGNUM>: New enum values. | |
1655 | * rs6000-tdep.c (rs6000_gdbarch_init): Look for and validate ppr | |
1656 | and dscr features. | |
1657 | (ppc_process_record_op31): Record changes to PPR and DSCR. | |
1658 | ||
93b4691f PFC |
1659 | 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com> |
1660 | ||
1661 | * rs6000-tdep.c (rs6000_gdbarch_init): Replace line wrapping by a | |
1662 | second initializer line for the have_* variables. Initialize | |
1663 | have_fpu to 0 instead of 1. | |
1664 | ||
71733a7b PFC |
1665 | 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com> |
1666 | ||
1667 | * arch/ppc-linux-common.c (ppc_linux_match_description): | |
1668 | Parenthesize tdesc assignements and indent them properly. | |
1669 | ||
3d907528 PFC |
1670 | 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com> |
1671 | ||
1672 | * ppc-linux-nat.c (fetch_register): Change if statement to else | |
1673 | if. | |
1674 | (store_register): Likewise. | |
1675 | ||
500f01a0 PFC |
1676 | 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com> |
1677 | ||
1678 | * rs6000-tdep.c: Remove reggroups.h include. | |
1679 | (rs6000_pseudo_register_reggroup_p): Remove. | |
1680 | (rs6000_gdbarch_init): Remove call to | |
1681 | set_tdesc_pseudo_register_reggroup_p. | |
1682 | ||
7ed29001 PFC |
1683 | 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com> |
1684 | ||
1685 | * reggroups.c (default_register_reggroup_p): Return true for | |
1686 | decfloat registers and float_reggroup. | |
1687 | ||
5c849b22 PFC |
1688 | 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com> |
1689 | ||
1690 | * ppc-linux-tdep.c (ppc_linux_collect_vrregset): Remove. | |
1691 | (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): Replace | |
1692 | ppc_linux_collect_vrregset by regcache_collect_regset. | |
1693 | ||
afde3032 PFC |
1694 | 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com> |
1695 | ||
1696 | * linux-tdep.c (linux_collect_regset_section_cb): Use | |
1697 | std::vector<gdb_byte> instead of char * and malloc for buf. | |
1698 | Remove xfree. | |
1699 | ||
b9718991 SM |
1700 | 2018-10-26 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com> |
1701 | ||
1702 | * xcoffread.c (read_xcoff_symtab): Pass deduced language to | |
1703 | symtab_start instead of always using language_unknown. | |
1704 | ||
0b0eff8b AB |
1705 | 2018-10-26 Andrew Burgess <andrew.burgess@embecosm.com> |
1706 | ||
1707 | * riscv-tdep.c (riscv_read_misa_reg): Update comment, remove | |
1708 | READ_P parameter, catch and ignore register access errors from | |
1709 | either the old or new MISA location. | |
1710 | (riscv_has_feature): Update call to riscv_read_misa_reg. | |
1711 | ||
b352ceb6 AB |
1712 | 2018-10-25 Andrew Burgess <andrew.burgess@embecosm.com> |
1713 | ||
1714 | * python/py-function.c (convert_values_to_python): Return | |
1715 | gdbpy_ref<>. Add header comment. | |
1716 | (fnpy_call): Adjust. | |
1717 | ||
50db9ef4 AB |
1718 | 2018-10-25 Andrew Burgess <andrew.burgess@embecosm.com> |
1719 | ||
1720 | * python/py-cmd.c (cmdpy_completer_helper): Return gdbpy_ref<>. | |
1721 | (cmdpy_completer_handle_brkchars): Adjust. | |
1722 | (cmdpy_completer): Adjust. | |
1723 | ||
ee67fd7f AB |
1724 | 2018-10-25 Andrew Burgess <andrew.burgess@embecosm.com> |
1725 | ||
1726 | * riscv-linux-nat.c (riscv_linux_nat_target::fetch_registers): | |
1727 | Pass correct regnum to raw_supply_zeroed. | |
1728 | ||
bea556ab HAQ |
1729 | 2018-10-23 Hafiz Abid Qadeer <abidh@codesourcery.com> |
1730 | ||
1731 | * regcache.c (cooked_read_test): Add CSKY to the list of | |
1732 | architectures with a save_reggroup | |
1733 | ||
35ed81d4 SM |
1734 | 2018-10-23 Simon Marchi <simon.marchi@polymtl.ca> |
1735 | ||
1736 | PR gdb/23368 | |
1737 | * infrun.c (follow_exec): In the follow_exec_mode_new case, | |
1738 | transfer terminal state from old new new inferior. | |
1739 | * terminal.h (swap_terminal_info): New function. | |
1740 | * inflow.c (swap_terminal_info): New function. | |
1741 | ||
79b8d3b0 TT |
1742 | 2018-10-23 Tom Tromey <tom@tromey.com> |
1743 | ||
1744 | * record-btrace.c (get_thread_current_frame_id): Rename from | |
1745 | get_thread_current_frame. Return a frame_id. | |
1746 | (record_btrace_start_replaying): Update. | |
1747 | ||
420ecd9c AB |
1748 | 2018-10-23 Andrew Burgess <andrew.burgess@embecosm.com> |
1749 | ||
1750 | * riscv-tdep.c (riscv_register_name): Use the user-friendly names | |
1751 | for CSRs. | |
1752 | ||
5a77b1b4 JB |
1753 | 2018-10-23 Joel Brobecker <brobecker@adacore.com> |
1754 | ||
1755 | * riscv-tdep.c (riscv_gdbarch_init): Set the gdbarch's | |
1756 | have_nonsteppable_watchpoint attribute to 1. | |
1757 | ||
0dbfcfff AB |
1758 | 2018-10-23 Andrew Burgess <andrew.burgess@embecosm.com> |
1759 | ||
1760 | * riscv-tdep.c (riscv_gdb_reg_names): Update comment, and all | |
1761 | register names. | |
1762 | (struct register_alias): Rename to... | |
1763 | (struct riscv_register_alias): ...this, and update comment. | |
1764 | (riscv_register_aliases): Update type, and alias names. Remove | |
1765 | CSR names from this list. | |
1766 | (riscv_register_name): Use riscv_gdb_reg_names for int and float | |
1767 | register names. Add an extra assertion. | |
1768 | (riscv_is_regnum_a_named_csr): New function. | |
1769 | (riscv_register_reggroup_p): Use riscv_is_regnum_a_named_csr. | |
1770 | ||
32641fa9 JD |
1771 | 2018-10-23 John Darrington <john@darrington.wattle.id.au> |
1772 | ||
1773 | * configure.tgt: Add configuration for s12z. | |
1774 | * s12z-tdep.c: New file. | |
1775 | * NEWS: Mention new target. | |
1776 | ||
270b9329 JW |
1777 | 2018-10-22 Jim Wilson <jimw@sifive.com> |
1778 | ||
3399f1b3 JW |
1779 | * riscv-tdep.c (riscv_push_dummy_call) <in_reg>: Check for value in |
1780 | FP reg smaller than FP reg size, and fill with -1 instead of 0. | |
1781 | ||
270b9329 JW |
1782 | * riscv-tdep.c (riscv_fpreg_d_type, riscv_fpreg_q_type): New. |
1783 | (riscv_register_type): Use them. | |
1784 | (riscv_print_one_register_info): Handle union of floats same as float. | |
1785 | * riscv-tdep.h (struct gdbarch_tdep): Add riscv_fpreg_d_type and | |
1786 | riscv_fpreg_q_type fields. | |
1787 | ||
f6efe3f8 SM |
1788 | 2018-10-21 Simon Marchi <simon.marchi@ericsson.com> |
1789 | ||
1790 | * gdbarch.sh (gdbarch_num_cooked_regs): New. | |
1791 | * gdbarch.h: Re-generate. | |
1792 | * ax-gdb.c (gen_expr): Use gdbarch_num_cooked_regs. | |
1793 | * dwarf2-frame.c (dwarf2_frame_cache): Likewise. | |
1794 | * eval.c (evaluate_subexp_standard): Likewise. | |
1795 | * findvar.c (value_of_register): Likewise. | |
1796 | (value_of_register_lazy): Likewise. | |
1797 | (address_from_register): Likewise. | |
1798 | * frame.c (get_frame_register_bytes): Likewise. | |
1799 | * gdbarch-selftests.c (register_to_value_test): Likewise. | |
1800 | * h8300-tdep.c (h8300_register_type): Likewise. | |
1801 | * i386-tdep.c (i386_dbx_reg_to_regnum): Likewise. | |
1802 | (i386_svr4_reg_to_regnum): Likewise. | |
1803 | * infcmd.c (default_print_registers_info): Likewise. | |
1804 | (registers_info): Likewise. | |
1805 | (print_vector_info): Likewise. | |
1806 | (default_print_float_info): Likewise. | |
1807 | * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise. | |
1808 | * mdebugread.c (mdebug_reg_to_regnum): Likewise. | |
1809 | * mi/mi-main.c (mi_cmd_data_list_register_names): Likewise. | |
1810 | (mi_cmd_data_list_changed_registers): Likewise. | |
1811 | (mi_cmd_data_list_register_values): Likewise. | |
1812 | (mi_cmd_data_write_register_values): Likewise. | |
1813 | (mi_cmd_trace_frame_collected): Likewise. | |
1814 | * mips-tdep.c (print_gp_register_row): Likewise. | |
1815 | (mips_print_registers_info): Likewise. | |
1816 | * nds32-tdep.c (nds32_gdbarch_init): Likewise. | |
1817 | * regcache.c (init_regcache_descr): Likewise. | |
1818 | (register_size): Likewise. | |
1819 | (register_dump::dump): Likewise. | |
1820 | (cooked_read_test): Likewise. | |
1821 | (cooked_write_test): Likewise. | |
1822 | * rs6000-tdep.c (rs6000_register_sim_regno): Likewise. | |
1823 | (rs6000_gdbarch_init): Likewise. | |
1824 | * stabsread.c (stab_reg_to_regnum): Likewise. | |
1825 | * stack.c (info_frame_command): Likewise. | |
1826 | * target-descriptions.c (tdesc_register_name): Likewise. | |
1827 | * trad-frame.c (trad_frame_alloc_saved_regs): Likewise. | |
1828 | * tui/tui-regs.c (tui_show_register_group): Likewise. | |
1829 | * user-regs.c (user_reg_map_name_to_regnum): Likewise. | |
1830 | (user_reg_map_regnum_to_name): Likewise. | |
1831 | (value_of_user_reg): Likewise. | |
1832 | (maintenance_print_user_registers): Likewise. | |
1833 | * xtensa-tdep.c (xtensa_find_register_by_name): Likewise. | |
1834 | (xtensa_register_name): Likewise. | |
1835 | (xtensa_register_type): Likewise. | |
1836 | (xtensa_reg_to_regnum): Likewise. | |
1837 | (xtensa_pseudo_register_read): Likewise. | |
1838 | (xtensa_pseudo_register_write): Likewise. | |
1839 | ||
925047fe SM |
1840 | 2018-10-21 Simon Marchi <simon.marchi@polymtl.ca> |
1841 | ||
1842 | * amd64-tdep.c (amd64_pseudo_register_read_value): Use | |
1843 | correctly-sized buffer with raw_read. | |
1844 | (amd64_pseudo_register_write): Use correctly-sized buffer for | |
1845 | raw_read/raw_write. | |
1846 | ||
4051d2d6 PW |
1847 | 2018-10-19 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
1848 | ||
1849 | * typeprint.c (_initialize_typeprint): Fix wrong prefixname arg | |
1850 | in add_prefix_cmd of set print type. | |
1851 | ||
7806cea7 TT |
1852 | 2018-10-19 Tom Tromey <tom@tromey.com> |
1853 | ||
1854 | PR tui/18388: | |
1855 | * NEWS: Mention tabset deprecation. | |
1856 | * tui/tui-win.c (tui_tab_width, internal_tab_width): New globals. | |
1857 | (update_tab_width): New function. | |
1858 | (tui_set_tab_width, tui_show_tab_width): New functions. | |
1859 | (tui_set_tab_width_command): Use update_tab_width. | |
1860 | (_initialize_tui_win): Move to end of file. Deprecate "tabset". | |
1861 | Add new "set tui tab-width" command. | |
1862 | * tui/tui-source.c (tui_set_source_content): Update. | |
1863 | * tui/tui-disasm.c (tui_set_disassem_content): Update. | |
1864 | * tui/tui-data.h (tui_default_tab_len, tui_set_default_tab_len): | |
1865 | Don't declare. | |
1866 | (tui_tab_width): Declare. | |
1867 | * tui/tui-data.c (default_tab_len, tui_default_tab_len) | |
1868 | (tui_set_default_tab_len): Remove. | |
1869 | ||
84371624 TT |
1870 | 2018-10-19 Tom Tromey <tom@tromey.com> |
1871 | ||
1872 | * tui/tui-io.h (key_is_start_sequence, key_is_end_sequence) | |
1873 | (key_is_backspace, tui_getc): Don't declare. | |
1874 | * tui/tui-io.c (key_is_start_sequence): Now static. | |
1875 | (key_is_end_sequence, key_is_backspace): Remove. | |
1876 | (tui_getc): Now static. | |
1877 | ||
22ad8107 TT |
1878 | 2018-10-19 Tom Tromey <tom@tromey.com> |
1879 | ||
1880 | * symfile.c (reread_symbols): Clear "static_links". | |
1881 | ||
74b3c713 AH |
1882 | 2018-10-19 Alan Hayward <alan.hayward@arm.com> |
1883 | ||
1884 | * aarch64-linux-tdep.c (AARCH64_SIGCONTEXT_RESERVED_SIZE): New | |
1885 | define. | |
1886 | (aarch64_linux_sigframe_init): Extra boundary checks. | |
1887 | ||
0667c506 AA |
1888 | 2018-10-19 Andreas Arnez <arnez@linux.ibm.com> |
1889 | ||
1890 | * s390-tdep.c (s390_pseudo_register_type): For v0-v15 don't yield | |
1891 | the possibly non-existent tdesc type 'vec128', but the type of raw | |
1892 | register v16 instead. | |
1893 | ||
ba543ca5 GB |
1894 | 2018-10-19 Gary Benson <gbenson@redhat.com> |
1895 | ||
1896 | * cli/cli-interp.c (cli_interp::~cli_interp): New function. | |
1897 | ||
94c18618 SDJ |
1898 | 2018-10-18 Sergio Durigan Junior <sergiodj@redhat.com> |
1899 | ||
1900 | PR cli/23785 | |
1901 | * cli/cli-dump.c (restore_binary_file): Check if "file" is | |
1902 | NULL. | |
1903 | ||
89eb3c54 PK |
1904 | 2018-10-17 Paul Koning <paul_koning@dell.com> |
1905 | ||
1906 | * charset.c (convert_between_encodings): Fix unsigned overflow. | |
1907 | ||
6f3b1098 JB |
1908 | 2018-10-17 John Baldwin <jhb@FreeBSD.org> |
1909 | ||
1910 | * fbsd-nat.c (fbsd_nat_target::info_proc) Use | |
1911 | fbsd_info_proc_mappings_header and fbsd_info_proc_mappings_entry. | |
1912 | * fbsd-tdep.c (fbsd_vm_map_entry_flags): Mark static. | |
1913 | (fbsd_info_proc_mappings_header, fbsd_info_proc_mappings_entry): | |
1914 | New functions. | |
1915 | (fbsd_core_info_proc_mappings): Use fbsd_info_proc_mappings_header | |
1916 | and fbsd_info_proc_mappings_header. | |
1917 | * fbsd-tdep.h (fbsd_vm_map_entry_flags): Remove. | |
1918 | (fbsd_info_proc_mappings_header, fbsd_info_proc_mappings_entry): | |
1919 | New. | |
1920 | ||
d500b4f2 JB |
1921 | 2018-10-17 Joel Brobecker <brobecker@adacore.com> |
1922 | ||
1923 | * MAINTAINERS (Responsible Maintainers): Add Rainer Orth as | |
1924 | Solaris Maintainer. | |
1925 | ||
63a33118 TT |
1926 | 2018-10-15 Tom Tromey <tom@tromey.com> |
1927 | ||
1928 | * tui/tui.c (strcat_to_buf): Remove casts. | |
1929 | * tui/tui-winsource.c (tui_show_source_line) | |
1930 | (tui_set_is_exec_point_at, tui_line_is_displayed): Remove casts. | |
1931 | * tui/tui-wingeneral.c (tui_refresh_win, box_win): Remove casts. | |
1932 | * tui/tui-windata.c (tui_first_data_item_displayed) | |
1933 | (tui_delete_data_content_windows, tui_erase_data_content) | |
1934 | (tui_display_all_data, tui_display_data_from) | |
1935 | (tui_refresh_data_win, tui_vertical_data_scroll): Remove casts. | |
1936 | * tui/tui-win.c (tui_set_win_height) | |
1937 | (make_invisible_and_set_new_height, parse_scrolling_args): Remove | |
1938 | casts. | |
1939 | * tui/tui-win.c (tui_resize_all): Remove casts. | |
1940 | (tui_scroll_backward_command, tui_set_focus) | |
1941 | (tui_set_tab_width_command): Likewise. | |
1942 | * tui/tui-source.c (tui_vertical_source_scroll): Remove cast. | |
1943 | * tui/tui-regs.c (tui_show_register_group): Remove cast. | |
1944 | * tui/tui-layout.c (tui_set_layout_by_name): Remove cast. | |
1945 | * tui/tui-disasm.c (tui_vertical_disassem_scroll): Remove cast. | |
1946 | * tui/tui-data.c (tui_partial_win_by_name, tui_free_win_content): | |
1947 | Remove casts. | |
1948 | ||
933e62b1 SM |
1949 | 2018-10-15 Simon Marchi <simon.marchi@ericsson.com> |
1950 | ||
1951 | * MAINTAINERS (Responsible Maintainers): Add Alan Hayward as | |
1952 | AArch64/ARM maintainer. | |
1953 | ||
fbe61a36 GB |
1954 | 2018-10-11 Gary Benson <gbenson@redhat.com> |
1955 | ||
1956 | * interps.h (interp::m_name): Make private and mutable. | |
1957 | * interps.c (interp::~interp): Free m_name. | |
1958 | ||
8ecfd7bd SDJ |
1959 | 2018-10-10 Sergio Durigan Junior <sergiodj@redhat.com> |
1960 | Simon Marchi <simark@simark.ca> | |
1961 | ||
1962 | * README (`configure' options): Add documentation for new | |
1963 | "--enable-unit-tests" option. | |
1964 | * acinclude.m4: Include "selftest.m4". | |
1965 | * configure: Regenerate. | |
1966 | * configure.ac: Use "GDB_AC_SELFTEST". | |
1967 | * maint.c (maintenance_selftest): Update message informing | |
1968 | that selftests have been disabled. | |
1969 | (maintenance_info_selftests): Likewise. | |
1970 | * selftest.m4: New file. | |
1971 | ||
33b031ce GB |
1972 | 2018-10-10 Gary Benson <gbenson@redhat.com> |
1973 | ||
1974 | * remote.c (remote_target::remote_send_printf): Add | |
1975 | missing va_end found by Coverity. | |
1976 | ||
2cb2ba9a MM |
1977 | 2018-10-10 Markus Metzger <markus.t.metzger@intel.com> |
1978 | ||
1979 | * btrace.c (ftrace_update_function): Add indirect jump heuristic. | |
1980 | ||
eff98030 TT |
1981 | 2018-10-09 Tom Tromey <tom@tromey.com> |
1982 | ||
1983 | * configure: Rebuild. | |
1984 | * sanitize.m4 (AM_GDB_UBSAN): Default to no. | |
1985 | * NEWS: Update --enable-ubsan documentation. | |
1986 | ||
04fd5eed GB |
1987 | 2018-10-09 Gary Benson <gbenson@redhat.com> |
1988 | ||
1989 | * dwarf2read.c (create_dwp_hash_table): Fix buffer overrun | |
1990 | found by Coverity. | |
1991 | ||
a0c3048e TT |
1992 | 2018-10-08 Tom Tromey <tom@tromey.com> |
1993 | ||
1994 | * riscv-fbsd-tdep.c (riscv_fbsd_sigframe_init): Remove unused | |
1995 | variable. | |
1996 | (riscv_fbsd_init_abi): Likewise. | |
1997 | ||
a51bb70c WP |
1998 | 2018-10-08 Weimin Pan <weimin.pan@oracle.com> |
1999 | * valops.c (value_struct_elt_for_reference): Rename local variable | |
2000 | to work around the shadowing a previous local warning. | |
2001 | ||
74792ff7 JB |
2002 | 2018-10-08 John Baldwin <jhb@FreeBSD.org> |
2003 | ||
2004 | * Makefile.in (ALLDEPFILES): Add riscv-fbsd-nat.c. | |
2005 | * NEWS: Mention new FreeBSD/riscv native configuration. | |
2006 | * configure.host: Add riscv*-*-freebsd*. | |
2007 | * configure.nat: Likewise. | |
2008 | * riscv-fbsd-nat.c: New file. | |
2009 | ||
ed65e20b JB |
2010 | 2018-10-08 John Baldwin <jhb@FreeBSD.org> |
2011 | ||
2012 | * Makefile.in (ALL_TARGET_OBS): Add riscv-fbsd-tdep.o. | |
2013 | (HFILES_NO_SRCDIR): Add riscv-fbsd-tdep.h. | |
2014 | (ALLDEPFILES): Add riscv-fbsd-tdep.c. | |
2015 | * NEWS: Mention new FreeBSD/riscv target. | |
2016 | * configure.tgt: Add riscv*-*-freebsd*. | |
2017 | * riscv-fbsd-tdep.c: New file. | |
2018 | * riscv-fbsd-tdep.h: New file. | |
2019 | ||
498f7407 JB |
2020 | 2018-10-08 John Baldwin <jhb@FreeBSD.org> |
2021 | ||
2022 | * regcache.h (struct regcache_map_entry): Note that this type can | |
2023 | be used with traditional frame caches. | |
2024 | * trad-frame.c (trad_frame_set_reg_regmap): New. | |
2025 | * trad-frame.h (trad_frame_set_reg_regmap): New. | |
2026 | ||
9f6b697b WP |
2027 | 2018-10-08 Weimin Pan <weimin.pan@oracle.com> |
2028 | ||
2029 | PR c++/16841 | |
2030 | * valops.c (get_virtual_base_offset): New function. | |
2031 | (value_struct_elt_for_reference): Use it to get virtual base offset | |
2032 | and add it in calculating class member address. | |
2033 | ||
4399bce9 | 2034 | 2018-10-08 John Darrington <john@darrington.wattle.id.au> |
c258c396 | 2035 | |
4399bce9 PA |
2036 | * dwarf2read.c (dwarf2_cu) <producer_is_codewarrior>: New field. |
2037 | (check_producer): Check if the producer is codewarrior. | |
2038 | (producer_is_codewarrior): New function. | |
2039 | (lnp_state_machine::record_line): Ignore is_stmt flag for records | |
2040 | produced by codewarrior. | |
2041 | (dwarf2_cu::dwarf2_cu): Initialize producer_is_codewarrior. | |
c258c396 | 2042 | |
add5ded5 TT |
2043 | 2018-10-06 Tom Tromey <tom@tromey.com> |
2044 | ||
2045 | PR python/19399: | |
2046 | * python/py-inferior.c: Add "architecture" entry. | |
2047 | (infpy_architecture): New function. | |
2048 | ||
51e78fc5 TT |
2049 | 2018-10-06 Tom Tromey <tom@tromey.com> |
2050 | ||
2051 | PR python/21765: | |
2052 | * python/py-symbol.c (gdbpy_initialize_symbols): Redefine | |
2053 | SYMBOL_VARIABLES_DOMAIN, SYMBOL_FUNCTIONS_DOMAIN, | |
2054 | SYMBOL_TYPES_DOMAIN. Define SYMBOL_MODULE_DOMAIN, | |
2055 | SYMBOL_COMMON_BLOCK_DOMAIN, SYMBOL_LOC_COMMON_BLOCK. | |
2056 | ||
a8a5dbca TT |
2057 | 2018-10-06 Tom Tromey <tom@tromey.com> |
2058 | ||
2059 | PR build/17077: | |
2060 | * Makefile.in (OPCODES_CFLAGS): Remove "-I$(OPCODES_SRC)/..". | |
2061 | * arc-tdep.c, frv-tdep.c, lm32-tdep.c, mep-tdep.c, | |
2062 | microblaze-tdep.c, or1k-tdep.h: Use ../opcodes, not opcodes, in | |
2063 | #include. | |
2064 | ||
2a8be203 TT |
2065 | 2018-10-06 Tom Tromey <tom@tromey.com> |
2066 | ||
2067 | * python/py-breakpoint.c (bppy_get_location): Handle a | |
2068 | bp_breakpoint without a location. | |
2069 | ||
2fb009bb TT |
2070 | 2018-10-06 Tom Tromey <tom@tromey.com> |
2071 | ||
2072 | * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq) | |
2073 | (_RegEx): Reformat help text. | |
2074 | * python/lib/gdb/function/caller_is.py (CallerIs, CallerMatches) | |
2075 | (AnyCallerIs, AnyCallerMatches): Reformat help text. | |
2076 | * python/lib/gdb/function/as_string.py (_AsString): Reformat help | |
2077 | text. | |
2078 | * python/lib/gdb/command/xmethods.py (InfoXMethod) | |
2079 | (EnableXMethod, DisableXMethod): Remove help indentation. | |
2080 | Capitalize meta-syntactic variables. | |
2081 | * python/lib/gdb/command/unwinders.py (InfoUnwinder) | |
2082 | (EnableUnwinder, DisableUnwinder): Remove help indentation. | |
2083 | Capitalize meta-syntactic variables. | |
2084 | * python/lib/gdb/command/explore.py (ExploreCommand) | |
2085 | (ExploreValueCommand, ExploreTypeCommand): Reformat help text. | |
2086 | * python/lib/gdb/command/type_printers.py (InfoTypePrinter) | |
2087 | (EnableTypePrinter, DisableTypePrinter): Remove help indentation. | |
2088 | * python/lib/gdb/command/pretty_printers.py (InfoPrettyPrinter): | |
2089 | Remove help indentation. | |
2090 | (EnablePrettyPrinter, DisablePrettyPrinter): Likewise. | |
2091 | * python/lib/gdb/command/frame_filters.py (EnableFrameFilter) | |
2092 | (DisableFrameFilter, SetFrameFilterPriority) | |
2093 | (ShowFrameFilterPriority, InfoFrameFilter): Reword help text. | |
2094 | ||
7a956928 TT |
2095 | 2018-10-06 Tom Tromey <tom@tromey.com> |
2096 | ||
2097 | PR tui/28819: | |
2098 | * tui/tui-io.c (gdb_wgetch): New function. | |
2099 | (tui_mld_getc, tui_getc): Use it. | |
2100 | ||
f8740dc5 TT |
2101 | 2018-10-05 Tom Tromey <tom@tromey.com> |
2102 | ||
2103 | * sol-thread.c (sol_thread_target::wait): Rename inner | |
2104 | "save_ptid". | |
2105 | ||
96643e35 TT |
2106 | 2018-10-04 Tom Tromey <tom@tromey.com> |
2107 | ||
2108 | * configure: Rebuild. | |
2109 | * warning.m4 (AM_GDB_WARNINGS): Add -Wshadow=local. | |
2110 | ||
d951f98b TT |
2111 | 2018-10-04 Tom Tromey <tom@tromey.com> |
2112 | ||
2113 | * guile/scm-frame.c (gdbscm_frame_read_var): Remove inner | |
2114 | declaration of "block". | |
2115 | ||
b8c88847 TT |
2116 | 2018-10-04 Tom Tromey <tom@tromey.com> |
2117 | ||
2118 | * common/filestuff.c (fdwalk): Remove inner declaration of | |
2119 | "result". | |
2120 | ||
ef789dc4 TT |
2121 | 2018-10-04 Tom Tromey <tom@tromey.com> |
2122 | ||
2123 | * msp430-tdep.c (msp430_push_dummy_call): Rename inner | |
2124 | "structs_addr" and hoist declaration. | |
2125 | ||
3fba72f7 TT |
2126 | 2018-10-04 Tom Tromey <tom@tromey.com> |
2127 | ||
2128 | * linux-tdep.c (linux_make_mappings_corefile_notes): Introduce new | |
2129 | variable "size". | |
2130 | ||
795afcbb TT |
2131 | 2018-10-04 Tom Tromey <tom@tromey.com> |
2132 | ||
2133 | * mdebugread.c (parse_partial_symbols): Use std::string. | |
2134 | ||
b926417a TT |
2135 | 2018-10-04 Tom Tromey <tom@tromey.com> |
2136 | ||
2137 | * ctf.c (SET_ARRAY_FIELD): Rename "u32". | |
2138 | * p-valprint.c (pascal_val_print): Split inner "i" variable. | |
2139 | * xtensa-tdep.c (xtensa_push_dummy_call): Declare "i" in loop | |
2140 | header. | |
2141 | * xstormy16-tdep.c (xstormy16_push_dummy_call): Declare "val" in | |
2142 | more inner scope. | |
2143 | * xcoffread.c (read_xcoff_symtab): Rename inner "symbol". | |
2144 | * varobj.c (varobj_update): Rename inner "newobj", | |
2145 | "type_changed". | |
2146 | * valprint.c (generic_emit_char): Rename inner "buf". | |
2147 | * valops.c (find_overload_match): Rename inner "temp". | |
2148 | (value_struct_elt_for_reference): Declare "v" in more inner | |
2149 | scope. | |
2150 | * v850-tdep.c (v850_push_dummy_call): Rename "len". | |
2151 | * unittests/array-view-selftests.c (run_tests): Rename inner | |
2152 | "vec". | |
2153 | * tui/tui-stack.c (tui_show_frame_info): Declare "i" in loop | |
2154 | header. | |
2155 | * tracepoint.c (merge_uploaded_trace_state_variables): Declare | |
2156 | "tsv" in more inner scope. | |
2157 | (print_one_static_tracepoint_marker): Rename inner | |
2158 | "tuple_emitter". | |
2159 | * tic6x-tdep.c (tic6x_analyze_prologue): Declare "inst" lower. | |
2160 | (tic6x_push_dummy_call): Don't redeclare "addr". | |
2161 | * target-float.c: Declare "dto" lower. | |
2162 | * symtab.c (lookup_local_symbol): Rename inner "sym". | |
2163 | (find_pc_sect_line): Rename inner "pc". | |
2164 | * stack.c (print_frame): Don't redeclare "gdbarch". | |
2165 | (return_command): Rename inner "gdbarch". | |
2166 | * s390-tdep.c (s390_prologue_frame_unwind_cache): Renam inner | |
2167 | "sp". | |
2168 | * rust-lang.c (rust_internal_print_type): Declare "i" in loop | |
2169 | header. | |
2170 | * rs6000-tdep.c (ppc_process_record): Rename inner "addr". | |
2171 | * riscv-tdep.c (riscv_push_dummy_call): Declare "info" in inner | |
2172 | scope. | |
2173 | * remote.c (remote_target::update_thread_list): Don't redeclare | |
2174 | "tp". | |
2175 | (remote_target::process_initial_stop_replies): Rename inner | |
2176 | "thread". | |
2177 | (remote_target::remote_parse_stop_reply): Don't redeclare "p". | |
2178 | (remote_target::wait_as): Don't redeclare "stop_reply". | |
2179 | (remote_target::get_thread_local_address): Rename inner | |
2180 | "result". | |
2181 | (remote_target::get_tib_address): Likewise. | |
2182 | ||
2183 | * regcache.c (cooked_read_test): Rename "regnum". | |
2184 | * record-btrace.c (cmd_record_btrace_start): Rename inner | |
2185 | "exception". | |
2186 | * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Declare "i" in | |
2187 | loop header. | |
2188 | * ppc-linux-tdep.c (ppc_linux_syscall_record): Declare "i" in loop | |
2189 | header. | |
2190 | (ppu2spu_sniffer): Rename inner "buf". | |
2191 | * parse.c (operator_check_standard): Rename inner "type", | |
2192 | "objfile". | |
2193 | * p-valprint.c (pascal_val_print): Introduce new scope for | |
2194 | "low_bound", "high_bound". | |
2195 | * p-exp.y (yylex): Declare "i" in loop header. | |
2196 | * objfiles.c (objfile_relocate1): Declare "i" in loop header. | |
2197 | Lower declaration of "s". | |
2198 | * nios2-tdep.c (nios2_analyze_prologue): Declare "i" in loop | |
2199 | header. | |
2200 | (nios2_push_dummy_call): Rename "len". | |
2201 | * nat/linux-osdata.c (linux_xfer_osdata_cpus): Rename static | |
2202 | "buf". | |
2203 | (linux_xfer_osdata_fds, linux_xfer_osdata_shm) | |
2204 | (linux_xfer_osdata_sem, linux_xfer_osdata_msg) | |
2205 | (linux_xfer_osdata_modules): Likewise. | |
2206 | * mips-tdep.c (mips_eabi_push_dummy_call): Rename outer "len". | |
2207 | (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call) | |
2208 | (mips_o64_push_dummy_call): Likewise. | |
2209 | * microblaze-tdep.c (microblaze_analyze_prologue): Rename inner | |
2210 | "op". | |
2211 | * mi/mi-main.c (list_available_thread_groups): Rename inner | |
2212 | "tuple_emitter". | |
2213 | (mi_cmd_data_read_memory): Rename inner "opts". | |
2214 | * mi/mi-cmd-var.c (varobj_update_one): Rename inner | |
2215 | "tuple_emitter". | |
2216 | * mep-tdep.c (mep_analyze_prologue): Declare "rn" in loop header. | |
2217 | * mdebugread.c (parse_symbol): Rename inner "b". Declare "f" in | |
2218 | more inner scope. | |
2219 | (parse_partial_symbols): Rename inner "pst", "p", "name" | |
2220 | * main.c (captured_main_1): Rename inner "i"s. | |
2221 | * machoread.c (macho_symfile_read_all_oso): Don't redeclare | |
2222 | "oso2". | |
2223 | * linux-tdep.c (linux_info_proc): Rename inner "filename". | |
2224 | * linespec.c (linespec_lexer_lex_string): Rename inner "p". | |
2225 | * infrun.c (handle_no_resumed): Don't redeclare "thread". | |
2226 | (handle_signal_stop): Rename inner "gdbarch". | |
2227 | (handle_command): Declare "signum" in loop header. | |
2228 | * ia64-tdep.c (ia64_pseudo_register_read): Don't redeclare | |
2229 | "status". | |
2230 | (examine_prologue): Rename inner "sol" and "sof". | |
2231 | (ia64_extract_return_value): Rename inner "val". Declare another | |
2232 | "val" in a more inner scope. | |
2233 | * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Declare "buf" in | |
2234 | inner scope. | |
2235 | * guile/scm-symbol.c (gdbscm_lookup_symbol): Rename inner | |
2236 | "except". | |
2237 | * findvar.c (default_read_var_value): Don't redeclare "addr". | |
2238 | * f-exp.y (yylex): Declare "i" in loop header. | |
2239 | * eval.c (evaluate_subexp_standard): Don't redeclare "type". | |
2240 | Rename inner "type", "expect_type". | |
2241 | (evaluate_subexp_for_sizeof): Rename inner "pc". | |
2242 | * elfread.c (elf_symfile_read): Rename inner "abfd". | |
2243 | * dwarf2read.c (read_debug_names_from_section): Don't redeclare | |
2244 | "bytes_read". | |
2245 | (process_psymtab_comp_unit_reader): Don't redeclare "gdbarch". | |
2246 | (add_partial_subprogram): Rename inner "lowpc" and "highpc". | |
2247 | (dwarf_decode_line_header): Rename inner "lh". | |
2248 | * dwarf2loc.c (dwarf2_compile_expr_to_ax): Don't redeclare | |
2249 | "offset". Declare "i" in loop header. | |
2250 | (disassemble_dwarf_expression): Rename inner "addr_size". | |
2251 | * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Rename | |
2252 | inner "result". | |
2253 | (dwarf_expr_context::execute_stack_op): Rename inner "offset". | |
2254 | * dwarf2-frame.c (decode_frame_entry_1): Rename inner "length"s. | |
2255 | * disasm.c (do_mixed_source_and_assembly_deprecated): Rename inner | |
2256 | "inner_list_emitter". | |
2257 | (do_mixed_source_and_assembly): Rename inner "tuple_emitter". | |
2258 | * disasm-selftests.c (print_one_insn_test): Wrap "bplen" | |
2259 | declaration in a block. | |
2260 | * csky-tdep.c (csky_analyze_prologue): Declare "offset" lower. | |
2261 | * cp-valprint.c (cp_print_value_fields): Don't redeclare | |
2262 | "obstack_final_size". | |
2263 | * cp-support.c (inspect_type): Declare "i" in loop header. | |
2264 | * compile/compile.c (compile_instance::insert_symbol_error): | |
2265 | Rename inner "e". | |
2266 | * common/agent.c (agent_run_command): Remove inner "ret" | |
2267 | declaration. | |
2268 | * coffread.c (coff_symfile_read): Rename inner "name". | |
2269 | (coff_symfile_read): Rename inner "abfd". | |
2270 | * cli/cli-utils.c (get_number_trailer): Rename inner "val". | |
2271 | * cli/cli-cmds.c (print_disassembly): Rename inner "low" and | |
2272 | "high". | |
2273 | * c-exp.y (lex_one_token): Move "len" declaration lower. | |
2274 | * breakpoint.c (create_longjmp_master_breakpoint): Don't redeclare | |
2275 | "gdbarch". | |
2276 | (create_exception_master_breakpoint): Likewise. Don't redeclare | |
2277 | "b". | |
2278 | (watch_command_1): Declare "mark" later. | |
2279 | (clear_command): Don't shadow "a" or "b". | |
2280 | (delete_command): Rename inner "b". | |
2281 | (delete_trace_command): Likewise. | |
2282 | * arm-tdep.c (thumb_process_displaced_32bit_insn): Rename inner | |
2283 | "op". | |
2284 | (arm_gdbarch_init): Remove inner "e_flags". | |
2285 | * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Declare | |
2286 | "offset" in inner blocks. | |
2287 | ||
1f88d0c8 SM |
2288 | 2018-10-04 Simon Marchi <simon.marchi@ericsson.com> |
2289 | ||
2290 | * dwarf-index-write.c (file_write): Don't write if the vector is | |
2291 | empty. | |
2292 | ||
5c4481cc TV |
2293 | 2018-10-05 Tom de Vries <tdevries@suse.de> |
2294 | ||
2295 | * python/py-progspace.c (pspy_solib_name): Fix type mismatch in | |
2296 | PyArg_ParseTuple call. | |
2297 | ||
96b1ad86 TV |
2298 | 2018-10-05 Tom de Vries <tdevries@suse.de> |
2299 | ||
2300 | * python/py-record-btrace.c (recpy_bt_goto): Fix type mismatch in | |
2301 | PyArg_ParseTuple call. | |
2302 | ||
d2f7dcb2 JB |
2303 | 2018-10-04 Joel Brobecker <brobecker@adacore.com> |
2304 | ||
2305 | * psymtab.c (recursively_search_psymtabs): Reformat parameters | |
2306 | to avoid exceeding 80 characters per line limit. | |
2307 | ||
5ca8c39f TT |
2308 | 2018-10-04 Tom Tromey <tom@tromey.com> |
2309 | ||
2310 | * symfile.c (syms_from_objfile_1, finish_new_objfile) | |
2311 | (reread_symbols): Update. | |
2312 | * complaints.h (clear_complaints): Remove argument. | |
2313 | * complaints.c (enum complaint_series): Remove. | |
2314 | (series): Remove global. | |
2315 | (complaint_internal): Update. | |
2316 | (clear_complaints): Remove argument. | |
2317 | ||
e79497a1 TT |
2318 | 2018-10-04 Tom Tromey <tom@tromey.com> |
2319 | ||
2320 | * symfile.c (symbol_file_add_with_addrs): Do not print "no | |
2321 | debugging symbols" message if there is a separate debug objfile. | |
2322 | ||
3453e7e4 TT |
2323 | 2018-10-04 Tom Tromey <tom@tromey.com> |
2324 | ||
2325 | PR cli/19551: | |
2326 | * symfile.c (symbol_file_add_with_addrs): Update output. | |
2327 | * psymtab.c (require_partial_symbols): Update output. | |
2328 | ||
6afcf761 TT |
2329 | 2018-10-04 Tom Tromey <tom@tromey.com> |
2330 | ||
2331 | PR cli/22234: | |
2332 | * complaints.c: Emit \n. | |
2333 | ||
22068491 TT |
2334 | 2018-10-04 Tom Tromey <tom@tromey.com> |
2335 | ||
2336 | * symfile.c (symbol_file_add_with_addrs, symbol_file_clear) | |
2337 | (separate_debug_file_exists, find_separate_debug_file) | |
2338 | (add_symbol_file_command, reread_symbols, allocate_symtab) | |
2339 | (allocate_compunit_symtab): Use filtered printing, not | |
2340 | unfiltered. | |
2341 | * psymtab.c (require_partial_symbols, dump_psymtab) | |
2342 | (allocate_psymtab): Use filtered printing, not unfiltered. | |
2343 | ||
9fdd7193 TT |
2344 | 2018-10-04 Tom Tromey <tom@tromey.com> |
2345 | ||
2346 | * complaints.c (complaint_internal): Correctly check complaint | |
2347 | count. | |
2348 | ||
3f2cf4dc TT |
2349 | 2018-10-04 Tom Tromey <tom@tromey.com> |
2350 | ||
2351 | * complaints.h (struct complaints): Remove declaration. | |
2352 | * complaints.c (clear_complaints): Remove an unused variable. | |
2353 | ||
4f9bdf7f RO |
2354 | 2018-10-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
2355 | ||
2356 | * MAINTAINERS (Write After Approval): Add self. | |
2357 | ||
875e5398 TT |
2358 | 2018-10-03 Tom Tromey <tom@tromey.com> |
2359 | ||
2360 | * guile/scm-value.c (gdbscm_value_to_string): Initialize | |
2361 | "buffer_contents". | |
2362 | * coffread.c (coff_symtab_read): Initialize "newobj". | |
2363 | ||
8634679f SM |
2364 | 2018-10-03 Simon Marchi <simon.marchi@polymtl.ca> |
2365 | ||
2366 | * dwarf2read.c (read_func_scope): Remove struct keyword in | |
2367 | range-based for. | |
2368 | ||
f35d5ade TT |
2369 | 2018-10-03 Tom Tromey <tom@tromey.com> |
2370 | ||
2371 | * README: Mention --enable-ubsan. | |
2372 | * NEWS: Mention --enable-ubsan. | |
2373 | * acinclude.m4: Include sanitize.m4. | |
2374 | * configure: Rebuild. | |
2375 | * configure.ac: Call AM_GDB_UBSAN. | |
2376 | * sanitize.m4: New file. | |
2377 | ||
1dffa580 TT |
2378 | 2018-10-03 Tom Tromey <tom@tromey.com> |
2379 | ||
2380 | * expression.h (enum exp_opcode): Use uint8_t as base type. | |
2381 | * expprint.c (op_name): Handle invalid opcodes. | |
2382 | ||
5e70ee09 TT |
2383 | 2018-10-03 Tom Tromey <tom@tromey.com> |
2384 | ||
2385 | * parse.c (prefixify_expression): Add assert. | |
2386 | (parse_exp_in_context_1): Throw exception if the expression is | |
2387 | empty. | |
2388 | ||
4dd1b460 TT |
2389 | 2018-10-03 Tom Tromey <tom@tromey.com> |
2390 | ||
2391 | * dwarf2read.c (read_signed_leb128): Work in ULONGEST. | |
2392 | ||
20562150 TT |
2393 | 2018-10-03 Tom Tromey <tom@tromey.com> |
2394 | ||
2395 | * c-exp.y (parse_number): Work in unsigned. Remove casts. | |
2396 | ||
d359392f TT |
2397 | 2018-10-03 Tom Tromey <tom@tromey.com> |
2398 | ||
2399 | * dwarf2read.c (read_subrange_type): Make "negative_mask" | |
2400 | unsigned. | |
2401 | ||
0101665f TT |
2402 | 2018-10-03 Tom Tromey <tom@tromey.com> |
2403 | ||
2404 | * findvar.c (extract_integer): Do work in an unsigned type. | |
2405 | ||
ad69edbb TT |
2406 | 2018-10-03 Tom Tromey <tom@tromey.com> |
2407 | ||
2408 | * common/enum-flags.h (enum_flags::operator~): Add static assert. | |
2409 | * symfile-add-flags.h (enum symfile_add_flag): Use unsigned as | |
2410 | base type. | |
2411 | * objfile-flags.h (enum objfile_flag): Use unsigned as base type. | |
2412 | * gdbtypes.h (enum type_instance_flag_value): Use unsigned as base | |
2413 | type. | |
2414 | * c-lang.h (enum c_string_type_values): Use unsigned as base | |
2415 | type. | |
2416 | * btrace.h (enum btrace_thread_flag): Use unsigned as base type. | |
2417 | ||
780942fc TT |
2418 | 2018-10-03 Tom Tromey <tom@tromey.com> |
2419 | ||
2420 | * dwarf2-frame.h (dwarf2_frame_state_reg_info) | |
2421 | <~dwarf2_frame_state_reg_info>: Update. | |
2422 | <dwarf2_frame_state_reg_info>: Update. | |
2423 | <alloc_regs>: Add assertion. Update. | |
2424 | <reg>: Now a std::vector. | |
2425 | <num_regs>: Remove. | |
2426 | <swap>: Update. | |
2427 | * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program) | |
2428 | (execute_cfa_program_test, dwarf2_frame_cache): Update. | |
2429 | ||
10657c04 TT |
2430 | 2018-10-03 Tom Tromey <tom@tromey.com> |
2431 | ||
2432 | * namespace.c (add_using_directive): Don't pass NULL to memcpy. | |
2433 | ||
34c0fc00 PW |
2434 | 2018-10-03 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
2435 | ||
2436 | * tid-parse.c (tid_is_in_list): Fix wrong 'See' comment. | |
2437 | ||
2398abf8 TT |
2438 | 2018-10-02 Tom Tromey <tom@tromey.com> |
2439 | ||
2440 | * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Use pulongest. | |
2441 | ||
4399bce9 | 2442 | 2018-10-02 John Darrington <john@darrington.wattle.id.au> |
c1168a2f JD |
2443 | |
2444 | * NEWS: Mention changed commands. | |
2445 | * ser-uds.c: New file. | |
2446 | * configure.ac (SER_HARDWIRE): Add ser-uds.o. | |
2447 | * configure: Regenerate. | |
2448 | * Makefile.in: Add new file. | |
2449 | * serial.c (serial_open): Check if filename is a socket | |
4399bce9 | 2450 | and lookup the appropriate interface accordingly. |
c1168a2f | 2451 | |
05c71722 AH |
2452 | 2018-10-01 Alan Hayward <alan.hayward@arm.com> |
2453 | ||
2454 | * aarch64-linux-tdep.c (AARCH64_SIGCONTEXT_RESERVED_OFFSET): Add | |
2455 | define. | |
2456 | (AARCH64_EXTRA_MAGIC): Likewise. | |
2457 | (AARCH64_FPSIMD_MAGIC): Likewise. | |
2458 | (AARCH64_SVE_MAGIC): Likewise. | |
2459 | (AARCH64_EXTRA_DATAP_OFFSET): Likewise. | |
2460 | (AARCH64_FPSIMD_FPSR_OFFSET): Likewise. | |
2461 | (AARCH64_FPSIMD_FPCR_OFFSET): Likewise. | |
2462 | (AARCH64_FPSIMD_V0_OFFSET): Likewise. | |
2463 | (AARCH64_FPSIMD_VREG_SIZE): Likewise. | |
2464 | (AARCH64_SVE_CONTEXT_VL_OFFSET): Likewise. | |
2465 | (AARCH64_SVE_CONTEXT_REGS_OFFSET): Likewise. | |
2466 | (AARCH64_SVE_CONTEXT_P_REGS_OFFSET): Likewise. | |
2467 | (AARCH64_SVE_CONTEXT_FFR_OFFSET): Likewise. | |
2468 | (AARCH64_SVE_CONTEXT_SIZE): Likewise. | |
2469 | (read_aarch64_ctx): Add function. | |
2470 | (aarch64_linux_sigframe_init): Detect FP registers. | |
2471 | ||
c74e7cb9 AH |
2472 | 2018-10-01 Alan Hayward <alan.hayward@arm.com> |
2473 | ||
2474 | * aarch64-tdep.c (AARCH64_Q0_REGNUM): Move to here. | |
2475 | (AARCH64_D0_REGNUM): Likewise. | |
2476 | (AARCH64_S0_REGNUM): Likewise. | |
2477 | (AARCH64_H0_REGNUM): Likewise. | |
2478 | (AARCH64_B0_REGNUM): Likewise. | |
2479 | (AARCH64_SVE_V0_REGNUM): Likewise. | |
2480 | * arch/aarch64.h (AARCH64_Q0_REGNUM): Move from here. | |
2481 | (AARCH64_D0_REGNUM): Likewise. | |
2482 | (AARCH64_S0_REGNUM): Likewise. | |
2483 | (AARCH64_H0_REGNUM): Likewise. | |
2484 | (AARCH64_B0_REGNUM): Likewise. | |
2485 | (AARCH64_SVE_V0_REGNUM): Likewise. | |
2486 | ||
12b164e9 GB |
2487 | 2018-10-01 Gary Benson <gbenson@redhat.com> |
2488 | ||
2489 | * gdb_proc_service.h (gdb_prfpregset_t): Remove typedef. | |
2490 | * proc-service.c (ps_lgetfpregs, ps_lsetfpregs): Use | |
2491 | prfpregset_t instead of gdb_prfpregset_t. | |
2492 | * configure.ac (PRFPREGSET_T_BROKEN): Remove check. | |
2493 | * configure, config.in: Rebuild. | |
2494 | ||
7c619dbd GB |
2495 | 2018-10-01 Gary Benson <gbenson@redhat.com> |
2496 | ||
2497 | * common/gdb_proc_service.h: New file, factored out from... | |
2498 | * gdb_proc_service.h: Moved common code to the above file. | |
2499 | * Makefile.in (HFILES_NO_SRCDIR): Add the above new file. | |
2500 | ||
358ffcf2 GB |
2501 | 2018-10-01 Gary Benson <gbenson@redhat.com> |
2502 | ||
2503 | * gdb_proc_service.h: Use elf_gregset_t if prgregset_t is | |
2504 | undefined. Use elf_fpregset_t if prfpregset_t is undefined. | |
2505 | ||
43b7e92b GB |
2506 | 2018-10-01 Gary Benson <gbenson@redhat.com> |
2507 | ||
2508 | * configure.ac: Check if sys/procfs.h defines elf_fpregset_t. | |
2509 | (AC_CHECK_HEADERS): Check for linux/elf.h. | |
2510 | * configure, config.in: Rebuild. | |
2511 | * gdb_proc_service.h: Include linux/elf.h if sys/procfs.h | |
2512 | doesn't define elf_fpregset_t. | |
2513 | ||
3795e814 GB |
2514 | 2018-10-01 Gary Benson <gbenson@redhat.com> |
2515 | ||
2516 | * gdb_proc_service.h: Whitespace change. | |
2517 | ||
4176f14d TT |
2518 | 2018-10-01 Tom Tromey <tom@tromey.com> |
2519 | ||
2520 | * unittests/scoped_mmap-selftests.c: Don't check HAVE_UNISTD_H. | |
2521 | * unittests/scoped_fd-selftests.c: Don't check HAVE_UNISTD_H. | |
2522 | * common/scoped_fd.h: Don't check HAVE_UNISTD_H. | |
2523 | ||
a95746f9 TT |
2524 | 2018-10-01 Tom Tromey <tom@tromey.com> |
2525 | ||
2526 | * README: Minor change. | |
2527 | ||
dd203782 PA |
2528 | 2018-09-30 Pedro Alves <palves@redhat.com> |
2529 | ||
2530 | * darwin-nat-info.c (darwin_debug_regions_recurse) | |
2531 | (info_mach_exceptions_command): Remove unused local variables. | |
2532 | * darwin-nat.c (darwin_decode_notify_message) | |
2533 | (darwin_nat_target::resume, darwin_nat_target::mourn_inferior) | |
2534 | (darwin_stop_inferior, darwin_setup_exceptions) | |
2535 | (darwin_nat_target::kill, darwin_attach_pid, darwin_ptrace_him) | |
2536 | (darwin_nat_target::attach, darwin_nat_target::detach) | |
2537 | (darwin_read_write_inferior, darwin_read_dyld_info): Remove unused | |
2538 | local variables. | |
2539 | * i386-darwin-nat.c (i386_darwin_dr_set): Remove unused local | |
2540 | variables. | |
2541 | ||
c82a2e6f TT |
2542 | 2018-09-29 Tom Tromey <tom@tromey.com> |
2543 | ||
2544 | * README: Remove some leftover text. | |
2545 | ||
7f0bd420 TT |
2546 | 2018-09-29 Tom Tromey <tom@tromey.com> |
2547 | ||
2548 | * PROBLEMS: Rewrite. | |
2549 | * README: Update. | |
2550 | ||
f37bc8b1 JB |
2551 | 2018-09-28 John Baldwin <jhb@FreeBSD.org> |
2552 | ||
2553 | * disasm-selftests.c (print_one_insn_test): Add bfd_arch_riscv to | |
2554 | case with explicit breakpoint kind. | |
2555 | * riscv-tdep.c (show_use_compressed_breakpoints): Remove | |
2556 | 'additional_info' and related logic. | |
2557 | (riscv_debug_breakpoints): New variable. | |
2558 | (riscv_breakpoint_kind_from_pc): Use the length of the existing | |
2559 | instruction to determine the breakpoint kind. | |
2560 | (_initialize_riscv_tdep): Add 'set/show debug riscv breakpoints' | |
2561 | flag. Update description of 'set/show riscv | |
2562 | use-compressed-breakpoints' flag. | |
2563 | ||
f67ffa6a AB |
2564 | 2018-09-28 Andrew Burgess <andrew.burgess@embecosm.com> |
2565 | ||
2566 | (NEWS): Mention changes to frame related commands. | |
2567 | * cli/cli-decode.c (add_cmd_suppress_notification): New function. | |
2568 | (add_prefix_cmd_suppress_notification): New function. | |
2569 | (add_com_suppress_notification): Call | |
2570 | add_cmd_suppress_notification. | |
2571 | * command.h (add_cmd_suppress_notification): Declare. | |
2572 | (add_prefix_cmd_suppress_notification): Declare. | |
2573 | * mi/mi-cmd-stack.c: Add 'safe-ctype.h' include. | |
2574 | (parse_frame_specification): Moved from stack.c, with | |
2575 | simplification to handle a single argument. | |
2576 | (mi_cmd_stack_select_frame): Use parse_frame_specification, the | |
2577 | switch to the selected frame. Add a header comment. | |
2578 | * stack.c: Remove 'safe-ctype.h' include. | |
2579 | (find_frame_for_function): Add declaration. | |
2580 | (find_frame_for_address): New function. | |
2581 | (parse_frame_specification): Moved into mi/mi-cmd-stack.c. | |
2582 | (frame_selection_by_function_completer): New function. | |
2583 | (info_frame_command): Rename to... | |
2584 | (info_frame_command_core): ...this, and update parameter types. | |
2585 | (select_frame_command): Rename to... | |
2586 | (select_frame_command_core): ...this, and update parameter types. | |
2587 | (frame_command): Rename to... | |
2588 | (frame_command_core): ...this, and update parameter types. | |
2589 | (class frame_command_helper): New class to wrap implementations of | |
2590 | frame related sub-commands. | |
2591 | (frame_apply_cmd_list): New static global. | |
2592 | (frame_cmd_list): Make static. | |
2593 | (select_frame_cmd_list): New global for sub-commands. | |
2594 | (info_frame_cmd_list): New global for sub-commands. | |
2595 | (_initialize_stack): Register sub-commands for 'frame', | |
2596 | 'select-frame', and 'info frame'. Update 'frame apply' commands | |
2597 | to use frame_apply_cmd_list. Move function local static | |
2598 | frame_apply_list to file static frame_apply_cmd_list for | |
2599 | consistency. | |
2600 | * stack.h (select_frame_command): Delete declarationn. | |
2601 | (select_frame_for_mi): Declare new function. | |
2602 | ||
d354055e AB |
2603 | 2018-09-26 Andrew Burgess <andrew.burgess@embecosm.com> |
2604 | ||
2605 | * riscv-tdep.c (riscv_insn::decode): Decode c.lui. | |
2606 | (riscv_scan_prologue): Split handling of AUIPC, LUI, ADD, ADDI, | |
2607 | and NOP. | |
2608 | ||
85392414 SM |
2609 | 2018-09-26 Simon Marchi <simon.marchi@ericsson.com> |
2610 | ||
2611 | * elf32-nds32.c (elf32_nds32_allocate_dynrelocs): Remove. | |
2612 | ||
896ee098 TT |
2613 | 2018-09-26 Tom Tromey <tom@tromey.com> |
2614 | ||
2615 | * valops.c (auto_abandon): Remove dead code. | |
2616 | ||
57dbb3af TT |
2617 | 2018-09-26 Tom Tromey <tom@tromey.com> |
2618 | ||
2619 | * tui/tui-win.c (WIN_HEIGHT_USAGE): Remove extra ">"s. | |
2620 | ||
b5a9bfbe TT |
2621 | 2018-09-24 Tom Tromey <tom@tromey.com> |
2622 | ||
2623 | * common/pathstuff.c (get_standard_cache_dir): Make | |
2624 | "xdg_cache_home" and "home" const. | |
2625 | * top.c (init_history): Make "tmpenv" const. | |
2626 | * main.c (get_init_files): Make "homedir" const. | |
2627 | ||
ae778caf TT |
2628 | 2018-09-23 Tom Tromey <tom@tromey.com> |
2629 | ||
2630 | PR python/18852: | |
2631 | * python/py-param.c (get_set_value): Use gdbpy_handle_exception. | |
2632 | ||
2b4ad2fe TT |
2633 | 2018-09-23 Tom Tromey <tom@tromey.com> |
2634 | ||
2635 | * python/py-function.c (fnpy_call): Use gdbpy_handle_exception. | |
2636 | * python/py-cmd.c (cmdpy_function): Use gdbpy_handle_exception. | |
2637 | * python/python-internal.h (gdbpy_handle_exception): Declare. | |
2638 | * python/py-utils.c (gdbpy_handle_exception): New function. | |
2639 | ||
fd3ba736 TT |
2640 | 2018-09-23 Tom Tromey <tom@tromey.com> |
2641 | ||
2642 | PR python/17284: | |
2643 | * python/py-type.c (typy_template_argument): Check for negative | |
2644 | argument number. | |
2645 | ||
39a24317 TT |
2646 | 2018-09-23 Tom Tromey <tom@tromey.com> |
2647 | ||
2648 | PR python/14062: | |
2649 | * python/python.c (gdbpy_run_events): Do not ignore exceptions. | |
2650 | ||
f5769a2c TT |
2651 | 2018-09-23 Tom Tromey <tom@tromey.com> |
2652 | ||
2653 | PR python/18170: | |
2654 | * python/py-value.c (valpy_int): Allow conversion from pointer | |
2655 | type. | |
2656 | ||
1c1e54f6 TT |
2657 | 2018-09-23 Tom Tromey <tom@tromey.com> |
2658 | ||
2659 | PR python/20126: | |
2660 | * python/py-value.c (valpy_int): Respect type sign. | |
2661 | ||
fb4fa946 TT |
2662 | 2018-09-23 Tom Tromey <tom@tromey.com> |
2663 | ||
2664 | PR python/18352; | |
2665 | * python/py-value.c (valpy_float): Allow conversions from int or | |
2666 | char. | |
2667 | (valpy_int, valpy_long): Allow conversions from float. | |
2668 | ||
65773341 TT |
2669 | 2018-09-23 Tom Tromey <tom@tromey.com> |
2670 | ||
2671 | * ctf.c (ctf_start): Use gdb_fopen_cloexec. | |
2672 | * common/scoped_mmap.c (mmap_file): Use gdb_open_cloexec. | |
2673 | ||
1db88d22 RO |
2674 | 2018-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
2675 | ||
2676 | * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Also recognize | |
2677 | __sighndlr. | |
2678 | * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Likewise. | |
2679 | ||
a44294f5 JT |
2680 | 2018-08-02 Jon Turney <jon.turney@dronecode.org.uk> |
2681 | ||
2682 | * windows-nat.c (windows_nat_target::wait): Remove a spurious | |
2683 | target_terminal::ours(). | |
2684 | ||
0c0a40e0 SM |
2685 | 2018-09-23 Simon Marchi <simon.marchi@ericsson.com> |
2686 | ||
2687 | * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): Change type | |
2688 | of vl to ULONGEST. | |
2689 | ||
4daf1902 YS |
2690 | 2018-09-21 Yacov Simhony <ysimhony@gmail.com> |
2691 | ||
2692 | * breakpoint.c (update_inserted_breakpoint_locations): Remove | |
2693 | redundant condition. | |
2694 | ||
c475f569 RO |
2695 | 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
2696 | ||
2697 | * proc-utils.h (PROC_CTL_WORD_TYPE): Remove. | |
2698 | ||
2699 | * procfs.c: Don't check for PR_MODEL_NATIVE definition. | |
2700 | * sparc-sol2-nat.c: Likewise. Remove Linux, __arch64__ references. | |
2701 | * sol-thread.c (ps_pdmodel): Don't guard definition. | |
2702 | ||
2703 | * procfs.c: Fix formatting. | |
2704 | ||
2705 | * procfs.c (sysset_t_alloc): Remove. | |
2706 | (create_procinfo): Use XNEW instead of sysset_t_alloc. | |
2707 | (procfs_debug_inferior): Likewise. | |
2708 | (procfs_set_exec_trap): Likewise. | |
2709 | (proc_set_traced_sysentry): Don't allocate argp dynamically. | |
2710 | (proc_set_traced_sysexit): Likewise. | |
2711 | ||
2712 | * procfs.c (create_procinfo): Use xsnprintf to fix ARI warning. | |
2713 | (dead_procinfo): Likewise. | |
2714 | (proc_warn): Likewise. | |
2715 | (proc_error): Likewise. | |
2716 | (proc_get_LDT_entry): Likewise. | |
2717 | (do_attach): Likewise. | |
2718 | (procfs_target::pid_to_str): Likewise. | |
2719 | (iterate_over_mappings): Likewise. | |
2720 | ||
2721 | * procfs.c (create_procinfo): Fix ARI warning. | |
2722 | (proc_get_status): Likewise. | |
2723 | (proc_stop_process): Likewise. | |
2724 | (proc_run_process): Likewise. | |
2725 | (proc_kill): Likewise. | |
2726 | (proc_get_LDT_entry): Likewise. | |
2727 | (procfs_find_LDT_entry): Likewise. | |
2728 | (proc_update_threads): Likewise. | |
2729 | (proc_iterate_over_threads): Likewise. | |
2730 | (do_attach): Likewise. | |
2731 | (procfs_xfer_memory): Likewise. | |
2732 | (invalidate_cache): Likewise. | |
2733 | (procfs_target::resume): Likewise. | |
2734 | (procfs_init_inferior): Likewise. | |
2735 | (procfs_set_exec_trap): Likewise. | |
2736 | (procfs_target::thread_alive): Likewise. | |
2737 | (procfs_target::pid_to_exec_file): Likewise. | |
2738 | (iterate_over_mappings): Likewise. | |
2739 | (procfs_target::make_corefile_notes): Likewise. | |
2740 | * sol-thread.c (sol_thread_target::thread_alive): Likewise. | |
2741 | ||
2742 | * procfs.c (procfs_find_LDT_entry): Silence ARI warning. | |
2743 | (procfs_find_LDT_entry): Likewise. | |
2744 | * sol-thread.c (ps_lgetLDT): Likewise. | |
2745 | ||
4206c05e RO |
2746 | 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
2747 | ||
2748 | PR tdep/17903 | |
2749 | * procfs.c (procfs_target): Declare pid_to_exec_file. | |
2750 | (procfs_target::pid_to_exec_file): New. | |
2751 | ||
3d282ac3 RO |
2752 | 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
2753 | ||
2754 | * auxv.c (default_print_auxv_entry): Reflect AT_SUN_CAP_HW1 | |
2755 | renaming. | |
2756 | Handle AT_SUN_EMULATOR, AT_SUN_BRANDNAME, AT_SUN_BRAND_AUX1, | |
2757 | AT_SUN_BRAND_AUX2, AT_SUN_BRAND_AUX3, AT_SUN_CAP_HW2. | |
2758 | ||
8c93fae6 RO |
2759 | 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
2760 | ||
2761 | * i386-v4-nat.c (regmap, supply_gregset, fill_gregset) | |
2762 | (supply_fpregset, fill_fpregset): Move ... | |
2763 | * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64]: ... here. | |
2764 | Remove HAVE_GREGSET_T, HAVE_FPREGET_T guards. | |
2765 | Remove references to ioctl-based procfs. | |
2766 | Include <sys/reg.h>. | |
2767 | Remove PR_MODEL_NATIVE guards. | |
2768 | * configure.nat <sol2, i386> (NATDEPFILES): Remove i386-v4-nat.o. | |
2769 | * Makefile.in (ALLDEPFILES): Remove i386-v4-nat.c. | |
2770 | ||
79b32f4a XR |
2771 | 2018-09-19 Xavier Roirand <roirand@adacore.com> |
2772 | ||
2773 | PR gdb/20981: | |
2774 | * solib-darwin.c (darwin_get_dyld_bfd): New function. | |
2775 | (darwin_solib_get_all_image_info_addr_at_init): Update call. | |
2776 | (darwin_solib_create_inferior_hook): Handle unrelocated dyld. | |
2777 | ||
07147793 JB |
2778 | 2018-09-19 John Baldwin <jhb@FreeBSD.org> |
2779 | ||
2780 | * fbsd-tdep.c (fbsd_print_sockaddr_in): Style fix. | |
2781 | (fbsd_print_sockaddr_in6): Likewise. | |
2782 | ||
23be8da7 RB |
2783 | 2018-09-19 Richard Bunt <richard.bunt@arm.com> |
2784 | Chris January <chris.january@arm.com> | |
2785 | ||
2786 | * eval.c (skip_undetermined_arglist): Skip argument list helper. | |
2787 | (evaluate_subexp_standard): Return a dummy type when | |
2788 | honoring EVAL_SKIP in OP_VAR_VALUE and handle skipping in the | |
2789 | OP_F77_UNDETERMINED_ARGLIST case. | |
2790 | * expression.h (enum noside): Update comment. | |
2791 | ||
7307a73a RO |
2792 | 2018-09-19 George Vasick <george.vasick@oracle.com> |
2793 | ||
2794 | * solib-svr4.c (svr4_same_1): Also handle amd64 ld.so.1. | |
2795 | ||
13db92d3 RO |
2796 | 2018-09-19 Stefan Teleman <stefan.teleman@oracle.com> |
2797 | April Chin <april.chin@oracle.com> | |
2798 | Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | |
2799 | ||
2800 | * procfs.c (MAX_PROC_NAME_SIZE): Allow for 6-digit PID_MAX and | |
2801 | uint_t lwpid_t. | |
2802 | (create_procinfo): Print pids in /proc without leading zeros. | |
2803 | ||
3d50f170 SL |
2804 | 2018-09-18 Sandra Loosemore <sandra@codesourcery.com> |
2805 | ||
2806 | * nios2-tdep.c (nios2_gcc_target_options): New. | |
2807 | (nios2_gdb_arch_init): Install new hook. | |
2808 | ||
b567ca63 SM |
2809 | 2018-09-18 Simon Marchi <simon.marchi@ericsson.com> |
2810 | ||
2811 | * patches/0001-Fix-PR-gdb-23558-Use-system-s-getcwd-when-cross-comp.patch: | |
2812 | New file. | |
2813 | * update-gnulib.sh: Apply patch. | |
2814 | * configure: Re-generate. | |
2815 | ||
73f1bd76 JB |
2816 | 2018-09-18 John Baldwin <jhb@FreeBSD.org> |
2817 | ||
2818 | * infcmd.c (_initialize_infcmd): Remove "running" from "info proc" | |
2819 | description. Make "info proc" command descriptions more | |
2820 | consistent. | |
2821 | ||
8b113111 JB |
2822 | 2018-09-18 John Baldwin <jhb@FreeBSD.org> |
2823 | ||
2824 | * NEWS: Mention 'info proc files' command. | |
2825 | ||
7e69672e JB |
2826 | 2018-09-18 John Baldwin <jhb@FreeBSD.org> |
2827 | ||
2828 | * fbsd-nat.c (fbsd_nat_target::info_proc): List open file | |
2829 | descriptors for IP_FILES and IP_ALL. | |
2830 | ||
57c2a98a JB |
2831 | 2018-09-18 John Baldwin <jhb@FreeBSD.org> |
2832 | ||
2833 | * fbsd-tdep.c (KF_FLAGS, KF_OFFSET, KF_VNODE_TYPE, KF_SOCK_DOMAIN) | |
2834 | (KF_SOCK_TYPE, KF_SOCK_PROTOCOL, KF_SA_LOCAL, KF_SA_PEER) | |
2835 | (KINFO_FILE_TYPE_SOCKET, KINFO_FILE_TYPE_PIPE) | |
2836 | (KINFO_FILE_TYPE_FIFO, KINFO_FILE_TYPE_KQUEUE) | |
2837 | (KINFO_FILE_TYPE_CRYPTO, KINFO_FILE_TYPE_MQUEUE) | |
2838 | (KINFO_FILE_TYPE_SHM, KINFO_FILE_TYPE_SEM, KINFO_FILE_TYPE_PTS) | |
2839 | (KINFO_FILE_TYPE_PROCDESC, KINFO_FILE_FD_TYPE_ROOT) | |
2840 | (KINFO_FILE_FD_TYPE_JAIL, KINFO_FILE_FD_TYPE_TRACE) | |
2841 | (KINFO_FILE_FD_TYPE_CTTY, KINFO_FILE_FLAG_READ) | |
2842 | (KINFO_FILE_FLAG_WRITE, KINFO_FILE_FLAG_APPEND) | |
2843 | (KINFO_FILE_FLAG_ASYNC, KINFO_FILE_FLAG_FSYNC) | |
2844 | (KINFO_FILE_FLAG_NONBLOCK, KINFO_FILE_FLAG_DIRECT) | |
2845 | (KINFO_FILE_FLAG_HASLOCK, KINFO_FILE_FLAG_EXEC) | |
2846 | (KINFO_FILE_VTYPE_VREG, KINFO_FILE_VTYPE_VDIR) | |
2847 | (KINFO_FILE_VTYPE_VCHR, KINFO_FILE_VTYPE_VLNK) | |
2848 | (KINFO_FILE_VTYPE_VSOCK, KINFO_FILE_VTYPE_VFIFO, FBSD_AF_UNIX) | |
2849 | (FBSD_AF_INET, FBSD_AF_INET6, FBSD_SOCK_STREAM, FBSD_SOCK_DGRAM) | |
2850 | (FBSD_SOCK_SEQPACKET, FBSD_IPPROTO_ICMP, FBSD_IPPROTO_TCP) | |
2851 | (FBSD_IPPROTO_UDP, FBSD_IPPROTO_SCTP): New defines. | |
2852 | (struct fbsd_sockaddr_in, struct fbsd_sockaddr_in6) | |
2853 | (struct fbsd_sockaddr_un): New types. | |
2854 | (fbsd_file_fd, fbsd_file_type, fbsd_file_flags, fbsd_ipproto) | |
2855 | (fbsd_print_sockaddr_in, fbsd_print_sockaddr_in6) | |
2856 | (fbsd_info_proc_files_header, fbsd_info_proc_files_entry) | |
2857 | (fbsd_core_info_proc_files): New functions. | |
2858 | (fbsd_core_info_proc): List open file descriptors for IP_FILES and | |
2859 | IP_ALL. | |
2860 | * fbsd-tdep.h (fbsd_info_proc_files_header) | |
2861 | (fbsd_info_proc_files_entry): New. | |
2862 | ||
e98ee8c4 JB |
2863 | 2018-09-18 John Baldwin <jhb@FreeBSD.org> |
2864 | ||
2865 | * defs.h (enum info_proc_what) [IP_FILES]: New value. | |
2866 | * infcmd.c (info_proc_cmd_files): New function. | |
2867 | (_initialize_infcmd): Register 'info proc files' command. | |
2868 | ||
725e2999 JB |
2869 | 2018-09-18 John Baldwin <jhb@FreeBSD.org> |
2870 | ||
2871 | * gnulib/aclocal-m4-deps.mk: Re-generate. | |
2872 | * gnulib/aclocal.m4: Re-generate. | |
2873 | * gnulib/config.in: Re-generate. | |
2874 | * gnulib/configure: Re-generate. | |
2875 | * gnulib/import/Makefile.am: Re-generate. | |
2876 | * gnulib/import/Makefile.in: Re-generate. | |
2877 | * gnulib/import/m4/gnulib-cache.m4: Re-generate. | |
2878 | * gnulib/import/m4/gnulib-comp.m4: Re-generate. | |
2879 | * gnulib/import/arpa_inet.in.h: New file. | |
2880 | * gnulib/import/inet_ntop.c: New file. | |
2881 | * gnulib/import/m4/arpa_inet_h.m4: New file. | |
2882 | * gnulib/import/m4/inet_ntop.m4: New file. | |
2883 | * gnulib/import/m4/netinet_in_h.m4: New file. | |
2884 | * gnulib/import/m4/socklen.m4: New file. | |
2885 | * gnulib/import/m4/sockpfaf.m4: New file. | |
2886 | * gnulib/import/m4/stdalign.m4: New file. | |
2887 | * gnulib/import/m4/sys_uio_h.m4: New file. | |
2888 | * gnulib/import/netinet_in.in.h: New file. | |
2889 | * gnulib/import/stdalign.in.h: New file. | |
2890 | * gnulib/import/sys_socket.c: New file. | |
2891 | * gnulib/import/sys_socket.in.h: New file. | |
2892 | * gnulib/import/sys_uio.in.h: New file. | |
2893 | * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add inet_ntop | |
2894 | module. | |
2895 | ||
2afffa7f JB |
2896 | 2018-09-18 John Baldwin <jhb@FreeBSD.org> |
2897 | ||
2898 | * gnulib/aclocal-m4-deps.mk: New file. | |
2899 | * gnulib/update-gnulib.sh: Generate "aclocal-m4-deps.mk" | |
2900 | deterministically. | |
2901 | ||
9f235e09 JB |
2902 | 2018-09-18 John Baldwin <jhb@FreeBSD.org> |
2903 | ||
2904 | * fbsd-tdep.c (fbsd_core_vnode_path): Use KF_PATH instead of | |
2905 | KVE_PATH. | |
2906 | ||
40f03055 TT |
2907 | 2018-09-18 Tom Tromey <tom@tromey.com> |
2908 | ||
2909 | * compile/compile-object-load.c (struct | |
2910 | link_hash_table_cleanup_data): Add constructor and destructor. | |
2911 | Use DISABLE_COPY_AND_ASSIGN. | |
2912 | (~link_hash_table_cleanup_data): Rename from | |
2913 | link_hash_table_free. Now a destructor. | |
2914 | (copy_sections): Use gdb::unique_xmalloc_ptr. Remove cleanups. | |
2915 | ||
c9e0a7e3 TT |
2916 | 2018-09-18 Tom Tromey <tom@tromey.com> |
2917 | ||
2918 | * compile/compile-object-run.c (do_module_cleanup): Use delete. | |
2919 | * compile/compile-object-load.c (struct munmap_list): Move to | |
2920 | header file. | |
2921 | (munmap_list::add): Rename from munmap_list_add; rewrite. | |
2922 | (munmap_list::~munmap_list): Rename from munmap_list_free. | |
2923 | (munmap_listp_free_cleanup): Remove. | |
2924 | (compile_object_load): Update. | |
2925 | * compile/compile-object-load.h (struct munmap_list): Move from | |
2926 | compile-object-load.c. Rewrite. | |
2927 | ||
3ff2c72e AH |
2928 | 2018-09-18 Alan Hayward <alan.hayward@arm.com> |
2929 | ||
2930 | * aarch64-tdep.c (pass_in_v): Use register size. | |
2931 | (aarch64_extract_return_value): Likewise. | |
2932 | (aarch64_store_return_value): Likewise. | |
2933 | ||
206c1947 RO |
2934 | 2018-09-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
2935 | ||
2936 | * utils.c (dump_core) [HAVE_SETRLIMIT]: Cast RLIM_INFINITY to | |
2937 | rlim_t. | |
2938 | ||
6eb5dbce PW |
2939 | 2018-09-17 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
2940 | ||
2941 | * python/lib/gdb/command/frame_filters.py (EnableFrameFilter): | |
2942 | Fix short help line. | |
2943 | ||
ae292b3a TT |
2944 | 2018-09-17 Tom Tromey <tom@tromey.com> |
2945 | ||
2946 | PR python/20445: | |
2947 | * configure: Rebuild. | |
2948 | * configure.ac: Conditionally use -DNDEBUG for Python. | |
2949 | ||
da658607 TT |
2950 | 2018-09-17 Tom Tromey <tom@tromey.com> |
2951 | ||
2952 | * configure: Rebuild. | |
2953 | * configure.ac: Use gmp as a library dependency when checking for | |
2954 | mpfr. | |
2955 | ||
d35da542 PA |
2956 | 2018-09-17 Pedro Alves <palves@redhat.com> |
2957 | ||
2958 | * python/py-inferior.c (find_inferior_object): Delete. | |
2959 | ||
461464f2 SM |
2960 | 2018-09-17 Simon Marchi <simon.marchi@ericsson.com> |
2961 | ||
2962 | * compile/compile-cplus-types.c | |
2963 | (compile_cplus_instance::enter_scope): Don't use new_scope after | |
2964 | std::move. | |
2965 | ||
e6cd1dc1 TT |
2966 | 2018-09-17 Tom Tromey <tom@tromey.com> |
2967 | ||
2968 | * common/pathstuff.c (get_standard_cache_dir): Use | |
2969 | ~/Library/Caches on macOS. | |
2970 | * common/pathstuff.h (get_standard_cache_dir): Update comment. | |
2971 | ||
8588b356 SM |
2972 | 2018-09-17 Simon Marchi <simon.marchi@polymtl.ca> |
2973 | ||
2974 | PR python/23669 | |
2975 | * breakpoint.c (commands_cmd_element): New. | |
2976 | (_initialize_breakpoint): Assign commands_cmd_element. | |
2977 | * breakpoint.h (commands_cmd_element): New. | |
2978 | * cli/cli-script.c (while_cmd_element, if_command, | |
2979 | define_cmd_element): New. | |
2980 | (command_name_equals): Remove. | |
2981 | (process_next_line): Compare commands by pointer, not by name. | |
2982 | (_initialize_cli_script): Assign the various cmd_list_element | |
2983 | variables. | |
2984 | * compile/compile.c (compile_cmd_element): New. | |
2985 | (_initialize_compile): Assign compile_cmd_element. | |
2986 | * compile/compile.h (compile_cmd_element): New. | |
2987 | * guile/guile.c (guile_cmd_element): New. | |
2988 | (install_gdb_commands): Assign guile_cmd_element. | |
2989 | * guile/guile.h (guile_cmd_element): New. | |
2990 | * python/python.c (python_cmd_element): New. | |
2991 | (_initialize_python): Assign python_cmd_element. | |
2992 | * python/python.h (python_cmd_element): New. | |
2993 | * tracepoint.c (while_stepping_cmd_element): New. | |
2994 | (_initialize_tracepoint): Assign while_stepping_cmd_element. | |
2995 | * tracepoint.h (while_stepping_cmd_element): New. | |
2996 | ||
cb524840 TT |
2997 | 2018-09-17 Tom Tromey <tom@tromey.com> |
2998 | ||
2999 | * infrun.c (save_infcall_suspend_state): Return | |
3000 | infcall_suspend_state_up. | |
3001 | (save_infcall_control_state): Return infcall_control_state_up. | |
3002 | * inferior.h (save_infcall_suspend_state) | |
3003 | (save_infcall_control_state): Declare later. Return unique | |
3004 | pointers. | |
3005 | ||
2d844eaf TT |
3006 | 2018-09-17 Tom Tromey <tom@tromey.com> |
3007 | ||
3008 | * infrun.c (struct stop_context): Declare constructor, | |
3009 | destructor, "changed" method. | |
3010 | (stop_context::stop_context): Rename from save_stop_context. | |
3011 | (stop_context::~stop_context): Rename from | |
3012 | release_stop_context_cleanup. | |
3013 | (normal_stop): Update. | |
3014 | (stop_context::changed): Rename from stop_context_changed. Return | |
3015 | bool. | |
3016 | ||
c7c4d3fa TT |
3017 | 2018-09-17 Tom Tromey <tom@tromey.com> |
3018 | ||
3019 | * inferior.h (struct infcall_suspend_state_deleter): New. | |
3020 | (infcall_suspend_state_up): New typedef. | |
3021 | (struct infcall_control_state_deleter): New. | |
3022 | (infcall_control_state_up): New typedef. | |
3023 | (make_cleanup_restore_infcall_suspend_state) | |
3024 | (make_cleanup_restore_infcall_control_state): Don't declare. | |
3025 | * infcall.c (call_function_by_hand_dummy): Update. | |
3026 | * infrun.c (do_restore_infcall_suspend_state_cleanup) | |
3027 | (make_cleanup_restore_infcall_suspend_state): Remove. | |
3028 | (do_restore_infcall_control_state_cleanup) | |
3029 | (make_cleanup_restore_infcall_control_state): Remove. | |
3030 | ||
ee841dd8 TT |
3031 | 2018-09-17 Tom Tromey <tom@tromey.com> |
3032 | ||
3033 | * gdbthread.h (struct thread_control_state): Add initializer. | |
3034 | (class thread_info) <control>: Remove initializer. | |
3035 | * inferior.h (struct inferior_control_state): Add initializer. | |
3036 | (class inferior) <control>: Remove initializer. | |
3037 | (exit_inferior_1): Update. | |
3038 | * infrun.c (struct infcall_control_state): Add constructors. | |
3039 | (save_infcall_control_state): Use new. | |
3040 | (restore_infcall_control_state, discard_infcall_control_state): | |
3041 | Use delete. | |
3042 | ||
117f580a TT |
3043 | 2018-09-17 Tom Tromey <tom@tromey.com> |
3044 | ||
3045 | * infrun.c (struct infcall_suspend_state) <registers>: Now a | |
3046 | unique_ptr. | |
3047 | <siginfo_data>: Now a unique_xmalloc_ptr. | |
3048 | (save_infcall_suspend_state, restore_infcall_suspend_state) | |
3049 | (discard_infcall_suspend_state) | |
3050 | (get_infcall_suspend_state_regcache): Update. | |
3051 | ||
dd848631 TT |
3052 | 2018-09-17 Tom Tromey <tom@tromey.com> |
3053 | ||
3054 | * gdbthread.h (struct thread_suspend_state): Add initializers. | |
3055 | (class thread_info) <suspend>: Remove initializer. | |
3056 | * infrun.c (struct infcall_suspend_state): Add initializers. | |
3057 | (save_infcall_suspend_state): Use new. | |
3058 | (discard_infcall_suspend_state): Use delete. | |
3059 | ||
1a338907 TT |
3060 | 2018-09-16 Tom Tromey <tom@tromey.com> |
3061 | ||
3062 | * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG): | |
3063 | Remove. | |
3064 | * python/py-varobj.c (py_varobj_iter_ctor): Change pyiter to | |
3065 | rvalue reference. Remove CPYCHECKER_STEALS_REFERENCE_TO_ARG. | |
3066 | (py_varobj_iter_new): Likewise. | |
3067 | (py_varobj_get_iterator): Use gdbpy_ref. | |
3068 | ||
4a137fec TT |
3069 | 2018-09-16 Tom Tromey <tom@tromey.com> |
3070 | ||
3071 | * python/py-threadevent.c (py_get_event_thread): Simplify. | |
3072 | * python/py-inferior.c (infpy_thread_from_thread_handle): | |
3073 | Return immediately after calling thread_to_thread_object. Use | |
3074 | Py_RETURN_NONE. | |
3075 | (thread_to_thread_object): Set the exception on a NULL return. | |
3076 | ||
8ff03f0b SM |
3077 | 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca> |
3078 | ||
3079 | * Makefile.in (LIBGDB_OBS): Sort COMMON_OBS. | |
3080 | ||
94c8b725 TT |
3081 | 2018-09-16 Tom Tromey <tom@tromey.com> |
3082 | ||
3083 | * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF): | |
3084 | Remove. | |
3085 | ||
db1337cc TT |
3086 | 2018-09-16 Tom Tromey <tom@tromey.com> |
3087 | ||
3088 | * python/python-internal.h (thread_to_thread_object): Change | |
3089 | return type. | |
3090 | * python/py-inferior.c (thread_to_thread_object): Return a new | |
3091 | reference. | |
3092 | (infpy_thread_from_thread_handle): Update. | |
3093 | * python/py-infthread.c (gdbpy_selected_thread): Update. | |
3094 | * python/py-stopevent.c (create_stop_event_object): Update. | |
3095 | * python/py-threadevent.c (py_get_event_thread): Return a new | |
3096 | reference. | |
3097 | (py_get_event_thread): Update. | |
3098 | * python/py-event.h (py_get_event_thread): Change return type. | |
3099 | * python/py-continueevent.c (create_continue_event_object): | |
3100 | Update. | |
3101 | ||
0a9db5ad TT |
3102 | 2018-09-16 Tom Tromey <tom@tromey.com> |
3103 | ||
3104 | * python/py-progspace.c (pspy_get_objfiles): Update. | |
3105 | * python/python-internal.h (objfile_to_objfile_object): Change | |
3106 | return type. | |
3107 | * python/py-newobjfileevent.c (create_new_objfile_event_object): | |
3108 | Update. | |
3109 | * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): | |
3110 | Update. | |
3111 | * python/python.c (gdbpy_get_current_objfile): Update. | |
3112 | (gdbpy_objfiles): Update. | |
3113 | * python/py-objfile.c (objfpy_get_owner, gdbpy_lookup_objfile): | |
3114 | Update. | |
3115 | (objfile_to_objfile_object): Return a new reference. | |
3116 | * python/py-symtab.c (stpy_get_objfile): Update. | |
3117 | * python/py-prettyprint.c (find_pretty_printer_from_objfiles): | |
3118 | Update. | |
3119 | ||
3c7aa307 TT |
3120 | 2018-09-16 Tom Tromey <tom@tromey.com> |
3121 | ||
3122 | * python/py-inferior.c (infpy_get_progspace): Update. | |
3123 | * python/python-internal.h (pspace_to_pspace_object): Change | |
3124 | return type. | |
3125 | * python/py-newobjfileevent.c | |
3126 | (create_clear_objfiles_event_object): Update. | |
3127 | * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): | |
3128 | Update. | |
3129 | * python/python.c (gdbpy_get_current_progspace): Update. | |
3130 | (gdbpy_progspaces): Update. | |
3131 | * python/py-progspace.c (pspace_to_pspace_object): Return a new | |
3132 | reference. | |
3133 | * python/py-objfile.c (objfpy_get_progspace): Update. | |
3134 | * python/py-prettyprint.c (find_pretty_printer_from_progspace): | |
3135 | Update. | |
3136 | ||
8743a9cd TT |
3137 | 2018-09-16 Tom Tromey <tom@tromey.com> |
3138 | ||
3139 | * python/lib/gdb/__init__.py (current_progspace, objfiles) | |
3140 | (solib_name, block_for_pc, find_pc_line): New functions. | |
3141 | (execute_unwinders): Update. | |
3142 | * python/py-block.c (gdbpy_block_for_pc): Remove. | |
3143 | * python/py-inferior.c (infpy_get_progspace): New function. | |
3144 | (inferior_object_getset) <progspace>: Add. | |
3145 | * python/py-progspace.c (pspy_objfiles): Rewrite. | |
3146 | (pspy_solib_name, pspy_block_for_pc) | |
3147 | (pspy_find_pc_line, pspy_is_valid): New functions. | |
3148 | (progspace_object_methods): Add entries for solib_name, | |
3149 | block_for_pc, find_pc_line, is_valid. | |
3150 | * python/python-internal.h (gdbpy_block_for_pc) | |
3151 | (build_objfiles_list): Don't declare. | |
3152 | * python/python.c: Don't include solib.h. | |
3153 | (gdbpy_solib_name, gdbpy_find_pc_line) | |
3154 | (gdbpy_get_current_progspace, build_objfiles_list) | |
3155 | (gdbpy_objfiles): Remove. | |
3156 | (GdbMethods) <current_progspace, objfiles, block_for_pc, | |
3157 | solib_name, find_pc_line>: Remove entries. | |
3158 | ||
65e65158 TT |
3159 | 2018-09-16 Tom Tromey <tom@tromey.com> |
3160 | ||
3161 | * top.c (new_ui_command): Use GNU style for metasyntactic | |
3162 | variables. | |
3163 | * breakpoint.c (stopat_command): Use GNU style for metasyntactic | |
3164 | variables. | |
3165 | * maint.c (maintenance_translate_address): Remove "<>" around | |
3166 | text. | |
3167 | * interps.c (interpreter_exec_cmd): Use GNU style for | |
3168 | metasyntactic variables. | |
3169 | * nto-procfs.c (nto_procfs_target_info): Use GNU style for | |
3170 | metasyntactic variables. | |
3171 | * tracepoint.c (tfind_range_command): Use GNU style for | |
3172 | metasyntactic variables. | |
3173 | (tfind_outside_command): Likewise. | |
3174 | (_initialize_tracepoint): Likewise. | |
3175 | * remote.c (extended_remote_target::create_inferior): Use GNU | |
3176 | style for metasyntactic variables. | |
3177 | * sparc64-tdep.c (adi_examine_command): Use GNU style for | |
3178 | metasyntactic variables. | |
3179 | (adi_assign_command): Likewise. | |
3180 | ||
f4bab6ff TT |
3181 | 2018-09-16 Tom Tromey <tom@tromey.com> |
3182 | ||
3183 | * disasm.c (show_disassembler_options_sfunc): Use GNU style for | |
3184 | metasyntactic variables. Print message if no disassembler options | |
3185 | are available. | |
3186 | ||
cbaaa0ca TT |
3187 | 2018-09-15 Tom Tromey <tom@tromey.com> |
3188 | ||
3189 | * infcmd.c (get_inferior_args): Return const char *. | |
3190 | * inferior.h (get_inferior_args): Return type now const. | |
3191 | * linux-tdep.c (linux_fill_prpsinfo): Update. | |
3192 | * procfs.c (procfs_target::make_corefile_notes): Update. | |
3193 | ||
a3a6aef4 TT |
3194 | 2018-09-07 Tom Tromey <tom@tromey.com> |
3195 | ||
3196 | * python/python.c (execute_gdb_command): Call bpstat_do_actions | |
3197 | inside the TRY. | |
3198 | ||
f70e088f SL |
3199 | 2018-09-14 Sandra Loosemore <sandra@codesourcery.com> |
3200 | ||
3201 | * nios2-tdep.c (nios2_type_align): New. | |
3202 | (nios2_gdb_arch_init): Install type_align hook. | |
3203 | ||
2fabdf33 AB |
3204 | 2018-09-10 Andrew Burgess <andrew.burgess@embecosm.com> |
3205 | ||
3206 | * eval.c (fake_method::fake_method): Call xzalloc directly for a | |
3207 | type that is neither object file owned, nor gdbarch owned. | |
3208 | * gdbtypes.c (get_type_gdbarch): Add an assert that returned | |
3209 | gdbarch is non-NULL. | |
3210 | (alloc_type_instance): Allocate non-objfile owned types on the | |
3211 | gdbarch obstack. | |
3212 | (copy_type_recursive): Allocate TYPE_FIELDS and TYPE_RANGE_DATA | |
3213 | using TYPE_ALLOC to ensure memory is allocated on the correct | |
3214 | obstack. | |
3215 | * gdbtypes.h (TYPE_ALLOC): Allocate space on either the objfile | |
3216 | obstack, or the gdbarch obstack. | |
3217 | (TYPE_ZALLOC): Rewrite using TYPE_ALLOC. | |
3218 | ||
b4b08fa2 TT |
3219 | 2018-09-14 Tom Tromey <tom@tromey.com> |
3220 | ||
3221 | * infcall.c (call_function_by_hand_dummy): Remove unnecessary | |
3222 | block. | |
3223 | ||
87b240d4 TT |
3224 | 2018-09-14 Tom Tromey <tom@tromey.com> |
3225 | ||
3226 | * nat/fork-inferior.c (get_startup_shell): Remove "static". | |
3227 | ||
7d221512 TT |
3228 | 2018-09-13 Tom Tromey <tom@tromey.com> |
3229 | ||
3230 | * python/py-inferior.c (infpy_thread_from_thread_handle): Now | |
3231 | static. | |
3232 | ||
97e67fc6 TT |
3233 | 2018-09-13 Tom Tromey <tom@tromey.com> |
3234 | ||
3235 | * exec.c (try_open_exec_file): Use std::string. | |
3236 | ||
803c08d0 TT |
3237 | 2018-09-13 Tom Tromey <tom@tromey.com> |
3238 | ||
3239 | * utils.h (gdb_bfd_errmsg): Return std::string. | |
3240 | * exec.c (exec_file_attach): Update. | |
3241 | * compile/compile-object-load.c (compile_object_load): Update. | |
3242 | * utils.c (gdb_bfd_errmsg): Return std::string. | |
3243 | ||
5b4cbbe3 TT |
3244 | 2018-09-13 Tom Tromey <tom@tromey.com> |
3245 | ||
3246 | * procfs.c (struct procinfo_deleter): New. | |
3247 | (procinfo_up): New typedef. | |
3248 | (do_destroy_procinfo_cleanup): Remove. | |
3249 | (procfs_target::info_proc): Use procinfo_up. Remove cleanups. | |
3250 | ||
db68fbe2 TT |
3251 | 2018-09-13 Tom Tromey <tom@tromey.com> |
3252 | ||
3253 | * source.c (add_path): Use gdb::unique_xmalloc_ptr. | |
3254 | ||
0ae1a321 SM |
3255 | 2018-09-13 Simon Marchi <simon.marchi@ericsson.com> |
3256 | 2018-09-13 Tom Tromey <tom@tromey.com> | |
3257 | ||
3258 | * python/py-progspace.c (PSPY_REQUIRE_VALID): New macro. | |
3259 | (pspy_get_objfiles): New function. | |
3260 | (progspace_object_methods): New. | |
3261 | (pspace_object_type): Add tp_methods callback. | |
3262 | * python/python-internal.h (build_objfiles_list): New | |
3263 | declaration. | |
3264 | * python/python.c (build_objfiles_list): New function. | |
3265 | (gdbpy_objfiles): Implement using build_objfiles_list. | |
3266 | * NEWS: Mention the Progspace.objfiles method. | |
3267 | ||
a40bf0c2 SM |
3268 | 2018-09-13 Simon Marchi <simon.marchi@ericsson.com> |
3269 | ||
3270 | * python/py-inferior.c (infpy_get_progspace): New function. | |
3271 | (inferior_object_getset): Add progspace property. | |
3272 | * NEWS: Mention the new property. | |
3273 | ||
4a3fe98f TT |
3274 | 2018-09-13 Tom Tromey <tom@tromey.com> |
3275 | ||
3276 | PR rust/23650: | |
3277 | * rust-lang.c (rust_evaluate_subexp): Use field name, not "foo". | |
3278 | ||
098b2108 TT |
3279 | 2018-09-13 Tom Tromey <tom@tromey.com> |
3280 | ||
3281 | PR rust/23626: | |
3282 | * rust-lang.c (rust_enum_variant): Now static. | |
3283 | (rust_empty_enum_p): New function. | |
3284 | (rust_print_enum, rust_evaluate_subexp, rust_print_struct_def): | |
3285 | Handle empty enum. | |
3286 | ||
1256af7d SM |
3287 | 2018-09-13 Simon Marchi <simon.marchi@ericsson.com> |
3288 | ||
3289 | * python/py-inferior.c (infpy_repr): New. | |
3290 | (inferior_object_type): Register infpy_repr. | |
3291 | * python/py-objfile.c (objfpy_repr): New. | |
3292 | (objfile_object_type): Register objfpy_repr. | |
3293 | ||
f117a62c JB |
3294 | 2018-09-12 John Baldwin <jhb@FreeBSD.org> |
3295 | ||
3296 | * fbsd-nat.c (fbsd_nat_target::info_proc): Remove unused variable. | |
3297 | ||
88f22c34 JB |
3298 | 2018-09-12 John Baldwin <jhb@FreeBSD.org> |
3299 | ||
3300 | * aarch64-fbsd-tdep.h (AARCH64_FBSD_SIZEOF_GREGSET): Fix comment | |
3301 | typo. | |
3302 | ||
3c025cfe SDJ |
3303 | 2018-09-12 Sergio Durigan Junior <sergiodj@redhat.com> |
3304 | ||
3305 | * common/common-utils.c: Don't include '<sys/stat.h>'. | |
3306 | (is_regular_file): Move to... | |
3307 | * common/filestuff.c (is_regular_file): ... here. | |
3308 | * common/common-utils.h (is_regular_file): Move to... | |
3309 | * common/filestuff.h (is_regular_file): ... here. | |
3310 | ||
3e68067f SM |
3311 | 2018-09-12 Simon Marchi <simon.marchi@ericsson.com> |
3312 | ||
3313 | * skip.c (debug_skip): New variable. | |
3314 | (skiplist_entry::do_skip_file_p): Add debug output. | |
3315 | (skiplist_entry::do_skip_gfile_p): Likewise. | |
3316 | (skiplist_entry::skip_function_p): Likewise. | |
3317 | (_initialize_step_skip): Create debug command. | |
3318 | * NEWS: Mention set/show debug skip. | |
3319 | ||
d6be54ef XR |
3320 | 2018-09-11 Xavier Roirand <roirand@adacore.com> |
3321 | ||
3322 | * darwin-nat.c (should_disable_startup_with_shell): | |
3323 | New function. | |
3324 | (darwin_nat_target::create_inferior): Add call. | |
3325 | ||
de1ec836 XR |
3326 | 2018-09-11 Xavier Roirand <roirand@adacore.com> |
3327 | ||
3328 | * darwin-nat.h (struct darwin_thread_info) <gdb_port, | |
3329 | inf_port, msg_state>: Initialize. | |
3330 | (struct darwin_thread_info) <signaled, single_step>: Change | |
3331 | type and initialize. | |
3332 | (struct darwin_thread_info) <event>: Initialize. | |
3333 | ||
e2fc52e7 SDJ |
3334 | 2018-09-10 Sergio Durigan Junior <sergiodj@redhat.com> |
3335 | ||
3336 | PR gdb/23555 | |
3337 | PR gdb/23558 | |
3338 | * gnulib/import/m4/getcwd-path-max.m4: Add cross-compilation | |
3339 | guesses. | |
3340 | ||
5e8754f9 SDJ |
3341 | 2018-09-10 Sergio Durigan Junior <sergiodj@redhat.com> |
3342 | ||
3343 | Revert: | |
3344 | 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com> | |
3345 | ||
3346 | PR gdb/23555 | |
3347 | PR gdb/23558 | |
3348 | * gnulib/aclocal.m4: Regenerate. | |
3349 | * gnulib/config.in: Regenerate. | |
3350 | * gnulib/configure: Regenerate. | |
3351 | * gnulib/import/Makefile.am: Update. | |
3352 | * gnulib/import/Makefile.in: Update. | |
3353 | * gnulib/import/extra/snippet/_Noreturn.h: Rename to... | |
3354 | * gnulib/import/_Noreturn.h: ... this. | |
3355 | * gnulib/import/alloca.in.h: Update. | |
3356 | * gnulib/import/extra/snippet/arg-nonnull.h: Rename to... | |
3357 | * gnulib/import/arg-nonnull.h: ... this. | |
3358 | * gnulib/import/assure.h: Update. | |
3359 | * gnulib/import/at-func.c: Update. | |
3360 | * gnulib/import/basename-lgpl.c: Update. | |
3361 | * gnulib/import/extra/snippet/c++defs.h: Rename to... | |
3362 | * gnulib/import/c++defs.h: ... this. | |
3363 | * gnulib/import/canonicalize-lgpl.c: Update. | |
3364 | * gnulib/import/cdefs.h: Update. | |
3365 | * gnulib/import/chdir-long.c: Update. | |
3366 | * gnulib/import/chdir-long.h: Update. | |
3367 | * gnulib/import/cloexec.c: Update. | |
3368 | * gnulib/import/cloexec.h: Update. | |
3369 | * gnulib/import/close.c: Update. | |
3370 | * gnulib/import/closedir.c: Update. | |
3371 | * gnulib/import/config.charset: Update. | |
3372 | * gnulib/import/dirent-private.h: Update. | |
3373 | * gnulib/import/dirent.in.h: Update. | |
3374 | * gnulib/import/dirfd.c: Update. | |
3375 | * gnulib/import/dirname-lgpl.c: Update. | |
3376 | * gnulib/import/dirname.h: Update. | |
3377 | * gnulib/import/dosname.h: Update. | |
3378 | * gnulib/import/dup-safer-flag.c: Update. | |
3379 | * gnulib/import/dup-safer.c: Update. | |
3380 | * gnulib/import/dup.c: Update. | |
3381 | * gnulib/import/dup2.c: Update. | |
3382 | * gnulib/import/errno.in.h: Update. | |
3383 | * gnulib/import/error.c: Update. | |
3384 | * gnulib/import/error.h: Update. | |
3385 | * gnulib/import/exitfail.c: Update. | |
3386 | * gnulib/import/exitfail.h: Update. | |
3387 | * gnulib/import/extra/update-copyright: Update. | |
3388 | * gnulib/import/fchdir.c: Update. | |
3389 | * gnulib/import/fcntl.c: Update. | |
3390 | * gnulib/import/fcntl.in.h: Update. | |
3391 | * gnulib/import/fd-hook.c: Update. | |
3392 | * gnulib/import/fd-hook.h: Update. | |
3393 | * gnulib/import/fd-safer-flag.c: Update. | |
3394 | * gnulib/import/fd-safer.c: Update. | |
3395 | * gnulib/import/fdopendir.c: Update. | |
3396 | * gnulib/import/filename.h: Update. | |
3397 | * gnulib/import/filenamecat-lgpl.c: Update. | |
3398 | * gnulib/import/filenamecat.h: Update. | |
3399 | * gnulib/import/flexmember.h: Update. | |
3400 | * gnulib/import/float+.h: Update. | |
3401 | * gnulib/import/float.c: Update. | |
3402 | * gnulib/import/float.in.h: Update. | |
3403 | * gnulib/import/fnmatch.c: Update. | |
3404 | * gnulib/import/fnmatch.in.h: Update. | |
3405 | * gnulib/import/fnmatch_loop.c: Update. | |
3406 | * gnulib/import/fpucw.h: Update. | |
3407 | * gnulib/import/frexp.c: Update. | |
3408 | * gnulib/import/frexpl.c: Update. | |
3409 | * gnulib/import/fstat.c: Update. | |
3410 | * gnulib/import/fstatat.c: Update. | |
3411 | * gnulib/import/getcwd-lgpl.c: Update. | |
3412 | * gnulib/import/getcwd.c: Update. | |
3413 | * gnulib/import/getdtablesize.c: Update. | |
3414 | * gnulib/import/getlogin_r.c: Update. | |
3415 | * gnulib/import/getprogname.c: Update. | |
3416 | * gnulib/import/getprogname.h: Update. | |
3417 | * gnulib/import/gettext.h: Update. | |
3418 | * gnulib/import/gettimeofday.c: Update. | |
3419 | * gnulib/import/glob-libc.h: Update. | |
3420 | * gnulib/import/glob.c: Update. | |
3421 | * gnulib/import/glob.in.h: Update. | |
3422 | * gnulib/import/glob_internal.h: Update. | |
3423 | * gnulib/import/glob_pattern_p.c: Update. | |
3424 | * gnulib/import/globfree.c: Update. | |
3425 | * gnulib/import/hard-locale.c: Update. | |
3426 | * gnulib/import/hard-locale.h: Update. | |
3427 | * gnulib/import/intprops.h: Update. | |
3428 | * gnulib/import/inttypes.in.h: Update. | |
3429 | * gnulib/import/isnan.c: Update. | |
3430 | * gnulib/import/isnand-nolibm.h: Update. | |
3431 | * gnulib/import/isnand.c: Update. | |
3432 | * gnulib/import/isnanl-nolibm.h: Update. | |
3433 | * gnulib/import/isnanl.c: Update. | |
3434 | * gnulib/import/itold.c: Update. | |
3435 | * gnulib/import/libc-config.h: Update. | |
3436 | * gnulib/import/limits.in.h: Update. | |
3437 | * gnulib/import/localcharset.c: Update. | |
3438 | * gnulib/import/localcharset.h: Update. | |
3439 | * gnulib/import/localtime-buffer.c: Update. | |
3440 | * gnulib/import/localtime-buffer.h: Update. | |
3441 | * gnulib/import/lstat.c: Update. | |
3442 | * gnulib/import/m4/00gnulib.m4: Update. | |
3443 | * gnulib/import/m4/__inline.m4: Update. | |
3444 | * gnulib/import/m4/absolute-header.m4: Update. | |
3445 | * gnulib/import/m4/alloca.m4: Update. | |
3446 | * gnulib/import/m4/builtin-expect.m4: Update. | |
3447 | * gnulib/import/m4/canonicalize.m4: Update. | |
3448 | * gnulib/import/m4/chdir-long.m4: Update. | |
3449 | * gnulib/import/m4/close.m4: Update. | |
3450 | * gnulib/import/m4/closedir.m4: Update. | |
3451 | * gnulib/import/m4/configmake.m4: Update. | |
3452 | * gnulib/import/m4/d-ino.m4: Update. | |
3453 | * gnulib/import/m4/d-type.m4: Update. | |
3454 | * gnulib/import/m4/dirent_h.m4: Update. | |
3455 | * gnulib/import/m4/dirfd.m4: Update. | |
3456 | * gnulib/import/m4/dirname.m4: Update. | |
3457 | * gnulib/import/m4/double-slash-root.m4: Update. | |
3458 | * gnulib/import/m4/dup.m4: Update. | |
3459 | * gnulib/import/m4/dup2.m4: Update. | |
3460 | * gnulib/import/m4/eealloc.m4: Update. | |
3461 | * gnulib/import/m4/environ.m4: Update. | |
3462 | * gnulib/import/m4/errno_h.m4: Update. | |
3463 | * gnulib/import/m4/error.m4: Update. | |
3464 | * gnulib/import/m4/exponentd.m4: Update. | |
3465 | * gnulib/import/m4/exponentl.m4: Update. | |
3466 | * gnulib/import/m4/extensions.m4: Update. | |
3467 | * gnulib/import/m4/extern-inline.m4: Update. | |
3468 | * gnulib/import/m4/fchdir.m4: Update. | |
3469 | * gnulib/import/m4/fcntl-o.m4: Update. | |
3470 | * gnulib/import/m4/fcntl.m4: Update. | |
3471 | * gnulib/import/m4/fcntl_h.m4: Update. | |
3472 | * gnulib/import/m4/fdopendir.m4: Update. | |
3473 | * gnulib/import/m4/filenamecat.m4: Update. | |
3474 | * gnulib/import/m4/flexmember.m4: Update. | |
3475 | * gnulib/import/m4/float_h.m4: Update. | |
3476 | * gnulib/import/m4/fnmatch.m4: Update. | |
3477 | * gnulib/import/m4/fnmatch_h.m4: Update. | |
3478 | * gnulib/import/m4/fpieee.m4: Update. | |
3479 | * gnulib/import/m4/frexp.m4: Update. | |
3480 | * gnulib/import/m4/frexpl.m4: Update. | |
3481 | * gnulib/import/m4/fstat.m4: Update. | |
3482 | * gnulib/import/m4/fstatat.m4: Update. | |
3483 | * gnulib/import/m4/getcwd-abort-bug.m4: Update. | |
3484 | * gnulib/import/m4/getcwd-path-max.m4: Update. | |
3485 | * gnulib/import/m4/getcwd.m4: Update. | |
3486 | * gnulib/import/m4/getdtablesize.m4: Update. | |
3487 | * gnulib/import/m4/getlogin.m4: Update. | |
3488 | * gnulib/import/m4/getlogin_r.m4: Update. | |
3489 | * gnulib/import/m4/getpagesize.m4: Update. | |
3490 | * gnulib/import/m4/getprogname.m4: Update. | |
3491 | * gnulib/import/m4/gettimeofday.m4: Update. | |
3492 | * gnulib/import/m4/glibc21.m4: Update. | |
3493 | * gnulib/import/m4/glob.m4: Update. | |
3494 | * gnulib/import/m4/glob_h.m4: Update. | |
3495 | * gnulib/import/m4/gnulib-cache.m4: Update. | |
3496 | * gnulib/import/m4/gnulib-common.m4: Update. | |
3497 | * gnulib/import/m4/gnulib-comp.m4: Update. | |
3498 | * gnulib/import/m4/gnulib-tool.m4: Update. | |
3499 | * gnulib/import/m4/hard-locale.m4: Update. | |
3500 | * gnulib/import/m4/include_next.m4: Update. | |
3501 | * gnulib/import/m4/inttypes-pri.m4: Update. | |
3502 | * gnulib/import/m4/inttypes.m4: Update. | |
3503 | * gnulib/import/m4/isnand.m4: Update. | |
3504 | * gnulib/import/m4/isnanl.m4: Update. | |
3505 | * gnulib/import/m4/largefile.m4: Update. | |
3506 | * gnulib/import/m4/limits-h.m4: Update. | |
3507 | * gnulib/import/m4/localcharset.m4: Update. | |
3508 | * gnulib/import/m4/locale-fr.m4: Update. | |
3509 | * gnulib/import/m4/locale-ja.m4: Update. | |
3510 | * gnulib/import/m4/locale-zh.m4: Update. | |
3511 | * gnulib/import/m4/localtime-buffer.m4: Update. | |
3512 | * gnulib/import/m4/longlong.m4: Update. | |
3513 | * gnulib/import/m4/lstat.m4: Update. | |
3514 | * gnulib/import/m4/malloc.m4: Update. | |
3515 | * gnulib/import/m4/malloca.m4: Update. | |
3516 | * gnulib/import/m4/math_h.m4: Update. | |
3517 | * gnulib/import/m4/mbrtowc.m4: Update. | |
3518 | * gnulib/import/m4/mbsinit.m4: Update. | |
3519 | * gnulib/import/m4/mbsrtowcs.m4: Update. | |
3520 | * gnulib/import/m4/mbstate_t.m4: Update. | |
3521 | * gnulib/import/m4/memchr.m4: Update. | |
3522 | * gnulib/import/m4/memmem.m4: Update. | |
3523 | * gnulib/import/m4/mempcpy.m4: Update. | |
3524 | * gnulib/import/m4/memrchr.m4: Update. | |
3525 | * gnulib/import/m4/mkdir.m4: Update. | |
3526 | * gnulib/import/m4/mkstemp.m4: Update. | |
3527 | * gnulib/import/m4/mmap-anon.m4: Update. | |
3528 | * gnulib/import/m4/mode_t.m4: Update. | |
3529 | * gnulib/import/m4/msvc-inval.m4: Update. | |
3530 | * gnulib/import/m4/msvc-nothrow.m4: Update. | |
3531 | * gnulib/import/m4/multiarch.m4: Update. | |
3532 | * gnulib/import/m4/nocrash.m4: Update. | |
3533 | * gnulib/import/m4/off_t.m4: Update. | |
3534 | * gnulib/import/m4/onceonly.m4: Update. | |
3535 | * gnulib/import/m4/open-cloexec.m4: Update. | |
3536 | * gnulib/import/m4/open.m4: Update. | |
3537 | * gnulib/import/m4/openat.m4: Update. | |
3538 | * gnulib/import/m4/opendir.m4: Update. | |
3539 | * gnulib/import/m4/pathmax.m4: Update. | |
3540 | * gnulib/import/m4/rawmemchr.m4: Update. | |
3541 | * gnulib/import/m4/readdir.m4: Update. | |
3542 | * gnulib/import/m4/readlink.m4: Update. | |
3543 | * gnulib/import/m4/realloc.m4: Update. | |
3544 | * gnulib/import/m4/rename.m4: Update. | |
3545 | * gnulib/import/m4/rewinddir.m4: Update. | |
3546 | * gnulib/import/m4/rmdir.m4: Update. | |
3547 | * gnulib/import/m4/save-cwd.m4: Update. | |
3548 | * gnulib/import/m4/secure_getenv.m4: Update. | |
3549 | * gnulib/import/m4/setenv.m4: Update. | |
3550 | * gnulib/import/m4/signal_h.m4: Update. | |
3551 | * gnulib/import/m4/ssize_t.m4: Update. | |
3552 | * gnulib/import/m4/stat-time.m4: Update. | |
3553 | * gnulib/import/m4/stat.m4: Update. | |
3554 | * gnulib/import/m4/std-gnu11.m4: Update. | |
3555 | * gnulib/import/m4/stdbool.m4: Update. | |
3556 | * gnulib/import/m4/stddef_h.m4: Update. | |
3557 | * gnulib/import/m4/stdint.m4: Update. | |
3558 | * gnulib/import/m4/stdio_h.m4: Update. | |
3559 | * gnulib/import/m4/stdlib_h.m4: Update. | |
3560 | * gnulib/import/m4/strchrnul.m4: Update. | |
3561 | * gnulib/import/m4/strdup.m4: Update. | |
3562 | * gnulib/import/m4/strerror.m4: Update. | |
3563 | * gnulib/import/m4/string_h.m4: Update. | |
3564 | * gnulib/import/m4/strstr.m4: Update. | |
3565 | * gnulib/import/m4/strtok_r.m4: Update. | |
3566 | * gnulib/import/m4/sys_socket_h.m4: Update. | |
3567 | * gnulib/import/m4/sys_stat_h.m4: Update. | |
3568 | * gnulib/import/m4/sys_time_h.m4: Update. | |
3569 | * gnulib/import/m4/sys_types_h.m4: Update. | |
3570 | * gnulib/import/m4/tempname.m4: Update. | |
3571 | * gnulib/import/m4/time_h.m4: Update. | |
3572 | * gnulib/import/m4/unistd-safer.m4: Update. | |
3573 | * gnulib/import/m4/unistd_h.m4: Update. | |
3574 | * gnulib/import/m4/warn-on-use.m4: Update. | |
3575 | * gnulib/import/m4/wchar_h.m4: Update. | |
3576 | * gnulib/import/m4/wchar_t.m4: Update. | |
3577 | * gnulib/import/m4/wctype_h.m4: Update. | |
3578 | * gnulib/import/m4/wint_t.m4: Update. | |
3579 | * gnulib/import/malloc.c: Update. | |
3580 | * gnulib/import/malloc/scratch_buffer.h: Update. | |
3581 | * gnulib/import/malloc/scratch_buffer_grow.c: Update. | |
3582 | * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update. | |
3583 | * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update. | |
3584 | * gnulib/import/malloca.c: Update. | |
3585 | * gnulib/import/malloca.h: Update. | |
3586 | * gnulib/import/malloca.valgrind: Update. | |
3587 | * gnulib/import/math.in.h: Update. | |
3588 | * gnulib/import/mbrtowc.c: Update. | |
3589 | * gnulib/import/mbsinit.c: Update. | |
3590 | * gnulib/import/mbsrtowcs-impl.h: Update. | |
3591 | * gnulib/import/mbsrtowcs-state.c: Update. | |
3592 | * gnulib/import/mbsrtowcs.c: Update. | |
3593 | * gnulib/import/memchr.c: Update. | |
3594 | * gnulib/import/memmem.c: Update. | |
3595 | * gnulib/import/mempcpy.c: Update. | |
3596 | * gnulib/import/memrchr.c: Update. | |
3597 | * gnulib/import/mkdir.c: Update. | |
3598 | * gnulib/import/mkstemp.c: Update. | |
3599 | * gnulib/import/msvc-inval.c: Update. | |
3600 | * gnulib/import/msvc-inval.h: Update. | |
3601 | * gnulib/import/msvc-nothrow.c: Update. | |
3602 | * gnulib/import/msvc-nothrow.h: Update. | |
3603 | * gnulib/import/open.c: Update. | |
3604 | * gnulib/import/openat-die.c: Update. | |
3605 | * gnulib/import/openat-priv.h: Update. | |
3606 | * gnulib/import/openat-proc.c: Update. | |
3607 | * gnulib/import/openat.c: Update. | |
3608 | * gnulib/import/openat.h: Update. | |
3609 | * gnulib/import/opendir.c: Update. | |
3610 | * gnulib/import/pathmax.h: Update. | |
3611 | * gnulib/import/pipe-safer.c: Update. | |
3612 | * gnulib/import/rawmemchr.c: Update. | |
3613 | * gnulib/import/readdir.c: Update. | |
3614 | * gnulib/import/readlink.c: Update. | |
3615 | * gnulib/import/realloc.c: Update. | |
3616 | * gnulib/import/ref-add.sin: Update. | |
3617 | * gnulib/import/ref-del.sin: Update. | |
3618 | * gnulib/import/rename.c: Update. | |
3619 | * gnulib/import/rewinddir.c: Update. | |
3620 | * gnulib/import/rmdir.c: Update. | |
3621 | * gnulib/import/same-inode.h: Update. | |
3622 | * gnulib/import/save-cwd.c: Update. | |
3623 | * gnulib/import/save-cwd.h: Update. | |
3624 | * gnulib/import/scratch_buffer.h: Update. | |
3625 | * gnulib/import/secure_getenv.c: Update. | |
3626 | * gnulib/import/setenv.c: Update. | |
3627 | * gnulib/import/signal.in.h: Update. | |
3628 | * gnulib/import/stat-time.c: Update. | |
3629 | * gnulib/import/stat-time.h: Update. | |
3630 | * gnulib/import/stat-w32.c: Update. | |
3631 | * gnulib/import/stat-w32.h: Update. | |
3632 | * gnulib/import/stat.c: Update. | |
3633 | * gnulib/import/stdbool.in.h: Update. | |
3634 | * gnulib/import/stddef.in.h: Update. | |
3635 | * gnulib/import/stdint.in.h: Update. | |
3636 | * gnulib/import/stdio.in.h: Update. | |
3637 | * gnulib/import/stdlib.in.h: Update. | |
3638 | * gnulib/import/str-two-way.h: Update. | |
3639 | * gnulib/import/strchrnul.c: Update. | |
3640 | * gnulib/import/strdup.c: Update. | |
3641 | * gnulib/import/streq.h: Update. | |
3642 | * gnulib/import/strerror-override.c: Update. | |
3643 | * gnulib/import/strerror-override.h: Update. | |
3644 | * gnulib/import/strerror.c: Update. | |
3645 | * gnulib/import/string.in.h: Update. | |
3646 | * gnulib/import/stripslash.c: Update. | |
3647 | * gnulib/import/strnlen1.c: Update. | |
3648 | * gnulib/import/strnlen1.h: Update. | |
3649 | * gnulib/import/strstr.c: Update. | |
3650 | * gnulib/import/strtok_r.c: Update. | |
3651 | * gnulib/import/sys_stat.in.h: Update. | |
3652 | * gnulib/import/sys_time.in.h: Update. | |
3653 | * gnulib/import/sys_types.in.h: Update. | |
3654 | * gnulib/import/tempname.c: Update. | |
3655 | * gnulib/import/tempname.h: Update. | |
3656 | * gnulib/import/time.in.h: Update. | |
3657 | * gnulib/import/unistd--.h: Update. | |
3658 | * gnulib/import/unistd-safer.h: Update. | |
3659 | * gnulib/import/unistd.in.h: Update. | |
3660 | * gnulib/import/unsetenv.c: Update. | |
3661 | * gnulib/import/verify.h: Update. | |
3662 | * gnulib/import/extra/snippet/warn-on-use.h: Update. | |
3663 | * gnulib/import/wchar.in.h: Update. | |
3664 | * gnulib/import/wctype.in.h: Update. | |
3665 | * gnulib/import/xalloc-oversized.h: Update. | |
3666 | * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to | |
3667 | "53e2c179f26a890fa6685af4b6c1397ee370433b". | |
3668 | ||
8ec23583 SM |
3669 | 2018-09-10 Simon Marchi <simon.marchi@ericsson.com> |
3670 | ||
3671 | * record-btrace.c (get_thread_current_frame): Remove | |
3672 | old_inferior_ptid. | |
3673 | ||
1f5d1570 JG |
3674 | 2018-09-10 Jerome Guitton <guitton@adacore.com> |
3675 | ||
3676 | * ada-lang.c (ada_value_struct_elt): Call ada_to_fixed_type | |
3677 | with check_tag to 1 if and only if the type is tagged and the | |
3678 | component being searched cannot been found in the current | |
3679 | view. Otherwise, always call ada_to_fixed_type with | |
3680 | check_tag to 0. | |
3681 | ||
d91e9ea8 XR |
3682 | 2018-09-10 Xavier Roirand <roirand@adacore.com> |
3683 | ||
3684 | * ada-lang.c (ada_is_access_to_unconstrained_array): Remove static | |
3685 | declaration. | |
3686 | * ada-lang.h: add ada_is_access_to_unconstrained_array prototype. | |
3687 | * ada-varobj.c (ada_varobj_get_number_of_children, | |
3688 | ada_varobj_describe_child, ada_value_is_changeable_p): Cleanup code. | |
3689 | ||
cc330e39 XR |
3690 | 2018-09-10 Xavier Roirand <roirand@adacore.com> |
3691 | ||
3692 | * ada-valprint.c (ada_value_print): Use type instead of | |
3693 | enclosing type. | |
3694 | ||
b9c50e9a XR |
3695 | 2018-09-10 Xavier Roirand <roirand@adacore.com> |
3696 | ||
3697 | * ada-lang.c (ada_value_subscript): Handle case when parameter is | |
3698 | an array of access to unconstrained array. | |
3699 | ||
736ade86 XR |
3700 | 2018-09-10 Xavier Roirand <roirand@adacore.com> |
3701 | ||
3702 | * ada-lang.c (ada_is_access_to_unconstrained_array): New function. | |
3703 | (ada_check_typedef): Use it. | |
3704 | ||
2963898f XR |
3705 | 2018-09-10 Xavier Roirand <roirand@adacore.com> |
3706 | ||
3707 | * ada-varobj.c (ada_varobj_describe_struct_child) | |
3708 | (ada_varobj_describe_child): Handle union case like struct one. | |
3709 | ||
a154931e TT |
3710 | 2018-09-10 Tom Tromey <tom@tromey.com> |
3711 | ||
3712 | PR python/18380: | |
3713 | * python/python.c (_initialize_python): Make example in "python" | |
3714 | help work in Python 3. | |
3715 | ||
23c4651c EZ |
3716 | 2018-09-10 Eli Zaretskii <eliz@gnu.org> |
3717 | ||
3718 | * Makefile.in (transformed_name): Use INSTALL_SCRIPT instead of | |
3719 | INSTALL_PROGRAM to install gdb-add-index.sh. Don't append | |
3720 | $(EXEEXT) to the script, as it is not a program. | |
3721 | ||
a5c5eda7 SM |
3722 | 2018-09-09 Simon Marchi <simon.marchi@ericsson.com> |
3723 | ||
3724 | * python/py-prettyprint.c (pretty_print_one_value): Return | |
3725 | gdbpy_ref<>. | |
3726 | (print_string_repr): Adjust. | |
3727 | (apply_varobj_pretty_printer): Return gdbpy_ref<>. | |
3728 | * python/python-internal.h (apply_varobj_pretty_printer): Return | |
3729 | gdbpy_ref<>. | |
3730 | * varobj.c (varobj_value_get_print_value): Adjust. | |
3731 | ||
332cf4c9 TT |
3732 | 2018-09-08 Tom Tromey <tom@tromey.com> |
3733 | ||
3734 | PR python/16047: | |
3735 | * python/py-prettyprint.c (pretty_print_one_value): Check for | |
3736 | to_string method. | |
3737 | ||
424da6cf JB |
3738 | 2018-09-08 Joel Brobecker <brobecker@adacore.com> |
3739 | ||
3740 | * ada-lang.c (resolve_subexp): Pass correct OPLEN in call to | |
3741 | replace_operator_with_call. | |
3742 | ||
95f39a5b JB |
3743 | 2018-09-08 Joel Brobecker <brobecker@adacore.com> |
3744 | ||
3745 | * ada-lang.c (ada_value_cast): Remove unnecessary parentheses. | |
3746 | ||
16b9eb7b JB |
3747 | 2018-09-08 Joel Brobecker <brobecker@adacore.com> |
3748 | ||
3749 | * ada-typeprint.c (print_range): Print the bounds using TYPE | |
3750 | rather than its TYPE_TARGET_TYPE. | |
3751 | ||
d8ce9127 JB |
3752 | 2018-09-08 Joel Brobecker <brobecker@adacore.com> |
3753 | ||
3754 | * ada-lang.c (ada_to_fixed_value): Minor reformatting in | |
3755 | call to ada_to_fixed_value_create. | |
3756 | ||
0d81f350 JG |
3757 | 2018-09-08 Jerome Guitton <guitton@adacore.com> |
3758 | ||
3759 | * ada-lang.c (ada_decode): strip dot prefix in symbol name. | |
3760 | ||
57aff202 JB |
3761 | 2018-09-08 Joel Brobecker <brobecker@adacore.com> |
3762 | ||
3763 | * ada-lang.c (ada_exception_sal): Replace gdb_assert calls | |
3764 | by calls to error. | |
3765 | ||
fb44b1a7 JB |
3766 | 2018-09-08 Joel Brobecker <brobecker@adacore.com> |
3767 | ||
3768 | * ada-lang.c (ada_unhandled_exception_name_addr_from_raise): | |
3769 | Move update of loop variable "fi". | |
3770 | ||
2a62dfa9 JB |
3771 | 2018-09-08 Joel Brobecker <brobecker@adacore.com> |
3772 | ||
3773 | * ada-lang.c (value_assign_to_component): In the case of | |
3774 | big-endian targets, extract the bits of the given VAL | |
3775 | using an src_offset of zero if container is not a scalar. | |
3776 | ||
739ab2e9 SS |
3777 | 2018-09-06 Simon Ser <contact@emersion.fr> |
3778 | ||
3779 | PR gdb/23105 | |
3780 | * fbsd-nat.c (fbsd_nat_target::xfer_partial): Add support for | |
3781 | TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS. | |
3782 | * fbsd-tdep.c (fbsd_make_note_desc): New. | |
3783 | (fbsd_make_corefile_notes): Write NT_PROCSTAT_AUXV, | |
3784 | NT_PROCSTAT_VMMAP and NT_PROCSTAT_PS_STRINGS notes. | |
3785 | * target.h (enum target_object) Add FreeBSD-specific | |
3786 | TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS. | |
3787 | ||
d82b3862 SM |
3788 | 2018-09-06 Simon Marchi <simon.marchi@ericsson.com> |
3789 | ||
3790 | * compile/compile-c.h (generate_c_for_variable_locations): | |
3791 | Change reference to pointer. | |
3792 | * compile/compile-c-support.c (compile_program) <compute>: | |
3793 | Likewise. | |
3794 | * compile/compile-c-symbols.c (generate_vla_size): Likewise. | |
3795 | (generate_c_for_for_one_variable): Likewise | |
3796 | (generate_c_for_variable_locations): Likewise | |
3797 | * compile/compile-c-types.c (compile_c_instance::convert_type): | |
3798 | Likewise | |
3799 | * compile/compile-cplus-symbols.c (convert_one_symbol): | |
3800 | std::move the scope passed to enter_scope. | |
3801 | * compile/compile-cplus-types.c | |
3802 | (compile_cplus_instance::enter_scope): Make parameter | |
3803 | rvalue-reference. | |
3804 | (compile_cplus_instance::new_scope): Change reference to | |
3805 | pointer. | |
3806 | (compile_cplus_instance::convert_type): Likewise | |
3807 | (compile_cplus_convert_typedef): std::move the scope passed to | |
3808 | enter_scope. | |
3809 | (compile_cplus_convert_struct_or_union): Likewise. | |
3810 | (compile_cplus_convert_enum): Likewise. | |
3811 | (compile_cplus_convert_namespace): Likewise. | |
3812 | * compile/compile-cplus.h (compile_cplus_instance) | |
3813 | <enter_scope>: Make parameter rvalue-reference. | |
3814 | * compile/compile-internal.h (compile_instance) | |
3815 | <get_cached_type>: Likewise | |
3816 | * compile/compile-loc2c.c (push): Likewise | |
3817 | (pushf): Likewise | |
3818 | (unary): Likewise | |
3819 | (binary): Likewise | |
3820 | (print_label): Likewise | |
3821 | (pushf_register_address): Likewise | |
3822 | (pushf_register): Likewise | |
3823 | (do_compile_dwarf_expr_to_c): Likewise | |
3824 | (compile_dwarf_expr_to_c): Likewise | |
3825 | (compile_dwarf_bounds_to_c): Likewise | |
3826 | * compile/compile.c (compile_instance::get_cached_type): | |
3827 | Likewise | |
3828 | * compile/compile.h (compile_dwarf_expr_to_c): Likewise. | |
3829 | (compile_dwarf_bounds_to_c): Likewise | |
3830 | * dwarf2loc.c (locexpr_generate_c_location): Likewise. | |
3831 | (dwarf2_compile_property_to_c): Likewise | |
3832 | * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise | |
3833 | * symtab.h (struct symbol_computed_ops) <generate_c_location>: | |
3834 | Likewise | |
3835 | ||
cc5a5ae5 SM |
3836 | 2018-09-06 Simon Marchi <simon.marchi@ericsson.com> |
3837 | ||
3838 | * tui/tui-data.h (struct tui_win_element) <highlight>: Remove. | |
3839 | * tui/tui-data.c (init_content_element): Don't initialize it. | |
3840 | ||
137be540 SM |
3841 | 2018-09-06 Simon Marchi <simon.marchi@ericsson.com> |
3842 | ||
3843 | * tui/tui-data.h (struct tui_win_info) | |
3844 | <detail::opaque>: Remove. | |
3845 | * tui/tui-data.c (init_win_info): Remove assignment. | |
3846 | ||
f1628857 TT |
3847 | 2018-09-05 Tom Tromey <tom@tromey.com> |
3848 | ||
3849 | * warning.m4 (AM_GDB_WARNINGS): Add -Wformat when testing | |
3850 | -Wformat-nonliteral. | |
3851 | * target-float.c (host_float_ops<T>::to_string) | |
3852 | (host_float_ops<T>::from_string): Use | |
3853 | DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL. | |
3854 | * configure: Rebuild. | |
3855 | ||
af39b1c2 SM |
3856 | 2018-09-05 Simon Marchi <simon.marchi@ericsson.com> |
3857 | ||
3858 | * printcmd.c (printf_c_string): Use | |
3859 | DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL. | |
3860 | (printf_wide_c_string, printf_pointer, ui_printf): Likewise. | |
3861 | ||
081bca4d TT |
3862 | 2018-09-05 Tom Tromey <tom@tromey.com> |
3863 | ||
3864 | * cli/cli-cmds.c (shell_escape, edit_command): Remove cast. | |
3865 | ||
e4a62c65 TV |
3866 | 2018-09-05 Tom de Vries <tdevries@suse.de> |
3867 | ||
3868 | * dwarf2loc.c (sect_variable_value): Call indirect_synthetic_pointer | |
3869 | with resolve_abstract_p == true. | |
3870 | (indirect_synthetic_pointer): Add resolve_abstract_p parameter, | |
3871 | defaulting to false. Propagate resolve_abstract_p to | |
3872 | dwarf2_fetch_die_loc_sect_off. | |
3873 | * dwarf2loc.h (dwarf2_fetch_die_loc_sect_off): Add resolve_abstract_p | |
3874 | parameter, defaulting to false. | |
3875 | * dwarf2read.c (read_variable): Add variable to abstract_to_concrete. | |
3876 | (dwarf2_fetch_die_loc_sect_off): Add and handle resolve_abstract_p | |
3877 | parameter. | |
3878 | * dwarf2read.h (struct die_info): Forward-declare. | |
3879 | (die_info_ptr): New typedef. | |
3880 | (struct dwarf2_per_objfile): Add abstract_to_concrete field. | |
3881 | ||
2b69821e JB |
3882 | 2018-09-05 Joel Brobecker <brobecker@adacore.com> |
3883 | ||
3884 | GDB 8.2 released. | |
3885 | ||
fcc9b044 SDJ |
3886 | 2018-09-04 Sergio Durigan Junior <sergiodj@redhat.com> |
3887 | Pedro Alves <palves@redhat.com> | |
3888 | ||
3889 | * gnulib/Makefile.in (aclocal_m4_deps): Move to | |
3890 | "aclocal-m4-deps.mk". Include file here. | |
3891 | $(srcdir)/aclocal.m4: Add "configure.ac". | |
3892 | * gnulib/aclocal-m4-deps.mk: New file. | |
3893 | * gnulib/update-gnulib.sh: Automatically update | |
3894 | "aclocal-m4-deps.mk". | |
3895 | ||
d53d5436 TT |
3896 | 2018-09-04 Tom Tromey <tom@tromey.com> |
3897 | ||
3898 | * configure: Rebuild. | |
3899 | * configure.ac: Remove multi-ice code. | |
3900 | ||
8dc9fd87 TT |
3901 | 2018-09-04 Tom Tromey <tom@tromey.com> |
3902 | ||
3903 | * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS): Remove. | |
3904 | (ada-exp.o): Update. | |
3905 | ||
3322c5d9 TT |
3906 | 2018-09-04 Tom Tromey <tom@tromey.com> |
3907 | ||
3908 | * Makefile.in (printcmd.o, target-float.o): Remove. | |
3909 | (GDB_WARN_CFLAGS_NO_FORMAT): Remove. | |
3910 | ||
ba2bf2aa TT |
3911 | 2018-09-04 Tom Tromey <tom@tromey.com> |
3912 | ||
3913 | * gnulib/Makefile.in: Remove obsolete comment. | |
3914 | * Makefile.in: Remove obsolete comment. | |
3915 | ||
6c9d681b AB |
3916 | 2018-09-04 Andrew Burgess <andrew.burgess@embecosm.com> |
3917 | ||
3918 | * riscv-tdep.c (riscv_frame_cache): Fix ARI warning, don't end a | |
3919 | line with '+'. | |
3920 | ||
78a3b0fa AB |
3921 | 2018-09-03 Andrew Burgess <andrew.burgess@embecosm.com> |
3922 | ||
3923 | * riscv-tdep.c: Add 'prologue-value.h' include. | |
3924 | (struct riscv_unwind_cache): New struct. | |
3925 | (riscv_debug_unwinder): New global. | |
3926 | (riscv_scan_prologue): Update arguments, capture register details | |
3927 | from prologue scan. | |
3928 | (riscv_skip_prologue): Reformat arguments line, move end of | |
3929 | prologue calculation into riscv_scan_prologue. | |
3930 | (riscv_frame_cache): Update return type, create | |
3931 | riscv_unwind_cache, scan the prologue, and fill in remaining cache | |
3932 | details. | |
3933 | (riscv_frame_this_id): Use frame id computed in riscv_frame_cache. | |
3934 | (riscv_frame_prev_register): Use the trad_frame within the | |
3935 | riscv_unwind_cache. | |
3936 | (_initialize_riscv_tdep): Add 'set/show debug riscv unwinder' | |
3937 | flag. | |
3938 | ||
23e60e7a AB |
3939 | 2018-09-03 Andrew Burgess <andrew.burgess@embecosm.com> |
3940 | ||
3941 | * trad-frame.h (trad_frame_set_realreg): Declare. | |
3942 | (trad_frame_set_addr): Declare. | |
3943 | * trad-frame.c (trad_frame_set_realreg): Define new function. | |
3944 | (trad_frame_set_addr): Define new function. | |
3945 | (trad_frame_set_reg_realreg): Use new function. | |
3946 | (trad_frame_set_reg_addr): Use new function. | |
3947 | ||
5c889512 KS |
3948 | 2018-09-01 Keith Seitz <keiths@redhat.com> |
3949 | ||
3950 | * compile/compile-cplus-types.c (compile_cplus_debug_output_1): Use | |
3951 | pulongest instead of "%lld". | |
3952 | * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol): Remove | |
3953 | ATTRIBUTE_UNUSED. | |
3954 | ||
c8c81635 TT |
3955 | 2018-08-31 Tom Tromey <tom@tromey.com> |
3956 | ||
3957 | * dwarf2read.c (dwarf2_add_field): Set the TYPE_LENGTH of the | |
3958 | variant part type. | |
3959 | ||
0c888588 PA |
3960 | 2018-08-31 Pedro Alves <palves@redhat.com> |
3961 | ||
3962 | * gdbarch.h: Regenerate. | |
3963 | ||
7ea65f08 PA |
3964 | 2018-08-31 Pedro Alves <palves@redhat.com> |
3965 | ||
3966 | * gdbarch.sh (have_nonsteppable_watchpoint): Add comment. | |
3967 | * target.h (Hardware watchpoint interfaces): Describe | |
3968 | continuable/steppable/non-steppable watchpoints. | |
3969 | * gdbarch.h, gdbarch.c: Regenerate. | |
3970 | ||
7eb65faf PA |
3971 | 2018-08-31 Pedro Alves <palves@redhat.com> |
3972 | ||
3973 | * nto-procfs.c (nto_procfs_target::have_continuable_watchpoint): | |
3974 | Delete. | |
3975 | * s390-linux-nat.c | |
3976 | (s390_linux_nat_target::have_continuable_watchpoint): Delete. | |
3977 | * target.h (target_ops::have_continuable_watchpoint): Delete. | |
3978 | (target_have_continuable_watchpoint): Delete. | |
3979 | * x86-nat.h (x86_nat_target::have_continuable_watchpoint): Delete. | |
3980 | * target-delegates.c: Regenerate. | |
3981 | ||
dab999b1 SDJ |
3982 | 2018-08-31 Sergio Durigan Junior <sergiodj@redhat.com> |
3983 | ||
3984 | * gnulib/Makefile.in (aclocal_m4_deps): Update according to | |
3985 | the files present in "gnulib/import/m4/". | |
3986 | ||
ff3a05b3 AB |
3987 | 2018-08-30 Andrew Burgess <andrew.burgess@embecosm.com> |
3988 | ||
3989 | * riscv-tdep.c (riscv_insn::decode): Decode c.addi4spn, c.sd, | |
3990 | c.sw, c.swsp, and c.sdsp. | |
3991 | ||
0b3f9efc AB |
3992 | 2018-08-30 Andrew Burgess <andrew.burgess@embecosm.com> |
3993 | ||
3994 | * riscv-tdep.c (struct riscv_inferior_data): Delete. | |
3995 | (riscv_read_misa_reg): Don't cache value read into inferior data. | |
3996 | (riscv_new_inferior_data): Delete. | |
3997 | (riscv_inferior_data_cleanup): Delete. | |
3998 | (riscv_inferior_data): Delete. | |
3999 | (riscv_invalidate_inferior_data): Delete. | |
4000 | (_initialize_riscv_tdep): Remove initialisation of inferior data. | |
4001 | ||
a0dc02a6 SM |
4002 | 2018-08-30 Simon Marchi <simon.marchi@ericsson.com> |
4003 | ||
4004 | * compile/compile-cplus-types.c | |
4005 | (compile_cplus_instance::leave_scope): Take the address of scope | |
4006 | object. | |
4007 | (compile_cplus_instance::convert_qualified_base): Compare quals | |
4008 | to 0. | |
4009 | ||
fdad7678 KS |
4010 | 2018-08-30 Keith Seitz <keiths@redhat.com> |
4011 | ||
4012 | * compile/compile-cplus-types.c (compile_cplus_instance::enter_scope): | |
4013 | Use "%s" and host_address_to_string instead of "%p" in printf. | |
4014 | ||
078a0207 KS |
4015 | 2018-08-29 Keith Seitz <keiths@redhat.com> |
4016 | ||
4017 | * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Add compile-cplus-symbols.c | |
4018 | and compile-cplus-types.c. | |
4019 | (HFILES_NO_SRCDIR): Add gcc-cp-plugin.h. | |
4020 | * c-lang.c (cplus_language_defn): Set C++ compile functions. | |
4021 | * c-lang.h (cplus_get_compile_context, cplus_compute_program): | |
4022 | Declare. | |
4023 | * compile/compile-c-support.c: Include compile-cplus.h. | |
4024 | (load_libcompile): Templatize. | |
4025 | (get_compile_context): "New" function. | |
4026 | (c_get_compile_context): Use get_compile_context. | |
4027 | (cplus_get_compile_context): New function. | |
4028 | (cplus_push_user_expression, cplus_pop_user_expression) | |
4029 | (cplus_add_code_header, cplus_add_input, cplus_compile_program) | |
4030 | (cplus_compute_program): Define new structs/functions. | |
4031 | * compile/compile-cplus-symmbols.c: New file. | |
4032 | * compile/compile-cplus-types.c: New file. | |
4033 | * compile/compile-cplus.h: New file. | |
4034 | * compile/compile-internal.h (debug_compile_oracle, GCC_TYPE_NONE): | |
4035 | Declare. | |
4036 | * compile/compile-object-load.c (get_out_value_type): Use | |
4037 | strncmp_iw when comparing symbol names. | |
4038 | (compile_object_load): Add mst_bss and mst_data. | |
4039 | * compile/compile.c (_initialize_compile): Remove | |
4040 | -Wno-implicit-function-declaration from `compile_args'. | |
4041 | * compile/gcc-cp-plugin.h: New file. | |
4042 | * NEWS: Mention C++ compile support and new debug options. | |
4043 | ||
fcaad03c KS |
4044 | 2018-08-29 Keith Seitz <keiths@redhat.com> |
4045 | ||
4046 | * linespec.c (collect_info::add_symbol): Make virtual. | |
4047 | (struct symbol_searcher_collect_info): New struct. | |
4048 | (symbol_searcher::find_all_symbols): New method. | |
4049 | * symtab.h (class symbol_searcher): New class. | |
4050 | ||
7e41c8db KS |
4051 | 2018-08-29 Keith Seitz <keiths@redhat.com> |
4052 | ||
4053 | * linespec.c (struct linespec) <function_symbols, label_symbols>: | |
4054 | Change to vector of block_symbol. Update all users. | |
4055 | (struct collect_info) <symbols>: Likewise. | |
4056 | (collect_info::add_symbol): Take block_symbol as argument. | |
4057 | Update all callers. | |
4058 | (decode_compound_collector) <m_symbols>: Change type to vector | |
4059 | of block_symbol. Update all users. | |
4060 | (decode_compound_collector::operator ()): Change parameter type | |
4061 | to block_symbol. | |
4062 | (find_method, find_function_symbols, find_linespec_symbols) | |
4063 | (find_label_symbols_in_block, find_label_symbols): Change symbol | |
4064 | vectors to block_symbol vectors. | |
4065 | * symtab.h (symbol_found_callback_ftype): Change parameter type to | |
4066 | block_symbol. | |
4067 | ||
63e8c3da KS |
4068 | 2018-08-29 Keith Seitz <keiths@redhat.com> |
4069 | ||
4070 | * linespec.c (symbolp): Remove typedef and VEC definitions. | |
4071 | (bound_minimal_symbol_d): Likewise. | |
4072 | ||
4dedf84d KS |
4073 | 2018-08-29 Keith Seitz <keiths@redhat.com> |
4074 | ||
4075 | * linespec.c (decode_compound_collector::decode_compound_collector): | |
4076 | Remove initialization for `m_symtabs'. | |
4077 | (decode_compound_collector::release_symbols): Change return type | |
4078 | to std::vector. Update all callers. | |
4079 | (class decode_compound_collector) <m_symbols>: Change type to | |
4080 | std::vector. | |
4081 | (lookup_prefix_sym): Change return type to std::vector. Update all | |
4082 | callers. | |
4083 | (compare_symbols): Remove. | |
4084 | (std_compare_symbols): Rename to `compare_symbols'. | |
4085 | (find_method): Change `sym_classes' parameter to std::vector. | |
4086 | Update all callers. Use std::sort to sort sym_classes. | |
4087 | (find_linespec_symbols): Remove cleanup. | |
4088 | ||
c2a031c5 KS |
4089 | 2018-08-29 Keith Seitz <keiths@redhat.com> |
4090 | ||
4091 | * linespec.c (struct linespec) <minimal_symbols>: Change type to | |
4092 | std::vector. Update all users. | |
4093 | (convert_linespec_to_sals): Use std::sort to sort minimal symbols. | |
4094 | (struct collect_info) <minimal_symbols>: Likewise. | |
4095 | (compare_msymbols): Return bool. Change parameters to const | |
4096 | bound_minimal_symbol references. | |
4097 | (find_method, find_function_symbols, find_linespec_symbols): Change | |
4098 | `minsyms' parameter to std::vector. Update all callers. | |
4099 | ||
3553eadc KS |
4100 | 2018-08-29 Keith Seitz <keiths@redhat.com> |
4101 | ||
4102 | * linespec.c (struct linespec) <label_symbols>: Change type to | |
4103 | std::vector. Update all users. | |
4104 | (find_label_symbols_in_block): Change `result' parameter to | |
4105 | std::vector. Update all callers. | |
4106 | (find_label_symbols): Return std::vector. Update all callers. | |
4107 | ||
7243d011 KS |
4108 | 2018-08-29 Keith Seitz <keiths@redhat.com> |
4109 | ||
4110 | * linespec.c (struct linespec) <function_symbols>: Change type to | |
4111 | std::vector. Update all users. | |
4112 | (struct collect_info) <function_symbols>: Likewise. | |
4113 | (convert_linespec_to_sals): Use std::sort to sort function_symbols. | |
4114 | (std_compare_symbols): New function. | |
4115 | (find_method, find_function_symbols, find_linespec_symbols) | |
4116 | (find_label_symbols_in_block): Change `symbols' parameter to | |
4117 | std::vector. Update all callers. | |
4118 | (find_label_symbols): Likewise for `function_symbols' and | |
4119 | `label_funcs_ret'. | |
4120 | ||
2a908241 KS |
4121 | 2018-08-29 Keith Seitz <keiths@redhat.com> |
4122 | ||
4123 | * linespec.c (symtab_vector_up): Define. | |
4124 | (struct linespec) <file_symtabs>: Change type to std::vector *. | |
4125 | Update all uses. | |
4126 | (struct collect_info) <file_symtabs>: Likewise. | |
4127 | (collect_symtabs_from_filename): Return symtab_vector_up. | |
4128 | Update all callers. | |
4129 | (decode_objc): Remove cleanup. | |
4130 | (symtab_collector::symtab_collector): Initialize `m_symtabs'. | |
4131 | (symtab_collector::release_symtabs): Return symtab_vector_up. | |
4132 | Update all callers. | |
4133 | (class symtab_collector) <m_symtabs>: Change type to symtab_vector_up. | |
4134 | Update all users. | |
4135 | (collect_symtabs_from_filename, symtabs_from_filename): Return | |
4136 | symtab_vector_up. Update all callers. | |
4137 | ||
f6c4e3e8 TT |
4138 | 2018-08-29 Tom Tromey <tom@tromey.com> |
4139 | ||
4140 | * csky-tdep.c (csky_analyze_prologue): Use | |
4141 | core_addr_to_string_nz. | |
4142 | ||
73c13fe6 TT |
4143 | 2018-08-29 Tom Tromey <tom@tromey.com> |
4144 | ||
4145 | * windows-nat.c (struct xlate_exception) <them>: Change type to | |
4146 | DWORD. | |
4147 | (xlate): Fix formatting. Remove last entry. | |
4148 | (struct xlate_exception, xlate): Comment out. | |
4149 | (windows_nat_target::resume): Use ranged for. | |
4150 | ||
4d3928d7 JW |
4151 | 2018-08-29 Jim Wilson <jimw@sifive.com> |
4152 | ||
4153 | * riscv-linux-nat.c: Include elf/common.h instead of elf.h. | |
4154 | (riscv_linux_nat_target::fetch_registers): Use NT_FPREGSET instead | |
4155 | of NT_PRFPREG. | |
4156 | (riscv_linux_nat_target::store_registers): Likewise. | |
4157 | ||
7a6dbc2f SDJ |
4158 | 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com> |
4159 | ||
4160 | PR gdb/23555 | |
4161 | PR gdb/23558 | |
4162 | * gnulib/aclocal.m4: Regenerate. | |
4163 | * gnulib/config.in: Regenerate. | |
4164 | * gnulib/configure: Regenerate. | |
4165 | * gnulib/import/Makefile.am: Update. | |
4166 | * gnulib/import/Makefile.in: Update. | |
4167 | * gnulib/import/extra/snippet/_Noreturn.h: Rename to... | |
4168 | * gnulib/import/_Noreturn.h: ... this. | |
4169 | * gnulib/import/alloca.in.h: Update. | |
4170 | * gnulib/import/extra/snippet/arg-nonnull.h: Rename to... | |
4171 | * gnulib/import/arg-nonnull.h: ... this. | |
4172 | * gnulib/import/assure.h: Update. | |
4173 | * gnulib/import/at-func.c: Update. | |
4174 | * gnulib/import/basename-lgpl.c: Update. | |
4175 | * gnulib/import/extra/snippet/c++defs.h: Rename to... | |
4176 | * gnulib/import/c++defs.h: ... this. | |
4177 | * gnulib/import/canonicalize-lgpl.c: Update. | |
4178 | * gnulib/import/cdefs.h: Update. | |
4179 | * gnulib/import/chdir-long.c: Update. | |
4180 | * gnulib/import/chdir-long.h: Update. | |
4181 | * gnulib/import/cloexec.c: Update. | |
4182 | * gnulib/import/cloexec.h: Update. | |
4183 | * gnulib/import/close.c: Update. | |
4184 | * gnulib/import/closedir.c: Update. | |
4185 | * gnulib/import/config.charset: Update. | |
4186 | * gnulib/import/dirent-private.h: Update. | |
4187 | * gnulib/import/dirent.in.h: Update. | |
4188 | * gnulib/import/dirfd.c: Update. | |
4189 | * gnulib/import/dirname-lgpl.c: Update. | |
4190 | * gnulib/import/dirname.h: Update. | |
4191 | * gnulib/import/dosname.h: Update. | |
4192 | * gnulib/import/dup-safer-flag.c: Update. | |
4193 | * gnulib/import/dup-safer.c: Update. | |
4194 | * gnulib/import/dup.c: Update. | |
4195 | * gnulib/import/dup2.c: Update. | |
4196 | * gnulib/import/errno.in.h: Update. | |
4197 | * gnulib/import/error.c: Update. | |
4198 | * gnulib/import/error.h: Update. | |
4199 | * gnulib/import/exitfail.c: Update. | |
4200 | * gnulib/import/exitfail.h: Update. | |
4201 | * gnulib/import/extra/update-copyright: Update. | |
4202 | * gnulib/import/fchdir.c: Update. | |
4203 | * gnulib/import/fcntl.c: Update. | |
4204 | * gnulib/import/fcntl.in.h: Update. | |
4205 | * gnulib/import/fd-hook.c: Update. | |
4206 | * gnulib/import/fd-hook.h: Update. | |
4207 | * gnulib/import/fd-safer-flag.c: Update. | |
4208 | * gnulib/import/fd-safer.c: Update. | |
4209 | * gnulib/import/fdopendir.c: Update. | |
4210 | * gnulib/import/filename.h: Update. | |
4211 | * gnulib/import/filenamecat-lgpl.c: Update. | |
4212 | * gnulib/import/filenamecat.h: Update. | |
4213 | * gnulib/import/flexmember.h: Update. | |
4214 | * gnulib/import/float+.h: Update. | |
4215 | * gnulib/import/float.c: Update. | |
4216 | * gnulib/import/float.in.h: Update. | |
4217 | * gnulib/import/fnmatch.c: Update. | |
4218 | * gnulib/import/fnmatch.in.h: Update. | |
4219 | * gnulib/import/fnmatch_loop.c: Update. | |
4220 | * gnulib/import/fpucw.h: Update. | |
4221 | * gnulib/import/frexp.c: Update. | |
4222 | * gnulib/import/frexpl.c: Update. | |
4223 | * gnulib/import/fstat.c: Update. | |
4224 | * gnulib/import/fstatat.c: Update. | |
4225 | * gnulib/import/getcwd-lgpl.c: Update. | |
4226 | * gnulib/import/getcwd.c: Update. | |
4227 | * gnulib/import/getdtablesize.c: Update. | |
4228 | * gnulib/import/getlogin_r.c: Update. | |
4229 | * gnulib/import/getprogname.c: Update. | |
4230 | * gnulib/import/getprogname.h: Update. | |
4231 | * gnulib/import/gettext.h: Update. | |
4232 | * gnulib/import/gettimeofday.c: Update. | |
4233 | * gnulib/import/glob-libc.h: Update. | |
4234 | * gnulib/import/glob.c: Update. | |
4235 | * gnulib/import/glob.in.h: Update. | |
4236 | * gnulib/import/glob_internal.h: Update. | |
4237 | * gnulib/import/glob_pattern_p.c: Update. | |
4238 | * gnulib/import/globfree.c: Update. | |
4239 | * gnulib/import/hard-locale.c: Update. | |
4240 | * gnulib/import/hard-locale.h: Update. | |
4241 | * gnulib/import/intprops.h: Update. | |
4242 | * gnulib/import/inttypes.in.h: Update. | |
4243 | * gnulib/import/isnan.c: Update. | |
4244 | * gnulib/import/isnand-nolibm.h: Update. | |
4245 | * gnulib/import/isnand.c: Update. | |
4246 | * gnulib/import/isnanl-nolibm.h: Update. | |
4247 | * gnulib/import/isnanl.c: Update. | |
4248 | * gnulib/import/itold.c: Update. | |
4249 | * gnulib/import/libc-config.h: Update. | |
4250 | * gnulib/import/limits.in.h: Update. | |
4251 | * gnulib/import/localcharset.c: Update. | |
4252 | * gnulib/import/localcharset.h: Update. | |
4253 | * gnulib/import/localtime-buffer.c: Update. | |
4254 | * gnulib/import/localtime-buffer.h: Update. | |
4255 | * gnulib/import/lstat.c: Update. | |
4256 | * gnulib/import/m4/00gnulib.m4: Update. | |
4257 | * gnulib/import/m4/__inline.m4: Update. | |
4258 | * gnulib/import/m4/absolute-header.m4: Update. | |
4259 | * gnulib/import/m4/alloca.m4: Update. | |
4260 | * gnulib/import/m4/builtin-expect.m4: Update. | |
4261 | * gnulib/import/m4/canonicalize.m4: Update. | |
4262 | * gnulib/import/m4/chdir-long.m4: Update. | |
4263 | * gnulib/import/m4/close.m4: Update. | |
4264 | * gnulib/import/m4/closedir.m4: Update. | |
4265 | * gnulib/import/m4/configmake.m4: Update. | |
4266 | * gnulib/import/m4/d-ino.m4: Update. | |
4267 | * gnulib/import/m4/d-type.m4: Update. | |
4268 | * gnulib/import/m4/dirent_h.m4: Update. | |
4269 | * gnulib/import/m4/dirfd.m4: Update. | |
4270 | * gnulib/import/m4/dirname.m4: Update. | |
4271 | * gnulib/import/m4/double-slash-root.m4: Update. | |
4272 | * gnulib/import/m4/dup.m4: Update. | |
4273 | * gnulib/import/m4/dup2.m4: Update. | |
4274 | * gnulib/import/m4/eealloc.m4: Update. | |
4275 | * gnulib/import/m4/environ.m4: Update. | |
4276 | * gnulib/import/m4/errno_h.m4: Update. | |
4277 | * gnulib/import/m4/error.m4: Update. | |
4278 | * gnulib/import/m4/exponentd.m4: Update. | |
4279 | * gnulib/import/m4/exponentl.m4: Update. | |
4280 | * gnulib/import/m4/extensions.m4: Update. | |
4281 | * gnulib/import/m4/extern-inline.m4: Update. | |
4282 | * gnulib/import/m4/fchdir.m4: Update. | |
4283 | * gnulib/import/m4/fcntl-o.m4: Update. | |
4284 | * gnulib/import/m4/fcntl.m4: Update. | |
4285 | * gnulib/import/m4/fcntl_h.m4: Update. | |
4286 | * gnulib/import/m4/fdopendir.m4: Update. | |
4287 | * gnulib/import/m4/filenamecat.m4: Update. | |
4288 | * gnulib/import/m4/flexmember.m4: Update. | |
4289 | * gnulib/import/m4/float_h.m4: Update. | |
4290 | * gnulib/import/m4/fnmatch.m4: Update. | |
4291 | * gnulib/import/m4/fnmatch_h.m4: Update. | |
4292 | * gnulib/import/m4/fpieee.m4: Update. | |
4293 | * gnulib/import/m4/frexp.m4: Update. | |
4294 | * gnulib/import/m4/frexpl.m4: Update. | |
4295 | * gnulib/import/m4/fstat.m4: Update. | |
4296 | * gnulib/import/m4/fstatat.m4: Update. | |
4297 | * gnulib/import/m4/getcwd-abort-bug.m4: Update. | |
4298 | * gnulib/import/m4/getcwd-path-max.m4: Update. | |
4299 | * gnulib/import/m4/getcwd.m4: Update. | |
4300 | * gnulib/import/m4/getdtablesize.m4: Update. | |
4301 | * gnulib/import/m4/getlogin.m4: Update. | |
4302 | * gnulib/import/m4/getlogin_r.m4: Update. | |
4303 | * gnulib/import/m4/getpagesize.m4: Update. | |
4304 | * gnulib/import/m4/getprogname.m4: Update. | |
4305 | * gnulib/import/m4/gettimeofday.m4: Update. | |
4306 | * gnulib/import/m4/glibc21.m4: Update. | |
4307 | * gnulib/import/m4/glob.m4: Update. | |
4308 | * gnulib/import/m4/glob_h.m4: Update. | |
4309 | * gnulib/import/m4/gnulib-cache.m4: Update. | |
4310 | * gnulib/import/m4/gnulib-common.m4: Update. | |
4311 | * gnulib/import/m4/gnulib-comp.m4: Update. | |
4312 | * gnulib/import/m4/gnulib-tool.m4: Update. | |
4313 | * gnulib/import/m4/hard-locale.m4: Update. | |
4314 | * gnulib/import/m4/include_next.m4: Update. | |
4315 | * gnulib/import/m4/inttypes-pri.m4: Update. | |
4316 | * gnulib/import/m4/inttypes.m4: Update. | |
4317 | * gnulib/import/m4/isnand.m4: Update. | |
4318 | * gnulib/import/m4/isnanl.m4: Update. | |
4319 | * gnulib/import/m4/largefile.m4: Update. | |
4320 | * gnulib/import/m4/limits-h.m4: Update. | |
4321 | * gnulib/import/m4/localcharset.m4: Update. | |
4322 | * gnulib/import/m4/locale-fr.m4: Update. | |
4323 | * gnulib/import/m4/locale-ja.m4: Update. | |
4324 | * gnulib/import/m4/locale-zh.m4: Update. | |
4325 | * gnulib/import/m4/localtime-buffer.m4: Update. | |
4326 | * gnulib/import/m4/longlong.m4: Update. | |
4327 | * gnulib/import/m4/lstat.m4: Update. | |
4328 | * gnulib/import/m4/malloc.m4: Update. | |
4329 | * gnulib/import/m4/malloca.m4: Update. | |
4330 | * gnulib/import/m4/math_h.m4: Update. | |
4331 | * gnulib/import/m4/mbrtowc.m4: Update. | |
4332 | * gnulib/import/m4/mbsinit.m4: Update. | |
4333 | * gnulib/import/m4/mbsrtowcs.m4: Update. | |
4334 | * gnulib/import/m4/mbstate_t.m4: Update. | |
4335 | * gnulib/import/m4/memchr.m4: Update. | |
4336 | * gnulib/import/m4/memmem.m4: Update. | |
4337 | * gnulib/import/m4/mempcpy.m4: Update. | |
4338 | * gnulib/import/m4/memrchr.m4: Update. | |
4339 | * gnulib/import/m4/mkdir.m4: Update. | |
4340 | * gnulib/import/m4/mkstemp.m4: Update. | |
4341 | * gnulib/import/m4/mmap-anon.m4: Update. | |
4342 | * gnulib/import/m4/mode_t.m4: Update. | |
4343 | * gnulib/import/m4/msvc-inval.m4: Update. | |
4344 | * gnulib/import/m4/msvc-nothrow.m4: Update. | |
4345 | * gnulib/import/m4/multiarch.m4: Update. | |
4346 | * gnulib/import/m4/nocrash.m4: Update. | |
4347 | * gnulib/import/m4/off_t.m4: Update. | |
4348 | * gnulib/import/m4/onceonly.m4: Update. | |
4349 | * gnulib/import/m4/open-cloexec.m4: Update. | |
4350 | * gnulib/import/m4/open.m4: Update. | |
4351 | * gnulib/import/m4/openat.m4: Update. | |
4352 | * gnulib/import/m4/opendir.m4: Update. | |
4353 | * gnulib/import/m4/pathmax.m4: Update. | |
4354 | * gnulib/import/m4/rawmemchr.m4: Update. | |
4355 | * gnulib/import/m4/readdir.m4: Update. | |
4356 | * gnulib/import/m4/readlink.m4: Update. | |
4357 | * gnulib/import/m4/realloc.m4: Update. | |
4358 | * gnulib/import/m4/rename.m4: Update. | |
4359 | * gnulib/import/m4/rewinddir.m4: Update. | |
4360 | * gnulib/import/m4/rmdir.m4: Update. | |
4361 | * gnulib/import/m4/save-cwd.m4: Update. | |
4362 | * gnulib/import/m4/secure_getenv.m4: Update. | |
4363 | * gnulib/import/m4/setenv.m4: Update. | |
4364 | * gnulib/import/m4/signal_h.m4: Update. | |
4365 | * gnulib/import/m4/ssize_t.m4: Update. | |
4366 | * gnulib/import/m4/stat-time.m4: Update. | |
4367 | * gnulib/import/m4/stat.m4: Update. | |
4368 | * gnulib/import/m4/std-gnu11.m4: Update. | |
4369 | * gnulib/import/m4/stdbool.m4: Update. | |
4370 | * gnulib/import/m4/stddef_h.m4: Update. | |
4371 | * gnulib/import/m4/stdint.m4: Update. | |
4372 | * gnulib/import/m4/stdio_h.m4: Update. | |
4373 | * gnulib/import/m4/stdlib_h.m4: Update. | |
4374 | * gnulib/import/m4/strchrnul.m4: Update. | |
4375 | * gnulib/import/m4/strdup.m4: Update. | |
4376 | * gnulib/import/m4/strerror.m4: Update. | |
4377 | * gnulib/import/m4/string_h.m4: Update. | |
4378 | * gnulib/import/m4/strstr.m4: Update. | |
4379 | * gnulib/import/m4/strtok_r.m4: Update. | |
4380 | * gnulib/import/m4/sys_socket_h.m4: Update. | |
4381 | * gnulib/import/m4/sys_stat_h.m4: Update. | |
4382 | * gnulib/import/m4/sys_time_h.m4: Update. | |
4383 | * gnulib/import/m4/sys_types_h.m4: Update. | |
4384 | * gnulib/import/m4/tempname.m4: Update. | |
4385 | * gnulib/import/m4/time_h.m4: Update. | |
4386 | * gnulib/import/m4/unistd-safer.m4: Update. | |
4387 | * gnulib/import/m4/unistd_h.m4: Update. | |
4388 | * gnulib/import/m4/warn-on-use.m4: Update. | |
4389 | * gnulib/import/m4/wchar_h.m4: Update. | |
4390 | * gnulib/import/m4/wchar_t.m4: Update. | |
4391 | * gnulib/import/m4/wctype_h.m4: Update. | |
4392 | * gnulib/import/m4/wint_t.m4: Update. | |
4393 | * gnulib/import/malloc.c: Update. | |
4394 | * gnulib/import/malloc/scratch_buffer.h: Update. | |
4395 | * gnulib/import/malloc/scratch_buffer_grow.c: Update. | |
4396 | * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update. | |
4397 | * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update. | |
4398 | * gnulib/import/malloca.c: Update. | |
4399 | * gnulib/import/malloca.h: Update. | |
4400 | * gnulib/import/malloca.valgrind: Update. | |
4401 | * gnulib/import/math.in.h: Update. | |
4402 | * gnulib/import/mbrtowc.c: Update. | |
4403 | * gnulib/import/mbsinit.c: Update. | |
4404 | * gnulib/import/mbsrtowcs-impl.h: Update. | |
4405 | * gnulib/import/mbsrtowcs-state.c: Update. | |
4406 | * gnulib/import/mbsrtowcs.c: Update. | |
4407 | * gnulib/import/memchr.c: Update. | |
4408 | * gnulib/import/memmem.c: Update. | |
4409 | * gnulib/import/mempcpy.c: Update. | |
4410 | * gnulib/import/memrchr.c: Update. | |
4411 | * gnulib/import/mkdir.c: Update. | |
4412 | * gnulib/import/mkstemp.c: Update. | |
4413 | * gnulib/import/msvc-inval.c: Update. | |
4414 | * gnulib/import/msvc-inval.h: Update. | |
4415 | * gnulib/import/msvc-nothrow.c: Update. | |
4416 | * gnulib/import/msvc-nothrow.h: Update. | |
4417 | * gnulib/import/open.c: Update. | |
4418 | * gnulib/import/openat-die.c: Update. | |
4419 | * gnulib/import/openat-priv.h: Update. | |
4420 | * gnulib/import/openat-proc.c: Update. | |
4421 | * gnulib/import/openat.c: Update. | |
4422 | * gnulib/import/openat.h: Update. | |
4423 | * gnulib/import/opendir.c: Update. | |
4424 | * gnulib/import/pathmax.h: Update. | |
4425 | * gnulib/import/pipe-safer.c: Update. | |
4426 | * gnulib/import/rawmemchr.c: Update. | |
4427 | * gnulib/import/readdir.c: Update. | |
4428 | * gnulib/import/readlink.c: Update. | |
4429 | * gnulib/import/realloc.c: Update. | |
4430 | * gnulib/import/ref-add.sin: Update. | |
4431 | * gnulib/import/ref-del.sin: Update. | |
4432 | * gnulib/import/rename.c: Update. | |
4433 | * gnulib/import/rewinddir.c: Update. | |
4434 | * gnulib/import/rmdir.c: Update. | |
4435 | * gnulib/import/same-inode.h: Update. | |
4436 | * gnulib/import/save-cwd.c: Update. | |
4437 | * gnulib/import/save-cwd.h: Update. | |
4438 | * gnulib/import/scratch_buffer.h: Update. | |
4439 | * gnulib/import/secure_getenv.c: Update. | |
4440 | * gnulib/import/setenv.c: Update. | |
4441 | * gnulib/import/signal.in.h: Update. | |
4442 | * gnulib/import/stat-time.c: Update. | |
4443 | * gnulib/import/stat-time.h: Update. | |
4444 | * gnulib/import/stat-w32.c: Update. | |
4445 | * gnulib/import/stat-w32.h: Update. | |
4446 | * gnulib/import/stat.c: Update. | |
4447 | * gnulib/import/stdbool.in.h: Update. | |
4448 | * gnulib/import/stddef.in.h: Update. | |
4449 | * gnulib/import/stdint.in.h: Update. | |
4450 | * gnulib/import/stdio.in.h: Update. | |
4451 | * gnulib/import/stdlib.in.h: Update. | |
4452 | * gnulib/import/str-two-way.h: Update. | |
4453 | * gnulib/import/strchrnul.c: Update. | |
4454 | * gnulib/import/strdup.c: Update. | |
4455 | * gnulib/import/streq.h: Update. | |
4456 | * gnulib/import/strerror-override.c: Update. | |
4457 | * gnulib/import/strerror-override.h: Update. | |
4458 | * gnulib/import/strerror.c: Update. | |
4459 | * gnulib/import/string.in.h: Update. | |
4460 | * gnulib/import/stripslash.c: Update. | |
4461 | * gnulib/import/strnlen1.c: Update. | |
4462 | * gnulib/import/strnlen1.h: Update. | |
4463 | * gnulib/import/strstr.c: Update. | |
4464 | * gnulib/import/strtok_r.c: Update. | |
4465 | * gnulib/import/sys_stat.in.h: Update. | |
4466 | * gnulib/import/sys_time.in.h: Update. | |
4467 | * gnulib/import/sys_types.in.h: Update. | |
4468 | * gnulib/import/tempname.c: Update. | |
4469 | * gnulib/import/tempname.h: Update. | |
4470 | * gnulib/import/time.in.h: Update. | |
4471 | * gnulib/import/unistd--.h: Update. | |
4472 | * gnulib/import/unistd-safer.h: Update. | |
4473 | * gnulib/import/unistd.in.h: Update. | |
4474 | * gnulib/import/unsetenv.c: Update. | |
4475 | * gnulib/import/verify.h: Update. | |
4476 | * gnulib/import/extra/snippet/warn-on-use.h: Update. | |
4477 | * gnulib/import/wchar.in.h: Update. | |
4478 | * gnulib/import/wctype.in.h: Update. | |
4479 | * gnulib/import/xalloc-oversized.h: Update. | |
4480 | * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to | |
4481 | "53e2c179f26a890fa6685af4b6c1397ee370433b". | |
4482 | ||
b0f492b9 GB |
4483 | 2018-08-16 Gary Benson <gbenson@redhat.com> |
4484 | ||
4485 | PR gdb/13000: | |
4486 | * gdb/main.c (captured_main_1): Exit with nonzero status | |
4487 | in batch mode if the last command to be executed failed. | |
4488 | * NEWS: Mention the above. | |
4489 | ||
2362e7f7 SM |
4490 | 2018-08-29 Simon Marchi <simon.marchi@ericsson.com> |
4491 | ||
4492 | * csky-tdep.c (csky_memory_insert_breakpoint): Remove newline at | |
4493 | end of warning message. | |
4494 | ||
4f4aedeb AH |
4495 | 2018-08-29 Alan Hayward <alan.hayward@arm.com> |
4496 | ||
4497 | PR gdb/22943: | |
4498 | * aarch64-tdep.c (is_hfa_or_hva): Remove function. | |
4499 | (aarch64_extract_return_value): Use | |
4500 | aapcs_is_vfp_call_or_return_candidate. | |
4501 | (aarch64_return_in_memory): Likewise. | |
4502 | (aarch64_store_return_value): Likewise. | |
4503 | ||
0e745c60 AH |
4504 | 2018-08-29 Alan Hayward <alan.hayward@arm.com> |
4505 | ||
4506 | * aarch64-tdep.c | |
4507 | (aapcs_is_vfp_call_or_return_candidate): Make static | |
4508 | (pass_in_v_or_stack): Remove function. | |
4509 | (pass_in_v_vfp_candidate): New function. | |
4510 | (aarch64_push_dummy_call): Check for float register candidates. | |
4511 | ||
ea92689a AH |
4512 | 2018-08-29 Alan Hayward <alan.hayward@arm.com> |
4513 | ||
4514 | * aarch64-tdep.c (HA_MAX_NUM_FLDS): New macro. | |
4515 | (aapcs_is_vfp_call_or_return_candidate_1): New function. | |
4516 | (aapcs_is_vfp_call_or_return_candidate): Likewise. | |
4517 | ||
ad202fcc SM |
4518 | 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca> |
4519 | ||
4520 | PR build/23399 | |
4521 | * common/agent.c (IPA_SYM_STRUCT_NAME): Define. | |
4522 | (struct ipa_sym_addresses): Rename to... | |
4523 | (struct ipa_sym_addresses_common): ... this. | |
4524 | * common/agent.h (IPA_SYM): Use IPA_SYM_STRUCT_NAME. | |
4525 | ||
5fe3f3e4 TT |
4526 | 2018-08-28 Tom Tromey <tom@tromey.com> |
4527 | ||
4528 | * c-exp.y (struct token_and_value): Remove typedef and DEF_VEC. | |
4529 | (token_fifo): Now a std::vector. | |
4530 | (yylex, c_parse): Update. | |
4531 | * d-exp.y (struct token_and_value): Remove typedef and DEF_VEC. | |
4532 | (token_fifo): Now a std::vector. | |
4533 | (yylex, d_parse): Update. | |
4534 | * go-exp.y (struct token_and_value): Remove typedef and DEF_VEC. | |
4535 | (token_fifo): Now a std::vector. | |
4536 | (yylex, go_parse): Update. | |
4537 | ||
858d8004 SM |
4538 | 2018-08-28 Simon Marchi <simon.marchi@ericsson.com> |
4539 | ||
4540 | * parser-defs.h (struct type_stack) <elements>: Change type to | |
4541 | std::vector<union type_stack_elt>. | |
4542 | <depth, size>: Remove. | |
4543 | * parse.c (parse_exp_in_context_1): Adjust. | |
4544 | (type_stack_reserve): Remove. | |
4545 | (check_type_stack_depth): Remove. | |
4546 | (insert_into_type_stack): Adjust to std::vector. | |
4547 | (insert_type): Likewise. | |
4548 | (push_type): Likewise. | |
4549 | (push_type_int): Likewise. | |
4550 | (insert_type_address_space): Likewise. | |
4551 | (pop_type): Likewise. | |
4552 | (pop_type_int): Likewise. | |
4553 | (pop_typelist): Likewise. | |
4554 | (pop_type_stack): Likewise. | |
4555 | (append_type_stack): Likewise. | |
4556 | (push_type_stack): Likewise. | |
4557 | (get_type_stack): Likewise. | |
4558 | (type_stack_cleanup): Likewise. | |
4559 | (push_typelist): Likewise. | |
4560 | (follow_types): Likewise. | |
4561 | (_initialize_parse): Likewise. | |
4562 | ||
416a69af HAQ |
4563 | 2018-08-28 Hafiz Abid Qadeer <abidh@codesourcery.com> |
4564 | ||
4565 | * NEWS: Mention csky target. | |
4566 | ||
9d24df82 HAQ |
4567 | 2018-08-28 Jiangshuai Li <jiangshuai_li@c-sky.com> |
4568 | Hafiz Abid Qadeer <abidh@codesourcery.com> | |
4569 | Don Breazeal <donb@codesourcery.com> | |
4570 | ||
4571 | * csky-linux-tdep.c: New file. | |
4572 | * csky-tdep.c: Likewise. | |
4573 | * csky-tdep.h: Likewise. | |
4574 | * Makefile.in (ALL_TARGET_OBS): Add csky-linux-tdep.o and | |
4575 | csky-tdep.o. | |
4576 | (HFILES_NO_SRCDIR): Add csky-tdep.h. | |
4577 | (ALLDEPFILES): Add csky-linux-tdep.c and csky-tdep.c | |
4578 | * configure.tgt: Add csky support. | |
4579 | ||
3bf9c013 JV |
4580 | 2018-08-27 Jan Vrany <jan.vrany@fit.cvut.cz> |
4581 | ||
4582 | * python/py-framefilter.c (py_print_frame): Print frame architecture | |
4583 | when printing on an MI output. | |
4584 | ||
d3d8724a TT |
4585 | 2018-08-27 Tom Tromey <tom@tromey.com> |
4586 | ||
4587 | PR build/23087: | |
4588 | * configure: Rebuild. | |
4589 | * warning.m4 (AM_GDB_WARNINGS): Remove -Wno-narrowing. | |
4590 | ||
1885053b TT |
4591 | 2018-08-27 Tom Tromey <tom@tromey.com> |
4592 | ||
4593 | * aarch64-linux-tdep.c | |
4594 | (aarch64_linux_iterate_over_regset_sections) <sve_regmap>: Add | |
4595 | casts to int. | |
4596 | ||
8406672e TT |
4597 | 2018-08-27 Tom Tromey <tom@tromey.com> |
4598 | ||
4599 | * ppc64-tdep.c (insn_d, insn_ds, insn_xfx): Add casts to | |
4600 | unsigned. | |
4601 | (ppc64_standard_linkage1, ppc64_standard_linkage2) | |
4602 | (ppc64_standard_linkage3, ppc64_standard_linkage4) | |
4603 | (ppc64_standard_linkage5, ppc64_standard_linkage6) | |
4604 | (ppc64_standard_linkage7, ppc64_standard_linkage8): Add casts to | |
4605 | unsigned. | |
4606 | ||
ec40cf90 TT |
4607 | 2018-08-27 Tom Tromey <tom@tromey.com> |
4608 | ||
4609 | * xtensa-tdep.h (XTREG_END): Add cast to unsigned. | |
4610 | (XTENSA_GDBARCH_TDEP_INSTANTIATE): Likewise. | |
4611 | ||
7bc02706 TT |
4612 | 2018-08-27 Tom Tromey <tom@tromey.com> |
4613 | ||
4614 | * tramp-frame.h (TRAMP_SENTINEL_INSN): Redefine. | |
4615 | * tilegx-linux-tdep.c (tilegx_linux_rt_sigframe): Use | |
4616 | ULONGEST_MAX. | |
4617 | * tic6x-linux-tdep.c (tic6x_linux_rt_sigreturn_tramp_frame): Use | |
4618 | ULONGEST_MAX. | |
4619 | * sparc64-linux-tdep.c (sparc64_linux_rt_sigframe): Use | |
4620 | ULONGEST_MAX. | |
4621 | * sparc-linux-tdep.c (sparc32_linux_sigframe) | |
4622 | (sparc32_linux_rt_sigframe): Use ULONGEST_MAX. | |
4623 | * ppc-nbsd-tdep.c (ppcnbsd_sigtramp, ppcnbsd2_sigtramp): Use | |
4624 | ULONGEST_MAX. | |
4625 | * ppc-linux-tdep.c (ppc32_linux_sigaction_tramp_frame) | |
4626 | (ppc64_linux_sigaction_tramp_frame) | |
4627 | (ppc32_linux_sighandler_tramp_frame) | |
4628 | (ppc64_linux_sighandler_tramp_frame): Use ULONGEST_MAX. | |
4629 | * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame) | |
4630 | (nios2_r2_linux_rt_sigreturn_tramp_frame): Use ULONGEST_MAX. | |
4631 | * mn10300-linux-tdep.c (am33_linux_sigframe) | |
4632 | (am33_linux_rt_sigframe): Use ULONGEST_MAX. | |
4633 | * mips64-obsd-tdep.c (mips64obsd_sigframe): Use ULONGEST_MAX. | |
4634 | * mips-linux-tdep.c (mips_linux_o32_sigframe) | |
4635 | (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe) | |
4636 | (mips_linux_n64_rt_sigframe, micromips_linux_o32_sigframe) | |
4637 | (micromips_linux_o32_rt_sigframe, micromips_linux_n32_rt_sigframe) | |
4638 | (micromips_linux_n64_rt_sigframe): Use ULONGEST_MAX. | |
4639 | * mips-fbsd-tdep.c (mips_fbsd_sigframe, mipsn32_fbsd_sigframe) | |
4640 | (mips64_fbsd_sigframe): Use ULONGEST_MAX. | |
4641 | * microblaze-linux-tdep.c | |
4642 | (microblaze_linux_sighandler_tramp_frame): Use ULONGEST_MAX. | |
4643 | * i386-nbsd-tdep.c (i386nbsd_sigtramp_sc16, i386nbsd_sigtramp_sc2) | |
4644 | (i386nbsd_sigtramp_si2, i386nbsd_sigtramp_si31) | |
4645 | (i386nbsd_sigtramp_si4): Use ULONGEST_MAX. | |
4646 | * hppa-nbsd-tdep.c (hppanbsd_sigtramp_si4): Use ULONGEST_MAX. | |
4647 | * common/common-types.h (ULONGEST_MAX): New define. | |
4648 | (CORE_ADDR_MAX): Fix formatting. | |
4649 | * bfin-linux-tdep.c (bfin_linux_sigframe): Use ULONGEST_MAX. | |
4650 | * arm-obsd-tdep.c (armobsd_sigframe): Use ULONGEST_MAX. | |
4651 | * arm-linux-tdep.c (arm_linux_sigreturn_tramp_frame) | |
4652 | (arm_linux_rt_sigreturn_tramp_frame) | |
4653 | (arm_eabi_linux_sigreturn_tramp_frame) | |
4654 | (arm_eabi_linux_rt_sigreturn_tramp_frame) | |
4655 | (thumb2_eabi_linux_sigreturn_tramp_frame) | |
4656 | (thumb2_eabi_linux_rt_sigreturn_tramp_frame) | |
4657 | (arm_linux_restart_syscall_tramp_frame) | |
4658 | (arm_kernel_linux_restart_syscall_tramp_frame): Use ULONGEST_MAX. | |
4659 | * arm-fbsd-tdep.c (arm_fbsd_sigframe): Use ULONGEST_MAX. | |
4660 | * aarch64-linux-tdep.c (aarch64_linux_rt_sigframe): Use | |
4661 | ULONGEST_MAX. | |
4662 | * aarch64-fbsd-tdep.c (aarch64_fbsd_sigframe): Use ULONGEST_MAX. | |
4663 | ||
70ab8ccd TT |
4664 | 2018-08-27 Tom Tromey <tom@tromey.com> |
4665 | ||
4666 | * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Use | |
4667 | CORE_ADDR_MAX. | |
4668 | * mips-tdep.c (mips_deal_with_atomic_sequence) | |
4669 | (micromips_deal_with_atomic_sequence): Use CORE_ADDR_MAX. | |
4670 | * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw) | |
4671 | (arm_deal_with_atomic_sequence_raw): Use CORE_ADDR_MAX. | |
4672 | * alpha-tdep.c (alpha_deal_with_atomic_sequence): Use | |
4673 | CORE_ADDR_MAX. | |
4674 | * aarch64-tdep.c (aarch64_software_single_step): Use | |
4675 | CORE_ADDR_MAX. | |
4676 | ||
896a7aa6 TT |
4677 | 2018-08-27 Tom Tromey <tom@tromey.com> |
4678 | ||
4679 | * linespec.c (complete_linespec_component): Add cast to "char". | |
4680 | * completer.c (completion_tracker::build_completion_result): Add | |
4681 | cast to "char". | |
4682 | ||
dd33d41d SM |
4683 | 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca> |
4684 | ||
4685 | * solist.h (struct solist, struct target_so_ops): Fix | |
4686 | indentation. | |
4687 | ||
c645cda4 SM |
4688 | 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca> |
4689 | ||
4690 | * ada-tasks.c (ada_task_info_s): Remove typedef. | |
4691 | (DEF_VEC_O(ada_task_info_s)): Remove. | |
4692 | (struct ada_tasks_inferior_data): Initialize fields. | |
4693 | <task_list>: Make an std::vector. | |
4694 | (get_ada_tasks_inferior_data): Allocate with new. | |
4695 | (ada_get_task_number): Adjust. | |
4696 | (get_task_number_from_id): Likewise. | |
4697 | (valid_task_id): Likewise. | |
4698 | (ada_get_task_info_from_ptid): Likewise. | |
4699 | (iterate_over_live_ada_tasks): Likewise. | |
4700 | (add_ada_task): Likewise. | |
4701 | (read_known_tasks): Likewise. | |
4702 | (ada_build_task_list): Likewise. | |
4703 | (print_ada_task_info): Likewise. | |
4704 | (info_task): Likewise. | |
4705 | (task_command_1): Likewise. | |
4706 | ||
39e7af3e SM |
4707 | 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca> |
4708 | ||
4709 | * ada-lang.c (add_angle_brackets): Return std::string. | |
4710 | ||
bbbbbcee SM |
4711 | 2018-08-25 Simon Marchi <simon.marchi@polymtl.ca> |
4712 | ||
4713 | * python/py-threadevent.c (py_get_event_thread): Initialize | |
4714 | pythread. | |
4715 | ||
d98fc15b PA |
4716 | 2018-08-24 Pedro Alves <palves@redhat.com> |
4717 | ||
4718 | * python/py-bpevent.c (create_breakpoint_event_object): Use | |
4719 | copy-initialization. | |
4720 | * python/py-continueevent.c (emit_continue_event): Use | |
4721 | copy-initialization. | |
4722 | * python/py-exitedevent.c (create_exited_event_object): Return a | |
4723 | gdbpy_ref<>. | |
4724 | (emit_exited_event): Use copy-initialization. | |
4725 | * python/py-inferior.c (python_new_inferior) | |
4726 | (python_inferior_deleted, add_thread_object): Use | |
4727 | copy-initialization. | |
4728 | * python/py-infevents.c (create_inferior_call_event_object) | |
4729 | (create_register_changed_event_object) | |
4730 | (create_memory_changed_event_object): Return a gdbpy_ref<>. | |
4731 | (emit_inferior_call_event, emit_memory_changed_event) | |
4732 | (emit_register_changed_event): Use copy-initialization. | |
4733 | * python/py-newobjfileevent.c (create_new_objfile_event_object): | |
4734 | Return a gdbpy_ref<>. | |
4735 | (emit_new_objfile_event): Use copy-initialization. | |
4736 | (create_clear_objfiles_event_object): Return a gdbpy_ref<>. | |
4737 | (emit_clear_objfiles_event): Use copy-initialization. | |
4738 | * python/py-signalevent.c (create_signal_event_object): Use | |
4739 | copy-initialization. | |
4740 | * python/py-threadevent.c (create_thread_event_object): Use | |
4741 | copy-initialization. | |
4742 | ||
da3c8738 PA |
4743 | 2018-08-24 Pedro Alves <palves@redhat.com> |
4744 | Simon Marchi <simon.marchi@ericsson.com> | |
4745 | ||
4746 | PR gdb/23379 | |
4747 | * python/py-continueevent.c: Include "gdbthread.h". | |
4748 | (create_continue_event_object): Add intro comment. Add 'ptid' | |
4749 | parameter. Use it to find thread to pass to | |
4750 | create_thread_event_object. | |
4751 | (emit_continue_event): Pass PTID down to | |
4752 | create_continue_event_object. | |
4753 | * python/py-event.h (py_get_event_thread): Declare. | |
4754 | (create_thread_event_object): Remove default from 'thread' | |
4755 | parameter. | |
4756 | * python/py-stopevent.c (create_stop_event_object): Use | |
4757 | py_get_event_thread. | |
4758 | * python/py-threadevent.c (get_event_thread): Rename to ... | |
4759 | (py_get_event_thread): ... this, make extern, add 'ptid' parameter | |
4760 | and use it to find the thread. | |
4761 | (create_thread_event_object): Assert that THREAD isn't null. | |
4762 | Don't find the event thread here. | |
4763 | ||
26457a9c KB |
4764 | 2018-08-23 Kevin Buettner <kevinb@redhat.com> |
4765 | ||
4766 | * block.h (blockrange, blockranges): New struct declarations. | |
4767 | (struct block): Add new field named `ranges'. | |
4768 | (BLOCK_RANGES, BLOCK_NRANGES, BLOCK_RANGE, BLOCK_CONTIGUOUS_P) | |
4769 | (BLOCK_RANGE_START, BLOCK_RANGE_END, BLOCK_ENTRY_PC): New | |
4770 | macros for accessing ranges in struct block. | |
4771 | (make_blockranges): New declaration. | |
4772 | block.c (make_blockranges): New function. | |
2d5f09ec KB |
4773 | * dwarf2read.c (dwarf2_record_block_ranges): Fill in BLOCK_RANGES |
4774 | for block. | |
fc811edd KB |
4775 | * symtab.h (find_pc_partial_function): Add new parameter `block'. |
4776 | * blockframe.c (cache_pc_function_block): New static global. | |
4777 | (clear_pc_function_cache): Clear cache_pc_function_block. | |
4778 | (find_pc_partial_function): Move comment to symtab.h. Add | |
4779 | support for non-contiguous blocks. | |
e9480230 KB |
4780 | * cli/cli-cmds.c (block.h): Include. |
4781 | (print_disassembly): Handle printing of non-contiguous blocks. | |
4782 | (disassemble_current_function): Likewise. | |
4783 | (disassemble_command): Likewise. | |
26457a9c | 4784 | |
2b1ffcfd KB |
4785 | * ax-gdb.c (gen_var_ref): Use BLOCK_ENTRY_PC in place of |
4786 | BLOCK_START. | |
4787 | * blockframe.c (get_pc_function_start): Likewise. | |
4788 | * compile/compile-c-symbols.c (convert_one_symbol): Likewise. | |
4789 | (gcc_symbol_address): Likewise. | |
4790 | * compile/compile-object-run.c (compile_object_run): Likewise. | |
4791 | * compile/compile.c (get_expr_block_and_pc): Likewise. | |
4792 | * dwarf2loc.c (dwarf2_find_location_expression): Likewise. | |
4793 | (func_addr_to_tail_call_list): Likewise. | |
4794 | * findvar.c (default_read_var_value): Likewise. | |
4795 | * inline-frame.c (inline_frame_this_id): Likewise. | |
4796 | (skip-inline_frames): Likewise. | |
4797 | * infcmd.c (until_next_command): Likewise. | |
4798 | * linespec.c (convert_linespec_to_sals): Likewise. | |
4799 | * parse.c (parse_exp_in_context_1): Likewise. | |
4800 | * printcmd.c (build_address_symbolic): likewise. | |
4801 | (info_address_command): Likewise. | |
4802 | symtab.c (find_function_start_sal): Likewise. | |
4803 | (skip_prologue_sal): Likewise. | |
4804 | (find_function_alias_target): Likewise. | |
4805 | (find_gnu_ifunc): Likewise. | |
4806 | * stack.c (find_frame_funname): Likewise. | |
4807 | * symtab.c (fixup_symbol_section): Likewise. | |
4808 | (find_function_start_sal): Likewise. | |
4809 | (skip_prologue_sal): Likewsie. | |
4810 | (find_function_alias_target): Likewise. | |
4811 | (find_gnu_ifunc): Likewise. | |
4812 | * tracepoint.c (info_scope_command): Likewise. | |
4813 | * value.c (value_fn_field): Likewise. | |
4814 | ||
9644dc3a KB |
4815 | * infrun.c (fill_in_stop_func): Use find_function_entry_range_from_pc |
4816 | in place of find_pc_partial_function. | |
4817 | * blockframe.c (find_function_entry_range_from_pc): New function. | |
4818 | * symtab.h (find_function_entry_range_from_pc): Declare and document. | |
4819 | * objfiles.c (objfile_relocate1): Relocate start and end addresses | |
4820 | for each range in a block. | |
4821 | ||
4822 | ||
12a0d0f6 XR |
4823 | 2018-08-23 Xavier Roirand <roirand@adacore.com> |
4824 | ||
4825 | * machoread.c (macho_symfile_read_all_oso): Remove uneeded | |
4826 | incrementation. | |
4827 | ||
d1012b8e SM |
4828 | 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca> |
4829 | ||
4830 | * solib-svr4.c (read_program_headers_from_bfd): Return | |
4831 | gdb::optional<gdb::byte_vector>. | |
4832 | (svr4_exec_displacement): Adjust. | |
4833 | ||
17658d46 SM |
4834 | 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca> |
4835 | ||
4836 | * solib-svr4.c (read_program_header): Return | |
4837 | gdb::optional<gdb::byte_vector>, remove p_sect_size param. | |
4838 | (find_program_interpreter): Return | |
4839 | gdb::optional<gdb::byte_vector>. | |
4840 | (scan_dyntag_auxv): Adjust. | |
4841 | (enable_break): Adjust. | |
4842 | (svr4_exec_displacement): Adjust. | |
4843 | ||
ae739fe7 SM |
4844 | 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca> |
4845 | ||
4846 | * inf-child.h (inf_child_target) <terminal_save_inferior>: New. | |
4847 | * inf-child.c (inf_child_target::terminal_save_inferior): New. | |
4848 | ||
467dc1e2 SM |
4849 | 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca> |
4850 | ||
4851 | * guile/scm-string.c (gdbscm_scm_from_printf): Use | |
4852 | string_vprintf. | |
4853 | * guile/scm-utils.c (gdbscm_printf): Likewise. | |
4854 | * serial.c (serial_printf): Likewise. | |
4855 | * xml-support.c (gdb_xml_parser::vdebug): Likewise. | |
4856 | ||
6d52907e JV |
4857 | 2018-08-22 Jan Vrany <jan.vrany@fit.cvut.cz> |
4858 | ||
4859 | * stack.c (print_frame): Print frame architecture when printing on | |
4860 | an MI output. | |
4861 | * NEWS: Mention new "arch" attribute in frame output. | |
4862 | ||
9758a8f8 AH |
4863 | 2018-08-21 Alan Hayward <alan.hayward@arm.com> |
4864 | ||
4865 | * arch/aarch64.h (aarch64_regnum): Update comment. | |
4866 | ||
1461bdac AH |
4867 | 2018-08-21 Alan Hayward <alan.hayward@arm.com> |
4868 | ||
4869 | * NEWS: Add SVE to 8.2 section. | |
4870 | ||
4895f384 PA |
4871 | 2018-08-21 Pedro Alves <palves@redhat.com> |
4872 | ||
4873 | * guile/scm-utils.c (gdbscm_parse_function_args_1): New, factored | |
4874 | out from gdbscm_parse_function_args. | |
4875 | (gdbscm_parse_function_args): Rework to use gdbscm_wrap and | |
4876 | gdbscm_parse_function_args_1. | |
4877 | ||
a4497d2f SM |
4878 | 2018-08-21 Simon Marchi <simon.marchi@ericsson.com> |
4879 | ||
4880 | PR gdb/17816 | |
4881 | * m32c-tdep.c (m32c_decode_srcdest4): Remove unnecessary ternary | |
4882 | operator. | |
4883 | ||
c44deb73 SM |
4884 | 2018-08-19 Simon Marchi <simon.marchi@polymtl.ca> |
4885 | ||
4886 | * solib-svr4.c (svr4_exec_displacement): Fix formatting. | |
4887 | ||
be2d111a MS |
4888 | 2018-08-19 Michael Spang <spang@google.com> |
4889 | ||
4890 | PR gdb/11786 | |
4891 | * solib-svr4.c (svr4_exec_displacement): Ignore memsz fields | |
4892 | for PT_TLS segments. | |
4893 | ||
a6b786da KB |
4894 | 2018-08-18 Kevin Buettner <kevinb@redhat.com> |
4895 | ||
4896 | * dwarf2expr.h (struct dwarf_expr_context): Add virtual method | |
4897 | dwarf_variable_value. | |
4898 | * dwarf2-frame.c (class dwarf_expr_executor): | |
4899 | Add override for dwarf_variable_value. | |
4900 | * dwarf2loc.c (class dwarf_evaluate_loc_desc): Likewise. | |
4901 | (class symbol_needs_eval_context): Likewise. | |
4902 | (indirect_synthetic_pointer): Add forward declaration. | |
4903 | (sect_variable_value): New function. | |
4904 | (dwarf2_compile_expr_to_ax): Add case for DW_OP_GNU_variable_value. | |
4905 | * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Add case | |
4906 | for DW_OP_GNU_variable_value. | |
4907 | ||
89fbedf3 TT |
4908 | 2018-08-16 Tom Tromey <tom@tromey.com> |
4909 | ||
4910 | * top.c (read_command_file): Update. | |
4911 | (command_line_input): Remove "repeat" argument. | |
4912 | * ada-lang.c (get_selections): Update. | |
4913 | * linespec.c (decode_line_2): Update. | |
4914 | * defs.h (command_line_input): Remove argument. | |
4915 | * cli/cli-script.c (read_next_line): Update. | |
4916 | * python/py-gdb-readline.c: Update. | |
4917 | ||
12582533 TT |
4918 | 2018-08-17 Tom Tromey <tom@tromey.com> |
4919 | ||
4920 | * cli/cli-script.c (read_next_line): Pass 0 as repeat argument to | |
4921 | command_line_input. | |
4922 | ||
49514353 TT |
4923 | 2018-08-15 Tom Tromey <tom@tromey.com> |
4924 | ||
4925 | * aarch64-linux-tdep.c (aarch64_linux_core_read_vq): Use pulongest. | |
4926 | ||
26fb3983 JV |
4927 | 2018-08-14 Jan Vrany <jan.vrany@fit.cvut.cz> |
4928 | ||
4929 | * mi/mi-cmd-disas.c (mi_cmd_disassemble): Add -a option. | |
4930 | If used, use find_pc_partial_function to find address range | |
4931 | to disassemble. | |
4932 | * mi/mi-main.c (mi_cmd_list_features): Report | |
4933 | "data-disassemble-a-option" feature. | |
4934 | * NEWS: Mention new -data-disassemble option -a. | |
4935 | ||
a97b53dd TT |
4936 | 2018-08-13 Tom Tromey <tom@tromey.com> |
4937 | ||
4938 | * common/common-defs.h (_FORTIFY_SOURCE): Define. | |
4939 | ||
0c76e06d AH |
4940 | 2018-08-13 Alan Hayward <alan.hayward@arm.com> |
4941 | ||
4942 | * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): New function. | |
4943 | (aarch64_linux_collect_sve_regset): Likewise. | |
4944 | (aarch64_linux_iterate_over_regset_sections): Check for SVE. | |
4945 | * regcache.h (regcache_map_entry_size): New function. | |
4946 | ||
b7fd65b9 AH |
4947 | 2018-08-13 Alan Hayward <alan.hayward@arm.com> |
4948 | ||
4949 | * aarch64-linux-tdep.c (SVE_HEADER_SIZE_LENGTH): Add define. | |
4950 | (SVE_HEADER_MAX_SIZE_LENGTH): Likewise. | |
4951 | (SVE_HEADER_VL_LENGTH): Likewise. | |
4952 | (SVE_HEADER_MAX_VL_LENGTH): Likewise. | |
4953 | (SVE_HEADER_FLAGS_LENGTH): Likewise. | |
4954 | (SVE_HEADER_RESERVED_LENGTH): Likewise. | |
4955 | (SVE_HEADER_SIZE_OFFSET): Likewise. | |
4956 | (SVE_HEADER_MAX_SIZE_OFFSET): Likewise. | |
4957 | (SVE_HEADER_VL_OFFSET): Likewise. | |
4958 | (SVE_HEADER_MAX_VL_OFFSET): Likewise. | |
4959 | (SVE_HEADER_FLAGS_OFFSET): Likewise. | |
4960 | (SVE_HEADER_RESERVED_OFFSET): Likewise. | |
4961 | (SVE_HEADER_SIZE): Likewise. | |
4962 | (aarch64_linux_core_read_vq): Add function. | |
4963 | (aarch64_linux_core_read_description): Check for SVE section. | |
4964 | ||
a616bb94 AH |
4965 | 2018-08-13 Alan Hayward <alan.hayward@arm.com> |
4966 | ||
4967 | * aarch64-fbsd-tdep.c | |
4968 | (aarch64_fbsd_iterate_over_regset_sections): Add supply_size and | |
4969 | collect_size. | |
4970 | * aarch64-linux-tdep.c | |
4971 | (aarch64_linux_iterate_over_regset_sections): Likewise. | |
4972 | * alpha-linux-tdep.c | |
4973 | (alpha_linux_iterate_over_regset_sections): | |
4974 | * alpha-nbsd-tdep.c | |
4975 | (alphanbsd_iterate_over_regset_sections): Likewise. | |
4976 | * amd64-fbsd-tdep.c | |
4977 | (amd64fbsd_iterate_over_regset_sections): Likewise. | |
4978 | * amd64-linux-tdep.c | |
4979 | (amd64_linux_iterate_over_regset_sections): Likewise. | |
4980 | * arm-bsd-tdep.c | |
4981 | (armbsd_iterate_over_regset_sections): Likewise. | |
4982 | * arm-fbsd-tdep.c | |
4983 | (arm_fbsd_iterate_over_regset_sections): Likewise. | |
4984 | * arm-linux-tdep.c | |
4985 | (arm_linux_iterate_over_regset_sections): Likewise. | |
4986 | * corelow.c (get_core_registers_cb): Likewise. | |
4987 | (core_target::fetch_registers): Likewise. | |
4988 | * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise. | |
4989 | * frv-linux-tdep.c (frv_linux_iterate_over_regset_sections): Likewise. | |
4990 | * gdbarch.h (void): Regenerate. | |
4991 | * gdbarch.sh: Add supply_size and collect_size. | |
4992 | * hppa-linux-tdep.c (hppa_linux_iterate_over_regset_sections): Likewise. | |
4993 | * hppa-nbsd-tdep.c (hppanbsd_iterate_over_regset_sections): Likewise. | |
4994 | * hppa-obsd-tdep.c (hppaobsd_iterate_over_regset_sections): Likewise. | |
4995 | * i386-fbsd-tdep.c (i386fbsd_iterate_over_regset_sections): Likewise. | |
4996 | * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections): Likewise. | |
4997 | * i386-tdep.c (i386_iterate_over_regset_sections): Likewise. | |
4998 | * ia64-linux-tdep.c (ia64_linux_iterate_over_regset_sections): Likewise. | |
4999 | * linux-tdep.c (linux_collect_regset_section_cb): Likewise. | |
5000 | * m32r-linux-tdep.c (m32r_linux_iterate_over_regset_sections): Likewise. | |
5001 | * m68k-bsd-tdep.c (m68kbsd_iterate_over_regset_sections): Likewise. | |
5002 | * m68k-linux-tdep.c (m68k_linux_iterate_over_regset_sections): Likewise. | |
5003 | * mips-fbsd-tdep.c (mips_fbsd_iterate_over_regset_sections): Likewise. | |
5004 | * mips-linux-tdep.c (mips_linux_iterate_over_regset_sections): Likewise. | |
5005 | * mips-nbsd-tdep.c (mipsnbsd_iterate_over_regset_sections): Likewise. | |
4399bce9 PA |
5006 | * mips64-obsd-tdep.c (mips64obsd_iterate_over_regset_sections): |
5007 | Likewise. | |
a616bb94 AH |
5008 | * mn10300-linux-tdep.c (am33_iterate_over_regset_sections): Likewise. |
5009 | * nios2-linux-tdep.c (nios2_iterate_over_regset_sections): Likewise. | |
5010 | * ppc-fbsd-tdep.c (ppcfbsd_iterate_over_regset_sections): Likewise. | |
5011 | * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections): Likewise. | |
5012 | * ppc-nbsd-tdep.c (ppcnbsd_iterate_over_regset_sections): Likewise. | |
5013 | * ppc-obsd-tdep.c (ppcobsd_iterate_over_regset_sections): Likewise. | |
4399bce9 PA |
5014 | * riscv-linux-tdep.c (riscv_linux_iterate_over_regset_sections): |
5015 | Likewise. | |
a616bb94 AH |
5016 | * rs6000-aix-tdep.c (rs6000_aix_iterate_over_regset_sections): Likewise. |
5017 | * s390-linux-tdep.c (s390_iterate_over_regset_sections): Likewise. | |
5018 | * score-tdep.c (score7_linux_iterate_over_regset_sections): Likewise. | |
5019 | * sh-tdep.c (sh_iterate_over_regset_sections): Likewise. | |
5020 | * sparc-tdep.c (sparc_iterate_over_regset_sections): Likewise. | |
5021 | * tilegx-linux-tdep.c (tilegx_iterate_over_regset_sections): Likewise. | |
5022 | * vax-tdep.c (vax_iterate_over_regset_sections): Likewise. | |
5023 | * xtensa-tdep.c (xtensa_iterate_over_regset_sections): Likewise. | |
5024 | ||
a9925d4f SM |
5025 | 2018-08-10 Simon Marchi <simon.marchi@ericsson.com> |
5026 | ||
5027 | * nat/linux-osdata.c (commandline_from_pid): Replace xstrprintf | |
5028 | with string_printf. | |
5029 | ||
ad3a68e9 KS |
5030 | 2018-08-10 Keith Seitz <keiths@redhat.com> |
5031 | ||
5032 | * compile/compile-c-support.c (add_code_header, add_code_footer): | |
5033 | Move into policy class. | |
5034 | (c_push_user_expression, pop_user_expression_nop) | |
5035 | (c_add_code_header, c_add_code_footer, c_add_input): New policy class. | |
5036 | (compile_program): New host class. | |
5037 | (c_compile_program): New typedef. | |
5038 | (c_compute_porgram): Use c_compile_program. | |
5039 | ||
0cfbf430 KS |
5040 | 2018-08-10 Keith Seitz <keiths@redhat.com> |
5041 | ||
5042 | * compile/compile-internal.h (compile_instance::~compile_instance): | |
5043 | Remove calls to htab_delete. | |
5044 | <m_type_map, m_symbol_err_map>: Switch type to htab_up. | |
5045 | * compile.c (compile_instance::compile_instance): Initialize | |
5046 | htab unique pointers. | |
5047 | (compile_instance::get_cached_type, compile_instance::insert_type) | |
5048 | (compile_instance::error_symbol_once): Update for unique_ptr. | |
5049 | ||
946d3d10 KS |
5050 | 2018-08-10 Keith Seitz <keiths@redhat.com> |
5051 | ||
5052 | * compile/compile-c-symbols.c (struct symbol_error) | |
5053 | (hash_symbol_error, eq_symbol_error, del_symbol_error) | |
5054 | (compile_instance::insert_symbol_error) | |
5055 | (compile_instance::error_symbol_once): Move to ... | |
5056 | * compile/compile.c: ... here. | |
5057 | ||
9cdfd9a2 KS |
5058 | 2018-08-10 Keith Seitz <keiths@redhat.com> |
5059 | ||
5060 | * compile/compile-c-support.c (c_get_compile_context): Use `new' | |
5061 | instead of `new_compile_instance'. | |
5062 | * compile/compile-c-symbols.c (compile_instance::insert_symbol_error): | |
5063 | Update description. | |
5064 | If the symbol error map is not initialized, create it. | |
5065 | (generate_c_for_for_one_symbol): Do not check/initialize | |
5066 | the symbol error map. | |
5067 | * compile/compile-c-types.c (compile_c_instance): Make a class. | |
5068 | Update all callers. | |
5069 | (compile_instance::compile_instance): Initialize the type cache. | |
5070 | (get_cached_type): New function. | |
5071 | (insert_type): Update description. | |
5072 | (compile_c_instance::m_default_cflags): Define. | |
5073 | (convert_type): Update description. Use get_cached_type. | |
5074 | (delete_instance): Moved to destructor. | |
5075 | (new_compile_instance): Moved to constructor. | |
5076 | * compile/compile-c.h (compile_c_instance): Make class inheriting | |
5077 | from compile_instance. | |
5078 | <base>: Remove field. | |
5079 | <type_map, symbol_err_map>: Move to base class. | |
5080 | <c_plugin>: Rename to `m_plugin' and remove pointer type. | |
5081 | * compile/compile-internal.h (compile_instance): Make class. | |
5082 | <type_map_t, symbol_err_map_t>: Define. | |
5083 | <fe>: Rename to `m_gcc_fe'. | |
5084 | <scope, block, gcc_target_options>: Add `m_' prefix. | |
5085 | <m_type_map, m_symbol_err_map>: New fields, moved from | |
5086 | compile_c_instance. | |
5087 | <destroy>: Remove. | |
5088 | (convert_type, new_compile_instance): Remove. | |
5089 | * compile/compile.c (cleanup_compile_instance): Remove. | |
5090 | (compile_to_object): Use unique_ptr to eliminate cleanups. | |
5091 | (compile_instance::set_print_callback, compile_instance::version) | |
5092 | (compile_instance::set_verbose) | |
5093 | (compile_instance::set_driver_filename) | |
5094 | (compile_instance::set_triplet_regexp) | |
5095 | (compile_instance::set_arguments) | |
5096 | (compile_instance::set_source_file) | |
5097 | (compile_instance::compile): Define. | |
5098 | ||
18cdc6d8 KS |
5099 | 2018-08-10 Keith Seitz <keiths@redhat.com> |
5100 | ||
5101 | * Makefile.in (HFILES_NO_SRCDIR): Add compile/gcc-c-plugin.h. | |
5102 | * compile/compile-c-types.c: Define GCC_METHODN macros and include | |
5103 | gcc-c-fe.def to define C plugin. | |
5104 | (delete_instance): Delete `c_plugin'. | |
5105 | (new_compile_instance): Initialize `c_plugin'. | |
5106 | * compile/compile-c.h: Include gcc_c_plugin.h. | |
5107 | (struct compile_c_instance) <c_plugin>: New member. | |
5108 | * gcc-c-plugin.h: New file. | |
5109 | Update all callers with API change. | |
5110 | ||
b7dc48b4 KS |
5111 | 2018-08-10 Keith Seitz <keiths@redhat.com> |
5112 | ||
5113 | * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Move header files ... | |
5114 | (HFILES_NO_SRCDIR): ... to here. | |
5115 | Add compile-internal.h and compile-c.h. | |
5116 | * compile/compile-c-support.c: Include compile-c.h. | |
5117 | * compile/compile-c-symbols.c: Include compile-c.h. | |
5118 | (generate_c_for_variable_locations): Update comment. | |
5119 | * compile/compile-c-types.c: Include compile-c.h. | |
5120 | * compile/compile-c.h: New file -- moved C language declarations | |
5121 | from other files here. | |
5122 | * compile/compile-internal.h: Do not include hashtab.h or | |
5123 | common/enum-flags.h. | |
5124 | (gcc_qualifiers_flags, struct compile_c_instance, C_CTX) | |
5125 | (gcc_convert_symbol, gcc_symbol_address) | |
5126 | (generate_c_for_variable_locations, c_get_mode_for_size) | |
5127 | (c_get_range_decl_name): Definitions moved to compile-c.h. | |
5128 | * compile/compile-loc2c.c: Include compile-c.h. | |
5129 | ||
6f36b6d2 KS |
5130 | 2018-08-10 Keith Seitz <keiths@redhat.com> |
5131 | ||
5132 | * compile/compile-c-symbols.c (symbol_substitution_name): Rename to ... | |
5133 | (c_symbol_substitution_name): ... this. | |
5134 | Update all callers. | |
5135 | ||
bd923e51 KS |
5136 | 2018-08-10 Keith Seitz <keiths@redhat.com> |
5137 | ||
5138 | * compile/compile-c-support.c (c_compute_program): Use | |
5139 | unique_xmalloc_ptr to eliminate cleanup. | |
5140 | * compile/compile-c-symbols.c (generate_c_for_variable_locations): | |
5141 | Return a unique_xmalloc_ptr and eliminate cleanup. | |
5142 | * compile/compile-internal.h (generate_c_for_variable_locations): | |
5143 | Return unique_xmalloc_ptr and update description. | |
5144 | ||
dbd534fe AH |
5145 | 2018-08-10 Alan Hayward <alan.hayward@arm.com> |
5146 | ||
5147 | * corelow.c (core_target::get_core_register_section): Rename | |
5148 | min_size to section_min_size. | |
5149 | ||
90ad3654 JW |
5150 | 2018-08-09 Jim Wilson <jimw@sifive.com> |
5151 | ||
52a187f8 JW |
5152 | * Makefile.in (ALL_TARGET_OBS): Add riscv-linux-tdep.c. |
5153 | (ALLDEPFILES): Add riscv-linux-nat.c, and riscv-linux-tdep.c. | |
5154 | * NEWS: Mention new GNU/Linux RISC-V target. | |
5155 | * configure.host: Add riscv*-*-linux*. | |
5156 | * configure.nat: Add riscv*. | |
5157 | * configure.tgt: Add riscv*-*-linux*. | |
3c77f97e | 5158 | * riscv-linux-nat.c: New file. |
90ad3654 JW |
5159 | * riscv-linux-tdep.c: New file. |
5160 | ||
aff4e175 AB |
5161 | 2018-08-09 Andrew Burgess <andrew.burgess@embecosm.com> |
5162 | ||
5163 | * infrun.c (resume): Make static, add forward declaration. | |
5164 | (proceed): Update header comment. | |
5165 | * infrun.h (resume): Delete declaration. | |
5166 | ||
06ab9219 TT |
5167 | 2018-08-09 Tom Tromey <tom@tromey.com> |
5168 | ||
5169 | * riscv-tdep.h: Minor formatting fixes. | |
5170 | ||
83c8d318 SM |
5171 | 2018-08-09 Simon Marchi <simon.marchi@ericsson.com> |
5172 | ||
5173 | * common/scoped_mmap.c (mmap_file): Silence ARI warning. | |
5174 | * dwarf-index-cache.c (create_dir_and_check): Likewise. | |
5175 | (test_mkdir_recursive): Likewise. | |
5176 | * dwarf-index-write.c (write_psymtabs_to_index): Likewise. | |
5177 | ||
5ff2bbae AB |
5178 | 2018-08-09 Andrew Burgess <andrew.burgess@embecosm.com> |
5179 | ||
5180 | * valarith.c (value_subscripted_rvalue): If an array is not in | |
5181 | memory, and we don't know the upper bound, then we can't know that | |
5182 | the requested element exists or not. | |
5183 | ||
fdbac7d8 SM |
5184 | 2018-08-08 Simon Marchi <simon.marchi@ericsson.com> |
5185 | ||
5186 | * target.c (str_comma_list_concat_elem): Fix typo in comment. | |
5187 | (target_options_to_string): Add comment. | |
5188 | ||
83202f7a TT |
5189 | 2018-08-08 Tom Tromey <tom@tromey.com> |
5190 | ||
5191 | * unittests/scoped_mmap-selftests.c: Check result of "write". | |
5192 | ||
411baa47 JW |
5193 | 2018-08-08 Jim Wilson <jimw@sifive.com> |
5194 | ||
5c720ed8 JW |
5195 | * riscv-tdep.c (enum opcode): Add jump, branch, lr, and sc opcodes. |
5196 | (decode_register_index_short): New. | |
5197 | (decode_j_type_insn, decode_cj_type_insn): New. | |
5198 | (decode_b_type_insn, decode_cb_type_insn): New. | |
5199 | (riscv_insn::decode): Add support for jumps, branches, lr, and sc. New | |
5200 | local xlen. Check xlen when decoding ambiguous compressed insns. In | |
5201 | compressed decode, use is_c_lui_insn instead of is_lui_insn, and | |
5202 | is_c_sw_insn instead of is_sw_insn. | |
5203 | (riscv_next_pc, riscv_next_pc_atomic_sequence): New. | |
5204 | (riscv_software_single_step): New. | |
5205 | * riscv-tdep.h (riscv_software_single_step): Declare. | |
5206 | ||
411baa47 JW |
5207 | * riscv-tdep.c (riscv_isa_xlen): Drop static. |
5208 | * riscv-tdep.h (riscv_isa_xlen): Add extern declaration. | |
5209 | ||
9d4a934c AB |
5210 | 2018-08-08 Andrew Burgess <andrew.burgess@embecosm.com> |
5211 | ||
5212 | PR gdb/18050: | |
5213 | * target.c (dispose_inferior): Don't dispose of inferiors that are | |
5214 | already killed. | |
5215 | ||
ff36536c SN |
5216 | 2018-08-08 Szabolcs Nagy <szabolcs.nagy@arm.com> |
5217 | ||
5218 | * remote.c (remote_target::download_tracepoint): Change char* to | |
5219 | const char*. | |
5220 | ||
09ce46f2 SM |
5221 | 2018-08-07 Simon Marchi <simon.marchi@polymtl.ca> |
5222 | ||
5223 | * target.h (target_options_to_string): Return an std::string. | |
5224 | * target.c (str_comma_list_concat_elem): Return void, use | |
5225 | std::string. | |
5226 | (do_option): Likewise. | |
5227 | (target_options_to_string): Return an std::string. | |
5228 | * linux-nat.c (linux_nat_target::wait): Adjust. | |
5229 | * target-debug.h (target_debug_print_options): Adjust. | |
5230 | ||
9c612964 TT |
5231 | 2018-08-07 Tom Tromey <tom@tromey.com> |
5232 | ||
5233 | * Makefile.in (CPPFLAGS): New variable. | |
5234 | (INTERNAL_CPPFLAGS): Use it. | |
5235 | ||
7d11235d SM |
5236 | 2018-08-07 Simon Marchi <simon.marchi@ericsson.com> |
5237 | ||
5238 | * NEWS: Mention the index cache. | |
5239 | ||
87d6a7aa SM |
5240 | 2018-08-07 Simon Marchi <simon.marchi@ericsson.com> |
5241 | ||
5242 | * common/pathstuff.h (get_standard_cache_dir): New. | |
5243 | * common/pathstuff.c (get_standard_cache_dir): New. | |
5244 | * build-id.h (build_id_to_string): New. | |
5245 | * dwarf-index-common.h (INDEX4_SUFFIX, INDEX5_SUFFIX, | |
5246 | DEBUG_STR_SUFFIX): Move to here. | |
5247 | * dwarf-index-write.c (INDEX4_SUFFIX, INDEX5_SUFFIX, | |
5248 | DEBUG_STR_SUFFIX): Move from there. | |
5249 | (write_psymtabs_to_index): Make non-static, add basename | |
5250 | parameter. Write to temporary files, rename when done. | |
5251 | (save_gdb_index_command): Adjust call to | |
5252 | write_psymtabs_to_index. | |
5253 | * dwarf2read.h (dwarf2_per_objfile) <index_cache_res>: New | |
5254 | field. | |
5255 | * dwarf2read.c (dwz_file) <index_cache_res>: New field. | |
5256 | (get_gdb_index_contents_from_cache): New. | |
5257 | (get_gdb_index_contents_from_cache_dwz): New. | |
5258 | (dwarf2_initialize_objfile): Read index from cache. | |
5259 | (dwarf2_build_psymtabs): Save to index. | |
5260 | * dwarf-index-cache.h: New file. | |
5261 | * dwarf-index-cache.c: New file. | |
5262 | * dwarf-index-write.h: New file. | |
5263 | ||
8a99096f SM |
5264 | 2018-08-07 Simon Marchi <simon.marchi@ericsson.com> |
5265 | ||
5266 | * gnulib/aclocal.m4: Re-generate. | |
5267 | * gnulib/config.in: Re-generate. | |
5268 | * gnulib/configure: Re-generate. | |
5269 | * gnulib/import/Makefile.am: Re-generate. | |
5270 | * gnulib/import/Makefile.in: Re-generate. | |
5271 | * gnulib/import/m4/gnulib-cache.m4: Re-generate. | |
5272 | * gnulib/import/m4/gnulib-comp.m4: Re-generate. | |
5273 | * gnulib/import/m4/mkdir.m4: New file. | |
5274 | * gnulib/import/mkdir.c: New file. | |
5275 | * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkdir | |
5276 | module. | |
5277 | ||
5c831bb1 SM |
5278 | 2018-08-07 Simon Marchi <simon.marchi@ericsson.com> |
5279 | ||
5280 | * Makefile.in (COMMON_SFILES): Add common/scoped_mmap.c. | |
5281 | * common/scoped_mmap.c: New file. | |
5282 | * common/scoped_mmap.h (destroy): New method. | |
5283 | (~scoped_mmap, reset): Use destroy. | |
5284 | (scoped_mmap): New move constructor. | |
5285 | (mmap_file): New declaration. | |
5286 | * unittests/scoped_mmap-selftests.c (test_normal, | |
5287 | test_invalid_filename, run_tests): New functions. | |
5288 | (_initialize_scoped_mmap_selftests): Register selftest. | |
5289 | ||
4485a1c1 SM |
5290 | 2018-08-07 Simon Marchi <simon.marchi@ericsson.com> |
5291 | ||
5292 | * dwarf2read.c (read_gdb_index_from_section): Rename to... | |
5293 | (read_gdb_index_from_buffer): ... this. Remove section | |
5294 | parameter, add buffer parameter. | |
5295 | (get_gdb_index_contents_ftype, | |
5296 | get_gdb_index_contents_dwz_ftype): New typedefs. | |
5297 | (dwarf2_read_gdb_index): Add callback parameters to get the | |
5298 | index contents. | |
5299 | (get_gdb_index_contents_from_section): New. | |
5300 | (dwarf2_initialize_objfile): Update call to | |
5301 | dwarf2_read_gdb_index. | |
5302 | ||
528e1572 SM |
5303 | 2018-08-07 Simon Marchi <simon.marchi@ericsson.com> |
5304 | ||
5305 | * common/filestuff.h (gdb_fopen_cloexec): New overload. | |
5306 | (gdb_open_cloexec): Likewise. | |
5307 | * nat/linux-osdata.c (command_from_pid): Use string_printf. | |
5308 | (commandline_from_pid): Likewise. | |
5309 | (linux_xfer_osdata_threads): Likewise. | |
5310 | (linux_xfer_osdata_fds): Likewise. | |
5311 | * ada-lang.c (is_package_name): Likewise. | |
5312 | * auxv.c (procfs_xfer_auxv): Likewise. | |
5313 | * breakpoint.c (print_one_breakpoint_location): Use | |
5314 | uiout::field_fmt. | |
5315 | (print_one_catch_solib): Use string_printf. | |
5316 | * coff-pe-read.c (add_pe_exported_sym): Likewise. | |
5317 | (add_pe_forwarded_sym): Likewise. | |
5318 | * dwarf2read.c (create_type_unit_group): Likewise. | |
5319 | (build_error_marker_type): Likewise. | |
5320 | * infcall.c (get_function_name): Likewise. | |
5321 | * valprint.c (print_converted_chars_to_obstack): Likewise. | |
5322 | * xtensa-tdep.c (xtensa_register_type): Likewise. | |
5323 | ||
a7f25a84 SM |
5324 | 2018-08-06 Simon Marchi <simon.marchi@ericsson.com> |
5325 | ||
5326 | * remote.c (remote_target::download_tracepoint): Fix format | |
5327 | string errors. | |
5328 | ||
296956be PFC |
5329 | 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com> |
5330 | ||
5331 | * tracefile.c: Include common/byte-vector.h. | |
5332 | (trace_save): Change type of buf to gdb::byte_vector. Initialize | |
5333 | with trace_regblock_size if needed. Update uses of buf. | |
5334 | ||
a04b9d62 PFC |
5335 | 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com> |
5336 | ||
5337 | * tracepoint.h (collection_list) <m_regs_mask>: Change type to | |
5338 | std::vector<unsigned char>. | |
5339 | * tracepoint.c (collection_list::collection_list): Remove | |
5340 | m_regs_mask initializer from initializer list. Resize | |
5341 | m_regs_mask using the largest remote register number. | |
5342 | (collection_list::add_remote_register): Remove size check on | |
5343 | m_regs_mask. Use at to access element. | |
5344 | (collection_list::stringify): Change type of temp_buf to | |
5345 | gdb::char_vector. Update uses of temp_buf. Resize if needed to | |
5346 | stringify the register mask. Use pack_hex_byte for the register | |
5347 | mask. | |
5348 | ||
4277c4b8 PFC |
5349 | 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com> |
5350 | ||
5351 | * tracepoint.h (class collection_list) <add_register>: Remove. | |
5352 | <add_remote_register, add_ax_registers, add_local_register>: | |
5353 | Declare. | |
5354 | <add_memrange>: Add scope parameter. | |
5355 | * tracepoint.c (encode_actions_1): Likewise. | |
5356 | (collection_list::add_register): Rename to ... | |
5357 | (collection_list::add_remote_register): ... this. Update | |
5358 | comment. | |
5359 | (collection_list::add_ax_registers, add_local_register): New | |
5360 | methods. | |
5361 | (collection_list::add_memrange): Add scope parameter. Call | |
5362 | add_local_register instead of add_register. | |
5363 | (finalize_tracepoint_aexpr): New function. | |
5364 | (collection_list::collect_symbol): Update calls to add_memrange. | |
5365 | Call add_local_register instead of add_register. Call | |
5366 | add_ax_registers. Call finalize_tracepoint_aexpr. | |
5367 | (encode_actions_1): Get remote regnos for $reg action. Call | |
5368 | add_remote_register, add_ax_registers, and add_local_register. | |
5369 | Update call to add_memrange. Call finalize_tracepoint_aexpr. | |
5370 | (validate_actionline): Call finalize_tracepoint_aexpr. | |
5371 | ||
3df3a985 PFC |
5372 | 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com> |
5373 | ||
5374 | * remote.c (remote_target::download_tracepoint): Remove BUF_SIZE. | |
5375 | Replace array buf with gdb::char_vector buf, of size | |
5376 | get_remote_packet_size (). Replace references to buf and | |
5377 | BUF_SIZE to buf.data () and buf.size (). Replace strcpy, strcat | |
5378 | and xsnprintf with snprintf. Raise errors if the buffer is too | |
5379 | small. | |
5380 | ||
aa6f3694 PFC |
5381 | 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com> |
5382 | ||
5383 | * remote.c (remote_target::download_tracepoint): Fix the has_more | |
5384 | predicate in the QTDP action list iteration. | |
5385 | ||
05abfc39 PFC |
5386 | 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com> |
5387 | ||
5388 | * remote.c (remote_target::download_tracepoint): Fix indentation | |
5389 | in for block. | |
5390 | ||
821a2682 RO |
5391 | 2018-08-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
5392 | ||
5393 | * proc-api.c (_initialize_proc_api): Remove c, unused. | |
5394 | * procfs.c (procfs_init_inferior): Remove signals, unused. | |
5395 | (procfs_target::make_corefile_notes): Remove old_chain, fpregs, | |
5396 | unused. | |
5397 | ||
95347337 AB |
5398 | 2018-08-06 Sergey Korolev <s.korolev@ndmsystems.com> |
5399 | Andrew Burgess <andrew.burgess@embecosm.com> | |
5400 | ||
5401 | * linux-nat.c (linux_nat_target::follow_fork): Avoid using | |
5402 | 'W_STOPCODE (0)' as this could be ambiguous. | |
5403 | ||
425699f5 SDJ |
5404 | 2018-08-03 Sergio Durigan Junior <sergiodj@redhat.com> |
5405 | ||
5406 | * ser-tcp.c (net_open): Fix thinko when deciding whether to | |
5407 | disable TCP's Nagle algorithm (use "ai_protocol" instead of | |
5408 | "ai_socktype"). | |
5409 | ||
3e1d3d8c TT |
5410 | 2018-08-02 Tom Tromey <tom@tromey.com> |
5411 | ||
5412 | PR symtab/16842. | |
5413 | * dwarf2read.c (read_func_scope): Set symtab on template parameter | |
5414 | symbols. | |
5415 | (process_structure_scope): Likewise. | |
5416 | ||
15843549 XR |
5417 | 2018-08-02 Xavier Roirand <roirand@adacore.com> |
5418 | ||
5419 | PR gdb/22629: | |
4399bce9 PA |
5420 | * darwin-nat.c (darwin_kill_inferior): Fix handling of |
5421 | kill inferior. | |
15843549 | 5422 | |
b5bddbbb TT |
5423 | 2018-08-02 Tom Tromey <tom@tromey.com> |
5424 | ||
5425 | * darwin-nat.c (find_inferior_task_it, darwin_find_thread) | |
5426 | (darwin_suspend_inferior, darwin_resume_inferior) | |
5427 | (darwin_decode_notify_message, darwin_resume_inferior_threads) | |
5428 | (darwin_check_new_threads): Check result of get_darwin_inferior. | |
5429 | ||
f61cfa07 JB |
5430 | 2018-07-31 Joel Brobecker <brobecker@adacore.com> |
5431 | ||
5432 | GDB 8.1.1 released. | |
5433 | ||
5abe0f0c JV |
5434 | 2018-07-31 Jan Vrany <jan.vrany@fit.cvut.cz> |
5435 | ||
5436 | * varobj.c (varobj_get_path_expr_parent): Report an error if | |
5437 | parent is a dynamic varobj. | |
5438 | ||
472fa5ee SM |
5439 | 2018-07-31 Simon Marchi <simon.marchi@ericsson.com> |
5440 | ||
5441 | * gnulib/aclocal.m4: Re-generate. | |
5442 | * gnulib/config.in: Re-generate. | |
5443 | * gnulib/configure: Re-generate. | |
5444 | * gnulib/import/Makefile.in: Re-generate. | |
5445 | * gnulib/import/m4/gnulib-comp.m4: Re-generate. | |
5446 | * gnulib/import/m4/onceonly.m4: Re-generate. | |
5447 | ||
1c28969e SM |
5448 | 2018-07-31 Simon Marchi <simon.marchi@ericsson.com> |
5449 | ||
5450 | * target-descriptions.c (struct xml_test_tdesc): New. | |
5451 | (xml_tdesc): Change type to std::vector<xml_test_tdesc>. | |
5452 | (record_xml_tdesc): Update. | |
5453 | (maintenance_check_xml_descriptions): Update. | |
5454 | * target-descriptions.h (record_xml_tdesc): Update comment. | |
5455 | ||
c8f2dc0d AB |
5456 | 2018-07-30 Andrew Burgess <andrew.burgess@embecosm.com> |
5457 | ||
5458 | * eval.c (evaluate_subexp_for_sizeof): Check for array type before | |
5459 | checking array bounds are defined. | |
5460 | ||
463c08d1 TT |
5461 | 2018-07-30 Tom Tromey <tom@tromey.com> |
5462 | ||
5463 | * nat/linux-osdata.c (pid_pgid_entry::operator<): Fix | |
5464 | irreflexivity violation. | |
5465 | ||
dba7455e TT |
5466 | 2018-07-30 Tom Tromey <tom@tromey.com> |
5467 | ||
5468 | * cli/cli-decode.c (lookup_cmd): Remove lint code. | |
5469 | * value.c (unpack_long): Remove lint code. | |
5470 | * valops.c (value_ind): Remove lint code. | |
5471 | * valarith.c (value_x_binop, value_x_unop, value_equal) | |
5472 | (value_pos): Remove lint code. | |
5473 | ||
37cc0cae TV |
5474 | 2018-07-28 Tom de Vries <tdevries@suse.de> |
5475 | ||
5476 | * eval.c (evaluate_subexp_for_sizeof): Interpret size of dynamic type | |
5477 | with undefined upper bound as <optimized out>. | |
5478 | ||
129eb0f1 SDJ |
5479 | 2018-07-27 Sergio Durigan Junior <sergiodj@redhat.com> |
5480 | ||
5481 | * gcore.in: Rename variable "name" to "prefix". Expand | |
5482 | "usage" text. | |
5483 | ||
6af79d7b JT |
5484 | 2018-07-14 Jon Turney <jon.turney@dronecode.org.uk> |
5485 | ||
5486 | * windows-nat.c (windows_nat_target::create_inferior): Update to | |
5487 | call close() in global namespace. | |
5488 | ||
79748972 TT |
5489 | 2018-07-26 Tom Tromey <tom@tromey.com> |
5490 | ||
5491 | * dwarf-index-write.c (add_address_entry): Don't add objfile | |
5492 | offsets. | |
5493 | * dbxread.c (find_stab_function): Rename from | |
5494 | find_stab_function_addr. Return a bound_minimal_symbol. | |
5495 | (read_dbx_symtab): Use raw_text_low, raw_text_high. | |
5496 | Don't add objfile offsets. | |
5497 | (end_psymtab): Use raw_text_low, raw_text_high, | |
5498 | MSYMBOL_VALUE_RAW_ADDRESS. | |
5499 | (read_ofile_symtab): Update. | |
5500 | (process_one_symbol): Update. | |
5501 | * dwarf2read.c (create_addrmap_from_index): Don't add objfile | |
5502 | offsets. | |
5503 | (dw2_relocate): Remove. | |
5504 | (dw2_find_pc_sect_symtab): Bias PC by the text offset before | |
5505 | searching addrmap. | |
5506 | (dwarf2_gdb_index_functions, dwarf2_debug_names_functions): | |
5507 | Update. | |
5508 | (process_psymtab_comp_unit_reader, add_partial_symbol) | |
5509 | (add_partial_subprogram, dwarf2_ranges_read): Update. | |
5510 | (load_partial_dies): Update. | |
5511 | (add_address_entry): Don't add objfile offsets. | |
5512 | (dwarf2_build_include_psymtabs): Update. | |
5513 | (create_addrmap_from_aranges): Don't add objfile offsets. | |
5514 | (dw2_find_pc_sect_compunit_symtab): Update. | |
5515 | * mdebugread.c (parse_symbol): Don't add objfile offsets. | |
5516 | (parse_lines): Remove 'pst' parameter, replace with 'textlow'. | |
5517 | Update. | |
5518 | (parse_partial_symbols): Don't add objfile offsets. Use | |
5519 | raw_text_low, raw_text_high. Update. | |
5520 | (handle_psymbol_enumerators, psymtab_to_symtab_1): Update. | |
5521 | * objfiles.c (objfile_relocate1): Don't relocate psymtabs_addrmap | |
5522 | or call 'relocate' quick function. Clear psymbol_map. | |
5523 | * psympriv.h (struct partial_symbol) <address>: Add section | |
5524 | offset. | |
5525 | <set_unrelocated_address>: Rename from set_address. | |
5526 | <raw_text_low, raw_text_high>: New methods. | |
5527 | <text_low, text_high>: Add objfile parameter. | |
5528 | (add_psymbol_to_bcache): Add 'section' parameter. Call | |
5529 | set_unrelocated_address. | |
5530 | * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab) | |
5531 | (find_pc_psymbol): Update. | |
5532 | (fixup_psymbol_section, relocate_psymtabs): Remove. | |
5533 | (dump_psymtab, psym_functions): Update. | |
5534 | (add_psymbol_to_bcache, add_psymbol_to_list): Add 'section' | |
5535 | parameter. | |
5536 | (maintenance_info_psymtabs, maintenance_check_psymtabs): Update. | |
5537 | (start_psymtab_common): Update. | |
5538 | * symfile-debug.c (debug_qf_relocate): Remove. | |
5539 | (debug_sym_quick_functions): Update. | |
5540 | * symfile.h (struct quick_symbol_functions) <relocate>: Remove. | |
5541 | * xcoffread.c (scan_xcoff_symtab): Don't add objfile offsets. | |
5542 | Update. | |
5543 | ||
52948f01 TT |
5544 | 2018-07-26 Tom Tromey <tromey@redhat.com> |
5545 | ||
5546 | * dbxread.c (end_psymtab): Use text_high_valid and | |
5547 | text_low_valid. | |
5548 | * mdebugread.c (parse_partial_symbols): Use text_low_valid. | |
5549 | (psymtab_to_symtab_1): Use text_high_valid and text_low_valid. | |
5550 | * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>: | |
5551 | Update comment. | |
5552 | <text_low_valid, text_high_valid>: New fields. | |
5553 | <set_text_low, set_text_high>: Update. | |
5554 | * xcoffread.c (scan_xcoff_symtab): Use text_low_valid. | |
5555 | ||
4ae976d1 TT |
5556 | 2018-07-26 Tom Tromey <tom@tromey.com> |
5557 | ||
5558 | * dbxread.c (read_dbx_symtab, end_psymtab, read_ofile_symtab): | |
5559 | Update. | |
5560 | * dwarf2read.c (dwarf2_create_include_psymtab): Don't initialize | |
5561 | textlow and texthigh fields. | |
5562 | (process_psymtab_comp_unit_reader, dwarf2_build_include_psymtabs): | |
5563 | Update. | |
5564 | * mdebugread.c (parse_lines, parse_partial_symbols) | |
5565 | (psymtab_to_symtab_1): Update. | |
5566 | * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>: | |
5567 | Rename fields. Update comment. Now private. | |
5568 | <text_low, text_high, set_text_low, set_text_high>: New methods. | |
5569 | * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab) | |
5570 | (find_pc_sect_psymbol, relocate_psymtabs, dump_psymtab) | |
5571 | (start_psymtab_common, maintenance_info_psymtabs) | |
5572 | (maintenance_check_psymtabs): Update. | |
5573 | * xcoffread.c (xcoff_end_psymtab): Don't initialize textlow and | |
5574 | texthigh fields. | |
5575 | (scan_xcoff_symtab): Update. | |
5576 | ||
02e9e7f7 TT |
5577 | 2018-07-26 Tom Tromey <tromey@redhat.com> |
5578 | ||
5579 | * psympriv.h (struct partial_symbol) <unrelocated_address, | |
5580 | address, set_address>: New methods. | |
5581 | * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymbol) | |
5582 | (fixup_psymbol_section, relocate_psymtabs): Update. | |
5583 | (print_partial_symbols): Add 'objfile' parameter. Update. | |
5584 | (dump_psymtab, add_psymbol_to_bcache, psym_fill_psymbol_map): | |
5585 | Update. | |
5586 | ||
8a6d4234 TT |
5587 | 2018-07-26 Tom Tromey <tom@tromey.com> |
5588 | ||
5589 | * dwarf-index-write.c (write_psymbols, debug_names::insert) | |
5590 | (debug_names::write_psymbols): Update. | |
5591 | * psympriv.h (struct partial_symbol): Derive from | |
5592 | general_symbol_info. | |
5593 | <obj_section>: New method. | |
5594 | (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.n | |
5595 | * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab) | |
5596 | (find_pc_sect_psymbol, fixup_psymbol_section) | |
5597 | (match_partial_symbol, lookup_partial_symbol, relocate_psymtabs) | |
5598 | (print_partial_symbols, recursively_search_psymtabs) | |
5599 | (compare_psymbols, psymbol_hash, psymbol_compare) | |
5600 | (add_psymbol_to_bcache, maintenance_check_psymtabs) | |
5601 | (psymbol_name_matches, psym_fill_psymbol_map): Update. | |
5602 | ||
08994e1d TT |
5603 | 2018-07-26 Tom Tromey <tromey@redhat.com> |
5604 | ||
5605 | * dbxread.c (end_psymtab): Remove dead code. | |
5606 | ||
3c3bb058 AB |
5607 | 2018-07-26 Andrew Burgess <andrew.burgess@embecosm.com> |
5608 | ||
5609 | * dwarf2-frame-tailcall.c (tailcall_frame_sniffer): Exit early if | |
5610 | DWARF unwinders are disabled. | |
5611 | * dwarf2-frame.c: Add dwarf2read.h include. | |
5612 | (dwarf2_frame_sniffer): Exit early if DWARF unwinders are | |
5613 | disabled. | |
5614 | (dwarf2_frame_unwinders_enabled_p): Define. | |
5615 | (show_dwarf_unwinders_enabled_p): New function. | |
5616 | (_initialize_dwarf2_frame): Register switch to control DWARF | |
5617 | unwinder use. | |
5618 | * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Declare. | |
5619 | * dwarf2read.c (set_dwarf_cmdlist): Remove static keyword. | |
5620 | (show_dwarf_cmdlist): Remove static keyword. | |
5621 | * dwarf2read.h (set_dwarf_cmdlist): Declare. | |
5622 | (show_dwarf_cmdlist): Declare. | |
5623 | * NEWS: Document new feature. | |
5624 | ||
9e7f3bbb TV |
5625 | 2018-07-26 Tom de Vries <tdevries@suse.de> |
5626 | ||
5627 | PR breakpoints/23366 | |
5628 | * infcmd.c (info_program_command): Handle ptid == minus_one_ptid. | |
5629 | ||
506f5c41 TV |
5630 | 2018-07-26 Tom de Vries <tdevries@suse.de> |
5631 | ||
5632 | * dwarf2read.c (read_subrange_type): Warn if DW_AT_upper_bound or | |
5633 | DW_AT_count can't be translated to a dynamic prop. | |
5634 | ||
16f808ec TV |
5635 | 2018-07-25 Tom de Vries <tdevries@suse.de> |
5636 | ||
5637 | * dwarf2loc.c (dwarf2_locexpr_baton_eval): Wrap ctx.eval call in | |
5638 | try/catch. | |
5639 | ||
d7154a8d JV |
5640 | 2018-07-25 Jan Vrany <jan.vrany@fit.cvut.cz> |
5641 | ||
5642 | * breakpoint.c (enable_disable_bp_num_loc): Notify observers. | |
5643 | ||
a45389f6 JB |
5644 | 2018-07-25 Joel Brobecker <brobecker@adacore.com> |
5645 | ||
5646 | * MAINTAINERS (Global Maintainers): Add Tom Tromey. | |
5647 | ||
380618d6 KS |
5648 | 2018-07-24 Keith Seitz <keiths@redhat.comt |
5649 | ||
5650 | PR symtab/23010 | |
5651 | * dwarf2read.c (dw2_add_symbol_to_list): New function. | |
5652 | (fixup_go_packaging, new_symbol): Use dw2_add_symbol_to_list | |
5653 | instead of add_symbol_to_list. | |
5654 | (read_file_scope): Call prepare_one_comp_unit before reading | |
5655 | any other DIEs. | |
5656 | ||
4b17aefe SM |
5657 | 2018-07-24 Simon Marchi <simon.marchi@ericsson.com> |
5658 | ||
5659 | * common/scoped_mmap.h (class scoped_mmap): Fix indentation. | |
5660 | ||
29d17e47 TT |
5661 | 2018-07-24 Tom Tromey <tom@tromey.com> |
5662 | ||
5663 | * utils.c (malloc, realloc, free): Don't declare. | |
5664 | * configure, config.in: Rebuild. | |
5665 | * configure.ac: Don't check for declarations of free, malloc, or | |
5666 | realloc. | |
5667 | ||
cf4088a9 SM |
5668 | 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca> |
5669 | ||
5670 | * aarch64-linux-nat.c | |
5671 | (aarch64_linux_nat_target::stopped_data_address): Remove unused | |
5672 | variable. | |
5673 | * arm-linux-nat.c (fetch_regs): Likewise. | |
5674 | (store_regs): Likewise. | |
5675 | (fetch_vfp_regs): Likewise. | |
5676 | (store_vfp_regs): Likewise. | |
5677 | (arm_linux_nat_target::insert_hw_breakpoint): Likewise. | |
5678 | (arm_linux_nat_target::remove_hw_breakpoint): Likewise. | |
5679 | (arm_linux_nat_target::insert_watchpoint): Likewise. | |
5680 | (arm_linux_nat_target::remove_watchpoint): Likewise. | |
5681 | * mips-linux-nat.c (mips_linux_nat_target::insert_watchpoint): | |
5682 | Likewise. | |
5683 | * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs): | |
5684 | Likewise. | |
5685 | * ppc-linux-nat.c (fetch_register): Likewise. | |
5686 | (fetch_all_gp_regs): Likewise. | |
5687 | (fetch_ppc_registers): Likewise. | |
5688 | (store_all_gp_regs): Likewise. | |
5689 | (store_ppc_registers): Likewise. | |
5690 | (hwdebug_insert_point): Likewise. | |
5691 | (can_use_watchpoint_cond_accel): Likewise. | |
5692 | * remote-sim.c (gdb_os_write_stdout): Likewise. | |
5693 | ||
a0de763e TT |
5694 | 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca> |
5695 | Tom Tromey <tom@tromey.com> | |
5696 | ||
5697 | * warning.m4 (AM_GDB_WARNINGS): Add -Wunused-variable and special | |
5698 | test for it. | |
5699 | * configure: Rebuild. | |
5700 | ||
3b20124b TT |
5701 | 2018-07-22 Tom Tromey <tom@tromey.com> |
5702 | ||
5703 | * regformats/regdat.sh: Define xmltarget_${name} inside | |
5704 | #ifndef IN_PROCESS_AGENT. | |
5705 | ||
8c8807f4 TT |
5706 | 2018-07-22 Tom Tromey <tom@tromey.com> |
5707 | ||
5708 | * value.c (value_fetch_lazy_bitfield): Remove unused variable. | |
5709 | ||
c486b610 TT |
5710 | 2018-07-22 Tom Tromey <tom@tromey.com> |
5711 | ||
5712 | * symfile.c (reread_symbols): Notify iter, not objfile. | |
5713 | ||
494f80a9 TT |
5714 | 2018-07-22 Tom Tromey <tom@tromey.com> |
5715 | ||
5716 | * ravenscar-thread.c (ravenscar_thread_target::store_registers): | |
5717 | Use arch_ops. | |
5718 | (ravenscar_thread_target::prepare_to_store): Likewise. | |
5719 | ||
c51f6a54 TT |
5720 | 2018-07-22 Tom Tromey <tom@tromey.com> |
5721 | ||
5722 | * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Remove | |
5723 | unused variable. Call value_fetch_lazy when needed. | |
5724 | * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): | |
5725 | Remove unused variable. Call value_fetch_lazy when needed. | |
5726 | ||
374fd1fd TT |
5727 | 2018-07-22 Tom Tromey <tom@tromey.com> |
5728 | ||
5729 | * m32c-tdep.c (mark_dma): Return void. | |
5730 | (make_regs): Remove unused declarations. | |
5731 | ||
d5e9a511 TT |
5732 | 2018-07-22 Tom Tromey <tom@tromey.com> |
5733 | ||
5734 | * guile/scm-cmd.c (gdbscm_dont_repeat): Call | |
5735 | cmdscm_get_valid_command_smob_arg_unsafe for effect. | |
5736 | * guile/scm-block.c (gdbscm_make_block_syms_iter): Call | |
5737 | bkscm_get_valid_block_smob_arg_unsafe for effect. | |
5738 | ||
996d693a TT |
5739 | 2018-07-22 Tom Tromey <tom@tromey.com> |
5740 | ||
5741 | * bfin-tdep.c (bfin_push_dummy_call): Use arg_type, not | |
5742 | value_type. | |
5743 | ||
15766370 TT |
5744 | 2018-07-22 Tom Tromey <tom@tromey.com> |
5745 | ||
5746 | * windows-nat.c (saved_context): Conditionally define. | |
5747 | * remote.c (remote_target::remote_btrace_maybe_reopen): | |
5748 | Conditionally declare "warned". | |
5749 | * inflow.c (sigquit_ours): Conditionally define. | |
5750 | (new_tty): Move "tty" declaration inside #if. | |
5751 | * guile/guile.c (guile_datadir): Conditionally define. | |
5752 | * charset.c (set_be_le_names): Move some declarations inside #if. | |
5753 | * btrace.c (parse_xml_btrace): Move "errcode" declaration inside | |
5754 | #if. | |
5755 | (parse_xml_btrace_conf): Likewise. | |
5756 | ||
f4e80e13 TT |
5757 | 2018-07-22 Tom Tromey <tom@tromey.com> |
5758 | ||
5759 | * spu-tdep.c (spu_get_overlay_table): Remove unused variable. | |
5760 | ||
8d49165d TT |
5761 | 2018-07-22 Tom Tromey <tom@tromey.com> |
5762 | ||
5763 | * guile/scm-value.c (gdbscm_value_call): Remove unused variables. | |
5764 | * guile/scm-math.c (vlscm_unop_gdbthrow, vlscm_binop_gdbthrow) | |
5765 | (vlscm_convert_typed_value_from_scheme): Remove unused variable. | |
5766 | * buildsym-legacy.c (get_macro_table): Remove unused variable. | |
5767 | * stack.c (frame_apply_level_command): Remove unused variable. | |
5768 | * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused variable. | |
5769 | * sparc64-tdep.c (adi_examine_command): Remove unused variable. | |
5770 | * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Remove | |
5771 | unused variable. | |
5772 | * nios2-tdep.c (nios2_push_dummy_call): Remove unused variable. | |
5773 | * mep-tdep.c (mep_push_dummy_call): Remove unused variable. | |
5774 | * ada-lang.c (ada_lookup_symbol_list_worker): Remove unused | |
5775 | variable. | |
5776 | * amd64-tdep.c (amd64_supply_xsave): Remove unused variable. | |
5777 | * arm-tdep.c (arm_record_data_proc_misc_ld_str): Remove unused | |
5778 | variable. | |
5779 | * breakpoint.c (check_no_tracepoint_commands, update_watchpoint): | |
5780 | Remove unused variable. | |
5781 | * cli/cli-script.c (recurse_read_control_structure): Remove unused | |
5782 | variable. | |
5783 | * common/tdesc.c (print_xml_feature::visit): Remove unused | |
5784 | variable. | |
5785 | * compile/compile-object-load.c (store_regs): Remove unused | |
5786 | variables. | |
5787 | * complaints.c (clear_complaints): Remove unused variable. | |
5788 | * corelow.c (core_target_open): Remove unused variable. | |
5789 | * fbsd-tdep.c (fbsd_core_info_proc_status): Remove unused | |
5790 | variable. | |
5791 | * guile/scm-frame.c (gdbscm_frame_read_var): Remove unused | |
5792 | variable. | |
5793 | * guile/scm-symtab.c (stscm_print_sal_smob): Remove unused | |
5794 | variable. | |
5795 | * guile/scm-type.c (gdbscm_field_baseclass_p): Remove unused | |
5796 | variable. | |
5797 | * guile/scm-utils.c (gdbscm_parse_function_args): Remove unused | |
5798 | variable. | |
5799 | * hppa-tdep.c (hppa_stub_frame_unwind_cache): Remove unused | |
5800 | variable. | |
5801 | * ia64-tdep.c (examine_prologue): Remove unused variable. | |
5802 | * infcall.c (run_inferior_call): Remove unused variable. | |
5803 | * inferior.c (exit_inferior): Remove unused variable. | |
5804 | * infrun.c (infrun_thread_ptid_changed): Remove unused variable. | |
5805 | * linespec.c (decode_line_2): Remove unused variable. | |
5806 | * linux-nat.c (super_close): Remove. | |
5807 | * linux-tdep.c (linux_info_proc): Remove unused variable. | |
5808 | * mi/mi-main.c (mi_execute_command): Remove unused variable. | |
5809 | * microblaze-linux-tdep.c (microblaze_linux_sigtramp_cache): | |
5810 | Remove unused variable. | |
5811 | * parse.c (find_minsym_type_and_address): Remove unused variable. | |
5812 | * printcmd.c (info_symbol_command, printf_floating): Remove unused | |
5813 | variable. | |
5814 | * python/py-breakpoint.c (bppy_set_commands): Remove unused | |
5815 | variable. | |
5816 | * python/py-unwind.c (unwind_infopy_dealloc): Remove unused | |
5817 | variables. | |
5818 | * record-btrace.c (record_btrace_target::store_registers): Remove | |
5819 | unused variable. | |
5820 | (cmd_show_record_btrace_cpu): Remove unused variable. | |
5821 | * riscv-tdep.c (riscv_register_reggroup_p) | |
5822 | (riscv_push_dummy_call, riscv_return_value): Remove unused | |
5823 | variable. | |
5824 | * rust-exp.y (literal): Remove unused variable. | |
5825 | * rust-lang.c (rust_evaluate_subexp) <OP_RUST_ARARAY>: Remove | |
5826 | unused variable. | |
5827 | <STRUCTOP_ANONYMOUS>: Likewise. | |
5828 | * s390-linux-tdep.c (s390_linux_init_abi_31) | |
5829 | (s390_linux_init_abi_64): Remove unused variable. | |
5830 | * ser-ming2.c (ser_windows_read_prim, pipe_select_thread) | |
5831 | (file_select_thread, net_windows_open, _initialize_ser_windows): | |
5832 | Remove unused variables. | |
5833 | * symtab.c (find_pc_sect_line): Remove unused variable. | |
5834 | * target-memory.c (compute_garbled_blocks): Remove unused | |
5835 | variable. | |
5836 | (target_write_memory_blocks): Remove unused variable. | |
5837 | * target.c (target_stack::unpush): Remove unused variables. | |
5838 | * tracepoint.c (start_tracing, all_tracepoint_actions) | |
5839 | (merge_uploaded_trace_state_variables) | |
5840 | (print_one_static_tracepoint_marker): Remove unused variable. | |
5841 | * unittests/basic_string_view/element_access/char/1.cc (test01): | |
5842 | Remove unused variable. | |
5843 | * windows-nat.c (windows_continue, windows_add_all_dlls) | |
5844 | (do_initial_windows_stuff, windows_nat_target::create_inferior): | |
5845 | Remove unused variables. | |
5846 | ||
17cbafdb SM |
5847 | 2018-07-21 Simon Marchi <simon.marchi@polymtl.ca> |
5848 | ||
5849 | * arm-tdep.c (arm_gdbarch_init): Declare attr_arch and | |
5850 | attr_profile in HAVE_ELF. | |
5851 | * rs6000-tdep.c (bfd_uses_spe_extensions): Declare vector_abi in | |
5852 | HAVE_ELF. | |
5853 | ||
0ee6c332 SM |
5854 | 2018-07-20 Simon Marchi <simon.marchi@polymtl.ca> |
5855 | ||
5856 | * frame.c (frame_register_unwind): Change parameter name. | |
5857 | (frame_unwind_register): Likewise. | |
5858 | (frame_unwind_register_value): Likewise. | |
5859 | (frame_unwind_register_signed): Likewise. | |
5860 | (frame_unwind_register_unsigned): Likewise. | |
5861 | * frame.h (frame_register_unwind): Likewise. | |
5862 | (frame_unwind_register): Likewise. | |
5863 | (frame_unwind_register_value): Likewise. | |
5864 | (frame_unwind_register_signed): Likewise. | |
5865 | (frame_unwind_register_unsigned): Likewise. | |
5866 | (frame_unwind_arch): Likewise. | |
5867 | ||
e2e31f10 MR |
5868 | 2018-07-20 Maciej W. Rozycki <macro@mips.com> |
5869 | ||
5870 | * MAINTAINERS: Update my e-mail address, downgrade to MIPS I-IV | |
5871 | ISA maintenance. | |
5872 | ||
2d389915 MR |
5873 | 2018-07-20 Maciej W. Rozycki <macro@mips.com> |
5874 | ||
5875 | * mips-linux-nat.c (mips_linux_nat_target::read_description): | |
5876 | Call `get_ptrace_pid' rather than extracting the ptrace PID by | |
5877 | hand. | |
5878 | ||
cbb09508 KS |
5879 | 2018-07-20 Keith Seitz <keiths@redhat.com> |
5880 | ||
5881 | * buildsym.h (struct buildsym_compunit) <m_objfile, m_subfiles, | |
5882 | m_main_subfile, m_comp_dir, m_producer, m_debugformat, | |
5883 | m_compunit_symtab, m_language>: Add "m_" prefix. | |
5884 | Update all uses. | |
5885 | * buildsym.c: Update all uses. | |
5886 | ||
bfe2e011 TT |
5887 | 2018-07-20 Tom Tromey <tom@tromey.com> |
5888 | ||
5889 | * buildsym-legacy.h (record_line): Don't use record_line_ftype. | |
5890 | * buildsym.h (record_line_ftype): Remove typedef. | |
5891 | ||
0e6f3061 TT |
5892 | 2018-07-20 Tom Tromey <tom@tromey.com> |
5893 | ||
5894 | * buildsym-legacy.h (augment_type_symtab): Don't declare. | |
5895 | (end_expandable_symtab): Likewise. | |
5896 | (end_symtab_get_static_block): Likewise. | |
5897 | (end_symtab_from_static_block): Likewise. | |
5898 | * buildsym-legacy.c (augment_type_symtab): Remove. | |
5899 | (end_expandable_symtab): Remove. | |
5900 | (end_symtab_get_static_block): Remove. | |
5901 | (end_symtab_from_static_block): Remove. | |
5902 | ||
804d2729 TT |
5903 | 2018-07-20 Tom Tromey <tom@tromey.com> |
5904 | ||
5905 | * dwarf2read.c: Include buildsym.h. | |
5906 | (struct dwarf2_cu) <builder>: New method. | |
5907 | (fixup_go_packaging): Update. | |
5908 | (process_full_comp_unit, process_full_type_unit): Update. Don't | |
5909 | use scoped_free_pendings. | |
5910 | (using_directives): Add "cu" parameter, remove "language". | |
5911 | (read_import_statement, setup_type_unit_groups, ) | |
5912 | (read_func_scope, read_lexical_block_scope) | |
5913 | (dwarf2_record_block_ranges, read_namespace): Update. | |
5914 | (lnp_state_machine::lnp_state_machine): Add cu parameter. | |
5915 | (lnp_state_machine::handle_end_sequence): Update. | |
5916 | (class lnp_state_machine) <m_cu>: New member. | |
5917 | <m_record_line_callback>: Remove. | |
5918 | <m_currently_recording_lines>: New member. | |
5919 | (lnp_state_machine::handle_set_file): Update. | |
5920 | (noop_record_line): Remove. | |
5921 | (dwarf_record_line_p): Add cu parameter. | |
5922 | (dwarf_record_line_1, dwarf_finish_line): Likewise. | |
5923 | (lnp_state_machine::record_line) | |
5924 | (lnp_state_machine::lnp_state_machine) | |
5925 | (lnp_state_machine::check_line_address, dwarf_decode_lines_1) | |
5926 | (dwarf_decode_lines): Update. | |
5927 | (dwarf2_start_subfile): Add cu parameter. | |
5928 | (dwarf2_start_symtab, new_symbol): Update. | |
5929 | (macro_start_file, dwarf_decode_macro_bytes): Add cu parameter. | |
5930 | Remove dwarf2_per_objfile parameter. | |
5931 | (dwarf_decode_macros): Update. | |
5932 | ||
80e649fc TT |
5933 | 2018-07-20 Tom Tromey <tom@tromey.com> |
5934 | ||
5935 | * stabsread.c (define_symbol): Update. | |
5936 | * buildsym-legacy.h (get_buildsym_compunit): Declare. | |
5937 | * dwarf2read.c (new_symbol): Update. | |
5938 | * cp-support.h (cp_scan_for_anonymous_namespaces): Update. | |
5939 | * cp-namespace.c: Include buildsym.h. | |
5940 | (cp_scan_for_anonymous_namespaces): Add "compunit" parameter. | |
5941 | * buildsym-legacy.c (get_buildsym_compunit): New function. | |
5942 | ||
0baae8db TT |
5943 | 2018-07-20 Tom Tromey <tom@tromey.com> |
5944 | ||
5945 | * xcoffread.c: Include buildsym-legacy.h. | |
5946 | * windows-nat.c: Include buildsym-legacy.h. | |
5947 | * stabsread.c: Include buildsym-legacy.h. | |
5948 | * mdebugread.c: Include buildsym-legacy.h. | |
5949 | * buildsym-legacy.h: New file. | |
5950 | * buildsym-legacy.c: New file, from buildsym.c. | |
5951 | * go32-nat.c: Include buildsym-legacy.h. | |
5952 | * dwarf2read.c: Include buildsym-legacy.h. | |
5953 | * dbxread.c: Include buildsym-legacy.h. | |
5954 | * cp-namespace.c: Include buildsym-legacy.h. | |
5955 | * coffread.c: Include buildsym-legacy.h. | |
5956 | * buildsym.h: Move some contents to buildsym-legacy.h. | |
5957 | * buildsym.c: Include buildsym-legacy.h. Move many functions to | |
5958 | buildsym-legacy.c. | |
5959 | * Makefile.in (HFILES_NO_SRCDIR): Add buildsym-legacy.h. | |
5960 | ||
ab209f6f TT |
5961 | 2018-07-20 Tom Tromey <tom@tromey.com> |
5962 | ||
5963 | * buildsym.h (struct buildsym_compunit): Move from buildsym.c. | |
5964 | * buildsym.c (struct buildsym_compunit): Move to buildsym.h. | |
5965 | (buildsym_compunit::buildsym_compunit) | |
5966 | (buildsym_compunit::~buildsym_compunit) | |
5967 | (buildsym_compunit::get_macro_table): Define. | |
5968 | ||
74c72eac TT |
5969 | 2018-07-20 Tom Tromey <tom@tromey.com> |
5970 | ||
5971 | * buildsym.c (reset_symtab_globals): Remove. | |
5972 | (buildsym_compunit::end_symtab_from_static_block): Update. | |
5973 | (buildsym_compunit::augment_type_symtab): Update. | |
5974 | (end_symtab_from_static_block): Call free_buildsym_compunit. | |
5975 | (augment_type_symtab, end_symtab, end_expandable_symtab): | |
5976 | Likewise. | |
5977 | ||
da6580e5 TT |
5978 | 2018-07-20 Tom Tromey <tom@tromey.com> |
5979 | ||
5980 | * arch-utils.c: Do not include buildsym.h. | |
5981 | * mipsread.c: Do not include buildsym.h. | |
5982 | * machoread.c: Do not include buildsym.h. | |
5983 | * elfread.c: Do not include buildsym.h. | |
5984 | ||
4a2125f5 TT |
5985 | 2018-07-20 Tom Tromey <tom@tromey.com> |
5986 | ||
5987 | * buildsym.c (buildsym_compunit::buildsym_compunit): Do more | |
5988 | initialization. | |
5989 | (buildsym_compunit): Add new constructor. | |
5990 | (struct buildsym_compunit) <get_last_source_file, finish_block, | |
5991 | record_block_range, start_subfile, patch_subfile_names, | |
5992 | push_subfile, pop_subfile, record_line, get_compunit_symtab, | |
5993 | set_last_source_start_addr, get_last_source_start_addr, | |
5994 | get_local_using_directives, set_local_using_directives, | |
5995 | get_global_using_directives, outermost_context_p, | |
5996 | get_current_context_stack, get_context_stack_depth, | |
5997 | get_current_subfile, get_local_symbols, get_file_symbols, | |
5998 | get_global_symbols, record_debugformat, record_producer, | |
5999 | push_context, pop_context, end_symtab_get_static_block, | |
6000 | end_symtab_from_static_block, end_symtab, end_expandable_symtab>: | |
6001 | New public methods. | |
6002 | <record_pending_block, finish_block_internal, make_blockvector, | |
6003 | watch_main_source_file_lossage, end_symtab_with_blockvector>: New | |
6004 | private methods. | |
6005 | Update all users. | |
6006 | ||
6007 | 2018-05-22 Tom Tromey <tom@tromey.com> | |
6008 | ||
6009 | * buildsym.c (record_pending_block): Move earlier. Remove objfile | |
6010 | parameter. | |
6011 | (finish_block_internal): Update. | |
6012 | ||
6b213a47 TT |
6013 | 2018-07-20 Tom Tromey <tom@tromey.com> |
6014 | ||
6015 | * buildsym.c (record_pending_block): Move earlier. Remove objfile | |
6016 | parameter. | |
6017 | (finish_block_internal): Update. | |
6018 | ||
b80a981d TT |
6019 | 2018-07-20 Tom Tromey <tom@tromey.com> |
6020 | ||
6021 | * buildsym.h (EXTERN): Don't define or undef. | |
6022 | * buildsym.c (EXTERN): Don't define. | |
6023 | ||
ddb70602 TT |
6024 | 2018-07-20 Tom Tromey <tom@tromey.com> |
6025 | ||
6026 | * buildsym.c: Remove TODO comment. | |
6027 | ||
b37dd3bc TT |
6028 | 2018-07-20 Tom Tromey <tom@tromey.com> |
6029 | ||
6030 | * coffread.c (coff_symtab_read): Update. | |
6031 | * xcoffread.c (xcoff_psymtab_to_symtab_1): Update. | |
6032 | (xcoff_new_init): Update. | |
6033 | * mipsread.c (mipscoff_new_init): Update. | |
6034 | * mdebugread.c (mdebug_build_psymtabs): Update. | |
6035 | * elfread.c (elf_new_init): Update. | |
6036 | * dwarf2read.c (process_full_comp_unit, process_full_type_unit): | |
6037 | Update. | |
6038 | * dbxread.c (dbx_new_init, dbx_psymtab_to_symtab_1) | |
6039 | (coffstab_build_psymtabs, elfstab_build_psymtabs) | |
6040 | (stabsect_build_psymtabs): Update. | |
6041 | * buildsym.h (buildsym_init): Don't declare. | |
6042 | * buildsym.c: Update comment. | |
6043 | (prepare_for_building): Remove. | |
6044 | (start_symtab, restart_symtab): Update. | |
6045 | (reset_symtab_globals): Update comment. | |
6046 | (buildsym_init): Remove. | |
6047 | ||
e148f09d TT |
6048 | 2018-07-20 Tom Tromey <tom@tromey.com> |
6049 | ||
6050 | * xcoffread.c (read_xcoff_symtab, process_xcoff_symbol): Update. | |
6051 | * stabsread.c (patch_block_stabs, define_symbol, read_type) | |
6052 | (read_enum_type, common_block_start, common_block_end) | |
6053 | (cleanup_undefined_types_1, finish_global_stabs): Update. | |
6054 | * mdebugread.c (psymtab_to_symtab_1): Update. | |
6055 | * dwarf2read.c (fixup_go_packaging, read_func_scope) | |
6056 | (read_lexical_block_scope, new_symbol): Update. | |
6057 | * dbxread.c (process_one_symbol): Update. | |
6058 | * coffread.c (coff_symtab_read, process_coff_symbol) | |
6059 | (coff_read_enum_type): Update. | |
6060 | * buildsym.h (file_symbols, global_symbols, local_symbols): Don't | |
6061 | declare. | |
6062 | (get_local_symbols, get_file_symbols, get_global_symbols): New | |
6063 | functions. | |
6064 | * buildsym.c (~buildsym_compunit): Clean up m_file_symbols and | |
6065 | m_global_symbols. | |
6066 | <m_file_symbols, m_local_symbols, m_global_symbols>: New members. | |
6067 | (~scoped_free_pendings): Update. | |
6068 | (finish_block, prepare_for_building, reset_symtab_globals) | |
6069 | (end_symtab_get_static_block, end_symtab_with_blockvector) | |
6070 | (augment_type_symtab, push_context): Update. | |
6071 | (get_local_symbols, get_file_symbols, get_global_symbols): New | |
6072 | functions. | |
6073 | (buildsym_init): Update. | |
6074 | ||
93b8bea4 TT |
6075 | 2018-07-20 Tom Tromey <tom@tromey.com> |
6076 | ||
6077 | * dwarf2read.c (process_full_comp_unit): Do not set list_in_scope. | |
6078 | (process_full_type_unit): Likewise. | |
6079 | (dwarf2_start_symtab): Set list_in_scope. | |
6080 | ||
f62f6af5 TT |
6081 | 2018-07-20 Tom Tromey <tom@tromey.com> |
6082 | ||
6083 | * dwarf2read.c (process_psymtab_comp_unit_reader) | |
6084 | (build_type_psymtabs_reader): Do not set list_in_scope. | |
6085 | ||
1d376700 TT |
6086 | 2018-07-20 Tom Tromey <tom@tromey.com> |
6087 | ||
6088 | * buildsym.c (free_pendings): Remove. | |
6089 | (add_symbol_to_list, scoped_free_pendings) | |
6090 | (finish_block_internal, buildsym_init): Update. | |
6091 | ||
c233e9c6 TT |
6092 | 2018-07-20 Tom Tromey <tom@tromey.com> |
6093 | ||
6094 | * xcoffread.c (read_xcoff_symtab): Update. | |
6095 | * dwarf2read.c (read_func_scope, read_lexical_block_scope): | |
6096 | Update. | |
6097 | * dbxread.c (process_one_symbol): Update. | |
6098 | * coffread.c (coff_symtab_read): Update. | |
6099 | * buildsym.h (finish_block): Update. | |
6100 | * buildsym.c (finish_block): Remove "listhead" argument. | |
6101 | (end_symtab_get_static_block): Update. | |
6102 | ||
5ac04550 TT |
6103 | 2018-07-20 Tom Tromey <tom@tromey.com> |
6104 | ||
6105 | * buildsym.h (class scoped_free_pendings): Remove constructor. | |
6106 | * buildsym.c (struct buildsym_compunit) <free_pending_blocks>: New | |
6107 | method. | |
6108 | <m_pending_block_obstack, m_pending_blocks>: New members. | |
6109 | (pending_block_obstack, pending_blocks): Remove. | |
6110 | (scoped_free_pendings::scoped_free_pendings): Default. | |
6111 | (~scoped_free_pendings): Update. | |
6112 | (free_pending_blocks): Remove. | |
6113 | (finish_block_internal, record_pending_block, make_blockvector) | |
6114 | (end_symtab_get_static_block, augment_type_symtab, push_context) | |
6115 | (buildsym_init): Update. | |
6116 | ||
7ea05a7b TT |
6117 | 2018-07-20 Tom Tromey <tom@tromey.com> |
6118 | ||
6119 | * buildsym.c (struct buildsym_compunit) <m_pending_addrmap, | |
6120 | m_pending_addrmap_obstack, m_pending_addrmap_interesting>: New | |
6121 | members. | |
6122 | (pending_addrmap, pending_addrmap_obstack) | |
6123 | (pending_addrmap_interesting): Remove. | |
6124 | (scoped_free_pendings, record_block_range, make_blockvector) | |
6125 | (prepare_for_building, reset_symtab_globals, buildsym_init): | |
6126 | Update. | |
6127 | ||
3c65e5b3 TT |
6128 | 2018-07-20 Tom Tromey <tom@tromey.com> |
6129 | ||
6130 | * xcoffread.c (process_linenos): Update. | |
6131 | * stabsread.c (define_symbol, read_type, read_enum_type): Update. | |
6132 | * mdebugread.c (psymtab_to_symtab_1): Update. | |
6133 | * dwarf2read.c (setup_type_unit_groups) | |
6134 | (lnp_state_machine::handle_set_file, dwarf_record_line_p) | |
6135 | (lnp_state_machine::record_line, dwarf_decode_lines): Update. | |
6136 | * dbxread.c (process_one_symbol): Update. | |
6137 | * coffread.c (coff_symtab_read, enter_linenos) | |
6138 | (process_coff_symbol): Update. | |
6139 | * buildsym.h (current_subfile): Don't declare. | |
6140 | (get_current_subfile): Declare. | |
6141 | * buildsym.c (struct buildsym_compunit) <m_current_subfile>: New | |
6142 | member. | |
6143 | (start_subfile, free_buildsym_compunit, push_subfile) | |
6144 | (prepare_for_building, start_symtab): Update. | |
6145 | (get_current_subfile): New function. | |
6146 | ||
a60f3166 TT |
6147 | 2018-07-20 Tom Tromey <tom@tromey.com> |
6148 | ||
6149 | * coffread.c (coff_symtab_read): Update. | |
6150 | * xcoffread.c (read_xcoff_symtab): Update. | |
6151 | * dwarf2read.c (new_symbol): Update. | |
6152 | (read_func_scope, read_lexical_block_scope): Update. | |
6153 | * dbxread.c (process_one_symbol): Update. | |
6154 | * buildsym.h (context_stack, context_stack_depth): Don't declare. | |
6155 | (outermost_context_p): Remove macro. | |
6156 | (outermost_context_p, get_current_context_stack) | |
6157 | (get_context_stack_depth): Declare. | |
6158 | (pop_context): Return struct context_stack. | |
6159 | * buildsym.c (struct buildsym_compunit) <m_context_stack: New | |
6160 | member. | |
6161 | (context_stack_size): Remove. | |
6162 | (INITIAL_CONTEXT_STACK_SIZE): Remove. | |
6163 | (prepare_for_building, end_symtab_get_static_block) | |
6164 | (augment_type_symtab, push_context): Update. | |
6165 | (pop_context): Return struct context_stack. | |
6166 | (outermost_context_p, get_current_context_stack) | |
6167 | (get_context_stack_depth): New functions. | |
6168 | (buildsym_init): Update. | |
6169 | ||
56ba65a0 TT |
6170 | 2018-07-20 Tom Tromey <tom@tromey.com> |
6171 | ||
6172 | * rust-exp.y: Now a pure parser. Update all rules. | |
6173 | (%union): Move earlier. | |
6174 | (current_parser, work_obstack): Remove globals. | |
6175 | (rust_parser, ~rust_parser): Update. | |
6176 | (class rust_parser) <copy_name, concat3, crate_name, super_name, | |
6177 | lex_character, lex_number, lex_string, lex_identifier, | |
6178 | rust_lookup_type, convert_params_to_types, convert_ast_to_type, | |
6179 | convert_name, convert_params_to_expression, | |
6180 | convert_ast_to_expression, ast_basic_type, ast_operation, | |
6181 | ast_compound_assignment, rust_op, ast_literal, ast_dliteral, | |
6182 | ast_structop, ast_structop_anonymous, ast_unary, ast_cast, | |
6183 | ast_call_ish, ast_path, ast_string, ast_struct, ast_range, | |
6184 | ast_array_type, ast_slice_type, ast_reference_type, | |
6185 | ast_pointer_type, ast_function_type, ast_tuple_type>: New methods. | |
6186 | (rust_parse): Update. | |
6187 | (rustyyerror, rustyylex): Add parser parameter. | |
6188 | (rust_lex_test_one, rust_lex_int_test, rust_lex_exception_test) | |
6189 | (rust_lex_stringish_test, rust_lex_test_sequence) | |
6190 | (rust_lex_test_trailing_dot, rust_lex_test_completion) | |
6191 | (rust_lex_test_push_back, rust_lex_tests): Update. | |
6192 | ||
4c693332 PA |
6193 | 2018-07-19 Pedro Alves <palves@redhat.com> |
6194 | ||
6195 | * guile/guile-internal.h (gdbscm_scm_to_c_string): Now returns a | |
6196 | gdb::unique_xmalloc_ptr. | |
6197 | * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): | |
6198 | Adjust to use dbscm_wrap and gdb::unique_xmalloc_ptr. | |
6199 | * guile/scm-exception.c (gdbscm_exception_message_to_string): Use | |
6200 | copy-initialization. | |
6201 | * guile/scm-pretty-print.c (ppscm_print_children): Use | |
6202 | gdb::unique_xmalloc_ptr instead of cleanups. | |
6203 | (gdbscm_apply_val_pretty_printer): Remove cleanups. | |
6204 | * guile/scm-string.c (gdbscm_scm_to_c_string): Now returns a | |
6205 | gdb::unique_xmalloc_ptr. | |
6206 | * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p): | |
6207 | Adjust to use gdb::unique_xmalloc_ptr. | |
6208 | * guile/scm-utils.c (extract_arg): Adjust. | |
6209 | * guile/scm-value.c (gdbscm_value_field): Adjust to use | |
6210 | gdb::unique_xmalloc_ptr instead of a cleanup. | |
6211 | ||
4581dc82 TT |
6212 | 2018-07-19 Tom Tromey <tom@tromey.com> |
6213 | ||
6214 | * utils.c (do_value_free_to_mark) | |
6215 | (make_cleanup_value_free_to_mark): Remove. | |
6216 | * utils.h (make_cleanup_value_free_to_mark): Remove. | |
6217 | ||
43cc6c3a PA |
6218 | 2018-07-19 Pedro Alves <palves@redhat.com> |
6219 | ||
6220 | * guile/guile-internal.h (gdbscm_wrap): Really make 'args' a | |
6221 | forwarding reference. | |
6222 | ||
3a5f2a48 PA |
6223 | 2018-07-18 Pedro Alves <palves@redhat.com> |
6224 | ||
6225 | * guile/guile.c (gdbscm_execute_gdb_command): Adjust to use | |
6226 | gdbscm_wrap. Use gdb::unique_xmalloc_ptr<char> instead of a | |
6227 | cleanup. | |
6228 | ||
557e56be PA |
6229 | 2018-07-18 Pedro Alves <palves@redhat.com> |
6230 | ||
6231 | * guile/guile-internal.h: Add comment about mixing GDB and Scheme | |
6232 | exceptions. | |
6233 | (GDBSCM_HANDLE_GDB_EXCEPTION_WITH_CLEANUPS): Delete. | |
6234 | (gdbscm_wrap): New. | |
6235 | * guile/scm-frame.c (gdbscm_frame_read_register): Use xfree | |
6236 | directly instead of a cleanup. | |
6237 | * guile/scm-math.c (vlscm_unop_gdbthrow): New, factored out from ... | |
6238 | (vlscm_unop): ... this. Reimplement using gdbscm_wrap. | |
6239 | (vlscm_binop_gdbthrow): New, factored out from ... | |
6240 | (vlscm_binop): ... this. Reimplement using gdbscm_wrap. | |
6241 | (vlscm_rich_compare): Use gdbscm_wrap. | |
6242 | * guile/scm-symbol.c (gdbscm_lookup_symbol): Use xfree directly | |
6243 | instead of a cleanup. | |
6244 | (gdbscm_lookup_global_symbol): Use xfree directly instead of a | |
6245 | cleanup. | |
6246 | * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p): | |
6247 | Use xfree directly instead of a cleanup. | |
6248 | * guile/scm-value.c (gdbscm_make_value, gdbscm_make_lazy_value): | |
6249 | Adjust to use gdbscm_wrap and scoped_value_mark. | |
6250 | (gdbscm_value_optimized_out_p): Adjust to use gdbscm_wrap. | |
6251 | (gdbscm_value_address, gdbscm_value_dereference) | |
6252 | (gdbscm_value_referenced_value): Adjust to use gdbscm_wrap and | |
6253 | scoped_value_mark. | |
6254 | (gdbscm_value_dynamic_type): Use scoped_value_mark. | |
6255 | (vlscm_do_cast, gdbscm_value_field): Adjust to use gdbscm_wrap and | |
6256 | scoped_value_mark. | |
6257 | (gdbscm_value_subscript, gdbscm_value_call): Adjust to use | |
6258 | gdbscm_wrap and scoped_value_mark. | |
6259 | (gdbscm_value_to_string): Use xfree directly instead of a | |
6260 | cleanup. Move 'buffer' unique_ptr to TRY scope. | |
6261 | (gdbscm_value_to_lazy_string): Use xfree directly instead of a | |
6262 | cleanup. Move 'buffer' unique_ptr to TRY scope. Use | |
6263 | scoped_value_mark. | |
6264 | (gdbscm_value_fetch_lazy_x): Use gdbscm_wrap. | |
6265 | (gdbscm_parse_and_eval): Adjust to use gdbscm_wrap and | |
6266 | scoped_value_mark. | |
6267 | (gdbscm_history_ref, gdbscm_history_append_x): Adjust to use | |
6268 | gdbscm_wrap. | |
6269 | ||
42dc7699 TV |
6270 | 2018-07-18 Tom de Vries <tdevries@suse.de> |
6271 | ||
6272 | * findvar.c (default_read_var_value): Also resolve dynamic type for | |
6273 | LOC_OPTIMIZED_OUT vars. | |
6274 | ||
6592ceed MR |
6275 | 2018-07-18 Maciej W. Rozycki <macro@mips.com> |
6276 | ||
6277 | * mips-tdep.c (micromips_next_pc): Add SYSCALL instruction | |
6278 | decoding. | |
6279 | ||
c6c6149a TT |
6280 | 2018-07-17 Tom Tromey <tom@tromey.com> |
6281 | ||
6282 | * guile/scm-param.c (pascm_set_func, pascm_show_func) | |
6283 | (compute_enum_list, pascm_set_param_value_x) | |
6284 | (gdbscm_parameter_value): Update. | |
6285 | * guile/guile-internal.h (gdbscm_scm_to_string): Update. | |
6286 | (gdbscm_scm_to_host_string): Update. | |
6287 | * guile/scm-math.c (vlscm_convert_typed_value_from_scheme): | |
6288 | Update. | |
6289 | * guile/scm-cmd.c (cmdscm_add_completion): Update. | |
6290 | * guile/scm-pretty-print.c (ppscm_print_string_repr): Update. | |
6291 | * guile/scm-string.c (gdbscm_scm_to_string): Return | |
6292 | unique_xmalloc_ptr. | |
6293 | (gdbscm_scm_to_host_string): Likewise. | |
6294 | ||
a1a31cb8 TT |
6295 | 2018-07-17 Tom Tromey <tom@tromey.com> |
6296 | ||
6297 | * guile/guile.c (gdbscm_eval_from_control_command): Update. | |
6298 | * guile/guile-internal.h (gdbscm_safe_eval_string): Update. | |
6299 | * guile/scm-objfile.c (gdbscm_execute_objfile_script): Update. | |
6300 | * guile/scm-safe-call.c (gdbscm_safe_eval_string): Return | |
6301 | unique_xmalloc_ptr. | |
6302 | ||
15bf3002 TT |
6303 | 2018-07-17 Tom Tromey <tom@tromey.com> |
6304 | ||
6305 | * guile/scm-param.c (pascm_signal_setshow_error): Update. | |
6306 | * guile/guile-internal.h (gdbscm_exception_message_to_string): | |
6307 | Update. | |
6308 | * guile/scm-cmd.c (cmdscm_function): Update. | |
6309 | * guile/scm-pretty-print.c | |
6310 | (ppscm_print_exception_unless_memory_error): Update. | |
6311 | * guile/scm-exception.c (gdbscm_exception_message_to_string): | |
6312 | Return unique_xmalloc_ptr. | |
6313 | ||
7eb1a66c TT |
6314 | 2018-07-17 Tom Tromey <tom@tromey.com> |
6315 | ||
6316 | * guile/scm-pretty-print.c (ppscm_make_pp_type_error_exception): | |
6317 | Use string_printf. | |
6318 | ||
ce73f310 JW |
6319 | 2018-07-17 Jim Wilson <jimw@sifive.com> |
6320 | ||
27724bad JW |
6321 | * riscv-tdep.c (riscv_has_feature): Delete comment that refers to |
6322 | set_gdbarch_decr_pc_after_break. Call riscv_read_misa_reg always. | |
6323 | (riscv_gdbarch_init): Delete local has_compressed_isa. Delete now | |
6324 | unecessary braces after EF_RISCV_RVC test. Delete call to | |
6325 | set_gdbarch_decr_pc_after_break. | |
6326 | ||
ce73f310 JW |
6327 | * riscv-tdep.h (DECLARE_CSR): Use RISCV_FIRST_CSR_REGNUM instead of |
6328 | RISCV_LAST_FP_REGNUM + 1. | |
6329 | (RSICV_CSR_LEGACY_MISA_REGNUM): Add RISCV_FIRST_CSR_REGNUM. | |
6330 | ||
056dec39 TT |
6331 | 2018-07-17 Tom Tromey <tom@tromey.com> |
6332 | ||
6333 | * configure.ac: Remove --disable-gdbcli. | |
6334 | * configure: Rebuild. | |
6335 | * Makefile.in (SUBDIR_CLI_DEPS, SUBDIR_CLI_LDFLAGS) | |
6336 | (SUBDIR_CLI_CFLAGS): Remove. | |
6337 | (SFILES): Use SUBDIR_CLI_SRCS. | |
6338 | (COMMON_OBS): Use SUBDIR_CLI_OBS. | |
6339 | ||
4735f0ed TT |
6340 | 2018-07-17 Tom Tromey <tom@tromey.com> |
6341 | ||
6342 | PR gdb/18624: | |
6343 | * coffread.c (coff_symtab_read): Use scoped_free_pendings. | |
6344 | ||
117a0e99 JW |
6345 | 2018-07-16 Jim Wilson <jimw@sifive.com> |
6346 | ||
6347 | * riscv-tdep.c (riscv_gdbarch_init): Call gdbarch_init_osabi. | |
6348 | ||
8a67aaa8 SM |
6349 | 2018-07-16 Simon Marchi <simon.marchi@ericsson.com> |
6350 | ||
6351 | * ia64-libunwind-tdep.c (libunwind_frame_cache): Remove unused | |
6352 | variable. | |
6353 | (libunwind_frame_sniffer): Likewise. | |
6354 | (libunwind_frame_prev_register): Likewise. | |
6355 | (libunwind_sigtramp_frame_sniffer): Likewise. | |
6356 | * ia64-tdep.c (ia64_access_reg): Likewise. | |
6357 | (ia64_access_rse_reg): Likewise. | |
6358 | (ia64_libunwind_sigtramp_frame_this_id): Likewise. | |
6359 | * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Likewise. | |
6360 | ||
ec74dcd8 SM |
6361 | 2018-07-16 Simon Marchi <simon.marchi@ericsson.com> |
6362 | ||
6363 | * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Add cast. | |
6364 | ||
a700e753 SM |
6365 | 2018-07-16 Simon Marchi <simon.marchi@ericsson.com> |
6366 | ||
6367 | * remote-sim.c (gdbsim_target::close, | |
6368 | gdbsim_target::mourn_inferior): Remove unused variables. | |
6369 | ||
8b411ff8 SM |
6370 | 2018-07-16 Simon Marchi <simon.marchi@polymtl.ca> |
6371 | ||
6372 | * ia64-tdep.c (ktab_buf): New global. | |
6373 | (getunwind_table): Return a gdb::optional<gdb::byte_vector>. | |
6374 | (get_kernel_table): Adjust. | |
6375 | ||
edb0470b TT |
6376 | 2018-07-16 Tom Tromey <tom@tromey.com> |
6377 | ||
6378 | * xcoffread.c (read_xcoff_symtab): Use outermost_context_p. | |
6379 | * dwarf2read.c (using_directives, new_symbol): Use | |
6380 | outermost_context_p. | |
6381 | * dbxread.c (process_one_symbol): Use outermost_context_p. | |
6382 | * coffread.c (coff_symtab_read): Use outermost_context_p. | |
6383 | ||
6cccc9a8 TT |
6384 | 2018-07-16 Tom Tromey <tom@tromey.com> |
6385 | ||
6386 | * dwarf2read.c (using_directives, read_func_scope) | |
6387 | (read_lexical_block_scope): Update. | |
6388 | * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update. | |
6389 | * buildsym.h (local_using_directives, global_using_directives): | |
6390 | Don't declare. | |
6391 | (get_local_using_directives, set_local_using_directives) | |
6392 | (get_global_using_directives): Declare. | |
6393 | * buildsym.c (struct buildsym_compunit) <m_local_using_directives, | |
6394 | m_global_using_directives>: New members. | |
6395 | (finish_block_internal, prepare_for_building) | |
6396 | (reset_symtab_globals, end_symtab_get_static_block) | |
6397 | (push_context): Update. | |
6398 | (get_local_using_directives, set_local_using_directives) | |
6399 | (get_global_using_directives): New functions. | |
6400 | (buildsym_init): Update. | |
6401 | ||
652788a7 TT |
6402 | 2018-07-16 Tom Tromey <tom@tromey.com> |
6403 | ||
6404 | * xcoffread.c (xcoff_initial_scan): Don't call | |
6405 | free_pending_blocks. | |
6406 | * dbxread.c (dbx_symfile_read): Don't call free_pending_blocks. | |
6407 | * buildsym.h (class scoped_free_pendings): Add constructor. | |
6408 | (free_pending_blocks): Don't declare. | |
6409 | * buildsym.c (scoped_free_pendings::scoped_free_pendings): New. | |
6410 | (free_pending_blocks): Now static. | |
6411 | ||
8419ee53 TT |
6412 | 2018-07-16 Tom Tromey <tom@tromey.com> |
6413 | ||
6414 | * buildsym.h (push_subfile, pop_subfile): Update declarations. | |
6415 | * buildsym.c (struct buildsym_compunit) <m_subfile_stack>: New | |
6416 | member. | |
6417 | (struct subfile_stack): Remove. | |
6418 | (subfile_stack): Remove. | |
6419 | (push_subfile, pop_subfile, buildsym_init): Update. | |
6420 | ||
ccdac490 TT |
6421 | 2018-07-16 Tom Tromey <tom@tromey.com> |
6422 | ||
6423 | * buildsym.c (push_subfile): Use gdb_assert. | |
6424 | (pop_subfile): Use gdb_assert. | |
6425 | ||
43130d6f TT |
6426 | 2018-07-16 Tom Tromey <tom@tromey.com> |
6427 | ||
6428 | * buildsym.h (merge_symbol_lists): Remove. | |
6429 | * buildsym.c (merge_symbol_lists): Remove. | |
6430 | ||
77d6f1aa TT |
6431 | 2018-07-16 Tom Tromey <tom@tromey.com> |
6432 | ||
6433 | * stabsread.c (scan_file_globals): Update comment. | |
6434 | * stabsread.h (scan_file_globals): Move from buildsym.h. | |
6435 | * buildsym.h (scan_file_globals): Move to stabsread.h. | |
6436 | ||
2c722d18 TT |
6437 | 2018-07-16 Tom Tromey <tom@tromey.com> |
6438 | ||
6439 | * xcoffread.c (xcoff_new_init): Update. | |
6440 | * mipsread.c (mipscoff_new_init): Update. | |
6441 | * mdebugread.c (mdebug_build_psymtabs): Update. | |
6442 | * elfread.c (elf_new_init): Update. | |
6443 | * dbxread.c (dbx_new_init, coffstab_build_psymtabs) | |
6444 | (elfstab_build_psymtabs, stabsect_build_psymtabs): Update. | |
6445 | * buildsym.h (buildsym_new_init): Don't declare. | |
6446 | * buildsym.c (buildsym_new_init): Remove. | |
6447 | ||
5985ac61 TT |
6448 | 2018-07-16 Tom Tromey <tom@tromey.com> |
6449 | ||
6450 | * stabsread.h (within_function): Move from buildsym.h. | |
6451 | * stabsread.c (start_stabs): Clear within_function. | |
6452 | * coffread.c (coff_start_symtab): Clear within_function. | |
6453 | * buildsym.h (within_function): Move to stabsread.h. | |
6454 | * buildsym.c (prepare_for_building): Update. | |
6455 | ||
6b84eeb2 TT |
6456 | 2018-07-16 Tom Tromey <tom@tromey.com> |
6457 | ||
6458 | * stabsread.h (processing_gcc_compilation): Move from buildsym.h. | |
6459 | * dwarf2read.c (dwarf2_start_symtab): Don't set | |
6460 | processing_gcc_compilation. | |
6461 | * buildsym.h (processing_gcc_compilation): Move to stabsread.h. | |
6462 | ||
2150c3ef TT |
6463 | 2018-07-16 Tom Tromey <tom@tromey.com> |
6464 | ||
6465 | * stabsread.h (HASHSIZE, hashname, symnum, next_symbol_text) | |
6466 | (next_symbol_text_func): Move from buildsym.h. | |
6467 | * stabsread.c (hashname): Move from buildsym.c. | |
6468 | * buildsym.h (HASHSIZE, symnum, next_symbol_text) | |
6469 | (next_symbol_text_func, hashname): Move to stabsread.h. | |
6470 | * buildsym.c: Don't include bcache.h | |
6471 | (hashname): Move to stasbread.c. | |
6472 | ||
0ec44fc0 TT |
6473 | 2018-07-16 Tom Tromey <tom@tromey.com> |
6474 | ||
6475 | * buildsym.h (context_stack_size): Don't declare. | |
6476 | * buildsym.c (context_stack_size): New global. | |
6477 | ||
81cc346d TT |
6478 | 2018-07-16 Tom Tromey <tom@tromey.com> |
6479 | ||
6480 | * dbxread.c (processing_acc_compilation): New global. | |
6481 | * buildsym.h (processing_acc_compilation): Don't declare. | |
6482 | ||
2c99ee5c TT |
6483 | 2018-07-16 Tom Tromey <tom@tromey.com> |
6484 | ||
6485 | * xcoffread.c (aix_process_linenos, complete_symtab): Update. | |
6486 | * dbxread.c (read_ofile_symtab): Update. | |
6487 | * coffread.c (coff_start_symtab, coff_end_symtab): Update. | |
6488 | * buildsym.h (last_source_start_addr): Remove. | |
6489 | (set_last_source_start_addr, get_last_source_start_addr): | |
6490 | Declare. | |
6491 | * buildsym.c (buildsym_compunit::buildsym_compunit): Add last_addr | |
6492 | parameter. | |
6493 | (struct buildsym_compunit) <m_last_source_start_addr>: New | |
6494 | member. | |
6495 | (prepare_for_building): Remove start_addr parameter. | |
6496 | (start_symtab, restart_symtab, end_symtab_get_static_block) | |
6497 | (end_symtab_with_blockvector): Update. | |
6498 | (set_last_source_start_addr, get_last_source_start_addr): New | |
6499 | functions. | |
6500 | ||
530fedbc TT |
6501 | 2018-07-16 Tom Tromey <tom@tromey.com> |
6502 | ||
6503 | * buildsym.c (struct buildsym_compunit) <m_have_line_numbers>: New | |
6504 | member. | |
6505 | (have_line_numbers): Remove. | |
6506 | (record_line, prepare_for_building, end_symtab_get_static_block) | |
6507 | (augment_type_symtab): Update. | |
6508 | ||
6a976300 TT |
6509 | 2018-07-16 Tom Tromey <tom@tromey.com> |
6510 | ||
6511 | * buildsym.c (~buildsym_compunit): Free the macro table. | |
6512 | (struct buildsym_compunit) <get_macro_table, release_macros>: New | |
6513 | methods. | |
6514 | <m_pending_macros>: New member. | |
6515 | (pending_macros): Remove. | |
6516 | (~scoped_free_pendings, get_macro_table, prepare_for_building) | |
6517 | (reset_symtab_globals, end_symtab_get_static_block) | |
6518 | (end_symtab_with_blockvector, augment_type_symtab) | |
6519 | (buildsym_init): Update. | |
6520 | ||
c0015d44 TT |
6521 | 2018-07-16 Tom Tromey <tom@tromey.com> |
6522 | ||
6523 | * buildsym.c (buildsym_compunit::buildsym_compunit): Add name | |
6524 | parameter. | |
6525 | (buildsym_compunit::set_last_source_file): New method. | |
6526 | <m_last_source_file>: New member. | |
6527 | (prepare_for_building): Remove "name" parameter. | |
6528 | (start_symtab, restart_symtab, reset_symtab_globals): Update. | |
6529 | (last_source_file): Remove. | |
6530 | (set_last_source_file, get_last_source_file): Update. | |
6531 | ||
e62cca7c TT |
6532 | 2018-07-16 Tom Tromey <tom@tromey.com> |
6533 | ||
6534 | * buildsym.c (prepare_for_building): Add assert. | |
6535 | ||
905eb0e2 TT |
6536 | 2018-07-16 Tom Tromey <tom@tromey.com> |
6537 | ||
6538 | * buildsym.c (~buildsym_compunit): Update. | |
6539 | (struct buildsym_compunit) <comp_unit>: Now a unique_xmalloc_ptr. | |
6540 | (start_subfile, patch_subfile_names) | |
6541 | (end_symtab_with_blockvector): Update. | |
6542 | ||
b248663f TT |
6543 | 2018-07-16 Tom Tromey <tom@tromey.com> |
6544 | ||
6545 | * buildsym.c (struct buildsym_compunit): Add constructor, | |
6546 | destructor, initializers. | |
6547 | (start_buildsym_compunit): Remove. | |
6548 | (free_buildsym_compunit): Use "delete". | |
6549 | (start_symtab, restart_symtab): Use "new". | |
6550 | ||
ff27d073 SM |
6551 | 2018-07-13 Simon Marchi <simon.marchi@polymtl.ca> |
6552 | ||
6553 | * symfile.c (set_objfile_default_section_offset): Remove struct | |
6554 | keyword. | |
6555 | ||
6a15ecf5 SH |
6556 | 2018-07-14 Stafford Horne <shorne@gmail.com> |
6557 | ||
6558 | * (Responsible Maintainers): Add myself as or1k maintainer. | |
6559 | ||
027a4c30 TT |
6560 | 2018-07-13 Tom Tromey <tom@tromey.com> |
6561 | ||
6562 | * symfile.c (set_objfile_default_section_offset): Use extra braces | |
6563 | around initializer. | |
6564 | ||
5c1eda30 AA |
6565 | 2018-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
6566 | ||
6567 | * s390-tdep.c (s390_displaced_step_fixup): Adjust PC for a | |
6568 | non-branching basr. | |
6569 | ||
bc7b042b PW |
6570 | 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
6571 | ||
6572 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add | |
6573 | unittests/cli-utils-selftests.c | |
6574 | * unittests/cli-utils-selftests.c: New file. | |
6575 | ||
a14c4daa PW |
6576 | 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
6577 | ||
6578 | * NEWS: Mention new commands. Mention change to 'thread apply'. | |
6579 | ||
1fe75df7 PW |
6580 | 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
6581 | ||
6582 | * thread.c (thr_try_catch_cmd): New function. | |
6583 | (thread_apply_all_command): Handle qcs flags. | |
6584 | (thread_apply_command): Handle qcs flags. | |
6585 | (taas_command): New function. | |
6586 | (tfaas_command): New function. | |
6587 | (_initialize_thread): Update to setup the new commands 'taas | |
6588 | and 'tfaas'. Change doc string for 'thread apply'. | |
6589 | ||
6a70eb7d PW |
6590 | 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
6591 | ||
6592 | * stack.c: (trailing_outermost_frame): New function, mostly | |
6593 | extracted from backtrace_command_1. | |
6594 | (leading_innermost_frame): New function. | |
6595 | (backtrace_command_1): Update to call trailing_outermost_frame. | |
6596 | (frame_apply_command_count): New function. | |
6597 | (frame_apply_level_command): New function. | |
6598 | (frame_apply_all_command): New function. | |
6599 | (frame_apply_command): New function. | |
6600 | (faas_command): New function. | |
6601 | (frame_cmd_list): New variable. | |
6602 | (_initialize_stack): Update to setup the new commands 'frame apply' | |
6603 | and 'faas'. | |
6604 | ||
529c08b2 PW |
6605 | 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
6606 | ||
6607 | * cli-utils.c (number_or_range_parser::get_number): Only handle | |
6608 | numbers or convenience var as numbers. | |
6609 | (parse_flags): New function. | |
6610 | (parse_flags_qcs): New function. | |
6611 | (number_or_range_parser::finished): Ensure parsing end is detected | |
6612 | before end of string. | |
6613 | * cli-utils.h (parse_flags): New function. | |
6614 | (parse_flags_qcs): New function. | |
6615 | (number_or_range_parser): Remove m_finished bool. | |
6616 | (number_or_range_parser::skip_range): Set m_in_range to false. | |
6617 | ||
64b58472 SDJ |
6618 | 2018-07-12 Sergio Durigan Junior <sergiodj@redhat.com> |
6619 | ||
6620 | * ser-tcp.c (try_connect): Declare 'ioarg' as 'u_long' if building | |
6621 | on Windows. | |
6622 | ||
c7ab0aef SDJ |
6623 | 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com> |
6624 | Jan Kratochvil <jan.kratochvil@redhat.com> | |
6625 | Paul Fertser <fercerpav@gmail.com> | |
6626 | Tsutomu Seki <sekiriki@gmail.com> | |
6627 | Pedro Alves <palves@redhat.com> | |
6628 | ||
6629 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add | |
6630 | 'unittests/parse-connection-spec-selftests.c'. | |
6631 | (COMMON_SFILES): Add 'common/netstuff.c'. | |
6632 | (HFILES_NO_SRCDIR): Add 'common/netstuff.h'. | |
6633 | * NEWS (Changes since GDB 8.2): Mention IPv6 support. | |
6634 | * common/netstuff.c: New file. | |
6635 | * common/netstuff.h: New file. | |
6636 | * ser-tcp.c: Include 'netstuff.h' and 'wspiapi.h'. | |
6637 | (wait_for_connect): Update comment. New parameter | |
6638 | 'gdb::optional<int> sock' instead of 'struct serial *scb'. | |
6639 | Use 'sock' directly instead of 'scb->fd'. | |
6640 | (try_connect): New function, with code from 'net_open'. | |
6641 | (net_open): Rewrite main loop to deal with multiple | |
6642 | sockets/addresses. Handle IPv6-style hostnames; implement | |
6643 | support for IPv6 connections. | |
6644 | * unittests/parse-connection-spec-selftests.c: New file. | |
6645 | ||
4c7333b3 PA |
6646 | 2018-07-11 Pedro Alves <palves@redhat.com> |
6647 | ||
6648 | PR gdb/23377 | |
6649 | * remote.c (remote_target::remote_detach_pid): Call | |
6650 | set_current_process. | |
6651 | ||
a6f88f6e PA |
6652 | 2018-07-11 Pedro Alves <palves@redhat.com> |
6653 | ||
6654 | * h8300-tdep.c (h8300_gdbarch_init): Remove | |
6655 | set_gdbarch_ecoff_reg_to_regnum calls. | |
6656 | ||
16ff70dd SDJ |
6657 | 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com> |
6658 | ||
6659 | PR c++/23373 | |
6660 | * c-typeprint.c (c_type_print_base_struct_union): Don't print | |
6661 | offsets/sizes for static members of a class/struct. | |
6662 | ||
12863263 AH |
6663 | 2018-07-11 Alan Hayward <alan.hayward@arm.com> |
6664 | ||
6665 | * target-descriptions.c (tdesc_register_bitsize): Rename. | |
6666 | * target-descriptions.h (tdesc_register_bitsize): Likewise. | |
6667 | * rs6000-tdep.c (rs6000_gdbarch_init): Use new name. | |
6668 | * aarch64-tdep.c (aarch64_get_tdesc_vq): Convert size. | |
6669 | ||
1123588c TT |
6670 | 2018-07-10 Tom Tromey <tom@tromey.com> |
6671 | ||
6672 | * breakpoint.c (moribund_locations): Now static and a | |
6673 | std::vector. | |
6674 | (breakpoint_init_inferior, moribund_breakpoint_here_p) | |
6675 | (build_bpstat_chain, update_global_location_list) | |
6676 | (breakpoint_retire_moribund): Update. | |
6677 | * breakpoint.h (bp_location_p): Remove typedef. Don't declare | |
6678 | VEC. | |
6679 | ||
8c49aa89 AB |
6680 | 2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com> |
6681 | ||
6682 | * riscv-tdep.c (riscv_is_fp_regno_p): New function. | |
6683 | (riscv_register_reggroup_p): Use new function, remove unneeded | |
6684 | parenthesis. | |
6685 | (riscv_push_dummy_call): Extend assert to compare against xlen or | |
6686 | flen based on register type. | |
6687 | ||
42ecac17 AB |
6688 | 2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com> |
6689 | ||
6690 | * riscv-tdep.c (riscv_print_arg_location): Use TYPE_SAFE_NAME. | |
6691 | ||
055303e2 AB |
6692 | 2018-07-09 Andrew Burgess <andrew.burgess@embecosm.com> |
6693 | ||
6694 | * remote.c (show_hardware_watchpoint_limit): New function. | |
6695 | (show_hardware_watchpoint_length_limit): New function. | |
6696 | (show_hardware_breakpoint_limit): New function. | |
6697 | (_initialize_remote): Use add_setshow_zuinteger_unlimited_cmd | |
6698 | where appropriate, update help text. | |
6699 | ||
8fd32c1c TT |
6700 | 2018-07-09 Tom Tromey <tom@tromey.com> |
6701 | ||
6702 | * Makefile.in (CDEPS): Don't mention XM_CDEPS. | |
6703 | (CLIBS): Don't mention NAT_CLIBS. | |
6704 | ||
31278b51 TT |
6705 | 2018-07-09 Tom Tromey <tom@tromey.com> |
6706 | ||
6707 | * Makefile.in (ADD_FILES, ADD_DEPS): Remove. | |
6708 | (LIBGDB_OBS, clean mostlyclean): Update. | |
6709 | (gdb$(EXEEXT), insight$(EXEEXT)): Update. | |
6710 | ||
e5fd1493 TT |
6711 | 2018-07-09 Tom Tromey <tom@tromey.com> |
6712 | ||
6713 | * Makefile.in (%.c: %.y): Use ECHO_YACC. | |
6714 | (%.c: %.l): Use ECHO_LEX. Just fail if flex not available. | |
6715 | * silent-rules.mk (ECHO_YACC, ECHO_LEX): New variables. | |
6716 | ||
981e0c0c TT |
6717 | 2018-07-09 Tom Tromey <tom@tromey.com> |
6718 | ||
6719 | * Makefile.in (ALLDEPFILES): Remove exec.c. | |
6720 | (COMMON_OBS): Remove exec.o. | |
6721 | (COMMON_SFILES): Add exec.c. | |
6722 | ||
14ccceb2 TT |
6723 | 2018-07-09 Tom Tromey <tom@tromey.com> |
6724 | ||
6725 | * Makefile.in (LINT, LINTFLAGS, LINTFILES, lint): Remove. | |
6726 | ||
5d3c3a68 TT |
6727 | 2018-07-09 Tom Tromey <tom@tromey.com> |
6728 | ||
6729 | * Makefile.in (clean mostlyclean): Remove stamp-version. | |
6730 | (version.c): Depend on stamp-version. | |
6731 | (stamp-version): New rule, from version.c rule. | |
6732 | ||
1998086d TT |
6733 | 2018-07-09 Tom Tromey <tom@tromey.com> |
6734 | ||
6735 | * Makefile.in (init.c): Depend on stamp-init. | |
6736 | (stamp-init): New rule, from init.c rule. | |
6737 | (clean mostlyclean): Remove stamp-init. | |
6738 | ||
4c754949 TT |
6739 | 2018-07-09 Tom Tromey <tom@tromey.com> |
6740 | ||
6741 | * Makefile.in (INIT_FILES): Remove CONFIG_SRCS, | |
6742 | SUBDIR_GCC_COMPILE_SRCS. | |
6743 | ||
6497f1dd TT |
6744 | 2018-07-09 Tom Tromey <tom@tromey.com> |
6745 | ||
6746 | * Makefile.in (init.c): Remove some unused sed rules. | |
6747 | ||
97a34db9 TT |
6748 | 2018-07-09 Tom Tromey <tom@tromey.com> |
6749 | ||
6750 | * Makefile.in (TSOBS): Remove. | |
6751 | (INIT_FILES): Update. | |
6752 | (LIBGDB_OBS): Update. | |
6753 | (COMMON_SFILES): Add inflow.c. | |
6754 | (SFILES): Remove inflow.c. | |
6755 | ||
25289ac1 JK |
6756 | 2018-07-07 Jan Kratochvil <jan.kratochvil@redhat.com> |
6757 | ||
6758 | * contrib/gdb-add-index.sh ($dwarf5): New, use it. | |
6759 | ||
e83f4d97 SM |
6760 | 2018-07-07 Simon Marchi <simon.marchi@polymtl.ca> |
6761 | ||
4869c585 SM |
6762 | * ia64-libunwind-tdep.c (get_reg_name, get_fpreg_name, |
6763 | get_saveloc_name, is_signal_frame_name, step_name, | |
6764 | init_remote_name, create_addr_space_name, | |
6765 | destroy_addr_space_name, search_unwind_table_name, | |
6766 | find_dyn_list_name): Constify. | |
e83f4d97 | 6767 | |
6821842f SM |
6768 | 2018-07-05 Simon Marchi <simon.marchi@polymtl.ca> |
6769 | ||
6770 | * darwin-nat.c (darwin_pthread_kill): New function. | |
6771 | (darwin_resume_thread): Use darwin_pthread_kill. | |
6772 | ||
c530603c TV |
6773 | 2018-07-05 Tom de Vries <tdevries@suse.de> |
6774 | ||
6775 | * macroexp.c (macro_buffer) <operator=>: New member function. | |
6776 | ||
a7d0f0f0 TT |
6777 | 2018-07-04 Tom Tromey <tom@tromey.com> |
6778 | ||
6779 | * darwin-nat.c (darwin_attach_pid): Use exit_inferior. | |
6780 | ||
6242c6a6 SM |
6781 | 2018-07-04 Simon Marchi <simon.marchi@polymtl.ca> |
6782 | ||
6783 | * common/common-defs.h (HAVE_USEFUL_SBRK): Define. | |
6784 | * main.c: Use HAVE_USEFUL_SBRK instead of HAVE_SBRK. | |
6785 | * maint.c: Likewise. | |
6786 | * top.c: Likewise. | |
6787 | ||
4e5b2f89 JB |
6788 | 2018-07-04 Joel Brobecker <brobecker@adacore.com> |
6789 | ||
6790 | * NEWS: Create a new section for the next release branch. | |
6791 | Rename the section of the current branch, now that it has | |
6792 | been cut. | |
6793 | ||
538ccc4a JB |
6794 | 2018-07-04 Joel Brobecker <brobecker@adacore.com> |
6795 | ||
6796 | GDB 8.2 branch created (1b919490e8ba30bf1d6941df0ed112b0e557017e): | |
6797 | * version.in: Bump version to 8.2.50.DATE-git. | |
6798 | ||
1b919490 VB |
6799 | 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com> |
6800 | Pedro Alves <palves@redhat.com> | |
6801 | ||
6802 | * linux-nat.c (linux_init_ptrace): Rename to ... | |
6803 | (linux_init_ptrace_procfs): ... this. Call | |
6804 | linux_proc_init_warnings. | |
6805 | (linux_nat_target::post_attach) | |
6806 | (linux_nat_target::post_startup_inferior): Adjust. | |
6807 | * nat/linux-procfs.c (linux_proc_init_warnings): Define function. | |
6808 | * nat/linux-procfs.h (linux_proc_init_warnings): Declare function. | |
6809 | ||
1ea5da02 TV |
6810 | 2018-07-04 Tom de Vries <tdevries@suse.de> |
6811 | ||
6812 | * dwarf2read.c (error_check_comp_unit_head): Move dwarf version | |
6813 | check ... | |
6814 | (read_comp_unit_head): ... here. | |
6815 | ||
f51e0e20 TT |
6816 | 2018-07-03 Tom Tromey <tom@tromey.com> |
6817 | ||
6818 | * tracepoint.c (process_tracepoint_on_disconnect, start_tracing) | |
6819 | (stop_tracing, tstatus_command) | |
6820 | (find_matching_tracepoint_location, merge_uploaded_tracepoints) | |
6821 | (print_one_static_tracepoint_marker): Update. | |
6822 | * breakpoint.c (static_tracepoints_here, all_tracepoints): Return | |
6823 | std::vector. | |
6824 | * breakpoint.h (breakpoint_p): Remove typedef. Don't declare | |
6825 | VEC. | |
6826 | (all_tracepoints, static_tracepoints_here): Return std::vector. | |
6827 | ||
d7e15655 TT |
6828 | 2018-07-03 Tom Tromey <tom@tromey.com> |
6829 | ||
6830 | * common/ptid.c (ptid_equal): Remove. | |
6831 | * common/ptid.h (ptid_equal): Don't declare. | |
6832 | * ada-tasks.c: Update. | |
6833 | * breakpoint.c: Update. | |
6834 | * common/agent.c: Update. | |
6835 | * corelow.c: Update. | |
6836 | * darwin-nat-info.c: Update. | |
6837 | * darwin-nat.c: Update. | |
6838 | * dcache.c: Update. | |
6839 | * dtrace-probe.c: Update. | |
6840 | * dummy-frame.c: Update. | |
6841 | * fbsd-nat.c: Update. | |
6842 | * frame.c: Update. | |
6843 | * gdbthread.h: Update. | |
6844 | * gnu-nat.c: Update. | |
6845 | * go32-nat.c: Update. | |
6846 | * inf-loop.c: Update. | |
6847 | * inf-ptrace.c: Update. | |
6848 | * infcall.c: Update. | |
6849 | * infcmd.c: Update. | |
6850 | * inflow.c: Update. | |
6851 | * infrun.c: Update. | |
6852 | * linux-fork.c: Update. | |
6853 | * linux-nat.c: Update. | |
6854 | * linux-thread-db.c: Update. | |
6855 | * mi/mi-cmd-var.c: Update. | |
6856 | * mi/mi-interp.c: Update. | |
6857 | * mi/mi-main.c: Update. | |
6858 | * nto-procfs.c: Update. | |
6859 | * ppc-linux-tdep.c: Update. | |
6860 | * procfs.c: Update. | |
6861 | * python/py-inferior.c: Update. | |
6862 | * python/py-record-btrace.c: Update. | |
6863 | * python/py-record.c: Update. | |
6864 | * ravenscar-thread.c: Update. | |
6865 | * regcache.c: Update. | |
6866 | * remote-sim.c: Update. | |
6867 | * remote.c: Update. | |
6868 | * sol-thread.c: Update. | |
6869 | * solib.c: Update. | |
6870 | * target.c: Update. | |
6871 | * tui/tui-stack.c: Update. | |
6872 | * varobj.c: Update. | |
6873 | * windows-nat.c: Update. | |
6874 | * windows-tdep.c: Update. | |
6875 | ||
26a57c92 TT |
6876 | 2018-07-03 Tom Tromey <tom@tromey.com> |
6877 | ||
6878 | * common/ptid.c (ptid_match): Remove. | |
6879 | * common/ptid.h (ptid_match): Don't declare. | |
6880 | * fbsd-nat.c: Update. | |
6881 | * infcmd.c: Update. | |
6882 | * infrun.c: Update. | |
6883 | * linux-nat.c: Update. | |
6884 | * record-btrace.c: Update. | |
6885 | * regcache.c: Update. | |
6886 | * remote.c: Update. | |
6887 | ||
d2a107e3 TT |
6888 | 2018-07-03 Tom Tromey <tom@tromey.com> |
6889 | ||
6890 | * common/ptid.c (ptid_tid_p): Remove. | |
6891 | * common/ptid.h (ptid_tid_p): Don't declare. | |
6892 | * sol-thread.c: Update. | |
6893 | ||
15a9e13e TT |
6894 | 2018-07-03 Tom Tromey <tom@tromey.com> |
6895 | ||
6896 | * common/ptid.c (ptid_lwp_p): Remove. | |
6897 | * common/ptid.h (ptid_lwp_p): Don't declare. | |
6898 | * fbsd-nat.c: Update. | |
6899 | * linux-nat.c: Update. | |
6900 | * nat/linux-procfs.c: Update. | |
6901 | * nat/x86-linux-dregs.c: Update. | |
6902 | * sol-thread.c: Update. | |
6903 | ||
0e998d96 TT |
6904 | 2018-07-03 Tom Tromey <tom@tromey.com> |
6905 | ||
6906 | * common/ptid.c (ptid_is_pid): Remove. | |
6907 | * common/ptid.h (ptid_is_pid): Don't declare. | |
6908 | * infrun.c: Update. | |
6909 | * linux-nat.c: Update. | |
6910 | * mi/mi-interp.c: Update. | |
6911 | * remote.c: Update. | |
6912 | * thread.c: Update. | |
6913 | ||
cc6bcb54 TT |
6914 | 2018-07-03 Tom Tromey <tom@tromey.com> |
6915 | ||
6916 | * common/ptid.c (ptid_get_tid): Remove. | |
6917 | * common/ptid.h (ptid_get_tid): Don't declare. | |
6918 | * ada-tasks.c: Update. | |
6919 | * aix-thread.c: Update. | |
6920 | * bsd-uthread.c: Update. | |
6921 | * darwin-nat.c: Update. | |
6922 | * fbsd-nat.c: Update. | |
6923 | * i386-darwin-nat.c: Update. | |
6924 | * infrun.c: Update. | |
6925 | * linux-tdep.c: Update. | |
6926 | * nto-procfs.c: Update. | |
6927 | * ppc-ravenscar-thread.c: Update. | |
6928 | * python/py-infthread.c: Update. | |
6929 | * ravenscar-thread.c: Update. | |
6930 | * sol-thread.c: Update. | |
6931 | * sparc-ravenscar-thread.c: Update. | |
6932 | * windows-nat.c: Update. | |
6933 | ||
e38504b3 TT |
6934 | 2018-07-03 Tom Tromey <tom@tromey.com> |
6935 | ||
6936 | * common/ptid.c (ptid_get_lwp): Remove. | |
6937 | * common/ptid.h (ptid_get_lwp): Don't declare. | |
6938 | * aarch64-linux-nat.c: Update. | |
6939 | * ada-tasks.c: Update. | |
6940 | * aix-thread.c: Update. | |
6941 | * amd64-linux-nat.c: Update. | |
6942 | * arm-linux-nat.c: Update. | |
6943 | * corelow.c: Update. | |
6944 | * fbsd-nat.c: Update. | |
6945 | * fbsd-tdep.c: Update. | |
6946 | * gnu-nat.c: Update. | |
6947 | * i386-cygwin-tdep.c: Update. | |
6948 | * i386-gnu-nat.c: Update. | |
6949 | * i386-linux-nat.c: Update. | |
6950 | * ia64-linux-nat.c: Update. | |
6951 | * inf-ptrace.c: Update. | |
6952 | * infrun.c: Update. | |
6953 | * linux-fork.c: Update. | |
6954 | * linux-nat.c: Update. | |
6955 | * linux-tdep.c: Update. | |
6956 | * linux-thread-db.c: Update. | |
6957 | * mips-linux-nat.c: Update. | |
6958 | * nat/aarch64-linux-hw-point.c: Update. | |
6959 | * nat/aarch64-linux.c: Update. | |
6960 | * nat/linux-btrace.c: Update. | |
6961 | * nat/linux-osdata.c: Update. | |
6962 | * nat/linux-procfs.c: Update. | |
6963 | * nat/x86-linux-dregs.c: Update. | |
6964 | * obsd-nat.c: Update. | |
6965 | * ppc-fbsd-nat.c: Update. | |
6966 | * ppc-linux-nat.c: Update. | |
6967 | * procfs.c: Update. | |
6968 | * python/py-infthread.c: Update. | |
6969 | * ravenscar-thread.c: Update. | |
6970 | * remote.c: Update. | |
6971 | * s390-linux-nat.c: Update. | |
6972 | * sol-thread.c: Update. | |
6973 | * sol2-tdep.c: Update. | |
6974 | * spu-linux-nat.c: Update. | |
6975 | * x86-linux-nat.c: Update. | |
6976 | * xtensa-linux-nat.c: Update. | |
6977 | ||
e99b03dc TT |
6978 | 2018-07-03 Tom Tromey <tom@tromey.com> |
6979 | ||
6980 | * common/ptid.c (ptid_get_pid): Remove. | |
6981 | * common/ptid.h (ptid_get_pid): Don't declare. | |
6982 | * aarch64-linux-nat.c: Update. | |
6983 | * ada-lang.c: Update. | |
6984 | * aix-thread.c: Update. | |
6985 | * alpha-bsd-nat.c: Update. | |
6986 | * amd64-fbsd-nat.c: Update. | |
6987 | * amd64-linux-nat.c: Update. | |
6988 | * arm-linux-nat.c: Update. | |
6989 | * arm-nbsd-nat.c: Update. | |
6990 | * auxv.c: Update. | |
6991 | * break-catch-syscall.c: Update. | |
6992 | * breakpoint.c: Update. | |
6993 | * bsd-uthread.c: Update. | |
6994 | * corelow.c: Update. | |
6995 | * ctf.c: Update. | |
6996 | * darwin-nat.c: Update. | |
6997 | * fbsd-nat.c: Update. | |
6998 | * fbsd-tdep.c: Update. | |
6999 | * gcore.c: Update. | |
7000 | * gnu-nat.c: Update. | |
7001 | * hppa-nbsd-nat.c: Update. | |
7002 | * hppa-obsd-nat.c: Update. | |
7003 | * i386-fbsd-nat.c: Update. | |
7004 | * ia64-linux-nat.c: Update. | |
7005 | * inf-ptrace.c: Update. | |
7006 | * infcmd.c: Update. | |
7007 | * inferior.c: Update. | |
7008 | * inferior.h: Update. | |
7009 | * inflow.c: Update. | |
7010 | * infrun.c: Update. | |
7011 | * linux-fork.c: Update. | |
7012 | * linux-nat.c: Update. | |
7013 | * linux-tdep.c: Update. | |
7014 | * linux-thread-db.c: Update. | |
7015 | * m68k-bsd-nat.c: Update. | |
7016 | * mi/mi-interp.c: Update. | |
7017 | * mi/mi-main.c: Update. | |
7018 | * mips-linux-nat.c: Update. | |
7019 | * mips-nbsd-nat.c: Update. | |
7020 | * mips64-obsd-nat.c: Update. | |
7021 | * nat/aarch64-linux-hw-point.c: Update. | |
7022 | * nat/aarch64-linux.c: Update. | |
7023 | * nat/linux-btrace.c: Update. | |
7024 | * nat/linux-osdata.c: Update. | |
7025 | * nat/linux-procfs.c: Update. | |
7026 | * nat/x86-linux-dregs.c: Update. | |
7027 | * nto-procfs.c: Update. | |
7028 | * obsd-nat.c: Update. | |
7029 | * ppc-linux-nat.c: Update. | |
7030 | * ppc-nbsd-nat.c: Update. | |
7031 | * ppc-obsd-nat.c: Update. | |
7032 | * proc-service.c: Update. | |
7033 | * procfs.c: Update. | |
7034 | * python/py-inferior.c: Update. | |
7035 | * python/py-infthread.c: Update. | |
7036 | * ravenscar-thread.c: Update. | |
7037 | * record.c: Update. | |
7038 | * remote-sim.c: Update. | |
7039 | * remote.c: Update. | |
7040 | * rs6000-nat.c: Update. | |
7041 | * s390-linux-nat.c: Update. | |
7042 | * sh-nbsd-nat.c: Update. | |
7043 | * sol-thread.c: Update. | |
7044 | * sparc-nat.c: Update. | |
7045 | * sparc64-tdep.c: Update. | |
7046 | * spu-linux-nat.c: Update. | |
7047 | * spu-tdep.c: Update. | |
7048 | * target-debug.h: Update. | |
7049 | * target.c: Update. | |
7050 | * thread.c: Update. | |
7051 | * tid-parse.c: Update. | |
7052 | * tracefile-tfile.c: Update. | |
7053 | * vax-bsd-nat.c: Update. | |
7054 | * windows-nat.c: Update. | |
7055 | * x86-linux-nat.c: Update. | |
7056 | * x86-nat.c: Update. | |
7057 | ||
f2907e49 TT |
7058 | 2018-07-03 Tom Tromey <tom@tromey.com> |
7059 | ||
7060 | * common/ptid.c (pid_to_ptid): Remove. | |
7061 | * common/ptid.h (pid_to_ptid): Don't declare. | |
7062 | * aix-thread.c: Update. | |
7063 | * arm-linux-nat.c: Update. | |
7064 | * common/ptid.c: Update. | |
7065 | * common/ptid.h: Update. | |
7066 | * corelow.c: Update. | |
7067 | * ctf.c: Update. | |
7068 | * darwin-nat.c: Update. | |
7069 | * fbsd-nat.c: Update. | |
7070 | * fork-child.c: Update. | |
7071 | * gnu-nat.c: Update. | |
7072 | * go32-nat.c: Update. | |
7073 | * inf-ptrace.c: Update. | |
7074 | * infcmd.c: Update. | |
7075 | * inferior.c: Update. | |
7076 | * infrun.c: Update. | |
7077 | * linux-fork.c: Update. | |
7078 | * linux-nat.c: Update. | |
7079 | * nat/aarch64-linux-hw-point.c: Update. | |
7080 | * nat/fork-inferior.c: Update. | |
7081 | * nat/x86-linux-dregs.c: Update. | |
7082 | * nto-procfs.c: Update. | |
7083 | * obsd-nat.c: Update. | |
7084 | * procfs.c: Update. | |
7085 | * progspace.c: Update. | |
7086 | * remote.c: Update. | |
7087 | * rs6000-nat.c: Update. | |
7088 | * s390-linux-nat.c: Update. | |
7089 | * sol-thread.c: Update. | |
7090 | * spu-linux-nat.c: Update. | |
7091 | * target.c: Update. | |
7092 | * top.c: Update. | |
7093 | * tracefile-tfile.c: Update. | |
7094 | * windows-nat.c: Update. | |
7095 | ||
fd79271b TT |
7096 | 2018-07-03 Tom Tromey <tom@tromey.com> |
7097 | ||
7098 | * common/ptid.h (ptid_build): Don't declare. | |
7099 | * common/ptid.c (ptid_build): Remove. | |
7100 | * aix-thread.c: Update. | |
7101 | * bsd-kvm.c: Update. | |
7102 | * bsd-uthread.c: Update. | |
7103 | * common/agent.c: Update. | |
7104 | * common/ptid.c: Update. | |
7105 | * common/ptid.h: Update. | |
7106 | * corelow.c: Update. | |
7107 | * darwin-nat.c: Update. | |
7108 | * fbsd-nat.c: Update. | |
7109 | * gnu-nat.c: Update. | |
7110 | * linux-fork.c: Update. | |
7111 | * linux-nat.c: Update. | |
7112 | * linux-thread-db.c: Update. | |
7113 | * nat/linux-osdata.c: Update. | |
7114 | * nat/linux-procfs.c: Update. | |
7115 | * nto-procfs.c: Update. | |
7116 | * obsd-nat.c: Update. | |
7117 | * proc-service.c: Update. | |
7118 | * procfs.c: Update. | |
7119 | * ravenscar-thread.c: Update. | |
7120 | * remote-sim.c: Update. | |
7121 | * remote.c: Update. | |
7122 | * sol-thread.c: Update. | |
7123 | * target.c: Update. | |
7124 | * windows-nat.c: Update. | |
7125 | ||
057302ce TT |
7126 | 2018-07-03 Tom Tromey <tom@tromey.com> |
7127 | ||
7128 | * infrun.c (follow_exec): Use exit_inferior_silent. | |
7129 | * inferior.c (exit_inferior_num_silent): Remove. | |
7130 | * inferior.h (exit_inferior_num_silent): Don't declare. | |
7131 | ||
a50c11c6 TT |
7132 | 2018-07-03 Tom Tromey <tom@tromey.com> |
7133 | ||
7134 | PR cli/23340: | |
7135 | * darwin-nat.c (darwin_attach_pid): Reset inferior and | |
7136 | inferior_ptid on error. | |
7137 | ||
471b9d15 MR |
7138 | 2018-07-02 Maciej W. Rozycki <macro@mips.com> |
7139 | Simon Marchi <simon.marchi@polymtl.ca> | |
7140 | ||
7141 | PR tdep/8282 | |
7142 | * disasm.h (gdb_disassembler): Add | |
7143 | `m_disassembler_options_holder'. member | |
7144 | * disasm.c (get_all_disassembler_options): New function. | |
7145 | (gdb_disassembler::gdb_disassembler): Use it. | |
7146 | (gdb_buffered_insn_length_init_dis): Likewise. | |
7147 | (gdb_buffered_insn_length): Adjust accordingly. | |
7148 | (set_disassembler_options): Handle options with arguments. | |
7149 | (show_disassembler_options_sfunc): Likewise. Add a leading new | |
7150 | line if showing options with descriptions. | |
7151 | (disassembler_options_completer): Adapt to using the | |
7152 | `disasm_options_and_args_t' structure. | |
7153 | * mips-tdep.c (mips_disassembler_options): New variable. | |
7154 | (mips_disassembler_options_o32): Likewise. | |
7155 | (mips_disassembler_options_n32): Likewise. | |
7156 | (mips_disassembler_options_n64): Likewise. | |
7157 | (gdb_print_insn_mips): Don't set `disassembler_options'. | |
7158 | (gdb_print_insn_mips_n32, gdb_print_insn_mips_n64): Remove | |
7159 | functions. | |
7160 | (mips_gdbarch_init): Always set `gdbarch_print_insn' to | |
7161 | `gdb_print_insn_mips'. Set `gdbarch_disassembler_options', | |
7162 | `gdbarch_disassembler_options_implicit' and | |
7163 | `gdbarch_valid_disassembler_options'. | |
7164 | * arm-tdep.c (_initialize_arm_tdep): Adapt to using the | |
7165 | `disasm_options_and_args_t' structure. | |
7166 | * gdbarch.sh (disassembler_options_implicit): New `gdbarch' | |
7167 | method. | |
7168 | (valid_disassembler_options): Switch from `disasm_options_t' to | |
7169 | the `disasm_options_and_args_t' structure. | |
7170 | * NEWS: Document `set disassembler-options' support for the MIPS | |
7171 | target. | |
7172 | * gdbarch.h: Regenerate. | |
7173 | * gdbarch.c: Regenerate. | |
7174 | ||
41823f29 SH |
7175 | 2018-07-02 Sebastian Huber <sebastian.huber@embedded-brains.de> |
7176 | ||
7177 | * riscv-tdep.c (riscv_register_aliases): Swap "fp" and "s0" entries. | |
7178 | ||
41206e32 JB |
7179 | 2018-06-29 Joel Brobecker <brobecker@adacore.com> |
7180 | ||
7181 | * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Add missing | |
7182 | parameter in call to amd64_target_description. | |
7183 | * amd64-dicos-tdep.c (amd64_dicos_init_abi): Likewise. | |
7184 | * amd64-fbsd-tdep.c (amd64fbsd_core_read_description) | |
7185 | (amd64fbsd_init_abi): Likewise. | |
7186 | * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise. | |
7187 | * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise. | |
7188 | * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise. | |
7189 | * amd64-fbsd-nat.c (amd64_fbsd_nat_target): Likewise. | |
7190 | ||
de52b960 PA |
7191 | 2018-06-29 Pedro Alves <palves@redhat.com> |
7192 | ||
7193 | * gdb/amd64-tdep.h (amd64_create_target_description): Add | |
7194 | "segments" parameter. | |
7195 | * gdb/amd64-tdep.c (amd64_none_init_abi, amd64_x32_none_init_abi) | |
7196 | (_initialize_amd64_tdep): Update call to | |
7197 | amd64_create_target_description. | |
7198 | (amd64_target_description): Add "segments" parameter. Adjust | |
7199 | the implementation to use it. | |
7200 | * gdb/amd64-linux-tdep.c (amd64_linux_read_description): Update | |
7201 | call to amd64_create_target_description. | |
7202 | * gdb/amd64-windows-tdep.c (amd64_windows_init_abi): Likewise. | |
7203 | * gdb/arch/amd64.h (amd64_create_target_description): Add | |
7204 | "segments" register. | |
7205 | * gdb/arch/amd64.c (amd64_create_target_description): Add | |
7206 | "segments" parameter. Call create_feature_i386_64bit_segments | |
7207 | only if SEGMENTS is true. | |
7208 | * gdb/gdbserver/win32-i386-low.c (i386_arch_setup): Update | |
7209 | call to amd64_create_target_description. | |
7210 | ||
75acb486 PA |
7211 | 2018-06-29 Pedro Alves <palves@redhat.com> |
7212 | ||
7213 | * thread.c (thread_target_id_str): New, factored out from ... | |
7214 | (print_thread_info_1): ... here. Use it to compute the max | |
7215 | "Target Id" column width. | |
7216 | ||
c76a8ea3 PA |
7217 | 2018-06-29 Pedro Alves <palves@redhat.com> |
7218 | ||
7219 | * remote.c (remote_target::extra_thread_info): Delete | |
7220 | 'display_buf' and 'n' locals. from the cache, regardless of | |
7221 | packet mechanims is in use. Use cache for qThreadExtra and qP | |
7222 | methods too. | |
7223 | ||
cd2bb709 PA |
7224 | 2018-06-29 Pedro Alves <palves@redhat.com> |
7225 | ||
7226 | * blockframe.c (find_pc_sect_containing_function): New function. | |
7227 | * breakpoint.c (print_breakpoint_location): Don't call | |
7228 | find_pc_sect_function. | |
7229 | * linespec.c (create_sals_line_offset): Record the location's | |
7230 | symbol in the sal. | |
7231 | * linespec.c (convert_address_location_to_sals): Fill in sal's | |
7232 | symbol with find_pc_sect_containing_function. | |
7233 | * symtab.c (find_function_start_sal): Rename to ... | |
7234 | (find_function_start_sal_1): ... this. | |
7235 | (find_function_start_sal): Reimplement as wrapper around | |
7236 | find_function_start_sal_1, and use | |
7237 | find_pc_sect_containing_function to fill in the sal's symbol. | |
7238 | (find_function_start_sal(symbol*, bool)): Adjust. | |
7239 | * symtab.h (find_pc_function, find_pc_sect_function): Adjust | |
7240 | comments. | |
7241 | (find_pc_sect_containing_function): Declare. | |
7242 | ||
991ff292 PA |
7243 | 2018-06-29 Pedro Alves <palves@redhat.com> |
7244 | ||
7245 | * inline-frame.c (stopped_by_user_bp_inline_frame): Return | |
7246 | true if the the location has no symbol. | |
7247 | ||
44cee4fd TT |
7248 | 2018-06-28 Tom Tromey <tom@tromey.com> |
7249 | ||
7250 | * NEWS: Mention --enable-codesign. | |
7251 | * silent-rules.mk (ECHO_SIGN): New variable. | |
7252 | * configure.ac: Add --enable-codesign. | |
7253 | * configure: Rebuild. | |
7254 | * Makefile.in (CODESIGN, CODESIGN_CERT): New variables. | |
7255 | (gdb$(EXEEXT)): Optionally invoke codesign. | |
7256 | ||
f2ffa92b PA |
7257 | 2018-06-28 Pedro Alves <palves@redhat.com> |
7258 | ||
7259 | * gdbthread.h (struct thread_suspend_state) <stop_pc>: Extend | |
7260 | comments. | |
7261 | (switch_to_thread_no_regs): Adjust comment. | |
7262 | * infcmd.c (stop_pc): Delete. | |
7263 | (post_create_inferior, info_program_command): Replace references | |
7264 | to stop_pc with references to thread_info->suspend.stop_pc. | |
7265 | * inferior.h (stop_pc): Delete declaration. | |
7266 | * infrun.c (proceed, handle_syscall_event, fill_in_stop_func) | |
7267 | (handle_inferior_event_1, handle_signal_stop) | |
7268 | (process_event_stop_test, keep_going_stepped_thread) | |
7269 | (handle_step_into_function, handle_step_into_function_backward) | |
7270 | (print_stop_location): Replace references to stop_pc with | |
7271 | references to thread_info->suspend.stop_pc. | |
7272 | (struct infcall_suspend_state) <stop_pc>: Delete field. | |
7273 | (save_infcall_suspend_state, restore_infcall_suspend_state): | |
7274 | Remove references to inf_stat->stop_pc. | |
7275 | * linux-fork.c (fork_load_infrun_state): Likewise. | |
7276 | * record-btrace.c (record_btrace_set_replay): Likewise. | |
7277 | * record-full.c (record_full_goto_entry): Likewise. | |
7278 | * remote.c (print_one_stopped_thread): Likewise. | |
7279 | * target.c (target_resume): Extend comment. | |
7280 | * thread.c (set_executing_thread): New. | |
7281 | (set_executing): Use it. | |
7282 | (switch_to_thread_no_regs, switch_to_no_thread, switch_to_thread): | |
7283 | Remove references to stop_pc. | |
7284 | ||
ecdc3a72 PA |
7285 | 2018-06-28 Pedro Alves <palves@redhat.com> |
7286 | ||
7287 | * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>: | |
7288 | Moving fetching stop_pc until after ecs->event_thread is refreshed. | |
7289 | ||
d95d3aef TT |
7290 | 2018-06-28 Tom Tromey <tom@tromey.com> |
7291 | ||
7292 | * coffread.c (coff_symfile_finish): Update. | |
7293 | * xcoffread.c (xcoff_symfile_finish): Update. | |
7294 | * elfread.c (elf_symfile_finish): Update. | |
7295 | * symfile.h (dwarf2_free_objfile): Don't declare. | |
7296 | * dwarf2read.c (_initialize_dwarf2_read): Use | |
7297 | register_objfile_data_with_cleanup. | |
7298 | (dwarf2_free_objfile): Now static. Change signature. | |
7299 | ||
291f9a96 PT |
7300 | 2018-06-28 Petr Tesarik <ptesarik@suse.cz> |
7301 | ||
7302 | * symfile.c (add_symbol_file_command, _initialize_symfile): Add | |
7303 | option "-o" to add-symbol-file-load to add an offset to each | |
7304 | section's load address. | |
7305 | * symfile.c (set_objfile_default_section_offset): New function. | |
7306 | ||
d81a3eaf PT |
7307 | 2018-06-28 Petr Tesarik <ptesarik@suse.cz> |
7308 | ||
7309 | * symfile.c (add_symbol_file_command): Make sure that sections | |
7310 | with the same name are sorted in the same order. | |
7311 | ||
ed6dfe51 PT |
7312 | 2018-06-28 Petr Tesarik <ptesarik@suse.cz> |
7313 | ||
7314 | * symfile.c (add_symbol_file_command, _initialize_symfile): Do not | |
7315 | require the second argument. If omitted, load sections at the | |
7316 | addresses specified in the file. | |
7317 | ||
d4d429d5 PT |
7318 | 2018-06-28 Petr Tesarik <ptesarik@suse.cz> |
7319 | ||
7320 | * symfile.c (symbol_file_command, symbol_file_add_main_1) | |
7321 | (_initialize_symfile): Add option "-o" to symbol-file to add an | |
7322 | offset to each section of the symbol file. | |
7323 | ||
39b27ab6 PT |
7324 | 2018-06-28 Petr Tesarik <ptesarik@suse.cz> |
7325 | ||
7326 | * MAINTAINERS (Write After Approval): Add Petr Tesarik. | |
7327 | ||
41827fc3 TT |
7328 | 2018-06-27 Tom Tromey <tom@tromey.com> |
7329 | ||
7330 | * stack.c (_initialize_stack): Update "func" help text. | |
7331 | ||
0c6aef22 TT |
7332 | 2018-06-27 Tom Tromey <tom@tromey.com> |
7333 | ||
7334 | * python/py-unwind.c (unwind_info_object) <saved_regs>: Now a | |
7335 | std::vector. | |
7336 | (unwind_infopy_str, pyuw_create_unwind_info) | |
7337 | (unwind_infopy_add_saved_register, pyuw_sniffer) | |
7338 | (unwind_infopy_dealloc, unwind_infopy_add_saved_register): | |
7339 | Update. | |
7340 | (struct saved_reg): Add constructor. | |
7341 | <value>: Now a gdbpy_ref<>. | |
7342 | ||
63177289 TT |
7343 | 2018-06-27 Tom Tromey <tom@tromey.com> |
7344 | ||
7345 | * machoread.c (macho_symfile_read): Define "symbol_table" earlier. | |
7346 | ||
e76f78a0 SM |
7347 | 2018-06-27 Simon Marchi <simon.marchi@ericsson.com> |
7348 | ||
7349 | * gdb-gdb.py.in: Format using autopep8. | |
7350 | ||
9a14af7b SM |
7351 | 2018-06-27 Simon Marchi <simon.marchi@ericsson.com> |
7352 | ||
7353 | * gdb-gdb.py.in (CoreAddrPrettyPrinter): New class. | |
7354 | (type_lookup_function): Recognize CORE_ADDR values. | |
7355 | ||
189366cd SM |
7356 | 2018-06-27 Simon Marchi <simon.marchi@ericsson.com> |
7357 | ||
7358 | * gdb-gdb.py.in (StructMainTypePrettyPrinter) <to_string>: Don't | |
7359 | print tag_name. | |
7360 | ||
68ad5fb9 SM |
7361 | 2018-06-27 Simon Marchi <simon.marchi@ericsson.com> |
7362 | ||
7363 | * gdb-gdb.py.in (TypeFlag) <__cmp__>: Remove. | |
7364 | <__lt__>: Add. | |
7365 | ||
141ec9f6 SM |
7366 | 2018-06-27 Simon Marchi <simon.marchi@ericsson.com> |
7367 | ||
7368 | * gdb-gdb.py: Move to... | |
7369 | * gdb-gdb.py.in: ... here. | |
7370 | * configure.ac (AC_CONFIG_FILES): Add gdb-gdb.py. | |
7371 | * Makefile.in (all): Add gdb-gdb.gdb and gdb-gdb.py as | |
7372 | dependencies. | |
7373 | (distclean): Remove gdb-gdb.py when cleaning. | |
7374 | (gdb-gdb.py, gdb-gdb.gdb): New rules. | |
7375 | * configure: Re-generate. | |
7376 | ||
4c4e7ad4 PA |
7377 | 2018-06-27 Pedro Alves <palves@redhat.com> |
7378 | ||
7379 | * proc-service.c (get_ps_regcache): New. | |
7380 | (ps_lgetregs, ps_lsetregs, ps_lgetfpregs) | |
7381 | (ps_lsetfpregs): Use it. | |
7382 | ||
7ab6656f OJ |
7383 | 2018-06-27 Omair Javaid <omair.javaid@linaro.org> |
7384 | ||
7385 | PR gdb/21695 | |
4399bce9 PA |
7386 | * dwarf2read.c (lnp_state_machine::check_line_address): Update |
7387 | declaration. | |
7ab6656f OJ |
7388 | (dwarf_decode_lines_1): Adjust. |
7389 | ||
bd583225 SM |
7390 | 2018-06-27 Simon Marchi <simon.marchi@ericsson.com> |
7391 | ||
7392 | * fbsd-nat.h (class fbsd_nat_target) <find_memory_regions>: Add | |
7393 | override. | |
7394 | <info_proc>: Likewise. | |
7395 | ||
9a325b7b JB |
7396 | 2018-06-26 Joel Brobecker <brobecker@adacore.com> |
7397 | ||
7398 | * windows-nat.c (do_windows_fetch_inferior_registers): Rename | |
7399 | to windows_fetch_one_register, and only handle the case of | |
7400 | fetching one register. Move the code that reloads the context | |
7401 | and iterates over all registers if R is negative to... | |
7402 | (windows_nat_target::fetch_registers): ... here. | |
7403 | (do_windows_store_inferior_registers): Rename to | |
7404 | windows_store_one_register, and only handle the case of storing | |
7405 | one register. Move the code that handles the case where r is | |
7406 | negative to... | |
7407 | (windows_nat_target::store_registers) ... here. | |
7408 | ||
a33ccfc7 TT |
7409 | 2018-06-26 Tom Tromey <tom@tromey.com> |
7410 | ||
7411 | PR rust/22574: | |
7412 | * typeprint.c (whatis_exp): Allow ptype/o for Rust. | |
7413 | * rust-lang.c (rust_print_struct_def): Add podata parameter. | |
7414 | Update. | |
7415 | (rust_internal_print_type): Add podata parameter. | |
7416 | (rust_print_type): Update. | |
7417 | ||
e0c547d1 TT |
7418 | 2018-06-26 Tom Tromey <tom@tromey.com> |
7419 | ||
7420 | * typeprint.h (struct print_offset_data) <update, finish, | |
7421 | maybe_print_hole>: New methods. | |
7422 | <indentation>: New constant. | |
7423 | * typeprint.c (print_offset_data::indentation): Define. | |
7424 | (print_offset_data::maybe_print_hole, print_offset_data::update) | |
7425 | (print_offset_data::finish): Move from c-typeprint.c and rename. | |
7426 | * c-typeprint.c (OFFSET_SPC_LEN): Remove. | |
7427 | (print_spaces_filtered_with_print_options): Update. | |
7428 | (c_print_type_union_field_offset, maybe_print_hole) | |
7429 | (c_print_type_struct_field_offset): Move to typeprint.c and | |
7430 | rename. | |
7431 | (c_type_print_base_struct_union): Update. | |
7432 | ||
75cbc781 PA |
7433 | 2018-06-25 Pedro Alves <palves@redhat.com> |
7434 | ||
7435 | * gdbthread.h (thread_info_ref, delete_thread) | |
7436 | (delete_thread_silent, first_thread_of_inferior) | |
7437 | (any_thread_of_inferior, switch_to_thread) | |
7438 | (enable_thread_stack_temporaries) | |
7439 | (thread_stack_temporaries_enabled_p, push_thread_stack_temporary) | |
7440 | (get_last_thread_stack_temporary) | |
7441 | (value_in_thread_stack_temporaries, can_access_registers_thread): | |
7442 | Spell out "struct thread_info" instead of just "thread_info". | |
7443 | * inferior.h (notice_new_inferior): Likewise. | |
7444 | ||
b7a08269 PA |
7445 | 2018-06-25 Pedro Alves <palves@redhat.com> |
7446 | ||
7447 | * windows-nat.c (windows_delete_thread): Use find_thread_ptid and | |
7448 | pass thread_info pointer to delete_thread. | |
7449 | (windows_nat_target::detach): Pass inferior pointer to | |
7450 | detach_inferior. | |
7451 | * aix-thread.c (sync_threadlists): Pass thread_info pointer to | |
7452 | delete_thread. | |
7453 | * bsd-kvm.c (bsd_kvm_target::close): Use discard_all_inferiors. | |
7454 | * darwin-nat.c (darwin_check_new_threads): Use find_thread_ptid | |
7455 | and pass a thread_info pointer to delete_thread. | |
7456 | * fbsd-nat.c (fbsd_nat_target::wait): Use find_thread_ptid and | |
7457 | pass thread_info pointer to delete_thread. | |
7458 | * go32-nat.c (go32_nat_target::mourn_inferior): Remove | |
7459 | delete_thread_silent call. | |
7460 | * procfs.c (procfs_target::detach): Pass inferior pointer to | |
7461 | detach_inferior. | |
7462 | (procfs_target::wait): Pass thread_info pointer to delete_thread. | |
7463 | * remote-sim.c (gdbsim_target::mourn_inferior): Remove | |
7464 | delete_thread_silent call. | |
7465 | * windows-nat.c (windows_delete_thread): Use find_thread_ptid and | |
7466 | pass thread_info pointer to delete_thread. | |
7467 | (windows_nat_target::detach): Pass inferior pointer to | |
7468 | delete_inferior. | |
7469 | ||
8e7767e3 AH |
7470 | 2018-06-22 Alan Hayward <alan.hayward@arm.com> |
7471 | ||
7472 | * regcache.c (readable_regcache::read_part): Fix asserts. | |
7473 | (reg_buffer::raw_collect_part): New function. | |
7474 | (regcache::write_part): Fix asserts. | |
7475 | (reg_buffer::raw_supply_part): New function. | |
7476 | (regcache::transfer_regset_register): New helper function. | |
7477 | (regcache::transfer_regset): Call new functions. | |
7478 | (regcache_supply_regset): Use gdb_byte*. | |
7479 | (regcache::supply_regset): Likewise. | |
7480 | (regcache_collect_regset): Likewise. | |
7481 | (regcache::collect_regset): Likewise. | |
7482 | * regcache.h (reg_buffer::raw_collect_part): New declaration. | |
7483 | (reg_buffer::raw_supply_part): Likewise. | |
7484 | (regcache::transfer_regset_register): Likewise. | |
7485 | (regcache::transfer_regset): Use gdb_byte*. | |
7486 | ||
bfd60e34 AH |
7487 | 2018-06-22 Alan Hayward <alan.hayward@arm.com> |
7488 | ||
7489 | * nat/aarch64-sve-linux-ptrace.h (HAS_SVE_STATE): Use &. | |
7490 | ||
00431a78 PA |
7491 | 2018-06-21 Pedro Alves <palves@redhat.com> |
7492 | ||
7493 | * ada-lang.h (ada_get_task_number): Take a thread_info pointer | |
7494 | instead of a ptid_t. All callers adjusted. | |
7495 | * ada-tasks.c (ada_get_task_number): Likewise. All callers | |
7496 | adjusted. | |
7497 | (print_ada_task_info, display_current_task_id, task_command_1): | |
7498 | Adjust. | |
7499 | * breakpoint.c (watchpoint_in_thread_scope): Adjust to use | |
7500 | inferior_thread. | |
7501 | (breakpoint_kind): Adjust. | |
7502 | (remove_breakpoints_pid): Rename to ... | |
7503 | (remove_breakpoints_inf): ... this. Adjust to take an inferior | |
7504 | pointer. All callers adjusted. | |
7505 | (bpstat_clear_actions): Use inferior_thread. | |
7506 | (get_bpstat_thread): New. | |
7507 | (bpstat_do_actions): Use it. | |
7508 | (bpstat_check_breakpoint_conditions, bpstat_stop_status): Adjust | |
7509 | to take a thread_info pointer. All callers adjusted. | |
7510 | (set_longjmp_breakpoint_for_call_dummy, set_momentary_breakpoint) | |
7511 | (breakpoint_re_set_thread): Use inferior_thread. | |
7512 | * breakpoint.h (struct inferior): Forward declare. | |
7513 | (bpstat_stop_status): Update. | |
7514 | (remove_breakpoints_pid): Delete. | |
7515 | (remove_breakpoints_inf): New. | |
7516 | * bsd-uthread.c (bsd_uthread_target::wait) | |
7517 | (bsd_uthread_target::update_thread_list): Use find_thread_ptid. | |
7518 | * btrace.c (btrace_add_pc, btrace_enable, btrace_fetch) | |
7519 | (maint_btrace_packet_history_cmd) | |
7520 | (maint_btrace_clear_packet_history_cmd): Adjust. | |
7521 | (maint_btrace_clear_cmd, maint_info_btrace_cmd): Adjust to use | |
7522 | inferior_thread. | |
7523 | * cli/cli-interp.c: Include "inferior.h". | |
7524 | * common/refcounted-object.h (struct | |
7525 | refcounted_object_ref_policy): New. | |
7526 | * compile/compile-object-load.c: Include gdbthread.h. | |
7527 | (store_regs): Use inferior_thread. | |
7528 | * corelow.c (core_target::close): Use current_inferior. | |
7529 | (core_target_open): Adjust to use first_thread_of_inferior and use | |
7530 | the current inferior. | |
7531 | * ctf.c (ctf_target::close): Adjust to use current_inferior. | |
7532 | * dummy-frame.c (dummy_frame_id) <ptid>: Delete, replaced by ... | |
7533 | <thread>: ... this new field. All references adjusted. | |
7534 | (dummy_frame_pop, dummy_frame_discard, register_dummy_frame_dtor): | |
7535 | Take a thread_info pointer instead of a ptid_t. | |
7536 | * dummy-frame.h (dummy_frame_push, dummy_frame_pop) | |
7537 | (dummy_frame_discard, register_dummy_frame_dtor): Take a | |
7538 | thread_info pointer instead of a ptid_t. | |
7539 | * elfread.c: Include "inferior.h". | |
7540 | (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): | |
7541 | Use inferior_thread. | |
7542 | * eval.c (evaluate_subexp): Likewise. | |
7543 | * frame.c (frame_pop, has_stack_frames, find_frame_sal): Use | |
7544 | inferior_thread. | |
7545 | * gdb_proc_service.h (struct thread_info): Forward declare. | |
7546 | (struct ps_prochandle) <ptid>: Delete, replaced by ... | |
7547 | <thread>: ... this new field. All references adjusted. | |
7548 | * gdbarch.h, gdbarch.c: Regenerate. | |
7549 | * gdbarch.sh (get_syscall_number): Replace 'ptid' parameter with a | |
7550 | 'thread' parameter. All implementations and callers adjusted. | |
7551 | * gdbthread.h (thread_info) <set_running>: New method. | |
7552 | (delete_thread, delete_thread_silent): Take a thread_info pointer | |
7553 | instead of a ptid. | |
7554 | (global_thread_id_to_ptid, ptid_to_global_thread_id): Delete. | |
7555 | (first_thread_of_process): Delete, replaced by ... | |
7556 | (first_thread_of_inferior): ... this new function. All callers | |
7557 | adjusted. | |
7558 | (any_live_thread_of_process): Delete, replaced by ... | |
7559 | (any_live_thread_of_inferior): ... this new function. All callers | |
7560 | adjusted. | |
7561 | (switch_to_thread, switch_to_no_thread): Declare. | |
7562 | (is_executing): Delete. | |
7563 | (enable_thread_stack_temporaries): Update comment. | |
7564 | <enable_thread_stack_temporaries>: Take a thread_info pointer | |
7565 | instead of a ptid_t. Incref the thread. | |
7566 | <~enable_thread_stack_temporaries>: Decref the thread. | |
7567 | <m_ptid>: Delete | |
7568 | <m_thr>: New. | |
7569 | (thread_stack_temporaries_enabled_p, push_thread_stack_temporary) | |
7570 | (get_last_thread_stack_temporary) | |
7571 | (value_in_thread_stack_temporaries, can_access_registers_thread): | |
7572 | Take a thread_info pointer instead of a ptid_t. All callers | |
7573 | adjusted. | |
7574 | * infcall.c (get_call_return_value): Use inferior_thread. | |
7575 | (run_inferior_call): Work with thread pointers instead of ptid_t. | |
7576 | (call_function_by_hand_dummy): Work with thread pointers instead | |
7577 | of ptid_t. Use thread_info_ref. | |
7578 | * infcmd.c (proceed_thread_callback): Access thread's state | |
7579 | directly. | |
7580 | (ensure_valid_thread, ensure_not_running): Use inferior_thread, | |
7581 | access thread's state directly. | |
7582 | (continue_command): Use inferior_thread. | |
7583 | (info_program_command): Use find_thread_ptid and access thread | |
7584 | state directly. | |
7585 | (proceed_after_attach_callback): Use thread state directly. | |
7586 | (notice_new_inferior): Take a thread_info pointer instead of a | |
7587 | ptid_t. All callers adjusted. | |
7588 | (exit_inferior): Take an inferior pointer instead of a pid. All | |
7589 | callers adjusted. | |
7590 | (exit_inferior_silent): New. | |
7591 | (detach_inferior): Delete. | |
7592 | (valid_gdb_inferior_id, pid_to_gdb_inferior_id) | |
7593 | (gdb_inferior_id_to_pid, in_inferior_list): Delete. | |
7594 | (detach_inferior_command, kill_inferior_command): Use | |
7595 | find_inferior_id instead of valid_gdb_inferior_id and | |
7596 | gdb_inferior_id_to_pid. | |
7597 | (inferior_command): Use inferior and thread pointers. | |
7598 | * inferior.h (struct thread_info): Forward declare. | |
7599 | (notice_new_inferior): Take a thread_info pointer instead of a | |
7600 | ptid_t. All callers adjusted. | |
7601 | (detach_inferior): Delete declaration. | |
7602 | (exit_inferior, exit_inferior_silent): Take an inferior pointer | |
7603 | instead of a pid. All callers adjusted. | |
7604 | (gdb_inferior_id_to_pid, pid_to_gdb_inferior_id, in_inferior_list) | |
7605 | (valid_gdb_inferior_id): Delete. | |
7606 | * infrun.c (follow_fork_inferior, proceed_after_vfork_done) | |
7607 | (handle_vfork_child_exec_or_exit, follow_exec): Adjust. | |
7608 | (struct displaced_step_inferior_state) <pid>: Delete, replaced by | |
7609 | ... | |
7610 | <inf>: ... this new field. | |
7611 | <step_ptid>: Delete, replaced by ... | |
7612 | <step_thread>: ... this new field. | |
7613 | (get_displaced_stepping_state): Take an inferior pointer instead | |
7614 | of a pid. All callers adjusted. | |
7615 | (displaced_step_in_progress_any_inferior): Adjust. | |
7616 | (displaced_step_in_progress_thread): Take a thread pointer instead | |
7617 | of a ptid_t. All callers adjusted. | |
7618 | (displaced_step_in_progress, add_displaced_stepping_state): Take | |
7619 | an inferior pointer instead of a pid. All callers adjusted. | |
7620 | (get_displaced_step_closure_by_addr): Adjust. | |
7621 | (remove_displaced_stepping_state): Take an inferior pointer | |
7622 | instead of a pid. All callers adjusted. | |
7623 | (displaced_step_prepare_throw, displaced_step_prepare) | |
7624 | (displaced_step_fixup): Take a thread pointer instead of a ptid_t. | |
7625 | All callers adjusted. | |
7626 | (start_step_over): Adjust. | |
7627 | (infrun_thread_ptid_changed): Remove bit updating ptids in the | |
7628 | displaced step queue. | |
7629 | (do_target_resume): Adjust. | |
7630 | (fetch_inferior_event): Use inferior_thread. | |
7631 | (context_switch, get_inferior_stop_soon): Take an | |
7632 | execution_control_state pointer instead of a ptid_t. All callers | |
7633 | adjusted. | |
7634 | (switch_to_thread_cleanup): Delete. | |
7635 | (stop_all_threads): Use scoped_restore_current_thread. | |
7636 | * inline-frame.c: Include "gdbthread.h". | |
7637 | (inline_state) <inline_state>: Take a thread pointer instead of a | |
7638 | ptid_t. All callers adjusted. | |
7639 | <ptid>: Delete, replaced by ... | |
7640 | <thread>: ... this new field. | |
7641 | (find_inline_frame_state): Take a thread pointer instead of a | |
7642 | ptid_t. All callers adjusted. | |
7643 | (skip_inline_frames, step_into_inline_frame) | |
7644 | (inline_skipped_frames, inline_skipped_symbol): Take a thread | |
7645 | pointer instead of a ptid_t. All callers adjusted. | |
7646 | * inline-frame.h (skip_inline_frames, step_into_inline_frame) | |
7647 | (inline_skipped_frames, inline_skipped_symbol): Likewise. | |
7648 | * linux-fork.c (delete_checkpoint_command): Adjust to use thread | |
7649 | pointers directly. | |
7650 | * linux-nat.c (get_detach_signal): Likewise. | |
7651 | * linux-thread-db.c (thread_from_lwp): New 'stopped' parameter. | |
7652 | (thread_db_notice_clone): Adjust. | |
7653 | (thread_db_find_new_threads_silently) | |
7654 | (thread_db_find_new_threads_2, thread_db_find_new_threads_1): Take | |
7655 | a thread pointer instead of a ptid_t. All callers adjusted. | |
7656 | * mi/mi-cmd-var.c: Include "inferior.h". | |
7657 | (mi_cmd_var_update_iter): Update to use thread pointers. | |
7658 | * mi/mi-interp.c (mi_new_thread): Update to use the thread's | |
7659 | inferior directly. | |
7660 | (mi_output_running_pid, mi_inferior_count): Delete, bits factored | |
7661 | out to ... | |
7662 | (mi_output_running): ... this new function. | |
7663 | (mi_on_resume_1): Adjust to use it. | |
7664 | (mi_user_selected_context_changed): Adjust to use inferior_thread. | |
7665 | * mi/mi-main.c (proceed_thread): Adjust to use thread pointers | |
7666 | directly. | |
7667 | (interrupt_thread_callback): : Adjust to use thread and inferior | |
7668 | pointers. | |
7669 | * proc-service.c: Include "gdbthread.h". | |
7670 | (ps_pglobal_lookup): Adjust to use the thread's inferior directly. | |
7671 | * progspace-and-thread.c: Include "inferior.h". | |
7672 | * progspace.c: Include "inferior.h". | |
7673 | * python/py-exitedevent.c (create_exited_event_object): Adjust to | |
7674 | hold a reference to an inferior_object. | |
7675 | * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust to use | |
7676 | inferior_thread. | |
7677 | * python/py-inferior.c (struct inferior_object): Give the type a | |
7678 | tag name instead of a typedef. | |
7679 | (python_on_normal_stop): No need to check if the current thread is | |
7680 | listed. | |
7681 | (inferior_to_inferior_object): Change return type to | |
7682 | inferior_object. All callers adjusted. | |
7683 | (find_thread_object): Delete, bits factored out to ... | |
7684 | (thread_to_thread_object): ... this new function. | |
7685 | * python/py-infthread.c (create_thread_object): Use | |
7686 | inferior_to_inferior_object. | |
7687 | (thpy_is_stopped): Use thread pointer directly. | |
7688 | (gdbpy_selected_thread): Use inferior_thread. | |
7689 | * python/py-record-btrace.c (btpy_list_object) <ptid>: Delete | |
7690 | field, replaced with ... | |
7691 | <thread>: ... this new field. All users adjusted. | |
7692 | (btpy_insn_or_gap_new): Drop const. | |
7693 | (btpy_list_new): Take a thread pointer instead of a ptid_t. All | |
7694 | callers adjusted. | |
7695 | * python/py-record.c: Include "gdbthread.h". | |
7696 | (recpy_insn_new, recpy_func_new): Take a thread pointer instead of | |
7697 | a ptid_t. All callers adjusted. | |
7698 | (gdbpy_current_recording): Use inferior_thread. | |
7699 | * python/py-record.h (recpy_record_object) <ptid>: Delete | |
7700 | field, replaced with ... | |
7701 | <thread>: ... this new field. All users adjusted. | |
7702 | (recpy_element_object) <ptid>: Delete | |
7703 | field, replaced with ... | |
7704 | <thread>: ... this new field. All users adjusted. | |
7705 | (recpy_insn_new, recpy_func_new): Take a thread pointer instead of | |
7706 | a ptid_t. All callers adjusted. | |
7707 | * python/py-threadevent.c: Include "gdbthread.h". | |
7708 | (get_event_thread): Use thread_to_thread_object. | |
7709 | * python/python-internal.h (struct inferior_object): Forward | |
7710 | declare. | |
7711 | (find_thread_object, find_inferior_object): Delete declarations. | |
7712 | (thread_to_thread_object, inferior_to_inferior_object): New | |
7713 | declarations. | |
7714 | * record-btrace.c: Include "inferior.h". | |
7715 | (require_btrace_thread): Use inferior_thread. | |
7716 | (record_btrace_frame_sniffer) | |
7717 | (record_btrace_tailcall_frame_sniffer): Use inferior_thread. | |
7718 | (get_thread_current_frame): Use scoped_restore_current_thread and | |
7719 | switch_to_thread. | |
7720 | (get_thread_current_frame): Use thread pointer directly. | |
7721 | (record_btrace_replay_at_breakpoint): Use thread's inferior | |
7722 | pointer directly. | |
7723 | * record-full.c: Include "inferior.h". | |
7724 | * regcache.c: Include "gdbthread.h". | |
7725 | (get_thread_arch_regcache): Use the inferior's address space | |
7726 | directly. | |
7727 | (get_thread_regcache, registers_changed_thread): New. | |
7728 | * regcache.h (get_thread_regcache(thread_info *thread)): New | |
7729 | overload. | |
7730 | (registers_changed_thread): New. | |
7731 | (remote_target) <remote_detach_1>: Swap order of parameters. | |
7732 | (remote_add_thread): <remote_add_thread>: Return the new thread. | |
7733 | (get_remote_thread_info(ptid_t)): New overload. | |
7734 | (remote_target::remote_notice_new_inferior): Use thread pointers | |
7735 | directly. | |
7736 | (remote_target::process_initial_stop_replies): Use | |
7737 | thread_info::set_running. | |
7738 | (remote_target::remote_detach_1, remote_target::detach) | |
7739 | (extended_remote_target::detach): Adjust. | |
7740 | * stack.c (frame_show_address): Use inferior_thread. | |
7741 | * target-debug.h (target_debug_print_thread_info_pp): New. | |
7742 | * target-delegates.c: Regenerate. | |
7743 | * target.c (default_thread_address_space): Delete. | |
7744 | (memory_xfer_partial_1): Use current_inferior. | |
7745 | (target_detach): Use current_inferior. | |
7746 | (target_thread_address_space): Delete. | |
7747 | (generic_mourn_inferior): Use current_inferior. | |
7748 | * target.h (struct target_ops) <thread_address_space>: Delete. | |
7749 | (target_thread_address_space): Delete. | |
7750 | * thread.c (init_thread_list): Use ALL_THREADS_SAFE. Use thread | |
7751 | pointers directly. | |
7752 | (delete_thread_1, delete_thread, delete_thread_silent): Take a | |
7753 | thread pointer instead of a ptid_t. Adjust all callers. | |
7754 | (ptid_to_global_thread_id, global_thread_id_to_ptid): Delete. | |
7755 | (first_thread_of_process): Delete, replaced by ... | |
7756 | (first_thread_of_inferior): ... this new function. All callers | |
7757 | adjusted. | |
7758 | (any_thread_of_process): Rename to ... | |
7759 | (any_thread_of_inferior): ... this, and take an inferior pointer. | |
7760 | (any_live_thread_of_process): Rename to ... | |
7761 | (any_live_thread_of_inferior): ... this, and take an inferior | |
7762 | pointer. | |
7763 | (thread_stack_temporaries_enabled_p, push_thread_stack_temporary) | |
7764 | (value_in_thread_stack_temporaries) | |
7765 | (get_last_thread_stack_temporary): Take a thread pointer instead | |
7766 | of a ptid_t. Adjust all callers. | |
7767 | (thread_info::set_running): New. | |
7768 | (validate_registers_access): Use inferior_thread. | |
7769 | (can_access_registers_ptid): Rename to ... | |
7770 | (can_access_registers_thread): ... this, and take a thread | |
7771 | pointer. | |
7772 | (print_thread_info_1): Adjust to compare thread pointers instead | |
7773 | of ptids. | |
7774 | (switch_to_no_thread, switch_to_thread): Make extern. | |
7775 | (scoped_restore_current_thread::~scoped_restore_current_thread): | |
7776 | Use m_thread pointer directly. | |
7777 | (scoped_restore_current_thread::scoped_restore_current_thread): | |
7778 | Use inferior_thread. | |
7779 | (thread_command): Use thread pointer directly. | |
7780 | (thread_num_make_value_helper): Use inferior_thread. | |
7781 | * top.c (execute_command): Use inferior_thread. | |
7782 | * tui/tui-interp.c: Include "inferior.h". | |
7783 | * varobj.c (varobj_create): Use inferior_thread. | |
7784 | (value_of_root_1): Use find_thread_global_id instead of | |
7785 | global_thread_id_to_ptid. | |
7786 | ||
33bab475 AH |
7787 | 2018-06-21 Alan Hayward <alan.hayward@arm.com> |
7788 | ||
4399bce9 PA |
7789 | * regcache.c (readable_regcache::read_part): Avoid memcpy when |
7790 | possible. | |
7791 | (regcache::write_part): Likewise. | |
7792 | (readable_regcache::cooked_read_part): Update comment. | |
7793 | (readable_regcache::cooked_write_part): Likewise. | |
7794 | * regcache.h: (readable_regcache::read_part): Likewise. | |
7795 | (regcache::write_part): Likewise. | |
33bab475 | 7796 | |
8363f9d5 RB |
7797 | 2018-06-21 Richard Bunt <richard.bunt@arm.com> |
7798 | Dirk Schubert <dirk.schubert@arm.com> | |
7799 | ||
7800 | * aarch64-linux-nat.c (post_attach): New. | |
7801 | (aarch64_linux_nat_target::post_attach): Override post_attach to | |
7802 | record the number of hardware debug registers. | |
7803 | ||
0d0b0ea2 TT |
7804 | 2018-06-20 Tom Tromey <tom@tromey.com> |
7805 | ||
7806 | * python/py-param.c (add_setshow_generic): Make parameters const. | |
7807 | (parmpy_init): Update. | |
7808 | ||
302abd6e SM |
7809 | 2018-06-20 Simon Marchi <simon.marchi@polymtl.ca> |
7810 | ||
7811 | * regcache.h (regcache_cooked_read_ftype): Rename to... | |
7812 | (register_read_ftype): ...this, change type to function_view. | |
7813 | (class reg_buffer) <save>: Remove src parameter. | |
7814 | (readonly_detached_regcache) <readonly_detached_regcache>: Make | |
7815 | parameter non-const in first overload. Remove src parameter in | |
7816 | second overload. | |
7817 | * regcache.c (do_cooked_read): Remove. | |
7818 | (readonly_detached_regcache::readonly_detached_regcache): Make | |
7819 | parameter non-const, adjust call to other constructor. | |
7820 | (reg_buffer::save): Remove src parameter. | |
7821 | * frame.c (do_frame_register_read): Remove. | |
7822 | (frame_save_as_regcache): Use lambda function. | |
7823 | * ppc-linux-tdep.c (ppu2spu_unwind_register): Change type of src | |
7824 | parameter to ppu2spu_data *. | |
7825 | (ppu2spu_sniffer): Use lambda function. | |
7826 | ||
19f3f25f SM |
7827 | 2018-06-20 Simon Marchi <simon.marchi@polymtl.ca> |
7828 | ||
7829 | * record-full.c (record_full_target::insert_breakpoint): Remove | |
7830 | "struct" keyword, add const. | |
7831 | ||
d0ac1c44 SM |
7832 | 2018-06-19 Simon Marchi <simon.marchi@ericsson.com> |
7833 | ||
7834 | * common/common-defs.h (PACKAGE_NAME, PACKAGE_VERSION, | |
7835 | PACKAGE_STRING, PACKAGE_TARNAME): Undefine. | |
7836 | * configure.ac: Remove AC_PREREQ, add missing quoting. | |
7837 | * gnulib/configure.ac: Modernize usage of | |
7838 | AC_INIT/AM_INIT_AUTOMAKE. Remove AC_PREREQ. | |
7839 | * gnulib/update-gnulib.sh (AUTOCONF_VERSION): Bump to 2.69. | |
7840 | (AUTOMAKE_VERSION): Bump to 1.15.1. | |
7841 | * configure: Re-generate. | |
7842 | * config.in: Re-generate. | |
7843 | * aclocal.m4: Re-generate. | |
7844 | * gnulib/aclocal.m4: Re-generate. | |
7845 | * gnulib/config.in: Re-generate. | |
7846 | * gnulib/configure: Re-generate. | |
7847 | * gnulib/import/Makefile.in: Re-generate. | |
7848 | ||
6ae50267 PA |
7849 | 2018-06-19 Pedro Alves <palves@redhat.com> |
7850 | ||
7851 | * minsyms.c (msym_prefer_to_msym_type): New, factored out from ... | |
7852 | (lookup_minimal_symbol_by_pc_section): ... here with | |
7853 | gdb_assert_not_reached added. | |
7854 | ||
61b04dd0 PA |
7855 | 2018-06-19 Pedro Alves <palves@redhat.com> |
7856 | ||
7857 | * inline-frame.c (stopped_by_user_bp_inline_frame): Replace PC | |
7858 | parameter with a block parameter. Compare location's block symbol | |
7859 | with the frame's block instead of addresses. | |
7860 | (skip_inline_frames): Pass the current block instead of the | |
7861 | frame's address. Break out as soon as we determine the frame | |
7862 | should not be skipped. | |
7863 | ||
f709fabb TT |
7864 | 2018-06-18 Tom Tromey <tom@tromey.com> |
7865 | ||
7866 | * solib-aix.c (solib_aix_get_section_offsets): Return | |
7867 | unique_xmalloc_ptr. | |
7868 | (solib_aix_solib_create_inferior_hook): Update. | |
7869 | ||
668eb2f0 TT |
7870 | 2018-06-18 Tom Tromey <tom@tromey.com> |
7871 | ||
7872 | * solib-darwin.c (darwin_current_sos): Use unique_xmalloc_ptr. | |
7873 | ||
309822ca TT |
7874 | 2018-06-18 Tom Tromey <tom@tromey.com> |
7875 | ||
7876 | * solib-frv.c (frv_relocate_main_executable): Use | |
7877 | unique_xmalloc_ptr. | |
7878 | * solib-dsbt.c (dsbt_relocate_main_executable): Use | |
7879 | unique_xmalloc_ptr. | |
7880 | ||
06424eac TT |
7881 | 2018-06-18 Tom Tromey <tom@tromey.com> |
7882 | ||
7883 | * objfiles.h (inhibit_section_map_updates): Update. | |
7884 | (resume_section_map_updates, resume_section_map_updates_cleanup): | |
7885 | Remove. | |
7886 | * solib-svr4.c (svr4_handle_solib_event): Update. | |
7887 | * objfiles.c (inhibit_section_map_updates): Return | |
7888 | scoped_restore_tmpl<int>. | |
7889 | (resume_section_map_updates, resume_section_map_updates_cleanup): | |
7890 | Remove. | |
7891 | ||
b4be9fad TT |
7892 | 2018-06-18 Tom Tromey <tom@tromey.com> |
7893 | ||
7894 | * valprint.h (read_string): Update. | |
7895 | * valprint.c (read_string): Change type of "buffer". | |
7896 | (val_print_string): Update. | |
7897 | * python/py-value.c (valpy_string): Update. | |
7898 | * language.h (struct language_defn) <la_get_string>: Change | |
7899 | type of "buffer". | |
7900 | (default_get_string, c_get_string): Update. | |
7901 | * language.c (default_get_string): Change type of "buffer". | |
7902 | * guile/scm-value.c (gdbscm_value_to_string): Update. | |
7903 | * c-lang.c (c_get_string): Change type of "buffer". | |
7904 | ||
3f0dbd67 TT |
7905 | 2018-06-18 Tom Tromey <tom@tromey.com> |
7906 | ||
7907 | * ser-mingw.c (struct pipe_state_destroyer): New. | |
7908 | (pipe_state_up): New typedef. | |
7909 | (cleanup_pipe_state): Remove. | |
7910 | (pipe_windows_open): Use pipe_state_up. Don't release argv. | |
7911 | ||
69d340c6 TT |
7912 | 2018-06-18 Tom Tromey <tom@tromey.com> |
7913 | ||
7914 | * rust-lang.h (rust_yyerror): Don't declare. | |
7915 | * rust-lang.c (rust_language_defn): Update. | |
7916 | * rust-exp.y (yyerror): Now static. | |
7917 | * parse.c (parse_exp_in_context_1): Update. | |
7918 | * p-lang.h (p_yyerror): Don't declare. | |
7919 | * p-lang.c (p_language_defn): Update. | |
7920 | * p-exp.y (yyerror): Now static. | |
7921 | * opencl-lang.c (opencl_language_defn): Update. | |
7922 | * objc-lang.c (objc_language_defn): Update. | |
7923 | * m2-lang.h (m2_yyerror): Don't declare. | |
7924 | * m2-lang.c (m2_language_defn): Update. | |
7925 | * m2-exp.y (yyerror): Now static. | |
7926 | * language.h (struct language_defn) <la_error>: Remove. | |
7927 | * language.c (unk_lang_error): Remove. | |
7928 | (unknown_language_defn, auto_language_defn): Remove. | |
7929 | * go-lang.h (go_yyerror): Don't declare. | |
7930 | * go-lang.c (go_language_defn): Update. | |
7931 | * go-exp.y (yyerror): Now static. | |
7932 | * f-lang.h (f_yyerror): Don't declare. | |
7933 | * f-lang.c (f_language_defn): Update. | |
7934 | * f-exp.y (yyerror): Now static. | |
7935 | * d-lang.h (d_yyerror): Don't declare. | |
7936 | * d-lang.c (d_language_defn): Update. | |
7937 | * d-exp.y (yyerror): Now static. | |
7938 | * c-lang.h (c_yyerror): Don't declare. | |
7939 | * c-lang.c (c_language_defn, cplus_language_defn) | |
7940 | (asm_language_defn, minimal_language_defn): Update. | |
7941 | * c-exp.y (yyerror): Now static. | |
7942 | * ada-lang.h (ada_yyerror): Don't declare. | |
7943 | * ada-lang.c (ada_language_defn): Update. | |
7944 | * ada-exp.y (yyerror): Now static. | |
7945 | ||
e9902bfc AH |
7946 | 2018-06-18 Alan Hayward <alan.hayward@arm.com> |
7947 | ||
7948 | * aarch64-linux-nat.c (fetch_sveregs_from_thread): New function. | |
7949 | (store_sveregs_to_thread): Likewise. | |
7950 | (aarch64_linux_fetch_inferior_registers): Check for SVE. | |
7951 | (aarch64_linux_store_inferior_registers): Likewise. | |
7952 | * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs): New | |
7953 | function. | |
7954 | (aarch64_sve_regs_copy_to_regcache): Likewise. | |
7955 | (aarch64_sve_regs_copy_from_regcache): Likewise. | |
7956 | * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_sveregs): New | |
7957 | declaration. | |
7958 | (aarch64_sve_regs_copy_to_regcache): Likewise. | |
7959 | (aarch64_sve_regs_copy_from_regcache): Likewise. | |
7960 | (sve_context): Structure from Linux headers. | |
7961 | (SVE_SIG_ZREGS_SIZE): Define from Linux headers. | |
7962 | (SVE_SIG_ZREG_SIZE): Likewise. | |
7963 | (SVE_SIG_PREG_SIZE): Likewise. | |
7964 | (SVE_SIG_FFR_SIZE): Likewise. | |
7965 | (SVE_SIG_REGS_OFFSET): Likewise. | |
7966 | (SVE_SIG_ZREGS_OFFSET): Likewise. | |
7967 | (SVE_SIG_ZREG_OFFSET): Likewise. | |
7968 | (SVE_SIG_ZREGS_SIZE): Likewise. | |
7969 | (SVE_SIG_PREGS_OFFSET): Likewise. | |
7970 | (SVE_SIG_PREG_OFFSET): Likewise. | |
7971 | (SVE_SIG_PREGS_SIZE): Likewise. | |
7972 | (SVE_SIG_FFR_OFFSET): Likewise. | |
7973 | (SVE_SIG_REGS_SIZE): Likewise. | |
7974 | (SVE_SIG_CONTEXT_SIZE): Likewise. | |
7975 | (SVE_PT_REGS_MASK): Likewise. | |
7976 | (SVE_PT_REGS_FPSIMD): Likewise. | |
7977 | (SVE_PT_REGS_SVE): Likewise. | |
7978 | (SVE_PT_VL_INHERIT): Likewise. | |
7979 | (SVE_PT_VL_ONEXEC): Likewise. | |
7980 | (SVE_PT_REGS_OFFSET): Likewise. | |
7981 | (SVE_PT_FPSIMD_OFFSET): Likewise. | |
7982 | (SVE_PT_FPSIMD_SIZE): Likewise. | |
7983 | (SVE_PT_SVE_ZREG_SIZE): Likewise. | |
7984 | (SVE_PT_SVE_PREG_SIZE): Likewise. | |
7985 | (SVE_PT_SVE_FFR_SIZE): Likewise. | |
7986 | (SVE_PT_SVE_FPSR_SIZE): Likewise. | |
7987 | (SVE_PT_SVE_FPCR_SIZE): Likewise. | |
7988 | (__SVE_SIG_TO_PT): Likewise. | |
7989 | (SVE_PT_SVE_OFFSET): Likewise. | |
7990 | (SVE_PT_SVE_ZREGS_OFFSET): Likewise. | |
7991 | (SVE_PT_SVE_ZREG_OFFSET): Likewise. | |
7992 | (SVE_PT_SVE_ZREGS_SIZE): Likewise. | |
7993 | (SVE_PT_SVE_PREGS_OFFSET): Likewise. | |
7994 | (SVE_PT_SVE_PREG_OFFSET): Likewise. | |
7995 | (SVE_PT_SVE_PREGS_SIZE): Likewise. | |
7996 | (SVE_PT_SVE_FFR_OFFSET): Likewise. | |
7997 | (SVE_PT_SVE_FPSR_OFFSET): Likewise. | |
7998 | (SVE_PT_SVE_FPCR_OFFSET): Likewise. | |
7999 | (SVE_PT_SVE_SIZE): Likewise. | |
8000 | (SVE_PT_SIZE): Likewise. | |
8001 | (HAS_SVE_STATE): New define. | |
8002 | ||
17a1cc89 AH |
8003 | 2018-06-18 Alan Hayward <alan.hayward@arm.com> |
8004 | ||
8005 | * nat/aarch64-sve-linux-sigcontext.h: New file. | |
8006 | * nat/aarch64-sve-linux-ptrace.h (SVE_VQ_BYTES): Move to | |
8007 | new files. | |
8008 | (SVE_VQ_MIN): Likewise. | |
8009 | (SVE_VQ_MAX): Likewise. | |
8010 | (SVE_VL_MIN): Likewise. | |
8011 | (SVE_VL_MAX): Likewise. | |
8012 | (SVE_NUM_ZREGS): Likewise. | |
8013 | (SVE_NUM_PREGS): Likewise. | |
8014 | (sve_vl_valid): Likewise. | |
8015 | (struct user_sve_header): Likewise. | |
8016 | ||
7010835a AB |
8017 | 2018-06-16 Andrew Burgess <andrew.burgess@embecosm.com> |
8018 | Richard Bunt <Richard.Bunt@arm.com> | |
8019 | ||
8020 | * linux-nat.c (stop_wait_callback): Don't discard SIGSTOP if it | |
8021 | was requested by GDB. | |
8022 | ||
479b3ef4 TV |
8023 | 2018-06-15 Tom de Vries <tdevries@suse.de> |
8024 | ||
8025 | * MAINTAINERS (Write After Approval): Add Tom de Vries. | |
8026 | ||
8199b8f4 SM |
8027 | 2018-06-14 Simon Marchi <simon.marchi@polymtl.ca> |
8028 | ||
8029 | * gnulib/update-gnulib.sh: Print expected versions of | |
8030 | autoconf/aclocal. | |
8031 | ||
55c748a1 SM |
8032 | 2018-06-14 Simon Marchi <simon.marchi@ericsson.com> |
8033 | ||
8034 | * arch-utils.c (default_type_align): Use type_length_units. | |
8035 | * gdbtypes.c (type_align): Use type_length_units. | |
8036 | ||
87a8eca7 PW |
8037 | 2018-06-14 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
8038 | ||
8039 | * cli/cli-script.c (_initialize_cli_script): Fix online documentation | |
8040 | of 'define' command. | |
8041 | ||
5d9a0608 TV |
8042 | 2018-06-14 Tom de Vries <tdevries@suse.de> |
8043 | ||
8044 | PR cli/22573 | |
8045 | * infcmd.c (print_return_value_1): Use get_user_print_options instead of | |
8046 | get_no_prettyformat_print_options. | |
8047 | ||
ab89b5a5 SM |
8048 | 2018-06-13 Simon Marchi <simon.marchi@ericsson.com> |
8049 | ||
8050 | * sparc-nat.h: Include target.h. | |
8051 | * sparc64-linux-nat.c (class sparc64_linux_nat_target) | |
8052 | <fetch_registers>: Remove this argument in function call. | |
8053 | <store_registers>: Remove this argument in function call, remove | |
8054 | extra semicolon. | |
8055 | <low_forget_process>: Call sparc64_forget_process instead of | |
8056 | sparc_forget_process. | |
8057 | ||
62c808ae RO |
8058 | 2018-06-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
8059 | ||
8060 | * procfs.c (_initialize_procfs): Use add_inf_child_target. | |
8061 | (procfs_target::make_corefile_notes): Adjust to new | |
8062 | target_read_alloc return type. | |
8063 | ||
1840d81a AB |
8064 | 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com> |
8065 | Stephen Roberts <stephen.roberts@arm.com> | |
8066 | ||
8067 | PR gdb/22882 | |
8068 | * infrun.c (fetch_inferior_event): If GDB is not proceeding then | |
8069 | run INF_EXEC_COMPLETE handler, even when not calling normal_stop. | |
8070 | Move should_notify_stop local into more inner scope. | |
8071 | ||
9516f85a AB |
8072 | 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com> |
8073 | Stephen Roberts <stephen.roberts@arm.com> | |
8074 | ||
8075 | PR gdb/22882 | |
8076 | * infrun.c (resume_1): Add call to mark_async_event_handler. | |
8077 | ||
defd2172 AB |
8078 | 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com> |
8079 | ||
8080 | * infrun.c (do_target_wait): Change old version of $pc printed. | |
8081 | ||
7b23e087 SM |
8082 | 2018-06-11 Simon Marchi <simon.marchi@ericsson.com> |
8083 | ||
8084 | * dwarf2read.c (read_index_from_section): Rename to... | |
8085 | (read_gdb_index_from_section): ... this, update all callers. | |
8086 | (dwarf2_read_index): Rename to... | |
8087 | (dwarf2_read_gdb_index): ... this, update all callers. | |
8088 | ||
69c67a0b JDA |
8089 | 2018-06-11 John David Anglin <danglin@gcc.gnu.org> |
8090 | ||
4399bce9 | 8091 | * hppa-linux-nat.c |
69c67a0b JDA |
8092 | (hppa_linux_nat_target::fetch_inferior_registers): Rename to |
8093 | hppa_linux_nat_target::fetch_registers. | |
8094 | ||
65d4cada AH |
8095 | 2018-06-11 Alan Hayward <alan.hayward@arm.com> |
8096 | ||
8097 | * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Add mappings. | |
8098 | * aarch64-tdep.h (AARCH64_DWARF_SVE_VG): Add define. | |
8099 | (AARCH64_DWARF_SVE_FFR): Likewise. | |
8100 | (AARCH64_DWARF_SVE_P0): Likewise. | |
8101 | (AARCH64_DWARF_SVE_Z0): Likewise. | |
8102 | ||
f868386e AH |
8103 | 2018-06-11 Alan Hayward <alan.hayward@arm.com> |
8104 | ||
8105 | * common/common-regcache.h (raw_compare): New function. | |
8106 | * regcache.c (regcache::raw_compare): Likewise. | |
8107 | * regcache.h (regcache::raw_compare): New declaration. | |
8108 | ||
9c861883 AH |
8109 | 2018-06-11 Alan Hayward <alan.hayward@arm.com> |
8110 | ||
8111 | * common/common-regcache.h (reg_buffer_common): New structure. | |
8112 | * regcache.c (reg_buffer::invalidate): Move from detached_regcache. | |
8113 | (reg_buffer::raw_supply): Likewise. | |
8114 | (reg_buffer::raw_supply_integer): Likewise. | |
8115 | (reg_buffer::raw_supply_zeroed): Likewise. | |
8116 | (reg_buffer::raw_collect): Likewise. | |
8117 | (reg_buffer::raw_collect_integer): Likewise. | |
8118 | * regcache.h (reg_buffer::invalidate): Move from detached_regcache. | |
8119 | (reg_buffer::raw_supply): Likewise. | |
8120 | (reg_buffer::raw_supply_integer): Likewise. | |
8121 | (reg_buffer::raw_supply_zeroed): Likewise. | |
8122 | (reg_buffer::raw_collect): Likewise. | |
8123 | (reg_buffer::raw_collect_integer): Likewise. | |
8124 | ||
953edf2b TT |
8125 | 2018-06-10 Tom Tromey <tom@tromey.com> |
8126 | ||
8127 | * remote.c (stop_reply_p): Remove typedef. Don't declare queue. | |
8128 | (class remote_state) <stop_reply_queue>: Now std::vector. | |
8129 | (remote_state::~remote_state) | |
8130 | (remote_target::stop_reply_queue_length): Update. | |
8131 | (struct queue_iter_param, remove_child_of_pending_fork) | |
8132 | (struct check_pending_event_prevents_wildcard_vcont_callback_data) | |
8133 | (check_pending_event_prevents_wildcard_vcont_callback) | |
8134 | (remove_stop_reply_for_inferior) | |
8135 | (remove_stop_reply_of_remote_state) | |
8136 | (remote_notif_remove_once_on_match) | |
8137 | (stop_reply_match_ptid_and_ws) | |
8138 | (remote_kill_child_of_pending_fork): Remove. | |
8139 | (remote_target::remove_new_fork_children) | |
8140 | (remote_target::check_pending_events_prevent_wildcard_vcont) | |
8141 | (remote_target::discard_pending_stop_replies) | |
8142 | (remote_target::discard_pending_stop_replies_in_queue) | |
8143 | (remote_target::remote_notif_remove_queued_reply) | |
8144 | (remote_target::queued_stop_reply) | |
8145 | (remote_target::push_stop_reply, remote_target::peek_stop_reply) | |
8146 | (remote_target::wait, remote_target::kill_new_fork_children) | |
8147 | (remote_target::async): Update. | |
8148 | ||
1ddbba9d TT |
8149 | 2018-06-10 Tom Tromey <tom@tromey.com> |
8150 | ||
8151 | * record-full.c (record_full_arch_list_cleanups): Remove. | |
8152 | (record_full_message): Use try/catch. | |
8153 | (record_full_wait_cleanups): Remove. | |
8154 | (record_full_wait_1): Use try/catch. | |
8155 | (record_full_restore): Likewise. | |
8156 | ||
219605fd TT |
8157 | 2018-06-10 Tom Tromey <tom@tromey.com> |
8158 | ||
8159 | * record-full.c (record_full_breakpoint_p): Remove typedef. Don't | |
8160 | declare VEC. Add constructor. | |
8161 | <in_target_beneath>: Now bool. | |
8162 | (record_full_breakpoints): Now a std::vector, static. | |
8163 | (record_full_sync_record_breakpoints) | |
8164 | (record_full_init_record_breakpoints) | |
8165 | (record_full_target::insert_breakpoint) | |
8166 | (record_full_target::remove_breakpoint): Update. Don't use XNEW. | |
8167 | ||
71b73764 SM |
8168 | 2018-06-10 Simon Marchi <simon.marchi@polymtl.ca> |
8169 | ||
8170 | * dwarf2read.c (process_cu_includes): Remove struct keyword. | |
8171 | * serial.c (serial_interface_lookup): Remove struct keyword. | |
8172 | ||
4360561f TT |
8173 | 2018-06-10 Tom Tromey <tom@tromey.com> |
8174 | ||
8175 | * procfs.c (procfs_target::xfer_partial): Use "beneath" as a | |
8176 | method. | |
8177 | * nto-procfs.c (nto_procfs_target::xfer_partial): Use "beneath" as | |
8178 | a method. | |
8179 | * go32-nat.c (go32_nat_target::xfer_partial): Use "beneath" as a | |
8180 | method. | |
8181 | * arm-linux-nat.c (arm_linux_nat_target::read_description): Use | |
8182 | "beneath" as a method. | |
8183 | * arm-fbsd-nat.c (arm_fbsd_nat_target::read_description): | |
8184 | Use "beneath" as a method. | |
8185 | ||
d14b92bf TT |
8186 | 2018-06-10 Tom Tromey <tom@tromey.com> |
8187 | ||
8188 | * tracefile.c (struct trace_file_writer_deleter): New. | |
8189 | <operator()>: Rename from trace_file_writer_xfree. | |
8190 | (trace_file_writer_up): New typedef. | |
8191 | (tsave_command, trace_save_tfile, trace_save_ctf): Update. | |
8192 | ||
835dcf92 SM |
8193 | 2018-06-09 Simon Marchi <simon.marchi@ericsson.com> |
8194 | ||
8195 | * regcache.h (reg_buffer) <~reg_buffer>: Use default destructor. | |
8196 | <m_registers, m_register_status>: Change type to | |
8197 | std::unique_ptr. | |
8198 | * regcache.c (reg_buffer::reg_buffer): Use new instead of | |
8199 | XCNEWVEC. | |
8200 | ||
aac0d564 SM |
8201 | 2018-06-09 Simon Marchi <simon.marchi@ericsson.com> |
8202 | ||
8203 | * common/common-regcache.h (enum register_status): Add | |
8204 | underlying type "signed char". | |
8205 | * regcache.h (reg_buffer) <m_register_status>: Change type to | |
8206 | register_status *. | |
8207 | * regcache.c (reg_buffer::reg_buffer): Alocate arrays of | |
8208 | register_status instead of signed char. | |
8209 | (reg_buffer::save): Use REG_UNKNOWN instead of 0. | |
8210 | (reg_buffer::get_register_status): Remove cast. | |
8211 | (readable_regcache::raw_read): Remove cast. | |
8212 | (readable_regcache::cooked_read): Remove cast. | |
8213 | ||
77ad7394 TT |
8214 | 2018-06-09 Tom Tromey <tom@tromey.com> |
8215 | ||
8216 | * source.c (reverse_search_command, forward_search_command): Use | |
8217 | scoped_fd. | |
8218 | ||
191cca63 TT |
8219 | 2018-06-09 Tom Tromey <tom@tromey.com> |
8220 | ||
8221 | * serial.c (serial_ops_p): Remove typedef. Don't declare VEC. | |
8222 | (serial_ops_list): Now static, std::vector. | |
8223 | (serial_interface_lookup, serial_add_interface): Update. | |
8224 | ||
c5d0225d TT |
8225 | 2018-06-09 Tom Tromey <tom@tromey.com> |
8226 | ||
8227 | * dwarf2read.c (process_cu_includes): Update. | |
8228 | (process_full_comp_unit): Update. | |
8229 | * dwarf2read.h (struct dwarf2_per_objfile) <just_read_cus>: Now a | |
8230 | std::vector. | |
8231 | ||
aeab5128 PK |
8232 | 2018-06-08 Paul Koning <paul_koning@dell.com> |
8233 | ||
8234 | PR gdb/23252 | |
8235 | ||
8236 | * python/python.c (do_start_initialization): | |
8237 | Avoid call to internal Python API. | |
8238 | (init__gdb_module): New function. | |
8239 | ||
5045b3d7 GB |
8240 | 2018-06-08 Gary Benson <gbenson@redhat.com> |
8241 | ||
8242 | * linux-thread-db.c (valprint.h): New include. | |
8243 | (struct check_thread_db_info): New structure. | |
8244 | (check_thread_db_on_load, tdb_testinfo): New static globals. | |
8245 | (check_thread_db, check_thread_db_callback): New functions. | |
8246 | (try_thread_db_load_1): Run integrity checks if requested. | |
8247 | (maintenance_check_libthread_db): New function. | |
8248 | (_initialize_thread_db): Register "maint check libthread-db" | |
8249 | and "maint set/show check-libthread-db". | |
8250 | * NEWS: Mention the above new commands. | |
8251 | ||
2f4f025f TT |
8252 | 2018-06-08 Tom Tromey <tom@tromey.com> |
8253 | ||
8254 | * windows-nat.c (windows_nat_target::xfer_partial): "beneath" is | |
8255 | now a method. | |
8256 | ||
343b0027 TT |
8257 | 2018-06-08 Tom Tromey <tom@tromey.com> |
8258 | ||
8259 | * btrace.c (parse_xml_raw): Use gdb::unique_xmalloc_ptr. | |
8260 | ||
8dcc53b3 TT |
8261 | 2018-06-08 Tom Tromey <tom@tromey.com> |
8262 | ||
8263 | * common/btrace-common.h (struct btrace_data): Add constructor, | |
8264 | destructor, move assignment operator. | |
8265 | <empty, clear, fini>: New methods. | |
8266 | <format>: Initialize. | |
8267 | (btrace_data_init, btrace_data_fini, btrace_data_clear) | |
8268 | (btrace_data_empty): Don't declare. | |
8269 | * common/btrace-common.c (btrace_data_init): Remove. | |
8270 | (btrace_data::fini): Rename from btrace_data_fini. | |
8271 | (btrace_data::empty): Rename from btrace_data_empty. | |
8272 | (btrace_data::clear): Rename from btrace_data_clear. Return | |
8273 | bool. | |
8274 | * btrace.h (make_cleanup_btrace_data): Don't declare. | |
8275 | * btrace.c (btrace_add_pc, btrace_stitch_trace, btrace_clear) | |
8276 | (parse_xml_btrace): Update. | |
8277 | (do_btrace_data_cleanup, make_cleanup_btrace_data): Remove. | |
8278 | (maint_btrace_clear_packet_history_cmd): Update. | |
8279 | ||
a1740ee1 PA |
8280 | 2018-06-07 Pedro Alves <palves@redhat.com> |
8281 | ||
8282 | * target.h (target_ops) <beneath>: Now a method. All references | |
8283 | updated. | |
8284 | (class target_stack): New. | |
8285 | * target.c (g_target_stack): New. | |
8286 | (g_current_top_target): Delete. | |
8287 | (current_top_target): Get the top target out of g_target_stack. | |
8288 | (target_stack::push, target_stack::unpush): New. | |
8289 | (push_target, unpush_target): Reimplement. | |
8290 | (target_is_pushed): Reimplement in terms of g_target_stack. | |
8291 | (target_ops::beneath, target_stack::find_beneath): New. | |
8292 | ||
d6ca69cd PA |
8293 | 2018-06-07 Pedro Alves <palves@redhat.com> |
8294 | ||
8295 | * target.h (find_target_beneath): Delete declaration. | |
8296 | * target.c (find_target_beneath): Delete definition. | |
8297 | * aix-thread.c: All callers of find_target_beneath adjusted to | |
8298 | call target_ops::beneath instead. | |
8299 | * bsd-uthread.c: Likewise. | |
8300 | * linux-thread-db.c: Likewise. | |
8301 | * ravenscar-thread.c: Likewise. | |
8302 | * sol-thread.c: Likewise. | |
8303 | * spu-multiarch.c: Likewise. | |
8304 | ||
b6a8c27b PA |
8305 | 2018-06-07 Pedro Alves <palves@redhat.com> |
8306 | ||
8307 | * target.h (target_ops) <beneath>: Now a method. All references | |
8308 | updated. | |
8309 | (target_ops) <m_beneath>: New. | |
8310 | * target.c (target_ops::beneath): New. | |
8311 | * corelow.c: Adjust all references to target_ops::beneath. | |
8312 | * linux-thread-db.c: Likewise. | |
8313 | * make-target-delegates: Likewise. | |
8314 | * record-btrace.c: Likewise. | |
8315 | * record-full.c: Likewise. | |
8316 | * remote.c: Likewise. | |
8317 | * target.c: Likewise. | |
8318 | * target-delegates.c: Regenerate. | |
8319 | ||
8b88a78e PA |
8320 | 2018-06-07 Pedro Alves <palves@redhat.com> |
8321 | ||
8322 | * target.h (target_stack): Delete. | |
8323 | (current_top_target): Declare function. | |
8324 | * target.c (target_stack): Delete. | |
8325 | (g_current_top_target): New. | |
8326 | (current_top_target): New function. | |
8327 | * auxv.c: Use current_top_target instead of target_stack | |
8328 | throughout. | |
8329 | * avr-tdep.c: Likewise. | |
8330 | * breakpoint.c: Likewise. | |
8331 | * corefile.c: Likewise. | |
8332 | * elfread.c: Likewise. | |
8333 | * eval.c: Likewise. | |
8334 | * exceptions.c: Likewise. | |
8335 | * frame.c: Likewise. | |
8336 | * gdbarch-selftests.c: Likewise. | |
8337 | * gnu-v3-abi.c: Likewise. | |
8338 | * ia64-tdep.c: Likewise. | |
8339 | * ia64-vms-tdep.c: Likewise. | |
8340 | * infcall.c: Likewise. | |
8341 | * infcmd.c: Likewise. | |
8342 | * infrun.c: Likewise. | |
8343 | * linespec.c: Likewise. | |
8344 | * linux-tdep.c: Likewise. | |
8345 | * minsyms.c: Likewise. | |
8346 | * ppc-linux-nat.c: Likewise. | |
8347 | * ppc-linux-tdep.c: Likewise. | |
8348 | * procfs.c: Likewise. | |
8349 | * regcache.c: Likewise. | |
8350 | * remote.c: Likewise. | |
8351 | * rs6000-tdep.c: Likewise. | |
8352 | * s390-linux-nat.c: Likewise. | |
8353 | * s390-tdep.c: Likewise. | |
8354 | * solib-aix.c: Likewise. | |
8355 | * solib-darwin.c: Likewise. | |
8356 | * solib-dsbt.c: Likewise. | |
8357 | * solib-spu.c: Likewise. | |
8358 | * solib-svr4.c: Likewise. | |
8359 | * solib-target.c: Likewise. | |
8360 | * sparc-tdep.c: Likewise. | |
8361 | * sparc64-tdep.c: Likewise. | |
8362 | * spu-tdep.c: Likewise. | |
8363 | * symfile.c: Likewise. | |
8364 | * symtab.c: Likewise. | |
8365 | * target-descriptions.c: Likewise. | |
8366 | * target-memory.c: Likewise. | |
8367 | * target.c: Likewise. | |
8368 | * target.h: Likewise. | |
8369 | * tracefile-tfile.c: Likewise. | |
8370 | * tracepoint.c: Likewise. | |
8371 | * valops.c: Likewise. | |
8372 | * valprint.c: Likewise. | |
8373 | * value.c: Likewise. | |
8374 | * windows-tdep.c: Likewise. | |
8375 | * mi/mi-main.c: Likewise. | |
8376 | ||
c7110220 TT |
8377 | 2018-06-07 Tom Tromey <tom@tromey.com> |
8378 | ||
8379 | * valprint.h (build_address_symbolic): Declare. | |
8380 | * printcmd.c (print_address_symbolic): Update. | |
8381 | (build_address_symbolic): Change "name" and "filename" to | |
8382 | std::string. | |
8383 | * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): | |
8384 | Update. | |
8385 | * defs.h (build_address_symbolic): Remove declaration. | |
8386 | ||
63bad7b6 AH |
8387 | 2018-06-07 Alan Hayward <alan.hayward@arm.com> |
8388 | ||
8389 | * aarch64-tdep.c (AARCH64_SVE_V0_REGNUM): Add define. | |
8390 | (aarch64_vnv_type): Add function. | |
8391 | (aarch64_pseudo_register_name): Add V regs for SVE. | |
8392 | (aarch64_pseudo_register_type): Likewise. | |
8393 | (aarch64_pseudo_register_reggroup_p): Likewise. | |
8394 | (aarch64_pseudo_read_value_2): Use V0 offset for SVE | |
8395 | (aarch64_pseudo_read_value): Add V regs for SVE. | |
8396 | (aarch64_pseudo_write_2): Use V0 offset for SVE | |
8397 | (aarch64_pseudo_write): Add V regs for SVE. | |
8398 | * aarch64-tdep.h (struct gdbarch_tdep): Add vnv_type. | |
8399 | ||
13e3c608 SDJ |
8400 | 2018-06-06 Sergio Durigan Junior <sergiodj@redhat.com> |
8401 | ||
8402 | * arch/aarch64.h (sve_vq_from_vl): Guard with #ifndef. | |
8403 | (sve_vl_from_vq): Likewise. | |
8404 | ||
c61b06a1 TT |
8405 | 2018-06-05 Tom Tromey <tom@tromey.com> |
8406 | ||
8407 | * cli/cli-cmds.c (show_version): Update. | |
8408 | * top.c (print_gdb_version): Add "interactive" parameter. | |
8409 | Update. | |
8410 | * main.c (captured_main_1): Update. | |
8411 | * top.h (print_gdb_version): Add "interactive" parameter and a | |
8412 | comment. | |
8413 | ||
115f7325 DM |
8414 | 2018-06-05 David Malcolm <dmalcolm@redhat.com> |
8415 | ||
8416 | * common/enum-flags.h: Add trailing semicolon to example in | |
8417 | comment. | |
8418 | ||
eb6af809 TT |
8419 | 2018-06-05 Tom Tromey <tom@tromey.com> |
8420 | ||
8421 | PR cli/12326: | |
8422 | * NEWS: Add entry about pager. | |
8423 | * utils.c (pagination_disabled_for_command): New global. | |
8424 | (prompt_for_continue): Allow "c" response to prompt. | |
8425 | (reinitialize_more_filter): Clear | |
8426 | pagination_disabled_for_command. | |
8427 | (fputs_maybe_filtered): Check pagination_disabled_for_command. | |
8428 | ||
54d343a2 TT |
8429 | 2018-06-04 Tom Tromey <tom@tromey.com> |
8430 | ||
8431 | * ada-lang.h (ada_lookup_symbol_list): Update. | |
8432 | * ada-lang.c (resolve_subexp): Update. | |
8433 | (symbols_are_identical_enums): Change type of syms. Remove nsyms | |
8434 | parameter. | |
8435 | (remove_extra_symbols, remove_irrelevant_renamings): Likewise. | |
8436 | (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Change | |
8437 | results parameter to std::vector. | |
8438 | (ada_iterate_over_symbols, ada_lookup_symbol, get_var_value): | |
8439 | Update. | |
8440 | * ada-exp.y (block_lookup): Update. | |
8441 | (select_possible_type_sym): Change type of syms. Remove nsyms | |
8442 | parameter. | |
8443 | (write_var_or_type, write_name_assoc): Update. | |
8444 | ||
178d6a63 JB |
8445 | 2018-06-04 Joel Brobecker <brobecker@adacore.com> |
8446 | ||
8447 | * windows-nat.c (windows_nat_target::xfer_partial): Return | |
8448 | TARGET_XFER_E_IO if we need to delegate to the target beneath | |
8449 | but BENEATH is NULL. | |
8450 | ||
baf00c2d SM |
8451 | 2018-06-04 Simon Marchi <simon.marchi@ericsson.com> |
8452 | ||
8453 | * Makefile.in (config.status): Add configure.nat as a | |
8454 | dependency. | |
8455 | ||
214b073c TT |
8456 | 2018-06-04 Tom Tromey <tom@tromey.com> |
8457 | ||
8458 | * cp-name-parser.y (cpname_state): Add method declarations. | |
8459 | (HANDLE_QUAL): Update. | |
8460 | (cpname_state::d_grab, cpname_state::fill_comp) | |
8461 | (cpname_state::make_operator, cpname_state::make_dtor) | |
8462 | (cpname_state::make_builtin_type, cpname_state::make_name) | |
8463 | (cpname_state::d_qualify, cpname_state::d_int_type) | |
8464 | (cpname_state::d_unary, cpname_state::d_binary): Now methods. | |
8465 | (%union): Move earlier. | |
8466 | ||
62b74cb8 AH |
8467 | 2018-06-04 Alan Hayward <alan.hayward@arm.com> |
8468 | ||
8469 | * elfread.c (elf_symfile_segments): Use ELF_SECTION_IN_SEGMENT. | |
8470 | ||
3c5cd5c3 AH |
8471 | 2018-06-04 Alan Hayward <alan.hayward@arm.com> |
8472 | ||
8473 | * aarch64-tdep.c (aarch64_pseudo_read_value_1): New helper func. | |
8474 | (aarch64_pseudo_write_1): Likewise. | |
8475 | (aarch64_pseudo_read_value): Use helper. | |
8476 | (aarch64_pseudo_write): Likewise. | |
8477 | ||
59f413d5 PA |
8478 | 2018-06-04 Pedro Alves <palves@redhat.com> |
8479 | ||
8480 | * darwin-nat.c (darwin_ops): Delete. | |
8481 | (darwin_attach_pid): Use get_native_target. | |
8482 | ||
1332a140 AH |
8483 | 2018-06-04 Alan Hayward <alan.hayward@arm.com> |
8484 | ||
8485 | * aarch64-tdep.c (aarch64_get_tdesc_vq): Use uint64_t for VQ. | |
8486 | * aarch64-tdep.h (struct gdbarch_tdep): Likewise. | |
8487 | ||
ba2d2bb2 AH |
8488 | 2018-06-04 Alan Hayward <alan.hayward@arm.com> |
8489 | ||
8490 | * aarch64-linux-nat.c (aarch64_linux_read_description): Support SVE. | |
8491 | * aarch64-tdep.c (aarch64_get_tdesc_vq): New function. | |
8492 | (aarch64_gdbarch_init): Check for SVE. | |
8493 | * aarch64-tdep.h (gdbarch_tdep::has_sve): New function. | |
8494 | ||
8495 | 2018-06-04 Alan Hayward <alan.hayward@arm.com> | |
39bfb937 AH |
8496 | |
8497 | * aarch64-tdep.c (aarch64_read_description): Use uint64_t for VQ. | |
8498 | * aarch64-tdep.h (aarch64_read_description): Likewise. | |
8499 | * arch/aarch64.c (aarch64_create_target_description): Likewise. | |
8500 | * arch/aarch64.h (aarch64_create_target_description): Likewise. | |
8501 | * features/aarch64-sve.c (create_feature_aarch64_sve): Likewise. | |
8502 | * nat/aarch64-sve-linux-ptrace.c(aarch64_sve_get_vq): Likewise. | |
8503 | * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_vq): Likewise. | |
8504 | ||
41c60b4b SM |
8505 | 2018-06-02 Simon Marchi <simon.marchi@ericsson.com> |
8506 | ||
8507 | * value.c (value_fetch_lazy_bitfield): New. | |
8508 | (value_fetch_lazy_memory): New. | |
8509 | (value_fetch_lazy_register): New. | |
8510 | (value_fetch_lazy): Factor out to smaller functions. | |
8511 | ||
7b640f72 TT |
8512 | 2018-06-01 Tom Tromey <tom@tromey.com> |
8513 | ||
8514 | * cp-name-parser.y (backslashable, represented): Now const. | |
8515 | ||
98e69eb3 TT |
8516 | 2018-06-01 Tom Tromey <tom@tromey.com> |
8517 | ||
8518 | * cp-name-parser.y: Include parser-defs.h. | |
8519 | (parser_fprintf): Remove declaration. | |
8520 | ||
49265499 TT |
8521 | 2018-06-01 Tom Tromey <tom@tromey.com> |
8522 | ||
8523 | * cp-name-parser.y: Use %pure-parser, %lex-param, and | |
8524 | %parse-param. | |
8525 | (lexptr, prev_lexptr, error_lexptr, global_errmsg, demangle_info) | |
8526 | (global_result): Remove globals. | |
8527 | (struct cpname_state): New. | |
8528 | (yyparse): Don't declare. | |
8529 | (yylex, yyerror): Move declarations after %union. | |
8530 | (d_grab, fill_comp, make_operator, make_dtor, make_builtin_type) | |
8531 | (make_name): Add state parameter. | |
8532 | Update all callers. | |
8533 | (d_qualify, d_int_type, d_unary, d_binary, parse_number) Add state | |
8534 | parameter. | |
8535 | (HANDLE_QUAL, HANDLE_SPECIAL, HANDLE_TOKEN2, HANDLE_TOKEN3): | |
8536 | Update. | |
8537 | (yylex): Add lvalp, state parameters. | |
8538 | (yyerror): Add state parameter. | |
8539 | (cp_demangled_name_to_comp): Update. | |
8540 | ||
55b6c984 TT |
8541 | 2018-06-01 Tom Tromey <tom@tromey.com> |
8542 | ||
8543 | * cp-name-parser.y (parser_fprintf): Declare. | |
8544 | (GDB_YY_REMAP_PREFIX): Define. | |
8545 | Include yy-remap.h. Don't redefine yy* identifiers. | |
8546 | ||
3513a6bb TT |
8547 | 2018-06-01 Tom Tromey <tom@tromey.com> |
8548 | ||
8549 | * python/py-type.c (typy_legacy_template_argument): Update. | |
8550 | * cp-support.h (cp_demangled_name_to_comp): Update. | |
8551 | * cp-name-parser.y (cp_demangled_name_to_comp): Change errmsg | |
8552 | parameter to be a "std::string *". | |
8553 | (main): Update. | |
8554 | ||
e9cb46ab L |
8555 | 2018-06-01 H.J. Lu <hongjiu.lu@intel.com> |
8556 | ||
8557 | * ada-lex.l: Include "diagnostics.h" instead of | |
8558 | "common/diagnostics.h". | |
8559 | * unittests/environ-selftests.c: Likewise. | |
8560 | * common/diagnostics.h: Moved to ../include. | |
8561 | ||
8e817061 JB |
8562 | 2018-06-01 Joel Brobecker <brobecker@adacore.com> |
8563 | ||
8564 | * breakpoint.c (breakpoint_re_set): Temporarily force language_mode | |
8565 | to language_mode_manual while calling breakpoint_re_set_one. | |
8566 | ||
a737d952 TT |
8567 | 2018-06-01 Tom Tromey <tom@tromey.com> |
8568 | ||
8569 | * valops.c (value_cast_structs, destructor_name_p): Update. | |
8570 | * symtab.c (gdb_mangle_name): Update. | |
8571 | * stabsread.c (define_symbol, read_cpp_abbrev, read_baseclasses): | |
8572 | Update. | |
8573 | * p-valprint.c (pascal_object_is_vtbl_ptr_type) | |
8574 | (pascal_object_print_value_fields, pascal_object_print_value): | |
8575 | Update. | |
8576 | * p-typeprint.c (pascal_type_print_derivation_info): Update. | |
8577 | * linespec.c (find_methods): Update. | |
8578 | * gdbtypes.h (type_name_no_tag): Remove. | |
8579 | (type_name_or_error): Rename from type_name_no_tag_or_error. | |
8580 | * gdbtypes.c (type_name_no_tag): Remove. | |
8581 | (type_name_or_error): Rename from type_name_no_tag_or_error. | |
8582 | (lookup_struct_elt_type, check_typedef): Update. | |
8583 | * expprint.c (print_subexp_standard): Update. | |
8584 | * dwarf2read.c (dwarf2_add_field, load_partial_dies): Update. | |
8585 | * d-namespace.c (d_lookup_nested_symbol): Update. | |
8586 | * cp-valprint.c (cp_is_vtbl_ptr_type, cp_print_value_fields) | |
8587 | (cp_print_class_member): Update. | |
8588 | * cp-namespace.c (cp_lookup_nested_symbol): Update. | |
8589 | * completer.c (add_struct_fields): Update. | |
8590 | * c-typeprint.c (cp_type_print_derivation_info) | |
8591 | (c_type_print_varspec_prefix, c_type_print_base_struct_union): | |
8592 | Update. | |
8593 | * ada-lang.c (parse_old_style_renaming, xget_renaming_scope) | |
8594 | (ada_prefer_type, ada_is_exception_sym): Update. | |
8595 | ||
e86ca25f TT |
8596 | 2018-06-01 Tom Tromey <tom@tromey.com> |
8597 | ||
8598 | * valops.c (enum_constant_from_type, value_namespace_elt) | |
8599 | (value_maybe_namespace_elt): Update. | |
8600 | * valarith.c (find_size_for_pointer_math): Update. | |
8601 | * target-descriptions.c (make_gdb_type): Update. | |
8602 | * symmisc.c (print_symbol): Update. | |
8603 | * stabsread.c (define_symbol, read_type) | |
8604 | (complain_about_struct_wipeout, add_undefined_type) | |
8605 | (cleanup_undefined_types_1): Update. | |
8606 | * rust-lang.c (rust_tuple_type_p, rust_slice_type_p) | |
8607 | (rust_range_type_p, val_print_struct, rust_print_struct_def) | |
8608 | (rust_internal_print_type, rust_composite_type) | |
8609 | (rust_evaluate_funcall, rust_evaluate_subexp) | |
8610 | (rust_inclusive_range_type_p): Update. | |
8611 | * python/py-type.c (typy_get_tag): Update. | |
8612 | * p-typeprint.c (pascal_type_print_base): Update. | |
8613 | * mdebugread.c (parse_symbol, parse_type): Update. | |
8614 | * m2-typeprint.c (m2_long_set, m2_record_fields, m2_enum): | |
8615 | Update. | |
8616 | * guile/scm-type.c (gdbscm_type_tag): Update. | |
8617 | * go-lang.c (sixg_string_p): Update. | |
8618 | * gnu-v3-abi.c (build_gdb_vtable_type, build_std_type_info_type): | |
8619 | Update. | |
8620 | * gdbtypes.h (struct main_type) <tag_name>: Remove. | |
8621 | (TYPE_TAG_NAME): Remove. | |
8622 | * gdbtypes.c (type_name_no_tag): Simplify. | |
8623 | (check_typedef, check_types_equal, recursive_dump_type) | |
8624 | (copy_type_recursive, arch_composite_type): Update. | |
8625 | * f-typeprint.c (f_type_print_base): Update. Print "Type" prefix | |
8626 | in summary mode when needed. | |
8627 | * eval.c (evaluate_funcall): Update. | |
8628 | * dwarf2read.c (fixup_go_packaging, read_structure_type) | |
8629 | (process_structure_scope, read_enumeration_type) | |
8630 | (read_namespace_type, read_module_type, determine_prefix): Update. | |
8631 | * cp-support.c (inspect_type): Update. | |
8632 | * coffread.c (process_coff_symbol, decode_base_type): Update. | |
8633 | * c-varobj.c (c_is_path_expr_parent): Update. | |
8634 | * c-typeprint.c (c_type_print_base_struct_union): Update. | |
8635 | (c_type_print_base_1): Update. Print struct/class/union/enum in | |
8636 | summary when using C language. | |
8637 | * ax-gdb.c (gen_struct_ref, gen_namespace_elt) | |
8638 | (gen_maybe_namespace_elt): Update. | |
8639 | * ada-lang.c (ada_type_name): Simplify. | |
8640 | (empty_record, ada_template_to_fixed_record_type_1) | |
8641 | (template_to_static_fixed_type) | |
8642 | (to_record_with_fixed_variant_part, ada_check_typedef): Update. | |
8643 | ||
c1ec8cea TT |
8644 | 2018-06-01 Tom Tromey <tom@tromey.com> |
8645 | ||
8646 | * dwarf2read.c (dwarf2_compute_name): Pass CU's language to | |
8647 | c_print_type. | |
8648 | * c-typeprint.c (c_print_type_1): Add "language" parameter. | |
8649 | (c_print_type): Update. | |
8650 | (c_print_type): New overload. | |
8651 | (c_type_print_varspec_prefix, c_type_print_args) | |
8652 | (c_type_print_varspec_suffix, c_print_type_no_offsets) | |
8653 | (c_type_print_base_struct_union, c_type_print_base_1) | |
8654 | (cp_type_print_method_args): Add "language" parameter. | |
8655 | (c_type_print_base): Update. | |
8656 | * c-lang.h (c_print_type): Add new overload. | |
8657 | ||
bc8453a7 TT |
8658 | 2018-06-01 Tom Tromey <tom@tromey.com> |
8659 | ||
8660 | * typeprint.h (c_type_print_varspec_suffix): Don't declare. | |
8661 | * c-typeprint.c (c_type_print_varspec_suffix): Now static. | |
8662 | ||
739e8682 AH |
8663 | 2018-06-01 Alan Hayward <alan.hayward@arm.com> |
8664 | ||
8665 | * aarch64-tdep.c (aarch64_sve_register_names): New const | |
8666 | var. | |
8667 | * arch/aarch64.h (enum aarch64_regnum): Add SVE entries. | |
8668 | (AARCH64_SVE_Z_REGS_NUM): New define. | |
8669 | (AARCH64_SVE_P_REGS_NUM): Likewise. | |
8670 | (AARCH64_SVE_NUM_REGS): Likewise. | |
8671 | ||
8a60efe7 UB |
8672 | 2018-05-31 Uros Bizjak <ubizjak@gmail.com> |
8673 | ||
8674 | * nat/linux-ptrace.h [__alpha__] | |
8675 | (GDB_ARCH_IS_TRAP_BRKPT, GDB_ARCH_IS_TRAP_HWBKPT): Remove | |
8676 | definitions. | |
8677 | ||
4b2dfa9d MR |
8678 | 2018-05-31 Maciej W. Rozycki <macro@mips.com> |
8679 | ||
8680 | * arch-utils.c (gdbarch_info_fill): Set `default_byte_order' to | |
8681 | the endianness selected. | |
8682 | * NEWS: Document `set endian auto' mode operation update. | |
8683 | ||
122394f1 AH |
8684 | 2018-05-31 Alan Hayward <alan.hayward@arm.com> |
8685 | ||
8686 | * Makefile.in: Add new header. | |
8687 | * gdb/arch/aarch64.h (sve_vg_from_vl): New macro. | |
8688 | (sve_vl_from_vg): Likewise. | |
8689 | (sve_vq_from_vl): Likewise. | |
8690 | (sve_vl_from_vq): Likewise. | |
8691 | (sve_vq_from_vg): Likewise. | |
8692 | (sve_vg_from_vq): Likewise. | |
8693 | * configure.nat: Add new c file. | |
8694 | * nat/aarch64-sve-linux-ptrace.c: New file. | |
8695 | * nat/aarch64-sve-linux-ptrace.h: New file. | |
8696 | ||
95228a0d AH |
8697 | 2018-05-31 Alan Hayward <alan.hayward@arm.com> |
8698 | ||
8699 | * aarch64-linux-nat.c (aarch64_linux_read_description): | |
8700 | Add parmeter zero. | |
8701 | * aarch64-linux-tdep.c (aarch64_linux_core_read_description): | |
8702 | Likewise. | |
8703 | * aarch64-tdep.c (tdesc_aarch64_list): Add. | |
8704 | (aarch64_read_description): Use VQ to index tdesc_aarch64_list. | |
8705 | (aarch64_gdbarch_init): Add parmeter zero. | |
8706 | * aarch64-tdep.h (aarch64_read_description): Add VQ parmeter. | |
8707 | * arch/aarch64.c (aarch64_create_target_description): Check VQ. | |
8708 | * arch/aarch64.h (aarch64_create_target_description): Add VQ. | |
8709 | parmeter. | |
8710 | * doc/gdb.texinfo: Describe SVE feature | |
8711 | * features/aarch64-sve.c: New file. | |
8712 | ||
5969f0db OJ |
8713 | 2018-05-31 Omair Javaid <omair.javaid@linaro.org> |
8714 | ||
8715 | PR gdb/23210 | |
8716 | * gdbarch.sh (significant_addr_bit): Default to zero when | |
8717 | not set by target architecture. | |
8718 | * gdbarch.c: Re-generated. | |
8719 | * utils.c (address_significant): Update. | |
8720 | ||
61367c61 JB |
8721 | 2018-05-30 Joel Brobecker <brobecker@adacore.com> |
8722 | ||
8723 | * stack.c (func_command): Remove trailing newline in call to error. | |
8724 | ||
34a79281 SM |
8725 | 2018-05-30 Simon Marchi <simon.marchi@ericsson.com> |
8726 | ||
8727 | * regcache.h (regcache_raw_collect): Remove, update callers to | |
8728 | use regcache::raw_collect. | |
8729 | * regcache.c (regcache_raw_collect): Remove. | |
8730 | ||
73e1c03f SM |
8731 | 2018-05-30 Simon Marchi <simon.marchi@ericsson.com> |
8732 | ||
8733 | * regcache.h (regcache_raw_supply): Remove, update callers to | |
8734 | use detached_regcache::raw_supply. | |
8735 | * regcache.c (regcache_raw_supply): Remove. | |
8736 | ||
e4c4a59b SM |
8737 | 2018-05-30 Simon Marchi <simon.marchi@ericsson.com> |
8738 | ||
8739 | * regcache.h (regcache_cooked_write_part): Remove, update | |
8740 | callers to use regcache::cooked_write_part. | |
8741 | * regcache.c (regcache_cooked_write_part): Remove. | |
8742 | ||
73bb0000 SM |
8743 | 2018-05-30 Simon Marchi <simon.marchi@ericsson.com> |
8744 | ||
8745 | * regcache.h (regcache_cooked_read_part): Remove, update callers | |
8746 | to use readable_regcache::cooked_read_part. | |
8747 | * regcache.c (regcache_cooked_read_part): Remove. | |
8748 | ||
46a45e9d SM |
8749 | 2018-05-30 Simon Marchi <simon.marchi@ericsson.com> |
8750 | ||
8751 | * regcache.h (regcache_cooked_read_value): Remove, update | |
8752 | callers to use readable_regcache::cooked_read_value. | |
8753 | * regcache.c (regcache_cooked_read_value): Remove. | |
8754 | ||
b66f5587 SM |
8755 | 2018-05-30 Simon Marchi <simon.marchi@ericsson.com> |
8756 | ||
8757 | * regcache.h (regcache_cooked_write): Remove, update callers to | |
8758 | use regcache::cooked_write. | |
8759 | * regcache.c (regcache_cooked_write): Remove. | |
8760 | ||
6aa7d724 SM |
8761 | 2018-05-30 Simon Marchi <simon.marchi@ericsson.com> |
8762 | ||
8763 | * regcache.h (regcache_invalidate): Remove, update callers to | |
8764 | use detached_regcache::invalidate instead. | |
8765 | * regcache.c (regcache_invalidate): Remove. | |
8766 | ||
4f0420fd SM |
8767 | 2018-05-30 Simon Marchi <simon.marchi@ericsson.com> |
8768 | ||
8769 | * regcache.h (regcache_raw_write_part): Remove, update callers | |
8770 | to use regcache::raw_write_part instead. | |
8771 | * regcache.c (regcache_raw_write_part): Remove. | |
8772 | ||
502fe83e SM |
8773 | 2018-05-30 Simon Marchi <simon.marchi@ericsson.com> |
8774 | ||
8775 | * regcache.h (regcache_raw_read_part): Remove, update callers to | |
8776 | use readable_regcache::raw_read_part instead. | |
8777 | * regcache.c (regcache_raw_read_part): Remove. | |
8778 | ||
dca08e1f SM |
8779 | 2018-05-30 Simon Marchi <simon.marchi@ericsson.com> |
8780 | ||
8781 | * regcache.h (regcache_cooked_read): Remove, update callers to | |
8782 | use readable_regcache::cooked_read instead. | |
8783 | * regcache.c (regcache_cooked_read): Remove. | |
8784 | ||
10eaee5f SM |
8785 | 2018-05-30 Simon Marchi <simon.marchi@ericsson.com> |
8786 | ||
8787 | * regcache.h (regcache_raw_write): Remove, update callers to use | |
8788 | regcache::raw_write instead. | |
8789 | * regcache.c (regcache_raw_write): Remove. | |
8790 | ||
0b883586 SM |
8791 | 2018-05-30 Simon Marchi <simon.marchi@ericsson.com> |
8792 | ||
8793 | * regcache.h (regcache_raw_read): Remove, update callers to use | |
8794 | readable_regcache::raw_read instead. | |
8795 | * regcache.c (regcache_raw_read): Remove. | |
8796 | ||
0b47d985 SM |
8797 | 2018-05-30 Simon Marchi <simon.marchi@ericsson.com> |
8798 | ||
8799 | * regcache.h (regcache_raw_update): Remove, update callers to | |
8800 | use readable_regcache::raw_update instead. | |
8801 | * regcache.c (regcache_raw_update): Remove. | |
8802 | ||
0ec9f114 SM |
8803 | 2018-05-30 Simon Marchi <simon.marchi@ericsson.com> |
8804 | ||
8805 | * regcache.h (regcache_register_status): Remove, update callers | |
8806 | to use reg_buffer::get_register_status directly instead. | |
8807 | * regcache.c (regcache_register_status): Remove. | |
8808 | ||
222312d3 SM |
8809 | 2018-05-30 Simon Marchi <simon.marchi@ericsson.com> |
8810 | ||
8811 | * regcache.h (regcache_get_ptid): Remove, update all callers to | |
8812 | call regcache::ptid instead. | |
8813 | * regcache.c (regcache_get_ptid): Remove. | |
8814 | ||
fdbe37e3 SM |
8815 | 2018-05-30 Simon Marchi <simon.marchi@ericsson.com> |
8816 | ||
8817 | * Makefile.in (ALL_TARGET_OBS): Add or1k-tdep.o. | |
8818 | ||
f7c6f423 PA |
8819 | 2018-05-30 Pedro Alves <palves@redhat.com> |
8820 | ||
8821 | * common/common-exceptions.h (exception_rethrow): Use | |
8822 | ATTRIBUTE_NORETURN. | |
8823 | ||
52941706 SM |
8824 | 2018-05-29 Simon Marchi <simon.marchi@polymtl.ca> |
8825 | ||
8826 | * breakpoint.c (print_solib_event, check_status_catch_solib): | |
8827 | Remove struct keyword in range-based for loops. | |
8828 | * dbxread.c (find_corresponding_bincl_psymtab): Likewise. | |
8829 | * dwarf2read.c (compute_delayed_physnames, rust_union_quirks); | |
8830 | Likewise. | |
8831 | * linespec.c (find_superclass_methods, search_minsyms_for_name): | |
8832 | Likewise. | |
8833 | * symfile.c (addr_info_make_relative): Likewise. | |
8834 | * thread.c (value_in_thread_stack_temporaries): Likewise. | |
8835 | ||
bf2977b5 WP |
8836 | 2018-06-12 Weimin Pan <weimin.pan@oracle.com> |
8837 | ||
8838 | PR gdb/16841 | |
8839 | * valops.c (value_struct_elt_for_reference): Call check_typedef on | |
8840 | aggregate type to get its real type before accessing it. | |
8841 | ||
64cc34d8 WP |
8842 | 2018-05-29 Weimin Pan <weimin.pan@oracle.com> |
8843 | ||
8844 | * minsyms.h (lookup_minimal_symbol_and_objfile): Remove declaration. | |
8845 | * minsyms.c (lookup_minimal_symbol_and_objfile): Remove definition. | |
8846 | * coff-pe-read.c (add_pe_forwarded_sym): Replace | |
8847 | lookup_minimal_symbol_and_objfile with lookup_bound_minimal_symbol. | |
8848 | * glibc-tdep.c (glibc_skip_solib_resolver): Likewise. | |
8849 | * jit.c (jit_breakpoint_re_set_internal): Likewise. | |
8850 | * printcmd.c (info_address_command): Likewise. | |
8851 | ||
e7ec8713 TT |
8852 | 2018-05-29 Tom Tromey <tom@tromey.com> |
8853 | ||
8854 | * windows-nat.c (handle_exception): Update fall-through comment. | |
8855 | ||
bcb430e4 TT |
8856 | 2018-05-29 Tom Tromey <tom@tromey.com> |
8857 | ||
8858 | * progspace.h (so_list_ptr): Remove typedef. Don't declare VEC. | |
8859 | (struct program_space) <added_solibs>: Now a std::vector. | |
8860 | * breakpoint.c (print_solib_event): Update. | |
8861 | (check_status_catch_solib): Update. | |
8862 | * progspace.c (clear_program_space_solib_cache): Update. | |
8863 | * solib.c (update_solib_list): Update. | |
8864 | ||
894882e3 TT |
8865 | 2018-05-29 Tom Tromey <tom@tromey.com> |
8866 | ||
8867 | * python/py-type.c (typy_richcompare): Update. | |
8868 | * guile/scm-type.c (tyscm_equal_p_type_smob): Update. | |
8869 | * gdbtypes.h (types_deeply_equal): Return bool. | |
8870 | (types_equal): Likewise. | |
8871 | * gdbtypes.c (type_equality_entry_d): Remove typedef. Don't | |
8872 | declare VEC. | |
8873 | (check_types_equal): Change worklist to std::vector. Return | |
8874 | bool. | |
8875 | (struct type_equality_entry): Add constructor. | |
8876 | (compare_maybe_null_strings): Return bool. | |
8877 | (check_types_worklist): Return bool. Change worklist to | |
8878 | std::vector. | |
8879 | (types_deeply_equal): Use std::vector. | |
8880 | (types_equal): Return bool. | |
8881 | (compare_maybe_null_strings): Simplify. | |
8882 | ||
10b2ded4 TT |
8883 | 2018-05-29 Tom Tromey <tom@tromey.com> |
8884 | ||
8885 | * record-btrace.c (tp_t): Remove typedef. Don't declare VEC. | |
8886 | ||
4f7deebe TT |
8887 | 2018-05-29 Tom Tromey <tom@tromey.com> |
8888 | ||
8889 | * objc-lang.h: Don't include cp-support.h. | |
8890 | * common/gdb_vecs.h (const_char_ptr): Remove typedef. Don't | |
8891 | declare VEC. | |
8892 | ||
b8283aea TT |
8893 | 2018-05-27 Tom Tromey <tom@tromey.com> |
8894 | ||
8895 | * Makefile.in (DEPFILES): Don't reference REMOTE_OBS. | |
8896 | ||
41a883c8 TT |
8897 | 2018-05-25 Tom Tromey <tom@tromey.com> |
8898 | ||
8899 | * value.c (value::location): Initialize. | |
8900 | ||
bf259e25 TT |
8901 | 2018-05-25 Tom Tromey <tom@tromey.com> |
8902 | ||
8903 | * dbxread.c (init_bincl_list): Remove. | |
8904 | (bincl_list): Now a std::vector. | |
8905 | (bincls_allocated, next_bincl): Remove. | |
8906 | (free_bincl_list, do_free_bincl_list_cleanup) | |
8907 | (make_cleanup_free_bincl_list): Remove. | |
8908 | (dbx_read_symtab, elfstab_build_psymtabs): Use scoped_restore, | |
8909 | unique_xmalloc_ptr. | |
8910 | (find_corresponding_bincl_psymtab, read_dbx_symtab): Update. | |
8911 | (struct header_file_location): Add constructor. | |
8912 | (add_bincl_to_list): Remove. | |
8913 | ||
d525a99b TT |
8914 | 2018-05-25 Tom Tromey <tom@tromey.com> |
8915 | ||
8916 | * tui/tui.c (tui_enable): Update. | |
8917 | * mi/mi-interp.c (mi_interp::init): Update. | |
8918 | * interps.h (class interp) <name>: New method. | |
8919 | <m_name>: Rename from name. | |
8920 | (~scoped_restore_interp): Update. | |
8921 | * interps.c (interp::interp): Update. | |
8922 | (interp_add, interp_set, interp_lookup_existing) | |
8923 | (current_interp_named_p): Update. | |
8924 | ||
da505cff TT |
8925 | 2018-05-25 Tom Tromey <tom@tromey.com> |
8926 | ||
8927 | * interps.c (interp_name): Remove. | |
8928 | * mi/mi-interp.c (mi_interp::init): Update. | |
8929 | * interps.h (interp_name): Remove. | |
8930 | (~scoped_restore_interp): Update. | |
8931 | * tui/tui.c (tui_enable): Update. | |
8932 | ||
29f94340 TT |
8933 | 2018-05-25 Tom Tromey <tom@tromey.com> |
8934 | ||
8935 | * utils.c (fputs_maybe_filtered): Update. | |
8936 | * linespec.c (decode_line_full): Update. | |
8937 | * mi/mi-interp.c (mi_on_normal_stop_1, mi_tsv_modified) | |
8938 | (mi_print_breakpoint_for_event, mi_solib_loaded) | |
8939 | (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed) | |
8940 | (mi_user_selected_context_changed): Update. | |
8941 | * mi/mi-main.c (mi_execute_command): Update. | |
8942 | * cli/cli-script.c (execute_control_command): Update. | |
8943 | * python/python.c (execute_gdb_command): Update. | |
8944 | * solib.c (info_sharedlibrary_command): Update. | |
8945 | * interps.c (interp_ui_out): Remove. | |
8946 | * interps.h (interp_ui_out): Remove. | |
8947 | ||
716b8bc5 TT |
8948 | 2018-05-25 Tom Tromey <tom@tromey.com> |
8949 | ||
8950 | * tui/tui-interp.c (as_tui_interp): Use dynamic_cast. | |
8951 | * mi/mi-interp.c (as_mi_interp): Use dynamic_cast. | |
8952 | * cli/cli-interp.c (as_cli_interp): Use dynamic_cast. | |
8953 | ||
753ff9bd TT |
8954 | 2018-05-25 Tom Tromey <tom@tromey.com> |
8955 | ||
8956 | * cli/cli-interp.c (safe_execute_command): Use scoped_restore. | |
8957 | * interps.c (interp_exec): Use scoped_restore. | |
8958 | ||
5ca3b260 TT |
8959 | 2018-05-25 Tom Tromey <tom@tromey.com> |
8960 | ||
8961 | * remote.c (remote_target::remote_file_get): Use | |
8962 | gdb::byte_vector. | |
8963 | (remote_target::remote_file_put): Likewise. | |
8964 | ||
3173aa2f TT |
8965 | 2018-05-25 Tom Tromey <tom@tromey.com> |
8966 | ||
8967 | * coff-pe-read.c (struct read_pe_section_data) <section_name>: Now | |
8968 | a std::string. | |
8969 | (get_pe_section_index, add_pe_exported_sym): Update. | |
8970 | (read_pe_exported_syms): Use gdb::def_vector. | |
8971 | ||
09a5e1b5 TT |
8972 | 2018-05-25 Tom Tromey <tom@tromey.com> |
8973 | ||
8974 | * frame.c (remove_prev_frame): Remove. | |
8975 | (get_prev_frame_if_no_cycle): Use TRY/CATCH. | |
8976 | ||
d8dab6c3 MR |
8977 | 2018-05-25 Maciej W. Rozycki <macro@mips.com> |
8978 | ||
8979 | * mips-linux-tdep.h (mips_supply_fpregset, mips_fill_fpregset): | |
8980 | Remove prototypes. | |
8981 | * mips-linux-nat.c (supply_fpregset): Always call | |
8982 | `mips64_supply_fpregset' rather than `mips_supply_fpregset'. | |
8983 | (fill_fpregset): Always call `mips64_fill_fpregset' rather than | |
8984 | `mips_fill_fpregset'. | |
8985 | * mips-linux-tdep.c (mips_supply_fpregset) | |
8986 | (mips_supply_fpregset_wrapper, mips_fill_fpregset) | |
8987 | (mips_fill_fpregset_wrapper): Remove functions. | |
8988 | (mips64_supply_fpregset, mips64_fill_fpregset): Update comments. | |
8989 | (mips_linux_fpregset): Remove variable. | |
8990 | (mips_linux_iterate_over_regset_sections): Use | |
8991 | `mips64_linux_fpregset' in place of `mips_linux_fpregset'. | |
8992 | (mips_linux_o32_sigframe_init): Remove comment. | |
8993 | ||
3c69da40 PA |
8994 | 2018-05-25 Pedro Alves <palves@redhat.com> |
8995 | ||
8996 | * remote.c (struct vCont_action_support, MAXTHREADLISTRESULTS) | |
8997 | (struct readahead_cache, struct packet_reg, struct | |
8998 | remote_arch_state, class remote_state): Move higher up in the | |
8999 | file. | |
9000 | (remote_target::m_remote_state): Now an object instead of a pointer. | |
9001 | (remote_target::get_remote_state): Adjust. | |
9002 | ||
39f0c204 AB |
9003 | 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com> |
9004 | ||
9005 | * stack.c (select_and_print_frame): Delete. | |
9006 | (struct function_bounds): Move struct within function. | |
9007 | (func_command): Most content moved into new function | |
9008 | find_frame_for_function, use new function, print result, add | |
9009 | function comment. | |
9010 | (find_frame_for_function): New function, now returns a result. | |
9011 | ||
d392224a PW |
9012 | 2018-05-24 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
9013 | ||
9014 | * stack.c (iterate_over_block_arg_vars): Fix comment. | |
9015 | (print_frame_arg_vars): Pass stream in cb_data, not gdb_stdout. | |
9016 | ||
45f25d6c AB |
9017 | 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com> |
9018 | ||
9019 | PR gdb/23203 | |
9020 | * frame.c | |
9021 | (scoped_restore_selected_frame::scoped_restore_selected_frame): | |
9022 | Define. | |
9023 | (scoped_restore_selected_frame::~scoped_restore_selected_frame): | |
9024 | Define. | |
9025 | * frame.h (class scoped_restore_selected_frame): New class. | |
9026 | * stack.c (print_frame_local_vars): Remove catching and rethrowing | |
9027 | of any exception, use scoped_restore_selected_frame to restore the | |
9028 | frame instead. | |
9029 | ||
da05d921 PA |
9030 | 2018-05-24 Pedro Alves <palves@redhat.com> |
9031 | ||
9032 | * darwin-nat.h (darwin_nat_target::create_inferior): Mark with | |
9033 | override. | |
9034 | ||
a8be540e TT |
9035 | 2018-05-23 Tom Tromey <tom@tromey.com> |
9036 | ||
9037 | * complaints.c (struct complaints): Remove. | |
9038 | (symfile_complaint_book): Remove. | |
9039 | (series): New global. | |
9040 | (complaint_internal): Update. | |
9041 | (clear_complaints): Update. | |
9042 | ||
ff1cf532 TT |
9043 | 2018-05-23 Tom Tromey <tom@tromey.com> |
9044 | ||
9045 | * complaints.c (counters): New global. | |
9046 | (struct complain): Remove. | |
9047 | (struct complaints) <root>: Remove. | |
9048 | (complaint_sentinel): Remove. | |
9049 | (symfile_complaint_book): Update. | |
9050 | (find_complaint) Remove. | |
9051 | (complaint_internal, clear_complaints): Update. | |
9052 | ||
7ff88174 TT |
9053 | 2018-05-23 Tom Tromey <tom@tromey.com> |
9054 | ||
9055 | * complaints.c (struct complain) <file, line>: Remove. | |
9056 | (find_complaint): Remove file, line parameters. | |
9057 | (complaint_internal): Update. | |
9058 | ||
de54e1a5 TT |
9059 | 2018-05-23 Tom Tromey <tom@tromey.com> |
9060 | ||
9061 | * complaints.c (vcomplaint): Remove. | |
9062 | (complaint_internal) Merge in contents of vcomplaint. | |
9063 | ||
2ac237e5 TT |
9064 | 2018-05-23 Tom Tromey <tom@tromey.com> |
9065 | ||
9066 | * complaints.c (struct complaints) <explanation>: Remove. | |
9067 | (symfile_explanations): Remove. | |
9068 | (symfile_complaint_book): Update. | |
9069 | (vcomplaint): Update. | |
9070 | (struct explanation): Remove. | |
9071 | ||
b98664d3 TT |
9072 | 2018-05-23 Tom Tromey <tom@tromey.com> |
9073 | ||
9074 | * complaints.c (symfile_complaints): Remove. | |
9075 | (complaint_internal): Remove "complaints" parameter. | |
9076 | (clear_complaints, vcomplaint): Remove "c" parameter. | |
9077 | (get_complaints): Remove. | |
9078 | * dwarf2read.c (dwarf2_statement_list_fits_in_line_number_section_complaint) | |
9079 | (dwarf2_debug_line_missing_file_complaint) | |
9080 | (dwarf2_debug_line_missing_end_sequence_complaint) | |
9081 | (dwarf2_complex_location_expr_complaint) | |
9082 | (dwarf2_const_value_length_mismatch_complaint) | |
9083 | (dwarf2_section_buffer_overflow_complaint) | |
9084 | (dwarf2_macro_malformed_definition_complaint) | |
9085 | (dwarf2_invalid_attrib_class_complaint) | |
9086 | (create_addrmap_from_index, dw2_symtab_iter_next) | |
9087 | (dw2_expand_marked_cus) | |
9088 | (dw2_debug_names_iterator::find_vec_in_debug_names) | |
9089 | (dw2_debug_names_iterator::next, dw2_debug_names_iterator::next) | |
9090 | (create_debug_type_hash_table, init_cutu_and_read_dies) | |
9091 | (partial_die_parent_scope, add_partial_enumeration) | |
9092 | (skip_one_die, fixup_go_packaging, quirk_rust_enum, process_die) | |
9093 | (dwarf2_compute_name, dwarf2_physname, read_namespace_alias) | |
9094 | (read_import_statement, read_file_scope, create_dwo_cu_reader) | |
9095 | (create_cus_hash_table, create_dwp_hash_table) | |
9096 | (inherit_abstract_dies, read_func_scope, read_call_site_scope) | |
9097 | (dwarf2_rnglists_process, dwarf2_ranges_process) | |
9098 | (dwarf2_add_type_defn, dwarf2_attach_fields_to_type) | |
9099 | (dwarf2_add_member_fn, get_alignment, maybe_set_alignment) | |
9100 | (handle_struct_member_die, process_structure_scope) | |
9101 | (read_array_type, read_common_block, read_module_type) | |
9102 | (read_tag_pointer_type, read_typedef, read_base_type) | |
9103 | (read_subrange_type, load_partial_dies, partial_die_info::read) | |
9104 | (partial_die_info::read, partial_die_info::read) | |
9105 | (partial_die_info::read, read_checked_initial_length_and_offset) | |
9106 | (dwarf2_string_attr, read_formatted_entries) | |
9107 | (dwarf_decode_line_header) | |
9108 | (lnp_state_machine::check_line_address, dwarf_decode_lines_1) | |
9109 | (new_symbol, dwarf2_const_value_attr, lookup_die_type) | |
9110 | (read_type_die_1, determine_prefix, dwarf2_get_ref_die_offset) | |
9111 | (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes) | |
9112 | (get_signatured_type, get_DW_AT_signature_type) | |
9113 | (decode_locdesc, file_file_name, consume_improper_spaces) | |
9114 | (skip_form_bytes, skip_unknown_opcode, dwarf_parse_macro_header) | |
9115 | (dwarf_decode_macro_bytes, dwarf_decode_macros) | |
9116 | (dwarf2_symbol_mark_computed, set_die_type) | |
9117 | (read_attribute_value): Update. | |
9118 | * stap-probe.c (handle_stap_probe, get_stap_base_address): | |
9119 | Update. | |
9120 | * dbxread.c (unknown_symtype_complaint) | |
9121 | (lbrac_mismatch_complaint, repeated_header_complaint) | |
9122 | (set_namestring, function_outside_compilation_unit_complaint) | |
9123 | (read_dbx_symtab, process_one_symbol): Update. | |
9124 | * gdbtypes.c (stub_noname_complaint): Update. | |
9125 | * windows-nat.c (handle_unload_dll): Update. | |
9126 | * coffread.c (coff_symtab_read, enter_linenos, decode_type) | |
9127 | (decode_base_type): Update. | |
9128 | * xcoffread.c (bf_notfound_complaint, ef_complaint) | |
9129 | (eb_complaint, record_include_begin, record_include_end) | |
9130 | (enter_line_range, xcoff_next_symbol_text, read_xcoff_symtab) | |
9131 | (process_xcoff_symbol, read_symbol) | |
9132 | (function_outside_compilation_unit_complaint) | |
9133 | (scan_xcoff_symtab): Update. | |
9134 | * machoread.c (macho_symtab_read, macho_add_oso_symfile): Update. | |
9135 | * buildsym.c (finish_block_internal, make_blockvector) | |
9136 | (end_symtab_get_static_block, augment_type_symtab): Update. | |
9137 | * dtrace-probe.c (dtrace_process_dof) | |
9138 | (dtrace_static_probe_ops::get_probes): Update. | |
9139 | * complaints.h (struct complaint): Don't declare. | |
9140 | (symfile_complaints): Remove. | |
9141 | (complaint_internal): Remove "complaints" parameter. | |
9142 | (complaint): Likewise. | |
9143 | (clear_complaints): Likewise. | |
9144 | * symfile.c (syms_from_objfile_1, finish_new_objfile) | |
9145 | (reread_symbols): Update. | |
9146 | * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program) | |
9147 | (dwarf2_frame_cache, decode_frame_entry): Update. | |
9148 | * dwarf2loc.c (dwarf_reg_to_regnum): Update. | |
9149 | * objc-lang.c (lookup_objc_class, lookup_child_selector) | |
9150 | (info_selectors_command): Update. | |
9151 | * macrotab.c (macro_include, check_for_redefinition) | |
9152 | (macro_undef): Update. | |
9153 | * objfiles.c (filter_overlapping_sections): Update. | |
9154 | * stabsread.c (invalid_cpp_abbrev_complaint) | |
9155 | (reg_value_complaint, stabs_general_complaint, dbx_lookup_type) | |
9156 | (define_symbol, error_type, read_type, rs6000_builtin_type) | |
9157 | (stabs_method_name_from_physname, read_member_functions) | |
9158 | (read_cpp_abbrev, read_baseclasses, read_tilde_fields) | |
9159 | (attach_fields_to_type, complain_about_struct_wipeout) | |
9160 | (read_range_type, read_args, common_block_start) | |
9161 | (common_block_end, cleanup_undefined_types_1, scan_file_globals): | |
9162 | Update. | |
9163 | * mdebugread.c (index_complaint, unknown_ext_complaint) | |
9164 | (basic_type_complaint, bad_tag_guess_complaint) | |
9165 | (bad_rfd_entry_complaint, unexpected_type_code_complaint) | |
9166 | (reg_value_complaint, parse_symbol, parse_type, upgrade_type) | |
9167 | (parse_procedure, parse_lines) | |
9168 | (function_outside_compilation_unit_complaint) | |
9169 | (parse_partial_symbols, psymtab_to_symtab_1, cross_ref) | |
9170 | (bad_tag_guess_complaint, reg_value_complaint): Update. | |
9171 | * cp-support.c (demangled_name_complaint): Update. | |
9172 | * macroscope.c (sal_macro_scope): Update. | |
9173 | * dwarf-index-write.c (class debug_names): Update. | |
9174 | ||
4e9668d0 TT |
9175 | 2018-05-23 Tom Tromey <tom@tromey.com> |
9176 | ||
9177 | * complaints.c (clear_complaints): Remove "noisy" parameter. | |
9178 | * complaints.h (clear_complaints): Update. | |
9179 | * symfile.c (syms_from_objfile_1, finish_new_objfile) | |
9180 | (reread_symbols): Update. | |
9181 | ||
43ba33c7 TT |
9182 | 2018-05-23 Tom Tromey <tom@tromey.com> |
9183 | ||
9184 | * complaints.c (enum complaint_series): Remove FIRST_MESSAGE, | |
9185 | SUBSEQUENT_MESSAGE. | |
9186 | (vcomplaint, clear_complaints): Update. | |
9187 | (symfile_explanations): Remove some messages. | |
9188 | ||
2b9496b2 TT |
9189 | 2018-05-23 Tom Tromey <tom@tromey.com> |
9190 | ||
9191 | * complaints.c (internal_complaint): Remove. | |
9192 | * complaints.h (internal_complaint): Remove. | |
9193 | ||
35f1fea3 MR |
9194 | 2018-05-22 Maciej W. Rozycki <macro@mips.com> |
9195 | ||
9196 | * i387-tdep.c (i387_collect_xsave): Make `i' unsigned. | |
9197 | ||
6b8edb51 PA |
9198 | 2018-05-22 Pedro Alves <palves@redhat.com> |
9199 | ||
9200 | * remote-fileio.c (remote_fileio_reply, remote_fileio_ioerror) | |
9201 | (remote_fileio_badfd, remote_fileio_return_errno) | |
9202 | (remote_fileio_return_success, remote_fileio_func_open) | |
9203 | (remote_fileio_func_open, remote_fileio_func_close) | |
9204 | (remote_fileio_func_read, remote_fileio_func_write) | |
9205 | (remote_fileio_func_lseek, remote_fileio_func_rename) | |
9206 | (remote_fileio_func_unlink, remote_fileio_func_stat) | |
9207 | (remote_fileio_func_fstat, remote_fileio_func_gettimeofday) | |
9208 | (remote_fileio_func_isatty, remote_fileio_func_system): Add | |
9209 | remote_target parameter. | |
9210 | (remote_fio_func_map) <func>: Add remote_target parameter. | |
9211 | (do_remote_fileio_request, remote_fileio_request): | |
9212 | * remote-fileio.h (remote_fileio_request): | |
9213 | * remote-notif.c (remote_notif_ack, remote_notif_parse, ): Add | |
9214 | remote_target parameter. | |
9215 | (remote_notif_process, handle_notification): Adjust to pass down | |
9216 | the remote. | |
9217 | (remote_notif_state_allocate): Add remote_target parameter. Save | |
9218 | it. | |
9219 | * remote-notif.h (struct remote_target): Forward declare. | |
9220 | (struct notif_client) <parse, ack, can_get_pending_events>: Add | |
9221 | remote_target parameter. | |
9222 | (struct remote_notif_state) <remote>: New field. | |
9223 | (remote_notif_ack, remote_notif_parse): Add remote_target | |
9224 | parameter. | |
9225 | (remote_notif_state_allocate, remote_notif_state_allocate): Add | |
9226 | remote_target parameter. | |
9227 | * remote.c (OPAQUETHREADBYTES, threadref, gdb_ext_thread_info) | |
9228 | (threads_listing_context, rmt_thread_action, protocol_feature) | |
9229 | (packet_reg, stop_reply, stop_reply_p, enum packet_support) | |
9230 | (packet_result, struct threads_listing_context, remote_state): | |
9231 | Move definitions and declarations higher up. | |
9232 | (remote_target) <~remote_target>: Declare. | |
9233 | (remote_download_command_source, remote_file_put, remote_file_get) | |
9234 | (remote_file_delete, remote_hostio_pread, remote_hostio_pwrite) | |
9235 | (remote_hostio_pread_vFile, remote_hostio_send_command) | |
9236 | (remote_hostio_set_filesystem, remote_hostio_open) | |
9237 | (remote_hostio_close, remote_hostio_unlink, remote_state) | |
9238 | (get_remote_state, get_remote_packet_size, get_memory_packet_size) | |
9239 | (get_memory_write_packet_size, get_memory_read_packet_size) | |
9240 | (append_pending_thread_resumptions, remote_detach_1) | |
9241 | (append_resumption, remote_resume_with_vcont) | |
9242 | (add_current_inferior_and_thread, wait_ns, wait_as) | |
9243 | (process_stop_reply, remote_notice_new_inferior) | |
9244 | (process_initial_stop_replies, remote_add_thread) | |
9245 | (btrace_sync_conf, remote_btrace_maybe_reopen) | |
9246 | (remove_new_fork_children, kill_new_fork_children) | |
9247 | (discard_pending_stop_replies, stop_reply_queue_length) | |
9248 | (check_pending_events_prevent_wildcard_vcont) | |
9249 | (discard_pending_stop_replies_in_queue, stop_reply) | |
9250 | (remote_notif_remove_queued_reply, stop_reply *queued_stop_reply) | |
9251 | (peek_stop_reply, remote_parse_stop_reply, remote_stop_ns) | |
9252 | (remote_interrupt_as, remote_interrupt_ns) | |
9253 | (remote_get_noisy_reply, remote_query_attached) | |
9254 | (remote_add_inferior, remote_current_thread, get_current_thread) | |
9255 | (set_thread, set_general_thread, set_continue_thread) | |
9256 | (set_general_process, write_ptid) | |
9257 | (remote_unpack_thread_info_response, remote_get_threadinfo) | |
9258 | (parse_threadlist_response, remote_get_threadlist) | |
9259 | (remote_threadlist_iterator, remote_get_threads_with_ql) | |
9260 | (remote_get_threads_with_qxfer) | |
9261 | (remote_get_threads_with_qthreadinfo, extended_remote_restart) | |
9262 | (get_offsets, remote_check_symbols, remote_supported_packet) | |
9263 | (remote_query_supported, remote_packet_size) | |
9264 | (remote_serial_quit_handler, remote_detach_pid) | |
9265 | (remote_vcont_probe, remote_resume_with_hc) | |
9266 | (send_interrupt_sequence, interrupt_query) | |
9267 | (remote_notif_get_pending_events, fetch_register_using_p) | |
9268 | (send_g_packet, process_g_packet, fetch_registers_using_g) | |
9269 | (store_register_using_P, store_registers_using_G) | |
9270 | (set_remote_traceframe, check_binary_download) | |
9271 | (remote_write_bytes_aux, remote_write_bytes, remote_read_bytes_1) | |
9272 | (remote_xfer_live_readonly_partial, remote_read_bytes) | |
9273 | (remote_send_printf, remote_flash_write, readchar) | |
9274 | (remote_serial_write, putpkt, putpkt_binary, skip_frame) | |
9275 | (read_frame, getpkt, getpkt_or_notif_sane_1, getpkt_sane) | |
9276 | (getpkt_or_notif_sane, remote_vkill, remote_kill_k) | |
9277 | (extended_remote_disable_randomization, extended_remote_run) | |
9278 | (send_environment_packet, extended_remote_environment_support) | |
9279 | (extended_remote_set_inferior_cwd, remote_write_qxfer) | |
9280 | (remote_read_qxfer, push_stop_reply, vcont_r_supported) | |
9281 | (packet_command): Now methods of ... | |
9282 | (remote_target): ... this class. | |
9283 | (m_remote_state) <remote_target>: New field. | |
9284 | (struct remote_state) <stop_reply_queue, | |
9285 | remote_async_inferior_event_token, wait_forever_enabled_p>: New | |
9286 | fields. | |
9287 | (remote_state::remote_state): Allocate stop_reply_queue. | |
9288 | (remote_state): Delete global. | |
9289 | (get_remote_state_raw): Delete. | |
9290 | (remote_target::get_remote_state): Allocate m_remote_state on | |
9291 | demand. | |
9292 | (get_current_remote_target): New. | |
9293 | (remote_ops, extended_remote_ops): Delete. | |
9294 | (wait_forever_enabled_p, remote_async_inferior_event_token): | |
9295 | Delete, moved to struct remote_state. | |
9296 | (remote_target::close): Delete self. Destruction bits split to | |
9297 | ... | |
9298 | (remote_target::~remote_target): ... this. | |
9299 | (show_memory_packet_size): Adjust to use | |
9300 | get_current_remote_target. | |
9301 | (struct protocol_feature) <func>: Add remote_target parameter. | |
9302 | All callers adjusted. | |
9303 | (curr_quit_handler_target): New. | |
9304 | (remote_serial_quit_handler): Reimplement. | |
9305 | (remote_target::open_1): Adjust to use get_current_remote_target. | |
9306 | Heap-allocate remote_target/extended_remote_target instances. | |
9307 | (vcont_builder::vcont_builder): Add remote_target parameter, and | |
9308 | save it in m_remote. All callers adjusted. | |
9309 | (vcont_builder::m_remote): New field. | |
9310 | (vcont_builder::restart, vcont_builder::flush) | |
9311 | (vcont_builder::push_action): Use it. | |
9312 | (remote_target::commit_resume): Use it. | |
9313 | (struct queue_iter_param) <remote>: New field. | |
9314 | (remote_target::remove_new_fork_children): Fill in 'remote' field. | |
9315 | (check_pending_event_prevents_wildcard_vcont_callback_data): New. | |
9316 | (check_pending_event_prevents_wildcard_vcont_callback) | |
9317 | (remote_target::check_pending_events_prevent_wildcard_vcont) | |
9318 | (remote_target::discard_pending_stop_replies) | |
9319 | (remote_target::discard_pending_stop_replies_in_queue) | |
9320 | (remote_target::remote_notif_remove_queued_reply): Fill in | |
9321 | 'remote' field. | |
9322 | (remote_notif_get_pending_events): New. | |
9323 | (remote_target::readchar, remote_target::remote_serial_write): | |
9324 | Save/restore curr_quit_handler_target. | |
9325 | (putpkt): New. | |
9326 | (kill_new_fork_children): Fill in 'remote' field. | |
9327 | (packet_command): Use get_current_remote_target, defer to | |
9328 | remote_target method of same name. | |
9329 | (scoped_remote_fd::scoped_remote_fd): Add 'remote_target' | |
9330 | parameter, and save it in m_remote. All callers adjusted. | |
9331 | (scoped_remote_fd::release): Use m_remote. | |
9332 | (scoped_remote_fd::m_remote): New field. | |
9333 | (remote_file_put, remote_file_get, remote_file_delete): Use | |
9334 | get_current_remote_target, defer to remote_target method of same | |
9335 | name. | |
9336 | (remote_btrace_reset): Add remote_state paremeter. Update all | |
9337 | callers. | |
9338 | (remote_async_inferior_event_handler). Pass down 'data'. | |
9339 | (remote_new_objfile): Use get_current_remote_target. | |
9340 | (remote_target::vcont_r_supported): New. | |
9341 | (set_range_stepping): Use get_current_remote_target and | |
9342 | remote_target::vcont_r_supported. | |
9343 | (_initialize_remote): Don't allocate 'remote_state' and | |
9344 | 'stop_reply_queue' globals. | |
9345 | * remote.h (struct remote_target): Forward declare. | |
9346 | (getpkt, putpkt, remote_notif_get_pending_events): Add | |
9347 | 'remote_target' parameter. | |
9348 | ||
f5db4863 PA |
9349 | 2018-05-22 Pedro Alves <palves@redhat.com> |
9350 | ||
9351 | * remote.c (vcont_builder): Now a class. Make all data members | |
9352 | private. | |
9353 | (vcont_builder) <vcont_builder, restart, flush, push_action>: | |
9354 | Declare methods. | |
9355 | (vcont_builder_restart): Rename to ... | |
9356 | (vcont_builder::restart): ... this. | |
9357 | (vcont_builder_flush): Rename to ... | |
9358 | (vcont_builder::flush): ... this. | |
9359 | (vcont_builder_push_action): Rename to ... | |
9360 | (vcont_builder::push_action): ... this. | |
9361 | (remote_target::commit_resume): Adjust. | |
9362 | ||
cc0be08f PA |
9363 | 2018-05-22 Pedro Alves <palves@redhat.com> |
9364 | ||
9365 | * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE): Rename to ... | |
9366 | (DEFAULT_MAX_MEMORY_PACKET_SIZE_FIXED): ... this. | |
9367 | (get_fixed_memory_packet_size): New. | |
9368 | (get_memory_packet_size): Use it. | |
9369 | (set_memory_packet_size): Don't override the config size with | |
9370 | DEFAULT_MAX_MEMORY_PACKET_SIZE. | |
9371 | (show_memory_packet_size): Use get_fixed_memory_packet_size. | |
9372 | Don't refer to get_memory_packet_size if not connected to a remote | |
9373 | target. Show "(default)" if configured size is 0. | |
9374 | ||
9607784a PA |
9375 | 2018-05-22 Pedro Alves <palves@redhat.com> |
9376 | ||
9377 | * remote.c (remote_target::mourn_inferior): Move | |
9378 | discard_pending_stop_replies call here from ... | |
9379 | (_initialize_remote): ... here. | |
9380 | ||
0e9a6b2f PA |
9381 | 2018-05-22 Pedro Alves <palves@redhat.com> |
9382 | ||
9383 | * remote.c (compare_section_command): Remove set_general_process | |
9384 | call. | |
9385 | ||
43c3a0e4 PA |
9386 | 2018-05-22 Pedro Alves <palves@redhat.com> |
9387 | ||
9388 | * remote.c (struct packet_reg, struct remote_arch_state): | |
9389 | Move higher up in the file. | |
9390 | (remote_state) <m_arch_states>: Store remote_arch_state values | |
9391 | instead of remote_arch_state pointers. | |
9392 | (remote_state::get_remote_arch_state): Adjust. | |
9393 | ||
9d6eea31 PA |
9394 | 2018-05-22 Pedro Alves <palves@redhat.com> |
9395 | ||
9396 | * remote.c: Include <unordered_map>. | |
9397 | (remote_state): Now a class. | |
9398 | (remote_state) <get_remote_arch_state>: Declare method. | |
9399 | <get_remote_arch_state>: New field. | |
9400 | (remote_arch_state) <remote_arch_state>: Declare ctor. | |
9401 | <regs>: Now a unique_ptr. | |
9402 | (remote_gdbarch_data_handle): Delete. | |
9403 | (get_remote_arch_state): Delete. | |
9404 | (remote_state::get_remote_arch_state): New. | |
9405 | (get_remote_state): Adjust to call remote_state's | |
9406 | get_remote_arch_state method. | |
9407 | (init_remote_state): Delete, bits factored out to ... | |
9408 | (remote_arch_state::remote_arch_state): ... this new method. | |
9409 | (get_remote_packet_size, get_memory_packet_size) | |
9410 | (process_g_packet, remote_target::fetch_registers) | |
9411 | (remote_target::prepare_to_store, store_registers_using_G) | |
9412 | (remote_target::store_registers, remote_target::get_trace_status): | |
9413 | Adjust to call remote_state's method. | |
9414 | (_initialize_remote): Remove reference to | |
9415 | remote_gdbarch_data_handle. | |
9416 | ||
dd194f6b PA |
9417 | 2018-05-22 Pedro Alves <palves@redhat.com> |
9418 | ||
9419 | * remote.c (struct readahead_cache) <invalidate, invalidate_fd, | |
9420 | pread>: New method declarations. | |
9421 | (remote_target::open_1): Adjust. | |
9422 | (readahead_cache_invalidate): Rename to ... | |
9423 | (readahead_cache::invalidate): ... this, and adjust to be a class | |
9424 | method. | |
9425 | (readahead_cache_invalidate_fd): Rename to ... | |
9426 | (readahead_cache::invalidate_fd): ... this, and adjust to be a | |
9427 | class method. | |
9428 | (remote_hostio_pwrite): Adjust. | |
9429 | (remote_hostio_pread_from_cache): Rename to ... | |
9430 | (readahead_cache::pread): ... this, and adjust to be a class | |
9431 | method. | |
9432 | (remote_hostio_close): Adjust. | |
9433 | ||
440b7aec PA |
9434 | 2018-05-22 Pedro Alves <palves@redhat.com> |
9435 | ||
9436 | * remote.c (remote_hostio_close_cleanup): Delete. | |
9437 | (class scoped_remote_fd): New. | |
9438 | (remote_file_put, remote_file_get): Use it. | |
9439 | ||
de44f5a7 PA |
9440 | 2018-05-22 Pedro Alves <palves@redhat.com> |
9441 | ||
9442 | (struct vCont_action_support): Use bool and initialize all fields. | |
9443 | (struct readahead_cache): Initialize all fields. | |
9444 | (remote_state): Use bool and initialize all fields. | |
9445 | (remote_state::remote_state, remote_state::~remote_state): New. | |
9446 | (new_remote_state): Delete. | |
9447 | (_initialize_remote): Use new to allocate remote_state. | |
9448 | ||
b1b60145 PA |
9449 | 2018-05-22 Pedro Alves <palves@redhat.com> |
9450 | 張俊芝 <zjz@zjz.name> | |
9451 | ||
9452 | PR gdb/22973 | |
9453 | * c-exp.y: Include "c-support.h". | |
9454 | (parse_number, c_parse_escape, lex_one_token): Use TOLOWER instead | |
9455 | of tolower. Use c_ident_is_alpha to scan names. | |
9456 | * c-lang.c: Include "c-support.h". | |
9457 | (convert_ucn, convert_octal, convert_hex, convert_escape): Use | |
9458 | ISXDIGIT instead of isxdigit and ISDIGIT instead of isdigit. | |
9459 | * c-support.h: New file, with bits factored out from ... | |
9460 | * cp-name-parser.y: ... this file. | |
9461 | Include "c-support.h". | |
9462 | (cp_ident_is_alpha, cp_ident_is_alnum): Deleted, moved to | |
9463 | c-support.h and renamed. | |
9464 | (symbol_end, yylex): Adjust. | |
9465 | ||
0ec848ad PFC |
9466 | 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com> |
9467 | ||
9468 | * arch/ppc-linux-common.c (ppc_linux_has_isa205): Change the | |
9469 | parameter type to CORE_ADDR. | |
9470 | * arch/ppc-linux-common.h (ppc_linux_has_isa205): Change the | |
9471 | parameter type in declaration to CORE_ADDR. | |
9472 | * ppc-linux-tdep.c (ppc_linux_core_read_description): Call | |
9473 | target_auxv_search to get AT_HWCAP and use the result to get the | |
9474 | target description. | |
9475 | * ppc-linux-nat.c (ppc_linux_get_hwcap): Change the return type | |
9476 | to CORE_ADDR. Remove the cast of the return value to unsigned | |
9477 | long. Fix error predicate of target_auxv_search. | |
9478 | (ppc_linux_nat_target::read_description): Change the type of the | |
9479 | hwcap variable to CORE_ADDR. | |
9480 | ||
0fb2aaa1 PFC |
9481 | 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com> |
9482 | ||
9483 | * rs6000-tdep.c (rs6000_gdbarch_init): Assign 1 to have_dfp only | |
9484 | if the size of fpscr is larger than 32 bits. | |
9485 | ||
2c3305f6 PFC |
9486 | 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com> |
9487 | ||
9488 | * ppc-linux-tdep.c (ppc_linux_vsxregset): New function. | |
9489 | (ppc32_linux_vsxregmap): New global. | |
9490 | (ppc32_linux_vsxregset): Initialize with ppc32_linux_vsxregmap, | |
9491 | regcache_supply_regset, and regcache_collect_regset. | |
9492 | * ppc-linux-tdep.h (ppc_linux_vsxregset): Declare. | |
9493 | * ppc-linux-nat.c (supply_vsxregset, fill_vsxregset): Remove. | |
9494 | (fetch_vsx_register, store_vsx_register): Remove. | |
9495 | (fetch_vsx_registers): Add regno parameter. Get regset using | |
9496 | ppc_linux_vsxregset. Use regset to supply registers. | |
9497 | (store_vsx_registers): Add regno parameter. Get regset using | |
9498 | ppc_linux_vsxregset. Use regset to collect registers. | |
9499 | (fetch_register): Call fetch_vsx_registers instead of | |
9500 | fetch_vsx_register. | |
9501 | (store_register): Call store_vsx_registers instead of | |
9502 | store_vsx_register. | |
9503 | (fetch_ppc_registers): Call fetch_vsx_registers with -1 for the | |
9504 | new regno parameter. | |
9505 | (store_ppc_registers): Call store_vsx_registers with -1 for the | |
9506 | new regno parameter. | |
9507 | * rs6000-tdep.c (ppc_vsx_support_p, ppc_supply_vsxreget) | |
9508 | (ppc_collect_vsxregset): Remove. | |
9509 | ||
1d75a658 PFC |
9510 | 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com> |
9511 | ||
9512 | * ppc-tdep.h (struct ppc_reg_offsets): Remove vector register | |
9513 | offset fields. | |
9514 | * ppc-fbsd-tdep.c (ppc32_fbsd_reg_offsets): Remove initializers | |
9515 | for vector register offset fields. | |
9516 | (ppc64_fbsd_reg_offsets): Likewise. | |
9517 | * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment | |
9518 | to vector register offset fields. | |
9519 | * ppc-obsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment | |
9520 | to vector register offset fields. | |
9521 | * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Remove assignment to | |
9522 | vector register offset fields. | |
9523 | * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Remove | |
9524 | initializers for vector register offset fields. | |
9525 | (rs6000_aix64_reg_offsets): Likewise. | |
9526 | * rs6000-tdep.c (ppc_vrreg_offset): Remove. | |
9527 | (ppc_supply_vrregset): Remove. | |
9528 | (ppc_collect_vrregset): Remove. | |
9529 | * ppc-linux-tdep.c (ppc_linux_collect_vrregset): New function. | |
9530 | (ppc_linux_vrregset) : New function. | |
9531 | (ppc32_le_linux_vrregmap, ppc32_be_linux_vrregmap) | |
9532 | (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): New globals. | |
9533 | (ppc32_linux_vrregset): Remove. | |
9534 | (ppc_linux_iterate_over_regset_sections): Call ppc_linux_vrregset | |
9535 | and use result instead of ppc32_linux_vrregset. | |
9536 | (ppc32_linux_reg_offsets): Remove initializers for vector register | |
9537 | offset fields. | |
9538 | (ppc64_linux_reg_offsets): Likewise. | |
9539 | * ppc-linux-tdep.h (ppc_linux_vrregset): New declaration. | |
9540 | * ppc-linux-nat.c: Include regset.h. | |
9541 | (gdb_vrregset_t): Adjust comment to account for little-endian | |
9542 | mode. | |
9543 | (supply_vrregset, fill_vrregset): Remove. | |
9544 | (fetch_altivec_register, store_altivec_register): Remove. | |
9545 | (fetch_altivec_registers): Add regno parameter. Get regset using | |
9546 | ppc_linux_vrregset. Use regset to supply registers. | |
9547 | (store_altivec_registers): Add regno parameter. Get regset using | |
9548 | ppc_linux_vrregset. Use regset to collect registers. | |
9549 | (fetch_register): Call fetch_altivec_registers instead of | |
9550 | fetch_altivec_register. | |
9551 | (store_register): Call store_altivec_registers instead of | |
9552 | store_altivec_register. | |
9553 | (fetch_ppc_registers): Call fetch_altivec_registers with -1 for | |
9554 | the new regno parameter. | |
9555 | (store_ppc_registers): Call store_altivec_registers with -1 for | |
9556 | the new regno parameter. | |
9557 | ||
d078308a PFC |
9558 | 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com> |
9559 | ||
9560 | * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_VRREGSET) | |
9561 | (PPC_LINUX_SIZEOF_VSXREGSET): Define. | |
9562 | * ppc-linux-nat.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove. | |
9563 | (gdb_vrregset_t): Change array type size to | |
9564 | PPC_LINUX_SIZEOF_VRREGSET. | |
9565 | (gdb_vsxregset_t): Change array type size to | |
9566 | PPC_LINUX_SIZEOF_VSXREGSET. | |
9567 | * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections): | |
9568 | Change integer literals to PPC_LINUX_SIZEOF_VRREGSET and | |
9569 | PPC_LINUX_SIZEOF_VSXREGSET. | |
9570 | ||
2e077f5e PFC |
9571 | 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com> |
9572 | ||
9573 | * configure.nat <linux powerpc>: Add ppc-linux.o to NATDEPFILES. | |
9574 | * ppc-linux-nat.c (ppc_linux_target_wordsize): Move to | |
9575 | nat/ppc-linux.c. | |
9576 | (ppc_linux_nat_target::auxv_parse): Get thread id tid. Call | |
9577 | ppc_linux_target_wordsize with tid. | |
9578 | (ppc_linux_nat_target::read_description): Call ppc_linux_target | |
9579 | wordsize with tid. | |
9580 | * nat/ppc-linux.c: Include nat/gdb_ptrace.h. | |
9581 | (ppc64_64bit_inferior_p): Add static and inline specifiers. | |
9582 | (ppc_linux_target_wordsize): Move here from ppc-linux-nat.c. Add | |
9583 | tid parameter. Remove static specifier. | |
9584 | * nat/ppc-linux.h (ppc64_64bit_inferior_p): Remove declaration. | |
9585 | (ppc_linux_target_wordsize): New declaration. | |
9586 | ||
bd64614e PFC |
9587 | 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com> |
9588 | ||
9589 | * arch/ppc-linux-common.c: New file. | |
9590 | * arch/ppc-linux-common.h: New file. | |
9591 | * arch/ppc-linux-tdesc.h: New file. | |
9592 | * configure.tgt (powerpc*-*-linux*): Add arch/ppc-linux-common.o. | |
9593 | * Makefile.in (ALL_TARGET_OBS): Add arch/ppc-linux-common.o. | |
9594 | (HFILES_NO_SRCDIR): Add arch/ppc-linux-common.h and | |
9595 | arch/ppc-linux-tdesc.h. | |
9596 | * ppc-linux-nat.c: Include arch/ppc-linux-common.h and | |
9597 | arch/ppc-linux-tdesc.h. | |
9598 | (ppc_linux_nat_target::read_description): Remove target | |
9599 | description matching code. Fill a ppc_linux_features struct and | |
9600 | call ppc_linux_match_description with it. Move comment about ISA | |
9601 | 2.05 to ppc-linux-common.c. | |
9602 | * ppc-linux-tdep.c: Include arch/ppc-linux-common.h and | |
9603 | arch/ppc-linux-tdesc.h. | |
9604 | (ppc_linux_core_read_description): Remove target description | |
9605 | matching code. Fill a ppc_linux_features struct and call | |
9606 | ppc_linux_match_description with it. | |
9607 | * ppc-linux-tdep.h (tdesc_powerpc_32l, tdesc_powerpc_64l) | |
9608 | (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l) | |
9609 | (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l) | |
9610 | (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l) | |
9611 | (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l) | |
9612 | (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l) | |
9613 | (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l) | |
9614 | (tdesc_powerpc_e500l): Remove. | |
9615 | ||
241db429 JB |
9616 | 2018-05-22 Joel Brobecker <brobecker@adacore.com> |
9617 | ||
9618 | * ada-lang.c (catch_assert_command): Pass empty string instead | |
9619 | of NULL for excep_string argument. | |
9620 | ||
75d74cca MR |
9621 | 2018-05-22 Maciej W. Rozycki <macro@mips.com> |
9622 | ||
9623 | * mips-linux-nat.c (mips64_linux_register_addr): Return -1 if | |
9624 | the width of the requested register exceeds the width of the | |
9625 | `ptrace' data type. | |
9626 | ||
122b53ea TT |
9627 | 2018-05-21 Tom Tromey <tom@tromey.com> |
9628 | ||
9629 | * printcmd.c (output_command): Remove. | |
9630 | (output_command_const): Rename to output_command. | |
9631 | * valprint.h (output_command): Rename from output_command_const. | |
9632 | * tracepoint.c (trace_dump_actions): Call output_command. | |
9633 | ||
bc18fbb5 TT |
9634 | 2018-05-21 Tom Tromey <tom@tromey.com> |
9635 | ||
9636 | * mi/mi-cmd-catch.c (mi_cmd_catch_assert) | |
9637 | (mi_cmd_catch_exception, mi_cmd_catch_handlers): Update. | |
9638 | * ada-lang.h (create_ada_exception_catchpoint): Update. | |
9639 | * ada-lang.c (struct ada_catchpoint) <excep_string>: Now a | |
9640 | std::string. | |
9641 | (create_excep_cond_exprs, ~ada_catchpoint) | |
9642 | (should_stop_exception, print_one_exception) | |
9643 | (print_mention_exception, print_recreate_exception): Update. | |
9644 | (ada_get_next_arg): Remove. | |
9645 | (catch_ada_exception_command_split): Use std::string. Change type | |
9646 | of "excep_string", "cond_string". | |
9647 | (catch_ada_exception_command): Update. | |
9648 | (create_ada_exception_catchpoint): Change type of excep_string. | |
9649 | (ada_exception_sal): Remove excep_string parameter. | |
9650 | (~ada_catchpoint): Remove. | |
9651 | ||
790217f6 TT |
9652 | 2018-05-21 Tom Tromey <tom@tromey.com> |
9653 | ||
9654 | * ada-lang.c (ada_collect_symbol_completion_matches): Remove | |
9655 | cleanup. | |
9656 | ||
6f46ac85 TT |
9657 | 2018-05-21 Tom Tromey <tom@tromey.com> |
9658 | ||
9659 | * ada-lang.c (ada_exception_message_1, ada_exception_message): | |
9660 | Return unique_xmalloc_ptr. | |
9661 | (print_it_exception): Update. | |
9662 | ||
15b6611c TT |
9663 | 2018-05-21 Tom Tromey <tom@tromey.com> |
9664 | ||
9665 | * tracepoint.c (trace_dump_actions): Use std::string. | |
9666 | ||
c0c9f665 TT |
9667 | 2018-05-21 Tom Tromey <tom@tromey.com> |
9668 | ||
9669 | * symfile.c (reread_symbols): Use std::string for original_name. | |
9670 | ||
22ca247e TT |
9671 | 2018-05-21 Tom Tromey <tom@tromey.com> |
9672 | ||
9673 | * dwarf2read.c (dwarf2_read_debug_names): Use std::unique_ptr. | |
9674 | (mapped_index_base): Use DISABLE_COPY_AND_ASSIGN. Default | |
9675 | constructor. | |
9676 | ||
184cde75 SM |
9677 | 2018-05-20 Simon Marchi <simon.marchi@polymtl.ca> |
9678 | ||
9679 | * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Rename the wrong | |
9680 | instance to... | |
9681 | (HAVE_IS_TRIVIALLY_CONSTRUCTIBLE): ... this. | |
9682 | * objfiles.c (get_objfile_bfd_data): Allocate | |
9683 | objfile_per_bfd_storage with obstack_new when allocating on | |
9684 | obstack. | |
9685 | ||
e39db4db SM |
9686 | 2018-05-20 Simon Marchi <simon.marchi@ericsson.com> |
9687 | ||
9688 | * ada-lang.c (cache_symbol): Use XOBNEW and/or XOBNEWVEC and/or | |
9689 | OBSTACK_ZALLOC. | |
9690 | * dwarf2-frame.c (dwarf2_build_frame_info): Likewise. | |
9691 | * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise. | |
9692 | * mdebugread.c (mdebug_build_psymtabs): Likewise. | |
9693 | (add_pending): Likewise. | |
9694 | (parse_symbol): Likewise. | |
9695 | (parse_partial_symbols): Likewise. | |
9696 | (psymtab_to_symtab_1): Likewise. | |
9697 | (new_psymtab): Likewise. | |
9698 | (elfmdebug_build_psymtabs): Likewise. | |
9699 | * minsyms.c (terminate_minimal_symbol_table): Likewise. | |
9700 | * objfiles.c (get_objfile_bfd_data): Likewise. | |
9701 | (objfile_register_static_link): Likewise. | |
9702 | * psymtab.c (allocate_psymtab): Likewise. | |
9703 | * stabsread.c (read_member_functions): Likewise. | |
9704 | * xcoffread.c (xcoff_end_psymtab): Likewise. | |
9705 | ||
284a0e3c SM |
9706 | 2018-05-20 Simon Marchi <simon.marchi@ericsson.com> |
9707 | ||
9708 | * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Define if | |
9709 | compiler supports std::is_trivially_constructible. | |
9710 | * common/poison.h: Include obstack.h. | |
9711 | (IsMallocable): Define to is_trivially_constructible if the | |
9712 | compiler supports it, define to true_type otherwise. | |
9713 | (xobnew): New. | |
9714 | (XOBNEW): Redefine. | |
9715 | (xobnewvec): New. | |
9716 | (XOBNEWVEC): Redefine. | |
9717 | * gdb_obstack.h (obstack_zalloc): New. | |
9718 | (OBSTACK_ZALLOC): Redefine. | |
9719 | (obstack_calloc): New. | |
9720 | (OBSTACK_CALLOC): Redefine. | |
9721 | (obstack_new): New. | |
9722 | * gdbarch.sh: Include gdb_obstack in gdbarch.h. | |
9723 | (gdbarch_obstack): New declaration in gdbarch.h, definition in | |
9724 | gdbarch.c. | |
9725 | (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Use | |
9726 | obstack_calloc/obstack_zalloc. | |
9727 | (gdbarch_obstack_zalloc): Remove. | |
9728 | * target-descriptions.c (tdesc_data_init): Use obstack_new. | |
9729 | ||
59f66be3 PW |
9730 | 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
9731 | ||
9732 | * stack.c (backtrace_command_1): Remove useless variable int i. | |
9733 | ||
50c65c2d PW |
9734 | 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
9735 | ||
9736 | * stack.c (print_frame_info): Fix comment. | |
9737 | ||
7ff8cb8c TT |
9738 | 2018-05-18 Tom Tromey <tom@tromey.com> |
9739 | ||
9740 | * dwarf2read.c (struct dwz_file): Add constructor, initializers. | |
9741 | <dwz_bfd>: Now a gdb_bfd_ref_ptr. | |
9742 | (~dwarf2_per_objfile): Update | |
9743 | (dwarf2_get_dwz_file): Use new. | |
9744 | * dwarf2read.h (struct dwarf2_per_objfile) <dwz_file>: Now a | |
9745 | unique_ptr. | |
9746 | ||
400174b1 TT |
9747 | 2018-05-18 Tom Tromey <tom@tromey.com> |
9748 | ||
9749 | * dwarf2read.h (struct dwarf2_per_objfile) <dwp_file>: Now a | |
9750 | unique_ptr. | |
9751 | * dwarf2read.c (struct dwp_file): Add constructor and | |
9752 | initializers. | |
9753 | (open_and_init_dwp_file): Return a unique_ptr. | |
9754 | (dwarf2_per_objfile, create_dwp_hash_table) | |
9755 | (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2) | |
9756 | (lookup_dwo_unit_in_dwp): Update. | |
9757 | (open_and_init_dwp_file, get_dwp_file): Update. | |
9758 | ||
3063847f TT |
9759 | 2018-05-18 Tom Tromey <tom@tromey.com> |
9760 | ||
9761 | * dwarf2read.c (dwarf2_per_objfile): Update. | |
9762 | (struct mapped_index): Add initializers. | |
9763 | (dwarf2_read_index): Use new. | |
9764 | (dw2_symtab_iter_init): Update. | |
9765 | * dwarf2read.h (struct dwarf2_per_objfile) <index_table>: Now a | |
9766 | unique_ptr. | |
9767 | ||
d3d02dee SM |
9768 | 2018-05-18 Simon Marchi <simon.marchi@ericsson.com> |
9769 | ||
9770 | * dwarf2read.c (mapped_index) <total_size>: Remove. | |
9771 | ||
1d143c36 SM |
9772 | 2018-05-18 Simon Marchi <simon.marchi@ericsson.com> |
9773 | ||
9774 | * unittests/format_pieces-selftests.c (test_format_specifier): | |
9775 | Add ARI comments. | |
9776 | ||
ce1e8424 TT |
9777 | 2018-05-18 Tom Tromey <tom@tromey.com> |
9778 | ||
9779 | * c-typeprint.c (maybe_print_hole): New function. | |
9780 | (c_print_type_struct_field_offset): Update. | |
9781 | (c_type_print_base_struct_union): Call maybe_print_hole. | |
9782 | ||
ddfe970e KS |
9783 | 2018-05-17 Keith Seitz <keiths@redhat.com> |
9784 | ||
9785 | * breakpoint.c (build_bpstat_chain): New function, moved from | |
9786 | bpstat_stop_status. | |
9787 | (bpstat_stop_status): Add optional parameter, `stop_chain'. | |
9788 | If no stop chain is passed, call build_bpstat_chain to build it. | |
9789 | * breakpoint.h (build_bpstat_chain): Declare. | |
9790 | (bpstat_stop_status): Move documentation here from breakpoint.c. | |
9791 | * infrun.c (handle_signal_stop): Before eliding inlined frames, | |
9792 | build the stop chain and pass it to skip_inline_frames. | |
9793 | Pass this stop chain to bpstat_stop_status. | |
9794 | * inline-frame.c: Include breakpoint.h. | |
9795 | (stopped_by_user_bp_inline_frame): New function. | |
9796 | (skip_inline_frames): Add parameter `stop_chain'. | |
9797 | Move documention to inline-frame.h. | |
9798 | If non-NULL, use stopped_by_user_bp_inline_frame to determine | |
9799 | whether the frame should be elided. | |
9800 | * inline-frame.h (skip_inline_frames): Add parameter `stop_chain'. | |
9801 | Add moved documentation and update for new parameter. | |
9802 | ||
b17992c1 SM |
9803 | 2018-05-17 Simon Marchi <simon.marchi@ericsson.com> |
9804 | ||
9805 | PR cli/14975 | |
9806 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add | |
9807 | unittests/format_pieces-selftests.c. | |
9808 | * common/format.h (format_piece) <operator==>: New. | |
9809 | (format_pieces) <operator[]>: Remove. | |
9810 | * common/format.c (format_pieces::format_pieces): Handle \e. | |
9811 | * unittests/format_pieces-selftests.c: New. | |
9812 | ||
58f0c718 TT |
9813 | 2018-05-17 Tom Tromey <tom@tromey.com> |
9814 | ||
9815 | PR symtab/23010: | |
9816 | * dwarf2read.c (load_cu, dw2_do_instantiate_symtab) | |
9817 | (dw2_instantiate_symtab): Add skip_partial parameter. | |
9818 | (dw2_find_last_source_symtab, dw2_map_expand_apply) | |
9819 | (dw2_lookup_symbol, dw2_expand_symtabs_for_function) | |
9820 | (dw2_expand_all_symtabs, dw2_expand_symtabs_with_fullname) | |
9821 | (dw2_expand_symtabs_matching_one) | |
9822 | (dw2_find_pc_sect_compunit_symtab) | |
9823 | (dw2_debug_names_lookup_symbol) | |
9824 | (dw2_debug_names_expand_symtabs_for_function): Update. | |
9825 | (init_cutu_and_read_dies): Add skip_partial parameter. | |
9826 | (process_psymtab_comp_unit, build_type_psymtabs_1) | |
9827 | (process_skeletonless_type_unit, load_partial_comp_unit) | |
9828 | (psymtab_to_symtab_1): Update. | |
9829 | (load_full_comp_unit): Add skip_partial parameter. | |
9830 | (process_imported_unit_die, dwarf2_read_addr_index) | |
9831 | (follow_die_offset, dwarf2_fetch_die_loc_sect_off) | |
9832 | (dwarf2_fetch_constant_bytes, dwarf2_fetch_die_type_sect_off) | |
9833 | (read_signatured_type): Update. | |
9834 | ||
3e618834 SM |
9835 | 2018-05-17 Simon Marchi <simon.marchi@ericsson.com> |
9836 | ||
9837 | * value.c (release_value): Remove unused variable. | |
9838 | (record_latest_value): Likewise. | |
9839 | (access_value_history): Likewise. | |
9840 | (preserve_values): Likewise. | |
9841 | ||
fe10fe31 TT |
9842 | 2018-05-17 Tom Tromey <tom@tromey.com> |
9843 | ||
9844 | * extension.h (struct ext_lang_type_printers) <py_type_printers>: | |
9845 | Initialize. | |
9846 | ||
1d761124 MR |
9847 | 2018-05-16 Maciej W. Rozycki <macro@mips.com> |
9848 | ||
9849 | PR gdb/22286 | |
9850 | * linux-nat-trad.c (linux_nat_trad_target::fetch_register): | |
9851 | Also handle registers whose width is not a multiple of | |
9852 | PTRACE_TYPE_RET. | |
9853 | (linux_nat_trad_target::store_register): Likewise. | |
9854 | ||
06333fea TT |
9855 | 2018-05-16 Tom Tromey <tom@tromey.com> |
9856 | ||
9857 | * gdbcore.h (core_bfd): Redefine. | |
9858 | * corelow.c (core_target::close): Update. | |
9859 | (core_target_open): Update. | |
9860 | * progspace.h (struct program_space) <cbfd>: Now a | |
9861 | gdb_bfd_ref_ptr. | |
9862 | ||
921222e2 TT |
9863 | 2018-05-16 Tom Tromey <tom@tromey.com> |
9864 | ||
9865 | PR cli/19551: | |
9866 | * symfile-add-flags.h (enum symfile_add_flags) | |
9867 | <SYMFILE_NOT_FILENAME>: New constant. | |
9868 | * symfile.c (read_symbols): Use SYMFILE_NOT_FILENAME. Get | |
9869 | objfile name from BFD. | |
9870 | (symbol_file_add_with_addrs): Check SYMFILE_NOT_FILENAME. | |
9871 | * minidebug.c (find_separate_debug_file_in_section): Put | |
9872 | ".gnu_debugdata" into BFD's file name. | |
9873 | ||
3acb7083 SM |
9874 | 2018-05-16 Simon Marchi <simon.marchi@ericsson.com> |
9875 | ||
9876 | * regcache.c (regcache_read_ftype, regcache_write_ftype): | |
9877 | Remove. | |
9878 | ||
561a72d4 TC |
9879 | 2018-05-15 Tamar Christina <tamar.christina@arm.com> |
9880 | ||
9881 | PR binutils/21446 | |
9882 | * aarch64-tdep.c (aarch64_analyze_prologue, | |
9883 | aarch64_software_single_step, aarch64_displaced_step_copy_insn): | |
9884 | Indicate not interested in errors. | |
9885 | ||
4e6ff0e1 MR |
9886 | 2018-05-15 Maciej W. Rozycki <macro@mips.com> |
9887 | ||
9888 | * mips-linux-nat.c (mips_linux_nat_target::fetch_registers): | |
9889 | Supply the MIPS_ZERO_REGNUM register. | |
9890 | ||
ea33cd92 MR |
9891 | 2018-05-15 Maciej W. Rozycki <macro@mips.com> |
9892 | ||
9893 | * mips-tdep.c (mask_address_var): Make variable static. | |
9894 | ||
2d79090e TT |
9895 | 2018-05-14 Tom Tromey <tom@tromey.com> |
9896 | ||
9897 | * dwarf2read.c (rust_union_quirks): Clear rust_unions. | |
9898 | ||
cf4912ae AB |
9899 | 2018-05-11 Andrew Burgess <andrew.burgess@embecosm.com> |
9900 | ||
9901 | * i387-tdep.c (i387_collect_xsave): Use FXSAVE_MXCSR_ADDR not | |
9902 | FXSAVE_ADDR for the mxcsr register. | |
9903 | ||
67e6f569 MF |
9904 | 2018-05-11 Max Filippov <jcmvbkbc@gmail.com> |
9905 | ||
9906 | * configure.tgt (xtensa*-*-linux*): Drop gdb_target definition. | |
9907 | ||
15244507 PA |
9908 | 2018-05-11 Pedro Alves <palves@redhat.com> |
9909 | ||
9910 | * corelow.c (core_target) <core_target>: No longer inline. | |
9911 | Initialize m_core_gdbarch, m_core_vec and build the section table | |
9912 | here. | |
9913 | <~core_target>: New. | |
9914 | <core_gdbarch, get_core_register_section>: New methods. | |
9915 | <m_core_section_table, m_core_vec, m_core_gdbarch>: New fields, | |
9916 | factored out from ... | |
9917 | <core_data, core_vec, core_gdbarch>: ... these deleted globals. | |
9918 | (core_ops): Delete. | |
9919 | (sniff_core_bfd): Add gdbarch parameter. | |
9920 | (core_close): Delete, merged into ... | |
9921 | (core_target::close): ... here. Delete self. | |
9922 | (core_close_cleanup): Delete. | |
9923 | (core_target_open): Allocate a core_target on the heap. Use a | |
9924 | unique_ptr instead of a cleanup. Bits moved into the core_target | |
9925 | ctor. Adjust to use core_target methods instead of globals. | |
9926 | (get_core_register_section): Rename to ... | |
9927 | (core_target::get_core_register_section): ... this and adjust. | |
9928 | (struct get_core_registers_cb_data): New. | |
9929 | (get_core_registers_cb): Use it. Use bool. | |
9930 | (core_target::fetch_registers, core_target::files_info) | |
9931 | (core_target::xfer_partial, core_target::read_description) | |
9932 | (core_target::pid_to, core_target::thread_name): Adjust to | |
9933 | reference class fields instead of globals. | |
9934 | * target.h (struct target_ops_deleter, target_ops_up): New. | |
9935 | ||
451953fa PA |
9936 | 2018-05-11 Pedro Alves <palves@redhat.com> |
9937 | ||
9938 | * corefile.c (core_file_command): Move to corelow.c. | |
9939 | * corelow.c (the_core_target): Delete. | |
9940 | (core_file_command): Moved from corefile.c. Check exec_bfd | |
9941 | instead of the_core_target. Use target_detach instead of calling | |
9942 | into the_core_target directly. | |
9943 | (maybe_say_no_core_file_now): New. | |
9944 | (core_target::detach): Use it. | |
9945 | (_initialize_corelow): Remove references to the_core_target. | |
9946 | * gdbcore.h (the_core_target): Delete. | |
9947 | ||
e540a5a2 | 9948 | 2018-05-11 Tom Tromey <tromey@redhat.com> |
3afc23a6 | 9949 | Pedro Alves <palves@redhat.com> |
e540a5a2 TT |
9950 | |
9951 | * corefile.c (core_bfd): Remove. | |
9952 | * gdbcore.h (core_bfd): Now a macro. | |
9953 | * progspace.h (struct program_space) <cbfd>: New field. | |
9954 | ||
633cf254 TT |
9955 | 2018-05-11 Tom Tromey <tom@tromey.com> |
9956 | ||
9957 | * mdebugread.c (parse_partial_symbols, psymtab_to_symtab_1): Use | |
9958 | gdb::def_vector. | |
9959 | ||
1a34f210 TT |
9960 | 2018-05-10 Tom Tromey <tom@tromey.com> |
9961 | ||
9962 | * configure: Rebuild. | |
9963 | * warning.m4 (AM_GDB_WARNINGS): Use -Wimplicit-fallthrough=3. | |
9964 | ||
190852c8 JB |
9965 | 2018-05-10 Joel Brobecker <brobecker@adacore.com> |
9966 | ||
9967 | PR server/23158: | |
9968 | * regformats/regdat.sh: Adjust script, following the addition | |
9969 | of the new expedite_regs parameter to init_target_desc. | |
9970 | ||
8727de56 OJ |
9971 | 2018-05-10 Omair Javaid <omair.javaid@linaro.org> |
9972 | ||
9973 | PR gdb/23127 | |
9974 | * aarch64-linux-tdep.c (aarch64_linux_init_abi): Add call to | |
9975 | set_gdbarch_significant_addr_bit. | |
9976 | * aarch64-tdep.c (aarch64_gdbarch_init): Remove call to | |
9977 | set_gdbarch_significant_addr_bit. | |
9978 | * utils.c (address_significant): Update to sign extend addr. | |
9979 | ||
37d9e062 MF |
9980 | 2018-05-09 Max Filippov <jcmvbkbc@gmail.com> |
9981 | ||
9982 | * xtensa-linux-tdep.c (xtensa-tdep.h): New include. | |
9983 | (xtensa_linux_init_abi): Limit tdep->num_regs by | |
9984 | tdep->num_nopriv_regs. | |
9985 | * xtensa-tdep.c (xtensa_derive_tdep): Calculate | |
9986 | tdep->num_nopriv_regs and only copy it to tdep->num_regs if it's | |
9987 | not initialized. | |
9988 | ||
7402fbca SM |
9989 | 2018-05-08 Simon Marchi <simon.marchi@ericsson.com> |
9990 | ||
9991 | * unittests/string_view-selftests.c: Define GNULIB_NAMESPACE. | |
9992 | ||
8ee22052 AB |
9993 | 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com> |
9994 | ||
9995 | * common/x86-xstate.h (I387_FCTRL_INIT_VAL): New constant. | |
9996 | (I387_MXCSR_INIT_VAL): New constant. | |
9997 | * amd64-tdep.c (amd64_supply_xsave): Only read state from xsave | |
9998 | buffer if it was supplied by the inferior. | |
9999 | * i387-tdep.c (i387_supply_fsave): Use I387_MXCSR_INIT_VAL. | |
10000 | (i387_xsave_get_clear_bv): New function. | |
10001 | (i387_supply_xsave): Only read x87 control registers from the | |
10002 | xsave buffer if the feature is enabled, and the state will have | |
10003 | been written, otherwise, provide a suitable default. | |
10004 | (i387_collect_xsave): Pre-clear all registers in xsave buffer, | |
10005 | including x87 control registers. Update control registers if they | |
10006 | have changed from the default value, and mark features as enabled | |
10007 | as required. | |
10008 | * i387-tdep.h (i387_xsave_get_clear_bv): Declare. | |
10009 | ||
968ae51b UW |
10010 | 2018-05-08 Ulrich Weigand <uweigand@de.ibm.com> |
10011 | ||
10012 | * spu-tdep.c (info_spu_event_command): Fix output formatting. | |
10013 | ||
aff689d3 TT |
10014 | 2018-05-07 Tom Tromey <tom@tromey.com> |
10015 | ||
10016 | * configure: Rebuild. | |
10017 | * warning.m4 (AM_GDB_WARNINGS): Add -Wduplicated-cond. | |
10018 | ||
ce887586 TT |
10019 | 2018-05-07 Tom Tromey <tom@tromey.com> |
10020 | ||
10021 | PR tdep/20362: | |
10022 | * arm-tdep.c (arm_record_vfp_data_proc_insn): Properly mask off D | |
10023 | bit. Use correct value for VDIV. | |
10024 | ||
85e26832 TT |
10025 | 2018-05-04 Tom Tromey <tom@tromey.com> |
10026 | ||
10027 | * configure: Rebuild. | |
10028 | * warning.m4 (AM_GDB_WARNINGS): Add -Wimplicit-fallthrough. | |
10029 | ||
449b1ac7 TT |
10030 | 2018-05-04 Tom Tromey <tom@tromey.com> |
10031 | ||
10032 | * linux-record.c (record_linux_system_call) <case | |
10033 | RECORD_SYS_RECVFROM>: Add "break". | |
10034 | ||
15c9ffd6 TT |
10035 | 2018-05-04 Tom Tromey <tom@tromey.com> |
10036 | ||
10037 | * mi/mi-main.c (mi_cmd_trace_frame_collected) <REGISTERS_FORMAT>: | |
10038 | Add missing "break". | |
10039 | * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals) <NO_FRAME_FILTERS>: | |
10040 | Add missing "break". | |
10041 | ||
e3829d13 TT |
10042 | 2018-05-04 Tom Tromey <tom@tromey.com> |
10043 | ||
10044 | * rs6000-tdep.c (ppc_process_record_op4) | |
10045 | (ppc_process_record_op63): Add fall-through comment. | |
10046 | ||
da0e1563 TT |
10047 | 2018-05-04 Tom Tromey <tom@tromey.com> |
10048 | ||
10049 | * i386-tdep.c (i386_process_record): Add fall-through comment. | |
10050 | ||
0019cd49 TT |
10051 | 2018-05-04 Tom Tromey <tom@tromey.com> |
10052 | ||
10053 | * stabsread.c (define_symbol) <case 'p'>: Add fall-through | |
10054 | comment. | |
10055 | ||
565e0eda TT |
10056 | 2018-05-04 Tom Tromey <tom@tromey.com> |
10057 | ||
10058 | * riscv-tdep.c (riscv_isa_xlen): Add fall-through comment. | |
10059 | * utils.c (can_dump_core) <LIMIT_CUR>: Add fall-through comment. | |
10060 | * eval.c (fetch_subexp_value) <MEMORY_ERROR>: Add fall-through | |
10061 | comment. | |
10062 | * d-valprint.c (d_val_print) <TYPE_CODE_STRUCT>: Add fall-through | |
10063 | comment. | |
10064 | * coffread.c (coff_symtab_read) <C_LABEL>: Add fall-through | |
10065 | comment. | |
10066 | ||
621846f4 TT |
10067 | 2018-05-04 Tom Tromey <tom@tromey.com> |
10068 | ||
10069 | * dwarf2loc.c (unimplemented): Add ATTRIBUTE_NORETURN. | |
10070 | ||
86a73007 TT |
10071 | 2018-05-04 Tom Tromey <tom@tromey.com> |
10072 | ||
10073 | * s390-tdep.c (s390_process_record): Fix fall-through comments. | |
10074 | * xcoffread.c (scan_xcoff_symtab): Move comment later. | |
10075 | * symfile.c (section_is_mapped): Fix fall-through comment. | |
10076 | * stabsread.c (define_symbol, read_member_functions): Fix | |
10077 | fall-through comment. | |
10078 | * s390-linux-tdep.c (s390_process_record): Fix fall-through | |
10079 | comment. | |
10080 | * remote.c (remote_wait_as): Fix fall-through comment. | |
10081 | * p-exp.y (yylex): Fix fall-through comment. | |
10082 | * nat/x86-dregs.c (x86_length_and_rw_bits): Fix fall-through | |
10083 | comment. | |
10084 | * msp430-tdep.c (msp430_gdbarch_init): Fix fall-through comment. | |
10085 | * mdebugread.c (parse_partial_symbols): Fix fall-through comment. | |
10086 | * jv-exp.y (yylex): Fix fall-through comment. | |
10087 | * go-exp.y (lex_one_token): Fix fall-through comment. | |
10088 | * gdbtypes.c (get_discrete_bounds, rank_one_type): Fix | |
10089 | fall-through comment. | |
10090 | * f-exp.y (yylex): Fix fall-through comment. | |
10091 | * dwarf2read.c (process_die): Fix fall-through comments. | |
10092 | * dbxread.c (process_one_symbol): Fix fall-through comment. | |
10093 | * d-exp.y (lex_one_token): Fix fall-through comment. | |
10094 | * cp-name-parser.y (yylex): Fix fall-through comment. | |
10095 | * coffread.c (coff_symtab_read): Fix fall-through comment. | |
10096 | * c-exp.y (lex_one_token): Fix fall-through comment. | |
10097 | * arm-tdep.c (arm_decode_miscellaneous): Fix fall-through | |
10098 | comment. | |
10099 | * arch/arm.c (arm_instruction_changes_pc): Fix fall-through | |
10100 | comment. | |
10101 | ||
56bcdbea TT |
10102 | 2018-05-04 Tom Tromey <tom@tromey.com> |
10103 | ||
10104 | PR python/22730: | |
10105 | * NEWS: Mention gdb.execute change. | |
10106 | * gdbcmd.h (execute_control_command): Don't declare. | |
10107 | * python/python.c (execute_gdb_command): Use read_command_lines_1, | |
10108 | execute_control_commands, execute_control_commands_to_string. | |
10109 | * cli/cli-script.h (execute_control_commands) | |
10110 | (execute_control_commands_to_string): Declare. | |
10111 | (execute_control_command): Add from_tty parameter. | |
10112 | * cli/cli-script.c (execute_control_commands) | |
10113 | (execute_control_commands_to_string): New functions. | |
10114 | (execute_user_command): Use execute_control_commands. | |
10115 | (execute_control_command_1): Add "from_tty" parameter. Update. | |
10116 | (execute_control_command): Likewise. | |
10117 | ||
a913fffb TT |
10118 | 2018-05-04 Tom Tromey <tom@tromey.com> |
10119 | ||
10120 | PR python/22731: | |
10121 | * NEWS: Mention that breakpoint commands are writable. | |
10122 | * python/py-breakpoint.c (bppy_set_commands): New function. | |
10123 | (breakpoint_object_getset) <"commands">: Use it. | |
10124 | ||
60b3cef2 TT |
10125 | 2018-05-04 Tom Tromey <tom@tromey.com> |
10126 | ||
10127 | * tracepoint.c (actions_command): Update. | |
10128 | * mi/mi-cmd-break.c (mi_command_line_array) | |
10129 | (mi_command_line_array_cnt, mi_command_line_array_ptr) | |
10130 | (mi_read_next_line): Remove. | |
10131 | (mi_cmd_break_commands): Update. | |
10132 | * cli/cli-script.h (read_command_lines, read_command_lines_1): Use | |
10133 | function_view. | |
10134 | * cli/cli-script.c (get_command_line): Update. | |
10135 | (process_next_line): Use function_view. Constify. | |
10136 | (recurse_read_control_structure, read_command_lines) | |
10137 | (read_command_lines_1): Change argument types to function_view. | |
10138 | (do_define_command, document_command): Update. | |
10139 | * breakpoint.h (check_tracepoint_command): Don't declare. | |
10140 | * breakpoint.c (check_tracepoint_command): Remove. | |
10141 | (commands_command_1, create_tracepoint_from_upload): Update. | |
10142 | ||
7a2c85f2 TT |
10143 | 2018-05-04 Tom Tromey <tom@tromey.com> |
10144 | ||
10145 | PR gdb/11750: | |
10146 | * cli/cli-script.h (enum command_control_type) <define_control>: | |
10147 | New constant. | |
10148 | * cli/cli-script.c (multi_line_command_p): Handle define_control. | |
10149 | (build_command_line, execute_control_command_1) | |
10150 | (process_next_line): Likewise. | |
10151 | (do_define_command): New function, extracted from define_command. | |
10152 | (define_command): Use it. | |
10153 | ||
295dc222 TT |
10154 | 2018-05-04 Tom Tromey <tom@tromey.com> |
10155 | ||
10156 | * tracepoint.c (actions_command): Update. | |
10157 | * cli/cli-script.h (read_command_lines): Update. | |
10158 | * cli/cli-script.c (read_command_lines): Constify prompt_arg. | |
10159 | (MAX_TMPBUF): Remove define. | |
10160 | (define_command): Use string_printf. | |
10161 | (document_command): Likewise. | |
10162 | * breakpoint.c (commands_command_1): Update. | |
10163 | ||
1263a9d5 TT |
10164 | 2018-05-04 Tom Tromey <tom@tromey.com> |
10165 | ||
10166 | * top.c (execute_command): Update. | |
10167 | * cli/cli-script.h (print_command_lines): Now varargs. | |
10168 | * cli/cli-script.c (print_command_lines): Now varargs. | |
10169 | (execute_control_command_1) <case while_control, case if_control>: | |
10170 | Update. | |
10171 | ||
12973681 TT |
10172 | 2018-05-04 Tom Tromey <tom@tromey.com> |
10173 | ||
10174 | * tracepoint.c (all_tracepoint_actions): Rename from | |
10175 | all_tracepoint_actions_and_cleanup. Change return type. | |
10176 | (actions_command, encode_actions_1, encode_actions) | |
10177 | (trace_dump_actions, tdump_command): Update. | |
10178 | * remote.c (remote_download_command_source): Update. | |
10179 | * python/python.c (gdbpy_eval_from_control_command) | |
10180 | (python_command, python_interactive_command): Update. | |
10181 | * mi/mi-cmd-break.c (mi_cmd_break_commands): Update. | |
10182 | * guile/guile.c (guile_command) | |
10183 | (gdbscm_eval_from_control_command, guile_command): Update. | |
10184 | * compile/compile.c (compile_code_command) | |
10185 | (compile_print_command, compile_to_object): Update. | |
10186 | * cli/cli-script.h (struct command_lines_deleter): New. | |
10187 | (counted_command_line): New typedef. | |
10188 | (struct command_line): Add constructor, destructor. | |
10189 | <body_list>: Remove. | |
10190 | <body_list_0, body_list_1>: New members. | |
10191 | (command_line_up): Remove typedef. | |
10192 | (read_command_lines, read_command_lines_1, get_command_line): | |
10193 | Update. | |
10194 | (copy_command_lines): Don't declare. | |
10195 | * cli/cli-script.c (build_command_line): Use "new". | |
10196 | (get_command_line): Return counted_command_line. | |
10197 | (print_command_lines, execute_user_command) | |
10198 | (execute_control_command_1, while_command, if_command): Update. | |
10199 | (realloc_body_list): Remove. | |
10200 | (process_next_line, recurse_read_control_structure): Update. | |
10201 | (read_command_lines, read_command_lines_1): Return counted_command_line. | |
10202 | (free_command_lines): Use "delete". | |
10203 | (copy_command_lines): Remove. | |
10204 | (define_command, document_command, show_user_1): Update. | |
10205 | * cli/cli-decode.h (struct cmd_list_element) <user_commands>: Now | |
10206 | a counted_command_line. | |
10207 | * breakpoint.h (counted_command_line): Remove typedef. | |
10208 | (breakpoint_set_commands): Update. | |
10209 | * breakpoint.c (check_no_tracepoint_commands) | |
10210 | (validate_commands_for_breakpoint): Update. | |
10211 | (breakpoint_set_commands): Change commands to be a | |
10212 | counted_command_line. | |
10213 | (commands_command_1, update_dprintf_command_list) | |
10214 | (create_tracepoint_from_upload): Update. | |
10215 | ||
e2fc72e2 TT |
10216 | 2018-05-04 Tom Tromey <tom@tromey.com> |
10217 | ||
10218 | * cli/cli-decode.h (cmd_list_element): New constructor. | |
10219 | (~cmd_list_element): New destructor. | |
10220 | (struct cmd_list_element): Add initializers. | |
10221 | * cli/cli-decode.c (do_add_cmd): Use "new". | |
10222 | (delete_cmd): Use "delete". | |
10223 | ||
a3b60e45 JK |
10224 | 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com> |
10225 | Pedro Alves <palves@redhat.com> | |
10226 | ||
10227 | PR breakpoints/19806 and support for PR external/20207. | |
10228 | * NEWS: Mention Aarch64 watchpoint improvements. | |
10229 | * aarch64-linux-nat.c (aarch64_linux_stopped_data_address): Fix missed | |
10230 | watchpoints and PR external/20207 watchpoints. | |
10231 | * nat/aarch64-linux-hw-point.c | |
10232 | (kernel_supports_any_contiguous_range): New. | |
10233 | (aarch64_watchpoint_offset): New. | |
10234 | (aarch64_watchpoint_length): Support PR external/20207 watchpoints. | |
10235 | (aarch64_point_encode_ctrl_reg): New parameter offset, new asserts. | |
10236 | (aarch64_point_is_aligned): Support PR external/20207 watchpoints. | |
10237 | (aarch64_align_watchpoint): New parameters aligned_offset_p and | |
10238 | next_addr_orig_p. Support PR external/20207 watchpoints. | |
10239 | (aarch64_downgrade_regs): New. | |
10240 | (aarch64_dr_state_insert_one_point): New parameters offset and | |
10241 | addr_orig. | |
10242 | (aarch64_dr_state_remove_one_point): Likewise. | |
10243 | (aarch64_handle_breakpoint): Update caller. | |
10244 | (aarch64_handle_aligned_watchpoint): Likewise. | |
10245 | (aarch64_handle_unaligned_watchpoint): Support addr_orig and | |
10246 | aligned_offset. | |
10247 | (aarch64_linux_set_debug_regs): Remove const from state. Call | |
10248 | aarch64_downgrade_regs. | |
10249 | (aarch64_show_debug_reg_state): Print also dr_addr_orig_wp. | |
10250 | * nat/aarch64-linux-hw-point.h (DR_CONTROL_LENGTH): Rename to ... | |
10251 | (DR_CONTROL_MASK): ... this. | |
10252 | (struct aarch64_debug_reg_state): New field dr_addr_orig_wp. | |
10253 | (unsigned int aarch64_watchpoint_offset): New prototype. | |
10254 | (aarch64_linux_set_debug_regs): Remove const from state. | |
10255 | * utils.c (align_up, align_down): Move to ... | |
10256 | * common/common-utils.c (align_up, align_down): ... here. | |
10257 | * utils.h (align_up, align_down): Move to ... | |
10258 | * common/common-utils.h (align_up, align_down): ... here. | |
10259 | ||
05bc7456 JB |
10260 | 2018-05-04 Joel Brobecker <brobecker@adacore.com> |
10261 | ||
10262 | * sparc-tdep.c (sparc_structure_return_p): Re-implement to | |
10263 | match the ABI as summarized in GCC's gcc/config/sparc/sparc.c. | |
10264 | (sparc_arg_by_memory_p): Renamed from sparc_arg_on_registers_p. | |
10265 | Re-implement to match the ABI as summarized in GCC's | |
10266 | gcc/config/sparc/sparc.c. All callers updated. | |
10267 | (sparc32_store_arguments): Remove assertion. | |
10268 | ||
2f433492 TT |
10269 | 2018-05-04 Tom Tromey <tom@tromey.com> |
10270 | ||
10271 | * printcmd.c: Don't include tui.h. | |
10272 | (decode_format): Use skip_spaces. | |
10273 | ||
9be2ae8f TT |
10274 | 2018-05-04 Tom Tromey <tom@tromey.com> |
10275 | ||
10276 | PR gdb/22619: | |
10277 | * printcmd.c (last_count): New global. | |
10278 | (x_command): Use saved count when repeating. | |
10279 | ||
f0b3976b TT |
10280 | 2018-05-04 Tom Tromey <tom@tromey.com> |
10281 | ||
10282 | * nto-procfs.c (do_closedir_cleanup): Remove. | |
10283 | (procfs_pidlist): Use gdb_dir_up. | |
10284 | * procfs.c (do_closedir_cleanup): Remove. | |
10285 | (proc_update_threads): Use gdb_dir_up. | |
10286 | * common/filestuff.h (struct gdb_dir_deleter): New. | |
10287 | (gdb_dir_up): New typedef. | |
10288 | ||
862d101a TT |
10289 | 2018-05-04 Tom Tromey <tom@tromey.com> |
10290 | ||
10291 | * ada-lang.c (print_mention_exception): Use std::string. | |
10292 | ||
cb7de75e TT |
10293 | 2018-05-04 Tom Tromey <tom@tromey.com> |
10294 | ||
10295 | * ada-lang.c (create_excep_cond_exprs): Update. | |
10296 | (ada_exception_catchpoint_cond_string): Use std::string. | |
10297 | ||
49d83361 TT |
10298 | 2018-05-04 Tom Tromey <tom@tromey.com> |
10299 | ||
10300 | * ada-lang.c (xget_renaming_scope): Return std::string. | |
10301 | (old_renaming_is_invisible): Update. | |
10302 | ||
ade72a34 TT |
10303 | 2018-05-04 Tom Tromey <tom@tromey.com> |
10304 | ||
10305 | * bfd-target.c (target_bfd::m_bfd): Now a gdb_bfd_ref_ptr. | |
10306 | (target_bfd::target_bfd, target_bfd::~target_bfd): Update. | |
10307 | ||
2be4d7f0 UW |
10308 | 2018-05-04 Ulrich Weigand <uweigand@de.ibm.com> |
10309 | ||
10310 | * spu-linux-nat.c (spu_linux_nat_target::wait): Fix syntax error. | |
10311 | ||
69b6ecb0 TT |
10312 | 2018-05-04 Tom Tromey <tom@tromey.com> |
10313 | ||
10314 | * remote.c (remote_query_supported_append): Change type. | |
10315 | (remote_check_symbols): Update. | |
10316 | ||
bf27f0e2 PP |
10317 | 2018-05-04 Paul Pluzhnikov <ppluzhnikov@google.com> |
10318 | ||
10319 | PR gdb/11420 | |
10320 | * configure.ac: Prepend libpython. | |
10321 | * python/python-config.py: Likewise. | |
10322 | * configure: Regenerate. | |
10323 | ||
4ea17de8 SM |
10324 | 2018-05-03 Simon Marchi <simon.marchi@ericsson.com> |
10325 | ||
10326 | * Makefile.in (%.c: %.l): Use -t instead of --stdout. | |
10327 | ||
bd732259 PA |
10328 | 2018-05-03 Pedro Alves <palves@redhat.com> |
10329 | ||
10330 | * s390-linux-nat.c | |
10331 | (s390_linux_nat_target::have_continuable_watchpoint): Mark with | |
10332 | override. Write 'true' instead of '1'. | |
10333 | (s390_linux_nat_target::watchpoint_addr_within_range): Remove | |
10334 | declaration. | |
10335 | ||
d9f719f1 PA |
10336 | 2018-05-02 Pedro Alves <palves@redhat.com> |
10337 | ||
10338 | * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Use | |
10339 | add_inf_child_target. | |
10340 | * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Use | |
10341 | add_inf_child_target. | |
10342 | * aix-thread.c (aix_thread_target_info): New. | |
10343 | (aix_thread_target) <shortname, longname, doc>: Delete. | |
10344 | <info>: New. | |
10345 | * alpha-bsd-nat.c (_initialize_alphabsd_nat): Use | |
10346 | add_inf_child_target. | |
10347 | * alpha-linux-nat.c (_initialize_alpha_linux_nat): Use | |
10348 | add_inf_child_target. | |
10349 | * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Use | |
10350 | add_inf_child_target. | |
10351 | * amd64-linux-nat.c (_initialize_amd64_linux_nat): Use | |
10352 | add_inf_child_target. | |
10353 | * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Use | |
10354 | add_inf_child_target. | |
10355 | * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Use | |
10356 | add_inf_child_target. | |
10357 | * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Use | |
10358 | add_inf_child_target. | |
10359 | * arm-linux-nat.c (_initialize_arm_linux_nat): Use | |
10360 | add_inf_child_target. | |
10361 | * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Use | |
10362 | add_inf_child_target. | |
10363 | * bfd-target.c (target_bfd_target_info): New. | |
10364 | (target_bfd) <shortname, longname, doc>: Delete. | |
10365 | <info>: New. | |
10366 | * bsd-kvm.c (bsd_kvm_target_info): New. | |
10367 | (bsd_kvm_target) <shortname, longname, doc>: Delete. | |
10368 | <info>: New. | |
10369 | (bsd_kvm_target::open): Rename to ... | |
10370 | (bsd_kvm_target_open): ... this. Adjust. | |
10371 | * bsd-uthread.c (bsd_uthread_target_info): New. | |
10372 | (bsd_uthread_target) <shortname, longname, doc>: Delete. | |
10373 | <info>: New. | |
10374 | * corefile.c (core_file_command): Adjust. | |
10375 | * corelow.c (core_target_info): New. | |
10376 | (core_target) <shortname, longname, doc>: Delete. | |
10377 | <info>: New. | |
10378 | (core_target::open): Rename to ... | |
10379 | (core_target_open): ... this. Adjust. | |
10380 | * ctf.c (ctf_target_info): New. | |
10381 | (ctf_target) <shortname, longname, doc>: Delete. | |
10382 | <info>: New. | |
10383 | (ctf_target::open): Rename to ... | |
10384 | (ctf_target_open): ... this. | |
10385 | (_initialize_ctf): Adjust. | |
10386 | * exec.c (exec_target_info): New. | |
10387 | (exec_target) <shortname, longname, doc>: Delete. | |
10388 | <info>: New. | |
10389 | (exec_target::open): Rename to ... | |
10390 | (exec_target_open): ... this. | |
10391 | * gdbcore.h (core_target_open): Declare. | |
10392 | * go32-nat.c (_initialize_go32_nat): Use add_inf_child_target. | |
10393 | * hppa-linux-nat.c (_initialize_hppa_linux_nat): Use | |
10394 | add_inf_child_target. | |
10395 | * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Use | |
10396 | add_inf_child_target. | |
10397 | * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Use | |
10398 | add_inf_child_target. | |
10399 | * i386-darwin-nat.c (_initialize_i386_darwin_nat): Use | |
10400 | add_inf_child_target. | |
10401 | * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Use | |
10402 | add_inf_child_target. | |
10403 | * i386-gnu-nat.c (_initialize_i386gnu_nat): Use | |
10404 | add_inf_child_target. | |
10405 | * i386-linux-nat.c (_initialize_i386_linux_nat): Use | |
10406 | add_inf_child_target. | |
10407 | * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Use | |
10408 | add_inf_child_target. | |
10409 | * i386-obsd-nat.c (_initialize_i386obsd_nat): Use | |
10410 | add_inf_child_target. | |
10411 | * ia64-linux-nat.c (_initialize_ia64_linux_nat): Use | |
10412 | add_inf_child_target. | |
10413 | * inf-child.c (inf_child_target_info): New. | |
10414 | (inf_child_target::info): New. | |
10415 | (inf_child_open_target): Remove 'target' parameter. Use | |
10416 | get_native_target instead. | |
10417 | (inf_child_target::open): Delete. | |
10418 | (add_inf_child_target): New. | |
10419 | * inf-child.h (inf_child_target) <shortname, longname, doc, open>: | |
10420 | Delete. | |
10421 | <info>: New. | |
10422 | (add_inf_child_target): Declare. | |
10423 | (inf_child_open_target): Declare. | |
10424 | * linux-thread-db.c (thread_db_target_info): New. | |
10425 | (thread_db_target) <shortname, longname, doc>: Delete. | |
10426 | <info>: New. | |
10427 | * m32r-linux-nat.c (_initialize_m32r_linux_nat): Use | |
10428 | add_inf_child_target. | |
10429 | * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Use | |
10430 | add_inf_child_target. | |
10431 | * m68k-linux-nat.c (_initialize_m68k_linux_nat): Use | |
10432 | add_inf_child_target. | |
10433 | * m88k-bsd-nat.c (_initialize_m88kbsd_nat): Use | |
10434 | add_inf_child_target. | |
10435 | * make-target-delegates (print_class): Adjust. | |
10436 | * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Use | |
10437 | add_inf_child_target. | |
10438 | * mips-linux-nat.c (_initialize_mips_linux_nat): Use | |
10439 | add_inf_child_target. | |
10440 | * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Use | |
10441 | add_inf_child_target. | |
10442 | * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Use | |
10443 | add_inf_child_target. | |
10444 | * nto-procfs.c (nto_native_target_info): New. | |
10445 | (nto_procfs_target_native) <shortname, longname, doc>: | |
10446 | Delete. | |
10447 | <info>: New. | |
10448 | (nto_procfs_target_info): New. | |
10449 | (nto_procfs_target_procfs) <shortname, longname, doc>: | |
10450 | Delete. | |
10451 | <info>: New. | |
10452 | (init_procfs_targets): Adjust. | |
10453 | * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Use | |
10454 | add_inf_child_target. | |
10455 | * ppc-linux-nat.c (_initialize_ppc_linux_nat): Use | |
10456 | add_inf_child_target. | |
10457 | * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Use | |
10458 | add_inf_child_target. | |
10459 | * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Use | |
10460 | add_inf_child_target. | |
10461 | * ravenscar-thread.c (ravenscar_target_info): New. | |
10462 | (ravenscar_thread_target) <shortname, longname, doc>: | |
10463 | Delete. | |
10464 | <info>: New. | |
10465 | * record-btrace.c (record_btrace_target_info): | |
10466 | (record_btrace_target) <shortname, longname, doc>: Delete. | |
10467 | <info>: New. | |
10468 | (record_btrace_target::open): Rename to ... | |
10469 | (record_btrace_target_open): ... this. Adjust. | |
10470 | * record-full.c (record_longname, record_doc): New. | |
10471 | (record_full_base_target) <shortname, longname, doc>: Delete. | |
10472 | <info>: New. | |
10473 | (record_full_target_info): New. | |
10474 | (record_full_target): <shortname>: Delete. | |
10475 | <info>: New. | |
10476 | (record_full_core_open_1, record_full_open_1): Update comments. | |
10477 | (record_full_base_target::open): Rename to ... | |
10478 | (record_full_open): ... this. | |
10479 | (cmd_record_full_restore): Update. | |
10480 | (_initialize_record_full): Update. | |
10481 | * remote-sim.c (remote_sim_target_info): New. | |
10482 | (gdbsim_target) <shortname, longname, doc>: Delete. | |
10483 | <info>: New. | |
10484 | (gdbsim_target::open): Rename to ... | |
10485 | (gdbsim_target_open): ... this. | |
10486 | (_initialize_remote_sim): Adjust. | |
10487 | * remote.c (remote_doc): New. | |
10488 | (remote_target_info): New. | |
10489 | (remote_target) <shortname, longname, doc>: Delete. | |
10490 | <info>: New. | |
10491 | (extended_remote_target_info): New. | |
10492 | (extended_remote_target) <shortname, longname, doc>: Delete. | |
10493 | <info>: New. | |
10494 | (remote_target::open_1): Make static. Adjust. | |
10495 | * rs6000-nat.c (_initialize_rs6000_nat): Use add_inf_child_target. | |
10496 | * s390-linux-nat.c (_initialize_s390_nat): Use | |
10497 | add_inf_child_target. | |
10498 | * sh-nbsd-nat.c (_initialize_shnbsd_nat): Use | |
10499 | add_inf_child_target. | |
10500 | * sol-thread.c (thread_db_target_info): New. | |
10501 | (sol_thread_target) <shortname, longname, doc>: Delete. | |
10502 | <info>: New. | |
10503 | * sparc-linux-nat.c (_initialize_sparc_linux_nat): Use | |
10504 | add_inf_child_target. | |
10505 | * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Use | |
10506 | add_inf_child_target. | |
10507 | * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Use | |
10508 | add_inf_child_target. | |
10509 | * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Use | |
10510 | add_inf_child_target. | |
10511 | * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Use | |
10512 | add_inf_child_target. | |
10513 | * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Use | |
10514 | add_inf_child_target. | |
10515 | * spu-linux-nat.c (_initialize_spu_nat): Use | |
10516 | add_inf_child_target. | |
10517 | * spu-multiarch.c (spu_multiarch_target_info): New. | |
10518 | (spu_multiarch_target) <shortname, longname, doc>: Delete. | |
10519 | <info>: New. | |
10520 | * target-delegates.c: Regenerate. | |
10521 | * target.c: Include <unordered_map>. | |
10522 | (target_ops_p): Delete. | |
10523 | (DEF_VEC_P(target_ops_p)): Delete. | |
10524 | (target_factories): New. | |
10525 | (test_target_info): New. | |
10526 | (test_target_ops::info): New. | |
10527 | (open_target): Adjust to use target_factories. | |
10528 | (add_target_with_completer): Rename to ... | |
10529 | (add_target): ... this. Change prototype. Register target_info | |
10530 | and open callback in target_factories. Register target_info in | |
10531 | command context instead of target_ops. | |
10532 | (add_target): Delete old implementation. | |
10533 | (add_deprecated_target_alias): Change prototype. Adjust. | |
10534 | (the_native_target): New. | |
10535 | (set_native_target, get_native_target): New. | |
10536 | (find_default_run_target): Use the_native_target. | |
10537 | (find_attach_target, find_run_target): Simplify. | |
10538 | (target_ops::open): Delete. | |
10539 | (dummy_target_info): New. | |
10540 | (dummy_target::shortname, dummy_target::longname) | |
10541 | (dummy_target::doc): Delete. | |
10542 | (dummy_target::info): New. | |
10543 | (debug_target::shortname, debug_target::longname) | |
10544 | (debug_target::doc): Delete. | |
10545 | (debug_target::info): New. | |
10546 | * target.h (struct target_info): New. | |
10547 | (target_ops::~target_ops): Add comment. | |
10548 | (target_ops::info): New. | |
10549 | (target_ops::shortname, target_ops::longname, target_ops::doc): No | |
10550 | longer virtual. Implement in terms of target_info. | |
10551 | (set_native_target, get_native_target): Declare. | |
10552 | (target_open_ftype): New. | |
10553 | (add_target, add_target_with_completer) | |
10554 | (add_deprecated_target_alias): Change prototype. | |
10555 | (test_target) <shortname, longname, doc>: Delete. | |
10556 | <info>: New. | |
10557 | * tilegx-linux-nat.c (_initialize_tile_linux_nat): Use | |
10558 | add_inf_child_target. | |
10559 | * tracefile-tfile.c (tfile_target_info): New. | |
10560 | (tfile_target) <shortname, longname, doc>: Delete. | |
10561 | <info>: New. | |
10562 | (tfile_target::open): Rename to ... | |
10563 | (tfile_target_open): ... this. | |
10564 | (_initialize_tracefile_tfile): Adjust. | |
10565 | * vax-bsd-nat.c (_initialize_vaxbsd_nat): Use | |
10566 | add_inf_child_target. | |
10567 | * windows-nat.c (_initialize_windows_nat): Use | |
10568 | add_inf_child_target. | |
10569 | * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Use | |
10570 | add_inf_child_target. | |
10571 | ||
135340af PA |
10572 | 2018-05-02 Pedro Alves <palves@redhat.com> |
10573 | ||
10574 | * linux-nat.h (linux_nat_target) <low_new_thread, | |
10575 | low_delete_thread, low_new_fork, low_forget_process, | |
10576 | low_prepare_to_resume, low_siginfo_fixup, low_status_is_event>: | |
10577 | New virtual methods. | |
10578 | (linux_nat_set_new_thread, linux_nat_set_delete_thread) | |
10579 | (linux_nat_new_fork_ftype, linux_nat_set_new_fork) | |
10580 | (linux_nat_forget_process_ftype, linux_nat_set_forget_process) | |
10581 | (linux_nat_forget_process, linux_nat_set_siginfo_fixup) | |
10582 | (linux_nat_set_prepare_to_resume, linux_nat_set_status_is_event): | |
10583 | Delete. | |
10584 | * linux-fork.c (delete_fork): Adjust to call low method. | |
10585 | * linux-nat.c (linux_nat_new_thread, linux_nat_delete_thread) | |
10586 | (linux_nat_new_fork, linux_nat_forget_process_hook) | |
10587 | (linux_nat_prepare_to_resume, linux_nat_siginfo_fixup) | |
10588 | (linux_nat_status_is_event): | |
10589 | (linux_nat_target::follow_fork, lwp_free, add_lwp, detach_one_lwp) | |
10590 | (linux_resume_one_lwp_throw, linux_handle_extended_wait): Adjust | |
10591 | to call low method. | |
10592 | (sigtrap_is_event): Rename to ... | |
10593 | (linux_nat_target::low_status_is_event): ... this. | |
10594 | (linux_nat_set_status_is_event): Delete. | |
10595 | (save_stop_reason, linux_nat_wait_1) | |
10596 | (linux_nat_target::mourn_inferior, siginfo_fixup): Adjust to call | |
10597 | low methods. | |
10598 | (linux_nat_set_new_thread, linux_nat_set_delete_thread) | |
10599 | (linux_nat_set_new_fork, linux_nat_set_forget_process) | |
10600 | (linux_nat_forget_process, linux_nat_set_siginfo_fixup) | |
10601 | (linux_nat_set_prepare_to_resume): Delete. | |
10602 | * aarch64-linux-nat.c: All linux_nat_set_* callbacks converted to | |
10603 | low virtual methods. | |
10604 | * amd64-linux-nat.c: Likewise. | |
10605 | * arm-linux-nat.c: Likewise. | |
10606 | * i386-linux-nat.c: Likewise. | |
10607 | * ia64-linux-nat.c: Likewise. | |
10608 | * mips-linux-nat.c: Likewise. | |
10609 | * ppc-linux-nat.c: Likewise. | |
10610 | * s390-linux-nat.c: Likewise. | |
10611 | * sparc64-linux-nat.c: Likewise. | |
10612 | * x86-linux-nat.c: Likewise. | |
10613 | * x86-linux-nat.h: Include "nat/x86-linux.h". | |
10614 | (x86_linux_nat_target) <low_new_fork, low_forget_process, | |
10615 | low_prepare_to_resume, low_new_thread, low_delete_thread>: | |
10616 | Override methods. | |
10617 | ||
57810aa7 PA |
10618 | 2018-05-02 Pedro Alves <palves@redhat.com> |
10619 | ||
10620 | * target.h (target_ops) | |
10621 | <stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint, | |
10622 | stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint, | |
10623 | stopped_by_watchpoint, have_continuable_watchpoint, | |
10624 | stopped_data_address, watchpoint_addr_within_range, | |
10625 | can_accel_watchpoint_condition, can_run, thread_alive, | |
10626 | has_all_memory, has_memory, has_stack, has_registers, | |
10627 | has_execution, can_async_p, is_async_p, supports_non_stop, | |
10628 | always_non_stop_p, can_execute_reverse, supports_multi_process, | |
10629 | supports_enable_disable_tracepoint, | |
10630 | supports_disable_randomization, supports_string_tracing, | |
10631 | supports_evaluation_of_breakpoint_conditions, | |
10632 | can_run_breakpoint_commands, filesystem_is_local, | |
10633 | can_download_tracepoint, get_trace_state_variable_value, | |
10634 | set_trace_notes, get_tib_address, use_agent, can_use_agent, | |
10635 | record_is_replaying, record_will_replay, | |
10636 | augmented_libraries_svr4_read>: Adjust to return bool. | |
10637 | * aarch64-linux-nat.c: All implementations adjusted. | |
10638 | * aix-thread.c: All implementations adjusted. | |
10639 | * arm-linux-nat.c: All implementations adjusted. | |
10640 | * breakpoint.c: All implementations adjusted. | |
10641 | * bsd-kvm.c: All implementations adjusted. | |
10642 | * bsd-uthread.c: All implementations adjusted. | |
10643 | * corelow.c: All implementations adjusted. | |
10644 | * ctf.c: All implementations adjusted. | |
10645 | * darwin-nat.c: All implementations adjusted. | |
10646 | * darwin-nat.h: All implementations adjusted. | |
10647 | * exec.c: All implementations adjusted. | |
10648 | * fbsd-nat.c: All implementations adjusted. | |
10649 | * fbsd-nat.h: All implementations adjusted. | |
10650 | * gnu-nat.c: All implementations adjusted. | |
10651 | * gnu-nat.h: All implementations adjusted. | |
10652 | * go32-nat.c: All implementations adjusted. | |
10653 | * ia64-linux-nat.c: All implementations adjusted. | |
10654 | * inf-child.c: All implementations adjusted. | |
10655 | * inf-child.h: All implementations adjusted. | |
10656 | * inf-ptrace.c: All implementations adjusted. | |
10657 | * inf-ptrace.h: All implementations adjusted. | |
10658 | * linux-nat.c: All implementations adjusted. | |
10659 | * linux-nat.h: All implementations adjusted. | |
10660 | * mips-linux-nat.c: All implementations adjusted. | |
10661 | * nto-procfs.c: All implementations adjusted. | |
10662 | * ppc-linux-nat.c: All implementations adjusted. | |
10663 | * procfs.c: All implementations adjusted. | |
10664 | * ravenscar-thread.c: All implementations adjusted. | |
10665 | * record-btrace.c: All implementations adjusted. | |
10666 | * record-full.c: All implementations adjusted. | |
10667 | * remote-sim.c: All implementations adjusted. | |
10668 | * remote.c: All implementations adjusted. | |
10669 | * s390-linux-nat.c: All implementations adjusted. | |
10670 | * sol-thread.c: All implementations adjusted. | |
10671 | * spu-multiarch.c: All implementations adjusted. | |
10672 | * target-delegates.c: All implementations adjusted. | |
10673 | * target.c: All implementations adjusted. | |
10674 | * target.h: All implementations adjusted. | |
10675 | * tracefile-tfile.c: All implementations adjusted. | |
10676 | * tracefile.c: All implementations adjusted. | |
10677 | * tracefile.h: All implementations adjusted. | |
10678 | * windows-nat.c: All implementations adjusted. | |
10679 | * x86-linux-nat.h: All implementations adjusted. | |
10680 | * x86-nat.h: All implementations adjusted. | |
10681 | ||
ad6a4e2d PA |
10682 | 2018-05-02 Pedro Alves <palves@redhat.com> |
10683 | ||
10684 | * make-target-delegates (scan_target_h): Don't trim lines here. | |
10685 | Replace sequences of tabs and/or whitespace with a single | |
10686 | whitespace. | |
10687 | (top level, parsing methods): Trim each line before processing it | |
10688 | here. | |
10689 | ||
f6ac5f3d PA |
10690 | 2018-05-02 Pedro Alves <palves@redhat.com> |
10691 | John Baldwin <jhb@freebsd.org> | |
10692 | ||
10693 | * target.h (enum strata) <debug_stratum>: New. | |
10694 | (struct target_ops) <all delegation methods>: Replace by C++ | |
10695 | virtual methods, and drop "to_" prefix. All references updated | |
10696 | throughout. | |
10697 | <to_shortname, to_longname, to_doc, to_data, | |
10698 | to_have_steppable_watchpoint, to_have_continuable_watchpoint, | |
10699 | to_has_thread_control, to_attach_no_wait>: Delete, replaced by | |
10700 | virtual methods. All references updated throughout. | |
10701 | <can_attach, supports_terminal_ours, can_create_inferior, | |
10702 | get_thread_control_capabilities, attach_no_wait>: New | |
10703 | virtual methods. | |
10704 | <insert_breakpoint, remove_breakpoint>: Now | |
10705 | TARGET_DEFAULT_NORETURN methods. | |
10706 | <info_proc>: Now returns bool. | |
10707 | <to_magic>: Delete. | |
10708 | (OPS_MAGIC): Delete. | |
10709 | (current_target): Delete. All references replaced by references | |
10710 | to ... | |
10711 | (target_stack): ... this. New. | |
10712 | (target_shortname, target_longname): Adjust. | |
10713 | (target_can_run): Now a function declaration. | |
10714 | (default_child_has_all_memory, default_child_has_memory) | |
10715 | (default_child_has_stack, default_child_has_registers) | |
10716 | (default_child_has_execution): Remove target_ops parameter. | |
10717 | (complete_target_initialization): Delete. | |
10718 | (memory_breakpoint_target): New template class. | |
10719 | (test_target_ops): Refactor as a C++ class with virtual methods. | |
10720 | * make-target-delegates (NAME_PART): Tighten. | |
10721 | (POINTER_PART, CP_SYMBOL): New. | |
10722 | (SIMPLE_RETURN_PART): Reimplement. | |
10723 | (VEC_RETURN_PART): Expect less. | |
10724 | (RETURN_PART, VIRTUAL_PART): New. | |
10725 | (METHOD): Adjust to C++ virtual methods. | |
10726 | (scan_target_h): Remove reference to C99. | |
10727 | (dname): Output "target_ops::" prefix. | |
10728 | (write_function_header): Adjust to output a C++ class method. | |
10729 | (write_declaration): New. | |
10730 | (write_delegator): Adjust to output a C++ class method. | |
10731 | (tdname): Output "dummy_target::" prefix. | |
10732 | (write_tdefault, write_debugmethod): Adjust to output a C++ class | |
10733 | method. | |
10734 | (tdefault_names, debug_names): Delete. | |
10735 | (return_types, tdefaults, styles, argtypes_array): New. | |
10736 | (top level): All methods are delegators. | |
10737 | (print_class): New. | |
10738 | (top level): Print dummy_target and debug_target classes. | |
10739 | * target-delegates.c: Regenerate. | |
10740 | * target-debug.h (target_debug_print_enum_info_proc_what) | |
10741 | (target_debug_print_thread_control_capabilities) | |
10742 | (target_debug_print_thread_info_p): New. | |
10743 | * target.c (dummy_target): Delete. | |
10744 | (the_dummy_target, the_debug_target): New. | |
10745 | (target_stack): Now extern. | |
10746 | (set_targetdebug): Push/unpush debug target. | |
10747 | (default_child_has_all_memory, default_child_has_memory) | |
10748 | (default_child_has_stack, default_child_has_registers) | |
10749 | (default_child_has_execution): Remove target_ops parameter. | |
10750 | (complete_target_initialization): Delete. | |
10751 | (add_target_with_completer): No longer call | |
10752 | complete_target_initialization. | |
10753 | (target_supports_terminal_ours): Use regular delegation. | |
10754 | (update_current_target): Delete. | |
10755 | (push_target): No longer check magic number. Don't call | |
10756 | update_current_target. | |
10757 | (unpush_target): Don't call update_current_target. | |
10758 | (target_is_pushed): No longer check magic number. | |
10759 | (target_require_runnable): Skip for all stratums over | |
10760 | process_stratum. | |
10761 | (target_ops::info_proc): New. | |
10762 | (target_info_proc): Use find_target_at and | |
10763 | find_default_run_target. | |
10764 | (target_supports_disable_randomization): Use regular delegation. | |
10765 | (target_get_osdata): Use find_target_at. | |
10766 | (target_ops::open, target_ops::close, target_ops::can_attach) | |
10767 | (target_ops::attach, target_ops::can_create_inferior) | |
10768 | (target_ops::create_inferior, target_ops::can_run) | |
10769 | (target_can_run): New. | |
10770 | (default_fileio_target): Use regular delegation. | |
10771 | (target_ops::fileio_open, target_ops::fileio_pwrite) | |
10772 | (target_ops::fileio_pread, target_ops::fileio_fstat) | |
10773 | (target_ops::fileio_close, target_ops::fileio_unlink) | |
10774 | (target_ops::fileio_readlink): New. | |
10775 | (target_fileio_open_1, target_fileio_unlink) | |
10776 | (target_fileio_readlink): Always call the target method. Handle | |
10777 | FILEIO_ENOSYS. | |
10778 | (return_zero, return_zero_has_execution): Delete. | |
10779 | (init_dummy_target): Delete. | |
10780 | (dummy_target::dummy_target, dummy_target::shortname) | |
10781 | (dummy_target::longname, dummy_target::doc) | |
10782 | (debug_target::debug_target, debug_target::shortname) | |
10783 | (debug_target::longname, debug_target::doc): New. | |
10784 | (target_supports_delete_record): Use regular delegation. | |
10785 | (setup_target_debug): Delete. | |
10786 | (maintenance_print_target_stack): Skip debug_stratum. | |
10787 | (initialize_targets): Instantiate the_dummy_target and | |
10788 | the_debug_target. | |
10789 | * auxv.c (target_auxv_parse): Remove 'ops' parameter. Adjust to | |
10790 | use target_stack. | |
10791 | (target_auxv_search, fprint_target_auxv): Adjust. | |
10792 | (info_auxv_command): Adjust to use target_stack. | |
10793 | * auxv.h (target_auxv_parse): Remove 'ops' parameter. | |
10794 | * exceptions.c (print_flush): Handle a NULL target_stack. | |
10795 | * regcache.c (target_ops_no_register): Refactor as class with | |
10796 | virtual methods. | |
10797 | ||
10798 | * exec.c (exec_target): New class. | |
10799 | (exec_ops): Now an exec_target. | |
10800 | (exec_open, exec_close_1, exec_get_section_table) | |
10801 | (exec_xfer_partial, exec_files_info, exec_has_memory) | |
10802 | (exec_make_note_section): Refactor as exec_target methods. | |
10803 | (exec_file_clear, ignore, exec_remove_breakpoint, init_exec_ops): | |
10804 | Delete. | |
10805 | (exec_target::find_memory_regions): New. | |
10806 | (_initialize_exec): Don't call init_exec_ops. | |
10807 | * gdbcore.h (exec_file_clear): Delete. | |
10808 | ||
10809 | * corefile.c (core_target): Delete. | |
10810 | (core_file_command): Adjust. | |
10811 | * corelow.c (core_target): New class. | |
10812 | (the_core_target): New. | |
10813 | (core_close): Remove target_ops parameter. | |
10814 | (core_close_cleanup): Adjust. | |
10815 | (core_target::close): New. | |
10816 | (core_open, core_detach, get_core_registers, core_files_info) | |
10817 | (core_xfer_partial, core_thread_alive, core_read_description) | |
10818 | (core_pid_to_str, core_thread_name, core_has_memory) | |
10819 | (core_has_stack, core_has_registers, core_info_proc): Rework as | |
10820 | core_target methods. | |
10821 | (ignore, core_remove_breakpoint, init_core_ops): Delete. | |
10822 | (_initialize_corelow): Initialize the_core_target. | |
10823 | * gdbcore.h (core_target): Delete. | |
10824 | (the_core_target): New. | |
10825 | ||
10826 | * ctf.c: (ctf_target): New class. | |
10827 | (ctf_ops): Now a ctf_target. | |
10828 | (ctf_open, ctf_close, ctf_files_info, ctf_fetch_registers) | |
10829 | (ctf_xfer_partial, ctf_get_trace_state_variable_value) | |
10830 | (ctf_trace_find, ctf_traceframe_info): Refactor as ctf_target | |
10831 | methods. | |
10832 | (init_ctf_ops): Delete. | |
10833 | (_initialize_ctf): Don't call it. | |
10834 | * tracefile-tfile.c (tfile_target): New class. | |
10835 | (tfile_ops): Now a tfile_target. | |
10836 | (tfile_open, tfile_close, tfile_files_info) | |
10837 | (tfile_get_tracepoint_status, tfile_trace_find) | |
10838 | (tfile_fetch_registers, tfile_xfer_partial) | |
10839 | (tfile_get_trace_state_variable_value, tfile_traceframe_info): | |
10840 | Refactor as tfile_target methods. | |
10841 | (tfile_xfer_partial_features): Remove target_ops parameter. | |
10842 | (init_tfile_ops): Delete. | |
10843 | (_initialize_tracefile_tfile): Don't call it. | |
10844 | * tracefile.c (tracefile_has_all_memory, tracefile_has_memory) | |
10845 | (tracefile_has_stack, tracefile_has_registers) | |
10846 | (tracefile_thread_alive, tracefile_get_trace_status): Refactor as | |
10847 | tracefile_target methods. | |
10848 | (init_tracefile_ops): Delete. | |
10849 | (tracefile_target::tracefile_target): New. | |
10850 | * tracefile.h: Include "target.h". | |
10851 | (tracefile_target): New class. | |
10852 | (init_tracefile_ops): Delete. | |
10853 | ||
10854 | * spu-multiarch.c (spu_multiarch_target): New class. | |
10855 | (spu_ops): Now a spu_multiarch_target. | |
10856 | (spu_thread_architecture, spu_region_ok_for_hw_watchpoint) | |
10857 | (spu_fetch_registers, spu_store_registers, spu_xfer_partial) | |
10858 | (spu_search_memory, spu_mourn_inferior): Refactor as | |
10859 | spu_multiarch_target methods. | |
10860 | (init_spu_ops): Delete. | |
10861 | (_initialize_spu_multiarch): Remove references to init_spu_ops, | |
10862 | complete_target_initialization. | |
10863 | ||
10864 | * ravenscar-thread.c (ravenscar_thread_target): New class. | |
10865 | (ravenscar_ops): Now a ravenscar_thread_target. | |
10866 | (ravenscar_resume, ravenscar_wait, ravenscar_update_thread_list) | |
10867 | (ravenscar_thread_alive, ravenscar_pid_to_str) | |
10868 | (ravenscar_fetch_registers, ravenscar_store_registers) | |
10869 | (ravenscar_prepare_to_store, ravenscar_stopped_by_sw_breakpoint) | |
10870 | (ravenscar_stopped_by_hw_breakpoint) | |
10871 | (ravenscar_stopped_by_watchpoint, ravenscar_stopped_data_address) | |
10872 | (ravenscar_mourn_inferior, ravenscar_core_of_thread) | |
10873 | (ravenscar_get_ada_task_ptid): Refactor as ravenscar_thread_target | |
10874 | methods. | |
10875 | (init_ravenscar_thread_ops): Delete. | |
10876 | (_initialize_ravenscar): Remove references to | |
10877 | init_ravenscar_thread_ops and complete_target_initialization. | |
10878 | ||
10879 | * bsd-uthread.c (bsd_uthread_ops_hack): Delete. | |
10880 | (bsd_uthread_target): New class. | |
10881 | (bsd_uthread_ops): Now a bsd_uthread_target. | |
10882 | (bsd_uthread_activate): Adjust to refer to bsd_uthread_ops. | |
10883 | (bsd_uthread_close, bsd_uthread_mourn_inferior) | |
10884 | (bsd_uthread_fetch_registers, bsd_uthread_store_registers) | |
10885 | (bsd_uthread_wait, bsd_uthread_resume, bsd_uthread_thread_alive) | |
10886 | (bsd_uthread_update_thread_list, bsd_uthread_extra_thread_info) | |
10887 | (bsd_uthread_pid_to_str): Refactor as bsd_uthread_target methods. | |
10888 | (bsd_uthread_target): Delete function. | |
10889 | (_initialize_bsd_uthread): Remove reference to | |
10890 | complete_target_initialization. | |
10891 | ||
10892 | * bfd-target.c (target_bfd_data): Delete. Fields folded into ... | |
10893 | (target_bfd): ... this new class. | |
10894 | (target_bfd_xfer_partial, target_bfd_get_section_table) | |
10895 | (target_bfd_close): Refactor as target_bfd methods. | |
10896 | (target_bfd::~target_bfd): New. | |
10897 | (target_bfd_reopen): Adjust. | |
10898 | (target_bfd::close): New. | |
10899 | ||
10900 | * record-btrace.c (record_btrace_target): New class. | |
10901 | (record_btrace_ops): Now a record_btrace_target. | |
10902 | (record_btrace_open, record_btrace_stop_recording) | |
10903 | (record_btrace_disconnect, record_btrace_close) | |
10904 | (record_btrace_async, record_btrace_info) | |
10905 | (record_btrace_insn_history, record_btrace_insn_history_range) | |
10906 | (record_btrace_insn_history_from, record_btrace_call_history) | |
10907 | (record_btrace_call_history_range) | |
10908 | (record_btrace_call_history_from, record_btrace_record_method) | |
10909 | (record_btrace_is_replaying, record_btrace_will_replay) | |
10910 | (record_btrace_xfer_partial, record_btrace_insert_breakpoint) | |
10911 | (record_btrace_remove_breakpoint, record_btrace_fetch_registers) | |
10912 | (record_btrace_store_registers, record_btrace_prepare_to_store) | |
10913 | (record_btrace_to_get_unwinder) | |
10914 | (record_btrace_to_get_tailcall_unwinder, record_btrace_resume) | |
10915 | (record_btrace_commit_resume, record_btrace_wait) | |
10916 | (record_btrace_stop, record_btrace_can_execute_reverse) | |
10917 | (record_btrace_stopped_by_sw_breakpoint) | |
10918 | (record_btrace_supports_stopped_by_sw_breakpoint) | |
10919 | (record_btrace_stopped_by_hw_breakpoint) | |
10920 | (record_btrace_supports_stopped_by_hw_breakpoint) | |
10921 | (record_btrace_update_thread_list, record_btrace_thread_alive) | |
10922 | (record_btrace_goto_begin, record_btrace_goto_end) | |
10923 | (record_btrace_goto, record_btrace_stop_replaying_all) | |
10924 | (record_btrace_execution_direction) | |
10925 | (record_btrace_prepare_to_generate_core) | |
10926 | (record_btrace_done_generating_core): Refactor as | |
10927 | record_btrace_target methods. | |
10928 | (init_record_btrace_ops): Delete. | |
10929 | (_initialize_record_btrace): Remove reference to | |
10930 | init_record_btrace_ops. | |
10931 | * record-full.c (RECORD_FULL_IS_REPLAY): Adjust to always refer to | |
10932 | the execution_direction global. | |
10933 | (record_full_base_target, record_full_target) | |
10934 | (record_full_core_target): New classes. | |
10935 | (record_full_ops): Now a record_full_target. | |
10936 | (record_full_core_ops): Now a record_full_core_target. | |
10937 | (record_full_target::detach, record_full_target::disconnect) | |
10938 | (record_full_core_target::disconnect) | |
10939 | (record_full_target::mourn_inferior, record_full_target::kill): | |
10940 | New. | |
10941 | (record_full_open, record_full_close, record_full_async): Refactor | |
10942 | as methods of the record_full_base_target class. | |
10943 | (record_full_resume, record_full_commit_resume): Refactor | |
10944 | as methods of the record_full_target class. | |
10945 | (record_full_wait, record_full_stopped_by_watchpoint) | |
10946 | (record_full_stopped_data_address) | |
10947 | (record_full_stopped_by_sw_breakpoint) | |
10948 | (record_full_supports_stopped_by_sw_breakpoint) | |
10949 | (record_full_stopped_by_hw_breakpoint) | |
10950 | (record_full_supports_stopped_by_hw_breakpoint): Refactor as | |
10951 | methods of the record_full_base_target class. | |
10952 | (record_full_store_registers, record_full_xfer_partial) | |
10953 | (record_full_insert_breakpoint, record_full_remove_breakpoint): | |
10954 | Refactor as methods of the record_full_target class. | |
10955 | (record_full_can_execute_reverse, record_full_get_bookmark) | |
10956 | (record_full_goto_bookmark, record_full_execution_direction) | |
10957 | (record_full_record_method, record_full_info, record_full_delete) | |
10958 | (record_full_is_replaying, record_full_will_replay) | |
10959 | (record_full_goto_begin, record_full_goto_end, record_full_goto) | |
10960 | (record_full_stop_replaying): Refactor as methods of the | |
10961 | record_full_base_target class. | |
10962 | (record_full_core_resume, record_full_core_kill) | |
10963 | (record_full_core_fetch_registers) | |
10964 | (record_full_core_prepare_to_store) | |
10965 | (record_full_core_store_registers, record_full_core_xfer_partial) | |
10966 | (record_full_core_insert_breakpoint) | |
10967 | (record_full_core_remove_breakpoint) | |
10968 | (record_full_core_has_execution): Refactor | |
10969 | as methods of the record_full_core_target class. | |
10970 | (record_full_base_target::supports_delete_record): New. | |
10971 | (init_record_full_ops): Delete. | |
10972 | (init_record_full_core_ops): Delete. | |
10973 | (record_full_save): Refactor as method of the | |
10974 | record_full_base_target class. | |
10975 | (_initialize_record_full): Remove references to | |
10976 | init_record_full_ops and init_record_full_core_ops. | |
10977 | ||
10978 | * remote.c (remote_target, extended_remote_target): New classes. | |
10979 | (remote_ops): Now a remote_target. | |
10980 | (extended_remote_ops): Now an extended_remote_target. | |
10981 | (remote_insert_fork_catchpoint, remote_remove_fork_catchpoint) | |
10982 | (remote_insert_vfork_catchpoint, remote_remove_vfork_catchpoint) | |
10983 | (remote_insert_exec_catchpoint, remote_remove_exec_catchpoint) | |
10984 | (remote_pass_signals, remote_set_syscall_catchpoint) | |
10985 | (remote_program_signals, ) | |
10986 | (remote_thread_always_alive): Remove target_ops parameter. | |
10987 | (remote_thread_alive, remote_thread_name) | |
10988 | (remote_update_thread_list, remote_threads_extra_info) | |
10989 | (remote_static_tracepoint_marker_at) | |
10990 | (remote_static_tracepoint_markers_by_strid) | |
10991 | (remote_get_ada_task_ptid, remote_close, remote_start_remote) | |
10992 | (remote_open): Refactor as methods of remote_target. | |
10993 | (extended_remote_open, extended_remote_detach) | |
10994 | (extended_remote_attach, extended_remote_post_attach): | |
10995 | (extended_remote_supports_disable_randomization) | |
10996 | (extended_remote_create_inferior): : Refactor as method of | |
10997 | extended_remote_target. | |
10998 | (remote_set_permissions, remote_open_1, remote_detach) | |
10999 | (remote_follow_fork, remote_follow_exec, remote_disconnect) | |
11000 | (remote_resume, remote_commit_resume, remote_stop) | |
11001 | (remote_interrupt, remote_pass_ctrlc, remote_terminal_inferior) | |
11002 | (remote_terminal_ours, remote_wait, remote_fetch_registers) | |
11003 | (remote_prepare_to_store, remote_store_registers) | |
11004 | (remote_flash_erase, remote_flash_done, remote_files_info) | |
11005 | (remote_kill, remote_mourn, remote_insert_breakpoint) | |
11006 | (remote_remove_breakpoint, remote_insert_watchpoint) | |
11007 | (remote_watchpoint_addr_within_range) | |
11008 | (remote_remove_watchpoint, remote_region_ok_for_hw_watchpoint) | |
11009 | (remote_check_watch_resources, remote_stopped_by_sw_breakpoint) | |
11010 | (remote_supports_stopped_by_sw_breakpoint) | |
11011 | (remote_stopped_by_hw_breakpoint) | |
11012 | (remote_supports_stopped_by_hw_breakpoint) | |
11013 | (remote_stopped_by_watchpoint, remote_stopped_data_address) | |
11014 | (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint) | |
11015 | (remote_verify_memory): Refactor as methods of remote_target. | |
11016 | (remote_write_qxfer, remote_read_qxfer): Remove target_ops | |
11017 | parameter. | |
11018 | (remote_xfer_partial, remote_get_memory_xfer_limit) | |
11019 | (remote_search_memory, remote_rcmd, remote_memory_map) | |
11020 | (remote_pid_to_str, remote_get_thread_local_address) | |
11021 | (remote_get_tib_address, remote_read_description): Refactor as | |
11022 | methods of remote_target. | |
11023 | (remote_target::fileio_open, remote_target::fileio_pwrite) | |
11024 | (remote_target::fileio_pread, remote_target::fileio_close): New. | |
11025 | (remote_hostio_readlink, remote_hostio_fstat) | |
11026 | (remote_filesystem_is_local, remote_can_execute_reverse) | |
11027 | (remote_supports_non_stop, remote_supports_disable_randomization) | |
11028 | (remote_supports_multi_process, remote_supports_cond_breakpoints) | |
11029 | (remote_supports_enable_disable_tracepoint) | |
11030 | (remote_supports_string_tracing) | |
11031 | (remote_can_run_breakpoint_commands, remote_trace_init) | |
11032 | (remote_download_tracepoint, remote_can_download_tracepoint) | |
11033 | (remote_download_trace_state_variable, remote_enable_tracepoint) | |
11034 | (remote_disable_tracepoint, remote_trace_set_readonly_regions) | |
11035 | (remote_trace_start, remote_get_trace_status) | |
11036 | (remote_get_tracepoint_status, remote_trace_stop) | |
11037 | (remote_trace_find, remote_get_trace_state_variable_value) | |
11038 | (remote_save_trace_data, remote_get_raw_trace_data) | |
11039 | (remote_set_disconnected_tracing, remote_core_of_thread) | |
11040 | (remote_set_circular_trace_buffer, remote_traceframe_info) | |
11041 | (remote_get_min_fast_tracepoint_insn_len) | |
11042 | (remote_set_trace_buffer_size, remote_set_trace_notes) | |
11043 | (remote_use_agent, remote_can_use_agent, remote_enable_btrace) | |
11044 | (remote_disable_btrace, remote_teardown_btrace) | |
11045 | (remote_read_btrace, remote_btrace_conf) | |
11046 | (remote_augmented_libraries_svr4_read, remote_load) | |
11047 | (remote_pid_to_exec_file, remote_can_do_single_step) | |
11048 | (remote_execution_direction, remote_thread_handle_to_thread_info): | |
11049 | Refactor as methods of remote_target. | |
11050 | (init_remote_ops, init_extended_remote_ops): Delete. | |
11051 | (remote_can_async_p, remote_is_async_p, remote_async) | |
11052 | (remote_thread_events, remote_upload_tracepoints) | |
11053 | (remote_upload_trace_state_variables): Refactor as methods of | |
11054 | remote_target. | |
11055 | (_initialize_remote): Remove references to init_remote_ops and | |
11056 | init_extended_remote_ops. | |
11057 | ||
11058 | * remote-sim.c (gdbsim_target): New class. | |
11059 | (gdbsim_fetch_register, gdbsim_store_register, gdbsim_kill) | |
11060 | (gdbsim_load, gdbsim_create_inferior, gdbsim_open, gdbsim_close) | |
11061 | (gdbsim_detach, gdbsim_resume, gdbsim_interrupt) | |
11062 | (gdbsim_wait, gdbsim_prepare_to_store, gdbsim_xfer_partial) | |
11063 | (gdbsim_files_info, gdbsim_mourn_inferior, gdbsim_thread_alive) | |
11064 | (gdbsim_pid_to_str, gdbsim_has_all_memory, gdbsim_has_memory): | |
11065 | Refactor as methods of gdbsim_target. | |
11066 | (gdbsim_ops): Now a gdbsim_target. | |
11067 | (init_gdbsim_ops): Delete. | |
11068 | (gdbsim_cntrl_c): Adjust. | |
11069 | (_initialize_remote_sim): Remove reference to init_gdbsim_ops. | |
11070 | ||
11071 | * amd64-linux-nat.c (amd64_linux_nat_target): New class. | |
11072 | (the_amd64_linux_nat_target): New. | |
11073 | (amd64_linux_fetch_inferior_registers) | |
11074 | (amd64_linux_store_inferior_registers): Refactor as methods of | |
11075 | amd64_linux_nat_target. | |
11076 | (_initialize_amd64_linux_nat): Adjust. Set linux_target. | |
11077 | * i386-linux-nat.c: Don't include "linux-nat.h". | |
11078 | (i386_linux_nat_target): New class. | |
11079 | (the_i386_linux_nat_target): New. | |
11080 | (i386_linux_fetch_inferior_registers) | |
11081 | (i386_linux_store_inferior_registers, i386_linux_resume): Refactor | |
11082 | as methods of i386_linux_nat_target. | |
11083 | (_initialize_i386_linux_nat): Adjust. Set linux_target. | |
11084 | * inf-child.c (inf_child_ops): Delete. | |
11085 | (inf_child_fetch_inferior_registers) | |
11086 | (inf_child_store_inferior_registers): Delete. | |
11087 | (inf_child_post_attach, inf_child_prepare_to_store): Refactor as | |
11088 | methods of inf_child_target. | |
11089 | (inf_child_target::supports_terminal_ours) | |
11090 | (inf_child_target::terminal_init) | |
11091 | (inf_child_target::terminal_inferior) | |
11092 | (inf_child_target::terminal_ours_for_output) | |
11093 | (inf_child_target::terminal_ours, inf_child_target::interrupt) | |
11094 | (inf_child_target::pass_ctrlc, inf_child_target::terminal_info): | |
11095 | New. | |
11096 | (inf_child_open, inf_child_disconnect, inf_child_close) | |
11097 | (inf_child_mourn_inferior, inf_child_maybe_unpush_target) | |
11098 | (inf_child_post_startup_inferior, inf_child_can_run) | |
11099 | (inf_child_pid_to_exec_file): Refactor as methods of | |
11100 | inf_child_target. | |
11101 | (inf_child_follow_fork): Delete. | |
11102 | (inf_child_target::can_create_inferior) | |
11103 | (inf_child_target::can_attach): New. | |
11104 | (inf_child_target::has_all_memory, inf_child_target::has_memory) | |
11105 | (inf_child_target::has_stack, inf_child_target::has_registers) | |
11106 | (inf_child_target::has_execution): New. | |
11107 | (inf_child_fileio_open, inf_child_fileio_pwrite) | |
11108 | (inf_child_fileio_pread, inf_child_fileio_fstat) | |
11109 | (inf_child_fileio_close, inf_child_fileio_unlink) | |
11110 | (inf_child_fileio_readlink, inf_child_use_agent) | |
11111 | (inf_child_can_use_agent): Refactor as methods of | |
11112 | inf_child_target. | |
11113 | (return_zero, inf_child_target): Delete. | |
11114 | (inf_child_target::inf_child_target): New. | |
11115 | * inf-child.h: Include "target.h". | |
11116 | (inf_child_target): Delete function prototype. | |
11117 | (inf_child_target): New class. | |
11118 | (inf_child_open_target, inf_child_mourn_inferior) | |
11119 | (inf_child_maybe_unpush_target): Delete. | |
11120 | * inf-ptrace.c (inf_ptrace_target::~inf_ptrace_target): New. | |
11121 | (inf_ptrace_follow_fork, inf_ptrace_insert_fork_catchpoint) | |
11122 | (inf_ptrace_remove_fork_catchpoint, inf_ptrace_create_inferior) | |
11123 | (inf_ptrace_post_startup_inferior, inf_ptrace_mourn_inferior) | |
11124 | (inf_ptrace_attach, inf_ptrace_post_attach, inf_ptrace_detach) | |
11125 | (inf_ptrace_detach_success, inf_ptrace_kill, inf_ptrace_resume) | |
11126 | (inf_ptrace_wait, inf_ptrace_xfer_partial) | |
11127 | (inf_ptrace_thread_alive, inf_ptrace_files_info) | |
11128 | (inf_ptrace_pid_to_str, inf_ptrace_auxv_parse): Refactor as | |
11129 | methods of inf_ptrace_target. | |
11130 | (inf_ptrace_target): Delete function. | |
11131 | * inf-ptrace.h: Include "inf-child.h". | |
11132 | (inf_ptrace_target): Delete function declaration. | |
11133 | (inf_ptrace_target): New class. | |
11134 | (inf_ptrace_trad_target, inf_ptrace_detach_success): Delete. | |
11135 | * linux-nat.c (linux_target): New. | |
11136 | (linux_ops, linux_ops_saved, super_xfer_partial): Delete. | |
11137 | (linux_nat_target::~linux_nat_target): New. | |
11138 | (linux_child_post_attach, linux_child_post_startup_inferior) | |
11139 | (linux_child_follow_fork, linux_child_insert_fork_catchpoint) | |
11140 | (linux_child_remove_fork_catchpoint) | |
11141 | (linux_child_insert_vfork_catchpoint) | |
11142 | (linux_child_remove_vfork_catchpoint) | |
11143 | (linux_child_insert_exec_catchpoint) | |
11144 | (linux_child_remove_exec_catchpoint) | |
11145 | (linux_child_set_syscall_catchpoint, linux_nat_pass_signals) | |
11146 | (linux_nat_create_inferior, linux_nat_attach, linux_nat_detach) | |
11147 | (linux_nat_resume, linux_nat_stopped_by_watchpoint) | |
11148 | (linux_nat_stopped_data_address) | |
11149 | (linux_nat_stopped_by_sw_breakpoint) | |
11150 | (linux_nat_supports_stopped_by_sw_breakpoint) | |
11151 | (linux_nat_stopped_by_hw_breakpoint) | |
11152 | (linux_nat_supports_stopped_by_hw_breakpoint, linux_nat_wait) | |
11153 | (linux_nat_kill, linux_nat_mourn_inferior) | |
11154 | (linux_nat_xfer_partial, linux_nat_thread_alive) | |
11155 | (linux_nat_update_thread_list, linux_nat_pid_to_str) | |
11156 | (linux_nat_thread_name, linux_child_pid_to_exec_file) | |
11157 | (linux_child_static_tracepoint_markers_by_strid) | |
11158 | (linux_nat_is_async_p, linux_nat_can_async_p) | |
11159 | (linux_nat_supports_non_stop, linux_nat_always_non_stop_p) | |
11160 | (linux_nat_supports_multi_process) | |
11161 | (linux_nat_supports_disable_randomization, linux_nat_async) | |
11162 | (linux_nat_stop, linux_nat_close, linux_nat_thread_address_space) | |
11163 | (linux_nat_core_of_thread, linux_nat_filesystem_is_local) | |
11164 | (linux_nat_fileio_open, linux_nat_fileio_readlink) | |
11165 | (linux_nat_fileio_unlink, linux_nat_thread_events): Refactor as | |
11166 | methods of linux_nat_target. | |
11167 | (linux_nat_wait_1, linux_xfer_siginfo, linux_proc_xfer_partial) | |
11168 | (linux_proc_xfer_spu, linux_nat_xfer_osdata): Remove target_ops | |
11169 | parameter. | |
11170 | (check_stopped_by_watchpoint): Adjust. | |
11171 | (linux_xfer_partial): Delete. | |
11172 | (linux_target_install_ops, linux_target, linux_nat_add_target): | |
11173 | Delete. | |
11174 | (linux_nat_target::linux_nat_target): New. | |
11175 | * linux-nat.h: Include "inf-ptrace.h". | |
11176 | (linux_nat_target): New. | |
11177 | (linux_target, linux_target_install_ops, linux_nat_add_target): | |
11178 | Delete function declarations. | |
11179 | (linux_target): Declare global. | |
11180 | * linux-thread-db.c (thread_db_target): New. | |
11181 | (thread_db_target::thread_db_target): New. | |
11182 | (thread_db_ops): Delete. | |
11183 | (the_thread_db_target): New. | |
11184 | (thread_db_detach, thread_db_wait, thread_db_mourn_inferior) | |
11185 | (thread_db_update_thread_list, thread_db_pid_to_str) | |
11186 | (thread_db_extra_thread_info) | |
11187 | (thread_db_thread_handle_to_thread_info) | |
11188 | (thread_db_get_thread_local_address, thread_db_get_ada_task_ptid) | |
11189 | (thread_db_resume): Refactor as methods of thread_db_target. | |
11190 | (init_thread_db_ops): Delete. | |
11191 | (_initialize_thread_db): Remove reference to init_thread_db_ops. | |
11192 | * x86-linux-nat.c: Don't include "linux-nat.h". | |
11193 | (super_post_startup_inferior): Delete. | |
11194 | (x86_linux_nat_target::~x86_linux_nat_target): New. | |
11195 | (x86_linux_child_post_startup_inferior) | |
11196 | (x86_linux_read_description, x86_linux_enable_btrace) | |
11197 | (x86_linux_disable_btrace, x86_linux_teardown_btrace) | |
11198 | (x86_linux_read_btrace, x86_linux_btrace_conf): Refactor as | |
11199 | methods of x86_linux_nat_target. | |
11200 | (x86_linux_create_target): Delete. Bits folded ... | |
11201 | (x86_linux_add_target): ... here. Now takes a linux_nat_target | |
11202 | pointer. | |
11203 | * x86-linux-nat.h: Include "linux-nat.h" and "x86-nat.h". | |
11204 | (x86_linux_nat_target): New class. | |
11205 | (x86_linux_create_target): Delete. | |
11206 | (x86_linux_add_target): Now takes a linux_nat_target pointer. | |
11207 | * x86-nat.c (x86_insert_watchpoint, x86_remove_watchpoint) | |
11208 | (x86_region_ok_for_watchpoint, x86_stopped_data_address) | |
11209 | (x86_stopped_by_watchpoint, x86_insert_hw_breakpoint) | |
11210 | (x86_remove_hw_breakpoint, x86_can_use_hw_breakpoint) | |
11211 | (x86_stopped_by_hw_breakpoint): Remove target_ops parameter and | |
11212 | make extern. | |
11213 | (x86_use_watchpoints): Delete. | |
11214 | * x86-nat.h: Include "breakpoint.h" and "target.h". | |
11215 | (x86_use_watchpoints): Delete. | |
11216 | (x86_can_use_hw_breakpoint, x86_region_ok_for_hw_watchpoint) | |
11217 | (x86_stopped_by_watchpoint, x86_stopped_data_address) | |
11218 | (x86_insert_watchpoint, x86_remove_watchpoint) | |
11219 | (x86_insert_hw_breakpoint, x86_remove_hw_breakpoint) | |
11220 | (x86_stopped_by_hw_breakpoint): New declarations. | |
11221 | (x86_nat_target): New template class. | |
11222 | ||
11223 | * ppc-linux-nat.c (ppc_linux_nat_target): New class. | |
11224 | (the_ppc_linux_nat_target): New. | |
11225 | (ppc_linux_fetch_inferior_registers) | |
11226 | (ppc_linux_can_use_hw_breakpoint) | |
11227 | (ppc_linux_region_ok_for_hw_watchpoint) | |
11228 | (ppc_linux_ranged_break_num_registers) | |
11229 | (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint) | |
11230 | (ppc_linux_insert_mask_watchpoint) | |
11231 | (ppc_linux_remove_mask_watchpoint) | |
11232 | (ppc_linux_can_accel_watchpoint_condition) | |
11233 | (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint) | |
11234 | (ppc_linux_stopped_data_address, ppc_linux_stopped_by_watchpoint) | |
11235 | (ppc_linux_watchpoint_addr_within_range) | |
11236 | (ppc_linux_masked_watch_num_registers) | |
11237 | (ppc_linux_store_inferior_registers, ppc_linux_auxv_parse) | |
11238 | (ppc_linux_read_description): Refactor as methods of | |
11239 | ppc_linux_nat_target. | |
11240 | (_initialize_ppc_linux_nat): Adjust. Set linux_target. | |
11241 | ||
11242 | * procfs.c (procfs_xfer_partial): Delete forward declaration. | |
11243 | (procfs_target): New class. | |
11244 | (the_procfs_target): New. | |
11245 | (procfs_target): Delete function. | |
11246 | (procfs_auxv_parse, procfs_attach, procfs_detach) | |
11247 | (procfs_fetch_registers, procfs_store_registers, procfs_wait) | |
11248 | (procfs_xfer_partial, procfs_resume, procfs_pass_signals) | |
11249 | (procfs_files_info, procfs_kill_inferior, procfs_mourn_inferior) | |
11250 | (procfs_create_inferior, procfs_update_thread_list) | |
11251 | (procfs_thread_alive, procfs_pid_to_str) | |
11252 | (procfs_can_use_hw_breakpoint, procfs_stopped_by_watchpoint) | |
11253 | (procfs_stopped_data_address, procfs_insert_watchpoint) | |
11254 | (procfs_remove_watchpoint, procfs_region_ok_for_hw_watchpoint) | |
11255 | (proc_find_memory_regions, procfs_info_proc) | |
11256 | (procfs_make_note_section): Refactor as methods of procfs_target. | |
11257 | (_initialize_procfs): Adjust. | |
11258 | * sol-thread.c (sol_thread_target): New class. | |
11259 | (sol_thread_ops): Now a sol_thread_target. | |
11260 | (sol_thread_detach, sol_thread_resume, sol_thread_wait) | |
11261 | (sol_thread_fetch_registers, sol_thread_store_registers) | |
11262 | (sol_thread_xfer_partial, sol_thread_mourn_inferior) | |
11263 | (sol_thread_alive, solaris_pid_to_str, sol_update_thread_list) | |
11264 | (sol_get_ada_task_ptid): Refactor as methods of sol_thread_target. | |
11265 | (init_sol_thread_ops): Delete. | |
11266 | (_initialize_sol_thread): Adjust. Remove references to | |
11267 | init_sol_thread_ops and complete_target_initialization. | |
11268 | ||
11269 | * windows-nat.c (windows_nat_target): New class. | |
11270 | (windows_fetch_inferior_registers) | |
11271 | (windows_store_inferior_registers, windows_resume, windows_wait) | |
11272 | (windows_attach, windows_detach, windows_pid_to_exec_file) | |
11273 | (windows_files_info, windows_create_inferior) | |
11274 | (windows_mourn_inferior, windows_interrupt, windows_kill_inferior) | |
11275 | (windows_close, windows_pid_to_str, windows_xfer_partial) | |
11276 | (windows_get_tib_address, windows_get_ada_task_ptid) | |
11277 | (windows_thread_name, windows_thread_alive): Refactor as | |
11278 | windows_nat_target methods. | |
11279 | (do_initial_windows_stuff): Adjust. | |
11280 | (windows_target): Delete function. | |
11281 | (_initialize_windows_nat): Adjust. | |
11282 | ||
11283 | * darwin-nat.c (darwin_resume, darwin_wait_to, darwin_interrupt) | |
11284 | (darwin_mourn_inferior, darwin_kill_inferior) | |
11285 | (darwin_create_inferior, darwin_attach, darwin_detach) | |
11286 | (darwin_pid_to_str, darwin_thread_alive, darwin_xfer_partial) | |
11287 | (darwin_pid_to_exec_file, darwin_get_ada_task_ptid) | |
11288 | (darwin_supports_multi_process): Refactor as darwin_nat_target | |
11289 | methods. | |
11290 | (darwin_resume_to, darwin_files_info): Delete. | |
11291 | (_initialize_darwin_inferior): Rename to ... | |
11292 | (_initialize_darwin_nat): ... this. Adjust to C++ification. | |
11293 | * darwin-nat.h: Include "inf-child.h". | |
11294 | (darwin_nat_target): New class. | |
11295 | (darwin_complete_target): Delete. | |
11296 | * i386-darwin-nat.c (i386_darwin_nat_target): New class. | |
11297 | (darwin_target): New. | |
11298 | (i386_darwin_fetch_inferior_registers) | |
11299 | (i386_darwin_store_inferior_registers): Refactor as methods of | |
11300 | darwin_nat_target. | |
11301 | (darwin_complete_target): Delete, with ... | |
11302 | (_initialize_i386_darwin_nat): ... bits factored out here. | |
11303 | ||
11304 | * alpha-linux-nat.c (alpha_linux_nat_target): New class. | |
11305 | (the_alpha_linux_nat_target): New. | |
11306 | (alpha_linux_register_u_offset): Refactor as | |
11307 | alpha_linux_nat_target method. | |
11308 | (_initialize_alpha_linux_nat): Adjust. | |
11309 | * linux-nat-trad.c (inf_ptrace_register_u_offset): Delete. | |
11310 | (inf_ptrace_fetch_register, inf_ptrace_fetch_registers) | |
11311 | (inf_ptrace_store_register, inf_ptrace_store_registers): Refact as | |
11312 | methods of linux_nat_trad_target. | |
11313 | (linux_trad_target): Delete. | |
11314 | * linux-nat-trad.h (linux_trad_target): Delete function. | |
11315 | (linux_nat_trad_target): New class. | |
11316 | * mips-linux-nat.c (mips_linux_nat_target): New class. | |
11317 | (super_fetch_registers, super_store_registers, super_close): | |
11318 | Delete. | |
11319 | (the_mips_linux_nat_target): New. | |
11320 | (mips64_linux_regsets_fetch_registers) | |
11321 | (mips64_linux_regsets_store_registers) | |
11322 | (mips64_linux_fetch_registers, mips64_linux_store_registers) | |
11323 | (mips_linux_register_u_offset, mips_linux_read_description) | |
11324 | (mips_linux_can_use_hw_breakpoint) | |
11325 | (mips_linux_stopped_by_watchpoint) | |
11326 | (mips_linux_stopped_data_address) | |
11327 | (mips_linux_region_ok_for_hw_watchpoint) | |
11328 | (mips_linux_insert_watchpoint, mips_linux_remove_watchpoint) | |
11329 | (mips_linux_close): Refactor as methods of mips_linux_nat. | |
11330 | (_initialize_mips_linux_nat): Adjust to C++ification. | |
11331 | ||
11332 | * aix-thread.c (aix_thread_target): New class. | |
11333 | (aix_thread_ops): Now an aix_thread_target. | |
11334 | (aix_thread_detach, aix_thread_resume, aix_thread_wait) | |
11335 | (aix_thread_fetch_registers, aix_thread_store_registers) | |
11336 | (aix_thread_xfer_partial, aix_thread_mourn_inferior) | |
11337 | (aix_thread_thread_alive, aix_thread_pid_to_str) | |
11338 | (aix_thread_extra_thread_info, aix_thread_get_ada_task_ptid): | |
11339 | Refactor as methods of aix_thread_target. | |
11340 | (init_aix_thread_ops): Delete. | |
11341 | (_initialize_aix_thread): Remove references to init_aix_thread_ops | |
11342 | and complete_target_initialization. | |
11343 | * rs6000-nat.c (rs6000_xfer_shared_libraries): Delete. | |
11344 | (rs6000_nat_target): New class. | |
11345 | (the_rs6000_nat_target): New. | |
11346 | (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers) | |
11347 | (rs6000_xfer_partial, rs6000_wait, rs6000_create_inferior) | |
11348 | (rs6000_xfer_shared_libraries): Refactor as rs6000_nat_target methods. | |
11349 | (super_create_inferior): Delete. | |
11350 | (_initialize_rs6000_nat): Adjust to C++ification. | |
11351 | ||
11352 | * arm-linux-nat.c (arm_linux_nat_target): New class. | |
11353 | (the_arm_linux_nat_target): New. | |
11354 | (arm_linux_fetch_inferior_registers) | |
11355 | (arm_linux_store_inferior_registers, arm_linux_read_description) | |
11356 | (arm_linux_can_use_hw_breakpoint, arm_linux_insert_hw_breakpoint) | |
11357 | (arm_linux_remove_hw_breakpoint) | |
11358 | (arm_linux_region_ok_for_hw_watchpoint) | |
11359 | (arm_linux_insert_watchpoint, arm_linux_remove_watchpoint) | |
11360 | (arm_linux_stopped_data_address, arm_linux_stopped_by_watchpoint) | |
11361 | (arm_linux_watchpoint_addr_within_range): Refactor as methods of | |
11362 | arm_linux_nat_target. | |
11363 | (_initialize_arm_linux_nat): Adjust to C++ification. | |
11364 | ||
11365 | * aarch64-linux-nat.c (aarch64_linux_nat_target): New class. | |
11366 | (the_aarch64_linux_nat_target): New. | |
11367 | (aarch64_linux_fetch_inferior_registers) | |
11368 | (aarch64_linux_store_inferior_registers) | |
11369 | (aarch64_linux_child_post_startup_inferior) | |
11370 | (aarch64_linux_read_description) | |
11371 | (aarch64_linux_can_use_hw_breakpoint) | |
11372 | (aarch64_linux_insert_hw_breakpoint) | |
11373 | (aarch64_linux_remove_hw_breakpoint) | |
11374 | (aarch64_linux_insert_watchpoint, aarch64_linux_remove_watchpoint) | |
11375 | (aarch64_linux_region_ok_for_hw_watchpoint) | |
11376 | (aarch64_linux_stopped_data_address) | |
11377 | (aarch64_linux_stopped_by_watchpoint) | |
11378 | (aarch64_linux_watchpoint_addr_within_range) | |
11379 | (aarch64_linux_can_do_single_step): Refactor as methods of | |
11380 | aarch64_linux_nat_target. | |
11381 | (super_post_startup_inferior): Delete. | |
11382 | (_initialize_aarch64_linux_nat): Adjust to C++ification. | |
11383 | ||
11384 | * hppa-linux-nat.c (hppa_linux_nat_target): New class. | |
11385 | (the_hppa_linux_nat_target): New. | |
11386 | (hppa_linux_fetch_inferior_registers) | |
11387 | (hppa_linux_store_inferior_registers): Refactor as methods of | |
11388 | hppa_linux_nat_target. | |
11389 | (_initialize_hppa_linux_nat): Adjust to C++ification. | |
11390 | ||
11391 | * ia64-linux-nat.c (ia64_linux_nat_target): New class. | |
11392 | (the_ia64_linux_nat_target): New. | |
11393 | (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint) | |
11394 | (ia64_linux_stopped_data_address) | |
11395 | (ia64_linux_stopped_by_watchpoint, ia64_linux_fetch_registers) | |
11396 | (ia64_linux_store_registers, ia64_linux_xfer_partial): Refactor as | |
11397 | ia64_linux_nat_target methods. | |
11398 | (super_xfer_partial): Delete. | |
11399 | (_initialize_ia64_linux_nat): Adjust to C++ification. | |
11400 | ||
11401 | * m32r-linux-nat.c (m32r_linux_nat_target): New class. | |
11402 | (the_m32r_linux_nat_target): New. | |
11403 | (m32r_linux_fetch_inferior_registers) | |
11404 | (m32r_linux_store_inferior_registers): Refactor as | |
11405 | m32r_linux_nat_target methods. | |
11406 | (_initialize_m32r_linux_nat): Adjust to C++ification. | |
11407 | ||
11408 | * m68k-linux-nat.c (m68k_linux_nat_target): New class. | |
11409 | (the_m68k_linux_nat_target): New. | |
11410 | (m68k_linux_fetch_inferior_registers) | |
11411 | (m68k_linux_store_inferior_registers): Refactor as | |
11412 | m68k_linux_nat_target methods. | |
11413 | (_initialize_m68k_linux_nat): Adjust to C++ification. | |
11414 | ||
11415 | * s390-linux-nat.c (s390_linux_nat_target): New class. | |
11416 | (the_s390_linux_nat_target): New. | |
11417 | (s390_linux_fetch_inferior_registers) | |
11418 | (s390_linux_store_inferior_registers, s390_stopped_by_watchpoint) | |
11419 | (s390_insert_watchpoint, s390_remove_watchpoint) | |
11420 | (s390_can_use_hw_breakpoint, s390_insert_hw_breakpoint) | |
11421 | (s390_remove_hw_breakpoint, s390_region_ok_for_hw_watchpoint) | |
11422 | (s390_auxv_parse, s390_read_description): Refactor as methods of | |
11423 | s390_linux_nat_target. | |
11424 | (_initialize_s390_nat): Adjust to C++ification. | |
11425 | ||
11426 | * sparc-linux-nat.c (sparc_linux_nat_target): New class. | |
11427 | (the_sparc_linux_nat_target): New. | |
11428 | (_initialize_sparc_linux_nat): Adjust to C++ification. | |
11429 | * sparc-nat.c (sparc_fetch_inferior_registers) | |
11430 | (sparc_store_inferior_registers): Remove target_ops parameter. | |
11431 | * sparc-nat.h (sparc_fetch_inferior_registers) | |
11432 | (sparc_store_inferior_registers): Remove target_ops parameter. | |
11433 | * sparc64-linux-nat.c (sparc64_linux_nat_target): New class. | |
11434 | (the_sparc64_linux_nat_target): New. | |
11435 | (_initialize_sparc64_linux_nat): Adjust to C++ification. | |
11436 | ||
11437 | * spu-linux-nat.c (spu_linux_nat_target): New class. | |
11438 | (the_spu_linux_nat_target): New. | |
11439 | (spu_child_post_startup_inferior, spu_child_post_attach) | |
11440 | (spu_child_wait, spu_fetch_inferior_registers) | |
11441 | (spu_store_inferior_registers, spu_xfer_partial) | |
11442 | (spu_can_use_hw_breakpoint): Refactor as spu_linux_nat_target | |
11443 | methods. | |
11444 | (_initialize_spu_nat): Adjust to C++ification. | |
11445 | ||
11446 | * tilegx-linux-nat.c (tilegx_linux_nat_target): New class. | |
11447 | (the_tilegx_linux_nat_target): New. | |
11448 | (fetch_inferior_registers, store_inferior_registers): | |
11449 | Refactor as methods. | |
11450 | (_initialize_tile_linux_nat): Adjust to C++ification. | |
11451 | ||
11452 | * xtensa-linux-nat.c (xtensa_linux_nat_target): New class. | |
11453 | (the_xtensa_linux_nat_target): New. | |
11454 | (xtensa_linux_fetch_inferior_registers) | |
11455 | (xtensa_linux_store_inferior_registers): Refactor as | |
11456 | xtensa_linux_nat_target methods. | |
11457 | (_initialize_xtensa_linux_nat): Adjust to C++ification. | |
11458 | ||
11459 | * fbsd-nat.c (USE_SIGTRAP_SIGINFO): Delete. | |
11460 | (fbsd_pid_to_exec_file, fbsd_find_memory_regions) | |
11461 | (fbsd_find_memory_regions, fbsd_info_proc, fbsd_xfer_partial) | |
11462 | (fbsd_thread_alive, fbsd_pid_to_str, fbsd_thread_name) | |
11463 | (fbsd_update_thread_list, fbsd_resume, fbsd_wait) | |
11464 | (fbsd_stopped_by_sw_breakpoint) | |
11465 | (fbsd_supports_stopped_by_sw_breakpoint, fbsd_follow_fork) | |
11466 | (fbsd_insert_fork_catchpoint, fbsd_remove_fork_catchpoint) | |
11467 | (fbsd_insert_vfork_catchpoint, fbsd_remove_vfork_catchpoint) | |
11468 | (fbsd_post_startup_inferior, fbsd_post_attach) | |
11469 | (fbsd_insert_exec_catchpoint, fbsd_remove_exec_catchpoint) | |
11470 | (fbsd_set_syscall_catchpoint) | |
11471 | (super_xfer_partial, super_resume, super_wait) | |
11472 | (fbsd_supports_stopped_by_hw_breakpoint): Delete. | |
11473 | (fbsd_handle_debug_trap): Remove target_ops parameter. | |
11474 | (fbsd_nat_add_target): Delete. | |
11475 | * fbsd-nat.h: Include "inf-ptrace.h". | |
11476 | (fbsd_nat_add_target): Delete. | |
11477 | (USE_SIGTRAP_SIGINFO): Define. | |
11478 | (fbsd_nat_target): New class. | |
11479 | ||
11480 | * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers) | |
11481 | (amd64bsd_store_inferior_registers): Remove target_ops parameter. | |
11482 | (amd64bsd_target): Delete. | |
11483 | * amd64-bsd-nat.h: New file. | |
11484 | * amd64-fbsd-nat.c: Include "amd64-bsd-nat.h" instead of | |
11485 | "x86-bsd-nat.h". | |
11486 | (amd64_fbsd_nat_target): New class. | |
11487 | (the_amd64_fbsd_nat_target): New. | |
11488 | (amd64fbsd_read_description): Refactor as method of | |
11489 | amd64_fbsd_nat_target. | |
11490 | (amd64_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New. | |
11491 | (_initialize_amd64fbsd_nat): Adjust to C++ification. | |
11492 | * amd64-nat.h (amd64bsd_target): Delete function declaration. | |
11493 | * i386-bsd-nat.c (i386bsd_fetch_inferior_registers) | |
11494 | (i386bsd_store_inferior_registers): Remove target_ops parameter. | |
11495 | (i386bsd_target): Delete. | |
11496 | * i386-bsd-nat.h (i386bsd_target): Delete function declaration. | |
11497 | (i386bsd_fetch_inferior_registers) | |
11498 | (i386bsd_store_inferior_registers): Declare. | |
11499 | (i386_bsd_nat_target): New class. | |
11500 | * i386-fbsd-nat.c (i386_fbsd_nat_target): New class. | |
11501 | (the_i386_fbsd_nat_target): New. | |
11502 | (i386fbsd_resume, i386fbsd_read_description): Refactor as | |
11503 | i386_fbsd_nat_target methods. | |
11504 | (i386_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New. | |
11505 | (_initialize_i386fbsd_nat): Adjust to C++ification. | |
11506 | * x86-bsd-nat.c (super_mourn_inferior): Delete. | |
11507 | (x86bsd_mourn_inferior, x86bsd_target): Delete. | |
11508 | (_initialize_x86_bsd_nat): Adjust to C++ification. | |
11509 | * x86-bsd-nat.h: Include "x86-nat.h". | |
11510 | (x86bsd_target): Delete declaration. | |
11511 | (x86bsd_nat_target): New class. | |
11512 | ||
11513 | * aarch64-fbsd-nat.c (aarch64_fbsd_nat_target): New class. | |
11514 | (the_aarch64_fbsd_nat_target): New. | |
11515 | (aarch64_fbsd_fetch_inferior_registers) | |
11516 | (aarch64_fbsd_store_inferior_registers): Refactor as methods of | |
11517 | aarch64_fbsd_nat_target. | |
11518 | (_initialize_aarch64_fbsd_nat): Adjust to C++ification. | |
11519 | * alpha-bsd-nat.c (alpha_bsd_nat_target): New class. | |
11520 | (the_alpha_bsd_nat_target): New. | |
11521 | (alphabsd_fetch_inferior_registers) | |
11522 | (alphabsd_store_inferior_registers): Refactor as | |
11523 | alpha_bsd_nat_target methods. | |
11524 | (_initialize_alphabsd_nat): Refactor as methods of | |
11525 | alpha_bsd_nat_target. | |
11526 | * amd64-nbsd-nat.c: Include "amd64-bsd-nat.h". | |
11527 | (the_amd64_nbsd_nat_target): New. | |
11528 | (_initialize_amd64nbsd_nat): Adjust to C++ification. | |
11529 | * amd64-obsd-nat.c: Include "amd64-bsd-nat.h". | |
11530 | (the_amd64_obsd_nat_target): New. | |
11531 | (_initialize_amd64obsd_nat): Adjust to C++ification. | |
11532 | * arm-fbsd-nat.c (arm_fbsd_nat_target): New. | |
11533 | (the_arm_fbsd_nat_target): New. | |
11534 | (arm_fbsd_fetch_inferior_registers) | |
11535 | (arm_fbsd_store_inferior_registers, arm_fbsd_read_description): | |
11536 | (_initialize_arm_fbsd_nat): Refactor as methods of | |
11537 | arm_fbsd_nat_target. | |
11538 | (_initialize_arm_fbsd_nat): Adjust to C++ification. | |
11539 | * arm-nbsd-nat.c (arm_netbsd_nat_target): New class. | |
11540 | (the_arm_netbsd_nat_target): New. | |
11541 | (armnbsd_fetch_registers, armnbsd_store_registers): Refactor as | |
11542 | arm_netbsd_nat_target. | |
11543 | (_initialize_arm_netbsd_nat): Adjust to C++ification. | |
11544 | * hppa-nbsd-nat.c (hppa_nbsd_nat_target): New class. | |
11545 | (the_hppa_nbsd_nat_target): New. | |
11546 | (hppanbsd_fetch_registers, hppanbsd_store_registers): Refactor as | |
11547 | hppa_nbsd_nat_target methods. | |
11548 | (_initialize_hppanbsd_nat): Adjust to C++ification. | |
11549 | * hppa-obsd-nat.c (hppa_obsd_nat_target): New class. | |
11550 | (the_hppa_obsd_nat_target): New. | |
11551 | (hppaobsd_fetch_registers, hppaobsd_store_registers): Refactor as | |
11552 | methods of hppa_obsd_nat_target. | |
11553 | (_initialize_hppaobsd_nat): Adjust to C++ification. Use | |
11554 | add_target. | |
11555 | * i386-nbsd-nat.c (the_i386_nbsd_nat_target): New. | |
11556 | (_initialize_i386nbsd_nat): Adjust to C++ification. Use | |
11557 | add_target. | |
11558 | * i386-obsd-nat.c (the_i386_obsd_nat_target): New. | |
11559 | (_initialize_i386obsd_nat): Use add_target. | |
11560 | * m68k-bsd-nat.c (m68k_bsd_nat_target): New class. | |
11561 | (the_m68k_bsd_nat_target): New. | |
11562 | (m68kbsd_fetch_inferior_registers) | |
11563 | (m68kbsd_store_inferior_registers): Refactor as methods of | |
11564 | m68k_bsd_nat_target. | |
11565 | (_initialize_m68kbsd_nat): Adjust to C++ification. | |
11566 | * mips-fbsd-nat.c (mips_fbsd_nat_target): New class. | |
11567 | (the_mips_fbsd_nat_target): New. | |
11568 | (mips_fbsd_fetch_inferior_registers) | |
11569 | (mips_fbsd_store_inferior_registers): Refactor as methods of | |
11570 | mips_fbsd_nat_target. | |
11571 | (_initialize_mips_fbsd_nat): Adjust to C++ification. Use | |
11572 | add_target. | |
11573 | * mips-nbsd-nat.c (mips_nbsd_nat_target): New class. | |
11574 | (the_mips_nbsd_nat_target): New. | |
11575 | (mipsnbsd_fetch_inferior_registers) | |
11576 | (mipsnbsd_store_inferior_registers): Refactor as methods of | |
11577 | mips_nbsd_nat_target. | |
11578 | (_initialize_mipsnbsd_nat): Adjust to C++ification. | |
11579 | * mips64-obsd-nat.c (mips64_obsd_nat_target): New class. | |
11580 | (the_mips64_obsd_nat_target): New. | |
11581 | (mips64obsd_fetch_inferior_registers) | |
11582 | (mips64obsd_store_inferior_registers): Refactor as methods of | |
11583 | mips64_obsd_nat_target. | |
11584 | (_initialize_mips64obsd_nat): Adjust to C++ification. Use | |
11585 | add_target. | |
11586 | * nbsd-nat.c (nbsd_pid_to_exec_file): Refactor as method of | |
11587 | nbsd_nat_target. | |
11588 | * nbsd-nat.h: Include "inf-ptrace.h". | |
11589 | (nbsd_nat_target): New class. | |
11590 | * obsd-nat.c (obsd_pid_to_str, obsd_update_thread_list) | |
11591 | (obsd_wait): Refactor as methods of obsd_nat_target. | |
11592 | (obsd_add_target): Delete. | |
11593 | * obsd-nat.h: Include "inf-ptrace.h". | |
11594 | (obsd_nat_target): New class. | |
11595 | * ppc-fbsd-nat.c (ppc_fbsd_nat_target): New class. | |
11596 | (the_ppc_fbsd_nat_target): New. | |
11597 | (ppcfbsd_fetch_inferior_registers) | |
11598 | (ppcfbsd_store_inferior_registers): Refactor as methods of | |
11599 | ppc_fbsd_nat_target. | |
11600 | (_initialize_ppcfbsd_nat): Adjust to C++ification. Use | |
11601 | add_target. | |
11602 | * ppc-nbsd-nat.c (ppc_nbsd_nat_target): New class. | |
11603 | (the_ppc_nbsd_nat_target): New. | |
11604 | (ppcnbsd_fetch_inferior_registers) | |
11605 | (ppcnbsd_store_inferior_registers): Refactor as methods of | |
11606 | ppc_nbsd_nat_target. | |
11607 | (_initialize_ppcnbsd_nat): Adjust to C++ification. | |
11608 | * ppc-obsd-nat.c (ppc_obsd_nat_target): New class. | |
11609 | (the_ppc_obsd_nat_target): New. | |
11610 | (ppcobsd_fetch_registers, ppcobsd_store_registers): Refactor as | |
11611 | methods of ppc_obsd_nat_target. | |
11612 | (_initialize_ppcobsd_nat): Adjust to C++ification. Use | |
11613 | add_target. | |
11614 | * sh-nbsd-nat.c (sh_nbsd_nat_target): New class. | |
11615 | (the_sh_nbsd_nat_target): New. | |
11616 | (shnbsd_fetch_inferior_registers) | |
11617 | (shnbsd_store_inferior_registers): Refactor as methods of | |
11618 | sh_nbsd_nat_target. | |
11619 | (_initialize_shnbsd_nat): Adjust to C++ification. | |
11620 | * sparc-nat.c (sparc_xfer_wcookie): Make extern. | |
11621 | (inf_ptrace_xfer_partial): Delete. | |
11622 | (sparc_xfer_partial, sparc_target): Delete. | |
11623 | * sparc-nat.h (sparc_fetch_inferior_registers) | |
11624 | (sparc_store_inferior_registers, sparc_xfer_wcookie): Declare. | |
11625 | (sparc_target): Delete function declaration. | |
11626 | (sparc_target): New template class. | |
11627 | * sparc-nbsd-nat.c (the_sparc_nbsd_nat_target): New. | |
11628 | (_initialize_sparcnbsd_nat): Adjust to C++ification. | |
11629 | * sparc64-fbsd-nat.c (the_sparc64_fbsd_nat_target): New. | |
11630 | (_initialize_sparc64fbsd_nat): Adjust to C++ification. Use | |
11631 | add_target. | |
11632 | * sparc64-nbsd-nat.c (the_sparc64_nbsd_nat_target): New. | |
11633 | (_initialize_sparc64nbsd_nat): Adjust to C++ification. | |
11634 | * sparc64-obsd-nat.c (the_sparc64_obsd_nat_target): New. | |
11635 | (_initialize_sparc64obsd_nat): Adjust to C++ification. Use | |
11636 | add_target. | |
11637 | * vax-bsd-nat.c (vax_bsd_nat_target): New class. | |
11638 | (the_vax_bsd_nat_target): New. | |
11639 | (vaxbsd_fetch_inferior_registers) | |
11640 | (vaxbsd_store_inferior_registers): Refactor as vax_bsd_nat_target | |
11641 | methods. | |
11642 | (_initialize_vaxbsd_nat): Adjust to C++ification. | |
11643 | ||
11644 | * bsd-kvm.c (bsd_kvm_target): New class. | |
11645 | (bsd_kvm_ops): Now a bsd_kvm_target. | |
11646 | (bsd_kvm_open, bsd_kvm_close, bsd_kvm_xfer_partial) | |
11647 | (bsd_kvm_files_info, bsd_kvm_fetch_registers) | |
11648 | (bsd_kvm_thread_alive, bsd_kvm_pid_to_str): Refactor as methods of | |
11649 | bsd_kvm_target. | |
11650 | (bsd_kvm_return_one): Delete. | |
11651 | (bsd_kvm_add_target): Adjust to C++ification. | |
11652 | ||
11653 | * nto-procfs.c (nto_procfs_target, nto_procfs_target_native) | |
11654 | (nto_procfs_target_procfs): New classes. | |
11655 | (procfs_open_1, procfs_thread_alive, procfs_update_thread_list) | |
11656 | (procfs_files_info, procfs_pid_to_exec_file, procfs_attach) | |
11657 | (procfs_post_attach, procfs_wait, procfs_fetch_registers) | |
11658 | (procfs_xfer_partial, procfs_detach, procfs_insert_breakpoint) | |
11659 | (procfs_remove_breakpoint, procfs_insert_hw_breakpoint) | |
11660 | (procfs_remove_hw_breakpoint, procfs_resume) | |
11661 | (procfs_mourn_inferior, procfs_create_inferior, procfs_interrupt) | |
11662 | (procfs_kill_inferior, procfs_store_registers) | |
11663 | (procfs_pass_signals, procfs_pid_to_str, procfs_can_run): Refactor | |
11664 | as methods of nto_procfs_target. | |
11665 | (nto_procfs_ops): Now an nto_procfs_target_procfs. | |
11666 | (nto_native_ops): Delete. | |
11667 | (procfs_open, procfs_native_open): Delete. | |
11668 | (nto_native_ops): Now an nto_procfs_target_native. | |
11669 | (init_procfs_targets): Adjust to C++ification. | |
11670 | (procfs_can_use_hw_breakpoint, procfs_remove_hw_watchpoint) | |
11671 | (procfs_insert_hw_watchpoint, procfs_stopped_by_watchpoint): | |
11672 | Refactor as methods of nto_procfs_target. | |
11673 | ||
11674 | * go32-nat.c (go32_nat_target): New class. | |
11675 | (the_go32_nat_target): New. | |
11676 | (go32_attach, go32_resume, go32_wait, go32_fetch_registers) | |
11677 | (go32_store_registers, go32_xfer_partial, go32_files_info) | |
11678 | (go32_kill_inferior, go32_create_inferior, go32_mourn_inferior) | |
11679 | (go32_terminal_init, go32_terminal_info, go32_terminal_inferior) | |
11680 | (go32_terminal_ours, go32_pass_ctrlc, go32_thread_alive) | |
11681 | (go32_pid_to_str): Refactor as methods of go32_nat_target. | |
11682 | (go32_target): Delete. | |
11683 | (_initialize_go32_nat): Adjust to C++ification. | |
11684 | ||
11685 | * gnu-nat.c (gnu_wait, gnu_resume, gnu_kill_inferior) | |
11686 | (gnu_mourn_inferior, gnu_create_inferior, gnu_attach, gnu_detach) | |
11687 | (gnu_stop, gnu_thread_alive, gnu_xfer_partial) | |
11688 | (gnu_find_memory_regions, gnu_pid_to_str): Refactor as methods of | |
11689 | gnu_nat_target. | |
11690 | (gnu_target): Delete. | |
11691 | * gnu-nat.h (gnu_target): Delete. | |
11692 | (gnu_nat_target): New class. | |
11693 | * i386-gnu-nat.c (gnu_base_target): New. | |
11694 | (i386_gnu_nat_target): New class. | |
11695 | (the_i386_gnu_nat_target): New. | |
11696 | (_initialize_i386gnu_nat): Adjust to C++ification. | |
11697 | ||
3fffc070 PA |
11698 | 2018-05-02 Pedro Alves <palves@redhat.com> |
11699 | ||
11700 | * bfd-target.c (target_bfd_xclose): Rename to ... | |
11701 | (target_bfd_close): ... this. | |
11702 | (target_bfd_reopen): Adjust. | |
11703 | * target.c (target_close): Remove references to to_xclose. | |
11704 | * target.h (target_ops::to_xclose): Delete. | |
11705 | (target_ops::to_close): Update comments. | |
11706 | ||
6798487f PA |
11707 | 2018-05-02 Pedro Alves <palves@redhat.com> |
11708 | ||
11709 | * alpha-linux-nat.c: Include "linux-nat-trad.h" instead of | |
11710 | "linux-nat.h". | |
11711 | * configure.nat (alpha-linux, linux-mips): Add linux-nat-trad.o. | |
11712 | * inf-ptrace.c (inf_ptrace_register_u_offset) | |
11713 | (inf_ptrace_fetch_register, inf_ptrace_fetch_registers) | |
11714 | (inf_ptrace_store_register, inf_ptrace_store_registers) | |
11715 | (inf_ptrace_trad_target): Move to ... | |
11716 | * linux-nat-trad.c: ... this new file. | |
11717 | * linux-nat-trad.h: New file. | |
11718 | * linux-nat.c (linux_target_install_ops): Make extern. | |
11719 | (linux_trad_target): Delete. | |
11720 | * linux-nat.h (linux_trad_target): Delete declaration. | |
11721 | (linux_target_install_ops): Declare. | |
11722 | * mips-linux-nat.c: Include "linux-nat-trad.h" instead of | |
11723 | "linux-nat.h". | |
11724 | ||
c1955e17 PA |
11725 | 2018-05-02 Pedro Alves <palves@redhat.com> |
11726 | ||
11727 | * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call | |
11728 | procfs_target/add_target here. | |
11729 | * procfs.c (procfs_target): Make static. | |
11730 | (_initialize_procfs): Call add_target here. | |
11731 | * procfs.h (struct target_ops): Remove forward declaration. | |
11732 | (procfs_target): Remove declaration. | |
11733 | * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Delete. | |
11734 | ||
b5c8fcb1 PA |
11735 | 2018-05-02 Pedro Alves <palves@redhat.com> |
11736 | ||
11737 | * procfs.c (procfs_stopped_by_watchpoint) | |
11738 | (procfs_insert_watchpoint, procfs_remove_watchpoint) | |
11739 | (procfs_region_ok_for_hw_watchpoint, procfs_stopped_data_address): | |
11740 | Forward declare. | |
11741 | (procfs_use_watchpoints): Delete, move contents... | |
11742 | (procfs_target): ... here. | |
11743 | * procfs.h (procfs_use_watchpoints): Delete declaration. | |
11744 | * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call | |
11745 | procfs_use_watchpoints. | |
11746 | * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Don't call | |
11747 | procfs_use_watchpoints. | |
11748 | ||
0489430a TT |
11749 | 2018-05-02 Tom Tromey <tom@tromey.com> |
11750 | ||
11751 | PR python/20084: | |
11752 | * python/python.c (gdbpy_parameter_value): Handle var_zuinteger | |
11753 | and var_zuinteger_unlimited. | |
11754 | * python/py-param.c (struct parm_constant): Add PARAM_ZUINTEGER | |
11755 | and PARAM_ZUINTEGER_UNLIMITED. | |
11756 | (set_parameter_value): Handle var_zuinteger and | |
11757 | var_zuinteger_unlimited. | |
11758 | (add_setshow_generic): Likewise. | |
11759 | (parmpy_init): Likewise. | |
11760 | ||
1632f8ba DR |
11761 | 2018-04-28 Dan Robertson <danlrobertson89@gmail.com> |
11762 | ||
11763 | PR rust/23124 | |
11764 | * gdb/rust-exp.y (convert_params_to_types): Ensure that the params | |
11765 | pointer is not null before dereferencing it. | |
11766 | ||
76761936 TT |
11767 | 2018-04-30 Tom Tromey <tom@tromey.com> |
11768 | ||
11769 | * darwin-nat-info.c (darwin_debug_regions_recurse): Remove use of | |
11770 | is_mi_like_p. | |
11771 | ||
2d33446d TT |
11772 | 2018-04-30 Tom Tromey <tom@tromey.com> |
11773 | ||
11774 | * breakpoint.c (mention): Remove use of is_mi_like_p. | |
11775 | (print_mention_ranged_breakpoint): Likewise. | |
11776 | * break-catch-throw.c (print_it_exception_catchpoint): Remove use | |
11777 | of is_mi_like_p. | |
11778 | ||
f3c6abab TT |
11779 | 2018-04-30 Tom Tromey <tom@tromey.com> |
11780 | ||
11781 | * tracepoint.c (tvariables_info_1): Remove use of is_mi_like_p. | |
11782 | ||
40c03530 TT |
11783 | 2018-04-30 Tom Tromey <tom@tromey.com> |
11784 | ||
11785 | * spu-tdep.c (info_spu_mailbox_list, info_spu_dma_cmdlist) | |
11786 | (info_spu_event_command): Remove some uses of is_mi_like_p. | |
11787 | ||
2038b7fd TT |
11788 | 2018-04-30 Tom Tromey <tom@tromey.com> |
11789 | ||
11790 | * python/py-framefilter.c (py_print_single_arg) | |
11791 | (enumerate_locals, py_print_args, py_print_frame): Remove some | |
11792 | uses of is_mi_like_p. | |
11793 | ||
4904c3c6 TT |
11794 | 2018-04-30 Tom Tromey <tom@tromey.com> |
11795 | ||
11796 | * ui-out.c: Update. | |
11797 | * cli-out.h (cli_ui_out::do_is_mi_like_p): Update. | |
11798 | * ui-out.h (ui_out::is_mi_like_p): Now const. | |
11799 | (ui_out::do_is_mi_like_p): Now const. | |
11800 | * mi/mi-out.h (mi_ui_out::do_is_mi_like_p): Update. | |
11801 | ||
7c66fffc TT |
11802 | 2018-04-30 Tom Tromey <tom@tromey.com> |
11803 | ||
11804 | * varobj.c (varobj_set_visualizer): Use new_reference. | |
11805 | * python/python.c (gdbpy_decode_line): Use new_reference. | |
11806 | * python/py-cmd.c (cmdpy_function, cmdpy_completer_helper): Use | |
11807 | new_reference. | |
11808 | ||
bbfa6f00 TT |
11809 | 2018-04-30 Tom Tromey <tom@tromey.com> |
11810 | ||
11811 | * varobj.c (install_new_value): Use new_reference. | |
11812 | * value.h (value_incref): Return void. Swap intro comment with | |
11813 | value_decref. | |
11814 | * value.c (set_value_parent): Use new_reference. | |
11815 | (value_incref): Return void. Update intro comment. | |
11816 | (release_value): Use new_reference. | |
11817 | * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use new_reference. | |
11818 | ||
1831a9f9 TT |
11819 | 2018-04-30 Tom Tromey <tom@tromey.com> |
11820 | ||
11821 | * symfile-mem.c (symbol_file_add_from_memory): Use new_reference. | |
11822 | * gdb_bfd.h (new_bfd_ref): Remove. | |
11823 | (gdb_bfd_open): Update comment. | |
11824 | * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr) | |
11825 | (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_record_inclusion) | |
11826 | (gdb_bfd_fdopenr): Use new_reference. | |
11827 | * exec.c (exec_file_attach): Use new_reference. | |
11828 | ||
7c1b5f3d TT |
11829 | 2018-04-30 Tom Tromey <tom@tromey.com> |
11830 | ||
11831 | * common/gdb_ref_ptr.h (ref_ptr::new_reference): New static | |
11832 | method. | |
11833 | ||
e11fb955 TT |
11834 | 2018-04-30 Tom Tromey <tom@tromey.com> |
11835 | ||
11836 | * jit.c (jit_read_code_entry): Use type_align. | |
11837 | * i386-tdep.c (i386_gdbarch_init): Don't call | |
11838 | set_gdbarch_long_long_align_bit. | |
11839 | * gdbarch.sh: Remove long_long_align_bit. | |
11840 | * gdbarch.c, gdbarch.h: Rebuild. | |
11841 | * arc-tdep.c (arc_type_align): New function. | |
11842 | (arc_gdbarch_init): Use arc_type_align. Don't call | |
11843 | set_gdbarch_long_long_align_bit. | |
11844 | ||
2fff16dd TT |
11845 | 2018-04-30 Tom Tromey <tom@tromey.com> |
11846 | ||
11847 | * rust-lang.c (rust_type_alignment): Remove. | |
11848 | (rust_composite_type): Use type_align. | |
11849 | ||
6d7bb824 TT |
11850 | 2018-04-30 Tom Tromey <tom@tromey.com> |
11851 | ||
11852 | * NEWS: Mention Type.align. | |
11853 | * python/py-type.c (typy_get_alignof): New function. | |
11854 | (type_object_getset): Add "alignof". | |
11855 | ||
007e1530 TT |
11856 | 2018-04-30 Tom Tromey <tom@tromey.com> |
11857 | ||
11858 | PR exp/17095: | |
11859 | * NEWS: Update. | |
11860 | * std-operator.def (UNOP_ALIGNOF): New operator. | |
11861 | * expprint.c (dump_subexp_body_standard) <case UNOP_ALIGNOF>: | |
11862 | New. | |
11863 | * eval.c (evaluate_subexp_standard) <case UNOP_ALIGNOF>: New. | |
11864 | * c-lang.c (c_op_print_tab): Add alignof. | |
11865 | * c-exp.y (ALIGNOF): New token. | |
11866 | (exp): Add "ALIGNOF" production. | |
11867 | (ident_tokens): Add _Alignof and alignof. | |
11868 | ||
2b4424c3 TT |
11869 | 2018-04-30 Tom Tromey <tom@tromey.com> |
11870 | ||
11871 | * i386-tdep.c (i386_type_align): New function. | |
11872 | (i386_gdbarch_init): Update. | |
11873 | * gdbarch.sh (type_align): New method. | |
11874 | * gdbarch.c, gdbarch.h: Rebuild. | |
11875 | * arch-utils.h (default_type_align): Declare. | |
11876 | * arch-utils.c (default_type_align): New function. | |
11877 | * gdbtypes.h (TYPE_ALIGN_BITS): New define. | |
11878 | (struct type) <align_log2>: New field. | |
11879 | <instance_flags>: Now a bitfield. | |
11880 | (TYPE_RAW_ALIGN): New macro. | |
11881 | (type_align, type_raw_align, set_type_align): Declare. | |
11882 | * gdbtypes.c (type_align, type_raw_align, set_type_align): New | |
11883 | functions. | |
11884 | * dwarf2read.c (quirk_rust_enum): Set type alignment. | |
11885 | (get_alignment, maybe_set_alignment): New functions. | |
11886 | (read_structure_type, read_enumeration_type, read_array_type) | |
11887 | (read_set_type, read_tag_pointer_type, read_tag_reference_type) | |
11888 | (read_subrange_type, read_base_type): Set type alignment. | |
11889 | ||
d33bc52e SM |
11890 | 2018-04-30 Simon Marchi <simon.marchi@ericsson.com> |
11891 | ||
11892 | * dwarf2read.c (read_index_from_section): Use bool. | |
11893 | ||
e28b63a9 FG |
11894 | 2018-04-29 Fabian Groffen <grobian@gentoo.org> |
11895 | ||
11896 | PR gdb/22950 | |
11897 | * proc-events.c (init_syscall_table): Guard usage os SYS_uuidsys | |
11898 | with #ifdef. | |
11899 | ||
cd8c76e4 JR |
11900 | 2018-04-29 John Reiser <jreiser@BitWagon.com> |
11901 | ||
11902 | PR build/22873 | |
11903 | * gdb/Makefile.in: (.c:.l, .c:.y): Write the target only in the | |
11904 | last step, and do it atomically. | |
11905 | ||
476d250e AO |
11906 | 2018-04-27 Alexandre Oliva <aoliva@redhat.com> |
11907 | ||
11908 | * compile/compile-c-types.c (convert_int, convert_float): | |
11909 | Update for C FE v1. | |
11910 | ||
6873858b TT |
11911 | 2018-04-27 Tom Tromey <tom@tromey.com> |
11912 | ||
11913 | PR rust/22545: | |
11914 | * rust-lang.c (rust_inclusive_range_type_p): New function. | |
11915 | (rust_range): Handle inclusive ranges. | |
11916 | (rust_compute_range): Likewise. | |
11917 | * rust-exp.y (struct rust_op) <inclusive>: New field. | |
11918 | (DOTDOTEQ): New constant. | |
11919 | (range_expr): Add "..=" productions. | |
11920 | (operator_tokens): Add "..=" token. | |
11921 | (ast_range): Add "inclusive" parameter. | |
11922 | (convert_ast_to_expression) <case OP_RANGE>: Handle inclusive | |
11923 | ranges. | |
11924 | * parse.c (operator_length_standard) <case OP_RANGE>: Handle new | |
11925 | bounds values. | |
11926 | * expression.h (enum range_type) <NONE_BOUND_DEFAULT_EXCLUSIVE, | |
11927 | LOW_BOUND_DEFAULT_EXCLUSIVE>: New constants. | |
11928 | Update comments. | |
11929 | * expprint.c (print_subexp_standard): Handle new bounds values. | |
11930 | (dump_subexp_body_standard): Likewise. | |
11931 | ||
632e107b TT |
11932 | 2018-04-27 Tom Tromey <tom@tromey.com> |
11933 | ||
11934 | * configure: Rebuild. | |
11935 | * warning.m4 (AM_GDB_WARNINGS): Add -Wsuggest-override. | |
11936 | * dwarf2loc.c (class dwarf_evaluate_loc_desc): Use "override", not | |
11937 | "OVERRIDE". | |
11938 | (class symbol_needs_eval_context): Likewise. | |
11939 | * dwarf2read.c (mock_mapped_index::symbol_name_count) | |
11940 | (mock_mapped_index::symbol_name_at): Use "override". Remove | |
11941 | "virtual". | |
11942 | * dwarf2-frame.c (dwarf_expr_executor::get_addr_index): Use | |
11943 | "override". | |
11944 | (class dwarf_expr_executor): Use "override", not "OVERRIDE". | |
11945 | * aarch64-tdep.c (instruction_reader::read): Use "override". | |
11946 | (instruction_reader_test::read): Likewise. | |
11947 | * arm-tdep.c (instruction_reader::read): Use "override". | |
11948 | (instruction_reader_thumb::read): Likewise. | |
11949 | ||
b75abf5b AK |
11950 | 2018-04-26 Andrzej Kaczmarek <andrzej.kaczmarek@codecoup.pl> |
11951 | ||
11952 | PR remote/9665 | |
11953 | * remote.c (send_g_packet): Use putpkt/getpkt/packet_check_result | |
11954 | instead of remote_send. | |
11955 | (remote_send): Remove. | |
11956 | ||
79188d8d PA |
11957 | 2018-04-26 Pedro Alves <palves@redhat.com> |
11958 | ||
11959 | * elfread.c (elf_gnu_ifunc_resolver_return_stop): Use | |
11960 | find_function_start_sal instead of find_pc_line. | |
11961 | ||
f50776aa PA |
11962 | 2018-04-26 Pedro Alves <palves@redhat.com> |
11963 | ||
11964 | * breakpoint.c (set_breakpoint_location_function): Handle | |
11965 | mst_data_gnu_ifunc. | |
11966 | * c-exp.y (variable production): Handle mst_data_gnu_ifunc. | |
11967 | * elfread.c (elf_symtab_read): Give data symbols with | |
11968 | BSF_GNU_INDIRECT_FUNCTION set mst_data_gnu_ifunc type. | |
11969 | (elf_rel_plt_read): Update comment. | |
11970 | * linespec.c (convert_linespec_to_sals): Handle | |
11971 | mst_data_gnu_ifunc. | |
11972 | (minsym_found): Handle mst_data_gnu_ifunc. | |
11973 | * minsyms.c (msymbol_is_function, minimal_symbol_reader::record) | |
11974 | (find_solib_trampoline_target): Handle mst_data_gnu_ifunc. | |
11975 | * parse.c (find_minsym_type_and_address): Handle | |
11976 | mst_data_gnu_ifunc. | |
11977 | * symmisc.c (dump_msymbols): Handle mst_data_gnu_ifunc. | |
11978 | * symtab.c (find_gnu_ifunc): Handle mst_data_gnu_ifunc. | |
11979 | * symtab.h (minimal_symbol_type) <mst_text_gnu_ifunc>: Update | |
11980 | comment. | |
11981 | <mst_data_gnu_ifunc>: New enumerator. | |
11982 | ||
20944a6e PA |
11983 | 2018-04-26 Pedro Alves <palves@redhat.com> |
11984 | ||
11985 | * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Rename to ... | |
11986 | (lookup_minimal_symbol_by_pc_section): ... this. Replace | |
11987 | 'want_trampoline' parameter by a lookup_msym_prefer parameter. | |
11988 | Handle it. | |
11989 | (lookup_minimal_symbol_by_pc_section): Delete old implementation. | |
11990 | (lookup_minimal_symbol_by_pc): Adjust. | |
11991 | (in_gnu_ifunc_stub): Prefer GNU ifunc symbols. | |
11992 | (lookup_solib_trampoline_symbol_by_pc): Adjust. | |
11993 | * minsyms.h (lookup_msym_prefer): New enum. | |
11994 | (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline' | |
11995 | parameter by a lookup_msym_prefer parameter. | |
11996 | ||
1adeb822 PA |
11997 | 2018-04-26 Pedro Alves <palves@redhat.com> |
11998 | ||
11999 | * elfread.c (elf_gnu_ifunc_record_cache): Check if the symbol name | |
12000 | ends in "@plt" instead of looking at the symbol's section. | |
12001 | ||
a0aca7b0 PA |
12002 | 2018-04-26 Pedro Alves <palves@redhat.com> |
12003 | ||
12004 | * blockframe.c (cache_pc_function_is_gnu_ifunc): Delete. Remove | |
12005 | all references. | |
12006 | (find_pc_partial_function_gnu_ifunc): Rename to ... | |
12007 | (find_pc_partial_function): ... this, and remove references to | |
12008 | 'is_gnu_ifunc_p'. | |
12009 | (find_pc_partial_function): Delete old implementation. | |
12010 | * symtab.h (find_pc_partial_function_gnu_ifunc): Delete. | |
12011 | ||
76af0f26 PA |
12012 | 2018-04-26 Pedro Alves <palves@redhat.com> |
12013 | ||
12014 | * linespec.c (struct bound_minimal_symbol_search_key): New. | |
12015 | (convert_linespec_to_sals): Sort minimal symbols earlier. Don't | |
12016 | skip first line if we found a GNU ifunc minimal symbol by name. | |
12017 | (compare_msymbols): Change parameters to work with a destructured | |
12018 | lhs minsym. | |
12019 | (compare_msymbols_for_qsort, compare_msymbols_for_bsearch): New | |
12020 | functions. | |
12021 | ||
3467ec66 PA |
12022 | 2018-04-26 Pedro Alves <palves@redhat.com> |
12023 | ||
12024 | * breakpoint.c (set_breakpoint_location_function): Don't resolve | |
12025 | ifunc targets here. Instead, if we have an ifunc minsym, use its | |
12026 | address/name. | |
12027 | (add_location_to_breakpoint): Store the minsym and the objfile in | |
12028 | the breakpoint location. | |
12029 | * breakpoint.h (bp_location) <msymbol, objfile>: New fields. | |
12030 | * linespec.c (minsym_found): Resolve GNU ifunc targets here. | |
12031 | Record the minsym in the sal. | |
12032 | * symtab.h (symtab_and_line) <msymbol>: New field. | |
12033 | ||
28f4fa4d PA |
12034 | 2018-04-26 Pedro Alves <palves@redhat.com> |
12035 | ||
12036 | * elfread.c (elf_gnu_ifunc_resolve_by_got): Don't write to *ADDR_P | |
12037 | unless we actually resolved the ifunc. | |
12038 | ||
ca31ab1d PA |
12039 | 2018-04-26 Pedro Alves <palves@redhat.com> |
12040 | ||
12041 | * c-exp.y (variable production): Prefer ifunc minsyms over | |
12042 | regular function symbols. | |
12043 | * symtab.c (find_gnu_ifunc): New function. | |
12044 | * minsyms.h (lookup_msym_prefer): New enum. | |
12045 | (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline' | |
12046 | parameter by a lookup_msym_prefer parameter. | |
12047 | * symtab.h (find_gnu_ifunc): New declaration. | |
12048 | ||
8388016d PA |
12049 | 2018-04-26 Pedro Alves <palves@redhat.com> |
12050 | ||
12051 | * blockframe.c (find_gnu_ifunc_target_type): New function. | |
12052 | (find_function_type): New. | |
12053 | * eval.c (evaluate_var_msym_value): For GNU ifunc types, always | |
12054 | return a value with a memory address. | |
12055 | (eval_call): For calls to GNU ifunc functions, try to find the | |
12056 | type of the target function from the type that the resolver | |
12057 | returns. | |
12058 | * gdbtypes.c (objfile_type): Don't install a return type for ifunc | |
12059 | symbols. | |
12060 | * infcall.c (find_function_return_type): Delete. | |
12061 | (find_function_addr): Add 'function_type' parameter. For calls to | |
12062 | GNU ifunc functions, try to find the type of the target function | |
12063 | from the type that the resolver returns, and return it via | |
12064 | FUNCTION_TYPE. | |
12065 | (call_function_by_hand_dummy): Adjust to use the function type | |
12066 | returned by find_function_addr. | |
12067 | (find_function_addr): Add 'function_type' parameter and move | |
12068 | description here. | |
12069 | * symtab.h (find_function_type, find_gnu_ifunc_target_type): New | |
12070 | declarations. | |
12071 | ||
a376e11d PA |
12072 | 2018-04-26 Pedro Alves <palves@redhat.com> |
12073 | ||
12074 | * c-exp.y (variable production): Skip finding an alias for ifunc | |
12075 | symbols. | |
12076 | ||
02e169e2 PA |
12077 | 2018-04-26 Pedro Alves <palves@redhat.com> |
12078 | ||
12079 | * elfread.c (elf_rel_plt_read): Look for relocations for .got.plt too. | |
12080 | ||
249b5733 PA |
12081 | 2018-04-25 Pedro Alves <palves@redhat.com> |
12082 | ||
12083 | * infcmd.c (kill_command): Print the pid as string, not the whole | |
12084 | thread's ptid. Add comment. s/has been killed/killed/ in output | |
12085 | message. | |
12086 | * remote.c (remote_detach_1): Print the pid as string, not the | |
12087 | whole thread's ptid. | |
12088 | ||
f67c0c91 SDJ |
12089 | 2018-04-24 Jan Kratochvil <jan.kratochvil@redhat.com> |
12090 | Sergio Durigan Junior <sergiodj@redhat.com> | |
12091 | Pedro Alves <palves@redhat.com> | |
12092 | ||
12093 | * infcmd.c (kill_command): Print message when inferior has | |
12094 | been killed. | |
12095 | * inferior.c (print_inferior_events): Remove 'static'. Set as | |
12096 | '1'. | |
12097 | (add_inferior): Improve message printed when | |
12098 | 'print_inferior_events' is on. | |
12099 | (exit_inferior): Remove message printed when | |
12100 | 'print_inferior_events' is on. | |
12101 | (detach_inferior): Improve message printed when | |
12102 | 'print_inferior_events' is on. | |
12103 | (initialize_inferiors): Use 'add_inferior_silent' to set | |
12104 | 'current_inferior_'. | |
12105 | * inferior.h (print_inferior_events): Declare here as | |
12106 | 'extern'. | |
12107 | * infrun.c (follow_fork_inferior): Print '[Attaching...]' or | |
12108 | '[Detaching...]' messages when 'print_inferior_events' is on. | |
12109 | Use 'add_thread_silent' instead of 'add_thread'. Add '[' and ']' | |
12110 | as prefix/suffix for messages. Remove periods. Fix erroneous | |
12111 | 'Detaching after fork from child...', replace it by '... from | |
12112 | parent...'. | |
12113 | (handle_vfork_child_exec_or_exit): Add '[' and ']' as | |
12114 | prefix/suffix when printing 'Detaching...' messages. Print | |
12115 | them when 'print_inferior_events' is on. | |
12116 | * remote.c (remote_detach_1): Print message when detaching | |
12117 | from inferior and '!is_fork_parent'. | |
12118 | ||
e427af18 TT |
12119 | 2018-04-24 Tom Tromey <tom@tromey.com> |
12120 | ||
12121 | * cli-out.h: Reindent. | |
12122 | ||
05b1d8d6 TT |
12123 | 2018-04-24 Tom Tromey <tom@tromey.com> |
12124 | ||
12125 | * cli-out.c (cli_ui_out::out_field_fmt): Remove. | |
12126 | (cli_ui_out::do_field_string): Use fputs_filtered. | |
12127 | * cli-out.h (class cli_ui_out) <out_field_fmt>: Remove. | |
12128 | ||
a95c7dab TT |
12129 | 2018-04-23 Tom Tromey <tom@tromey.com> |
12130 | ||
12131 | * guile/scm-frame.c (gdbscm_frame_read_var): Use | |
12132 | gdb::unique_xmalloc_ptr. | |
12133 | ||
458412c3 TT |
12134 | 2018-04-23 Tom Tromey <tom@tromey.com> |
12135 | ||
12136 | * configure: Rebuild. | |
12137 | ||
db86b02b RS |
12138 | 2018-04-22 Rajendra SY <rajendra.sy@gmail.com> |
12139 | ||
12140 | PR gdb/23095 | |
12141 | * gdb/testsuite/gdb.base/break-probes.exp: Pass shlib_load to | |
12142 | prepare_for_testing. Set normal_bp to r_debug_state if target | |
12143 | is bsd. | |
12144 | ||
00aecdcf PA |
12145 | 2018-04-21 Pedro Alves <palves@redhat.com> |
12146 | Rajendra SY <rajendra.sy@gmail.com> | |
12147 | ||
12148 | * inf-ptrace.c (inf_ptrace_attach): Mark the thread as executing. | |
12149 | * remote.c (extended_remote_attach): In all-stop mode, mark the | |
12150 | thread as executing. | |
12151 | ||
224608c3 PW |
12152 | 2018-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
12153 | ||
12154 | * thread.c (thread_apply_all_command): Fix comment. | |
12155 | (thread_command): Fix comment. | |
12156 | ||
3b74854b AH |
12157 | 2018-04-10 Alan Hayward <alan.hayward@arm.com> |
12158 | ||
12159 | * common/tdesc.h (tdesc_create_feature): Remove xml filename | |
12160 | parameter. | |
12161 | * features/aarch64-core.c (create_feature_aarch64_core): | |
12162 | Regenerate. | |
12163 | * features/aarch64-fpu.c (create_feature_aarch64_fpu): | |
12164 | Likewise. | |
12165 | * features/i386/32bit-avx.c (create_feature_i386_32bit_avx): | |
12166 | Likewise. | |
12167 | * features/i386/32bit-avx512.c | |
12168 | (create_feature_i386_32bit_avx512): Likewise. | |
12169 | * features/i386/32bit-core.c (create_feature_i386_32bit_core): | |
12170 | Likewise. | |
12171 | * features/i386/32bit-linux.c (create_feature_i386_32bit_linux): | |
12172 | Likewise. | |
12173 | * features/i386/32bit-mpx.c (create_feature_i386_32bit_mpx): | |
12174 | Likewise. | |
12175 | * features/i386/32bit-pkeys.c (create_feature_i386_32bit_pkeys): | |
12176 | Likewise. | |
12177 | * features/i386/32bit-sse.c (create_feature_i386_32bit_sse): | |
12178 | Likewise. | |
12179 | * features/i386/64bit-avx.c (create_feature_i386_64bit_avx): | |
12180 | Likewise. | |
12181 | * features/i386/64bit-avx512.c | |
12182 | (create_feature_i386_64bit_avx512): Likewise. | |
12183 | * features/i386/64bit-core.c (create_feature_i386_64bit_core): | |
12184 | Likewise. | |
12185 | * features/i386/64bit-linux.c (create_feature_i386_64bit_linux): | |
12186 | Likewise. | |
12187 | * features/i386/64bit-mpx.c (create_feature_i386_64bit_mpx): | |
12188 | Likewise. | |
12189 | * features/i386/64bit-pkeys.c (create_feature_i386_64bit_pkeys): | |
12190 | Likewise. | |
12191 | * features/i386/64bit-segments.c | |
12192 | (create_feature_i386_64bit_segments): Likewise. | |
12193 | * features/i386/64bit-sse.c (create_feature_i386_64bit_sse): | |
12194 | Likewise. | |
12195 | * features/i386/x32-core.c | |
12196 | (create_feature_i386_x32_core): Likewise. | |
12197 | * features/tic6x-c6xp.c (create_feature_tic6x_c6xp): Likewise. | |
12198 | * features/tic6x-core.c (create_feature_tic6x_core): Likewise. | |
12199 | * features/tic6x-gp.c (create_feature_tic6x_gp): Likewise. | |
12200 | * target-descriptions.c: In generated code, don't pass xml | |
12201 | filename. | |
12202 | ||
e98577a9 AH |
12203 | 2018-04-18 Alan Hayward <alan.hayward@arm.com> |
12204 | ||
12205 | * common/tdesc.c (print_xml_feature::visit_pre): Add xml parsing. | |
12206 | (print_xml_feature::visit_post): Likewise. | |
12207 | (print_xml_feature::visit): Likewise. | |
12208 | * common/tdesc.h (tdesc_get_features_xml): Use const tdesc. | |
12209 | (print_xml_feature): Add new class. | |
12210 | * regformats/regdat.sh: Null xmltarget on feature targets. | |
12211 | * target-descriptions.c (struct target_desc): Add xmltarget. | |
12212 | (maintenance_check_tdesc_xml_convert): Add unittest function. | |
12213 | (tdesc_get_features_xml): Add function to get xml. | |
12214 | (maintenance_check_xml_descriptions): Test xml generation. | |
12215 | * xml-tdesc.c (string_read_description_xml): Add function. | |
12216 | * xml-tdesc.h (string_read_description_xml): Add declaration. | |
12217 | ||
ad7fc756 AH |
12218 | 2018-04-18 Alan Hayward <alan.hayward@arm.com> |
12219 | ||
12220 | * features/Makefile: Add feature marker to targets with new style | |
12221 | target descriptions. | |
12222 | * regformats/aarch64.dat: Regenerate. | |
12223 | * regformats/i386/amd64-avx-avx512-linux.dat: Likewise. | |
12224 | * regformats/i386/amd64-avx-linux.dat: Likewise. | |
12225 | * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Likewise. | |
12226 | * regformats/i386/amd64-avx-mpx-linux.dat: Likewise. | |
12227 | * regformats/i386/amd64-linux.dat: Likewise. | |
12228 | * regformats/i386/amd64-mpx-linux.dat: Likewise. | |
12229 | * regformats/i386/amd64.dat: Likewise. | |
12230 | * regformats/i386/i386-avx-avx512-linux.dat: Likewise. | |
12231 | * regformats/i386/i386-avx-linux.dat: Likewise. | |
12232 | * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Likewise. | |
12233 | * regformats/i386/i386-avx-mpx-linux.dat: Likewise. | |
12234 | * regformats/i386/i386-linux.dat: Likewise. | |
12235 | * regformats/i386/i386-mmx-linux.dat: Likewise. | |
12236 | * regformats/i386/i386-mpx-linux.dat: Likewise. | |
12237 | * regformats/i386/i386.dat: Likewise. | |
12238 | * regformats/i386/x32-avx-avx512-linux.dat: Likewise. | |
12239 | * regformats/i386/x32-avx-linux.dat: Likewise. | |
12240 | * regformats/i386/x32-linux.dat: Likewise. | |
12241 | * regformats/tic6x-c62x-linux.dat: Likewise. | |
12242 | * regformats/tic6x-c64x-linux.dat: Likewise. | |
12243 | * regformats/tic6x-c64xp-linux.dat: Likewise. | |
12244 | * regformats/regdat.sh: Parse feature marker. | |
12245 | ||
d278f585 AH |
12246 | 2018-04-18 Alan Hayward <alan.hayward@arm.com> |
12247 | ||
12248 | * common/tdesc.h (tdesc_architecture_name): Add new declaration. | |
12249 | (tdesc_osabi_name): Likewise. | |
12250 | * target-descriptions.c (tdesc_architecture_name): Add new | |
12251 | function. | |
12252 | (tdesc_osabi_name): Likewise. | |
12253 | ||
eee8a18d AH |
12254 | 2018-04-18 Alan Hayward <alan.hayward@arm.com> |
12255 | ||
12256 | * common/tdesc.c (tdesc_predefined_type): Move to here. | |
12257 | (tdesc_named_type): Likewise. | |
12258 | (tdesc_create_vector): Likewise. | |
12259 | (tdesc_create_struct): Likewise. | |
12260 | (tdesc_set_struct_size): Likewise. | |
12261 | (tdesc_create_union): Likewise. | |
12262 | (tdesc_create_flags): Likewise. | |
12263 | (tdesc_create_enum): Likewise. | |
12264 | (tdesc_add_field): Likewise. | |
12265 | (tdesc_add_typed_bitfield): Likewise. | |
12266 | (tdesc_add_bitfield): Likewise. | |
12267 | (tdesc_add_flag): Likewise. | |
12268 | (tdesc_add_enum_value): Likewise. | |
12269 | * common/tdesc.h (struct tdesc_type_builtin): Likewise. | |
12270 | (struct tdesc_type_vector): Likewise. | |
12271 | (struct tdesc_type_field): Likewise. | |
12272 | (struct tdesc_type_with_fields): Likewise. | |
12273 | (tdesc_create_enum): Add declaration. | |
12274 | (tdesc_add_typed_bitfield): Likewise. | |
12275 | (tdesc_add_enum_value): Likewise. | |
12276 | * target-descriptions.c (tdesc_type_field): Move from here. | |
12277 | (tdesc_type_builtin): Likewise. | |
12278 | (tdesc_type_vector): Likewise. | |
12279 | (tdesc_type_with_fields): Likewise. | |
12280 | (tdesc_predefined_types): Likewise. | |
12281 | (tdesc_named_type): Likewise. | |
12282 | (tdesc_create_vector): Likewise. | |
12283 | (tdesc_create_struct): Likewise. | |
12284 | (tdesc_set_struct_size): Likewise. | |
12285 | (tdesc_create_union): Likewise. | |
12286 | (tdesc_create_flags): Likewise. | |
12287 | (tdesc_create_enum): Likewise. | |
12288 | (tdesc_add_field): Likewise. | |
12289 | (tdesc_add_typed_bitfield): Likewise. | |
12290 | (tdesc_add_bitfield): Likewise. | |
12291 | (tdesc_add_flag): Likewise. | |
12292 | (tdesc_add_enum_value): Likewise. | |
12293 | * gdb/target-descriptions.h (tdesc_create_enum): Likewise. | |
12294 | (tdesc_add_typed_bitfield): Likewise. | |
12295 | (tdesc_add_enum_value): Likewise. | |
12296 | ||
82ec9bc7 AH |
12297 | 2018-04-18 Alan Hayward <alan.hayward@arm.com> |
12298 | ||
12299 | * common/tdesc.c (tdesc_feature::accept): Move to here. | |
12300 | (tdesc_feature::operator==): Likewise. | |
12301 | (tdesc_create_reg): Likewise. | |
12302 | * common/tdesc.h (tdesc_type_kind): Likewise. | |
12303 | (struct tdesc_type): Likewise. | |
12304 | (struct tdesc_feature): Likewise. | |
12305 | * regformats/regdat.sh: Create a feature. | |
12306 | * target-descriptions.c (tdesc_type_kind): Move from here. | |
12307 | (tdesc_type): Likewise. | |
12308 | (tdesc_type_up): Likewise. | |
12309 | (tdesc_feature): Likewise. | |
12310 | (tdesc_create_reg): Likewise. | |
12311 | ||
ea3e7d71 AH |
12312 | 2018-04-18 Alan Hayward <alan.hayward@arm.com> |
12313 | ||
12314 | * Makefile.in: Add arch/tdesc.c | |
12315 | * common/tdesc.c: New file. | |
12316 | * common/tdesc.h (tdesc_element_visitor): Move to here. | |
12317 | (tdesc_element): Likewise. | |
12318 | (tdesc_reg): Likewise. | |
12319 | (tdesc_reg_up): Likewise. | |
12320 | * regformats/regdef.h (reg): Add offset to constructors. | |
12321 | * target-descriptions.c (tdesc_element_visitor): Move from here. | |
12322 | (tdesc_element): Likewise. | |
12323 | (tdesc_reg): Likewise. | |
12324 | (tdesc_reg_up): Likewise. | |
12325 | ||
bedda9ac TT |
12326 | 2018-04-17 Tom Tromey <tom@tromey.com> |
12327 | ||
12328 | * dwarf2read.c (quirk_rust_enum): Conditionally drop the | |
12329 | discriminant field. | |
12330 | ||
a037790e TT |
12331 | 2018-04-17 Tom Tromey <tom@tromey.com> |
12332 | ||
12333 | * dwarf2read.c (quirk_rust_enum): Handle unions correctly. | |
12334 | ||
c7dcbf88 AA |
12335 | 2018-04-17 Andreas Arnez <arnez@linux.vnet.ibm.com> |
12336 | ||
12337 | * symtab.c (print_symbol_info): Skip printing filename and line | |
12338 | number when `last' is NULL. | |
12339 | (symtab_symbol_info): Use empty string instead of NULL for first | |
12340 | invocation of print_symbol_info. | |
12341 | (rbreak_command): Pass NULL to `last' parameter of | |
12342 | print_symbol_info. | |
12343 | ||
07d28c77 SM |
12344 | 2018-04-16 Simon Marchi <simon.marchi@ericsson.com> |
12345 | ||
12346 | * linux-tdep.c (linux_spu_make_corefile_notes): Return note_data | |
12347 | instead of nullptr. | |
12348 | ||
8a3de5e1 PA |
12349 | 2018-04-16 Pedro Alves <palves@redhat.com> |
12350 | ||
12351 | * MAINTAINERS (sh): Remove. | |
12352 | * Makefile.in (ALL_TARGET_OBS): Remove sh64-tdep.o. | |
12353 | (HFILES_NO_SRCDIR): Remove sh64-tdep.h. | |
12354 | (ALLDEPFILES): Remove sh64-tdep.c. | |
12355 | * NEWS: Mentions that support for SH-5/SH64 is removed. | |
12356 | * configure.tgt (sh*-*-linux*): Remove reference to sh64-tdep.o. | |
12357 | (sh*-*-openbsd*): Ditto. | |
12358 | (sh64-*-elf*): Remove. | |
12359 | (sh*): Remove. | |
12360 | * regcache.c (cooked_write_test): Remove bfd_mach_sh5 case. | |
12361 | * sh-linux-tdep.c: Remove reference to bfd_mach_sh5. | |
12362 | * sh-tdep.c: No longer include "sh64-tdep.h". | |
12363 | (sh_gdbarch_init): Remove reference to bfd_mach_sh5. | |
12364 | * sh64-tdep.c, sh64-tdep.h: Remove files. | |
12365 | ||
a2a79012 PA |
12366 | 2018-04-16 Pedro Alves <palves@redhat.com> |
12367 | ||
12368 | * MAINTAINERS: Remove m88k. | |
12369 | * Makefile.in (ALL_TARGET_OBS): Remove m88k-tdep.o. | |
12370 | (HFILES_NO_SRCDIR): Remove m88k-tdep.h. | |
12371 | (ALLDEPFILES): Remove m88k-bsd-nat.c and m88k-tdep.c. | |
12372 | * NEWS: Mention that support for m88k was removed. | |
12373 | * configure.host (m88*-*-*): Remove support. | |
12374 | * configure.nat (m88k-*-*): Remove support. | |
12375 | * configure.tgt (m88*-*-openbsd*): Remove. | |
12376 | * m88k-bsd-nat.c, m88k-tdep.c, m88k-tdep.h: Delete. | |
12377 | ||
eda4efb1 SM |
12378 | 2018-04-15 Simon Marchi <simon.marchi@polymtl.ca> |
12379 | ||
12380 | * configure.tgt (x86_tobjs): New variable. | |
12381 | (amd64_tobjs, i386_tobjs): Use it. | |
12382 | ||
b744723f AA |
12383 | 2018-04-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
12384 | ||
12385 | * symtab.c (print_symbol_info): Precede the symbol definition by | |
12386 | the line number when available. | |
12387 | * NEWS: Advertise this enhancement. | |
12388 | ||
4a4495d6 MM |
12389 | 2018-04-13 Markus Metzger <markus.t.metzger@intel.com> |
12390 | ||
12391 | * NEWS (New options): announce set/show record btrace cpu. | |
12392 | * btrace.c: Include record-btrace.h. | |
12393 | (btrace_compute_ftrace_pt): Skip enabling errata workarounds if | |
12394 | the vendor is unknown. | |
12395 | (btrace_compute_ftrace_1): Add cpu parameter. Update callers. | |
12396 | Maybe overwrite the btrace configuration's cpu. | |
12397 | (btrace_compute_ftrace): Add cpu parameter. Update callers. | |
12398 | (btrace_fetch): Add cpu parameter. Update callers. | |
12399 | (btrace_maint_update_pt_packets): Call record_btrace_get_cpu. | |
12400 | Maybe overwrite the btrace configuration's cpu. Skip enabling | |
12401 | errata workarounds if the vendor is unknown. | |
12402 | * python/py-record-btrace.c: Include record-btrace.h. | |
12403 | (recpy_bt_begin, recpy_bt_end, recpy_bt_instruction_history) | |
12404 | (recpy_bt_function_call_history): Call record_btrace_get_cpu. | |
12405 | * record-btrace.c (record_btrace_cpu_state_kind): New. | |
12406 | (record_btrace_cpu): New. | |
12407 | (set_record_btrace_cpu_cmdlist): New. | |
12408 | (record_btrace_get_cpu): New. | |
12409 | (require_btrace_thread, record_btrace_info) | |
12410 | (record_btrace_resume_thread): Call record_btrace_get_cpu. | |
12411 | (cmd_set_record_btrace_cpu_none): New. | |
12412 | (cmd_set_record_btrace_cpu_auto): New. | |
12413 | (cmd_set_record_btrace_cpu): New. | |
12414 | (cmd_show_record_btrace_cpu): New. | |
12415 | (_initialize_record_btrace): Initialize set/show record btrace cpu | |
12416 | commands. | |
12417 | * record-btrace.h (record_btrace_get_cpu): New. | |
12418 | ||
69f90c75 MM |
12419 | 2018-04-13 Markus Metzger <markus.t.metzger@intel.com> |
12420 | ||
12421 | * record.c (set_record_command): Fix typo in message. | |
12422 | ||
b85310e1 MM |
12423 | 2018-04-13 Markus Metzger <markus.t.metzger@intel.com> |
12424 | ||
12425 | * record-btrace.c (cmd_set_record_btrace): Print sub-commands. | |
12426 | ||
1d509aa6 MM |
12427 | 2018-04-13 Markus Metzger <markus.t.metzger@intel.com> |
12428 | ||
12429 | * infrun.c (process_event_stop_test): Call | |
12430 | gdbarch_in_indirect_branch_thunk. | |
12431 | * gdbarch.sh (in_indirect_branch_thunk): New. | |
12432 | * gdbarch.c: Regenerated. | |
12433 | * gdbarch.h: Regenerated. | |
12434 | * x86-tdep.h: New. | |
12435 | * x86-tdep.c: New. | |
12436 | * Makefile.in (ALL_TARGET_OBS): Add x86-tdep.o. | |
12437 | (HFILES_NO_SRCDIR): Add x86-tdep.h. | |
12438 | (ALLDEPFILES): Add x86-tdep.c. | |
12439 | * arch-utils.h (default_in_indirect_branch_thunk): New. | |
12440 | * arch-utils.c (default_in_indirect_branch_thunk): New. | |
12441 | * i386-tdep: Include x86-tdep.h. | |
12442 | (i386_in_indirect_branch_thunk): New. | |
12443 | (i386_elf_init_abi): Set in_indirect_branch_thunk gdbarch | |
12444 | function. | |
12445 | * amd64-tdep: Include x86-tdep.h. | |
12446 | (amd64_in_indirect_branch_thunk): New. | |
12447 | (amd64_init_abi): Set in_indirect_branch_thunk gdbarch function. | |
12448 | ||
b4be9bfd JK |
12449 | 2018-04-12 Jan Kratochvil <jan.kratochvil@redhat.com> |
12450 | ||
12451 | PR gdb/23053 | |
12452 | * dwarf-index-write.c (data_buf::grow) (write_one_signatured_type) | |
12453 | (recursively_write_psymbols) (debug_names::recursively_write_psymbols) | |
12454 | (debug_names::write_one_signatured_type): Fix -D_GLIBCXX_DEBUG | |
12455 | regression. | |
12456 | ||
53d7df28 TT |
12457 | 2018-04-12 Tom Tromey <tom@tromey.com> |
12458 | ||
12459 | * rust-lang.c (rust_print_struct_def): Remove univariant code. | |
12460 | (rust_evaluate_subexp): Likewise. | |
12461 | ||
70b33f19 PA |
12462 | 2018-04-12 Pedro Alves <palves@redhat.com> |
12463 | ||
12464 | * procfs.c (procfs_detach): Make forward declaration's prototype | |
12465 | match definition's protototype. | |
12466 | (proc_get_LDT_entry): Remove stale do_cleanups call. | |
12467 | ||
436411b1 PA |
12468 | 2018-04-12 Pedro Alves <palves@redhat.com> |
12469 | ||
12470 | * target.h (target_ops::to_has_exited): Delete. | |
12471 | (target_has_exited): Delete. | |
12472 | * target-delegates.c: Regenerate. | |
12473 | ||
20db9c52 PA |
12474 | 2018-04-11 Pedro Alves <palves@redhat.com> |
12475 | ||
12476 | * target.c (fileio_fh_t::t): Add comment. | |
12477 | (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat) | |
12478 | (target_fileio_close): Handle a NULL target. | |
12479 | (invalidate_fileio_fh): New. | |
12480 | (target_close): Call it. | |
12481 | * remote.c (remote_hostio_send_command): No longer check whether | |
12482 | remote_desc is open. | |
12483 | ||
5ff79300 PA |
12484 | 2018-04-11 Pedro Alves <palves@redhat.com> |
12485 | ||
12486 | * target.c (fileio_fh_t): Make it a named struct instead of a | |
12487 | typedef. | |
12488 | (fileio_fh_t::is_closed): New method. | |
12489 | (DEF_VEC_O (fileio_fh_t)): Remove. | |
12490 | (fileio_fhandles): Now a std::vector. | |
12491 | (is_closed_fileio_fh): Delete. | |
12492 | (acquire_fileio_fd): Adjust. Rename parameters. | |
12493 | (release_fileio_fd): Adjust. | |
12494 | (fileio_fd_to_fh): Reimplement as a function instead of a macro. | |
12495 | (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat) | |
12496 | (target_fileio_close): Adjust. | |
12497 | ||
6e22e10d SM |
12498 | 2018-04-10 Simon Marchi <simon.marchi@ericsson.com> |
12499 | ||
12500 | * auto-load.c (auto_load_safe_path_vec_update): Iterate by | |
12501 | index. | |
12502 | ||
731f534f PA |
12503 | 2018-04-10 Pedro Alves <palves@redhat.com> |
12504 | ||
12505 | * gdbthread.h (finish_thread_state_cleanup): Delete declaration. | |
12506 | (scoped_finish_thread_state): New class. | |
12507 | * infcmd.c (run_command_1): Use it instead of finish_thread_state | |
12508 | cleanup. | |
12509 | * infrun.c (proceed, prepare_for_detach, wait_for_inferior) | |
12510 | (fetch_inferior_event, normal_stop): Likewise. | |
12511 | * thread.c (finish_thread_state_cleanup): Delete. | |
12512 | ||
d5f4488f SM |
12513 | 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca> |
12514 | Pedro Alves <palves@redhat.com> | |
12515 | ||
12516 | * value.c: Include "selftest.h" and "common/array-view.h". | |
12517 | (struct range) <operator ==>: New. | |
12518 | (test_ranges_contain): New. | |
12519 | (check_ranges_vector): New. | |
12520 | (test_insert_into_bit_range_vector): New. | |
12521 | (_initialize_values): Register selftests. | |
12522 | * common/array-view.h (operator==, operator!=): New. | |
12523 | ||
b24531ed SM |
12524 | 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca> |
12525 | ||
12526 | * common/gdb_vecs.h (unordered_remove): Add overload that takes | |
12527 | an iterator. | |
12528 | * inline-frame.c: Include <algorithm>. | |
12529 | (struct inline_state): Add constructor. | |
12530 | (inline_state_s): Remove. | |
12531 | (DEF_VEC_O(inline_state_s)): Remove. | |
12532 | (inline_states): Change type to std::vector. | |
12533 | (find_inline_frame_state): Adjust to std::vector. | |
12534 | (allocate_inline_frame_state): Remove. | |
12535 | (clear_inline_frame_state): Adjust to std::vector. | |
12536 | (skip_inline_frames): Adjust to std::vector. | |
12537 | ||
c252925c SM |
12538 | 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca> |
12539 | ||
12540 | * tracepoint.h (struct trace_state_variable): Add constructor. | |
12541 | <name>: Change type to std::string. | |
12542 | * tracepoint.c (tsv_s): Remove. | |
12543 | (DEF_VEC_O(tsv_s)): Remove. | |
12544 | (tvariables): Change to std::vector. | |
12545 | (create_trace_state_variable): Adjust to std::vector. | |
12546 | (find_trace_state_variable): Likewise. | |
12547 | (find_trace_state_variable_by_number): Likewise. | |
12548 | (delete_trace_state_variable): Likewise. | |
12549 | (trace_variable_command): Adjust to std::string. | |
12550 | (delete_trace_variable_command): Likewise. | |
12551 | (tvariables_info_1): Adjust to std::vector. | |
12552 | (save_trace_state_variables): Likewise. | |
12553 | (start_tracing): Likewise. | |
12554 | (merge_uploaded_trace_state_variables): Adjust to std::vector | |
12555 | and std::string. | |
12556 | * target.h (struct target_ops) | |
12557 | <to_download_trace_state_variable>: Pass reference to | |
12558 | trace_state_variable. | |
12559 | * target-debug.h (target_debug_print_const_trace_state_variable_r): New. | |
12560 | * target-delegates.c: Re-generate. | |
12561 | * mi/mi-interp.c (mi_tsv_created): Adjust to std::string. | |
12562 | (mi_tsv_deleted): Likewise. | |
12563 | * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise. | |
12564 | * remote.c (remote_download_trace_state_variable): Change | |
12565 | pointer to reference and adjust. | |
12566 | * make-target-delegates (parse_argtypes): Handle references. | |
12567 | (write_function_header): Likewise. | |
12568 | (munge_type): Likewise. | |
12569 | ||
c9638d26 SM |
12570 | 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca> |
12571 | ||
12572 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add | |
12573 | string_view-selftests.c. | |
12574 | * unittests/basic_string_view/capacity/1.cc: Adapt to GDB | |
12575 | testsuite. | |
12576 | * unittests/basic_string_view/cons/char/1.cc: Likewise. | |
12577 | * unittests/basic_string_view/cons/char/2.cc: Likewise. | |
12578 | * unittests/basic_string_view/cons/char/3.cc: Likewise. | |
12579 | * unittests/basic_string_view/element_access/char/1.cc: | |
12580 | Likewise. | |
12581 | * unittests/basic_string_view/element_access/char/empty.cc: | |
12582 | Likewise. | |
12583 | * unittests/basic_string_view/element_access/char/front_back.cc: | |
12584 | Likewise. | |
12585 | * unittests/basic_string_view/inserters/char/2.cc: Likewise. | |
12586 | * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc: | |
12587 | Likewise. | |
12588 | * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc: | |
12589 | Likewise. | |
12590 | * unittests/basic_string_view/modifiers/swap/char/1.cc: | |
12591 | Likewise. | |
12592 | * unittests/basic_string_view/operations/compare/char/1.cc: | |
12593 | Likewise. | |
12594 | * unittests/basic_string_view/operations/compare/char/13650.cc: | |
12595 | Likewise. | |
12596 | * unittests/basic_string_view/operations/copy/char/1.cc: | |
12597 | Likewise. | |
12598 | * unittests/basic_string_view/operations/data/char/1.cc: | |
12599 | Likewise. | |
12600 | * unittests/basic_string_view/operations/find/char/1.cc: | |
12601 | Likewise. | |
12602 | * unittests/basic_string_view/operations/find/char/2.cc: | |
12603 | Likewise. | |
12604 | * unittests/basic_string_view/operations/find/char/3.cc: | |
12605 | Likewise. | |
12606 | * unittests/basic_string_view/operations/find/char/4.cc: | |
12607 | Likewise. | |
12608 | * unittests/basic_string_view/operations/rfind/char/1.cc: | |
12609 | Likewise. | |
12610 | * unittests/basic_string_view/operations/rfind/char/2.cc: | |
12611 | Likewise. | |
12612 | * unittests/basic_string_view/operations/rfind/char/3.cc: | |
12613 | Likewise. | |
12614 | * unittests/basic_string_view/operations/substr/char/1.cc: | |
12615 | Likewise. | |
12616 | * unittests/basic_string_view/operators/char/2.cc: Likewise. | |
12617 | * unittests/string_view-selftests.c: New file. | |
12618 | ||
fdc11678 SM |
12619 | 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca> |
12620 | ||
12621 | * unittests/basic_string_view/capacity/1.cc: New file. | |
12622 | * unittests/basic_string_view/capacity/empty_neg.cc: New file. | |
12623 | * unittests/basic_string_view/cons/char/1.cc: New file. | |
12624 | * unittests/basic_string_view/cons/char/2.cc: New file. | |
12625 | * unittests/basic_string_view/cons/char/3.cc: New file. | |
12626 | * unittests/basic_string_view/cons/wchar_t/1.cc: New file. | |
12627 | * unittests/basic_string_view/cons/wchar_t/2.cc: New file. | |
12628 | * unittests/basic_string_view/cons/wchar_t/3.cc: New file. | |
12629 | * unittests/basic_string_view/element_access/char/1.cc: New file. | |
12630 | * unittests/basic_string_view/element_access/char/2.cc: New file. | |
12631 | * unittests/basic_string_view/element_access/char/empty.cc: New file. | |
12632 | * unittests/basic_string_view/element_access/char/front_back.cc: New file. | |
12633 | * unittests/basic_string_view/element_access/wchar_t/1.cc: New file. | |
12634 | * unittests/basic_string_view/element_access/wchar_t/2.cc: New file. | |
12635 | * unittests/basic_string_view/element_access/wchar_t/empty.cc: New file. | |
12636 | * unittests/basic_string_view/element_access/wchar_t/front_back.cc: New file. | |
12637 | * unittests/basic_string_view/include.cc: New file. | |
12638 | * unittests/basic_string_view/inserters/char/1.cc: New file. | |
12639 | * unittests/basic_string_view/inserters/char/2.cc: New file. | |
12640 | * unittests/basic_string_view/inserters/char/3.cc: New file. | |
12641 | * unittests/basic_string_view/inserters/pod/10081-out.cc: New file. | |
12642 | * unittests/basic_string_view/inserters/wchar_t/1.cc: New file. | |
12643 | * unittests/basic_string_view/inserters/wchar_t/2.cc: New file. | |
12644 | * unittests/basic_string_view/inserters/wchar_t/3.cc: New file. | |
12645 | * unittests/basic_string_view/literals/types.cc: New file. | |
12646 | * unittests/basic_string_view/literals/values.cc: New file. | |
12647 | * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc: New file. | |
12648 | * unittests/basic_string_view/modifiers/remove_prefix/wchar_t/1.cc: New file. | |
12649 | * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc: New file. | |
12650 | * unittests/basic_string_view/modifiers/remove_suffix/wchar_t/1.cc: New file. | |
12651 | * unittests/basic_string_view/modifiers/swap/char/1.cc: New file. | |
12652 | * unittests/basic_string_view/modifiers/swap/wchar_t/1.cc: New file. | |
12653 | * unittests/basic_string_view/operations/compare/char/1.cc: New file. | |
12654 | * unittests/basic_string_view/operations/compare/char/13650.cc: New file. | |
12655 | * unittests/basic_string_view/operations/compare/char/2.cc: New file. | |
12656 | * unittests/basic_string_view/operations/compare/char/70483.cc: New file. | |
12657 | * unittests/basic_string_view/operations/compare/wchar_t/1.cc: New file. | |
12658 | * unittests/basic_string_view/operations/compare/wchar_t/13650.cc: New file. | |
12659 | * unittests/basic_string_view/operations/compare/wchar_t/2.cc: New file. | |
12660 | * unittests/basic_string_view/operations/copy/char/1.cc: New file. | |
12661 | * unittests/basic_string_view/operations/copy/wchar_t/1.cc: New file. | |
12662 | * unittests/basic_string_view/operations/data/char/1.cc: New file. | |
12663 | * unittests/basic_string_view/operations/data/wchar_t/1.cc: New file. | |
12664 | * unittests/basic_string_view/operations/find/char/1.cc: New file. | |
12665 | * unittests/basic_string_view/operations/find/char/2.cc: New file. | |
12666 | * unittests/basic_string_view/operations/find/char/3.cc: New file. | |
12667 | * unittests/basic_string_view/operations/find/char/4.cc: New file. | |
12668 | * unittests/basic_string_view/operations/find/wchar_t/1.cc: New file. | |
12669 | * unittests/basic_string_view/operations/find/wchar_t/2.cc: New file. | |
12670 | * unittests/basic_string_view/operations/find/wchar_t/3.cc: New file. | |
12671 | * unittests/basic_string_view/operations/find/wchar_t/4.cc: New file. | |
12672 | * unittests/basic_string_view/operations/rfind/char/1.cc: New file. | |
12673 | * unittests/basic_string_view/operations/rfind/char/2.cc: New file. | |
12674 | * unittests/basic_string_view/operations/rfind/char/3.cc: New file. | |
12675 | * unittests/basic_string_view/operations/rfind/wchar_t/1.cc: New file. | |
12676 | * unittests/basic_string_view/operations/rfind/wchar_t/2.cc: New file. | |
12677 | * unittests/basic_string_view/operations/rfind/wchar_t/3.cc: New file. | |
12678 | * unittests/basic_string_view/operations/string_conversion/1.cc: New file. | |
12679 | * unittests/basic_string_view/operations/substr/char/1.cc: New file. | |
12680 | * unittests/basic_string_view/operations/substr/wchar_t/1.cc: New file. | |
12681 | * unittests/basic_string_view/operators/char/2.cc: New file. | |
12682 | * unittests/basic_string_view/operators/wchar_t/2.cc: New file. | |
12683 | * unittests/basic_string_view/range_access/char/1.cc: New file. | |
12684 | * unittests/basic_string_view/range_access/wchar_t/1.cc: New file. | |
12685 | * unittests/basic_string_view/requirements/explicit_instantiation/1.cc: New file. | |
12686 | * unittests/basic_string_view/requirements/explicit_instantiation/char/1.cc: New file. | |
12687 | * unittests/basic_string_view/requirements/explicit_instantiation/char16_t/1.cc: New file. | |
12688 | * unittests/basic_string_view/requirements/explicit_instantiation/char32_t/1.cc: New file. | |
12689 | * unittests/basic_string_view/requirements/explicit_instantiation/wchar_t/1.cc: New file. | |
12690 | * unittests/basic_string_view/requirements/typedefs.cc: New file. | |
12691 | * unittests/basic_string_view/typedefs.cc: New file. | |
12692 | * unittests/basic_string_view/types/1.cc: New file. | |
12693 | ||
8345c4a2 SM |
12694 | 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca> |
12695 | ||
12696 | * common/gdb_string_view.h: Remove libstdc++ implementation | |
12697 | details, adjust to gdb reality. | |
12698 | * common/gdb_string_view.tcc: Likewise. | |
12699 | * cli/cli-script.c (struct string_view): Remove. | |
12700 | (user_args) <m_args>: Change element type to gdb::string_view. | |
12701 | (user_args::insert_args): Adjust. | |
12702 | ||
7adcdf08 SM |
12703 | 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca> |
12704 | ||
12705 | * common/gdb_string_view.h: New file. | |
12706 | * common/gdb_string_view.tcc: New file. | |
12707 | ||
41260ac2 SM |
12708 | 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca> |
12709 | ||
12710 | * ax_cxx_compile_stdcxx.m4: Sync with upstream. | |
12711 | * configure: Re-generate. | |
12712 | ||
0bee6dd4 PA |
12713 | 2018-04-09 Pedro Alves <palves@redhat.com> |
12714 | ||
12715 | * gdbarch.sh: Include "observable.h" instead of "observer.h". | |
12716 | (set_target_gdbarch): Call | |
12717 | gdb::observers::architecture_changed.notify instead of | |
12718 | observer_notify_architecture_changed. | |
12719 | ||
6f14adc5 SM |
12720 | 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca> |
12721 | ||
12722 | * tracepoint.c (struct current_traceframe_cleanup): Remove. | |
12723 | (do_restore_current_traceframe_cleanup): Remove. | |
12724 | (restore_current_traceframe_cleanup_dtor): Remove. | |
12725 | (make_cleanup_restore_current_traceframe): Remove. | |
12726 | (scoped_restore_current_traceframe::scoped_restore_current_traceframe): | |
12727 | New. | |
12728 | * tracepoint.h (struct scoped_restore_current_traceframe): New. | |
12729 | * infrun.c (fetch_inferior_event): Use | |
12730 | scoped_restore_current_traceframe. | |
12731 | ||
b2bdb8cf SM |
12732 | 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca> |
12733 | ||
12734 | * dwarf2read.h (struct dwarf2_per_objfile) <n_type_units>: | |
12735 | Remove. | |
12736 | <n_allocated_type_units>: Remove. | |
12737 | <all_type_units>: Change to std::vector. | |
12738 | * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust | |
12739 | to std::vector change. | |
12740 | (dwarf2_per_objfile::get_cutu): Likewise. | |
12741 | (dwarf2_per_objfile::get_tu): Likewise. | |
12742 | (create_signatured_type_table_from_index): Likewise. | |
12743 | (create_signatured_type_table_from_debug_names): Likewise. | |
12744 | (dw2_symtab_iter_next): Likewise. | |
12745 | (dw2_print_stats): Likewise. | |
12746 | (dw2_expand_all_symtabs): Likewise. | |
12747 | (dw2_expand_marked_cus): Likewise. | |
12748 | (dw2_debug_names_iterator::next): Likewise. | |
12749 | (dwarf2_initialize_objfile): Likewise. | |
12750 | (add_signatured_type_cu_to_table): Likewise. | |
12751 | (create_all_type_units): Likewise. | |
12752 | (add_type_unit): Likewise. | |
12753 | (struct tu_abbrev_offset): Add constructor. | |
12754 | (build_type_psymtabs_1): Adjust to std::vector change. | |
12755 | (print_tu_stats): Likewise. | |
12756 | * dwarf-index-write.c (check_dwarf64_offsets): Likewise. | |
12757 | (write_debug_names): Likewise. | |
12758 | ||
b76e467d SM |
12759 | 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca> |
12760 | ||
12761 | * dwarf2read.h (struct dwarf2_per_objfile) <all_comp_units>: Likewise. | |
12762 | Make an std::vector. | |
12763 | <n_comp_units>: Remove. | |
12764 | * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust | |
12765 | to std::vector change. | |
12766 | (dwarf2_per_objfile::get_cutu): Likewise. | |
12767 | (dwarf2_per_objfile::get_cu): Likewise. | |
12768 | (create_cus_from_index): Likewise. | |
12769 | (create_addrmap_from_index): Likewise. | |
12770 | (create_addrmap_from_aranges): Likewise. | |
12771 | (dwarf2_read_index): Likewise. | |
12772 | (dw2_find_last_source_symtab): Likewise. | |
12773 | (dw2_map_symtabs_matching_filename): Likewise. | |
12774 | (dw2_symtab_iter_next): Likewise. | |
12775 | (dw2_print_stats): Likewise. | |
12776 | (dw2_expand_all_symtabs): Likewise. | |
12777 | (dw2_expand_symtabs_with_fullname): Likewise. | |
12778 | (dw2_expand_marked_cus): Likewise. | |
12779 | (dw2_map_symbol_filenames): Likewise. | |
12780 | (create_cus_from_debug_names): Likewise. | |
12781 | (dwarf2_read_debug_names): Likewise. | |
12782 | (dw2_debug_names_iterator::next): Likewise. | |
12783 | (dwarf2_initialize_objfile): Likewise. | |
12784 | (set_partial_user): Likewise. | |
12785 | (dwarf2_build_psymtabs_hard): Likewise. | |
12786 | (read_comp_units_from_section): Remove arguments, adjust to | |
12787 | std::vector change. | |
12788 | (create_all_comp_units): Adjust to std::vector and | |
12789 | read_comp_units_from_section changes. | |
12790 | (dwarf2_find_containing_comp_unit): Adjust to std::vector | |
12791 | change. | |
12792 | * dwarf-index-write.c (check_dwarf64_offsets): Likewise. | |
12793 | (psyms_seen_size): Likewise. | |
12794 | (write_gdbindex): Likewise. | |
12795 | (write_debug_names): Likewise. | |
12796 | ||
12359b5e SM |
12797 | 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca> |
12798 | ||
12799 | * dwarf2read.c (create_cus_from_index_list): Replace objfile arg | |
12800 | with dwarf2_per_objfile. | |
12801 | (create_cus_from_index): Likewise. | |
12802 | (create_signatured_type_table_from_index): Likewise. | |
12803 | (dwarf2_read_index): Likewise. | |
12804 | (dwarf2_initialize_objfile): Likewise. | |
12805 | (dwarf2_fetch_die_loc_sect_off): Get dwarf2_per_objfile from | |
12806 | per_cu rather than get_dwarf2_per_objfile. | |
12807 | ||
ff4c9fec SM |
12808 | 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca> |
12809 | ||
12810 | * dwarf2read.h (struct signatured_type): Forward declare. | |
12811 | (struct dwarf2_per_objfile) <get_cutu, get_cu, get_tu>: | |
12812 | New methods. | |
12813 | * dwarf2read.c (dwarf2_per_objfile::get_cutu): Rename from... | |
12814 | (dw2_get_cutu): ...this. | |
12815 | (dwarf2_per_objfile::get_cu): Rename from... | |
12816 | (dw2_get_cu): ...this. | |
12817 | (dwarf2_per_objfile::get_tu): New. | |
12818 | (create_addrmap_from_index): Adjust. | |
12819 | (create_addrmap_from_aranges): Adjust. | |
12820 | (dw2_find_last_source_symtab): Adjust. | |
12821 | (dw2_map_symtabs_matching_filename): Adjust. | |
12822 | (dw2_symtab_iter_next): Adjust. | |
12823 | (dw2_print_stats): Adjust. | |
12824 | (dw2_expand_all_symtabs): Adjust. | |
12825 | (dw2_expand_symtabs_with_fullname): Adjust. | |
12826 | (dw2_expand_marked_cus): Adjust. | |
12827 | (dw_expand_symtabs_matching_file_matcher): Adjust. | |
12828 | (dw2_map_symbol_filenames): Adjust. | |
12829 | (dw2_debug_names_iterator::next): Adjust. | |
12830 | (dwarf2_initialize_objfile): Adjust. | |
12831 | (set_partial_user): Adjust. | |
12832 | (dwarf2_build_psymtabs_hard): Adjust. | |
12833 | ||
5ca3fcb6 SM |
12834 | 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca> |
12835 | ||
12836 | * dwarf2read.c (create_signatured_type_table_from_debug_names): | |
12837 | Remove unused variables. | |
12838 | (dw2_map_symtabs_matching_filename): Likewise. | |
12839 | (dwarf2_record_block_ranges): Likewise. | |
12840 | (dwarf2_read_addr_index): Likewise. | |
12841 | (follow_die_offset): Likewise. | |
12842 | ||
b2e586e8 SM |
12843 | 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca> |
12844 | ||
12845 | * progspace.c (clone_program_space): Pass SYMFILE_DEFER_BP_RESET | |
12846 | to symbol_file_add_main. | |
12847 | ||
7c4e78cf SM |
12848 | 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca> |
12849 | ||
12850 | PR mi/22299 | |
12851 | * mi/mi-console.c (do_fputc_async_safe): New. | |
12852 | (mi_console_file::write_async_safe): New. | |
12853 | (mi_console_file::flush): Adjust calls to fputstrn_unfiltered. | |
12854 | * mi/mi-console.h (class mi_console_file) <write_async_safe>: | |
12855 | New. | |
12856 | * ui-file.c (ui_file::putstrn): Adjust call to | |
12857 | fputstrn_unfiltered. | |
12858 | * utils.c (printchar): Replace do_fputs and do_fprintf | |
12859 | parameters by do_fputc. | |
12860 | (fputstr_filtered): Adjust call to printchar. | |
12861 | (fputstr_unfiltered): Likewise. | |
12862 | (fputstrn_filtered): Likewise. | |
12863 | (fputstrn_unfiltered): Add do_fputc parameter, pass to | |
12864 | printchar. | |
12865 | * utils.h (do_fputc_ftype): New typedef. | |
12866 | (fputstrn_unfiltered): Add do_fputc parameter. | |
12867 | ||
5dc026d3 SM |
12868 | 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca> |
12869 | ||
12870 | * regformats/i386/i386-avx.dat: Remove. | |
12871 | ||
c912f608 SM |
12872 | 2018-04-07 Simon Marchi <simon.marchi@ericsson.com> |
12873 | ||
12874 | PR gdb/22979 | |
12875 | * amd64-tdep.c (amd64_none_init_abi): New function. | |
12876 | (amd64_x32_none_init_abi): New function. | |
12877 | (_initialize_amd64_tdep): Register handlers for x86-64 and | |
12878 | x64_32 with GDB_OSABI_NONE. | |
12879 | * osabi.c (gdbarch_init_osabi): Allow running handlers for the | |
12880 | GDB_OSABI_NONE osabi. | |
12881 | ||
26540402 SM |
12882 | 2018-04-07 Simon Marchi <simon.marchi@ericsson.com> |
12883 | ||
12884 | PR gdb/22980 | |
12885 | * defs.h (enum gdb_osabi): Remove GDB_OSABI_UNINITIALIZED, add | |
12886 | GDB_OSABI_NONE. | |
12887 | * arch-utils.c (gdbarch_info_init): Don't set info->osabi. | |
12888 | * osabi.c (gdb_osabi_names): Add "unknown" entry. | |
12889 | ||
9018be22 SM |
12890 | 2018-04-07 Simon Marchi <simon.marchi@ericsson.com> |
12891 | ||
12892 | * common/byte-vector.h (char_vector): New type. | |
12893 | * target.h (target_read_alloc): Return | |
12894 | gdb::optional<byte_vector>. | |
12895 | (target_read_stralloc): Return gdb::optional<char_vector>. | |
12896 | (target_get_osdata): Return gdb::optional<char_vector>. | |
12897 | * target.c (target_read_alloc_1): Templatize. Replacement | |
12898 | manual memory management with vector. | |
12899 | (target_read_alloc): Change return type, adjust. | |
12900 | (target_read_stralloc): Change return type, adjust. | |
12901 | (target_get_osdata): Change return type, adjust. | |
12902 | * auxv.c (struct auxv_info) <length>: Remove. | |
12903 | <data>: Change type to gdb::optional<byte_vector>. | |
12904 | (auxv_inferior_data_cleanup): Free auxv_info with delete. | |
12905 | (get_auxv_inferior_data): Allocate auxv_info with new, adjust. | |
12906 | (target_auxv_search): Adjust. | |
12907 | (fprint_target_auxv): Adjust. | |
12908 | * avr-tdep.c (avr_io_reg_read_command): Adjust. | |
12909 | * linux-tdep.c (linux_spu_make_corefile_notes): Adjust. | |
12910 | (linux_make_corefile_notes): Adjust. | |
12911 | * osdata.c (get_osdata): Adjust. | |
12912 | * remote.c (remote_get_threads_with_qxfer): Adjust. | |
12913 | (remote_memory_map): Adjust. | |
12914 | (remote_traceframe_info): Adjust. | |
12915 | (btrace_read_config): Adjust. | |
12916 | (remote_read_btrace): Adjust. | |
12917 | (remote_pid_to_exec_file): Adjust. | |
12918 | * solib-aix.c (solib_aix_get_library_list): Adjust. | |
12919 | * solib-dsbt.c (decode_loadmap): Don't free buf. | |
12920 | (dsbt_get_initial_loadmaps): Adjust. | |
12921 | * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Adjust. | |
12922 | * solib-target.c (solib_target_current_sos): Adjust. | |
12923 | * tracepoint.c (sdata_make_value): Adjust. | |
12924 | * xml-support.c (xinclude_start_include): Adjust. | |
12925 | (xml_fetch_content_from_file): Adjust. | |
12926 | * xml-support.h (xml_fetch_another): Change return type. | |
12927 | (xml_fetch_content_from_file): Change return type. | |
12928 | * xml-syscall.c (xml_init_syscalls_info): Adjust. | |
12929 | * xml-tdesc.c (file_read_description_xml): Adjust. | |
12930 | (fetch_available_features_from_target): Change return type. | |
12931 | (target_fetch_description_xml): Adjust. | |
12932 | (target_read_description_xml): Adjust. | |
12933 | ||
14c88955 TT |
12934 | 2018-04-06 Tom Tromey <tom@tromey.com> |
12935 | ||
12936 | * value.c (~value): Update. | |
12937 | (struct value) <contents>: Now unique_xmalloc_ptr. | |
12938 | (value_contents_bits_eq, allocate_value_contents) | |
12939 | (value_contents_raw, value_contents_all_raw) | |
12940 | (value_contents_for_printing, value_contents_for_printing_const) | |
12941 | (set_value_enclosing_type): Update. | |
12942 | ||
0c7e6dd8 TT |
12943 | 2018-04-06 Tom Tromey <tom@tromey.com> |
12944 | ||
12945 | * value.c (range_s): Remove typedef, VEC. | |
12946 | (struct range): Add operator<. | |
12947 | (range_lessthan): Remove. | |
12948 | (ranges_contain): Change type. | |
12949 | (~value): Update. | |
12950 | (struct value) <unavailable, optimized_out>: Now std::vector. | |
12951 | (value_entirely_available) | |
12952 | (value_entirely_covered_by_range_vector) | |
12953 | (value_entirely_unavailable, value_entirely_optimized_out): | |
12954 | Update. | |
12955 | (insert_into_bit_range_vector): Change argument type. | |
12956 | (find_first_range_overlap): Likewise. | |
12957 | (struct ranges_and_idx, value_contents_bits_eq) | |
12958 | (require_not_optimized_out, require_available): Update. | |
12959 | (ranges_copy_adjusted): Change argument types. | |
12960 | (value_optimized_out, value_copy, value_fetch_lazy): Update. | |
12961 | ||
2c8331b9 TT |
12962 | 2018-04-06 Tom Tromey <tom@tromey.com> |
12963 | ||
12964 | * value.c (~value): Update. | |
12965 | (struct value) <parent>: Now a value_ref_ptr. | |
12966 | (value_parent, set_value_parent, value_address, value_copy): | |
12967 | Update. | |
12968 | ||
466ce3ae TT |
12969 | 2018-04-06 Tom Tromey <tom@tromey.com> |
12970 | ||
12971 | * value.c (struct value): Add constructor, destructor, and member | |
12972 | initializers. | |
12973 | (allocate_value_lazy, value_decref): Update. | |
12974 | ||
062d818d TT |
12975 | 2018-04-06 Tom Tromey <tom@tromey.com> |
12976 | ||
12977 | * value.c (struct value) <released, next>: Remove. | |
12978 | (all_values): Now a std::vector. | |
12979 | (allocate_value_lazy): Update. | |
12980 | (value_next): Remove. | |
12981 | (value_mark, value_free_to_mark, release_value) | |
12982 | (value_release_to_mark): Update. | |
12983 | ||
a6535de1 TT |
12984 | 2018-04-06 Tom Tromey <tom@tromey.com> |
12985 | ||
12986 | * value.h (fetch_subexp_value, value_release_to_mark): Update. | |
12987 | (free_value_chain): Remove. | |
12988 | * value.c (free_value_chain): Remove. | |
12989 | (value_release_to_mark): Return a std::vector. | |
12990 | * ppc-linux-nat.c (num_memory_accesses): Change "chain" to a | |
12991 | std::vector. | |
12992 | (check_condition): Update. | |
12993 | * eval.c (fetch_subexp_value): Change "val_chain" to a | |
12994 | std::vector. | |
12995 | * breakpoint.c (update_watchpoint): Update. | |
12996 | (can_use_hardware_watchpoint): Change "vals" to a std::vector. | |
12997 | ||
b5621201 TT |
12998 | 2018-04-06 Tom Tromey <tom@tromey.com> |
12999 | ||
13000 | * value.h (free_all_values): Remove. | |
13001 | * value.c (free_all_values): Remove. | |
13002 | ||
4d0266a0 TT |
13003 | 2018-04-06 Tom Tromey <tom@tromey.com> |
13004 | ||
13005 | * value.c (VALUE_HISTORY_CHUNK, struct value_history_chunk) | |
13006 | (value_history_chain, value_history_count): Remove. | |
13007 | (value_history): New global. | |
13008 | (record_latest_value, access_value_history, show_values) | |
13009 | (preserve_values): Update. | |
13010 | ||
b4d61099 TT |
13011 | 2018-04-06 Tom Tromey <tom@tromey.com> |
13012 | ||
13013 | * varobj.h (struct varobj) <value>: Now a value_ref_ptr. | |
13014 | * varobj.c (varobj_set_display_format, varobj_set_value) | |
13015 | (install_default_visualizer, construct_visualizer) | |
13016 | (install_new_value, ~varobj, varobj_get_value_type) | |
13017 | (my_value_of_variable, varobj_editable_p): Update. | |
13018 | * c-varobj.c (c_describe_child, c_value_of_variable) | |
13019 | (cplus_number_of_children, cplus_describe_child): Update. | |
13020 | * ada-varobj.c (ada_number_of_children, ada_name_of_child) | |
13021 | (ada_path_expr_of_child, ada_value_of_child, ada_type_of_child) | |
13022 | (ada_value_of_variable, ada_value_is_changeable_p): Update. | |
13023 | ||
9b558729 TT |
13024 | 2018-04-06 Tom Tromey <tom@tromey.com> |
13025 | ||
13026 | * printcmd.c (last_examine_address): Change type to | |
13027 | value_ref_ptr. | |
13028 | (do_examine, x_command): Update. | |
13029 | ||
850645cf TT |
13030 | 2018-04-06 Tom Tromey <tom@tromey.com> |
13031 | ||
13032 | * value.c (release_value): Update. | |
13033 | * breakpoint.h (struct watchpoint) <val>: Now a value_ref_ptr. | |
13034 | (struct bpstats) <val>: Now a value_ref_ptr. | |
13035 | * breakpoint.c (update_watchpoint, breakpoint_init_inferior) | |
13036 | (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check) | |
13037 | (~watchpoint, print_it_watchpoint, watch_command_1) | |
13038 | (invalidate_bp_value_on_memory_change): Update. | |
13039 | ||
22bc8444 TT |
13040 | 2018-04-06 Tom Tromey <tom@tromey.com> |
13041 | ||
13042 | * varobj.c (varobj_clear_saved_item) | |
13043 | (update_dynamic_varobj_children, install_new_value, ~varobj): | |
13044 | Update. | |
13045 | * value.h (value_incref): Move declaration earlier. | |
13046 | (value_decref): Rename from value_free. | |
13047 | (struct value_ref_policy): New. | |
13048 | (value_ref_ptr): New typedef. | |
13049 | (struct value_deleter): Remove. | |
13050 | (gdb_value_up): Remove typedef. | |
13051 | (release_value): Change return type. | |
13052 | (release_value_or_incref): Remove. | |
13053 | * value.c (set_value_parent): Update. | |
13054 | (value_incref): Change return type. | |
13055 | (value_decref): Rename from value_free. | |
13056 | (value_free_to_mark, free_all_values, free_value_chain): Update. | |
13057 | (release_value): Return value_ref_ptr. | |
13058 | (release_value_or_incref): Remove. | |
13059 | (record_latest_value, set_internalvar, clear_internalvar): | |
13060 | Update. | |
13061 | * stack.c (info_frame_command): Don't call value_free. | |
13062 | * python/py-value.c (valpy_dealloc, valpy_new) | |
13063 | (value_to_value_object): Update. | |
13064 | * printcmd.c (do_examine): Update. | |
13065 | * opencl-lang.c (lval_func_free_closure): Update. | |
13066 | * mi/mi-main.c (register_changed_p): Don't call value_free. | |
13067 | * mep-tdep.c (mep_frame_prev_register): Don't call value_free. | |
13068 | * m88k-tdep.c (m88k_frame_prev_register): Don't call value_free. | |
13069 | * m68hc11-tdep.c (m68hc11_frame_prev_register): Don't call | |
13070 | value_free. | |
13071 | * guile/scm-value.c (vlscm_free_value_smob) | |
13072 | (vlscm_scm_from_value): Update. | |
13073 | * frame.c (frame_register_unwind, frame_unwind_register_signed) | |
13074 | (frame_unwind_register_unsigned, get_frame_register_bytes) | |
13075 | (put_frame_register_bytes): Don't call value_free. | |
13076 | * findvar.c (address_from_register): Don't call value_free. | |
13077 | * dwarf2read.c (dwarf2_compute_name): Don't call value_free. | |
13078 | * dwarf2loc.c (entry_data_value_free_closure) | |
13079 | (value_of_dwarf_reg_entry, free_pieced_value_closure) | |
13080 | (dwarf2_evaluate_loc_desc_full): Update. | |
13081 | * breakpoint.c (update_watchpoint, breakpoint_init_inferior) | |
13082 | (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check) | |
13083 | (~watchpoint, watch_command_1) | |
13084 | (invalidate_bp_value_on_memory_change): Update. | |
13085 | * alpha-tdep.c (alpha_register_to_value): Don't call value_free. | |
13086 | ||
7f8a5d38 SM |
13087 | 2018-04-06 Simon Marchi <simon.marchi@polymtl.ca> |
13088 | ||
13089 | PR gdb/23022 | |
13090 | * warning.m4: Add -Wno-error=deprecated-register. | |
13091 | * configure: Re-generate. | |
13092 | ||
8a76bd3b TT |
13093 | 2018-04-05 Tom Tromey <tom@tromey.com> |
13094 | ||
13095 | * linespec.h: Remove include of "vec.h". | |
13096 | ||
8e8d776e TT |
13097 | 2018-04-05 Tom Tromey <tom@tromey.com> |
13098 | ||
13099 | * linespec.c (typep): Remove typedef. | |
13100 | (find_methods, find_superclass_methods): Take a std::vector. | |
13101 | (find_method): Use std::vector. | |
13102 | ||
9b2f8581 TT |
13103 | 2018-04-05 Tom Tromey <tom@tromey.com> |
13104 | ||
13105 | * utils.c (compare_strings): Remove. | |
13106 | * utils.h (compare_strings): Remove. | |
13107 | * objc-lang.h (find_imps): Update. | |
13108 | * objc-lang.c (find_methods): Take a std::vector. | |
13109 | (uniquify_strings, find_imps): Likewise. | |
13110 | * linespec.c (find_methods): Take a std::vector. | |
13111 | (decode_objc): Use std::vector. | |
13112 | (add_all_symbol_names_from_pspace, find_superclass_methods): Take | |
13113 | a std::vector. | |
13114 | (find_method, find_function_symbols): Use std::vector. | |
13115 | ||
459a2e4c TT |
13116 | 2018-04-05 Tom Tromey <tom@tromey.com> |
13117 | ||
13118 | * completer.c (completion_tracker::completion_tracker): Remove | |
13119 | cast. | |
13120 | (completion_tracker::discard_completions): Likewise. | |
13121 | * breakpoint.c (ambiguous_names_p): Remove cast. | |
13122 | * ada-lang.c (_initialize_ada_language): Remove cast. | |
13123 | * utils.h (streq): Update. | |
13124 | (streq_hash): Add new declaration. | |
13125 | * utils.c (streq): Return bool. | |
13126 | (streq_hash): New function. | |
13127 | ||
9be2c17a TT |
13128 | 2018-04-05 Tom Tromey <tom@tromey.com> |
13129 | ||
13130 | * linespec.c (event_location_to_sals) <case ADDRESS_LOCATION>: | |
13131 | Remove a string copy. | |
13132 | ||
f73c6ece TT |
13133 | 2018-04-05 Tom Tromey <tom@tromey.com> |
13134 | ||
13135 | * linespec.c (filter_results): Use std::vector. | |
13136 | (decode_line_2, decode_line_full): Update. | |
13137 | ||
53a0f8a2 TT |
13138 | 2018-04-05 Tom Tromey <tom@tromey.com> |
13139 | ||
13140 | * linespec.c (canonical_to_fullform): Return std::string. | |
13141 | (filter_results): Update. | |
13142 | (struct decode_line_2_item): Add constructor. | |
13143 | <fullform, displayform>: Now std::string. | |
13144 | (decode_line_2_compare_items): Now a std::sort comparator. | |
13145 | (decode_line_2): Update. | |
13146 | ||
a5b5adf5 TT |
13147 | 2018-04-05 Tom Tromey <tom@tromey.com> |
13148 | ||
13149 | * linespec.c (copy_token_string): Return a unique_xmalloc_ptr. | |
13150 | (unexpected_linespec_error): Update. | |
13151 | (linespec_parse_basic, parse_linespec): Update. | |
13152 | ||
6a307fc5 TT |
13153 | 2018-04-05 Tom Tromey <tom@tromey.com> |
13154 | ||
13155 | * linespec.c (linespec_parse_basic): Reindent. | |
13156 | ||
41c1efc6 TT |
13157 | 2018-04-05 Tom Tromey <tom@tromey.com> |
13158 | ||
13159 | * minsyms.h (iterate_over_minimal_symbols): Update. | |
13160 | * minsyms.c (iterate_over_minimal_symbols): Take a | |
13161 | gdb::function_view. | |
13162 | * linespec.c (struct collect_minsyms): Remove. | |
13163 | (compare_msyms): Now a std::sort comparator. | |
13164 | (add_minsym): Add parameters. | |
13165 | (search_minsyms_for_name): Update. Use std::vector. | |
13166 | ||
c5edbf3d TT |
13167 | 2018-04-03 Tom Tromey <tom@tromey.com> |
13168 | ||
13169 | * mipsread.c (read_alphacoff_dynamic_symtab): Use | |
13170 | gdb::byte_vector. | |
13171 | ||
b39efc48 WP |
13172 | 2018-04-02 Weimin Pan <weimin.pan@oracle.com> |
13173 | ||
13174 | * MAINTAINERS (Write After Approval): Add Weimin Pan. | |
13175 | ||
121ad66c | 13176 | 2018-04-02 Weimin Pan <weimin.pan@oracle.com> |
79f18731 WP |
13177 | |
13178 | PR gdb/16959 | |
13179 | * cp-valprint.c: (cp_print_static_field) Fix infinite recursion when | |
13180 | printing static type. | |
13181 | ||
09473be8 TT |
13182 | 2018-04-01 Tom Tromey <tom@tromey.com> |
13183 | ||
13184 | * rs6000-nat.c (rs6000_ptrace_ldinfo): Return a byte_vector. | |
13185 | (rs6000_xfer_shared_libraries): Update. | |
13186 | ||
ec1f2d91 SM |
13187 | 2018-04-01 Simon Marchi <simon.marchi@polymtl.ca> |
13188 | ||
13189 | * common/gdb_vecs.h (char_ptr): Remove. | |
13190 | * tracepoint.c (encode_actions_1): Remove usage of char_ptr. | |
13191 | ||
d8611974 SM |
13192 | 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca> |
13193 | ||
13194 | * guile/scm-utils.c (gdbscm_parse_function_args): Replace VEC | |
13195 | with std::vector. | |
13196 | * common/gdb_vecs.h (DEF_VEC_P (char_ptr)): Remove. | |
13197 | ||
a18ba4e4 SM |
13198 | 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca> |
13199 | ||
13200 | * tracepoint.h (struct uploaded_tp): Initialize fields. | |
13201 | <actions, step_actions, cmd_strings>: Change type to | |
13202 | std::vector<char *>. | |
13203 | * tracepoint.c (get_uploaded_tp): Allocate with new. | |
13204 | (free_uploaded_tps): Free with delete. | |
13205 | (parse_tracepoint_definition): Adjust to std::vector change. | |
13206 | * breakpoint.c (read_uploaded_action): Likewise. | |
13207 | (create_tracepoint_from_upload): Likewise. | |
13208 | * ctf.c (ctf_write_uploaded_tp): Likewise. | |
13209 | (SET_ARRAY_FIELD): Likewise. | |
13210 | * tracefile-tfile.c (tfile_write_uploaded_tp): Likewise. | |
13211 | ||
a7961323 TT |
13212 | 2018-03-30 Tom Tromey <tom@tromey.com> |
13213 | ||
13214 | * solib-svr4.c (lm_info_read): Use gdb::byte_vector. Return | |
13215 | std::unique_ptr. | |
13216 | (svr4_keep_data_in_core): Update. | |
13217 | (svr4_read_so_list): Update. | |
13218 | ||
e83e4e24 TT |
13219 | 2018-03-30 Tom Tromey <tom@tromey.com> |
13220 | ||
13221 | * windows-nat.c (handle_output_debug_string, handle_exception): | |
13222 | Update. | |
13223 | * target.h (target_read_string): Update. | |
13224 | * target.c (target_read_string): Change "string" to | |
13225 | unique_xmalloc_ptr. | |
13226 | * solib-svr4.c (open_symbol_file_object, svr4_read_so_list): | |
13227 | Update. | |
13228 | * solib-frv.c (frv_current_sos): Update. | |
13229 | * solib-dsbt.c (dsbt_current_sos): Update. | |
13230 | * solib-darwin.c (darwin_current_sos): Update. | |
13231 | * linux-thread-db.c (inferior_has_bug): Update. | |
13232 | * expprint.c (print_subexp_standard) <case OP_OBJC_MSGCALL>: | |
13233 | Update. Remove alloca. | |
13234 | * ada-lang.c (ada_main_name): Update. | |
13235 | ||
263db9a1 TT |
13236 | 2018-03-30 Tom Tromey <tom@tromey.com> |
13237 | ||
13238 | * dwarf2read.c (struct free_dwo_file_cleanup_data): Remove. | |
13239 | (struct dwo_file_deleter): New. | |
13240 | (dwo_file_up): New typedef. | |
13241 | (open_and_init_dwo_file): Use dwo_file_up. | |
13242 | (free_dwo_file_cleanup): Remove. | |
13243 | ||
5dafb3d1 TT |
13244 | 2018-03-30 Tom Tromey <tom@tromey.com> |
13245 | ||
13246 | * dwarf2read.c (free_dwo_file): Remove "objfile" parameter. | |
13247 | (free_dwo_file_cleanup, free_dwo_file_from_slot): Update. | |
13248 | ||
11ed8cad TT |
13249 | 2018-03-30 Tom Tromey <tom@tromey.com> |
13250 | ||
13251 | * dwarf2read.c (class free_cached_comp_units): New class. | |
13252 | (dw2_instantiate_symtab, dwarf2_build_psymtabs_hard): Use it. | |
13253 | (free_cached_comp_units): Remove function. | |
13254 | ||
9ae79dac TT |
13255 | 2018-03-30 Tom Tromey <tom@tromey.com> |
13256 | ||
13257 | * utils.h (make_cleanup_unpush_target): Remove. | |
13258 | * inf-ptrace.c (struct target_unpusher): New. | |
13259 | (target_unpush_up) New typedef. | |
13260 | (inf_ptrace_create_inferior, inf_ptrace_attach): Use | |
13261 | target_unpush_up. | |
13262 | * utils.c (do_unpush_target, make_cleanup_unpush_target): Remove. | |
13263 | ||
5aa89276 TT |
13264 | 2018-03-27 Tom Tromey <tom@tromey.com> |
13265 | ||
13266 | * utils.c (prompt_for_continue): Use unique_xmalloc_ptr. | |
13267 | ||
1dbeed45 TT |
13268 | 2018-03-27 Pedro Alves <palves@redhat.com> |
13269 | Tom Tromey <tom@tromey.com> | |
13270 | ||
13271 | * top.c (class gdb_readline_wrapper_cleanup): Add constructor, | |
13272 | destructor. Now a class. | |
13273 | (gdb_readline_wrapper_cleanup): Remove function. | |
13274 | (gdb_readline_wrapper): Remove cleanups. | |
13275 | ||
c819b2c0 TT |
13276 | 2018-03-27 Tom Tromey <tom@tromey.com> |
13277 | ||
13278 | * typeprint.h (struct type_print_options) <local_typedefs, | |
13279 | global_typedefs>: Remove "struct" keyword. | |
13280 | (class typedef_hash_table): New class. | |
13281 | (recursively_update_typedef_hash, add_template_parameters) | |
13282 | (create_typedef_hash, free_typedef_hash, copy_typedef_hash) | |
13283 | (find_typedef_in_hash): Don't declare. | |
13284 | * typeprint.c (struct typedef_hash_table): Move to typeprint.h. | |
13285 | (typedef_hash_table::recursively_update): Rename from | |
13286 | recursively_update_typedef_hash. Now a member. | |
13287 | (typedef_hash_table::add_template_parameters): Rename from | |
13288 | add_template_parameters. Now a member. | |
13289 | (typedef_hash_table::typedef_hash_table): Now a constructor; | |
13290 | rename from create_typedef_hash. | |
13291 | (typedef_hash_table::~typedef_hash_table): Now a destructor; | |
13292 | rename from free_typedef_hash. | |
13293 | (do_free_typedef_hash, make_cleanup_free_typedef_hash) | |
13294 | (do_free_global_table): Remove. | |
13295 | (typedef_hash_table::typedef_hash_table): New constructor; renamed | |
13296 | from copy_type_recursive. | |
13297 | (create_global_typedef_table): Remove. | |
13298 | (typedef_hash_table::find_global_typedef): Now a member of | |
13299 | typedef_hash_table. | |
13300 | (typedef_hash_table::find_typedef): Rename from | |
13301 | find_typedef_in_hash; now a member. | |
13302 | (whatis_exp): Update. | |
13303 | * extension.h (struct ext_lang_type_printers): Add constructor and | |
13304 | destructor. | |
13305 | (start_ext_lang_type_printers, free_ext_lang_type_printers): Don't | |
13306 | declare. | |
13307 | * extension.c (ext_lang_type_printers::ext_lang_type_printers): | |
13308 | Now a constructor; rename from start_ext_lang_type_printers. | |
13309 | (ext_lang_type_printers): Now a destructor; rename from | |
13310 | free_ext_lang_type_printers. | |
13311 | * c-typeprint.c (find_typedef_for_canonicalize, c_print_type_1): | |
13312 | Update. | |
13313 | (c_type_print_base_struct_union): Update. Remove cleanups. | |
13314 | ||
608219fb TT |
13315 | 2018-03-27 Tom Tromey <tom@tromey.com> |
13316 | ||
13317 | * dwarf-index-write.c: Include <cmath>. | |
13318 | ||
3fcded8f JB |
13319 | 2018-03-27 Joel Brobecker <brobecker@adacore.com> |
13320 | ||
13321 | * NEWS: Add entry describing new "set|show varsize-limit" command. | |
13322 | * ada-lang.c (_initialize_ada_language): Add "set/show varsize-limit" | |
13323 | command. | |
13324 | * printcmd.c (_initialize_printcmd): Add "set var" alias of | |
13325 | "set variable". | |
13326 | ||
cd4fb1b2 SM |
13327 | 2018-03-27 Simon Marchi <simon.marchi@ericsson.com> |
13328 | ||
13329 | * Makefile.in (COMMON_SFILES): Add dwarf-index-common.c and | |
13330 | dwarf-index-write.c | |
13331 | (HFILES_NO_SRCDIR): Add dwarf-index-common.h and dwarf2read.h. | |
13332 | * dwarf-index-common.c: New file. | |
13333 | * dwarf-index-common.h: New file. | |
13334 | * dwarf-index-write.c: New file. | |
13335 | * dwarf2read.c: Include dwarf2read.h and dwarf-index-common.h. | |
13336 | (struct dwarf2_section_info): Move from here. | |
13337 | (dwarf2_section_info_def): Likewise. | |
13338 | (DEF_VEC_O (dwarf2_section_info_def)): Likewise. | |
13339 | (offset_type): Likewise. | |
13340 | (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): Likewise. | |
13341 | (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): Likewise. | |
13342 | (DW2_GDB_INDEX_CU_SET_VALUE): Likewise. | |
13343 | (byte_swap): Likewise. | |
13344 | (MAYBE_SWAP): Likewise. | |
13345 | (dwarf2_per_cu_ptr): Likewise. | |
13346 | (DEF_VEC_P (dwarf2_per_cu_ptr)): Likewise. | |
13347 | (struct tu_stats): Likewise. | |
13348 | (struct dwarf2_per_objfile): Likewise. | |
13349 | (struct dwarf2_per_cu_data): Likewise. | |
13350 | (struct signatured_type): Likewise. | |
13351 | (sig_type_ptr): Likewise. | |
13352 | (DEF_VEC_P (sig_type_ptr)): Likewise. | |
13353 | (INDEX4_SUFFIX): Likewise. | |
13354 | (INDEX5_SUFFIX): Likewise. | |
13355 | (DEBUG_STR_SUFFIX): Likewise. | |
13356 | (dwarf2_read_section): Make non-static. | |
13357 | (mapped_index_string_hash): Move from here. | |
13358 | (dwarf5_djb_hash): Likewise. | |
13359 | (file_write): Likewise. | |
13360 | (class data_buf): Likewise. | |
13361 | (struct symtab_index_entry): Likewise. | |
13362 | (struct mapped_symtab): Likewise. | |
13363 | (find_slot): Likewise. | |
13364 | (hash_expand): Likewise. | |
13365 | (add_index_entry): Likewise. | |
13366 | (uniquify_cu_indices): Likewise. | |
13367 | (class c_str_view): Likewise. | |
13368 | (class c_str_view_hasher): Likewise. | |
13369 | (class vector_hasher): Likewise. | |
13370 | (write_hash_table): Likewise. | |
13371 | (psym_index_map): Likewise. | |
13372 | (struct addrmap_index_data): Likewise. | |
13373 | (add_address_entry): Likewise. | |
13374 | (add_address_entry_worker): Likewise. | |
13375 | (write_address_map): Likewise. | |
13376 | (symbol_kind): Likewise. | |
13377 | (write_psymbols): Likewise. | |
13378 | (struct signatured_type_index_data): Likewise. | |
13379 | (write_one_signatured_type): Likewise. | |
13380 | (recursively_count_psymbols): Likewise. | |
13381 | (recursively_write_psymbols): Likewise. | |
13382 | (class debug_names): Likewise. | |
13383 | (check_dwarf64_offsets): Likewise. | |
13384 | (psyms_seen_size): Likewise. | |
13385 | (write_gdbindex): Likewise. | |
13386 | (write_debug_names): Likewise. | |
13387 | (assert_file_size): Likewise. | |
13388 | (write_psymtabs_to_index): Likewise. | |
13389 | (save_gdb_index_command): Likewise. | |
13390 | (_initialize_dwarf2_read): Don't register the "save gdb-index" | |
13391 | command. | |
13392 | * dwarf2read.h: New file. | |
13393 | ||
59cc4834 JB |
13394 | 2018-03-27 Joel Brobecker <brobecker@adacore.com> |
13395 | ||
13396 | PR gdb/22670 | |
13397 | * dwarf2read.c (dwarf2_physname): Do not return the demangled | |
13398 | symbol name if the CU's language stores symbol names in linkage | |
13399 | format. | |
13400 | * language.h (struct language_defn) | |
13401 | <la_store_sym_names_in_linkage_form_p>: New field. Adjust | |
13402 | all instances of this struct. | |
13403 | ||
67501539 TT |
13404 | 2018-03-26 Tom Tromey <tom@tromey.com> |
13405 | ||
13406 | * stack.c (backtrace_command_1): Remove verbose code. | |
13407 | ||
76c939ac TT |
13408 | 2018-03-26 Tom Tromey <tom@tromey.com> |
13409 | ||
13410 | * python/py-framefilter.c (py_print_type): Don't catch | |
13411 | exceptions. Return void. | |
13412 | (py_print_value): Likewise. | |
13413 | (py_print_single_arg): Likewise. | |
13414 | (enumerate_args): Don't catch exceptions. | |
13415 | (py_print_args): Likewise. | |
13416 | (py_print_frame): Likewise. | |
13417 | (gdbpy_apply_frame_filter): Catch exceptions here. | |
13418 | ||
9507b29c TT |
13419 | 2018-03-26 Tom Tromey <tom@tromey.com> |
13420 | ||
13421 | * stack.c (_initialize_stack): Remove trailing newlines from help | |
13422 | text. Add "Usage" line to "backtrace" help. | |
13423 | ||
eb68e487 TT |
13424 | 2018-03-26 Tom Tromey <tom@tromey.com> |
13425 | ||
13426 | PR python/16486: | |
13427 | * python/py-framefilter.c (py_print_args): Call wrap_hint. | |
13428 | ||
1f111921 TT |
13429 | 2018-03-26 Tom Tromey <tom@tromey.com> |
13430 | ||
13431 | * python/py-framefilter.c (py_print_single_arg): Return | |
13432 | EXT_LANG_BT_ERROR from catch. | |
13433 | ||
fb7eb8b5 TT |
13434 | 2018-03-26 Tom Tromey <tom@tromey.com> |
13435 | ||
13436 | PR backtrace/15584: | |
13437 | * stack.c (backtrace_command_1): Move some code into no-filters | |
13438 | "if". | |
13439 | ||
4ca59a9f TT |
13440 | 2018-03-26 Tom Tromey <tom@tromey.com> |
13441 | ||
13442 | * python/py-framefilter.c (throw_quit_or_print_exception): New | |
13443 | function. | |
13444 | (gdbpy_apply_frame_filter): Use it. | |
13445 | ||
92256134 TT |
13446 | 2018-03-26 Tom Tromey <tom@tromey.com> |
13447 | ||
13448 | PR cli/17716: | |
13449 | * python/py-framefilter.c (py_print_type, py_print_value) | |
13450 | (enumerate_args, py_print_args, gdbpy_apply_frame_filter): Use | |
13451 | RETURN_MASK_ERROR. | |
13452 | ||
7a630bc2 TT |
13453 | 2018-03-26 Tom Tromey <tom@tromey.com> |
13454 | ||
13455 | * python/py-framefilter.c (enumerate_args): Use | |
13456 | gdb::unique_xmalloc_ptr. | |
13457 | ||
63283d4a TT |
13458 | 2018-03-26 Tom Tromey <tom@tromey.com> |
13459 | ||
13460 | * python/py-framefilter.c (py_print_frame): Return | |
13461 | EXT_LANG_BT_OK. | |
13462 | (gdbpy_apply_frame_filter): Update comment. | |
13463 | * extension.h (enum ext_lang_bt_status) <EXT_LANG_BT_COMPLETED>: | |
13464 | Remove. | |
13465 | <EXT_LANG_BT_NO_FILTERS>: Change value. | |
13466 | ||
978d6c75 TT |
13467 | 2018-03-26 Tom Tromey <tom@tromey.com> |
13468 | ||
13469 | PR backtrace/15582: | |
13470 | * stack.c (backtrace_command): Parse "hide" argument. | |
13471 | * python/py-framefilter.c (py_print_frame): Handle PRINT_HIDE. | |
13472 | * extension.h (enum frame_filter_flags) <PRINT_HIDE>: New | |
13473 | constant. | |
13474 | ||
1cf7e640 TT |
13475 | 2018-03-26 Tom Tromey <tom@tromey.com> |
13476 | ||
13477 | * stack.c (backtrace_command_1): Remove "show_locals" parameter, | |
13478 | add "flags". | |
13479 | (backtrace_command): Remove "fulltrace", add "flags". | |
13480 | ||
ea3b0687 TT |
13481 | 2018-03-26 Tom Tromey <tom@tromey.com> |
13482 | ||
13483 | * stack.c (backtrace_command): Rewrite command line parsing. | |
13484 | ||
9f034d75 SM |
13485 | 2018-03-26 Simon Marchi <simon.marchi@ericsson.com> |
13486 | ||
13487 | * dwarf2read.c (DEF_VEC_I(offset_type)): Remove. | |
13488 | ||
ce1459e5 SM |
13489 | 2018-03-26 Simon Marchi <simon.marchi@ericsson.com> |
13490 | ||
13491 | * filename-seen-cache.h: Add include guard. | |
13492 | ||
4f7ae6f5 KS |
13493 | 2018-03-26 Keith Seitz <keiths@redhat.com> |
13494 | ||
13495 | * symfile.c (place_section): Remove "struct" from section_addr_info | |
13496 | in comment. | |
13497 | * windows-nat.c (struct safe_symbol_file_add_args) <addrs>: Remove | |
13498 | "struct" keyword from section_addr_info. | |
13499 | ||
5cd3e386 AH |
13500 | 2018-03-26 Alan Hayward <alan.hayward@arm.com> |
13501 | ||
13502 | * regformats/regdef.h (reg): Add constructors. | |
13503 | ||
3e5ef9a4 PA |
13504 | 2018-03-25 Pedro Alves <palves@redhat.com> |
13505 | ||
13506 | * eval.c (evaluate_funcall): Swap OP_VAR_MSYM_VALUE/OP_VAR_VALUE | |
13507 | if then/else bodies in var_func_name extraction. | |
13508 | ||
c88d2fcc | 13509 | 2018-03-23 Weimin Pan <weimin.pan@oracle.com> |
bce02d88 WP |
13510 | |
13511 | * minsyms.c (lookup_minimal_symbol_and_objfile): Use | |
13512 | lookup_minimal_symbol() to find symbol entry. | |
13513 | * minsyms.h (lookup_minimal_symbol_and_objfile): Update comment. | |
13514 | ||
b7fee5a3 KS |
13515 | 2018-03-23 Keith Seitz <keiths@redhat.com> |
13516 | ||
13517 | PR c++/22968 | |
13518 | * dwarf2read.c (scan_partial_symbols): Scan structs/classes for | |
13519 | nested type definitions for C++, too. | |
13520 | ||
2cc9b304 TT |
13521 | 2018-03-23 Tom Tromey <tom@tromey.com> |
13522 | ||
13523 | * machoread.c (struct oso_el): Add a constructor. Don't define as | |
13524 | a typedef. | |
13525 | (macho_register_oso): Remove. | |
13526 | (macho_symtab_read): Take a std::vector. | |
13527 | (oso_el_compare_name): Now a std::sort comparator. | |
13528 | (macho_symfile_read_all_oso): Take a std::vector. | |
13529 | (macho_symfile_read): Use std::vector. Remove cleanups. | |
13530 | ||
a2b2bc12 TT |
13531 | 2018-03-22 Tom Tromey <tom@tromey.com> |
13532 | ||
13533 | * record-full.c (record_full_exec_insn): Use gdb::byte_vector. | |
13534 | (record_full_goto_bookmark): Use std::string. | |
13535 | ||
7a8f494c PFC |
13536 | 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com> |
13537 | ||
13538 | PR tdep/18295 | |
13539 | * rs6000-tdep.c (skip_prologue): Match both stwux and stdux | |
13540 | a single mask. | |
13541 | ||
dd6d677f PFC |
13542 | 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com> |
13543 | ||
13544 | * rs6000-tdep.c (store_insn_p): New function. | |
13545 | (skip_prologue): New variable alloca_reg_offset. Set lr_reg | |
13546 | and cr_reg to their unshifted values. Use store_insn_p to | |
13547 | match LR saves using either R1 or fdata->alloca_reg. Use | |
13548 | store_insn_p to match CR saves. Set alloca_reg_offset | |
13549 | when alloca_reg and framep are set. Remove lr_reg shift | |
13550 | when assigning to fdata->lr_register. | |
13551 | ||
26d6cec4 AA |
13552 | 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com> |
13553 | ||
13554 | * linux-tdep.c (linux_info_proc): For "info proc cmdline", print | |
13555 | command line args instead of emitting a warning. | |
13556 | ||
5d9310c4 SM |
13557 | 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca> |
13558 | ||
13559 | * tracepoint.h (struct static_tracepoint_marker): Initialize | |
13560 | fields, define default constructor, move constructor and move | |
13561 | assignment, disable the rest. | |
13562 | <str_id, extra>: Make std::string. | |
13563 | (release_static_tracepoint_marker): Remove. | |
13564 | (free_current_marker): Remove. | |
13565 | * tracepoint.c (free_current_marker): Remove. | |
13566 | (parse_static_tracepoint_marker_definition): Adjust to | |
13567 | std::string, use new hex2str overload. | |
13568 | (release_static_tracepoint_marker): Remove. | |
13569 | (print_one_static_tracepoint_marker): Get marker by reference | |
13570 | and adjust to std::string. | |
13571 | (info_static_tracepoint_markers_command): Adjust to std::vector | |
13572 | changes | |
13573 | * target.h (static_tracepoint_marker_p): Remove typedef. | |
13574 | (DEF_VEC_P(static_tracepoint_marker_p)): Remove. | |
13575 | (struct target_ops) <to_static_tracepoint_marker_at>: Return | |
13576 | bool. | |
13577 | <to_static_tracepoint_markers_by_strid>: Return std::vector. | |
13578 | * target-debug.h | |
13579 | (target_debug_print_VEC_static_tracepoint_marker_p_p): Remove. | |
13580 | (target_debug_print_std_vector_static_tracepoint_marker): New. | |
13581 | (target_debug_print_struct_static_tracepoint_marker_p): Rename | |
13582 | to... | |
13583 | (target_debug_print_static_tracepoint_marker_p): ... this. | |
13584 | * target-delegates.c: Re-generate. | |
13585 | * breakpoint.h (struct tracepoint) <static_trace_marker_id>: | |
13586 | Make std::string. | |
13587 | * breakpoint.c (init_breakpoint_sal): Adjust to std::string. | |
13588 | (decode_static_tracepoint_spec): Adjust to std::vector. | |
13589 | (tracepoint_print_one_detail): Adjust to std::string. | |
13590 | (strace_marker_decode_location): Adjust to std::string. | |
13591 | (update_static_tracepoint): Adjust to std::string, remove call | |
13592 | to release_static_tracepoint_marker. | |
13593 | * linux-nat.c (linux_child_static_tracepoint_markers_by_strid): | |
13594 | Adjust to std::vector. | |
13595 | * remote.c (remote_static_tracepoint_marker_at): Return bool. | |
13596 | (remote_static_tracepoint_markers_by_strid): Adjust to | |
13597 | std::vector. | |
13598 | * common/rsp-low.h (hex2str): New overload with explicit count | |
13599 | of bytes. | |
13600 | * common/rsp-low.c (hex2str): New overload with explicit count | |
13601 | of bytes. | |
13602 | * unittests/rsp-low-selftests.c (test_hex2str): New function. | |
13603 | (_initialize_rsp_low_selftests): Add test_hex2str test. | |
13604 | * unittests/tracepoint-selftests.c | |
13605 | (test_parse_static_tracepoint_marker_definition): Adjust to | |
13606 | std::string. | |
13607 | ||
62c222b6 SM |
13608 | 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca> |
13609 | ||
13610 | * tracepoint.c (parse_static_tracepoint_marker_definition): | |
13611 | Consider case where the definition is followed by more | |
13612 | definitions. | |
13613 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add | |
13614 | tracepoint-selftests.c. | |
13615 | * unittests/tracepoint-selftests.c: New. | |
13616 | ||
7eb2418f PFC |
13617 | 2018-03-21 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com> |
13618 | ||
13619 | * MAINTAINERS (Write After Approval): Add Pedro Franco de | |
13620 | Carvalho. | |
13621 | ||
7cbe16e9 SR |
13622 | 2018-03-20 Stephen Roberts <stephen.roberts@arm.com> |
13623 | ||
3d6b3b82 | 13624 | * symtab.c (find_pc_sect_line): fixed indentation. |
7cbe16e9 | 13625 | |
4ee89e90 SR |
13626 | 2018-03-20 Stephen Roberts <stephen.roberts@arm.com> |
13627 | ||
3d6b3b82 | 13628 | * symtab.c (find_pc_sect_line): now uses binary search. |
4ee89e90 | 13629 | |
92630041 TT |
13630 | 2018-03-19 Tom Tromey <tom@tromey.com> |
13631 | ||
13632 | * rust-exp.y (struct_expr_tail, struct_expr_list): Add plain | |
13633 | "IDENT" production. | |
13634 | ||
76727919 TT |
13635 | 2018-03-19 Pedro Alves <palves@redhat.com> |
13636 | Tom Tromey <tom@tromey.com> | |
13637 | ||
13638 | * unittests/observable-selftests.c: New file. | |
13639 | * common/observable.h: New file. | |
13640 | * observable.h: New file. | |
13641 | * ada-lang.c, ada-tasks.c, agent.c, aix-thread.c, annotate.c, | |
13642 | arm-tdep.c, auto-load.c, auxv.c, break-catch-syscall.c, | |
13643 | breakpoint.c, bsd-uthread.c, cli/cli-interp.c, cli/cli-setshow.c, | |
13644 | corefile.c, dummy-frame.c, event-loop.c, event-top.c, exec.c, | |
13645 | extension.c, frame.c, gdbarch.c, guile/scm-breakpoint.c, | |
13646 | infcall.c, infcmd.c, inferior.c, inflow.c, infrun.c, jit.c, | |
13647 | linux-tdep.c, linux-thread-db.c, m68klinux-tdep.c, | |
13648 | mi/mi-cmd-break.c, mi/mi-interp.c, mi/mi-main.c, objfiles.c, | |
13649 | ppc-linux-nat.c, ppc-linux-tdep.c, printcmd.c, procfs.c, | |
13650 | python/py-breakpoint.c, python/py-finishbreakpoint.c, | |
13651 | python/py-inferior.c, python/py-unwind.c, ravenscar-thread.c, | |
13652 | record-btrace.c, record-full.c, record.c, regcache.c, remote.c, | |
13653 | riscv-tdep.c, sol-thread.c, solib-aix.c, solib-spu.c, solib.c, | |
13654 | spu-multiarch.c, spu-tdep.c, stack.c, symfile-mem.c, symfile.c, | |
13655 | symtab.c, thread.c, top.c, tracepoint.c, tui/tui-hooks.c, | |
13656 | tui/tui-interp.c, valops.c: Update all users. | |
13657 | * tui/tui-hooks.c (tui_bp_created_observer) | |
13658 | (tui_bp_deleted_observer, tui_bp_modified_observer) | |
13659 | (tui_inferior_exit_observer, tui_before_prompt_observer) | |
13660 | (tui_normal_stop_observer, tui_register_changed_observer): | |
13661 | Remove. | |
13662 | (tui_observers_token): New global. | |
13663 | (attach_or_detach, tui_attach_detach_observers): New functions. | |
13664 | (tui_install_hooks, tui_remove_hooks): Use | |
13665 | tui_attach_detach_observers. | |
13666 | * record-btrace.c (record_btrace_thread_observer): Remove. | |
13667 | (record_btrace_thread_observer_token): New global. | |
13668 | * observer.sh: Remove. | |
13669 | * observer.c: Rename to observable.c. | |
13670 | * observable.c (namespace gdb_observers): Define new objects. | |
13671 | (observer_debug): Move into gdb_observers namespace. | |
13672 | (struct observer, struct observer_list, xalloc_observer_list_node) | |
13673 | (xfree_observer_list_node, generic_observer_attach) | |
13674 | (generic_observer_detach, generic_observer_notify): Remove. | |
13675 | (_initialize_observer): Update. | |
13676 | Don't include observer.inc. | |
13677 | * Makefile.in (generated_files): Remove observer.h, observer.inc. | |
13678 | (clean mostlyclean): Likewise. | |
13679 | (observer.h, observer.inc): Remove targets. | |
13680 | (SUBDIR_UNITTESTS_SRCS): Add observable-selftests.c. | |
13681 | (COMMON_SFILES): Use observable.c, not observer.c. | |
13682 | * .gitignore: Remove observer.h. | |
13683 | ||
1cb1f3da TT |
13684 | 2018-03-18 Tom Tromey <tom@tromey.com> |
13685 | ||
13686 | * solib.c (gdb_bfd_lookup_symbol_from_symtab): Use | |
13687 | gdb::def_vector. | |
13688 | (bfd_lookup_symbol_from_dyn_symtab): Likewise. | |
13689 | ||
a06ab151 TT |
13690 | 2018-03-17 Tom Tromey <tom@tromey.com> |
13691 | ||
13692 | * auto-load.c (auto_load_objfile_script_1): Use std::string. | |
13693 | ||
770623f7 TT |
13694 | 2018-03-17 Tom Tromey <tom@tromey.com> |
13695 | ||
13696 | * target.c (class scoped_target_fd): New. | |
13697 | (target_fileio_close_cleanup): Remove. | |
13698 | (target_fileio_read_alloc_1): Use scoped_target_fd. | |
13699 | ||
39be3c7e SM |
13700 | 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca> |
13701 | ||
13702 | * silent-rules.mk: New. | |
13703 | * Makefile.in: Include silent-rules.mk | |
13704 | (srcdir, VPATH, top_srcdir): Move up. | |
13705 | (COMPILE): Add ECHO_CXX. | |
13706 | (test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD. | |
13707 | (init.c): Add ECHO_INIT_C. | |
13708 | (gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD. | |
13709 | (version.c): Add ECHO_GEN. | |
13710 | (printcmd.o): Add ECHO_CXX. | |
13711 | (target-float.o): Add ECHO_CXX. | |
13712 | (ada-exp.o): Add ECHO_CXX. | |
13713 | (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN. | |
13714 | (insight$(EXEEXT)): Add ECHO_CXXLD. | |
13715 | * gnulib/configure.ac: Add AM_SILENT_RULES. | |
13716 | * gnulib/aclocal.m4: Re-generate. | |
13717 | * gnulib/configure: Re-generate. | |
13718 | * gnulib/import/Makefile.in: Re-generate. | |
13719 | ||
37e136b1 TT |
13720 | 2018-03-16 Tom Tromey <tom@tromey.com> |
13721 | ||
13722 | * xcoffread.c (xcoff_symfile_offsets): Change type of "addrs". | |
13723 | * utils.h (make_cleanup_free_section_addr_info): Don't declare. | |
13724 | * utils.c (do_free_section_addr_info) | |
13725 | (make_cleanup_free_section_addr_info): Remove. | |
13726 | * symfile.h (struct other_sections): Add constructor. | |
13727 | (struct section_addr_info): Remove. | |
13728 | (section_addr_info): New typedef. | |
13729 | (struct sym_fns) <sym_offsets>: Change type of parameter. | |
13730 | (build_section_addr_info_from_objfile) | |
13731 | (relative_addr_info_to_section_offsets, addr_info_make_relative) | |
13732 | (default_symfile_offsets, symbol_file_add) | |
13733 | (symbol_file_add_from_bfd) | |
13734 | (build_section_addr_info_from_section_table): Update. | |
13735 | (alloc_section_addr_info, free_section_addr_info): Don't declare. | |
13736 | * symfile.c (alloc_section_addr_info): Remove. | |
13737 | (build_section_addr_info_from_section_table): Change return type. | |
13738 | Update. | |
13739 | (build_section_addr_info_from_bfd) | |
13740 | (build_section_addr_info_from_objfile): Likewise. | |
13741 | (free_section_addr_info): Remove. | |
13742 | (relative_addr_info_to_section_offsets): Change type of "addrs". | |
13743 | (addrs_section_compar): Now a std::sort comparator. | |
13744 | (addrs_section_sort): Change return type. | |
13745 | (addr_info_make_relative): Change type of "addrs". Update. | |
13746 | (default_symfile_offsets, syms_from_objfile_1) | |
13747 | (syms_from_objfile, symbol_file_add_with_addrs): Likewise. | |
13748 | (symbol_file_add_separate): Update. | |
13749 | (symbol_file_add): Change type of "addrs". Update. | |
13750 | (add_symbol_file_command): Update. Remove cleanups. | |
13751 | * symfile-mem.c (symbol_file_add_from_memory): Update. Remove | |
13752 | cleanups. | |
13753 | * symfile-debug.c (debug_sym_offsets): Change type of "info". | |
13754 | * solib.c (solib_read_symbols): Update. | |
13755 | * objfiles.c (objfile_relocate): Update. Remove cleanups. | |
13756 | * machoread.c (macho_symfile_offsets): Update. | |
13757 | * jit.c (jit_bfd_try_read_symtab): Update. | |
13758 | ||
03afa6ef SM |
13759 | 2018-03-15 Simon Marchi <simon.marchi@polymtl.ca> |
13760 | ||
13761 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add | |
13762 | unittests/utils-selftests.c. | |
13763 | * unittests/utils-selftests.c: New file. | |
13764 | ||
3ae9ce5d TT |
13765 | 2018-03-14 Tom Tromey <tom@tromey.com> |
13766 | ||
13767 | PR cli/14977: | |
13768 | * printcmd.c (printf_c_string, printf_wide_c_string): Special case | |
13769 | for NULL. | |
13770 | ||
b8c2339b TT |
13771 | 2018-03-14 Tom Tromey <tom@tromey.com> |
13772 | ||
13773 | PR cli/19918: | |
13774 | * printcmd.c (printf_pointer): Allow "-" in format. | |
13775 | ||
80ae639d TT |
13776 | 2018-03-14 Tom Tromey <tom@tromey.com> |
13777 | ||
13778 | * printcmd.c (_initialize_printcmd): Add usage to printf. | |
13779 | ||
0d671d99 YQ |
13780 | 2018-03-14 Yao Qi <qiyao@sourceware.org> |
13781 | ||
13782 | * MAINTAINERS: Update my email address. | |
13783 | ||
b577b6af TT |
13784 | 2018-03-13 Tom Tromey <tom@tromey.com> |
13785 | ||
13786 | * machoread.c (macho_check_dsym): Change filenamep to a | |
13787 | std::string*. | |
13788 | (macho_symfile_read): Update. | |
13789 | * symfile.c (load_command): Use std::string. | |
13790 | ||
89a3b63e AB |
13791 | 2018-03-12 Andrew Burgess <andrew.burgess@embecosm.com> |
13792 | ||
13793 | * riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization | |
13794 | to error message string. | |
13795 | (riscv_register_name): Use xsnprintf instead of sprintf. | |
13796 | (riscv_insn::fetch_instruction): Use gdb_assert instead of | |
13797 | internal_error. | |
13798 | (riscv_print_arg_location): Use gdb_assert_not_reached instead of | |
13799 | error. | |
13800 | (riscv_push_dummy_call): Likewise. | |
13801 | ||
984c7238 TT |
13802 | 2018-03-12 Tom Tromey <tom@tromey.com> |
13803 | ||
13804 | * rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix): | |
13805 | Use gdb::byte_vector. | |
13806 | * arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector. | |
13807 | ||
933522d1 YQ |
13808 | 2018-03-12 Yao Qi <yao.qi@linaro.org> |
13809 | ||
13810 | * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change | |
13811 | parameter type to readable_regcache. | |
13812 | * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update | |
13813 | the declaration. | |
13814 | ||
be2daae6 TT |
13815 | 2018-03-11 Tom Tromey <tom@tromey.com> |
13816 | ||
13817 | * dwarf2read.c (struct nextfield): Add initializers. | |
13818 | (struct nextfnfield): Remove. | |
13819 | (struct fnfieldlist): Add initializers. Remove "length" and | |
13820 | "head", use std::vector. | |
13821 | (struct decl_field_list): Remove. | |
13822 | (struct field_info): Add initializers. | |
13823 | <fields, baseclasses>: Now std::vector. | |
13824 | <nbaseclasses, nfnfields, typedef_field_list_count, | |
13825 | nested_types_list_count>: Remove. | |
13826 | (dwarf2_add_field, dwarf2_add_type_defn) | |
13827 | (dwarf2_attach_fields_to_type, dwarf2_add_member_fn) | |
13828 | (dwarf2_attach_fn_fields_to_type, handle_struct_member_die) | |
13829 | (process_structure_scope): Update. | |
13830 | ||
484cf504 TT |
13831 | 2018-03-11 Tom Tromey <tom@tromey.com> |
13832 | ||
13833 | * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable | |
13834 | for use by std::sort. | |
13835 | (build_type_psymtabs_1): Use std::vector. | |
13836 | ||
9bd8e0b0 EZ |
13837 | 2018-03-09 Eli Zaretskii <eliz@gnu.org> |
13838 | ||
13839 | * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK, | |
13840 | and LIBMPFR in the printed configuration. | |
13841 | ||
5dc1a704 TT |
13842 | 2018-03-08 Tom Tromey <tom@tromey.com> |
13843 | ||
13844 | * source.c (get_filename_and_charpos): Use scoped_fd. | |
13845 | * nto-procfs.c (procfs_open_1): Use scoped_fd. | |
13846 | (procfs_pidlist): Likewise. | |
13847 | * procfs.c (proc_get_LDT_entry): Use scoped_fd. | |
13848 | (iterate_over_mappings): Likewise. | |
13849 | ||
fdf07f3a TT |
13850 | 2018-03-08 Tom Tromey <tom@tromey.com> |
13851 | ||
13852 | * infcall.c (struct call_return_meta_info) | |
13853 | <stack_temporaries_enabled>: Remove. | |
13854 | (get_call_return_value, call_function_by_hand_dummy): Update. | |
13855 | * thread.c (disable_thread_stack_temporaries): Remove. | |
13856 | (enable_thread_stack_temporaries): Remove. | |
13857 | (thread_stack_temporaries_enabled_p): Return bool. | |
13858 | (push_thread_stack_temporary, value_in_thread_stack_temporaries) | |
13859 | (get_last_thread_stack_temporary): Update. | |
13860 | * eval.c (evaluate_subexp): Update. | |
13861 | * gdbthread.h (class enable_thread_stack_temporaries): Now a | |
13862 | class, not a function. | |
13863 | (value_ptr, value_vec): Remove typedefs. | |
13864 | (class thread_info) <stack_temporaries_enabled>: Now bool. | |
13865 | <stack_temporaries>: Now a std::vector. | |
13866 | (thread_stack_temporaries_enabled_p) | |
13867 | (value_in_thread_stack_temporaries): Return bool. | |
13868 | ||
567a3e54 SM |
13869 | 2018-03-08 Simon Marchi <simon.marchi@ericsson.com> |
13870 | ||
13871 | * remote.c (putpkt_binary): Fix omitted bytes reporting. | |
13872 | (getpkt_or_notif_sane_1): Likewise. | |
13873 | ||
00b40057 SM |
13874 | 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca> |
13875 | ||
13876 | * build-id.c (build_id_to_debug_bfd): Use std::string. | |
13877 | ||
a8dbfd58 SM |
13878 | 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca> |
13879 | ||
13880 | * build-id.c (find_separate_debug_file_by_buildid): Return | |
13881 | std::string. | |
13882 | * build-id.h (find_separate_debug_file_by_buildid): Return | |
13883 | std::string. | |
13884 | * coffread.c (coff_symfile_read): Adjust to std::string. | |
13885 | * elfread.c (elf_symfile_read): Adjust to std::string. | |
13886 | * symfile.c (separate_debug_file_exists): Change parameter to | |
13887 | std::string. | |
13888 | (find_separate_debug_file): Return std::string. | |
13889 | (find_separate_debug_file_by_debuglink): Return std::string. | |
13890 | * symfile.h (find_separate_debug_file_by_debuglink): Return | |
13891 | std::string. | |
13892 | ||
e6a58aa8 SM |
13893 | 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca> |
13894 | ||
13895 | * common/xml-utils.c (xml_escape_text): Move code to... | |
13896 | (xml_escape_text_append): ... this new function. | |
13897 | * common/xml-utils.h (xml_escape_text_append): New declaration. | |
13898 | * unittests/xml-utils-selftests.c (test_xml_escape_text_append): | |
13899 | New function. | |
13900 | (_initialize_xml_utils): register test_xml_escape_text_append as | |
13901 | a selftest. | |
13902 | ||
4ef0bef6 AH |
13903 | 2018-03-07 Alan Hayward <alan.hayward@arm.com> |
13904 | ||
13905 | * defs.h: Remove MAX_REGISTER_SIZE. | |
13906 | * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE | |
13907 | asserts. | |
13908 | * python/py-unwind.c (pyuw_sniffer): Likewise. | |
13909 | ||
e0d3522b TT |
13910 | 2018-03-07 Tom Tromey <tom@tromey.com> |
13911 | ||
13912 | * linux-tdep.c (linux_info_proc): Update. | |
13913 | * target.h (struct target_ops) <to_fileio_readlink>: Return | |
13914 | optional<string>. | |
13915 | (target_fileio_readlink): Return optional<string>. | |
13916 | * remote.c (remote_hostio_readlink): Return optional<string>. | |
13917 | * inf-child.c (inf_child_fileio_readlink): Return | |
13918 | optional<string>. | |
13919 | * target.c (target_fileio_readlink): Return optional<string>. | |
13920 | ||
ea005f31 AB |
13921 | 2018-03-07 Andrew Burgess <andrew.burgess@embecosm.com> |
13922 | ||
13923 | * regcache.c (cooked_read_test): Add riscv to the list of | |
13924 | architectures that have a save_reggroup. | |
13925 | ||
e95a97d4 AA |
13926 | 2018-03-07 Andreas Arnez <arnez@linux.vnet.ibm.com> |
13927 | ||
13928 | * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given | |
13929 | value is not a dynamic class object. | |
13930 | ||
d8344f3d TT |
13931 | 2018-03-06 Tom Tromey <tom@tromey.com> |
13932 | ||
13933 | * rust-exp.y: Formatting fixes. | |
13934 | ||
9add17f2 AB |
13935 | 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com> |
13936 | ||
13937 | * riscv-tdep.c (riscv_register_name): Remove target description | |
13938 | support. | |
13939 | (riscv_gdbarch_init): Remove target description check. | |
13940 | ||
c9486dfe AB |
13941 | 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com> |
13942 | ||
13943 | * riscv-tdep.c: Remove 'Contributed by ...' lines from header | |
13944 | comment. | |
13945 | * riscv-tdep.h: Likewise. | |
13946 | ||
d74aff3d AB |
13947 | 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com> |
13948 | ||
13949 | * riscv-tdep.c (riscv_pseudo_register_read): Delete. | |
13950 | (riscv_pseudo_register_write): Delete. | |
13951 | (riscv_gdbarch_init): Remove all use of pseudo registers. | |
13952 | ||
7ea78b59 SM |
13953 | 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca> |
13954 | ||
13955 | * record-btrace.c (btrace_print_lines): Replace cleanup | |
13956 | parameter with RAII equivalents. | |
13957 | (btrace_insn_history): Replace cleanup with RAII equivalents. | |
13958 | * ui-out.h (make_cleanup_ui_out_list_begin_end, | |
13959 | make_cleanup_ui_out_tuple_begin_end): Remove. | |
13960 | * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end, | |
13961 | make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end, | |
13962 | make_cleanup_ui_out_list_begin_end): Remove. | |
13963 | ||
53127008 SM |
13964 | 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca> |
13965 | ||
13966 | * record-btrace.c (record_btrace_maybe_mark_async_event): Change | |
13967 | parameter types to std::vector. Use bool. | |
13968 | (record_btrace_wait): Replace VEC(tp_t) with | |
13969 | std::vector<thread_info *>. | |
13970 | * common/gdb_vecs.h (unordered_remove, ordered_remove): New. | |
13971 | ||
228f1508 SM |
13972 | 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca> |
13973 | ||
13974 | * record-btrace.c (record_btrace_disable_callback): Remove. | |
13975 | (struct scoped_btrace_disable): New. | |
13976 | (record_btrace_open): Use scoped_btrace_disable. | |
13977 | ||
b2970c23 AB |
13978 | 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com> |
13979 | ||
13980 | * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for | |
13981 | reading values from registers. | |
13982 | ||
fb294655 AB |
13983 | 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com> |
13984 | ||
13985 | * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz | |
13986 | where appropriate. | |
13987 | ||
cab5bb9d AB |
13988 | 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com> |
13989 | ||
13990 | * riscv-tdep.c (riscv_print_arg_location): Add header comment, | |
13991 | change parameter type. Use GDB's print functions, and use | |
13992 | core_addr_to_string where appropriate. | |
13993 | (riscv_push_dummy_call): Use core_addr_to_string where | |
13994 | appropriate, update call to riscv_print_arg_location, and reindent | |
13995 | a few lines. | |
13996 | (riscv_return_value): Update call to riscv_print_arg_location. | |
13997 | ||
dbbb1059 AB |
13998 | 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com> |
13999 | Tim Newsome <tim@sifive.com> | |
14000 | Albert Ou <a0u@eecs.berkeley.edu> | |
14001 | Darius Rad <darius@bluespec.com> | |
14002 | ||
14003 | * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o | |
14004 | (HFILES_NO_SRCDIR): Add riscv-tdep.h. | |
14005 | (ALLDEPFILES): Add riscv-tdep.c | |
14006 | * configure.tgt: Add riscv support. | |
14007 | * riscv-tdep.c: New file. | |
14008 | * riscv-tdep.h: New file. | |
14009 | * NEWS: Mention new target. | |
14010 | * MAINTAINERS: Add entry for riscv. | |
14011 | ||
5dc43913 AB |
14012 | 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com> |
14013 | ||
14014 | * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized | |
14015 | fields within aggregates. | |
14016 | ||
3dea1ef7 SM |
14017 | 2018-03-04 Simon Marchi <simon.marchi@polymtl.ca> |
14018 | ||
14019 | * record-btrace.c (btrace_print_lines): Change type of flags to | |
14020 | gdb_disassembly_flags. | |
14021 | ||
7efba073 JB |
14022 | 2018-03-04 John Baldwin <jhb@FreeBSD.org> |
14023 | ||
14024 | * fbsd-nat.c: Include "inf-ptrace.h". | |
14025 | (USE_SIGTRAP_SIGINFO): Conditionally define. | |
14026 | [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function. | |
14027 | (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap". | |
14028 | [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New | |
14029 | function. | |
14030 | [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint): | |
14031 | Likewise. | |
14032 | [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint): | |
14033 | Likewise. | |
14034 | (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set | |
14035 | "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint", | |
14036 | "supports_stopped_by_hw_breakpoint" target methods. | |
14037 | ||
386a8676 JB |
14038 | 2018-03-04 John Baldwin <jhb@FreeBSD.org> |
14039 | ||
14040 | * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat". | |
14041 | * fbsd-nat.c (debug_fbsd_nat): New variable. | |
14042 | (show_fbsd_nat_debug): New function. | |
14043 | (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled. | |
14044 | (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command. | |
14045 | ||
12279366 JB |
14046 | 2018-03-04 John Baldwin <jhb@FreeBSD.org> |
14047 | ||
14048 | * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function. | |
14049 | * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New | |
14050 | prototype. | |
14051 | * x86-nat.c (x86_stopped_by_hw_breakpoint): New function. | |
14052 | (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target | |
14053 | method. | |
14054 | ||
54693cf5 SM |
14055 | 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca> |
14056 | ||
14057 | * common/gdb_vecs.c (free_char_ptr_vec): Remove. | |
14058 | * common/gdb_vecs.h (free_char_ptr_vec): Remove. | |
14059 | ||
ccb2231c SM |
14060 | 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca> |
14061 | ||
14062 | * charset.c (struct charset_vector): New. | |
14063 | (charsets): Change type to charset_vector. | |
14064 | (find_charset_names): Adjust. | |
14065 | (add_one): Adjust. | |
14066 | (_initialize_charset): Adjust. | |
14067 | ||
6fb16ce6 SM |
14068 | 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca> |
14069 | ||
14070 | * progspace.h (struct program_space) <deleted_solibs>: Change | |
14071 | type to std::vector<std::string>. | |
14072 | * progspace.c (clear_program_space_solib_cache): Adjust. | |
14073 | * breakpoint.c (print_solib_event): Adjust. | |
14074 | (check_status_catch_solib): Adjust. | |
14075 | * solib.c (update_solib_list): Adjust. | |
14076 | * ui-out.h (class ui_out) <field_string>: New overload. | |
14077 | * ui-out.c (ui_out::field_string): New overload. | |
14078 | ||
564b1e3f SM |
14079 | 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca> |
14080 | ||
14081 | * progspace.h (struct program_space): Add constructor and | |
14082 | destructor, initialize fields. | |
14083 | (add_program_space): Remove. | |
14084 | * progspace.c (add_program_space): Rename to... | |
14085 | (program_space::program_space): ... this. | |
14086 | (release_program_space): Rename to... | |
14087 | (program_space::~program_space): ... this. | |
14088 | (delete_program_space): Use delete to delete program_space. | |
14089 | (initialize_progspace): Use new to allocate program_space. | |
14090 | * inferior.c (add_inferior_with_spaces): Likewise. | |
14091 | (clone_inferior_command): Likewise. | |
14092 | * infrun.c (follow_fork_inferior): Likewise. | |
14093 | (handle_vfork_child_exec_or_exit): Likewise. | |
14094 | ||
e80aaf61 SM |
14095 | 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca> |
14096 | ||
14097 | * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove. | |
14098 | (delim_string_to_char_ptr_vec): Return std::vector of | |
14099 | gdb::unique_xmalloc_ptr. | |
14100 | (dirnames_to_char_ptr_vec_append): Take std::vector of | |
14101 | gdb::unique_xmalloc_ptr. | |
14102 | (dirnames_to_char_ptr_vec): Return std::vector of | |
14103 | gdb::unique_xmalloc_ptr. | |
14104 | * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): | |
14105 | Take std::vector of gdb::unique_xmalloc_ptr, adjust the code. | |
14106 | (delim_string_to_char_ptr_vec): Return an std::vector of | |
14107 | gdb::unique_xmalloc_ptr, adjust the code. | |
14108 | (dirnames_to_char_ptr_vec_append): Take an std::vector of | |
14109 | gdb::unique_xmalloc_ptr, adjust the code. | |
14110 | (dirnames_to_char_ptr_vec): Return an std::vector of | |
14111 | gdb::unique_xmalloc_ptr, adjust the code. | |
14112 | * auto-load.c (auto_load_safe_path_vec): Change type to | |
14113 | std::vector of gdb::unique_xmalloc_ptr. | |
14114 | (auto_load_expand_dir_vars): Return an std::vector of | |
14115 | gdb::unique_xmalloc_ptr, adjust the code. | |
14116 | (auto_load_safe_path_vec_update): Adjust. | |
14117 | (filename_is_in_auto_load_safe_path_vec): Adjust. | |
14118 | (auto_load_objfile_script_1): Adjust. | |
14119 | * build-id.c (build_id_to_debug_bfd): Adjust. | |
14120 | * linux-thread-db.c (thread_db_load_search): Adjust. | |
14121 | * source.c (add_path): Adjust. | |
14122 | (openp): Adjust. | |
14123 | * symfile.c (find_separate_debug_file): Adjust. | |
14124 | * utils.c (do_free_char_ptr_vec): Remove. | |
14125 | (make_cleanup_free_char_ptr_vec): Remove. | |
14126 | ||
ab818ade SDJ |
14127 | 2018-03-01 Sergio Durigan Junior <sergiodj@redhat.com> |
14128 | ||
14129 | PR gdb/22907 | |
14130 | * common/pathstuff.c: Conditionally include "<windows.h>". | |
14131 | ||
e1e6f073 GS |
14132 | 2018-03-01 Georg Sauthoff <mail@georg.so> |
14133 | ||
14134 | PR gdb/22888 | |
14135 | * gcore.in: Quote variables and switch interpreter to bash. | |
14136 | ||
c7b15a66 TT |
14137 | 2018-03-01 Tom Tromey <tom@tromey.com> |
14138 | ||
14139 | * dwarf2read.c (alloc_discriminant_info): Fix default_index | |
14140 | assertion. Add assertion for discriminant_index. | |
14141 | (quirk_rust_enum): Use correct base type name in univariant case. | |
14142 | ||
0cb7c7b0 SM |
14143 | 2018-03-01 Simon Marchi <simon.marchi@ericsson.com> |
14144 | ||
14145 | * record.c (get_call_history_modifiers): Return a | |
14146 | record_print_flags. | |
14147 | (cmd_record_call_history): Adjust. | |
14148 | * record-btrace.c (record_btrace_call_history): Adjust. | |
14149 | (record_btrace_call_history_range): Adjust. | |
14150 | (record_btrace_call_history_from): Adjust. | |
14151 | * target-debug.h (target_debug_print_record_print_flags): New. | |
14152 | * target-delegates.c: Re-generate. | |
14153 | * target.c (target_call_history): Change flags type. | |
14154 | (target_call_history_from): Likewise. | |
14155 | (target_call_history_range): Likewise. | |
14156 | * target.h (struct target_ops) <target_call_history>: Likewise. | |
14157 | (target_call_history_from): Likewise. | |
14158 | (target_call_history_range): Likewise. | |
14159 | ||
25e3c82c SDJ |
14160 | 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com> |
14161 | Simon Marchi <simon.marchi@polymtl.ca> | |
14162 | ||
14163 | * common/common-utils.c: Include "sys/stat.h". | |
14164 | (is_regular_file): Move here from "source.c"; change return | |
14165 | type to "bool". | |
14166 | * common/common-utils.h (is_regular_file): New prototype. | |
14167 | * common/pathstuff.c (contains_dir_separator): New function. | |
14168 | * common/pathstuff.h (contains_dir_separator): New prototype. | |
14169 | * source.c: Don't include "sys/stat.h". | |
14170 | (is_regular_file): Move to "common/common-utils.c". | |
14171 | ||
b4987c95 SDJ |
14172 | 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com> |
14173 | ||
14174 | * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c". | |
14175 | (HFILES_NO_SRCDIR): Add "common/pathstuff.h". | |
14176 | * auto-load.c: Include "common/pathstuff.h". | |
14177 | * common/common-def.h (current_directory): Move here. | |
14178 | * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New | |
14179 | function. | |
14180 | * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New | |
14181 | prototype. | |
14182 | * common/pathstuff.c: New file. | |
14183 | * common/pathstuff.h: New file. | |
14184 | * compile/compile.c: Include "common/pathstuff.h". | |
14185 | * defs.h (current_directory): Move to "common/common-defs.h". | |
14186 | * dwarf2read.c: Include "common/pathstuff.h". | |
14187 | * exec.c: Likewise. | |
14188 | * guile/scm-safe-call.c: Likewise. | |
14189 | * linux-thread-db.c: Likewise. | |
14190 | * main.c: Likewise. | |
14191 | * nto-tdep.c: Likewise. | |
14192 | * objfiles.c: Likewise. | |
14193 | * source.c: Likewise. | |
14194 | * symtab.c: Likewise. | |
14195 | * utils.c: Include "common/pathstuff.h". | |
14196 | (gdb_realpath): Move to "common/pathstuff.c". | |
14197 | (gdb_realpath_keepfile): Likewise. | |
14198 | (gdb_abspath): Likewise. | |
14199 | * utils.h (gdb_realpath): Move to "common/pathstuff.h". | |
14200 | (gdb_realpath_keepfile): Likewise. | |
14201 | (gdb_abspath): Likewise. | |
14202 | ||
f169cfdc JB |
14203 | 2018-02-28 John Baldwin <jhb@FreeBSD.org> |
14204 | ||
14205 | * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a | |
14206 | wildcard process pid for super_resume for kernels with a | |
14207 | specific bug. | |
14208 | ||
e05cac70 PM |
14209 | 2018-02-27 Phil Muldoon <pmuldoon@redhat.com> |
14210 | ||
14211 | * compile/compile.c (get_args): Add additional comments | |
14212 | explaining function. | |
14213 | ||
55089490 TT |
14214 | 2018-02-27 Simon Marchi <simon.marchi@polymtl.ca> |
14215 | Tom Tromey <tom@tromey.com> | |
14216 | ||
14217 | * target.h (memory_write_request_s): Remove typedef. Don't define | |
14218 | VEC. | |
14219 | (target_write_memory_blocks): Change argument to std::vector. | |
14220 | (struct memory_write_request): Add constructor. | |
14221 | * target-memory.c (compare_block_starting_address): Return bool. | |
14222 | Change argument types. | |
14223 | (claim_memory): Change arguments to use std::vector. | |
14224 | (split_regular_and_flash_blocks, blocks_to_erase) | |
14225 | (compute_garbled_blocks): Likewise. | |
14226 | (cleanup_request_data, cleanup_write_requests_vector): Remove. | |
14227 | (target_write_memory_blocks): Change argument to std::vector. | |
14228 | * symfile.c (struct load_section_data): Add constructor and | |
14229 | destructor. Use std::vector for "requests". | |
14230 | (struct load_progress_data): Add initializers. | |
14231 | (load_section_callback): Update. Use "new". | |
14232 | (clear_memory_write_data): Remove. | |
14233 | (generic_load): Update. | |
14234 | ||
0c305b61 AH |
14235 | 2018-02-27 Alan Hayward <alan.hayward@arm.com> |
14236 | ||
14237 | * arch/aarch64.h: Use common/tdesc.h. | |
14238 | ||
c5196c92 MR |
14239 | 2018-02-26 Maciej W. Rozycki <macro@mips.com> |
14240 | ||
14241 | * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD | |
14242 | architecture with a 64-bit ABI. | |
14243 | ||
37c33887 MR |
14244 | 2018-02-26 Maciej W. Rozycki <macro@mips.com> |
14245 | ||
14246 | * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination | |
14247 | ahead of target description loading. | |
14248 | ||
d4dd3282 TT |
14249 | 2018-02-26 Tom Tromey <tom@tromey.com> |
14250 | ||
14251 | * stack.c (backtrace_command_1): Update. | |
14252 | * python/python-internal.h (gdbpy_apply_frame_filter): Change type | |
14253 | of "flags". | |
14254 | * python/py-framefilter.c (py_print_frame) | |
14255 | (gdbpy_apply_frame_filter): Change type of "flags". | |
14256 | * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type | |
14257 | of "flags". | |
14258 | (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals) | |
14259 | (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update. | |
14260 | * extension.h (enum frame_filter_flag): Rename from | |
14261 | frame_filter_flags. | |
14262 | (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE. | |
14263 | (apply_ext_lang_frame_filter): Change type of "flags". | |
14264 | * extension.c (apply_ext_lang_frame_filter): Change type of | |
14265 | "flags". | |
14266 | * extension-priv.h (struct extension_language_ops) | |
14267 | <apply_frame_filter>: Change type of "flags". | |
14268 | ||
6893c19a TT |
14269 | 2018-02-26 Tom Tromey <tom@tromey.com> |
14270 | ||
14271 | PR python/16497: | |
14272 | * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag. Fix | |
14273 | off-by-one in py_end computation. | |
14274 | * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle | |
14275 | PRINT_MORE_FRAMES. | |
14276 | * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New | |
14277 | constant. | |
14278 | ||
2ddeaf8a TT |
14279 | 2018-02-26 Tom Tromey <tom@tromey.com> |
14280 | ||
14281 | * dwarf2read.c (struct variant_field): New. | |
14282 | (struct nextfield) <variant>: New field. | |
14283 | (dwarf2_add_field): Handle DW_TAG_variant_part. | |
14284 | (dwarf2_attach_fields_to_type): Attach a discriminant_info to a | |
14285 | discriminated union. | |
14286 | (read_structure_type): Handle DW_TAG_variant_part. | |
14287 | (handle_struct_member_die): New function, extracted from | |
14288 | process_structure_scope. Handle DW_TAG_variant. | |
14289 | (process_structure_scope): Handle discriminated unions. Call | |
14290 | handle_struct_member_die. | |
14291 | ||
c9317f21 TT |
14292 | 2018-02-26 Tom Tromey <tom@tromey.com> |
14293 | ||
14294 | * rust-lang.h (rust_last_path_segment): Declare. | |
14295 | * rust-lang.c (rust_last_path_segment): Now public. Change | |
14296 | contract. | |
14297 | (struct disr_info): Remove. | |
14298 | (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL) | |
14299 | (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged) | |
14300 | (rust_get_disr_info, rust_tuple_variant_type_p): Remove. | |
14301 | (rust_enum_p, rust_enum_variant): New function. | |
14302 | (rust_underscore_fields): Remove "offset" parameter. | |
14303 | (rust_print_enum): New function. | |
14304 | (rust_val_print) <TYPE_CODE_UNION>: Remove enum code. | |
14305 | <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate. | |
14306 | (rust_print_struct_def): Add "for_rust_enum" parameter. Handle | |
14307 | enums. | |
14308 | (rust_internal_print_type): New function, from rust_print_type. | |
14309 | Remove enum code. | |
14310 | (rust_print_type): Call rust_internal_print_type. | |
14311 | (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>: | |
14312 | Update enum handling. | |
14313 | * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field. | |
14314 | (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum) | |
14315 | (rust_union_quirks): New functions. | |
14316 | (process_full_comp_unit, process_full_type_unit): Call | |
14317 | rust_union_quirks. | |
14318 | (process_structure_scope): Update rust_unions if necessary. | |
14319 | ||
7c22600a TT |
14320 | 2018-02-26 Tom Tromey <tom@tromey.com> |
14321 | ||
14322 | * value.h (value_union_variant): Declare. | |
14323 | * valops.c (value_union_variant): New function. | |
14324 | * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro. | |
14325 | (struct discriminant_info): New. | |
14326 | (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New | |
14327 | enumerator. | |
14328 | (struct main_type) <flag_discriminated_union>: New field. | |
14329 | ||
15ce8941 TT |
14330 | 2018-02-26 Tom Tromey <tom@tromey.com> |
14331 | ||
14332 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add | |
14333 | unittests/unpack-selftests.c. | |
14334 | * unittests/unpack-selftests.c: New file. | |
14335 | * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases. | |
14336 | ||
48fbe735 YQ |
14337 | 2018-02-26 Yao Qi <yao.qi@linaro.org> |
14338 | ||
14339 | * dwarf2read.c (struct partial_die_info) <read>: New method. | |
14340 | (read_partial_die): Remove the declaration. | |
14341 | (load_partial_dies): Update. | |
14342 | (partial_die_info::partial_die_info): | |
14343 | (read_partial_die): Change it to partial_die_info::read. | |
14344 | ||
52356b79 YQ |
14345 | 2018-02-26 Yao Qi <yao.qi@linaro.org> |
14346 | ||
14347 | * dwarf2read.c (struct partial_die_info) <fixup>: New method. | |
14348 | (fixup_partial_die): Remove declaration. | |
14349 | (scan_partial_symbols): Update. | |
14350 | (partial_die_parent_scope): Likewise. | |
14351 | (partial_die_full_name): Likewise. | |
14352 | (fixup_partial_die): Change it to partial_die_info::fixup. | |
14353 | ||
35cc7ed7 YQ |
14354 | 2018-02-26 Yao Qi <yao.qi@linaro.org> |
14355 | ||
14356 | * dwarf2read.c (read_partial_die): Update the declaration. | |
14357 | (load_partial_dies): Caller update. | |
14358 | (read_partial_die): Remove one argument abbrev_len. | |
14359 | ||
6f06d47b YQ |
14360 | 2018-02-26 Yao Qi <yao.qi@linaro.org> |
14361 | ||
14362 | * dwarf2read.c (struct partial_die_info): Add ctor, delete | |
14363 | assignment operator. | |
14364 | (load_partial_dies): Use ctor and copy ctor. | |
14365 | (read_partial_die): Update. | |
14366 | (dwarf2_cu::find_partial_die): Use ctor. | |
14367 | ||
d590ff25 YQ |
14368 | 2018-02-26 Yao Qi <yao.qi@linaro.org> |
14369 | ||
14370 | * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method. | |
14371 | (find_partial_die_in_comp_unit): Change it to | |
14372 | dwarf2_cu::find_partial_die. | |
14373 | (find_partial_die): Update. | |
14374 | ||
fd0a254f YQ |
14375 | 2018-02-26 Yao Qi <yao.qi@linaro.org> |
14376 | ||
14377 | * dwarf2read.c (read_partial_die): Remove the code checking abbrev | |
14378 | is NULL. | |
14379 | ||
cd9983dd YQ |
14380 | 2018-02-26 Yao Qi <yao.qi@linaro.org> |
14381 | ||
14382 | * dwarf2read.c (load_partial_dies): Move the location of XOBNEW. | |
14383 | ||
f46cd62a AH |
14384 | 2018-02-26 Alan Hayward <alan.hayward@arm.com> |
14385 | ||
14386 | * arch/amd64.h: Use common/tdesc.h. | |
14387 | * arch/i386.c: Likewise. | |
14388 | * arch/i386.h: Likewise. | |
14389 | * arch/tic6x.c: Likewise. | |
14390 | * arch/tdesc.h: Move file from here... | |
14391 | * common/tdesc.h: ...to here. | |
14392 | * features/aarch64-core.c: Regenerate. | |
14393 | * features/aarch64-fpu.c: Regenerate. | |
14394 | * features/i386/32bit-avx.c: Regenerate. | |
14395 | * features/i386/32bit-avx512.c: Regenerate. | |
14396 | * features/i386/32bit-core.c: Regenerate. | |
14397 | * features/i386/32bit-linux.c: Regenerate. | |
14398 | * features/i386/32bit-mpx.c: Regenerate. | |
14399 | * features/i386/32bit-pkeys.c: Regenerate. | |
14400 | * features/i386/32bit-sse.c: Regenerate. | |
14401 | * features/i386/64bit-avx.c: Regenerate. | |
14402 | * features/i386/64bit-avx512.c: Regenerate. | |
14403 | * features/i386/64bit-core.c: Regenerate. | |
14404 | * features/i386/64bit-linux.c: Regenerate. | |
14405 | * features/i386/64bit-mpx.c: Regenerate. | |
14406 | * features/i386/64bit-pkeys.c: Regenerate. | |
14407 | * features/i386/64bit-segments.c: Regenerate. | |
14408 | * features/i386/64bit-sse.c: Regenerate. | |
14409 | * features/i386/x32-core.c: Regenerate. | |
14410 | * features/tic6x-c6xp.c: Regenerate. | |
14411 | * features/tic6x-core.c: Regenerate. | |
14412 | * features/tic6x-gp.c: Regenerate. | |
14413 | * target-descriptions.c: Use common/tdesc.h. | |
14414 | * target-descriptions.h: Likewise. | |
14415 | ||
9b292f68 TT |
14416 | 2018-02-24 Tom Tromey <tom@tromey.com> |
14417 | ||
14418 | * linux-thread-db.c (try_thread_db_load_from_pdir_1) | |
14419 | (try_thread_db_load_from_dir, thread_db_load_search): Use | |
14420 | std::string. | |
14421 | (info_auto_load_libthread_db_compare): Return bool. Change | |
14422 | argument types. | |
14423 | (info_auto_load_libthread_db): Use std::vector, std::string. | |
14424 | Remove cleanups. | |
14425 | ||
281d762b TT |
14426 | 2018-02-24 Tom Tromey <tom@tromey.com> |
14427 | ||
14428 | * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a | |
14429 | std::string. | |
14430 | * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a | |
14431 | std::string*. | |
14432 | * gdbarch.c: Rebuild. | |
14433 | * gdbarch.h: Rebuild. | |
14434 | * breakpoint.c (check_fast_tracepoint_sals): Use std::string. | |
14435 | * arch-utils.h (default_fast_tracepoint_valid_at): Update. | |
14436 | * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a | |
14437 | std::string*. | |
14438 | ||
9d8780f0 SM |
14439 | 2018-02-23 Simon Marchi <simon.marchi@polymtl.ca> |
14440 | ||
14441 | * gdbtypes.h (sect_offset): Change type to uint64_t. | |
14442 | (sect_offset_str): New function. | |
14443 | * dwarf2read.c (create_addrmap_from_aranges): Use | |
14444 | sect_offset_str. | |
14445 | (error_check_comp_unit_head): Likewise. | |
14446 | (create_debug_type_hash_table): Likewise. | |
14447 | (read_cutu_die_from_dwo): Likewise. | |
14448 | (init_cutu_and_read_dies): Likewise. | |
14449 | (init_cutu_and_read_dies_no_follow): Likewise. | |
14450 | (process_psymtab_comp_unit_reader): Likewise. | |
14451 | (partial_die_parent_scope): Likewise. | |
14452 | (peek_die_abbrev): Likewise. | |
14453 | (process_queue): Likewise. | |
14454 | (dwarf2_physname): Likewise. | |
14455 | (read_namespace_alias): Likewise. | |
14456 | (read_import_statement): Likewise. | |
14457 | (create_dwo_cu_reader): Likewise. | |
14458 | (create_cus_hash_table): Likewise. | |
14459 | (lookup_dwo_cutu): Likewise. | |
14460 | (inherit_abstract_dies): Likewise. | |
14461 | (read_func_scope): Likewise. | |
14462 | (read_call_site_scope): Likewise. | |
14463 | (dwarf2_add_member_fn): Likewise. | |
14464 | (read_common_block): Likewise. | |
14465 | (read_module_type): Likewise. | |
14466 | (read_typedef): Likewise. | |
14467 | (read_subrange_type): Likewise. | |
14468 | (load_partial_dies): Likewise. | |
14469 | (read_partial_die): Likewise. | |
14470 | (find_partial_die): Likewise. | |
14471 | (read_str_index): Likewise. | |
14472 | (dwarf2_string_attr): Likewise. | |
14473 | (build_error_marker_type): Likewise. | |
14474 | (lookup_die_type): Likewise. | |
14475 | (dump_die_shallow): Likewise. | |
14476 | (follow_die_ref): Likewise. | |
14477 | (dwarf2_fetch_die_loc_sect_off): Likewise. | |
14478 | (dwarf2_fetch_constant_bytes): Likewise. | |
14479 | (follow_die_sig): Likewise. | |
14480 | (get_signatured_type): Likewise. | |
14481 | (get_DW_AT_signature_type): Likewise. | |
14482 | (dwarf2_find_containing_comp_unit): Likewise. | |
14483 | (set_die_type): Likewise. | |
14484 | ||
8ec57239 JB |
14485 | 2018-02-21 John Baldwin <jhb@FreeBSD.org> |
14486 | ||
14487 | * arch/aarch64.c: Include "common-defs.h". | |
14488 | * arch/amd64.c: Likewise. | |
14489 | * arch/i386.c: Likewise. | |
14490 | ||
3eac2b65 TT |
14491 | 2018-02-21 Tom Tromey <tom@tromey.com> |
14492 | ||
14493 | * value.h: (extract_field_op): Update. | |
14494 | * eval.c (extract_field_op): Return a const char *. | |
14495 | * expression.h (parse_expression_for_completion): Update. | |
14496 | * completer.c (complete_expression): Update. | |
14497 | (add_struct_fields): Make fieldname const. | |
14498 | * parse.c (expout_completion_name): Now a unique_xmalloc_ptr. | |
14499 | (mark_completion_tag, parse_exp_in_context_1): Update. | |
14500 | (parse_expression_for_completion): Change "name" to | |
14501 | unique_xmalloc_ptr*. | |
14502 | ||
6ccb583f TT |
14503 | 2018-02-21 Tom Tromey <tom@tromey.com> |
14504 | ||
14505 | * infcall.c (call_function_by_hand_dummy): Use std::vector. | |
14506 | ||
c113ed0c YQ |
14507 | 2018-02-21 Yao Qi <yao.qi@linaro.org> |
14508 | ||
14509 | * avr-tdep.c (avr_read_pc): Change parameter type to | |
14510 | readable_regcache. | |
14511 | * gdbarch.sh (read_pc): Likewise. | |
14512 | * gdbarch.c: Re-generated. | |
14513 | * gdbarch.h: Re-generated. | |
14514 | * hppa-tdep.c (hppa_read_pc): Change parameter type to | |
14515 | readable_regcache. | |
14516 | * ia64-tdep.c (ia64_read_pc): Likewise. | |
14517 | * mips-tdep.c (mips_read_pc): Likewise. | |
14518 | * spu-tdep.c (spu_read_pc): Likewise. | |
14519 | ||
4c74fe6b YQ |
14520 | 2018-02-21 Yao Qi <yao.qi@linaro.org> |
14521 | ||
14522 | * Makefile.in (COMMON_SFILES): Add regcache-dump.c | |
14523 | * regcache-dump.c: New file. | |
14524 | * regcache.c: Move register_dump to regcache-dump.c. | |
14525 | (maintenance_print_registers): Likewise. | |
14526 | (maintenance_print_raw_registers): Likewise. | |
14527 | (maintenance_print_cooked_registers): Likewise. | |
14528 | (maintenance_print_register_groups): Likewise. | |
14529 | (maintenance_print_remote_registers): Likewise. | |
14530 | (_initialize_regcache): Likewise. | |
14531 | * regcache.h (register_dump): Moved from regcache.c. | |
14532 | ||
796bb026 YQ |
14533 | 2018-02-21 Yao Qi <yao.qi@linaro.org> |
14534 | ||
14535 | * regcache.c (regcache::regcache): Update. | |
14536 | (regcache::invalidate): Move it to detached_regcache::invalidate. | |
14537 | (get_thread_arch_aspace_regcache): Update. | |
14538 | (regcache::raw_update): Update. | |
14539 | (regcache::cooked_read): Remove some code. | |
14540 | (regcache::cooked_read_value): Likewise. | |
14541 | (regcache::raw_write): Remove assert on m_readonly_p. | |
14542 | (regcache::raw_supply_integer): Move it to | |
14543 | detached_regcache::raw_supply_integer. | |
14544 | (regcache::raw_supply_zeroed): Likewise. | |
14545 | * regcache.h (detached_regcache) <raw_supply_integer>: New | |
14546 | declaration. | |
14547 | <raw_supply_zeroed, invalidate>: Likewise. | |
14548 | (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed. | |
14549 | <invalidate>: Likewise. | |
14550 | <m_readonly_p>: Removed. | |
14551 | ||
215c69dc YQ |
14552 | 2018-02-21 Yao Qi <yao.qi@linaro.org> |
14553 | ||
14554 | * infcmd.c (get_return_value): Let stop_regs point to | |
14555 | get_current_regcache. | |
14556 | * regcache.c (regcache::regcache): Remove. | |
14557 | (register_dump_reg_buffer): New class. | |
14558 | (regcache_print): Adjust. | |
14559 | * regcache.h (regcache): Remove constructors. | |
14560 | ||
f3384e66 YQ |
14561 | 2018-02-21 Yao Qi <yao.qi@linaro.org> |
14562 | ||
14563 | * regcache.c (class register_dump): New class. | |
14564 | (register_dump_regcache, register_dump_none): New class. | |
14565 | (register_dump_remote, register_dump_groups): New class. | |
14566 | (regcache_print): Update. | |
14567 | * regcache.h (regcache_dump_what): Move it to regcache.c. | |
14568 | (regcache) <dump>: Remove. | |
14569 | ||
c8ec2f33 YQ |
14570 | 2018-02-21 Yao Qi <yao.qi@linaro.org> |
14571 | ||
14572 | * jit.c (struct jit_unwind_private) <regcache>: Change its type to | |
14573 | reg_buffer_rw *. | |
14574 | (jit_unwind_reg_set_impl): Call raw_supply. | |
14575 | (jit_frame_sniffer): Use reg_buffer_rw. | |
14576 | * record-full.c (record_full_core_regbuf): Change its type. | |
14577 | (record_full_core_open_1): Use reg_buffer_rw. | |
14578 | (record_full_close): Likewise. | |
14579 | (record_full_core_fetch_registers): Use regcache->raw_supply. | |
14580 | (record_full_core_store_registers): Likewise. | |
14581 | * regcache.c (regcache::get_register_status): Move it to | |
14582 | reg_buffer. | |
14583 | (regcache_raw_set_cached_value): Remove. | |
14584 | (regcache::raw_set_cached_value): Remove. | |
14585 | (regcache::raw_write): Call raw_supply. | |
14586 | (regcache::raw_supply): Move it to reg_buffer_rw. | |
14587 | * regcache.h (regcache_raw_set_cached_value): Remove. | |
14588 | (reg_buffer_rw): New class. | |
14589 | ||
daf6667d YQ |
14590 | 2018-02-21 Yao Qi <yao.qi@linaro.org> |
14591 | ||
14592 | * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use | |
14593 | readonly_detached_regcache. | |
14594 | (dummy_frame_prev_register): Use regcache->cooked_read. | |
14595 | * frame.c (frame_save_as_regcache): Change return type. | |
14596 | (frame_pop): Update. | |
14597 | * frame.h (frame_save_as_regcache): Update declaration. | |
14598 | * inferior.h (get_infcall_suspend_state_regcache): Update | |
14599 | declaration. | |
14600 | * infrun.c (infcall_suspend_state) <registers>: use | |
14601 | readonly_detached_regcache. | |
14602 | (save_infcall_suspend_state): Don't use regcache_dup. | |
14603 | (get_infcall_suspend_state_regcache): Change return type. | |
14604 | * linux-fork.c (struct fork_info) <savedregs>: Change to | |
14605 | readonly_detached_regcache. | |
14606 | <pc>: New field. | |
14607 | (fork_save_infrun_state): Don't use regcache_dup. | |
14608 | (info_checkpoints_command): Adjust. | |
14609 | * mi/mi-main.c (register_changed_p): Update declaration. | |
14610 | (mi_cmd_data_list_changed_registers): Use | |
14611 | readonly_detached_regcache. | |
14612 | (register_changed_p): Change parameter type to | |
14613 | readonly_detached_regcache. | |
14614 | * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use | |
14615 | readonly_detached_regcache. | |
14616 | (ppu2spu_sniffer): Construct a new readonly_detached_regcache. | |
14617 | * regcache.c (readonly_detached_regcache::readonly_detached_regcache): | |
14618 | New. | |
14619 | (regcache::save): Move it to reg_buffer. | |
14620 | (regcache::restore): Change parameter type. | |
14621 | (regcache_dup): Remove. | |
14622 | * regcache.h (reg_buffer) <save>: New method. | |
14623 | (readonly_detached_regcache): New class. | |
14624 | * spu-tdep.c (spu2ppu_cache) <regcache>: Use | |
14625 | readonly_detached_regcache. | |
14626 | (spu2ppu_sniffer): Construct a new readonly_detached_regcache. | |
14627 | ||
fc5b8736 YQ |
14628 | 2018-02-21 Yao Qi <yao.qi@linaro.org> |
14629 | ||
14630 | * frame.c (frame_save_as_regcache): Use regcache method save. | |
14631 | (frame_pop): Use regcache method restore. | |
14632 | * infrun.c (restore_infcall_suspend_state): Likewise. | |
14633 | * linux-fork.c (fork_load_infrun_state): Likewise. | |
14634 | * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method | |
14635 | save. | |
14636 | * regcache.c (regcache_save): Remove. | |
14637 | (regcache::restore): More asserts. | |
14638 | (regcache_cpy): Remove. | |
14639 | * regcache.h (regcache_save): Remove the declaration. | |
14640 | (regcache::restore): Move from private to public. | |
14641 | Remove the friend declaration of regcache_cpy. | |
14642 | (regcache_cpy): Remove declaration. | |
14643 | ||
849d0ba8 YQ |
14644 | 2018-02-21 Yao Qi <yao.qi@linaro.org> |
14645 | ||
14646 | * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change | |
14647 | parameter type to 'readable_regcache *'. | |
14648 | * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise. | |
14649 | * arm-tdep.c (arm_neon_quad_read): Likewise. | |
14650 | (arm_pseudo_read): Likewise. | |
14651 | * avr-tdep.c (avr_pseudo_register_read): Likewise. | |
14652 | * bfin-tdep.c (bfin_pseudo_register_read): Likewise. | |
14653 | * frv-tdep.c (frv_pseudo_register_read): Likewise. | |
14654 | * gdbarch.c: Re-generated. | |
14655 | * gdbarch.h: Re-generated. | |
14656 | * gdbarch.sh (pseudo_register_read): Change parameter type to | |
14657 | 'readable_regcache *'. | |
14658 | (pseudo_register_read_value): Likewise. | |
14659 | * h8300-tdep.c (pseudo_from_raw_register): Likewise. | |
14660 | (h8300_pseudo_register_read): Likewise. | |
14661 | * hppa-tdep.c (hppa_pseudo_register_read): Likewise. | |
14662 | * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise. | |
14663 | (i386_pseudo_register_read_into_value): Likewise. | |
14664 | (i386_pseudo_register_read_value): Likewise. | |
14665 | * i386-tdep.h (i386_pseudo_register_read_into_value): Update | |
14666 | declaration. | |
14667 | * ia64-tdep.c (ia64_pseudo_register_read): Likewise. | |
14668 | * m32c-tdep.c (m32c_raw_read): Likewise. | |
14669 | (m32c_read_flg): Likewise. | |
14670 | (m32c_banked_register): Likewise. | |
14671 | (m32c_banked_read): Likewise. | |
14672 | (m32c_sb_read): Likewise. | |
14673 | (m32c_part_read): Likewise. | |
14674 | (m32c_cat_read): Likewise. | |
14675 | (m32c_r3r2r1r0_read): Likewise. | |
14676 | (m32c_pseudo_register_read): Likewise. | |
14677 | * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise. | |
14678 | * mep-tdep.c (mep_pseudo_cr32_read): Likewise. | |
14679 | (mep_pseudo_cr64_read): Likewise. | |
14680 | (mep_pseudo_register_read): Likewise. | |
14681 | * mips-tdep.c (mips_pseudo_register_read): Likewise. | |
14682 | * msp430-tdep.c (msp430_pseudo_register_read): Likewise. | |
14683 | * nds32-tdep.c (nds32_pseudo_register_read): Likewise. | |
14684 | * regcache.c (regcache::raw_read): Move it to readable_regcache. | |
14685 | (regcache::cooked_read): Likewise. | |
14686 | (regcache::cooked_read_value): Likewise. | |
14687 | (regcache_cooked_read_signed): | |
14688 | (regcache::cooked_read): Likewise. | |
14689 | * regcache.h (readable_regcache): New class. | |
14690 | (regcache): Inherit readable_regcache. Move some methods to | |
14691 | readable_regcache. | |
14692 | * rl78-tdep.c (rl78_pseudo_register_read): Change | |
14693 | parameter type to 'readable_regcache *'. | |
14694 | * rs6000-tdep.c (do_regcache_raw_read): Remove. | |
14695 | (e500_pseudo_register_read): Change parameter type to | |
14696 | 'readable_regcache *'. | |
14697 | (dfp_pseudo_register_read): Likewise. | |
14698 | (vsx_pseudo_register_read): Likewise. | |
14699 | (efpr_pseudo_register_read): Likewise. | |
14700 | * s390-tdep.c (s390_pseudo_register_read): Likewise. | |
14701 | * sh-tdep.c (sh_pseudo_register_read): Likewise. | |
14702 | * sh64-tdep.c (pseudo_register_read_portions): Likewise. | |
14703 | (sh64_pseudo_register_read): Likewise. | |
14704 | * sparc-tdep.c (sparc32_pseudo_register_read): Likewise. | |
14705 | * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise. | |
14706 | * spu-tdep.c (spu_pseudo_register_read_spu): Likewise. | |
14707 | (spu_pseudo_register_read): Likewise. | |
14708 | * xtensa-tdep.c (xtensa_register_read_masked): Likewise. | |
14709 | (xtensa_pseudo_register_read): Likewise. | |
14710 | ||
31716595 YQ |
14711 | 2018-02-21 Yao Qi <yao.qi@linaro.org> |
14712 | ||
14713 | * regcache.c (regcache::regcache): Call reg_buffer ctor. | |
14714 | (regcache::arch): Move it to reg_buffer::arch. | |
14715 | (regcache::register_buffer): Likewise. | |
14716 | (regcache::assert_regnum): Likewise. | |
14717 | (regcache::num_raw_registers): Likewise. | |
14718 | * regcache.h (reg_buffer): New class. | |
14719 | (regcache): Inherit reg_buffer. | |
14720 | ||
7104e59b SM |
14721 | 2018-02-20 Simon Marchi <simon.marchi@ericsson.com> |
14722 | ||
14723 | * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered, | |
14724 | gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF. | |
14725 | ||
2d8adcbd MM |
14726 | 2018-02-20 Markus Metzger <markus.t.metzger@intel.com> |
14727 | ||
14728 | * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp. | |
14729 | ||
b5884fa7 AH |
14730 | 2018-02-19 Alan Hayward <alan.hayward@arm.com> |
14731 | ||
14732 | * Makefile.in: (COMMON_SFILES): Add common/*.c files. | |
14733 | (SFILES): Remove common/*.c files. | |
14734 | (COMMON_OBS): Remove some *.o files built from common/*.c files. | |
14735 | * common/common.host: Add common reference. | |
14736 | * configure.ac: Likewise. | |
14737 | * configure: Regenerate. | |
14738 | ||
fd90ace4 YQ |
14739 | 2018-02-16 Yao Qi <yao.qi@linaro.org> |
14740 | ||
14741 | * block.c (block_namespace_info): Inherit allocate_on_obstack. | |
14742 | (block_initialize_namespace): Use new. | |
14743 | * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack. | |
14744 | (dwarf2_free_objfile): Use delete. | |
14745 | * gdbtypes.c (type_pair): Inherit allocate_on_obstack. | |
14746 | (copy_type_recursive): Use new. | |
14747 | * gdb_obstack.h (allocate_on_obstack): New. | |
14748 | ||
85046ae2 YQ |
14749 | 2018-02-15 Yao Qi <yao.qi@linaro.org> |
14750 | ||
14751 | PR gdb/22849 | |
14752 | * inferior.c (exit_inferior_1): Reset inf->control. | |
14753 | ||
355c559b JB |
14754 | 2018-02-15 Joel Brobecker <brobecker@adacore.com> |
14755 | ||
14756 | * ada-lang.c (ada_to_fixed_value_create): Delete advance | |
14757 | declaration. | |
14758 | ||
980548fd PA |
14759 | 2018-02-14 Pedro Alves <palves@redhat.com> |
14760 | ||
14761 | * frame-unwind.c (frame_unwind_try_unwinder): Always call | |
14762 | frame_cleanup_after_sniffer on exception. | |
14763 | ||
692d6f97 TT |
14764 | 2018-02-14 Tom Tromey <tom@tromey.com> |
14765 | ||
14766 | * solist.h (struct target_so_ops) <bfd_open>: Make pathname | |
14767 | const. | |
14768 | (solib_bfd_open): Make pathname const. | |
14769 | * solib.c (solib_bfd_open): Make pathname const. | |
14770 | * solib-spu.c (spu_bfd_fopen): Make name const. | |
14771 | (spu_bfd_open): Make pathname const. | |
14772 | * solib-darwin.c (darwin_bfd_open): Make pathname const. | |
14773 | * solib-aix.c (solib_aix_bfd_open): Make pathname const. | |
14774 | ||
e0cc99a6 TT |
14775 | 2018-02-14 Tom Tromey <tom@tromey.com> |
14776 | ||
14777 | * symfile.c (symfile_bfd_open): Update. | |
14778 | * source.h (openp, source_full_path_of, find_and_open_source): | |
14779 | Change argument type to unique_xmalloc_ptr. | |
14780 | * source.c (openp): Take a unique_xmalloc_ptr. | |
14781 | (source_full_path_of, find_and_open_source): Likewise. | |
14782 | (open_source_file, symtab_to_fullname): Update. | |
14783 | * solist.h (struct target_so_ops) <find_and_open_solib>: Take a | |
14784 | unique_xmalloc_ptr. | |
14785 | * solib.c (solib_find_1): Use unique_xmalloc_ptr. | |
14786 | (exec_file_find): Update. | |
14787 | * psymtab.c (psymtab_to_fullname): Update. | |
14788 | * nto-tdep.h (nto_find_and_open_solib): Update. | |
14789 | * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a | |
14790 | unique_xmalloc_ptr. | |
14791 | * exec.c (exec_file_attach): Update. | |
14792 | * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr. | |
14793 | * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr. | |
14794 | ||
b46a8d7c TT |
14795 | 2018-02-14 Tom Tromey <tom@tromey.com> |
14796 | ||
14797 | * solib.c: Include source.h. | |
14798 | * nto-tdep.c: Include source.h. | |
14799 | * mi/mi-cmd-env.c: Include source.h. | |
14800 | * infcmd.c: Include source.h. | |
14801 | * exec.c: Include source.h. | |
14802 | * defs.h (enum openp_flag, openp, source_full_path_of, mod_path) | |
14803 | (add_path, directory_switch, source_path, init_source_path): Move | |
14804 | declarations... | |
14805 | * source.h (enum openp_flag, openp, source_full_path_of, mod_path) | |
14806 | (add_path, directory_switch, source_path, init_source_path): | |
14807 | ...here. | |
14808 | ||
797bc1cb TT |
14809 | 2018-02-14 Tom Tromey <tom@tromey.com> |
14810 | ||
14811 | * solist.h (exec_file_find, solib_find): Return | |
14812 | unique_xmalloc_ptr. | |
14813 | (solib_bfd_fopen): Take a const char *. | |
14814 | * solib.c (solib_find_1): Return unique_xmalloc_ptr. | |
14815 | (exec_file_find, solib_find): Likewise. | |
14816 | (solib_bfd_fopen): Do not take ownership of "pathname". | |
14817 | (solib_bfd_open): Use unique_xmalloc_ptr. | |
14818 | * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr. | |
14819 | * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr. | |
14820 | * infrun.c (follow_exec): Use unique_xmalloc_ptr. | |
14821 | * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr. | |
14822 | ||
f98b2e33 JB |
14823 | 2018-02-14 Joel Brobecker <brobecker@adacore.com> |
14824 | ||
14825 | * ada-lang.c (name_match_type_from_name): Remove reference to | |
14826 | ada_name_for_lookup in function's documentation. | |
14827 | * ada-lang.h (ada_name_for_lookup): Delete declaration. | |
14828 | ||
24b9144d SM |
14829 | 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca> |
14830 | ||
14831 | * defs.h (enum openp_flags): New enum. | |
14832 | (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH): | |
14833 | Move to enum openp_flags. | |
14834 | (openp_flags): New enum flags. | |
14835 | (openp): Change parameter type to openp_flags. | |
14836 | * source.c (openp): Change parameter type to openp_flags. | |
14837 | * cli/cli-cmds.c (find_and_open_script): Use openp_flags. | |
14838 | * dwarf2read.c (try_open_dwop_file): Use openp_flags. | |
14839 | ||
387cd15b SM |
14840 | 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca> |
14841 | ||
14842 | * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show | |
14843 | per-command. | |
14844 | ||
b303c6f6 AB |
14845 | 2018-02-12 Andrew Burgess <andrew.burgess@embecosm.com> |
14846 | ||
14847 | * dwarf2read.c (dwarf2_release_queue): Delete function, move body | |
14848 | into... | |
14849 | (class dwarf2_queue_guard): ...the destructor of this new class. | |
14850 | (dw2_do_instantiate_symtab): Create instance of the new class | |
14851 | dwarf2_queue_guard, remove cleanup. | |
14852 | ||
9c3630e9 TT |
14853 | 2018-02-09 Tom Tromey <tom@tromey.com> |
14854 | ||
14855 | * source.c (find_source_lines): Don't reference past the end of | |
14856 | the vector. | |
14857 | ||
c4e12631 MM |
14858 | 2018-02-09 Markus Metzger <markus.t.metzger@intel.com> |
14859 | ||
14860 | * remote.c (remote_btrace_maybe_reopen): Change error message. | |
14861 | * btrace.c (btrace_enable): Likewise. | |
14862 | (parse_xml_btrace): Likewise. | |
14863 | (parse_xml_btrace_conf): Likewise. | |
14864 | ||
88711fbf MM |
14865 | 2018-02-09 Markus Metzger <markus.t.metzger@intel.com> |
14866 | ||
14867 | * nat/linux-btrace.c (diagnose_perf_event_open_fail): New. | |
14868 | (linux_enable_pt, linux_enable_bts): Call | |
14869 | diagnose_perf_event_open_fail. | |
14870 | ||
17ad2a4f MM |
14871 | 2018-02-09 Markus Metzger <markus.t.metzger@intel.com> |
14872 | ||
14873 | * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message. | |
14874 | Remove parameter and change return type. Update callers. Move it. | |
14875 | (linux_enable_bts, linux_enable_pt): Improve error message. | |
14876 | (linux_enable_pt): Remove zero buffer size check. | |
14877 | (linux_enable_btrace): Improve error messages. Remove NULL return | |
14878 | check. | |
14879 | ||
de6242d3 MM |
14880 | 2018-02-09 Markus Metzger <markus.t.metzger@intel.com> |
14881 | ||
14882 | * btrace.c (btrace_enable): Remove target_supports_btrace call. | |
14883 | * nat/linux-btrace.c (perf_event_pt_event_type): Move. | |
14884 | (kernel_supports_bts, kernel_supports_pt, linux_supports_bts) | |
14885 | (linux_supports_pt, linux_supports_btrace): Remove. | |
14886 | (linux_enable_bts): Call cpu_supports_bts. | |
14887 | * nat/linux-btrace.h (linux_supports_btrace): Remove. | |
14888 | * remote.c (remote_supports_btrace): Remove. | |
14889 | (init_remote_ops): Remove remote_supports_btrace. | |
14890 | * target-delegates.c: Regenerated. | |
14891 | * target.c (target_supports_btrace): Remove. | |
14892 | * target.h (target_ops) <to_supports_btrace>: Remove | |
14893 | (target_supports_btrace): Remove. | |
14894 | * x86-linux-nat.c (x86_linux_create_target): Remove | |
14895 | linux_supports_btrace. | |
14896 | ||
9ee23a85 MM |
14897 | 2018-02-09 Markus Metzger <markus.t.metzger@intel.com> |
14898 | ||
14899 | * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling | |
14900 | btrace failed. | |
14901 | * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling | |
14902 | exception and use message in own exception. | |
14903 | ||
5c3284c1 MM |
14904 | 2018-02-09 Markus Metzger <markus.t.metzger@intel.com> |
14905 | ||
14906 | * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h. | |
14907 | (perf_event_pt_event_type): Use gdb_file_up. | |
14908 | (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr, | |
14909 | scoped_fd, and scoped_mmap. | |
14910 | ||
84696f37 MM |
14911 | 2018-02-09 Markus Metzger <markus.t.metzger@intel.com> |
14912 | ||
14913 | * common/scoped_mmap.h: New. | |
14914 | * unittests/scoped_mmap-selftest.c: New. | |
14915 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add | |
14916 | unittests/scoped_mmap-selftest.c. | |
14917 | ||
ea4a0888 MM |
14918 | 2018-02-09 Markus Metzger <markus.t.metzger@intel.com> |
14919 | ||
14920 | * common/scoped_fd.h: New. | |
14921 | * unittests/scoped_fd-selftest.c: New. | |
14922 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add | |
14923 | unittests/scoped_fd-selftest.c. | |
14924 | ||
869e8290 TT |
14925 | 2018-02-09 Tom Tromey <tom@tromey.com> |
14926 | ||
14927 | * auto-load.c (auto_load_section_scripts): Use | |
14928 | gdb::unique_xmalloc_ptr. | |
14929 | ||
a37a2ae7 TT |
14930 | 2018-02-09 Tom Tromey <tom@tromey.com> |
14931 | ||
14932 | * auto-load.c (execute_script_contents): Use std::string. | |
14933 | ||
4e725347 JB |
14934 | 2018-02-09 Joel Brobecker <brobecker@adacore.com> |
14935 | ||
14936 | * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new | |
14937 | Python function, rather than a new command. | |
14938 | ||
9a897d43 TT |
14939 | 2018-02-08 Tom Tromey <tom@tromey.com> |
14940 | ||
14941 | * solib.c (solib_find_1): Use std::string. | |
14942 | (solib_bfd_fopen): Use unique_xmalloc_ptr. | |
14943 | ||
58ef3771 TT |
14944 | 2018-02-08 Tom Tromey <tom@tromey.com> |
14945 | ||
14946 | * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr. | |
14947 | ||
a9abc434 TT |
14948 | 2018-02-08 Tom Tromey <tom@tromey.com> |
14949 | ||
14950 | * source.c (find_source_lines): Use gdb::def_vector. | |
14951 | ||
84f27c6f TT |
14952 | 2018-02-08 Tom Tromey <tom@tromey.com> |
14953 | ||
14954 | * macrocmd.c (struct temporary_macro_definition): New. | |
14955 | (macro_define_command): Use temporary_macro_definition. Remove | |
14956 | cleanups. | |
14957 | (free_macro_definition_ptr): Remove. | |
14958 | ||
0354904b TT |
14959 | 2018-02-08 Tom Tromey <tom@tromey.com> |
14960 | ||
14961 | * macroexp.c (maybe_expand): Use std::string. | |
14962 | ||
1739cf24 TT |
14963 | 2018-02-08 Tom Tromey <tom@tromey.com> |
14964 | ||
14965 | * macroexp.c (struct macro_buffer): Add initializers for some | |
14966 | members. | |
14967 | (init_buffer, init_shared_buffer, free_buffer) | |
14968 | (free_buffer_return_text): Remove. | |
14969 | (macro_buffer): New constructors. | |
14970 | (~macro_buffer): New destructor. | |
14971 | (macro_buffer::set_shared): New method. | |
14972 | (macro_buffer::resize_buffer, macro_buffer::appendc) | |
14973 | (macro_buffer::appendmem): Now methods, not free functions. | |
14974 | (set_token, append_tokens_without_splicing, stringify) | |
14975 | (macro_stringify): Update. | |
14976 | (gather_arguments): Change return type. Remove argc_p argument, | |
14977 | add args_ptr argument. Use std::vector. | |
14978 | (substitute_args): Remove argc argument. Accept std::vector. | |
14979 | (expand): Update. Use std::vector. | |
14980 | (scan, macro_expand, macro_expand_next): Update. | |
14981 | ||
f6c2623e TT |
14982 | 2018-02-08 Tom Tromey <tom@tromey.com> |
14983 | ||
14984 | * symtab.c (default_collect_symbol_completion_matches_break_on): | |
14985 | Use unique_xmalloc_ptr. | |
14986 | * macroscope.h: (sal_macro_scope, user_macro_scope) | |
14987 | (default_macro_scope): Return unique_xmalloc_ptr. | |
14988 | * macroscope.c (sal_macro_scope, user_macro_scope) | |
14989 | (default_macro_scope): Return unique_xmalloc_ptr. | |
14990 | * macroexp.h (macro_expand, macro_expand_once): Return | |
14991 | unique_xmalloc_ptr. | |
14992 | * macroexp.c (macro_expand, macro_expand_once): Return | |
14993 | unique_xmalloc_ptr. | |
14994 | * macrocmd.c (macro_expand_command, macro_expand_once_command) | |
14995 | (info_macro_command, info_macros_command): Use | |
14996 | unique_xmalloc_ptr. | |
14997 | * compile/compile-c-support.c (write_macro_definitions): Use | |
14998 | unique_xmalloc_ptr. | |
14999 | * c-exp.y (c_parse): Use unique_xmalloc_ptr. | |
15000 | ||
c2e0e465 SM |
15001 | 2018-02-07 Simon Marchi <simon.marchi@ericsson.com> |
15002 | ||
15003 | * value.c (value_static_field): Assign field type instead of | |
15004 | containing type when returning an optimized out value. | |
15005 | ||
3f8c94b4 YQ |
15006 | 2018-02-06 Yao Qi <yao.qi@linaro.org> |
15007 | ||
15008 | * ft32-tdep.c (ft32_read_pc): Remove. | |
15009 | (ft32_write_pc): Remove. | |
15010 | (ft32_gdbarch_init): Update. | |
15011 | * m32r-tdep.c (m32r_read_pc): Remove. | |
15012 | (m32r_gdbarch_init): Update. | |
15013 | * mep-tdep.c (mep_read_pc): Remove. | |
15014 | (mep_gdbarch_init): Update. | |
15015 | * microblaze-tdep.c (microblaze_write_pc): Remove. | |
15016 | (microblaze_gdbarch_init): Update. | |
15017 | * mn10300-tdep.c (mn10300_read_pc): Remove. | |
15018 | (mn10300_write_pc): Remove. | |
15019 | (mn10300_gdbarch_init): Update. | |
15020 | * moxie-tdep.c (moxie_read_pc): Remove. | |
15021 | (moxie_write_pc): Remove. | |
15022 | (moxie_gdbarch_init): Update. | |
15023 | ||
bca65a23 YQ |
15024 | 2018-02-06 Yao Qi <yao.qi@linaro.org> |
15025 | ||
15026 | * expprint.c (print_subexp_standard): Handle | |
15027 | OP_F77_UNDETERMINED_ARGLIST. | |
15028 | (dump_subexp_body_standard): Likewise. | |
15029 | ||
583e3f90 | 15030 | 2018-02-05 Alan Hayward <alan.hayward@arm.com> |
b8df6ca7 | 15031 | |
583e3f90 YQ |
15032 | * target-descriptions.c (tdesc_element_visitor) Add empty |
15033 | implementations. | |
b8df6ca7 AH |
15034 | (tdesc_type): Move make_gdb_type from here. |
15035 | (tdesc_type_builtin): Likewise. | |
15036 | (tdesc_type_vector): Likewise. | |
15037 | (tdesc_type_with_fields): Move make_gdb_type_ functions from here. | |
15038 | (make_gdb_type_struct): Move from tdesc_type_with_fields. | |
15039 | (make_gdb_type_union): Likewise. | |
15040 | (make_gdb_type_flags): Likewise. | |
15041 | (make_gdb_type_enum): Likewise. | |
15042 | (make_gdb_type): New function. | |
15043 | (tdesc_register_type): Use static make_gdb_type. | |
15044 | ||
e813d34a RK |
15045 | 2018-02-05 Ruslan Kabatsayev <b7.10110111@gmail.com> |
15046 | ||
15047 | * infcmd.c (default_print_one_register_info): Align natural-format | |
15048 | column values consistently one under another. | |
15049 | (pad_to_column): New function. | |
15050 | ||
0eb876f5 JB |
15051 | 2018-02-05 Joel Brobecker <brobecker@adacore.com> |
15052 | ||
15053 | * dwarf2read.c (dwarf2_physname): Move commment. | |
15054 | ||
0625771b LS |
15055 | 2018-02-01 Leszek Swirski <leszeks@google.com> |
15056 | ||
15057 | * varobj.c (varobj_formatted_print_options): Allow recursive | |
15058 | pretty printing if pretty printing is enabled. | |
15059 | ||
59498c30 LS |
15060 | 2018-02-01 Leszek Swirski <leszeks@google.com> |
15061 | ||
15062 | * c-exp.y (lex_one_token, classify_name, yylex): Don't classify | |
15063 | names after a structop as a filename. | |
15064 | ||
2d9e6acb YQ |
15065 | 2018-02-01 Yao Qi <yao.qi@linaro.org> |
15066 | ||
15067 | * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it. | |
15068 | (arm_record_coproc_data_proc): Likewise. | |
15069 | ||
df95a9cf YQ |
15070 | 2018-02-01 Yao Qi <yao.qi@linaro.org> |
15071 | ||
15072 | * arm-tdep.c (arm_record_extension_space): Change ret to signed. | |
15073 | ||
07e5f5cf NP |
15074 | 2018-01-31 Nikola Prica <nikola.prica@rt-rk.com> |
15075 | ||
15076 | * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and | |
15077 | assign shifted lr_reg to fdata->lr_register when lr_reg is set. | |
15078 | ||
3045b475 PA |
15079 | 2018-01-31 Pedro Alves <palves@redhat.com> |
15080 | ||
15081 | * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter. | |
15082 | * inflow.c (child_terminal_save_inferior): Wrap reference to | |
15083 | tcgetpgrp in HAVE_TERMIOS_H. | |
15084 | (child_interrupt, child_pass_ctrlc): Wrap references to signal in | |
15085 | _WIN32. | |
15086 | * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and | |
15087 | always iterate over all inferiors. | |
15088 | (gdbsim_cntrl_c): Adjust. | |
15089 | * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter. | |
15090 | ||
929b5ad4 JB |
15091 | 2018-01-31 Joel Brobecker <brobecker@adacore.com> |
15092 | ||
15093 | * gdbtypes.c (lookup_array_range_type): Make sure the array's | |
15094 | index type is objfile-owned if the element type is as well. | |
15095 | ||
29236ca2 JB |
15096 | 2018-01-31 Joel Brobecker <brobecker@adacore.com> |
15097 | ||
15098 | GDB 8.1 released. | |
15099 | ||
c81e8879 PR |
15100 | 2018-01-30 Philipp Rudo <prudo@linux.vnet.ibm.com> |
15101 | ||
15102 | * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and | |
15103 | "features/s390x-linux64.c". | |
15104 | (_initialize_s390_linux_tdep): Remove initialization of tdescs | |
15105 | s390_linux32 and s390x_linux64. | |
15106 | (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set | |
15107 | default tdesc. | |
15108 | * s390-tdep.c: Include "features/s390-linux32.c" and | |
15109 | "features/s390x-linux64.c". | |
15110 | (s390_tdesc_valid): Add check for tdesc_has_registers. | |
15111 | (s390_gdbarch_init): Make sure there is always a valid tdesc. | |
15112 | (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and | |
15113 | tdesc_s390x_linux64. | |
15114 | * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and | |
15115 | tdesc_s390x_linux64 to... | |
15116 | * s390-tdep.h: ...here. | |
15117 | ||
e671cd59 PA |
15118 | 2018-01-30 Pedro Alves <palves@redhat.com> |
15119 | ||
15120 | PR gdb/13211 | |
15121 | * config.in, configure: Regenerate. | |
15122 | * configure.ac: Check for getpgid. | |
15123 | * go32-nat.c (go32_pass_ctrlc): New. | |
15124 | (go32_target): Install it. | |
15125 | * inf-child.c (inf_child_target): Install | |
15126 | child_terminal_save_inferior, child_pass_ctrlc and | |
15127 | child_interrupt. | |
15128 | * inf-ptrace.c (inf_ptrace_interrupt): Delete. | |
15129 | (inf_ptrace_target): No longer install it. | |
15130 | * infcmd.c (interrupt_target_1): Adjust. | |
15131 | * inferior.h (child_terminal_save_inferior, child_pass_ctrlc) | |
15132 | (child_interrupt): Declare. | |
15133 | (inferior::terminal_state): New. | |
15134 | * inflow.c (struct terminal_info): Update comments. | |
15135 | (inferior_process_group): Delete. | |
15136 | (terminal_is_ours): Delete. | |
15137 | (gdb_tty_state): New. | |
15138 | (child_terminal_init): Adjust. | |
15139 | (is_gdb_terminal, sharing_input_terminal_1) | |
15140 | (sharing_input_terminal): New functions. | |
15141 | (child_terminal_inferior): Adjust. Use sharing_input_terminal. | |
15142 | Set the process's actual process group in the foreground if | |
15143 | possible. Handle is_ours_for_output/is_ours distinction. Don't | |
15144 | mark terminal as the inferior's if not sharing GDB's terminal. | |
15145 | Don't check attach_flag. | |
15146 | (child_terminal_ours_for_output, child_terminal_ours): Adjust to | |
15147 | pass down a target_terminal_state. | |
15148 | (child_terminal_save_inferior): New, factored out from ... | |
15149 | (child_terminal_ours_1): ... this. Handle | |
15150 | target_terminal_state::is_ours_for_output. | |
15151 | (child_interrupt, child_pass_ctrlc): New. | |
15152 | (inflow_inferior_exit): Clear the inferior's terminal_state. | |
15153 | (copy_terminal_info): Copy the inferior's terminal state. | |
15154 | (_initialize_inflow): Remove reference to terminal_is_ours. | |
15155 | * inflow.h (inferior_process_group): Delete. | |
15156 | * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust. | |
15157 | * procfs.c (procfs_target): Don't install procfs_interrupt. | |
15158 | (procfs_interrupt): Delete. | |
15159 | * remote.c (remote_serial_quit_handler): Adjust. | |
15160 | (remote_interrupt): Remove ptid parameter. Adjust. | |
15161 | * target-delegates.c: Regenerate. | |
15162 | * target.c: Include "terminal.h". | |
15163 | (target_terminal::terminal_state): Rename to ... | |
15164 | (target_terminal::m_terminal_state): ... this. | |
15165 | (target_terminal::init): Adjust. | |
15166 | (target_terminal::inferior): Adjust to per-inferior | |
15167 | terminal_state. | |
15168 | (target_terminal::restore_inferior, target_terminal_is_ours_kind): New. | |
15169 | (target_terminal::ours, target_terminal::ours_for_output): Use | |
15170 | target_terminal_is_ours_kind. | |
15171 | (target_interrupt): Remove ptid parameter. Adjust. | |
15172 | (default_target_pass_ctrlc): Adjust. | |
15173 | * target.h (target_ops::to_terminal_save_inferior): New field. | |
15174 | (target_ops::to_interrupt): Remove ptid_t parameter. | |
15175 | (target_interrupt): Remove ptid_t parameter. Update comment. | |
15176 | (target_pass_ctrlc): Update comment. | |
15177 | * target/target.h (target_terminal_state): New scoped enum, | |
15178 | factored out of ... | |
15179 | (target_terminal::terminal_state): ... here. | |
15180 | (target_terminal::inferior): Update comments. | |
15181 | (target_terminal::restore_inferior): New. | |
15182 | (target_terminal::is_inferior, target_terminal::is_ours) | |
15183 | (target_terminal::is_ours_for_output): Adjust. | |
15184 | (target_terminal::scoped_restore_terminal_state): Adjust to | |
15185 | rename, and call restore_inferior() instead of inferior(). | |
15186 | (target_terminal::scoped_restore_terminal_state::m_state): Change | |
15187 | type. | |
15188 | (target_terminal::terminal_state): Rename to ... | |
15189 | (target_terminal::m_terminal_state): ... this and change type. | |
15190 | ||
9c3a5d93 PA |
15191 | 2018-01-30 Pedro Alves <palves@redhat.com> |
15192 | ||
15193 | * linux-nat.c (wait_for_signal): New function. | |
15194 | (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend | |
15195 | directly. | |
15196 | (async_terminal_is_ours) | |
15197 | (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete. | |
15198 | (linux_nat_add_target): Don't override | |
15199 | to_terminal_inferior/to_terminal_ours. | |
15200 | ||
69ab5edb SDJ |
15201 | 2018-01-29 Sergio Durigan Junior <sergiodj@redhat.com> |
15202 | ||
15203 | * remote.c (remote_follow_fork): Don't call "detach_inferior". | |
15204 | ||
fc8e7e75 SM |
15205 | 2018-01-28 Simon Marchi <simon.marchi@ericsson.com> |
15206 | ||
15207 | * dwarf2read.c (free_dwo_files): Add forward-declaration. | |
15208 | (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from | |
15209 | dwarf2_per_objfile_free here. | |
15210 | (dwarf2_per_objfile_free): Remove. | |
15211 | (_initialize_dwarf2_read): Don't register | |
15212 | dwarf2_per_objfile_free as a registry cleanup. | |
15213 | ||
b2a426e2 EZ |
15214 | 2018-01-27 Eli Zaretskii <eliz@gnu.org> |
15215 | ||
15216 | Avoid compilation errors in MinGW native builds | |
15217 | ||
15218 | The error is triggered by including python-internal.h, and the | |
15219 | error message is: | |
15220 | ||
15221 | In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0, | |
15222 | from build-gnulib/import/math.h:27, | |
15223 | from d:/usr/Python26/include/pyport.h:235, | |
15224 | from d:/usr/Python26/include/Python.h:58, | |
15225 | from python/python-internal.h:94, | |
15226 | from python/py-arch.c:24: | |
15227 | d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared | |
15228 | using ::hypot; | |
15229 | ^~~~~ | |
15230 | ||
15231 | This happens because Python headers define 'hypot' to expand t | |
15232 | '_hypot' in the Windows builds. | |
15233 | * python/python-internal.h (_hypot) [__MINGW32__]: Define back to | |
15234 | 'hypoth'. This avoids a compilation error. | |
15235 | ||
0bdd8eac AH |
15236 | 2018-01-26 Alan Hayward <alan.hayward@arm.com> |
15237 | ||
15238 | * MAINTAINERS (Write After Approval): Fix ordering. | |
15239 | ||
56ae9dc3 AH |
15240 | 2018-01-26 Alan Hayward <alan.hayward@arm.com> |
15241 | ||
15242 | * MAINTAINERS (Write After Approval): Add Alan Hayward. | |
15243 | ||
7433498b AM |
15244 | 2018-01-26 Alan Modra <amodra@gmail.com> |
15245 | ||
15246 | * ppc-linux-tdep.c (powerpc32_plt_stub): Make const. | |
15247 | (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so. | |
15248 | Remove nop. Make const. Comment. | |
15249 | (powerpc32_plt_stub_so_2): New. | |
15250 | (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN. | |
15251 | Correct count. Update uses. | |
15252 | (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too. | |
15253 | Move common code reading PLT entry word. Correct | |
15254 | powerpc32_plt_stub PLT address calculation. | |
15255 | * ppc64-tdep.c (ppc64_standard_linkage1): Make const. | |
15256 | (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise. | |
15257 | (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise. | |
15258 | (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise. | |
15259 | (ppc64_standard_linkage8): Likewise. | |
15260 | * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const. | |
15261 | Correct insns description. | |
15262 | * ppc-tdep.h (ppc_insns_match_pattern): Update prototype. | |
15263 | ||
0f59d5fc PA |
15264 | 2018-01-24 Pedro Alves <palves@redhat.com> |
15265 | ||
15266 | GCC PR libstdc++/83906 | |
15267 | * gdbtypes.c (operator==(const dynamic_prop &, | |
15268 | const dynamic_prop &)): New. | |
15269 | (operator==(const range_bounds &, const range_bounds &)): New. | |
15270 | (check_types_equal): Use them instead of memcmp. | |
15271 | * gdbtypes.h (operator==(const dynamic_prop &, | |
15272 | const dynamic_prop &)): Declare. | |
15273 | (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare. | |
15274 | (operator==(const range_bounds &, const range_bounds &)): Declare. | |
15275 | (operator!=(const range_bounds &, const range_bounds &)): Declare. | |
15276 | ||
ef8914a4 PR |
15277 | 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com> |
15278 | ||
15279 | * s390-linux-tdep.c (s390_record_address_mask) | |
15280 | (s390_record_calc_disp_common, s390_record_calc_disp) | |
15281 | (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt) | |
15282 | (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr) | |
15283 | (s390_process_record): Move to s390-tdep.c. | |
15284 | (s390_linux_init_abi_any): Adjust. | |
15285 | * s390-tdep.c (s390_record_address_mask) | |
15286 | (s390_record_calc_disp_common, s390_record_calc_disp) | |
15287 | (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt) | |
15288 | (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr) | |
15289 | (s390_process_record): Moved from s390-linux-tdep.c | |
15290 | (s390_gdbarch_init): Adjust. | |
15291 | ||
d6e58945 PR |
15292 | 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com> |
15293 | ||
15294 | * s390-linux-nat.c (s390-tdep.h): New include. | |
15295 | * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o. | |
15296 | (HFILES_NO_SRCDIR): Add s390-tdep.h. | |
15297 | (ALLDEPFILES): Add s390-tdep.c. | |
15298 | * configure.tgt (s390*-*-linux*): Add s390-tdep.o. | |
15299 | * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to... | |
15300 | * s390-tdep.h: ...this. New file. | |
15301 | * s390-linux-tdep.c (s390-tdep.h): New include. | |
15302 | (_initialize_s390_tdep): Rename to... | |
15303 | (_initialize_s390_linux_tdep): ...this and adjust. | |
15304 | (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep) | |
15305 | (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to | |
15306 | s390-tdep.h. | |
15307 | (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri) | |
15308 | (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy) | |
15309 | (s390_is_partial_instruction, s390_software_single_step) | |
15310 | (is_non_branch_ril, s390_displaced_step_copy_insn) | |
15311 | (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep) | |
15312 | (s390_prologue_data, s390_addr, s390_store, s390_load) | |
15313 | (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue) | |
15314 | (s390_register_call_saved, s390_guess_tracepoint_registers) | |
15315 | (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum) | |
15316 | (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register) | |
15317 | (s390_pseudo_register_name, s390_pseudo_register_type) | |
15318 | (s390_pseudo_register_read, s390_pseudo_register_write) | |
15319 | (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect) | |
15320 | (s390_ax_pseudo_register_push_stack, s390_gen_return_address) | |
15321 | (s390_addr_bits_remove, s390_address_class_type_flags) | |
15322 | (s390_address_class_type_flags_to_name) | |
15323 | (s390_address_class_name_to_type_flags, s390_effective_inner_type) | |
15324 | (s390_function_arg_float, s390_function_arg_vector) | |
15325 | (is_power_of_two, s390_function_arg_integer, s390_arg_state) | |
15326 | (s390_handle_arg, s390_push_dummy_call, s390_dummy_id) | |
15327 | (s390_frame_align, s390_register_return_value, s390_return_value) | |
15328 | (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp) | |
15329 | (s390_unwind_pseudo_register, s390_adjust_frame_regnum) | |
15330 | (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg) | |
15331 | (s390_trad_frame_prev_register, s390_unwind_cache) | |
15332 | (s390_prologue_frame_unwind_cache) | |
15333 | (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache) | |
15334 | (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind) | |
15335 | (s390_stub_unwind_cache, s390_stub_frame_unwind_cache) | |
15336 | (s390_stub_frame_this_id, s390_stub_frame_prev_register) | |
15337 | (s390_stub_frame_sniffer, s390_stub_frame_unwind) | |
15338 | (s390_frame_base_address, s390_local_base_address) | |
15339 | (s390_frame_base, s390_gcc_target_options) | |
15340 | (s390_gnu_triplet_regexp, s390_stap_is_single_operand) | |
15341 | (s390_validate_reg_range, s390_tdesc_valid) | |
15342 | (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to... | |
15343 | * s390-tdep.c: ...this. New file. | |
15344 | ||
9c0b896e PR |
15345 | 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com> |
15346 | ||
15347 | * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook. | |
15348 | (s390_process_record, s390_gdbarch_tdep_alloc) | |
15349 | (s390_linux_init_abi_any): Use/set new hook. | |
15350 | ||
7042632b PR |
15351 | 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com> |
15352 | ||
15353 | * s390-linux-tdep.c (osabi.h): New include. | |
15354 | (s390_linux_init_abi_31, s390_linux_init_abi_64) | |
15355 | (s390_linux_init_abi_any): New functions. | |
15356 | (s390_gdbarch_init, _initialize_s390_tdep): Adjust. | |
15357 | ||
650f5e13 PR |
15358 | 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com> |
15359 | ||
15360 | * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for | |
15361 | tdesc_has_registers check | |
15362 | ||
47c9317e PR |
15363 | 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com> |
15364 | ||
15365 | * s390-linux-tdep.c (s390_tdesc_valid): New function. | |
15366 | (s390_validate_reg_range): New macro. | |
15367 | (s390_gdbarch_init): Adjust. | |
15368 | ||
095085d8 PR |
15369 | 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com> |
15370 | ||
15371 | * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field. | |
15372 | (s390_gdbarch_tdep_alloc): Adjust. | |
15373 | (s390_gdbarch_init): Adjust. | |
15374 | ||
ab9bcc67 PR |
15375 | 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com> |
15376 | ||
15377 | * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2> | |
15378 | <have_tdb>: Change type to bool. | |
15379 | (s390_gdbarch_tdep_alloc): Adjust. | |
15380 | (s390_gdbarch_init): Adjust. | |
15381 | ||
21f6f5ff PR |
15382 | 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com> |
15383 | ||
15384 | * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field. | |
15385 | (gdbarch_tdep) <have_upper, have_vx>: New fields. | |
15386 | (s390_gdbarch_tdep_alloc): New function. | |
15387 | (s390_gdbarch_init): Allocate tdep at start and use its fields | |
15388 | instead of separate variables. | |
15389 | ||
0eb97953 PR |
15390 | 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com> |
15391 | ||
15392 | * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks | |
15393 | when looking for cached gdbarch and add comment for remaining. | |
15394 | ||
5c319bb2 PA |
15395 | 2018-01-22 Pedro Alves <palves@redhat.com> |
15396 | Sergio Durigan Junior <sergiodj@redhat.com> | |
15397 | ||
15398 | * typeprint.c (whatis_exp): Initialize "val" in the "whatis type" | |
15399 | case. | |
15400 | ||
d65ce302 MR |
15401 | 2018-01-22 Maciej W. Rozycki <macro@mips.com> |
15402 | ||
15403 | * MAINTAINERS: Update my company e-mail address. | |
15404 | ||
ec7a5fcb YQ |
15405 | 2018-01-22 Yao Qi <yao.qi@linaro.org> |
15406 | ||
15407 | * regcache.c (cooked_write_test): New function. | |
15408 | (_initialize_regcache): Register the test. | |
15409 | ||
11f57cb6 YQ |
15410 | 2018-01-22 Yao Qi <yao.qi@linaro.org> |
15411 | ||
15412 | * ia64-tdep.c (ia64_pseudo_register_read): Call | |
15413 | regcache->cooked_read instead of regcache_cooked_read_unsigned. | |
15414 | * m32c-tdep.c (m32c_cat_read): Likewise. | |
15415 | (m32c_r3r2r1r0_read): Likewise. | |
15416 | * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise. | |
15417 | * xtensa-tdep.c (xtensa_register_read_masked): Likewise. | |
15418 | ||
03f50fc8 YQ |
15419 | 2018-01-22 Yao Qi <yao.qi@linaro.org> |
15420 | ||
15421 | * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache | |
15422 | method raw_read instead of regcache_raw_read. | |
15423 | * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise. | |
15424 | * arm-tdep.c (arm_neon_quad_read): Likewise. | |
15425 | * avr-tdep.c (avr_pseudo_register_read): Likewise. | |
15426 | * bfin-tdep.c (bfin_pseudo_register_read): Likewise. | |
15427 | * frv-tdep.c (frv_pseudo_register_read): Likewise. | |
15428 | * h8300-tdep.c (h8300_pseudo_register_read): Likewise. | |
15429 | * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise. | |
15430 | (i386_pseudo_register_read_into_value): Likewise. | |
15431 | * mep-tdep.c (mep_pseudo_cr32_read): Likewise. | |
15432 | * msp430-tdep.c (msp430_pseudo_register_read): Likewise. | |
15433 | * nds32-tdep.c (nds32_pseudo_register_read): Likewise. | |
15434 | * rl78-tdep.c (rl78_pseudo_register_read): Likewise. | |
15435 | * s390-linux-tdep.c (s390_pseudo_register_read): Likewise. | |
15436 | * sparc-tdep.c (sparc32_pseudo_register_read): Likewise. | |
15437 | * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise. | |
15438 | * spu-tdep.c (spu_pseudo_register_read_spu): Likewise. | |
15439 | * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise. | |
15440 | ||
dc711524 YQ |
15441 | 2018-01-22 Yao Qi <yao.qi@linaro.org> |
15442 | ||
15443 | * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o. | |
15444 | * configure.tgt: Remove target mt. | |
15445 | * mt-tdep.c: Remove. | |
15446 | * regcache.c (cooked_read_test): Remove the check for mt. | |
15447 | ||
3f5a868b YQ |
15448 | 2018-01-22 Yao Qi <yao.qi@linaro.org> |
15449 | ||
15450 | * jit.c (jit_frame_prev_register): Call regcache::cooked_read | |
15451 | instead of gdbarch_pseudo_register_read_value. | |
15452 | ||
de4cb04a JB |
15453 | 2018-01-22 Joel Brobecker <brobecker@adacore.com> |
15454 | ||
15455 | * dwarf2read.c (need_gnat_info): Return nonzero if the cu's | |
15456 | language is Ada. | |
15457 | ||
a9e40818 JB |
15458 | 2018-01-22 Joel Brobecker <brobecker@adacore.com> |
15459 | ||
15460 | * linespec.c (create_sals_line_offset): Remove code that preserved | |
15461 | the symtab_and_line's line number. | |
15462 | ||
e707fc44 AB |
15463 | 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com> |
15464 | ||
15465 | * varobj.c (varobj_create): Don't set valid_block when creating a | |
15466 | floating varobj. | |
15467 | ||
03d0bf7b AB |
15468 | 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com> |
15469 | ||
15470 | * varobj.c (varobj_create): Remove out of date comment. | |
15471 | ||
ae451627 AB |
15472 | 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com> |
15473 | ||
15474 | PR mi/20395 | |
15475 | * ada-exp.y (write_var_from_sym): Pass extra parameter when | |
15476 | updating innermost block. | |
15477 | * parse.c (innermost_block_tracker::update): Take extra type | |
15478 | parameter, and check types match before updating innermost block. | |
15479 | (write_dollar_variable): Update innermost block for registers. | |
15480 | * parser-defs.h (enum innermost_block_tracker_type): New enum. | |
15481 | (innermost_block_tracker::innermost_block_tracker): Initialise | |
15482 | m_types member. | |
15483 | (innermost_block_tracker::reset): Take type parameter. | |
15484 | (innermost_block_tracker::update): Take type parameter, and pass | |
15485 | type through as needed. | |
15486 | (innermost_block_tracker::m_types): New member. | |
15487 | * varobj.c (varobj_create): Pass type when reseting innermost | |
15488 | block. | |
15489 | ||
aee1fcdf AB |
15490 | 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com> |
15491 | ||
15492 | * ada-exp.y (write_var_from_sym): Switch to innermost_block API. | |
15493 | * ada-lang.c (resolve_subexp): Likewise. | |
15494 | * breakpoint.c (set_breakpoint_condition) Likewise. | |
15495 | (watch_command_1) Likewise. | |
15496 | * c-exp.y (variable): Likewise. | |
15497 | * d-exp.y (PrimaryExpression): Likewise. | |
15498 | * f-exp.y (variable): Likewise. | |
15499 | * go-exp.y (variable): Likewise. | |
15500 | * m2-exp.y (variable): Likewise. | |
15501 | * objfiles.c (objfile::~objfile): Likewise. | |
15502 | * p-exp.y (variable): Likewise. | |
15503 | * parse.c (innermost_block): Change type. | |
15504 | * parser-defs.h (class innermost_block_tracker): New. | |
15505 | (innermost_block): Change to innermost_block_tracker. | |
15506 | * printcmd.c (display_command): Switch to innermost_block API. | |
15507 | (do_one_display): Likewise. | |
15508 | * rust-exp.y (do_one_display): Likewise. | |
15509 | * symfile.c (clear_symtab_users): Likewise. | |
15510 | * varobj.c (varobj_create): Switch to innermost_block API, replace | |
15511 | use of innermost_block with block stored on varobj object. | |
15512 | ||
396af9a1 AB |
15513 | 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com> |
15514 | ||
15515 | * expression.h (innermost_block): Remove declaration. | |
15516 | * varobj.c: Add 'parser-defs.h' include. | |
15517 | ||
fcfcc376 TT |
15518 | 2018-01-19 Tom Tromey <tom@tromey.com> |
15519 | ||
15520 | * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified | |
15521 | symbols in the static and global blocks. | |
15522 | ||
5a6c3296 JC |
15523 | 2018-01-19 James Clarke <jrtc27@jrtc27.com> |
15524 | ||
15525 | * nat/linux-ptrace.c: Remove unnecessary reinclusion of | |
15526 | gdb_ptrace.h, and move including gdb_wait.h ... | |
15527 | * nat/linux-ptrace.h: ... to here. | |
15528 | ||
bc09b0c1 SM |
15529 | 2018-01-19 Simon Marchi <simon.marchi@ericsson.com> |
15530 | ||
15531 | * inf-ptrace.c (inf_ptrace_detach): Adjust call to | |
15532 | inf_ptrace_detach_success. | |
15533 | (inf_ptrace_detach_success): Add inferior parameter, use it | |
15534 | instead of inferior_ptid, pass it to detach_inferior. | |
15535 | * inf-ptrace.h (inf_ptrace_detach_success): Add inferior | |
15536 | parameter. | |
15537 | * inferior.c (detach_inferior): Add overload that takes an | |
15538 | inferior object. | |
15539 | * inferior.h (detach_inferior): Likewise. | |
15540 | * linux-nat.c (linux_nat_detach): Use the inf parameter, don't | |
15541 | use inferior_ptid, adjust call to inf_ptrace_detach_success. | |
15542 | * linux-thread-db.c (thread_db_detach): Use inf parameter. | |
15543 | ||
6e1e1966 SM |
15544 | 2018-01-19 Simon Marchi <simon.marchi@ericsson.com> |
15545 | ||
15546 | * target.h (struct target_ops) <to_detach>: Add inferior | |
15547 | parameter. | |
15548 | (target_detach): Likewise. | |
15549 | * target.c (dispose_inferior): Pass inferior down. | |
15550 | (target_detach): Pass inferior down. Assert that it is equal to | |
15551 | the current inferior. | |
15552 | * aix-thread.c (aix_thread_detach): Pass inferior down. | |
15553 | * corefile.c (core_file_command): Pass current_inferior() down. | |
15554 | * corelow.c (core_detach): Add inferior parameter. | |
15555 | * darwin-nat.c (darwin_detach): Likewise. | |
15556 | * gnu-nat.c (gnu_detach): Likewise. | |
15557 | * inf-ptrace.c (inf_ptrace_detach): Likewise. | |
15558 | * infcmd.c (detach_command): Pass current_inferior() down to | |
15559 | target_detach. | |
15560 | * infrun.c (follow_fork_inferior): Pass parent_inf to | |
15561 | target_detach. | |
15562 | (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to | |
15563 | target_detach. | |
15564 | * linux-nat.c (linux_nat_detach): Add inferior parameter. | |
15565 | * linux-thread-db.c (thread_db_detach): Likewise. | |
15566 | * nto-procfs.c (procfs_detach): Likewise. | |
15567 | * procfs.c (procfs_detach): Likewise. | |
15568 | * record.c (record_detach): Likewise. | |
15569 | * record.h (struct inferior): Forward-declare. | |
15570 | (record_detach): Add inferior parameter. | |
15571 | * remote-sim.c (gdbsim_detach): Likewise. | |
15572 | * remote.c (remote_detach_1): Likewise. | |
15573 | (remote_detach): Likewise. | |
15574 | (extended_remote_detach): Likewise. | |
15575 | * sol-thread.c (sol_thread_detach): Likewise. | |
15576 | * target-debug.h (target_debug_print_inferior_p): New macro. | |
15577 | * target-delegates.c: Re-generate. | |
15578 | * top.c (kill_or_detach): Pass inferior down to target_detach. | |
15579 | * windows-nat.c (windows_detach): Add inferior parameter. | |
15580 | ||
6bd6f3b6 SM |
15581 | 2018-01-19 Simon Marchi <simon.marchi@ericsson.com> |
15582 | ||
15583 | * target.h (struct target_ops) <to_detach>: Remove args | |
15584 | parameter. | |
15585 | (target_detach): Likewise. | |
15586 | * target.c (dispose_inferior): Adjust. | |
15587 | (target_detach): Remove args parameter, adjust. | |
15588 | * aix-thread.c (aix_thread_detach): Adjust. | |
15589 | * corefile.c (core_file_command): Adjust. | |
15590 | * corelow.c (core_detach): Adjust. | |
15591 | * darwin-nat.c (darwin_detach): Adjust. | |
15592 | * gnu-nat.c (gnu_detach): Adjust. | |
15593 | * inf-ptrace.c (inf_ptrace_detach): Adjust. | |
15594 | * infcmd.c (detach_command): Adjust | |
15595 | * infrun.c (follow_fork_inferior): Adjust. | |
15596 | (handle_vfork_child_exec_or_exit): Adjust. | |
15597 | * linux-fork.c (linux_fork_detach): Remove args parameter. | |
15598 | * linux-fork.h (linux_fork_detach): Likewise. | |
15599 | * linux-nat.c (linux_nat_detach): Likewise, and adjust. | |
15600 | * linux-thread-db.c (thread_db_detach): Likewise. | |
15601 | * nto-procfs.c (procfs_detach): Likewise. | |
15602 | * procfs.c (procfs_detach): Likewise. | |
15603 | (do_detach): Remove signo parameter. | |
15604 | * record.c (record_detach): Remove args parameter. | |
15605 | * record.h (record_detach): Likewise. | |
15606 | * remote-sim.c (gdbsim_detach): Likewise. | |
15607 | * remote.c (remote_detach_1): Likewise. | |
15608 | (remote_detach): Likewise. | |
15609 | (extended_remote_detach): Likewise. | |
15610 | * sol-thread.c (sol_thread_detach): Likewise. | |
15611 | * target-delegates.c: Re-generate. | |
15612 | * top.c (struct qt_args) <args>: Remove field. | |
15613 | (kill_or_detach): Don't pass args. | |
15614 | (quit_force): Don't set args. | |
15615 | * windows-nat.c (windows_detach): Remove args parameter. | |
15616 | ||
88af8ea8 YQ |
15617 | 2018-01-19 Yao Qi <yao.qi@linaro.org> |
15618 | ||
15619 | * arm-linux-tdep.c (arm_linux_gcc_target_options): New function. | |
15620 | (arm_linux_init_abi): Install it. | |
15621 | ||
dea445b9 YQ |
15622 | 2018-01-19 Yao Qi <yao.qi@linaro.org> |
15623 | ||
15624 | * osabi.c (gdb_osabi_names): Extend the regexp for | |
15625 | arm-linux-gnueabihf. | |
15626 | ||
4a17f768 YQ |
15627 | 2018-01-18 Yao Qi <yao.qi@linaro.org> |
15628 | ||
15629 | * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to | |
15630 | m_abbrevs. | |
15631 | (abbrev_table::add_abbrev): Update. | |
15632 | (abbrev_table::lookup_abbrev): Update. | |
15633 | ||
d679c21a YQ |
15634 | 2018-01-18 Yao Qi <yao.qi@linaro.org> |
15635 | ||
15636 | * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read. | |
15637 | ||
7d937cad SDJ |
15638 | 2018-01-17 Sergio Durigan Junior <sergiodj@redhat.com> |
15639 | ||
15640 | * compile/compile.c (compile_to_object): Convert "triplet_rx" | |
15641 | to "std::string". | |
15642 | ||
9e14690d TT |
15643 | 2018-01-17 Tom Tromey <tom@tromey.com> |
15644 | ||
15645 | * dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC. | |
15646 | ||
50a82047 TT |
15647 | 2018-01-17 Tom Tromey <tom@tromey.com> |
15648 | ||
15649 | * gdbtypes.h (add_dyn_prop): Remove objfile parameter. | |
15650 | * gdbtypes.c (add_dyn_prop): Remove objfile parameter. | |
15651 | (create_array_type_with_stride): Update. | |
15652 | * dwarf2read.c (set_die_type): Update. | |
15653 | ||
c89b44cd TT |
15654 | 2018-01-17 Tom Tromey <tom@tromey.com> |
15655 | ||
15656 | * dwarf2read.c (delayed_method_info): Remove typedef. | |
15657 | (dwarf2_cu::method_info): Now a std::vector. | |
15658 | (add_to_method_list): Update. | |
15659 | (free_delayed_list): Remove. | |
15660 | (compute_delayed_physnames): Update. | |
15661 | (process_full_comp_unit, process_full_type_unit): Clear the method | |
15662 | list. Remove cleanups. | |
15663 | (psymtab_include_file_name): Add name_holder parameter. Use | |
15664 | unique_xmalloc_ptr. | |
15665 | (dwarf_decode_lines): Update. | |
15666 | ||
fcd3b13d SM |
15667 | 2018-01-17 Tom Tromey <tom@tromey.com> |
15668 | Simon Marchi <simon.marchi@ericsson.com> | |
15669 | ||
15670 | * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor. | |
15671 | (dwarf2_per_objfile::free_cached_comp_units) | |
15672 | (init_tu_and_read_dwo_dies, init_cutu_and_read_dies) | |
15673 | (init_cutu_and_read_dies_no_follow): Update. | |
15674 | (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit. | |
15675 | (dwarf2_cu::~dwarf2_cu): New. | |
15676 | (free_heap_comp_unit, free_stack_comp_unit): Remove. | |
15677 | (age_cached_comp_units, free_one_cached_comp_unit): Update. | |
15678 | ||
685af9cd TT |
15679 | 2018-01-17 Tom Tromey <tom@tromey.com> |
15680 | Simon Marchi <simon.marchi@ericsson.com> | |
15681 | ||
15682 | * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove. | |
15683 | (struct die_reader_specs) <abbrev_table>: New member. | |
15684 | (struct abbrev_table): Add constructor. | |
15685 | <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare. | |
15686 | <abbrev_obstack>: Now an auto_obstack. | |
15687 | (abbrev_table_up): New typedef. | |
15688 | (init_cu_die_reader): Add abbrev_table parameter. | |
15689 | (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter. | |
15690 | Add result_dwo_abbrev_table. | |
15691 | (init_tu_and_read_dwo_dies, init_cutu_and_read_dies) | |
15692 | (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1): | |
15693 | Update. | |
15694 | (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as | |
15695 | parameter. | |
15696 | (skip_children): Update. | |
15697 | (abbrev_table::alloc_abbrev): Rename from | |
15698 | abbrev_table_alloc_abbrev. | |
15699 | (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev. | |
15700 | (abbrev_table::lookup_abbrev): Rename from | |
15701 | abbrev_table_lookup_abbrev. | |
15702 | (abbrev_table_read_table): Return abbrev_table_up. | |
15703 | (abbrev_table_free, abbrev_table_free_cleanup) | |
15704 | (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove. | |
15705 | (load_partial_dies): Update. | |
15706 | ||
5e2db402 TT |
15707 | 2018-01-17 Tom Tromey <tom@tromey.com> |
15708 | ||
15709 | * dwarf2read.c (dwarf2_compute_name): Update comment. | |
15710 | (read_func_scope, read_variable): Update. | |
15711 | (new_symbol): Remove. | |
15712 | (new_symbol_full): Rename to new_symbol. | |
15713 | ||
ee7f689e | 15714 | 2018-01-17 Mike Gulick <mgulick@mathworks.com> |
41667530 MG |
15715 | |
15716 | PR gdb/16577 | |
15717 | * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue | |
15718 | a warning instead of throwing an error, set section size to 0 and return | |
15719 | NULL. | |
15720 | * gdb_bfd.h (gdb_bfd_map_section): Update description. | |
15721 | ||
4d9b86e1 SM |
15722 | 2018-01-17 Simon Marchi <simon.marchi@ericsson.com> |
15723 | ||
15724 | * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return | |
15725 | std::string. | |
15726 | (linux_ptrace_attach_fail_reason_string): Likewise. | |
15727 | * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): | |
15728 | Likewise. | |
15729 | (linux_ptrace_attach_fail_reason_string): Likewise. | |
15730 | * linux-nat.c (attach_proc_task_lwp_callback): Adjust. | |
15731 | ||
a7b2d0fb SM |
15732 | 2018-01-17 Simon Marchi <simon.marchi@ericsson.com> |
15733 | ||
15734 | * linux-nat.c (linux_nat_attach): Remove xstrdup. | |
15735 | ||
f517c180 EA |
15736 | 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com> |
15737 | ||
15738 | PR gdb/21559 | |
15739 | * configure.ac: Include <sys/types.h> prior to <sys/user.h> when | |
15740 | checking for fs_base/gs_base fields in struct user_regs_struct. | |
15741 | * configure: Regenerate. | |
15742 | ||
7045b1ca YQ |
15743 | 2018-01-17 Yao Qi <yao.qi@linaro.org> |
15744 | ||
15745 | * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New | |
15746 | function. | |
15747 | (aarch64_linux_init_abi): Install it to gdbarch hook | |
15748 | gcc_target_options. | |
15749 | ||
db422fb2 PA |
15750 | 2018-01-15 Pedro Alves <palves@redhat.com> |
15751 | ||
15752 | * common/signals-state-save-restore.c | |
15753 | (save_original_signals_state): Fix typos. | |
15754 | ||
ba643918 SDJ |
15755 | 2017-01-12 Tom Tromey <tom@tromey.com> |
15756 | Sergio Durigan Junior <sergiodj@redhat.com> | |
15757 | ||
15758 | * Makefile.in (install-only): Install gdb-add-index. | |
15759 | ||
906b4aac JB |
15760 | 2018-01-12 John Baldwin <jhb@FreeBSD.org> |
15761 | ||
15762 | * fbsd-tdep.c (KVE_PROTECTION): Correct value. | |
15763 | ||
bdf2a94a AA |
15764 | 2018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com> |
15765 | ||
15766 | * infrun.c (keep_going_pass_signal): Clear step-over info when | |
15767 | insert_breakpoints fails. | |
15768 | ||
71d378ae PA |
15769 | 2018-01-11 Pedro Alves <palves@redhat.com> |
15770 | ||
15771 | PR gdb/22583 | |
15772 | * infrun.c (resume): Rename to ... | |
15773 | (resume_1): ... this. | |
15774 | (resume): Reimplement as wrapper around resume_1. | |
15775 | ||
3cada740 PA |
15776 | 2018-01-11 Pedro Alves <palves@redhat.com> |
15777 | ||
15778 | PR remote/22597 | |
15779 | * remote.c (remote_parse_stop_reply): Default to the last-set | |
15780 | general thread instead of to 'magic_null_ptid'. | |
15781 | ||
618daa93 PA |
15782 | 2018-01-10 Pedro Alves <palves@redhat.com> |
15783 | ||
15784 | * language.h (language_get_symbol_name_matcher): Rename ... | |
15785 | (get_symbol_name_matcher): ... this. | |
15786 | * language.c (language_get_symbol_name_matcher): Ditto. | |
15787 | * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All | |
15788 | callers adjusted. | |
15789 | ||
c63d3e8d PA |
15790 | 2018-01-10 Pedro Alves <palves@redhat.com> |
15791 | ||
15792 | PR gdb/22670 | |
15793 | * dwarf2read.c | |
15794 | (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher): | |
15795 | Adjust to use language_get_symbol_name_matcher instead of | |
15796 | language_defn::la_get_symbol_name_matcher. | |
15797 | * language.c (language_get_symbol_name_matcher): If in Ada mode | |
15798 | and the lookup name is a verbatim match, return Ada's matcher. | |
15799 | * language.h (language_get_symbol_name_matcher): Adjust comment. | |
15800 | (ada_lookup_name_info::verbatim_p):: New method. | |
15801 | ||
d4c2a405 PA |
15802 | 2018-01-10 Pedro Alves <palves@redhat.com> |
15803 | ||
15804 | PR gdb/22670 | |
15805 | * ada-lang.c (ada_collect_symbol_completion_matches): If the | |
15806 | minsym's language is language_auto or language_cplus, pass down | |
15807 | language_ada instead. | |
15808 | * symtab.c (compare_symbol_name): Don't frob symbol language here. | |
15809 | ||
8825213e PA |
15810 | 2018-01-10 Pedro Alves <palves@redhat.com> |
15811 | ||
15812 | PR gdb/22670 | |
15813 | * minsyms.c (linkage_name_str): New function. | |
15814 | (iterate_over_minimal_symbols): Use it. | |
15815 | ||
2d97a5d9 JB |
15816 | 2018-01-09 John Baldwin <jhb@FreeBSD.org> |
15817 | ||
15818 | * NEWS: Document that 'info proc' now works on FreeBSD. | |
15819 | ||
92fce24d JB |
15820 | 2018-01-09 John Baldwin <jhb@FreeBSD.org> |
15821 | ||
15822 | * configure.ac: Check for kinfo_getfile in libutil. | |
15823 | * configure: Regenerate. | |
15824 | * config.in: Regenerate. | |
15825 | * fbsd-nat.c: Include "fbsd-tdep.h". | |
15826 | (fbsd_fetch_cmdline): New. | |
15827 | (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool | |
15828 | rather than calling error. | |
15829 | (fbsd_info_proc): New. | |
15830 | (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails. | |
15831 | (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails. | |
15832 | (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc". | |
15833 | ||
262f62f5 JB |
15834 | 2018-01-09 John Baldwin <jhb@FreeBSD.org> |
15835 | ||
15836 | * fbsd-nat.c (struct free_deleter): Remove. | |
15837 | (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>. | |
15838 | ||
b999e203 JB |
15839 | 2018-01-09 John Baldwin <jhb@FreeBSD.org> |
15840 | ||
15841 | * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return | |
15842 | NULL for an empty pathname. | |
15843 | ||
d2176225 JB |
15844 | 2018-01-09 John Baldwin <jhb@FreeBSD.org> |
15845 | ||
15846 | * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET) | |
15847 | (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ) | |
15848 | (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW) | |
15849 | (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP) | |
15850 | (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP) | |
15851 | (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD) | |
15852 | (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD) | |
15853 | (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout) | |
15854 | (kinfo_proc_layout_32, kinfo_proc_layout_i386) | |
15855 | (kinfo_proc_layout_64, fbsd_vm_map_entry_flags) | |
15856 | (fbsd_core_info_proc_mappings, fbsd_core_vnode_path) | |
15857 | (fbsd_core_fetch_timeval, fbsd_print_sigset) | |
15858 | (fbsd_core_info_proc_status, fbsd_core_info_proc): New. | |
15859 | (fbsd_init_abi): Install gdbarch "core_info_proc" method. | |
15860 | * fbsd-tdep.h (fbsd_vm_map_entry_flags): New. | |
15861 | ||
9c4ac400 ST |
15862 | 2018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org> |
15863 | ||
15864 | * gdb/gnu-nat.c: Include <elf.h> and <link.h>. | |
15865 | (gnu_xfer_auxv): New function. | |
15866 | (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is | |
15867 | TARGET_OBJECT_AUXV. | |
15868 | ||
1e5ded6c YQ |
15869 | 2018-01-08 Yao Qi <yao.qi@linaro.org> |
15870 | Simon Marchi <simon.marchi@ericsson.com> | |
15871 | ||
15872 | * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and | |
15873 | common/selftest.c. | |
15874 | (COMMON_OBS): Remove selftest.o. | |
15875 | * configure.ac: Append selftest-arch.c and common/selftest.c to | |
15876 | CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS. | |
15877 | * configure: Re-generated. | |
15878 | * maint.c (maintenance_selftest): Wrap selftests::run_tests with | |
15879 | GDB_SELF_TEST. | |
15880 | (maintenance_info_selftests): Likewise. | |
15881 | ||
04bafb1e XR |
15882 | 2018-01-08 Xavier Roirand <roirand@adacore.com> |
15883 | ||
15884 | * ada-valprint.c (val_print_packed_array_elements): Use | |
15885 | proper number of elements when printing an array indexed | |
15886 | by an enumeration type. | |
15887 | ||
518817b3 SM |
15888 | 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca> |
15889 | ||
15890 | * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove. | |
15891 | (dw2_get_file_names_reader): Adjust. | |
15892 | (lookup_dwo_signatured_type): Adjust. | |
15893 | (lookup_dwp_signatured_type): Adjust. | |
15894 | (lookup_signatured_type): Adjust. | |
15895 | (create_type_unit_group): Adjust. | |
15896 | (get_type_unit_group): Adjust. | |
15897 | (process_psymtab_comp_unit_reader): Adjust. | |
15898 | (build_type_psymtabs_reader): Adjust. | |
15899 | (scan_partial_symbols): Adjust. | |
15900 | (add_partial_symbol): Adjust. | |
15901 | (add_partial_subprogram): Adjust. | |
15902 | (peek_die_abbrev): Adjust. | |
15903 | (fixup_go_packaging): Adjust. | |
15904 | (process_imported_unit_die): Adjust. | |
15905 | (dwarf2_compute_name): Adjust. | |
15906 | (dwarf2_physname): Adjust. | |
15907 | (read_import_statement): Adjust. | |
15908 | (handle_DW_AT_stmt_list): Adjust. | |
15909 | (read_file_scope): Adjust. | |
15910 | (read_func_scope): Adjust. | |
15911 | (read_lexical_block_scope): Adjust. | |
15912 | (read_call_site_scope): Adjust. | |
15913 | (read_variable): Adjust. | |
15914 | (dwarf2_rnglists_process): Adjust. | |
15915 | (dwarf2_ranges_process): Adjust. | |
15916 | (dwarf2_ranges_read): Adjust. | |
15917 | (dwarf2_get_pc_bounds): Adjust. | |
15918 | (dwarf2_record_block_ranges): Adjust. | |
15919 | (dwarf2_add_field): Adjust. | |
15920 | (dwarf2_add_member_fn): Adjust. | |
15921 | (read_structure_type): Adjust. | |
15922 | (process_structure_scope): Adjust. | |
15923 | (read_enumeration_type): Adjust. | |
15924 | (read_array_type): Adjust. | |
15925 | (mark_common_block_symbol_computed): Adjust. | |
15926 | (read_common_block): Adjust. | |
15927 | (read_namespace_type): Adjust. | |
15928 | (read_namespace): Adjust. | |
15929 | (read_module_type): Adjust. | |
15930 | (read_tag_pointer_type): Adjust. | |
15931 | (read_tag_ptr_to_member_type): Adjust. | |
15932 | (read_tag_string_type): Adjust. | |
15933 | (read_subroutine_type): Adjust. | |
15934 | (read_typedef): Adjust. | |
15935 | (read_base_type): Adjust. | |
15936 | (attr_to_dynamic_prop): Adjust. | |
15937 | (read_subrange_type): Adjust. | |
15938 | (read_unspecified_type): Adjust. | |
15939 | (dwarf2_read_abbrevs): Adjust. | |
15940 | (load_partial_dies): Adjust. | |
15941 | (read_partial_die): Adjust. | |
15942 | (find_partial_die): Adjust. | |
15943 | (guess_partial_die_structure_name): Adjust. | |
15944 | (fixup_partial_die): Adjust. | |
15945 | (read_attribute_value): Adjust. | |
15946 | (read_addr_index): Adjust. | |
15947 | (read_addr_index_from_leb128): Adjust. | |
15948 | (read_str_index): Adjust. | |
15949 | (dwarf2_string_attr): Adjust. | |
15950 | (get_debug_line_section): Adjust. | |
15951 | (dwarf_decode_line_header): Adjust. | |
15952 | (lnp_state_machine::check_line_address): Adjust. | |
15953 | (dwarf_decode_lines_1): Adjust. | |
15954 | (dwarf_decode_lines): Adjust. | |
15955 | (dwarf2_start_symtab): Adjust. | |
15956 | (var_decode_location): Adjust. | |
15957 | (new_symbol_full): Adjust. | |
15958 | (dwarf2_const_value_data): Adjust. | |
15959 | (dwarf2_const_value_attr): Adjust. | |
15960 | (dwarf2_const_value): Adjust. | |
15961 | (die_type): Adjust. | |
15962 | (die_containing_type): Adjust. | |
15963 | (build_error_marker_type): Adjust. | |
15964 | (lookup_die_type): Adjust. | |
15965 | (guess_full_die_structure_name): Adjust. | |
15966 | (anonymous_struct_prefix): Adjust. | |
15967 | (determine_prefix): Adjust. | |
15968 | (dwarf2_name): Adjust. | |
15969 | (follow_die_ref_or_sig): Adjust. | |
15970 | (follow_die_offset): Adjust. | |
15971 | (follow_die_ref): Adjust. | |
15972 | (follow_die_sig_1): Adjust. | |
15973 | (follow_die_sig): Adjust. | |
15974 | (get_signatured_type): Adjust. | |
15975 | (get_DW_AT_signature_type): Adjust. | |
15976 | (decode_locdesc): Adjust. | |
15977 | (dwarf_decode_macros): Adjust. | |
15978 | (cu_debug_loc_section): Adjust. | |
15979 | (fill_in_loclist_baton): Adjust. | |
15980 | (dwarf2_symbol_mark_computed): Adjust. | |
15981 | (init_one_comp_unit): Don't assign | |
15982 | dwarf2_cu::dwarf2_per_objfile. | |
15983 | (set_die_type): Adjust. | |
15984 | ||
ed2dc618 SM |
15985 | 2018-01-07 Simon Marchi <simon.marchi@ericsson.com> |
15986 | ||
15987 | * dwarf2read.c (struct mapped_debug_names): Add constructor. | |
15988 | <dwarf2_per_objfile>: New field. | |
15989 | (dwarf2_per_objfile): Remove global. | |
15990 | (get_dwarf2_per_objfile): New function. | |
15991 | (set_dwarf2_per_objfile): New function. | |
15992 | (dwarf2_build_psymtabs_hard): Change objfile parameter to | |
15993 | dwarf2_per_objfile. | |
15994 | (abbrev_table_read_table): Add dwarf2_per_objfile parameter. | |
15995 | (read_abbrev_offset): Likewise. | |
15996 | (read_indirect_string): Likewise. | |
15997 | (read_indirect_line_string): Likewise. | |
15998 | (read_indirect_string_at_offset): Likewise. | |
15999 | (read_indirect_string_from_dwz): Likewise. | |
16000 | (dwarf2_find_containing_comp_unit): Change objfile parameter to | |
16001 | dwarf2_per_objfile. | |
16002 | (age_cached_comp_units): Add dwarf2_per_objfile parameter. | |
16003 | (create_all_comp_units): Change objfile parameter to | |
16004 | dwarf2_per_objfile. | |
16005 | (create_all_type_units): Likewise. | |
16006 | (process_queue): Add dwarf2_per_objfile parameter. | |
16007 | (read_and_check_comp_unit_head): Likewise. | |
16008 | (lookup_dwo_unit_in_dwp): Likewise. | |
16009 | (get_dwp_file): Likewise. | |
16010 | (process_cu_includes): Likewise. | |
16011 | (struct free_dwo_file_cleanup_data): New struct. | |
16012 | (dwarf2_has_info): Use get_dwarf2_per_objfile and | |
16013 | set_dwarf2_per_objfile. | |
16014 | (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter. | |
16015 | (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from | |
16016 | context, adjust calls. | |
16017 | (dw2_instantiate_symtab): Likewise. | |
16018 | (dw2_get_cutu): Add dwarf2_per_objfile parameter. | |
16019 | (dw2_get_cu): Likewise. | |
16020 | (create_cu_from_index_list): Change objfile parameter to | |
16021 | dwarf2_per_objfile. | |
16022 | (create_cus_from_index_list): Get dwarf2_per_objfile from | |
16023 | context, adjust calls. | |
16024 | (create_cus_from_index): Likewise. | |
16025 | (create_signatured_type_table_from_index): Change objfile | |
16026 | parameter to dwarf2_per_objfile. | |
16027 | (create_signatured_type_table_from_debug_names): Change objfile | |
16028 | parameter to dwarf2_per_objfile. | |
16029 | (create_addrmap_from_index): Likewise. | |
16030 | (create_addrmap_from_aranges): Likewise. | |
16031 | (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls. | |
16032 | (dw2_setup): Remove. | |
16033 | (dw2_get_file_names_reader): Get dwarf2_per_objfile from | |
16034 | context. | |
16035 | (dw2_find_last_source_symtab): Get dwarf2_per_objfile using | |
16036 | get_dwarf2_per_objfile. | |
16037 | (dw2_forget_cached_source_info): Likewise. | |
16038 | (dw2_map_symtabs_matching_filename): Likewise. | |
16039 | (struct dw2_symtab_iterator) <index>: Remove. | |
16040 | <dwarf2_per_objfile>: New field. | |
16041 | (dw2_symtab_iter_init): Replace index parameter with | |
16042 | dwarf2_per_objfile. | |
16043 | (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter. | |
16044 | (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust. | |
16045 | (dw2_print_stats): Likewise. | |
16046 | (dw2_dump): Likewise. | |
16047 | (dw2_expand_symtabs_for_function): Likewise. | |
16048 | (dw2_expand_all_symtabs): Likewise. | |
16049 | (dw2_expand_symtabs_with_fullname): Likewise. | |
16050 | (dw2_expand_marked_cus): Replace index and objfile parameters | |
16051 | with dwarf2_per_objfile. | |
16052 | (dw_expand_symtabs_matching_file_matcher): Add | |
16053 | dwarf2_per_objfile parameter and adjust calls. | |
16054 | (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and | |
16055 | adjust calls. | |
16056 | (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup. | |
16057 | (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and | |
16058 | adjust calls. | |
16059 | (create_cus_from_debug_names_list): Replace objfile parameter | |
16060 | with dwarf2_per_objfile and adjust calls. | |
16061 | (create_cus_from_debug_names): Likewise. | |
16062 | (dwarf2_read_debug_names): Likewise. | |
16063 | (mapped_debug_names::namei_to_name): Adjust call. | |
16064 | (dw2_debug_names_iterator::next): Likewise. | |
16065 | (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise. | |
16066 | (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile. | |
16067 | (dw2_debug_names_dump): Likewise. | |
16068 | (dw2_debug_names_expand_symtabs_for_function): Likewise. | |
16069 | (dw2_debug_names_expand_symtabs_matching): Likewise. | |
16070 | (dwarf2_initialize_objfile): Likewise. | |
16071 | (dwarf2_build_psymtabs): Likewise. | |
16072 | (get_abbrev_section_for_cu): Get dwarf2_per_objfile from | |
16073 | this_cu. | |
16074 | (error_check_comp_unit_head): Add dwarf2_per_objfile parameter. | |
16075 | (read_and_check_comp_unit_head): Likewise. | |
16076 | (read_abbrev_offset): Likewise. | |
16077 | (create_debug_type_hash_table): Likewise. | |
16078 | (create_debug_types_hash_table): Likewise. | |
16079 | (create_all_type_units): Replace objfile parameter with | |
16080 | dwarf2_per_objfile. | |
16081 | (add_type_unit): Add dwarf2_per_objfile parameter. | |
16082 | (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter | |
16083 | with dwarf2_per_objfile. | |
16084 | (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu. | |
16085 | (lookup_dwp_signatured_type): Likewise. | |
16086 | (lookup_signatured_type): Likewise. | |
16087 | (read_cutu_die_from_dwo): Likewise. | |
16088 | (init_tu_and_read_dwo_dies): Likewise. | |
16089 | (init_cutu_and_read_dies): Likewise. | |
16090 | (init_cutu_and_read_dies_no_follow): Likewise. | |
16091 | (allocate_type_unit_groups_table): Add objfile parameter. | |
16092 | (create_type_unit_group): Use dwarf2_per_objfile from cu. | |
16093 | (get_type_unit_group): Likewise. | |
16094 | (process_psymtab_comp_unit): Update call. | |
16095 | (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu. | |
16096 | (build_type_psymtabs_1): Add dwarf2_per_objfile parameter. | |
16097 | (print_tu_stats): Likewise. | |
16098 | (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed | |
16099 | in void* parameter. | |
16100 | (build_type_psymtabs): Change objfile parameter to | |
16101 | dwarf2_per_objfile. | |
16102 | (process_skeletonless_type_unit): Use dwarf2_per_objfile | |
16103 | passed in void* parameter. | |
16104 | (process_skeletonless_type_units): Change objfile parameter to | |
16105 | dwarf2_per_objfile. | |
16106 | (set_partial_user): Likewise. | |
16107 | (dwarf2_build_psymtabs_hard): Likewise. | |
16108 | (read_comp_units_from_section): Likewise. | |
16109 | (create_all_comp_units): Likewise. | |
16110 | (scan_partial_symbols): Update calls. | |
16111 | (add_partial_symbol): Likewise. | |
16112 | (dwarf2_read_symtab): Use get_dwarf2_per_objfile. | |
16113 | (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu. | |
16114 | (process_queue): Add dwarf2_per_objfile parameter. | |
16115 | (get_compunit_symtab): Use dwarf2_per_objfile from cu. | |
16116 | (compute_compunit_symtab_includes): Likewise. | |
16117 | (process_cu_includes): Add dwarf2_per_objfile parameter. | |
16118 | (process_full_comp_unit): Use dwarf2_per_objfile from cu. | |
16119 | (process_full_type_unit): Likewise. | |
16120 | (process_imported_unit_die): Update call. | |
16121 | (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu. | |
16122 | (read_file_scope): Likewise. | |
16123 | (allocate_dwo_file_hash_table): Add objfile parameter. | |
16124 | (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter. | |
16125 | (create_cus_hash_table): Likewise. | |
16126 | (create_dwp_hash_table): Likewise. | |
16127 | (create_dwo_unit_in_dwp_v1): Likewise. | |
16128 | (create_dwp_v2_section): Likewise. | |
16129 | (create_dwo_unit_in_dwp_v2): Likewise. | |
16130 | (lookup_dwo_unit_in_dwp): Likewise. | |
16131 | (try_open_dwop_file): Likewise. | |
16132 | (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu. | |
16133 | (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update | |
16134 | cleanup to include a reference to dwarf2_per_objfile. | |
16135 | (open_dwp_file): Add dwarf2_per_objfile parameter. | |
16136 | (open_and_init_dwp_file): Likewise. | |
16137 | (get_dwp_file): Likewise. | |
16138 | (lookup_dwo_cutu): Use dwarf2_per_objfile from cu. | |
16139 | (queue_and_load_all_dwo_tus): Update call. | |
16140 | (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup | |
16141 | data. | |
16142 | (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu. | |
16143 | (dwarf2_ranges_process): Likewise. | |
16144 | (dwarf2_get_pc_bounds): Likewise. | |
16145 | (mark_common_block_symbol_computed): Likewise. | |
16146 | (abbrev_table_read_table): Add dwarf2_per_objfile parameter. | |
16147 | (dwarf2_read_abbrevs): Update call. | |
16148 | (read_partial_die): Use dwarf2_per_objfile from cu. | |
16149 | (find_partial_die): Likewise. | |
16150 | (fixup_partial_die): Likewise. | |
16151 | (read_attribute_value): Likewise. | |
16152 | (read_indirect_string_at_offset_from): Add objfile parameter. | |
16153 | (read_indirect_string_at_offset): Add dwarf2_per_objfile | |
16154 | parameter. | |
16155 | (read_indirect_string_from_dwz): Add objfile parameter. | |
16156 | (read_indirect_string): Add objfile parameter. | |
16157 | (read_addr_index_1): Add dwarf2_per_objfile parameter. | |
16158 | (read_addr_index): Use dwarf2_per_objfile from cu. | |
16159 | (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't | |
16160 | call dw2_setup. | |
16161 | (read_str_index): Use dwarf2_per_objfile from cu. | |
16162 | (get_debug_line_section): Likewise. | |
16163 | (read_formatted_entries): Add dwarf2_per_objfile parameter. | |
16164 | (dwarf_decode_line_header): Use dwarf2_per_objfile from cu. | |
16165 | (new_symbol_full): Use dwarf2_per_objfile from cu. | |
16166 | (build_error_marker_type): Likewise. | |
16167 | (lookup_die_type): Likewise. | |
16168 | (determine_prefix): Likewise. | |
16169 | (follow_die_offset): Likewise. | |
16170 | (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile. | |
16171 | (dwarf2_fetch_constant_bytes): Don't call dw2_setup. | |
16172 | (dwarf2_fetch_die_type_sect_off): Likewise. | |
16173 | (dwarf2_get_die_type): Likewise. | |
16174 | (follow_die_sig_1): Use dwarf2_per_objfile from cu. | |
16175 | (get_signatured_type): Likewise. | |
16176 | (get_DW_AT_signature_type): Likewise. | |
16177 | (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter. | |
16178 | (dwarf_decode_macros): Use dwarf2_per_objfile from cu. | |
16179 | (cu_debug_loc_section): Likewise. | |
16180 | (fill_in_loclist_baton): Likewise. | |
16181 | (dwarf2_symbol_mark_computed): Likewise. | |
16182 | (dwarf2_find_containing_comp_unit): Change objfile parameter to | |
16183 | dwarf2_per_objfile. | |
16184 | (free_cached_comp_units): Use dwarf2_per_objfile passed in void* | |
16185 | parameter. | |
16186 | (age_cached_comp_units): Add dwarf2_per_objfile parameter. | |
16187 | (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu. | |
16188 | (dwarf2_free_objfile): Use get_dwarf2_per_objfile. | |
16189 | (set_die_type): Use dwarf2_free_objfile from cu. | |
16190 | (get_die_type_at_offset): Likewise. | |
16191 | (dwarf2_per_objfile_free): Don't assign global variable. | |
16192 | (debug_names) <constructor>: Add dwarf2_per_objfile | |
16193 | parameter, update m_debugstrlookup construction. | |
16194 | (debug_names::debug_str_lookup): Add dwarf2_per_objfile | |
16195 | parameter. | |
16196 | <m_dwarf2_per_objfile>: New field. | |
16197 | <lookup>: Use m_dwarf2_per_objfile. | |
16198 | (check_dwarf64_offsets): Add dwarf2_per_objfile parameter. | |
16199 | (psyms_seen_size): Likewise. | |
16200 | (write_gdbindex): Replace objfile parameter with | |
16201 | dwarf2_per_objfile. | |
16202 | (write_debug_names): Likewise. | |
16203 | (write_psymtabs_to_index): Likewise. | |
16204 | (save_gdb_index_command): Use get_dwarf2_per_objfile, update | |
16205 | calls. | |
16206 | ||
e3b94546 SM |
16207 | 2018-01-07 Simon Marchi <simon.marchi@ericsson.com> |
16208 | ||
16209 | * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove. | |
16210 | <dwarf2_per_objfile>: New field. | |
16211 | (struct dwarf2_per_cu_data) <objfile>: Remove. | |
16212 | <dwarf2_per_objfile>: New field. | |
16213 | (create_cu_from_index_list): Assign dwarf2_per_objfile instead | |
16214 | of objfile. | |
16215 | (create_signatured_type_table_from_index): Likewise. | |
16216 | (create_debug_type_hash_table): Likewise. | |
16217 | (fill_in_sig_entry_from_dwo_entry): Likewise. | |
16218 | (lookup_dwo_unit): Access objfile through dwarf2_per_objfile. | |
16219 | (create_type_unit_group): Assign dwarf2_per_objfile instead of | |
16220 | objfile. | |
16221 | (create_partial_symtab): Access objfile through | |
16222 | dwarf2_per_objfile. | |
16223 | (process_psymtab_comp_unit_reader): Likewise. | |
16224 | (read_comp_units_from_section): Likewise. | |
16225 | (scan_partial_symbols): Likewise. | |
16226 | (add_partial_symbol): Likewise. | |
16227 | (add_partial_subprogram): Likewise. | |
16228 | (peek_die_abbrev): Likewise. | |
16229 | (fixup_go_packaging): Likewise. | |
16230 | (process_full_comp_unit): Likewise. | |
16231 | (process_full_type_unit): Likewise. | |
16232 | (process_imported_unit_die): Likewise. | |
16233 | (dwarf2_compute_name): Likewise. | |
16234 | (dwarf2_physname): Likewise. | |
16235 | (read_import_statement): Likewise. | |
16236 | (create_cus_hash_table): Assign dwarf2_physname instead of | |
16237 | objfile. | |
16238 | (read_func_scope): Access objfile through dwarf2_per_objfile. | |
16239 | (read_lexical_block_scope): Likewise. | |
16240 | (read_call_site_scope): Likewise. | |
16241 | (read_variable): Likewise. | |
16242 | (dwarf2_rnglists_process): Likewise. | |
16243 | (dwarf2_ranges_process): Likewise. | |
16244 | (dwarf2_ranges_read): Likewise. | |
16245 | (dwarf2_record_block_ranges): Likewise. | |
16246 | (dwarf2_add_field): Likewise. | |
16247 | (dwarf2_add_member_fn): Likewise. | |
16248 | (read_structure_type): Likewise. | |
16249 | (process_structure_scope): Likewise. | |
16250 | (read_enumeration_type): Likewise. | |
16251 | (read_array_type): Likewise. | |
16252 | (read_common_block): Likewise. | |
16253 | (read_namespace_type): Likewise. | |
16254 | (read_namespace): Likewise. | |
16255 | (read_module_type): Likewise. | |
16256 | (read_tag_pointer_type): Likewise. | |
16257 | (read_tag_ptr_to_member_type): Likewise. | |
16258 | (read_tag_string_type): Likewise. | |
16259 | (read_subroutine_type): Likewise. | |
16260 | (read_typedef): Likewise. | |
16261 | (read_base_type): Likewise. | |
16262 | (attr_to_dynamic_prop): Likewise. | |
16263 | (read_subrange_type): Likewise. | |
16264 | (read_unspecified_type): Likewise. | |
16265 | (load_partial_dies): Likewise. | |
16266 | (read_partial_die): Likewise. | |
16267 | (find_partial_die): Likewise. | |
16268 | (guess_partial_die_structure_name): Likewise. | |
16269 | (fixup_partial_die): Likewise. | |
16270 | (read_attribute_value): Likewise. | |
16271 | (read_addr_index_from_leb128): Likewise. | |
16272 | (dwarf2_read_addr_index): Likewise. | |
16273 | (dwarf2_string_attr): Likewise. | |
16274 | (lnp_state_machine::check_line_address): Likewise. | |
16275 | (dwarf_decode_lines_1): Likewise. | |
16276 | (dwarf_decode_lines): Likewise. | |
16277 | (dwarf2_start_symtab): Likewise. | |
16278 | (var_decode_location): Likewise. | |
16279 | (new_symbol_full): Likewise. | |
16280 | (dwarf2_const_value_data): Likewise. | |
16281 | (dwarf2_const_value_attr): Likewise. | |
16282 | (dwarf2_const_value): Likewise. | |
16283 | (die_type): Likewise. | |
16284 | (die_containing_type): Likewise. | |
16285 | (lookup_die_type): Likewise. | |
16286 | (guess_full_die_structure_name): Likewise. | |
16287 | (anonymous_struct_prefix): Likewise. | |
16288 | (dwarf2_name): Likewise. | |
16289 | (follow_die_ref_or_sig): Likewise. | |
16290 | (follow_die_offset): Likewise. | |
16291 | (follow_die_ref): Likewise. | |
16292 | (dwarf2_fetch_die_loc_sect_off): Likewise. | |
16293 | (dwarf2_fetch_constant_bytes): Likewise. | |
16294 | (dwarf2_fetch_die_type_sect_off): Likewise. | |
16295 | (dwarf2_get_die_type): Likewise. | |
16296 | (follow_die_sig): Likewise. | |
16297 | (decode_locdesc): Likewise. | |
16298 | (dwarf2_per_cu_objfile): Likewise. | |
16299 | (dwarf2_per_cu_text_offset): Likewise. | |
16300 | (init_one_comp_unit): Assign dwarf2_per_objfile instead of | |
16301 | objfile. | |
16302 | (set_die_type): Access objfile through | |
16303 | dwarf2_per_objfile. | |
16304 | ||
b01ba14d SM |
16305 | 2018-01-07 Simon Marchi <simon.marchi@ericsson.com> |
16306 | ||
16307 | * valprint.c (converted_character_d): Remove typedef. | |
16308 | (DEF_VEC_O (converted_character_d)): Remove. | |
16309 | (count_next_character): Use std::vector. | |
16310 | (print_converted_chars_to_obstack): Likewise. | |
16311 | (generic_printstr): Likewise. | |
16312 | ||
4d0fdd9b SM |
16313 | 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca> |
16314 | ||
16315 | * xml-support.h (struct gdb_xml_value): Add constructor. | |
16316 | <value>: Change type to unique_xmalloc_ptr. | |
16317 | (gdb_xml_value_s): Remove typedef. | |
16318 | (DEF_VEC_O (gdb_xml_value_s)): Remove. | |
16319 | (gdb_xml_element_start_handler): Change parameter type to | |
16320 | std::vector. | |
16321 | (xml_find_attribute): Likewise. | |
16322 | * xml-support.c (xml_find_attribute): Change parameter type to | |
16323 | std::vector and adjust. | |
16324 | (gdb_xml_values_cleanup): Remove. | |
16325 | (gdb_xml_parser::start_element): Adjust to std::vector. | |
16326 | (xinclude_start_include): Change paraeter type to std::vector | |
16327 | and adjust. | |
16328 | * btrace.c (check_xml_btrace_version): Likewise. | |
16329 | (parse_xml_btrace_block): Likewise. | |
16330 | (parse_xml_btrace_pt_config_cpu): Likewise. | |
16331 | (parse_xml_btrace_pt): Likewise. | |
16332 | (parse_xml_btrace_conf_bts): Likewise. | |
16333 | (parse_xml_btrace_conf_pt): Likewise. | |
16334 | * memory-map.c (memory_map_start_memory): Likewise. | |
16335 | (memory_map_start_property): Likewise. | |
16336 | * osdata.c (osdata_start_osdata): Likewise. | |
16337 | (osdata_start_item): Likewise. | |
16338 | (osdata_start_column): Likewise. | |
16339 | * remote.c (start_thread): Likewise. | |
16340 | * solib-aix.c (library_list_start_library): Likewise. | |
16341 | (library_list_start_list): Likewise. | |
16342 | * solib-svr4.c (library_list_start_library): Likewise. | |
16343 | (svr4_library_list_start_list): Likewise. | |
16344 | * solib-target.c (library_list_start_segment): Likewise. | |
16345 | (library_list_start_section): Likewise. | |
16346 | (library_list_start_library): Likewise. | |
16347 | (library_list_start_list): Likewise. | |
16348 | * tracepoint.c (traceframe_info_start_memory): Likewise. | |
16349 | (traceframe_info_start_tvar): Likewise. | |
16350 | * xml-syscall.c (syscall_start_syscall): Likewise. | |
16351 | * xml-tdesc.c (tdesc_start_target): Likewise. | |
16352 | (tdesc_start_feature): Likewise. | |
16353 | (tdesc_start_reg): Likewise. | |
16354 | (tdesc_start_union): Likewise. | |
16355 | (tdesc_start_struct): Likewise. | |
16356 | (tdesc_start_flags): Likewise. | |
16357 | (tdesc_start_enum): Likewise. | |
16358 | (tdesc_start_field): Likewise. | |
16359 | (tdesc_start_enum_value): Likewise. | |
16360 | (tdesc_start_vector): Likewise. | |
16361 | ||
f979c73f SM |
16362 | 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca> |
16363 | ||
16364 | * extension.h (struct xmethod_worker) <clone>: Remove. | |
16365 | * python/py-xmethods.c (struct python_xmethod_worker) <clone>: | |
16366 | Remove. | |
16367 | (python_xmethod_worker::clone): Remove. | |
16368 | * valops.c (find_overload_match): Use std::move instead of | |
16369 | clone. | |
16370 | ||
ba18742c SM |
16371 | 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca> |
16372 | ||
16373 | * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h. | |
16374 | (struct extension_language_ops) <clone_xmethod_worker_data>: Remove. | |
16375 | <free_xmethod_worker_data>: Remove. | |
16376 | <get_matching_xmethod_workers>: Chance VEC to std::vector. | |
16377 | <get_xmethod_arg_types>: Remove. | |
16378 | <get_xmethod_result_type>: Remove. | |
16379 | <invoke_xmethod>: Remove. | |
16380 | * extension.c (new_xmethod_worker): Remove. | |
16381 | (clone_xmethod_worker): Remove. | |
16382 | (get_matching_xmethod_workers): Return void, pass std::vector by | |
16383 | pointer. | |
16384 | (get_xmethod_arg_types): Rename to... | |
16385 | (xmethod_worker::get_arg_types): ... this, and adjust. | |
16386 | (get_xmethod_result_type): Rename to... | |
16387 | (xmethod_worker::get_result_type): ... this, and adjust. | |
16388 | (invoke_xmethod): Remove. | |
16389 | (free_xmethod_worker): Remove. | |
16390 | (free_xmethod_worker_vec): Remove. | |
16391 | * extension.h (enum ext_lang_rc): Move here from | |
16392 | extension-priv.h. | |
16393 | (struct xmethod_worker): Add constructor and destructor. | |
16394 | <data>: Remove. | |
16395 | <value>: Remove. | |
16396 | <invoke, clone, do_get_result_type, do_get_arg_types>: New | |
16397 | virtual pure methods. | |
16398 | <get_arg_types, get_result_type>: New methods. | |
16399 | (xmethod_worker_ptr): Remove typedef. | |
16400 | (DEF_VEC_P (xmethod_worker_ptr)): Remove. | |
16401 | (xmethod_worker_vec): Remove typedef. | |
16402 | (xmethod_worker_up): New typedef. | |
16403 | (invoke_xmethod): Remove. | |
16404 | (clone_xmethod_worker): Remove. | |
16405 | (free_xmethod_worker): Remove. | |
16406 | (free_xmethod_worker_vec): Remove. | |
16407 | (get_xmethod_arg_types): Remove. | |
16408 | (get_xmethod_result_type): Remove. | |
16409 | * valops.c (find_method_list): Use std::vector, don't use | |
16410 | intermediate vector. | |
16411 | (value_find_oload_method_list): Use std::vector. | |
16412 | (find_overload_match): Use std::vector. | |
16413 | (find_oload_champ): Use std::vector. | |
16414 | * value.c (value_free): Use operator delete. | |
16415 | (value_of_xmethod): Rename to... | |
16416 | (value_from_xmethod): ... this. Don't assign | |
16417 | xmethod_worker::value, take rvalue-reference. | |
16418 | (result_type_of_xmethod): Adjust. | |
16419 | (call_xmethod): Adjust. | |
16420 | * value.h: Include extension.h. | |
16421 | (struct xmethod_worker): Don't forward-declare. | |
16422 | (value_of_xmethod): Rename to... | |
16423 | (value_from_xmethod): ... this, take rvalue-reference. | |
16424 | * python/py-xmethods.c (struct gdbpy_worker_data): Rename to... | |
16425 | (struct python_xmethod_worker): ... this, add constructor and | |
16426 | destructor. | |
16427 | <invoke, clone, do_get_arg_types, do_get_result_type>: Implement. | |
16428 | (gdbpy_free_xmethod_worker_data): Rename to... | |
16429 | (python_xmethod_worker::~python_xmethod_worker): ... this and | |
16430 | adjust. | |
16431 | (gdbpy_clone_xmethod_worker_data): Rename to... | |
16432 | (python_xmethod_worker::clone): ... this and adjust. | |
16433 | (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use | |
16434 | temporary vector. | |
16435 | (gdbpy_get_xmethod_arg_types): Rename to... | |
16436 | (python_xmethod_worker::do_get_arg_types): ... this and adjust. | |
16437 | (gdbpy_get_xmethod_result_type): Rename to... | |
16438 | (python_xmethod_worker::do_get_result_type): ... this and | |
16439 | adjust. | |
16440 | (gdbpy_invoke_xmethod): Rename to... | |
16441 | (python_xmethod_worker::invoke): ... this and adjust. | |
16442 | (new_python_xmethod_worker): Rename to... | |
16443 | (python_xmethod_worker::python_xmethod_worker): ... this and | |
16444 | adjust. | |
16445 | * python/python-internal.h (gdbpy_clone_xmethod_worker_data): | |
16446 | Remove. | |
16447 | (gdbpy_free_xmethod_worker_data): Remove. | |
16448 | (gdbpy_get_matching_xmethod_workers): Use std::vector. | |
16449 | (gdbpy_get_xmethod_arg_types): Remove. | |
16450 | (gdbpy_get_xmethod_result_type): Remove. | |
16451 | (gdbpy_invoke_xmethod): Remove. | |
16452 | * python/python.c (python_extension_ops): Remove obsolete | |
16453 | callbacks. | |
16454 | ||
e379cee6 PA |
16455 | 2018-01-05 Pedro Alves <palves@redhat.com> |
16456 | ||
16457 | PR gdb/18653 | |
16458 | * common/signals-state-save-restore.c | |
16459 | (save_original_signals_state): New parameter 'quiet'. Warn if we | |
16460 | find a custom handler preinstalled, instead of internal erroring. | |
16461 | But only warn if !quiet. | |
16462 | * common/signals-state-save-restore.h | |
16463 | (save_original_signals_state): New parameter 'quiet'. | |
16464 | * main.c (captured_main_1): Move save_original_signals_state call | |
16465 | after option handling, and pass QUIET. | |
16466 | ||
a655456c PA |
16467 | 2018-01-05 Pedro Alves <palves@redhat.com> |
16468 | ||
16469 | * spu-tdep.c (spu_catch_start): Pass | |
16470 | symbol_name_match_type::SEARCH_NAME to block_lookup_symbol. | |
16471 | ||
de63c46b PA |
16472 | 2018-01-05 Pedro Alves <palves@redhat.com> |
16473 | ||
16474 | PR gdb/22670 | |
16475 | * ada-lang.c (literal_symbol_name_matcher): New function. | |
16476 | (ada_get_symbol_name_matcher): Use it for | |
16477 | symbol_name_match_type::SEARCH_NAME. | |
16478 | * block.c (block_lookup_symbol): New parameter 'match_type'. Pass | |
16479 | it down instead of assuming symbol_name_match_type::FULL. | |
16480 | * block.h (block_lookup_symbol): New parameter 'match_type'. | |
16481 | * c-valprint.c (print_unpacked_pointer): Use | |
16482 | lookup_symbol_search_name instead of lookup_symbol. | |
16483 | * compile/compile-object-load.c (get_out_value_type): Pass down | |
16484 | symbol_name_match_type::SEARCH_NAME. | |
16485 | * cp-namespace.c (cp_basic_lookup_symbol): Pass down | |
16486 | symbol_name_match_type::FULL. | |
16487 | * cp-support.c (cp_get_symbol_name_matcher): Handle | |
16488 | symbol_name_match_type::SEARCH_NAME. | |
16489 | * infrun.c (insert_exception_resume_breakpoint): Use | |
16490 | lookup_symbol_search_name. | |
16491 | * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name. | |
16492 | * psymtab.c (maintenance_check_psymtabs): Use | |
16493 | symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME. | |
16494 | * stack.c (print_frame_args): Use lookup_symbol_search_name and | |
16495 | SYMBOL_SEARCH_NAME. | |
16496 | * symtab.c (lookup_local_symbol): Don't demangle the lookup name | |
16497 | if symbol_name_match_type::SEARCH_NAME. | |
16498 | (lookup_symbol_in_language): Pass down | |
16499 | symbol_name_match_type::FULL. | |
16500 | (lookup_symbol_search_name): New. | |
16501 | (lookup_language_this): Pass down | |
16502 | symbol_name_match_type::SEARCH_NAME. | |
16503 | (lookup_symbol_aux, lookup_local_symbol): New parameter | |
16504 | 'match_type'. Pass it down. | |
16505 | * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator. | |
16506 | (lookup_symbol_search_name): New declaration. | |
16507 | (lookup_symbol_in_block): New 'match_type' parameter. | |
16508 | ||
f98fc17b PA |
16509 | 2018-01-05 Pedro Alves <palves@redhat.com> |
16510 | ||
16511 | PR gdb/22670 | |
16512 | * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of | |
16513 | ada_lookup_symbol. | |
16514 | (ada_lookup_symbol): Reimplement in terms of | |
16515 | ada_lookup_symbol_list, bits factored out from | |
16516 | ada_lookup_encoded_symbol. | |
16517 | ||
342f8240 JB |
16518 | 2018-01-05 Joel Brobecker <brobecker@adacore.com> |
16519 | ||
16520 | * ada-exp.y (write_object_renaming): When subscripting an array | |
16521 | using a symbol as the index, pass the block in call to | |
16522 | ada_lookup_encoded_symbol when looking that symbol up. | |
16523 | ||
7150d33c JG |
16524 | 2018-01-05 Jerome Guitton <guitton@adacore.com> |
16525 | ||
16526 | * ada-lang.c (ada_array_length): Use ada_index_type instead of | |
16527 | TYPE_INDEX_TYPE. | |
16528 | ||
cc0e770c JB |
16529 | 2018-01-05 Joel Brobecker <brobecker@adacore.com> |
16530 | ||
16531 | * ada-lang.c (ada_to_fixed_value_create): Add handling of | |
16532 | the case where VALUE_LVAL (val0) is not lval_memory. | |
16533 | ||
f79da888 | 16534 | 2018-01-05 Xavier Roirand <roirand@adacore.com> |
e3861a03 XR |
16535 | |
16536 | * ada-valprint.c (print_optional_low_bound): Handle | |
16537 | character-indexed array printing like boolean-indexed array | |
16538 | printing. | |
16539 | ||
cd385f94 JB |
16540 | 2018-01-05 Joel Brobecker <brobecker@adacore.com> |
16541 | ||
16542 | * NEWS: Create a new section for the next release branch. | |
16543 | Rename the section of the current branch, now that it has | |
16544 | been cut. | |
16545 | ||
09aca949 JB |
16546 | 2018-01-05 Joel Brobecker <brobecker@adacore.com> |
16547 | ||
16548 | GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7): | |
16549 | * version.in: Bump version to 8.1.50.DATE-git. | |
16550 | ||
9f757bf7 XR |
16551 | 2018-01-03 Xavier Roirand <roirand@adacore.com> |
16552 | ||
16553 | * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>: | |
16554 | Add field. | |
16555 | * ada-lang.c (struct exception_support_info) <catch_handlers_sym>: | |
16556 | Add field. | |
16557 | (default_exception_support_info) <catch_handlers_sym>: Add field. | |
16558 | (exception_support_info_fallback) <catch_handlers_sym>: Add field. | |
16559 | (ada_exception_name_addr_1): Add "catch handlers" handling. | |
16560 | (ada_exception_catchpoint_cond_string) <ex>: New parameter. | |
16561 | Update all callers. | |
16562 | (create_excep_cond_exprs) <ex>: Add parameter. | |
16563 | (re_set_exception): Update create_excep_cond_exprs call. | |
16564 | (print_it_exception, print_one_exception, print_mention_exception) | |
16565 | (print_recreate_exception): Add "catch handler" handling. | |
16566 | (allocate_location_catch_handlers, re_set_catch_handlers) | |
16567 | (check_status_catch_handlers, print_it_catch_handlers) | |
16568 | (print_one_catch_handlers, print_mention_catch_handlers) | |
16569 | (print_recreate_catch_handlers): New function. | |
16570 | (catch_handlers_breakpoint_ops): New variable. | |
16571 | (catch_ada_exception_command_split) <is_catch_handlers_cmd>: | |
16572 | Add parameter. Add "catch handler" handling. | |
16573 | (ada_exception_sym_name, ada_exception_breakpoint_ops): | |
16574 | Add "catch handler" handling. | |
16575 | (ada_exception_catchpoint_cond_string): Add "catch handler" | |
16576 | handling. | |
16577 | (create_ada_exception_catchpoint): Update create_excep_cond_exprs | |
16578 | call. | |
16579 | (catch_ada_handlers_command): New function. | |
16580 | (initialize_ada_catchpoint_ops): Initialize "catch handlers" | |
16581 | operations structure. | |
16582 | (_initialize_ada_language): Add "catch handlers" command entry. | |
16583 | * NEWS: Document "catch handlers" feature. | |
16584 | ||
9fe561ab JB |
16585 | 2018-01-02 Joel Brobecker <brobecker@adacore.com> |
16586 | ||
16587 | * ada-lang.c (ada_value_slice_from_ptr): Take array stride into | |
16588 | account when creating the array type of the slice. | |
16589 | (ada_value_slice): Likewise. | |
16590 | ||
a405673c JB |
16591 | 2018-01-02 Joel Brobecker <brobecker@adacore.com> |
16592 | ||
16593 | * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>: | |
16594 | New enum value. | |
16595 | (create_array_type_with_stride): Add byte_stride_prop parameter. | |
16596 | * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>: | |
16597 | New parameter. Update all callers in this file. | |
16598 | (array_type_has_dynamic_stride): New function. | |
16599 | (is_dynamic_type_internal, resolve_dynamic_array): Add handling | |
16600 | of arrays with dynamic byte strides. | |
16601 | * dwarf2read.c (read_array_type): Add support for dynamic | |
16602 | DW_AT_byte_stride attributes. | |
16603 | ||
74a2f8ff JB |
16604 | 2018-01-02 Joel Brobecker <brobecker@adacore.com> |
16605 | ||
16606 | * dwarf2read.c (read_unspecified_type): Treat | |
16607 | DW_TAG_enumeration_type DIEs from Ada units as stubs. | |
16608 | ||
e2882c85 JB |
16609 | 2018-01-01 Joel Brobecker <brobecker@adacore.com> |
16610 | ||
16611 | Update copyright year range in all GDB files. | |
16612 | ||
5e70ee09 | 16613 | 2018-01-01, 18 Joel Brobecker <brobecker@adacore.com> |
1690bb24 JB |
16614 | |
16615 | * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp | |
16616 | and gdb/testsuite/gdb.base/step-line.c. | |
16617 | ||
0f0c98a8 JB |
16618 | 2018-01-01 Joel Brobecker <brobecker@adacore.com> |
16619 | ||
16620 | * copyright.py (main): Dump the contents of | |
16621 | MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND, | |
16622 | even if BY_HAND is empty. | |
16623 | ||
82e1e79a JB |
16624 | 2018-01-01 Joel Brobecker <brobecker@adacore.com> |
16625 | ||
16626 | * top.c (print_gdb_version): Update Copyright year in version | |
16627 | message. | |
16628 | ||
053f54e5 | 16629 | 2018-01-01 Joel Brobecker <brobecker@adacore.com> |
47fea877 | 16630 | |
053f54e5 | 16631 | * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017. |
47fea877 | 16632 | |
053f54e5 | 16633 | For older changes see ChangeLog-2017. |
c906108c SS |
16634 | \f |
16635 | Local Variables: | |
16636 | mode: change-log | |
16637 | left-margin: 8 | |
16638 | fill-column: 74 | |
16639 | version-control: never | |
57da7796 | 16640 | coding: utf-8 |
c906108c | 16641 | End: |