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