gdb: Remove cleanup from linux_nat_target::follow_fork
[external/binutils.git] / gdb / ChangeLog
1 2019-01-03  Andrew Burgess  <andrew.burgess@embecosm.com>
2
3         * linux-nat.c (delete_lwp_cleanup): Delete.
4         (struct lwp_deleter): New struct.
5         (lwp_info_up): New typedef.
6         (linux_nat_target::follow_fork): Delete cleanup, and make use of
7         lwp_info_up.
8
9 2019-01-03  Andrew Burgess  <andrew.burgess@embecosm.com>
10
11         * linux-fork.c (class scoped_switch_fork_info): New class.
12         (inferior_call_waitpid): Update to use scoped_switch_fork_info.
13
14 2019-01-03  Andrew Burgess  <andrew.burgess@embecosm.com>
15
16         * valops.c (find_overload_match): Remove use of null_cleanup, and
17         calls to do_cleanups.
18
19 2019-01-03  Andrew Burgess  <andrew.burgess@embecosm.com>
20
21         * compile/compile-cplus-types.c
22         (compile_cplus_instance::decl_name): Handle changes to
23         cp_func_name.
24         * cp-support.c (cp_func_name): Update header comment, update
25         return type.
26         * cp-support.h (cp_func_name): Update return type in declaration.
27         * valops.c (find_overload_match): Move temp_func local to top
28         level of function and change its type.  Use temp_func to hold and
29         delete temporary string obtained from cp_func_name.
30
31 2019-01-03  Andrew Burgess  <andrew.burgess@embecosm.com>
32
33         * remote.c (remote_target::remote_check_symbols): Convert `msg` to
34         gdb::char_vector, remove cleanup, and update uses of `msg`.
35
36 2019-01-03  Jim Wilson  <jimw@sifive.com>
37
38         * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
39
40 2019-01-02  Tom Tromey  <tom@tromey.com>
41
42         * xml-tdesc.c (xml_cache): Hold a target_desc_up.
43         (tdesc_parse_xml): Remove cleanups.
44         * target-descriptions.h (make_cleanup_free_target_description):
45         Don't declare.
46         (target_desc_deleter): New struct.
47         (target_desc_up): New typedef.
48         * target-descriptions.c (target_desc_deleter::operator()): Rename
49         from free_target_description.
50         (make_cleanup_free_target_description): Remove.
51
52 2019-01-02  Tom Tromey  <tom@tromey.com>
53
54         * linespec.c (struct linespec_parser): Rename from ls_parser.  Add
55         constructor, destructor.
56         (linespec_parser): Remove typedef.
57         (~linespec_parser): Rename from linespec_parser_delete.
58         (linespec_lex_to_end, linespec_complete_label)
59         (linespec_complete): Update.
60         (decode_line_full): Remove cleanups.
61         (decode_line_1): Update.
62
63 2019-01-02  Tom Tromey  <tom@tromey.com>
64
65         * python/python-internal.h (inferior_to_inferior_object): Change
66         return type.
67         * python/py-exitedevent.c (create_exited_event_object): Update.
68         * python/py-inferior.c (inferior_to_inferior_object): Return
69         gdbpy_ref.
70         (python_new_inferior, python_inferior_deleted)
71         (thread_to_thread_object, delete_thread_object)
72         (build_inferior_list, gdbpy_selected_inferior): Update.
73         * python/py-infthread.c (create_thread_object): Update.  Also fail
74         if inferior_to_inferior_object fails.
75
76 2019-01-02  Simon Marchi  <simon.marchi@ericsson.com>
77
78         * inferior.h (class inferior) <displaced_step_state>: New field.
79         * infrun.h (struct displaced_step_state): Move here from
80         infrun.c.  Initialize fields, add constructor.
81         <inf>: Remove field.
82         <reset>: New method.
83         * infrun.c (struct displaced_step_inferior_state): Move to
84         infrun.h.
85         (displaced_step_inferior_states): Remove.
86         (get_displaced_stepping_state): Adust.
87         (displaced_step_in_progress_any_inferior): Adjust.
88         (displaced_step_in_progress_thread): Adjust.
89         (displaced_step_in_progress): Adjust.
90         (add_displaced_stepping_state): Remove.
91         (get_displaced_step_closure_by_addr): Adjust.
92         (remove_displaced_stepping_state): Remove.
93         (infrun_inferior_exit): Call displaced_step_state.reset.
94         (use_displaced_stepping): Don't check for NULL.
95         (displaced_step_prepare_throw): Call
96         get_displaced_stepping_state.
97         (displaced_step_fixup): Don't check for NULL.
98         (prepare_for_detach): Don't check for NULL.
99
100 2019-01-02  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
101
102         * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
103          in case of call that did not complete.
104
105 2019-01-02  Andrey Utkin  <autkin@undo.io>
106
107         * symfile.c (find_separate_debug_file): Fix search of debug files for
108         remote debuggee.
109
110 2019-01-02  Tom Tromey  <tom@tromey.com>
111
112         * python/py-inferior.c (gdbpy_initialize_inferior): Fix
113         indentation.
114         * python/py-frame.c (frapy_older): Remove cast.
115         (frapy_newer): Likewise.
116         * python/py-breakpoint.c (local_setattro): Remove cast.
117         * python/py-arch.c (archpy_name): Remove local variable.
118         * python/py-type.c (gdbpy_lookup_type): Remove cast.
119
120 2019-01-02  Joel Brobecker  <brobecker@adacore.com>
121
122         * unittests/basic_string_view/element_access/char/empty.cc:
123         Fix year range in copyright header.
124
125 2019-01-01  Andrew Burgess  <andrew.burgess@embecosm.com>
126
127         * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
128         Delete.
129         <operator==>: Update with for removed field.
130         <hash>: Likewise.
131         * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
132         <isa_features>: ...this.
133         <abi_features>: New field.
134         (riscv_isa_flen): Update comment.
135         (riscv_abi_xlen): New declaration.
136         (riscv_abi_flen): New declaration.
137         * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
138         isa_features.
139         (riscv_abi_xlen): New function.
140         (riscv_isa_flen): Update to get answer from isa_features.
141         (riscv_abi_flen): New function.
142         (riscv_has_fp_abi): Update to get answer from abi_features.
143         (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
144         xlen and flen.
145         (riscv_call_info) <xlen, flen>: Update comment.
146         (riscv_call_arg_struct): Remove invalid assertions
147         (riscv_features_from_gdbarch_info): Update now hw_float_abi field
148         is removed.
149         (riscv_gdbarch_init): Gather isa features and abi features
150         separately, ensure both match on the gdbarch when reusing an old
151         gdbarch.  Relax an error check to allow 32-bit abi float to run on
152         a target with 64-bit float hardware.
153
154 2019-01-01  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
155
156         * source.c (search_command_helper): Stop reverse search
157         when line 1 has been searched.
158
159 2019-01-01  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
160
161         * record-full.c (record_full_base_target::close): Rewrite
162         record_full_core_buf_list free logic.
163
164 2019-01-01  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
165
166         * break-catch-syscall.c (print_one_catch_syscall): xfree
167         the last text.
168
169 2019-01-01  Joel Brobecker  <brobecker@adacore.com>
170
171         * top.c (print_gdb_version): Update Copyright year in version
172         message.
173
174 2019-01-01  Joel Brobecker  <brobecker@adacore.com>
175
176         Update copyright year range in all GDB files.
177
178 2019-01-01  Joel Brobecker  <brobecker@adacore.com>
179
180         * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
181
182 For older changes see ChangeLog-2018.
183 \f
184 Local Variables:
185 mode: change-log
186 left-margin: 8
187 fill-column: 74
188 version-control: never
189 coding: utf-8
190 End:
191