gdb/
[platform/upstream/binutils.git] / gdb / ChangeLog
1 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
2
3         Fix compatibility with older GCCs.
4         * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Initialize parameter.
5         * stack.c (read_frame_arg): Initialize val_deref.
6
7 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
8
9         Entry values NEWS entries, DWARF disassembly support.
10         * NEWS: New entry values entry.
11         (set print entry-values, show print entry-values)
12         (set debug entry-values, show debug entry-values): New entries.
13         * dwarf2loc.c (disassemble_dwarf_expression): New parameters start and
14         indent.  Remove variable start.  Move header printing out.  Respect
15         INDENT.  Support DW_OP_GNU_entry_value.
16         (locexpr_describe_location_1): Move the header printing here, extend
17         the disassemble_dwarf_expression passed parameters.
18
19 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
20
21         Display @entry parameter values even for references.
22         * ada-valprint.c (ada_val_print_1) <TYPE_CODE_REF>: Try also
23         coerce_ref_if_computed.
24         * c-valprint.c (c_val_print) <TYPE_CODE_REF>: Likewise.
25         * dwarf2expr.c (dwarf_block_to_dwarf_reg_deref): New function.
26         (execute_stack_op) <DW_OP_GNU_entry_value>: Add -1 deref_size to the
27         existing push_dwarf_reg_entry_value call.  Add new detection calling
28         dwarf_block_to_dwarf_reg_deref.  Update the error message.
29         (ctx_no_push_dwarf_reg_entry_value): New parameter deref_size.
30         * dwarf2expr.h
31         (struct dwarf_expr_context_funcs) <push_dwarf_reg_entry_value>: Add new
32         parameter deref_size, describe it in the comment.
33         (ctx_no_push_dwarf_reg_entry_value): Add new parameter deref_size.
34         (dwarf_block_to_dwarf_reg_deref): New declaration.
35         * dwarf2loc.c (dwarf_entry_parameter_to_value): Add new parameter
36         deref_size, describe it in the function comment.  New variables
37         data_src and size, fetch the alternative block accoring to DEREF_SIZE.
38         (dwarf_expr_push_dwarf_reg_entry_value): Add new parameter deref_size,
39         describe it in the function comment.  Fetch the alternative block
40         accoring to DEREF_SIZE.
41         (entry_data_value_coerce_ref, entry_data_value_copy_closure)
42         (entry_data_value_free_closure, entry_data_value_funcs): New.
43         (value_of_dwarf_reg_entry): New variables checked_type, target_type,
44         outer_val, target_val, val and addr.  Try to fetch and create also
45         referenced value content.
46         (pieced_value_funcs): NULL value for coerce_ref.
47         (needs_dwarf_reg_entry_value): Add new parameter deref_size.
48         * f-valprint.c (f_val_print) <TYPE_CODE_REF>: Try also
49         coerce_ref_if_computed.
50         * opencl-lang.c (opencl_value_funcs): NULL value for coerce_ref.
51         * p-valprint.c (pascal_val_print) <TYPE_CODE_REF>: Likewise.
52         * stack.c (read_frame_arg): Compare also dereferenced values.
53         * value.c (value_computed_funcs): Make the parameter v const, use
54         value_lval_const for it.
55         (value_lval_const, coerce_ref_if_computed): New function.
56         (coerce_ref): New variable retval.  Call also coerce_ref_if_computed.
57         * value.h (struct lval_funcs): New field coerce_ref.
58         (value_computed_funcs): Make the parameter v const.
59         (value_lval_const, coerce_ref_if_computed): New declarations.
60
61 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
62
63         Support @entry in input expressions.
64         * c-exp.y (ENTRY, unknown_cpp_name): New.
65         (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
66         (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
67         (variable: name_not_typename '@' ENTRY, name: ENTRY)
68         (name_not_typename: ENTRY): New.
69         (yylex): Recognize ENTRY.
70         * eval.c (evaluate_subexp_standard): Support also OP_VAR_ENTRY_VALUE.
71         * expprint.c (print_subexp_standard, dump_subexp_body_standard):
72         Likewise.
73         * parse.c (operator_length_standard): Likewise.
74         * std-operator.def: New operator OP_VAR_ENTRY_VALUE.
75
76 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
77
78         Display referenced values in backtraces.
79         * printcmd.c (print_variable_and_value): Set OPTS.DEREF_REF to 1.
80         * stack.c (print_frame_arg): Likewise.
81
82 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
83
84         Make some lval_funcs methods to default on NULL.
85         * valops.c (value_fetch_lazy): Check if lval_computed read method is
86         NULL.
87         (value_assign): Check if lval_computed write method is NULL.
88         * value.h (struct lval_funcs): Comment NULL values for read and write
89         methods.
90
91 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
92
93         Display @entry parameter values (without references).
94         * dwarf2expr.c (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
95         New functions.
96         * dwarf2expr.h (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
97         New declarations.
98         * dwarf2loc.c (dwarf2_find_location_expression): Support location list
99         entry record.
100         (dwarf_entry_parameter_to_value, value_of_dwarf_reg_entry)
101         (value_of_dwarf_block_entry, locexpr_read_variable_at_entry): New
102         functions.
103         (dwarf2_locexpr_funcs): Install locexpr_read_variable_at_entry.
104         (loclist_read_variable_at_entry): New function.
105         (dwarf2_loclist_funcs): Install loclist_read_variable_at_entry.
106         * dwarf2read.c (read_call_site_scope): Support also DW_OP_fbreg in
107         DW_AT_location, call dwarf_block_to_sp_offset for it.
108         * frame.h (print_entry_values_no, print_entry_values_only)
109         (print_entry_values_preferred, print_entry_values_if_needed)
110         (print_entry_values_both, print_entry_values_compact)
111         (print_entry_values_default, print_entry_values): New declarations.
112         (struct frame_arg): New field entry_kind.
113         (read_frame_arg): New parameter entryargp.
114         * mi/mi-cmd-stack.c (list_arg_or_local): New gdb_assert for
115         arg->entry_kind.  Optionally print the `@entry' suffix.
116         (list_args_or_locals): New variable entryarg, initialize it.
117         Initialize also entry_kind of arg and entryarg.  Conditionalize
118         list_arg_or_local for arg, add list_arg_or_local for entryarg.  Call
119         xfree for entryarg.error.
120         * stack.c (print_entry_values_no, print_entry_values_only)
121         (print_entry_values_preferred, print_entry_values_if_needed)
122         (print_entry_values_both, print_entry_values_compact)
123         (print_entry_values_default, print_entry_values_choices)
124         (print_entry_values): New variables.
125         (print_frame_arg): New gdb_assert for arg->entry_kind.  Optionally
126         print the `@entry' suffix, possibly in combination for
127         print_entry_values_compact.
128         (read_frame_arg): New parameter entryargp, new variables entryval,
129         entryval_error and val_equal.  Read in also entryargp, respect
130         print_entry_values, compare the values using val_equal, fill in also
131         argp->entry_kind (together with entryargp->entry_kind).
132         (print_frame_args): New variable entryarg, initialize it.
133         Conditionalize print_frame_arg for arg, add print_frame_arg for
134         entryarg.  Call xfree for entryarg.error.
135         (_initialize_stack): Call add_setshow_enum_cmd for `entry-values'.
136         * symtab.h (struct symbol_computed_ops): New field
137         read_variable_at_entry.
138
139 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
140
141         Code reshuffle.
142         * frame.h (struct frame_arg): New definition.
143         (read_frame_arg): New declaration.
144         * mi/mi-cmd-stack.c (list_arg_or_local): New functiom from ...
145         (list_args_or_locals): ... the code here.  New variable arg, call
146         read_frame_arg and list_arg_or_local with it.  Unify the
147         PRINT_SIMPLE_VALUES and PRINT_ALL_VALUES cases.  Call xfree for
148         arg.error.
149         * stack.c (print_frame_arg): New functiom from the code of
150         print_frame_args.
151         (read_frame_arg): New function.
152         (print_frame_args): Remove variable val.  New variable arg, call
153         read_frame_arg and print_frame_arg with it.  Call xfree for arg.error.
154
155 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
156
157         Protect entry values against self tail calls.
158         * dwarf2loc.c (VEC (CORE_ADDR), func_verify_no_selftailcall): New.
159         (dwarf_expr_dwarf_reg_entry_value): Call func_verify_no_selftailcall.
160
161 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
162
163         Recognize virtual tail call frames.
164         * Makefile.in (SFILES): Add dwarf2-frame-tailcall.c.
165         (HFILES_NO_SRCDIR): Add dwarf2-frame-tailcall.h.
166         (COMMON_OBS): Add dwarf2-frame-tailcall.o.
167         * dwarf2-frame-tailcall.c: New file.
168         * dwarf2-frame-tailcall.h: New file.
169         * dwarf2-frame.c: Include dwarf2-frame-tailcall.h.
170         (execute_cfa_program): New function comment.  Return INSN_PTR.  Reset
171         REGS.PREV only after CIE execution.
172         (struct dwarf2_frame_cache): New field tailcall_cache.
173         (dwarf2_frame_cache): New variables entry_pc, entry_cfa_sp_offset,
174         entry_cfa_sp_offset_p and instr.  Execute FDE instructions in two
175         parts, try to find entry_cfa_sp_offset.  Call
176         dwarf2_tailcall_sniffer_first.
177         (dwarf2_frame_prev_register): Call dwarf2_tailcall_prev_register_first
178         when appropriate.
179         (dwarf2_frame_dealloc_cache): New function.
180         (dwarf2_frame_sniffer): Preinitialize cache by dwarf2_frame_cache.
181         (dwarf2_frame_unwind): Install dwarf2_frame_dealloc_cache.
182         (dwarf2_signal_frame_unwind): Do not install dwarf2_frame_dealloc_cache.
183         (dwarf2_append_unwinders): Add dwarf2_tailcall_frame_unwind.
184         (dwarf2_frame_cfa): Support also dwarf2_tailcall_frame_unwind.
185         * dwarf2loc.c (func_addr_to_tail_call_list)
186         (tailcall_dump, call_sitep, VEC (call_sitep), chain_candidate)
187         (call_site_find_chain_1, call_site_find_chain): New.
188         * dwarf2loc.h (struct call_site_chain): New.
189         (call_site_find_chain): New declaration.
190         * frame.c (get_frame_address_in_block): Support also TAILCALL_FRAME.
191         * frame.h (enum frame_type): New entry TAILCALL_FRAME.
192         * python/py-frame.c (gdbpy_initialize_frames): Add TAILCALL_FRAME.
193         * stack.c (frame_info): Support also TAILCALL_FRAME.
194
195 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
196
197         Tail call sites reader implementation.
198         * dwarf2read.c (read_call_site_scope): Recognize DW_AT_GNU_tail_call,
199         fill in TYPE_TAIL_CALL_LIST.
200         * gdbtypes.h (struct func_type): New field tail_call_list.
201         (struct call_site): New field tail_call_next.
202         (TYPE_TAIL_CALL_LIST): New definition.
203
204 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
205
206         Implement basic support for DW_TAG_GNU_call_site.
207         * block.c: Include gdbtypes.h and exceptions.h.
208         (call_site_for_pc): New function.
209         * block.h (call_site_for_pc): New declaration.
210         * defs.h: Include hashtab.h.
211         (make_cleanup_htab_delete, core_addr_hash, core_addr_eq): New
212         declarations.
213         * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Install
214         ctx_no_push_dwarf_reg_entry_value.
215         * dwarf2expr.c (read_uleb128, read_sleb128): Support R as NULL.
216         (dwarf_block_to_dwarf_reg): New function.
217         (execute_stack_op) <DW_OP_GNU_entry_value>: Implement it.
218         (ctx_no_push_dwarf_reg_entry_value): New function.
219         * dwarf2expr.h (struct dwarf_expr_context_funcs): New field
220         push_dwarf_reg_entry_value.
221         (ctx_no_push_dwarf_reg_entry_value, dwarf_block_to_dwarf_reg): New
222         declarations.
223         * dwarf2loc.c: Include gdbcmd.h.
224         (dwarf_expr_ctx_funcs): New forward declaration.
225         (entry_values_debug, show_entry_values_debug, call_site_to_target_addr)
226         (dwarf_expr_reg_to_entry_parameter)
227         (dwarf_expr_push_dwarf_reg_entry_value): New.
228         (dwarf_expr_ctx_funcs): Install dwarf_expr_push_dwarf_reg_entry_value.
229         (dwarf2_evaluate_loc_desc_full): Handle NO_ENTRY_VALUE_ERROR.
230         (needs_dwarf_reg_entry_value): New function.
231         (needs_frame_ctx_funcs): Install it.
232         (_initialize_dwarf2loc): New function.
233         * dwarf2loc.h (entry_values_debug): New declaration.
234         * dwarf2read.c (struct dwarf2_cu): New field call_site_htab.
235         (read_call_site_scope): New forward declaration.
236         (process_full_comp_unit): Copy call_site_htab.
237         (process_die): Support DW_TAG_GNU_call_site.
238         (read_call_site_scope): New function.
239         (dwarf2_get_pc_bounds): Support NULL HIGHPC.
240         (dwarf_tag_name): Support DW_TAG_GNU_call_site.
241         (cleanup_htab): Delete.
242         (write_psymtabs_to_index): Use make_cleanup_htab_delete instead of it.
243         * exceptions.h (enum errors): New NO_ENTRY_VALUE_ERROR.
244         * gdb-gdb.py (StructMainTypePrettyPrinter): Support
245         FIELD_LOC_KIND_DWARF_BLOCK.
246         * gdbtypes.h (enum field_loc_kind): New entry
247         FIELD_LOC_KIND_DWARF_BLOCK.
248         (struct main_type): New loc entry dwarf_block.
249         (struct call_site, FIELD_DWARF_BLOCK, SET_FIELD_DWARF_BLOCK)
250         (TYPE_FIELD_DWARF_BLOCK): New.
251         * python/py-type.c: Include dwarf2loc.h.
252         (check_types_equal): Support FIELD_LOC_KIND_DWARF_BLOCK.  New
253         internal_error call on unknown FIELD_LOC_KIND.
254         * symtab.h (struct symtab): New field call_site_htab.
255         * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete)
256         (core_addr_hash, core_addr_eq): New functions.
257
258 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
259
260         Code reshuffle.
261         * gdb-gdb.py (StructMainTypePrettyPrinter): Change
262         TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC.  Move
263         calling_convention under func_stuff there.
264         * gdbtypes.c (make_function_type): Call INIT_FUNC_SPECIFIC.
265         (init_type) <TYPE_CODE_FUNC>: Likewise.
266         (recursive_dump_type): Change TYPE_SPECIFIC_CALLING_CONVENTION to
267         TYPE_SPECIFIC_FUNC.  New comment for tail_call_list.
268         * gdbtypes.h (enum type_specific_kind): Change
269         TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC.
270         (struct main_type) <type_specific>: Change calling_convention to
271         func_stuff.  Move calling_convention to ...
272         (struct func_type): ... this new struct.
273         (INIT_FUNC_SPECIFIC): New #define.
274         (TYPE_CALLING_CONVENTION): Change calling_convention to func_stuff.
275
276 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
277
278         Fix DW_OP_GNU_implicit_pointer for DWARF32 v3+ on 64-bit arches.
279         * dwarf2-frame.c (execute_stack_op): Initialize ctx->ref_addr_size.
280         * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Use
281         ctx->ref_addr_size.  Handle its invalid value.
282         * dwarf2expr.h (struct dwarf_expr_context): New field ref_addr_size.
283         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
284         (dwarf2_loc_desc_needs_frame): Initialize ctx->ref_addr_size.
285         * dwarf2loc.h (dwarf2_per_cu_ref_addr_size): New declaration.
286         * dwarf2read.c (decode_locdesc): Initialize ctx->ref_addr_size.
287         (dwarf2_per_cu_ref_addr_size): New function.
288
289 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
290
291         Code cleanup.
292         * dwarf2read.c (per_cu_header_read_in): New function.
293         (dwarf2_per_cu_addr_size, dwarf2_per_cu_offset_size): Use it, with new
294         variables cu_header_local and cu_headerp.
295
296 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
297
298         Fix initial language detection with -readnow.
299         * dwarf2read.c (dw2_find_symbol_file): Handle OBJF_READNOW case.
300         * symfile.h (struct quick_symbol_functions): State find_symbol_file
301         searches only for global symbols.
302
303 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
304
305         Fix printed anonymous struct name.
306         * dwarf2read.c (fixup_partial_die): Handle for anonymous structs also
307         DW_TAG_interface_type.  Strip for anonymous structs any prefixes.
308         (anonymous_struct_prefix): New function.
309         (determine_prefix): New variables retval.  Call anonymous_struct_prefix.
310         (dwarf2_name): Strip for anonymous structs any prefixes.
311
312 2011-10-07  Doug Evans  <dje@google.com>
313
314         * python/lib/gdb/printing.py (register_pretty_printer): New argument
315         `replace'.
316
317         * python/lib/gdb/printing.py: Whitespace cleanup.
318
319         * python/py-value.c (valpy_call): Initialize ftype to avoid compiler
320         warning.
321
322 2011-10-07  Pedro Alves  <pedro@codesourcery.com>
323
324         * linux-nat.h (ALL_LWPS): Remove the ptid parameter.
325         * amd64-linux-nat.c (amd64_linux_dr_set_control)
326         (amd64_linux_dr_set_addr, amd64_linux_dr_unset_status): Adjust.
327         * arm-linux-nat.c (arm_linux_insert_hw_breakpoint)
328         (arm_linux_remove_hw_breakpoint, arm_linux_insert_watchpoint)
329         (arm_linux_remove_watchpoint): Adjust.
330         * i386-linux-nat.c (i386_linux_dr_set_control)
331         (i386_linux_dr_set_addr, i386_linux_dr_unset_status): Adjust.
332         * ia64-linux-nat.c (ia64_linux_insert_watchpoint)
333         (ia64_linux_remove_watchpoint): Adjust.
334         * mips-linux-nat.c (write_watchpoint_regs): Adjust.
335         * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint)
336         (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
337         (ppc_linux_insert_mask_watchpoint)
338         (ppc_linux_remove_mask_watchpoint, ppc_linux_insert_watchpoint)
339         (ppc_linux_remove_watchpoint): Adjust.
340         * s390-nat.c (s390_insert_watchpoint, s390_remove_watchpoint):
341         Adjust.
342
343 2011-10-07  Corinna Vinschen  <vinschen@redhat.com>
344
345         * windows-nat.c: Include wchar.h to avoid compiler warnings.
346         (clear_win32_environment): New function for Cygwin to clear out
347         Win32 environment.
348         (windows_create_inferior): Prepare new environment from in_env
349         for Cygwin, too.
350
351 2011-10-07  Phil Muldoon  <pmuldoon@redhat.com>
352
353         PR python/13264
354         * python/py-value.c (valpy_call): Check that arguments are
355         a tuple.
356         (is_intlike): Remove call to CHECK_TYPEDEF.
357         (valpy_nonzero): Catch GDB exceptions.
358         (valpy_absolute): Ditto.
359         (valpy_lazy_string): Ditto.
360         (valpy_call): Ditto.
361         (valpy_get_is_optimized_out): Ditto.
362         (valpy_long): Ditto.
363         (valpy_float): Ditto.
364         (valpy_int): Call CHECK_TYPEDEF.  Catch GDB exceptions.
365         (valpy_richcompare): Ditto.
366
367 2011-10-07  Ulrich Weigand  <ulrich.weigand@linaro.org>
368
369         * inferior.h (disable_randomization): Declare.
370         * infrun.c (disable_randomization): New global variable.
371         (show_disable_randomization): New function.
372         (set_disable_randomization): Likewise.
373         (_initialize_infrun): Install set/show disable-randomization
374         commands.
375         * linux-nat.c (disable_randomization): Remove.
376         (show_disable_randomization): Likewise.
377         (set_disable_randomization): Likewise.
378         (_initialize_linux_nat): No longer install set/show
379         disable-randomization commands here.
380         (linux_nat_supports_disable_randomization): New function.
381         (linux_nat_add_target): Install it.
382         * remote.c (PACKET_QDisableRandomization): New enum value.
383         (remote_protocol_packets): Support QDisableRandomization.
384         (_initialize_remote): Likewise.
385         (remote_supports_disable_randomization): New function.
386         (init_remote_ops): Install it.
387         (extended_remote_supports_disable_randomization): New function.
388         (init_extended_remote_ops): Install it.
389         (extended_remote_disable_randomization): New function.
390         (extended_remote_create_inferior_1): Call it.
391         * target.h (struct target_ops): Add to_supports_disable_randomization.
392         (target_supports_disable_randomization): Add prototype.
393         * target.c (target_supports_disable_randomization): New function.
394         (find_default_supports_disable_randomization): Likewise.
395         (init_dummy_target): Install it.
396
397 2011-10-07  Kevin Pouget  <kevin.pouget@st.com>
398
399         Allow Python notification of new object-file loadings.
400         * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-newobjfilevent.c.
401         (SUBDIR_PYTHON_OBS): Add py-newobjfileevent.o.
402         Add build rule for this file.
403         * python/py-event.h (emit_new_objfile_event): New prototype.
404         (newobjfile): New Python event emitter.
405         * python/py-evts.c (gdbpy_initialize_py_events): Add new_objfile to
406         Python event registry.
407         * python/py-inferior.c: Include objfiles.h
408         (python_new_objfile): New function.
409         (gdbpy_initialize_inferior): Add python_new_objfile to the new objfile
410         observers.
411         * python/py-newobjfileevent.c: New file.
412         * python-internal.h (gdbpy_initialize_new_objfile_event): New
413         prototype.
414         * python/python.c (_initialize_python): Add 
415         gdbpy_initialize_new_objfile_event call.
416         * NEWS: Add item for new Python event "gdb.newobjfile"
417
418 2011-10-05  Tristan Gingold  <gingold@adacore.com>
419
420         * ada-tasks.c (read_atcb): Make ravenscar_task_name static.
421         Extract the ravenscar task name from the symbol for the atcb.
422
423 2011-10-04  Paul Koning  <paul_koning@dell.com>
424
425         * python/py-type.c (typy_make_iter): Add forward declaration.
426         (typy_fields_items):  Use the gdb.Type iterator.
427
428 2011-10-04  Paul Koning  <paul_koning@dell.com>
429
430         * NEWS: Add entry for Python gdb.Type mapping methods.
431
432 2011-10-04  Kevin Pouget  <kevin.pouget@st.com>
433
434         PR python/12691: Add the inferior to Python exited event
435         * python/py-exitedevent.c (create_exited_event_object): Add inferior
436         to exited_event.
437         * python/py-event.h (emit_exited_event): Likewise
438         * python/-inferior.c (python_inferior_exit): Likewise
439
440 2011-10-03  Joel Brobecker  <brobecker@adacore.com>
441
442         * ada-tasks.c (print_ada_task_info): Add "thread-id" field
443         in output of -ada-task-info GDB/MI command.
444
445 2011-10-03  Joel Brobecker  <brobecker@adacore.com>
446
447         * ada-lang.h (struct inferior): Declare.
448         (print_ada_task_info): Add declaration.
449         * ada-tasks.c (print_ada_task_info): Make non-static.
450         * mi/mi-cmds.c (mi_cmds): Add "ada-task-info".
451         * mi/mi-cmds.h (mi_cmd_ada_task_info): Add declaration.
452         * mi/mi-main.c: #include "ada-lang.h".
453         (mi_cmd_list_features): Add "ada-task-info" to the list
454         of supported features.
455         (mi_cmd_ada_task_info): New function.
456
457 2011-10-03  Joel Brobecker  <brobecker@adacore.com>
458
459         * python/python.c (python_run_simple_file): New function.
460         (source_python_script, source_python_script_for_objfile):
461         Replace call to PyRun_SimpleFile by call to
462         python_run_simple_file.
463
464 2011-10-03  Paul Koning  <paul_koning@dell.com>
465
466         * python/py-value.c (valpy_get_address): Use Py_XINCREF.
467         (value_to_value_object): Fetch value if it was lazy.
468
469 2011-10-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
470
471         Code cleanup.
472         * solib-svr4.c (svr4_default_sos):  Remove variables head and link_ptr.
473         Rearrange the code for it.
474
475 2011-10-02  Joel Brobecker  <brobecker@adacore.com>
476
477         * breakpoint.c (bkpt_print_recreate): Add call to
478         print_recreate_thread.
479
480 2011-09-29  Mike Frysinger  <vapier@gentoo.org>
481
482         * common/linux-ptrace.h (PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
483         PTRACE_GETFDPIC_INTERP): Define.
484
485 2011-09-28  Yao Qi  <yao@codesourcery.com>
486
487         * symfile.c (add_symbol_file_command): Update message on usage.
488
489 2011-09-28  Paul Koning  <paul_koning@dell.com>
490
491         * python/py-type.c (make_fielditem, typy_field_names, typy_items)
492         (typy_length, typy_get, typy_has_key, typy_make_iter)
493         (typy_iterkeys, typy_iteritems, typy_itervalues, typy_iter)
494         (typy_iterator_iter, typy_iterator_iternext)
495         (typy_iterator_dealloc): New functions to implement standard
496         Python mapping methods on gdb.Type object.
497         (gdb.TypeIterator): New Python type.
498         * python/python-internal.h (gdbpy_iter_kind): New enum.
499
500 2011-09-28  David S. Miller  <davem@davemloft.net>
501
502         * sparc-tdep.h (SPARC_F2_REGNUM, SPARC_F3_REGNUM, SPARC_F4_REGNUM,
503         SPARC_F5_REGNUM, SPARC_F6_REGNUM, SPARC_F7_REGNUM): New enums.
504         * sparc-tdep.c (sparc_complex_floating_p): New function.
505         (sparc32_store_arguments): Handle complex floats.
506         (sparc32_extract_return_value): Likewise.
507         (sparc32_store_return_value): Likewise.
508         (sparc32_stabs_argument_has_addr): Likewise.
509         * sparc64-tdep.c (sparc64_complex_floating_p): New function.
510         (sparc64_store_floating_fields): Handle complex floats.
511         (sparc64_store_arguments): Likewise.
512         (sparc64_store_return_value): Likewise.
513
514 2011-09-28  Eli Zaretskii  <eliz@gnu.org>
515
516         * windows-nat.c (env_sort) [!__CYGWIN__]: Function restored from
517         before the change on 2006-12-09.
518         (windows_create_inferior) [!__CYGWIN__]: Restore code that
519         generates the environment block for CreateProcessA, modulo the
520         Cygwin-specific parts that are not needed here.
521
522 2011-09-27  Tristan Gingold  <gingold@adacore.com>
523
524         * target.h (enum target_object): Add TARGET_OBJECT_DARWIN_DYLD_INFO.
525         * solib-darwin.c (DYLD_VERSION_MAX): Update number.
526         (darwin_solib_get_all_image_info_addr_at_init): New function.
527         (darwin_solib_read_all_image_info_addr): Likewise.
528         (darwin_solib_create_inferior_hook): Use the above two functions.
529         * darwin-nat.c (darwin_execvp): Renames retval to res.
530         (darwin_read_write_inferior): Update comment.
531         (darwin_read_dyld_info): New function.
532         (darwin_xfer_partial): Handle DYLD_INFO.
533
534 2011-09-27  Stan Shebs  <stan@codesourcery.com>
535
536         Add return address collection for tracepoints.
537         * tracepoint.c (encode_actions_1): Add case for $_ret.
538         (validate_actionline): Check for $_ret.
539         (trace_dump_actions): Ditto.
540         * ax-gdb.h (gen_trace_for_return_address): Declare.
541         * ax-gdb.c: Include arch-utils.h.
542         (gen_trace_for_return_address): New function.
543         (agent_command): Add return address special case.
544         * amd64-tdep.c: Include ax.h and ax-gdb.h.
545         (amd64_gen_return_address): New function.
546         (amd64_init_abi): Call it.
547         * i386-tdep.c: Include ax.h and ax-gdb.h.
548         (i386_gen_return_address): New function.
549         (i386_init_abi): Call it.
550         * arch-utils.h (default_gen_return_address): Declare.
551         * arch-utils.c (default_gen_return_address): New function.
552         * gdbarch.sh (gen_return_address): New method.
553         * gdbarch.h, gdbarch.c: Regenerate.
554
555 2011-09-23  Joseph Myers  <joseph@codesourcery.com>
556
557         PR gdb/13079
558         * i386-tdep.c (i386_frame_align): New.
559         (i386_gdbarch_init): Use i386_frame_align.
560
561 2011-09-23  Yao Qi  <yao@codesourcery.com>
562
563         * i386-linux-nat.c (i386_linux_resume): Use read_memory_unsigned_integer
564         to get address.
565
566 2011-09-22  Tristan Gingold  <gingold@adacore.com>
567
568         * fork-child.c (fork_inferior): Add exec_fun parameter.
569         Call exec_fun or execvp.
570         * inferior.h: Adjust prototype.
571         * gnu-nat.c (gnu_create_inferior): Adjust fork_inferior call.
572         * inf-ttrace.c (inf_ttrace_create_inferior): Ditto.
573         * inf-ptrace.c (inf_ptrace_create_inferior): Ditto.
574         * procfs.c (procfs_create_inferior): Ditto.
575         * darwin-nat.c (darwin_execvp): New function.
576         (darwin_create_inferior): Use it.
577
578 2011-09-22  Yao Qi  <yao@codesourcery.com>
579
580         * infrun.c (context_switch): Print debug message when switching to
581         a different thread.
582
583 2011-09-21  Ulrich Weigand  <uweigand@de.ibm.com>
584
585         * s390-tdep.c (s390_function_arg_pass_by_reference): Handle
586         complex and vector types.
587         (s390_return_value_convention): Likewise.
588
589         (s390_value_from_register): Call check_typedef.
590         (extend_simple_arg): Likewise.
591         (alignment_of): Likewise.
592         (s390_push_dummy_call): Likewise.
593         (s390_return_value): Likewise.
594
595 2011-09-21  Joseph Myers  <joseph@codesourcery.com>
596
597         * event-top.c (async_disconnect): If an exception is thrown from
598         quit_cover, call pop_all_targets.  Use TRY_CATCH instead of
599         catch_errors.
600         * top.c (quit_cover): Return void and take no arguments.
601         * top.h (quit_cover): Update prototype.
602
603 2011-09-20  Joseph Myers  <joseph@codesourcery.com>
604
605         * mi/mi-main.c (mi_load_progress): Restore saved_uiout value to
606         current_uiout, not uiout.
607
608 2011-09-19  Doug Evans  <dje@google.com>
609
610         * python/py-auto-load.c (source_section_scripts): Fix file
611         descriptor leak.
612         * python/python.c (source_python_script_for_objfile): Tweak comments.
613
614 2011-09-18  Yao Qi  <yao@codesourcery.com>
615             Ulrich Weigand  <ulrich.weigand@linaro.org>
616
617         Support displaced stepping for Thumb 16-bit insns.
618         * arm-tdep.c (THUMB_NOP) Define.
619         (thumb_copy_unmodified_16bit): New.
620         (thumb_copy_b, thumb_copy_bx_blx_reg): New.
621         (thumb_copy_alu_reg): New.
622         (arm_copy_svc): Move some common code to ...
623         (install_svc): ... here.  New.
624         (thumb_copy_svc): New.
625         (install_pc_relative): New.
626         (thumb_copy_pc_relative_16bit): New.
627         (thumb_decode_pc_relative_16bit): New.
628         (thumb_copy_16bit_ldr_literal): New.
629         (thumb_copy_cbnz_cbz): New.
630         (cleanup_pop_pc_16bit_all): New.
631         (thumb_copy_pop_pc_16bit): New.
632         (thumb_process_displaced_16bit_insn): New.
633         (thumb_process_displaced_32bit_insn): New.
634         (thumb_process_displaced_insn): process thumb instruction.
635
636         Support displaced stepping for Thumb 32-bit insns.
637         * arm-tdep.c (thumb_copy_unmodified_32bit): New.
638         (thumb2_copy_preload): New.
639         (thumb2_copy_copro_load_store): New.
640         (thumb2_copy_b_bl_blx): New.
641         (thumb2_copy_alu_imm): New.
642         (thumb2_copy_load_reg_imm): New.
643         (thumb2_copy_load_literal): New
644         (thumb2_copy_block_xfer): New.
645         (thumb_32bit_copy_undef): New.
646         (thumb_32bit_copy_unpred): New.
647         (thumb2_decode_ext_reg_ld_st): New.
648         (thumb2_decode_svc_copro): New.
649         (decode_thumb_32bit_store_single_data_item): New.
650         (thumb_copy_pc_relative_32bit): New.
651         (thumb_decode_pc_relative_32bit): New.
652         (decode_thumb_32bit_ld_mem_hints): New.
653         (thumb2_copy_table_branch): New
654         (thumb_process_displaced_32bit_insn): Process Thumb 32-bit
655         instructions.
656
657 2011-09-18  Yao Qi  <yao@codesourcery.com>
658
659         * arm-tdep.c (install_copro_load_store): PC is set 4-byte aligned.
660         (install_b_bl_blx): Likewise.
661
662 2011-09-17  Yao Qi  <yao@codesourcery.com>
663
664         * arm-tdep.c (install_ldr_str_ldrb_strb): Renamed to ...
665         (install_load_store): ... this.  New.
666         Change parameter BYTE to SIZE.
667         (arm_copy_ldr_str_ldrb_strb): Update caller.
668         (arm_decode_ld_st_word_ubyte): Update caller.
669
670 2011-09-17  Yao Qi  <yao@codesourcery.com>
671
672         * infrun.c (displaced_step_fixup): Move some code ...
673         (displaced_step_restore): ... here.  New function.
674         (handle_inferior_event): Cleanup displaced stepping state for both
675         child and parent when get forked or vforked event.
676         * regcache.c (get_thread_arch_aspace_regcache): New function.
677         get_thread_arch_regcache (): Call it.
678
679 2011-09-16  Joel Brobecker  <brobecker@adacore.com>
680
681         * ada-tasks.c (print_ada_task_info): New function, merging
682         short_task_info and info_tasks together.  Reimplement using
683         ui-out instead of printing to stdout directly.  Move the code
684         building and checking the task list here, instead of leaving it
685         in info_tasks_command.
686         (info_task): Move the code building and checking the task
687         list here, instead of leaving it in info_tasks_command.
688         (info_tasks_command): Delete code building and checking
689         the task list - moved elsewhere.  Update calls to info_tasks
690         and info_task.
691
692 2011-09-16  Joel Brobecker  <brobecker@adacore.com>
693
694         * ada-tasks.c (info_task): Delete parameter `from_tty'.
695
696 2011-09-16  Joel Brobecker  <brobecker@adacore.com>
697
698         * ada-tasks.c (info_tasks): Delete parameter `from_tty'.
699
700 2011-09-16  Joel Brobecker  <brobecker@adacore.com>
701
702         * ada-lang.h (ada_build_task_list): Remove parameter
703         `warn_if_null'.
704         * ada-tasks.c (ada_build_task_list): Remove parameter
705         `warn_if_null'.  Adjust implementation and documentation.
706         (valid_task_id, ada_get_environment_task)
707         iterate_over_live_ada_tasks): Adjust call to ada_build_task_list.
708         (info_tasks_command): Adjust implementation.
709         (task_command): Likewise.
710         * ravenscar-thread.c (ravenscar_find_new_threads): Fix call
711         to ada_build_task_list.
712
713 2011-09-16  Joel Brobecker  <brobecker@adacore.com>
714
715         * ada-tasks.c (ada_tasks_check_symbol_table, task_list): Delete.
716         (enum ada_known_tasks_kind, struct ada_tasks_inferior_data): New.
717         (ada_tasks_inferior_data_handle): New static global.
718         (get_ada_tasks_inferior_data): New function.
719         (ada_get_task_number, get_task_number_from_id, valid_task_id)
720         (ada_get_environment_task, iterate_over_live_ada_tasks)
721         (add_ada_task, read_known_tasks_array, read_known_tasks_list):
722         Adjust.
723         (ada_set_current_inferior_known_tasks_addr): New function.
724         (read_known_tasks, ada_build_task_list, short_task_info)
725         (info_tasks, info_task, info_tasks_command, task_command_1)
726         (task_command, ada_task_list_changed): Adjust.
727         (ada_tasks_invalidate_inferior_data): New function.
728         (ada_normal_stop_observer, ada_new_objfile_observer): Adjust.
729         (_initialize_tasks): Set ada_tasks_inferior_data_handle.
730         * ada-lang.h (struct inferior): Add declaration.
731         (ada_task_list_changed): Update profile.
732         * remote-wtx-pd.c: #include "inferior.h".
733         (switch_to_pd_internal): Update call to ada_task_list_changed.
734
735 2011-09-16  Joel Brobecker  <brobecker@adacore.com>
736
737         * ada-tasks.c: #include "progspace.h" and "objfiles.h".
738         (atcb_type, atcb_common_type, atcb_ll_type, atcb_call_type)
739         (atcb_fieldno): Delete these static globals.
740         (struct ada_tasks_pspace_data): New struct.
741         (ada_tasks_pspace_data_handle): New static global.
742         (get_ada_tasks_pspace_data): New function.
743         (ada_tasks_invalidate_pspace_data): New function.
744         (get_tcb_types_info, ptid_from_atcb_common, read_atcb)
745         (read_known_tasks_list, ada_new_objfile_observer): Adjust.
746         (_initialize_tasks): Create this module's per-progspace
747         data handle.
748
749 2011-09-16  Joel Brobecker  <brobecker@adacore.com>
750
751         * ada-tasks.c (struct atcb_fieldnos): Renames struct tcb_fieldnos.
752
753 2011-09-16  Tristan Gingold  <gingold@adacore.com>
754
755         * fork-child.c (fork_inferior): Update comment.  Use alloca
756         instead of xmalloc for argv.  Move len and shell_command
757         declarations in the block where they are used.
758         Only call execvp.  Factorize failure code.
759
760 2011-09-16  Abhijit Halder  <abhijit.k.halder@gmail.com>
761
762         Code cleanup.
763         * parse.c (write_exp_elt): Change argument to pass a pointer of union
764         `exp_element' instead of an element of the same and make the function
765         static.
766         (write_exp_elt_opcode, write_exp_elt_sym, write_exp_elt_block)
767         (write_exp_elt_objfile, write_exp_elt_longcst, write_exp_elt_dblcst)
768         (write_exp_elt_decfloatcst, write_exp_elt_type, write_exp_elt_intern):
769         Change argument of `write_exp_elt' function call.
770         Remove extra spaces from comments.
771         * parser-defs.h (write_exp_elt): Remove prototype.
772
773 2011-09-15  Paul Koning  <paul_koning@dell.com>
774
775         * python/py-cmd.c (gdbpy_string_to_argv): Decrement reference
776         count of item appended to list.
777         * python/py-type.c (typy_fields): Likewise.
778
779 2011-09-15  Paul Koning  <paul_koning@dell.com>
780
781         * MAINTAINERS (Write After Approval): Add myself to the list.
782
783 2011-09-15  Kevin Pouget  <kevin.pouget@st.com>
784
785         PR threads/12628
786         * linux-fork.c (checkpoint_command): Disallow checkpointing of
787         processes with multiple threads.
788         (inf_has_multiple_thread_cb): New function.
789         (inf_has_multiple_threads): New function.
790
791 2011-09-15  Kevin Pouget  <kevin.pouget@st.com>
792
793         PR Python/12692 Add gdb.selected_inferior() to Python interface.
794         * python/py-inferior.c (GdbMethods): New Python method definition.
795
796 2011-09-15  Kevin Pouget  <kevin.pouget@st.com>
797
798         Handle multiple breakpoint hits in Python interface:
799         * python/py-bpevent.c (create_breakpoint_event_object): Rename C/Python
800         variable to breakpoints.
801         * python/py-stopevent.c (emit_stop_event): Return a Python tuple of
802         bps instead of single breakpoint. Fix some space typos.
803         * python/py-stopevent.c (create_breakpoint_event_object): Rename
804         variable to breakpoints.
805
806 2011-09-15  Kevin Pouget  <kevin.pouget@st.com>
807
808         * breakpoint.c (describe_other_breakpoints): Do not write 'duplicate'
809         note if the breakpoint is internal.
810
811 2011-09-15  Kevin Pouget  <kevin.pouget@st.com>
812
813         * MAINTAINERS (Write After Approval): Add myself to the list
814
815 2011-09-14  Pedro Alves  <pedro@codesourcery.com>
816
817         * infrun.c (prepare_for_detach, wait_for_inferior)
818         (fetch_inferior_event): Don't flush the register cache.
819         * remote.c (struct stop_reply) <regcache>: Add comment.
820
821 2011-09-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
822
823         Remove excessive DWARF expressions memory duplication.
824         * dwarf2loc.c (per_cu_dwarf_call): Remove variable back_to and its use
825         for block.data.
826         (indirect_pieced_value): Remove variable result.  Remove variable
827         back_to and its use for baton.data.
828         (dwarf2_compile_expr_to_ax): Remove variable back_to and its use for
829         block.data.
830         * dwarf2read.c (dwarf2_fetch_die_location_block): Remove xmemdup.
831         Update the function comment.
832
833 2011-09-13  Pedro Alves  <pedro@codesourcery.com>
834
835         * inferior.h (ALL_INFERIORS): New.
836         * linux-thread-db.c (thread_db_find_new_threads_2): Remove check
837         for a stopped thread.
838         (thread_db_find_new_threads): Look for threads in all inferiors.
839
840 2011-09-13  Pedro Alves  <pedro@codesourcery.com>
841
842         * breakpoint.c (update_watchpoint): Handle the case of the
843         watchpoint to update not being in the breakpoint list yet.
844         (hw_watchpoint_use_count): New, factored out from
845         hw_watchpoint_used_count.
846         (hw_watchpoint_used_count): Rename to ...
847         (hw_watchpoint_used_count_others): ... this.  Add `except'
848         parameter.  Don't count resources of `except'.  Use
849         hw_watchpoint_use_count.
850
851 2011-09-13  Pedro Alves  <pedro@codesourcery.com>
852
853         * gdbthread.h (enum thread_state): Moved here.
854         (struct thread_info): Rename `executing_' field to `executing' and
855         `state_' to `state'.
856         * thread.c (enum thread_state): Moved to gdbthread.h.
857         (new_thread, add_thread_silent, delete_thread_1)
858         (any_live_thread_of_process, thread_alive, set_running)
859         (set_running, is_thread_state, any_running, is_executing)
860         (set_executing, finish_thread_state, print_thread_info)
861         (do_captured_thread_select): Adjust.
862
863 2011-09-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
864
865         Fix compatibility with gcc < 4.3 and non-gcc compilers.
866         * amd64-tdep.c (amd64_skip_xmm_prologue): Convert 0b constants.
867
868 2011-09-12  Pedro Alves  <pedro@codesourcery.com>
869             Matt Rice  <ratmice@gmail.com>
870
871         PR gdb/13175
872
873         * interps.c (struct interp) <interpreter_out>: Delete field.
874         (interp_new): Remove the data and uiout parameters and adjust.
875         (interp_set): Only set the current_uiout from the interpreter's
876         uiout after initializing the interpreter.  Adjust call to
877         init_proc.
878         (interp_ui_out): Adjust to call procs->ui_out_proc.
879         (interp_data, interp_name): New.
880         * interps.h (interp_init_ftype): Add `self' parameter.
881         (interp_ui_out_ftype): New typedef.
882         (struct interp_procs) <ui_out_proc>: New method pointer.
883         (interp_new): Remove the data and uiout parameters.
884         (interp_data, interp_name): Declare.
885         * tui/tui-interp.c (tui_init): Adjust prototype.
886         (tui_ui_out): New.
887         (_initialize_tui_interp): Install tui_ui_out.  Don't instanciate
888         tui_out here.  Adjust call to interp_new.
889         * tui/tui-io.c (tui_initialize_io): Don't set current_uiout here.
890         * cli/cli-interp.c (cli_interpreter_init): Adjust prototype.
891         (cli_ui_out): New.
892         (_initialize_cli_interp): Install it.  Adjust call to interp_new.
893         * mi/mi-common.h (struct mi_interp) <uiout>: New field.
894         * mi/mi-interp.c (mi_interpreter_init): Adjust prototype.
895         Initialize mi->uiout depending on the mi_version as extracted from
896         the interpreter's name.
897         (mi_ui_out): New.
898         (_initialize_mi_interp): Install mi_ui_out.  Adjust calls to
899         interp_new.  Don't allocate the ui_out's of the interpreters here.
900
901 2011-09-12  Aleksandar Ristovski  <aristovski@qnx.com>
902
903         * solib.c (solib_used): New function.
904         (update_solib_list, reload_shared_libraries_1): Check if objfile is used
905         by another so_list object before freeing it.
906
907 2011-09-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
908
909         Code cleanup.
910         * mi/mi-cmd-stack.c (list_args_or_locals): Use enum for the parameter
911         values.
912
913 2011-09-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
914
915         Code cleanup.
916         * amd64-tdep.c (amd64_skip_prologue): Move the XMM code to ...
917         (amd64_skip_xmm_prologue): ... this new function.  Describe its
918         parameters.  No longer use amd64_prologue_line_bug.
919         * defs.h (producer_is_gcc_ge_4): New declaration.
920         * dwarf2read.c (producer_is_gcc_ge_4): Move to utils.c.
921         (process_full_comp_unit): Update its caller.  Remove
922         amd64_prologue_line_bug initialization.
923         * symtab.h (struct symtab): Remove field amd64_prologue_line_bug.
924         * utils.c (producer_is_gcc_ge_4): Moved here from dwarf2read.c.
925
926 2011-09-09  Pedro Alves  <pedro@codesourcery.com>
927
928         * linux-nat.h (enum resume_kind): New.
929         (struct lwp_info) <last_resume_kind>: New field.
930         * linux-nat.c (linux_child_follow_fork): Set last_resume_kind to
931         resume_stop on the new lwp.
932         (add_lwp): Set last_resume_kind as resume_continue by default.
933         (lin_lwp_attach_lwp): Set last_resume_kind as resume_stop.
934         (resume_lwp): New, factored out from resume_callback.  Also check
935         for pending status in lp->waitstatus.
936         (resume_callback): Reimplement.
937         (resume_clear_callback): Set last_resume_kind as resume_stop.
938         (resume_set_callback): Set last_resume_kind as resume_continue.
939         (linux_nat_resume, linux_handle_extended_wait): Set
940         last_resume_kind.
941         (running_callback): Also check lp->waitstatus for pending events.
942         (select_singlestep_lwp_callback): Check that lp->last_resume_kind
943         is resume_step.
944         (stop_and_resume_callback): Don't re-resume if the core wanted the
945         lwp stopped.  Use resume_lwp instead of resume_callback.  Avoid
946         using an invalidated pointer.
947         (linux_nat_filter_event): Don't discard SIGSTOPs as delayed
948         SIGSTOPs if the core wanted the LWP to stop.
949         (linux_nat_wait_1) Don't consume a pending SIGSTOP if the core
950         wanted the lwp to stop.  If the core wanted the lwp to stop, and
951         the lwp stopped with a SIGSTOP, report a TARGET_SIGNAL_0 instead
952         of TARGET_SIGNAL_STOP.
953         (linux_nat_stop_lwp): Don't synchronously wait for the lwp to stop
954         here.  Instead, signal the lwp, and set the last_resume_kind to
955         resume_stop.
956
957 2011-09-09  Pedro Alves  <pedro@codesourcery.com>
958
959         * linux-nat.c (lin_lwp_attach_lwp): Return 1 (ignore) instead of
960         -1 (error), if the lwp exits right after attaching.
961
962 2011-09-08  Doug Evans  <dje@google.com>
963
964         * py-cmd.c: Some minor formatting fixes.
965         (gdbpy_parse_command_name): Rename text arg to name, make const.
966         All callers updated.
967         * python-internal.h (gdbpy_parse_command_name): Update.
968
969         * cli/cli-decode.c (add_cmd): Add comment.
970
971 2011-09-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
972
973         PR breakpoints/12435
974         * amd64-tdep.c (amd64_skip_prologue): New variables start_pc_sal,
975         next_sal, buf, offset and xmmreg.  Advance PC if it sees the PR.
976         * dwarf2read.c (process_full_comp_unit): Initialize
977         amd64_prologue_line_bug.
978         * symtab.h (struct symtab): New field amd64_prologue_line_bug.
979
980 2011-09-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
981
982         Fix TUI screen corruption.
983         * utils.c (fputs_maybe_filtered): Replace !input_from_terminal_p by
984         batch_flag.
985
986 2011-09-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
987
988         * findvar.c (read_var_value): Never return NULL, throw an error
989         instead.  Update the function comment.  State symbol name in the error
990         messages.
991         * python/py-frame.c (frapy_read_var): Remove handling of NULL from
992         read_var_value.
993         * stack.c (print_frame_args): Likewise.
994         * valops.c (value_of_variable): Likewise.
995
996 2011-09-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
997
998         * stack.c (print_frame_args): New variable except.  Wrap
999         read_var_value and common_val_print into TRY_CATCH.
1000
1001 2011-09-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
1002
1003         * eval.c (evaluate_subexp_standard) <OP_THIS>: Update the value_of_this
1004         caller to value_of_this.
1005         * p-exp.y: Update the value_of_this caller to value_of_this_silent.
1006         Twice.
1007         * valops.c (value_of_this): Remove parameter complain and variable ret.
1008         Update function comment.  Never return NULL by this code.
1009         (value_of_this_silent): New function.
1010         * value.h (value_of_this): Remove parameter complain.
1011         (value_of_this_silent): New declaration.
1012
1013 2011-09-07  Yao Qi  <yao@codesourcery.com>
1014
1015         * gdbthread.h (struct thread_info): Remove fields
1016         `stepping_through_solib_after_catch' and
1017         `stepping_through_solib_catchpoints'.
1018         * infrun.c (init_thread_stepping_state): Update.
1019         (process_event_stop_test, currently_stepping): Update.
1020         (currently_stepping_or_nexting_callback): Update.
1021
1022 2011-09-07  Yao Qi  <yao@codesourcery.com>
1023
1024         * gdbthread.h (struct thread_info): Comment on field
1025         `step_after_step_resume_breakpoint'.
1026
1027 2011-09-07  Abhijit Halder  <abhijit.k.halder@gmail.com>
1028
1029         * remote.c (remote_console_output): Reindent.
1030
1031 2011-09-06  Luis Machado  <lgustavo@codesourcery.com>
1032
1033         * frame.c (has_stack_frames): Check for currently selected
1034         traceframe.
1035
1036 2011-09-06  Pedro Alves  <pedro@codesourcery.com>
1037
1038         * event-top.h (MAXPROMPTS, struct prompts): Delete.
1039         (set_async_annotation_level, set_async_prompt, pop_prompt)
1040         (push_prompt, new_async_prompt): Delete declarations.
1041         * top.h (get_prompt, set_prompt): Change prototype.
1042         (get_prefix, set_prefix, get_suffix, set_suffix): Delete
1043         declarations.
1044         * top.c (command_loop):
1045         (top_prompt): New global.
1046         (get_prefix, set_prefix, get_suffix, ): Delete.
1047         (get_prompt, set_prompt): Rewrite.
1048         (show_new_async_prompt): Rename to ...
1049         (show_prompt): ... this.
1050         (init_main): Adjust.  Don't handle --annotate=2 here.
1051         * event-top.c (new_async_prompt): Delete.
1052         (the_prompts): Delete.
1053         (more_to_come): Make static.
1054         (display_gdb_prompt): Use top_level_prompt() to compute the top
1055         level prompt, and don't notify the before_prompt observers
1056         directly here.  Always trick readline into not trying to display
1057         the prompt if sync_execution and displaying the primary prompt.
1058         If displaying a local/secondary prompt, always show it, even if
1059         sync_execution is set.
1060         (change_annotation_level): Delete.
1061         (top_level_prompt): New, based on change_annotation_level.
1062         (push_prompt, pop_prompt): Delete.
1063         (async_disable_stdin): No longer pushes prompt.
1064         (command_line_handler): No longer pushes or pops prompt.  If more
1065         input is expected, call display_gdb_prompt with an explicit empty
1066         prompt.
1067         (async_stop_sig): Adjust.
1068         (set_async_annotation_level, set_async_prompt): Delete.
1069         * python/python.c (before_prompt_hook): Adjust.
1070
1071 2011-09-05  Pedro Alves  <pedro@codesourcery.com>
1072
1073         PR cli/13110
1074
1075         * infrun.c (fetch_inferior_event): Check if there's a selected
1076         thread before checking if the selected thread is executing.
1077
1078 2011-09-05  Pedro Alves  <pedro@codesourcery.com>
1079
1080         * inf-loop.c (execute_command): Don't check if the current thread
1081         if running before synchronously waiting for command completion.
1082         * infrun.c (fetch_inferior_event): Handle "set exec-done-display"
1083         here.
1084         (normal_stop): Call async_enable_stdin here.
1085         * inf-loop.c (inferior_event_handler): Don't call
1086         async_enable_stdin, nor handle "set exec-done-display" here.
1087
1088 2011-09-04  Joel Brobecker  <brobecker@adacore.com>
1089
1090         GDB 7.3.1 released.
1091
1092 2011-09-04  Joel Brobecker  <brobecker@adacore.com>
1093
1094         * NEWS: Change `7.3' into `7.3.1' in `Changes since GDB 7.3'.
1095
1096 2011-09-04  Joel Brobecker  <brobecker@adacore.com>
1097
1098         * NEWS: Add entry for OpenBSD/NetBSD build failure.
1099
1100 2011-09-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
1101
1102         * config/s390/s390.mh (NATDEPFILES): Add linux-procfs.o dependency.
1103
1104 2011-09-02  Matt Rice  <ratmice@gmail.com>
1105
1106         PR gdb/10720
1107         * event-top.c (cli_command_loop): Replace readline setup with
1108         direct call to display_gdb_prompt.
1109         (display_gdb_prompt): Do not call observer mechanism during
1110         synchronous execution.
1111
1112 2011-09-02  Pedro Alves  <pedro@codesourcery.com>
1113
1114         * linux-nat.c (in_pid_list_p): New.
1115         (linux_record_stopped_pid): Delete.
1116         (lin_lwp_attach_lwp): Check if PTRACE_ATTACH failed because we're
1117         already attached to the LWP.  Return an indication if so.
1118         (linux_nat_filter_event): Adjust.
1119         * linux-thread-db.c (attach_thread): Handle lin_lwp_attach_lwp
1120         returning an indication to ignore this thread.
1121
1122 2011-09-02  Pedro Alves  <pedro@codesourcery.com>
1123
1124         * top.c: Include interps.h.
1125         (execute_command): If the target can async, but the interpreter is
1126         in sync mode, synchronously wait for the command to finish before
1127         returning.
1128         (execute_command_to_string): Force the interpreter to sync mode.
1129         * infrun.c: Include interps.h.
1130         (fetch_inferior_event): Don't restore the prompt yet if the
1131         interpreter is in sync mode.
1132         * interps.c (interpreter_async): New global.
1133         * interps.h (interpreter_async): Declare.
1134         * inf-loop.c: Include interps.h.
1135         (inferior_event_handler): Don't print the language change or run
1136         breakpoint commands yet if the interpreter in is sync mode.
1137         * main.c (captured_command_loop): Flip the interpreter to async
1138         mode.
1139         * cli/cli-script.c: Include interps.h.
1140         (execute_user_command, while_command, if_command): Force the
1141         interpreter to sync mode.
1142         * python/python.c: Include interps.h.
1143         (python_command, execute_gdb_command): Force the interpreter to
1144         sync mode.
1145
1146 2011-09-02  Pedro Alves  <pedro@codesourcery.com>
1147
1148         * value.c (show_convenience): Catch errors thrown while printing
1149         each internal variable.
1150         * infrun.c (validate_siginfo_access): New function.
1151         (siginfo_value_read, siginfo_value_write): Call it.
1152
1153 2011-09-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
1154
1155         Revert:
1156         2010-05-21  Pierre Muller  <muller@ics.u-strasbg.fr>
1157         * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
1158         attribute.
1159
1160 2011-08-29  Yao Qi  <yao@codesourcery.com>
1161
1162         * solib-dsbt.c (bfd_lookup_symbol): Removed.
1163         (cmp_name): New.
1164         (enable_break2): Update caller.
1165         * solib-frv.c (bfd_lookup_symbol): Removed.
1166         (cmp_name): New.
1167         (enable_break2): Update caller.
1168         * solib-pa64.c (bfd_lookup_symbol): Removed.
1169         (cmp_name): New.
1170         * solib-svr4.c (bfd_lookup_symbol): Removed.
1171         (cmp_name_and_sec_flags): New.
1172         (enable_break): Update caller.
1173         * solib.c (gdb_bfd_lookup_symbol_from_symtab): New.
1174         (gdb_bfd_lookup_symbol_from_dyn_symtab): New.
1175         (gdb_bfd_lookup_symbol): New.
1176         * solib.h: Functions declarations.
1177
1178 2011-08-29  Yao Qi  <yao@codesourcery.com>
1179
1180         * Makefile.in (ALL_TARGET_OBS): Add tic6x-tdep.o tic6x-linux-tdep.o
1181         and solib-dsbt.o.
1182
1183 2011-08-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
1184
1185         Fix TUI stepi on code without symbols.
1186         * tui/tui-stack.c (tui_show_frame_info): Remove error, set LOW for
1187         current PC instead.
1188
1189 2011-08-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
1190
1191         Code cleanup.
1192         * mi/mi-cmd-stack.c (list_args_or_locals): Remove stb initialization
1193         and the static keyword.
1194         * mi/mi-cmd-target.c (mi_cmd_target_file_get, mi_cmd_target_file_put):
1195         Make prefix an array.
1196         * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
1197         * mi/mi-main.c (get_register): Remove stb initialization and the static
1198         keyword.
1199
1200 2011-08-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
1201
1202         Code cleanup - make mi_opt const.
1203         * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Make
1204         opts const.
1205         * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
1206         * mi/mi-cmd-env.c (mi_cmd_env_path): Likewise.
1207         (mi_cmd_env_dir): Likewise.
1208         * mi/mi-cmd-target.c (mi_cmd_target_file_get): Likewise.
1209         (mi_cmd_target_file_put): Likewise.
1210         * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
1211         * mi/mi-cmd-var.c (mi_cmd_var_evaluate_expression): Likewise.
1212         * mi/mi-getopt.c (mi_getopt): Make opts and opt const.
1213         (mi_valid_noargs): Make opts const.
1214         * mi/mi-getopt.h (mi_getopt): Make opts and opt const.
1215         * mi/mi-main.c (mi_cmd_list_thread_groups): Make opts const.
1216         (mi_cmd_data_read_memory): Likewise.
1217         (mi_cmd_data_read_memory_bytes): Likewise.
1218         (mi_cmd_data_write_memory): Likewise.
1219
1220 2011-08-26  Matt Rice  <ratmice@gmail.com>
1221
1222         * solib-sunos.c (allocate_rt_common_objfile): Add missing arguments to
1223         bcache_xmalloc,  replace bcache_xmalloc with call to
1224         psymbol_bcache_init for psymbol_cache.
1225         * symfile.c (reread_symbols): Remove extra calls to bcache_xmalloc.
1226
1227 2011-08-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
1228
1229         * inf-loop.c (inferior_event_handler): Add exception_print in
1230         INF_EXEC_COMPLETE.
1231
1232 2011-08-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
1233
1234         * breakpoint.c (bpstat_do_actions): New variable cleanup_if_error, call
1235         make_bpstat_clear_actions_cleanup and discard_cleanups for it.
1236         * defs.h (make_bpstat_clear_actions_cleanup): New declaration.
1237         * exceptions.c (throw_exception): Remove the bpstat_clear_actions call.
1238         * inf-loop.c (inferior_event_handler): New variable cleanup_if_error,
1239         call make_bpstat_clear_actions_cleanup and discard_cleanups for it.
1240         Call bpstat_clear_actions for failed fetch_inferior_event_wrapper.
1241         * infrun.c (fetch_inferior_event): Call
1242         make_bpstat_clear_actions_cleanup.
1243         * top.c (execute_command): New variable cleanup_if_error, call
1244         make_bpstat_clear_actions_cleanup and discard_cleanups for it.
1245         * utils.c (do_bpstat_clear_actions_cleanup)
1246         (make_bpstat_clear_actions_cleanup): New functions.
1247
1248 2011-08-26  Pedro Alves  <pedro@codesourcery.com>
1249
1250         * linux-nat.c (linux_child_follow_fork): Don't set lp->resumed on
1251         either the parent or the child forks.  Rename a couple locals.
1252
1253 2011-08-26  Pedro Alves  <pedro@codesourcery.com>
1254
1255         * linux-nat.c (wait_lwp): Avoid assuming errno is preserved by a
1256         library call.  Avoid reading the `status' local if all waitpid
1257         calls failed.
1258
1259 2011-08-26  Pedro Alves  <pedro@codesourcery.com>
1260
1261         * common/linux-osdata.c (get_cores_used_by_process): Don't assume
1262         opening /proc/PID/task always succeeds.
1263
1264 2011-08-26  Aleksandar Ristovski <aristovski@qnx.com>
1265
1266         * linespec.c (symtab_from_filename): Check for the end of string.
1267
1268 2011-08-26  Marc Khouzam  <marc.khouzam@ericsson.com>
1269
1270         PR mi/11912
1271         * varobj.c (cplus_describe_child): Add the keyword
1272         'class' to the output of the method when dealing 
1273         with a cast to a base class.
1274
1275 2011-08-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
1276
1277         No functionality change.
1278         * breakpoint.c (bpstat_clear_actions): Remove the BS parameter, make
1279         function comment a reference, new variables tp and bs, move here code
1280         from throw_exception.
1281         * breakpoint.h (bpstat_clear_actions): Remove the BS parameter,
1282         describe it in the comment.
1283         * exceptions.c (throw_exception): Remove variable tp, move the code for
1284         bpstat_clear_actions to bpstat_clear_actions.
1285
1286 2011-08-24  Luis Machado  <lgustavo@codesourcery.com>
1287
1288         * linux-nat.h (linux_proc_get_tgid): Remove declaration.
1289         * linux-nat.c: Include linux-procfs.h.
1290         (linux_proc_get_tgid): Move to ...
1291         * common/linux-procfs.c: ... here. New file.
1292         * common/linux-procfs.h: New file.
1293         * linux-thread-db.c: Include linux-procfs.h.
1294         * Makefile.in: Update dependencies.
1295         * config/alpha/alpha-linux.mh: Add linux-procfs.o dependency.
1296         * config/arm/linux.mh: Likewise.
1297         * config/i386/linux.mh: Likewise.
1298         * config/i386/linux64.mh: Likewise.
1299         * config/ia64/linux.mh: Likewise.
1300         * config/m32r/linux.mh: Likewise.
1301         * config/m68k/linux.mh: Likewise.
1302         * config/mips/linux.mh: Likewise.
1303         * config/pa/linux.mh: Likewise.
1304         * config/pa/linux.mh: Likewise.
1305         * config/powerpc/linux.mh: Likewise.
1306         * config/powerpc/ppc64-linux.mh: Likewise.
1307         * config/powerpc/spu-linux.mh: Likewise.
1308         * config/sparc/linux.mh: Likewise.
1309         * config/sparc/linux64.mh: Likewise.
1310         * config/xtensa/linux.mh: Likewise.
1311
1312 2011-08-24  Hui Zhu  <teawater@gmail.com>
1313
1314         * tracepoint.c (cond_string_is_same): New function.
1315         (find_matching_tracepoint): Add condition check
1316         by cond_string_is_same.
1317
1318 2011-08-23  Josh Matthews  <josh@joshmatthews.net>
1319
1320         Fix build error in Darwin port.
1321         * darwin-nat-info.c (darwin_debug_regions_recurse): New variable uiout.
1322
1323 2011-08-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
1324
1325         Code cleanup.
1326         * breakpoint.c (bpstat_clear_actions): Remove clearing of commands_left.
1327         (command_line_is_silent): New function.
1328         (bpstat_do_actions_1): No longer use commands_left, use
1329         command_line_is_silent for commands.
1330         (bpstat_alloc): Remove clearing of commands_left.
1331         (bpstat_stop_status): Remove initialization of commands_left, use
1332         command_line_is_silent.
1333         * breakpoint.h (struct bpstats): Remove commands_left.
1334
1335 2011-08-18  Keith Seitz  <keiths@redhat.com>
1336
1337         PR c++/12266
1338         * cp-name-parser.y (struct demangle_info): Remove unused
1339         member PREV.
1340         (d_grab): Likewise.
1341         (allocate_info): Change return type to struct demangle_info *.
1342         Always allocate a new demangle_info.
1343         Remove unused PREV pointer.
1344         (cp_new_demangle_parse_info): New function.
1345         (cp_demangled_name_parse_free): New function.
1346         (do_demangled_name_parse_free_cleanup): New function.
1347         (make_cleanup_cp_demangled_name_parse_free): New function.
1348         (cp_demangled_name_to_comp): Change return type to
1349         struct demangle_parse_info *.
1350         Allocate a new storage for each call.
1351         (main): Update usage for cp_demangled_name_to_comp
1352         API change.
1353         * cp-support.h (struct demangle_parse_info): New structure.
1354         (cp_demangled_name_to_comp): Update API change for
1355         return type.
1356         (cp_new_demangle_parse_info): Declare.
1357         (make_cleanup_cp_demangled_name_parse_free): New declaration.
1358         (cp_demangled_name_parse_free): Declare.
1359         * cp-support.c (cp_canonicalize_string): Update API
1360         change for cp_demangled_name_to_comp.
1361         (mangled_name_to_comp): Likewise.
1362         Return struct demangle_parse_info, too.
1363         (cp_class_name_from_physname): Update mangled_name_to_comp
1364         API change.
1365         (method_name_from_physname): Likewise.
1366         (cp_func_name): Update API change for cp_demangled_name_to_comp.
1367         (cp_remove_params): Likewise.
1368         * python/py-type.c (typy_legacy_template_argument): Likewise.
1369
1370         * cp-support.h (cp_canonicalize_string_no_typedefs): Declare.
1371         (cp_merge_demangle_parse_infos): Declare.
1372         * cp-support.c (ignore_typedefs): New file global.
1373         (copy_string_to_obstack): New function.
1374         (inspect_type): New function.
1375         (replace_typedefs): New function.
1376         (replace_typedefs_qualified_name): New function.
1377         (cp_canonicalize_string_no_typedefs): New function.
1378         * cp-name-parser.y (cp_merge_demangle_parse_infos): New function.
1379         (cp_new_demangle__parse_info): Allocate and initialize the obstack.
1380         * linespec.c (find_methods): Use cp_canonicalize_string_no_typedefs
1381         instead of cp_canonicalize_string.
1382         (find_method): Likewise.
1383         (decode_compound): Before looking up the name, call
1384         cp_canonicalize_string_no_typedefs.
1385         (decode_variable): Likewise.
1386
1387 2011-08-17  Phil Muldoon  <pmuldoon@redhat.com>
1388             Tom Tromey  <tromey@redhat.com>
1389             Matt Rice <ratmice@gmail.com>
1390
1391         * python/lib/gdb/prompt.py: New file.
1392         * python/lib/gdb/command/prompt.py: New file.
1393         * NEWS: Document set extended-prompt and gdb.prompt library
1394
1395 2011-08-16  Yao Qi  <yao@codesourcery.com>
1396
1397         * tic6x-linux-tdep.c: Move const arrays definition from here...
1398         * tic6x-tdep.c: to here ...
1399
1400 2011-08-14  Yao Qi  <yao@codesourcery.com>
1401
1402         * NEWS: New port to Texas Instruments TMS320C6x.
1403
1404 2011-08-14  Andrew Jenner  <andrew@codesourcery.com>
1405             Bernd Schmidt  <bernds@codesourcery.com>
1406             Yao Qi  <yao@codesourcery.com>
1407
1408         * configure.tgt: Handle tic6x-*-*linux and tic6x-*-*.
1409         * solib-dsbt.c: New file.  Support DSBT shared object.
1410         * tic6x-linux-tdep.c: New file.
1411         * tic6x-tdep.c: New file.
1412         * tic6x-tdep.h: New file.
1413
1414 2011-08-14  Andrew Stubbs <ams@codesourcery.com>
1415             Yao Qi  <yao@codesourcery.com>
1416
1417         * remote.c (PACKET_qXfer_fdpic): New enum value.
1418         (remote_protocol_features): Add qXfer:fdpic:read packet.
1419         (remote_xfer_partial): Support TARGET_OBJECT_FDPIC.
1420         (_initialize_remote): Add set/show remote read-fdpic-loadmap command.
1421         * target.h (enum target_object): Add TARGET_OBJECT_FDPIC.
1422
1423 2011-08-14  Yao Qi  <yao@codesourcery.com>
1424
1425         Target description for tic6x.
1426         * features/Makefile (WHICH): Add tic6x-c64xp tic6x-c64x tic6x-c62x
1427         tic6x-c64xp-linux tic6x-c64x-linux and tic6x-c62x-linux.
1428         * features/tic6x-c6xp.xml, features/tic6x-core.xml: New.
1429         * features/tic6x-gp.xml, features/tic6x-c62x.xml: New.
1430         * features/tic6x-c64x.xml, features/tic6x-c64xp.xml: New.
1431         * features/tic6x-c62x-linux.xml, features/tic6x-c64x-linux.xml: New.
1432         * features/tic6x-c64xp-linux.xml: New.
1433         * features/tic6x-c64xp.c, features/tic6x-c64x.c: Generated.
1434         * features/tic6x-c62x.c, features/tic6x-c64xp-linux.c: Generated.
1435         * features/tic6x-c64x-linux.c, features/tic6x-c62x-linux.c: Generated.
1436         * regformats/tic6x-c62x.dat, regformats/tic6x-c64x.dat: Generated.
1437         * regformats/tic6x-c64xp.dat,
1438         regformats/tic6x-c62x-linux.dat: Generated.
1439         * regformats/tic6x-c64x-linux.dat,
1440         regformats/tic6x-c64xp-linux.dat: Generated.
1441         * config/djgpp/fnchange.lst: Add features/tic6x-*.xml and
1442         features/tic6x-*.c files.
1443         Add regformats/tic6x-*.dat files.
1444
1445 2011-08-12  Doug Evans  <dje@google.com>
1446
1447         * NEWS: Mention new "type" attribute of python gdb.Symbol objects.
1448         * python/py-symbol.c (sympy_get_type): New function.
1449         (symbol_object_getset): Add "type".
1450
1451 2011-08-12  Pedro Alves  <pedro@codesourcery.com>
1452
1453         PR tui/13073
1454
1455         * tui/tui-regs.c (tui_show_register_group): Skip registers with an
1456         empty name.
1457         (tui_show_register_group): Don't store a byte buffer in the data
1458         element's value.
1459         (tui_register_format): Skip registers with an empty name.
1460         (tui_get_register): Store a struct value in the data element's
1461         value field instead of a byte buffer holding the raw register
1462         contents.  Account for optimized-out and unavailable registers
1463         when comparing register contents.
1464
1465 2011-08-09  Pedro Alves  <pedro@codesourcery.com>
1466
1467         * printcmd.c (current_display_number): Update comment.
1468         (disable_current_display_cleanup): Delete.
1469         (do_one_display): Use make_cleanup_restore_integer.  Gracefully
1470         catch errors thrown while evaluating and printing the display.
1471
1472 2011-08-09  Tom Tromey  <tromey@redhat.com>
1473
1474         * mi/mi-cmd-break.c (mi_cmd_break_passcount): Fix typo.
1475
1476 2011-08-09  Pedro Alves  <pedro@codesourcery.com>
1477
1478         * elfread.c (elf_symtab_read): Rework comments.
1479         * maint.c (maintenance_command): Ditto.
1480         * somread.c (som_symtab_read): Ditto.
1481         * solib.c (solib_find, solib_map_sections, update_solib_list)
1482         (solib_add, info_sharedlibrary_command, solib_name_from_address)
1483         (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
1484         (sharedlibrary_command, no_shared_libraries): Ditto.
1485         * solib-irix.c (locate_base, disable_break, enable_break)
1486         (irix_solib_create_inferior_hook, irix_solib_create_inferior_hook)
1487         (irix_current_sos, irix_open_symbol_file_object)
1488         (irix_special_symbol_handling): Ditto.
1489         * solib-sunos.c (locate_base, first_link_map_member)
1490         (sunos_current_sos, disable_break, enable_break)
1491         (sunos_special_symbol_handling, sunos_solib_create_inferior_hook):
1492         Ditto.
1493         * solib-svr4.c (bfd_lookup_symbol, elf_locate_base, locate_base)
1494         (open_symbol_file_object, svr4_current_sos, enable_break)
1495         (svr4_special_symbol_handling, svr4_solib_create_inferior_hook):
1496         Ditto.
1497         * solib-frv.c (bfd_lookup_symbol, open_symbol_file_object)
1498         (frv_current_sos, enable_break, frv_special_symbol_handling)
1499         (frv_solib_create_inferior_hook): Ditto.
1500         * solist.h (struct target_so_ops): Extend the comments of the
1501         special_symbol_handling, current_sos and open_symbol_file_object
1502         methods.
1503
1504 2011-08-09  Phil Muldoon  <pmuldoon@redhat.com>
1505
1506         * python/lib/gdb/__init__.py: Auto-load files in command and
1507         function directories.
1508         * python/python.c (finish_python_initialization): Use
1509         os.path.join.
1510         * python/lib/gdb/command/pretty_printers.py: Self register
1511         command.
1512         * NEWS: Document auto-loading.
1513
1514 2011-08-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
1515
1516         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>
1517         (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_LITERAL>: New variable
1518         objfile_gdbarch.  Fix BFD_ENDIAN_BIG case.
1519
1520 2011-08-08  Tom Tromey  <tromey@redhat.com>
1521
1522         * breakpoint.c (clean_up_filters): Remove.
1523         (catch_syscall_split_args): Use VEC_cleanup.
1524
1525 2011-08-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
1526
1527         * cp-name-parser.y (xfree): Wrap the name free by CONCAT2.
1528         (main): Uncomment "Demangling error\n".
1529
1530 2011-08-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
1531
1532         * solib-target.c (segment_attributes): Make them static.
1533         (section_attributes, library_children, library_attributes): Likewise.
1534         (library_list_children, library_list_attributes): Likesise.
1535         (library_list_elements): Likewise.
1536
1537 2011-08-05  Pedro Alves  <pedro@codesourcery.com>
1538
1539         * exceptions.c (throw_exception): Don't disable the current
1540         display.
1541         * printcmd.c (disable_current_display_cleanup): New function.
1542         (do_one_display): Install a cleanup to disable the current display
1543         if doing the display throws.
1544
1545 2011-08-05  Eli Zaretskii  <eliz@gnu.org>
1546
1547         * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the
1548         initialization of the tp_new member to the corresponding
1549         gdbpy_initialize_* function.
1550         * python/py-cmd.c (gdbpy_initialize_commands): Likewise.
1551         * python/py-frame.c (gdbpy_initialize_frames): Likewise.
1552         * python/py-function.c (gdbpy_initialize_functions): Likewise.
1553         * python/py-inferior.c (gdbpy_initialize_inferior): Likewise.
1554         * python/py-param.c (gdbpy_initialize_parameters): Likewise.
1555
1556 2011-08-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
1557
1558         * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
1559         (info_spu_mailbox_list, info_spu_mailbox_command, info_spu_dma_cmdlist)
1560         (info_spu_dma_command, info_spu_proxydma_command): Rename uiout
1561         references to current_uiout.
1562
1563 2011-08-04  Pedro Alves  <pedro@codesourcery.com>
1564
1565         * event-loop.c (gdb_do_one_event): Remove `data' parameter.
1566         (start_event_loop): Use TRY_CATCH instead of catch_errors.
1567         * event-loop.h (gdb_do_one_event): Remove `data' parameter.
1568         * top.c (gdb_readline_wrapper): Adjust.
1569         * tui/tui-interp.c (tui_command_loop):
1570         (_initialize_tui_interp): Don't install it.
1571
1572 2011-08-04  Pedro Alves  <pedro@codesourcery.com>
1573
1574         * ui-out.h (uiout): Rename to ...
1575         (current_uiout): ... this.
1576         * ui-out.c (uiout): Rename to ...
1577         (current_uiout): ... this.
1578         * ada-lang.c (print_it_exception, print_one_exception)
1579         (print_mention_exception): Adjust.
1580         * breakpoint.c (watchpoint_check): Adjust.
1581         (print_breakpoint_location, print_one_breakpoint, breakpoint_1)
1582         (default_collect_info, watchpoints_info, print_one_catch_fork)
1583         (print_one_catch_vfork, print_one_catch_syscall)
1584         (print_one_catch_exec, mention, print_it_ranged_breakpoint)
1585         (print_one_ranged_breakpoint, print_mention_ranged_breakpoint)
1586         (print_it_watchpoint, print_mention_watchpoint)
1587         (print_it_masked_watchpoint, print_mention_masked_watchpoint)
1588         (print_it_exception_catchpoint, print_one_exception_catchpoint)
1589         (print_mention_exception_catchpoint, say_where, bkpt_print_it)
1590         (bkpt_print_mention, momentary_bkpt_print_it)
1591         (tracepoint_print_mention, update_static_tracepoint)
1592         (tracepoints_info, save_breakpoints): Adjust.
1593         * cli-out.c (field_separator): Adjust.
1594         * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust.
1595         * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust.
1596         * frame.c (get_current_frame): Adjust.
1597         * infcmd.c (run_command_1, print_return_value): Adjust.
1598         * inferior.c (inferior_command, info_inferiors_command): Adjust.
1599         * infrun.c (print_end_stepping_range_reason): Adjust.
1600         (print_signal_exited_reason, print_exited_reason): Adjust.
1601         (print_signal_received_reason, print_no_history_reason): Adjust.
1602         * interps.c (interp_set): Adjust.
1603         * osdata.c (info_osdata_command): Adjust.
1604         * progspace.c (maintenance_info_program_spaces_command): Adjust.
1605         * remote-fileio.c (remote_fileio_request): Adjust.
1606         * remote.c (show_remote_cmd): Adjust.
1607         * solib.c (info_sharedlibrary_command): Adjust.
1608         * source.c (print_source_lines_base): Adjust.
1609         * stack.c (print_stack_frame): Adjust.
1610         (do_gdb_disassembly, print_frame_info, print_frame): Adjust.
1611         * symfile-mem.c (add_vsyscall_page): Adjust.
1612         * symfile.c (load_progress, generic_load)
1613         (print_transfer_performance): Adjust.
1614         * thread.c (info_threads_command, restore_selected_frame)
1615         (thread_command): Adjust.
1616         * top.c (make_cleanup_restore_ui_file): Adjust.
1617         * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1)
1618         (print_one_static_tracepoint_marker): Adjust.
1619         * cli/cli-cmds.c (print_disassembly): Adjust.
1620         * cli/cli-decode.c (print_doc_line): Adjust.
1621         * cli/cli-interp.c (safe_execute_command): Adjust.
1622         * cli/cli-logging.c (set_logging_redirect, pop_output_files)
1623         (handle_redirections): Adjust.
1624         * cli/cli-script.c (show_user_1): Adjust.
1625         * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust.
1626         * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
1627         * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust.
1628         * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path)
1629         (mi_cmd_env_dir): Adjust.
1630         * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
1631         (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust.
1632         * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
1633         (mi_cmd_stack_info_depth, mi_cmd_stack_list_args)
1634         (list_args_or_locals): Adjust.
1635         * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
1636         (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen)
1637         (mi_cmd_var_show_format, mi_cmd_var_info_num_children)
1638         (mi_cmd_var_list_children, mi_cmd_var_info_type)
1639         (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression)
1640         (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression)
1641         (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust.
1642         * mi/mi-interp.c (mi_on_normal_stop): Adjust.
1643         * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select)
1644         (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior)
1645         (list_available_thread_groups, mi_cmd_list_thread_groups)
1646         (mi_cmd_data_list_register_names)
1647         (mi_cmd_data_list_changed_registers)
1648         (mi_cmd_data_list_register_values, get_register)
1649         (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
1650         (mi_cmd_data_read_memory_bytes, mi_cmd_list_features)
1651         (mi_cmd_list_target_features, mi_cmd_add_inferior)
1652         (mi_execute_command, mi_load_progress): Adjust.
1653         * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust.
1654         * python/py-auto-load.c (print_script, info_auto_load_scripts):
1655         Adjust.
1656         * python/py-breakpoint.c (bppy_get_commands): Adjust.
1657         * tui/tui-interp.c (tui_command_loop): Adjust.
1658         * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust.
1659
1660 2011-08-04  Pedro Alves  <pedro@codesourcery.com>
1661
1662         * exceptions.c (struct catcher): Remove saved_uiout field.
1663         (exceptions_state_mc_init): Remove the `func_uiout' parameter, and
1664         no longer save/resvore the global ui_out builder.
1665         (catch_exceptions_with_msg): Save/override/restore the global
1666         ui_out builder manually instead of relying on TRY_CATCH to do it.
1667         (catch_errors): Save/restore the global ui_out builder manually
1668         instead of relying on TRY_CATCH to do it.
1669         * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout'
1670         parameter.
1671         (TRY_CATCH): Adjust.
1672         * cli/cli-interp.c (safe_execute_command): Save/override/restore
1673         the global ui_out builder manually instead of relying on TRY_CATCH
1674         to do it.
1675
1676 2011-08-03  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
1677
1678         * breakpoint.c (update_global_location_list): Ensure
1679         invariant 'first loc marked not duplicated and inserted,
1680         following locs marked duplicated/not inserted' is respected
1681         for multiple locations at the same address.
1682         (unduplicated_should_be_inserted) New function.
1683         (swap_insertion) New function.
1684
1685 2011-08-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
1686
1687         * stack.c (print_frame_arguments_choices): Comment typo fix.
1688
1689 2011-08-01  Thiago Jung Bauermann  <bauerman@br.ibm.com>
1690
1691         Revert:
1692         2011-07-31  Thiago Jung Bauermann  <bauerman@br.ibm.com>
1693         * breakpoint.c (insert_bp_location): Remove disabled_breaks
1694         argument.  Update callers.
1695
1696 2011-08-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
1697
1698         PR gdb/13045
1699         * doublest.c (convert_doublest_to_floatformat): Pass correct
1700         mantissa length to put_field.
1701
1702 2011-08-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
1703
1704         * stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the
1705         exception_print code path.
1706         (backtrace_command): Remove variable e.  Protect arg by make_cleanup in
1707         advance.  Simplify memset.  Remove TRY_CATCH.  Remove explicit xfree.
1708         (backtrace_full_command):  Remove variable e.  Remove TRY_CATCH.
1709
1710 2011-08-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
1711
1712         Code cleanup.
1713         * stack.c (struct print_stack_frame_args, print_stack_frame_stub):
1714         Remove, merge them into ...
1715         (print_stack_frame): ... here with a TRY_CATCH.  New variable e, remove
1716         variable args and its initialization.
1717         (struct print_args_args, print_args_stub): Remove, merge them into
1718         print_frame.
1719         (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge
1720         them into ...
1721         (do_gdb_disassembly): ... here.  Remove variable args and its
1722         initialization.
1723         (print_frame): Remove variable args and its initialization, new
1724         variable gdbarch and numargs (from print_args_stub), inline here
1725         print_args_stub with a TRY_CATCH.
1726         (struct backtrace_command_args, backtrace_command_stub): Remove, merge
1727         them into ...
1728         (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH.
1729         New variable e, remove variable btargs and its initialization.
1730
1731 2011-08-01  Tristan Gingold  <gingold@adacore.com>
1732
1733         * darwin-nat.c (darwin_decode_exception_message): Adjust assertion.
1734
1735 2011-07-31  Thiago Jung Bauermann  <bauerman@br.ibm.com>
1736
1737         * breakpoint.c (insert_bp_location): Document return value.
1738         (insert_breakpoint_locations): Fix documentation.
1739         (remove_breakpoints): Add documentation.
1740
1741 2011-07-31  Thiago Jung Bauermann  <bauerman@br.ibm.com>
1742
1743         * breakpoint.c (insert_bp_location): Remove disabled_breaks
1744         argument.  Update callers.
1745
1746 2011-07-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
1747
1748         * stack.c (print_frame_info): Comment typo fix.
1749
1750 2011-07-29  Sterling Augustine  <saugustine@google.com>
1751
1752         * MAINTAINERS (Write After Approval): Add myself to the list.
1753
1754 2011-07-29  Tom Tromey  <tromey@redhat.com>
1755
1756         * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O.
1757         (library_list_start_segment): Update.
1758         (library_list_start_section): Update.
1759
1760 2011-07-28  Phil Muldoon  <pmuldoon@redhat.com>
1761
1762         * varobj.c (value_get_print_value): Move hint check later into the
1763         function.  Comment function.  Free thevalue before reusing it.
1764
1765 2011-07-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
1766             Pedro Alves  <pedro@codesourcery.com>
1767
1768         * eval.c (evaluate_subexp_standard): Remove not_lval from all calls of
1769         value_one.
1770         * valops.c (value_one): Remove parameter lv.  Do not pass it to itself.
1771         Assert the result kind.
1772         * value.h (value_one): Remove parameter lv.
1773
1774 2011-07-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
1775
1776         Fix crash on lval_computed values.
1777         * valops.c (value_zero): Use not_lval for lval_computed.
1778
1779 2011-07-27  Tom Tromey  <tromey@redhat.com>
1780
1781         * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for
1782         gdb_assert.h, gdb_locale.h, gdb_dirent.h.
1783
1784 2011-07-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
1785
1786         * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and
1787         "ptype" by their typedefs difference.
1788
1789 2011-07-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
1790
1791         * dwarf2expr.c (ctx_no_read_reg): New function.
1792         * dwarf2expr.h (ctx_no_read_reg): New declaration.
1793         * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
1794         (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
1795         (decode_locdesc): Replace by a caller of dwarf_expr_eval.
1796
1797 2011-07-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
1798
1799         * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc)
1800         (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other
1801         file.
1802         (dwarf2_frame_ctx_funcs): Reference the renamed functions.
1803         * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
1804         (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
1805         (ctx_no_get_base_type): Move the functions here.
1806         * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
1807         (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
1808         (ctx_no_get_base_type): New declarations.
1809
1810 2011-07-27  Tom Tromey  <tromey@redhat.com>
1811
1812         * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
1813         entries.
1814         * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field.
1815         * dwarf2read.c (dwarf2_elf_names): Add sentinel entry.
1816
1817 2011-07-26  Sterling Augustine  <saugustine@google.com>
1818
1819         * cli/cli-dump.c (dump_binary_file): Change parameter type to
1820         ULONGEST.
1821         (dump_bfd_file): Likewise.
1822
1823 2011-07-26  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
1824
1825         * remote.c (remote_region_ok_for_hw_watchpoint): New function.
1826         (remote_hw_watchpoint_length_limit): New variable.
1827         (_initialize_remote) add set,show cmds for this new variable.
1828         * gdb.texinfo: document these new commands.
1829         * NEWS: Mention these new commands.
1830
1831 2011-07-26  Pedro Alves  <pedro@codesourcery.com>
1832
1833         * breakpoint.c (works_in_software_mode_watchpoint): Also return
1834         true for software watchpoints.
1835
1836 2011-07-26  Joel Brobecker  <brobecker@adacore.com>
1837
1838         GDB 7.3 released.
1839
1840 2011-07-26  Tom Tromey  <tromey@redhat.com>
1841
1842         * symfile.h (struct dwarf2_debug_sections) <macro>: New field.
1843         * dwarf2read.c (read_indirect_string_at_offset): New function.
1844         (read_indirect_string): Use it.
1845         (dwarf_decode_macro_bytes): New function, taken from
1846         dwarf_decode_macros.  Handle DW_MACRO_GNU_*.
1847         (dwarf_decode_macros): Use it.  handle DW_MACRO_GNU_*.
1848         (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode):
1849         New functions.
1850         (struct dwarf2_per_objfile) <macro>: New field.
1851         (dwarf2_elf_names): Add .debug_macro.
1852         (dwarf2_macros_too_long_complaint): Add 'section' argument.
1853         (dwarf2_locate_sections): Handle new section.
1854         (read_file_scope): Handle DW_AT_GNU_macros.
1855         (dwarf2_per_objfile_free): Unmap the .debug_macro section.
1856
1857 2011-07-26  Paul Pluzhnikov  <ppluzhnikov@google.com>
1858
1859         * NEWS: Mention dcache configuration.
1860         * dcache.c (dcache_set_list, dcache_show_list): New variables.
1861         (dcache_size, dcache_line_size): New variables.
1862         (LINE_SIZE_MASK, XFORM, MASK): Adjust.
1863         (struct dcache_block): Make it expandable.
1864         (struct dcache_struct): New field.
1865         (dcache_invalidate): Discard freelist upon dcache_line_size changes.
1866         (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust.
1867         (dcache_poke_byte, dcache_print_line): Adjust.
1868         (set_dcache_size, set_dcache_line_size): New functions.
1869         (set_dcache_command, show_dcache_command): New functions.
1870         (_initialize_dcache): Add new commands.
1871
1872 2011-07-26  Paul Pluzhnikov  <ppluzhnikov@google.com>
1873
1874         * progspace.h (struct program_space): Add solib_add_generation.
1875         * infcmd.c (post_create_inferior): Only call solib_add if not
1876         already done.
1877         * solib.c (solib_add): Increment solib_add_generation.
1878
1879 2011-07-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
1880
1881         Fix implicit pointer offsets.
1882         * dwarf2loc.c (indirect_pieced_value): Comment byte_offset.  Use also
1883         ptr.OFFSET.
1884
1885 2011-07-25  Tom Tromey  <tromey@redhat.com>
1886
1887         * ada-lang.c (ada_exception_breakpoint_ops): Make return type
1888         const.
1889         (ada_exception_sal): Make 'ops' const.
1890         (ada_decode_exception_location): Likewise.
1891         (ada_decode_assert_location): Likewise.
1892         (catch_assert_command): Update.
1893         (catch_ada_exception_command): Update.
1894         (create_ada_exception_catchpoint): Make 'ops' const.
1895         * breakpoint.c (set_raw_breakpoint_without_location)
1896         (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops'
1897         const.
1898         (create_internal_breakpoint): Update.
1899         (init_raw_breakpoint_without_location): Make 'ops' const.
1900         (init_raw_breakpoint, init_catchpoint)
1901         (create_fork_vfork_event_catchpoint)
1902         (create_syscall_event_catchpoint, init_breakpoint_sal)
1903         (create_breakpoint_sal, create_breakpoints_sal)
1904         (create_breakpoint, init_ada_exception_breakpoint): Likewise.
1905         * breakpoint.h (struct breakpoint) <ops>: Now const.
1906         (init_ada_exception_breakpoint, create_breakpoint): Make 'ops'
1907         const.
1908
1909 2011-07-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
1910
1911         * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
1912
1913 2011-07-25  Pedro Alves  <pedro@codesourcery.com>
1914
1915         * breakpoint.h (print_recreate_thread): Declare.
1916         (struct breakpoint): Move step_count, pass_count,
1917         number_on_target, static_trace_marker_id,
1918         static_trace_marker_id_idx ...
1919         (struct tracepoint): ... to this new struct.
1920         (get_tracepoint, get_tracepoint_by_number_on_target)
1921         (get_tracepoint_by_number): Change return type to struct
1922         tracepoint pointer.
1923         * breakpoint.c (is_tracepoint_type): New, factored out from
1924         is_tracepoint.
1925         (is_tracepoint): Adjust.
1926         (print_one_breakpoint_location): Cast to struct tracepoint as
1927         necessary, and adjust.
1928         (print_recreate_catch_fork, print_recreate_catch_vfork)
1929         (print_recreate_catch_syscall, print_recreate_catch_exec): Call
1930         print_recreate_thread.
1931         (init_breakpoint_sal): New, factored out from
1932         create_breakpoint_sal.
1933         (create_breakpoint_sal): Reimplement.
1934         (create_breakpoint): Allocate a struct tracecepoint if the caller
1935         wanted a tracepoint.  Use init_breakpoint_sal and
1936         install_breakpoint.
1937         (print_recreate_ranged_breakpoint, print_recreate_watchpoint)
1938         (print_recreate_masked_watchpoint)
1939         (print_recreate_exception_catchpoint): Call print_recreate_thread.
1940         (tracepoint_print_one_detail): Adjust.
1941         (tracepoint_print_recreate): Adjust.  Call print_recreate_thread.
1942         Dump the pass count here.
1943         (update_static_tracepoint): Adjust.
1944         (addr_string_to_sals): Adjust.
1945         (create_tracepoint_from_upload): Adjust.  Change return type to
1946         struct tracepoint pointer.
1947         (trace_pass_set_count): Change parameter type to struct tracepoint
1948         pointer, and adjust.
1949         (trace_pass_command): Adjust.
1950         (get_tracepoint, get_tracepoint_by_number_on_target)
1951         (get_tracepoint_by_number): Change return type to struct
1952         tracepoint pointer, and adjust.
1953         (print_recreate_thread): New, factored out from save_breakpoints.
1954         (save_breakpoints): Don't print thread and task and passcount
1955         recreation here.
1956         * remote.c (remote_download_tracepoint): Adjust.
1957         * tracepoint.c (trace_actions_command, validate_actionline)
1958         (start_tracing, tfind_1, trace_find_tracepoint_command)
1959         (trace_dump_command): Adjust.
1960         (find_matching_tracepoint): Change return type to struct
1961         tracepoint pointer, and adjust.
1962         (merge_uploaded_tracepoints, tfile_get_traceframe_address)
1963         (tfile_trace_find, tfile_fetch_registers): Adjust.
1964         * tracepoint.h (create_tracepoint_from_upload): Change return type
1965         to struct tracepoint pointer.
1966         * ada-lang.c (print_recreate_exception): Call
1967         print_recreate_thread.
1968         * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust.
1969
1970 2011-07-25  Pedro Alves  <pedro@codesourcery.com>
1971
1972         * breakpoint.h (struct breakpoint): Move ops as first field.  Move
1973         exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp,
1974         cond_exp_valid_block, val, val_valid, watchpoint_frame,
1975         watchpoint_thread, watchpoint_triggered ...
1976         (struct watchpoint): ... to this new struct.
1977         (is_watchpoint): Declare.
1978         (install_breakpoint): Add new `internal' parameter.
1979         * breakpoint.c (is_watchpoint): Delete declaration.
1980         (set_breakpoint_condition): Handle watchpoints.
1981         (is_watchpoint): Make public.
1982         (watchpoint_in_thread_scope): Change parameter type to struct
1983         watchpoint.
1984         (watchpoint_del_at_next_stop): Change parameter type to struct
1985         watchpoint.  Remove assertion.  Adjust.
1986         (update_watchpoint): Ditto.
1987         (insert_breakpoints, breakpoint_init_inferior)
1988         (watchpoints_triggered, watchpoint_check)
1989         (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
1990         (bpstat_stop_status, print_one_breakpoint_location)
1991         (print_one_breakpoint_location, watchpoint_locations_match): Cast
1992         to struct watchpoint as necessary, and adjust.
1993         (install_breakpoint): Add `internal' argument.  If true, don't
1994         mention the new breakpoint.  Use set_breakpoint_number.
1995         (create_fork_vfork_event_catchpoint)
1996         (create_syscall_event_catchpoint): Adjust.
1997         (dtor_watchpoint): New.
1998         (re_set_watchpoint, insert_watchpoint, remove_watchpoint)
1999         (breakpoint_hit_watchpoint, resources_needed_watchpoint)
2000         (print_it_watchpoint, print_mention_watchpoint)
2001         (print_recreate_watchpoint, insert_masked_watchpoint)
2002         (remove_masked_watchpoint, resources_needed_masked_watchpoint)
2003         (print_one_detail_masked_watchpoint)
2004         (print_mention_masked_watchpoint)
2005         (print_recreate_masked_watchpoint): Cast to struct watchpoint as
2006         necessary, and adjust.
2007         (watch_command_1): Allocate and initialize a struct watchpoint
2008         instead of a struct breakpoint.  Use install_breakpoint.
2009         (catch_exec_command_1): Adjust.
2010         (base_breakpoint_dtor): Delete accesses to watchpoint specific
2011         fields.
2012         (delete_breakpoint, enable_breakpoint_disp)
2013         (invalidate_bp_value_on_memory_change): Cast to struct watchpoint
2014         as necessary, and adjust.
2015         (initialize_breakpoint_ops): Install dtor_watchpoint as
2016         watchpoints' dtor method.
2017         * ada-lang.c (create_ada_exception_catchpoint): Adjust.
2018         * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint.
2019         to struct watchpoint as necessary, and adjust.
2020
2021 2011-07-25  Pedro Alves  <pedro@codesourcery.com>
2022
2023         * ada-lang.c (dtor_exception, re_set_exception): Indirect through
2024         the the base class ops table.
2025         (catch_exception_breakpoint_ops)
2026         (catch_exception_unhandled_breakpoint_ops)
2027         (catch_assert_breakpoint_ops): Don't statically initialize.
2028         (initialize_ada_catchpoint_ops): New.
2029         (_initialize_ada_language): Call it.
2030         * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops)
2031         (bkpt_breakpoint_ops): Forward declare.
2032         (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
2033         (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops)
2034         (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
2035         (masked_watchpoint_breakpoint_ops)
2036         (gnu_v3_exception_catchpoint_ops): Don't statically initialize.
2037         (dtor_catch_syscall, dtor_catch_exec): Indirect through the the
2038         base class ops table.
2039         (null_re_set, null_check_status, null_works_in_software_mode)
2040         (null_resources_needed, null_print_one_detail): Delete.
2041         (bkpt_dtor): Rename to ...
2042         (base_breakpoint_dtor): ... this.  Make static.
2043         (bkpt_allocate_location): Rename to ...
2044         (base_breakpoint_allocate_location): ... this.  Make static.
2045         (base_breakpoint_re_set): New.
2046         (internal_error_pure_virtual_called): New.
2047         (base_breakpoint_insert_location, base_breakpoint_remove_location)
2048         (base_breakpoint_breakpoint_hit, base_breakpoint_check_status)
2049         (base_breakpoint_works_in_software_mode)
2050         (base_breakpoint_resources_needed, base_breakpoint_print_it)
2051         (base_breakpoint_print_one_detail, base_breakpoint_print_mention)
2052         (base_breakpoint_print_recreate): New functions.
2053         (base_breakpoint_ops): New global.
2054         (bkpt_re_set, bkpt_insert_location, bkpt_remove_location)
2055         (bkpt_breakpoint_hit): Make static.
2056         (bkpt_check_status): Delete.
2057         (bkpt_resources_needed): Make static.
2058         (bkpt_works_in_software_mode): Delete.
2059         (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make
2060         static.
2061         (bkpt_breakpoint_ops, internal_breakpoint_ops)
2062         (momentary_breakpoint_ops): Don't statically initialize.
2063         (internal_bkpt_print_recreate, momentary_bkpt_print_recreate):
2064         Delete.
2065         (tracepoint_insert_location, tracepoint_remove_location)
2066         (tracepoint_check_status, tracepoint_works_in_software_mode)
2067         (tracepoint_print_it): Delete.
2068         (tracepoint_breakpoint_ops): Don't statically initialize.
2069         (initialize_breakpoint_ops): New.
2070         (_initialize_breakpoint): Call it.
2071         * breakpoint.h (null_re_set, null_works_in_software_mode)
2072         (null_resources_needed, null_check_status, null_print_one_detail):
2073         (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
2074         (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
2075         (bkpt_check_status, bkpt_resources_needed)
2076         (bkpt_works_in_software_mode, bkpt_print_it)
2077         (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
2078         Delete declarations.
2079         (initialize_breakpoint_ops): Declare.
2080
2081 2011-07-25  Pedro Alves  <pedro@codesourcery.com>
2082
2083         * breakpoint.c (bkpt_print_it, internal_bkpt_print_it)
2084         (momentary_bkpt_print_it): Simplify.
2085
2086 2011-07-25  Pedro Alves  <pedro@codesourcery.com>
2087
2088         Split internal, momentary and user breakpoints breakpoint_ops
2089         tables.
2090
2091         * breakpoint.c (internal_breakpoint_ops)
2092         (momentary_breakpoint_ops): Forward declare.
2093         (create_internal_breakpoint): Add new breakpoint_ops parameter.
2094         Pass it down, rather than hardcoding bkpt_breakpoint_ops.
2095         (create_overlay_event_breakpoint)
2096         (create_std_terminate_master_breakpoint)
2097         (create_exception_master_breakpoint): Create breakpoints with
2098         internal_breakpoint_ops vtable.
2099         (set_longjmp_breakpoint): Create momentary breakpoints with
2100         momentary_breakpoint_ops vtable, using
2101         momentary_breakpoint_from_master.
2102         (create_thread_event_breakpoint, create_jit_event_breakpoint)
2103         (create_solib_event_breakpoint): Create breakpoints with
2104         internal_breakpoint_ops vtable.
2105         (set_momentary_breakpoint): Create breakpoints with
2106         momentary_breakpoint_ops vtable.
2107         (momentary_breakpoint_from_master): New, factored out from
2108         clone_momentary_breakpoint.
2109         (clone_momentary_breakpoint): Adjust.
2110         (watch_command_1): Create scope breakpoints with
2111         momentary_breakpoint_ops vtable.
2112         (bkpt_re_set): Remove handling of internal and momentary
2113         breakpoints.
2114         (bkpt_print_mention, bkpt_print_recreate): New.
2115         (bkpt_breakpoint_ops): Adjust.
2116         (internal_bkpt_re_set, internal_bkpt_check_status)
2117         (internal_bkpt_print_it, internal_bkpt_print_mention)
2118         (internal_bkpt_print_recreate, internal_breakpoint_ops): New.
2119         (momentary_bkpt_re_set, momentary_bkpt_check_status)
2120         (momentary_bkpt_print_it, momentary_bkpt_print_mention)
2121         (momentary_bkpt_print_recreate): New.
2122         (momentary_breakpoint_ops): New.
2123
2124 2011-07-25  Pedro Alves  <pedro@codesourcery.com>
2125
2126         Implement most breakpoint_ops methods for all breakpoint types,
2127         and move the default handlings to the proper callbacks.
2128
2129         * breakpoint.c (update_watchpoint): Always call the breakpoint's
2130         works_in_software_mode method.
2131         (insert_bp_location): Go through breakpoint_ops->insert_location
2132         for software and hardware watchpoints.
2133         (create_internal_breakpoint): Pass bkpt_breakpoint_ops as
2134         breakpoint_ops.
2135         (remove_breakpoint_1): Go through breakpoint_ops->remove_location
2136         for software and hardware watchpoints.
2137         (print_it_typical): Delete.
2138         (print_bp_stop_message): Always call the breakpoint_ops->print_it
2139         method.
2140         (watchpoint_check): Adjust comment.
2141         (bpstat_check_location): Simply always call the breakpoint's
2142         breakpoint_hit method.
2143         (bpstat_stop_status): Always call the breakpoint's check_status
2144         method.  Remove special cases for watchpoints and internal event
2145         breakpoints from here (moved to the check_status implementations).
2146         (print_one_breakpoint_location): Assume b->ops is never NULL.
2147         Remove static tracepoint marker id printing from here (moved to
2148         the print_one_detail callback implementation of tracepoints).
2149         (init_bp_location): Assert OPS is never NULL.
2150         (allocate_bp_location): Always call the breakpoint's
2151         allocate_location method, and remove the default code from here.
2152         (free_bp_location): Always call the location's dtor method, and
2153         remove the default code from here.
2154         (init_raw_breakpoint_without_location): Assert OPS is never NULL.
2155         (set_raw_breakpoint_without_location): Add new breakpoint_ops
2156         parameter.  Pass it down.
2157         (set_raw_breakpoint): Ditto.
2158         (print_it_catch_fork): Adjust to take a bpstat as argument.
2159         (catch_fork_breakpoint_ops): Install methods.
2160         (print_it_catch_vfork): Adjust to take a bpstat as argument.
2161         (catch_vfork_breakpoint_ops): Install methods.
2162         (dtor_catch_syscall): Call the base dtor.
2163         (print_it_catch_syscall): Adjust to take a bpstat as argument.
2164         (catch_syscall_breakpoint_ops): Install methods.
2165         (dtor_catch_exec): Call the base dtor.
2166         (print_it_catch_exec): Adjust to take a bpstat as argument.
2167         (catch_exec_breakpoint_ops): Install methods.
2168         (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call
2169         the breakpoint's resources_needed method, and remove the default
2170         code from here.
2171         (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as
2172         breakpoint_ops.
2173         (clone_momentary_breakpoint): Clone the original's ops.
2174         (mention): Always call the breakpoint's print_mention method, and
2175         remove the default code from here.
2176         (create_breakpoint_sal): Adjust to pass the ops to
2177         set_raw_breakpoint rather than setting it manually.
2178         (create_breakpoint): Assert ops is never NULL.  Adjust to pass the
2179         ops to set_raw_breakpoint_without_location rather than setting it
2180         manually.
2181         (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops.
2182         (print_it_ranged_breakpoint): Adjust to take a bpstat as argument.
2183         (ranged_breakpoint_ops): Install methods.
2184         (break_range_command): Adjust to pass the ops to
2185         set_raw_breakpoint rather than setting it manually.
2186         (re_set_watchpoint, breakpoint_hit_watchpoint)
2187         (check_status_watchpoint, resources_needed_watchpoint)
2188         (works_in_software_mode_watchpoint, print_it_watchpoint)
2189         (print_mention_watchpoint, print_recreate_watchpoint): New
2190         functions.
2191         (watchpoint_breakpoint_ops): Install new methods.
2192         (print_it_masked_watchpoint): New function.
2193         (masked_watchpoint_breakpoint_ops): Install new methods.
2194         (watch_command_1): Adjust to pass the right breakpoint_ops to
2195         set_raw_breakpoint_without_location rather than setting it
2196         manually later.  Record the current pspace.
2197         (print_it_exception_catchpoint): Adjust to take a bpstat as
2198         argument.
2199         (gnu_v3_exception_catchpoint_ops): Install new methods.
2200         (say_where): New function.
2201         (null_re_set, null_check_status, null_works_in_software_mode)
2202         (null_resources_needed, null_print_one_detail, bp_location_dtor):
2203         New functions.
2204         (bp_location_ops): New global.
2205         (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
2206         (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
2207         (bkpt_check_status, bkpt_resources_needed)
2208         (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention)
2209         (bkpt_print_recreate): New functions.
2210         (bkpt_breakpoint_ops): New global.
2211         (tracepoint_re_set, tracepoint_insert_location)
2212         (tracepoint_remove_location, tracepoint_breakpoint_hit)
2213         (tracepoint_check_status, tracepoint_works_in_software_mode)
2214         (tracepoint_print_it, tracepoint_print_one_detail)
2215         (tracepoint_print_mention, tracepoint_print_recreate): New
2216         functions.
2217         (tracepoint_breakpoint_ops): New global.
2218         (delete_breakpoint): Always call the breakpoint's dtor method, and
2219         remove the default handling from here.
2220         (breakpoint_re_set_default): Make static.
2221         (breakpoint_re_set_one): Always call the breakpoints re_set
2222         method, and remove the default handling from here.
2223         (trace_command, ftrace_command, strace_command)
2224         (create_tracepoint_from_upload): Pass appropriate breakpoints_ops
2225         to create_breakpoint.
2226         (save_breakpoints): Always call the breakpoint's print_recreate
2227         method, and remove the default handling from here.
2228
2229         * ada-lang.c (dtor_exception): Call the base dtor.
2230         (re_set_exception): Call the base method.
2231         (print_it_exception, print_it_catch_exception): Adjust to take a
2232         bpstat as argument.
2233         (catch_exception_breakpoint_ops): Install methods.
2234         (print_it_catch_exception_unhandled): Adjust to take a bpstat as
2235         argument.
2236         (catch_exception_unhandled_breakpoint_ops): Install methods.
2237         (print_it_catch_assert): Adjust to take a bpstat as argument.
2238         (catch_assert_breakpoint_ops): Install methods.
2239
2240         * breakpoint.h (struct breakpoint_ops): Adjust the print_it method
2241         to take a bpstat as argument.
2242         (enum print_stop_action): Add describing comments to each enum
2243         value.
2244         (breakpoint_re_set_default): Delete declaration.
2245         (null_re_set, null_works_in_software_mode, null_resources_needed)
2246         (null_check_status, null_print_one_detail): Declare.
2247         (bkpt_breakpoint_ops): Declare.
2248         (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
2249         (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
2250         (bkpt_check_status, bkpt_resources_needed)
2251         (bkpt_works_in_software_mode, bkpt_print_it)
2252         (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
2253         Declare.
2254
2255         * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass
2256         bkpt_breakpoint_ops.
2257         * python/py-breakpoint.c (bppy_init): Ditto.
2258
2259 2011-07-15  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
2260
2261         * MAINTAINERS (Write After Approval): Add myself to the list.
2262
2263 2011-07-23  Paul Pluzhnikov  <ppluzhnikov@google.com>
2264
2265         * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
2266
2267 2011-07-22  Pedro Alves  <pedro@codesourcery.com>
2268
2269         * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
2270         (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
2271         (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
2272         adjust.
2273         (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
2274         (struct i386_debug_reg_state): New.
2275         (i386_init_dregs): New.
2276         (dr_mirror): New.
2277         (i386_cleanup_dregs): Use i386_init_dregs.
2278         (i386_show_dr): Add state parameter and adjust.
2279         (i386_insert_aligned_watchpoint): Ditto.  Don't pass the info to
2280         the inferior here.
2281         (i386_remove_aligned_watchpoint): Likewise.
2282         (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
2283         (i386_update_inferior_debug_regs): New.
2284         (i386_insert_watchpoint): Work on a local mirror of the debug
2285         registers, and only update the inferior on success.
2286         (i386_remove_watchpoint): Ditto.
2287         (i386_region_ok_for_watchpoint): Adjust.
2288         (i386_stopped_data_address): Adjust.
2289         (i386_insert_hw_breakpoint): Adjust.
2290         (i386_remove_hw_breakpoint): Adjust.
2291
2292 2011-07-22  Tom Tromey  <tromey@redhat.com>
2293
2294         * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
2295         from amd64_pseudo_register_read.  Change arguments.  Call
2296         mark_value_bytes_unavailable when needed.
2297         (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
2298         set_gdbarch_pseudo_register_read.
2299         * sentinel-frame.c (sentinel_frame_prev_register): Use
2300         regcache_cooked_read_value.
2301         * regcache.h (regcache_cooked_read_value): Declare.
2302         * regcache.c (regcache_cooked_read_value): New function.
2303         (regcache_cooked_read): Call
2304         gdbarch_pseudo_register_read_value if available.
2305         * i386-tdep.h (i386_pseudo_register_read_value): Declare.
2306         (i386_pseudo_register_read): Remove.
2307         * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
2308         i386_pseudo_register_read.  Change arguments.  Call
2309         mark_value_bytes_unavailable when needed.
2310         (i386_pseudo_register_read_value): New function.
2311         (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
2312         not set_gdbarch_pseudo_register_read.
2313         * gdbarch.sh (pseudo_register_read_value): New method.
2314         * gdbarch.c, gdbarch.h: Rebuild.
2315         * findvar.c (value_from_register): Call get_frame_register_value.
2316
2317 2011-07-22  Phil Muldoon  <pmuldoon@redhat.com>
2318
2319         * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
2320         get_prefix.
2321         (display_gdb_prompt): Likewise.
2322         (change_annotation_level): Likewise.
2323         (push_prompt): Likewise.
2324         (pop_prompt): Likewise.
2325         (handle_stop_sig): Use get_prompt with a level.
2326         * top.c (command_loop): Use get_prompt with a level.
2327         (set_async_annotation_level): Use set_prompt with a level.
2328         (get_prefix): New function.
2329         (set_prefix): Ditto.
2330         (set_suffix): Ditto.
2331         (get_suffix): Ditto.
2332         (get_prompt): Accept a level argument.
2333         (set_prompt): Accept a level argument.  Free old prompts.  Set
2334         new_async_prompt if level is 0.
2335         (init_main): Use set_prompt with a level.  Do not set
2336         new_async_prompt.
2337         * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
2338         * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
2339         Modify set_prompt, get_prompt to account for levels.
2340         * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
2341         level.
2342         * python/python.c (before_prompt_hook): Use set_prompt.
2343         
2344 2011-07-22  Kwok Cheung Yeung  <kcy@codesourcery.com>
2345
2346         * defs.h: Add guard against inclusion in gdbserver.
2347         (struct ptid, ptid_t): Move to common/ptid.h.
2348         (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
2349         xsnprintf, internal_error): Move to common/common-utils.h.
2350         (nomem): Delete.
2351         * gdb_assert.h: Move into common/ sub-directory.
2352         * gdb_locale.h: Ditto.
2353         * gdb_dirent.h: Ditto.
2354         * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
2355         ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
2356         Move into common/ptid.h.
2357         * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
2358         (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
2359         Change nomem to malloc_failure.
2360         * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
2361         * utils.c (nomem): Rename to malloc_failure.
2362         (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
2363         xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
2364         (gdb_buildargv): Change nomem to malloc_failure.
2365         * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
2366         ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
2367         ptid_is_pid): Move into common/ptid.c.
2368         (initialize_infrun): Delete initialization of null_ptid and
2369         minus_one_ptid.
2370         * linux-nat.c (linux_nat_xfer_osdata): Defer to
2371         linux_common_xfer_osdata.
2372         * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
2373         common/ptid.c and common/buffer.c.
2374         (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
2375         common/ptid.h, common/buffer.h and common/linux-osdata.h.
2376         (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
2377         (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
2378         rules.
2379         * common/gdb_assert.h: New.
2380         * common/gdb_dirent.h: New.
2381         * common/gdb_locale.h: New.
2382         * common/buffer.c: New.
2383         * common/buffer.h: New.
2384         * common/ptid.c: New.
2385         * common/ptid.h: New.
2386         * common/xml-utils.c: New.
2387         * common/xml-utils.h: New.
2388         * common/common-utils.c: New.
2389         * common/common-utils.h: New.
2390         * common/linux-osdata.c: New.
2391         * common/linux-osdata.h: New.
2392         * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
2393         * config/arm/linux.mh (NATDEPFILES): Ditto.
2394         * config/i386/linux.mh (NATDEPFILES): Ditto.
2395         * config/i386/linux64.mh (NATDEPFILES): Ditto.
2396         * config/ia64/linux.mh (NATDEPFILES): Ditto.
2397         * config/m32r/linux.mh (NATDEPFILES): Ditto.
2398         * config/m68k/linux.mh (NATDEPFILES): Ditto.
2399         * config/mips/linux.mh (NATDEPFILES): Ditto.
2400         * config/pa/linux.mh (NATDEPFILES): Ditto.
2401         * config/powerpc/linux.mh (NATDEPFILES): Ditto.
2402         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
2403         * config/s390/s390.mh (NATDEPFILES): Ditto.
2404         * config/sparc/linux.mh (NATDEPFILES): Ditto.
2405         * config/sparc/linux64.mh (NATDEPFILES): Ditto.
2406         * config/xtensa/linux.mh (NATDEPFILES): Ditto.
2407
2408 2011-07-21  Matt Rice  <ratmice@gmail.com>
2409
2410         * NEWS: Add info macros and info definitions commands.
2411
2412 2011-07-21  Phil Muldoon  <pmuldoon@redhat.com>
2413
2414         * NEWS: Document Python prompt substitution hook.
2415
2416 2011-07-18  Matt Rice  <ratmice@gmail.com>
2417
2418         PR macros/12999
2419         * macrotab.h (macro_callback_fn): Add new arguments to callback.
2420         * macrotab.c (foreach_macro): Ditto.
2421         (foreach_macro_in_scope): Ditto.
2422         * macrocmd.c (print_macro_callback): New function.
2423         (info_macro_command): Move some code to print_macro_definition.
2424         (print_macro_definition): New function.
2425         (print_one_macro): Add new arguments to callback.
2426         (info_definitions_command): New function.
2427         (info_macros_command): Ditto.
2428         (_initialize_macrocmd): Add info macros and info definitions commands.
2429         * symtab.c (add_macro_name): Add new arguments to callback.
2430
2431 2011-07-21  Phil Muldoon  <pmuldoon@redhat.com>
2432             Tom Tromey  <tromey@redhat.com>
2433
2434         * top.c (set_prompt): Rewrite to free previous prompt, free
2435         asynch_new_prompt and set both on new prompts.
2436         * event-top.c (display_gdb_prompt): Add prompt substitution
2437         logic.
2438         * python/python.c (before_prompt_hook): New function.
2439
2440 2011-07-20  Matt Rice  <ratmice@gmail.com>
2441
2442         * bfin-tdep.c (bfin_extract_return_value): Fix swapped
2443         arguments to store_unsigned_integer.
2444
2445 2011-07-20  Tom Tromey  <tromey@redhat.com>
2446
2447         * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
2448         in some declaration-only cases.
2449
2450 2011-07-18  Tom Tromey  <tromey@redhat.com>
2451
2452         PR symtab/12984:
2453         * dwarf2read.c (dwarf2_section_info_def): New typedef.
2454         (struct dwarf2_per_objfile) <types>: Change to a VEC.
2455         (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
2456         <debug_type_section>: New field.
2457         (dwarf2_locate_sections): Push .debug_types sections onto VEC.
2458         (load_cu): Use appropriate section.
2459         (create_signatured_type_table_from_index): Add 'section'
2460         argument.
2461         (dwarf2_read_index): Only allow a single .debug_types section.
2462         (dw2_get_file_names): Use appropriate section.
2463         (read_type_comp_unit_head): Add 'section' argument.
2464         (create_debug_types_hash_table): Loop over all .debug_types
2465         sections.
2466         (init_cu_die_reader): Use appropriate section.
2467         (process_psymtab_comp_unit, load_partial_comp_unit)
2468         (load_full_comp_unit, read_die_and_children, find_partial_die)
2469         (lookup_die_type, determine_prefix, follow_die_offset): Update.
2470         (lookup_signatured_type_at_offset): Add 'section' argument.
2471         (read_signatured_type_at_offset): Add 'sect' argument.
2472         (read_signatured_type): Use appropriate section.
2473         (set_die_type, get_die_type_at_offset): Update.
2474         (dwarf2_per_objfile_free): Free all .debug_types sections, and
2475         VEC.
2476         (write_psymtabs_to_index): Don't allow index with more than one
2477         .debug_types section.
2478
2479 2011-07-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
2480
2481         Fix crash if referenced CU is aged out.
2482         * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
2483         xfree of block.data.
2484         (indirect_pieced_value): New variable back_to, use to for xfree of
2485         baton.data.
2486         (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
2487         block.data.
2488         * dwarf2read.c (dwarf2_find_base_address): New prototype.
2489         (load_cu): New function from ...
2490         (dw2_do_instantiate_symtab): ... the code here ...
2491         (process_full_comp_unit): ... and here.
2492         (dwarf2_fetch_die_location_block): Call load_cu first.  Call xmemdup on
2493         retval.data.
2494
2495 2011-07-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
2496
2497         * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
2498         type.
2499
2500 2011-07-19  Gary Benson  <gbenson@redhat.com>
2501
2502         * infrun.c (struct execution_control_state): New member
2503         stop_func_filled_in.
2504         (clear_stop_func, fill_in_stop_func): New functions.
2505         (handle_inferior_event): Call clear_stop_func rather than
2506         manipulating the execution control state directly.
2507         Call fill_in_stop_func lazily as required rather than
2508         directly calling find_pc_partial_function in all cases.
2509
2510 2011-07-18  Tom Tromey  <tromey@redhat.com>
2511
2512         * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
2513         checking for variable-sized array.
2514
2515 2011-07-18  Jean-Charles Delay  <delay@adacore.com>
2516
2517         * varobj.h (varobj_languages): Add vlang_ada definition to the list
2518         of supported languages.
2519         * varobj.c: Add top definitions and basic implementation of the
2520         following callbacks: ada_number_of_children, ada_name_of_variable,
2521         ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
2522         ada_value_of_child, ada_type_of_child, ada_value_of_variable.
2523         (languages): Register Ada-specific callbacks.
2524         (variable_language): Add the Ada case in the language setter switch.
2525
2526 2011-07-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
2527
2528         * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
2529
2530 2011-07-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
2531
2532         Code cleanup.
2533         * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
2534         (execute_stack_op): Use dwarf2_frame_ctx_funcs
2535         * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
2536         (execute_stack_op): Access read_reg, get_frame_base, read_mem,
2537         get_frame_cfa, get_tls_address and dwarf_call via funcs.
2538         * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
2539         (struct dwarf_expr_context_funcs): New, move here methods from ...
2540         (struct dwarf_expr_context): ... here.  New fields funcs.
2541         * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
2542         (dwarf_expr_ctx_funcs): New.
2543         (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
2544         (needs_frame_dwarf_call): Access get_frame_pc via funcs.
2545         (needs_frame_ctx_funcs): New.
2546         (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
2547
2548 2011-07-15  Fawzi Mohamed  <fawzi.mohamed@nokia.com>
2549
2550         * MAINTAINERS (Write After Approval): Add myself to the list.
2551
2552 2011-07-15  Fawzi Mohamed  <fawzi.mohamed@nokia.com>
2553
2554         * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
2555         that CIE pointer of an FDE really points to a CIE .
2556
2557 2011-07-15  Hui Zhu  <teawater@gmail.com>
2558
2559         * remote.c (remote_get_trace_status): Add comments.
2560
2561 2011-07-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
2562
2563         Code cleanup - constify struct lval_funcs.
2564         * dwarf2loc.c (pieced_value_funcs): Make it const.
2565         * infrun.c (siginfo_value_funcs): Likewise.
2566         * opencl-lang.c (opencl_value_funcs): Likewise.
2567         * valops.c (value_assign, value_ind): Make the funcs variable const.
2568         * value.c (struct value): Make location.computed.funcs target const.
2569         Rearrange the comments.
2570         (allocate_computed_value): Make the funcs parameter target const.
2571         (value_computed_funcs): Return the funcs target const.
2572         (value_free, value_copy, set_value_component_location): Make the funcs
2573         variable const.
2574         * value.h (allocate_computed_value): Make the funcs parameter target
2575         const.
2576         (value_computed_funcs): Return the funcs target const.
2577         * windows-tdep.c (tlb_value_funcs): Make it const.
2578
2579 2011-07-14  Hui Zhu  <teawater@gmail.com>
2580
2581         * remote.c (remote_get_trace_status): Initialize p.
2582
2583 2011-07-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
2584
2585         Work around kgdb.
2586         * remote.c (remote_get_trace_status): New variable ex.  Put
2587         remote_get_noisy_reply into TRY_CATCH.  Call exception_fprintf for it.
2588
2589 2011-07-13  Tom Tromey  <tromey@redhat.com>
2590
2591         * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
2592         value_from_contents for final conversion.
2593
2594 2011-07-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
2595
2596         Code cleanup.
2597         * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
2598         Indent prototypes so they do not get into tags.
2599
2600 2011-07-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
2601
2602         Code cleanup making also optimized out values lazy.
2603         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
2604         allocate_optimized_out_value.  Twice.
2605         (loclist_read_variable)  Use allocate_optimized_out_value.  Once.
2606         * findvar.c (read_var_value): Likewise.
2607         * value.c (allocate_optimized_out_value): New function.
2608         * value.h (allocate_optimized_out_value): New declaration.
2609
2610 2011-07-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
2611
2612         Fix occasional crash of CTRL-C during DWARF read in.
2613         * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
2614
2615 2011-07-11  Tom Tromey  <tromey@redhat.com>
2616
2617         * regcache.c (struct regcache_descr): Fix typo.
2618         * i387-tdep.c (i387_supply_xsave): Fix typo.
2619
2620 2011-07-11  Tom Tromey  <tromey@redhat.com>
2621
2622         * dwarf2read.c (handle_DW_AT_stmt_list): New function.
2623         (read_file_scope, read_type_unit_scope): Use it.
2624
2625 2011-07-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
2626
2627         * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
2628         `int'.
2629
2630 2011-07-11  Phil Muldoon  <pmuldoon@redhat.com>
2631
2632         PR python/12438
2633         * python/python.c: Set gdbpy_should_print_stack default to off.
2634         (set_python): Deprecate maint set python print-stack to
2635         class_deprecate.
2636         (_initialize_python): Deprecate maint set/show python print-stack.
2637         Add new prefix command, python.  Add new setting, print-backtrace.
2638         * NEWS: Document set python print-stack.  Document default change.
2639
2640 2011-07-11  Phil Muldoon  <pmuldoon@redhat.com>
2641
2642         * python/py-inferior.c (infpy_dealloc): New function.
2643         (inferior_to_inferior_object): Return a new object, or a
2644         new reference to the existing object.
2645         (find_thread_object): Cleanup references to inferior.
2646         (delete_thread_object): Ditto.
2647         * python/py-infthread.c (create_thread_object): Do not increment
2648         inferior reference count.
2649
2650 2011-07-08  Tom Tromey  <tromey@redhat.com>
2651
2652         * dwarf2loc.c (locexpr_regname): New function.
2653         (locexpr_describe_location_piece): Use it.
2654         (disassemble_dwarf_expression): Add per_cu argument.  Use
2655         locexpr_regname.
2656         <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
2657         DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
2658         New cases.
2659         (locexpr_describe_location_1): Add per_cu argument.
2660         (locexpr_describe_location): Update.
2661         (loclist_describe_location): Update.
2662
2663 2011-07-08  Tom Tromey  <tromey@redhat.com>
2664
2665         * dwarf2expr.c (execute_stack_op): Add QUIT.
2666
2667 2011-07-07  Hui Zhu  <teawater@gmail.com>
2668
2669         Revert:
2670         2011-07-06  Hui Zhu  <teawater@gmail.com>
2671         * remote.c (remote_start_remote): Add TRY_CATCH for
2672         remote_get_trace_status.
2673         * tracepoint.c (disconnect_tracing): Ditto.
2674
2675 2011-07-07  Andrew Burgess  <aburgess@broadcom.com>
2676
2677         * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
2678         variables as signed, not unsigned.
2679
2680 2011-07-06  Joel Brobecker  <brobecker@adacore.com>
2681
2682         * jit.c (jit_inferior_init): Reformat forward declaration.
2683
2684 2011-07-06  Matt Rice  <ratmice@gmail.com>
2685
2686         * MAINTAINERS (Write After Approval): Add myself to the list.
2687
2688 2011-07-06  Hui Zhu  <teawater@gmail.com>
2689
2690         * remote.c (remote_start_remote): Add TRY_CATCH for
2691         remote_get_trace_status.
2692         * tracepoint.c (disconnect_tracing): Ditto.
2693
2694 2011-07-05  Tom Tromey  <tromey@redhat.com>
2695
2696         * symtab.c (operator_chars): Now static.
2697         * linespec.c (operator_chars): Don't declare.
2698
2699 2011-07-05  Thiago Jung Bauermann  <bauerman@br.ibm.com>
2700
2701         * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
2702
2703 2011-07-05  Tom Tromey  <tromey@redhat.com>
2704
2705         * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
2706         * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
2707         (TYPE_CPLUS_REALLY_JAVA): New macro.
2708         * dwarf2read.c (process_structure_scope): Set
2709         TYPE_CPLUS_REALLY_JAVA.
2710
2711 2011-07-05  Thiago Jung Bauermann  <bauerman@br.ibm.com>
2712
2713         * ada-lang.c: Fix typos.
2714         * amd64-tdep.c: Likewise.
2715         * breakpoint.c: Likewise.
2716         * cli/cli-decode.c: Likewise.
2717         * findcmd.c: Likewise.
2718         * inline-frame.c: Likewise.
2719         * mi/mi-main.c: Likewise.
2720         * minsyms.c: Likewise.
2721         * monitor.c: Likewise.
2722         * monitor.h: Likewise.
2723         * prologue-value.c: Likewise.
2724         * reverse.c: Likewise.
2725         * s390-tdep.c: Likewise.
2726
2727 2011-07-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
2728
2729         * jit.c (jit_inferior_init): Forward declare.
2730         (jit_breakpoint_re_set_internal): Call jit_inferior_init.
2731
2732 2011-07-04  Joel Brobecker  <brobecker@adacore.com>
2733
2734         * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
2735
2736 2011-07-04  Tristan Gingold  <gingold@adacore.com>
2737
2738         * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
2739         (tcb_fieldno): Add activation_link field.
2740         (get_known_tasks_addr): Moved and rewritten.
2741         (get_tcb_types_info): Set activation_link field.
2742         (read_known_tasks_array): Add parameter.  Rewritten.
2743         (read_known_tasks_list): New function.
2744         (read_known_tasks): New function.
2745         (ada_build_task_list): Call read_known_tasks instead of
2746         read_known_tasks_array.
2747         * ravenscar-thread.c: Add first_task_name constant.
2748         (has_ravenscar_runtime): Check for task list too.
2749
2750 2011-07-04  Tristan Gingold  <gingold@adacore.com>
2751
2752         * ada-tasks.c: Renames fieldno to actb_fieldno.
2753         (ada_get_task_number): Indentation.
2754         (get_tcb_types_info): Remove all parameters.  Write directly
2755         the globals.
2756         (ptid_from_atcb_common): Adjust.
2757         (read_atcb): Adjust.
2758
2759 2011-07-04  Thiago Jung Bauermann  <bauerman@br.ibm.com>
2760
2761         * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
2762
2763 2011-07-04  Thiago Jung Bauermann  <bauerman@br.ibm.com>
2764
2765         * ui-out.c (ui_out_field_core_addr): Mention that the function
2766         description is in the header file.
2767         * ui-out.h (ui_out_field_core_addr): Document function.
2768
2769 2011-07-04  Thiago Jung Bauermann  <bauerman@br.ibm.com>
2770
2771         * ui-out.c (ui_out_get_field_separator): Remove unused function.
2772         * ui-out.h (ui_out_get_field_separator): Remove prototype.
2773
2774 2011-07-04  Thiago Jung Bauermann  <bauerman@br.ibm.com>
2775
2776         * symtab.c (expand_line_sal): Remove empty line.
2777
2778 2011-07-04  Thomas Schwinge  <thomas@schwinge.name>
2779
2780         * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
2781         same way as ELFOSABI_NONE.
2782         <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
2783
2784 2011-07-04  Thiago Jung Bauermann  <bauerman@br.ibm.com>
2785
2786         * breakpoint.c: Fix typos in comments.
2787         * linespec.c: Likewise.
2788         * symtab.c: Likewise.
2789
2790 2011-07-04  Joel Brobecker  <brobecker@adacore.com>
2791
2792         * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
2793         section in separate object files.
2794
2795 2011-07-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
2796
2797         Fix false GCC warning.
2798         * linespec.c (decode_line_1): Initialize values.
2799
2800 2011-07-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
2801
2802         * linespec.c (find_method): Accept the function type automatically only
2803         if it was specified with parameter types.
2804
2805 2011-07-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
2806
2807         Stop on first linespec terminator instead of eating what we can.
2808         * linespec.c (is_linespec_boundary): New function.
2809         (name_end): Remove function.
2810         (keep_name_info): New parameter on_boundary, replace the body.
2811         (decode_line_1): Provide the parameter to keep_name_info.
2812         (decode_compound): Likewise.  Drop the trailing java return type
2813         handling.  Twice.
2814
2815 2011-07-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
2816
2817         Fall back linespec to minimal symbols.
2818         * linespec.c (decode_line_1): New variable ex, saved_argptr.  Protect
2819         decode_compound by TRY_CATCH, fall back on minsyms if it failed.
2820         (find_method, symbol_found): Change error to cplusplus_error.
2821
2822 2011-07-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
2823
2824         * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
2825
2826 2011-07-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
2827             Tom Tromey  <tromey@redhat.com>
2828
2829         * dwarf2read.c (check_physname): New variable.
2830         (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
2831         (show_check_physname): New function.
2832         (_initialize_dwarf2_read): Add `check-physname' for check_physname.
2833
2834 2011-07-01  Joel Brobecker  <brobecker@adacore.com>
2835
2836         * machoread.c (macho_symfile_read): Delete OBE comment.
2837
2838 2011-07-01  Joel Brobecker  <brobecker@adacore.com>
2839
2840         * machoread.c (struct macho_oso_data): Delete.
2841         (current_oso): Delete.
2842         (macho_relocate_common_syms): New function, mostly extracted
2843         out of
2844         (macho_add_oso_symfile): Call macho_relocate_common_syms.
2845         Remove code that sets and unset current_oso.
2846         (macho_symfile_relocate): Delete handling of common symbols,
2847         now moved to macho_relocate_common_syms.
2848
2849 2011-07-01  Joel Brobecker  <brobecker@adacore.com>
2850
2851         * darwin-nat.c (darwin_ptrace): Add documentation.
2852         Set errno to zero before calling ptrace.  If ptrace returns
2853         -1 and errno is zero, then change then return zero.
2854         (darwin_kill_inferior): Issue a warning instead of triggering
2855         a failed assertion when the PT_KILL ptrace operations returned
2856         nonzero.
2857
2858 2011-07-01  Joel Brobecker  <brobecker@adacore.com>
2859
2860         * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
2861         only when inf->private->no_ptrace.
2862
2863 2011-07-01  Joel Brobecker  <brobecker@adacore.com>
2864
2865         * ada-lang.c (print_it_exception): Print temporary catchpoints
2866         as "Temporary catchpoint".
2867         (print_mention_exception): Likewise.
2868
2869 2011-07-01  Tom Tromey  <tromey@redhat.com>
2870
2871         * jv-lang.c (java_language_defn): Use java_printchar,
2872         java_printstr.
2873         (java_get_encoding): New function.
2874         (java_emit_char): Use generic_emit_char.
2875         (java_printchar): New function.
2876         (java_printstr): Likewise.
2877
2878 2011-07-01  Joel Brobecker  <brobecker@adacore.com>
2879
2880         * ada-typeprint.c (print_record_type): If unable to decode
2881         the name of the parent type, use the encoded name.
2882
2883 2011-07-01  Jean-Charles Delay  <delay@adacore.com>
2884
2885         * ada-typeprint.c (ada_print_type): Fix both PAD type and
2886         pointer to constrained packed array type output.
2887         * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
2888         packed array output.
2889
2890 2011-07-01  Jean-Charles Delay  <delay@adacore.com>
2891
2892         * ada-typeprint.c (print_array_type): removed if condition on show
2893         being negative for bounds printing.
2894
2895 2011-07-01  Joel Brobecker  <brobecker@adacore.com>
2896
2897         * ada-lang.c (ada_identical_enum_types_p): New function.
2898         (symbols_are_identical_enums): New function.
2899         (remove_extra_symbols): Do nothing if NSYMS < 2.
2900         Use symbols_are_identical_enums.
2901
2902 2011-07-01  Joel Brobecker  <brobecker@adacore.com>
2903
2904         * ada-valprint.c (ada_value_print): Handle typedefs.
2905
2906 2011-07-01  Joel Brobecker  <brobecker@adacore.com>
2907
2908         * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
2909
2910 2011-07-01  Eric Botcazou  <ebotcazou@adacore.com>
2911
2912         * ada-lang.c (thin_descriptor_type): Deal with typedefs.
2913         (decode_constrained_packed_array): Likewise.
2914         (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
2915
2916 2011-07-01  Joel Brobecker  <brobecker@adacore.com>
2917
2918         * ada-exp.y (convert_char_literal): Handle typedef types.
2919
2920 2011-07-01  Joel Brobecker  <brobecker@adacore.com>
2921
2922         * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
2923
2924 2011-06-30  Tom Tromey  <tromey@redhat.com>
2925
2926         * varobj.c (varobj_create): Call do_cleanups on early exit path.
2927         * valops.c (find_overload_match): Call do_cleanups on early exit
2928         path.
2929         * solib.c (solib_find): Call do_cleanups on early exit path.
2930
2931 2011-06-30  Tom Tromey  <tromey@redhat.com>
2932
2933         * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
2934         * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
2935         return paths.  Defer final do_cleanups until last return.
2936         * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
2937         early return.
2938
2939 2011-06-30  Tom Tromey  <tromey@redhat.com>
2940
2941         * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
2942
2943 2011-06-30  Andrew Burgess  <aburgess@broadcom.com>
2944
2945         * MAINTAINERS (Write After Approval): Add myself to the list.
2946
2947 2011-06-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
2948
2949         Disable epilogue unwinders on recent GCCs.
2950         * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
2951         initialize it, return 0 on EPILOGUE_UNWIND_VALID.
2952         * dwarf2read.c (process_full_comp_unit): Initialize
2953         EPILOGUE_UNWIND_VALID.
2954         * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
2955         initialize it, return 0 on EPILOGUE_UNWIND_VALID.
2956         * symtab.h (struct symtab): New field epilogue_unwind_valid.
2957
2958 2011-06-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
2959
2960         Code cleanup - reformatting.
2961         * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
2962         (producer_is_gcc_ge_4): ... here, change the return value.
2963         (process_full_comp_unit): New variable gcc_4_minor, adjust the value
2964         interpretation.
2965
2966 2011-06-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
2967
2968         Fix non-only rename list for Fortran modules import.
2969         * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
2970         cp_add_using_directive caller.
2971         (cp_add_using_directive): New parameter excludes, describe it.  New
2972         variables ix and param.  Compare if also excludes match.  Allocate NEW
2973         with variable size, initialize EXCLUDES there.
2974         (cp_lookup_symbol_imports): New variable excludep, test
2975         current->EXCLUDES with it.
2976         * cp-support.h: Include vec.h.
2977         (struct using_direct): New field excludes, describe it.
2978         (DEF_VEC_P (const_char_ptr)): New.
2979         (cp_add_using_directive): New parameter excludes.
2980         * defs.h (const_char_ptr): New typedef.
2981         * dwarf2read.c (read_import_statement): New variables child_die,
2982         excludes and cleanups, read in excludes.
2983         (read_namespace): Adjust the cp_add_using_directive caller.
2984
2985 2011-06-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
2986
2987         Code cleanup.
2988         * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
2989         negative comparisons.
2990
2991 2011-06-29  André Pönitz  <andre.poenitz@nokia.com>
2992
2993         * mi/mi-main.c (mi_cmd_list_features): Emit
2994         breakpoint-notifications.
2995
2996 2011-06-29  Tom Tromey  <tromey@redhat.com>
2997
2998         PR fortran/10036:
2999         * valprint.h (generic_emit_char, generic_printstr): Declare.
3000         * valprint.c (wchar_printable, append_string_as_wide)
3001         (print_wchar): Move from c-lang.c.
3002         (generic_emit_char): New function; mostly taken from c_emit_char.
3003         (generic_printstr): New function; mostly taken from c_printstr.
3004         * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
3005         represented as arrays.
3006         <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
3007         type.
3008         * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
3009         identically to TYPE_CODE_INT.
3010         * f-lang.c (f_get_encoding): New function.
3011         (f_emit_char): Use generic_emit_char.
3012         (f_printchar): Replace comment.
3013         (f_printstr): Use generic_printstr.
3014         * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
3015         "character" types specially.
3016         <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
3017         for Fortran.
3018         * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
3019         Move to valprint.c
3020         (c_emit_char): Call generic_emit_char.
3021         (c_printstr): Call generic_printstr.
3022
3023 2011-06-29  Gary Benson  <gbenson@redhat.com>
3024
3025         * breakpoint.c (bpstat_what): Removed duplicated case.
3026
3027 2011-06-28  Tom Tromey  <tromey@redhat.com>
3028
3029         * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
3030
3031 2011-06-27  Tom Tromey  <tromey@redhat.com>
3032
3033         * valops.c (find_overload_match): Call do_cleanups before early
3034         return.
3035         * top.c (execute_command): Call do_cleanups before early return.
3036         (command_loop): Likewise.
3037         * stack.c (backtrace_command): Make a null cleanup early.  Don't
3038         conditionally call do_cleanups.
3039         * python/py-value.c (TRY_CATCH): Move cleanup handling into
3040         TRY_CATCH.
3041         * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
3042         so cleanups are always run.
3043         * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
3044         * findcmd.c (parse_find_args): Call do_cleanups on early return
3045         path.
3046         * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
3047         Don't conditionally call do_cleanups.
3048         * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
3049         later.
3050
3051 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
3052
3053         * MAINTAINERS (Write After Approval): Use default email address.
3054
3055 2011-06-27  Joel Brobecker  <brobecker@adacore.com>
3056
3057         * MAINTAINERS (Write After Approval): Add Eric Botcazou.
3058
3059 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
3060
3061         * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
3062         saved_regs_mask and copied_regs_mask fields.
3063         (sparc_record_save_insn): New prototype.
3064         * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
3065         (sparc_record_save_insn): New function.
3066         (sparc_analyze_prologue): Add head comment.  Recognize store insns
3067         of call-saved registers.  Use OFFSET consistently.  Recognize flat
3068         frames and cache their settings.
3069         (sparc32_skip_prologue): Handle flat frames.
3070         (sparc_frame_cache): Add frame_offset to the base address.
3071         (sparc32_frame_cache): Adjust to new frame description.
3072         (sparc32_frame_prev_register): Likewise.
3073         * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
3074         * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
3075         * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
3076         * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
3077         frame by calling sparc_record_save_insn.
3078         * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
3079         * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
3080         * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
3081
3082 2011-06-27  Tristan Gingold  <gingold@adacore.com>
3083
3084         * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
3085         field by map_addr and map_len.
3086         (dwarf2_read_section): Adjust for the new bfd_mmap api.
3087         (munmap_section_buffer): Likewise.
3088
3089 2011-06-24  Tom Tromey  <tromey@redhat.com>
3090
3091         * varobj.c (update_dynamic_varobj_children): Make 'name' const.
3092         * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
3093         * python/python.c (gdbpy_parameter): Make 'arg' const.
3094         (execute_gdb_command): Likewise.
3095         (gdbpy_decode_line): Likewise.  Copy it.
3096         (gdbpy_parse_and_eval): Make 'expr_string' const.  Copy it.
3097         (gdbpy_write): Make 'arg' const.
3098         * python/py-type.c (typy_lookup_typename): Make 'type_name'
3099         const.
3100         (gdbpy_lookup_type): Likewise.
3101         * python/py-prettyprint.c (print_children): Make 'name' const.
3102         * python/py-param.c (parmpy_init): Make 'name' const.  Copy it.
3103         * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
3104         Py_ssize_t.
3105         * python/py-function.c (fnpy_init): Make 'name' const.
3106         * python/py-cmd.c (cmdpy_init): Make 'name' const.  Copy it.
3107         (gdbpy_string_to_argv): Make 'input' const.
3108         * python/py-breakpoint.c (bppy_init): Make 'spec' const.  Copy
3109         it.
3110         * gdbtypes.h (lookup_typename): Update.
3111         * gdbtypes.c (lookup_typename): Make 'name' const.
3112         (lookup_struct): Likewise.
3113         (lookup_union): Likewise.
3114         (lookup_enum): Likewise.
3115
3116 2011-06-24  Tom Tromey  <tromey@redhat.com>
3117
3118         * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
3119         gdb_thread_db.h.  Move all common/ entries to be together.
3120         (TAGS): Don't depend on DEPFILES.
3121
3122 2011-06-23  Yao Qi  <yao@codesourcery.com>
3123
3124         * infrun.c (start_remote): Move call init_wait_for_inferior to ...
3125         * remote.c (remote_start_remote): ... here.
3126         * monitor.c (monitor_open): ... here.
3127
3128 2011-06-23  Andrew Burgess  <aburgess@broadcom.com>
3129
3130         * gdbtypes.c (append_composite_type_field_aligned): Fix
3131         calculation of bit position based on alignment.
3132
3133 2011-06-22  Pedro Alves  <pedro@codesourcery.com>
3134
3135         * breakpoint.c (bpstat_stop_status): Call the check_status
3136         breakpoint_ops method.
3137         (print_one_breakpoint_location): Also print the condition for Ada
3138         exception catchpoints.
3139         (allocate_bp_location): New, factored out from
3140         allocate_bp_location.
3141         (allocate_bp_location): Adjust.  Call the owner breakpoint's
3142         allocate_location method, if there is one.
3143         (free_bp_location): Call the locations's dtor method, if there is
3144         one.
3145         (init_raw_breakpoint_without_location): New breakpoint_ops
3146         parameter.  Use it.
3147         (set_raw_breakpoint_without_location): Adjust.
3148         (init_raw_breakpoint): New breakpoint_ops parameter.  Pass it down.
3149         (set_raw_breakpoint): Adjust.
3150         (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
3151         (catch_syscall_breakpoint_ops): Install NULL allocate_location,
3152         re_set and check_status methods.
3153         (init_catchpoint): Don't memset, initialize thread, addr_string
3154         and enable_state.  Pass the ops down to init_raw_breakpoint.
3155         (install_catchpoint): Rename to ...
3156         (install_breakpoint): ... this, and make extern.
3157         (create_fork_vfork_event_catchpoint): Adjust.
3158         (catch_exec_breakpoint_ops): Install NULL allocate_location,
3159         re_set and check_status methods.
3160         (create_syscall_event_catchpoint): Adjust.
3161         (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
3162         (masked_watchpoint_breakpoint_ops): Install NULL
3163         allocate_location, re_set and check_status methods.
3164         (catch_exec_command_1): Adjust.
3165         (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
3166         re_set and check_status methods.
3167         (create_ada_exception_breakpoint): Rename to ...
3168         (init_ada_exception_breakpoint): ... this.  Add a struct
3169         breakpoint parameter, and delete the exp_string, cond_string and
3170         cond parameters.  Use init_raw_breakpoint, and don't install or
3171         mention the breakpoint yet.  Don't clear breakpoint fields that
3172         init_raw_breakpoint already clears.
3173         (re_set_breakpoint): Delete, split into ...
3174         (breakpoint_re_set_default, prepare_re_set_context): ... these new
3175         functions.
3176         (breakpoint_re_set_one): Call the breakpoint's
3177         breakpoint_ops->re_set implementation, if there's one.  Adjust.
3178         * breakpoint.h: Forward declare struct bpstats and struct bp_location.
3179         (struct bp_location_ops): New type.
3180         (struct bp_location): New field `ops'.
3181         (struct breakpoint_ops): New `allocate_location', `re_set' and
3182         `check_status' fields.  Make `breakpoint_hit''s description match
3183         reality.
3184         (init_bp_location): Declare.
3185         (breakpoint_re_set_default): Declare.
3186         (create_ada_exception_breakpoint): Rename to ...
3187         (init_ada_exception_breakpoint): ... this.  Add a struct
3188         breakpoint parameter, and delete the exp_string, cond_string and
3189         cond parameters.
3190         (install_breakpoint): Declare.
3191         * ada-lang.c: Include exceptions.h.
3192         <Ada exceptions description>: Update.
3193         (struct ada_catchpoint_location): New type.
3194         (ada_catchpoint_location_dtor): New function.
3195         (ada_catchpoint_location_ops): New global.
3196         (ada_catchpoint): New type.
3197         (create_excep_cond_exprs): New function.
3198         (dtor_exception, allocate_location_exception, re_set_exception)
3199         (should_stop_exception, check_status_exception): New functions.
3200         (print_one_exception, print_mention_exception)
3201         (print_recreate_exception): Adjust.
3202         (dtor_catch_exception, allocate_location_catch_exception)
3203         (re_set_catch_exception, check_status_catch_exception): New
3204         functions.
3205         (catch_exception_breakpoint_ops): Install them.
3206         (dtor_catch_exception_unhandled)
3207         (allocate_location_catch_exception_unhandled)
3208         (re_set_catch_exception_unhandled)
3209         (check_status_catch_exception_unhandled): New functions.
3210         (catch_exception_unhandled_breakpoint_ops): Install them.
3211         (dtor_catch_assert, allocate_location_catch_assert)
3212         (re_set_catch_assert, check_status_catch_assert): New functions.
3213         (catch_assert_breakpoint_ops): Install them.
3214         (ada_exception_catchpoint_p): Delete.
3215         (catch_ada_exception_command_split)
3216         (ada_exception_catchpoint_cond_string): Rename exp_string
3217         parameter to excep_string.  Adjust.
3218         (ada_parse_catchpoint_condition): Delete.
3219         (ada_exception_sal): Rename the exp_string parameter to
3220         excep_string.  Delete the cond_string and cond parameters.
3221         Adjust.
3222         (ada_decode_exception_location): Rename the exp_string parameter
3223         to excep_string.  Delete the cond_string and cond parameters.
3224         Adjust.
3225         (create_ada_exception_catchpoint): New function.
3226         (catch_ada_exception_command, ada_decode_assert_location)
3227         (catch_assert_command): Adjust.
3228         * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
3229
3230 2011-06-22  Pedro Alves  <pedro@codesourcery.com>
3231
3232         * ada-lang.c: Include arch-utils.h.
3233         (ada_decode_exception_location): Make static.
3234         (catch_ada_exception_command): Moved here from breakpoint.c.
3235         (ada_decode_assert_location): Make static.
3236         (catch_assert_command): Moved here from breakpoint.c.
3237         (_initialize_ada_lang): Install the exception and assert
3238         catchpoint commands here.
3239         * ada-lang.h (ada_decode_exception_location)
3240         (ada_decode_assert_location): Delete declarations.
3241         * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
3242         breakpoint.h.
3243         (create_ada_exception_breakpoint): Make extern.
3244         (catch_ada_exception_command, catch_assert_command): Moved to
3245         ada-lang.c.
3246         (add_catch_command): Make extern.
3247         (_initilize_breakpoint): Don't install the exception and assert
3248         catchpoint commands here.
3249         * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
3250         breakpoint.c
3251         (add_catch_command, create_ada_exception_breakpoint): Declare.
3252
3253 2011-06-22  Pedro Alves  <pedro@codesourcery.com>
3254
3255         * breakpoint.c (init_raw_breakpoint_without_location): Don't add
3256         the breakpoint to the breakpoint chain here.
3257         (set_raw_breakpoint_without_location): Add the breakpoint to the
3258         breakpoint chain here.
3259         (init_raw_breakpoint): Adjust comments.
3260         (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
3261         here.
3262         (init_catchpoint): Don't set the catchpoint's breakpoint number
3263         here.
3264         (install_catchpoint): New function.
3265         (create_fork_vfork_event_catchpoint)
3266         (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
3267         use install_catchpoint.
3268
3269 2011-06-22  Pedro Alves  <pedro@codesourcery.com>
3270
3271         * breakpoint.c (create_catchpoint_without_mention)
3272         (create_catchpoint): Delete.
3273
3274 2011-06-22  Pedro Alves  <pedro@codesourcery.com>
3275
3276         * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
3277         * breakpoint.c (init_raw_breakpoint_without_location): Remove
3278         reference to exec_pathname.
3279         (struct exec_catchpoint): New type.
3280         (dtor_catch_exec): New function.
3281         (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
3282         (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
3283         (catch_exec_command_1): Adjust to use init_catchpoint.
3284         (delete_breakpoint): Remove reference to exec_pathname.
3285
3286 2011-06-22  Pedro Alves  <pedro@codesourcery.com>
3287
3288         * breakpoint.h (struct breakpoint_ops): New field `dtor'.
3289         (struct breakpoint): Delete field `syscalls_to_be_caught'.
3290         * breakpoint.c (init_raw_breakpoint_without_location): Remove
3291         reference to syscalls_to_be_caught.
3292         (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
3293         NULL `dtor'.
3294         (struct syscall_catchpoint): New type.
3295         (dtor_catch_syscall): New function.
3296         (insert_catch_syscall, remove_catch_syscall)
3297         (breakpoint_hit_catch_syscall, print_one_catch_syscall)
3298         (print_recreate_catch_syscall): Adjust.
3299         (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
3300         (catch_exec_breakpoint_ops): Install a NULL `dtor'.
3301         (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
3302         (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
3303         (masked_watchpoint_breakpoint_ops)
3304         (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
3305         (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
3306         there is one.  Remove references to syscalls_to_be_caught.
3307         (catching_syscall_number): Adjust.
3308         * ada-lang.c (catch_exception_breakpoint_ops)
3309         (catch_exception_unhandled_breakpoint_ops)
3310         (catch_assert_breakpoint_ops): Install a NULL `dtor'.
3311
3312 2011-06-22  Pedro Alves  <pedro@codesourcery.com>
3313
3314         * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
3315         field.
3316         * breakpoint.c (init_raw_breakpoint_without_location): Remove
3317         reference to forked_inferior_pid.
3318         (struct fork_catchpoint): New type.
3319         (breakpoint_hit_catch_fork, print_it_catch_fork)
3320         (print_one_catch_fork, breakpoint_hit_catch_vfork)
3321         (print_it_catch_vfork, print_one_catch_vfork): Adjust.
3322         (create_fork_vfork_event_catchpoint): Adjust to use
3323         init_catchpoint.
3324
3325 2011-06-22  Pedro Alves  <pedro@codesourcery.com>
3326
3327         * breakpoint.c (add_to_breakpoint_chain)
3328         (init_raw_breakpoint_without_location): New functions, factored
3329         out from ...
3330         (set_raw_breakpoint_without_location): ... this one.
3331         (init_raw_breakpoint): New function, factored out from
3332         set_raw_breakpoint and adjusted to use
3333         init_raw_breakpoint_without_location.
3334         (set_raw_breakpoint): Adjust.
3335         (init_catchpoint): New function, factored out from
3336         create_catchpoint_without_mention and adjusted to use
3337         init_raw_breakpoint.
3338         (create_catchpoint_without_mention): Adjust.
3339
3340 2011-06-22  Tom Tromey  <tromey@redhat.com>
3341
3342         * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
3343         argument of 0 specially.
3344
3345 2011-06-22  Yao Qi  <yao@codesourcery.com>
3346
3347         * infrun.c (handle_inferior_event): Remove write-only local variable
3348         `sw_single_step_trap_p'.
3349
3350 2011-06-20  Tom Tromey  <tromey@redhat.com>
3351
3352         * symtab.c (lookup_language_this): End loop if block is NULL.
3353
3354 2011-06-17  Tom Tromey  <tromey@redhat.com>
3355
3356         * valops.c (value_of_this): Use lookup_language_this.
3357         * symtab.h (lookup_language_this): Declare.
3358         * symtab.c (lookup_language_this): New function.
3359         (lookup_symbol_aux): Use lookup_language_this.
3360         * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
3361
3362 2011-06-17  Tom Tromey  <tromey@redhat.com>
3363
3364         * value.h (value_of_this): Update.
3365         (value_of_local): Remove.
3366         * valops.c (value_of_this): Rename from value_of_local.  Change
3367         parameters.
3368         * p-exp.y (exp): Update.
3369         (variable): Likewise.
3370         * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
3371
3372 2011-06-17  Tom Tromey  <tromey@redhat.com>
3373
3374         * valops.c (value_of_local): Complain if NAME is NULL.
3375         * std-operator.def (OP_OBJC_SELF): Remove.
3376         * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
3377         * objc-exp.y (name_not_typename): Use OP_THIS.
3378         * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
3379         name for "this".
3380         <OP_OBJC_SELF>: Remove.
3381         * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
3382
3383 2011-06-16  Tristan Gingold  <gingold@adacore.com>
3384
3385         * python/py-events.h (gdb_py_events): Make it extern.
3386         * python/py-evtregistry.c (gdb_py_events): Declare.
3387
3388 2011-06-16  Hui Zhu  <teawater@gmail.com>
3389
3390         * remote.c (remote_trace_set_readonly_regions): Add check for
3391         remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
3392         output warning.
3393
3394 2011-06-15  Ulrich Weigand  <ulrich.weigand@linaro.org>
3395
3396         * arm-linux-tdep.c: Include "auxv.h".
3397         (AT_HWCAP): Define.
3398         (ARM_LINUX_SIZEOF_VFP): Define.
3399         (arm_linux_supply_vfp): New function.
3400         (arm_linux_collect_vfp): Likewise.
3401         (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
3402         (arm_linux_fpa_regset_sections): New variable.
3403         (arm_linux_vfp_regset_sections): Likewise.
3404         (arm_linux_core_read_description): New function.
3405         (arm_linux_init_abi): Install arm_linux_core_read_description and
3406         arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
3407         appropriate for the architecture.
3408         * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
3409         (tdesc_arm_with_m): Declare.
3410         (tdesc_arm_with_iwmmxt): Likewise.
3411         (tdesc_arm_with_vfpv2): Likewise.
3412         (tdesc_arm_with_vfpv3): Likewise.
3413         (tdesc_arm_with_neon): Likewise.
3414         * arm-linux-nat.c: Move features/*.c includes ...
3415         * arm-tdep.c: ... here.
3416         * arm-linux-nat.c (arm_linux_read_description): Move initializing
3417         target description data structures ...
3418         * arm-tdep.c (_initialize_arm_tdep): ... here.
3419         * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
3420         HWCAP_VFPv3D16): Move definitions ...
3421         * arm-linux-tdep.h: ... here.
3422
3423 2011-06-15  Hui Zhu  <teawater@gmail.com>
3424
3425         * remote.c (remote_trace_set_readonly_regions): Add a check for
3426         target_buf_size.
3427
3428 2011-06-14  Tom Tromey  <tromey@redhat.com>
3429
3430         * coffread.c (coffread_objfile): Rename from current_objfile.
3431         * dbxread.c (dbxread_objfile): Rename from current_objfile.
3432         * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
3433
3434 2011-06-14  Tom Tromey  <tromey@redhat.com>
3435
3436         * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
3437         (class_symtab): Remove.
3438         (jv_dynamics_progspace_key): New global.
3439         (jv_per_objfile_free): Reset program space data.  Update assert.
3440         Don't clear globals.
3441         (get_dynamics_objfile): Use and set program space data.
3442         (get_java_class_symtab): Use get_dynamics_objfile.
3443         (add_class_symbol): Likewise.
3444         (java_link_class_type): Likewise.
3445         (java_object_type, jv_clear_object_type, set_java_object_type):
3446         Remove.
3447         (get_java_object_type): Update.  Don't cache result.
3448         (is_object_type): Don't call set_java_object_type.
3449         (_initialize_java_language): Don't set jv_type_objfile_data_key;
3450         initialize jv_dynamics_progspace_key.
3451
3452 2011-06-14  Tom Tromey  <tromey@redhat.com>
3453
3454         * symtab.h (current_objfile): Don't declare.
3455         * objfiles.h (current_objfile): Don't declare.
3456         * objfiles.c (current_objfile): Remove.
3457         * mdebugread.c (current_objfile): New file-scope global.
3458         * dbxread.c (current_objfile): New file-scope global.
3459         * coffread.c (current_objfile): New file-scope global.
3460
3461 2011-06-13  Pedro Alves  <pedro@codesourcery.com>
3462
3463         * top.h (line): Rename to ...
3464         (saved_command_line): ... this.
3465         (linesize): Rename to ...
3466         (saved_command_line_size): ... this.
3467         * top.c (line): Rename to ...
3468         (saved_command_line): ... this.
3469         (linesize): Rename to ...
3470         (saved_command_line_size): ... this.
3471         (dont_repeat, command_line_input, dont_repeat_command): Adjust.
3472         * event-top.c (command_line_handler): Adjust.
3473         * main.c (captured_main): Adjust.
3474
3475 2011-06-12  Mark Kettenis  <kettenis@gnu.org>
3476
3477         * i386-tdep.c (i386_epilogue_frame_cache): Simplify code.  Call
3478         get_frame_func instead of get_frame_pc to determine the code
3479         address used to construct the frame ID.
3480         (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
3481         (i386_epilogue_frame_this_id): Likewise.
3482         (i386_epilogue_frame_prev_register): New function.
3483         (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
3484         (i386_stack_tramp_frame_sniffer): Fix coding style.
3485         (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
3486         (i386_gdbarch_init): Fix comments.
3487
3488 2011-06-12  Mark Kettenis  <kettenis@gnu.org>
3489
3490         * i386-tdep.c (i386_match_insn_block): Use length of the proper
3491         instruction when walking back through the instruction stream.
3492
3493 2011-06-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
3494
3495         * symtab.c (output_partial_symbol_filename): Exchange the filename and
3496         fullname parameters order.
3497
3498 2011-06-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
3499
3500         Code cleanup.
3501         * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
3502         for fun.
3503         * psymtab.c (map_symbol_filenames_psymtab)
3504         (map_partial_symbol_filenames): Likewise.
3505         * psymtab.h: Include symfile.h.
3506         (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
3507         * symfile.h (symbol_filename_ftype): New.
3508         (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
3509         map_symbol_filenames, clarify more the naming in comment.
3510
3511 2011-06-07  Doug Evans  <dje@google.com>
3512
3513         * cc-with-index.sh: Fix typos in comment.
3514         Look for ../../gdb, for fullname.exp.
3515
3516 2011-06-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
3517             Pedro Alves  <pedro@codesourcery.com>
3518
3519         * cli/cli-cmds.c (shell_escape): Use waitpid.
3520         * rs6000-nat.c (exec_one_dummy_insn): Likewise.
3521
3522 2011-06-07  Tristan Gingold  <gingold@adacore.com>
3523
3524         * xcoffread.c (dwarf2_xcoff_names): New variable.
3525         (aix_process_linenos): Add a guard.
3526         (xcoff_symfile_finish): Free dwarf2.
3527         (xcoff_initial_scan): Add dwarf2 support.
3528
3529 2011-06-06  Pedro Alves  <pedro@codesourcery.com>
3530
3531         * infcall.c (run_inferior_call): Don't mask async.  Instead force
3532         a synchronous wait, if the target can async.
3533
3534         * target.h (struct target_ops): Delete to_async_mask.
3535         (target_async_mask): Delete.
3536         * target.c (update_current_target): Delete references to to_async_mask.
3537         * linux-nat.c (linux_nat_async_mask_value): Delete.
3538         (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
3539         to linux_nat_async_mask_value.
3540         (linux_nat_async_mask): Delete.
3541         (linux_nat_async, linux_nat_close): Remove references to
3542         linux_nat_async_mask_value.
3543         * record.c (record_async_mask_value): Delete.
3544         (record_async): Remove references to record_async_mask_value.
3545         (record_async_mask): Delete.
3546         (record_can_async_p, record_is_async_p): Remove references to
3547         record_async_mask_value.
3548         (init_record_ops, init_record_core_ops): Remove references to
3549         record_async_mask.
3550         * remote.c (remote_async_mask_value): Delete.
3551         (init_remote_ops): Remove reference to remote_async_mask.
3552         (remote_can_async_p, remote_is_async_p): Remove references to
3553         remote_async_mask_value.
3554         (remote_async): Remove references to remote_async_mask_value.
3555         (remote_async_mask): Delete.
3556
3557         * infrun.c (fetch_inferior_event): Don't claim registers changed
3558         if the current thread is already not executing.
3559
3560 2011-06-03  Joel Brobecker  <brobecker@adacore.com>  (obvious fix)
3561
3562         From Stephen Kitt  <steve@sk2.org>
3563         * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
3564         gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
3565
3566 2011-06-03  Joel Brobecker  <brobecker@adacore.com>
3567
3568         * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
3569         the case where ADDR_SIZE is different from TYPE_LENGTH (type).
3570
3571 2011-06-03  Tom Tromey  <tromey@redhat.com>
3572
3573         * python/py-inferior.c (python_inferior_exit): Use inferior's exit
3574         code fields.
3575         * python/py-exitedevent.c (create_exited_event_object): Change
3576         type of 'exit_code'.  Optionally add exit_code attribute.
3577         (emit_exited_event): Change type of 'exit_code'.
3578         * python/py-event.h (emit_exited_event): Update.
3579         * mi/mi-interp.c (mi_inferior_exit): Print exit code.
3580         * infrun.c (handle_inferior_event): Set exit code fields on
3581         inferior.
3582         * inferior.h (struct inferior) <has_exit_code, exit_code>: New
3583         fields.
3584         * inferior.c (exit_inferior_1): Initialize new fields.
3585
3586 2011-06-03  Tom Tromey  <tromey@redhat.com>
3587
3588         * dwarf2expr.c (get_signed_type): New function.
3589         (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
3590
3591 2011-06-02  Keith Seitz  <keiths@redhat.com>
3592
3593         * objc-lang.c (find_methods): Increment objfile_csym earlier.
3594
3595 2011-06-02  Pedro Alves  <pedro@codesourcery.com>
3596
3597         * top.h (simplified_command_loop): Delete declaration.
3598
3599 2011-06-01  Mike Frysinger  <vapier@gentoo.org>
3600
3601         * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
3602         gdb_sysroot to the "len" variable.  Append both to "arg_buf".
3603
3604 2011-06-01  Yao Qi  <yao@codesourcery.com>
3605
3606         * objfiles.h (obj_section_addr): Update reference to objfile from
3607         `abfd' to `obfd'.
3608         (obj_section_endaddr): Likewise.
3609
3610 2011-06-01  Daniel Jacobowitz  <drow@false.org>
3611
3612         * MAINTAINERS: Update my email address and affiliation.  Also
3613         update Ian Lance Taylor's affiliation.  Use UTF-8 for ludo@gnu.org.
3614
3615 2010-05-31  Keith Seitz  <keiths@redhat.com>
3616
3617         PR c++/12750
3618         * linespec.c (get_search_block): New function.
3619         (find_methods): Add FILE_SYMTATB parameter and use it and
3620         get_search_block to pass an appropriate block to
3621         lookup_symbol_in_namespace.
3622         (decode_line_1): Record if *ARGPTR is single-quote enclosed.
3623         Check if *ARGPTR starts with a filename first.
3624         If it does, call locate_first_half again to locate the next
3625         "first half" of the linespec.
3626         Pass FILE_SYMTATB to decode_objc and decode_compound.
3627         Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
3628         (locate_first_half): Stop on the first colon seen.
3629         (decode_compound): Add FILE_SYMTAB parameter.
3630         Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
3631         (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
3632         get_search_block with lookup_symbol.
3633         (find_method): Add FILE_SYMTAB parameter and pass it to
3634         find_methods.
3635         (decode_objc): Use get_search_block.
3636
3637 2010-05-31  Keith Seitz  <keiths@redhat.com>
3638
3639         PR symtab/12704
3640         * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
3641         (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
3642         and CP_ANONYMOUS_NAMESPACE_LEN.
3643         (cp_is_anonymous): Likewise.
3644         * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
3645         (CP_ANONYMOUS_NAMESPACE_LEN): Define.
3646         * dwarf2read.c (namespace_name): Likewise.
3647         (fixup_partial_die): Likewise.
3648         * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
3649         seen in the input, keep it.
3650
3651 2011-05-30  Pedro Alves  <pedro@codesourcery.com>
3652
3653         * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
3654         * inf-loop.h (inferior_event_handler_wrapper): Delete.
3655         * inf-loop.c (inferior_event_handler_wrapper): Delete.
3656         (inferior_event_handler): Don't handle INF_QUIT_REQ.
3657         * remote.c (_initialize_remote): Register
3658         async_remote_interrupt_twice directly as
3659         sigint_remote_twice_token event.
3660
3661 2011-05-30  Pedro Alves  <pedro@codesourcery.com>
3662
3663         * target.h (enum inferior_event_type): Delete INF_ERROR.
3664         * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
3665
3666 2011-05-30  Pedro Alves  <pedro@codesourcery.com>
3667
3668         * interps.c (interp_set): Don't cancel continuations.
3669
3670 2011-05-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
3671
3672         * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
3673
3674 2011-05-30  Pedro Alves  <pedro@codesourcery.com>
3675
3676         * continuations.h (continuation_ftype): Add `err' parameter.
3677         Document parameters.
3678         (do_all_continuations, do_all_continuations_thread)
3679         (do_all_intermediate_continuations)
3680         (do_all_intermediate_continuations_thread)
3681         (do_all_inferior_continuations): Add `err' parameter.
3682         * continuations.c (do_my_continuations_1, do_my_continuations)
3683         (do_all_inferior_continuations, do_all_continuations_ptid)
3684         (do_all_continuations_thread_callback)
3685         (do_all_continuations_thread, do_all_continuations)
3686         (do_all_intermediate_continuations_thread_callback)
3687         (do_all_intermediate_continuations_thread)
3688         (do_all_intermediate_continuations): Add `err' parameter, and pass
3689         it down all the way to the continuations proper.
3690         * inf-loop.c (inferior_event_handler): If fetching an inferior
3691         event throws an error, don't pop the target, and still call the
3692         continuations, but with `err' set.  Adjust all other continuation
3693         calls.
3694         * breakpoint.c (until_break_command_continuation): Add `err'
3695         parameter.
3696         * infcmd.c (step_1_continuation): Add `err' parameter.  Don't
3697         issue another step if `err' is set.
3698         (struct until_next_continuation_args): New.
3699         (until_next_continuation): Add `err' parameter.  Adjust.
3700         (until_next_command): Adjust.
3701         (struct finish_command_continuation_args): Add `thread' field.
3702         (finish_command_continuation): Add `err' parameter.  Handle it.
3703         (finish_forward): Adjust.
3704         (attach_command_continuation): Add `err' parameter.  Handle it.
3705         * infrun.c (infrun_thread_stop_requested_callback): Adjust to
3706         cancel the continuations.
3707         * interps.c (interp_set): Adjust to cancel the continuations.
3708         * thread.c (clear_thread_inferior_resources): Adjust to cancel the
3709         continuations rather than discarding.
3710         (free_thread): Don't clear thread inferior resources here.
3711         (delete_thread_1): Do it here instead.  And do it before removing
3712         the thread from the threads list.  Tag the thread as exited before
3713         clearing thread inferior resources.
3714
3715 2011-05-30  Joel Brobecker  <brobecker@adacore.com>
3716
3717         * infcall.c (call_function_by_hand): Rephrase error message.
3718
3719 2011-05-27  Pedro Alves  <pedro@codesourcery.com>
3720
3721         * defs.h (struct thread_info, struct inferior): Delete forward
3722         declarations.
3723         * breakpoint.h (struct thread_info): New forward declaration.
3724         * observer.sh (struct inferior): New forward declaration.
3725         * python/python-internal.h (struct inferior): New forward
3726         declaration.
3727
3728 2011-05-27  Pedro Alves  <pedro@codesourcery.com>
3729
3730         * defs.h (struct continuation, continuation_ftype)
3731         (continuation_free_arg_ftype, add_continuation)
3732         (do_all_continuations, do_all_continuations_thread)
3733         (discard_all_continuations, discard_all_continuations_thread)
3734         (add_intermediate_continuation, do_all_intermediate_continuations)
3735         (do_all_intermediate_continuations_thread)
3736         (discard_all_intermediate_continuations)
3737         (discard_all_intermediate_continuations_thread)
3738         (add_inferior_continuation, do_all_inferior_continuations)
3739         (discard_all_inferior_continuations): Move to ...
3740         * continuations.h: ... this new file.
3741         * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
3742         infcmd.c, inferior.c, infrun.c, interps.c: Include
3743         continuations.h.
3744
3745 2011-05-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
3746             Doug Evans  <dje@google.com>
3747
3748         Fix PR 10970, PR 12702.
3749         * linux-nat.c (linux_lwp_is_zombie): New function.
3750         (wait_lwp): Initialize status.  New variable prev_mask.  Block signals.
3751         Check for linux_lwp_is_zombie.  Use WNOHANG and sigsuspend.
3752
3753 2011-05-27  Pedro Alves  <pedro@codesourcery.com>
3754
3755         * defs.h (continuation_ftype, continuation_free_arg_ftype): New
3756         typedefs.
3757         (add_continuation, add_intermediate_continuation)
3758         (add_inferior_continuation): Use them.
3759         * continuations.c (struct continuation): Use them.
3760         (make_continuation_ftype): Delete.
3761         (make_continuation, add_inferior_continuation, add_continuation)
3762         (add_intermediate_continuation): Use continuation_ftype and
3763         continuation_free_arg_ftype.  Rename parameters to shorter names.
3764
3765 2011-05-27  Pedro Alves  <pedro@codesourcery.com>
3766
3767         * continuations.c (make_continuation): Make it return void.
3768         (do_my_continuations): Rename to ...
3769         (do_my_continuations_1): ... this.  Remove old_chain parameter and
3770         adjust.
3771         (do_my_continuations): New.
3772         (discard_my_continuations): Rename to ...
3773         (discard_my_continuations_1): ... this.  Remove old_chain
3774         parameter and adjust.
3775         (discard_my_continuations): New.
3776         (add_inferior_continuation): Simplify.
3777         (do_all_inferior_continuations): Reimplement on top
3778         do_my_continuations.
3779         (discard_all_inferior_continuations): Simplify.
3780         (add_continuation): Simplify.
3781         (do_all_continuations_ptid): Simplify.
3782         (discard_all_continuations_thread_callback): Simplify.
3783         (add_intermediate_continuation): Simplify.
3784         (discard_all_intermediate_continuations_thread_callback):
3785         Simplify.
3786
3787 2011-05-27  Pedro Alves  <pedro@codesourcery.com>
3788
3789         * utils.c (struct continuation, add_continuation)
3790         (add_inferior_continuation)
3791         (do_all_inferior_continuations, discard_all_inferior_continuations)
3792         (restore_thread_cleanup, do_all_continuations_ptid)
3793         (do_all_continuations_thread_callback)
3794         (do_all_continuations_thread, do_all_continuations)
3795         (discard_all_continuations_thread_callback)
3796         (discard_all_continuations_thread, discard_all_continuations)
3797         (add_intermediate_continuation)
3798         (do_all_intermediate_continuations_thread_callback)
3799         (do_all_intermediate_continuations_thread)
3800         (do_all_intermediate_continuations)
3801         (discard_all_intermediate_continuations_thread_callback)
3802         (discard_all_intermediate_continuations_thread)
3803         (discard_all_intermediate_continuations): Move to ...
3804         * continuations.c: ... this new file, and adjust to no longer
3805         implement continuations on top of cleanups.
3806         * Makefile.in (SFILES): Add continuations.c.
3807         (COMMON_OBS): Add continuations.o.
3808
3809 2011-05-26  Pedro Alves  <pedro@codesourcery.com>
3810
3811         * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
3812         * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
3813         Internal error on invalid values.
3814         * reverse.c: Don't handle EXEC_ERROR.
3815         * mi/mi-main.c: Don't handle EXEC_ERROR.
3816
3817 2011-05-26  Pedro Alves  <pedro@codesourcery.com>
3818
3819         * record.c: Include event-loop.h, inf-loop.h.
3820         (record_beneath_to_async): New global.
3821         (tmp_to_async): New global.
3822         (record_async_inferior_event_token): New global.
3823         (record_open_1): Don't error out if async is enabled.
3824         (record_open): Handle to_async.  Create an async event source in
3825         the event loop.
3826         (record_close): Delete the async event source.
3827         (record_resumed): New global.
3828         (record_execution_dir): New global.
3829         (record_resume, record_core_resume): Set them.  Register the
3830         target on the event loop.
3831         (record_wait): Rename to ...
3832         (record_wait_1): ... this.  Add more debug output.  Handle
3833         TARGET_WNOHANG, and the target beneath returning
3834         TARGET_WAITKIND_IGNORE.
3835         (record_wait): Reimplement on top of record_wait_1.
3836         (record_async_mask_value): New global.
3837         (record_async, record_async_mask, record_can_async_p)
3838         (record_is_async_p, record_execution_direction): New functions.
3839         (init_record_ops, init_record_core_ops): Install new methods.
3840         * infrun.c (fetch_inferior_event): Temporarily switch the global
3841         execution direction to the direction the target was going.
3842         (execution_direction): Change type to int.
3843         * target.c (default_execution_direction): New function.
3844         (update_current_target): Inherit and de_fault
3845         to_execution_direction.
3846         * target.h (struct target_ops) <to_execution_direction>: New
3847         field.
3848         (target_execution_direction): New macro.
3849         * inferior.h (execution_direction): Change type to int.
3850
3851 2011-05-26  Pedro Alves  <pedro@codesourcery.com>
3852
3853         * infcall.c (call_function_by_hand): Don't allow calling functions
3854         in reverse execution mode.
3855
3856 2011-05-26  Pedro Alves  <pedro@codesourcery.com>
3857
3858         * infcmd.c (finish_command): Allow async finish in reverse.
3859
3860 2011-05-26  Yao Qi  <yao@codesourcery.com>
3861
3862         * gdb_thread_db.h: Delete.  Move to ...
3863         * common/gdb_thread_db.h: ... here.
3864
3865 2011-05-26  Pedro Alves  <pedro@codesourcery.com>
3866
3867         * infcmd.c (finish_backward): Set a step-resume breakpoint at the
3868         function's entry point instead of a manually managed momentary
3869         breakpoint, and only ever issue one proceed call.
3870         * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
3871         doing a reverse-finish, switch to stepi mode, to do another step.
3872         (insert_step_resume_breakpoint_at_sal): Make public.
3873         (normal_stop): No need to save function value return registers if
3874         going reverse.
3875         * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
3876
3877 2011-05-26  Pedro Alves  <pedro@codesourcery.com>
3878
3879         * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
3880         (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
3881         before BPSTAT_WHAT_STOP_SILENT.  Add BPSTAT_WHAT_HP_STEP_RESUME
3882         at the end.
3883         * breakpoint.c (update_breakpoints_after_exec): Also delete hp
3884         step-resume breakpoints.
3885         (print_it_typical): Handle bp_hp_step_resume.
3886         (bpstat_what): Ditto.
3887         (bptype_string): Ditto.
3888         (print_one_breakpoint_location): Ditto.
3889         (allocate_bp_location): Ditto.
3890         (mention): Ditto.
3891         (breakpoint_re_set_one): Ditto.
3892         * infrun.c (handle_inferior_event): Adjust.  Split
3893         BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
3894         BPSTAT_WHAT_HP_STEP_RESUME.
3895         (insert_step_resume_breakpoint_at_sal): Rename to ...
3896         (insert_step_resume_breakpoint_at_sal_1): ... this.  Add bptype
3897         parameter.  Handle it.
3898         (insert_step_resume_breakpoint_at_sal): Reimplement on top of
3899         insert_step_resume_breakpoint_at_sal_1.
3900         (insert_step_resume_breakpoint_at_frame): Rename to ...
3901         (insert_hp_step_resume_breakpoint_at_frame): ... this.  Adjust to
3902         set a high-priority step-resume breakpoint.
3903         (insert_step_resume_breakpoint_at_frame): Adjust comment.
3904         (insert_step_resume_breakpoint_at_caller): Ditto.
3905
3906 2011-05-26  Pedro Alves  <pedro@codesourcery.com>
3907
3908         * breakpoint.c (iterate_over_related_breakpoints): New.
3909         (do_map_delete_breakpoint): New.
3910         (delete_command): Pass do_map_delete_breakpoint to
3911         map_breakpoint_numbers.
3912         (do_disable_breakpoint): New.
3913         (do_map_disable_breakpoint): Iterate over the breakpoint's related
3914         breakpoints.
3915         (do_enable_breakpoint): Rename to ...
3916         (enable_breakpoint_disp): ... this.
3917         (enable_breakpoint): Adjust.
3918         (do_enable_breakpoint): New.
3919         (enable_once_breakpoint): Delete.
3920         (do_map_enable_breakpoint): New.
3921         (do_map_enable_once_breakpoint): New.
3922         (enable_once_command, enable_delete_command)
3923         (delete_trace_command): Iterate over the breakpoint's related
3924         breakpoints.
3925
3926 2011-05-26  Pedro Alves  <pedro@codesourcery.com>
3927
3928         * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
3929         for ALPHA_ZERO_REGNUM.
3930         (alpha_supply_int_regs): Explicitly supply zero as the value for
3931         ALPHA_ZERO_REGNUM in the register cache.
3932         * alpha-nat.c (fetch_osf_core_registers): Ditto.
3933
3934 2011-05-26  Yao Qi  <yao@codesourcery.com>
3935
3936         * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
3937
3938 2011-05-26  Tristan Gingold  <gingold@adacore.com>
3939
3940         * symfile.h (struct dwarf2_section_names): New type.
3941         (struct dwarf2_debug_sections): New type.
3942         (dwarf2_has_info): Add parameter.
3943         * dwarf2read.c (dwarf2_elf_names): New variable.
3944         (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
3945         (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
3946         (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
3947         (dwarf2_has_info): Add names parameter.  Pass names
3948         to dwarf2_locate_sections.
3949         (section_is_p): Rewrite using the names parameter.
3950         (dwarf2_locate_sections): Use section names from the names parameter.
3951         * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
3952         * elfread.c (read_psyms): Ditto.
3953         * machoread.c (macho_symfile_read): Ditto.
3954
3955 2011-05-25  Andreas Schwab  <schwab@redhat.com>
3956
3957         PR gdb/8677
3958         * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
3959
3960 2011-05-24  Keith Seitz  <keiths@redhat.com>
3961
3962         PR breakpoint/12803
3963         * linespec.c (keep_name_info): Add handling for "volatile" keyword.
3964         (decode_compound): Unconditionally call keep_name_info.
3965
3966 2011-05-24  Pedro Alves  <pedro@codesourcery.com>
3967
3968         * breakpoint.c (watchpoint_check): If the watchpoint went out of
3969         scope, clear its command list.
3970         (map_breakpoint_numbers): Don't walk the related breakpoints list
3971         of each breakpoint.
3972
3973 2011-05-24  Tom Tromey  <tromey@redhat.com>
3974
3975         * MAINTAINERS: Move Jim Blandy to past maintainers.
3976
3977 2011-05-24  Tristan Gingold  <gingold@adacore.com>
3978
3979         * symfile.h (enum dwarf2_section_enum): New type.
3980         (dwarf2_get_section_info): New prototype.
3981         * dwarf2read.c (dwarf2_get_section_info): Replace parameter
3982         section_name by sect.  Use a switch to select the info.
3983         * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
3984         (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
3985
3986 2011-05-24  Pedro Alves  <pedro@codesourcery.com>
3987
3988         * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
3989         shared library event breakpoint if there's no execution.
3990
3991 2011-05-24  Thiago Jung Bauermann  <bauerman@br.ibm.com>
3992
3993         * breakpont.c (remove_hw_watchpoints): Remove unused function.
3994         * breakpoint.h remove_hw_watchpoints(): Remove prototype.
3995
3996 2011-05-23  Tom Tromey  <tromey@redhat.com>
3997
3998         * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
3999         NULL.
4000
4001 2011-05-23  Doug Evans  <dje@google.com>
4002
4003         * python/lib/gdb/printing.py (register_pretty_printer): Add missing
4004         entry for RuntimeError to doc string.
4005
4006 2011-05-23  Jerome Guitton  <guitton@adacore.com>
4007
4008         * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
4009         sequence for probing loops.
4010
4011 2011-05-23  Pedro Alves  <pedro@codesourcery.com>
4012
4013         * infrun.c (user_visible_resume_ptid): Fix typos in describing
4014         comment.
4015
4016 2011-05-21  Mark Kettenis  <kettenis@gnu.org>
4017
4018         * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
4019         zero as the value for %g0 in the register cache.
4020         * sparc-tdep.c (sparc32_supply_gregset): Likewise.
4021         * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
4022
4023 2011-05-20  Pedro Alves  <pedro@codesourcery.com>
4024
4025         * infrun.c (proceed): Set previous_inferior_ptid here.
4026         (init_wait_for_inferior): Initialize previous_inferior_ptid from
4027         inferior_ptid, not null_ptid.
4028         (wait_for_inferior): Don't initialize previous_inferior_ptid here.
4029         (fetch_inferior_event): Nor here.
4030
4031 2011-05-20  Pedro Alves  <pedro@codesourcery.com>
4032
4033         * inf-loop.c (inferior_event_handler): Only output a message if
4034         verbose.
4035
4036 2011-05-20  Luis Machado  <lgustavo@codesourcery.com>
4037
4038         * MAINTAINERS: Update my e-mail address.
4039
4040 2011-05-20  Pedro Alves  <pedro@codesourcery.com>
4041
4042         * infrun.c (proceed): Switch the inferior event loop to
4043         INF_EXEC_COMPLETE if the target refused to resume from a
4044         vfork/fork.
4045
4046 2011-05-20  Pedro Alves  <pedro@codesourcery.com>
4047
4048         * infcmd.c: Include "inf-loop.h".
4049         (step_once): When stepping into an inline subroutine, pretend the
4050         target has run.  If the target can async, switch the inferior
4051         event loop to INF_EXEC_COMPLETE.
4052         * inferior.h (user_visible_resume_ptid): Declare.
4053         * infrun.c (user_visible_resume_ptid): New function, factored out
4054         from `resume'.
4055         (resume): Use it.
4056         * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
4057         that the current thread is running.  Merge async and sync
4058         branches.
4059
4060 2011-05-20  Pedro Alves  <pedro@codesourcery.com>
4061
4062         * infcmd.c (step_1): Simplify synchronous case.
4063
4064 2011-05-20  Pedro Alves  <pedro@codesourcery.com>
4065
4066         * tracepoint.c: Include exceptions.h.
4067         (TFILE_PID): Move higher in file.
4068         (tfile_open): Delay pushing the tfile target until we're assured
4069         the tfile header is present in the file.  Wrap reading the initial
4070         newline-terminated lines in TRY_CATCH.  Pop the target if the
4071         initial setup failed.  Add the tfile's thread immediately
4072         aftwards, before any non-essential setup.  Don't skip
4073         post_create_inferior if there are no traceframes present in the
4074         file.
4075         (tfile_close): Remove redundant check for null before xfree call.
4076         (tfile_thread_alive): New function.
4077         (init_tfile_ops): Register it as to_thread_alive callback.
4078
4079 2011-05-20  Pedro Alves  <pedro@codesourcery.com>
4080
4081         * tracepoint.c (tfile_open): Delete #if 0'd code.
4082
4083 2011-05-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
4084
4085         Fix -readnow for -gdwarf-4 unused type units.
4086         * dwarf2read.c (struct signatured_type): Remove the field offset.
4087         (create_signatured_type_table_from_index): Remove its initialization.
4088         (create_debug_types_hash_table): Likewise.  Initialize per_cu.offset
4089         instead.  Add a complaint call.
4090         (process_psymtab_comp_unit): Change assignment to gdb_assert.
4091         (process_type_comp_unit, lookup_die_type, dump_die_shallow)
4092         (lookup_signatured_type_at_offset, read_signatured_type)
4093         (write_one_signatured_type): Update the field for per_cu.
4094
4095 2011-05-19  Tom Tromey  <tromey@redhat.com>
4096
4097         * python/py-inferior.c (python_inferior_exit): Use
4098         target_gdbarch.
4099         (python_on_resume): Likewise.
4100
4101 2011-05-19  Matt Rice  <ratmice@gmail.com>
4102
4103         * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
4104
4105 2011-05-19  Hui Zhu  <teawater@gmail.com>
4106
4107         * tracepoint.c (tfile_trace_find): Return directly when num is -1.
4108
4109 2011-05-19  Hui Zhu  <teawater@gmail.com>
4110
4111         * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
4112
4113 2011-05-18  Tom Tromey  <tromey@redhat.com>
4114
4115         * dwarf2read.c (dwarf2_add_field): Constify.
4116         * value.c (value_static_field): Constify.
4117         * gdbtypes.h (struct main_type) <field.field_location.physname>:
4118         Now const.
4119         * ax-gdb.c (gen_static_field): Constify
4120
4121 2011-05-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
4122
4123         * linux-nat.c (kill_callback): Use SIGKILL first.
4124
4125 2011-05-18  Joel Brobecker  <brobecker@adacore.com>
4126
4127         * ada-lang.c (print_it_exception): Avoid use of sprintf.
4128
4129 2011-05-18  Tom Tromey  <tromey@redhat.com>
4130
4131         * value.c (value_fn_field): Constify.
4132         * symtab.c (gdb_mangle_name): Constify.
4133         * stabsread.c (update_method_name_from_physname): Make 'physname'
4134         argument const.
4135         * p-typeprint.c (pascal_type_print_method_args): Make arguments
4136         const.  Use explicit fputc_filtered loop.
4137         (pascal_type_print_base): Constify.
4138         * p-lang.h (pascal_type_print_method_args): Update.
4139         * linespec.c (add_matching_methods): Constify.
4140         (add_constructors): Likewise.
4141         * jv-typeprint.c (java_type_print_base): Constify.
4142         * gdbtypes.h (struct cplus_struct_type)
4143         <fn_fieldlist.fn_field.physname>: Now const.
4144         * dwarf2read.c (compute_delayed_physnames): Constify.
4145         (dwarf2_add_member_fn): Likewise.
4146         * c-typeprint.c (c_type_print_base): Constify.  Use cleanups.
4147
4148 2011-05-18  Pedro Alves  <pedro@codesourcery.com>
4149
4150         * infrun.c (resume): Mention which is the current thread, and its
4151         current PC in debug output.
4152         (prepare_to_proceed): Mention the thread switching in debug
4153         output.
4154
4155 2011-05-18  Tom Tromey  <tromey@redhat.com>
4156
4157         * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
4158         path check.  Use xmalloc and cleanups.
4159         (try_thread_db_load_from_dir): Use xmalloc and cleanups.
4160
4161 2011-05-17  Tom Tromey  <tromey@redhat.com>
4162
4163         * cp-valprint.c (cp_print_value_fields): Catch errors from
4164         value_static_field.
4165
4166 2011-05-17  Tom Tromey  <tromey@redhat.com>
4167
4168         * dwarf2read.c (dwarf2_get_die_type): Call
4169         get_die_type_at_offset.
4170         * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
4171         get_base_type function.
4172
4173 2011-05-17  Tomas Martinec  <fyzmat@gmail.com>
4174
4175         * infrun.c (handle_inferior_event) <handling deferred step>: Clear
4176         trap_expected.
4177
4178 2011-05-16  Doug Evans  <dje@google.com>
4179
4180         * python/py-auto-load.c (source_section_scripts): Mention objfile
4181         name in warning.
4182
4183 2011-05-15  Doug Evans  <dje@google.com>
4184
4185         * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
4186         (try_thread_db_load_from_pdir): Call it.  If unable to find
4187         libthread_db in directory of libpthread, see if we're looking at
4188         the separate-debug-info copy.
4189
4190         * python/py-autoload.c (print_script): Print "Missing" instead of
4191         "No" for missing scripts.
4192         (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
4193
4194 2011-05-13  Doug Evans  <dje@google.com>
4195
4196         * ui-file.c (stdio_file_write_async_safe): Add comment.
4197
4198 2011-05-14  Hui Zhu  <teawater@gmail.com>
4199
4200         * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
4201
4202 2011-05-13  Doug Evans  <dje@google.com>
4203
4204         Support $pdir and $sdir in libthread-db-search-path.
4205         * NEWS: Mention $sdir,$pdir.
4206         * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
4207         * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
4208         (try_thread_db_load_from_sdir): New function.
4209         (try_thread_db_load_from_dir): New function.
4210         (thread_db_load_search): Handle $pdir, $sdir.  Remove trying of
4211         system directories if search of libthread-db-search-path fails,
4212         that is now done via $sdir.
4213         (has_libpthread): New function.
4214         (thread_db_load): Remove search for libthread_db in directory of
4215         libpthread, that is now done via $pdir.
4216
4217         * NEWS: Mention "info auto-load-scripts".
4218         * python/py-auto-load.c (struct auto_load_pspace_info): New member
4219         script_not_found_warning_printed.
4220         (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
4221         all callers updated.  Initialize script_not_found_warning_printed.
4222         (get_auto_load_pspace_data_for_loading): New function.
4223         (maybe_add_script): New function.
4224         (source_section_scripts): Simplify.  Only print one warning regardless
4225         of the number of auto-load scripts not found.
4226         (clear_section_scripts): Clear script_not_found_warning_printed.
4227         (auto_load_objfile_script): Record script in hash table.
4228         (count_matching_scripts): New function.
4229         (maybe_print_script): Renamed from maybe_print_section_script, all
4230         callers updated.  Rewrite to use ui_out_*.
4231         (info_auto_load_scripts): Renamed from
4232         maintenance_print_section_scripts, all callers updated.
4233         (gdbpy_initialize_auto_load): "maintenance print section-scripts"
4234         renamed as "info auto-load-scripts".
4235
4236 2011-05-13  Tom Tromey  <tromey@redhat.com>
4237
4238         * dwarf2expr.c (read_uleb128): Cast intermediate result.
4239         (read_sleb128): Likewise.
4240
4241 2011-05-13  Tom Tromey  <tromey@redhat.com>
4242
4243         * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
4244         offset display.
4245
4246 2011-05-13  Doug Evans  <dje@google.com>
4247
4248         * linux-nat.c (debug_linux_nat_async): Delete.
4249         Replace all references to use debug_linux_nat instead.
4250         (show_debug_linux_nat_async): Delete.
4251         (sigchld_handler): Call ui_file_write_async_safe instead of
4252         fprintf_unfiltered.
4253         (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
4254         * ui-file.c (struct ui_file): New member to_write_async_safe.
4255         (null_file_write_async_safe): New function.
4256         (ui_file_write_async_safe): New function.
4257         (set_ui_file_write_async_safe): New function.
4258         (ui_file_new): Initialize to_write_async_safe.
4259         (stdio_file_write_async_safe): New function.
4260         (struct stdio_file): New member fd.
4261         (stdio_file_new): Initialize to_write_async_safe, fd.
4262         (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
4263         fileno.
4264         * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
4265         (set_ui_file_write_async_safe): Declare.
4266         (ui_file_write_async_safe): Declare.
4267
4268 2011-05-13  Tom Tromey  <tromey@redhat.com>
4269
4270         * utils.c (do_value_free): New function.
4271         (make_cleanup_value_free): Likewise.
4272         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
4273         freeing correctly.
4274         (dwarf2_loc_desc_needs_frame): Call
4275         make_cleanup_value_free_to_mark.
4276         * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
4277         * dwarf2expr.c (free_dwarf_expr_context): Don't call
4278         value_free_to_mark.
4279         (new_dwarf_expr_context): Don't call value_mark.
4280         * dwarf2-frame.c (execute_stack_op): Call
4281         make_cleanup_value_free_to_mark.
4282         * defs.h (make_cleanup_value_free): Declare.
4283
4284 2011-05-13  Thiago Jung Bauermann  <bauerman@br.ibm.com>
4285
4286         * mi/mi-main.c (mi_cmd_execute): Use cleanup from
4287         prepare_execute_command.
4288         * top.c (prepare_execute_command): Return cleanup.
4289         (execute_command): Use cleanup from prepare_execute_command.
4290         * top.h (prepare_execute_command): Change prototype to return
4291         cleanup.
4292         * defs.h (struct value): Add opaque declaration.
4293         (make_cleanup_value_free_to_mark): Add prototype.
4294         * utils.c (do_value_free_to_mark): New function.
4295         (make_cleanup_value_free_to_mark): Likewise.
4296
4297 2011-05-12  Tom Tromey  <tromey@redhat.com>
4298
4299         * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
4300         cast left-hand-side to unsigned.
4301
4302 2011-05-12  Tom Tromey  <tromey@redhat.com>
4303
4304         PR gdb/12617:
4305         * value.h (value_from_contents): Declare.
4306         * value.c (value_from_contents): New function.
4307         * dwarf2read.c (dwarf_stack_op_name): Add new values.
4308         (dwarf2_get_die_type): New function.
4309         * dwarf2loc.c (dwarf_expr_get_base_type): New function.
4310         (allocate_piece_closure): Acquire reference to values.
4311         (read_pieced_value): Update for value-based expressions.
4312         (write_pieced_value): Likewise.
4313         (free_pieced_value_closure): Call value_free as needed.
4314         (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
4315         Update for value-based expressions.
4316         * dwarf2loc.h (dwarf2_get_die_type): Declare.
4317         * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
4318         <get_base_type>: New field.
4319         (struct dwarf_expr_piece) <v.value>: Change type.
4320         <v.regno>: New field.
4321         (struct dwarf_expr_context) <mark>: New field.
4322         (dwarf_expr_piece, dwarf_expr_fetch): Update.
4323         (dwarf_expr_pop, dwarf_expr_push): Remove.
4324         (dwarf_expr_push_address): Declare.
4325         * dwarf2expr.c (dwarf_arch_cookie): New global.
4326         (struct dwarf_gdbarch_types): New.
4327         (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
4328         functions.
4329         (dwarf_expr_push): Change type of 'value' argument.  Update.  Now
4330         static.
4331         (dwarf_expr_push_address): New function.
4332         (dwarf_expr_pop): Now static.
4333         (dwarf_expr_fetch): Change return type.
4334         (dwarf_require_integral): New function.
4335         (dwarf_expr_fetch): Simplify.
4336         (add_piece): Update.
4337         (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
4338         functions.
4339         (execute_stack_op) <sign_ext>: Remove.
4340         Use values for DWARF stack.
4341         <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
4342         DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
4343         New cases.
4344         (_initialize_dwarf2expr): New function.
4345         (add_piece): Update.
4346         (new_dwarf_expr_context): Set new field.
4347         (free_dwarf_expr_context): Call value_free_to_mark.
4348         * dwarf2-frame.c (no_base_type): New function.
4349         (execute_stack_op): Set get_base_type field.  Update.
4350
4351 2011-05-12  Tom Tromey  <tromey@redhat.com>
4352
4353         * dwarf2read.c (read_common_block): Fix formatting.
4354
4355 2011-05-12  Kwok Cheung Yeung  <kcy@codesourcery.com>
4356
4357         * breakpoint.c (disable_breakpoint): Disable all locations
4358         associated with a tracepoint on target if a trace experiment is
4359         running.
4360         (disable_command): Disable a specific tracepoint location on target if
4361         a trace experiment is running.
4362         (do_enable_breakpoint): Enable all locations associated with a
4363         tracepoint on target if a trace experiment is running.
4364         (enable_command) Enable a specific tracepoint location on target if a
4365         trace experiment is running.
4366         * target.c (update_current_target): Add INHERIT and de_fault clauses for
4367         to_supports_enable_disable_tracepoint, to_enable_tracepoint and
4368         to_disable_tracepoint.
4369         * target.h: Add declaration of struct bp_location.
4370         (struct target_ops): Add new functions
4371         to_supports_enable_disable_tracepoint, to_enable_tracepoint and
4372         to_disable_tracepoint to target operations.
4373         (target_supports_enable_disable_tracepoint): New macro.
4374         (target_enable_tracepoint): New macro.
4375         (target_disable_tracepoint): New macro.
4376         * remote.c (struct remote_state): Add new field.
4377         (remote_enable_disable_tracepoint_feature): New.
4378         (remote_protocol_features): Add new entry.
4379         (remote_supports_enable_disable_tracepoint): New.
4380         (remote_enable_tracepoint): New.
4381         (remote_disable_tracepoint): New.
4382         (init_remote_ops): Add remote_enable_tracepoint,
4383         remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
4384         to remote operations.
4385         * tracepoint.c (start_tracing): Allow tracing to start without any
4386         tracepoints enabled with just a warning if they can be re-enabled
4387         later.
4388         * NEWS: Add news item for the new behaviour of the enable and disable
4389         GDB commands when applied to tracepoints.
4390         Add news items for the new remote packets QTEnable and QTDisable.
4391
4392 2011-05-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
4393
4394         * config.in: Regenerate.
4395         * configure: Regenerate.
4396         * configure.ac <--with-system-readline> (for readline_echoing_p):
4397         Remove the test.
4398         * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
4399         (tui_old_rl_echoing_p): ... here.
4400         (tui_setup_io): Rename extern declaration readline_echoing_p to
4401         _rl_echoing_p.  Adjust assignments for the both renames.
4402
4403 2011-05-11  Thiago Jung Bauermann  <bauerman@br.ibm.com>
4404
4405         * symtab.c (lookup_symtab): Run cleanup before returning.
4406
4407 2011-05-11  Tom Tromey  <tromey@redhat.com>
4408
4409         * dwarf2read.c (handle_data_member_location): New function.
4410         (dwarf2_add_field): Use it.
4411         (read_common_block): Likewise.
4412
4413 2011-05-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
4414
4415         Make addrs->SECTINDEX always defined.
4416         * symfile.c (relative_addr_info_to_section_offsets): Check for
4417         SECTINDEX -1, not for zero ADDR.
4418         (addrs_section_compar): Remove checking for invalid SECTINDEX.
4419         (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
4420         * symfile.h (struct section_addr_info) <sectindex>: Update the comment
4421         on its validity.
4422
4423 2011-05-10  Doug Evans  <dje@google.com>
4424
4425         * linux-thread-db.c: Whitespace cleanup.
4426         (try_thread_db_load_1): Fix comment.
4427
4428         * linux-thread-db.c (set_libthread_db_search_path): New function.
4429         (_initialize_thread_db): Add setter for libthread-db-search-path.
4430
4431 2011-05-09  Doug Evans  <dje@google.com>
4432
4433         * NEWS: Mention --with-iconv-bin.
4434         * configure.ac: New option --with-iconv-bin.
4435         * configure: Regenerate.
4436         * config.in: Regenerate.
4437         * defs.h (relocate_gdb_directory): Declare.
4438         * main.c (relocate_gdb_directory): Renamed from relocate_directory,
4439         removed progname parameter, and exported.  All callers updated.
4440         * charset.c (find_charset_names): Use --with-iconv-bin if specified.
4441
4442         * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
4443         adding missing call to restore_child_signals_mask.
4444
4445 2011-05-09  Pedro Alves  <pedro@codesourcery.com>
4446
4447         * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
4448         parameter.
4449         * infrun.c (proceed, start_remote): Adjust.
4450         (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
4451         and adjust to not handle it.
4452         * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
4453         * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
4454         * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
4455         * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
4456         * windows-nat.c (do_initial_windows_stuff): Adjust.
4457         * infcmd.c (attach_command): Adjust.
4458         (notice_new_inferior): Adjust.
4459
4460 2011-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
4461
4462         * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
4463         (ppu2spu_unwind_register): Mark pseudo registers unavailable.
4464         * spu-tdep.c (op_selb): Use correct value.
4465
4466 2011-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
4467
4468         * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
4469         "parent" parameter to symbol_file_add_from_bfd call.
4470
4471 2011-05-06  Sergio Durigan Junior  <sergiodj@linux.vnet.ibm.com>
4472             Thiago Jung Bauermann  <bauerman@br.ibm.com>
4473
4474         Implement support for PowerPC BookE masked watchpoints.
4475         * NEWS: Mention masked watchpoint support.  Create "Changed commands"
4476         section.
4477         * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
4478         method.  Initialize to NULL in all existing breakpoint_ops instances.
4479         (struct breakpoint) <hw_wp_mask>: New field.
4480         * breakpoint.c (is_masked_watchpoint): Add prototype.
4481         (update_watchpoint): Don't set b->val for masked watchpoints.  Call
4482         breakpoint's breakpoint_ops.works_in_software_mode if available.
4483         (watchpoints_triggered): Handle the case of a hardware masked
4484         watchpoint trigger.
4485         (watchpoint_check): Likewise.
4486         (works_in_software_mode_watchpoint): New function.
4487         (insert_masked_watchpoint, remove_masked_watchpoint)
4488         (resources_needed_masked_watchpoint)
4489         (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
4490         (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
4491         (print_recreate_masked_watchpoint, is_masked_watchpoint): New
4492         functions.
4493         (masked_watchpoint_breakpoint_ops): New structure.
4494         (watch_command_1): Check for the existence of the `mask' parameter.
4495         Set b->ops according to the type of hardware watchpoint being created.
4496         * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
4497         (ppc_linux_remove_mask_watchpoint)
4498         (ppc_linux_masked_watch_num_registers): New functions.
4499         (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
4500         to_remove_mask_watchpoint and to_masked_watch_num_registers.
4501         * target.c (update_current_target): Mention to_insert_mask_watchpoint,
4502         to_remove_mask_watchpoint, and to_masked_watch_num_registers.
4503         (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
4504         (target_masked_watch_num_registers): New functions.
4505         * target.h (struct target_ops) <to_insert_mask_watchpoint>,
4506         <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
4507         methods.
4508         (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
4509         (target_masked_watch_num_registers): Add prototypes.
4510
4511 2011-05-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
4512
4513         PR 12573
4514         * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
4515         (producer_is_gcc_ge_4_0): New function.
4516         (process_full_comp_unit): Set also symtab->locations_valid.  Move the
4517         symtab->language code.
4518         (var_decode_location): Set cu->has_loclist.
4519         * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
4520         skip.  Intialize force_skip from locations_valid.  Move the prologue
4521         skipping code into two passes.
4522         * symtab.h (struct symtab): Make the primary field a bitfield.  New
4523         field locations_valid.
4524
4525 2011-05-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
4526
4527         * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
4528         (classify_inner_name): Call cp_lookup_nested_type with
4529         yylval.tsym.type.
4530         * cp-namespace.c (cp_lookup_nested_type): New variable
4531         saved_parent_type.  Call CHECK_TYPEDEF for parent_type.  Call
4532         type_name_no_tag_or_error with saved_parent_type.
4533         * dwarf2read.c (load_partial_dies): Read in any children of
4534         DW_TAG_typedef with complaint in such case.
4535         * gdbtypes.c (type_name_no_tag_or_error): New function.
4536         * gdbtypes.h (type_name_no_tag_or_error): New prototype.
4537         * valops.c (destructor_name_p): New comment for parameter type.  Remove
4538         type const.  Make dname and cp const.  Call type_name_no_tag_or_error.
4539         * value.h (destructor_name_p): Remove type const.
4540
4541 2011-05-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
4542
4543         * symtab.c (compare_symbol_name): New function.
4544         (completion_list_add_name, expand_partial_symbol_name): Call it,
4545         remove the variable ncmp.
4546         (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
4547         gdb_assert it.
4548
4549 2011-05-05  Thiago Jung Bauermann  <bauerman@br.ibm.com>
4550
4551         Demote to sw watchpoint only in update_watchpoint.
4552         * breakpoint.c (update_watchpoint): Change between software and
4553         hardware watchpoint for all kinds of watchpoints, not just
4554         read/write ones.  Determine b->exact value here instead of
4555         in watch_command_1.  Error out if there are not enough resources
4556         for a read or access hardware watchpoint.
4557         (watch_command_1): Remove logic of checking whether there are
4558         enough resources available, since update_watchpoint will do that
4559         work now.  Don't set b->exact here.  Catch exceptions thrown by
4560         update_watchpoint and delete the watchpoint.
4561         (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
4562         Use target_exact_watchpoints instead.
4563         (delete_breakpoint): Notify observers only if deleted watchpoint
4564         has a breakpoint number assigned to it.
4565
4566 2011-05-05  Janis Johnson  <janisjo@codesourcery.com>
4567
4568         * MAINTAINERS: Add myself as a write-after-approval maintainer.
4569
4570 2011-05-05  Jerome Guitton  <guitton@adacore.com>
4571
4572         * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
4573         New functions.
4574         (i386_stack_tramp_frame_unwind): New static global.
4575         (i386_match_pattern): New function, extracted from i386_match_insn.
4576         (i386_match_insn): Use i386_match_pattern.
4577         (i386_match_insn_block): New function.
4578         (i386_tramp_chain_in_reg_insns)
4579         (i386_tramp_chain_on_stack_insns): New static variables.
4580         (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
4581         of unwinders.
4582
4583 2011-05-04  Joseph Myers  <joseph@codesourcery.com>
4584
4585         * configure.host (xscale*): Don't handle target.
4586         * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
4587         handle targets.
4588
4589 2011-05-04  Yao Qi  <yao@codesourcery.com>
4590
4591         * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
4592
4593 2011-05-03  Joel Brobecker <brobecker@adacore.com>
4594
4595         Revert:
4596         | 2011-03-07  Michael Snyder  <msnyder@vmware.com>
4597         | * elfread.c (elf_symtab_read): Stop memory leak.
4598
4599 2011-05-03  Pierre Muller  <muller@ics.u-strasbg.fr>
4600
4601         * nto-tdep.c (nto_target): Replace deprecated call to
4602         cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
4603
4604 2011-05-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
4605
4606         Fix false GCC warning.
4607         * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
4608
4609 2011-05-03  Thiago Jung Bauermann  <bauerman@br.ibm.com>
4610
4611         * breakpoint.c (update_watchpoint): Move code to change
4612         the enable state of breakpoint from here ...
4613         (do_enable_breakpoint): ... to here.
4614
4615 2011-04-26  Andrew Gontarek  <andrewg@cray.com>
4616
4617         * valprint.c (val_print_array_elements): Fixed poor performance
4618         of printing very large arrays with repeat_count_threshold set
4619         to unlimited.  New comment.
4620
4621 2011-04-29  Tom Tromey  <tromey@redhat.com>
4622
4623         * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
4624         (mi_parse): Likewise.
4625         * breakpoint.c (break_range_command): Use sizeof char*, not
4626         char**.
4627         (create_breakpoint): Likewise.
4628         (parse_breakpoint_sals): Likewise.
4629
4630 2011-04-29  Pedro Alves  <pedro@codesourcery.com>
4631
4632         * linux-nat.c (linux_child_remove_fork_catchpoint)
4633         (linux_child_remove_vfork_catchpoint)
4634         (linux_child_remove_exec_catchpoint): New functions.
4635         (linux_target_install_ops): Install them.
4636
4637 2011-04-29  Phil Muldoon  <pmuldoon@redhat.com>
4638
4639         PR mi/12531
4640
4641         * varobj.c (install_default_visualizer): Do not install a
4642         visualizer if the varobj is CPLUS_FAKE_CHILD.
4643         (construct_visualizer): Likewise.
4644
4645 2011-04-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
4646
4647         * symtab.c (expand_partial_symbol_name): New variable NCMP.  Support
4648         case insensitive comparison.
4649
4650 2011-04-28  Ulrich Weigand  <ulrich.weigand@linaro.org>
4651
4652         * infrun.c (proceed): Revert previous change.
4653         (resume): Instead, handle the case of signal delivery while stepping
4654         off a breakpoint location here, and only if software single-stepping
4655         is used.  Handle nested signals.
4656
4657 2011-04-28  Yao Qi  <yao@codesourcery.com>
4658
4659         * arm-tdep.c (copy_unmodified): Rename to ...
4660         (arm_copy_unmodified): .. this.  New.
4661         (copy_preload): Move common part to ...
4662         (install_preload): .. this.  New.
4663         (arm_copy_preload): New.
4664         (copy_preload_reg): Move common part to ...
4665         (install_preload_reg): ... this.  New.
4666         (arm_copy_preload_reg): New.
4667         (copy_b_bl_blx): Move common part to ...
4668         (install_b_bl_blx): .. this.  New.
4669         (arm_copy_b_bl_blx): New.
4670         (copy_bx_blx_reg): Move common part to ...
4671         (install_bx_blx_reg): ... this. New.
4672         (arm_copy_bx_blx_reg): New.
4673         (copy_alu_reg): Move common part to ...
4674         (install_alu_reg): ... this.  New.
4675         (arm_copy_alu_reg): New.
4676         (copy_alu_shifted_reg): Move common part to ...
4677         (install_alu_shifted_reg): ... this.  New.
4678         (copy_ldr_str_ldrb_strb): Move common part to ...
4679         (install_ldr_str_ldrb_strb): ... this.  New.
4680         (arm_copy_ldr_str_ldrb_strb): New.
4681         (copy_copro_load_store): Move some common part to ...
4682         (install_copy_copro_load_store): ... this.  New.
4683         (arm_copy_copro_load_store): New.
4684         (copy_svc): Delete.
4685         (arm_copy_svc): Renamed from copy_svc.
4686         (copy_undef): Delete.
4687         (arm_copy_undef): Renamed from copy_undef.
4688         (decode_ext_reg_ld_st): Delete.
4689         (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
4690         (decode_svc_copro): Delete.
4691         (arm_decode_svc_copro): Renamed from decode_svc_copro.
4692         (copy_copro_load_store, copy_alu_imm): update callers.
4693         (copy_extra_ld_st, copy_block_xfer): Likewise.
4694         (decode_misc_memhint_neon, decode_unconditional): Likewise.
4695         (decode_miscellaneous, decode_dp_misc): Likewise.
4696         (decode_ld_st_word_ubyte, decode_media): Likewise.
4697         (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
4698         (decode_svc_copro, decode_misc_memhint_neon): Likewise.
4699         (decode_unconditional, decode_miscellaneous): Likewise.
4700         (decode_media, decode_b_bl_ldmstm): Likewise.
4701         (arm_process_displaced_insn): Likewise..
4702         (decode_misc_memhint_neon): Delete.
4703         (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
4704         (decode_miscellaneous): Delete.
4705         (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
4706         (decode_dp_misc): Delete.
4707         (arm_decode_dp_misc): Renamed from decode_dp_misc.
4708         (decode_ld_st_word_ubyte): Delete.
4709         (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
4710         (decode_media): Delete.
4711         (arm_decode_media): Renamed from decode_media.
4712         (decode_b_bl_ldmstm): Delete.
4713         (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
4714         (decode_ext_reg_ld_st): Delete.
4715         (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
4716         (decode_unconditional): Delete.
4717         (arm_decode_unconditional): Renamed from decode_unconditional.
4718
4719 2011-04-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
4720
4721         Case insensitive lookups implementation.
4722         * dwarf2read.c: Include ctype.h.
4723         (struct mapped_index): New field version.
4724         (mapped_index_string_hash): New parameter index_version.  New comment
4725         for it.  Call tolower appropriately.
4726         (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
4727         Choose the right index version for mapped_index_string_hash.
4728         (dwarf2_read_index): Support also the index version 5.  Initialize the
4729         new struct mapped_index field version.
4730         (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
4731         (find_slot): Explain the version needs.  Pass INT_MAX for the new
4732         parameter.
4733         (write_psymtabs_to_index): Produce version 5.
4734         * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
4735         use it.  New comment for SYMBOL_MATCHES_SEARCH_NAME.
4736         * psymtab.c (lookup_partial_symbol): Find the
4737         SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
4738         entries.
4739         * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
4740         NAME lowercasing.
4741         (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
4742         (completion_list_add_name): New variable ncmp, initialize it, use it.
4743         * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
4744         * utils.c (strcmp_iw): Support case_sensitive_off.
4745         (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
4746         New function comment part.  New variables saved_string1,
4747         saved_string2 and case_pass.  Add a proper second pass.
4748
4749 2011-04-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
4750
4751         Replace re_comp/re_exec by regcomp/regexec.
4752         * symtab.c (struct search_symbols_data): New fields preg, preg_p.
4753         (search_symbols_name_matches): Use them, use regexec.
4754         (search_symbols): New variable retval_chain, adjust the use of
4755         old_chain against it.  Replace re_comp by regcomp.  Use the new struct
4756         search_symbols_data fields, use regexec instead of re_exec.
4757
4758 2011-04-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
4759
4760         Format the code for the next patch.
4761         * dwarf2read.c (struct mapped_index): Include delimiting newlines.
4762         * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
4763         New variables c1 and c2.
4764
4765 2011-04-27  Ulrich Weigand  <ulrich.weigand@linaro.org>
4766
4767         * infrun.c (proceed): Do not single-step into signal delivery
4768         when stepping off a breakpoint location.
4769         (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
4770         (insert_step_resume_breakpoint_at_caller): Likewise.
4771         (insert_step_resume_breakpoint_at_sal): Likewise.
4772         (insert_longjmp_resume_breakpoint): Likewise.
4773
4774 2011-04-27  Yao Qi  <yao@codesourcery.com>
4775
4776         * common/linux-ptrace.h: Remove include <sys/wait.h>.
4777
4778 2011-04-27  Joel Brobecker  <brobecker@adacore.com>
4779
4780         * procfs.c (procfs_pass_signals): Fix advance declaration.
4781
4782 2011-04-27  Ulrich Weigand  <ulrich.weigand@linaro.org>
4783
4784         * target.h (struct target_ops): Remove to_notice_signals;
4785         add to_pass_signals.
4786         (target_notice_signals): Remove.
4787         (target_pass_signals): Add prototype.
4788         * target.c (update_current_target): Remove to_notice_signals;
4789         mention to_pass_signals.
4790         (target_pass_signals): New function.
4791         (debug_to_notice_signals): Remove.
4792         (setup_target_debug): Do not install debug_to_notice_signals.
4793
4794         * infrun.c (signal_pass): New global.
4795         (resume): Call target_pass_signals.
4796         (handle_inferior_event): Report all signals while stepping over
4797         non-steppable watchpoint.  Reset trap_expected to ensure breakpoints
4798         are re-inserted when stepping over a signal handler.
4799         (signal_cache_update): New function.
4800         (signal_stop_update): Call it.
4801         (signal_print_update): Likewise.
4802         (signal_pass_update): Likewise.
4803         (handle_command): Call signal_cache_update and target_pass_signals
4804         instead of target_notice_signals.
4805         (_initialize_infrun): Initialize signal_pass.
4806
4807         * linux-nat.c (pass_mask): New global.
4808         (linux_nat_pass_signals): New function.
4809         (linux_nat_create_inferior): Report all signals initially.
4810         (linux_nat_attach): Likewise.
4811         (linux_nat_resume): Use pass_mask to decide whether to directly
4812         handle an inferior signal.
4813         (linux_nat_wait_1): Likewise.
4814         (linux_nat_add_target): Install to_pass_signals callback.
4815
4816         * nto-procfs.c (notice_signals): Remove.
4817         (procfs_resume): Do not call notice_signals.
4818         (procfs_notice_signals): Remove.
4819         (procfs_pass_signals): New function.
4820         (init_procfs_ops): Install to_pass_signals callback instead of
4821         to_notice_signals callback.
4822         (_initialize_procfs): Report all signals initially.
4823
4824         * procfs.c (procfs_notice_signals): Remove.
4825         (procfs_pass_signals): New function.
4826         (procfs_target): Install to_pass_signals callback instead of
4827         to_notice_signals callback.
4828         (register_gdb_signals): Remove.
4829         (procfs_debug_inferior): Report all signals initially.
4830         (procfs_init_inferior): Remove redundant register_gdb_signals call.
4831
4832         * remote.c (remote_pass_signals): Add numsigs and pass_signals
4833         parameters; use them instead of calling signal_..._state routines.
4834         (remote_notice_signals): Remove.
4835         (remote_start_remote): Report all signals initially.
4836         (remote_resume): Do not call remote_pass_signals.
4837         (_initialize_remote): Install to_pass_signals callback instead of
4838         to_notice_signals callback.
4839
4840 2011-04-27  Pedro Alves  <pedro@codesourcery.com>
4841
4842         * breakpoint.c (user_settable_breakpoint): Delete.
4843         (user_breakpoint_p): Remove check on user_settable_breakpoint.
4844         (delete_command): Check user_breakpoint_p instead of looking at
4845         the breakpoint's type.
4846         (disable_command): Ditto.
4847         (enable_command): Ditto.
4848         (delete_trace_command): Use user_breakpoint_p instead of looking
4849         at the breakpoint number directly.  When checking if there are
4850         user visible tracepoints, in order to know whether to ask the user
4851         for confirmation, check whether the breakpoint is actually a
4852         tracepoint.
4853
4854 2011-04-27  Vladimir Prus  <vladimir@codesourcery.com>
4855
4856         * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
4857         compilation.
4858
4859 2011-04-27  Vladimir Prus  <vladimir@codesourcery.com>
4860
4861         MI breakpoint notifications.
4862
4863         * annotate.c (breakpoint_changed): Adjust parameter type.
4864         * breakpoint.c (set_breakpoint_condition): Adjust to change
4865         in breakpoint_modified type.
4866         (breakpoint_set_commands): Likewise.
4867         (do_map_commands_command): Likewise.
4868         (bpstat_check_breakpoint_conditions): Notify that breakpoint has
4869         changed after bumping hit count.
4870         (bpstat_stop_status): Likewise.
4871         (print_one_breakpoint_location): Don't wrap in tuple here.
4872         (print_one_breakpoint): Always print individual locations.
4873         For locations, use unnamed tuple.
4874         (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
4875         has changed.
4876         (create_catchpoint, create_syscall_event_catchpoint): Call
4877         breakpoint_created obsever.
4878         (mention): Don't call breakpoint_created observer.
4879         (create_breakpoint_sal): Call breakpoint_created observer.
4880         (create_breakpoint, watch_command_1): Likewise.
4881         (create_ada_exception_breakpoint): Likewise.
4882         (delete_breakpoint): Call breakpoint_deleted breakpoint.
4883         (locations_are_equal): New.
4884         (update_breakpoint_locations): If locations were changed, notify.
4885         (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
4886         Call breakpoint_modified observer.
4887
4888         * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
4889         (mi_cmd_break_insert): Don't set observers for modify and delete.
4890         * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
4891         (mi_breakpoint_created, mi_breakpoint_deleted)
4892         (mi_breakpoint_modified): New.
4893         (mi_interpreter_init): Hook the above.
4894         * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
4895         while -break-* commands are executing.
4896         * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
4897         * mi/mi-out.c (struct ui_out_data): New field original_buffer.
4898         (mi_redirect): New.
4899         (mi_ui_out_impl): Hook in mi_redirect.
4900         (mi_field_skip): True to the name, skip the field, don't output
4901         a field with an empty value.
4902
4903         * python/py-breakpoint.c (gdbpy_breakpoint_created)
4904         (gdbpy_breakpoint_deleted): Adjust.
4905         * tui/tui-hooks.c (tui_event_create_breakpoint)
4906         (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
4907
4908 2011-04-26  Aleksandar Ristovski  <aristovski@qnx.com>
4909
4910         * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
4911         (procfs_remove_hw_watchpoint): Likewise.
4912
4913 2011-04-26  Michael Walle  <michael@walle.cc>
4914
4915         * remote.c (remote_start_remote): Ack packet after sending the
4916         interrupt sequence.
4917
4918 2011-04-26  Yao Qi  <yao@codesourcery.com>
4919
4920         * linux-nat.c: Move common macros to ...
4921         Include linux-ptrace.h.
4922         * common/linux-ptrace.h: ... here.  New.
4923
4924 2011-04-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
4925
4926         * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
4927         !objfile_has_partial_symbols.  New comment.
4928         * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
4929         SYM_READ_PSYMBOLS is not present. Extend the comment.
4930         * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
4931
4932 2011-04-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
4933
4934         * defs.h (ENUM_BITFIELD): Remove.
4935
4936 2011-04-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
4937             Eli Zaretskii  <eliz@gnu.org>
4938
4939         * NEWS: Document the new gdbserver --once option.
4940
4941 2011-04-21  Jie Zhang  <jzhang918@gmail.com>
4942
4943         * MAINTAINERS: Update my email address.
4944
4945 2011-04-21  Pierre Muller  <muller@ics.u-strasbg.fr>
4946
4947         * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
4948         (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
4949         function call if __STDC_ISO_10646__ macro is defined.
4950         (intermediate_encoding): New prototype.
4951         * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
4952         to generate compile time error for unsupported gdb_wchar_t size.
4953         (ENDIAN_SUFFIX): New macro.
4954         (intermediate_encoding): New function.
4955
4956 2011-04-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
4957
4958         * ada-lang.c (struct add_partial_datum): Update the comment for
4959         expand_partial_symbol_name.
4960         (ada_add_partial_symbol_completions): Rename to ...
4961         (ada_expand_partial_symbol_name): ... here, change return type, update
4962         function comment, call symbol_completion_match instead of
4963         symbol_completion_add.
4964         (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
4965         and ada_expand_partial_symbol_name.
4966         * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
4967         FILE_MATCHER.
4968         (dw2_map_symbol_names): Remove.
4969         (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
4970         * psymtab.c (map_symbol_names_psymtab): Remove.
4971         (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
4972         Support KIND == ALL_DOMAIN.  Exchange the NAME_MATCHER and KIND check
4973         order.
4974         (psym_functions): Unlist map_symbol_names_psymtab.
4975         (map_partial_symbol_names): Rename to ...
4976         (expand_partial_symbol_names): ... here, change the FUN type, call
4977         expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
4978         * psymtab.h (map_partial_symbol_names): Rename to ...
4979         (expand_partial_symbol_names): ... here, change the FUN type.
4980         * symfile.h (struct quick_symbol_functions): Update the description of
4981         expand_symtabs_matching.  Remove map_symbol_names.
4982         * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
4983         (struct add_name_data): Update the comment for
4984         expand_partial_symbol_name.
4985         (add_partial_symbol_name): Rename to ...
4986         (expand_partial_symbol_name): ... here.  Replace
4987         completion_list_add_name call by strncmp.
4988         (default_make_symbol_completion_list_break_on): Use now
4989         expand_partial_symbol_names and expand_partial_symbol_name.
4990         * symtab.h (enum search_domain): New element ALL_DOMAIN.
4991
4992 2011-04-20  Tom Tromey  <tromey@redhat.com>
4993
4994         * dwarf2read.c (save_gdb_index_command): Replace format
4995         documentation with a pointer to the manual.
4996
4997 2011-04-20  Pedro Alves  <pedro@codesourcery.com>
4998
4999         * regcache.c: Include remote.h.
5000         (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
5001         (regcache_dump): Handle regcache_dump_remote.
5002         (maintenance_print_remote_registers): New function.
5003         (_initialize_regcache): Install "maint print remote-registers"
5004         command.
5005         * remote.c (map_regcache_remote_table): New function, factored out
5006         from ...
5007         (init_remote_state): ... here.
5008         (remote_register_number_and_offset): New.
5009         * remote.h (remote_register_number_and_offset): Declare.
5010
5011 2011-04-20  Pedro Alves  <pedro@codesourcery.com>
5012
5013         * regcache.c (get_thread_arch_regcache): If creating a regcache for
5014         null_ptid, assume and allow a NULL address space, instead of
5015         asking the target for the ptid's address space.
5016         * infrun.c (ptid_is_pid): Remove assertion.
5017
5018 2011-04-19  Tom Tromey  <tromey@redhat.com>
5019
5020         * windows-tdep.c (windows_xfer_shared_library):
5021         * windows-nat.c (get_module_name, windows_make_so):
5022         * v850-tdep.c (v850_handle_pushm):
5023         * utils.c (null_cleanup, gdb_realpath):
5024         * ui-out.c (get_next_header):
5025         * tracepoint.c (clear_traceframe_info):
5026         * symtab.c (lookup_symtab):
5027         * serial.h (struct serial_ops):
5028         * mipsread.c (read_alphacoff_dynamic_symtab):
5029         * infcmd.c (print_return_value):
5030         * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
5031         * f-exp.y (parse_number):
5032         * exceptions.c (catch_exceptions):
5033         * dummy-frame.c (dummy_frame_this_id):
5034         * defs.h (struct cleanup):
5035         * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
5036         * arm-tdep.c (arm_push_dummy_call):
5037         * amd64-tdep.h (amd64_collect_xsave):
5038         * amd64-tdep.c (amd64_collect_xsave):
5039         * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
5040         * README (typing): Remove duplicate words.
5041         * cli/cli-decode.c (lookup_cmd_composition): Add comma.
5042         * infrun.c (siginfo_value_read): Fix typo.
5043         * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
5044         * top.c (source_line_number): Add comma.
5045
5046 2011-04-19  Marc Khouzam  <marc.khouzam@ericsson.com>
5047
5048         * thread.c (any_live_thread_of_process): Prioritize threads
5049         that are not executing.
5050         * gdbthread.h (any_live_thread_of_process): Update comment
5051         as per above change.
5052
5053 2011-04-19  Andreas Schwab  <schwab@linux-m68k.org>
5054
5055         * xcoffread.c (process_xcoff_symbol): Remove useless cast.
5056         (scan_xcoff_symtab): Likewise.
5057
5058 2011-04-19  Pierre Muller  <muller@ics.u-strasbg.fr>
5059
5060         * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
5061         inside if clause.
5062
5063 2011-04-19  Pierre Muller  <muller@ics.u-strasbg.fr>
5064             Pedro Alves  <pedro@codesourcery.com>
5065
5066         * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
5067         variables to simplify code and avoid == operator at end of
5068         line as this is against GNU coding standards.
5069
5070 2011-04-19  Pierre Muller  <muller@ics.u-strasbg.fr>
5071
5072         * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
5073         lm_name to name_lm to avoid conflict with lm_name function.
5074
5075 2011-04-19  Pierre Muller  <muller@ics.u-strasbg.fr>
5076
5077         ARI fixes: Use only lowercase function name for static functions.
5078         * nto-tdep.c (LM_ADDR): Rename to...
5079         (lm_addr): New function name.
5080         (nto_relocate_section_addresses): Adapt to change above.
5081         * solib-sunos.c (LM_ADDR): Rename to...
5082         (lm_addr): New function name.
5083         (LM_NEXT): Rename to...
5084         (lm_next): New function name.
5085         (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
5086         function name changes above.
5087         * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
5088         (lm_addr_from_link_map): New function name.
5089         (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
5090         (has_lm_dynamic_from_link_map): New function name.
5091         (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
5092         (lm_dynamic_from_link_map): New function name.
5093         (LM_ADDR_CHECK): Rename to...
5094         (lm_addr_check): New function name.
5095         (LM_NEXT): Rename to...
5096         (lm_next): New function name.
5097         (LM_PREV): Rename to...
5098         (lm_prev): New function name.
5099         (LM_NAME): Rename to...
5100         (lm_name): New function name.
5101         (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
5102         (ignore_first_link_map_entry): New function name.
5103         (svr4_keep_data_in_core): Adapt to function name changes above.
5104         (svr4_current_sos): Likewise.
5105         (enable_break): Likewise.
5106         (svr4_relocate_section_addresses): Likewise.
5107
5108 2011-04-19  Pierre Muller  <muller@ics.u-strasbg.fr>
5109
5110         ARI cleanup.
5111         * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
5112         sprintf. Simplify code and avoid loosing memory.
5113         (xtensa_register_reggroup_p): Extract assignment out of IF clause.
5114         (call0_frame_cache): Remove && operator from end of line.
5115
5116 2011-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
5117
5118         Fix libraries displacement if they change whether they were prelinked.
5119         * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
5120         does not match.  Comment why.
5121
5122 2011-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
5123
5124         * corelow.c: Include wrapper.h.
5125         (core_open): Call now gdb_target_find_new_threads.
5126         * wrapper.c: Include target.h.
5127         (gdb_target_find_new_threads): New.
5128         * wrapper.h (gdb_target_find_new_threads): New declaration.
5129
5130 2011-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
5131
5132         * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
5133         even if !TARGET_HAS_EXECUTION.
5134
5135 2011-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
5136
5137         Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
5138         * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
5139         bfd_get_synthetic_symtab.
5140         * jit.c (jit_register_code): Pass NULL to the new parameter parent.
5141         * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
5142         parameter parent, remove the call to add_separate_debug_objfile.
5143         * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
5144         * symfile-mem.c (symbol_file_add_from_memory): Likewise.
5145         * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
5146         parent, new comment for it, call add_separate_debug_objfile for it.
5147         (symbol_file_add_separate): Pass objfile as the parameter parent,
5148         remove the call to add_separate_debug_objfile.
5149         (symbol_file_add_from_bfd): New parameter parent, pass it.
5150         (symbol_file_add): Pass NULL to the new parameter parent.
5151         * symfile.h (symbol_file_add_from_bfd): New parameter parent.
5152
5153 2011-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
5154
5155         * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
5156         BSF_SYNTHETIC.
5157
5158 2011-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
5159
5160         Fix Python access to inlined frames.
5161         * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
5162         * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
5163
5164 2011-04-15  Tom Tromey  <tromey@redhat.com>
5165
5166         * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
5167
5168 2011-04-15  Gary Benson  <gbenson@redhat.com>
5169
5170         * MAINTAINERS: Add myself to write-after-approval section.
5171
5172 2011-04-14  Mike Frysinger  <vapier@gentoo.org>
5173
5174         * remote-sim.c (sim_command_completer): New function.
5175         (_initialize_remote_sim): Set completer to sim_command_completer.
5176
5177 2011-04-13  Thiago Jung Bauermann  <bauerman@br.ibm.com>
5178
5179         * breakpoint.c (print_exception_catchpoint): Rename to ...
5180         (print_it_exception_catchpoint): ... this.
5181         (gnu_v3_exception_catchpoint_ops): Update with new name
5182         for print_it_exception_catchpoint.
5183
5184 2011-04-13  Edjunior Machado  <emachado@linux.vnet.ibm.com>
5185
5186         * MAINTAINERS: Add myself for write after approval privileges.
5187
5188 2011-04-13  Marek Polacek  <mpolacek@redhat.com>
5189
5190         * MAINTAINERS: Add myself as a write-after-approval maintainer.
5191
5192 2011-04-13  Thiago Jung Bauermann  <bauerman@br.ibm.com>
5193
5194         * breakpoint.c (watch_command_1): Remove colon from exp_string.
5195
5196 2011-04-13  Thiago Jung Bauermann  <bauerman@br.ibm.com>
5197
5198         * breakpoint.c (save_breakpoints): Verify whether
5199         breakpoint_ops.print_recreate is defined before calling it.
5200
5201 2011-04-11  Gary Benson  <gbenson@redhat.com>
5202
5203         Fix failure with --enable-maintainer-mode.
5204         * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
5205
5206 2011-04-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
5207
5208         Code cleanup.
5209         * symtab.c (search_symbols): Reorder the KIND description in the
5210         function comment.  Remove the unused 4th element of types, types2,
5211         types3 and types4.  New gdb_assert on KIND.
5212         (symtab_symbol_info): Remove the unused 4th element of classnames.
5213         New gdb_assert on KIND.
5214         * symtab.h (enum search_domain): New warning in the enum comment.
5215         Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
5216         TYPES_DOMAIN.
5217
5218 2011-04-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
5219
5220         Fix crash of gdb save-index on a STABS file.
5221         * dwarf2read.c (write_psymtabs_to_index): Return also on no
5222         PSYMTABS_ADDRMAP.
5223
5224 2011-04-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
5225
5226         Fix DW_AT_accessibility compatibility with gcc-4.6+.
5227         * dwarf2read.c: Include ctype.h.
5228         (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
5229         functions.
5230         (dwarf2_add_field): Fix new_field->accessibility by calling
5231         dwarf2_default_access_attribute.  Restructure setting accessibility
5232         vs. virtuality.
5233         (dwarf2_add_member_fn): New variable accessibility.  Fix fnp
5234         is_private and is_protected by calling
5235         dwarf2_default_access_attribute.
5236
5237 2011-04-08  Kevin Buettner  <kevinb@redhat.com>
5238
5239         * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
5240         to the initialization.
5241
5242 2011-04-08  Steve Ellcey  <sje@cup.hp.com>
5243
5244         * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
5245         initalization.
5246
5247 2011-04-07  Pierre Muller  <muller@ics.u-strasbg.fr>
5248
5249         Remove support for old Cygwin 1.5 versions.
5250         * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
5251         function on old Cygwin version.
5252         * windows-nat.c: Remove cygwin version check and always define
5253         __USEWIDE for Cygwin compilation.
5254
5255 2011-04-07  Yao Qi  <yao@codesourcery.com>
5256
5257         * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
5258         and TO.
5259         * arm-tdep.c (cleanup_svc): Handle variable instruction size.
5260         (arm_copy_svc): Remove parameters INSN and TO.
5261         (decode_svc_copro): Update caller.
5262         * arm-tdep.h (struct displaced_step_closure): Remove parameters
5263         from function pointer `copy_svc_os'.
5264
5265 2011-04-07  Yao Qi  <yao@codesourcery.com>
5266
5267         * arm-tdep.c (cleanup_branch): Set a correct return address in
5268         LR for ARM and Thumb.
5269
5270 2011-04-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
5271
5272         Code cleanup.
5273         * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
5274         * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
5275         in the function comment, a new note on values compatibility.
5276         * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
5277         * symtab.h (SYMBOL_HASH_NEXT): New.
5278
5279 2011-04-06  Thiago Jung Bauermann  <bauerman@br.ibm.com>
5280
5281         * ppc-linux-nat.c (check_condition): Add len output parameter.
5282         Set it based on the memory region referenced in the condition
5283         expression.  Update all callers.
5284
5285 2011-04-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
5286
5287         Fix crash regression on systems featuring .gdb_index.
5288         * objfiles.c (free_objfile): Move the
5289         forget_cached_source_info_for_objfile call earlier.  Comment it.
5290         Extend the comment for objfile_free_data.
5291
5292 2011-04-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
5293
5294         Fix regression of displaying the debug format.
5295         * buildsym.c (end_symtab): Set symtab's debugformat and producer from
5296         subfile.
5297
5298 2011-04-04  Tom Tromey  <tromey@redhat.com>
5299
5300         * cli/cli-interp.c (struct captured_execute_command_args):
5301         Remove.
5302         (do_captured_execute_command): Remove.
5303         (safe_execute_command): Use TRY_CATCH.
5304         * cli/cli-script.c (struct wrapped_read_command_file_args):
5305         Remove.
5306         (wrapped_read_command_file): Remove.
5307         (script_from_file): Use TRY_CATCH.
5308         * exceptions.c (catch_exception): Remove.
5309         * exceptions.h (catch_exception): Remove.
5310         (deprecated_throw_reason): Update comment.
5311         * mi/mi-main.c (captured_mi_execute_command): Change 'data'
5312         argument to 'context'.
5313         (mi_execute_command): Use TRY_CATCH.
5314         * remote.c (struct start_remote_args): Remove.
5315         (remote_start_remote): Update; change arguments.
5316         (remote_open_1): Use TRY_CATCH.
5317
5318 2011-04-04  Tom Tromey  <tromey@redhat.com>
5319
5320         * tracepoint.c (scope_info): Update.
5321         * symtab.c (decode_line_spec): Update.
5322         * python/python.c (gdbpy_decode_line): Update.
5323         * linespec.h (decode_line_1): Update.
5324         * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
5325         (decode_compound, find_method, symtab_from_filename)
5326         (decode_variable): Likewise.
5327         * cli/cli-cmds.c (edit_command): Update.
5328         (list_command): Update.
5329         * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
5330         argument.
5331         (create_breakpoint): Update.
5332         (until_break_command): Update.
5333         (addr_string_to_sals): Update.
5334         (decode_line_spec_1): Update.
5335
5336 2011-04-04  Tom Tromey  <tromey@redhat.com>
5337
5338         * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
5339         (do_captured_parse_breakpoint): Remove.
5340         (create_breakpoint): `e' is now volatile.  Remove `parse_args'.
5341         Use TRY_CATCH directly.
5342
5343 2011-04-04  Tom Tromey  <tromey@redhat.com>
5344
5345         * symtab.h (free_symtab): Remove.
5346         (forget_cached_source_info_for_objfile): Declare.
5347         * symmisc.c (free_symtab): Remove.
5348         * source.c (forget_cached_source_info_for_objfile): New function.
5349         (forget_cached_source_info): Use it.
5350         * objfiles.c (free_objfile): Simplify check before calling
5351         clear_current_source_symtab_and_line.  Call
5352         forget_cached_source_info_for_objfile.
5353
5354 2011-04-04  Tom Tromey  <tromey@redhat.com>
5355
5356         * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
5357         (new_symtab): Don't set `free_code' on symtab.
5358         (new_linetable): Properly handle size==0.
5359         * symtab.h (struct symtab) <free_code, free_func>: Remove.
5360         * symmisc.c (free_symtab): Don't free the linetable.  Don't call
5361         free_func.
5362         * jv-lang.c (struct jv_per_objfile_data): New.
5363         (jv_per_objfile_free): Free the data.
5364         (get_dynamics_objfile): Allocate a jv_per_objfile_data.
5365         (get_java_class_symtab): Set the `dict' field on the
5366         jv_per_objfile_data.
5367         (free_class_block): Remove.
5368         * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
5369         the symtab.
5370
5371 2011-04-04  Tom Tromey  <tromey@redhat.com>
5372
5373         * symfile.c (reread_symbols): Update.
5374         * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
5375         field.
5376         * objfiles.c (allocate_objfile): Update.
5377         * cp-support.h (cp_check_possible_namespace_symbols): Don't
5378         declare.
5379         * cp-namespace.c (lookup_symbol_file): Don't call
5380         lookup_possible_namespace_symbol.
5381         (initialize_namespace_symtab, get_possible_namespace_block)
5382         (free_namespace_block, cp_check_possible_namespace_symbols)
5383         (check_possible_namespace_symbols_loop)
5384         (check_one_possible_namespace_symbol)
5385         (lookup_possible_namespace_symbol): Remove.
5386         (maintenance_cplus_namespace): Replace with notice.
5387         (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
5388
5389 2011-04-04  Tom Tromey  <tromey@redhat.com>
5390
5391         * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
5392         * symtab.h (struct symtab) <producer, debugformat>: Now const.
5393         * symmisc.c (free_symtab): Don't free debugformat.
5394         * buildsym.h (struct subfile) <producer, debugformat>: Now const.
5395         (record_debugformat, record_producer): Document.
5396         * buildsym.c (end_symtab): Don't save debugformat and producer
5397         names on obstack.
5398         (end_symtab): Don't free debugformat and producer fields.
5399         (record_debugformat): Don't call xstrdup.
5400         (record_producer): Likewise.
5401
5402 2011-04-04  Tom Tromey  <tromey@redhat.com>
5403
5404         * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
5405         (source_line_charpos, source_charpos_line): Remove.
5406
5407 2011-04-04  Tom Tromey  <tromey@redhat.com>
5408
5409         * symtab.h (domain_enum): Split in two...
5410         (enum search_domain): New.
5411         (search_symbols): Update.
5412         * symtab.c (print_symbol_info, symtab_symbol_info): Remove
5413         redundant declarations.
5414         (search_symbols): Change 'kind' argument to search_domain.
5415         Update.
5416         (print_symbol_info): Likewise.
5417         (symtab_symbol_info): Likewise.
5418         * symfile.h (struct quick_symbol_functions)
5419         <pre_expand_symtabs_matching>: Change type of 'kind' argument.
5420         <expand_symtabs_matching>: Likewise.
5421         * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
5422         (expand_symtabs_matching_via_partial): Update.
5423         * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
5424         (dw2_expand_symtabs_for_function): Update.
5425         * block.h: Moved anonymous enum...
5426         * defs.h (enum block_enum): ... here.  Now named.
5427
5428 2011-04-03  Joel Brobecker  <brobecker@adacore.com>
5429
5430         GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
5431         * version.in: Bump version to 7.3.50.20110403-cvs.
5432
5433 2011-04-03  Joel Brobecker  <brobecker@adacore.com>
5434
5435         * NEWS: Create a new section for the next release branch.
5436         Rename the section of the current branch, now that it has
5437         been cut.
5438
5439 2011-04-01  Ulrich Weigand  <ulrich.weigand@linaro.org>
5440
5441         * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
5442         for "fpscr" in target description.
5443
5444 2011-04-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
5445
5446         * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
5447         initialize it.  Delay HASH initialization.  Strip the part after open
5448         parenthesis for languages with qualifiers.  Call do_cleanups.
5449
5450 2011-04-01  Tom Tromey  <tromey@redhat.com>
5451
5452         * utils.c (report_command_stats): Don't print `-' for negative
5453         number.
5454
5455 2011-04-01  Eric Botcazou  <ebotcazou@adacore.com>
5456
5457         * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
5458         (ada_value_slice, empty_array, to_fixed_array_type): Deal with
5459         typedefs.
5460
5461 2011-04-01  Joel Brobecker  <brobecker@adacore.com>
5462
5463         * breakpoint.h (bpdisp_text): Add declaration.
5464         * breakpoint.c (bpdisp_text): Make non-static.
5465         * ada-lang.c: #include "mi/mi-common.h".
5466         (print_it_exception): Rewrite to improve GDB/MI output.
5467
5468 2011-04-01  Pedro Alves  <pedro@codesourcery.com>
5469
5470         * arm-tdep.h (struct address_space): Add forward declaration.
5471
5472 2011-04-01  Ulrich Weigand  <ulrich.weigand@linaro.org>
5473
5474         * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
5475         * arm-tdep.c (arm_override_mode): New global.
5476         (arm_pc_is_thumb): Respect arm_override_mode.  Remove single-step
5477         execution mode heuristics.
5478         (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
5479         second single-step breakpoint if needed, using
5480         arm_insert_single_step_breakpoint.
5481         (arm_get_next_pc_raw): Remove INSERT_BKTP argument.  Only handle
5482         ARM execution mode, do not call thumb_get_next_pc_raw.
5483         (arm_get_next_pc): Encode execution mode in return value.  Call
5484         either arm_get_next_pc_raw or thumb_get_next_pc_raw.
5485         (arm_insert_single_step_breakpoint): New function.
5486         (arm_software_single_step): Call it.
5487         * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
5488         argument to return execution mode of sigreturn target.
5489         (arm_linux_syscall_next_pc): Use it.
5490         (arm_linux_copy_svc): Update call.
5491         (arm_linux_software_single_step): Call
5492         arm_insert_single_step_breakpoint.
5493
5494 2011-03-31  Jan Kratochvil  <jan.kratochvil@redhat.com>
5495
5496         * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
5497         the comment.
5498
5499 2011-03-31  Tom Tromey  <tromey@redhat.com>
5500
5501         * varobj.c (update_dynamic_varobj_children): Properly handle
5502         errors from iterator.
5503
5504 2011-03-31  Jan Kratochvil  <jan.kratochvil@redhat.com>
5505
5506         * dwarf2read.c (dwarf2_name): Initialize DEMANGLED.  Avoid demangling
5507         struct linkage name twice.
5508
5509 2011-03-31  Tom Tromey  <tromey@redhat.com>
5510
5511         * python/py-prettyprint.c (print_stack_unless_memory_error): Add
5512         missing ">" to message.
5513
5514 2011-03-31  Tom Tromey  <tromey@redhat.com>
5515
5516         * varobj.c (instantiate_pretty_printer): Remove duplicate
5517         'return'.
5518
5519 2011-03-31  Ulrich Weigand  <ulrich.weigand@linaro.org>
5520
5521         * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
5522         if neither saved value nor register available (e.g. signal frame).
5523
5524 2011-03-31  Thiago Jung Bauermann  <bauerman@br.ibm.com>
5525
5526         * macroexp.c (expand): Avoid uninitialized variable
5527         compiler warning.
5528
5529 2011-03-31  Thiago Jung Bauermann  <bauerman@br.ibm.com>
5530
5531         * breakpoint.c (break_range_command): Fix typo in comment.
5532
5533 2011-03-31  Thiago Jung Bauermann  <bauerman@br.ibm.com>
5534             Sergio Durigan Junior  <sergiodj@linux.vnet.ibm.com>
5535
5536         Implement support for PowerPC BookE ranged breakpoints.
5537         * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
5538         * breakpoint.h (struct bp_target_info) <length>: New member
5539         variable.
5540         (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
5541         instead of struct breakpoint as argument, and also add ASPACE
5542         and BP_ADDR arguments.  Update all callers.
5543         (struct breakpoint_ops) <print_one_detail>: New method.
5544         (struct breakpoint) <addr_string_range_end>: New member variable.
5545         * breakpoint.c (breakpoint_location_address_match): Add function
5546         prototype.
5547         (insert_bp_location): Set bl->target_info.length.
5548         (breakpoint_here_p): Call breakpoint_location_address_match.
5549         (moribund_breakpoint_here_p): Likewise.
5550         (regular_breakpoint_inserted_here_p): Likewise.
5551         (breakpoint_thread_match): Likewise.
5552         (bpstat_stop_status): Likewise.
5553         (bpstat_check_location): Move call to
5554         breakpoint_ops.breakpoint_hit to the top.
5555         (print_one_breakpoint_location): Call
5556         breakpoint_ops.print_one_detail if available.
5557         (breakpoint_address_match_range): New function.
5558         (breakpoint_location_address_match): Likewise.
5559         (breakpoint_locations_match): Compare the length field of the
5560         locations too.
5561         (hw_breakpoint_used_count): Count resources used by all locations
5562         in a breakpoint, and use breakpoint_ops.resources_needed if
5563         available.
5564         (breakpoint_hit_ranged_breakpoint): New function.
5565         (resources_needed_ranged_breakpoint): Likewise.
5566         (print_it_ranged_breakpoint): Likewise.
5567         (print_one_ranged_breakpoint): Likewise.
5568         (print_one_detail_ranged_breakpoint): Likewise.
5569         (print_mention_ranged_breakpoint): Likewise.
5570         (print_recreate_ranged_breakpoint): Likewise.
5571         (ranged_breakpoint_ops): New structure.
5572         (find_breakpoint_range_end): New function.
5573         (break_range_command): Likewise.
5574         (delete_breakpoint): Free addr_string_range_end.
5575         (update_breakpoint_locations): Add SALS_END argument.  Update
5576         all callers.  Calculate breakpoint length if a non-zero SALS_END
5577         is given.  Call breakpoint_locations_match instead of
5578         breakpoint_address_match.
5579         (reset_breakpoint): Find SaL of the end of the range if B is a
5580         ranged breakpoint.
5581         (_initialize_breakpoint): Register break-range command.
5582         * defs.h (print_core_address): Add function prototype.
5583         * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
5584         function.
5585         (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
5586         (ppc_linux_remove_hw_breakpoint): Likewise.
5587         (_initialize_ppc_linux_nat): Initialize
5588         to_ranged_break_num_registers.
5589         * target.c (update_current_target): Add comment about
5590         to_ranged_break_num_registers.
5591         (target_ranged_break_num_registers): New function.
5592         * target.h (struct target_ops) <to_ranged_break_num_registers>:
5593         New method.
5594         (target_ranged_break_num_registers): Add function prototype.
5595         * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
5596         * utils.c (print_core_address): ... here.
5597
5598 2011-03-31  Ulrich Weigand  <uweigand@de.ibm.com>
5599
5600         * breakpoint.c (addr_string_to_sals): Avoid uninitialized
5601         variable compiler warning.
5602
5603 2011-03-30  Thiago Jung Bauermann  <bauerman@br.ibm.com>
5604
5605         * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
5606         code from here ...
5607         (re_set_breakpoint): ... to here ...
5608         (addr_string_to_sals): ... and here.
5609
5610 2011-03-29  Pierre Muller  <muller@ics.u-strasbg.fr>
5611
5612         * Makefile.in (SFILES): Add missing C sources.
5613         (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
5614         Add missing headers.
5615
5616 2011-03-29  Mike Frysinger  <vapier@gentoo.org>
5617
5618         * .gitignore: New file.
5619
5620 2011-03-29  Mike Frysinger  <vapier@gentoo.org>
5621
5622         * NEWS: Mention new cfi device simulation.
5623
5624 2011-03-29  Tom Tromey  <tromey@redhat.com>
5625
5626         * dwarf2read.c (fixup_partial_die): Handle linkage name on
5627         otherwise anonymous types.
5628         (dwarf2_name): Likewise.
5629         * valops.c (value_struct_elt_for_reference): Refine artificial
5630         type logic.  Call error if j==-1.
5631
5632 2011-03-29  Andreas Tobler  <andreast-list@fgznet.ch>
5633
5634         Fix false GCC warning.
5635         * infcall.c (find_function_addr): Initialize funaddr.
5636
5637 2011-03-29  Pierre Muller  <muller@ics.u-strasbg.fr>
5638
5639         Fix mingw compilation with --enable-targets=all.
5640         * remote-mips.c (gdb_usleep.h): Include header.
5641         (mips_enter_debug): Use gdb_usleep instead of sleep.
5642
5643 2011-03-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
5644
5645         Support resolution of STT_GNU_IFUNC via breakpoints.
5646         * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
5647         bp_gnu_ifunc_resolver_return.
5648         (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
5649         the loop.  Support bp_gnu_ifunc_resolver and
5650         bp_gnu_ifunc_resolver_return.  New comment after the loop.  New loop
5651         for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
5652         breakpoints.
5653         (bptype_string, print_one_breakpoint_location): Support
5654         bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
5655         (user_settable_breakpoint): Return true also for
5656         bp_gnu_ifunc_resolver.
5657         (allocate_bp_location): Support bp_gnu_ifunc_resolver and
5658         bp_gnu_ifunc_resolver_return.
5659         (set_breakpoint_location_function): New parameter explicit_loc,
5660         describe it.  Call find_pc_partial_function_gnu_ifunc with new
5661         variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
5662         EXPLICIT_LOC is not set.
5663         (set_raw_breakpoint): Set EXPLICIT_LOC for
5664         set_breakpoint_location_function.
5665         (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
5666         set_breakpoint_location_function.
5667         (mention): Support bp_gnu_ifunc_resolver and
5668         bp_gnu_ifunc_resolver_return.
5669         (add_location_to_breakpoint): Set EXPLICIT_LOC for
5670         set_breakpoint_location_function.
5671         (update_breakpoint_locations): Remove static.
5672         (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
5673         bp_gnu_ifunc_resolver_return.
5674         * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
5675         bp_gnu_ifunc_resolver_return.
5676         (update_breakpoint_locations): New declaration.
5677         * elfread.c: Include gdbthread.h and regcache.h.
5678         (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
5679         functions.
5680         (elf_gnu_ifunc_fns): Install them.
5681         * minsyms.c (stub_gnu_ifunc_resolver_stop)
5682         (stub_gnu_ifunc_resolver_return_stop): New functions.
5683         (stub_gnu_ifunc_fns): Install them.
5684         * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
5685         and gnu_ifunc_resolver_return_stop.
5686         (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
5687
5688 2011-03-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
5689
5690         STT_GNU_IFUNC reader implementation.
5691         * elfread.c: Include gdbtypes.h, value.h and infcall.h.
5692         (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
5693         (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
5694         (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
5695         (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
5696         (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
5697         (elf_gnu_ifunc_resolve_addr): New.
5698         (elf_symfile_read): Call elf_rel_plt_read.
5699         (elf_gnu_ifunc_fns): New.
5700         (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
5701         Install elf_gnu_ifunc_fns.
5702         * infcall.c (find_function_return_type): New function.
5703         (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
5704         * minsyms.c (stub_gnu_ifunc_resolve_addr)
5705         (stub_gnu_ifunc_resolve_name): New functions.
5706         (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
5707         * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
5708         (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
5709
5710 2011-03-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
5711
5712         Code cleanup for later STT_GNU_IFUNC support.
5713         * infcall.c (find_function_addr): Remove variable code, use explicit
5714         dereferences for it.  Move VALUE_TYPE initialization later.
5715
5716 2011-03-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
5717
5718         GDB find_pc_partial_function support for STT_GNU_IFUNC.
5719         * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
5720         (clear_pc_function_cache): Clear it.
5721         (find_pc_partial_function): Rename to ...
5722         (find_pc_partial_function_gnu_ifunc): ... this function.  New
5723         parameter is_gnu_ifunc_p, describe it.  Set *IS_GNU_IFUNC_P.
5724         (find_pc_partial_function): New wrapper for this function.
5725         * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
5726
5727 2011-03-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
5728
5729         GDB internal type support for STT_GNU_IFUNC.
5730         * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
5731         (elf_symtab_read): Set mst_text_gnu_ifunc for
5732         BSF_GNU_INDIRECT_FUNCTION.
5733         * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
5734         * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
5735         builtin_func_func, nodebug_text_gnu_ifunc_symbol and
5736         nodebug_got_plt_symbol.
5737         * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
5738         (TYPE_GNU_IFUNC): New.
5739         (struct main_type): New field flag_gnu_ifunc.
5740         (struct builtin_type): New field builtin_func_func.
5741         (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
5742         nodebug_got_plt_symbol.
5743         * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
5744         (in_gnu_ifunc_stub): New.
5745         (prim_record_minimal_symbol, find_solib_trampoline_target): Support
5746         mst_text_gnu_ifunc.
5747         * parse.c (write_exp_msymbol): New variable ifunc_msym.  Detect and
5748         support mst_text_gnu_ifunc.  Support mst_slot_got_plt.
5749         * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
5750         in_gnu_ifunc_stub.
5751         * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
5752         * symtab.c (search_symbols): Likewise.
5753         * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
5754         and mst_slot_got_plt.
5755         (in_gnu_ifunc_stub): New declaration.
5756
5757 2011-03-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
5758
5759         Support a ring of related breakpoints.
5760         * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
5761         other functions, add gdb_assert.
5762         (update_watchpoint, watchpoint_check): Add gdb_assert.  Use
5763         watchpoint_del_at_next_stop.
5764         (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
5765         (bpstat_stop_status): Handle ring in related_breakpoint.
5766         (set_raw_breakpoint_without_location): Initialize ring in
5767         related_breakpoint.
5768         (delete_breakpoint): Handle ring in related_breakpoint, use
5769         watchpoint_del_at_next_stop.
5770         (map_breakpoint_numbers): Handle ring in related_breakpoint.
5771
5772 2011-03-28  Tom Tromey  <tromey@redhat.com>
5773
5774         PR symtab/12441:
5775         * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
5776         with `language_minimal'.
5777
5778 2011-03-25  Ulrich Weigand  <ulrich.weigand@linaro.org>
5779
5780         * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
5781         instead of checking for STT_ARM_TFUNC symbol type.
5782
5783 2011-03-25  Tom Tromey  <tromey@redhat.com>
5784
5785         * linespec.c (symbol_found): Restore line-based result for
5786         non-LOC_LABEL symbols.
5787
5788 2011-03-25  Kai Tietz  <ktietz@redhat.com>
5789
5790         * tui/tui-source.c (tui_set_source_content): Use filename_cmp
5791         instead of strcmp for comparison.
5792         (tui_source_is_displayed): Likewise.
5793         * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
5794
5795 2011-03-24  Mark Wielaard  <mjw@redhat.com>
5796
5797         * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
5798         complaint.
5799         (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
5800         (find_partial_die_in_comp_unit): Likewise in comment.
5801         (read_attribute_value): Likewise.
5802         (lookup_die_type): Likewise.
5803         (dwarf_form_name): Likewise.
5804         (dump_die_shallow): Likewise.
5805         (follow_die_ref_or_sig): Likewise.
5806
5807 2011-03-24  Tom Tromey  <tromey@redhat.com>
5808
5809         PR breakpoints/11816:
5810         * linespec.c (decode_line_1): Parse `function:label' linespecs.
5811         (decode_compound): Update.
5812         (find_function_symbol): New function.
5813         (decode_dollar): Update.
5814         (decode_label): Add 'function_symbol' parameter.  Handle
5815         function-relative labels.
5816         (decode_variable): Update.
5817         (symbol_found): Add 'function_symbol' parameter.  Use label's PC,
5818         not its line.  Set `special_display' and canonical name for
5819         labels.
5820
5821 2011-03-24  Tom Tromey  <tromey@redhat.com>
5822
5823         * linespec.h (struct linespec_result) <special_display>: New
5824         field.
5825         * breakpoint.h (struct breakpoint) <display_canonical>: New
5826         field.
5827         * breakpoint.c (print_breakpoint_location): Respect
5828         display_canonical.
5829         (create_breakpoint_sal): Add 'display_canonical' parameter.
5830         (create_breakpoints_sal): Update.
5831         (create_breakpoint): Update.
5832
5833 2011-03-24  Tom Tromey  <tromey@redhat.com>
5834
5835         * symtab.c (decode_line_spec): Update.
5836         * linespec.c (build_canonical_line_spec): Change type of
5837         'canonical'.
5838         (decode_line_2, decode_line_1, decode_objc, decode_compound)
5839         (find_method, decode_all_digits, decode_dollar, decode_label)
5840         (symbol_found): Likewise.
5841         (init_linespec_result): New function.
5842         * breakpoint.c (struct captured_parse_breakpoint_args)
5843         <canonical_p>: New field, replaces addr_string_p.
5844         (create_breakpoints_sal): Add 'canonical' parameter, replacing
5845         'addr_string'.
5846         (parse_breakpoint_sals): Likewise.
5847         (do_captured_parse_breakpoint): Update.
5848         (create_breakpoint): Use struct linespec_result.
5849         (until_break_command): Update.
5850         (breakpoint_re_set_one): Update.
5851         (decode_line_spec_1): Update.
5852         * linespec.h (struct linespec_result): New.
5853         (init_linespec_result): Declare.
5854
5855 2011-03-23  Pedro Alves  <pedro@codesourcery.com>
5856
5857         * regcache.c (regcache_raw_read): If the target didn't supply a
5858         given raw register, mark it as unavailable.
5859
5860 2011-03-23  Kai Tietz  <ktietz@redhat.com>
5861
5862         * breakpoint.c (clear_command): Use filename_cmp
5863         instead of strcmp for comparison.
5864         * buildsym.c (watch_main_source_file_lossage): Likewise.
5865         (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
5866         checking just for slash.
5867         * dbxread.c (read_dbx_symtab): Use lbasename instead of
5868         strrchr and filename_cmp instead of strcmp for filenames.
5869         (add_old_header_file): Use filename_cmp
5870         instead of strcmp for comparison.
5871         * exec.c (exec_set_section_address): Likewise.
5872         * macrotab.c (macro_lookup_inclusion): Likewise.
5873         (macro_lookup_inclusion): Likewise.
5874         * elfread.c (_initialize_elfread): Likewise.
5875         (elfstab_offset_sections): Likewise.
5876         (elfstab_offset_sections): Use lbasename instead of
5877         strrchr.
5878         * mdebugread.c (parse_partial_symbols): Likewise.
5879         (arse_partial_symbols): Use filename_(n)cmp instead of
5880         str(n)cmp for comparison.
5881         * minsyms.c (lookup_minimal_symbol): Likewise.
5882         * psymtab.c (read_psymtabs_with_filename): Likewise.
5883         * solib.c (solib_read_symbols): Likewise.
5884         (reload_shared_libraries_1): Likewise.
5885         * symmisc.c (maintenance_print_symbols): Likewise.
5886         * symfile.c (separate_debug_file_exists): Likewise.
5887         (reread_symbols): Likewise.
5888         (find_separate_debug_file_by_debuglink): Likewise.
5889         * remote-fileio.c (remote_fileio_func_rename): Likewise.
5890         * source.c (add_path): Likewise.
5891         * symtab.c (filename_seen): Likewise.
5892         (file_matches): Likewise.
5893         (print_symbol_info): Likewise.
5894         (maybe_add_partial_symtab_filename): Likewise.
5895         (make_source_files_completion_list): Likewise.
5896         * xml-syscall.c (init_sysinfo): Likewise.
5897         * windows-nat.c (_initialize_check_for_gdb_ini): Use
5898         IS_DIR_SEPARATOR for checking for trailing path separator.
5899
5900 2011-03-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
5901
5902         * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value.  New
5903         label abort_expression.
5904         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
5905         DWARF_VALUE_OPTIMIZED_OUT.
5906
5907 2011-03-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
5908
5909         Code cleanup.
5910         * c-typeprint.c (c_type_print_args): Change parameter show_artificial
5911         to linkage_name.  Invert its value.  Update the function comment.
5912         (c_type_print_varspec_suffix): Invert it at the caller.
5913         * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
5914
5915 2011-03-22  Pedro Alves  <pedro@codesourcery.com>
5916
5917         * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
5918         errors when reading the `stop_pc'.
5919         * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
5920         get_frame_pc.
5921
5922 2011-03-22  Phil Muldoon  <pmuldoon@redhat.com>
5923
5924         * NEWS: Document gdb.Write stream keyword.
5925
5926 2011-03-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
5927
5928         Revert:
5929         2011-03-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
5930         * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
5931         (dwarf2_add_field): Fix new_field->accessibility for
5932         cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
5933
5934 2011-03-22  Phil Muldoon  <pmuldoon@redhat.com>
5935
5936         PR python/12183
5937
5938         * python/py-function.c (fnpy_call): Treat GdbErrors differently to
5939         other error classes.  Do not print stack trace.
5940
5941 2011-03-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
5942
5943         * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
5944         (dwarf2_add_field): Fix new_field->accessibility for
5945         cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
5946
5947 2011-03-21  Ulrich Weigand  <ulrich.weigand@linaro.org>
5948
5949         * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
5950         encountering a load via a non-SP register.
5951
5952 2011-03-21  Ulrich Weigand  <uweigand@de.ibm.com>
5953
5954         * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
5955         field in returned unwinder.
5956
5957 2012-03-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
5958
5959         * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
5960
5961 2012-03-21  Joel Brobecker  <brobecker@adacore.com>
5962
5963         * ada-lang.c (replace_operator_with_call): Use xzalloc instead
5964         of xmalloc.
5965
5966 2012-03-18  Pedro Alves  <pedro@codesourcery.com>
5967
5968         * frame.c (frame_unwind_register): Throw an error if unwinding the
5969         register failed.
5970         * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
5971         an unwind stop reason.
5972         (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
5973         * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
5974         UNWIND_UNAVAILABLE>: New.
5975         * inline-frame.c (inline_frame_unwind): Install
5976         default_frame_unwind_stop_reason.
5977         * frame-unwind.c: Include "exceptions.h".
5978         (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
5979         (default_frame_unwind_stop_reason): New.
5980         * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
5981         (default_frame_unwind_stop_reason): Declare.
5982         (struct frame_unwind) <stop_reason>: New function pointer.
5983
5984         * dummy-frame.c: Install default_frame_unwind_stop_reason.
5985         * dwarf2-frame.c: Include exceptions.h.
5986         (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
5987         (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
5988         computing the CFA.  If such an error was thrown, set
5989         unavailable_retaddr.
5990         (dwarf2_frame_unwind_stop_reason): New.
5991         (dwarf2_frame_this_id): Don't build a frame id if the CFA was
5992         unavailable.
5993         (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
5994         (dwarf2_signal_frame_unwind): Ditto.
5995
5996         * amd64-tdep.c: Include "exceptions.h".
5997         (struct amd64_frame_cache): New field "base_p".
5998         (amd64_init_frame_cache): Clear it.
5999         (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
6000         Avoid reading registers with functions that throw if the register
6001         is not necessary to compute the frame base.
6002         (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
6003         swallowing NOT_AVAILABLE_ERROR.
6004         (amd64_frame_unwind_stop_reason): New.
6005         (amd64_frame_this_id): Don't build a frame id if the frame base
6006         was unavailable.
6007         (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
6008         (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
6009         base_p if the frame base was computable.
6010         (amd64_sigtramp_frame_unwind_stop_reason): New.
6011         (amd64_sigtramp_frame_this_id): Don't build a frame id if the
6012         frame base was unavailable.
6013         (amd64_sigtramp_frame_unwind): Install
6014         amd64_sigtramp_frame_unwind_stop_reason.
6015         (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
6016         base_p if the frame base was computable.
6017         (amd64_epilogue_frame_unwind_stop_reason): New.
6018         (amd64_epilogue_frame_this_id): Don't build a frame id if the
6019         frame base was unavailable.
6020         (amd64_epilogue_frame_unwind): Install
6021         amd64_epilogue_frame_unwind_stop_reason.
6022         * i386-tdep.c: Include "exceptions.h".
6023         (struct i386_frame_cache): New field "base_p".
6024         (i386_init_frame_cache): Clear it.
6025         (i386_frame_cache_1): New, factored out from amd64_frame_cache.
6026         Avoid reading registers with functions that throw if the register
6027         is not necessary to compute the frame base.
6028         (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
6029         swallowing NOT_AVAILABLE_ERROR.
6030         (i386_frame_unwind_stop_reason): New.
6031         (i386_frame_this_id): Don't build a frame id if the frame base was
6032         unavailable.
6033         (i386_frame_prev_register): Handle unavailable SP.
6034         (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
6035         (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
6036         base_p if the frame base was computable.
6037         (i386_epilogue_frame_unwind_stop_reason): New.
6038         (i386_epilogue_frame_this_id): Don't build a frame id if the frame
6039         base was unavailable.
6040         (i386_epilogue_frame_unwind): Install
6041         i386_epilogue_frame_unwind_stop_reason.
6042         (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
6043         base_p if the frame base was computable.
6044         (i386_sigtramp_frame_unwind_stop_reason): New.
6045         (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
6046         base was unavailable.
6047         (i386_sigtramp_frame_unwind): Install
6048         i386_sigtramp_frame_unwind_stop_reason.
6049         * sentinel-frame.c (sentinel_frame_prev_register): Use the value
6050         type's size, not the register's.
6051         (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
6052
6053         * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
6054         default_frame_unwind_stop_reason.
6055         * alpha-tdep.c (alpha_sigtramp_frame_unwind)
6056         (alpha_heuristic_frame_unwind): Ditto.
6057         * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
6058         * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
6059         * avr-tdep.c (avr_frame_unwind): Ditto.
6060         * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
6061         Ditto.
6062         * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
6063         * frv-tdep.c (frv_frame_unwind): Ditto.
6064         * h8300-tdep.c (h8300_frame_unwind): Ditto.
6065         * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
6066         * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
6067         * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
6068         (hppa_stub_frame_unwind): Ditto.
6069         * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
6070         * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
6071         (ia64_libunwind_frame_unwind)
6072         (ia64_libunwind_sigtramp_frame_unwind): Ditto.
6073         * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
6074         * lm32-tdep.c (lm32_frame_unwind): Ditto.
6075         * m32c-tdep.c (m32c_unwind): Ditto.
6076         * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
6077         * m32r-tdep.c (m32r_frame_unwind): Ditto.
6078         * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
6079         * m68k-tdep.c (m68k_frame_unwind): Ditto.
6080         * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
6081         * m88k-tdep.c (m88k_frame_unwind): Ditto.
6082         * mep-tdep.c (mep_frame_unwind): Ditto.
6083         * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
6084         * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
6085         (mips_stub_frame_unwind): Ditto.
6086         * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
6087         * moxie-tdep.c (moxie_frame_unwind): Ditto.
6088         * mt-tdep.c (mt_frame_unwind): Ditto.
6089         * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
6090         * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
6091         * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
6092         * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
6093         (s390_sigtramp_frame_unwind): Ditto.
6094         * score-tdep.c (score_prologue_unwind): Ditto.
6095         * sh-tdep.c (sh_frame_unwind): Ditto.
6096         * sh64-tdep.c (sh64_frame_unwind): Ditto.
6097         * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
6098         * sparc-tdep.c (sparc32_frame_unwind): Ditto.
6099         * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
6100         * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
6101         * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
6102         * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
6103         * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
6104         (sparc64obsd_trapframe_unwind): Ditto.
6105         * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
6106         * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
6107         * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
6108         * v850-tdep.c (v850_frame_unwind): Ditto.
6109         * vax-tdep.c (vax_frame_unwind): Ditto.
6110         * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
6111         * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
6112         * xtensa-tdep.c (xtensa_unwind): Ditto.
6113
6114 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
6115
6116         * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
6117         there's always a frame.  Use get_frame_pc_if_available instead of
6118         get_frame_pc, and if there's no PC available, don't look up a
6119         symtab.
6120
6121 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
6122
6123         * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
6124         unavailable PC.
6125
6126 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
6127
6128         * tracepoint.c (set_traceframe_context): Handle unavailable PC
6129         gracefully.
6130
6131 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
6132
6133         * frame.h (frame_unwind_caller_pc_if_available): Declare.
6134         * frame.c (frame_unwind_caller_pc_if_available): New.
6135         * stack.c (frame_info): Handle unavailable PC.
6136
6137 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
6138
6139         * frame.c (frame_unwind_pc): Rename to ...
6140         (frame_unwind_pc_if_available): ... this.  New `pc' output
6141         parameter.  Change return type to int.  Gracefully handle
6142         gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR.  Return 0 if that
6143         happened, or 1 otherwise.
6144         (frame_unwind_pc): Reimplement on top of
6145         frame_unwind_pc_if_available.
6146         (get_frame_func): Rename to ...
6147         (get_frame_func_if_available): New `pc' output parameter.  Change
6148         return type to int.  Gracefully handle the PC not being available.
6149         (get_frame_func): Reimplement on top of
6150         get_frame_func_if_available.
6151         (select_frame): Handle the PC being unavailable.
6152         (get_prev_frame): Handle the PC being unavailable.
6153         (get_frame_pc_if_available): New.
6154         (get_frame_address_in_block_if_available): New.
6155         (find_frame_sal): Handle the frame PC not being available.
6156         * frame.h (get_frame_pc_if_available): Declare.
6157         (get_frame_address_in_block_if_available): Declare.
6158         (get_frame_func_if_available): Declare.
6159         * stack.c (print_frame_info): Handle the PC being unavailable.
6160         (find_frame_funname): Ditto.
6161         (print_frame): Handle the PC being unavailable.
6162         (get_frame_language): Ditto.
6163         * blockframe.c (get_frame_block): Ditto.
6164         * macroscope.c (default_macro_scope): Ditto.
6165         * tui/tui-stack.c (tui_show_frame_info): Ditto.
6166
6167 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
6168
6169         * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
6170         NOT_AVAILABLE_ERROR when evaluating the location expression.
6171
6172 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
6173
6174         * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
6175         returning that the register piece is unavailable/optimized out.
6176         (write_pieced_value): Handle get_frame_register_bytes returning
6177         that the register piece is unavailable/optimized out when doing a
6178         read-modify write of a bitfield.
6179         * findvar.c (value_from_register): Handle get_frame_register_bytes
6180         returning that the register piece is unavailable/optimized out.
6181         * frame.c (get_frame_register_bytes): New parameters `optimizedp'
6182         and `unavailablep'.  Throw error on bad debug info.  Use
6183         frame_register instead of frame_register_read, to fill in the new
6184         arguments.
6185         * frame.h (get_frame_register_bytes): New parameters `optimizedp'
6186         and `unavailablep'.
6187         * valops.c: (value_assign): Adjust, and handle
6188         get_frame_register_bytes failing.
6189         * spu-tdep.c: Include exceptions.h.
6190         (spu_software_single_step): Adjust, and handle
6191         get_frame_register_bytes failing.
6192         (spu_get_longjmp_target): Ditto.
6193         * gdbarch.sh (register_to_value): Change to return int.  New
6194         parameters `optimizedp' and `unavailablep'.
6195         * gdbarch.h, gdbarch.c: Regenerate.
6196         * i386-tdep.c (i386_register_to_value): Adjust to new
6197         gdbarch_register_to_value interface.
6198         * i387-tdep.c (i387_register_to_value): Ditto.
6199         * i387-tdep.h (i387_register_to_value): Ditto.
6200         * alpha-tdep.c (alpha_register_to_value): Ditto.
6201         * ia64-tdep.c (ia64_register_to_value): Ditto.
6202         * m68k-tdep.c (m68k_register_to_value): Ditto.
6203         * mips-tdep.c (mips_register_to_value): Ditto.
6204         * rs6000-tdep.c (rs6000_register_to_value): Ditto.
6205
6206 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
6207
6208         * findvar.c (value_of_register): Mark the value as unavailable, if
6209         the register is unavailable.
6210         * frame.h (frame_register_unwind): New `unavailablep' parameter.
6211         (frame_register): New `unavailablep' parameter.
6212         (frame_register_read): Update comment.
6213         * frame.c (frame_register_unwind): New `unavailablep' parameter.
6214         Set it if the register is unavailable.  If the register is
6215         unavailable, clear the output buffer.
6216         (frame_register): New `unavailablep' parameter.  Pass it down.
6217         (frame_unwind_register): Adjust.
6218         (put_frame_register): Adjust.
6219         (frame_register_read): Adjust.  Also return false if the register
6220         is not available.
6221         (frame_register_unwind_location): Adjust.
6222         * sentinel-frame.c (sentinel_frame_prev_register): If the register
6223         is unavailable, mark the value accordingly.
6224         * stack.c (frame_info): Handle unavailable registers.
6225
6226 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
6227
6228         * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
6229         simplify, using regcache_cooked_read.
6230
6231 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
6232
6233         * regcache.h (regcache_raw_read, regcache_raw_read_signed)
6234         (regcache_raw_read_unsigned, regcache_raw_read_signed)
6235         (regcache_raw_read_unsigned, regcache_raw_read_part)
6236         (regcache_cooked_read, regcache_cooked_read_signed)
6237         (regcache_cooked_read_unsigned, regcache_cooked_read_part)
6238         (regcache_cooked_read_ftype): Change return to enum
6239         register_status.
6240         * regcache.c: Include exceptions.h
6241         (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
6242         (do_cooked_read): Change return to enum register_status.  Always
6243         forward to regcache_cooked_read.
6244         (regcache_raw_read): Change return to enum register_status.  If
6245         the register is not REG_VALID, memset the buffer.  Return the
6246         register's status.
6247         (regcache_raw_read_signed): Handle non-REG_VALID registers and
6248         return the register's status.
6249         (regcache_raw_read_unsigned): Ditto.
6250         (regcache_cooked_read): Change return to enum register_status.
6251         Assert that with read-only regcaches, the register's status must
6252         be known.  If the regcache is read-only, and the register is not
6253         REG_VALID, memset the buffer.  Return the register's status.
6254         (regcache_cooked_read_signed): Change return to enum
6255         register_status.  Handle non-REG_VALID registers and return the
6256         register's status.
6257         (regcache_cooked_read_unsigned): Change return to enum
6258         register_status.  Handle non-REG_VALID registers and return the
6259         register's status.
6260         (regcache_xfer_part, regcache_raw_read_part)
6261         (regcache_cooked_read_part): Change return to enum
6262         register_status.  Return the register's status.
6263         (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
6264         unavailable.
6265         (regcache_dump): Handle unavailable cooked registers.
6266         * frame.c (do_frame_register_read): Adjust interface to match
6267         regcache_cooked_read_ftype.
6268         * gdbarch.sh (pseudo_register_read): Change return to enum
6269         register_status.
6270         * gdbarch.h, gdbarch.c: Regenerate.
6271
6272         * i386-tdep.h (i386_pseudo_register_read): Change return to enum
6273         register_status.
6274         * i386-tdep.c (i386_pseudo_register_read): Change return to enum
6275         register_status.  If reading a raw register indicates the raw
6276         register is not valid, return the raw register's status,
6277         otherwise, return REG_VALID.
6278         * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
6279         register_status.  Handle non-REG_VALID raw registers and return
6280         the register's status.
6281         * arm-tdep.c (arm_neon_quad_read)
6282         (arm_pseudo_read): Change return to enum register_status.  Handle
6283         non-REG_VALID raw registers and return the register's status.
6284         * avr-tdep.c (avr_pseudo_register_read): Ditto.
6285         * frv-tdep.c (frv_pseudo_register_read): Ditto.
6286         * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
6287         * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
6288         * m32c-tdep.c (m32c_move_reg_t): Change return to enum
6289         register_status.
6290         (m32c_raw_read, m32c_raw_write, m32c_banked_read)
6291         (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
6292         (m32c_part_write, m32c_cat_read, m32c_cat_write)
6293         (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
6294         (m32c_pseudo_register_read): Change return to enum
6295         register_status.  Adjust.
6296         * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
6297         enum register_status.  Return the register's status.
6298         * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
6299         register_status.  Return the register's status.
6300         (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
6301         * mips-tdep.c (mips_pseudo_register_read): Ditto.
6302         * mt-tdep.c (mt_pseudo_register_read): Ditto.
6303         * rs6000-tdep.c (move_ev_register_func): New typedef.
6304         (e500_move_ev_register): Use it.  Change return to enum
6305         register_status.  Return the register's status.
6306         (do_regcache_raw_read): New function.
6307         (do_regcache_raw_write): New function.
6308         (e500_pseudo_register_read): Change return to enum
6309         register_status.  Return the register's status.  Use
6310         do_regcache_raw_read.
6311         (e500_pseudo_register_write): Adjust.  Use do_regcache_raw_write.
6312         (dfp_pseudo_register_read): Change return to enum register_status.
6313         Return the register's status.
6314         (vsx_pseudo_register_read): Ditto.
6315         (efpr_pseudo_register_read): Ditto.
6316         (rs6000_pseudo_register_read): Ditto.
6317         * s390-tdep.c (s390_pseudo_register_read): Change return to enum
6318         register_status.  Return the register's status.
6319         * sh64-tdep.c (pseudo_register_read_portions): New function.
6320         (sh64_pseudo_register_read): Change return to enum
6321         register_status.  Use pseudo_register_read_portions.  Return the
6322         register's status.
6323         * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
6324         register_status.  Return the register's status.
6325         * sh-tdep.c (pseudo_register_read_portions): New function.
6326         (sh_pseudo_register_read): Change return to enum register_status.
6327         Use pseudo_register_read_portions.  Return the register's status.
6328         * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
6329         enum register_status.  Return the register's status.
6330         * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
6331         * spu-tdep.c (spu_pseudo_register_read_spu)
6332         (spu_pseudo_register_read): Ditto.
6333         * xtensa-tdep.c (xtensa_register_read_masked)
6334         (xtensa_pseudo_register_read): Ditto.
6335         * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
6336
6337 2011-03-18  Pierre Muller  <muller@ics.u-strasbg.fr>
6338
6339         * python/py-value.c (valpy_getitem): Fix formatting of error function
6340         call.
6341
6342 2011-03-18  Pierre Muller  <muller@ics.u-strasbg.fr>
6343
6344         ARI fixes: Add missing internationalization markups throughout
6345         C source files.
6346         * darwin-nat-info.c: Ditto.
6347         * record.c: Ditto.
6348         * remote.c: Ditto.
6349         * mi/mi-main.c: Ditto.
6350
6351 2011-03-18  Pierre Muller  <muller@ics.u-strasbg.fr>
6352
6353         ARI fixes: Add missing internationalization markups throughout
6354         yacc files.
6355         * c-exp.y: Ditto.
6356         * cp-name-parser.y: Ditto.
6357         * f-exp.y: Ditto.
6358         * m2-exp.y: Ditto.
6359         * objc-exp.y: Ditto.
6360         * p-exp.y: Ditto.
6361
6362 2011-03-18  Pierre Muller  <muller@ics.u-strasbg.fr>
6363
6364         ARI fixes: Messages should have no trailing new lines.
6365         * darwin-nat.c (mach_check_error): Remove trailing new line from
6366         warning function call message.
6367         * record.c (bfdcore_read): Idem for error call.
6368
6369 2011-03-18  Pierre Muller  <muller@ics.u-strasbg.fr>
6370
6371         * common/signals.c (target_signal_from_host): Add _ markup to error
6372         function call message.
6373         (target_signal_to_host): Add _ markup and remove trailing new line
6374         from warning call message.
6375         (target_signal_from_command): Add _ markup to error function call
6376         message.
6377
6378 2011-03-18  Phil Muldoon  <pmuldoon@redhat.com>
6379
6380         PR python/12149
6381
6382         * python/python.c (gdbpy_write): Accept a stream argument and
6383         operate to the appropriate stream.
6384         (gdbpy_flush): Likewise.
6385         (_initialize_python): Add stream constants.
6386         (finish_python_initialization): Add GdbOutputErrorFile class.
6387
6388 2011-03-18  Kwok Cheung Yeung  <kcy@codesourcery.com>
6389
6390         * MAINTAINERS: Add myself as a write-after-approval maintainer.
6391
6392 2011-03-18  Kwok Cheung Yeung  <kcy@codesourcery.com>
6393
6394         * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
6395         to store_signed_integer.  Add debug message when relocating CALL
6396         instructions.  Fix formatting of debug message.
6397         * i386-tdep.c (i386_relocate_instruction): Ditto.
6398
6399 2011-03-17  Joel Brobecker  <brobecker@gnat.com>
6400
6401         * target.h (struct target_ops): Remove to_lookup_symbol field.
6402         (target_lookup_symbol): Delete macro.
6403         * target.c (nosymbol, debug_to_lookup_symbol): Delete.
6404         (update_current_target, setup_target_debug): Remove handling
6405         of to_lookup_symbol target_ops field.
6406         * ada-tasks.c (get_known_tasks_addr): Remove use of
6407         target_lookup_symbol.
6408         * coffread.c (coff_symtab_read): Likewise.
6409         * dbxread.c (read_dbx_symtab): Ditto.
6410
6411 2011-03-17  Joel Brobecker  <brobecker@gnat.com>
6412
6413         PR gdb/12116:
6414         * configure.ac: Add getthrds declaration check.
6415         * configure, config.in: Regenerate.
6416         * aix-thread.c (getthrds): Declare only if not already declared
6417         in procinfo.h.  More declaration out of get_signaled_thread to
6418         global scope.
6419
6420 2011-03-17  Phil Muldoon  <pmuldoon@redhat.com>
6421
6422         * python/py-symtab.c: Populate symtab_object_methods,
6423         sal_object_methods.
6424         (stpy_is_valid): New function.
6425         (salpy_is_valid): Ditto.
6426         * python/py-symbol.c: Declare symbol_object_methods.  Populate.
6427         (sympy_is_valid): New function.
6428         * python/py-objfile.c: Declare objfile_object_methods.  Populate.
6429         (objfpy_is_valid): New function.
6430         * python/py-inferior.c: Populate inferior_object_methods.
6431         (infpy_is_valid): New function.
6432         * python/py-infthread.c: Populate thread_object_methods.
6433         (thpy_is_valid): New function.
6434         * python/py-block.c: Declare block_object_methods.  Populate.  Declare
6435         block_iterator_object_methods.  Populate.
6436         (blpy_is_valid): New function.
6437         (blpy_iter_is_valid): Ditto.
6438
6439 2011-03-16  Keith Seitz  <keiths@redhat.com>
6440
6441         * linespec.c (find_methods): Canonicalize NAME before looking
6442         up the symbol.
6443         (name_end): New function.
6444         (keep_name_info): New function.
6445         (decode_line_1): Use keep_name_info.
6446         (decode_compound): Likewise.
6447         * cli/cli-utils.h (remove_trailing_whitespace): New function.
6448         * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
6449
6450         PR c++/12273
6451         * linespec.c (locate_first_half): Keep overload information, too.
6452         (decode_compound): Use a string to represent break characters
6453         to escape the loop.
6454         If P points to a break character, do not increment it.
6455         For C++ and Java, keep overload information and relevant keywords.
6456         If we cannot find a symbol, search the minimal symbols.
6457
6458         PR c++/11734
6459         * linespec.c (decode_compound): Rename SAVED_ARG to
6460         THE_REAL_SAVED_ARG.
6461         Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
6462         single-quotes.
6463         Pass a valid block to lookup_symbol.
6464         (lookup_prefix_sym): Likewise.
6465         (find_method): Construct search name based on SYM_CLASS instead
6466         of SAVED_ARG.
6467         * psymtab.c (lookup_partial_symbol): Add language parameter.
6468         (lookup_symbol_aux_psymtabs): Likewise.
6469         Don't assume that the psymtab we found was the right one. Search
6470         for the desired symbol in the symtab to be certain.
6471         (psymtab_search_name): New function.
6472         (lookup_partial_symbol): Use psymtab_search_name.
6473         Add language parameter.
6474         (read_symtabs_for_function): Add language parameter and pass to
6475         lookup_partial_symbol.
6476         (find_symbol_file_from_partial): Likewise.
6477
6478 2011-03-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
6479
6480         PR gdb/12528
6481         * dwarf2read.c (noop_record_line): New function.
6482         (dwarf_decode_lines): Ignore line tables for GCd functions.
6483
6484 2011-03-16  Pierre Muller  <muller@ics.u-strasbg.fr>
6485
6486         Fix ARI warnings about new lines at the end of messages, which
6487         are unneeded as there is a new line added at the end of the message
6488         automatically.
6489         * darwin-nat.c (darwin_stop_inferior): Ditto.
6490         * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
6491         * dfp.c (decimal_to_number): Ditto.
6492         * exec.c (print_section_info): Ditto.
6493         * i386-darwin-nat.c (darwin_set_sstep): Ditto.
6494         * osdata.c (get_osdata): Ditto.
6495         * record.c (bfdcore_write): Ditto.
6496         * remote-mips.c (mips_readchar): Ditto.
6497         * remote.c (read_ptid): Ditto.
6498         * ser-mingw.c (ser_windows_raw): Ditto.
6499         * tracepoint.c (add_local_symbols): Ditto.
6500         * windows-nat.c (fake_create_process): Ditto.
6501
6502 2011-03-16  Tom Tromey  <tromey@redhat.com>
6503
6504         * tracepoint.c (stop_tracing): Don't declare.
6505         * event-top.c (after_char_processing_hook): Add `(void)'.
6506
6507 2011-03-16  Phil Muldoon  <pmuldoon@redhat.com>
6508
6509         * NEWS: Add Parameter sub-classing description.
6510
6511 2011-03-16  Kai Tietz  <ktietz@redhat.com>
6512
6513         * MAINTAINERS: Update my e-mail address.
6514
6515 2011-03-15  Andreas Tobler  <andreast@fgznet.ch>
6516
6517         * MAINTAINERS: Add myself for write after approval privileges.
6518
6519 2011-03-15  Michael Snyder  <msnyder@vmware.com>
6520
6521         * frame.c (find_frame_sal): Assert sym is not null.
6522
6523         * dbxread.c (process_one_symbol): Assert 'name' is not null.
6524
6525         * objc-lang.c (selectors_info): Check strchr for null result.
6526
6527         * stabsread.c (define_symbol): Guard against bad stabstring input.
6528
6529 2011-03-15  Pierre Muller  <muller@ics.u-strasbg.fr>
6530
6531         Remove trailing spaces and tabulations from pascal language
6532         support sources.
6533         p-exp.y: Ditto.
6534         p-lang.c: Ditto.
6535         p-lang.h: Ditto.
6536         p-valprint.c: Ditto.
6537
6538 2011-03-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
6539
6540         * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
6541         than LOW.  Comment it.
6542         (read_partial_die): Call complaint for inappropriate zero LOWPC or
6543         HIGHPC not strictly higher than LOWPC.
6544
6545 2011-03-15  Pierre Muller  <muller@ics.u-strasbg.fr>
6546
6547         Fix formatting of function declarations returning a pointer in
6548         previous commit.
6549         * varobj.c (varobj_add_child): Ditto.
6550         * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
6551         * inferior.h (get_displaced_step_closure_by_addr): Ditto.
6552
6553 2011-03-15  Ulrich Weigand  <uweigand@de.ibm.com>
6554
6555         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
6556         for the "generic" vector ABI used with GCC 4.3 and later.
6557         (ppc64_sysv_abi_return_value): Likewise.
6558
6559 2011-03-15  Ulrich Weigand  <uweigand@de.ibm.com>
6560
6561         * infcall.c (call_function_by_hand): Function return value is
6562         always a non_lval, even when using struct_return.
6563
6564 2011-03-15  Pedro Alves  <pedro@codesourcery.com>
6565
6566         * printcmd.c (ALL_DISPLAYS_SAFE): New.
6567         (map_display_numbers): New.
6568         (do_delete_display): New.
6569         (undisplay_command): Use map_display_numbers.
6570         (do_enable_disable_display): New.
6571         (enable_disable_display_command): New function.
6572         (enable_display): Delete.
6573         (enable_display_command): New.
6574         (disable_display_command): Reimplement.
6575         (_initialize_printcmd): Adjust "enable display" command to use
6576         `enable_display_command' as callback.
6577
6578 2011-03-14  Phil Muldoon  <pmuldoon@redhat.com>
6579
6580         * NEWS: Add Python breakpoint 'stop' operation.
6581
6582 2011-03-14  Phil Muldoon  <pmuldoon@redhat.com>
6583
6584         * NEWS: Delete duplicate entry. Fix typo.
6585
6586 2011-03-14  Pierre Muller  <muller@ics.u-strasbg.fr>
6587
6588         Fix ARI warning about function names in first column.
6589         Put prototype declaration on same line as return type.
6590         * objc-exp.y: Ditto.
6591         * p-exp.y: Ditto.
6592         * python/py-stopevent.h: Ditto.
6593         For long function names, split parameters to
6594         allow function name on same line as return type.
6595         * solib-pa64.c: Ditto.
6596         * varobj.c: Ditto.
6597         * varobj.h: Ditto.
6598         For long function declaration, use single line.
6599         * hppa-tdep.h: Ditto.
6600         * inferior.h: Ditto.
6601
6602 2011-03-14  Phil Muldoon  <pmuldoon@redhat.com>
6603
6604         * python/python.h: Declare gdbpy_should_stop and
6605         gdbpy_breakpoint_has_py_cond.
6606         * python/python.c: Add python.h to includes.  Remove python.h from
6607         HAVE_PYTHON definition
6608         (gdbpy_should_stop): New dummy function.
6609         (gdbpy_breakpoint_has_py_cond): New dummy function.
6610         * python/py-breakpoint.c (bppy_init): Rewrite to allow
6611         sub-classing capabilities.
6612         (gdbpy_should_stop): New function.
6613         (gdbpy_breakpoint_has_py_cond): New function.
6614         (local_setattro): New function.
6615         * breakpoint.c (condition_command): Add check for Python 'stop'
6616         operation.
6617         (bpstat_check_breakpoint_conditions): Execute Python 'stop'
6618         operation function as part of stop/continue tests.
6619
6620 2011-03-14  Tom Tromey  <tromey@redhat.com>
6621
6622         PR gdb/12576:
6623         * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
6624         (needs_frame_dwarf_call): Likewise.
6625
6626 2011-03-14  Pierre Muller  <muller@ics.u-strasbg.fr>
6627
6628         Fix ARI warning about functions without parameters that do not
6629         use (void).
6630         * breakpoint.c (all_tracepoints): Replace () by (void).
6631         * f-exp.y (match_string_literal): Ditto.
6632         (yylex): Ditto.
6633         * m2-exp.y (yylex): Ditto.
6634         * mep-tdep.c (current_me_module): Ditto.
6635         (current_options): Ditto.
6636         (current_cop_data_bus_width): Ditto.
6637         (current_cr_names): Ditto.
6638         (current_cr_is_float): Ditto.
6639         (current_ccr_names): Ditto.
6640         * objc-exp.y (yylex): Ditto.
6641         * p-exp.y (yylex): Ditto.
6642         * remote.c (send_interrupt_sequence): Ditto.
6643         * tracepoint.c (current_trace_status): Ditto.
6644         * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
6645         * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
6646
6647 2011-03-11  Michael Snyder  <msnyder@vmware.com>
6648
6649         * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
6650         * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
6651         (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
6652         * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
6653         * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
6654
6655         * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
6656         (delete_async_event_handler): Ditto.
6657
6658         * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
6659
6660         * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
6661
6662         * top.c (set_verbose): Assert showcmd was found.
6663
6664 2011-03-11  Maxim Grigoriev  <maxim2405@gmail.com>
6665
6666         * xtensa-tdep.c (warning_once): Correct style issues.
6667
6668 2011-03-11  Yao Qi  <yao@codesourcery.com>
6669
6670         * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
6671
6672 2011-03-11  Andreas Schwab  <schwab@redhat.com>
6673
6674         * common/aclocal.m4: Remove.
6675
6676 2011-03-10  Maxim Grigoriev  <maxim2405@gmail.com>
6677
6678         * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
6679         (xtensa_write_register, xtensa_read_register): Likewise.
6680         (xtensa_hextochar): Removed.
6681         (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
6682
6683 2011-03-10  Maxim Grigoriev  <maxim2405@gmail.com>
6684
6685         * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
6686         (xtensa_call0_frame_cache_t): Update comments.  New fields added.
6687         (xtensa_alloc_frame_cache): Add initialization for new fields.
6688         (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
6689         (warning_once): New function.
6690         (xtensa_insn_kind): New item c0opc_and.
6691         (call0_classify_opcode): Add the case for AND instruction.
6692         (call0_track_op): Change arguments.  New local variable litbase.
6693         Add the case to handle c0opc_and.  Update algorithms for c0opc_mov,
6694         c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
6695         in the prologue.
6696         Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
6697         (call0_analyze_prologue): Update the comments.  Change arguments.
6698         Add the variety of updates to handle extended prologues, which now can
6699         conduct dynamic stack adjustments.
6700         (call0_frame_cache): Likewise.
6701         (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
6702         (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
6703
6704 2011-03-10  Michael Snyder  <msnyder@vmware.com>
6705
6706         * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
6707         (cmd_qtframe): Ditto.
6708         (cmd_qtbuffer): Ditto.
6709         (cmd_bigqtbuffer): Ditto.
6710
6711 2011-03-10  Tom Tromey  <tromey@redhat.com>
6712
6713         * tracepoint.c (trace_actions_command): Update.
6714         * thread.c (thread_apply_command): Update.
6715         * reverse.c (delete_bookmark_command): Update.
6716         (bookmarks_info): Update.
6717         * printcmd.c (undisplay_command): Update.
6718         * memattr.c (mem_enable_command): Update.
6719         (mem_disable_command): Update.
6720         (mem_delete_command): Update.
6721         * inferior.c (detach_inferior_command): Update.
6722         (kill_inferior_command): Update.
6723         (remove_inferior_command): Update.
6724         * cli/cli-utils.h (struct get_number_or_range_state): New.
6725         (init_number_or_range): Declare.
6726         (get_number_or_range): Update.
6727         * cli/cli-utils.c (init_number_or_range): New function.
6728         (get_number_or_range): Change 'pp' parameter to 'state'.  Remove
6729         static variables.
6730         (number_is_in_list): Update.
6731         * breakpoint.h (get_tracepoint_by_number): Update.
6732         * breakpoint.c (map_breakpoint_numbers): Update for change to
6733         get_number_or_range.
6734         (find_location_by_number): Use get_number, not
6735         get_number_or_range.
6736         (trace_pass_set_count): New function.
6737         (trace_pass_command): Update for change to get_number_or_range.
6738         Rework loop logic.
6739         (get_tracepoint_by_number): Remove 'multi_p' parameter; add
6740         'state' parameter.
6741
6742 2011-03-10  Phil Muldoon  <pmuldoon@redhat.com>
6743
6744         * python/py-param.c (add_setshow_generic): Add set/show callback
6745         parameters.  Register Python object context.
6746         (get_show_value): New function.
6747         (get_set_value): New function.
6748         (call_doc_function): New function.
6749         (get_doc_string): Move behind get_show_value/get_set_value.
6750
6751 2011-03-10  Andreas Tobler  <andreast-list@fgznet.ch>
6752
6753         * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
6754
6755 2011-03-09  Maxim Grigoriev  <maxim2405@gmail.com>
6756
6757         * xtensa-tdep.c (xtensa_read_register): Add comment.
6758         (xtensa_write_register): Likewise.
6759         (xtensa_hextochar): Add comment and update to match coding conventions.
6760         (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
6761         (execute_l32e, execute_s32e, execute_code): Update comments.
6762         (xtensa_exception_handler_t): Update to match coding conventions.
6763         (xtensa_insn_kind): Likewise.
6764
6765 2011-03-09  Michael Snyder  <msnyder@vmware.com>
6766
6767         * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
6768
6769 2011-03-09  Pedro Alves  <pedro@codesourcery.com>
6770
6771         * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
6772
6773 2011-03-09  Tom Tromey  <tromey@redhat.com>
6774
6775         * thread.c (restore_selected_frame): Handle frame_level == -1.
6776         (make_cleanup_restore_current_thread): Use
6777         get_selected_frame_if_set.
6778         * frame.h (get_selected_frame_if_set): Declare.
6779         * frame.c (get_selected_frame_if_set): New function.
6780
6781 2011-03-09  Pedro Alves  <pedro@codesourcery.com>
6782
6783         * cli/cli-cmds.c (shell_escape): Use lbasename.
6784         * coffread.c (coff_start_symtab): Constify parameter.
6785         (complete_symtab): Constify `name' parameter.
6786         (coff_symtab_read): Constify `filestring' local.
6787         (coff_getfilename): Constify return and `result' local.
6788         Use lbasename.
6789         * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
6790         * linux-fork.c (info_checkpoints_command): Use lbasename.
6791         * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
6792         * minsyms.c (lookup_minimal_symbol): Use lbasename.
6793         * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
6794         * procfs.c (procfs_make_note_section): Use lbasename.
6795         * tui/tui-io.c (printable_part): Constity return and parameter.
6796         Use lbasename.
6797         (print_filename): Constify parameters, and local `s'.
6798         (tui_rl_display_match_list): Constify local `temp'.
6799
6800 2011-03-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
6801
6802         Revert:
6803         2011-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
6804         Fix DWARF-3+ DW_AT_accessibility default assumption.
6805         * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
6806         cu->header.version >= 3.
6807
6808 2011-03-09  Yao Qi  <yao@codesourcery.com>
6809
6810         * common/Makefile.in: Remove.
6811         * common/configure: Remove.
6812         * common/configure.ac: Remove.
6813
6814 2011-03-09  Yao Qi  <yao@codesourcery.com>
6815
6816         Revert:
6817         2011-02-11  Yao Qi  <yao@codesourcery.com>
6818
6819         * common/Makefile.in: Add copyright header.
6820
6821         2011-02-11  Yao Qi  <yao@codesourcery.com>
6822
6823         * Makefile.in: Remove signals.o from COMMON_OBS.  Link
6824         libcommon.a.
6825         * configure.ac: Add common to sub dir.
6826         * configure: Regenerate.
6827
6828 2011-03-08  Maxim Grigoriev  <maxim2405@gmail.com>
6829
6830         * xtensa-tdep.c (call0_ret): New function.
6831         (xtensa_skip_prologue): Speed up analysis.
6832
6833 2011-03-08  Maxim Grigoriev  <maxim2405@gmail.com>
6834
6835         * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
6836         while executing MI command -data-list-changed-registers.
6837
6838 2011-03-08  Maxim Grigoriev  <maxim2405@gmail.com>
6839
6840         * xtensa-tdep.c (xtensa_read_register): New function.
6841         (xtensa_write_register): New function.
6842         (xtensa_find_register_by_name): New function.
6843         (xtensa_windowed_frame_cache): Update comments in type description.
6844         (xtensa_frame_cache): Likewise.
6845         (xtensa_window_interrupt_insn): New function.
6846         (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
6847         (xtensa_insn_kind): Add new instructions.
6848         (rwx_special_register): New function.
6849         (call0_classify_opcode): Add new instructions to the analysis.
6850         (a0_saved, a7_saved, a11_saved): New variables.
6851         (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
6852         (execute_l32e): New function.
6853         (execute_s32e): New function.
6854         (xtensa_exception_handler_t): New type.
6855         (execute_code): New function.
6856         (xtensa_window_interrupt_frame_cache): New function to conduct frame
6857         analysis for Xtensa Window Exception handlers.
6858
6859 2011-03-08  Maxim Grigoriev  <maxim2405@gmail.com>
6860
6861         * xtensa-tdep.c (TX_PS): New.
6862         (windowing_enabled): Update to count for Call0 ABI.
6863         (xtensa_hextochar): New.
6864         (xtensa_init_reggroups): Make algorithm generic.
6865         (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
6866
6867 2011-03-08  Maxim Grigoriev  <maxim2405@gmail.com>
6868
6869         * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
6870
6871 2011-03-08  Michael Snyder  <msnyder@vmware.com>
6872
6873         * i386-tdep.c (i386_follow_jump): Check return value of
6874         target_read_memory.
6875         (i386_analyze_struct_return): Ditto.
6876         (i386_skip_probe): Ditto.
6877         (i386_match_insn): Ditto.
6878         (i386_skip_noop): Ditto.
6879         (i386_analyze_frame_setup): Ditto.
6880         (i386_analyze_register_saves): Ditto.
6881         (i386_skip_prologue): Ditto.
6882         (i386_skip_main_prologue): Ditto.
6883
6884         * target.c (read_whatever_is_readable): Fix memory leak.
6885
6886         * i386-tdep.c (i386_process_record): Document fall through.
6887
6888 2011-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
6889
6890         Fix DWARF-3+ DW_AT_accessibility default assumption.
6891         * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
6892         cu->header.version >= 3.
6893
6894 2011-03-08  Pedro Alves  <pedro@codesourcery.com>
6895
6896         * remote.c (remote_check_symbols): Skip if the target has no
6897         execution.
6898
6899 2011-03-08  Joel Brobecker  <brobecker@adacore.com>
6900
6901         * target.c (read_whatever_is_readable): Reformat comment,
6902         with a minor typo fix. Minor reformatting of the code.
6903
6904 2011-03-08  Yao Qi  <yao@codesourcery.com>
6905
6906         * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
6907         (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
6908         Use cached result instead of calling displaced_in_arm_mode again.
6909         (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
6910         (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
6911         (cleanup_copro_load_store, copy_copro_load_store): Likewise.
6912         (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
6913         (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
6914         (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
6915         (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
6916         (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
6917         (cleanup_block_load_pc, copy_block_xfer): Likewise.
6918         * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
6919         (arm_catch_kernel_helper_return): Likewise.
6920         * gdb/arm-tdep.h : Update function declarations.
6921
6922 2011-03-07  Michael Snyder  <msnyder@vmware.com>
6923
6924         * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
6925
6926         * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
6927
6928         * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
6929
6930         * elfread.c (elf_symtab_read): Stop memory leak.
6931
6932         * main.c (captured_main): Fix memory leak.
6933
6934 2011-03-07  Andreas Schwab  <schwab@linux-m68k.org>
6935
6936         * ada-lang.c (compare_names): Call is_name_suffix with string1
6937         instead of string2.
6938
6939 2011-03-07  Tom Tromey  <tromey@redhat.com>
6940
6941         * xcoffread.c (xcoff_sym_fns): Update.
6942         * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
6943         (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
6944         * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
6945         (symbol_file_add_with_addrs_or_offsets): Likewise.
6946         (reread_symbols): Handle OBJF_PSYMTABS_READ.
6947         * somread.c (som_sym_fns): Update.
6948         * psymtab.h (require_partial_symbols): Declare.
6949         * psymtab.c (require_partial_symbols): New function.
6950         (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
6951         (ALL_OBJFILE_PSYMTABS): Undef.
6952         (ALL_PSYMTABS): Move from psympriv.h.
6953         (lookup_partial_symtab, find_pc_sect_psymtab)
6954         (lookup_symbol_aux_psymtabs, relocate_psymtabs)
6955         (find_last_source_symtab_from_partial)
6956         (forget_cached_source_info_partial)
6957         (print_psymtab_stats_for_objfile, read_symtabs_for_function)
6958         (expand_partial_symbol_tables, read_psymtabs_with_filename)
6959         (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
6960         (find_symbol_file_from_partial, map_matching_symbols_psymtab)
6961         (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
6962         Use ALL_OBJFILE_PSYMTABS_REQUIRED.
6963         * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
6964         * objfiles.h (OBJF_PSYMTABS_READ): New macro.
6965         * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
6966         psymtabs.
6967         * mipsread.c (ecoff_sym_fns): Update.
6968         * machoread.c (macho_sym_fns): Update.
6969         * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
6970         (read_psyms): New function.
6971         (elf_sym_fns, elf_sym_fns_gdb_index): Update.
6972         (elf_sym_fns_lazy_psyms): New global.
6973         * dwarf2read.c (dwarf2_initialize_objfile): Don't call
6974         dwarf2_build_psymtabs.
6975         * dbxread.c (aout_sym_fns): Update.
6976         * coffread.c (coff_sym_fns): Update.
6977
6978 2011-03-07  Tom Tromey  <tromey@redhat.com>
6979
6980         * infrun.c (print_exited_reason): Include inferior id and pid in
6981         message.
6982
6983 2011-03-07  Tom Tromey  <tromey@redhat.com>
6984
6985         * target.h (struct target_ops) <to_has_execution>: Add ptid_t
6986         parameter.
6987         (target_has_execution_1): Update.
6988         (target_has_execution_current): Declare.
6989         (target_has_execution): Call target_has_execution_current.
6990         (default_child_has_execution): Update.
6991         * target.c (default_child_has_execution): Add 'the_ptid'
6992         parameter.
6993         (target_has_execution_1): Likewise.
6994         (target_has_execution_current): New function.
6995         (add_target): Update.
6996         (init_dummy_target): Update.
6997         * remote-m32r-sdi.c (m32r_has_execution): New function.
6998         (init_m32r_ops): Use it.
6999         * record.c (record_core_has_execution): Now static.  Add
7000         'the_ptid' parameter.
7001         * inferior.c (have_live_inferiors): Don't save current thread.
7002         Use target_has_execution_1.
7003
7004 2011-03-07  Yao Qi  <yao@codesourcery.com>
7005
7006         * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
7007
7008 2011-03-07  Joel Brobecker  <brobecker@adacore.com>
7009
7010         * elfread.c (elf_symtab_read): Minor reformatting.
7011
7012 2011-03-07  Joel Brobecker  <brobecker@adacore.com>
7013
7014         * objc-lang.c (selectors_info): Minor reformatting.
7015
7016 2011-03-07  Joel Brobecker  <brobecker@adacore.com>
7017
7018         * ada-lang.c (compare_names): Add FALLTHROUGH comment.
7019
7020 2011-03-07  Joel Brobecker  <brobecker@adacore.com>
7021             Michael Snyder  <msnyder@vmware.com>
7022
7023         * ada-valprint.c (ada_val_print_array): Move the declaration of
7024         "byte_order" and "elttype" inside the block where these variables
7025         are actually used.  Remove some special handling for the case
7026         where "elttype" and "eltlen" are null.  Replace by a comment
7027         and a couple of assertion checks.
7028
7029 2011-03-05  Michael Snyder  <msnyder@vmware.com>
7030
7031         * source.c (add_path): Replace semicolon at end of block.
7032         * dwarf2expr.c (execute_stack_op): Ditto.
7033
7034 2011-03-05  Mike Frysinger  <vapier@gentoo.org>
7035
7036         * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
7037         * configure.tgt (bfin-*-*linux*): Define gdb_sim.
7038         (bfin-*-*): Likewise.
7039
7040 2011-03-05  Michael Snyder  <msnyder@vmware.com>
7041
7042         * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
7043         * mdebugread.c (parse_symbol): Ditto.
7044         * parse.c (parse_exp_in_context): Ditto.
7045         * source.c (add_path): Ditto.
7046         * utils.c (gnu_debuglink_crc32): Ditto.
7047         * varobj.c (variable_language): Ditto.
7048
7049         * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
7050
7051 2011-03-04  Michael Snyder  <msnyder@vmware.com>
7052
7053         * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
7054
7055         * symfile.c (simple_overlay_update): Check for null return value
7056         from lookup_minimal_symbol.
7057
7058         * xml-syscall.c (syscall_start_syscall): Assert name is non null.
7059
7060 2011-03-04  Thiago Jung Bauermann  <bauerman@br.ibm.com>
7061
7062         * eval.c (parse_and_eval_address_1): Remove function.
7063         * linespec.c (decode_indirect): Call parse_to_comma_and_eval
7064         instead of parse_and_eval_address_1.
7065         * value.h (parse_and_eval_address_1): Remove prototype.
7066
7067 2011-03-04  Michael Snyder  <msnyder@vmware.com>
7068
7069         * remote.c (putpkt_binary): Document that case stmt falls through.
7070
7071 2011-03-04  Thiago Jung Bauermann  <bauerman@br.ibm.com>
7072
7073         * breakpointc (print_it_typical): Move NULL check from here...
7074         (print_bp_stop_message): ... to here.
7075
7076 2011-03-04  Michael Snyder  <msnyder@msnyder-server.eng.vmware.com>
7077
7078         * breakpoint.c (enable_command): Use break instead of continue,
7079         and fill in a missing break.
7080         (disable_command): Ditto.
7081
7082 2011-03-04  Ulrich Weigand  <ulrich.weigand@linaro.org>
7083
7084         * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
7085         (terminal_save_ours): Remove misleading comment.
7086         (inflow_inferior_data_cleanup): Free ttystate.
7087         (inflow_inferior_exit): Likewise.
7088         (copy_terminal_info): Copy ttystate.
7089
7090         * serial.c (serial_copy_tty_state): New function.
7091         * serial.h (serial_copy_tty_state): Add prototype.
7092         (struct serial_ops): Add copy_tty_state callback.
7093         * ser-base.c (ser_base_copy_tty_state): New function.
7094         * ser-base.h (ser_base_copy_tty_state): Add prototype.
7095         * ser-go32.c (dos_copy_tty_state): New function.
7096         (dos_ops): Install copy_tty_state callback.
7097         * ser-mingw.c (_initialize_ser_windows): Likewise.
7098         * ser-pipe.c (_initialize_ser_pipe): Likewise.
7099         * ser-unix.c (hardwire_copy_tty_state): New function.
7100         (_initialize_ser_hardwire): Install it.
7101
7102 2011-03-04  Michael Snyder  <msnyder@vmware.com>
7103
7104         * breakpoint.c (create_breakpoint): Add missing break statement.
7105
7106         Reverting this patch:
7107         * infcall.c (call_function_by_hand): Add break statements for lint.
7108
7109         Reverting this patch:
7110         * cli/cli-script.c (script_from_file): Add break for lint.
7111
7112 2011-03-04  Michael Snyder  <msnyder@vmware.com>
7113
7114         * solib.c (reload_shared_libraries_1): Close memory leak.
7115
7116 2011-03-03  Tom Tromey  <tromey@redhat.com>
7117
7118         PR gdb/12538:
7119         * dwarf2read.c (process_psymtab_comp_unit): Handle case where
7120         DW_STRING is NULL.
7121
7122 2011-03-03  Michael Snyder  <msnyder@vmware.com>
7123
7124         * remote-fileio.c (remote_fileio_func_fstat): Initialize all
7125         fields of struct 'st' to zero.
7126
7127         * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
7128         sal.pspace before calling set_current_source_symtab_and_line.
7129
7130 2011-03-03  Yao Qi  <yao@codesourcery.com>
7131
7132         * Makefile.in (configure-common): Remove.  Let Makefile
7133         in dir common to rebuild itself.
7134         (common/Makefile): Likewise.
7135
7136 2011-03-03  Joel Brobecker  <brobecker@adacore.com>
7137
7138         * utils.c (parse_escape): Add i18n markup in error message.
7139
7140 2011-03-03  Yao Qi  <yao@codesourcery.com>
7141
7142         * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
7143         ARM_PC_REGNUM.
7144         (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
7145         (displaced_write_reg, displaced_read_reg): Likewise.
7146         (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
7147         (cleanup_block_load_pc, copy_block_xfer): Likewise.
7148         (cleanup_branch): Replace magic number 14 and 15 with
7149         ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
7150
7151 2011-03-02  Michael Snyder  <msnyder@vmware.com>
7152
7153         * maint.c (maintenance_do_deprecate): No need to check for NULL.
7154
7155         * cli/cli-script.c (script_from_file): Add break for lint.
7156
7157         * mdebugread.c (parse_partial_symbols): Fix indent.
7158
7159         * target-descriptions.c (tdesc_gdb_type): No need to call
7160         xstrdup, callee saves a copy.
7161
7162         * printcmd.c (print_scalar_formatted): Use strncpy for safety.
7163
7164         * infcall.c (call_function_by_hand): Add break statements for lint.
7165
7166         * utils.c (parse_escape): Escape the escape char.
7167
7168         * python/py-inferior.c (build_inferior_list): Error out if
7169         PyList_Append fails.
7170         (gdbpy_inferiors): Error out if build_inferior_list fails.
7171
7172         * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
7173         a function call.
7174
7175         * record.c (record_restore): Move printf to before error return.
7176
7177 2011-03-02  Yao Qi  <yao@codesourcery.com>
7178
7179         * arm-tdep.h (struct displaced_step_closure): Add two new fields
7180         is_thumb and insn_size.
7181         * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
7182         on both ARM and Thumb mode.
7183         (arm_process_displaced_insn): Set is_thumb and insn_size.
7184         (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
7185         (arm_displaced_step_fixup): Likewise.
7186
7187 2011-03-01  Michael Snyder  <msnyder@vmware.com>
7188
7189         * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
7190
7191         * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
7192
7193         * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
7194
7195         * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
7196
7197         * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
7198         with xmalloc.
7199
7200         * ada-lang.c (aggregate_assign_others): Rename inner scope variable
7201         which shadows function parameter.
7202
7203         * tracepoint.c (create_tsv_from_upload): Superfluous call
7204         to xstrdup.  Callee already calls xstrdup.
7205
7206         * linespec.c (decode_line_1): Remove unnecessary null check.
7207
7208         * tracepoint.c (scope_info): Fix mem leak, remove underused
7209         variable.
7210
7211         * python/py-prettyprint.c (apply_val_pretty_printer): Remove
7212         superfluous null check.
7213
7214         * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
7215         (value_of_builtin_frame_fp_reg): Ditto.
7216
7217         * event-top.c (display_gdb_prompt): Remove superfluous null check.
7218
7219         * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
7220         be null.
7221
7222         * linespec.c (decode_line_1): Check for null before dereference.
7223
7224         * reverse.c (record_restore): Move null-check to before pointer
7225         dereference.
7226
7227         * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
7228
7229         * objc-lang.c (selectors_info): Add explanitory comment.
7230         (classes_info): Ditto.
7231
7232 2011-03-01  Ulrich Weigand  <ulrich.weigand@linaro.org>
7233
7234         * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
7235         (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
7236         versions of the trampoline.  Handle Thumb vs. ARM addresses.
7237         (arm_kernel_linux_restart_syscall_tramp_frame): New global.
7238         (arm_linux_init_abi): Install it.
7239         * arm-tdep.c (arm_psr_thumb_bit): Make global.
7240         * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
7241
7242 2011-02-28  Michael Snyder  <msnyder@vmware.com>
7243
7244         * ui-out.c (ui_out_field_core_addr): Make local char buffer
7245         a little bigger, to avoid possibility of an overflow.
7246
7247         * breakpoint.c (breakpoint_adjustment_warning): Make local char
7248         buffers a little bigger, to avoid possibility of an overflow.
7249
7250         * coffread.c (coff_getfilename): Add check to avoid overflow.
7251
7252         * objc-lang.c (selectors_info): Add a small safety margin to
7253         avoid overflow.
7254         (classes_info): Error out on too long REGEXP.
7255
7256         * infrun.c (handle_inferior_event): Remove unused function call.
7257
7258         * fork-child.c (fork_inferior): Remove ifdef'd code and
7259         unused variable.
7260
7261         * linux-thread-db.c (attach_thread): Discard unused value.
7262
7263         * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
7264
7265         * remote.c (remote_get_noisy_reply): Discard unused value.
7266         (remote_vcont_resume): Ditto.
7267         (remote_stop_ns): Ditto.
7268
7269         * linespec.c (decode_objc): Delete unused variable.
7270
7271         * tui/tui-regs.c (tui_register_format): Delete unused variable.
7272
7273         * dwarf2read.c (add_partial_symbol): Discard unused values.
7274         (read_base_type): Delete unused variable.
7275
7276         * dbxread.c (read_dbx_symtab): Discard unused value.
7277
7278         * eval.c (evaluate_subexp_standard): Delete unused variable,
7279         and discard unused values.
7280
7281         * infcmd.c (_initialize_infcmd): Discard unused values.
7282
7283         * stabsread.c (rs6000_builtin_type): Missing break statement.
7284
7285         * dbxread.c (process_one_symbol): Discard unused value.
7286
7287         * coffread.c (coff_end_symtab): Delete unused variable.
7288
7289         * dwarf2read.c (dw2_get_file_names): Discard unused value.
7290         (dwarf2_add_typedef): Delete unused variable.
7291         (read_namespace): Ditto.
7292         (dwarf_decode_macros): Ditto.
7293
7294         * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
7295
7296         * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
7297
7298         * p-valprint.c (pascal_val_print): Discard unused value.
7299
7300         * utils.c (nquery): Call va_end before return;
7301         (yquery): Ditto.
7302         (query): Ditto.
7303
7304         * proc-service.c (ps_plog): Call va_end before return.
7305
7306 2011-02-28  Tom Tromey  <tromey@redhat.com>
7307
7308         * python/python.c (gdbpy_value_cst): New global.
7309         (_initialize_python): Initialize it.
7310         * python/python-internal.h (gdbpy_value_cst): Declare.
7311         * python/py-value.c (convert_value_from_python): Use
7312         gdbpy_value_cst.
7313
7314 2011-02-28  Michael Snyder  <msnyder@vmware.com>
7315
7316         * python/py-cmd.c (cmdpy_init): Fix memory leak.
7317
7318         * breakpoint.c (catch_syscall_completer): Free malloced list.
7319
7320         * jv-lang.c (java_primitive_type_from_name): Add missing break.
7321
7322         * opencl-lang.c (lval_func_check_validity): Rename inner variables.
7323         (lval_func_check_synthetic_pointer): Ditto.
7324         (lval_func_free_closure): Fix use-after-free.
7325
7326 2011-02-28  Tom Tromey  <tromey@redhat.com>
7327
7328         * psymtab.c (expand_partial_symbol_tables): Use
7329         ALL_OBJFILE_PSYMTABS.
7330
7331 2011-02-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
7332
7333         * objc-lang.c (selectors_info): Error on too long REGEXP.
7334
7335 2011-02-28  Michael Snyder  <msnyder@vmware.com>
7336
7337         * python/py-param.c (set_parameter_value): Add missing
7338         break statement.
7339
7340         * linux-record.c (record_linux_system_call): Add missing
7341         break statement.
7342
7343 2011-02-28  Ulrich Weigand  <uweigand@de.ibm.com>
7344
7345         * breakpoint.c (print_one_breakpoint_location): Remove unused
7346         argument PRINT_ADDRESS_BITS.  Update callers.
7347         (print_one_breakpoint): Likewise.
7348
7349 2011-02-28  Ulrich Weigand  <uweigand@de.ibm.com>
7350
7351         * breakpoint.c (wrap_indent_at_field): New function.
7352         (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
7353         Allocate ui_stream locally instead of using STB argument.
7354         (print_one_breakpoint_location): Update call.
7355         * ui-out.c (ui_out_query_field): New function.
7356         * ui-out.h (ui_out_query_field): Add prototype.
7357
7358 2011-02-28  Joel Brobecker  <brobecker@adacore.com>
7359
7360         From Michael Snyder  <msnyder@vmware.com>
7361         * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
7362
7363 2011-02-27  Michael Snyder  <msnyder@vmware.com>
7364
7365         * objc-lang.c (selectors_info): Prevent string overrun.
7366
7367         * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
7368         error in strncpy.
7369
7370         * symtab.c (rbreak_command): Move variable 'file_name' to
7371         outer scope.
7372
7373         * d-valprint.c (dynamic_array_type): Avoid shadowing a function
7374         param with a local variable of the same name.
7375
7376 2011-02-27  Michael Snyder  <msnyder@vmware.com>
7377
7378         * value.c (value_from_history_ref): New function.
7379         * value.h (value_from_history_ref): Export.
7380         * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
7381         to parse value history references.
7382         * cli/cli-utils.h (get_number_trailer): Update comment.
7383
7384 2011-02-27  Michael Snyder  <msnyder@vmware.com>
7385
7386         * inferior.c (detach_inferior_command): Use get_number_or_range.
7387         (kill_inferior_command): Ditto.
7388         (remove_inferior_command): Ditto.
7389         (initialize_inferiors): Make command names plural.
7390         Update help strings.
7391
7392 2011-02-27  Michael Snyder  <msnyder@vmware.com>
7393
7394         * darwin-nat-info.c: Fix comment typo.
7395         * dwarf2expr.h: Ditto.
7396         * fbsd-nat.c: Ditto.
7397         * fbsd-nat.h: Ditto.
7398         * frame-unwind.h: Ditto.
7399         * frame.h: Ditto.
7400         * hppa-hpux-tdep.c: Ditto.
7401         * i386-linux-nat.c: Ditto.
7402         * linux-nat.c: Ditto.
7403         * nbsd-nat.c: Ditto.
7404         * nbsd-nat.h: Ditto.
7405         * ppc-linux-tdep.c: Ditto.
7406         * serial.c: Ditto.
7407         * ui-file.h: Ditto.
7408         * tui/tui-winsource.c: Ditto.
7409
7410 2011-02-26  Michael Snyder  <msnyder@vmware.com>
7411
7412         * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
7413
7414         * maint.c (maintenance_do_deprecate): Plug a memory leak.
7415
7416         * dwarf2loc.c (insert_bits): Avoid shadowing a function param
7417         with a local variable of the same name.
7418
7419         * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
7420         param with a local variable of the same name.
7421         (i387_supply_xsave): Ditto.
7422
7423         * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
7424         that it does not shadow a function parameter.
7425
7426         * i386-nat.c (i386_length_and_rw_bits): Document that case
7427         statement is meant to fall through.
7428
7429         * expprint.c (dump_subexp_body_standard): Document that case
7430         statement is meant to fall through.
7431
7432         * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
7433         dead if statement.  Condition can't be false.
7434
7435 2011-02-25  Michael Snyder  <msnyder@vmware.com>
7436
7437         * arm-tdep.c: Fix typos in comments.
7438         * bsd-uthread.c: Ditto.
7439         * completer.c: Ditto.
7440         * corelow.c: Ditto.
7441         * cp-namespace.c: Ditto.
7442         * cp-support.c: Ditto.
7443         * cris-tdep.c: Ditto.
7444         * dbxread.c: Ditto.
7445         * dwarf2read.c: Ditto.
7446         * frame.h: Ditto.
7447         * gdbtypes.h: Ditto.
7448         * inferior.h: Ditto.
7449         * mdebugread.c: Ditto.
7450         * mips-tdep.c: Ditto.
7451         * ppc-linux-nat.c: Ditto.
7452         * ppc-linux-tdep.c: Ditto.
7453         * printcmd.c: Ditto.
7454         * sol-thread.c: Ditto.
7455         * solib-frv.c: Ditto.
7456         * solist.h: Ditto.
7457         * sparc64-tdep.c: Ditto.
7458         * spu-tdep.c: Ditto.
7459         * stabsread.c: Ditto.
7460         * symfile.c: Ditto.
7461         * valops.c: Ditto.
7462         * varobj.c: Ditto.
7463         * vax-nat.c: Ditto.
7464         * python/py-block.c: Ditto.
7465         * python/py-symbol.c: Ditto.
7466         * python/py-symtab.c: Ditto.
7467         * python/py-value.c: Ditto.
7468         * tui/tui-win.c: Ditto.
7469
7470 2011-02-25  Michael Snyder  <msnyder@vmware.com>
7471
7472         * inferior.c (print_inferior): Accept a string instead of an int
7473         for requested_inferiors, and use get_number_or_range to parse it.
7474         (info_inferiors_command): Pass args string to print_inferior.
7475         (initialize_inferiors): Change help string for info inferiors.
7476         * inferior.h (print_inferior): Export prototype change.
7477
7478 2011-02-25  Tom Tromey  <tromey@redhat.com>
7479
7480         * common/ax.def (invalid2): Set to 0x31.
7481
7482 2011-02-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
7483
7484         * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
7485         L and plongest.
7486         (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
7487         use L and plongest.
7488         (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
7489
7490 2011-02-24  Michael Snyder  <msnyder@vmware.com>
7491
7492         * Makefile.in (clean): Make clean should remove generated files
7493         observer.h and observer.inc.
7494
7495 2011-02-24  Joel Brobecker  <brobecker@adacore.com>
7496
7497         Revert the following patch (not approved yet):
7498         2011-02-21  Hui Zhu  <teawater@gmail.com>
7499         * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
7500         * ax-gdb.c (gen_printf_expr_callback): New function.
7501         * ax-gdb.h (gen_printf_expr_callback): Forward declare.
7502         * ax-general.c (ax_memcpy): New function.
7503         (ax_print): Handle "printf".
7504         (ax_reqs): Ditto.
7505         * ax.h (ax_memcpy): Forward declare.
7506         * common/ax.def (invalid2): Removed.
7507         (printf): New entry.
7508         * printcmd.c (printcmd.h): New include.
7509         (string_printf): New function.
7510         (ui_printf): Removed.
7511         (printf_command): Remove static.  Call string_printf.
7512         (eval_command): Call string_printf.
7513         * printcmd.h: New file.
7514         * tracepoint.c (validate_actionline,
7515         encode_actions_1): handle printf_command.
7516
7517 2011-02-23  Tom Tromey  <tromey@redhat.com>
7518
7519         * ax-general.c (ax_pick): Add missing newline.
7520
7521 2011-02-23  Michael Snyder  <msnyder@vmware.com>
7522
7523         * breakpoint.c (breakpoint_1): Change first argument from an int
7524         to a char pointer, so that the function now accepts a list of
7525         breakpoints rather than just one.  Use new function
7526         'number_is_in_list' to implement.
7527         (breakpoints_info): Pass char * instead of int to breakpoint_1.
7528         (watchpoints_info): Ditto.
7529         (tracepoints_info): Ditto.
7530         (maintenance_info_breakpoints): Ditto.
7531         (_initialize_breakpoint): Update help strings to reflect the fact
7532         that these functions can now take more than one argument.
7533         * cli/cli-utils.c (number_is_in_list): New function.
7534         * cli/cli-utils.h (number_is_in_list): Export.
7535
7536 2011-02-23  Michael Snyder  <msnyder@vmware.com>
7537
7538         * memattr.c (mem_enable_command): Use get_number_or_range.
7539         (mem_disable_command): Ditto.
7540         (mem_delete_command): Ditto.
7541         (_initialize_mem): Tweak usage message to reflect multiple
7542         arguments.
7543
7544 2011-02-22  Doug Evans  <dje@google.com>
7545
7546         Add gdb.lookup_global_symbol python function.
7547         * NEWS: Add entry.
7548         * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
7549         * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
7550         * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
7551
7552 2011-02-22  Tom Tromey  <tromey@redhat.com>
7553
7554         * language.c (language_class_name_from_physname): Rename
7555         'curr_language' argument to 'lang'; use in body.
7556
7557 2011-02-22  Michael Snyder  <msnyder@vmware.com>
7558
7559         * cli/cli-utils.c (number_is_in_list): Check for zero return.
7560
7561 2011-02-22  Pedro Alves  <pedro@codesourcery.com>
7562
7563         * frame-unwind.h: Fix comment to mention the this frame, not the
7564         next.
7565
7566 2011-02-22  Tom Tromey  <tromey@redhat.com>
7567
7568         * symfile.c (auto_solib_limit): Remove.
7569         * symfile.h (auto_solib_limit): Remove.
7570
7571 2011-02-22  Joel Brobecker  <brobecker@adacore.com>
7572
7573         * Makefile.in (INSTALLED_LIBS): Delete.  Update comment.
7574
7575 2011-02-21  Michael Snyder  <msnyder@vmware.com>
7576
7577         * gdbthread.h (print_thread_info): Change prototype.
7578         * thread.c (print_thread_info): Accept char* instead of int for
7579         requested_threads argument.  Use new function number_is_in_list
7580         to determine which threads to list.
7581         (info_threads_command): Pass char* to print_thread_info.
7582         * cli/cli-utils.c (number_is_in_list): New function.
7583         * cli/cli-utils.h (number_is_in_list): Export.
7584         * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
7585         print_thread_info.
7586         (print_one_inferior): Ditto.
7587         (mi_cmd_list_thread_groups): Ditto.
7588
7589 2011-02-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
7590
7591         * common/Makefile.in (CFLAGS): New.
7592         (COMPILE): Add $(CFLAGS).
7593
7594 2011-02-21  Tom Tromey  <tromey@redhat.com>
7595
7596         * breakpoint.c (catch_syscall_command_1): Fix typo.
7597
7598 2011-02-21  Tom Tromey  <tromey@redhat.com>
7599
7600         * reverse.c: Include cli-utils.h.
7601         * printcmd.c: Include cli-utils.h.
7602         (string_printf): Use skip_spaces.
7603         * cli/cli-utils.h: New file.
7604         * cli/cli-utils.c: New file.
7605         * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
7606         * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
7607         * breakpoint.h (get_number, get_number_or_range): Move to
7608         cli-utils.h.
7609         * breakpoint.c: Include cli-utils.h.
7610         (get_number_trailer, get_number, get_number_or_range)
7611         (ep_skip_leading_whitespace): Move to cli-utils.c.
7612         (create_breakpoint_sal, find_condition_and_thread)
7613         (decode_static_tracepoint_spec, watch_command_1)
7614         (watch_maybe_just_location, ep_parse_optional_if_clause)
7615         (catch_fork_command_1, catch_exec_command_1)
7616         (catch_syscall_command_1): Use skip_spaces, skip_to_space.
7617         * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
7618         (SUBDIR_CLI_SRCS): Add cli-utils.c.
7619         (HFILES_NO_SRCDIR): Add cli-utils.h.
7620         (cli-utils.o): New target.
7621
7622 2011-02-18  Pierre Muller  <muller@ics.u-strasbg.fr>
7623
7624         * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
7625         before calling discard_all_inferiors.
7626
7627 2011-02-21  Ulrich Weigand  <uweigand@de.ibm.com>
7628
7629         * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
7630         (struct builtin_opencl_type): Remove.
7631         (builtin_opencl_type): Change return type to "struct type **".
7632         (lookup_opencl_vector_type): Update caller.
7633         (opencl_language_arch_info): Copy primitive type vector from gdbarch.
7634         (build_opencl_types): Install plain array of "struct type *"
7635         instead of "struct builtin_opencl_type".
7636
7637 2011-02-21  Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
7638             Ulrich Weigand  <uweigand@de.ibm.com>
7639
7640         * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
7641         (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
7642         (struct arm_linux_hwbp_cap): New type.
7643         (arm_linux_get_hwbp_cap): New function.
7644         (arm_linux_get_hw_breakpoint_count): Likewise.
7645         (arm_linux_get_hw_watchpoint_count): Likewise.
7646         (arm_linux_can_use_hw_breakpoint): Likewise.
7647         (arm_hwbp_type): New type.
7648         (arm_hwbp_control_t): Likewise.
7649         (struct arm_linux_hw_breakpoint): Likewise.
7650         (struct arm_linux_thread_points): Likewise.
7651         (arm_threads): New global variable.
7652         (arm_linux_find_breakpoints_by_tid): New function.
7653         (arm_hwbp_control_initialize): Likewise.
7654         (arm_hwbp_control_is_enabled): Likewise.
7655         (arm_hwbp_control_disable): Likewise.
7656         (arm_linux_hw_breakpoint_initialize): Likewise.
7657         (arm_linux_get_hwbp_type): Likewise.
7658         (arm_linux_hw_watchpoint_initialize): Likewise.
7659         (arm_linux_hw_breakpoint_equal): Likewise.
7660         (arm_linux_insert_hw_breakpoint1): Likewise.
7661         (arm_linux_remove_hw_breakpoint1): Likewise.
7662         (arm_linux_insert_hw_breakpoint): Likewise.
7663         (arm_linux_remove_hw_breakpoint): Likewise.
7664         (arm_linux_region_ok_for_hw_watchpoint): Likewise.
7665         (arm_linux_insert_watchpoint): Likewise.
7666         (arm_linux_remove_watchpoint): Likewise.
7667         (arm_linux_stopped_data_address): Likewise.
7668         (arm_linux_stopped_by_watchpoint): Likewise.
7669         (arm_linux_watchpoint_addr_within_range): Likewise.
7670         (arm_linux_new_thread): Likewise.
7671         (arm_linux_thread_exit): Likewise.
7672         (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
7673         related target callbacks.  Register arm_linux_new_thread and
7674         arm_linux_thread_exit.
7675         * arm-tdep.h (arm_pc_is_thumb): Add prototype.
7676         * arm-tdep.c (arm_pc_is_thumb): Make global.
7677         (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
7678
7679 2011-02-21  Ulrich Weigand  <uweigand@de.ibm.com>
7680
7681         * breakpoint.c (update_watchpoint): Do not attempt to recreate
7682         per-frame locations while within a function epilogue.
7683
7684 2011-02-21  Pierre Muller  <muller@ics.u-strasbg.fr>
7685
7686         * ser-mingw.c (ser_windows_close): Reformat comment to better conform
7687         to GNU coding standards.
7688
7689 2011-02-21  Pierre Muller  <muller@ics.u-strasbg.fr>
7690
7691         Allow use of mingw native on Windows 95 OS.
7692         * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
7693         (ser_windows_close): Only call CancelIo if function exists.
7694         (_initialize_ser_windows): Use LoadLirary/GetProcAddress
7695         to check for existence of CancelIo function in kernel32 DLL.
7696
7697 2011-02-21  Hui Zhu  <teawater@gmail.com>
7698
7699         * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
7700         * ax-gdb.c (gen_printf_expr_callback): New function.
7701         * ax-gdb.h (gen_printf_expr_callback): Forward declare.
7702         * ax-general.c (ax_memcpy): New function.
7703         (ax_print): Handle "printf".
7704         (ax_reqs): Ditto.
7705         * ax.h (ax_memcpy): Forward declare.
7706         * common/ax.def (invalid2): Removed.
7707         (printf): New entry.
7708         * printcmd.c (printcmd.h): New include.
7709         (string_printf): New function.
7710         (ui_printf): Removed.
7711         (printf_command): Remove static.  Call string_printf.
7712         (eval_command): Call string_printf.
7713         * printcmd.h: New file.
7714         * tracepoint.c (validate_actionline,
7715         encode_actions_1): handle printf_command.
7716
7717 2011-02-19  Michael Snyder  <msnyder@vmware.com>
7718
7719         * reverse.c (delete_one_bookmark): Argument is now bookmark
7720         id rather than pointer to bookmark struct.
7721         (delete_bookmark_command): Use get_number_or_range.
7722         (goto_bookmark_command): Parse with get_number instead of strtoul.
7723         (bookmark_1): New function.  Print info for one bookmark.
7724         (bookmarks_info): Use get_number_or_range and bookmark_1.
7725
7726 2011-02-18  Michael Snyder  <msnyder@vmware.com>
7727
7728         * thread.c (info_threads_command): Re-implement using
7729         get_number_or_range.
7730         (thread_apply_command): Ditto.
7731
7732 2011-02-18  Tom Tromey  <tromey@redhat.com>
7733
7734         * common/ax.def: New file.
7735         * ax.h (enum agent_op): Use ax.def.
7736         * ax-general.c (aop_map): Use ax.def.
7737
7738 2011-02-18  Tom Tromey  <tromey@redhat.com>
7739
7740         * ax-general.c (aop_map): Add pick and rot.
7741         * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
7742         <DW_OP_rot>: Implement.
7743         * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
7744         (ax_pick): Declare.
7745         * ax-general.c (ax_pick): New function.
7746
7747 2011-02-18  Tom Tromey  <tromey@redhat.com>
7748
7749         * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
7750
7751 2011-02-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
7752             Tom Tromey  <tromey@redhat.com>
7753
7754         * cp-support.c (make_symbol_overload_list_namespace): Do not call
7755         make_symbol_overload_list_block with NULL BLOCK.
7756         * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
7757
7758 2011-02-18  Pedro Alves  <pedro@codesourcery.com>
7759
7760         * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
7761         * breakpoint.h (get_number_or_range): Declare.
7762         * printcmd.c (ALL_DISPLAYS): Declare.
7763         (delete_display): Reimplement taking a display pointer.
7764         (undisplay_command): Accept a range of displays to delete, using
7765         get_number_or_range.
7766
7767 2011-02-18  Pierre Muller  <muller@ics.u-strasbg.fr>
7768
7769         * c-valprint.c (c_val_print): Add embedded_offset to address
7770         for arrays of unspecified length.
7771         * p-valprint.c (pascal_val_print): Likewise.
7772
7773 2011-02-18  Yao Qi  <yao@codesourcery.com>
7774
7775         * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
7776         (arm_process_displaced_insn): .. here. Remove parameter INSN.
7777         (thumb_process_displaced_insn): New.
7778         * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
7779         call to arm_process_displaced_insn.
7780         * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
7781
7782 2011-02-17  Tom Tromey  <tromey@redhat.com>
7783
7784         * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
7785         * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
7786         compile_dwarf_to_ax.  No longer static.  Call
7787         dwarf2_compile_cfa_to_ax.
7788         (locexpr_tracepoint_var_ref): Update.
7789         (loclist_tracepoint_var_ref): Update.
7790         * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
7791         * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
7792         argument; add 'gdbarch' and 'pc'.
7793         (dwarf2_compile_cfa_to_ax): New function.
7794         (dwarf2_frame_cache): Update.
7795
7796 2011-02-17  Joel Brobecker  <brobecker@adacore.com>
7797
7798         * ada-lang.c (ada_type_of_array): Fix the size of the array
7799         in the case of an unconstrained packed array.
7800
7801 2011-02-17  Yao Qi  <yao@codesourcery.com>
7802
7803         * common/Makefile.in: Add more targets for make.
7804
7805 2011-02-16  Tom Tromey  <tromey@redhat.com>
7806
7807         * dwarf2loc.c (unimplemented): Fix typo.
7808
7809 2011-02-16  Tom Tromey  <tromey@redhat.com>
7810
7811         * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
7812         (compile_dwarf_to_ax) <default>: Use unimplemented.
7813         <DW_OP_deref>: Update.
7814         (disassemble_dwarf_expression): Update.
7815         * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
7816         (decode_locdesc): Update.
7817         * dwarf2expr.h (dwarf_stack_op_name): Update.
7818
7819 2011-02-16  Tom Tromey  <tromey@redhat.com>
7820
7821         * ax.h (struct aop_map) <name>: Now const.
7822
7823 2011-02-16  Tom Tromey  <tromey@redhat.com>
7824
7825         * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
7826         than axs_rvalue.
7827
7828 2011-02-16  Yao Qi  <yao@codesourcery.com>
7829
7830         * infrun.c (get_displaced_step_closure_by_addr): New.
7831         * inferior.h: Declare it.
7832         * arm-tdep.c: (arm_pc_is_thumb): Call
7833         get_displaced_step_closure_by_addr.  Adjust MEMADDR if it
7834         returns non-NULL.
7835
7836 2011-02-16  Pedro Alves  <pedro@codesourcery.com>
7837             Jan Kratochvil  <jan.kratochvil@redhat.com>
7838
7839         gdb/
7840         * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
7841
7842 2011-02-16  Pedro Alves  <pedro@codesourcery.com>
7843             Jan Kratochvil  <jan.kratochvil@redhat.com>
7844
7845         * value.c (value_contents_copy_raw): Extend describing comment.
7846         Assert that the destination contents we're overwriting are wholly
7847         available.
7848         (value_contents_copy): Extend describing comment.
7849
7850 2011-02-16  Pedro Alves  <pedro@codesourcery.com>
7851             Jan Kratochvil  <jan.kratochvil@redhat.com>
7852
7853         * value.c (value_available_contents_eq): Remove redundant local
7854         variables.  Fix available contents comparision.
7855         * value.h (value_available_contents_eq): Extend describing
7856         comment.
7857
7858 2011-02-16  Yao Qi  <yao@codesourcery.com>
7859
7860         * thread.c (info_threads_command): Add missing i18n markup and remove
7861         trailing newline.
7862
7863 2011-02-15  Paul Pluzhnikov  <ppluzhnikov@google.com>
7864
7865         * breakpoint.c (longjmp_names): New variable.
7866         (struct breakpoint_objfile_data): New type.
7867         (breakpoint_objfile_key): New variable.
7868         (msym_not_found): New variable.
7869         (msym_not_found_p): New predicate.
7870         (get_breakpoint_objfile_data): New function.
7871         (create_overlay_event_breakpoint): Check per-objfile cache for
7872         symbols first.
7873         (create_longjmp_master_breakpoint): Likewise.
7874         (create_std_terminate_master_breakpoint): Likewise.
7875         (create_exception_master_breakpoint): Likewise.
7876         (_initialize_breakpoint): Register per-objfile data key.
7877
7878 2011-02-15  Paul Pluzhnikov  <ppluzhnikov@google.com>
7879
7880         * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
7881         parameter value.
7882         (create_longjmp_master_breakpoint): Loop over longjmp names.
7883         (create_std_terminate_master_breakpoint): Const-propagate parameter
7884         value.
7885         (update_breakpoints_after_exec): Adjust.
7886         (breakpoint_re_set): Adjust.
7887
7888 2011-02-15  Michael Snyder  <msnyder@vmware.com>
7889
7890         * thread.c (info_threads_command): Process arg as thread id,
7891         or list of thread ids.
7892         (thread_find_command): New command.
7893         (_initialize_thread): Document argument for info threads.
7894         Document 'thread find' command.
7895         * NEWS: Document new command "thread find".
7896
7897 2011-02-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
7898
7899         * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
7900         * aclocal.m4: Regenerated with aclocal-1.11.1.
7901         * common/configure: Regenerate with autoconf-2.64.
7902
7903 2011-02-15  Ken Werner  <ken.werner@de.ibm.com>
7904
7905         * opencl-lang.c (build_opencl_types): Set the size of the built-in
7906         bool data type to a size of one byte.
7907
7908 2011-02-15  Pedro Alves  <pedro@codesourcery.com>
7909             Jan Kratochvil  <jan.kratochvil@redhat.com>
7910
7911         * target.c (memory_xfer_live_readonly_partial): Document where to
7912         look for interface description.
7913
7914 2011-02-15  Yao Qi  <yao@codesourcery.com>
7915
7916         PR tdep/12352
7917         * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
7918         order to store PC value on stack instead of text section.
7919
7920 2011-02-15  Thiago Jung Bauermann  <bauerman@br.ibm.com>
7921
7922         * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
7923         the EFP register set size.
7924         (efpr_pseudo_register_read): Use regcache_raw_read_part to read
7925         data from the VMX register.
7926         (efpr_pseudo_register_write): Use regcache_raw_write_part to read
7927         and write data from/to the VMX register.
7928
7929 2011-02-14  Michael Snyder  <msnyder@vmware.com>
7930
7931         * command.h (enum command_class): New class 'no_set_class', for
7932         "show" commands without a corresponding "set" command.
7933         * value.c (_initialize_values): Use 'no_set_class' for "show values".
7934         * copying.c (_initialize_copying): Ditto for "show copying" and
7935         "show warranty".
7936         * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
7937         "show version".
7938         * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
7939         which there is no corresponding "set" command (eg. "show copying").
7940
7941 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
7942             Jan Kratochvil  <jan.kratochvil@redhat.com>
7943
7944         * exec.c (section_table_available_memory): Change `len' parameter
7945         type to ULONGEST.
7946         * exec.h (section_table_available_memory): Ditto.
7947         * value.h (read_value_memory): Rename the `offset' parameter to
7948         `embedded_offset'.
7949
7950 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
7951             Jan Kratochvil  <jan.kratochvil@redhat.com>
7952
7953         * memrange.c (compare_mem_ranges): Mention sort order in
7954         describing comment.
7955         (normalize_mem_ranges): Add comment.  Fix ra->length calculation.
7956         * tracepoint.c (traceframe_available_memory): Extend comment to
7957         mention what happens to RESULT when the target does not support
7958         the query.
7959
7960 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
7961             Jan Kratochvil  <jan.kratochvil@redhat.com>
7962
7963         * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
7964         range.
7965
7966 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
7967
7968         * value.c (value_bits_valid, value_bits_synthetic_pointer):
7969         No longer handle NULL values.
7970
7971 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
7972
7973         * exceptions.h (NOT_AVAILABLE_ERROR): New error.
7974         * value.c: Include "exceptions.h".
7975         (require_available): Throw NOT_AVAILABLE_ERROR instead of a
7976         generic error.
7977         * cp-abi.c: Include gdb_assert.h.
7978         (baseclass_offset): Add `embedded_offset' and `val' parameters.
7979         Assert the method is implemented.  Wrap NOT_AVAILABLE_ERROR
7980         errors.
7981         * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
7982         parameters.  No longer returns -1 on error.
7983         (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
7984         `val' parameters.
7985         * cp-valprint.c: Include exceptions.h.
7986         (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
7987         the baseclass_offset.  Handle unavailable base classes.  Use
7988         val_print_invalid_address.
7989         * p-valprint.c: Include exceptions.h.
7990         (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
7991         when fetching the baseclass_offset.  No longer expect
7992         baseclass_offset returning -1.  Handle unavailable base classes.
7993         Use val_print_invalid_address.
7994         * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
7995         `valaddr' parameter, and change its type to gdb_byte pointer.  Add
7996         `embedded_offset' and `val' parameters.  Adjust.
7997         (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
7998         parameter, and change its type to gdb_byte pointer.  Add
7999         `embedded_offset' and `val' parameters.  Adjust.  No longer expect
8000         baseclass_offset returning -1.
8001         (value_dynamic_cast): Use value_contents_for_printing rather than
8002         value_contents.  Adjust.
8003         (search_struct_field): No longer expect baseclass_offset returning
8004         -1.
8005         (search_struct_method): If reading memory from the target is
8006         necessary, wrap it in a new value to pass to baseclass_offset.  No
8007         longer expect baseclass_offset returning -1.
8008         (find_method_list): No longer expect baseclass_offset returning
8009         -1.  Use value_contents_for_printing rather than value_contents.
8010         * valprint.c (val_print_invalid_address): New function.
8011         * valprint.h (val_print_invalid_address): Declare.
8012         * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
8013         and `val' parameters.  No longer expect baseclass_offset returning
8014         -1.  Adjust.
8015         * gnu-v2-abi.c: Include "exceptions.h".
8016         (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
8017         parameters.  Handle unavailable memory.  Recurse through
8018         gnuv2_baseclass_offset directly, rather than through
8019         baseclass_offset.  No longer returns -1 on not found, instead
8020         throw an error.
8021         * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
8022         `val' parameters.  Adjust.
8023
8024 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
8025
8026         * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
8027         almost but not quite adjacent.
8028
8029 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
8030
8031         * value.h (value_entirely_available): Declare.
8032         * value.c (value_entirely_available): New function.
8033         * c-valprint.c (c_value_print): Don't try fetching the pointer's
8034         real type if the pointer is unavailable.
8035
8036 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
8037
8038         * valops.c (value_repeat): Use read_value_memory instead of
8039         read_memory.
8040
8041 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
8042
8043         * value.h (value_contents_copy, value_contents_copy_raw): Declare.
8044         * value.c (value_contents_copy_raw, value_contents_copy): New
8045         functions.
8046         (value_primitive_field): Use value_contents_copy_raw instead of
8047         memcpy.
8048         * valops.c (value_fetch_lazy): Use value_contents_copy instead of
8049         memcpy.
8050         (value_array, value_slice): Ditto.
8051         * valarith.c (value_subscripted_rvalue): Use
8052         value_contents_copy_raw instead of memcpy.
8053
8054 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
8055
8056         <unavailable> references.
8057
8058         * valops.c (get_value_at): Use value_from_contents_and_address,
8059         avoiding read_memory.
8060
8061 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
8062
8063         * c-valprint.c (c_val_print): Print a string with unavailable
8064         contents as an array.
8065
8066 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
8067
8068         * value.h (unpack_bits_as_long): Delete declaration.
8069         (unpack_value_bits_as_long): Declare.
8070         (unpack_value_field_as_long): Declare.
8071         (value_field_bitfield): Declare.
8072         * value.c (unpack_bits_as_long): Rename to...
8073         (unpack_value_bits_as_long_1): ... this.  Add embedded_offset and
8074         value parameters.  Return the extracted result in a new output
8075         parameter.  If the value contents are unavailable, return false,
8076         otherwise return true.
8077         (unpack_value_bits_as_long): New.
8078         (unpack_field_as_long): Rename to...
8079         (unpack_value_field_as_long_1): ... this.  Add embedded_offset and
8080         Add embedded_offset and value parameters.  Return the extracted
8081         result in a new output parameter. If the value contents are
8082         unavailable, return false, otherwise return true.
8083         (unpack_value_field_as_long): New.
8084         (unpack_field_as_long_1): New.
8085         (unpack_field_as_long): Reimplement as wrapper around
8086         unpack_value_field_as_long_1.
8087         (value_field_bitfield): New function.
8088         * valops.c (value_fetch_lazy): When fetching a bitfield, use
8089         unpack_value_bits_as_long.  Mark the value as unavailable, if it
8090         is unavailable.
8091         * jv-valprint.c (java_print_value_fields): Use
8092         value_field_bitfield.
8093         * p-valprint.c (pascal_object_print_value_fields): Use
8094         value_field_bitfield.
8095         * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
8096
8097 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
8098
8099         * value.c (get_internalvar_integer): Also return the int value of
8100         TYPE_CODE_INT INTERNALVAR_VALUE values.
8101         (set_internalvar): Don't special case TYPE_CODE_INT.
8102
8103 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
8104
8105         * value.c (struct internalvar) <enum internalvar_kind>: Remove
8106         INTERNALVAR_POINTER.
8107         <pointer>: Delete.
8108         (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
8109         (set_internalvar): Remove special TYPE_CODE_PTR handling.
8110         (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
8111
8112 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
8113
8114         * value.h (value_available_contents_eq): Declare.
8115         * value.c (find_first_range_overlap): New function.
8116         (value_available_contents_eq): New function.
8117         * valprint.c (val_print_array_elements): Use
8118         value_available_contents_eq.
8119         * ada-valprint.c (val_print_packed_array_elements): Use
8120         value_available_contents_eq.
8121         * jv-valprint.c (java_value_print): Use
8122         value_available_contents_eq.
8123
8124 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
8125
8126         * target.c (target_read_live_memory): New function.
8127         (memory_xfer_live_readonly_partial): New.
8128         (memory_xfer_partial): If reading from a traceframe, fallback to
8129         reading unavailable read-only memory from read-only regions of
8130         live target memory.
8131         * tracepoint.c (disconnect_tracing): Adjust.
8132         (set_current_traceframe): New, factored out from
8133         set_traceframe_number.
8134         (set_traceframe_number): Reimplement to only change the traceframe
8135         number on the GDB side.
8136         (do_restore_current_traceframe_cleanup): Adjust.
8137         (make_cleanup_restore_traceframe_number): New.
8138         (cur_traceframe_number): New global.
8139         (tfile_open): Set cur_traceframe_number to no traceframe.
8140         (set_tfile_traceframe): New function.
8141         (tfile_trace_find): If looking up a traceframe using any method
8142         other than by number, make sure the current tfile traceframe
8143         matches gdb's current traceframe.  Update the current tfile
8144         traceframe if the lookup succeeded.
8145         (tfile_fetch_registers, tfile_xfer_partial)
8146         (tfile_get_trace_state_variable_value): Make sure the remote
8147         traceframe matches gdb's current traceframe.
8148         * remote.c (remote_traceframe_number): New global.
8149         (remote_open_1): Set it to -1.
8150         (set_remote_traceframe): New function.
8151         (remote_fetch_registers, remote_store_registers)
8152         (remote_xfer_memory, remote_xfer_partial)
8153         (remote_get_trace_state_variable_value): Make sure the remote
8154         traceframe matches gdb's current traceframe.
8155         (remote_trace_find): If looking up a traceframe using any method
8156         other than by number, make sure the current remote traceframe
8157         matches gdb's current traceframe.  Update the current remote
8158         traceframe if the lookup succeeded.
8159         * infrun.c (fetch_inferior_event): Adjust.
8160         * tracepoint.h (set_current_traceframe): Declare.
8161         (get_traceframe_number, set_traceframe_number): Add describing
8162         comments.
8163
8164 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
8165
8166         Mark pieces of values as unavailable if the corresponding memory
8167         is unavailable.
8168
8169         * valops.c: Include tracepoint.h.
8170         (value_fetch_lazy): Use read_value_memory.
8171         (read_value_memory): New.
8172         * value.h (read_value_memory): Declare.
8173         * dwarf2loc.c (read_pieced_value): Use read_value_memory.
8174         * exec.c (section_table_available_memory): New function.
8175         * exec.h (section_table_available_memory): Declare.
8176
8177 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
8178
8179         * Makefile.in (SFILES): Add memrange.c.
8180         (HFILES_NO_SRCDIR): Add memrange.h.
8181         (COMMON_OBS): Add memrange.o.
8182         * memrange.c: New file.
8183         * memrange.h: New file.
8184         * tracepoint.c: Include memrange.h.
8185         (struct mem_range): Delete.
8186         (mem_range_s): Delete.
8187         (traceframe_available_memory): New function.
8188         * tracepoint.h (traceframe_available_memory): Declare.
8189
8190 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
8191
8192         * target.h (struct traceframe_info): Forward declare.
8193         (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
8194         (struct target_ops) <to_traceframe_info>: New field.
8195         (target_traceframe_info): New.
8196         * target.c (update_current_target): Inherit and default
8197         to_traceframe_info.
8198         * remote.c (PACKET_qXfer_traceframe_info): New.
8199         (remote_protocol_features): Register qXfer:traceframe-info:read.
8200         (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
8201         (remote_traceframe_info): New.
8202         (init_remote_ops): Install it.
8203         (_initialize_remote): Install "set/show remote traceframe-info"
8204         commands.
8205         * tracepoint.h (parse_traceframe_info): Declare.
8206         * tracepoint.c (struct mem_range): New.
8207         (mem_range_s): New typedef.
8208         (struct traceframe_info): New.
8209         (traceframe_info): New global.
8210         (free_traceframe_info): New function.
8211         (clear_traceframe_info): New function.
8212         (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
8213         info.
8214         (build_traceframe_info): New function.
8215         (tfile_traceframe_info): New function.
8216         (init_tfile_ops): Install tfile_traceframe_info.
8217         (traceframe_info_start_memory, free_result): New functions.
8218         (memory_attributes, traceframe_info_elements): New globals.
8219         (parse_traceframe_info, get_traceframe_info): New functions.
8220         * features/traceframe-info.dtd: New file.
8221         * Makefile.in (XMLFILES): Add traceframe-info.dtd.
8222
8223 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
8224
8225         Base support for <unavailable> value contents.
8226
8227         * value.h (value_bytes_available): Declare.
8228         (mark_value_bytes_unavailable): Declare.
8229         * value.c (struct range): New struct.
8230         (range_s): New typedef.
8231         (ranges_overlap): New function.
8232         (range_lessthan): New function.
8233         (ranges_contain_p): New function.
8234         (struct value) <unavailable>: New field.
8235         (value_bytes_available): New function.
8236         (mark_value_bytes_unavailable): New function.
8237         (require_not_optimized_out): Constify parameter.
8238         (require_available): New function.
8239         (value_contents_all, value_contents): Require all bytes be
8240         available.
8241         (value_free): Free `unavailable'.
8242         (value_copy): Copy `unavailable'.
8243         * valprint.h (val_print_unavailable): Declare.
8244         * valprint.c (valprint_check_validity): Rename `offset' parameter
8245         to `embedded_offset'.  If printing a scalar, check whether the
8246         value chunk is available.
8247         (val_print_unavailable): New.
8248         (val_print_scalar_formatted): Check whether the value is
8249         available.
8250         * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
8251         pretty-printing unavailable values.
8252
8253 2011-02-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
8254
8255         Fix const/volatile qualifiers of C++ types, PR c++/12328.
8256         * c-typeprint.c (c_type_print_args): Update the function comment.  New
8257         variable param_type, initialize it.  Remove const/volatile qualifiers
8258         for language_cplus and !show_artificial.  Use param_type.
8259
8260 2011-02-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
8261
8262         * symtab.c (find_pc_sect_line): New variable objfile, initialize it
8263         from S.  Iterate S using ALL_OBJFILE_SYMTABS.  Verify BV for each S.
8264         * symtab.h (struct symtab) <next>: Comment extension.
8265
8266 2011-02-12  Yao Qi  <yao@codesourcery.com>
8267
8268         * Makefile.in (CLEANDIRS): Remove duplicated common dir.
8269
8270 2011-02-11  Yao Qi  <yao@codesourcery.com>
8271
8272         * common/Makefile.in: Add copyright header.
8273
8274 2011-02-11  Pedro Alves  <pedro@codesourcery.com>
8275
8276         * infrun.c (proceed): Move switching out and in of tfind mode from
8277         here ...
8278         (fetch_inferior_event): ... to here.
8279
8280 2011-02-11  Yao Qi  <yao@codesourcery.com>
8281
8282         * Makefile.in: Remove signals.o from COMMON_OBS.  Link
8283         libcommon.a.
8284         * configure.ac: Add common to sub dir.
8285         * configure: Regenerate.
8286
8287 2011-02-11  Yao Qi  <yao@codesourcery.com>
8288
8289         Build libcommon.a.
8290
8291         * common/Makefile.in: New.
8292         * common/configure.ac: New.
8293         * common/aclocal.m4: New.
8294         * common/configure: Generate.
8295
8296 2011-02-10  Pedro Alves  <pedro@codesourcery.com>
8297
8298         * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
8299         side of the parenthesis.
8300
8301         Merge from GCC:
8302         2010-07-13  Jakub Jelinek  <jakub@redhat.com>
8303         * vec.h (VEC_block_remove): Fix comment.
8304
8305 2011-02-08  Michael Snyder  <msnyder@vmware.com>
8306
8307         * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
8308
8309 2011-02-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
8310
8311         * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
8312         in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
8313         psubd and paddd.
8314
8315 2011-02-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
8316
8317         PR 12361.
8318         * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
8319         phsubsw.
8320         (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
8321         (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
8322
8323 2011-02-08  Ulrich Weigand  <uweigand@de.ibm.com>
8324
8325         * dwarf2read.c (read_subroutine_type): Set special calling
8326         convention flag for functions compiled by IBM XL C for OpenCL.
8327         * ppc-sysv-tdep.c: Include "dwarf2.h"
8328         (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
8329         calling convention.
8330         (do_ppc_sysv_return_value): Add FUNC_TYPE argument.  Implement
8331         IBM OpenCL vector types calling convention.
8332         (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
8333         (ppc_sysv_abi_broken_return_value): Likewise.
8334         (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
8335         types calling convention.
8336         (ppc64_sysv_abi_return_value): Likewise.
8337         * spu-tdep.c: Include "dwarf2.h"
8338         (spu_return_value): Implement IBM OpenCL vector types calling
8339         convention.
8340
8341 2011-02-08  Ulrich Weigand  <uweigand@de.ibm.com>
8342
8343         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
8344         correct ABI for AltiVec vector arguments.
8345
8346 2011-02-07  Pedro Alves  <pedro@codesourcery.com>
8347
8348         * valprint.c (val_print): Extend comment.
8349         * ada-valprint.c (ada_valprint): Rewrite comment deferring
8350         interface explanation to val_print.
8351         (ada_val_print_array): Adjust comment to current interface.
8352         (print_field_values): Adjust comment to current interface.
8353         * c-valprint.c (c_val_print): Rewrite comment deferring interface
8354         explanation to val_print.
8355         * f-valprint.c (f_val_print): Ditto.
8356         * jv-valprint.c (java_val_print): Ditto.
8357         * m2-valprint.c (m2_val_print): Ditto.
8358         * p-valprint.c (pascal_val_print): Ditto.
8359
8360 2011-02-07  Thiago Jung Bauermann  <bauerman@br.ibm.com>
8361
8362         * breakpoint.c (parse_breakpoint_sals): Fix description.
8363
8364 2011-02-04  Sami Wagiaalla  <swagiaal@redhat.com>
8365             Oguz Kayral <oguzkayral@gmail.com>
8366
8367         * python/py-inferior.c (python_on_normal_stop): New function.
8368         (python_on_resume): New function.
8369         (python_inferior_exit): New function.
8370         (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
8371         inferior_exit observers.
8372         * python/py-evtregistry.c: New file.
8373         * python/py-threadevent.c : New file.
8374         * python/py-event.c: New file.
8375         * python/py-evts.c: New file.
8376         * python/py-continueevent.c: New file.
8377         * python/py-bpevent.c: New file.
8378         * python/py-signalevent.c: New file.
8379         * python/py-exetiedevent.c: New file.
8380         * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
8381         Move struct breakpoint_object from here...
8382         * python/python-internal.h: ... to here.
8383         * python/py-event.h: New file.
8384         * python/py-events.h: New file.
8385         * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
8386         py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
8387         py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
8388         (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
8389         py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
8390         py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
8391         Add build rules for all the above.
8392
8393 2011-02-04  Tom Tromey  <tromey@redhat.com>
8394
8395         * dwarf2read.c (dwarf2_section_empty_p): New function.
8396         (dwarf2_read_section): Use dwarf2_section_empty_p.
8397         (dwarf2_section_size): New function.
8398         (dwarf2_get_section_info): Unconditionally read section.
8399         (dwarf2_read_index): Use dwarf2_section_empty_p.
8400         (partial_read_comp_unit_head): Use dwarf2_section_size.
8401         (dwarf2_symbol_mark_computed): Likewise.
8402
8403 2011-02-04 David Daney <ddaney@caviumnetworks.com>
8404
8405         * NEWS: Add item for "catch syscall" on mips*-linux* targets.
8406
8407 2011-02-04 David Daney <ddaney@caviumnetworks.com>
8408
8409         * mips-linux-tdep.c: Include xml-syscall.h.
8410         (mips_linux_get_syscall_number): New function.
8411         (mips_linux_init_abi): Add calls to
8412         mips_linux_get_syscall_number() and set_xml_syscall_file_name().
8413         * data-directory/Makefile.in (SYSCALLS_FILES): Add
8414         mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
8415         * syscalls/mips-n32-linux.xml: New file.
8416         * syscalls/mips-n64-linux.xml: New file.
8417         * syscalls/mips-o32-linux.xml: New file.
8418
8419 2011-02-04  Ulrich Weigand  <ulrich.weigand@linaro.org>
8420
8421         * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
8422         Complain about inverted range entries.
8423         (dwarf2_record_block_ranges): Likewise.
8424
8425 2011-02-04  Thiago Jung Bauermann  <bauerman@br.ibm.com>
8426
8427         Fix some typos.
8428         * breakpoint.c (update_watchpoint): Fix name of the
8429         update_global_location_list function.
8430         (print_one_breakpoint): Fix typo.
8431         (_initialize_breakpoint): Remove extra space in hbreak help
8432         string.
8433         * breakpoint.h (struct bp_location) <length>: Fix field
8434         description.
8435
8436 2011-02-04  Pedro Alves  <pedro@codesourcery.com>
8437
8438         * regcache.c (registers_changed_ptid): Don't explictly always
8439         clear `current_regcache'.  Only clear current_thread_ptid and
8440         current_thread_arch when PTID matches.  Only reinit the frame
8441         cache if PTID matches the current inferior_ptid.  Move alloca(0)
8442         call to ...
8443         (registers_changed): ... here.
8444
8445 2011-02-03  Ulrich Weigand  <ulrich.weigand@linaro.org>
8446
8447         * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
8448         starts with __stack_chk_guard as stack guard symbol.
8449
8450 2011-02-03  Andrew Burgess  <aburgess@broadcom.com>
8451
8452         * disasm.c (compare_lines): Handle the end of sequence markers
8453         within the line table to better support disassembling over
8454         compilation unit boundaries.
8455
8456 2011-02-02  Ulrich Weigand  <ulrich.weigand@linaro.org>
8457
8458         * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
8459         arguments.  Skip in-prologue calls to glibc __aeabi_read_tp
8460         implementation even if no symbols are available.
8461         (thumb_analyze_prologue): Update call to skip_prologue_function.
8462         (arm_analyze_prologue): Likewise.
8463
8464 2011-02-02  Ulrich Weigand  <ulrich.weigand@linaro.org>
8465
8466         * arm-tdep.c: Include "observer.h".
8467         (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
8468         (arm_exidx_data_key): New static variable.
8469         (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
8470         (struct arm_exidx_data): Likewise.
8471         (arm_exidx_data_free): New function.
8472         (arm_compare_exidx_entries): Likewise.
8473         (arm_obj_section_from_vma): Likewise.
8474         (arm_exidx_new_objfile): Likewise.
8475         (arm_find_exidx_entry): Likewise.
8476         (arm_exidx_fill_cache): Likewise.
8477         (arm_exidx_unwind_sniffer): Likewise.
8478         (arm_exidx_unwind): New global variable.
8479         (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
8480         (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
8481         observer.  Register arm_exidx_data_key as objfile data.
8482
8483 2011-02-02  Ulrich Weigand  <ulrich.weigand@linaro.org>
8484
8485         * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
8486         due to accessing uninitialized variable.  Fix indentation.
8487
8488 2011-02-02  Pedro Alves  <pedro@codesourcery.com>
8489
8490         * c-valprint.c (c_value_print): When doing virtual base pointer
8491         adjustment, create a new value with adjusted contents rather than
8492         changing the contents of the value being printed (and getting it
8493         wrong).
8494
8495 2011-02-02  Pedro Alves  <pedro@codesourcery.com>
8496
8497         * xml-support.c (xml_find_attribute): New.
8498         (xinclude_start_include): Use it.
8499         * xml-support.h (xml_find_attribute): Declare.
8500         * memory-map.c (memory_map_start_memory)
8501         (memory_map_start_property): Use xml_find_attribute.
8502         * osdata.c (osdata_start_osdata, osdata_start_column): Use
8503         xml_find_attribute.
8504         * remote.c (start_thread): Use xml_find_attribute.
8505         * solib-target.c (library_list_start_segment)
8506         (library_list_start_section, library_list_start_library)
8507         (library_list_start_list): Use xml_find_attribute.
8508         * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
8509         (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
8510         (tdesc_start_field): Use xml_find_attribute.
8511
8512 2011-02-02  Ulrich Weigand  <uweigand@de.ibm.com>
8513
8514         * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
8515         (BUILD_OCL_VTYPES): Update.
8516
8517 2011-02-02  Joel Brobecker  <brobecker@adacore.com>
8518
8519         * configure.ac: Work around non-GNU sed limitation when computing
8520         python version number.
8521         * configure: Regenerate.
8522
8523 2011-02-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
8524
8525         Fix debug printing of TYPE_INSTANCE.
8526         * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
8527         (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
8528
8529 2011-02-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
8530
8531         Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
8532         OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
8533         OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
8534         * ada-operator.inc: Rename the file to ...
8535         * ada-operator.def: ... here, wrap all the entries by macro OP.
8536         * expprint.c (op_name_standard): Remove all the entries.  Include
8537         "std-operator.def" instead.
8538         * expression.h (enum exp_opcode): Include "std-operator.def" and
8539         "ada-operator.def".  Move all the entries ...
8540         * std-operator.def: ... here, wrap all the entries by macro OP.
8541
8542 2011-01-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
8543
8544         * breakpoint.h (remove_jit_event_breakpoints): New prototype.
8545         * breakpoint.c (remove_jit_event_breakpoints): New function.
8546         * jit.c (jit_descriptor_addr): Delete.
8547         (registering_code): Delete.
8548         (clear_int): Delete.
8549         (jit_inferior_data): New variable.
8550         (struct jit_inferior_data): New type.
8551         (get_jit_inferior_data): New function.
8552         (jit_inferior_data_cleanup): New function.
8553         (jit_read_descriptor): Adjust.
8554         (jit_register_code): Adjust.
8555         (jit_breakpoint_re_set_internal): New function; move code here ...
8556         (jit_inferior_init): ... from here.
8557         (jit_breakpoint_re_set): Adjust.
8558         (jit_reset_inferior_data_and_breakpoints): New function.
8559         (jit_inferior_created_observer): Adjust.
8560         (jit_inferior_exit_hook): Adjust.
8561         (jit_executable_changed_observer): New function.
8562         (jit_event_handler): Adjust.
8563         (_initialize_jit): Adjust.
8564
8565 2011-01-31  Michael Snyder  <msnyder@vmware.com>
8566
8567         * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
8568         line.
8569
8570 2011-01-31  Tom Tromey  <tromey@redhat.com>
8571
8572         PR python/12216:
8573         * python/python.c (execute_gdb_command): Call
8574         prevent_dont_repeat.
8575         * top.c (suppress_dont_repeat): New global.
8576         (dont_repeat): Use it.
8577         (prevent_dont_repeat): New function.
8578         * command.h (prevent_dont_repeat): Declare.
8579
8580 2011-01-31  Tom Tromey  <tromey@redhat.com>
8581
8582         * infcmd.c (finish_backward): Use breakpoint_set_silent.
8583         * python/py-breakpoint.c (bppy_set_silent): Use
8584         breakpoint_set_silent.
8585         (bppy_set_thread): Use breakpoint_set_thread.
8586         (bppy_set_task): Use breakpoint_set_task.
8587         * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
8588         (breakpoint_set_task): Declare.
8589         (make_breakpoint_silent): Remove.
8590         * breakpoint.c (breakpoint_set_silent): New function.
8591         (breakpoint_set_thread): Likewise.
8592         (breakpoint_set_task): Likewise.
8593         (make_breakpoint_silent): Remove.
8594
8595 2011-01-31  Tom Tromey  <tromey@redhat.com>
8596
8597         * breakpoint.h (user_breakpoint_p): Declare.
8598         * breakpoint.c (user_breakpoint_p): New function.
8599         (breakpoint_1): Use it.
8600         (save_breakpoints): Likewise.
8601
8602 2011-01-31  Joel Brobecker  <brobecker@adacore.com>
8603
8604         * configure.ac: Add handling of Python distribution on Windows.
8605         * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
8606         sysconfig variables are not defined, then do not use them.
8607         On Windows, if LIBPL is not defined, then use prefix + '/libs'
8608         instead.  On Windows, return all paths using forward-slashes
8609         rather than backslashes.
8610
8611 2011-01-31  Joel Brobecker  <brobecker@adacore.com>
8612
8613         * configure.ac: Remove fallback behavior for building
8614         against Python.  Remove tweaking of Python include path.
8615         Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
8616         (AC_TRY_LIBPYTHON):  Adjust program used in linking test.
8617         If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
8618         Always restore CPPFLAGS and LIBS after linking test.
8619         * configure: Regenerated.
8620         * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
8621         (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
8622         * python/python-internal.h: Adjust includes of Python .h files.
8623
8624 2011-01-31  Joel Brobecker  <brobecker@adacore.com>
8625
8626         * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
8627         in error message.
8628
8629 2011-01-31  Joel Brobecker  <brobecker@adacore.com>
8630
8631         * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
8632         value test.
8633
8634 2011-01-31  Yao Qi  <yao@codesourcery.com>
8635
8636         * arm-linux-nat.c: Update calls to regcache_register_status
8637         instead of regcache_valid_p.
8638         * aix-thread.c: Likewise.
8639         * i386gnu-nat.c: Likewise.
8640
8641 2011-01-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
8642
8643         Fix crash.
8644         * valops.c (compare_parameters): Verify TYPE_NFIELDS before
8645         touching TYPE_FIELD_ARTIFICIAL.
8646
8647 2011-01-28  Richard Earnshaw  <rearnsha@arm.com>
8648
8649         * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
8650         Committers.
8651
8652 2011-01-28  Pedro Alves  <pedro@codesourcery.com>
8653
8654         * tracepoint.c (tfile_xfer_partial): If there's no traceframe
8655         selected, don't try iterating over the traceframe's blocks.
8656         (tfile_has_stack): If there's no traceframe selected, then there's
8657         no stack.
8658         (tfile_has_registers): If there's no traceframe selected, then
8659         there's no registers.
8660
8661 2011-01-28  Pedro Alves  <pedro@codesourcery.com>
8662
8663         * target.c (memory_xfer_partial): No need to restore shadows if we
8664         haven't read anything.
8665
8666 2011-01-28  Pedro Alves  <pedro@codesourcery.com>
8667
8668         * mips-tdep.c (mips_print_register): Use get_frame_register_value
8669         and val_print_scalar_formatted.
8670
8671 2011-01-27  Pedro Alves  <pedro@codesourcery.com>
8672
8673         * tracepoint.c (tfile_read): New.
8674         (tfile_open): Use it.
8675         (tfile_get_traceframe_address): Use it.
8676         (tfile_trace_find): Use it.
8677         (walk_blocks_callback_func): New typedef.
8678         (match_blocktype): New function.
8679         (traceframe_walk_blocks): New function.
8680         (traceframe_find_block_type): New function.
8681         (tfile_fetch_registers, tfile_xfer_partial)
8682         (tfile_get_trace_state_variable_value): Use
8683         traceframe_find_block_type and tfile_read.
8684
8685 2011-01-26  Kevin Buettner  <kevinb@redhat.com>
8686
8687         * remote-mips.c: Add internationalization mark ups.  Remove
8688         trailing \n from already marked up strings.
8689
8690 2011-01-26  Tom Tromey  <tromey@redhat.com>
8691
8692         * python/py-prettyprint.c (print_string_repr): Clear
8693         'addressprint' option when calling val_print_string.
8694         (print_children): Handle Val_pretty_default.  Clear 'addressprint'
8695         option when calling val_print_string.
8696
8697 2011-01-26  Tom Tromey  <tromey@redhat.com>
8698
8699         * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
8700         GDB_PY_LL_ARG.
8701         * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
8702         macros.
8703         (gdb_py_longest, gdb_py_ulongest): New typedefs.
8704         (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
8705         (gdb_py_long_as_ulongest): New defines.
8706         (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
8707         (gdb_py_int_as_long): Declare.
8708         * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
8709         GDB_PY_LL_ARG, gdb_py_object_from_longest.
8710         (valpy_long): Add comment.
8711         * python/py-utils.c (get_addr_from_python): Use
8712         gdb_py_long_as_ulongest.  Handle overflow properly.
8713         (gdb_py_object_from_longest): New function.
8714         (gdb_py_object_from_ulongest): Likewise.
8715         (gdb_py_int_as_long): Likewise.
8716         * python/py-type.c (typy_array): Use gdb_py_int_as_long.
8717         * python/py-symtab.c (salpy_get_pc): Use
8718         gdb_py_long_from_ulongest.
8719         (salpy_get_line): Use PyInt_FromLong.
8720         * python/py-param.c (set_parameter_value): Use
8721         gdb_py_int_as_long.
8722         * python/py-lazy-string.c (stpy_get_address): Use
8723         gdb_py_long_from_ulongest.
8724         * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
8725         * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
8726         * python/py-breakpoint.c (bppy_set_thread): Use
8727         gdb_py_int_as_long.
8728         (bppy_set_task): Likewise.
8729         (bppy_set_ignore_count): Likewise.
8730         (bppy_set_hit_count): Likewise.
8731         * python/py-block.c (blpy_get_start): Use
8732         gdb_py_object_from_ulongest.
8733         (blpy_get_end): Likewise.
8734         (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
8735
8736 2011-01-25  Mathieu Lacage  <mathieu.lacage@inria.fr>
8737
8738         PR/symtab 11766:
8739         * gdb/objfiles.h (struct objfile) <addr_low>: New field.
8740         * gdb/solib.c (solib_read_symbols): Check for addr_low in
8741         equality test for objfile, initialize addr_low if needed.
8742
8743 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
8744
8745         * tui/tui-regs.c (tui_register_format): Remove dead code.
8746
8747 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
8748
8749         * printcmd.c (print_formatted): Use val_print_scalar_formatted
8750         instead of print_scalar_formatted.
8751         (print_scalar_formatted): Don't handle 's' format strings here,
8752         and add an assertion that we never see such format here.
8753         * valprint.h (val_print_scalar_formatted): Declare.
8754         * valprint.c (val_print_scalar_formatted): New.
8755         * c-valprint.c (c_val_print): Use val_print_scalar_formatted
8756         instead of print_scalar_formatted.
8757         * jv-valprint.c (java_val_print): Ditto.
8758         * p-valprint.c (pascal_val_print): Ditto.
8759         * ada-valprint.c (ada_val_print_1): Ditto.
8760         * f-valprint.c (f_val_print): Ditto.
8761         * infcmd.c (registers_info): Ditto.
8762         * m2-valprint.c (m2_val_print): Ditto.
8763
8764 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
8765
8766         * m2-valprint.c (print_unbounded_array): Pass
8767         value_contents_for_printing rather than value_contents, to
8768         m2_print_array_contents.  Also pass in the value.
8769
8770 2011-01-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
8771
8772         * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
8773         (save_gdb_index_command): Switch to .gdb_index version 4.
8774
8775 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
8776
8777         * mi/mi-main.c (get_register): Use get_frame_register_value rather
8778         than frame_register, and always pass a valid value to val_print.
8779
8780 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
8781
8782         Centralize printing "<optimized out>".
8783
8784         * valprint.h (val_print_optimized_out): Declare.
8785         * cp-valprint.c (cp_print_value_fields): Use
8786         val_print_optimized_out.
8787         * jv-valprint.c (java_print_value_fields): Ditto.
8788         * p-valprint.c (pascal_object_print_value_fields): Ditto.
8789         * printcmd.c (print_formatted): Ditto.
8790         * valprint.c (valprint_check_validity): Ditto.
8791         (value_check_printable): Ditto.
8792         (val_print_optimized_out): New.
8793
8794 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
8795
8796         * infcmd.c (default_print_registers_info): Allocate values so to
8797         never pass a NULL value to val_print.
8798
8799 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
8800
8801         * cp-valprint.c (cp_print_value): Treat the 'skip' local as
8802         boolean.  Make sure to always pass a value that matches the
8803         contents buffer to callees.  Preserve `address' for following
8804         iterations.
8805         * value.c (value_contents_for_printing_const): New.
8806         (value_address): Constify value argument.
8807         * value.h (value_contents_for_printing_const): Declare.
8808         (value_address): Constify value argument.
8809
8810 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
8811
8812         * regcache.c (struct regcache_descr): Rename
8813         sizeof_raw_register_valid_p field to sizeof_raw_register_status,
8814         and sizeof_cooked_register_valid_p to
8815         sizeof_cooked_register_status.
8816         (init_regcache_descr): Adjust.
8817         (struct regcache): Rename register_valid_p field to
8818         register_status.
8819         (regcache_xmalloc_1, regcache_xfree, regcache_save)
8820         (do_cooked_read): Adjust.
8821         (regcache_valid_p): Rename to ...
8822         (regcache_register_status): ... this.  Adjust.
8823         (regcache_invalidate): Adjust.
8824         (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
8825         Adjust.
8826         (regcache_raw_supply): Adjust.  If buf i NULL, mark the register
8827         as unavailable, not valid.
8828         (regcache_dump): Adjust.
8829         * regcache.h (enum register_status): New.
8830         (regcache_register_status): Declare.
8831         (regcache_invalidate): Delete declaration.
8832         * corelow.c (get_core_registers): Adjust.
8833         * tracepoint.c (tfile_fetch_registers): Adjust.
8834         * trad-frame.c (REG_VALUE): Rename to ...
8835         (TF_REG_VALUE): ... this.
8836         (REG_UNKNOWN): Rename to ...
8837         (TF_REG_UNKNOWN): ... this.
8838         (trad_frame_set_value, trad_frame_set_unknown): Adjust.
8839         * mi/mi-main.c (register_changed_p): Adjust.
8840
8841 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
8842
8843         * regcache.c (struct regcache_descr): Remove outdated comment.
8844         (init_regcache_descr): Remove sizeof_raw_register_valid_p
8845         overallocate hack.
8846         (regcache_xmalloc): Rename to ...
8847         (regcache_xmalloc_1): ... this.  Add `readonly_p' parameter.
8848         Allocate the regcache type accordingly.
8849         (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
8850         (regcache_xfree): Asser the source is also readonly.  Copy sizeof
8851         cooked registers, not raw.
8852         (regcache_dup_no_passthrough): Delete.
8853         (get_thread_arch_regcache): Use regcache_xmalloc_1.
8854         * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
8855         mention obsolete write_register_bytes.
8856         * regcache.h (regcache_dup_no_passthrough): Delete declaration.
8857
8858 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
8859
8860         Stop remote_read_bytes from handling partial reads itself.
8861
8862         * remote-fileio.c: Include target.h.
8863         (remote_fileio_write_bytes): Delete.
8864         (remote_fileio_func_open, remote_fileio_func_write)
8865         (remote_fileio_func_rename, remote_fileio_func_unlink): Use
8866         target_read_memory.
8867         (remote_fileio_func_stat): Use target_read_memory and
8868         target_write_memory.
8869         (remote_fileio_func_gettimeofday): Use target_write_memory.
8870         (remote_fileio_func_system): Use target_read_memory.
8871         * remote.c (remote_write_bytes): Make it static.
8872         (remote_read_bytes): Don't handle partial reads here.
8873         * remote.h (remote_read_bytes): Delete declaration.
8874
8875 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
8876
8877         Simplify XML parsing a bit.
8878
8879         * xml-support.h (gdb_xml_parse_quick): Declare.
8880         * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
8881         from gdb_xml_create_parser_and_cleanup, and added `old_chain'
8882         parameter.
8883         (gdb_xml_create_parser_and_cleanup): Reimplement on top of
8884         gdb_xml_create_parser_and_cleanup_1.
8885         (gdb_xml_parse_quick): New.
8886         * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
8887         * osdata.c (osdata_parse): Ditto.
8888         * remote.c (remote_threads_info): Ditto.
8889         * solib-target.c (solib_target_parse_libraries): Ditto.
8890         * xml-syscall.c (syscall_parse_xml): Ditto.
8891         * xml-tdesc.c (tdesc_parse_xml): Ditto.
8892
8893 2011-01-24  Kevin Buettner  <kevinb@redhat.com>
8894
8895         * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
8896         with remote-mips.o added to gdb_target_obs.
8897         * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
8898
8899 2011-01-24  Pedro Alves  <pedro@codesourcery.com>
8900
8901         * ada-valprint.c (val_print_packed_array_elements): Pass the
8902         correct struct value to val_print.
8903         (ada_val_print_1): Ditto.
8904
8905 2011-01-24  Pedro Alves  <pedro@codesourcery.com>
8906
8907         Don't lose embedded_offset in printing routines throughout.
8908
8909         * valprint.h (val_print_array_elements): Change prototype.
8910         * valprint.c (val_print_array_elements): Add `embedded_offset'
8911         parameter, and adjust to pass it down to val_print, while passing
8912         `valaddr' or `address' unmodified.  Take embedded_offset into
8913         account when checking repetitions.
8914         * c-valprint.c (c_val_print): Pass embedded_offset to
8915         val_print_array_elements instead of adjusting `valaddr' and
8916         `address'.
8917         * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
8918         embedded_offset to val_print_array_elements instead of adjusting
8919         `valaddr'.
8920         * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
8921         * p-valprint.c (pascal_val_print): Pass embedded_offset to
8922         val_print_array_elements and pascal_object_print_value_fields
8923         instead of adjusting `valaddr'.
8924         (pascal_object_print_value_fields): Add `offset' parameter, and
8925         adjust to use it.
8926         (pascal_object_print_value): Add `offset' parameter, and adjust to
8927         use it.
8928         (pascal_object_print_static_field): Use
8929         value_contents_for_printing/value_embedded_offset, rather than
8930         value_contents.
8931         * ada-valprint.c (val_print_packed_array_elements): Add `offset'
8932         parameter, and adjust to use it.  Use
8933         value_contents_for_printing/value_embedded_offset, rather than
8934         value_contents.
8935         (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
8936         (ada_val_print_array): Add `offset' parameter, and adjust to use
8937         it.
8938         (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
8939         `embedded_offset' to `offset'.  Don't re-adjust `valaddr'.
8940         Instead work with offsets.  Use
8941         value_contents_for_printing/value_embedded_offset, rather than
8942         value_contents.  Change `defer_val_int' local type to CORE_ADDR,
8943         and use value_from_pointer to extract a target pointer, rather
8944         than value_from_longest.
8945         (print_variant_part): Add `offset' parameter.  Replace
8946         `outer_valaddr' parameter by a new `outer_offset' parameter.
8947         Don't re-adjust `valaddr'.  Instead pass down adjusted offsets.
8948         (ada_value_print): Use
8949         value_contents_for_printing/value_embedded_offset, rather than
8950         value_contents.
8951         (print_record): Add `offset' parameter, and adjust to pass it
8952         down.
8953         (print_field_values): Add `offset' parameter.  Replace
8954         `outer_valaddr' parameter by a new `outer_offset' parameter.
8955         Don't re-adjust `valaddr'.  Instead pass down adjusted offsets.
8956         Use value_contents_for_printing/value_embedded_offset, rather than
8957         value_contents.
8958         * d-valprint.c (dynamic_array_type): Use
8959         value_contents_for_printing/value_embedded_offset, rather than
8960         value_contents.
8961         * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
8962         Don't re-adjust `valaddr'.  Instead pass down adjusted offsets.
8963         (java_print_value_fields): Take `offset' into account.  Don't
8964         re-adjust `valaddr'.  Instead pass down adjusted offsets.
8965         (java_val_print): Take `embedded_offset' into account.  Pass it to
8966         java_print_value_fields.
8967         * f-valprint.c (f77_print_array_1): Add `embedded_offset'
8968         parameter.  Don't re-adjust `valaddr' or `address'.  Instead pass
8969         down adjusted offsets.
8970         (f77_print_array): Add `embedded_offset' parameter.  Pass it down.
8971         (f_val_print): Take `embedded_offset' into account.
8972
8973 2011-01-21  Joel Brobecker  <brobecker@adacore.com>
8974
8975         * inflow.c: Include "gdbcmd.h".
8976         (interactive_mode): New static global, moved here from top.c.
8977         (show_interactive_mode): New function, moved here from top.c.
8978         use gdb_has_a_terminal instead of input_from_terminal_p to
8979         determine the current mode.
8980         (gdb_has_a_terminal): Add handling of the "iteractive-mode"
8981         setting.
8982         (_initialize_inflow): Add the "set/show interactive-mode"
8983         commands.  Moved here from top.c, after having adjusted slightly
8984         the help text.
8985         * top.c (interactive_mode, show_interactive_mode): Delete, moved
8986         to inflow.c.
8987         (input_from_terminal_p): Remove handling of "interactive-mode"
8988         setting, moved to infow.c.
8989         (init_main): Remove creation of the "set/show interactive-mode"
8990         commands, moved to inflow.c.
8991
8992 2011-01-19  Joel Brobecker  <brobecker@adacore.com>
8993
8994         * NEWS: Add entry for native ia64-hpux support.
8995
8996 2011-01-19  Tom Tromey  <tromey@redhat.com>
8997
8998         PR mi/8618:
8999         * thread.c (free_thread): Free 'name'.
9000         (print_thread_info): Emit thread name.  Change CLI output.
9001         (thread_name_command): New function.
9002         (do_captured_thread_select): Emit newline.
9003         (_initialize_thread): Register 'thread name' command.
9004         * target.h (struct target_ops) <to_thread_name>: New field.
9005         (target_thread_name): New macro.
9006         * target.c (update_current_target): Handle to_thread_name.
9007         * python/py-infthread.c (thpy_get_name): New function.
9008         (thpy_set_name): Likewise.
9009         (thread_object_getset): Add "name".
9010         * linux-nat.c (linux_nat_thread_name): New function.
9011         (linux_nat_add_target): Set to_thread_name.
9012         * gdbthread.h (struct thread_info) <name>: New field.
9013
9014 2011-01-18  Joel Brobecker  <brobecker@adacore.com>
9015
9016         * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
9017         (ada_val_print_1): Likewise.
9018
9019 2011-01-18  Joel Brobecker  <brobecker@adacore.com>
9020
9021         * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
9022         upper limit address is not greater than the function end address
9023         when the upper limit could not be computed using the debugging
9024         info.
9025
9026 2011-01-17  Tom Tromey  <tromey@redhat.com>
9027
9028         * cli/cli-cmds.c (apropos_command): Free the compiled regex.  Use
9029         get_regcomp_error.
9030         * utils.c: Include gdb_regex.h.
9031         (do_regfree_cleanup): New function.
9032         (make_regfree_cleanup): Likewise.
9033         (get_regcomp_error): Likewise.
9034         * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
9035
9036 2011-01-17  Tom Tromey  <tromey@redhat.com>
9037
9038         * cli/cli-cmds.c (apropos_command): Fix formatting.  Don't call
9039         re_compile_fastmap.
9040
9041 2011-01-17  Pierre Muller  <muller@ics.u-strasbg.fr>
9042
9043         * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
9044         for internal variables.
9045         (last_was_structop): New static variable.
9046         (COMPLETE): New token.
9047         (field_exp): New rule to group all '.' suffix handling.
9048         Add mark_struct_expression calls when approriate to be able
9049         to correctly find fields for completion.
9050         (yylex): Adapt to handle field completion and set INTVAR when
9051         required.
9052
9053 2011-01-14  Yao Qi  <yao@codesourcery.com>
9054
9055         * arm-tdep.c (arm_register_reggroup_p): FPS register is in
9056         save_reggroup, restore_reggroup and all_reggroup.
9057
9058 2011-01-14  Joel Brobecker  <brobecker@adacore.com>
9059
9060         * ada-valprint. (ada_printchar): Use the correct type length
9061         in call to ada_emit_char.
9062         * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
9063
9064 2011-01-14  Pierre Muller  <muller@ics.u-strasbg.fr>
9065
9066         * solib-som.h (hpux_major_release): Declare variable here.
9067         * solib-som.c:  Remove <sys/utsname.h> header.
9068         (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
9069         (hpux_major_release): Make global, change default value to
9070         DEFAULT_HPUX_MAJOR_RELEASE.
9071         (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
9072         * hppa-hpux-nat.c: Add <sys/utsname.h> include.
9073         Add "solib-som.h" header.
9074         (set_hpux_major_release): New function.
9075         (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
9076
9077 2011-01-14  Mike Frysinger  <vapier@gentoo.org>
9078
9079         * configure.tgt (*-*-uclinux*): Match more Linux os targets
9080
9081 2011-01-14  Joel Brobecker  <brobecker@adacore.com>
9082
9083         * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
9084         new-line at end of warning message.
9085         (ia64_hpux_store_register): Remove trailing new-line at end of
9086         error message.
9087         * ia64-hpux-tdep.c: Rephrase comment.
9088         * solib-ia64-hpux.c (struct dld_info): Change type of field
9089         dld_flags from "long long" to ULONGEST.
9090
9091 2011-01-14  Pedro Alves  <pedro@codesourcery.com>
9092
9093         * target.h (deprecated_child_ops): Delete declaration.
9094         * target.c (deprecated_child_ops): Delete definition.
9095
9096 2011-01-14  Pedro Alves  <pedro@codesourcery.com>
9097
9098         * Makefile.in (hpux-thread.o): Delete rule.
9099         * configure.ac: Don't check for HPUX DCE threads support.
9100         * configure, config.in: Regenerate.
9101         * hppa-hpux-nat.c (child_suppress_run): Delete.
9102         (hppa_hpux_child_can_run): Delete.
9103         (_initialize_hppa_hpux_nat): Don't override to_can_run.
9104         * hpux-thread.c: Delete.
9105
9106 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
9107
9108         * hpux-thread.c (hpux_pid_to_str): Delete.
9109
9110 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
9111
9112         * ada-valprint.c (ada_emit_char): Remove strange code.
9113         Check that c is <= UCHAR_MAX before passing it to isascii.
9114         (char_at): Do not assume that TYPE_LEN is either 1 or 2.
9115
9116 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
9117
9118         * top.c (input_from_terminal_p): Restrict the use of interactive_mode
9119         to the case where instream is stdin.
9120
9121 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
9122
9123         * ia64-tdep.h (struct regcache): Forward declare.
9124         (struct ia64_infcall_ops): New struct type.
9125         (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
9126         and "infcall_ops".
9127         * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
9128         Renames ia64_find_global_pointer.
9129         (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
9130         (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
9131         (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
9132         methods.
9133         (ia64_infcall_ops): New static global constant.
9134         (ia64_gdbarch_init): Set tdep->infcall_ops.
9135         * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
9136         (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
9137         * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
9138         (ia64_hpux_dummy_code): New static global constant.
9139         (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
9140         (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
9141         (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
9142         New function.
9143         (ia64_hpux_infcall_ops): New static global constant.
9144         (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
9145         for inferior function calls to work properly on ia64-hpux.
9146
9147 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
9148
9149         * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
9150         * ia64-tdep.h (struct frame_info): forward declaration.
9151         (struct gdbarch_tdep): Add field size_of_register_frame.
9152         * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
9153         to determine the size of the register frame.
9154         (ia64_size_of_register_frame): New function.
9155         (ia64_gdbarch_init): Set tdep->size_of_register_frame.
9156         * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
9157         (IA64_HPUX_UREG_REASON): New macro.
9158         (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
9159         New functions.
9160         (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
9161         * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
9162         (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
9163         objects.
9164
9165 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
9166
9167         Add support for ia64-hpux.
9168         * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
9169         ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
9170
9171         * configure.host: Add handling for ia64-hpux hosts.  Add associated
9172         floatformats.
9173         * configure.tgt: Add handling for ia64-hpux targets.
9174         * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
9175         (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
9176         (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
9177
9178 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
9179
9180         [ttrace] Compute thread list immediately after attach.
9181         * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
9182         New subprogram.
9183         (inf_ttrace_attach): Use it.
9184
9185 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
9186
9187         * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
9188         if we could not determine the frame's function address.  Instead,
9189         use the frame's PC, and then continue.
9190
9191 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
9192
9193         * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
9194         not already defined.
9195
9196 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
9197
9198         * ia64-tdep.c (ia64_struct_type_p): New function.
9199         (ia64_extract_return_value): Handle integral values that are
9200         less than 8 bytes long.
9201         (ia64_push_dummy_call): Likewise.
9202
9203 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
9204
9205         * ia64-tdep.c (floatformat_ia64_ext_little): Renames
9206         floatformat_ia64_ext.
9207         (floatformat_ia64_ext_big): New static const.
9208         (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
9209
9210 2011-01-12  Tom Tromey  <tromey@redhat.com>
9211
9212         * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
9213         messages.
9214         * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
9215         (mi_cmd_thread_list_ids): Likewise.
9216         (mi_cmd_data_list_changed_registers): Likewise.
9217         (mi_cmd_data_list_register_values): Likewise.
9218         (mi_cmd_data_write_register_values): Likewise.
9219         (mi_cmd_data_evaluate_expression): Likewise.
9220         (mi_cmd_data_read_memory): Likewise.
9221         (mi_cmd_data_read_memory_bytes): Likewise.
9222         (mi_cmd_data_write_memory): Likewise.
9223         (mi_cmd_enable_timings): Likewise.
9224         * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
9225         * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
9226         (mi_cmd_var_delete): Likewise.
9227         (mi_cmd_var_set_format): Likewise.
9228         (mi_cmd_var_show_format): Likewise.
9229         (mi_cmd_var_info_num_children): Likewise.
9230         (mi_cmd_var_list_children): Likewise.
9231         (mi_cmd_var_info_type): Likewise.
9232         (mi_cmd_var_info_expression): Likewise.
9233         (mi_cmd_var_show_attributes): Likewise.
9234         (mi_cmd_var_assign): Likewise.
9235         (mi_cmd_var_update): Likewise.
9236         (mi_cmd_enable_pretty_printing): Likewise.
9237         (mi_cmd_var_set_update_range): Likewise.
9238         * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
9239         messages.
9240         (mi_cmd_target_file_put): Likewise.
9241         (mi_cmd_target_file_delete): Likewise.
9242         * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
9243         messages.
9244         (mi_cmd_stack_info_depth): Likewise.
9245         (mi_cmd_stack_list_locals): Likewise.
9246         (mi_cmd_stack_list_args): Likewise.
9247         (mi_cmd_stack_select_frame): Likewise.
9248         (mi_cmd_stack_select_frame): Likewise.
9249         (mi_cmd_stack_info_frame): Likewise.
9250         * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
9251         messages.
9252         (mi_cmd_file_list_exec_source_files): Likewise.
9253         * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
9254         (mi_cmd_env_cd): Likewise.
9255         (mi_cmd_env_path): Likewise.
9256         (mi_cmd_env_dir): Likewise.
9257         (mi_cmd_inferior_tty_show): Likewise.
9258         * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
9259         * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
9260         (mi_cmd_break_watch): Likewise.
9261
9262 2011-01-12  Thiago Jung Bauermann  <bauerman@br.ibm.com>
9263
9264         * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
9265         (ppc_linux_insert_hw_breakpoint): Likewise.
9266         (ppc_linux_remove_hw_breakpoint): Likewise.
9267         (ppc_linux_insert_watchpoint): Likewise.
9268
9269 2011-01-12  Andrew Burgess  <aburgess@broadcom.com>
9270             Jan Kratochvil  <jan.kratochvil@redhat.com>
9271
9272         PR fortran/11104 and DWARF unbound arrays detection.
9273         * dwarf2read.c (read_subrange_type): Set zero length on unspecified
9274         upper bound.  Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
9275         unspecified upper bound.
9276         * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
9277         variables array_size_array, tmp_type and offset_item.  New variable
9278         array.  Remove call to f77_get_upperbound.  New variables array_type
9279         and index.  Call value_subscripted_rvalue for each dimenasion.  Remove
9280         the final call to deprecated_set_value_type.
9281
9282 2011-01-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
9283
9284         Make value allocations more lazy.
9285         * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
9286         instead of allocate_value and set_value_lazy when possible.
9287         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
9288         instead of allocate_value and set_value_lazy.
9289         * findvar.c (value_of_register_lazy): Likewise.
9290         (read_var_value): Remove V preallocation, call just check_typedef in
9291         advance.  Move allocate_value to LOC_CONST, LOC_LABEL,
9292         LOC_CONST_BYTES.  Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
9293         LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK.  Set ADDR instead of
9294         set_value_address and break in LOC_BLOCK.  Use allocate_value_lazy and
9295         remove lval_memory set in LOC_REGPARM_ADDR.  Use allocate_value_lazy
9296         in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT.  Add setting lval_memory at
9297         the end, remove set_value_lazy there.
9298         * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
9299         instead of allocate_value and set_value_lazy when possible.
9300         * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
9301         * value.c (allocate_computed_value): Use allocate_value_lazy instead
9302         of allocate_value and set_value_lazy.
9303         (value_from_contents_and_address): Use allocate_value_lazy instead of
9304         allocate_value and set_value_lazy when possible.
9305
9306 2011-01-12  Andrew Burgess  <aburgess@broadcom.com>
9307
9308         * disasm.c (dump_insns): Support dumping opcodes for MI.
9309         * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
9310         dumping of instruction opcodes.
9311
9312 2011-01-09  Robert Millan  <rmh@gnu.org>  (tiny patch)
9313
9314         * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
9315         appropiately.
9316
9317 2011-01-11  Tom Tromey  <tromey@redhat.com>
9318
9319         * thread.c (do_captured_thread_select): Emit newline before
9320         printing frame.
9321
9322 2011-01-11  Michael Snyder  <msnyder@vmware.com>
9323
9324         * s390-tdep.c: Comment cleanup, mostly periods and spaces.
9325         * score-tdep.c: Ditto.
9326         * score-tdep.h: Ditto.
9327         * ser-base.c: Ditto.
9328         * ser-go32.c: Ditto.
9329         * serial.c: Ditto.
9330         * serial.h: Ditto.
9331         * ser-mingw.c: Ditto.
9332         * ser-pipe.c: Ditto.
9333         * ser-tcp.c: Ditto.
9334         * ser-unix.c: Ditto.
9335         * sh64-tdep.c: Ditto.
9336         * shnbsd-nat.c: Ditto.
9337         * sh-tdep.c: Ditto.
9338         * sh-tdep.h: Ditto.
9339         * solib.c: Ditto.
9340         * solib-darwin.c: Ditto.
9341         * solib-frv.c: Ditto.
9342         * solib.h: Ditto.
9343         * solib-irix.c: Ditto.
9344         * solib-osf.c: Ditto.
9345         * solib-pa64.c: Ditto.
9346         * solib-som.c: Ditto.
9347         * solib-spu.c: Ditto.
9348         * solib-sunos.c: Ditto.
9349         * solib-svr4.c: Ditto.
9350         * solist.h: Ditto.
9351         * sol-thread.c: Ditto.
9352         * somread.c: Ditto.
9353         * source.c: Ditto.
9354         * source.h: Ditto.
9355         * sparc64-linux-tdep.c: Ditto.
9356         * sparc64-tdep.c: Ditto.
9357         * sparc-linux-nat.c: Ditto.
9358         * sparc-linux-tdep.c: Ditto.
9359         * sparc-sol2-nat.c: Ditto.
9360         * sparc-sol2-tdep.c: Ditto.
9361         * sparc-tdep.c: Ditto.
9362         * sparc-tdep.h: Ditto.
9363         * spu-tdep.c: Ditto.
9364         * stabsread.c: Ditto.
9365         * stabsread.h: Ditto.
9366         * stack.c: Ditto.
9367         * symfile.c: Ditto.
9368         * symfile.h: Ditto.
9369         * symmisc.c: Ditto.
9370         * symtab.c: Ditto.
9371         * symtab.h: Ditto.
9372         * target.c: Ditto.
9373         * target-descriptions.c: Ditto.
9374         * target-descriptions.h: Ditto.
9375         * target.h: Ditto.
9376         * target-memory.c: Ditto.
9377         * terminal.h: Ditto.
9378         * thread.c: Ditto.
9379         * top.c: Ditto.
9380         * tracepoint.c: Ditto.
9381         * tracepoint.h: Ditto.
9382         * trad-frame.h: Ditto.
9383         * typeprint.c: Ditto.
9384
9385 2011-01-11  Michael Snyder  <msnyder@vmware.com>
9386
9387         * ui-file.c: Comment cleanup, mostly periods and spaces.
9388         * ui-file.h: Ditto.
9389         * ui-out.c: Ditto.
9390         * ui-out.h: Ditto.
9391         * utils.c: Ditto.
9392         * v850-tdep.c: Ditto.
9393         * valarith.c: Ditto.
9394         * valops.c: Ditto.
9395         * valprint.c: Ditto.
9396         * valprint.h: Ditto.
9397         * value.c: Ditto.
9398         * value.h: Ditto.
9399         * varobj.c: Ditto.
9400         * varobj.h: Ditto.
9401         * vax-tdep.c: Ditto.
9402         * vec.c: Ditto.
9403         * vec.h: Ditto.
9404         * version.h: Ditto.
9405         * windows-nat.c: Ditto.
9406         * windows-tdep.c: Ditto.
9407         * xcoffread.c: Ditto.
9408         * xcoffsolib.c: Ditto.
9409         * xml-support.c: Ditto.
9410         * xstormy16-tdep.c: Ditto.
9411         * xtensa-tdep.c: Ditto.
9412         * xtensa-tdep.h: Ditto.
9413
9414 2011-01-11  Thiago Jung Bauermann  <bauerman@br.ibm.com>
9415
9416         * breakpoint.c (resources_needed_watchpoint): Fix indentation.
9417         * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
9418
9419 2011-01-11  Sergio Durigan Junior  <sergiodj@linux.vnet.ibm.com>
9420             Thiago Jung Bauermann  <bauerman@br.ibm.com>
9421
9422         Implement support for PowerPC BookE ranged watchpoints.
9423         * breakpoint.h
9424         (struct breakpoint_ops) <resources_needed>: New method.
9425         Initialize to NULL in all existing breakpoint_ops instances.
9426         (struct breakpoint) <exact>: New field.
9427         (target_exact_watchpoints): Declare external global.
9428         * breakpoint.c (target_exact_watchpoints): New global flag.
9429         (update_watchpoint): Set b->type to bp_hardware_watchpoint and
9430         b->enable_state to bp_enabled before calling
9431         hw_watchpoint_used_count.
9432         (hw_watchpoint_used_count): Iterate over all bp_locations in a
9433         watchpoint.  Call breakpoint's breakpoint_ops.resources_needed
9434         if available.
9435         (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
9436         if the watchpoint is exact.
9437         (resources_needed_watchpoint): New function.
9438         (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
9439         (watch_command_1): Set b->exact if the user asked for an exact
9440         watchpoint and one can be set.
9441         (can_use_hardware_watchpoint): Add exact_watchpoints argument.
9442         Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
9443         the user asks for an exact watchpoint and one can be set.  Return
9444         number of needed debug registers to watch the expression.
9445         * gdbtypes.c (is_scalar_type): New function, based on
9446         valprint.c:scalar_type_p.
9447         (is_scalar_type_recursive): New function.
9448         * gdbtypes.h (is_scalar_type_recursive): Declare.
9449         * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
9450         handle regions when ranged watchpoints are available.
9451         (create_watchpoint_request): New function.
9452         (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
9453         create_watchpoint_request.
9454         * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
9455         (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
9456         `set powerpc' and `show powerpc' commands.
9457         * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9458         Mention documentation comment in the target macro.
9459         (target_region_ok_for_hw_watchpoint): Document return value.
9460
9461 2011-01-11  Thiago Jung Bauermann  <bauerman@br.ibm.com>
9462
9463         * breakpoint.c (update_watchpoint): Decide on using a software or
9464         hardware watchpoint after the bp_locations are created.
9465
9466 2010-01-11  Thiago Jung Bauermann  <bauerman@br.ibm.com>
9467
9468         Convert hardware watchpoints to use breakpoint_ops.
9469         * breakpoint.h (breakpoint_ops) <insert>: Rename to...
9470         <insert_location>: ... this.  Return int instead of void.
9471         Accept pointer to struct bp_location instead of pointer to
9472         struct breakpoint.  Adapt all implementations.
9473         (breakpoint_ops) <remove>: Rename to...
9474         <remove_location>: ... this.  Accept pointer to struct bp_location
9475         instead of pointer to struct breakpoint.  Adapt all implementations.
9476         * breakpoint.c (insert_catchpoint): Delete function.
9477         (insert_bp_location): Call the watchpoint or catchpoint's
9478         breakpoint_ops.insert method.
9479         (remove_breakpoint_1): Call the watchpoint or catchpoint's
9480         breakpoint_ops.remove method.
9481         (insert_watchpoint, remove_watchpoint): New functions.
9482         (watchpoint_breakpoint_ops): New structure.
9483         (watch_command_1): Initialize the OPS field.
9484         * inf-child.c (inf_child_insert_fork_catchpoint)
9485         (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
9486         (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
9487         (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
9488         Delete functions.
9489         (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
9490         to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
9491         to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
9492         to_remove_exec_catchpoint and to_set_syscall_catchpoint.
9493         * target.c (update_current_target): Change default implementation of
9494         to_insert_fork_catchpoint, to_remove_fork_catchpoint,
9495         to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
9496         to_insert_exec_catchpoint, to_remove_exec_catchpoint and
9497         to_set_syscall_catchpoint to return_one.
9498         (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
9499         (debug_to_insert_exec_catchpoint): Report return value.
9500         * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
9501         (to_insert_exec_catchpoint): Change declaration to return int instead
9502         of void.
9503
9504 2011-01-11  Michael Snyder  <msnyder@vmware.com>
9505
9506         * arm-tdep.c: Internationalization.
9507         * c-lang.c: Ditto.
9508         * charset.c: Ditto.
9509         * fork-child.c: Ditto.
9510         * nto-procfs.c: Ditto.
9511         * ppc-sysv-tdep.c: Ditto.
9512         * procfs.c: Ditto.
9513         * remote-mips.c: Ditto.
9514         * remote.c: Ditto.
9515         * rs6000-nat.c: Ditto.
9516         * rs6000-tdep.c: Ditto.
9517         * target.c: Ditto.
9518         * valops.c: Ditto.
9519         * value.c: Ditto.
9520         * xml-support.c: Ditto.
9521         * mi/mi-cmd-break.c: Ditto.
9522         * mi/mi-cmd-var.c: Ditto.
9523         * mi/mi-interp.c: Ditto.
9524         * mi/mi-main.c: Ditto.
9525
9526 2011-01-11  Andrew Burgess  <aburgess@broadcom.com>
9527
9528         * remote-sim.c (gdbsim_store_register): Update API to
9529         sim_store_register to check more error conditions.
9530
9531 2011-01-10  Michael Snyder  <msnyder@vmware.com>
9532
9533         * nto-procfs.c: Comment cleanup, mostly periods and spaces.
9534         * nto-tdep.c: Ditto.
9535         * nto-tdep.h: Ditto.
9536         * objc-exp.y: Ditto.
9537         * objc-lang.c: Ditto.
9538         * objfiles.c: Ditto.
9539         * objfiles.h: Ditto.
9540         * observer.c: Ditto.
9541         * opencl-lang.c: Ditto.
9542         * osabi.c: Ditto.
9543         * parse.c: Ditto.
9544         * parser-defs.h: Ditto.
9545         * p-exp.y: Ditto.
9546         * p-lang.c: Ditto.
9547         * posix-hdep.c: Ditto.
9548         * ppcbug-rom.c: Ditto.
9549         * ppc-linux-nat.c: Ditto.
9550         * ppc-linux-tdep.c: Ditto.
9551         * ppc-linux-tdep.h: Ditto.
9552         * ppcnbsd-tdep.c: Ditto.
9553         * ppcobsd-tdep.c: Ditto.
9554         * ppcobsd-tdep.h: Ditto.
9555         * ppc-sysv-tdep.c: Ditto.
9556         * ppc-tdep.h: Ditto.
9557         * printcmd.c: Ditto.
9558         * proc-abi.c: Ditto.
9559         * proc-flags.c: Ditto.
9560         * procfs.c: Ditto.
9561         * proc-utils.h: Ditto.
9562         * progspace.h: Ditto.
9563         * prologue-value.c: Ditto.
9564         * prologue-value.h: Ditto.
9565         * psympriv.h: Ditto.
9566         * psymtab.c: Ditto.
9567         * p-typeprint.c: Ditto.
9568         * p-valprint.c: Ditto.
9569         * ravenscar-sparc-thread.c: Ditto.
9570         * ravenscar-thread.c: Ditto.
9571         * ravenscar-thread.h: Ditto.
9572         * record.c: Ditto.
9573         * regcache.c: Ditto.
9574         * regcache.h: Ditto.
9575         * remote.c: Ditto.
9576         * remote-fileio.c: Ditto.
9577         * remote-fileio.h: Ditto.
9578         * remote.h: Ditto.
9579         * remote-m32r-sdi.c: Ditto.
9580         * remote-mips.c: Ditto.
9581         * remote-sim.c: Ditto.
9582         * rs6000-aix-tdep.c: Ditto.
9583         * rs6000-nat.c: Ditto.
9584         * rs6000-tdep.c: Ditto.
9585
9586 2011-01-10  Michael Snyder  <msnyder@vmware.com>
9587
9588         * charset.c (validate): Internationalization.
9589         * coffread.c (read_one_sym): Ditto.
9590         * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
9591         * h8300-tdep.c (H8300_extract_return_value): Ditto.
9592         * inflow.c (new_tty): Ditto.
9593         * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
9594         * m32c-tdep.c (m32c_return_value): Ditto.
9595         * mep-tdep.c (mep_store_return_value): Ditto.
9596         * score-tdep.c (score7_fetch_insn): Ditto.
9597         * ser-mingw.c (pipe_windows_open): Ditto.
9598         * sh64-tdep.c (sh64_extract_return_value): Ditto.
9599         * spu-tdep.c (spu_register_type): Ditto.
9600         * tracepoint.c (trace_find_command): Ditto.
9601         * valarith.c (value_pos): Ditto.
9602
9603 2011-01-10  Joel Brobecker  <brobecker@adacore.com>
9604
9605         * ada-valprint.c (printstr): Minor comment reformatting.
9606
9607 2011-01-08  Michael Snyder  <msnyder@vmware.com>
9608
9609         * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
9610         markup.
9611
9612 2011-01-08  Michael Snyder  <msnyder@vmware.com>
9613
9614         * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
9615         * hppa-hpux-tdep.c: Ditto.
9616         * hppa-linux-nat.c: Ditto.
9617         * hppa-linux-tdep.c: Ditto.
9618         * hppanbsd-tdep.c: Ditto.
9619         * hppa-tdep.c: Ditto.
9620         * hppa-tdep.h: Ditto.
9621         * hpux-thread.c: Ditto.
9622         * i386-cygwin-tdep.c: Ditto.
9623         * i386-darwin-nat.c: Ditto.
9624         * i386gnu-nat.c: Ditto.
9625         * i386-linux-nat.c: Ditto.
9626         * i386-linux-tdep.c: Ditto.
9627         * i386-nat.c: Ditto.
9628         * i386-nat.h: Ditto.
9629         * i386nbsd-tdep.c: Ditto.
9630         * i386-sol2-nat.c: Ditto.
9631         * i386-stub.c: Ditto.
9632         * i386-tdep.c: Ditto.
9633         * i386-tdep.h: Ditto.
9634         * i387-tdep.c: Ditto.
9635         * ia64-linux-nat.c: Ditto.
9636         * ia64-linux-tdep.c: Ditto.
9637         * ia64-tdep.c: Ditto.
9638         * infcall.c: Ditto.
9639         * infcall.h: Ditto.
9640         * infcmd.c: Ditto.
9641         * inferior.c: Ditto.
9642         * inferior.h: Ditto.
9643         * infloop.c: Ditto.
9644         * inflow.c: Ditto.
9645         * infrun.c: Ditto.
9646         * interps.c: Ditto.
9647         * interps.h: Ditto.
9648         * iq2000-tdep.c: Ditto.
9649         * irix5-nat.c: Ditto.
9650         * jit.c: Ditto.
9651         * jit.h: Ditto.
9652         * jv-exp.y: Ditto.
9653         * jv-lang.c: Ditto.
9654         * jv-lang.h: Ditto.
9655         * jv-typeprint.c: Ditto.
9656         * jv-valprint.c: Ditto.
9657         * language.c: Ditto.
9658         * language.h: Ditto.
9659         * linespec.c: Ditto.
9660         * linux-fork.c: Ditto.
9661         * linux-nat.c: Ditto.
9662         * linux-thread-db.c: Ditto.
9663         * lm32-tdep.c: Ditto.
9664
9665 2011-01-08  Michael Snyder  <msnyder@vmware.com>
9666
9667         * m2-exp.y: Comment cleanup, mostly periods and spaces.
9668         * m2-lang.c: Ditto.
9669         * m2-typeprint.c: Ditto.
9670         * m2-valprint.c: Ditto.
9671         * m32c-tdep.c: Ditto.
9672         * m32r-linux-nat.c: Ditto.
9673         * m32r-rom.c: Ditto.
9674         * m32r-tdep.c: Ditto.
9675         * m32r-tdep.h: Ditto.
9676         * m68hc11-tdep.c: Ditto.
9677         * m58klinux-nat.c: Ditto.
9678         * m68k-tdep.c: Ditto.
9679         * m88k-tdep.c: Ditto.
9680         * m88k-tdep.h: Ditto.
9681         * machoread.c: Ditto.
9682         * macrocmd.c: Ditto.
9683         * macroexp.c: Ditto.
9684         * macrotab.c: Ditto.
9685         * main.c: Ditto.
9686         * maint.c: Ditto.
9687         * mdebugread.c: Ditto.
9688         * mdebugread.h: Ditto.
9689         * memattr.c: Ditto.
9690         * memattr.h: Ditto.
9691         * memory-map.h: Ditto.
9692         * mep-tdep.c: Ditto.
9693         * microblaze-rom.c: Ditto.
9694         * microblaze-tdep.c: Ditto.
9695         * minsyms.c: Ditto.
9696         * mips-irix-tdep.c: Ditto.
9697         * mips-linux-nat.c: Ditto.
9698         * mips-linux-tdep.c: Ditto.
9699         * mips-linux-tdep.h: Ditto.
9700         * mipsnbsd-nat.c: Ditto.
9701         * mipsnbsd-tdep.c: Ditto.
9702         * mipsread.c: Ditto.
9703         * mips-tdep.c: Ditto.
9704         * mips-tdep.h: Ditto.
9705         * mn10300-linux-tdep.c: Ditto.
9706         * mn10300-tdep.c: Ditto.
9707         * mn10300-tdep.h: Ditto.
9708         * monitor.c: Ditto.
9709         * monitor.h: Ditto.
9710         * moxie-tdep.c: Ditto.
9711         * moxie-tdep.h: Ditto.
9712         * mt-tdep.c: Ditto.
9713
9714 2011-01-08  Mike Frysinger  <vapier@gentoo.org>
9715
9716         * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
9717
9718 2011-01-08  Robert Millan  <rmh@gnu.org>
9719
9720         * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
9721
9722 2011-01-07  Michael Snyder  <msnyder@vmware.com>
9723
9724         * charset.c (_initialize_charset): Fix typo in string.
9725
9726 2011-01-07  Michael Snyder  <msnyder@vmware.com>
9727
9728         * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
9729         for i18n.
9730         * tui/tui-layout.c (tui_set_layout_for_display_command):
9731         Split line so that operator goes to beginning of line.
9732         * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
9733         assignment out of if statement.
9734
9735 2011-01-07  Michael Snyder  <msnyder@vmware.com>
9736
9737         * ada-lang.c: Comment cleanup, mostly periods and spaces.
9738         * ada-lang.h: Ditto.
9739         * ada-tasks.c: Ditto.
9740         * ada-valprint.c: Ditto.
9741         * aix-threads.c: Ditto.
9742         * alpha-linux-nat.c: Ditto.
9743         * alpha-linux-tdep.c: Ditto.
9744         * alpha-mdebug-tdep.c: Ditto.
9745         * alpha-nat.c: Ditto.
9746         * alpha-osf1-tdep.c: Ditto.
9747         * alpha-tdep.c: Ditto.
9748         * alphabsd-nat.c: Ditto.
9749         * alphabsd-tdep.c: Ditto.
9750         * amd64-darwin-tdep.c: Ditto.
9751         * amd64-linux-nat.c: Ditto.
9752         * amd64-linux-tdep.c: Ditto.
9753         * amd64-sol2-tdep.c: Ditto.
9754         * amd64-tdep.c: Ditto.
9755         * amd64-fbsd-tdep.c: Ditto.
9756         * amd64-nbsd-tdep.c: Ditto.
9757         * amd64-obsd-tdep.c: Ditto.
9758         * amd64-linux-nat.c: Ditto.
9759         * amd64-linux-tdep.c: Ditto.
9760         * arm-tdep.c: Ditto.
9761         * arm-tdep.h: Ditto.
9762         * armnbsd-nat.c: Ditto.
9763         * avr-tdep.c: Ditto.
9764         * bfin-tdep.c: Ditto.
9765         * bsd-kvm.c: Ditto.
9766         * c-typeprintc: Ditto.
9767         * c-valprint.c: Ditto.
9768         * coff-pe-read.h: Ditto.
9769         * coffreead.c: Ditto.
9770         * cris-tdep.c: Ditto.
9771         * d-lang.c: Ditto.
9772         * darwin-nat-info.c: Ditto.
9773         * darwin-nat.c: Ditto.
9774         * dbug-rom.c: Ditto.
9775         * dbxread.c: Ditto.
9776         * dcache.c: Ditto.
9777         * dcache.h: Ditto.
9778         * dec-thread.c: Ditto.
9779         * defs.h: Ditto.
9780         * demangle.c: Ditto.
9781         * dicos-tdep.c: Ditto.
9782         * dictionary.c: Ditto.
9783         * dictionary.h: Ditto.
9784         * dink32-rom.c: Ditto.
9785         * disasm.c: Ditto.
9786         * doublest.c: Ditto.
9787         * dsrec.c: Ditto.
9788         * dummy-frame.c: Ditto.
9789         * dwarf2-frame.c: Ditto.
9790         * dwarf2expr.c: Ditto.
9791         * dwarf2loc.c: Ditto.
9792         * dwarf2read.c: Ditto.
9793         * elfread.c: Ditto.
9794         * environ.c: Ditto.
9795         * eval.c: Ditto.
9796         * event-top.h: Ditto.
9797         * exceptions.c: Ditto.
9798         * exceptions.h: Ditto.
9799         * exec.c: Ditto.
9800         * expprint.c: Ditto.
9801         * expression.h: Ditto.
9802         * f-exp.y: Ditto.
9803         * f-lang.c: Ditto.
9804         * f-lang.h: Ditto.
9805         * f-typeprint.c: Ditto.
9806         * f-valprint.c: Ditto.
9807         * fbsd-nat.c: Ditto.
9808         * findvar.c: Ditto.
9809         * fork-child.c: Ditto.
9810         * frame.c: Ditto.
9811         * frame.h: Ditto.
9812         * frv-linux-tdep.c: Ditto.
9813         * frv-tdep.c: Ditto.
9814         * gcore.c: Ditto.
9815         * gdb-stabs.h: Ditto.
9816         * gdb_assert.h: Ditto.
9817         * gdb_string.h: Ditto.
9818         * gdb_thread_db.h: Ditto.
9819         * gdb_wait.h: Ditto.
9820         * gdbarch.sh: Ditto.
9821         * gdbcore.h: Ditto.
9822         * gdbthread.h: Ditto.
9823         * gdbtypes.c: Ditto.
9824         * gdbtypes.h: Ditto.
9825         * gnu-nat.c: Ditto.
9826         * gnu-nat.h: Ditto.
9827         * gnu-v2-abi.c: Ditto.
9828         * gnu-v3-abi.c: Ditto.
9829         * go32-nat.c: Ditto.
9830         * gdbarch.c: Regenerate.
9831         * gdbarch.h: Regenerate.
9832
9833 2011-01-07  Michael Snyder  <msnyder@vmware.com>
9834
9835         * ax-gdb.c: Adjust some long output strings.
9836         * breakpoint.c: Ditto.
9837         * charset.c: Ditto.
9838         * cp-abi.c: Ditto.
9839         * infcall.c: Ditto.
9840         * infrun.c: Ditto.
9841         * linux-nat.c: Ditto.
9842         * solib-pa64.c: Ditto.
9843         * solib-som.c: Ditto.
9844
9845 2011-01-06  Tom Tromey  <tromey@redhat.com>
9846
9847         PR python/12367:
9848         * NEWS: Add item.
9849         * python/python.c (GdbMethods): Add "newest_frame" method.
9850         * python/python-internal.h (gdbpy_newest_frame): Declare.
9851         * python/py-frame.c (gdbpy_newest_frame): New function.
9852
9853 2010-01-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
9854
9855         * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
9856         * jit.c (jit_debug): New variable.
9857         (show_jit_debug): New function.
9858         (struct target_buffer): Use ULONGEST.
9859         (bfd_open_from_target_memory): Likewise.
9860         (jit_register_code, jit_inferior_init): Add debug output.
9861         (_initialize_jit): Register "debug jit" command.
9862
9863 2011-01-06  Tom Tromey  <tromey@redhat.com>
9864
9865         * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
9866         * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
9867         and ARCH_FRAME.
9868
9869 2011-01-06  Tom Tromey  <tromey@redhat.com>
9870
9871         * python/py-frame.c (frapy_block): Use get_frame_block.
9872
9873 2011-01-06  Joel Brobecker  <brobecker@adacore.com>
9874
9875         Do not stop on SIGPRIO signals by default
9876         * infrun.c (_initialize_infrun): Unset signal_stop and
9877         signal_print for TARGET_SIGNAL_PRIO.
9878
9879 2011-01-06  Joel Brobecker  <brobecker@adacore.com>
9880
9881         * ada-tasks.c: Fix style violation in comment.
9882
9883 2011-01-06  Joel Brobecker  <brobecker@adacore.com>
9884
9885         * linespec.c (decode_compound, find_method): Remove trailing \n
9886         at end of error string.
9887         * solib-irix.c (irix_current_sos): Likewise.
9888         * varobj.c (uninstall_variable): Likewise.
9889
9890 2011-01-06  Joel Brobecker  <brobecker@adacore.com>
9891
9892         * copyright.py: New script.
9893         * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
9894         Launch emacs without exec'ing. Call copyright.py afterwards.
9895
9896 2011-01-05  Michael Snyder  <msnyder@vmware.com>
9897
9898         * addrmap.c: Shorten lines of >= 80 columns.
9899         * arch-utils.c: Ditto.
9900         * arch-utils.h: Ditto.
9901         * ax-gdb.c: Ditto.
9902         * ax-general.c: Ditto.
9903         * bcache.c: Ditto.
9904         * blockframe.c: Ditto.
9905         * breakpoint.c: Ditto.
9906         * buildsym.c: Ditto.
9907         * c-lang.c: Ditto.
9908         * c-typeprint.c: Ditto.
9909         * charset.c: Ditto.
9910         * coffread.c: Ditto.
9911         * command.h: Ditto.
9912         * corelow.c: Ditto.
9913         * cp-abi.c: Ditto.
9914         * cp-namespace.c: Ditto.
9915         * cp-support.c: Ditto.
9916         * dbug-rom.c: Ditto.
9917         * dbxread.c: Ditto.
9918         * defs.h: Ditto.
9919         * dfp.c: Ditto.
9920         * dfp.h: Ditto.
9921         * dictionary.c: Ditto.
9922         * disasm.c: Ditto.
9923         * doublest.c: Ditto.
9924         * dwarf2-frame.c: Ditto.
9925         * dwarf2expr.c: Ditto.
9926         * dwarf2loc.c: Ditto.
9927         * dwarf2read.c: Ditto.
9928         * elfread.c: Ditto.
9929         * eval.c: Ditto.
9930         * event-loop.c: Ditto.
9931         * event-loop.h: Ditto.
9932         * exceptions.h: Ditto.
9933         * exec.c: Ditto.
9934         * expprint.c: Ditto.
9935         * expression.h: Ditto.
9936         * f-lang.c: Ditto.
9937         * f-valprint.c: Ditto.
9938         * findcmd.c: Ditto.
9939         * frame-base.c: Ditto.
9940         * frame-unwind.c: Ditto.
9941         * frame-unwind.h: Ditto.
9942         * frame.c: Ditto.
9943         * frame.h: Ditto.
9944         * gcore.c: Ditto.
9945         * gdb-stabs.h: Ditto.
9946         * gdb_assert.h: Ditto.
9947         * gdb_dirent.h: Ditto.
9948         * gdb_obstack.h: Ditto.
9949         * gdbcore.h: Ditto.
9950         * gdbtypes.c: Ditto.
9951         * gdbtypes.h: Ditto.
9952         * inf-ttrace.c: Ditto.
9953         * infcall.c: Ditto.
9954         * infcmd.c: Ditto.
9955         * inflow.c: Ditto.
9956         * infrun.c: Ditto.
9957         * inline-frame.h: Ditto.
9958         * language.c: Ditto.
9959         * language.h: Ditto.
9960         * libunwind-frame.c: Ditto.
9961         * libunwind-frame.h: Ditto.
9962         * linespec.c: Ditto.
9963         * linux-nat.c: Ditto.
9964         * linux-nat.h: Ditto.
9965         * linux-thread-db.c: Ditto.
9966         * machoread.c: Ditto.
9967         * macroexp.c: Ditto.
9968         * macrotab.c: Ditto.
9969         * main.c: Ditto.
9970         * maint.c: Ditto.
9971         * mdebugread.c: Ditto.
9972         * memattr.c: Ditto.
9973         * minsyms.c: Ditto.
9974         * monitor.c: Ditto.
9975         * monitor.h: Ditto.
9976         * objfiles.c: Ditto.
9977         * objfiles.h: Ditto.
9978         * osabi.c: Ditto.
9979         * p-typeprint.c: Ditto.
9980         * p-valprint.c: Ditto.
9981         * parse.c: Ditto.
9982         * printcmd.c: Ditto.
9983         * proc-events.c: Ditto.
9984         * procfs.c: Ditto.
9985         * progspace.c: Ditto.
9986         * progspace.h: Ditto.
9987         * psympriv.h: Ditto.
9988         * psymtab.c: Ditto.
9989         * record.c: Ditto.
9990         * regcache.c: Ditto.
9991         * regcache.h: Ditto.
9992         * remote-fileio.c: Ditto.
9993         * remote.c: Ditto.
9994         * ser-mingw.c: Ditto.
9995         * ser-tcp.c: Ditto.
9996         * ser-unix.c: Ditto.
9997         * serial.c: Ditto.
9998         * serial.h: Ditto.
9999         * solib-frv.c: Ditto.
10000         * solib-irix.c: Ditto.
10001         * solib-osf.c: Ditto.
10002         * solib-pa64.c: Ditto.
10003         * solib-som.c: Ditto.
10004         * solib-sunos.c: Ditto.
10005         * solib-svr4.c: Ditto.
10006         * solib-target.c: Ditto.
10007         * solib.c: Ditto.
10008         * somread.c: Ditto.
10009         * source.c: Ditto.
10010         * stabsread.c: Ditto.
10011         * stabsread.c: Ditto.
10012         * stack.c: Ditto.
10013         * stack.h: Ditto.
10014         * symfile-mem.c: Ditto.
10015         * symfile.c: Ditto.
10016         * symfile.h: Ditto.
10017         * symmisc.c: Ditto.
10018         * symtab.c: Ditto.
10019         * symtab.h: Ditto.
10020         * target-descriptions.c: Ditto.
10021         * target-memory.c: Ditto.
10022         * target.c: Ditto.
10023         * target.h: Ditto.
10024         * terminal.h: Ditto.
10025         * thread.c: Ditto.
10026         * top.c: Ditto.
10027         * tracepoint.c: Ditto.
10028         * tracepoint.h: Ditto.
10029         * ui-file.c: Ditto.
10030         * ui-file.h: Ditto.
10031         * ui-out.h: Ditto.
10032         * user-regs.c: Ditto.
10033         * user-regs.h: Ditto.
10034         * utils.c: Ditto.
10035         * valarith.c: Ditto.
10036         * valops.c: Ditto.
10037         * valprint.c: Ditto.
10038         * valprint.h: Ditto.
10039         * value.c: Ditto.
10040         * varobj.c: Ditto.
10041         * varobj.h: Ditto.
10042         * vec.h: Ditto.
10043         * xcoffread.c: Ditto.
10044         * xcoffsolib.c: Ditto.
10045         * xcoffsolib.h: Ditto.
10046         * xml-syscall.c: Ditto.
10047         * xml-tdesc.c: Ditto.
10048
10049 2011-01-05  Michael Snyder  <msnyder@vmware.com>
10050
10051         * cli/cli-cmds.c: Shorten lines of >= 80 columns.
10052         * cli/cli-decode.c: Ditto.
10053         * cli/cli-dump.c: Ditto.
10054         * cli/cli-logging.c: Ditto.
10055         * cli/cli-script.c: Ditto.
10056         * cli/cli-setshow.c: Ditto.
10057         * common/signals.c: Ditto.
10058         * mi/mi-cmd-break.c: Ditto.
10059         * mi/mi-cmd-disas.c: Ditto.
10060         * mi/mi-cmd-stack.c: Ditto.
10061         * mi/mi-cmd-var.c: Ditto.
10062         * mi/mi-cmds.c: Ditto.
10063         * mi/mi-common.h: Ditto.
10064         * mi/mi-console.c: Ditto.
10065         * mi/mi-interp.c: Ditto.
10066         * mi/mi-main.c: Ditto.
10067         * osf-share/cma_attr.c: Ditto.
10068         * osf-share/cma_deb_core.h: Ditto.
10069         * osf-share/cma_debug_client.h: Ditto.
10070         * osf-share/cma_handle.h: Ditto.
10071         * osf-share/cma_mutex.h: Ditto.
10072         * osf-share/cma_stack_int.h: Ditto.
10073         * osf-share/cma_tcb_defs.h: Ditto.
10074         * python/py-auto-load.c: Ditto.
10075         * python/py-breakpoint.c: Ditto.
10076         * python/py-cmd.c: Ditto.
10077         * python/py-frame.c: Ditto.
10078         * python/py-objfile.c: Ditto.
10079         * python/py-param.c: Ditto.
10080         * python/py-progspace.c: Ditto.
10081         * python/py-symbol.c: Ditto.
10082         * python/py-value.c: Ditto.
10083         * python/python-internal.h: Ditto.
10084         * python/python.c: Ditto.
10085         * tui/tui-data.c: Ditto.
10086         * tui/tui-disasm.c: Ditto.
10087         * tui/tui-hooks.c: Ditto.
10088         * tui/tui-io.c: Ditto.
10089         * tui/tui-layout.c: Ditto.
10090         * tui/tui-regs.c: Ditto.
10091         * tui/tui-source.c: Ditto.
10092         * tui/tui-stack.c: Ditto.
10093         * tui/tui-win.c: Ditto.
10094         * tui/tui-windata.c: Ditto.
10095         * tui/tui-winsource.c: Ditto.
10096
10097 2011-01-05  Joel Brobecker  <brobecker@adacore.com>
10098
10099         * configure.ac, gdb.1: Copyright year update.
10100
10101 2011-01-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
10102
10103         * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
10104         this_pc_in_block, morestack_msym and morestack_name.  Check for
10105         "__morestack" minimal symbol there.
10106
10107 2011-01-03  Joel Brobecker  <brobecker@adacore.com>
10108
10109         * symfile.c (find_sym_fns): Add call to dont_repeat.
10110
10111 2011-01-01  Joel Brobecker  <brobecker@adacore.com>
10112
10113         Copyright year update in most files (performed by copyright.sh).
10114
10115 2011-01-01  Joel Brobecker  <brobecker@adacore.com>
10116
10117         * top.c (print_gdb_version): Update copyright year in version output.
10118
10119 For older changes see ChangeLog-2010.
10120 \f
10121 Local Variables:
10122 mode: change-log
10123 left-margin: 8
10124 fill-column: 74
10125 version-control: never
10126 coding: utf-8
10127 End: