Commit | Line | Data |
---|---|---|
31ce04e9 PA |
1 | 2020-06-18 Pedro Alves <palves@redhat.com> |
2 | ||
3 | * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid. | |
4 | ||
1ee1a363 PA |
5 | 2020-06-18 Pedro Alves <palves@redhat.com> |
6 | ||
7 | * go32-nat.c (go32_nat_target::create_inferior): Switch to thread | |
8 | after creating it, instead of writing to inferior_ptid. Don't | |
9 | write to inferior_ptid. | |
10 | ||
6d350754 PA |
11 | 2020-06-18 Pedro Alves <palves@redhat.com> |
12 | ||
13 | * fork-child.c (postfork_hook): Don't write to inferior_ptid. | |
14 | ||
5d971d48 PA |
15 | 2020-06-18 Pedro Alves <palves@redhat.com> |
16 | ||
17 | * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding | |
18 | it, instead of writing to inferior_ptid. | |
19 | ||
86e57d1b PA |
20 | 2020-06-18 Pedro Alves <palves@redhat.com> |
21 | ||
22 | * btrace.c (btrace_fetch): Use switch_to_thread instead of writing | |
23 | to inferior_ptid. | |
24 | ||
f2e1c129 PA |
25 | 2020-06-18 Pedro Alves <palves@redhat.com> |
26 | ||
27 | * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread | |
28 | instead of writing to inferior_ptid directly. | |
29 | ||
60db1b85 PA |
30 | 2020-06-18 Pedro Alves <palves@redhat.com> |
31 | ||
32 | * corelow.c (core_target::close): Use switch_to_no_thread instead | |
33 | of writing to inferior_ptid directly. | |
34 | (add_to_thread_list, core_target_open): Use switch_to_thread | |
35 | instead of writing to inferior_ptid directly. | |
36 | ||
fe7d6a8d PA |
37 | 2020-06-18 Pedro Alves <palves@redhat.com> |
38 | ||
39 | * darwin-nat.c (darwin_nat_target::decode_message): Don't write to | |
40 | inferior_ptid. | |
41 | (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid | |
42 | inferior_ptid. | |
43 | (darwin_attach_pid): Use switch_to_no_thread instead of writing to | |
44 | inferior_ptid directly. | |
45 | (darwin_nat_target::init_thread_list): Switch to thread, instead | |
46 | of writing to inferior_ptid. | |
47 | (darwin_nat_target::attach): Don't write to inferior_ptid. | |
48 | (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid. | |
49 | ||
975f8708 PA |
50 | 2020-06-18 Pedro Alves <palves@redhat.com> |
51 | ||
52 | * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added | |
53 | thread. | |
54 | (gnu_nat_target::attach): Don't write to inferior_ptid directly. | |
55 | Instead use switch_to_thread. | |
56 | (gnu_nat_target::detach): Use switch_to_no_thread | |
57 | instead of writing to inferior_ptid directly. Used passed-in | |
58 | inferior instead of looking up the inferior by pid. | |
59 | ||
1a204730 PA |
60 | 2020-06-18 Pedro Alves <palves@redhat.com> |
61 | ||
62 | * go32-nat.c (go32_nat_target::create_inferior): Don't write to | |
63 | inferior_ptid. | |
64 | ||
ebe84f23 PA |
65 | 2020-06-18 Pedro Alves <palves@redhat.com> |
66 | ||
67 | * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid | |
68 | inferior_ptid. | |
69 | (nto_procfs_target::attach): Avoid inferior_ptid. Switch to | |
70 | thread. | |
71 | (nto_procfs_target::detach): Avoid referencing | |
72 | inferior_ptid. Use switch_to_no_thread instead of writing to | |
73 | inferior_ptid directly. | |
74 | (nto_procfs_target::mourn_inferior): Use switch_to_no_thread | |
75 | instead of writing to inferior_ptid directly. | |
76 | (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch | |
77 | to thread. | |
78 | ||
191f02e5 PA |
79 | 2020-06-18 Pedro Alves <palves@redhat.com> |
80 | ||
81 | * remote-sim.c (gdbsim_target::create_inferior): Switch to thread | |
82 | after creating it, instead of writing to inferior_ptid. | |
83 | (gdbsim_target_open): Use switch_to_no_thread instead of writing | |
84 | to inferior_ptid directly. | |
85 | (gdbsim_target::wait): Don't write to inferior_ptid. | |
86 | ||
0ac55310 PA |
87 | 2020-06-18 Pedro Alves <palves@redhat.com> |
88 | ||
89 | * remote.c (remote_target::remote_notice_new_inferior): Use | |
90 | switch_to_thread instead of writing to inferior_ptid directly. | |
91 | (remote_target::add_current_inferior_and_thread): Use | |
92 | switch_to_no_thread instead of writing to inferior_ptid directly. | |
93 | (extended_remote_target::attach): Use switch_to_inferior_no_thread | |
94 | and switch_to_thread instead of using set_current_inferior or | |
95 | writing to inferior_ptid directly. | |
96 | ||
5233f39b PA |
97 | 2020-06-18 Pedro Alves <palves@redhat.com> |
98 | ||
99 | * tracectf.c (ctf_target_open): Switch to added thread instead of | |
100 | writing to inferior_ptid directly. | |
101 | (ctf_target::close): Use switch_to_no_thread instead of writing to | |
102 | inferior_ptid directly. | |
103 | ||
087e161b PA |
104 | 2020-06-18 Pedro Alves <palves@redhat.com> |
105 | ||
106 | * tracefile-tfile.c (tfile_target_open): Don't write to | |
107 | inferior_ptid directly, instead switch to added thread. | |
108 | (tfile_target::close): Use switch_to_no_thread instead of writing | |
109 | to inferior_ptid directly. | |
110 | ||
7fb43e53 PA |
111 | 2020-06-18 Pedro Alves <palves@redhat.com> |
112 | ||
113 | * procfs.c (procfs_target::attach): Don't write to inferior_ptid. | |
114 | (procfs_target::detach): Use switch_to_no_thread | |
115 | instead of writing to inferior_ptid directly. | |
116 | (do_attach): Change return type to void. Switch to the added | |
117 | thread. | |
118 | (procfs_target::create_inferior): Switch to the added thread. | |
119 | (procfs_do_thread_registers): Don't write to inferior_ptid. | |
120 | ||
18493a00 PA |
121 | 2020-06-18 Pedro Alves <palves@redhat.com> |
122 | ||
123 | * infrun.c (generic_mourn_inferior): Use switch_to_thread instead | |
124 | of writing to inferior_ptid. | |
125 | (scoped_restore_exited_inferior): Delete. | |
126 | (handle_vfork_child_exec_or_exit): Simplify using | |
127 | scoped_restore_current_pspace_and_thread. Use switch_to_thread | |
128 | instead of writing to inferior_ptid. | |
129 | (THREAD_STOPPED_BY): Delete. | |
130 | (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint) | |
131 | (thread_stopped_by_hw_breakpoint): Delete. | |
132 | (save_waitstatus): Use | |
133 | scoped_restore_current_thread+switch_to_thread, and call | |
134 | target_stopped_by_watchpoint instead of | |
135 | thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint | |
136 | instead of thread_stopped_by_sw_breakpoint, and | |
137 | target_stopped_by_hw_breakpoint instead of | |
138 | thread_stopped_by_hw_breakpoint. | |
139 | (handle_inferior_event) | |
140 | <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to | |
141 | inferior_ptid directly, nor | |
142 | set_current_inferior/set_current_program_space. Use | |
143 | switch_to_thread / switch_to_inferior_no_thread instead. | |
144 | ||
a0776b13 PA |
145 | 2020-06-18 Pedro Alves <palves@redhat.com> |
146 | ||
147 | * target.c (generic_mourn_inferior): Use switch_to_no_thread | |
148 | instead of writing to inferior_ptid. | |
149 | ||
6155c136 PA |
150 | 2020-06-18 Pedro Alves <palves@redhat.com> |
151 | ||
152 | * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the | |
153 | added thread. | |
154 | (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch | |
155 | to the added thread. | |
156 | (inf_ptrace_target::detach_success): Use switch_to_no_thread | |
157 | instead of writing to inferior_ptid. | |
158 | ||
c5316fc6 PA |
159 | 2020-06-18 Pedro Alves <palves@redhat.com> |
160 | ||
161 | * gdbarch-selftests.c: Include "progspace-and-thread.h". | |
162 | (register_to_value_test): Mock a program_space too. Heap-allocate | |
163 | the address space. Don't write to inferior_ptid. Use | |
164 | switch_to_thread instead. | |
165 | ||
8df01799 PA |
166 | 2020-06-18 Pedro Alves <palves@redhat.com> |
167 | ||
168 | * linux-tdep.c (find_signalled_thread(thread_info *,void *)): | |
169 | Delete. | |
170 | (find_signalled_thread()): New, factored out from | |
171 | linux_make_corefile_notes and adjusted to handle exited threads. | |
172 | (linux_make_corefile_notes): Adjust to use the new | |
173 | find_signalled_thread. | |
174 | ||
41792d68 PA |
175 | 2020-06-18 Pedro Alves <palves@redhat.com> |
176 | ||
177 | * linux-tdep.c (btrace_fetch): Save/restore current thread instead | |
178 | of saving/restoring inferior_ptid. | |
179 | ||
612f258a TT |
180 | 2020-06-17 Tom Tromey <tom@tromey.com> |
181 | ||
182 | * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward) | |
183 | (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't | |
184 | declare. | |
185 | * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove. | |
186 | ||
efb763a5 SM |
187 | 2020-06-15 Simon Marchi <simon.marchi@efficios.com> |
188 | ||
189 | * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence | |
190 | of partial symtabs. | |
191 | ||
2951f6c0 SM |
192 | 2020-06-17 Simon Marchi <simon.marchi@efficios.com> |
193 | ||
194 | * regformats/reg-arm.dat: Remove. | |
195 | * regformats/reg-bfin.dat: Remove. | |
196 | * regformats/reg-cris.dat: Remove. | |
197 | * regformats/reg-crisv32.dat: Remove. | |
198 | * regformats/reg-m32r.dat: Remove. | |
199 | * regformats/reg-tilegx.dat: Remove. | |
200 | * regformats/reg-tilegx32.dat: Remove. | |
201 | ||
7d458ea5 SM |
202 | 2020-06-17 Simon Marchi <simon.marchi@efficios.com> |
203 | ||
204 | * features/Makefile (WHICH): Remove arm files. | |
205 | * regformats/arm/arm-with-iwmmxt.dat: Remove. | |
206 | * regformats/arm/arm-with-neon.dat: Remove. | |
207 | * regformats/arm/arm-with-vfpv2.dat: Remove. | |
208 | * regformats/arm/arm-with-vfpv3.dat: Remove. | |
209 | ||
3af96c0d SM |
210 | 2020-06-17 Simon Marchi <simon.marchi@efficios.com> |
211 | ||
212 | * features/Makefile (XMLTOC): Remove rx.xml. | |
213 | ||
b25e22fd PA |
214 | 2020-06-17 Pedro Alves <palves@redhat.com> |
215 | ||
216 | * gdbthread.h (thread_control_state) <trap_expected> Update | |
217 | comments. | |
218 | ||
a78a19b1 AB |
219 | 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com> |
220 | ||
221 | * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to | |
222 | ada_language::lookup_symbol_nonlocal. | |
223 | (ada_language_data): Delete la_lookup_symbol_nonlocal initializer. | |
224 | (ada_language::lookup_symbol_nonlocal): New member function, | |
225 | implementation from ada_lookup_symbol_nonlocal. | |
226 | * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal | |
227 | initializer. | |
228 | (cplus_language_data): Delete la_lookup_symbol_nonlocal | |
229 | initializer. | |
230 | (cplus_language::lookup_symbol_nonlocal): New member function. | |
231 | (asm_language_data): Delete la_lookup_symbol_nonlocal initializer. | |
232 | (minimal_language_data) Likewise. | |
233 | * cp-namespace.c (cp_lookup_nested_symbol): Update comment. | |
234 | * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal | |
235 | initializer. | |
236 | (d_language::lookup_symbol_nonlocal): New member function. | |
237 | * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal | |
238 | initializer. | |
239 | (f_language::lookup_symbol_nonlocal): New member function. | |
240 | * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal | |
241 | initializer. | |
242 | * language.c (unknown_language_data): Likewise. | |
243 | (auto_language_data): Likewise. | |
244 | * language.h (language_data): Delete la_lookup_symbol_nonlocal | |
245 | field. | |
246 | (language_defn::lookup_symbol_nonlocal): New member function. | |
247 | * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal | |
248 | initializer. | |
249 | * objc-lang.c (objc_language_data): Likewise. | |
250 | * opencl-lang.c (opencl_language_data): Likewise. | |
251 | * p-lang.c (pascal_language_data): Likewise. | |
252 | * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to | |
253 | rust_language::lookup_symbol_nonlocal. | |
254 | (rust_language_data): Delete la_lookup_symbol_nonlocal | |
255 | initializer. | |
256 | (rust_language::lookup_symbol_nonlocal): New member function, | |
257 | implementation from rust_lookup_symbol_nonlocal. | |
258 | * symtab.c (lookup_symbol_aux): Update call to | |
259 | lookup_symbol_nonlocal. | |
260 | (basic_lookup_symbol_nonlocal): Rename to... | |
261 | (language_defn::lookup_symbol_nonlocal): ...this, and update | |
262 | header comment. Remove language_defn parameter, and replace with | |
263 | uses of `this'. | |
264 | * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration. | |
265 | ||
ebe2334e AB |
266 | 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com> |
267 | ||
268 | * ada-lang.c (ada_language_data): Delete la_value_print_inner | |
269 | initializer. | |
270 | (ada_language::value_print_inner): New member function. | |
271 | * c-lang.c (c_language_data): Delete la_value_print_inner | |
272 | initializer. | |
273 | (cplus_language_data): Likewise. | |
274 | (asm_language_data): Likewise. | |
275 | (minimal_language_data): Likewise. | |
276 | * d-lang.c (d_language_data): Likewise. | |
277 | (d_language::value_print_inner): New member function. | |
278 | * f-lang.c (f_language_data): Delete la_value_print_inner | |
279 | initializer. | |
280 | (f_language::value_print_inner): New member function. | |
281 | * f-lang.h (f_value_print_innner): Rename to... | |
282 | (f_value_print_inner): ...this (note spelling of 'inner'). | |
283 | * f-valprint.c (f_value_print_innner): Rename to... | |
284 | (f_value_print_inner): ...this (note spelling of 'inner'). | |
285 | * go-lang.c (go_language_data): Delete la_value_print_inner | |
286 | initializer. | |
287 | (go_language::value_print_inner): New member function. | |
288 | * language.c (language_defn::value_print_inner): Define new member | |
289 | function. | |
290 | (unk_lang_value_print_inner): Delete. | |
291 | (unknown_language_data): Delete la_value_print_inner initializer. | |
292 | (unknown_language::value_print_inner): New member function. | |
293 | (auto_language_data): Delete la_value_print_inner initializer. | |
294 | (auto_language::value_print_inner): New member function. | |
295 | * language.h (language_data): Delete la_value_print_inner field. | |
296 | (language_defn::value_print_inner): Delcare new member function. | |
297 | * m2-lang.c (m2_language_data): Delete la_value_print_inner | |
298 | initializer. | |
299 | (m2_language::value_print_inner): New member function. | |
300 | * objc-lang.c (objc_language_data): Delete la_value_print_inner | |
301 | initializer. | |
302 | * opencl-lang.c (opencl_language_data): Likewise. | |
303 | * p-lang.c (pascal_language_data): Likewise. | |
304 | (pascal_language::value_print_inner): New member function. | |
305 | * rust-lang.c (rust_language_data): Delete la_value_print_inner | |
306 | initializer. | |
307 | (rust_language::value_print_inner): New member function. | |
308 | * valprint.c (do_val_print): Update call to value_print_inner. | |
309 | ||
a1d1fa3e AB |
310 | 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com> |
311 | ||
312 | * ada-lang.c (ada_language_data): Delete la_value_print | |
313 | initializer. | |
314 | (ada_language::value_print): New member function. | |
315 | * c-lang.c (c_language_data): Delete la_value_print initializer. | |
316 | (cplus_language_data): Likewise. | |
317 | (asm_language_data): Likewise. | |
318 | (minimal_language_data): Likewise. | |
319 | * d-lang.c (d_language_data): Likewise. | |
320 | * f-lang.c (f_language_data): Likewise. | |
321 | * go-lang.c (go_language_data): Likewise. | |
322 | * language.c (unk_lang_value_print): Delete. | |
323 | (language_defn::value_print): Define new member function. | |
324 | (unknown_language_data): Delete la_value_print initializer. | |
325 | (unknown_language::value_print): New member function. | |
326 | (auto_language_data): Delete la_value_print initializer. | |
327 | (auto_language::value_print): New member function. | |
328 | * language.h (language_data): Delete la_value_print field. | |
329 | (language_defn::value_print): Declare new member function. | |
330 | (LA_VALUE_PRINT): Update call to value_print. | |
331 | * m2-lang.c (m2_language_data): Delete la_value_print initializer. | |
332 | * objc-lang.c (objc_language_data): Likewise. | |
333 | * opencl-lang.c (opencl_language_data): Likewise. | |
334 | * p-lang.c (pascal_language_data): Likewise. | |
335 | (pascal_language::value_print): New member function. | |
336 | * rust-lang.c (rust_language_data): Delete la_value_print | |
337 | initializer. | |
338 | ||
f16a9f57 AB |
339 | 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com> |
340 | ||
341 | * ada-lang.c (ada_watch_location_expression): Rename to | |
342 | ada_language::watch_location_expression. | |
343 | (ada_language_data): Delete la_watch_location_expression | |
344 | initializer. | |
345 | (ada_language::watch_location_expression): New member function, | |
346 | implementation from ada_watch_location_expression. | |
347 | * breakpoint.c (watch_command_1): Update call to | |
348 | watch_location_expression. | |
349 | * c-lang.c (c_watch_location_expression): Rename to | |
350 | language_defn::watch_location_expression. | |
351 | (c_language_data): Delete la_watch_location_expression | |
352 | initializer. | |
353 | (cplus_language_data): Likewise. | |
354 | (asm_language_data): Likewise. | |
355 | (minimal_language_data): Likewise. | |
356 | * c-lang.h (c_watch_location_expression): Delete declaration. | |
357 | * d-lang.c (d_language_data): Delete la_watch_location_expression | |
358 | initializer. | |
359 | * f-lang.c (f_language_data): Likewise. | |
360 | * go-lang.c (go_language_data): Likewise. | |
361 | * language.c (language_defn::watch_location_expression): Member | |
362 | function implementation from c_watch_location_expression. | |
363 | (unknown_language_data): Delete la_watch_location_expression | |
364 | initializer. | |
365 | (auto_language_data): Likewise. | |
366 | * language.h (language_data): Delete la_watch_location_expression | |
367 | field. | |
368 | (language_defn::watch_location_expression): Declare new member | |
369 | function. | |
370 | * m2-lang.c (m2_language_data): Delete | |
371 | la_watch_location_expression initializer. | |
372 | * objc-lang.c (objc_language_data): Likewise. | |
373 | * opencl-lang.c (opencl_language_data): Likewise. | |
374 | * p-lang.c (pascal_language_data): Likewise. | |
375 | * rust-lang.c (rust_watch_location_expression): Rename to | |
376 | rust_language::watch_location_expression. | |
377 | (rust_language_data): Delete la_watch_location_expression | |
378 | initializer. | |
379 | (rust_language::watch_location_expression): New member function, | |
380 | implementation from rust_watch_location_expression. | |
381 | ||
7e56227d AB |
382 | 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com> |
383 | ||
384 | * ada-lang.c (ada_collect_symbol_completion_matches): Rename to | |
385 | ada_language::collect_symbol_completion_matches. | |
386 | (ada_language_data): Delete la_collect_symbol_completion_matches | |
387 | initializer. | |
388 | (ada_language::collect_symbol_completion_matches): New member | |
389 | function, implementation from | |
390 | ada_collect_symbol_completion_matches. | |
391 | * c-lang.c (c_language_data): Delete | |
392 | la_collect_symbol_completion_matches initializer. | |
393 | (cplus_language_data): Likewise. | |
394 | (asm_language_data): Likewise. | |
395 | (minimal_language_data): Likewise. | |
396 | * d-lang.c (d_language_data): Likewise. | |
397 | * f-lang.c (f_collect_symbol_completion_matches): Rename to | |
398 | f_language::collect_symbol_completion_matches. | |
399 | (f_language_data): Delete la_collect_symbol_completion_matches | |
400 | initializer. | |
401 | (f_language::collect_symbol_completion_matches) New member | |
402 | function, implementation from f_collect_symbol_completion_matches. | |
403 | * go-lang.c (go_language_data): Delete | |
404 | la_collect_symbol_completion_matches initializer. | |
405 | * language.c (unknown_language_data): Likewise. | |
406 | (auto_language_data): Likewise. | |
407 | * language.h (language_data): Delete | |
408 | la_collect_symbol_completion_matches field. | |
409 | (language_defn::collect_symbol_completion_matches): New member | |
410 | function. | |
411 | * m2-lang.c (m2_language_data): Delete | |
412 | la_collect_symbol_completion_matches initializer. | |
413 | * objc-lang.c (objc_language_data): Likewise. | |
414 | * opencl-lang.c (opencl_language_data): Likewise. | |
415 | * p-lang.c (pascal_language_data): Likewise. | |
416 | * rust-lang.c (rust_language_data): Likewise. | |
417 | * symtab.c (default_collect_symbol_completion_matches): Delete. | |
418 | (collect_symbol_completion_matches): Update call to | |
419 | collect_symbol_completion_matches. | |
420 | (collect_symbol_completion_matches_type): Likewise. | |
421 | * symtab.h (default_collect_symbol_completion_matches): Delete | |
422 | declaration. | |
423 | ||
53fc67f8 AB |
424 | 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com> |
425 | ||
426 | * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete. | |
427 | (ada_language_data): Delete la_word_break_characters initializer. | |
428 | (ada_language::word_break_characters): New member function. | |
429 | * c-lang.c (c_language_data): Delete la_word_break_characters | |
430 | initializer. | |
431 | (cplus_language_data): Likewise. | |
432 | (asm_language_data): Likewise. | |
433 | (minimal_language_data): Likewise. | |
434 | * completer.c: Update global comment. | |
435 | (advance_to_expression_complete_word_point): Update call to | |
436 | word_break_characters. | |
437 | (complete_files_symbols): Likewise. | |
438 | (complete_line_internal_1): Likewise. | |
439 | (default_completer_handle_brkchars): Likewise. | |
440 | (skip_quoted_chars): Likewise. | |
441 | * d-lang.c (d_language_data): Delete la_word_break_characters | |
442 | initializer. | |
443 | * f-lang.c (f_word_break_characters): Delete. | |
444 | (f_language_data): Delete la_word_break_characters initializer. | |
445 | (f_language::word_break_characters): New member function. | |
446 | * go-lang.c (go_language_data): Delete la_word_break_characters | |
447 | initializer. | |
448 | * language.c (unknown_language_data): Likewise. | |
449 | (auto_language_data): Likewise. | |
450 | * language.h (default_word_break_characters): Move declaration to | |
451 | earlier in the file. | |
452 | (language_data): Delete la_word_break_characters field. | |
453 | (language_defn::word_break_characters): New member function. | |
454 | * m2-lang.c (m2_language_data): Delete la_word_break_characters | |
455 | initializer. | |
456 | * objc-lang.c (objc_language_data): Likewise. | |
457 | * opencl-lang.c (opencl_language_data): Likewise. | |
458 | * p-lang.c (pascal_language_data): Likewise. | |
459 | * rust-lang.c (rust_language_data): Likewise. | |
460 | ||
c9debfb9 AB |
461 | 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com> |
462 | ||
463 | * ada-lang.c (ada_get_symbol_name_matcher): Update header comment. | |
464 | (ada_language_data): Delete la_get_symbol_name_matcher | |
465 | initializer. | |
466 | (language_defn::get_symbol_name_matcher_inner): New member | |
467 | function. | |
468 | * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher | |
469 | initializer. | |
470 | (cplus_language_data): Likewise. | |
471 | (cplus_language::get_symbol_name_matcher_inner): New member | |
472 | function. | |
473 | (asm_language_data): Delete la_get_symbol_name_matcher initializer. | |
474 | (minimal_language_data): Likewise. | |
475 | * cp-support.h (cp_get_symbol_name_matcher): Update header comment. | |
476 | * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher | |
477 | initializer. | |
478 | * dictionary.c (iter_match_first_hashed): Update call to | |
479 | get_symbol_name_matcher. | |
480 | (iter_match_next_hashed): Likewise. | |
481 | (iter_match_next_linear): Likewise. | |
482 | * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise. | |
483 | * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher | |
484 | initializer. | |
485 | (f_language::get_symbol_name_matcher_inner): New member function. | |
486 | * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher | |
487 | initializer. | |
488 | * language.c (default_symbol_name_matcher): Update header comment, | |
489 | make static. | |
490 | (language_defn::get_symbol_name_matcher): New definition. | |
491 | (language_defn::get_symbol_name_matcher_inner): Likewise. | |
492 | (get_symbol_name_matcher): Delete. | |
493 | (unknown_language_data): Delete la_get_symbol_name_matcher | |
494 | initializer. | |
495 | (auto_language_data): Likewise. | |
496 | * language.h (language_data): Delete la_get_symbol_name_matcher | |
497 | field. | |
498 | (language_defn::get_symbol_name_matcher): New member function. | |
499 | (language_defn::get_symbol_name_matcher_inner): Likewise. | |
500 | (default_symbol_name_matcher): Delete declaration. | |
501 | * linespec.c (find_methods): Update call to | |
502 | get_symbol_name_matcher. | |
503 | * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher | |
504 | initializer. | |
505 | * minsyms.c (lookup_minimal_symbol): Update call to | |
506 | get_symbol_name_matcher. | |
507 | (iterate_over_minimal_symbols): Likewise. | |
508 | * objc-lang.c (objc_language_data): Delete | |
509 | la_get_symbol_name_matcher initializer. | |
510 | * opencl-lang.c (opencl_language_data): Likewise. | |
511 | * p-lang.c (pascal_language_data): Likewise. | |
512 | * psymtab.c (psymbol_name_matches): Update call to | |
513 | get_symbol_name_matcher. | |
514 | * rust-lang.c (rust_language_data): Delete | |
515 | la_get_symbol_name_matcher initializer. | |
516 | * symtab.c (symbol_matches_search_name): Update call to | |
517 | get_symbol_name_matcher. | |
518 | (compare_symbol_name): Likewise. | |
519 | ||
9a49ad8c AB |
520 | 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com> |
521 | ||
522 | * ada-lang.c (ada_language_data): Delete la_compute_program | |
523 | initializer. | |
524 | * c-lang.c (c_language_data): Likewise. | |
525 | (c_language::compute_program): New member function. | |
526 | (cplus_language_data): Delete la_compute_program initializer. | |
527 | (cplus_language::compute_program): New member function. | |
528 | (asm_language_data): Delete la_compute_program initializer. | |
529 | (minimal_language_data): Likewise. | |
530 | * c-lang.h (c_compute_program): Update comment. | |
531 | (cplus_compute_program): Likewise. | |
532 | * compile/compile-c-support.c (c_compute_program): Likewise. | |
533 | (cplus_compute_program): Likewise. | |
534 | * compile/compile.c (compile_to_object): Update call to | |
535 | la_compute_program. | |
536 | * d-lang.c (d_language_data): Delete la_compute_program | |
537 | initializer. | |
538 | * f-lang.c (f_language_data): Likewise. | |
539 | * go-lang.c (go_language_data): Likewise. | |
540 | * language.c (unknown_language_data): Likewise. | |
541 | (auto_language_data): Likewise. | |
542 | * language.h (language_data): Delete la_compute_program field. | |
543 | (language_defn::compute_program): New member function. | |
544 | * m2-lang.c (m2_language_data): Delete la_compute_program | |
545 | initializer. | |
546 | * objc-lang.c (objc_language_data): Likewise. | |
547 | * opencl-lang.c (opencl_language_data): Likewise. | |
548 | * p-lang.c (pascal_language_data): Likewise. | |
549 | * rust-lang.c (rust_language_data): Likewise. | |
550 | ||
eff93b4d AB |
551 | 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com> |
552 | ||
553 | * ada-lang.c (ada_language_data) Delete | |
554 | la_class_name_from_physname initializer. | |
555 | * c-lang.c (c_language_data): Likewise. | |
556 | (cplus_language_data): Likewise. | |
557 | (cplus_language::class_name_from_physname): New member function. | |
558 | (asm_language_data): Delete la_class_name_from_physname | |
559 | initializer. | |
560 | (minimal_language_data): Likewise. | |
561 | * d-lang.c (d_language_data): Likewise. | |
562 | * dwarf2/read.c (guess_partial_die_structure_name): Update to call | |
563 | method on language_defn class. | |
564 | (guess_full_die_structure_name): Likewise. | |
565 | * f-lang.c (f_language_data): Delete la_class_name_from_physname | |
566 | initializer. | |
567 | * go-lang.c (go_language_data): Likewise. | |
568 | * language.c (language_class_name_from_physname): Delete. | |
569 | (unk_lang_class_name): Delete. | |
570 | (unknown_language_data): Delete la_class_name_from_physname | |
571 | initializer. | |
572 | (auto_language_data): Likewise. | |
573 | * language.h (language_data): Delete la_class_name_from_physname | |
574 | field. | |
575 | (language_defn::class_name_from_physname): New function. | |
576 | (language_class_name_from_physname): Delete declaration. | |
577 | * m2-lang.c (m2_language_data): Delete la_class_name_from_physname | |
578 | initializer. | |
579 | * objc-lang.c (objc_language_data): Likewise. | |
580 | * opencl-lang.c (opencl_language_data): Likewise. | |
581 | * p-lang.c (pascal_language_data): Likewise. | |
582 | * rust-lang.c (rust_language_data): Likewise. | |
583 | ||
de543742 TT |
584 | 2020-06-16 Tom Tromey <tom@tromey.com> |
585 | ||
586 | * tui/tui-data.h (STATUS_NAME): New macro. | |
587 | * tui/tui-layout.c (tui_remove_some_windows) | |
588 | (initialize_known_windows, tui_register_window) | |
589 | (tui_layout_split::remove_windows, initialize_layouts) | |
590 | (tui_new_layout_command): Don't use hard-coded window names. | |
591 | ||
a350efd4 TT |
592 | 2020-06-16 Tom Tromey <tom@tromey.com> |
593 | ||
594 | PR tui/25348: | |
595 | * tui/tui.c (tui_ensure_readline_initialized): Rename from | |
596 | tui_initialize_readline. Only run once. Call rl_initialize. | |
597 | * tui/tui.h (tui_ensure_readline_initialized): Rename from | |
598 | tui_initialize_readline. | |
599 | * tui/tui-io.c (tui_setup_io): Call | |
600 | tui_ensure_readline_initialized. | |
601 | * tui/tui-interp.c (tui_interp::init): Update. | |
602 | ||
39ec0490 TT |
603 | 2020-06-16 Tom Tromey <tom@tromey.com> |
604 | ||
605 | * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic. | |
606 | Also preserve the status window. | |
607 | ||
d2d1ea20 TT |
608 | 2020-06-16 Tom Tromey <tom@tromey.com> |
609 | ||
610 | * python/py-tui.c (tui_py_window::~tui_py_window): Handle case | |
611 | where m_window==nullptr. | |
612 | ||
66920317 TT |
613 | 2020-06-15 Tom Tromey <tromey@adacore.com> |
614 | ||
615 | * windows-nat.c (windows_nat::handle_output_debug_string): | |
616 | Update. | |
617 | (windows_nat::handle_ms_vc_exception): Update. | |
618 | * target.h (target_read_string): Change API. | |
619 | * target.c (target_read_string): Change API. | |
620 | * solib-svr4.c (open_symbol_file_object, svr4_read_so_list): | |
621 | Update. | |
622 | * solib-frv.c (frv_current_sos): Update. | |
623 | * solib-dsbt.c (dsbt_current_sos): Update. | |
624 | * solib-darwin.c (darwin_current_sos): Update. | |
625 | * linux-thread-db.c (inferior_has_bug): Update. | |
626 | * expprint.c (print_subexp_standard): Update. | |
627 | * ada-lang.c (ada_main_name, ada_tag_name_from_tsd) | |
628 | (ada_exception_message_1): Update. | |
629 | ||
a5d871dd TT |
630 | 2020-06-15 Tom Tromey <tromey@adacore.com> |
631 | ||
632 | * linux-tdep.c (dump_mapping_p): Use target_read_memory. | |
633 | ||
670e35fa TT |
634 | 2020-06-15 Tom Tromey <tromey@adacore.com> |
635 | ||
636 | * valprint.c (read_string): Update comment. | |
637 | * target.c (MIN): Remove. | |
638 | (target_read_string): Rewrite. | |
639 | ||
f5272a3b TT |
640 | 2020-06-15 Tom Tromey <tromey@adacore.com> |
641 | ||
642 | * corefile.c (read_memory_string): Remove. | |
643 | * ada-valprint.c (ada_value_print_ptr): Update. | |
644 | * ada-lang.h (ada_tag_name): Change return type. | |
645 | * ada-lang.c (type_from_tag): Update. | |
646 | (ada_tag_name_from_tsd): Change return type. Use | |
647 | target_read_string. | |
648 | (ada_tag_name): Likewise. | |
649 | * gdbcore.h (read_memory_string): Don't declare. | |
650 | ||
2c074f49 HD |
651 | 2020-06-14 Hannes Domani <ssbssa@yahoo.de> |
652 | ||
653 | * symtab.c (rbreak_command): Ignore Windows drive colon. | |
654 | ||
6a17d503 SM |
655 | 2020-06-12 Simon Marchi <simon.marchi@efficios.com> |
656 | ||
657 | * NEWS: Mention removed GDBserver host support. | |
658 | ||
453c733f NC |
659 | 2020-06-12 Nelson Chu <nelson.chu@sifive.com> |
660 | ||
661 | * features/riscv/rebuild-csr-xml.sh: Updated. | |
662 | ||
2b4e6a3f TT |
663 | 2020-06-11 Tom Tromey <tom@tromey.com> |
664 | ||
665 | PR gdb/18318: | |
666 | * c-exp.y (lex_one_token): Handle 'p' like 'e'. | |
667 | ||
4412332f JG |
668 | 2020-06-09 Jonny Grant <jg@jguk.org> |
669 | 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca> | |
670 | ||
671 | * main.c (captured_main_1): Don't print new line after help. | |
672 | (print_gdb_help): add mailing list and IRC channel information | |
673 | to --help. Add new lines between items in the footer. Remove | |
674 | quotes around bug url. | |
675 | ||
2f33032a KS |
676 | 2020-06-11 Keith Seitz <keiths@redhat.com> |
677 | ||
678 | PR gdb/21356 | |
679 | * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct): | |
680 | Resolve typedefs for type length calculations. | |
681 | ||
7ab96794 TV |
682 | 2020-06-10 Tom de Vries <tdevries@suse.de> |
683 | ||
684 | PR ada/24713 | |
685 | * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack. | |
686 | (write_psymbols): Enable .gdb_index for ada. | |
687 | * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for | |
688 | ada. | |
689 | ||
e5f3ece2 TV |
690 | 2020-06-10 Tom de Vries <tdevries@suse.de> |
691 | ||
692 | * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ... | |
693 | (dw2_symtab_iter_init): ... here. Add variant with "offset_type | |
694 | namei" instead of "const char *name" argument. | |
695 | (dw2_map_matching_symbols): Use "offset_type namei" variant of | |
696 | dw2_symtab_iter_init. | |
697 | ||
940da03e SM |
698 | 2020-06-08 Simon Marchi <simon.marchi@efficios.com> |
699 | ||
700 | * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites | |
701 | to use type::field and field::type instead. | |
702 | ||
b6cdac4b SM |
703 | 2020-06-08 Simon Marchi <simon.marchi@efficios.com> |
704 | ||
705 | * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites | |
706 | to use field::type instead. | |
707 | ||
5d14b6e5 SM |
708 | 2020-06-08 Simon Marchi <simon.marchi@efficios.com> |
709 | ||
710 | * gdbtypes.h (struct field) <type, set_type>: New methods. | |
711 | Rename `type` field to... | |
712 | <m_type>: ... this. Change references throughout to use type or | |
713 | set_type methods. | |
714 | (FIELD_TYPE): Use field::type. Change call sites that modify | |
715 | the field's type to use field::set_type instead. | |
716 | ||
3d967001 SM |
717 | 2020-06-08 Simon Marchi <simon.marchi@efficios.com> |
718 | ||
719 | * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites | |
720 | to use type::index_type instead. | |
721 | ||
262abc0d SM |
722 | 2020-06-08 Simon Marchi <simon.marchi@efficios.com> |
723 | ||
724 | * gdbtypes.h (struct type) <index_type, set_index_type>: New | |
725 | methods. | |
726 | (TYPE_INDEX_TYPE): Use type::index_type. | |
727 | * gdbtypes.c (create_array_type_with_stride): Likewise. | |
728 | ||
82836c92 TT |
729 | 2020-06-07 Tom Tromey <tom@tromey.com> |
730 | ||
731 | * valprint.c (generic_val_print_float): Remove "embedded_offset" | |
732 | parameter. | |
733 | (generic_value_print): Update. | |
734 | ||
940dace9 AB |
735 | 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com> |
736 | ||
737 | Revert commit 982a38f60b0. | |
738 | * python/py-tui.c (gdbpy_tui_set_title): Restore use of get. | |
739 | ||
982a38f6 AB |
740 | 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com> |
741 | ||
742 | * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to | |
743 | avoid use after free. | |
744 | ||
82f06518 TV |
745 | 2020-06-05 Tom de Vries <tdevries@suse.de> |
746 | ||
747 | * NEWS: Fix typos. | |
748 | ||
f8c41851 SM |
749 | 2020-06-04 Simon Marchi <simon.marchi@efficios.com> |
750 | ||
751 | * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in | |
752 | the per_bfd object. | |
753 | (dwarf2_read_debug_names): Likewise. | |
754 | (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd | |
755 | object when re-using a per_bfd object with an index. | |
756 | ||
f9b5d5ea TV |
757 | 2020-06-03 Tom de Vries <tdevries@suse.de> |
758 | ||
759 | PR symtab/26046 | |
760 | * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram | |
761 | children for C++. | |
762 | (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of | |
763 | DW_TAG_subprogram. | |
764 | ||
f6eee2d0 AB |
765 | 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com> |
766 | ||
767 | * ada-lang.c (ada_language_data): Delete skip_trampoline | |
768 | initializer. | |
769 | * c-lang.c (c_language_data): Likewise. | |
770 | (cplus_language_data): Likewise. | |
771 | (cplus_language::skip_trampoline): New member function. | |
772 | (asm_language_data): Delete skip_trampoline initializer. | |
773 | (minimal_language_data): Likewise. | |
774 | * d-lang.c (d_language_data): Likewise. | |
775 | * f-lang.c (f_language_data): Likewise. | |
776 | * go-lang.c (go_language_data): Likewise. | |
777 | * language.c (unk_lang_trampoline): Delete function. | |
778 | (skip_language_trampoline): Update. | |
779 | (unknown_language_data): Delete skip_trampoline initializer. | |
780 | (auto_language_data): Likewise. | |
781 | * language.h (language_data): Delete skip_trampoline field. | |
782 | (language_defn::skip_trampoline): New function. | |
783 | * m2-lang.c (m2_language_data): Delete skip_trampoline | |
784 | initializer. | |
785 | * objc-lang.c (objc_skip_trampoline): Delete function, move | |
786 | implementation to objc_language::skip_trampoline. | |
787 | (objc_language_data): Delete skip_trampoline initializer. | |
788 | (objc_language::skip_trampoline): New member function with | |
789 | implementation from objc_skip_trampoline. | |
790 | * opencl-lang.c (opencl_language_data): Delete skip_trampoline | |
791 | initializer. | |
792 | * p-lang.c (pascal_language_data): Likewise. | |
793 | * rust-lang.c (rust_language_data): Likewise. | |
794 | ||
0a50df5d AB |
795 | 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com> |
796 | ||
797 | * ada-lang.c (ada_language_data): Delete la_demangle initializer. | |
798 | (ada_language::demangle): New member function. | |
799 | * c-lang.c (c_language_data): Delete la_demangle initializer. | |
800 | (cplus_language_data): Delete la_demangle initializer. | |
801 | (cplus_language::demangle): New member function. | |
802 | (asm_language_data): Delete la_demangle initializer. | |
803 | (minimal_language_data): Delete la_demangle initializer. | |
804 | * d-lang.c (d_language_data): Delete la_demangle initializer. | |
805 | (d_language::demangle): New member function. | |
806 | * f-lang.c (f_language_data): Delete la_demangle initializer. | |
807 | (f_language::demangle): New member function. | |
808 | * go-lang.c (go_language_data): Delete la_demangle initializer. | |
809 | (go_language::demangle): New member function. | |
810 | * language.c (language_demangle): Update. | |
811 | (unk_lang_demangle): Delete. | |
812 | (unknown_language_data): Delete la_demangle initializer. | |
813 | (unknown_language::demangle): New member function. | |
814 | (auto_language_data): Delete la_demangle initializer. | |
815 | (auto_language::demangle): New member function. | |
816 | * language.h (language_data): Delete la_demangle field. | |
817 | (language_defn::demangle): New function. | |
818 | * m2-lang.c (m2_language_data): Delete la_demangle initializer. | |
819 | * objc-lang.c (objc_language_data): Delete la_demangle | |
820 | initializer. | |
821 | (objc_language::demangle): New member function. | |
822 | * opencl-lang.c (opencl_language_data): Delete la_demangle | |
823 | initializer. | |
824 | * p-lang.c (pascal_language_data): Likewise. | |
825 | * rust-lang.c (rust_language_data): Likewise. | |
826 | (rust_language::demangle): New member function. | |
827 | ||
fbfb0a46 AB |
828 | 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com> |
829 | ||
830 | * ada-lang.c (ada_language_data): Delete la_print_type | |
831 | initializer. | |
832 | (ada_language::print_type): New member function. | |
833 | * c-lang.c (c_language_data): Delete la_print_type initializer. | |
834 | (c_language::print_type): New member function. | |
835 | (cplus_language_data): Delete la_print_type initializer. | |
836 | (cplus_language::print_type): New member function. | |
837 | (asm_language_data): Delete la_print_type initializer. | |
838 | (asm_language::print_type): New member function. | |
839 | (minimal_language_data): Delete la_print_type initializer. | |
840 | (minimal_language::print_type): New member function. | |
841 | * d-lang.c (d_language_data): Delete la_print_type initializer. | |
842 | (d_language::print_type): New member function. | |
843 | * f-lang.c (f_language_data): Delete la_print_type initializer. | |
844 | (f_language::print_type): New member function. | |
845 | * go-lang.c (go_language_data): Delete la_print_type initializer. | |
846 | (go_language::print_type): New member function. | |
847 | * language.c (unk_lang_print_type): Delete. | |
848 | (unknown_language_data): Delete la_print_type initializer. | |
849 | (unknown_language::print_type): New member function. | |
850 | (auto_language_data): Delete la_print_type initializer. | |
851 | (auto_language::print_type): New member function. | |
852 | * language.h (language_data): Delete la_print_type field. | |
853 | (language_defn::print_type): New function. | |
854 | (LA_PRINT_TYPE): Update. | |
855 | * m2-lang.c (m2_language_data): Delete la_print_type initializer. | |
856 | (m2_language::print_type): New member function. | |
857 | * objc-lang.c (objc_language_data): Delete la_print_type | |
858 | initializer. | |
859 | (objc_language::print_type): New member function. | |
860 | * opencl-lang.c (opencl_print_type): Delete, implementation moved | |
861 | to opencl_language::print_type. | |
862 | (opencl_language_data): Delete la_print_type initializer. | |
863 | (opencl_language::print_type): New member function, implementation | |
864 | from opencl_print_type. | |
865 | * p-lang.c (pascal_language_data): Delete la_print_type | |
866 | initializer. | |
867 | (pascal_language::print_type): New member function. | |
868 | * rust-lang.c (rust_print_type): Delete, implementation moved to | |
869 | rust_language::print_type. | |
870 | (rust_language_data): Delete la_print_type initializer. | |
871 | (rust_language::print_type): New member function, implementation | |
872 | from rust_print_type. | |
873 | ||
6f827019 AB |
874 | 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com> |
875 | ||
876 | * ada-lang.c (ada_sniff_from_mangled_name): Delete function, | |
877 | implementation moves to... | |
878 | (ada_language::sniff_from_mangled_name): ...here. Update return | |
879 | type. | |
880 | (ada_language_data): Delete la_sniff_from_mangled_name | |
881 | initializer. | |
882 | * c-lang.c (c_language_data): Likewise. | |
883 | (cplus_language_data): Likewise. | |
884 | (cplus_language::sniff_from_mangled_name): New member function, | |
885 | implementation taken from gdb_sniff_from_mangled_name. | |
886 | (asm_language_data): Delete la_sniff_from_mangled_name | |
887 | initializer. | |
888 | (minimal_language_data): Likewise. | |
889 | * cp-support.c (gdb_sniff_from_mangled_name): Delete, | |
890 | implementation moves to cplus_language::sniff_from_mangled_name. | |
891 | * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration. | |
892 | * d-lang.c (d_sniff_from_mangled_name): Delete, implementation | |
893 | moves to... | |
894 | (d_language::sniff_from_mangled_name): ...here. | |
895 | (d_language_data): Delete la_sniff_from_mangled_name initializer. | |
896 | * f-lang.c (f_language_data): Likewise. | |
897 | * go-lang.c (go_sniff_from_mangled_name): Delete, implementation | |
898 | moves to... | |
899 | (go_language::sniff_from_mangled_name): ...here. | |
900 | (go_language_data): Delete la_sniff_from_mangled_name initializer. | |
901 | * language.c (language_sniff_from_mangled_name): Delete. | |
902 | (unknown_language_data): Delete la_sniff_from_mangled_name | |
903 | initializer. | |
904 | (auto_language_data): Likewise. | |
905 | * language.h (language_data): Delete la_sniff_from_mangled_name | |
906 | field. | |
907 | (language_defn::sniff_from_mangled_name): New function. | |
908 | (language_sniff_from_mangled_name): Delete declaration. | |
909 | * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name | |
910 | field. | |
911 | * objc-lang.c (objc_sniff_from_mangled_name): Delete, | |
912 | implementation moves to... | |
913 | (objc_language::sniff_from_mangled_name): ...here. | |
914 | (objc_language_data): Delete la_sniff_from_mangled_name initializer. | |
915 | * opencl-lang.c (opencl_language_data): Likewise. | |
916 | * p-lang.c (pascal_language_data): Likewise. | |
917 | * rust-lang.c (rust_sniff_from_mangled_name): Delete, | |
918 | implementation moves to... | |
919 | (rust_language::sniff_from_mangled_name): ...here. | |
920 | (rust_language_data): Delete la_sniff_from_mangled_name | |
921 | initializer. | |
922 | * symtab.c (symbol_find_demangled_name): Call | |
923 | sniff_from_mangled_name member function. | |
924 | ||
fb8006fd AB |
925 | 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com> |
926 | ||
927 | * ada-lang.c (ada_language_data): Delete la_search_name_hash | |
928 | initializer. | |
929 | * c-lang.c (c_language_data): Likewise. | |
930 | (cplus_language_data): Likewise. | |
931 | (cplus_language::search_name_hash): New member function. | |
932 | (asm_language_data): Delete la_search_name_hash initializer. | |
933 | (minimal_language_data): Likewise. | |
934 | * d-lang.c (d_language_data): Likewise. | |
935 | * dictionary.c (default_search_name_hash): Rename to... | |
936 | (language_defn::search_name_hash): ...this. | |
937 | * f-lang.c (f_language_data): Likewise. | |
938 | (f_language::search_name_hash): New member function. | |
939 | * go-lang.c (go_language_data): Delete la_search_name_hash | |
940 | initializer. | |
941 | * language.c (unknown_language_data): Likewise. | |
942 | (auto_language_data): Likewise. | |
943 | * language.h (struct language_data): Delete la_search_name_hash | |
944 | field. | |
945 | (language_defn::search_name_hash): Declare new member function. | |
946 | (default_search_name_hash): Delete declaration. | |
947 | * m2-lang.c (m2_language_data): Delete la_search_name_hash | |
948 | initializer. | |
949 | * objc-lang.c (objc_language_data): Likewise. | |
950 | * opencl-lang.c (opencl_language_data): Likewise. | |
951 | * p-lang.c (pascal_language_data): Likewise. | |
952 | * rust-lang.c (rust_language_data): Likewise. | |
953 | * symtab.c (search_name_hash): Update call. | |
954 | ||
8e25bafe AB |
955 | 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com> |
956 | ||
957 | * ada-lang.c (ada_language_data): Delete la_get_compile_instance | |
958 | initializer. | |
959 | * c-lang.c (class compile_instance): Declare. | |
960 | (c_language_data): Delete la_get_compile_instance initializer. | |
961 | (c_language::get_compile_instance): New member function. | |
962 | (cplus_language_data): Delete la_get_compile_instance initializer. | |
963 | (cplus_language::get_compile_instance): New member function. | |
964 | (asm_language_data): Delete la_get_compile_instance initializer. | |
965 | (minimal_language_data): Likewise. | |
966 | * c-lang.h (c_get_compile_context): Update comment. | |
967 | (cplus_get_compile_context): Update comment. | |
968 | * compile/compile.c (compile_to_object): Update calls, don't rely | |
969 | on function pointer being NULL. | |
970 | * d-lang.c (d_language_data): Delete la_get_compile_instance | |
971 | initializer. | |
972 | * f-lang.c (f_language_data): Likewise. | |
973 | * go-lang.c (go_language_data): Likewise. | |
974 | * language.c (unknown_language_data): Likewise. | |
975 | (auto_language_data): Likewise. | |
976 | * language.h (language_data): Delete la_get_compile_instance field. | |
977 | (language_defn::get_compile_instance): New member function. | |
978 | * m2-lang.c (m2_language_data): Delete la_get_compile_instance | |
979 | initializer. | |
980 | * objc-lang.c (objc_language_data): Likewise. | |
981 | * opencl-lang.c (opencl_language_data): Likewise. | |
982 | * p-lang.c (pascal_language_data): Likewise. | |
983 | * rust-lang.c (rust_language_data): Likewise. | |
984 | ||
4009ee92 AB |
985 | 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com> |
986 | ||
987 | * ada-lang.c (ada_add_all_symbols): Update comment. | |
988 | (ada_iterate_over_symbols): Delete, move implementation to... | |
989 | (ada_language::iterate_over_symbols): ...here, a new member | |
990 | function, rewrite to use range based for loop. | |
991 | (ada_language_data): Delete la_iterate_over_symbols initializer. | |
992 | * c-lang.c (c_language_data): Likewise. | |
993 | (cplus_language_data): Likewise. | |
994 | (asm_language_data): Likewise. | |
995 | (minimal_language_data): Likewise. | |
996 | * d-lang.c (d_language_data): Likewise. | |
997 | * f-lang.c (f_language_data): Likewise. | |
998 | * go-lang.c (go_language_data): Likewise. | |
999 | * language.c (unknown_language_data): Likewise. | |
1000 | (auto_language_data): Likewise. | |
1001 | * language.h (language_data): Delete la_iterate_over_symbols field. | |
1002 | (language_defn::iterate_over_symbols): New member function. | |
1003 | (LA_ITERATE_OVER_SYMBOLS): Update. | |
1004 | * linespec.c (iterate_over_all_matching_symtabs): Update. | |
1005 | * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols | |
1006 | initializer. | |
1007 | * objc-lang.c (objc_language_data): Likewise. | |
1008 | * opencl-lang.c (opencl_language_data): Likewise. | |
1009 | * p-lang.c (pascal_language_data): Likewise. | |
1010 | * rust-lang.c (rust_language_data): Likewise. | |
1011 | ||
54f4ca46 AB |
1012 | 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com> |
1013 | ||
1014 | * ada-lang.c (ada_language_data): Delete | |
1015 | la_lookup_transparent_type initializer. | |
1016 | * c-lang.c (c_language_data): Likewise. | |
1017 | (cplus_language_data): Likewise. | |
1018 | (cplus_language::lookup_transparent_type): New member function. | |
1019 | (asm_language_data): Delete la_lookup_transparent_type | |
1020 | initializer. | |
1021 | (minimal_language_data): Likewise. | |
1022 | * d-lang.c (d_language_data): Likewise. | |
1023 | * f-lang.c (f_language_data): Likewise. | |
1024 | * go-lang.c (go_language_data): Likewise. | |
1025 | * language.c (unknown_language_data): Likewise. | |
1026 | (auto_language_data): Likewise. | |
1027 | * language.h (struct language_data): Delete | |
1028 | la_lookup_transparent_type field. | |
1029 | (language_defn::lookup_transparent_type): New member function. | |
1030 | * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type | |
1031 | initializer. | |
1032 | * objc-lang.c (objc_language_data): Likewise. | |
1033 | * opencl-lang.c (opencl_language_data): Likewise. | |
1034 | * p-lang.c (pascal_language_data): Likewise. | |
1035 | * rust-lang.c (rust_language_data): Likewise. | |
1036 | * symtab.c (symbol_matches_domain): Update call. | |
1037 | ||
1fb314aa AB |
1038 | 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com> |
1039 | ||
1040 | * ada-lang.c (ada_language_arch_info): Delete function, move | |
1041 | implementation to... | |
1042 | (ada_language::language_arch_info): ...here, a new member | |
1043 | function. | |
1044 | (ada_language_data): Delete la_language_arch_info. | |
1045 | * c-lang.c (c_language_data): Likewise. | |
1046 | (c_language::language_arch_info): New member function. | |
1047 | (cplus_language_arch_info): Delete function, move | |
1048 | implementation to... | |
1049 | (cplus_language::language_arch_info): ...here, a new member | |
1050 | function. | |
1051 | (cplus_language_data): Delete la_language_arch_info. | |
1052 | (asm_language_data): Likewise. | |
1053 | (asm_language::language_arch_info): New member function. | |
1054 | (minimal_language_data): Delete la_language_arch_info. | |
1055 | (minimal_language::language_arch_info): New member function. | |
1056 | * d-lang.c (d_language_arch_info): Delete function, move | |
1057 | implementation to... | |
1058 | (d_language::language_arch_info): ...here, a new member | |
1059 | function. | |
1060 | (d_language_data): Delete la_language_arch_info. | |
1061 | * f-lang.c (f_language_arch_info): Delete function, move | |
1062 | implementation to... | |
1063 | (f_language::language_arch_info): ...here, a new member | |
1064 | function. | |
1065 | (f_language_data): Delete la_language_arch_info. | |
1066 | * go-lang.c (go_language_arch_info): Delete function, move | |
1067 | implementation to... | |
1068 | (go_language::language_arch_info): ...here, a new member | |
1069 | function. | |
1070 | (go_language_data): Delete la_language_arch_info. | |
1071 | * language.c (unknown_language_data): Likewise. | |
1072 | (unknown_language::language_arch_info): New member function. | |
1073 | (auto_language_data): Delete la_language_arch_info. | |
1074 | (auto_language::language_arch_info): New member function. | |
1075 | (language_gdbarch_post_init): Update call to | |
1076 | la_language_arch_info. | |
1077 | * language.h (language_data): Delete la_language_arch_info | |
1078 | function pointer. | |
1079 | (language_defn::language_arch_info): New function. | |
1080 | * m2-lang.c (m2_language_arch_info): Delete function, move | |
1081 | implementation to... | |
1082 | (m2_language::language_arch_info): ...here, a new member | |
1083 | function. | |
1084 | (m2_language_data): Delete la_language_arch_info. | |
1085 | * objc-lang.c (objc_language_arch_info): Delete function, move | |
1086 | implementation to... | |
1087 | (objc_language::language_arch_info): ...here, a new member | |
1088 | function. | |
1089 | (objc_language_data): Delete la_language_arch_info. | |
1090 | * opencl-lang.c (opencl_language_arch_info): Delete function, move | |
1091 | implementation to... | |
1092 | (opencl_language::language_arch_info): ...here, a new member | |
1093 | function. | |
1094 | (opencl_language_data): Delete la_language_arch_info. | |
1095 | * p-lang.c (pascal_language_arch_info): Delete function, move | |
1096 | implementation to... | |
1097 | (pascal_language::language_arch_info): ...here, a new member | |
1098 | function. | |
1099 | (pascal_language_data): Delete la_language_arch_info. | |
1100 | * rust-lang.c (rust_language_arch_info): Delete function, move | |
1101 | implementation to... | |
1102 | (rust_language::language_arch_info): ...here, a new member | |
1103 | function. | |
1104 | (rust_language_data): Delete la_language_arch_info. | |
1105 | ||
48448202 AB |
1106 | 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com> |
1107 | ||
1108 | * ada-lang.c (ada_language_data): Delete la_pass_by_reference | |
1109 | initializer. | |
1110 | * c-lang.c (c_language_data): Likewise. | |
1111 | (cplus_language_data): Likewise. | |
1112 | (cplus_language::pass_by_reference_info): New method. | |
1113 | (asm_language_data): Delete la_pass_by_reference initializer. | |
1114 | (minimal_language_data): Likewise. | |
1115 | * cp-abi.c (cp_pass_by_reference): Remove use of | |
1116 | default_pass_by_reference. | |
1117 | * d-lang.c (d_language_data): Likewise. | |
1118 | * f-lang.c (f_language_data): Likewise. | |
1119 | * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of | |
1120 | default_pass_by_reference. | |
1121 | * go-lang.c (go_language_data): Likewise. | |
1122 | * language.c (language_pass_by_reference): Update. | |
1123 | (default_pass_by_reference): Delete. | |
1124 | (unknown_language_data): Delete la_pass_by_reference | |
1125 | initializer. | |
1126 | (auto_language_data): Likewise. | |
1127 | * language.h (struct language_data): Delete la_pass_by_reference | |
1128 | field. | |
1129 | (language_defn::pass_by_reference_info): New member function. | |
1130 | (default_pass_by_reference): Delete declaration. | |
1131 | * m2-lang.c (m2_language_data): Delete la_pass_by_reference | |
1132 | initializer. | |
1133 | * objc-lang.c (objc_language_data): Likewise. | |
1134 | * opencl-lang.c (opencl_language_data): Likewise. | |
1135 | * p-lang.c (pascal_language_data): Likewise. | |
1136 | * rust-lang.c (rust_language_data): Likewise. | |
1137 | ||
15e5fd35 AB |
1138 | 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com> |
1139 | ||
1140 | * ada-lang.c (ada_read_var_value): Delete function, move | |
1141 | implementation to... | |
1142 | (ada_language::read_var_value): ...here. | |
1143 | (ada_language_data): Delete la_read_var_value initializer. | |
1144 | * c-lang.c (c_language_data): Likewise. | |
1145 | (cplus_language_data): Likewise. | |
1146 | (minimal_language_data): Likewise. | |
1147 | * d-lang.c (d_language_data): Likewise. | |
1148 | * f-lang.c (f_language_data): Likewise. | |
1149 | * findvar.c (default_read_var_value): Rename to... | |
1150 | (language_defn::read_var_value): ...this. | |
1151 | * findvar.c (read_var_value): Update header comment, and change to | |
1152 | call member function instead of function pointer. | |
1153 | * go-lang.c (go_language_data): Likewise. | |
1154 | * language.c (unknown_language_data): Delete la_read_var_value | |
1155 | initializer. | |
1156 | (auto_language_data): Likewise. | |
1157 | * language.h (struct language_data): Delete la_read_var_value | |
1158 | field. | |
1159 | (language_defn::read_var_value): New member function. | |
1160 | (default_read_var_value): Delete declaration. | |
1161 | * m2-lang.c (m2_language_data): Delete la_read_var_value | |
1162 | initializer. | |
1163 | * objc-lang.c (objc_language_data): Likewise. | |
1164 | * opencl-lang.c (opencl_language_data): Likewise. | |
1165 | * p-lang.c (pascal_language_data): Likewise. | |
1166 | * rust-lang.c (rust_language_data): Likewise. | |
1167 | * value.h (default_read_var_value): Delete declaration. | |
1168 | ||
5bd40f2a AB |
1169 | 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com> |
1170 | ||
1171 | * ada-lang.c (ada_print_array_index): Delete function, move | |
1172 | implementation to... | |
1173 | (ada_language::print_array_index): ...here. | |
1174 | (ada_language_data): Delete la_print_array_index initializer. | |
1175 | * c-lang.c (c_language_data): Likewise. | |
1176 | (cplus_language_data): Likewise. | |
1177 | (minimal_language_data): Likewise. | |
1178 | * d-lang.c (d_language_data): Likewise. | |
1179 | * f-lang.c (f_language_data): Likewise. | |
1180 | * go-lang.c (go_language_data): Likewise. | |
1181 | * language.c (default_print_array_index): Delete function, move | |
1182 | implementation to... | |
1183 | (language_defn::print_array_index): ...here. | |
1184 | (unknown_language_data): Delete la_print_array_index initializer. | |
1185 | (auto_language_data): Likewise. | |
1186 | * language.h (struct language_data): Delete la_print_array_index | |
1187 | field. | |
1188 | (language_defn::print_array_index): New member function. | |
1189 | (LA_PRINT_ARRAY_INDEX): Update. | |
1190 | (default_print_array_index): Delete declaration. | |
1191 | * m2-lang.c (m2_language_data): Delete la_print_array_index | |
1192 | initializer. | |
1193 | * objc-lang.c (objc_language_data): Likewise. | |
1194 | * opencl-lang.c (opencl_language_data): Likewise. | |
1195 | * p-lang.c (pascal_language_data): Likewise. | |
1196 | * rust-lang.c (rust_language_data): Likewise. | |
1197 | ||
0874fd07 AB |
1198 | 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com> |
1199 | ||
1200 | * gdb/ada-lang.c (ada_language_defn): Convert to... | |
1201 | (ada_language_data): ...this. | |
1202 | (class ada_language): New class. | |
1203 | (ada_language_defn): New static global. | |
1204 | * gdb/c-lang.c (c_language_defn): Convert to... | |
1205 | (c_language_data): ...this. | |
1206 | (class c_language): New class. | |
1207 | (c_language_defn): New static global. | |
1208 | (cplus_language_defn): Convert to... | |
1209 | (cplus_language_data): ...this. | |
1210 | (class cplus_language): New class. | |
1211 | (cplus_language_defn): New static global. | |
1212 | (asm_language_defn): Convert to... | |
1213 | (asm_language_data): ...this. | |
1214 | (class asm_language): New class. | |
1215 | (asm_language_defn): New static global. | |
1216 | (minimal_language_defn): Convert to... | |
1217 | (minimal_language_data): ...this. | |
1218 | (class minimal_language): New class. | |
1219 | (minimal_language_defn): New static global. | |
1220 | * gdb/d-lang.c (d_language_defn): Convert to... | |
1221 | (d_language_data): ...this. | |
1222 | (class d_language): New class. | |
1223 | (d_language_defn): New static global. | |
1224 | * gdb/f-lang.c (f_language_defn): Convert to... | |
1225 | (f_language_data): ...this. | |
1226 | (class f_language): New class. | |
1227 | (f_language_defn): New static global. | |
1228 | * gdb/go-lang.c (go_language_defn): Convert to... | |
1229 | (go_language_data): ...this. | |
1230 | (class go_language): New class. | |
1231 | (go_language_defn): New static global. | |
1232 | * gdb/language.c (unknown_language_defn): Remove declaration. | |
1233 | (current_language): Initialize to nullptr, real initialization is | |
1234 | moved to _initialize_language. | |
1235 | (languages): Delete global. | |
1236 | (language_defn::languages): Define. | |
1237 | (set_language_command): Use language_defn::languages. | |
1238 | (set_language): Likewise. | |
1239 | (range_error): Likewise. | |
1240 | (language_enum): Likewise. | |
1241 | (language_def): Likewise. | |
1242 | (add_set_language_command): Use language_def::languages for the | |
1243 | language list, and language_def to lookup language pointers. | |
1244 | (skip_language_trampoline): Use language_defn::languages. | |
1245 | (unknown_language_defn): Convert to... | |
1246 | (unknown_language_data): ...this. | |
1247 | (class unknown_language): New class. | |
1248 | (unknown_language_defn): New static global. | |
1249 | (auto_language_defn): Convert to... | |
1250 | (auto_language_data): ...this. | |
1251 | (class auto_language): New class. | |
1252 | (auto_language_defn): New static global. | |
1253 | (language_gdbarch_post_init): Use language_defn::languages. | |
1254 | (_initialize_language): Initialize current_language. | |
1255 | * gdb/language.h (struct language_defn): Rename to... | |
1256 | (struct language_data): ...this. | |
1257 | (struct language_defn): New. | |
1258 | (auto_language_defn): Delete. | |
1259 | (unknown_language_defn): Delete. | |
1260 | (minimal_language_defn): Delete. | |
1261 | (ada_language_defn): Delete. | |
1262 | (asm_language_defn): Delete. | |
1263 | (c_language_defn): Delete. | |
1264 | (cplus_language_defn): Delete. | |
1265 | (d_language_defn): Delete. | |
1266 | (f_language_defn): Delete. | |
1267 | (go_language_defn): Delete. | |
1268 | (m2_language_defn): Delete. | |
1269 | (objc_language_defn): Delete. | |
1270 | (opencl_language_defn): Delete. | |
1271 | (pascal_language_defn): Delete. | |
1272 | (rust_language_defn): Delete. | |
1273 | * gdb/m2-lang.c (m2_language_defn): Convert to... | |
1274 | (m2_language_data): ...this. | |
1275 | (class m2_language): New class. | |
1276 | (m2_language_defn): New static global. | |
1277 | * gdb/objc-lang.c (objc_language_defn): Convert to... | |
1278 | (objc_language_data): ...this. | |
1279 | (class objc_language): New class. | |
1280 | (objc_language_defn): New static global. | |
1281 | * gdb/opencl-lang.c (opencl_language_defn): Convert to... | |
1282 | (opencl_language_data): ...this. | |
1283 | (class opencl_language): New class. | |
1284 | (opencl_language_defn): New static global. | |
1285 | * gdb/p-lang.c (pascal_language_defn): Convert to... | |
1286 | (pascal_language_data): ...this. | |
1287 | (class pascal_language): New class. | |
1288 | (pascal_language_defn): New static global. | |
1289 | * gdb/rust-exp.y (rust_lex_tests): Use language_def to find | |
1290 | language pointer, update comment format. | |
1291 | * gdb/rust-lang.c (rust_language_defn): Convert to... | |
1292 | (rust_language_data): ...this. | |
1293 | (class rust_language): New class. | |
1294 | (rust_language_defn): New static global. | |
1295 | ||
1313c56e AB |
1296 | 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com> |
1297 | ||
1298 | * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New | |
1299 | member variable. | |
1300 | <m_stmt_at_address>: New member variable. | |
1301 | (lnp_state_machine::record_line): Don't record some lines, update | |
1302 | tracking of is_stmt at the same address. | |
1303 | (lnp_state_machine::lnp_state_machine): Initialise new member | |
1304 | variables. | |
1305 | ||
b7ed9f3d ST |
1306 | 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org> |
1307 | ||
1308 | * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add | |
1309 | "-include gnu-nat-mig.h". | |
1310 | * gnu-nat-mig.h: New file. | |
1311 | * gnu-nat.c: Include "gnu-nat-mig.h". | |
1312 | (exc_server, msg_reply_server, notify_server, | |
1313 | process_reply_server): Remove declarations. | |
1314 | ||
14a8ad62 ST |
1315 | 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org> |
1316 | ||
1317 | * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced, | |
1318 | steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup, | |
1319 | inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports, | |
1320 | inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports, | |
1321 | inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread, | |
1322 | inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal, | |
1323 | inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc, | |
1324 | proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port, | |
1325 | proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions | |
1326 | to gnu_nat_target class. | |
1327 | * gnu-nat.c: Likewise. | |
1328 | (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd, | |
1329 | set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd, | |
1330 | set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target | |
1331 | object. | |
1332 | (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this' | |
1333 | instead of `gnu_target'. | |
1334 | ||
0af5e106 ST |
1335 | 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org> |
1336 | ||
1337 | * i386-gnu-tdep.c: Include "gdbcore.h" | |
1338 | (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays. | |
1339 | (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL, | |
1340 | I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros | |
1341 | (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p, | |
1342 | i386_gnu_sigcontext_addr): New functions | |
1343 | (i386gnu_init_abi): Register i386_gnu_sigtramp_p, | |
1344 | i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch | |
1345 | tdep. | |
1346 | ||
078f2fc9 ST |
1347 | 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org> |
1348 | ||
1349 | * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call | |
1350 | before fork_inferior call. Avoid calling it if target_is_pushed returns | |
1351 | true. | |
1352 | ||
53dff92c ST |
1353 | 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org> |
1354 | ||
1355 | * gnu-nat.h (gnu_target): New variable declaration. | |
1356 | * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize | |
1357 | gnu_target. | |
1358 | * gnu-nat.c (gnu_target): New variable. | |
1359 | (inf_validate_procs): Pass gnu_target to thread_change_ptid, | |
1360 | add_thread_silent, and add_thread calls. | |
1361 | (gnu_nat_target::create_inferior): Pass gnu_target to | |
1362 | add_thread_silent, thread_change_ptid call. | |
1363 | (gnu_nat_target::detach): Pass gnu_target to detach_inferior | |
1364 | call. | |
1365 | ||
5a8b8627 ST |
1366 | 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org> |
1367 | ||
1368 | * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable. | |
1369 | (gnu_nat_target::find_memory_regions): Remove unused | |
1370 | `old_address' variable. | |
1371 | ||
366f550a ST |
1372 | 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org> |
1373 | ||
1374 | * gnu-nat.c: Include "gdbarch.h". | |
1375 | ||
f14871bf ST |
1376 | 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org> |
1377 | ||
1378 | * reply_mig_hack.awk (Error return): Cast function through | |
1379 | void *, to bypass compiler function call check. | |
1380 | ||
c6887cfb ST |
1381 | 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org> |
1382 | ||
1383 | * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on | |
1384 | $(srcdir)/reply_mig_hack.awk. | |
1385 | ||
6930bffe ST |
1386 | 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org> |
1387 | ||
1388 | * gnu-nat.h (gnu_debug_flag): Set type to bool. | |
1389 | ||
112c22ed JG |
1390 | 2020-05-30 Jonny Grant <jg@jguk.org> |
1391 | ||
1392 | * configure.ac (ACX_BUGURL): change bug URL to https. | |
1393 | ||
f68f85b5 PA |
1394 | 2020-05-30 Pedro Alves <palves@redhat.com> |
1395 | ||
1396 | * cp-support.c (replace_typedefs_template): New. | |
1397 | (replace_typedefs_qualified_name): Handle | |
1398 | DEMANGLE_COMPONENT_TEMPLATE. | |
1399 | ||
976ca316 SM |
1400 | 2020-05-29 Simon Marchi <simon.marchi@efficios.com> |
1401 | ||
1402 | * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c, | |
1403 | dwarf2/index-cache.h, dwarf2/index-write.c, | |
1404 | dwarf2/index-write.h, dwarf2/line-header.c, | |
1405 | dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h, | |
1406 | dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile | |
1407 | variables and fields from `dwarf2_per_objfile` to just | |
1408 | `per_objfile` throughout. | |
1409 | ||
989ade05 SM |
1410 | 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca> |
1411 | ||
1412 | * dwarf2/loc.c (class dwarf_evaluate_loc_desc) | |
1413 | <push_dwarf_reg_entry_value>: Add comment. | |
1414 | ||
c47bae85 KB |
1415 | 2020-05-28 Kevin Buettner <kevinb@redhat.com> |
1416 | Keith Seitz <keiths@redhat.com> | |
1417 | ||
1418 | * python/python.c (do_start_initialization): Call PyEval_SaveThread | |
1419 | instead of PyEval_ReleaseLock. | |
1420 | (class gdbpy_gil): Move to earlier in file. | |
1421 | (finalize_python): Set gdb_python_initialized. | |
1422 | (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early | |
1423 | when not initialized. | |
1424 | ||
44486dcf SM |
1425 | 2020-05-28 Simon Marchi <simon.marchi@efficios.com> |
1426 | ||
1427 | * dwarf2/loc.c (class dwarf_evaluate_loc_desc) | |
1428 | <push_dwarf_reg_entry_value>: Remove assert. Override | |
1429 | per_objfile with caller_per_objfile. | |
1430 | ||
f030440d TV |
1431 | 2020-05-28 Tom de Vries <tdevries@suse.de> |
1432 | ||
1433 | * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit | |
1434 | PR gold/15646 workaround to symbol kind "type". | |
1435 | ||
f0fbb768 TT |
1436 | 2020-05-27 Tom Tromey <tromey@adacore.com> |
1437 | ||
1438 | * dwarf2/read.c (load_partial_dies): Use add_partial_symbol. | |
1439 | ||
af0b2a3e TT |
1440 | 2020-05-27 Tom Tromey <tromey@adacore.com> |
1441 | ||
1442 | * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline. | |
1443 | Use htab_find_with_hash. | |
1444 | <add_abbrev>: Remove "abbrev_number" parameter. | |
1445 | * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove | |
1446 | "abbrev_number" parameter. Use htab_find_slot_with_hash. | |
1447 | (hash_abbrev): Add comment. | |
1448 | (abbrev_table::lookup_abbrev): Move to header file. | |
1449 | (abbrev_table::read): Update. | |
1450 | ||
7d00ffec TT |
1451 | 2020-05-27 Tom Tromey <tromey@adacore.com> |
1452 | ||
1453 | * dwarf2/read.c (struct partial_die_info) <name>: Declare new | |
1454 | method. | |
1455 | <canonical_name>: New member. | |
1456 | <raw_name>: Rename from "name". | |
1457 | (partial_die_info): Initialize canonical_name. | |
1458 | (scan_partial_symbols): Check raw_name. | |
1459 | (partial_die_parent_scope, partial_die_full_name) | |
1460 | (add_partial_symbol, add_partial_subprogram) | |
1461 | (add_partial_enumeration, load_partial_dies): Use "name" method. | |
1462 | (partial_die_info::name): New method. | |
1463 | (partial_die_info::read, guess_partial_die_structure_name) | |
1464 | (partial_die_info::fixup): Update. | |
1465 | ||
697bba18 TT |
1466 | 2020-05-27 Tom Tromey <tromey@adacore.com> |
1467 | ||
1468 | * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline. | |
1469 | <get_ref_die_offset>: Inline. | |
1470 | <get_ref_die_offset_complaint>: New method. | |
1471 | * dwarf2/attribute.c (attribute::form_is_ref): Move to header. | |
1472 | (attribute::get_ref_die_offset_complaint): Rename from | |
1473 | get_ref_die_offset. Just issue complaint. | |
1474 | ||
c17ace43 HD |
1475 | 2020-05-27 Hannes Domani <ssbssa@yahoo.de> |
1476 | ||
1477 | * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars. | |
1478 | ||
96445f0b HD |
1479 | 2020-05-27 Hannes Domani <ssbssa@yahoo.de> |
1480 | ||
1481 | * exec.c (exec_file_attach): Use errno value of first openp failure. | |
1482 | ||
ac637ec3 HD |
1483 | 2020-05-27 Hannes Domani <ssbssa@yahoo.de> |
1484 | ||
1485 | * nat/windows-nat.c (windows_thread_info::~windows_thread_info): | |
1486 | Don't close thread handle. | |
1487 | ||
17ee85fc TT |
1488 | 2020-05-27 Tom Tromey <tom@tromey.com> |
1489 | Simon Marchi <simon.marchi@efficios.com> | |
1490 | ||
1491 | * objfiles.h (struct objfile) <partial_symtabs>: Now a | |
1492 | shared_ptr. | |
1493 | * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New | |
1494 | member. | |
1495 | * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key, | |
1496 | dwarf2_per_bfd_objfile_data_key>: New globals. | |
1497 | (dwarf2_has_info): Use shared dwarf2_per_bfd if possible. | |
1498 | (dwarf2_get_section_info): Use get_dwarf2_per_objfile. | |
1499 | (dwarf2_initialize_objfile): Consider cases where per_bfd can be | |
1500 | shared. | |
1501 | (dwarf2_build_psymtabs): Set objfile::partial_symtabs and | |
1502 | short-circuit when sharing. | |
1503 | (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs. | |
1504 | (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units. | |
1505 | ||
39b16f87 SM |
1506 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
1507 | ||
1508 | * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move | |
1509 | to... | |
1510 | (struct dwarf2_per_objfile) <line_header_hash>: ... here. | |
1511 | * dwarf2/read.c (handle_DW_AT_stmt_list): Update. | |
1512 | ||
fcf23d5b SM |
1513 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
1514 | ||
1515 | * dwarf2/read.c (struct mapped_index_base) <symbol_name_at, | |
1516 | build_name_components, find_name_components_bounds>: | |
1517 | Add per_objfile parameter. | |
1518 | (struct mapped_index) <symbol_name_at>: Likewise. | |
1519 | (struct mapped_debug_names): Remove constructor. | |
1520 | <dwarf2_per_objfile>: Remove field. | |
1521 | <namei_to_name, symbol_name_at>: Add per_objfile parameter. | |
1522 | (mapped_index_base::find_name_components_bounds, | |
1523 | mapped_index_base::build_name_components, | |
1524 | dw2_expand_symtabs_matching_symbol): Likewise. | |
1525 | (class mock_mapped_index) <symbol_name_at>: Likewise. | |
1526 | (check_match): Likewise. | |
1527 | (check_find_bounds_finds): Likewise. | |
1528 | (test_mapped_index_find_name_component_bounds): Update. | |
1529 | (CHECK_MATCH): Update. | |
1530 | (dw2_expand_symtabs_matching): Update. | |
1531 | (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add | |
1532 | per_objfile parameter. | |
1533 | <find_vec_in_debug_names>: Likewise. | |
1534 | <m_per_objfile>: New field. | |
1535 | (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile | |
1536 | parameter. | |
1537 | (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise. | |
1538 | (dw2_debug_names_iterator::next): Update. | |
1539 | (dw2_debug_names_lookup_symbol): Update. | |
1540 | (dw2_debug_names_expand_symtabs_for_function): Update. | |
1541 | (dw2_debug_names_map_matching_symbols): Update. | |
1542 | (dw2_debug_names_expand_symtabs_matching): Update. | |
1543 | (dwarf2_read_debug_names): Update. | |
1544 | ||
7188ed02 SM |
1545 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
1546 | ||
1547 | * dwarf2/read.h (struct dwarf2_cu): Forward-declare. | |
1548 | (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove, | |
1549 | move to dwarf2_per_objfile. | |
1550 | <read_in_chain>: Remove. | |
1551 | (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu, | |
1552 | remove_all_cus, age_comp_units>: New methods. | |
1553 | <m_dwarf2_cus>: New member. | |
1554 | (struct dwarf2_per_cu_data) <cu>: Remove. | |
1555 | * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove. | |
1556 | (age_cached_comp_units, free_one_cached_comp_unit): Remove, | |
1557 | moved to methods of dwarf2_per_objfile. | |
1558 | (dwarf2_clear_marks): Remove. | |
1559 | (dwarf2_queue_item::~dwarf2_queue_item): Update. | |
1560 | (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus. | |
1561 | (dwarf2_per_bfd::free_cached_comp_units): Remove. | |
1562 | (dwarf2_per_objfile::remove_all_cus): New. | |
1563 | (class free_cached_comp_units) <~free_cached_comp_units>: | |
1564 | Update. | |
1565 | (load_cu): Update. | |
1566 | (dw2_do_instantiate_symtab): Adjust. | |
1567 | (fill_in_sig_entry_from_dwo_entry): Adjust. | |
1568 | (cutu_reader::init_tu_and_read_dwo_dies): Update. | |
1569 | (cutu_reader::cutu_reader): Likewise. | |
1570 | (cutu_reader::keep): Use dwarf2_per_objfile::set_cu. | |
1571 | (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu. | |
1572 | (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu | |
1573 | and dwarf2_per_objfile::age_comp_units. | |
1574 | (load_partial_comp_unit): Update. | |
1575 | (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu. | |
1576 | (process_queue): Likewise. | |
1577 | (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu | |
1578 | backlink. | |
1579 | (dwarf2_read_addr_index): Likewise. | |
1580 | (follow_die_offset): Likewise. | |
1581 | (dwarf2_fetch_die_loc_sect_off): Likewise. | |
1582 | (dwarf2_fetch_constant_bytes): Likewise. | |
1583 | (dwarf2_fetch_die_type_sect_off): Likewise. | |
1584 | (follow_die_sig_1): Likewise. | |
1585 | (load_full_type_unit): Likewise. | |
1586 | (read_signatured_type): Likewise. | |
1587 | (dwarf2_cu::dwarf2_cu): Don't set cu field. | |
1588 | (dwarf2_cu::~dwarf2_cu): Remove. | |
1589 | (dwarf2_per_objfile::get_cu): New. | |
1590 | (dwarf2_per_objfile::set_cu): New. | |
1591 | (age_cached_comp_units): Rename to... | |
1592 | (dwarf2_per_objfile::age_comp_units): ... this. Adjust | |
1593 | to std::unordered_map. | |
1594 | (free_one_cached_comp_unit): Rename to... | |
1595 | (dwarf2_per_objfile::remove_cu): ... this. Adjust | |
1596 | to std::unordered_map. | |
1597 | (dwarf2_per_objfile::~dwarf2_per_objfile): New. | |
1598 | (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect | |
1599 | a dwarf2_per_objfile in data. | |
1600 | (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse. | |
1601 | (dwarf2_clear_marks): Remove. | |
1602 | ||
2e671100 SM |
1603 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
1604 | ||
1605 | * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace | |
1606 | `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`. | |
1607 | (init_tu_and_read_dwo_dies): Likewise. | |
1608 | (cutu_reader::init_tu_and_read_dwo_dies): Likewise. | |
1609 | (cutu_reader::cutu_reader): Likewise. | |
1610 | (load_partial_comp_unit): Likewise. | |
1611 | (process_psymtab_comp_unit): Update. | |
1612 | (build_type_psymtabs_1): Update. | |
1613 | (process_skeletonless_type_unit): Update. | |
1614 | (load_full_comp_unit): Update. | |
1615 | (find_partial_die): Update. | |
1616 | (dwarf2_read_addr_index): Update. | |
1617 | (read_signatured_type): Update. | |
1618 | ||
2e6a9f79 SM |
1619 | 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca> |
1620 | ||
1621 | * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header, | |
1622 | m_header_read_in>: New fields. | |
1623 | <get_header>: New method. | |
1624 | * dwarf2/read.c (per_cu_header_read_in): Remove. | |
1625 | (dwarf2_per_cu_data::get_header): New. | |
1626 | (dwarf2_per_cu_data::addr_size): Update. | |
1627 | (dwarf2_per_cu_data::offset_size): Update. | |
1628 | (dwarf2_per_cu_data::ref_addr_size): Update. | |
1629 | ||
1b555f17 SM |
1630 | 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca> |
1631 | ||
1632 | * dwarf2/read.c (load_cu): Return dwarf2_cu. | |
1633 | (dw2_do_instantiate_symtab): Update. | |
1634 | (queue_and_load_all_dwo_tus): Change parameter from | |
1635 | dwarf2_per_cu_data to dwarf2_cu. | |
1636 | (dwarf2_fetch_die_loc_sect_off): Update. | |
1637 | (dwarf2_fetch_constant_bytes): Update. | |
1638 | (dwarf2_fetch_die_type_sect_off): Update. | |
1639 | ||
8fc0b21d SM |
1640 | 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca> |
1641 | ||
1642 | * dwarf2/read.c (process_full_comp_unit, | |
1643 | process_full_type_unit): Remove per_cu, per_objfile paramters. | |
1644 | Add dwarf2_cu parameter. | |
1645 | (process_queue): Update. | |
1646 | ||
168c9250 SM |
1647 | 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca> |
1648 | ||
1649 | * dwarf2/read.c (create_cu_from_index_list): Replace | |
1650 | dwarf2_per_objfile parameter with dwarf2_per_bfd. | |
1651 | (create_cus_from_index_list): Likewise. | |
1652 | (create_cus_from_index): Likewise. | |
1653 | (create_signatured_type_table_from_index): Likewise. | |
1654 | (create_cus_from_debug_names_list): Likewise. | |
1655 | (create_cus_from_debug_names): Likewise. | |
1656 | (dwarf2_read_gdb_index): Update. | |
1657 | (dwarf2_read_debug_names): Update. | |
1658 | ||
e286671b TT |
1659 | 2020-05-27 Tom Tromey <tom@tromey.com> |
1660 | Simon Marchi <simon.marchi@efficios.com> | |
1661 | ||
1662 | * dwarf2/read.h (struct dwarf2_per_objfile) | |
1663 | <get_type_for_signatured_type, set_type_for_signatured_type>: | |
1664 | New methods. | |
1665 | <m_type_map>: New member. | |
1666 | (struct signatured_type) <type>: Remove. | |
1667 | * dwarf2/read.c | |
1668 | (dwarf2_per_objfile::get_type_for_signatured_type, | |
1669 | dwarf2_per_objfile::set_type_for_signatured_type): New. | |
1670 | (get_signatured_type): Use new methods. | |
1671 | ||
8adb8487 TT |
1672 | 2020-05-27 Tom Tromey <tom@tromey.com> |
1673 | Simon Marchi <simon.marchi@efficios.com> | |
1674 | ||
1675 | * dwarf2/read.h (struct type_unit_group_unshareable): New. | |
1676 | (struct dwarf2_per_objfile) <type_units>: New member. | |
1677 | <get_type_unit_group_unshareable>: New method. | |
1678 | * dwarf2/read.c (struct type_unit_group) <compunit_symtab, | |
1679 | num_symtabs, symtabs>: Remove; move to | |
1680 | type_unit_group_unshareable. | |
1681 | (dwarf2_per_objfile::get_type_unit_group_unshareable): New. | |
1682 | (process_full_type_unit, dwarf2_cu::setup_type_unit_groups) | |
1683 | (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable. | |
1684 | ||
127bbf4b SM |
1685 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
1686 | ||
1687 | * dwarf2/read.h (struct dwarf2_per_cu_data): | |
1688 | <dwarf2_per_objfile>: Remove. | |
1689 | * dwarf2/read.c (create_cu_from_index_list): Don't assign | |
1690 | dwarf2_per_objfile. | |
1691 | (create_signatured_type_table_from_index): Likewise. | |
1692 | (create_signatured_type_table_from_debug_names): Likewise. | |
1693 | (create_debug_type_hash_table): Likewise. | |
1694 | (fill_in_sig_entry_from_dwo_entry): Likewise. | |
1695 | (create_type_unit_group): Likewise. | |
1696 | (read_comp_units_from_section): Likewise. | |
1697 | (create_cus_hash_table): Likewise. | |
1698 | ||
f6e649dd SM |
1699 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
1700 | ||
1701 | * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to | |
1702 | dwarf2_per_cu_data::dwarf2_per_objfile. | |
1703 | (compute_compunit_symtab_includes): Likewise. | |
1704 | (dwarf2_cu::start_symtab): Likewise. | |
1705 | ||
aa66c379 SM |
1706 | 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca> |
1707 | ||
1708 | * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile | |
1709 | parameter. | |
1710 | * dwarf2/read.c (get_die_type_at_offset): Likewise. | |
1711 | (read_namespace_alias): Update. | |
1712 | (lookup_die_type): Update. | |
1713 | (dwarf2_get_die_type): Add dwarf2_per_objfile parameter. | |
1714 | * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>: | |
1715 | Update. | |
1716 | (disassemble_dwarf_expression): Update. | |
1717 | ||
120ce1b5 SM |
1718 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
1719 | ||
1720 | * dwarf2/read.h (struct dwarf2_queue_item): Add | |
1721 | dwarf2_per_objfile parameter, assign new parameter. | |
1722 | <per_objfile>: New field. | |
1723 | * dwarf2/read.c (free_one_cached_comp_unit): Add | |
1724 | dwarf2_per_objfile parameter. | |
1725 | (queue_comp_unit): Likewise. | |
1726 | (dw2_do_instantiate_symtab): Update. | |
1727 | (process_psymtab_comp_unit): Update. | |
1728 | (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter. | |
1729 | (process_imported_unit_die): Update. | |
1730 | (queue_and_load_dwo_tu): Update. | |
1731 | (follow_die_offset): Update. | |
1732 | (follow_die_sig_1): Update. | |
1733 | ||
9f47c707 SM |
1734 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
1735 | ||
1736 | * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove. | |
1737 | * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down. | |
1738 | (read_call_site_scope): Assign per_objfile. | |
1739 | (dwarf2_per_cu_data::objfile): Remove. | |
1740 | * gdbtypes.h (struct call_site) <per_objfile>: New member. | |
1741 | * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add | |
1742 | dwarf2_per_objfile parameter. | |
1743 | * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add | |
1744 | dwarf2_per_objfile parameter. | |
1745 | (dwarf_expr_reg_to_entry_parameter): Add output | |
1746 | dwarf2_per_objfile parameter. | |
1747 | (locexpr_get_frame_base): Update. | |
1748 | (class dwarf_evaluate_loc_desc) <get_tls_address>: Update. | |
1749 | <push_dwarf_reg_entry_value>: Update. | |
1750 | <call_site_to_target_addr>: Update. | |
1751 | (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile | |
1752 | parameter. | |
1753 | (value_of_dwarf_reg_entry): Update. | |
1754 | (rw_pieced_value): Update. | |
1755 | (indirect_synthetic_pointer): Update. | |
1756 | (dwarf2_evaluate_property): Update. | |
1757 | (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile | |
1758 | parameter. | |
1759 | (locexpr_read_variable): Update. | |
1760 | (locexpr_get_symbol_read_needs): Update. | |
1761 | (loclist_read_variable): Update. | |
1762 | ||
14095eb3 SM |
1763 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
1764 | ||
1765 | * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off, | |
1766 | dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes, | |
1767 | dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile | |
1768 | parameter. | |
1769 | * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off, | |
1770 | dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes, | |
1771 | dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile | |
1772 | parameter. | |
1773 | * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call, | |
1774 | sect_variable_value): Add dwarf2_per_objfile parameter. | |
1775 | (class dwarf_evaluate_loc_desc) <dwarf_call, | |
1776 | dwarf_variable_value>: Update. | |
1777 | (fetch_const_value_from_synthetic_pointer): Add | |
1778 | dwarf2_per_objfile parameter. | |
1779 | (fetch_const_value_from_synthetic_pointer): Update. | |
1780 | (coerced_pieced_ref): Update. | |
1781 | (class symbol_needs_eval_context) <dwarf_call, | |
1782 | dwarf_variable_value>: Update. | |
1783 | (dwarf2_compile_expr_to_ax): Update. | |
1784 | ||
3c3cd3d4 SM |
1785 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
1786 | ||
1787 | * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile | |
1788 | parameter. | |
1789 | (dwarf2_evaluate_loc_desc_full): Update. | |
1790 | ||
82ca3f51 SM |
1791 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
1792 | ||
1793 | * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile | |
1794 | parameter. | |
1795 | * dwarf2/read.c (dwarf2_read_addr_index): Likewise. | |
1796 | * dwarf2/loc.c (decode_debug_loclists_addresses): Add | |
1797 | dwarf2_per_objfile parameter. | |
1798 | (decode_debug_loc_dwo_addresses): Likewise. | |
1799 | (dwarf2_find_location_expression): Update. | |
1800 | (class dwarf_evaluate_loc_desc) <get_addr_index>: Update. | |
1801 | (locexpr_describe_location_piece): Add dwarf2_per_objfile | |
1802 | parameter. | |
1803 | (disassemble_dwarf_expression): Add dwarf2_per_objfile | |
1804 | parameter. | |
1805 | (locexpr_describe_location_1): Likewise. | |
1806 | (locexpr_describe_location): Update. | |
1807 | ||
4b167ea1 SM |
1808 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
1809 | ||
1810 | * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>: | |
1811 | Remove. | |
1812 | * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove. | |
1813 | * dwarf2/loc.c (dwarf2_find_location_expression): Update. | |
1814 | (dwarf2_compile_property_to_c): Update. | |
1815 | (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter, | |
1816 | use text offset from objfile. | |
1817 | (locexpr_tracepoint_var_ref): Update. | |
1818 | (locexpr_generate_c_location): Update. | |
1819 | (loclist_describe_location): Update. | |
1820 | (loclist_tracepoint_var_ref): Update. | |
1821 | * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add | |
1822 | dwarf2_per_objfile parameter. | |
1823 | * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise, | |
1824 | use text offset from objfile. | |
1825 | (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter. | |
1826 | ||
89b07335 SM |
1827 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
1828 | ||
1829 | * dwarf2/expr.h (struct dwarf_expr_context) | |
1830 | <dwarf_expr_context>: Add dwarf2_per_objfile parameter. | |
1831 | <offset>: Remove. | |
1832 | <per_objfile>: New member. | |
1833 | * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add | |
1834 | dwarf2_per_objfile parameter. Don't set offset, set | |
1835 | per_objfile. | |
1836 | (dwarf_expr_context::execute_stack_op): Use offset from objfile. | |
1837 | * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter) | |
1838 | a dwarf2_per_objfile object instead of an offset. | |
1839 | (class dwarf_expr_executor) <dwarf_expr_executor>: Add | |
1840 | constructor. | |
1841 | (execute_stack_op): Add dwarf2_per_objfile parameter, pass it | |
1842 | to dwarf2_expr_executor constructor. Don't set offset. | |
1843 | (dwarf2_fetch_cfa_info): Update. | |
1844 | (struct dwarf2_frame_cache) <text_offset>: Remove. | |
1845 | <per_objfile>: New field. | |
1846 | (dwarf2_frame_cache): Update. | |
1847 | (dwarf2_frame_prev_register): Update. | |
1848 | * dwarf2/loc.c (class dwarf_evaluate_loc_desc) | |
1849 | <dwarf_evaluate_loc_desc>: Add constructor. | |
1850 | (dwarf2_evaluate_loc_desc_full): Update. | |
1851 | (dwarf2_locexpr_baton_eval): Update. | |
1852 | (class symbol_needs_eval_context) <symbol_needs_eval_context>: | |
1853 | Add constructor. | |
1854 | (dwarf2_loc_desc_get_symbol_read_needs): Update. | |
1855 | ||
293e7e51 SM |
1856 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
1857 | ||
1858 | * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type, | |
1859 | addr_sized_int_type>: Move to dwarf2_cu. | |
1860 | <int_type>: Move to dwarf2_per_objfile. | |
1861 | (struct dwarf2_per_objfile) <int_type>: Move here. | |
1862 | * dwarf2/read.c (struct dwarf2_cu) <addr_type, | |
1863 | addr_sized_int_type>: Move here. | |
1864 | (read_func_scope): Update. | |
1865 | (read_array_type): Update. | |
1866 | (read_tag_string_type): Update. | |
1867 | (attr_to_dynamic_prop): Update. | |
1868 | (dwarf2_per_cu_data::int_type): Rename to... | |
1869 | (dwarf2_per_objfile::int_type): ... this. | |
1870 | (dwarf2_per_cu_data::addr_sized_int_type): Rename to... | |
1871 | (dwarf2_cu::addr_sized_int_type): ... this. | |
1872 | (read_subrange_type): Update. | |
1873 | (dwarf2_per_cu_data::addr_type): Rename to... | |
1874 | (dwarf2_cu::addr_type): ... this. | |
1875 | (set_die_type): Update. | |
1876 | ||
64874a40 SM |
1877 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
1878 | ||
1879 | * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile | |
1880 | data through per_cu->cu. | |
1881 | ||
4ab09049 SM |
1882 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
1883 | ||
1884 | * dwarf2/read.c (lookup_dwo_comp_unit): Change | |
1885 | dwarf2_per_cu_data parameter fo dwarf2_cu. | |
1886 | (lookup_dwo_type_unit): Likewise. | |
1887 | (read_cutu_die_from_dwo): Likewise. | |
1888 | (lookup_dwo_unit): Likewise. | |
1889 | (open_and_init_dwo_file): Likewise. | |
1890 | (lookup_dwo_cutu): Likewise. | |
1891 | (lookup_dwo_comp_unit): Likewise. | |
1892 | (lookup_dwo_type_unit): Likewise. | |
1893 | (cutu_reader::init_tu_and_read_dwo_dies): Update. | |
1894 | (cutu_reader::cutu_reader): Update. | |
1895 | ||
47b14e86 SM |
1896 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
1897 | ||
1898 | * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile | |
1899 | parameter. | |
1900 | (process_full_type_unit): Likewise. | |
1901 | (process_queue): Update. | |
1902 | ||
43182c09 SM |
1903 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
1904 | ||
1905 | * dwarf2/read.c (recursively_compute_inclusions): Add | |
1906 | dwarf2_per_objfile parameter. | |
1907 | (compute_compunit_symtab_includes): Likewise. | |
1908 | (process_cu_includes): Update. | |
1909 | ||
7aa104c4 SM |
1910 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
1911 | ||
1912 | * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile | |
1913 | parameter. | |
1914 | (create_type_unit_group): Update. | |
1915 | (process_psymtab_comp_unit_reader): Update. | |
1916 | (build_type_psymtabs_reader): Update. | |
1917 | ||
e3beb21d SM |
1918 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
1919 | ||
1920 | * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile | |
1921 | object through m_this_cu->cu. | |
1922 | ||
d460f660 SM |
1923 | 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca> |
1924 | ||
1925 | * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as | |
1926 | the info parameter. | |
1927 | (queue_and_load_all_dwo_tus): Pass per_cu->cu. | |
1928 | ||
ab432490 SM |
1929 | 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca> |
1930 | ||
1931 | * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add | |
1932 | per_objfile parameter. | |
1933 | (load_full_type_unit): Add per_objfile parameter. | |
1934 | (read_signatured_type): Likewise. | |
1935 | (load_full_comp_unit): Likewise. | |
1936 | (load_cu): Likewise. | |
1937 | (dw2_do_instantiate_symtab): Likewise. | |
1938 | (dw2_get_file_names): Likewise. | |
1939 | (dw2_map_symtabs_matching_filename): Update. | |
1940 | (dw_expand_symtabs_matching_file_matcher): Update. | |
1941 | (dw2_map_symbol_filenames): Update. | |
1942 | (process_psymtab_comp_unit): Add per_objfile parameter. | |
1943 | (build_type_psymtabs_1): Update. | |
1944 | (process_skeletonless_type_unit): Update. | |
1945 | (dwarf2_build_psymtabs_hard): Update. | |
1946 | (load_partial_comp_unit): Add per_objfile parameter. | |
1947 | (scan_partial_symbols): Update. | |
1948 | (load_full_comp_unit): Add per_objfile parameter. | |
1949 | (process_imported_unit_die): Update. | |
1950 | (create_cus_hash_table): Update. | |
1951 | (find_partial_die): Update. | |
1952 | (dwarf2_read_addr_index): Update. | |
1953 | (follow_die_offset): Update. | |
1954 | (dwarf2_fetch_die_loc_sect_off): Update. | |
1955 | (dwarf2_fetch_constant_bytes): Update. | |
1956 | (dwarf2_fetch_die_type_sect_off): Update. | |
1957 | (follow_die_sig_1): Update. | |
1958 | (load_full_type_unit): Add per_objfile parameter. | |
1959 | (read_signatured_type): Likewise. | |
1960 | ||
313bad1b SM |
1961 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
1962 | ||
1963 | * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead | |
1964 | of objfile_name. | |
1965 | ||
c3699833 SM |
1966 | 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca> |
1967 | ||
1968 | * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member. | |
1969 | (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd. | |
1970 | * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd | |
1971 | field. | |
1972 | (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd. | |
1973 | (create_cus_from_index): Update. | |
1974 | (dwarf2_read_gdb_index): Update. | |
1975 | (create_cus_from_debug_names): Update. | |
1976 | (dwarf2_read_debug_names): Update. | |
1977 | (get_abbrev_section_for_cu): Update. | |
1978 | (create_all_comp_units): Update. | |
1979 | (read_attribute_value): Update. | |
1980 | (get_debug_line_section): Update. | |
1981 | * dwarf2/index-cache.c (index_cache::store): Update. | |
1982 | * dwarf2/index-write.c (save_gdb_index_command): Update. | |
1983 | * dwarf2/macro.c (dwarf_decode_macro_bytes): Update. | |
1984 | ||
1859c670 SM |
1985 | 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca> |
1986 | ||
1987 | * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New | |
1988 | member. | |
1989 | * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize | |
1990 | dwarf2_per_cu_data::per_bfd. | |
1991 | (dwarf2_per_bfd::allocate_signatured_type): Likewise. | |
1992 | (create_type_unit_group): Likewise. | |
1993 | (queue_comp_unit): Remove reference to | |
1994 | per_cu->dwarf2_per_objfile. | |
1995 | (maybe_queue_comp_unit): Likewise. | |
1996 | (fill_in_sig_entry_from_dwo_entry): Assign new field. | |
1997 | (create_cus_hash_table): Assign new field. | |
1998 | ||
5e22e966 SM |
1999 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
2000 | ||
2001 | * dwarf2/read.c: Replace | |
2002 | dwarf2_cu->per_cu->dwarf2_per_objfile references with | |
2003 | dwarf2_cu->per_objfile throughout. | |
2004 | ||
97a1449a SM |
2005 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
2006 | ||
2007 | * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile | |
2008 | parameter, don't use per_cu->dwarf2_per_objfile. | |
2009 | (dw2_instantiate_symtab): Likewise. | |
2010 | (dw2_find_last_source_symtab): Update. | |
2011 | (dw2_map_expand_apply): Update. | |
2012 | (dw2_lookup_symbol): Update. | |
2013 | (dw2_expand_symtabs_for_function): Update. | |
2014 | (dw2_expand_all_symtabs): Update. | |
2015 | (dw2_expand_symtabs_with_fullname): Update. | |
2016 | (dw2_expand_symtabs_matching_one): Add per_objfile parameter, | |
2017 | don't use per_cu->dwarf2_per_objfile. | |
2018 | (dw2_expand_marked_cus): Update. | |
2019 | (dw2_find_pc_sect_compunit_symtab): Update. | |
2020 | (dw2_debug_names_lookup_symbol): Update. | |
2021 | (dw2_debug_names_expand_symtabs_for_function): Update. | |
2022 | (dw2_debug_names_map_matching_symbols): Update. | |
2023 | (dwarf2_psymtab::expand_psymtab): Update. | |
2024 | ||
9e021579 SM |
2025 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
2026 | ||
2027 | * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter. | |
2028 | <per_objfile>: New member. | |
2029 | (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter. | |
2030 | (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update | |
2031 | call to dwarf2_cu. | |
2032 | (cutu_reader::cutu_reader): Update. | |
2033 | (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile. | |
2034 | ||
ae090bdb SM |
2035 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
2036 | ||
2037 | * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to | |
2038 | struct dwarf2_per_objfile. | |
2039 | (struct dwarf2_per_objfile) <die_type_hash>: Move from struct | |
2040 | dwarf2_per_bfd. | |
2041 | * dwarf2/read.c (set_die_type): Update. | |
2042 | (get_die_type_at_offset): Update. | |
2043 | ||
af758d11 SM |
2044 | 2020-05-27 Tom Tromey <tom@tromey.com> |
2045 | Simon Marchi <simon.marchi@efficios.com> | |
2046 | ||
2047 | * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New | |
2048 | method. | |
2049 | (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p, | |
2050 | get_symtab, set_symtab>: New methods. | |
2051 | <m_symtabs>: New field. | |
2052 | (struct dwarf2_psymtab): Derive from partial_symtab. | |
2053 | <readin_p, get_compunit_symtab>: Declare methods. | |
2054 | * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p, | |
2055 | dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab): | |
2056 | New methods. | |
2057 | (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove. | |
2058 | (dw2_do_instantiate_symtab, dw2_instantiate_symtab) | |
2059 | (dw2_map_expand_apply, dw2_map_symtabs_matching_filename) | |
2060 | (dw2_symtab_iter_next, dw2_print_stats) | |
2061 | (dw2_expand_symtabs_with_fullname) | |
2062 | (dw2_expand_symtabs_matching_one) | |
2063 | (dw_expand_symtabs_matching_file_matcher) | |
2064 | (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames) | |
2065 | (dw2_debug_names_iterator::next) | |
2066 | (dw2_debug_names_map_matching_symbols) | |
2067 | (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab) | |
2068 | (process_queue, dwarf2_psymtab::expand_psymtab): Update. | |
2069 | (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab): | |
2070 | New methods. | |
2071 | (get_compunit_symtab, process_full_comp_unit) | |
2072 | (process_full_type_unit): Update. | |
2073 | (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call | |
2074 | ||
5989a64e SM |
2075 | 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca> |
2076 | ||
2077 | * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd, | |
2078 | then introduce a new dwarf2_per_objfile type. | |
2079 | <read_line_string>: Move to the new dwarf2_per_objfile type. | |
2080 | <objfile>: Likewise. | |
2081 | (dwarf2_per_bfd): Rename dwarf2_per_objfile to this. | |
2082 | * dwarf2/read.c: Replace references to dwarf2_per_objfile with | |
2083 | dwarf2_per_objfile->per_bfd. | |
2084 | (dwarf2_per_objfile::dwarf2_per_objfile): Rename to... | |
2085 | (dwarf2_per_bfd::dwarf2_per_bfd): ... this. | |
2086 | (dwarf2_per_objfile::free_cached_comp_units): Rename to... | |
2087 | (dwarf2_per_bfd::free_cached_comp_units): ... this. | |
2088 | (dwarf2_has_info): Allocate dwarf2_per_bfd. | |
2089 | (dwarf2_per_objfile::locate_sections): Rename to... | |
2090 | (dwarf2_per_bfd::locate_sections): ... this. | |
2091 | (dwarf2_per_objfile::get_cutu): Rename to... | |
2092 | (dwarf2_per_bfd::get_cutu): ... this. | |
2093 | (dwarf2_per_objfile::get_cu): Rename to... | |
2094 | (dwarf2_per_bfd::get_cu): ... this. | |
2095 | (dwarf2_per_objfile::get_tu): Rename to... | |
2096 | (dwarf2_per_bfd::get_tu): ... this. | |
2097 | (dwarf2_per_objfile::allocate_per_cu): Rename to... | |
2098 | (dwarf2_per_bfd::allocate_per_cu): ... this. | |
2099 | (dwarf2_per_objfile::allocate_signatured_type): Rename to... | |
2100 | (dwarf2_per_bfd::allocate_signatured_type): ... this. | |
2101 | (get_gdb_index_contents_ftype): Change parameter from | |
2102 | dwarf2_per_objfile to dwarf2_per_bfd. | |
2103 | * dwarf2/macro.c, dwarf2/index-write.c: Replace references to | |
2104 | dwarf2_per_objfile with dwarf2_per_objfile->per_bfd. | |
2105 | ||
a50264ba TT |
2106 | 2020-05-27 Tom Tromey <tom@tromey.com> |
2107 | Simon Marchi <simon.marchi@efficios.com> | |
2108 | ||
2109 | * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member. | |
2110 | (allocate_piece_closure): Set "per_objfile" member. | |
2111 | (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval) | |
2112 | (locexpr_describe_location, loclist_describe_location): Use new | |
2113 | member. | |
2114 | * dwarf2/read.c (read_call_site_scope) | |
2115 | (mark_common_block_symbol_computed, attr_to_dynamic_prop) | |
2116 | (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off) | |
2117 | (fill_in_loclist_baton, dwarf2_symbol_mark_computed, | |
2118 | handle_data_member_location): Set per_objfile member. | |
2119 | * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New | |
2120 | member. | |
2121 | (struct dwarf2_loclist_baton) <per_objfile>: New member. | |
2122 | ||
d3473f0c TT |
2123 | 2020-05-27 Tom Tromey <tom@tromey.com> |
2124 | ||
2125 | * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu, | |
2126 | allocate_signatured_type>: Declare new methods. | |
2127 | <m_num_psymtabs>: New member. | |
2128 | (struct dwarf2_per_cu_data) <index>: New member. | |
2129 | * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu) | |
2130 | (dwarf2_per_objfile::allocate_signatured_type): New methods. | |
2131 | (create_cu_from_index_list): Use allocate_per_cu. | |
2132 | (create_signatured_type_table_from_index) | |
2133 | (create_signatured_type_table_from_debug_names) | |
2134 | (create_debug_type_hash_table, add_type_unit) | |
2135 | (read_comp_units_from_section): Use allocate_signatured_type. | |
2136 | ||
5717c425 TT |
2137 | 2020-05-27 Tom Tromey <tom@tromey.com> |
2138 | ||
2139 | * psymtab.c (partial_map_expand_apply) | |
2140 | (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol) | |
2141 | (psym_lookup_global_symbol_language) | |
2142 | (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab) | |
2143 | (psym_print_stats, psym_expand_symtabs_for_function) | |
2144 | (psym_map_symbol_filenames, psym_map_matching_symbols) | |
2145 | (psym_expand_symtabs_matching) | |
2146 | (partial_symtab::read_dependencies, maintenance_info_psymtabs) | |
2147 | (maintenance_check_psymtabs): Update. | |
2148 | * psympriv.h (struct partial_symtab) <readin_p, | |
2149 | get_compunit_symtab>: Add objfile parameter. | |
2150 | (struct standard_psymtab) <readin_p, get_compunit_symtab>: | |
2151 | Likewise. | |
2152 | * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p, | |
2153 | get_compunit_symtab>: Likewise. | |
2154 | (dwarf2_psymtab::expand_psymtab): Pass objfile argument. | |
2155 | ||
45940949 TT |
2156 | 2020-05-27 Tom Tromey <tom@tromey.com> |
2157 | ||
2158 | * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New | |
2159 | member. | |
2160 | * dwarf2/read.c (delete_file_name_entry): Fix comment. | |
2161 | (create_cu_from_index_list) | |
2162 | (create_signatured_type_table_from_index) | |
2163 | (create_signatured_type_table_from_debug_names) | |
2164 | (dw2_get_file_names_reader, dwarf2_initialize_objfile) | |
2165 | (dwarf2_create_include_psymtab) | |
2166 | (create_debug_type_hash_table, add_type_unit) | |
2167 | (create_type_unit_group, read_comp_units_from_section) | |
2168 | (dwarf2_compute_name, create_cus_hash_table) | |
2169 | (create_dwp_hash_table, create_dwo_unit_in_dwp_v1) | |
2170 | (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new | |
2171 | obstack. | |
2172 | (dw2_get_real_path): Likewise. Change argument to | |
2173 | dwarf2_per_objfile. | |
2174 | ||
f8c6d152 LM |
2175 | 2020-05-27 Luis Machado <luis.machado@linaro.org> |
2176 | ||
2177 | PR tdep/26000 | |
2178 | * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching | |
2179 | for ldrd (immediate). | |
2180 | ||
e98d2e6d PW |
2181 | 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
2182 | ||
2183 | * command.h: Add comment giving the name of class_tui. | |
2184 | * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined, | |
2185 | create the fake command for the help for class_tui. | |
2186 | ||
53a47a3e TT |
2187 | 2020-05-26 Tom Tromey <tromey@adacore.com> |
2188 | ||
2189 | * ada-lang.c (ada_print_array_index): Change type. Call val_atr. | |
2190 | (ada_value_ptr_subscript): Don't call pos_atr on the lower bound. | |
2191 | (val_atr): New function. | |
2192 | (value_val_atr): Use it. | |
2193 | * ada-valprint.c (print_optional_low_bound): Change low bound | |
2194 | handling for enums. | |
2195 | (val_print_packed_array_elements): Don't call discrete_position. | |
2196 | * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call | |
2197 | discrete_position for enum types. | |
2198 | * language.c (default_print_array_index): Change type. | |
2199 | * language.h (struct language_defn) <la_print_array_index>: Add | |
2200 | index_type parameter, change type of index_value. | |
2201 | (LA_PRINT_ARRAY_INDEX): Add index_type parameter. | |
2202 | (default_print_array_index): Update. | |
2203 | * valprint.c (maybe_print_array_index): Don't call | |
2204 | value_from_longest. Update. | |
2205 | (value_print_array_elements): Don't call discrete_position. | |
2206 | ||
0bc2354b TT |
2207 | 2020-05-26 Tom Tromey <tromey@adacore.com> |
2208 | ||
2209 | * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE. | |
2210 | * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE. | |
2211 | ||
1218a4bf CDA |
2212 | 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com> |
2213 | ||
2214 | PR gdb/13519 | |
2215 | * avr-tdep.c (avr_integer_to_address): Return data or code | |
2216 | address accordingly to the second 'type' argument of the | |
2217 | function. | |
2218 | ||
92651b1d MW |
2219 | 2020-05-25 Michael Weghorn <m.weghorn@posteo.de> |
2220 | ||
2221 | * infcmd.c, inferior.h: (construct_inferior_arguments): | |
2222 | Moved function from here to gdbsupport/common-inferior.{h,cc} | |
2223 | ||
0a4f5f8c TT |
2224 | 2020-05-23 Tom Tromey <tom@tromey.com> |
2225 | ||
2226 | Revert commit eca1f90c: | |
2227 | * NEWS: Remove entry for completion styling. | |
2228 | * completer.c (_rl_completion_prefix_display_length): Move | |
2229 | declaration later. | |
2230 | (gdb_fnprint): Revert. | |
2231 | (gdb_display_match_list_1): Likewise. | |
2232 | * cli/cli-style.c (completion_prefix_style) | |
2233 | (completion_difference_style, completion_suffix_style): Remove. | |
2234 | (_initialize_cli_style): Revert. | |
2235 | * cli/cli-style.h (completion_prefix_style) | |
2236 | (completion_difference_style, completion_suffix_style): Don't | |
2237 | declare. | |
2238 | ||
e08bd6c5 PA |
2239 | 2020-05-24 Pedro Alves <palves@redhat.com> |
2240 | ||
2241 | * symtab.c (completion_list_add_name): Return boolean indication | |
2242 | of whether the symbol matched. | |
2243 | (completion_list_add_symbol): Don't try to remove C++ aliases if | |
2244 | the symbol didn't match in the first place. | |
2245 | * symtab.h (completion_list_add_name): Return bool. | |
2246 | ||
ceacbf6e SM |
2247 | 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca> |
2248 | ||
2249 | * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with | |
2250 | type::field. | |
2251 | ||
26f16254 JB |
2252 | 2020-05-23 Joel Brobecker <brobecker@adacore.com> |
2253 | ||
2254 | GDB 9.2 released. | |
2255 | ||
eca1f90c TT |
2256 | 2020-05-23 Tom Tromey <tom@tromey.com> |
2257 | ||
2258 | * NEWS: Add entry for completion styling. | |
2259 | * completer.c (_rl_completion_prefix_display_length): Move | |
2260 | declaration earlier. | |
2261 | (gdb_fnprint): Use completion_style. | |
2262 | (gdb_display_match_list_1): Likewise. | |
2263 | * cli/cli-style.c (completion_prefix_style) | |
2264 | (completion_difference_style, completion_suffix_style): New | |
2265 | globals. | |
2266 | (_initialize_cli_style): Register new globals. | |
2267 | * cli/cli-style.h (completion_prefix_style) | |
2268 | (completion_difference_style, completion_suffix_style): Declare. | |
2269 | ||
51e2cfa2 PA |
2270 | 2020-05-23 Pedro Alves <palves@redhat.com> |
2271 | ||
2272 | * utils.c: Include "gdbsupport/gdb-safe-ctype.h". | |
2273 | (parse_escape): Use ISDIGIT instead of isdigit. | |
2274 | (puts_debug): Use gdb_isprint instead of isprint. | |
2275 | (fprintf_symbol_filtered): Use ISALNUM instead of isalnum. | |
2276 | (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use | |
2277 | ISSPACE instead of isspace. | |
2278 | (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE | |
2279 | instead of isspace. | |
2280 | (strcmp_iw_ordered): Use ISSPACE instead of isspace. | |
2281 | (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT | |
2282 | instead of isxdigit and ISDIGIT instead of isdigit. | |
2283 | ||
80fc5e77 SM |
2284 | 2020-05-22 Simon Marchi <simon.marchi@efficios.com> |
2285 | ||
2286 | * gdbtypes.h (struct type) <field>: New method. | |
2287 | (TYPE_FIELDS): Remove, replace all uses with either type::fields | |
2288 | or type::field. | |
2289 | ||
3cabb6b0 SM |
2290 | 2020-05-22 Simon Marchi <simon.marchi@efficios.com> |
2291 | ||
2292 | * gdbtypes.h (struct type) <fields, set_fields>: New methods. | |
2293 | (TYPE_FIELDS): Use type::fields. Change all call sites that | |
2294 | modify the propery to use type::set_fields instead. | |
2295 | ||
1f704f76 SM |
2296 | 2020-05-22 Simon Marchi <simon.marchi@efficios.com> |
2297 | ||
2298 | * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use | |
2299 | type::num_fields instead. | |
2300 | ||
5e33d5f4 SM |
2301 | 2020-05-22 Simon Marchi <simon.marchi@efficios.com> |
2302 | ||
2303 | * gdbtypes.h (struct type) <num_fields, set_num_fields>: New | |
2304 | methods. | |
2305 | (TYPE_NFIELDS): Use type::num_fields. Change all call sites | |
2306 | that modify the number of fields to use type::set_num_fields | |
2307 | instead. | |
2308 | ||
9392ebb3 TT |
2309 | 2020-05-22 Tom Tromey <tromey@adacore.com> |
2310 | ||
2311 | * compile/compile-object-load.h (munmap_list_free): Don't | |
2312 | declare. | |
2313 | ||
7c13f4e8 AB |
2314 | 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com> |
2315 | ||
2316 | * annotate.c (annotate_source_line): Update return type, add call | |
2317 | to update current symtab and line. | |
2318 | * annotate.h (annotate_source_line): Update return type, and | |
2319 | extend header comment. | |
2320 | * source.c (info_line_command): Check annotation_level before | |
2321 | calling annotate_source_line. | |
2322 | * stack.c (print_frame_info): If calling annotate_source_line | |
2323 | returns true, then don't print any other source line information. | |
2324 | ||
aa370940 SM |
2325 | 2020-05-21 Simon Marchi <simon.marchi@efficios.com> |
2326 | ||
2327 | * lm32-tdep.c (lm32_register_reggroup_p): Fix condition. | |
2328 | ||
84d53fa9 SM |
2329 | 2020-05-21 Simon Marchi <simon.marchi@efficios.com> |
2330 | ||
2331 | * coffread.c (patch_type): Remove NULL check before xfree. | |
2332 | * corefile.c (set_gnutarget): Likewise. | |
2333 | * cp-abi.c (set_cp_abi_as_auto_default): Likewise. | |
2334 | * exec.c (build_section_table): Likewise. | |
2335 | * remote.c (remote_target::pass_signals): Likewise. | |
2336 | * utils.c (n_spaces): Likewise. | |
2337 | * cli/cli-script.c (document_command): Likewise. | |
2338 | * i386-windows-tdep.c (core_process_module_section): Likewise. | |
2339 | * linux-fork.c (struct fork_info) <~fork_info>: Likewise. | |
2340 | ||
9d428aae SM |
2341 | 2020-05-20 Simon Marchi <simon.marchi@efficios.com> |
2342 | ||
2343 | * symfile.c (reread_symbols): Clear objfile's section_offsets | |
2344 | vector and section indices, re-compute them by calling | |
2345 | sym_offsets. | |
2346 | ||
250106a7 TT |
2347 | 2020-05-20 Tom Tromey <tromey@adacore.com> |
2348 | ||
2349 | * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove. | |
ec16513e | 2350 | (desc_one_bound, desc_index_type): Compute field name. |
250106a7 | 2351 | |
9a0bacfb TV |
2352 | 2020-05-20 Tom de Vries <tdevries@suse.de> |
2353 | ||
2354 | PR symtab/25833 | |
2355 | * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index. | |
2356 | ||
7b958a48 AM |
2357 | 2020-05-20 Alan Modra <amodra@gmail.com> |
2358 | ||
2359 | PR 25993 | |
2360 | * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for | |
2361 | bfd_set_filename. | |
2362 | * solib-aix.c (solib_aix_bfd_open): Use std::string for name | |
2363 | passed to bfd_set_filename. | |
2364 | * symfile-mem.c (add_vsyscall_page): Likewise for string | |
2365 | passed to symbol_file_add_from_memory. | |
2366 | (symbol_file_add_from_memory): Make name param a const char* and | |
2367 | don't strdup. | |
2368 | ||
c7e97679 AM |
2369 | 2020-05-20 Alan Modra <amodra@gmail.com> |
2370 | ||
2371 | * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename | |
2372 | rather than accessing bfd->filename directly. | |
2373 | * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise, | |
2374 | and use bfd_section_name. | |
2375 | * dwarf2/frame.c (decode_frame_entry): Likewise. | |
2376 | * exec.c (exec_set_section_address): Likewise. | |
2377 | * solib-aix.c (solib_aix_bfd_open): Likewise. | |
2378 | * stap-probe.c (get_stap_base_address): Likewise. | |
2379 | * symfile.c (reread_symbols): Likewise. | |
2380 | ||
563c591b TT |
2381 | 2020-05-19 Tom Tromey <tromey@adacore.com> |
2382 | ||
2383 | * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open. | |
2384 | ||
f408d82c SM |
2385 | 2020-05-19 Simon Marchi <simon.marchi@efficios.com> |
2386 | ||
2387 | * dwarf2/read.c (quirk_rust_enum): Allocate enough fields. | |
2388 | ||
98c59b52 PA |
2389 | 2020-05-19 Pedro Alves <palves@redhat.com> |
2390 | ||
2391 | * NEWS (set exec-file-mismatch): Adjust entry. | |
2392 | * exec.c: Include "build-id.h". | |
2393 | (validate_exec_file): Try to match build IDs instead of filenames. | |
2394 | * gdb_bfd.c (struct gdb_bfd_open_closure): New. | |
2395 | (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure | |
2396 | and pass down 'warn_if_slow'. | |
2397 | (gdb_bfd_open): Add 'warn_if_slow' parameter. Use | |
2398 | gdb_bfd_open_closure to pass it down. | |
2399 | * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter. | |
2400 | ||
4111f652 PA |
2401 | 2020-05-19 Pedro Alves <palves@redhat.com> |
2402 | ||
2403 | * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust. | |
2404 | * target.c (target_fileio_open_1): Rename to target_fileio_open | |
2405 | and make extern. Use bool. | |
2406 | (target_fileio_open, target_fileio_open_warn_if_slow): Delete. | |
2407 | (target_fileio_read_alloc_1): Adjust. | |
2408 | * target.h (target_fileio_open): Add 'warn_if_slow' parameter. | |
2409 | (target_fileio_open_warn_if_slow): Delete declaration. | |
2410 | ||
ad80db5b PA |
2411 | 2020-05-19 Pedro Alves <palves@redhat.com> |
2412 | ||
2413 | * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1. | |
2414 | Adjust all callers. | |
2415 | ||
1d6ce4d3 YS |
2416 | 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp> |
2417 | ||
2418 | * h8300-tdep.c (h8300_is_argument_spill): Change how we check | |
2419 | whether disp is negative. | |
2420 | ||
9005fbbb SM |
2421 | 2020-05-19 Simon Marchi <simon.marchi@efficios.com> |
2422 | ||
2423 | * symfile.h (struct symfile_segment_data) | |
2424 | <~symfile_segment_data>: Remove. | |
2425 | <segment_info>: Change to std::vector. | |
2426 | * symfile.c (default_symfile_segments): Update. | |
2427 | * elfread.c (elf_symfile_segments): Update. | |
2428 | ||
68b888ff SM |
2429 | 2020-05-19 Simon Marchi <simon.marchi@efficios.com> |
2430 | ||
2431 | * symfile.h (struct symfile_segment_data) <struct segment>: New. | |
2432 | <segments>: New. | |
2433 | <segment_bases, segment_sizes>: Remove. | |
2434 | * symfile.c (default_symfile_segments): Update. | |
2435 | * elfread.c (elf_symfile_segments): Update. | |
2436 | * remote.c (remote_target::get_offsets): Update. | |
2437 | * solib-target.c (solib_target_relocate_section_addresses): | |
2438 | Update. | |
2439 | ||
62982abd SM |
2440 | 2020-05-19 Simon Marchi <simon.marchi@efficios.com> |
2441 | ||
2442 | * symfile.h (struct symfile_segment_data): Initialize fields. | |
2443 | <~symfile_segment_data>: Add. | |
2444 | (symfile_segment_data_up): New. | |
2445 | (struct sym_fns) <sym_segments>: Return a | |
2446 | symfile_segment_data_up. | |
2447 | (default_symfile_segments): Return a symfile_segment_data_up. | |
2448 | (free_symfile_segment_data): Remove. | |
2449 | (get_symfile_segment_data): Return a symfile_segment_data_up. | |
2450 | * symfile.c (default_symfile_segments): Likewise. | |
2451 | (get_symfile_segment_data): Likewise. | |
2452 | (free_symfile_segment_data): Remove. | |
2453 | (symfile_find_segment_sections): Update. | |
2454 | * elfread.c (elf_symfile_segments): Return a | |
2455 | symfile_segment_data_up. | |
2456 | * remote.c (remote_target::get_offsets): Update. | |
2457 | * solib-target.c (solib_target_relocate_section_addresses): | |
2458 | Update. | |
2459 | * symfile-debug.c (debug_sym_segments): Return a | |
2460 | symfile_segment_data_up. | |
2461 | ||
7f204339 RO |
2462 | 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
2463 | ||
e52a0f1b RO |
2464 | PR build/25981 |
2465 | * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap): | |
2466 | Hardcode register numbers. | |
2467 | ||
7f204339 RO |
2468 | PR build/25981 |
2469 | * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry, | |
2470 | procfs_find_LDT_entry): Remove. | |
2471 | * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd, | |
2472 | procfs_find_LDT_entry): Remove. | |
2473 | * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT): | |
2474 | Remove. | |
2475 | ||
7f32a4d5 PA |
2476 | 2020-05-17 Pedro Alves <palves@redhat.com> |
2477 | Andrew Burgess <andrew.burgess@embecosm.com> | |
2478 | Keno Fischer <keno@juliacomputing.com> | |
2479 | ||
2480 | PR gdb/25741 | |
2481 | * breakpoint.c (build_target_condition_list): Update comments. | |
2482 | (build_target_command_list): Update comments and skip matching | |
2483 | locations. | |
2484 | (insert_bp_location): Move "set breakpoint auto-hw on" handling to | |
2485 | a separate function. Simplify "set breakpoint auto-hw off" | |
2486 | handling. | |
2487 | (insert_breakpoints): Update comment. | |
2488 | (tracepoint_locations_match): New parameter. For breakpoints, | |
2489 | compare location types too, if the caller wants to. | |
2490 | (handle_automatic_hardware_breakpoints): New functions. | |
2491 | (bp_location_is_less_than): Also sort by location type and | |
2492 | hardware breakpoint length. | |
2493 | (update_global_location_list): Handle "set breakpoint auto-hw on" | |
2494 | here. | |
2495 | (update_breakpoint_locations): Ask breakpoint_locations_match to | |
2496 | ignore location types. | |
2497 | ||
7d93a1e0 SM |
2498 | 2020-05-16 Simon Marchi <simon.marchi@efficios.com> |
2499 | ||
2500 | * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use | |
2501 | type::name instead. | |
2502 | ||
d0e39ea2 SM |
2503 | 2020-05-16 Simon Marchi <simon.marchi@efficios.com> |
2504 | ||
2505 | * gdbtypes.h (struct type) <name, set_name>: New methods. | |
2506 | (TYPE_CODE): Use type::name. Change all call sites used to set | |
2507 | the name to use type::set_name instead. | |
2508 | ||
2dab0c7b TT |
2509 | 2020-05-16 Tom Tromey <tom@tromey.com> |
2510 | ||
2511 | * top.c (quit_force): Update. | |
2512 | * infrun.c (handle_no_resumed): Update. | |
2513 | * top.h (all_uis): New function. | |
2514 | (ALL_UIS): Remove. | |
2515 | ||
59f7bd8d SM |
2516 | 2020-05-16 Simon Marchi <simon.marchi@efficios.com> |
2517 | ||
2518 | * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition. | |
2519 | ||
9bf058f0 PA |
2520 | 2020-05-16 Pedro Alves <palves@redhat.com> |
2521 | ||
2522 | * ia64-linux-nat.c | |
2523 | (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>: | |
2524 | Declare method. | |
2525 | (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target. | |
2526 | ||
8f86ae1a SM |
2527 | 2020-05-15 Simon Marchi <simon.marchi@efficios.com> |
2528 | ||
2529 | * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct). | |
2530 | (sparc64_adi_info): Likewise. | |
2531 | ||
d6bc0792 TT |
2532 | 2020-05-15 Tom Tromey <tom@tromey.com> |
2533 | ||
2534 | * symtab.c (lookup_language_this, lookup_symbol_aux): Use | |
2535 | block_objfile. | |
2536 | (lookup_objfile_from_block): Remove. | |
2537 | (lookup_symbol_in_block, lookup_symbol_in_static_block) | |
2538 | (lookup_global_symbol): Use block_objfile. | |
2539 | * symtab.h (lookup_objfile_from_block): Don't declare. | |
2540 | * printcmd.c (clear_dangling_display_expressions): Use | |
2541 | block_objfile. | |
2542 | * parse.c (operator_check_standard): Use block_objfile. | |
2543 | ||
8c14c3a3 TT |
2544 | 2020-05-15 Tom Tromey <tom@tromey.com> |
2545 | ||
2546 | * language.c (language_alloc_type_symbol): Set | |
2547 | SYMBOL_SECTION. | |
2548 | * symtab.c (initialize_objfile_symbol): Remove. | |
2549 | (allocate_symbol): Remove. | |
2550 | (allocate_template_symbol): Remove. | |
2551 | * dwarf2/read.c (fixup_go_packaging): Use "new". | |
2552 | (new_symbol): Use "new". | |
2553 | (read_variable): Don't call initialize_objfile_symbol. Use | |
2554 | "new". | |
2555 | (read_func_scope): Use "new". | |
2556 | * xcoffread.c (process_xcoff_symbol): Don't call | |
2557 | initialize_objfile_symbol. | |
2558 | (SYMBOL_DUP): Remove. | |
2559 | * coffread.c (process_coff_symbol, coff_read_enum_type): Use | |
2560 | "new". | |
2561 | * symtab.h (allocate_symbol, initialize_objfile_symbol) | |
2562 | (allocate_template_symbol): Don't declare. | |
2563 | (struct symbol): Add copy constructor. Change defaults. | |
2564 | * jit.c (finalize_symtab): Use "new". | |
2565 | * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb): | |
2566 | Use "new". | |
2567 | * stabsread.c (patch_block_stabs, define_symbol, read_enum_type) | |
2568 | (common_block_end): Use "new". | |
2569 | * mdebugread.c (parse_symbol): Use "new". | |
2570 | (new_symbol): Likewise. | |
2571 | ||
5b4a1a8d PW |
2572 | 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
2573 | ||
2574 | * NEWS: Mention changes to help and apropos. | |
2575 | ||
57b4f16e PW |
2576 | 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
2577 | ||
2578 | * command.h (enum command_class): Improve comments, document | |
2579 | that class_alias is for user-defined aliases, give the class | |
2580 | name for each class, remove unused class_xdb. | |
2581 | * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage. | |
2582 | * breakpoint.c (_initialize_breakpoint): Replace class_alias | |
2583 | by a precise class. | |
2584 | * infcmd.c (_initialize_infcmd): Likewise. | |
2585 | * reverse.c (_initialize_reverse): Likewise. | |
2586 | * stack.c (_initialize_stack): Likewise. | |
2587 | * symfile.c (_initialize_symfile): Likewise. | |
2588 | * tracepoint.c (_initialize_tracepoint): Likewise. | |
2589 | ||
7c05caf7 PW |
2590 | 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
2591 | ||
2592 | * cli/cli-decode.c (apropos_cmd): Produce output for aliases | |
2593 | when their aliased command is traversed. | |
2594 | (help_cmd): Add fput_command_names_styled call to | |
2595 | output command name and aliases when command has an alias. | |
2596 | ||
3b3aaacb PW |
2597 | 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
2598 | ||
2599 | * cli/cli-decode.h (help_cmd_list): Remove declaration. | |
2600 | * cli/cli-decode.c (help_cmd_list): Declare as static, | |
2601 | remove prefix argument, use bool for recurse arg, rework to show the aliases of | |
2602 | a command together with the command. | |
2603 | (fput_command_name_styled, fput_command_names_styled): New functions. | |
2604 | (print_help_for_command): Remove prefix arg, use bool for recurse arg, use | |
2605 | fput_command_name_styled. | |
2606 | (help_list, help_all): Update callers to remove prefix arg and use bool recurse. | |
2607 | * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc. | |
2608 | ||
7aa1b46f PW |
2609 | 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
2610 | ||
2611 | * cli/cli-setshow.h (cmd_show_list): Remove prefix argument. | |
2612 | * cli/cli-decode.c (do_show_prefix_cmd): Likewise. | |
2613 | * command.h (cmd_show_list): Likewise. | |
2614 | * dwarf2/index-cache.c (show_index_cache_command): Likewise. | |
2615 | * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases. | |
2616 | ||
89bcba74 PW |
2617 | 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
2618 | ||
2619 | * unittests/command-def-selftests.c (traverse_command_structure): | |
2620 | Verify all commands of a list have the same prefix command and | |
2621 | that only the top cmdlist commands have a null prefix. | |
2622 | ||
3f4d92eb PW |
2623 | 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
2624 | ||
2625 | * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command | |
2626 | as prefix, not one of its aliases. | |
2627 | (set_cmd_prefix): Remove. | |
2628 | (do_add_cmd): Centralize the setting of the prefix of a command, when | |
2629 | command is defined after its full chain of prefix commands. | |
2630 | (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it. | |
2631 | (add_setshow_cmd_full): Likewise. | |
2632 | (update_prefix_field_of_prefixed_commands): New function. | |
2633 | (add_prefix_cmd): Replace non working call to set_cmd_prefix by | |
2634 | update_prefix_field_of_prefixed_commands. | |
2635 | * gdb/remote-fileio.c (initialize_remote_fileio): Use the real | |
2636 | addresses of remote_set_cmdlist and remote_show_cmdlist given | |
2637 | as argument, not the address of an argument. | |
2638 | * gdb/remote-fileio.h (initialize_remote_fileio): Likewise. | |
2639 | * gdb/remote.c (_initialize_remote): Likewise. | |
2640 | ||
0605465f PW |
2641 | 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
2642 | ||
2643 | * cli/cli-cmds.c (alias_command): Check for an existing alias | |
2644 | using lookup_cmd_composition, as valid_command_p is too strict | |
2645 | and forbids aliases that are the prefix of an existing alias | |
2646 | or command. | |
2647 | * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix | |
2648 | command is properly recognised as a valid command. | |
2649 | ||
58e6ac70 PW |
2650 | 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
2651 | ||
2652 | * unittests/help-doc-selftests.c: Rename to | |
2653 | unittests/command-def-selftests.c | |
2654 | * unittests/command-def-selftests.c (help_doc_tests): Update some | |
2655 | comments. | |
2656 | (command_structure_tests, traverse_command_structure): New namespace | |
2657 | and function. | |
2658 | (command_structure_invariants_tests): New function. | |
2659 | (_initialize_command_def_selftests) Renamed from | |
2660 | _initialize_help_doc_selftests, register command_structure_invariants | |
2661 | selftest. | |
2662 | ||
a7b9ceb8 PW |
2663 | 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
2664 | ||
2665 | * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as | |
2666 | an alias of 'show'. | |
2667 | ||
b2188a06 JB |
2668 | 2020-05-15 Joel Brobecker <brobecker@adacore.com> |
2669 | ||
2670 | * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames | |
2671 | ada_is_fixed_point_type. Update all callers. | |
2672 | (gnat_encoded_fixed_point_delta): Renames ada_delta. Update | |
2673 | all callers. | |
2674 | * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info. | |
2675 | Update all callers. | |
2676 | * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames | |
2677 | print_fixed_point_type. Update all callers. | |
2678 | * ada-valprint.c (ada_value_print_num): Replace call to | |
2679 | ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type. | |
2680 | ||
a51951c2 KB |
2681 | 2020-05-14 Kevin Buettner <kevinb@redhat.com> |
2682 | ||
2683 | * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD | |
2684 | processors. | |
2685 | (cpu_supports_bts): Add CV_AMD case. | |
2686 | ||
29d6859f LM |
2687 | 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com> |
2688 | Simon Marchi <simon.marchi@efficios.com> | |
2689 | ||
2690 | * infrun.c (stop_all_threads): Collect multiple wait events at | |
2691 | each pass. | |
2692 | ||
78134374 SM |
2693 | 2020-05-14 Simon Marchi <simon.marchi@efficios.com> |
2694 | ||
2695 | * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use | |
2696 | type::code instead. | |
2697 | ||
67607e24 SM |
2698 | 2020-05-14 Simon Marchi <simon.marchi@efficios.com> |
2699 | ||
2700 | * gdbtypes.h (struct type) <code, set_code>: New methods. | |
2701 | (TYPE_CODE): Use type::code. Change all call sites used to set | |
2702 | the code to use type::set_code instead. | |
2703 | ||
a05575d3 TBA |
2704 | 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
2705 | Tom de Vries <tdevries@suse.de> | |
2706 | Pedro Alves <palves@redhat.com> | |
2707 | ||
2708 | PR threads/25478 | |
2709 | * infrun.c (stop_all_threads): Do NOT ignore | |
2710 | TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED, | |
2711 | TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses | |
2712 | received. | |
2713 | (handle_no_resumed): Remove code handling a live inferior with no | |
2714 | threads. | |
2715 | * remote.c (has_single_non_exited_thread): New. | |
2716 | (remote_target::update_thread_list): Do not delete a thread if is | |
2717 | the last thread of the process. | |
2718 | * thread.c (thread_select): Call delete_exited_threads instead of | |
2719 | prune_threads. | |
2720 | ||
6ad82919 TBA |
2721 | 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
2722 | ||
2723 | * infrun.c (stop_all_threads): Enable/disable thread events of all | |
2724 | targets. Move a debug message denoting the end of the function | |
2725 | into the SCOPED_EXIT block. | |
2726 | ||
d890404b TBA |
2727 | 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
2728 | ||
2729 | * process-stratum-target.h: Include <set>. | |
2730 | (all_non_exited_process_targets, switch_to_target_no_thread): New | |
2731 | function declarations. | |
2732 | * process-stratum-target.c (all_non_exited_process_targets) | |
2733 | (switch_to_target_no_thread): New function implementations. | |
2734 | ||
293b3ebc TBA |
2735 | 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
2736 | ||
2737 | * infrun.c (handle_inferior_event): Extract out a piece of code | |
2738 | into... | |
2739 | (mark_non_executing_threads): ...this new function. | |
2740 | ||
7ca9b62a TBA |
2741 | 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
2742 | ||
2743 | * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first | |
2744 | use. | |
2745 | ||
fc75c28b TBA |
2746 | 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
2747 | ||
2748 | * regcache.c (regcache_read_pc_protected): New function | |
2749 | implementation that returns 0 if the PC cannot read via | |
2750 | 'regcache_read_pc'. | |
2751 | * infrun.c (proceed): Call 'regcache_read_pc_protected' | |
2752 | instead of 'regcache_read_pc'. | |
2753 | (keep_going_pass_signal): Ditto. | |
2754 | ||
a89febbd TT |
2755 | 2020-05-13 Tom Tromey <tromey@adacore.com> |
2756 | ||
2757 | * ada-lang.c (align_value): Remove. | |
2758 | (ada_template_to_fixed_record_type_1): Use align_up. | |
2759 | ||
f7e23710 TBA |
2760 | 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
2761 | ||
2762 | * async-event.c: Update the copyright year. | |
2763 | * async-event.h: Update the copyright year. | |
2764 | ||
02ff80c2 SM |
2765 | 2020-05-12 Simon Marchi <simon.marchi@efficios.com> |
2766 | ||
2767 | * objfiles.h (is_addr_in_objfile, | |
2768 | shared_objfile_contains_address_p): Return bool. | |
2769 | * objfile.c (is_addr_in_objfile, | |
2770 | shared_objfile_contains_address_p): Return bool. | |
2771 | ||
4fd6c7e8 TT |
2772 | 2020-05-11 Tom Tromey <tromey@adacore.com> |
2773 | ||
2774 | * cli/cli-cmds.c (info_command): Restore. | |
2775 | (_initialize_cli_cmds): Use add_prefix_command for "info". | |
2776 | * gdb-gdb.gdb.in: Restore breakpoint on info_command. | |
2777 | ||
5eb68a39 TT |
2778 | 2020-05-11 Tom Tromey <tromey@adacore.com> |
2779 | ||
2780 | * ada-lang.c (ada_value_primitive_field): Now public. | |
2781 | * ada-lang.h (ada_value_primitive_field): Declare. | |
2782 | * ada-valprint.c (print_field_values): Use | |
2783 | ada_value_primitive_field for wrapper fields. | |
2784 | ||
7666722f TV |
2785 | 2020-05-11 Tom de Vries <tdevries@suse.de> |
2786 | ||
2787 | * dwarf2/index-write.c (debug_names::psymbol_tag): Handle | |
2788 | MODULE_DOMAIN. | |
2789 | ||
3ee6bb11 TV |
2790 | 2020-05-11 Tom de Vries <tdevries@suse.de> |
2791 | ||
2792 | PR symtab/25941 | |
2793 | * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs | |
2794 | with length 0, if not gdb-produced. | |
2795 | (cutu_reader::cutu_reader): Set CU length to actual length if 0. | |
2796 | ||
43434996 TV |
2797 | 2020-05-09 Tom de Vries <tdevries@suse.de> |
2798 | ||
2799 | PR gdb/25955 | |
2800 | * break-catch-throw.c (check_status_exception_catchpoint): Fix name | |
2801 | calculation. | |
2802 | ||
2f78cffc TT |
2803 | 2020-05-09 Tom Tromey <tom@tromey.com> |
2804 | ||
2805 | * top.c (server_command): Now bool. | |
2806 | * top.h (server_command): Now bool. | |
2807 | ||
4f7bc5ed TT |
2808 | 2020-05-08 Tom Tromey <tromey@adacore.com> |
2809 | ||
2810 | * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE | |
2811 | already being processed. | |
2812 | ||
8be4b118 TT |
2813 | 2020-05-08 Tom Tromey <tom@tromey.com> |
2814 | ||
2815 | * printcmd.c (struct display) <next>: Remove. | |
2816 | <display>: New constructor. | |
2817 | <exp_string>: Now a std::string. | |
2818 | <enabled_p>: Now a bool. | |
2819 | (display_number): Move definition earlier. | |
2820 | (displays): Rename from display_chain. Now a std::vector. | |
2821 | (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove. | |
2822 | (display_command): Update. | |
2823 | (do_one_display, disable_display) | |
2824 | (enable_disable_display_command, do_enable_disable_display): | |
2825 | Update. | |
2826 | (free_display): Remove. | |
2827 | (clear_displays): Rewrite. | |
2828 | (delete_display): Update. | |
2829 | (map_display_numbers): Use function_view. Remove "data" | |
2830 | parameter. Update. | |
2831 | (do_delete_display): Remove. | |
2832 | (undisplay_command): Update. | |
2833 | (do_one_display, do_displays, disable_display) | |
2834 | (info_display_command): Update. | |
2835 | (do_enable_disable_display): Remove. | |
2836 | (enable_disable_display_command) | |
2837 | (clear_dangling_display_expressions): Update. | |
2838 | ||
94c93c35 TT |
2839 | 2020-05-08 Tom Tromey <tom@tromey.com> |
2840 | ||
2841 | * symtab.c (set_symbol_cache_size) | |
2842 | (maintenance_print_symbol_cache, maintenance_flush_symbol_cache) | |
2843 | (maintenance_print_symbol_cache_statistics): Update. | |
2844 | * symmisc.c (print_symbol_bcache_statistics) | |
2845 | (print_objfile_statistics, maintenance_print_objfiles) | |
2846 | (maintenance_info_symtabs, maintenance_check_symtabs) | |
2847 | (maintenance_expand_symtabs, maintenance_info_line_tables): | |
2848 | Update. | |
2849 | * symfile-debug.c (set_debug_symfile): Update. | |
2850 | * source.c (forget_cached_source_info): Update. | |
2851 | * python/python.c (gdbpy_progspaces): Update. | |
2852 | * psymtab.c (maintenance_info_psymtabs): Update. | |
2853 | * probe.c (parse_probes): Update. | |
2854 | * linespec.c (iterate_over_all_matching_symtabs) | |
2855 | (collect_symtabs_from_filename, search_minsyms_for_name): Update. | |
2856 | * guile/scm-progspace.c (gdbscm_progspaces): Update. | |
2857 | * exec.c (exec_target::close): Update. | |
2858 | * ada-tasks.c (ada_tasks_new_objfile_observer): Update. | |
2859 | * breakpoint.c (print_one_breakpoint_location) | |
2860 | (create_longjmp_master_breakpoint) | |
2861 | (create_std_terminate_master_breakpoint): Update. | |
2862 | * progspace.c (program_spaces): Now a std::vector. | |
2863 | (maybe_new_address_space): Update. | |
2864 | (add_program_space): Remove. | |
2865 | (program_space::program_space): Update. | |
2866 | (remove_program_space): Update. | |
2867 | (number_of_program_spaces): Remove. | |
2868 | (print_program_space, update_address_spaces): Update. | |
2869 | * progspace.h (program_spaces): Change type. | |
2870 | (ALL_PSPACES): Remove. | |
2871 | (number_of_program_spaces): Don't declare. | |
2872 | (struct program_space) <next>: Remove. | |
2873 | ||
a1fd1ac9 TT |
2874 | 2020-05-08 Tom Tromey <tom@tromey.com> |
2875 | ||
2876 | * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update. | |
2877 | * solib-svr4.c (svr4_fetch_objfile_link_map): Update. | |
2878 | (enable_break): Update. | |
2879 | * solib-frv.c (frv_fdpic_find_global_pointer): Update. | |
2880 | (frv_fdpic_find_canonical_descriptor): Update. | |
2881 | (frv_fetch_objfile_link_map): Update. | |
2882 | * progspace.c (program_space::free_all_objfiles): Update. | |
2883 | (program_space::solibs): New method. | |
2884 | * progspace.h (struct program_space) <solibs>: New method. | |
2885 | * solist.h (master_so_list): Don't declare. | |
2886 | (ALL_SO_LIBS): Remove. | |
2887 | * solib.h (so_list_head): Remove. | |
2888 | (update_solib_list): Update comment. | |
2889 | * solib.c (master_so_list): Remove. | |
2890 | (solib_used, update_solib_list, solib_add) | |
2891 | (info_sharedlibrary_command, clear_solib) | |
2892 | (reload_shared_libraries_1, remove_user_added_objfile): Update. | |
2893 | ||
38eae084 TT |
2894 | 2020-05-08 Tom Tromey <tom@tromey.com> |
2895 | ||
2896 | * extension.c (extension_languages): Now a std::array. | |
2897 | (ALL_EXTENSION_LANGUAGES): Remove. | |
2898 | (get_ext_lang_defn, get_ext_lang_of_file) | |
2899 | (eval_ext_lang_from_control_command): Update. | |
2900 | (finish_ext_lang_initialization) | |
2901 | (auto_load_ext_lang_scripts_for_objfile) | |
2902 | (ext_lang_type_printers::ext_lang_type_printers) | |
2903 | (apply_ext_lang_type_printers) | |
2904 | (ext_lang_type_printers::~ext_lang_type_printers) | |
2905 | (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter) | |
2906 | (preserve_ext_lang_values, get_breakpoint_cond_ext_lang) | |
2907 | (breakpoint_ext_lang_cond_says_stop, check_quit_flag) | |
2908 | (get_matching_xmethod_workers, ext_lang_colorize) | |
2909 | (ext_lang_before_prompt): Update. | |
2910 | (ALL_ENABLED_EXTENSION_LANGUAGES): Remove. | |
2911 | ||
596dc4ad TT |
2912 | 2020-05-08 Tom Tromey <tom@tromey.com> |
2913 | ||
2914 | * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New | |
2915 | overload. | |
2916 | <swap_string, m_string>: Remove. | |
2917 | * symtab.c (demangle_for_lookup, completion_list_add_symbol): | |
2918 | Update. | |
2919 | * stabsread.c (define_symbol, read_type): Update. | |
2920 | * linespec.c (find_linespec_symbols): Update. | |
2921 | * gnu-v3-abi.c (gnuv3_get_typeid): Update. | |
2922 | * dwarf2/read.c (dwarf2_canonicalize_name): Update. | |
2923 | * dbxread.c (read_dbx_symtab): Update. | |
2924 | * cp-support.h (cp_canonicalize_string_full) | |
2925 | (cp_canonicalize_string, cp_canonicalize_string_no_typedefs): | |
2926 | Return unique_xmalloc_ptr. | |
2927 | * cp-support.c (inspect_type): Update. | |
2928 | (cp_canonicalize_string_full): Return unique_xmalloc_ptr. | |
2929 | (cp_canonicalize_string_no_typedefs, cp_canonicalize_string): | |
2930 | Likewise. | |
2931 | * c-typeprint.c (print_name_maybe_canonical): Update. | |
2932 | * break-catch-throw.c (check_status_exception_catchpoint): | |
2933 | Update. | |
2934 | ||
bf4cb9be TV |
2935 | 2020-05-08 Tom de Vries <tdevries@suse.de> |
2936 | ||
2937 | * infrun.c (follow_fork): Copy current_line and current_symtab to | |
2938 | child thread. | |
2939 | ||
a1b68f28 SM |
2940 | 2020-05-07 Simon Marchi <simon.marchi@efficios.com> |
2941 | ||
2942 | * async-event.c (struct async_signal_handler, struct | |
2943 | async_event_handler): Reformat, remove typedef. | |
2944 | ||
98d48915 SM |
2945 | 2020-05-07 Simon Marchi <simon.marchi@efficios.com> |
2946 | ||
2947 | * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users | |
2948 | access thistype->main_type->dyn_prop_list directly. | |
2949 | ||
7aa91313 SM |
2950 | 2020-05-07 Simon Marchi <simon.marchi@efficios.com> |
2951 | ||
2952 | * gdbtypes.h (struct type) <remove_dyn_prop>: New method. | |
2953 | (remove_dyn_prop): Remove. Update all users to use | |
2954 | type::remove_dyn_prop. | |
2955 | * gdbtypes.c (remove_dyn_prop): Rename to... | |
2956 | (type::remove_dyn_prop): ... this. | |
2957 | ||
5c54719c SM |
2958 | 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org> |
2959 | ||
2960 | * gdbtypes.h (struct type) <add_dyn_prop>: New method. | |
2961 | (add_dyn_prop): Remove. Update all users to use | |
2962 | type::add_dyn_prop. | |
2963 | * gdbtypes.c (add_dyn_prop): Rename to... | |
2964 | (type::add_dyn_prop): ... this. | |
2965 | ||
24e99c6c SM |
2966 | 2020-05-07 Simon Marchi <simon.marchi@efficios.com> |
2967 | ||
2968 | * gdbtypes.h (struct type) <get_dyn_prop>: New method. | |
2969 | (get_dyn_prop): Remove. Update all users to use | |
2970 | type::dyn_prop. | |
2971 | * gdbtypes.c (get_dyn_prop): Rename to... | |
2972 | (type::dyn_prop): ... this. | |
2973 | ||
0d4bf016 SM |
2974 | 2020-05-06 Simon Marchi <simon.marchi@efficios.com> |
2975 | ||
2976 | * gdbtypes.h (struct main_type) <flag_static>: Remove. | |
2977 | ||
ac4a4f1c SM |
2978 | 2020-05-06 Simon Marchi <simon.marchi@efficios.com> |
2979 | ||
2980 | * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64` | |
2981 | instruction, skip it if it's there. | |
2982 | ||
a3bbacc1 SM |
2983 | 2020-05-05 Simon Marchi <simon.marchi@efficios.com> |
2984 | ||
2985 | * gdbtypes.h (struct main_type) <flag_incomplete>: Remove. | |
2986 | ||
c3236f84 SM |
2987 | 2020-05-04 Simon Marchi <simon.marchi@efficios.com> |
2988 | ||
2989 | * gdbtypes.h (TYPE_INCOMPLETE): Remove. | |
2990 | * gdbtypes.c (recursive_dump_type): Remove use of | |
2991 | TYPE_INCOMPLETE. | |
2992 | ||
3b6acaee TT |
2993 | 2020-05-03 Tom Tromey <tom@tromey.com> |
2994 | ||
2995 | * breakpoint.c (catch_command, tcatch_command): Remove. | |
2996 | (_initialize_breakpoint): Use add_basic_prefix_cmd, | |
2997 | add_show_prefix_cmd. | |
2998 | (set_breakpoint_cmd, show_breakpoint_cmd): Remove | |
2999 | * utils.c (set_internal_problem_cmd, show_internal_problem_cmd): | |
3000 | Remove. | |
3001 | (add_internal_problem_command): Use add_basic_prefix_cmd, | |
3002 | add_show_prefix_cmd. | |
3003 | * mips-tdep.c (set_mipsfpu_command): Remove. | |
3004 | (_initialize_mips_tdep): Use add_basic_prefix_cmd. | |
3005 | * dwarf2/index-cache.c (set_index_cache_command): Remove. | |
3006 | (_initialize_index_cache): Use add_basic_prefix_cmd. | |
3007 | * memattr.c (dummy_cmd): Remove. | |
3008 | (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd. | |
3009 | * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove. | |
3010 | (_initialize_tui_win): Use add_basic_prefix_cmd, | |
3011 | add_show_prefix_cmd. | |
3012 | * cli/cli-logging.c (set_logging_command): Remove. | |
3013 | (_initialize_cli_logging): Use add_basic_prefix_cmd, | |
3014 | add_show_prefix_cmd. | |
3015 | (show_logging_command): Remove. | |
3016 | * target.c (target_command): Remove. | |
3017 | (add_target): Use add_basic_prefix_cmd. | |
3018 | ||
a51119cd HD |
3019 | 2020-05-02 Hannes Domani <ssbssa@yahoo.de> |
3020 | ||
3021 | * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo. | |
3022 | ||
652fc23a | 3023 | 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
6a6ea76a | 3024 | |
652fc23a PW |
3025 | * gdb-gdb.gdb-in: Remove breakpoint on disappeared function |
3026 | info_command. | |
3027 | ||
117539e6 KR |
3028 | 2020-04-30 Kamil Rytarowski <n54@gmx.com> |
3029 | ||
3030 | * nbsd-nat.c (nbsd_enable_proc_events) | |
3031 | (nbsd_nat_target::post_startup_inferior): Add. | |
3032 | (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'. | |
3033 | (nbsd_nat_target::update_thread_list): Rewrite. | |
3034 | (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and | |
3035 | "PTRACE_LWP_CREATE". | |
3036 | * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add. | |
3037 | ||
102e38eb | 3038 | 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
6a6ea76a | 3039 | |
102e38eb PW |
3040 | * stack.c (_initialize_stack): Remove duplicated creation |
3041 | of "frame" command and "f" alias. | |
3042 | ||
ee9d1e5f HD |
3043 | 2020-04-30 Hannes Domani <ssbssa@yahoo.de> |
3044 | ||
3045 | PR gdb/18706 | |
3046 | * gdbtypes.c (check_typedef): Calculate size of array of | |
3047 | stubbed type. | |
3048 | ||
627c7fb8 HD |
3049 | 2020-04-30 Hannes Domani <ssbssa@yahoo.de> |
3050 | ||
3051 | PR gdb/15559 | |
3052 | * i386-tdep.c (i386_push_dummy_call): Call | |
3053 | i386_thiscall_push_dummy_call. | |
3054 | (i386_thiscall_push_dummy_call): New function. | |
3055 | * i386-tdep.h (i386_thiscall_push_dummy_call): Declare. | |
3056 | * i386-windows-tdep.c (i386_windows_push_dummy_call): New function. | |
3057 | (i386_windows_init_abi): Call set_gdbarch_push_dummy_call. | |
3058 | ||
ffc2844e SM |
3059 | 2020-04-29 Simon Marchi <simon.marchi@efficios.com> |
3060 | ||
3061 | * gdbarch.sh (do_read): Add shellcheck disable directive for | |
3062 | warning SC2162. | |
3063 | ||
1207375d SM |
3064 | 2020-04-29 Simon Marchi <simon.marchi@efficios.com> |
3065 | ||
3066 | * gdbarch.sh: Use ${foo:-} where shellcheck would report a | |
3067 | "referenced but not assigned" warning. | |
3068 | ||
9fdb2916 SM |
3069 | 2020-04-29 Simon Marchi <simon.marchi@efficios.com> |
3070 | ||
3071 | * gdbarch.sh: Remove code that sets fallbackdefault. | |
3072 | ||
759cea5e SM |
3073 | 2020-04-29 Simon Marchi <simon.marchi@efficios.com> |
3074 | ||
3075 | * gdbarch.sh: Use shell operators && and || instead of | |
3076 | -a and -o. | |
3077 | ||
cb02ab24 SM |
3078 | 2020-04-29 Simon Marchi <simon.marchi@efficios.com> |
3079 | ||
3080 | * gdbarch.sh: Use $(...) instead of `...`. | |
3081 | ||
a6fc5ffc SM |
3082 | 2020-04-29 Simon Marchi <simon.marchi@efficios.com> |
3083 | ||
3084 | * gdbarch.sh: Use double quotes around variables. | |
3085 | ||
8d113d13 SM |
3086 | 2020-04-29 Simon Marchi <simon.marchi@efficios.com> |
3087 | ||
3088 | * gdbarch.sh: Use %s with printf, instead of variables in the | |
3089 | format string. | |
3090 | ||
ed6acedd TT |
3091 | 2020-04-29 Tom Tromey <tromey@adacore.com> |
3092 | ||
3093 | PR ada/25875: | |
3094 | * dwarf2/read.c (update_enumeration_type_from_children): Compute | |
3095 | type fields here. | |
3096 | (read_enumeration_type): Call | |
3097 | update_enumeration_type_from_children later. Update comments. | |
3098 | (process_enumeration_scope): Don't create type fields. | |
3099 | ||
b68b1b58 KR |
3100 | 2020-04-29 Kamil Rytarowski <n54@gmx.com> |
3101 | ||
3102 | * nbsd-tdep.c: Include "xml-syscall.h". | |
3103 | (nbsd_init_abi): Call `set_xml_syscall_file_name'. | |
3104 | ||
f94b2e03 KR |
3105 | 2020-04-29 Kamil Rytarowski <n54@gmx.com> |
3106 | ||
3107 | * nbsd-nat.c: Include "sys/wait.h". | |
3108 | (nbsd_resume, nbsd_nat_target::resume, nbsd_wait) | |
3109 | (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint) | |
3110 | (nbsd_nat_target::remove_exec_catchpoint) | |
3111 | (nbsd_nat_target::set_syscall_catchpoint): Add. | |
3112 | * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait) | |
3113 | (nbsd_nat_target::insert_exec_catchpoint) | |
3114 | (nbsd_nat_target::remove_exec_catchpoint) | |
3115 | (nbsd_nat_target::set_syscall_catchpoint): Add. | |
3116 | * nbsd-tdep.c (nbsd_get_syscall_number): Add. | |
3117 | (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass | |
3118 | `nbsd_get_syscall_number'. | |
3119 | ||
fc49bc72 TT |
3120 | 2020-04-29 Tom Tromey <tom@tromey.com> |
3121 | ||
3122 | * stack.c (print_block_frame_labels): Remove. | |
3123 | ||
d642b692 HD |
3124 | 2020-04-29 Hannes Domani <ssbssa@yahoo.de> |
3125 | ||
3126 | PR gdb/17320 | |
3127 | * ada-valprint.c (val_print_packed_array_elements): Move array | |
3128 | end bracket to new line. | |
3129 | (ada_val_print_string): Remove extra spaces before first array | |
3130 | element. | |
3131 | * c-valprint.c (c_value_print_array): Likewise. | |
3132 | * m2-valprint.c (m2_print_array_contents): Likewise. | |
3133 | (m2_value_print_inner): Likewise. | |
3134 | * p-valprint.c (pascal_value_print_inner): Likewise. | |
3135 | * valprint.c (generic_val_print_array): Likewise. | |
3136 | (value_print_array_elements): Move first array element and array | |
3137 | end bracket to new line. | |
3138 | ||
ea90f227 TV |
3139 | 2020-04-29 Tom de Vries <tdevries@suse.de> |
3140 | ||
3141 | PR symtab/25889 | |
3142 | * linespec.c (find_method): Fix ix calculation. | |
3143 | ||
4498ef4f KR |
3144 | 2020-04-28 Kamil Rytarowski <n54@gmx.com> |
3145 | ||
3146 | * syscalls/update-netbsd.sh: New file. | |
3147 | * syscalls/netbsd.xml: Regenerate. | |
3148 | * data-directory/Makefile.in: Register `netbsd.xml' in | |
3149 | `SYSCALLS_FILES'. | |
3150 | ||
a55e30b5 SM |
3151 | 2020-04-28 Simon Marchi <simon.marchi@efficios.com> |
3152 | ||
3153 | * syscalls/update-freebsd.sh: Add double quotes. | |
3154 | ||
2b2fbab8 TT |
3155 | 2020-04-28 Tom Tromey <tom@tromey.com> |
3156 | ||
3157 | * NEWS: Update. | |
3158 | * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI. | |
3159 | (cmdpy_init): Allow class_tui. | |
3160 | ||
a65189c9 TV |
3161 | 2020-04-28 Mark Williams <mark@myosotissp.com> |
3162 | ||
3163 | PR gdb/24480 | |
3164 | * dwarf2read.c: Add missing assingments to list_in_scope when | |
3165 | start_symtab was already called. | |
3166 | ||
1b95cdb7 SM |
3167 | 2020-04-28 Simon Marchi <simon.marchi@efficios.com> |
3168 | ||
3169 | PR gdb/25881 | |
3170 | * dwarf2/read.c (offset_map_type): Use | |
3171 | gdb:hash_enum<sect_offset> as hash function. | |
3172 | ||
15cd93d0 TV |
3173 | 2020-04-28 Tom de Vries <tdevries@suse.de> |
3174 | ||
3175 | * dwarf2/read.c (process_structure_scope): Add symbol for struct decl | |
3176 | with DW_AT_signature. | |
3177 | ||
1eb39914 SM |
3178 | 2020-04-27 Simon Marchi <simon.marchi@efficios.com> |
3179 | ||
3180 | * configure.ac: Remove check for fs_base/gs_base in | |
3181 | user_regs_struct. | |
3182 | * configure: Re-generate. | |
3183 | * config.in: Re-generate. | |
3184 | * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust. | |
3185 | * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers, | |
3186 | amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust. | |
3187 | ||
991a3e2e LM |
3188 | 2020-04-27 Luis Machado <luis.machado@linaro.org> |
3189 | ||
3190 | * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle | |
3191 | problematic inline frame unwinding situation. | |
3192 | * frame.c (frame_id_computed_p): New function. | |
3193 | * frame.h (frame_id_computed_p): New prototype. | |
3194 | ||
361ba0e8 TT |
3195 | 2020-04-26 Tom Tromey <tom@tromey.com> |
3196 | ||
3197 | * command.h (enum command_class) <class_pseudo>: Remove. | |
3198 | ||
bc3609fd PW |
3199 | 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
3200 | ||
3201 | * cli/cli-decode.c (lookup_cmd_composition): Fix comments | |
3202 | and whitespace. | |
3203 | ||
b9771db7 KR |
3204 | 2020-04-25 Kamil Rytarowski <n54@gmx.com> |
3205 | ||
ec16513e SM |
3206 | * inf-ptrace.c (inf_ptrace_target::wait): Remove |
3207 | `PT_GET_PROCESS_STATE' block. | |
b9771db7 | 3208 | |
7151c1af TT |
3209 | 2020-04-24 Tom Tromey <tom@tromey.com> |
3210 | ||
3211 | * symtab.h (symbol_get_demangled_name): Don't declare. | |
3212 | * symtab.c (symbol_get_demangled_name): Remove. | |
3213 | (general_symbol_info::natural_name) | |
3214 | (general_symbol_info::demangled_name): Update. | |
3215 | ||
906bb4c5 TT |
3216 | 2020-04-24 Tom Tromey <tom@tromey.com> |
3217 | ||
3218 | PR rust/25025: | |
3219 | * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust. | |
3220 | ||
bcfe6157 TT |
3221 | 2020-04-24 Tom Tromey <tom@tromey.com> |
3222 | ||
3223 | PR symtab/12707: | |
3224 | * dwarf2/read.c (add_partial_symbol): Use the linkage name if it | |
3225 | exists. | |
3226 | (new_symbol): Likewise. | |
3227 | * compile/compile-object-load.c (get_out_value_type): Use | |
3228 | symbol_matches_search_name. | |
3229 | ||
f049a313 TT |
3230 | 2020-04-24 Tom Tromey <tom@tromey.com> |
3231 | ||
3232 | * dwarf2/read.c (add_partial_symbol): Do not call | |
3233 | compute_and_set_names. | |
3234 | ||
76e288d1 TT |
3235 | 2020-04-24 Tom Tromey <tom@tromey.com> |
3236 | ||
3237 | * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list | |
3238 | overload. | |
3239 | ||
2467f4f6 TT |
3240 | 2020-04-24 Tom Tromey <tom@tromey.com> |
3241 | ||
3242 | * psymtab.c (add_psymbol_to_bcache): Simplify calling convention. | |
3243 | (add_psymbol_to_list): New overload. Make old overload call new | |
3244 | one. | |
3245 | * psympriv.h (add_psymbol_to_list): New overload. | |
3246 | ||
e61108c9 TT |
3247 | 2020-04-24 Tom Tromey <tom@tromey.com> |
3248 | ||
3249 | * dwarf2/read.c (partial_die_info::read) <case | |
3250 | DW_AT_linkage_name>: Use value_as_string. | |
3251 | (dwarf2_string_attr): Use value_as_string. | |
3252 | * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare | |
3253 | method. | |
3254 | * dwarf2/attribute.c (attribute::value_as_string): New method. | |
3255 | ||
8c87a452 TT |
3256 | 2020-04-24 Tom Tromey <tom@tromey.com> |
3257 | ||
3258 | * symtab.c (general_symbol_info::natural_name) | |
3259 | (general_symbol_info::demangled_name): Check for language_rust. | |
3260 | ||
787de330 TT |
3261 | 2020-04-24 Tom Tromey <tom@tromey.com> |
3262 | ||
3263 | * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here... | |
3264 | (dwarf2_physname): ... from here. | |
3265 | (partial_die_info::read): Add Rust "{" hack. | |
3266 | ||
ff985671 TT |
3267 | 2020-04-24 Tom Tromey <tom@tromey.com> |
3268 | ||
3269 | * symtab.h (struct general_symbol_info) <set_demangled_name>: New | |
3270 | method. | |
3271 | (symbol_set_demangled_name): Don't declare. | |
3272 | * symtab.c (general_symbol_info::set_demangled_name): Rename from | |
3273 | symbol_set_demangled_name. | |
3274 | (general_symbol_info::set_language) | |
3275 | (general_symbol_info::compute_and_set_names): Update. | |
3276 | * minsyms.c (minimal_symbol_reader::install): Update. | |
3277 | * dwarf2/read.c (new_symbol): Update. | |
3278 | ||
1acda803 TT |
3279 | 2020-04-24 Tom Tromey <tromey@adacore.com> |
3280 | ||
3281 | PR python/23662: | |
3282 | * python/py-type.c (convert_field): Handle | |
3283 | FIELD_LOC_KIND_DWARF_BLOCK. | |
3284 | (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH. | |
3285 | (typy_get_dynamic): Nw function. | |
3286 | (type_object_getset): Add "dynamic". | |
3287 | * NEWS: Add entry. | |
3288 | ||
d656f129 TT |
3289 | 2020-04-24 Tom Tromey <tromey@adacore.com> |
3290 | ||
3291 | * ada-typeprint.c (print_choices, print_variant_part) | |
3292 | (print_record_field_types_dynamic): New functions. | |
3293 | (print_record_field_types): Use print_record_field_types_dynamic. | |
3294 | ||
7d79de9a TT |
3295 | 2020-04-24 Tom Tromey <tromey@adacore.com> |
3296 | ||
3297 | * dwarf2/read.c (handle_data_member_location): New overload. | |
3298 | (dwarf2_add_field): Use it. | |
3299 | (decode_locdesc): Add "computed" parameter. Update comment. | |
3300 | * gdbtypes.c (is_dynamic_type_internal): Also look for | |
3301 | FIELD_LOC_KIND_DWARF_BLOCK. | |
3302 | (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK. | |
3303 | * gdbtypes.c (is_dynamic_type_internal): Add special case for C++ | |
3304 | virtual base classes. | |
3305 | * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle | |
3306 | FIELD_LOC_KIND_DWARF_BLOCK. | |
3307 | ||
f8e89861 TT |
3308 | 2020-04-24 Tom Tromey <tromey@adacore.com> |
3309 | ||
3310 | * dwarf2/read.c (read_structure_type): Handle dynamic length. | |
3311 | * gdbtypes.c (is_dynamic_type_internal): Check | |
3312 | TYPE_HAS_DYNAMIC_LENGTH. | |
3313 | (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH. | |
3314 | * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH): | |
3315 | New macros. | |
3316 | (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New | |
3317 | constant. | |
3318 | ||
9c6a1327 TT |
3319 | 2020-04-24 Tom Tromey <tromey@adacore.com> |
3320 | ||
3321 | * dwarf2/read.c (struct variant_field): Rewrite. | |
3322 | (struct variant_part_builder): New. | |
3323 | (struct nextfield): Remove "variant" field. Add "offset". | |
3324 | (struct field_info): Add "current_variant_part" and | |
3325 | "variant_parts". | |
3326 | (alloc_discriminant_info): Remove. | |
3327 | (alloc_rust_variant): New function. | |
3328 | (quirk_rust_enum): Update. | |
3329 | (dwarf2_add_field): Set "offset" member. Don't handle | |
3330 | DW_TAG_variant_part. | |
3331 | (offset_map_type): New typedef. | |
3332 | (convert_variant_range, create_one_variant) | |
3333 | (create_one_variant_part, create_variant_parts) | |
3334 | (add_variant_property): New functions. | |
3335 | (dwarf2_attach_fields_to_type): Call add_variant_property. | |
3336 | (read_structure_type): Don't handle DW_TAG_variant_part. | |
3337 | (handle_variant_part, handle_variant): New functions. | |
3338 | (handle_struct_member_die): Use them. | |
3339 | (process_structure_scope): Don't handle variant parts. | |
3340 | * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove. | |
3341 | (struct discriminant_info): Remove. | |
3342 | (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove. | |
3343 | (struct main_type) <flag_discriminated_union>: Remove. | |
3344 | * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite. | |
3345 | (rust_enum_variant): Return int. Remove "contents". Rewrite. | |
3346 | (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp): | |
3347 | Update. | |
3348 | * valops.c (value_union_variant): Remove. | |
3349 | * value.h (value_union_variant): Don't declare. | |
3350 | ||
b249d2c2 TT |
3351 | 2020-04-24 Tom Tromey <tromey@adacore.com> |
3352 | ||
3353 | * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low) | |
3354 | (ada_value_primitive_packed_val): Update. | |
3355 | * ada-valprint.c (ada_value_print_1): Update. | |
3356 | * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct. | |
3357 | (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than | |
3358 | just an address. Use evaluate_for_locexpr_baton. | |
3359 | (dwarf2_evaluate_property): Update. | |
3360 | * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an | |
3361 | array_view. | |
3362 | * findvar.c (default_read_var_value): Update. | |
3363 | * gdbtypes.c (compute_variant_fields_inner) | |
3364 | (resolve_dynamic_type_internal): Update. | |
3365 | (resolve_dynamic_type): Change type of valaddr parameter. | |
3366 | * gdbtypes.h (resolve_dynamic_type): Update. | |
3367 | * valarith.c (value_subscripted_rvalue): Update. | |
3368 | * value.c (value_from_contents_and_address): Update. | |
3369 | ||
61122aa9 TT |
3370 | 2020-04-24 Tom Tromey <tromey@adacore.com> |
3371 | ||
3372 | * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add | |
3373 | "push_initial_value" parameter. | |
3374 | (dwarf2_evaluate_property): Likewise. | |
3375 | * dwarf2/loc.h (dwarf2_evaluate_property): Update. | |
3376 | ||
ef83a141 TT |
3377 | 2020-04-24 Tom Tromey <tromey@adacore.com> |
3378 | ||
3379 | * gdbtypes.c (is_dynamic_type_internal): Check for variant parts. | |
3380 | (variant::matches, compute_variant_fields_recurse) | |
3381 | (compute_variant_fields_inner, compute_variant_fields): New | |
3382 | functions. | |
3383 | (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS. | |
3384 | Use resolved_type after type is made. | |
3385 | (operator==): Add new cases. | |
3386 | * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro. | |
3387 | (struct discriminant_range, struct variant, struct variant_part): | |
3388 | New. | |
3389 | (union dynamic_prop_data) <variant_parts, original_type>: New | |
3390 | members. | |
3391 | (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant. | |
3392 | (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New | |
3393 | constants. | |
3394 | * value.c (unpack_bits_as_long): Now public. | |
3395 | * value.h (unpack_bits_as_long): Declare. | |
3396 | ||
675127ec TT |
3397 | 2020-04-24 Tom Tromey <tromey@adacore.com> |
3398 | ||
3399 | * rs6000-tdep.c (struct ppc_variant): Rename from "variant". | |
3400 | (variants, find_variant_by_arch, rs6000_gdbarch_init): Update. | |
3401 | ||
9852ceef HD |
3402 | 2020-04-24 Hannes Domani <ssbssa@yahoo.de> |
3403 | ||
3404 | * windows-tdep.c (exception_values): Add WOW64 exception numbers. | |
3405 | ||
7632c6ce KR |
3406 | 2020-04-24 Kamil Rytarowski <n54@gmx.com> |
3407 | ||
3408 | * inf-ptrace.h (follow_fork, insert_fork_catchpoint) | |
3409 | (remove_fork_catchpoint, post_startup_inferior) | |
3410 | (post_attach): Move... | |
3411 | * obsd-nat.h (follow_fork, insert_fork_catchpoint) | |
3412 | (remove_fork_catchpoint, post_startup_inferior) | |
3413 | (post_attach): ...here. | |
3414 | * inf-ptrace.c (follow_fork, insert_fork_catchpoint) | |
3415 | (remove_fork_catchpoint, post_startup_inferior) | |
3416 | (post_attach): Move... | |
3417 | * obsd-nat.c (follow_fork, insert_fork_catchpoint) | |
3418 | (remove_fork_catchpoint, post_startup_inferior) | |
3419 | (post_attach): ...here. | |
3420 | ||
7be2bb4f TT |
3421 | 2020-04-24 Tom Tromey <tromey@adacore.com> |
3422 | ||
3423 | * nat/windows-nat.h (struct windows_thread_info) | |
3424 | <pc_adjusted>: New member. | |
3425 | * windows-nat.c (windows_fetch_one_register): Check | |
3426 | pc_adjusted. | |
3427 | (windows_nat_target::get_windows_debug_event) | |
3428 | (windows_nat_target::wait): Set pc_adjusted. | |
3429 | ||
f80cb3b4 TV |
3430 | 2020-04-24 Tom de Vries <tdevries@suse.de> |
3431 | ||
3432 | * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling. | |
3433 | Run gdb-add-index inside temp dir. | |
3434 | ||
29514b87 TT |
3435 | 2020-04-23 Tom Tromey <tromey@adacore.com> |
3436 | ||
3437 | * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter" | |
3438 | in loop. | |
3439 | ||
5939967b LM |
3440 | 2020-04-23 Luis Machado <luis.machado@linaro.org> |
3441 | ||
3442 | * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use | |
3443 | get_frame_register instead of gdbarch_unwind_pc. | |
3444 | ||
70bc38f5 TV |
3445 | 2020-04-23 Tom de Vries <tdevries@suse.de> |
3446 | ||
3447 | * symtab.c (lookup_global_symbol): Prefer def over decl. | |
3448 | ||
de82891c TV |
3449 | 2020-04-23 Tom de Vries <tdevries@suse.de> |
3450 | ||
3451 | PR symtab/25807 | |
3452 | * block.c (best_symbol, better_symbol): Promote to external. | |
3453 | * block.h (best_symbol, better_symbol): Declare. | |
3454 | * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over | |
3455 | decl. | |
3456 | ||
ecc6c606 TT |
3457 | 2020-04-23 Tom Tromey <tromey@adacore.com> |
3458 | ||
3459 | PR ada/25837: | |
3460 | * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a | |
3461 | "const char *", not a "const std::string &". | |
3462 | <name_and_matcher::operator==>: Update. | |
3463 | * unittests/lookup_name_info-selftests.c: Change type of | |
3464 | "result". | |
3465 | ||
740480b8 TT |
3466 | 2020-04-23 Tom Tromey <tom@tromey.com> |
3467 | ||
3468 | * inferior.h (iterate_over_inferiors): Don't declare. | |
3469 | * inferior.c (iterate_over_inferiors): Remove. | |
3470 | * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it): | |
3471 | Remove. | |
3472 | (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't | |
3473 | use iterate_over_inferiors. | |
3474 | (darwin_resume_inferior_it) | |
3475 | (struct resume_inferior_threads_param) | |
3476 | (darwin_resume_inferior_threads_it): Remove. | |
3477 | (darwin_nat_target::resume): Don't use iterate_over_inferiors. | |
3478 | ||
ae3ab1f0 TV |
3479 | 2020-04-23 Tom de Vries <tdevries@suse.de> |
3480 | ||
3481 | * blockframe.c (find_pc_partial_function): Use | |
3482 | find_pc_sect_compunit_symtab rather than | |
3483 | objfile->sf->qf->find_pc_sect_compunit_symtab. | |
3484 | ||
317d2668 TV |
3485 | 2020-04-22 Tom de Vries <tdevries@suse.de> |
3486 | ||
3487 | PR symtab/25764 | |
3488 | * dwarf2/read.c (scan_partial_symbols): Allow external variable decls | |
3489 | in psymtabs. | |
3490 | ||
eea9e357 TV |
3491 | 2020-04-22 Tom de Vries <tdevries@suse.de> |
3492 | ||
3493 | PR symtab/25801 | |
3494 | * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared | |
3495 | symtabs. | |
3496 | ||
3d5afab3 TV |
3497 | 2020-04-22 Tom de Vries <tdevries@suse.de> |
3498 | ||
3499 | PR symtab/25700 | |
3500 | * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for | |
3501 | CU if already created. | |
3502 | ||
d43b7a2d TBA |
3503 | 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
3504 | ||
3505 | * infrun.c (displaced_step_fixup): Switch to the event_thread | |
3506 | before calling displaced_step_restore, not after. | |
3507 | ||
d89edf9b MM |
3508 | 2020-04-21 Markus Metzger <markus.t.metzger@intel.com> |
3509 | ||
3510 | * record-btrace.c (record_btrace_enable_warn): Ignore thread if | |
3511 | its inferior is not recorded by us. | |
3512 | (record_btrace_target_open): Replace call to | |
3513 | all_non_exited_threads () with call to current_inferior | |
3514 | ()->non_exited_threads (). | |
3515 | (record_btrace_target::stop_recording): Likewise. | |
3516 | (record_btrace_target::close): Likewise. | |
3517 | (record_btrace_target::wait): Likewise. | |
3518 | (record_btrace_target::record_stop_replaying): Likewise. | |
3519 | ||
5897fd49 MM |
3520 | 2020-04-21 Markus Metzger <markus.t.metzger@intel.com> |
3521 | ||
3522 | * btrace.c (btrace_enable): Throw an error on double enables and | |
3523 | when enabling recording fails. | |
3524 | (btrace_disable): Throw an error if the thread is not recorded. | |
3525 | ||
1a476b6d MM |
3526 | 2020-04-21 Markus Metzger <markus.t.metzger@intel.com> |
3527 | ||
3528 | * record-btrace.c (record_btrace_target::fetch_registers): Forward | |
3529 | request if we do not have a thread_info. | |
3530 | ||
4778a5f8 TV |
3531 | 2020-04-21 Tom de Vries <tdevries@suse.de> |
3532 | ||
3533 | PR gdb/25471 | |
3534 | * thread.c | |
3535 | (scoped_restore_current_thread::scoped_restore_current_thread): Catch | |
3536 | exception in get_frame_id. | |
3537 | ||
0fa7617d TT |
3538 | 2020-04-20 Tom Tromey <tromey@adacore.com> |
3539 | ||
3540 | * python/python.c (struct gdbpy_event): Mark move constructor as | |
3541 | noexcept. | |
3542 | * python/py-tui.c (class gdbpy_tui_window_maker): Mark move | |
3543 | constructor as noexcept. | |
3544 | * completer.h (struct completion_result): Mark move constructor as | |
3545 | noexcept. | |
3546 | * completer.c (completion_result::completion_result): Use | |
3547 | initialization style. Don't call reset_match_list. | |
3548 | ||
ad23bda0 MS |
3549 | 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com> |
3550 | ||
3551 | * MAINTAINERS (Write After Approval): Add myself. | |
3552 | ||
45e1f031 TT |
3553 | 2020-04-18 Tom Tromey <tom@tromey.com> |
3554 | ||
3555 | * windows-tdep.c (init_w32_command_list) | |
3556 | (w32_prefix_command_valid): Restore. | |
3557 | (_initialize_windows_tdep): Call init_w32_command_list. | |
3558 | ||
08feed99 TT |
3559 | 2020-04-18 Tom Tromey <tom@tromey.com> |
3560 | ||
3561 | * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update. | |
3562 | * value.c (value_fn_field): Update. | |
3563 | * valops.c (find_function_in_inferior) | |
3564 | (value_allocate_space_in_inferior): Update. | |
3565 | * tui/tui-winsource.c (tui_update_source_windows_with_line): | |
3566 | Update. | |
3567 | * tui/tui-source.c (tui_source_window::set_contents): Update. | |
3568 | * symtab.c (lookup_global_or_static_symbol) | |
3569 | (find_function_start_sal_1, skip_prologue_sal) | |
3570 | (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update. | |
3571 | * symmisc.c (dump_msymbols, dump_symtab_1) | |
3572 | (maintenance_print_one_line_table): Update. | |
3573 | * symfile.c (init_entry_point_info, section_is_mapped) | |
3574 | (list_overlays_command, simple_read_overlay_table) | |
3575 | (simple_overlay_update_1): Update. | |
3576 | * stap-probe.c (handle_stap_probe): Update. | |
3577 | * stabsread.c (dbx_init_float_type, define_symbol) | |
3578 | (read_one_struct_field, read_enum_type, read_range_type): Update. | |
3579 | * source.c (info_line_command): Update. | |
3580 | * python/python.c (gdbpy_source_objfile_script) | |
3581 | (gdbpy_execute_objfile_script): Update. | |
3582 | * python/py-type.c (save_objfile_types): Update. | |
3583 | * python/py-objfile.c (py_free_objfile): Update. | |
3584 | * python/py-inferior.c (python_new_objfile): Update. | |
3585 | * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab) | |
3586 | (dump_psymtab_addrmap_1, maintenance_info_psymtabs) | |
3587 | (maintenance_check_psymtabs): Update. | |
3588 | * printcmd.c (info_address_command): Update. | |
3589 | * objfiles.h (struct objfile) <arch>: New method, from | |
3590 | get_objfile_arch. | |
3591 | (get_objfile_arch): Don't declare. | |
3592 | * objfiles.c (get_objfile_arch): Remove. | |
3593 | (filter_overlapping_sections): Update. | |
3594 | * minsyms.c (msymbol_is_function): Update. | |
3595 | * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines) | |
3596 | (output_nondebug_symbol): Update. | |
3597 | * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols) | |
3598 | (mdebug_expand_psymtab): Update. | |
3599 | * machoread.c (macho_add_oso_symfile): Update. | |
3600 | * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap): | |
3601 | Update. | |
3602 | * linux-fork.c (checkpoint_command): Update. | |
3603 | * linespec.c (convert_linespec_to_sals): Update. | |
3604 | * jit.c (finalize_symtab): Update. | |
3605 | * infrun.c (insert_exception_resume_from_probe): Update. | |
3606 | * ia64-tdep.c (ia64_find_unwind_table): Update. | |
3607 | * hppa-tdep.c (internalize_unwinds): Update. | |
3608 | * gdbtypes.c (get_type_arch, init_float_type, objfile_type): | |
3609 | Update. | |
3610 | * gcore.c (call_target_sbrk): Update. | |
3611 | * elfread.c (record_minimal_symbol, elf_symtab_read) | |
3612 | (elf_rel_plt_read, elf_gnu_ifunc_record_cache) | |
3613 | (elf_gnu_ifunc_resolve_by_got): Update. | |
3614 | * dwarf2/read.c (create_addrmap_from_index) | |
3615 | (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab) | |
3616 | (read_debug_names_from_section) | |
3617 | (process_psymtab_comp_unit_reader, add_partial_symbol) | |
3618 | (add_partial_subprogram, process_full_comp_unit) | |
3619 | (read_file_scope, read_func_scope, read_lexical_block_scope) | |
3620 | (read_call_site_scope, dwarf2_ranges_read) | |
3621 | (dwarf2_record_block_ranges, dwarf2_add_field) | |
3622 | (mark_common_block_symbol_computed, read_tag_pointer_type) | |
3623 | (read_tag_string_type, dwarf2_init_float_type) | |
3624 | (dwarf2_init_complex_target_type, read_base_type) | |
3625 | (partial_die_info::read, partial_die_info::read) | |
3626 | (read_attribute_value, dwarf_decode_lines_1, new_symbol) | |
3627 | (dwarf2_fetch_die_loc_sect_off): Update. | |
3628 | * dwarf2/loc.c (dwarf2_find_location_expression) | |
3629 | (class dwarf_evaluate_loc_desc, rw_pieced_value) | |
3630 | (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval) | |
3631 | (dwarf2_loc_desc_get_symbol_read_needs) | |
3632 | (locexpr_describe_location_piece, locexpr_describe_location_1) | |
3633 | (loclist_describe_location): Update. | |
3634 | * dwarf2/index-write.c (write_debug_names): Update. | |
3635 | * dwarf2/frame.c (dwarf2_build_frame_info): Update. | |
3636 | * dtrace-probe.c (dtrace_process_dof): Update. | |
3637 | * dbxread.c (read_dbx_symtab, dbx_end_psymtab) | |
3638 | (process_one_symbol): Update. | |
3639 | * ctfread.c (ctf_init_float_type, read_base_type): Update. | |
3640 | * coffread.c (coff_symtab_read, enter_linenos, decode_base_type) | |
3641 | (coff_read_enum_type): Update. | |
3642 | * cli/cli-cmds.c (edit_command, list_command): Update. | |
3643 | * buildsym.c (buildsym_compunit::finish_block_internal): Update. | |
3644 | * breakpoint.c (create_overlay_event_breakpoint) | |
3645 | (create_longjmp_master_breakpoint) | |
3646 | (create_std_terminate_master_breakpoint) | |
3647 | (create_exception_master_breakpoint, get_sal_arch): Update. | |
3648 | * block.c (block_gdbarch): Update. | |
3649 | * annotate.c (annotate_source_line): Update. | |
3650 | ||
0743fc83 TT |
3651 | 2020-04-17 Tom Tromey <tromey@adacore.com> |
3652 | ||
3653 | * auto-load.c (show_auto_load_cmd): Remove. | |
3654 | (auto_load_show_cmdlist_get): Use add_show_prefix_cmd. | |
3655 | * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd. | |
3656 | (maintenance_print_arc_command): Remove. | |
3657 | * tui/tui-win.c (tui_command): Remove. | |
3658 | (tui_get_cmd_list): Use add_basic_prefix_cmd. | |
3659 | * tui/tui-layout.c (tui_layout_command): Remove. | |
3660 | (_initialize_tui_layout): Use add_basic_prefix_cmd. | |
3661 | * python/python.c (user_set_python, user_show_python): Remove. | |
3662 | (_initialize_python): Use add_basic_prefix_cmd, | |
3663 | add_show_prefix_cmd. | |
3664 | * guile/guile.c (set_guile_command, show_guile_command): Remove. | |
3665 | (install_gdb_commands): Use add_basic_prefix_cmd, | |
3666 | add_show_prefix_cmd. | |
3667 | (info_guile_command): Remove. | |
3668 | * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove. | |
3669 | (_initialize_dwarf2_read): Use add_basic_prefix_cmd, | |
3670 | add_show_prefix_cmd. | |
3671 | * cli/cli-style.h (class cli_style_option) <add_setshow_commands>: | |
3672 | Remove do_set and do_show parameters. | |
3673 | * cli/cli-style.c (set_style, show_style): Remove. | |
3674 | (_initialize_cli_style): Use add_basic_prefix_cmd, | |
3675 | add_show_prefix_cmd. | |
3676 | (cli_style_option::add_setshow_commands): Remove do_set and | |
3677 | do_show parameters. | |
3678 | (cli_style_option::add_setshow_commands): Use | |
3679 | add_basic_prefix_cmd, add_show_prefix_cmd. | |
3680 | (STYLE_ADD_SETSHOW_COMMANDS): Remove macro. | |
3681 | (set_style_name): Remove. | |
3682 | * cli/cli-dump.c (dump_command, append_command): Remove. | |
3683 | (srec_dump_command, ihex_dump_command, verilog_dump_command) | |
3684 | (tekhex_dump_command, binary_dump_command) | |
3685 | (binary_append_command): Remove. | |
3686 | (_initialize_cli_dump): Use add_basic_prefix_cmd. | |
3687 | * windows-tdep.c (w32_prefix_command_valid): Remove global. | |
3688 | (init_w32_command_list): Remove; move into ... | |
3689 | (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd. | |
3690 | * valprint.c (set_print, show_print, set_print_raw) | |
3691 | (show_print_raw): Remove. | |
3692 | (_initialize_valprint): Use add_basic_prefix_cmd, | |
3693 | add_show_prefix_cmd. | |
3694 | * typeprint.c (set_print_type, show_print_type): Remove. | |
3695 | (_initialize_typeprint): Use add_basic_prefix_cmd, | |
3696 | add_show_prefix_cmd. | |
3697 | * record.c (set_record_command, show_record_command): Remove. | |
3698 | (_initialize_record): Use add_basic_prefix_cmd, | |
3699 | add_show_prefix_cmd. | |
3700 | * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd, | |
3701 | add_show_prefix_cmd. | |
3702 | (info_command, show_command, set_debug, show_debug): Remove. | |
3703 | * top.h (set_history, show_history): Don't declare. | |
3704 | * top.c (set_history, show_history): Remove. | |
3705 | * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd) | |
3706 | (unset_tdesc_cmd): Remove. | |
3707 | (_initialize_target_descriptions): Use add_basic_prefix_cmd, | |
3708 | add_show_prefix_cmd. | |
3709 | * symtab.c (info_module_command): Remove. | |
3710 | (_initialize_symtab): Use add_basic_prefix_cmd. | |
3711 | * symfile.c (overlay_command): Remove. | |
3712 | (_initialize_symfile): Use add_basic_prefix_cmd. | |
3713 | * sparc64-tdep.c (info_adi_command): Remove. | |
3714 | (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd. | |
3715 | * sh-tdep.c (show_sh_command, set_sh_command): Remove. | |
3716 | (_initialize_sh_tdep): Use add_basic_prefix_cmd, | |
3717 | add_show_prefix_cmd. | |
3718 | * serial.c (serial_set_cmd, serial_show_cmd): Remove. | |
3719 | (_initialize_serial): Use add_basic_prefix_cmd, | |
3720 | add_show_prefix_cmd. | |
3721 | * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove. | |
3722 | (_initialize_ser_tcp): Use add_basic_prefix_cmd, | |
3723 | add_show_prefix_cmd. | |
3724 | * rs6000-tdep.c (set_powerpc_command, show_powerpc_command) | |
3725 | (_initialize_rs6000_tdep): Use add_basic_prefix_cmd, | |
3726 | add_show_prefix_cmd. | |
3727 | * riscv-tdep.c (show_riscv_command, set_riscv_command) | |
3728 | (show_debug_riscv_command, set_debug_riscv_command): Remove. | |
3729 | (_initialize_riscv_tdep): Use add_basic_prefix_cmd, | |
3730 | add_show_prefix_cmd. | |
3731 | * remote.c (remote_command, set_remote_cmd): Remove. | |
3732 | (_initialize_remote): Use add_basic_prefix_cmd. | |
3733 | * record-full.c (set_record_full_command) | |
3734 | (show_record_full_command): Remove. | |
3735 | (_initialize_record_full): Use add_basic_prefix_cmd, | |
3736 | add_show_prefix_cmd. | |
3737 | * record-btrace.c (cmd_set_record_btrace) | |
3738 | (cmd_show_record_btrace, cmd_set_record_btrace_bts) | |
3739 | (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt) | |
3740 | (cmd_show_record_btrace_pt): Remove. | |
3741 | (_initialize_record_btrace): Use add_basic_prefix_cmd, | |
3742 | add_show_prefix_cmd. | |
3743 | * ravenscar-thread.c (set_ravenscar_command) | |
3744 | (show_ravenscar_command): Remove. | |
3745 | (_initialize_ravenscar): Use add_basic_prefix_cmd, | |
3746 | add_show_prefix_cmd. | |
3747 | * mips-tdep.c (show_mips_command, set_mips_command) | |
3748 | (_initialize_mips_tdep): Use add_basic_prefix_cmd, | |
3749 | add_show_prefix_cmd. | |
3750 | * maint.c (maintenance_command, maintenance_info_command) | |
3751 | (maintenance_check_command, maintenance_print_command) | |
3752 | (maintenance_set_cmd, maintenance_show_cmd): Remove. | |
3753 | (_initialize_maint_cmds): Use add_basic_prefix_cmd, | |
3754 | add_show_prefix_cmd. | |
3755 | (show_per_command_cmd): Remove. | |
3756 | * maint-test-settings.c (maintenance_set_test_settings_cmd): | |
3757 | Remove. | |
3758 | (maintenance_show_test_settings_cmd): Remove. | |
3759 | (_initialize_maint_test_settings): Use add_basic_prefix_cmd, | |
3760 | add_show_prefix_cmd. | |
3761 | * maint-test-options.c (maintenance_test_options_command): | |
3762 | Remove. | |
3763 | (_initialize_maint_test_options): Use add_basic_prefix_cmd. | |
3764 | * macrocmd.c (macro_command): Remove | |
3765 | (_initialize_macrocmd): Use add_basic_prefix_cmd. | |
3766 | * language.c (set_check, show_check): Remove. | |
3767 | (_initialize_language): Use add_basic_prefix_cmd, | |
3768 | add_show_prefix_cmd. | |
3769 | * infcmd.c (unset_command): Remove. | |
3770 | (_initialize_infcmd): Use add_basic_prefix_cmd. | |
3771 | * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove. | |
3772 | (_initialize_i386_tdep): Use add_basic_prefix_cmd, | |
3773 | add_show_prefix_cmd. | |
3774 | * go32-nat.c (go32_info_dos_command): Remove. | |
3775 | (_initialize_go32_nat): Use add_basic_prefix_cmd. | |
3776 | * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd) | |
3777 | (do_show_prefix_cmd, add_show_prefix_cmd): New functions. | |
3778 | * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove. | |
3779 | (_initialize_frame): Use add_basic_prefix_cmd, | |
3780 | add_show_prefix_cmd. | |
3781 | * dcache.c (set_dcache_command, show_dcache_command): Remove. | |
3782 | (_initialize_dcache): Use add_basic_prefix_cmd, | |
3783 | add_show_prefix_cmd. | |
3784 | * cp-support.c (maint_cplus_command): Remove. | |
3785 | (_initialize_cp_support): Use add_basic_prefix_cmd. | |
3786 | * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd) | |
3787 | (maint_btrace_show_cmd, maint_btrace_pt_set_cmd) | |
3788 | (maint_btrace_pt_show_cmd, _initialize_btrace): Use | |
3789 | add_basic_prefix_cmd, add_show_prefix_cmd. | |
3790 | * breakpoint.c (save_command): Remove. | |
3791 | (_initialize_breakpoint): Use add_basic_prefix_cmd. | |
3792 | * arm-tdep.c (set_arm_command, show_arm_command): Remove. | |
3793 | (_initialize_arm_tdep): Use add_basic_prefix_cmd, | |
3794 | add_show_prefix_cmd. | |
3795 | * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd) | |
3796 | (set_ada_command, show_ada_command): Remove. | |
3797 | (_initialize_ada_language): Use add_basic_prefix_cmd, | |
3798 | add_show_prefix_cmd. | |
3799 | * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare. | |
3800 | ||
3557f442 KR |
3801 | 2020-04-16 Kamil Rytarowski <n54@gmx.com> |
3802 | ||
3803 | * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove. | |
3804 | * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise. | |
3805 | ||
16197208 SM |
3806 | 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca> |
3807 | ||
3808 | * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to | |
3809 | warning messages. | |
3810 | ||
00ac85d3 SM |
3811 | 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca> |
3812 | ||
3813 | * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where | |
3814 | import table is not at beginning of .idata section. | |
3815 | ||
381ce63f PA |
3816 | 2020-04-16 Pedro Alves <palves@redhat.com> |
3817 | ||
3818 | * inferior.c (delete_inferior): Use delete operator directly | |
3819 | instead of delete_program_space. | |
3820 | * progspace.c (add_program_space): New, factored out from | |
3821 | program_space::program_space. | |
3822 | (remove_program_space): New, factored out from | |
3823 | delete_program_space. | |
3824 | (program_space::program_space): Remove intro comment. Rewrite. | |
3825 | (program_space::~program_space): Remove intro comment. Call | |
3826 | remove_program_space. | |
3827 | (delete_program_space): Delete. | |
3828 | * progspace.h (program_space::program_space): Make explicit. Move | |
3829 | intro comment here, adjusted. | |
3830 | (program_space::~program_space): Move intro comment here, | |
3831 | adjusted. | |
3832 | (delete_program_space): Remove. | |
3833 | ||
a010605f TT |
3834 | 2020-04-16 Tom Tromey <tromey@adacore.com> |
3835 | ||
3836 | * windows-nat.c (windows_nat::handle_access_violation): New | |
3837 | function. | |
3838 | * nat/windows-nat.h (handle_access_violation): Declare. | |
3839 | * nat/windows-nat.c (handle_exception): Move Cygwin code to | |
3840 | windows-nat.c. Call handle_access_violation. | |
3841 | ||
efba5c23 TV |
3842 | 2020-04-16 Tom de Vries <tdevries@suse.de> |
3843 | ||
3844 | PR symtab/25791 | |
3845 | * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for | |
3846 | CUs without psymtab. | |
3847 | ||
97ed802d KB |
3848 | 2020-04-16 Kevin Buettner <kevinb@redhat.com> |
3849 | ||
3850 | * python/python.c (do_start_initialization): Don't call | |
3851 | PyEval_InitThreads for Python 3.9 and beyond. | |
3852 | ||
c7d64809 KR |
3853 | 2020-04-15 Kamil Rytarowski <n54@gmx.com> |
3854 | ||
3855 | * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to | |
3856 | thread functions. | |
3857 | (obsd_nat_target::wait): Likewise. | |
3858 | ||
ce127a96 TT |
3859 | 2020-04-15 Tom Tromey <tromey@adacore.com> |
3860 | ||
3861 | * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM) | |
3862 | (DEBUG_EXCEPT): Use debug_printf. | |
3863 | ||
99f1bc6a AB |
3864 | 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com> |
3865 | ||
3866 | * completer.c (class completion_tracker::completion_hash_entry) | |
3867 | <hash_name>: New member function. | |
3868 | (completion_tracker::discard_completions): New callback to hash a | |
3869 | completion_hash_entry, pass this to htab_create_alloc. | |
3870 | ||
a0e9b532 JT |
3871 | 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk> |
3872 | ||
3873 | * windows-nat.c (windows_make_so): Warn rather than stopping with | |
3874 | an error if realpath() fails. | |
3875 | ||
06ca5dd4 KR |
3876 | 2020-04-14 Kamil Rytarowski <n54@gmx.com> |
3877 | ||
3878 | * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New. | |
3879 | (nbsd_nat_target::info_proc): Add do_status. | |
3880 | ||
194d088f TV |
3881 | 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca> |
3882 | Tom de Vries <tdevries@suse.de> | |
3883 | ||
3884 | PR symtab/25718 | |
3885 | * psympriv.h (struct partial_symtab::read_symtab) | |
3886 | (struct partial_symtab::expand_psymtab) | |
3887 | (struct partial_symtab::read_dependencies): Update comments. | |
3888 | * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call | |
3889 | read_symtab for includer. | |
3890 | (struct dwarf2_include_psymtab::expand_psymtab): Assert false. | |
3891 | (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer. | |
3892 | (struct dwarf2_include_psymtab::m_readin): Remove. | |
3893 | (struct dwarf2_include_psymtab::includer): New member function. | |
3894 | (dwarf2_psymtab::expand_psymtab): Assert !readin. | |
3895 | ||
c1a66c06 TV |
3896 | 2020-04-14 Tom de Vries <tdevries@suse.de> |
3897 | ||
3898 | PR symtab/25720 | |
3899 | * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching | |
3900 | with NULL symbol_matcher and lookup_name. | |
3901 | * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher | |
3902 | and lookup_name. | |
3903 | * dwarf2/read.c (dw2_expand_symtabs_matching) | |
3904 | (dw2_debug_names_expand_symtabs_matching): Same. | |
3905 | * symfile.h (struct quick_symbol_functions::expand_symtabs_matching): | |
3906 | Make lookup_name a pointer. Update comment. | |
3907 | * symtab.c (global_symbol_searcher::expand_symtabs): Handle | |
3908 | lookup_name being a pointer. | |
3909 | * symfile.c (expand_symtabs_matching): Same. | |
3910 | * symfile-debug.c (debug_qf_expand_symtabs_matching): Same. | |
3911 | * linespec.c (iterate_over_all_matching_symtabs): Same. | |
3912 | ||
400b5eca TT |
3913 | 2020-04-13 Tom Tromey <tom@tromey.com> |
3914 | ||
3915 | * run-on-main-thread.c: Update include. | |
3916 | * unittests/main-thread-selftests.c: Update include. | |
3917 | * tui/tui-win.c: Update include. | |
3918 | * tui/tui-io.c: Update include. | |
3919 | * tui/tui-interp.c: Update include. | |
3920 | * tui/tui-hooks.c: Update include. | |
3921 | * top.h: Update include. | |
3922 | * top.c: Update include. | |
3923 | * ser-base.c: Update include. | |
3924 | * remote.c: Update include. | |
3925 | * remote-notif.c: Update include. | |
3926 | * remote-fileio.c: Update include. | |
3927 | * record-full.c: Update include. | |
3928 | * record-btrace.c: Update include. | |
3929 | * python/python.c: Update include. | |
3930 | * posix-hdep.c: Update include. | |
3931 | * mingw-hdep.c: Update include. | |
3932 | * mi/mi-main.c: Update include. | |
3933 | * mi/mi-interp.c: Update include. | |
3934 | * main.c: Update include. | |
3935 | * linux-nat.c: Update include. | |
3936 | * interps.c: Update include. | |
3937 | * infrun.c: Update include. | |
3938 | * inf-loop.c: Update include. | |
3939 | * event-top.c: Update include. | |
3940 | * event-loop.c: Move to ../gdbsupport/. | |
3941 | * event-loop.h: Move to ../gdbsupport/. | |
3942 | * async-event.h: Update include. | |
3943 | * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update. | |
3944 | ||
93b54c8e TT |
3945 | 2020-04-13 Tom Tromey <tom@tromey.com> |
3946 | ||
3947 | * tui/tui-win.c: Include async-event.h. | |
3948 | * remote.c: Include async-event.h. | |
3949 | * remote-notif.c: Include async-event.h. | |
3950 | * record-full.c: Include async-event.h. | |
3951 | * record-btrace.c: Include async-event.h. | |
3952 | * infrun.c: Include async-event.h. | |
3953 | * event-top.c: Include async-event.h. | |
3954 | * event-loop.h: Move some declarations to async-event.h. | |
3955 | * event-loop.c: Don't include ser-event.h or top.h. Move some | |
3956 | code to async-event.c. | |
3957 | * async-event.h: New file. | |
3958 | * async-event.c: New file. | |
3959 | * Makefile.in (COMMON_SFILES): Add async-event.c. | |
3960 | (HFILES_NO_SRCDIR): Add async-event.h. | |
3961 | ||
c1cd3163 TT |
3962 | 2020-04-13 Tom Tromey <tom@tromey.com> |
3963 | ||
3964 | * utils.c (flush_streams): New function. | |
3965 | * event-loop.c (gdb_wait_for_event): Call flush_streams. | |
3966 | ||
29f2bf4f TT |
3967 | 2020-04-13 Tom Tromey <tom@tromey.com> |
3968 | ||
3969 | * event-loop.c (handle_file_event): Use warning, not | |
3970 | printf_unfiltered. | |
3971 | ||
98029d02 TT |
3972 | 2020-04-13 Tom Tromey <tom@tromey.com> |
3973 | ||
3974 | * event-loop.c: Include <chrono>. | |
3975 | ||
06cc9596 TT |
3976 | 2020-04-13 Tom Tromey <tom@tromey.com> |
3977 | ||
3978 | * gdb_select.h: Move to ../gdbsupport/. | |
3979 | * event-loop.c: Update include path. | |
3980 | * top.c: Update include path. | |
3981 | * ser-base.c: Update include path. | |
3982 | * ui-file.c: Update include path. | |
3983 | * ser-tcp.c: Update include path. | |
3984 | * guile/scm-ports.c: Update include path. | |
3985 | * posix-hdep.c: Update include path. | |
3986 | * ser-unix.c: Update include path. | |
3987 | * gdb_usleep.c: Update include path. | |
3988 | * mingw-hdep.c: Update include path. | |
3989 | * inflow.c: Update include path. | |
3990 | * infrun.c: Update include path. | |
3991 | * event-top.c: Update include path. | |
3992 | ||
8ae8e197 TT |
3993 | 2020-04-13 Tom Tromey <tom@tromey.com> |
3994 | ||
3995 | * configure: Rebuild. | |
3996 | * configure.ac: Remove checks that are now in GDB_AC_COMMON. | |
3997 | ||
58cf28e8 TT |
3998 | 2020-04-13 Tom Tromey <tom@tromey.com> |
3999 | ||
4000 | * event-loop.h (start_event_loop): Don't declare. | |
4001 | * event-loop.c (start_event_loop): Move... | |
4002 | * main.c (start_event_loop): ...here. Now static. | |
4003 | ||
b7f999ae SDJ |
4004 | 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net> |
4005 | ||
4006 | * MAINTAINERS: Update my email address. | |
4007 | ||
1085dfd4 KR |
4008 | 2020-04-12 Kamil Rytarowski <n54@gmx.com> |
4009 | ||
4010 | * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and | |
4011 | IP_ALL. | |
4012 | ||
49d1d1f5 KR |
4013 | 2020-04-12 Kamil Rytarowski <n54@gmx.com> |
4014 | ||
4015 | * nbsd-nat.c (nbsd_pid_to_cmdline): Add. | |
aac66a4c | 4016 | (nbsd_nat_target::info_proc): Add do_cmdline. |
49d1d1f5 | 4017 | |
b4848d2a KR |
4018 | 2020-04-12 Kamil Rytarowski <n54@gmx.com> |
4019 | ||
4020 | * nbsd-nat.c (nbsd_pid_to_cwd): Add. | |
aac66a4c | 4021 | (nbsd_nat_target::info_proc): Add do_cwd. |
b4848d2a | 4022 | |
51c133d5 KR |
4023 | 2020-04-12 Kamil Rytarowski <n54@gmx.com> |
4024 | ||
4025 | * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe. | |
4026 | ||
54b8cbd0 KR |
4027 | 2020-04-11 Kamil Rytarowski <n54@gmx.com> |
4028 | ||
4029 | * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h". | |
4030 | * nbsd-nat.c (nbsd_nat_target::find_memory_regions) | |
4031 | (nbsd_nat_target::info_proc): New functions. | |
4032 | * nbsd-nat.c (kinfo_get_vmmap): New function. | |
4033 | * nbsd-nat.c (nbsd_nat_target::info_proc) Use | |
4034 | nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry. | |
4035 | * nbsd-tdep.c (nbsd_info_proc_mappings_header) | |
4036 | (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New | |
4037 | functions. | |
4038 | * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE) | |
4039 | (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW) | |
4040 | (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP) | |
4041 | (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP) | |
4042 | (KINFO_VME_FLAG_GROWS_DOWN): New. | |
4043 | ||
cf83625d AS |
4044 | 2020-04-10 Artur Shepilko <nomadbyte@gmail.com> |
4045 | ||
4046 | * utils.c (copy_bitwise): Use unsigned 0 constant as operand of | |
4047 | bit shift. | |
4048 | ||
0c4311ab TT |
4049 | 2020-04-10 Tom Tromey <tromey@adacore.com> |
4050 | ||
4051 | * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE. | |
4052 | ||
3e65b3e9 TT |
4053 | 2020-04-10 Tom Tromey <tromey@adacore.com> |
4054 | ||
4055 | * symtab.c (get_symbol_address, get_msymbol_address): Skip | |
4056 | separate debug files. | |
4057 | ||
13302e95 HD |
4058 | 2020-04-10 Hannes Domani <ssbssa@yahoo.de> |
4059 | ||
4060 | * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): | |
4061 | Move to... | |
4062 | * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): | |
4063 | ... here. | |
4064 | * windows-nat.c (windows_nat_target::get_windows_debug_event): | |
4065 | Check for STATUS_WX86_BREAKPOINT. | |
4066 | (windows_nat_target::wait): Same. | |
4067 | ||
bdfc1e8a TV |
4068 | 2020-04-10 Tom de Vries <tdevries@suse.de> |
4069 | ||
4070 | PR cli/25808 | |
4071 | * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False. | |
4072 | ||
f4460aec SM |
4073 | 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca> |
4074 | ||
4075 | * MAINTAINERS (Global Maintainers): Add Tom de Vries. | |
4076 | (Write After Approval): Remove Tom de Vries. | |
4077 | ||
a25198bb BE |
4078 | 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de> |
4079 | ||
4080 | revert partially: | |
4081 | 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de> | |
4082 | ||
aac66a4c SM |
4083 | * buildsym.c (record_line): Fix undefined behavior and preserve |
4084 | lines at eof. | |
a25198bb | 4085 | |
206c98a6 KR |
4086 | 2020-04-09 Kamil Rytarowski <n54@gmx.com> |
4087 | ||
4088 | * auxv.h (svr4_auxv_parse): New. | |
4089 | * auxv.c (default_auxv_parse): Split into default_auxv_parse | |
4090 | and generic_auxv_parse. | |
4091 | (svr4_auxv_parse): Add. | |
4092 | * obsd-tdep.c: Include "auxv.h". | |
4093 | (obsd_auxv_parse): Remove. | |
4094 | (obsd_init_abi): Remove comment. | |
4095 | (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument | |
4096 | from `obsd_auxv_parse' to `svr4_auxv_parse'. | |
4097 | * nbsd-tdep.c: Include "auxv.h". | |
4098 | (nbsd_init_abi): Call set_gdbarch_auxv_parse. | |
4099 | ||
71fbdbaf TT |
4100 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
4101 | ||
4102 | * nat/windows-nat.h (last_wait_event): Don't declare. | |
4103 | (wait_for_debug_event): Update comment. | |
4104 | * nat/windows-nat.c (last_wait_event): Now static. | |
4105 | ||
2c1d95e8 TT |
4106 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
4107 | ||
4108 | * windows-nat.c (wait_for_debug_event): Move to | |
4109 | nat/windows-nat.c. | |
4110 | * nat/windows-nat.h (wait_for_debug_event): Declare. | |
4111 | * nat/windows-nat.c (wait_for_debug_event): Move from | |
4112 | windows-nat.c. No longer static. | |
4113 | ||
d2977bc4 TT |
4114 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
4115 | ||
4116 | * windows-nat.c (get_windows_debug_event): Use | |
4117 | fetch_pending_stop. | |
4118 | * nat/windows-nat.h (fetch_pending_stop): Declare. | |
4119 | * nat/windows-nat.c (fetch_pending_stop): New function. | |
4120 | ||
e758e19c TT |
4121 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
4122 | ||
4123 | * windows-nat.c (windows_continue): Use matching_pending_stop and | |
4124 | continue_last_debug_event. | |
4125 | * nat/windows-nat.h (matching_pending_stop) | |
4126 | (continue_last_debug_event): Declare. | |
4127 | * nat/windows-nat.c (DEBUG_EVENTS): New define. | |
4128 | (matching_pending_stop, continue_last_debug_event): New | |
4129 | functions. | |
4130 | ||
8d30e395 TT |
4131 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
4132 | ||
4133 | * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c. | |
4134 | (handle_exception_result): Move to nat/windows-nat.h. | |
4135 | (DEBUG_EXCEPTION_SIMPLE): Remove. | |
4136 | (windows_nat::handle_ms_vc_exception): New function. | |
4137 | (handle_exception): Move to nat/windows-nat.c. | |
4138 | (get_windows_debug_event): Update. | |
4139 | (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to | |
4140 | nat/windows-nat.c. | |
4141 | * nat/windows-nat.h (handle_ms_vc_exception): Declare. | |
4142 | (handle_exception_result): Move from windows-nat.c. | |
4143 | (handle_exception): Declare. | |
4144 | * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception) | |
4145 | (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from | |
4146 | windows-nat.c. | |
4147 | ||
29de418d TT |
4148 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
4149 | ||
4150 | * windows-nat.c (exception_count, event_count): Remove. | |
4151 | (handle_exception, get_windows_debug_event) | |
4152 | (do_initial_windows_stuff): Update. | |
4153 | ||
a816ba18 TT |
4154 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
4155 | ||
4156 | * windows-nat.c (windows_nat::handle_load_dll) | |
4157 | (windows_nat::handle_unload_dll): Rename. No longer static. | |
4158 | * nat/windows-nat.h (handle_load_dll, handle_unload_dll): | |
4159 | Declare. | |
4160 | ||
a00caa12 TT |
4161 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
4162 | ||
4163 | * complaints.h (stop_whining): Declare at top-level. | |
4164 | (complaint): Don't declare stop_whining. | |
4165 | ||
d41b524f TT |
4166 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
4167 | ||
4168 | * windows-nat.c (windows_nat::handle_output_debug_string): | |
4169 | Rename. No longer static. | |
4170 | * nat/windows-nat.h (handle_output_debug_string): Declare. | |
4171 | ||
3c76026d TT |
4172 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
4173 | ||
4174 | * windows-nat.c (current_process_handle, current_process_id) | |
4175 | (main_thread_id, last_sig, current_event, last_wait_event) | |
4176 | (current_windows_thread, desired_stop_thread_id, pending_stops) | |
4177 | (struct pending_stop, siginfo_er): Move to nat/windows-nat.c. | |
4178 | (display_selectors, fake_create_process) | |
4179 | (get_windows_debug_event): Update. | |
4180 | * nat/windows-nat.h (current_process_handle, current_process_id) | |
4181 | (main_thread_id, last_sig, current_event, last_wait_event) | |
4182 | (current_windows_thread, desired_stop_thread_id, pending_stops) | |
4183 | (struct pending_stop, siginfo_er): Move from windows-nat.c. | |
4184 | * nat/windows-nat.c (current_process_handle, current_process_id) | |
4185 | (main_thread_id, last_sig, current_event, last_wait_event) | |
4186 | (current_windows_thread, desired_stop_thread_id, pending_stops) | |
4187 | (siginfo_er): New globals. Move from windows-nat.c. | |
4188 | ||
9d8679cc TT |
4189 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
4190 | ||
4191 | * windows-nat.c (get_image_name): Move to nat/windows-nat.c. | |
4192 | (handle_load_dll): Update. | |
4193 | * nat/windows-nat.c (get_image_name): Move from windows-nat.c. | |
4194 | ||
28688adf TT |
4195 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
4196 | ||
4197 | * windows-nat.c (enum thread_disposition_type): Move to | |
4198 | nat/windows-nat.h. | |
4199 | (windows_nat::thread_rec): Rename from thread_rec. No longer | |
4200 | static. | |
4201 | (windows_add_thread, windows_nat_target::fetch_registers) | |
4202 | (windows_nat_target::store_registers, handle_exception) | |
4203 | (windows_nat_target::resume, get_windows_debug_event) | |
4204 | (windows_nat_target::get_tib_address) | |
4205 | (windows_nat_target::thread_name) | |
4206 | (windows_nat_target::thread_alive): Update. | |
4207 | * nat/windows-nat.h (enum thread_disposition_type): Move from | |
4208 | windows-nat.c. | |
4209 | (thread_rec): Declare. | |
4210 | ||
4834dad0 TT |
4211 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
4212 | ||
4213 | * windows-nat.c: Add "using namespace". | |
4214 | * nat/windows-nat.h: Wrap contents in windows_nat namespace. | |
4215 | * nat/windows-nat.c: Wrap contents in windows_nat namespace. | |
4216 | ||
65bafd5b TT |
4217 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
4218 | ||
4219 | * nat/windows-nat.h (struct windows_thread_info): Declare | |
4220 | destructor. | |
4221 | * nat/windows-nat.c (~windows_thread_info): New. | |
4222 | ||
0a4afda3 TT |
4223 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
4224 | ||
4225 | PR gdb/22992 | |
4226 | * windows-nat.c (current_event): Update comment. | |
4227 | (last_wait_event, desired_stop_thread_id): New globals. | |
4228 | (struct pending_stop): New. | |
4229 | (pending_stops): New global. | |
4230 | (windows_nat_target) <stopped_by_sw_breakpoint> | |
4231 | <supports_stopped_by_sw_breakpoint>: New methods. | |
4232 | (windows_fetch_one_register): Add assertions. Adjust PC. | |
4233 | (windows_continue): Handle pending stops. Suspend other threads | |
4234 | when stepping. Use last_wait_event | |
4235 | (wait_for_debug_event): New function. | |
4236 | (get_windows_debug_event): Use wait_for_debug_event. Handle | |
4237 | pending stops. Queue spurious stops. | |
4238 | (windows_nat_target::wait): Set stopped_at_software_breakpoint. | |
4239 | (windows_nat_target::kill): Use wait_for_debug_event. | |
4240 | * nat/windows-nat.h (struct windows_thread_info) | |
4241 | <stopped_at_software_breakpoint>: New field. | |
4242 | * nat/windows-nat.c (windows_thread_info::resume): Clear | |
4243 | stopped_at_software_breakpoint. | |
4244 | ||
8e61ebec TT |
4245 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
4246 | ||
4247 | * windows-nat.c (enum thread_disposition_type): New. | |
4248 | (thread_rec): Replace "get_context" parameter with "disposition"; | |
4249 | change type. | |
4250 | (windows_add_thread, windows_nat_target::fetch_registers) | |
4251 | (windows_nat_target::store_registers, handle_exception) | |
4252 | (windows_nat_target::resume, get_windows_debug_event) | |
4253 | (windows_nat_target::get_tib_address) | |
4254 | (windows_nat_target::thread_name) | |
4255 | (windows_nat_target::thread_alive): Update. | |
4256 | ||
98a03287 TT |
4257 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
4258 | ||
4259 | * windows-nat.c (thread_rec): Use windows_thread_info::suspend. | |
4260 | (windows_continue): Use windows_continue::resume. | |
4261 | * nat/windows-nat.h (struct windows_thread_info) <suspend, | |
4262 | resume>: Declare new methods. | |
4263 | * nat/windows-nat.c: New file. | |
4264 | * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed. | |
4265 | ||
7c7411bc TT |
4266 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
4267 | ||
4268 | * windows-nat.c (windows_add_thread, windows_delete_thread) | |
4269 | (windows_nat_target::fetch_registers) | |
4270 | (windows_nat_target::store_registers, fake_create_process) | |
4271 | (windows_nat_target::resume, windows_nat_target::resume) | |
4272 | (get_windows_debug_event, windows_nat_target::wait) | |
4273 | (windows_nat_target::pid_to_str) | |
4274 | (windows_nat_target::get_tib_address) | |
4275 | (windows_nat_target::get_ada_task_ptid) | |
4276 | (windows_nat_target::thread_name) | |
4277 | (windows_nat_target::thread_alive): Use lwp, not tid. | |
4278 | ||
2950fdf7 TT |
4279 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
4280 | ||
4281 | * windows-nat.c (handle_exception) | |
4282 | (windows_nat_target::thread_name): Update. | |
4283 | * nat/windows-nat.h (windows_thread_info): Remove destructor. | |
4284 | <name>: Now unique_xmalloc_ptr. | |
4285 | ||
62fe396b TT |
4286 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
4287 | ||
4288 | * windows-nat.c (thread_rec) | |
4289 | (windows_nat_target::fetch_registers): Update. | |
4290 | * nat/windows-nat.h (struct windows_thread_info) <suspended>: | |
4291 | Update comment. | |
4292 | <debug_registers_changed, reload_context>: Now bool. | |
4293 | ||
e9534bd2 TT |
4294 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
4295 | ||
4296 | * windows-nat.c (windows_add_thread): Use new. | |
4297 | (windows_init_thread_list, windows_delete_thread): Use delete. | |
4298 | (get_windows_debug_event): Update. | |
4299 | * nat/windows-nat.h (struct windows_thread_info): Add constructor, | |
4300 | destructor, and initializers. | |
4301 | ||
ae1f8880 TT |
4302 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
4303 | ||
4304 | * windows-nat.c (struct windows_thread_info): Remove. | |
4305 | * nat/windows-nat.h: New file. | |
4306 | ||
55a1e039 TT |
4307 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
4308 | ||
4309 | * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id". | |
4310 | (thread_rec, windows_add_thread, windows_delete_thread) | |
4311 | (windows_continue): Update. | |
4312 | ||
93366324 TT |
4313 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
4314 | ||
4315 | * windows-nat.c (struct windows_thread_info): Remove typedef. | |
4316 | (thread_head): Remove. | |
4317 | (thread_list): New global. | |
4318 | (thread_rec, windows_add_thread, windows_init_thread_list) | |
4319 | (windows_delete_thread, windows_continue): Update. | |
4320 | ||
0f2265e2 SM |
4321 | 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca> |
4322 | ||
4323 | * windows-tdep.h (windows_init_abi): Add comment. | |
4324 | (cygwin_init_abi): New declaration. | |
4325 | * windows-tdep.c: Split signal enumeration in two, one for | |
4326 | Windows and one for Cygwin. | |
4327 | (windows_gdb_signal_to_target): Only deal with signal of the | |
4328 | Windows OS ABI. | |
4329 | (cygwin_gdb_signal_to_target): New function. | |
4330 | (windows_init_abi): Rename to windows_init_abi_common, don't set | |
4331 | gdb_signal_to_target gdbarch method. Add new new function with | |
4332 | this name. | |
4333 | (cygwin_init_abi): New function. | |
4334 | * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add | |
4335 | comment. Don't call windows_init_abi. | |
4336 | (amd64_windows_init_abi): Add comment, call windows_init_abi. | |
4337 | (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi. | |
4338 | * i386-windows-tdep.c (i386_windows_init_abi): Rename to | |
4339 | i386_windows_init_abi_common, don't call windows_init_abi. Add | |
4340 | a new function of this name. | |
4341 | (i386_cygwin_init_abi): New function. | |
4342 | (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to | |
4343 | OS ABI Cygwin. | |
4344 | ||
3810f182 SM |
4345 | 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca> |
4346 | ||
4347 | * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile | |
4348 | parameter.c. | |
4349 | (dwarf2_read_gdb_index): Update. | |
4350 | ||
063f8e80 KR |
4351 | 2020-04-07 Kamil Rytarowski <n54@gmx.com> |
4352 | ||
4353 | * nbsd-tdep.c: Include "objfiles.h". | |
4354 | (nbsd_skip_solib_resolver): New. | |
4355 | (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver(). | |
4356 | ||
85a9510c | 4357 | 2020-04-07 Nitika Achra <Nitika.Achra@amd.com> |
4358 | ||
4359 | * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_ | |
4360 | addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair | |
4361 | with DW_LLE_base_addressx are being emitted in DWARFv5. | |
4362 | Add the newly added kind DW_LOC_OFFSET_PAIR also. | |
4363 | The length of location description is an unsigned ULEB integer in DWARFv5 instead of | |
4364 | unsigned integer. | |
4365 | ||
9fc3eaae | 4366 | 2020-04-07 Nitika Achra <Nitika.Achra@amd.com> |
4367 | ||
4368 | * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR. | |
4369 | (dwarf2_find_location_expression): Call the function decode_debug_loclists_ | |
4370 | addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair | |
4371 | with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*. | |
4372 | Add applicable base address if the entry is DW_LLE_offset_pair from DWO. | |
4373 | (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of | |
4374 | DEBUG_LOC_START_END in case of DW_LLE_offset_pair. | |
4375 | ||
4376 | ||
41144253 | 4377 | 2020-04-07 Nitika Achra <Nitika.Achra@amd.com> |
4378 | ||
4379 | * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function. | |
4380 | (read_loclist_index): New function definition. | |
4381 | (lookup_loclist_base): New function definition. | |
4382 | (read_loclist_header): New function definition. | |
4383 | (dwarf2_cu): Add loclist_base and loclist_header field. | |
4384 | (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section. | |
4385 | (read_full_die_1): Read the value of DW_AT_loclists_base. | |
4386 | (read_attribute_reprocess): Handle DW_FORM_loclistx. | |
4387 | (read_attribute_value): Handle DW_FORM_loclistx. | |
4388 | (skip_one_die): Handle DW_FORM_loclistx. | |
4389 | (loclist_header): New structure declaration. | |
4390 | * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx. | |
4391 | ||
9f4e76a4 SM |
4392 | 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca> |
4393 | ||
4394 | * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters | |
4395 | constructor. Remove `addr` parameter from other constructor and | |
4396 | add `per_cu` parameter. | |
4397 | * dwarf2/read.c (create_partial_symtab): Update. | |
4398 | ||
25c11aca TV |
4399 | 2020-04-07 Tom de Vries <tdevries@suse.de> |
4400 | ||
4401 | PR symtab/25796 | |
4402 | * dwarf2/read.c (can_have_DW_AT_const_value_p): New function. | |
4403 | (partial_die_info::fixup): Inherit has_const_value. | |
4404 | ||
5707e24b TV |
4405 | 2020-04-07 Tom de Vries <tdevries@suse.de> |
4406 | ||
4407 | * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK | |
4408 | symbols without address. | |
4409 | ||
05f00e22 KR |
4410 | 2020-04-06 Kamil Rytarowski <n54@gmx.com> |
4411 | ||
4412 | * nbsd-nat.h (struct thread_info): Add forward declaration. | |
4413 | (nbsd_nat_target::thread_alive): Add. | |
4414 | (nbsd_nat_target::thread_name): Likewise. | |
4415 | (nbsd_nat_target::update_thread_list): Likewise. | |
4416 | (update_thread_list::post_attach): Likewise. | |
4417 | (post_attach::pid_to_str): Likewise. | |
4418 | * nbsd-nat.c: Include "gdbthread.h" and "inferior.h". | |
4419 | (nbsd_thread_lister): Add. | |
4420 | (nbsd_nat_target::thread_alive): Likewise. | |
4421 | (nbsd_nat_target::thread_name): Likewise. | |
4422 | (nbsd_add_threads): Likewise. | |
4423 | (update_thread_list::post_attach): Likewise. | |
4424 | (nbsd_nat_target::update_thread_list): Likewise. | |
4425 | (post_attach::pid_to_str): Likewise. | |
4426 | ||
6ee448cc TT |
4427 | 2020-04-06 Tom Tromey <tromey@adacore.com> |
4428 | ||
4429 | * ada-valprint.c (print_variant_part): Extract the variant field. | |
4430 | (print_field_values): Use the field as the outer value when | |
4431 | recursing. | |
4432 | ||
dea34e8c TT |
4433 | 2020-04-06 Tom Tromey <tromey@adacore.com> |
4434 | ||
4435 | * sh-nbsd-tdep.c: Include nbsd-tdep.h. | |
4436 | * ppc-nbsd-tdep.c: Include nbsd-tdep.h. | |
4437 | * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";". | |
4438 | * arm-nbsd-tdep.c: Include nbsd-tdep.h. | |
4439 | * hppa-nbsd-tdep.c: Include nbsd-tdep.h. | |
4440 | ||
93689ce9 TT |
4441 | 2020-04-06 Tom Tromey <tromey@adacore.com> |
4442 | ||
4443 | * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle | |
4444 | TYPE_CODE_ERROR. | |
4445 | ||
79743962 KR |
4446 | 2020-04-06 Kamil Rytarowski <n54@gmx.com> |
4447 | ||
4448 | * nbsd-tdep.c: Include "gdbarch.h". | |
4449 | Define enum with NetBSD signal numbers. | |
4450 | (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New. | |
4451 | * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi(). | |
4452 | * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise. | |
4453 | * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise. | |
4454 | * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise. | |
4455 | * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise. | |
4456 | * mips-nbsd-tdep.c (nbsd_init_abi): Likewise. | |
4457 | * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise. | |
4458 | * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise. | |
4459 | * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise. | |
4460 | * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise. | |
4461 | * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise. | |
4462 | ||
9e7c9a03 HD |
4463 | 2020-04-03 Hannes Domani <ssbssa@yahoo.de> |
4464 | ||
4465 | PR gdb/25325 | |
4466 | * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes. | |
4467 | ||
d9e49b61 TT |
4468 | 2020-04-03 Tom Tromey <tromey@adacore.com> |
4469 | ||
4470 | * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>: | |
4471 | Read constant block. | |
4472 | ||
e0fc5c3f SM |
4473 | 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca> |
4474 | ||
4475 | * gdb_bfd.h: Include gdbsupport/byte-vector.h. | |
4476 | (gdb_bfd_get_full_section_contents): New declaration. | |
4477 | * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function. | |
4478 | * windows-tdep.c (is_linked_with_cygwin_dll): Use | |
4479 | gdb_bfd_get_full_section_contents. | |
4480 | ||
e2ff18a0 SM |
4481 | 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca> |
4482 | ||
4483 | * exec.c (build_section_table): Replace internal_error with | |
4484 | gdb_assert. | |
4485 | (section_table_xfer_memory_partial): Likewise. | |
4486 | * mdebugread.c (parse_partial_symbols): Likewise. | |
4487 | * psymtab.c (lookup_partial_symbol): Likewise. | |
4488 | * utils.c (wrap_here): Likewise. | |
4489 | ||
0830d301 TT |
4490 | 2020-04-02 Tom Tromey <tromey@adacore.com> |
4491 | ||
4492 | * f-lang.c (build_fortran_types): Use arch_type to initialize | |
4493 | builtin_complex_s32 in the TYPE_CODE_ERROR case. | |
4494 | ||
e7da7f8f TT |
4495 | 2020-04-02 Tom Tromey <tromey@adacore.com> |
4496 | ||
4497 | * dwarf2/read.c (partial_die_info::read): Do not create a vector | |
4498 | of attributes. | |
4499 | ||
c90d28ac AB |
4500 | 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com> |
4501 | Bernd Edlinger <bernd.edlinger@hotmail.de> | |
4502 | Tom Tromey <tromey@adacore.com> | |
4503 | ||
4504 | * buildsym.c (buildsym_compunit::record_line): Remove | |
4505 | deduplication code. | |
4506 | ||
1aa98955 TV |
4507 | 2020-04-02 Tom de Vries <tdevries@suse.de> |
4508 | ||
4509 | PR ada/24671 | |
4510 | * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow. | |
4511 | ||
d3214198 TV |
4512 | 2020-04-02 Tom de Vries <tdevries@suse.de> |
4513 | ||
4514 | * dwarf2/read.c (dwarf2_gdb_index_functions, | |
4515 | dwarf2_debug_names_functions): Init lookup_global_symbol_language with | |
4516 | NULL. | |
4517 | * psymtab.c (psym_lookup_global_symbol_language): New function. | |
4518 | (psym_functions): Init psym_lookup_global_symbol_language with | |
4519 | psym_lookup_global_symbol_language. | |
4520 | * symfile-debug.c (debug_sym_quick_functions): Init | |
4521 | lookup_global_symbol_language with NULL. | |
4522 | * symfile.c (set_initial_language): Remove fixme comment. | |
4523 | * symfile.h (struct quick_symbol_functions): Add | |
4524 | lookup_global_symbol_language. | |
4525 | * symtab.c (find_quick_global_symbol_language): New function. | |
4526 | (find_main_name): Use find_quick_global_symbol_language. | |
4527 | ||
2836752f SM |
4528 | 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca> |
4529 | ||
4530 | * windows-tdep.c (is_linked_with_cygwin_dll): Fix style. | |
4531 | ||
64dc2d4b BE |
4532 | 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de> |
4533 | ||
4534 | * buildsym.c (record_line): Fix undefined behavior and preserve | |
4535 | lines at eof. | |
4536 | ||
bbe3dc41 BE |
4537 | 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de> |
4538 | ||
4539 | * buildsym.c (record_line): Fix the resizing condition. | |
4540 | ||
6b4a335b TT |
4541 | 2020-04-01 Tom Tromey <tom@tromey.com> |
4542 | ||
4543 | * value.h (value_literal_complex): Add comment. | |
4544 | * valops.c (value_literal_complex): Refer to value.h. | |
4545 | ||
3638a098 TT |
4546 | 2020-04-01 Tom Tromey <tom@tromey.com> |
4547 | ||
4548 | * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens. | |
4549 | (scalar_type): New rule, from typebase. | |
4550 | (typebase): Use scalar_type. Recognize complex types. | |
4551 | (field_name): Handle FLOAT_KEYWORD. | |
4552 | (ident_tokens): Add _Complex and __complex__. | |
4553 | ||
c34e8714 TT |
4554 | 2020-04-01 Tom Tromey <tom@tromey.com> |
4555 | ||
4556 | PR exp/25299: | |
4557 | * valarith.c (promotion_type, complex_binop): New functions. | |
4558 | (scalar_binop): Handle complex numbers. Use promotion_type. | |
4559 | (value_pos, value_neg, value_complement): Handle complex numbers. | |
4560 | ||
fa649bb7 TT |
4561 | 2020-04-01 Tom Tromey <tom@tromey.com> |
4562 | ||
4563 | * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens. | |
4564 | (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules. | |
4565 | (parse_number): Handle complex numbers. | |
4566 | ||
981c08ce TT |
4567 | 2020-04-01 Tom Tromey <tom@tromey.com> |
4568 | ||
4569 | * c-valprint.c (c_decorations): Change complex suffix to "i". | |
4570 | ||
4c99290d TT |
4571 | 2020-04-01 Tom Tromey <tom@tromey.com> |
4572 | ||
4573 | * valprint.c (generic_value_print_complex): Use accessors. | |
4574 | * value.h (value_real_part, value_imaginary_part): Declare. | |
4575 | * valops.c (value_real_part, value_imaginary_part): New | |
4576 | functions. | |
4577 | * value.c (creal_internal_fn, cimag_internal_fn): Use accessors. | |
4578 | ||
5b930b45 TT |
4579 | 2020-04-01 Tom Tromey <tom@tromey.com> |
4580 | ||
4581 | * stabsread.c (rs6000_builtin_type, read_sun_floating_type) | |
4582 | (read_range_type): Update. | |
4583 | * mdebugread.c (basic_type): Update. | |
4584 | * go-lang.c (build_go_types): Use init_complex_type. | |
4585 | * gdbtypes.h (struct main_type) <complex_type>: New member. | |
4586 | (init_complex_type): Update. | |
4587 | (arch_complex_type): Don't declare. | |
4588 | * gdbtypes.c (init_complex_type): Remove "objfile" parameter. | |
4589 | Make name if none given. Use alloc_type_copy. Look for cached | |
4590 | complex type. | |
4591 | (arch_complex_type): Remove. | |
4592 | (gdbtypes_post_init): Use init_complex_type. | |
4593 | * f-lang.c (build_fortran_types): Use init_complex_type. | |
4594 | * dwarf2/read.c (read_base_type): Update. | |
4595 | * d-lang.c (build_d_types): Use init_complex_type. | |
4596 | * ctfread.c (read_base_type): Update. | |
4597 | ||
53cccef1 TBA |
4598 | 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
4599 | ||
4600 | * infrun.c (stop_all_threads): Update assertion, plus when | |
4601 | stopping threads, take into account that we might be trying | |
4602 | to stop an all-stop target. | |
4603 | (stop_waiting): Call 'stop_all_threads' if there exists a | |
4604 | non-stop target. | |
4605 | ||
a0714d30 TBA |
4606 | 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
4607 | ||
4608 | * target.h (exists_non_stop_target): New function declaration. | |
4609 | * target.c (exists_non_stop_target): New function. | |
4610 | ||
60e22c1e HD |
4611 | 2020-04-01 Hannes Domani <ssbssa@yahoo.de> |
4612 | ||
4613 | PR gdb/24789 | |
4614 | * eval.c (is_integral_or_integral_reference): New function. | |
4615 | (evaluate_subexp_standard): Allow integer references in | |
4616 | pointer arithmetic. | |
4617 | ||
e139a727 TBA |
4618 | 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
4619 | ||
4620 | * remote.c (remote_target::remote_parse_stop_reply): Remove the | |
4621 | check for no ptid in the stop reply when the target is non-stop. | |
4622 | ||
e0802d59 TT |
4623 | 2020-04-01 Tom Tromey <tromey@adacore.com> |
4624 | ||
4625 | * symtab.h (class lookup_name_info) <lookup_name_info>: Change | |
4626 | "name" parameter to rvalue reference. Initialize m_name_holder. | |
4627 | <lookup_name_info>: New overloads. | |
4628 | <name>: Return gdb::string_view. | |
4629 | <c_str>: New method. | |
4630 | <make_ignore_params>: Update. | |
4631 | <search_name_hash>: Update. | |
4632 | <language_lookup_name>: Return const char *. | |
4633 | <m_name>: Change type. | |
4634 | * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info) | |
4635 | (demangle_for_lookup_info::demangle_for_lookup_info): Update. | |
4636 | (lookup_name_info::match_any): Update. | |
4637 | * psymtab.c (match_partial_symbol, lookup_partial_symbol): | |
4638 | Update. | |
4639 | * minsyms.c (linkage_name_str): Update. | |
4640 | * language.c (default_symbol_name_matcher): Update. | |
4641 | * dwarf2/read.c (mapped_index_base::find_name_components_bounds): | |
4642 | Update. | |
4643 | * ada-lang.c (ada_fold_name): Change parameter to string_view. | |
4644 | (ada_lookup_name_info::ada_lookup_name_info): Update. | |
4645 | (literal_symbol_name_matcher): Update. | |
4646 | ||
8c072cb6 TT |
4647 | 2020-04-01 Tom Tromey <tromey@adacore.com> |
4648 | ||
4649 | * psymtab.c (psymtab_search_name): Remove function. | |
4650 | (psym_lookup_symbol): Create search name and lookup name here. | |
4651 | (lookup_partial_symbol): Remove "name" parameter; add | |
4652 | lookup_name. | |
4653 | (psym_expand_symtabs_for_function): Update. | |
4654 | ||
6f29a534 TT |
4655 | 2020-03-31 Joel Jones <joelkevinjones@gmail.com> |
4656 | ||
4657 | PR tui/25597: | |
4658 | * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI. | |
4659 | ||
af62665e TT |
4660 | 2020-03-31 Tom Tromey <tromey@adacore.com> |
4661 | ||
4662 | * dwarf2/abbrev.c (abbrev_table::read): Conditionally call | |
4663 | memcpy. | |
4664 | ||
d1a89da5 NC |
4665 | 2020-03-30 Nelson Chu <nelson.chu@sifive.com> |
4666 | ||
4667 | * features/riscv/32bit-csr.xml: Regenerated. | |
4668 | * features/riscv/64bit-csr.xml: Regenerated. | |
4669 | ||
d8af9068 TT |
4670 | 2020-03-30 Tom Tromey <tromey@adacore.com> |
4671 | ||
4672 | * ada-valprint.c (print_variant_part): Update. | |
4673 | * ada-lang.h (ada_which_variant_applies): Update. | |
4674 | * ada-lang.c (ada_which_variant_applies): Remove outer_type and | |
4675 | outer_valaddr parameters; replace with "outer" value parameter. | |
4676 | (to_fixed_variant_branch_type): Update. | |
4677 | ||
227c0bf4 PFC |
4678 | 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com> |
4679 | ||
4680 | * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and | |
4681 | <list>. Remove inclusion of observable.h. | |
4682 | (PPC_DEBUG_CURRENT_VERSION): Move up define. | |
4683 | (struct arch_lwp_info): New struct. | |
4684 | (class ppc_linux_dreg_interface): New class. | |
4685 | (struct ppc_linux_process_info): New struct. | |
4686 | (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork> | |
4687 | <low_new_clone, low_forget_process, low_prepare_to_resume> | |
4688 | <copy_thread_dreg_state, mark_thread_stale> | |
4689 | <mark_debug_registers_changed, register_hw_breakpoint> | |
4690 | <clear_hw_breakpoint, register_wp, clear_wp> | |
4691 | <can_use_watchpoint_cond_accel, calculate_dvc, check_condition> | |
4692 | <num_memory_accesses, get_trigger_type> | |
4693 | <create_watchpoint_request, hwdebug_point_cmp> | |
4694 | <init_arch_lwp_info, get_arch_lwp_info> | |
4695 | <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as | |
4696 | methods. | |
4697 | <struct ptid_hash>: New inner struct. | |
4698 | <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare | |
4699 | members. | |
4700 | (saved_dabr_value, hwdebug_info, max_slots_number) | |
4701 | (struct hw_break_tuple, struct thread_points, ppc_threads) | |
4702 | (have_ptrace_hwdebug_interface) | |
4703 | (hwdebug_find_thread_points_by_tid) | |
4704 | (hwdebug_insert_point, hwdebug_remove_point): Remove. | |
4705 | (ppc_linux_nat_target::can_use_hw_breakpoint): Use | |
4706 | m_dreg_interface, remove call to PTRACE_SET_DEBUGREG. | |
4707 | (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment, | |
4708 | use m_dreg_interface. | |
4709 | (hwdebug_point_cmp): Change to... | |
4710 | (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use | |
4711 | reference arguments instead of pointers. | |
4712 | (ppc_linux_nat_target::ranged_break_num_registers): Use | |
4713 | m_dreg_interface. | |
4714 | (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use | |
4715 | m_dreg_interface. Call register_hw_breakpoint. | |
4716 | (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use | |
4717 | m_dreg_interface. Call clear_hw_breakpoint. | |
4718 | (get_trigger_type): Change to... | |
4719 | (ppc_linux_nat_target::get_trigger_type): ...this method. Add | |
4720 | comment. | |
4721 | (ppc_linux_nat_target::insert_mask_watchpoint): Update comment, | |
4722 | use m_dreg_interface. Call register_hw_breakpoint. | |
4723 | (ppc_linux_nat_target::remove_mask_watchpoint): Update comment, | |
4724 | use m_dreg_interface. Call clear_hw_breakpoint. | |
4725 | (can_use_watchpoint_cond_accel): Change to... | |
4726 | (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this | |
4727 | method. Update comment, use m_dreg_interface and | |
4728 | m_process_info. | |
4729 | (calculate_dvc): Change to... | |
4730 | (ppc_linux_nat_target::calculate_dvc): ...this method. Use | |
4731 | m_dreg_interface. | |
4732 | (num_memory_accesses): Change to... | |
4733 | (ppc_linux_nat_target::num_memory_accesses): ...this method. | |
4734 | (check_condition): Change to... | |
4735 | (ppc_linux_nat_target::check_condition): ...this method. | |
4736 | (ppc_linux_nat_target::can_accel_watchpoint_condition): Update | |
4737 | comment, use m_dreg_interface. | |
4738 | (create_watchpoint_request): Change to... | |
4739 | (ppc_linux_nat_target::create_watchpoint_request): ...this | |
4740 | method. Use m_dreg_interface. | |
4741 | (ppc_linux_nat_target::insert_watchpoint): Add comment, use | |
4742 | m_dreg_interface. Call register_hw_breakpoint or register_wp. | |
4743 | (ppc_linux_nat_target::remove_watchpoint): Add comment, use | |
4744 | m_dreg_interface. Call clear_hw_breakpoint or clear_wp. | |
4745 | (ppc_linux_nat_target::low_forget_process) | |
4746 | (ppc_linux_nat_target::low_new_fork) | |
4747 | (ppc_linux_nat_target::low_new_clone) | |
4748 | (ppc_linux_nat_target::low_delete_thread) | |
4749 | (ppc_linux_nat_target::low_prepare_to_resume): New methods. | |
4750 | (ppc_linux_nat_target::low_new_thread): Remove previous logic, | |
4751 | only call mark_thread_stale. | |
4752 | (ppc_linux_thread_exit): Remove. | |
4753 | (ppc_linux_nat_target::stopped_data_address): Change to... | |
4754 | (ppc_linux_nat_target::low_stopped_data_address): This. Add | |
4755 | comment, use m_dreg_interface and m_thread_hw_breakpoints. | |
4756 | (ppc_linux_nat_target::stopped_by_watchpoint): Change to... | |
4757 | (ppc_linux_nat_target::stopped_by_watchpoint): This. Add | |
4758 | comment. Call low_stopped_data_address. | |
4759 | (ppc_linux_nat_target::watchpoint_addr_within_range): Use | |
4760 | m_dreg_interface. | |
4761 | (ppc_linux_nat_target::masked_watch_num_registers): Use | |
4762 | m_dreg_interface. | |
4763 | (ppc_linux_nat_target::copy_thread_dreg_state) | |
4764 | (ppc_linux_nat_target::mark_thread_stale) | |
4765 | (ppc_linux_nat_target::mark_debug_registers_changed) | |
4766 | (ppc_linux_nat_target::register_hw_breakpoint) | |
4767 | (ppc_linux_nat_target::clear_hw_breakpoint) | |
4768 | (ppc_linux_nat_target::register_wp) | |
4769 | (ppc_linux_nat_target::clear_wp) | |
4770 | (ppc_linux_nat_target::init_arch_lwp_info) | |
4771 | (ppc_linux_nat_target::get_arch_lwp_info): New methods. | |
4772 | (_initialize_ppc_linux_nat): Remove observer callback. | |
4773 | ||
4db10d8f PFC |
4774 | 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com> |
4775 | ||
4776 | * ppc-linux-nat.c (ppc_linux_nat_target::store_registers) | |
4777 | (ppc_linux_nat_target::auxv_parse) | |
4778 | (ppc_linux_nat_target::read_description) | |
4779 | (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): | |
4780 | Move up. | |
4781 | ||
1310c1b0 PFC |
4782 | 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com> |
4783 | ||
4784 | * linux-nat.h (low_new_clone): New method. | |
4785 | * linux-nat.c (linux_handle_extended_wait): Call low_new_clone. | |
4786 | ||
69b037c3 SM |
4787 | 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca> |
4788 | ||
4789 | * dbxread.c (dbx_psymtab_to_symtab_1): Rename to... | |
4790 | (dbx_expand_psymtab): ... this. | |
4791 | (start_psymtab): Update. | |
4792 | * mdebugread.c (psymtab_to_symtab_1): Rename to... | |
4793 | (mdebug_expand_psymtab): ... this. | |
4794 | (parse_partial_symbols): Update. | |
4795 | (new_psymtab): Update. | |
4796 | * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to... | |
4797 | (xcoff_expand_psymtab): ... this. | |
4798 | (xcoff_start_psymtab): Update. | |
4799 | ||
48993951 SM |
4800 | 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca> |
4801 | ||
4802 | * psympriv.h (partial_symtab) <read_dependencies>: Rename to... | |
4803 | <expand_dependencies>: ... this. | |
4804 | * psymtab.c (partial_symtab::read_dependencies): Rename to... | |
4805 | (partial_symtab::expand_dependencies): ... this. | |
4806 | * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>: | |
4807 | Update. | |
4808 | (dwarf2_psymtab::expand_psymtab): Update. | |
4809 | * dbxread.c (dbx_psymtab_to_symtab_1): Update. | |
4810 | * mdebugread.c (psymtab_to_symtab_1): Update. | |
4811 | * xcoffread.c (xcoff_psymtab_to_symtab_1): Update. | |
4812 | ||
3ad83046 SM |
4813 | 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca> |
4814 | ||
4815 | * psympriv.h (discard_psymtab): Remove. | |
4816 | * dbxread.c (dbx_end_psymtab): Update. | |
4817 | * xcoffread.c (xcoff_end_psymtab): Update. | |
4818 | ||
4d1b9ab6 TT |
4819 | 2020-03-28 Tom Tromey <tom@tromey.com> |
4820 | ||
4821 | * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update | |
4822 | comment. | |
4823 | ||
f1749218 TT |
4824 | 2020-03-28 Tom Tromey <tom@tromey.com> |
4825 | ||
4826 | * dwarf2/read.c (read_attribute_reprocess): Fix formatting. | |
4827 | ||
ebea7626 HD |
4828 | 2020-03-27 Hannes Domani <ssbssa@yahoo.de> |
4829 | ||
4830 | * windows-nat.c (windows_add_all_dlls): Fix system dll paths. | |
4831 | ||
a879b4d5 JB |
4832 | 2020-03-26 John Baldwin <jhb@FreeBSD.org> |
4833 | ||
4834 | * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS. | |
4835 | ||
0826b30a TT |
4836 | 2020-03-26 Tom Tromey <tom@tromey.com> |
4837 | ||
4838 | * dwarf2/read.c (handle_data_member_location, dwarf2_add_field) | |
4839 | (mark_common_block_symbol_computed, read_tag_string_type) | |
4840 | (attr_to_dynamic_prop, read_subrange_type): Update. | |
4841 | (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move | |
4842 | to be methods on struct attribute. | |
4843 | (skip_one_die, process_imported_unit_die, read_namespace_alias) | |
4844 | (read_call_site_scope, partial_die_info::read) | |
4845 | (partial_die_info::read, lookup_die_type, follow_die_ref): | |
4846 | Update. | |
4847 | * dwarf2/attribute.c (attribute::get_ref_die_offset): New method, | |
4848 | from dwarf2_get_ref_die_offset. | |
4849 | (attribute::constant_value): New method, from | |
4850 | dwarf2_get_attr_constant_value. | |
4851 | * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>: | |
4852 | Declare method. | |
4853 | <constant_value>: New method. | |
4854 | ||
2b2558bf TT |
4855 | 2020-03-26 Tom Tromey <tom@tromey.com> |
4856 | ||
4857 | * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name) | |
4858 | (dwarf_attr_name, dwarf_form_name, dwarf_bool_name) | |
4859 | (dwarf_type_encoding_name): Move to stringify.c. | |
4860 | * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c. | |
4861 | * dwarf2/stringify.c: New file. | |
4862 | * dwarf2/stringify.h: New file. | |
4863 | ||
eeb64781 TT |
4864 | 2020-03-26 Tom Tromey <tom@tromey.com> |
4865 | ||
4866 | * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: | |
4867 | Rewrite. | |
4868 | ||
a39fdb41 TT |
4869 | 2020-03-26 Tom Tromey <tom@tromey.com> |
4870 | ||
4871 | * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New | |
4872 | methods. | |
4873 | * dwarf2/read.c (lookup_addr_base): Move to die.h. | |
4874 | (lookup_ranges_base): Likewise. | |
4875 | (read_cutu_die_from_dwo, read_full_die_1): Update. | |
4876 | ||
436c571c TT |
4877 | 2020-03-26 Tom Tromey <tom@tromey.com> |
4878 | ||
4879 | * dwarf2/read.c (read_import_statement, read_file_scope) | |
4880 | (read_type_unit_scope, inherit_abstract_dies, read_func_scope) | |
4881 | (read_lexical_block_scope, read_call_site_scope) | |
4882 | (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds) | |
4883 | (handle_struct_member_die, process_structure_scope) | |
4884 | (update_enumeration_type_from_children) | |
4885 | (process_enumeration_scope, read_array_type, read_common_block) | |
4886 | (read_namespace, read_module, read_subroutine_type): Update. | |
4887 | (sibling_die): Remove. | |
4888 | ||
052c8bb8 TT |
4889 | 2020-03-26 Tom Tromey <tom@tromey.com> |
4890 | ||
4891 | * dwarf2/read.c (lookup_addr_base, lookup_ranges_base) | |
4892 | (build_type_psymtabs_reader, read_structure_type) | |
4893 | (read_enumeration_type, read_full_die_1): Update. | |
4894 | (dwarf2_attr_no_follow): Move to die.h. | |
4895 | * dwarf2/die.h (struct die_info) <attr>: New method. | |
4896 | ||
2b24b6e4 TT |
4897 | 2020-03-26 Tom Tromey <tom@tromey.com> |
4898 | ||
4899 | * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove. | |
4900 | <base_address>: Now an optional. | |
4901 | (dwarf2_find_base_address, dwarf2_rnglists_process) | |
4902 | (dwarf2_ranges_process, fill_in_loclist_baton) | |
4903 | (dwarf2_symbol_mark_computed): Update. | |
4904 | ||
c2d50fd0 TT |
4905 | 2020-03-26 Tom Tromey <tom@tromey.com> |
4906 | ||
4907 | * dwarf2/read.c (struct die_info): Move to die.h. | |
4908 | * dwarf2/die.h: New file. | |
4909 | ||
0df7ad3a TT |
4910 | 2020-03-26 Tom Tromey <tom@tromey.com> |
4911 | ||
4912 | * dwarf2/line-header.h (dwarf_decode_line_header): Declare. | |
4913 | * dwarf2/read.c | |
4914 | (dwarf2_statement_list_fits_in_line_number_section_complaint): | |
4915 | Move to line-header.c. | |
4916 | (read_checked_initial_length_and_offset, read_formatted_entries): | |
4917 | Likewise. | |
4918 | (dwarf_decode_line_header): Split into two. | |
4919 | * dwarf2/line-header.c | |
4920 | (dwarf2_statement_list_fits_in_line_number_section_complaint): | |
4921 | Move from read.c. | |
4922 | (read_checked_initial_length_and_offset, read_formatted_entries): | |
4923 | Likewise. | |
4924 | (dwarf_decode_line_header): New function, split from read.c. | |
4925 | ||
86c0bb4c TT |
4926 | 2020-03-26 Tom Tromey <tom@tromey.com> |
4927 | ||
4928 | * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>: | |
4929 | Declare method. | |
4930 | * dwarf2/read.c (read_attribute_value): Update. | |
4931 | (dwarf2_per_objfile::read_line_string): Rename from | |
4932 | read_indirect_line_string. | |
4933 | (read_formatted_entries): Update. | |
4934 | ||
2ef46c2f TT |
4935 | 2020-03-26 Tom Tromey <tom@tromey.com> |
4936 | ||
4937 | * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local | |
4938 | variable. | |
4939 | ||
4f9c1eda TT |
4940 | 2020-03-26 Tom Tromey <tom@tromey.com> |
4941 | ||
4942 | * dwarf2/macro.h (dwarf_decode_macros): Make section parameter | |
4943 | const. | |
4944 | * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode) | |
4945 | (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section | |
4946 | parameter const. | |
4947 | ||
5a0e026f TT |
4948 | 2020-03-26 Tom Tromey <tom@tromey.com> |
4949 | ||
4950 | * dwarf2/read.c (dwarf_decode_macros): Make "lh" const. | |
4951 | * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter. | |
4952 | * dwarf2/macro.c (macro_start_file): Constify "lh" parameter. | |
4953 | (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise. | |
4954 | ||
8844c11b TT |
4955 | 2020-03-26 Tom Tromey <tom@tromey.com> |
4956 | ||
4957 | * dwarf2/line-header.h (struct line_header) <is_valid_file_index, | |
4958 | file_names_size, file_full_name, file_file_name>: Use const. | |
4959 | <file_name_at, file_names>: Add const overload. | |
4960 | * dwarf2/line-header.c (line_header::file_file_name) | |
4961 | (line_header::file_full_name): Update. | |
4962 | ||
c90ec28a TT |
4963 | 2020-03-26 Tom Tromey <tom@tromey.com> |
4964 | ||
4965 | * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint) | |
4966 | (macro_start_file, consume_improper_spaces) | |
4967 | (parse_macro_definition, skip_form_bytes, skip_unknown_opcode) | |
4968 | (dwarf_parse_macro_header, dwarf_decode_macro_bytes) | |
4969 | (dwarf_decode_macros): Move to macro.c. | |
4970 | * dwarf2/macro.c: New file. | |
4971 | * dwarf2/macro.h: New file. | |
4972 | * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c. | |
4973 | ||
4f44ae6c TT |
4974 | 2020-03-26 Tom Tromey <tom@tromey.com> |
4975 | ||
4976 | * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New | |
4977 | method. | |
4978 | * dwarf2/section.c: New method. From | |
4979 | read_indirect_string_at_offset_from. | |
4980 | * dwarf2/read.c (mapped_debug_names::namei_to_name): Update. | |
4981 | (read_indirect_string_at_offset_from): Move to section.c. | |
4982 | (read_indirect_string_at_offset): Rewrite. | |
4983 | (read_indirect_line_string_at_offset): Remove. | |
4984 | (read_indirect_string, read_indirect_line_string) | |
4985 | (dwarf_decode_macro_bytes): Update. | |
4986 | ||
a0194fa8 TT |
4987 | 2020-03-26 Tom Tromey <tom@tromey.com> |
4988 | ||
4989 | * dwarf2/section.h (struct dwarf2_section_info) | |
4990 | <overload_complaint>: Declare. | |
4991 | (dwarf2_section_buffer_overflow_complaint): Don't declare. | |
4992 | * dwarf2/section.c (dwarf2_section_info::overflow_complaint): | |
4993 | Rename from dwarf2_section_buffer_overflow_complaint. | |
4994 | * dwarf2/read.c (skip_one_die, partial_die_info::read) | |
4995 | (skip_form_bytes, dwarf_decode_macro_bytes): Update. | |
4996 | ||
3d27bbdb TT |
4997 | 2020-03-26 Tom Tromey <tom@tromey.com> |
4998 | ||
4999 | * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint): | |
5000 | Declare. | |
5001 | * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint): | |
5002 | Move from read.c. | |
5003 | * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move | |
5004 | to section.c. | |
5005 | ||
9eac9650 TT |
5006 | 2020-03-26 Tom Tromey <tom@tromey.com> |
5007 | ||
5008 | * dwarf2/read.c (dwarf_decode_macros): Split into two overloads. | |
5009 | ||
bf80d710 TT |
5010 | 2020-03-26 Tom Tromey <tom@tromey.com> |
5011 | ||
5012 | * dwarf2/read.c (macro_start_file): Change "cu" parameter to | |
5013 | "builder". | |
5014 | (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile | |
5015 | parameter. | |
5016 | (dwarf_decode_macros): Update. | |
5017 | ||
0314b390 TT |
5018 | 2020-03-26 Tom Tromey <tom@tromey.com> |
5019 | ||
5020 | * dwarf2/read.c (read_attribute_value): Update. | |
5021 | (read_indirect_string_from_dwz): Move to dwz.c; change into | |
5022 | method. | |
5023 | (dwarf_decode_macro_bytes): Update. | |
5024 | * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method. | |
5025 | * dwarf2/dwz.c: New file. | |
5026 | * Makefile.in (COMMON_SFILES): Add dwz.c. | |
5027 | ||
9fda78b6 TT |
5028 | 2020-03-26 Tom Tromey <tom@tromey.com> |
5029 | ||
5030 | * dwarf2/read.h (struct dwz_file): Move to dwz.h. | |
5031 | * dwarf2/read.c: Add include. | |
5032 | * dwarf2/index-write.c: Add include. | |
5033 | * dwarf2/index-cache.c: Add include. | |
5034 | * dwarf2/dwz.h: New file. | |
5035 | ||
33aa3c10 TT |
5036 | 2020-03-25 Tom Tromey <tom@tromey.com> |
5037 | ||
5038 | * compile/compile-object-load.c (get_out_value_type): Mention | |
5039 | correct symbol name in error message. | |
5040 | ||
d503b685 HD |
5041 | 2020-03-25 Hannes Domani <ssbssa@yahoo.de> |
5042 | ||
5043 | * windows-nat.c (windows_add_all_dlls): Fix system dll paths. | |
5044 | ||
7b1eff95 TV |
5045 | 2020-03-25 Tom de Vries <tdevries@suse.de> |
5046 | ||
5047 | * symtab.h (is_main_symtab_of_compunit_symtab): New function. | |
5048 | * symmisc.c (dump_symtab_1): Print user and includes fields. | |
5049 | (maintenance_info_symtabs): Same. | |
5050 | ||
dd895392 AB |
5051 | 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com> |
5052 | ||
5053 | PR gdb/25534 | |
5054 | * riscv-tdep.c (riscv_arg_info::c_offset): Update comment. | |
5055 | (riscv_regcache_cooked_write): New function. | |
5056 | (riscv_push_dummy_call): Use new function. | |
5057 | (riscv_return_value): Likewise. | |
5058 | ||
5ab2fbf1 SM |
5059 | 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca> |
5060 | ||
5061 | * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int. | |
5062 | * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise. | |
5063 | * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise. | |
5064 | * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise. | |
5065 | * infrun.c (follow_fork): Likewise. | |
5066 | (follow_fork_inferior): Likewise. | |
5067 | * linux-nat.c (linux_nat_target::follow_fork): Likewise. | |
5068 | * linux-nat.h (class linux_nat_target): Likewise. | |
5069 | * remote.c (class remote_target) <follow_fork>: Likewise. | |
5070 | (remote_target::follow_fork): Likewise. | |
5071 | * target-delegates.c: Re-generate. | |
5072 | * target.c (default_follow_fork): Likewise. | |
5073 | (target_follow_fork): Likewise. | |
5074 | * target.h (struct target_ops) <follow_fork>: Likewise. | |
5075 | (target_follow_fork): Likewise. | |
5076 | ||
a64fafb5 TV |
5077 | 2020-03-24 Tom de Vries <tdevries@suse.de> |
5078 | ||
5079 | * psymtab.c (maintenance_info_psymtabs): Print user field. | |
5080 | ||
fe26d3a3 TT |
5081 | 2020-03-20 Tom Tromey <tromey@adacore.com> |
5082 | ||
5083 | * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack" | |
5084 | const. | |
5085 | * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack" | |
5086 | const. | |
5087 | ||
c884cc46 SM |
5088 | 2020-03-20 Simon Marchi <simon.marchi@efficios.com> |
5089 | ||
5090 | * ptrace.m4: Don't check for ptrace declaration. | |
5091 | * config.in: Re-generate. | |
5092 | * configure: Re-generate. | |
5093 | * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is | |
5094 | not defined. | |
5095 | ||
1ff700c2 KR |
5096 | 2020-03-20 Kamil Rytarowski <n54@gmx.com> |
5097 | ||
5098 | * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to | |
5099 | `PTRACE_TYPE_RET'. | |
5100 | * i386-bsd-nat.c (gdb_ptrace): Likewise. | |
5101 | * sparc-nat.c (gdb_ptrace): Likewise. | |
5102 | * x86-bsd-nat.c (gdb_ptrace): Likewise. | |
5103 | ||
f7d4f0b1 TT |
5104 | 2020-03-20 Tom Tromey <tromey@adacore.com> |
5105 | ||
5106 | * c-exp.y (lex_one_token): Fix assert. | |
5107 | ||
f67210ff TT |
5108 | 2020-03-20 Tom Tromey <tromey@adacore.com> |
5109 | ||
5110 | * ada-tasks.c (read_atcb): Use smaller length in strncpy call. | |
5111 | * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in | |
5112 | strncpy call. | |
5113 | ||
1773be9e TT |
5114 | 2020-03-20 Tom Tromey <tromey@adacore.com> |
5115 | ||
5116 | * symmisc.c (maintenance_print_one_line_table): Use ui_out. | |
5117 | ||
70304be9 TT |
5118 | 2020-03-20 Tom Tromey <tromey@adacore.com> |
5119 | ||
5120 | * ada-valprint.c (print_variant_part): Remove parameters; switch | |
5121 | to value-based API. | |
5122 | (print_field_values): Likewise. | |
5123 | (ada_val_print_struct_union): Likewise. | |
5124 | (ada_value_print_1): Update. | |
5125 | ||
9faa006d KR |
5126 | 2020-03-20 Kamil Rytarowski <n54@gmx.com> |
5127 | ||
5128 | * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from | |
5129 | nbsd_nat_target instead of inf_ptrace_target. | |
5130 | * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using | |
5131 | nbsd_nat_target. | |
5132 | ||
4a90f062 KR |
5133 | 2020-03-20 Kamil Rytarowski <n54@gmx.com> |
5134 | ||
5135 | * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass | |
5136 | it to the ptrace call. | |
5137 | * (store_registers): Likewise. | |
5138 | ||
5139 | 2020-03-20 Kamil Rytarowski <n54@gmx.com> | |
c7da12c7 KR |
5140 | |
5141 | * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass | |
5142 | it to the ptrace call. | |
5143 | * (store_registers): Likewise. | |
5144 | ||
2d07da27 LM |
5145 | 2020-03-19 Luis Machado <luis.machado@linaro.org> |
5146 | ||
5147 | * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not | |
5148 | valid, fetch vg value from ptrace. | |
5149 | ||
f09db380 KR |
5150 | 2020-03-19 Kamil Rytarowski <n54@gmx.com> |
5151 | * inf-ptrace.h: Disable get_ptrace_pid on NetBSD. | |
5152 | * inf-ptrace.c: Likewise. | |
5153 | * (gdb_ptrace): Add. | |
5154 | * (inf_ptrace_target::resume): Update. | |
5155 | * (inf_ptrace_target::xfer_partial): Likewise. | |
5156 | * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'. | |
5157 | * (inf_ptrace_peek_poke): Update. | |
5158 | ||
fcc7376e KR |
5159 | 2020-03-19 Kamil Rytarowski <n54@gmx.com> |
5160 | ||
5161 | * x86-bsd-nat.c (gdb_ptrace): New. | |
5162 | * (x86bsd_dr_set): Add new argument `ptid'. | |
5163 | * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control, | |
5164 | x86bsd_dr_set_addr): Update. | |
5165 | ||
cada5fc9 AB |
5166 | 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com> |
5167 | ||
5168 | * remote.c (remote_target::process_stop_reply): Handle events for | |
5169 | all threads differently. | |
5170 | ||
19a2740f AB |
5171 | 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com> |
5172 | ||
5173 | * completer.c (completion_tracker::remove_completion): Define new | |
5174 | function. | |
5175 | * completer.h (completion_tracker::remove_completion): Declare new | |
5176 | function. | |
5177 | * symtab.c (completion_list_add_symbol): Remove aliasing msymbols | |
5178 | when adding a C++ function symbol. | |
5179 | ||
724fd9ba AB |
5180 | 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com> |
5181 | ||
5182 | * completer.c (completion_tracker::completion_hash_entry): Define | |
5183 | new class. | |
5184 | (advance_to_filename_complete_word_point): Call | |
5185 | recompute_lowest_common_denominator. | |
5186 | (completion_tracker::completion_tracker): Call discard_completions | |
5187 | to setup the hash table. | |
5188 | (completion_tracker::discard_completions): Allow for being called | |
5189 | from the constructor, pass new equal function, and element deleter | |
5190 | when constructing the hash table. Initialise new class member | |
5191 | variables. | |
5192 | (completion_tracker::maybe_add_completion): Remove use of | |
5193 | m_entries_vec, and store more information into m_entries_hash. | |
5194 | (completion_tracker::recompute_lcd_visitor): New function, most | |
5195 | content taken from... | |
5196 | (completion_tracker::recompute_lowest_common_denominator): | |
5197 | ...here, this now just visits each item in the hash calling the | |
5198 | above visitor. | |
5199 | (completion_tracker::build_completion_result): Remove use of | |
5200 | m_entries_vec, call recompute_lowest_common_denominator. | |
5201 | * completer.h (completion_tracker::have_completions): Remove use | |
5202 | of m_entries_vec. | |
5203 | (completion_tracker::completion_hash_entry): Declare new class. | |
5204 | (completion_tracker::recompute_lowest_common_denominator): Change | |
5205 | function signature. | |
5206 | (completion_tracker::recompute_lcd_visitor): Declare new function. | |
5207 | (completion_tracker::m_entries_vec): Delete. | |
5208 | (completion_tracker::m_entries_hash): Initialize to NULL. | |
5209 | (completion_tracker::m_lowest_common_denominator_valid): New | |
5210 | member variable. | |
5211 | (completion_tracker::m_lowest_common_denominator_max_length): New | |
5212 | member variable. | |
5213 | ||
5a82b8a1 KR |
5214 | 2020-03-17 Kamil Rytarowski <n54@gmx.com> |
5215 | ||
5216 | * regformats/regdef.h: Put reg in gdb namespace. | |
5217 | ||
fb516a69 KR |
5218 | 2020-03-17 Kamil Rytarowski <n54@gmx.com> |
5219 | ||
5220 | * i386-bsd-nat.c (gdb_ptrace): New. | |
5221 | * (i386bsd_fetch_inferior_registers, | |
5222 | i386bsd_store_inferior_registers) Switch from pid_t to ptid_t. | |
5223 | * (i386bsd_fetch_inferior_registers, | |
5224 | i386bsd_store_inferior_registers) Use gdb_ptrace. | |
5225 | ||
1c0aa1fb KR |
5226 | 2020-03-17 Kamil Rytarowski <n54@gmx.com> |
5227 | ||
5228 | * amd64-bsd-nat.c (gdb_ptrace): New. | |
5229 | * (amd64bsd_fetch_inferior_registers, | |
5230 | amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t. | |
5231 | * (amd64bsd_fetch_inferior_registers, | |
5232 | amd64bsd_store_inferior_registers) Use gdb_ptrace. | |
5233 | ||
5ccd2fb7 KR |
5234 | 2020-03-17 Kamil Rytarowski <n54@gmx.com> |
5235 | ||
5236 | * user-regs.c (user_reg::read): Rename to... | |
5237 | (user_reg::xread): ...this. | |
5238 | * (append_user_reg): Rename argument `read' to `xread'. | |
5239 | * (user_reg_add_builtin): Likewise. | |
5240 | * (user_reg_add): Likewise. | |
5241 | * (value_of_user_reg): Likewise. | |
5242 | ||
2108a63a KR |
5243 | 2020-03-17 Kamil Rytarowski <n54@gmx.com> |
5244 | ||
5245 | * sparc-nat.c (gdb_ptrace): New. | |
5246 | * sparc-nat.c (sparc_fetch_inferior_registers) | |
5247 | (sparc_store_inferior_registers) Remove obsolete comment. | |
5248 | * sparc-nat.c (sparc_fetch_inferior_registers) | |
5249 | (sparc_store_inferior_registers) Switch from pid_t to ptid_t. | |
5250 | * sparc-nat.c (sparc_fetch_inferior_registers) | |
5251 | (sparc_store_inferior_registers) Use gdb_ptrace. | |
5252 | ||
a225c9a8 KR |
5253 | 2020-03-17 Kamil Rytarowski <n54@gmx.com> |
5254 | ||
5255 | * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass | |
5256 | it to the ptrace call. | |
5257 | * sh-nbsd-nat.c (store_registers): Likewise. | |
5258 | ||
98097623 KR |
5259 | 2020-03-17 Kamil Rytarowski <n54@gmx.com> |
5260 | ||
5261 | * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from | |
5262 | nbsd_nat_target instead of inf_ptrace_target. | |
5263 | * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using | |
5264 | nbsd_nat_target. | |
5265 | ||
9e38d619 KR |
5266 | 2020-03-17 Kamil Rytarowski <n54@gmx.com> |
5267 | ||
5268 | * amd64-bsd-nat.c: Include amd64-bsd-nat.h". | |
5269 | ||
a2ecbe9f KR |
5270 | 2020-03-17 Kamil Rytarowski <n54@gmx.com> |
5271 | ||
5272 | * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and | |
5273 | <sys/sysctl.h>. | |
5274 | * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite. | |
5275 | ||
58990295 TV |
5276 | 2020-03-17 Tom de Vries <tdevries@suse.de> |
5277 | ||
5278 | PR gdb/23710 | |
5279 | * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang | |
5280 | fields. | |
5281 | * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang | |
5282 | fields. | |
5283 | (process_imported_unit_die): Skip import of c++ CUs. | |
5284 | ||
771dd3a8 TT |
5285 | 2020-03-16 Tom Tromey <tom@tromey.com> |
5286 | ||
5287 | * p-valprint.c (pascal_object_print_value): Initialize | |
5288 | base_value. | |
5289 | ||
817a7585 AK |
5290 | 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com> |
5291 | Shahab Vahedi <shahab@synopsys.com> | |
5292 | ||
5293 | * Makefile.in: Add arch/arc.o | |
5294 | * configure.tgt: Likewise. | |
5295 | * arc-tdep.c (arc_tdesc_init): Use arc_read_description. | |
5296 | (_initialize_arc_tdep): Don't initialize old target descriptions. | |
aac66a4c | 5297 | (arc_read_description): New function to cache target descriptions. |
817a7585 AK |
5298 | * arc-tdep.h (arc_read_description): Add proto type. |
5299 | * arch/arc.c: New file. | |
5300 | * arch/arc.h: Likewise. | |
5301 | * features/Makefile: Replace old target descriptions with new. | |
5302 | * features/arc-arcompact.c: Remove. | |
5303 | * features/arc-arcompact.xml: Likewise. | |
5304 | * features/arc-v2.c: Likewise | |
5305 | * features/arc-v2.xml: Likewise | |
5306 | * features/arc/aux-arcompact.xml: New file. | |
5307 | * features/arc/aux-v2.xml: Likewise. | |
5308 | * features/arc/core-arcompact.xml: Likewise. | |
5309 | * features/arc/core-v2.xml: Likewise. | |
5310 | * features/arc/aux-arcompact.c: Generate. | |
5311 | * features/arc/aux-v2.c: Likewise. | |
5312 | * features/arc/core-arcompact.c: Likewise. | |
5313 | * features/arc/core-v2.c: Likewise. | |
5314 | * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features. | |
5315 | ||
67430cd0 TT |
5316 | 2020-03-16 Tom Tromey <tromey@adacore.com> |
5317 | ||
5318 | PR gdb/25663: | |
5319 | * dwarf2/read.c (dwarf2_name): Strip leading namespaces after | |
5320 | putting value into bcache. | |
5321 | ||
30efb6c7 SM |
5322 | 2020-03-16 Simon Marchi <simon.marchi@efficios.com> |
5323 | ||
5324 | PR gdb/21500 | |
5325 | * amd64-windows-tdep.c (amd64_windows_init_abi): Rename | |
5326 | to... | |
5327 | (amd64_windows_init_abi_common): ... this. Don't set size of | |
5328 | long type. | |
5329 | (amd64_windows_init_abi): New function. | |
5330 | (amd64_cygwin_init_abi): New function. | |
5331 | (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for | |
5332 | the Cygwin OS ABI. | |
5333 | * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify | |
5334 | comment. | |
5335 | ||
8db52437 SM |
5336 | 2020-03-16 Simon Marchi <simon.marchi@efficios.com> |
5337 | ||
5338 | * windows-tdep.h (is_linked_with_cygwin_dll): New declaration. | |
5339 | * windows-tdep.c (CYGWIN_DLL_NAME): New. | |
5340 | (pe_import_directory_entry): New struct type. | |
5341 | (is_linked_with_cygwin_dll): New function. | |
5342 | * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select | |
5343 | GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL. | |
5344 | * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise. | |
5345 | ||
5982a56a SM |
5346 | 2020-03-16 Simon Marchi <simon.marchi@efficios.com> |
5347 | ||
5348 | * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except | |
5349 | i386_cygwin_core_osabi_sniffer. | |
5350 | ||
7a1998df SM |
5351 | 2020-03-16 Simon Marchi <simon.marchi@efficios.com> |
5352 | ||
5353 | * i386-cygwin-tdep.c: Rename to... | |
5354 | * i386-windows-tdep.c: ... this. | |
5355 | * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to | |
5356 | i386-windows-tdep.c. | |
5357 | * configure.tgt: Likewise. | |
5358 | ||
053205cc SM |
5359 | 2020-03-16 Simon Marchi <simon.marchi@efficios.com> |
5360 | ||
5361 | * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS. | |
5362 | * osabi.c (gdb_osabi_names): Add "Windows". | |
5363 | * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return | |
5364 | GDB_OSABI_WINDOWS when the binary's target is "pei-i386". | |
5365 | (i386_cygwin_core_osabi_sniffer): New function, extracted from | |
5366 | i386_cygwin_osabi_sniffer. | |
5367 | (_initialize_i386_cygwin_tdep): Register OS ABI | |
5368 | GDB_OSABI_WINDOWS for i386. | |
5369 | * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return | |
5370 | GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64". | |
5371 | (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS | |
5372 | for x86-64. | |
5373 | * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI | |
5374 | when the target matches '*-*-mingw*'. | |
5375 | ||
fe4b2ee6 SM |
5376 | 2020-03-16 Simon Marchi <simon.marchi@efficios.com> |
5377 | ||
5378 | * defs.h (enum gdb_osabi): Move to... | |
5379 | * osabi.h (enum gdb_osabi): ... here. | |
5380 | * gdbarch.sh: Include osabi.h in gdbarch.h. | |
5381 | * gdbarch.h: Re-generate. | |
5382 | ||
cb9b645d SM |
5383 | 2020-03-16 Simon Marchi <simon.marchi@efficios.com> |
5384 | ||
5385 | * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New | |
5386 | function. | |
5387 | (_initialize_amd64_windows_tdep): Register osabi sniffer. | |
5388 | ||
3293bbaf TT |
5389 | 2020-03-14 Tom Tromey <tom@tromey.com> |
5390 | ||
5391 | * c-typeprint.c (cp_type_print_method_args): Print "__restrict__" | |
5392 | for C++. | |
5393 | (c_type_print_modifier): Likewise. Add "language" parameter. | |
5394 | (c_type_print_varspec_prefix, c_type_print_base_struct_union) | |
5395 | (c_type_print_base_1): Update. | |
5396 | * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New | |
5397 | constants. | |
5398 | * type-stack.c (type_stack::insert): Handle tp_atomic and | |
5399 | tp_restrict. | |
5400 | (type_stack::follow_type_instance_flags): Likewise. | |
5401 | (type_stack::follow_types): Likewise. Merge type-following code. | |
5402 | * c-exp.y (RESTRICT, ATOMIC): New tokens. | |
5403 | (space_identifier, cv_with_space_id) | |
5404 | (const_or_volatile_or_space_identifier_noopt) | |
5405 | (const_or_volatile_or_space_identifier): Remove. | |
5406 | (single_qualifier, qualifier_seq_noopt, qualifier_seq): New | |
5407 | rules. | |
5408 | (ptr_operator, typebase): Update. | |
5409 | (enum token_flag) <FLAG_C>: New constant. | |
5410 | (ident_tokens): Add "restrict", "__restrict__", "__restrict", and | |
5411 | "_Atomic". | |
5412 | (lex_one_token): Handle FLAG_C. | |
5413 | ||
154151a6 KR |
5414 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
5415 | ||
5416 | * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass | |
5417 | it to the ptrace call. | |
5418 | * m68k-bsd-nat.c (store_registers): Likewise. | |
5419 | ||
bc107784 KR |
5420 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
5421 | ||
5422 | * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to | |
5423 | gdb_byte *. | |
5424 | * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise. | |
5425 | * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise. | |
5426 | * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *. | |
5427 | ||
01a80117 KR |
5428 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
5429 | ||
5430 | * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from | |
5431 | nbsd_nat_target instead of inf_ptrace_target. | |
5432 | * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using | |
5433 | nbsd_nat_target. | |
5434 | ||
f90280ca KR |
5435 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
5436 | ||
5437 | * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of | |
5438 | register_t. | |
5439 | ||
6def66f1 KR |
5440 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
5441 | ||
5442 | * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass | |
5443 | it to the ptrace call. | |
5444 | * alpha-bsd-nat.c (store_registers): Likewise. | |
5445 | ||
66eaca97 KR |
5446 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
5447 | ||
5448 | * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from | |
5449 | includes. | |
5450 | * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove. | |
5451 | * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset, | |
5452 | fill_fpregset): Likewise. | |
5453 | ||
4fed520b KR |
5454 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
5455 | ||
5456 | * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from | |
5457 | nbsd_nat_target instead of inf_ptrace_target. | |
5458 | * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using | |
5459 | nbsd_nat_target. | |
5460 | ||
2190cf06 KR |
5461 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
5462 | ||
5463 | * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of | |
5464 | register_t. | |
5465 | ||
75c56d3d KR |
5466 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
5467 | ||
5468 | * arm-nbsd-nat.c (fetch_register): New variable lwp and pass | |
5469 | it to the ptrace call. | |
5470 | * arm-nbsd-nat.c (fetch_fp_register): Likewise. | |
5471 | * arm-nbsd-nat.c (fetch_fp_regs): Likewise. | |
5472 | * arm-nbsd-nat.c (store_register): Likewise. | |
5473 | * arm-nbsd-nat.c (store_regs): Likewise. | |
5474 | * arm-nbsd-nat.c (store_fp_register): Likewise. | |
5475 | * arm-nbsd-nat.c (store_fp_regs): Likewise. | |
5476 | ||
6018d381 KR |
5477 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
5478 | ||
5479 | * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from | |
5480 | nbsd_nat_target instead of inf_ptrace_target. | |
5481 | * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using | |
5482 | nbsd_nat_target. | |
5483 | ||
013f99f0 KR |
5484 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
5485 | ||
5486 | * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass | |
5487 | it to the ptrace call. | |
5488 | * x86-bsd-nat.c (x86bsd_dr_set): Likewise. | |
5489 | ||
12753073 KR |
5490 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
5491 | ||
6227b330 KR |
5492 | * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass |
5493 | it to the ptrace call. | |
5494 | * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise. | |
5495 | ||
5496 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> | |
5497 | ||
5498 | * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const | |
5499 | gdb_byte *. | |
12753073 KR |
5500 | * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *. |
5501 | ||
d5be5fa4 KR |
5502 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
5503 | ||
5504 | * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target | |
5505 | instead of inf_ptrace_target. | |
5506 | * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using | |
5507 | nbsd_nat_target. | |
5508 | ||
8110f842 KR |
5509 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
5510 | ||
5511 | * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of | |
5512 | register_t. | |
5513 | ||
52feded7 KR |
5514 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
5515 | ||
5516 | * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of | |
5517 | register_t. | |
5518 | ||
25567eee KR |
5519 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
5520 | ||
5521 | * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of | |
5522 | register_t. | |
5523 | ||
426a9c18 TT |
5524 | 2020-03-13 Tom Tromey <tom@tromey.com> |
5525 | ||
5526 | * value.h (val_print): Don't declare. | |
5527 | * valprint.h (val_print_array_elements) | |
5528 | (val_print_scalar_formatted, generic_val_print): Don't declare. | |
5529 | * valprint.c (generic_val_print_array): Take a struct value. | |
5530 | (generic_val_print_ptr, generic_val_print_memberptr) | |
5531 | (generic_val_print_bool, generic_val_print_int) | |
5532 | (generic_val_print_char, generic_val_print_complex) | |
5533 | (generic_val_print): Remove. | |
5534 | (generic_value_print): Update. | |
5535 | (do_val_print): Remove unused parameters. Don't call | |
5536 | la_val_print. | |
5537 | (val_print): Remove. | |
5538 | (common_val_print): Update. Don't call value_check_printable. | |
5539 | (val_print_scalar_formatted, val_print_array_elements): Remove. | |
5540 | * rust-lang.c (rust_val_print): Remove. | |
5541 | (rust_language_defn): Update. | |
5542 | * p-valprint.c (pascal_val_print): Remove. | |
5543 | (pascal_value_print_inner): Update. | |
5544 | (pascal_object_print_val_fields, pascal_object_print_val): | |
5545 | Remove. | |
5546 | (pascal_object_print_static_field): Update. | |
5547 | * p-lang.h (pascal_val_print): Don't declare. | |
5548 | * p-lang.c (pascal_language_defn): Update. | |
5549 | * opencl-lang.c (opencl_language_defn): Update. | |
5550 | * objc-lang.c (objc_language_defn): Update. | |
5551 | * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove. | |
5552 | * m2-lang.h (m2_val_print): Don't declare. | |
5553 | * m2-lang.c (m2_language_defn): Update. | |
5554 | * language.h (struct language_defn) <la_val_print>: Remove. | |
5555 | * language.c (unk_lang_value_print_inner): Rename. Change | |
5556 | argument types. | |
5557 | (unknown_language_defn, auto_language_defn): Update. | |
5558 | * go-valprint.c (go_val_print): Remove. | |
5559 | * go-lang.h (go_val_print): Don't declare. | |
5560 | * go-lang.c (go_language_defn): Update. | |
5561 | * f-valprint.c (f_val_print): Remove. | |
5562 | * f-lang.h (f_value_print): Don't declare. | |
5563 | * f-lang.c (f_language_defn): Update. | |
5564 | * d-valprint.c (d_val_print): Remove. | |
5565 | * d-lang.h (d_value_print): Don't declare. | |
5566 | * d-lang.c (d_language_defn): Update. | |
5567 | * cp-valprint.c (cp_print_value_fields) | |
5568 | (cp_print_value_fields_rtti, cp_print_value): Remove. | |
5569 | (cp_print_static_field): Update. | |
5570 | * c-valprint.c (c_val_print_array, c_val_print_ptr) | |
5571 | (c_val_print_struct, c_val_print_union, c_val_print_int) | |
5572 | (c_val_print_memberptr, c_val_print): Remove. | |
5573 | * c-lang.h (c_val_print_array, cp_print_value_fields) | |
5574 | (cp_print_value_fields_rtti): Don't declare. | |
5575 | * c-lang.c (c_language_defn, cplus_language_defn) | |
5576 | (asm_language_defn, minimal_language_defn): Update. | |
5577 | * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove. | |
5578 | (ada_val_print_enum): Take a struct value. | |
5579 | (ada_val_print_flt, ada_val_print_array, ada_val_print_1) | |
5580 | (ada_val_print): Remove. | |
5581 | (ada_value_print_1): Update. | |
5582 | (printable_val_type): Remove. | |
5583 | * ada-lang.h (ada_val_print): Don't declare. | |
5584 | * ada-lang.c (ada_language_defn): Update. | |
5585 | ||
42331a1e TT |
5586 | 2020-03-13 Tom Tromey <tom@tromey.com> |
5587 | ||
5588 | * valprint.c (do_val_print): Update. | |
5589 | * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take | |
5590 | a struct value. | |
5591 | (value_to_value_object_no_release): Declare. | |
5592 | * python/py-value.c (value_to_value_object_no_release): New | |
5593 | function. | |
5594 | * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a | |
5595 | struct value. | |
5596 | * guile/scm-value.c (vlscm_scm_from_value_no_release): New | |
5597 | function. | |
5598 | * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take | |
5599 | a struct value. | |
5600 | * guile/guile-internal.h (vlscm_scm_from_value_no_release): | |
5601 | Declare. | |
5602 | (gdbscm_apply_val_pretty_printer): Take a struct value. | |
5603 | * extension.h (apply_ext_lang_val_pretty_printer): Take a struct | |
5604 | value. | |
5605 | * extension.c (apply_ext_lang_val_pretty_printer): Take a struct | |
5606 | value. | |
5607 | * extension-priv.h (struct extension_language_ops) | |
5608 | <apply_val_pretty_printer>: Take a struct value. | |
5609 | * cp-valprint.c (cp_print_value): Create a struct value. | |
5610 | (cp_print_value): Update. | |
5611 | ||
3a916a97 TT |
5612 | 2020-03-13 Tom Tromey <tom@tromey.com> |
5613 | ||
5614 | * ada-valprint.c (print_field_values): Call common_val_print. | |
5615 | ||
b59eac37 TT |
5616 | 2020-03-13 Tom Tromey <tom@tromey.com> |
5617 | ||
5618 | * ada-valprint.c (val_print_packed_array_elements): Remove | |
5619 | bitoffset and val parameters. Call common_val_print. | |
5620 | (ada_val_print_string): Remove offset, address, and original_value | |
5621 | parameters. | |
5622 | (ada_val_print_array): Update. | |
5623 | (ada_value_print_array): New function. | |
5624 | (ada_value_print_1): Call it. | |
5625 | ||
03371129 TT |
5626 | 2020-03-13 Tom Tromey <tom@tromey.com> |
5627 | ||
5628 | * ada-valprint.c (ada_value_print): Use common_val_print. | |
5629 | ||
2e088f8b TT |
5630 | 2020-03-13 Tom Tromey <tom@tromey.com> |
5631 | ||
5632 | * ada-valprint.c (ada_val_print_ref): Use common_val_print. | |
5633 | ||
39ef85a8 TT |
5634 | 2020-03-13 Tom Tromey <tom@tromey.com> |
5635 | ||
5636 | * ada-valprint.c (ada_value_print_num): New function. | |
5637 | (ada_value_print_1): Use it. | |
5638 | ||
b9fa6e07 TT |
5639 | 2020-03-13 Tom Tromey <tom@tromey.com> |
5640 | ||
5641 | * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite. | |
5642 | ||
416595d6 TT |
5643 | 2020-03-13 Tom Tromey <tom@tromey.com> |
5644 | ||
5645 | * ada-valprint.c (ada_value_print_ptr): New function. | |
5646 | (ada_value_print_1): Use it. | |
5647 | ||
5b5e15ec TT |
5648 | 2020-03-13 Tom Tromey <tom@tromey.com> |
5649 | ||
5650 | * ada-valprint.c (ada_val_print_gnat_array): Take a struct value; | |
5651 | call common_val_print. | |
5652 | (ada_val_print_1): Update. | |
5653 | (ada_value_print_1): New function. | |
5654 | (ada_value_print_inner): Rewrite. | |
5655 | ||
fbf54e75 TT |
5656 | 2020-03-13 Tom Tromey <tom@tromey.com> |
5657 | ||
5658 | * cp-valprint.c (cp_print_value_fields): Update. | |
5659 | (cp_print_value): New function. | |
5660 | ||
64b653ca TT |
5661 | 2020-03-13 Tom Tromey <tom@tromey.com> |
5662 | ||
5663 | * m2-valprint.c (m2_value_print_inner): Use | |
5664 | cp_print_value_fields. | |
5665 | * cp-valprint.c (cp_print_value_fields): New function. | |
5666 | * c-valprint.c (c_value_print_struct): New function. | |
5667 | (c_value_print_inner): Use c_value_print_struct. | |
5668 | * c-lang.h (cp_print_value_fields): Declare. | |
5669 | ||
6999f067 TT |
5670 | 2020-03-13 Tom Tromey <tom@tromey.com> |
5671 | ||
5672 | * c-valprint.c (c_value_print_array): New function. | |
5673 | (c_value_print_inner): Use it. | |
5674 | ||
ce80b8bd TT |
5675 | 2020-03-13 Tom Tromey <tom@tromey.com> |
5676 | ||
5677 | * c-valprint.c (c_value_print_memberptr): New function. | |
5678 | (c_value_print_inner): Use it. | |
5679 | ||
2faac269 TT |
5680 | 2020-03-13 Tom Tromey <tom@tromey.com> |
5681 | ||
5682 | * c-valprint.c (c_value_print_int): New function. | |
5683 | (c_value_print_inner): Use it. | |
5684 | ||
da3e2c29 TT |
5685 | 2020-03-13 Tom Tromey <tom@tromey.com> |
5686 | ||
5687 | * c-valprint.c (c_value_print_ptr): New function. | |
5688 | (c_value_print_inner): Use it. | |
5689 | ||
50836231 TT |
5690 | 2020-03-13 Tom Tromey <tom@tromey.com> |
5691 | ||
5692 | * c-valprint.c (c_value_print_inner): Rewrite. | |
5693 | ||
4f412b6e TT |
5694 | 2020-03-13 Tom Tromey <tom@tromey.com> |
5695 | ||
5696 | * valprint.c (generic_value_print_complex): New function. | |
5697 | (generic_value_print): Use it. | |
5698 | ||
f5354008 TT |
5699 | 2020-03-13 Tom Tromey <tom@tromey.com> |
5700 | ||
5701 | * valprint.c (generic_val_print_float): Don't call | |
5702 | val_print_scalar_formatted. | |
5703 | (generic_val_print, generic_value_print): Update. | |
5704 | ||
3eec3b05 TT |
5705 | 2020-03-13 Tom Tromey <tom@tromey.com> |
5706 | ||
5707 | * valprint.c (generic_value_print_char): New function | |
5708 | (generic_value_print): Use it. | |
5709 | ||
fdddfccb TT |
5710 | 2020-03-13 Tom Tromey <tom@tromey.com> |
5711 | ||
5712 | * valprint.c (generic_value_print_int): New function. | |
5713 | (generic_value_print): Use it. | |
5714 | ||
6dde7521 TT |
5715 | 2020-03-13 Tom Tromey <tom@tromey.com> |
5716 | ||
5717 | * valprint.c (generic_value_print_bool): New function. | |
5718 | (generic_value_print): Use it. | |
5719 | ||
4112d2e6 TT |
5720 | 2020-03-13 Tom Tromey <tom@tromey.com> |
5721 | ||
5722 | * valprint.c (generic_val_print_func): Simplify. | |
5723 | (generic_val_print, generic_value_print): Update. | |
5724 | ||
65786af6 TT |
5725 | 2020-03-13 Tom Tromey <tom@tromey.com> |
5726 | ||
5727 | * valprint.c (generic_val_print_flags): Remove. | |
5728 | (generic_val_print, generic_value_print): Update. | |
5729 | (val_print_type_code_flags): Add original_value parameter. | |
5730 | ||
40f3ce18 TT |
5731 | 2020-03-13 Tom Tromey <tom@tromey.com> |
5732 | ||
5733 | * valprint.c (generic_val_print): Update. | |
5734 | (generic_value_print): Update. | |
5735 | * valprint.c (generic_val_print_enum): Don't call | |
5736 | val_print_scalar_formatted. | |
5737 | ||
2a5b130b TT |
5738 | 2020-03-13 Tom Tromey <tom@tromey.com> |
5739 | ||
5740 | * valprint.c (generic_value_print): Call generic_value_print_ptr. | |
5741 | * valprint.c (generic_value_print_ptr): New function. | |
5742 | ||
abc66ce9 TT |
5743 | 2020-03-13 Tom Tromey <tom@tromey.com> |
5744 | ||
5745 | * valprint.c (generic_value_print): Rewrite. | |
5746 | ||
07a32858 TT |
5747 | 2020-03-13 Tom Tromey <tom@tromey.com> |
5748 | ||
5749 | * p-valprint.c (pascal_object_print_value_fields) | |
5750 | (pascal_object_print_value): New functions. | |
5751 | ||
64d64d3a TT |
5752 | 2020-03-13 Tom Tromey <tom@tromey.com> |
5753 | ||
5754 | * p-valprint.c (pascal_value_print_inner): Rewrite. | |
5755 | ||
6a95a1f5 TT |
5756 | 2020-03-13 Tom Tromey <tom@tromey.com> |
5757 | ||
5758 | * f-valprint.c (f_value_print_innner): Rewrite. | |
5759 | ||
59fcdac6 TT |
5760 | 2020-03-13 Tom Tromey <tom@tromey.com> |
5761 | ||
5762 | * m2-valprint.c (m2_print_unbounded_array): New overload. | |
5763 | (m2_print_unbounded_array): Update. | |
5764 | (m2_print_array_contents): Take a struct value. | |
5765 | (m2_value_print_inner): Rewrite. | |
5766 | ||
d133c3e1 TT |
5767 | 2020-03-13 Tom Tromey <tom@tromey.com> |
5768 | ||
5769 | * d-valprint.c (dynamic_array_type): Call d_value_print_inner. | |
5770 | (d_value_print_inner): New function. | |
5771 | * d-lang.h (d_value_print_inner): Declare. | |
5772 | * d-lang.c (d_language_defn): Use d_value_print_inner. | |
5773 | ||
23b0f06b TT |
5774 | 2020-03-13 Tom Tromey <tom@tromey.com> |
5775 | ||
5776 | * go-valprint.c (go_value_print_inner): New function. | |
5777 | * go-lang.h (go_value_print_inner): Declare. | |
5778 | * go-lang.c (go_language_defn): Use go_value_print_inner. | |
5779 | ||
5f56f7cb TT |
5780 | 2020-03-13 Tom Tromey <tom@tromey.com> |
5781 | ||
5782 | * rust-lang.c (val_print_struct, rust_print_enum): Use the value | |
5783 | API. | |
5784 | (rust_val_print): Rewrite. | |
5785 | (rust_value_print_inner): New function, from rust_val_print. | |
5786 | (rust_language_defn): Use rust_value_print_inner. | |
5787 | ||
26792ee0 TT |
5788 | 2020-03-13 Tom Tromey <tom@tromey.com> |
5789 | ||
5790 | * ada-valprint.c (ada_value_print_inner): New function. | |
5791 | * ada-lang.h (ada_value_print_inner): Declare. | |
5792 | * ada-lang.c (ada_language_defn): Use ada_value_print_inner. | |
5793 | ||
24051bbe TT |
5794 | 2020-03-13 Tom Tromey <tom@tromey.com> |
5795 | ||
5796 | * f-valprint.c (f_value_print_innner): New function. | |
5797 | * f-lang.h (f_value_print_innner): Declare. | |
5798 | * f-lang.c (f_language_defn): Use f_value_print_innner. | |
5799 | ||
c0941be6 TT |
5800 | 2020-03-13 Tom Tromey <tom@tromey.com> |
5801 | ||
5802 | * p-valprint.c (pascal_value_print_inner): New function. | |
5803 | * p-lang.h (pascal_value_print_inner): Declare. | |
5804 | * p-lang.c (pascal_language_defn): Use pascal_value_print_inner. | |
5805 | ||
62c4663d TT |
5806 | 2020-03-13 Tom Tromey <tom@tromey.com> |
5807 | ||
5808 | * m2-valprint.c (m2_value_print_inner): New function. | |
5809 | * m2-lang.h (m2_value_print_inner): Declare. | |
5810 | * m2-lang.c (m2_language_defn): Use m2_value_print_inner. | |
5811 | ||
62182190 TT |
5812 | 2020-03-13 Tom Tromey <tom@tromey.com> |
5813 | ||
5814 | * opencl-lang.c (opencl_language_defn): Use c_value_print_inner. | |
5815 | * objc-lang.c (objc_language_defn): Use c_value_print_inner. | |
5816 | * c-valprint.c (c_value_print_inner): New function. | |
5817 | * c-lang.h (c_value_print_inner): Declare. | |
5818 | * c-lang.c (c_language_defn, cplus_language_defn) | |
5819 | (asm_language_defn, minimal_language_defn): Use | |
5820 | c_value_print_inner. | |
5821 | ||
1e592a8a TT |
5822 | 2020-03-13 Tom Tromey <tom@tromey.com> |
5823 | ||
5824 | * p-valprint.c (pascal_object_print_value_fields): Now static. | |
5825 | * p-lang.h (pascal_object_print_value_fields): Don't declare. | |
5826 | ||
7fe471e9 TT |
5827 | 2020-03-13 Tom Tromey <tom@tromey.com> |
5828 | ||
5829 | * c-valprint.c (c_val_print_array): Simplify. | |
5830 | ||
d121c6ce TT |
5831 | 2020-03-13 Tom Tromey <tom@tromey.com> |
5832 | ||
5833 | * valprint.c (value_print_array_elements): New function. | |
5834 | * valprint.h (value_print_array_elements): Declare. | |
5835 | ||
4dba70ee TT |
5836 | 2020-03-13 Tom Tromey <tom@tromey.com> |
5837 | ||
5838 | * printcmd.c (print_formatted): Use value_print_scalar_formatted. | |
5839 | * mips-tdep.c (mips_print_register): Use | |
5840 | value_print_scalar_formatted. | |
5841 | ||
4f9ae810 TT |
5842 | 2020-03-13 Tom Tromey <tom@tromey.com> |
5843 | ||
5844 | * valprint.h (value_print_scalar_formatted): Declare. | |
5845 | * valprint.c (value_print_scalar_formatted): New function. | |
5846 | ||
156bfec9 TT |
5847 | 2020-03-13 Tom Tromey <tom@tromey.com> |
5848 | ||
5849 | * valprint.h (generic_value_print): Declare. | |
5850 | * valprint.c (generic_value_print): New function. | |
5851 | ||
2b4e573d TT |
5852 | 2020-03-13 Tom Tromey <tom@tromey.com> |
5853 | ||
5854 | * valprint.c (do_val_print): Call la_value_print_inner, if | |
5855 | available. | |
5856 | * rust-lang.c (rust_language_defn): Update. | |
5857 | * p-lang.c (pascal_language_defn): Update. | |
5858 | * opencl-lang.c (opencl_language_defn): Update. | |
5859 | * objc-lang.c (objc_language_defn): Update. | |
5860 | * m2-lang.c (m2_language_defn): Update. | |
5861 | * language.h (struct language_defn) <la_value_print_inner>: New | |
5862 | member. | |
5863 | * language.c (unknown_language_defn, auto_language_defn): Update. | |
5864 | * go-lang.c (go_language_defn): Update. | |
5865 | * f-lang.c (f_language_defn): Update. | |
5866 | * d-lang.c (d_language_defn): Update. | |
5867 | * c-lang.c (c_language_defn, cplus_language_defn) | |
5868 | (asm_language_defn, minimal_language_defn): Update. | |
5869 | * ada-lang.c (ada_language_defn): Update. | |
5870 | ||
a1f6a07c TT |
5871 | 2020-03-13 Tom Tromey <tom@tromey.com> |
5872 | ||
5873 | * c-valprint.c (c_value_print): Use common_val_print. | |
5874 | ||
410cf315 TT |
5875 | 2020-03-13 Tom Tromey <tom@tromey.com> |
5876 | ||
5877 | * cp-valprint.c (cp_print_static_field): Use common_val_print. | |
5878 | ||
72a45c93 TT |
5879 | 2020-03-13 Tom Tromey <tom@tromey.com> |
5880 | ||
5881 | * f-valprint.c (f77_print_array_1, f_val_print): Use | |
5882 | common_val_print. | |
5883 | ||
040f66bd TT |
5884 | 2020-03-13 Tom Tromey <tom@tromey.com> |
5885 | ||
5886 | * riscv-tdep.c (riscv_print_one_register_info): Use | |
5887 | common_val_print. | |
5888 | ||
a6e05a6c TT |
5889 | 2020-03-13 Tom Tromey <tom@tromey.com> |
5890 | ||
5891 | * mi/mi-main.c (output_register): Use common_val_print. | |
5892 | ||
3444c526 TT |
5893 | 2020-03-13 Tom Tromey <tom@tromey.com> |
5894 | ||
5895 | * infcmd.c (default_print_one_register_info): Use | |
5896 | common_val_print. | |
5897 | ||
c2a44efe TT |
5898 | 2020-03-13 Tom Tromey <tom@tromey.com> |
5899 | ||
5900 | * valprint.h (common_val_print_checked): Declare. | |
5901 | * valprint.c (common_val_print_checked): New function. | |
5902 | * stack.c (print_frame_arg): Use common_val_print_checked. | |
5903 | ||
b0c26e99 TT |
5904 | 2020-03-13 Tom Tromey <tom@tromey.com> |
5905 | ||
5906 | * valprint.c (do_val_print): New function, from val_print. | |
5907 | (val_print): Use do_val_print. | |
5908 | (common_val_print): Use do_val_print. | |
5909 | ||
ce3acbe9 TT |
5910 | 2020-03-13 Tom Tromey <tom@tromey.com> |
5911 | ||
5912 | * valprint.c (value_print): Use scoped_value_mark. | |
5913 | ||
96c7f873 TV |
5914 | 2020-03-13 Tom de Vries <tdevries@suse.de> |
5915 | ||
5916 | PR symtab/25646 | |
5917 | * psymtab.c (partial_symtab::partial_symtab): Don't set | |
5918 | globals_offset and statics_offset. Push element onto | |
5919 | current_global_psymbols and current_static_psymbols stacks. | |
5920 | (concat): New function. | |
5921 | (end_psymtab_common): Set globals_offset and statics_offset. Pop | |
5922 | element from current_global_psymbols and current_static_psymbols | |
5923 | stacks. Concat popped elements to global_psymbols and | |
5924 | static_symbols. | |
5925 | (add_psymbol_to_list): Use current_global_psymbols and | |
5926 | current_static_psymbols stacks. | |
5927 | * psymtab.h (class psymtab_storage): Add current_global_psymbols and | |
5928 | current_static_psymbols fields. | |
5929 | ||
6ba0a321 CB |
5930 | 2020-03-12 Christian Biesinger <cbiesinger@google.com> |
5931 | ||
5932 | * corelow.c (sniff_core_bfd): Remove. | |
5933 | (class core_target) <m_core_vec>: Remove. | |
5934 | (core_target::core_target): Update. | |
5935 | (core_file_fns): Remove. | |
5936 | (deprecated_add_core_fns): Remove. | |
5937 | (default_core_sniffer): Remove. | |
5938 | (sniff_core_bfd): Remove. | |
5939 | (default_check_format): Remove. | |
5940 | (gdb_check_format): Remove. | |
5941 | (core_target_open): Update. | |
5942 | (core_target::get_core_register_section): Update. | |
5943 | (get_core_registers_cb): Update. | |
5944 | (core_target::fetch_registers): Update. | |
5945 | * gdbcore.h (struct core_fns): Remove. | |
5946 | (deprecated_add_core_fns): Remove. | |
5947 | (default_core_sniffer): Remove. | |
5948 | (default_check_format): Remove. | |
5949 | ||
227031b2 TT |
5950 | 2020-03-12 Tom Tromey <tom@tromey.com> |
5951 | ||
5952 | * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a | |
5953 | CORE_ADDR. | |
5954 | (struct arm_exidx_entry) <addr>: Now a CORE_ADDR. | |
5955 | ||
53807e9f TT |
5956 | 2020-03-12 Tom Tromey <tom@tromey.com> |
5957 | ||
5958 | * remote.c (remote_target::download_tracepoint) | |
5959 | (remote_target::enable_tracepoint) | |
5960 | (remote_target::disable_tracepoint): Use phex, not sprintf_vma. | |
5961 | * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not | |
5962 | sprintf_vma. | |
5963 | ||
64f25102 TT |
5964 | 2020-03-12 Tom Tromey <tom@tromey.com> |
5965 | ||
5966 | * symfile-mem.c: Update CORE_ADDR size assert. | |
5967 | ||
272cd5a3 SM |
5968 | 2020-03-12 Simon Marchi <simon.marchi@efficios.com> |
5969 | ||
5970 | * selftest.m4: Move to gdbsupport/. | |
5971 | * acinclude.m4: Update path to selftest.m4. | |
5972 | ||
74cd3f9d SM |
5973 | 2020-03-12 Simon Marchi <simon.marchi@efficios.com> |
5974 | ||
5975 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to... | |
5976 | (SELFTESTS_SRCS): ... this. Add disasm-selftests.c, | |
5977 | gdbarch-selfselftests.c and selftest-arch.c. | |
5978 | (SUBDIR_UNITTESTS_OBS): Rename to... | |
5979 | (SELFTESTS_OBS): ... this. | |
5980 | (COMMON_SFILES): Remove disasm-selftests.c and | |
5981 | gdbarch-selftests.c. | |
5982 | * configure.ac: Don't add selftest-arch.{c,o} to | |
5983 | CONFIG_{SRCS,OBS}. | |
5984 | * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST | |
5985 | preprocessor conditions. | |
5986 | ||
db6878ac SM |
5987 | 2020-03-12 Simon Marchi <simon.marchi@efficios.com> |
5988 | ||
5989 | * configure.ac: Don't source bfd/development.sh. | |
5990 | * selftest.m4: Modify comment. | |
5991 | * configure: Re-generate. | |
5992 | ||
4d696a5c SM |
5993 | 2020-03-12 Simon Marchi <simon.marchi@efficios.com> |
5994 | ||
5995 | * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is | |
5996 | not "true" or "false". | |
5997 | * configure: Re-generate. | |
5998 | ||
8dd8e1c7 CB |
5999 | 2020-03-12 Christian Biesinger <cbiesinger@google.com> |
6000 | ||
6001 | * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file. | |
6002 | * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and | |
6003 | renamed to arm_nbsd_supply_gregset. | |
6004 | (fetch_register): Update to call arm_nbsd_supply_gregset. | |
6005 | (fetch_regs): Remove in favor of fetch_register with a -1 regno. | |
6006 | (arm_netbsd_nat_target::fetch_registers): Update. | |
6007 | (fetch_elfcore_registers): Removed. | |
6008 | (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns. | |
6009 | * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct. | |
6010 | (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to | |
6011 | not require NetBSD system headers. | |
6012 | (arm_nbsd_regset): New struct. | |
6013 | (arm_nbsd_iterate_over_regset_sections): New function. | |
6014 | (arm_netbsd_init_abi_common): Updated to call | |
6015 | set_gdbarch_iterate_over_regset_sections. | |
6016 | * arm-nbsd-tdep.h: New file. | |
6017 | ||
dd69bf7a KB |
6018 | 2020-03-11 Kevin Buettner <kevinb@redhat.com> |
6019 | ||
6020 | * symtab.c (find_pc_sect_line): Add check which prevents infinite | |
6021 | recursion. | |
6022 | ||
a0761e34 SM |
6023 | 2020-03-11 Simon Marchi <simon.marchi@efficios.com> |
6024 | ||
6025 | * configure: Re-generate. | |
6026 | ||
e7a82140 TT |
6027 | 2020-03-11 Tom Tromey <tromey@adacore.com> |
6028 | ||
6029 | * ada-typeprint.c (print_choices): Fix comment. | |
6030 | ||
dcc050c8 AB |
6031 | 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com> |
6032 | ||
6033 | * buildsyms.c (buildsym_compunit::record_line): Avoid accessing | |
6034 | previous item in the list, when the list has no items. | |
6035 | ||
1c33af77 TV |
6036 | 2020-03-11 Tom de Vries <tdevries@suse.de> |
6037 | ||
6038 | * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in | |
6039 | PROP_LOCLIST handling code. | |
6040 | ||
8c95582d AB |
6041 | 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com> |
6042 | ||
6043 | * buildsym-legacy.c (record_line): Pass extra parameter to | |
6044 | record_line. | |
6045 | * buildsym.c (buildsym_compunit::record_line): Take an extra | |
6046 | parameter, reduce duplication in the line table, and record the | |
6047 | is_stmt flag in the line table. | |
6048 | * buildsym.h (buildsym_compunit::record_line): Add extra | |
6049 | parameter. | |
6050 | * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore | |
6051 | non-statement lines. | |
6052 | * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass | |
6053 | this to the symtab builder. | |
6054 | (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1. | |
6055 | (lnp_state_machine::record_line): Pass a suitable is_stmt flag | |
6056 | through to dwarf_record_line_1. | |
6057 | * infrun.c (process_event_stop_test): When stepping, don't stop at | |
6058 | a non-statement instruction, and only refresh the step info when | |
6059 | we land in the middle of a line's range. Also add an extra | |
6060 | comment. | |
6061 | * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt | |
6062 | field. | |
6063 | * record-btrace.c (btrace_find_line_range): Only record lines | |
6064 | marked as is-statement. | |
6065 | * stack.c (frame_show_address): Show the frame address if we are | |
6066 | in a non-statement sal. | |
6067 | * symmisc.c (dump_symtab_1): Print the is_stmt flag. | |
6068 | (maintenance_print_one_line_table): Print a header for the is_stmt | |
6069 | column, and include is_stmt information in the output. | |
6070 | * symtab.c (find_pc_sect_line): Find lines marked as statements in | |
6071 | preference to non-statements. | |
6072 | (find_pcs_for_symtab_line): Prefer is-statement entries. | |
6073 | (find_line_common): Likewise. | |
6074 | * symtab.h (struct linetable_entry): Add is_stmt field. | |
6075 | (struct symtab_and_line): Likewise. | |
6076 | * xcoffread.c (arrange_linetable): Initialise is_stmt field when | |
6077 | arranging the line table. | |
6078 | ||
e4003a34 TV |
6079 | 2020-03-07 Tom de Vries <tdevries@suse.de> |
6080 | ||
6081 | * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder | |
6082 | DIE. | |
6083 | ||
e8932576 TT |
6084 | 2020-03-07 Tom Tromey <tom@tromey.com> |
6085 | ||
6086 | * valops.c (value_literal_complex): Remove obsolete comment. | |
6087 | * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete | |
6088 | comment. | |
6089 | ||
29734269 SM |
6090 | 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca> |
6091 | ||
6092 | * infrun.h: Forward-declare thread_info. | |
6093 | (set_step_info): Add thread_info parameter, add doc. | |
6094 | * infrun.c (set_step_info): Add thread_info parameter, move doc | |
6095 | to header. | |
6096 | * infrun.c (process_event_stop_test): Pass thread to | |
6097 | set_step_info call. | |
6098 | * infcmd.c (set_step_frame): Add thread_info pointer, pass it to | |
6099 | set_step_info. | |
6100 | (prepare_one_step): Add thread_info parameter, pass it to | |
6101 | set_step_frame and prepare_one_step (recursive) call. | |
6102 | (step_1): Pass thread to prepare_one_step call. | |
6103 | (step_command_fsm::should_stop): Pass thread to | |
6104 | prepare_one_step. | |
6105 | (until_next_fsm): Pass thread to set_step_frame call. | |
6106 | (finish_command): Pass thread to set_step_info call. | |
6107 | ||
b7d64b29 HD |
6108 | 2020-03-06 Hannes Domani <ssbssa@yahoo.de> |
6109 | ||
6110 | * windows-tdep.c (windows_solib_create_inferior_hook): | |
6111 | Check if inferior is running. | |
6112 | ||
09f2921c TV |
6113 | 2020-03-06 Tom de Vries <tdevries@suse.de> |
6114 | ||
6115 | * NEWS: Fix "the the". | |
6116 | * ctfread.c: Same. | |
6117 | ||
fd760e79 TV |
6118 | 2020-03-06 Tom de Vries <tdevries@suse.de> |
6119 | ||
6120 | * psymtab.c (psymtab_to_symtab): Don't print "done.". | |
6121 | ||
20ea4a60 AB |
6122 | 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com> |
6123 | ||
6124 | * .dir-locals.el: Add a comment referencing the other copies of | |
6125 | this file. | |
6126 | ||
0afbabf0 JB |
6127 | 2020-03-05 John Baldwin <jhb@FreeBSD.org> |
6128 | ||
6129 | * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for | |
6130 | psargs. | |
6131 | ||
842806cb TBA |
6132 | 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
6133 | ||
6134 | * .gitattributes: New file. | |
6135 | ||
be1e3d3e TT |
6136 | 2020-03-04 Tom Tromey <tom@tromey.com> |
6137 | ||
6138 | * symmisc.c (print_symbol_bcache_statistics) | |
6139 | (print_objfile_statistics): Update. | |
6140 | * symfile.c (allocate_symtab): Use intern. | |
6141 | * psymtab.c (partial_symtab::partial_symtab): Use intern. | |
6142 | * objfiles.h (struct objfile_per_bfd_storage) <filename_cache, | |
6143 | macro_cache>: Remove. | |
6144 | <string_cache>: New member. | |
6145 | (struct objfile) <intern>: New methods. | |
6146 | * elfread.c (elf_symtab_read): Use intern. | |
6147 | * dwarf2/read.c (fixup_go_packaging): Intern package name. | |
6148 | (dwarf2_compute_name, dwarf2_physname) | |
6149 | (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern | |
6150 | names. | |
6151 | (guess_partial_die_structure_name): Update. | |
6152 | (partial_die_info::fixup): Intern name. | |
6153 | (dwarf2_canonicalize_name): Change parameter to objfile. Intern | |
6154 | name. | |
6155 | (dwarf2_name): Intern name. Update. | |
6156 | * buildsym.c (buildsym_compunit::get_macro_table): Use | |
6157 | string_cache. | |
6158 | ||
4e7625fd TT |
6159 | 2020-03-04 Tom Tromey <tom@tromey.com> |
6160 | ||
6161 | * jit.c (bfd_open_from_target_memory): Make "target" const. | |
6162 | * corefile.c (gnutarget): Now const. | |
6163 | * gdbcore.h (gnutarget): Now const. | |
6164 | ||
46f9f931 HD |
6165 | 2020-03-04 Hannes Domani <ssbssa@yahoo.de> |
6166 | ||
6167 | * NEWS: Mention support for WOW64 processes. | |
6168 | * amd64-windows-nat.c (amd64_mappings): Rename and remove static. | |
6169 | (amd64_windows_segment_register_p): Remove static. | |
6170 | (_initialize_amd64_windows_nat): Update. | |
6171 | * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o. | |
6172 | * i386-windows-nat.c (context_offset): Update. | |
6173 | (i386_mappings): Rename and remove static. | |
6174 | (i386_windows_segment_register_p): Remove static. | |
6175 | (_initialize_i386_windows_nat): Update. | |
6176 | * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro. | |
6177 | (STATUS_WX86_SINGLE_STEP): New macro. | |
6178 | (EnumProcessModulesEx): New macro. | |
6179 | (Wow64SuspendThread): New macro. | |
6180 | (Wow64GetThreadContext): New macro. | |
6181 | (Wow64SetThreadContext): New macro. | |
6182 | (Wow64GetThreadSelectorEntry): New macro. | |
6183 | (windows_set_context_register_offsets): Add static. | |
6184 | (windows_set_segment_register_p): Likewise. | |
6185 | (windows_add_thread): Adapt for WOW64 processes. | |
6186 | (windows_fetch_one_register): Likewise. | |
6187 | (windows_nat_target::fetch_registers): Likewise. | |
6188 | (windows_store_one_register): Likewise. | |
6189 | (display_selector): Likewise. | |
6190 | (display_selectors): Likewise. | |
6191 | (handle_exception): Likewise. | |
6192 | (windows_continue): Likewise. | |
6193 | (windows_nat_target::resume): Likewise. | |
6194 | (windows_add_all_dlls): Likewise. | |
6195 | (do_initial_windows_stuff): Likewise. | |
6196 | (windows_nat_target::attach): Likewise. | |
6197 | (windows_get_exec_module_filename): Likewise. | |
6198 | (windows_nat_target::create_inferior): Likewise. | |
6199 | (windows_xfer_siginfo): Likewise. | |
6200 | (_initialize_loadable): Initialize Wow64SuspendThread, | |
6201 | Wow64GetThreadContext, Wow64SetThreadContext, | |
6202 | Wow64GetThreadSelectorEntry and EnumProcessModulesEx. | |
6203 | * windows-nat.h (windows_set_context_register_offsets): | |
6204 | Remove declaration. | |
6205 | (windows_set_segment_register_p): Likewise. | |
6206 | (i386_windows_segment_register_p): Add declaration. | |
6207 | (amd64_windows_segment_register_p): Likewise. | |
6208 | ||
440cf44e LM |
6209 | 2020-03-04 Luis Machado <luis.machado@linaro.org> |
6210 | ||
6211 | Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions | |
6212 | in "info registers" for AArch64/ARM. | |
6213 | ||
6214 | The change caused "info registers" to not print GPR's. | |
6215 | ||
6216 | gdb/ChangeLog: | |
6217 | ||
6218 | 2020-02-01 Shahab Vahedi <shahab@synopsys.com> | |
6219 | ||
6220 | * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0 | |
6221 | when reg->group is empty and reggroup is not. | |
6222 | ||
1009d92f TT |
6223 | 2020-03-03 Tom Tromey <tromey@adacore.com> |
6224 | ||
6225 | * dwarf2/frame.c (struct dwarf2_frame_cache) | |
6226 | <checked_tailcall_bottom, entry_cfa_sp_offset, | |
6227 | entry_cfa_sp_offset_p>: Remove members. | |
6228 | (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first. | |
6229 | (dwarf2_frame_prev_register): Don't call | |
6230 | dwarf2_tailcall_sniffer_first. | |
6231 | (dwarf2_append_unwinders): Don't append tailcall unwinder. | |
6232 | * frame-unwind.c (add_unwinder): New fuction. | |
6233 | (frame_unwind_init): Use it. Add tailcall unwinder. | |
6234 | ||
5e5d66b6 AB |
6235 | 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com> |
6236 | Alok Kumar Sharma <AlokKumar.Sharma@amd.com> | |
6237 | ||
6238 | * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero | |
6239 | value should be printed as true. | |
6240 | ||
584cf46d HD |
6241 | 2020-03-03 Hannes Domani <ssbssa@yahoo.de> |
6242 | ||
6243 | * windows-tdep.c (windows_solib_create_inferior_hook): New function. | |
6244 | (windows_init_abi): Set and use windows_so_ops. | |
6245 | ||
7b973adc SDJ |
6246 | 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com> |
6247 | ||
6248 | * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR | |
6249 | when verifying if dealing with a convenience variable. | |
6250 | ||
bb7b70ab LM |
6251 | 2020-03-03 Luis Machado <luis.machado@linaro.org> |
6252 | ||
6253 | * auxv.c (default_print_auxv_entry): Add new AUXV entries. | |
6254 | ||
9822cb57 SM |
6255 | 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca> |
6256 | ||
6257 | * infrun.c (gdbarch_supports_displaced_stepping): New. | |
6258 | (use_displaced_stepping): Break up conditions in smaller pieces. | |
6259 | Use gdbarch_supports_displaced_stepping. | |
6260 | (displaced_step_prepare_throw): Use | |
6261 | gdbarch_supports_displaced_stepping. | |
6262 | ||
63e163f2 AB |
6263 | 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com> |
6264 | ||
6265 | * NEWS: Mention new behaviour of the history filename. | |
6266 | * top.c (write_history_p): Add comment. | |
6267 | (show_write_history_p): Add header comment, give a different | |
6268 | message when history writing is on, but the history filename is | |
6269 | empty. | |
6270 | (history_filename): Add comment. | |
6271 | (history_filename_empty): New function. | |
6272 | (show_history_filename): Add header comment, give a different | |
6273 | message when the filename is empty. | |
6274 | (init_history): Compare history_filename against nullptr, and only | |
6275 | read history if the filename is not empty. | |
6276 | (set_history_filename): Add header comment, and only make | |
6277 | non-empty filenames absolute. | |
6278 | (init_main): Make the filename argument to 'set history filename' | |
6279 | optional. | |
6280 | ||
81b86b97 CB |
6281 | 2020-03-02 Christian Biesinger <cbiesinger@google.com> |
6282 | ||
6283 | * arm-nbsd-nat.c (arm_supply_fparegset): Rename to... | |
6284 | (arm_supply_vfpregset): ...this, and update to use VFP registers. | |
6285 | (fetch_fp_register): Update. | |
6286 | (fetch_fp_regs): Update. | |
6287 | (store_fp_register): Update. | |
6288 | (store_fp_regs): Update. | |
6289 | (arm_netbsd_nat_target::read_description): New function. | |
6290 | (fetch_elfcore_registers): Update. | |
6291 | ||
24ed6739 AB |
6292 | 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com> |
6293 | ||
6294 | * remote.c (remote_target::remote_parse_stop_reply): Don't use the | |
6295 | general_thread if the stop reply is missing a thread-id. | |
6296 | (remote_target::process_stop_reply): Use the first non-exited | |
6297 | thread if the target didn't pass a thread-id. | |
6298 | * infrun.c (do_target_wait): Move call to | |
6299 | switch_to_inferior_no_thread to .... | |
6300 | (do_target_wait_1): ... here. | |
6301 | ||
a84bb2a0 JT |
6302 | 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk> |
6303 | ||
6304 | * debuginfod-support.c: Include defs.h first. | |
6305 | ||
658dadf0 TV |
6306 | 2020-02-28 Tom de Vries <tdevries@suse.de> |
6307 | ||
6308 | * symfile.c (set_initial_language): Use default language for lookup. | |
6309 | ||
4ebe4877 SM |
6310 | 2020-02-28 Simon Marchi <simon.marchi@efficios.com> |
6311 | ||
6312 | * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove | |
6313 | reader variable, pass `this` to read_cutu_die_from_dwo. | |
6314 | ||
e5da1139 AM |
6315 | 2020-02-27 Aaron Merey <amerey@redhat.com> |
6316 | ||
6317 | * source.c (open_source_file): Check for nullptr when computing | |
6318 | srcpath. | |
6319 | ||
317f7127 TT |
6320 | 2020-02-27 Tom Tromey <tromey@adacore.com> |
6321 | ||
6322 | * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a | |
6323 | member. | |
6324 | (dwarf2_add_field): Don't update nfields. | |
6325 | (dwarf2_attach_fields_to_type, process_structure_scope): Update. | |
6326 | ||
3104d9ee AB |
6327 | 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com> |
6328 | ||
6329 | * gdbtypes.c (create_array_type_with_stride): Use std::abs not | |
6330 | abs. | |
6331 | ||
b83470bf TT |
6332 | 2020-02-26 Tom Tromey <tom@tromey.com> |
6333 | ||
6334 | * dwarf2/read.c (struct dwarf2_include_psymtab): New. | |
6335 | (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab. | |
6336 | (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p) | |
6337 | (dwarf2_psymtab::get_compunit_symtab): Remove null checks for | |
6338 | per_cu_data. | |
6339 | ||
edfe0a0c TT |
6340 | 2020-02-26 Tom Tromey <tom@tromey.com> |
6341 | ||
6342 | * dwarf2/index-write.c (psym_index_map): Change type. | |
6343 | (add_address_entry_worker, write_one_signatured_type) | |
6344 | (recursively_count_psymbols, recursively_write_psymbols) | |
6345 | (class debug_names, psyms_seen_size, write_gdbindex) | |
6346 | (write_debug_names): Use partial_symtab, not dwarf2_psymtab. | |
6347 | ||
0d79cdc4 AM |
6348 | 2020-02-26 Aaron Merey <amerey@redhat.com> |
6349 | ||
6350 | * Makefile.in: Handle optional debuginfod support. | |
6351 | * NEWS: Update. | |
6352 | * README: Add --with-debuginfod summary. | |
6353 | * config.in: Regenerate. | |
6354 | * configure: Regenerate. | |
6355 | * configure.ac: Handle optional debuginfod support. | |
6356 | * debuginfod-support.c: debuginfod helper functions. | |
6357 | * debuginfod-support.h: Ditto. | |
6358 | * doc/gdb.texinfo: Add --with-debuginfod to configure options | |
6359 | summary. | |
6360 | * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers | |
6361 | when a dwz file cannot be found. | |
6362 | * elfread.c (elf_symfile_read): Query debuginfod servers when a | |
6363 | debuginfo file cannot be found. | |
6364 | * source.c (open_source_file): Query debuginfod servers when a | |
6365 | source file cannot be found. | |
6366 | * top.c (print_gdb_configuration): Include | |
6367 | --{with,without}-debuginfod in the output. | |
6368 | ||
b65ce565 JG |
6369 | 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com> |
6370 | ||
6371 | * thread.c (thr_try_catch_cmd): Print thread name. | |
6372 | ||
d4c9a4f8 SM |
6373 | 2020-02-26 Simon Marchi <simon.marchi@efficios.com> |
6374 | ||
6375 | * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off, | |
6376 | dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes, | |
6377 | dwarf2_fetch_die_type_sect_off): Move to... | |
6378 | * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off, | |
6379 | dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes, | |
6380 | dwarf2_fetch_die_type_sect_off): ... here. | |
6381 | * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off, | |
6382 | dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes, | |
6383 | dwarf2_fetch_die_type_sect_off): Move doc to header file. | |
6384 | ||
0dce4280 TV |
6385 | 2020-02-26 Tom de Vries <tdevries@suse.de> |
6386 | ||
6387 | PR gdb/25603 | |
6388 | * symfile.c (set_initial_language): Exit-early if | |
6389 | language_mode == language_mode_manual. | |
6390 | ||
450a1bfc SM |
6391 | 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca> |
6392 | ||
6393 | * dwarf2/loc.h (dwarf2_read_addr_index): Move... | |
6394 | * dwarf2/read.h (dwarf2_read_addr_index): ... here. | |
6395 | * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header. | |
6396 | ||
9e80cfa1 AB |
6397 | 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com> |
6398 | ||
6399 | * gdbtypes.c (create_array_type_with_stride): Handle negative | |
6400 | array strides. | |
6401 | * valarith.c (value_subscripted_rvalue): Likewise. | |
6402 | ||
09624f1f LM |
6403 | 2020-02-25 Luis Machado <luis.machado@linaro.org> |
6404 | ||
6405 | * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo. | |
6406 | ||
8cb5117c SM |
6407 | 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca> |
6408 | ||
6409 | * loc.h (dwarf2_get_die_type): Move to... | |
6410 | * read.h (dwarf2_get_die_type): ... here. | |
6411 | * read.c (dwarf2_get_die_type): Move doc to header. | |
6412 | ||
c325c44e JB |
6413 | 2020-02-25 Joel Brobecker <brobecker@adacore.com> |
6414 | ||
6415 | * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and | |
6416 | 'gnulib/Makefile.in' to the list. | |
6417 | ||
4ac93832 TT |
6418 | 2020-02-24 Tom Tromey <tom@tromey.com> |
6419 | ||
6420 | * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>: | |
6421 | Remove. | |
6422 | * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use | |
6423 | XOBNEWVEC. | |
6424 | ||
197400e8 TT |
6425 | 2020-02-24 Tom Tromey <tom@tromey.com> |
6426 | ||
6427 | * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>: | |
6428 | New method. | |
6429 | * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove. | |
6430 | (dw2_do_instantiate_symtab, dw2_get_file_names) | |
6431 | (build_type_psymtab_dependencies, load_full_type_unit): Update. | |
6432 | ||
76935768 TT |
6433 | 2020-02-24 Tom Tromey <tom@tromey.com> |
6434 | ||
6435 | * dwarf2read.c (dwarf2_build_psymtabs_hard): Use | |
6436 | make_scoped_restore. | |
6437 | (dwarf2_psymtab::read_symtab): Don't clear | |
6438 | reading_partial_symbols. | |
6439 | ||
a88ef40d TV |
6440 | 2020-02-24 Tom de Vries <tdevries@suse.de> |
6441 | ||
6442 | PR gdb/25592 | |
6443 | * stack.c (iterate_over_block_locals): Handle LOC_CONST. | |
6444 | ||
c9af6521 TV |
6445 | 2020-02-24 Tom de Vries <tdevries@suse.de> |
6446 | ||
6447 | * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for | |
6448 | commands layout next/prev/regs. | |
6449 | ||
5707a07a TT |
6450 | 2020-02-22 Tom Tromey <tom@tromey.com> |
6451 | ||
6452 | * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare. | |
6453 | * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static. | |
6454 | ||
3b0fb49e TT |
6455 | 2020-02-22 Tom Tromey <tom@tromey.com> |
6456 | ||
6457 | * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window. | |
6458 | ||
283be8bf TT |
6459 | 2020-02-22 Tom Tromey <tom@tromey.com> |
6460 | ||
6461 | * tui/tui-win.c (_initialize_tui_win): Add usage text. | |
6462 | * tui/tui-stack.c (_initialize_tui_stack): Add usage text. | |
6463 | * tui/tui-regs.c (_initialize_tui_regs): Add usage text. | |
6464 | * tui/tui.c (_initialize_tui): Add usage text. | |
6465 | ||
ca793b96 TT |
6466 | 2020-02-22 Tom Tromey <tom@tromey.com> |
6467 | ||
6468 | * tui/tui-win.c (tui_set_focus_command) | |
6469 | (tui_set_win_height_command): Use error_no_arg. | |
6470 | (_initialize_tui_win): Update help text. | |
6471 | (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define. | |
6472 | ||
432b5c40 TT |
6473 | 2020-02-22 Tom Tromey <tom@tromey.com> |
6474 | ||
6475 | * tui/tui-layout.c (extract_display_start_addr): Rewrite. | |
6476 | * tui/tui-disasm.h (struct tui_disasm_window) | |
6477 | <display_start_addr>: Declare. | |
6478 | * tui/tui-source.h (struct tui_source_window) | |
6479 | <display_start_addr>: Declare. | |
6480 | * tui/tui-winsource.h (struct tui_source_window_base) | |
6481 | <show_source_line, display_start_addr>: New methods. | |
6482 | <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>: | |
6483 | Rename and move to protected section. | |
6484 | * tui/tui-winsource.c (tui_source_window_base::update_source_window) | |
6485 | (tui_source_window_base::do_erase_source_content): Update. | |
6486 | (tui_source_window_base::show_source_line): Now a method. | |
6487 | (tui_source_window_base::show_source_content) | |
6488 | (tui_source_window_base::tui_source_window_base) | |
6489 | (tui_source_window_base::rerender) | |
6490 | (tui_source_window_base::refill) | |
6491 | (tui_source_window_base::do_scroll_horizontal) | |
6492 | (tui_source_window_base::set_is_exec_point_at) | |
6493 | (tui_source_window_base::update_breakpoint_info) | |
6494 | (tui_source_window_base::update_exec_info): Update. | |
6495 | * tui/tui-source.c (tui_source_window::set_contents) | |
6496 | (tui_source_window::showing_source_p) | |
6497 | (tui_source_window::do_scroll_vertical) | |
6498 | (tui_source_window::location_matches_p) | |
6499 | (tui_source_window::line_is_displayed): Update. | |
6500 | (tui_source_window::display_start_addr): New method. | |
6501 | * tui/tui-disasm.c (tui_disasm_window::set_contents) | |
6502 | (tui_disasm_window::do_scroll_vertical) | |
6503 | (tui_disasm_window::location_matches_p): Update. | |
6504 | (tui_disasm_window::display_start_addr): New method. | |
6505 | ||
01b1af32 TT |
6506 | 2020-02-22 Tom Tromey <tom@tromey.com> |
6507 | ||
6508 | * NEWS: Add entry for gdb.register_window_type. | |
6509 | * tui/tui-layout.h (window_factory): New typedef. | |
6510 | (tui_register_window): Declare. | |
6511 | * tui/tui-layout.c (saved_tui_windows): New global. | |
6512 | (tui_apply_current_layout): Use it. | |
6513 | (tui_register_window): New function. | |
6514 | * python/python.c (do_start_initialization): Call | |
6515 | gdbpy_initialize_tui. | |
6516 | (python_GdbMethods): Add "register_window_type" function. | |
6517 | * python/python-internal.h (gdbpy_register_tui_window) | |
6518 | (gdbpy_initialize_tui): Declare. | |
6519 | * python/py-tui.c: New file. | |
6520 | * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c. | |
6521 | ||
fc96d20b TT |
6522 | 2020-02-22 Tom Tromey <tom@tromey.com> |
6523 | ||
6524 | * tui/tui-io.c (do_tui_putc): Don't omit annotations. | |
6525 | ||
935c78c0 TT |
6526 | 2020-02-22 Tom Tromey <tom@tromey.com> |
6527 | ||
6528 | * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c. | |
6529 | * tui/tui-data.h (tui_set_win_with_focus): Don't declare. | |
6530 | * tui/tui-data.c (tui_set_win_with_focus): Remove. | |
6531 | (tui_set_win_focus_to): Move from tui-win.c. | |
6532 | ||
0240c8f1 TT |
6533 | 2020-02-22 Tom Tromey <tom@tromey.com> |
6534 | ||
6535 | * tui/tui-layout.c (make_standard_window, get_locator_window): New | |
6536 | functions. | |
6537 | (known_window_types): New global. | |
6538 | (tui_get_window_by_name): Reimplement. | |
6539 | (initialize_known_windows): New function. | |
6540 | (validate_window_name): Rewrite. | |
6541 | (_initialize_tui_layout): Call initialize_known_windows. | |
6542 | ||
fdb01f0c TT |
6543 | 2020-02-22 Tom Tromey <tom@tromey.com> |
6544 | ||
6545 | * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>: | |
6546 | Remove constants. | |
6547 | * tui/tui-winsource.h (struct tui_source_window_base) | |
6548 | <tui_source_window_base>: Remove parameter. | |
6549 | * tui/tui-winsource.c | |
6550 | (tui_source_window_base::tui_source_window_base): Remove | |
6551 | parameter. | |
6552 | (tui_source_window_base::refill): Update. | |
6553 | * tui/tui-stack.h (struct tui_locator_window) | |
6554 | <tui_locator_window>: Update. | |
6555 | * tui/tui-source.h (struct tui_source_window) <tui_source_window>: | |
6556 | Default the constructor. | |
6557 | * tui/tui-regs.h (struct tui_data_item_window) | |
6558 | <tui_data_item_window>: Default the constructor. | |
6559 | (struct tui_data_window) <tui_data_window>: Likewise. | |
6560 | * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>: | |
6561 | Default the constructor. | |
6562 | * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>: | |
6563 | Default the constructor. | |
6564 | <type>: Remove. | |
6565 | (struct tui_win_info) <tui_win_info>: Default the constructor. | |
6566 | * tui/tui-data.c (tui_win_info::tui_win_info): Remove. | |
6567 | * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>: | |
6568 | Default the constructor. | |
6569 | ||
865a5aec TT |
6570 | 2020-02-22 Tom Tromey <tom@tromey.com> |
6571 | ||
6572 | * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare. | |
6573 | * tui/tui-wingeneral.c (tui_make_all_invisible): Remove. | |
6574 | * tui/tui-win.c (tui_resize_all): Don't call | |
6575 | tui_delete_invisible_windows. | |
6576 | * tui/tui-layout.c (tui_apply_current_layout): Delete windows when | |
6577 | done. | |
6578 | (tui_set_layout): Update. | |
6579 | (tui_add_win_to_layout): Don't call tui_delete_invisible_windows. | |
6580 | * tui/tui-data.h (tui_delete_invisible_windows): Don't declare. | |
6581 | * tui/tui-data.c (tui_delete_invisible_windows): Remove. | |
6582 | ||
e098d18c TT |
6583 | 2020-02-22 Tom Tromey <tom@tromey.com> |
6584 | ||
6585 | * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity | |
6586 | correctly. | |
6587 | ||
eb9c8874 TT |
6588 | 2020-02-22 Tom Tromey <tom@tromey.com> |
6589 | ||
6590 | * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement. | |
6591 | ||
7eed1a8e TT |
6592 | 2020-02-22 Tom Tromey <tom@tromey.com> |
6593 | ||
6594 | * tui/tui-winsource.h (struct tui_source_window_iterator) | |
6595 | <inner_iterator>: New etytypedef. | |
6596 | <tui_source_window_iterator>: Take "end" parameter. | |
6597 | <tui_source_window_iterator>: Take iterator. | |
6598 | <operator*, advance>: Update. | |
6599 | <m_iter>: Change type. | |
6600 | <m_end>: New field. | |
6601 | (struct tui_source_windows) <begin, end>: Update. | |
6602 | * tui/tui-layout.c (tui_windows): New global. | |
6603 | (tui_apply_current_layout): Clear tui_windows. | |
6604 | (tui_layout_window::apply): Update tui_windows. | |
6605 | * tui/tui-data.h (tui_windows): Declare. | |
6606 | (all_tui_windows): Now inline function. | |
6607 | (class tui_window_iterator, struct all_tui_windows): Remove. | |
6608 | ||
7c043ba6 TT |
6609 | 2020-02-22 Tom Tromey <tom@tromey.com> |
6610 | ||
6611 | PR tui/17850: | |
6612 | * tui/tui-win.c (tui_gen_win_info::max_width): New method. | |
6613 | * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add | |
6614 | "height" argument. | |
6615 | (class tui_layout_window) <get_sizes>: Likewise. | |
6616 | (class tui_layout_split) <tui_layout_split>: Add "vertical" | |
6617 | argument. | |
6618 | <get_sizes>: Add "height" argument. | |
6619 | <m_vertical>: New field. | |
6620 | * tui/tui-layout.c (tui_layout_split::clone): Update. | |
6621 | (tui_layout_split::get_sizes): Add "height" argument. | |
6622 | (tui_layout_split::adjust_size, tui_layout_split::apply): Update. | |
6623 | (tui_new_layout_command): Parse "-horizontal". | |
6624 | (_initialize_tui_layout): Update help string. | |
6625 | (tui_layout_split::specification): Add "-horizontal" when needed. | |
6626 | * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height" | |
6627 | argument. | |
6628 | * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>: | |
6629 | New methods. | |
6630 | ||
6bc56648 TT |
6631 | 2020-02-22 Tom Tromey <tom@tromey.com> |
6632 | ||
6633 | * tui/tui-layout.h (enum tui_adjust_result): New. | |
6634 | (class tui_layout_base) <adjust_size>: Return tui_adjust_result. | |
6635 | (class tui_layout_window) <adjust_size>: Return | |
6636 | tui_adjust_result. Rewrite. | |
6637 | (class tui_layout_split) <adjust_size>: Return tui_adjust_result. | |
6638 | * tui/tui-layout.c (tui_layout_split::adjust_size): Update. | |
6639 | ||
c22fef7e TT |
6640 | 2020-02-22 Tom Tromey <tom@tromey.com> |
6641 | ||
6642 | * tui/tui-layout.h (class tui_layout_split) <add_split>: Change | |
6643 | parameter and return types. | |
6644 | (class tui_layout_base) <specification>: Add "depth". | |
6645 | (class tui_layout_window) <specification>: Add "depth". | |
6646 | (class tui_layout_split) <specification>: Add "depth". | |
6647 | * tui/tui-layout.c (tui_layout_split::add_split): Change parameter | |
6648 | and return types. | |
6649 | (tui_new_layout_command): Parse sub-layouts. | |
6650 | (_initialize_tui_layout): Update help string. | |
6651 | (tui_layout_window::specification): Add "depth". | |
6652 | (add_layout_command): Update. | |
6653 | ||
ee325b61 TT |
6654 | 2020-02-22 Tom Tromey <tom@tromey.com> |
6655 | ||
6656 | * NEWS: Add "tui new-layout" item. | |
6657 | * tui/tui-layout.c (add_layout_command): Return cmd_list_element. | |
6658 | Add new-layout command to help text. | |
6659 | (validate_window_name): New function. | |
6660 | (tui_new_layout_command): New function. | |
6661 | (_initialize_tui_layout): Register "new-layout". | |
6662 | (tui_layout_window::specification): New method. | |
6663 | (tui_layout_window::specification): New method. | |
6664 | * tui/tui-layout.h (class tui_layout_base) <specification>: New | |
6665 | method. | |
6666 | (class tui_layout_window) <specification>: New method. | |
6667 | (class tui_layout_split) <specification>: New method. | |
6668 | ||
416eb92d TT |
6669 | 2020-02-22 Tom Tromey <tom@tromey.com> |
6670 | ||
6671 | * tui/tui.c (tui_enable): Call tui_set_initial_layout. | |
6672 | * tui/tui-win.c (window_name_completer): Update comment. | |
6673 | * tui/tui-layout.h (class tui_layout_base) <replace_window>: | |
6674 | Declare method. | |
6675 | (class tui_layout_window) <replace_window>: Likewise. | |
6676 | (class tui_layout_split) <replace_window>: Likewise. | |
6677 | (tui_set_layout): Don't declare. | |
6678 | (tui_set_initial_layout): Declare function. | |
6679 | * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout) | |
6680 | (asm_regs_layout): New globals. | |
6681 | (tui_current_layout, show_layout): Remove. | |
6682 | (tui_set_layout, tui_add_win_to_layout): Rewrite. | |
6683 | (find_layout, tui_apply_layout): New function. | |
6684 | (layout_completer): Remove. | |
6685 | (tui_next_layout): Reimplement. | |
6686 | (tui_next_layout_command): New function. | |
6687 | (tui_set_initial_layout, tui_prev_layout_command): New functions. | |
6688 | (tui_regs_layout): Reimplement. | |
6689 | (tui_regs_layout_command): New function. | |
6690 | (extract_display_start_addr): Rewrite. | |
6691 | (next_layout, prev_layout): Remove. | |
6692 | (tui_layout_window::replace_window): New method. | |
6693 | (tui_layout_split::replace_window): New method. | |
6694 | (destroy_layout): New function. | |
6695 | (layout_list): New global. | |
6696 | (add_layout_command): New function. | |
6697 | (initialize_layouts): Update. | |
6698 | (tui_layout_command): New function. | |
6699 | (_initialize_tui_layout): Install "layout" commands. | |
6700 | * tui/tui-data.h (enum tui_layout_type): Remove. | |
6701 | (tui_current_layout): Don't declare. | |
6702 | ||
0dbc2fc7 TT |
6703 | 2020-02-22 Tom Tromey <tom@tromey.com> |
6704 | ||
6705 | * tui/tui-regs.c (tui_reg_layout): Remove. | |
6706 | (tui_reg_command): Use tui_regs_layout. | |
6707 | * tui/tui-layout.h (tui_reg_command): Declare. | |
6708 | * tui/tui-layout.c (tui_reg_command): New function. | |
6709 | ||
5afe342e TT |
6710 | 2020-02-22 Tom Tromey <tom@tromey.com> |
6711 | ||
6712 | * tui/tui.c (tui_rl_delete_other_windows): Call | |
6713 | tui_remove_some_windows. | |
6714 | * tui/tui-layout.h (class tui_layout_base) <remove_windows>: | |
6715 | Declare method. | |
6716 | (class tui_layout_window) <remove_windows>: New method. | |
6717 | (class tui_layout_split) <remove_windows>: Declare. | |
6718 | (tui_remove_some_windows): Declare. | |
6719 | * tui/tui-layout.c (tui_remove_some_windows): New function. | |
6720 | (tui_layout_split::remove_windows): New method. | |
6721 | ||
427326a8 TT |
6722 | 2020-02-22 Tom Tromey <tom@tromey.com> |
6723 | ||
6724 | * tui/tui.c (tui_rl_change_windows): Call tui_next_layout. | |
6725 | * tui/tui-layout.h (tui_next_layout): Declare. | |
6726 | * tui/tui-layout.c (tui_next_layout): New function. | |
6727 | ||
3fe12b6d TT |
6728 | 2020-02-22 Tom Tromey <tom@tromey.com> |
6729 | ||
6730 | * tui/tui-regs.c (tui_data_window::display_registers_from): Use | |
6731 | correct coordinates. | |
6732 | ||
59b8b5d2 TT |
6733 | 2020-02-22 Tom Tromey <tom@tromey.com> |
6734 | ||
6735 | * tui/tui-layout.h (tui_add_win_to_layout): Add comment. | |
6736 | * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove | |
6737 | DATA_WIN case. | |
6738 | ||
2a3d458b TT |
6739 | 2020-02-22 Tom Tromey <tom@tromey.com> |
6740 | ||
6741 | * tui/tui-disasm.c (tui_get_low_disassembly_address): Use | |
6742 | TUI_DISASM_WIN, not tui_win_list. | |
6743 | ||
3f0cbb04 TT |
6744 | 2020-02-22 Tom Tromey <tom@tromey.com> |
6745 | ||
6746 | * valprint.c (generic_val_print_enum_1) | |
6747 | (val_print_type_code_flags): Style member names. | |
6748 | * rust-lang.c (val_print_struct, rust_print_enum) | |
6749 | (rust_print_struct_def, rust_internal_print_type): Style member | |
6750 | names. | |
6751 | * p-valprint.c (pascal_object_print_value_fields): Style member | |
6752 | names. Only call fprintf_symbol_filtered for static members. | |
6753 | * m2-typeprint.c (m2_record_fields, m2_enum): Style member names. | |
6754 | * f-valprint.c (f_val_print): Style member names. | |
6755 | * f-typeprint.c (f_type_print_base): Style member names. | |
6756 | * cp-valprint.c (cp_print_value_fields): Style member names. Only | |
6757 | call fprintf_symbol_filtered for static members. | |
6758 | (cp_print_class_member): Style member names. | |
6759 | * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style | |
6760 | member names. | |
6761 | * ada-valprint.c (ada_print_scalar): Style enum names. | |
6762 | (ada_val_print_enum): Likewise. | |
6763 | * ada-typeprint.c (print_enum_type): Style enum names. | |
6764 | ||
d4d947ae TT |
6765 | 2020-02-21 Tom Tromey <tom@tromey.com> |
6766 | ||
6767 | * psympriv.h (struct partial_symtab): Update comment. | |
6768 | ||
e94e944b TT |
6769 | 2020-02-21 Tom Tromey <tromey@adacore.com> |
6770 | ||
6771 | * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter | |
6772 | type is CORE_ADDR. | |
6773 | ||
1eb73179 TV |
6774 | 2020-02-21 Tom de Vries <tdevries@suse.de> |
6775 | ||
6776 | PR gdb/25534 | |
6777 | * psymtab.c (partial_symtab::read_dependencies): Don't read dependency | |
6778 | if dependencies[i]->user != NULL. | |
6779 | ||
4f180d53 AT |
6780 | 2020-02-21 Ali Tamur <tamur@google.com> |
6781 | ||
6782 | * dwarf2/read.c (dwarf2_name): Add null check. | |
6783 | ||
22b6cd70 TT |
6784 | 2020-02-20 Tom Tromey <tom@tromey.com> |
6785 | ||
6786 | * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not | |
6787 | ">=", in binary search. | |
6788 | (dwarf2_find_containing_comp_unit): New overload. | |
6789 | (run_test): New self-test. | |
6790 | (_initialize_dwarf2_read): Register new test. | |
6791 | ||
bd0cf5a6 NC |
6792 | 2020-02-20 Nelson Chu <nelson.chu@sifive.com> |
6793 | ||
6794 | * riscv-tdep.c: Updated since the DECLARE_CSR is changed. | |
6795 | * riscv-tdep.h: Likewise. | |
6796 | * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without | |
6797 | rv32-only CSR. | |
6798 | * features/riscv/64bit-csr.xml: Regenerated. | |
6799 | ||
3f702acd SDJ |
6800 | 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com> |
6801 | Tom Tromey <tom@tromey.com> | |
6802 | ||
6803 | * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead | |
6804 | of 'fputc_unfiltered'. | |
6805 | (putchar_unfiltered): Call 'fputc_unfiltered'. | |
6806 | (fputc_unfiltered): Call 'fputs_unfiltered'. | |
6807 | ||
d13c7322 AB |
6808 | 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com> |
6809 | ||
6810 | * config.in: Regenerate. | |
6811 | * configure: Regenerate. | |
6812 | * configure.ac: Add --with-python-libdir option. | |
6813 | * main.c: Use WITH_PYTHON_LIBDIR. | |
6814 | ||
869d8950 TT |
6815 | 2020-02-19 Tom Tromey <tom@tromey.com> |
6816 | ||
6817 | * symtab.c (general_symbol_info::compute_and_set_names): Use | |
6818 | obstack_strndup. Simplify call to symbol_set_demangled_name. | |
6819 | ||
298e9637 SM |
6820 | 2020-02-19 Simon Marchi <simon.marchi@efficios.com> |
6821 | ||
6822 | * dwarf2/read.c (allocate_signatured_type_table, | |
6823 | allocate_dwo_unit_table, allocate_type_unit_groups_table, | |
6824 | allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table): | |
6825 | Remove objfile parameter, update all callers. | |
6826 | ||
08410482 DE |
6827 | 2020-02-19 Doug Evans <dje@google.com> |
6828 | ||
6829 | PR rust/25535 | |
6830 | * rust-lang.c (rust_print_enum): Apply embedded_offset to | |
6831 | rust_enum_variant calculation. | |
6832 | ||
dfdeeca1 TT |
6833 | 2020-02-19 Tom Tromey <tromey@adacore.com> |
6834 | ||
6835 | * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR. | |
6836 | ||
2ef5453b TT |
6837 | 2020-02-19 Tom Tromey <tromey@adacore.com> |
6838 | ||
6839 | * ada-lang.c (cache_symbol): Use obstack_strdup. | |
6840 | ||
9f1528a1 AB |
6841 | 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com> |
6842 | ||
6843 | * configure: Regenerate. | |
6844 | ||
d3c22fa8 TT |
6845 | 2020-02-19 Tom Tromey <tromey@adacore.com> |
6846 | ||
6847 | * python/python.c (do_start_initialization): Use XNEWVEC. Remove | |
6848 | NULL check. | |
6849 | ||
bf84f706 MR |
6850 | 2020-02-19 Maciej W. Rozycki <macro@wdc.com> |
6851 | ||
6852 | * NEWS: Mention RISC-V GNU/Linux GDBserver support. | |
6853 | ||
d1c9b20f AB |
6854 | 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com> |
6855 | ||
6856 | * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define | |
6857 | if GDBSERVER is not defined. | |
6858 | (riscv_tdesc_cache): Likewise, also store const target_desc. | |
6859 | (STATIC_IN_GDB): Define. | |
6860 | (riscv_create_target_description): Update declaration with | |
6861 | STATIC_IN_GDB. | |
6862 | (riscv_lookup_target_description): New function, only define if | |
6863 | GDBSERVER is not defined. | |
6864 | * arch/riscv.h (riscv_create_target_description): Declare only | |
6865 | when GDBSERVER is defined. | |
6866 | (riscv_lookup_target_description): New declaration when GDBSERVER | |
6867 | is not defined. | |
6868 | * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to... | |
6869 | (riscv_linux_read_features): ...this, and return | |
6870 | riscv_gdbarch_features instead of target_desc. | |
6871 | * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'. | |
6872 | (riscv_linux_read_description): Rename to... | |
6873 | (riscv_linux_read_features): ...this. | |
6874 | * riscv-linux-nat.c (riscv_linux_nat_target::read_description): | |
6875 | Update to use riscv_gdbarch_features and | |
6876 | riscv_lookup_target_description. | |
6877 | * riscv-tdep.c (riscv_find_default_target_description): Use | |
6878 | riscv_lookup_target_description instead of | |
6879 | riscv_create_target_description. | |
6880 | ||
373d7ac0 SM |
6881 | 2020-02-18 Simon Marchi <simon.marchi@efficios.com> |
6882 | ||
6883 | * valprint.c (generic_val_print_enum_1): When printing a flag | |
6884 | enum with value 0 and there is no enumerator with value 0, print | |
6885 | just "0" instead of "(unknown: 0x0)". | |
6886 | ||
b29a2df0 SM |
6887 | 2020-02-18 Simon Marchi <simon.marchi@efficios.com> |
6888 | ||
6889 | * valprint.c (generic_val_print_enum_1): Print unknown part of | |
6890 | flag enum in hex. | |
6891 | ||
6740f0cc SM |
6892 | 2020-02-18 Simon Marchi <simon.marchi@efficios.com> |
6893 | ||
6894 | * dwarf2/read.c (update_enumeration_type_from_children): Allow | |
6895 | flag enums to contain duplicate enumerators. | |
6896 | * valprint.c (generic_val_print_enum_1): Update comment. | |
6897 | ||
edd45eb0 SM |
6898 | 2020-02-18 Simon Marchi <simon.marchi@efficios.com> |
6899 | ||
6900 | * dwarf2/read.c: Include "count-one-bits.h". | |
6901 | (update_enumeration_type_from_children): If an enumerator has | |
6902 | multiple bits set, don't treat the enumeration as a "flag enum". | |
6903 | * valprint.c (generic_val_print_enum_1): Assert that enumerators | |
6904 | of flag enums have 0 or 1 bit set. | |
6905 | ||
6d0cf446 BE |
6906 | 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de> |
6907 | ||
6908 | * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit | |
6909 | conversion. | |
6910 | * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise. | |
6911 | * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise. | |
6912 | * i386-tdep.c (i386_displaced_step_copy_insn): Likewise. | |
6913 | * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise. | |
6914 | * s390-tdep.c (s390_displaced_step_copy_insn): Likewise. | |
6915 | ||
7001c1b7 SM |
6916 | 2020-02-18 Simon Marchi <simon.marchi@efficios.com> |
6917 | ||
6918 | * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com. | |
6919 | ||
fdb61c6c SM |
6920 | 2020-02-14 Simon Marchi <simon.marchi@efficios.com> |
6921 | ||
6922 | * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use | |
6923 | displaced_step_closure_up. | |
6924 | * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise. | |
6925 | (struct displaced_step_closure_up): | |
6926 | * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise. | |
6927 | * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise. | |
6928 | * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): | |
6929 | Likewise. | |
6930 | * gdbarch.sh (displaced_step_copy_insn): Likewise. | |
6931 | * gdbarch.c, gdbarch.h: Re-generate. | |
6932 | * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use | |
6933 | displaced_step_closure_up. | |
6934 | * i386-tdep.c (i386_displaced_step_copy_insn): Likewise. | |
6935 | * i386-tdep.h (i386_displaced_step_copy_insn): Likewise. | |
6936 | * infrun.h (displaced_step_closure_up): New type alias. | |
6937 | (struct displaced_step_inferior_state) <step_closure>: Change | |
6938 | type to displaced_step_closure_up. | |
6939 | * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use | |
6940 | displaced_step_closure_up. | |
6941 | * s390-tdep.c (s390_displaced_step_copy_insn): Likewise. | |
6942 | ||
a4a38eb4 TT |
6943 | 2020-02-14 Tom Tromey <tom@tromey.com> |
6944 | ||
6945 | * minidebug.c (gnu_debug_key): New global. | |
6946 | (find_separate_debug_file_in_section): Use it. | |
6947 | ||
e8217e61 SM |
6948 | 2020-02-14 Simon Marchi <simon.marchi@efficios.com> |
6949 | ||
6950 | * gdbarch.sh (displaced_step_copy_insn): Change return type to an | |
6951 | std::unique_ptr. | |
6952 | * gdbarch.c: Re-generate. | |
6953 | * gdbarch.h: Re-generate. | |
6954 | * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr | |
6955 | change. | |
6956 | * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return | |
6957 | type to std::unique_ptr. | |
6958 | * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise. | |
6959 | * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise. | |
6960 | * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise. | |
6961 | * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise. | |
6962 | * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise. | |
6963 | * i386-tdep.c (i386_displaced_step_copy_insn): Likewise. | |
6964 | * i386-tdep.h (i386_displaced_step_copy_insn): Likewise. | |
6965 | * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise. | |
6966 | * s390-tdep.c (s390_displaced_step_copy_insn): Likewise. | |
6967 | ||
d8d83535 SM |
6968 | 2020-02-14 Simon Marchi <simon.marchi@efficios.com> |
6969 | ||
6970 | * infrun.c (get_displaced_step_closure_by_addr): Adjust to | |
6971 | std::unique_ptr. | |
6972 | (displaced_step_clear): Rename to... | |
6973 | (displaced_step_reset): ... this. Just call displaced->reset (). | |
6974 | (displaced_step_clear_cleanup): Rename to... | |
6975 | (displaced_step_reset_cleanup): ... this. | |
6976 | (displaced_step_prepare_throw): Adjust to std::unique_ptr. | |
6977 | (displaced_step_fixup): Likewise. | |
6978 | (resume_1): Likewise. | |
6979 | (handle_inferior_event): Restore child's memory before calling | |
6980 | displaced_step_fixup on the parent. | |
6981 | * infrun.h (displaced_step_inferior_state) <reset>: Adjust | |
6982 | to std::unique_ptr. | |
6983 | <step_closure>: Change type to std::unique_ptr. | |
6984 | ||
5f661e03 SM |
6985 | 2020-02-14 Simon Marchi <simon.marchi@efficios.com> |
6986 | ||
6987 | * arm-tdep.c: Include count-one-bits.h. | |
6988 | (cleanup_block_store_pc): Use count_one_bits. | |
6989 | (cleanup_block_load_pc): Use count_one_bits. | |
6990 | (arm_copy_block_xfer): Use count_one_bits. | |
6991 | (thumb2_copy_block_xfer): Use count_one_bits. | |
6992 | (thumb_copy_pop_pc_16bit): Use count_one_bits. | |
6993 | * arch/arm-get-next-pcs.c: Include count-one-bits.h. | |
6994 | (thumb_get_next_pcs_raw): Use count_one_bits. | |
6995 | (arm_get_next_pcs_raw): Use count_one_bits_l. | |
6996 | * arch/arm.c (bitcount): Remove. | |
6997 | * arch/arm.h (bitcount): Remove. | |
6998 | ||
8084e579 TT |
6999 | 2020-02-14 Tom Tromey <tromey@adacore.com> |
7000 | ||
7001 | * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): | |
7002 | Update. | |
7003 | * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr. | |
7004 | * dwarf2/loc.c (call_site_find_chain_1): Return | |
7005 | unique_xmalloc_ptr. | |
7006 | (call_site_find_chain): Likewise. | |
7007 | ||
258bf0ee RB |
7008 | 2020-02-14 Richard Biener <rguenther@suse.de> |
7009 | ||
7010 | * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE | |
7011 | on expression with division operators. | |
7012 | ||
f98a8458 AKS |
7013 | 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com> |
7014 | ||
7015 | * MAINTAINERS (Write After Approval): Adding myself. | |
7016 | ||
d1437c0e TT |
7017 | 2020-02-12 Tom Tromey <tom@tromey.com> |
7018 | ||
7019 | * event-loop.c (event_data, gdb_event, event_handler_func): | |
7020 | Remove. | |
7021 | ||
3d4560f7 TT |
7022 | 2020-02-12 Tom Tromey <tom@tromey.com> |
7023 | ||
7024 | * dwarf2/frame.c (dwarf2_frame_bfd_data): New global. | |
7025 | (dwarf2_frame_objfile_data): Add comment. | |
7026 | (find_comp_unit, set_comp_unit): New functions. | |
7027 | (dwarf2_frame_find_fde): Use find_comp_unit. | |
7028 | (dwarf2_build_frame_info): Use set_comp_unit. | |
7029 | ||
21982304 TT |
7030 | 2020-02-12 Tom Tromey <tom@tromey.com> |
7031 | ||
7032 | * dwarf2/frame.c (struct comp_unit) <objfile>: Remove. | |
7033 | (comp_unit): Don't initialize objfile. | |
7034 | (execute_cfa_program): Add text_offset parameter. | |
7035 | (execute_cfa_program_test, dwarf2_fetch_cfa_info) | |
7036 | (dwarf2_frame_cache): Update. | |
7037 | (dwarf2_build_frame_info): Don't set "objfile" member. | |
7038 | ||
4debb237 TT |
7039 | 2020-02-12 Tom Tromey <tom@tromey.com> |
7040 | ||
7041 | * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter. | |
7042 | (decode_frame_entry): Likewise. | |
7043 | (dwarf2_build_frame_info): Update. | |
7044 | ||
0d404d44 TT |
7045 | 2020-02-12 Tom Tromey <tom@tromey.com> |
7046 | ||
7047 | * dwarf2/frame.c (struct comp_unit) <obstack>: New member. | |
7048 | (decode_frame_entry_1): Use the comp_unit obstack. | |
7049 | ||
a7a3ae5c TT |
7050 | 2020-02-12 Tom Tromey <tom@tromey.com> |
7051 | ||
7052 | * dwarf2/frame.c (struct comp_unit): Add initializers and | |
7053 | constructor. | |
7054 | (dwarf2_frame_objfile_data): Store a comp_unit. | |
7055 | (dwarf2_frame_find_fde): Update. | |
7056 | (dwarf2_build_frame_info): Use "new". | |
7057 | ||
a9d65418 TT |
7058 | 2020-02-12 Tom Tromey <tom@tromey.com> |
7059 | ||
7060 | * dwarf2/frame.c (struct dwarf2_fde_table): Remove. | |
7061 | (dwarf2_fde_table): Typedef for std::vector. | |
7062 | (dwarf2_frame_objfile_data): Remove the deleter. Now static. | |
7063 | (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1) | |
7064 | (decode_frame_entry): Update. | |
7065 | (dwarf2_build_frame_info): Use "new". | |
7066 | ||
7559c217 CB |
7067 | 2020-02-12 Christian Biesinger <cbiesinger@google.com> |
7068 | ||
7069 | * arm-tdep.c (arm_gdbarch_init): Update. | |
7070 | * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers, | |
7071 | have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos, | |
7072 | have_neon, is_m>: Change to bool. | |
7073 | ||
aeefc73c CB |
7074 | 2020-02-12 Christian Biesinger <cbiesinger@google.com> |
7075 | ||
7076 | * arm-tdep.c (arm_dump_tdep): Print more fields of tdep. | |
7077 | ||
d27b8e5f TT |
7078 | 2020-02-12 Tom Tromey <tom@tromey.com> |
7079 | ||
7080 | * dwarf2/loc.c (struct dwarf_expr_baton): Remove. | |
7081 | ||
cd5900f3 HD |
7082 | 2020-02-12 Hannes Domani <ssbssa@yahoo.de> |
7083 | ||
7084 | * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type. | |
7085 | (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type. | |
7086 | ||
f056b22b TT |
7087 | 2020-02-11 Tom Tromey <tom@tromey.com> |
7088 | ||
7089 | * psymtab.h: Update comment. | |
7090 | ||
f92ff6b5 TT |
7091 | 2020-02-11 Tom Tromey <tom@tromey.com> |
7092 | ||
7093 | * gdb_obstack.h (struct auto_obstack): Use | |
7094 | DISABLE_COPY_AND_ASSIGN. | |
7095 | ||
3fd6912b TT |
7096 | 2020-02-11 Tom Tromey <tom@tromey.com> |
7097 | ||
7098 | * dwarf2/frame.h (struct objfile): Don't forward declare. | |
7099 | ||
69ed9b74 CB |
7100 | 2020-02-11 Christian Biesinger <cbiesinger@google.com> |
7101 | ||
7102 | * cris-tdep.c (cris_supply_gregset): Change signature to match | |
7103 | what struct regset expects. | |
7104 | (cris_regset): New struct. | |
7105 | (fetch_core_registers): Remove. | |
7106 | (cris_iterate_over_regset_sections): New function. | |
7107 | (_initialize_cris_tdep): Don't call deprecated_add_core_fns. | |
7108 | (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections. | |
7109 | ||
bda874f6 CB |
7110 | 2020-02-11 Christian Biesinger <cbiesinger@google.com> |
7111 | ||
7112 | * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7 | |
7113 | registers. | |
7114 | ||
754e1564 CB |
7115 | 2020-02-11 Christian Biesinger <cbiesinger@google.com> |
7116 | ||
7117 | * arm-tdep.c (arm_dump_tdep): Add \n in fprintf. | |
7118 | ||
8ddd8e0e SM |
7119 | 2020-02-11 Simon Marchi <simon.marchi@efficios.com> |
7120 | ||
7121 | * configure: Re-generate. | |
7122 | ||
898e7f60 SM |
7123 | 2020-02-11 Simon Marchi <simon.marchi@efficios.com> |
7124 | ||
7125 | * configure: Re-generate. | |
7126 | ||
58df732b SM |
7127 | 2020-02-11 Simon Marchi <simon.marchi@efficios.com> |
7128 | ||
7129 | * acinclude: Update warning.m4 path. | |
7130 | * warning.m4: Move to gdbsupport. | |
7131 | ||
da5bd37e TT |
7132 | 2020-02-11 Tom Tromey <tromey@adacore.com> |
7133 | ||
7134 | * remote.c (remote_console_output): Update. | |
7135 | * printcmd.c (printf_command): Update. | |
7136 | * event-loop.c (gdb_wait_for_event): Update. | |
7137 | * linux-nat.c (sigchld_handler): Update. | |
7138 | * remote-sim.c (gdb_os_write_stdout): Update. | |
7139 | (gdb_os_flush_stdout): Update. | |
7140 | (gdb_os_flush_stderr): Update. | |
7141 | (gdb_os_write_stderr): Update. | |
7142 | * exceptions.c (print_exception): Update. | |
7143 | * remote-fileio.c (remote_fileio_func_read): Update. | |
7144 | (remote_fileio_func_write): Update. | |
7145 | * tui/tui.c (tui_enable): Update. | |
7146 | * tui/tui-interp.c (tui_interp::init): Update. | |
7147 | * utils.c (init_page_info): Update. | |
7148 | (putchar_unfiltered, fputc_unfiltered): Update. | |
7149 | (gdb_flush): Update. | |
7150 | (emit_style_escape): Update. | |
7151 | (flush_wrap_buffer, fputs_maybe_filtered): Update. | |
7152 | * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write) | |
7153 | (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove. | |
7154 | (stderr_file::write): Update. | |
7155 | (stderr_file::puts): Update. | |
7156 | * ui-file.h (ui_file_isatty, ui_file_write) | |
7157 | (ui_file_write_async_safe, ui_file_read, ui_file_flush) | |
7158 | (ui_file_puts): Don't declare. | |
7159 | ||
85f0dd3c TV |
7160 | 2020-02-10 Tom de Vries <tdevries@suse.de> |
7161 | ||
7162 | * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL | |
7163 | sentinel to char *. | |
7164 | ||
2e927613 TV |
7165 | 2020-02-09 Tom de Vries <tdevries@suse.de> |
7166 | ||
7167 | * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to | |
7168 | filename if it matches "<artificial>". | |
7169 | ||
6bafc845 HD |
7170 | 2020-02-09 Hannes Domani <ssbssa@yahoo.de> |
7171 | ||
7172 | * windows-tdep.c (struct enum_value_name): New struct. | |
7173 | (create_enum): New function. | |
7174 | (windows_get_siginfo_type): Create and use enum types. | |
7175 | ||
7928d571 HD |
7176 | 2020-02-09 Hannes Domani <ssbssa@yahoo.de> |
7177 | ||
7178 | * NEWS: Mention $_siginfo support for Windows. | |
7179 | * windows-nat.c (handle_exception): Set siginfo_er. | |
7180 | (windows_nat_target::mourn_inferior): Reset siginfo_er. | |
7181 | (windows_xfer_siginfo): New function. | |
7182 | (windows_nat_target::xfer_partial): Call windows_xfer_siginfo. | |
7183 | * windows-tdep.c (struct windows_gdbarch_data): New struct. | |
7184 | (init_windows_gdbarch_data): New function. | |
7185 | (get_windows_gdbarch_data): New function. | |
7186 | (windows_get_siginfo_type): New function. | |
7187 | (windows_init_abi): Register windows_get_siginfo_type. | |
7188 | (_initialize_windows_tdep): Register init_windows_gdbarch_data. | |
7189 | ||
6751ebae TT |
7190 | 2020-02-08 Tom Tromey <tom@tromey.com> |
7191 | ||
7192 | * dwarf2/read.c (class cutu_reader) <cutu_reader, | |
7193 | init_tu_and_read_dwo_dies>: Remove "keep" parameter. | |
7194 | <keep>: Declare method. | |
7195 | <m_keep>: Remove member. | |
7196 | <~cutu_reader>: Remove. | |
7197 | (cutu_reader::init_tu_and_read_dwo_dies): Update. | |
7198 | (cutu_reader::cutu_reader): Update. | |
7199 | (cutu_reader::keep): Rename from ~cutu_reader. | |
7200 | (process_psymtab_comp_unit, build_type_psymtabs_1) | |
7201 | (process_skeletonless_type_unit, load_partial_comp_unit) | |
7202 | (load_full_comp_unit, dwarf2_read_addr_index) | |
7203 | (read_signatured_type): Update. | |
7204 | ||
135f5437 TT |
7205 | 2020-02-08 Tom Tromey <tom@tromey.com> |
7206 | ||
7207 | * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove | |
7208 | "want_partial_unit" parameter. | |
7209 | (process_psymtab_comp_unit): Change want_partial_unit to bool. | |
7210 | Inline check for DW_TAG_partial_unit. | |
7211 | (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update. | |
7212 | ||
9f66ff1c TT |
7213 | 2020-02-08 Tom Tromey <tom@tromey.com> |
7214 | ||
7215 | * dwarf2/read.c (read_n_bytes, read_direct_string): Move to | |
7216 | read.c. | |
7217 | * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from | |
7218 | read.c. | |
7219 | ||
c8a7a66f TT |
7220 | 2020-02-08 Tom Tromey <tom@tromey.com> |
7221 | ||
7222 | * dwarf2/read.c (read_address): Move to comp-unit.c. | |
7223 | (dwarf2_rnglists_process, dwarf2_ranges_process) | |
7224 | (read_attribute_value, dwarf_decode_lines_1) | |
7225 | (var_decode_location, decode_locdesc): Update. | |
7226 | * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from | |
7227 | read.c. Remove "cu" parameter. | |
7228 | * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New | |
7229 | method. | |
7230 | ||
8266302d TT |
7231 | 2020-02-08 Tom Tromey <tom@tromey.com> |
7232 | ||
7233 | * dwarf2/read.c (read_attribute_value, read_indirect_string) | |
7234 | (read_indirect_line_string): Update. | |
7235 | * dwarf2/comp-unit.c (read_offset): Remove. | |
7236 | (read_comp_unit_head): Update. | |
7237 | * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New | |
7238 | method. | |
7239 | (read_offset): Don't declare. | |
7240 | ||
4057dfde TT |
7241 | 2020-02-08 Tom Tromey <tom@tromey.com> |
7242 | ||
7243 | * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c. | |
7244 | * dwarf2/read.c (struct comp_unit_head): Move to | |
7245 | dwarf2/comp-unit.h. | |
7246 | (enum class rcuh_kind): Move to comp-unit.h. | |
7247 | (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head. | |
7248 | (read_comp_unit_head, error_check_comp_unit_head) | |
7249 | (read_and_check_comp_unit_head): Move to comp-unit.c. | |
7250 | (read_offset, dwarf_unit_type_name): Likewise. | |
7251 | (create_debug_type_hash_table, read_cutu_die_from_dwo) | |
7252 | (cutu_reader::cutu_reader, read_call_site_scope) | |
7253 | (find_partial_die, follow_die_offset): Update. | |
7254 | * dwarf2/comp-unit.h: New file, from dwarf2read.c. | |
7255 | ||
24aa364d TT |
7256 | 2020-02-08 Tom Tromey <tom@tromey.com> |
7257 | ||
7258 | * dwarf2/read.c (read_offset_1): Move to leb.c. | |
7259 | (read_abbrev_offset, read_offset, dwarf_decode_line_header) | |
7260 | (dwarf_decode_macro_bytes): Update. | |
7261 | * dwarf2/leb.c (read_offset): Rename; move from read.c. | |
7262 | * dwarf2/leb.h (read_offset): Declare. | |
7263 | ||
2c7d5afc TT |
7264 | 2020-02-08 Tom Tromey <tom@tromey.com> |
7265 | ||
7266 | * dwarf2/read.c (dwarf2_section_size): Remove. | |
7267 | (error_check_comp_unit_head, dwarf2_symbol_mark_computed): | |
7268 | Update. | |
7269 | * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method. | |
7270 | ||
4075cb26 TT |
7271 | 2020-02-08 Tom Tromey <tom@tromey.com> |
7272 | ||
7273 | * dwarf2/read.c (read_initial_length): Move to leb.c. | |
7274 | * dwarf2/leb.h (read_initial_length): Declare. | |
7275 | * dwarf2/leb.c (read_initial_length): Move from read.c. Add | |
7276 | handle_nonstd parameter. | |
7277 | * dwarf2/frame.c (read_initial_length): Remove. | |
7278 | (decode_frame_entry_1): Update. | |
7279 | ||
09ba997f TT |
7280 | 2020-02-08 Tom Tromey <tom@tromey.com> |
7281 | ||
7282 | * dwarf2/loc.c (dwarf2_find_location_expression) | |
7283 | (dwarf_evaluate_loc_desc::get_tls_address) | |
7284 | (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value) | |
7285 | (rw_pieced_value, dwarf2_evaluate_loc_desc_full) | |
7286 | (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property) | |
7287 | (dwarf2_compile_property_to_c) | |
7288 | (dwarf2_loc_desc_get_symbol_read_needs) | |
7289 | (dwarf2_compile_expr_to_ax, locexpr_describe_location) | |
7290 | (locexpr_tracepoint_var_ref, locexpr_generate_c_location) | |
7291 | (loclist_describe_location, loclist_tracepoint_var_ref) | |
7292 | (loclist_generate_c_location): Update. | |
7293 | * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update. | |
7294 | * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size) | |
7295 | (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size) | |
7296 | (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare. | |
7297 | * dwarf2/read.c (dwarf2_per_cu_data::objfile) | |
7298 | (dwarf2_per_cu_data::addr_size) | |
7299 | (dwarf2_per_cu_data::ref_addr_size) | |
7300 | (dwarf2_per_cu_data::text_offset) | |
7301 | (dwarf2_per_cu_data::addr_type): Now methods. | |
7302 | (per_cu_header_read_in): Make per_cu "const". | |
7303 | (dwarf2_version): Remove. | |
7304 | (dwarf2_per_cu_data::int_type): Now a method. | |
7305 | (dwarf2_per_cu_data::_addr_sized_int_type): Likewise. | |
7306 | (set_die_type, read_array_type, read_subrange_index_type) | |
7307 | (read_tag_string_type, read_subrange_type): Update. | |
7308 | * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size, | |
7309 | offset_size, ref_addr_size, text_offset, addr_type, version, | |
7310 | objfile, int_type, addr_sized_int_type>: Declare methods. | |
7311 | ||
96c738c0 TT |
7312 | 2020-02-08 Tom Tromey <tom@tromey.com> |
7313 | ||
7314 | * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>: | |
7315 | Move earlier. | |
7316 | ||
8fdd972c TT |
7317 | 2020-02-08 Tom Tromey <tom@tromey.com> |
7318 | ||
7319 | * dwarf2/read.h (dwarf_line_debug): Declare. | |
7320 | * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c. | |
7321 | * dwarf2/read.c: Move line_header code to new files. | |
7322 | (dwarf_line_debug): No longer static. | |
7323 | * dwarf2/line-header.c: New file. | |
7324 | * dwarf2/line-header.h: New file. | |
7325 | ||
03075812 TT |
7326 | 2020-02-08 Tom Tromey <tom@tromey.com> |
7327 | ||
7328 | * dwarf2/read.c (struct line_header) <file_full_name, | |
7329 | file_file_name>: Return unique_xmalloc_ptr. | |
7330 | (line_header::file_file_name): Update. | |
7331 | (line_header::file_full_name): Update. | |
7332 | (dw2_get_file_names_reader): Update. | |
7333 | (macro_start_file): Update. | |
7334 | ||
bb822404 TT |
7335 | 2020-02-08 Tom Tromey <tom@tromey.com> |
7336 | ||
7337 | * dwarf2/read.c (struct line_header) <file_full_name, | |
7338 | file_file_name>: Declare methods. | |
7339 | (dw2_get_file_names_reader): Update. | |
7340 | (file_file_name): Now a method. | |
7341 | (file_full_name): Likewise. | |
7342 | (macro_start_file): Update. | |
7343 | ||
009b64fc TT |
7344 | 2020-02-08 Tom Tromey <tom@tromey.com> |
7345 | ||
7346 | * dwarf2/read.c (dwarf_always_disassemble) | |
7347 | (show_dwarf_always_disassemble): Move to loc.c. | |
7348 | (_initialize_dwarf2_read): Move "always-disassemble" registration | |
7349 | to loc.c. | |
7350 | * dwarf2/read.h (dwarf_always_disassemble): Don't declare. | |
7351 | * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now | |
7352 | static. | |
7353 | (show_dwarf_always_disassemble): Move from read.c. | |
7354 | (_initialize_dwarf2loc): Move always-disassemble from read.c. | |
7355 | ||
5895093f TT |
7356 | 2020-02-08 Tom Tromey <tom@tromey.com> |
7357 | ||
7358 | * dwarf2/read.c (~dwarf2_per_objfile): Update. | |
7359 | (create_quick_file_names_table): Return htab_up. | |
7360 | (dw2_get_file_names_reader, dw2_forget_cached_source_info): | |
7361 | Update. | |
7362 | * dwarf2/read.h (struct dwarf2_per_objfile) | |
7363 | <quick_file_names_table>: Now htab_up. | |
7364 | ||
b3b32279 TT |
7365 | 2020-02-08 Tom Tromey <tom@tromey.com> |
7366 | ||
7367 | * dwarf2/abbrev.c (abbrev_table::read): Simplify. | |
7368 | ||
1d33d811 TT |
7369 | 2020-02-08 Tom Tromey <tom@tromey.com> |
7370 | ||
7371 | * dwarf2/abbrev.c (abbrev_table): Move constructor from header. | |
7372 | Rewrite. | |
7373 | (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite. | |
7374 | * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove. | |
7375 | (abbrev_table::abbrev_table): No longer inline. | |
7376 | (ABBREV_HASH_SIZE): Remove. | |
7377 | (abbrev_table::m_abbrevs): Now an htab_up. | |
7378 | ||
86de1d91 TT |
7379 | 2020-02-08 Tom Tromey <tom@tromey.com> |
7380 | ||
7381 | * dwarf2/read.c (read_cutu_die_from_dwo): Update. | |
7382 | (cutu_reader): Update. | |
7383 | (build_type_psymtabs_1): Update. | |
7384 | * dwarf2/abbrev.c (abbrev_table::read): Rename. | |
7385 | (abbrev_table::alloc_abbrev): Update. | |
7386 | * dwarf2/abbrev.h (abbrev_table_up): Move earlier. | |
7387 | (abbrev_table::read): New static method, renamed from | |
7388 | abbrev_table_read_table. | |
7389 | (abbrev_table::alloc_abbrev) | |
7390 | (abbrev_table::add_abbrev): Now private. | |
7391 | (abbrev_table::abbrev_table): Now private. | |
7392 | (abbrev_table::m_abbrev_obstack): Now private. Rename. | |
7393 | ||
0335378b TT |
7394 | 2020-02-08 Tom Tromey <tom@tromey.com> |
7395 | ||
7396 | * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update. | |
7397 | * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now | |
7398 | htab_up. | |
7399 | ||
48b490f2 TT |
7400 | 2020-02-08 Tom Tromey <tom@tromey.com> |
7401 | ||
7402 | * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now | |
7403 | htab_up. | |
7404 | (lookup_dwo_unit_in_dwp): Update. | |
7405 | (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate | |
7406 | on obstack. | |
7407 | ||
bc68fb19 TT |
7408 | 2020-02-08 Tom Tromey <tom@tromey.com> |
7409 | ||
7410 | * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on | |
7411 | obstack. | |
7412 | ||
d15acc42 TT |
7413 | 2020-02-08 Tom Tromey <tom@tromey.com> |
7414 | ||
7415 | * dwarf2/read.c (~dwarf2_per_objfile): Don't delete | |
7416 | line_header_hash. | |
7417 | (handle_DW_AT_stmt_list): Update. Don't allocate on obstack. | |
7418 | * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>: | |
7419 | Change type to htab_up. | |
7420 | ||
eaa5fa8b TT |
7421 | 2020-02-08 Tom Tromey <tom@tromey.com> |
7422 | ||
7423 | * dwarf2/read.c (allocate_type_unit_groups_table): Return | |
7424 | htab_up. Don't allocate on obstack. | |
7425 | (get_type_unit_group, dwarf2_build_psymtabs_hard): Update. | |
7426 | * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>: | |
7427 | Change type to htab_up. | |
7428 | ||
b0b6a987 TT |
7429 | 2020-02-08 Tom Tromey <tom@tromey.com> |
7430 | ||
7431 | * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>: | |
7432 | Change type to htab_up. | |
7433 | * dwarf2/read.c (create_signatured_type_table_from_index) | |
7434 | (create_signatured_type_table_from_debug_names) | |
7435 | (create_all_type_units, add_type_unit) | |
7436 | (lookup_dwo_signatured_type, lookup_signatured_type) | |
7437 | (process_skeletonless_type_unit): Update. | |
7438 | (create_debug_type_hash_table, create_debug_types_hash_table): | |
7439 | Change type of types_htab. | |
7440 | (allocate_signatured_type_table, allocate_dwo_unit_table): Return | |
7441 | htab_up. Don't allocate on obstack. | |
7442 | (create_cus_hash_table): Change type of cus_htab parameter. | |
7443 | (struct dwo_file) <cus, tus>: Now htab_up. | |
7444 | (lookup_dwo_signatured_type, lookup_dwo_cutu) | |
7445 | (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu) | |
7446 | (queue_and_load_all_dwo_tus): Update. | |
7447 | * dwarf2/index-write.c (write_gdbindex): Update. | |
7448 | (write_debug_names): Update. | |
7449 | ||
39856def TT |
7450 | 2020-02-08 Tom Tromey <tom@tromey.com> |
7451 | ||
7452 | * dwarf2/read.h (struct dwarf2_queue_item): Move from | |
7453 | dwarf2/read.c. Remove "next" member. Add constructor ntad | |
7454 | destructor. | |
7455 | (struct dwarf2_per_objfile) <queue>: New member. | |
7456 | * dwarf2/read.c (struct dwarf2_queue_item): Move to | |
7457 | dwarf2/read.h. | |
7458 | (dwarf2_queue, dwarf2_queue_tail): Remove. | |
7459 | (class dwarf2_queue_guard): Add parameter to constructor. Use | |
7460 | DISABLE_COPY_AND_ASSIGN. | |
7461 | <m_per_objfile>: New member. | |
7462 | <~dwarf2_queue_guard>: Rewrite. | |
7463 | (dw2_do_instantiate_symtab, queue_comp_unit, process_queue): | |
7464 | Update. | |
7465 | (~dwarf2_queue_item): New. | |
7466 | ||
3e225074 TT |
7467 | 2020-02-08 Tom Tromey <tom@tromey.com> |
7468 | ||
7469 | * dwarf2/read.c (struct die_info) <has_children>: New member. | |
7470 | (dw2_get_file_names_reader): Remove has_children. | |
7471 | (dw2_get_file_names): Update. | |
7472 | (read_cutu_die_from_dwo): Remove has_children. | |
7473 | (cutu_reader::init_tu_and_read_dwo_dies) | |
7474 | (cutu_reader::cutu_reader): Update. | |
7475 | (process_psymtab_comp_unit_reader, build_type_psymtabs_reader): | |
7476 | Remove has_children. | |
7477 | (build_type_psymtabs_1, process_skeletonless_type_unit) | |
7478 | (load_partial_comp_unit, load_full_comp_unit): Update. | |
7479 | (create_dwo_cu_reader): Remove has_children. | |
7480 | (create_cus_hash_table, read_die_and_children): Update. | |
7481 | (read_full_die_1,read_full_die): Remove has_children. | |
7482 | (read_signatured_type): Update. | |
7483 | (class cutu_reader) <has_children>: Remove. | |
7484 | ||
82ca8957 TT |
7485 | 2020-02-08 Tom Tromey <tom@tromey.com> |
7486 | ||
7487 | * dwarf2/expr.c: Rename from dwarf2expr.c. | |
7488 | * dwarf2/expr.h: Rename from dwarf2expr.h. | |
7489 | * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c. | |
7490 | * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h. | |
7491 | * dwarf2/frame.c: Rename from dwarf2-frame.c. | |
7492 | * dwarf2/frame.h: Rename from dwarf2-frame.h. | |
7493 | * dwarf2/index-cache.c: Rename from dwarf-index-cache.c. | |
7494 | * dwarf2/index-cache.h: Rename from dwarf-index-cache.h. | |
7495 | * dwarf2/index-common.c: Rename from dwarf-index-common.c. | |
7496 | * dwarf2/index-common.h: Rename from dwarf-index-common.h. | |
7497 | * dwarf2/index-write.c: Rename from dwarf-index-write.c. | |
7498 | * dwarf2/index-write.h: Rename from dwarf-index-write.h. | |
7499 | * dwarf2/loc.c: Rename from dwarf2loc.c. | |
7500 | * dwarf2/loc.h: Rename from dwarf2loc.h. | |
7501 | * dwarf2/read.c: Rename from dwarf2read.c. | |
7502 | * dwarf2/read.h: Rename from dwarf2read.h. | |
7503 | * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c, | |
7504 | amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c, | |
7505 | compile/compile-c-symbols.c, compile/compile-cplus-symbols.c, | |
7506 | compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c, | |
7507 | gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c, | |
7508 | hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c, | |
7509 | i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c, | |
7510 | m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c, | |
7511 | msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c, | |
7512 | riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c, | |
7513 | s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c, | |
7514 | sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c, | |
7515 | tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c: | |
7516 | Update. | |
7517 | * Makefile.in (COMMON_SFILES): Update. | |
7518 | (HFILES_NO_SRCDIR): Update. | |
7519 | ||
9e35d499 TT |
7520 | 2020-02-08 Tom Tromey <tom@tromey.com> |
7521 | ||
7522 | * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove. | |
7523 | (init_cu_die_reader, read_cutu_die_from_dwo): Update. | |
7524 | ||
1eba2311 TT |
7525 | 2020-02-08 Tom Tromey <tom@tromey.com> |
7526 | ||
7527 | * dwarf2read.h (struct die_info): Don't declare. | |
7528 | ||
e41c2da2 TT |
7529 | 2020-02-08 Tom Tromey <tom@tromey.com> |
7530 | ||
7531 | * dwarf2read.h (die_info_ptr): Remove typedef. | |
7532 | ||
4fc6c0d5 TT |
7533 | 2020-02-08 Tom Tromey <tom@tromey.com> |
7534 | ||
7535 | * dwarf2read.c (read_call_site_scope) | |
7536 | (handle_data_member_location, dwarf2_add_member_fn) | |
7537 | (mark_common_block_symbol_computed, read_common_block) | |
7538 | (attr_to_dynamic_prop, partial_die_info::read) | |
7539 | (var_decode_location, dwarf2_fetch_die_loc_sect_off) | |
7540 | (dwarf2_symbol_mark_computed, set_die_type): Update. | |
7541 | * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare | |
7542 | method. | |
7543 | (attr_form_is_block): Don't declare. | |
7544 | * dwarf2/attribute.c (attribute::form_is_block): Now a method. | |
7545 | ||
cd6c91b4 TT |
7546 | 2020-02-08 Tom Tromey <tom@tromey.com> |
7547 | ||
7548 | * dwarf2read.c (dwarf2_find_base_address, ) | |
7549 | (read_call_site_scope, rust_containing_type) | |
7550 | (dwarf2_get_pc_bounds, dwarf2_record_block_ranges) | |
7551 | (handle_data_member_location, dwarf2_add_member_fn) | |
7552 | (get_alignment, read_structure_type, process_structure_scope) | |
7553 | (mark_common_block_symbol_computed, read_common_block) | |
7554 | (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type) | |
7555 | (partial_die_info::read, read_attribute_value, new_symbol) | |
7556 | (lookup_die_type, dwarf2_get_ref_die_offset) | |
7557 | (dwarf2_get_attr_constant_value, follow_die_ref_or_sig) | |
7558 | (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type) | |
7559 | (dwarf2_symbol_mark_computed): Update. | |
7560 | * dwarf2/attribute.h (struct attribute) <value_as_address, | |
7561 | form_is_section_offset, form_is_constant, form_is_ref>: Declare | |
7562 | methods. | |
7563 | (value_as_address, attr_form_is_section_offset) | |
7564 | (attr_form_is_constant, attr_form_is_ref): Don't declare. | |
7565 | * dwarf2/attribute.c (attribute::value_as_address) | |
7566 | (attribute::form_is_section_offset, attribute::form_is_constant) | |
7567 | (attribute::form_is_ref): Now methods. | |
7568 | ||
162dce55 TT |
7569 | 2020-02-08 Tom Tromey <tom@tromey.com> |
7570 | ||
7571 | * dwarf2read.c (struct attribute, DW_STRING) | |
7572 | (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR) | |
7573 | (DW_SIGNATURE, struct dwarf_block, attr_value_as_address) | |
7574 | (attr_form_is_block, attr_form_is_section_offset) | |
7575 | (attr_form_is_constant, attr_form_is_ref): Move. | |
7576 | * dwarf2/attribute.h: New file. | |
7577 | * dwarf2/attribute.c: New file, from dwarf2read.c. | |
7578 | * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c. | |
7579 | ||
3054dd54 TT |
7580 | 2020-02-08 Tom Tromey <tom@tromey.com> |
7581 | ||
7582 | * dwarf2read.c (abbrev_table_up, struct abbrev_info) | |
7583 | (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table): | |
7584 | Move. | |
7585 | (read_cutu_die_from_dwo, build_type_psymtabs_1): Update. | |
7586 | (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev) | |
7587 | (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to | |
7588 | abbrev.c. | |
7589 | * dwarf2/abbrev.h: New file. | |
7590 | * dwarf2/abbrev.c: New file, from dwarf2read.c. | |
7591 | * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c. | |
7592 | ||
96b79293 TT |
7593 | 2020-02-08 Tom Tromey <tom@tromey.com> |
7594 | ||
7595 | * dwarf2read.c (dwarf2_section_buffer_overflow_complaint) | |
7596 | (dwarf2_section_size, dwarf2_get_section_info) | |
7597 | (create_signatured_type_table_from_debug_names) | |
7598 | (create_addrmap_from_aranges, read_debug_names_from_section) | |
7599 | (get_gdb_index_contents_from_section, read_comp_unit_head) | |
7600 | (error_check_comp_unit_head, read_abbrev_offset) | |
7601 | (create_debug_type_hash_table, init_cu_die_reader) | |
7602 | (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard) | |
7603 | (read_comp_units_from_section, create_cus_hash_table) | |
7604 | (create_dwp_hash_table, create_dwo_unit_in_dwp_v1) | |
7605 | (create_dwp_v2_section, dwarf2_rnglists_process) | |
7606 | (dwarf2_ranges_process, read_die_and_siblings, read_full_die) | |
7607 | (abbrev_table_read_table, read_indirect_string_at_offset_from) | |
7608 | (read_indirect_string_from_dwz, read_addr_index_1) | |
7609 | (read_str_index, dwarf_decode_line_header, skip_form_bytes) | |
7610 | (dwarf_decode_macro_bytes, dwarf_decode_macros) | |
7611 | (fill_in_loclist_baton): Update. | |
7612 | * dwarf2/section.h (struct dwarf2_section_info) <get_name, | |
7613 | get_containing_section, get_bfd_owner, get_bfd_section, | |
7614 | get_file_name, get_id, get_flags, empty, read>: Declare methods. | |
7615 | (dwarf2_read_section, get_section_name, get_section_file_name) | |
7616 | (get_containing_section, get_section_bfd_owner) | |
7617 | (get_section_bfd_section, get_section_name, get_section_file_name) | |
7618 | (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't | |
7619 | declare. | |
7620 | * dwarf2/section.c (dwarf2_section_info::get_containing_section) | |
7621 | (dwarf2_section_info::get_bfd_owner) | |
7622 | (dwarf2_section_info::get_bfd_section) | |
7623 | (dwarf2_section_info::get_name) | |
7624 | (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id) | |
7625 | (dwarf2_section_info::get_flags, dwarf2_section_info::empty) | |
7626 | (dwarf2_section_info::read): Now methods. | |
7627 | * dwarf-index-write.c (class debug_names): Update. | |
7628 | ||
2c86cff9 TT |
7629 | 2020-02-08 Tom Tromey <tom@tromey.com> |
7630 | ||
7631 | * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section): | |
7632 | Move to dwarf2/section.h. | |
7633 | * dwarf2read.c (get_containing_section, get_section_bfd_owner) | |
7634 | (get_section_bfd_section, get_section_name) | |
7635 | (get_section_file_name, get_section_id, get_section_flags) | |
7636 | (dwarf2_section_empty_p, dwarf2_read_section): Moe to | |
7637 | dwarf2/section.c. | |
7638 | * dwarf2/section.h: New file. | |
7639 | * dwarf2/section.c: New file, from dwarf2read.c. | |
7640 | * Makefile.in (COMMON_SFILES): Add dwarf2/section.c. | |
7641 | ||
f4382c45 TT |
7642 | 2020-02-08 Tom Tromey <tom@tromey.com> |
7643 | ||
7644 | * dwarf2read.h (read_unsigned_leb128): Don't declare. | |
7645 | * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes) | |
7646 | (read_2_signed_bytes, read_3_bytes, read_4_bytes) | |
7647 | (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h. | |
7648 | (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c. | |
7649 | * dwarf2/leb.h: New file, from dwarf2read.c. | |
7650 | * dwarf2/leb.c: New file, from dwarf2read.c. | |
7651 | * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes): | |
7652 | Remove. | |
7653 | * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2. | |
7654 | (COMMON_SFILES): Add dwarf2/leb.c. | |
7655 | ||
01840b7a JB |
7656 | 2020-02-08 Joel Brobecker <brobecker@adacore.com> |
7657 | ||
7658 | GDB 9.1 released. | |
7659 | ||
dfcb27e4 IB |
7660 | 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org> |
7661 | ||
7662 | PR gdb/25190: | |
aac66a4c SM |
7663 | * gdb/remote-sim.c (gdb_os_write_stderr): Update. |
7664 | * gdb/remote.c (remote_console_output): Update. | |
7665 | * gdb/ui-file.c (fputs_unfiltered): Rename to... | |
7666 | (ui_file_puts): ...this. | |
7667 | * gdb/ui-file.h (ui_file_puts): Add declaration. | |
7668 | * gdb/utils.c (emit_style_escape): Update. | |
7669 | (flush_wrap_buffer): Update. | |
7670 | (fputs_maybe_filtered): Update. | |
7671 | (fputs_unfiltered): Add function. | |
dfcb27e4 | 7672 | |
faa17681 IB |
7673 | 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org> |
7674 | ||
aac66a4c SM |
7675 | * gdb/event-loop.c (gdb_wait_for_event): Update. |
7676 | * gdb/printcmd.c (printf_command): Update. | |
7677 | * gdb/remote-fileio.c (remote_fileio_func_write): Update. | |
7678 | * gdb/remote-sim.c (gdb_os_flush_stdout): Update. | |
7679 | (gdb_os_flush_stderr): Update. | |
7680 | * gdb/remote.c (remote_console_output): Update. | |
7681 | * gdb/ui-file.c (gdb_flush): Rename to... | |
7682 | (ui_file_flush): ...this. | |
7683 | (stderr_file::write): Update. | |
7684 | (stderr_file::puts): Update. | |
7685 | * gdb/ui-file.h (gdb_flush): Rename to... | |
7686 | (ui_file_flush): ...this. | |
7687 | * gdb/utils.c (gdb_flush): Add function. | |
7688 | * gdb/utils.h (gdb_flush): Add declaration. | |
faa17681 | 7689 | |
5abbbe1d TT |
7690 | 2020-02-07 Tom Tromey <tromey@adacore.com> |
7691 | ||
7692 | PR breakpoints/24915: | |
7693 | * source.c (find_and_open_source): Do not check basenames_may_differ. | |
7694 | ||
919adfe8 TT |
7695 | 2020-02-07 Tom Tromey <tom@tromey.com> |
7696 | ||
7697 | * README: Update gdbserver documentation. | |
7698 | * gdbserver: Move to top level. | |
7699 | * configure.tgt (build_gdbserver): Remove. | |
7700 | * configure.ac: Remove --enable-gdbserver. | |
7701 | * configure: Rebuild. | |
7702 | * Makefile.in (distclean): Don't mention gdbserver. | |
7703 | ||
1d5d29e7 SV |
7704 | 2020-02-06 Shahab Vahedi <shahab@synopsys.com> |
7705 | ||
7706 | * source-cache.c (source_cache::ensure): Surround | |
7707 | get_plain_source_lines with a try/catch. | |
7708 | (source_cache::get_line_charpos): Get rid of try/catch | |
7709 | and only check for the return value of "ensure". | |
7710 | * tui/tui-source.c (tui_source_window::set_contents): | |
7711 | Simplify "nlines" calculation. | |
7712 | ||
6eb1129c SV |
7713 | 2020-02-06 Shahab Vahedi <shahab@synopsys.com> |
7714 | ||
7715 | * MAINTAINERS (Write After Approval): Add myself. | |
7716 | ||
c6a42d11 CB |
7717 | 2020-02-05 Christian Biesinger <cbiesinger@google.com> |
7718 | ||
7719 | * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class | |
7720 | function call. | |
7721 | ||
c8ecdda6 CB |
7722 | 2020-02-05 Christian Biesinger <cbiesinger@google.com> |
7723 | ||
7724 | * ppc-nbsd-tdep.h: Fix macro name in #endif comment. | |
7725 | ||
f6480e70 MR |
7726 | 2020-02-05 Maciej W. Rozycki <macro@wdc.com> |
7727 | ||
7728 | * nat/riscv-linux-tdesc.h: New file. | |
7729 | * nat/riscv-linux-tdesc.c: New file, taking code from... | |
7730 | * riscv-linux-nat.c (riscv_linux_nat_target::read_description): | |
7731 | ... here. | |
7732 | * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to | |
7733 | NATDEPFILES. | |
7734 | ||
dcc9fbc6 AB |
7735 | 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com> |
7736 | ||
7737 | * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that | |
7738 | we don't set the fake simulator ptid to the null_ptid. | |
7739 | ||
719546c4 SM |
7740 | 2020-02-03 Simon Marchi <simon.marchi@efficios.com> |
7741 | ||
7742 | * fork-child.c (gdb_startup_inferior): Use bool instead of int. | |
7743 | * gdbthread.h (class thread_info) <resumed>: Likewise. | |
7744 | * infrun.c (resume_1): Likewise. | |
7745 | (proceed): Likewise. | |
7746 | (infrun_thread_stop_requested): Likewise. | |
7747 | (stop_all_threads): Likewise. | |
7748 | (handle_inferior_event): Likewise. | |
7749 | (restart_threads): Likewise. | |
7750 | (finish_step_over): Likewise. | |
7751 | (keep_going_stepped_thread): Likewise. | |
7752 | * linux-nat.c (attach_proc_task_lwp_callback): Likewise. | |
7753 | (linux_handle_extended_wait): Likewise. | |
7754 | * record-btrace.c (get_thread_current_frame_id): Likewise. | |
7755 | * record-full.c (record_full_wait_1): Likewise. | |
7756 | * remote.c (remote_target::process_initial_stop_replies): Likewise. | |
7757 | * target.c (target_resume): Likewise. | |
7758 | * thread.c (set_running_thread): Likewise. | |
7759 | ||
e409c542 AKS |
7760 | 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com> |
7761 | ||
7762 | * f-valprint.c (f77_print_array_1): Changed datatype of index | |
7763 | variable to LONGEST from int to enable it to contain bound | |
7764 | values correctly. | |
7765 | ||
ee98c0da MR |
7766 | 2020-02-03 Maciej W. Rozycki <macro@wdc.com> |
7767 | ||
7768 | * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro. | |
7769 | (supply_fpregset_regnum, fill_fpregset): Handle regset buffer | |
7770 | offsets according to FLEN determined. | |
7771 | (riscv_linux_nat_target::read_description): Determine FLEN | |
7772 | dynamically. | |
7773 | (riscv_linux_nat_target::fetch_registers): Size regset buffer | |
7774 | according to FLEN determined. | |
7775 | (riscv_linux_nat_target::store_registers): Likewise. | |
7776 | ||
aa66aac4 SV |
7777 | 2020-02-01 Shahab Vahedi <shahab@synopsys.com> |
7778 | ||
7779 | * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0 | |
7780 | when reg->group is empty and reggroup is not. | |
7781 | ||
fd9faca8 TT |
7782 | 2020-01-31 Tom Tromey <tromey@adacore.com> |
7783 | ||
7784 | * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior): | |
7785 | Call beneath target's mourn_inferior after unpushing. | |
7786 | ||
42330a68 AB |
7787 | 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com> |
7788 | ||
7789 | PR tui/9765 | |
7790 | * tui/tui-disasm.c (tui_find_disassembly_address): If we don't | |
7791 | have enough lines to fill the screen, still return the lowest | |
7792 | address we found. | |
7793 | ||
7a27a45b AB |
7794 | 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com> |
7795 | ||
7796 | * tui/tui-win.c (_initialize_tui_win): Update help text for '+', | |
7797 | '-', '<', and '>' commands. | |
7798 | ||
c47f70e2 PA |
7799 | 2020-01-29 Pedro Alves <palves@redhat.com> |
7800 | Sergio Durigan Junior <sergiodj@redhat.com> | |
7801 | ||
7802 | * infcmd.c (construct_inferior_arguments): Assert that | |
7803 | 'argc' is greater than 0. | |
7804 | ||
5133a315 LM |
7805 | 2020-01-29 Luis Machado <luis.machado@linaro.org> |
7806 | ||
7807 | * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f. | |
7808 | (BRK_INSN_MASK): Define to 0xd4200000. | |
7809 | (aarch64_program_breakpoint_here_p): New function. | |
7810 | (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook. | |
7811 | * arch-utils.c (default_program_breakpoint_here_p): Moved from | |
7812 | breakpoint.c. | |
7813 | * arch-utils.h (default_program_breakpoint_here_p): Moved from | |
7814 | breakpoint.h | |
7815 | * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and | |
7816 | call gdbarch_program_breakpoint_here_p. | |
7817 | (program_breakpoint_here): Moved to arch-utils.c, renamed to | |
7818 | default_program_breakpoint_here_p, changed return type to bool and | |
7819 | simplified. | |
7820 | * breakpoint.h (program_breakpoint_here): Moved prototype to | |
7821 | arch-utils.h, renamed to default_program_breakpoint_here_p and changed | |
7822 | return type to bool. | |
7823 | * gdbarch.c: Regenerate. | |
7824 | * gdbarch.h: Regenerate. | |
7825 | * gdbarch.sh (program_breakpoint_here_p): New method. | |
7826 | * infrun.c (handle_signal_stop): Call | |
7827 | gdbarch_program_breakpoint_here_p. | |
7828 | ||
168f8c6b TT |
7829 | 2020-01-26 Tom Tromey <tom@tromey.com> |
7830 | ||
7831 | * ctfread.c (struct ctf_fp_info): Reindent. | |
7832 | (_initialize_ctfread): Remove. | |
7833 | ||
128a391f TT |
7834 | 2020-01-26 Tom Tromey <tom@tromey.com> |
7835 | ||
7836 | * psymtab.c (partial_map_expand_apply) | |
7837 | (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol) | |
7838 | (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab) | |
7839 | (psym_print_stats, psym_expand_symtabs_for_function) | |
7840 | (psym_map_symbol_filenames, psym_map_matching_symbols) | |
7841 | (psym_expand_symtabs_matching) | |
7842 | (partial_symtab::read_dependencies, maintenance_info_psymtabs) | |
7843 | (maintenance_check_psymtabs): Use new methods. | |
7844 | * psympriv.h (struct partial_symtab) <readin_p, | |
7845 | get_compunit_symtab>: New methods. | |
7846 | <readin, compunit_symtab>: Remove members. | |
7847 | (struct standard_psymtab): New. | |
7848 | (struct legacy_psymtab): Derive from standard_psymtab. | |
7849 | * dwarf2read.h (struct dwarf2_psymtab): Derive from | |
7850 | standard_psymtab. | |
7851 | * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab. | |
7852 | ||
0494dbec TT |
7853 | 2020-01-26 Tom Tromey <tom@tromey.com> |
7854 | ||
7855 | * xcoffread.c (xcoff_psymtab_to_symtab_1): Call | |
7856 | read_dependencies. Add assert. | |
7857 | * psymtab.c (partial_symtab::read_dependencies): New method. | |
7858 | * psympriv.h (struct partial_symtab) <read_dependencies>: New | |
7859 | method. | |
7860 | * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies. | |
7861 | * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call | |
7862 | read_dependencies. | |
7863 | * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies. | |
7864 | Add assert. | |
7865 | ||
8566b89b TT |
7866 | 2020-01-26 Tom Tromey <tom@tromey.com> |
7867 | ||
7868 | * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order. | |
7869 | Call expand_psymtab. | |
7870 | (xcoff_read_symtab): Call expand_psymtab. | |
7871 | (xcoff_start_psymtab, xcoff_end_psymtab): Set | |
7872 | legacy_expand_psymtab. | |
7873 | * psympriv.h (struct partial_symtab) <expand_psymtab>: New | |
7874 | method. | |
7875 | (struct legacy_psymtab) <expand_psymtab>: Implement. | |
7876 | <legacy_expand_psymtab>: New member. | |
7877 | * mdebugread.c (mdebug_read_symtab): Call expand_psymtab. | |
7878 | (parse_partial_symbols): Set legacy_expand_psymtab. | |
7879 | (psymtab_to_symtab_1): Change argument order. Call | |
7880 | expand_psymtab. | |
7881 | (new_psymtab): Set legacy_expand_psymtab. | |
7882 | * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare. | |
7883 | * dwarf2read.c (dwarf2_psymtab::read_symtab): Call | |
7884 | expand_psymtab. | |
7885 | (dwarf2_psymtab::expand_psymtab): Rename from | |
7886 | psymtab_to_symtab_1. Call expand_psymtab. | |
7887 | * dbxread.c (start_psymtab): Set legacy_expand_psymtab. | |
7888 | (dbx_end_psymtab): Likewise. | |
7889 | (dbx_psymtab_to_symtab_1): Change argument order. Call | |
7890 | expand_psymtab. | |
7891 | (dbx_read_symtab): Call expand_psymtab. | |
7892 | * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare. | |
7893 | (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab. | |
7894 | (ctf_psymtab::read_symtab): Call expand_psymtab. | |
7895 | ||
077cbab2 TT |
7896 | 2020-01-26 Tom Tromey <tom@tromey.com> |
7897 | ||
7898 | * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert. | |
7899 | * psymtab.c (psymtab_to_symtab): Print verbose "Reading" | |
7900 | messages. | |
7901 | * mdebugread.c (mdebug_read_symtab): Remove prints. | |
7902 | * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add | |
7903 | assert. | |
7904 | * dbxread.c (dbx_read_symtab): Remove prints. Add assert. | |
7905 | ||
891813be TT |
7906 | 2020-01-26 Tom Tromey <tom@tromey.com> |
7907 | ||
7908 | * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab) | |
7909 | (xcoff_psymtab_to_symtab_1, xcoff_read_symtab) | |
7910 | (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use | |
7911 | legacy_symtab. | |
7912 | * stabsread.h (dbx_end_psymtab): Use legacy_symtab. | |
7913 | * psymtab.c (psymtab_to_symtab): Call method. | |
7914 | (dump_psymtab): Update. | |
7915 | * psympriv.h (struct partial_symtab): Add virtual destructor. | |
7916 | <read_symtab>: New method. | |
7917 | (struct legacy_symtab): New. | |
7918 | * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab. | |
7919 | (struct pst_map) <pst>: Now a legacy_psymtab. | |
7920 | (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1) | |
7921 | (new_psymtab): Use legacy_psymtab. | |
7922 | * dwarf2read.h (struct dwarf2_psymtab): New. | |
7923 | (struct dwarf2_per_cu_data) <psymtab>: Use it. | |
7924 | * dwarf2read.c (dwarf2_create_include_psymtab) | |
7925 | (dwarf2_build_include_psymtabs, create_type_unit_group) | |
7926 | (create_partial_symtab, process_psymtab_comp_unit_reader) | |
7927 | (build_type_psymtabs_reader, build_type_psymtab_dependencies) | |
7928 | (set_partial_user): Use dwarf2_psymtab. | |
7929 | (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab. | |
7930 | (psymtab_to_symtab_1, process_full_comp_unit) | |
7931 | (process_full_type_unit, dwarf2_ranges_read) | |
7932 | (dwarf2_get_pc_bounds, psymtab_include_file_name) | |
7933 | (dwarf_decode_lines): Use dwarf2_psymtab. | |
7934 | * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab. | |
7935 | (add_address_entry_worker, write_one_signatured_type) | |
7936 | (recursively_count_psymbols, recursively_write_psymbols) | |
7937 | (write_one_signatured_type, psyms_seen_size, write_gdbindex) | |
7938 | (write_debug_names): Likewise. | |
7939 | * dbxread.c (struct header_file_location): Take a legacy_psymtab. | |
7940 | <pst>: Now a legacy_psymtab. | |
7941 | (find_corresponding_bincl_psymtab): Return a legacy_psymtab. | |
7942 | (read_dbx_symtab, start_psymtab, dbx_end_psymtab) | |
7943 | (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab. | |
7944 | * ctfread.c (struct ctf_psymtab): New. | |
7945 | (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a | |
7946 | ctf_psymtab. | |
7947 | (ctf_psymtab::read_symtab): Rename from ctf_read_symtab. | |
7948 | (create_partial_symtab): Return a ctf_psymtab. | |
7949 | (scan_partial_symbols): Update. | |
7950 | ||
c3693a1d TT |
7951 | 2020-01-26 Tom Tromey <tom@tromey.com> |
7952 | ||
7953 | * xcoffread.c (xcoff_start_psymtab): Use new. | |
7954 | * psymtab.c (partial_symtab::partial_symtab): New constructor, | |
7955 | renamed from start_psymtab_common. | |
7956 | * psympriv.h (struct partial_symtab): Add new constructor. | |
7957 | (start_psymtab_common): Don't declare. | |
7958 | * mdebugread.c (parse_partial_symbols): Use new. | |
7959 | * dwarf2read.c (create_partial_symtab): Use new. | |
7960 | * dbxread.c (start_psymtab): Use new. | |
7961 | * ctfread.c (create_partial_symtab): Use new. | |
7962 | ||
32caafd0 TT |
7963 | 2020-01-26 Tom Tromey <tom@tromey.com> |
7964 | ||
7965 | * xcoffread.c (xcoff_end_psymtab): Use new. | |
7966 | * psymtab.c (start_psymtab_common): Use new. | |
7967 | (partial_symtab::partial_symtab): Rename from allocate_psymtab. | |
7968 | Update. | |
7969 | * psympriv.h (struct partial_symtab): Add parameters to | |
7970 | constructor. Don't inline. | |
7971 | (allocate_psymtab): Don't declare. | |
7972 | * mdebugread.c (new_psymtab): Use new. | |
7973 | * dwarf2read.c (dwarf2_create_include_psymtab): Use new. | |
7974 | * dbxread.c (dbx_end_psymtab): Use new. | |
7975 | ||
abaa2f23 TT |
7976 | 2020-01-26 Tom Tromey <tom@tromey.com> |
7977 | ||
7978 | * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from | |
7979 | allocate_psymtab. Update documentation. | |
7980 | * psymtab.c (psymtab_storage::install_psymtab): Rename from | |
7981 | allocate_psymtab. Do not use new. | |
7982 | (allocate_psymtab): Use new. Update. | |
7983 | ||
6d94535f TT |
7984 | 2020-01-26 Tom Tromey <tom@tromey.com> |
7985 | ||
7986 | * xcoffread.c (xcoff_psymtab_to_symtab_1): Update. | |
7987 | * psymtab.c (psym_print_stats): Update. | |
7988 | * psympriv.h (struct partial_symtab) <readin, | |
7989 | psymtabs_addrmap_supported, anonymous>: Now bool. | |
7990 | * mdebugread.c (psymtab_to_symtab_1): Update. | |
7991 | * dwarf2read.c (create_type_unit_group, create_partial_symtab) | |
7992 | (build_type_psymtabs_reader, psymtab_to_symtab_1) | |
7993 | (process_full_comp_unit, process_full_type_unit): Update. | |
7994 | * dbxread.c (dbx_psymtab_to_symtab_1): Update. | |
7995 | * ctfread.c (psymtab_to_symtab): Update. | |
7996 | ||
6f17252b TT |
7997 | 2020-01-26 Tom Tromey <tom@tromey.com> |
7998 | ||
7999 | * mdebugread.c (parse_partial_symbols): Use discard_psymtab. | |
8000 | * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove. | |
8001 | * psymtab.c (psymtab_storage): Delete psymtabs. | |
8002 | (psymtab_storage::allocate_psymtab): Use new. | |
8003 | (psymtab_storage::discard_psymtab): Use delete. | |
8004 | * psympriv.h (struct partial_symtab): Add constructor and | |
8005 | initializers. | |
8006 | ||
f6f1cebc TT |
8007 | 2020-01-26 Tom Tromey <tom@tromey.com> |
8008 | ||
8009 | * machoread.c: Do not include psympriv.h. | |
8010 | ||
e47e48f6 PW |
8011 | 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
8012 | ||
8013 | * NEWS: Mention the new option and the set/show commands. | |
8014 | ||
a2fedca9 PW |
8015 | 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
8016 | ||
8017 | * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode) | |
8018 | (show_exec_file_mismatch_command, set_exec_file_mismatch_command) | |
8019 | (validate_exec_file): New variables, enums, functions. | |
8020 | (exec_file_locate_attach, print_section_info): Style the filenames. | |
8021 | (_initialize_exec): Install show_exec_file_mismatch_command and | |
8022 | set_exec_file_mismatch_command. | |
8023 | * gdbcore.h (validate_exec_file): Declare. | |
8024 | * infcmd.c (attach_command): Call validate_exec_file. | |
8025 | * remote.c ( remote_target::remote_add_inferior): Likewise. | |
8026 | ||
7ffa82e1 AB |
8027 | 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com> |
8028 | ||
8029 | * frame.c (find_frame_sal): Move call to get_next_frame into more | |
8030 | inner scope. | |
8031 | * inline-frame.c (inilne_state) <inline_state>: Update argument | |
8032 | types. | |
8033 | (inilne_state) <skipped_symbol>: Rename to... | |
8034 | (inilne_state) <skipped_symbols>: ...this, and change to a vector. | |
8035 | (skip_inline_frames): Build vector of skipped symbols and use this | |
8036 | to reate the inline_state. | |
8037 | (inline_skipped_symbol): Add a comment and some assertions, fetch | |
8038 | skipped symbol from the list. | |
8039 | ||
3d92a3e3 AB |
8040 | 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com> |
8041 | ||
8042 | * buildsym.c (lte_is_less_than): Delete. | |
8043 | (buildsym_compunit::end_symtab_with_blockvector): Create local | |
8044 | lambda function to sort line table entries, and use | |
8045 | std::stable_sort instead of std::sort. | |
8046 | * symtab.c (find_pc_sect_line): Skip backward over end of sequence | |
8047 | markers when looking for a previous line. | |
8048 | ||
94a72be7 AB |
8049 | 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com> |
8050 | ||
8051 | * dwarf2read.c (lnp_state_machine::record_line): Include | |
8052 | end_sequence parameter in debug print out. Record the line if we | |
8053 | are at an end_sequence marker even if it's not the start of a | |
8054 | statement. | |
8055 | * symmisc.c (maintenance_print_one_line_table): Print end of | |
8056 | sequence markers with 'END' not '0'. | |
8057 | ||
53af73bf PA |
8058 | 2020-01-24 Pedro Alves <palves@redhat.com> |
8059 | ||
8060 | PR gdb/25410 | |
8061 | * thread.c (scoped_restore_current_thread::restore): Use | |
8062 | switch_to_inferior_no_thread. | |
8063 | * exec.c: Include "progspace-and-thread.h". | |
8064 | (add_target_sections, remove_target_sections): | |
8065 | scoped_restore_current_pspace_and_thread instead of | |
8066 | scoped_restore_current_thread. | |
8067 | * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace | |
8068 | and aspace to the inferior before calling clone_program_space. | |
8069 | Remove stale comment. | |
8070 | ||
3050c6f4 CB |
8071 | 2020-01-24 Christian Biesinger <cbiesinger@google.com> |
8072 | ||
8073 | * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to... | |
8074 | (arm_netbsd_nat_target::fetch_registers): ...this. | |
8075 | (arm_nbsd_nat_target::store_registers): Rename to... | |
8076 | (arm_netbsd_nat_target::store_registers): ...this. | |
8077 | ||
73685c7e CB |
8078 | 2020-01-24 Christian Biesinger <cbiesinger@google.com> |
8079 | ||
8080 | * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of | |
8081 | register_t. | |
8082 | ||
89203d40 CB |
8083 | 2020-01-24 Christian Biesinger <cbiesinger@google.com> |
8084 | ||
8085 | * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections): | |
8086 | Update comment. | |
8087 | * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections): | |
8088 | Likewise. | |
8089 | * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise. | |
8090 | * gdbcore.h (deprecated_add_core_fns): Update comment to point to | |
8091 | the correct replacement (iterate_over_regset_sections). | |
8092 | * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections): | |
8093 | Update comment. | |
8094 | ||
1ba1ac88 AB |
8095 | 2020-01-24 Graham Markall <graham.markall@embecosm.com> |
8096 | ||
8097 | PR gdb/23718 | |
8098 | * gdb/python/python.c (execute_gdb_command): Call | |
8099 | async_enable_stdin in catch block. | |
8100 | ||
f3364a6d AB |
8101 | 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com> |
8102 | ||
8103 | * event-loop.c (start_event_loop): Wrap async_enable_stdin with | |
8104 | SWITCH_THRU_ALL_UIS. | |
8105 | ||
733d0a67 AB |
8106 | 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com> |
8107 | ||
8108 | PR tui/9765 | |
8109 | * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header | |
8110 | comment, add extra parameter, and update to store previous symbol | |
8111 | when appropriate. | |
8112 | * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment, | |
8113 | add extra parameter. | |
8114 | * tui/tui-disasm.c (tui_disassemble): Update header comment, | |
8115 | remove unneeded parameter, add try/catch around gdb_print_insn, | |
8116 | rewrite to add items to asm_lines vector. | |
8117 | (tui_find_backward_disassembly_start_address): New function. | |
8118 | (tui_find_disassembly_address): Updated throughout. | |
8119 | (tui_disasm_window::set_contents): Update for changes to | |
8120 | tui_disassemble. | |
8121 | (tui_disasm_window::do_scroll_vertical): No need to adjust the | |
8122 | number of lines to scroll. | |
8123 | ||
b3b3bada SM |
8124 | 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca> |
8125 | ||
8126 | * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up. | |
8127 | (SECT_OFF_DATA): Likewise. | |
8128 | (SECT_OFF_RODATA): Likewise. | |
8129 | (SECT_OFF_TEXT): Likewise. | |
8130 | (SECT_OFF_BSS): Likewise. | |
8131 | (struct objfile) <text_section_offset, data_section_offset>: New | |
8132 | methods. | |
8133 | * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use | |
8134 | objfile::text_section_offset. | |
8135 | * coff-pe-read.c (add_pe_forwarded_sym): Likewise. | |
8136 | * coffread.c (coff_symtab_read): Likewise. | |
8137 | (enter_linenos): Likewise. | |
8138 | (process_coff_symbol): Likewise. | |
8139 | * ctfread.c (get_objfile_text_range): Likewise. | |
8140 | * dtrace-probe.c (dtrace_probe::get_relocated_address): | |
8141 | Use objfile::data_section_offset. | |
8142 | * dwarf2-frame.c (execute_cfa_program): Use | |
8143 | objfile::text_section_offset. | |
8144 | (dwarf2_frame_find_fde): Likewise. | |
8145 | * dwarf2read.c (create_addrmap_from_index): Likewise. | |
8146 | (create_addrmap_from_aranges): Likewise. | |
8147 | (dw2_find_pc_sect_compunit_symtab): Likewise. | |
8148 | (process_psymtab_comp_unit_reader): Likewise. | |
8149 | (add_partial_symbol): Likewise. | |
8150 | (add_partial_subprogram): Likewise. | |
8151 | (process_full_comp_unit): Likewise. | |
8152 | (read_file_scope): Likewise. | |
8153 | (read_func_scope): Likewise. | |
8154 | (read_lexical_block_scope): Likewise. | |
8155 | (read_call_site_scope): Likewise. | |
8156 | (dwarf2_rnglists_process): Likewise. | |
8157 | (dwarf2_ranges_process): Likewise. | |
8158 | (dwarf2_ranges_read): Likewise. | |
8159 | (dwarf_decode_lines_1): Likewise. | |
8160 | (new_symbol): Likewise. | |
8161 | (dwarf2_fetch_die_loc_sect_off): Likewise. | |
8162 | (dwarf2_per_cu_text_offset): Likewise. | |
8163 | * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise. | |
8164 | * hppa-tdep.c (read_unwind_info): Likewise. | |
8165 | * ia64-tdep.c (ia64_find_unwind_table): Likewise. | |
8166 | * psympriv.h (struct partial_symtab): Likewise. | |
8167 | * psymtab.c (find_pc_sect_psymtab): Likewise. | |
8168 | * solib-svr4.c (enable_break): Likewise. | |
8169 | * stap-probe.c (relocate_address): Use | |
8170 | objfile::data_section_offset. | |
8171 | * xcoffread.c (enter_line_range): Use | |
8172 | objfile::text_section_offset. | |
8173 | (read_xcoff_symtab): Likewise. | |
8174 | ||
ab53f382 SM |
8175 | 2020-01-23 Simon Marchi <simon.marchi@efficios.com> |
8176 | ||
8177 | * darwin-nat.c (darwin_nat_target::wait_1): Move `inf` | |
8178 | declaration to narrower scopes. | |
8179 | ||
e7eee665 SM |
8180 | 2020-01-23 Simon Marchi <simon.marchi@efficios.com> |
8181 | ||
8182 | * darwin-nat.h (struct darwin_exception_msg, enum | |
8183 | darwin_msg_state, struct darwin_thread_info, darwin_thread_t): | |
8184 | Move up. | |
8185 | (class darwin_nat_target) <wait_1, check_new_threads, | |
8186 | decode_exception_message, decode_message, stop_inferior, | |
8187 | init_thread_list, ptrace_him, cancel_breakpoint>: Declare. | |
8188 | * darwin-nat.c (darwin_check_new_threads): Rename to... | |
8189 | (darwin_nat_target::check_new_threads): ... this. | |
8190 | (darwin_suspend_inferior_it): Remove. | |
8191 | (darwin_decode_exception_message): Rename to... | |
8192 | (darwin_nat_target::decode_exception_message): ... this. | |
8193 | (darwin_nat_target::resume): Pass target to find_inferior_ptid. | |
8194 | (darwin_decode_message): Rename to... | |
8195 | (darwin_nat_target::decode_message): ... this. | |
8196 | (cancel_breakpoint): Rename to... | |
8197 | (darwin_nat_target::cancel_breakpoint): ... this. | |
8198 | (darwin_wait): Rename to... | |
8199 | (darwin_nat_target::wait_1): ... this. Use range-based for loop | |
8200 | instead of iterate_over_inferiors. | |
8201 | (darwin_nat_target::wait): Call wait_1 instead of darwin_wait. | |
8202 | (darwin_stop_inferior): Rename to... | |
8203 | (darwin_nat_target::stop_inferior): ... this. | |
8204 | (darwin_nat_target::kill): Call wait_1 instead of darwin_wait. | |
8205 | (darwin_init_thread_list): Rename to... | |
8206 | (darwin_nat_target::init_thread_list): ... this. | |
8207 | (darwin_ptrace_him): Rename to... | |
8208 | (darwin_nat_target::ptrace_him): ... this. | |
8209 | (darwin_nat_target::create_inferior): Pass lambda function to | |
8210 | fork_inferior. | |
8211 | (darwin_nat_target::detach): Call stop_inferior instead of | |
8212 | darwin_stop_inferior. | |
8213 | * fork-inferior.h (fork_inferior): Change init_trace_fun | |
8214 | parameter to gdb::function_view. | |
8215 | * fork-inferior.c (fork_inferior): Likewise. | |
8216 | ||
c162ed3e HD |
8217 | 2020-01-23 Hannes Domani <ssbssa@yahoo.de> |
8218 | ||
8219 | * i386-cygwin-tdep.c (core_process_module_section): Update. | |
8220 | * windows-nat.c (struct lm_info_windows): Add text_offset. | |
8221 | (windows_xfer_shared_libraries): Update. | |
8222 | * windows-tdep.c (windows_xfer_shared_library): | |
8223 | Add text_offset_cached argument. | |
8224 | * windows-tdep.h (windows_xfer_shared_library): Update. | |
8225 | ||
a1237872 SM |
8226 | 2020-01-21 Simon Marchi <simon.marchi@efficios.com> |
8227 | ||
8228 | * gdbarch.sh: Add declaration for _initialize_gdbarch. | |
8229 | ||
b3ee6dd9 SM |
8230 | 2020-01-21 Simon Marchi <simon.marchi@efficios.com> |
8231 | ||
8232 | * remote-sim.c (check_for_duplicate_sim_descriptor): Remove. | |
8233 | (get_sim_inferior_data): Remove use of iterate_over_inferiors, | |
8234 | replace with range-based for. | |
8235 | (gdbsim_interrupt_inferior): Remove. | |
8236 | (gdbsim_target::interrupt): Replace iterate_over_inferiors use | |
8237 | with a range-based for. Inline code from | |
8238 | gdbsim_interrupt_inferior. | |
8239 | ||
f9fac3c8 SM |
8240 | 2020-01-21 Simon Marchi <simon.marchi@efficios.com> |
8241 | ||
8242 | * infrun.c (proceed): Fix indentation. | |
8243 | ||
f6474de9 TT |
8244 | 2020-01-21 Tom Tromey <tromey@adacore.com> |
8245 | ||
8246 | * source-cache.c (source_cache::ensure): Call ext_lang_colorize. | |
8247 | * python/python.c (python_extension_ops): Update. | |
8248 | (gdbpy_colorize): New function. | |
8249 | * python/lib/gdb/__init__.py (colorize): New function. | |
8250 | * extension.h (ext_lang_colorize): Declare. | |
8251 | * extension.c (ext_lang_colorize): New function. | |
8252 | * extension-priv.h (struct extension_language_ops) <colorize>: New | |
8253 | member. | |
8254 | * cli/cli-style.c (_initialize_cli_style): Update help text. | |
8255 | ||
f0c702d4 LM |
8256 | 2020-01-21 Luis Machado <luis.machado@linaro.org> |
8257 | ||
8258 | * aarch64-tdep.c (struct aarch64_displaced_step_closure) | |
8259 | <cond>: Change type to bool. | |
8260 | (aarch64_displaced_step_b_cond): Update cond to use bool type. | |
8261 | (aarch64_displaced_step_cb): Likewise. | |
8262 | (aarch64_displaced_step_tb): Likewise. | |
8263 | ||
1ab139e5 LM |
8264 | 2020-01-21 Luis Machado <luis.machado@linaro.org> |
8265 | ||
8266 | * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging | |
8267 | output. | |
8268 | ||
0c271889 LM |
8269 | 2020-01-21 Luis Machado <luis.machado@linaro.org> |
8270 | ||
8271 | * aarch64-tdep.c (struct aarch64_displaced_step_closure ) | |
8272 | <pc_adjust>: Adjust the documentation. | |
8273 | (aarch64_displaced_step_fixup): Check if PC really moved before | |
8274 | adjusting it. | |
8275 | ||
4d89c1c7 TT |
8276 | 2020-01-19 Tom Tromey <tom@tromey.com> |
8277 | ||
8278 | * disasm.c (~gdb_disassembler): New destructor. | |
8279 | (gdb_buffered_insn_length): Call disassemble_free_target. | |
8280 | * disasm.h (class gdb_disassembler): Declare destructor. Use | |
8281 | DISABLE_COPY_AND_ASSIGN. | |
8282 | ||
c0ab21c2 TT |
8283 | 2020-01-19 Tom Tromey <tom@tromey.com> |
8284 | ||
8285 | * dwarf2read.c (abbrev_table_up): Move typedef earlier. | |
8286 | (die_reader_func_ftype): Remove. | |
8287 | (cutu_reader): New class. | |
8288 | (dw2_get_file_names_reader): Remove "data" parameter. | |
8289 | (dw2_get_file_names): Use cutu_reader. | |
8290 | (create_debug_type_hash_table): Update. | |
8291 | (read_cutu_die_from_dwo): Update comment. | |
8292 | (lookup_dwo_unit): Add dwo_name parameter. | |
8293 | (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove | |
8294 | die_reader_func_ftype and data parameters. | |
8295 | (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies. | |
8296 | Remove die_reader_func_ftype and data parameters. | |
8297 | (~cutu_reader): New; from init_cutu_and_read_dies. | |
8298 | (cutu_reader::cutu_reader): Rename from | |
8299 | init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype | |
8300 | and data parameters. | |
8301 | (init_cutu_and_read_dies_simple): Remove. | |
8302 | (struct process_psymtab_comp_unit_data): Remove. | |
8303 | (process_psymtab_comp_unit_reader): Remove data parameter; add | |
8304 | want_partial_unit and pretend_language parameters. | |
8305 | (process_psymtab_comp_unit): Use cutu_reader. | |
8306 | (build_type_psymtabs_reader): Remove data parameter. | |
8307 | (build_type_psymtabs_1): Use cutu_reader. | |
8308 | (process_skeletonless_type_unit): Likewise. | |
8309 | (load_partial_comp_unit_reader): Remove. | |
8310 | (load_partial_comp_unit): Use cutu_reader. | |
8311 | (load_full_comp_unit_reader): Remove. | |
8312 | (load_full_comp_unit): Use cutu_reader. | |
8313 | (struct create_dwo_cu_data): Remove. | |
8314 | (create_dwo_cu_reader): Remove datap parameter; add dwo_file and | |
8315 | dwo_unit parameters. | |
8316 | (create_cus_hash_table): Use cutu_reader. | |
8317 | (struct dwarf2_read_addr_index_data): Remove. | |
8318 | (dwarf2_read_addr_index_reader): Remove. | |
8319 | (dwarf2_read_addr_index): Use cutu_reader. | |
8320 | (read_signatured_type_reader): Remove. | |
8321 | (read_signatured_type): Use cutu_reader. | |
8322 | ||
45bbae5c TT |
8323 | 2020-01-19 Tom Tromey <tom@tromey.com> |
8324 | ||
8325 | * tui/tui.c (tui_show_assembly): Use tui_suppress_output. | |
8326 | * tui/tui-wingeneral.h (class tui_suppress_output): New. | |
8327 | (tui_wrefresh): Declare. | |
8328 | * tui/tui-wingeneral.c (suppress_output): New global. | |
8329 | (tui_suppress_output, ~tui_suppress_output): New constructor and | |
8330 | destructor. | |
8331 | (tui_wrefresh): New function. | |
8332 | (tui_gen_win_info::refresh_window): Use tui_wrefresh. | |
8333 | (tui_gen_win_info::make_window): Call wnoutrefresh when needed. | |
8334 | * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare | |
8335 | method. | |
8336 | * tui/tui-regs.c (tui_data_window::erase_data_content): Call | |
8337 | tui_wrefresh. | |
8338 | (tui_data_window::no_refresh): New method. | |
8339 | (tui_data_item_window::refresh_window): Call tui_wrefresh. | |
8340 | (tui_reg_command): Use tui_suppress_output | |
8341 | * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output. | |
8342 | * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New | |
8343 | method. | |
8344 | * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh. | |
8345 | ||
4f13c1c0 TT |
8346 | 2020-01-19 Tom Tromey <tom@tromey.com> |
8347 | ||
8348 | * tui/tui-winsource.c (tui_update_source_windows_with_line): | |
8349 | Handle case where symtab is null. | |
8350 | ||
fa47e446 SM |
8351 | 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca> |
8352 | ||
8353 | * linux-fork.c (one_fork_p): Simplify. | |
8354 | ||
26f42329 SM |
8355 | 2020-01-17 Simon Marchi <simon.marchi@efficios.com> |
8356 | ||
8357 | * top.c (struct qt_args): Remove. | |
8358 | (kill_or_detach): Change return type to void, replace `void *` | |
8359 | parameter with a proper one. | |
8360 | (print_inferior_quit_action): Likewise. | |
8361 | (quit_confirm): Use range-based for loop to iterate over inferiors. | |
8362 | (quit_force): Likewise. | |
8363 | ||
a9ac81b1 SM |
8364 | 2020-01-17 Simon Marchi <simon.marchi@efficios.com> |
8365 | ||
8366 | * mi/mi-main.c (run_one_inferior): Change return type to void, replace | |
8367 | `void *` parameter with proper parameters. | |
8368 | (mi_cmd_exec_run): Use range-based loop to iterate over inferiors. | |
8369 | (print_one_inferior): Change return type to void, replace `void *` | |
8370 | parameter with proper parameters. | |
8371 | (mi_cmd_list_thread_groups): Use range-based loop to iterate over | |
8372 | inferiors. | |
8373 | (get_other_inferior): Remove. | |
8374 | (mi_cmd_remove_inferior): Use range-based loop to iterate over | |
8375 | inferiors. | |
8376 | ||
788eca49 SM |
8377 | 2020-01-17 Simon Marchi <simon.marchi@efficios.com> |
8378 | ||
8379 | * mi/mi-interp.c (report_initial_inferior): Remove. | |
8380 | (mi_interp::init): Use range-based for to iterate over inferiors. | |
8381 | ||
d9bc85b6 SM |
8382 | 2020-01-17 Simon Marchi <simon.marchi@efficios.com> |
8383 | ||
8384 | * python/py-inferior.c (build_inferior_list): Remove. | |
8385 | (gdbpy_ref): Use range-based for loop to iterate over inferiors. | |
8386 | ||
40c94099 CB |
8387 | 2020-01-16 Christian Biesinger <cbiesinger@google.com> |
8388 | ||
8389 | * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown). | |
8390 | (btrace_stitch_trace): Likewise. | |
8391 | * charset.c (intermediate_encoding): Likewise (vaild). | |
8392 | * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown). | |
8393 | * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences). | |
8394 | * record-btrace.c (record_btrace_print_conf): Likewise (unkown). | |
8395 | ||
e0cdfe3c HD |
8396 | 2020-01-16 Hannes Domani <ssbssa@yahoo.de> |
8397 | ||
8398 | * windows-tdep.c (windows_get_tlb_type): | |
8399 | Add rtl_user_process_parameters type. | |
8400 | ||
790f1718 | 8401 | 2020-01-16 Pedro Alves <palves@redhat.com> |
aac66a4c | 8402 | Norbert Lange <nolange79@gmail.com> |
790f1718 PA |
8403 | |
8404 | PR build/24805 | |
8405 | * gdbsupport/gdb_proc_service.h (PS_EXPORT): New. | |
8406 | (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs) | |
8407 | (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue) | |
8408 | (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread) | |
8409 | (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs) | |
8410 | (ps_plog): Redeclare exported functions with default visibility. | |
8411 | ||
3112ed97 NA |
8412 | 2020-01-16 Nitika Achra <Nitika.Achra@amd.com> |
8413 | ||
8414 | * dwarf2loc.c (decode_debug_loclists_addresses): Handle | |
8415 | DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length. | |
8416 | ||
8dc3273e SM |
8417 | 2020-01-15 Simon Marchi <simon.marchi@efficios.com> |
8418 | ||
8419 | * infcmd.c (post_create_inferior): Use get_thread_regcache | |
8420 | instead of get_current_regcache. | |
8421 | ||
ff47f4f0 TT |
8422 | 2020-01-14 Tom Tromey <tom@tromey.com> |
8423 | ||
8424 | PR symtab/12535: | |
8425 | * python/python.c (gdbpy_decode_line): Treat empty string the same | |
8426 | as no argument. | |
8427 | ||
975f45b7 TT |
8428 | 2020-01-14 Tom Tromey <tom@tromey.com> |
8429 | ||
8430 | * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY). | |
8431 | ||
25e57356 TT |
8432 | 2020-01-14 Tom Tromey <tom@tromey.com> |
8433 | ||
8434 | * nat/linux-btrace.c: Don't include <config.h>. | |
8435 | * nat/linux-ptrace.c: Don't include <config.h>. | |
8436 | * nat/x86-linux-dregs.c: Don't include <config.h>. | |
8437 | ||
05ea2a05 TT |
8438 | 2020-01-14 Tom Tromey <tom@tromey.com> |
8439 | ||
8440 | * configure: Rebuild. | |
8441 | * configure.ac: Move many checks to ../gdbsupport/common.m4. | |
8442 | ||
01027315 TT |
8443 | 2020-01-14 Tom Tromey <tom@tromey.com> |
8444 | ||
8445 | * nat/x86-linux-dregs.c: Include configh.h. | |
8446 | * nat/linux-ptrace.c: Include configh.h. | |
8447 | * nat/linux-btrace.c: Include configh.h. | |
8448 | * defs.h: Include config.h, bfd.h. | |
8449 | * configure.ac: Don't source common.host. | |
8450 | (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files. | |
8451 | * configure: Rebuild. | |
8452 | * acinclude.m4: Update path. | |
8453 | * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables. | |
8454 | (CONFIG_SRC_SUBDIR): Remove gdbsupport. | |
8455 | (INTERNAL_CFLAGS_BASE): Add INCSUPPORT. | |
8456 | (CLIBS): Add LIBSUPPORT. | |
8457 | (CDEPS): Likewise. | |
8458 | (COMMON_SFILES): Remove gdbsupport files. | |
8459 | (HFILES_NO_SRCDIR): Likewise. | |
8460 | (stamp-version): Update path to create-version.sh. | |
8461 | (ALLDEPFILES): Remove gdbsupport files. | |
8462 | ||
b2ceabe8 TT |
8463 | 2020-01-14 Tom Tromey <tom@tromey.com> |
8464 | ||
8465 | * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and | |
8466 | USE_WIN32API when needed. | |
8467 | * configure.ac (USE_WIN32API): Don't define. | |
8468 | (WIN32LIBS): Use WIN32APILIBS. | |
8469 | * configure: Rebuild. | |
8470 | ||
25c51f71 TT |
8471 | 2020-01-14 Tom Tromey <tom@tromey.com> |
8472 | ||
8473 | * configure: Rebuild. | |
8474 | * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation. | |
8475 | ||
717c684d BE |
8476 | 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de> |
8477 | ||
8478 | * skip.c (skip_function_command): Make skip w/o arguments use the | |
8479 | name of the inlined function if pc is inside any inlined function. | |
8480 | ||
7da6a5b9 LM |
8481 | 2020-01-14 Luis Machado <luis.machado@linaro.org> |
8482 | ||
8483 | * inf-ptrace.c (inf_ptrace_target::resume): Update comments. | |
8484 | * infrun.c (resume_1): Likewise. | |
8485 | (handle_inferior_event): Remove stale comment. | |
8486 | * linux-nat.c (linux_nat_target::resume): Update comments. | |
8487 | (save_stop_reason): Likewise. | |
8488 | (linux_nat_filter_event): Likewise. | |
8489 | * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise. | |
8490 | ||
44e4c775 AB |
8491 | 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com> |
8492 | ||
8493 | * elfread.c (record_minimal_symbol): Set section index to 0 for | |
8494 | non-allocatable sections. | |
8495 | ||
18a8505e AT |
8496 | |
8497 | 2020-01-13 Ali Tamur <tamur@google.com> | |
8498 | ||
8499 | * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections. | |
8500 | (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base | |
8501 | to gdb::optional. Update comments. | |
8502 | (dwo_file): Update comments. | |
8503 | (read_attribute): Update API to take an additional out parameter, | |
8504 | need_reprocess. This is used to mark attributes that need other | |
8505 | attributes (e.g. str_offsets_base) for correct computation which may not | |
8506 | have been read yet. | |
8507 | (read_attribute_reprocess): New function declaration. | |
8508 | (read_addr_index): Likewise. | |
8509 | (read_dwo_str_index): Likewise. | |
8510 | (read_stub_str_index): Likewise. | |
8511 | (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section. | |
8512 | (lookup_addr_base): New function definition. | |
8513 | (lookup_ranges_base): Likewise. | |
8514 | (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base, | |
8515 | lookup_ranges_base. | |
8516 | (init_cutu_and_read_dies): Update comments. | |
8517 | (init_cutu_and_read_dies_no_follow): Change API to take parent compile | |
8518 | unit. This is used to inherit parent's str_offsets_base and addr_base. | |
8519 | Update comments. | |
8520 | (init_cutu_and_read_dies_simple): Reflect API changes. | |
8521 | (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx. | |
8522 | (create_cus_hash_table): Change API to take parent compile unit. | |
8523 | Reflect API changes. | |
8524 | (open_and_init_dwo_file): Reflect API changes. | |
8525 | (dwarf2_get_pc_bounds): Update comments. | |
8526 | (dwarf2_record_block_ranges): Likewise. | |
8527 | (read_full_die_1): Change implementation to reprocess attributes that | |
8528 | need str_offsets_base and addr_base. | |
8529 | (partial_die_info::read): Likewise. | |
8530 | (read_attribute_reprocess): New function definition. | |
8531 | (read_attribute_value): Change API to take an additional out parameter, | |
8532 | need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error | |
8533 | when a non-dwo compile unit has index based attributes. | |
8534 | (read_attribute): Reflect API changes. | |
8535 | (read_addr_index_1): Reflect API changes. Update comments. | |
8536 | (dwarf2_read_addr_index_data): Reflect API changes. | |
8537 | (dwarf2_read_addr_index): Likewise. | |
8538 | (read_str_index): Change API and implementation. This becomes a helper | |
8539 | to be used by the new string index related methods. Update error | |
8540 | message and comments. | |
8541 | (read_dwo_str_index): New function definition. | |
8542 | (read_stub_str_index): Likewise. | |
8543 | * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field. | |
8544 | * symfile.h (dwarf2_debug_sections): Likewise. | |
8545 | * xcoffread.c (dwarf2_debug_sections): Likewise. | |
8546 | ||
0cac9354 SM |
8547 | 2020-01-13 Simon Marchi <simon.marchi@efficios.com> |
8548 | ||
8549 | * gdbcore.h (struct core_fns) <core_read_registers>: Change | |
8550 | core_reg_sect type to gdb_byte *. | |
8551 | * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise. | |
8552 | * cris-tdep.c (fetch_core_registers): Likewise. | |
8553 | * corelow.c (core_target::get_core_register_section): Change | |
8554 | type of `contents` to gdb::byte_vector. | |
8555 | ||
9a6d629c AB |
8556 | 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com> |
8557 | ||
8558 | * tui/tui-wingeneral.c (box_win): Position the title in the center | |
8559 | of the border. | |
8560 | ||
d8b2f9e3 SM |
8561 | 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca> |
8562 | ||
8563 | * corelow.c (core_target::get_core_register_section): Use | |
8564 | std::vector instead of alloca. | |
8565 | ||
bb564c58 SM |
8566 | 2020-01-13 Simon Marchi <simon.marchi@efficios.com> |
8567 | ||
8568 | * warning.m4: Add -Wmissing-declarations to build_warnings. | |
8569 | * configure: Re-generate. | |
8570 | ||
6b366111 SM |
8571 | 2020-01-13 Simon Marchi <simon.marchi@efficios.com> |
8572 | ||
8573 | * python/python.c (init__gdb_module): Add declaration. | |
8574 | ||
6c265988 SM |
8575 | 2020-01-13 Simon Marchi <simon.marchi@efficios.com> |
8576 | ||
8577 | * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration. | |
8578 | * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration. | |
8579 | * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration. | |
8580 | * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration. | |
8581 | * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration. | |
8582 | * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration. | |
8583 | * ada-exp.y (_initialize_ada_exp): Add declaration. | |
8584 | * ada-lang.c (_initialize_ada_language): Add declaration. | |
8585 | * ada-tasks.c (_initialize_tasks): Add declaration. | |
8586 | * agent.c (_initialize_agent): Add declaration. | |
8587 | * aix-thread.c (_initialize_aix_thread): Add declaration. | |
8588 | * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration. | |
8589 | * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration. | |
8590 | * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration. | |
8591 | * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration. | |
8592 | * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration. | |
8593 | * alpha-tdep.c (_initialize_alpha_tdep): Add declaration. | |
8594 | * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration. | |
8595 | * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration. | |
8596 | * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration. | |
8597 | * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration. | |
8598 | * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration. | |
8599 | * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration. | |
8600 | * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration. | |
8601 | * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration. | |
8602 | * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration. | |
8603 | * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration. | |
8604 | * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration. | |
8605 | * amd64-tdep.c (_initialize_amd64_tdep): Add declaration. | |
8606 | * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration. | |
8607 | * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration. | |
8608 | * annotate.c (_initialize_annotate): Add declaration. | |
8609 | * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration. | |
8610 | * arc-tdep.c (_initialize_arc_tdep): Add declaration. | |
8611 | * arch-utils.c (_initialize_gdbarch_utils): Add declaration. | |
8612 | * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration. | |
8613 | * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration. | |
8614 | * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration. | |
8615 | * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration. | |
8616 | * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration. | |
8617 | * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration. | |
8618 | * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration. | |
8619 | * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration. | |
8620 | * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration. | |
8621 | * arm-tdep.c (_initialize_arm_tdep): Add declaration. | |
8622 | * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration. | |
8623 | * auto-load.c (_initialize_auto_load): Add declaration. | |
8624 | * auxv.c (_initialize_auxv): Add declaration. | |
8625 | * avr-tdep.c (_initialize_avr_tdep): Add declaration. | |
8626 | * ax-gdb.c (_initialize_ax_gdb): Add declaration. | |
8627 | * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration. | |
8628 | * bfin-tdep.c (_initialize_bfin_tdep): Add declaration. | |
8629 | * break-catch-sig.c (_initialize_break_catch_sig): Add declaration. | |
8630 | * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration. | |
8631 | * break-catch-throw.c (_initialize_break_catch_throw): Add declaration. | |
8632 | * breakpoint.c (_initialize_breakpoint): Add declaration. | |
8633 | * bsd-uthread.c (_initialize_bsd_uthread): Add declaration. | |
8634 | * btrace.c (_initialize_btrace): Add declaration. | |
8635 | * charset.c (_initialize_charset): Add declaration. | |
8636 | * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration. | |
8637 | * cli/cli-dump.c (_initialize_cli_dump): Add declaration. | |
8638 | * cli/cli-interp.c (_initialize_cli_interp): Add declaration. | |
8639 | * cli/cli-logging.c (_initialize_cli_logging): Add declaration. | |
8640 | * cli/cli-script.c (_initialize_cli_script): Add declaration. | |
8641 | * cli/cli-style.c (_initialize_cli_style): Add declaration. | |
8642 | * coff-pe-read.c (_initialize_coff_pe_read): Add declaration. | |
8643 | * coffread.c (_initialize_coffread): Add declaration. | |
8644 | * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration. | |
8645 | * compile/compile.c (_initialize_compile): Add declaration. | |
8646 | * complaints.c (_initialize_complaints): Add declaration. | |
8647 | * completer.c (_initialize_completer): Add declaration. | |
8648 | * copying.c (_initialize_copying): Add declaration. | |
8649 | * corefile.c (_initialize_core): Add declaration. | |
8650 | * corelow.c (_initialize_corelow): Add declaration. | |
8651 | * cp-abi.c (_initialize_cp_abi): Add declaration. | |
8652 | * cp-namespace.c (_initialize_cp_namespace): Add declaration. | |
8653 | * cp-support.c (_initialize_cp_support): Add declaration. | |
8654 | * cp-valprint.c (_initialize_cp_valprint): Add declaration. | |
8655 | * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration. | |
8656 | * cris-tdep.c (_initialize_cris_tdep): Add declaration. | |
8657 | * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration. | |
8658 | * csky-tdep.c (_initialize_csky_tdep): Add declaration. | |
8659 | * ctfread.c (_initialize_ctfread): Add declaration. | |
8660 | * d-lang.c (_initialize_d_language): Add declaration. | |
8661 | * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration. | |
8662 | * darwin-nat.c (_initialize_darwin_nat): Add declaration. | |
8663 | * dbxread.c (_initialize_dbxread): Add declaration. | |
8664 | * dcache.c (_initialize_dcache): Add declaration. | |
8665 | * disasm-selftests.c (_initialize_disasm_selftests): Add declaration. | |
8666 | * disasm.c (_initialize_disasm): Add declaration. | |
8667 | * dtrace-probe.c (_initialize_dtrace_probe): Add declaration. | |
8668 | * dummy-frame.c (_initialize_dummy_frame): Add declaration. | |
8669 | * dwarf-index-cache.c (_initialize_index_cache): Add declaration. | |
8670 | * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration. | |
8671 | * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration. | |
8672 | * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration. | |
8673 | * dwarf2expr.c (_initialize_dwarf2expr): Add declaration. | |
8674 | * dwarf2loc.c (_initialize_dwarf2loc): Add declaration. | |
8675 | * dwarf2read.c (_initialize_dwarf2_read): Add declaration. | |
8676 | * elfread.c (_initialize_elfread): Add declaration. | |
8677 | * exec.c (_initialize_exec): Add declaration. | |
8678 | * extension.c (_initialize_extension): Add declaration. | |
8679 | * f-lang.c (_initialize_f_language): Add declaration. | |
8680 | * f-valprint.c (_initialize_f_valprint): Add declaration. | |
8681 | * fbsd-nat.c (_initialize_fbsd_nat): Add declaration. | |
8682 | * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration. | |
8683 | * filesystem.c (_initialize_filesystem): Add declaration. | |
8684 | * findcmd.c (_initialize_mem_search): Add declaration. | |
8685 | * findvar.c (_initialize_findvar): Add declaration. | |
8686 | * fork-child.c (_initialize_fork_child): Add declaration. | |
8687 | * frame-base.c (_initialize_frame_base): Add declaration. | |
8688 | * frame-unwind.c (_initialize_frame_unwind): Add declaration. | |
8689 | * frame.c (_initialize_frame): Add declaration. | |
8690 | * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration. | |
8691 | * frv-tdep.c (_initialize_frv_tdep): Add declaration. | |
8692 | * ft32-tdep.c (_initialize_ft32_tdep): Add declaration. | |
8693 | * gcore.c (_initialize_gcore): Add declaration. | |
8694 | * gdb-demangle.c (_initialize_gdb_demangle): Add declaration. | |
8695 | * gdb_bfd.c (_initialize_gdb_bfd): Add declaration. | |
8696 | * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration. | |
8697 | * gdbarch.c (_initialize_gdbarch): Add declaration. | |
8698 | * gdbtypes.c (_initialize_gdbtypes): Add declaration. | |
8699 | * gnu-nat.c (_initialize_gnu_nat): Add declaration. | |
8700 | * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration. | |
8701 | * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration. | |
8702 | * go-lang.c (_initialize_go_language): Add declaration. | |
8703 | * go32-nat.c (_initialize_go32_nat): Add declaration. | |
8704 | * guile/guile.c (_initialize_guile): Add declaration. | |
8705 | * h8300-tdep.c (_initialize_h8300_tdep): Add declaration. | |
8706 | * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration. | |
8707 | * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration. | |
8708 | * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration. | |
8709 | * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration. | |
8710 | * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration. | |
8711 | * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration. | |
8712 | * hppa-tdep.c (_initialize_hppa_tdep): Add declaration. | |
8713 | * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration. | |
8714 | * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration. | |
8715 | * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration. | |
8716 | * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration. | |
8717 | * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration. | |
8718 | * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration. | |
8719 | * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration. | |
8720 | * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration. | |
8721 | * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration. | |
8722 | * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration. | |
8723 | * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration. | |
8724 | * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration. | |
8725 | * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration. | |
8726 | * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration. | |
8727 | * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration. | |
8728 | * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration. | |
8729 | * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration. | |
8730 | * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration. | |
8731 | * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration. | |
8732 | * i386-tdep.c (_initialize_i386_tdep): Add declaration. | |
8733 | * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration. | |
8734 | * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration. | |
8735 | * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration. | |
8736 | * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration. | |
8737 | * ia64-tdep.c (_initialize_ia64_tdep): Add declaration. | |
8738 | * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration. | |
8739 | * infcall.c (_initialize_infcall): Add declaration. | |
8740 | * infcmd.c (_initialize_infcmd): Add declaration. | |
8741 | * inflow.c (_initialize_inflow): Add declaration. | |
8742 | * infrun.c (_initialize_infrun): Add declaration. | |
8743 | * interps.c (_initialize_interpreter): Add declaration. | |
8744 | * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration. | |
8745 | * jit.c (_initialize_jit): Add declaration. | |
8746 | * language.c (_initialize_language): Add declaration. | |
8747 | * linux-fork.c (_initialize_linux_fork): Add declaration. | |
8748 | * linux-nat.c (_initialize_linux_nat): Add declaration. | |
8749 | * linux-tdep.c (_initialize_linux_tdep): Add declaration. | |
8750 | * linux-thread-db.c (_initialize_thread_db): Add declaration. | |
8751 | * lm32-tdep.c (_initialize_lm32_tdep): Add declaration. | |
8752 | * m2-lang.c (_initialize_m2_language): Add declaration. | |
8753 | * m32c-tdep.c (_initialize_m32c_tdep): Add declaration. | |
8754 | * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration. | |
8755 | * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration. | |
8756 | * m32r-tdep.c (_initialize_m32r_tdep): Add declaration. | |
8757 | * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration. | |
8758 | * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration. | |
8759 | * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration. | |
8760 | * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration. | |
8761 | * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration. | |
8762 | * m68k-tdep.c (_initialize_m68k_tdep): Add declaration. | |
8763 | * machoread.c (_initialize_machoread): Add declaration. | |
8764 | * macrocmd.c (_initialize_macrocmd): Add declaration. | |
8765 | * macroscope.c (_initialize_macroscope): Add declaration. | |
8766 | * maint-test-options.c (_initialize_maint_test_options): Add declaration. | |
8767 | * maint-test-settings.c (_initialize_maint_test_settings): Add declaration. | |
8768 | * maint.c (_initialize_maint_cmds): Add declaration. | |
8769 | * mdebugread.c (_initialize_mdebugread): Add declaration. | |
8770 | * memattr.c (_initialize_mem): Add declaration. | |
8771 | * mep-tdep.c (_initialize_mep_tdep): Add declaration. | |
8772 | * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration. | |
8773 | * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration. | |
8774 | * mi/mi-interp.c (_initialize_mi_interp): Add declaration. | |
8775 | * mi/mi-main.c (_initialize_mi_main): Add declaration. | |
8776 | * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration. | |
8777 | * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration. | |
8778 | * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration. | |
8779 | * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration. | |
8780 | * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration. | |
8781 | * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration. | |
8782 | * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration. | |
8783 | * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration. | |
8784 | * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration. | |
8785 | * mips-tdep.c (_initialize_mips_tdep): Add declaration. | |
8786 | * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration. | |
8787 | * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration. | |
8788 | * mipsread.c (_initialize_mipsread): Add declaration. | |
8789 | * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration. | |
8790 | * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration. | |
8791 | * moxie-tdep.c (_initialize_moxie_tdep): Add declaration. | |
8792 | * msp430-tdep.c (_initialize_msp430_tdep): Add declaration. | |
8793 | * nds32-tdep.c (_initialize_nds32_tdep): Add declaration. | |
8794 | * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration. | |
8795 | * nios2-tdep.c (_initialize_nios2_tdep): Add declaration. | |
8796 | * nto-procfs.c (_initialize_procfs): Add declaration. | |
8797 | * objc-lang.c (_initialize_objc_language): Add declaration. | |
8798 | * observable.c (_initialize_observer): Add declaration. | |
8799 | * opencl-lang.c (_initialize_opencl_language): Add declaration. | |
8800 | * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration. | |
8801 | * or1k-tdep.c (_initialize_or1k_tdep): Add declaration. | |
8802 | * osabi.c (_initialize_gdb_osabi): Add declaration. | |
8803 | * osdata.c (_initialize_osdata): Add declaration. | |
8804 | * p-valprint.c (_initialize_pascal_valprint): Add declaration. | |
8805 | * parse.c (_initialize_parse): Add declaration. | |
8806 | * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration. | |
8807 | * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration. | |
8808 | * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration. | |
8809 | * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration. | |
8810 | * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration. | |
8811 | * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration. | |
8812 | * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration. | |
8813 | * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration. | |
8814 | * printcmd.c (_initialize_printcmd): Add declaration. | |
8815 | * probe.c (_initialize_probe): Add declaration. | |
8816 | * proc-api.c (_initialize_proc_api): Add declaration. | |
8817 | * proc-events.c (_initialize_proc_events): Add declaration. | |
8818 | * proc-service.c (_initialize_proc_service): Add declaration. | |
8819 | * procfs.c (_initialize_procfs): Add declaration. | |
8820 | * producer.c (_initialize_producer): Add declaration. | |
8821 | * psymtab.c (_initialize_psymtab): Add declaration. | |
8822 | * python/python.c (_initialize_python): Add declaration. | |
8823 | * ravenscar-thread.c (_initialize_ravenscar): Add declaration. | |
8824 | * record-btrace.c (_initialize_record_btrace): Add declaration. | |
8825 | * record-full.c (_initialize_record_full): Add declaration. | |
8826 | * record.c (_initialize_record): Add declaration. | |
8827 | * regcache-dump.c (_initialize_regcache_dump): Add declaration. | |
8828 | * regcache.c (_initialize_regcache): Add declaration. | |
8829 | * reggroups.c (_initialize_reggroup): Add declaration. | |
8830 | * remote-notif.c (_initialize_notif): Add declaration. | |
8831 | * remote-sim.c (_initialize_remote_sim): Add declaration. | |
8832 | * remote.c (_initialize_remote): Add declaration. | |
8833 | * reverse.c (_initialize_reverse): Add declaration. | |
8834 | * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration. | |
8835 | * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration. | |
8836 | * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration. | |
8837 | * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration. | |
8838 | * riscv-tdep.c (_initialize_riscv_tdep): Add declaration. | |
8839 | * rl78-tdep.c (_initialize_rl78_tdep): Add declaration. | |
8840 | * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration. | |
8841 | * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep): | |
8842 | Add declaration. | |
8843 | * rs6000-nat.c (_initialize_rs6000_nat): Add declaration. | |
8844 | * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration. | |
8845 | * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration. | |
8846 | * rust-exp.y (_initialize_rust_exp): Add declaration. | |
8847 | * rx-tdep.c (_initialize_rx_tdep): Add declaration. | |
8848 | * s12z-tdep.c (_initialize_s12z_tdep): Add declaration. | |
8849 | * s390-linux-nat.c (_initialize_s390_nat): Add declaration. | |
8850 | * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration. | |
8851 | * s390-tdep.c (_initialize_s390_tdep): Add declaration. | |
8852 | * score-tdep.c (_initialize_score_tdep): Add declaration. | |
8853 | * ser-go32.c (_initialize_ser_dos): Add declaration. | |
8854 | * ser-mingw.c (_initialize_ser_windows): Add declaration. | |
8855 | * ser-pipe.c (_initialize_ser_pipe): Add declaration. | |
8856 | * ser-tcp.c (_initialize_ser_tcp): Add declaration. | |
8857 | * ser-uds.c (_initialize_ser_socket): Add declaration. | |
8858 | * ser-unix.c (_initialize_ser_hardwire): Add declaration. | |
8859 | * serial.c (_initialize_serial): Add declaration. | |
8860 | * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration. | |
8861 | * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration. | |
8862 | * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration. | |
8863 | * sh-tdep.c (_initialize_sh_tdep): Add declaration. | |
8864 | * skip.c (_initialize_step_skip): Add declaration. | |
8865 | * sol-thread.c (_initialize_sol_thread): Add declaration. | |
8866 | * solib-aix.c (_initialize_solib_aix): Add declaration. | |
8867 | * solib-darwin.c (_initialize_darwin_solib): Add declaration. | |
8868 | * solib-dsbt.c (_initialize_dsbt_solib): Add declaration. | |
8869 | * solib-frv.c (_initialize_frv_solib): Add declaration. | |
8870 | * solib-svr4.c (_initialize_svr4_solib): Add declaration. | |
8871 | * solib-target.c (_initialize_solib_target): Add declaration. | |
8872 | * solib.c (_initialize_solib): Add declaration. | |
8873 | * source-cache.c (_initialize_source_cache): Add declaration. | |
8874 | * source.c (_initialize_source): Add declaration. | |
8875 | * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration. | |
8876 | * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration. | |
8877 | * sparc-nat.c (_initialize_sparc_nat): Add declaration. | |
8878 | * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration. | |
8879 | * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration. | |
8880 | * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration. | |
8881 | * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration. | |
8882 | * sparc-tdep.c (_initialize_sparc_tdep): Add declaration. | |
8883 | * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration. | |
8884 | * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration. | |
8885 | * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration. | |
8886 | * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration. | |
8887 | * sparc64-nat.c (_initialize_sparc64_nat): Add declaration. | |
8888 | * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration. | |
8889 | * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration. | |
8890 | * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration. | |
8891 | * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration. | |
8892 | * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration. | |
8893 | * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration. | |
8894 | * stabsread.c (_initialize_stabsread): Add declaration. | |
8895 | * stack.c (_initialize_stack): Add declaration. | |
8896 | * stap-probe.c (_initialize_stap_probe): Add declaration. | |
8897 | * std-regs.c (_initialize_frame_reg): Add declaration. | |
8898 | * symfile-debug.c (_initialize_symfile_debug): Add declaration. | |
8899 | * symfile-mem.c (_initialize_symfile_mem): Add declaration. | |
8900 | * symfile.c (_initialize_symfile): Add declaration. | |
8901 | * symmisc.c (_initialize_symmisc): Add declaration. | |
8902 | * symtab.c (_initialize_symtab): Add declaration. | |
8903 | * target.c (_initialize_target): Add declaration. | |
8904 | * target-connection.c (_initialize_target_connection): Add | |
8905 | declaration. | |
8906 | * target-dcache.c (_initialize_target_dcache): Add declaration. | |
8907 | * target-descriptions.c (_initialize_target_descriptions): Add declaration. | |
8908 | * thread.c (_initialize_thread): Add declaration. | |
8909 | * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration. | |
8910 | * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration. | |
8911 | * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration. | |
8912 | * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration. | |
8913 | * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration. | |
8914 | * tracectf.c (_initialize_ctf): Add declaration. | |
8915 | * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration. | |
8916 | * tracefile.c (_initialize_tracefile): Add declaration. | |
8917 | * tracepoint.c (_initialize_tracepoint): Add declaration. | |
8918 | * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration. | |
8919 | * tui/tui-interp.c (_initialize_tui_interp): Add declaration. | |
8920 | * tui/tui-layout.c (_initialize_tui_layout): Add declaration. | |
8921 | * tui/tui-regs.c (_initialize_tui_regs): Add declaration. | |
8922 | * tui/tui-stack.c (_initialize_tui_stack): Add declaration. | |
8923 | * tui/tui-win.c (_initialize_tui_win): Add declaration. | |
8924 | * tui/tui.c (_initialize_tui): Add declaration. | |
8925 | * typeprint.c (_initialize_typeprint): Add declaration. | |
8926 | * ui-style.c (_initialize_ui_style): Add declaration. | |
8927 | * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration. | |
8928 | * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration. | |
8929 | * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration. | |
8930 | * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration. | |
8931 | * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration. | |
8932 | * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration. | |
8933 | * unittests/filtered_iterator-selftests.c | |
8934 | (_initialize_filtered_iterator_selftests): Add declaration. | |
8935 | * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration. | |
8936 | * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration. | |
8937 | * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration. | |
8938 | * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration. | |
8939 | * unittests/main-thread-selftests.c | |
8940 | (_initialize_main_thread_selftests): Add declaration. | |
8941 | * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration. | |
8942 | * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration. | |
8943 | * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration. | |
8944 | * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration. | |
8945 | * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration. | |
8946 | * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration. | |
8947 | * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration. | |
8948 | * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration. | |
8949 | * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration. | |
8950 | * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration. | |
8951 | * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration. | |
8952 | * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration. | |
8953 | * unittests/style-selftests.c (_initialize_style_selftest): Add declaration. | |
8954 | * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration. | |
8955 | * unittests/tui-selftests.c (_initialize_tui_selftest): Add | |
8956 | declaration. | |
8957 | * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration. | |
8958 | * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration. | |
8959 | * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration. | |
8960 | * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration. | |
8961 | * user-regs.c (_initialize_user_regs): Add declaration. | |
8962 | * utils.c (_initialize_utils): Add declaration. | |
8963 | * v850-tdep.c (_initialize_v850_tdep): Add declaration. | |
8964 | * valops.c (_initialize_valops): Add declaration. | |
8965 | * valprint.c (_initialize_valprint): Add declaration. | |
8966 | * value.c (_initialize_values): Add declaration. | |
8967 | * varobj.c (_initialize_varobj): Add declaration. | |
8968 | * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration. | |
8969 | * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration. | |
8970 | * vax-tdep.c (_initialize_vax_tdep): Add declaration. | |
8971 | * windows-nat.c (_initialize_windows_nat): Add declaration. | |
8972 | (_initialize_check_for_gdb_ini): Add declaration. | |
8973 | (_initialize_loadable): Add declaration. | |
8974 | * windows-tdep.c (_initialize_windows_tdep): Add declaration. | |
8975 | * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration. | |
8976 | * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration. | |
8977 | * xcoffread.c (_initialize_xcoffread): Add declaration. | |
8978 | * xml-support.c (_initialize_xml_support): Add declaration. | |
8979 | * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration. | |
8980 | * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration. | |
8981 | * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration. | |
8982 | * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration. | |
8983 | ||
e2de1eec SM |
8984 | 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca> |
8985 | ||
8986 | * regformats/regdat.sh: Generate declaration for init function. | |
8987 | ||
e0037b4c SM |
8988 | 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca> |
8989 | ||
8990 | * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move | |
8991 | up. | |
8992 | (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior, | |
8993 | close_one_inferior>: New methods. | |
8994 | (get_sim_inferior_data_by_ptid): Move to gdbsim_target, | |
8995 | pass down target to find_inferior_pid. | |
8996 | (gdbsim_target::fetch_registers, gdbsim_target::store_registers): | |
8997 | Pass down target to find_inferior_ptid. | |
8998 | (gdbsim_target::create_inferior): Pass down target to | |
8999 | add_thread_silent. | |
9000 | (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass | |
9001 | target down to find_inferior_ptid and switch_to_thread. | |
9002 | (gdbsim_target::close): Update to call close_one_inferior. | |
9003 | (struct resume_data): Remove. | |
9004 | (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments | |
9005 | directly, rather than through a void pointer. | |
9006 | (gdbsim_target::resume): Update to call resume_one_inferior. | |
9007 | ||
58920b5b SM |
9008 | 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca> |
9009 | ||
9010 | * gdbsupport/gdb_wait.c: Include gdb_wait.h. | |
9011 | ||
4ec89149 PA |
9012 | 2020-01-12 Pedro Alves <palves@redhat.com> |
9013 | ||
9014 | * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent | |
9015 | directly for the current inferior instead of | |
9016 | discard_all_inferiors. | |
9017 | (discard_all_inferiors): Delete. | |
9018 | ||
7c392d1d TT |
9019 | 2020-01-11 Tom Tromey <tom@tromey.com> |
9020 | ||
9021 | * tui/tui-wingeneral.c (box_win): Check cli_styling. | |
9022 | * tui/tui-winsource.c (tui_source_window_base::refill): Use | |
9023 | deprecated_safe_get_selected_frame. | |
9024 | ||
d9ebdab7 TBA |
9025 | 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
9026 | ||
9027 | * inferior.c (print_inferior): Switch inferior before printing it. | |
9028 | ||
f3c469b9 PA |
9029 | 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com> |
9030 | Pedro Alves <palves@redhat.com> | |
9031 | ||
9032 | * progspace-and-thread.c (switch_to_program_space_and_thread): | |
9033 | Assert there's an inferior for PSPACE. Use | |
9034 | switch_to_inferior_no_thread to switch the inferior too. | |
9035 | * progspace.c (program_space::~program_space): Call | |
9036 | clear_symtab_users here, with SYMFILE_DEFER_BP_RESET. | |
9037 | (program_space::free_all_objfiles): Don't call clear_symtab_users | |
9038 | here. | |
9039 | * symfile.c (symbol_file_clear): Call clear_symtab_users here. | |
9040 | ||
65c574f6 PA |
9041 | 2020-01-10 Pedro Alves <palves@redhat.com> |
9042 | ||
9043 | * NEWS: Mention multi-target debugging, "info connections", and | |
9044 | "add-inferior -no-connection". | |
9045 | ||
2f4fcf00 PA |
9046 | 2020-01-10 Pedro Alves <palves@redhat.com> |
9047 | ||
9048 | * infrun.c: Include "target-connection.h". | |
9049 | (check_multi_target_resumption): New. | |
9050 | (proceed): Call it. | |
9051 | * target-connection.c (make_target_connection_string): Make | |
9052 | extern. | |
9053 | * target-connection.h (make_target_connection_string): Declare. | |
9054 | ||
121b3efd PA |
9055 | 2020-01-10 Pedro Alves <palves@redhat.com> |
9056 | ||
9057 | * Makefile.in (COMMON_SFILES): Add target-connection.c. | |
9058 | * inferior.c (uiout_field_connection): New function. | |
9059 | (print_inferior): Add new "connection-id" column. | |
9060 | (add_inferior_command): Show connection number/string of added | |
9061 | inferior. | |
9062 | * process-stratum-target.h | |
9063 | (process_stratum_target::connection_string): New virtual method. | |
9064 | (process_stratum_target::connection_number): New field. | |
9065 | * remote.c (remote_target::connection_string): New override. | |
9066 | * target-connection.c: New file. | |
9067 | * target-connection.h: New file. | |
9068 | * target.c (decref_target): Remove process_stratum targets from | |
9069 | the connection list. | |
9070 | (target_stack::push): Add process_stratum targets to the | |
9071 | connection list. | |
9072 | ||
4f837581 PA |
9073 | 2020-01-10 Pedro Alves <palves@redhat.com> |
9074 | ||
9075 | Revert: | |
9076 | 2016-04-12 Pedro Alves <palves@redhat.com> | |
9077 | * serial.c (serial_open, serial_fdopen_ops, do_serial_close): | |
9078 | Remove references to name. | |
9079 | * serial.h (struct serial) <name>: Delete. | |
9080 | ||
f4ec508e PA |
9081 | 2020-01-10 Pedro Alves <palves@redhat.com> |
9082 | ||
9083 | * gdbarch-selftests.c (register_to_value_test): Remove "target | |
9084 | already pushed" check. | |
9085 | ||
5b6d1e4f PA |
9086 | 2020-01-10 Pedro Alves <palves@redhat.com> |
9087 | John Baldwin <jhb@FreeBSD.org> | |
9088 | ||
9089 | * aarch64-linux-nat.c | |
9090 | (aarch64_linux_nat_target::thread_architecture): Adjust. | |
9091 | * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call. | |
9092 | (task_command_1): Likewise. | |
9093 | * aix-thread.c (sync_threadlists, aix_thread_target::resume) | |
9094 | (aix_thread_target::wait, aix_thread_target::fetch_registers) | |
9095 | (aix_thread_target::store_registers) | |
9096 | (aix_thread_target::thread_alive): Adjust. | |
9097 | * amd64-fbsd-tdep.c: Include "inferior.h". | |
9098 | (amd64fbsd_get_thread_local_address): Pass down target. | |
9099 | * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle | |
9100 | thread's gdbarch instead of target_gdbarch. | |
9101 | * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to | |
9102 | get_last_target_status. | |
9103 | * break-catch-syscall.c (print_it_catch_syscall): Likewise. | |
9104 | * breakpoint.c (breakpoints_should_be_inserted_now): Consider all | |
9105 | inferiors. | |
9106 | (update_inserted_breakpoint_locations): Skip if inferiors with no | |
9107 | execution. | |
9108 | (update_global_location_list): When handling moribund locations, | |
9109 | find representative inferior for location's pspace, and use thread | |
9110 | count of its process_stratum target. | |
9111 | * bsd-kvm.c (bsd_kvm_target_open): Pass target down. | |
9112 | * bsd-uthread.c (bsd_uthread_target::wait): Use | |
9113 | as_process_stratum_target and adjust thread_change_ptid and | |
9114 | add_thread calls. | |
9115 | (bsd_uthread_target::update_thread_list): Use | |
9116 | as_process_stratum_target and adjust find_thread_ptid, | |
9117 | thread_change_ptid and add_thread calls. | |
9118 | * btrace.c (maint_btrace_packet_history_cmd): Adjust | |
9119 | find_thread_ptid call. | |
9120 | * corelow.c (add_to_thread_list): Adjust add_thread call. | |
9121 | (core_target_open): Adjust add_thread_silent and thread_count | |
9122 | calls. | |
9123 | (core_target::pid_to_str): Adjust find_inferior_ptid call. | |
9124 | * ctf.c (ctf_target_open): Adjust add_thread_silent call. | |
9125 | * event-top.c (async_disconnect): Pop targets from all inferiors. | |
9126 | * exec.c (add_target_sections): Push exec target on all inferiors | |
9127 | sharing the program space. | |
9128 | (remove_target_sections): Remove the exec target from all | |
9129 | inferiors sharing the program space. | |
9130 | (exec_on_vfork): New. | |
9131 | * exec.h (exec_on_vfork): Declare. | |
9132 | * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter. | |
9133 | Pass it down. | |
9134 | (fbsd_nat_target::update_thread_list): Adjust. | |
9135 | (fbsd_nat_target::resume): Adjust. | |
9136 | (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it | |
9137 | down. | |
9138 | (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust. | |
9139 | * fbsd-tdep.c (fbsd_corefile_thread): Adjust | |
9140 | get_thread_arch_regcache call. | |
9141 | * fork-child.c (gdb_startup_inferior): Pass target down to | |
9142 | startup_inferior and set_executing. | |
9143 | * gdbthread.h (struct process_stratum_target): Forward declare. | |
9144 | (add_thread, add_thread_silent, add_thread_with_info) | |
9145 | (in_thread_list): Add process_stratum_target parameter. | |
9146 | (find_thread_ptid(inferior*, ptid_t)): New overload. | |
9147 | (find_thread_ptid, thread_change_ptid): Add process_stratum_target | |
9148 | parameter. | |
9149 | (all_threads()): Delete overload. | |
9150 | (all_threads, all_non_exited_threads): Add process_stratum_target | |
9151 | parameter. | |
9152 | (all_threads_safe): Use brace initialization. | |
9153 | (thread_count): Add process_stratum_target parameter. | |
9154 | (set_resumed, set_running, set_stop_requested, set_executing) | |
9155 | (threads_are_executing, finish_thread_state): Add | |
9156 | process_stratum_target parameter. | |
9157 | (switch_to_thread): Use is_current_thread. | |
9158 | * i386-fbsd-tdep.c: Include "inferior.h". | |
9159 | (i386fbsd_get_thread_local_address): Pass down target. | |
9160 | * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust. | |
9161 | * inf-child.c (inf_child_target::maybe_unpush_target): Remove | |
9162 | have_inferiors check. | |
9163 | * inf-ptrace.c (inf_ptrace_target::create_inferior) | |
9164 | (inf_ptrace_target::attach): Adjust. | |
9165 | * infcall.c (run_inferior_call): Adjust. | |
9166 | * infcmd.c (run_command_1): Pass target to | |
9167 | scoped_finish_thread_state. | |
9168 | (proceed_thread_callback): Skip inferiors with no execution. | |
9169 | (continue_command): Rename 'all_threads' local to avoid hiding | |
9170 | 'all_threads' function. Adjust get_last_target_status call. | |
9171 | (prepare_one_step): Adjust set_running call. | |
9172 | (signal_command): Use user_visible_resume_target. Compare thread | |
9173 | pointers instead of inferior_ptid. | |
9174 | (info_program_command): Adjust to pass down target. | |
9175 | (attach_command): Mark target's 'thread_executing' flag. | |
9176 | (stop_current_target_threads_ns): New, factored out from ... | |
9177 | (interrupt_target_1): ... this. Switch inferior before making | |
9178 | target calls. | |
9179 | * inferior-iter.h | |
9180 | (struct all_inferiors_iterator, struct all_inferiors_range) | |
9181 | (struct all_inferiors_safe_range) | |
9182 | (struct all_non_exited_inferiors_range): Filter on | |
9183 | process_stratum_target too. Remove explicit. | |
9184 | * inferior.c (inferior::inferior): Push dummy target on target | |
9185 | stack. | |
9186 | (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors): | |
9187 | Add process_stratum_target parameter, and pass it down. | |
9188 | (have_live_inferiors): Adjust. | |
9189 | (switch_to_inferior_and_push_target): New. | |
9190 | (add_inferior_command, clone_inferior_command): Handle | |
9191 | "-no-connection" parameter. Use | |
9192 | switch_to_inferior_and_push_target. | |
9193 | (_initialize_inferior): Mention "-no-connection" option in | |
9194 | the help of "add-inferior" and "clone-inferior" commands. | |
9195 | * inferior.h: Include "process-stratum-target.h". | |
9196 | (interrupt_target_1): Use bool. | |
9197 | (struct inferior) <push_target, unpush_target, target_is_pushed, | |
9198 | find_target_beneath, top_target, process_target, target_at, | |
9199 | m_stack>: New. | |
9200 | (discard_all_inferiors): Delete. | |
9201 | (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors) | |
9202 | (all_inferiors, all_non_exited_inferiors): Add | |
9203 | process_stratum_target parameter. | |
9204 | * infrun.c: Include "gdb_select.h" and <unordered_map>. | |
9205 | (target_last_proc_target): New global. | |
9206 | (follow_fork_inferior): Push target on new inferior. Pass target | |
9207 | to add_thread_silent. Call exec_on_vfork. Handle target's | |
9208 | reference count. | |
9209 | (follow_fork): Adjust get_last_target_status call. Also consider | |
9210 | target. | |
9211 | (follow_exec): Push target on new inferior. | |
9212 | (struct execution_control_state) <target>: New field. | |
9213 | (user_visible_resume_target): New. | |
9214 | (do_target_resume): Call target_async. | |
9215 | (resume_1): Set target's threads_executing flag. Consider resume | |
9216 | target. | |
9217 | (commit_resume_all_targets): New. | |
9218 | (proceed): Also consider resume target. Skip threads of inferiors | |
9219 | with no execution. Commit resumtion in all targets. | |
9220 | (start_remote): Pass current inferior to wait_for_inferior. | |
9221 | (infrun_thread_stop_requested): Consider target as well. Pass | |
9222 | thread_info pointer to clear_inline_frame_state instead of ptid. | |
9223 | (infrun_thread_thread_exit): Consider target as well. | |
9224 | (random_pending_event_thread): New inferior parameter. Use it. | |
9225 | (do_target_wait): Rename to ... | |
9226 | (do_target_wait_1): ... this. Add inferior parameter, and pass it | |
9227 | down. | |
9228 | (threads_are_resumed_pending_p, do_target_wait): New. | |
9229 | (prepare_for_detach): Adjust calls. | |
9230 | (wait_for_inferior): New inferior parameter. Handle it. Use | |
9231 | do_target_wait_1 instead of do_target_wait. | |
9232 | (fetch_inferior_event): Adjust. Switch to representative | |
9233 | inferior. Pass target down. | |
9234 | (set_last_target_status): Add process_stratum_target parameter. | |
9235 | Save target in global. | |
9236 | (get_last_target_status): Add process_stratum_target parameter and | |
9237 | handle it. | |
9238 | (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'. | |
9239 | (context_switch): Check inferior_ptid == null_ptid before calling | |
9240 | inferior_thread(). | |
9241 | (get_inferior_stop_soon): Pass down target. | |
9242 | (wait_one): Rename to ... | |
9243 | (poll_one_curr_target): ... this. | |
9244 | (struct wait_one_event): New. | |
9245 | (wait_one): New. | |
9246 | (stop_all_threads): Adjust. | |
9247 | (handle_no_resumed, handle_inferior_event): Adjust to consider the | |
9248 | event's target. | |
9249 | (switch_back_to_stepped_thread): Also consider target. | |
9250 | (print_stop_event): Update. | |
9251 | (normal_stop): Update. Also consider the resume target. | |
9252 | * infrun.h (wait_for_inferior): Remove declaration. | |
9253 | (user_visible_resume_target): New declaration. | |
9254 | (get_last_target_status, set_last_target_status): New | |
9255 | process_stratum_target parameter. | |
9256 | * inline-frame.c (clear_inline_frame_state(ptid_t)): Add | |
9257 | process_stratum_target parameter, and use it. | |
9258 | (clear_inline_frame_state (thread_info*)): New. | |
9259 | * inline-frame.c (clear_inline_frame_state(ptid_t)): Add | |
9260 | process_stratum_target parameter. | |
9261 | (clear_inline_frame_state (thread_info*)): Declare. | |
9262 | * linux-fork.c (delete_checkpoint_command): Pass target down to | |
9263 | find_thread_ptid. | |
9264 | (checkpoint_command): Adjust. | |
9265 | * linux-nat.c (linux_nat_target::follow_fork): Switch to thread | |
9266 | instead of just tweaking inferior_ptid. | |
9267 | (linux_nat_switch_fork): Pass target down to thread_change_ptid. | |
9268 | (exit_lwp): Pass target down to find_thread_ptid. | |
9269 | (attach_proc_task_lwp_callback): Pass target down to | |
9270 | add_thread/set_running/set_executing. | |
9271 | (linux_nat_target::attach): Pass target down to | |
9272 | thread_change_ptid. | |
9273 | (get_detach_signal): Pass target down to find_thread_ptid. | |
9274 | Consider last target status's target. | |
9275 | (linux_resume_one_lwp_throw, resume_lwp) | |
9276 | (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp) | |
9277 | (stop_wait_callback, save_stop_reason, linux_nat_filter_event) | |
9278 | (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down. | |
9279 | (linux_nat_target::async_wait_fd): New. | |
9280 | (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass | |
9281 | target down. | |
9282 | * linux-nat.h (linux_nat_target::async_wait_fd): Declare. | |
9283 | * linux-tdep.c (get_thread_arch_regcache): Pass target down. | |
9284 | * linux-thread-db.c (struct thread_db_info::process_target): New | |
9285 | field. | |
9286 | (add_thread_db_info): Save target. | |
9287 | (get_thread_db_info): New process_stratum_target parameter. Also | |
9288 | match target. | |
9289 | (delete_thread_db_info): New process_stratum_target parameter. | |
9290 | Also match target. | |
9291 | (thread_from_lwp): Adjust to pass down target. | |
9292 | (thread_db_notice_clone): Pass down target. | |
9293 | (check_thread_db_callback): Pass down target. | |
9294 | (try_thread_db_load_1): Always push the thread_db target. | |
9295 | (try_thread_db_load, record_thread): Pass target down. | |
9296 | (thread_db_target::detach): Pass target down. Always unpush the | |
9297 | thread_db target. | |
9298 | (thread_db_target::wait, thread_db_target::mourn_inferior): Pass | |
9299 | target down. Always unpush the thread_db target. | |
9300 | (find_new_threads_callback, thread_db_find_new_threads_2) | |
9301 | (thread_db_target::update_thread_list): Pass target down. | |
9302 | (thread_db_target::pid_to_str): Pass current inferior down. | |
9303 | (thread_db_target::get_thread_local_address): Pass target down. | |
9304 | (thread_db_target::resume, maintenance_check_libthread_db): Pass | |
9305 | target down. | |
9306 | * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust. | |
9307 | * procfs.c (procfs_target::procfs_init_inferior): Declare. | |
9308 | (proc_set_current_signal, do_attach, procfs_target::wait): Adjust. | |
9309 | (procfs_init_inferior): Rename to ... | |
9310 | (procfs_target::procfs_init_inferior): ... this and adjust. | |
9311 | (procfs_target::create_inferior, procfs_notice_thread) | |
9312 | (procfs_do_thread_registers): Adjust. | |
9313 | * ppc-fbsd-tdep.c: Include "inferior.h". | |
9314 | (ppcfbsd_get_thread_local_address): Pass down target. | |
9315 | * proc-service.c (ps_xfer_memory): Switch current inferior and | |
9316 | program space as well. | |
9317 | (get_ps_regcache): Pass target down. | |
9318 | * process-stratum-target.c | |
9319 | (process_stratum_target::thread_address_space) | |
9320 | (process_stratum_target::thread_architecture): Pass target down. | |
9321 | * process-stratum-target.h | |
9322 | (process_stratum_target::threads_executing): New field. | |
9323 | (as_process_stratum_target): New. | |
9324 | * ravenscar-thread.c | |
9325 | (ravenscar_thread_target::update_inferior_ptid): Pass target down. | |
9326 | (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target | |
9327 | down. | |
9328 | * record-btrace.c (record_btrace_target::info_record): Adjust. | |
9329 | (record_btrace_target::record_method) | |
9330 | (record_btrace_target::record_is_replaying) | |
9331 | (record_btrace_target::fetch_registers) | |
9332 | (get_thread_current_frame_id, record_btrace_target::resume) | |
9333 | (record_btrace_target::wait, record_btrace_target::stop): Pass | |
9334 | target down. | |
9335 | * record-full.c (record_full_wait_1): Switch to event thread. | |
9336 | Pass target down. | |
9337 | * regcache.c (regcache::regcache) | |
9338 | (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add | |
9339 | process_stratum_target parameter and handle it. | |
9340 | (current_thread_target): New global. | |
9341 | (get_thread_regcache): Add process_stratum_target parameter and | |
9342 | handle it. Switch inferior before calling target method. | |
9343 | (get_thread_regcache): Pass target down. | |
9344 | (get_thread_regcache_for_ptid): Pass target down. | |
9345 | (registers_changed_ptid): Add process_stratum_target parameter and | |
9346 | handle it. | |
9347 | (registers_changed_thread, registers_changed): Pass target down. | |
9348 | (test_get_thread_arch_aspace_regcache): New. | |
9349 | (current_regcache_test): Define a couple local test_target_ops | |
9350 | instances and use them for testing. | |
9351 | (readwrite_regcache): Pass process_stratum_target parameter. | |
9352 | (cooked_read_test, cooked_write_test): Pass mock_target down. | |
9353 | * regcache.h (get_thread_regcache, get_thread_arch_regcache) | |
9354 | (get_thread_arch_aspace_regcache): Add process_stratum_target | |
9355 | parameter. | |
9356 | (regcache::target): New method. | |
9357 | (regcache::regcache, regcache::get_thread_arch_aspace_regcache) | |
9358 | (regcache::registers_changed_ptid): Add process_stratum_target | |
9359 | parameter. | |
9360 | (regcache::m_target): New field. | |
9361 | (registers_changed_ptid): Add process_stratum_target parameter. | |
9362 | * remote.c (remote_state::supports_vCont_probed): New field. | |
9363 | (remote_target::async_wait_fd): New method. | |
9364 | (remote_unpush_and_throw): Add remote_target parameter. | |
9365 | (get_current_remote_target): Adjust. | |
9366 | (remote_target::remote_add_inferior): Push target. | |
9367 | (remote_target::remote_add_thread) | |
9368 | (remote_target::remote_notice_new_inferior) | |
9369 | (get_remote_thread_info): Pass target down. | |
9370 | (remote_target::update_thread_list): Skip threads of inferiors | |
9371 | bound to other targets. (remote_target::close): Don't discard | |
9372 | inferiors. (remote_target::add_current_inferior_and_thread) | |
9373 | (remote_target::process_initial_stop_replies) | |
9374 | (remote_target::start_remote) | |
9375 | (remote_target::remote_serial_quit_handler): Pass down target. | |
9376 | (remote_target::remote_unpush_target): New remote_target | |
9377 | parameter. Unpush the target from all inferiors. | |
9378 | (remote_target::remote_unpush_and_throw): New remote_target | |
9379 | parameter. Pass it down. | |
9380 | (remote_target::open_1): Check whether the current inferior has | |
9381 | execution instead of checking whether any inferior is live. Pass | |
9382 | target down. | |
9383 | (remote_target::remote_detach_1): Pass down target. Use | |
9384 | remote_unpush_target. | |
9385 | (extended_remote_target::attach): Pass down target. | |
9386 | (remote_target::remote_vcont_probe): Set supports_vCont_probed. | |
9387 | (remote_target::append_resumption): Pass down target. | |
9388 | (remote_target::append_pending_thread_resumptions) | |
9389 | (remote_target::remote_resume_with_hc, remote_target::resume) | |
9390 | (remote_target::commit_resume): Pass down target. | |
9391 | (remote_target::remote_stop_ns): Check supports_vCont_probed. | |
9392 | (remote_target::interrupt_query) | |
9393 | (remote_target::remove_new_fork_children) | |
9394 | (remote_target::check_pending_events_prevent_wildcard_vcont) | |
9395 | (remote_target::remote_parse_stop_reply) | |
9396 | (remote_target::process_stop_reply): Pass down target. | |
9397 | (first_remote_resumed_thread): New remote_target parameter. Pass | |
9398 | it down. | |
9399 | (remote_target::wait_as): Pass down target. | |
9400 | (unpush_and_perror): New remote_target parameter. Pass it down. | |
9401 | (remote_target::readchar, remote_target::remote_serial_write) | |
9402 | (remote_target::getpkt_or_notif_sane_1) | |
9403 | (remote_target::kill_new_fork_children, remote_target::kill): Pass | |
9404 | down target. | |
9405 | (remote_target::mourn_inferior): Pass down target. Use | |
9406 | remote_unpush_target. | |
9407 | (remote_target::core_of_thread) | |
9408 | (remote_target::remote_btrace_maybe_reopen): Pass down target. | |
9409 | (remote_target::pid_to_exec_file) | |
9410 | (remote_target::thread_handle_to_thread_info): Pass down target. | |
9411 | (remote_target::async_wait_fd): New. | |
9412 | * riscv-fbsd-tdep.c: Include "inferior.h". | |
9413 | (riscv_fbsd_get_thread_local_address): Pass down target. | |
9414 | * sol2-tdep.c (sol2_core_pid_to_str): Pass down target. | |
9415 | * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs) | |
9416 | (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback): | |
9417 | Adjust. | |
9418 | * solib-spu.c (spu_skip_standalone_loader): Pass down target. | |
9419 | * solib-svr4.c (enable_break): Pass down target. | |
9420 | * spu-multiarch.c (parse_spufs_run): Pass down target. | |
9421 | * spu-tdep.c (spu2ppu_sniffer): Pass down target. | |
9422 | * target-delegates.c: Regenerate. | |
9423 | * target.c (g_target_stack): Delete. | |
9424 | (current_top_target): Return the current inferior's top target. | |
9425 | (target_has_execution_1): Refer to the passed-in inferior's top | |
9426 | target. | |
9427 | (target_supports_terminal_ours): Check whether the initial | |
9428 | inferior was already created. | |
9429 | (decref_target): New. | |
9430 | (target_stack::push): Incref/decref the target. | |
9431 | (push_target, push_target, unpush_target): Adjust. | |
9432 | (target_stack::unpush): Defref target. | |
9433 | (target_is_pushed): Return bool. Adjust to refer to the current | |
9434 | inferior's target stack. | |
9435 | (dispose_inferior): Delete, and inline parts ... | |
9436 | (target_preopen): ... here. Only dispose of the current inferior. | |
9437 | (target_detach): Hold strong target reference while detaching. | |
9438 | Pass target down. | |
9439 | (target_thread_name): Add assertion. | |
9440 | (target_resume): Pass down target. | |
9441 | (target_ops::beneath, find_target_at): Adjust to refer to the | |
9442 | current inferior's target stack. | |
9443 | (get_dummy_target): New. | |
9444 | (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that | |
9445 | has a thread running. | |
9446 | (initialize_targets): Rename to ... | |
9447 | (_initialize_target): ... this. | |
9448 | * target.h: Include "gdbsupport/refcounted-object.h". | |
9449 | (struct target_ops): Inherit refcounted_object. | |
9450 | (target_ops::shortname, target_ops::longname): Make const. | |
9451 | (target_ops::async_wait_fd): New method. | |
9452 | (decref_target): Declare. | |
9453 | (struct target_ops_ref_policy): New. | |
9454 | (target_ops_ref): New typedef. | |
9455 | (get_dummy_target): Declare function. | |
9456 | (target_is_pushed): Return bool. | |
9457 | * thread-iter.c (all_matching_threads_iterator::m_inf_matches) | |
9458 | (all_matching_threads_iterator::all_matching_threads_iterator): | |
9459 | Handle filter target. | |
9460 | * thread-iter.h (struct all_matching_threads_iterator, struct | |
9461 | all_matching_threads_range, class all_non_exited_threads_range): | |
9462 | Filter by target too. Remove explicit. | |
9463 | * thread.c (threads_executing): Delete. | |
9464 | (inferior_thread): Pass down current inferior. | |
9465 | (clear_thread_inferior_resources): Pass down thread pointer | |
9466 | instead of ptid_t. | |
9467 | (add_thread_silent, add_thread_with_info, add_thread): Add | |
9468 | process_stratum_target parameter. Use it for thread and inferior | |
9469 | searches. | |
9470 | (is_current_thread): New. | |
9471 | (thread_info::deletable): Use it. | |
9472 | (find_thread_ptid, thread_count, in_thread_list) | |
9473 | (thread_change_ptid, set_resumed, set_running): New | |
9474 | process_stratum_target parameter. Pass it down. | |
9475 | (set_executing): New process_stratum_target parameter. Pass it | |
9476 | down. Adjust reference to 'threads_executing'. | |
9477 | (threads_are_executing): New process_stratum_target parameter. | |
9478 | Adjust reference to 'threads_executing'. | |
9479 | (set_stop_requested, finish_thread_state): New | |
9480 | process_stratum_target parameter. Pass it down. | |
9481 | (switch_to_thread): Also match inferior. | |
9482 | (switch_to_thread): New process_stratum_target parameter. Pass it | |
9483 | down. | |
9484 | (update_threads_executing): Reimplement. | |
9485 | * top.c (quit_force): Pop targets from all inferior. | |
9486 | (gdb_init): Don't call initialize_targets. | |
9487 | * windows-nat.c (windows_nat_target) <get_windows_debug_event>: | |
9488 | Declare. | |
9489 | (windows_add_thread, windows_delete_thread): Adjust. | |
9490 | (get_windows_debug_event): Rename to ... | |
9491 | (windows_nat_target::get_windows_debug_event): ... this. Adjust. | |
9492 | * tracefile-tfile.c (tfile_target_open): Pass down target. | |
9493 | * gdbsupport/common-gdbthread.h (struct process_stratum_target): | |
9494 | Forward declare. | |
9495 | (switch_to_thread): Add process_stratum_target parameter. | |
9496 | * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target | |
9497 | parameter. Use it. | |
9498 | (mi_on_resume): Pass target down. | |
9499 | * nat/fork-inferior.c (startup_inferior): Add | |
9500 | process_stratum_target parameter. Pass it down. | |
9501 | * nat/fork-inferior.h (startup_inferior): Add | |
9502 | process_stratum_target parameter. | |
9503 | * python/py-threadevent.c (py_get_event_thread): Pass target down. | |
9504 | ||
75c6c844 PA |
9505 | 2020-01-10 Pedro Alves <palves@redhat.com> |
9506 | ||
9507 | * remote.c (remote_target::start_remote): Don't set inferior_ptid | |
9508 | directly. Instead find the first thread in the thread list and | |
9509 | use switch_to_thread. | |
9510 | ||
78f2c40a PA |
9511 | 2020-01-10 Pedro Alves <palves@redhat.com> |
9512 | ||
9513 | * remote.c (remote_target::remote_add_inferior): Don't bind a | |
9514 | process to the current inferior if the current inferior is already | |
9515 | bound to a process. | |
9516 | ||
e7af6c70 TBA |
9517 | 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
9518 | Pedro Alves <palves@redhat.com> | |
9519 | ||
9520 | * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>: | |
9521 | If no process is specified, return null_ptid instead of | |
9522 | inferior_ptid. | |
9523 | (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED / | |
9524 | TARGET_WAITKIND_SIGNALLED with no pid. | |
9525 | ||
31ba933e PA |
9526 | 2020-01-10 Pedro Alves <palves@redhat.com> |
9527 | ||
9528 | * remote.c (first_remote_resumed_thread): New. | |
9529 | (remote_target::wait_as): Use it as default event_ptid instead of | |
9530 | inferior_ptid. | |
9531 | ||
735fc2ca PA |
9532 | 2020-01-10 Pedro Alves <palves@redhat.com> |
9533 | ||
9534 | * infrun.c (handle_no_resumed): Use all_non_exited_inferiors. | |
9535 | ||
c17e02e1 PA |
9536 | 2020-01-10 Pedro Alves <palves@redhat.com> |
9537 | ||
9538 | * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is | |
9539 | not -1. | |
9540 | ||
ab1ddbcf PA |
9541 | 2020-01-10 Pedro Alves <palves@redhat.com> |
9542 | ||
9543 | * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a | |
9544 | ptid to get_last_target_status. | |
9545 | * break-catch-syscall.c (print_it_catch_syscall): Don't pass a | |
9546 | ptid to get_last_target_status. | |
9547 | * infcmd.c (continue_command): Don't pass a target_waitstatus to | |
9548 | get_last_target_status. | |
9549 | (info_program_command): Don't pass a target_waitstatus to | |
9550 | get_last_target_status. | |
9551 | * infrun.c (init_wait_for_inferior): Use | |
9552 | nullify_last_target_wait_ptid. | |
9553 | (get_last_target_status): Handle nullptr arguments. | |
9554 | (nullify_last_target_wait_ptid): Clear target_last_waitstatus. | |
9555 | (print_stop_event): Don't pass a ptid to get_last_target_status. | |
9556 | (normal_stop): Don't pass a ptid to get_last_target_status. | |
9557 | * infrun.h (get_last_target_status, set_last_target_status): Move | |
9558 | comments here and update. | |
9559 | (nullify_last_target_wait_ptid): Declare. | |
9560 | * linux-fork.c (fork_load_infrun_state): Remove local extern | |
9561 | declaration of nullify_last_target_wait_ptid. | |
9562 | * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus | |
9563 | to get_last_target_status. | |
9564 | ||
f3f8ece4 PA |
9565 | 2020-01-10 Pedro Alves <palves@redhat.com> |
9566 | ||
9567 | * gdbthread.h (scoped_restore_current_thread) | |
9568 | <dont_restore, restore, m_dont_restore>: Declare. | |
9569 | * thread.c (thread_alive): Add assertion. Return bool. | |
9570 | (switch_to_thread_if_alive): New. | |
9571 | (prune_threads): Switch inferior/thread. | |
9572 | (print_thread_info_1): Switch thread before calling target methods. | |
9573 | (scoped_restore_current_thread::restore): New, factored out from | |
9574 | ... | |
9575 | (scoped_restore_current_thread::~scoped_restore_current_thread): | |
9576 | ... this. | |
9577 | (scoped_restore_current_thread::scoped_restore_current_thread): | |
9578 | Add assertion. | |
9579 | (thread_apply_all_command, thread_select): Use | |
9580 | switch_to_thread_if_alive. | |
9581 | * infrun.c (proceed, restart_threads, handle_signal_stop) | |
9582 | (switch_back_to_stepped_thread): Switch current thread before | |
9583 | calling target methods. | |
9584 | ||
db2d40f7 PA |
9585 | 2020-01-10 Pedro Alves <palves@redhat.com> |
9586 | ||
9587 | * inferior.c (switch_to_inferior_no_thread): New function, | |
9588 | factored out from ... | |
9589 | (inferior_command): ... here. | |
9590 | * inferior.h (switch_to_inferior_no_thread): Declare. | |
9591 | * mi/mi-main.c (run_one_inferior): Use | |
9592 | switch_to_inferior_no_thread. | |
9593 | ||
bd420a2d PA |
9594 | 2020-01-10 Pedro Alves <palves@redhat.com> |
9595 | ||
9596 | * infcmd.c (kill_command): Remove dead code. | |
9597 | ||
ddf5db90 PA |
9598 | 2020-01-10 Pedro Alves <palves@redhat.com> |
9599 | ||
9600 | * remote.c (remote_target::mourn_inferior): No longer check | |
9601 | whether the target is running. | |
9602 | ||
5018ce90 PA |
9603 | 2020-01-10 Pedro Alves <palves@redhat.com> |
9604 | ||
9605 | * corelow.c (core_target::has_execution): Change parameter type to | |
9606 | inferior pointer. | |
9607 | * inferior.c (number_of_live_inferiors): Use | |
9608 | inferior::has_execution instead of target_has_execution_1. | |
9609 | * inferior.h (inferior::has_execution): New. | |
9610 | * linux-thread-db.c (thread_db_target::update_thread_list): Use | |
9611 | inferior::has_execution instead of target_has_execution_1. | |
9612 | * process-stratum-target.c | |
9613 | (process_stratum_target::has_execution): Change parameter type to | |
9614 | inferior pointer. Check the inferior's PID instead of | |
9615 | inferior_ptid. | |
9616 | * process-stratum-target.h | |
9617 | (process_stratum_target::has_execution): Change parameter type to | |
9618 | inferior pointer. | |
9619 | * record-full.c (record_full_core_target::has_execution): Change | |
9620 | parameter type to inferior pointer. | |
9621 | * target.c (target_has_execution_1): Change parameter type to | |
9622 | inferior pointer. | |
9623 | (target_has_execution_current): Adjust. | |
9624 | * target.h (target_ops::has_execution): Change parameter type to | |
9625 | inferior pointer. | |
9626 | (target_has_execution_1): Change parameter type to inferior | |
9627 | pointer. Change return type to bool. | |
9628 | * tracefile.h (tracefile_target::has_execution): Change parameter | |
9629 | type to inferior pointer. | |
9630 | ||
74375d18 PA |
9631 | 2020-01-10 Pedro Alves <palves@redhat.com> |
9632 | ||
9633 | * exceptions.c (print_flush): Remove current_top_target() check. | |
9634 | ||
acdf84a6 PA |
9635 | 2020-01-10 Pedro Alves <palves@redhat.com> |
9636 | ||
9637 | * remote.c (show_remote_exec_file): Show the current inferior's | |
9638 | exec-file instead of the command variable's value. | |
9639 | ||
ec506636 PA |
9640 | 2020-01-10 Pedro Alves <palves@redhat.com> |
9641 | ||
9642 | * record-full.c (record_full_resume_ptid): New global. | |
9643 | (record_full_target::resume): Set it. | |
9644 | (record_full_wait_1): Use record_full_resume_ptid instead of | |
9645 | inferior_ptid. | |
9646 | ||
873657b9 PA |
9647 | 2020-01-10 Pedro Alves <palves@redhat.com> |
9648 | ||
9649 | * gdbthread.h (scoped_restore_current_thread) | |
9650 | <dont_restore, restore, m_dont_restore>: Declare. | |
9651 | * thread.c (thread_alive): Add assertion. Return bool. | |
9652 | (switch_to_thread_if_alive): New. | |
9653 | (prune_threads): Switch inferior/thread. | |
9654 | (print_thread_info_1): Switch thread before calling target methods. | |
9655 | (scoped_restore_current_thread::restore): New, factored out from | |
9656 | ... | |
9657 | (scoped_restore_current_thread::~scoped_restore_current_thread): | |
9658 | ... this. | |
9659 | (scoped_restore_current_thread::scoped_restore_current_thread): | |
9660 | Add assertion. | |
9661 | (thread_apply_all_command, thread_select): Use | |
9662 | switch_to_thread_if_alive. | |
9663 | ||
7f0ae84c GB |
9664 | 2020-01-10 George Barrett <bob@bob131.so> |
9665 | ||
9666 | * stap-probe.c (stap_modify_semaphore): Don't check for null | |
9667 | semaphores. | |
9668 | (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check | |
9669 | for null semaphores. | |
9670 | ||
f5a7c406 AB |
9671 | 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com> |
9672 | ||
9673 | * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update | |
9674 | all source windows, and maintain horizontal scroll status while | |
9675 | doing so. | |
9676 | ||
9ae6bf64 TT |
9677 | 2020-01-09 Tom Tromey <tom@tromey.com> |
9678 | ||
9679 | PR tui/18932: | |
9680 | * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call | |
9681 | update_source_window, not print_source_lines. | |
9682 | ||
b2efe70c AB |
9683 | 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com> |
9684 | ||
9685 | * tui/tui.c (tui_enable): Register tui hooks after calling | |
9686 | tui_display_main. | |
9687 | ||
5f23a082 CB |
9688 | 2020-01-09 Christian Biesinger <cbiesinger@google.com> |
9689 | ||
9690 | * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW. | |
9691 | ||
3061113b SM |
9692 | 2020-01-08 Simon Marchi <simon.marchi@efficios.com> |
9693 | ||
9694 | * thread.c (print_thread_info_1): Fix indentation. | |
9695 | ||
57d75002 CB |
9696 | 2020-01-09 Christian Biesinger <cbiesinger@google.com> |
9697 | ||
9698 | * symtab.c (general_symbol_info::compute_and_set_names): Move the | |
9699 | unique_xmalloc_ptr outside the if to always free the demangled name. | |
9700 | ||
6a053cb1 TT |
9701 | 2020-01-08 Tom Tromey <tromey@adacore.com> |
9702 | ||
9703 | * xcoffread.c (enter_line_range, read_xcoff_symtab) | |
9704 | (process_xcoff_symbol, xcoff_symfile_offsets): Update. | |
9705 | * symtab.h (MSYMBOL_VALUE_ADDRESS): Update. | |
9706 | (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS): | |
9707 | Remove. | |
9708 | (section_offsets): New typedef. | |
9709 | * symtab.c (fixup_section, get_msymbol_address): Update. | |
9710 | * symmisc.c (dump_msymbols): Update. | |
9711 | * symfile.h (relative_addr_info_to_section_offsets) | |
9712 | (symfile_map_offsets_to_segments): Update. | |
9713 | * symfile.c (build_section_addr_info_from_objfile) | |
9714 | (init_objfile_sect_indices): Update. | |
9715 | (struct place_section_arg): Change type of "offsets". | |
9716 | (place_section): Update. | |
9717 | (relative_addr_info_to_section_offsets): Change type of | |
9718 | "section_offsets". Remove "num_sections" parameter. | |
9719 | (default_symfile_offsets, syms_from_objfile_1) | |
9720 | (set_objfile_default_section_offset): Update. | |
9721 | (reread_symbols): No need to preserve section offsets by hand. | |
9722 | (symfile_map_offsets_to_segments): Change type of "offsets". | |
9723 | * stap-probe.c (relocate_address): Update. | |
9724 | * stabsread.h (process_one_symbol): Update. | |
9725 | * solib-target.c (struct lm_info_target) <offsets>: Change type. | |
9726 | (solib_target_relocate_section_addresses): Update. | |
9727 | * solib-svr4.c (enable_break, svr4_relocate_main_executable): | |
9728 | Update. | |
9729 | * solib-frv.c (frv_relocate_main_executable): Update. | |
9730 | * solib-dsbt.c (dsbt_relocate_main_executable): Update. | |
9731 | * solib-aix.c (solib_aix_get_section_offsets): Change return | |
9732 | type. | |
9733 | (solib_aix_solib_create_inferior_hook): Update. | |
9734 | * remote.c (remote_target::get_offsets): Update. | |
9735 | * psymtab.c (find_pc_sect_psymtab): Update. | |
9736 | * psympriv.h (struct partial_symbol) <address, text_low, | |
9737 | text_high>: Update. | |
9738 | * objfiles.h (obj_section_offset): Update. | |
9739 | (struct objfile) <section_offsets>: Change type. | |
9740 | <num_sections>: Remove. | |
9741 | (objfile_relocate): Update. | |
9742 | * objfiles.c (entry_point_address_query): Update | |
9743 | (relocate_one_symbol): Change type of "section_offsets". | |
9744 | (objfile_relocate1, objfile_relocate1): Change type of | |
9745 | "new_offsets". | |
9746 | (objfile_rebase1): Update. | |
9747 | * mipsread.c (mipscoff_symfile_read): Update. | |
9748 | (read_alphacoff_dynamic_symtab): Remove "section_offsets" | |
9749 | parameter. | |
9750 | * mdebugread.c (parse_symbol): Change type of "section_offsets". | |
9751 | (parse_external, psymtab_to_symtab_1): Update. | |
9752 | * machoread.c (macho_symfile_offsets): Update. | |
9753 | * ia64-tdep.c (ia64_find_unwind_table): Update. | |
9754 | * hppa-tdep.c (read_unwind_info): Update. | |
9755 | * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update. | |
9756 | * dwarf2read.c (create_addrmap_from_index) | |
9757 | (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab) | |
9758 | (process_psymtab_comp_unit_reader, add_partial_symbol) | |
9759 | (add_partial_subprogram, process_full_comp_unit) | |
9760 | (read_file_scope, read_func_scope, read_lexical_block_scope) | |
9761 | (read_call_site_scope, dwarf2_rnglists_process) | |
9762 | (dwarf2_ranges_process, dwarf2_ranges_read) | |
9763 | (dwarf_decode_lines_1, var_decode_location, new_symbol) | |
9764 | (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset): | |
9765 | Update. | |
9766 | * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde): | |
9767 | Update. | |
9768 | * dtrace-probe.c (dtrace_probe::get_relocated_address): Update. | |
9769 | * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update. | |
9770 | (process_one_symbol): Change type of "section_offsets". | |
9771 | * ctfread.c (get_objfile_text_range): Update. | |
9772 | * coffread.c (coff_symtab_read, enter_linenos) | |
9773 | (process_coff_symbol): Update. | |
9774 | * coff-pe-read.c (add_pe_forwarded_sym): Update. | |
9775 | * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update. | |
9776 | ||
456e800a TT |
9777 | 2020-01-08 Tom Tromey <tromey@adacore.com> |
9778 | ||
9779 | * dwarf2read.c (parse_macro_definition): Use std::string. | |
9780 | (parse_macro_definition): Likewise. | |
9781 | ||
6dfa2fc2 TT |
9782 | 2020-01-08 Tom Tromey <tromey@adacore.com> |
9783 | ||
9784 | * dwarf2read.c (abbrev_table_read_table): Use std::vector. | |
9785 | (ATTR_ALLOC_CHUNK): Remove. | |
9786 | ||
421d1616 TT |
9787 | 2020-01-08 Tom Tromey <tromey@adacore.com> |
9788 | ||
9789 | * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr. | |
9790 | ||
43816ebc TT |
9791 | 2020-01-08 Tom Tromey <tromey@adacore.com> |
9792 | ||
9793 | * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr. | |
9794 | (dwarf2_compute_name, open_dwo_file): Likewise. | |
9795 | (process_enumeration_scope): Use std::vector. | |
9796 | (guess_partial_die_structure_name): Use unique_xmalloc_ptr. | |
9797 | (partial_die_info::fixup, dwarf2_start_subfile) | |
9798 | (guess_full_die_structure_name, dwarf2_name): Likewise. | |
9799 | (determine_prefix): Update. | |
9800 | (guess_full_die_structure_name): Make return type const. | |
9801 | (partial_die_full_name): Return unique_xmalloc_ptr. | |
9802 | (DW_FIELD_ALLOC_CHUNK): Remove. | |
9803 | ||
4212d509 TT |
9804 | 2020-01-07 Tom Tromey <tromey@adacore.com> |
9805 | ||
9806 | PR build/24937: | |
9807 | * stap-probe.c (class stap_static_probe_ops): Add constructor. | |
9808 | ||
06a6207a JT |
9809 | 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk> |
9810 | ||
9811 | * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build. | |
9812 | ||
153d79c4 AB |
9813 | 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com> |
9814 | ||
9815 | * stack.c (print_frame_info): Move disassemble_next_line code | |
9816 | inside source_print block. | |
9817 | ||
66182876 EZ |
9818 | 2020-01-06 Eli Zaretskii <eliz@gnu.org> |
9819 | ||
9820 | * gdbsupport/gdb_wait.c: Include <signal.h> instead of | |
9821 | gdb/signals.h, as we are now using native signal symbols. | |
9822 | ||
cbfa8581 SV |
9823 | 2020-01-06 Shahab Vahedi <shahab@synopsys.com> |
9824 | ||
9825 | * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid | |
9826 | overflow by an early check of content vs threshold. | |
aac66a4c | 9827 | * tui/tui-source.c (tui_source_window::line_is_displayed): |
cbfa8581 SV |
9828 | Likewise. |
9829 | ||
3f602821 EZ |
9830 | 2020-01-06 Eli Zaretskii <eliz@gnu.org> |
9831 | ||
9832 | * NEWS: Mention the recent fix of $_exitsignal on MS-Windows. | |
9833 | ||
a08c904d JT |
9834 | 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk> |
9835 | ||
9836 | * coff-pe-read.c (read_pe_exported_syms): Don't try to read the | |
9837 | export table if no section contains it's RVA. | |
9838 | ||
89a65580 EZ |
9839 | 2020-01-06 Eli Zaretskii <eliz@gnu.org> |
9840 | ||
9841 | * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT. | |
9842 | ||
8b7fcda2 HD |
9843 | 2020-01-06 Hannes Domani <ssbssa@yahoo.de> |
9844 | ||
9845 | * source.c (print_source_lines_base): Set last_line_listed. | |
9846 | ||
a61b4f69 SV |
9847 | 2020-01-06 Shahab Vahedi <shahab@synopsys.com> |
9848 | ||
9849 | * tui/tui-disasm.c: Remove trailing spaces. | |
9850 | ||
559e7e50 EZ |
9851 | 2020-01-06 Eli Zaretskii <eliz@gnu.org> |
9852 | Pedro Alves <palves@redhat.com> | |
9853 | ||
9854 | * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c. | |
9855 | * windows-tdep.c: New enumeration of WINDOWS_SIG* signals. | |
9856 | (windows_gdb_signal_to_target): New function, uses the above | |
9857 | enumeration to convert GDB internal signal codes to equivalent | |
9858 | Windows codes. | |
9859 | (windows_init_abi): Call set_gdbarch_gdb_signal_to_target. | |
9860 | * windows-nat.c: Include "gdb_wait.h". | |
9861 | (get_windows_debug_event): Extract the fatal exception from the | |
9862 | exit status and convert to the equivalent Posix signal number. | |
9863 | * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the | |
9864 | possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN. | |
9865 | * gdbsupport/gdb_wait.c: New file, implements | |
9866 | windows_status_to_termsig. | |
9867 | * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS) | |
9868 | (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW. | |
9869 | ||
f2302a34 AB |
9870 | 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com> |
9871 | ||
9872 | * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not | |
9873 | show_layout. | |
9874 | ||
6a5206eb LM |
9875 | 2020-01-05 Luis Machado <luis.machado@linaro.org> |
9876 | ||
9877 | * aarch64-linux-nat.c | |
9878 | (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64 | |
9879 | and bfd_mach_aarch64. | |
9880 | ||
6ec1d75e PW |
9881 | 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
9882 | ||
9883 | * ui-file.c (stdio_file::can_emit_style_escape) | |
9884 | (tee_file::can_emit_style_escape): Ensure style is used also on | |
9885 | gdb_stderr when gdb_stderr is a tty supporting styling, similarly | |
9886 | to gdb_stdout. | |
9887 | * main.c (set_gdb_data_directory): Use file style to output the | |
9888 | warning that the given pathname is not a directory. | |
9889 | * top.c (show_history_filename, gdb_safe_append_history) | |
9890 | (show_gdb_datadir): Use file style. | |
9891 | ||
44f81a76 HD |
9892 | 2020-01-03 Hannes Domani <ssbssa@yahoo.de> |
9893 | ||
9894 | * solib-target.c (struct lm_info_target): | |
9895 | Change offsets to be a unique_xmalloc_ptr. | |
9896 | (solib_target_relocate_section_addresses): Update. | |
9897 | ||
25057eb0 HD |
9898 | 2020-01-03 Hannes Domani <ssbssa@yahoo.de> |
9899 | ||
9900 | * windows-nat.c (windows_clear_solib): Free so_list linked list. | |
9901 | ||
6e2118f5 BE |
9902 | 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de> |
9903 | ||
9904 | * MAINTAINERS (Write After Approval): Add myself. | |
9905 | ||
8133c7dc LM |
9906 | 2020-01-02 Luis Machado <luis.machado@linaro.org> |
9907 | ||
9908 | * proc-service.c (get_ps_regcache): Remove reference to obsolete | |
9909 | Cell BE architecture. | |
9910 | * target.h (struct target_ops) <thread_architecture>: Likewise. | |
9911 | ||
48189bec HD |
9912 | 2020-01-01 Hannes Domani <ssbssa@yahoo.de> |
9913 | ||
9914 | * Makefile.in: Use INSTALL_PROGRAM_ENV. | |
9915 | ||
ead1063b HD |
9916 | 2020-01-01 Hannes Domani <ssbssa@yahoo.de> |
9917 | ||
9918 | * MAINTAINERS (Write After Approval): Add myself. | |
9919 | ||
e5d78223 JB |
9920 | 2020-01-01 Joel Brobecker <brobecker@adacore.com> |
9921 | ||
9922 | * gdbarch.sh: Update copyright year range of generated files. | |
9923 | ||
b811d2c2 JB |
9924 | 2020-01-01 Joel Brobecker <brobecker@adacore.com> |
9925 | ||
9926 | Update copyright year range in all GDB files. | |
9927 | ||
5f4def5c JB |
9928 | 2020-01-01 Joel Brobecker <brobecker@adacore.com> |
9929 | ||
9930 | * copyright.py: Convert to Python 3. | |
9931 | ||
51fd4002 JB |
9932 | 2020-01-01 Joel Brobecker <brobecker@adacore.com> |
9933 | ||
9934 | * copyright.py: Adapt after move of gnulib directory from gdb | |
9935 | directory to toplevel directory. | |
9936 | ||
5fb651f2 JB |
9937 | 2020-01-01 Joel Brobecker <brobecker@adacore.com> |
9938 | ||
9939 | * copyright.py (main): Exit if run from the wrong directory. | |
9940 | ||
5dd8bf88 JB |
9941 | 2020-01-01 Joel Brobecker <brobecker@adacore.com> |
9942 | ||
9943 | * top.c (print_gdb_version): Change copyright year to 2020. | |
9944 | ||
9f71dacb | 9945 | 2020-01-01 Joel Brobecker <brobecker@adacore.com> |
3d34df0a | 9946 | |
9f71dacb | 9947 | * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019. |
3d34df0a | 9948 | |
9f71dacb | 9949 | For older changes see ChangeLog-2019. |
c906108c SS |
9950 | \f |
9951 | Local Variables: | |
9952 | mode: change-log | |
9953 | left-margin: 8 | |
9954 | fill-column: 74 | |
9955 | version-control: never | |
57da7796 | 9956 | coding: utf-8 |
c906108c | 9957 | End: |