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