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