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