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