Commit | Line | Data |
---|---|---|
a474bd8e PA |
1 | 2017-02-08 Pedro Alves <palves@redhat.com> |
2 | ||
3 | * interps.c (interp::interp): Remove reference to quiet_p. | |
4 | (interp_set): Make static. Remove dead "Switching to" output | |
5 | code. | |
6 | (interp_quiet_p, interp_set_quiet): Delete. | |
7 | (interpreter_exec_cmd): Don't set the interpreter quiet. | |
8 | * interps.h (interp_quiet_p): Make static. | |
9 | (class interp) <quiet_p>: Remove field | |
10 | ||
3d7b173c JG |
11 | 2017-02-08 Jerome Guitton <guitton@adacore.com> |
12 | ||
604c4576 JG |
13 | * cli/cli-decode.c (find_command_name_length): Make it extern. |
14 | * cli/cli-decode.h (find_command_name_length): Declare. | |
15 | * cli/cli-script.c (command_name_equals, line_first_arg): | |
16 | New functions. | |
17 | (process_next_line): Use cli-decode to parse command names. | |
18 | (build_command_line): Make args a constant pointer. | |
19 | ||
20 | 2017-02-08 Jerome Guitton <guitton@adacore.com> | |
21 | ||
3d7b173c JG |
22 | * cli-decode.c (lookup_cmd_1, lookup_cmd_composition): |
23 | Remove case-insensitive search. | |
24 | ||
1291063d JM |
25 | 2017-02-07 Jose E. Marchesi <jose.marchesi@oracle.com> |
26 | ||
27 | * sparc-tdep.c (sparc32_gdbarch_init): Do not place a + operator | |
28 | at the end of the line. Avoids an ARI warning. | |
29 | ||
20b477a7 LM |
30 | 2017-02-06 Luis Machado <lgustavo@codesourcery.com> |
31 | ||
32 | * NEWS: Mention support for record/replay of Intel 64 rdrand and | |
33 | rdseed instructions. | |
34 | i386-tdep.c (i386_process_record): Handle Intel 64 rdrand and rseed. | |
35 | ||
3f7b46f2 IR |
36 | 2017-02-06 Ivo Raisr <ivo.raisr@oracle.com> |
37 | ||
38 | PR tdep/20936 | |
39 | Provide and use sparc32 and sparc64 target description XML files. | |
40 | * features/sparc/sparc32-cp0.xml, features/sparc/sparc32-cpu.xml, | |
41 | features/sparc/sparc32-fpu.xml: New files for sparc 32-bit. | |
42 | * features/sparc/sparc64-cp0.xml, features/sparc/sparc64-cpu.xml, | |
43 | features/sparc/sparc64-fpu.xml: New files for sparc 64-bit. | |
44 | * features/sparc/sparc32-solaris.xml: New file. | |
45 | * features/sparc/sparc64-solaris.xml: New file. | |
46 | * features/sparc/sparc32-solaris.c: Generated. | |
47 | * features/sparc/sparc64-solaris.c: Generated. | |
48 | * sparc-tdep.h: Account for differences in target descriptions. | |
49 | * sparc-tdep.c (sparc32_register_name): Use target provided registers. | |
50 | (sparc32_register_type): Use target provided registers. | |
51 | (validate_tdesc_registers): New function. | |
52 | (sparc32_gdbarch_init): Use tdesc_has_registers. | |
53 | Set pseudoregister functions. | |
54 | * sparc64-tdep.c (sparc64_register_name): Use target provided registers. | |
55 | (sparc64_register_type): Use target provided registers. | |
56 | (sparc64_init_abi): Set pseudoregister functions. | |
57 | ||
f0fd41c1 TT |
58 | 2017-02-03 Tom Tromey <tom@tromey.com> |
59 | ||
60 | PR rust/21097: | |
61 | * rust-lang.c (rust_print_type) <TYPE_CODE_UNION>: Handle enums | |
62 | with a single member. | |
63 | ||
d6f9b0fb PA |
64 | 2017-02-03 Pedro Alves <palves@redhat.com> |
65 | ||
66 | * cli/cli-interp.c (cli_interp_base::cli_interp_base) | |
67 | (cli_interp_base::~cli_interp_base): New. | |
68 | (cli_interp): New struct. | |
69 | (as_cli_interp): Cast the interp itself to cli_interp. | |
70 | (cli_interpreter_pre_command_loop): Rename to ... | |
71 | (cli_interp_base::pre_command_loop): ... this. Remove 'self' | |
72 | parameter. | |
73 | (cli_interpreter_init): Rename to ... | |
74 | (cli_interp::init): ... this. Remove 'self' parameter. Use | |
75 | boolean. Make extern. | |
76 | (cli_interpreter_resume): Rename to ... | |
77 | (cli_interp::resume): ... this. Remove 'data' parameter. Make | |
78 | extern. | |
79 | (cli_interpreter_suspend): Rename to ... | |
80 | (cli_interp::suspend): ... this. Remove 'data' parameter. Make | |
81 | extern. | |
82 | (cli_interpreter_exec): Rename to ... | |
83 | (cli_interp::exec): ... this. Remove 'data' parameter. Make | |
84 | extern. | |
85 | (cli_interpreter_supports_command_editing): Rename to ... | |
86 | (cli_interp_base::supports_command_editing): ... this. Remove | |
87 | 'interp' parameter. Make extern. | |
88 | (cli_ui_out): Rename to ... | |
89 | (cli_interp::interp_ui_out): ... this. Remove 'interp' parameter. | |
90 | Make extern. | |
91 | (cli_set_logging): Rename to ... | |
92 | (cli_interp_base::set_logging): ... this. Remove 'interp' | |
93 | parameter. Make extern. | |
94 | (cli_interp_procs): Delete. | |
95 | (cli_interp_factory): Adjust to use "new". | |
96 | * cli/cli-interp.h: Include "interps.h". | |
97 | (struct cli_interp_base): New struct. | |
98 | * interps.c (struct interp): Delete. Fields moved to interps.h. | |
99 | (interp_new): Delete. | |
100 | (interp::interp, interp::~interp): New. | |
101 | (interp_set): Use bool, and return void. Assume the interpreter | |
102 | has suspend, init and resume methods, and that the all return | |
103 | void. | |
104 | (set_top_level_interpreter): interp_set returns void. | |
105 | (interp_ui_out): Adapt. | |
106 | (current_interp_set_logging): Adapt. | |
107 | (interp_data): Delete. | |
108 | (interp_pre_command_loop, interp_supports_command_editing): Adapt. | |
109 | (interp_exec): Adapt. | |
110 | (top_level_interpreter_data): Delete. | |
111 | * interps.h (interp_init_ftype, interp_resume_ftype) | |
112 | (interp_suspend_ftype, interp_exec_ftype) | |
113 | (interp_pre_command_loop_ftype, interp_ui_out_ftype): Delete. | |
114 | (class interp): New. | |
115 | (interp_new): Delete. | |
116 | (interp_set): Now returns void. Use bool. | |
117 | (interp_data, top_level_interpreter_data): Delete. | |
118 | * mi/mi-common.h: Include interps.h. | |
119 | (class mi_interp): Inherit from interp. Define a ctor. Declare | |
120 | init, resume, suspect, exec, interp_ui_out, set_logging and | |
121 | pre_command_loop methods. | |
122 | * mi/mi-interp.c (as_mi_interp): Cast the interp itself. | |
123 | (mi_interpreter_init): Rename to ... | |
124 | (mi_interp::init): ... this. Remove the 'interp' parameter, use | |
125 | bool, return void and make extern. Adjust. | |
126 | (mi_interpreter_resume): ... Rename to ... | |
127 | (mi_interp::resume): ... this. Remove the 'data' parameter, | |
128 | return void and make extern. Adjust. | |
129 | (mi_interpreter_suspend): ... Rename to ... | |
130 | (mi_interp::suspend): ... this. Remove the 'data' parameter, | |
131 | return void and make extern. Adjust. | |
132 | (mi_interpreter_exec): ... Rename to ... | |
133 | (mi_interp::exec): ... this. Remove the 'data' parameter and make | |
134 | extern. Adjust. | |
135 | (mi_interpreter_pre_command_loop): ... Rename to ... | |
136 | (mi_interp::pre_command_loop): ... this. Remove the 'self' | |
137 | parameter and make extern. | |
138 | (mi_on_normal_stop_1): Adjust. | |
139 | (mi_ui_out): Rename to ... | |
140 | (mi_interp::interp_ui_out): ... this. Remove the 'interp' | |
141 | parameter and make extern. Adjust. | |
142 | (mi_set_logging): Rename to ... | |
143 | (mi_interp::set_logging): ... this. Remove the 'interp' | |
144 | parameter and make extern. Adjust. | |
145 | (mi_interp_procs): Delete. | |
146 | (mi_interp_factory): Adjust to use 'new'. | |
147 | * mi/mi-main.c (mi_cmd_gdb_exit, captured_mi_execute_command) | |
148 | (mi_print_exception, mi_execute_command, mi_load_progress): | |
149 | Adjust. | |
150 | * tui/tui-interp.c (tui_interp): New class. | |
151 | (as_tui_interp): Return a tui_interp pointer. | |
152 | (tui_on_normal_stop, tui_on_signal_received) | |
153 | (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited) | |
154 | (tui_on_no_history, tui_on_user_selected_context_changed): Adjust | |
155 | to use interp::interp_ui_out. | |
156 | (tui_init): Rename to ... | |
157 | (tui_interp::init): ... this. Remove the 'self' parameter, use | |
158 | bool, return void and make extern. Adjust. | |
159 | (tui_resume): Rename to ... | |
160 | (tui_interp::resume): ... this. Remove the 'data' parameter, | |
161 | return void and make extern. Adjust. | |
162 | (tui_suspend): Rename to ... | |
163 | (tui_interp::suspend): ... this. Remove the 'data' parameter, | |
164 | return void and make extern. Adjust. | |
165 | (tui_ui_out): Rename to ... | |
166 | (tui_interp::interp_ui_out): ... this. Remove the 'self' | |
167 | parameter, and make extern. Adjust. | |
168 | (tui_exec): Rename to ... | |
169 | (tui_interp::exec): ... this. Remove the 'data' parameter and | |
170 | make extern. | |
171 | (tui_interp_procs): Delete. | |
172 | (tui_interp_factory): Use "new". | |
173 | ||
65c40c95 TT |
174 | 2017-02-02 Tom Tromey <tom@tromey.com> |
175 | ||
176 | * rust-exp.y (ends_raw_string, space_then_number) | |
177 | (rust_identifier_start_p): Return bool. | |
178 | * rust-lang.c (rust_tuple_type_p, rust_underscore_fields) | |
179 | (rust_tuple_struct_type_p, rust_tuple_variant_type_p) | |
180 | (rust_slice_type_p, rust_range_type_p, rust_u8_type_p) | |
181 | (rust_chartype_p): Return bool. | |
182 | (val_print_struct, rust_print_struct_def, rust_print_type): | |
183 | Update. | |
184 | * rust-lang.h (rust_tuple_type_p, rust_tuple_struct_type_p): | |
185 | Return bool. | |
186 | ||
b50f188d TT |
187 | 2017-02-02 Tom Tromey <tom@tromey.com> |
188 | ||
189 | * rust-lang.c: Reindent. | |
190 | ||
03c85b11 TT |
191 | 2017-02-02 Tom Tromey <tom@tromey.com> |
192 | ||
193 | * rust-lang.h (rust_crate_for_block): Update. | |
194 | * rust-lang.c (rust_crate_for_block): Return std::string. | |
195 | (rust_get_disr_info): Use std:;string, not | |
196 | gdb::unique_xmalloc_ptr. | |
197 | * rust-exp.y (crate_name): Update. | |
198 | ||
9b6da501 PA |
199 | 2017-02-02 Pedro Alves <palves@redhat.com> |
200 | ||
201 | * disasm-selftests.c (print_one_insn_test): Move the "verbose" | |
202 | field out of gdb_disassembler_test and make it static. | |
203 | ||
ec4cb20b PA |
204 | 2017-02-02 Pedro Alves <palves@redhat.com> |
205 | ||
206 | * mi/mi-common.h (struct mi_interp): Delete the mi2_interp, | |
207 | mi1_interp and mi_interp fields. | |
208 | ||
5be5dbf0 PA |
209 | 2017-02-02 Pedro Alves <palves@redhat.com> |
210 | ||
616268b6 PA |
211 | * cli/cli-interp.c (struct saved_output_files, saved_output): |
212 | Moved from cli/cli-logging.c. | |
213 | (cli_set_logging): New function. | |
214 | (cli_interp_procs): Install cli_set_logging. | |
215 | * cli/cli-interp.h (make_logging_output, cli_set_logging): | |
216 | Declare. | |
217 | * cli/cli-logging.c (struct saved_output_files, saved_output): | |
218 | Moved to cli/cli-interp.c. | |
219 | (pop_output_files): Don't save outputs here. | |
220 | (make_logging_output): New function. | |
221 | (handle_redirections): Don't build tee nor save previous outputs | |
222 | here. | |
223 | * interps.c (current_interp_set_logging): Change prototype. | |
224 | Assume there's always a set_logging_proc method installed. | |
225 | * interps.h (interp_set_logging_ftype): Change prototype. | |
226 | (current_interp_set_logging): Change prototype and adjust comment. | |
227 | * mi/mi-interp.c (mi_set_logging): Change protototype. Adjust to | |
228 | use make_logging_output. | |
229 | * tui/tui-interp.c (tui_interp_procs): Install cli_set_logging. | |
230 | 2017-02-02 Pedro Alves <palves@redhat.com> | |
231 | ||
5be5dbf0 PA |
232 | * cli/cli-logging.c (maybe_warn_already_logging): New factored out |
233 | from ... | |
234 | (set_logging_overwrite): ... here. | |
235 | (logging_no_redirect_file): Delete. | |
236 | (set_logging_redirect): Don't handle redirection on the fly. | |
237 | Instead warn that "logging off" / "logging on" is necessary. | |
238 | (pop_output_files): Delete references to logging_no_redirect_file. | |
239 | (show_logging_command): Always speak in terms of what will happen | |
240 | once logging is reenabled. | |
241 | ||
c99cc448 PA |
242 | 2017-02-02 Pedro Alves <palves@redhat.com> |
243 | ||
244 | * disasm.h (gdb_pretty_print_disassembler): Tweak intro comment. | |
245 | ||
8b172ce7 PA |
246 | 2017-02-02 Pedro Alves <palves@redhat.com> |
247 | ||
248 | * disasm.c (gdb_pretty_print_insn): Rename to ... | |
249 | (gdb_pretty_print_disassembler::pretty_print_insn): ... this. | |
250 | Remove gdbarch parameter. Adapt to clear the object's buffers | |
251 | instead of allocating new buffers, and to print using the object's | |
252 | gdb_disassembler instead of calling gdb_print_insn. | |
253 | (dump_insns): Use gdb_pretty_print_disassembler. | |
254 | * disasm.h (gdb_pretty_print_insn): Delete declaration. | |
255 | (gdb_pretty_print_disassembler): New class. | |
256 | * record-btrace.c (btrace_insn_history): Use | |
257 | gdb_pretty_print_disassembler. | |
258 | ||
d7e74731 PA |
259 | 2017-02-02 Pedro Alves <palves@redhat.com> |
260 | ||
261 | * ada-lang.c (type_as_string): Use string_file. | |
262 | * ada-valprint.c (ada_print_floating): Use string_file. | |
263 | * ada-varobj.c (ada_varobj_scalar_image) | |
264 | (ada_varobj_get_value_image): Use string_file. | |
265 | * aix-thread.c (aix_thread_extra_thread_info): Use string_file. | |
266 | * arm-tdep.c (_initialize_arm_tdep): Use string_printf. | |
267 | * breakpoint.c (update_inserted_breakpoint_locations) | |
268 | (insert_breakpoint_locations, reattach_breakpoints) | |
269 | (print_breakpoint_location, print_one_detail_ranged_breakpoint) | |
270 | (print_it_watchpoint): Use string_file. | |
271 | (save_breakpoints): Use stdio_file. | |
272 | * c-exp.y (oper): Use string_file. | |
273 | * cli/cli-logging.c (set_logging_redirect): Use ui_file_up and | |
274 | tee_file. | |
275 | (pop_output_files): Use delete. | |
276 | (handle_redirections): Use stdio_file and tee_file. | |
277 | * cli/cli-setshow.c (do_show_command): Use string_file. | |
278 | * compile/compile-c-support.c (c_compute_program): Use | |
279 | string_file. | |
280 | * compile/compile-c-symbols.c (generate_vla_size): Take a | |
281 | 'string_file &' instead of a 'ui_file *'. | |
282 | (generate_c_for_for_one_variable): Take a 'string_file &' instead | |
283 | of a 'ui_file *'. Use string_file. | |
284 | (generate_c_for_variable_locations): Take a 'string_file &' | |
285 | instead of a 'ui_file *'. | |
286 | * compile/compile-internal.h (generate_c_for_for_one_variable): | |
287 | Take a 'string_file &' instead of a 'ui_file *'. | |
288 | * compile/compile-loc2c.c (push, pushf, unary, binary) | |
289 | (print_label, pushf_register_address, pushf_register) | |
290 | (do_compile_dwarf_expr_to_c): Take a 'string_file &' instead of a | |
291 | 'ui_file *'. Adjust. | |
292 | * compile/compile.c (compile_to_object): Use string_file. | |
293 | * compile/compile.h (compile_dwarf_expr_to_c) | |
294 | (compile_dwarf_bounds_to_c): Take a 'string_file &' instead of a | |
295 | 'ui_file *'. | |
296 | * cp-support.c (inspect_type): Use string_file and obstack_copy0. | |
297 | (replace_typedefs_qualified_name): Use string_file and | |
298 | obstack_copy0. | |
299 | * disasm.c (gdb_pretty_print_insn): Use string_file. | |
300 | (gdb_disassembly): Adjust reference the null_stream global. | |
301 | (do_ui_file_delete): Delete. | |
302 | (gdb_insn_length): Use null_stream. | |
303 | * dummy-frame.c (maintenance_print_dummy_frames): Use stdio_file. | |
304 | * dwarf2loc.c (dwarf2_compile_property_to_c) | |
305 | (locexpr_generate_c_location, loclist_generate_c_location): Take a | |
306 | 'string_file &' instead of a 'ui_file *'. | |
307 | * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise. | |
308 | * dwarf2read.c (do_ui_file_peek_last): Delete. | |
309 | (dwarf2_compute_name): Use string_file. | |
310 | * event-top.c (gdb_setup_readline): Use stdio_file. | |
311 | * gdbarch.sh (verify_gdbarch): Use string_file. | |
312 | * gdbtypes.c (safe_parse_type): Use null_stream. | |
313 | * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Use | |
314 | string_file. | |
315 | * guile/scm-disasm.c (gdbscm_print_insn_from_port): Take a | |
316 | 'string_file *' instead of a 'ui_file *'. | |
317 | (gdbscm_arch_disassemble): Use string_file. | |
318 | * guile/scm-frame.c (frscm_print_frame_smob): Use string_file. | |
319 | * guile/scm-ports.c (class ioscm_file_port): Now a class that | |
320 | inherits from ui_file. | |
321 | (ioscm_file_port_delete, ioscm_file_port_rewind) | |
322 | (ioscm_file_port_put): Delete. | |
323 | (ioscm_file_port_write): Rename to ... | |
324 | (ioscm_file_port::write): ... this. Remove file_port_magic | |
325 | checks. | |
326 | (ioscm_file_port_new): Delete. | |
327 | (ioscm_with_output_to_port_worker): Use ioscm_file_port and | |
328 | ui_file_up. | |
329 | * guile/scm-type.c (tyscm_type_name): Use string_file. | |
330 | * guile/scm-value.c (vlscm_print_value_smob, gdbscm_value_print): | |
331 | Use string_file. | |
332 | * infcmd.c (print_return_value_1): Use string_file. | |
333 | * infrun.c (print_target_wait_results): Use string_file. | |
334 | * language.c (add_language): Use string_file. | |
335 | * location.c (explicit_to_string_internal): Use string_file. | |
336 | * main.c (captured_main_1): Use null_file. | |
337 | * maint.c (maintenance_print_architecture): Use stdio_file. | |
338 | * mi/mi-cmd-stack.c (list_arg_or_local): Use string_file. | |
339 | * mi/mi-common.h (struct mi_interp) <out, err, log, targ, | |
340 | event_channel>: Change type to mi_console_file pointer. | |
341 | * mi/mi-console.c (mi_console_file_fputs, mi_console_file_flush) | |
342 | (mi_console_file_delete): Delete. | |
343 | (struct mi_console_file): Delete. | |
344 | (mi_console_file_magic): Delete. | |
345 | (mi_console_file_new): Delete. | |
346 | (mi_console_file::mi_console_file): New. | |
347 | (mi_console_file_delete): Delete. | |
348 | (mi_console_file_fputs): Delete. | |
349 | (mi_console_file::write): New. | |
350 | (mi_console_raw_packet): Delete. | |
351 | (mi_console_file::flush): New. | |
352 | (mi_console_file_flush): Delete. | |
353 | (mi_console_set_raw): Rename to ... | |
354 | (mi_console_file::set_raw): ... this. | |
355 | * mi/mi-console.h (class mi_console_file): New class. | |
356 | (mi_console_file_new, mi_console_set_raw): Delete. | |
357 | * mi/mi-interp.c (mi_interpreter_init): Use mi_console_file. | |
358 | (mi_set_logging): Use delete and tee_file. Adjust. | |
359 | * mi/mi-main.c (output_register): Use string_file. | |
360 | (mi_cmd_data_evaluate_expression): Use string_file. | |
361 | (mi_cmd_data_read_memory): Use string_file. | |
362 | (mi_cmd_execute, print_variable_or_computed): Use string_file. | |
363 | * mi/mi-out.c (mi_ui_out::main_stream): New. | |
364 | (mi_ui_out::rewind): Use main_stream and | |
365 | string_file. | |
366 | (mi_ui_out::put): Use main_stream and string_file. | |
367 | (mi_ui_out::mi_ui_out): Remove 'stream' parameter. | |
368 | Allocate a 'string_file' instead. | |
369 | (mi_out_new): Don't allocate a mem_fileopen stream here. | |
370 | * mi/mi-out.h (mi_ui_out::mi_ui_out): Remove 'stream' parameter. | |
371 | (mi_ui_out::main_stream): Declare method. | |
372 | * printcmd.c (eval_command): Use string_file. | |
373 | * psymtab.c (maintenance_print_psymbols): Use stdio_file. | |
374 | * python/py-arch.c (archpy_disassemble): Use string_file. | |
375 | * python/py-breakpoint.c (bppy_get_commands): Use string_file. | |
376 | * python/py-frame.c (frapy_str): Use string_file. | |
377 | * python/py-framefilter.c (py_print_type, py_print_single_arg): | |
378 | Use string_file. | |
379 | * python/py-type.c (typy_str): Use string_file. | |
380 | * python/py-unwind.c (unwind_infopy_str): Use string_file. | |
381 | * python/py-value.c (valpy_str): Use string_file. | |
382 | * record-btrace.c (btrace_insn_history): Use string_file. | |
383 | * regcache.c (regcache_print): Use stdio_file. | |
384 | * reggroups.c (maintenance_print_reggroups): Use stdio_file. | |
385 | * remote.c (escape_buffer): Use string_file. | |
386 | * rust-lang.c (rust_get_disr_info): Use string_file. | |
387 | * serial.c (serial_open_ops_1): Use stdio_file. | |
388 | (do_serial_close): Use delete. | |
389 | * stack.c (print_frame_arg): Use string_file. | |
390 | (print_frame_args): Remove local mem_fileopen stream, not used. | |
391 | (print_frame): Use string_file. | |
392 | * symmisc.c (maintenance_print_symbols): Use stdio_file. | |
393 | * symtab.h (struct symbol_computed_ops) <generate_c_location>: | |
394 | Take a 'string_file *' instead of a 'ui_file *'. | |
395 | * top.c (new_ui): Use stdio_file and stderr_file. | |
396 | (free_ui): Use delete. | |
397 | (execute_command_to_string): Use string_file. | |
398 | (quit_confirm): Use string_file. | |
399 | * tracepoint.c (collection_list::append_exp): Use string_file. | |
400 | * tui/tui-disasm.c (tui_disassemble): Use string_file. | |
401 | * tui/tui-file.c: Don't include "ui-file.h". | |
402 | (enum streamtype, struct tui_stream): Delete. | |
403 | (tui_file_new, tui_file_delete, tui_fileopen, tui_sfileopen) | |
404 | (tui_file_isatty, tui_file_rewind, tui_file_put): Delete. | |
405 | (tui_file::tui_file): New method. | |
406 | (tui_file_fputs): Delete. | |
407 | (tui_file_get_strbuf): Delete. | |
408 | (tui_file::puts): New method. | |
409 | (tui_file_adjust_strbuf): Delete. | |
410 | (tui_file_flush): Delete. | |
411 | (tui_file::flush): New method. | |
412 | * tui/tui-file.h: Tweak intro comment. | |
413 | Include ui-file.h. | |
414 | (tui_fileopen, tui_sfileopen, tui_file_get_strbuf) | |
415 | (tui_file_adjust_strbuf): Delete declarations. | |
416 | (class tui_file): New class. | |
417 | * tui/tui-io.c (tui_initialize_io): Use tui_file. | |
418 | * tui/tui-regs.c (tui_restore_gdbout): Use delete. | |
419 | (tui_register_format): Use string_stream. | |
420 | * tui/tui-stack.c (tui_make_status_line): Use string_file. | |
421 | (tui_get_function_from_frame): Use string_file. | |
422 | * typeprint.c (type_to_string): Use string_file. | |
423 | * ui-file.c (struct ui_file, ui_file_magic, ui_file_new): Delete. | |
424 | (null_stream): New global. | |
425 | (ui_file_delete): Delete. | |
426 | (ui_file::ui_file): New. | |
427 | (null_file_isatty): Delete. | |
428 | (ui_file::~ui_file): New. | |
429 | (null_file_rewind): Delete. | |
430 | (ui_file::printf): New. | |
431 | (null_file_put): Delete. | |
432 | (null_file_flush): Delete. | |
433 | (ui_file::putstr): New. | |
434 | (null_file_write): Delete. | |
435 | (ui_file::putstrn): New. | |
436 | (null_file_read): Delete. | |
437 | (ui_file::putc): New. | |
438 | (null_file_fputs): Delete. | |
439 | (null_file_write_async_safe): Delete. | |
440 | (ui_file::vprintf): New. | |
441 | (null_file_delete): Delete. | |
442 | (null_file::write): New. | |
443 | (null_file_fseek): Delete. | |
444 | (null_file::puts): New. | |
445 | (ui_file_data): Delete. | |
446 | (null_file::write_async_safe): New. | |
447 | (gdb_flush, ui_file_isatty): Adjust. | |
448 | (ui_file_put, ui_file_rewind): Delete. | |
449 | (ui_file_write): Adjust. | |
450 | (ui_file_write_for_put): Delete. | |
451 | (ui_file_write_async_safe, ui_file_read): Adjust. | |
452 | (ui_file_fseek): Delete. | |
453 | (fputs_unfiltered): Adjust. | |
454 | (set_ui_file_flush, set_ui_file_isatty, set_ui_file_rewind) | |
455 | (set_ui_file_put, set_ui_file_write, set_ui_file_write_async_safe) | |
456 | (set_ui_file_read, set_ui_file_fputs, set_ui_file_fseek) | |
457 | (set_ui_file_data): Delete. | |
458 | (string_file::~string_file, string_file::write) | |
459 | (struct accumulated_ui_file, do_ui_file_xstrdup, ui_file_xstrdup) | |
460 | (do_ui_file_as_string, ui_file_as_string): Delete. | |
461 | (do_ui_file_obsavestring, ui_file_obsavestring): Delete. | |
462 | (struct mem_file): Delete. | |
463 | (mem_file_new): Delete. | |
464 | (stdio_file::stdio_file): New. | |
465 | (mem_file_delete): Delete. | |
466 | (stdio_file::stdio_file): New. | |
467 | (mem_fileopen): Delete. | |
468 | (stdio_file::~stdio_file): New. | |
469 | (mem_file_rewind): Delete. | |
470 | (stdio_file::set_stream): New. | |
471 | (mem_file_put): Delete. | |
472 | (stdio_file::open): New. | |
473 | (mem_file_write): Delete. | |
474 | (stdio_file_magic, struct stdio_file): Delete. | |
475 | (stdio_file_new, stdio_file_delete, stdio_file_flush): Delete. | |
476 | (stdio_file::flush): New. | |
477 | (stdio_file_read): Rename to ... | |
478 | (stdio_file::read): ... this. Adjust. | |
479 | (stdio_file_write): Rename to ... | |
480 | (stdio_file::write): ... this. Adjust. | |
481 | (stdio_file_write_async_safe): Rename to ... | |
482 | (stdio_file::write_async_safe) ... this. Adjust. | |
483 | (stdio_file_fputs): Rename to ... | |
484 | (stdio_file::puts) ... this. Adjust. | |
485 | (stdio_file_isatty): Delete. | |
486 | (stdio_file_fseek): Delete. | |
487 | (stdio_file::isatty): New. | |
488 | (stderr_file_write): Rename to ... | |
489 | (stderr_file::write) ... this. Adjust. | |
490 | (stderr_file_fputs): Rename to ... | |
491 | (stderr_file::puts) ... this. Adjust. | |
492 | (stderr_fileopen, stdio_fileopen, gdb_fopen): Delete. | |
493 | (stderr_file::stderr_file): New. | |
494 | (tee_file_magic): Delete. | |
495 | (struct tee_file): Delete. | |
496 | (tee_file::tee_file): New. | |
497 | (tee_file_new): Delete. | |
498 | (tee_file::~tee_file): New. | |
499 | (tee_file_delete): Delete. | |
500 | (tee_file_flush): Rename to ... | |
501 | (tee_file::flush): ... this. Adjust. | |
502 | (tee_file_write): Rename to ... | |
503 | (tee_file::write): ... this. Adjust. | |
504 | (tee_file::write_async_safe): New. | |
505 | (tee_file_fputs): Rename to ... | |
506 | (tee_file::puts): ... this. Adjust. | |
507 | (tee_file_isatty): Rename to ... | |
508 | (tee_file::isatty): ... this. Adjust. | |
509 | * ui-file.h (struct obstack, struct ui_file): Don't | |
510 | forward-declare. | |
511 | (ui_file_new, ui_file_flush_ftype, set_ui_file_flush) | |
512 | (ui_file_write_ftype) | |
513 | (set_ui_file_write, ui_file_fputs_ftype, set_ui_file_fputs) | |
514 | (ui_file_write_async_safe_ftype, set_ui_file_write_async_safe) | |
515 | (ui_file_read_ftype, set_ui_file_read, ui_file_isatty_ftype) | |
516 | (set_ui_file_isatty, ui_file_rewind_ftype, set_ui_file_rewind) | |
517 | (ui_file_put_method_ftype, ui_file_put_ftype, set_ui_file_put) | |
518 | (ui_file_delete_ftype, set_ui_file_data, ui_file_fseek_ftype) | |
519 | (set_ui_file_fseek): Delete. | |
520 | (ui_file_data, ui_file_delete, ui_file_rewind) | |
521 | (struct ui_file): New. | |
522 | (ui_file_up): New. | |
523 | (class null_file): New. | |
524 | (null_stream): Declare. | |
525 | (ui_file_write_for_put, ui_file_put): Delete. | |
526 | (ui_file_xstrdup, ui_file_as_string, ui_file_obsavestring): | |
527 | Delete. | |
528 | (ui_file_fseek, mem_fileopen, stdio_fileopen, stderr_fileopen) | |
529 | (gdb_fopen, tee_file_new): Delete. | |
530 | (struct string_file): New. | |
531 | (struct stdio_file): New. | |
532 | (stdio_file_up): New. | |
533 | (struct stderr_file): New. | |
534 | (class tee_file): New. | |
535 | * ui-out.c (ui_out::field_stream): Take a 'string_file &' instead | |
536 | of a 'ui_file *'. Adjust. | |
537 | * ui-out.h (class ui_out) <field_stream>: Likewise. | |
538 | * utils.c (do_ui_file_delete, make_cleanup_ui_file_delete) | |
539 | (null_stream): Delete. | |
540 | (error_stream): Take a 'string_file &' instead of a 'ui_file *'. | |
541 | Adjust. | |
542 | * utils.h (struct ui_file): Delete forward declaration.. | |
543 | (make_cleanup_ui_file_delete, null_stream): Delete declarations. | |
544 | (error_stream): Take a 'string_file &' instead of a | |
545 | 'ui_file *'. | |
546 | * varobj.c (varobj_value_get_print_value): Use string_file. | |
547 | * xtensa-tdep.c (xtensa_verify_config): Use string_file. | |
548 | * gdbarch.c: Regenerate. | |
549 | ||
187808b0 PA |
550 | 2017-02-02 Pedro Alves <palves@redhat.com> |
551 | ||
552 | * disasm.c (gdb_disassembler::pretty_print_insn): Rename to... | |
553 | (gdb_pretty_print_insn): ... this. Now a free function. Add back | |
554 | a 'gdbarch' parameter. Allocate a mem_fileopen stream here. | |
555 | Adjust to call gdb_print_insn instead of | |
556 | gdb_disassembler::print_insn. | |
557 | (dump_insns, do_mixed_source_and_assembly_deprecated) | |
558 | (do_mixed_source_and_assembly, do_assembly_only): Add back a | |
559 | 'gdbarch' parameter. Remove gdb_disassembler parameter. | |
560 | (gdb_disassembly): Don't allocate a gdb_disassembler here. | |
561 | * disasm.h (gdb_disassembler::pretty_print_insn): Delete | |
562 | declaration. | |
563 | (gdb_pretty_print_insn): Re-add declaration. | |
564 | * record-btrace.c (btrace_insn_history): Don't allocate a | |
565 | gdb_disassembler here. Adjust to call gdb_pretty_print_insn. | |
566 | ||
7a8eb317 SM |
567 | 2017-02-01 Simon Marchi <simon.marchi@polymtl.ca> |
568 | ||
569 | * disasm.h (gdb_disassembly): Remove file_string parameter. | |
570 | * disasm.c (gdb_disassembly): Likewise. | |
571 | * cli/cli-cmds.c (print_disassembly): Adapt. | |
572 | * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise. | |
573 | * stack.c (do_gdb_disassembly): Likewise. | |
574 | ||
7346ef59 AA |
575 | 2017-02-01 Andreas Arnez <arnez@linux.vnet.ibm.com> |
576 | ||
577 | * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): For | |
578 | DWARF_VALUE_LITERAL, no longer ignore the offset on big-endian | |
579 | targets. And if the implicit value is longer than needed, extract | |
580 | the first bytes instead of the "least significant" ones. | |
581 | ||
cd4007e4 MM |
582 | 2017-02-01 Markus Metzger <markus.t.metzger@intel.com> |
583 | ||
584 | * btrace.c (btrace_enable): Do not call btrace_add_pc for | |
585 | BTRACE_FORMAT_PT or if can_access_registers_ptid returns false. | |
586 | (btrace_fetch): Assert can_access_registers_ptid. | |
587 | * record-btrace.c (require_btrace_thread, record_btrace_info): Call | |
588 | validate_registers_access. | |
589 | ||
cf77c34e MM |
590 | 2017-02-01 Markus Metzger <markus.t.metzger@intel.com> |
591 | ||
592 | * gdbthread.h (can_access_registers_ptid): New. | |
593 | * thread.c (can_access_registers_ptid): New. | |
594 | ||
be85ce7d PA |
595 | 2017-02-01 Pedro Alves <palves@redhat.com> |
596 | ||
597 | * i386-tdep.c (i386_fast_tracepoint_valid_at): Use gdb_insn_length. | |
598 | ||
29b0b251 PA |
599 | 2017-01-31 Pedro Alves <palves@redhat.com> |
600 | ||
601 | * mi/mi-interp.c (mi_breakpoint_created, mi_breakpoint_modified): | |
602 | Fix typos. | |
603 | ||
289b5b24 PA |
604 | 2017-01-31 Pedro Alves <palves@redhat.com> |
605 | ||
606 | * stack.c (print_frame_args): Remove local mem_fileopen stream, | |
607 | not used. | |
608 | ||
b47413b4 PA |
609 | 2017-01-31 Pedro Alves <palves@redhat.com> |
610 | ||
611 | * varobj.c (varobj_value_get_print_value): Remove xstrdup call. | |
612 | ||
60adb36c PA |
613 | 2017-01-31 Pedro Alves <palves@redhat.com> |
614 | ||
615 | * common/scoped_restore.h | |
616 | (scoped_restore_tmpl::scoped_restore_tmpl): Template on T2, and | |
617 | change the value's parameter type to T2. | |
618 | (make_scoped_restore): Likewise. | |
619 | ||
2735833d WT |
620 | 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com> |
621 | Richard Henderson <rth@redhat.com> | |
622 | ||
623 | * amd64-linux-nat.c (PTRACE_ARCH_PRCTL): New define. | |
624 | (amd64_linux_fetch_inferior_registers): Add case to fetch FS_BASE | |
625 | GS_BASE for older kernels. | |
626 | (amd64_linux_store_inferior_registers): Add case to store FS_BASE | |
627 | GS_BASE for older kernels. | |
628 | * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Add FS_BASE | |
629 | and GS_BASE to the offset table. | |
630 | (amd64_linux_register_reggroup_p): Add FS_BASE and GS_BASE to the | |
631 | system register group. | |
632 | * amd64-nat.c (amd64_native_gregset_reg_offset): Implements case | |
633 | for older kernels. | |
634 | * amd64-tdep.c (amd64_init_abi): Add segment registers for the | |
635 | amd64 ABI. | |
636 | * amd64-tdep.h (amd64_regnum): Add AMD64_FSBASE_REGNUM and | |
637 | AMD64_GSBASE_REGNUM. | |
638 | (AMD64_NUM_REGS): Set to AMD64_GSBASE_REGNUM + 1. | |
639 | * features/Makefile (amd64-linux.dat, amd64-avx-linux.dat) | |
640 | (amd64-mpx-linux.dat, amd64-avx512-linux.dat, x32-linux.dat) | |
641 | (x32-avx-linux.dat, x32-avx512-linux.dat): Add | |
642 | i386/64bit-segments.xml in those rules. | |
643 | * features/i386/64bit-segments.xml: New file. | |
644 | * features/i386/amd64-avx-mpx-linux.xml: Add 64bit-segments.xml. | |
645 | * features/i386/amd64-avx-linux.xml: Add 64bit-segments.xml. | |
646 | * features/i386/amd64-avx512-linux.xml: Add 64bit-segments.xml. | |
647 | * features/i386/amd64-mpx-linux.xml: Add 64bit-segments.xml. | |
648 | * features/i386/x32-avx512-linux.xml: Add 64bit-segments.xml. | |
649 | * features/i386/x32-avx-linux.xml: Add 64bit-segments.xml. | |
650 | * features/i386/amd64-linux.xml: Add 64bit-segments.xml. | |
651 | * features/i386/amd64-avx-linux.c: Regenerated. | |
652 | * features/i386/amd64-avx-mpx-linux.c: Regenerated. | |
653 | * features/i386/amd64-avx-mpx.c: Regenerated. | |
654 | * features/i386/amd64-avx512-linux.c: Regenerated. | |
655 | * features/i386/amd64-linux.c: Regenerated. | |
656 | * features/i386/amd64-mpx-linux.c: Regenerated. | |
657 | * features/i386/i386-avx-mpx-linux.c: Regenerated. | |
658 | * features/i386/i386-avx-mpx.c: Regenerated. | |
659 | * features/i386/x32-avx-linux.c: Regenerated. | |
660 | * features/i386/x32-avx512-linux.c: Regenerated. | |
661 | * regformats/i386/amd64-avx-linux.dat: Regenerated. | |
662 | * regformats/i386/amd64-avx-mpx-linux.dat: Regenerated. | |
663 | * regformats/i386/amd64-avx512-linux.dat: Regenerated. | |
664 | * regformats/i386/amd64-linux.dat: Regenerated. | |
665 | * regformats/i386/amd64-mpx-linux.dat: Regenerated. | |
666 | * regformats/i386/x32-avx-linux.dat: Regenerated. | |
667 | * regformats/i386/x32-avx512-linux.dat: Regenerated. | |
668 | * regformats/i386/x32-linux.dat: Regenerated. | |
669 | ||
8884e97e WT |
670 | 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com> |
671 | ||
672 | * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): | |
673 | Set to AMD64_NUM_REGS. | |
674 | ||
7005d26a WT |
675 | 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com> |
676 | ||
677 | * amd64-nat.c (amd64_native_gregset_reg_offset): Simplify logic | |
678 | that checks validity of a register number. | |
679 | ||
4bd2e1b2 KC |
680 | 2017-01-27 Kees Cook <keescook@google.com> |
681 | ||
682 | * gdb/arm-linux-nat.c (arm_linux_fetch_inferior_registers): Call | |
683 | fetch_fpregs if target has fpa registers. | |
684 | (arm_linux_store_inferior_registers): Call store_fpregs if target | |
685 | has fpa registers. | |
686 | ||
7cf1de6c AA |
687 | 2017-01-26 Andreas Arnez <arnez@linux.vnet.ibm.com> |
688 | ||
689 | * cris-tdep.c (cris_gdbarch_init): Remove check for | |
690 | info.byte_order and force it to BFD_ENDIAN_LITTLE. | |
691 | ||
874a1c8c AT |
692 | 2017-01-26 Antoine Tremblay <antoine.tremblay@ericsson.com> |
693 | ||
694 | * corelow.c (get_core_register_section): Check for regset | |
695 | existence before checking for REGSET_VARIABLE_SIZE. | |
696 | ||
d8b49cf0 YQ |
697 | 2017-01-26 Yao Qi <yao.qi@linaro.org> |
698 | Pedro Alves <palves@redhat.com> | |
699 | ||
700 | PR gdb/20939 | |
701 | * disasm.c (gdb_disassembler::dis_asm_memory_error): Don't | |
702 | call memory_error, save memaddr instead. | |
703 | (gdb_disassembler::print_insn): If gdbarch_print_insn returns | |
704 | negative, cal memory_error. | |
705 | * disasm.h (gdb_disassembler) <m_err_memaddr>: New field. | |
706 | ||
658ca58c YQ |
707 | 2017-01-26 Yao Qi <yao.qi@linaro.org> |
708 | ||
709 | * disasm-selftests.c (memory_error_test): New function. | |
710 | (_initialize_disasm_selftests): Register memory_error_test. | |
711 | ||
79843d45 YQ |
712 | 2017-01-26 Yao Qi <yao.qi@linaro.org> |
713 | ||
714 | * Makefile.in (SFILES): Add disasm-selftests.c and | |
715 | selftest-arch.c. | |
716 | (COMMON_OBS): Add disasm-selftests.o and selftest-arch.o. | |
717 | * disasm-selftests.c: New file. | |
718 | * selftest-arch.c: New file. | |
719 | * selftest-arch.h: New file. | |
720 | ||
8cafda32 YQ |
721 | 2017-01-26 Yao Qi <yao.qi@linaro.org> |
722 | ||
723 | * mep-tdep.c (mep_gdb_print_insn): Set info->arch | |
724 | to bfd_arch_mep. Don't return 0 if section is not | |
725 | found. Call print_insn_mep. | |
726 | ||
e47ad6c0 YQ |
727 | 2017-01-26 Pedro Alves <palves@redhat.com> |
728 | Yao Qi <yao.qi@linaro.org> | |
729 | ||
730 | * arm-tdep.c: Include "disasm.h". | |
731 | (gdb_print_insn_arm): Update code to get gdbarch. | |
732 | * disasm.c (dis_asm_read_memory): Change it to | |
733 | gdb_disassembler::dis_asm_read_memory. | |
734 | (dis_asm_memory_error): Likewise. | |
735 | (dis_asm_print_address): Likewise. | |
736 | (gdb_pretty_print_insn): Change it to | |
737 | gdb_disassembler::pretty_print_insn. | |
738 | (dump_insns): Add one argument gdb_disassemlber. All | |
739 | callers updated. | |
740 | (do_mixed_source_and_assembly_deprecated): Likewise. | |
741 | (do_mixed_source_and_assembly): Likewise. | |
742 | (do_assembly_only): Likewise. | |
743 | (gdb_disassembler::gdb_disassembler): New. | |
744 | (gdb_disassembler::print_insn): New. | |
745 | * disasm.h (class gdb_disassembler): New. | |
746 | (gdb_pretty_print_insn): Remove declaration. | |
747 | (gdb_disassemble_info): Likewise. | |
748 | * guile/scm-disasm.c (class gdbscm_disassembler): New. | |
749 | (gdbscm_disasm_read_memory_worker): Update. | |
750 | (gdbscm_disasm_read_memory): Update. | |
751 | (gdbscm_disasm_memory_error): Remove. | |
752 | (gdbscm_disasm_print_address): Remove. | |
753 | (gdbscm_disassembler::gdbscm_disassembler): New. | |
754 | (gdbscm_print_insn_from_port): Update. | |
755 | * mips-tdep.c: Include disasm.h. | |
756 | (gdb_print_insn_mips): Update code to get gdbarch. | |
757 | * record-btrace.c (btrace_insn_history): Update. | |
758 | * spu-tdep.c: Include disasm.h. | |
759 | (struct spu_dis_asm_data): Remove. | |
760 | (struct spu_dis_asm_info): New. | |
761 | (spu_dis_asm_print_address): Use spu_dis_asm_info to get | |
762 | SPU id. | |
763 | (gdb_print_insn_spu): Cast disassemble_info to | |
764 | spu_dis_asm_info. | |
765 | ||
80d75874 YQ |
766 | 2017-01-26 Yao Qi <yao.qi@linaro.org> |
767 | ||
768 | * disasm.c (do_ui_file_delete): Delete. | |
769 | (gdb_insn_length): Move code creating stream to ... | |
770 | * utils.c (null_stream): ... here. New function. | |
771 | * utils.h (null_stream): Declare. | |
772 | ||
60685cd0 SM |
773 | 2017-01-23 Simon Marchi <simon.marchi@polymtl.ca> |
774 | ||
775 | * python/py-inferior.c (find_thread_object): Return directly | |
776 | from the loop. Remove "found" variable. | |
777 | ||
eb1cdb62 JB |
778 | 2017-01-21 Joel Brobecker <brobecker@adacore.com> |
779 | ||
780 | GDB 7.12.1 released. | |
781 | ||
b1ce6568 SM |
782 | 2017-01-20 Simon Marchi <simon.marchi@ericsson.com> |
783 | ||
784 | * python/py-function.c (fnpy_call): Reorder declarations to have | |
785 | the gdbpy_enter object declared first. | |
786 | * python/py-xmethods.c (gdbpy_get_xmethod_arg_types): Likewise. | |
787 | ||
6f8b0407 SM |
788 | 2017-01-20 Simon Marchi <simon.marchi@ericsson.com> |
789 | ||
fec93fb1 | 790 | PR python/21068 |
6f8b0407 SM |
791 | * python/python-internal.h (PyMem_RawMalloc): Define for |
792 | Python < 3.4. | |
793 | * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use | |
794 | PyMem_RawMalloc instead of PyMem_Malloc. | |
795 | ||
78cbbba8 LM |
796 | 2017-01-20 Mike Wrighton <mike_wrighton@codesourcery.com> |
797 | Luis Machado <lgustavo@codesourcery.com> | |
798 | ||
799 | * NEWS (New commands): Mention flash-erase. | |
800 | (New MI commands): Mention target-flash-erase. | |
801 | * mi/mi-cmds.c (mi_cmd_target_flash_erase): Add target-flash-erase MI | |
802 | command. | |
803 | * mi/mi-cmds.h (mi_cmd_target_flash_erase): New declaration. | |
804 | * mi/mi-main.c (mi_cmd_target_flash_erase): New function. | |
805 | * target.c (flash_erase_command): New function. | |
806 | (initialize_targets): Add new flash-erase command. | |
807 | * target.h (flash_erase_command): New declaration. | |
808 | ||
2132fe85 JB |
809 | 2017-01-20 Joel Brobecker <brobecker@adacore.com> |
810 | ||
811 | * nat/linux-ptrace.c: Only include <sys/procfs.h> if | |
812 | HAVE_SYS_PROCFS_H is defined. | |
813 | ||
d1dff226 AH |
814 | 2017-01-18 Alan Hayward <alan.hayward@arm.com> |
815 | ||
816 | * remote.c (struct cached_reg): Change data into a pointer. | |
817 | * (stop_reply_dtr): Free data pointers before deleting vector. | |
818 | (process_stop_reply): Likewise. | |
819 | (remote_parse_stop_reply): Allocate space for data | |
820 | ||
9890e433 AH |
821 | 2017-01-18 Alan Hayward <alan.hayward@arm.com> |
822 | ||
823 | * amd64-tdep.c (amd64_pseudo_register_read_value): remove | |
824 | MAX_REGISTER_SIZE. | |
825 | (amd64_pseudo_register_read_value): Likewise. | |
826 | * remote.c (fetch_register_using_p): Remove MAX_REGISTER_SIZE. | |
827 | (store_register_using_P): Likewise. | |
828 | * regcache.c (regcache_xfer_part): Likewise. | |
829 | ||
7a36499a IR |
830 | 2017-01-16 Ivo Raisr <ivo.raisr@oracle.com> |
831 | ||
832 | Split real and pseudo registers. | |
833 | * sparc-tdep.h (SPARC_CORE_REGISTERS): New macro. | |
834 | (sparc32_pseudo_regnum): New enum. | |
835 | * sparc64-tdep.h (sparc64_pseudo_regnum): New enum. | |
836 | * sparc-tdep.c (SPARC32_FPU_REGISTERS): New macro. | |
837 | (SPARC32_CP0_REGISTERS): New macro. | |
838 | (sparc32_pseudo_register_name): New function. | |
839 | (sparc32_register_name): Use sparc32_pseudo_register_name. | |
840 | (sparc32_pseudo_register_type): New function. | |
841 | (sparc32_register_type): Use sparc32_pseudo_register_type. | |
842 | (sparc32_pseudo_register_read, sparc32_pseudo_register_write): Handle | |
843 | pseudo register numbers. | |
844 | * sparc64-tdep.c SPARC64_FPU_REGISTERS): New macro. | |
845 | (SPARC64_CP0_REGISTERS): New macro. | |
846 | (sparc64_pseudo_register_name): New function. | |
847 | (sparc64_register_name): Use sparc64_pseudo_register_name. | |
848 | (sparc64_pseudo_register_type): New function. | |
849 | (sparc64_register_type): Use sparc64_pseudo_register_type. | |
850 | (sparc64_pseudo_register_read, sparc64_pseudo_register_write): Handle | |
851 | pseudo register numbers. | |
852 | (sparc64_store_floating_fields, sparc64_extract_floating_fields, | |
853 | sparc64_store_arguments): Handle pseudo register numbers. | |
854 | ||
6f8976bf YQ |
855 | 2017-01-13 Yao Qi <yao.qi@linaro.org> |
856 | ||
857 | * remote.c (REMOTE_DEBUG_MAX_CHAR): New macro. | |
858 | (putpkt_binary): Print only REMOTE_DEBUG_MAX_CHAR chars in debug | |
859 | output. | |
860 | (getpkt_or_notif_sane_1): Likewise. | |
861 | ||
e4241ace YQ |
862 | 2017-01-13 Yao Qi <yao.qi@linaro.org> |
863 | ||
864 | * Makefile.in (checker-headers): Use CXX and CXX_DIALET instead | |
865 | of CC. Pass "-x c++-header" instead of "-x c". | |
866 | ||
3015c064 SM |
867 | 2017-01-12 Simon Marchi <simon.marchi@ericsson.com> |
868 | ||
869 | * remote.c (remote_can_async_p): Update comment. | |
870 | ||
fde1b17d SM |
871 | 2017-01-12 Simon Marchi <simon.marchi@ericsson.com> |
872 | ||
873 | * linux-nat.c (linux_nat_can_async_p): Update comment. | |
874 | ||
ca1ca08b SM |
875 | 2017-01-12 Simon Marchi <simon.marchi@ericsson.com> |
876 | ||
877 | * serial.c (serial_open): Forget about "pc" and "lpt" serial interface. | |
878 | ||
4ad2da73 SM |
879 | 2017-01-11 Simon Marchi <simon.marchi@ericsson.com> |
880 | ||
881 | * cli/cli-decode.c (lookup_cmd_1): Fix typo in comment. | |
882 | ||
c8b23b3f TT |
883 | 2017-01-10 Tom Tromey <tom@tromey.com> |
884 | ||
885 | * python/py-type.c (typy_legacy_template_argument): Update. | |
886 | * cp-support.h (struct demangle_parse_info) (demangle_parse_info, | |
887 | ~demangle_parse_info): Declare new members. | |
888 | (cp_demangled_name_to_comp): Return unique_ptr. | |
889 | (cp_demangled_name_parse_free) | |
890 | (make_cleanup_cp_demangled_name_parse_free) | |
891 | (cp_new_demangle_parse_info): Remove. | |
892 | * cp-support.c (do_demangled_name_parse_free_cleanup) | |
893 | (make_cleanup_cp_demangled_name_parse_free): Remove. | |
894 | (inspect_type, cp_canonicalize_string_full) | |
895 | (cp_canonicalize_string): Update. | |
896 | (mangled_name_to_comp): Change return type. | |
897 | (cp_class_name_from_physname, method_name_from_physname) | |
898 | (cp_func_name, cp_remove_params): Update. | |
899 | * cp-name-parser.y (demangle_parse_info): New constructor, from | |
900 | cp_new_demangle_parse_info. | |
901 | (~demangle_parse_info): New destructor, from | |
902 | cp_demangled_name_parse_free. | |
903 | (cp_merge_demangle_parse_infos): Update. | |
904 | (cp_demangled_name_to_comp): Change return type. | |
905 | ||
1ac32117 TT |
906 | 2017-01-10 Tom Tromey <tom@tromey.com> |
907 | ||
908 | * top.c (prevent_dont_repeat): Change return type. | |
909 | * python/python.c (execute_gdb_command): Use std::string. | |
910 | Update. | |
911 | * guile/guile.c (gdbscm_execute_gdb_command): Update. | |
912 | * command.h (prevent_dont_repeat): Change return type. | |
913 | * breakpoint.c (bpstat_do_actions_1): Update. | |
914 | ||
0cf08227 TT |
915 | 2017-01-10 Tom Tromey <tom@tromey.com> |
916 | ||
917 | * value.h (scoped_value_mark::~scoped_value_mark): Call | |
918 | free_to_mark. | |
919 | (scoped_value_mark::free_to_mark): New method. | |
920 | * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use | |
921 | scoped_value_mark. | |
922 | ||
eb115069 TT |
923 | 2017-01-10 Tom Tromey <tom@tromey.com> |
924 | ||
925 | * python/py-value.c (valpy_dereference, valpy_referenced_value) | |
926 | (valpy_reference_value, valpy_const_value, valpy_get_address) | |
927 | (valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast) | |
928 | (valpy_getitem, valpy_call, valpy_binop_throw, valpy_negative) | |
929 | (valpy_absolute, valpy_richcompare_throw): Use scoped_value_mark. | |
930 | * dwarf2loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use | |
931 | scoped_value_mark. | |
932 | * dwarf2-frame.c (execute_stack_op): Use scoped_value_mark. | |
933 | * value.h (scoped_value_mark): New class. | |
934 | ||
906768f9 TT |
935 | 2017-01-10 Tom Tromey <tom@tromey.com> |
936 | ||
937 | * dwarf2read.c (dwarf2_build_psymtabs): Use psymtab_discarder. | |
938 | * psympriv.h (make_cleanup_discard_psymtabs): Don't declare. | |
939 | * psymtab.c (discard_psymtabs_upto): Remove. | |
940 | (make_cleanup_discard_psymtabs): Remove. | |
941 | (struct psymtab_state): Remove. | |
942 | ||
bef155c3 TT |
943 | 2017-01-10 Tom Tromey <tom@tromey.com> |
944 | ||
945 | * record-full.c (record_full_save_cleanups): Remove. | |
946 | (record_full_save): Use gdb::unlinker. | |
947 | * gcore.c (do_bfd_delete_cleanup): Remove. | |
948 | (gcore_command): Use gdb::unlinker, unique_xmalloc_ptr. Remove | |
949 | cleanups. | |
950 | * dwarf2read.c (unlink_if_set): Remove. | |
951 | (write_psymtabs_to_index): Use gdb::unlinker. | |
952 | * common/gdb_unlinker.h: New file. | |
953 | ||
192b62ce TT |
954 | 2017-01-10 Tom Tromey <tom@tromey.com> |
955 | ||
956 | * windows-tdep.c (windows_xfer_shared_library): Update. | |
957 | * windows-nat.c (windows_make_so): Update. | |
958 | * utils.h (make_cleanup_bfd_unref): Remove. | |
959 | * utils.c (do_bfd_close_cleanup, make_cleanup_bfd_unref): Remove. | |
960 | * symfile.h (symfile_bfd_open) | |
961 | (find_separate_debug_file_in_section): Return gdb_bfd_ref_ptr. | |
962 | * symfile.c (read_symbols, symbol_file_add) | |
963 | (separate_debug_file_exists): Update. | |
964 | (symfile_bfd_open): Return gdb_bfd_ref_ptr. | |
965 | (generic_load, reread_symbols): Update. | |
966 | * symfile-mem.c (symbol_file_add_from_memory): Update. | |
967 | * spu-linux-nat.c (spu_bfd_open): Return gdb_bfd_ref_ptr. | |
968 | (spu_symbol_file_add_from_memory): Update. | |
969 | * solist.h (struct target_so_ops) <bfd_open>: Return | |
970 | gdb_bfd_ref_ptr. | |
971 | (solib_bfd_fopen, solib_bfd_open): Return gdb_bfd_ref_ptr. | |
972 | * solib.c (solib_bfd_fopen, solib_bfd_open): Return | |
973 | gdb_bfd_ref_ptr. | |
974 | (solib_map_sections, reload_shared_libraries_1): Update. | |
975 | * solib-svr4.c (enable_break): Update. | |
976 | * solib-spu.c (spu_bfd_fopen): Return gdb_bfd_ref_ptr. | |
977 | * solib-frv.c (enable_break2): Update. | |
978 | * solib-dsbt.c (enable_break): Update. | |
979 | * solib-darwin.c (gdb_bfd_mach_o_fat_extract): Return | |
980 | gdb_bfd_ref_ptr. | |
981 | (darwin_solib_get_all_image_info_addr_at_init): Update. | |
982 | (darwin_bfd_open): Return gdb_bfd_ref_ptr. | |
983 | * solib-aix.c (solib_aix_bfd_open): Return gdb_bfd_ref_ptr. | |
984 | * record-full.c (record_full_save): Update. | |
985 | * python/py-objfile.c (objfpy_add_separate_debug_file): Update. | |
986 | * procfs.c (insert_dbx_link_bpt_in_file): Update. | |
987 | * minidebug.c (find_separate_debug_file_in_section): Return | |
988 | gdb_bfd_ref_ptr. | |
989 | * machoread.c (macho_add_oso_symfile): Change abfd to | |
990 | gdb_bfd_ref_ptr. | |
991 | (macho_symfile_read_all_oso): Update. | |
992 | (macho_check_dsym): Return gdb_bfd_ref_ptr. | |
993 | (macho_symfile_read): Update. | |
994 | * jit.c (bfd_open_from_target_memory): Return gdb_bfd_ref_ptr. | |
995 | (jit_bfd_try_read_symtab): Update. | |
996 | * gdb_bfd.h (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr) | |
997 | (gdb_bfd_openw, gdb_bfd_openr_iovec) | |
998 | (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return | |
999 | gdb_bfd_ref_ptr. | |
1000 | (gdb_bfd_ref_policy): New struct. | |
1001 | (gdb_bfd_ref_ptr): New typedef. | |
1002 | * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr) | |
1003 | (gdb_bfd_openw, gdb_bfd_openr_iovec) | |
1004 | (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return | |
1005 | gdb_bfd_ref_ptr. | |
1006 | * gcore.h (create_gcore_bfd): Return gdb_bfd_ref_ptr. | |
1007 | * gcore.c (create_gcore_bfd): Return gdb_bfd_ref_ptr. | |
1008 | (gcore_command): Update. | |
1009 | * exec.c (exec_file_attach): Update. | |
1010 | * elfread.c (elf_symfile_read): Update. | |
1011 | * dwarf2read.c (dwarf2_get_dwz_file): Update. | |
1012 | (try_open_dwop_file, open_dwo_file): Return gdb_bfd_ref_ptr. | |
1013 | (open_and_init_dwo_file): Update. | |
1014 | (open_dwp_file): Return gdb_bfd_ref_ptr. | |
1015 | (open_and_init_dwp_file): Update. | |
1016 | * corelow.c (core_open): Update. | |
1017 | * compile/compile-object-load.c (compile_object_load): Update. | |
1018 | * common/gdb_ref_ptr.h (ref_ptr::operator->): New operator. | |
1019 | * coffread.c (coff_symfile_read): Update. | |
1020 | * cli/cli-dump.c (bfd_openr_or_error, bfd_openw_or_error): Return | |
1021 | gdb_bfd_ref_ptr. Rename. | |
1022 | (dump_bfd_file, restore_command): Update. | |
1023 | * build-id.h (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr. | |
1024 | * build-id.c (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr. | |
1025 | (find_separate_debug_file_by_buildid): Update. | |
1026 | ||
50315b21 TT |
1027 | 2017-01-10 Tom Tromey <tom@tromey.com> |
1028 | ||
1029 | * common/gdb_ref_ptr.h: New file. | |
1030 | * python/py-ref.h (struct gdbpy_ref_policy): New. | |
1031 | (gdbpy_ref): Now a typedef. | |
1032 | ||
fc4007c9 TT |
1033 | 2017-01-10 Tom Tromey <tom@tromey.com> |
1034 | ||
1035 | * utils.h (make_cleanup_htab_delete): Don't declare. | |
1036 | * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete): | |
1037 | Remove. | |
1038 | * linespec.c (decode_compound_collector): Add constructor, | |
1039 | destructor. | |
1040 | (lookup_prefix_sym): Remove cleanup. | |
1041 | (symtab_collector): Add constructor, destructor. | |
1042 | (collect_symtabs_from_filename): Remove cleanup. | |
1043 | * disasm.c (do_mixed_source_and_assembly): Use htab_up. | |
1044 | * compile/compile-c-symbols.c (generate_c_for_variable_locations): | |
1045 | Use htab_up. | |
1046 | * gnu-v3-abi.c (gnuv3_print_vtable): Use htab_up. | |
1047 | * dwarf2read.c (dw2_expand_symtabs_matching) | |
1048 | (dw2_map_symbol_filenames, dwarf_decode_macros) | |
1049 | (write_psymtabs_to_index): Use htab_up. | |
1050 | * dwarf2loc.c (func_verify_no_selftailcall) | |
1051 | (call_site_find_chain_1, func_verify_no_selftailcall) | |
1052 | (chain_candidate, call_site_find_chain_1): Use std::unordered_set, | |
1053 | std::vector, gdb::unique_xmalloc_ptr. | |
1054 | (call_sitep): Remove typedef. | |
1055 | (dwarf2_locexpr_baton_eval): Remove unused variable. | |
1056 | ||
8dbcee67 TT |
1057 | 2017-01-10 Tom Tromey <tom@tromey.com> |
1058 | ||
1059 | * python/python-internal.h (make_cleanup_py_decref) | |
1060 | (make_cleanup_py_xdecref): Don't declare. | |
1061 | * python/py-utils.c (py_decref, make_cleanup_py_decref) | |
1062 | (py_xdecref, make_cleanup_py_xdecref): Remove. | |
1063 | ||
13df46cc TT |
1064 | 2017-01-10 Tom Tromey <tom@tromey.com> |
1065 | ||
1066 | * python/py-framefilter.c (py_mi_print_variables): Use gdbpy_ref. | |
1067 | (py_print_locals, enumerate_locals, py_print_args): Use gdbpy_ref. | |
1068 | ||
06fc9bf7 TT |
1069 | 2017-01-10 Tom Tromey <tom@tromey.com> |
1070 | ||
1071 | * python/py-framefilter.c (enumerate_args): Use gdbpy_ref. | |
1072 | ||
830a4934 TT |
1073 | 2017-01-10 Tom Tromey <tom@tromey.com> |
1074 | ||
1075 | * python/py-utils.c (unicode_to_encoded_string) | |
1076 | (python_string_to_target_string) | |
1077 | (python_string_to_target_python_string) | |
1078 | (python_string_to_host_string, gdbpy_obj_to_string) | |
1079 | (get_addr_from_python): Use gdbpy_ref. | |
1080 | ||
4586d543 TT |
1081 | 2017-01-10 Tom Tromey <tom@tromey.com> |
1082 | ||
1083 | * python/py-unwind.c (pyuw_object_attribute_to_pointer): Use | |
1084 | gdbpy_ref. | |
1085 | ||
59876f8f TT |
1086 | 2017-01-10 Tom Tromey <tom@tromey.com> |
1087 | ||
1088 | * python/python.c (eval_python_command, gdbpy_decode_line) | |
1089 | (gdbpy_run_events, gdbpy_start_type_printers) | |
1090 | (gdbpy_apply_type_printers): Use gdbpy_ref. | |
1091 | ||
97d83487 TT |
1092 | 2017-01-10 Tom Tromey <tom@tromey.com> |
1093 | ||
1094 | * python/py-param.c (get_doc_string, compute_enum_values): Use | |
1095 | gdbpy_ref. | |
1096 | ||
9205649a TT |
1097 | 2017-01-10 Tom Tromey <tom@tromey.com> |
1098 | ||
1099 | * python/py-inferior.c (find_thread_object, build_inferior_list): | |
1100 | Use gdbpy_ref. | |
1101 | ||
74c49d45 TT |
1102 | 2017-01-10 Tom Tromey <tom@tromey.com> |
1103 | ||
1104 | * python/py-framefilter.c (py_print_frame): Use gdbpy_ref. | |
1105 | ||
16361ffb TT |
1106 | 2017-01-10 Tom Tromey <tom@tromey.com> |
1107 | ||
1108 | * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope): Use | |
1109 | gdbpy_ref. | |
1110 | ||
905f2cca TT |
1111 | 2017-01-10 Tom Tromey <tom@tromey.com> |
1112 | ||
1113 | * python/py-cmd.c (cmdpy_completer_helper): Use gdbpy_ref. Remove | |
1114 | extra incref. | |
1115 | (cmdpy_completer_handle_brkchars, cmdpy_completer, cmdpy_init): | |
1116 | Use gdbpy_ref. | |
1117 | ||
64081434 TT |
1118 | 2017-01-10 Tom Tromey <tom@tromey.com> |
1119 | ||
1120 | * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use | |
1121 | gdbpy_ref. | |
1122 | ||
59e9e831 TT |
1123 | 2017-01-10 Tom Tromey <tom@tromey.com> |
1124 | ||
1125 | * python/py-arch.c (archpy_disassemble): Use gdbpy_ref. Don't | |
1126 | decref results of PyArg_ParseTupleAndKeywords. | |
1127 | ||
9de10f6d TT |
1128 | 2017-01-10 Tom Tromey <tom@tromey.com> |
1129 | ||
1130 | * python/python.c (python_run_simple_file): Use | |
1131 | unique_xmalloc_ptr, gdbpy_ref. | |
1132 | ||
2bd5759d TT |
1133 | 2017-01-10 Tom Tromey <tom@tromey.com> |
1134 | ||
1135 | * python/py-prettyprint.c (print_stack_unless_memory_error) | |
1136 | (print_string_repr, print_children): Use gdbpy_ref. | |
1137 | (dummy_python_frame): New class. | |
1138 | (dummy_python_frame::dummy_python_frame): Rename from | |
1139 | push_dummy_python_frame. | |
1140 | (py_restore_tstate): Remove. | |
1141 | ||
3b4e0e01 TT |
1142 | 2017-01-10 Tom Tromey <tom@tromey.com> |
1143 | ||
1144 | * python/py-framefilter.c (py_print_frame): Use gdbpy_ref. | |
1145 | ||
17a22718 TT |
1146 | 2017-01-10 Tom Tromey <tom@tromey.com> |
1147 | ||
1148 | * python/python.c (ensure_python_env, restore_python_env): | |
1149 | Remove. | |
1150 | * python/python-internal.h (ensure_python_env): Don't declare. | |
1151 | * varobj.h (varobj_ensure_python_env): Don't declare. | |
1152 | * varobj.c (varobj_ensure_python_env): Remove. | |
1153 | ||
68cdc557 TT |
1154 | 2017-01-10 Tom Tromey <tom@tromey.com> |
1155 | ||
1156 | * varobj.c (varobj_value_get_print_value): Use | |
1157 | gdbpy_enter_varobj. | |
1158 | ||
1eba6383 TT |
1159 | 2017-01-10 Tom Tromey <tom@tromey.com> |
1160 | ||
1161 | * python/py-prettyprint.c (print_string_repr, print_children): | |
1162 | Update. | |
1163 | * python/py-lazy-string.c (gdbpy_extract_lazy_string): Change type | |
1164 | of "encoding". | |
1165 | * varobj.c (varobj_value_get_print_value): Update. | |
1166 | * python/python-internal.h (gdbpy_extract_lazy_string): Update. | |
1167 | ||
bde7b3e3 TT |
1168 | 2017-01-10 Tom Tromey <tom@tromey.com> |
1169 | ||
1170 | * varobj.c (varobj_get_display_hint) | |
1171 | (dynamic_varobj_has_child_method, install_new_value_visualizer) | |
1172 | (varobj_set_visualizer, free_variable): Use | |
1173 | gdbpy_enter_varobj. | |
1174 | ||
a7785f8c TT |
1175 | 2017-01-10 Tom Tromey <tom@tromey.com> |
1176 | ||
1177 | * python/python.c (python_command): Use gdbpy_enter, gdbpy_ref. | |
1178 | (do_finish_initialization): New function. Use gdbpy_ref. | |
1179 | (gdbpy_finish_initialization): Use gdbpy_enter. Call | |
1180 | do_finish_initialization. | |
1181 | ||
2865bfce TT |
1182 | 2017-01-10 Tom Tromey <tom@tromey.com> |
1183 | ||
1184 | * python/py-param.c (get_set_value, get_show_value): Use | |
1185 | gdbpy_enter, gdbpy_ref. | |
1186 | ||
0e9dcc75 TT |
1187 | 2017-01-10 Tom Tromey <tom@tromey.com> |
1188 | ||
1189 | * python/py-function.c (fnpy_call): Use gdbpy_enter, gdbpy_ref. | |
1190 | ||
12a5cedd TT |
1191 | 2017-01-10 Tom Tromey <tom@tromey.com> |
1192 | ||
1193 | * python/py-cmd.c (cmdpy_function): Use gdbpy_enter, gdbpy_ref. | |
1194 | ||
788f2586 TT |
1195 | 2017-01-10 Tom Tromey <tom@tromey.com> |
1196 | ||
1197 | * python/py-varobj.c (py_varobj_iter_dtor, py_varobj_iter_next): | |
1198 | Use gdbpy_enter_varobj. | |
1199 | ||
6cd67bea TT |
1200 | 2017-01-10 Tom Tromey <tom@tromey.com> |
1201 | ||
1202 | * varobj.c (gdbpy_enter_varobj): New constructor. | |
1203 | * python/python-internal.h (gdbpy_enter_varobj): New class. | |
1204 | * python/py-varobj.c (py_varobj_get_iterator): Use | |
1205 | gdbpy_enter_varobj. | |
1206 | ||
14b122bf TT |
1207 | 2017-01-10 Tom Tromey <tom@tromey.com> |
1208 | ||
1209 | * python/py-xmethods.c (gdbpy_get_xmethod_result_type): Use | |
1210 | gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr. | |
1211 | (gdbpy_invoke_xmethod): Use gdbpy_ref, gdbpy_enter. | |
1212 | (gdbpy_get_xmethod_arg_types): Use gdbpy_ref, | |
1213 | unique_xmalloc_ptr. | |
1214 | (gdbpy_get_xmethod_arg_types): Use gdbpy_ref, gdbpy_enter. | |
1215 | ||
bf1ca3b9 TT |
1216 | 2017-01-10 Tom Tromey <tom@tromey.com> |
1217 | ||
1218 | * python/py-xmethods.c (invoke_match_method): Use | |
1219 | gdbpy_ref. | |
1220 | ||
572a5524 TT |
1221 | 2017-01-10 Tom Tromey <tom@tromey.com> |
1222 | ||
1223 | * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): use | |
1224 | gdbpy_enter, gdbpy_ref. | |
1225 | ||
396a78b6 TT |
1226 | 2017-01-10 Tom Tromey <tom@tromey.com> |
1227 | ||
1228 | * python/python.c (python_interactive_command): Use gdbpy_enter. | |
1229 | ||
a88b13c7 TT |
1230 | 2017-01-10 Tom Tromey <tom@tromey.com> |
1231 | ||
1232 | * python/python.c (gdbpy_before_prompt_hook): Use gdbpy_enter, | |
1233 | gdbpy_ref. | |
1234 | ||
e9f0c363 TT |
1235 | 2017-01-10 Tom Tromey <tom@tromey.com> |
1236 | ||
1237 | * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Use | |
1238 | gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr. | |
1239 | ||
6349f452 TT |
1240 | 2017-01-10 Tom Tromey <tom@tromey.com> |
1241 | ||
1242 | * utils.h (htab_deleter): New struct. | |
1243 | (htab_up): New typedef. | |
1244 | * python/py-framefilter.c (gdbpy_apply_frame_filter): Use | |
1245 | gdbpy_enter, gdbpy_ref, htab_up. | |
1246 | ||
c0171de6 TT |
1247 | 2017-01-10 Tom Tromey <tom@tromey.com> |
1248 | ||
1249 | * python/py-unwind.c (pending_frame_invalidate): Remove. | |
1250 | (pyuw_sniffer): Use gdbpy_enter and gdbpy_ref. | |
1251 | ||
f18e226f TT |
1252 | 2017-01-10 Tom Tromey <tom@tromey.com> |
1253 | ||
1254 | * python/py-xmethods.c (gdbpy_free_xmethod_worker_data) | |
1255 | (gdbpy_clone_xmethod_worker_data): Use gdbpy_enter. | |
1256 | ||
c57af3f1 TT |
1257 | 2017-01-10 Tom Tromey <tom@tromey.com> |
1258 | ||
1259 | * python/py-type.c (save_objfile_types): Use gdbpy_enter. | |
1260 | ||
60e600ec TT |
1261 | 2017-01-10 Tom Tromey <tom@tromey.com> |
1262 | ||
1263 | * python/python.c (gdbpy_eval_from_control_command) | |
1264 | (gdbpy_source_script, gdbpy_run_events) | |
1265 | (gdbpy_source_objfile_script, gdbpy_execute_objfile_script) | |
1266 | (gdbpy_free_type_printers, gdbpy_finish_initialization): Use | |
1267 | gdbpy_enter. | |
1268 | ||
bf7da5b0 TT |
1269 | 2017-01-10 Tom Tromey <tom@tromey.com> |
1270 | ||
1271 | * python/py-progspace.c (py_free_pspace): Use gdbpy_enter. | |
1272 | ||
2d38bced TT |
1273 | 2017-01-10 Tom Tromey <tom@tromey.com> |
1274 | ||
1275 | * python/py-objfile.c (py_free_objfile): Use gdbpy_enter. | |
1276 | ||
07bc7329 TT |
1277 | 2017-01-10 Tom Tromey <tom@tromey.com> |
1278 | ||
1279 | * python/py-inferior.c (python_on_normal_stop, python_on_resume) | |
1280 | (python_on_inferior_call_pre, python_on_inferior_call_post) | |
1281 | (python_on_memory_change, python_on_register_change) | |
1282 | (python_inferior_exit, python_new_objfile, add_thread_object) | |
1283 | (delete_thread_object, py_free_inferior): Use gdbpy_enter. | |
1284 | ||
6e7c365e TT |
1285 | 2017-01-10 Tom Tromey <tom@tromey.com> |
1286 | ||
1287 | * python/py-finishbreakpoint.c (bpfinishpy_handle_stop) | |
1288 | (bpfinishpy_handle_exit): Use gdbpy_enter. | |
1289 | ||
6ba0cd40 TT |
1290 | 2017-01-10 Tom Tromey <tom@tromey.com> |
1291 | ||
1292 | * python/py-cmd.c (cmdpy_destroyer) | |
1293 | (cmdpy_completer_handle_brkchars, cmdpy_completer): Use | |
1294 | gdbpy_enter. | |
1295 | ||
de2dc875 TT |
1296 | 2017-01-10 Tom Tromey <tom@tromey.com> |
1297 | ||
1298 | * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use | |
1299 | gdbpy_enter. | |
1300 | (gdbpy_breakpoint_has_cond): Likewise. | |
1301 | ||
4ecee2c4 TT |
1302 | 2017-01-10 Tom Tromey <tom@tromey.com> |
1303 | ||
1304 | * python/python.c (gdbpy_enter): New constructor. | |
1305 | (~gdbpy_enter): New destructor. | |
1306 | (restore_python_env, ensure_python_env): Rewrite. | |
1307 | * python/python-internal.h (gdbpy_enter): New class. | |
1308 | ||
37fce74f TT |
1309 | 2017-01-10 Tom Tromey <tom@tromey.com> |
1310 | ||
1311 | * python/py-symbol.c (gdbpy_lookup_symbol): Use gdbpy_ref. | |
1312 | ||
53a0cca3 TT |
1313 | 2017-01-10 Tom Tromey <tom@tromey.com> |
1314 | ||
1315 | * python/py-value.c (value_has_field, get_field_flag) | |
1316 | (get_field_type, valpy_getitem, convert_value_from_python): Use | |
1317 | gdbpy_ref. | |
1318 | ||
ff3724f5 TT |
1319 | 2017-01-10 Tom Tromey <tom@tromey.com> |
1320 | ||
1321 | * python/python.c (gdbpy_progspaces, gdbpy_objfiles): Use | |
1322 | gdbpy_ref. | |
1323 | ||
0700aea5 TT |
1324 | 2017-01-10 Tom Tromey <tom@tromey.com> |
1325 | ||
1326 | * python/py-prettyprint.c (search_pp_list) | |
1327 | (find_pretty_printer_from_objfiles) | |
1328 | (find_pretty_printer_from_progspace) | |
1329 | (find_pretty_printer_from_gdb, find_pretty_printer) | |
1330 | (gdbpy_get_display_hint, gdbpy_get_varobj_pretty_printer): Use | |
1331 | gdbpy_ref. | |
1332 | ||
1bb44c9f TT |
1333 | 2017-01-10 Tom Tromey <tom@tromey.com> |
1334 | ||
1335 | * python/py-param.c (call_doc_function): Use gdbpy_ref. | |
1336 | ||
87ce03fd TT |
1337 | 2017-01-10 Tom Tromey <tom@tromey.com> |
1338 | ||
1339 | * python/py-linetable.c (build_line_table_tuple_from_pcs) | |
1340 | (ltpy_get_all_source_lines): Use gdbpy_ref. | |
1341 | ||
ee0a3fb8 TT |
1342 | 2017-01-10 Tom Tromey <tom@tromey.com> |
1343 | ||
1344 | * python/py-framefilter.c (extract_sym, extract_value) | |
1345 | (get_py_iter_from_func, bootstrap_python_frame_filters): Use | |
1346 | gdbpy_ref. | |
1347 | ||
bf2a52fa TT |
1348 | 2017-01-10 Tom Tromey <tom@tromey.com> |
1349 | ||
1350 | * python/py-breakpoint.c (gdbpy_breakpoints): Use gdbpy_ref. | |
1351 | ||
f59fe7f8 TT |
1352 | 2017-01-10 Tom Tromey <tom@tromey.com> |
1353 | ||
1354 | * python/py-inferior.c (gdbpy_inferiors): Use gdbpy_ref. | |
1355 | ||
80bd970a TT |
1356 | 2017-01-10 Tom Tromey <tom@tromey.com> |
1357 | ||
1358 | * python/py-function.c (convert_values_to_python, fnpy_init): Use | |
1359 | gdbpy_ref. | |
1360 | ||
d1b3de2e TT |
1361 | 2017-01-10 Tom Tromey <tom@tromey.com> |
1362 | ||
1363 | * python/py-cmd.c (gdbpy_string_to_argv): Use gdbpy_ref. | |
1364 | ||
3bb43384 TT |
1365 | 2017-01-10 Tom Tromey <tom@tromey.com> |
1366 | ||
1367 | * python/py-type.c (convert_field, make_fielditem, typy_fields) | |
1368 | (typy_range): Use gdbpy_ref. | |
1369 | ||
abf5651e TT |
1370 | 2017-01-10 Tom Tromey <tom@tromey.com> |
1371 | ||
1372 | * python/py-threadevent.c (create_thread_event_object): Use | |
1373 | gdbpy_ref. | |
1374 | * python/py-stopevent.c (create_stop_event_object): Simplify. | |
1375 | (emit_stop_event): Use gdbpy_ref. | |
1376 | * python/py-signalevent.c (create_signal_event_object): Use | |
1377 | gdbpy_ref. | |
1378 | * python/py-newobjfileevent.c (create_new_objfile_event_object) | |
1379 | (emit_new_objfile_event, create_clear_objfiles_event_object) | |
1380 | (emit_clear_objfiles_event): Use gdbpy_ref. | |
1381 | * python/py-infevents.c (create_inferior_call_event_object) | |
1382 | (create_register_changed_event_object) | |
1383 | (create_memory_changed_event_object, emit_inferior_call_event) | |
1384 | (emit_memory_changed_event, emit_register_changed_event): Use | |
1385 | gdbpy_ref. | |
1386 | * python/py-exitedevent.c (create_exited_event_object) | |
1387 | (emit_exited_event): Use gdbpy_ref. | |
1388 | * python/py-event.h (evpy_emit_event): Remove | |
1389 | CPYCHECKER_STEALS_REFERENCE_TO_ARG annotation. | |
1390 | * python/py-event.c (evpy_emit_event): Use gdbpy_ref. | |
1391 | * python/py-continueevent.c (emit_continue_event): Use | |
1392 | gdbpy_ref. | |
1393 | * python/py-breakpoint.c (gdbpy_breakpoint_created) | |
1394 | (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use | |
1395 | gdbpy_ref. | |
1396 | * python/py-bpevent.c (create_breakpoint_event_object): Use | |
1397 | gdbpy_ref. | |
1398 | ||
a68ff33e TT |
1399 | 2017-01-10 Tom Tromey <tom@tromey.com> |
1400 | ||
1401 | * python/py-ref.h: New file. | |
1402 | ||
7becfd03 SM |
1403 | 2017-01-10 Simon Marchi <simon.marchi@ericsson.com> |
1404 | ||
1405 | * cli-out.c (cli_ui_out::do_redirect): Change return type to | |
1406 | void. | |
1407 | * cli-out.h (cli_ui_out::do_redirect): Likewise. | |
1408 | * mi/mi-out.c (mi_ui_out::do_redirect): Likewise. | |
1409 | * mi/mi-out.h (mi_ui_out::do_redirect): Likewise. | |
1410 | * ui-out.c (ui_out::redirect): Likewise. | |
1411 | * ui-out.h (ui_out::redirect, ui_out::do_redirect): Likewise. | |
1412 | * cli/cli-logging.c (set_logging_redirect): Update call site of | |
1413 | ui_out::redirect. | |
1414 | (handle_redirections): Likewise. | |
1415 | * scm-ports.c (ioscm_with_output_to_port_worker): Likewise. | |
1416 | * top.c (execute_command_to_string): Likewise. | |
1417 | * utils.c (do_ui_out_redirect_pop): Likewise. | |
1418 | ||
df294654 SM |
1419 | 2017-01-10 Simon Marchi <simon.marchi@ericsson.com> |
1420 | ||
1421 | * stack.c (_initialize_stack): Update "frame" command help message. | |
1422 | ||
f5e6296e IB |
1423 | 2017-01-08 Iain Buclaw <ibuclaw@gdcproject.org> |
1424 | ||
1425 | * d-exp.y (CastExpression): Emit UNOP_CAST_TYPE. | |
1426 | ||
0e2d6fa6 YQ |
1427 | 2017-01-06 Yao Qi <yao.qi@linaro.org> |
1428 | ||
1429 | * x86-linux-nat.h: Include gdb_proc_service.h. | |
1430 | ||
44d6d3f9 YQ |
1431 | 2017-01-06 Yao Qi <yao.qi@linaro.org> |
1432 | ||
1433 | * ser-base.h: Include serial.h. | |
1434 | ||
656731fe YQ |
1435 | 2017-01-06 Yao Qi <yao.qi@linaro.org> |
1436 | ||
1437 | * ppc-linux-tdep.h: Include ppc-tdep.h. | |
1438 | ||
1ca8f924 YQ |
1439 | 2017-01-06 Yao Qi <yao.qi@linaro.org> |
1440 | ||
1441 | * nat/amd64-linux-siginfo.h: Include signal.h. | |
1442 | ||
bc3008c4 YQ |
1443 | 2017-01-06 Yao Qi <yao.qi@linaro.org> |
1444 | ||
1445 | * nat/aarch64-linux-hw-point.h: Include break-common.h. | |
1446 | ||
66c80d03 YQ |
1447 | 2017-01-06 Yao Qi <yao.qi@linaro.org> |
1448 | ||
1449 | * mi/mi-parse.h: Include mi-cmds.h. | |
1450 | ||
051d2dda YQ |
1451 | 2017-01-06 Yao Qi <yao.qi@linaro.org> |
1452 | ||
1453 | * inf-loop.c: Don't include "target.h". | |
1454 | * inf-loop.h: Include it here. | |
1455 | ||
8018d34f YQ |
1456 | 2017-01-06 Yao Qi <yao.qi@linaro.org> |
1457 | ||
1458 | * dfp.h: Include "dboulest.h" and "expression.h". | |
1459 | ||
c0b8369c YQ |
1460 | 2017-01-06 Yao Qi <yao.qi@linaro.org> |
1461 | ||
1462 | * ax-gdb.h: Include "ax.h". | |
1463 | ||
ad5cba2a YQ |
1464 | 2017-01-06 Yao Qi <yao.qi@linaro.org> |
1465 | ||
1466 | * Makefile.in (HFILES_NO_SRCDIR): Replace gdb_ptrace.h | |
1467 | with nat/gdb_ptrace.h. | |
1468 | ||
1c33cd7f YQ |
1469 | 2017-01-05 Yao Qi <yao.qi@linaro.org> |
1470 | ||
1471 | * mips-fbsd-tdep.c (mips_fbsd_sigframe_init): Move && to | |
1472 | new line. | |
1473 | (mips64_fbsd_sigframe_init): Likewise. | |
1474 | ||
c988ac1d JB |
1475 | 2017-01-04 John Baldwin <jhb@FreeBSD.org> |
1476 | ||
1477 | * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Use | |
1478 | GDB_OSABI_FREEBSD instead of GDB_OSABI_FREEBSD_ELF. | |
1479 | ||
b268007c JB |
1480 | 2017-01-04 John Baldwin <jhb@FreeBSD.org> |
1481 | ||
1482 | * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c. | |
1483 | * NEWS: Mention new FreeBSD/mips native configuration. | |
1484 | * config/mips/fbsd.mh: New file. | |
1485 | * configure.host: Add mips*-*-freebsd*. | |
1486 | * mips-fbsd-nat.c: New file. | |
1487 | ||
387360da JB |
1488 | 2017-01-04 John Baldwin <jhb@FreeBSD.org> |
1489 | ||
1490 | * Makefile.in (ALL_TARGET_OBS): Add mips-fbsd-tdep.o. | |
1491 | (ALLDEPFILES): Add mips-fbsd-tdep.c. | |
1492 | * NEWS: Mention new FreeBSD/mips target. | |
1493 | * configure.tgt: Add mips*-*-freebsd*. | |
1494 | * mips-fbsd-tdep.c: New file. | |
1495 | * mips-fbsd-tdep.h: New file. | |
1496 | ||
2aaaf250 YQ |
1497 | 2017-01-04 Yao Qi <yao.qi@linaro.org> |
1498 | ||
1499 | * dwarf2loc.c (write_pieced_value): Don't use VALUE_FRAME_ID (to), | |
1500 | use c->frame_id when the piece location is DWARF_VALUE_REGISTER. | |
1501 | ||
61baf725 JB |
1502 | 2017-01-01 Joel Brobecker <brobecker@adacore.com> |
1503 | ||
1504 | Update copyright year range in all GDB files. | |
1505 | ||
c113e7ff | 1506 | 2017-01-01 Joel Brobecker <brobecker@adacore.com> |
ce0db137 | 1507 | |
c113e7ff | 1508 | * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2016. |
ce0db137 | 1509 | |
c113e7ff | 1510 | For older changes see ChangeLog-2016. |
c906108c SS |
1511 | \f |
1512 | Local Variables: | |
1513 | mode: change-log | |
1514 | left-margin: 8 | |
1515 | fill-column: 74 | |
1516 | version-control: never | |
57da7796 | 1517 | coding: utf-8 |
c906108c | 1518 | End: |