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