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