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