Commit | Line | Data |
---|---|---|
b75c69bb AB |
1 | 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com> |
2 | ||
3 | * tui/tui-regs.c (tui_reg_next_command): Use NULL not 0. | |
4 | ||
c1b009ee AB |
5 | 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com> |
6 | ||
7 | * tui/tui-layout.c (tui_set_layout_for_display_command): Ensure | |
8 | buf_ptr is freed. | |
9 | ||
880d1e40 AB |
10 | 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com> |
11 | ||
12 | * tui/tui-layout.c (tui_layout_command): Move call to tui_enable | |
13 | into ... | |
14 | (tui_set_layout_for_display_command): ...here, before calling | |
15 | tui_set_layout. Only set the layout if gdb has not already | |
16 | entered the TUI_FAILURE state. | |
17 | ||
a0145030 AB |
18 | 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com> |
19 | ||
20 | * tui/tui-layout.c (layout_completer): New function. | |
21 | (_initialize_tui_layout): Set completer on layout command. | |
22 | ||
7bd0be3a AB |
23 | 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com> |
24 | ||
25 | * tui/tui-layout.c (tui_set_layout): Remove | |
26 | tui_register_display_type parameter. Remove all checking of this | |
27 | parameter, and reindent function. Update header comment. | |
28 | (tui_set_layout_for_display_command): Rename to... | |
29 | (tui_set_layout_by_name): ...this, and don't check for different | |
30 | register class types, don't pass a tui_register_display_type to | |
31 | tui_set_layout. Update header comment. | |
32 | (layout_names): Remove register set specific names. | |
33 | * tui/tui-layout.h (tui_set_layout): Remove | |
34 | tui_register_display_type parameter. | |
35 | * tui/tui.c (tui_rl_change_windows): Don't pass a | |
36 | tui_register_display_type to tui_set_layout. | |
37 | (tui_rl_delete_other_windows): Likewise. | |
38 | (tui_enable): Likewise. | |
39 | * tui/tui-data.h (TUI_FLOAT_REGS_NAME): Remove. | |
40 | (TUI_FLOAT_REGS_NAME_LOWER): Remove. | |
41 | (TUI_GENERAL_REGS_NAME): Remove. | |
42 | (TUI_GENERAL_REGS_NAME_LOWER): Remove. | |
43 | (TUI_SPECIAL_REGS_NAME): Remove. | |
44 | (TUI_SPECIAL_REGS_NAME_LOWER): Remove. | |
45 | (TUI_GENERAL_SPECIAL_REGS_NAME): Remove. | |
46 | (TUI_GENERAL_SPECIAL_REGS_NAME_LOWER): Remove. | |
47 | (enum tui_register_display_type): Remove. | |
48 | (struct tui_layout_def): Remove regs_display_type and | |
49 | float_regs_display_type fields. | |
50 | (struct tui_data_info): Remove regs_display_type field. | |
51 | (tui_layout_command): Use new name for | |
52 | tui_set_layout_for_display_command. | |
53 | * tui/tui-data.c (layout_def): Don't initialise removed fields. | |
54 | (tui_clear_win_detail): Don't initialise removed fields of | |
55 | win_info. | |
56 | * tui/tui-regs.c (tui_show_registers): Use new name for | |
57 | tui_set_layout_for_display_command. | |
58 | * tui/tui.h (tui_set_layout_for_display_command): Rename | |
59 | declaration to... | |
60 | (tui_set_layout_by_name): ...this. | |
61 | * printcmd.c (display_command): Remove tui related layout call, | |
62 | and reindent. | |
63 | ||
0b6e5e10 JB |
64 | 2015-05-20 Joel Brobecker <brobecker@adacore.com> |
65 | ||
66 | * infrun.c (handle_inferior_event_1): Renames handle_inferior_event. | |
67 | (handle_inferior_event): New function. | |
68 | ||
1da0522e JB |
69 | 2015-05-20 Joel Brobecker <brobecker@adacore.com> |
70 | ||
71 | * ada-lang.c (to_fixed_array_type): Rename local variable | |
72 | typename into type_name. | |
73 | ||
5fe75eec JK |
74 | 2015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com> |
75 | ||
76 | Fix ASAN crash for gdb.compile/compile.exp. | |
77 | * infcall.c (call_function_by_hand_dummy): Use xstrdup for NAME. | |
78 | ||
a4063588 JK |
79 | 2015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com> |
80 | ||
81 | * compile/compile-c-symbols.c (convert_symbol_sym, gcc_convert_symbol) | |
82 | (gcc_symbol_address): Change gdb_stdout to gdb_stdlog. | |
83 | * compile/compile-object-load.c (setup_sections, compile_object_load): | |
84 | Likewise. | |
85 | * compile/compile.c (compile_to_object): Likewise. | |
86 | ||
37442ce1 DE |
87 | 2015-05-16 Doug Evans <xdje42@gmail.com> |
88 | ||
89 | * NEWS: Mention support for unbuffered Guile memory ports. | |
90 | * scm-ports.c (ioscm_memory_port): Update comments on end, size. | |
91 | (ioscm_lseek_address): Improve overflow calculation. | |
92 | (gdbscm_memory_port_fill_input): Add assert. | |
93 | (gdbscm_memory_port_write): Handle unbuffered ports. | |
94 | Handle large writes identical to Guile's fport_write. | |
95 | (gdbscm_memory_port_seek): Fix seeking past end check. | |
96 | (gdbscm_memory_port_close): Handle closing unbuffered port. | |
97 | (ioscm_parse_mode_bits): Recognize "0" for unbuffered ports. | |
98 | (ioscm_init_memory_port): Handle unbuffered ports. | |
99 | (ioscm_reinit_memory_port): Ditto. | |
100 | (ioscm_init_memory_port): Update size calculation. | |
101 | (gdbscm_open_memory): Support zero sized ports. | |
102 | ||
d976bace JK |
103 | 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com> |
104 | ||
105 | * compile/compile-object-load.c (get_out_value_type): Fix uninitialized | |
106 | variable compiler warnings. | |
107 | ||
4d18dfad JK |
108 | 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com> |
109 | ||
110 | * compile/compile-object-load.c (get_out_value_type): Fix returned type. | |
111 | ||
36de76f9 JK |
112 | 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com> |
113 | Phil Muldoon <pmuldoon@redhat.com> | |
114 | ||
115 | * NEWS (Changes since GDB 7.9): Add compile print. | |
116 | * compile/compile-c-support.c (add_code_header, add_code_footer) | |
117 | (c_compute_program): Add COMPILE_I_PRINT_ADDRESS_SCOPE and | |
118 | COMPILE_I_PRINT_VALUE_SCOPE. | |
119 | * compile/compile-internal.h (COMPILE_I_PRINT_OUT_ARG_TYPE) | |
120 | (COMPILE_I_PRINT_OUT_ARG, COMPILE_I_EXPR_VAL, COMPILE_I_EXPR_PTR_TYPE): | |
121 | New. | |
122 | * compile/compile-object-load.c: Include block.h. | |
123 | (get_out_value_type): New function. | |
124 | (compile_object_load): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and | |
125 | COMPILE_I_PRINT_VALUE_SCOPE. Set compile_module's OUT_VALUE_ADDR and | |
126 | OUT_VALUE_TYPE. | |
127 | * compile/compile-object-load.h (struct compile_module): Add fields | |
128 | out_value_addr and out_value_type. | |
129 | * compile/compile-object-run.c: Include valprint.h and compile.h. | |
130 | (struct do_module_cleanup): Add fields out_value_addr and | |
131 | out_value_type. | |
132 | (do_module_cleanup): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and | |
133 | COMPILE_I_PRINT_VALUE_SCOPE. | |
134 | (compile_object_run): Propagate out_value_addr and out_value_type. | |
135 | Pass OUT_VALUE_ADDR. | |
136 | * compile/compile.c: Include valprint.h. | |
137 | (compile_print_value, compile_print_command): New functions. | |
138 | (eval_compile_command): Handle failed COMPILE_I_PRINT_ADDRESS_SCOPE. | |
139 | (_initialize_compile): Update compile code help text. Install | |
140 | compile_print_command. | |
141 | * compile/compile.h (compile_print_value): New prototype. | |
142 | * defs.h (enum compile_i_scope_types): Add | |
143 | COMPILE_I_PRINT_ADDRESS_SCOPE and COMPILE_I_PRINT_VALUE_SCOPE. | |
144 | ||
83d3415e JK |
145 | 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com> |
146 | ||
147 | * compile/compile-object-load.c (get_regs_type): Add parameter func_sym. | |
148 | Rely on its parameter count. | |
149 | (compile_object_load): Replace lookup_minimal_symbol_text by | |
150 | lookup_global_symbol_from_objfile. Verify FUNC_SYM. Set it in the | |
151 | return value. | |
152 | * compile/compile-object-load.h (struct compile_module): Replace | |
153 | func_addr by func_sym. | |
154 | * compile/compile-object-run.c: Include block.h. | |
155 | (compile_object_run): Reset module variable after it is freed. Use | |
156 | FUNC_SYM instead of FUNC_ADDR. Rely on it. | |
157 | ||
3a9558c4 JK |
158 | 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com> |
159 | ||
160 | * compile/compile-c-support.c (print_one_macro): Use #ifndef. | |
161 | (generate_register_struct): Use __gdb_uintptr for TYPE_CODE_PTR. | |
162 | (c_compute_program): Call generate_register_struct after typedefs. | |
163 | * compile/compile-loc2c.c (push, pushf_register_address) | |
164 | (pushf_register): Cast to GCC_UINTPTR. | |
165 | (do_compile_dwarf_expr_to_c): Use unused attribute. Add space after | |
166 | type. Use GCC_UINTPTR instead of void *. Remove excessive cast. | |
167 | (compile_dwarf_expr_to_c): Use GCC_UINTPTR instead of void *. | |
168 | * compile/compile.c (_initialize_compile): Enable warnings for | |
169 | COMPILE_ARGS. | |
170 | ||
5c65b58a JK |
171 | 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com> |
172 | ||
173 | * cli/cli-script.c (execute_control_command): Update | |
174 | eval_compile_command caller. | |
175 | * compile/compile-object-load.c (compile_object_load): Add parameters | |
176 | scope and scope_data. Set them. | |
177 | * compile/compile-object-load.h (struct compile_module): Add fields | |
178 | scope and scope_data. | |
179 | (compile_object_load): Add parameters scope and scope_data. | |
180 | * compile/compile-object-run.c (struct do_module_cleanup): Add fields | |
181 | scope and scope_data. | |
182 | (compile_object_run): Propagate the fields scope and scope_data. | |
183 | * compile/compile.c (compile_file_command, compile_code_command): | |
184 | Update eval_compile_command callers. | |
185 | (eval_compile_command): Add parameter scope_data. Pass it plus scope. | |
186 | * compile/compile.h (eval_compile_command): Add parameter scope_data. | |
187 | * defs.h (struct command_line): Add field scope_data. | |
188 | ||
1c88ceb1 JK |
189 | 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com> |
190 | ||
191 | * printcmd.c (struct format_data): Move it to valprint.h. | |
192 | (print_command_parse_format, print_value): New functions from ... | |
193 | (print_command_1): ... here. Call them. | |
194 | * valprint.h (struct format_data): Move it here from printcmd.c. | |
195 | (print_command_parse_format, print_value): New declarations. | |
196 | ||
0b738f27 JK |
197 | 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com> |
198 | ||
199 | * compile/compile-object-load.c (compile_object_load): Add | |
200 | COMPILE_DEBUG message. | |
201 | ||
aa715135 JG |
202 | 2015-05-15 Jerome Guitton <guitton@adacore.com> |
203 | ||
204 | * ada-lang.c (ada_value_ptr_subscript): Use enum position of | |
205 | index to get element instead of enum value. | |
206 | (ada_value_slice_from_ptr, ada_value_slice): Use enum position | |
207 | of index to compute length, but enum values to compute bounds. | |
208 | (ada_array_length): Use enum position of index instead of enum value. | |
209 | (pos_atr): Move position computation to... | |
210 | (ada_evaluate_subexp): Use enum values to compute bounds. | |
211 | * gdbtypes.c (discrete_position): ...this new function. | |
212 | * gdbtypes.h (discrete_position): New function declaration. | |
213 | * valprint.c (val_print_array_elements): Call discrete_position | |
214 | to handle array indexed by non-contiguous enumeration types. | |
215 | ||
931e5bc3 JG |
216 | 2015-05-15 Jerome Guitton <guitton@adacore.com> |
217 | ||
218 | * ada-lang.c (find_parallel_type_by_descriptive_type): | |
219 | Go through typedefs during lookup. | |
220 | (to_fixed_array_type): Add support for non-bit packed arrays | |
221 | as variable-length fields. | |
222 | ||
4e63d0ac PA |
223 | 2015-05-15 Pedro Alves <palves@redhat.com> |
224 | Simon Marchi <simon.marchi@ericsson.com> | |
225 | ||
226 | * event-loop.c (gdb_notifier) <next_file_handler, | |
227 | next_poll_fds_index>: New fields. | |
228 | (get_next_file_handler_to_handle_and_advance): New function. | |
229 | (delete_file_handler): If deleting the next file handler to | |
230 | handle, advance to the next file handler. | |
231 | (gdb_wait_for_event): Bail early if no event fired. Poll file | |
232 | handlers in round-robin fashion. | |
233 | ||
52e48b36 PA |
234 | 2015-05-15 Pedro Alves <palves@redhat.com> |
235 | ||
236 | * linux-tdep.c (linux_find_memory_regions_full): Rename local | |
237 | 'private' to 'priv'. | |
238 | ||
2465e12e PA |
239 | 2015-05-15 Pedro Alves <palves@redhat.com> |
240 | ||
241 | * nat/linux-nat.h: Include "target/waitstatus.h". | |
242 | ||
13fa0398 YZ |
243 | 2015-05-15 Yuanhui Zhang <asmwarrior@gmail.com> |
244 | ||
245 | * python/py-unwind.c (struct reg_info): Move out of ... | |
246 | (struct cached_frame_info): ... this scope. | |
247 | (pending_frame_object_type, unwind_info_object_type): Make extern. | |
248 | ||
9cd4d857 JB |
249 | 2015-05-15 Joel Brobecker <brobecker@adacore.com> |
250 | ||
251 | * ada-lang.c (ada_value_primitive_packed_val): Make sure | |
252 | accumSize is never negative. | |
253 | ||
e3555239 PP |
254 | 2015-05-14 Patrick Palka <patrick@parcs.ath.cx> |
255 | ||
256 | * tui/tui-command.c: Remove include of <ctype.h>. | |
257 | (tui_dispatch_ctrl_char): Remove workaround for xterm terminals. | |
258 | ||
08a76f8a MG |
259 | 2015-05-13 Martin Galvan <martin.galvan@tallertechnologies.com> |
260 | ||
261 | * dwarf2read.c (die_needs_namespace): Return 1 for | |
262 | DW_TAG_inlined_subroutine. | |
263 | ||
bd49952b JK |
264 | 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com> |
265 | ||
266 | * regcache.c (regcache_cpy_no_passthrough): New declaration. | |
267 | (regcache_cpy_no_passthrough): Make it static, add function comment. | |
268 | * regcache.h (regcache_dup, regcache_cpy): Reduce/update their comment. | |
269 | (regcache_cpy_no_passthrough): Remove declaration. | |
270 | ||
46c03469 JK |
271 | 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com> |
272 | ||
273 | * gdbthread.h (struct thread_control_state): Update comment for | |
274 | proceed_to_finish. | |
275 | * infcall.c (run_inferior_call): Update comment about | |
276 | proceed_to_finish. | |
277 | * infcmd.c (get_return_value): Update comment about stop_registers. | |
278 | (finish_forward): Update comment about proceed_to_finish. | |
279 | * infrun.c (stop_registers): Remove. | |
280 | (clear_proceed_status, normal_stop): Remove stop_registers handling. | |
281 | * infrun.h (stop_registers): Remove. | |
282 | ||
8a6c4031 JK |
283 | 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com> |
284 | ||
285 | * infcall.c (struct dummy_frame_context_saver) | |
286 | (dummy_frame_context_saver_data_free, dummy_frame_context_saver_dtor) | |
287 | (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup) | |
288 | (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup): | |
289 | New. | |
290 | (call_function_by_hand_dummy): Move discard_cleanups of | |
291 | inf_status_cleanup before dummy_frame_push. Call | |
292 | dummy_frame_context_saver_setup and prepare context_saver_cleanup. | |
293 | Use dummy_frame_context_saver_get_regs instead of stop_registers. | |
294 | * infcall.h (struct dummy_frame_context_saver) | |
295 | (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup) | |
296 | (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup): | |
297 | New declarations. | |
298 | * infcmd.c: Include infcall.h. | |
299 | (get_return_value): Add parameter ctx_saver, use it instead of | |
300 | stop_registers. | |
301 | (print_return_value): Add parameter ctx_saver, pass it. | |
302 | (struct finish_command_continuation_args): Add field ctx_saver. | |
303 | (finish_command_continuation): Update print_return_value caller. | |
304 | (finish_command_continuation_free_arg): Free also ctx_saver. | |
305 | (finish_forward): Call dummy_frame_context_saver_setup. | |
306 | * inferior.h (struct dummy_frame_context_saver): New declaration. | |
307 | (get_return_value): Add parameter ctx_saver. | |
308 | * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Update | |
309 | get_return_value caller. | |
310 | ||
10989690 JK |
311 | 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com> |
312 | ||
313 | * dummy-frame.c (struct dummy_frame_dtor_list): New. | |
314 | (struct dummy_frame): Replace dtor and dtor_data by dtor_list. | |
315 | (remove_dummy_frame): Process dtor_list. | |
316 | (pop_dummy_frame): Process dtor_list. | |
317 | (register_dummy_frame_dtor): Maintain dtor_list. | |
318 | (find_dummy_frame_dtor): Handle dtor_list. | |
319 | * dummy-frame.h (register_dummy_frame_dtor, find_dummy_frame_dtor): | |
320 | Update comments. | |
321 | ||
5e970501 JK |
322 | 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com> |
323 | ||
324 | * compile/compile-object-run.c (do_module_cleanup): Add parameter | |
325 | registers_valid. | |
326 | (compile_object_run): Update do_module_cleanup caller. | |
327 | * dummy-frame.c: Include infcall.h. | |
328 | (struct dummy_frame): Update dtor comment. | |
329 | (remove_dummy_frame): Call dtor. | |
330 | (pop_dummy_frame): Update dtor caller. | |
331 | * dummy-frame.h (dummy_frame_dtor_ftype): Add parameter | |
332 | registers_valid. | |
333 | ||
1c4eb778 JB |
334 | 2015-05-13 Joel Brobecker <brobecker@adacore.com> |
335 | ||
336 | GDB 7.9.1 released. | |
337 | ||
f5f85ab9 JB |
338 | 2015-05-13 Joel Brobecker <brobecker@adacore.com> |
339 | ||
340 | * NEWS: Create "Changes in GDB 7.9.1" section. Move news about | |
341 | Xmethods now being able to specify a result type to that new | |
342 | sectioin. | |
343 | ||
242cd84c PP |
344 | 2015-05-13 Patrick Palka <patrick@parcs.ath.cx> |
345 | ||
346 | * tui/tui-win.c (tui_async_resize_screen): Clear win_resized | |
347 | first before resizing the window. | |
e3555239 | 348 | * tui/tui.c (tui_enable): Likewise. |
242cd84c PP |
349 | |
350 | 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com> | |
558e5469 JK |
351 | |
352 | * dummy-frame.c (struct dummy_frame): Use proper typedef for dtor. | |
353 | * dummy-frame.h (dummy_frame_dtor_ftype): Add its comment. | |
354 | * infcall.c (call_function_by_hand_dummy): Use proper typedef for | |
355 | dummy_dtor parameter. | |
356 | * infcall.h: Include dummy-frame.h. | |
357 | (call_function_by_hand_dummy_dtor_ftype): Remove. | |
358 | (call_function_by_hand_dummy): Use proper typedef for dummy_dtor | |
359 | parameter. | |
360 | ||
ebfd00d2 PP |
361 | 2015-05-13 Patrick Palka <patrick@parcs.ath.cx> |
362 | ||
363 | PR gdb/17820 | |
364 | * top.c (history_size_setshow_var): Change type to signed. | |
365 | Initialize to -2. Update documentation. | |
366 | (set_readline_history_size): Define. | |
367 | (set_history_size_command): Use it. Remove logic for handling | |
368 | out-of-range sizes. | |
369 | (init_history): Use set_readline_history_size(). Test for a | |
370 | value of -2 instead of 0 when determining whether to set a | |
371 | default history size. | |
372 | (init_main): Decode the argument of the "size" command as a | |
373 | zuinteger_unlimited. | |
374 | ||
83769d0b DE |
375 | 2015-05-12 Doug Evans <dje@google.com> |
376 | ||
377 | * dwarf2read.c (struct file_entry): Tweak comments. | |
378 | (get_debug_line_section): Tweak comments. | |
379 | ||
0d71eef5 DB |
380 | 2015-05-12 Don Breazeal <donb@codesourcery.com> |
381 | ||
382 | * NEWS: Announce fork support in the RSP and support | |
383 | for fork debugging in extended mode. | |
384 | ||
cbb8991c DB |
385 | 2015-05-12 Don Breazeal <donb@codesourcery.com> |
386 | ||
387 | * remote.c (remote_insert_fork_catchpoint): New function. | |
388 | (remote_remove_fork_catchpoint): New function. | |
389 | (remote_insert_vfork_catchpoint): New function. | |
390 | (remote_remove_vfork_catchpoint): New function. | |
391 | (pending_fork_parent_callback): New function. | |
392 | (remove_new_fork_child): New function. | |
393 | (remote_update_thread_list): Call remote_notif_get_pending_events | |
394 | and remove_new_fork_child. | |
395 | (extended_remote_kill): Kill fork child when killing the | |
396 | parent before follow_fork completes. | |
397 | (init_extended_remote_ops): Initialize target vector with | |
398 | new fork catchpoint functions. | |
399 | ||
c269dbdb DB |
400 | 2015-05-12 Don Breazeal <donb@codesourcery.com> |
401 | ||
402 | * remote.c (remove_vfork_event_p): New function. | |
403 | (remote_follow_fork): Add vfork event type to event checking. | |
404 | (remote_parse_stop_reply): New stop reasons "vfork" and | |
405 | "vforkdone" for RSP 'T' Stop Reply Packet. | |
406 | ||
de0d863e DB |
407 | 2015-05-12 Don Breazeal <donb@codesourcery.com> |
408 | ||
409 | * linux-nat.c (linux_nat_ptrace_options): New function. | |
410 | (linux_init_ptrace, wait_lwp, linux_nat_filter_event): | |
411 | Call linux_nat_ptrace_options and use different argument to | |
412 | linux_enable_event_reporting. | |
413 | (_initialize_linux_nat): Delete call to | |
414 | linux_ptrace_set_additional_flags. | |
415 | * nat/linux-ptrace.c (current_ptrace_options): Rename to | |
416 | supported_ptrace_options. | |
417 | (additional_flags): Delete variable. | |
418 | (linux_check_ptrace_features): Use supported_ptrace_options. | |
419 | (linux_test_for_tracesysgood, linux_test_for_tracefork): | |
420 | Likewise, and remove additional_flags check. | |
421 | (linux_enable_event_reporting): Change 'attached' argument to | |
422 | 'options'. Use supported_ptrace_options. | |
423 | (ptrace_supports_feature): Change comment. Use | |
424 | supported_ptrace_options. | |
425 | (linux_ptrace_set_additional_flags): Delete function. | |
426 | * nat/linux-ptrace.h (linux_ptrace_set_additional_flags): | |
427 | Delete function prototype. | |
428 | * remote.c (remote_fork_event_p): New function. | |
429 | (remote_detach_pid): New function. | |
430 | (remote_detach_1): Call remote_detach_pid, don't mourn inferior | |
431 | if doing detach-on-fork. | |
432 | (remote_follow_fork): New function. | |
433 | (remote_parse_stop_reply): Handle new "T" stop reason "fork". | |
434 | (remote_pid_to_str): Print "process" strings for pid/0/0 ptids. | |
435 | (init_extended_remote_ops): Initialize to_follow_fork. | |
436 | ||
89245bc0 DB |
437 | 2015-05-12 Don Breazeal <donb@codesourcery.com> |
438 | ||
439 | * nat/linux-ptrace.c (linux_check_ptrace_features): Change | |
440 | from static to extern. | |
441 | * nat/linux-ptrace.h (linux_check_ptrace_features): Declare. | |
442 | * remote.c (anonymous enum): <PACKET_fork_event_feature, | |
443 | * PACKET_vfork_event_feature>: New enumeration constants. | |
444 | (remote_protocol_features): Add table entries for new packets. | |
445 | (remote_query_supported): Add new feature queries to qSupported | |
446 | packet. | |
447 | ||
835205d0 GB |
448 | 2015-05-12 Gary Benson <gbenson@redhat.com> |
449 | ||
450 | * remote.c (remote_add_inferior): Call exec_file_locate_attach | |
451 | for fake PIDs as well as real ones. | |
452 | (remote_pid_to_exec_file): Send empty annex if PID is fake. | |
453 | ||
4c082a81 SC |
454 | 2015-05-09 Siva Chandra Reddy <sivachandra@google.com> |
455 | ||
456 | * NEWS (Python Scripting): Mention the new gdb.Value methods. | |
457 | * python/py-value.c (valpy_reference_value): New function. | |
458 | (valpy_const_value): Likewise. | |
459 | (value_object_methods): Add new methods. | |
460 | * value.c (make_cv_value): New function. | |
461 | * value.h (make_cv_value): Declare. | |
462 | ||
afa6c9ab SL |
463 | 2015-05-08 Yao Qi <yao@codesourcery.com> |
464 | Sandra Loosemore <sandra@codesourcery.com> | |
465 | ||
466 | * dwarf2read.c (setup_type_unit_groups): Do NULL pointer check | |
467 | to 'lh->include_dirs' before accessing to it. | |
468 | (psymtab_include_file_name): Likewise. | |
469 | (dwarf_decode_lines_1): Likewise. | |
470 | (dwarf_decode_lines): Likewise. | |
471 | (file_file_name): Likewise. | |
472 | ||
35d54293 SL |
473 | 2015-05-08 Sandra Loosemore <sandra@codesourcery.com> |
474 | ||
475 | * nios2-linux-tdep.c (NIOS2_SIGRETURN_TRAMP_ADDR): Define. | |
476 | (NIOS2_SIGRETURN_REGSAVE_OFFSET): Define. | |
477 | (nios2_linux_rt_sigreturn_init): Adjust base address of | |
478 | register save area. | |
479 | ||
b73c49b7 SL |
480 | 2015-05-08 Sandra Loosemore <sandra@codesourcery.com> |
481 | ||
482 | * nios2-tdep.c (nios2_breakpoint_from_pc): Revert to using | |
483 | "trap 31" as the breakpoint instruction on all targets. | |
484 | ||
dd9f02a0 JK |
485 | 2015-05-08 Jan Kratochvil <jan.kratochvil@redhat.com> |
486 | ||
487 | * infcmd.c (print_return_value): Remove unused declaration. | |
488 | ||
6ad395a7 JB |
489 | 2015-05-08 Joel Brobecker <brobecker@adacore.com> |
490 | ||
491 | * dwarf2read.c (attr_to_dynamic_prop) | |
492 | <DW_AT_data_member_location>: Use read_type_die isntead of | |
493 | get_die_type. | |
494 | ||
8344af1e JB |
495 | 2015-05-08 Joel Brobecker <brobecker@adacore.com> |
496 | ||
497 | * ada-lang.c (ada_convert_actual): Add handling of formals | |
498 | passed inside an aligner type. | |
499 | ||
80b0912b JB |
500 | 2015-05-08 Joel Brobecker <brobecker@adacore.com> |
501 | ||
502 | * copyright.py (NOT_FSF_LIST): Remove sim/erc32 entries. | |
503 | ||
df2eb078 SC |
504 | 2015-05-08 Siva Chandra Reddy <sivachandra@google.com> |
505 | ||
506 | PR python/18291 | |
507 | * python/lib/gdb/command/xmethods.py (print_xm_info): Fix typo. | |
508 | Print xmethod matcher status. | |
509 | ||
2492f0d0 AA |
510 | 2015-05-08 Andreas Arnez <arnez@linux.vnet.ibm.com> |
511 | ||
512 | * s390-linux-nat.c (fill_gregset): Avoid relying on the PSWA | |
513 | register in the regcache when treating the PSWM register, and vice | |
514 | versa. | |
515 | ||
1c56a84d GB |
516 | 2015-05-07 Gary Benson <gbenson@redhat.com> |
517 | ||
518 | * linux-thread-db.c (struct thread_db_info) | |
519 | <td_ta_map_id2thr_p>: Remove field. | |
520 | (try_thread_db_load_1): Remove initialization for the above. | |
521 | ||
74850322 GB |
522 | 2015-05-07 Gary Benson <gbenson@redhat.com> |
523 | ||
524 | * linux-thread-db.c (struct thread_db_info) | |
525 | <td_thr_validate_p>: Remove field. | |
526 | (try_thread_db_load_1): Remove initialization for the above. | |
527 | ||
e26efa40 JK |
528 | 2015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com> |
529 | ||
530 | * compile/compile-object-load.c (compile_object_load): Support | |
531 | mst_text_gnu_ifunc. | |
532 | ||
851c9091 JK |
533 | 2015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com> |
534 | ||
535 | * compile/compile.c (compile_to_object): Make the cmd_string parameter | |
536 | const. Use new variables for the const compatibility. | |
537 | (eval_compile_command): Make the cmd_string parameter const. | |
538 | * compile/compile.h (eval_compile_command): Make the cmd_string | |
539 | parameter const. | |
540 | ||
f218b647 JB |
541 | 2015-05-06 Joel Brobecker <brobecker@adacore.com> |
542 | ||
543 | * defs.h (deprecated_init_ui_hook): Delete. Remove associated | |
544 | comment. | |
545 | * top.c (deprecated_init_ui_hook): Delete. | |
546 | (gdb_init): Remove handling of deprecated_init_ui_hook. | |
547 | * interps.c (clear_interpreter_hooks): Remove handling of | |
548 | deprecated_init_ui_hook. | |
549 | * main.c (captured_main): Update comment. | |
550 | ||
b30a0bc3 JB |
551 | 2015-05-06 Joel Brobecker <brobecker@adacore.com> |
552 | ||
553 | * solib.c (_initialize_solib): Add "info dll" alias creation. | |
554 | * windows-nat.c (set_windows_aliases): Delete. | |
555 | (_initialize_windows_nat): Remove deprecated_init_ui_hook | |
556 | assignment. | |
557 | * NEWS: Add news entry about "info dll" now being available | |
558 | on all platforms. | |
559 | ||
7c512744 JB |
560 | 2015-05-05 Joel Brobecker <brobecker@adacore.com> |
561 | ||
562 | * ada-lang.c (value_assign_to_component): Reformat and improve | |
563 | documentation. Remove all trailing spaces. | |
564 | ||
0fa7fe50 JB |
565 | 2015-05-05 Joel Brobecker <brobecker@adacore.com> |
566 | ||
567 | * inline-frame.c (inline_frame_sniffer, skip_inline_frames): | |
568 | Stop counting inlined frames as soon as an out-of-line function | |
569 | is found. | |
570 | ||
3ea89b92 PMR |
571 | 2014-05-05 Pierre-Marie de Rodat <derodat@adacore.com> |
572 | ||
573 | * dwarf2read.c (inherit_abstract_dies): Skip | |
574 | DW_TAG_GNU_call_site dies while inheriting children of an | |
575 | abstract DIE into a scope. | |
576 | (read_lexical_block_scope): Inherit abstract DIE's for | |
577 | lexical scopes. | |
578 | ||
2478d075 JB |
579 | 2015-05-05 Joel Brobecker <brobecker@adacore.com> |
580 | ||
581 | * ada-valprint.c (val_print_packed_array_elements): Delete | |
582 | variable "len". Add a type-length check when comparing two | |
583 | consecutive elements of the array. Use the element's actual | |
584 | length in call to value_contents_eq. | |
585 | * ada-lang.c (ada_value_primitive_packed_val): Always return | |
586 | a value whose type has been resolved. | |
587 | ||
fc958966 JB |
588 | 2015-05-05 Joel Brobecker <brobecker@adacore.com> |
589 | ||
590 | * ada-lang.c (ada_value_primitive_packed_val): Recompute | |
591 | BIT_SIZE and LEN if the size of the resolved type is smaller | |
592 | than BIT_SIZE * HOST_CHAR_BIT. | |
593 | ||
ca34b84f JB |
594 | 2015-05-05 Joel Brobecker <brobecker@adacore.com> |
595 | ||
596 | * ada-lang.c (ada_value_primitive_packed_val): Use a more | |
597 | correct address in call to value_at. Adjust call to | |
598 | value_address accordingly. | |
599 | ||
62c67f3c JB |
600 | 2015-05-05 Joel Brobecker <brobecker@adacore.com> |
601 | ||
602 | * ada-valprint.c (ada_val_print_1): Resolve TYPE before trying | |
603 | to print it. | |
604 | ||
c3345124 JB |
605 | 2015-05-05 Joel Brobecker <brobecker@adacore.com> |
606 | ||
607 | * dwarf2loc.h (struct property_addr_info): Add "valaddr" field. | |
608 | * dwarf2loc.c (dwarf2_evaluate_property): Add handling of | |
609 | pinfo->valaddr. | |
610 | * gdbtypes.h (resolve_dynamic_type): Add "valaddr" parameter. | |
611 | * gdbtypes.c (resolve_dynamic_struct): Set pinfo.valaddr. | |
612 | (resolve_dynamic_type_internal): Set pinfo.valaddr. | |
613 | Add handling of addr_stack->valaddr. | |
614 | (resolve_dynamic_type): Add "valaddr" parameter. | |
615 | Set pinfo.valaddr field. | |
616 | * ada-lang.c (ada_discrete_type_high_bound): Update call to | |
617 | resolve_dynamic_type. | |
618 | (ada_discrete_type_low_bound): Likewise. | |
619 | * findvar.c (default_read_var_value): Likewise. | |
620 | * value.c (value_from_contents_and_address): Likewise. | |
621 | ||
75ea5859 JB |
622 | 2015-05-05 Joel Brobecker <brobecker@adacore.com> |
623 | ||
624 | * gdbtypes.c (resolve_dynamic_array): Use | |
625 | create_array_type_with_stride instead of create_array_type. | |
626 | ||
0952813b DD |
627 | 2015-04-30 DJ Delorie <dj@redhat.com> |
628 | ||
629 | * rl78-tdep.c (rl78_analyze_prologue): Pass RL78_ISA_DEFAULT to | |
630 | rl78_decode_opcode | |
631 | ||
2ce1cdbf DE |
632 | 2015-04-29 Doug Evans <dje@google.com> |
633 | ||
634 | PR python/18285 | |
635 | * NEWS: Document new gdb.XMethodWorker.get_result_type method. | |
636 | * eval.c (evaluate_subexp_standard) <OP_FUNCALL>: Handle | |
637 | EVAL_AVOID_SIDE_EFFECTS for xmethods. | |
638 | * extension-priv.h (struct extension_language_ops) | |
639 | <get_xmethod_result_type>: New member. | |
640 | * extension.c (get_xmethod_result_type): New function. | |
641 | * extension.h (get_xmethod_result_type): Declare. | |
642 | * python/py-xmethods.c (get_result_type_method_name): New static | |
643 | global. | |
644 | (py_get_result_type_method_name): Ditto. | |
645 | (gdbpy_get_xmethod_result_type): New function. | |
646 | (gdbpy_initialize_xmethods): Initialize py_get_result_type_method_name. | |
647 | * python/python-internal.h (gdbpy_get_xmethod_result_type): Declare. | |
648 | * python/python.c (python_extension_ops): Add | |
649 | gdbpy_get_xmethod_result_type. | |
650 | * python/lib/gdb/xmethod.py (XMethodWorker): Add get_result_type. | |
651 | * valarith.c (value_x_binop): Handle EVAL_AVOID_SIDE_EFFECTS for | |
652 | xmethods. | |
653 | (value_x_unop): Ditto. | |
654 | * value.c (result_type_of_xmethod): New function. | |
655 | * value.h (result_type_of_xmethod): Declare. | |
656 | ||
998d2a3e GB |
657 | 2015-04-29 Gary Benson <gbenson@redhat.com> |
658 | ||
659 | * solib.c (solib_find_1): Allow fd argument to be NULL. | |
660 | (exec_file_find): Update comment. | |
661 | (solib_find): Likewise. | |
662 | * exec.c (exec_file_locate_attach): Use NULL as fd | |
663 | argument to exec_file_find to avoid having to close | |
664 | the opened file. | |
665 | * infrun.c (follow_exec): Likewise. | |
666 | ||
34f5f757 DE |
667 | 2015-04-28 Doug Evans <dje@google.com> |
668 | ||
669 | PR python/18299 | |
670 | * python/lib/gdb/printing.py (register_pretty_printer): Handle | |
671 | name or __name__ attributes. Handle gdb module as first argument. | |
672 | ||
69b4374a DE |
673 | 2015-04-28 Doug Evans <dje@google.com> |
674 | ||
675 | PR python/18089 | |
676 | * python/py-prettyprint.c (print_children): Verify result of children | |
677 | iterator. Provide better error message. | |
678 | * python/python-internal..h (gdbpy_print_python_errors_p): Declare. | |
679 | * python/python.c (gdbpy_print_python_errors_p): New function. | |
680 | ||
5e7cf078 DE |
681 | 2015-04-28 Doug Evans <dje@google.com> |
682 | ||
683 | * gdbtypes.h (struct cplus_struct_type) <n_baseclasses>: Fix comment. | |
684 | ||
59fb7612 SS |
685 | 2015-04-28 Sasha Smundak <asmundak@google.com> |
686 | ||
687 | * NEWS: Mention gdb.Type.optimized_out method. | |
688 | * python/py-type.c (typy_optimized_out): New function. | |
689 | ||
cea6e4f1 JB |
690 | 2015-04-28 John Baldwin <jhb@FreeBSD.org> |
691 | ||
692 | * fbsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>. | |
693 | ||
24b73f8e PP |
694 | 2015-04-28 Patrick Palka <patrick@parcs.ath.cx> |
695 | ||
696 | * utils.c (init_page_info): Set rl_catch_sigwinch to zero. | |
697 | (initialize_utils): Move call of init_page_info() to ... | |
698 | * top.c (gdb_init): ... here. | |
699 | ||
a88d0bb3 PP |
700 | 2015-04-28 Patrick Palka <patrick@parcs.ath.cx> |
701 | ||
702 | * tui/tui-win.c (tui_sigwinch_handler): Remove now-stale comment. | |
703 | (tui_sigwinch_handler): Still update our idea of | |
704 | the terminal's width and height even when TUI is not active. | |
705 | ||
d6e5e7f7 PP |
706 | 2015-04-28 Patrick Palka <patrick@parcs.ath.cx> |
707 | ||
708 | * utils.h (set_screen_width_and_height): Declare. | |
709 | * utils.c (set_screen_width_and_height): Define. | |
710 | * tui/tui-win.c (tui_update_gdb_sizes): Use it. | |
711 | ||
ff862be4 GB |
712 | 2015-04-28 Gary Benson <gbenson@redhat.com> |
713 | ||
714 | * infrun.c (solist.h): New include. | |
715 | (follow_exec): Use exec_file_find to prefix execd_pathname | |
716 | with gdb_sysroot. | |
717 | ||
2eb639cb PP |
718 | 2015-04-28 Patrick Palka <patrick@parcs.ath.cx> |
719 | ||
720 | * tui/tui-source.c (tui_set_source_content): Avoid calling | |
721 | strcpy() when offset is 0. | |
722 | ||
97206799 PP |
723 | 2015-04-28 Patrick Palka <patrick@parcs.ath.cx> |
724 | ||
725 | PR gdb/18155 | |
726 | * tui/tui-data.c (tui_free_window): Don't free the locator | |
727 | window when passed an SRC_WIN or a DISASSEM_WIN. | |
728 | ||
63ed8182 PP |
729 | 2015-04-28 Patrick Palka <patrick@parcs.ath.cx> |
730 | ||
731 | * tui/tui-data.h (struct tui_win_element): Forward-declare. | |
732 | (tui_win_content): Move declaration. | |
733 | (struct tui_gen_win_info): Give 'content' field the | |
734 | type tui_win_content. | |
735 | * tui/tui-data.c (init_content_element): Remove redundant and | |
736 | erroneous casts. | |
737 | (tui_add_content_elements): Remove erroneous cast. | |
738 | * tui/tui-disasm.c (tui_set_disassem_content): Remove redundant | |
739 | casts. | |
740 | (tui_get_begin_asm_address): Likewise. | |
741 | * tui/tui-regs.c (tui_show_registers): Likewise. | |
742 | (tui_show_register_group): Likewise. | |
743 | (tui_display_registers_from): Likewise. | |
744 | (tui_check_register_values): Likewise. | |
745 | * tui/tui-source.c (tui_set_source_content): Likewise. | |
746 | (tui_set_source_content_nil): Likewise. | |
747 | (tui_source_is_displayed): Likewise. | |
748 | * tui/tui-stack.c (tui_show_locator_content): Likewise. | |
749 | (tui_set_locator_fullname): Likewise. | |
750 | (tui_set_locator_info): Likewise. | |
751 | (tui_show_frame_info): Likewise. | |
752 | * tui/tui-winsource.c (tui_clear_source_content): Likewise. | |
753 | (tui_show_source_line): Likewise. | |
754 | (tui_horizontal_source_scroll): Likewise. | |
755 | (tui_update_breakpoint_info): Likewise. | |
756 | (tui_set_exec_info_content): Likewise. | |
757 | (tui_show_exec_info_content): Likewise. | |
758 | (tui_alloc_source_buffer): Likewise. | |
759 | (tui_line_is_displayed): Likewise. | |
760 | (tui_addr_is_displayed): Likewise. | |
761 | ||
d2b41ca0 JB |
762 | 2015-04-27 John Baldwin <jhb@FreeBSD.org> |
763 | ||
764 | * fbsd-nat.c: (fbsd_wait) [PL_FLAG_EXEC]: Report TARGET_WAITKIND_EXECD | |
765 | event if PL_FLAG_EXEC is set. | |
766 | [PL_FLAG_EXEC] (fbsd_insert_exec_catchpoint): New function. | |
767 | [PL_FLAG_EXEC] (fbsd_remove_exec_catchpoint): New function. | |
768 | (fbsd_nat_add_target) [PL_FLAG_EXEC]: Set | |
769 | "to_insert_exec_catchpoint" to "fbsd_insert_exec_catchpoint". | |
770 | Set "to_remove_exec_catchpoint" to "fbsd_remove_exec_catchpoint". | |
771 | ||
e58e05d6 JB |
772 | 2015-04-27 John Baldwin <jhb@FreeBSD.org> |
773 | ||
774 | * fbsd-nat.c: [PT_LWPINFO] New variable super_wait. | |
775 | [TDP_RFPPWAIT] New variable fbsd_pending_children. | |
776 | [TDP_RFPPWAIT] (fbsd_remember_child): New function. | |
777 | [TDP_RFPPWAIT] (fbsd_is_child_pending): New function. | |
778 | [TDP_RFPPWAIT] (fbsd_fetch_kinfo_proc): New function. | |
779 | [PT_LWPINFO] (fbsd_wait): New function. | |
780 | [TDP_RFPPWAIT] (fbsd_follow_fork): New function. | |
781 | [TDP_RFPPWAIT] (fbsd_insert_fork_catchpoint): New function. | |
782 | [TDP_RFPPWAIT] (fbsd_remove_fork_catchpoint): New function. | |
783 | [TDP_RFPPWAIT] (fbsd_insert_vfork_catchpoint): New function. | |
784 | [TDP_RFPPWAIT] (fbsd_remove_vfork_catchpoint): New function. | |
785 | [TDP_RFPPWAIT] (fbsd_enable_follow_fork): New function. | |
786 | [TDP_RFPPWAIT] (fbsd_post_startup_inferior): New function. | |
787 | [TDP_RFPPWAIT] (fbsd_post_attach): New function. | |
788 | (fbsd_nat_add_target) [PT_LWPINFO] Set "to_wait" to | |
789 | "fbsd_wait". | |
790 | [TDP_RFPPWAIT] Set "to_follow_fork" to "fbsd_follow_fork". | |
791 | Set "to_insert_fork_catchpoint" to "fbsd_insert_fork_catchpoint". | |
792 | Set "to_remove_fork_catchpoint" to "fbsd_remove_fork_catchpoint". | |
793 | Set "to_insert_vfork_catchpoint" to "fbsd_insert_vfork_catchpoint". | |
794 | Set "to_remove_vfork_catchpoint" to "fbsd_remove_vfork_catchpoint". | |
795 | Set "to_post_startup_inferior" to "fbsd_post_startup_inferior". | |
796 | Set "to_post_attach" to "fbsd_post_attach". | |
797 | ||
8f60fe01 JB |
798 | 2015-04-27 John Baldwin <jhb@FreeBSD.org> |
799 | ||
800 | * fbsd-nat.c (fbsd_pid_to_exec_file): Mark static. | |
801 | (fbsd_find_memory_regions): Mark static. | |
802 | (fbsd_nat_add_target): New function. | |
803 | * fbsd-nat.h: Export fbsd_nat_add_target and remove prototypes for | |
804 | fbsd_pid_to_exec_file and fbsd_find_memory_regions. | |
805 | * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Use fbsd_nat_add_target. | |
806 | * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise. | |
807 | * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Likewise. | |
808 | * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Likewise. | |
809 | ||
5fbae7d1 GB |
810 | 2015-04-27 Gary Benson <gbenson@redhat.com> |
811 | ||
812 | * objfiles.c (allocate_objfile): Do not attempt to expand name | |
813 | if name is a "target:" filename. | |
814 | * auto-load.c (load_auto_scripts_for_objfile): Do not attempt | |
815 | to load auto-load scripts for objfiles with "target:" filenames. | |
816 | ||
417c80f9 AA |
817 | 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com> |
818 | ||
819 | * s390-linux-tdep.c: Include "elf/s390.h" and "elf-bfd.h". | |
820 | (enum s390_vector_abi_kind): New enum. | |
821 | (struct gdbarch_tdep)<vector_abi>: New field. | |
822 | (s390_effective_inner_type): Add parameter min_size. Stop | |
823 | unwrapping if the inner type is smaller than min_size. | |
824 | (s390_function_arg_float): Adjust call to | |
825 | s390_effective_inner_type. | |
826 | (s390_function_arg_vector): New function. | |
827 | (s390_function_arg_integer): Adjust comment. | |
828 | (struct s390_arg_state)<vr>: New field. | |
829 | (s390_handle_arg): Add parameter 'is_unnamed'. Pass vector | |
830 | arguments according to vector ABI when appropriate. | |
831 | (s390_push_dummy_call): Initialize the argument state's field | |
832 | 'vr'. Adjust calls to s390_handle_arg. | |
833 | (s390_register_return_value): Handle vector return values. | |
834 | (s390_return_value): Apply the "register" return value convention | |
835 | to a vector when appropriate. | |
836 | (s390_gdbarch_init): Initialize tdep->vector_abi. | |
837 | * NEWS: Announce S390 vector ABI support. | |
838 | ||
4e65a17e AA |
839 | 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com> |
840 | ||
841 | * s390-linux-tdep.c (s390_return_value_convention): Remove | |
842 | function. Inline its logic... | |
843 | (s390_return_value): ...here. Instead, move the handling of the | |
844 | "register" return value convention... | |
845 | (s390_register_return_value): ...here. New function. | |
846 | ||
80f75320 AA |
847 | 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com> |
848 | ||
849 | * s390-linux-tdep.c | |
850 | (is_float_singleton): Remove function. Move the "singleton" part | |
851 | of the logic... | |
852 | (s390_effective_inner_type): ...here. New function. | |
853 | (is_float_like): Remove function. Inline its logic... | |
854 | (s390_function_arg_float): ...here. | |
855 | (is_pointer_like, is_integer_like, is_struct_like): Remove | |
856 | functions. Inline their logic... | |
857 | (s390_function_arg_integer): ...here. | |
858 | (s390_function_arg_pass_by_reference): Remove function. | |
859 | (extend_simple_arg): Remove function. | |
860 | (alignment_of): Remove function. | |
861 | (struct s390_arg_state): New structure. | |
862 | (s390_handle_arg): New function. | |
863 | (s390_push_dummy_call): Move parameter placement logic to the new | |
864 | function s390_handle_arg. Call it for calculating the stack area | |
865 | sizes first, and again for actually writing the parameters. | |
866 | ||
6dbc9c04 AA |
867 | 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com> |
868 | ||
869 | * s390-linux-tdep.c (is_power_of_two): Add comment. Return | |
870 | false if the argument is zero. | |
871 | ||
9e195661 PMR |
872 | 2015-04-27 Pierre-Marie de Rodat <derodat@adacore.com> |
873 | ||
874 | * ada-lang.c (template_to_static_fixed_type): Return input type | |
875 | when it is already fixed. Cache the input type itself when not | |
876 | creating a static fixed copy. Make it explicit that we never | |
877 | molestate the input type. | |
878 | * gdbtypes.c (resolve_dynamic_struct): Reset the | |
879 | TYPE_TARGET_TYPE field for resolved copies. | |
880 | ||
460efde1 JB |
881 | 2015-04-27 Joel Brobecker <brobecker@adacore.com> |
882 | ||
883 | * ada-lang.c (ada_is_tagged_type): Add call to ada_check_typedef. | |
884 | (ada_lookup_struct_elt_type): Remove calls to ada_check_typedef. | |
885 | (template_to_static_fixed_type): Call ada_check_typedef only | |
886 | when necessary. | |
887 | ||
6faec16b AB |
888 | 2015-04-24 Andrew Burgess <andrew.burgess@embecosm.com> |
889 | ||
890 | * cli/cli-dump.c (srec_dump_command): Add internationalization | |
891 | mark ups. | |
892 | (ihex_dump_command): Likewise. | |
893 | (tekhex_dump_command): Likewise. | |
894 | (binary_dump_command): Likewise. | |
895 | (binary_append_command): Likewise. | |
896 | ||
cf75d6c3 AB |
897 | 2015-04-24 Andrew Burgess <andrew.burgess@embecosm.com> |
898 | ||
899 | * cli/cli-dump.c (verilog_cmdlist): New variable. | |
900 | (dump_verilog_memory): New function. | |
901 | (dump_verilog_value): New function. | |
902 | (verilog_dump_command): New function. | |
903 | (_initialize_cli_dump): Add new commands to support verilog dump | |
904 | format. | |
905 | * NEWS: Add entry for "dump verilog". | |
906 | ||
8cd00c59 PMR |
907 | 2015-04-24 Pierre-Marie de Rodat <derodat@adacore.com> |
908 | ||
909 | * gdbtypes.c (print_gnat_stuff): Do not recurse on the | |
910 | descriptive type when there is none. | |
911 | ||
8900d71e PP |
912 | 2015-04-23 Patrick Palka <patrick@parcs.ath.cx> |
913 | ||
914 | * tui/tui-win.c (tui_async_resize_screen): Call | |
915 | rl_resize_terminal(). | |
916 | ||
f16eab5f JT |
917 | 2015-04-22 Jon Turney <jon.turney@dronecode.org.uk> |
918 | ||
919 | * windows-nat.c (handle_output_debug_string): Don't change | |
920 | current_event.dwThreadId. | |
921 | (get_windows_debug_event): Use thread_id, rather than relying on | |
922 | current_event.dwThreadId being changed. | |
923 | ||
68ffc902 JT |
924 | 2015-04-22 Jon Turney <jon.turney@dronecode.org.uk> |
925 | ||
926 | * windows-nat.c (windows_continue): Report an error if | |
927 | ContinueDebugEvent() fails. | |
928 | ||
23942819 JT |
929 | 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk> |
930 | ||
931 | * windows-nat.c (windows_resume): Fix misspelling in debug output. | |
932 | ||
e6ad66bd JT |
933 | 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk> |
934 | ||
935 | * windows-nat.c (get_windows_debug_event): Replace retval with | |
936 | thread_id throughout. Update stale comment. | |
937 | ||
776704b9 JT |
938 | 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk> |
939 | ||
940 | * windows-nat.c (get_windows_debug_event): Don't use ternary | |
941 | conditional operator. | |
942 | ||
8aae4344 PM |
943 | 2015-04-21 Pierre Muller <muller@sourceware.org> |
944 | ||
945 | PR pascal/17815 | |
946 | p-exp.y (yylex): Reorganize code to return the matched pattern | |
947 | for a field of this. | |
948 | ||
819843c7 GB |
949 | 2015-04-21 Gary Benson <gbenson@redhat.com> |
950 | ||
951 | * common/fileio.h (fileio_to_host_openflags): New declaration. | |
952 | * common/fileio.c (fcntl.h): New include. | |
953 | (fileio_to_host_openflags): New function, factored out from... | |
954 | * inf-child.c (inf_child_fileio_open_flags_to_host): ...here. | |
955 | Single use updated. | |
956 | ||
0bca7f99 KB |
957 | 2015-04-21 Kevin Buettner <kevinb@redhat.com> |
958 | ||
959 | * rl78-tdep.c (RL78_SP_ADDR): Define. | |
960 | (opc_reg_to_gdb_regnum): New static function. | |
961 | (rl78_analyze_prologue): Recognize instructions forming slightly | |
962 | more interesting prologues. | |
963 | ||
e771e4be PMR |
964 | 2015-04-20 Pierre-Marie de Rodat <derodat@adacore.com> |
965 | ||
966 | Revert: | |
967 | 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com> | |
968 | * gdbtypes.c (is_dynamic_type_internal): Remove special handling of | |
969 | TYPE_CODE_REF types so that they are not considered as dynamic | |
970 | depending on the referenced type. | |
971 | (resolve_dynamic_type_internal): Likewise. | |
972 | ||
ee715b5a PMR |
973 | 2015-04-20 Pierre-Marie de Rodat <derodat@adacore.com> |
974 | ||
975 | Revert: | |
976 | 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com> | |
977 | * gdbtypes.c (is_dynamic_type_internal): Remove the unused | |
978 | "top_level" parameter. | |
979 | (resolve_dynamic_type_internal): Remove the unused "top_level" | |
980 | parameter. Update call to is_dynamic_type_internal. | |
981 | (is_dynamic_type): Update call to is_dynamic_type_internal. | |
982 | (resolve_dynamic_range): Update call to | |
983 | resolve_dynamic_type_internal. | |
984 | (resolve_dynamic_union): Likewise. | |
985 | (resolve_dynamic_struct): Likewise. | |
986 | (resolve_dynamic_type): Likewise. | |
987 | ||
e31d7699 GKB |
988 | 2015-04-19 Gabriel Krisman Bertazi <gabriel@krisman.be> |
989 | ||
990 | * breakpoint.c (update_dprintf_command_list): Remove duplicated | |
991 | xmalloc. | |
992 | ||
d214e5e7 TS |
993 | 2015-04-20 Thomas Schwinge <thomas@codesourcery.com> |
994 | ||
110f9112 TS |
995 | * reply_mig_hack.awk: Robustify parsing. |
996 | ||
d214e5e7 TS |
997 | * reply_mig_hack.awk: Don't bother to declare an intermediate |
998 | function pointer variable. | |
999 | ||
8f61baf8 DE |
1000 | 2015-04-17 Doug Evans <dje@google.com> |
1001 | ||
1002 | * solib-svr4.c (svr4_exec_displacement): Rename outer "displacement" | |
1003 | to "exec_displacement" to avoid confusion with inner use of the name. | |
1004 | ||
dbbf180a YQ |
1005 | 2015-04-17 Pedro Alves <palves@redhat.com> |
1006 | ||
1007 | * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Return zero | |
1008 | if HW point of TYPE isn't supported. | |
1009 | ||
059790a0 YQ |
1010 | 2015-04-17 Yao Qi <yao.qi@linaro.org> |
1011 | Pedro Alves <palves@redhat.com> | |
1012 | ||
1013 | * target.h (target_can_use_hardware_watchpoint): Update comments. | |
1014 | Remove trailing ";". | |
1015 | ||
1b6e6f5c GB |
1016 | 2015-04-17 Gary Benson <gbenson@redhat.com> |
1017 | ||
1018 | * remote.c (remote_add_inferior): New argument try_open_exec. | |
1019 | If nonzero, attempt to open the inferior's executable file as | |
1020 | the main executable if no main executable is open already. | |
1021 | All callers updated. | |
1022 | * NEWS: Mention that GDB now supports automatic location and | |
1023 | retrieval of executable + files from remote targets. | |
1024 | ||
c78fa86a GB |
1025 | 2015-04-17 Gary Benson <gbenson@redhat.com> |
1026 | ||
1027 | * target.h (TARGET_OBJECT_EXEC_FILE): New enum value. | |
1028 | * remote.c (PACKET_qXfer_exec_file): Likewise. | |
1029 | (remote_protocol_features): Register the | |
1030 | "qXfer:exec-file:read" feature. | |
1031 | (remote_xfer_partial): Handle TARGET_OBJECT_EXEC_FILE. | |
1032 | (remote_pid_to_exec_file): New function. | |
1033 | (init_remote_ops): Initialize to_pid_to_exec_file. | |
1034 | (_initialize_remote): Register new "set/show remote | |
1035 | pid-to-exec-file-packet" command. | |
1036 | * NEWS: Announce new qXfer:exec-file:read packet. | |
1037 | ||
e0d86d2c GB |
1038 | 2015-04-17 Gary Benson <gbenson@redhat.com> |
1039 | ||
1040 | * nat/linux-procfs.h (linux_proc_pid_to_exec_file): | |
1041 | New declaration. | |
1042 | * nat/linux-procfs.c (linux_proc_pid_to_exec_file): | |
1043 | New function, factored out from... | |
1044 | * linux-nat.c (linux_child_pid_to_exec_file): ...here. | |
1045 | ||
a9a5a3d1 GB |
1046 | 2015-04-17 Gary Benson <gbenson@redhat.com> |
1047 | ||
1048 | * exec.c (solist.h): New include. | |
1049 | (exec_file_locate_attach): Prefix absolute executable | |
1050 | paths with gdb_sysroot if set. | |
1051 | * NEWS: Mention that executable paths may be prepended | |
1052 | with sysroot. | |
1053 | ||
af1900b0 GB |
1054 | 2015-04-17 Gary Benson <gbenson@redhat.com> |
1055 | ||
1056 | * solist.h (exec_file_find): New declaration. | |
1057 | * solib.c (solib_find_1): New function, factored out from... | |
1058 | (solib_find): ...here. | |
1059 | (exec_file_find): New function. | |
1060 | ||
a10de604 GB |
1061 | 2015-04-17 Gary Benson <gbenson@redhat.com> |
1062 | ||
1063 | * gdbcore.h (exec_file_locate_attach): New declaration. | |
1064 | * exec.c (exec_file_locate_attach): New function, factored | |
1065 | out from... | |
1066 | * infcmd.c (attach_command_post_wait): ...here. | |
1067 | ||
92209ddf MF |
1068 | 2015-04-17 Mike Frysinger <vapier@gentoo.org> |
1069 | ||
1070 | * MAINTAINERS: Add myself for Blackfin/write-after-approval. | |
1071 | ||
8550d3b3 YQ |
1072 | 2015-04-16 Yao Qi <yao.qi@linaro.org> |
1073 | ||
1074 | * infrun.c (maybe_software_singlestep): Declare. | |
1075 | (displaced_step_fixup): Call maybe_software_singlestep. | |
1076 | ||
30b3dd9d DE |
1077 | 2015-04-15 Doug Evans <dje@google.com> |
1078 | ||
1079 | * psymtab.c (psym_expand_symtabs_matching): Add QUIT call. | |
1080 | ||
61d96d7e DE |
1081 | 2015-04-15 Doug Evans <dje@google.com> |
1082 | ||
1083 | * dwarf2read.c (dw2_expand_symtabs_matching): Add some QUIT calls. | |
1084 | ||
40d2f8d6 SM |
1085 | 2015-04-15 Simon Marchi <simon.marchi@ericsson.com> |
1086 | ||
1087 | * python/lib/gdb/command/unwinders.py: Add parentheses. | |
1088 | ||
6bbbba9b YQ |
1089 | 2015-04-15 Yao Qi <yao.qi@linaro.org> |
1090 | ||
1091 | * arm-linux-tdep.c (arm_linux_copy_svc): Update debug message. | |
1092 | ||
2bb2dcab YQ |
1093 | 2015-04-15 Yao Qi <yao.qi@linaro.org> |
1094 | ||
1095 | * arm-linux-tdep.c (arm_linux_copy_svc): Fix indentation. | |
1096 | ||
41f071ef YQ |
1097 | 2015-04-15 Yao Qi <yao.qi@linaro.org> |
1098 | ||
1099 | * arm-linux-tdep.c (arm_linux_cleanup_svc): Use | |
1100 | dsc->insn_size instead of 4. | |
1101 | ||
326a5c7e GB |
1102 | 2015-04-14 Gary Benson <gbenson@redhat.com> |
1103 | ||
1104 | * jit.c (mem_bfd_iovec_stat): Zero supplied buffer. | |
1105 | * minidebug.c (lzma_stat): Likewise. | |
1106 | * solib-spu.c (spu_bfd_iovec_stat): Likewise. | |
1107 | * spu-linux-nat.c (spu_bfd_iovec_stat): Likewise. | |
1108 | ||
dd177e81 SS |
1109 | 2015-04-13 Stan Shebs <stanshebs@google.com> |
1110 | ||
1111 | * MAINTAINERS: Update my email address. | |
1112 | ||
97de3545 JB |
1113 | 2015-04-13 John Baldwin <jhb@FreeBSD.org> |
1114 | ||
1115 | * amd64-tdep.c (amd64_target_description): New function. | |
1116 | * amd64-tdep.h: Export amd64_target_description and tdesc_amd64. | |
1117 | * amd64bsd-nat.c [PT_GETXSTATE_INFO]: New variable amd64bsd_xsave_len. | |
1118 | (amd64bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle | |
1119 | x86 extended save area. | |
1120 | (amd64bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise. | |
1121 | * amd64bsd-nat.h: Export amd64bsd_xsave_len. | |
1122 | * amd64fbsd-nat.c (amd64fbsd_read_description): New function. | |
1123 | (_initialize_amd64fbsd_nat): Set "to_read_description" to | |
1124 | "amd64fbsd_read_description". | |
1125 | * amd64fbsd-tdep.c (amd64fbsd_core_read_description): New function. | |
1126 | (amd64fbsd_supply_xstateregset): New function. | |
1127 | (amd64fbsd_collect_xstateregset): New function. | |
1128 | Add "amd64fbsd_xstateregset". | |
1129 | (amd64fbsd_iterate_over_regset_sections): New function. | |
1130 | (amd64fbsd_init_abi): Set "xsave_xcr0_offset" to | |
1131 | "I386_FBSD_XSAVE_XCR0_OFFSET". | |
1132 | Add "iterate_over_regset_sections" gdbarch method. | |
1133 | Add "core_read_description" gdbarch method. | |
1134 | * i386-tdep.c (i386_target_description): New function. | |
1135 | * i386-tdep.h: Export i386_target_description and tdesc_i386. | |
1136 | * i386bsd-nat.c [PT_GETXSTATE_INFO]: New variable i386bsd_xsave_len. | |
1137 | (i386bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle | |
1138 | x86 extended save area. | |
1139 | (i386bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise. | |
1140 | * i386bsd-nat.h: Export i386bsd_xsave_len. | |
1141 | * i386fbsd-nat.c (i386fbsd_read_description): New function. | |
1142 | (_initialize_i386fbsd_nat): Set "to_read_description" to | |
1143 | "i386fbsd_read_description". | |
1144 | * i386fbsd-tdep.c (i386fbsd_core_read_xcr0): New function. | |
1145 | (i386fbsd_core_read_description): New function. | |
1146 | (i386fbsd_supply_xstateregset): New function. | |
1147 | (i386fbsd_collect_xstateregset): New function. | |
1148 | Add "i386fbsd_xstateregset". | |
1149 | (i386fbsd_iterate_over_regset_sections): New function. | |
1150 | (i386fbsd4_init_abi): Set "xsave_xcr0_offset" to | |
1151 | "I386_FBSD_XSAVE_XCR0_OFFSET". | |
1152 | Add "iterate_over_regset_sections" gdbarch method. | |
1153 | Add "core_read_description" gdbarch method. | |
1154 | * i386fbsd-tdep.h: New file. | |
1155 | ||
4f45d445 JK |
1156 | 2015-04-11 Jan Kratochvil <jan.kratochvil@redhat.com> |
1157 | ||
1158 | * NEWS (Changes since GDB 7.9): Add removed -xdb. | |
1159 | * breakpoint.c (command_line_is_silent): Remove xdb_commands | |
1160 | conditional. | |
1161 | (_initialize_breakpoint): Remove xdb_commands for bc, ab, sb, db, ba | |
1162 | and lb. | |
1163 | * cli/cli-cmds.c (_initialize_cli_cmds): Remove xdb_commands for v and | |
1164 | va. | |
1165 | * cli/cli-decode.c (find_command_name_length): Remove xdb_commands | |
1166 | conditional. | |
1167 | * defs.h (xdb_commands): Remove declaration. | |
1168 | * f-valprint.c (_initialize_f_valprint): Remove xdb_commands for lc. | |
1169 | * guile/scm-cmd.c (command_classes): Remove xdb from comment. | |
1170 | * infcmd.c (run_no_args_command, go_command): Remove. | |
1171 | (_initialize_infcmd): Remove xdb_commands for S, go, g, R and lr. | |
1172 | * infrun.c (xdb_handle_command): Remove. | |
1173 | (_initialize_infrun): Remove xdb_commands for lz and z. | |
1174 | * main.c (xdb_commands): Remove variable. | |
1175 | (captured_main): Remove "xdb" from long_options. | |
1176 | (print_gdb_help): Remove --xdb from help. | |
1177 | * python/py-cmd.c (gdbpy_initialize_commands): Remove xdb from comment. | |
1178 | * source.c (_initialize_source): Remove xdb_commands for D, ld, / and ?. | |
1179 | * stack.c (backtrace_full_command, args_plus_locals_info) | |
1180 | (current_frame_command): Remove. | |
1181 | (_initialize_stack): Remove xdb_commands for t, T and l. | |
1182 | * symtab.c (_initialize_symtab): Remove xdb_commands for lf and lg. | |
1183 | * thread.c (_initialize_thread): Remove xdb_commands condition. | |
1184 | * tui/tui-layout.c (tui_toggle_layout_command) | |
1185 | (tui_toggle_split_layout_command, tui_handle_xdb_layout): Remove. | |
1186 | (_initialize_tui_layout): Remove xdb_commands for td and ts. | |
1187 | * tui/tui-regs.c (tui_scroll_regs_forward_command) | |
1188 | (tui_scroll_regs_backward_command): Remove. | |
1189 | (_initialize_tui_regs): Remove xdb_commands for fr, gr, sr, +r and -r. | |
1190 | * tui/tui-win.c (tui_xdb_set_win_height_command): Remove. | |
1191 | (_initialize_tui_win): Remove xdb_commands for U and w. | |
1192 | * utils.c (pagination_on_command, pagination_off_command): Remove. | |
1193 | (initialize_utils): Remove xdb_commands for am and sm. | |
1194 | ||
cb71640d PA |
1195 | 2015-04-10 Pedro Alves <palves@redhat.com> |
1196 | ||
1197 | * infrun.c (displaced_step_fixup): Switch to the event ptid | |
1198 | earlier. If the thread stopped for a watchpoint and the | |
1199 | target/arch has non-continuable watchpoints, cancel the displaced | |
1200 | step. | |
1201 | (resume): Don't start a displaced step if in-line step-over info | |
1202 | is valid. | |
1203 | ||
8f572e5c PA |
1204 | 2015-04-10 Pedro Alves <palves@redhat.com> |
1205 | ||
1206 | * infrun.c (displaced_step_in_progress): New function. | |
1207 | (do_target_resume): Advise target to report all signals if | |
1208 | displaced stepping. | |
1209 | ||
8d707a12 PA |
1210 | 2015-04-10 Pedro Alves <palves@redhat.com> |
1211 | ||
1212 | PR gdb/18216 | |
1213 | * infrun.c (process_event_stop_test): Don't assume a step-resume | |
1214 | is set if tp->stepped_breakpoint is true. | |
1215 | ||
ef713951 YQ |
1216 | 2015-04-10 Yao Qi <yao.qi@linaro.org> |
1217 | ||
1218 | * arm-tdep.c (install_alu_reg): Update comment. | |
1219 | (thumb_copy_alu_reg): Remove local variable rn. Update | |
1220 | debugging message. Use r2 instead of r1 in the modified | |
1221 | instruction. | |
1222 | ||
906d60cf PA |
1223 | 2015-04-10 Pedro Alves <palves@redhat.com> |
1224 | ||
1225 | PR gdb/13858 | |
1226 | * amd64-linux-tdep.c (amd64_linux_init_abi_common): Install | |
1227 | linux_displaced_step_location as gdbarch_displaced_step_location | |
1228 | hook. | |
1229 | * arm-linux-tdep.c (arm_linux_init_abi): Likewise. | |
1230 | * i386-linux-tdep.c (i386_linux_init_abi): Likewise. | |
1231 | * linux-tdep.c (linux_displaced_step_location): New function, | |
1232 | based on ppc_linux_displaced_step_location. | |
1233 | * linux-tdep.h (linux_displaced_step_location): New declaration. | |
1234 | * ppc-linux-tdep.c (ppc_linux_entry_point_addr): Delete. | |
1235 | (ppc_linux_inferior_created, ppc_linux_displaced_step_location): | |
1236 | Delete. | |
1237 | (ppc_linux_init_abi): Install linux_displaced_step_location as | |
1238 | gdbarch_displaced_step_location hook, even without Cell/B.E.. | |
1239 | (_initialize_ppc_linux_tdep): Don't install | |
1240 | ppc_linux_inferior_created as inferior_created observer. | |
1241 | * s390-linux-tdep.c (s390_gdbarch_init): Install | |
1242 | linux_displaced_step_location as gdbarch_displaced_step_location | |
1243 | hook. | |
1244 | ||
7823a941 GB |
1245 | 2015-04-09 Gary Benson <gbenson@redhat.com> |
1246 | ||
1247 | * common/common-remote-fileio.h: Rename to... | |
1248 | * common/fileio.h: ...this. Update all references. | |
1249 | (remote_fileio_to_fio_error): Rename to... | |
1250 | (host_to_fileio_error): ...this. | |
1251 | (remote_fileio_to_be): Rename to... | |
1252 | (host_to_bigendian): ...this. Update all callers. | |
1253 | (remote_fileio_to_fio_uint): Rename to... | |
1254 | (host_to_fileio_uint): ...this. Update all callers. | |
1255 | (remote_fileio_to_fio_time): Rename to... | |
1256 | (host_to_fileio_time): ...this. Update all callers. | |
1257 | (remote_fileio_to_fio_stat): Rename to... | |
1258 | (host_to_fileio_stat): ...this. | |
1259 | Update all references. | |
1260 | * common/common-remote-fileio.c: Rename to... | |
1261 | * common/fileio.c: ...this. Update all references. | |
1262 | (remote_fileio_to_fio_error): Rename to... | |
1263 | (host_to_fileio_error): ...this. Update all callers. | |
1264 | (remote_fileio_mode_to_target): Rename to... | |
1265 | (fileio_mode_pack): ...this. Update all callers. | |
1266 | (remote_fileio_to_fio_mode): Rename to... | |
1267 | (host_to_fileio_mode): ...this. Update all callers. | |
1268 | (remote_fileio_to_fio_ulong): Rename to... | |
1269 | (host_to_fileio_ulong): ...this. Update all callers. | |
1270 | (remote_fileio_to_fio_stat): Rename to... | |
1271 | (host_to_fileio_stat): ...this. Update all callers. | |
1272 | ||
f2983cc3 AW |
1273 | 2015-04-09 Andy Wingo <wingo@igalia.com> |
1274 | ||
1275 | * guile/scm-frame.c (gdbscm_frame_read_register): New function. | |
1276 | (frame_functions): Bind gdbscm_frame_read_register to | |
1277 | frame-read-register. | |
1278 | * guile/lib/gdb.scm (frame-read-register): Export. | |
1279 | ||
b88bb450 GB |
1280 | 2015-04-09 Gary Benson <gbenson@redhat.com> |
1281 | ||
1282 | * common/common-remote-fileio.h (remote_fileio_to_fio_error): | |
1283 | New declaration. | |
1284 | * common/common-remote-fileio.c (remote_fileio_to_fio_error): | |
1285 | New function, factored out the named functions below. | |
1286 | * inf-child.c (gdb/fileio.h): Remove include. | |
1287 | (common-remote-fileio.h): New include. | |
1288 | (inf_child_errno_to_fileio_error): Remove function. Update | |
1289 | all callers to use remote_fileio_to_fio_error. | |
1290 | * remote-fileio.c (remote_fileio_errno_to_target): Likewise. | |
1291 | ||
2f2680f3 AW |
1292 | 2015-04-09 Andy Wingo <wingo@igalia.com> |
1293 | ||
1294 | * MAINTAINERS (Write After Approval): Add Andy Wingo. | |
1295 | ||
5a2d4533 L |
1296 | 2015-04-09 H.J. Lu <hongjiu.lu@intel.com> |
1297 | ||
1298 | * acinclude.m4: (GDB_AC_CHECK_BFD): Set ZLIBDIR with $zlibdir. | |
1299 | Replace $zlibdir with $ZLIBDIR in LDFLAGS. | |
1300 | * configure: Regenerated. | |
1301 | ||
421693b0 PA |
1302 | 2015-04-09 Pedro Alves <palves@redhat.com> |
1303 | ||
1304 | * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strtok_r. | |
1305 | * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/strtok_r.m4. | |
1306 | * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4: Regenerate. | |
1307 | * gnulib/import/Makefile.am: Update. | |
1308 | * gnulib/import/Makefile.in: Update. | |
1309 | * gnulib/import/m4/gnulib-cache.m4: Update. | |
1310 | * gnulib/import/m4/gnulib-comp.m4: Update. | |
1311 | * gnulib/import/m4/strtok_r.m4: New file. | |
1312 | * gnulib/import/strtok_r.c: New file. | |
1313 | ||
f543dc83 PA |
1314 | 2015-04-09 Pedro Alves <palves@redhat.com> |
1315 | ||
1316 | * gnulib/update-gnulib.sh (aclocal version check): Filter out | |
1317 | "called too early to check prototype". | |
1318 | ||
6d62641c SDJ |
1319 | 2015-04-08 Sergio Durigan Junior <sergiodj@redhat.com> |
1320 | ||
1321 | PR python/16699 | |
1322 | * python/py-cmd.c (cmdpy_completer_helper): Adjust function to not | |
1323 | use a caching mechanism. Adjust comments and code to reflect | |
1324 | that. Replace 'sizeof' by 'strlen' when fetching 'wordobj'. | |
1325 | (cmdpy_completer_handle_brkchars): Adjust call to | |
1326 | cmdpy_completer_helper. Call Py_XDECREF for 'resultobj'. | |
1327 | (cmdpy_completer): Likewise. | |
1328 | ||
85558555 YQ |
1329 | 2015-04-08 Yao Qi <yao.qi@linaro.org> |
1330 | ||
1331 | * spu-tdep.c (spu_gdbarch_init): Don't call | |
1332 | set_gdbarch_cannot_step_breakpoint. | |
1333 | ||
d249a14a SDJ |
1334 | 2015-04-07 Sergio Durigan Junior <sergiodj@redhat.com> |
1335 | ||
1336 | * linux-tdep.c (decode_vmflags): Initialize 'saveptr'. | |
1337 | ||
8a06aea7 PA |
1338 | 2015-04-07 Pedro Alves <palves@redhat.com> |
1339 | ||
1340 | * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): Rename to ... | |
1341 | (ALL_THREADS_SAFE): ... this, and don't skip exited threads. | |
1342 | (delete_exited_threads): New declaration. | |
1343 | * infrun.c (follow_exec): Use ALL_THREADS_SAFE. | |
1344 | * linux-nat.c (linux_nat_update_thread_list): New function. | |
1345 | (linux_nat_add_target): Install it. | |
1346 | * remote.c (remote_update_thread_list): Use ALL_THREADS_SAFE. | |
1347 | * thread.c (prune_threads): Use ALL_THREADS_SAFE. | |
1348 | (delete_exited_threads): New function. | |
1349 | ||
d9b67d9f PA |
1350 | 2015-04-07 Pedro Alves <pedro@codesourcery.com> |
1351 | ||
1352 | * infrun.c (resume) <displaced stepping debug output>: Get the | |
1353 | leader thread's regcache, not resume_ptid's. | |
1354 | ||
2c26b84f DE |
1355 | 2015-04-06 Doug Evans <xdje42@gmail.com> |
1356 | ||
1357 | * symtab.c (hash_symbol_entry): Hash STRUCT_DOMAIN symbols as | |
1358 | VAR_DOMAIN. | |
1359 | (symbol_cache_lookup): Clarify use of bsc_ptr, slot_ptr parameters. | |
1360 | Include symbol domain in debugging output. | |
1361 | ||
7a85168d PA |
1362 | 2015-04-06 Pedro Alves <palves@redhat.com> |
1363 | Bernd Edlinger <bernd.edlinger@hotmail.de> | |
1364 | ||
1365 | * configure.ac: Remove the mingw32-specific stub-termcap.o | |
1366 | fallback, and instead fallback to the stub termcap on all hosts. | |
1367 | * configure: Regenerate. | |
1368 | * stub-termcap.c [!__MINGW32__] (PC, BC, UP): Define as weak | |
1369 | symbols. | |
1370 | ||
25755e2b PMR |
1371 | 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com> |
1372 | ||
1373 | * gdbtypes.c (is_dynamic_type_internal): Remove the unused | |
1374 | "top_level" parameter. | |
1375 | (resolve_dynamic_type_internal): Remove the unused "top_level" | |
1376 | parameter. Update call to is_dynamic_type_internal. | |
1377 | (is_dynamic_type): Update call to is_dynamic_type_internal. | |
1378 | (resolve_dynamic_range): Update call to | |
1379 | resolve_dynamic_type_internal. | |
1380 | (resolve_dynamic_union): Likewise. | |
1381 | (resolve_dynamic_struct): Likewise. | |
1382 | (resolve_dynamic_type): Likewise. | |
1383 | ||
961f4160 PMR |
1384 | 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com> |
1385 | ||
1386 | * gdbtypes.c (is_dynamic_type_internal): Remove special handling of | |
1387 | TYPE_CODE_REF types so that they are not considered as dynamic | |
1388 | depending on the referenced type. | |
1389 | (resolve_dynamic_type_internal): Likewise. | |
1390 | ||
39f3de7c L |
1391 | 2015-04-02 H.J. Lu <hongjiu.lu@intel.com> |
1392 | ||
1393 | * Makefile.in (top_srcdir): New. | |
1394 | * configure: Regenerated. | |
1395 | ||
599bd15c GB |
1396 | 2015-04-02 Gary Benson <gbenson@redhat.com> |
1397 | ||
1398 | * NEWS: Announce the new default sysroot of "target:". | |
1399 | ||
fed040c6 GB |
1400 | 2015-04-02 Gary Benson <gbenson@redhat.com> |
1401 | ||
1402 | * main.c (captured_main): Set gdb_sysroot to "target:" | |
1403 | if not otherwise set. | |
1404 | ||
64c0b5de GB |
1405 | 2015-04-02 Gary Benson <gbenson@redhat.com> |
1406 | ||
1407 | * exec.c (exec_file_attach): Support "target:" filenames. | |
1408 | ||
b57fbfba GB |
1409 | 2015-04-02 Gary Benson <gbenson@redhat.com> |
1410 | ||
1411 | * solib.c (solib_find): Strip "target:" prefix from sysroot | |
1412 | if accessing local files. | |
1413 | ||
97a41605 GB |
1414 | 2015-04-02 Gary Benson <gbenson@redhat.com> |
1415 | ||
1416 | * symfile.c (symfile_bfd_open): Reorder to remove duplicated | |
1417 | checks and error messages. | |
1418 | ||
2938e6cf GB |
1419 | 2015-04-02 Gary Benson <gbenson@redhat.com> |
1420 | ||
1421 | * remote.h (REMOTE_SYSROOT_PREFIX): Remove definition. | |
1422 | (remote_filename_p): Remove declaration. | |
1423 | (remote_bfd_open): Likewise. | |
1424 | * remote.c (remote_bfd_iovec_open): Remove function. | |
1425 | (remote_bfd_iovec_close): Likewise. | |
1426 | (remote_bfd_iovec_pread): Likewise. | |
1427 | (remote_bfd_iovec_stat): Likewise. | |
1428 | (remote_filename_p): Likewise. | |
1429 | (remote_bfd_open): Likewise. | |
1430 | * symfile.h (gdb_bfd_open_maybe_remote): Remove declaration. | |
1431 | * symfile.c (separate_debug_file_exists): Use gdb_bfd_open. | |
1432 | (gdb_bfd_open_maybe_remote): Remove function. | |
1433 | (symfile_bfd_open): Replace remote filename check with | |
1434 | target filename check. | |
1435 | (reread_symbols): Use gdb_bfd_open. | |
1436 | * build-id.c (gdbcore.h): New include. | |
1437 | (build_id_to_debug_bfd): Use gdb_bfd_open. | |
1438 | * infcmd.c (attach_command_post_wait): Remove remote filename | |
1439 | check. | |
1440 | * solib.c (solib_find): Replace remote-specific handling with | |
1441 | target-specific handling. Update comments where necessary. | |
1442 | (solib_bfd_open): Replace remote-specific handling with | |
1443 | target-specific handling. | |
1444 | (gdb_sysroot_changed): New function. | |
1445 | (_initialize_solib): Call the above when gdb_sysroot changes. | |
1446 | * windows-tdep.c (gdbcore.h): New include. | |
1447 | (windows_xfer_shared_library): Use gdb_bfd_open. | |
1448 | ||
f08e97fe GB |
1449 | 2015-04-02 Gary Benson <gbenson@redhat.com> |
1450 | ||
1451 | * gdb/gdb_bfd.h (TARGET_SYSROOT_PREFIX): New definition. | |
1452 | (is_target_filename): New declaration. | |
1453 | (gdb_bfd_has_target_filename): Likewise. | |
1454 | (gdb_bfd_open): Update documentation comment. | |
1455 | * gdb_bfd.c (target.h): New include. | |
1456 | (gdb/fileio.h): Likewise. | |
1457 | (is_target_filename): New function. | |
1458 | (gdb_bfd_has_target_filename): Likewise. | |
1459 | (fileio_errno_to_host): Likewise. | |
1460 | (gdb_bfd_iovec_fileio_open): Likewise. | |
1461 | (gdb_bfd_iovec_fileio_pread): Likewise. | |
1462 | (gdb_bfd_iovec_fileio_close): Likewise. | |
1463 | (gdb_bfd_iovec_fileio_fstat): Likewise. | |
1464 | (gdb_bfd_open): Use target fileio to access paths prefixed | |
1465 | with "target:" where necessary. | |
1466 | ||
4bd7dc42 GB |
1467 | 2015-04-02 Gary Benson <gbenson@redhat.com> |
1468 | ||
1469 | * target.h (struct target_ops) <to_filesystem_is_local>: | |
1470 | New field. | |
1471 | (target_filesystem_is_local): New macro. | |
1472 | * target-delegates.c: Regenerate. | |
1473 | * remote.c (remote_filesystem_is_local): New function. | |
1474 | (init_remote_ops): Initialize to_filesystem_is_local. | |
1475 | ||
9b15c1f0 GB |
1476 | 2015-04-02 Gary Benson <gbenson@redhat.com> |
1477 | ||
1478 | * target.h (struct target_ops) <to_fileio_fstat>: New field. | |
1479 | (target_fileio_fstat): New declaration. | |
1480 | * target.c (target_fileio_fstat): New function. | |
1481 | * inf-child.c (inf_child_fileio_fstat): Likewise. | |
1482 | (inf_child_target): Initialize to_fileio_fstat. | |
1483 | * remote.c (init_remote_ops): Likewise. | |
1484 | ||
d11916aa SS |
1485 | 2015-04-01 Sasha Smundak <asmundak@google.com> |
1486 | ||
1487 | * Makefile.in (SUBDIR_PYTHON_OBJS): Add py-unwind.o. | |
1488 | (SUBDIR_PYTHON_SRCS): Add py-unwind.c. | |
1489 | (py-unwind.o): New recipe. | |
1490 | * NEWS: mention Python frame unwinding. | |
1491 | * data-directory/Makefile.in (PYTHON_FILE_LIST): Add | |
1492 | gdb/unwinder.py and gdb/command/unwinder.py | |
1493 | * python/lib/gdb/__init__.py (packages): Add frame_unwinders | |
1494 | list. | |
1495 | (execute_unwinders): New function. | |
1496 | * python/lib/gdb/command/unwinders.py: New file. | |
1497 | * python/lib/gdb/unwinder.py: New file. | |
1498 | * python/py-objfile.c (objfile_object): Add frame_unwinders field. | |
1499 | (objfpy_dealloc): Decrement frame_unwinders reference count. | |
1500 | (objfpy_initialize): Create frame_unwinders list. | |
1501 | (objfpy_get_frame_unwinders): New function. | |
1502 | (objfpy_set_frame_unwinders): Ditto. | |
1503 | (objfile_getset): Add frame_unwinders attribute to Objfile. | |
1504 | * python/py-progspace.c (pspace_object): Add frame_unwinders field. | |
1505 | (pspy_dealloc): Decrement frame_unwinders reference count. | |
1506 | (pspy_initialize): Create frame_unwinders list. | |
1507 | (pspy_get_frame_unwinders): New function. | |
1508 | (pspy_set_frame_unwinders): Ditto. | |
1509 | (pspy_getset): Add frame_unwinders attribute to gdb.Progspace. | |
1510 | * python/py-unwind.c: New file. | |
1511 | * python/python-internal.h (pspy_get_name_unwinders): New prototype. | |
1512 | (objpy_get_frame_unwinders): New prototype. | |
1513 | (gdbpy_initialize_unwind): New prototype. | |
1514 | * python/python.c (gdbpy_apply_type_printers): Call | |
1515 | gdbpy_initialize_unwind. | |
1516 | ||
6b403daa PA |
1517 | 2015-04-01 Pedro Alves <palves@redhat.com> |
1518 | ||
1519 | * infrun.c (resume): Check currently_stepping after clearing | |
1520 | stepped_breakpoint, not before. | |
1521 | ||
1176ecec PA |
1522 | 2015-04-01 Pedro Alves <palves@redhat.com> |
1523 | ||
1524 | * infrun.c (print_target_wait_results): Print all the ptid | |
1525 | elements. | |
1526 | ||
de1fe8c8 PA |
1527 | 2015-04-01 Pedro Alves <palves@redhat.com> |
1528 | ||
1529 | * infrun.c (keep_going): Also discard cleanups if inserting | |
1530 | breakpoints fails. | |
1531 | ||
e6f5c25b PA |
1532 | 2015-04-01 Pedro Alves <palves@redhat.com> |
1533 | ||
1534 | * infrun.c (wait_for_inferior): Install the | |
1535 | finish_thread_state_cleanup cleanup across the whole function, not | |
1536 | just around handle_inferior_event. | |
1537 | ||
1ac806b8 PA |
1538 | 2015-04-01 Pedro Alves <palves@redhat.com> |
1539 | ||
1540 | * infrun.c (resume) <step past permanent breakpoint>: Use | |
1541 | do_target_resume. | |
1542 | ||
2ee52aa4 PA |
1543 | 2015-04-01 Pedro Alves <palves@redhat.com> |
1544 | ||
1545 | * linux-nat.c (linux_handle_extended_wait): Always call set_running. | |
1546 | ||
5445da1b PMR |
1547 | 2015-04-01 Pierre-Marie de Rodat <derodat@adacore.com> |
1548 | ||
1549 | * MAINTAINERS (Write After Approval): Add "Pierre-Marie de Rodat". | |
1550 | ||
4eec2deb PA |
1551 | 2015-04-01 Pedro Alves <palves@redhat.com> |
1552 | ||
1553 | * linux-thread-db.c (record_thread): Readd the thread to gdb's | |
1554 | list if it was marked exited. | |
1555 | ||
afa59b79 L |
1556 | 2015-04-01 H.J. Lu <hongjiu.lu@intel.com> |
1557 | ||
1558 | * configure: Regenerated. | |
1559 | ||
df8411da SDJ |
1560 | 2015-03-31 Sergio Durigan Junior <sergiodj@redhat.com> |
1561 | Jan Kratochvil <jan.kratochvil@redhat.com> | |
1562 | Oleg Nesterov <oleg@redhat.com> | |
1563 | ||
1564 | PR corefiles/16092 | |
1565 | * linux-tdep.c: Include 'gdbcmd.h' and 'gdb_regex.h'. | |
1566 | New enum identifying the various options of the coredump_filter | |
1567 | file. | |
1568 | (struct smaps_vmflags): New struct. | |
1569 | (use_coredump_filter): New variable. | |
1570 | (decode_vmflags): New function. | |
1571 | (mapping_is_anonymous_p): Likewise. | |
1572 | (dump_mapping_p): Likewise. | |
1573 | (linux_find_memory_regions_full): New variables | |
1574 | 'coredumpfilter_name', 'coredumpfilterdata', 'pid', 'filterflags'. | |
1575 | Removed variable 'modified'. Read /proc/<PID>/smaps file; improve | |
1576 | parsing of its information. Implement memory mapping filtering | |
1577 | based on its contents. | |
1578 | (show_use_coredump_filter): New function. | |
1579 | (_initialize_linux_tdep): New command 'set use-coredump-filter'. | |
1580 | * NEWS: Mention the possibility of using the | |
1581 | '/proc/PID/coredump_filter' file when generating a corefile. | |
1582 | Mention new command 'set use-coredump-filter'. | |
1583 | ||
416f679e SDJ |
1584 | 2015-03-31 Sergio Durigan Junior <sergiodj@redhat.com> |
1585 | ||
1586 | * solib-svr4.c (solib_svr4_r_ldsomap): Catch possible exception by | |
1587 | read_memory_unsigned_integer. | |
1588 | ||
711a72d3 L |
1589 | 2015-03-31 H.J. Lu <hongjiu.lu@intel.com> |
1590 | ||
1591 | * Makefile.in (ZLIB): New. | |
1592 | (ZLIBINC): Likewise. | |
1593 | (INTERNAL_CFLAGS_BASE): Add $(ZLIBINC). | |
1594 | (CLIBS): Add $(ZLIB). | |
1595 | * acinclude.m4: (GDB_AC_CHECK_BFD): Add $zlibdir to LDFLAGS. | |
1596 | Add -lz to LIBS. | |
1597 | * gdb_bfd.c: Don't check HAVE_ZLIB_H to include <zlib.h>. | |
1598 | * top.c (print_gdb_configuration): Remove --with-zlib and | |
1599 | --without-zlib. | |
1600 | * config.in: Regenerated. | |
1601 | * configure: Likewise. | |
1602 | ||
d33279b3 AT |
1603 | 2015-03-31 Antoine Tremblay <antoine.tremblay@ericsson.com> |
1604 | ||
1605 | * NEWS: Mention info os cpus support. | |
1606 | * gdb/nat/linux-osdata.c (linux_xfer_osdata_cpus): New function. | |
1607 | (struct osdata_type): Add cpus entry, reorder the entries in | |
1608 | alphabetical order. | |
1609 | ||
71b30f27 MK |
1610 | 2015-03-31 Matthias Klose <doko@ubuntu.com> |
1611 | ||
1612 | * compile/compile.c (compile_to_object): Allow triplets with or | |
1613 | without vendor set. | |
1614 | ||
13ce9222 DE |
1615 | 2015-03-30 Doug Evans <dje@google.com> |
1616 | ||
1617 | PR c++/18141 | |
1618 | * cp-namespace.c (cp_search_static_and_baseclasses): Always look for | |
1619 | klass in VAR_DOMAIN. | |
1620 | ||
20f796c9 GB |
1621 | 2015-03-30 Gary Benson <gbenson@redhat.com> |
1622 | ||
1623 | * remote.c (remote_mourn_1): Remove function. Update all callers | |
1624 | to use remote_mourn. | |
1625 | (extended_remote_mourn_1): Remove function. Update all callers | |
1626 | to use extended_remote_mourn. | |
1627 | (extended_remote_attach_1): Remove function. Update all callers | |
1628 | to use extended_remote_attach. | |
1629 | ||
49d45b20 JB |
1630 | 2015-03-28 James Bowman <james.bowman@ftdichip.com> |
1631 | ||
1632 | * Makefile.in (ALL_TARGET_OBS): Add ft32-tdep.o. | |
1633 | (HFILES_NO_SRCDIR): Add ft32-tdep.h. | |
1634 | (ALLDEPFILES): Add ft32-tdep.c. | |
1635 | * configure.tgt: Add FT32 entry. | |
1636 | * ft32-tdep.c: New file, FT32 target-dependent code. | |
1637 | * ft32-tdep.h: New file, FT32 target-dependent code. | |
1638 | ||
1c4ff080 JK |
1639 | 2015-03-27 Jan Kratochvil <jan.kratochvil@redhat.com> |
1640 | ||
1641 | Revert: | |
1642 | 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com> | |
1643 | Code cleanup. | |
1644 | * printcmd.c (print_command_1): Move expr variable scope. | |
1645 | ||
79498702 JB |
1646 | 2015-03-27 Joel Brobecker <brobecker@adacore.com> |
1647 | ||
1648 | * dtrace-probe.c (dtrace_process_dof_probe): Initialize expr to NULL. | |
1649 | ||
ce9c0ca1 AK |
1650 | 2015-03-27 Andrzej Kaczmarek <andrzej.kaczmarek@tieto.com> |
1651 | ||
1652 | * gdb_bfd.c (gdb_bfd_section_index): Fix off-by-one for special | |
1653 | sections. | |
1654 | ||
429e1e81 JB |
1655 | 2015-03-26 Joel Brobecker <brobecker@adacore.com> |
1656 | ||
1657 | * dtrace-probe.c (dtrace_process_dof_probe): Contain any | |
1658 | exception raised while parsing the probe arguments. | |
1659 | Force parsing to be done using the C language parser. | |
1660 | * expression.h (parse_expression_with_language): Declare. | |
1661 | * parse.c (parse_expression_with_language): New function. | |
1662 | ||
4593441b JT |
1663 | 2015-03-26 Jon Turney <jon.turney@dronecode.org.uk> |
1664 | ||
1665 | * MAINTAINERS (Write After Approval): Add "Jon Turney". | |
1666 | ||
ff908ebf AW |
1667 | 2015-03-26 Andy Wingo <wingo@igalia.com> |
1668 | ||
1669 | PR symtab/18148 | |
1670 | * dwarf2read.c (struct partial_die_info): Add has_const_value | |
1671 | member. | |
1672 | (add_partial_symbol): Don't punt on symbols that have const_value | |
1673 | attributes. | |
1674 | (read_partial_die): Detect DW_AT_const_value. | |
1675 | ||
f30d5c78 JK |
1676 | 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com> |
1677 | ||
1678 | Code cleanup. | |
1679 | * printcmd.c (print_command_1): Move expr variable scope. | |
1680 | ||
8d89f51a JK |
1681 | 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com> |
1682 | ||
1683 | Code cleanup. | |
1684 | * printcmd.c (validate_format): Make the parameter cmdname const. | |
1685 | ||
0b736949 DB |
1686 | 2015-03-26 Don Breazeal <donb@codesourcery.com> |
1687 | ||
1688 | * remote.c (_initialize_remote): Update comment. | |
1689 | ||
20d35291 PA |
1690 | 2015-03-26 Pedro Alves <palves@redhat.com> |
1691 | Jon TURNEY <jon.turney@dronecode.org.uk> | |
1692 | ||
1693 | * coffread.c (coff_symfile_read): When constructing the name of an | |
1694 | import stub symbol from import symbol for amd64, only skip the | |
1695 | char after _imp_ if the target is underscored (like i386) and the | |
1696 | char is indeed the target's leading char. | |
1697 | ||
6a3753b3 PA |
1698 | 2015-03-25 Pedro Alves <palves@redhat.com> |
1699 | ||
1700 | * target.h <to_async>: Replace 'callback' and 'context' parameters | |
1701 | with boolean 'enable' parameter. | |
1702 | (target_async): Replace CALLBACK and CONTEXT parameters with | |
1703 | boolean ENABLE parameter. | |
1704 | * inf-loop.c (inferior_event_handler): Adjust. | |
1705 | * linux-nat.c (linux_nat_attach, linux_nat_resume) | |
1706 | (linux_nat_resume): Adjust. | |
1707 | (async_client_callback, async_client_context): Delete. | |
1708 | (handle_target_event): Call inferior_event_handler directly. | |
1709 | (linux_nat_async): Replace 'callback' and 'context' parameters | |
1710 | with boolean 'enable' parameter. Adjust. Remove references to | |
1711 | async_client_callback and async_client_context. | |
1712 | (linux_nat_close): Adjust. | |
1713 | * record-btrace.c (record_btrace_async): Replace 'callback' and | |
1714 | 'context' parameters with boolean 'enable' parameter. Adjust. | |
1715 | (record_btrace_resume): Adjust. | |
1716 | * record-full.c (record_full_async): Replace 'callback' and | |
1717 | 'context' parameters with boolean 'enable' parameter. Adjust. | |
1718 | (record_full_resume, record_full_core_resume): Adjust. | |
1719 | * remote.c (struct remote_state) <async_client_callback, | |
1720 | async_client_context>: Delete fields. | |
1721 | (remote_start_remote, extended_remote_attach_1, remote_resume) | |
1722 | (extended_remote_create_inferior): Adjust. | |
1723 | (remote_async_serial_handler): Call inferior_event_handler | |
1724 | directly. | |
1725 | (remote_async): Replace 'callback' and 'context' parameters with | |
1726 | boolean 'enable' parameter. Adjust. | |
1727 | * top.c (gdb_readline_wrapper_cleanup, gdb_readline_wrapper): | |
1728 | Adjust. | |
1729 | * target-delegates.c: Regenerate. | |
1730 | ||
1c4b552b GB |
1731 | 2015-03-25 Gary Benson <gbenson@redhat.com> |
1732 | Pedro Alves <palves@redhat.com> | |
1733 | ||
1734 | * target.c (fileio_ft_t): New typedef, define object vector. | |
1735 | (fileio_fhandles): New static variable. | |
1736 | (is_closed_fileio_fh): New macro. | |
1737 | (lowest_closed_fd): New static variable. | |
1738 | (acquire_fileio_fd): New function. | |
1739 | (release_fileio_fd): Likewise. | |
1740 | (fileio_fd_to_fh): New macro. | |
1741 | (target_fileio_open): Wrap the file descriptor on success. | |
1742 | (target_fileio_pwrite): Updated to use wrapped file descriptor. | |
1743 | (target_fileio_pread): Likewise. | |
1744 | (target_fileio_close): Likewise. | |
1745 | ||
a25d8bf9 PA |
1746 | 2015-03-24 Pedro Alves <palves@redhat.com> |
1747 | ||
1748 | * thread.c (thread_apply_all_command): Take exited threads into | |
1749 | account. | |
1750 | ||
44a1ee51 PA |
1751 | 2015-03-24 Pedro Alves <palves@redhat.com> |
1752 | ||
1753 | * infrun.c (resume, proceed): Mention | |
1754 | switch_back_to_stepped_thread, not switch_back_to_stepping. | |
1755 | ||
f3263aa4 PA |
1756 | 2015-03-24 Pedro Alves <palves@redhat.com> |
1757 | ||
1758 | * infrun.c (user_visible_resume_ptid): Rewrite going from | |
1759 | most-locked to unlocked instead of the opposite. Move comment ... | |
1760 | * infrun.h (user_visible_resume_ptid): ... here. | |
1761 | ||
2bf6fb9d PA |
1762 | 2015-03-24 Pedro Alves <palves@redhat.com> |
1763 | ||
1764 | * linux-nat.c (linux_nat_resume): Output debug logs before trying | |
1765 | to resume the event lwp. Use the lwp's ptid instead of the passed | |
1766 | in (maybe wildcard) ptid. | |
1767 | (stop_wait_callback): Tweak debug log output. | |
1768 | (check_stopped_by_breakpoint): Tweak debug log output. Also dump | |
1769 | TRAP_TRACE. | |
1770 | (linux_nat_filter_event): In debug output, distinguish a | |
1771 | resume_stop SIGSTOP from a delayed SIGSTOP. Output debug logs | |
1772 | before trying to resume the lwp. | |
1773 | ||
283a9958 JB |
1774 | 2015-03-24 Joel Brobecker <brobecker@adacore.com> |
1775 | ||
1776 | * gdbtypes.h (struct dynamic_prop_list) <prop>: Remove | |
1777 | pointer indirection. | |
1778 | * gdbtypes.c (get_dyn_prop): Adjust, following change above. | |
1779 | (add_dyn_prop, copy_dynamic_prop_list): Likewise. | |
1780 | ||
93a8e227 JB |
1781 | 2015-03-24 Joel Brobecker <brobecker@adacore.com> |
1782 | ||
1783 | * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_DATA_LOCATION>: | |
1784 | Renames DYN_ATTR_DATA_LOCATION. | |
1785 | (TYPE_DATA_LOCATION): Use DYN_PROP_DATA_LOCATION instead of | |
1786 | DYN_ATTR_DATA_LOCATION. | |
1787 | * dwarf2read.c (set_die_type): Use DYN_PROP_DATA_LOCATION | |
1788 | instead of DYN_ATTR_DATA_LOCATION. | |
1789 | ||
64ce06e4 PA |
1790 | 2015-03-24 Pedro Alves <palves@redhat.com> |
1791 | ||
1792 | * breakpoint.c (until_break_command): Adjust call to proceed. | |
1793 | * gdbthread.h (struct thread_control_state) <stepping_command>: | |
1794 | New field. | |
1795 | * infcall.c (run_inferior_call): Adjust call to proceed. | |
1796 | * infcmd.c (run_command_1, proceed_thread_callback, continue_1): | |
1797 | Adjust calls to proceed. | |
1798 | (set_step_frame): Set the current thread's step_start_function | |
1799 | here. | |
1800 | (step_once): Adjust calls to proceed. | |
1801 | (jump_command, signal_command, until_next_command) | |
1802 | (finish_backward, finish_forward, proceed_after_attach_callback) | |
1803 | (attach_command_post_wait): Adjust calls to proceed. | |
1804 | * infrun.c (proceed_after_vfork_done): Adjust call to proceed. | |
1805 | (do_target_resume): New function, factored out from ... | |
1806 | (resume): ... here. Remove 'step' parameter. Instead, check | |
1807 | currently_stepping to determine whether the thread should be | |
1808 | single-stepped. | |
1809 | (proceed): Remove 'step' parameter and don't set the thread's | |
1810 | step_start_function here. Adjust call to 'resume'. | |
1811 | (handle_inferior_event): Adjust calls to 'resume'. | |
1812 | (switch_back_to_stepped_thread): Use do_target_resume instead of | |
1813 | 'resume'. | |
1814 | (keep_going): Adjust calls to 'resume'. | |
1815 | * infrun.h (proceed): Remove 'step' parameter. | |
1816 | (resume): Likewise. | |
1817 | * windows-nat.c (do_initial_windows_stuff): Adjust call to | |
1818 | 'resume'. | |
1819 | * mi/mi-main.c (proceed_thread): Adjust call to 'proceed'. | |
1820 | ||
856e7dd6 PA |
1821 | 2015-03-24 Pedro Alves <palves@redhat.com> |
1822 | ||
1823 | * gdbthread.h (struct thread_control_state) <stepping_command>: | |
1824 | New field. | |
1825 | * infcmd.c (step_once): Pass step=1 to clear_proceed_status. Set | |
1826 | the thread's stepping_command field. | |
1827 | * infrun.c (resume): Check the thread's stepping_command flag to | |
1828 | determine which threads should be resumed. Rename 'entry_step' | |
1829 | local to user_step. | |
1830 | (clear_proceed_status_thread): Clear 'stepping_command'. | |
1831 | (schedlock_applies): Change parameter type to struct thread_info | |
1832 | pointer. Adjust. | |
1833 | (find_thread_needs_step_over): Remove 'step' parameter. Adjust. | |
1834 | (switch_back_to_stepped_thread): Adjust calls to | |
1835 | 'schedlock_applies'. | |
1836 | (_initialize_infrun): Adjust "set scheduler-locking step" help. | |
1837 | ||
885eeb5b PA |
1838 | 2015-03-24 Pedro Alves <palves@redhat.com> |
1839 | ||
1840 | * infrun.c (step_start_function): Delete and ... | |
1841 | * gdbthread.h (struct thread_control_state) <step_start_function>: | |
1842 | ... now a field here. | |
1843 | * infrun.c (clear_proceed_status_thread): Clear the thread's | |
1844 | step_start_function. | |
1845 | (proceed, process_event_stop_test, print_stop_event): Adjust. | |
1846 | ||
3333f03a PA |
1847 | 2015-03-24 Pedro Alves <palves@redhat.com> |
1848 | ||
1849 | * infrun.c (proceed): No longer handle negative step. | |
1850 | ||
369f6daa GB |
1851 | 2015-03-24 Gary Benson <gbenson@redhat.com> |
1852 | ||
1853 | * nat/x86-linux.h (x86_linux_new_thread): New declaration. | |
1854 | (x86_linux_prepare_to_resume): Likewise. | |
1855 | * x86-linux-nat.c (x86_linux_new_thread): | |
1856 | Moved to nat/x86-linux.c. | |
1857 | (x86_linux_prepare_to_resume): Likewise. | |
1858 | * nat/x86-linux.c (x86_linux_new_thread): New function. | |
1859 | (x86_linux_prepare_to_resume): Likewise. | |
1860 | ||
8e5d4070 GB |
1861 | 2015-03-24 Gary Benson <gbenson@redhat.com> |
1862 | ||
1863 | * nat/x86-linux-dregs.h: New file. | |
1864 | * nat/x86-linux-dregs.c: Likewise. | |
1865 | * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux-dregs.h. | |
1866 | (x86-linux-dregs.o): New rule. | |
1867 | * config/i386/linux.mh (NATDEPFILES): Add x86-linux-dregs.o. | |
1868 | * config/i386/linux64.mh (NATDEPFILES): Likewise. | |
1869 | * x86-linux-nat.c: Include nat/x86-linux-dregs.h. | |
1870 | (u_debugreg_offset): Moved to nat/x86-linux-dregs.c. | |
1871 | (x86_linux_dr_get): Likewise. | |
1872 | (x86_linux_dr_set): Likewise. | |
1873 | (x86_linux_dr_get_addr): Likewise. | |
1874 | (x86_linux_dr_get_control): Likewise. | |
1875 | (x86_linux_dr_get_status): Likewise. | |
1876 | (update_debug_registers_callback): Likewise. | |
1877 | (x86_linux_dr_set_control): Likewise. | |
1878 | (x86_linux_dr_set_addr): Likewise. | |
1879 | (x86_linux_update_debug_registers): Likewise. | |
1880 | ||
2b95d440 GB |
1881 | 2015-03-24 Gary Benson <gbenson@redhat.com> |
1882 | ||
1883 | * x86-linux-nat.c (x86_linux_update_debug_registers): | |
1884 | New function, factored out from... | |
1885 | (x86_linux_prepare_to_resume): ...this. | |
1886 | ||
14b0bc68 GB |
1887 | 2015-03-24 Gary Benson <gbenson@redhat.com> |
1888 | ||
1889 | * x86-linux-nat.c (x86_linux_dr_get): Update comments. | |
1890 | (x86_linux_dr_set): Likewise. | |
1891 | (x86_linux_dr_get_addr): Likewise. | |
1892 | (x86_linux_dr_get_control): Likewise. | |
1893 | (x86_linux_dr_get_status): Likewise. | |
1894 | (update_debug_registers_callback): Likewise. | |
1895 | (x86_linux_dr_set_control): Likewise. | |
1896 | (x86_linux_dr_set_addr): Likewise. | |
1897 | (x86_linux_prepare_to_resume): Likewise. | |
1898 | (x86_linux_new_thread): Likewise. | |
1899 | ||
5dfe6ca8 GB |
1900 | 2015-03-24 Gary Benson <gbenson@redhat.com> |
1901 | ||
1902 | * x86-linux-nat.c (x86_linux_dr_set_addr): Update assertion. | |
1903 | (x86_linux_new_thread): Rename argument. | |
1904 | ||
4b134ca1 GB |
1905 | 2015-03-24 Gary Benson <gbenson@redhat.com> |
1906 | ||
1907 | * nat/x86-linux.h: New file. | |
1908 | * nat/x86-linux.c: Likewise. | |
1909 | * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux.h. | |
1910 | (x86-linux.o): New rule. | |
1911 | * config/i386/linux.mh (NATDEPFILES): Add x86-linux.o. | |
1912 | * config/i386/linux64.mh (NATDEPFILES): Likewise. | |
1913 | * nat/linux-nat.h (struct arch_lwp_info): New forward declaration. | |
1914 | (lwp_set_arch_private_info): New declaration. | |
1915 | (lwp_arch_private_info): Likewise. | |
1916 | * linux-nat.c (lwp_set_arch_private_info): New function. | |
1917 | (lwp_arch_private_info): Likewise. | |
1918 | * x86-linux-nat.c: Include nat/x86-linux.h. | |
1919 | (arch_lwp_info): Removed structure. | |
1920 | (update_debug_registers_callback): | |
1921 | Use lwp_set_debug_registers_changed. | |
1922 | (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed | |
1923 | and lwp_set_debug_registers_changed. | |
1924 | (x86_linux_new_thread): Use lwp_set_debug_registers_changed. | |
1925 | ||
cff068da GB |
1926 | 2015-03-24 Gary Benson <gbenson@redhat.com> |
1927 | ||
1928 | * nat/linux-nat.h (ptid_of_lwp): New declaration. | |
1929 | (lwp_is_stopped): Likewise. | |
1930 | (lwp_stop_reason): Likewise. | |
1931 | * linux-nat.c (ptid_of_lwp): New function. | |
1932 | (lwp_is_stopped): Likewise. | |
1933 | (lwp_is_stopped_by_watchpoint): Likewise. | |
1934 | * x86-linux-nat.c (update_debug_registers_callback): | |
1935 | Use lwp_is_stopped. | |
1936 | (x86_linux_prepare_to_resume): Use ptid_of_lwp and | |
1937 | lwp_stop_reason. | |
1938 | ||
b2f7c7e8 GB |
1939 | 2015-03-24 Gary Benson <gbenson@redhat.com> |
1940 | ||
1941 | * linux-nat.h (linux_stop_lwp): Move declaration to... | |
1942 | * nat/linux-nat.h (linux_stop_lwp): New declaration. | |
1943 | ||
6d4ee8c6 GB |
1944 | 2015-03-24 Gary Benson <gbenson@redhat.com> |
1945 | ||
1946 | * linux-nat.h: Include nat/linux-nat.h. | |
1947 | (iterate_over_lwps): Move declaration to nat/linux-nat.h. | |
1948 | * nat/linux-nat.h (struct lwp_info): New forward declaration. | |
1949 | (iterate_over_lwps_ftype): New typedef. | |
1950 | (iterate_over_lwps): New declaration. | |
1951 | * linux-nat.h (iterate_over_lwps): Update comment. Use | |
1952 | iterate_over_lwps_ftype. Update callback return value check. | |
1953 | ||
70a0bb6b GB |
1954 | 2015-03-24 Gary Benson <gbenson@redhat.com> |
1955 | ||
1956 | * x86-nat.h (x86_debug_reg_state): Move declaration to... | |
1957 | * nat/x86-dregs.h (x86_debug_reg_state): New declaration. | |
1958 | ||
7b669087 GB |
1959 | 2015-03-24 Gary Benson <gbenson@redhat.com> |
1960 | ||
1961 | * nat/linux-nat.h (current_lwp_ptid): New declaration. | |
1962 | * linux-nat.c (current_lwp_ptid): New function. | |
1963 | * x86-linux-nat.c: Include nat/linux-nat.h. | |
1964 | (x86_linux_dr_get_addr): Use current_lwp_ptid. | |
1965 | (x86_linux_dr_get_control): Likewise. | |
1966 | (x86_linux_dr_get_status): Likewise. | |
1967 | (x86_linux_dr_set_control): Likewise. | |
1968 | (x86_linux_dr_set_addr): Likewise. | |
1969 | ||
15630549 AT |
1970 | 2015-03-24 Antoine Tremblay <antoine.tremblay@ericsson.com> |
1971 | ||
1972 | PR breakpoints/16466 | |
1973 | * breakpoint.c (create_breakpoint): Set thread on breakpoint struct. | |
1974 | ||
8a4506c0 JB |
1975 | 2015-03-23 Joel Brobecker <brobecker@adacore.com> |
1976 | ||
1977 | * ser-mingw.c (ser_windows_setparity): Fix indentation. | |
1978 | * ser-unix.c (hardwire_setparity): Likewise. | |
1979 | ||
236af5e3 YG |
1980 | 2015-03-23 Yurij Grechishhev <yurij.grechishhev@gmail.com> |
1981 | ||
1982 | * NEWS: Mention set/show serial parity command. | |
1983 | * monitor.c (monitor_open): Call serial_setparity. | |
1984 | * remote.c (remote_open_1): Likewise. | |
1985 | * ser-base.c (ser_base_serparity): New function. | |
1986 | * ser-base.h (ser_base_setparity): Add declaration. | |
1987 | * ser-go32.c (dos_ops): Set "setparity" field. | |
1988 | * ser-mingw.c (ser_windows_raw): Do not set state.fParity and | |
1989 | state.Parity. | |
1990 | (ser_windows_setparity): New function. | |
1991 | (hardwire_ops): Add ser_windows_setparity. | |
1992 | (tty_ops): Add NULL for setparity field. | |
1993 | (pipe_ops): Add ser_base_setparity. | |
1994 | (tcp_ops): Likewise. | |
1995 | * ser-pipe.c (pipe_ops): Likewise. | |
1996 | * ser-tcp.c (tcp_ops): Likewise. | |
1997 | * ser-unix.c (hardwire_setparity): Add declaration. | |
1998 | (hardwire_raw): Don't reset PARENB flag. | |
1999 | (hardwire_setparity): New function. | |
2000 | (hardwire_ops): Add hardwire_setparity. | |
2001 | * serial.c (serial_setparity): New function. | |
2002 | (serial_parity): New global. | |
2003 | (parity_none, parity_odd, parity_even, parity_enums, parity): | |
2004 | New static globals. | |
2005 | (set_parity): New function. | |
2006 | (_initialize_serial): Add set/show serial parity commands. | |
2007 | * serial.h (GDBPARITY_NONE): Define. | |
2008 | (GDBPARITY_ODD): Define. | |
2009 | (GDBPARITY_EVEN): Define. | |
2010 | (serial_setparity) Add declaration. | |
2011 | (struct serial_ops): Add setparity field. | |
2012 | * target.h (serial_parity): Add declaration. | |
2013 | ||
32b40af9 KS |
2014 | 2015-03-23 Keith Seitz <keiths@redhat.com> |
2015 | ||
2016 | * linespec.c (linespec_lexer_lex_keyword): Update comment. | |
2017 | ||
693dca06 KS |
2018 | 2015-03-23 Keith Seitz <keiths@redhat.com> |
2019 | ||
2020 | * breakpoint.c (parse_breakpoint_sals): Use | |
2021 | linespec_lexer_lex_keyword to ascertain if the user specified | |
2022 | a NULL location. | |
2023 | * linespec.c [IF_KEYWORD_INDEX]: Define. | |
2024 | (linespec_lexer_lex_keyword): Export. | |
2025 | (struct ls_parser) <keyword_ok>: Remove. | |
2026 | A keyword is only a keyword if not followed by another keyword. | |
2027 | (linespec_lexer_lex_one): Remove keyword_ok handling. | |
2028 | Add comment explaining why the parsing stream is not advanced | |
2029 | when a keyword is seen. | |
2030 | (parse_linespec): Remove parser->keyword_ok. | |
2031 | * linespec.h (linespec_lexer_lex_keyword): Add declaration. | |
2032 | ||
7e993ebf KS |
2033 | 2015-03-23 Keith Seitz <keiths@redhat.com> |
2034 | ||
2035 | PR gdb/18021 | |
2036 | * dwarf2read.c (dwarf2_add_member_fn): Issue a complaint | |
2037 | if we find a static method with DW_AT_vtable_elem_location. | |
2038 | ||
b1a0f704 EZ |
2039 | 2015-03-21 Eli Zaretskii <eliz@gnu.org> |
2040 | ||
2041 | * tui/tui-io.c (tui_expand_tabs): Reinitialize the column counter | |
2042 | before the second loop, to avoid undefined behavior. Reported by | |
2043 | Anton Blanchard <anton@samba.org>. | |
2044 | ||
d9823cbb KB |
2045 | 2015-03-20 Keven Boell <keven.boell@intel.com> |
2046 | ||
2047 | * gdbtypes.c (resolve_dynamic_type_internal): Adapt | |
2048 | data_location usage to linked list. | |
2049 | (resolve_dynamic_type_internal): Adapt data_location to | |
2050 | linked list. | |
2051 | (get_dyn_prop, add_dyn_prop, copy_dynamic_prop_list): New function. | |
2052 | (copy_type_recursive, copy_type): Add copy of linked list. | |
2053 | * gdbtypes.h (enum dynamic_prop_node_kind): New enum. | |
2054 | (struct dynamic_prop_list): New struct. | |
2055 | * dwarf2read.c (set_die_type): Set data_location data. | |
2056 | ||
2e7bf1d7 PA |
2057 | 2015-03-20 Pedro Alves <palves@redhat.com> |
2058 | ||
2059 | * i386-sol2-tdep.c (i386_sol2_static_transform_name): Move "p" to | |
2060 | inner block and make it const. | |
2061 | * machoread.c (get_archive_prefix_len): Make "lparen" const. | |
2062 | ||
7a26bd4d PA |
2063 | 2015-03-20 Pedro Alves <palves@redhat.com> |
2064 | ||
2065 | * breakpoint.c (set_breakpoint_condition): Make argument "exp" const. | |
2066 | * breakpoint.h (set_breakpoint_condition): Update declaration. | |
2067 | ||
cd46431b PA |
2068 | 2015-03-20 Pedro Alves <palves@redhat.com> |
2069 | ||
2070 | * tui/tui-io.c (tui_expand_tabs): Make "s1" const. | |
2071 | ||
e28566f7 PA |
2072 | 2015-03-20 Pedro Alves <palves@redhat.com> |
2073 | ||
2074 | * xcoffread.c (scan_xcoff_symtab): Make "p" and "q" const. | |
2075 | ||
f6fc92f6 PA |
2076 | 2015-03-20 Pedro Alves <palves@redhat.com> |
2077 | ||
2078 | * remote-m32r-sdi.c (m32r_open): Make "port_str" const. | |
2079 | ||
c32ed3ef PA |
2080 | 2015-03-20 Pedro Alves <palves@redhat.com> |
2081 | ||
2082 | * nto-tdep.c (nto_find_and_open_solib): Make "endian" const. | |
2083 | (nto_init_solib_absolute_prefix): Likewise. | |
2084 | ||
53e78085 PA |
2085 | 2015-03-20 Pedro Alves <palves@redhat.com> |
2086 | ||
2087 | * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Make "p" const. | |
2088 | * spu-tdep.c (spu_gdbarch_init): Make "name" const. | |
2089 | ||
bc23328c JK |
2090 | 2015-03-20 Jan Kratochvil <jan.kratochvil@redhat.com> |
2091 | ||
2092 | * config/djgpp/README: Remove gdb.hp. | |
2093 | ||
e8ffc436 YQ |
2094 | 2015-03-20 Yao Qi <yao.qi@linaro.org> |
2095 | ||
2096 | * aarch64-tdep.c (aarch64_gdbarch_init): Don't call | |
2097 | set_gdbarch_cannot_step_breakpoint. | |
2098 | ||
23f238d3 PA |
2099 | 2015-03-19 Pedro Alves <palves@redhat.com> |
2100 | ||
2101 | * linux-nat.c (linux_resume_one_lwp): Rename to ... | |
2102 | (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here, | |
2103 | instead call perror_with_name. | |
2104 | (check_ptrace_stopped_lwp_gone): New function. | |
2105 | (linux_resume_one_lwp): Reimplement as wrapper around | |
2106 | linux_resume_one_lwp_throw that swallows errors if the LWP is | |
2107 | gone. | |
2108 | (resume_stopped_resumed_lwps): Try register reads in TRY/CATCH and | |
2109 | swallows errors if the LWP is gone. Use | |
2110 | linux_resume_one_lwp_throw instead of linux_resume_one_lwp. | |
2111 | ||
eb54c8bf PA |
2112 | 2015-03-19 Pedro Alves <palves@redhat.com> |
2113 | ||
2114 | * linux-nat.c (status_callback): Return early if the LWP has no | |
2115 | status pending. | |
2116 | ||
b90fc188 PA |
2117 | 2015-03-19 Pedro Alves <palves@redhat.com> |
2118 | ||
2119 | * linux-nat.c (select_event_lwp_callback): Update comment to no | |
2120 | longer mention SIGTRAP. | |
2121 | ||
670f82d4 TG |
2122 | 2015-03-18 Tristan Gingold <gingold@adacore.com> |
2123 | ||
2124 | * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Move | |
2125 | redirection code to ... | |
2126 | (amd64_windows_frame_decode_insns): ... Here. Fix in prologue | |
2127 | checks. Fix SAVE_NONVOL operations. Add debug code and comments. | |
2128 | ||
464b0089 GB |
2129 | 2015-03-18 Gary Benson <gbenson@redhat.com> |
2130 | ||
2131 | (remote_protocol_features): Remove the "vFile:fstat" feature. | |
2132 | (remote_hostio_fstat): Probe for "vFile:fstat" support. | |
2133 | ||
f68f11b7 YQ |
2134 | 2015-03-11 Yao Qi <yao.qi@linaro.org> |
2135 | ||
2136 | PR tdep/18107 | |
2137 | * aarch64-linux-tdep.c: Include xml-syscall.h | |
2138 | (aarch64_linux_get_syscall_number): New function. | |
2139 | (aarch64_linux_init_abi): Call | |
2140 | set_gdbarch_get_syscall_number. | |
2141 | * syscalls/aarch64-linux.xml: New file. | |
2142 | ||
393bd0c0 YG |
2143 | 2015-03-17 Yurij Grechishhev <yurij.grechishhev@gmail.com> |
2144 | ||
2145 | * ser-base.h (ser_base_setstopbits): Change second argument name | |
2146 | from "rate" to "num". | |
2147 | ||
7f3647e2 GB |
2148 | 2015-03-17 Gary Benson <gbenson@redhat.com> |
2149 | Luke Allardyce <lukeallardyce@gmail.com> | |
2150 | ||
2151 | PR gdb/18131 | |
2152 | * common/common-remote-fileio.h (sys/stat.h): New include. | |
2153 | (stuct stat): Remove forward declaration. | |
2154 | ||
3ce5b6e2 JB |
2155 | 2015-03-16 John Baldwin <jhb@FreeBSD.org> |
2156 | ||
2157 | * fbsd-tdep.c (fbsd_make_corefile_notes): Fetch all target registers | |
2158 | before writing core register notes. | |
2159 | ||
d053f6be YZ |
2160 | 2015-03-16 Yuanhui Zhang <asmwarrior@gmail.com> |
2161 | Pedro Alves <palves@redhat.com> | |
2162 | ||
2163 | * gdb_curses.h (tgetnum): Mark with EXTERN_C. | |
2164 | * stub-termcap.c (tgetent, tgetnum, tgetflag, tgetstr, tputs) | |
2165 | (tgoto): Wrap with extern "C". | |
2166 | ||
b1a921c8 PA |
2167 | 2015-03-16 Pedro Alves <palves@redhat.com> |
2168 | Yuanhui Zhang <asmwarrior@gmail.com> | |
2169 | ||
2170 | * stub-termcap.c (tputs): Change prototype. | |
2171 | ||
876d1cd7 YZ |
2172 | 2015-03-16 Yuanhui Zhang <asmwarrior@gmail.com> |
2173 | Pedro Alves <palves@redhat.com> | |
2174 | ||
2175 | * windows-nat.c (struct thread_info_struct): Rename to ... | |
2176 | (struct windows_thread_info_struct): ... this. | |
2177 | (thread_info): Rename to ... | |
2178 | (windows_thread_info): ... this. | |
2179 | All users updated. | |
2180 | ||
0800b440 JK |
2181 | 2015-03-14 Jan Kratochvil <jan.kratochvil@redhat.com> |
2182 | Pedro Alves <palves@redhat.com> | |
2183 | ||
2184 | * NEWS: New Removed targets and native configurations. | |
2185 | ||
2186 | 2015-03-13 Jan Kratochvil <jan.kratochvil@redhat.com> | |
61a12cfa JK |
2187 | |
2188 | Remove HPUX. | |
2189 | * Makefile.in (ALL_64_TARGET_OBS): Remove ia64-hpux-tdep.o. | |
2190 | (ALL_TARGET_OBS): Remove hppa-hpux-tdep.o, solib-som.o and solib-pa64.o. | |
2191 | (HFILES_NO_SRCDIR): Remove solib-som.h, inf-ttrace.h, solib-pa64.h and | |
2192 | ia64-hpux-tdep.h, solib-ia64-hpux.h. | |
2193 | (ALLDEPFILES): Remove hppa-hpux-tdep.c, hppa-hpux-nat.c, | |
2194 | ia64-hpux-nat.c, ia64-hpux-tdep.c, somread.c and solib-som.c. | |
2195 | * config/djgpp/fnchange.lst: Remove hppa-hpux-nat.c and | |
2196 | hppa-hpux-tdep.c. | |
2197 | * config/ia64/hpux.mh: Remove file. | |
2198 | * config/pa/hpux.mh: Remove file. | |
2199 | * configure: Rebuilt. | |
2200 | * configure.ac (dlgetmodinfo, somread.o): Remove. | |
2201 | * configure.host (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete. | |
2202 | (ia64-*-hpux*): Remove its float format exception. | |
2203 | * configure.tgt (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete. | |
2204 | * hppa-hpux-nat.c: Remove file. | |
2205 | * hppa-hpux-tdep.c: Remove file. | |
2206 | * hppa-tdep.c (struct hppa_unwind_info, struct hppa_objfile_private): | |
2207 | Move them here from hppa-tdep.h | |
2208 | (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Make it static. | |
2209 | (hppa_frame_prev_register_helper): Remove HPPA_FLAGS_REGNUM exception. | |
2210 | * hppa-tdep.h (struct hppa_unwind_info, struct hppa_objfile_private): | |
2211 | Move them to hppa-tdep.c. | |
2212 | (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Remove | |
2213 | declarations. | |
2214 | * ia64-hpux-nat.c: Remove file. | |
2215 | * ia64-hpux-tdep.c: Remove file. | |
2216 | * ia64-hpux-tdep.h: Remove file. | |
2217 | * inf-ttrace.c: Remove file. | |
2218 | * inf-ttrace.h: Remove file. | |
2219 | * solib-ia64-hpux.c: Remove file. | |
2220 | * solib-ia64-hpux.h: Remove file. | |
2221 | * solib-pa64.c: Remove file. | |
2222 | * solib-pa64.h: Remove file. | |
2223 | * solib-som.c: Remove file. | |
2224 | * solib-som.h: Remove file. | |
2225 | * somread.c: Remove file. | |
2226 | ||
25268153 JB |
2227 | 2015-03-13 John Baldwin <jhb@FreeBSD.org> |
2228 | ||
2229 | * configure.ac: AC_SEARCH_LIBS(kinfo_getvmmap, util). | |
2230 | * config.in: Regenerate. | |
2231 | * configure: Regenerate. | |
2232 | * fbsd-nat.c [!HAVE_KINFO_GETVMMAP] (fbsd_read_mapping): Don't | |
2233 | define. | |
2234 | (fbsd_find_memory_regions): Use kinfo_getvmmap to | |
2235 | enumerate memory regions if present. | |
2236 | ||
773eacf5 JB |
2237 | 2015-03-13 John Baldwin <jhb@FreeBSD.org> |
2238 | ||
2239 | * amd64fbsd-tdep.c (amd64fbsd_sigtramp_p): Style fixes. | |
2240 | * i386fbsd-tdep.c: Fix style in various gdb_static_assert | |
2241 | expressions. | |
2242 | (i386fbsd_sigtramp_p): Likewise. | |
2243 | ||
01b6bdb0 JB |
2244 | 2015-03-12 John Baldwin <jhb@FreeBSD.org> |
2245 | ||
2246 | * MAINTAINERS (Write After Approval): Add John Baldwin. | |
2247 | ||
811a659a GB |
2248 | 2015-03-12 Gary Benson <gbenson@redhat.com> |
2249 | ||
2250 | * solib.c (_initialize_solib): Make "set/show sysroot" use | |
2251 | add_setshow_optional_filename_cmd so it can be restored to | |
2252 | empty after being set. | |
2253 | ||
10304ef3 SDJ |
2254 | 2015-03-11 Sergio Durigan Junior <sergiodj@redhat.com> |
2255 | ||
2256 | * Makefile.in (SFILES): New source break-catch-syscall.c. | |
2257 | (COMMON_OBS): New object break-catch-syscall.o. | |
2258 | * break-catch-syscall.c: New file. | |
2259 | * breakpoint.c: Remove inclusion of "xml-syscall.h". | |
2260 | (syscall_catchpoint_p): Move declaration to break-catch-syscall.c | |
2261 | (struct syscall_catchpoint): Likewise. | |
2262 | (dtor_catch_syscall): Likewise. | |
2263 | (catch_syscall_inferior_data): Likewise. | |
2264 | (struct catch_syscall_inferior_data): Likewise. | |
2265 | (get_catch_syscall_inferior_data): Likewise. | |
2266 | (catch_syscall_inferior_data_cleanup): Likewise. | |
2267 | (insert_catch_syscall): Likewise. | |
2268 | (remove_catch_syscall): Likewise. | |
2269 | (breakpoint_hit_catch_syscall): Likewise. | |
2270 | (print_it_catch_syscall): Likewise. | |
2271 | (print_one_catch_syscall): Likewise. | |
2272 | (print_mention_catch_syscall): Likewise. | |
2273 | (print_recreate_catch_syscall): Likewise. | |
2274 | (catch_syscall_breakpoint_ops): Likewise. | |
2275 | (syscall_catchpoint_p): Likewise. | |
2276 | (create_syscall_event_catchpoint): Likewise. | |
2277 | (catch_syscall_split_args): Likewise. | |
2278 | (catch_syscall_command_1): Likewise. | |
2279 | (is_syscall_catchpoint_enabled): Likewise. | |
2280 | (catch_syscall_enabled): Likewise. | |
2281 | (catching_syscall_number): Likewise. | |
2282 | (catch_syscall_completer): Likewise. | |
2283 | (clear_syscall_counts): Likewise. | |
2284 | (initialize_breakpoint_ops): Move initialization of syscall | |
2285 | catchpoints to break-catch-syscall.c. | |
2286 | (_initialize_breakpoint): Move code related to syscall catchpoints | |
2287 | to break-catch-syscall.c. | |
2288 | ||
badd37ce SDJ |
2289 | 2015-03-11 Sergio Durigan Junior <sergiodj@redhat.com> |
2290 | ||
2291 | * breakpoint.c (breakpoint_find_if): New function. | |
2292 | * breakpoint.h (breakpoint_find_if): New prototype. | |
2293 | ||
0a93529c GB |
2294 | 2015-03-11 Gary Benson <gbenson@redhat.com> |
2295 | ||
2296 | * remote-fileio.h (remote_fileio_to_host_stat): New declaration. | |
2297 | * remote-fileio.c (remote_fileio_to_host_uint): New function. | |
2298 | (remote_fileio_to_host_ulong): Likewise. | |
2299 | (remote_fileio_to_host_mode): Likewise. | |
2300 | (remote_fileio_to_host_time): Likewise. | |
2301 | (remote_fileio_to_host_stat): Likewise. | |
2302 | * remote.c (PACKET_vFile_fstat): New enum value. | |
2303 | (remote_protocol_features): Register the "vFile:fstat" feature. | |
2304 | (remote_hostio_fstat): New function. | |
2305 | (remote_bfd_iovec_stat): Use the above. | |
2306 | (_initialize_remote): Register new "set/show remote | |
2307 | hostio-fstat-packet" command. | |
2308 | * symfile.c (separate_debug_file_exists): Update comment. | |
2309 | * NEWS: Announce new vFile:fstat packet. | |
2310 | ||
791c0056 GB |
2311 | 2015-03-11 Gary Benson <gbenson@redhat.com> |
2312 | ||
2313 | * common/common-remote-fileio.h: New file. | |
2314 | * common/common-remote-fileio.c: Likewise. | |
2315 | * Makefile.in (SFILES): Add common/common-remote-fileio.c. | |
2316 | (HFILES_NO_SRCDIR): Add common/common-remote-fileio.h. | |
2317 | (COMMON_OBS): Add common-remote-fileio.o. | |
2318 | (common-remote-fileio.o): New rule. | |
2319 | * remote-fileio.h (common-remote-fileio.h): New include. | |
2320 | * remote-fileio.c (gdb/fileio.h): Do not include. | |
2321 | (remote_fileio_to_be): Moved to common-remote-fileio.h. | |
2322 | (remote_fileio_to_fio_uint): Likewise. | |
2323 | (remote_fileio_to_fio_time): Likewise. | |
2324 | (remote_fileio_mode_to_target): Moved to common-remote-fileio.c. | |
2325 | (remote_fileio_to_fio_mode): Likewise. | |
2326 | (remote_fileio_to_fio_ulong): Likewise. | |
2327 | (remote_fileio_to_fio_stat): Likewise. | |
2328 | ||
1390d0ef AW |
2329 | 2015-03-11 Andy Wingo <wingo@igalia.com> |
2330 | ||
2331 | * guile/scm-value.c (gdbscm_value_dynamic_type): Fix typo in which | |
2332 | we were checking the cached type, not the cached dynamic type. | |
2333 | ||
84a4591a AW |
2334 | 2015-03-11 Andy Wingo <wingo@igalia.com> |
2335 | ||
2336 | * guile/scm-cmd.c (cmdscm_destroyer): Don't xfree the name and | |
2337 | other strings, as these are on the GC'd heap, and will be | |
2338 | collected along with the smob. | |
2339 | ||
85642ba0 AW |
2340 | 2015-03-11 Andy Wingo <wingo@igalia.com> |
2341 | ||
2342 | * guile/scm-objfile.c (gdbscm_objfile_progspace): New function. | |
2343 | (objfile_functions): Bind gdbscm_objfile_progspace to | |
2344 | objfile-progspace. | |
2345 | * guile/lib/gdb.scm: Add objfile-progspace to exports. | |
2346 | ||
92fab5a6 AW |
2347 | 2015-03-11 Andy Wingo <wingo@igalia.com> |
2348 | ||
2349 | * guile/guile.c (_initialize_guile): Disable automatic | |
2350 | finalization, if Guile offers us that possibility. | |
2351 | * guile/guile.c (call_initialize_gdb_module): | |
2352 | * guile/scm-safe-call.c (gdbscm_with_catch): Arrange to run | |
2353 | finalizers in appropriate places. | |
2354 | * configure.ac (AC_TRY_LIBGUILE): Add a check for | |
2355 | scm_set_automatic_finalization_enabled. | |
2356 | * configure: Regenerated. | |
2357 | ||
f054145e AA |
2358 | 2015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com> |
2359 | ||
2360 | * s390-linux-tdep.c (s390_skip_prologue): Skip the prologue using | |
2361 | SAL, if possible. | |
2362 | ||
18396193 AA |
2363 | 2015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com> |
2364 | ||
2365 | * s390-linux-nat.c (struct arch_lwp_info): New. | |
2366 | (s390_fix_watch_points): Rename to... | |
2367 | (s390_prepare_to_resume): ...this. Skip the PER info update | |
2368 | unless the watch points have changed. | |
2369 | (s390_refresh_per_info, s390_new_thread): New functions. | |
2370 | (s390_insert_watchpoint): Call s390_refresh_per_info instead of | |
2371 | s390_fix_watch_points. | |
2372 | (s390_remove_watchpoint): Likewise. | |
2373 | (_initialize_s390_nat): Reflect renaming of s390_fix_watch_points. | |
2374 | Register s390_prepare_to_resume. | |
2375 | ||
9eb1356e PA |
2376 | 2015-03-09 Pedro Alves <palves@redhat.com> |
2377 | ||
2378 | Revert: | |
2379 | 2015-03-07 Pedro Alves <palves@redhat.com> | |
2380 | * common/gdb_socket.h: New file. | |
2381 | * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor | |
2382 | sys/socket.h. | |
2383 | (net_open): Use union gdb_sockaddr_u. | |
2384 | ||
aac331e4 PA |
2385 | 2015-03-07 Pedro Alves <palves@redhat.com> |
2386 | ||
2387 | * configure.ac (build_warnings): Move -Wmissing-prototypes | |
2388 | -Wdeclaration-after-statement -Wmissing-parameter-type | |
2389 | -Wold-style-declaration -Wold-style-definition to the C-specific | |
2390 | set. | |
2391 | * configure: Regenerate. | |
2392 | ||
366c75fc PA |
2393 | 2015-03-07 Pedro Alves <palves@redhat.com> |
2394 | ||
2395 | * common/gdb_socket.h: New file. | |
2396 | * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor | |
2397 | sys/socket.h. | |
2398 | (net_open): Use union gdb_sockaddr_u. | |
2399 | ||
72df25b2 PA |
2400 | 2015-03-07 Pedro Alves <palves@redhat.com> |
2401 | ||
2402 | * common/common-exceptions.c [!__cplusplus] (enum catcher_state) | |
2403 | (exceptions_state_mc_action_iter) | |
2404 | (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch): | |
2405 | Don't define. | |
2406 | [__cplusplus] (try_scope_depth): New global. | |
2407 | [__cplusplus] (exception_try_scope_entry) | |
2408 | (exception_try_scope_exit, gdb_exception_sliced_copy) | |
2409 | (exception_rethrow): New functions. | |
2410 | (throw_exception): In C++ mode, throw | |
2411 | gdb_exception_RETURN_MASK_QUIT for RETURN_QUIT and | |
2412 | gdb_exception_RETURN_MASK_ERROR for RETURN_ERROR. | |
2413 | (throw_it): In C++ mode, use try_scope_depth. | |
2414 | * common/common-exceptions.h [!__cplusplus] | |
2415 | (exceptions_state_mc_action_iter) | |
2416 | (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch): | |
2417 | Don't declare. | |
2418 | [__cplusplus] (exception_try_scope_entry) | |
2419 | (exception_try_scope_exit, exception_rethrow): Declare. | |
2420 | [__cplusplus] (struct exception_try_scope): New struct. | |
2421 | [__cplusplus] (TRY, CATCH, END_CATCH): Reimplement on top of real | |
2422 | C++ exceptions. | |
2423 | (struct gdb_exception_RETURN_MASK_ALL) | |
2424 | (struct gdb_exception_RETURN_MASK_ERROR) | |
2425 | (struct gdb_exception_RETURN_MASK_QUIT): New types. | |
2426 | ||
284e6217 PA |
2427 | 2015-03-07 Pedro Alves <palves@redhat.com> |
2428 | ||
2429 | * main.c (handle_command_errors): Remove volatile qualifier from | |
2430 | parameter. | |
2431 | ||
6c63c96a PA |
2432 | 2015-03-07 Pedro Alves <palves@redhat.com> |
2433 | ||
2434 | * breakpoint.c (save_breakpoints): Adjust to avoid code between | |
2435 | TRY and CATCH. | |
2436 | * gdbtypes.c (safe_parse_type): Remove empty line. | |
2437 | (types_deeply_equal): | |
2438 | * guile/scm-frame.c (gdbscm_frame_name): | |
2439 | * linux-thread-db.c (find_new_threads_once): | |
2440 | * python/py-breakpoint.c (bppy_get_commands): | |
2441 | * record-btrace.c (record_btrace_insert_breakpoint) | |
2442 | (record_btrace_remove_breakpoint, record_btrace_start_replaying) | |
2443 | (record_btrace_start_replaying): Adjust to avoid code between TRY | |
2444 | and CATCH. | |
2445 | ||
492d29ea PA |
2446 | 2015-03-07 Pedro Alves <palves@redhat.com> |
2447 | ||
2448 | * common/common-exceptions.c (struct catcher) <exception>: No | |
2449 | longer a pointer to volatile exception. Now an exception value. | |
2450 | <mask>: Delete field. | |
2451 | (exceptions_state_mc_init): Remove all parameters. Adjust. | |
2452 | (exceptions_state_mc): No longer pop the catcher here. | |
2453 | (exceptions_state_mc_catch): New function. | |
2454 | (throw_exception): Adjust. | |
2455 | * common/common-exceptions.h (exceptions_state_mc_init): Remove | |
2456 | all parameters. | |
2457 | (exceptions_state_mc_catch): Declare. | |
2458 | (TRY_CATCH): Rename to ... | |
2459 | (TRY): ... this. Remove EXCEPTION and MASK parameters. | |
2460 | (CATCH, END_CATCH): New. | |
2461 | All callers adjusted. | |
2462 | ||
ece957c8 TT |
2463 | 2015-03-07 Tom Tromey <tromey@redhat.com> |
2464 | ||
2465 | * top.c (quit_force): Inline and delete DO_TRY, DO_PRINT_EX. | |
2466 | ||
7556d4a4 PA |
2467 | 2015-03-07 Pedro Alves <palves@redhat.com> |
2468 | ||
2469 | * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache) | |
2470 | (amd64_epilogue_frame_cache): Normal exception handling code. | |
2471 | * break-catch-throw.c (check_status_exception_catchpoint) | |
2472 | (re_set_exception_catchpoint): Ditto. | |
2473 | * cli/cli-interp.c (safe_execute_command): | |
2474 | * cli/cli-script.c (script_from_file): Ditto. | |
2475 | * compile/compile-c-symbols.c (generate_c_for_for_one_variable): | |
2476 | Ditto. | |
2477 | * compile/compile-object-run.c (compile_object_run): Ditto. | |
2478 | * cp-abi.c (baseclass_offset): Ditto. | |
2479 | * cp-valprint.c (cp_print_value): Ditto. | |
2480 | * exceptions.c (catch_exceptions_with_msg): | |
2481 | * frame-unwind.c (frame_unwind_try_unwinder): Ditto. | |
2482 | * frame.c (get_frame_address_in_block_if_available): Ditto. | |
2483 | * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache) | |
2484 | (i386_sigtramp_frame_cache): Ditto. | |
2485 | * infcmd.c (post_create_inferior): Ditto. | |
2486 | * linespec.c (parse_linespec, find_linespec_symbols): | |
2487 | * p-valprint.c (pascal_object_print_value): Ditto. | |
2488 | * parse.c (parse_expression_for_completion): Ditto. | |
2489 | * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto. | |
2490 | * remote.c (remote_get_noisy_reply): Ditto. | |
2491 | * s390-linux-tdep.c (s390_frame_unwind_cache): Ditto. | |
2492 | * solib-svr4.c (solib_svr4_r_map): Ditto. | |
2493 | ||
f873665f | 2494 | 2015-03-06 Gary Benson <gbenson@redhat.com> |
61012eef GB |
2495 | |
2496 | * common/common-utils.h (startswith): New inline function. | |
2497 | All places where this logic was used updated to use the above. | |
2498 | ||
68901c4d PA |
2499 | 2015-03-05 Pedro Alves <palves@redhat.com> |
2500 | ||
2501 | PR gdb/18002 | |
2502 | * mem-break.c (default_memory_insert_breakpoint): Set shadow_len | |
2503 | after reading the breakpoint's shadow memory. | |
2504 | ||
2dcb2b1a MK |
2505 | 2015-03-05 Mark Kettenis <kettenis@gnu.org> |
2506 | ||
2507 | * hppabsd-nat.c: Remove file. | |
2508 | * hppaobsd-nat.c: New file. | |
2509 | * Makefile.in (ALLDEPFILES): Remove hppabsd-nat.c. Add | |
2510 | hppaobsd-nat.c. | |
2511 | * config/pa/obsd.mh (NATDEPFILES): Replace hppabsd-nat.o with | |
2512 | hppaobsd-nat.o. | |
2513 | ||
527a273a PA |
2514 | 2015-03-04 Pedro Alves <palves@redhat.com> |
2515 | ||
2516 | * target.h (struct target_ops) <to_decr_pc_after_break>: Delete. | |
2517 | (target_decr_pc_after_break): Delete declaration. | |
2518 | * target.c (default_target_decr_pc_after_break) | |
2519 | (target_decr_pc_after_break): Delete. | |
2520 | * linux-nat.c (check_stopped_by_breakpoint, linux_nat_wait_1): Use | |
2521 | gdbarch_decr_pc_after_break instead of target_decr_pc_after_break. | |
2522 | * linux-thread-db.c (check_event): Likewise. | |
2523 | * infrun.c (adjust_pc_after_break): Likewise. | |
2524 | * darwin-nat.c (cancel_breakpoint): Likewise. | |
2525 | * aix-thread.c (aix_thread_wait): Likewise. | |
2526 | * target-delegates.c: Regenerate. | |
2527 | ||
faf09f01 PA |
2528 | 2015-03-04 Pedro Alves <palves@redhat.com> |
2529 | ||
2530 | * linux-nat.c (save_sigtrap): Check for breakpoints before | |
2531 | checking watchpoints. | |
2532 | (status_callback) [USE_SIGTRAP_SIGINFO]: Don't check whether a | |
2533 | breakpoint is inserted if relying on SIGTRAP's siginfo.si_code. | |
2534 | (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]: Decide whether | |
2535 | a breakpoint triggered based on the SIGTRAP's siginfo.si_code. | |
2536 | (linux_nat_stopped_by_sw_breakpoint) | |
2537 | (linux_nat_supports_stopped_by_sw_breakpoint) | |
2538 | (linux_nat_stopped_by_hw_breakpoint) | |
2539 | (linux_nat_supports_stopped_by_hw_breakpoint): New functions. | |
2540 | (linux_nat_wait_1): Don't re-increment the PC if relying on | |
2541 | SIGTRAP's siginfo->si_code. | |
2542 | (linux_nat_add_target): Install new target methods. | |
2543 | * linux-thread-db.c (check_event): Don't account for breakpoint PC | |
2544 | offset if the target already adjusted the PC. | |
2545 | * nat/linux-ptrace.h (USE_SIGTRAP_SIGINFO): New. | |
2546 | (GDB_ARCH_TRAP_BRKPT): New. | |
2547 | (TRAP_HWBKPT): Define if not already defined. | |
2548 | ||
f7e6eed5 PA |
2549 | 2015-03-04 Pedro Alves <palves@redhat.com> |
2550 | ||
2551 | * NEWS: Mention the new "swbreak" and "hwbreak" stop reasons. | |
2552 | * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p>: | |
2553 | Delete field. | |
2554 | <stop_reason>: New field. | |
2555 | (PACKET_swbreak_feature, PACKET_hwbreak_feature): New enum values. | |
2556 | (packet_set_cmd_state): New function. | |
2557 | (remote_protocol_features): Register the "swbreak" and "hwbreak" | |
2558 | features. | |
2559 | (remote_query_supported): If not disabled with the corresponding | |
2560 | "set remote foo-packet" command, report support for the swbreak | |
2561 | and hwbreak features. | |
2562 | (struct stop_reply) <remote_stopped_by_watchpoint_p>: Delete | |
2563 | field. | |
2564 | <stop_reason>: New field. | |
2565 | (remote_parse_stop_reply): Handle "swbreak" and "hwbreak". | |
2566 | (remote_wait_as): Adjust. | |
2567 | (remote_stopped_by_sw_breakpoint) | |
2568 | (remote_supports_stopped_by_sw_breakpoint) | |
2569 | (remote_stopped_by_hw_breakpoint) | |
2570 | (remote_supports_stopped_by_hw_breakpoint): New functions. | |
2571 | (remote_stopped_by_watchpoint): New function. | |
2572 | (init_remote_ops): Install them. | |
2573 | (_initialize_remote): Register new "set/show remote | |
2574 | swbreak-feature-packet" and "set/show remote | |
2575 | swbreak-feature-packet" commands. | |
2576 | ||
9e8915c6 PA |
2577 | 2015-03-04 Pedro Alves <palves@redhat.com> |
2578 | ||
2579 | * btrace.h: Include target/waitstatus.h. | |
2580 | (struct btrace_thread_info) <stop_reason>: New field. | |
2581 | * record-btrace.c (record_btrace_step_thread): Use | |
2582 | record_check_stopped_by_breakpoint instead of breakpoint_here_p. | |
2583 | (record_btrace_decr_pc_after_break): Delete. | |
2584 | (record_btrace_stopped_by_sw_breakpoint) | |
2585 | (record_btrace_supports_stopped_by_sw_breakpoint) | |
2586 | (record_btrace_stopped_by_hw_breakpoint) | |
2587 | (record_btrace_supports_stopped_by_hw_breakpoint): New functions. | |
2588 | (init_record_btrace_ops): Install them. | |
2589 | * record-full.c (record_full_hw_watchpoint): Delete and replace | |
2590 | with ... | |
2591 | (record_full_stop_reason): ... this throughout. | |
2592 | (record_full_exec_insn): Adjust. | |
2593 | (record_full_wait_1): Adjust. No longer re-increment the PC. | |
2594 | (record_full_wait_1): Adjust. Use | |
2595 | record_check_stopped_by_breakpoint instead of breakpoint_here_p. | |
2596 | (record_full_stopped_by_watchpoint): Adjust. | |
2597 | (record_full_stopped_by_sw_breakpoint) | |
2598 | (record_full_supports_stopped_by_sw_breakpoint) | |
2599 | (record_full_supports_stopped_by_sw_breakpoint) | |
2600 | (record_full_stopped_by_hw_breakpoint) | |
2601 | (record_full_supports_stopped_by_hw_breakpoint): New functions. | |
2602 | (init_record_full_ops, init_record_full_core_ops): Install them. | |
2603 | * record.c (record_check_stopped_by_breakpoint): New function. | |
2604 | * record.h: Include target/waitstatus.h. | |
2605 | (record_check_stopped_by_breakpoint): New declaration. | |
2606 | ||
15c66dd6 PA |
2607 | 2015-03-04 Pedro Alves <palves@redhat.com> |
2608 | ||
2609 | enum lwp_stop_reason -> enum target_stop_reason | |
2610 | * linux-nat.c (linux_resume_one_lwp, check_stopped_by_watchpoint) | |
2611 | (linux_nat_stopped_by_watchpoint, status_callback) | |
2612 | (linux_nat_wait_1): Adjust. | |
2613 | * linux-nat.h (enum lwp_stop_reason): Delete. | |
2614 | (struct lwp_info) <stop_reason>: Now an enum target_stop_reason. | |
2615 | * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust. | |
2616 | * target/waitstatus.h (enum target_stop_reason): New. | |
2617 | ||
1cf4d951 PA |
2618 | 2015-03-04 Pedro Alves <palves@redhat.com> |
2619 | ||
2620 | * breakpoint.c (need_moribund_for_location_type): New function. | |
2621 | (bpstat_stop_status): Don't skipping checking moribund locations | |
2622 | of breakpoint types which the target tell caused a stop. | |
2623 | (program_breakpoint_here_p): New function, factored out from ... | |
2624 | (bp_loc_is_permanent): ... this. | |
2625 | (update_global_location_list): Don't create a moribund location if | |
2626 | the target supports reporting stops of the type of the removed | |
2627 | breakpoint. | |
2628 | * breakpoint.h (program_breakpoint_here_p): New declaration. | |
2629 | * infrun.c (adjust_pc_after_break): Return early if the target has | |
2630 | already adjusted the PC. Add comments. | |
2631 | (handle_signal_stop): If nothing explains a signal, and the target | |
2632 | tells us the stop was caused by a software breakpoint, check if | |
2633 | there's a breakpoint instruction in the memory. If so, adjust the | |
2634 | PC before presenting the stop to the user. Otherwise, ignore the | |
2635 | trap. If nothing explains a signal, and the target tells us the | |
2636 | stop was caused by a hardware breakpoint, ignore the trap. | |
2637 | * target.h (struct target_ops) <to_stopped_by_sw_breakpoint, | |
2638 | to_supports_stopped_by_sw_breakpoint, to_stopped_by_hw_breakpoint, | |
2639 | to_supports_stopped_by_hw_breakpoint>: New fields. | |
2640 | (target_stopped_by_sw_breakpoint) | |
2641 | (target_supports_stopped_by_sw_breakpoint) | |
2642 | (target_stopped_by_hw_breakpoint) | |
2643 | (target_supports_stopped_by_hw_breakpoint): Define. | |
2644 | * target-delegates.c: Regenerate. | |
2645 | ||
79639e11 PA |
2646 | 2015-03-04 Pedro Alves <palves@redhat.com> |
2647 | ||
2648 | * infrun.c (follow_fork_inferior): Use the whole of the | |
2649 | inferior_ptid and pending_follow.related_pid ptids instead of | |
2650 | building ptids from the process components. Adjust verbose output | |
2651 | to use target_pid_to_str. | |
2652 | * linux-nat.c (linux_child_follow_fork): Use the whole of the | |
2653 | inferior_ptid and pending_follow.related_pid ptids instead of | |
2654 | building ptids from the process components. | |
2655 | ||
e85e8e5e MK |
2656 | 2015-03-04 Mark Kettenis <kettenis@gnu.org> |
2657 | ||
2658 | * inf-ptrace.c [PT_GET_PROCESS_STATE] | |
2659 | (inf_ptrace_insert_fork_catchpoint): New function. | |
2660 | (inf_ptrace_remove_fork_catchpoint): New function. | |
2661 | (inf_ptrace_target) [PT_GET_PROCESS_STATE]: Install them. | |
2662 | ||
87de11c0 AA |
2663 | 2015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com> |
2664 | ||
2665 | * s390-linux-tdep.c (s390_register_name): Return empty string | |
2666 | instead of NULL for registers that shouldn't be visible. | |
2667 | ||
d851a69a AA |
2668 | 2015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com> |
2669 | ||
2670 | * s390-linux-tdep.c (s390_gdbarch_init): Use the correct syscall | |
2671 | XML file for 64-bit targets. | |
2672 | ||
b072f6c1 SM |
2673 | 2015-03-03 Simon Marchi <simon.marchi@ericsson.com> |
2674 | ||
2675 | * target.h (find_default_create_inferior): Remove declaration. | |
2676 | (find_default_attach): Likewise. | |
2677 | ||
c1593e4f PA |
2678 | 2015-03-03 Pedro Alves <palves@redhat.com> |
2679 | ||
2680 | * inf-ptrace.c (inf_ptrace_resume): Remove spurious whitespace. | |
2681 | Use ptid_get_pid to get the overall process id when resuming all | |
2682 | threads. | |
2683 | ||
90ad5e1d PA |
2684 | 2015-03-03 Pedro Alves <palves@redhat.com> |
2685 | ||
2686 | * i386-linux-nat.c (i386_linux_resume): Get the ptrace PID out of | |
2687 | the lwp field of ptid. Pass the full ptid to get_thread_regcache. | |
2688 | * inf-ptrace.c (get_ptrace_pid): New function. | |
2689 | (inf_ptrace_resume): Use it. | |
2690 | * linux-nat.c (linux_resume_one_lwp): Pass the LWP's ptid ummodified | |
2691 | to the lower layer. | |
2692 | ||
d68e53f4 MM |
2693 | 2015-03-03 Markus Metzger <markus.t.metzger@intel.com> |
2694 | ||
2695 | * nat/linux-btrace.c: Include sys/utsname.h. | |
2696 | (linux_determine_kernel_ptr_bits): New. | |
2697 | (linux_enable_bts): Call linux_determine_kernel_ptr_bits. | |
2698 | * x86-linux-nat.c (x86_linux_enable_btrace): Do not overwrite non-zero | |
2699 | ptr_bits. | |
2700 | ||
986b6601 MM |
2701 | 2015-03-03 Markus Metzger <markus.t.metzger@intel.com> |
2702 | ||
2703 | * btrace.c (ftrace_update_function): Treat return as tailcall for | |
2704 | "_dl_runtime_resolve". | |
2705 | ||
ce0dfbea MM |
2706 | 2015-03-03 Markus Metzger <markus.t.metzger@intel.com> |
2707 | ||
2708 | * btrace.h (btrace_function) <lbegin, lend>: Remove. | |
2709 | * btrace.c (ftrace_debug): Do not print the line range. | |
2710 | (ftrace_skip_file, ftrace_update_lines): Remove. | |
2711 | (ftrace_new_function): Remove lbegin and lend initialization. | |
2712 | (btrace_compute_ftrace_bts): Remove call to ftrace_update_lines. | |
2713 | * record-btrace.c (btrace_compute_src_line_range): New. | |
2714 | (btrace_call_history_src_line): Call btrace_compute_src_line_range. | |
2715 | ||
95e50b27 PA |
2716 | 2015-03-02 Pedro Alves <palves@redhat.com> |
2717 | ||
2718 | * infrun.c (follow_exec): Delete all threads of the process except | |
2719 | the event thread. Extended comments. | |
2720 | ||
00e474c2 JB |
2721 | 2015-03-02 Joel Brobecker <brobecker@adacore.com> |
2722 | ||
2723 | * contrib/ari/gdb_ari.sh: Reinstate checks for "true" and "false". | |
2724 | ||
cc7039d3 JB |
2725 | 2015-03-02 Joel Brobecker <brobecker@adacore.com> |
2726 | ||
2727 | * utils.h: Remove <stdbool.h> #include. | |
2728 | (producer_is_gcc): Change return type to "int". | |
2729 | * utils.c (producer_is_gcc): Change return type to int. | |
2730 | Return 1 instead of true, and 0 instead of false. | |
2731 | Adjust function documentation accordingly. | |
2732 | ||
550bdf96 AA |
2733 | 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com> |
2734 | ||
2735 | * s390-linux-nat.c (have_regset_vxrs): New static variable. | |
2736 | (s390_linux_fetch_inferior_registers): Handle vector registers, if | |
2737 | present. | |
2738 | (s390_linux_store_inferior_registers): Likewise. | |
2739 | (s390_get_hwcap): Remove function. Embed its logic... | |
2740 | (s390_read_description): ...here. Yield a target description with | |
2741 | vector registers if applicable. | |
2742 | * s390-linux-tdep.c: Include "features/s390-vx-linux64.c", | |
2743 | "features/s390-tevx-linux64.c", "features/s390x-vx-linux64.c", and | |
2744 | "features/s390x-tevx-linux64.c". | |
2745 | (struct gdbarch_tdep) <v0_full_regnum>: New field. | |
2746 | (s390_dwarf_regmap): Add vector registers. Remove bogus entries | |
2747 | for "GNU/Linux-specific registers". | |
2748 | (s390_dwarf_reg_r0l): New enum value. | |
2749 | (s390_dwarf_reg_to_regnum): Support vector registers. | |
2750 | (s390_adjust_frame_regnum): Adjust pseudo DWARF register numbers | |
2751 | of GPR lower halves. | |
2752 | (regnum_is_vxr_full): New function. | |
2753 | (s390_register_name): New function. | |
2754 | (s390_pseudo_register_name): Handle v0-v15, which are composed of | |
2755 | f0-f15 and v0l-v15l. | |
2756 | (s390_pseudo_register_type): Likewise. | |
2757 | (s390_pseudo_register_read): Likewise. | |
2758 | (s390_pseudo_register_write): Likewise. | |
2759 | (s390_value_from_register): Account for the fact that values are | |
2760 | placed left-justified in vector registers. | |
2761 | (s390_pseudo_register_reggroup_p): Add pseudo registers v0-v15 to | |
2762 | the vector reggroup and omit them from the general reggroup. | |
2763 | (s390_regmap_vxrs_low, s390_regmap_vxrs_high): New register maps. | |
2764 | (s390_vxrs_low_regset, s390_vxrs_high_regset): New regsets. | |
2765 | (s390_iterate_over_regset_sections): Add iterations for the two | |
2766 | new vector regsets. | |
2767 | (s390_core_read_description): Yield a target description with | |
2768 | vector registers if applicable. | |
2769 | (s390_gdbarch_init): Handle target descriptions with vector | |
2770 | registers. Add "register_name" gdbarch method. | |
2771 | (_initialize_s390_tdep): Call new tdesc initialization functions. | |
2772 | * s390-linux-tdep.h (HWCAP_S390_VX): New macro. | |
2773 | (S390_V0_LOWER_REGNUM, S390_V1_LOWER_REGNUM, S390_V2_LOWER_REGNUM) | |
2774 | (S390_V3_LOWER_REGNUM, S390_V4_LOWER_REGNUM, S390_V5_LOWER_REGNUM) | |
2775 | (S390_V6_LOWER_REGNUM, S390_V7_LOWER_REGNUM, S390_V8_LOWER_REGNUM) | |
2776 | (S390_V9_LOWER_REGNUM, S390_V10_LOWER_REGNUM) | |
2777 | (S390_V11_LOWER_REGNUM, S390_V12_LOWER_REGNUM) | |
2778 | (S390_V13_LOWER_REGNUM, S390_V14_LOWER_REGNUM) | |
2779 | (S390_V15_LOWER_REGNUM, S390_V16_REGNUM, S390_V17_REGNUM) | |
2780 | (S390_V18_REGNUM, S390_V19_REGNUM, S390_V20_REGNUM) | |
2781 | (S390_V21_REGNUM, S390_V22_REGNUM, S390_V23_REGNUM) | |
2782 | (S390_V24_REGNUM, S390_V25_REGNUM, S390_V26_REGNUM) | |
2783 | (S390_V27_REGNUM, S390_V28_REGNUM, S390_V29_REGNUM) | |
2784 | (S390_V30_REGNUM, S390_V31_REGNUM): New macros. | |
2785 | (S390_NUM_REGS): Adjust value. | |
2786 | (s390_vxrs_low_regset, s390_vxrs_high_regset): Declare. | |
2787 | (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64) | |
2788 | (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): Likewise. | |
2789 | * NEWS: Announce S/390 vector register support. | |
2790 | ||
446899e4 AA |
2791 | 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com> |
2792 | ||
2793 | * features/s390-tevx-linux64.xml: New file. | |
2794 | * features/s390-vx-linux64.xml: New file. | |
2795 | * features/s390-vx.xml: New file. | |
2796 | * features/s390x-tevx-linux64.xml: New file. | |
2797 | * features/s390x-vx-linux64.xml: New file. | |
2798 | * features/Makefile (WHICH): Add s390-vx-linux64, | |
2799 | s390x-vx-linux64, s390-tevx-linux64, and s390x-tevx-linux64. | |
2800 | (s390-vx-linux64-expedite, s390-tevx-linux64-expedite) | |
2801 | (s390x-vx-linux64-expedite, s390x-tevx-linux64-expedite): New | |
2802 | macros. | |
2803 | * features/s390-tevx-linux64.c: New generated file. | |
2804 | * features/s390-vx-linux64.c: Likewise. | |
2805 | * features/s390x-tevx-linux64.c: Likewise. | |
2806 | * features/s390x-vx-linux64.c: Likewise. | |
2807 | * regformats/s390-tevx-linux64.dat: Likewise. | |
2808 | * regformats/s390-vx-linux64.dat: Likewise. | |
2809 | * regformats/s390x-tevx-linux64.dat: Likewise. | |
2810 | * regformats/s390x-vx-linux64.dat: Likewise. | |
2811 | ||
b7236fbe DE |
2812 | 2015-02-28 Doug Evans <xdje42@gmail.com> |
2813 | ||
2814 | * symtab.h (struct symtab) <next>: Fix comment. | |
2815 | ||
02e62830 SM |
2816 | 2015-02-27 Simon Marchi <simon.marchi@ericsson.com> |
2817 | ||
2818 | * python/python.c (python_GdbModuleDef): Rename GdbMethods to | |
2819 | python_GdbMethods. | |
2820 | ||
bf36a1e7 PA |
2821 | 2015-02-27 Pedro Alves <palves@redhat.com> |
2822 | ||
2823 | * dtrace-probe.c (dtrace_probe_ops): Make extern. | |
2824 | ||
ad6aff7d PA |
2825 | 2015-02-27 Pedro Alves <palves@redhat.com> |
2826 | ||
2827 | * common/common-exceptions.h (exception_none): Declare. | |
2828 | * common/common-exceptions.c (exception_none): Moved from | |
2829 | exceptions.c. | |
2830 | (exceptions_state_mc_init): Use exception_none. | |
2831 | * exceptions.c (exception_none): Move to | |
2832 | common/common-exceptions.c. | |
2833 | * exceptions.h (exception_none): Move to | |
2834 | common/common-exceptions.h. | |
2835 | ||
97c18565 PA |
2836 | 2015-02-27 Pedro Alves <palves@redhat.com> |
2837 | ||
2838 | * main.c (catch_command_errors, catch_command_errors_const): | |
2839 | Remove 'mask' argument. Adjust. | |
2840 | (captured_main): Adjust callers. | |
2841 | ||
e992c591 PA |
2842 | 2015-02-27 Pedro Alves <palves@redhat.com> |
2843 | ||
2844 | * python/python-internal.h: Include "extension-priv.h". | |
2845 | ||
64166036 PA |
2846 | 2015-02-27 Pedro Alves <palves@redhat.com> |
2847 | ||
2848 | * breakpoint.h (enum print_stop_action): Move further up in the | |
2849 | file. | |
2850 | ||
8a526fa6 PA |
2851 | 2015-02-27 Pedro Alves <palves@redhat.com> |
2852 | ||
2853 | * gdbarch.sh: Include regcache.h. | |
2854 | * gdbarch.h: Regenerate. | |
2855 | ||
0fa9c223 PA |
2856 | 2015-02-27 Pedro Alves <palves@redhat.com> |
2857 | ||
2858 | * arm-tdep.c (decode_insn) <arm_handle_insn, thumb_handle_insn>: | |
2859 | Remove duplicate const. | |
2860 | * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Remove | |
2861 | duplicate const. | |
2862 | ||
7cf99fb1 PA |
2863 | 2015-02-27 Pedro Alves <palves@redhat.com> |
2864 | ||
2865 | * cp-valprint.c (vtbl_ptr_name): Use EXPORTED_CONST. | |
2866 | * guile/guile.c (extension_language_guile): Use EXPORTED_CONST. | |
2867 | * features/feature_to_c.sh: Tag the generated xml_builtin array | |
2868 | with extern const in C++ mode. | |
2869 | ||
1424c16e TT |
2870 | 2015-02-27 Tom Tromey <tromey@redhat.com> |
2871 | ||
2872 | * minidebug.c (struct lzma_stream): Rename to ... | |
2873 | (struct gdb_lzma_stream): ... this. | |
2874 | (lzma_open, lzma_pread, lzma_close, lzma_stat): Adjust. | |
2875 | ||
10367c7c PA |
2876 | 2015-02-27 Pedro Alves <palves@redhat.com> |
2877 | ||
2878 | * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): New | |
2879 | function. | |
2880 | (mi_cmd_stack_list_locals, mi_cmd_stack_list_args) | |
2881 | (mi_cmd_stack_list_variables): Use it. | |
2882 | ||
4180215b PA |
2883 | 2015-02-27 Pedro Alves <palves@redhat.com> |
2884 | ||
2885 | * x86-linux-nat.c (u_debugreg_offset): New function. | |
2886 | (x86_linux_dr_get, x86_linux_dr_set): Use it. | |
2887 | ||
2f56f7c3 PA |
2888 | 2015-02-27 Pedro Alves <palves@redhat.com> |
2889 | ||
2890 | * nat/x86-dregs.h (enum target_hw_bp_type): Remove forward | |
2891 | declaration. | |
2892 | Include break-common.h. | |
2893 | ||
570dc176 TT |
2894 | 2015-02-27 Tom Tromey <tromey@redhat.com> |
2895 | Pedro Alves <palves@redhat.com> | |
2896 | ||
2897 | * arm-tdep.c (set_fp_model_sfunc, arm_set_abi): Use 'int' for | |
2898 | local used to iterate over enums. | |
2899 | * completer.c (signal_completer): Likewise. | |
2900 | * i386-tdep.c (i386_stap_parse_special_token): Likewise. | |
2901 | * rs6000-tdep.c (powerpc_set_vector_abi): Likewise. | |
2902 | * tui/tui-data.c (tui_next_win, tui_prev_win): Likewise. | |
2903 | * tui/tui-layout.c (next_layout, prev_layout): Likewise. | |
2904 | * tui/tui-win.c (tui_refresh_all_win, tui_rehighlight_all) | |
2905 | (tui_resize_all, tui_set_focus_command, tui_all_windows_info): Likewise. | |
2906 | * tui-wingeneral.c (tui_refresh_all): Likewise. | |
2907 | ||
68c14faa PA |
2908 | 2015-02-27 Pedro Alves <palves@redhat.com> |
2909 | ||
2910 | * target.h: Include "infrun.h". | |
2911 | ||
749bab01 PA |
2912 | 2015-02-27 Pedro Alves <palves@redhat.com> |
2913 | ||
2914 | * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP. | |
2915 | ||
3c14e5a3 PA |
2916 | 2015-02-27 Pedro Alves <palves@redhat.com> |
2917 | ||
2918 | * common/agent.h (IPA_SYM_EXPORTED_NAME): New. | |
2919 | (IPA_SYM): Use it. | |
2920 | * common/common-defs.h (EXTERN_C_PUSH, EXTERN_C_POP): New macros. | |
2921 | ||
56000a98 PA |
2922 | 2015-02-27 Pedro Alves <palves@redhat.com> |
2923 | ||
2924 | * cli-out.c (_rl_erase_entire_line): Move declaration out of | |
2925 | cli_mld_erase_entire_line, and make it extern "C". | |
2926 | * common/common-defs.h (EXTERN_C): New. | |
2927 | * completer.c (_rl_completion_prefix_display_length) | |
2928 | (_rl_print_completions_horizontally, QSFUNC): Move declarations | |
2929 | out of gdb_display_match_list_1. | |
2930 | (_rl_qsort_string_compare): Move declaration out of | |
2931 | gdb_display_match_list_1, and make it extern "C". | |
2932 | * defs.h (re_comp): Use EXTERN_C. | |
2933 | * maint.c (_mcleanup): Move declaration out of mcleanup_wrapper, | |
2934 | and make it extern "C". | |
2935 | (monstartup): Move declaration out of maintenance_set_profile_cmd, | |
2936 | and make it extern "C". | |
2937 | (main): Move declaration out of maintenance_set_profile_cmd. | |
2938 | * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string): Use | |
2939 | EXTERN_C. | |
2940 | ||
bcabf420 PA |
2941 | 2015-02-27 Pedro Alves <palves@redhat.com> |
2942 | ||
2943 | * python/python.c (GdbMethods): Rename to ... | |
2944 | (python_GdbMethods): ... this and make extern. | |
2945 | (GdbModuleDef): Rename to ... | |
2946 | (python_GdbModuleDef): ... this and make extern. | |
2947 | ||
928dbe07 PA |
2948 | 2015-02-27 Pedro Alves <palves@redhat.com> |
2949 | ||
2950 | * record-btrace.c (set_record_btrace_cmdlist) | |
2951 | (show_record_btrace_cmdlist): Remove redefinitions. | |
2952 | ||
52059ffd TT |
2953 | 2015-02-27 Tom Tromey <tromey@redhat.com> |
2954 | Pedro Alves <palves@redhat.com> | |
2955 | ||
2956 | * dwarf2-frame.c (enum cfa_how_kind, struct | |
2957 | dwarf2_frame_state_reg_info): Move out of struct | |
2958 | dwarf2_frame_state. | |
2959 | * dwarf2read.c (struct tu_stats): Move out of struct | |
2960 | dwarf2_per_objfile. | |
2961 | (struct file_entry): Move out of struct line_header. | |
2962 | (struct nextfield, struct nextfnfield, struct fnfieldlist, struct | |
2963 | typedef_field_list): Move out of struct field_info. | |
2964 | * gdbtypes.h (enum dynamic_prop_kind, union dynamic_prop_data): | |
2965 | Move out of struct dynamic_prop. | |
2966 | (union type_owner, union field_location, struct field, struct | |
2967 | range_bounds, union type_specific): Move out of struct main_type. | |
2968 | (struct fn_fieldlist, struct fn_field, struct typedef_field) | |
2969 | (VOFFSET_STATIC): Move out of struct cplus_struct_type. | |
2970 | (struct call_site_target, union call_site_parameter_u, struct | |
2971 | call_site_parameter): Move out of struct call_site. | |
2972 | * m32c-tdep.c (enum m32c_prologue_kind): Move out of struct | |
2973 | m32c_prologue. | |
2974 | (enum srcdest_kind): Move out of struct srcdest. | |
2975 | * main.c (enum cmdarg_kind): Move out of struct cmdarg. | |
2976 | * prologue-value.h (enum prologue_value_kind): Move out of struct | |
2977 | prologue_value. | |
2978 | * s390-linux-tdep.c (enum s390_abi_kind): Move out of struct | |
2979 | gdbarch_tdep. | |
2980 | * stabsread.c (struct nextfield, struct next_fnfieldlist): Move | |
2981 | out of struct field_info. | |
2982 | * symfile.h (struct other_sections): Move out of struct | |
2983 | section_addr_info. | |
2984 | * symtab.c (struct symbol_cache_slot): Move out struct | |
2985 | block_symbol_cache. | |
2986 | * target-descriptions.c (enum tdesc_type_kind): Move out of | |
2987 | typedef struct tdesc_type. | |
2988 | * tui/tui-data.h (enum tui_line_or_address_kind): Move out of | |
2989 | struct tui_line_or_address. | |
2990 | * value.c (enum internalvar_kind, union internalvar_data): Move | |
2991 | out of struct internalvar. | |
2992 | * xtensa-tdep.h (struct ctype_cache): Move out of struct | |
2993 | gdbarch_tdep. | |
2994 | ||
fe978cb0 PA |
2995 | 2015-02-27 Tom Tromey <tromey@redhat.com> |
2996 | Pedro Alves <palves@redhat.com> | |
2997 | ||
2998 | Rename symbols whose names are reserved C++ keywords throughout. | |
2999 | ||
3bc3d82a PA |
3000 | 2015-02-27 Pedro Alves <palves@redhat.com> |
3001 | ||
3002 | * Makefile.in (COMPILER): New, get it from autoconf. | |
3003 | (COMPILE.pre, CC_LD): Use COMPILER. | |
3004 | (CXX): Get from autoconf instead. | |
3005 | (CXX_FOR_TARGET): Default to g++ instead of gcc. | |
3006 | * acinclude.m4: Include build-with-cxx.m4. | |
3007 | * build-with-cxx.m4: New file. | |
3008 | * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX. | |
3009 | Disable -Werror by default if building in C++ mode. | |
3010 | (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and | |
3011 | -Wno-narrowing in C++ mode. Only enable -Wpointer-sign in C mode. | |
3012 | Run supported-warning-flags tests with the C++ compiler. | |
3013 | Save/restore CXXFLAGS too. | |
3014 | * configure: Regenerate. | |
3015 | ||
07697489 PA |
3016 | 2015-02-27 Pedro Alves <palves@redhat.com> |
3017 | ||
3018 | * libiberty.m4: New file. | |
3019 | * acinclude.m4: Include libiberty.m4. | |
3020 | * configure.ac: Call libiberty_INIT. | |
3021 | * config.in, configure: Regenerate. | |
3022 | ||
60abeae4 AA |
3023 | 2015-02-27 Andreas Arnez <arnez@linux.vnet.ibm.com> |
3024 | ||
3025 | * s390-linux-tdep.c (s390_gcc_target_options): Not just handle | |
3026 | 31-bit targets, but 64-bit targets as well. | |
3027 | (s390_gnu_triplet_regexp): New function. | |
3028 | (s390_gdbarch_init): Set the gcc_target_options gdbarch method for | |
3029 | 64-bit targets as well. Set the gnu_triplet_regexp gdbarch | |
3030 | method. | |
3031 | ||
f44466fb | 3032 | 2015-02-27 Jon TURNEY <jon.turney@dronecode.org.uk> (tiny patch) |
f0666312 JT |
3033 | |
3034 | * windows-nat.c (CONTEXT_DEBUGGER): Remove. | |
3035 | (CONTEXT_DEBUGGER_DR): Add CONTEXT_SEGMENTS. Incorporate flags | |
3036 | from CONTEXT_DEBUGGER. | |
3037 | ||
0def5aaa DE |
3038 | 2015-02-26 Doug Evans <dje@google.com> |
3039 | ||
3040 | * gdbtypes.c (internal_type_vptr_fieldno): Add missing call to | |
3041 | CHECK_TYPEDEF. | |
3042 | (set_type_vptr_fieldno): Ditto. | |
3043 | (internal_type_vptr_basetype, set_type_vptr_basetype): Ditto. | |
3044 | * gnu-v3-abi.c (gnuv3_dynamic_class): Ditto. | |
3045 | ||
77b64a49 PA |
3046 | 2015-02-26 Pedro Alves <palves@redhat.com> |
3047 | ||
3048 | * auto-load.h (file_is_auto_load_safe): Add ATTRIBUTE_PRINTF. | |
3049 | * complaints.c (vcomplaint): Pass argument FMT directly to | |
3050 | printf-like functions instead of complaint->fmt. | |
3051 | * ctf.c (ctf_save_write_metadata): Add ATTRIBUTE_PRINTF. | |
3052 | * darwin-nat.c (inferior_debug): Add ATTRIBUTE_PRINTF. | |
3053 | * compile/compile-loc2c.c (pushf, unary, binary): Add | |
3054 | ATTRIBUTE_PRINTF. | |
3055 | (do_compile_dwarf_expr_to_c): Pass string literal as format string | |
3056 | to pushf. | |
3057 | (BINARY): Pass string literal as format string to 'binary'. | |
3058 | * compile/compile-object-load.c (link_callbacks_einfo): Add | |
3059 | ATTRIBUTE_PRINTF. | |
3060 | * guile/guile-internal.h (gdbscm_printf): Add ATTRIBUTE_PRINTF. | |
3061 | ||
532f44ed PA |
3062 | 2015-02-26 Pedro Alves <palves@redhat.com> |
3063 | ||
3064 | * windows-termcap.c: Rename to ... | |
3065 | * stub-termcap.c: ... this. Adjust header line. | |
3066 | * Makefile.in (SFILES): Refer to stub-termcap.c instead of | |
3067 | windows-termcap.c. | |
3068 | * configure: Regenerate. | |
3069 | * configure.ac: Refer to stub-termcap.o instead of | |
3070 | windows-termcap.o. | |
3071 | * gdb_curses.h: Mention stub-termcap.c instead of | |
3072 | windows-termcap.c. | |
3073 | ||
081a1c2c JK |
3074 | 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com> |
3075 | ||
3076 | * compile/compile-c-symbols.c (convert_one_symbol, convert_symbol_bmsym) | |
3077 | (gcc_symbol_address): Call gnu_ifunc_resolve_addr. | |
3078 | ||
2f41223f AT |
3079 | 2015-02-26 Antoine Tremblay <antoine.tremblay@ericsson.com> |
3080 | ||
3081 | * gdb/infcmd.c (print_return_value): use type_to_string to print type. | |
3082 | ||
80c57053 JK |
3083 | 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com> |
3084 | ||
3085 | * elfread.c (elf_read_minimal_symbols): Use bfd_alloc for | |
3086 | bfd_canonicalize_symtab. | |
3087 | ||
cf424aef JB |
3088 | 2015-02-25 John Baldwin <jhb@FreeBSD.org> |
3089 | ||
3090 | * amd64fbsd-nat.c: Include sys/user.h. | |
3091 | (_initialize_amd64fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl | |
3092 | instead of KERN_PS_STRINGS to locate the signal trampoline. | |
3093 | * i386fbsd-nat.c: Include sys/user.h. | |
3094 | (_initialize_i386fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl | |
3095 | instead of KERN_PS_STRINGS to locate the signal trampoline. | |
3096 | * amd64fbsd-tdep.c (amd64fbsd_sigtramp_code): New. | |
3097 | (amd64fbsd_sigtramp_p): New. | |
3098 | (amd64fbsd_sigtramp_start_addr, amd64fbsd_sigtramp_end_addr): No | |
3099 | longer set default values. | |
3100 | (amd64fbsd_init_abi): Set "sigtramp_p" to "amd64fbsd_sigtramp_p". | |
3101 | * i386fbsd-tdep.c (i386fbsd_sigtramp_start) | |
3102 | (i386fbsd_sigtramp_middle, i386fbsd_sigtramp_end) | |
3103 | (i386fbsd_freebsd4_sigtramp_start) | |
3104 | (i386fbsd_freebsd4_sigtramp_middle) | |
3105 | (i386fbsd_freebsd4_sigtramp_end, i386fbsd_osigtramp_start) | |
3106 | (i386fbsd_osigtramp_middle, i386fbsd_osigtramp_end): New. | |
3107 | (i386fbsd_sigtramp_p): New. | |
3108 | (i386fbsd_sigtramp_start_addr, i386fbsd_sigtramp_end_addr): No | |
3109 | longer set default values. | |
3110 | (i386fbsd_init_abi): Set "sigtramp_p" to "i386fbsd_sigtramp_p". | |
3111 | ||
c5cb74ee JB |
3112 | 2015-02-25 John Baldwin <jhb@freebsd.org> |
3113 | ||
3114 | * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use | |
3115 | get_frame_register instead of frame_unwind_register_unsigned. | |
3116 | ||
17487d85 JK |
3117 | 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com> |
3118 | ||
3119 | PR build/18033 | |
3120 | * compile/compile-c-support.c (c_compute_program): Change // comment. | |
3121 | * compile/compile-object-load.c (setup_sections): Change // comment. | |
3122 | ||
9357a9e6 JB |
3123 | 2015-02-26 Joel Brobecker <brobecker@adacore.com> |
3124 | ||
3125 | PR build/18033: | |
3126 | * iq2000-tdep.c (iq2000_frame_cache): Delete C++-style comment. | |
3127 | ||
1f10ba14 PA |
3128 | 2015-02-23 Pedro Alves <palves@redhat.com> |
3129 | ||
3130 | * remote.c (skip_to_semicolon): New function. | |
3131 | (remote_parse_stop_reply) <T stop reply>: Use it. Don't | |
3132 | special case the stop reasons that look like hex numbers | |
3133 | upfront. Instead handle real register numbers after matching | |
3134 | all the known stop reasons. | |
3135 | ||
96553a0c DE |
3136 | 2015-02-21 Doug Evans <dje@google.com> |
3137 | ||
3138 | PR c++/17976, symtab/17821 | |
3139 | * cp-namespace.c (cp_search_static_and_baseclasses): New parameter | |
3140 | is_in_anonymous. All callers updated. | |
3141 | (find_symbol_in_baseclass): Ditto. | |
3142 | (cp_lookup_nested_symbol_1): Ditto. Don't search all static blocks | |
3143 | for symbols in an anonymous namespace. | |
3144 | * dwarf2read.c (namespace_name): Don't call dwarf2_name, fetch | |
3145 | DW_AT_name directly. | |
3146 | (dwarf2_name): Convert missing namespace name to | |
3147 | CP_ANONYMOUS_NAMESPACE_STR. | |
3148 | ||
2db9a427 PA |
3149 | 2015-02-20 Pedro Alves <palves@redhat.com> |
3150 | ||
3151 | * linux-nat.c (linux_handle_extended_wait): Call | |
3152 | thread_db_notice_clone whenever a new clone LWP is detected. | |
3153 | (linux_stop_and_wait_all_lwps, linux_unstop_all_lwps): New | |
3154 | functions. | |
3155 | * linux-nat.h (thread_db_attach_lwp): Delete declaration. | |
3156 | (thread_db_notice_clone, linux_stop_and_wait_all_lwps) | |
3157 | (linux_unstop_all_lwps): Declare. | |
3158 | * linux-thread-db.c (struct thread_get_info_inout): Delete. | |
3159 | (thread_get_info_callback): Delete. | |
3160 | (thread_from_lwp): Use td_thr_get_info and record_thread. | |
3161 | (thread_db_attach_lwp): Delete. | |
3162 | (thread_db_notice_clone): New function. | |
3163 | (try_thread_db_load_1): If /proc is mounted and shows the | |
3164 | process'es task list, walk over all LWPs and call thread_from_lwp | |
3165 | instead of relying on td_ta_thr_iter. | |
3166 | (attach_thread): Don't call check_thread_signals here. Split the | |
3167 | tail part of the function (which adds the thread to the core GDB | |
3168 | thread list) to ... | |
3169 | (record_thread): ... this function. Call check_thread_signals | |
3170 | here. | |
3171 | (thread_db_wait): Don't call thread_db_find_new_threads_1. Always | |
3172 | call thread_from_lwp. | |
3173 | (thread_db_update_thread_list): Rename to ... | |
3174 | (thread_db_update_thread_list_org): ... this. | |
3175 | (thread_db_update_thread_list): New function. | |
3176 | (thread_db_find_thread_from_tid): Delete. | |
3177 | (thread_db_get_ada_task_ptid): Simplify. | |
3178 | * nat/linux-procfs.c: Include <sys/stat.h>. | |
3179 | (linux_proc_task_list_dir_exists): New function. | |
3180 | * nat/linux-procfs.h (linux_proc_task_list_dir_exists): Declare. | |
3181 | ||
3b27ef47 PA |
3182 | 2015-02-20 Pedro Alves <palves@redhat.com> |
3183 | ||
3184 | * linux-nat.c (lin_lwp_attach_lwp): No longer special case the | |
3185 | main LWP. Handle the case of waitpid returning 0 if we're already | |
3186 | attached to the LWP. Don't set the LWP's last_resume_kind to | |
3187 | resume_stop if we already knew about the LWP. | |
3188 | (linux_nat_filter_event): Add debug logs. | |
3189 | ||
1cc28231 PA |
3190 | 2015-02-20 Pedro Alves <palves@redhat.com> |
3191 | ||
3192 | * target.h (forward_target_decr_pc_after_break): Delete | |
3193 | declaration. | |
3194 | ||
5c5019c2 PA |
3195 | 2015-02-20 Pedro Alves <palves@redhat.com> |
3196 | ||
3197 | PR threads/18006 | |
3198 | * linux-thread-db.c (thread_get_info_callback): Return early if | |
3199 | the thread's lwp id is -1. | |
3200 | ||
f3978e91 JB |
3201 | 2015-02-20 Joel Brobecker <brobecker@adacore.com> |
3202 | ||
3203 | GDB 7.9 released. | |
3204 | ||
ffdf88ec SE |
3205 | 2015-02-19 Steve Ellcey <sellcey@imgtec.com> |
3206 | ||
3207 | * dtrace-probe.c (dtrace_process_dof_probe): Initialize arg.expr. | |
3208 | (dtrace_get_probes) Change type of variable 'dof'. | |
3209 | ||
c9587f88 AT |
3210 | 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com> |
3211 | ||
3212 | PR breakpoints/16812 | |
3213 | * linux-nat.c (linux_nat_filter_event): Report SIGTRAP,SIGILL,SIGSEGV. | |
3214 | * nat/linux-ptrace.c (linux_wstatus_maybe_breakpoint): Add. | |
3215 | * nat/linux-ptrace.h: Add linux_wstatus_maybe_breakpoint. | |
3216 | ||
53cf2ee0 DT |
3217 | 2015-02-19 David Taylor <dtaylor@emc.com> |
3218 | ||
3219 | * common/ax.def (setv): Fix consumed entry in setv DEFOP. | |
3220 | ||
acfe0940 PP |
3221 | 2015-02-18 Patrick Palka <patrick@parcs.ath.cx> |
3222 | ||
3223 | * tui/tui-io.c (tui_handle_resize_during_io): Remove this | |
3224 | function. | |
3225 | (tui_putc): Don't call tui_handle_resize_during_io. | |
3226 | (tui_getc): Likewise. | |
3227 | (tui_mld_getc): Likewise. | |
3228 | * tui/tui-win.c: Include event-loop.h and tui/tui-io.h. | |
3229 | (tui_sigwinch_token): New static variable. | |
3230 | (tui_initialize_win): Adjust documentation. Set | |
3231 | tui_sigwinch_token. | |
3232 | (tui_async_resize_screen): New asynchronous callback. | |
3233 | (tui_sigwinch_handler): Adjust documentation. Asynchronously | |
3234 | invoke tui_async_resize_screen. | |
3235 | ||
f6a88844 JM |
3236 | 2015-02-18 Jose E. Marchesi <jose.marchesi@oracle.com> |
3237 | ||
3238 | * configure: Regenerated. | |
3239 | * configure.ac: Use GDB_AC_TRANSFORM. | |
3240 | * Makefile.in (aclocal_m4_deps): Added transform.m4. | |
3241 | * acinclude.m4: sinclude transform.m4. | |
3242 | * transform.m4: New file. | |
3243 | (GDB_AC_TRANSFORM): New macro. | |
3244 | ||
b05e3b0d JM |
3245 | 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com> |
3246 | ||
3247 | * NEWS: Announce the support for DTrace SDT probes. | |
3248 | ||
c3e3045e JM |
3249 | 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com> |
3250 | ||
3251 | * amd64-linux-tdep.c: Include "parser-defs.h" and "user-regs.h". | |
3252 | (amd64_dtrace_parse_probe_argument): New function. | |
3253 | (amd64_dtrace_probe_is_enabled): Likewise. | |
3254 | (amd64_dtrace_enable_probe): Likewise. | |
3255 | (amd64_dtrace_disable_probe): Likewise. | |
3256 | (amd64_linux_init_abi): Register the | |
3257 | `gdbarch_dtrace_probe_argument', `gdbarch_dtrace_enable_probe', | |
3258 | `gdbarch_dtrace_disable_probe' and | |
3259 | `gdbarch_dtrace_probe_is_enabled' hooks. | |
3260 | (amd64_dtrace_disabled_probe_sequence_1): New constant. | |
3261 | (amd64_dtrace_disabled_probe_sequence_2): Likewise. | |
3262 | (amd64_dtrace_enable_probe_sequence): Likewise. | |
3263 | (amd64_dtrace_disable_probe_sequence): Likewise. | |
3264 | ||
d4777acb JM |
3265 | 2015-01-17 Jose E. Marchesi <jose.marchesi@oracle.com> |
3266 | ||
3267 | * breakpoint.c (BREAK_ARGS_HELP): Help string updated to mention | |
3268 | the -probe-dtrace new vpossible value for PROBE_MODIFIER. | |
3269 | * configure.ac (CONFIG_OBS): dtrace-probe.o added if BFD can | |
3270 | handle ELF files. | |
3271 | * Makefile.in (SFILES): dtrace-probe.c added. | |
3272 | * configure: Regenerate. | |
3273 | * dtrace-probe.c: New file. | |
3274 | (SHT_SUNW_dof): New constant. | |
3275 | (dtrace_probe_type): New enum. | |
3276 | (dtrace_probe_arg): New struct. | |
3277 | (dtrace_probe_arg_s): New typedef. | |
3278 | (struct dtrace_probe_enabler): New struct. | |
3279 | (dtrace_probe_enabler_s): New typedef. | |
3280 | (dtrace_probe): New struct. | |
3281 | (dtrace_probe_is_linespec): New function. | |
3282 | (dtrace_dof_sect_type): New enum. | |
3283 | (dtrace_dof_dofh_ident): Likewise. | |
3284 | (dtrace_dof_encoding): Likewise. | |
3285 | (DTRACE_DOF_ENCODE_LSB): Likewise. | |
3286 | (DTRACE_DOF_ENCODE_MSB): Likewise. | |
3287 | (dtrace_dof_hdr): New struct. | |
3288 | (dtrace_dof_sect): Likewise. | |
3289 | (dtrace_dof_provider): Likewise. | |
3290 | (dtrace_dof_probe): Likewise. | |
3291 | (DOF_UINT): New macro. | |
3292 | (DTRACE_DOF_PTR): Likewise. | |
3293 | (DTRACE_DOF_SECT): Likewise. | |
3294 | (dtrace_process_dof_probe): New function. | |
3295 | (dtrace_process_dof): Likewise. | |
3296 | (dtrace_build_arg_exprs): Likewise. | |
3297 | (dtrace_get_arg): Likewise. | |
3298 | (dtrace_get_probes): Likewise. | |
3299 | (dtrace_get_probe_argument_count): Likewise. | |
3300 | (dtrace_can_evaluate_probe_arguments): Likewise. | |
3301 | (dtrace_evaluate_probe_argument): Likewise. | |
3302 | (dtrace_compile_to_ax): Likewise. | |
3303 | (dtrace_probe_destroy): Likewise. | |
3304 | (dtrace_gen_info_probes_table_header): Likewise. | |
3305 | (dtrace_gen_info_probes_table_values): Likewise. | |
3306 | (dtrace_probe_is_enabled): Likewise. | |
3307 | (dtrace_probe_ops): New variable. | |
3308 | (info_probes_dtrace_command): New function. | |
3309 | (_initialize_dtrace_probe): Likewise. | |
3310 | (dtrace_type_name): Likewise. | |
3311 | ||
8b367e17 JM |
3312 | 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com> |
3313 | ||
3314 | * gdbarch.sh (dtrace_parse_probe_argument): New. | |
3315 | (dtrace_probe_is_enabled): Likewise. | |
3316 | (dtrace_enable_probe): Likewise. | |
3317 | (dtrace_disable_probe): Likewise. | |
3318 | * gdbarch.c: Regenerate. | |
3319 | * gdbarch.h: Regenerate. | |
3320 | ||
9aca2ff8 JM |
3321 | 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com> |
3322 | ||
3323 | * stap-probe.c (stap_probe_ops): Add NULLs in the static | |
3324 | stap_probe_ops for `enable_probe' and `disable_probe'. | |
3325 | * probe.c (enable_probes_command): New function. | |
3326 | (disable_probes_command): Likewise. | |
3327 | (_initialize_probe): Define the cli commands `enable probe' and | |
3328 | `disable probe'. | |
3329 | (parse_probe_linespec): New function. | |
3330 | (info_probes_for_ops): Use parse_probe_linespec. | |
3331 | * probe.h (probe_ops): New hooks `enable_probe' and | |
3332 | `disable_probe'. | |
3333 | ||
03e98035 JM |
3334 | 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com> |
3335 | ||
3336 | * probe.c (compute_probe_arg): Moved from stap-probe.c | |
3337 | (compile_probe_arg): Likewise. | |
3338 | (probe_funcs): Likewise. | |
3339 | * stap-probe.c (compute_probe_arg): Moved to probe.c. | |
3340 | (compile_probe_arg): Likewise. | |
3341 | (probe_funcs): Likewise. | |
3342 | ||
6f9b8491 JM |
3343 | 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com> |
3344 | ||
3345 | * probe.c (print_ui_out_not_applicables): New function. | |
3346 | (exists_probe_with_pops): Likewise. | |
3347 | (info_probes_for_ops): Do not include column headers for probe | |
3348 | types for which no probe has been actually found on any object. | |
3349 | Also invoke `print_ui_out_not_applicables' in order to match the | |
3350 | column rows with the header when probes of several types are | |
3351 | listed. | |
3352 | Print the "Type" column. | |
3353 | * probe.h (probe_ops): Added a new probe operation `type_name'. | |
3354 | * stap-probe.c (stap_probe_ops): Add `stap_type_name'. | |
3355 | (stap_type_name): New function. | |
3356 | ||
69efdff1 PP |
3357 | 2015-02-17 Patrick Palka <patrick@parcs.ath.cx> |
3358 | ||
3359 | * tui/tui-io.c (tui_getc): Don't call key_is_command_char. | |
3360 | (key_is_command_char): Delete. | |
3361 | ||
f8e5e23e PA |
3362 | 2015-02-17 Pedro Alves <palves@redhat.com> |
3363 | ||
3364 | * tui/tui.c (tui_enable): Resize windows before anything | |
3365 | might show a window. | |
3366 | ||
9f2e0721 MO |
3367 | 2015-02-17 Max Ostapenko <m.ostapenko@partner.samsung.com> |
3368 | ||
3369 | PR gdb/17984 | |
3370 | * aarch64-linux-nat.c: Don't include features/aarch64.c anymore. | |
3371 | (aarch64_linux_read_description): Remove initialize_tdesc_aarch64 | |
3372 | call. | |
3373 | * aarch64-tdep.h (tdesc_aarch64): Declare. | |
3374 | ||
171e6b1c MW |
3375 | 2015-02-12 Mark Wielaard <mjw@redhat.com> |
3376 | ||
3377 | * contrib/ari/gdb_ari.sh: Remove checks for "true" and "false". | |
3378 | ||
d5ff0482 DE |
3379 | 2015-02-13 Doug Evans <dje@google.com> |
3380 | ||
3381 | * cp-namespace.c (cp_basic_lookup_symbol): Rename parameter | |
3382 | anonymous_namespace to is_in_anonymous for consistency with the rest | |
3383 | of the file. | |
3384 | (cp_lookup_bare_symbol): Fix typo in comment. | |
3385 | (cp_search_static_and_baseclasses): Ditto. | |
3386 | (search_symbol_list): Use vertical space in comment better. | |
3387 | (reset_directive_searched): Ditto. Fix typo. | |
3388 | (cp_lookup_nested_symbol_1): Clarify contents of NESTED_NAME parameter. | |
3389 | ||
9f04ac5f YQ |
3390 | 2015-02-13 Yao Qi <yao.qi@arm.com> |
3391 | ||
3392 | * MAINTAINERS: Update my email address. | |
3393 | ||
013d0319 DE |
3394 | 2015-02-12 Doug Evans <dje@google.com> |
3395 | ||
b615dd20 | 3396 | * symtab.c (completion_list_add_name): Fix memory leak. |
013d0319 | 3397 | |
9a7e538e DE |
3398 | 2015-02-12 Doug Evans <dje@google.com> |
3399 | ||
3400 | * completer.c (complete_line): Remove incorrect comment. | |
3401 | ||
e1fcd575 JK |
3402 | 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com> |
3403 | ||
3404 | * python/py-framefilter.c (py_print_single_arg, enumerate_locals) | |
3405 | (py_print_frame): Use RETURN_MASK_ERROR. | |
3406 | ||
b99bf4e3 JK |
3407 | 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com> |
3408 | ||
3409 | * python/py-framefilter.c (py_print_frame): Mention RETURN_QUIT in | |
3410 | function comment. Wrap all function that can throw in cleanups. | |
3411 | (gdbpy_apply_frame_filter): Wrap all function that can throw in | |
3412 | cleanups. | |
3413 | ||
800eb1ce JK |
3414 | 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com> |
3415 | ||
3416 | * python/py-framefilter.c (py_print_frame): Substitute goto error. | |
3417 | Remove the error label. | |
3418 | ||
34019068 JK |
3419 | 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com> |
3420 | ||
3421 | * python/py-framefilter.c (py_print_frame): Put conditional code paths | |
3422 | with goto first, indent the former else codepath left. Put variable | |
3423 | 'elided' to a new inner block. | |
3424 | ||
8d4a54e2 JK |
3425 | 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com> |
3426 | ||
3427 | * python/py-framefilter.c (py_print_frame): Whitespacing fixes. | |
3428 | ||
18ad82c1 PA |
3429 | 2015-02-11 Pedro Alves <palves@redhat.com> |
3430 | ||
3431 | * xcoffread.c (within_function): Delete. | |
3432 | ||
e36122e9 TT |
3433 | 2015-02-11 Tom Tromey <tromey@redhat.com> |
3434 | Pedro Alves <palves@redhat.com> | |
3435 | ||
3436 | * breakpoint.c (base_breakpoint_ops): Delete. | |
3437 | * dwarf2loc.c (dwarf_expr_ctx_funcs): Make extern. | |
3438 | * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_lazy_psyms): Make extern. | |
3439 | * guile/guile.c (guile_extension_script_ops, guile_extension_ops): Make extern. | |
3440 | * ppcnbsd-tdep.c (ppcnbsd2_sigtramp): Make extern. | |
3441 | * python/py-arch.c (arch_object_type): Make extern. | |
3442 | * python/py-block.c (block_syms_iterator_object_type): Make extern. | |
3443 | * python/py-bpevent.c (breakpoint_event_object_type): Make extern. | |
3444 | * python/py-cmd.c (cmdpy_object_type): Make extern. | |
3445 | * python/py-continueevent.c (continue_event_object_type) | |
3446 | * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove 'qual' | |
3447 | parameter. Update all callers. | |
3448 | * python/py-evtregistry.c (eventregistry_object_type): Make extern. | |
3449 | * python/py-exitedevent.c (exited_event_object_type): Make extern. | |
3450 | * python/py-finishbreakpoint.c (finish_breakpoint_object_type): Make extern. | |
3451 | * python/py-function.c (fnpy_object_type): Make extern. | |
3452 | * python/py-inferior.c (inferior_object_type, membuf_object_type): Make extern. | |
3453 | * python/py-infevents.c (call_pre_event_object_type) | |
3454 | (inferior_call_post_event_object_type). | |
3455 | (memory_changed_event_object_type): Make extern. | |
3456 | * python/py-infthread.c (thread_object_type): Make extern. | |
3457 | * python/py-lazy-string.c (lazy_string_object_type): Make extern. | |
3458 | * python/py-linetable.c (linetable_entry_object_type) | |
3459 | (linetable_object_type, ltpy_iterator_object_type): Make extern. | |
3460 | * python/py-newobjfileevent.c (new_objfile_event_object_type) | |
3461 | (clear_objfiles_event_object_type): Make extern. | |
3462 | * python/py-objfile.c (objfile_object_type): Make extern. | |
3463 | * python/py-param.c (parmpy_object_type): Make extern. | |
3464 | * python/py-progspace.c (pspace_object_type): Make extern. | |
3465 | * python/py-signalevent.c (signal_event_object_type): Make extern. | |
3466 | * python/py-symtab.c (symtab_object_type, sal_object_type): Make extern. | |
3467 | * python/py-type.c (type_object_type, field_object_type) | |
3468 | (type_iterator_object_type): Make extern. | |
3469 | * python/python.c (python_extension_script_ops) | |
3470 | (python_extension_ops): Make extern. | |
3471 | * stap-probe.c (stap_probe_ops): Make extern. | |
3472 | ||
0703599a PA |
3473 | 2015-02-11 Pedro Alves <pedro@codesourcery.com> |
3474 | ||
3475 | * infrun.c (adjust_pc_after_break): Don't adjust the PC just | |
3476 | because the event thread is not the current thread. | |
3477 | ||
eaaf76ab DE |
3478 | 2015-02-11 Doug Evans <xdje42@gmail.com> |
3479 | ||
3480 | * gdbtypes.c (internal_type_self_type): If TYPE_SPECIFIC_FIELD hasn't | |
3481 | been initialized yet, return NULL. | |
3482 | ||
e7d52ed3 DE |
3483 | 2015-02-11 Doug Evans <dje@google.com> |
3484 | ||
3485 | * symfile.h (new_symfile_objfile): Delete. | |
3486 | * symfile.c (finish_new_objfile): Renamed from new_symfile_objfile. | |
3487 | All callers updated. | |
3488 | ||
fc6b1256 PP |
3489 | 2015-02-11 Patrick Palka <patrick@parcs.ath.cx> |
3490 | ||
3491 | * tui/tui-io.c (tui_handle_resize_during_io): Call | |
3492 | tui_update_gdb_sizes() after resizing the screen. | |
3493 | * tui/tui.c (tui_enable): Resize the terminal before | |
3494 | calling tui_update_gdb_sizes(). | |
3495 | ||
d9080678 PP |
3496 | 2015-02-11 Patrick Palka <patrick@parcs.ath.cx> |
3497 | ||
3498 | * tui/tui-io.c (tui_getc): Move cursor to the end of the command | |
3499 | line before printing a newline. | |
3500 | ||
9f615e3a MW |
3501 | 2015-02-11 Mark Wielaard <mjw@redhat.com> |
3502 | ||
3503 | * utils.c (producer_is_gcc): Return true or false. | |
3504 | ||
d9080678 | 3505 | 2015-02-10 Mark Wielaard <mjw@redhat.com> |
b1ffba5a MW |
3506 | |
3507 | * utils.h (producer_is_gcc): Change return type to bool. Add major | |
3508 | argument. | |
3509 | * utils.c (producer_is_gcc): Likewise. | |
3510 | (producer_is_gcc_ge_4): Adjust producer_is_gcc call. | |
3511 | * dwarf2read.c (check_producer): Likewise. | |
3512 | ||
b052c4fb PA |
3513 | 2015-02-10 Pedro Alves <palves@redhat.com> |
3514 | ||
3515 | * infrun.c (displaced_step_fixup): Switch to the event thread | |
3516 | before calling gdbarch_displaced_step_fixup. | |
3517 | ||
3ac240d4 AT |
3518 | 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com> |
3519 | ||
3520 | * MAINTAINERS (Write After Approval): Add Antoine Tremblay. | |
3521 | ||
c1cc6152 SM |
3522 | 2015-02-10 Simon Marchi <simon.marchi@ericsson.com> |
3523 | ||
3524 | * ada-varobj.c (ada_name_of_child): Constify parent. | |
3525 | (ada_path_expr_of_child): Same. | |
3526 | (ada_value_of_child): Same. | |
3527 | (ada_type_of_child): Same. | |
3528 | * c-varobj.c (c_is_path_expr_parent): Same. | |
3529 | (c_describe_child): Same. | |
3530 | (c_name_of_child): Same. | |
3531 | (c_value_of_child): Same. | |
3532 | (c_type_of_child): Same. | |
3533 | (cplus_number_of_children): Same. | |
3534 | (cplus_describe_child): Constify var. | |
3535 | (cplus_name_of_child): Constify parent. | |
3536 | (cplus_value_of_child): Same. | |
3537 | (cplus_type_of_child): Same. | |
3538 | * jv-varobj.c (java_name_of_child): Same. | |
3539 | (java_value_of_child): Same. | |
3540 | (java_type_of_child): Same. | |
3541 | * varobj.c (value_of_child): Same. | |
3542 | (varobj_default_is_path_expr_parent): Constify var, parent and return | |
3543 | value. | |
3544 | (varobj_get_path_expr): Constify var, modify path_expr through | |
3545 | mutable_var. | |
3546 | (install_new_value): Constify parent. | |
3547 | (value_of_child): Constify parent. | |
3548 | * varobj.h (struct varobj): Constify parent. | |
3549 | (struct lang_varobj_ops): Constify name_of_child, value_of_child and | |
3550 | type_of_child. | |
3551 | (varobj_get_path_expr): Constify var. | |
3552 | (varobj_get_path_expr_parent): Constify var and return value. | |
3553 | ||
c1ee9414 LM |
3554 | 2015-02-10 Luis Machado <lgustavo@codesourcery.com> |
3555 | ||
3556 | * arm-tdep.c (arm_prologue_unwind_stop_reason): New function. | |
3557 | (arm_prologue_this_id): Move PC and SP limit checks to | |
3558 | arm_prologue_unwind_stop_reason. | |
3559 | (arm_prologue_unwind) <stop_reason> : Set to | |
3560 | arm_prologue_unwind_stop_reason. | |
3561 | ||
f7de9aab MW |
3562 | 2015-02-09 Mark Wielaard <mjw@redhat.com> |
3563 | ||
3564 | * dwarf2read.c (set_cu_language): Recognize DW_LANG_Fortran03 and | |
3565 | DW_LANG_Fortran08 as language_fortran. | |
3566 | ||
0b24eb2d SDJ |
3567 | 2015-02-09 Sergio Durigan Junior <sergiodj@redhat.com> |
3568 | ||
3569 | PR remote/17946 | |
3570 | * gdb/remote.c (remote_parse_stop_reply): Fix wrong comparison | |
3571 | of pointer against char. | |
3572 | ||
a2c2acaf MW |
3573 | 2015-02-09 Mark Wielaard <mjw@redhat.com> |
3574 | ||
3575 | * c-typeprint.c (cp_type_print_method_args): Handle '_Atomic'. | |
3576 | (c_type_print_modifier): Likewise. | |
3577 | * dwarf2read.c (read_tag_atomic_type): New function. | |
3578 | (read_type_die_1): Handle DW_TAG_atomic_type. | |
3579 | * gdbtypes.c (make_atomic_type): New function. | |
3580 | (recursive_dump_type): Handle TYPE_ATOMIC. | |
3581 | * gdbtypes.h (enum type_flag_values): Renumber. | |
3582 | (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_ATOMIC. | |
3583 | (TYPE_ATOMIC): New macro. | |
3584 | (make_atomic_type): Declare. | |
3585 | ||
31fd9caa MM |
3586 | 2015-02-09 Markus Metzger <markus.t.metzger@intel.com> |
3587 | ||
3588 | * btrace.c (ftrace_find_call): Skip gaps. | |
3589 | (ftrace_new_function): Initialize level. | |
3590 | (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return) | |
3591 | (ftrace_new_switch): Update | |
3592 | level computation. | |
3593 | (ftrace_new_gap): New. | |
3594 | (ftrace_update_function): Create new function after gap. | |
3595 | (btrace_compute_ftrace_bts): Create gap on error. | |
3596 | (btrace_stitch_bts): Update parameters. Clear trace if it | |
3597 | becomes empty. | |
3598 | (btrace_stitch_trace): Update parameters. Update callers. | |
3599 | (btrace_clear): Reset the number of gaps. | |
3600 | (btrace_insn_get): Return NULL if the iterator points to a gap. | |
3601 | (btrace_insn_number): Return zero if the iterator points to a gap. | |
3602 | (btrace_insn_end): Allow gaps at the end. | |
3603 | (btrace_insn_next, btrace_insn_prev, btrace_insn_cmp): Handle gaps. | |
3604 | (btrace_find_insn_by_number): Assert that the found iterator does | |
3605 | not point to a gap. | |
3606 | (btrace_call_next, btrace_call_prev): Assert that the last function | |
3607 | is not a gap. | |
3608 | * btrace.h (btrace_bts_error): New. | |
3609 | (btrace_function): Update comment. | |
3610 | (btrace_function) <insn, insn_offset, number>: Update comment. | |
3611 | (btrace_function) <errcode>: New. | |
3612 | (btrace_thread_info) <ngaps>: New. | |
3613 | (btrace_thread_info) <replay>: Update comment. | |
3614 | (btrace_insn_get): Update comment. | |
3615 | * record-btrace.c (btrace_ui_out_decode_error): New. | |
3616 | (record_btrace_info): Print number of gaps. | |
3617 | (btrace_insn_history, btrace_call_history): Call | |
3618 | btrace_ui_out_decode_error for gaps. | |
3619 | (record_btrace_step_thread, record_btrace_start_replaying): Skip gaps. | |
3620 | ||
afb778a2 MM |
3621 | 2015-02-09 Markus Metzger <markus.t.metzger@intel.com> |
3622 | ||
3623 | * common/btrace-common.h (btrace_cpu_vendor, btrace_cpu): New. | |
3624 | * nat/linux-btrace.c: (btrace_this_cpu): New. | |
3625 | (cpu_supports_bts): Call btrace_this_cpu. | |
3626 | (intel_supports_bts): Add cpu parameter. | |
3627 | ||
7d5c24b3 MM |
3628 | 2015-02-09 Markus Metzger <markus.t.metzger@intel.com> |
3629 | ||
3630 | * btrace.h (btrace_insn_class): New. | |
3631 | (btrace_insn) <size, iclass>: New. | |
3632 | * btrace.c (ftrace_find_call): Update parameters. Update users. | |
3633 | Use instruction classification. | |
3634 | (ftrace_new_return): Update parameters. Update users. | |
3635 | (ftrace_update_function): Update parameters. Update users. Use | |
3636 | instruction classification. | |
3637 | (ftrace_update_insns): Update parameters. Update users. | |
3638 | (ftrace_classify_insn): New. | |
3639 | (btrace_compute_ftrace_bts): Fill in new btrace_insn fields. Add | |
3640 | TRY_CATCH around call to gdb_insn_length. | |
3641 | ||
76235df1 MM |
3642 | 2015-02-09 Markus Metzger <markus.t.metzger@intel.com> |
3643 | ||
3644 | * btrace.c (btrace_compute_ftrace_bts, btrace_compute_ftrace): | |
3645 | Update parameters. Update users. | |
3646 | ||
d33501a5 MM |
3647 | 2015-02-09 Markus Metzger <markus.t.metzger@intel.com> |
3648 | ||
3649 | * btrace.c (parse_xml_btrace_conf_bts): Add size. | |
3650 | (btrace_conf_bts_attributes): New. | |
3651 | (btrace_conf_children): Add attributes. | |
3652 | * common/btrace-common.h (btrace_config_bts): New. | |
3653 | (btrace_config)<bts>: New. | |
3654 | (btrace_config): Update comment. | |
3655 | * nat/linux-btrace.c (linux_enable_btrace, linux_enable_bts): | |
3656 | Use config. | |
3657 | * features/btrace-conf.dtd: Increment version. Add size | |
3658 | attribute to bts element. | |
3659 | * record-btrace.c (set_record_btrace_bts_cmdlist, | |
3660 | show_record_btrace_bts_cmdlist): New. | |
3661 | (record_btrace_adjust_size, record_btrace_print_bts_conf, | |
3662 | record_btrace_print_conf, cmd_set_record_btrace_bts, | |
3663 | cmd_show_record_btrace_bts): New. | |
3664 | (record_btrace_info): Call record_btrace_print_conf. | |
3665 | (_initialize_record_btrace): Add commands. | |
3666 | * remote.c: Add PACKET_Qbtrace_conf_bts_size enum. | |
3667 | (remote_protocol_features): Add Qbtrace-conf:bts:size packet. | |
3668 | (btrace_sync_conf): Synchronize bts size. | |
3669 | (_initialize_remote): Add Qbtrace-conf:bts:size packet. | |
3670 | * NEWS: Announce new commands and new packets. | |
3671 | ||
f4abbc16 MM |
3672 | 2015-02-09 Markus Metzger <markus.t.metzger@intel.com> |
3673 | ||
3674 | * Makefile.in (XMLFILES): Add btrace-conf.dtd. | |
3675 | * x86-linux-nat.c (x86_linux_enable_btrace): Update parameters. | |
3676 | (x86_linux_btrace_conf): New. | |
3677 | (x86_linux_create_target): Initialize to_btrace_conf. | |
3678 | * nat/linux-btrace.c (linux_enable_btrace): Update parameters. | |
3679 | Check format. Split into this and ... | |
3680 | (linux_enable_bts): ... this. | |
3681 | (linux_btrace_conf): New. | |
3682 | (perf_event_skip_record): Renamed into ... | |
3683 | (perf_event_skip_bts_record): ... this. Updated users. | |
3684 | (linux_disable_btrace): Split into this and ... | |
3685 | (linux_disable_bts): ... this. | |
3686 | (linux_read_btrace): Check format. | |
3687 | * nat/linux-btrace.h (linux_enable_btrace): Update parameters. | |
3688 | (linux_btrace_conf): New. | |
3689 | (btrace_target_info)<ptid>: Moved. | |
3690 | (btrace_target_info)<conf>: New. | |
3691 | (btrace_target_info): Split into this and ... | |
3692 | (btrace_tinfo_bts): ... this. Updated users. | |
3693 | * btrace.c (btrace_enable): Update parameters. | |
3694 | (btrace_conf, parse_xml_btrace_conf_bts, parse_xml_btrace_conf) | |
3695 | (btrace_conf_children, btrace_conf_attributes) | |
3696 | (btrace_conf_elements): New. | |
3697 | * btrace.h (btrace_enable): Update parameters. | |
3698 | (btrace_conf, parse_xml_btrace_conf): New. | |
3699 | * common/btrace-common.h (btrace_config): New. | |
3700 | * feature/btrace-conf.dtd: New. | |
3701 | * record-btrace.c (record_btrace_conf): New. | |
3702 | (record_btrace_cmdlist): New. | |
3703 | (record_btrace_enable_warn, record_btrace_open): Pass | |
3704 | &record_btrace_conf. | |
3705 | (record_btrace_info): Print recording format. | |
3706 | (cmd_record_btrace_bts_start): New. | |
3707 | (cmd_record_btrace_start): Call cmd_record_btrace_bts_start. | |
3708 | (_initialize_record_btrace): Add "record btrace bts" subcommand. | |
3709 | Add "record bts" alias command. | |
3710 | * remote.c (remote_state)<btrace_config>: New. | |
3711 | (remote_btrace_reset, PACKET_qXfer_btrace_conf): New. | |
3712 | (remote_protocol_features): Add qXfer:btrace-conf:read. | |
3713 | (remote_open_1): Call remote_btrace_reset. | |
3714 | (remote_xfer_partial): Handle TARGET_OBJECT_BTRACE_CONF. | |
3715 | (btrace_target_info)<conf>: New. | |
3716 | (btrace_sync_conf, btrace_read_config): New. | |
3717 | (remote_enable_btrace): Update parameters. Call btrace_sync_conf and | |
3718 | btrace_read_conf. | |
3719 | (remote_btrace_conf): New. | |
3720 | (init_remote_ops): Initialize to_btrace_conf. | |
3721 | (_initialize_remote): Add qXfer:btrace-conf packet. | |
3722 | * target.c (target_enable_btrace): Update parameters. | |
3723 | (target_btrace_conf): New. | |
3724 | * target.h (target_enable_btrace): Update parameters. | |
3725 | (target_btrace_conf): New. | |
3726 | (target_object)<TARGET_OBJECT_BTRACE_CONF>: New. | |
3727 | (target_ops)<to_enable_btrace>: Update parameters and comment. | |
3728 | (target_ops)<to_btrace_conf>: New. | |
3729 | * target-delegates: Regenerate. | |
3730 | * target-debug.h (target_debug_print_const_struct_btrace_config_p) | |
3731 | (target_debug_print_const_struct_btrace_target_info_p): New. | |
3732 | * NEWS: Announce new command and new packet. | |
3733 | ||
aadf7753 MM |
3734 | 2015-02-09 Markus Metzger <markus.t.metzger@intel.com> |
3735 | ||
3736 | * nat/linux-btrace.h (perf_event_buffer): New. | |
3737 | (btrace_target_info) <buffer, size, data_head>: Replace with ... | |
3738 | <bts>: ... this. | |
3739 | * nat/linux-btrace.c (perf_event_header, perf_event_mmap_size) | |
3740 | (perf_event_buffer_size, perf_event_buffer_begin) | |
3741 | (perf_event_buffer_end, linux_btrace_has_changed): Removed. | |
3742 | Updated users. | |
3743 | (perf_event_new_data): New. | |
3744 | ||
043c3577 MM |
3745 | 2015-02-09 Markus Metzger <markus.t.metzger@intel.com> |
3746 | ||
3747 | * btrace.c (btrace_enable): Pass BTRACE_FORMAT_BTS. | |
3748 | * record-btrace.c (record_btrace_open): Remove call to | |
3749 | target_supports_btrace. | |
3750 | * remote.c (remote_supports_btrace): Update parameters. | |
3751 | * target.c (target_supports_btrace): Update parameters. | |
3752 | * target.h (to_supports_btrace, target_supports_btrace): Update | |
3753 | parameters. | |
3754 | * target-delegates.c: Regenerate. | |
3755 | * target-debug.h (target_debug_print_enum_btrace_format): New. | |
3756 | * nat/linux-btrace.c | |
3757 | (kernel_supports_btrace): Rename into ... | |
3758 | (kernel_supports_bts): ... this. Update users. Update warning text. | |
3759 | (intel_supports_btrace): Rename into ... | |
3760 | (intel_supports_bts): ... this. Update users. | |
3761 | (cpu_supports_btrace): Rename into ... | |
3762 | (cpu_supports_bts): ... this. Update users. | |
3763 | (linux_supports_btrace): Update parameters. Split into this and ... | |
3764 | (linux_supports_bts): ... this. | |
3765 | * nat/linux-btrace.h (linux_supports_btrace): Update parameters. | |
3766 | ||
734b0e4b MM |
3767 | 2015-02-09 Markus Metzger <markus.t.metzger@intel.com> |
3768 | ||
3769 | * Makefile.in (SFILES): Add common/btrace-common.c. | |
3770 | (COMMON_OBS): Add common/btrace-common.o. | |
3771 | (btrace-common.o): Add build rules. | |
3772 | * btrace.c (parse_xml_btrace): Update parameters. | |
3773 | (parse_xml_btrace_block): Set format field. | |
3774 | (btrace_add_pc, btrace_fetch): Use struct btrace_data. | |
3775 | (do_btrace_data_cleanup, make_cleanup_btrace_data): New. | |
3776 | (btrace_compute_ftrace): Split into this and... | |
3777 | (btrace_compute_ftrace_bts): ...this. | |
3778 | (btrace_stitch_trace): Split into this and... | |
3779 | (btrace_stitch_bts): ...this. | |
3780 | * btrace.h (parse_xml_btrace): Update parameters. | |
3781 | (make_cleanup_btrace_data): New. | |
3782 | * common/btrace-common.c: New. | |
3783 | * common/btrace-common.h: Include common-defs.h. | |
3784 | (btrace_block_s): Update comment. | |
3785 | (btrace_format): New. | |
3786 | (btrace_format_string): New. | |
3787 | (btrace_data_bts): New. | |
3788 | (btrace_data): New. | |
3789 | (btrace_data_init, btrace_data_fini, btrace_data_empty): New. | |
3790 | * remote.c (remote_read_btrace): Update parameters. | |
3791 | * target.c (target_read_btrace): Update parameters. | |
3792 | * target.h (target_read_btrace): Update parameters. | |
3793 | (target_ops)<to_read_btrace>: Update parameters. | |
3794 | * x86-linux-nat.c (x86_linux_read_btrace): Update parameters. | |
3795 | * target-delegates.c: Regenerate. | |
3796 | * target-debug (target_debug_print_struct_btrace_data_p): New. | |
3797 | * nat/linux-btrace.c (linux_read_btrace): Split into this and... | |
3798 | (linux_read_bts): ...this. | |
3799 | * nat/linux-btrace.h (linux_read_btrace): Update parameters. | |
3800 | ||
bd2e0e9e DE |
3801 | 2015-02-06 Doug Evans <dje@google.com> |
3802 | ||
3803 | * remote-m32r-sdi.c: Include symfile.h. | |
3804 | ||
f176c4b5 DE |
3805 | 2015-02-06 Doug Evans <dje@google.com> |
3806 | ||
3807 | * symtab.h (clear_symtab_users, deduce_language_from_filename): Move | |
3808 | * symfile.h (clear_symtab_users, deduce_language_from_filename): ... | |
3809 | to here. | |
3810 | ||
d6c146e9 PA |
3811 | 2015-02-06 Pedro Alves <palves@redhat.com> |
3812 | ||
3813 | * linux-thread-db.c (find_new_threads_callback): Add debug output. | |
3814 | ||
b9d61307 SM |
3815 | 2015-02-06 Simon Marchi <simon.marchi@ericsson.com> |
3816 | ||
3817 | PR gdb/15678 | |
3818 | * breakpoint.c (map_breakpoint_numbers): Check for empty args string. | |
3819 | (enable_count_command): Check args for NULL value. | |
3820 | ||
e9fbd043 DE |
3821 | 2015-02-05 Doug Evans <xdje42@gmail.com> |
3822 | ||
3823 | * guile/scm-frame.c: Fix spelling errors in a comment. | |
3824 | ||
881d5d5d JK |
3825 | 2015-02-04 Jan Kratochvil <jan.kratochvil@redhat.com> |
3826 | ||
3827 | * python/python-internal.h (Py_hash_t): Define it for Python <3.2. | |
3828 | * python/py-value.c (valpy_fetch_lazy): Use it. Remove cast to the | |
3829 | return type. | |
3830 | ||
20ba1ce6 PA |
3831 | 2015-02-04 Pedro Alves <palves@redhat.com> |
3832 | ||
3833 | * linux-nat.c (handle_extended_wait): Don't resume LWPs here. | |
3834 | (wait_lwp): Don't call wait_lwp if linux_handle_extended_wait | |
3835 | returns true. | |
3836 | (resume_stopped_resumed_lwps): Don't check whether the thread is | |
3837 | marked as executing. | |
3838 | (linux_nat_wait_1): Use resume_stopped_resumed_lwps. | |
3839 | ||
f962539a AA |
3840 | 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com> |
3841 | ||
3842 | * regset.h (struct regset): Add flags field. | |
3843 | (REGSET_VARIABLE_SIZE): New value for a regset's flags field. | |
3844 | * corelow.c (get_core_register_section): Add warning if the size | |
3845 | exceeds the requested size and the regset does not have the | |
3846 | REGSET_VARIABLE_SIZE flag set. | |
3847 | * alphanbsd-tdep.c (alphanbsd_gregset): Add REGSET_VARIABLE_SIZE | |
3848 | flag. | |
3849 | * armbsd-tdep.c (armbsd_gregset): Likewise. | |
3850 | * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise. | |
3851 | * hppaobsd-tdep.c (hppaobsd_gregset): Likewise. | |
3852 | * m68kbsd-tdep.c (m68kbsd_gregset): Likewise. | |
3853 | * mipsnbsd-tdep.c (mipsnbsd_gregset): Likewise. | |
3854 | ||
dde9acd6 AA |
3855 | 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com> |
3856 | ||
3857 | * amd64-linux-tdep.c (amd64_linux_iterate_over_regset_sections): | |
3858 | For ".reg-xstate", explicitly specify the requested section size | |
3859 | via X86_XSTATE_SIZE instead of just 0 on input and | |
3860 | X86_XSTATE_MAX_SIZE on output. | |
3861 | * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections): | |
3862 | Likewise. | |
3863 | ||
1528345d AA |
3864 | 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com> |
3865 | ||
3866 | PR corefiles/17808: | |
3867 | * gdbarch.sh (iterate_over_regset_sections_cb): Document this | |
3868 | function type, particularly its SIZE parameter. | |
3869 | * gdbarch.h: Regenerate. | |
3870 | * amd64-tdep.c (amd64_supply_fpregset): In gdb_assert, compare | |
3871 | actual against required size using ">=" instead of "==". | |
3872 | (amd64_collect_fpregset): Likewise. | |
3873 | * i386-tdep.c (i386_supply_gregset): Likewise. | |
3874 | (i386_collect_gregset): Likewise. | |
3875 | (i386_supply_fpregset): Likewise. | |
3876 | (i386_collect_fpregset): Likewise. | |
3877 | * mips-linux-tdep.c (mips_supply_gregset_wrapper): Likewise. | |
3878 | (mips_fill_gregset_wrapper): Likewise. | |
3879 | (mips_supply_fpregset_wrapper): Likewise. | |
3880 | (mips_fill_fpregset_wrapper): Likewise. | |
3881 | (mips64_supply_gregset_wrapper): Likewise. | |
3882 | (mips64_fill_gregset_wrapper): Likewise. | |
3883 | (mips64_supply_fpregset_wrapper): Likewise. | |
3884 | (mips64_fill_fpregset_wrapper): Likewise. | |
3885 | * mn10300-linux-tdep.c (am33_supply_gregset_method): Likewise. | |
3886 | (am33_supply_fpregset_method): Likewise. | |
3887 | (am33_collect_gregset_method): Likewise. | |
3888 | (am33_collect_fpregset_method): Likewise. | |
3889 | ||
518be979 DE |
3890 | 2015-02-04 Doug Evans <dje@google.com> |
3891 | Pedro Alves <palves@redhat.com> | |
3892 | Eli Zaretskii <eliz@gnu.org> | |
3893 | ||
3894 | PR tui/17810 | |
3895 | * tui/tui-command.c (tui_refresh_cmd_win): New function. | |
3896 | * tui/tui-command.c (tui_refresh_cmd_win): Declare. | |
3897 | * tui/tui-file.c: #include tui/tui-command.h. | |
3898 | (tui_file_fputs): Refresh command window if stream is not gdb_stdout. | |
3899 | (tui_file_flush): Refresh command window if stream is gdb_stdout. | |
3900 | * tui/tui-io.c (tui_puts): Remove calls to wrefresh, fflush. | |
3901 | ||
80bd5fab PA |
3902 | 2015-02-04 Pedro Alves <palves@redhat.com> |
3903 | ||
3904 | Fix build breakage. | |
3905 | * event-loop.c (gdb_do_one_event): Add default switch case. | |
3906 | ||
a7606d80 JK |
3907 | 2015-02-03 Jan Kratochvil <jan.kratochvil@redhat.com> |
3908 | ||
3909 | Filter out inferior gcc option -fpreprocessed. | |
3910 | * compile/compile.c (filter_args): New function. | |
3911 | (get_args): Use it. | |
3912 | ||
70b66289 PA |
3913 | 2015-02-03 Pedro Alves <palves@redhat.com> |
3914 | ||
3915 | * event-loop.c: Don't declare nor define a queue type for | |
3916 | gdb_event_p. | |
3917 | (event_queue): Delete. | |
3918 | (create_event, create_file_event, gdb_event_xfree) | |
3919 | (initialize_event_loop, process_event): Delete. | |
3920 | (gdb_do_one_event): Return as soon as one event is handled. | |
3921 | (handle_file_event): Change prototype. Used the passed in | |
3922 | file_handler pointer and ready_mask instead of looping over all | |
3923 | file handlers. | |
3924 | (gdb_wait_for_event): Update the poll/select timeouts before | |
3925 | blocking. Run event handlers directly instead of queueing events. | |
3926 | Return as soon as one event is handled. | |
3927 | (struct async_event_handler_data): Delete. | |
3928 | (invoke_async_event_handler): Delete. | |
3929 | (check_async_event_handlers): Change return type to int. Run | |
3930 | event handlers directly instead of queueing events. Return as | |
3931 | soon as one event is handled. | |
3932 | (handle_timer_event): Delete. | |
3933 | (update_wait_timeout): New function, factored out from | |
3934 | poll_timers. | |
3935 | (poll_timers): Reimplement. | |
3936 | * event-loop.h (initialize_event_loop): Delete declaration. | |
3937 | * top.c (gdb_init): Don't call initialize_event_loop. | |
3938 | ||
b7d2e916 PA |
3939 | 2015-02-03 Pedro Alves <palves@redhat.com> |
3940 | ||
3941 | * event-loop.c (clear_async_event_handler): New function. | |
3942 | * event-loop.h (clear_async_event_handler): New declaration. | |
3943 | * record-btrace.c (record_btrace_async): New function. | |
3944 | (init_record_btrace_ops): Install record_btrace_async. | |
3945 | * record-full.c (record_full_async): New function. | |
3946 | (record_full_resume): Don't mark the async event source here. | |
3947 | (init_record_full_ops): Install record_full_async. | |
3948 | (record_full_core_resume): Don't mark the async event source here. | |
3949 | (init_record_full_core_ops): Install record_full_async. | |
3950 | * remote.c (remote_async): Mark and clear the async stop reply | |
3951 | queue event-loop token as appropriate. | |
3952 | ||
d9d41e78 PA |
3953 | 2015-02-03 Pedro Alves <palves@redhat.com> |
3954 | ||
3955 | * linux-nat.c (linux_child_follow_fork, linux_nat_wait_1): Use | |
3956 | target_is_async_p instead of target_can_async. | |
3957 | (linux_nat_wait): Use target_is_async_p instead of | |
3958 | target_can_async. Don't enable async here. | |
3959 | * remote.c (interrupt_query, remote_wait, putpkt_binary): Use | |
3960 | target_is_async_p instead of target_can_async. | |
3961 | ||
aa3de267 SM |
3962 | 2015-02-02 Simon Marchi <simon.marchi@ericsson.com> |
3963 | ||
3964 | * varobj.h (lang_varobj_ops): Mention which return values need | |
3965 | to be freed. | |
3966 | ||
2c811c0f JB |
3967 | 2015-02-02 Joel Brobecker <brobecker@adacore.com> |
3968 | ||
3969 | * dwarf2loc.c (dwarf2_evaluate_property): Add i18n marker. | |
3970 | ||
b1eedac9 JB |
3971 | 2015-02-02 Joel Brobecker <brobecker@adacore.com> |
3972 | ||
3973 | PR gdb/17856: | |
3974 | * ada-lang.c (ada_lookup_symbol_list_worker): Do not re-cache | |
3975 | results found in the cache. | |
3976 | ||
66c168ae JB |
3977 | 2015-02-02 Joel Brobecker <brobecker@adacore.com> |
3978 | ||
3979 | PR gdb/17854: | |
3980 | * ada-lang.c (ada_get_symbol_cache): Set pspace_data->sym_cache | |
3981 | when allocating a new one. | |
3982 | ||
4bdc02b2 TT |
3983 | 2015-02-01 Tom Tromey <tom@tromey.com> |
3984 | ||
3985 | * MAINTAINERS: Remove myself. | |
3986 | ||
ae6ae975 DE |
3987 | 2015-01-31 Doug Evans <xdje42@gmail.com> |
3988 | ||
3989 | * dwarf2read.c (process_structure_scope): Update setting of | |
3990 | TYPE_VPTR_BASETYPE, TYPE_VPTR_FIELDNO. | |
3991 | * gdbtypes.c (internal_type_vptr_fieldno): New function. | |
3992 | (set_type_vptr_fieldno): New function. | |
3993 | (internal_type_vptr_basetype): New function. | |
3994 | (set_type_vptr_basetype): New function. | |
3995 | (get_vptr_fieldno): Update setting of TYPE_VPTR_FIELDNO, | |
3996 | TYPE_VPTR_BASETYPE. | |
3997 | (allocate_cplus_struct_type): Initialize vptr_fieldno. | |
3998 | (recursive_dump_type): Printing of vptr_fieldno, vptr_basetype ... | |
3999 | (print_cplus_stuff): ... moved here. | |
4000 | (copy_type_recursive): Don't copy TYPE_VPTR_BASETYPE. | |
4001 | * gdbtypes.h (struct main_type): Members vptr_fieldno, vptr_basetype | |
4002 | moved to ... | |
4003 | (struct cplus_struct_type): ... here. All uses updated. | |
4004 | (TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE): Rewrite. | |
4005 | (internal_type_vptr_fieldno, set_type_vptr_fieldno): Declare. | |
4006 | (internal_type_vptr_basetype, set_type_vptr_basetype): Declare. | |
4007 | * stabsread.c (read_tilde_fields): Update setting of | |
4008 | TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE. | |
4009 | ||
09e2d7c7 DE |
4010 | 2015-01-31 Doug Evans <xdje42@gmail.com> |
4011 | ||
4012 | * cp-valprint.c (cp_find_class_member): Rename parameter domain_p | |
4013 | to self_p. | |
4014 | (cp_print_class_member): Rename local domain to self_type. | |
4015 | * dwarf2read.c (quirk_gcc_member_function_pointer): Rename local | |
4016 | domain_type to self_type. | |
4017 | (set_die_type) <need_gnat_info>: Handle | |
4018 | TYPE_CODE_METHODPTR, TYPE_CODE_MEMBERPTR, TYPE_CODE_METHOD. | |
4019 | * gdb-gdb.py (StructMainTypePrettyPrinter): Handle | |
4020 | TYPE_SPECIFIC_SELF_TYPE. | |
4021 | * gdbtypes.c (internal_type_self_type): New function. | |
4022 | (set_type_self_type): New function. | |
4023 | (smash_to_memberptr_type): Rename parameter domain to self_type. | |
4024 | Update setting of TYPE_SELF_TYPE. | |
4025 | (smash_to_methodptr_type): Update setting of TYPE_SELF_TYPE. | |
4026 | (smash_to_method_type): Rename parameter domain to self_type. | |
4027 | Update setting of TYPE_SELF_TYPE. | |
4028 | (check_stub_method): Call smash_to_method_type. | |
4029 | (recursive_dump_type): Handle TYPE_SPECIFIC_SELF_TYPE. | |
4030 | (copy_type_recursive): Ditto. | |
4031 | * gdbtypes.h (enum type_specific_kind): New value | |
4032 | TYPE_SPECIFIC_SELF_TYPE. | |
4033 | (struct main_type) <type_specific>: New member self_type. | |
4034 | (struct cplus_struct_type) <fn_field.type>: Update comment. | |
4035 | (TYPE_SELF_TYPE): Rewrite. | |
4036 | (internal_type_self_type, set_type_self_type): Declare. | |
4037 | * gnu-v3-abi.c (gnuv3_print_method_ptr): Rename local domain to | |
4038 | self_type. | |
4039 | (gnuv3_method_ptr_to_value): Rename local domain_type to self_type. | |
4040 | * m2-typeprint.c (m2_range): Replace TYPE_SELF_TYPE with | |
4041 | TYPE_TARGET_TYPE. | |
4042 | * stabsread.c (read_member_functions): Mark methods with | |
4043 | TYPE_CODE_METHOD, not TYPE_CODE_FUNC. Update setting of | |
4044 | TYPE_SELF_TYPE. | |
4045 | ||
4bfb94b8 DE |
4046 | 2015-01-31 Doug Evans <xdje42@gmail.com> |
4047 | ||
4048 | * gdbtypes.h (TYPE_SELF_TYPE): Renamed from TYPE_DOMAIN_TYPE. | |
4049 | All uses updated. | |
4050 | ||
5f4ce105 DE |
4051 | 2015-01-31 Doug Evans <xdje42@gmail.com> |
4052 | ||
4053 | * gnu-v3-abi.c (gnuv3_dynamic_class): Assert only passed structs | |
4054 | or unions. Return zero if union. | |
4055 | (gnuv3_get_vtable): Call check_typedef. Assert only passed structs. | |
4056 | (gnuv3_rtti_type): Pass already-check_typedef'd value to | |
4057 | gnuv3_get_vtable. | |
4058 | (compute_vtable_size): Assert only passed structs. | |
4059 | (gnuv3_print_vtable): Don't call gnuv3_get_vtable for non-structs. | |
4060 | ||
f6b3afbf DE |
4061 | 2015-01-31 Doug Evans <xdje42@gmail.com> |
4062 | ||
4063 | * gdbtypes.c (copy_type_recursive): Handle all TYPE_SPECIFIC_FIELD | |
4064 | kinds. | |
4065 | ||
cfb069a8 GB |
4066 | 2015-01-31 Gary Benson <gbenson@redhat.com> |
4067 | Doug Evans <dje@google.com> | |
4068 | ||
4069 | PR cli/9007 | |
4070 | PR cli/11920 | |
4071 | PR cli/15548 | |
4072 | * cli/cli-cmds.c (complete_command): Notify user if max-completions | |
4073 | reached. | |
4074 | * common/common-exceptions.h (enum errors) | |
4075 | <MAX_COMPLETIONS_REACHED_ERROR>: New value. | |
4076 | * completer.h (get_max_completions_reached_message): New declaration. | |
4077 | (max_completions): Likewise. | |
4078 | (completion_tracker_t): New typedef. | |
4079 | (new_completion_tracker): New declaration. | |
4080 | (make_cleanup_free_completion_tracker): Likewise. | |
4081 | (maybe_add_completion_enum): New enum. | |
4082 | (maybe_add_completion): New declaration. | |
4083 | (throw_max_completions_reached_error): Likewise. | |
4084 | * completer.c (max_completions): New global variable. | |
4085 | (new_completion_tracker): New function. | |
4086 | (free_completion_tracker): Likewise. | |
4087 | (make_cleanup_free_completion_tracker): Likewise. | |
4088 | (maybe_add_completions): Likewise. | |
4089 | (throw_max_completions_reached_error): Likewise. | |
4090 | (complete_line): Remove duplicates and limit result to max_completions | |
4091 | entries. | |
4092 | (get_max_completions_reached_message): New function. | |
4093 | (gdb_display_match_list): Handle max_completions. | |
4094 | (_initialize_completer): New declaration and function. | |
4095 | * symtab.c: Include completer.h. | |
4096 | (completion_tracker): New static variable. | |
4097 | (completion_list_add_name): Call maybe_add_completion. | |
4098 | (default_make_symbol_completion_list_break_on_1): Renamed from | |
4099 | default_make_symbol_completion_list_break_on. Maintain | |
4100 | completion_tracker across calls to completion_list_add_name. | |
4101 | (default_make_symbol_completion_list_break_on): New function. | |
4102 | * top.c (init_main): Set rl_completion_display_matches_hook. | |
4103 | * tui/tui-io.c: Include completer.h. | |
4104 | (tui_old_rl_display_matches_hook): New static global. | |
4105 | (tui_rl_display_match_list): Notify user if max-completions reached. | |
4106 | (tui_setup_io): Save/restore rl_completion_display_matches_hook. | |
4107 | * NEWS (New Options): Mention set/show max-completions. | |
4108 | ||
e11c72c7 GB |
4109 | 2015-01-31 Gary Benson <gbenson@redhat.com> |
4110 | ||
4111 | * symtab.c (struct add_name_data) <code>: New field. | |
4112 | Updated comments. | |
4113 | (add_symtab_completions): New function. | |
4114 | (symtab_expansion_callback): Likewise. | |
4115 | (default_make_symbol_completion_list_break_on): Set datum.code. | |
4116 | Move minimal symbol scan before calling expand_symtabs_matching. | |
4117 | Scan known primary symtabs for externs and statics before calling | |
4118 | expand_symtabs_matching. Pass symtab_expansion_callback as | |
4119 | expansion_notify argument to expand_symtabs_matching. Do not scan | |
4120 | primary symtabs for externs and statics after calling | |
4121 | expand_symtabs_matching. | |
4122 | ||
276d885b GB |
4123 | 2015-01-31 Gary Benson <gbenson@redhat.com> |
4124 | ||
4125 | * symfile.h (expand_symtabs_exp_notify_ftype): New typedef. | |
4126 | (struct quick_symbol_functions) <expand_symtabs_matching>: | |
4127 | New argument expansion_notify. All uses updated. | |
4128 | (expand_symtabs_matching): New argument expansion_notify. | |
4129 | All uses updated. | |
4130 | * symfile-debug.c (debug_qf_expand_symtabs_matching): | |
4131 | Also print expansion notify. | |
4132 | * symtab.c (expand_symtabs_matching_via_partial): Call | |
4133 | expansion_notify whenever a partial symbol table is expanded. | |
4134 | * dwarf2read.c (dw2_expand_symtabs_matching): Call | |
4135 | expansion_notify whenever a symbol table is instantiated. | |
4136 | ||
82083d6d DE |
4137 | 2015-01-31 Doug Evans <xdje42@gmail.com> |
4138 | ||
4139 | * cli-out.c: #include completer.h, readline/readline.h. | |
4140 | (cli_mld_crlf, cli_mld_putch, cli_mld_puts): New functions. | |
4141 | (cli_mld_flush, cld_mld_erase_entire_line): Ditto. | |
4142 | (cli_mld_beep, cli_mld_read_key, cli_display_match_list): Ditto. | |
4143 | * cli-out.h (cli_display_match_list): Declare. | |
4144 | * completer.c (MB_INVALIDCH, MB_NULLWCH): New macros. | |
4145 | (ELLIPSIS_LEN): Ditto. | |
4146 | (gdb_get_y_or_n, gdb_display_match_list_pager): New functions. | |
4147 | (gdb_path_isdir, gdb_printable_part, gdb_fnwidth): Ditto. | |
4148 | (gdb_fnprint, gdb_print_filename): Ditto. | |
4149 | (gdb_complete_get_screenwidth, gdb_display_match_list_1): Ditto. | |
4150 | (gdb_display_match_list): Ditto. | |
4151 | * completer.h (mld_crlf_ftype, mld_putch_ftype): New typedefs. | |
4152 | (mld_puts_ftype, mld_flush_ftype, mld_erase_entire_line_ftype): Ditto. | |
4153 | (mld_beep_ftype, mld_read_key_ftype): Ditto. | |
4154 | (match_list_displayer): New struct. | |
4155 | (gdb_display_match_list): Declare. | |
4156 | * top.c (init_main): Set rl_completion_display_matches_hook. | |
4157 | * tui/tui-io.c: #include completer.h. | |
4158 | (printable_part, PUTX, print_filename, get_y_or_n): Delete. | |
4159 | (tui_mld_crlf, tui_mld_putch, tui_mld_puts): New functions. | |
4160 | (tui_mld_flush, tui_mld_erase_entire_line, tui_mld_beep): Ditto. | |
4161 | (tui_mld_getc, tui_mld_read_key): Ditto. | |
4162 | (tui_rl_display_match_list): Rewrite. | |
4163 | (tui_handle_resize_during_io): New arg for_completion. All callers | |
4164 | updated. | |
4165 | ||
f57d2163 DE |
4166 | 2015-01-31 Doug Evans <xdje42@gmail.com> |
4167 | ||
4168 | Add symbol lookup cache. | |
4169 | * NEWS: Document new options and commands. | |
4170 | * symtab.c (symbol_cache_key): New static global. | |
4171 | (DEFAULT_SYMBOL_CACHE_SIZE, MAX_SYMBOL_CACHE_SIZE): New macros. | |
4172 | (SYMBOL_LOOKUP_FAILED): New macro. | |
4173 | (symbol_cache_slot_state): New enum. | |
4174 | (block_symbol_cache): New struct. | |
4175 | (symbol_cache): New struct. | |
4176 | (new_symbol_cache_size, symbol_cache_size): New static globals. | |
4177 | (hash_symbol_entry, eq_symbol_entry): New functions. | |
4178 | (symbol_cache_byte_size, resize_symbol_cache): New functions. | |
4179 | (make_symbol_cache, free_symbol_cache): New functions. | |
4180 | (get_symbol_cache, symbol_cache_cleanup): New function. | |
4181 | (set_symbol_cache_size, set_symbol_cache_size_handler): New functions. | |
4182 | (symbol_cache_lookup, symbol_cache_clear_slot): New function. | |
4183 | (symbol_cache_mark_found, symbol_cache_mark_not_found): New functions. | |
4184 | (symbol_cache_flush, symbol_cache_dump): New functions. | |
4185 | (maintenance_print_symbol_cache): New function. | |
4186 | (maintenance_flush_symbol_cache): New function. | |
4187 | (symbol_cache_stats): New function. | |
4188 | (maintenance_print_symbol_cache_statistics): New function. | |
4189 | (symtab_new_objfile_observer): New function. | |
4190 | (symtab_free_objfile_observer): New function. | |
4191 | (lookup_static_symbol, lookup_global_symbol): Use symbol cache. | |
4192 | (_initialize_symtab): Init symbol_cache_key. New parameter | |
4193 | maint symbol-cache-size. New maint commands print symbol-cache, | |
4194 | print symbol-cache-statistics, flush-symbol-cache. | |
4195 | Install new_objfile, free_objfile observers. | |
4196 | ||
e700d1b2 JB |
4197 | 2015-01-31 Joel Brobecker <brobecker@adacore.com> |
4198 | ||
4199 | PR symtab/17855 | |
4200 | * symfile.c (clear_symtab_users): Move call to breakpoint_re_set | |
4201 | to end. | |
4202 | ||
9f050062 DE |
4203 | 2015-01-31 Doug Evans <xdje42@gmail.com> |
4204 | ||
4205 | * NEWS: Mention inlined scripts in .debug_gdb_scripts section. | |
4206 | * auto-load.c: #include ctype.h. | |
4207 | (struct auto_load_pspace_info): Replace member loaded_scripts with | |
4208 | new members loaded_script_files, loaded_script_texts. | |
4209 | (auto_load_pspace_data_cleanup): Update. | |
4210 | (init_loaded_scripts_info): Update. | |
4211 | (get_auto_load_pspace_data_for_loading): Update. | |
4212 | (maybe_add_script_file): Renamed from maybe_add_script. All callers | |
4213 | updated. | |
4214 | (maybe_add_script_text): New function. | |
4215 | (clear_section_scripts): Update. | |
4216 | (source_script_file, execute_script_contents): New functions. | |
4217 | (source_section_scripts): Add support for | |
4218 | SECTION_SCRIPT_ID_PYTHON_TEXT, SECTION_SCRIPT_ID_GUILE_TEXT. | |
4219 | (print_scripts): New function. | |
4220 | (auto_load_info_scripts): Also print inlined scripts. | |
4221 | (maybe_print_unsupported_script_warning): Renamed from | |
4222 | unsupported_script_warning_print. All callers updated. | |
4223 | (maybe_print_script_not_found_warning): Renamed from | |
4224 | script_not_found_warning_print. All callers updated. | |
4225 | * extension-priv.h (struct extension_language_script_ops): New member | |
4226 | objfile_script_executor. | |
4227 | * extension.c (ext_lang_objfile_script_executor): New function. | |
4228 | * extension.h (objfile_script_executor_func): New typedef. | |
4229 | (ext_lang_objfile_script_executor): Declare. | |
4230 | * guile/guile-internal.h (gdbscm_execute_objfile_script): Declare. | |
4231 | * guile/guile.c (guile_extension_script_ops): Update. | |
4232 | * guile/scm-objfile.c (gdbscm_execute_objfile_script): New function. | |
4233 | * python/python.c (python_extension_script_ops): Update. | |
4234 | (gdbpy_execute_objfile_script): New function. | |
4235 | ||
312809f8 EZ |
4236 | 2015-01-31 Eli Zaretskii <eliz@gnu.org> |
4237 | ||
4238 | * tui/tui-io.c (tui_expand_tabs): New function. | |
4239 | (tui_puts, tui_redisplay_readline): Expand TABs into the | |
4240 | appropriate number of spaces. | |
4241 | * tui/tui-regs.c: Include tui-io.h. | |
4242 | (tui_register_format): Call tui_expand_tabs to expand TABs into | |
4243 | the appropriate number of spaces. | |
4244 | * tui/tui-io.h: Add prototype for tui_expand_tabs. | |
4245 | ||
b6577aab DE |
4246 | 2015-01-30 Doug Evans <dje@google.com> |
4247 | ||
4248 | * NEWS: "info source" command now display producer string if present. | |
4249 | * source.c (source_info): Print producer string if present. | |
4250 | ||
6da58d3e SM |
4251 | 2015-01-30 Simon Marchi <simon.marchi@ericsson.com> |
4252 | ||
4253 | * varobj.c (varobj_delete): Fix comment. | |
4254 | ||
837ce252 SM |
4255 | 2015-01-30 Simon Marchi <simon.marchi@ericsson.com> |
4256 | ||
4257 | * varobj.c (create_child): Modify comment. | |
4258 | ||
b09e2c59 SM |
4259 | 2015-01-30 Simon Marchi <simon.marchi@ericsson.com> |
4260 | ||
4261 | * ada-varobj.c (ada_number_of_children): Constify struct varobj * | |
4262 | parameter. | |
4263 | (ada_name_of_variable): Same. | |
4264 | (ada_path_expr_of_child): Same. | |
4265 | (ada_value_of_variable): Same. | |
4266 | (ada_value_is_changeable_p): Same. | |
4267 | (ada_value_has_mutated): Same. | |
4268 | * c-varobj.c (varobj_is_anonymous_child): Same. | |
4269 | (c_is_path_expr_parent): Same. | |
4270 | (c_number_of_children): Same. | |
4271 | (c_name_of_variable): Same. | |
4272 | (c_path_expr_of_child): Same. | |
4273 | (get_type): Same. | |
4274 | (c_value_of_variable): Same. | |
4275 | (cplus_number_of_children): Same. | |
4276 | (cplus_name_of_variable): Same. | |
4277 | (cplus_path_expr_of_child): Same. | |
4278 | (cplus_value_of_variable): Same. | |
4279 | * jv-varobj.c (java_number_of_children): Same. | |
4280 | (java_name_of_variable): Same. | |
4281 | (java_path_expr_of_child): Same. | |
4282 | (java_value_of_variable): Same. | |
4283 | * varobj.c (number_of_children): Same. | |
4284 | (name_of_variable): Same. | |
4285 | (is_root_p): Same. | |
4286 | (varobj_ensure_python_env): Same. | |
4287 | (varobj_get_objname): Same. | |
4288 | (varobj_get_expression): Same. | |
4289 | (varobj_get_display_format): Same. | |
4290 | (varobj_get_display_hint): Same. | |
4291 | (varobj_has_more): Same. | |
4292 | (varobj_get_thread_id): Same. | |
4293 | (varobj_get_frozen): Same. | |
4294 | (dynamic_varobj_has_child_method): Same. | |
4295 | (varobj_get_gdb_type): Same. | |
4296 | (is_path_expr_parent): Same. | |
4297 | (varobj_default_is_path_expr_parent): Same. | |
4298 | (varobj_get_language): Same. | |
4299 | (varobj_get_attributes): Same. | |
4300 | (varobj_is_dynamic_p): Same. | |
4301 | (varobj_get_child_range): Same. | |
4302 | (varobj_value_has_mutated): Same. | |
4303 | (varobj_get_value_type): Same. | |
4304 | (number_of_children): Same. | |
4305 | (name_of_variable): Same. | |
4306 | (check_scope): Same. | |
4307 | (varobj_editable_p): Same. | |
4308 | (varobj_value_is_changeable_p): Same. | |
4309 | (varobj_floating_p): Same. | |
4310 | (varobj_default_value_is_changeable_p): Same. | |
4311 | ||
2568868e SM |
4312 | 2015-01-30 Simon Marchi <simon.marchi@ericsson.com> |
4313 | ||
4314 | * varobj.c (varobj_get_path_expr): Set var->path_expr. | |
4315 | * c-varobj.c (c_path_expr_of_child): Set local var instead of | |
4316 | child->path_expr. | |
4317 | (cplus_path_expr_of_child): Same. | |
4318 | ||
ca83fa81 SM |
4319 | 2015-01-30 Simon Marchi <simon.marchi@ericsson.com> |
4320 | ||
4321 | * mi-cmd-var.c (print_varobj): Free varobj_get_expression | |
4322 | result. | |
4323 | (mi_cmd_var_info_expression): Same. | |
4324 | * varobj.c (varobj_get_expression): Mention in the comment that | |
4325 | the result must by freed by the caller. | |
4326 | ||
afa269ae SM |
4327 | 2015-01-30 Simon Marchi <simon.marchi@ericsson.com> |
4328 | ||
4329 | * mi/mi-cmd-var.c (mi_cmd_var_info_type): Free result of | |
4330 | varobj_get_type. | |
4331 | (varobj_update_one): Same. | |
4332 | * varobj.c (update_type_if_necessary): Free curr_type_str and | |
4333 | new_type_str. | |
4334 | (varobj_get_type): Specify in comment that the result needs to be | |
4335 | freed by the caller. | |
4336 | ||
cd366ee8 DE |
4337 | 2015-01-29 Doug Evans <dje@google.com> |
4338 | ||
4339 | PR symtab/17890 | |
4340 | * dwarf2read.c (dwarf_decode_line_header): Punt if version > 4. | |
4341 | ||
38360086 MW |
4342 | 2015-01-25 Mark Wielaard <mjw@redhat.com> |
4343 | ||
4344 | * dwarf2read.c (checkproducer): Call producer_is_gcc. | |
4345 | * utils.c (producer_is_gcc_ge_4): Likewise. | |
4346 | (producer_is_gcc): New function. | |
4347 | * utils.h (producer_is_gcc): New declaration. | |
4348 | ||
df25ebbd JB |
4349 | 2015-01-29 Joel Brobecker <brobecker@adacore.com> |
4350 | ||
4351 | * gdbtypes.h (struct dynamic_prop): New PROP_ADDR_OFFSET enum | |
4352 | kind. | |
4353 | * gdbtypes.c (resolve_dynamic_type_internal): Replace "addr" | |
4354 | parameter by "addr_stack" parameter. | |
4355 | (resolve_dynamic_range): Replace "addr" parameter by | |
4356 | "stack_addr" parameter. Update function documentation. | |
4357 | Update code accordingly. | |
4358 | (resolve_dynamic_array, resolve_dynamic_union) | |
4359 | (resolve_dynamic_struct, resolve_dynamic_type_internal): Likewise. | |
4360 | (resolve_dynamic_type): Update code, following the changes made | |
4361 | to resolve_dynamic_type_internal's interface. | |
4362 | * dwarf2loc.h (struct property_addr_info): New. | |
4363 | (dwarf2_evaluate_property): Replace "address" parameter | |
4364 | by "addr_stack" parameter. Adjust function documentation. | |
4365 | (struct dwarf2_offset_baton): New. | |
4366 | (struct dwarf2_property_baton): Update documentation of | |
4367 | field "referenced_type" to be more general. New field | |
4368 | "offset_info" in union data field. | |
4369 | * dwarf2loc.c (dwarf2_evaluate_property): Replace "address" | |
4370 | parameter by "addr_stack" parameter. Adjust code accordingly. | |
4371 | Add support for PROP_ADDR_OFFSET properties. | |
4372 | * dwarf2read.c (attr_to_dynamic_prop): Add support for | |
4373 | DW_AT_data_member_location attributes as well. Use case | |
4374 | statements instead of if/else condition. | |
4375 | ||
4a0ca9ec JB |
4376 | 2015-01-29 Joel Brobecker <brobecker@adacore.com> |
4377 | ||
4378 | * ada-varobj.c (ada_varobj_get_array_number_of_children): | |
4379 | Return zero if PARENT_VALUE is NULL and parent_type's | |
4380 | range type is dynamic. | |
4381 | ||
ddb87a81 JB |
4382 | 2015-01-29 Joel Brobecker <brobecker@adacore.com> |
4383 | ||
4384 | * gdbtypes.c (is_dynamic_type_internal) <TYPE_CODE_RANGE>: Return | |
4385 | nonzero if the type's subtype is dynamic. | |
4386 | (resolve_dynamic_range): Also resolve the range's subtype. | |
4387 | ||
3d7ad9b4 | 4388 | 2015-01-29 Alexander Klimov <alserkli@inbox.ru> (tiny patch) |
7a270e0c | 4389 | |
3d7ad9b4 | 4390 | Pushed by Joel Brobecker <brobecker@adacore.com>. |
7a270e0c AK |
4391 | * symfile.c (unmap_overlay_command): Initialize sec to NULL. |
4392 | ||
3a8b707a DE |
4393 | 2015-01-27 Doug Evans <dje@google.com> |
4394 | ||
4395 | * NEWS: Mention gdb.Objfile.username. | |
4396 | * python/py-objfile.c (objfpy_get_username): New function. | |
4397 | (objfile_getset): Add "username". | |
4398 | ||
d35b90fb MW |
4399 | 2015-01-24 Mark Wielaard <mjw@redhat.com> |
4400 | ||
4401 | * stack.c (return_command): Markup warning message with _. | |
4402 | ||
734ae125 DE |
4403 | 2015-01-24 Doug Evans <xdje42@gmail.com> |
4404 | ||
4405 | * gdbtypes.h (TYPE_TYPE_SPECIFIC): Delete. | |
4406 | ||
527f3840 JK |
4407 | 2015-01-24 Jan Kratochvil <jan.kratochvil@redhat.com> |
4408 | ||
4409 | Fix 100x slowdown regression on DWZ files. | |
4410 | * dwarf2read.c (struct dwarf2_per_objfile): Add line_header_hash. | |
4411 | (struct line_header): Add offset and offset_in_dwz. | |
4412 | (dwarf_decode_lines): Add parameter decode_mapping to the declaration. | |
4413 | (free_line_header_voidp): New declaration. | |
4414 | (line_header_hash, line_header_hash_voidp, line_header_eq_voidp): New | |
4415 | functions. | |
4416 | (dwarf2_build_include_psymtabs): Update dwarf_decode_lines caller. | |
4417 | (handle_DW_AT_stmt_list): Use line_header_hash. | |
4418 | (free_line_header_voidp): New function. | |
4419 | (dwarf_decode_line_header): Initialize offset and offset_in_dwz. | |
4420 | (dwarf_decode_lines): New parameter decode_mapping, use it. | |
4421 | (dwarf2_free_objfile): Free line_header_hash. | |
4422 | ||
f7e5394d SM |
4423 | 2015-01-23 Simon Marchi <simon.marchi@ericsson.com> |
4424 | ||
4425 | PR gdb/17416 | |
4426 | * valops.c (value_rtti_indirect_type): Catch exception thrown by | |
4427 | value_ind. | |
4428 | ||
743649fd MW |
4429 | 2015-01-15 Mark Wielaard <mjw@redhat.com> |
4430 | ||
4431 | * dwarf2read.c (read_subroutine_type): Set TYPE_NO_RETURN from | |
4432 | DW_AT_noreturn. | |
4433 | * gdbtypes.h (struct func_type): Add is_noreturn field flag. Make | |
4434 | calling_convention an 8 bit bit field. | |
4435 | (TYPE_NO_RETURN): New macro. | |
4436 | * infcmd.c (finish_command): Query if function does not return | |
4437 | normally. | |
4438 | * stack.c (return_command): Likewise. | |
4439 | ||
198297aa PA |
4440 | 2015-01-23 Pedro Alves <palves@redhat.com> |
4441 | ||
4442 | * linux-nat.c (linux_is_async_p): New macro. | |
4443 | (linux_nat_is_async_p): | |
4444 | (linux_nat_terminal_inferior): Check whether the target can async | |
4445 | instead of whether it is already async. | |
4446 | (linux_nat_terminal_ours): Don't check whether the target is | |
4447 | async. | |
4448 | (linux_async_pipe): Use linux_is_async_p. | |
4449 | ||
253828f1 JK |
4450 | 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com> |
4451 | ||
4452 | * NEWS (Changes since GDB 7.9): Add 'thread apply all' option | |
4453 | '-ascending'. | |
4454 | * thread.c (tp_array_compar_ascending, tp_array_compar): New. | |
4455 | (thread_apply_all_command): Parse CMD for tp_array_compar_ascending. | |
4456 | Sort tp_array using tp_array_compar. | |
4457 | (_initialize_thread): Extend thread_apply_all_command help. | |
4458 | ||
f0e8c4c5 JK |
4459 | 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com> |
4460 | ||
4461 | * corelow.c (core_open): Call also thread_command. | |
4462 | * gdbthread.h (thread_command): New prototype moved from ... | |
4463 | * thread.c (thread_command): ... here. | |
4464 | (thread_command): Make it global. | |
4465 | ||
03b79603 PA |
4466 | 2015-01-22 Pedro Alves <palves@redhat.com> |
4467 | ||
4468 | * configure.ac [*mingw32*]: Check $curses_found instead of | |
4469 | $prefer_curses. | |
4470 | * configure: Regenerate. | |
4471 | * windows-termcap.c: Remove HAVE_CURSES_H, HAVE_NCURSES_H and | |
4472 | HAVE_NCURSES_NCURSES_H checks. | |
4473 | ||
6b8a872f EZ |
4474 | 2015-01-22 Eli Zaretskii <eliz@gnu.org> |
4475 | ||
bbbbffbb | 4476 | * tui/tui.c (tui_enable) [__MINGW32__]: If the call to 'newterm' |
6b8a872f EZ |
4477 | fails with the 1st arg NULL, try again with "unknown". Don't test |
4478 | the "cup" capability: it isn't supported by the Windows port of | |
4479 | ncurses, but the Windows console driver is still capable of | |
4480 | supporting TUI. | |
4481 | ||
4b62a76e JK |
4482 | 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com> |
4483 | ||
4484 | * compile/compile.c (_initialize_compile): Use -fPIE for compile_args. | |
4485 | ||
82a864f9 EZ |
4486 | 2015-01-22 Eli Zaretskii <eliz@gnu.org> |
4487 | ||
4488 | * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h. | |
4489 | (ALLDEPFILES): Remove irix5-nat.c. These two are part of the | |
4490 | reason that "make TAGS" is broken. | |
4491 | ||
b35018fd CG |
4492 | 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com> |
4493 | ||
4494 | * hppa-tdep.c (inst_saves_gr): Fix logical working flow issues | |
4495 | and check additional store instructions. | |
4496 | ||
ffbc4646 WW |
4497 | 2015-01-21 Wei-cheng Wang <cole945@gmail.com> |
4498 | ||
4499 | * MAINTAINERS (Write After Approval): Add "Wei-cheng Wang". | |
4500 | ||
ddeca1df WW |
4501 | 2015-01-21 Wei-cheng Wang <cole945@gmail.com> |
4502 | ||
4503 | * ppc-linux-tdep.c (ppc_skip_trampoline_code, | |
4504 | ppc_canonicalize_syscall, ppc_linux_syscall_record, | |
4505 | ppc_linux_record_signal, ppc_init_linux_record_tdep): Add comments. | |
4506 | * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise. | |
4507 | * rs6000-tdep.c (rs6000_epilogue_frame_cache, | |
4508 | rs6000_epilogue_frame_this_id, rs6000_epilogue_frame_prev_register, | |
4509 | rs6000_epilogue_frame_sniffer, ppc_record_vsr, ppc_process_record_op4, | |
4510 | ppc_process_record_op19, ppc_process_record_op31, | |
4511 | ppc_process_record_op59, ppc_process_record_op60, | |
4512 | ppc_process_record_op63): Likewise. | |
4513 | ||
049bb5de JB |
4514 | 2015-01-20 Joel Brobecker <brobecker@adacore.com> |
4515 | ||
4516 | * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string) | |
4517 | (linux_ptrace_test_ret_to_nx): Use safe_strerror instead of | |
4518 | strerror. | |
4519 | ||
42b87c63 | 4520 | 2015-01-20 Wei-cheng Wang <cole945@gmail.com> |
810c1026 WW |
4521 | |
4522 | * rs6000-tdep.c (ppc_process_record_op4, ppc_process_record_op19, | |
4523 | ppc_process_record_op31, ppc_process_record_op59, | |
4524 | ppc_process_record_op60, ppc_process_record_op63, | |
4525 | ppc_process_record): Fix -Wformat warning. | |
4526 | * rs6000-tdep.c (rs6000_epilogue_frame_cache, ppc_process_record_op60): | |
4527 | Remove unused variables. | |
4528 | ||
569340fc CG |
4529 | 2015-01-20 Chen Gang <gang.chen.5i5j@gmail.com> |
4530 | ||
4531 | * MAINTAINERS (Write After Approval): Add "Chen Gang". | |
4532 | ||
63413d85 EZ |
4533 | 2015-01-19 Eli Zaretskii <eliz@gnu.org> |
4534 | ||
4535 | * configure.ac [*mingw32*]: Only add windows-termcap.o to | |
4536 | CONFIG_OBS if not building with a curses library. | |
4537 | * configure: Regenerate. | |
4538 | ||
4539 | * windows-termcap.c: Include defs.h. Make the whole body empty if | |
4540 | either one of HAVE_CURSES_H or HAVE_NCURSES_H or | |
4541 | HAVE_NCURSES_NCURSES_H is defined. | |
4542 | ||
16d8013c JB |
4543 | 2015-01-19 Joel Brobecker <brobecker@adacore.com> |
4544 | ||
4545 | * rs6000-tdep.c (rs6000_gdbarch_init): Move divide operator | |
4546 | from end of line to start of next line. | |
4547 | ||
cf90fd9a WW |
4548 | 2015-01-17 Wei-cheng Wang <cole945@gmail.com> |
4549 | ||
4550 | * ppc-linux-tdep.c (ppc_skip_trampoline_code): | |
4551 | Scan PLT stub backward for reverse debugging. | |
4552 | * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise. | |
4553 | ||
b4cdae6f WW |
4554 | 2015-01-17 Wei-cheng Wang <cole945@gmail.com> |
4555 | Ulrich Weigand <uweigand@de.ibm.com> | |
4556 | ||
4557 | * configure.tgt (powerpc*-*-linux): Add linux-record.o to | |
4558 | gdb_target_obs. | |
4559 | (ppc_linux_record_tdep, ppc64_linux_record_tdep): New for linux syscall | |
4560 | record. | |
4561 | (ppc_canonicalize_syscall, ppc_linux_syscall_record, | |
4562 | ppc_linux_record_signal, ppc_init_linux_record_tdep): New functions. | |
4563 | (ppc_linux_init_abi): Set process_record, process_record_signal. | |
4564 | * ppc-tdep.h (struct gdbarch_tdep): Add ppc_syscall_record and | |
4565 | ppc_linux_record_tdep to gdbarch_tdep. | |
4566 | (ppc_process_record): New declaration. | |
4567 | * rs6000-tdep.c (ppc_record_vsr, ppc_process_record_op4, | |
4568 | ppc_process_record_op19, ppc_process_record_op31, | |
4569 | ppc_process_record_op59, ppc_process_record_op60, | |
4570 | ppc_process_record_op63, ppc_process_record): New functions. | |
4571 | ||
2608dbf8 WW |
4572 | 2015-01-17 Wei-cheng Wang <cole945@gmail.com> |
4573 | ||
4574 | * rs6000-tdep.c (rs6000_in_function_epilogue_p): Rename to | |
4575 | rs6000_in_function_epilogue_frame_p and add an argument | |
4576 | for frame_info. | |
4577 | (rs6000_epilogue_frame_cache, rs6000_epilogue_frame_this_id, | |
4578 | rs6000_epilogue_frame_prev_register, rs6000_epilogue_frame_sniffer): | |
4579 | New functions. | |
4580 | (rs6000_epilogue_frame_unwind): New. | |
4581 | (rs6000_gdbarch_init): Append epilogue unwinder. | |
4582 | ||
4c347be6 SDJ |
4583 | 2015-01-16 Sergio Durigan Junior <sergiodj@redhat.com> |
4584 | ||
4585 | * nat/linux-personality.c: Replace "#ifndef | |
4586 | HAVE_DECL_ADDR_NO_RANDOMIZE" by "#if | |
4587 | !HAVE_DECL_ADDR_NO_RANDOMIZE", fixing a regression in RHEL-5 | |
4588 | systems. | |
4589 | ||
9f2850ba EZ |
4590 | 2015-01-16 Eli Zaretskii <eliz@gnu.org> |
4591 | ||
6cdb25f4 EZ |
4592 | * tui/tui-win.c (tui_rehighlight_all, tui_set_var_cmd): New |
4593 | functions. | |
4594 | (_initialize_tui_win) <border-kind, border-mode>: | |
4595 | <active-border-mode>: Use tui_set_var_cmd as the "set" function. | |
c54da50d EZ |
4596 | (tui_set_tab_width_command): Fix the commentary. |
4597 | ||
6cdb25f4 EZ |
4598 | * tui/tui-win.h: Add prototype for tui_rehighlight_all. |
4599 | ||
bf555842 EZ |
4600 | * tui/tui-win.c (tui_scroll_left_command, tui_scroll_right_command): |
4601 | Doc fix. | |
cb86fcc1 EZ |
4602 | (tui_set_tab_width_command): Delete and recreate the source and |
4603 | the disassembly windows, to show the effect of the changed tab | |
4604 | size immediately. | |
bf555842 | 4605 | |
9f2850ba EZ |
4606 | * tui/tui-data.h (LINE_PREFIX): Make shorter |
4607 | (MAX_PID_WIDTH): Enlarge from 14 to 19, to leave enough space for | |
4608 | "Thread NNNNN.XXXX" thread ID notation on Windows. | |
4609 | ||
95761b2d JK |
4610 | 2015-01-16 Jan Kratochvil <jan.kratochvil@redhat.com> |
4611 | ||
4612 | Fix gcc-5 compilation. | |
4613 | * hppa-tdep.c (inst_saves_gr): Fix parentheses typo. | |
4614 | ||
8cc73a39 SDJ |
4615 | 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com> |
4616 | ||
4617 | * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-personality.h. | |
4618 | (linux-personality.o): New rule. | |
4619 | * common/common-defs.h: Include <stdint.h>. | |
4620 | * config/aarch64/linux.mh (NATDEPFILES): Include | |
4621 | linux-personality.o. | |
4622 | * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise. | |
4623 | * config/arm/linux.mh (NATDEPFILES): Likewise. | |
4624 | * config/i386/linux64.mh (NATDEPFILES): Likewise. | |
4625 | * config/i386/linux.mh (NATDEPFILES): Likewise. | |
4626 | * config/ia64/linux.mh (NATDEPFILES): Likewise. | |
4627 | * config/m32r/linux.mh (NATDEPFILES): Likewise. | |
4628 | * config/m68k/linux.mh (NATDEPFILES): Likewise. | |
4629 | * config/mips/linux.mh (NATDEPFILES): Likewise. | |
4630 | * config/pa/linux.mh (NATDEPFILES): Likewise. | |
4631 | * config/powerpc/linux.mh (NATDEPFILES): Likewise. | |
4632 | * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise. | |
4633 | * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise. | |
4634 | * config/s390/linux.mh (NATDEPFILES): Likewise. | |
4635 | * config/sparc/linux64.mh (NATDEPFILES): Likewise. | |
4636 | * config/sparc/linux.mh (NATDEPFILES): Likewise. | |
4637 | * config/tilegx/linux.mh (NATDEPFILES): Likewise. | |
4638 | * config/xtensa/linux.mh (NATDEPFILES): Likewise. | |
4639 | * defs.h: Remove #include <stdint.h> (moved to | |
4640 | common/common-defs.h). | |
4641 | * linux-nat.c: Include nat/linux-personality.h. Remove #include | |
4642 | <sys/personality.h>; do not define ADDR_NO_RANDOMIZE (moved to | |
4643 | nat/linux-personality.c). | |
4644 | (linux_nat_create_inferior): Remove code to disable address space | |
4645 | randomization (moved to nat/linux-personality.c). Create cleanup | |
4646 | to disable address space randomization. | |
4647 | * nat/linux-personality.c: New file. | |
4648 | * nat/linux-personality.h: Likewise. | |
4649 | ||
fb23d554 SDJ |
4650 | 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com> |
4651 | ||
4652 | * Makefile.in (ALLDEPFILES): Including common/mingw-strerror.c and | |
4653 | common/posix-strerror.c. | |
4654 | (posix-strerror.o): New rule. | |
4655 | (mingw-strerror.o): Likewise. | |
4656 | * common/common-utils.h (safe_strerror): Move prototype to here, | |
4657 | from utils.h. | |
4658 | * common/common.host: New file. | |
4659 | * common/mingw-strerror.c: Likewise. | |
4660 | * common/posix-strerror.c: Likewise. | |
4661 | * configure: Regenerated. | |
4662 | * configure.ac: Source common/common.host. Add variable | |
4663 | common_host_obs to gdb_host_obs. | |
4664 | * contrib/ari/gdb_ari.sh: Mention gdb/common/mingw-strerror.c and | |
4665 | gdb/common/posix-strerror.c when warning about the use of | |
4666 | strerror. | |
4667 | * mingw-hdep.c (safe_strerror): Remove definition; move it to | |
4668 | common/mingw-strerror.c. | |
4669 | * posix-hdep.c (safe_strerror): Remove definition; move it to | |
4670 | common/posix-hdep.c. | |
4671 | * utils.h (safe_strerror): Remove prototype; move to | |
4672 | common/common-utils.h. | |
4673 | ||
3af8af43 JB |
4674 | 2015-01-15 Joel Brobecker <brobecker@adacore.com> |
4675 | ||
4676 | GDB 7.8.2 released. | |
4677 | ||
bafffb51 JB |
4678 | 2015-01-15 Joel Brobecker <brobecker@adacore.com> |
4679 | ||
4680 | * ada-lang.c (ada_array_bound_from_type): Ignore array's parallel | |
4681 | ___XA type if the array has already been fixed. | |
4682 | ||
cdf43629 YQ |
4683 | 2015-01-14 Yao Qi <yao@codesourcery.com> |
4684 | ||
4685 | * Makefile.in (ppc-linux.o): New rule. | |
4686 | * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add ppc-linux.o. | |
4687 | * configure.ac: AC_CHECK_FUNCS(getauxval). | |
4688 | * config.in: Re-generated. | |
4689 | * configure: Re-generated. | |
4690 | * nat/ppc-linux.h [__powerpc64__] (ppc64_64bit_inferior_p): | |
4691 | Declare. | |
4692 | * nat/ppc-linux.c: New file. | |
4693 | * ppc-linux-nat.c (ppc_linux_target_wordsize) [__powerpc64__]: | |
4694 | Call ppc64_64bit_inferior_p. | |
4695 | ||
514c5338 YQ |
4696 | 2015-01-14 Yao Qi <yao@codesourcery.com> |
4697 | ||
4698 | * ppc-linux-nat.c (PT_ORIG_R3, PT_TRAP): Move to | |
4699 | nat/ppc-linux.h. | |
4700 | (PPC_FEATURE_CELL, PPC_FEATURE_BOOKE): Likewise. | |
4701 | (PPC_FEATURE_HAS_DFP): Likewise. | |
4702 | (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise. | |
4703 | (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise. | |
4704 | (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise. | |
4705 | Include "nat/ppc-linux.h". | |
4706 | * nat/ppc-linux.h: New file. | |
4707 | * Makefile.in (HFILES_NO_SRCDIR): Add nat/ppc-linux.h. | |
4708 | ||
5589af0e PA |
4709 | 2015-01-14 Pedro Alves <palves@redhat.com> |
4710 | ||
4711 | PR gdb/17525 | |
4712 | * breakpoint.c: Include "interps.h". | |
4713 | (bpstat_do_actions_1): Also check whether the interpreter is | |
4714 | async. | |
4715 | ||
6c400b59 PA |
4716 | 2015-01-14 Pedro Alves <palves@redhat.com> |
4717 | ||
4718 | PR cli/17828 | |
4719 | * infrun.c (reinstall_readline_callback_handler_cleanup): Don't | |
4720 | reinstall if the interpreter is sync. | |
4721 | ||
e02c96a7 DE |
4722 | 2015-01-13 Doug Evans <dje@google.com> |
4723 | ||
4724 | * objfiles.c (objfile_filename): New function. | |
4725 | * objfiles.h (objfile_filename): Declare it. | |
4726 | (objfile_name): Add function comment. | |
4727 | * python/py-objfile.c (objfpy_lookup_objfile_by_name): Try both the | |
4728 | bfd file name (which may be realpath'd), and the original name. | |
4729 | ||
3b2f13ff JB |
4730 | 2015-01-13 Joel Brobecker <brobecker@adacore.com> |
4731 | ||
4732 | * NEWS: Create a new section for the next release branch. | |
4733 | Rename the section of the current branch, now that it has | |
4734 | been cut. | |
4735 | ||
b4cfe7f8 JB |
4736 | 2015-01-13 Joel Brobecker <brobecker@adacore.com> |
4737 | ||
4738 | GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37): | |
4739 | * version.in: Bump version to 7.9.50.DATE-cvs. | |
4740 | ||
92fc2e69 JB |
4741 | 2015-01-13 Joel Brobecker <brobecker@adacore.com> |
4742 | ||
4743 | * nat/linux-procfs.c (linux_proc_attach_tgid_threads): | |
4744 | Remove trailing new-line in argument of call to warning. | |
4745 | ||
f71f0b0d JB |
4746 | 2015-01-13 Joel Brobecker <brobecker@adacore.com> |
4747 | ||
4748 | * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing | |
4749 | new-line in argument of call to "warning". | |
4750 | ||
04dccad0 JB |
4751 | 2015-01-13 Joel Brobecker <brobecker@adacore.com> |
4752 | ||
4753 | * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found | |
4754 | in static block, then try searching for primitive types. | |
4755 | ||
08b13bdd PP |
4756 | 2015-01-12 Patrick Palka <patrick@parcs.ath.cx> |
4757 | ||
4758 | * top.h (gdb_add_history): Declare. | |
4759 | * top.c (command_count): New variable. | |
4760 | (gdb_add_history): New function. | |
4761 | (gdb_safe_append_history): New static function. | |
4762 | (quit_force): Call it. | |
4763 | (command_line_input): Use gdb_add_history instead of | |
4764 | add_history. | |
4765 | * event-top.c (command_line_handler): Likewise. | |
4766 | ||
4ac15b59 JC |
4767 | 2015-01-12 James Clarke <jrtc27@jrtc27.com> (tiny patch) |
4768 | ||
4769 | PR gdb/17046 | |
4770 | * darwin-nat.c: Replace <machine/setjmp.h> #include by | |
4771 | <setjmp.h> #include. | |
4772 | ||
005e54bb DE |
4773 | 2015-01-11 Doug Evans <xdje42@gmail.com> |
4774 | ||
4775 | * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME. | |
4776 | ||
439250fb DE |
4777 | 2015-01-11 Doug Evans <xdje42@gmail.com> |
4778 | ||
4779 | PR gdb/15830 | |
4780 | * NEWS: The "maint demangle" command is renamed as "demangle". | |
4781 | * demangle.c: #include cli/cli-utils.h, language.h. | |
4782 | (demangle_command): New function. | |
4783 | (_initialize_demangle): Add new command "demangle". | |
4784 | * maint.c (maintenance_demangle): Stub out. | |
4785 | (_initialize_maint_cmds): Update help text for "maint demangle", | |
4786 | and mark as deprecated. | |
4787 | ||
ebf3aa72 MK |
4788 | 2015-01-11 Mark Kettenis <kettenis@gnu.org> |
4789 | ||
4790 | * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that | |
4791 | inferior_thread is a function. | |
4792 | ||
6bf045cd PP |
4793 | 2015-01-09 Patrick Palka <patrick@parcs.ath.cx> |
4794 | ||
4795 | * Makefile.in (.y.c): Don't munge yacc's #line | |
4796 | directives. | |
4797 | ||
588dcc3e PP |
4798 | 2015-01-09 Patrick Palka <patrick@parcs.ath.cx> |
4799 | ||
4800 | * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper | |
4801 | to prompt for input. | |
4802 | * tui/tui-hooks.c (tui_query_hook): Remove. | |
4803 | (tui_install_hooks): Don't set deprecated_query_hook. | |
4804 | * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in | |
4805 | height calculation. Always update the command window's cur_line. | |
4806 | ||
9c02b525 PA |
4807 | 2015-01-09 Pedro Alves <palves@redhat.com> |
4808 | ||
4809 | * breakpoint.c (hardware_breakpoint_inserted_here_p): New | |
4810 | function. | |
4811 | * breakpoint.h (hardware_breakpoint_inserted_here_p): New | |
4812 | declaration. | |
4813 | * linux-nat.c (linux_nat_status_is_event): Move higher up in file. | |
4814 | (linux_resume_one_lwp): Store the thread's PC. Adjust to clear | |
4815 | stop_reason. | |
4816 | (check_stopped_by_watchpoint): New function. | |
4817 | (save_sigtrap): Reimplement. | |
4818 | (linux_nat_stopped_by_watchpoint): Adjust. | |
4819 | (linux_nat_lp_status_is_event): Delete. | |
4820 | (stop_wait_callback): Only call save_sigtrap after storing the | |
4821 | pending status. | |
4822 | (status_callback): If the thread had been stopped for a breakpoint | |
4823 | that has since been removed, discard the event and resume the LWP. | |
4824 | (count_events_callback, select_event_lwp_callback): Use | |
4825 | lwp_status_pending_p instead of linux_nat_lp_status_is_event. | |
4826 | (cancel_breakpoint): Rename to ... | |
4827 | (check_stopped_by_breakpoint): ... this. Record whether the LWP | |
4828 | stopped for a software breakpoint or hardware breakpoint. | |
4829 | (select_event_lwp): Only give preference to the stepping LWP in | |
4830 | all-stop mode. Adjust comments. | |
4831 | (stop_and_resume_callback): Remove references to new_pending_p. | |
4832 | (linux_nat_filter_event): Likewise. Leave exit events of the | |
4833 | leader thread pending here. Handle signal short circuiting here. | |
4834 | Only call save_sigtrap after storing the pending waitstatus. | |
4835 | (linux_nat_wait_1): Remove 'retry' label. Remove references to | |
4836 | new_pending. Don't handle leaving events the caller is not | |
4837 | interested in pending here, nor handle signal short-circuiting | |
4838 | here. Also give equal priority to all LWPs that have had events | |
4839 | in non-stop mode. If reporting a software breakpoint event, | |
4840 | unadjust the LWP's PC. | |
4841 | * linux-nat.h (enum lwp_stop_reason): New. | |
4842 | (struct lwp_info) <stop_pc>: New field. | |
4843 | (struct lwp_info) <stopped_by_watchpoint>: Delete field. | |
4844 | (struct lwp_info) <stop_reason>: New field. | |
4845 | * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust. | |
4846 | ||
8af756ef PA |
4847 | 2015-01-09 Pedro Alves <palves@redhat.com> |
4848 | ||
4849 | * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>: | |
4850 | Set the LWP's 'resumed' flag. | |
4851 | ||
8a99810d PA |
4852 | 2015-01-09 Pedro Alves <palves@redhat.com> |
4853 | ||
4854 | * linux-nat.c (linux_resume_one_lwp): New function. | |
4855 | (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp. | |
4856 | (linux_nat_resume): Use lwp_status_pending_p and | |
4857 | linux_resume_one_lwp. | |
4858 | (linux_handle_syscall_trap): Use linux_resume_one_lwp. | |
4859 | (linux_handle_extended_wait): Use linux_resume_one_lwp. | |
4860 | (status_callback, running_callback): Use lwp_status_pending_p. | |
4861 | (lwp_status_pending_p): New function. | |
4862 | (stop_and_resume_callback): Use lwp_status_pending_p. | |
4863 | (linux_nat_filter_event): Use linux_resume_one_lwp. | |
4864 | (linux_nat_wait_1): Always use status_callback to look for an LWP | |
4865 | with a pending status. Use linux_resume_one_lwp. | |
4866 | (resume_stopped_resumed_lwps): Use lwp_status_pending_p and | |
4867 | linux_resume_one_lwp. | |
4868 | ||
f7ce857f PA |
4869 | 2015-01-09 Pedro Alves <palves@redhat.com> |
4870 | ||
4871 | * breakpoint.c (bp_location_inserted_here_p): New function, | |
4872 | factored out from ... | |
4873 | (breakpoint_inserted_here_p): ... here. Use | |
4874 | ALL_BP_LOCATIONS_AT_ADDR. | |
4875 | (software_breakpoint_inserted_here_p): Use | |
4876 | bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR. | |
4877 | ||
c1a747c1 PA |
4878 | 2014-01-09 Pedro Alves <palves@redhat.com> |
4879 | ||
4880 | Skip enabling event reporting if the kernel supports | |
4881 | PTRACE_EVENT_CLONE. | |
4882 | * linux-thread-db.c: Include "nat/linux-ptrace.h". | |
4883 | (thread_db_use_events): New function. | |
4884 | (try_thread_db_load_1): Check thread_db_use_events before enabling | |
4885 | event reporting. | |
4886 | (update_thread_state): New function. | |
4887 | (attach_thread): Use it. Check thread_db_use_events before | |
4888 | enabling event reporting. | |
4889 | (thread_db_detach): Check thread_db_use_events before disabling | |
4890 | event reporting. | |
4891 | (find_new_threads_callback): Check thread_db_use_events before | |
4892 | enabling event reporting. Update the thread's state if not using | |
4893 | libthread_db events. | |
4894 | ||
a33e3959 PA |
4895 | 2015-01-09 Pedro Alves <palves@redhat.com> |
4896 | ||
4897 | * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're | |
4898 | about to wait for is > 0. | |
4899 | * linux-thread-db.c (find_new_threads_callback): Ignore thread if | |
4900 | the kernel thread ID is -1. | |
4901 | ||
8784d563 PA |
4902 | 2015-01-09 Pedro Alves <palves@redhat.com> |
4903 | ||
4904 | * linux-nat.c (attach_proc_task_lwp_callback): New function. | |
4905 | (linux_nat_attach): Use linux_proc_attach_tgid_threads. | |
4906 | (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's | |
4907 | ptrace option flags. | |
4908 | * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New | |
4909 | field. | |
4910 | * nat/linux-procfs.c: Include <dirent.h>. | |
4911 | (linux_proc_get_int): New parameter "warn". Handle it. | |
4912 | (linux_proc_get_tgid): Adjust. | |
4913 | (linux_proc_get_tracerpid): Rename to ... | |
4914 | (linux_proc_get_tracerpid_nowarn): ... this. | |
4915 | (linux_proc_pid_get_state): New function, factored out from | |
4916 | (linux_proc_pid_has_state): ... this. Add new parameter "warn" | |
4917 | and handle it. | |
4918 | (linux_proc_pid_is_gone): New function. | |
4919 | (linux_proc_pid_is_stopped): Adjust. | |
4920 | (linux_proc_pid_is_zombie_maybe_warn) | |
4921 | (linux_proc_pid_is_zombie_nowarn): New functions. | |
4922 | (linux_proc_pid_is_zombie): Use | |
4923 | linux_proc_pid_is_zombie_maybe_warn. | |
4924 | (linux_proc_attach_tgid_threads): New function. | |
4925 | * nat/linux-procfs.h (linux_proc_get_tgid): Update comment. | |
4926 | (linux_proc_get_tracerpid): Rename to ... | |
4927 | (linux_proc_get_tracerpid_nowarn): ... this, and update comment. | |
4928 | (linux_proc_pid_is_gone): New declaration. | |
4929 | (linux_proc_pid_is_zombie): Update comment. | |
4930 | (linux_proc_pid_is_zombie_nowarn): New declaration. | |
4931 | (linux_proc_attach_lwp_func): New typedef. | |
4932 | (linux_proc_attach_tgid_threads): New declaration. | |
4933 | * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to | |
4934 | use nowarn functions. | |
4935 | (linux_ptrace_attach_fail_reason_string): Move here from | |
4936 | gdbserver/linux-low.c and rename. | |
4937 | (ptrace_supports_feature): If the current ptrace options are not | |
4938 | known yet, check them now, instead of asserting. | |
4939 | * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string): | |
4940 | Declare. | |
4941 | ||
883ed13e PA |
4942 | 2015-01-09 Pedro Alves <palves@redhat.com> |
4943 | ||
4944 | * linux-thread-db.c (thread_db_find_new_threads_silently) | |
4945 | (try_thread_db_load_1, try_thread_db_load, thread_db_load_search) | |
4946 | (find_new_threads_once): Print debug output on gdb_stdlog. | |
4947 | ||
1710aab8 CG |
4948 | 2015-01-09 Chen Gang <gang.chen.5i5j@gmail.com> |
4949 | Pedro Alves <palves@redhat.com> | |
4950 | ||
4951 | * compile/compile.c: Include "gdb_wait.h". | |
4952 | (do_rmdir): Check return value, and free 'zap'. | |
4953 | ||
b597c318 YQ |
4954 | 2015-01-08 Pedro Alves <palves@redhat.com> |
4955 | Yao Qi <yao@codesourcery.com> | |
4956 | ||
4957 | * dwarf2loc.c (indirect_pieced_value): Don't call | |
4958 | gdb_sign_extend. Call extract_signed_integer instead. | |
4959 | * utils.c (gdb_sign_extend): Remove. | |
4960 | * utils.h (gdb_sign_extend): Remove declaration. | |
4961 | ||
025ac414 PM |
4962 | 2015-01-07 Pierre Muller <muller@sourceware.org> |
4963 | ||
4964 | PR symtab/17811 | |
4965 | * stabsread.c (define_symbol): Set language for C++ special symbols. | |
4966 | ||
fa5af12a PP |
4967 | 2015-01-07 Patrick Palka <patrick@parcs.ath.cx> |
4968 | ||
4969 | * inflow.c (initial_gdb_ttystate): Tweak comment. | |
4970 | ||
ea42d6f8 JB |
4971 | 2015-01-07 Joel Brobecker <brobecker@adacore.com> |
4972 | ||
4973 | * inflow.c (set_initial_gdb_ttystate): Add empty line after | |
4974 | comment documenting function. | |
4975 | ||
6a06d660 PP |
4976 | 2015-01-07 Patrick Palka <patrick@parcs.ath.cx> |
4977 | ||
4978 | * terminal.h (set_initial_gdb_ttystate): Declare. | |
4979 | * inflow.c (initial_gdb_ttystate): New static variable. | |
4980 | (set_initial_gdb_ttystate): New setter. | |
4981 | (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate | |
4982 | instead of our current terminal state. | |
4983 | * top.c (gdb_init): Call set_initial_gdb_ttystate. | |
4984 | ||
e810d75b JB |
4985 | 2015-01-07 Joel Brobecker <brobecker@adacore.com> |
4986 | ||
4987 | * guile/scm-type.c (tyscm_array_1): Add comment. | |
4988 | * python/py-type.c (typy_array_1): Add comment. | |
4989 | ||
fce10a84 JB |
4990 | 2015-01-06 Joel Brobecker <brobecker@adacore.com> |
4991 | ||
4992 | * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range | |
4993 | error if N2 is equal to N1 - 1. | |
4994 | ||
8503d6e1 JB |
4995 | 2015-01-06 Joel Brobecker <brobecker@adacore.com> |
4996 | ||
4997 | * python/py-type.c (typy_array_1): Do not raise negative-length | |
4998 | exception if N2 is equal to N1 - 1. | |
4999 | ||
4d29c0a8 DE |
5000 | 2015-01-03 Doug Evans <xdje42@gmail.com> |
5001 | ||
5002 | * c-exp.y: Whitespace cleanup. | |
5003 | (classify_inner_name): Remove extra ;. | |
5004 | ||
eaa6a9a4 MR |
5005 | 2015-01-02 Maciej W. Rozycki <macro@codesourcery.com> |
5006 | ||
5007 | * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack | |
5008 | offset signed. | |
5009 | ||
02fe9972 DE |
5010 | 2015-01-02 Doug Evans <dje@google.com> |
5011 | ||
5012 | * dwarf2read.c (setup_type_unit_groups): Remove outdated comment. | |
5013 | ||
e2ada9cb DE |
5014 | 2015-01-02 Doug Evans <dje@google.com> |
5015 | ||
5016 | * symtab.h (struct symbol): Fix typo in comment. | |
5017 | ||
32d0add0 JB |
5018 | 2015-01-01 Joel Brobecker <brobecker@adacore.com> |
5019 | ||
5020 | Update year range in copyright notice of all files. | |
5021 | ||
76f2b779 JB |
5022 | 2015-01-01 Joel Brobecker <brobecker@adacore.com> |
5023 | ||
5024 | * top.c (print_gdb_version): Update copyright year to 2015. | |
5025 | ||
077309e2 | 5026 | 2015-01-01 Joel Brobecker <brobecker@adacore.com> |
6bf6fd09 | 5027 | |
077309e2 | 5028 | * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014. |
6bf6fd09 | 5029 | |
077309e2 | 5030 | For older changes see ChangeLog-2014. |
c906108c SS |
5031 | \f |
5032 | Local Variables: | |
5033 | mode: change-log | |
5034 | left-margin: 8 | |
5035 | fill-column: 74 | |
5036 | version-control: never | |
57da7796 | 5037 | coding: utf-8 |
c906108c | 5038 | End: |