Commit | Line | Data |
---|---|---|
0e2a2133 AB |
1 | 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com> |
2 | ||
3 | * cli/cli-cmds.c (list_command): Pass a source_lines_range to | |
4 | print_source_lines. | |
5 | * source.c (print_source_lines_base): Update line number check. | |
6 | (print_source_lines): New function. | |
7 | (source_lines_range::source_lines_range): New function. | |
8 | * source.h (class source_lines_range): New class. | |
9 | (print_source_lines): New declaration. | |
10 | ||
1055a3b4 PW |
11 | 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
12 | ||
13 | * linespec.c (linespec_state_destructor): Free self->canonical_names. | |
14 | ||
cfeadda5 TT |
15 | 2019-01-08 Tom Tromey <tom@tromey.com> |
16 | Simon Marchi <simon.marchi@ericsson.com> | |
17 | ||
18 | PR gdb/24060 | |
19 | * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE. | |
20 | * ada-lex.l (DOLLAR_VARIABLE): Likewise. | |
21 | * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE. | |
22 | * f-exp.y (DOLLAR_VARIABLE): Likewise. | |
23 | * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR. | |
24 | * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE. | |
25 | ||
583068ca AB |
26 | 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com> |
27 | ||
28 | * source.c (select_source_symtab): Move header comment to | |
29 | declaration in source.h. | |
30 | (forget_cached_source_info_for_objfile): Likewise. | |
31 | (forget_cached_source_info): Likewise. | |
32 | (identify_source_line): Likewise. | |
33 | * source.h (identify_source_line): Move declaration from symtab.h | |
34 | and add comment from source.c | |
35 | (print_source_lines): Likewise. | |
36 | (forget_cached_source_info_for_objfile): Likewise. | |
37 | (forget_cached_source_info): Likewise. | |
38 | (select_source_symtab): Likewise. | |
39 | (enum print_source_lines_flag): Move definition from symtab.h. | |
40 | * symtab.h (identify_source_line): Move declaration to source.h. | |
41 | (print_source_lines): Likewise. | |
42 | (forget_cached_source_info_for_objfile): Likewise. | |
43 | (forget_cached_source_info): Likewise. | |
44 | (select_source_symtab): Likewise. | |
45 | (enum print_source_lines_flag): Move definition to source.h. | |
46 | * tui/tui-hooks.c: Add 'source.h' include. | |
47 | ||
ec98a4ad AB |
48 | 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com> |
49 | ||
50 | * source.c (print_source_lines_base): Handle requests to print | |
51 | reverse line number sequences, and guard against empty lines | |
52 | string. | |
53 | ||
62ea19c1 AB |
54 | 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com> |
55 | ||
56 | * source.c (print_source_lines_base): Fix skip of '\r' if next | |
57 | character is '\n'. | |
58 | ||
9d30e1fd TT |
59 | 2019-01-06 Tom Tromey <tom@tromey.com> |
60 | ||
61 | * c-exp.y (struct c_parse_state) <macro_original_text, | |
62 | expansion_obstack>: New member. | |
63 | (macro_original_text, expansion_obstack): Remove globals. | |
64 | (scan_macro_expansion, scanning_macro_expansion) | |
65 | (finished_macro_expansion): Update. | |
66 | (scan_macro_cleanup): Remove. | |
67 | (yylex, c_parse): Update. | |
68 | ||
c65bac38 TT |
69 | 2019-01-06 Tom Tromey <tom@tromey.com> |
70 | ||
71 | * c-exp.y (struct c_parse_state) <strings>: New member. | |
72 | (operator_stoken): Update. | |
73 | ||
02e12e38 TT |
74 | 2019-01-06 Tom Tromey <tom@tromey.com> |
75 | ||
76 | * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC. | |
77 | (union type_stack_elt) <typelist_val>: Now a pointer to | |
78 | std::vector. | |
79 | (type_stack_cleanup): Don't declare. | |
80 | (push_typelist): Update. | |
81 | * parse.c (pop_typelist): Return a std::vector. | |
82 | (push_typelist): Take a std::vector. | |
83 | (follow_types): Update. Do not free args. | |
84 | (type_stack_cleanup): Remove. | |
85 | * c-exp.y (struct c_parse_state): New. | |
86 | (cpstate): New global. | |
87 | (type_aggregate_p, exp, ptr_operator, parameter_typelist) | |
88 | (nonempty_typelist): Update. | |
89 | (func_mod): Create a new vector. | |
90 | (c_parse): Create a c_parse_state. | |
91 | (check_parameter_typelist): Do not delete params. | |
92 | (function_method): Update. Do not delete type_list. | |
93 | ||
f097f5ad TT |
94 | 2019-01-06 Tom Tromey <tom@tromey.com> |
95 | ||
96 | PR gdb/28155: | |
97 | * python/py-finishbreakpoint.c (bpfinishpy_init): Use | |
98 | check_typedef. | |
99 | * infcmd.c (finish_command_fsm_should_stop): Use check_typedef. | |
100 | (print_return_value): Likewise. | |
101 | ||
d2adf9f1 TT |
102 | 2019-01-05 Tom Tromey <tom@tromey.com> |
103 | ||
104 | * contrib/cleanup_check.py: Remove. | |
105 | * contrib/gcc-with-excheck: Remove. | |
106 | * contrib/exsummary.py: Remove. | |
107 | * contrib/excheck.py: Remove. | |
108 | ||
2eab46b1 JB |
109 | 2019-01-05 Joel Brobecker <brobecker@adacore.com> |
110 | ||
111 | * thread.c (delete_thread_1): Add gdb_assert that THR is not | |
112 | NULL. Initialize tpprev to NULL instead of assigning it | |
113 | to NULL on the next statement. | |
114 | * windows-nat.c (windows_delete_thread): Remove check for | |
115 | main_thread_id before printing thread exit notifications. | |
116 | (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>: | |
117 | Remove thread ID check against main_thread_id. | |
118 | <CREATE_PROCESS_DEBUG_EVENT>: Remove call to | |
119 | windows_delete_thread. | |
120 | <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread. | |
121 | ||
48c5e7e2 TT |
122 | 2019-01-04 Tom Tromey <tom@tromey.com> |
123 | ||
124 | * compile/compile.c (_initialize_compile): Use upper case for | |
125 | metasyntactic variables. | |
126 | * symmisc.c (_initialize_symmisc): Use upper case for | |
127 | metasyntactic variables. | |
128 | * psymtab.c (_initialize_psymtab): Use upper case for | |
129 | metasyntactic variables. | |
130 | * demangle.c (demangle_command): Use upper case for metasyntactic | |
131 | variables. | |
132 | (_initialize_demangler): Likewise. | |
133 | * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic | |
134 | variables. | |
135 | ||
986041cd TT |
136 | 2019-01-03 Tom Tromey <tom@tromey.com> |
137 | ||
138 | * tui/tui-source.c (tui_set_source_content): Use xstrdup. | |
139 | ||
7c711119 TT |
140 | 2019-01-03 Tom Tromey <tom@tromey.com> |
141 | ||
142 | * python/py-symtab.c (salpy_str): Update. | |
143 | (struct salpy_sal_object) <symtab>: Now a PyObject. | |
144 | (salpy_dealloc): Update. | |
145 | (del_objfile_sal): Use gdbpy_ref. | |
146 | ||
1b20edf0 TT |
147 | 2019-01-03 Tom Tromey <tom@tromey.com> |
148 | ||
149 | * python/py-type.c (convert_field): Use new_reference. Return | |
150 | gdbpy_ref. | |
151 | (make_fielditem): Return gdbpy_ref. | |
152 | (typy_fields): Update. | |
153 | (typy_getitem): Update. | |
154 | (field_name): Return gdbpy_ref. Use new_reference. | |
155 | (typy_iterator_iternext): Update. | |
156 | ||
ea41325b TT |
157 | 2019-01-03 Tom Tromey <tom@tromey.com> |
158 | ||
159 | * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE. | |
160 | ||
2a3c71d6 TT |
161 | 2019-01-03 Tom Tromey <tom@tromey.com> |
162 | ||
163 | * python/py-value.c (valpy_dealloc): Use Py_XDECREF. | |
164 | * python/py-type.c (typy_fields_items): Use gdbpy_ref. | |
165 | * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref. | |
166 | (pspy_set_frame_filters, pspy_set_frame_unwinders) | |
167 | (pspy_set_type_printers): Likewise. | |
168 | * python/py-function.c (fnpy_init): Use gdbpy_ref. | |
169 | * python/py-cmd.c (cmdpy_init): Use gdbpy_ref. | |
170 | * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref. | |
171 | (objfpy_set_frame_filters, objfpy_set_frame_unwinders) | |
172 | (objfpy_set_type_printers): Likewise. | |
173 | ||
5c329e6a TT |
174 | 2019-01-03 Tom Tromey <tom@tromey.com> |
175 | ||
176 | * python/python.c (gdbpy_enter, ~gdbpy_enter): Update. | |
177 | (gdbpy_print_stack): Use gdbpy_err_fetch. | |
178 | * python/python-internal.h (class gdbpy_err_fetch): New class. | |
179 | (class gdbpy_enter) <m_error_type, m_error_value, | |
180 | m_error_traceback>: Remove. | |
181 | <m_error>: New member. | |
182 | (gdbpy_exception_to_string): Don't declare. | |
183 | * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch. | |
184 | * python/py-value.c (convert_value_from_python): Use | |
185 | gdbpy_err_fetch. | |
186 | * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from | |
187 | gdbpy_exception_to_string. | |
188 | (gdbpy_handle_exception): Use gdbpy_err_fetch. | |
189 | * python/py-prettyprint.c (print_stack_unless_memory_error): Use | |
190 | gdbpy_err_fetch. | |
191 | ||
169bb27b AB |
192 | 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com> |
193 | ||
194 | * linux-nat.c (delete_lwp_cleanup): Delete. | |
195 | (struct lwp_deleter): New struct. | |
196 | (lwp_info_up): New typedef. | |
197 | (linux_nat_target::follow_fork): Delete cleanup, and make use of | |
198 | lwp_info_up. | |
199 | ||
a07c8880 AB |
200 | 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com> |
201 | ||
202 | * linux-fork.c (class scoped_switch_fork_info): New class. | |
203 | (inferior_call_waitpid): Update to use scoped_switch_fork_info. | |
204 | ||
26089c49 AB |
205 | 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com> |
206 | ||
207 | * valops.c (find_overload_match): Remove use of null_cleanup, and | |
208 | calls to do_cleanups. | |
209 | ||
06d3e5b0 AB |
210 | 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com> |
211 | ||
212 | * compile/compile-cplus-types.c | |
213 | (compile_cplus_instance::decl_name): Handle changes to | |
214 | cp_func_name. | |
215 | * cp-support.c (cp_func_name): Update header comment, update | |
216 | return type. | |
217 | * cp-support.h (cp_func_name): Update return type in declaration. | |
218 | * valops.c (find_overload_match): Move temp_func local to top | |
219 | level of function and change its type. Use temp_func to hold and | |
220 | delete temporary string obtained from cp_func_name. | |
221 | ||
66644cd3 AB |
222 | 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com> |
223 | ||
224 | * remote.c (remote_target::remote_check_symbols): Convert `msg` to | |
225 | gdb::char_vector, remove cleanup, and update uses of `msg`. | |
226 | ||
592d8c0a JW |
227 | 2019-01-03 Jim Wilson <jimw@sifive.com> |
228 | ||
229 | * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8. | |
230 | ||
c55d06ec TT |
231 | 2019-01-02 Tom Tromey <tom@tromey.com> |
232 | ||
233 | * xml-tdesc.c (xml_cache): Hold a target_desc_up. | |
234 | (tdesc_parse_xml): Remove cleanups. | |
235 | * target-descriptions.h (make_cleanup_free_target_description): | |
236 | Don't declare. | |
237 | (target_desc_deleter): New struct. | |
238 | (target_desc_up): New typedef. | |
239 | * target-descriptions.c (target_desc_deleter::operator()): Rename | |
240 | from free_target_description. | |
241 | (make_cleanup_free_target_description): Remove. | |
242 | ||
3a6ae42d TT |
243 | 2019-01-02 Tom Tromey <tom@tromey.com> |
244 | ||
245 | * linespec.c (struct linespec_parser): Rename from ls_parser. Add | |
246 | constructor, destructor. | |
247 | (linespec_parser): Remove typedef. | |
248 | (~linespec_parser): Rename from linespec_parser_delete. | |
249 | (linespec_lex_to_end, linespec_complete_label) | |
250 | (linespec_complete): Update. | |
251 | (decode_line_full): Remove cleanups. | |
252 | (decode_line_1): Update. | |
253 | ||
61fd3e73 TT |
254 | 2019-01-02 Tom Tromey <tom@tromey.com> |
255 | ||
256 | * python/python-internal.h (inferior_to_inferior_object): Change | |
257 | return type. | |
258 | * python/py-exitedevent.c (create_exited_event_object): Update. | |
259 | * python/py-inferior.c (inferior_to_inferior_object): Return | |
260 | gdbpy_ref. | |
261 | (python_new_inferior, python_inferior_deleted) | |
262 | (thread_to_thread_object, delete_thread_object) | |
263 | (build_inferior_list, gdbpy_selected_inferior): Update. | |
264 | * python/py-infthread.c (create_thread_object): Update. Also fail | |
265 | if inferior_to_inferior_object fails. | |
266 | ||
d20172fc SM |
267 | 2019-01-02 Simon Marchi <simon.marchi@ericsson.com> |
268 | ||
269 | * inferior.h (class inferior) <displaced_step_state>: New field. | |
270 | * infrun.h (struct displaced_step_state): Move here from | |
271 | infrun.c. Initialize fields, add constructor. | |
272 | <inf>: Remove field. | |
273 | <reset>: New method. | |
274 | * infrun.c (struct displaced_step_inferior_state): Move to | |
275 | infrun.h. | |
276 | (displaced_step_inferior_states): Remove. | |
277 | (get_displaced_stepping_state): Adust. | |
278 | (displaced_step_in_progress_any_inferior): Adjust. | |
279 | (displaced_step_in_progress_thread): Adjust. | |
280 | (displaced_step_in_progress): Adjust. | |
281 | (add_displaced_stepping_state): Remove. | |
282 | (get_displaced_step_closure_by_addr): Adjust. | |
283 | (remove_displaced_stepping_state): Remove. | |
284 | (infrun_inferior_exit): Call displaced_step_state.reset. | |
285 | (use_displaced_stepping): Don't check for NULL. | |
286 | (displaced_step_prepare_throw): Call | |
287 | get_displaced_stepping_state. | |
288 | (displaced_step_fixup): Don't check for NULL. | |
289 | (prepare_for_detach): Don't check for NULL. | |
290 | ||
e3319240 PW |
291 | 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
292 | ||
293 | * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm | |
294 | in case of call that did not complete. | |
295 | ||
5d36dfb9 AU |
296 | 2019-01-02 Andrey Utkin <autkin@undo.io> |
297 | ||
298 | * symfile.c (find_separate_debug_file): Fix search of debug files for | |
299 | remote debuggee. | |
300 | ||
8833fbf0 TT |
301 | 2019-01-02 Tom Tromey <tom@tromey.com> |
302 | ||
303 | * python/py-inferior.c (gdbpy_initialize_inferior): Fix | |
304 | indentation. | |
305 | * python/py-frame.c (frapy_older): Remove cast. | |
306 | (frapy_newer): Likewise. | |
307 | * python/py-breakpoint.c (local_setattro): Remove cast. | |
308 | * python/py-arch.c (archpy_name): Remove local variable. | |
309 | * python/py-type.c (gdbpy_lookup_type): Remove cast. | |
310 | ||
4ada3dfd JB |
311 | 2019-01-02 Joel Brobecker <brobecker@adacore.com> |
312 | ||
313 | * unittests/basic_string_view/element_access/char/empty.cc: | |
314 | Fix year range in copyright header. | |
315 | ||
113b7b81 AB |
316 | 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com> |
317 | ||
318 | * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>: | |
319 | Delete. | |
320 | <operator==>: Update with for removed field. | |
321 | <hash>: Likewise. | |
322 | * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to... | |
323 | <isa_features>: ...this. | |
324 | <abi_features>: New field. | |
325 | (riscv_isa_flen): Update comment. | |
326 | (riscv_abi_xlen): New declaration. | |
327 | (riscv_abi_flen): New declaration. | |
328 | * riscv-tdep.c (riscv_isa_xlen): Update to get answer from | |
329 | isa_features. | |
330 | (riscv_abi_xlen): New function. | |
331 | (riscv_isa_flen): Update to get answer from isa_features. | |
332 | (riscv_abi_flen): New function. | |
333 | (riscv_has_fp_abi): Update to get answer from abi_features. | |
334 | (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa | |
335 | xlen and flen. | |
336 | (riscv_call_info) <xlen, flen>: Update comment. | |
337 | (riscv_call_arg_struct): Remove invalid assertions | |
338 | (riscv_features_from_gdbarch_info): Update now hw_float_abi field | |
339 | is removed. | |
340 | (riscv_gdbarch_init): Gather isa features and abi features | |
341 | separately, ensure both match on the gdbarch when reusing an old | |
342 | gdbarch. Relax an error check to allow 32-bit abi float to run on | |
343 | a target with 64-bit float hardware. | |
344 | ||
b18ca514 PW |
345 | 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
346 | ||
347 | * source.c (search_command_helper): Stop reverse search | |
348 | when line 1 has been searched. | |
349 | ||
ec70d8db PW |
350 | 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
351 | ||
352 | * record-full.c (record_full_base_target::close): Rewrite | |
353 | record_full_core_buf_list free logic. | |
354 | ||
5b38f9c1 PW |
355 | 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
356 | ||
357 | * break-catch-syscall.c (print_one_catch_syscall): xfree | |
358 | the last text. | |
359 | ||
66d91b39 JB |
360 | 2019-01-01 Joel Brobecker <brobecker@adacore.com> |
361 | ||
362 | * top.c (print_gdb_version): Update Copyright year in version | |
363 | message. | |
364 | ||
42a4f53d JB |
365 | 2019-01-01 Joel Brobecker <brobecker@adacore.com> |
366 | ||
367 | Update copyright year range in all GDB files. | |
368 | ||
5bbd631d | 369 | 2019-01-01 Joel Brobecker <brobecker@adacore.com> |
2139e8dc | 370 | |
5bbd631d | 371 | * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018. |
2139e8dc | 372 | |
5bbd631d | 373 | For older changes see ChangeLog-2018. |
c906108c SS |
374 | \f |
375 | Local Variables: | |
376 | mode: change-log | |
377 | left-margin: 8 | |
378 | fill-column: 74 | |
379 | version-control: never | |
57da7796 | 380 | coding: utf-8 |
c906108c | 381 | End: |
5bbd631d | 382 |