Commit | Line | Data |
---|---|---|
41e3300a TT |
1 | 2019-03-05 Tom Tromey <tromey@adacore.com> |
2 | ||
3 | * parser-defs.h (struct parser_state) <release>: Add | |
4 | ATTRIBUTE_UNUSED_RESULT. | |
5 | ||
18cb7c9f TT |
6 | 2019-03-05 Tom Tromey <tromey@adacore.com> |
7 | ||
8 | * utils.h (class gdb_argv) <release>: Add | |
9 | ATTRIBUTE_UNUSED_RESULT. | |
10 | * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define. | |
11 | ||
41fa577f EZ |
12 | 2019-03-02 Eli Zaretskii <eliz@gnu.org> |
13 | ||
a6a4b2c6 EZ |
14 | * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from |
15 | for-loop range, to avoid compiler warnings. | |
16 | ||
17 | * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to | |
18 | avoid compiler warnings about unused variables. | |
19 | ||
742a7df5 EZ |
20 | * NEWS: Mention end of support for native debugging on MS-Windows |
21 | before XP. | |
22 | ||
41fa577f EZ |
23 | PR gdb/24292 |
24 | * common/netstuff.c: | |
25 | * gdbserver/gdbreplay.c | |
26 | * gdbserver/remote-utils.c: | |
27 | * ser-tcp.c: | |
28 | * unittests/parse-connection-spec-selftests.c [USE_WIN32API]: | |
29 | Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine | |
30 | _WIN32_WINNT to 0x0501 if defined to a smaller value, as | |
31 | 'getaddrinfo' and 'freeaddrinfo' were not available before | |
32 | Windows XP, and mingw.org's MinGW headers by default define | |
33 | _WIN32_WINNT to 0x500. | |
34 | ||
827f438f GB |
35 | 2019-03-01 Gary Benson <gbenson@redhat.com> |
36 | ||
37 | * coffread.c (coff_start_symtab): Remove unnecessary xstrdup. | |
38 | ||
92137da0 RO |
39 | 2019-02-28 Brian Vandenberg <phantall@gmail.com> |
40 | Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | |
41 | ||
42 | PR gdb/8527 | |
43 | * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in | |
44 | set_sigint_trap, clear_sigint_trap. | |
45 | ||
799efbe8 PW |
46 | 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
47 | ||
48 | * target.c (target_detach): Clear the regcache and the | |
49 | frame cache. | |
50 | ||
8ed25214 PA |
51 | 2019-02-27 Pedro Alves <palves@redhat.com> |
52 | ||
53 | * utils.c (set_screen_size): When we cap the height/width sizes, | |
54 | tweak the corresponding command variable to show "unlimited": | |
55 | ||
23031e31 SJ |
56 | 2019-02-27 Saagar Jha <saagar@saagarjha.com> |
57 | Pedro Alves <palves@redhat.com> | |
58 | ||
59 | * utils.c (set_screen_size): Reduce "infinite" rows and columns | |
60 | before calling rl_set_screen_size. | |
61 | ||
6c28e44a TT |
62 | 2019-02-27 Tom Tromey <tromey@adacore.com> |
63 | ||
64 | * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never | |
65 | define. | |
66 | * python/py-value.c: Remove Python 2.4 workaround. | |
67 | * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4 | |
68 | workaround. | |
69 | * python/py-type.c (convert_field, gdbpy_initialize_types): Remove | |
70 | Python 2.4 workaround. | |
71 | * python/python-internal.h: Remove Python 2.4 comment. | |
72 | (Py_ssize_t): Don't define. | |
73 | (PyVarObject_HEAD_INIT, Py_TYPE): Don't define. | |
74 | (gdb_Py_DECREF): Remove Python 2.4 workaround. | |
75 | (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove. | |
76 | (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove. | |
77 | * python/python.c (do_start_initialization): Remove Python 2.4 | |
78 | workaround. | |
79 | * python/py-prettyprint.c (class dummy_python_frame): Remove. | |
80 | (print_children): Remove Python 2.4 workaround. | |
81 | * python/py-inferior.c (buffer_procs): Remove Python 2.4 | |
82 | workaround. | |
83 | (CHARBUFFERPROC_NAME): Remove. | |
84 | * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove | |
85 | Python 2.4 workaround. | |
86 | ||
2c3fc25d | 87 | 2019-02-27 Kevin Buettner <kevinb@redhat.com> |
799efbe8 | 88 | |
2c3fc25d KB |
89 | * NEWS: Note minimum Python version. |
90 | ||
6ca62222 KB |
91 | 2019-02-27 Kevin Buettner <kevinb@redhat.com> |
92 | ||
93 | * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K | |
94 | code from these functions. Remove corresponding ifdefs. Use | |
95 | Py_buffer_up instead of explicit calls to PyBuffer_Release. | |
96 | Remove gotos and target of gotos. | |
97 | (infpy_search_memory): Likewise. | |
98 | ||
f4bc7d2c AB |
99 | 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com> |
100 | ||
101 | * gdb/hppa-tdep.c (hppa_dummy_id): Delete. | |
102 | (hppa_gdbarch_init): Don't register deleted functions with | |
103 | gdbarch. | |
104 | ||
9734a586 AB |
105 | 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com> |
106 | ||
107 | * gdb/h8300-tdep.c (h8300_unwind_pc): Delete. | |
108 | (h8300_unwind_sp): Delete. | |
109 | (h8300_dummy_id): Delete. | |
110 | (h8300_gdbarch_init): Don't register deleted functions with | |
111 | gdbarch. | |
112 | ||
68b867f3 AB |
113 | 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com> |
114 | ||
115 | * gdb/ft32-tdep.c (ft32_dummy_id): Delete. | |
116 | (ft32_unwind_pc): Delete. | |
117 | (ft32_unwind_sp): Delete. | |
118 | (ft32_gdbarch_init): Don't register deleted functions with | |
119 | gdbarch. | |
120 | ||
2fbe7ad0 AB |
121 | 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com> |
122 | ||
123 | * gdb/frv-tdep.c (frv_dummy_id): Delete. | |
124 | (frv_unwind_pc): Delete. | |
125 | (frv_unwind_sp): Delete. | |
126 | (frv_gdbarch_init): Don't register deleted functions with | |
127 | gdbarch. | |
128 | ||
76055cbe AB |
129 | 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com> |
130 | ||
131 | * gdb/riscv-tdep.c (riscv_dummy_id): Delete. | |
132 | (riscv_unwind_pc): Delete. | |
133 | (riscv_unwind_sp): Delete. | |
134 | (riscv_gdbarch_init): Don't register deleted functions with | |
135 | gdbarch. | |
136 | ||
4133e5a1 AB |
137 | 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com> |
138 | ||
139 | * gdb/csky-tdep.c (csky_dummy_id): Delete. | |
140 | (csky_unwind_pc): Delete. | |
141 | (csky_unwind_sp): Delete. | |
142 | (csky_gdbarch_init): Don't register deleted functions with | |
143 | gdbarch. | |
144 | ||
8010f576 AB |
145 | 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com> |
146 | ||
147 | * gdb/cris-tdep.c (cris_dummy_id): Delete. | |
148 | (cris_unwind_pc): Delete. | |
149 | (cris_unwind_sp): Delete. | |
150 | (cris_gdbarch_init): Don't register deleted functions with | |
151 | gdbarch. | |
152 | ||
b56bf084 AB |
153 | 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com> |
154 | ||
155 | * gdb/bfin-tdep.c (bfin_dummy_id): Delete. | |
156 | (bfin_unwind_pc): Delete. | |
157 | (bfin_gdbarch_init): Don't register deleted functions with gdbarch. | |
158 | ||
a19a650f AB |
159 | 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com> |
160 | ||
161 | * gdb/arm-tdep.c (arm_dummy_id): Delete. | |
162 | (arm_unwind_pc): Delete. | |
163 | (arm_unwind_sp): Delete. | |
164 | (arm_gdbarch_init): Don't register deleted functions with gdbarch. | |
165 | ||
f8278c3c AB |
166 | 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com> |
167 | ||
168 | * gdb/arc-tdep.c (arc_dummy_id): Delete. | |
169 | (arc_unwind_pc): Delete. | |
170 | (arc_unwind_sp): Delete. | |
171 | (arc_gdbarch_init): Don't register deleted functions with gdbarch. | |
172 | ||
480e46cf AB |
173 | 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com> |
174 | ||
175 | * gdb/alpha-tdep.c (alpha_dummy_id): Delete. | |
176 | (alpha_unwind_pc): Delete. | |
177 | (alpha_gdbarch_init): Don't register deleted functions with | |
178 | gdbarch. | |
179 | ||
7a995095 AB |
180 | 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com> |
181 | ||
182 | * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete. | |
183 | (aarch64_unwind_pc): Delete. | |
184 | (aarch64_unwind_sp): Delete. | |
185 | (aarch64_gdbarch_init): Don't register deleted functions with | |
186 | gdbarch. | |
187 | ||
bf9a735e AB |
188 | 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com> |
189 | ||
190 | * gdbtypes.c (type_align): Don't consider static members when | |
191 | computing structure alignment. | |
192 | ||
5561fc30 AB |
193 | 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com> |
194 | ||
195 | * arc-tdep.c (arc_type_align): Provide alignment for basic types, | |
196 | return 0 for other types. | |
197 | * arch-utils.c (default_type_align): Always return 0. | |
198 | * gdbarch.h: Regenerate. | |
199 | * gdbarch.sh (type_align): Extend comment. | |
200 | * gdbtypes.c (type_align): Add additional comments, always call | |
201 | gdbarch_type_align before applying the default rules. | |
202 | * i386-tdep.c (i386_type_align): Return 0 as the default rule, | |
203 | generic code will then apply a suitable default. | |
204 | * nios2-tdep.c (nios2_type_align): Provide alignment for basic | |
205 | types, return 0 for other types. | |
206 | ||
9335e75a JB |
207 | 2019-02-27 Joel Brobecker <brobecker@adacore.com> |
208 | ||
209 | * NEWS: Create a new section for the next release branch. | |
210 | Rename the section of the current branch, now that it has | |
211 | been cut. | |
212 | ||
3d34d8de JB |
213 | 2019-02-27 Joel Brobecker <brobecker@adacore.com> |
214 | ||
215 | GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d): | |
216 | * version.in: Bump version to 8.3.50.DATE-git. | |
217 | ||
143420fb SM |
218 | 2019-02-26 Simon Marchi <simon.marchi@efficios.com> |
219 | ||
220 | * aix-thread.c (ptid_cmp): Remove unused variable. | |
221 | (get_signaled_thread): Likewise. | |
222 | (store_regs_user_thread): Likewise. | |
223 | (store_regs_kernel_thread): Likewise. | |
224 | (fetch_regs_kernel_thread): Remove shadowed variable. | |
225 | ||
172fb711 AB |
226 | 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com> |
227 | ||
228 | * features/riscv/32bit-cpu.xml: Add register numbers. | |
229 | * features/riscv/32bit-fpu.c: Regenerate. | |
230 | * features/riscv/32bit-fpu.xml: Add register numbers. | |
231 | * features/riscv/64bit-cpu.xml: Add register numbers. | |
232 | * features/riscv/64bit-fpu.c: Regenerate. | |
233 | * features/riscv/64bit-fpu.xml: Add register numbers. | |
234 | ||
26c89782 KB |
235 | 2019-02-26 Kevin Buettner <kevinb@redhat.com> |
236 | ||
af54ade9 | 237 | * NEWS: Mention two argument form of gdb.Value constructor. |
fe07eca5 KB |
238 | * python/py-value.c (convert_buffer_and_type_to_value): New |
239 | function. | |
240 | (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords. | |
241 | Add support for handling an optional second argument. Call | |
242 | convert_buffer_and_type_to_value as appropriate. | |
26c89782 KB |
243 | * python/python-internal.h (Py_buffer_deleter): New struct. |
244 | (Py_buffer_up): New typedef. | |
245 | ||
0f58c9e8 JB |
246 | 2019-02-25 John Baldwin <jhb@FreeBSD.org> |
247 | ||
248 | * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr | |
249 | instead of releasing ownership. | |
250 | ||
0a0f4c01 JR |
251 | 2019-02-25 Jordan Rupprecht <rupprecht@google.com> |
252 | ||
253 | * dwarf2read.c (open_and_init_dwp_file): Call | |
254 | elf_numsections instead of bfd_count_sections to initialize | |
255 | dwp_file->num_sections. | |
256 | ||
cd5a152c TT |
257 | 2019-02-25 Tom Tromey <tromey@adacore.com> |
258 | ||
259 | * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd. | |
260 | ||
8a6a8513 SDJ |
261 | 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com> |
262 | ||
263 | * gcore.in: Add '--readnever' option when invoking GDB. | |
264 | ||
04dcda9c SM |
265 | 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca> |
266 | ||
267 | * MAINTAINERS: Update my email address. | |
268 | ||
07bc701d SM |
269 | 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca> |
270 | ||
271 | * build-id.c (build_id_to_debug_bfd_1): New function. | |
272 | (build_id_to_debug_bfd): Look for separate debug file in | |
273 | sysroot. | |
274 | ||
c6f4a5d0 AB |
275 | 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com> |
276 | ||
277 | * gdbarch.sh: Update the copyright year range that is placed into | |
278 | generated files. | |
279 | ||
9600246d KS |
280 | 2019-02-22 Keith Seitz <keiths@redhat.com> |
281 | ||
282 | PR symtab/23853 | |
283 | * linespec.c (create_sals_line_offset): Search for the default | |
284 | symtab's filename instead of its fullname. | |
285 | ||
7557a514 AH |
286 | 2019-02-21 Alan Hayward <alan.hayward@arm.com> |
287 | ||
288 | * NEWS: Update style defaults. | |
289 | ||
ee2bcb0c AH |
290 | 2019-02-21 Alan Hayward <alan.hayward@arm.com> |
291 | ||
292 | * main.c (captured_main_1): Disable styling in batch mode. | |
293 | ||
0c95f9ed TT |
294 | 2019-02-20 Tom Tromey <tom@tromey.com> |
295 | ||
296 | * symtab.c (symtab_symbol_info): Fix typos. | |
297 | ||
c763b894 TT |
298 | 2019-02-20 Tom Tromey <tromey@adacore.com> |
299 | ||
300 | * findcmd.c (_initialize_mem_search): Use upper case for | |
301 | metasyntactic variables. | |
302 | ||
0ef8a082 AH |
303 | 2019-02-20 Alan Hayward <alan.hayward@arm.com> |
304 | ||
305 | * aarch64-tdep.c (aarch64_add_reggroups): New function. | |
306 | (aarch64_gdbarch_init): Call aarch64_add_reggroups. | |
307 | ||
6caa91b6 SM |
308 | 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca> |
309 | ||
310 | * top.h (source_file_name): Change to std::string. | |
311 | * top.c (source_file_name): Likewise. | |
312 | (command_line_input): Adjust. | |
313 | * cli/cli-script.c (script_from_file): Adjust. | |
314 | ||
98814c6c TT |
315 | 2019-02-19 Tom Tromey <tromey@adacore.com> |
316 | ||
317 | * ravenscar-thread.c | |
318 | (ravenscar_thread_target::update_thread_list): Don't call | |
319 | ada_build_task_list. | |
320 | * ada-lang.h (ada_build_task_list): Don't declare. | |
321 | * ada-tasks.c (struct ada_tasks_inferior_data) | |
322 | <task_list_valid_p>: Now bool. | |
323 | (read_known_tasks, ada_task_list_changed) | |
324 | (ada_tasks_invalidate_inferior_data): Update. | |
325 | (read_known_tasks_array): Return bool. | |
326 | (read_known_tasks_list): Likewise. | |
327 | (read_known_tasks): Return void. | |
328 | (ada_build_task_list): Now static. | |
329 | ||
70cd633e AB |
330 | 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com> |
331 | ||
332 | * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR | |
333 | and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch. | |
334 | ||
040b3e95 PW |
335 | 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
336 | ||
337 | * ada-task.c (_initialize_tasks): Use 'with_cleanup' register | |
338 | variant for ada_tasks_pspace_data_handle and | |
339 | ada_tasks_inferior_data_handle. | |
340 | (ada_tasks_pspace_data_cleanup): New function. | |
341 | (ada_tasks_inferior_data_cleanup): New function. | |
342 | ||
9409233b TT |
343 | 2019-02-17 Tom Tromey <tom@tromey.com> |
344 | ||
345 | * macrotab.h (macro_source_fullname): Return a std::string. | |
346 | * macrotab.c (macro_include, check_for_redefinition) | |
347 | (macro_undef, macro_lookup_definition, foreach_macro) | |
348 | (foreach_macro_in_scope): Update. | |
349 | (macro_source_fullname): Return a std::string. | |
350 | * macrocmd.c (show_pp_source_pos): Update. | |
351 | ||
6506371f TT |
352 | 2019-02-17 Tom Tromey <tom@tromey.com> |
353 | ||
354 | * macrocmd.c (show_pp_source_pos): Style the file names. | |
355 | ||
0c820d67 TT |
356 | 2019-02-17 Tom Tromey <tom@tromey.com> |
357 | ||
358 | PR tui/24197: | |
359 | * tui/tui-source.c (tui_set_source_content_nil): Rewrite. | |
360 | ||
a0087920 TT |
361 | 2019-02-17 Tom Tromey <tom@tromey.com> |
362 | ||
363 | * ada-lang.c (user_select_syms): Use filtered printing. | |
364 | * utils.c (wrap_style): New global. | |
365 | (desired_style): Remove. | |
366 | (emit_style_escape): Add stream parameter. | |
367 | (set_output_style, reset_terminal_style, prompt_for_continue): | |
368 | Update. | |
369 | (flush_wrap_buffer): Only flush gdb_stdout. | |
370 | (wrap_here): Set wrap_style. | |
371 | (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't | |
372 | treat escape sequences as a character. Change when wrap buffer is | |
373 | flushed. | |
374 | (fputs_styled): Do not set the output style when the default is | |
375 | requested. | |
376 | * ui-style.h (struct ui_file_style) <is_default>: New method. | |
377 | * source.c (print_source_lines_base): Emit escape sequences in one | |
378 | piece. | |
379 | ||
75ba10dc JB |
380 | 2019-02-17 Joel Brobecker <brobecker@adacore.com> |
381 | ||
382 | * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as | |
383 | integers and enumeration types. | |
384 | ||
a2cd4f14 JB |
385 | 2019-02-17 Joel Brobecker <brobecker@adacore.com> |
386 | ||
387 | * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol | |
388 | instead of lookup_symbol_in_language | |
389 | (do_exact_match): New function. | |
390 | (ada_get_symbol_name_matcher): Return do_exact_match when | |
391 | doing a verbatim match. | |
392 | ||
485b851b TT |
393 | 2019-02-15 Tom Tromey <tromey@adacore.com> |
394 | ||
395 | * ravenscar-thread.c (ravenscar_thread_target::resume) | |
396 | (ravenscar_thread_target::wait): Special case wildcard requests. | |
397 | ||
0b790b1e TT |
398 | 2019-02-15 Tom Tromey <tromey@adacore.com> |
399 | ||
400 | * ravenscar-thread.c (base_ptid): Remove. | |
401 | (struct ravenscar_thread_target) <close>: New method. | |
402 | <m_base_ptid>: New member. | |
403 | <update_inferior_ptid, active_task, task_is_currently_active, | |
404 | runtime_initialized>: Declare methods. | |
405 | <ravenscar_thread_target>: Add constructor. | |
406 | (ravenscar_thread_target::task_is_currently_active) | |
407 | (ravenscar_thread_target::update_inferior_ptid) | |
408 | (ravenscar_runtime_initialized): Rename. Now methods. | |
409 | (ravenscar_thread_target::resume, ravenscar_thread_target::wait) | |
410 | (ravenscar_thread_target::update_thread_list): Update. | |
411 | (ravenscar_thread_target::active_task): Now method. | |
412 | (ravenscar_thread_target::store_registers) | |
413 | (ravenscar_thread_target::prepare_to_store) | |
414 | (ravenscar_thread_target::prepare_to_store) | |
415 | (ravenscar_thread_target::mourn_inferior): Update. | |
416 | (ravenscar_inferior_created): Use "new" to create target. | |
417 | (ravenscar_thread_target::get_ada_task_ptid): Update. | |
418 | (_initialize_ravenscar): Don't initialize base_ptid. | |
419 | (ravenscar_ops): Remove global. | |
420 | ||
dea57a62 TT |
421 | 2019-02-15 Tom Tromey <tromey@adacore.com> |
422 | ||
423 | * target.h (push_target): Declare new overload. | |
424 | * target.c (push_target): New overload, taking an rvalue reference. | |
425 | * remote.c (remote_target::open_1): Use push_target overload. | |
426 | * corelow.c (core_target_open): Use push_target overload. | |
427 | ||
989f3c58 TT |
428 | 2019-02-15 Tom Tromey <tromey@adacore.com> |
429 | ||
430 | * ravenscar-thread.c (is_ravenscar_task) | |
431 | (ravenscar_task_is_currently_active): Return bool. | |
432 | (ravenscar_update_inferior_ptid, get_running_thread_msymbol) | |
433 | (_initialize_ravenscar): Remove "(void)". | |
434 | (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise. | |
435 | Return bool. | |
436 | ||
6cbcc006 TT |
437 | 2019-02-15 Tom Tromey <tromey@adacore.com> |
438 | ||
439 | * ravenscar-thread.c (ravenscar_runtime_initializer) | |
440 | (has_ravenscar_runtime, get_running_thread_id) | |
441 | (ravenscar_thread_target::resume): Fix indentation. | |
442 | ||
7657f14d TT |
443 | 2019-02-15 Tom Tromey <tromey@adacore.com> |
444 | ||
445 | * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive | |
446 | from ravenscar_arch_ops. | |
447 | (sparc_ravenscar_ops::fetch_registers) | |
448 | (sparc_ravenscar_ops::store_registers): Now methods. | |
449 | (sparc_ravenscar_prepare_to_store): Remove. | |
450 | (sparc_ravenscar_ops): Redefine. | |
451 | * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual | |
452 | methods and destructor. Remove members. | |
453 | * ravenscar-thread.c (ravenscar_thread_target::fetch_registers) | |
454 | (ravenscar_thread_target::store_registers) | |
455 | (ravenscar_thread_target::prepare_to_store): Update. | |
456 | * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store): | |
457 | Remove. | |
458 | (struct ppc_ravenscar_powerpc_ops): Derive from | |
459 | ravenscar_arch_ops. | |
460 | (ppc_ravenscar_powerpc_ops::fetch_registers) | |
461 | (ppc_ravenscar_powerpc_ops::store_registers): Now methods. | |
462 | (ppc_ravenscar_powerpc_ops): Redefine. | |
463 | (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops. | |
464 | (ppc_ravenscar_e500_ops::fetch_registers) | |
465 | (ppc_ravenscar_e500_ops::store_registers): Now methods. | |
466 | (ppc_ravenscar_e500_ops): Redefine. | |
467 | * aarch64-ravenscar-thread.c | |
468 | (aarch64_ravenscar_generic_prepare_to_store): Remove. | |
469 | (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops. | |
470 | (aarch64_ravenscar_fetch_registers) | |
471 | (aarch64_ravenscar_store_registers): Now methods. | |
472 | (aarch64_ravenscar_ops): Redefine. | |
473 | ||
5b6ea500 TT |
474 | 2019-02-15 Tom Tromey <tromey@adacore.com> |
475 | ||
476 | * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint) | |
477 | (ravenscar_thread_target::stopped_by_hw_breakpoint) | |
478 | (ravenscar_thread_target::stopped_by_watchpoint) | |
479 | (ravenscar_thread_target::stopped_data_address) | |
480 | (ravenscar_thread_target::core_of_thread): Use scoped_restore. | |
481 | ||
e397fd39 TT |
482 | 2019-02-15 Tom Tromey <tromey@adacore.com> |
483 | ||
484 | * ravenscar-thread.c: Fix some typos. | |
485 | ||
cc12f4a8 TT |
486 | 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
487 | Tom Tromey <tromey@adacore.com> | |
488 | ||
489 | * ada-lang.c (ada_exception_sal): Change addr_string to a | |
490 | std::string. | |
491 | (create_ada_exception_catchpoint): Update. | |
492 | ||
5f486660 TT |
493 | 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
494 | Tom Tromey <tromey@adacore.com> | |
495 | ||
496 | * breakpoint.c (~bp_location): Rename from bp_location_dtor. | |
497 | (bp_location_ops): Remove. | |
498 | (base_breakpoint_allocate_location): Update. | |
499 | (free_bp_location): Update. | |
500 | * ada-lang.c (class ada_catchpoint_location) | |
501 | <ada_catchpoint_location>: Remove ops parameter. | |
502 | (ada_catchpoint_location_dtor): Remove. | |
503 | (ada_catchpoint_location_ops): Remove. | |
504 | (allocate_location_exception): Update. | |
505 | * breakpoint.h (struct bp_location_ops): Remove. | |
506 | (class bp_location) <bp_location>: Remove bp_location_ops | |
507 | parameter. | |
508 | <~bp_location>: Add destructor. | |
509 | <ops>: Remove. | |
510 | ||
b671c7fb TS |
511 | 2019-02-14 Thomas Schwinge <thomas@codesourcery.com> |
512 | Pedro Alves <palves@redhat.com> | |
513 | ||
514 | * remote.c (remote_target::remote_parse_stop_reply): Avoid using | |
515 | 'PATH_MAX'. | |
516 | ||
8071c5ce DM |
517 | 2019-02-14 David Michael <fedora.dm0@gmail.com> |
518 | Samuel Thibault <samuel.thibault@gnu.org> | |
519 | Thomas Schwinge <thomas@codesourcery.com> | |
520 | ||
521 | * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply) | |
522 | (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes. | |
523 | ||
b1041ae0 TS |
524 | 2019-02-14 Thomas Schwinge <thomas@codesourcery.com> |
525 | ||
924514e1 TS |
526 | * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg) |
527 | (check_empty): Use "const char *". | |
528 | ||
c29ee8d4 TS |
529 | * gnu-nat.c (gnu_nat_target::detach): Instead of |
530 | 'detach_inferior (pid)' call | |
531 | 'detach_inferior (find_inferior_pid (pid))'. | |
532 | ||
6c6ef69f TS |
533 | * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add |
534 | 'nat/fork-inferior.o'. | |
535 | * gnu-nat.c: #include "nat/fork-inferior.h". | |
536 | ||
2d0a338c TS |
537 | * gnu-nat.c (gnu_nat_target::detach): Instead of |
538 | 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'. | |
539 | * gnu-nat.h: #include "inf-child.h". | |
540 | * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to | |
541 | 'i386_gnu_nat_target::fetch_registers'. | |
542 | (gnu_store_registers): Rename/move to | |
543 | 'i386_gnu_nat_target::store_registers'. | |
544 | ||
cabb5f06 TS |
545 | * config/i386/nm-i386gnu.h: Don't "#include" any files. |
546 | * gnu-nat.h (mach_thread_info): New function. | |
547 | * gnu-nat.c (thread_takeover_sc_cmd): Use it. | |
548 | ||
b1041ae0 TS |
549 | * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove. |
550 | ||
2988d01e KF |
551 | 2019-02-14 Frederic Konrad <konrad@adacore.com> |
552 | ||
553 | * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE. | |
554 | ||
c559d709 JB |
555 | 2019-02-14 Joel Brobecker <brobecker@adacore.com> |
556 | ||
557 | * windows-nat.c (windows_add_thread): Add new parameter | |
558 | "main_thread_p" with default value set to false. Update | |
559 | function documentation as well as all callers. | |
560 | (windows_delete_thread): Likewise. | |
561 | (fake_create_process): Update call to windows_add_thread. | |
562 | (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT> | |
563 | <CREATE_PROCESS_DEBUG_EVENT>: Likewise. | |
564 | <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update | |
565 | call to windows_delete_thread. | |
566 | ||
007024cc SM |
567 | 2019-02-13 Simon Marchi <simon.marchi@ericsson.com> |
568 | ||
569 | * MAINTAINERS: Add Andrew Burgess as global maintainer. | |
570 | ||
f62318e9 JB |
571 | 2019-02-12 John Baldwin <jhb@FreeBSD.org> |
572 | ||
573 | * symfile.c (find_separate_debug_file): Use canonical path of | |
574 | sysroot with child_path instead of gdb_sysroot if it is valid. | |
575 | ||
cd4b7848 JB |
576 | 2019-02-12 John Baldwin <jhb@FreeBSD.org> |
577 | ||
578 | * symfile.c (find_separate_debug_file): Use child_path to | |
579 | determine if an object file is under a sysroot. | |
580 | ||
efac4bfe JB |
581 | 2019-02-12 John Baldwin <jhb@FreeBSD.org> |
582 | ||
583 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add | |
584 | unittests/child-path-selftests.c. | |
585 | * common/pathstuff.c (child_path): New function. | |
586 | * common/pathstuff.h (child_path): New prototype. | |
587 | * unittests/child-path-selftests.c: New file. | |
588 | ||
402d2bfe JB |
589 | 2019-02-12 John Baldwin <jhb@FreeBSD.org> |
590 | ||
591 | * symfile.c (find_separate_debug_file): Look for separate debug | |
592 | files in debug directories under the sysroot. | |
593 | ||
1ed9f74e PW |
594 | 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
595 | ||
596 | * symtab.h (struct minimal_symbol data_p): New const method. | |
597 | (struct minimal_symbol text_p): Likewise. | |
598 | * symtab.c (output_source_filename): Use file name style | |
599 | to print file name. | |
600 | (print_symbol_info): Likewise. | |
601 | (print_msymbol_info): Use address style to print addresses. | |
602 | Use function name style to print executable text symbols. | |
603 | (expand_symtab_containing_pc): Use data_p. | |
604 | (find_pc_sect_compunit_symtab): Likewise. | |
605 | ||
2636d81d PW |
606 | 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
607 | ||
608 | * breakpoint.c (describe_other_breakpoints): Use address style | |
609 | to print addresses. | |
610 | (say_where): Likewise. | |
611 | ||
ac8c53cc PW |
612 | 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
613 | ||
614 | * ada-typeprint.c (print_func_type): Print function name | |
615 | style to print function name. | |
616 | * c-typeprint.c (c_print_type_1): Likewise. | |
617 | ||
ea638c43 AH |
618 | 2019-02-11 Alan Hayward <alan.hayward@arm.com> |
619 | ||
620 | * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check | |
621 | for execve. | |
622 | ||
ab759ca8 PW |
623 | 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
624 | ||
625 | * c-exp.y (direct_abs_decl): Use emplace_back to record the | |
626 | type_stack. | |
627 | ||
aff29d1c JB |
628 | 2019-02-10 Joel Brobecker <brobecker@adacore.com> |
629 | ||
630 | * ada-varobj.c (ada_value_is_changeable_p): Add handling of | |
631 | TYPE_CODE_REF types. | |
632 | ||
617126bc JW |
633 | 2019-02-08 Jim Wilson <jimw@sifive.com> |
634 | ||
635 | * riscv-linux-tdep.c (riscv_linux_fregmap): New. | |
636 | (riscv_linux_fregset): New. | |
637 | (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section. | |
638 | ||
46e3ed7f TT |
639 | 2019-02-07 Tom Tromey <tom@tromey.com> |
640 | ||
641 | * thread.c (thread_cancel_execution_command): Update. | |
642 | * thread-fsm.h (struct thread_fsm): Add constructor, destructor, | |
643 | methods. | |
644 | (struct thread_fsm_ops): Remove. | |
645 | (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up) | |
646 | (thread_fsm_should_stop, thread_fsm_return_value) | |
647 | (thread_fsm_set_finished, thread_fsm_finished_p) | |
648 | (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop): | |
649 | Don't declare. | |
650 | * mi/mi-interp.c (mi_on_normal_stop_1): Update. | |
651 | * infrun.c (clear_proceed_status_thread) | |
652 | (clean_up_just_stopped_threads_fsms, fetch_inferior_event) | |
653 | (print_stop_event): Update. | |
654 | * infcmd.c (struct step_command_fsm): Inherit from thread_fsm. | |
655 | Add constructor. | |
656 | (step_command_fsm_ops): Remove. | |
657 | (new_step_command_fsm): Remove. | |
658 | (step_1): Update. | |
659 | (step_command_fsm::should_stop): Rename from | |
660 | step_command_fsm_should_stop. | |
661 | (step_command_fsm::clean_up): Rename from | |
662 | step_command_fsm_clean_up. | |
663 | (step_command_fsm::do_async_reply_reason): Rename from | |
664 | step_command_fsm_async_reply_reason. | |
665 | (struct until_next_fsm): Inherit from thread_fsm. Add | |
666 | constructor. | |
667 | (until_next_fsm_ops): Remove. | |
668 | (new_until_next_fsm): Remove. | |
669 | (until_next_fsm::should_stop): Rename from | |
670 | until_next_fsm_should_stop. | |
671 | (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up. | |
672 | (until_next_fsm::do_async_reply_reason): Rename from | |
673 | until_next_fsm_async_reply_reason. | |
674 | (struct finish_command_fsm): Inherit from thread_fsm. Add | |
675 | constructor. Change type of breakpoint. | |
676 | (finish_command_fsm_ops): Remove. | |
677 | (new_finish_command_fsm): Remove. | |
678 | (finish_command_fsm::should_stop): Rename from | |
679 | finish_command_fsm_should_stop. | |
680 | (finish_command_fsm::clean_up): Rename from | |
681 | finish_command_fsm_clean_up. | |
682 | (finish_command_fsm::return_value): Rename from | |
683 | finish_command_fsm_return_value. | |
684 | (finish_command_fsm::do_async_reply_reason): Rename from | |
685 | finish_command_fsm_async_reply_reason. | |
686 | (finish_command): Update. | |
687 | * infcall.c (struct call_thread_fsm): Inherit from thread_fsm. | |
688 | Add constructor. | |
689 | (call_thread_fsm_ops): Remove. | |
690 | (call_thread_fsm::call_thread_fsm): Rename from | |
691 | new_call_thread_fsm. | |
692 | (call_thread_fsm::should_stop): Rename from | |
693 | call_thread_fsm_should_stop. | |
694 | (call_thread_fsm::should_notify_stop): Rename from | |
695 | call_thread_fsm_should_notify_stop. | |
696 | (run_inferior_call, call_function_by_hand_dummy): Update. | |
697 | * cli/cli-interp.c (should_print_stop_to_console): Update. | |
698 | * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm. | |
699 | Add constructor. Change type of location_breakpoint, | |
700 | caller_breakpoint. | |
701 | (until_break_fsm_ops): Remove. | |
702 | (new_until_break_fsm): Remove. | |
703 | (until_break_fsm::should_stop): Rename from | |
704 | until_break_fsm_should_stop. | |
705 | (until_break_fsm::clean_up): Rename from | |
706 | until_break_fsm_clean_up. | |
707 | (until_break_fsm::do_async_reply_reason): Rename from | |
708 | until_break_fsm_async_reply_reason. | |
709 | (until_break_command): Update. | |
710 | * thread-fsm.c: Remove. | |
711 | * Makefile.in (COMMON_SFILES): Remove thread-fsm.c. | |
712 | ||
1a5c2598 TT |
713 | 2019-02-07 Tom Tromey <tom@tromey.com> |
714 | ||
715 | * yy-remap.h: Add include guard. | |
716 | * xtensa-tdep.h: Add include guard. | |
717 | * xcoffread.h: Rename include guard. | |
718 | * varobj-iter.h: Add include guard. | |
719 | * tui/tui.h: Rename include guard. | |
720 | * tui/tui-winsource.h: Rename include guard. | |
721 | * tui/tui-wingeneral.h: Rename include guard. | |
722 | * tui/tui-windata.h: Rename include guard. | |
723 | * tui/tui-win.h: Rename include guard. | |
724 | * tui/tui-stack.h: Rename include guard. | |
725 | * tui/tui-source.h: Rename include guard. | |
726 | * tui/tui-regs.h: Rename include guard. | |
727 | * tui/tui-out.h: Rename include guard. | |
728 | * tui/tui-layout.h: Rename include guard. | |
729 | * tui/tui-io.h: Rename include guard. | |
730 | * tui/tui-hooks.h: Rename include guard. | |
731 | * tui/tui-file.h: Rename include guard. | |
732 | * tui/tui-disasm.h: Rename include guard. | |
733 | * tui/tui-data.h: Rename include guard. | |
734 | * tui/tui-command.h: Rename include guard. | |
735 | * tic6x-tdep.h: Add include guard. | |
736 | * target/waitstatus.h: Rename include guard. | |
737 | * target/wait.h: Rename include guard. | |
738 | * target/target.h: Rename include guard. | |
739 | * target/resume.h: Rename include guard. | |
740 | * target-float.h: Rename include guard. | |
741 | * stabsread.h: Add include guard. | |
742 | * rs6000-tdep.h: Add include guard. | |
743 | * riscv-fbsd-tdep.h: Add include guard. | |
744 | * regformats/regdef.h: Rename include guard. | |
745 | * record.h: Rename include guard. | |
746 | * python/python.h: Rename include guard. | |
747 | * python/python-internal.h: Rename include guard. | |
748 | * python/py-stopevent.h: Rename include guard. | |
749 | * python/py-ref.h: Rename include guard. | |
750 | * python/py-record.h: Rename include guard. | |
751 | * python/py-record-full.h: Rename include guard. | |
752 | * python/py-record-btrace.h: Rename include guard. | |
753 | * python/py-instruction.h: Rename include guard. | |
754 | * python/py-events.h: Rename include guard. | |
755 | * python/py-event.h: Rename include guard. | |
756 | * procfs.h: Add include guard. | |
757 | * proc-utils.h: Add include guard. | |
758 | * p-lang.h: Add include guard. | |
759 | * or1k-tdep.h: Rename include guard. | |
760 | * observable.h: Rename include guard. | |
761 | * nto-tdep.h: Rename include guard. | |
762 | * nat/x86-linux.h: Rename include guard. | |
763 | * nat/x86-linux-dregs.h: Rename include guard. | |
764 | * nat/x86-gcc-cpuid.h: Add include guard. | |
765 | * nat/x86-dregs.h: Rename include guard. | |
766 | * nat/x86-cpuid.h: Rename include guard. | |
767 | * nat/ppc-linux.h: Rename include guard. | |
768 | * nat/mips-linux-watch.h: Rename include guard. | |
769 | * nat/linux-waitpid.h: Rename include guard. | |
770 | * nat/linux-ptrace.h: Rename include guard. | |
771 | * nat/linux-procfs.h: Rename include guard. | |
772 | * nat/linux-osdata.h: Rename include guard. | |
773 | * nat/linux-nat.h: Rename include guard. | |
774 | * nat/linux-namespaces.h: Rename include guard. | |
775 | * nat/linux-btrace.h: Rename include guard. | |
776 | * nat/glibc_thread_db.h: Rename include guard. | |
777 | * nat/gdb_thread_db.h: Rename include guard. | |
778 | * nat/gdb_ptrace.h: Rename include guard. | |
779 | * nat/fork-inferior.h: Rename include guard. | |
780 | * nat/amd64-linux-siginfo.h: Rename include guard. | |
781 | * nat/aarch64-sve-linux-sigcontext.h: Rename include guard. | |
782 | * nat/aarch64-sve-linux-ptrace.h: Rename include guard. | |
783 | * nat/aarch64-linux.h: Rename include guard. | |
784 | * nat/aarch64-linux-hw-point.h: Rename include guard. | |
785 | * mn10300-tdep.h: Add include guard. | |
786 | * mips-linux-tdep.h: Add include guard. | |
787 | * mi/mi-parse.h: Rename include guard. | |
788 | * mi/mi-out.h: Rename include guard. | |
789 | * mi/mi-main.h: Rename include guard. | |
790 | * mi/mi-interp.h: Rename include guard. | |
791 | * mi/mi-getopt.h: Rename include guard. | |
792 | * mi/mi-console.h: Rename include guard. | |
793 | * mi/mi-common.h: Rename include guard. | |
794 | * mi/mi-cmds.h: Rename include guard. | |
795 | * mi/mi-cmd-break.h: Rename include guard. | |
796 | * m2-lang.h: Add include guard. | |
797 | * location.h: Rename include guard. | |
798 | * linux-record.h: Rename include guard. | |
799 | * linux-nat.h: Add include guard. | |
800 | * linux-fork.h: Add include guard. | |
801 | * i386-darwin-tdep.h: Rename include guard. | |
802 | * hppa-linux-offsets.h: Add include guard. | |
803 | * guile/guile.h: Rename include guard. | |
804 | * guile/guile-internal.h: Rename include guard. | |
805 | * gnu-nat.h: Rename include guard. | |
806 | * gdb-stabs.h: Rename include guard. | |
807 | * frv-tdep.h: Add include guard. | |
808 | * f-lang.h: Add include guard. | |
809 | * event-loop.h: Add include guard. | |
810 | * darwin-nat.h: Rename include guard. | |
811 | * cp-abi.h: Rename include guard. | |
812 | * config/sparc/nm-sol2.h: Rename include guard. | |
813 | * config/nm-nto.h: Rename include guard. | |
814 | * config/nm-linux.h: Add include guard. | |
815 | * config/i386/nm-i386gnu.h: Rename include guard. | |
816 | * config/djgpp/nl_types.h: Rename include guard. | |
817 | * config/djgpp/langinfo.h: Rename include guard. | |
818 | * compile/gcc-cp-plugin.h: Add include guard. | |
819 | * compile/gcc-c-plugin.h: Add include guard. | |
820 | * compile/compile.h: Rename include guard. | |
821 | * compile/compile-object-run.h: Rename include guard. | |
822 | * compile/compile-object-load.h: Rename include guard. | |
823 | * compile/compile-internal.h: Rename include guard. | |
824 | * compile/compile-cplus.h: Rename include guard. | |
825 | * compile/compile-c.h: Rename include guard. | |
826 | * common/xml-utils.h: Rename include guard. | |
827 | * common/x86-xstate.h: Rename include guard. | |
828 | * common/version.h: Rename include guard. | |
829 | * common/vec.h: Rename include guard. | |
830 | * common/tdesc.h: Rename include guard. | |
831 | * common/selftest.h: Rename include guard. | |
832 | * common/scoped_restore.h: Rename include guard. | |
833 | * common/scoped_mmap.h: Rename include guard. | |
834 | * common/scoped_fd.h: Rename include guard. | |
835 | * common/safe-iterator.h: Rename include guard. | |
836 | * common/run-time-clock.h: Rename include guard. | |
837 | * common/refcounted-object.h: Rename include guard. | |
838 | * common/queue.h: Rename include guard. | |
839 | * common/ptid.h: Rename include guard. | |
840 | * common/print-utils.h: Rename include guard. | |
841 | * common/preprocessor.h: Rename include guard. | |
842 | * common/pathstuff.h: Rename include guard. | |
843 | * common/observable.h: Rename include guard. | |
844 | * common/netstuff.h: Rename include guard. | |
845 | * common/job-control.h: Rename include guard. | |
846 | * common/host-defs.h: Rename include guard. | |
847 | * common/gdb_wait.h: Rename include guard. | |
848 | * common/gdb_vecs.h: Rename include guard. | |
849 | * common/gdb_unlinker.h: Rename include guard. | |
850 | * common/gdb_unique_ptr.h: Rename include guard. | |
851 | * common/gdb_tilde_expand.h: Rename include guard. | |
852 | * common/gdb_sys_time.h: Rename include guard. | |
853 | * common/gdb_string_view.h: Rename include guard. | |
854 | * common/gdb_splay_tree.h: Rename include guard. | |
855 | * common/gdb_setjmp.h: Rename include guard. | |
856 | * common/gdb_ref_ptr.h: Rename include guard. | |
857 | * common/gdb_optional.h: Rename include guard. | |
858 | * common/gdb_locale.h: Rename include guard. | |
859 | * common/gdb_assert.h: Rename include guard. | |
860 | * common/filtered-iterator.h: Rename include guard. | |
861 | * common/filestuff.h: Rename include guard. | |
862 | * common/fileio.h: Rename include guard. | |
863 | * common/environ.h: Rename include guard. | |
864 | * common/common-utils.h: Rename include guard. | |
865 | * common/common-types.h: Rename include guard. | |
866 | * common/common-regcache.h: Rename include guard. | |
867 | * common/common-inferior.h: Rename include guard. | |
868 | * common/common-gdbthread.h: Rename include guard. | |
869 | * common/common-exceptions.h: Rename include guard. | |
870 | * common/common-defs.h: Rename include guard. | |
871 | * common/common-debug.h: Rename include guard. | |
872 | * common/cleanups.h: Rename include guard. | |
873 | * common/buffer.h: Rename include guard. | |
874 | * common/btrace-common.h: Rename include guard. | |
875 | * common/break-common.h: Rename include guard. | |
876 | * cli/cli-utils.h: Rename include guard. | |
877 | * cli/cli-style.h: Rename include guard. | |
878 | * cli/cli-setshow.h: Rename include guard. | |
879 | * cli/cli-script.h: Rename include guard. | |
880 | * cli/cli-interp.h: Rename include guard. | |
881 | * cli/cli-decode.h: Rename include guard. | |
882 | * cli/cli-cmds.h: Rename include guard. | |
883 | * charset-list.h: Add include guard. | |
884 | * buildsym-legacy.h: Rename include guard. | |
885 | * bfin-tdep.h: Add include guard. | |
886 | * ax.h: Rename include guard. | |
887 | * arm-linux-tdep.h: Add include guard. | |
888 | * arm-fbsd-tdep.h: Add include guard. | |
889 | * arch/xtensa.h: Rename include guard. | |
890 | * arch/tic6x.h: Add include guard. | |
891 | * arch/i386.h: Add include guard. | |
892 | * arch/arm.h: Rename include guard. | |
893 | * arch/arm-linux.h: Rename include guard. | |
894 | * arch/arm-get-next-pcs.h: Rename include guard. | |
895 | * arch/amd64.h: Add include guard. | |
896 | * arch/aarch64-insn.h: Rename include guard. | |
897 | * arch-utils.h: Rename include guard. | |
898 | * annotate.h: Add include guard. | |
899 | * amd64-darwin-tdep.h: Rename include guard. | |
900 | * aarch64-linux-tdep.h: Add include guard. | |
901 | * aarch64-fbsd-tdep.h: Add include guard. | |
902 | * aarch32-linux-nat.h: Add include guard. | |
903 | ||
ab9268d2 PW |
904 | 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
905 | ||
906 | * macrotab.c (macro_define_internal): New function that | |
907 | factorizes macro_define_object_internal and macro_define_function | |
908 | code. | |
909 | (macro_define_object_internal): Use macro_define_internal. | |
910 | (macro_define_function): Likewise. | |
911 | ||
bb0da2b4 PW |
912 | 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
913 | ||
914 | * macrocmd.c (extract_identifier): Return | |
915 | a gdb::unique_xmalloc_ptr<char> instead of a char *, and update | |
916 | callers. | |
917 | ||
424eb552 JB |
918 | 2019-02-06 John Baldwin <jhb@FreeBSD.org> |
919 | ||
920 | * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces. | |
921 | ||
1688cb29 TT |
922 | 2019-02-05 Tom Tromey <tom@tromey.com> |
923 | ||
924 | * target.c (target_stack::unpush): Move assertion earlier. | |
925 | ||
b5eba2d8 TT |
926 | 2019-01-30 Tom Tromey <tom@tromey.com> |
927 | ||
928 | PR python/23615: | |
929 | * python/python.c (execute_gdb_command): Use gdbpy_allow_threads. | |
930 | (gdbpy_parse_and_eval): Likewise. | |
931 | * python/python-internal.h (gdbpy_allow_threads): New class. | |
932 | ||
7054e2ff JB |
933 | 2019-01-28 John Baldwin <jhb@FreeBSD.org> |
934 | ||
935 | * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap) | |
936 | (aarch64_fbsd_fpregmap): Move earlier. | |
937 | (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete. | |
938 | (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap | |
939 | instead of individual calls to trad_frame_set_reg_addr. | |
940 | * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move | |
941 | earlier. | |
942 | (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete. | |
943 | (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap | |
944 | instead of individual calls to trad_frame_set_reg_addr. | |
945 | ||
36c25ffa AH |
946 | 2019-01-28 Alan Hayward <alan.hayward@arm.com> |
947 | ||
948 | * CONTRIBUTE: Replace contribution list with wiki link. | |
949 | ||
a0707f3c TT |
950 | 2019-01-25 Tom Tromey <tom@tromey.com> |
951 | ||
952 | * Makefile.in (GDB_CFLAGS): Don't add -I for common. | |
953 | ||
0747795c TT |
954 | 2019-01-25 Tom Tromey <tom@tromey.com> |
955 | ||
956 | * xtensa-linux-nat.c: Fix common/ includes. | |
957 | * xml-support.h: Fix common/ includes. | |
958 | * xml-support.c: Fix common/ includes. | |
959 | * x86-linux-nat.c: Fix common/ includes. | |
960 | * windows-nat.c: Fix common/ includes. | |
961 | * varobj.h: Fix common/ includes. | |
962 | * varobj.c: Fix common/ includes. | |
963 | * value.c: Fix common/ includes. | |
964 | * valops.c: Fix common/ includes. | |
965 | * utils.c: Fix common/ includes. | |
966 | * unittests/xml-utils-selftests.c: Fix common/ includes. | |
967 | * unittests/utils-selftests.c: Fix common/ includes. | |
968 | * unittests/unpack-selftests.c: Fix common/ includes. | |
969 | * unittests/tracepoint-selftests.c: Fix common/ includes. | |
970 | * unittests/style-selftests.c: Fix common/ includes. | |
971 | * unittests/string_view-selftests.c: Fix common/ includes. | |
972 | * unittests/scoped_restore-selftests.c: Fix common/ includes. | |
973 | * unittests/scoped_mmap-selftests.c: Fix common/ includes. | |
974 | * unittests/scoped_fd-selftests.c: Fix common/ includes. | |
975 | * unittests/rsp-low-selftests.c: Fix common/ includes. | |
976 | * unittests/parse-connection-spec-selftests.c: Fix common/ | |
977 | includes. | |
978 | * unittests/optional-selftests.c: Fix common/ includes. | |
979 | * unittests/offset-type-selftests.c: Fix common/ includes. | |
980 | * unittests/observable-selftests.c: Fix common/ includes. | |
981 | * unittests/mkdir-recursive-selftests.c: Fix common/ includes. | |
982 | * unittests/memrange-selftests.c: Fix common/ includes. | |
983 | * unittests/memory-map-selftests.c: Fix common/ includes. | |
984 | * unittests/lookup_name_info-selftests.c: Fix common/ includes. | |
985 | * unittests/function-view-selftests.c: Fix common/ includes. | |
986 | * unittests/environ-selftests.c: Fix common/ includes. | |
987 | * unittests/copy_bitwise-selftests.c: Fix common/ includes. | |
988 | * unittests/common-utils-selftests.c: Fix common/ includes. | |
989 | * unittests/cli-utils-selftests.c: Fix common/ includes. | |
990 | * unittests/array-view-selftests.c: Fix common/ includes. | |
991 | * ui-file.c: Fix common/ includes. | |
992 | * tui/tui-io.c: Fix common/ includes. | |
993 | * tracepoint.h: Fix common/ includes. | |
994 | * tracepoint.c: Fix common/ includes. | |
995 | * tracefile-tfile.c: Fix common/ includes. | |
996 | * top.h: Fix common/ includes. | |
997 | * top.c: Fix common/ includes. | |
998 | * thread.c: Fix common/ includes. | |
999 | * target/waitstatus.h: Fix common/ includes. | |
1000 | * target/waitstatus.c: Fix common/ includes. | |
1001 | * target.h: Fix common/ includes. | |
1002 | * target.c: Fix common/ includes. | |
1003 | * target-memory.c: Fix common/ includes. | |
1004 | * target-descriptions.c: Fix common/ includes. | |
1005 | * symtab.h: Fix common/ includes. | |
1006 | * symfile.c: Fix common/ includes. | |
1007 | * stap-probe.c: Fix common/ includes. | |
1008 | * spu-linux-nat.c: Fix common/ includes. | |
1009 | * sparc-nat.c: Fix common/ includes. | |
1010 | * source.c: Fix common/ includes. | |
1011 | * solib.c: Fix common/ includes. | |
1012 | * solib-target.c: Fix common/ includes. | |
1013 | * ser-unix.c: Fix common/ includes. | |
1014 | * ser-tcp.c: Fix common/ includes. | |
1015 | * ser-pipe.c: Fix common/ includes. | |
1016 | * ser-base.c: Fix common/ includes. | |
1017 | * selftest-arch.c: Fix common/ includes. | |
1018 | * s12z-tdep.c: Fix common/ includes. | |
1019 | * rust-exp.y: Fix common/ includes. | |
1020 | * rs6000-aix-tdep.c: Fix common/ includes. | |
1021 | * riscv-tdep.c: Fix common/ includes. | |
1022 | * remote.c: Fix common/ includes. | |
1023 | * remote-notif.h: Fix common/ includes. | |
1024 | * remote-fileio.h: Fix common/ includes. | |
1025 | * remote-fileio.c: Fix common/ includes. | |
1026 | * regcache.h: Fix common/ includes. | |
1027 | * regcache.c: Fix common/ includes. | |
1028 | * record-btrace.c: Fix common/ includes. | |
1029 | * python/python.c: Fix common/ includes. | |
1030 | * python/py-type.c: Fix common/ includes. | |
1031 | * python/py-inferior.c: Fix common/ includes. | |
1032 | * progspace.h: Fix common/ includes. | |
1033 | * producer.c: Fix common/ includes. | |
1034 | * procfs.c: Fix common/ includes. | |
1035 | * proc-api.c: Fix common/ includes. | |
1036 | * printcmd.c: Fix common/ includes. | |
1037 | * ppc-linux-nat.c: Fix common/ includes. | |
1038 | * parser-defs.h: Fix common/ includes. | |
1039 | * osdata.c: Fix common/ includes. | |
1040 | * obsd-nat.c: Fix common/ includes. | |
1041 | * nat/x86-linux.c: Fix common/ includes. | |
1042 | * nat/x86-linux-dregs.c: Fix common/ includes. | |
1043 | * nat/x86-dregs.h: Fix common/ includes. | |
1044 | * nat/x86-dregs.c: Fix common/ includes. | |
1045 | * nat/ppc-linux.c: Fix common/ includes. | |
1046 | * nat/mips-linux-watch.h: Fix common/ includes. | |
1047 | * nat/mips-linux-watch.c: Fix common/ includes. | |
1048 | * nat/linux-waitpid.c: Fix common/ includes. | |
1049 | * nat/linux-ptrace.h: Fix common/ includes. | |
1050 | * nat/linux-ptrace.c: Fix common/ includes. | |
1051 | * nat/linux-procfs.c: Fix common/ includes. | |
1052 | * nat/linux-personality.c: Fix common/ includes. | |
1053 | * nat/linux-osdata.c: Fix common/ includes. | |
1054 | * nat/linux-namespaces.c: Fix common/ includes. | |
1055 | * nat/linux-btrace.h: Fix common/ includes. | |
1056 | * nat/linux-btrace.c: Fix common/ includes. | |
1057 | * nat/fork-inferior.c: Fix common/ includes. | |
1058 | * nat/amd64-linux-siginfo.c: Fix common/ includes. | |
1059 | * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes. | |
1060 | * nat/aarch64-linux.c: Fix common/ includes. | |
1061 | * nat/aarch64-linux-hw-point.h: Fix common/ includes. | |
1062 | * nat/aarch64-linux-hw-point.c: Fix common/ includes. | |
1063 | * namespace.h: Fix common/ includes. | |
1064 | * mips-linux-tdep.c: Fix common/ includes. | |
1065 | * minsyms.c: Fix common/ includes. | |
1066 | * mi/mi-parse.h: Fix common/ includes. | |
1067 | * mi/mi-main.c: Fix common/ includes. | |
1068 | * mi/mi-cmd-env.c: Fix common/ includes. | |
1069 | * memrange.h: Fix common/ includes. | |
1070 | * memattr.c: Fix common/ includes. | |
1071 | * maint.h: Fix common/ includes. | |
1072 | * maint.c: Fix common/ includes. | |
1073 | * main.c: Fix common/ includes. | |
1074 | * machoread.c: Fix common/ includes. | |
1075 | * location.c: Fix common/ includes. | |
1076 | * linux-thread-db.c: Fix common/ includes. | |
1077 | * linux-nat.c: Fix common/ includes. | |
1078 | * linux-fork.c: Fix common/ includes. | |
1079 | * inline-frame.c: Fix common/ includes. | |
1080 | * infrun.c: Fix common/ includes. | |
1081 | * inflow.c: Fix common/ includes. | |
1082 | * inferior.h: Fix common/ includes. | |
1083 | * inferior.c: Fix common/ includes. | |
1084 | * infcmd.c: Fix common/ includes. | |
1085 | * inf-ptrace.c: Fix common/ includes. | |
1086 | * inf-child.c: Fix common/ includes. | |
1087 | * ia64-linux-nat.c: Fix common/ includes. | |
1088 | * i387-tdep.c: Fix common/ includes. | |
1089 | * i386-tdep.c: Fix common/ includes. | |
1090 | * i386-linux-tdep.c: Fix common/ includes. | |
1091 | * i386-linux-nat.c: Fix common/ includes. | |
1092 | * i386-go32-tdep.c: Fix common/ includes. | |
1093 | * i386-fbsd-tdep.c: Fix common/ includes. | |
1094 | * i386-fbsd-nat.c: Fix common/ includes. | |
1095 | * guile/scm-type.c: Fix common/ includes. | |
1096 | * guile/guile.c: Fix common/ includes. | |
1097 | * go32-nat.c: Fix common/ includes. | |
1098 | * gnu-nat.c: Fix common/ includes. | |
1099 | * gdbthread.h: Fix common/ includes. | |
1100 | * gdbarch-selftests.c: Fix common/ includes. | |
1101 | * gdb_usleep.c: Fix common/ includes. | |
1102 | * gdb_select.h: Fix common/ includes. | |
1103 | * gdb_bfd.c: Fix common/ includes. | |
1104 | * gcore.c: Fix common/ includes. | |
1105 | * fork-child.c: Fix common/ includes. | |
1106 | * findvar.c: Fix common/ includes. | |
1107 | * fbsd-nat.c: Fix common/ includes. | |
1108 | * event-top.c: Fix common/ includes. | |
1109 | * event-loop.c: Fix common/ includes. | |
1110 | * dwarf2read.c: Fix common/ includes. | |
1111 | * dwarf2loc.c: Fix common/ includes. | |
1112 | * dwarf2-frame.c: Fix common/ includes. | |
1113 | * dwarf-index-cache.c: Fix common/ includes. | |
1114 | * dtrace-probe.c: Fix common/ includes. | |
1115 | * disasm-selftests.c: Fix common/ includes. | |
1116 | * defs.h: Fix common/ includes. | |
1117 | * csky-tdep.c: Fix common/ includes. | |
1118 | * cp-valprint.c: Fix common/ includes. | |
1119 | * cp-support.h: Fix common/ includes. | |
1120 | * cp-support.c: Fix common/ includes. | |
1121 | * corelow.c: Fix common/ includes. | |
1122 | * completer.h: Fix common/ includes. | |
1123 | * completer.c: Fix common/ includes. | |
1124 | * compile/compile.c: Fix common/ includes. | |
1125 | * compile/compile-loc2c.c: Fix common/ includes. | |
1126 | * compile/compile-cplus-types.c: Fix common/ includes. | |
1127 | * compile/compile-cplus-symbols.c: Fix common/ includes. | |
1128 | * command.h: Fix common/ includes. | |
1129 | * cli/cli-dump.c: Fix common/ includes. | |
1130 | * cli/cli-cmds.c: Fix common/ includes. | |
1131 | * charset.c: Fix common/ includes. | |
1132 | * build-id.c: Fix common/ includes. | |
1133 | * btrace.h: Fix common/ includes. | |
1134 | * btrace.c: Fix common/ includes. | |
1135 | * breakpoint.h: Fix common/ includes. | |
1136 | * breakpoint.c: Fix common/ includes. | |
1137 | * ax.h: | |
1138 | (enum agent_op): Fix common/ includes. | |
1139 | * ax-general.c (struct aop_map): Fix common/ includes. | |
1140 | * ax-gdb.c: Fix common/ includes. | |
1141 | * auxv.c: Fix common/ includes. | |
1142 | * auto-load.c: Fix common/ includes. | |
1143 | * arm-tdep.c: Fix common/ includes. | |
1144 | * arch/riscv.c: Fix common/ includes. | |
1145 | * arch/ppc-linux-common.c: Fix common/ includes. | |
1146 | * arch/i386.c: Fix common/ includes. | |
1147 | * arch/arm.c: Fix common/ includes. | |
1148 | * arch/arm-linux.c: Fix common/ includes. | |
1149 | * arch/arm-get-next-pcs.c: Fix common/ includes. | |
1150 | * arch/amd64.c: Fix common/ includes. | |
1151 | * arch/aarch64.c: Fix common/ includes. | |
1152 | * arch/aarch64-insn.c: Fix common/ includes. | |
1153 | * arch-utils.c: Fix common/ includes. | |
1154 | * amd64-windows-tdep.c: Fix common/ includes. | |
1155 | * amd64-tdep.c: Fix common/ includes. | |
1156 | * amd64-sol2-tdep.c: Fix common/ includes. | |
1157 | * amd64-obsd-tdep.c: Fix common/ includes. | |
1158 | * amd64-nbsd-tdep.c: Fix common/ includes. | |
1159 | * amd64-linux-tdep.c: Fix common/ includes. | |
1160 | * amd64-linux-nat.c: Fix common/ includes. | |
1161 | * amd64-fbsd-tdep.c: Fix common/ includes. | |
1162 | * amd64-fbsd-nat.c: Fix common/ includes. | |
1163 | * amd64-dicos-tdep.c: Fix common/ includes. | |
1164 | * amd64-darwin-tdep.c: Fix common/ includes. | |
1165 | * agent.c: Fix common/ includes. | |
1166 | * ada-lang.h: Fix common/ includes. | |
1167 | * ada-lang.c: Fix common/ includes. | |
1168 | * aarch64-tdep.c: Fix common/ includes. | |
1169 | ||
2f5c153e TT |
1170 | 2019-01-25 Tom Tromey <tom@tromey.com> |
1171 | ||
1172 | * common/create-version.sh: Use common/version.h. | |
1173 | ||
adc6a863 PA |
1174 | 2019-01-24 Pedro Alves <palves@redhat.com> |
1175 | ||
1176 | * infrun.c (signal_stop, signal_print, signal_program) | |
1177 | (signal_catch, signal_pass): Now arrays instead of pointers. | |
1178 | (update_signals_program_target, do_target_resume) | |
1179 | (signal_catch_update, handle_command, _initialize_infrun): Adjust. | |
1180 | * linux-nat.c (linux_nat_target::pass_signals) | |
1181 | (linux_nat_target::create_inferior, linux_nat_target::attach): | |
1182 | Adjust. | |
1183 | * linux-nat.h (linux_nat_target::pass_signals): Adjust. | |
1184 | * nto-procfs.c (nto_procfs_target::pass_signals): Adjust. | |
1185 | * procfs.c (procfs_target::pass_signals): Adjust. | |
1186 | * record-full.c (record_full_target::resume): Adjust. | |
1187 | * remote.c (remote_target::pass_signals) | |
1188 | (remote_target::program_signals): Adjust. | |
1189 | * target-debug.h (target_debug_print_signals): Now takes a | |
1190 | gdb::array_view as parameter. Adjust. | |
1191 | * target.h (target_ops) <pass_signals, program_signals>: Replace | |
1192 | pointer and length parameters with gdb::array_view. | |
1193 | (target_pass_signals, target_program_signals): Likewise. | |
1194 | * target-delegates.c: Regenerate. | |
1195 | ||
3046d67a PA |
1196 | 2019-01-24 Pedro Alves <palves@redhat.com> |
1197 | ||
1198 | * common/forward-scope-exit.h | |
1199 | (forward_scope_exit::forward_scope_exit): Pass arguments to | |
1200 | m_bind_function directly, instead of creating a std::bind and | |
1201 | copying that. | |
1202 | ||
353229bf AH |
1203 | 2019-01-24 Alan Hayward <alan.hayward@arm.com> |
1204 | ||
1205 | * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check | |
1206 | for static members. | |
1207 | (pass_in_v_vfp_candidate): Likewise. | |
1208 | ||
311dc83a TT |
1209 | 2019-01-23 Tom Tromey <tom@tromey.com> |
1210 | Pedro Alves <palves@redhat.com> | |
1211 | ||
1212 | * regcache.c (class regcache_invalidator): Remove. | |
1213 | (regcache::raw_write): Use make_scope_exit. | |
1214 | ||
296bd123 TT |
1215 | 2019-01-23 Tom Tromey <tom@tromey.com> |
1216 | ||
1217 | * ui-out.h (class ui_out_emit_type): Update comment. | |
1218 | ||
979a0d13 TT |
1219 | 2019-01-23 Tom Tromey <tom@tromey.com> |
1220 | ||
1221 | * infrun.c (fetch_inferior_event): Update comment. | |
1222 | ||
d238133d TT |
1223 | 2019-01-23 Tom Tromey <tom@tromey.com> |
1224 | Pedro Alves <palves@redhat.com> | |
1225 | ||
1226 | * infrun.c (reinstall_readline_callback_handler_cleanup): Remove | |
1227 | parameter. | |
1228 | (fetch_inferior_event): Use SCOPE_EXIT. | |
1229 | ||
1230 | ||
9885e6bb TT |
1231 | 2019-01-23 Tom Tromey <tom@tromey.com> |
1232 | Pedro Alves <palves@redhat.com> | |
1233 | ||
1234 | * infrun.c (disable_thread_events): Delete. | |
1235 | (stop_all_threads): Use SCOPE_EXIT. | |
1236 | ||
286526c1 TT |
1237 | 2019-01-23 Tom Tromey <tom@tromey.com> |
1238 | Pedro Alves <palves@redhat.com> | |
1239 | ||
1240 | * symfile.c: Include forward-scope-exit.h. | |
1241 | (clear_symtab_users_cleanup): Replace forward declaration with | |
1242 | a FORWARD_SCOPE_EXIT. | |
1243 | (syms_from_objfile_1): Use the forward_scope_exit and | |
1244 | gdb::optional instead of cleanup_function. | |
1245 | (reread_symbols): Use the forward_scope_exit instead of | |
1246 | cleanup_function. | |
1247 | (clear_symtab_users_cleanup): Remove function. | |
1248 | ||
1db93f14 TT |
1249 | 2019-01-23 Tom Tromey <tom@tromey.com> |
1250 | Pedro Alves <palves@redhat.com> | |
1251 | ||
1252 | * linux-nat.c: Include scope-exit.h. | |
1253 | (cleanup_target_stop): Remove. | |
1254 | (linux_nat_target::static_tracepoint_markers_by_strid): Use | |
1255 | SCOPE_EXIT. | |
1256 | ||
2cc83d1e TT |
1257 | 2019-01-23 Tom Tromey <tom@tromey.com> |
1258 | Pedro Alves <palves@redhat.com> | |
1259 | ||
1260 | * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove. | |
1261 | (call_function_by_hand_dummy): Use SCOPE_EXIT. | |
1262 | ||
694c6bf5 TT |
1263 | 2019-01-23 Tom Tromey <tom@tromey.com> |
1264 | Andrew Burgess <andrew.burgess@embecosm.com> | |
1265 | Pedro Alves <palves@redhat.com> | |
1266 | ||
1267 | * infrun.c (fetch_inferior_event): Use scope_exit. | |
1268 | * utils.h (make_bpstat_clear_actions_cleanup): Don't declare. | |
1269 | * top.c (execute_command): Use scope_exit. | |
1270 | * breakpoint.c (bpstat_do_actions): Use scope_exit. | |
1271 | * utils.c (do_bpstat_clear_actions_cleanup) | |
1272 | (make_bpstat_clear_actions_cleanup): Remove. | |
1273 | ||
4c41382a TT |
1274 | 2019-01-23 Tom Tromey <tom@tromey.com> |
1275 | Pedro Alves <palves@redhat.com> | |
1276 | ||
1277 | * infrun.c: Include "common/scope-exit.h" | |
1278 | (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove. | |
1279 | (wait_for_inferior): Use SCOPE_EXIT. | |
1280 | (fetch_inferior_event): Use scope_exit. | |
1281 | ||
89f8fb50 TT |
1282 | 2019-01-23 Tom Tromey <tom@tromey.com> |
1283 | Pedro Alves <palves@redhat.com> | |
1284 | ||
1285 | * breakpoint.c (create_breakpoint): Remove cleanup. | |
1286 | ||
5419bdae TT |
1287 | 2019-01-23 Tom Tromey <tom@tromey.com> |
1288 | Andrew Burgess <andrew.burgess@embecosm.com> | |
1289 | Pedro Alves <palves@redhat.com> | |
1290 | ||
e587ef42 PA |
1291 | 2019-01-23 Pedro Alves <palves@redhat.com> |
1292 | ||
1293 | * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT. | |
1294 | ||
77f0e74c PA |
1295 | 2019-01-23 Pedro Alves <palves@redhat.com> |
1296 | Andrew Burgess <andrew.burgess@embecosm.com> | |
1297 | ||
1298 | * gdbthread.h: Include "common/forward-scope-exit.h". | |
1299 | (scoped_finish_thread_state): Redefine custom class in terms of | |
1300 | forward_scope_exit. | |
1301 | ||
5b9b3e53 PA |
1302 | 2019-01-23 Pedro Alves <palves@redhat.com> |
1303 | Andrew Burgess <andrew.burgess@embecosm.com> | |
1304 | ||
1305 | * common/forward-scope-exit.h: New file. | |
1306 | ||
54b65c9b PA |
1307 | 2019-01-23 Pedro Alves <palves@redhat.com> |
1308 | Andrew Burgess <andrew.burgess@embecosm.com> | |
1309 | Tom Tromey <tom@tromey.com> | |
1310 | ||
1311 | * common/scope-exit.h: New file. | |
1312 | ||
cf08fb29 PA |
1313 | 2019-01-23 Pedro Alves <palves@redhat.com> |
1314 | ||
1315 | * common/preprocessor.h (ESC): Rename to ... | |
1316 | (ESC_PARENS): ... this. | |
1317 | * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2) | |
1318 | (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust. | |
1319 | ||
ae73e2e2 TT |
1320 | 2019-01-23 Tom Tromey <tom@tromey.com> |
1321 | ||
1322 | * language.h (class scoped_switch_to_sym_language_if_auto): | |
1323 | Initialize m_lang in both cases. | |
1324 | ||
6594e122 AH |
1325 | 2019-01-23 Alan Hayward <alan.hayward@arm.com> |
1326 | ||
1327 | * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW | |
1328 | with XCNEW. | |
1329 | ||
a7c9855d TT |
1330 | 2019-01-22 Tom Tromey <tom@tromey.com> |
1331 | ||
1332 | * corelow.c: Do not include sys/file.h. | |
1333 | ||
93cc1d53 TT |
1334 | 2019-01-22 Tom Tromey <tom@tromey.com> |
1335 | ||
1336 | * tui/tui-wingeneral.h: Include gdb_curses.h. | |
1337 | ||
38561778 TT |
1338 | 2019-01-22 Tom Tromey <tom@tromey.com> |
1339 | ||
1340 | * source-cache.h (class source_cache) <get_source_lines, | |
1341 | get_plain_source_lines, extract_lines>: Rename "lines" parameter. | |
1342 | ||
37b3ab5b TT |
1343 | 2019-01-22 Tom Tromey <tom@tromey.com> |
1344 | ||
1345 | * remote-fileio.h (struct remote_target): Declare. | |
1346 | ||
3fabc016 TT |
1347 | 2019-01-22 Tom Tromey <tom@tromey.com> |
1348 | ||
1349 | * python/py-arch.c: Do not include py-ref.h. | |
1350 | * python/py-bpevent.c: Do not include py-ref.h. | |
1351 | * python/py-cmd.c: Do not include py-ref.h. | |
1352 | * python/py-continueevent.c: Do not include py-ref.h. | |
1353 | * python/py-event.h: Do not include py-ref.h. | |
1354 | * python/py-evtregistry.c: Do not include py-ref.h. | |
1355 | * python/py-finishbreakpoint.c: Do not include py-ref.h. | |
1356 | * python/py-frame.c: Do not include py-ref.h. | |
1357 | * python/py-framefilter.c: Do not include py-ref.h. | |
1358 | * python/py-function.c: Do not include py-ref.h. | |
1359 | * python/py-infevents.c: Do not include py-ref.h. | |
1360 | * python/py-linetable.c: Do not include py-ref.h. | |
1361 | * python/py-objfile.c: Do not include py-ref.h. | |
1362 | * python/py-param.c: Do not include py-ref.h. | |
1363 | * python/py-prettyprint.c: Do not include py-ref.h. | |
1364 | * python/py-progspace.c: Do not include py-ref.h. | |
1365 | * python/py-symbol.c: Do not include py-ref.h. | |
1366 | * python/py-symtab.c: Do not include py-ref.h. | |
1367 | * python/py-type.c: Do not include py-ref.h. | |
1368 | * python/py-unwind.c: Do not include py-ref.h. | |
1369 | * python/py-utils.c: Do not include py-ref.h. | |
1370 | * python/py-value.c: Do not include py-ref.h. | |
1371 | * python/py-varobj.c: Do not include py-ref.h. | |
1372 | * python/py-xmethods.c: Do not include py-ref.h. | |
1373 | * python/python.c: Do not include py-ref.h. | |
1374 | * varobj.c: Do not include py-ref.h. | |
1375 | ||
6b4d7774 TT |
1376 | 2019-01-22 Tom Tromey <tom@tromey.com> |
1377 | ||
1378 | * objfiles.h (struct objfile_per_bfd_storage): Use "struct" | |
1379 | keyword for bcache. | |
1380 | ||
7af7e9b5 TT |
1381 | 2019-01-22 Tom Tromey <tom@tromey.com> |
1382 | ||
1383 | * compile/compile-cplus-types.c: Remove a comment by #include. | |
1384 | ||
951d1049 TT |
1385 | 2019-01-22 Tom Tromey <tom@tromey.com> |
1386 | ||
1387 | * compile/gcc-c-plugin.h: Include compile-internal.h. | |
1388 | ||
d65d5705 TT |
1389 | 2019-01-22 Tom Tromey <tom@tromey.com> |
1390 | ||
1391 | * stabsread.c (EXTERN): Do not define. | |
1392 | (symnum, next_symbol_text_func, processing_gcc_compilation) | |
1393 | (within_function, global_sym_chain, global_stabs) | |
1394 | (previous_stab_code, this_object_header_files) | |
1395 | (n_this_object_header_files) | |
1396 | (n_allocated_this_object_header_files): Define. | |
1397 | * stabsread.h (EXTERN): Never define. Use "extern". | |
1398 | ||
b6fb1ee5 PW |
1399 | 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
1400 | ||
1401 | * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for | |
1402 | history_value. | |
1403 | ||
be6d4f74 TT |
1404 | 2019-01-21 Tom Tromey <tom@tromey.com> |
1405 | ||
1406 | * ui-out.c: Fix includes. | |
1407 | * tui/tui-source.c: Fix includes. | |
1408 | * target.c: Fix includes. | |
1409 | * remote.c: Fix includes. | |
1410 | * regcache.c: Fix includes. | |
1411 | * python/py-block.c: Fix includes. | |
1412 | * printcmd.c: Fix includes. | |
1413 | * or1k-tdep.c: Fix includes. | |
1414 | * mi/mi-main.c: Fix includes. | |
1415 | * m32r-tdep.c: Fix includes. | |
1416 | * csky-tdep.c: Fix includes. | |
1417 | * compile/compile-cplus-types.c: Fix includes. | |
1418 | * cli/cli-interp.c: Fix includes. | |
1419 | ||
73021deb AH |
1420 | 2019-01-21 Alan Hayward <alan.hayward@arm.com> |
1421 | ||
1422 | * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check | |
1423 | for padding. | |
1424 | ||
7932255d TT |
1425 | 2019-01-16 Tom Tromey <tom@tromey.com> |
1426 | ||
1427 | * objfiles.h (struct minimal_symbol_iterator): Rename. Move | |
1428 | earlier. | |
1429 | (struct objfile) <msymbols_range>: Move from top level. | |
1430 | <msymbols>: New method. | |
1431 | (class objfile_msymbols): Remove. | |
1432 | * symtab.c (default_collect_symbol_completion_matches_break_on): | |
1433 | Update. | |
1434 | * symmisc.c (dump_msymbols): Update. | |
1435 | * stabsread.c (scan_file_globals): Update. | |
1436 | * objc-lang.c (info_selectors_command, info_classes_command) | |
1437 | (find_methods): Update. | |
1438 | * minsyms.c (find_solib_trampoline_target): Update. | |
1439 | * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update. | |
1440 | * coffread.c (coff_symfile_read): Update. | |
1441 | * ada-lang.c (ada_lookup_simple_minsym) | |
1442 | (ada_collect_symbol_completion_matches): Update. | |
1443 | ||
604b1bfb TT |
1444 | 2019-01-16 Tom Tromey <tom@tromey.com> |
1445 | ||
1446 | * objfiles.h (class objfile_msymbols) <iterator>: Change argument | |
1447 | type. Remove no-argument constructor. | |
1448 | <iterator::operator++>: Simplify. | |
1449 | <begin>: Update. | |
1450 | <end>: Use minimal_symbol_count. | |
1451 | ||
f252c6d5 TT |
1452 | 2019-01-16 Tom Tromey <tom@tromey.com> |
1453 | ||
1454 | * objfiles.h (struct objfile) <psymtabs>: New method. | |
1455 | (class objfile_psymtabs): Remove. | |
1456 | * psymtab.h (class psymtab_storage) <partial_symtab_range>: New | |
1457 | typedef. | |
1458 | <range>: New method. | |
1459 | (require_partial_symbols): Change return type. | |
1460 | * psymtab.c (require_partial_symbols) | |
1461 | (psym_expand_symtabs_matching): Update. | |
1462 | * mdebugread.c (parse_partial_symbols): Update. | |
1463 | * dbxread.c (dbx_end_psymtab): Update. | |
1464 | ||
b669c953 TT |
1465 | 2019-01-15 Tom Tromey <tom@tromey.com> |
1466 | ||
1467 | * symtab.c (lookup_objfile_from_block) | |
1468 | (lookup_symbol_in_objfile_symtabs) | |
1469 | (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab) | |
1470 | (find_line_symtab, info_sources_command) | |
1471 | (default_collect_symbol_completion_matches_break_on) | |
1472 | (make_source_files_completion_list): Update. | |
1473 | * symmisc.c (print_objfile_statistics, dump_objfile) | |
1474 | (maintenance_print_symbols, maintenance_info_symtabs) | |
1475 | (maintenance_check_symtabs, maintenance_info_line_tables): | |
1476 | Update. | |
1477 | * source.c (select_source_symtab) | |
1478 | (forget_cached_source_info_for_objfile): Update. | |
1479 | * objfiles.h (class objfile_compunits): Remove. | |
1480 | (struct objfile) <compunits_range>: New typedef. | |
1481 | (compunits): New method. | |
1482 | * objfiles.c (objfile_relocate1): Update. | |
1483 | * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update. | |
1484 | * maint.c (count_symtabs_and_blocks): Update. | |
1485 | * linespec.c (iterate_over_all_matching_symtabs): Update. | |
1486 | * cp-support.c (add_symbol_overload_list_qualified): Update. | |
1487 | * coffread.c (coff_symtab_read): Update. | |
1488 | * ada-lang.c (add_nonlocal_symbols) | |
1489 | (ada_collect_symbol_completion_matches) | |
1490 | (ada_add_global_exceptions): Update. | |
1491 | ||
7e955d83 TT |
1492 | 2019-01-15 Tom Tromey <tom@tromey.com> |
1493 | ||
1494 | * progspace.h (program_space) <objfiles_safe_range>: New | |
1495 | typedef. | |
1496 | <objfiles_safe>: New method. | |
1497 | * objfiles.h (class all_objfiles_safe): Remove. | |
1498 | * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update. | |
1499 | * jit.c (jit_inferior_exit_hook): Update. | |
1500 | ||
2030c079 TT |
1501 | 2019-01-17 Tom Tromey <tom@tromey.com> |
1502 | ||
1503 | * progspace.h (program_space) <objfiles_range>: New typedef. | |
1504 | <objfiles>: New method. | |
1505 | <objfiles_head>: Rename from objfiles. | |
1506 | (object_files): Update. | |
1507 | * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update. | |
1508 | * guile/scm-pretty-print.c | |
1509 | (ppscm_find_pretty_printer_from_objfiles): Update. | |
1510 | * guile/scm-objfile.c (gdbscm_objfiles): Update. | |
1511 | * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): | |
1512 | Update. | |
1513 | * python/py-progspace.c (pspy_get_objfiles): Update. | |
1514 | * python/py-prettyprint.c (find_pretty_printer_from_objfiles): | |
1515 | Update. | |
1516 | * python/py-objfile.c (objfpy_lookup_objfile_by_name) | |
1517 | (objfpy_lookup_objfile_by_build_id): Update. | |
1518 | * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update. | |
1519 | * windows-tdep.c (windows_iterate_over_objfiles_in_search_order): | |
1520 | Update. | |
1521 | * symtab.c (iterate_over_symtabs, matching_obj_sections) | |
1522 | (expand_symtab_containing_pc, lookup_objfile_from_block) | |
1523 | (lookup_static_symbol, basic_lookup_transparent_type) | |
1524 | (find_pc_sect_compunit_symtab, find_symbol_at_address) | |
1525 | (find_line_symtab, info_sources_command) | |
1526 | (default_collect_symbol_completion_matches_break_on) | |
1527 | (make_source_files_completion_list, find_main_name): Update. | |
1528 | * symmisc.c (print_symbol_bcache_statistics) | |
1529 | (print_objfile_statistics, maintenance_print_symbols) | |
1530 | (maintenance_print_msymbols, maintenance_print_objfiles) | |
1531 | (maintenance_info_symtabs, maintenance_check_symtabs) | |
1532 | (maintenance_expand_symtabs, maintenance_info_line_tables): | |
1533 | Update. | |
1534 | * symfile.c (remove_symbol_file_command, overlay_invalidate_all) | |
1535 | (find_pc_overlay, find_pc_mapped_section, list_overlays_command) | |
1536 | (map_overlay_command, unmap_overlay_command) | |
1537 | (simple_overlay_update, expand_symtabs_matching) | |
1538 | (map_symbol_filenames): Update. | |
1539 | * symfile-debug.c (set_debug_symfile): Update. | |
1540 | * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame): | |
1541 | Update. | |
1542 | * source.c (select_source_symtab, forget_cached_source_info): | |
1543 | Update. | |
1544 | * solib.c (solib_read_symbols): Update. | |
1545 | * solib-spu.c (append_ocl_sos): Update. | |
1546 | * psymtab.c (maintenance_print_psymbols) | |
1547 | (maintenance_info_psymtabs, maintenance_check_psymtabs): Update. | |
1548 | * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update. | |
1549 | * printcmd.c (info_symbol_command): Update. | |
1550 | * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): | |
1551 | Update. | |
1552 | * objfiles.h (class all_objfiles): Remove. | |
1553 | * objfiles.c (have_partial_symbols, have_full_symbols) | |
1554 | (have_minimal_symbols, qsort_cmp, update_section_map) | |
1555 | (shared_objfile_contains_address_p) | |
1556 | (default_iterate_over_objfiles_in_search_order): Update. | |
1557 | * objc-lang.c (info_selectors_command, info_classes_command) | |
1558 | (find_methods): Update. | |
1559 | * minsyms.c (find_solib_trampoline_target): Update. | |
1560 | * maint.c (maintenance_info_sections) | |
1561 | (maintenance_translate_address, count_symtabs_and_blocks): | |
1562 | Update. | |
1563 | * main.c (captured_main_1): Update. | |
1564 | * linux-thread-db.c (try_thread_db_load_from_pdir) | |
1565 | (has_libpthread): Update. | |
1566 | * linespec.c (iterate_over_all_matching_symtabs) | |
1567 | (search_minsyms_for_name): Update. | |
1568 | * jit.c (jit_find_objf_with_entry_addr): Update. | |
1569 | * hppa-tdep.c (find_unwind_entry) | |
1570 | (hppa_lookup_stub_minimal_symbol): Update. | |
1571 | * gcore.c (gcore_create_callback, objfile_find_memory_regions): | |
1572 | Update. | |
1573 | * elfread.c (elf_gnu_ifunc_resolve_by_cache) | |
1574 | (elf_gnu_ifunc_resolve_by_got): Update. | |
1575 | * dwarf2-frame.c (dwarf2_frame_find_fde): Update. | |
1576 | * dwarf-index-write.c (save_gdb_index_command): Update. | |
1577 | * cp-support.c (add_symbol_overload_list_qualified): Update. | |
1578 | * breakpoint.c (create_overlay_event_breakpoint) | |
1579 | (create_longjmp_master_breakpoint) | |
1580 | (create_std_terminate_master_breakpoint) | |
1581 | (create_exception_master_breakpoint): Update. | |
1582 | * blockframe.c (find_pc_partial_function): Update. | |
1583 | * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols) | |
1584 | (ada_collect_symbol_completion_matches) | |
1585 | (ada_add_global_exceptions): Update. | |
1586 | ||
776489e0 TT |
1587 | 2019-01-17 Tom Tromey <tom@tromey.com> |
1588 | ||
1589 | * solib-target.c (lm_info_target_p): Remove typedef. Don't | |
1590 | declare VEC. | |
1591 | (solib_target_parse_libraries): Change return type. | |
1592 | (library_list_start_segment, library_list_start_section) | |
1593 | (library_list_end_library, library_list_start_library); Update. | |
1594 | (solib_target_free_library_list): Remove. | |
1595 | (solib_target_parse_libraries): Remove cleanup. Change return | |
1596 | type. | |
1597 | (solib_target_current_sos): Update. | |
1598 | ||
6471e7d2 TT |
1599 | 2019-01-17 Tom Tromey <tromey@bapiya> |
1600 | ||
1601 | * valprint.c: Replace "the the" with "the". | |
1602 | * symtab.c: Replace "the the" with "the". | |
1603 | * solib.c: Replace "the the" with "the". | |
1604 | * solib-dsbt.c: Replace "the the" with "the". | |
1605 | * linespec.c: Replace "the the" with "the". | |
1606 | * dwarf2loc.h: Replace "the the" with "the". | |
1607 | * amd64-windows-tdep.c: Replace "the the" with "the". | |
1608 | * aarch64-tdep.c: Replace "the the" with "the". | |
1609 | ||
c24bdb02 KS |
1610 | 2019-01-16 Keith Seitz <keiths@redhat.com> |
1611 | ||
1612 | PR gdb/23773 | |
1613 | * dwarf2read.c (dwarf2_cu) <ancestor>: New field. | |
1614 | <builder>: Rename to .. | |
1615 | <m_builder>: ... this and make private. | |
1616 | (dwarf2_cu::get_builder): New method. Change all users of | |
1617 | `builder' to use this method. | |
1618 | (dwarf2_start_symtab): Move to ... | |
1619 | (dwarf2_cu::start_symtab): ... here. Update all callers | |
1620 | (setup_type_unit_groups): Move to ... | |
1621 | (dwarf2_cu::setup_type_unit_groups): ... here. Update all | |
1622 | callers. | |
1623 | (dwarf2_cu::reset_builder): New method. | |
1624 | (process_full_compunit, process_full_type_unit): Use | |
1625 | dwarf2_cu::reset_builder. | |
1626 | (follow_die_offset): Record the ancestor CU if it is different | |
1627 | from the followed DIE's CU. | |
1628 | (follow_die_sig_1): Likewise. | |
1629 | ||
8d64371b TT |
1630 | 2019-01-15 Tom Tromey <tom@tromey.com> |
1631 | ||
1632 | * remote.c (class remote_state) <buf>: Now a char_vector. | |
1633 | <buf_size>: Remove. | |
1634 | (remote_target::getpkt): Change type of buf. Remove sizeof_buf | |
1635 | parameter. | |
1636 | (remote_target::getpkt_or_notif_sane_1) | |
1637 | (remote_target::getpkt_sane) | |
1638 | (remote_target::getpkt_or_notif_sane): Likewise. | |
1639 | (class remote_target) <putpkt>: New overload. | |
1640 | (remote_target::read_frame): Change type of "buf_p". Remove | |
1641 | sizeof_p parameter. | |
1642 | (packet_ok): New overload. | |
1643 | (packet_check_result): New overload. | |
1644 | Update all uses. | |
1645 | ||
bb277751 TT |
1646 | 2019-01-14 Tom Tromey <tom@tromey.com> |
1647 | ||
1648 | * remote-notif.c (handle_notification, remote_notif_ack) | |
1649 | (remote_notif_parse): Make "buf" const. | |
1650 | * remote-notif.h (struct notif_client) <parse, ack>: Make "buf" | |
1651 | const. | |
1652 | (remote_notif_parse, remote_notif_ack, handle_notification): | |
1653 | Likewise. | |
1654 | * remote.c (remote_notif_stop_parse): Make "buf" const. | |
1655 | (remote_target::remote_parse_stop_reply): Make "buf" const. | |
1656 | (remote_notif_stop_ack): Make "buf" const. | |
1657 | ||
05be00a8 TT |
1658 | 2019-01-14 Tom Tromey <tom@tromey.com> |
1659 | ||
1660 | * remote.c (remote_console_output): Make parameter const. | |
1661 | ||
491adeca TT |
1662 | 2019-01-14 Tom Tromey <tom@tromey.com> |
1663 | ||
1664 | * target-debug.h (target_debug_print_signals): Constify. | |
1665 | * nto-procfs.c (nto_procfs_target::pass_signals): Update. | |
1666 | * procfs.c (procfs_target::pass_signals): Update. | |
1667 | * linux-nat.c (linux_nat_target::pass_signals): Update. | |
1668 | * linux-nat.h (class linux_nat_target) <pass_signals>: Update. | |
1669 | * target-delegates.c: Rebuild. | |
1670 | * remote.c (remote_target::program_signals): Update. | |
1671 | (remote_target::pass_signals): Update. | |
1672 | * target.c (target_pass_signals): Constify argument. | |
1673 | (target_program_signals): Likewise. | |
1674 | * target.h (struct target_ops) <pass_signals, program_signals>: | |
1675 | Constify argument. | |
1676 | (target_pass_signals, target_program_signals): Constify argument. | |
1677 | ||
bbd94648 TT |
1678 | 2019-01-14 Tom Tromey <tom@tromey.com> |
1679 | ||
1680 | PR tui/28819: | |
1681 | * tui/tui-io.c (gdb_wgetch): Print \r when needed. | |
1682 | ||
6f072a10 PFC |
1683 | 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com> |
1684 | ||
1685 | * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New | |
1686 | field. | |
1687 | * rs6000-tdep.c: Include reggroups.h. | |
1688 | (IS_V_ALIAS_PSEUDOREG): Define. | |
1689 | (rs6000_register_name): Return names for the "vX" aliases. | |
1690 | (rs6000_pseudo_register_type): Return type for the "vX" aliases. | |
1691 | (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX" | |
1692 | aliases. Call default_register_reggroup_p for all other | |
1693 | pseudo-registers. | |
1694 | (v_alias_pseudo_register_read, v_alias_pseudo_register_write): | |
1695 | New functions. | |
1696 | (rs6000_pseudo_register_read, rs6000_pseudo_register_write): | |
1697 | Handle "vX" aliases. | |
1698 | (v_alias_pseudo_register_collect): New function. | |
1699 | (rs6000_ax_pseudo_register_collect): Handle "vX" aliases. | |
1700 | (rs6000_gdbarch_init): Initialize "vX" aliases as | |
1701 | pseudo-registers. Restore registration of | |
1702 | rs6000_pseudo_register_reggroup_p with | |
1703 | set_tdesc_pseudo_register_reggroup_p. | |
1704 | ||
1a782351 MF |
1705 | 2019-01-13 Max Filippov <jcmvbkbc@gmail.com> |
1706 | ||
1707 | * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update | |
1708 | tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and | |
1709 | set_gdbarch_num_pseudo_regs. | |
1710 | ||
d73cff18 PW |
1711 | 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
1712 | ||
1713 | * cli/cli-style.h (class cli_style_option): <add_setshow_commands> | |
1714 | Remove arg prefixname, add do_set and do_show. | |
1715 | Add member functions set_list and show_list. | |
1716 | * cli/cli-style.c (class cli_style_option): Update accordingly. | |
1717 | (style_set_list): Move to file scope. | |
1718 | (style_show_list): Likewise. | |
1719 | (set_style): Call help_list. | |
1720 | (show_style): Call cmd_show_list. | |
1721 | (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS. | |
1722 | Update to use the new macro. | |
1723 | ||
60a90376 JB |
1724 | 2019-10-12 Joel Brobecker <brobecker@adacore.com> |
1725 | ||
1726 | * ada-lang.c (_initialize_ada_language): Expand the help text | |
1727 | for the "catch exception" command. | |
1728 | ||
9d7c67bf PW |
1729 | 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
1730 | ||
1731 | * symtab.c (matching_obj_sections): Initialize obj, | |
1732 | declare it closer to its usage. | |
1733 | ||
7cf47dc4 TT |
1734 | 2019-01-10 Tom Tromey <tom@tromey.com> |
1735 | ||
1736 | * thread-iter.h (inf_threads_iterator): Use next_iterator. | |
1737 | (basic_inf_threads_range): Remove. | |
1738 | (inf_threads_range, inf_non_exited_threads_range) | |
1739 | (safe_inf_threads_range): Use next_adapter. | |
1740 | ||
d3cb6808 KS |
1741 | 2019-01-10 Keith Seitz <keiths@redhat.com> |
1742 | ||
1743 | PR gdb/23712 | |
1744 | PR symtab/23010 | |
1745 | * dwarf2read.c (dw2_add_symbol_to_list): Remove. | |
1746 | (fixup_go_packaging, new_symbol): Use add_symbol_to_list. | |
1747 | ||
63a20375 KS |
1748 | 2019-01-10 Keith Seitz <keiths@redhat.com> |
1749 | ||
1750 | PR gdb/23712 | |
1751 | PR symtab/23010 | |
1752 | * dictionary.c (pending_to_vector): Remove. | |
1753 | (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1): | |
1754 | Remove _1 suffix, replacing functions of the same name. Update | |
1755 | all callers. | |
1756 | (dict_create_hashed, dict_create_hashed_expandable) | |
1757 | (dict_create_linear, dict_create_linear_expandable, dict_free) | |
1758 | (dict_add_symbol, dict_add_pending, dict_size, dict_empty): | |
1759 | Make functions static. | |
1760 | ||
b026f593 KS |
1761 | 2019-01-10 Keith Seitz <keiths@redhat.com> |
1762 | ||
1763 | PR gdb/23712 | |
1764 | PR symtab/23010 | |
1765 | * dictionary.h (struct dictionary): Replace declaration with | |
1766 | multidictionary. | |
1767 | (dict_create_hashed, dict_create_hashed_expandable) | |
1768 | (dict_create_linear, dict_create_linear_expandable) | |
1769 | (dict_free, dict_add_symbol, dict_add_pending, dict_empty) | |
1770 | (dict_iterator_first, dict_iterator_next, dict_iter_match_first) | |
1771 | (dict_iter_match_next, dict_size): Rename to "mdict_" versions | |
1772 | taking multidictionary argument. | |
1773 | [ALL_DICT_SYMBOLS]: Update for multidictionary. | |
1774 | * block.h (struct block) <dict>: Change to multidictionary | |
1775 | and rename `multidict'. | |
1776 | * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c, | |
1777 | symmisc.c: Update all dictionary references to multidictionary. | |
1778 | ||
c7748ee9 KS |
1779 | 2019-01-10 Keith Seitz <keiths@redhat.com> |
1780 | ||
1781 | PR gdb/23712 | |
1782 | PR symtab/23010 | |
1783 | * dictionary.c: Include unordered_map. | |
1784 | (pending_to_vector): New function. | |
1785 | (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1): | |
1786 | Rewrite the non-"_1" functions to take vector instead | |
1787 | of linked list. | |
1788 | (dict_create_hashed, dict_create_linear, dict_add_pending): Use the | |
1789 | "new" _1 versions of the same name. | |
1790 | (multidictionary): Define. | |
1791 | (std::hash<enum language): New definition. | |
1792 | (collate_pending_symbols_by_language, mdict_create_hashed) | |
1793 | (mdict_create_hashed_expandable, mdict_create_linear) | |
1794 | (mdict_create_linear_expandable, mdict_free) | |
1795 | (find_language_dictionary, create_new_language_dictionary) | |
1796 | (mdict_add_symbol, mdict_add_pending, mdict_iterator_first) | |
1797 | (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next) | |
1798 | (mdict_size, mdict_empty): New functions. | |
1799 | * dictionary.h (mdict_iterator): Define. | |
1800 | ||
67aa1f3c PA |
1801 | 2019-01-10 Pedro Alves <palves@redhat.com> |
1802 | ||
1803 | * breakpoint.c (read_uploaded_action) | |
1804 | (create_tracepoint_from_upload): Adjust to use | |
1805 | gdb::unique_xmalloc_ptr. | |
1806 | * ctf.c (ctf_write_uploaded_tp): | |
1807 | (SET_ARRAY_FIELD): Use emplace_back. | |
1808 | (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr. | |
1809 | * tracefile-tfile.c (tfile_write_uploaded_tp): | |
1810 | * tracepoint.c (parse_tracepoint_definition): Adjust to use | |
1811 | gdb::unique_xmalloc_ptr. | |
1812 | * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions, | |
1813 | at_string, cond_string, cmd_strings>: Replace char pointers | |
1814 | with gdb::unique_xmalloc_ptr. | |
1815 | ||
2f667667 PA |
1816 | 2019-01-10 Pedro Alves <palves@redhat.com> |
1817 | ||
1818 | * solib-target.c (library_list_start_library): Don't xstrdup name. | |
1819 | ||
36cb7237 PA |
1820 | 2019-01-10 Pedro Alves <palves@redhat.com> |
1821 | ||
1822 | * mdebugread.c (parse_partial_symbols): Use | |
1823 | gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'. | |
1824 | ||
da584958 AB |
1825 | 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com> |
1826 | ||
1827 | * linux-fork.c (scoped_switch_fork_info) | |
1828 | <~scoped_switch_fork_info>: Fix incorrect variable name. | |
1829 | ||
1ef8573c AB |
1830 | 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com> |
1831 | ||
1832 | * linux-fork.c (scoped_switch_fork_info) | |
1833 | <scoped_switch_fork_info>: Make explicit. | |
1834 | <~scoped_switch_fork_info>: Wrap core in TRY/CATCH. | |
1835 | ||
8d7bcccb TT |
1836 | 2019-01-10 Tom Tromey <tom@tromey.com> |
1837 | ||
1838 | * objfiles.h (objfile::reset_psymtabs): Update. | |
1839 | * objfiles.c (objfile::objfile): Update. | |
1840 | * psymtab.h (psymtab_storage::obstack): Update. | |
1841 | (psymtab_storage::m_obstack): Use gdb::optional. | |
1842 | (class psymtab_storage): Update comment. Remove objfile | |
1843 | parameter. | |
1844 | * psymtab.c (psymtab_storage::psymtab_storage): Update. | |
1845 | ||
b596a3c7 TT |
1846 | 2019-01-10 Tom Tromey <tom@tromey.com> |
1847 | ||
1848 | * psymtab.h (psymtab_storage::allocate_psymtab): New method. | |
1849 | <free_psymtabs>: Now private. | |
1850 | * psymtab.c (psymtab_storage::allocate_psymtab): Implement. | |
1851 | (allocate_psymtab): Use new method. | |
1852 | ||
a9342b62 TT |
1853 | 2019-01-10 Tom Tromey <tom@tromey.com> |
1854 | ||
1855 | * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies. | |
1856 | * psymtab.h (psymtab_storage::allocate_dependencies): New method. | |
1857 | * mdebugread.c (parse_partial_symbols): Use | |
1858 | allocate_dependencies. | |
1859 | * dwarf2read.c (dwarf2_create_include_psymtab): Use | |
1860 | allocate_dependencies. | |
1861 | (process_psymtab_comp_unit_reader) | |
1862 | (build_type_psymtab_dependencies): Likewise. | |
1863 | * dbxread.c (dbx_end_psymtab): Use allocate_dependencies. | |
1864 | ||
5af70966 TT |
1865 | 2019-01-10 Tom Tromey <tom@tromey.com> |
1866 | ||
1867 | * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to | |
1868 | PSYMBOL_SET_LANGUAGE. | |
1869 | (allocate_psymtab): Allocate psymtab on the psymtab obstack. | |
1870 | ||
5923a04c TT |
1871 | 2019-01-10 Tom Tromey <tom@tromey.com> |
1872 | ||
1873 | * psymtab.h (psymtab_storage::obstack): New method. | |
1874 | <m_obstack>: Rename from obstack; now private. | |
1875 | * psymtab.c (psymtab_storage): Update. | |
1876 | * dwarf2read.c (create_addrmap_from_index) | |
1877 | (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard): | |
1878 | Update. | |
1879 | ||
6d6a12bf TT |
1880 | 2019-01-10 Tom Tromey <tom@tromey.com> |
1881 | ||
1882 | * symfile.c (reread_symbols): Call objfile->reset_psymtabs. | |
1883 | * objfiles.h (objfile::reset_psymtabs): New method. | |
1884 | ||
d320c2b5 TT |
1885 | 2019-01-10 Tom Tromey <tom@tromey.com> |
1886 | ||
1887 | * symmisc.c (print_symbol_bcache_statistics): Update. | |
1888 | (print_objfile_statistics): Update. | |
1889 | * symfile.c (reread_symbols): Update. | |
1890 | * psymtab.h (class psymtab_storage): New. | |
1891 | * psymtab.c (psymtab_storage): New constructor. | |
1892 | (~psymtab_storage): New destructor. | |
1893 | (require_partial_symbols): Update. | |
1894 | (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite. | |
1895 | (find_pc_sect_psymtab, find_pc_sect_psymbol) | |
1896 | (match_partial_symbol, lookup_partial_symbol, dump_psymtab) | |
1897 | (psym_dump, recursively_search_psymtabs, psym_has_symbols) | |
1898 | (psym_find_compunit_symtab_by_address, sort_pst_symbols) | |
1899 | (start_psymtab_common, end_psymtab_common) | |
1900 | (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list) | |
1901 | (allocate_psymtab): Update. | |
1902 | (psymtab_storage::discard_psymtab): Rename from discard_psymtab. | |
1903 | Update. | |
1904 | (dump_psymtab_addrmap, maintenance_print_psymbols) | |
1905 | (maintenance_check_psymtabs): Update. | |
1906 | (class objfile_psymtabs): Move to objfiles.h. | |
1907 | * psympriv.h (discard_psymtab): Now inline. | |
1908 | (psymtab_discarder::psymtab_discarder): Update. | |
1909 | (psymtab_discarder::~psymtab_discarder): Update. | |
1910 | (ALL_OBJFILE_PSYMTABS): Rewrite. | |
1911 | * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap, | |
1912 | free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>: | |
1913 | Remove fields. | |
1914 | <partial_symtabs>: New field. | |
1915 | (class objfile_psymtabs): Move from psymtab.h. Update. | |
1916 | * objfiles.c (objfile::objfile): Initialize partial_symtabs, not | |
1917 | psymbol_cache. | |
1918 | (objfile::~objfile): Don't destroy psymbol_cache. | |
1919 | * mdebugread.c (parse_partial_symbols): Update. | |
1920 | * dwarf2read.c (create_addrmap_from_index) | |
1921 | (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab) | |
1922 | (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard) | |
1923 | (add_partial_subprogram, dwarf2_ranges_read): Update. | |
1924 | * dwarf-index-write.c (write_address_map) | |
1925 | (write_one_signatured_type, recursively_write_psymbols) | |
1926 | (class debug_names, class debug_names, write_psymtabs_to_index): | |
1927 | Update. | |
1928 | ||
1d94a5a3 TT |
1929 | 2019-01-10 Tom Tromey <tom@tromey.com> |
1930 | ||
1931 | * symtab.h (SYMBOL_SET_NAMES): Update. | |
1932 | (symbol_set_names): Update. | |
1933 | (MSYMBOL_SET_NAMES): Update. | |
1934 | * symtab.c (symbol_set_names): Change argument to be an | |
1935 | objfile_per_bfd_storage. | |
1936 | * psymtab.c (add_psymbol_to_bcache): Update. | |
1937 | * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument. | |
1938 | ||
0f14768a TT |
1939 | 2019-01-10 Tom Tromey <tom@tromey.com> |
1940 | ||
1941 | * symtab.c (create_demangled_names_hash): Change argument to be an | |
1942 | objfile_per_bfd_storage. | |
1943 | (symbol_set_names): Update. | |
1944 | ||
6eee24ce TT |
1945 | 2019-01-10 Tom Tromey <tom@tromey.com> |
1946 | ||
1947 | * xcoffread.c (xcoff_initial_scan): Unconditionally call | |
1948 | init_psymbol_list. | |
1949 | * psymtab.c (init_psymbol_list): Do nothing if already called. | |
1950 | * psympriv.h (init_psymbol_list): Add comment. | |
1951 | * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call | |
1952 | init_psymbol_list. | |
1953 | * dbxread.c (dbx_symfile_read): Unconditionally call | |
1954 | init_psymbol_list. | |
1955 | ||
75aedd27 TT |
1956 | 2019-01-10 Tom Tromey <tom@tromey.com> |
1957 | ||
1958 | * xcoffread.c (scan_xcoff_symtab): Update. | |
1959 | * psymtab.c (add_psymbol_to_list): Replace "list" parameter with | |
1960 | "where". | |
1961 | * mdebugread.c (parse_partial_symbols) | |
1962 | (handle_psymbol_enumerators): Update. | |
1963 | * dwarf2read.c (add_partial_symbol, load_partial_dies): Update. | |
1964 | * dbxread.c (read_dbx_symtab): Update. | |
1965 | * psympriv.h (psymbol_placement): New enum. | |
1966 | (add_psymbol_to_list): Update. | |
1967 | ||
939652a5 TT |
1968 | 2019-01-10 Tom Tromey <tom@tromey.com> |
1969 | ||
1970 | * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and | |
1971 | static_psymbols parameters. | |
1972 | (scan_xcoff_symtab): Update. | |
1973 | * psymtab.c (start_psymtab_common): Remove global_psymbols and | |
1974 | static_psymbols parameters. | |
1975 | * psympriv.h (start_psymtab_common): Update. | |
1976 | * mdebugread.c (parse_partial_symbols): Update. | |
1977 | * dwarf2read.c (create_partial_symtab): Update. | |
1978 | * dbxread.c (read_dbx_symtab): Update. | |
1979 | (start_psymtab): Remove global_psymbols and static_psymbols | |
1980 | parameters. | |
1981 | ||
baa62830 TT |
1982 | 2019-01-10 Tom Tromey <tom@tromey.com> |
1983 | ||
1984 | * xcoffread.c (xcoff_end_psymtab): Remove some initializations. | |
1985 | * psymtab.c (allocate_psymtab): Add comment. | |
1986 | * psympriv.h (allocate_psymtab): Add comment. | |
1987 | * dwarf2read.c (dwarf2_create_include_psymtab): Remove some | |
1988 | initializations. | |
1989 | * dbxread.c (dbx_end_psymtab): Remove some initializations. | |
1990 | ||
0e8f53ba TT |
1991 | 2019-01-10 Tom Tromey <tom@tromey.com> |
1992 | ||
1993 | * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs): | |
1994 | Don't declare. | |
1995 | * mipsread.c: Include mdebugread.h. | |
1996 | * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs): | |
1997 | Declare. | |
1998 | * elfread.c: Include mdebugread.h. | |
1999 | ||
b22a7c6a TT |
2000 | 2019-01-09 Tom Tromey <tom@tromey.com> |
2001 | ||
2002 | * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs. | |
2003 | * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs. | |
2004 | * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove. | |
2005 | (psym_map_symtabs_matching_filename, find_pc_sect_psymtab) | |
2006 | (psym_lookup_symbol, psym_find_last_source_symtab) | |
2007 | (psym_forget_cached_source_info, psym_print_stats) | |
2008 | (psym_expand_symtabs_for_function, psym_expand_all_symtabs) | |
2009 | (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames) | |
2010 | (psym_map_matching_symbols, psym_expand_symtabs_matching) | |
2011 | (psym_find_compunit_symtab_by_address) | |
2012 | (maintenance_print_psymbols, maintenance_info_psymtabs) | |
2013 | (maintenance_check_psymtabs): Use ranged for. | |
2014 | * psymtab.h (class objfile_psymtabs): New. | |
2015 | (require_partial_symbols): Return objfile_psymtabs. | |
2016 | * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove. | |
2017 | ||
3b9d3ac2 TT |
2018 | 2019-01-09 Tom Tromey <tom@tromey.com> |
2019 | ||
2020 | * symfile.c (overlay_invalidate_all, find_pc_overlay) | |
2021 | (find_pc_mapped_section, list_overlays_command) | |
2022 | (map_overlay_command, unmap_overlay_command) | |
2023 | (simple_overlay_update): Use all_objfiles. | |
2024 | * spu-tdep.c (spu_overlay_update): Use all_objfiles. | |
2025 | * printcmd.c (info_symbol_command): Use all_objfiles. | |
2026 | * objfiles.h (ALL_OBJSECTIONS): Remove. | |
2027 | * maint.c (maintenance_translate_address): Use all_objfiles. | |
2028 | * gcore.c (gcore_create_callback): Use all_objfiles. | |
2029 | (objfile_find_memory_regions): Likewise. | |
2030 | ||
8b31193a TT |
2031 | 2019-01-09 Tom Tromey <tom@tromey.com> |
2032 | ||
2033 | * symtab.c (find_line_symtab, info_sources_command) | |
2034 | (make_source_files_completion_list): Use objfile_compunits. | |
2035 | * source.c (select_source_symtab): Use objfile_compunits. | |
2036 | * objfiles.h (struct objfile): Update comment. | |
2037 | (ALL_OBJFILES): Remove. | |
2038 | (ALL_FILETABS): Remove. | |
2039 | * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use | |
2040 | objfile_compunits. | |
2041 | ||
d5da8b3c TT |
2042 | 2019-01-09 Tom Tromey <tom@tromey.com> |
2043 | ||
2044 | * symmisc.c (print_objfile_statistics, dump_objfile) | |
2045 | (maintenance_print_symbols): Use compunit_filetabs. | |
2046 | * source.c (forget_cached_source_info_for_objfile): Use | |
2047 | compunit_filetabs. | |
2048 | * objfiles.h (ALL_OBJFILE_FILETABS): Remove. | |
2049 | (ALL_FILETABS): Use compunit_filetabs. | |
2050 | * objfiles.c (objfile_relocate1): Use compunit_filetabs. | |
2051 | * coffread.c (coff_symtab_read): Use compunit_filetabs. | |
2052 | ||
5accd1a0 TT |
2053 | 2019-01-09 Tom Tromey <tom@tromey.com> |
2054 | ||
2055 | * symtab.h (ALL_COMPUNIT_FILETABS): Remove. | |
2056 | (compunit_filetabs): New. | |
2057 | * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use | |
2058 | compunit_filetabs. | |
2059 | (info_sources_command, make_source_files_completion_list): Remove | |
2060 | declaration. | |
2061 | * symmisc.c (print_objfile_statistics, dump_objfile) | |
2062 | (maintenance_print_symbols): Remove declaration. | |
2063 | (maintenance_info_symtabs): Use compunit_filetabs. | |
2064 | (maintenance_info_line_tables): Likewise. | |
2065 | * source.c (select_source_symtab): Change local variable name. | |
2066 | (forget_cached_source_info_for_objfile): Remove declaration. | |
2067 | * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs. | |
2068 | * objfiles.c (objfile_relocate1): Remove declaration. | |
2069 | * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove | |
2070 | declaration. | |
2071 | * maint.c (count_symtabs_and_blocks): Use compunit_filetabs. | |
2072 | * coffread.c (coff_symtab_read): Remove declaration. | |
2073 | * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use | |
2074 | compunit_filetabs. | |
2075 | ||
d8aeb77f TT |
2076 | 2019-01-09 Tom Tromey <tom@tromey.com> |
2077 | ||
2078 | * symtab.c (lookup_objfile_from_block) | |
2079 | (find_pc_sect_compunit_symtab, search_symbols) | |
2080 | (default_collect_symbol_completion_matches_break_on): Use | |
2081 | objfile_compunits. | |
2082 | * objfiles.h (ALL_COMPUNITS): Remove. | |
2083 | * maint.c (count_symtabs_and_blocks): Use objfile_compunits. | |
2084 | * cp-support.c (add_symbol_overload_list_qualified): Use | |
2085 | objfile_compunits. | |
2086 | * ada-lang.c (ada_collect_symbol_completion_matches) | |
2087 | (ada_add_global_exceptions): Use objfile_compunits. | |
2088 | ||
592553c4 TT |
2089 | 2019-01-09 Tom Tromey <tom@tromey.com> |
2090 | ||
2091 | * source.c (select_source_symtab) | |
2092 | (forget_cached_source_info_for_objfile): Remove declaration. | |
2093 | * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove | |
2094 | declaration. | |
2095 | * maint.c (count_symtabs_and_blocks): Remove declaration. | |
2096 | * cp-support.c (add_symbol_overload_list_qualified): Remove | |
2097 | declaration. | |
2098 | * coffread.c (coff_symtab_read): Remove declaration. | |
2099 | * symtab.c (lookup_symbol_in_objfile_symtabs) | |
2100 | (basic_lookup_transparent_type_1): Use objfile_compunits. | |
2101 | (lookup_objfile_from_block, find_pc_sect_compunit_symtab) | |
2102 | (info_sources_command, search_symbols) | |
2103 | (default_collect_symbol_completion_matches_break_on) | |
2104 | (make_source_files_completion_list): Remove declaration. | |
2105 | * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits. | |
2106 | (ada_collect_symbol_completion_matches) | |
2107 | (ada_add_global_exceptions): Remove declaration. | |
2108 | * linespec.c (iterate_over_all_matching_symtabs): Use | |
2109 | objfile_compunits. | |
2110 | * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove. | |
2111 | (class objfile_compunits): New. | |
2112 | (ALL_COMPUNITS): Use objfile_compunits. | |
2113 | * symmisc.c (print_objfile_statistics, maintenance_info_symtabs) | |
2114 | (maintenance_check_symtabs, maintenance_info_line_tables): Use | |
2115 | objfile_compunits. | |
2116 | * objfiles.c (objfile_relocate1): Use objfile_compunits. | |
2117 | ||
5325b9bf TT |
2118 | 2019-01-09 Tom Tromey <tom@tromey.com> |
2119 | ||
2120 | * symtab.c (search_symbols) | |
2121 | (default_collect_symbol_completion_matches_break_on): Use | |
2122 | objfile_msymbols. | |
2123 | * ada-lang.c (ada_lookup_simple_minsym) | |
2124 | (ada_collect_symbol_completion_matches): Use objfile_msymbols. | |
2125 | * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols. | |
2126 | * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use | |
2127 | objfile_msymbols. | |
2128 | * coffread.c (coff_symfile_read): Use objfile_msymbols. | |
2129 | * symmisc.c (dump_msymbols): Use objfile_msymbols. | |
2130 | * objc-lang.c (find_methods): Use objfile_msymbols. | |
2131 | (info_selectors_command, info_classes_command): Likewise. | |
2132 | * stabsread.c (scan_file_globals): Use objfile_msymbols. | |
2133 | * objfiles.h (class objfile_msymbols): New. | |
2134 | (ALL_OBJFILE_MSYMBOLS): Remove. | |
2135 | (ALL_MSYMBOLS): Remove. | |
2136 | ||
cac85af2 TT |
2137 | 2019-01-09 Tom Tromey <tom@tromey.com> |
2138 | ||
2139 | * common/next-iterator.h (next_adapter): Add Iterator template | |
2140 | parameter. | |
2141 | * objfiles.h (ALL_OBJFILES_SAFE): Remove. | |
2142 | (class all_objfiles_safe): New. | |
2143 | * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe. | |
2144 | * objfiles.c (put_objfile_before): Update comment. | |
2145 | (add_separate_debug_objfile): Likewise. | |
2146 | (free_all_objfiles): Use all_objfiles_safe. | |
2147 | (objfile_purge_solibs): Likewise. | |
2148 | ||
aed57c53 TT |
2149 | 2019-01-09 Tom Tromey <tom@tromey.com> |
2150 | ||
2151 | * symtab.c (iterate_over_symtabs, matching_obj_sections) | |
2152 | (expand_symtab_containing_pc, lookup_static_symbol) | |
2153 | (basic_lookup_transparent_type, find_pc_sect_compunit_symtab) | |
2154 | (find_symbol_at_address, find_line_symtab, find_main_name): Use | |
2155 | all_objfiles. | |
2156 | * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles. | |
2157 | * breakpoint.c (create_overlay_event_breakpoint) | |
2158 | (create_longjmp_master_breakpoint) | |
2159 | (create_std_terminate_master_breakpoint) | |
2160 | (create_exception_master_breakpoint): Use all_objfiles. | |
2161 | * linux-thread-db.c (try_thread_db_load_from_pdir) | |
2162 | (has_libpthread): Use all_objfiles. | |
2163 | * ada-lang.c (add_nonlocal_symbols): Use all_objfiles. | |
2164 | * linespec.c (iterate_over_all_matching_symtabs) | |
2165 | (search_minsyms_for_name): Use all_objfiles. | |
2166 | * maint.c (maintenance_info_sections): Use all_objfiles. | |
2167 | * main.c (captured_main_1): Use all_objfiles. | |
2168 | * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles. | |
2169 | * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles. | |
2170 | * guile/scm-pretty-print.c | |
2171 | (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles. | |
2172 | * solib-spu.c (append_ocl_sos): Use all_objfiles. | |
2173 | * symmisc.c (maintenance_print_symbols): Use all_objfiles. | |
2174 | (maintenance_print_msymbols): Use all_objfiles. | |
2175 | * source.c (select_source_symtab): Use all_objfiles. | |
2176 | * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles. | |
2177 | * symfile.c (remove_symbol_file_command) | |
2178 | (expand_symtabs_matching, map_symbol_filenames): Use | |
2179 | all_objfiles. | |
2180 | * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use | |
2181 | all_objfiles. | |
2182 | * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles. | |
2183 | * objc-lang.c (find_methods): Use all_objfiles. | |
2184 | * objfiles.c (have_partial_symbols, have_full_symbols) | |
2185 | (have_minimal_symbols, qsort_cmp) | |
2186 | (default_iterate_over_objfiles_in_search_order): Use | |
2187 | all_objfiles. | |
2188 | * hppa-tdep.c (find_unwind_entry): Use all_objfiles. | |
2189 | * psymtab.c (maintenance_print_psymbols): Use all_objfiles. | |
2190 | (maintenance_check_psymtabs): Use all_objfiles. | |
2191 | (ALL_PSYMTABS): Remove. | |
2192 | * compile/compile-object-run.c (do_module_cleanup): Use | |
2193 | all_objfiles. | |
2194 | * blockframe.c (find_pc_partial_function): Use all_objfiles. | |
2195 | * cp-support.c (add_symbol_overload_list_qualified): Use | |
2196 | all_objfiles. | |
2197 | * windows-tdep.c (windows_iterate_over_objfiles_in_search_order): | |
2198 | Use all_objfiles. | |
2199 | * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles. | |
2200 | * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use | |
2201 | all_objfiles. | |
2202 | * python/py-objfile.c (objfpy_lookup_objfile_by_name) | |
2203 | (objfpy_lookup_objfile_by_build_id): Use all_objfiles. | |
2204 | * python/py-prettyprint.c (find_pretty_printer_from_objfiles): | |
2205 | Uses all_objfiles. | |
2206 | * solib.c (solib_read_symbols): Use all_objfiles | |
2207 | ||
99d89cde TT |
2208 | 2019-01-09 Tom Tromey <tom@tromey.com> |
2209 | ||
2210 | * probe.c (parse_probes_in_pspace): Use all_objfiles. | |
2211 | * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use | |
2212 | all_objfiles. | |
2213 | * objfiles.h (ALL_PSPACE_OBJFILES): Remove. | |
2214 | * symmisc.c (print_symbol_bcache_statistics) | |
2215 | (print_objfile_statistics, maintenance_print_objfiles) | |
2216 | (maintenance_info_symtabs, maintenance_check_symtabs) | |
2217 | (maintenance_expand_symtabs, maintenance_info_line_tables): Use | |
2218 | all_objfiles. | |
2219 | * source.c (forget_cached_source_info): Use all_objfiles. | |
2220 | * symfile-debug.c (set_debug_symfile): Use all_objfiles. | |
2221 | * elfread.c (elf_gnu_ifunc_resolve_by_cache) | |
2222 | (elf_gnu_ifunc_resolve_by_got): Use all_objfiles. | |
2223 | * objfiles.c (update_section_map): Use all_objfiles. | |
2224 | (shared_objfile_contains_address_p): Likewise. | |
2225 | * psymtab.c (maintenance_info_psymtabs): Use all_objfiles. | |
2226 | * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles. | |
2227 | ||
21708325 TT |
2228 | 2019-01-09 Tom Tromey <tom@tromey.com> |
2229 | ||
2230 | * common/next-iterator.h: New file. | |
2231 | * objfiles.h (class all_objfiles): New. | |
2232 | (struct objfile_iterator): New. | |
2233 | ||
669e09f6 PW |
2234 | 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
2235 | ||
2236 | * NEWS: Move the description of the changed "frame", "select-frame", | |
2237 | and "info frame" commands to the Changed commands section. | |
2238 | ||
041be526 SM |
2239 | 2019-01-09 Simon Marchi <simon.marchi@ericsson.com> |
2240 | ||
2241 | * gdbtypes.c (check_stub_method_group): Remove handling of old | |
2242 | mangling schemes. | |
2243 | * linespec.c (find_methods): Likewise. | |
2244 | * stabsread.c (read_member_functions): Likewise. | |
2245 | * valops.c (search_struct_method): Likewise. | |
2246 | (value_struct_elt_for_reference): Likewise. | |
2247 | * NEWS: Mention this change. | |
2248 | ||
0e2a2133 AB |
2249 | 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com> |
2250 | ||
2251 | * cli/cli-cmds.c (list_command): Pass a source_lines_range to | |
2252 | print_source_lines. | |
2253 | * source.c (print_source_lines_base): Update line number check. | |
2254 | (print_source_lines): New function. | |
2255 | (source_lines_range::source_lines_range): New function. | |
2256 | * source.h (class source_lines_range): New class. | |
2257 | (print_source_lines): New declaration. | |
2258 | ||
1055a3b4 PW |
2259 | 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
2260 | ||
2261 | * linespec.c (linespec_state_destructor): Free self->canonical_names. | |
2262 | ||
cfeadda5 TT |
2263 | 2019-01-08 Tom Tromey <tom@tromey.com> |
2264 | Simon Marchi <simon.marchi@ericsson.com> | |
2265 | ||
2266 | PR gdb/24060 | |
2267 | * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE. | |
2268 | * ada-lex.l (DOLLAR_VARIABLE): Likewise. | |
2269 | * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE. | |
2270 | * f-exp.y (DOLLAR_VARIABLE): Likewise. | |
2271 | * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR. | |
2272 | * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE. | |
2273 | ||
583068ca AB |
2274 | 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com> |
2275 | ||
2276 | * source.c (select_source_symtab): Move header comment to | |
2277 | declaration in source.h. | |
2278 | (forget_cached_source_info_for_objfile): Likewise. | |
2279 | (forget_cached_source_info): Likewise. | |
2280 | (identify_source_line): Likewise. | |
2281 | * source.h (identify_source_line): Move declaration from symtab.h | |
2282 | and add comment from source.c | |
2283 | (print_source_lines): Likewise. | |
2284 | (forget_cached_source_info_for_objfile): Likewise. | |
2285 | (forget_cached_source_info): Likewise. | |
2286 | (select_source_symtab): Likewise. | |
2287 | (enum print_source_lines_flag): Move definition from symtab.h. | |
2288 | * symtab.h (identify_source_line): Move declaration to source.h. | |
2289 | (print_source_lines): Likewise. | |
2290 | (forget_cached_source_info_for_objfile): Likewise. | |
2291 | (forget_cached_source_info): Likewise. | |
2292 | (select_source_symtab): Likewise. | |
2293 | (enum print_source_lines_flag): Move definition to source.h. | |
2294 | * tui/tui-hooks.c: Add 'source.h' include. | |
2295 | ||
ec98a4ad AB |
2296 | 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com> |
2297 | ||
2298 | * source.c (print_source_lines_base): Handle requests to print | |
2299 | reverse line number sequences, and guard against empty lines | |
2300 | string. | |
2301 | ||
62ea19c1 AB |
2302 | 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com> |
2303 | ||
2304 | * source.c (print_source_lines_base): Fix skip of '\r' if next | |
2305 | character is '\n'. | |
2306 | ||
9d30e1fd TT |
2307 | 2019-01-06 Tom Tromey <tom@tromey.com> |
2308 | ||
2309 | * c-exp.y (struct c_parse_state) <macro_original_text, | |
2310 | expansion_obstack>: New member. | |
2311 | (macro_original_text, expansion_obstack): Remove globals. | |
2312 | (scan_macro_expansion, scanning_macro_expansion) | |
2313 | (finished_macro_expansion): Update. | |
2314 | (scan_macro_cleanup): Remove. | |
2315 | (yylex, c_parse): Update. | |
2316 | ||
c65bac38 TT |
2317 | 2019-01-06 Tom Tromey <tom@tromey.com> |
2318 | ||
2319 | * c-exp.y (struct c_parse_state) <strings>: New member. | |
2320 | (operator_stoken): Update. | |
2321 | ||
02e12e38 TT |
2322 | 2019-01-06 Tom Tromey <tom@tromey.com> |
2323 | ||
2324 | * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC. | |
2325 | (union type_stack_elt) <typelist_val>: Now a pointer to | |
2326 | std::vector. | |
2327 | (type_stack_cleanup): Don't declare. | |
2328 | (push_typelist): Update. | |
2329 | * parse.c (pop_typelist): Return a std::vector. | |
2330 | (push_typelist): Take a std::vector. | |
2331 | (follow_types): Update. Do not free args. | |
2332 | (type_stack_cleanup): Remove. | |
2333 | * c-exp.y (struct c_parse_state): New. | |
2334 | (cpstate): New global. | |
2335 | (type_aggregate_p, exp, ptr_operator, parameter_typelist) | |
2336 | (nonempty_typelist): Update. | |
2337 | (func_mod): Create a new vector. | |
2338 | (c_parse): Create a c_parse_state. | |
2339 | (check_parameter_typelist): Do not delete params. | |
2340 | (function_method): Update. Do not delete type_list. | |
2341 | ||
f097f5ad TT |
2342 | 2019-01-06 Tom Tromey <tom@tromey.com> |
2343 | ||
2344 | PR gdb/28155: | |
2345 | * python/py-finishbreakpoint.c (bpfinishpy_init): Use | |
2346 | check_typedef. | |
2347 | * infcmd.c (finish_command_fsm_should_stop): Use check_typedef. | |
2348 | (print_return_value): Likewise. | |
2349 | ||
d2adf9f1 TT |
2350 | 2019-01-05 Tom Tromey <tom@tromey.com> |
2351 | ||
2352 | * contrib/cleanup_check.py: Remove. | |
2353 | * contrib/gcc-with-excheck: Remove. | |
2354 | * contrib/exsummary.py: Remove. | |
2355 | * contrib/excheck.py: Remove. | |
2356 | ||
2eab46b1 JB |
2357 | 2019-01-05 Joel Brobecker <brobecker@adacore.com> |
2358 | ||
2359 | * thread.c (delete_thread_1): Add gdb_assert that THR is not | |
2360 | NULL. Initialize tpprev to NULL instead of assigning it | |
2361 | to NULL on the next statement. | |
2362 | * windows-nat.c (windows_delete_thread): Remove check for | |
2363 | main_thread_id before printing thread exit notifications. | |
2364 | (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>: | |
2365 | Remove thread ID check against main_thread_id. | |
2366 | <CREATE_PROCESS_DEBUG_EVENT>: Remove call to | |
2367 | windows_delete_thread. | |
2368 | <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread. | |
2369 | ||
48c5e7e2 TT |
2370 | 2019-01-04 Tom Tromey <tom@tromey.com> |
2371 | ||
2372 | * compile/compile.c (_initialize_compile): Use upper case for | |
2373 | metasyntactic variables. | |
2374 | * symmisc.c (_initialize_symmisc): Use upper case for | |
2375 | metasyntactic variables. | |
2376 | * psymtab.c (_initialize_psymtab): Use upper case for | |
2377 | metasyntactic variables. | |
2378 | * demangle.c (demangle_command): Use upper case for metasyntactic | |
2379 | variables. | |
2380 | (_initialize_demangler): Likewise. | |
2381 | * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic | |
2382 | variables. | |
2383 | ||
986041cd TT |
2384 | 2019-01-03 Tom Tromey <tom@tromey.com> |
2385 | ||
2386 | * tui/tui-source.c (tui_set_source_content): Use xstrdup. | |
2387 | ||
7c711119 TT |
2388 | 2019-01-03 Tom Tromey <tom@tromey.com> |
2389 | ||
2390 | * python/py-symtab.c (salpy_str): Update. | |
2391 | (struct salpy_sal_object) <symtab>: Now a PyObject. | |
2392 | (salpy_dealloc): Update. | |
2393 | (del_objfile_sal): Use gdbpy_ref. | |
2394 | ||
1b20edf0 TT |
2395 | 2019-01-03 Tom Tromey <tom@tromey.com> |
2396 | ||
2397 | * python/py-type.c (convert_field): Use new_reference. Return | |
2398 | gdbpy_ref. | |
2399 | (make_fielditem): Return gdbpy_ref. | |
2400 | (typy_fields): Update. | |
2401 | (typy_getitem): Update. | |
2402 | (field_name): Return gdbpy_ref. Use new_reference. | |
2403 | (typy_iterator_iternext): Update. | |
2404 | ||
ea41325b TT |
2405 | 2019-01-03 Tom Tromey <tom@tromey.com> |
2406 | ||
2407 | * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE. | |
2408 | ||
2a3c71d6 TT |
2409 | 2019-01-03 Tom Tromey <tom@tromey.com> |
2410 | ||
2411 | * python/py-value.c (valpy_dealloc): Use Py_XDECREF. | |
2412 | * python/py-type.c (typy_fields_items): Use gdbpy_ref. | |
2413 | * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref. | |
2414 | (pspy_set_frame_filters, pspy_set_frame_unwinders) | |
2415 | (pspy_set_type_printers): Likewise. | |
2416 | * python/py-function.c (fnpy_init): Use gdbpy_ref. | |
2417 | * python/py-cmd.c (cmdpy_init): Use gdbpy_ref. | |
2418 | * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref. | |
2419 | (objfpy_set_frame_filters, objfpy_set_frame_unwinders) | |
2420 | (objfpy_set_type_printers): Likewise. | |
2421 | ||
5c329e6a TT |
2422 | 2019-01-03 Tom Tromey <tom@tromey.com> |
2423 | ||
2424 | * python/python.c (gdbpy_enter, ~gdbpy_enter): Update. | |
2425 | (gdbpy_print_stack): Use gdbpy_err_fetch. | |
2426 | * python/python-internal.h (class gdbpy_err_fetch): New class. | |
2427 | (class gdbpy_enter) <m_error_type, m_error_value, | |
2428 | m_error_traceback>: Remove. | |
2429 | <m_error>: New member. | |
2430 | (gdbpy_exception_to_string): Don't declare. | |
2431 | * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch. | |
2432 | * python/py-value.c (convert_value_from_python): Use | |
2433 | gdbpy_err_fetch. | |
2434 | * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from | |
2435 | gdbpy_exception_to_string. | |
2436 | (gdbpy_handle_exception): Use gdbpy_err_fetch. | |
2437 | * python/py-prettyprint.c (print_stack_unless_memory_error): Use | |
2438 | gdbpy_err_fetch. | |
2439 | ||
169bb27b AB |
2440 | 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com> |
2441 | ||
2442 | * linux-nat.c (delete_lwp_cleanup): Delete. | |
2443 | (struct lwp_deleter): New struct. | |
2444 | (lwp_info_up): New typedef. | |
2445 | (linux_nat_target::follow_fork): Delete cleanup, and make use of | |
2446 | lwp_info_up. | |
2447 | ||
a07c8880 AB |
2448 | 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com> |
2449 | ||
2450 | * linux-fork.c (class scoped_switch_fork_info): New class. | |
2451 | (inferior_call_waitpid): Update to use scoped_switch_fork_info. | |
2452 | ||
26089c49 AB |
2453 | 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com> |
2454 | ||
2455 | * valops.c (find_overload_match): Remove use of null_cleanup, and | |
2456 | calls to do_cleanups. | |
2457 | ||
06d3e5b0 AB |
2458 | 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com> |
2459 | ||
2460 | * compile/compile-cplus-types.c | |
2461 | (compile_cplus_instance::decl_name): Handle changes to | |
2462 | cp_func_name. | |
2463 | * cp-support.c (cp_func_name): Update header comment, update | |
2464 | return type. | |
2465 | * cp-support.h (cp_func_name): Update return type in declaration. | |
2466 | * valops.c (find_overload_match): Move temp_func local to top | |
2467 | level of function and change its type. Use temp_func to hold and | |
2468 | delete temporary string obtained from cp_func_name. | |
2469 | ||
66644cd3 AB |
2470 | 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com> |
2471 | ||
2472 | * remote.c (remote_target::remote_check_symbols): Convert `msg` to | |
2473 | gdb::char_vector, remove cleanup, and update uses of `msg`. | |
2474 | ||
592d8c0a JW |
2475 | 2019-01-03 Jim Wilson <jimw@sifive.com> |
2476 | ||
2477 | * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8. | |
2478 | ||
c55d06ec TT |
2479 | 2019-01-02 Tom Tromey <tom@tromey.com> |
2480 | ||
2481 | * xml-tdesc.c (xml_cache): Hold a target_desc_up. | |
2482 | (tdesc_parse_xml): Remove cleanups. | |
2483 | * target-descriptions.h (make_cleanup_free_target_description): | |
2484 | Don't declare. | |
2485 | (target_desc_deleter): New struct. | |
2486 | (target_desc_up): New typedef. | |
2487 | * target-descriptions.c (target_desc_deleter::operator()): Rename | |
2488 | from free_target_description. | |
2489 | (make_cleanup_free_target_description): Remove. | |
2490 | ||
3a6ae42d TT |
2491 | 2019-01-02 Tom Tromey <tom@tromey.com> |
2492 | ||
2493 | * linespec.c (struct linespec_parser): Rename from ls_parser. Add | |
2494 | constructor, destructor. | |
2495 | (linespec_parser): Remove typedef. | |
2496 | (~linespec_parser): Rename from linespec_parser_delete. | |
2497 | (linespec_lex_to_end, linespec_complete_label) | |
2498 | (linespec_complete): Update. | |
2499 | (decode_line_full): Remove cleanups. | |
2500 | (decode_line_1): Update. | |
2501 | ||
61fd3e73 TT |
2502 | 2019-01-02 Tom Tromey <tom@tromey.com> |
2503 | ||
2504 | * python/python-internal.h (inferior_to_inferior_object): Change | |
2505 | return type. | |
2506 | * python/py-exitedevent.c (create_exited_event_object): Update. | |
2507 | * python/py-inferior.c (inferior_to_inferior_object): Return | |
2508 | gdbpy_ref. | |
2509 | (python_new_inferior, python_inferior_deleted) | |
2510 | (thread_to_thread_object, delete_thread_object) | |
2511 | (build_inferior_list, gdbpy_selected_inferior): Update. | |
2512 | * python/py-infthread.c (create_thread_object): Update. Also fail | |
2513 | if inferior_to_inferior_object fails. | |
2514 | ||
d20172fc SM |
2515 | 2019-01-02 Simon Marchi <simon.marchi@ericsson.com> |
2516 | ||
2517 | * inferior.h (class inferior) <displaced_step_state>: New field. | |
2518 | * infrun.h (struct displaced_step_state): Move here from | |
2519 | infrun.c. Initialize fields, add constructor. | |
2520 | <inf>: Remove field. | |
2521 | <reset>: New method. | |
2522 | * infrun.c (struct displaced_step_inferior_state): Move to | |
2523 | infrun.h. | |
2524 | (displaced_step_inferior_states): Remove. | |
2525 | (get_displaced_stepping_state): Adust. | |
2526 | (displaced_step_in_progress_any_inferior): Adjust. | |
2527 | (displaced_step_in_progress_thread): Adjust. | |
2528 | (displaced_step_in_progress): Adjust. | |
2529 | (add_displaced_stepping_state): Remove. | |
2530 | (get_displaced_step_closure_by_addr): Adjust. | |
2531 | (remove_displaced_stepping_state): Remove. | |
2532 | (infrun_inferior_exit): Call displaced_step_state.reset. | |
2533 | (use_displaced_stepping): Don't check for NULL. | |
2534 | (displaced_step_prepare_throw): Call | |
2535 | get_displaced_stepping_state. | |
2536 | (displaced_step_fixup): Don't check for NULL. | |
2537 | (prepare_for_detach): Don't check for NULL. | |
2538 | ||
e3319240 PW |
2539 | 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
2540 | ||
2541 | * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm | |
2542 | in case of call that did not complete. | |
2543 | ||
5d36dfb9 AU |
2544 | 2019-01-02 Andrey Utkin <autkin@undo.io> |
2545 | ||
2546 | * symfile.c (find_separate_debug_file): Fix search of debug files for | |
2547 | remote debuggee. | |
2548 | ||
8833fbf0 TT |
2549 | 2019-01-02 Tom Tromey <tom@tromey.com> |
2550 | ||
2551 | * python/py-inferior.c (gdbpy_initialize_inferior): Fix | |
2552 | indentation. | |
2553 | * python/py-frame.c (frapy_older): Remove cast. | |
2554 | (frapy_newer): Likewise. | |
2555 | * python/py-breakpoint.c (local_setattro): Remove cast. | |
2556 | * python/py-arch.c (archpy_name): Remove local variable. | |
2557 | * python/py-type.c (gdbpy_lookup_type): Remove cast. | |
2558 | ||
4ada3dfd JB |
2559 | 2019-01-02 Joel Brobecker <brobecker@adacore.com> |
2560 | ||
2561 | * unittests/basic_string_view/element_access/char/empty.cc: | |
2562 | Fix year range in copyright header. | |
2563 | ||
113b7b81 AB |
2564 | 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com> |
2565 | ||
2566 | * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>: | |
2567 | Delete. | |
2568 | <operator==>: Update with for removed field. | |
2569 | <hash>: Likewise. | |
2570 | * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to... | |
2571 | <isa_features>: ...this. | |
2572 | <abi_features>: New field. | |
2573 | (riscv_isa_flen): Update comment. | |
2574 | (riscv_abi_xlen): New declaration. | |
2575 | (riscv_abi_flen): New declaration. | |
2576 | * riscv-tdep.c (riscv_isa_xlen): Update to get answer from | |
2577 | isa_features. | |
2578 | (riscv_abi_xlen): New function. | |
2579 | (riscv_isa_flen): Update to get answer from isa_features. | |
2580 | (riscv_abi_flen): New function. | |
2581 | (riscv_has_fp_abi): Update to get answer from abi_features. | |
2582 | (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa | |
2583 | xlen and flen. | |
2584 | (riscv_call_info) <xlen, flen>: Update comment. | |
2585 | (riscv_call_arg_struct): Remove invalid assertions | |
2586 | (riscv_features_from_gdbarch_info): Update now hw_float_abi field | |
2587 | is removed. | |
2588 | (riscv_gdbarch_init): Gather isa features and abi features | |
2589 | separately, ensure both match on the gdbarch when reusing an old | |
2590 | gdbarch. Relax an error check to allow 32-bit abi float to run on | |
2591 | a target with 64-bit float hardware. | |
2592 | ||
b18ca514 PW |
2593 | 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
2594 | ||
2595 | * source.c (search_command_helper): Stop reverse search | |
2596 | when line 1 has been searched. | |
2597 | ||
ec70d8db PW |
2598 | 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
2599 | ||
2600 | * record-full.c (record_full_base_target::close): Rewrite | |
2601 | record_full_core_buf_list free logic. | |
2602 | ||
5b38f9c1 PW |
2603 | 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
2604 | ||
2605 | * break-catch-syscall.c (print_one_catch_syscall): xfree | |
2606 | the last text. | |
2607 | ||
66d91b39 JB |
2608 | 2019-01-01 Joel Brobecker <brobecker@adacore.com> |
2609 | ||
2610 | * top.c (print_gdb_version): Update Copyright year in version | |
2611 | message. | |
2612 | ||
42a4f53d JB |
2613 | 2019-01-01 Joel Brobecker <brobecker@adacore.com> |
2614 | ||
2615 | Update copyright year range in all GDB files. | |
2616 | ||
7e955d83 | 2617 | 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com> |
2139e8dc | 2618 | |
5bbd631d | 2619 | * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018. |
2139e8dc | 2620 | |
5bbd631d | 2621 | For older changes see ChangeLog-2018. |
c906108c SS |
2622 | \f |
2623 | Local Variables: | |
2624 | mode: change-log | |
2625 | left-margin: 8 | |
2626 | fill-column: 74 | |
2627 | version-control: never | |
57da7796 | 2628 | coding: utf-8 |
c906108c | 2629 | End: |
5bbd631d | 2630 |