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