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