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