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