Commit | Line | Data |
---|---|---|
725cbb63 KS |
1 | 2019-04-25 Keith Seitz <keiths@redhat.com> |
2 | ||
3 | PR c++/24367 | |
4 | * cp-support.c (inspect_type): Don't attempt substitutions | |
5 | of symbol with the same name. | |
6 | ||
3d1cbb78 TT |
7 | 2019-04-25 Tom Tromey <tromey@adacore.com> |
8 | ||
9 | PR gdb/24475: | |
10 | * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt" | |
11 | static. | |
12 | ||
94aeb44b TT |
13 | 2019-04-25 Tom Tromey <tromey@adacore.com> |
14 | ||
15 | * xml-support.c (struct gdb_xml_parser) <set_error>: Take an | |
16 | rvalue reference. | |
17 | (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper) | |
18 | (gdb_xml_parser::parse): Use std::move. | |
19 | * python/python-internal.h (gdbpy_convert_exception): Take a const | |
20 | reference. | |
21 | * python/py-value.c (valpy_getitem, valpy_nonzero): Use | |
22 | std::move. | |
23 | * python/py-utils.c (gdbpy_convert_exception): Take a const | |
24 | reference. | |
25 | * python/py-inferior.c (infpy_write_memory, infpy_search_memory): | |
26 | Use std::move. | |
27 | * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands): | |
28 | Use std::move. | |
29 | * mi/mi-main.c (mi_print_exception): Take a const reference. | |
30 | * main.c (handle_command_errors): Take a const reference. | |
31 | * linespec.c (parse_linespec): Use std::move. | |
32 | * infcall.c (run_inferior_call): Use std::move. | |
33 | (call_function_by_hand_dummy): Use std::move. | |
34 | * exec.c (try_open_exec_file): Use std::move. | |
35 | * exceptions.h (exception_print, exception_fprintf) | |
36 | (exception_print_same): Update. | |
37 | * exceptions.c (print_exception, exception_print) | |
38 | (exception_fprintf, exception_print_same): Change parameters to | |
39 | const reference. | |
40 | * event-top.c (gdb_rl_callback_read_char_wrapper): Update. | |
41 | * common/new-op.c: Use std::move. | |
42 | * common/common-exceptions.h (struct gdb_exception): Add move | |
43 | constructor. | |
44 | (struct gdb_exception_error, struct gdb_exception_quit, struct | |
45 | gdb_quit_bad_alloc): Change constructor to move constructor. | |
46 | (throw_exception): Change parameter to rvalue reference. | |
47 | * common/common-exceptions.c (throw_exception): Take rvalue | |
48 | reference. | |
49 | * cli/cli-interp.c (safe_execute_command): Use std::move. | |
50 | * breakpoint.c (insert_bp_location, location_to_sals): Use | |
51 | std::move. | |
52 | ||
680d7fd5 TT |
53 | 2019-04-25 Tom Tromey <tromey@adacore.com> |
54 | ||
55 | * guile/scm-exception.c (gdbscm_scm_from_gdb_exception) | |
56 | (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception. | |
57 | * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c, | |
58 | guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c, | |
59 | guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c, | |
60 | guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c, | |
61 | guile/scm-value.c: Use unpack. | |
62 | * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a | |
63 | gdbscm_gdb_exception. | |
64 | (gdbscm_throw_gdb_exception): Likewise. | |
65 | (struct gdbscm_gdb_exception): New. | |
66 | (unpack): New function. | |
67 | (gdbscm_wrap): Use unpack. | |
68 | ||
c6fdd8b2 TT |
69 | 2019-04-25 Tom Tromey <tromey@adacore.com> |
70 | ||
71 | * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept) | |
72 | (gdb_rl_callback_handler): Use std::move. | |
73 | * common/common-exceptions.h (struct gdb_exception): Add move | |
74 | assignment operator. | |
75 | (throw_exception_sjlj): Change "exception" to const reference. | |
76 | * common/common-exceptions.c (exceptions_state_mc_catch): Update. | |
77 | (throw_exception_sjlj): Change "exception" to const reference. | |
78 | ||
cc06b668 TT |
79 | 2019-04-25 Tom Tromey <tromey@adacore.com> |
80 | ||
81 | * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update. | |
82 | * python/py-value.c (valpy_getitem, valpy_nonzero): Update. | |
83 | * python/py-inferior.c (infpy_write_memory, infpy_search_memory): | |
84 | Update. | |
85 | * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands): | |
86 | Update. | |
87 | * mi/mi-interp.c (mi_interp::exec): Update. | |
88 | * linespec.c (parse_linespec): Update. | |
89 | * infcall.c (run_inferior_call): Update. | |
90 | * guile/scm-value.c (gdbscm_value_to_lazy_string): Update. | |
91 | * guile/scm-symbol.c (gdbscm_lookup_symbol) | |
92 | (gdbscm_lookup_global_symbol): Update. | |
93 | * guile/scm-param.c (gdbscm_parameter_value): Update. | |
94 | * guile/scm-frame.c (gdbscm_frame_read_register) | |
95 | (gdbscm_frame_read_var): Update. | |
96 | * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update. | |
97 | * exec.c (try_open_exec_file): Update. | |
98 | * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept) | |
99 | (gdb_rl_callback_handler): Update. | |
100 | * common/common-exceptions.h (exception_none): Don't declare. | |
101 | * common/common-exceptions.c (exception_none): Don't define. | |
102 | (struct catcher) <exception>: Update. | |
103 | * cli/cli-interp.c (safe_execute_command): Update. | |
104 | * breakpoint.c (insert_bp_location, location_to_sals): Update. | |
105 | ||
cf532bd1 AT |
106 | 2019-04-25 Ali Tamur <tamur@google.com> |
107 | ||
108 | * dwarf2read.c (skip_one_die): Add DW_FORM_strx. | |
109 | (read_attribute_value): Likewise. | |
110 | (dwarf2_read_addr_index): Update comment. | |
111 | (read_str_index): Add DW_FORM_strx. | |
112 | (dwarf2_string_attr): Likewise. | |
113 | (dwarf2_const_value_attr): Likewise. | |
114 | (dump_die_shallow): Likewise. | |
115 | (dwarf2_fetch_constant_bytes): Likewise. | |
116 | (skip_form_bytes): Likewise. | |
117 | * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx. | |
118 | ||
82433e3e SDJ |
119 | 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com> |
120 | ||
121 | PR corefiles/11608 | |
122 | PR corefiles/18187 | |
123 | * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and | |
124 | OFFSET. Verify if current mapping contains an ELF header. | |
125 | (linux_find_memory_regions_full): Adjust call to | |
126 | dump_mapping_p. | |
127 | ||
723adb65 SL |
128 | 2019-04-25 Sandra Loosemore <sandra@codesourcery.com> |
129 | Kang Li <kanglictf@gmail.com> | |
130 | ||
131 | PR gdb/21600 | |
132 | ||
133 | * dwarf2-frame.c (read_initial_length): Be consistent about using | |
134 | unsigned representation of length. | |
135 | (decode_frame_entry_1): Likewise. Check for wraparound of | |
136 | end pointer as well as buffer overflow. | |
137 | ||
596179f7 SDJ |
138 | 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com> |
139 | ||
140 | * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print | |
141 | "vq". | |
142 | ||
a59240a4 TT |
143 | 2019-04-24 Tom Tromey <tromey@adacore.com> |
144 | ||
145 | * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields. | |
146 | ||
f872fdbb AB |
147 | 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com> |
148 | ||
149 | * s12z-tdep.c (s12z_unwind_pc): Delete. | |
150 | (s12z_unwind_sp): Delete. | |
151 | (s12z_gdbarch_init): Don't register deleted functions with | |
152 | gdbarch. | |
153 | ||
b614e6f3 AB |
154 | 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com> |
155 | ||
156 | * rl78-tdep.c (rl78_unwind_sp): Delete. | |
157 | (rl78_gdbarch_init): Don't register deleted function with gdbarch. | |
158 | ||
14faed38 AB |
159 | 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com> |
160 | ||
161 | * xstormy16-tdep.c (xstormy16_unwind_sp): Delete. | |
162 | (xstormy16_unwind_pc): Delete. | |
163 | (xstormy16_dummy_id): Delete. | |
164 | (xstormy16_gdbarch_init): Don't register deleted functions with | |
165 | gdbarch. | |
166 | ||
541aad8a AB |
167 | 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com> |
168 | ||
169 | * vax-tdep.c (vax_unwind_pc): Delete. | |
170 | (vax_gdbarch_init): Don't register deleted function with gdbarch. | |
171 | ||
29222070 AB |
172 | 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com> |
173 | ||
174 | * v850-tdep.c (v850_unwind_sp): Delete. | |
175 | (v850_unwind_pc): Delete. | |
176 | (v850_dummy_id): Delete. | |
177 | (v850_gdbarch_init): Don't register deleted functions with | |
178 | gdbarch. | |
179 | ||
0f534d76 AB |
180 | 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com> |
181 | ||
182 | * tilegx-tdep.c (tilegx_unwind_sp): Delete. | |
183 | (tilegx_unwind_pc): Delete. | |
184 | (tilegx_unwind_dummy_id): Delete. | |
185 | (tilegx_gdbarch_init): Don't register deleted functions with | |
186 | gdbarch. | |
187 | ||
1ba7b7f9 AB |
188 | 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com> |
189 | ||
190 | * tic6x-tdep.c (tic6x_unwind_sp): Delete. | |
191 | (tic6x_dummy_id): Delete. | |
192 | (tic6x_gdbarch_init): Don't register deleted functions with | |
193 | gdbarch. | |
194 | ||
d31f262c AB |
195 | 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com> |
196 | ||
197 | * sparc-tdep.c (sparc_unwind_pc): Delete. | |
198 | (sparc32_gdbarch_init): Don't register deleted function with | |
199 | gdbarch. | |
200 | ||
6d14d64d AB |
201 | 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com> |
202 | ||
203 | * sh-tdep.c (sh_unwind_sp): Delete. | |
204 | (sh_unwind_pc): Delete. | |
205 | (sh_dummy_id): Delete. | |
206 | (sh_gdbarch_init): Don't register deleted functions with | |
207 | gdbarch. | |
208 | ||
a40dde9d AB |
209 | 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com> |
210 | ||
211 | * score-tdep.c (score_unwind_sp): Delete. | |
212 | (score_unwind_pc): Delete. | |
213 | (score_dummy_id): Delete. | |
214 | (score_gdbarch_init): Don't register deleted functions with | |
215 | gdbarch. | |
216 | ||
47c47d69 AB |
217 | 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com> |
218 | ||
219 | * rx-tdep.c (rx_unwind_pc): Delete. | |
220 | (rx_unwind_sp): Delete. | |
221 | (rx_dummy_id): Delete. | |
222 | (rx_gdbarch_init): Don't register deleted functions with | |
223 | gdbarch. Update comment. | |
224 | ||
833a4480 AB |
225 | 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com> |
226 | ||
227 | * rs6000-tdep.c (rs6000_unwind_pc): Delete. | |
228 | (rs6000_dummy_id): Delete. | |
229 | (rs6000_gdbarch_init): Don't register deleted functions with | |
230 | gdbarch. | |
231 | ||
3f2cef49 AB |
232 | 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com> |
233 | ||
234 | * or1k-tdep.c (or1k_dummy_id): Delete. | |
235 | (or1k_gdbarch_init): Don't register deleted function with gdbarch. | |
236 | ||
96acf884 AB |
237 | 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com> |
238 | ||
239 | * nios2-tdep.c (nios2_dummy_id): Delete. | |
240 | (nios2_unwind_sp): Delete. | |
241 | (nios2_gdbarch_init): Don't register deleted functions with | |
242 | gdbarch. | |
243 | ||
ca0ab0aa AB |
244 | 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com> |
245 | ||
246 | * nds32-tdep.c (nds32_dummy_id): Delete. | |
247 | (nds32_unwind_pc): Delete. | |
248 | (nds32_unwind_sp): Delete. | |
249 | (nds32_gdbarch_init): Don't register deleted functions with | |
250 | gdbarch. | |
251 | ||
c8259044 AB |
252 | 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com> |
253 | ||
254 | * msp430-tdep.c (msp430_unwind_pc): Delete. | |
255 | (msp430_unwind_sp): Delete. | |
256 | (msp430_dummy_id): Delete. | |
257 | (msp430_gdbarch_init): Don't register deleted functions with | |
258 | gdbarch. | |
259 | ||
27f113c8 AB |
260 | 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com> |
261 | ||
262 | * moxie-tdep.c (moxie_unwind_sp): Delete. | |
263 | (moxie_unwind_pc): Delete. | |
264 | (moxie_dummy_id): Delete. | |
265 | (moxie_gdbarch_init): Don't register deleted functions with | |
266 | gdbarch. | |
267 | ||
aee6c3cd AB |
268 | 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com> |
269 | ||
270 | * mn10300-tdep.c (mn10300_dummy_id): Delete. | |
271 | (mn10300_unwind_pc): Delete. | |
272 | (mn10300_unwind_sp): Delete. | |
273 | (mn10300_push_dummy_call): Use gdbarch_unwind_sp not | |
274 | mn10300_unwind_sp. | |
275 | (mn10300_frame_unwind_init): Don't register deleted functions with | |
276 | gdbarch. | |
277 | ||
8e2b5aea AB |
278 | 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com> |
279 | ||
280 | * mep-tdep.c (mep_unwind_pc): Delete. | |
281 | (mep_unwind_sp): Delete. | |
282 | (mep_dummy_id): Delete. | |
283 | (mep_gdbarch_init): Don't register deleted functions with | |
284 | gdbarch. | |
285 | ||
43cf3ede AB |
286 | 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com> |
287 | ||
288 | * m68hc11-tdep.c (m68hc11_unwind_pc): Delete. | |
289 | (m68hc11_unwind_sp): Delete. | |
290 | (m68hc11_gdbarch_init): Don't register deleted functions with | |
291 | gdbarch. | |
292 | ||
5e79b7bb AB |
293 | 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com> |
294 | ||
295 | * m32r-tdep.c (m32r_unwind_sp): Delete. | |
296 | (m32r_unwind_pc): Delete. | |
297 | (m32r_dummy_id): Delete. | |
298 | (m32r_gdbarch_init): Don't register deleted functions with | |
299 | gdbarch. | |
300 | ||
89b268d8 AB |
301 | 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com> |
302 | ||
303 | * m32c-tdep.c (m32c_unwind_pc): Delete. | |
304 | (m32c_unwind_sp): Delete. | |
305 | (m32c_dummy_id): Delete. | |
306 | (m32c_gdbarch_init): Don't register deleted functions with | |
307 | gdbarch. | |
308 | ||
946c28d2 AB |
309 | 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com> |
310 | ||
311 | * gdb/lm32-tdep.c (lm32_unwind_sp): Delete. | |
312 | (lm32_unwind_pc): Delete. | |
313 | (lm32_dummy_id): Delete. | |
314 | (lm32_gdbarch_init): Don't register deleted functions with | |
315 | gdbarch. | |
316 | ||
bf12844a AB |
317 | 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com> |
318 | ||
319 | * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete. | |
320 | (iq2000_unwind_pc): Delete. | |
321 | (iq2000_dummy_id): Delete. | |
322 | (iq2000_gdbarch_init): Don't register deleted functions with | |
323 | gdbarch. | |
324 | ||
ecbc06d2 AB |
325 | 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com> |
326 | ||
327 | * nds32-tdep.c (nds32_type_align): Delete. | |
328 | (nds32_push_dummy_call): Use type_align instead. | |
329 | ||
030197b4 AB |
330 | 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com> |
331 | ||
332 | * arm-tdep.c (arm_type_align): Only handle vector override case. | |
333 | (arm_push_dummy_call): Use type_align. | |
334 | (arm_gdbarch_init): Register arm_type_align gdbarch function. | |
335 | ||
b907456c AB |
336 | 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com> |
337 | ||
338 | * aarch64-tdep.c (aarch64_type_align): Only handle vector override | |
339 | case. | |
340 | (pass_on_stack): Use type_align. | |
341 | (aarch64_gdbarch_init): Register aarch64_type_align gdbarch | |
342 | function. | |
343 | ||
9e97ba43 TT |
344 | 2019-04-23 Tom Tromey <tromey@adacore.com> |
345 | ||
346 | * dwarf2read.c (line_header::file_name_at): Remove unused | |
347 | overload. | |
348 | ||
6892f601 TV |
349 | 2019-04-23 Tom de Vries <tdevries@suse.de> |
350 | ||
351 | PR gdb/24438 | |
352 | * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz | |
353 | invocation. | |
354 | ||
336d760d AT |
355 | |
356 | 2019-03-27 Ali Tamur <tamur@google.com> | |
357 | ||
358 | * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment | |
359 | * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx | |
360 | * dwarf2expr.h(dwarf_expr_context::offset): Update comment | |
361 | (dwarf_expr_context::get_addr_index): Likewise | |
362 | * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise | |
363 | (symbol_needs_eval_context::get_addr_index): Likewise | |
364 | (disassemble_dwarf_expression): Add DW_OP_addrx | |
365 | * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx | |
366 | (read_cutu_die_from_dwo): Update comment | |
367 | (skip_one_die): Add DW_FORM_addrx | |
368 | (read_attribute_value): Likewise | |
369 | (var_decode_location): Add DW_OP_addrx | |
370 | (dwarf2_const_value_attr): Add DW_FORM_addrx | |
371 | (dump_die_shallow): Likewise | |
372 | (dwarf2_fetch_constant_bytes): Likewise | |
373 | (decode_locdesc): Add DW_OP_addrx | |
374 | (skip_form_bytes): Add DW_FORM_addrx | |
375 | ||
ad9d13f8 AT |
376 | 2019-04-22 Ali Tamur <tamur@google.com> |
377 | ||
378 | * MAINTAINERS (Write After Approval): Add self. | |
379 | ||
d70cc3ba SM |
380 | 2019-04-22 Simon Marchi <simon.marchi@efficios.com> |
381 | ||
382 | * solib-svr4.c (get_svr4_info): Add pspace parameter. | |
383 | (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info. | |
384 | (open_symbol_file_object): Likewise. | |
385 | (svr4_default_sos): Add info parameter. | |
386 | (svr4_read_so_list): Likewise. | |
387 | (svr4_current_sos_direct): Adjust functions calls to pass down | |
388 | info. | |
389 | (svr4_current_sos_1): Add info parameter. | |
390 | (svr4_current_sos): Call get_svr4_info, pass info down to | |
391 | svr4_current_sos_1. | |
392 | (svr4_fetch_objfile_link_map): Pass objfile->pspace to | |
393 | get_svr4_info. | |
394 | (svr4_in_dynsym_resolve_code): Pass current_program_space to | |
395 | get_svr4_info. | |
396 | (probes_table_htab_remove_objfile_probes): Pass objfile->pspace | |
397 | to get_svr4_info. | |
398 | (probes_table_remove_objfile_probes): Likewise. | |
399 | (register_solib_event_probe): Add info parameter. | |
400 | (solist_update_incremental): Pass info parameter down to | |
401 | svr4_read_so_list. | |
402 | (disable_probes_interface): Add info parameter. | |
403 | (svr4_handle_solib_event): Pass current_program_space to | |
404 | get_svr4_info. Adjust disable_probes_interface cleanup. | |
405 | (svr4_create_probe_breakpoints): Add info parameter, pass it | |
406 | down to register_solib_event_probe. | |
407 | (svr4_create_solib_event_breakpoints): Add info parameter, | |
408 | pass it down to svr4_create_probe_breakpoints. | |
409 | (enable_break): Pass info down to | |
410 | svr4_create_solib_event_breakpoints. | |
411 | (svr4_solib_create_inferior_hook): Pass current_program_space to | |
412 | get_svr4_info. | |
413 | (svr4_clear_solib): Likewise. | |
414 | ||
7905fc35 PA |
415 | 2019-04-22 Pedro Alves <palves@redhat.com> |
416 | ||
417 | * solib-svr4.c (svr4_free_objfile_observer): New. | |
418 | (probe_and_action::objfile): New field. | |
419 | (probes_table_htab_remove_objfile_probes) | |
420 | (probes_table_remove_objfile_probes): New functions. | |
421 | (register_solib_event_probe): Add 'objfile' parameter. Store it | |
422 | in the new probe_and_action. Don't store the probe in 'lookup'. | |
423 | (svr4_create_probe_breakpoints): Pass objfile to | |
424 | register_solib_event_probe. | |
425 | (_initialize_svr4_solib): Register a free_objfile observer. | |
426 | ||
fb881986 TT |
427 | 2019-04-19 Tom Tromey <tom@tromey.com> |
428 | ||
429 | * common/queue.h: Remove. | |
430 | ||
8732db6c TT |
431 | 2019-04-19 Tom Tromey <tom@tromey.com> |
432 | ||
433 | * event-loop.c: Don't include "common/queue.h". | |
434 | ||
97dfbadd TT |
435 | 2019-04-19 Tom Tromey <tom@tromey.com> |
436 | ||
437 | * remote.c (remote_target): Use delete. | |
438 | * remote-notif.h: Include <list>, not "common/queue.h". | |
439 | (notif_client_p): Remove typedef. | |
440 | (remote_notif_state): Add constructor, destructor, initializer. | |
441 | <notif_queue>: Now a std::list. | |
442 | (remote_notif_state_xfree): Don't declare. | |
443 | * remote-notif.c (remote_notif_process, handle_notification) | |
444 | (remote_notif_state_allocate): Update. | |
445 | (~remote_notif_state): Rename from remote_notif_state_xfree. | |
446 | ||
cf250e36 TT |
447 | 2019-04-19 Tom Tromey <tom@tromey.com> |
448 | ||
449 | * symfile.c (reread_symbols): Update. | |
450 | * objfiles.c (objfile_register_static_link) | |
451 | (objfile_lookup_static_link): Update | |
452 | (~objfile) Don't delete static_links. | |
453 | * objfiles.h (struct objfile) <static_links>: Now an htab_up. | |
454 | ||
61f4b350 TT |
455 | 2019-04-19 Tom Tromey <tom@tromey.com> |
456 | ||
457 | * type-stack.h (struct type_stack) <insert>: Constify string. | |
458 | * type-stack.c (type_stack::insert): Constify string. | |
459 | * gdbtypes.h (lookup_template_type): Update. | |
460 | (address_space_name_to_int): Update. | |
461 | * gdbtypes.c (address_space_name_to_int): Make space_identifier | |
462 | const. | |
463 | (lookup_template_type): Make name const. | |
464 | * c-exp.y: Update rules. | |
465 | (lex_one_token, classify_name, classify_inner_name) | |
466 | (c_print_token): Update. | |
467 | * p-exp.y: Update rules. | |
468 | (yylex): Update. | |
469 | * f-exp.y: Update rules. | |
470 | (yylex): Update. | |
471 | * d-exp.y: Update rules. | |
472 | (lex_one_token, classify_name, classify_inner_name): Update. | |
473 | * parse.c (write_dollar_variable, copy_name): Return std::string. | |
474 | * parser-defs.h (copy_name): Change return type. | |
475 | * m2-exp.y: Update rules. | |
476 | (yylex): Update. | |
477 | * go-exp.y (lex_one_token): Update. | |
478 | Update rules. | |
479 | (classify_unsafe_function, classify_packaged_name) | |
480 | (classify_name, yylex): Update. | |
481 | ||
189b8c2e ST |
482 | 2019-04-19 Sergei Trofimovich <siarheit@google.com> |
483 | ||
484 | * configure.ac: add --enable-source-highlight switch. | |
485 | * configure: Regenerate. | |
486 | * top.c (print_gdb_version): plumb --enable-source-highlight | |
487 | status to "show configuration". | |
488 | ||
8ecb59f8 TT |
489 | 2019-04-19 Tom Tromey <tromey@adacore.com> |
490 | ||
491 | * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1): | |
492 | Check ADA_TYPE_P. | |
493 | (empty_record, ada_template_to_fixed_record_type_1) | |
494 | (template_to_static_fixed_type) | |
495 | (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC. | |
496 | * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT. | |
497 | * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New | |
498 | macros. | |
499 | ||
62160ec9 TT |
500 | 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru> |
501 | ||
502 | PR symtab/24423: | |
503 | * source.c (print_source_lines_base): Advance "iter" when a | |
504 | control character is seen. | |
505 | ||
f2ae8bc8 PW |
506 | 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
507 | ||
508 | * inferior.h (struct infcall_suspend_state_deleter): | |
509 | Catch exception in destructor to avoid crash. | |
510 | ||
d563b953 PW |
511 | 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
512 | ||
513 | * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias | |
514 | close to the add_com "shell". | |
515 | ||
dc34c897 TT |
516 | 2019-04-18 Tom Tromey <tromey@adacore.com> |
517 | ||
518 | * process-stratum-target.h (class process_stratum_target) | |
519 | <stratum>: Add "final". | |
520 | ||
a12e5744 TT |
521 | 2019-04-17 Tom Tromey <tromey@adacore.com> |
522 | ||
523 | * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt" | |
524 | against nullptr before use. | |
525 | ||
a7e559cc AH |
526 | 2019-04-17 Alan Hayward <alan.hayward@arm.com> |
527 | ||
528 | * nat/linux-waitpid.c (linux_debug): Call debug_vprintf. | |
529 | ||
c01660c6 AB |
530 | 2019-04-17 Jim Wilson <jimw@sifive.com> |
531 | Andrew Burgess <andrew.burgess@embecosm.com> | |
532 | ||
533 | * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where | |
534 | code read might fail, assume 4-byte breakpoint in that case. | |
535 | ||
4aa866af LS |
536 | 2019-04-15 Leszek Swirski <leszeks@google.com> |
537 | ||
538 | * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference | |
539 | rather than a hand-rolled POD check when checking for forced MEMORY | |
540 | classification. | |
541 | ||
48574d91 AH |
542 | 2019-04-15 Alan Hayward <alan.hayward@arm.com> |
543 | ||
544 | * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length. | |
545 | * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New | |
546 | function. | |
547 | (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks. | |
548 | (aarch64_sve_regs_copy_from_reg_buf): Likewise. | |
549 | * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New | |
550 | declaration. | |
551 | ||
4da037ef AH |
552 | 2019-04-15 Alan Hayward <alan.hayward@arm.com> |
553 | ||
554 | * aarch64-linux-nat.c | |
555 | (aarch64_linux_nat_target::thread_architecture): Add override. | |
556 | * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for | |
557 | each VQ. | |
558 | ||
ccb8d7e8 AH |
559 | 2019-04-15 Alan Hayward <alan.hayward@arm.com> |
560 | ||
561 | * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup. | |
562 | ||
35add35e AB |
563 | 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com> |
564 | ||
565 | * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex | |
566 | target types of size 96-bits, add some additional comments, and | |
567 | check that the builtin type we found was the correct size. | |
568 | ||
51196bbc EZ |
569 | 2019-04-12 Eli Zaretskii <eliz@gnu.org> |
570 | ||
571 | * utils.c (prompt_for_continue): Don't restore the styling at the | |
572 | end, as applied_style has the wrong value. This fixes styling in | |
573 | long lists of file names that are interrupted by the "Continue?" | |
574 | prompt. | |
575 | ||
62253a61 AB |
576 | 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com> |
577 | ||
578 | * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC. | |
579 | * c-lang.c (c_language_defn): Likewise. | |
580 | (cplus_language_defn): Likewise. | |
581 | (asm_language_defn): Likewise. | |
582 | (minimal_language_defn): Likewise. | |
583 | * d-lang.c (d_language_defn): Likewise. | |
584 | * f-lang.c (f_language_defn): Likewise. | |
585 | * go-lang.c (go_language_defn): Likewise. | |
586 | * language.c (unknown_language_defn): Likewise. | |
587 | (auto_language_defn): Likewise. | |
588 | * language.h (struct language_defn): Remove la_magic field. | |
589 | (LANG_MAGIC): Delete. | |
590 | * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC. | |
591 | * objc-lang.c (objc_language_defn): Likewise. | |
592 | * opencl-lang.c (opencl_language_defn): Likewise. | |
593 | * p-lang.c (pascal_language_defn): Likewise. | |
594 | * rust-lang.c (rust_language_defn): Likewise. | |
595 | ||
a9158a86 AB |
596 | 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com> |
597 | ||
598 | * riscv-tdep.c (riscv_type_align): New function. | |
599 | (riscv_type_alignment): Delete. | |
600 | (riscv_arg_location): Use 'type_align'. | |
601 | (riscv_gdbarch_init): Register riscv_type_align gdbarch function. | |
602 | ||
41077b66 AB |
603 | 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com> |
604 | ||
605 | * gdbtypes.c (type_align): A struct with no non-static fields also | |
606 | has alignment of 1. | |
607 | ||
9f0272f8 AB |
608 | 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com> |
609 | ||
610 | * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first | |
611 | component to 0. | |
612 | (riscv_struct_info::riscv_struct_info): Initialise m_offsets | |
613 | member. | |
614 | (riscv_struct_info::analyse): New implementation using new | |
615 | analyse_inner member function. | |
616 | (riscv_struct_info::field_offset): New member function. | |
617 | (riscv_struct_info::m_offsets): New member variable. | |
618 | (riscv_struct_info::analyse_inner): New private member function, | |
619 | takes the old implementation of riscv_struct_info::analyse but | |
620 | extended to track field offsets. | |
621 | (riscv_call_arg_struct): Update the struct folding special cases | |
622 | to handle cases where empty C++ structs, which are non-zero | |
623 | length, are found. | |
624 | (riscv_arg_location): Initialise the length of each location, a | |
625 | non-zero length now indicates the location is in use. | |
626 | (riscv_push_dummy_call): Allow for the first location having a | |
627 | non-zero offset when setting up arguments. | |
628 | (riscv_return_value): Likewise, but for return values. | |
629 | ||
02cf60c7 TT |
630 | 2019-04-11 Tom Tromey <tromey@adacore.com> |
631 | ||
632 | * utils.c (internal_vproblem): Make "msg" const. | |
633 | ||
68811f8f AH |
634 | 2019-04-11 Alan Hayward <alan.hayward@arm.com> |
635 | ||
636 | * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs. | |
637 | * trad-frame.c (trad_frame_reset_saved_regs): New function. | |
638 | (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs. | |
639 | * trad-frame.h (trad_frame_reset_saved_regs): New declaration. | |
640 | ||
3f52fdbc KB |
641 | 2019-04-10 Kevin Buettner <kevinb@redhat.com> |
642 | ||
643 | * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New | |
644 | function. | |
645 | (fill_gregset): Call amd64_linux_collect_native_gregset instead | |
646 | of amd64_collect_native_gregset. | |
647 | (amd64_linux_nat_target::store_registers): Likewise. | |
648 | ||
e9ad22ee TT |
649 | 2019-04-10 Tom Tromey <tom@tromey.com> |
650 | ||
651 | * symtab.c (lookup_global_symbol_from_objfile) | |
652 | (lookup_symbol_in_objfile_from_linkage_name): Use the iterator. | |
653 | * objfiles.h (class separate_debug_iterator): New. | |
654 | (class separate_debug_range): New. | |
655 | (struct objfile) <separate_debug_objfiles>: New method. | |
656 | (objfile_separate_debug_iterate): Don't declare. | |
657 | * objfiles.c (separate_debug_iterator::operator++): Rename from | |
658 | objfile_separate_debug_iterate. | |
659 | (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the | |
660 | iterator. | |
661 | * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the | |
662 | iterator. | |
663 | ||
ee371134 TT |
664 | 2019-04-10 Tom Tromey <tom@tromey.com> |
665 | ||
666 | * symfile.c (reread_symbols): Remove old comment. | |
667 | * objfiles.c (free_all_objfiles): Fix a typo. | |
668 | ||
bf227d61 TT |
669 | 2019-04-10 Tom Tromey <tom@tromey.com> |
670 | ||
671 | * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach. | |
672 | * minsyms.c (lookup_minimal_symbol): Use foreach. | |
673 | (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name) | |
674 | (lookup_minimal_symbol_solib_trampoline): Likewise. | |
675 | * symfile.c (reread_symbols): Use foreach. | |
676 | ||
8dc433a0 TT |
677 | 2019-04-09 Ivan Begert <ivanbegert@gmail.com> |
678 | Tom Tromey <tromey@adacore.com> | |
679 | ||
680 | PR rust/24414: | |
681 | * rust-exp.y (rust_parser::lex_number): Use strtoulst. | |
682 | (rust_lex_int_test): Change "value" to be LONGEST. | |
683 | (rust_lex_tests): Add test for long integer literal. | |
684 | ||
9ab8741a TT |
685 | 2019-04-09 Tom Tromey <tromey@adacore.com> |
686 | ||
687 | * remote.c (remote_target::remote_add_inferior): Change fake_pid_p | |
688 | to bool. | |
689 | (extended_remote_target::attach): Update. | |
690 | (remote_target::remote_notice_new_inferior): Update. | |
691 | (remote_target::add_current_inferior_and_thread): Update. | |
692 | * inferior.c (exit_inferior_1): Use "false". | |
693 | * corelow.c (add_to_thread_list): Make fake_pid_p bool. | |
694 | ||
e242fd12 SM |
695 | 2019-04-09 Simon Marchi <simon.marchi@efficios.com> |
696 | ||
9ca1957f | 697 | * infcmd.c (run_command_1): Pass -qualified to tbreak when using |
e242fd12 SM |
698 | the "start" command. |
699 | ||
2b0c8b01 KB |
700 | 2019-04-08 Kevin Buettner <kevinb@redhat.com> |
701 | ||
702 | * python/py-inferior.c (infpy_thread_from_thread_handle): | |
703 | Adjust comments to reflect renaming of thread_from_thread_handle | |
704 | to thread_from_handle. Adjust keywords. Fix type error message. | |
705 | (inferior_object_methods): Add thread_from_handle. Retain | |
706 | thread_from_thread_handle, but mark it as deprecated. | |
707 | ||
50a82723 KB |
708 | 2019-04-08 Kevin Buettner <kevinb@redhat.com> |
709 | ||
710 | * gdbthread.h (find_thread_by_handle): Revise declaration. | |
711 | * thread.c (find_thread_by_handle): Likewise. Adjust | |
712 | implementation too. | |
713 | * python/py-inferior.c (infpy_thread_from_thread_handle): Add | |
714 | support for buffer objects as handles. | |
715 | ||
cf63b016 KB |
716 | 2019-04-08 Kevin Buettner <kevinb@redhat.com> |
717 | ||
718 | * python/py-infthread.c (thpy_thread_handle): New function. | |
719 | (thread_object_methods): Register thpy_thread_handle. | |
720 | ||
3d6c6204 KB |
721 | 2019-04-08 Kevin Buettner <kevinb@redhat.com> |
722 | ||
723 | * gdbthread.h (thread_to_thread_handle): Declare. | |
724 | * thread.c (gdbtypes.h): Include. | |
725 | (thread_to_thread_handle): New function. | |
726 | ||
727 | * target.h (struct target_ops): Add thread_info_to_thread_handle. | |
728 | (target_thread_info_to_thread_handle): Declare. | |
729 | * target.c (target_thread_info_to_thread_handle): New function. | |
730 | * target-debug.h (target_debug_print_gdb_byte_vector): Define. | |
731 | * target-delegates.c: Regenerate. | |
732 | ||
733 | * linux-thread-db.c (class thread_db_target): Add method | |
734 | thread_info_to_thread_handle. | |
735 | (thread_db_target::thread_info_to_thread_handle): Define. | |
736 | * remote.c (class remote_target): Add new method | |
737 | thread_info_to_thread_handle. | |
738 | (remote_target::thread_info_to_thread_handle): Define. | |
739 | ||
56be6ea8 PA |
740 | 2019-04-08 Pedro Alves <palves@redhat.com> |
741 | ||
742 | * common/common-exceptions.c (throw_exception): Don't create | |
743 | named object to throw; throw directly. | |
744 | (throw_it): Likewise. Don't initialize gdb_exception::message | |
745 | here, with new; pass FMT and AP to the ctor instead. | |
746 | * common/common-exceptions.h: Include <string>. | |
747 | (gdb_exception::gdb_exception(enum return_reason, enum errors, | |
748 | const char *, va_list)): New ctor. Use std::make_shared. | |
749 | (gdb_exception_error::gdb_exception_error(enum return_reason, enum | |
750 | errors)): Delete. | |
751 | (gdb_exception_error::gdb_exception_error(enum errors, const char | |
752 | *, va_list)): New. | |
753 | (gdb_exception_error::gdb_exception_error(const gdb_exception &)): | |
754 | Add assertion. | |
755 | (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum | |
756 | errors)): Delete. | |
757 | (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New. | |
758 | (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)): | |
759 | Add assertion. | |
760 | ||
eedc3f4f TT |
761 | 2019-04-08 Tom Tromey <tom@tromey.com> |
762 | ||
763 | * valops.c (value_rtti_indirect_type): Replace throw_exception | |
764 | with throw. | |
765 | * tracefile-tfile.c (tfile_target_open): Replace throw_exception | |
766 | with throw. | |
767 | * thread.c (thr_try_catch_cmd): Replace throw_exception with | |
768 | throw. | |
769 | * target.c (target_translate_tls_address): Replace throw_exception | |
770 | with throw. | |
771 | * stack.c (frame_apply_command_count): Replace throw_exception | |
772 | with throw. | |
773 | * solib-spu.c (append_ocl_sos): Replace throw_exception with | |
774 | throw. | |
775 | * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception | |
776 | with throw. | |
777 | * rs6000-tdep.c (rs6000_frame_cache) | |
778 | (rs6000_epilogue_frame_cache): Replace throw_exception with throw. | |
779 | * remote.c: Replace throw_exception with throw. | |
780 | * record-full.c (record_full_message, record_full_wait_1) | |
781 | (record_full_restore): Replace throw_exception with throw. | |
782 | * record-btrace.c: | |
783 | (get_thread_current_frame_id, record_btrace_start_replaying) | |
784 | (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start) | |
785 | (cmd_record_btrace_start): Replace throw_exception with throw. | |
786 | * parse.c (parse_exp_in_context_1): Replace throw_exception with | |
787 | throw. | |
788 | * linux-nat.c (detach_one_lwp, linux_resume_one_lwp) | |
789 | (resume_stopped_resumed_lwps): Replace throw_exception with throw. | |
790 | * linespec.c: | |
791 | (find_linespec_symbols): Replace throw_exception with throw. | |
792 | * infrun.c (displaced_step_prepare, resume): Replace | |
793 | throw_exception with throw. | |
794 | * infcmd.c (post_create_inferior): Replace throw_exception with | |
795 | throw. | |
796 | * inf-loop.c (inferior_event_handler): Replace throw_exception | |
797 | with throw. | |
798 | * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache) | |
799 | (i386_sigtramp_frame_cache): Replace throw_exception with throw. | |
800 | * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle) | |
801 | (get_prev_frame_always, get_frame_pc_if_available) | |
802 | (get_frame_address_in_block_if_available, get_frame_language): | |
803 | Replace throw_exception with throw. | |
804 | * frame-unwind.c (frame_unwind_try_unwinder): Replace | |
805 | throw_exception with throw. | |
806 | * eval.c (fetch_subexp_value, evaluate_var_value) | |
807 | (evaluate_funcall, evaluate_subexp_standard): Replace | |
808 | throw_exception with throw. | |
809 | * dwarf2loc.c (call_site_find_chain) | |
810 | (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval): | |
811 | Replace throw_exception with throw. | |
812 | * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception | |
813 | with throw. | |
814 | * darwin-nat.c (darwin_attach_pid): Replace throw_exception with | |
815 | throw. | |
816 | * cp-abi.c (baseclass_offset): Replace throw_exception with throw. | |
817 | * completer.c (complete_line_internal): Replace throw_exception | |
818 | with throw. | |
819 | * compile/compile-object-run.c (compile_object_run): Replace | |
820 | throw_exception with throw. | |
821 | * cli/cli-script.c (process_next_line): Replace throw_exception | |
822 | with throw. | |
823 | * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace) | |
824 | (btrace_enable, btrace_maint_update_pt_packets): Replace | |
825 | throw_exception with throw. | |
826 | * breakpoint.c (create_breakpoint, save_breakpoints): Replace | |
827 | throw_exception with throw. | |
828 | * break-catch-throw.c (re_set_exception_catchpoint): Replace | |
829 | throw_exception with throw. | |
830 | * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache) | |
831 | (amd64_epilogue_frame_cache): Replace throw_exception with throw. | |
832 | * aarch64-tdep.c (aarch64_make_prologue_cache) | |
833 | (aarch64_make_stub_cache): Replace throw_exception with throw. | |
834 | ||
26003a20 TT |
835 | 2019-04-08 Tom Tromey <tom@tromey.com> |
836 | ||
837 | * common/common-exceptions.c (throw_exception): Rename from | |
838 | throw_exception_cxx. Remove old copy. Make argument const. | |
839 | (throw_it): Create and throw exception objects directly. | |
840 | * common/common-exceptions.h (throw_exception): Make argument | |
841 | const. | |
842 | (struct gdb_exception_error): Add constructor. | |
843 | (struct gdb_exception_quit): Add constructor. | |
844 | ||
d272eb37 TT |
845 | 2019-04-08 Tom Tromey <tom@tromey.com> |
846 | ||
847 | * common/common-exceptions.h (exception_rethrow): Don't declare. | |
848 | (TRY_SJLJ): Update comment. | |
849 | (TRY, CATCH, END_CATCH): Remove. | |
850 | * common/common-exceptions.c (exception_rethrow): Remove. | |
851 | ||
230d2906 TT |
852 | 2019-04-08 Tom Tromey <tom@tromey.com> |
853 | ||
854 | * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL): | |
855 | Remove. | |
856 | (gdb_exception_error): Rename from | |
857 | gdb_exception_RETURN_MASK_ERROR. | |
858 | (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT. | |
859 | (gdb_quit_bad_alloc): Update. | |
860 | * aarch64-tdep.c: Update. | |
861 | * ada-lang.c: Update. | |
862 | * ada-typeprint.c: Update. | |
863 | * ada-valprint.c: Update. | |
864 | * amd64-tdep.c: Update. | |
865 | * arch-utils.c: Update. | |
866 | * break-catch-throw.c: Update. | |
867 | * breakpoint.c: Update. | |
868 | * btrace.c: Update. | |
869 | * c-varobj.c: Update. | |
870 | * cli/cli-cmds.c: Update. | |
871 | * cli/cli-interp.c: Update. | |
872 | * cli/cli-script.c: Update. | |
873 | * common/common-exceptions.c: Update. | |
874 | * common/new-op.c: Update. | |
875 | * common/selftest.c: Update. | |
876 | * compile/compile-c-symbols.c: Update. | |
877 | * compile/compile-cplus-symbols.c: Update. | |
878 | * compile/compile-object-load.c: Update. | |
879 | * compile/compile-object-run.c: Update. | |
880 | * completer.c: Update. | |
881 | * corelow.c: Update. | |
882 | * cp-abi.c: Update. | |
883 | * cp-support.c: Update. | |
884 | * cp-valprint.c: Update. | |
885 | * darwin-nat.c: Update. | |
886 | * disasm-selftests.c: Update. | |
887 | * dtrace-probe.c: Update. | |
888 | * dwarf-index-cache.c: Update. | |
889 | * dwarf-index-write.c: Update. | |
890 | * dwarf2-frame-tailcall.c: Update. | |
891 | * dwarf2-frame.c: Update. | |
892 | * dwarf2loc.c: Update. | |
893 | * dwarf2read.c: Update. | |
894 | * eval.c: Update. | |
895 | * event-loop.c: Update. | |
896 | * event-top.c: Update. | |
897 | * exec.c: Update. | |
898 | * f-valprint.c: Update. | |
899 | * fbsd-tdep.c: Update. | |
900 | * frame-unwind.c: Update. | |
901 | * frame.c: Update. | |
902 | * gdbtypes.c: Update. | |
903 | * gnu-v3-abi.c: Update. | |
904 | * guile/guile-internal.h: Update. | |
905 | * guile/scm-block.c: Update. | |
906 | * guile/scm-breakpoint.c: Update. | |
907 | * guile/scm-cmd.c: Update. | |
908 | * guile/scm-disasm.c: Update. | |
909 | * guile/scm-frame.c: Update. | |
910 | * guile/scm-lazy-string.c: Update. | |
911 | * guile/scm-math.c: Update. | |
912 | * guile/scm-param.c: Update. | |
913 | * guile/scm-ports.c: Update. | |
914 | * guile/scm-pretty-print.c: Update. | |
915 | * guile/scm-symbol.c: Update. | |
916 | * guile/scm-symtab.c: Update. | |
917 | * guile/scm-type.c: Update. | |
918 | * guile/scm-value.c: Update. | |
919 | * i386-linux-tdep.c: Update. | |
920 | * i386-tdep.c: Update. | |
921 | * inf-loop.c: Update. | |
922 | * infcall.c: Update. | |
923 | * infcmd.c: Update. | |
924 | * infrun.c: Update. | |
925 | * jit.c: Update. | |
926 | * language.c: Update. | |
927 | * linespec.c: Update. | |
928 | * linux-fork.c: Update. | |
929 | * linux-nat.c: Update. | |
930 | * linux-tdep.c: Update. | |
931 | * linux-thread-db.c: Update. | |
932 | * main.c: Update. | |
933 | * mi/mi-cmd-break.c: Update. | |
934 | * mi/mi-cmd-stack.c: Update. | |
935 | * mi/mi-interp.c: Update. | |
936 | * mi/mi-main.c: Update. | |
937 | * objc-lang.c: Update. | |
938 | * p-valprint.c: Update. | |
939 | * parse.c: Update. | |
940 | * ppc-linux-tdep.c: Update. | |
941 | * printcmd.c: Update. | |
942 | * python/py-arch.c: Update. | |
943 | * python/py-breakpoint.c: Update. | |
944 | * python/py-cmd.c: Update. | |
945 | * python/py-finishbreakpoint.c: Update. | |
946 | * python/py-frame.c: Update. | |
947 | * python/py-framefilter.c: Update. | |
948 | * python/py-gdb-readline.c: Update. | |
949 | * python/py-inferior.c: Update. | |
950 | * python/py-infthread.c: Update. | |
951 | * python/py-lazy-string.c: Update. | |
952 | * python/py-linetable.c: Update. | |
953 | * python/py-objfile.c: Update. | |
954 | * python/py-param.c: Update. | |
955 | * python/py-prettyprint.c: Update. | |
956 | * python/py-progspace.c: Update. | |
957 | * python/py-record-btrace.c: Update. | |
958 | * python/py-record.c: Update. | |
959 | * python/py-symbol.c: Update. | |
960 | * python/py-type.c: Update. | |
961 | * python/py-unwind.c: Update. | |
962 | * python/py-utils.c: Update. | |
963 | * python/py-value.c: Update. | |
964 | * python/python.c: Update. | |
965 | * record-btrace.c: Update. | |
966 | * record-full.c: Update. | |
967 | * remote-fileio.c: Update. | |
968 | * remote.c: Update. | |
969 | * riscv-tdep.c: Update. | |
970 | * rs6000-aix-tdep.c: Update. | |
971 | * rs6000-tdep.c: Update. | |
972 | * rust-exp.y: Update. | |
973 | * rust-lang.c: Update. | |
974 | * s390-tdep.c: Update. | |
975 | * selftest-arch.c: Update. | |
976 | * solib-dsbt.c: Update. | |
977 | * solib-frv.c: Update. | |
978 | * solib-spu.c: Update. | |
979 | * solib-svr4.c: Update. | |
980 | * solib.c: Update. | |
981 | * sparc64-linux-tdep.c: Update. | |
982 | * stack.c: Update. | |
983 | * symfile-mem.c: Update. | |
984 | * symmisc.c: Update. | |
985 | * target.c: Update. | |
986 | * thread.c: Update. | |
987 | * top.c: Update. | |
988 | * tracefile-tfile.c: Update. | |
989 | * tui/tui.c: Update. | |
990 | * typeprint.c: Update. | |
991 | * unittests/cli-utils-selftests.c: Update. | |
992 | * unittests/parse-connection-spec-selftests.c: Update. | |
993 | * valops.c: Update. | |
994 | * valprint.c: Update. | |
995 | * value.c: Update. | |
996 | * varobj.c: Update. | |
997 | * windows-nat.c: Update. | |
998 | * x86-linux-nat.c: Update. | |
999 | * xml-support.c: Update. | |
1000 | ||
a70b8144 TT |
1001 | 2019-04-08 Tom Tromey <tom@tromey.com> |
1002 | ||
1003 | * xml-support.c: Use C++ exception handling. | |
1004 | * x86-linux-nat.c: Use C++ exception handling. | |
1005 | * windows-nat.c: Use C++ exception handling. | |
1006 | * varobj.c: Use C++ exception handling. | |
1007 | * value.c: Use C++ exception handling. | |
1008 | * valprint.c: Use C++ exception handling. | |
1009 | * valops.c: Use C++ exception handling. | |
1010 | * unittests/parse-connection-spec-selftests.c: Use C++ exception | |
1011 | handling. | |
1012 | * unittests/cli-utils-selftests.c: Use C++ exception handling. | |
1013 | * typeprint.c: Use C++ exception handling. | |
1014 | * tui/tui.c: Use C++ exception handling. | |
1015 | * tracefile-tfile.c: Use C++ exception handling. | |
1016 | * top.c: Use C++ exception handling. | |
1017 | * thread.c: Use C++ exception handling. | |
1018 | * target.c: Use C++ exception handling. | |
1019 | * symmisc.c: Use C++ exception handling. | |
1020 | * symfile-mem.c: Use C++ exception handling. | |
1021 | * stack.c: Use C++ exception handling. | |
1022 | * sparc64-linux-tdep.c: Use C++ exception handling. | |
1023 | * solib.c: Use C++ exception handling. | |
1024 | * solib-svr4.c: Use C++ exception handling. | |
1025 | * solib-spu.c: Use C++ exception handling. | |
1026 | * solib-frv.c: Use C++ exception handling. | |
1027 | * solib-dsbt.c: Use C++ exception handling. | |
1028 | * selftest-arch.c: Use C++ exception handling. | |
1029 | * s390-tdep.c: Use C++ exception handling. | |
1030 | * rust-lang.c: Use C++ exception handling. | |
1031 | * rust-exp.y: Use C++ exception handling. | |
1032 | * rs6000-tdep.c: Use C++ exception handling. | |
1033 | * rs6000-aix-tdep.c: Use C++ exception handling. | |
1034 | * riscv-tdep.c: Use C++ exception handling. | |
1035 | * remote.c: Use C++ exception handling. | |
1036 | * remote-fileio.c: Use C++ exception handling. | |
1037 | * record-full.c: Use C++ exception handling. | |
1038 | * record-btrace.c: Use C++ exception handling. | |
1039 | * python/python.c: Use C++ exception handling. | |
1040 | * python/py-value.c: Use C++ exception handling. | |
1041 | * python/py-utils.c: Use C++ exception handling. | |
1042 | * python/py-unwind.c: Use C++ exception handling. | |
1043 | * python/py-type.c: Use C++ exception handling. | |
1044 | * python/py-symbol.c: Use C++ exception handling. | |
1045 | * python/py-record.c: Use C++ exception handling. | |
1046 | * python/py-record-btrace.c: Use C++ exception handling. | |
1047 | * python/py-progspace.c: Use C++ exception handling. | |
1048 | * python/py-prettyprint.c: Use C++ exception handling. | |
1049 | * python/py-param.c: Use C++ exception handling. | |
1050 | * python/py-objfile.c: Use C++ exception handling. | |
1051 | * python/py-linetable.c: Use C++ exception handling. | |
1052 | * python/py-lazy-string.c: Use C++ exception handling. | |
1053 | * python/py-infthread.c: Use C++ exception handling. | |
1054 | * python/py-inferior.c: Use C++ exception handling. | |
1055 | * python/py-gdb-readline.c: Use C++ exception handling. | |
1056 | * python/py-framefilter.c: Use C++ exception handling. | |
1057 | * python/py-frame.c: Use C++ exception handling. | |
1058 | * python/py-finishbreakpoint.c: Use C++ exception handling. | |
1059 | * python/py-cmd.c: Use C++ exception handling. | |
1060 | * python/py-breakpoint.c: Use C++ exception handling. | |
1061 | * python/py-arch.c: Use C++ exception handling. | |
1062 | * printcmd.c: Use C++ exception handling. | |
1063 | * ppc-linux-tdep.c: Use C++ exception handling. | |
1064 | * parse.c: Use C++ exception handling. | |
1065 | * p-valprint.c: Use C++ exception handling. | |
1066 | * objc-lang.c: Use C++ exception handling. | |
1067 | * mi/mi-main.c: Use C++ exception handling. | |
1068 | * mi/mi-interp.c: Use C++ exception handling. | |
1069 | * mi/mi-cmd-stack.c: Use C++ exception handling. | |
1070 | * mi/mi-cmd-break.c: Use C++ exception handling. | |
1071 | * main.c: Use C++ exception handling. | |
1072 | * linux-thread-db.c: Use C++ exception handling. | |
1073 | * linux-tdep.c: Use C++ exception handling. | |
1074 | * linux-nat.c: Use C++ exception handling. | |
1075 | * linux-fork.c: Use C++ exception handling. | |
1076 | * linespec.c: Use C++ exception handling. | |
1077 | * language.c: Use C++ exception handling. | |
1078 | * jit.c: Use C++ exception handling. | |
1079 | * infrun.c: Use C++ exception handling. | |
1080 | * infcmd.c: Use C++ exception handling. | |
1081 | * infcall.c: Use C++ exception handling. | |
1082 | * inf-loop.c: Use C++ exception handling. | |
1083 | * i386-tdep.c: Use C++ exception handling. | |
1084 | * i386-linux-tdep.c: Use C++ exception handling. | |
1085 | * guile/scm-value.c: Use C++ exception handling. | |
1086 | * guile/scm-type.c: Use C++ exception handling. | |
1087 | * guile/scm-symtab.c: Use C++ exception handling. | |
1088 | * guile/scm-symbol.c: Use C++ exception handling. | |
1089 | * guile/scm-pretty-print.c: Use C++ exception handling. | |
1090 | * guile/scm-ports.c: Use C++ exception handling. | |
1091 | * guile/scm-param.c: Use C++ exception handling. | |
1092 | * guile/scm-math.c: Use C++ exception handling. | |
1093 | * guile/scm-lazy-string.c: Use C++ exception handling. | |
1094 | * guile/scm-frame.c: Use C++ exception handling. | |
1095 | * guile/scm-disasm.c: Use C++ exception handling. | |
1096 | * guile/scm-cmd.c: Use C++ exception handling. | |
1097 | * guile/scm-breakpoint.c: Use C++ exception handling. | |
1098 | * guile/scm-block.c: Use C++ exception handling. | |
1099 | * guile/guile-internal.h: Use C++ exception handling. | |
1100 | * gnu-v3-abi.c: Use C++ exception handling. | |
1101 | * gdbtypes.c: Use C++ exception handling. | |
1102 | * frame.c: Use C++ exception handling. | |
1103 | * frame-unwind.c: Use C++ exception handling. | |
1104 | * fbsd-tdep.c: Use C++ exception handling. | |
1105 | * f-valprint.c: Use C++ exception handling. | |
1106 | * exec.c: Use C++ exception handling. | |
1107 | * event-top.c: Use C++ exception handling. | |
1108 | * event-loop.c: Use C++ exception handling. | |
1109 | * eval.c: Use C++ exception handling. | |
1110 | * dwarf2read.c: Use C++ exception handling. | |
1111 | * dwarf2loc.c: Use C++ exception handling. | |
1112 | * dwarf2-frame.c: Use C++ exception handling. | |
1113 | * dwarf2-frame-tailcall.c: Use C++ exception handling. | |
1114 | * dwarf-index-write.c: Use C++ exception handling. | |
1115 | * dwarf-index-cache.c: Use C++ exception handling. | |
1116 | * dtrace-probe.c: Use C++ exception handling. | |
1117 | * disasm-selftests.c: Use C++ exception handling. | |
1118 | * darwin-nat.c: Use C++ exception handling. | |
1119 | * cp-valprint.c: Use C++ exception handling. | |
1120 | * cp-support.c: Use C++ exception handling. | |
1121 | * cp-abi.c: Use C++ exception handling. | |
1122 | * corelow.c: Use C++ exception handling. | |
1123 | * completer.c: Use C++ exception handling. | |
1124 | * compile/compile-object-run.c: Use C++ exception handling. | |
1125 | * compile/compile-object-load.c: Use C++ exception handling. | |
1126 | * compile/compile-cplus-symbols.c: Use C++ exception handling. | |
1127 | * compile/compile-c-symbols.c: Use C++ exception handling. | |
1128 | * common/selftest.c: Use C++ exception handling. | |
1129 | * common/new-op.c: Use C++ exception handling. | |
1130 | * cli/cli-script.c: Use C++ exception handling. | |
1131 | * cli/cli-interp.c: Use C++ exception handling. | |
1132 | * cli/cli-cmds.c: Use C++ exception handling. | |
1133 | * c-varobj.c: Use C++ exception handling. | |
1134 | * btrace.c: Use C++ exception handling. | |
1135 | * breakpoint.c: Use C++ exception handling. | |
1136 | * break-catch-throw.c: Use C++ exception handling. | |
1137 | * arch-utils.c: Use C++ exception handling. | |
1138 | * amd64-tdep.c: Use C++ exception handling. | |
1139 | * ada-valprint.c: Use C++ exception handling. | |
1140 | * ada-typeprint.c: Use C++ exception handling. | |
1141 | * ada-lang.c: Use C++ exception handling. | |
1142 | * aarch64-tdep.c: Use C++ exception handling. | |
1143 | ||
3d6e9d23 TT |
1144 | 2019-04-08 Tom Tromey <tom@tromey.com> |
1145 | ||
1146 | * xml-support.c (gdb_xml_parser::parse): Update. | |
1147 | * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update. | |
1148 | * value.c (show_convenience): Update. | |
1149 | * unittests/cli-utils-selftests.c (test_number_or_range_parser) | |
1150 | (test_parse_flags_qcs): Update. | |
1151 | * thread.c (thr_try_catch_cmd): Update. | |
1152 | * target.c (target_translate_tls_address): Update. | |
1153 | * stack.c (print_frame_arg, read_frame_local, read_frame_arg) | |
1154 | (info_frame_command_core, frame_apply_command_count): Update. | |
1155 | * rust-exp.y (rust_lex_exception_test): Update. | |
1156 | * riscv-tdep.c (riscv_print_one_register_info): Update. | |
1157 | * remote.c (remote_target::enable_btrace): Update. | |
1158 | * record-btrace.c (record_btrace_enable_warn): Update. | |
1159 | * python/py-utils.c (gdbpy_convert_exception): Update. | |
1160 | * printcmd.c (do_one_display, print_variable_and_value): Update. | |
1161 | * mi/mi-main.c (mi_print_exception): Update. | |
1162 | * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT. | |
1163 | * mi/mi-cmd-stack.c (list_arg_or_local): Update. | |
1164 | * linux-nat.c (linux_nat_target::attach): Update. | |
1165 | * linux-fork.c (class scoped_switch_fork_info): Update. | |
1166 | * infrun.c (displaced_step_prepare): Update. | |
1167 | * infcall.c (call_function_by_hand_dummy): Update. | |
1168 | * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update. | |
1169 | * gnu-v3-abi.c (print_one_vtable): Update. | |
1170 | * frame.c (get_prev_frame_always): Update. | |
1171 | * f-valprint.c (info_common_command_for_block): Update. | |
1172 | * exec.c (try_open_exec_file): Update. | |
1173 | * exceptions.c (print_exception, exception_print) | |
1174 | (exception_fprintf, exception_print_same): Update. | |
1175 | * dwarf2-frame.c (dwarf2_build_frame_info): Update. | |
1176 | * dwarf-index-cache.c (index_cache::store) | |
1177 | (index_cache::lookup_gdb_index): Update. | |
1178 | * darwin-nat.c (maybe_cache_shell): Update. | |
1179 | * cp-valprint.c (cp_print_value_fields): Update. | |
1180 | * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol) | |
1181 | (gcc_cplus_symbol_address): Update. | |
1182 | * compile/compile-c-symbols.c (gcc_convert_symbol) | |
1183 | (gcc_symbol_address, generate_c_for_for_one_variable): Update. | |
1184 | * common/selftest.c: Update. | |
1185 | * common/common-exceptions.h (struct gdb_exception) <message>: Now | |
1186 | a std::string. | |
1187 | (exception_try_scope_entry, exception_try_scope_exit): Don't | |
1188 | declare. | |
1189 | (struct exception_try_scope): Remove. | |
1190 | (TRY): Don't use exception_try_scope. | |
1191 | (struct gdb_exception): Add constructor, operator=. | |
1192 | <what>: New method. | |
1193 | (struct gdb_exception_RETURN_MASK_ALL) | |
1194 | (struct gdb_exception_RETURN_MASK_ERROR) | |
1195 | (struct gdb_exception_RETURN_MASK_QUIT): Add constructor. | |
1196 | (struct gdb_quit_bad_alloc): Update. | |
1197 | * common/common-exceptions.c (exception_none): Change | |
1198 | initializer. | |
1199 | (struct catcher) <state, exception>: Initialize inline. | |
1200 | <prev>: Remove member. | |
1201 | (current_catcher): Remove. | |
1202 | (catchers): New global. | |
1203 | (exceptions_state_mc_init): Simplify. | |
1204 | (catcher_pop): Remove. | |
1205 | (exceptions_state_mc, exceptions_state_mc_catch): Update. | |
1206 | (try_scope_depth, exception_try_scope_entry) | |
1207 | (exception_try_scope_exit): Remove. | |
1208 | (throw_exception_sjlj): Update. | |
1209 | (exception_messages, exception_messages_size): Remove. | |
1210 | (throw_it): Simplify. | |
1211 | (gdb_exception_sliced_copy): Remove. | |
1212 | (throw_exception_cxx): Update. | |
1213 | * cli/cli-script.c (script_from_file): Update. | |
1214 | * breakpoint.c (insert_bp_location, update_breakpoint_locations): | |
1215 | Update. | |
1216 | * ada-valprint.c (ada_val_print): Update. | |
1217 | * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr) | |
1218 | (create_excep_cond_exprs): Update. | |
1219 | ||
c5c10118 TT |
1220 | 2019-04-08 Tom Tromey <tom@tromey.com> |
1221 | ||
1222 | * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY) | |
1223 | (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove. | |
1224 | (TRY, CATCH, END_CATCH): Remove some definitions. | |
1225 | * common/common-exceptions.c: Don't use GDB_XCPT. | |
1226 | (catcher_list_size): Remove. | |
1227 | (throw_exception, throw_it): Simplify. | |
1228 | ||
4de283e4 TT |
1229 | 2019-04-05 Tom Tromey <tom@tromey.com> |
1230 | ||
1231 | Revert the header-sorting patch. | |
1232 | * ft32-tdep.c: Revert. | |
1233 | * frv-tdep.c: Revert. | |
1234 | * frv-linux-tdep.c: Revert. | |
1235 | * frame.c: Revert. | |
1236 | * frame-unwind.c: Revert. | |
1237 | * frame-base.c: Revert. | |
1238 | * fork-child.c: Revert. | |
1239 | * findvar.c: Revert. | |
1240 | * findcmd.c: Revert. | |
1241 | * filesystem.c: Revert. | |
1242 | * filename-seen-cache.h: Revert. | |
1243 | * filename-seen-cache.c: Revert. | |
1244 | * fbsd-tdep.c: Revert. | |
1245 | * fbsd-nat.h: Revert. | |
1246 | * fbsd-nat.c: Revert. | |
1247 | * f-valprint.c: Revert. | |
1248 | * f-typeprint.c: Revert. | |
1249 | * f-lang.c: Revert. | |
1250 | * extension.h: Revert. | |
1251 | * extension.c: Revert. | |
1252 | * extension-priv.h: Revert. | |
1253 | * expprint.c: Revert. | |
1254 | * exec.h: Revert. | |
1255 | * exec.c: Revert. | |
1256 | * exceptions.c: Revert. | |
1257 | * event-top.c: Revert. | |
1258 | * event-loop.c: Revert. | |
1259 | * eval.c: Revert. | |
1260 | * elfread.c: Revert. | |
1261 | * dwarf2read.h: Revert. | |
1262 | * dwarf2read.c: Revert. | |
1263 | * dwarf2loc.c: Revert. | |
1264 | * dwarf2expr.h: Revert. | |
1265 | * dwarf2expr.c: Revert. | |
1266 | * dwarf2-frame.c: Revert. | |
1267 | * dwarf2-frame-tailcall.c: Revert. | |
1268 | * dwarf-index-write.h: Revert. | |
1269 | * dwarf-index-write.c: Revert. | |
1270 | * dwarf-index-common.c: Revert. | |
1271 | * dwarf-index-cache.h: Revert. | |
1272 | * dwarf-index-cache.c: Revert. | |
1273 | * dummy-frame.c: Revert. | |
1274 | * dtrace-probe.c: Revert. | |
1275 | * disasm.h: Revert. | |
1276 | * disasm.c: Revert. | |
1277 | * disasm-selftests.c: Revert. | |
1278 | * dictionary.c: Revert. | |
1279 | * dicos-tdep.c: Revert. | |
1280 | * demangle.c: Revert. | |
1281 | * dcache.h: Revert. | |
1282 | * dcache.c: Revert. | |
1283 | * darwin-nat.h: Revert. | |
1284 | * darwin-nat.c: Revert. | |
1285 | * darwin-nat-info.c: Revert. | |
1286 | * d-valprint.c: Revert. | |
1287 | * d-namespace.c: Revert. | |
1288 | * d-lang.c: Revert. | |
1289 | * ctf.c: Revert. | |
1290 | * csky-tdep.c: Revert. | |
1291 | * csky-linux-tdep.c: Revert. | |
1292 | * cris-tdep.c: Revert. | |
1293 | * cris-linux-tdep.c: Revert. | |
1294 | * cp-valprint.c: Revert. | |
1295 | * cp-support.c: Revert. | |
1296 | * cp-namespace.c: Revert. | |
1297 | * cp-abi.c: Revert. | |
1298 | * corelow.c: Revert. | |
1299 | * corefile.c: Revert. | |
1300 | * continuations.c: Revert. | |
1301 | * completer.h: Revert. | |
1302 | * completer.c: Revert. | |
1303 | * complaints.c: Revert. | |
1304 | * coffread.c: Revert. | |
1305 | * coff-pe-read.c: Revert. | |
1306 | * cli-out.h: Revert. | |
1307 | * cli-out.c: Revert. | |
1308 | * charset.c: Revert. | |
1309 | * c-varobj.c: Revert. | |
1310 | * c-valprint.c: Revert. | |
1311 | * c-typeprint.c: Revert. | |
1312 | * c-lang.c: Revert. | |
1313 | * buildsym.c: Revert. | |
1314 | * buildsym-legacy.c: Revert. | |
1315 | * build-id.h: Revert. | |
1316 | * build-id.c: Revert. | |
1317 | * btrace.c: Revert. | |
1318 | * bsd-uthread.c: Revert. | |
1319 | * breakpoint.h: Revert. | |
1320 | * breakpoint.c: Revert. | |
1321 | * break-catch-throw.c: Revert. | |
1322 | * break-catch-syscall.c: Revert. | |
1323 | * break-catch-sig.c: Revert. | |
1324 | * blockframe.c: Revert. | |
1325 | * block.c: Revert. | |
1326 | * bfin-tdep.c: Revert. | |
1327 | * bfin-linux-tdep.c: Revert. | |
1328 | * bfd-target.c: Revert. | |
1329 | * bcache.c: Revert. | |
1330 | * ax-general.c: Revert. | |
1331 | * ax-gdb.h: Revert. | |
1332 | * ax-gdb.c: Revert. | |
1333 | * avr-tdep.c: Revert. | |
1334 | * auxv.c: Revert. | |
1335 | * auto-load.c: Revert. | |
1336 | * arm-wince-tdep.c: Revert. | |
1337 | * arm-tdep.c: Revert. | |
1338 | * arm-symbian-tdep.c: Revert. | |
1339 | * arm-pikeos-tdep.c: Revert. | |
1340 | * arm-obsd-tdep.c: Revert. | |
1341 | * arm-nbsd-tdep.c: Revert. | |
1342 | * arm-nbsd-nat.c: Revert. | |
1343 | * arm-linux-tdep.c: Revert. | |
1344 | * arm-linux-nat.c: Revert. | |
1345 | * arm-fbsd-tdep.c: Revert. | |
1346 | * arm-fbsd-nat.c: Revert. | |
1347 | * arm-bsd-tdep.c: Revert. | |
1348 | * arch-utils.c: Revert. | |
1349 | * arc-tdep.c: Revert. | |
1350 | * arc-newlib-tdep.c: Revert. | |
1351 | * annotate.h: Revert. | |
1352 | * annotate.c: Revert. | |
1353 | * amd64-windows-tdep.c: Revert. | |
1354 | * amd64-windows-nat.c: Revert. | |
1355 | * amd64-tdep.c: Revert. | |
1356 | * amd64-sol2-tdep.c: Revert. | |
1357 | * amd64-obsd-tdep.c: Revert. | |
1358 | * amd64-obsd-nat.c: Revert. | |
1359 | * amd64-nbsd-tdep.c: Revert. | |
1360 | * amd64-nbsd-nat.c: Revert. | |
1361 | * amd64-nat.c: Revert. | |
1362 | * amd64-linux-tdep.c: Revert. | |
1363 | * amd64-linux-nat.c: Revert. | |
1364 | * amd64-fbsd-tdep.c: Revert. | |
1365 | * amd64-fbsd-nat.c: Revert. | |
1366 | * amd64-dicos-tdep.c: Revert. | |
1367 | * amd64-darwin-tdep.c: Revert. | |
1368 | * amd64-bsd-nat.c: Revert. | |
1369 | * alpha-tdep.c: Revert. | |
1370 | * alpha-obsd-tdep.c: Revert. | |
1371 | * alpha-nbsd-tdep.c: Revert. | |
1372 | * alpha-mdebug-tdep.c: Revert. | |
1373 | * alpha-linux-tdep.c: Revert. | |
1374 | * alpha-linux-nat.c: Revert. | |
1375 | * alpha-bsd-tdep.c: Revert. | |
1376 | * alpha-bsd-nat.c: Revert. | |
1377 | * aix-thread.c: Revert. | |
1378 | * agent.c: Revert. | |
1379 | * addrmap.c: Revert. | |
1380 | * ada-varobj.c: Revert. | |
1381 | * ada-valprint.c: Revert. | |
1382 | * ada-typeprint.c: Revert. | |
1383 | * ada-tasks.c: Revert. | |
1384 | * ada-lang.c: Revert. | |
1385 | * aarch64-tdep.c: Revert. | |
1386 | * aarch64-ravenscar-thread.c: Revert. | |
1387 | * aarch64-newlib-tdep.c: Revert. | |
1388 | * aarch64-linux-tdep.c: Revert. | |
1389 | * aarch64-linux-nat.c: Revert. | |
1390 | * aarch64-fbsd-tdep.c: Revert. | |
1391 | * aarch64-fbsd-nat.c: Revert. | |
1392 | * aarch32-linux-nat.c: Revert. | |
1393 | ||
d55e5aa6 TT |
1394 | 2019-04-05 Tom Tromey <tom@tromey.com> |
1395 | ||
1396 | * ft32-tdep.c: Sort headers. | |
1397 | * frv-tdep.c: Sort headers. | |
1398 | * frv-linux-tdep.c: Sort headers. | |
1399 | * frame.c: Sort headers. | |
1400 | * frame-unwind.c: Sort headers. | |
1401 | * frame-base.c: Sort headers. | |
1402 | * fork-child.c: Sort headers. | |
1403 | * findvar.c: Sort headers. | |
1404 | * findcmd.c: Sort headers. | |
1405 | * filesystem.c: Sort headers. | |
1406 | * filename-seen-cache.h: Sort headers. | |
1407 | * filename-seen-cache.c: Sort headers. | |
1408 | * fbsd-tdep.c: Sort headers. | |
1409 | * fbsd-nat.h: Sort headers. | |
1410 | * fbsd-nat.c: Sort headers. | |
1411 | * f-valprint.c: Sort headers. | |
1412 | * f-typeprint.c: Sort headers. | |
1413 | * f-lang.c: Sort headers. | |
1414 | * extension.h: Sort headers. | |
1415 | * extension.c: Sort headers. | |
1416 | * extension-priv.h: Sort headers. | |
1417 | * expprint.c: Sort headers. | |
1418 | * exec.h: Sort headers. | |
1419 | * exec.c: Sort headers. | |
1420 | * exceptions.c: Sort headers. | |
1421 | * event-top.c: Sort headers. | |
1422 | * event-loop.c: Sort headers. | |
1423 | * eval.c: Sort headers. | |
1424 | * elfread.c: Sort headers. | |
1425 | * dwarf2read.h: Sort headers. | |
1426 | * dwarf2read.c: Sort headers. | |
1427 | * dwarf2loc.c: Sort headers. | |
1428 | * dwarf2expr.h: Sort headers. | |
1429 | * dwarf2expr.c: Sort headers. | |
1430 | * dwarf2-frame.c: Sort headers. | |
1431 | * dwarf2-frame-tailcall.c: Sort headers. | |
1432 | * dwarf-index-write.h: Sort headers. | |
1433 | * dwarf-index-write.c: Sort headers. | |
1434 | * dwarf-index-common.c: Sort headers. | |
1435 | * dwarf-index-cache.h: Sort headers. | |
1436 | * dwarf-index-cache.c: Sort headers. | |
1437 | * dummy-frame.c: Sort headers. | |
1438 | * dtrace-probe.c: Sort headers. | |
1439 | * disasm.h: Sort headers. | |
1440 | * disasm.c: Sort headers. | |
1441 | * disasm-selftests.c: Sort headers. | |
1442 | * dictionary.c: Sort headers. | |
1443 | * dicos-tdep.c: Sort headers. | |
1444 | * demangle.c: Sort headers. | |
1445 | * dcache.h: Sort headers. | |
1446 | * dcache.c: Sort headers. | |
1447 | * darwin-nat.h: Sort headers. | |
1448 | * darwin-nat.c: Sort headers. | |
1449 | * darwin-nat-info.c: Sort headers. | |
1450 | * d-valprint.c: Sort headers. | |
1451 | * d-namespace.c: Sort headers. | |
1452 | * d-lang.c: Sort headers. | |
1453 | * ctf.c: Sort headers. | |
1454 | * csky-tdep.c: Sort headers. | |
1455 | * csky-linux-tdep.c: Sort headers. | |
1456 | * cris-tdep.c: Sort headers. | |
1457 | * cris-linux-tdep.c: Sort headers. | |
1458 | * cp-valprint.c: Sort headers. | |
1459 | * cp-support.c: Sort headers. | |
1460 | * cp-namespace.c: Sort headers. | |
1461 | * cp-abi.c: Sort headers. | |
1462 | * corelow.c: Sort headers. | |
1463 | * corefile.c: Sort headers. | |
1464 | * continuations.c: Sort headers. | |
1465 | * completer.h: Sort headers. | |
1466 | * completer.c: Sort headers. | |
1467 | * complaints.c: Sort headers. | |
1468 | * coffread.c: Sort headers. | |
1469 | * coff-pe-read.c: Sort headers. | |
1470 | * cli-out.h: Sort headers. | |
1471 | * cli-out.c: Sort headers. | |
1472 | * charset.c: Sort headers. | |
1473 | * c-varobj.c: Sort headers. | |
1474 | * c-valprint.c: Sort headers. | |
1475 | * c-typeprint.c: Sort headers. | |
1476 | * c-lang.c: Sort headers. | |
1477 | * buildsym.c: Sort headers. | |
1478 | * buildsym-legacy.c: Sort headers. | |
1479 | * build-id.h: Sort headers. | |
1480 | * build-id.c: Sort headers. | |
1481 | * btrace.c: Sort headers. | |
1482 | * bsd-uthread.c: Sort headers. | |
1483 | * breakpoint.h: Sort headers. | |
1484 | * breakpoint.c: Sort headers. | |
1485 | * break-catch-throw.c: Sort headers. | |
1486 | * break-catch-syscall.c: Sort headers. | |
1487 | * break-catch-sig.c: Sort headers. | |
1488 | * blockframe.c: Sort headers. | |
1489 | * block.c: Sort headers. | |
1490 | * bfin-tdep.c: Sort headers. | |
1491 | * bfin-linux-tdep.c: Sort headers. | |
1492 | * bfd-target.c: Sort headers. | |
1493 | * bcache.c: Sort headers. | |
1494 | * ax-general.c: Sort headers. | |
1495 | * ax-gdb.h: Sort headers. | |
1496 | * ax-gdb.c: Sort headers. | |
1497 | * avr-tdep.c: Sort headers. | |
1498 | * auxv.c: Sort headers. | |
1499 | * auto-load.c: Sort headers. | |
1500 | * arm-wince-tdep.c: Sort headers. | |
1501 | * arm-tdep.c: Sort headers. | |
1502 | * arm-symbian-tdep.c: Sort headers. | |
1503 | * arm-pikeos-tdep.c: Sort headers. | |
1504 | * arm-obsd-tdep.c: Sort headers. | |
1505 | * arm-nbsd-tdep.c: Sort headers. | |
1506 | * arm-nbsd-nat.c: Sort headers. | |
1507 | * arm-linux-tdep.c: Sort headers. | |
1508 | * arm-linux-nat.c: Sort headers. | |
1509 | * arm-fbsd-tdep.c: Sort headers. | |
1510 | * arm-fbsd-nat.c: Sort headers. | |
1511 | * arm-bsd-tdep.c: Sort headers. | |
1512 | * arch-utils.c: Sort headers. | |
1513 | * arc-tdep.c: Sort headers. | |
1514 | * arc-newlib-tdep.c: Sort headers. | |
1515 | * annotate.h: Sort headers. | |
1516 | * annotate.c: Sort headers. | |
1517 | * amd64-windows-tdep.c: Sort headers. | |
1518 | * amd64-windows-nat.c: Sort headers. | |
1519 | * amd64-tdep.c: Sort headers. | |
1520 | * amd64-sol2-tdep.c: Sort headers. | |
1521 | * amd64-obsd-tdep.c: Sort headers. | |
1522 | * amd64-obsd-nat.c: Sort headers. | |
1523 | * amd64-nbsd-tdep.c: Sort headers. | |
1524 | * amd64-nbsd-nat.c: Sort headers. | |
1525 | * amd64-nat.c: Sort headers. | |
1526 | * amd64-linux-tdep.c: Sort headers. | |
1527 | * amd64-linux-nat.c: Sort headers. | |
1528 | * amd64-fbsd-tdep.c: Sort headers. | |
1529 | * amd64-fbsd-nat.c: Sort headers. | |
1530 | * amd64-dicos-tdep.c: Sort headers. | |
1531 | * amd64-darwin-tdep.c: Sort headers. | |
1532 | * amd64-bsd-nat.c: Sort headers. | |
1533 | * alpha-tdep.c: Sort headers. | |
1534 | * alpha-obsd-tdep.c: Sort headers. | |
1535 | * alpha-nbsd-tdep.c: Sort headers. | |
1536 | * alpha-mdebug-tdep.c: Sort headers. | |
1537 | * alpha-linux-tdep.c: Sort headers. | |
1538 | * alpha-linux-nat.c: Sort headers. | |
1539 | * alpha-bsd-tdep.c: Sort headers. | |
1540 | * alpha-bsd-nat.c: Sort headers. | |
1541 | * aix-thread.c: Sort headers. | |
1542 | * agent.c: Sort headers. | |
1543 | * addrmap.c: Sort headers. | |
1544 | * ada-varobj.c: Sort headers. | |
1545 | * ada-valprint.c: Sort headers. | |
1546 | * ada-typeprint.c: Sort headers. | |
1547 | * ada-tasks.c: Sort headers. | |
1548 | * ada-lang.c: Sort headers. | |
1549 | * aarch64-tdep.c: Sort headers. | |
1550 | * aarch64-ravenscar-thread.c: Sort headers. | |
1551 | * aarch64-newlib-tdep.c: Sort headers. | |
1552 | * aarch64-linux-tdep.c: Sort headers. | |
1553 | * aarch64-linux-nat.c: Sort headers. | |
1554 | * aarch64-fbsd-tdep.c: Sort headers. | |
1555 | * aarch64-fbsd-nat.c: Sort headers. | |
1556 | * aarch32-linux-nat.c: Sort headers. | |
1557 | ||
699bd4cf TT |
1558 | 2019-04-04 Tom Tromey <tom@tromey.com> |
1559 | ||
1560 | * varobj.c (varobj_create): Update. | |
1561 | * rust-exp.y (struct rust_parser) <update_innermost_block, | |
1562 | lookup_symbol>: New methods. | |
1563 | (rust_parser::update_innermost_block, rust_parser::lookup_symbol): | |
1564 | Rename. | |
1565 | (rust_parser::rust_lookup_type) | |
1566 | (rust_parser::convert_ast_to_expression, rust_lex_tests): Update. | |
1567 | * printcmd.c (display_command, do_one_display): Update. | |
1568 | * parser-defs.h (struct parser_state) <parser_state>: Add | |
1569 | "tracker" parameter. | |
1570 | (block_tracker): New member. | |
1571 | (class innermost_block_tracker) <innermost_block_tracker>: Add | |
1572 | "types" parameter. | |
1573 | <reset>: Remove method. | |
1574 | (innermost_block): Don't declare. | |
1575 | (null_post_parser): Update. | |
1576 | * parse.c (innermost_block): Remove global. | |
1577 | (write_dollar_variable): Update. | |
1578 | (parse_exp_1, parse_exp_in_context): Add "tracker" parameter. | |
1579 | Remove "tracker_types" parameter. | |
1580 | (parse_expression): Add "tracker" parameter. | |
1581 | (parse_expression_for_completion): Update. | |
1582 | (null_post_parser): Add "tracker" parameter. | |
1583 | * p-exp.y: Update rules. | |
1584 | * m2-exp.y: Update rules. | |
1585 | * language.h (struct language_defn) <la_post_parser>: Add | |
1586 | "tracker" parameter. | |
1587 | * go-exp.y: Update rules. | |
1588 | * f-exp.y: Update rules. | |
1589 | * expression.h (parse_expression, parse_exp_1): Add "tracker" | |
1590 | parameter. | |
1591 | * d-exp.y: Update rules. | |
1592 | * c-exp.y: Update rules. | |
1593 | * breakpoint.c (set_breakpoint_condition): Create an | |
1594 | innermost_block_tracker. | |
1595 | (watch_command_1): Likewise. | |
1596 | * ada-lang.c (resolve): Add "tracker" parameter. | |
1597 | (resolve_subexp): Likewise. | |
1598 | * ada-exp.y (write_var_from_sym): Update. | |
1599 | ||
dac43e32 TT |
1600 | 2019-04-04 Tom Tromey <tom@tromey.com> |
1601 | ||
1602 | * type-stack.h: New file. | |
1603 | * type-stack.c: New file. | |
1604 | * parser-defs.h (enum type_pieces, union type_stack_elt): Move to | |
1605 | type-stack.h. | |
1606 | (insert_into_type_stack, insert_type, push_type, push_type_int) | |
1607 | (insert_type_address_space, pop_type, pop_type_int) | |
1608 | (pop_typelist, pop_type_stack, append_type_stack) | |
1609 | (push_type_stack, get_type_stack, push_typelist) | |
1610 | (follow_type_instance_flags, follow_types): Don't declare. | |
1611 | * parse.c (type_stack): Remove global. | |
1612 | (parse_exp_in_context): Update. | |
1613 | (insert_into_type_stack, insert_type, push_type, push_type_int) | |
1614 | (insert_type_address_space, pop_type, pop_type_int) | |
1615 | (pop_typelist, pop_type_stack, append_type_stack) | |
1616 | (push_type_stack, get_type_stack, push_typelist) | |
1617 | (follow_type_instance_flags, follow_types): Remove (moved to | |
1618 | type-stack.c). | |
1619 | * f-exp.y (type_stack): New global. | |
1620 | Update rules. | |
1621 | (push_kind_type, f_parse): Update. | |
1622 | * d-exp.y (type_stack): New global. | |
1623 | Update rules. | |
1624 | (d_parse): Update. | |
1625 | * c-exp.y (struct c_parse_state) <type_stack>: New member. | |
1626 | Update rules. | |
1627 | * Makefile.in (COMMON_SFILES): Add type-stack.c. | |
1628 | (HFILES_NO_SRCDIR): Add type-stack.h. | |
1629 | ||
2a612529 TT |
1630 | 2019-04-04 Tom Tromey <tom@tromey.com> |
1631 | ||
1632 | * rust-exp.y (rust_parser::lex_identifier, rustyylex) | |
1633 | (rust_parser::convert_ast_to_expression, rust_parse) | |
1634 | (rust_lex_test_completion, rust_lex_tests): Update. | |
1635 | * parser-defs.h (struct expr_completion_state): New. | |
1636 | (struct parser_state) <parser_state>: Add completion parameter. | |
1637 | <mark_struct_expression, mark_completion_tag>: New methods. | |
1638 | <parse_completion, m_completion_state>: New members. | |
1639 | (prefixify_expression, null_post_parser): Update. | |
1640 | (mark_struct_expression, mark_completion_tag): Don't declare. | |
1641 | * parse.c (parse_completion, expout_last_struct) | |
1642 | (expout_tag_completion_type, expout_completion_name): Remove | |
1643 | globals. | |
1644 | (parser_state::mark_struct_expression) | |
1645 | (parser_state::mark_completion_tag): Now methods. | |
1646 | (prefixify_expression): Add last_struct parameter. | |
1647 | (prefixify_subexp): Likewise. | |
1648 | (parse_exp_1): Update. | |
1649 | (parse_exp_in_context): Add cstate parameter. Update. | |
1650 | (parse_expression_for_completion): Create an | |
1651 | expr_completion_state. | |
1652 | (null_post_parser): Add "completion" parameter. | |
1653 | * p-exp.y: Update rules. | |
1654 | (yylex): Update. | |
1655 | * language.h (struct language_defn) <la_post_parser>: Add | |
1656 | "completing" parameter. | |
1657 | * go-exp.y: Update rules. | |
1658 | (lex_one_token): Update. | |
1659 | * expression.h (parse_completion): Don't declare. | |
1660 | * d-exp.y: Update rules. | |
1661 | (lex_one_token): Update rules. | |
1662 | * c-exp.y: Update rules. | |
1663 | (lex_one_token): Update. | |
1664 | * ada-lang.c (resolve): Add "parse_completion" parameter. | |
1665 | (resolve_subexp): Likewise. | |
1666 | (ada_resolve_function): Likewise. | |
1667 | ||
43476f0b TT |
1668 | 2019-04-04 Tom Tromey <tom@tromey.com> |
1669 | ||
1670 | * parser-defs.h (struct parser_state) <start_arglist, | |
1671 | end_arglist>: New methods. | |
1672 | <arglist_len, m_funcall_chain>: New members. | |
1673 | (arglist_len, start_arglist, end_arglist): Don't declare. | |
1674 | * parse.c (arglist_len, funcall_chain): Remove global. | |
1675 | (start_arglist, end_arglist): Remove functions. | |
1676 | (parse_exp_in_context): Update. | |
1677 | * p-exp.y: Update rules. | |
1678 | * m2-exp.y: Update rules. | |
1679 | * go-exp.y: Update rules. | |
1680 | * f-exp.y: Update rules. | |
1681 | * d-exp.y: Update rules. | |
1682 | * c-exp.y: Update rules. | |
1683 | ||
5776fca3 TT |
1684 | 2019-04-04 Tom Tromey <tom@tromey.com> |
1685 | ||
1686 | * rust-exp.y (struct rust_parser) <lex_hex, lex_escape, | |
1687 | lex_operator, push_back>: New methods. | |
1688 | Update all rules. | |
1689 | (rust_parser::lex_hex, lex_escape): Rename and update. | |
1690 | (rust_parser::lex_string, rust_parser::lex_identifier): Update. | |
1691 | (rust_parser::lex_operator): Rename and update. | |
1692 | (rust_parser::lex_number, rustyylex, rustyyerror) | |
1693 | (rust_lex_test_init, rust_lex_test_sequence) | |
1694 | (rust_lex_test_push_back, rust_lex_tests): Update. | |
1695 | * parser-defs.h (struct parser_state) <parser_state>: Add "input" | |
1696 | parameter. | |
1697 | <lexptr, prev_lexptr>: New members. | |
1698 | (lexptr, prev_lexptr): Don't declare. | |
1699 | * parse.c (lexptr, prev_lexptr): Remove globals. | |
1700 | (parse_exp_in_context): Update. | |
1701 | * p-exp.y (yylex, yyerror): Update. | |
1702 | * m2-exp.y (parse_number, yylex, yyerror): Update. | |
1703 | * go-exp.y (lex_one_token, yyerror): Update. | |
1704 | * f-exp.y (match_string_literal, yylex, yyerror): Update. | |
1705 | * d-exp.y (lex_one_token, yyerror): Update. | |
1706 | * c-exp.y (scan_macro_expansion, finished_macro_expansion) | |
1707 | (lex_one_token, yyerror): Update. | |
1708 | * ada-lex.l (YY_INPUT): Update. | |
1709 | (rewind_to_char): Update. | |
1710 | * ada-exp.y (yyerror): Update. | |
1711 | ||
8621b685 TT |
1712 | 2019-04-04 Tom Tromey <tom@tromey.com> |
1713 | ||
1714 | * rust-exp.y (rustyylex, rust_lex_tests): Update. | |
1715 | * parser-defs.h (struct parser_state) <parser_state>: Add new | |
1716 | parameter. | |
1717 | <comma_terminates>: New member. | |
1718 | (comma_terminates): Don't declare global. | |
1719 | * parse.c (comma_terminates): Remove global. | |
1720 | (parse_exp_in_context): Update. | |
1721 | * p-exp.y (yylex): Update. | |
1722 | * m2-exp.y (yylex): Update. | |
1723 | * go-exp.y (lex_one_token): Update. | |
1724 | * f-exp.y (yylex): Update. | |
1725 | * d-exp.y (lex_one_token): Update. | |
1726 | * c-exp.y (lex_one_token): Update. | |
1727 | * ada-lex.l: Update. | |
1728 | ||
28aaf3fd TT |
1729 | 2019-04-04 Tom Tromey <tom@tromey.com> |
1730 | ||
1731 | * rust-exp.y (struct rust_parser) <paren_depth>: New member. | |
1732 | (rustyylex, rust_lex_test_init, rust_lex_test_one) | |
1733 | (rust_lex_test_sequence, rust_lex_test_push_back): Update. | |
1734 | * parser-defs.h (paren_depth): Don't declare. | |
1735 | * parse.c (paren_depth): Remove global. | |
1736 | (parse_exp_in_context): Update. | |
1737 | * p-exp.y (paren_depth): New global. | |
1738 | (pascal_parse): Initialize it. | |
1739 | * m2-exp.y (paren_depth): New global. | |
1740 | (m2_parse): Initialize it. | |
1741 | * go-exp.y (paren_depth): New global. | |
1742 | (go_parse): Initialize it. | |
1743 | * f-exp.y (paren_depth): New global. | |
1744 | (f_parse): Initialize it. | |
1745 | * d-exp.y (paren_depth): New global. | |
1746 | (d_parse): Initialize it. | |
1747 | * c-exp.y (paren_depth): New global. | |
1748 | (c_parse): Initialize it. | |
1749 | * ada-lex.l (paren_depth): New global. | |
1750 | (lexer_init): Initialize it. | |
1751 | ||
1e58a4a4 TT |
1752 | 2019-04-04 Tom Tromey <tom@tromey.com> |
1753 | ||
1754 | * rust-exp.y (rust_parser::crate_name, rust_parser::super_name) | |
1755 | (rust_parser::convert_ast_to_type) | |
1756 | (rust_parser::convert_ast_to_expression, rust_lex_tests): Update. | |
1757 | * parser-defs.h (struct parser_state) <parser_state>: Add | |
1758 | parameters. Initialize new members. | |
1759 | <expression_context_block, expression_context_pc>: New members. | |
1760 | * parse.c (expression_context_block, expression_context_pc): | |
1761 | Remove globals. | |
1762 | (parse_exp_in_context): Update. | |
1763 | * p-exp.y: Update all rules. | |
1764 | (yylex): Update. | |
1765 | * m2-exp.y: Update all rules. | |
1766 | (yylex): Update. | |
1767 | * go-exp.y (yylex): Update. | |
1768 | * f-exp.y (yylex): Update. | |
1769 | * d-exp.y: Update all rules. | |
1770 | (yylex): Update. | |
1771 | * c-exp.y: Update all rules. | |
1772 | (lex_one_token, classify_name, yylex, c_parse): Update. | |
1773 | * ada-exp.y (write_var_or_type, write_name_assoc): Update. | |
1774 | ||
37eedb39 TT |
1775 | 2019-04-04 Tom Tromey <tom@tromey.com> |
1776 | ||
1777 | * gdbarch.h, gdbarch.c: Rebuild. | |
1778 | * gdbarch.sh (dtrace_parse_probe_argument): Change type. | |
1779 | * stap-probe.h: | |
1780 | (struct stap_parse_info): Replace "parser_state" with | |
1781 | "expr_builder". | |
1782 | * parser-defs.h (struct expr_builder): Rename from "parser_state". | |
1783 | (parser_state): New class. | |
1784 | * parse.c (expr_builder): Rename. | |
1785 | (expr_builder::release): Rename. | |
1786 | (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym) | |
1787 | (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile) | |
1788 | (write_exp_elt_longcst, write_exp_elt_floatcst) | |
1789 | (write_exp_elt_type, write_exp_elt_intern, write_exp_string) | |
1790 | (write_exp_string_vector, write_exp_bitstring) | |
1791 | (write_exp_msymbol, mark_struct_expression) | |
1792 | (write_dollar_variable) | |
1793 | (insert_type_address_space, increase_expout_size): Replace | |
1794 | "parser_state" with "expr_builder". | |
1795 | * dtrace-probe.c: Replace "parser_state" with "expr_builder". | |
1796 | * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace | |
1797 | "parser_state" with "expr_builder". | |
1798 | ||
73923d7e TT |
1799 | 2019-04-04 Tom Tromey <tom@tromey.com> |
1800 | ||
1801 | * rust-exp.y: Replace "parse_language" with method call. | |
1802 | * p-exp.y: | |
1803 | (yylex): Replace "parse_language" with method call. | |
1804 | * m2-exp.y: | |
1805 | (yylex): Replace "parse_language" with method call. | |
1806 | * go-exp.y (classify_name): Replace "parse_language" with method | |
1807 | call. | |
1808 | * f-exp.y (yylex): Replace "parse_language" with method call. | |
1809 | * d-exp.y (lex_one_token): Replace "parse_language" with method | |
1810 | call. | |
1811 | * c-exp.y: | |
1812 | (lex_one_token, classify_name, yylex): Replace "parse_language" | |
1813 | with method call. | |
1814 | * ada-exp.y (find_primitive_type, type_char) | |
1815 | (type_system_address): Replace "parse_language" with method call. | |
1816 | ||
fa9f5be6 TT |
1817 | 2019-04-04 Tom Tromey <tom@tromey.com> |
1818 | ||
1819 | * rust-exp.y: Replace "parse_gdbarch" with method call. | |
1820 | * parse.c (write_dollar_variable, insert_type_address_space): | |
1821 | Replace "parse_gdbarch" with method call. | |
1822 | * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method | |
1823 | call. | |
1824 | * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method | |
1825 | call. | |
1826 | * m2-exp.y (parse_type, parse_m2_type, yylex): Replace | |
1827 | "parse_gdbarch" with method call. | |
1828 | * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch" | |
1829 | with method call. | |
1830 | * f-exp.y (parse_type, parse_f_type, yylex): Replace | |
1831 | "parse_gdbarch" with method call. | |
1832 | * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace | |
1833 | "parse_gdbarch" with method call. | |
1834 | * c-exp.y (parse_type, parse_number, classify_name): Replace | |
1835 | "parse_gdbarch" with method call. | |
1836 | * ada-lex.l: Replace "parse_gdbarch" with method call. | |
1837 | * ada-exp.y (parse_type, find_primitive_type, type_char) | |
1838 | (type_system_address): Replace "parse_gdbarch" with method call. | |
1839 | ||
1201a264 TT |
1840 | 2019-04-04 Tom Tromey <tom@tromey.com> |
1841 | ||
1842 | * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update. | |
1843 | * stap-probe.c (stap_parse_argument): Update. | |
1844 | * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove | |
1845 | initial_size parameter. | |
1846 | * rust-exp.y (rust_lex_tests): Update. | |
1847 | * parse.c (parser_state): Update. | |
1848 | (parse_exp_in_context): Update. | |
1849 | * parser-defs.h (struct parser_state) <parser_state>: Remove | |
1850 | "initial_size" parameter. | |
1851 | ||
e3980ce2 TT |
1852 | 2019-04-04 Tom Tromey <tom@tromey.com> |
1853 | ||
1854 | * parser-defs.h (increase_expout_size): Don't declare. | |
1855 | * parse.c (increase_expout_size): Now static. | |
1856 | ||
e9f8e3f1 TS |
1857 | 2019-04-04 Thomas Schwinge <thomas@codesourcery.com> |
1858 | ||
1859 | * gnu-nat.c (gnu_nat_target::wait): Fix | |
1860 | target_waitstatus_to_string call. | |
1861 | ||
d7df6549 AB |
1862 | 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com> |
1863 | ||
1864 | * eval.c (evaluate_subexp_standard): Handle internal functions | |
1865 | during Fortran function call handling. | |
1866 | ||
8bdc1658 AB |
1867 | 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com> |
1868 | ||
1869 | * NEWS: Mention new internal functions. | |
1870 | * dwarf2read.c (dwarf2_init_complex_target_type): New function. | |
1871 | (read_base_type): Use dwarf2_init_complex_target_type. | |
1872 | * value.c (creal_internal_fn): New function. | |
1873 | (cimag_internal_fn): New function. | |
1874 | (_initialize_values): Register new internal functions. | |
1875 | ||
c29705b7 PW |
1876 | 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
1877 | ||
1878 | * infrun.c (stop_all_threads): If debug_infrun, always | |
1879 | trace the wait status after wait_one, using | |
1880 | target_waitstatus_to_string and target_pid_to_str. | |
1881 | (handle_inferior_event): Replace various trace of | |
1882 | wait status kind by a single trace. | |
1883 | * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local | |
1884 | wait status kind image by target_waitstatus_to_string. | |
1885 | * target/waitstatus.c (target_waitstatus_to_string): Fix | |
1886 | obsolete comment. | |
1887 | ||
05caa1d2 TT |
1888 | 2019-04-01 Tom Tromey <tromey@adacore.com> |
1889 | ||
1890 | PR symtab/23331: | |
1891 | * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges. | |
1892 | ||
9d1447e0 SDJ |
1893 | 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com> |
1894 | Pedro Alves <palves@redhat.com> | |
1895 | ||
1896 | * top.c (quit_force): Call 'finalize_values'. | |
1897 | * value.c (finalize_values): New function. | |
1898 | * value.h (finalize_values): Declare. | |
1899 | ||
7734102d EZ |
1900 | 2019-03-30 Eli Zaretskii <eliz@gnu.org> |
1901 | ||
1902 | * NEWS: Announce $_gdb_major and $_gdb_minor. | |
1903 | ||
1904 | * top.c (init_gdb_version_vars): New function. | |
1905 | (gdb_init): Call init_gdb_version_vars. | |
1906 | ||
188e1fa9 TT |
1907 | 2019-03-29 Tom Tromey <tromey@adacore.com> |
1908 | ||
1909 | * printcmd.c (_initialize_printcmd): Add usage lines. Update some | |
1910 | help text. Remove dead code. | |
1911 | ||
2880242d KS |
1912 | 2019-03-29 Keith Seitz <keiths@redhat.com> |
1913 | ||
1914 | From Siddhesh Poyarekar: | |
1915 | * f-lang.h (f77_get_upperbound): Return LONGEST. | |
1916 | (f77_get_lowerbound): Likewise. | |
1917 | * f-typeprint.c (f_type_print_varspec_suffix): Expand | |
1918 | UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format | |
1919 | print them. | |
1920 | (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use | |
1921 | plongest to format print it. | |
1922 | * f-valprint.c (f77_get_lowerbound): Return LONGEST. | |
1923 | (f77_get_upperbound): Likewise. | |
1924 | (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND, | |
1925 | LOWER_BOUND to LONGEST. | |
1926 | (f77_create_arrayprint_offset_tbl): Likewise. | |
1927 | ||
cc1defb1 KS |
1928 | 2019-03-29 Keith Seitz <keiths@redhat.com> |
1929 | ||
1930 | * ada-lang.c (ada_template_to_fixed_record_type_1): Use | |
1931 | %s/pulongest for TYPE_LENGTH instead of %d in format | |
1932 | strings. | |
1933 | * ada-typerint.c (ada_print_type): Likewise. | |
1934 | * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise. | |
1935 | * compile/compile-c-support.c (generate_register_struct): Likewise. | |
1936 | * gdbtypes.c (recursive_dump_type): Likewise. | |
1937 | * gdbtypes.h (struct type) <length>: Change type to ULONGEST. | |
1938 | * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH | |
1939 | instead of %d in format strings. | |
1940 | * riscv-tdep.c (riscv_type_alignment): Cast second argument | |
1941 | to std::min to ULONGEST. | |
1942 | * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH | |
1943 | instead of %d in format strings. | |
1944 | * tracepoint.c (info_scope_command): Likewise. | |
1945 | * typeprint.c (print_offset_data::update) | |
1946 | (print_offset_data::finish): Likewise. | |
1947 | * xtensa-tdep.c (xtensa_store_return_value) | |
1948 | (xtensa_push_dummy_call): Likewise. | |
1949 | ||
e432ccf1 JT |
1950 | 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk> |
1951 | ||
1952 | * windows-nat.c (display_selector): Fixed format specifications | |
1953 | for 64-bit Cygwin. | |
1954 | ||
65d2b333 PW |
1955 | 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
1956 | ||
1957 | * infrun.c (follow_exec): Call target_terminal::ours_for_output. | |
1958 | ||
f489207e SL |
1959 | 2019-03-28 Sandra Loosemore <sandra@codesourcery.com> |
1960 | ||
1961 | * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper. | |
1962 | * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers. | |
1963 | * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New. | |
1964 | (nios2_linux_init_abi): Install it. | |
1965 | ||
bffa1015 AH |
1966 | 2019-03-28 Alan Hayward <alan.hayward@arm.com> |
1967 | ||
1968 | * aarch64-tdep.c (aarch64_vnv_type): Use vector types. | |
1969 | ||
fc96163a AH |
1970 | 2019-03-28 Alan Hayward <alan.hayward@arm.com> |
1971 | ||
1972 | * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view. | |
1973 | ||
20dc7e9b PW |
1974 | 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
1975 | Tom Tromey <tromey@adacore.com> | |
1976 | ||
1977 | * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow. | |
1978 | ||
7f5331a8 JB |
1979 | 2019-03-26 Joel Brobecker <brobecker@adacore.com> |
1980 | ||
1981 | * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method. | |
1982 | (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img" | |
1983 | method to compute the bounds of range types. Also print "[evaluated]" | |
1984 | if the bounds' values come from a dynamic evaluation. | |
1985 | ||
18c77628 AB |
1986 | 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com> |
1987 | ||
1988 | * cp-valprint.c (cp_print_value_fields): Don't print trailing | |
1989 | whitespace when pretty printing is on. | |
1990 | ||
53c973f2 AH |
1991 | 2019-03-26 Alan Hayward <alan.hayward@arm.com> |
1992 | ||
1993 | * ppc-linux-nat.c: Add include. | |
1994 | ||
d851aa71 AH |
1995 | 2019-03-26 Alan Hayward <alan.hayward@arm.com> |
1996 | ||
1997 | * NEWS: Mention AArch64 Pointer Authentication. | |
1998 | ||
2fe7bab7 AH |
1999 | 2019-03-26 Alan Hayward <alan.hayward@arm.com> |
2000 | ||
2001 | * arm-linux-nat.c: Add include. | |
2002 | ||
068ef30e SM |
2003 | 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca> |
2004 | ||
2005 | * source-cache.c (source_cache::get_source_lines): Re-read | |
2006 | fullname after calling open_source_file. | |
2007 | ||
81a24d04 JB |
2008 | 2019-03-25 John Baldwin <jhb@FreeBSD.org> |
2009 | ||
2010 | * NEWS: Mention TLS support for FreeBSD. | |
2011 | ||
79e7ae11 TT |
2012 | 2019-03-25 Tom Tromey <tromey@adacore.com> |
2013 | ||
2014 | * minsyms.c (BUNCH_SIZE): Update comment. | |
2015 | (~minimal_symbol_reader): Remove old comment. | |
2016 | (compact_minimal_symbols): Update comment. | |
2017 | (minimal_symbol_reader::install): Remove old comment. Update | |
2018 | other comments. | |
2019 | ||
d45963c2 AH |
2020 | 2019-03-25 Alan Hayward <alan.hayward@arm.com> |
2021 | ||
2022 | * s390-linux-nat.c: Add include. | |
2023 | ||
0f83012e AH |
2024 | 2019-03-25 Alan Hayward <alan.hayward@arm.com> |
2025 | ||
2026 | * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description): | |
2027 | Call linux_get_hwcap. | |
2028 | * aarch64-linux-tdep.c (aarch64_linux_core_read_description): | |
2029 | Likewise. | |
2030 | (aarch64_linux_get_hwcap): Remove function. | |
2031 | * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove | |
2032 | declaration. | |
2033 | * arm-linux-nat.c (arm_linux_nat_target::read_description):Call | |
2034 | linux_get_hwcap. | |
2035 | * arm-linux-tdep.c (arm_linux_core_read_description): Likewise. | |
2036 | * linux-tdep.c (linux_get_hwcap): Add function. | |
2037 | (linux_get_hwcap2): Likewise. | |
2038 | * linux-tdep.h (linux_get_hwcap): Add declaration. | |
2039 | (linux_get_hwcap2): Likewise. | |
2040 | * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function. | |
2041 | (ppc_linux_get_hwcap2): Likewise. | |
2042 | (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call | |
2043 | linux_get_hwcap. | |
2044 | (ppc_linux_nat_target::insert_watchpoint): Likewise. | |
2045 | (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise. | |
2046 | (ppc_linux_nat_target::read_description): Likewise. | |
2047 | * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise. | |
2048 | * s390-linux-nat.c: Likewise. | |
2049 | * s390-linux-tdep.c (s390_core_read_description): Likewise. | |
2050 | ||
6640a367 TT |
2051 | 2019-03-24 Tom Tromey <tom@tromey.com> |
2052 | ||
2053 | * ada-lang.c (standard_lookup): Simplify initialization. | |
2054 | (ada_lookup_symbol_nonlocal): Simplify return. | |
2055 | * solib-spu.c (spu_lookup_lib_symbol): Simplify return. | |
2056 | * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return. | |
2057 | * solib-svr4.c (elf_lookup_lib_symbol): Simplify return. | |
2058 | * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify | |
2059 | initialization. | |
2060 | * solib.c (solib_global_lookup): Simplify. | |
2061 | * symtab.c (null_block_symbol): Remove. | |
2062 | (symbol_cache_lookup): Simplify returns. | |
2063 | (lookup_language_this): Simplify returns. | |
2064 | (lookup_symbol_aux): Simplify return. | |
2065 | (lookup_local_symbol): Simplify returns. | |
2066 | (lookup_global_symbol_from_objfile): Simplify return. | |
2067 | (lookup_symbol_in_objfile_symtabs) | |
2068 | (lookup_symbol_in_objfile_from_linkage_name): Simplify return. | |
2069 | (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block) | |
2070 | (lookup_static_symbol, lookup_global_symbol): Simplify return. | |
2071 | * cp-namespace.c (cp_lookup_bare_symbol) | |
2072 | (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports) | |
2073 | (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1) | |
2074 | (cp_lookup_nested_symbol): Don't use null_block_symbol. | |
2075 | (cp_lookup_symbol_via_imports): Simplify initialization. | |
2076 | (find_symbol_in_baseclass): Likewise. | |
2077 | * symtab.h (null_block_symbol): Remove. | |
2078 | * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol. | |
2079 | (d_lookup_nested_symbol, d_lookup_symbol_imports) | |
2080 | (d_lookup_symbol_module): Likewise. | |
2081 | (find_symbol_in_baseclass): Simplify initialization. | |
2082 | ||
a930ebcd TT |
2083 | 2019-03-24 Tom Tromey <tom@tromey.com> |
2084 | ||
2085 | * expression.h: Don't include symtab.h. | |
2086 | (struct block): Forward declare. | |
2087 | ||
582942f4 TT |
2088 | 2019-03-24 Tom Tromey <tom@tromey.com> |
2089 | ||
2090 | * c-exp.y (typebase): Remove casts. | |
2091 | * gdbtypes.c (lookup_unsigned_typename, ) | |
2092 | (lookup_signed_typename): Remove cast. | |
2093 | * eval.c (parse_to_comma_and_eval): Remove cast. | |
2094 | * parse.c (write_dollar_variable): Remove cast. | |
2095 | * block.h (struct block) <superblock>: Now const. | |
2096 | * symfile-debug.c (debug_qf_map_matching_symbols): Update. | |
2097 | * psymtab.c (psym_map_matching_symbols): Make "block" const. | |
2098 | (map_block): Make "block" const. | |
2099 | * symfile.h (struct quick_symbol_functions) | |
2100 | <map_matching_symbols>: Constify block argument to "callback". | |
2101 | * symtab.c (basic_lookup_transparent_type_quick): Make "block" | |
2102 | const. | |
2103 | (find_pc_sect_compunit_symtab): Make "b" const. | |
2104 | (find_symbol_at_address): Likewise. | |
2105 | (search_symbols): Likewise. | |
2106 | * dwarf2read.c (dw2_lookup_symbol): Make "block" const. | |
2107 | (dw2_debug_names_lookup_symbol): Likewise. | |
2108 | (dw2_map_matching_symbols): Update. | |
2109 | * p-valprint.c (pascal_val_print): Remove "block". | |
2110 | * ada-lang.c (ada_add_global_exceptions): Make "b" const. | |
2111 | (aux_add_nonlocal_symbols): Make "block" const. | |
2112 | (resolve_subexp): Remove cast. | |
2113 | * linespec.c (iterate_over_all_matching_symtabs): Make "block" | |
2114 | const. | |
2115 | (iterate_over_file_blocks): Likewise. | |
2116 | * f-exp.y (%union) <bval>: Remove. | |
2117 | * coffread.c (patch_opaque_types): Make "b" const. | |
2118 | * spu-tdep.c (spu_catch_start): Make "block" const. | |
2119 | * c-valprint.c (print_unpacked_pointer): Remove "block". | |
2120 | * symmisc.c (dump_symtab_1): Make "b" const. | |
2121 | (block_depth): Make "block" const. | |
2122 | * d-exp.y (%union) <bval>: Remove. | |
2123 | * cp-support.h (cp_lookup_rtti_type): Update. | |
2124 | * cp-support.c (cp_lookup_rtti_type): Make "block" const. | |
2125 | * psymtab.c (psym_lookup_symbol): Make "block" const. | |
2126 | (maintenance_check_psymtabs): Make "b" const. | |
2127 | * python/py-framefilter.c (extract_sym): Make "sym_block" const. | |
2128 | (enumerate_locals, enumerate_args): Update. | |
2129 | * python/py-symtab.c (stpy_global_block): Make "block" const. | |
2130 | (stpy_static_block): Likewise. | |
2131 | * inline-frame.c (block_starting_point_at): Make "new_block" | |
2132 | const. | |
2133 | * block.c (find_block_in_blockvector): Make return type const. | |
2134 | (blockvector_for_pc_sect): Make "b" const. | |
2135 | (find_block_in_blockvector): Make "b" const. | |
2136 | ||
7ad417dd TT |
2137 | 2019-03-23 Tom Tromey <tom@tromey.com> |
2138 | ||
2139 | * varobj.c (varobj_create): Update. | |
2140 | * symfile.c (clear_symtab_users): Don't reset innermost_block. | |
2141 | * printcmd.c (display_command, do_one_display): Don't reset | |
2142 | innermost_block. | |
2143 | * parser-defs.h (enum innermost_block_tracker_type): Move to | |
2144 | expression.h. | |
2145 | (innermost_block): Update comment. | |
2146 | * parse.c (parse_exp_1): Add tracker_types parameter. | |
2147 | (parse_exp_in_context): Rename from parse_exp_in_context_1. Add | |
2148 | tracker_types parameter. Reset innermost_block. | |
2149 | (parse_exp_in_context): Remove. | |
2150 | (parse_expression_for_completion): Update. | |
2151 | * objfiles.c (~objfile): Don't reset expression_context_block or | |
2152 | innermost_block. | |
2153 | * expression.h (enum innermost_block_tracker_type): Move from | |
2154 | parser-defs.h. | |
2155 | (parse_exp_1): Add tracker_types parameter. | |
2156 | * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't | |
2157 | reset innermost_block. | |
2158 | ||
b366c208 TT |
2159 | 2019-03-23 Tom Tromey <tom@tromey.com> |
2160 | ||
2161 | * objfiles.h: Include bcache.h. | |
2162 | ||
9bb9b2f9 TT |
2163 | 2019-03-23 Tom Tromey <tom@tromey.com> |
2164 | ||
2165 | * linespec.c (get_current_search_block): Use | |
2166 | scoped_restore_current_language. | |
2167 | * symmisc.c (dump_symtab): Use scoped_restore_current_language. | |
2168 | ||
59c28372 AH |
2169 | 2019-03-22 Alan Hayward <alan.hayward@arm.com> |
2170 | Jiong Wang <jiong.wang@arm.com> | |
2171 | ||
2172 | * aarch64-linux-tdep.c | |
2173 | (aarch64_linux_iterate_over_regset_sections): Check for pauth | |
2174 | section. | |
2175 | * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define. | |
2176 | ||
17e116a7 AH |
2177 | 2019-03-22 Alan Hayward <alan.hayward@arm.com> |
2178 | Jiong Wang <jiong.wang@arm.com> | |
2179 | ||
2180 | * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth | |
2181 | instructions. | |
2182 | (aarch64_analyze_prologue_test): Add PACIASP test. | |
2183 | (aarch64_prologue_prev_register): Unmask PC value. | |
2184 | ||
11e1b75f AH |
2185 | 2019-03-22 Alan Hayward <alan.hayward@arm.com> |
2186 | Jiong Wang <jiong.wang@arm.com> | |
2187 | ||
2188 | * aarch64-tdep.c (aarch64_frame_unmask_address): New function. | |
2189 | (aarch64_dwarf2_prev_register): Unmask PC value. | |
2190 | (aarch64_dwarf2_frame_init_reg): Init pauth registers. | |
2191 | (aarch64_execute_dwarf_cfa_vendor_op): Check for | |
2192 | DW_CFA_AARCH64_negate_ra_state. | |
2193 | (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op. | |
2194 | ||
34dcc7cf AH |
2195 | 2019-03-22 Alan Hayward <alan.hayward@arm.com> |
2196 | Jiong Wang <jiong.wang@arm.com> | |
2197 | ||
2198 | * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth | |
2199 | registers. | |
2200 | (aarch64_pseudo_register_name): Likewise. | |
2201 | (aarch64_pseudo_register_type): Likewise. | |
2202 | (aarch64_pseudo_register_reggroup_p): Likewise. | |
2203 | (aarch64_gdbarch_init): Add pauth registers. | |
2204 | * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define. | |
2205 | (AARCH64_DWARF_PAUTH_DMASK): Likewise. | |
2206 | (AARCH64_DWARF_PAUTH_CMASK): Likewise. | |
2207 | (struct gdbarch_tdep): Add regnum for ra_state. | |
2208 | ||
1ef53e6b AH |
2209 | 2019-03-22 Alan Hayward <alan.hayward@arm.com> |
2210 | Jiong Wang <jiong.wang@arm.com> | |
2211 | ||
2212 | * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define. | |
2213 | ||
76bed0fd AH |
2214 | 2019-03-22 Alan Hayward <alan.hayward@arm.com> |
2215 | Jiong Wang <jiong.wang@arm.com> | |
2216 | ||
2217 | * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New | |
2218 | function. | |
2219 | (aarch64_linux_nat_target::fetch_registers): Read pauth registers. | |
2220 | * aarch64-tdep.c (aarch64_cannot_store_register): New function. | |
2221 | (aarch64_gdbarch_init): Add puth registers. | |
2222 | * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features. | |
2223 | * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define. | |
2224 | (AARCH64_PAUTH_CMASK_REGNUM): Likewise. | |
2225 | ||
ee4fbcfa AH |
2226 | 2019-03-22 Alan Hayward <alan.hayward@arm.com> |
2227 | Jiong Wang <jiong.wang@arm.com> | |
2228 | ||
2229 | * aarch64-linux-nat.c | |
2230 | (aarch64_linux_nat_target::read_description): Read PACA hwcap. | |
2231 | * aarch64-linux-tdep.c | |
2232 | (aarch64_linux_core_read_description): Likewise. | |
2233 | (aarch64_linux_get_hwcap): New function. | |
2234 | * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define. | |
2235 | (aarch64_linux_get_hwcap): New declaration. | |
2236 | ||
6dc0ebde AH |
2237 | 2019-03-22 Alan Hayward <alan.hayward@arm.com> |
2238 | Jiong Wang <jiong.wang@arm.com> | |
2239 | ||
2240 | * aarch64-linux-nat.c | |
2241 | (aarch64_linux_nat_target::read_description): Add pauth param. | |
2242 | * aarch64-linux-tdep.c | |
2243 | (aarch64_linux_core_read_description): Likewise. | |
2244 | * aarch64-tdep.c (struct target_desc): Add in pauth. | |
2245 | (aarch64_read_description): Add pauth param. | |
2246 | (aarch64_gdbarch_init): Likewise. | |
2247 | * aarch64-tdep.h (aarch64_read_description): Likewise. | |
2248 | * arch/aarch64.c (aarch64_create_target_description): Likewise. | |
2249 | * arch/aarch64.h (aarch64_create_target_description): Likewise. | |
2250 | * features/Makefile: Add new files. | |
2251 | * features/aarch64-pauth.c: New file. | |
2252 | * features/aarch64-pauth.xml: New file. | |
2253 | ||
595915c1 TT |
2254 | 2019-03-20 Tom Tromey <tromey@adacore.com> |
2255 | ||
2256 | * infrun.c (handle_inferior_event): Rename from | |
2257 | handle_inferior_event_1. Create a scoped_value_mark. | |
2258 | (handle_inferior_event): Remove. | |
2259 | ||
4c7d57e7 TT |
2260 | 2019-03-19 Tom Tromey <tromey@adacore.com> |
2261 | ||
2262 | * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once. | |
2263 | * infrun.h (print_stop_event): Add "displays" parameter. | |
2264 | * infrun.c (print_stop_event): Add "displays" parameter. | |
2265 | ||
cb246234 PA |
2266 | 2019-03-19 Pedro Alves <palves@redhat.com> |
2267 | ||
2268 | * tui/tui-out.c (tui_ui_out::do_field_string): Simplify. | |
2269 | (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of | |
2270 | to -1. Fix TABs vs spaces. | |
2271 | (tui_ui_out::tui_ui_out): Don't initialize fields here. | |
2272 | * tui/tui-out.h (tui_ui_out) Add intro comments. | |
2273 | <m_line, m_start_of_line>: In-class initialize, and add describing | |
2274 | comment. | |
2275 | ||
3a0e45b2 AH |
2276 | 2019-03-18 Alan Hayward <alan.hayward@arm.com> |
2277 | ||
2278 | * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix | |
2279 | variable names. | |
2280 | (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view. | |
2281 | ||
5371b850 PA |
2282 | 2019-03-18 Pedro Alves <palves@redhat.com> |
2283 | Eli Zaretskii <eliz@gnu.org> | |
2284 | ||
2285 | * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of | |
2286 | m_line and m_start_of_line. | |
2287 | ||
b17c4cd0 EZ |
2288 | 2019-03-18 Eli Zaretskii <eliz@gnu.org> |
2289 | ||
2290 | * tui/tui-io.c (gdb_wgetch): Don't echo CR. | |
2291 | (tui_getc): When gdb_wgetch returns a CR, behave the same as when | |
2292 | it returns a newline. This fixes a regression in TU mode, whereby | |
2293 | the next line is output on the same screen line as the user input. | |
2294 | ||
4bd56d18 TT |
2295 | 2019-03-18 Tom Tromey <tromey@adacore.com> |
2296 | ||
2297 | * minsyms.c (minimal_symbol_reader::install): Remove call to | |
2298 | obstack_blank. | |
2299 | ||
55c10aca PA |
2300 | 2019-03-18 Pedro Alves <palves@redhat.com> |
2301 | ||
2302 | * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg): | |
2303 | New globals. | |
2304 | (apply_style): New, factored out from ... | |
2305 | (apply_ansi_escape): ... this. Handle reverse video mode. | |
2306 | (tui_set_reverse_mode): New function. | |
2307 | * tui/tui-io.h (tui_set_reverse_mode): New declaration. | |
2308 | * tui/tui-winsource.c (tui_show_source_line): Use | |
2309 | tui_set_reverse_mode instead of setting A_STANDOUT. | |
2310 | * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>: | |
2311 | New setter methods. | |
2312 | ||
647bb750 HD |
2313 | 2019-03-18 Hannes Domani <ssbssa@yahoo.de> |
2314 | ||
2315 | * tui/tui-source.c (copy_source_line): Fix handling of 'column'. | |
2316 | Handle tabs. | |
2317 | ||
bff8c71f TT |
2318 | 2019-03-18 Tom Tromey <tromey@adacore.com> |
2319 | ||
2320 | * ada-lang.c (empty_array): Add "high" parameter. | |
2321 | (ada_evaluate_subexp): Update. | |
2322 | ||
58785d98 ST |
2323 | 2019-03-17 Sergei Trofimovich <siarheit@google.com> |
2324 | ||
2325 | * unittests/string_view-selftests.c: Define | |
2326 | _initialize_string_view_selftests unconditionally. | |
2327 | ||
d4cbef22 ВМ |
2328 | 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com> |
2329 | ||
2330 | PR gdb/24350 | |
2331 | * windows-nat.c (windows_make_so): Remove unused text_vma variable. | |
2332 | ||
fce4c071 ВМ |
2333 | 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com> |
2334 | ||
2335 | PR gdb/24351 | |
2336 | * windows-nat.c (display_selector): Fix format specifiers. | |
2337 | ||
f7f0a123 EZ |
2338 | 2019-03-17 Eli Zaretskii <eliz@gnu.org> |
2339 | ||
2340 | * tui/tui-winsource.c (tui_set_is_exec_point_at): Call | |
2341 | tui_refill_source_window instead of tui_refresh_win, to update the | |
2342 | current execution line. This fixes redisplay of the current line | |
2343 | when stepping through the code with "next" or "step". | |
2344 | ||
ab42892f EZ |
2345 | 2019-03-16 Eli Zaretskii <eliz@gnu.org> |
2346 | ||
2347 | * source-cache.c (source_cache::get_source_lines): Call | |
2348 | find_source_lines to initialize s->nlines. This fixes vertical | |
2349 | scrolling of TUI source window when the DOWN arrow is pressed. | |
2350 | ||
8d8c087f PW |
2351 | 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
2352 | ||
2353 | * auto-load.c (_initialize_auto_load): Fix 'This options has'. | |
2354 | linux-thread-db.c (_initialize_thread_db): Likewise. | |
2355 | ||
798e1c30 EZ |
2356 | 2019-03-16 Eli Zaretskii <eliz@gnu.org> |
2357 | ||
2358 | * tui/tui-winsource.c (tui_show_source_line): Revert "Use | |
2359 | wclrtoeol in tui_show_source_line". This reverts changes made in | |
2360 | commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c. | |
2361 | ||
eefba3da TT |
2362 | 2019-03-15 Tom Tromey <tom@tromey.com> |
2363 | ||
2364 | * symtab.h (struct minimal_symbol): Derive from | |
2365 | general_symbol_info. | |
2366 | (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS) | |
2367 | (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES) | |
2368 | (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE) | |
2369 | (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME) | |
2370 | (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME) | |
2371 | (MSYMBOL_SEARCH_NAME): Update. | |
2372 | (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove. | |
2373 | * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset. | |
2374 | * minsyms.c (minimal_symbol_reader::record_full): Update. | |
2375 | ||
0de2420c TT |
2376 | 2019-03-15 Tom Tromey <tom@tromey.com> |
2377 | ||
2378 | * minsyms.c (minimal_symbol_reader::install): Use memcpy. | |
2379 | ||
042d75e4 TT |
2380 | 2019-03-15 Tom Tromey <tom@tromey.com> |
2381 | ||
2382 | * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a | |
2383 | unique_xmalloc_ptr. | |
2384 | (objfile::msymbols_range::begin, objfile::msymbols_range::end): | |
2385 | Update. | |
2386 | * minsyms.c (lookup_minimal_symbol_by_pc_section) | |
2387 | (build_minimal_symbol_hash_tables) | |
2388 | (minimal_symbol_reader::install): Update. | |
2389 | ||
db92718b TT |
2390 | 2019-03-15 Tom Tromey <tom@tromey.com> |
2391 | ||
2392 | * symtab.c (create_demangled_names_hash): Update. | |
2393 | (symbol_set_names): Update. | |
2394 | * objfiles.h (struct objfile_per_bfd_storage) | |
2395 | <demangled_names_hash>: Now an htab_up. | |
2396 | * objfiles.c (objfile_per_bfd_storage): Simplify. | |
2397 | ||
d6797f46 TT |
2398 | 2019-03-15 Tom Tromey <tom@tromey.com> |
2399 | ||
2400 | * objfiles.h (struct objfile_per_bfd_storage): Declare | |
2401 | destructor. | |
2402 | * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage): | |
2403 | New. | |
2404 | (get_objfile_bfd_data): Use new. Don't initialize | |
2405 | language_of_main. | |
2406 | (free_objfile_per_bfd_storage): Remove. | |
2407 | (objfile_bfd_data_free, objfile::~objfile): Use delete. | |
2408 | ||
741d7538 TT |
2409 | 2019-03-15 Tom Tromey <tom@tromey.com> |
2410 | ||
2411 | * symfile.c (reread_symbols): Update. | |
2412 | * objfiles.c (objfile::objfile): Update. | |
2413 | * minsyms.h (terminate_minimal_symbol_table): Don't declare. | |
2414 | * minsyms.c (lookup_minimal_symbol_by_pc_section): Update | |
2415 | comment. | |
2416 | (minimal_symbol_reader::install): Update. | |
2417 | (terminate_minimal_symbol_table): Remove. | |
2418 | * jit.c (jit_object_close_impl): Update. | |
2419 | ||
788c80d1 TT |
2420 | 2019-03-15 Tom Tromey <tom@tromey.com> |
2421 | ||
2422 | * minsyms.c (minimal_symbol_reader::record_full): Remove some | |
2423 | initializations. | |
2424 | ||
1b7a07cb TT |
2425 | 2019-03-15 Tom Tromey <tom@tromey.com> |
2426 | ||
2427 | * objfiles.h (struct objfile_per_bfd_storage) | |
2428 | <demangled_hash_languages>: Now a bitset. | |
2429 | * minsyms.c (add_minsym_to_demangled_hash_table): Update. | |
2430 | (lookup_minimal_symbol): Update. | |
2431 | ||
3db066bc TT |
2432 | 2019-03-15 Tom Tromey <tom@tromey.com> |
2433 | ||
2434 | * minsyms.h (class minimal_symbol_reader) <record_with_info>: | |
2435 | Don't return the symbol. | |
2436 | * coffread.c (record_minimal_symbol): Use record_full. | |
2437 | ||
3fff2c37 EZ |
2438 | 2019-03-14 Eli Zaretskii <eliz@gnu.org> |
2439 | ||
2440 | The MS-Windows port of ncurses fails to switch to a color pair if | |
2441 | one or both of the colors are the implicit default colors. This | |
2442 | change records the default colors when TUI is initialized, and | |
2443 | then specifies them explicitly when a color pair uses the default | |
2444 | colors. This allows color styling in TUI mode on MS-Windows. | |
2445 | ||
2446 | * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare | |
2447 | ncurses_norm_attr. | |
2448 | (tui_initialize_io) [__MINGW32__]: Record the default terminal | |
2449 | colors in ncurses_norm_attr. | |
2450 | (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is | |
2451 | "none", replace it with the default color recorded in | |
2452 | ncurses_norm_attr. | |
2453 | ||
3b336828 TT |
2454 | 2019-03-14 Tom Tromey <tromey@adacore.com> |
2455 | ||
2456 | * source-cache.h (class source_cache) <get_source_lines>: Return | |
2457 | std::string. | |
2458 | * source-cache.c (source_cache::extract_lines): Handle case where | |
2459 | first_pos==npos. Return std::string. | |
2460 | (source_cache::get_source_lines): Update. | |
2461 | ||
d085f989 TT |
2462 | 2019-03-14 Tom Tromey <tromey@adacore.com> |
2463 | ||
2464 | * NEWS: Add item for "style sources" commands. | |
2465 | * source-cache.c (source_cache::get_source_lines): Check | |
2466 | source_styling. | |
2467 | * cli/cli-style.c (source_styling): New global. | |
2468 | (_initialize_cli_style): Add "style sources" commands. | |
2469 | (show_style_sources): New function. | |
2470 | * cli/cli-style.h (source_styling): Declare. | |
2471 | ||
6f11e682 TT |
2472 | 2019-03-14 Pedro Alves <palves@redhat.com> |
2473 | Tom Tromey <tromey@adacore.com> | |
2474 | ||
2475 | * tui/tui-winsource.h (tui_refill_source_window): Declare. | |
2476 | * tui/tui-winsource.c (tui_refill_source_window): New function, | |
2477 | from... | |
2478 | (tui_horizontal_source_scroll): ... here. Move some logic. | |
2479 | * cli/cli-style.c (set_style_enabled): Notify new observable. | |
2480 | * tui/tui-hooks.c (tui_redisplay_source): New function. | |
2481 | (tui_attach_detach_observers): Attach or detach | |
2482 | tui_redisplay_source. | |
2483 | * observable.h (source_styling_changed): New observable. | |
2484 | * observable.c: Define source_styling_changed observable. | |
2485 | ||
a068643d TT |
2486 | 2019-03-13 Tom Tromey <tromey@adacore.com> |
2487 | ||
2488 | * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers) | |
2489 | (i386_gnu_nat_target::store_registers): Update. | |
2490 | * target-debug.h (target_debug_print_std_string): New macro. | |
2491 | * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update. | |
2492 | * windows-tdep.c (display_one_tib): Update. | |
2493 | * tui/tui-stack.c (tui_make_status_line): Update. | |
2494 | * top.c (print_inferior_quit_action): Update. | |
2495 | * thread.c (thr_try_catch_cmd): Update. | |
2496 | (add_thread_with_info): Update. | |
2497 | (thread_target_id_str): Update. | |
2498 | (thr_try_catch_cmd): Update. | |
2499 | (thread_command): Update. | |
2500 | (thread_find_command): Update. | |
2501 | * record-btrace.c (record_btrace_target::info_record) | |
2502 | (record_btrace_resume_thread, record_btrace_target::resume) | |
2503 | (record_btrace_cancel_resume, record_btrace_step_thread) | |
2504 | (record_btrace_target::wait, record_btrace_target::wait) | |
2505 | (record_btrace_target::wait, record_btrace_target::stop): Update. | |
2506 | * progspace.c (print_program_space): Update. | |
2507 | * process-stratum-target.c | |
2508 | (process_stratum_target::thread_address_space): Update. | |
2509 | * linux-fork.c (linux_fork_mourn_inferior) | |
2510 | (detach_checkpoint_command, info_checkpoints_command) | |
2511 | (linux_fork_context): Update. | |
2512 | (linux_fork_detach): Update. | |
2513 | (class scoped_switch_fork_info): Update. | |
2514 | (delete_checkpoint_command): Update. | |
2515 | * infrun.c (follow_fork_inferior): Update. | |
2516 | (follow_fork_inferior): Update. | |
2517 | (proceed_after_vfork_done): Update. | |
2518 | (handle_vfork_child_exec_or_exit): Update. | |
2519 | (follow_exec): Update. | |
2520 | (displaced_step_prepare_throw): Update. | |
2521 | (displaced_step_restore): Update. | |
2522 | (start_step_over): Update. | |
2523 | (resume_1): Update. | |
2524 | (clear_proceed_status_thread): Update. | |
2525 | (proceed): Update. | |
2526 | (print_target_wait_results): Update. | |
2527 | (do_target_wait): Update. | |
2528 | (context_switch): Update. | |
2529 | (stop_all_threads): Update. | |
2530 | (restart_threads): Update. | |
2531 | (finish_step_over): Update. | |
2532 | (handle_signal_stop): Update. | |
2533 | (switch_back_to_stepped_thread): Update. | |
2534 | (keep_going_pass_signal): Update. | |
2535 | (print_exited_reason): Update. | |
2536 | (normal_stop): Update. | |
2537 | * inferior.c (inferior_pid_to_str): Change return type. | |
2538 | (print_selected_inferior): Update. | |
2539 | (add_inferior): Update. | |
2540 | (detach_inferior): Update. | |
2541 | * dummy-frame.c (fprint_dummy_frames): Update. | |
2542 | * dcache.c (dcache_info_1): Update. | |
2543 | * btrace.c (btrace_enable, btrace_disable, btrace_teardown) | |
2544 | (btrace_fetch, btrace_clear): Update. | |
2545 | * linux-tdep.c (linux_core_pid_to_str): Change return type. | |
2546 | * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return | |
2547 | type. | |
2548 | * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type. | |
2549 | * sol2-tdep.h (sol2_core_pid_to_str): Change return type. | |
2550 | * sol2-tdep.c (sol2_core_pid_to_str): Change return type. | |
2551 | * gdbarch.c, gdbarch.h: Rebuild. | |
2552 | * gdbarch.sh (core_pid_to_str): Change return type. | |
2553 | * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change | |
2554 | return type. | |
2555 | (windows_nat_target::pid_to_str): Change return type. | |
2556 | (windows_delete_thread): Update. | |
2557 | (windows_nat_target::attach): Update. | |
2558 | (windows_nat_target::files_info): Update. | |
2559 | * target-delegates.c: Rebuild. | |
2560 | * sol-thread.c (class sol_thread_target) <pid_to_str>: Change | |
2561 | return type. | |
2562 | (sol_thread_target::pid_to_str): Change return type. | |
2563 | * remote.c (class remote_target) <pid_to_str>: Change return | |
2564 | type. | |
2565 | (remote_target::pid_to_str): Change return type. | |
2566 | (extended_remote_target::attach, remote_target::remote_stop_ns) | |
2567 | (remote_target::remote_notif_remove_queued_reply) | |
2568 | (remote_target::push_stop_reply, remote_target::disable_btrace): | |
2569 | Update. | |
2570 | (extended_remote_target::attach): Update. | |
2571 | * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return | |
2572 | type. | |
2573 | (gdbsim_target::pid_to_str): Change return type. | |
2574 | * ravenscar-thread.c (struct ravenscar_thread_target) | |
2575 | <pid_to_str>: Change return type. | |
2576 | (ravenscar_thread_target::pid_to_str): Change return type. | |
2577 | * procfs.c (class procfs_target) <pid_to_str>: Change return | |
2578 | type. | |
2579 | (procfs_target::pid_to_str): Change return type. | |
2580 | (procfs_target::attach): Update. | |
2581 | (procfs_target::detach): Update. | |
2582 | (procfs_target::fetch_registers): Update. | |
2583 | (procfs_target::store_registers): Update. | |
2584 | (procfs_target::wait): Update. | |
2585 | (procfs_target::files_info): Update. | |
2586 | * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type. | |
2587 | * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change | |
2588 | return type. | |
2589 | (nto_procfs_target::pid_to_str): Change return type. | |
2590 | (nto_procfs_target::files_info, nto_procfs_target::attach): Update. | |
2591 | * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change | |
2592 | return type. | |
2593 | * linux-nat.c (linux_nat_target::pid_to_str): Change return type. | |
2594 | (exit_lwp): Update. | |
2595 | (attach_proc_task_lwp_callback, get_detach_signal) | |
2596 | (detach_one_lwp, resume_lwp, linux_nat_target::resume) | |
2597 | (linux_nat_target::resume, wait_lwp, stop_callback) | |
2598 | (maybe_clear_ignore_sigint, stop_wait_callback, status_callback) | |
2599 | (save_stop_reason, select_event_lwp, linux_nat_filter_event) | |
2600 | (linux_nat_wait_1, resume_stopped_resumed_lwps) | |
2601 | (linux_nat_target::wait, linux_nat_stop_lwp): Update. | |
2602 | * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return | |
2603 | type. | |
2604 | (inf_ptrace_target::attach): Update. | |
2605 | (inf_ptrace_target::files_info): Update. | |
2606 | * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return | |
2607 | type. | |
2608 | (go32_nat_target::pid_to_str): Change return type. | |
2609 | * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type. | |
2610 | (gnu_nat_target::wait): Update. | |
2611 | (gnu_nat_target::wait): Update. | |
2612 | (gnu_nat_target::resume): Update. | |
2613 | * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type. | |
2614 | (fbsd_nat_target::wait): Update. | |
2615 | * darwin-nat.c (darwin_nat_target::pid_to_str): Change return | |
2616 | type. | |
2617 | (darwin_nat_target::attach): Update. | |
2618 | * corelow.c (class core_target) <pid_to_str>: Change return type. | |
2619 | (core_target::pid_to_str): Change return type. | |
2620 | * target.c (normal_pid_to_str): Change return type. | |
2621 | (default_pid_to_str): Likewise. | |
2622 | (target_pid_to_str): Change return type. | |
2623 | (target_translate_tls_address): Update. | |
2624 | (target_announce_detach): Update. | |
2625 | * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change | |
2626 | return type. | |
2627 | (bsd_uthread_target::pid_to_str): Change return type. | |
2628 | * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return | |
2629 | type. | |
2630 | (bsd_kvm_target::pid_to_str): Change return type. | |
2631 | * aix-thread.c (class aix_thread_target) <pid_to_str>: Change | |
2632 | return type. | |
2633 | (aix_thread_target::pid_to_str): Change return type. | |
2634 | * target.h (struct target_ops) <pid_to_str>: Change return type. | |
2635 | (target_pid_to_str, normal_pid_to_str): Likewise. | |
2636 | * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return | |
2637 | type. | |
2638 | * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return | |
2639 | type. | |
2640 | * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change | |
2641 | return type. | |
2642 | * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return | |
2643 | type. | |
2644 | * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return | |
2645 | type. | |
2646 | * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change | |
2647 | return type. | |
2648 | ||
b4be1b06 SM |
2649 | 2019-03-13 Simon Marchi <simon.marchi@ericsson.com> |
2650 | ||
2651 | * NEWS: Mention that the new default MI version is 3. Mention | |
2652 | changes to the output of commands and events that deal with | |
2653 | multi-location breakpoints. | |
2654 | * breakpoint.c: Include "mi/mi-out.h". | |
2655 | (print_one_breakpoint): Change output syntax if using MI version | |
2656 | >= 3. | |
2657 | * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output): | |
2658 | New. | |
2659 | (mi_multi_location_breakpoint_output_fixed): New. | |
2660 | * mi/mi-main.c (fix_multi_location_breakpoint_output): New. | |
2661 | (mi_cmd_fix_multi_location_breakpoint_output): New. | |
2662 | (mi_multi_location_breakpoint_output_fixed): New. | |
2663 | * mi/mi-cmds.c (mi_cmds): Register command | |
2664 | -fix-multi-location-breakpoint-output. | |
2665 | * mi/mi-out.c (mi_out_new): Instantiate version 3 when using | |
2666 | interpreter "mi". | |
2667 | ||
8e5e5494 SM |
2668 | 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca> |
2669 | ||
2670 | * mi/mi-out.h (mi_out_new): Change parameter to const char *. | |
2671 | * mi/mi-out.c (mi_out_new): Change parameter to const char *, | |
2672 | instantiate mi_ui_out based on interpreter name. | |
2673 | * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new. | |
2674 | * mi/mi-main.c (mi_load_progress): Likewise. | |
2675 | ||
197df35e JB |
2676 | 2019-03-12 John Baldwin <jhb@FreeBSD.org> |
2677 | ||
2678 | * NEWS: Combine separate "New targets" sections for 8.3. | |
2679 | ||
8399425f JB |
2680 | 2019-03-12 John Baldwin <jhb@FreeBSD.org> |
2681 | ||
2682 | * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New. | |
2683 | (ppcfbsd_init_abi): Install gdbarch | |
2684 | "fetch_tls_load_module_address" and "get_thread_local_address" | |
2685 | methods. | |
2686 | ||
b0f87ed0 JB |
2687 | 2019-03-12 John Baldwin <jhb@FreeBSD.org> |
2688 | ||
2689 | * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New. | |
2690 | (riscv_fbsd_init_abi): Install gdbarch | |
2691 | "fetch_tls_load_module_address" and "get_thread_local_address" | |
2692 | methods. | |
2693 | ||
ce25aa57 JB |
2694 | 2019-03-12 John Baldwin <jhb@FreeBSD.org> |
2695 | ||
2696 | * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New. | |
2697 | (i386fbsd_init_abi): Install gdbarch | |
2698 | "fetch_tls_load_module_address" and "get_thread_local_address" | |
2699 | methods. | |
2700 | ||
f5424cfa JB |
2701 | 2019-03-12 John Baldwin <jhb@FreeBSD.org> |
2702 | ||
2703 | * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New. | |
2704 | (amd64fbsd_init_abi): Install gdbarch | |
2705 | "fetch_tls_load_module_address" and "get_thread_local_address" | |
2706 | methods. | |
2707 | ||
945f3901 JB |
2708 | 2019-03-12 John Baldwin <jhb@FreeBSD.org> |
2709 | ||
2710 | * fbsd-tdep.c (fbsd_pspace_data_handle): New variable. | |
2711 | (struct fbsd_pspace_data): New type. | |
2712 | (get_fbsd_pspace_data, fbsd_pspace_data_cleanup) | |
2713 | (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets) | |
2714 | (fbsd_get_tls_index, fbsd_get_thread_local_address): New function. | |
2715 | (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'. | |
2716 | * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype. | |
2717 | ||
ef0bd204 JB |
2718 | 2019-03-12 John Baldwin <jhb@FreeBSD.org> |
2719 | ||
2720 | * gdbtypes.c (lookup_struct_elt): New function. | |
2721 | (lookup_struct_elt_type): Reimplement via lookup_struct_elt. | |
2722 | * gdbtypes.h (struct struct_elt): New type. | |
2723 | (lookup_struct_elt): New prototype. | |
2724 | ||
36c53a02 JB |
2725 | 2019-03-12 John Baldwin <jhb@FreeBSD.org> |
2726 | ||
2727 | * gdbtypes.c (lookup_struct_elt_type): Update comment and | |
2728 | remove disabled code block. | |
2729 | ||
6e056c81 JB |
2730 | 2019-03-12 John Baldwin <jhb@FreeBSD.org> |
2731 | ||
2732 | * gdbarch.sh (get_thread_local_address): New method. | |
2733 | * gdbarch.h, gdbarch.c: Regenerate. | |
2734 | * target.c (target_translate_tls_address): Use | |
2735 | gdbarch_get_thread_local_address if present instead of | |
2736 | target::get_thread_local_address. | |
2737 | ||
cd250a18 JB |
2738 | 2019-03-12 John Baldwin <jhb@FreeBSD.org> |
2739 | ||
2740 | * target.h (target::get_thread_local_address): Update comment. | |
2741 | ||
df22c1e5 JB |
2742 | 2019-03-12 John Baldwin <jhb@FreeBSD.org> |
2743 | ||
2744 | * solib-svr4.c (svr4_fetch_objfile_link_map): Look for | |
2745 | objfile->separate_debug_objfile_backlink if not NULL. | |
2746 | ||
dd6876c9 JB |
2747 | 2019-03-12 John Baldwin <jhb@FreeBSD.org> |
2748 | ||
2749 | * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use | |
2750 | tdep->fsbase_regnum instead of constants for fs_base and gs_base. | |
2751 | (amd64bsd_store_inferior_registers): Likewise. | |
2752 | * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description): | |
2753 | Enable segment base registers. | |
2754 | * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use | |
2755 | PT_GETFSBASE and PT_GETGSBASE. | |
2756 | (i386bsd_store_inferior_registers): Use PT_SETFSBASE and | |
2757 | PT_SETGSBASE. | |
2758 | * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable | |
2759 | segment base registers. | |
2760 | * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise. | |
2761 | ||
1163a4b7 JB |
2762 | 2019-03-12 John Baldwin <jhb@FreeBSD.org> |
2763 | ||
2764 | * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description): | |
2765 | Update calls to i386_target_description to add 'segments' | |
2766 | parameter. | |
2767 | * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't | |
2768 | add segment base registers. | |
2769 | * arch/i386.c (i386_create_target_description): Add 'segments' | |
2770 | parameter to enable segment base registers. | |
2771 | * arch/i386.h (i386_create_target_description): Likewise. | |
2772 | * features/i386/32bit-segments.xml: New file. | |
2773 | * features/i386/32bit-segments.c: Generate. | |
2774 | * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update | |
2775 | call to i386_target_description to add 'segments' parameter. | |
2776 | * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise. | |
2777 | * i386-go32-tdep.c (i386_go32_init_abi): Likewise. | |
2778 | * i386-linux-tdep.c (i386_linux_read_description): Likewise. | |
2779 | * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers | |
2780 | if feature is present. | |
2781 | (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs. | |
2782 | Add 'segments' parameter to call to i386_target_description. | |
2783 | (i386_target_description): Add 'segments' parameter to enable | |
2784 | segment base registers. | |
2785 | (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter | |
2786 | to call to i386_target_description. | |
2787 | * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'. | |
2788 | (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM. | |
2789 | Define I386_NUM_REGS. | |
2790 | (i386_target_description): Add 'segments' parameter to enable | |
2791 | segment base registers. | |
2792 | ||
3a350822 EZ |
2793 | 2019-03-12 Eli Zaretskii <eliz@gnu.org> |
2794 | ||
2795 | PR/24325 | |
2796 | * source-cache.c: #undef open and close, to avoid unresolved | |
2797 | externals during linking. | |
2798 | ||
ffdd69cf TT |
2799 | 2019-03-12 Tom Tromey <tromey@adacore.com> |
2800 | ||
2801 | * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now | |
2802 | const. Add initializers. | |
2803 | (_initialize_remote): Don't initialize ptid globals. | |
2804 | ||
ec148c57 PA |
2805 | 2019-03-12 Pedro Alves <palves@redhat.com> |
2806 | ||
2807 | * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define. | |
2808 | ||
32764270 PA |
2809 | 2019-03-12 Pedro Alves <palves@redhat.com> |
2810 | ||
2811 | * cp-name-parser.y (main): Remove unused 'len' variable. | |
2812 | ||
17547186 TT |
2813 | 2019-03-12 Tom Tromey <tromey@adacore.com> |
2814 | ||
2815 | * common/ptid.c (null_ptid, minus_one_ptid): Now const. | |
2816 | * common/ptid.h (null_ptid, minus_one_ptid): Now const. | |
2817 | ||
d3a70e03 TT |
2818 | 2019-03-12 Tom Tromey <tromey@adacore.com> |
2819 | ||
2820 | * linux-nat.c (iterate_over_lwps): Update. | |
2821 | (stop_callback): Remove parameter. | |
2822 | (stop_wait_callback, detach_callback, resume_set_callback) | |
2823 | (select_singlestep_lwp_callback, set_ignore_sigint) | |
2824 | (status_callback, resumed_callback, resume_clear_callback) | |
2825 | (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove | |
2826 | data parameter. | |
2827 | (linux_nat_target::detach, linux_nat_target::resume) | |
2828 | (linux_stop_and_wait_all_lwps, select_event_lwp) | |
2829 | (linux_nat_filter_event, linux_nat_wait_1) | |
2830 | (linux_nat_target::kill, linux_nat_target::stop) | |
2831 | (linux_nat_target::stop): Update. | |
2832 | (linux_nat_resume_callback): Change type. | |
2833 | (resume_stopped_resumed_lwps, count_events_callback) | |
2834 | (select_event_lwp_callback): Likewise. | |
2835 | (linux_stop_lwp, linux_nat_stop_lwp): Update. | |
2836 | * arm-linux-nat.c (struct update_registers_data): Remove. | |
2837 | (update_registers_callback): Change type. | |
2838 | (arm_linux_insert_hw_breakpoint1): Update. | |
2839 | * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove | |
2840 | parameter. | |
2841 | (x86_linux_dr_set_addr): Update. | |
2842 | (x86_linux_dr_set_control): Update. | |
2843 | * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter. | |
2844 | (iterate_over_lwps): Use gdb::function_view. | |
2845 | * nat/aarch64-linux-hw-point.c (struct | |
2846 | aarch64_dr_update_callback_param): Remove. | |
2847 | (debug_reg_change_callback): Change type. | |
2848 | (aarch64_notify_debug_reg_change): Update. | |
2849 | * s390-linux-nat.c (s390_refresh_per_info): Update. | |
2850 | ||
82cb27ff TT |
2851 | 2019-03-11 Tom Tromey <tromey@adacore.com> |
2852 | ||
2853 | * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove | |
2854 | redundant assignment to "this_cu". | |
2855 | ||
568c0683 SM |
2856 | 2019-03-08 Simon Marchi <simon.marchi@efficios.com> |
2857 | ||
2858 | * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch. | |
2859 | ||
f09ce22d SM |
2860 | 2019-03-08 Simon Marchi <simon.marchi@efficios.com> |
2861 | ||
2862 | * gdbtypes.c (rank_one_type_parm_set): New function extracted | |
2863 | from... | |
2864 | (rank_one_type): ... this. | |
2865 | ||
595f96a9 SM |
2866 | 2019-03-08 Simon Marchi <simon.marchi@efficios.com> |
2867 | ||
2868 | * gdbtypes.c (rank_one_type_parm_struct): New function extracted | |
2869 | from... | |
2870 | (rank_one_type): ... this. | |
2871 | ||
2598a94b SM |
2872 | 2019-03-08 Simon Marchi <simon.marchi@efficios.com> |
2873 | ||
2874 | * gdbtypes.c (rank_one_type_parm_complex): New function extracted | |
2875 | from... | |
2876 | (rank_one_type): ... this. | |
2877 | ||
7f17b20d SM |
2878 | 2019-03-08 Simon Marchi <simon.marchi@efficios.com> |
2879 | ||
2880 | * gdbtypes.c (rank_one_type_parm_float): New function extracted | |
2881 | from... | |
2882 | (rank_one_type): ... this. | |
2883 | ||
2c509035 SM |
2884 | 2019-03-08 Simon Marchi <simon.marchi@efficios.com> |
2885 | ||
2886 | * gdbtypes.c (rank_one_type_parm_bool): New function extracted | |
2887 | from... | |
2888 | (rank_one_type): ... this. | |
2889 | ||
0dd322dc SM |
2890 | 2019-03-08 Simon Marchi <simon.marchi@efficios.com> |
2891 | ||
2892 | * gdbtypes.c (rank_one_type_parm_range): New function extracted | |
2893 | from... | |
2894 | (rank_one_type): ... this. | |
2895 | ||
41ea4728 SM |
2896 | 2019-03-08 Simon Marchi <simon.marchi@efficios.com> |
2897 | ||
2898 | * gdbtypes.c (rank_one_type_parm_char): New function extracted | |
2899 | from... | |
2900 | (rank_one_type): ... this. | |
2901 | ||
793cd1d2 SM |
2902 | 2019-03-08 Simon Marchi <simon.marchi@efficios.com> |
2903 | ||
2904 | * gdbtypes.c (rank_one_type_parm_enum): New function extracted | |
2905 | from... | |
2906 | (rank_one_type): ... this. | |
2907 | ||
34910087 SM |
2908 | 2019-03-08 Simon Marchi <simon.marchi@efficios.com> |
2909 | ||
2910 | * gdbtypes.c (rank_one_type_parm_int): New function extracted | |
2911 | from... | |
2912 | (rank_one_type): ... this. | |
2913 | ||
f1f832d6 SM |
2914 | 2019-03-08 Simon Marchi <simon.marchi@efficios.com> |
2915 | ||
2916 | * gdbtypes.c (rank_one_type_parm_func): New function extracted | |
2917 | from... | |
2918 | (rank_one_type): ... this. | |
2919 | ||
b9f4512f SM |
2920 | 2019-03-08 Simon Marchi <simon.marchi@efficios.com> |
2921 | ||
2922 | * gdbtypes.c (rank_one_type_parm_array): New function extracted | |
2923 | from... | |
2924 | (rank_one_type): ... this. | |
2925 | ||
9293fc63 SM |
2926 | 2019-03-08 Simon Marchi <simon.marchi@efficios.com> |
2927 | ||
2928 | * gdbtypes.c (rank_one_type_parm_ptr): New function extracted | |
2929 | from... | |
2930 | (rank_one_type): ... this. | |
2931 | ||
e3abbe7e PW |
2932 | 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
2933 | ||
2934 | * inferior.c (initialize_inferiors): Ensure 'help set/show print | |
2935 | inferior-events' shows the example events. | |
2936 | ||
e4adb939 EZ |
2937 | 2019-03-08 Eli Zaretskii <eliz@gnu.org> |
2938 | ||
2939 | Support styling on native MS-Windows console | |
2940 | ||
2941 | PR/24315 | |
2942 | * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling | |
2943 | on MS-Windows if $TERM is not defined. | |
2944 | ||
2945 | * cli/cli-style.c: Set cli_styling to 1 in the MinGW build. | |
2946 | ||
2947 | * posix-hdep.c (gdb_console_fputs): | |
2948 | * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New | |
2949 | functions. | |
2950 | * ui-file.h (gdb_console_fputs): Add prototype. | |
2951 | ||
2952 | * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall | |
2953 | back to fputs only if the former returns zero. | |
2954 | ||
25629dfd TT |
2955 | 2019-03-07 Tom Tromey <tom@tromey.com> |
2956 | ||
2957 | * symmisc.c (print_symbol_bcache_statistics): Update. | |
2958 | (print_objfile_statistics): Update. | |
2959 | * symfile.c (allocate_symtab): Update. | |
2960 | * stabsread.c: Don't include bcache.h. | |
2961 | * psymtab.h (struct psymbol_bcache): Don't declare. | |
2962 | (class psymtab_storage) <psymbol_cache>: Now a bcache. | |
2963 | (psymbol_bcache_init, psymbol_bcache_free) | |
2964 | (psymbol_bcache_get_bcache): Don't declare. | |
2965 | * psymtab.c (struct psymbol_bcache): Remove. | |
2966 | (psymtab_storage::psymtab_storage): Update. | |
2967 | (psymtab_storage::~psymtab_storage): Update. | |
2968 | (psymbol_bcache_init, psymbol_bcache_free) | |
2969 | (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove. | |
2970 | (add_psymbol_to_bcache): Update. | |
2971 | (allocate_psymtab): Update. | |
2972 | * objfiles.h (struct objfile_per_bfd_storage) <filename_cache, | |
2973 | macro_cache>: No longer pointers. | |
2974 | * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc. | |
2975 | (free_objfile_per_bfd_storage): Don't call bcache_xfree. | |
2976 | * macrotab.c (macro_bcache): Update. | |
2977 | * macroexp.c: Don't include bcache.h. | |
2978 | * gdbtypes.c (check_types_worklist): Update. | |
2979 | (types_deeply_equal): Remove TRY/CATCH. Update. | |
2980 | * elfread.c (elf_symtab_read): Update. | |
2981 | * dwarf2read.c: Don't include bcache.h. | |
2982 | * buildsym.c (buildsym_compunit::get_macro_table): Update. | |
2983 | * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc) | |
2984 | (print_bcache_statistics, bcache_memory_used): Don't declare. | |
2985 | (struct bcache): Move from bcache.c. Add constructor, destructor, | |
2986 | methods. Rename all data members. | |
2987 | * bcache.c (struct bcache): Move to bcache.h. | |
2988 | (bcache::expand_hash_table): Rename from expand_hash_table. | |
2989 | (bcache): Remove. | |
2990 | (bcache::insert): Rename from bcache_full. | |
2991 | (bcache::compare): Rename from bcache_compare. | |
2992 | (bcache_xmalloc): Remove. | |
2993 | (bcache::~bcache): Rename from bcache_xfree. | |
2994 | (bcache::print_statistics): Rename from print_bcache_statistics. | |
2995 | (bcache::memory_used): Rename from bcache_memory_used. | |
2996 | ||
fe726667 PA |
2997 | 2019-03-07 Pedro Alves <palves@redhat.com> |
2998 | ||
2999 | * infrun.c (normal_stop): Also check for | |
3000 | TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread(). | |
3001 | ||
7584bb30 AB |
3002 | 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com> |
3003 | ||
3004 | * f-lang.c (value_from_host_double): Moved to... | |
3005 | * value.c (value_from_host_double): ...here. | |
3006 | * value.h (value_from_host_double): Declare. | |
3007 | * guile/scm-math.c (vlscm_convert_typed_number): Use | |
3008 | value_from_host_double. | |
3009 | (vlscm_convert_number): Likewise. | |
3010 | * guile/scm-value.c (gdbscm_value_to_real): Likewise. | |
3011 | * python/py-value.c (convert_value_from_python): Likewise. | |
3012 | ||
a7b1986e TT |
3013 | 2019-03-06 Tom Tromey <tom@tromey.com> |
3014 | ||
3015 | * gcore.c (write_gcore_file): Use SCOPE_EXIT. | |
3016 | ||
0ccf4211 TT |
3017 | 2019-03-06 Tom Tromey <tom@tromey.com> |
3018 | ||
3019 | * utils.h (free_current_contents): Don't declare. | |
3020 | * utils.c (free_current_contents): Remove. | |
3021 | ||
fe7b42e5 TT |
3022 | 2019-03-06 Tom Tromey <tom@tromey.com> |
3023 | ||
3024 | * top.c (quit_force): Update. | |
3025 | * main.c (captured_command_loop): Update. | |
3026 | * common/new-op.c (operator new): Update. | |
3027 | * common/common-exceptions.c (struct catcher) | |
3028 | <save_cleanup_chain>: Remove member. | |
3029 | (exceptions_state_mc_init): Update. | |
3030 | (exception_try_scope_entry): Return nullptr. | |
3031 | (exception_try_scope_exit, exception_rethrow) | |
3032 | (throw_exception_sjlj, throw_exception_cxx): Update. | |
3033 | * common/cleanups.h (make_cleanup, make_cleanup_dtor) | |
3034 | (all_cleanups, do_cleanups, discard_cleanups) | |
3035 | (discard_final_cleanups, save_cleanups, save_final_cleanups) | |
3036 | (restore_cleanups, restore_final_cleanups): Don't declare. | |
3037 | (do_final_cleanups): Remove parameter. | |
3038 | * common/cleanups.c (cleanup_chain, make_cleanup) | |
3039 | (make_cleanup_dtor, all_cleanups, do_cleanups) | |
3040 | (discard_my_cleanups, discard_cleanups) | |
3041 | (discard_final_cleanups, save_my_cleanups, save_cleanups) | |
3042 | (save_final_cleanups, restore_my_cleanups, restore_cleanups) | |
3043 | (null_cleanup): Remove. | |
3044 | (do_final_cleanups): Remove parameter. | |
3045 | ||
c6321f19 TT |
3046 | 2019-03-06 Tom Tromey <tom@tromey.com> |
3047 | ||
3048 | * remote.c (remote_target::remote_parse_stop_reply): Use | |
3049 | unique_xmalloc_ptr. | |
3050 | ||
61b30099 TT |
3051 | 2019-03-06 Tom Tromey <tom@tromey.com> |
3052 | ||
3053 | * stabsread.c (struct stabs_field_info): Rename from field_info. | |
3054 | <list, fnlist>: Add initializers. | |
3055 | <obstack>: New member. | |
3056 | (read_member_functions, read_struct_fields, read_baseclasses): | |
3057 | Allocate on obstack. Don't use cleanups. | |
3058 | (read_one_struct_field, read_member_functions, read_struct_fields) | |
3059 | (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type) | |
3060 | (attach_fields_to_type, read_cpp_abbrev, read_member_functions) | |
3061 | (read_struct_type): Update. | |
3062 | ||
6cceac94 TT |
3063 | 2019-03-06 Tom Tromey <tom@tromey.com> |
3064 | ||
3065 | * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT. | |
3066 | * common/filestuff.h (make_cleanup_close): Don't declare. | |
3067 | * common/filestuff.c (do_close_cleanup, make_cleanup_close): | |
3068 | Remove. | |
3069 | ||
72412762 TT |
3070 | 2019-03-06 Tom Tromey <tom@tromey.com> |
3071 | ||
3072 | * solib-aix.c: Use make_scope_exit. | |
3073 | ||
2b6ff1c0 TT |
3074 | 2019-03-06 Tom Tromey <tom@tromey.com> |
3075 | ||
3076 | * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct): | |
3077 | Use make_scope_exit. | |
3078 | ||
d01c5877 TT |
3079 | 2019-03-06 Tom Tromey <tom@tromey.com> |
3080 | ||
3081 | * solib-svr4.c (disable_probes_interface): Remove parameter. | |
3082 | (svr4_handle_solib_event): Use make_scope_exit. | |
3083 | ||
32603266 TT |
3084 | 2019-03-06 Tom Tromey <tom@tromey.com> |
3085 | ||
3086 | * remote.c (struct stop_reply_deleter): Remove. | |
3087 | (stop_reply_up): Update. | |
3088 | (struct stop_reply): Derive from notif_event. Don't typedef. | |
3089 | <regcache>: Now a std::vector. | |
3090 | (stop_reply_xfree): Remove. | |
3091 | (stop_reply::~stop_reply): Rename from stop_reply_dtr. | |
3092 | (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new. | |
3093 | (remote_target::discard_pending_stop_replies): Use delete. | |
3094 | (remote_target::remote_parse_stop_reply): Update. | |
3095 | (remote_target::process_stop_reply): Update. | |
3096 | * remote-notif.h (struct notif_event): Add virtual destructor. | |
3097 | Remove "dtr" member. | |
3098 | (struct notif_client) <alloc_event>: Return a unique_ptr. | |
3099 | (notif_event_xfree): Don't declare. | |
3100 | (notif_event_up): New typedef. | |
3101 | * remote-notif.c (remote_notif_ack, remote_notif_parse): Update. | |
3102 | (notif_event_xfree, do_notif_event_xfree): Remove. | |
3103 | (remote_notif_state_xfree): Update. | |
3104 | ||
9799571e TT |
3105 | 2019-03-06 Tom Tromey <tom@tromey.com> |
3106 | ||
3107 | * infrun.c (displaced_step_clear_cleanup): Now a | |
3108 | forward_scope_exit type. | |
3109 | (displaced_step_prepare_throw): Update. | |
3110 | (displaced_step_fixup): Update. | |
3111 | ||
09e3c4ca TT |
3112 | 2019-03-06 Tom Tromey <tom@tromey.com> |
3113 | ||
3114 | * inferior.h (class inferior): Update comment. | |
3115 | * gdbthread.h (class thread_info): Update comment. | |
3116 | ||
e2a03548 TT |
3117 | 2019-03-06 Joel Brobecker <brobecker@adacore.com> |
3118 | Tom Tromey <tom@tromey.com> | |
3119 | ||
3120 | * stabsread.h (struct stab_section_list): Remove. | |
3121 | (coffstab_build_psymtabs): Update. | |
3122 | * dbxread.c (symbuf_sections): Now a std::vector. | |
3123 | (sect_idx): New global. | |
3124 | (fill_symbuf): Update. | |
3125 | (coffstab_build_psymtabs): Change type of stabsects parameter. | |
3126 | Update. | |
3127 | * coffread.c (struct coff_symfile_info) <stabsects>: Now a | |
3128 | std::vector. | |
3129 | (linetab, linetab_offset, linetab_size, stringtab): Move earlier. | |
3130 | (coff_locate_sections): Update. | |
3131 | (coff_symfile_read): Remove cleanups. Update. | |
3132 | (init_stringtab): Add storage parameter. | |
3133 | (free_stringtab, free_stringtab_cleanup): Remove. | |
3134 | (init_lineno): Add storage parameter. | |
3135 | (free_linetab, free_linetab_cleanup): Remove. | |
3136 | ||
b7e60d85 PA |
3137 | 2019-03-06 Pedro Alves <palves@redhat.com> |
3138 | ||
3139 | * linux-fork.c (fork_info::clobber_regs): Delete. | |
3140 | (fork_load_infrun_state): Remove reference to 'clobber_regs'. | |
3141 | (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update | |
3142 | comment. Adjust. | |
3143 | (scoped_switch_fork_info::scoped_switch_fork_info) | |
3144 | (checkpoint_command, linux_fork_context): Adjust | |
3145 | fork_save_infrun_state calls. | |
3146 | ||
e52c971f PA |
3147 | 2019-03-06 Pedro Alves <palves@redhat.com> |
3148 | ||
3149 | * linux-fork.c (inf_has_multiple_thread_cb): Delete. | |
3150 | (inf_has_multiple_threads): Return 'bool' and rewrite using | |
3151 | inferior_info::threads(). | |
3152 | ||
06974e6c PA |
3153 | 2019-03-06 Pedro Alves <palves@redhat.com> |
3154 | ||
3155 | * linux-fork.c: Include <list>. | |
3156 | (fork_list): Now a std::list instance. | |
3157 | (fork_info): Add ctor, dtor, and in-class initialize all fields. | |
3158 | (forks_exist_p, find_last_fork): Adjust. | |
3159 | (new_fork): Delete. | |
3160 | (one_fork_p): New. | |
3161 | (add_fork): Adjust. | |
3162 | (free_fork): Delete, folded into fork_info::~fork_info(). | |
3163 | (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid): | |
3164 | Adjust. | |
3165 | (init_fork_list): Delete. | |
3166 | (linux_fork_killall, linux_fork_mourn_inferior) | |
3167 | (linux_fork_detach, info_checkpoints_command): Adjust. | |
3168 | (_initialize_linux_fork): No longer call init_fork_list. | |
3169 | ||
72f31aea PA |
3170 | 2019-03-06 Pedro Alves <palves@redhat.com> |
3171 | ||
3172 | * linux-fork.c (new_fork): New, split out of ... | |
3173 | (add_fork): ... this. Return void. Move "first fork" special | |
3174 | case from here, to ... | |
3175 | (checkpoint_command): ... here. | |
3176 | * linux-linux.h (add_fork): Return void. | |
3177 | ||
efbecbc1 AB |
3178 | 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com> |
3179 | ||
3180 | * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names. | |
3181 | ||
0841c79a AB |
3182 | 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com> |
3183 | Chris January <chris.january@arm.com> | |
3184 | David Lecomber <david.lecomber@arm.com> | |
3185 | ||
3186 | * f-exp.y: New token, UNOP_INTRINSIC. | |
3187 | (exp): New pattern using UNOP_INTRINSIC token. | |
3188 | (f77_keywords): Add 'abs' keyword. | |
3189 | * f-lang.c: Add 'target-float.h' and 'math.h' includes. | |
3190 | (value_from_host_double): New function. | |
3191 | (evaluate_subexp_f): Support UNOP_ABS. | |
3192 | ||
4a270568 AB |
3193 | 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com> |
3194 | ||
3195 | * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character | |
3196 | types. | |
3197 | ||
067630bd AB |
3198 | 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com> |
3199 | ||
3200 | * f-exp.y (convert_to_kind_type): Handle integer (kind=8). | |
3201 | * f-lang.c (build_fortran_types): Setup builtin_integer_s8. | |
3202 | * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field. | |
3203 | ||
3be47f7a AB |
3204 | 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com> |
3205 | ||
3206 | * f-exp.y (convert_to_kind_type): Handle more type kinds. | |
3207 | ||
4d00f5d8 AB |
3208 | 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com> |
3209 | Chris January <chris.january@arm.com> | |
3210 | ||
3211 | * expprint.c (dump_subexp_body_standard): Support UNOP_KIND. | |
3212 | * f-exp.y: Define 'KIND' token. | |
3213 | (exp): New pattern for KIND expressions. | |
3214 | (ptype): Handle types with a kind extension. | |
3215 | (direct_abs_decl): Extend to spot kind extensions. | |
3216 | (f77_keywords): Add 'kind' to the list. | |
3217 | (push_kind_type): New function. | |
3218 | (convert_to_kind_type): New function. | |
3219 | * f-lang.c (evaluate_subexp_f): Support UNOP_KIND. | |
3220 | * parse.c (operator_length_standard): Likewise. | |
3221 | * parser-defs.h (enum type_pieces): Add tp_kind. | |
3222 | * std-operator.def: Add UNOP_KIND. | |
3223 | ||
e454224f AB |
3224 | 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com> |
3225 | ||
3226 | * f-exp.y (f_parse): Set yydebug. | |
3227 | ||
9dad4a58 AB |
3228 | 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com> |
3229 | ||
3230 | * f-lang.c (evaluate_subexp_f): New function. | |
3231 | (exp_descriptor_f): New global. | |
3232 | (f_language_defn): Use exp_descriptor_f instead of | |
3233 | exp_descriptor_standard. | |
3234 | ||
c8f91604 AB |
3235 | 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com> |
3236 | ||
3237 | * f-exp.y (struct token): Add comments. | |
3238 | (dot_ops): Remove uppercase versions and the end marker. | |
3239 | (f77_keywords): Likewise. | |
3240 | (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all | |
3241 | entries in the dot_ops array are case insensitive, and use | |
3242 | strncasecmp to compare strings. Also some whitespace cleanup in | |
3243 | this area. Similar for the f77_keywords array, except entries in | |
3244 | this list might be case sensitive. | |
3245 | ||
dd9f2c76 AB |
3246 | 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com> |
3247 | ||
3248 | * f-exp.y (struct f77_boolean_val): Add comments. | |
3249 | (boolean_values): Remove uppercase versions, and end marker. | |
3250 | (yylex): Use ARRAY_SIZE for iterating over boolean_values array, | |
3251 | and use strncasecmp to achieve case insensitivity. Additionally, | |
3252 | perform whitespace cleanup around this code. | |
3253 | ||
67a3048c TT |
3254 | 2019-03-06 Tom Tromey <tromey@adacore.com> |
3255 | ||
3256 | * remote-sim.c (gdbsim_target_open): Use result of | |
3257 | gdb_argv::release. | |
3258 | ||
aa3cfbda RB |
3259 | 2019-03-06 Richard Bunt <richard.bunt@arm.com> |
3260 | Dirk Schubert <dirk.schubert@arm.com> | |
3261 | Chris January <chris.january@arm.com> | |
3262 | ||
3263 | * eval.c (evaluate_subexp_standard): Call Fortran argument | |
3264 | wrapping logic. | |
3265 | * f-lang.c (struct value): A value which can be passed into a | |
3266 | Fortran function call. | |
3267 | (fortran_argument_convert): Wrap Fortran arguments in a pointer | |
3268 | where appropriate. | |
3269 | (struct type): Value ready for a Fortran function call. | |
3270 | (fortran_preserve_arg_pointer): Undo check_typedef, the pointer | |
3271 | is needed. | |
3272 | * f-lang.h (fortran_argument_convert): Declaration. | |
3273 | (fortran_preserve_arg_pointer): Declaration. | |
3274 | * infcall.c (value_arg_coerce): Call Fortran argument logic. | |
3275 | ||
ea38e5df TT |
3276 | 2019-03-05 Tom Tromey <tromey@adacore.com> |
3277 | ||
3278 | * python/py-prettyprint.c (print_string_repr): Remove #if. | |
3279 | * python/py-utils.c (unicode_to_encoded_string): Remove #if. | |
3280 | ||
06b5b831 TT |
3281 | 2019-03-05 Tom Tromey <tromey@adacore.com> |
3282 | ||
3283 | * target.c (the_dummy_target): Move later. Change type to | |
3284 | "dummy_target". | |
3285 | (initialize_targets): Don't initialize the_dummy_target. | |
3286 | ||
edbd9e45 TT |
3287 | 2019-03-05 Tom Tromey <tromey@adacore.com> |
3288 | ||
3289 | * gdb_bfd.c (gdb_bfd_fdopenr): Remove. | |
3290 | * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare. | |
3291 | ||
c119e040 TT |
3292 | 2019-03-05 Tom Tromey <tromey@adacore.com> |
3293 | ||
3294 | * windows-nat.c (windows_nat_target::attach) | |
3295 | (windows_nat_target::detach): Don't call gdb_flush. | |
3296 | * valprint.c (generic_val_print, val_print, val_print_string): | |
3297 | Don't call gdb_flush. | |
3298 | * utils.c (defaulted_query): Don't call gdb_flush. | |
3299 | * typeprint.c (print_type_scalar): Don't call gdb_flush. | |
3300 | * target.c (target_announce_detach): Don't call gdb_flush. | |
3301 | * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush. | |
3302 | * remote.c (extended_remote_target::attach): Don't call | |
3303 | gdb_flush. | |
3304 | * procfs.c (procfs_target::detach): Don't call gdb_flush. | |
3305 | * printcmd.c (do_examine): Don't call gdb_flush. | |
3306 | (info_display_command): Don't call gdb_flush. | |
3307 | * p-valprint.c (pascal_val_print): Don't call gdb_flush. | |
3308 | * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush. | |
3309 | * memattr.c (info_mem_command): Don't call gdb_flush. | |
3310 | * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush. | |
3311 | * m2-valprint.c (m2_val_print): Don't call gdb_flush. | |
3312 | * infrun.c (follow_exec, handle_command): Don't call gdb_flush. | |
3313 | * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush. | |
3314 | * hppa-tdep.c (unwind_command): Don't call gdb_flush. | |
3315 | * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush. | |
3316 | (gnu_nat_target::detach): Don't call gdb_flush. | |
3317 | * f-valprint.c (f_val_print): Don't call gdb_flush. | |
3318 | * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush. | |
3319 | * cli/cli-script.c (read_command_lines): Don't call gdb_flush. | |
3320 | * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call | |
3321 | gdb_flush. | |
3322 | * c-valprint.c (c_val_print): Don't call gdb_flush. | |
3323 | * ada-valprint.c (ada_print_scalar): Don't call gdb_flush. | |
3324 | ||
895dafa6 TT |
3325 | 2019-03-05 Tom Tromey <tromey@adacore.com> |
3326 | ||
3327 | * varobj.c (update_dynamic_varobj_children): Update. | |
3328 | (install_default_visualizer): Use reset, not release. | |
3329 | * value.c (set_internalvar): Update. | |
3330 | * dwarf2loc.c (value_of_dwarf_reg_entry): Update. | |
3331 | * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add | |
3332 | ATTRIBUTE_UNUSED_RESULT. | |
3333 | ||
88a774b9 TT |
3334 | 2019-03-05 Tom Tromey <tromey@adacore.com> |
3335 | ||
3336 | * remote.c (class scoped_remote_fd) <release>: Add | |
3337 | ATTRIBUTE_UNUSED_RESULT. | |
3338 | ||
4e4a8b93 TT |
3339 | 2019-03-05 Tom Tromey <tromey@adacore.com> |
3340 | ||
3341 | * macroexp.c (struct macro_buffer) <release>: Add | |
3342 | ATTRIBUTE_UNUSED_RESULT. | |
3343 | ||
083eef1f TT |
3344 | 2019-03-05 Tom Tromey <tromey@adacore.com> |
3345 | ||
3346 | * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update. | |
3347 | * common/scoped_mmap.h (class scoped_mmap) <release>: Add | |
3348 | ATTRIBUTE_UNUSED_RESULT. | |
3349 | ||
3cabd438 TT |
3350 | 2019-03-05 Tom Tromey <tromey@adacore.com> |
3351 | ||
3352 | * common/scoped_fd.h (class scoped_fd) <release>: Add | |
3353 | ATTRIBUTE_UNUSED_RESULT. | |
3354 | ||
41e3300a TT |
3355 | 2019-03-05 Tom Tromey <tromey@adacore.com> |
3356 | ||
3357 | * parser-defs.h (struct parser_state) <release>: Add | |
3358 | ATTRIBUTE_UNUSED_RESULT. | |
3359 | ||
18cb7c9f TT |
3360 | 2019-03-05 Tom Tromey <tromey@adacore.com> |
3361 | ||
3362 | * utils.h (class gdb_argv) <release>: Add | |
3363 | ATTRIBUTE_UNUSED_RESULT. | |
3364 | * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define. | |
3365 | ||
41fa577f EZ |
3366 | 2019-03-02 Eli Zaretskii <eliz@gnu.org> |
3367 | ||
a6a4b2c6 EZ |
3368 | * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from |
3369 | for-loop range, to avoid compiler warnings. | |
3370 | ||
3371 | * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to | |
3372 | avoid compiler warnings about unused variables. | |
3373 | ||
742a7df5 EZ |
3374 | * NEWS: Mention end of support for native debugging on MS-Windows |
3375 | before XP. | |
3376 | ||
41fa577f EZ |
3377 | PR gdb/24292 |
3378 | * common/netstuff.c: | |
3379 | * gdbserver/gdbreplay.c | |
3380 | * gdbserver/remote-utils.c: | |
3381 | * ser-tcp.c: | |
3382 | * unittests/parse-connection-spec-selftests.c [USE_WIN32API]: | |
3383 | Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine | |
3384 | _WIN32_WINNT to 0x0501 if defined to a smaller value, as | |
3385 | 'getaddrinfo' and 'freeaddrinfo' were not available before | |
3386 | Windows XP, and mingw.org's MinGW headers by default define | |
3387 | _WIN32_WINNT to 0x500. | |
3388 | ||
827f438f GB |
3389 | 2019-03-01 Gary Benson <gbenson@redhat.com> |
3390 | ||
3391 | * coffread.c (coff_start_symtab): Remove unnecessary xstrdup. | |
3392 | ||
92137da0 RO |
3393 | 2019-02-28 Brian Vandenberg <phantall@gmail.com> |
3394 | Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | |
3395 | ||
3396 | PR gdb/8527 | |
3397 | * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in | |
3398 | set_sigint_trap, clear_sigint_trap. | |
3399 | ||
799efbe8 PW |
3400 | 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
3401 | ||
3402 | * target.c (target_detach): Clear the regcache and the | |
3403 | frame cache. | |
3404 | ||
8ed25214 PA |
3405 | 2019-02-27 Pedro Alves <palves@redhat.com> |
3406 | ||
3407 | * utils.c (set_screen_size): When we cap the height/width sizes, | |
3408 | tweak the corresponding command variable to show "unlimited": | |
3409 | ||
23031e31 SJ |
3410 | 2019-02-27 Saagar Jha <saagar@saagarjha.com> |
3411 | Pedro Alves <palves@redhat.com> | |
3412 | ||
3413 | * utils.c (set_screen_size): Reduce "infinite" rows and columns | |
3414 | before calling rl_set_screen_size. | |
3415 | ||
6c28e44a TT |
3416 | 2019-02-27 Tom Tromey <tromey@adacore.com> |
3417 | ||
3418 | * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never | |
3419 | define. | |
3420 | * python/py-value.c: Remove Python 2.4 workaround. | |
3421 | * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4 | |
3422 | workaround. | |
3423 | * python/py-type.c (convert_field, gdbpy_initialize_types): Remove | |
3424 | Python 2.4 workaround. | |
3425 | * python/python-internal.h: Remove Python 2.4 comment. | |
3426 | (Py_ssize_t): Don't define. | |
3427 | (PyVarObject_HEAD_INIT, Py_TYPE): Don't define. | |
3428 | (gdb_Py_DECREF): Remove Python 2.4 workaround. | |
3429 | (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove. | |
3430 | (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove. | |
3431 | * python/python.c (do_start_initialization): Remove Python 2.4 | |
3432 | workaround. | |
3433 | * python/py-prettyprint.c (class dummy_python_frame): Remove. | |
3434 | (print_children): Remove Python 2.4 workaround. | |
3435 | * python/py-inferior.c (buffer_procs): Remove Python 2.4 | |
3436 | workaround. | |
3437 | (CHARBUFFERPROC_NAME): Remove. | |
3438 | * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove | |
3439 | Python 2.4 workaround. | |
3440 | ||
2c3fc25d | 3441 | 2019-02-27 Kevin Buettner <kevinb@redhat.com> |
799efbe8 | 3442 | |
2c3fc25d KB |
3443 | * NEWS: Note minimum Python version. |
3444 | ||
6ca62222 KB |
3445 | 2019-02-27 Kevin Buettner <kevinb@redhat.com> |
3446 | ||
3447 | * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K | |
3448 | code from these functions. Remove corresponding ifdefs. Use | |
3449 | Py_buffer_up instead of explicit calls to PyBuffer_Release. | |
3450 | Remove gotos and target of gotos. | |
3451 | (infpy_search_memory): Likewise. | |
3452 | ||
f4bc7d2c AB |
3453 | 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com> |
3454 | ||
3455 | * gdb/hppa-tdep.c (hppa_dummy_id): Delete. | |
3456 | (hppa_gdbarch_init): Don't register deleted functions with | |
3457 | gdbarch. | |
3458 | ||
9734a586 AB |
3459 | 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com> |
3460 | ||
3461 | * gdb/h8300-tdep.c (h8300_unwind_pc): Delete. | |
3462 | (h8300_unwind_sp): Delete. | |
3463 | (h8300_dummy_id): Delete. | |
3464 | (h8300_gdbarch_init): Don't register deleted functions with | |
3465 | gdbarch. | |
3466 | ||
68b867f3 AB |
3467 | 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com> |
3468 | ||
3469 | * gdb/ft32-tdep.c (ft32_dummy_id): Delete. | |
3470 | (ft32_unwind_pc): Delete. | |
3471 | (ft32_unwind_sp): Delete. | |
3472 | (ft32_gdbarch_init): Don't register deleted functions with | |
3473 | gdbarch. | |
3474 | ||
2fbe7ad0 AB |
3475 | 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com> |
3476 | ||
3477 | * gdb/frv-tdep.c (frv_dummy_id): Delete. | |
3478 | (frv_unwind_pc): Delete. | |
3479 | (frv_unwind_sp): Delete. | |
3480 | (frv_gdbarch_init): Don't register deleted functions with | |
3481 | gdbarch. | |
3482 | ||
76055cbe AB |
3483 | 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com> |
3484 | ||
3485 | * gdb/riscv-tdep.c (riscv_dummy_id): Delete. | |
3486 | (riscv_unwind_pc): Delete. | |
3487 | (riscv_unwind_sp): Delete. | |
3488 | (riscv_gdbarch_init): Don't register deleted functions with | |
3489 | gdbarch. | |
3490 | ||
4133e5a1 AB |
3491 | 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com> |
3492 | ||
3493 | * gdb/csky-tdep.c (csky_dummy_id): Delete. | |
3494 | (csky_unwind_pc): Delete. | |
3495 | (csky_unwind_sp): Delete. | |
3496 | (csky_gdbarch_init): Don't register deleted functions with | |
3497 | gdbarch. | |
3498 | ||
8010f576 AB |
3499 | 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com> |
3500 | ||
3501 | * gdb/cris-tdep.c (cris_dummy_id): Delete. | |
3502 | (cris_unwind_pc): Delete. | |
3503 | (cris_unwind_sp): Delete. | |
3504 | (cris_gdbarch_init): Don't register deleted functions with | |
3505 | gdbarch. | |
3506 | ||
b56bf084 AB |
3507 | 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com> |
3508 | ||
3509 | * gdb/bfin-tdep.c (bfin_dummy_id): Delete. | |
3510 | (bfin_unwind_pc): Delete. | |
3511 | (bfin_gdbarch_init): Don't register deleted functions with gdbarch. | |
3512 | ||
a19a650f AB |
3513 | 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com> |
3514 | ||
3515 | * gdb/arm-tdep.c (arm_dummy_id): Delete. | |
3516 | (arm_unwind_pc): Delete. | |
3517 | (arm_unwind_sp): Delete. | |
3518 | (arm_gdbarch_init): Don't register deleted functions with gdbarch. | |
3519 | ||
f8278c3c AB |
3520 | 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com> |
3521 | ||
3522 | * gdb/arc-tdep.c (arc_dummy_id): Delete. | |
3523 | (arc_unwind_pc): Delete. | |
3524 | (arc_unwind_sp): Delete. | |
3525 | (arc_gdbarch_init): Don't register deleted functions with gdbarch. | |
3526 | ||
480e46cf AB |
3527 | 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com> |
3528 | ||
3529 | * gdb/alpha-tdep.c (alpha_dummy_id): Delete. | |
3530 | (alpha_unwind_pc): Delete. | |
3531 | (alpha_gdbarch_init): Don't register deleted functions with | |
3532 | gdbarch. | |
3533 | ||
7a995095 AB |
3534 | 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com> |
3535 | ||
3536 | * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete. | |
3537 | (aarch64_unwind_pc): Delete. | |
3538 | (aarch64_unwind_sp): Delete. | |
3539 | (aarch64_gdbarch_init): Don't register deleted functions with | |
3540 | gdbarch. | |
3541 | ||
bf9a735e AB |
3542 | 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com> |
3543 | ||
3544 | * gdbtypes.c (type_align): Don't consider static members when | |
3545 | computing structure alignment. | |
3546 | ||
5561fc30 AB |
3547 | 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com> |
3548 | ||
3549 | * arc-tdep.c (arc_type_align): Provide alignment for basic types, | |
3550 | return 0 for other types. | |
3551 | * arch-utils.c (default_type_align): Always return 0. | |
3552 | * gdbarch.h: Regenerate. | |
3553 | * gdbarch.sh (type_align): Extend comment. | |
3554 | * gdbtypes.c (type_align): Add additional comments, always call | |
3555 | gdbarch_type_align before applying the default rules. | |
3556 | * i386-tdep.c (i386_type_align): Return 0 as the default rule, | |
3557 | generic code will then apply a suitable default. | |
3558 | * nios2-tdep.c (nios2_type_align): Provide alignment for basic | |
3559 | types, return 0 for other types. | |
3560 | ||
9335e75a JB |
3561 | 2019-02-27 Joel Brobecker <brobecker@adacore.com> |
3562 | ||
3563 | * NEWS: Create a new section for the next release branch. | |
3564 | Rename the section of the current branch, now that it has | |
3565 | been cut. | |
3566 | ||
3d34d8de JB |
3567 | 2019-02-27 Joel Brobecker <brobecker@adacore.com> |
3568 | ||
3569 | GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d): | |
3570 | * version.in: Bump version to 8.3.50.DATE-git. | |
3571 | ||
143420fb SM |
3572 | 2019-02-26 Simon Marchi <simon.marchi@efficios.com> |
3573 | ||
3574 | * aix-thread.c (ptid_cmp): Remove unused variable. | |
3575 | (get_signaled_thread): Likewise. | |
3576 | (store_regs_user_thread): Likewise. | |
3577 | (store_regs_kernel_thread): Likewise. | |
3578 | (fetch_regs_kernel_thread): Remove shadowed variable. | |
3579 | ||
172fb711 AB |
3580 | 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com> |
3581 | ||
3582 | * features/riscv/32bit-cpu.xml: Add register numbers. | |
3583 | * features/riscv/32bit-fpu.c: Regenerate. | |
3584 | * features/riscv/32bit-fpu.xml: Add register numbers. | |
3585 | * features/riscv/64bit-cpu.xml: Add register numbers. | |
3586 | * features/riscv/64bit-fpu.c: Regenerate. | |
3587 | * features/riscv/64bit-fpu.xml: Add register numbers. | |
3588 | ||
26c89782 KB |
3589 | 2019-02-26 Kevin Buettner <kevinb@redhat.com> |
3590 | ||
af54ade9 | 3591 | * NEWS: Mention two argument form of gdb.Value constructor. |
fe07eca5 KB |
3592 | * python/py-value.c (convert_buffer_and_type_to_value): New |
3593 | function. | |
3594 | (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords. | |
3595 | Add support for handling an optional second argument. Call | |
3596 | convert_buffer_and_type_to_value as appropriate. | |
26c89782 KB |
3597 | * python/python-internal.h (Py_buffer_deleter): New struct. |
3598 | (Py_buffer_up): New typedef. | |
3599 | ||
0f58c9e8 JB |
3600 | 2019-02-25 John Baldwin <jhb@FreeBSD.org> |
3601 | ||
3602 | * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr | |
3603 | instead of releasing ownership. | |
3604 | ||
0a0f4c01 JR |
3605 | 2019-02-25 Jordan Rupprecht <rupprecht@google.com> |
3606 | ||
3607 | * dwarf2read.c (open_and_init_dwp_file): Call | |
3608 | elf_numsections instead of bfd_count_sections to initialize | |
3609 | dwp_file->num_sections. | |
3610 | ||
cd5a152c TT |
3611 | 2019-02-25 Tom Tromey <tromey@adacore.com> |
3612 | ||
3613 | * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd. | |
3614 | ||
8a6a8513 SDJ |
3615 | 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com> |
3616 | ||
3617 | * gcore.in: Add '--readnever' option when invoking GDB. | |
3618 | ||
04dcda9c SM |
3619 | 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca> |
3620 | ||
3621 | * MAINTAINERS: Update my email address. | |
3622 | ||
07bc701d SM |
3623 | 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca> |
3624 | ||
3625 | * build-id.c (build_id_to_debug_bfd_1): New function. | |
3626 | (build_id_to_debug_bfd): Look for separate debug file in | |
3627 | sysroot. | |
3628 | ||
c6f4a5d0 AB |
3629 | 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com> |
3630 | ||
3631 | * gdbarch.sh: Update the copyright year range that is placed into | |
3632 | generated files. | |
3633 | ||
9600246d KS |
3634 | 2019-02-22 Keith Seitz <keiths@redhat.com> |
3635 | ||
3636 | PR symtab/23853 | |
3637 | * linespec.c (create_sals_line_offset): Search for the default | |
3638 | symtab's filename instead of its fullname. | |
3639 | ||
7557a514 AH |
3640 | 2019-02-21 Alan Hayward <alan.hayward@arm.com> |
3641 | ||
3642 | * NEWS: Update style defaults. | |
3643 | ||
ee2bcb0c AH |
3644 | 2019-02-21 Alan Hayward <alan.hayward@arm.com> |
3645 | ||
3646 | * main.c (captured_main_1): Disable styling in batch mode. | |
3647 | ||
0c95f9ed TT |
3648 | 2019-02-20 Tom Tromey <tom@tromey.com> |
3649 | ||
3650 | * symtab.c (symtab_symbol_info): Fix typos. | |
3651 | ||
c763b894 TT |
3652 | 2019-02-20 Tom Tromey <tromey@adacore.com> |
3653 | ||
3654 | * findcmd.c (_initialize_mem_search): Use upper case for | |
3655 | metasyntactic variables. | |
3656 | ||
0ef8a082 AH |
3657 | 2019-02-20 Alan Hayward <alan.hayward@arm.com> |
3658 | ||
3659 | * aarch64-tdep.c (aarch64_add_reggroups): New function. | |
3660 | (aarch64_gdbarch_init): Call aarch64_add_reggroups. | |
3661 | ||
6caa91b6 SM |
3662 | 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca> |
3663 | ||
3664 | * top.h (source_file_name): Change to std::string. | |
3665 | * top.c (source_file_name): Likewise. | |
3666 | (command_line_input): Adjust. | |
3667 | * cli/cli-script.c (script_from_file): Adjust. | |
3668 | ||
98814c6c TT |
3669 | 2019-02-19 Tom Tromey <tromey@adacore.com> |
3670 | ||
3671 | * ravenscar-thread.c | |
3672 | (ravenscar_thread_target::update_thread_list): Don't call | |
3673 | ada_build_task_list. | |
3674 | * ada-lang.h (ada_build_task_list): Don't declare. | |
3675 | * ada-tasks.c (struct ada_tasks_inferior_data) | |
3676 | <task_list_valid_p>: Now bool. | |
3677 | (read_known_tasks, ada_task_list_changed) | |
3678 | (ada_tasks_invalidate_inferior_data): Update. | |
3679 | (read_known_tasks_array): Return bool. | |
3680 | (read_known_tasks_list): Likewise. | |
3681 | (read_known_tasks): Return void. | |
3682 | (ada_build_task_list): Now static. | |
3683 | ||
70cd633e AB |
3684 | 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com> |
3685 | ||
3686 | * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR | |
3687 | and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch. | |
3688 | ||
040b3e95 PW |
3689 | 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
3690 | ||
3691 | * ada-task.c (_initialize_tasks): Use 'with_cleanup' register | |
3692 | variant for ada_tasks_pspace_data_handle and | |
3693 | ada_tasks_inferior_data_handle. | |
3694 | (ada_tasks_pspace_data_cleanup): New function. | |
3695 | (ada_tasks_inferior_data_cleanup): New function. | |
3696 | ||
9409233b TT |
3697 | 2019-02-17 Tom Tromey <tom@tromey.com> |
3698 | ||
3699 | * macrotab.h (macro_source_fullname): Return a std::string. | |
3700 | * macrotab.c (macro_include, check_for_redefinition) | |
3701 | (macro_undef, macro_lookup_definition, foreach_macro) | |
3702 | (foreach_macro_in_scope): Update. | |
3703 | (macro_source_fullname): Return a std::string. | |
3704 | * macrocmd.c (show_pp_source_pos): Update. | |
3705 | ||
6506371f TT |
3706 | 2019-02-17 Tom Tromey <tom@tromey.com> |
3707 | ||
3708 | * macrocmd.c (show_pp_source_pos): Style the file names. | |
3709 | ||
0c820d67 TT |
3710 | 2019-02-17 Tom Tromey <tom@tromey.com> |
3711 | ||
3712 | PR tui/24197: | |
3713 | * tui/tui-source.c (tui_set_source_content_nil): Rewrite. | |
3714 | ||
a0087920 TT |
3715 | 2019-02-17 Tom Tromey <tom@tromey.com> |
3716 | ||
3717 | * ada-lang.c (user_select_syms): Use filtered printing. | |
3718 | * utils.c (wrap_style): New global. | |
3719 | (desired_style): Remove. | |
3720 | (emit_style_escape): Add stream parameter. | |
3721 | (set_output_style, reset_terminal_style, prompt_for_continue): | |
3722 | Update. | |
3723 | (flush_wrap_buffer): Only flush gdb_stdout. | |
3724 | (wrap_here): Set wrap_style. | |
3725 | (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't | |
3726 | treat escape sequences as a character. Change when wrap buffer is | |
3727 | flushed. | |
3728 | (fputs_styled): Do not set the output style when the default is | |
3729 | requested. | |
3730 | * ui-style.h (struct ui_file_style) <is_default>: New method. | |
3731 | * source.c (print_source_lines_base): Emit escape sequences in one | |
3732 | piece. | |
3733 | ||
75ba10dc JB |
3734 | 2019-02-17 Joel Brobecker <brobecker@adacore.com> |
3735 | ||
3736 | * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as | |
3737 | integers and enumeration types. | |
3738 | ||
a2cd4f14 JB |
3739 | 2019-02-17 Joel Brobecker <brobecker@adacore.com> |
3740 | ||
3741 | * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol | |
3742 | instead of lookup_symbol_in_language | |
3743 | (do_exact_match): New function. | |
3744 | (ada_get_symbol_name_matcher): Return do_exact_match when | |
3745 | doing a verbatim match. | |
3746 | ||
485b851b TT |
3747 | 2019-02-15 Tom Tromey <tromey@adacore.com> |
3748 | ||
3749 | * ravenscar-thread.c (ravenscar_thread_target::resume) | |
3750 | (ravenscar_thread_target::wait): Special case wildcard requests. | |
3751 | ||
0b790b1e TT |
3752 | 2019-02-15 Tom Tromey <tromey@adacore.com> |
3753 | ||
3754 | * ravenscar-thread.c (base_ptid): Remove. | |
3755 | (struct ravenscar_thread_target) <close>: New method. | |
3756 | <m_base_ptid>: New member. | |
3757 | <update_inferior_ptid, active_task, task_is_currently_active, | |
3758 | runtime_initialized>: Declare methods. | |
3759 | <ravenscar_thread_target>: Add constructor. | |
3760 | (ravenscar_thread_target::task_is_currently_active) | |
3761 | (ravenscar_thread_target::update_inferior_ptid) | |
3762 | (ravenscar_runtime_initialized): Rename. Now methods. | |
3763 | (ravenscar_thread_target::resume, ravenscar_thread_target::wait) | |
3764 | (ravenscar_thread_target::update_thread_list): Update. | |
3765 | (ravenscar_thread_target::active_task): Now method. | |
3766 | (ravenscar_thread_target::store_registers) | |
3767 | (ravenscar_thread_target::prepare_to_store) | |
3768 | (ravenscar_thread_target::prepare_to_store) | |
3769 | (ravenscar_thread_target::mourn_inferior): Update. | |
3770 | (ravenscar_inferior_created): Use "new" to create target. | |
3771 | (ravenscar_thread_target::get_ada_task_ptid): Update. | |
3772 | (_initialize_ravenscar): Don't initialize base_ptid. | |
3773 | (ravenscar_ops): Remove global. | |
3774 | ||
dea57a62 TT |
3775 | 2019-02-15 Tom Tromey <tromey@adacore.com> |
3776 | ||
3777 | * target.h (push_target): Declare new overload. | |
3778 | * target.c (push_target): New overload, taking an rvalue reference. | |
3779 | * remote.c (remote_target::open_1): Use push_target overload. | |
3780 | * corelow.c (core_target_open): Use push_target overload. | |
3781 | ||
989f3c58 TT |
3782 | 2019-02-15 Tom Tromey <tromey@adacore.com> |
3783 | ||
3784 | * ravenscar-thread.c (is_ravenscar_task) | |
3785 | (ravenscar_task_is_currently_active): Return bool. | |
3786 | (ravenscar_update_inferior_ptid, get_running_thread_msymbol) | |
3787 | (_initialize_ravenscar): Remove "(void)". | |
3788 | (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise. | |
3789 | Return bool. | |
3790 | ||
6cbcc006 TT |
3791 | 2019-02-15 Tom Tromey <tromey@adacore.com> |
3792 | ||
3793 | * ravenscar-thread.c (ravenscar_runtime_initializer) | |
3794 | (has_ravenscar_runtime, get_running_thread_id) | |
3795 | (ravenscar_thread_target::resume): Fix indentation. | |
3796 | ||
7657f14d TT |
3797 | 2019-02-15 Tom Tromey <tromey@adacore.com> |
3798 | ||
3799 | * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive | |
3800 | from ravenscar_arch_ops. | |
3801 | (sparc_ravenscar_ops::fetch_registers) | |
3802 | (sparc_ravenscar_ops::store_registers): Now methods. | |
3803 | (sparc_ravenscar_prepare_to_store): Remove. | |
3804 | (sparc_ravenscar_ops): Redefine. | |
3805 | * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual | |
3806 | methods and destructor. Remove members. | |
3807 | * ravenscar-thread.c (ravenscar_thread_target::fetch_registers) | |
3808 | (ravenscar_thread_target::store_registers) | |
3809 | (ravenscar_thread_target::prepare_to_store): Update. | |
3810 | * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store): | |
3811 | Remove. | |
3812 | (struct ppc_ravenscar_powerpc_ops): Derive from | |
3813 | ravenscar_arch_ops. | |
3814 | (ppc_ravenscar_powerpc_ops::fetch_registers) | |
3815 | (ppc_ravenscar_powerpc_ops::store_registers): Now methods. | |
3816 | (ppc_ravenscar_powerpc_ops): Redefine. | |
3817 | (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops. | |
3818 | (ppc_ravenscar_e500_ops::fetch_registers) | |
3819 | (ppc_ravenscar_e500_ops::store_registers): Now methods. | |
3820 | (ppc_ravenscar_e500_ops): Redefine. | |
3821 | * aarch64-ravenscar-thread.c | |
3822 | (aarch64_ravenscar_generic_prepare_to_store): Remove. | |
3823 | (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops. | |
3824 | (aarch64_ravenscar_fetch_registers) | |
3825 | (aarch64_ravenscar_store_registers): Now methods. | |
3826 | (aarch64_ravenscar_ops): Redefine. | |
3827 | ||
5b6ea500 TT |
3828 | 2019-02-15 Tom Tromey <tromey@adacore.com> |
3829 | ||
3830 | * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint) | |
3831 | (ravenscar_thread_target::stopped_by_hw_breakpoint) | |
3832 | (ravenscar_thread_target::stopped_by_watchpoint) | |
3833 | (ravenscar_thread_target::stopped_data_address) | |
3834 | (ravenscar_thread_target::core_of_thread): Use scoped_restore. | |
3835 | ||
e397fd39 TT |
3836 | 2019-02-15 Tom Tromey <tromey@adacore.com> |
3837 | ||
3838 | * ravenscar-thread.c: Fix some typos. | |
3839 | ||
cc12f4a8 TT |
3840 | 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
3841 | Tom Tromey <tromey@adacore.com> | |
3842 | ||
3843 | * ada-lang.c (ada_exception_sal): Change addr_string to a | |
3844 | std::string. | |
3845 | (create_ada_exception_catchpoint): Update. | |
3846 | ||
5f486660 TT |
3847 | 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
3848 | Tom Tromey <tromey@adacore.com> | |
3849 | ||
3850 | * breakpoint.c (~bp_location): Rename from bp_location_dtor. | |
3851 | (bp_location_ops): Remove. | |
3852 | (base_breakpoint_allocate_location): Update. | |
3853 | (free_bp_location): Update. | |
3854 | * ada-lang.c (class ada_catchpoint_location) | |
3855 | <ada_catchpoint_location>: Remove ops parameter. | |
3856 | (ada_catchpoint_location_dtor): Remove. | |
3857 | (ada_catchpoint_location_ops): Remove. | |
3858 | (allocate_location_exception): Update. | |
3859 | * breakpoint.h (struct bp_location_ops): Remove. | |
3860 | (class bp_location) <bp_location>: Remove bp_location_ops | |
3861 | parameter. | |
3862 | <~bp_location>: Add destructor. | |
3863 | <ops>: Remove. | |
3864 | ||
b671c7fb TS |
3865 | 2019-02-14 Thomas Schwinge <thomas@codesourcery.com> |
3866 | Pedro Alves <palves@redhat.com> | |
3867 | ||
3868 | * remote.c (remote_target::remote_parse_stop_reply): Avoid using | |
3869 | 'PATH_MAX'. | |
3870 | ||
8071c5ce DM |
3871 | 2019-02-14 David Michael <fedora.dm0@gmail.com> |
3872 | Samuel Thibault <samuel.thibault@gnu.org> | |
3873 | Thomas Schwinge <thomas@codesourcery.com> | |
3874 | ||
3875 | * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply) | |
3876 | (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes. | |
3877 | ||
b1041ae0 TS |
3878 | 2019-02-14 Thomas Schwinge <thomas@codesourcery.com> |
3879 | ||
924514e1 TS |
3880 | * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg) |
3881 | (check_empty): Use "const char *". | |
3882 | ||
c29ee8d4 TS |
3883 | * gnu-nat.c (gnu_nat_target::detach): Instead of |
3884 | 'detach_inferior (pid)' call | |
3885 | 'detach_inferior (find_inferior_pid (pid))'. | |
3886 | ||
6c6ef69f TS |
3887 | * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add |
3888 | 'nat/fork-inferior.o'. | |
3889 | * gnu-nat.c: #include "nat/fork-inferior.h". | |
3890 | ||
2d0a338c TS |
3891 | * gnu-nat.c (gnu_nat_target::detach): Instead of |
3892 | 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'. | |
3893 | * gnu-nat.h: #include "inf-child.h". | |
3894 | * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to | |
3895 | 'i386_gnu_nat_target::fetch_registers'. | |
3896 | (gnu_store_registers): Rename/move to | |
3897 | 'i386_gnu_nat_target::store_registers'. | |
3898 | ||
cabb5f06 TS |
3899 | * config/i386/nm-i386gnu.h: Don't "#include" any files. |
3900 | * gnu-nat.h (mach_thread_info): New function. | |
3901 | * gnu-nat.c (thread_takeover_sc_cmd): Use it. | |
3902 | ||
b1041ae0 TS |
3903 | * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove. |
3904 | ||
2988d01e KF |
3905 | 2019-02-14 Frederic Konrad <konrad@adacore.com> |
3906 | ||
3907 | * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE. | |
3908 | ||
c559d709 JB |
3909 | 2019-02-14 Joel Brobecker <brobecker@adacore.com> |
3910 | ||
3911 | * windows-nat.c (windows_add_thread): Add new parameter | |
3912 | "main_thread_p" with default value set to false. Update | |
3913 | function documentation as well as all callers. | |
3914 | (windows_delete_thread): Likewise. | |
3915 | (fake_create_process): Update call to windows_add_thread. | |
3916 | (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT> | |
3917 | <CREATE_PROCESS_DEBUG_EVENT>: Likewise. | |
3918 | <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update | |
3919 | call to windows_delete_thread. | |
3920 | ||
007024cc SM |
3921 | 2019-02-13 Simon Marchi <simon.marchi@ericsson.com> |
3922 | ||
3923 | * MAINTAINERS: Add Andrew Burgess as global maintainer. | |
3924 | ||
f62318e9 JB |
3925 | 2019-02-12 John Baldwin <jhb@FreeBSD.org> |
3926 | ||
3927 | * symfile.c (find_separate_debug_file): Use canonical path of | |
3928 | sysroot with child_path instead of gdb_sysroot if it is valid. | |
3929 | ||
cd4b7848 JB |
3930 | 2019-02-12 John Baldwin <jhb@FreeBSD.org> |
3931 | ||
3932 | * symfile.c (find_separate_debug_file): Use child_path to | |
3933 | determine if an object file is under a sysroot. | |
3934 | ||
efac4bfe JB |
3935 | 2019-02-12 John Baldwin <jhb@FreeBSD.org> |
3936 | ||
3937 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add | |
3938 | unittests/child-path-selftests.c. | |
3939 | * common/pathstuff.c (child_path): New function. | |
3940 | * common/pathstuff.h (child_path): New prototype. | |
3941 | * unittests/child-path-selftests.c: New file. | |
3942 | ||
402d2bfe JB |
3943 | 2019-02-12 John Baldwin <jhb@FreeBSD.org> |
3944 | ||
3945 | * symfile.c (find_separate_debug_file): Look for separate debug | |
3946 | files in debug directories under the sysroot. | |
3947 | ||
1ed9f74e PW |
3948 | 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
3949 | ||
3950 | * symtab.h (struct minimal_symbol data_p): New const method. | |
3951 | (struct minimal_symbol text_p): Likewise. | |
3952 | * symtab.c (output_source_filename): Use file name style | |
3953 | to print file name. | |
3954 | (print_symbol_info): Likewise. | |
3955 | (print_msymbol_info): Use address style to print addresses. | |
3956 | Use function name style to print executable text symbols. | |
3957 | (expand_symtab_containing_pc): Use data_p. | |
3958 | (find_pc_sect_compunit_symtab): Likewise. | |
3959 | ||
2636d81d PW |
3960 | 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
3961 | ||
3962 | * breakpoint.c (describe_other_breakpoints): Use address style | |
3963 | to print addresses. | |
3964 | (say_where): Likewise. | |
3965 | ||
ac8c53cc PW |
3966 | 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
3967 | ||
3968 | * ada-typeprint.c (print_func_type): Print function name | |
3969 | style to print function name. | |
3970 | * c-typeprint.c (c_print_type_1): Likewise. | |
3971 | ||
ea638c43 AH |
3972 | 2019-02-11 Alan Hayward <alan.hayward@arm.com> |
3973 | ||
3974 | * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check | |
3975 | for execve. | |
3976 | ||
ab759ca8 PW |
3977 | 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
3978 | ||
3979 | * c-exp.y (direct_abs_decl): Use emplace_back to record the | |
3980 | type_stack. | |
3981 | ||
aff29d1c JB |
3982 | 2019-02-10 Joel Brobecker <brobecker@adacore.com> |
3983 | ||
3984 | * ada-varobj.c (ada_value_is_changeable_p): Add handling of | |
3985 | TYPE_CODE_REF types. | |
3986 | ||
617126bc JW |
3987 | 2019-02-08 Jim Wilson <jimw@sifive.com> |
3988 | ||
3989 | * riscv-linux-tdep.c (riscv_linux_fregmap): New. | |
3990 | (riscv_linux_fregset): New. | |
3991 | (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section. | |
3992 | ||
46e3ed7f TT |
3993 | 2019-02-07 Tom Tromey <tom@tromey.com> |
3994 | ||
3995 | * thread.c (thread_cancel_execution_command): Update. | |
3996 | * thread-fsm.h (struct thread_fsm): Add constructor, destructor, | |
3997 | methods. | |
3998 | (struct thread_fsm_ops): Remove. | |
3999 | (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up) | |
4000 | (thread_fsm_should_stop, thread_fsm_return_value) | |
4001 | (thread_fsm_set_finished, thread_fsm_finished_p) | |
4002 | (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop): | |
4003 | Don't declare. | |
4004 | * mi/mi-interp.c (mi_on_normal_stop_1): Update. | |
4005 | * infrun.c (clear_proceed_status_thread) | |
4006 | (clean_up_just_stopped_threads_fsms, fetch_inferior_event) | |
4007 | (print_stop_event): Update. | |
4008 | * infcmd.c (struct step_command_fsm): Inherit from thread_fsm. | |
4009 | Add constructor. | |
4010 | (step_command_fsm_ops): Remove. | |
4011 | (new_step_command_fsm): Remove. | |
4012 | (step_1): Update. | |
4013 | (step_command_fsm::should_stop): Rename from | |
4014 | step_command_fsm_should_stop. | |
4015 | (step_command_fsm::clean_up): Rename from | |
4016 | step_command_fsm_clean_up. | |
4017 | (step_command_fsm::do_async_reply_reason): Rename from | |
4018 | step_command_fsm_async_reply_reason. | |
4019 | (struct until_next_fsm): Inherit from thread_fsm. Add | |
4020 | constructor. | |
4021 | (until_next_fsm_ops): Remove. | |
4022 | (new_until_next_fsm): Remove. | |
4023 | (until_next_fsm::should_stop): Rename from | |
4024 | until_next_fsm_should_stop. | |
4025 | (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up. | |
4026 | (until_next_fsm::do_async_reply_reason): Rename from | |
4027 | until_next_fsm_async_reply_reason. | |
4028 | (struct finish_command_fsm): Inherit from thread_fsm. Add | |
4029 | constructor. Change type of breakpoint. | |
4030 | (finish_command_fsm_ops): Remove. | |
4031 | (new_finish_command_fsm): Remove. | |
4032 | (finish_command_fsm::should_stop): Rename from | |
4033 | finish_command_fsm_should_stop. | |
4034 | (finish_command_fsm::clean_up): Rename from | |
4035 | finish_command_fsm_clean_up. | |
4036 | (finish_command_fsm::return_value): Rename from | |
4037 | finish_command_fsm_return_value. | |
4038 | (finish_command_fsm::do_async_reply_reason): Rename from | |
4039 | finish_command_fsm_async_reply_reason. | |
4040 | (finish_command): Update. | |
4041 | * infcall.c (struct call_thread_fsm): Inherit from thread_fsm. | |
4042 | Add constructor. | |
4043 | (call_thread_fsm_ops): Remove. | |
4044 | (call_thread_fsm::call_thread_fsm): Rename from | |
4045 | new_call_thread_fsm. | |
4046 | (call_thread_fsm::should_stop): Rename from | |
4047 | call_thread_fsm_should_stop. | |
4048 | (call_thread_fsm::should_notify_stop): Rename from | |
4049 | call_thread_fsm_should_notify_stop. | |
4050 | (run_inferior_call, call_function_by_hand_dummy): Update. | |
4051 | * cli/cli-interp.c (should_print_stop_to_console): Update. | |
4052 | * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm. | |
4053 | Add constructor. Change type of location_breakpoint, | |
4054 | caller_breakpoint. | |
4055 | (until_break_fsm_ops): Remove. | |
4056 | (new_until_break_fsm): Remove. | |
4057 | (until_break_fsm::should_stop): Rename from | |
4058 | until_break_fsm_should_stop. | |
4059 | (until_break_fsm::clean_up): Rename from | |
4060 | until_break_fsm_clean_up. | |
4061 | (until_break_fsm::do_async_reply_reason): Rename from | |
4062 | until_break_fsm_async_reply_reason. | |
4063 | (until_break_command): Update. | |
4064 | * thread-fsm.c: Remove. | |
4065 | * Makefile.in (COMMON_SFILES): Remove thread-fsm.c. | |
4066 | ||
1a5c2598 TT |
4067 | 2019-02-07 Tom Tromey <tom@tromey.com> |
4068 | ||
4069 | * yy-remap.h: Add include guard. | |
4070 | * xtensa-tdep.h: Add include guard. | |
4071 | * xcoffread.h: Rename include guard. | |
4072 | * varobj-iter.h: Add include guard. | |
4073 | * tui/tui.h: Rename include guard. | |
4074 | * tui/tui-winsource.h: Rename include guard. | |
4075 | * tui/tui-wingeneral.h: Rename include guard. | |
4076 | * tui/tui-windata.h: Rename include guard. | |
4077 | * tui/tui-win.h: Rename include guard. | |
4078 | * tui/tui-stack.h: Rename include guard. | |
4079 | * tui/tui-source.h: Rename include guard. | |
4080 | * tui/tui-regs.h: Rename include guard. | |
4081 | * tui/tui-out.h: Rename include guard. | |
4082 | * tui/tui-layout.h: Rename include guard. | |
4083 | * tui/tui-io.h: Rename include guard. | |
4084 | * tui/tui-hooks.h: Rename include guard. | |
4085 | * tui/tui-file.h: Rename include guard. | |
4086 | * tui/tui-disasm.h: Rename include guard. | |
4087 | * tui/tui-data.h: Rename include guard. | |
4088 | * tui/tui-command.h: Rename include guard. | |
4089 | * tic6x-tdep.h: Add include guard. | |
4090 | * target/waitstatus.h: Rename include guard. | |
4091 | * target/wait.h: Rename include guard. | |
4092 | * target/target.h: Rename include guard. | |
4093 | * target/resume.h: Rename include guard. | |
4094 | * target-float.h: Rename include guard. | |
4095 | * stabsread.h: Add include guard. | |
4096 | * rs6000-tdep.h: Add include guard. | |
4097 | * riscv-fbsd-tdep.h: Add include guard. | |
4098 | * regformats/regdef.h: Rename include guard. | |
4099 | * record.h: Rename include guard. | |
4100 | * python/python.h: Rename include guard. | |
4101 | * python/python-internal.h: Rename include guard. | |
4102 | * python/py-stopevent.h: Rename include guard. | |
4103 | * python/py-ref.h: Rename include guard. | |
4104 | * python/py-record.h: Rename include guard. | |
4105 | * python/py-record-full.h: Rename include guard. | |
4106 | * python/py-record-btrace.h: Rename include guard. | |
4107 | * python/py-instruction.h: Rename include guard. | |
4108 | * python/py-events.h: Rename include guard. | |
4109 | * python/py-event.h: Rename include guard. | |
4110 | * procfs.h: Add include guard. | |
4111 | * proc-utils.h: Add include guard. | |
4112 | * p-lang.h: Add include guard. | |
4113 | * or1k-tdep.h: Rename include guard. | |
4114 | * observable.h: Rename include guard. | |
4115 | * nto-tdep.h: Rename include guard. | |
4116 | * nat/x86-linux.h: Rename include guard. | |
4117 | * nat/x86-linux-dregs.h: Rename include guard. | |
4118 | * nat/x86-gcc-cpuid.h: Add include guard. | |
4119 | * nat/x86-dregs.h: Rename include guard. | |
4120 | * nat/x86-cpuid.h: Rename include guard. | |
4121 | * nat/ppc-linux.h: Rename include guard. | |
4122 | * nat/mips-linux-watch.h: Rename include guard. | |
4123 | * nat/linux-waitpid.h: Rename include guard. | |
4124 | * nat/linux-ptrace.h: Rename include guard. | |
4125 | * nat/linux-procfs.h: Rename include guard. | |
4126 | * nat/linux-osdata.h: Rename include guard. | |
4127 | * nat/linux-nat.h: Rename include guard. | |
4128 | * nat/linux-namespaces.h: Rename include guard. | |
4129 | * nat/linux-btrace.h: Rename include guard. | |
4130 | * nat/glibc_thread_db.h: Rename include guard. | |
4131 | * nat/gdb_thread_db.h: Rename include guard. | |
4132 | * nat/gdb_ptrace.h: Rename include guard. | |
4133 | * nat/fork-inferior.h: Rename include guard. | |
4134 | * nat/amd64-linux-siginfo.h: Rename include guard. | |
4135 | * nat/aarch64-sve-linux-sigcontext.h: Rename include guard. | |
4136 | * nat/aarch64-sve-linux-ptrace.h: Rename include guard. | |
4137 | * nat/aarch64-linux.h: Rename include guard. | |
4138 | * nat/aarch64-linux-hw-point.h: Rename include guard. | |
4139 | * mn10300-tdep.h: Add include guard. | |
4140 | * mips-linux-tdep.h: Add include guard. | |
4141 | * mi/mi-parse.h: Rename include guard. | |
4142 | * mi/mi-out.h: Rename include guard. | |
4143 | * mi/mi-main.h: Rename include guard. | |
4144 | * mi/mi-interp.h: Rename include guard. | |
4145 | * mi/mi-getopt.h: Rename include guard. | |
4146 | * mi/mi-console.h: Rename include guard. | |
4147 | * mi/mi-common.h: Rename include guard. | |
4148 | * mi/mi-cmds.h: Rename include guard. | |
4149 | * mi/mi-cmd-break.h: Rename include guard. | |
4150 | * m2-lang.h: Add include guard. | |
4151 | * location.h: Rename include guard. | |
4152 | * linux-record.h: Rename include guard. | |
4153 | * linux-nat.h: Add include guard. | |
4154 | * linux-fork.h: Add include guard. | |
4155 | * i386-darwin-tdep.h: Rename include guard. | |
4156 | * hppa-linux-offsets.h: Add include guard. | |
4157 | * guile/guile.h: Rename include guard. | |
4158 | * guile/guile-internal.h: Rename include guard. | |
4159 | * gnu-nat.h: Rename include guard. | |
4160 | * gdb-stabs.h: Rename include guard. | |
4161 | * frv-tdep.h: Add include guard. | |
4162 | * f-lang.h: Add include guard. | |
4163 | * event-loop.h: Add include guard. | |
4164 | * darwin-nat.h: Rename include guard. | |
4165 | * cp-abi.h: Rename include guard. | |
4166 | * config/sparc/nm-sol2.h: Rename include guard. | |
4167 | * config/nm-nto.h: Rename include guard. | |
4168 | * config/nm-linux.h: Add include guard. | |
4169 | * config/i386/nm-i386gnu.h: Rename include guard. | |
4170 | * config/djgpp/nl_types.h: Rename include guard. | |
4171 | * config/djgpp/langinfo.h: Rename include guard. | |
4172 | * compile/gcc-cp-plugin.h: Add include guard. | |
4173 | * compile/gcc-c-plugin.h: Add include guard. | |
4174 | * compile/compile.h: Rename include guard. | |
4175 | * compile/compile-object-run.h: Rename include guard. | |
4176 | * compile/compile-object-load.h: Rename include guard. | |
4177 | * compile/compile-internal.h: Rename include guard. | |
4178 | * compile/compile-cplus.h: Rename include guard. | |
4179 | * compile/compile-c.h: Rename include guard. | |
4180 | * common/xml-utils.h: Rename include guard. | |
4181 | * common/x86-xstate.h: Rename include guard. | |
4182 | * common/version.h: Rename include guard. | |
4183 | * common/vec.h: Rename include guard. | |
4184 | * common/tdesc.h: Rename include guard. | |
4185 | * common/selftest.h: Rename include guard. | |
4186 | * common/scoped_restore.h: Rename include guard. | |
4187 | * common/scoped_mmap.h: Rename include guard. | |
4188 | * common/scoped_fd.h: Rename include guard. | |
4189 | * common/safe-iterator.h: Rename include guard. | |
4190 | * common/run-time-clock.h: Rename include guard. | |
4191 | * common/refcounted-object.h: Rename include guard. | |
4192 | * common/queue.h: Rename include guard. | |
4193 | * common/ptid.h: Rename include guard. | |
4194 | * common/print-utils.h: Rename include guard. | |
4195 | * common/preprocessor.h: Rename include guard. | |
4196 | * common/pathstuff.h: Rename include guard. | |
4197 | * common/observable.h: Rename include guard. | |
4198 | * common/netstuff.h: Rename include guard. | |
4199 | * common/job-control.h: Rename include guard. | |
4200 | * common/host-defs.h: Rename include guard. | |
4201 | * common/gdb_wait.h: Rename include guard. | |
4202 | * common/gdb_vecs.h: Rename include guard. | |
4203 | * common/gdb_unlinker.h: Rename include guard. | |
4204 | * common/gdb_unique_ptr.h: Rename include guard. | |
4205 | * common/gdb_tilde_expand.h: Rename include guard. | |
4206 | * common/gdb_sys_time.h: Rename include guard. | |
4207 | * common/gdb_string_view.h: Rename include guard. | |
4208 | * common/gdb_splay_tree.h: Rename include guard. | |
4209 | * common/gdb_setjmp.h: Rename include guard. | |
4210 | * common/gdb_ref_ptr.h: Rename include guard. | |
4211 | * common/gdb_optional.h: Rename include guard. | |
4212 | * common/gdb_locale.h: Rename include guard. | |
4213 | * common/gdb_assert.h: Rename include guard. | |
4214 | * common/filtered-iterator.h: Rename include guard. | |
4215 | * common/filestuff.h: Rename include guard. | |
4216 | * common/fileio.h: Rename include guard. | |
4217 | * common/environ.h: Rename include guard. | |
4218 | * common/common-utils.h: Rename include guard. | |
4219 | * common/common-types.h: Rename include guard. | |
4220 | * common/common-regcache.h: Rename include guard. | |
4221 | * common/common-inferior.h: Rename include guard. | |
4222 | * common/common-gdbthread.h: Rename include guard. | |
4223 | * common/common-exceptions.h: Rename include guard. | |
4224 | * common/common-defs.h: Rename include guard. | |
4225 | * common/common-debug.h: Rename include guard. | |
4226 | * common/cleanups.h: Rename include guard. | |
4227 | * common/buffer.h: Rename include guard. | |
4228 | * common/btrace-common.h: Rename include guard. | |
4229 | * common/break-common.h: Rename include guard. | |
4230 | * cli/cli-utils.h: Rename include guard. | |
4231 | * cli/cli-style.h: Rename include guard. | |
4232 | * cli/cli-setshow.h: Rename include guard. | |
4233 | * cli/cli-script.h: Rename include guard. | |
4234 | * cli/cli-interp.h: Rename include guard. | |
4235 | * cli/cli-decode.h: Rename include guard. | |
4236 | * cli/cli-cmds.h: Rename include guard. | |
4237 | * charset-list.h: Add include guard. | |
4238 | * buildsym-legacy.h: Rename include guard. | |
4239 | * bfin-tdep.h: Add include guard. | |
4240 | * ax.h: Rename include guard. | |
4241 | * arm-linux-tdep.h: Add include guard. | |
4242 | * arm-fbsd-tdep.h: Add include guard. | |
4243 | * arch/xtensa.h: Rename include guard. | |
4244 | * arch/tic6x.h: Add include guard. | |
4245 | * arch/i386.h: Add include guard. | |
4246 | * arch/arm.h: Rename include guard. | |
4247 | * arch/arm-linux.h: Rename include guard. | |
4248 | * arch/arm-get-next-pcs.h: Rename include guard. | |
4249 | * arch/amd64.h: Add include guard. | |
4250 | * arch/aarch64-insn.h: Rename include guard. | |
4251 | * arch-utils.h: Rename include guard. | |
4252 | * annotate.h: Add include guard. | |
4253 | * amd64-darwin-tdep.h: Rename include guard. | |
4254 | * aarch64-linux-tdep.h: Add include guard. | |
4255 | * aarch64-fbsd-tdep.h: Add include guard. | |
4256 | * aarch32-linux-nat.h: Add include guard. | |
4257 | ||
ab9268d2 PW |
4258 | 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
4259 | ||
4260 | * macrotab.c (macro_define_internal): New function that | |
4261 | factorizes macro_define_object_internal and macro_define_function | |
4262 | code. | |
4263 | (macro_define_object_internal): Use macro_define_internal. | |
4264 | (macro_define_function): Likewise. | |
4265 | ||
bb0da2b4 PW |
4266 | 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
4267 | ||
4268 | * macrocmd.c (extract_identifier): Return | |
4269 | a gdb::unique_xmalloc_ptr<char> instead of a char *, and update | |
4270 | callers. | |
4271 | ||
424eb552 JB |
4272 | 2019-02-06 John Baldwin <jhb@FreeBSD.org> |
4273 | ||
4274 | * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces. | |
4275 | ||
1688cb29 TT |
4276 | 2019-02-05 Tom Tromey <tom@tromey.com> |
4277 | ||
4278 | * target.c (target_stack::unpush): Move assertion earlier. | |
4279 | ||
b5eba2d8 TT |
4280 | 2019-01-30 Tom Tromey <tom@tromey.com> |
4281 | ||
4282 | PR python/23615: | |
4283 | * python/python.c (execute_gdb_command): Use gdbpy_allow_threads. | |
4284 | (gdbpy_parse_and_eval): Likewise. | |
4285 | * python/python-internal.h (gdbpy_allow_threads): New class. | |
4286 | ||
7054e2ff JB |
4287 | 2019-01-28 John Baldwin <jhb@FreeBSD.org> |
4288 | ||
4289 | * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap) | |
4290 | (aarch64_fbsd_fpregmap): Move earlier. | |
4291 | (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete. | |
4292 | (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap | |
4293 | instead of individual calls to trad_frame_set_reg_addr. | |
4294 | * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move | |
4295 | earlier. | |
4296 | (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete. | |
4297 | (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap | |
4298 | instead of individual calls to trad_frame_set_reg_addr. | |
4299 | ||
36c25ffa AH |
4300 | 2019-01-28 Alan Hayward <alan.hayward@arm.com> |
4301 | ||
4302 | * CONTRIBUTE: Replace contribution list with wiki link. | |
4303 | ||
a0707f3c TT |
4304 | 2019-01-25 Tom Tromey <tom@tromey.com> |
4305 | ||
4306 | * Makefile.in (GDB_CFLAGS): Don't add -I for common. | |
4307 | ||
0747795c TT |
4308 | 2019-01-25 Tom Tromey <tom@tromey.com> |
4309 | ||
4310 | * xtensa-linux-nat.c: Fix common/ includes. | |
4311 | * xml-support.h: Fix common/ includes. | |
4312 | * xml-support.c: Fix common/ includes. | |
4313 | * x86-linux-nat.c: Fix common/ includes. | |
4314 | * windows-nat.c: Fix common/ includes. | |
4315 | * varobj.h: Fix common/ includes. | |
4316 | * varobj.c: Fix common/ includes. | |
4317 | * value.c: Fix common/ includes. | |
4318 | * valops.c: Fix common/ includes. | |
4319 | * utils.c: Fix common/ includes. | |
4320 | * unittests/xml-utils-selftests.c: Fix common/ includes. | |
4321 | * unittests/utils-selftests.c: Fix common/ includes. | |
4322 | * unittests/unpack-selftests.c: Fix common/ includes. | |
4323 | * unittests/tracepoint-selftests.c: Fix common/ includes. | |
4324 | * unittests/style-selftests.c: Fix common/ includes. | |
4325 | * unittests/string_view-selftests.c: Fix common/ includes. | |
4326 | * unittests/scoped_restore-selftests.c: Fix common/ includes. | |
4327 | * unittests/scoped_mmap-selftests.c: Fix common/ includes. | |
4328 | * unittests/scoped_fd-selftests.c: Fix common/ includes. | |
4329 | * unittests/rsp-low-selftests.c: Fix common/ includes. | |
4330 | * unittests/parse-connection-spec-selftests.c: Fix common/ | |
4331 | includes. | |
4332 | * unittests/optional-selftests.c: Fix common/ includes. | |
4333 | * unittests/offset-type-selftests.c: Fix common/ includes. | |
4334 | * unittests/observable-selftests.c: Fix common/ includes. | |
4335 | * unittests/mkdir-recursive-selftests.c: Fix common/ includes. | |
4336 | * unittests/memrange-selftests.c: Fix common/ includes. | |
4337 | * unittests/memory-map-selftests.c: Fix common/ includes. | |
4338 | * unittests/lookup_name_info-selftests.c: Fix common/ includes. | |
4339 | * unittests/function-view-selftests.c: Fix common/ includes. | |
4340 | * unittests/environ-selftests.c: Fix common/ includes. | |
4341 | * unittests/copy_bitwise-selftests.c: Fix common/ includes. | |
4342 | * unittests/common-utils-selftests.c: Fix common/ includes. | |
4343 | * unittests/cli-utils-selftests.c: Fix common/ includes. | |
4344 | * unittests/array-view-selftests.c: Fix common/ includes. | |
4345 | * ui-file.c: Fix common/ includes. | |
4346 | * tui/tui-io.c: Fix common/ includes. | |
4347 | * tracepoint.h: Fix common/ includes. | |
4348 | * tracepoint.c: Fix common/ includes. | |
4349 | * tracefile-tfile.c: Fix common/ includes. | |
4350 | * top.h: Fix common/ includes. | |
4351 | * top.c: Fix common/ includes. | |
4352 | * thread.c: Fix common/ includes. | |
4353 | * target/waitstatus.h: Fix common/ includes. | |
4354 | * target/waitstatus.c: Fix common/ includes. | |
4355 | * target.h: Fix common/ includes. | |
4356 | * target.c: Fix common/ includes. | |
4357 | * target-memory.c: Fix common/ includes. | |
4358 | * target-descriptions.c: Fix common/ includes. | |
4359 | * symtab.h: Fix common/ includes. | |
4360 | * symfile.c: Fix common/ includes. | |
4361 | * stap-probe.c: Fix common/ includes. | |
4362 | * spu-linux-nat.c: Fix common/ includes. | |
4363 | * sparc-nat.c: Fix common/ includes. | |
4364 | * source.c: Fix common/ includes. | |
4365 | * solib.c: Fix common/ includes. | |
4366 | * solib-target.c: Fix common/ includes. | |
4367 | * ser-unix.c: Fix common/ includes. | |
4368 | * ser-tcp.c: Fix common/ includes. | |
4369 | * ser-pipe.c: Fix common/ includes. | |
4370 | * ser-base.c: Fix common/ includes. | |
4371 | * selftest-arch.c: Fix common/ includes. | |
4372 | * s12z-tdep.c: Fix common/ includes. | |
4373 | * rust-exp.y: Fix common/ includes. | |
4374 | * rs6000-aix-tdep.c: Fix common/ includes. | |
4375 | * riscv-tdep.c: Fix common/ includes. | |
4376 | * remote.c: Fix common/ includes. | |
4377 | * remote-notif.h: Fix common/ includes. | |
4378 | * remote-fileio.h: Fix common/ includes. | |
4379 | * remote-fileio.c: Fix common/ includes. | |
4380 | * regcache.h: Fix common/ includes. | |
4381 | * regcache.c: Fix common/ includes. | |
4382 | * record-btrace.c: Fix common/ includes. | |
4383 | * python/python.c: Fix common/ includes. | |
4384 | * python/py-type.c: Fix common/ includes. | |
4385 | * python/py-inferior.c: Fix common/ includes. | |
4386 | * progspace.h: Fix common/ includes. | |
4387 | * producer.c: Fix common/ includes. | |
4388 | * procfs.c: Fix common/ includes. | |
4389 | * proc-api.c: Fix common/ includes. | |
4390 | * printcmd.c: Fix common/ includes. | |
4391 | * ppc-linux-nat.c: Fix common/ includes. | |
4392 | * parser-defs.h: Fix common/ includes. | |
4393 | * osdata.c: Fix common/ includes. | |
4394 | * obsd-nat.c: Fix common/ includes. | |
4395 | * nat/x86-linux.c: Fix common/ includes. | |
4396 | * nat/x86-linux-dregs.c: Fix common/ includes. | |
4397 | * nat/x86-dregs.h: Fix common/ includes. | |
4398 | * nat/x86-dregs.c: Fix common/ includes. | |
4399 | * nat/ppc-linux.c: Fix common/ includes. | |
4400 | * nat/mips-linux-watch.h: Fix common/ includes. | |
4401 | * nat/mips-linux-watch.c: Fix common/ includes. | |
4402 | * nat/linux-waitpid.c: Fix common/ includes. | |
4403 | * nat/linux-ptrace.h: Fix common/ includes. | |
4404 | * nat/linux-ptrace.c: Fix common/ includes. | |
4405 | * nat/linux-procfs.c: Fix common/ includes. | |
4406 | * nat/linux-personality.c: Fix common/ includes. | |
4407 | * nat/linux-osdata.c: Fix common/ includes. | |
4408 | * nat/linux-namespaces.c: Fix common/ includes. | |
4409 | * nat/linux-btrace.h: Fix common/ includes. | |
4410 | * nat/linux-btrace.c: Fix common/ includes. | |
4411 | * nat/fork-inferior.c: Fix common/ includes. | |
4412 | * nat/amd64-linux-siginfo.c: Fix common/ includes. | |
4413 | * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes. | |
4414 | * nat/aarch64-linux.c: Fix common/ includes. | |
4415 | * nat/aarch64-linux-hw-point.h: Fix common/ includes. | |
4416 | * nat/aarch64-linux-hw-point.c: Fix common/ includes. | |
4417 | * namespace.h: Fix common/ includes. | |
4418 | * mips-linux-tdep.c: Fix common/ includes. | |
4419 | * minsyms.c: Fix common/ includes. | |
4420 | * mi/mi-parse.h: Fix common/ includes. | |
4421 | * mi/mi-main.c: Fix common/ includes. | |
4422 | * mi/mi-cmd-env.c: Fix common/ includes. | |
4423 | * memrange.h: Fix common/ includes. | |
4424 | * memattr.c: Fix common/ includes. | |
4425 | * maint.h: Fix common/ includes. | |
4426 | * maint.c: Fix common/ includes. | |
4427 | * main.c: Fix common/ includes. | |
4428 | * machoread.c: Fix common/ includes. | |
4429 | * location.c: Fix common/ includes. | |
4430 | * linux-thread-db.c: Fix common/ includes. | |
4431 | * linux-nat.c: Fix common/ includes. | |
4432 | * linux-fork.c: Fix common/ includes. | |
4433 | * inline-frame.c: Fix common/ includes. | |
4434 | * infrun.c: Fix common/ includes. | |
4435 | * inflow.c: Fix common/ includes. | |
4436 | * inferior.h: Fix common/ includes. | |
4437 | * inferior.c: Fix common/ includes. | |
4438 | * infcmd.c: Fix common/ includes. | |
4439 | * inf-ptrace.c: Fix common/ includes. | |
4440 | * inf-child.c: Fix common/ includes. | |
4441 | * ia64-linux-nat.c: Fix common/ includes. | |
4442 | * i387-tdep.c: Fix common/ includes. | |
4443 | * i386-tdep.c: Fix common/ includes. | |
4444 | * i386-linux-tdep.c: Fix common/ includes. | |
4445 | * i386-linux-nat.c: Fix common/ includes. | |
4446 | * i386-go32-tdep.c: Fix common/ includes. | |
4447 | * i386-fbsd-tdep.c: Fix common/ includes. | |
4448 | * i386-fbsd-nat.c: Fix common/ includes. | |
4449 | * guile/scm-type.c: Fix common/ includes. | |
4450 | * guile/guile.c: Fix common/ includes. | |
4451 | * go32-nat.c: Fix common/ includes. | |
4452 | * gnu-nat.c: Fix common/ includes. | |
4453 | * gdbthread.h: Fix common/ includes. | |
4454 | * gdbarch-selftests.c: Fix common/ includes. | |
4455 | * gdb_usleep.c: Fix common/ includes. | |
4456 | * gdb_select.h: Fix common/ includes. | |
4457 | * gdb_bfd.c: Fix common/ includes. | |
4458 | * gcore.c: Fix common/ includes. | |
4459 | * fork-child.c: Fix common/ includes. | |
4460 | * findvar.c: Fix common/ includes. | |
4461 | * fbsd-nat.c: Fix common/ includes. | |
4462 | * event-top.c: Fix common/ includes. | |
4463 | * event-loop.c: Fix common/ includes. | |
4464 | * dwarf2read.c: Fix common/ includes. | |
4465 | * dwarf2loc.c: Fix common/ includes. | |
4466 | * dwarf2-frame.c: Fix common/ includes. | |
4467 | * dwarf-index-cache.c: Fix common/ includes. | |
4468 | * dtrace-probe.c: Fix common/ includes. | |
4469 | * disasm-selftests.c: Fix common/ includes. | |
4470 | * defs.h: Fix common/ includes. | |
4471 | * csky-tdep.c: Fix common/ includes. | |
4472 | * cp-valprint.c: Fix common/ includes. | |
4473 | * cp-support.h: Fix common/ includes. | |
4474 | * cp-support.c: Fix common/ includes. | |
4475 | * corelow.c: Fix common/ includes. | |
4476 | * completer.h: Fix common/ includes. | |
4477 | * completer.c: Fix common/ includes. | |
4478 | * compile/compile.c: Fix common/ includes. | |
4479 | * compile/compile-loc2c.c: Fix common/ includes. | |
4480 | * compile/compile-cplus-types.c: Fix common/ includes. | |
4481 | * compile/compile-cplus-symbols.c: Fix common/ includes. | |
4482 | * command.h: Fix common/ includes. | |
4483 | * cli/cli-dump.c: Fix common/ includes. | |
4484 | * cli/cli-cmds.c: Fix common/ includes. | |
4485 | * charset.c: Fix common/ includes. | |
4486 | * build-id.c: Fix common/ includes. | |
4487 | * btrace.h: Fix common/ includes. | |
4488 | * btrace.c: Fix common/ includes. | |
4489 | * breakpoint.h: Fix common/ includes. | |
4490 | * breakpoint.c: Fix common/ includes. | |
4491 | * ax.h: | |
4492 | (enum agent_op): Fix common/ includes. | |
4493 | * ax-general.c (struct aop_map): Fix common/ includes. | |
4494 | * ax-gdb.c: Fix common/ includes. | |
4495 | * auxv.c: Fix common/ includes. | |
4496 | * auto-load.c: Fix common/ includes. | |
4497 | * arm-tdep.c: Fix common/ includes. | |
4498 | * arch/riscv.c: Fix common/ includes. | |
4499 | * arch/ppc-linux-common.c: Fix common/ includes. | |
4500 | * arch/i386.c: Fix common/ includes. | |
4501 | * arch/arm.c: Fix common/ includes. | |
4502 | * arch/arm-linux.c: Fix common/ includes. | |
4503 | * arch/arm-get-next-pcs.c: Fix common/ includes. | |
4504 | * arch/amd64.c: Fix common/ includes. | |
4505 | * arch/aarch64.c: Fix common/ includes. | |
4506 | * arch/aarch64-insn.c: Fix common/ includes. | |
4507 | * arch-utils.c: Fix common/ includes. | |
4508 | * amd64-windows-tdep.c: Fix common/ includes. | |
4509 | * amd64-tdep.c: Fix common/ includes. | |
4510 | * amd64-sol2-tdep.c: Fix common/ includes. | |
4511 | * amd64-obsd-tdep.c: Fix common/ includes. | |
4512 | * amd64-nbsd-tdep.c: Fix common/ includes. | |
4513 | * amd64-linux-tdep.c: Fix common/ includes. | |
4514 | * amd64-linux-nat.c: Fix common/ includes. | |
4515 | * amd64-fbsd-tdep.c: Fix common/ includes. | |
4516 | * amd64-fbsd-nat.c: Fix common/ includes. | |
4517 | * amd64-dicos-tdep.c: Fix common/ includes. | |
4518 | * amd64-darwin-tdep.c: Fix common/ includes. | |
4519 | * agent.c: Fix common/ includes. | |
4520 | * ada-lang.h: Fix common/ includes. | |
4521 | * ada-lang.c: Fix common/ includes. | |
4522 | * aarch64-tdep.c: Fix common/ includes. | |
4523 | ||
2f5c153e TT |
4524 | 2019-01-25 Tom Tromey <tom@tromey.com> |
4525 | ||
4526 | * common/create-version.sh: Use common/version.h. | |
4527 | ||
adc6a863 PA |
4528 | 2019-01-24 Pedro Alves <palves@redhat.com> |
4529 | ||
4530 | * infrun.c (signal_stop, signal_print, signal_program) | |
4531 | (signal_catch, signal_pass): Now arrays instead of pointers. | |
4532 | (update_signals_program_target, do_target_resume) | |
4533 | (signal_catch_update, handle_command, _initialize_infrun): Adjust. | |
4534 | * linux-nat.c (linux_nat_target::pass_signals) | |
4535 | (linux_nat_target::create_inferior, linux_nat_target::attach): | |
4536 | Adjust. | |
4537 | * linux-nat.h (linux_nat_target::pass_signals): Adjust. | |
4538 | * nto-procfs.c (nto_procfs_target::pass_signals): Adjust. | |
4539 | * procfs.c (procfs_target::pass_signals): Adjust. | |
4540 | * record-full.c (record_full_target::resume): Adjust. | |
4541 | * remote.c (remote_target::pass_signals) | |
4542 | (remote_target::program_signals): Adjust. | |
4543 | * target-debug.h (target_debug_print_signals): Now takes a | |
4544 | gdb::array_view as parameter. Adjust. | |
4545 | * target.h (target_ops) <pass_signals, program_signals>: Replace | |
4546 | pointer and length parameters with gdb::array_view. | |
4547 | (target_pass_signals, target_program_signals): Likewise. | |
4548 | * target-delegates.c: Regenerate. | |
4549 | ||
3046d67a PA |
4550 | 2019-01-24 Pedro Alves <palves@redhat.com> |
4551 | ||
4552 | * common/forward-scope-exit.h | |
4553 | (forward_scope_exit::forward_scope_exit): Pass arguments to | |
4554 | m_bind_function directly, instead of creating a std::bind and | |
4555 | copying that. | |
4556 | ||
353229bf AH |
4557 | 2019-01-24 Alan Hayward <alan.hayward@arm.com> |
4558 | ||
4559 | * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check | |
4560 | for static members. | |
4561 | (pass_in_v_vfp_candidate): Likewise. | |
4562 | ||
311dc83a TT |
4563 | 2019-01-23 Tom Tromey <tom@tromey.com> |
4564 | Pedro Alves <palves@redhat.com> | |
4565 | ||
4566 | * regcache.c (class regcache_invalidator): Remove. | |
4567 | (regcache::raw_write): Use make_scope_exit. | |
4568 | ||
296bd123 TT |
4569 | 2019-01-23 Tom Tromey <tom@tromey.com> |
4570 | ||
4571 | * ui-out.h (class ui_out_emit_type): Update comment. | |
4572 | ||
979a0d13 TT |
4573 | 2019-01-23 Tom Tromey <tom@tromey.com> |
4574 | ||
4575 | * infrun.c (fetch_inferior_event): Update comment. | |
4576 | ||
d238133d TT |
4577 | 2019-01-23 Tom Tromey <tom@tromey.com> |
4578 | Pedro Alves <palves@redhat.com> | |
4579 | ||
4580 | * infrun.c (reinstall_readline_callback_handler_cleanup): Remove | |
4581 | parameter. | |
4582 | (fetch_inferior_event): Use SCOPE_EXIT. | |
4583 | ||
4584 | ||
9885e6bb TT |
4585 | 2019-01-23 Tom Tromey <tom@tromey.com> |
4586 | Pedro Alves <palves@redhat.com> | |
4587 | ||
4588 | * infrun.c (disable_thread_events): Delete. | |
4589 | (stop_all_threads): Use SCOPE_EXIT. | |
4590 | ||
286526c1 TT |
4591 | 2019-01-23 Tom Tromey <tom@tromey.com> |
4592 | Pedro Alves <palves@redhat.com> | |
4593 | ||
4594 | * symfile.c: Include forward-scope-exit.h. | |
4595 | (clear_symtab_users_cleanup): Replace forward declaration with | |
4596 | a FORWARD_SCOPE_EXIT. | |
4597 | (syms_from_objfile_1): Use the forward_scope_exit and | |
4598 | gdb::optional instead of cleanup_function. | |
4599 | (reread_symbols): Use the forward_scope_exit instead of | |
4600 | cleanup_function. | |
4601 | (clear_symtab_users_cleanup): Remove function. | |
4602 | ||
1db93f14 TT |
4603 | 2019-01-23 Tom Tromey <tom@tromey.com> |
4604 | Pedro Alves <palves@redhat.com> | |
4605 | ||
4606 | * linux-nat.c: Include scope-exit.h. | |
4607 | (cleanup_target_stop): Remove. | |
4608 | (linux_nat_target::static_tracepoint_markers_by_strid): Use | |
4609 | SCOPE_EXIT. | |
4610 | ||
2cc83d1e TT |
4611 | 2019-01-23 Tom Tromey <tom@tromey.com> |
4612 | Pedro Alves <palves@redhat.com> | |
4613 | ||
4614 | * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove. | |
4615 | (call_function_by_hand_dummy): Use SCOPE_EXIT. | |
4616 | ||
694c6bf5 TT |
4617 | 2019-01-23 Tom Tromey <tom@tromey.com> |
4618 | Andrew Burgess <andrew.burgess@embecosm.com> | |
4619 | Pedro Alves <palves@redhat.com> | |
4620 | ||
4621 | * infrun.c (fetch_inferior_event): Use scope_exit. | |
4622 | * utils.h (make_bpstat_clear_actions_cleanup): Don't declare. | |
4623 | * top.c (execute_command): Use scope_exit. | |
4624 | * breakpoint.c (bpstat_do_actions): Use scope_exit. | |
4625 | * utils.c (do_bpstat_clear_actions_cleanup) | |
4626 | (make_bpstat_clear_actions_cleanup): Remove. | |
4627 | ||
4c41382a TT |
4628 | 2019-01-23 Tom Tromey <tom@tromey.com> |
4629 | Pedro Alves <palves@redhat.com> | |
4630 | ||
4631 | * infrun.c: Include "common/scope-exit.h" | |
4632 | (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove. | |
4633 | (wait_for_inferior): Use SCOPE_EXIT. | |
4634 | (fetch_inferior_event): Use scope_exit. | |
4635 | ||
89f8fb50 TT |
4636 | 2019-01-23 Tom Tromey <tom@tromey.com> |
4637 | Pedro Alves <palves@redhat.com> | |
4638 | ||
4639 | * breakpoint.c (create_breakpoint): Remove cleanup. | |
4640 | ||
5419bdae TT |
4641 | 2019-01-23 Tom Tromey <tom@tromey.com> |
4642 | Andrew Burgess <andrew.burgess@embecosm.com> | |
4643 | Pedro Alves <palves@redhat.com> | |
4644 | ||
e587ef42 PA |
4645 | 2019-01-23 Pedro Alves <palves@redhat.com> |
4646 | ||
4647 | * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT. | |
4648 | ||
77f0e74c PA |
4649 | 2019-01-23 Pedro Alves <palves@redhat.com> |
4650 | Andrew Burgess <andrew.burgess@embecosm.com> | |
4651 | ||
4652 | * gdbthread.h: Include "common/forward-scope-exit.h". | |
4653 | (scoped_finish_thread_state): Redefine custom class in terms of | |
4654 | forward_scope_exit. | |
4655 | ||
5b9b3e53 PA |
4656 | 2019-01-23 Pedro Alves <palves@redhat.com> |
4657 | Andrew Burgess <andrew.burgess@embecosm.com> | |
4658 | ||
4659 | * common/forward-scope-exit.h: New file. | |
4660 | ||
54b65c9b PA |
4661 | 2019-01-23 Pedro Alves <palves@redhat.com> |
4662 | Andrew Burgess <andrew.burgess@embecosm.com> | |
4663 | Tom Tromey <tom@tromey.com> | |
4664 | ||
4665 | * common/scope-exit.h: New file. | |
4666 | ||
cf08fb29 PA |
4667 | 2019-01-23 Pedro Alves <palves@redhat.com> |
4668 | ||
4669 | * common/preprocessor.h (ESC): Rename to ... | |
4670 | (ESC_PARENS): ... this. | |
4671 | * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2) | |
4672 | (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust. | |
4673 | ||
ae73e2e2 TT |
4674 | 2019-01-23 Tom Tromey <tom@tromey.com> |
4675 | ||
4676 | * language.h (class scoped_switch_to_sym_language_if_auto): | |
4677 | Initialize m_lang in both cases. | |
4678 | ||
6594e122 AH |
4679 | 2019-01-23 Alan Hayward <alan.hayward@arm.com> |
4680 | ||
4681 | * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW | |
4682 | with XCNEW. | |
4683 | ||
a7c9855d TT |
4684 | 2019-01-22 Tom Tromey <tom@tromey.com> |
4685 | ||
4686 | * corelow.c: Do not include sys/file.h. | |
4687 | ||
93cc1d53 TT |
4688 | 2019-01-22 Tom Tromey <tom@tromey.com> |
4689 | ||
4690 | * tui/tui-wingeneral.h: Include gdb_curses.h. | |
4691 | ||
38561778 TT |
4692 | 2019-01-22 Tom Tromey <tom@tromey.com> |
4693 | ||
4694 | * source-cache.h (class source_cache) <get_source_lines, | |
4695 | get_plain_source_lines, extract_lines>: Rename "lines" parameter. | |
4696 | ||
37b3ab5b TT |
4697 | 2019-01-22 Tom Tromey <tom@tromey.com> |
4698 | ||
4699 | * remote-fileio.h (struct remote_target): Declare. | |
4700 | ||
3fabc016 TT |
4701 | 2019-01-22 Tom Tromey <tom@tromey.com> |
4702 | ||
4703 | * python/py-arch.c: Do not include py-ref.h. | |
4704 | * python/py-bpevent.c: Do not include py-ref.h. | |
4705 | * python/py-cmd.c: Do not include py-ref.h. | |
4706 | * python/py-continueevent.c: Do not include py-ref.h. | |
4707 | * python/py-event.h: Do not include py-ref.h. | |
4708 | * python/py-evtregistry.c: Do not include py-ref.h. | |
4709 | * python/py-finishbreakpoint.c: Do not include py-ref.h. | |
4710 | * python/py-frame.c: Do not include py-ref.h. | |
4711 | * python/py-framefilter.c: Do not include py-ref.h. | |
4712 | * python/py-function.c: Do not include py-ref.h. | |
4713 | * python/py-infevents.c: Do not include py-ref.h. | |
4714 | * python/py-linetable.c: Do not include py-ref.h. | |
4715 | * python/py-objfile.c: Do not include py-ref.h. | |
4716 | * python/py-param.c: Do not include py-ref.h. | |
4717 | * python/py-prettyprint.c: Do not include py-ref.h. | |
4718 | * python/py-progspace.c: Do not include py-ref.h. | |
4719 | * python/py-symbol.c: Do not include py-ref.h. | |
4720 | * python/py-symtab.c: Do not include py-ref.h. | |
4721 | * python/py-type.c: Do not include py-ref.h. | |
4722 | * python/py-unwind.c: Do not include py-ref.h. | |
4723 | * python/py-utils.c: Do not include py-ref.h. | |
4724 | * python/py-value.c: Do not include py-ref.h. | |
4725 | * python/py-varobj.c: Do not include py-ref.h. | |
4726 | * python/py-xmethods.c: Do not include py-ref.h. | |
4727 | * python/python.c: Do not include py-ref.h. | |
4728 | * varobj.c: Do not include py-ref.h. | |
4729 | ||
6b4d7774 TT |
4730 | 2019-01-22 Tom Tromey <tom@tromey.com> |
4731 | ||
4732 | * objfiles.h (struct objfile_per_bfd_storage): Use "struct" | |
4733 | keyword for bcache. | |
4734 | ||
7af7e9b5 TT |
4735 | 2019-01-22 Tom Tromey <tom@tromey.com> |
4736 | ||
4737 | * compile/compile-cplus-types.c: Remove a comment by #include. | |
4738 | ||
951d1049 TT |
4739 | 2019-01-22 Tom Tromey <tom@tromey.com> |
4740 | ||
4741 | * compile/gcc-c-plugin.h: Include compile-internal.h. | |
4742 | ||
d65d5705 TT |
4743 | 2019-01-22 Tom Tromey <tom@tromey.com> |
4744 | ||
4745 | * stabsread.c (EXTERN): Do not define. | |
4746 | (symnum, next_symbol_text_func, processing_gcc_compilation) | |
4747 | (within_function, global_sym_chain, global_stabs) | |
4748 | (previous_stab_code, this_object_header_files) | |
4749 | (n_this_object_header_files) | |
4750 | (n_allocated_this_object_header_files): Define. | |
4751 | * stabsread.h (EXTERN): Never define. Use "extern". | |
4752 | ||
b6fb1ee5 PW |
4753 | 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
4754 | ||
4755 | * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for | |
4756 | history_value. | |
4757 | ||
be6d4f74 TT |
4758 | 2019-01-21 Tom Tromey <tom@tromey.com> |
4759 | ||
4760 | * ui-out.c: Fix includes. | |
4761 | * tui/tui-source.c: Fix includes. | |
4762 | * target.c: Fix includes. | |
4763 | * remote.c: Fix includes. | |
4764 | * regcache.c: Fix includes. | |
4765 | * python/py-block.c: Fix includes. | |
4766 | * printcmd.c: Fix includes. | |
4767 | * or1k-tdep.c: Fix includes. | |
4768 | * mi/mi-main.c: Fix includes. | |
4769 | * m32r-tdep.c: Fix includes. | |
4770 | * csky-tdep.c: Fix includes. | |
4771 | * compile/compile-cplus-types.c: Fix includes. | |
4772 | * cli/cli-interp.c: Fix includes. | |
4773 | ||
73021deb AH |
4774 | 2019-01-21 Alan Hayward <alan.hayward@arm.com> |
4775 | ||
4776 | * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check | |
4777 | for padding. | |
4778 | ||
7932255d TT |
4779 | 2019-01-16 Tom Tromey <tom@tromey.com> |
4780 | ||
4781 | * objfiles.h (struct minimal_symbol_iterator): Rename. Move | |
4782 | earlier. | |
4783 | (struct objfile) <msymbols_range>: Move from top level. | |
4784 | <msymbols>: New method. | |
4785 | (class objfile_msymbols): Remove. | |
4786 | * symtab.c (default_collect_symbol_completion_matches_break_on): | |
4787 | Update. | |
4788 | * symmisc.c (dump_msymbols): Update. | |
4789 | * stabsread.c (scan_file_globals): Update. | |
4790 | * objc-lang.c (info_selectors_command, info_classes_command) | |
4791 | (find_methods): Update. | |
4792 | * minsyms.c (find_solib_trampoline_target): Update. | |
4793 | * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update. | |
4794 | * coffread.c (coff_symfile_read): Update. | |
4795 | * ada-lang.c (ada_lookup_simple_minsym) | |
4796 | (ada_collect_symbol_completion_matches): Update. | |
4797 | ||
604b1bfb TT |
4798 | 2019-01-16 Tom Tromey <tom@tromey.com> |
4799 | ||
4800 | * objfiles.h (class objfile_msymbols) <iterator>: Change argument | |
4801 | type. Remove no-argument constructor. | |
4802 | <iterator::operator++>: Simplify. | |
4803 | <begin>: Update. | |
4804 | <end>: Use minimal_symbol_count. | |
4805 | ||
f252c6d5 TT |
4806 | 2019-01-16 Tom Tromey <tom@tromey.com> |
4807 | ||
4808 | * objfiles.h (struct objfile) <psymtabs>: New method. | |
4809 | (class objfile_psymtabs): Remove. | |
4810 | * psymtab.h (class psymtab_storage) <partial_symtab_range>: New | |
4811 | typedef. | |
4812 | <range>: New method. | |
4813 | (require_partial_symbols): Change return type. | |
4814 | * psymtab.c (require_partial_symbols) | |
4815 | (psym_expand_symtabs_matching): Update. | |
4816 | * mdebugread.c (parse_partial_symbols): Update. | |
4817 | * dbxread.c (dbx_end_psymtab): Update. | |
4818 | ||
b669c953 TT |
4819 | 2019-01-15 Tom Tromey <tom@tromey.com> |
4820 | ||
4821 | * symtab.c (lookup_objfile_from_block) | |
4822 | (lookup_symbol_in_objfile_symtabs) | |
4823 | (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab) | |
4824 | (find_line_symtab, info_sources_command) | |
4825 | (default_collect_symbol_completion_matches_break_on) | |
4826 | (make_source_files_completion_list): Update. | |
4827 | * symmisc.c (print_objfile_statistics, dump_objfile) | |
4828 | (maintenance_print_symbols, maintenance_info_symtabs) | |
4829 | (maintenance_check_symtabs, maintenance_info_line_tables): | |
4830 | Update. | |
4831 | * source.c (select_source_symtab) | |
4832 | (forget_cached_source_info_for_objfile): Update. | |
4833 | * objfiles.h (class objfile_compunits): Remove. | |
4834 | (struct objfile) <compunits_range>: New typedef. | |
4835 | (compunits): New method. | |
4836 | * objfiles.c (objfile_relocate1): Update. | |
4837 | * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update. | |
4838 | * maint.c (count_symtabs_and_blocks): Update. | |
4839 | * linespec.c (iterate_over_all_matching_symtabs): Update. | |
4840 | * cp-support.c (add_symbol_overload_list_qualified): Update. | |
4841 | * coffread.c (coff_symtab_read): Update. | |
4842 | * ada-lang.c (add_nonlocal_symbols) | |
4843 | (ada_collect_symbol_completion_matches) | |
4844 | (ada_add_global_exceptions): Update. | |
4845 | ||
7e955d83 TT |
4846 | 2019-01-15 Tom Tromey <tom@tromey.com> |
4847 | ||
4848 | * progspace.h (program_space) <objfiles_safe_range>: New | |
4849 | typedef. | |
4850 | <objfiles_safe>: New method. | |
4851 | * objfiles.h (class all_objfiles_safe): Remove. | |
4852 | * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update. | |
4853 | * jit.c (jit_inferior_exit_hook): Update. | |
4854 | ||
2030c079 TT |
4855 | 2019-01-17 Tom Tromey <tom@tromey.com> |
4856 | ||
4857 | * progspace.h (program_space) <objfiles_range>: New typedef. | |
4858 | <objfiles>: New method. | |
4859 | <objfiles_head>: Rename from objfiles. | |
4860 | (object_files): Update. | |
4861 | * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update. | |
4862 | * guile/scm-pretty-print.c | |
4863 | (ppscm_find_pretty_printer_from_objfiles): Update. | |
4864 | * guile/scm-objfile.c (gdbscm_objfiles): Update. | |
4865 | * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): | |
4866 | Update. | |
4867 | * python/py-progspace.c (pspy_get_objfiles): Update. | |
4868 | * python/py-prettyprint.c (find_pretty_printer_from_objfiles): | |
4869 | Update. | |
4870 | * python/py-objfile.c (objfpy_lookup_objfile_by_name) | |
4871 | (objfpy_lookup_objfile_by_build_id): Update. | |
4872 | * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update. | |
4873 | * windows-tdep.c (windows_iterate_over_objfiles_in_search_order): | |
4874 | Update. | |
4875 | * symtab.c (iterate_over_symtabs, matching_obj_sections) | |
4876 | (expand_symtab_containing_pc, lookup_objfile_from_block) | |
4877 | (lookup_static_symbol, basic_lookup_transparent_type) | |
4878 | (find_pc_sect_compunit_symtab, find_symbol_at_address) | |
4879 | (find_line_symtab, info_sources_command) | |
4880 | (default_collect_symbol_completion_matches_break_on) | |
4881 | (make_source_files_completion_list, find_main_name): Update. | |
4882 | * symmisc.c (print_symbol_bcache_statistics) | |
4883 | (print_objfile_statistics, maintenance_print_symbols) | |
4884 | (maintenance_print_msymbols, maintenance_print_objfiles) | |
4885 | (maintenance_info_symtabs, maintenance_check_symtabs) | |
4886 | (maintenance_expand_symtabs, maintenance_info_line_tables): | |
4887 | Update. | |
4888 | * symfile.c (remove_symbol_file_command, overlay_invalidate_all) | |
4889 | (find_pc_overlay, find_pc_mapped_section, list_overlays_command) | |
4890 | (map_overlay_command, unmap_overlay_command) | |
4891 | (simple_overlay_update, expand_symtabs_matching) | |
4892 | (map_symbol_filenames): Update. | |
4893 | * symfile-debug.c (set_debug_symfile): Update. | |
4894 | * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame): | |
4895 | Update. | |
4896 | * source.c (select_source_symtab, forget_cached_source_info): | |
4897 | Update. | |
4898 | * solib.c (solib_read_symbols): Update. | |
4899 | * solib-spu.c (append_ocl_sos): Update. | |
4900 | * psymtab.c (maintenance_print_psymbols) | |
4901 | (maintenance_info_psymtabs, maintenance_check_psymtabs): Update. | |
4902 | * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update. | |
4903 | * printcmd.c (info_symbol_command): Update. | |
4904 | * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): | |
4905 | Update. | |
4906 | * objfiles.h (class all_objfiles): Remove. | |
4907 | * objfiles.c (have_partial_symbols, have_full_symbols) | |
4908 | (have_minimal_symbols, qsort_cmp, update_section_map) | |
4909 | (shared_objfile_contains_address_p) | |
4910 | (default_iterate_over_objfiles_in_search_order): Update. | |
4911 | * objc-lang.c (info_selectors_command, info_classes_command) | |
4912 | (find_methods): Update. | |
4913 | * minsyms.c (find_solib_trampoline_target): Update. | |
4914 | * maint.c (maintenance_info_sections) | |
4915 | (maintenance_translate_address, count_symtabs_and_blocks): | |
4916 | Update. | |
4917 | * main.c (captured_main_1): Update. | |
4918 | * linux-thread-db.c (try_thread_db_load_from_pdir) | |
4919 | (has_libpthread): Update. | |
4920 | * linespec.c (iterate_over_all_matching_symtabs) | |
4921 | (search_minsyms_for_name): Update. | |
4922 | * jit.c (jit_find_objf_with_entry_addr): Update. | |
4923 | * hppa-tdep.c (find_unwind_entry) | |
4924 | (hppa_lookup_stub_minimal_symbol): Update. | |
4925 | * gcore.c (gcore_create_callback, objfile_find_memory_regions): | |
4926 | Update. | |
4927 | * elfread.c (elf_gnu_ifunc_resolve_by_cache) | |
4928 | (elf_gnu_ifunc_resolve_by_got): Update. | |
4929 | * dwarf2-frame.c (dwarf2_frame_find_fde): Update. | |
4930 | * dwarf-index-write.c (save_gdb_index_command): Update. | |
4931 | * cp-support.c (add_symbol_overload_list_qualified): Update. | |
4932 | * breakpoint.c (create_overlay_event_breakpoint) | |
4933 | (create_longjmp_master_breakpoint) | |
4934 | (create_std_terminate_master_breakpoint) | |
4935 | (create_exception_master_breakpoint): Update. | |
4936 | * blockframe.c (find_pc_partial_function): Update. | |
4937 | * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols) | |
4938 | (ada_collect_symbol_completion_matches) | |
4939 | (ada_add_global_exceptions): Update. | |
4940 | ||
776489e0 TT |
4941 | 2019-01-17 Tom Tromey <tom@tromey.com> |
4942 | ||
4943 | * solib-target.c (lm_info_target_p): Remove typedef. Don't | |
4944 | declare VEC. | |
4945 | (solib_target_parse_libraries): Change return type. | |
4946 | (library_list_start_segment, library_list_start_section) | |
4947 | (library_list_end_library, library_list_start_library); Update. | |
4948 | (solib_target_free_library_list): Remove. | |
4949 | (solib_target_parse_libraries): Remove cleanup. Change return | |
4950 | type. | |
4951 | (solib_target_current_sos): Update. | |
4952 | ||
6471e7d2 TT |
4953 | 2019-01-17 Tom Tromey <tromey@bapiya> |
4954 | ||
4955 | * valprint.c: Replace "the the" with "the". | |
4956 | * symtab.c: Replace "the the" with "the". | |
4957 | * solib.c: Replace "the the" with "the". | |
4958 | * solib-dsbt.c: Replace "the the" with "the". | |
4959 | * linespec.c: Replace "the the" with "the". | |
4960 | * dwarf2loc.h: Replace "the the" with "the". | |
4961 | * amd64-windows-tdep.c: Replace "the the" with "the". | |
4962 | * aarch64-tdep.c: Replace "the the" with "the". | |
4963 | ||
c24bdb02 KS |
4964 | 2019-01-16 Keith Seitz <keiths@redhat.com> |
4965 | ||
4966 | PR gdb/23773 | |
4967 | * dwarf2read.c (dwarf2_cu) <ancestor>: New field. | |
4968 | <builder>: Rename to .. | |
4969 | <m_builder>: ... this and make private. | |
4970 | (dwarf2_cu::get_builder): New method. Change all users of | |
4971 | `builder' to use this method. | |
4972 | (dwarf2_start_symtab): Move to ... | |
4973 | (dwarf2_cu::start_symtab): ... here. Update all callers | |
4974 | (setup_type_unit_groups): Move to ... | |
4975 | (dwarf2_cu::setup_type_unit_groups): ... here. Update all | |
4976 | callers. | |
4977 | (dwarf2_cu::reset_builder): New method. | |
4978 | (process_full_compunit, process_full_type_unit): Use | |
4979 | dwarf2_cu::reset_builder. | |
4980 | (follow_die_offset): Record the ancestor CU if it is different | |
4981 | from the followed DIE's CU. | |
4982 | (follow_die_sig_1): Likewise. | |
4983 | ||
8d64371b TT |
4984 | 2019-01-15 Tom Tromey <tom@tromey.com> |
4985 | ||
4986 | * remote.c (class remote_state) <buf>: Now a char_vector. | |
4987 | <buf_size>: Remove. | |
4988 | (remote_target::getpkt): Change type of buf. Remove sizeof_buf | |
4989 | parameter. | |
4990 | (remote_target::getpkt_or_notif_sane_1) | |
4991 | (remote_target::getpkt_sane) | |
4992 | (remote_target::getpkt_or_notif_sane): Likewise. | |
4993 | (class remote_target) <putpkt>: New overload. | |
4994 | (remote_target::read_frame): Change type of "buf_p". Remove | |
4995 | sizeof_p parameter. | |
4996 | (packet_ok): New overload. | |
4997 | (packet_check_result): New overload. | |
4998 | Update all uses. | |
4999 | ||
bb277751 TT |
5000 | 2019-01-14 Tom Tromey <tom@tromey.com> |
5001 | ||
5002 | * remote-notif.c (handle_notification, remote_notif_ack) | |
5003 | (remote_notif_parse): Make "buf" const. | |
5004 | * remote-notif.h (struct notif_client) <parse, ack>: Make "buf" | |
5005 | const. | |
5006 | (remote_notif_parse, remote_notif_ack, handle_notification): | |
5007 | Likewise. | |
5008 | * remote.c (remote_notif_stop_parse): Make "buf" const. | |
5009 | (remote_target::remote_parse_stop_reply): Make "buf" const. | |
5010 | (remote_notif_stop_ack): Make "buf" const. | |
5011 | ||
05be00a8 TT |
5012 | 2019-01-14 Tom Tromey <tom@tromey.com> |
5013 | ||
5014 | * remote.c (remote_console_output): Make parameter const. | |
5015 | ||
491adeca TT |
5016 | 2019-01-14 Tom Tromey <tom@tromey.com> |
5017 | ||
5018 | * target-debug.h (target_debug_print_signals): Constify. | |
5019 | * nto-procfs.c (nto_procfs_target::pass_signals): Update. | |
5020 | * procfs.c (procfs_target::pass_signals): Update. | |
5021 | * linux-nat.c (linux_nat_target::pass_signals): Update. | |
5022 | * linux-nat.h (class linux_nat_target) <pass_signals>: Update. | |
5023 | * target-delegates.c: Rebuild. | |
5024 | * remote.c (remote_target::program_signals): Update. | |
5025 | (remote_target::pass_signals): Update. | |
5026 | * target.c (target_pass_signals): Constify argument. | |
5027 | (target_program_signals): Likewise. | |
5028 | * target.h (struct target_ops) <pass_signals, program_signals>: | |
5029 | Constify argument. | |
5030 | (target_pass_signals, target_program_signals): Constify argument. | |
5031 | ||
bbd94648 TT |
5032 | 2019-01-14 Tom Tromey <tom@tromey.com> |
5033 | ||
5034 | PR tui/28819: | |
5035 | * tui/tui-io.c (gdb_wgetch): Print \r when needed. | |
5036 | ||
6f072a10 PFC |
5037 | 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com> |
5038 | ||
5039 | * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New | |
5040 | field. | |
5041 | * rs6000-tdep.c: Include reggroups.h. | |
5042 | (IS_V_ALIAS_PSEUDOREG): Define. | |
5043 | (rs6000_register_name): Return names for the "vX" aliases. | |
5044 | (rs6000_pseudo_register_type): Return type for the "vX" aliases. | |
5045 | (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX" | |
5046 | aliases. Call default_register_reggroup_p for all other | |
5047 | pseudo-registers. | |
5048 | (v_alias_pseudo_register_read, v_alias_pseudo_register_write): | |
5049 | New functions. | |
5050 | (rs6000_pseudo_register_read, rs6000_pseudo_register_write): | |
5051 | Handle "vX" aliases. | |
5052 | (v_alias_pseudo_register_collect): New function. | |
5053 | (rs6000_ax_pseudo_register_collect): Handle "vX" aliases. | |
5054 | (rs6000_gdbarch_init): Initialize "vX" aliases as | |
5055 | pseudo-registers. Restore registration of | |
5056 | rs6000_pseudo_register_reggroup_p with | |
5057 | set_tdesc_pseudo_register_reggroup_p. | |
5058 | ||
1a782351 MF |
5059 | 2019-01-13 Max Filippov <jcmvbkbc@gmail.com> |
5060 | ||
5061 | * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update | |
5062 | tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and | |
5063 | set_gdbarch_num_pseudo_regs. | |
5064 | ||
d73cff18 PW |
5065 | 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
5066 | ||
5067 | * cli/cli-style.h (class cli_style_option): <add_setshow_commands> | |
5068 | Remove arg prefixname, add do_set and do_show. | |
5069 | Add member functions set_list and show_list. | |
5070 | * cli/cli-style.c (class cli_style_option): Update accordingly. | |
5071 | (style_set_list): Move to file scope. | |
5072 | (style_show_list): Likewise. | |
5073 | (set_style): Call help_list. | |
5074 | (show_style): Call cmd_show_list. | |
5075 | (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS. | |
5076 | Update to use the new macro. | |
5077 | ||
60a90376 JB |
5078 | 2019-10-12 Joel Brobecker <brobecker@adacore.com> |
5079 | ||
5080 | * ada-lang.c (_initialize_ada_language): Expand the help text | |
5081 | for the "catch exception" command. | |
5082 | ||
9d7c67bf PW |
5083 | 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
5084 | ||
5085 | * symtab.c (matching_obj_sections): Initialize obj, | |
5086 | declare it closer to its usage. | |
5087 | ||
7cf47dc4 TT |
5088 | 2019-01-10 Tom Tromey <tom@tromey.com> |
5089 | ||
5090 | * thread-iter.h (inf_threads_iterator): Use next_iterator. | |
5091 | (basic_inf_threads_range): Remove. | |
5092 | (inf_threads_range, inf_non_exited_threads_range) | |
5093 | (safe_inf_threads_range): Use next_adapter. | |
5094 | ||
d3cb6808 KS |
5095 | 2019-01-10 Keith Seitz <keiths@redhat.com> |
5096 | ||
5097 | PR gdb/23712 | |
5098 | PR symtab/23010 | |
5099 | * dwarf2read.c (dw2_add_symbol_to_list): Remove. | |
5100 | (fixup_go_packaging, new_symbol): Use add_symbol_to_list. | |
5101 | ||
63a20375 KS |
5102 | 2019-01-10 Keith Seitz <keiths@redhat.com> |
5103 | ||
5104 | PR gdb/23712 | |
5105 | PR symtab/23010 | |
5106 | * dictionary.c (pending_to_vector): Remove. | |
5107 | (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1): | |
5108 | Remove _1 suffix, replacing functions of the same name. Update | |
5109 | all callers. | |
5110 | (dict_create_hashed, dict_create_hashed_expandable) | |
5111 | (dict_create_linear, dict_create_linear_expandable, dict_free) | |
5112 | (dict_add_symbol, dict_add_pending, dict_size, dict_empty): | |
5113 | Make functions static. | |
5114 | ||
b026f593 KS |
5115 | 2019-01-10 Keith Seitz <keiths@redhat.com> |
5116 | ||
5117 | PR gdb/23712 | |
5118 | PR symtab/23010 | |
5119 | * dictionary.h (struct dictionary): Replace declaration with | |
5120 | multidictionary. | |
5121 | (dict_create_hashed, dict_create_hashed_expandable) | |
5122 | (dict_create_linear, dict_create_linear_expandable) | |
5123 | (dict_free, dict_add_symbol, dict_add_pending, dict_empty) | |
5124 | (dict_iterator_first, dict_iterator_next, dict_iter_match_first) | |
5125 | (dict_iter_match_next, dict_size): Rename to "mdict_" versions | |
5126 | taking multidictionary argument. | |
5127 | [ALL_DICT_SYMBOLS]: Update for multidictionary. | |
5128 | * block.h (struct block) <dict>: Change to multidictionary | |
5129 | and rename `multidict'. | |
5130 | * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c, | |
5131 | symmisc.c: Update all dictionary references to multidictionary. | |
5132 | ||
c7748ee9 KS |
5133 | 2019-01-10 Keith Seitz <keiths@redhat.com> |
5134 | ||
5135 | PR gdb/23712 | |
5136 | PR symtab/23010 | |
5137 | * dictionary.c: Include unordered_map. | |
5138 | (pending_to_vector): New function. | |
5139 | (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1): | |
5140 | Rewrite the non-"_1" functions to take vector instead | |
5141 | of linked list. | |
5142 | (dict_create_hashed, dict_create_linear, dict_add_pending): Use the | |
5143 | "new" _1 versions of the same name. | |
5144 | (multidictionary): Define. | |
5145 | (std::hash<enum language): New definition. | |
5146 | (collate_pending_symbols_by_language, mdict_create_hashed) | |
5147 | (mdict_create_hashed_expandable, mdict_create_linear) | |
5148 | (mdict_create_linear_expandable, mdict_free) | |
5149 | (find_language_dictionary, create_new_language_dictionary) | |
5150 | (mdict_add_symbol, mdict_add_pending, mdict_iterator_first) | |
5151 | (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next) | |
5152 | (mdict_size, mdict_empty): New functions. | |
5153 | * dictionary.h (mdict_iterator): Define. | |
5154 | ||
67aa1f3c PA |
5155 | 2019-01-10 Pedro Alves <palves@redhat.com> |
5156 | ||
5157 | * breakpoint.c (read_uploaded_action) | |
5158 | (create_tracepoint_from_upload): Adjust to use | |
5159 | gdb::unique_xmalloc_ptr. | |
5160 | * ctf.c (ctf_write_uploaded_tp): | |
5161 | (SET_ARRAY_FIELD): Use emplace_back. | |
5162 | (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr. | |
5163 | * tracefile-tfile.c (tfile_write_uploaded_tp): | |
5164 | * tracepoint.c (parse_tracepoint_definition): Adjust to use | |
5165 | gdb::unique_xmalloc_ptr. | |
5166 | * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions, | |
5167 | at_string, cond_string, cmd_strings>: Replace char pointers | |
5168 | with gdb::unique_xmalloc_ptr. | |
5169 | ||
2f667667 PA |
5170 | 2019-01-10 Pedro Alves <palves@redhat.com> |
5171 | ||
5172 | * solib-target.c (library_list_start_library): Don't xstrdup name. | |
5173 | ||
36cb7237 PA |
5174 | 2019-01-10 Pedro Alves <palves@redhat.com> |
5175 | ||
5176 | * mdebugread.c (parse_partial_symbols): Use | |
5177 | gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'. | |
5178 | ||
da584958 AB |
5179 | 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com> |
5180 | ||
5181 | * linux-fork.c (scoped_switch_fork_info) | |
5182 | <~scoped_switch_fork_info>: Fix incorrect variable name. | |
5183 | ||
1ef8573c AB |
5184 | 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com> |
5185 | ||
5186 | * linux-fork.c (scoped_switch_fork_info) | |
5187 | <scoped_switch_fork_info>: Make explicit. | |
5188 | <~scoped_switch_fork_info>: Wrap core in TRY/CATCH. | |
5189 | ||
8d7bcccb TT |
5190 | 2019-01-10 Tom Tromey <tom@tromey.com> |
5191 | ||
5192 | * objfiles.h (objfile::reset_psymtabs): Update. | |
5193 | * objfiles.c (objfile::objfile): Update. | |
5194 | * psymtab.h (psymtab_storage::obstack): Update. | |
5195 | (psymtab_storage::m_obstack): Use gdb::optional. | |
5196 | (class psymtab_storage): Update comment. Remove objfile | |
5197 | parameter. | |
5198 | * psymtab.c (psymtab_storage::psymtab_storage): Update. | |
5199 | ||
b596a3c7 TT |
5200 | 2019-01-10 Tom Tromey <tom@tromey.com> |
5201 | ||
5202 | * psymtab.h (psymtab_storage::allocate_psymtab): New method. | |
5203 | <free_psymtabs>: Now private. | |
5204 | * psymtab.c (psymtab_storage::allocate_psymtab): Implement. | |
5205 | (allocate_psymtab): Use new method. | |
5206 | ||
a9342b62 TT |
5207 | 2019-01-10 Tom Tromey <tom@tromey.com> |
5208 | ||
5209 | * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies. | |
5210 | * psymtab.h (psymtab_storage::allocate_dependencies): New method. | |
5211 | * mdebugread.c (parse_partial_symbols): Use | |
5212 | allocate_dependencies. | |
5213 | * dwarf2read.c (dwarf2_create_include_psymtab): Use | |
5214 | allocate_dependencies. | |
5215 | (process_psymtab_comp_unit_reader) | |
5216 | (build_type_psymtab_dependencies): Likewise. | |
5217 | * dbxread.c (dbx_end_psymtab): Use allocate_dependencies. | |
5218 | ||
5af70966 TT |
5219 | 2019-01-10 Tom Tromey <tom@tromey.com> |
5220 | ||
5221 | * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to | |
5222 | PSYMBOL_SET_LANGUAGE. | |
5223 | (allocate_psymtab): Allocate psymtab on the psymtab obstack. | |
5224 | ||
5923a04c TT |
5225 | 2019-01-10 Tom Tromey <tom@tromey.com> |
5226 | ||
5227 | * psymtab.h (psymtab_storage::obstack): New method. | |
5228 | <m_obstack>: Rename from obstack; now private. | |
5229 | * psymtab.c (psymtab_storage): Update. | |
5230 | * dwarf2read.c (create_addrmap_from_index) | |
5231 | (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard): | |
5232 | Update. | |
5233 | ||
6d6a12bf TT |
5234 | 2019-01-10 Tom Tromey <tom@tromey.com> |
5235 | ||
5236 | * symfile.c (reread_symbols): Call objfile->reset_psymtabs. | |
5237 | * objfiles.h (objfile::reset_psymtabs): New method. | |
5238 | ||
d320c2b5 TT |
5239 | 2019-01-10 Tom Tromey <tom@tromey.com> |
5240 | ||
5241 | * symmisc.c (print_symbol_bcache_statistics): Update. | |
5242 | (print_objfile_statistics): Update. | |
5243 | * symfile.c (reread_symbols): Update. | |
5244 | * psymtab.h (class psymtab_storage): New. | |
5245 | * psymtab.c (psymtab_storage): New constructor. | |
5246 | (~psymtab_storage): New destructor. | |
5247 | (require_partial_symbols): Update. | |
5248 | (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite. | |
5249 | (find_pc_sect_psymtab, find_pc_sect_psymbol) | |
5250 | (match_partial_symbol, lookup_partial_symbol, dump_psymtab) | |
5251 | (psym_dump, recursively_search_psymtabs, psym_has_symbols) | |
5252 | (psym_find_compunit_symtab_by_address, sort_pst_symbols) | |
5253 | (start_psymtab_common, end_psymtab_common) | |
5254 | (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list) | |
5255 | (allocate_psymtab): Update. | |
5256 | (psymtab_storage::discard_psymtab): Rename from discard_psymtab. | |
5257 | Update. | |
5258 | (dump_psymtab_addrmap, maintenance_print_psymbols) | |
5259 | (maintenance_check_psymtabs): Update. | |
5260 | (class objfile_psymtabs): Move to objfiles.h. | |
5261 | * psympriv.h (discard_psymtab): Now inline. | |
5262 | (psymtab_discarder::psymtab_discarder): Update. | |
5263 | (psymtab_discarder::~psymtab_discarder): Update. | |
5264 | (ALL_OBJFILE_PSYMTABS): Rewrite. | |
5265 | * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap, | |
5266 | free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>: | |
5267 | Remove fields. | |
5268 | <partial_symtabs>: New field. | |
5269 | (class objfile_psymtabs): Move from psymtab.h. Update. | |
5270 | * objfiles.c (objfile::objfile): Initialize partial_symtabs, not | |
5271 | psymbol_cache. | |
5272 | (objfile::~objfile): Don't destroy psymbol_cache. | |
5273 | * mdebugread.c (parse_partial_symbols): Update. | |
5274 | * dwarf2read.c (create_addrmap_from_index) | |
5275 | (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab) | |
5276 | (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard) | |
5277 | (add_partial_subprogram, dwarf2_ranges_read): Update. | |
5278 | * dwarf-index-write.c (write_address_map) | |
5279 | (write_one_signatured_type, recursively_write_psymbols) | |
5280 | (class debug_names, class debug_names, write_psymtabs_to_index): | |
5281 | Update. | |
5282 | ||
1d94a5a3 TT |
5283 | 2019-01-10 Tom Tromey <tom@tromey.com> |
5284 | ||
5285 | * symtab.h (SYMBOL_SET_NAMES): Update. | |
5286 | (symbol_set_names): Update. | |
5287 | (MSYMBOL_SET_NAMES): Update. | |
5288 | * symtab.c (symbol_set_names): Change argument to be an | |
5289 | objfile_per_bfd_storage. | |
5290 | * psymtab.c (add_psymbol_to_bcache): Update. | |
5291 | * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument. | |
5292 | ||
0f14768a TT |
5293 | 2019-01-10 Tom Tromey <tom@tromey.com> |
5294 | ||
5295 | * symtab.c (create_demangled_names_hash): Change argument to be an | |
5296 | objfile_per_bfd_storage. | |
5297 | (symbol_set_names): Update. | |
5298 | ||
6eee24ce TT |
5299 | 2019-01-10 Tom Tromey <tom@tromey.com> |
5300 | ||
5301 | * xcoffread.c (xcoff_initial_scan): Unconditionally call | |
5302 | init_psymbol_list. | |
5303 | * psymtab.c (init_psymbol_list): Do nothing if already called. | |
5304 | * psympriv.h (init_psymbol_list): Add comment. | |
5305 | * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call | |
5306 | init_psymbol_list. | |
5307 | * dbxread.c (dbx_symfile_read): Unconditionally call | |
5308 | init_psymbol_list. | |
5309 | ||
75aedd27 TT |
5310 | 2019-01-10 Tom Tromey <tom@tromey.com> |
5311 | ||
5312 | * xcoffread.c (scan_xcoff_symtab): Update. | |
5313 | * psymtab.c (add_psymbol_to_list): Replace "list" parameter with | |
5314 | "where". | |
5315 | * mdebugread.c (parse_partial_symbols) | |
5316 | (handle_psymbol_enumerators): Update. | |
5317 | * dwarf2read.c (add_partial_symbol, load_partial_dies): Update. | |
5318 | * dbxread.c (read_dbx_symtab): Update. | |
5319 | * psympriv.h (psymbol_placement): New enum. | |
5320 | (add_psymbol_to_list): Update. | |
5321 | ||
939652a5 TT |
5322 | 2019-01-10 Tom Tromey <tom@tromey.com> |
5323 | ||
5324 | * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and | |
5325 | static_psymbols parameters. | |
5326 | (scan_xcoff_symtab): Update. | |
5327 | * psymtab.c (start_psymtab_common): Remove global_psymbols and | |
5328 | static_psymbols parameters. | |
5329 | * psympriv.h (start_psymtab_common): Update. | |
5330 | * mdebugread.c (parse_partial_symbols): Update. | |
5331 | * dwarf2read.c (create_partial_symtab): Update. | |
5332 | * dbxread.c (read_dbx_symtab): Update. | |
5333 | (start_psymtab): Remove global_psymbols and static_psymbols | |
5334 | parameters. | |
5335 | ||
baa62830 TT |
5336 | 2019-01-10 Tom Tromey <tom@tromey.com> |
5337 | ||
5338 | * xcoffread.c (xcoff_end_psymtab): Remove some initializations. | |
5339 | * psymtab.c (allocate_psymtab): Add comment. | |
5340 | * psympriv.h (allocate_psymtab): Add comment. | |
5341 | * dwarf2read.c (dwarf2_create_include_psymtab): Remove some | |
5342 | initializations. | |
5343 | * dbxread.c (dbx_end_psymtab): Remove some initializations. | |
5344 | ||
0e8f53ba TT |
5345 | 2019-01-10 Tom Tromey <tom@tromey.com> |
5346 | ||
5347 | * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs): | |
5348 | Don't declare. | |
5349 | * mipsread.c: Include mdebugread.h. | |
5350 | * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs): | |
5351 | Declare. | |
5352 | * elfread.c: Include mdebugread.h. | |
5353 | ||
b22a7c6a TT |
5354 | 2019-01-09 Tom Tromey <tom@tromey.com> |
5355 | ||
5356 | * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs. | |
5357 | * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs. | |
5358 | * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove. | |
5359 | (psym_map_symtabs_matching_filename, find_pc_sect_psymtab) | |
5360 | (psym_lookup_symbol, psym_find_last_source_symtab) | |
5361 | (psym_forget_cached_source_info, psym_print_stats) | |
5362 | (psym_expand_symtabs_for_function, psym_expand_all_symtabs) | |
5363 | (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames) | |
5364 | (psym_map_matching_symbols, psym_expand_symtabs_matching) | |
5365 | (psym_find_compunit_symtab_by_address) | |
5366 | (maintenance_print_psymbols, maintenance_info_psymtabs) | |
5367 | (maintenance_check_psymtabs): Use ranged for. | |
5368 | * psymtab.h (class objfile_psymtabs): New. | |
5369 | (require_partial_symbols): Return objfile_psymtabs. | |
5370 | * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove. | |
5371 | ||
3b9d3ac2 TT |
5372 | 2019-01-09 Tom Tromey <tom@tromey.com> |
5373 | ||
5374 | * symfile.c (overlay_invalidate_all, find_pc_overlay) | |
5375 | (find_pc_mapped_section, list_overlays_command) | |
5376 | (map_overlay_command, unmap_overlay_command) | |
5377 | (simple_overlay_update): Use all_objfiles. | |
5378 | * spu-tdep.c (spu_overlay_update): Use all_objfiles. | |
5379 | * printcmd.c (info_symbol_command): Use all_objfiles. | |
5380 | * objfiles.h (ALL_OBJSECTIONS): Remove. | |
5381 | * maint.c (maintenance_translate_address): Use all_objfiles. | |
5382 | * gcore.c (gcore_create_callback): Use all_objfiles. | |
5383 | (objfile_find_memory_regions): Likewise. | |
5384 | ||
8b31193a TT |
5385 | 2019-01-09 Tom Tromey <tom@tromey.com> |
5386 | ||
5387 | * symtab.c (find_line_symtab, info_sources_command) | |
5388 | (make_source_files_completion_list): Use objfile_compunits. | |
5389 | * source.c (select_source_symtab): Use objfile_compunits. | |
5390 | * objfiles.h (struct objfile): Update comment. | |
5391 | (ALL_OBJFILES): Remove. | |
5392 | (ALL_FILETABS): Remove. | |
5393 | * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use | |
5394 | objfile_compunits. | |
5395 | ||
d5da8b3c TT |
5396 | 2019-01-09 Tom Tromey <tom@tromey.com> |
5397 | ||
5398 | * symmisc.c (print_objfile_statistics, dump_objfile) | |
5399 | (maintenance_print_symbols): Use compunit_filetabs. | |
5400 | * source.c (forget_cached_source_info_for_objfile): Use | |
5401 | compunit_filetabs. | |
5402 | * objfiles.h (ALL_OBJFILE_FILETABS): Remove. | |
5403 | (ALL_FILETABS): Use compunit_filetabs. | |
5404 | * objfiles.c (objfile_relocate1): Use compunit_filetabs. | |
5405 | * coffread.c (coff_symtab_read): Use compunit_filetabs. | |
5406 | ||
5accd1a0 TT |
5407 | 2019-01-09 Tom Tromey <tom@tromey.com> |
5408 | ||
5409 | * symtab.h (ALL_COMPUNIT_FILETABS): Remove. | |
5410 | (compunit_filetabs): New. | |
5411 | * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use | |
5412 | compunit_filetabs. | |
5413 | (info_sources_command, make_source_files_completion_list): Remove | |
5414 | declaration. | |
5415 | * symmisc.c (print_objfile_statistics, dump_objfile) | |
5416 | (maintenance_print_symbols): Remove declaration. | |
5417 | (maintenance_info_symtabs): Use compunit_filetabs. | |
5418 | (maintenance_info_line_tables): Likewise. | |
5419 | * source.c (select_source_symtab): Change local variable name. | |
5420 | (forget_cached_source_info_for_objfile): Remove declaration. | |
5421 | * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs. | |
5422 | * objfiles.c (objfile_relocate1): Remove declaration. | |
5423 | * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove | |
5424 | declaration. | |
5425 | * maint.c (count_symtabs_and_blocks): Use compunit_filetabs. | |
5426 | * coffread.c (coff_symtab_read): Remove declaration. | |
5427 | * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use | |
5428 | compunit_filetabs. | |
5429 | ||
d8aeb77f TT |
5430 | 2019-01-09 Tom Tromey <tom@tromey.com> |
5431 | ||
5432 | * symtab.c (lookup_objfile_from_block) | |
5433 | (find_pc_sect_compunit_symtab, search_symbols) | |
5434 | (default_collect_symbol_completion_matches_break_on): Use | |
5435 | objfile_compunits. | |
5436 | * objfiles.h (ALL_COMPUNITS): Remove. | |
5437 | * maint.c (count_symtabs_and_blocks): Use objfile_compunits. | |
5438 | * cp-support.c (add_symbol_overload_list_qualified): Use | |
5439 | objfile_compunits. | |
5440 | * ada-lang.c (ada_collect_symbol_completion_matches) | |
5441 | (ada_add_global_exceptions): Use objfile_compunits. | |
5442 | ||
592553c4 TT |
5443 | 2019-01-09 Tom Tromey <tom@tromey.com> |
5444 | ||
5445 | * source.c (select_source_symtab) | |
5446 | (forget_cached_source_info_for_objfile): Remove declaration. | |
5447 | * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove | |
5448 | declaration. | |
5449 | * maint.c (count_symtabs_and_blocks): Remove declaration. | |
5450 | * cp-support.c (add_symbol_overload_list_qualified): Remove | |
5451 | declaration. | |
5452 | * coffread.c (coff_symtab_read): Remove declaration. | |
5453 | * symtab.c (lookup_symbol_in_objfile_symtabs) | |
5454 | (basic_lookup_transparent_type_1): Use objfile_compunits. | |
5455 | (lookup_objfile_from_block, find_pc_sect_compunit_symtab) | |
5456 | (info_sources_command, search_symbols) | |
5457 | (default_collect_symbol_completion_matches_break_on) | |
5458 | (make_source_files_completion_list): Remove declaration. | |
5459 | * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits. | |
5460 | (ada_collect_symbol_completion_matches) | |
5461 | (ada_add_global_exceptions): Remove declaration. | |
5462 | * linespec.c (iterate_over_all_matching_symtabs): Use | |
5463 | objfile_compunits. | |
5464 | * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove. | |
5465 | (class objfile_compunits): New. | |
5466 | (ALL_COMPUNITS): Use objfile_compunits. | |
5467 | * symmisc.c (print_objfile_statistics, maintenance_info_symtabs) | |
5468 | (maintenance_check_symtabs, maintenance_info_line_tables): Use | |
5469 | objfile_compunits. | |
5470 | * objfiles.c (objfile_relocate1): Use objfile_compunits. | |
5471 | ||
5325b9bf TT |
5472 | 2019-01-09 Tom Tromey <tom@tromey.com> |
5473 | ||
5474 | * symtab.c (search_symbols) | |
5475 | (default_collect_symbol_completion_matches_break_on): Use | |
5476 | objfile_msymbols. | |
5477 | * ada-lang.c (ada_lookup_simple_minsym) | |
5478 | (ada_collect_symbol_completion_matches): Use objfile_msymbols. | |
5479 | * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols. | |
5480 | * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use | |
5481 | objfile_msymbols. | |
5482 | * coffread.c (coff_symfile_read): Use objfile_msymbols. | |
5483 | * symmisc.c (dump_msymbols): Use objfile_msymbols. | |
5484 | * objc-lang.c (find_methods): Use objfile_msymbols. | |
5485 | (info_selectors_command, info_classes_command): Likewise. | |
5486 | * stabsread.c (scan_file_globals): Use objfile_msymbols. | |
5487 | * objfiles.h (class objfile_msymbols): New. | |
5488 | (ALL_OBJFILE_MSYMBOLS): Remove. | |
5489 | (ALL_MSYMBOLS): Remove. | |
5490 | ||
cac85af2 TT |
5491 | 2019-01-09 Tom Tromey <tom@tromey.com> |
5492 | ||
5493 | * common/next-iterator.h (next_adapter): Add Iterator template | |
5494 | parameter. | |
5495 | * objfiles.h (ALL_OBJFILES_SAFE): Remove. | |
5496 | (class all_objfiles_safe): New. | |
5497 | * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe. | |
5498 | * objfiles.c (put_objfile_before): Update comment. | |
5499 | (add_separate_debug_objfile): Likewise. | |
5500 | (free_all_objfiles): Use all_objfiles_safe. | |
5501 | (objfile_purge_solibs): Likewise. | |
5502 | ||
aed57c53 TT |
5503 | 2019-01-09 Tom Tromey <tom@tromey.com> |
5504 | ||
5505 | * symtab.c (iterate_over_symtabs, matching_obj_sections) | |
5506 | (expand_symtab_containing_pc, lookup_static_symbol) | |
5507 | (basic_lookup_transparent_type, find_pc_sect_compunit_symtab) | |
5508 | (find_symbol_at_address, find_line_symtab, find_main_name): Use | |
5509 | all_objfiles. | |
5510 | * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles. | |
5511 | * breakpoint.c (create_overlay_event_breakpoint) | |
5512 | (create_longjmp_master_breakpoint) | |
5513 | (create_std_terminate_master_breakpoint) | |
5514 | (create_exception_master_breakpoint): Use all_objfiles. | |
5515 | * linux-thread-db.c (try_thread_db_load_from_pdir) | |
5516 | (has_libpthread): Use all_objfiles. | |
5517 | * ada-lang.c (add_nonlocal_symbols): Use all_objfiles. | |
5518 | * linespec.c (iterate_over_all_matching_symtabs) | |
5519 | (search_minsyms_for_name): Use all_objfiles. | |
5520 | * maint.c (maintenance_info_sections): Use all_objfiles. | |
5521 | * main.c (captured_main_1): Use all_objfiles. | |
5522 | * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles. | |
5523 | * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles. | |
5524 | * guile/scm-pretty-print.c | |
5525 | (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles. | |
5526 | * solib-spu.c (append_ocl_sos): Use all_objfiles. | |
5527 | * symmisc.c (maintenance_print_symbols): Use all_objfiles. | |
5528 | (maintenance_print_msymbols): Use all_objfiles. | |
5529 | * source.c (select_source_symtab): Use all_objfiles. | |
5530 | * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles. | |
5531 | * symfile.c (remove_symbol_file_command) | |
5532 | (expand_symtabs_matching, map_symbol_filenames): Use | |
5533 | all_objfiles. | |
5534 | * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use | |
5535 | all_objfiles. | |
5536 | * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles. | |
5537 | * objc-lang.c (find_methods): Use all_objfiles. | |
5538 | * objfiles.c (have_partial_symbols, have_full_symbols) | |
5539 | (have_minimal_symbols, qsort_cmp) | |
5540 | (default_iterate_over_objfiles_in_search_order): Use | |
5541 | all_objfiles. | |
5542 | * hppa-tdep.c (find_unwind_entry): Use all_objfiles. | |
5543 | * psymtab.c (maintenance_print_psymbols): Use all_objfiles. | |
5544 | (maintenance_check_psymtabs): Use all_objfiles. | |
5545 | (ALL_PSYMTABS): Remove. | |
5546 | * compile/compile-object-run.c (do_module_cleanup): Use | |
5547 | all_objfiles. | |
5548 | * blockframe.c (find_pc_partial_function): Use all_objfiles. | |
5549 | * cp-support.c (add_symbol_overload_list_qualified): Use | |
5550 | all_objfiles. | |
5551 | * windows-tdep.c (windows_iterate_over_objfiles_in_search_order): | |
5552 | Use all_objfiles. | |
5553 | * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles. | |
5554 | * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use | |
5555 | all_objfiles. | |
5556 | * python/py-objfile.c (objfpy_lookup_objfile_by_name) | |
5557 | (objfpy_lookup_objfile_by_build_id): Use all_objfiles. | |
5558 | * python/py-prettyprint.c (find_pretty_printer_from_objfiles): | |
5559 | Uses all_objfiles. | |
5560 | * solib.c (solib_read_symbols): Use all_objfiles | |
5561 | ||
99d89cde TT |
5562 | 2019-01-09 Tom Tromey <tom@tromey.com> |
5563 | ||
5564 | * probe.c (parse_probes_in_pspace): Use all_objfiles. | |
5565 | * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use | |
5566 | all_objfiles. | |
5567 | * objfiles.h (ALL_PSPACE_OBJFILES): Remove. | |
5568 | * symmisc.c (print_symbol_bcache_statistics) | |
5569 | (print_objfile_statistics, maintenance_print_objfiles) | |
5570 | (maintenance_info_symtabs, maintenance_check_symtabs) | |
5571 | (maintenance_expand_symtabs, maintenance_info_line_tables): Use | |
5572 | all_objfiles. | |
5573 | * source.c (forget_cached_source_info): Use all_objfiles. | |
5574 | * symfile-debug.c (set_debug_symfile): Use all_objfiles. | |
5575 | * elfread.c (elf_gnu_ifunc_resolve_by_cache) | |
5576 | (elf_gnu_ifunc_resolve_by_got): Use all_objfiles. | |
5577 | * objfiles.c (update_section_map): Use all_objfiles. | |
5578 | (shared_objfile_contains_address_p): Likewise. | |
5579 | * psymtab.c (maintenance_info_psymtabs): Use all_objfiles. | |
5580 | * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles. | |
5581 | ||
21708325 TT |
5582 | 2019-01-09 Tom Tromey <tom@tromey.com> |
5583 | ||
5584 | * common/next-iterator.h: New file. | |
5585 | * objfiles.h (class all_objfiles): New. | |
5586 | (struct objfile_iterator): New. | |
5587 | ||
669e09f6 PW |
5588 | 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
5589 | ||
5590 | * NEWS: Move the description of the changed "frame", "select-frame", | |
5591 | and "info frame" commands to the Changed commands section. | |
5592 | ||
041be526 SM |
5593 | 2019-01-09 Simon Marchi <simon.marchi@ericsson.com> |
5594 | ||
5595 | * gdbtypes.c (check_stub_method_group): Remove handling of old | |
5596 | mangling schemes. | |
5597 | * linespec.c (find_methods): Likewise. | |
5598 | * stabsread.c (read_member_functions): Likewise. | |
5599 | * valops.c (search_struct_method): Likewise. | |
5600 | (value_struct_elt_for_reference): Likewise. | |
5601 | * NEWS: Mention this change. | |
5602 | ||
0e2a2133 AB |
5603 | 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com> |
5604 | ||
5605 | * cli/cli-cmds.c (list_command): Pass a source_lines_range to | |
5606 | print_source_lines. | |
5607 | * source.c (print_source_lines_base): Update line number check. | |
5608 | (print_source_lines): New function. | |
5609 | (source_lines_range::source_lines_range): New function. | |
5610 | * source.h (class source_lines_range): New class. | |
5611 | (print_source_lines): New declaration. | |
5612 | ||
1055a3b4 PW |
5613 | 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
5614 | ||
5615 | * linespec.c (linespec_state_destructor): Free self->canonical_names. | |
5616 | ||
cfeadda5 TT |
5617 | 2019-01-08 Tom Tromey <tom@tromey.com> |
5618 | Simon Marchi <simon.marchi@ericsson.com> | |
5619 | ||
5620 | PR gdb/24060 | |
5621 | * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE. | |
5622 | * ada-lex.l (DOLLAR_VARIABLE): Likewise. | |
5623 | * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE. | |
5624 | * f-exp.y (DOLLAR_VARIABLE): Likewise. | |
5625 | * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR. | |
5626 | * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE. | |
5627 | ||
583068ca AB |
5628 | 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com> |
5629 | ||
5630 | * source.c (select_source_symtab): Move header comment to | |
5631 | declaration in source.h. | |
5632 | (forget_cached_source_info_for_objfile): Likewise. | |
5633 | (forget_cached_source_info): Likewise. | |
5634 | (identify_source_line): Likewise. | |
5635 | * source.h (identify_source_line): Move declaration from symtab.h | |
5636 | and add comment from source.c | |
5637 | (print_source_lines): Likewise. | |
5638 | (forget_cached_source_info_for_objfile): Likewise. | |
5639 | (forget_cached_source_info): Likewise. | |
5640 | (select_source_symtab): Likewise. | |
5641 | (enum print_source_lines_flag): Move definition from symtab.h. | |
5642 | * symtab.h (identify_source_line): Move declaration to source.h. | |
5643 | (print_source_lines): Likewise. | |
5644 | (forget_cached_source_info_for_objfile): Likewise. | |
5645 | (forget_cached_source_info): Likewise. | |
5646 | (select_source_symtab): Likewise. | |
5647 | (enum print_source_lines_flag): Move definition to source.h. | |
5648 | * tui/tui-hooks.c: Add 'source.h' include. | |
5649 | ||
ec98a4ad AB |
5650 | 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com> |
5651 | ||
5652 | * source.c (print_source_lines_base): Handle requests to print | |
5653 | reverse line number sequences, and guard against empty lines | |
5654 | string. | |
5655 | ||
62ea19c1 AB |
5656 | 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com> |
5657 | ||
5658 | * source.c (print_source_lines_base): Fix skip of '\r' if next | |
5659 | character is '\n'. | |
5660 | ||
9d30e1fd TT |
5661 | 2019-01-06 Tom Tromey <tom@tromey.com> |
5662 | ||
5663 | * c-exp.y (struct c_parse_state) <macro_original_text, | |
5664 | expansion_obstack>: New member. | |
5665 | (macro_original_text, expansion_obstack): Remove globals. | |
5666 | (scan_macro_expansion, scanning_macro_expansion) | |
5667 | (finished_macro_expansion): Update. | |
5668 | (scan_macro_cleanup): Remove. | |
5669 | (yylex, c_parse): Update. | |
5670 | ||
c65bac38 TT |
5671 | 2019-01-06 Tom Tromey <tom@tromey.com> |
5672 | ||
5673 | * c-exp.y (struct c_parse_state) <strings>: New member. | |
5674 | (operator_stoken): Update. | |
5675 | ||
02e12e38 TT |
5676 | 2019-01-06 Tom Tromey <tom@tromey.com> |
5677 | ||
5678 | * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC. | |
5679 | (union type_stack_elt) <typelist_val>: Now a pointer to | |
5680 | std::vector. | |
5681 | (type_stack_cleanup): Don't declare. | |
5682 | (push_typelist): Update. | |
5683 | * parse.c (pop_typelist): Return a std::vector. | |
5684 | (push_typelist): Take a std::vector. | |
5685 | (follow_types): Update. Do not free args. | |
5686 | (type_stack_cleanup): Remove. | |
5687 | * c-exp.y (struct c_parse_state): New. | |
5688 | (cpstate): New global. | |
5689 | (type_aggregate_p, exp, ptr_operator, parameter_typelist) | |
5690 | (nonempty_typelist): Update. | |
5691 | (func_mod): Create a new vector. | |
5692 | (c_parse): Create a c_parse_state. | |
5693 | (check_parameter_typelist): Do not delete params. | |
5694 | (function_method): Update. Do not delete type_list. | |
5695 | ||
f097f5ad TT |
5696 | 2019-01-06 Tom Tromey <tom@tromey.com> |
5697 | ||
5698 | PR gdb/28155: | |
5699 | * python/py-finishbreakpoint.c (bpfinishpy_init): Use | |
5700 | check_typedef. | |
5701 | * infcmd.c (finish_command_fsm_should_stop): Use check_typedef. | |
5702 | (print_return_value): Likewise. | |
5703 | ||
d2adf9f1 TT |
5704 | 2019-01-05 Tom Tromey <tom@tromey.com> |
5705 | ||
5706 | * contrib/cleanup_check.py: Remove. | |
5707 | * contrib/gcc-with-excheck: Remove. | |
5708 | * contrib/exsummary.py: Remove. | |
5709 | * contrib/excheck.py: Remove. | |
5710 | ||
2eab46b1 JB |
5711 | 2019-01-05 Joel Brobecker <brobecker@adacore.com> |
5712 | ||
5713 | * thread.c (delete_thread_1): Add gdb_assert that THR is not | |
5714 | NULL. Initialize tpprev to NULL instead of assigning it | |
5715 | to NULL on the next statement. | |
5716 | * windows-nat.c (windows_delete_thread): Remove check for | |
5717 | main_thread_id before printing thread exit notifications. | |
5718 | (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>: | |
5719 | Remove thread ID check against main_thread_id. | |
5720 | <CREATE_PROCESS_DEBUG_EVENT>: Remove call to | |
5721 | windows_delete_thread. | |
5722 | <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread. | |
5723 | ||
48c5e7e2 TT |
5724 | 2019-01-04 Tom Tromey <tom@tromey.com> |
5725 | ||
5726 | * compile/compile.c (_initialize_compile): Use upper case for | |
5727 | metasyntactic variables. | |
5728 | * symmisc.c (_initialize_symmisc): Use upper case for | |
5729 | metasyntactic variables. | |
5730 | * psymtab.c (_initialize_psymtab): Use upper case for | |
5731 | metasyntactic variables. | |
5732 | * demangle.c (demangle_command): Use upper case for metasyntactic | |
5733 | variables. | |
5734 | (_initialize_demangler): Likewise. | |
5735 | * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic | |
5736 | variables. | |
5737 | ||
986041cd TT |
5738 | 2019-01-03 Tom Tromey <tom@tromey.com> |
5739 | ||
5740 | * tui/tui-source.c (tui_set_source_content): Use xstrdup. | |
5741 | ||
7c711119 TT |
5742 | 2019-01-03 Tom Tromey <tom@tromey.com> |
5743 | ||
5744 | * python/py-symtab.c (salpy_str): Update. | |
5745 | (struct salpy_sal_object) <symtab>: Now a PyObject. | |
5746 | (salpy_dealloc): Update. | |
5747 | (del_objfile_sal): Use gdbpy_ref. | |
5748 | ||
1b20edf0 TT |
5749 | 2019-01-03 Tom Tromey <tom@tromey.com> |
5750 | ||
5751 | * python/py-type.c (convert_field): Use new_reference. Return | |
5752 | gdbpy_ref. | |
5753 | (make_fielditem): Return gdbpy_ref. | |
5754 | (typy_fields): Update. | |
5755 | (typy_getitem): Update. | |
5756 | (field_name): Return gdbpy_ref. Use new_reference. | |
5757 | (typy_iterator_iternext): Update. | |
5758 | ||
ea41325b TT |
5759 | 2019-01-03 Tom Tromey <tom@tromey.com> |
5760 | ||
5761 | * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE. | |
5762 | ||
2a3c71d6 TT |
5763 | 2019-01-03 Tom Tromey <tom@tromey.com> |
5764 | ||
5765 | * python/py-value.c (valpy_dealloc): Use Py_XDECREF. | |
5766 | * python/py-type.c (typy_fields_items): Use gdbpy_ref. | |
5767 | * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref. | |
5768 | (pspy_set_frame_filters, pspy_set_frame_unwinders) | |
5769 | (pspy_set_type_printers): Likewise. | |
5770 | * python/py-function.c (fnpy_init): Use gdbpy_ref. | |
5771 | * python/py-cmd.c (cmdpy_init): Use gdbpy_ref. | |
5772 | * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref. | |
5773 | (objfpy_set_frame_filters, objfpy_set_frame_unwinders) | |
5774 | (objfpy_set_type_printers): Likewise. | |
5775 | ||
5c329e6a TT |
5776 | 2019-01-03 Tom Tromey <tom@tromey.com> |
5777 | ||
5778 | * python/python.c (gdbpy_enter, ~gdbpy_enter): Update. | |
5779 | (gdbpy_print_stack): Use gdbpy_err_fetch. | |
5780 | * python/python-internal.h (class gdbpy_err_fetch): New class. | |
5781 | (class gdbpy_enter) <m_error_type, m_error_value, | |
5782 | m_error_traceback>: Remove. | |
5783 | <m_error>: New member. | |
5784 | (gdbpy_exception_to_string): Don't declare. | |
5785 | * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch. | |
5786 | * python/py-value.c (convert_value_from_python): Use | |
5787 | gdbpy_err_fetch. | |
5788 | * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from | |
5789 | gdbpy_exception_to_string. | |
5790 | (gdbpy_handle_exception): Use gdbpy_err_fetch. | |
5791 | * python/py-prettyprint.c (print_stack_unless_memory_error): Use | |
5792 | gdbpy_err_fetch. | |
5793 | ||
169bb27b AB |
5794 | 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com> |
5795 | ||
5796 | * linux-nat.c (delete_lwp_cleanup): Delete. | |
5797 | (struct lwp_deleter): New struct. | |
5798 | (lwp_info_up): New typedef. | |
5799 | (linux_nat_target::follow_fork): Delete cleanup, and make use of | |
5800 | lwp_info_up. | |
5801 | ||
a07c8880 AB |
5802 | 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com> |
5803 | ||
5804 | * linux-fork.c (class scoped_switch_fork_info): New class. | |
5805 | (inferior_call_waitpid): Update to use scoped_switch_fork_info. | |
5806 | ||
26089c49 AB |
5807 | 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com> |
5808 | ||
5809 | * valops.c (find_overload_match): Remove use of null_cleanup, and | |
5810 | calls to do_cleanups. | |
5811 | ||
06d3e5b0 AB |
5812 | 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com> |
5813 | ||
5814 | * compile/compile-cplus-types.c | |
5815 | (compile_cplus_instance::decl_name): Handle changes to | |
5816 | cp_func_name. | |
5817 | * cp-support.c (cp_func_name): Update header comment, update | |
5818 | return type. | |
5819 | * cp-support.h (cp_func_name): Update return type in declaration. | |
5820 | * valops.c (find_overload_match): Move temp_func local to top | |
5821 | level of function and change its type. Use temp_func to hold and | |
5822 | delete temporary string obtained from cp_func_name. | |
5823 | ||
66644cd3 AB |
5824 | 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com> |
5825 | ||
5826 | * remote.c (remote_target::remote_check_symbols): Convert `msg` to | |
5827 | gdb::char_vector, remove cleanup, and update uses of `msg`. | |
5828 | ||
592d8c0a JW |
5829 | 2019-01-03 Jim Wilson <jimw@sifive.com> |
5830 | ||
5831 | * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8. | |
5832 | ||
c55d06ec TT |
5833 | 2019-01-02 Tom Tromey <tom@tromey.com> |
5834 | ||
5835 | * xml-tdesc.c (xml_cache): Hold a target_desc_up. | |
5836 | (tdesc_parse_xml): Remove cleanups. | |
5837 | * target-descriptions.h (make_cleanup_free_target_description): | |
5838 | Don't declare. | |
5839 | (target_desc_deleter): New struct. | |
5840 | (target_desc_up): New typedef. | |
5841 | * target-descriptions.c (target_desc_deleter::operator()): Rename | |
5842 | from free_target_description. | |
5843 | (make_cleanup_free_target_description): Remove. | |
5844 | ||
3a6ae42d TT |
5845 | 2019-01-02 Tom Tromey <tom@tromey.com> |
5846 | ||
5847 | * linespec.c (struct linespec_parser): Rename from ls_parser. Add | |
5848 | constructor, destructor. | |
5849 | (linespec_parser): Remove typedef. | |
5850 | (~linespec_parser): Rename from linespec_parser_delete. | |
5851 | (linespec_lex_to_end, linespec_complete_label) | |
5852 | (linespec_complete): Update. | |
5853 | (decode_line_full): Remove cleanups. | |
5854 | (decode_line_1): Update. | |
5855 | ||
61fd3e73 TT |
5856 | 2019-01-02 Tom Tromey <tom@tromey.com> |
5857 | ||
5858 | * python/python-internal.h (inferior_to_inferior_object): Change | |
5859 | return type. | |
5860 | * python/py-exitedevent.c (create_exited_event_object): Update. | |
5861 | * python/py-inferior.c (inferior_to_inferior_object): Return | |
5862 | gdbpy_ref. | |
5863 | (python_new_inferior, python_inferior_deleted) | |
5864 | (thread_to_thread_object, delete_thread_object) | |
5865 | (build_inferior_list, gdbpy_selected_inferior): Update. | |
5866 | * python/py-infthread.c (create_thread_object): Update. Also fail | |
5867 | if inferior_to_inferior_object fails. | |
5868 | ||
d20172fc SM |
5869 | 2019-01-02 Simon Marchi <simon.marchi@ericsson.com> |
5870 | ||
5871 | * inferior.h (class inferior) <displaced_step_state>: New field. | |
5872 | * infrun.h (struct displaced_step_state): Move here from | |
5873 | infrun.c. Initialize fields, add constructor. | |
5874 | <inf>: Remove field. | |
5875 | <reset>: New method. | |
5876 | * infrun.c (struct displaced_step_inferior_state): Move to | |
5877 | infrun.h. | |
5878 | (displaced_step_inferior_states): Remove. | |
5879 | (get_displaced_stepping_state): Adust. | |
5880 | (displaced_step_in_progress_any_inferior): Adjust. | |
5881 | (displaced_step_in_progress_thread): Adjust. | |
5882 | (displaced_step_in_progress): Adjust. | |
5883 | (add_displaced_stepping_state): Remove. | |
5884 | (get_displaced_step_closure_by_addr): Adjust. | |
5885 | (remove_displaced_stepping_state): Remove. | |
5886 | (infrun_inferior_exit): Call displaced_step_state.reset. | |
5887 | (use_displaced_stepping): Don't check for NULL. | |
5888 | (displaced_step_prepare_throw): Call | |
5889 | get_displaced_stepping_state. | |
5890 | (displaced_step_fixup): Don't check for NULL. | |
5891 | (prepare_for_detach): Don't check for NULL. | |
5892 | ||
e3319240 PW |
5893 | 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
5894 | ||
5895 | * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm | |
5896 | in case of call that did not complete. | |
5897 | ||
5d36dfb9 AU |
5898 | 2019-01-02 Andrey Utkin <autkin@undo.io> |
5899 | ||
5900 | * symfile.c (find_separate_debug_file): Fix search of debug files for | |
5901 | remote debuggee. | |
5902 | ||
8833fbf0 TT |
5903 | 2019-01-02 Tom Tromey <tom@tromey.com> |
5904 | ||
5905 | * python/py-inferior.c (gdbpy_initialize_inferior): Fix | |
5906 | indentation. | |
5907 | * python/py-frame.c (frapy_older): Remove cast. | |
5908 | (frapy_newer): Likewise. | |
5909 | * python/py-breakpoint.c (local_setattro): Remove cast. | |
5910 | * python/py-arch.c (archpy_name): Remove local variable. | |
5911 | * python/py-type.c (gdbpy_lookup_type): Remove cast. | |
5912 | ||
4ada3dfd JB |
5913 | 2019-01-02 Joel Brobecker <brobecker@adacore.com> |
5914 | ||
5915 | * unittests/basic_string_view/element_access/char/empty.cc: | |
5916 | Fix year range in copyright header. | |
5917 | ||
113b7b81 AB |
5918 | 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com> |
5919 | ||
5920 | * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>: | |
5921 | Delete. | |
5922 | <operator==>: Update with for removed field. | |
5923 | <hash>: Likewise. | |
5924 | * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to... | |
5925 | <isa_features>: ...this. | |
5926 | <abi_features>: New field. | |
5927 | (riscv_isa_flen): Update comment. | |
5928 | (riscv_abi_xlen): New declaration. | |
5929 | (riscv_abi_flen): New declaration. | |
5930 | * riscv-tdep.c (riscv_isa_xlen): Update to get answer from | |
5931 | isa_features. | |
5932 | (riscv_abi_xlen): New function. | |
5933 | (riscv_isa_flen): Update to get answer from isa_features. | |
5934 | (riscv_abi_flen): New function. | |
5935 | (riscv_has_fp_abi): Update to get answer from abi_features. | |
5936 | (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa | |
5937 | xlen and flen. | |
5938 | (riscv_call_info) <xlen, flen>: Update comment. | |
5939 | (riscv_call_arg_struct): Remove invalid assertions | |
5940 | (riscv_features_from_gdbarch_info): Update now hw_float_abi field | |
5941 | is removed. | |
5942 | (riscv_gdbarch_init): Gather isa features and abi features | |
5943 | separately, ensure both match on the gdbarch when reusing an old | |
5944 | gdbarch. Relax an error check to allow 32-bit abi float to run on | |
5945 | a target with 64-bit float hardware. | |
5946 | ||
b18ca514 PW |
5947 | 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
5948 | ||
5949 | * source.c (search_command_helper): Stop reverse search | |
5950 | when line 1 has been searched. | |
5951 | ||
ec70d8db PW |
5952 | 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
5953 | ||
5954 | * record-full.c (record_full_base_target::close): Rewrite | |
5955 | record_full_core_buf_list free logic. | |
5956 | ||
5b38f9c1 PW |
5957 | 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
5958 | ||
5959 | * break-catch-syscall.c (print_one_catch_syscall): xfree | |
5960 | the last text. | |
5961 | ||
66d91b39 JB |
5962 | 2019-01-01 Joel Brobecker <brobecker@adacore.com> |
5963 | ||
5964 | * top.c (print_gdb_version): Update Copyright year in version | |
5965 | message. | |
5966 | ||
42a4f53d JB |
5967 | 2019-01-01 Joel Brobecker <brobecker@adacore.com> |
5968 | ||
5969 | Update copyright year range in all GDB files. | |
5970 | ||
7e955d83 | 5971 | 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com> |
2139e8dc | 5972 | |
5bbd631d | 5973 | * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018. |
2139e8dc | 5974 | |
5bbd631d | 5975 | For older changes see ChangeLog-2018. |
c906108c SS |
5976 | \f |
5977 | Local Variables: | |
5978 | mode: change-log | |
5979 | left-margin: 8 | |
5980 | fill-column: 74 | |
5981 | version-control: never | |
57da7796 | 5982 | coding: utf-8 |
c906108c | 5983 | End: |
5bbd631d | 5984 |