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