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