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