gdb/
[external/binutils.git] / gdb / ChangeLog
1 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
2
3         Build gdb directly from *.o files not using libgdb.a.
4         * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
5         (COMMON_OBS): Remove solib-target.o.
6         (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
7         (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
8         (LIBGDB_OBS, libgdb.a): Move it above.
9         * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
10         (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
11         (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
12         (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
13         (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
14         (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
15         (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
16         (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
17         (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
18         (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
19         (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
20         (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
21         (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
22         (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
23         (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
24         (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
25         (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
26         (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
27         (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
28         (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
29         (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
30         (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
31         (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
32         (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
33         (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
34         (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
35         (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
36
37 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
38
39         Remove the gdbtui binary.
40         * .gitignore (/gdbtui): Remove.
41         * Makefile.in (TUI): Remove.
42         (SUBDIR_TUI_OBS): Remove tui-main.o.
43         (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
44         (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
45         (tui-main.o): Remove.
46         (all_object_files): Remove tui-main.o.
47         * NEWS: New note for the gdbtui removal.
48         * configure: Rebuilt.
49         * configure.ac: No longer add all-tui, clean-tui, install-tui and
50         uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
51         CONFIG_UNINSTALL respectively.
52         * gdb.c (main): Remove args.interpreter_p initialization.
53         * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
54         * main.h (struct captured_main_args): Remove interpreter_p.
55         * tui/tui-main.c: Remove.
56
57 2012-01-01  Doug Evans  <dje@google.com>
58
59         * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
60         (dwarf2_physname, read_import_statement): Ditto.
61         (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
62         (process_structure_scope read_subroutine_type): Ditto.
63         (read_typedef, load_partial_dies, read_partial_die): Ditto.
64         (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
65         (dwarf2_fetch_die_location_block): Ditto.
66         (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
67
68         * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
69         All callers updated.
70         (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
71         (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
72         (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
73
74         * dwarf2read.c (load_cu): Move assert to more useful location.
75
76         * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
77         All callers updated.
78
79         * dwarf2read.c (dwarf2_per_objfile): Add comment.
80         (dwarf2_elf_names): Minor reformat.
81         (dwarf2_per_cu_data): Tweak comment.
82         (dwarf2_read_section): Fix comment.
83         (create_all_comp_units): Fix comment.
84         (load_full_comp_unit): Fix comment.
85         (process_full_comp_unit): Fix comment.
86         (read_signatured_type): Fix comment.
87
88 2011-12-30  Doug Evans  <dje@google.com>
89
90         * dwarf2read.c (read_typedef): Guard against self-referential typedefs.
91
92 2011-12-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
93
94         * gdbarch.sh (max_insn_length): Extend the comment by unit.
95         * gdbarch.h: Regenerate.
96
97 2011-12-28  Joel Brobecker  <brobecker@adacore.com>
98
99         * varobj.c (varobj_update): Minor reformatting, putting the function
100         name at the start of the next line.
101
102 2011-12-27  Doug Evans  <dje@google.com>
103
104         * dwarf2read.c (struct dwarf2_cu): Delete members first_fn, last_fn,
105         cached_fn.
106         (struct function_range): Delete.
107         (initialize_cu_func_list, add_to_cu_func_list): Delete.  All callers
108         updated.
109         (check_cu_functions): Ditto.
110
111 2011-12-27  Mark Kettenis  <kettenis@gnu.org>
112
113         * inf-ptrace.c [PT_IO && PIOD_READ_AUXV]
114         (inf_ptrace_xfer_partial): Implement TARGET_OBJECT_AUXV.
115         (inf_ptrace_auxv_parse): New function.
116         (inf_ptrace_target): Initialize to_auxv_parse field.
117
118 2011-12-27  Joel Brobecker  <brobecker@adacore.com>
119
120         * ada-lang.c (should_use_wild_match): New function.
121         (ada_lookup_simple_minsym): Use should_use_wild_match.
122         Minor simplification.  Add comment.
123         (ada_lookup_symbol_list): Use should_use_wild_match.
124         Minor simplification.
125
126 2011-12-27  Joel Brobecker  <brobecker@adacore.com>
127
128         * py-finishbreakpoint.c (bpfinishpy_init): Replace call to
129         sprintf by call to xsnprintf.
130
131 2011-12-27  Joel Brobecker  <brobecker@adacore.com>
132
133         * linespec.c (struct collect_minsyms) [list_mode]: New field.
134         (add_minsym): Ignore data symbols if not in list mode.
135         (search_minsyms_for_name): Set local.list_mode.
136
137 2011-12-27  Joel Brobecker  <brobecker@adacore.com>
138
139         * utils.c (gdb_realpath): Add better support for Windows hosts.
140
141 2011-12-23  Kevin Pouget  <kevin.pouget@st.com>
142
143         Introduce gdb.FinishBreakpoint in Python.
144         * NEWS: Add entry for FinishBreakpoint.
145         * Makefile.in (SUBDIR_PYTHON_OBS): Add py-finishbreakpoint.o.
146         (SUBDIR_PYTHON_SRCS): Add python/py-finishbreakpoint.c.
147         Add build rule for this file.
148         * infcmd.c (print_return_value): Split to create get_return_value.
149         (get_return_value): New function based on print_return_value. Handle
150         case where stop_registers are not set.
151         * inferior.h (get_return_value): New prototype.
152         * python/py-breakpoint.c (bppy_pending_object): Make non-static.
153         (gdbpy_breakpoint_created): Set is_py_finish_bp is necessary.
154         (struct breakpoint_object): Move to python-internal.h
155         (BPPY_REQUIRE_VALID): Likewise.
156         (BPPY_SET_REQUIRE_VALID): Likewise.
157         (gdbpy_breakpoint_created): Initialize is_finish_bp.
158         (gdbpy_should_stop): Add  pre/post hooks before/after calling stop
159         method.
160         * python/python-internal.h (breakpoint_object_type): Add as extern.
161         (bppy_pending_object): Likewise.
162         (typedef struct breakpoint_object) Removed.
163         (struct breakpoint_object): Moved from py-breakpoint.c.
164         Add field is_finish_bp.
165         (BPPY_REQUIRE_VALID): Moved from py-breakpoint.c.
166         (BPPY_SET_REQUIRE_VALID): Likewise.
167         (frame_object_to_frame_info): New prototype.
168         (gdbpy_initialize_finishbreakpoints): New prototype.
169         (bpfinishpy_is_finish_bp): Likewise.
170         (bpfinishpy_pre_stop_hook): Likewise.
171         (bpfinishpy_post_stop_hook): Likewise.
172         * python/py-finishbreakpoint.c: New file.
173         * python/py-frame.c(frame_object_to_frame_info): Make non-static and
174         accept PyObject instead of frame_object.
175         (frapy_is_valid): Don't cast to frame_object.
176         (frapy_name): Likewise.
177         (frapy_type): Likewise.
178         (frapy_unwind_stop_reason): Likewise.
179         (frapy_pc): Likewise.
180         (frapy_block): Likewise.
181         (frapy_function): Likewise.
182         (frapy_older): Likewise.
183         (frapy_newer): Likewise.
184         (frapy_find_sal): Likewise.
185         (frapy_read_var): Likewise.
186         (frapy_select): Likewise.
187         * python/python.c (gdbpy_is_stopped_at_finish_bp): New noop function.
188         (_initialize_python): Add gdbpy_initialize_finishbreakpoints.
189         * python/python.h: Include breakpoint.h
190         (gdbpy_is_stopped_at_finish_bp): New prototype.
191
192 2011-12-22  Tom Tromey  <tromey@redhat.com>
193
194         PR python/12533:
195         * value.h (release_value_or_incref): Declare.
196         * value.c (struct value) <released>: New field.
197         (free_all_values, release_value, value_release_to_mark): Update
198         'released'.
199         (release_value_or_incref): New function.
200         * python/py-value.c (valpy_new): Use release_value_or_incref.
201         (value_to_value_object): Likewise.
202         * varobj.c (install_new_value): Move value_incref earlier.
203
204 2011-12-22  Tom Tromey  <tromey@redhat.com>
205
206         * value.c (struct value) <modifiable, lazy, optimized_out,
207         initialized, stack>: Now bitfields.  Move to top.
208         <reference_count>: Move earlier.
209
210 2011-12-21  Tom Tromey  <tromey@redhat.com>
211
212         * minsyms.h: Rearrange.  Document header and all functions.
213         * minsyms.c: Move some comments to minsyms.h.
214
215 2011-12-21  Tom Tromey  <tromey@redhat.com>
216
217         * symtab.h: Include minsyms.h.
218         (prim_record_minimal_symbol, prim_record_minimal_symbol_full)
219         (prim_record_minimal_symbol_and_info, msymbol_hash_iw)
220         (msymbol_hash, SYMBOL_HASH_NEXT, msymbol_objfile)
221         (lookup_minimal_symbol, lookup_minimal_symbol_text)
222         (lookup_minimal_symbol_solib_trampoline)
223         (lookup_minimal_symbol_by_pc_name, lookup_minimal_symbol_by_pc)
224         (iterate_over_minimal_symbols, lookup_minimal_symbol_and_objfile)
225         (lookup_minimal_symbol_by_pc_section)
226         (lookup_solib_trampoline_symbol_by_pc)
227         (init_minimal_symbol_collection)
228         (make_cleanup_discard_minimal_symbols, install_minimal_symbols)
229         (msymbols_sort): Move to minsyms.h.
230         * objfiles.c (terminate_minimal_symbol_table): Move to minsyms.c.
231         * minsyms.c (terminate_minimal_symbol_table): Move from
232         objfiles.c.
233         * minsyms.h: New file.
234
235 2011-12-21  Tom Tromey  <tromey@redhat.com>
236
237         * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence): Use
238         ALL_OBJFILE_MSYMBOLS.
239         (hppa_hpux_find_dummy_bpaddr): Likewise.
240         * jit.c (jit_object_close_impl): Use
241         terminate_minimal_symbol_table.
242
243 2011-12-21  Tom Tromey  <tromey@redhat.com>
244
245         * elfread.c (elf_symtab_read): Put the filename in the filename
246         bcache.
247
248 2011-12-21  Tom Tromey  <tromey@redhat.com>
249
250         * symtab.h (struct minimal_symbol) <filename>: Now const.
251
252 2011-12-21  Ulrich Weigand  <ulrich.weigand@linaro.org>
253
254         PR tdep/12797
255         * arm-tdep.c (arm_return_value): Handle complex types.
256
257 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
258
259         * ppc-linux-nat.c (create_watchpoint_request): Only use ranged
260         watchpoints when supported.
261
262 2011-12-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
263
264         * symfile.c (objfilep): New typedef and new DEF_VEC_P.
265         (reread_symbols): Remove variable reread_one, new variables
266         new_objfiles, all_cleanups and ix.  Use new_objfiles instead of
267         reread_one.  Push changed objfiles to new_objfiles, call
268         observer_notify_new_objfile for them later.
269
270 2011-12-21  Joel Brobecker  <brobecker@adacore.com>
271
272         * psymtab.c (expand_symtabs_matching_via_partial): Match
273         the partial symbols using their SYMBOL_SEARCH_NAME.
274         * symfile.h (struct quick_symbol_functions): Udate the
275         documentation of expand_symtabs_matching.
276         * dwarf2read.c (write_psymbols): Use SYMBOL_SEARCH_NAME instead
277         of SYMBOL_NATURAL_NAME in index entry.
278
279 2011-12-21  Joel Brobecker  <brobecker@adacore.com>
280
281         * linespec.c (locate_first_half): Add handling of Ada operators
282         when the current language is Ada.
283
284 2011-12-21  Joel Brobecker  <brobecker@adacore.com>
285
286         * objfiles.c (insert_section_p): Do not detect overlay sections
287         if overlay debugging is off.
288
289 2011-12-21  Joel Brobecker  <brobecker@adacore.com>
290
291         * ada-lang.c (is_name_suffix): Add handling of "TKB" suffixes.
292         Update function documentation.
293         * dictionary.c (dict_hash): Ignore "TKB" suffixes in hash
294         computation.
295
296 2011-12-20  Pedro Alves  <alves.ped@gmail.com>
297             Jan Kratochvil  <jan.kratochvil@redhat.com>
298
299         * linux-nat.c (add_lwp): Don't call linux_nat_new_thread on the
300         first LWP.
301         * amd64-linux-nat.c (update_debug_registers_callback): Instantiate
302         `lwp->arch_private' if NULL.
303         (amd64_linux_prepare_to_resume): Do nothing if `lwp->arch_private'
304         is NULL.
305         * i386-linux-nat.c (update_debug_registers_callback): Instantiate
306         `lwp->arch_private' if NULL.
307         (i386_linux_prepare_to_resume): Do nothing if `lwp->arch_private'
308         is NULL.
309
310 2011-12-19  Doug Evans  <dje@google.com>
311
312         * python/py-auto-load.c (info_auto_load_scripts): Pass address of
313         scripts vector to collect_matching_scripts.
314         (collect_matching_scripts): Update.
315
316 2011-12-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
317
318         * symfile.c (reread_symbols): Move free_objfile_separate_debug,
319         preserve_values, sym_finish and clear_objfile_data calls before BFD
320         close.  Move free_objfile_separate_debug as the very first call.  New
321         comment on the ordering.
322
323 2011-12-19  Ulrich Weigand  <uweigand@de.ibm.com>
324
325         * s390-tdep.c (s390_push_dummy_call): Set addressing mode bit
326         in return PSWA.
327
328 2011-12-19  Tom Tromey  <tromey@redhat.com>
329
330         * symtab.h (add_minsym_to_hash_table): Don't declare.
331         * minsyms.c (add_minsym_to_hash_table): Now static.
332
333 2011-12-19  Joel Brobecker  <brobecker@adacore.com>
334
335         * elfread.c (elf_symtab_read): Ignore undefined symbols with
336         nonzero addresses if they do not correspond to a .plt section
337         when one is available in the objfile.
338
339 2011-12-17  Andreas Schwab  <schwab@linux-m68k.org>
340
341         * cp-name-parser.y (cp_merge_demangle_parse_infos): Don't use
342         obstack_empty_p.
343
344 2011-12-17  Mark Kettenis  <kettenis@gnu.org>
345
346         * amd64obsd-tdep.c (amd64obsd_init_abi): Don't set
347         regset_from_core_section.
348         (amd64obsd_core_init_abi): New function that sets
349         regset_from_core_section.
350         (_initialize_amd64obsd_tdep): Use amd64obsd_core_init_abi for
351         traditional core dumps.
352
353 2011-12-17  Mark Kettenis  <kettenis@gnu.org>
354
355         * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Detect new signal
356         trampoline to be introduced in OpenBSD 5.0.
357
358 2011-12-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
359
360         Fix build regression from the PR threads/10729 fix.
361         * s390-nat.c (s390_insert_watchpoint, s390_remove_watchpoint): Use LP,
362         not LP->PTID.
363
364 2011-12-16  Andrey Smirnov  <andrew.smirnov@gmail.com>
365
366         * mi/mi-main.c (mi_cmd_list_thread_groups): Rename `optind' and
367         `optarg' to `oind' and `oarg', respectively(-Wshadow).
368         (mi_cmd_data_read_memory): Ditto.
369         (mi_cmd_data_read_memory_bytes): Ditto.
370         (mi_cmd_data_write_memory): Ditto.
371
372 2011-12-16  Andrey Smirnov  <andrew.smirnov@gmail.com>
373
374         * mi/mi-getopt.c (mi_getopt): Rename `optind' and `optarg' to
375         `oind' and `oarg', respectively(-Wshadow).
376         (mi_valid_noargs): Ditto.
377
378 2011-12-16  Andrey Smirnov  <andrew.smirnov@gmail.com>
379
380         * mi/mi-cmd-var.c (print_varobj): Rename `optind' and `optarg' to
381         `oind' and `oarg', respectively(-Wshadow).
382
383 2011-12-16  Andrey Smirnov  <andrew.smirnov@gmail.com>
384
385         * mi/mi-cmd-target.c (mi_cmd_target_file_get): Rename `optind' and
386         `optarg' to `oind' and `oarg', respectively(-Wshadow).
387         (mi_cmd_target_file_put): Ditto.
388         (mi_cmd_target_file_delete): Ditto.
389
390 2011-12-16  Andrey Smirnov  <andrew.smirnov@gmail.com>
391
392         * mi/mi-cmd-env.c (mi_cmd_env_path): Rename `optind' and
393         `optarg' to `oind' and `oarg', respectively(-Wshadow).
394         (mi_cmd_env_dir): Ditto.
395
396 2011-12-16  Andrey Smirnov  <andrew.smirnov@gmail.com>
397
398         * mi/mi-cmd-disas.c (mi_cmd_disassemble): Rename `optind' and
399         `optarg' to `oind' and `oarg', respectively(-Wshadow).
400
401 2011-12-16  Andrey Smirnov  <andrew.smirnov@gmail.com>
402
403         * mi/mi-cmd-break.c (mi_cmd_break_insert): Rename `optind' and
404         `optparg' to `oind' and `oarg', respectively(-Wshadow).
405         (mi_cmd_break_watch): Ditto.
406
407 2011-12-16  Tom Tromey  <tromey@redhat.com>
408
409         * linespec.c (collect_symbols): Call maybe_add_address after
410         calling symbol_to_sal.
411         (minsym_found): Call maybe_add_address here.
412         (search_minsyms_for_name): Don't call maybe_add_address.
413
414 2011-12-16  Tom Tromey  <tromey@redhat.com>
415
416         * linespec.c (struct collect_info) <objfile>: Remove field.
417         (decode_objc): Update.
418         (find_method): Update.
419         (decode_variable): Update.
420         (struct minsym_and_objfile): New.
421         (struct collect_minsyms): New.
422         (classify_mtype): New function.
423         (compare_msyms): Likewise.
424         (add_minsym): Likewise.
425         (check_minsym): Remove.
426         (search_minsyms_for_name): Sort minsyms and apply only those with
427         top priority.
428
429 2011-12-16  Tom Tromey  <tromey@redhat.com>
430
431         * cli/cli-cmds.c (filter_sals): Filter out sals with NULL symtab.
432
433 2011-12-16  Pedro Alves  <pedro@codesourcery.com>
434
435         * inf-loop.c: Include top.h.
436         (inferior_event_handler): Call check_frame_language.
437         * top.c (check_frame_language_change): New, factored out from ...
438         (execute_command): ... this.  Use check_frame_language_change.
439         * top.h (check_frame_language_change): Declare.
440
441 2011-12-16  asmwarrior  <asmwarrior@gmail.com>  (obvious fix)
442
443         * windows-nat.c (cygwin_get_dr, cygwin_get_dr7): Add missing
444         prototypes.
445
446 2011-12-16  Doug Evans  <dje@google.com>
447
448         * NEWS: Add entry for stdio gdbserver.
449
450 2011-12-16  Phil Muldoon  <pmuldoon@redhat.com>
451
452         * python/python.c: Define python_excp_enums.
453         (eval_python_from_control_command): Do not call gdbpy_print_stack.
454         (python_command): Ditto.
455         (gdbpy_print_stack): Rewrite to use new enum constants.
456         (maint_set_python): Remove function.
457         (maint_show_python): Ditto.
458         (_initialize_python): Do not add "maint" commands.  Add "set/show
459         python print-stack commands".
460         * NEWS: Update to reflect removal for "maint set/show
461         print-stack"
462
463 2011-12-15  Doug Evans  <dje@google.com>
464
465         * exceptions.c (catcher_list_size): New function.
466         (last_message): Delete.
467         (exception_messages, exception_messages_size): New static globals.
468         (throw_it): Use exception_messages array to handle nested calls.
469
470 2011-12-15  Tom Tromey  <tromey@redhat.com>
471
472         * symfile.c (symbol_file_add_with_addrs_or_offsets): Remove bad
473         do_cleanups call.
474
475 2011-12-14  Doug Evans  <dje@google.com>
476
477         * defs.h (wait_to_die_with_timeout): Declare.
478         * utils.c: #include "gdb_wait.h".
479         (sigalrm_handler, wait_to_die_with_timeout): New functions.
480         * ser-pipe.c: Don't #include "gdb_wait.h".
481         (pipe_close): Give child a chance to die on its own after closing
482         its stdin before SIGTERM'ing it.
483
484 2011-12-14  Joel Brobecker  <brobecker@adacore.com>
485             Tom Tromey  <tromey@redhat.com>
486
487         * ada-lang.c (add_nonlocal_symbols): Initialize data to
488         all zeros.  Remove setting of data.arg_sym to NULL.
489
490 2011-12-14  Pedro Alves  <pedro@codesourcery.com>
491
492         PR threads/10729
493
494         * linux-nat.c (linux_nat_new_thread): Change parameter to an lwp
495         pointer.
496         (linux_nat_prepare_to_resume): New global.
497         (lwp_free): New.
498         (purge_lwp_list): Use it.
499         (add_lwp): Call linux_nat_new_thread even on the first LWP.
500         Adjust to interface change.
501         (delete_lwp): Call lwp_free instead of xfree.
502         (detach_callback, linux_nat_detach, resume_lwp, linux_nat_resume)
503         (linux_handle_syscall_trap, linux_handle_extended_wait)
504         (linux_nat_filter_event, resume_stopped_resumed_lwps): Call
505         linux_nat_prepare_to_resume before resuming.
506         (linux_stop_lwp): New.
507         (linux_nat_set_new_thread): Adjust.
508         (linux_nat_set_prepare_to_resume): New.
509         * linux-nat.h (struct arch_lwp_info): Forward declare.
510         (struct lwp_info) <arch_private>: New field.
511         (linux_stop_lwp): Declare.
512         (linux_nat_set_new_thread): Adjust.
513         (linux_nat_set_prepare_to_resume): New.
514
515         * i386-nat.c (DR_NADDR, DR_STATUS, DR_CONTROL)
516         (struct i386_debug_reg_state): Move to i386-nat.h.
517         (dr_mirror): Comment.
518         (i386_debug_reg_state): New.
519         (i386_update_inferior_debug_regs): Simplify.
520         (i386_stopped_data_address): Use the debug register state from the
521         inferior, not from the local cache.
522         * i386-nat.h (struct i386_dr_low_type): Delete reset_addr and
523         unset_status fields.  New get_addr and get_control fields.
524         (DR_FIRSTADDR, DR_LASTADDR, DR_CONTROL): Moved from i386-nat.c.
525         (DR_NADDR, DR_STATUS): New.
526         (struct i386_debug_reg_state): Moved from i386-nat.c.
527
528         * amd64-linux-nat.c (struct arch_lwp_info): New.
529         (amd64_linux_dr): Delete global.
530         (amd64_linux_dr_get_addr): New.
531         (amd64_linux_dr_get_control): New.
532         (amd64_linux_dr_unset_status): Delete.
533         (amd64_linux_dr_set_addr): Reimplement.
534         (amd64_linux_dr_reset_addr): Delete.
535         (update_debug_registers_callback): New.
536         (amd64_linux_dr_set_control): Reimplement.
537         (amd64_linux_dr_set_addr): Reimplement.
538         (amd64_linux_prepare_to_resume): New.
539         (amd64_linux_new_thread): Change parameter to an lwp pointer.
540         Reimplement.
541         (_initialize_amd64_linux_nat): No longer install
542         i386_dr_low.reset_addr and i386_dr_low.unset_status.  Install
543         amd64_linux_dr_get_control as i386_dr_low.get_control.  Install
544         amd64_linux_dr_get_addr as i386_dr_low.get_addr.  Install
545         amd64_linux_prepare_to_resume.
546         * i386-linux-nat.c (DR_FIRSTADDR, DR_LASTADDR, DR_STATUS)
547         (DR_CONTROL): Delete.
548         (struct arch_lwp_info): New.
549         (i386_linux_dr): Delete global.
550         (i386_linux_dr_set_control): Reimplement.
551         (i386_linux_dr_get_addr): New.
552         (i386_linux_dr_set_addr): Reimplement.
553         (i386_linux_dr_get_control): New.
554         (update_debug_registers_callback): New.
555         (i386_linux_dr_unset_status): Delete.
556         (i386_linux_dr_set_addr): Reimplement.
557         (i386_linux_prepare_to_resume): New.
558         (i386_linux_new_thread): Change parameter to an lwp pointer.
559         Reimplement.
560         (_initialize_i386_linux_nat): No longer install
561         i386_dr_low.reset_addr and i386_dr_low.unset_status.  Install
562         i386_linux_dr_get_control as i386_dr_low.get_control.  Install
563         i386_linux_dr_get_addr as i386_dr_low.get_addr.  Install
564         i386_linux_prepare_to_resume.
565
566         * arm-linux-nat.c (arm_linux_new_thread): Change parameter to an
567         lwp pointer.  Adjust.
568         * ia64-linux-nat.c (ia64_linux_new_thread): Likewise.
569         * mips-linux-nat.c (mips_linux_new_thread): Likewise.
570         * ppc-linux-nat.c (ppc_linux_new_thread): Likewise.
571         * s390-nat.c (s390_fix_watch_points): Likewise.
572
573         * i386-darwin-nat.c (DR_FIRSTADDR, DR_LASTADDR, DR_STATUS)
574         (DR_CONTROL): Delete.
575         (i386_darwin_dr_reset_addr): Delete.
576         (i386_darwin_dr_get_addr): New.
577         (i386_darwin_dr_get_control): New.
578         * go32-nat.c
579         (go32_get_dr7, go32_get_dr): New.
580         (init_go32_ops): No longer install i386_dr_low.reset_addr.
581         Install go32_get_dr7 as i386_dr_low.get_control.  Install
582         go32_get_dr as i386_dr_low.get_addr.
583         * i386bsd-nat.c (i386bsd_dr_get): New.
584         (i386bsd_dr_reset_addr): Delete.
585         (i386bsd_dr_get_addr): New.
586         (i386bsd_dr_get_status): Use i386bsd_dr_get.
587         (i386bsd_dr_get_control): New.
588         * i386bsd-nat.h (i386bsd_dr_reset_addr): Delete.
589         (i386bsd_dr_get_addr): New.
590         (i386bsd_dr_get_control): New.
591         * i386fbsd-nat.c (_initialize_i386fbsd_nat): No longer install
592         i386_dr_low.reset_addr and i386_dr_low.unset_status.  Install
593         i386bsd_dr_get_control as i386_dr_low.get_control.  Install
594         i386bsd_dr_get_addr as i386_dr_low.get_addr.
595         * windows-nat.c (init_windows_ops): No longer install
596         i386_dr_low.reset_addr and i386_dr_low.unset_status.  Install
597         cygwin_get_dr7 as i386_dr_low.get_control.  Install cygwin_get_dr
598         as i386_dr_low.get_addr.
599         (cygwin_get_dr): New.
600         (cygwin_get_dr7): New.
601
602 2011-12-14  Pedro Alves  <pedro@codesourcery.com>
603
604         * ia64-tdep.c (ia64_memory_remove_breakpoint): Use
605         target_write_raw_memory.
606         * m32r-tdep.c (m32r_memory_remove_breakpoint): Use
607         target_write_raw_memory.
608         * microblaze-linux-tdep.c
609         (microblaze_linux_memory_remove_breakpoint): Use
610         target_write_raw_memory.
611         * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Use
612         target_write_raw_memory.
613
614 2011-12-14  Joel Brobecker  <brobecker@adacore.com>
615
616         * linespec.c (decode_line_internal): Make static.
617
618 2011-12-14  Yao Qi  <yao@codesourcery.com>
619
620         * breakpoint.c (create_breakpoint): Set canonical.addr_string
621         for static tracepoint.
622
623 2011-12-13  Joel Brobecker  <brobecker@adacore.com>
624
625         GDB 7.4 branch created (branch timestamp: 2011-12-13 13:00 UTC)
626         * version.in: Bump version to 7.4.50.20111213-cvs.
627
628 2011-12-13  Joel Brobecker  <brobecker@adacore.com>
629
630         * NEWS: Create a new section for the next release branch.
631         Rename the section of the current branch, now that it has
632         been cut.
633
634 2011-12-11  Joel Brobecker  <brobecker@adacore.com>
635
636         * ada-lang.c (ada_exception_support_info_sniffer): Improve
637         error message.
638
639 2011-12-11  Joel Brobecker  <brobecker@adacore.com>
640
641         * ada-lang.c (struct ada_inferior_data) [exception_info]:
642         New field.
643         (exception_info): Delete.
644         (ada_exception_support_info_sniffer): Get exception_support_info
645         data from our per-inferior data.  Adjust code accordingly.
646         (ada_unhandled_exception_name_addr_from_raise): Likewise.
647         (ada_exception_name_addr_1, ada_exception_sym_name): Ditto.
648         (ada_executable_changed_observer): Delete.
649         (_initialize_ada_language): Remove call to
650         observer_attach_executable_changed.
651
652 2011-12-11  Joel Brobecker  <brobecker@adacore.com>
653
654         * ada-lang.c (ada_has_this_exception_support): Raise an error
655         if we could find the Ada exception hook in the Ada runtime,
656         but no debugging info for that hook.
657
658 2011-12-11  Joel Brobecker  <brobecker@adacore.com>
659
660         * ada-lang.c (ada_has_this_exception_support): New function,
661         extracted out of ada_exception_sal and ada_exception_sal.
662         (ada_exception_support_info_sniffer): Simplify by using
663         ada_has_this_exception_support.
664         (ada_exception_sal): Replace unnecessary checks by assertions.
665         Minor simplifications.
666
667 2011-12-10  Andrey Smirnov  <andrew.smirnov@gmail.com>
668
669         * breakpoint.c (update_global_location_list): Remove nested
670         definition of `b'(-Wshadow).
671
672 2011-12-10  Andrey Smirnov  <andrew.smirnov@gmail.com>
673
674         * breakpoint.c (insert_breakpoint_locations): Rename `error' to
675         `error_flag'(-Wshadow).
676
677 2011-12-10  Andrey Smirnov  <andrew.smirnov@gmail.com>
678
679         * bfd-target.c (target_bfd_reopen): Rename `bfd' to
680         `abfd'(-Wshadow).
681
682 2011-12-10  Andrey Smirnov  <andrew.smirnov@gmail.com>
683
684         * annotate.c (annotate_array_section_begin): Rename `index' to
685         `idx'(-Wshadow).
686
687 2011-12-10  Andrey Smirnov  <andrew.smirnov@gmail.com>
688
689         * amd64-tdep.c (amd64_get_unused_input_int_reg): Rename `index' to
690         `idx'(-Wshadow).
691
692 2011-12-10  Andrey Smirnov  <andrew.smirnov@gmail.com>
693
694         * amd64-linux-tdep.c (amd64_canonicalize_syscall): Rename
695         `syscall' to `syscall_number'(-Wshadow).
696
697 2011-12-10  Andrey Smirnov  <andrew.smirnov@gmail.com>
698
699         * ada-lang.c (remove_extra_symbols): Rename `remove' to
700         `remove_p'(-Wshadow).
701
702 2011-12-10  Andrey Smirnov  <andrew.smirnov@gmail.com>
703
704         * ada-exp.y (write_var_or_type): Rename nested `renaming' to
705         `ren_sym'(-Wshadow).
706
707 2011-12-10  Doug Evans  <dje@google.com>
708
709         * dwarf2read.c (dwarf2_per_cu_data): Rename debug_type_section to
710         debug_types_section.  All uses updated.
711         (partial_read_comp_unit_head): Rename parameter is_debug_type_section
712         to is_debug_types_section.
713
714         * python/py-auto-load.c (source_section_scripts): Call xfree
715         instead of free.
716
717 2011-12-10  Hui Zhu  <teawater@gmail.com>
718             Yao Qi  <yao@codesourcery.com>
719
720         * tracepoint.c (start_tracing): Clear `inserted' flag.
721
722 2011-12-10  Hui Zhu  <teawater@gmail.com>
723
724         * tracepoint.c (create_tsv_from_upload): Change sprintf to xstrprintf.
725
726 2011-12-09  Andrey Smirnov  <andrew.smirnov@gmail.com>
727
728         * breakpoint.c (bp_loc_is_permanent): Rename `brk' to
729         `bpoint'(-Wshadow).
730
731 2011-12-09  Andrey Smirnov  <andrew.smirnov@gmail.com>
732
733         * breakpoint.c (update_static_tracepoint): Rename nested `sal' and
734         `marker' variables to `sal2' and `tpmarker' respectively
735         (-Wshadow).
736
737 2011-12-09  Andrew Pinski  <apinski@cavium.com>
738
739         * linespec.c (hash_address_entry): Use iterative_hash_object on each
740         field rather than the struct itself.
741
742 2011-12-09  Tom Tromey  <tromey@redhat.com>
743
744         * breakpoint.c (compare_breakpoints): New function.
745         (clear_command): Remove duplicate breakpoints.  Properly clean
746         up.
747
748 2011-12-08  Maciej W. Rozycki  <macro@mips.com>
749             Maciej W. Rozycki  <macro@codesourcery.com>
750
751         * mips-tdep.c (mips_skip_mips16_trampoline_code): Sign-extend
752         address chunks retrieved from decoded lui/addiu pairs.
753
754 2011-12-08  Maciej W. Rozycki  <macro@codesourcery.com>
755
756         * mips-tdep.c (extended_offset): Correct calculation.
757         (unpack_mips16): Correct bitfield positions used for extraction
758         of the immediate argument; fix sign-extension of same.
759         (extended_mips16_next_pc): Correct B instruction's offset
760         calculation.  Correct register decoding of the BEQZ and BNEZ
761         as well as jump-register instructions.  Handle compact jumps.
762
763 2011-12-08  Tom Tromey  <tromey@redhat.com>
764
765         * objfiles.h (struct objfile): Remove obsolete comment.
766         * objfiles.c (build_objfile_section_table): Remove obsolete
767         comment.
768
769 2011-12-07  Stan Shebs  <stan@codesourcery.com>
770
771         * MAINTAINERS (Responsible Maintainers): Add Yao Qi as
772         maintainer of the tic6x target.
773
774 2011-12-07  Ulrich Weigand  <ulrich.weigand@linaro.org>
775
776         * arm-tdep.h (arm_deal_with_atomic_sequence): Add prototype.
777         * arm-tdep.c (thumb_deal_with_atomic_sequence_raw): New function.
778         (arm_deal_with_atomic_sequence_raw): Likewise.
779         (arm_deal_with_atomic_sequence): Likewise.
780         (arm_software_single_step): Call it.
781         * arm-linux-tdep.c (arm_linux_software_single_step): Likewise.
782
783 2011-12-07  Ulrich Weigand  <uweigand@de.ibm.com>
784
785         * s390-tdep.c: Replace "Linux" by "GNU/Linux" in comments
786         where appropriate.
787         * s390-tdep.h: Likewise.
788
789 2011-12-07  Tristan Gingold  <gingold@adacore.com>
790
791         * machoread.c (macho_symtab_read): Do not consider N_OPT as
792         a debugging stab.  Improve complaint message.
793
794 2011-12-07  Maciej W. Rozycki  <macro@codesourcery.com>
795
796         * mips-tdep.c (mips32_scan_prologue): Only update the immediate
797         load adjustment if still within the prologue.
798
799 2011-12-06  Maciej W. Rozycki  <macro@codesourcery.com>
800
801         * mips-tdep.c (mips32_next_pc): Fix floating point condition
802         code mask.
803
804 2011-12-06  Maciej W. Rozycki  <macro@codesourcery.com>
805
806         * mips-tdep.c (deal_with_atomic_sequence): Fix the handling
807         of BLTZ* and BGEZ* instructions.
808
809 2011-12-06  Maciej W. Rozycki  <macro@codesourcery.com>
810
811         * mips-tdep.c (mips_pc_is_mips16): Reverse the order of checks
812         performed to determine whether an address refers to standard
813         MIPS or MIPS16 code.
814         (mips16_next_pc): Use mips_pc_is_mips16 instead of
815         is_mips16_addr.
816
817 2011-12-06  Pedro Alves  <pedro@codesourcery.com>
818
819         * breakpoint.c (breakpoint_restore_shadows): Rename to ...
820         (breakpoint_xfer_memory): ... this.  Change prototype.  Handle
821         memory writes too.
822         * breakpoint.h (breakpoint_restore_shadows): Delete.
823         (breakpoint_xfer_memory): Declare.
824         * mem-break.c (default_memory_insert_breakpoint)
825         (default_memory_remove_breakpoint): Use target_write_raw_memory.
826         (memory_xfer_partial): Rename to ...
827         (memory_xfer_partial_1): ... this.  Don't mask out breakpoints
828         here.
829         (memory_xfer_partial): New.
830         (target_write_raw_memory): New.
831         * target.h (target_write_raw_memory): New.
832
833 2011-12-06  Doug Evans  <dje@google.com>
834
835         * linespec.c (decode_dollar): Avoid "may be used uninitialized" warning.
836
837 2011-12-06  Joel Brobecker  <brobecker@acacore.com>
838
839         * language.h (struct language_defn): Add new component
840         la_symbol_name_compare.
841         * symfile.h (struct quick_symbol_functions): Update the profile
842         of parameter "name_matcher" for the expand_symtabs_matching
843         method.  Update the documentation accordingly.
844         * ada-lang.h (ada_name_for_lookup): Add declaration.
845         * ada-lang.c (ada_name_for_lookup): New function, extracted out
846         from ada_iterate_over_symbols.
847         (ada_iterate_over_symbols): Do not encode symbol name anymore.
848         (ada_expand_partial_symbol_name): Adjust profile.
849         (ada_language_defn): Add value for la_symbol_name_compare field.
850         * linespec.c: #include "ada-lang.h".
851         (iterate_name_matcher): Add language parameter. Replace call
852         to strcmp_iw by call to language->la_symbol_name_compare.
853         (decode_variable): Encode COPY if current language is Ada.
854         * dwarf2read.c (dw2_expand_symtabs_matching): Adjust profile
855         of name_matcher parameter.  Adjust call to name_matcher.
856         * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
857         (expand_partial_symbol_names): Update profile of parameter "fun".
858         * psymtab.h (expand_partial_symbol_names): Update profile of
859         parameter "fun".
860         * symtab.c (demangle_for_lookup): Update function documentation.
861         (search_symbols_name_matches): Add language parameter.
862         (expand_partial_symbol_name): Likewise.
863         * c-lang.c (c_language_defn, cplus_language_defn)
864         (asm_language_defn, minimal_language_defn): Add value for
865         la_symbol_name_compare field.
866         * d-lang.c (d_language_defn): Likewise.
867         * f-lang.c (f_language_defn): Ditto.
868         * jv-lang.c (java_language_defn): Ditto.
869         * m2-lang.c (m2_language_defn): Ditto.
870         * objc-lang.c (objc_language_defn): Ditto.
871         * opencl-lang.c (opencl_language_defn): Ditto.
872         * p-lang.c (pascal_language_defn): Ditto.
873         * language.c (unknown_language_defn, auto_language_defn)
874         (local_language_defn): Ditto.
875
876 2011-12-06  Tom Tromey  <tromey@redhat.com>
877
878         * linespec.c (iterate_over_all_matching_symtabs): Use
879         LA_ITERATE_OVER_SYMBOLS.
880         (lookup_prefix_sym, add_matching_symbols_to_info): Likewise.
881         (find_function_symbols, decode_variable): Remove Ada special
882         case.
883         * language.h (struct language_defn) <la_iterate_over_symbols>: New
884         field.
885         (LA_ITERATE_OVER_SYMBOLS): New macro.
886         * language.c (unknown_language_defn, auto_language_defn)
887         (local_language_defn): Update.
888         * c-lang.c (c_language_defn, cplus_language_defn)
889         (asm_language_defn, minimal_language_defn): Update.
890         * d-lang.c (d_language_defn): Update.
891         * f-lang.c (f_language_defn): Update.
892         * jv-lang.c (java_language_defn): Update.
893         * m2-lang.c (m2_language_defn): Update.
894         * objc-lang.c (objc_language_defn): Update.
895         * opencl-lang.c (opencl_language_defn): Update.
896         * p-lang.c (pascal_language_defn): Update.
897         * ada-lang.c (ada_iterate_over_symbols): New function.
898         (ada_language_defn): Update.
899
900 2011-12-06  Tom Tromey  <tromey@redhat.com>
901             Joel Brobecker  <brobecker@acacore.com>
902
903         PR breakpoints/13105, PR objc/8341, PR objc/8343, PR objc/8366,
904         PR objc/8535, PR breakpoints/11657, PR breakpoints/11970,
905         PR breakpoints/12023, PR breakpoints/12334, PR breakpoints/12856,
906         PR shlibs/8929, PR shlibs/7393:
907         * python/py-type.c (compare_maybe_null_strings): Rename from
908         compare_strings.
909         (check_types_equal): Update.
910         * utils.c (compare_strings): New function.
911         * tui/tui-winsource.c (tui_update_breakpoint_info): Update for
912         location changes.
913         * tracepoint.c (scope_info): Update.
914         (trace_find_line_command): Use DECODE_LINE_FUNFIRSTLINE.
915         * symtab.h (iterate_over_minimal_symbols)
916         (iterate_over_some_symtabs, iterate_over_symtabs)
917         (find_pcs_for_symtab_line, iterate_over_symbols)
918         (demangle_for_lookup): Declare.
919         (expand_line_sal): Remove.
920         * symtab.c (iterate_over_some_symtabs, iterate_over_symtabs)
921         (lookup_symtab_callback): New functions.
922         (lookup_symtab): Rewrite.
923         (demangle_for_lookup): New function, extract from
924         lookup_symbol_in_language.
925         (lookup_symbol_in_language): Use it.
926         (iterate_over_symbols): New function.
927         (find_line_symtab): Update.
928         (find_pcs_for_symtab_line): New functions.
929         (find_line_common): Add 'start' argument.
930         (decode_line_spec): Update.  Change argument to 'flags', change
931         interpretation.
932         (append_expanded_sal): Remove.
933         (append_exact_match_to_sals): Remove.
934         (expand_line_sal): Remove.
935         * symfile.h (struct quick_symbol_functions) <lookup_symtab>:
936         Remove.
937         <map_symtabs_matching_filename>: New field.
938         * stack.c (func_command): Only look in the current program space.
939         Use DECODE_LINE_FUNFIRSTLINE.
940         * source.c (line_info): Set pspace on sal.  Check program space in
941         the loop.  Use DECODE_LINE_LIST_MODE.
942         (select_source_symtab): Use DECODE_LINE_FUNFIRSTLINE.
943         * solib-target.c: Remove DEF_VEC_I(CORE_ADDR).
944         * python/python.c (gdbpy_decode_line): Update.
945         * psymtab.c (partial_map_expand_apply): New function.
946         (partial_map_symtabs_matching_filename): Rename from
947         lookup_partial_symbol.  Update arguments.
948         (lookup_symtab_via_partial_symtab): Remove.
949         (psym_functions): Update.
950         * objc-lang.h (parse_selector, parse_method): Don't declare.
951         (find_imps): Update.
952         * objc-lang.c (parse_selector, parse_method): Now static.
953         (find_methods): Change arguments.  Fill in a vector of symbol
954         names.
955         (uniquify_strings): New function.
956         (find_imps): Change arguments.
957         * minsyms.c (iterate_over_minimal_symbols): New function.
958         * linespec.h (enum decode_line_flags): New.
959         (struct linespec_sals): New.
960         (struct linespec_result) <canonical>: Remove.
961         <pre_expanded, addr_string, sals>: New fields.
962         (destroy_linespec_result, make_cleanup_destroy_linespec_result)
963         (decode_line_full): Declare.
964         (decode_line_1): Update.
965         * linespec.c (struct address_entry, struct linespec_state, struct
966         collect_info): New types.
967         (add_sal_to_sals_basic, add_sal_to_sals, hash_address_entry)
968         (eq_address_entry, maybe_add_address): New functions.
969         (total_number_of_methods): Remove.
970         (iterate_name_matcher, iterate_over_all_matching_symtabs): New
971         functions.
972         (find_methods): Change arguments.  Don't canonicalize input.
973         Simplify logic.
974         (add_matching_methods, add_constructors)
975         (build_canonical_line_spec): Remove.
976         (filter_results, convert_results_to_lsals): New functions.
977         (decode_line_2): Change arguments.  Rewrite for new data
978         structures.
979         (decode_line_internal): Rename from decode_line_1.  Change
980         arguments.  Add cleanups.  Update for new data structures.
981         (linespec_state_constructor, linespec_state_destructor)
982         (decode_line_full, decode_line_1): New functions.
983         (decode_indirect): Change arguments.  Update.
984         (locate_first_half): Use skip_spaces.
985         (decode_objc): Change arguments.  Update for new data structures.
986         Simplify logic.
987         (decode_compound): Change arguments.  Add cleanups.  Remove
988         fallback code, replace with error.
989         (struct decode_compound_collector): New type.
990         (collect_one_symbol): New function.
991         (lookup_prefix_sym): Change arguments.  Update.
992         (compare_symbol_name, add_all_symbol_names_from_pspace)
993         (find_superclass_methods ): New functions.
994         (find_method): Rewrite.
995         (struct symtab_collector): New type.
996         (add_symtabs_to_list, collect_symtabs_from_filename): New
997         functions.
998         (symtabs_from_filename): Change API.  Rename from
999         symtab_from_filename.
1000         (collect_function_symbols): New function.
1001         (find_function_symbols): Change API.  Rename from
1002         find_function_symbol.  Rewrite.
1003         (decode_all_digits): Change arguments.  Rewrite.
1004         (decode_dollar): Change arguments.  Use decode_variable.
1005         (decode_label): Change arguments.  Rewrite.
1006         (collect_symbols): New function.
1007         (minsym_found): Change arguments.  Rewrite.
1008         (check_minsym, search_minsyms_for_name)
1009         (add_matching_symbols_to_info): New function.
1010         (decode_variable): Change arguments.  Iterate over all symbols.
1011         (symbol_found): Remove.
1012         (symbol_to_sal): New function.
1013         (init_linespec_result, destroy_linespec_result)
1014         (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
1015         New functions.
1016         (decode_digits_list_mode, decode_digits_ordinary): New functions.
1017         * dwarf2read.c (dw2_map_expand_apply): New function.
1018         (dw2_map_symtabs_matching_filename): Rename from
1019         dw2_lookup_symtab.  Change arguments.
1020         (dwarf2_gdb_index_functions): Update.
1021         * dwarf2loc.c: Remove DEF_VEC_I(CORE_ADDR).
1022         * defs.h (compare_strings): Declare.
1023         * cli/cli-cmds.c (compare_strings): Move to utils.c.
1024         (edit_command, list_command): Use DECODE_LINE_LIST_MODE.  Call
1025         filter_sals.
1026         (compare_symtabs, filter_sals): New functions.
1027         * breakpoint.h (struct bp_location) <line_number, source_file>:
1028         New fields.
1029         (struct breakpoint) <line_number, source_file>: Remove.
1030         <filter>: New field.
1031         * breakpoint.c (print_breakpoint_location, init_raw_breakpoint)
1032         (momentary_breakpoint_from_master, add_location_to_breakpoint):
1033         Update for changes to locations.
1034         (init_breakpoint_sal): Add 'filter' argument.  Set 'filter' on
1035         breakpoint.
1036         (create_breakpoint_sal): Add 'filter' argument.
1037         (remove_sal, expand_line_sal_maybe): Remove.
1038         (create_breakpoints_sal): Remove 'sals' argument.  Handle
1039         pre-expanded sals and the filter.
1040         (parse_breakpoint_sals): Use decode_line_full.
1041         (check_fast_tracepoint_sals): Use get_sal_arch.
1042         (create_breakpoint): Create a linespec_sals.  Update.
1043         (break_range_command): Use decode_line_full.  Update.
1044         (until_break_command): Update.
1045         (clear_command): Update match conditions for linespec.c changes.
1046         Use DECODE_LINE_LIST_MODE.
1047         (say_where): Update for changes to locations.
1048         (bp_location_dtor): Free 'source_file'.
1049         (base_breakpoint_dtor): Free 'filter'.  Don't free 'source_file'.
1050         (update_static_tracepoint): Update for changes to locations.
1051         (update_breakpoint_locations): Disable ranged breakpoint if too
1052         many locations match.  Update.
1053         (addr_string_to_sals): Use decode_line_full.  Resolve all sal
1054         PCs.
1055         (breakpoint_re_set_default): Don't call expand_line_sal_maybe.
1056         (decode_line_spec_1): Update.  Change argument name to 'flags',
1057         change interpretation.
1058         * block.h (block_containing_function): Declare.
1059         * block.c (block_containing_function): New function.
1060         * skip.c (skip_function_command): Update.
1061         (skip_re_set): Update.
1062         * infcmd.c (jump_command): Use DECODE_LINE_FUNFIRSTLINE.
1063         * mi/mi-main.c (mi_cmd_trace_find): Use DECODE_LINE_FUNFIRSTLINE.
1064         * NEWS: Add entry.
1065
1066 2011-12-06  Tom Tromey  <tromey@redhat.com>
1067
1068         * elfread.c (elf_gnu_ifunc_resolver_return_stop): Allow
1069         breakpoint's pspace to be NULL.
1070         * breakpoint.h (struct breakpoint) <pspace>: Update comment.
1071         * breakpoint.c (init_raw_breakpoint): Conditionally set
1072         breakpoint's pspace.
1073         (init_breakpoint_sal): Don't set breakpoint's pspace.
1074         (prepare_re_set_context): Conditionally switch program space.
1075         (addr_string_to_sals): Check executing_startup on location's
1076         program space.
1077
1078 2011-12-06  Tom Tromey  <tromey@redhat.com>
1079
1080         * breakpoint.h (enum enable_state) <bp_startup_disabled>: Remove.
1081         * breakpoint.c (should_be_inserted): Explicitly check if program
1082         space is executing startup.
1083         (describe_other_breakpoints): Update.
1084         (disable_breakpoints_before_startup): Change executing_startup
1085         earlier.  Remove loop.
1086         (enable_breakpoints_after_startup): Likewise.
1087         (init_breakpoint_sal): Don't use bp_startup_disabled.
1088         (create_breakpoint): Don't use bp_startup_disabled.
1089         (update_global_location_list): Use should_be_inserted.
1090         (bkpt_re_set): Update.
1091
1092 2011-12-06  Tom Tromey  <tromey@redhat.com>
1093
1094         * python/lib/gdb/command/pretty_printers.py
1095         (InfoPrettyPrinter.invoke1): Remove extra double quote.
1096
1097 2011-12-06  Tom Tromey  <tromey@redhat.com>
1098
1099         * NEWS: Add MI news.
1100
1101 2011-12-06  Ulrich Weigand  <uweigand@de.ibm.com>
1102
1103         * s390-tdep.h (S390_ORIG_R2_REGNUM): Define.
1104         (S390_LAST_BREAK_REGNUM): Likewise.
1105         (S390_SYSTEM_CALL_REGNUM): Likewise.
1106         (S390_NUM_REGS): Update.
1107
1108         (s390_regmap_last_break): Add declaration.
1109         (s390x_regmap_last_break): Likewise.
1110         (s390_regmap_system_call): Likewise.
1111
1112         (tdesc_s390_linux32v1): Add declaration.
1113         (tdesc_s390_linux32v2): Likewise.
1114         (tdesc_s390_linux64v1): Likewise.
1115         (tdesc_s390_linux64v2): Likewise.
1116         (tdesc_s390x_linux64v1): Likewise.
1117         (tdesc_s390x_linux64v2): Likewise.
1118
1119         * s390-tdep.c: Include new target description files
1120         "features/s390-linux32v1.c", "features/s390-linux32v2.c",
1121         "features/s390-linux64v1.c", "features/s390-linux64v2.c",
1122         "features/s390x-linux64v1.c", and "features/s390x-linux64v2.c".
1123         (s390_cannot_store_register): New function.
1124         (s390_write_pc): Likewise.
1125         (s390_dwarf_regmap): Add fields for new registers.
1126         (s390_regmap_gregset): Likewise.
1127         (s390x_regmap_gregset): Likewise.
1128         (s390_regmap_fpregset): Likewise.
1129         (s390_regmap_upper): Likewise.
1130         (s390_regmap_last_break): New variable.
1131         (s390x_regmap_last_break): Likewise.
1132         (s390_regmap_system_call): Likewise.
1133         (s390_last_break_regset): Likewise.
1134         (s390x_last_break_regset): Likewise.
1135         (s390_system_call_regset): Likewise.
1136         (s390_upper_regset_sections): Rename to ...
1137         (s390_linux64_regset_sections): ... this.
1138         (s390_linux32_regset_sections): New variable.
1139         (s390x_linux64_regset_sections): Likewise.
1140         (s390_linux32v1_regset_sections): Likewise.
1141         (s390_linux32v2_regset_sections): Likewise.
1142         (s390_linux64v1_regset_sections): Likewise.
1143         (s390_linux64v2_regset_sections): Likewise.
1144         (s390x_linux64v1_regset_sections): Likewise.
1145         (s390x_linux64v2_regset_sections): Likewise.
1146         (s390_regset_from_core_section): Handle .reg-s390-last-break and
1147         .reg-s390-system-call core file sections.
1148         (s390_core_read_description): Check for presence of
1149         .reg-s390-last-break and .reg-s390-system-call core file
1150         sections and return appropriate target description.
1151         (s390_gdbarch_init): Detect Linux-specific registers "orig_r2",
1152         "last_break" and "system_call" in target description.  Install
1153         appropriate gdbarch_core_regset_sections array.
1154         Call set_gdbarch_cannot_store_register and set_gdbarch_write_pc.
1155         (_initialize_s390_tdep): Initialize additional target descriptions.
1156
1157         * s390-nat.c: Include "elf/common.h".
1158         (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
1159         (have_regset_last_break): New static variable.
1160         (have_regset_system_call): Likewise.
1161         (s390_native_supply): Handle S390_ORIG_R2_REGNUM.
1162         (s390_native_collect): Likewise.
1163         (fetch_regset, store_regset, check_regset): New functions.
1164         (s390_linux_fetch_inferior_registers): Handle S390_LAST_BREAK_REGNUM
1165         and S390_SYSTEM_CALL_REGNUM.
1166         (s390_linux_store_inferior_registers): Likewise.
1167         (s390_read_description): Check for presence of NT_S390_LAST_BREAK
1168         and NT_S390_SYSTEM_CALL regsets and use appropriate description.
1169
1170         * features/Makefile (WHICH): Add s390-linux32v1, s390-linux64v1,
1171         s390x-linux64v1, s390-linux32v2, s390-linux64v2, and s390x-linux64v2.
1172         (s390-linux32v1-expedite): Define.
1173         (s390-linux32v2-expedite): Likewise.
1174         (s390-linux64v1-expedite): Likewise.
1175         (s390-linux64v2-expedite): Likewise.
1176         (s390x-linux64v1-expedite): Likewise.
1177         (s390x-linux64v2-expedite): Likewise.
1178
1179         * features/s390-linux32.xml: Add orig_r2 register.
1180         * features/s390-linux64.xml: Likewise.
1181         * features/s390x-linux64.xml: Likewise.
1182         * features/s390-linux32v1.xml: New file.
1183         * features/s390-linux32v2.xml: Likewise.
1184         * features/s390-linux64v1.xml: Likewise.
1185         * features/s390-linux64v2.xml: Likewise.
1186         * features/s390x-linux64v1.xml: Likewise.
1187         * features/s390x-linux64v2.xml: Likewise.
1188
1189         * features/s390-linux32.c: Regenerate.
1190         * features/s390-linux64.c: Likewise.
1191         * features/s390x-linux64.c: Likewise.
1192         * features/s390-linux32v1.c: New generated file.
1193         * features/s390-linux32v2.c: Likewise.
1194         * features/s390-linux64v1.c: Likewise.
1195         * features/s390-linux64v2.c: Likewise.
1196         * features/s390x-linux64v1.c: Likewise.
1197         * features/s390x-linux64v2.c: Likewise.
1198
1199         * regformats/s390-linux32.dat: Regenerate.
1200         * regformats/s390-linux64.dat: Regenerate.
1201         * regformats/s390x-linux64.dat: Regenerate.
1202         * regformats/s390-linux32v1.dat: New generated file.
1203         * regformats/s390-linux32v2.dat: Likewise.
1204         * regformats/s390-linux64v1.dat: Likewise.
1205         * regformats/s390-linux64v2.dat: Likewise.
1206         * regformats/s390x-linux64v1.dat: Likewise.
1207         * regformats/s390x-linux64v2.dat: Likewise.
1208
1209 2011-12-05  Pedro Alves  <pedro@codesourcery.com>
1210
1211         * linux-nat.c (resume_stopped_resumed_lwps): Call
1212         registers_changed.
1213
1214 2011-12-05  Pedro Alves  <pedro@codesourcery.com>
1215
1216         * breakpoint.c: Include record.h.
1217         (breakpoints_always_inserted_mode): Return false when the record
1218         target is in use.
1219
1220 2011-12-05  Pedro Alves  <pedro@codesourcery.com>
1221
1222         * amd64-linux-nat.c (amd64_linux_dr_get): Remove FIXME comment.
1223         Reinstate perror_with_name call on ptrace error.  Remove #if 0.
1224         * i386-linux-nat.c (i386_linux_dr_get): Likewise.
1225         * i386bsd-nat.c (i386bsd_dr_get_status): Likewise.
1226
1227 2011-12-05  Andrey Smirnov  <andrew.smirnov@gmail.com>
1228
1229         * breakpoint.c (init_breakpoint_sal): Remove nested definitions of
1230         `i'(-Wshadow).
1231
1232 2011-12-05  Andrey Smirnov  <andrew.smirnov@gmail.com>
1233
1234         * bcache.c (bcache): Rename `bcache' to `cache'(-Wshadow).
1235
1236 2011-12-05  Andrey Smirnov  <andrew.smirnov@gmail.com>
1237
1238         * amd64-tdep.c (amd64_push_dummy_call): Remove nested definition
1239         of `tdep'(-Wshadow).
1240
1241 2011-12-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
1242
1243         Fix compilation --without-expat.
1244         * solib-svr4.c (svr4_free_so, svr4_free_library_list): Move them here
1245         from ...
1246         [HAVE_LIBEXPAT] (svr4_free_so, svr4_free_library_list): ... here.
1247
1248 2011-12-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
1249             Jan Kratochvil  <jan.kratochvil@redhat.com>
1250
1251         * Makefile.in (XMLFILES): Add library-list-svr4.dtd.
1252         * features/library-list-svr4.dtd: New file.
1253         * remote.c (PACKET_qXfer_libraries_svr4): New.
1254         (remote_protocol_features): new entry for PACKET_qXfer_libraries_svr4.
1255         (remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES_SVR4.
1256         * solib-svr4.c (struct svr4_library_list): New.
1257         [HAVE_LIBEXPAT]: Include xml-support.h.
1258         [HAVE_LIBEXPAT] (svr4_library_list_start_library)
1259         [HAVE_LIBEXPAT] (svr4_library_list_start_list, svr4_library_attributes)
1260         [HAVE_LIBEXPAT] (svr4_library_list_children)
1261         [HAVE_LIBEXPAT] (svr4_library_list_attributes)
1262         [HAVE_LIBEXPAT] (svr4_library_list_elements, svr4_parse_libraries)
1263         [HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries)
1264         [!HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries): New.
1265         (svr4_read_so_list): Extend the corruption message by addresses.
1266         (svr4_current_sos): New variable library_list, call
1267         svr4_current_sos_via_xfer_libraries.
1268         * target.h (enum target_object): New TARGET_OBJECT_LIBRARIES_SVR4.
1269
1270 2011-12-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
1271
1272         PR threads/13448
1273         * dwarf2read.c (decode_locdesc): Handle DW_OP_const8u.
1274         For DW_OP_GNU_push_tls_address increment the value, new comment for it.
1275
1276 2011-12-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
1277
1278         PR breakpoints/13346
1279         * dwarf2read.c (process_psymtab_comp_unit): Set
1280         PSYMTABS_ADDRMAP_SUPPORTED.
1281         * psympriv.h (struct partial_symtab): Comment textlow and texthigh
1282         validity.  New field psymtabs_addrmap_supported.
1283         * psymtab.c (find_pc_sect_psymtab_closer): New gdb_assert on
1284         psymtabs_addrmap_supported.
1285         (find_pc_sect_psymtab): Do not fallback to TEXTLOW and TEXTHIGH for
1286         !PSYMTABS_ADDRMAP_SUPPORTED.
1287         (dump_psymtab, maintenance_info_psymtabs): Print also
1288         psymtabs_addrmap_supported.
1289
1290 2011-12-01  Doug Evans  <dje@google.com>
1291
1292         * python/py-type.c (type_object_methods): Fix "array" doc string.
1293
1294 2011-12-01  Andrew Burgess  <aburgess@broadcom.com>
1295
1296         * source.c (print_source_lines_base): Fix missing braces on else
1297         clause leading to additional output.
1298
1299 2011-11-30  Ulrich Weigand  <uweigand@de.ibm.com>
1300
1301         * s390-nat.c (SUBOFF): Remove.
1302         (s390_native_supply, s390_native_collect): New functions.
1303         (supply_gregset, supply_fpregset): Use s390_native_supply.
1304         (fill_gregset, fill_fpregset): Use s390_native_collect.
1305
1306         * s390-tdep.c (s390_pseudo_register_reggroup_p): Update comment.
1307         (s390_unwind_pseudo_register): New function.
1308         (s390_prologue_frame_unwind_cache): Unwind PSW address and mask
1309         registers instead of PC and CC.
1310         (s390_backchain_frame_unwind_cache): Likewise.
1311         (s390_sigtramp_frame_unwind_cache): Do not unwind PC, CC, or
1312         full GPR pseudos.
1313         (s390_trad_frame_prev_register): New function.
1314         (s390_frame_prev_register): Use it.
1315         (s390_sigtramp_frame_prev_register): Likewise.
1316         (s390_dwarf2_prev_register): Use s390_unwind_pseudo_register.
1317         (s390_dwarf2_frame_init_reg): Unwind PSW address and mask.  Use
1318         special callback to unwind any pseudo.
1319
1320         * features/s390-core32.xml: Add pswm/pswa to save/restore group.
1321         * features/s390-core64.xml: Likewise.
1322         * features/s390x-core64.xml: Likewise.
1323         * features/s390-linux32.c: Regenerate.
1324         * features/s390-linux64.c: Likewise.
1325         * features/s390x-linux64.c: Likewise.
1326
1327 2011-11-30  Ulrich Weigand  <uweigand@de.ibm.com>
1328
1329         * s390-tdep.c (s390_gdbarch_init): Call set_gdbarch_get_siginfo_type.
1330
1331 2011-11-30  Ulrich Weigand  <uweigand@de.ibm.com>
1332
1333         * s390-tdep.c (s390_displaced_step_fixup): Fix processing of LARL
1334         instruction.  Add more diagnostic output.
1335
1336 2011-11-29  Andrey Smirnov  <andrew.smirnov@gmail.com>
1337
1338         * MAINTAINERS (Write After Approval): Add myself to the list.
1339
1340 2011-11-29  Sanjoy Das  <sdas@igalia.com>
1341
1342         * jit.c (add_objfile_entry, jit_reader_try_read_symtab)
1343         (jit_bfd_try_read_symtab): Fix comments.
1344
1345 2011-11-28  DJ Delorie  <dj@redhat.com>
1346
1347         * NEWS: Mention RL78 simulator.
1348
1349 2011-11-28  Joel Brobecker  <brobecker@adacore.com>
1350
1351         * symfile.h (struct quick_symbol_functions): Fix the documentation
1352         of field map_matching_symbols, as symbols are sorted using
1353         strcmp_iw_ordered, not strcmp_iw.
1354
1355 2011-11-28  Paul Hilfinger  <hilfinger@adacore.com>
1356
1357         * symfile.h (struct quick_symbol_functions): Update the
1358         documentation for field map_matching_symbols.
1359
1360 2011-11-28  Joel Brobecker  <brobecker@adacore.com>
1361
1362         * ada-lang.c (compare_names): Fix wrong return value in case
1363         string1 starts with the same contents as string2, followed
1364         by an underscore that do not start a symbol name suffix.
1365
1366 2011-11-28  Phil Muldoon  <pmuldoon@redhat.com>
1367
1368         PR python/13369
1369         PR python/13374
1370
1371         * python/python.c (gdbpy_decode_line): Do not acquire GIL.
1372         * python/py-inferior.c (inferior_to_inferior_object): Ditto.
1373         * python/py-value.c (valpy_nonzero): Use TRY_CATCH to catch GDB
1374         exceptions.
1375         * python/py-type.c (typy_strip_typedefs): Ditto.
1376         (typy_legacy_template_argument): Ditto.
1377         * python/py-inferior.c (inferior_to_inferior_object): Ditto.
1378         * python/py-breakpoint.c (bppy_set_ignore_count): Ditto.
1379
1380 2011-11-27  Joel Brobecker  <brobecker@acacore.com>
1381
1382         * remote.c (remote_get_tracepoint_status): Delete addrbuf
1383         local variable.  Avoid use of sprintf_vma.
1384
1385 2011-11-27  Sanjoy Das  <sdas@igalia.com>
1386
1387         Fix regression in jit.exp.
1388         * jit.c (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
1389         (jit_register_code): Set the jit_objfile_data field to the correct
1390         value.
1391
1392 2011-11-25 Â Uros Bizjak Â <ubizjak@gmail.com>
1393
1394         * alpha-tdep.c (br_opcode): New.
1395         (ldl_l_opcode, ldq_l_opcode, stl_c_opcode, stq_c_opcode): Ditto.
1396         (alpha_deal_with_atomic_sequence): New function.
1397         (alpha_gdbarch_init): Handle single stepping of atomic sequences
1398         with alpha_deal_with_atomic_sequence.
1399
1400 2011-11-24  Tristan Gingold  <gingold@adacore.com>
1401
1402         * machoread.c (oso_el): Remove num_Sections, symbols, offsets
1403         fields.  Add oso_sym, end_sym and nbr_syms.
1404         (macho_register_oso): Change interface.
1405         (macho_symtab_add_minsym): New function.
1406         (macho_symtab_read): Rewritten.
1407         (get_archive_prefix_len): Remove trailing blanks.
1408         (oso_el_compare_name): Add comment.
1409         (struct macho_sym_hash_entry): New structure.
1410         (macho_relocate_common_syms): Remove.
1411         (macho_sym_hash_newfunc): New function.
1412         (macho_resolve_oso_sym_with_minsym): Likewise.
1413         (macho_add_oso_symfile): Rewritten.
1414         (macho_symfile_read_all_oso): Remove trailing blanks.
1415         Adjust code to free oso vector.
1416         (macho_symfile_read): Likewise.
1417         Move code to initialize minimal symbol
1418
1419 2011-11-24  Maciej W. Rozycki  <macro@codesourcery.com>
1420
1421         * mips-tdep.c (extended_offset): Fix formatting.
1422
1423 2011-11-23  Doug Evans  <dje@google.com>
1424
1425         * dwarf2read.c (dw2_lookup_symtab): Add comment.
1426         (dw2_expand_symtabs_with_filename): Ditto.
1427         (dw2_expand_symtabs_matching): Ditto.
1428         (dw2_map_symbol_filenames): Ditto.
1429
1430 2011-11-23  Andrey Smirnov  <andrew.smirnov@gmail.com>
1431
1432         * ada-lang.c (assign_aggregate): Minor reformatting.
1433
1434 2011-11-23  Andrey Smirnov  <andrew.smirnov@gmail.com>
1435
1436         * ada-lang.c (assign_aggregate): Remove declaration of local
1437         variable `i' which is shadowing another variable with the same
1438         name declared in the outer scope.
1439
1440 2011-11-23  Joel Brobecker  <brobecker@adacore.com>
1441
1442         * ada-lang.c (get_base_type): Renames base_type.  Adjust all
1443         calls throughout this file.
1444
1445 2011-11-23  Joel Brobecker  <brobecker@adacore.com>
1446
1447         * gdb-dlfcn.c (gdb_dlopen): Add missing coma in call to
1448         FormatMessage.
1449
1450 2011-11-22  Tom Tromey  <tromey@redhat.com>
1451
1452         PR mi/8444:
1453         * mi/mi-common.h (EXEC_ASYNC_SOLIB_EVENT, EXEC_ASYNC_FORK)
1454         (EXEC_ASYNC_VFORK, EXEC_ASYNC_SYSCALL_ENTRY)
1455         (EXEC_ASYNC_SYSCALL_RETURN, EXEC_ASYNC_EXEC): New constants.
1456         * mi/mi-common.c (async_reason_string_lookup): Add new reasons.
1457         * breakpoint.c (print_it_catch_fork, print_it_catch_vfork)
1458         (print_it_catch_syscall, print_it_catch_exec)
1459         (internal_bkpt_print_it): Use ui_out.  Emit stop reason.
1460         (bpstat_print): Add 'kind' argument.  Handle
1461         TARGET_WAITKIND_LOADED.
1462         * infrun.c (normal_stop): Update for bpstat_print change.  Don't
1463         handle TARGET_WAITKIND_LOADED here.
1464         * breakpoint.h (bpstat_print): Update.
1465
1466 2011-11-22  Tom Tromey  <tromey@redhat.com>
1467
1468         * mi/mi-interp.c (mi_on_normal_stop): Call bpstat_print.
1469
1470 2011-11-22  Tom Tromey  <tromey@redhat.com>
1471
1472         * mi/mi-common.c (_initialize_gdb_mi_common): Remove.
1473         Use static_assert to check the size of
1474         async_reason_string_lookup.
1475         * common/gdb_assert.h (static_assert): New macro.
1476
1477 2011-11-22  Alan Modra  <amodra@gmail.com>
1478
1479         * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Correct branch
1480         destination calculation.  Don't expect >> to sign extend.  Don't
1481         add a break if branch lands inside the sequence anywhere.
1482
1483 2011-11-21  Keith Seitz  <keiths@redhat.com>
1484
1485         * gdb.mi/mi-var-display.exp: Remove XFAIL for c_variable-7.51,
1486         -var-evaluate-expression of an enumeration and fix expected result.
1487         * gdb.mi/mi2-varvdisplay.exp: Likewise.
1488
1489 2011-11-21  Kwok Cheung Yeung  <kcy@codesourcery.com>
1490
1491         * osdata.c (info_osdata_command): Rename nprocs to nrows.  Handle
1492         the case where osdata->items is empty.  Rename column names to a
1493         canonical form to avoid problems with unusual column names.
1494
1495 2011-11-21  Yao Qi  <yao@codesourcery.com>
1496
1497         * MAINTAINERS (Write After Approval): Keep list in alphabetical order.
1498
1499 2011-11-20  Stan Shebs  <stan@codesourcery.com>
1500
1501         * NEWS: Mention tracepoint additions.
1502         * breakpoint.h (struct tracepoint): New field traceframe_usage.
1503         * breakpoint.c (print_one_breakpoint_location): Identify
1504         tracepoints as such when reporting hit counts, report
1505         trace buffer usage.
1506         (create_tracepoint_from_upload): Copy status info.
1507         * tracepoint.h (struct trace_status): Rename error_desc to stop_desc,
1508         add fields user_name, notes, start_time, stop_time.
1509         (struct uploaded_tp): Add fields hit_count, traceframe_usage.
1510         * tracepoint.c (trace_user): New global.
1511         (trace_notes): New global.
1512         (trace_stop_notes): New global.
1513         (start_tracing): Add argument and trace note handling.
1514         (stop_tracing): Ditto.
1515         (trace_start_command): Add notes argument.
1516         (trace_stop_command): Ditto.
1517         (trace_status_command): Report additional status info.
1518         (trace_status_mi): Similarly.
1519         (trace_save): Update, record tracepoint status.
1520         (set_disconnected_tracing): Call target method directly.
1521         (send_disconnected_tracing_value): Remove.
1522         (set_trace_user): New function.
1523         (set_trace_notes): New function.
1524         (set_trace_stop_notes): New function.
1525         (parse_trace_status): Handle additional status.
1526         (parse_tracepoint_status): New function.
1527         (parse_tracepoint_definition): Call it.
1528         (tfile_get_tracepoint_status): New function.
1529         (init_tfile_ops): Use it.
1530         (_initialize_tracepoint): Add new setshows.
1531         * target.h (struct target_ops): New methods to_get_tracepoint_status
1532         and to_set_trace_notes.
1533         (target_get_tracepoint_status): New macro.
1534         (target_set_trace_notes): New macro.
1535         * target.c (update_current_target): Add new methods.
1536         * remote.c (remote_get_tracepoint_status): New function.
1537         (remote_set_trace_notes): New function.
1538         (init_remote_ops): Add them.
1539         * mi/mi-main.c (mi_cmd_trace_start): Add argument to call.
1540         (mi_cmd_trace_stop): Ditto.
1541
1542 2011-11-20  Sanjoy Das  <sdas@igalia.com>
1543
1544         * jit.c: Include regcache.h.
1545         (jit_gdbarch_data, jit_frame_unwind): New static variables.
1546         (jit_unwind_reg_set_impl, free_reg_value_impl)
1547         (jit_unwind_reg_get_impl, jit_frame_sniffer)
1548         (jit_frame_unwind_stop_reason, jit_frame_this_id)
1549         (jit_frame_prev_register, jit_dealloc_cache)
1550         (jit_prepend_unwinder, jit_gdbarch_data_init): New functions.
1551         (jit_inferior_init): Prepend (new) pseudo unwinder by calling
1552         jit_prepend_unwinder.
1553         (_initialize_jit): Register new gdbarch data jit_gdbarch_data.
1554
1555 2011-11-20  Sanjoy Das  <sdas@igalia.com>
1556
1557         * jit.c: Include block.h, dictionary.h and frame-unwind.h.
1558         (add_objfile_entry, jit_target_read_impl, jit_object_open_impl)
1559         (jit_symtab_open_impl, compare_block, jit_block_open_impl)
1560         (jit_symtab_line_mapping_add_impl, jit_symtab_close_impl)
1561         (finalize_symtab, jit_object_close_impl)
1562         (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
1563         (free_objfile_data): New functions.
1564         (_initialize_jit): Register jit_objfile_data with a proper cleanup
1565         function.
1566
1567 2011-11-20  Sanjoy Das  <sdas@igalia.com>
1568
1569         * jit.c: Include gdb-dlfcn.h.
1570         (loaded_jit_reader, reader_init_fn_sym): New static variables.
1571         (jit_reader_load, jit_reader_load_command)
1572         (jit_reader_unload_command): New functions.
1573         (_initialize_jit): Add commands "jit-reader-load" and
1574         "jit-reader-unload".
1575
1576 2011-11-20  Sanjoy Das  <sdas@igalia.com>
1577
1578         * Makefile.in: Add gdb-dlfcn.c and gdb-dlfcn.h to build system.
1579         * config.in: Add new #define HAVE_LIBDL.
1580         * configure.ac: Add check for -ldl.
1581         * configure: Re-generated by autoconf.
1582         * gdb-dlfcn.c: New file.
1583         * gdb-dlfcn.h: New file.
1584
1585 2011-11-20  Sanjoy Das  <sdas@igalia.com>
1586
1587         * config.in: Add new #defines: JIT_READER_DIR and
1588         JIT_READER_DIR_RELOCATABLE.
1589         * configure.ac: New GDB directory entry for jit-reader-dir.
1590         * configure: Re-generated by autoconf.
1591         * jit.c: New static variable: const char *jit_reader_dir.
1592         (_initialize_jit): Relocate jit_reader_dir.
1593
1594 2011-11-20  Sanjoy Das  <sdas@igalia.com>
1595
1596         * Makefile.in: Add jit-reader.h as a header.  Have it installed in
1597         $(includedir)/gdb.
1598         * configure.ac: Generate a correct value for TARGET_PTR for
1599         jit-reader.h.  Tell configure to generate jit-reader.h from
1600         jit-reader.in.
1601         * configure: Re-generated by autoconf.
1602         * jit-reader.in: New file.
1603         * jit.c: Include jit-reader.h.
1604
1605 2011-11-20  Sanjoy Das  <sdas@igalia.com>
1606
1607         * MAINTAINERS (Write After Approval): Add myself to the list.
1608
1609 2011-11-18  Ulrich Weigand  <uweigand@de.ibm.com>
1610
1611         * findvar.c (read_frame_register_value): Respect value_offset
1612         of the register value.  Remove big-endian special case.
1613
1614 2011-11-18  Tom Tromey  <tromey@redhat.com>
1615
1616         PR build/7196:
1617         * remote.c (putpkt_for_catch_errors): New function.
1618         (remote_kill): Use it.
1619
1620 2011-11-18  Yao Qi  <yao@codesourcery.com>
1621
1622         * breakpoint.c (create_breakpoint): Produce query message according to
1623         breakpoint's type.
1624         Allocate tracepoint per correct type.
1625         Don't check SALs for pending fast tracepoints.
1626         * tracepoint.c (process_tracepoint_on_disconnect): New.
1627         (disconnect_tracing): Call process_tracepoint_on_disconnect.
1628
1629 2011-11-18  Yao Qi  <yao@codesourcery.com>
1630
1631         * breakpoint.c (install_breakpoint):  Add one more parameter so that
1632         update_global_location_list is called conditionally.
1633         (create_fork_vfork_event_catchpoint): Update.
1634         (create_syscall_event_catchpoint): Update.
1635         (create_breakpoint_sal): Update.
1636         (create_breakpoint_sal): Update. Call do_cleanups before
1637         install_breakpoint.
1638         * ada-lang.c (create_ada_exception_catchpoint): Update.
1639         * breakpoint.h (install_breakpoint): Update declaration.
1640
1641 2011-11-16  Ulrich Weigand  <uweigand@de.ibm.com>
1642
1643         * spu-tdep.c (spu_return_value): Fix handling of
1644         TYPE_CALLING_CONVENTION annotation.
1645
1646 2011-11-16  Ulrich Weigand  <uweigand@de.ibm.com>
1647
1648         * skip.c (skip_function_command): Work around uninitialized
1649         variable warning.
1650
1651 2011-11-16  David S. Miller  <davem@davemloft.net>
1652
1653         * utils.c (report_command_stats): Cast delta_wall_time 'tv_sec' and
1654         'tv_usec' to long for printf since these fields have a type which
1655         varies.
1656
1657 2011-11-15  Doug Evans  <dje@google.com>
1658
1659         * buildsym.c (add_symbol_to_list): Delete outdated comment.
1660
1661 2011-11-15  Paul Koning  <paul_koning@dell.com>
1662
1663         * python/py-type.c (typy_get_composite): New function.
1664         (typy_nonzero): New function.
1665         (typy_values): Rename from typy_fields.
1666         (typy_fields): New function.
1667         (typy_length): Raise exception if not struct, union, or enum type.
1668         (typy_getitem): Ditto.
1669         (typy_has_key): Ditto.
1670         (typy_make_iter): Ditto.
1671
1672 2011-11-15  Doug Evans  <dje@google.com>
1673
1674         PR gdb/8367
1675         * NEWS: Mention new parameter basenames-may-differ.
1676         * dwarf2read.c (dw2_lookup_symtab): Avoid calling gdb_realpath if
1677         ! basenames_may_differ.
1678         * psymtab.c (lookup_partial_symtab): Ditto.
1679         * symtab.c (lookup_symtab): Ditto.
1680         (basenames_may_differ): New global.
1681         (_initialize_symtab): New parameter basenames-may-differ.
1682         * symtab.h (basenames_may_differ): Declare.
1683
1684 2011-11-15  Pedro Alves  <pedro@codesourcery.com>
1685             Luis Machado  <lgustavo@codesourcery.com>
1686
1687         * auxv.c: Include observer.h.
1688         (auxv_inferior_data_cleanup): New.
1689         (invalidate_auxv_cache_inf): New.
1690         (invalidate_auxv_cache): New.
1691         (get_auxv_inferior_data): New.
1692         (auxv_inferior_data): New static global.
1693         (auxv_info): New structure.
1694         (target_auxv_search): Use get_auxv_inferior_data instead of
1695         target_read_alloc and don't free cached buffers.
1696         (fprint_target_auxv): Likewise
1697         (_initialize_auxv): Register per-inferior auxv cache and register
1698         observers to invalidate auxv cache when needed.
1699
1700 2011-11-14  Doug Evans  <dje@google.com>
1701
1702         PR gdb/7200 Make "!" an alias for "shell".
1703         * NEWS: Add mention.
1704         * cli/cli-cmds.c (init_cli_cmds): Remove xdb_commands condition on
1705         adding "!" command, always add it.
1706         * cli/cli-decode.c (find_command_name_length): Recognize "!" as a
1707         command of length one.
1708
1709 2011-11-14  Stan Shebs  <stan@codesourcery.com>
1710             Kwok Cheung Yeung  <kcy@codesourcery.com>
1711
1712         * NEWS: Document shorter fast tracepoints and qTMinFTPILen packet.
1713         * i386-tdep.c (i386_fast_tracepoint_valid_at): Query target for
1714         the minimum instruction size for fast tracepoints.
1715         * target.h (struct target_ops): Add new method
1716         to_get_min_fast_tracepoint_insn_len.
1717         (target_get_min_fast_tracepoint_insn_len): New.
1718         * target.c (update_current_target): Set up new target operation.
1719         * remote.c (remote_write_bytes_aux): Fix typo.
1720         (remote_get_min_fast_tracepoint_insn_len): New.
1721         (init_remote_ops): Initialize new field.
1722
1723 2011-11-14  Tom Tromey  <tromey@redhat.com>
1724
1725         * tracepoint.c (encode_actions_1): Use the location's gdbarch.
1726         (encode_actions): Likewise.
1727
1728 2011-11-14  Yao Qi  <yao@codesourcery.com>
1729
1730         * remote.c (struct remote_state): <install_in_trace> new field.
1731         (PACKET_InstallInTrace): New enum value.
1732         (remote_install_in_trace_feature): Support InstallInTrace.
1733         (remote_supports_install_in_trace): Likewise.
1734         (remote_protocol_features): Likewise.
1735         (_initialize_remote): Likewise.
1736         (remote_can_download_tracepoint): New.
1737         * target.h (struct target): New field
1738         `to_can_download_tracepoint'.
1739         (target_can_download_tracepoint): New macro.
1740         * target.c (update_current_target): Update.
1741         * breakpoint.h (struct bp_location): Add comment on field
1742         `duplicate'.
1743         * breakpoint.c (should_be_inserted): Don't differentiate breakpoint
1744         and tracepoint.
1745         (remove_breakpoints): Don't remove tracepoints.
1746         (tracepoint_locations_match ): New.
1747         (breakpoint_locations_match): Call it.
1748         (disable_breakpoints_in_unloaded_shlib): Handle tracepoint.
1749         (download_tracepoint_locations): New.
1750         (update_global_location_list): Call it.
1751         * tracepoint.c (find_matching_tracepoint): Delete.
1752         (find_matching_tracepoint_location): Renamed from
1753         find_matching_tracepoint.  Return bp_location rather than
1754         tracepoint.
1755         (merge_uploaded_tracepoints): Set `inserted' field to 1 if
1756         tracepoint is found.
1757
1758 2011-11-14  Yao Qi  <yao@codesourcery.com>
1759
1760         * target.h (struct target): <to_download_tracepoint> Change type
1761         of parameter from tracepoint to bp_location.
1762         * target.c (update_current_target): Update.
1763         * tracepoint.c (start_tracing): Update.
1764         * remote.c (remote_download_tracepoint): Remove loop for each location
1765         of a tracepoint.
1766
1767 2011-11-14  Maciej W. Rozycki  <macro@codesourcery.com>
1768
1769         * i386-nat.c (i386_insert_hw_breakpoint): Call
1770         i386_update_inferior_debug_regs.
1771         (i386_remove_hw_breakpoint): Likewise.
1772
1773 2011-11-14  Yao Qi  <yao@codesourcery.com>
1774
1775         * breakpoint.c (init_raw_breakpoint): Call
1776         add_location_to_breakpoint to replace duplicated code.
1777         (add_location_to_breakpoint): Adjust the breakpoint's
1778         address prior to allocating a location.
1779
1780 2011-11-12  Matt Rice  <ratmice@gmail.com>
1781
1782         * macrocmd.c (macro_no_macro_info): New function.
1783         (macro_expand_command): Use macro_no_macro_info.
1784         (macro_expand_once_command): Ditto.
1785         (info_macro_command): Add argument processing,
1786         move info_definitions_command here.
1787         (_initialize_macrocmd): Remove info definitions command.
1788         Add arguments to info macro help text.
1789         * NEWS: Replace info definitions command with new info macro options.
1790
1791 2011-11-11  Keith Seitz  <keiths@redhat.com>
1792
1793         PR gdb/12843
1794         * linespec.c (locate_first_half): Keep ':' if it looks
1795         like it could be part of a Windows path starting with
1796         a drive letter.
1797
1798 2011-11-10  Pedro Alves  <pedro@codesourcery.com>
1799
1800         * linux-nat.c (linux_nat_wait): Don't force waking up the event
1801         loop when returning a TARGET_WAITKIND_NO_RESUMED.
1802
1803 2011-11-10  Pedro Alves  <pedro@codesourcery.com>
1804
1805         * target.c (target_waitstatus_to_string): Handle
1806         TARGET_WAITKIND_NO_RESUMED.
1807
1808 2011-11-10  Doug Evans  <dje@google.com>
1809
1810         * dwarf2read.c (dw2_map_symbol_filenames): New parameter
1811         `need_fullname'.
1812         * psymtab.c (map_symbol_filenames_psymtab): Ditto.
1813         (map_partial_symbol_filenames): Ditto.  All callers updated.
1814         * psymtab.h (map_partial_symbol_filenames): Update prototype.
1815         * symfile.h (struct quick_symbol_functions, map_symbol_filenames): New
1816         parameter need_fullname.
1817
1818         * psymtab.c (psymtab_to_fullname): Use cached copy if it exists.
1819         * source.c (symtab_to_fullname): Ditto.
1820
1821         * defs.h (is_cplus_marker, set_demangling_style): Moved to ...
1822         * gdb-demangle.h: ... here.  New file.
1823         * demangle.c: #include "gdb-demangle.h".
1824         (_initialize_demangler): Use initialize_file_ftype for prototype.
1825         Move "set demangle" and "set asm-demangle" parameters here from utils.c
1826         (demangle, show_demangle, asm_demangle, show_asm_demangle): Move here
1827         from utils.c
1828         * utils.c: Update. #include "gdb-demangle.h".
1829         * symtab.h (asm_demangle): Delete.
1830         (demangle): Move declaration next to use.
1831         * breakpoint.c: #include "gdb-demangle.h" instead of "demangle.h".
1832         * dwarf2read.c: #include "gdb-demangle.h".
1833         * gnu-v2-abi.c: Ditto.
1834         * jv-typeprint.c: Ditto.
1835         * mdebugread.c: Ditto.
1836         * p-typeprint.c: Ditto.
1837         * stabsread.c: Ditto.
1838         * printcmd.c: Ditto.
1839         (asm_demangle): Delete declaration.
1840         * tui/tui-stack.c: #include "gdb-demangle.h".
1841
1842         * python/py-type.c (typy_fields_items): Call check_typedef.
1843
1844 2011-11-10  Joel Brobecker  <brobecker@adacore.com>
1845
1846         * findvar.c (read_frame_register_value): Read the correct bytes
1847         from registers on big-endian architectures.
1848
1849 2011-11-10  Tom Tromey  <tromey@redhat.com>
1850
1851         * procfs.c (load_syscalls): Make a cleanup.
1852         (open_procinfo_files): fd==0 is ok.
1853
1854 2011-11-10  Joel Brobecker  <brobecker@adacore.com>
1855
1856         * procfs.c (iterate_over_mappings): Call do_cleanups before
1857         returning.
1858
1859 2011-11-09  Doug Evans  <dje@google.com>
1860
1861         * gdbtypes.c (check_typedef): Document that this function can
1862         throw an exception.
1863
1864 2011-11-09  Tom Tromey  <tromey@redhat.com>
1865
1866         PR c++/13342:
1867         * valops.c (value_full_object): Return early if real type is
1868         smaller than the enclosing type.
1869
1870 2011-11-08  Yao Qi  <yao@codesourcery.com>
1871
1872         * amd64-tdep.c (amd64_relocate_instruction): Make it static.
1873
1874 2011-11-08  Meador Inge  <meadori@codesourcery.com>
1875
1876         * arm-tdep.c (thumb_analyze_prologue): Always fallback on the SP
1877         register when the frame can't be determined.
1878         * arm-tdep.c (arm_analyze_prologue): Ditto.
1879
1880 2011-11-07  Stan Shebs  <stan@codesourcery.com>
1881
1882         * MAINTAINERS: Move Michael Snyder to Past Maintainers.
1883
1884 2011-11-07  Joel Brobecker  <brobecker@adacore.com>
1885
1886         * infrun.c (handle_inferior_event): Minor reformatting.
1887
1888 2011-11-05  Doug Evans  <dje@google.com>
1889
1890         * source.c (forget_cached_source_info_for_objfile): Move call to
1891         objfile->sf->qf->forget_cached_source_info outside of
1892         ALL_OBJFILE_SYMTABS loop.
1893         (forget_cached_source_info): Delete unused variable `s'.
1894
1895 2011-11-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
1896
1897         * i386-nat.c (dr_ref_count): Remove unused variable.
1898
1899 2011-11-05  Doug Evans  <dje@google.com>
1900
1901         * main.c (captured_main): Set lim_at_start before calling
1902         make_command_stats_cleanup.
1903
1904 2011-11-04  Doug Evans  <dje@google.com>
1905
1906         * utils.c: #include "timeval-utils.h".
1907         (cmd_stats): Rename start_time to start_cpu_time.
1908         New member start_wall_time.
1909         (report_command_stats): Report wall time.
1910         (make_command_stats_cleanup): Record start wall time.
1911
1912 2011-11-04  Tom Tromey  <tromey@redhat.com>
1913
1914         * cp-namespace.c (cp_lookup_symbol_imports): Reindent.
1915
1916 2011-11-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1917
1918         * coff-pe-read.c: Include defs.h before bfd.h.
1919
1920 2011-11-04  Phil Muldoon  <pmuldoon@redhat.com>
1921
1922         PR Python/13345
1923
1924         * python/python.c (python_run_simple_file): Expand tilde in path.
1925
1926 2011-11-04  Phil Muldoon  <pmuldoon@redhat.com>
1927
1928         PR Python/13363
1929
1930         * python/py-type.c (typy_lookup_type): Do not return a type in
1931           an exception handler.
1932
1933 2011-11-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
1934             Eli Zaretskii  <eliz@gnu.org>
1935
1936         * linux-nat.c (_initialize_linux_nat): Improve help
1937         for `info proc stat', `info proc status', `info proc cwd',
1938         `info proc cmdline' and `info proc exe'.
1939
1940 2011-11-02  Stan Shebs  <stan@codesourcery.com>
1941
1942         String collection for tracepoints.
1943         * NEWS: Mention string collection.
1944         * common/ax.def (tracenz): New bytecode.
1945         * ax-gdb.h (trace_string_kludge): Declare.
1946         * ax-gdb.c: Include valprint.h and c-lang.h.
1947         (trace_string_kludge): New global.
1948         (gen_traced_pop): Add string case.
1949         (agent_command): Add string case.
1950         * tracepoint.h (decode_agent_options): Declare.
1951         * tracepoint.c: Include cli-utils.h.
1952         (decode_agent_options): New function.
1953         (validate_actionline): Call it.
1954         (encode_actions_1): Ditto.
1955         * target.h (struct target_ops): New method to_supports_string_tracing.
1956         (target_supports_string_tracing): New macro.
1957         * target.c (update_current_target): Add to_supports_string_tracing.
1958         * remote.c (struct remote_state): New field string_tracing.
1959         (remote_string_tracing_feature): New function.
1960         (remote_protocol_features): New feature tracenz.
1961         (remote_supports_string_tracing): New function.
1962         (init_remote_ops): Set to_supports_string_tracing.
1963
1964 2011-11-02  Pedro Alves  <pedro@codesourcery.com>
1965             Jan Kratochvil  <jan.kratochvil@redhat.com>
1966
1967         * linux-nat.c: Include cli/cli-utils.h.
1968         (enum info_proc_what): New.
1969         (linux_nat_info_proc_cmd): Rename to ...
1970         (linux_nat_info_proc_cmd_1): ... here.  Remove variables argv and all.
1971         New parameter what.  Initialize cmdline_f, cwd_f, exe_f, mappings_f,
1972         status_f and stat_f from WHAT.  Throw error on extra parameters.
1973         (linux_nat_info_proc_cmd, linux_nat_info_proc_cmd_mappings)
1974         (linux_nat_info_proc_cmd_stat, linux_nat_info_proc_cmd_status)
1975         (linux_nat_info_proc_cmd_cwd, linux_nat_info_proc_cmd_cmdline)
1976         (linux_nat_info_proc_cmd_exe, linux_nat_info_proc_cmd_all): New.
1977         (_initialize_linux_nat): New variable info_proc_cmdlist.  Install `info
1978         proc mappings', `info proc stat`, `info proc status', `info proc cwd',
1979         `info proc cmdline', `info proc exe' and `info proc all' as real
1980         subcommands of `info proc'.
1981
1982 2011-11-01  Justin Lebar  <justin.lebar@gmail.com>
1983
1984         * Makefile.in: (SFILES): Add skip.c.
1985         (HFILES_NO_SRCDIR): Add skip.h.
1986         (COMMON_OBS): Add skip.o.
1987         * skip.h, skip.c: New.
1988         * breakpoint.h (set_default_breakpoint): Remove.
1989         (get_sal_arch): Declare.
1990         * breakpoint.c: Remove default_breakpoint_valid,
1991         default_breakpoint_address, default_breakpoint_symtab,
1992         default_breakpoint_line, default_breakpoint_pspace variables.
1993         (get_sal_arch): Make public.
1994         (set_default_breakpoint): Remove.
1995         (parse_breakpoint_sals, create_breakpoint, clear_command,
1996         decode_line_spec_1): Remove uses of default_breakpoint variables;
1997         replaced with function calls into stack.c.
1998         * cli/cli-cmds.h: Add cmd_list_element *skiplist.
1999         * cli/cli-cmds.c: Add skiplist.
2000         (init_cmd_lists): Initialize skiplist.
2001         (init_cli_cmds): Fix comment (classes of commands appear in
2002         alphabetical order).
2003         * infrun.c (handle_inferior_event): Add check that we don't step into
2004         a function whose pc is marked for skip.
2005         * stack.c: Declare last_displayed_sal_valid, last_displayed_pspace,
2006         last_displayed_addr, last_displayed_symtab, last_displayed_line
2007         variables.
2008         (set_last_displayed_sal): New static function.
2009         (print_frame_info): Switch call to set_default_breakpoint to call to
2010         set_last_displayed_sal.
2011         (clear_last_displayed_sal, last_displayed_sal_is_valid,
2012         get_last_displayed_pspace, get_last_displayed_addr,
2013         get_last_displayed_symtab, get_last_displayed_line,
2014         get_last_displayed_sal): New public functions.
2015         * stack.h (clear_last_displayed_sal, last_displayed_sal_is_valid,
2016         get_last_displayed_pspace, get_last_displayed_addr,
2017         get_last_displayed_symtab, get_last_displayed_line,
2018         get_last_displayed_sal): Declare.
2019
2020 2011-11-01  Justin Lebar <justin.lebar@gmail.com>
2021
2022         * MAINTAINERS (Write After Approval): Add myself to the list.
2023
2024 2011-10-29  Yao Qi  <yao@codesourcery.com>
2025
2026         * infcmd.c (disconnect_command): Call disconnect_tracing.
2027
2028 2011-10-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
2029
2030         Code cleanup.
2031         * symtab.c (skip_prologue_sal): Code reformatting.
2032
2033 2011-10-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
2034
2035         PR symtab/13208
2036         * jit.c (jit_register_code): Remove unused variable my_cleanups.  Check
2037         for NULL from bfd_open_from_target_memory.  Fix ownership of NBFD and
2038         SAI.
2039
2040 2011-10-28  Pedro Alves  <pedro@codesourcery.com>
2041
2042         * linux-nat.c (linux_nat_filter_event): Remove `options'
2043         parameter, and dead code that used it.  If we're handling a
2044         PTRACE_EVENT_EXEC event, and the thread group leader is no longer
2045         in our lwp list, re-add it.
2046         (check_zombie_leaders): New.
2047         (linux_nat_wait_1): Remove `options' and `pid' locals.  Always
2048         wait for children with WNOHANG, and always wait for all children.
2049         Don't check for no resumed children upfront.  Simplify wait loop.
2050         Check for zombie thread group leaders after handling all wait
2051         statuses.  Return TARGET_WAITKIND_NO_RESUMED if there no
2052         unwaited-for children left.
2053         * infrun.c (fetch_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
2054         (handle_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
2055         (normal_stop): Handle TARGET_WAITKIND_NO_RESUMED.
2056         * target.h (enum target_waitkind) <TARGET_WAITKIND_NO_RESUMED>: New.
2057
2058 2011-10-28  Sterling Augustine  <saugustine@google.com>
2059
2060         * psymtab.c (map_symbol_filenames_psymtab): Call QUIT.
2061         * symtab.c (free_completion_list): New function.
2062         (do_free_completion_list): Likewise.
2063         (default_make_symbol_completion_list_break_on): New variable
2064         back_to. Call make_cleanup and discard_cleanups.
2065         (make_source_files_completion_list): Likewise.
2066
2067 2011-10-28  Paul Koning  <paul_koning@dell.com>
2068
2069         * python/lib/gdb/types.py (deep_items): Rename from deepitems.
2070         * NEWS: Mention deep_items.
2071
2072 2011-10-28  Alen Skondro  <askondro@gmail.com>
2073
2074         * ser-tcp.c [USE_WIN32API] (ETIMEDOUT): Don't define if already
2075         defined.
2076
2077 2011-10-27  Meador Inge  <meadori@codesourcery.com>
2078
2079         * MAINTAINERS (Write After Approval): Add myself to the list.
2080
2081 2011-10-27  Joel Brobecker  <brobecker@adacore.com>
2082
2083         * value.h (read_frame_register_value): Add declaration.
2084         * findvar.c (read_frame_register_value): New function.
2085         (value_from_register): Use read_frame_register_value
2086         instead of get_frame_register_value + value_contents_copy
2087         to get value contents.
2088
2089 2011-10-27  Doug Evans  <dje@google.com>
2090
2091         * cli/cli-cmds.c (source_script_with_search): Pass full path to
2092         source_script_from_stream if it may have been found on the search path.
2093         * python/py-auto-load.c (source_section_scripts): Pass full path to
2094         source_python_script_for_objfile.
2095         * python/python.c (source_python_script): Delete stream parameter.
2096         All callers updated.
2097         (source_python_script_for_objfile): Ditto.
2098         * python/python-internal.h (source_python_script_for_objfile): Update.
2099         * python/python.h (source_python_script): Update.
2100
2101 2011-10-27  Tom Tromey  <tromey@redhat.com>
2102
2103         * ada-lang.h (ada_start_decode_line_1, ada_finish_decode_line_1)
2104         (ada_sals_for_line): Remove declarations.
2105
2106 2011-10-27  Kevin Pouget  <kevin.pouget@st.com>
2107
2108         Move unwind reasons to an external .def file
2109         * frame.c (frame_stop_reason_string): Rewrite using
2110         unwind_stop_reasons.def.
2111         * frame.h (enum unwind_stop_reason): Likewise.
2112         * python/py-frame.c (gdbpy_initialize_frames): Likewise.
2113         (gdbpy_frame_stop_reason_string): Use new enum unwind_stop_reason
2114         constants for bound-checking.
2115         * unwind_stop_reasons.def: New file.
2116         * stack.c (backtrace_command_1): Handle UNWIND_FIRST_ERROR as an alias
2117         instead of a distinct value.
2118
2119 2011-10-27  Phil Muldoon  <pmuldoon@redhat.com>
2120
2121         PR python/13331
2122
2123         * python/py-function.c (fnpy_call): Check 'args' is not NULL.
2124         (convert_values_to_python): Return on Python tuple allocation
2125         failure.  Return NULL on value conversion error.
2126
2127 2011-10-27  Phil Muldoon  <pmuldoon@redhat.com>
2128
2129         * python/py-breakpoint.c (bppy_set_enabled): Use TRY_CATCH.
2130         (bppy_set_task): Ditto.
2131         (bppy_delete_breakpoint): Ditto.
2132         * python/py-symbol.c (gdbpy_lookup_symbol): Ditto.
2133         (gdbpy_lookup_global_symbol): Ditto.
2134         * python/py-lazy-string.c (stpy_convert_to_value): Ditto.
2135         * python/py-frame.c (frapy_is_valid): Ditto.
2136         (frame_info_to_frame_object): Ditto.
2137         * python/py-type.c (typy_lookup_type): Ditto.
2138         (typy_getitem): Ditto.
2139         (typy_has_key): Ditto.
2140         (typy_richcompare): Use TRY_CATCH.  Do not return Py_NE on error.
2141
2142 2011-10-26  Joel Brobecker  <brobecker@adacore.com>
2143
2144         * gdbarch.h: Regenerate.
2145
2146 2011-10-26  Meador Inge  <meadori@codesourcery.com>
2147
2148         * gdbarch.sh (function_list): Use 'pstring' when printing
2149         'gcore_bfd_target'.
2150         * gdbarch.c: Regenerate.
2151
2152 2011-10-26  Ulrich Weigand  <uweigand@de.ibm.com>
2153
2154         * regcache.c (registers_changed_ptid): Invalidate thread architecture
2155         and frame caches if PTID refers to all threads of a process.
2156
2157 2011-10-26  Ulrich Weigand  <uweigand@de.ibm.com>
2158
2159         * spu-tdep.c (spu_catch_start): Pass non-NULL breakpoint ops
2160         to create_breakpoint.
2161
2162 2011-10-26  Ulrich Weigand  <uweigand@de.ibm.com>
2163
2164         * ppc-sysv-tdep.c (ppc_sysv_use_opencl_abi): New function.
2165         (ppc_sysv_abi_push_dummy_call): Use it.
2166         (do_ppc_sysv_return_value): Likewise.
2167         (ppc64_sysv_abi_push_dummy_call): Likewise.
2168         (ppc64_sysv_abi_return_value): Likewise.
2169
2170 2011-10-26  Paul Koning  <paul_koning@dell.com>
2171
2172         * python/lib/gdb/types.py (deepitems): New function.
2173         
2174 2011-10-25  Paul Koning  <paul_koning@dell.com>
2175
2176         PR python/13327
2177         
2178         * python/py-value.c (value_to_value_object): Remove fetching of
2179         the value if it was lazy.
2180         (valpy_get_is_lazy): New function.
2181         (valpy_fetch_lazy): New function.
2182
2183 2011-10-24  Joel Brobecker  <brobecker@adacore.com>
2184
2185         * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Do not check
2186         FUNC_TYPE's calling convention if FUNC_TYPE is not a function.
2187
2188 2011-10-24  Pedro Alves  <pedro@codesourcery.com>
2189
2190         * linux-nat.c (linux_handle_extended_wait): When handling a clone
2191         event, in non-stop, if not stopping, make sure the new lwp has
2192         last_resume_kind set to resume_continue.  Assert that when we're
2193         resuming the new lwp, its last_resume_kind is resume_continue.
2194
2195 2011-10-24  Pedro Alves  <pedro@codesourcery.com>
2196
2197         * infrun.c (handle_inferior_event): Don't assume inferior_ptid is
2198         already set when marking the event thread as not executing in
2199         non-stop mode.
2200
2201 2011-10-24  Pedro Alves  <pedro@codesourcery.com>
2202
2203         * infrun.c (handle_inferior_event): Add debug output for
2204         TARGET_WAITKIND_NO_HISTORY.
2205
2206 2011-10-24  Phil Muldoon  <pmuldoon@redhat.com>
2207
2208         * NEWS: Move set/show extended-prompt to "New Options". Expand
2209         description. Fix typos.
2210
2211 2011-10-24  Phil Muldoon  <pmuldoon@redhat.com>
2212
2213         PR python/13310
2214
2215         * python/py-param.c (call_doc_function): Correctly deference on
2216         function exit.
2217
2218 2011-10-21  Joel Brobecker  <brobecker@adacore.com>
2219
2220         * ada-tasks.c (print_ada_task_info): Fix computation of
2221         number of tasks displayed in command output.
2222
2223 2011-10-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
2224             Ulrich Weigand  <uweigand@de.ibm.com>
2225
2226         * dwarf2-frame-tailcall.c: Include dwarf2-frame.h.
2227         (dwarf2_tailcall_prev_register_first): Use dwarf2_frame_cfa.
2228         (dwarf2_tailcall_sniffer_first): Remove variable pc_regnum.  Replace
2229         gdbarch_pc_regnum and frame_unwind_register_unsigned by
2230         gdbarch_unwind_pc.
2231
2232 2011-10-20  Cary Coutant  <ccoutant@google.com>
2233
2234         * dwarf2read.c (dw2_get_file_names): Move adjustment for type
2235         section to...
2236         (partial_read_comp_unit_head): ...here.  Add is_debug_type_section
2237         flag.  Adjust all callers.
2238         (process_psymtab_comp_unit): Remove adjustment for type section.
2239
2240 2011-10-20  Aleksandar Ristovski  <aristovski@qnx.com>
2241
2242         * cp-namespace.c (cp_scan_for_anonymous_namespaces): Changed function
2243         arguments by adding OBJFILE.  Instead of getting objfile from
2244         symbol's symtab, use new argument OBJFILE.
2245         * cp-support.h (cp_scan_for_anonymous_namespaces): Changed function
2246         arguments by adding OBJFILE.
2247         * gdb/dwarf2read.c (new_symbol_full): Change call to
2248         cp_scan_for_anonymous_namespaces to match new signature.
2249         * gdb/stabsread.c (define_symbol): Change call to
2250         cp_scan_for_anonymous_namespaces to match new signature.
2251
2252 2011-10-20  Phil Muldoon  <pmuldoon@redhat.com>
2253
2254         PR python/13308
2255         PR python/13309
2256
2257         * python/py-breakpoint.c (gdbpy_breakpoints): Fix List reference
2258         leak.
2259         * python/py-inferior.c (gdbpy_inferiors): Fix List reference
2260         leak.  Delete unused variables.
2261
2262 2011-10-20  Phil Muldoon  <pmuldoon@redhat.com>
2263
2264         PR python/12656
2265
2266         * python/py-frame.c (frapy_read_var): Use const struct *block.
2267         * python/py-type.c (typy_lookup_typename): Likewise.
2268         (typy_lookup_type): Likewise.
2269         (typy_legacy_template_argument): Likewise.
2270         (typy_template_argument): Likewise.
2271         (gdbpy_lookup_type): Likewise.
2272         * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
2273         * python/py-block.c (blpy_block_object): Likewise.
2274         (blpy_iter): Likewise.
2275         (blpy_get_start): Likewise.
2276         (blpy_get_end): Likewise.
2277         (blpy_get_function): Likewise.
2278         (blpy_get_superblock): Likewise.
2279         (set_block):  Likewise.
2280         (block_to_block_object): Likewise.
2281         (block_object_to_block): Likewise.
2282         (blpy_is_valid): Likewise.
2283         (blpy_get_global_block): New function.
2284         (blpy_get_static_block): New function.
2285         (blpy_is_global): New function.
2286         (blpy_is_static): New function.
2287         * blockframe.c (block_innermost_frame): Likewise.
2288         * valops.c (value_of_variable): Likewise.
2289         * frame.h: Update prototypes.
2290         * python/python-internal.h: Likewise.
2291         * value.h: Likewise.
2292
2293 2011-10-19  Cary Coutant  <ccoutant@google.com>
2294
2295         * dwarf2read.c (create_debug_types_hash_table): Fix size of
2296         type_offset field.
2297
2298 2011-10-19  Cary Coutant  <ccoutant@google.com>
2299
2300         * dwarf2read.c (peek_abbrev_code): New function.
2301         (dw2_get_file_names): Check for dummy compilation units.
2302         (create_debug_types_hash_table): Likewise.
2303         (process_psymtab_comp_unit): Likewise.
2304         (load_partial_comp_unit): Likewise.
2305         (load_full_comp_unit): Likewise.
2306
2307 2011-10-18  Aleksandar Ristovski  <aristovski@qnx.com>
2308
2309         * solib-svr4.c (read_program_header): New variables pt_phdr, pt_phdr_p,
2310         initialize them from target PT_PHDR p_vaddr, relocate sect_addr by
2311         pt_phdr if PT_PHDR was found.
2312
2313 2011-10-17  Joost van der Sluis  <joost@cnoc.nl>
2314
2315         * gdbtypes.h: Added TYPE_SAFE_NAME macro to get the name of a
2316         type or "<unnamed type"> when there is no name assigned.
2317         * gnu-v3-abi.c (gnuv3_rtti_type): Use TYPE_SAFE_NAME macro to
2318         avoid a sigint when no name is assigned.
2319
2320 2011-10-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
2321
2322         Revert:
2323         2011-07-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
2324         * dwarf2expr.c (ctx_no_read_reg): New function.
2325         * dwarf2expr.h (ctx_no_read_reg): New declaration.
2326         * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
2327         (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
2328         (decode_locdesc): Replace by a caller of dwarf_expr_eval.
2329
2330 2011-10-16  Doug Evans  <dje@google.com>
2331
2332         * NEWS: Document python gdb.printing.register_pretty_printer's new
2333         `replace' parameter.
2334
2335 2011-10-14  Keith Seitz  <keiths@redhat.com>
2336
2337         PR c++/13225
2338         * eval.c (evaluate_subexp_standard): Do not construct
2339         an array of types; pass the value array directly to
2340         find_overload_match.
2341         * gdbtypes.h (NULL_POINTER_CONVERSION_BADNESS): Declare.
2342         (rank_function): Take an array of values instead of types.
2343         (rank_one_type): Add struct value * parameter.
2344         * gdbtypes.c (NULL_POINTER_CONVERSION_BADNESS): Define.
2345         (rank_function): For each argument, pass the argument's
2346         value to rank_one_type.
2347         (rank_one_type): Add VALUE parameter.
2348         If the parameter type is a pointer and the argument type
2349         is an integer, return NULL_POINTER_CONVERSION_BADNESS if
2350         VALUE is zero.
2351         Update all calls to rank_one_type, passing NULL for new
2352         VALUE parameter.
2353         * valarith.c (value_user_defined_cpp_op): Do not construct
2354         an array of types; pass the value array directly to
2355         find_overload_match.
2356         * valops.c (find_overload_method_list): Take an array of
2357         values instead of types.
2358         Save the type of OBJP for later use.
2359         Update calls to find_oload_champ, and find_oload_champ_namespace.
2360         (find_oload_champ_namespace): Take an array of values instead
2361         of types.
2362         (find_oload_champ_namespace_loop): Likewise.
2363         (find_oload_champ): Likewise.
2364         (classify_oload_match): Inspect all arguments
2365         until INCOMPATIBLE is found. Return the worst badness found
2366         otherwise.
2367         (compare_parameters): Update call to rank_one_type.
2368         * value.h (find_overload_match): Take an array of values instead
2369         of types.
2370
2371 2011-10-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
2372
2373         Drop lazy lm_info reading.
2374         * solib-svr4.c (struct lm_info): Remove field lm.  New fields l_addr_p,
2375         l_addr_inferior, l_ld, l_next, l_prev and l_name.
2376         (lm_info_read): New function.
2377         (lm_addr_from_link_map, lm_dynamic_from_link_map): Remove.
2378         (lm_addr_check): Use l_addr_p.  No longer use lm_addr_from_link_map and
2379         lm_dynamic_from_link_map.
2380         (lm_next, lm_prev, lm_name): Remove.
2381         (svr4_keep_data_in_core): Use lm_info_read, drop the lm_info entries
2382         initialization incl. read_memory.  No longer use lm_name.
2383         (svr4_free_so): Drop lm_info->lm freeing.
2384         (svr4_default_sos): Initialize lminfo with zeroes.  Use l_addr_p.  Drop
2385         explicit lm_addr and lm initialization.
2386         (svr4_read_so_list): Use lm_info_read, drop the initailization of
2387         fields by hand, incl. read_memory.  No longer use lm_next, lm_prev and
2388         lm_name.
2389
2390 2011-10-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
2391             Paul Pluzhnikov  <ppluzhnikov@google.com>
2392
2393         * defs.h (struct so_list): New forward declaration.
2394         (make_cleanup_free_so): New declaration.
2395         * solib-svr4.c (ignore_first_link_map_entry): Remove.
2396         (svr4_free_so): Move the function here from downwards.  Handle NULL
2397         so->lm_info.
2398         (svr4_free_library_list): New.
2399         (svr4_read_so_list): New, moved here code from svr4_current_sos.
2400         Use more cleanups.  Use new parameter ignore_first instead of
2401         ignore_first_link_map_entry.
2402         (svr4_current_sos): New variable ignore_first, initialize it.  New
2403         variable back_to, use it for svr4_free_library_list protection.
2404         (svr4_free_so): Remove - move upwards.
2405         * utils.c: Include solist.h.
2406         (do_free_so, make_cleanup_free_so): New functions.
2407
2408 2011-10-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
2409
2410         Fix internal error regression.
2411         * value.c (value_primitive_field): Handle value_optimized_out.  Move
2412         packed bitfields comment.
2413
2414 2011-10-13  Tom Tromey  <tromey@redhat.com>
2415
2416         * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Ensure GIL is
2417         always released.
2418
2419 2011-10-13  Tom Tromey  <tromey@redhat.com>
2420
2421         * python/py-type.c (typy_has_key): Make 'field' const.
2422
2423 2011-10-13  Luis Machado  <lgustavo@codesourcery.com>
2424
2425         * remote.c (remote_save_trace_data): Invert comparison.
2426
2427 2011-10-13  Luis Machado  <lgustavo@codesourcery.com>
2428
2429         * tracepoint.c (trace_save_command): Use filename instead of
2430         args when printing.
2431
2432 2011-10-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
2433
2434         * dwarf2read.c (dwarf2_fetch_die_location_block): Initialize .data even
2435         if .size is 0.
2436
2437 2011-10-13  Yao Qi  <yao@codesourcery.com>
2438
2439         PR gdb/12703
2440         * arm-tdep.c (thumb_analyze_prologue): Call thumb_insn_size to check
2441         whether insn is a 32-bit Thumb-2 instruction.
2442         (thumb_in_function_epilogue_p): Likewise.
2443         (thumb_get_next_pc_raw): Likewise.
2444         (arm_breakpoint_from_pc): Likewise.
2445
2446 2011-10-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
2447
2448         Fix empty DWARF expressions DATA vs. SIZE conditionals.
2449         * dwarf2loc.c (dwarf2_find_location_expression): Clear *LOCEXPR_LENGTH.
2450         (dwarf_expr_frame_base_1): Indicate unavailability via zero *LENGTH.
2451         (locexpr_tracepoint_var_ref): Check only zero SIZE, not zero DATA.
2452         (loclist_read_variable, loclist_tracepoint_var_ref): Do not check for
2453         zero DATA.
2454         * dwarf2loc.h (struct dwarf2_locexpr_baton): Comment DATA vs. SIZE
2455         validity.
2456         * dwarf2read.c (struct dwarf_block): Comment DATA validity.
2457         (dwarf2_fetch_die_location_block, dwarf2_symbol_mark_computed): Do not
2458         clear DATA on zero SIZE.
2459
2460 2011-10-12  Doug Evans  <dje@google.com>
2461
2462         * dwarf2read.c (partial_read_comp_unit_head): Set header->offset,
2463         header->first_die_offset here.  All callers updated.
2464
2465 2011-10-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
2466
2467         Fix compatibility with texinfo versions older than 4.12.
2468         * Makefile.in (MAKEINFO): Set to @MAKEINFO@.
2469         (MAKEINFOFLAGS, MAKEINFO_EXTRA_FLAGS, MAKEINFO_CMD): New.
2470         (MAKEHTMLFLAGS): Use MAKEINFO_CMD.
2471         (FLAGS_TO_PASS): Add MAKEINFOFLAGS and MAKEINFO_EXTRA_FLAGS.
2472         * configure: Regenerate.
2473         * configure.ac (MAKEINFO): Find it, from libiberty/configure.ac.
2474         (MAKEINFOFLAGS): Pre-set it to --split-size=5000000.
2475         (MAKEINFO_EXTRA_FLAGS): New test for -DHAVE_MAKEINFO_CLICK.
2476
2477 2011-10-12  Gary Benson  <gbenson@redhat.com>
2478
2479         * breakpoint.h (pc_at_non_inline_function): Declare.
2480         * breakpoint.c (is_non_inline_function,
2481         pc_at_non_inline_function): New functions.
2482         * infrun.c (handle_inferior_event): Don't call skip_inline_frames
2483         if the stop is at a location where functions cannot be inlined.
2484
2485 2011-10-12  Pedro Alves  <pedro@codesourcery.com>
2486
2487         * linux-nat.c (stop_and_resume_callback): Don't re-resume LWPs if
2488         the core wanted them stopped, or if they now have a pending event
2489         to report.
2490         (linux_nat_filter_event): New parameter `new_pending_p'.  Pass it
2491         down to stop_and_resume_callback.
2492         (linux_nat_wait_1): Always clear `options' when retrying.  Handle
2493         having new pending events after calling linux_nat_filter_event.
2494
2495 2011-10-11  Sterling Augustine  <saugustine@google.com>
2496
2497         * dwarf2read.c: Undo inadvertent changes in previous commit.
2498
2499 2011-10-11  Sterling Augustine  <saugustine@google.com>
2500
2501         * dwarf2read.c (partial_die_parent_scope): Rearrange conditional
2502         logic.
2503
2504 2011-10-11  Ulrich Weigand  <ulrich.weigand@linaro.org>
2505
2506         * symfile.c (separate_debug_file_exists): Fix condition.
2507
2508 2011-10-11  David S. Miller  <davem@davemloft.net>
2509
2510         * regcache.c (regcache_restore): Do not write unavailable regs, mark
2511         static.
2512         * regcache.h (regcache_restore): Remove declaration.
2513
2514         * gdbarch.sh: New field 'long_long_align_bit'.
2515         * gdbarch.c, gdbarch.h: Regenerate.
2516         * i386-tdep.c (i386_gdbarch_init): Set long_long_align_bit to 32.
2517         * jit.c (jit_read_code_entry): Use it to determine correct size offset.
2518
2519 2011-10-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
2520
2521         Revert this part of:
2522         2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
2523         Support @entry in input expressions.
2524         * c-exp.y (ENTRY, unknown_cpp_name): New.
2525         (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
2526         (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
2527         (variable: name_not_typename '@' ENTRY, name: ENTRY)
2528         (name_not_typename: ENTRY): New.
2529         (yylex): Recognize ENTRY.
2530
2531         Reimplement @entry in input expressions.
2532         * c-exp.y (ENTRY): New.
2533         (variable: name_not_typename ENTRY): New.
2534         (lex_one_token): Optionally return ENTRY instead of the '@' lex.
2535
2536 2011-10-11  Pedro Alves  <pedro@codesourcery.com>
2537
2538         * linux-nat.c (linux_handle_extended_wait): Always dump both the
2539         parent and child's pids as soon as we detect a clone event.
2540         Adjust another debug message.
2541
2542 2011-10-11  Pedro Alves  <pedro@codesourcery.com>
2543
2544         * linux-nat.c (linux_lwp_is_zombie): Return early if the LWP is
2545         not zombie instead of reading the whole file.
2546
2547 2011-10-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
2548
2549         Fix separate debuginfo warning with "remote:" access.
2550         * objfiles.h (struct objfile): New fields crc32 and crc32_p.
2551         * symfile.c (get_file_crc): New function with the code moved from ...
2552         (separate_debug_file_exists): ... this function, specifically variables
2553         buffer and count.  New variable verified_as_different, set it.  Remove
2554         file_crc initialization.  Verify also if both files are not the same
2555         manually, if needed.
2556
2557 2011-10-11  Yao Qi  <yao@codesourcery.com>
2558
2559         * arm-tdep.c (arm_get_next_pc_raw): Use read_memory_unsigned_integer
2560         to get address.
2561
2562 2011-10-10  Doug Evans  <dje@google.com>
2563
2564         * linux-thread-db.c (thread_db_new_objfile): Only try to load
2565         libthread_db when we load libpthread or the main symbol file.
2566         (thread_db_inferior_created): New function.
2567         (_initialize_thread_db): Attach inferior_created observer.
2568         * linux-nat.c (linux_child_post_attach): Remove call to
2569         check_for_thread_db.
2570         (linux_child_post_startup_inferior): Ditto.
2571         * objfiles.h (OBJF_MAINLINE): Define.
2572         * symfile.c (symbol_file_add_with_addrs_or_offsets): Pass it to
2573         allocate_objfile when appropriate.
2574
2575 2011-10-10  Ulrich Weigand  <ulrich.weigand@linaro.org>
2576
2577         PR gdb/13218
2578         * arm-linux-nat.c (os_version, os_major, os_minor, os_release):
2579         Remove unused variables.
2580         (get_linux_version): Remove function.
2581         (_initialize_arm_linux_nat): Do not call it.
2582
2583 2011-10-10  Pedro Alves  <pedro@codesourcery.com>
2584
2585         * linux-nat.c (linux_handle_extended_wait): Don't resume the new
2586         new clone lwp if the core asked it to stop.  Don't pass on
2587         unexpected signals to the new clone; leave them pending instead.
2588
2589 2011-10-10  Pedro Alves  <pedro@codesourcery.com>
2590
2591         * linux-nat.c (resume_lwp): Remove redundant debug output.
2592
2593 2011-10-10  Pedro Alves  <pedro@codesourcery.com>
2594
2595         * linux-nat.c (linux_nat_wait_1): Copy the event lwp's
2596         last_resume_kind before clearing it, and use the copy instead to
2597         determine whether to report a SIGSTOP as TARGET_SIGNAL_0.  Use
2598         resume_clear_callback in the non-stop path too.
2599
2600 2011-10-09  Yao Qi  <yao@codesourcery.com>
2601
2602         * valprint.c (value_check_printable): Add one parameter OPTIONS.
2603         Honor OPTIONS and VAL's type.
2604         (common_val_print, value_print): Update to pass one more parameter.
2605
2606 2011-10-09  Doug Evans  <dje@google.com>
2607
2608         Add new "alias" command.
2609         * NEWS: Mention new command.
2610         * command.h (valid_user_defined_cmd_name_p): Declare.
2611         * defs.h (make_cleanup_dyn_string_delete): Declare.
2612         * utils.c: #include "dyn-string.h".
2613         (do_dyn_string_delete, make_cleanup_dyn_string_delete): New functions.
2614         * cli/cli-cmds.c: #include "dyn-string.h".
2615         (argv_to_dyn_string, valid_command_p, alias_command): New functions.
2616         (init_cli_cmds): Add new command.
2617         * cli/cli-decode.c (valid_user_defined_cmd_name_p): New function.
2618
2619 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
2620
2621         Fix compatibility with older GCCs.
2622         * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Initialize parameter.
2623         * stack.c (read_frame_arg): Initialize val_deref.
2624
2625 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
2626
2627         Entry values NEWS entries, DWARF disassembly support.
2628         * NEWS: New entry values entry.
2629         (set print entry-values, show print entry-values)
2630         (set debug entry-values, show debug entry-values): New entries.
2631         * dwarf2loc.c (disassemble_dwarf_expression): New parameters start and
2632         indent.  Remove variable start.  Move header printing out.  Respect
2633         INDENT.  Support DW_OP_GNU_entry_value.
2634         (locexpr_describe_location_1): Move the header printing here, extend
2635         the disassemble_dwarf_expression passed parameters.
2636
2637 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
2638
2639         Display @entry parameter values even for references.
2640         * ada-valprint.c (ada_val_print_1) <TYPE_CODE_REF>: Try also
2641         coerce_ref_if_computed.
2642         * c-valprint.c (c_val_print) <TYPE_CODE_REF>: Likewise.
2643         * dwarf2expr.c (dwarf_block_to_dwarf_reg_deref): New function.
2644         (execute_stack_op) <DW_OP_GNU_entry_value>: Add -1 deref_size to the
2645         existing push_dwarf_reg_entry_value call.  Add new detection calling
2646         dwarf_block_to_dwarf_reg_deref.  Update the error message.
2647         (ctx_no_push_dwarf_reg_entry_value): New parameter deref_size.
2648         * dwarf2expr.h
2649         (struct dwarf_expr_context_funcs) <push_dwarf_reg_entry_value>: Add new
2650         parameter deref_size, describe it in the comment.
2651         (ctx_no_push_dwarf_reg_entry_value): Add new parameter deref_size.
2652         (dwarf_block_to_dwarf_reg_deref): New declaration.
2653         * dwarf2loc.c (dwarf_entry_parameter_to_value): Add new parameter
2654         deref_size, describe it in the function comment.  New variables
2655         data_src and size, fetch the alternative block accoring to DEREF_SIZE.
2656         (dwarf_expr_push_dwarf_reg_entry_value): Add new parameter deref_size,
2657         describe it in the function comment.  Fetch the alternative block
2658         accoring to DEREF_SIZE.
2659         (entry_data_value_coerce_ref, entry_data_value_copy_closure)
2660         (entry_data_value_free_closure, entry_data_value_funcs): New.
2661         (value_of_dwarf_reg_entry): New variables checked_type, target_type,
2662         outer_val, target_val, val and addr.  Try to fetch and create also
2663         referenced value content.
2664         (pieced_value_funcs): NULL value for coerce_ref.
2665         (needs_dwarf_reg_entry_value): Add new parameter deref_size.
2666         * f-valprint.c (f_val_print) <TYPE_CODE_REF>: Try also
2667         coerce_ref_if_computed.
2668         * opencl-lang.c (opencl_value_funcs): NULL value for coerce_ref.
2669         * p-valprint.c (pascal_val_print) <TYPE_CODE_REF>: Likewise.
2670         * stack.c (read_frame_arg): Compare also dereferenced values.
2671         * value.c (value_computed_funcs): Make the parameter v const, use
2672         value_lval_const for it.
2673         (value_lval_const, coerce_ref_if_computed): New function.
2674         (coerce_ref): New variable retval.  Call also coerce_ref_if_computed.
2675         * value.h (struct lval_funcs): New field coerce_ref.
2676         (value_computed_funcs): Make the parameter v const.
2677         (value_lval_const, coerce_ref_if_computed): New declarations.
2678
2679 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
2680
2681         Support @entry in input expressions.
2682         * c-exp.y (ENTRY, unknown_cpp_name): New.
2683         (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
2684         (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
2685         (variable: name_not_typename '@' ENTRY, name: ENTRY)
2686         (name_not_typename: ENTRY): New.
2687         (yylex): Recognize ENTRY.
2688         * eval.c (evaluate_subexp_standard): Support also OP_VAR_ENTRY_VALUE.
2689         * expprint.c (print_subexp_standard, dump_subexp_body_standard):
2690         Likewise.
2691         * parse.c (operator_length_standard): Likewise.
2692         * std-operator.def: New operator OP_VAR_ENTRY_VALUE.
2693
2694 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
2695
2696         Display referenced values in backtraces.
2697         * printcmd.c (print_variable_and_value): Set OPTS.DEREF_REF to 1.
2698         * stack.c (print_frame_arg): Likewise.
2699
2700 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
2701
2702         Make some lval_funcs methods to default on NULL.
2703         * valops.c (value_fetch_lazy): Check if lval_computed read method is
2704         NULL.
2705         (value_assign): Check if lval_computed write method is NULL.
2706         * value.h (struct lval_funcs): Comment NULL values for read and write
2707         methods.
2708
2709 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
2710
2711         Display @entry parameter values (without references).
2712         * dwarf2expr.c (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
2713         New functions.
2714         * dwarf2expr.h (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
2715         New declarations.
2716         * dwarf2loc.c (dwarf2_find_location_expression): Support location list
2717         entry record.
2718         (dwarf_entry_parameter_to_value, value_of_dwarf_reg_entry)
2719         (value_of_dwarf_block_entry, locexpr_read_variable_at_entry): New
2720         functions.
2721         (dwarf2_locexpr_funcs): Install locexpr_read_variable_at_entry.
2722         (loclist_read_variable_at_entry): New function.
2723         (dwarf2_loclist_funcs): Install loclist_read_variable_at_entry.
2724         * dwarf2read.c (read_call_site_scope): Support also DW_OP_fbreg in
2725         DW_AT_location, call dwarf_block_to_sp_offset for it.
2726         * frame.h (print_entry_values_no, print_entry_values_only)
2727         (print_entry_values_preferred, print_entry_values_if_needed)
2728         (print_entry_values_both, print_entry_values_compact)
2729         (print_entry_values_default, print_entry_values): New declarations.
2730         (struct frame_arg): New field entry_kind.
2731         (read_frame_arg): New parameter entryargp.
2732         * mi/mi-cmd-stack.c (list_arg_or_local): New gdb_assert for
2733         arg->entry_kind.  Optionally print the `@entry' suffix.
2734         (list_args_or_locals): New variable entryarg, initialize it.
2735         Initialize also entry_kind of arg and entryarg.  Conditionalize
2736         list_arg_or_local for arg, add list_arg_or_local for entryarg.  Call
2737         xfree for entryarg.error.
2738         * stack.c (print_entry_values_no, print_entry_values_only)
2739         (print_entry_values_preferred, print_entry_values_if_needed)
2740         (print_entry_values_both, print_entry_values_compact)
2741         (print_entry_values_default, print_entry_values_choices)
2742         (print_entry_values): New variables.
2743         (print_frame_arg): New gdb_assert for arg->entry_kind.  Optionally
2744         print the `@entry' suffix, possibly in combination for
2745         print_entry_values_compact.
2746         (read_frame_arg): New parameter entryargp, new variables entryval,
2747         entryval_error and val_equal.  Read in also entryargp, respect
2748         print_entry_values, compare the values using val_equal, fill in also
2749         argp->entry_kind (together with entryargp->entry_kind).
2750         (print_frame_args): New variable entryarg, initialize it.
2751         Conditionalize print_frame_arg for arg, add print_frame_arg for
2752         entryarg.  Call xfree for entryarg.error.
2753         (_initialize_stack): Call add_setshow_enum_cmd for `entry-values'.
2754         * symtab.h (struct symbol_computed_ops): New field
2755         read_variable_at_entry.
2756
2757 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
2758
2759         Code reshuffle.
2760         * frame.h (struct frame_arg): New definition.
2761         (read_frame_arg): New declaration.
2762         * mi/mi-cmd-stack.c (list_arg_or_local): New functiom from ...
2763         (list_args_or_locals): ... the code here.  New variable arg, call
2764         read_frame_arg and list_arg_or_local with it.  Unify the
2765         PRINT_SIMPLE_VALUES and PRINT_ALL_VALUES cases.  Call xfree for
2766         arg.error.
2767         * stack.c (print_frame_arg): New functiom from the code of
2768         print_frame_args.
2769         (read_frame_arg): New function.
2770         (print_frame_args): Remove variable val.  New variable arg, call
2771         read_frame_arg and print_frame_arg with it.  Call xfree for arg.error.
2772
2773 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
2774
2775         Protect entry values against self tail calls.
2776         * dwarf2loc.c (VEC (CORE_ADDR), func_verify_no_selftailcall): New.
2777         (dwarf_expr_dwarf_reg_entry_value): Call func_verify_no_selftailcall.
2778
2779 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
2780
2781         Recognize virtual tail call frames.
2782         * Makefile.in (SFILES): Add dwarf2-frame-tailcall.c.
2783         (HFILES_NO_SRCDIR): Add dwarf2-frame-tailcall.h.
2784         (COMMON_OBS): Add dwarf2-frame-tailcall.o.
2785         * dwarf2-frame-tailcall.c: New file.
2786         * dwarf2-frame-tailcall.h: New file.
2787         * dwarf2-frame.c: Include dwarf2-frame-tailcall.h.
2788         (execute_cfa_program): New function comment.  Return INSN_PTR.  Reset
2789         REGS.PREV only after CIE execution.
2790         (struct dwarf2_frame_cache): New field tailcall_cache.
2791         (dwarf2_frame_cache): New variables entry_pc, entry_cfa_sp_offset,
2792         entry_cfa_sp_offset_p and instr.  Execute FDE instructions in two
2793         parts, try to find entry_cfa_sp_offset.  Call
2794         dwarf2_tailcall_sniffer_first.
2795         (dwarf2_frame_prev_register): Call dwarf2_tailcall_prev_register_first
2796         when appropriate.
2797         (dwarf2_frame_dealloc_cache): New function.
2798         (dwarf2_frame_sniffer): Preinitialize cache by dwarf2_frame_cache.
2799         (dwarf2_frame_unwind): Install dwarf2_frame_dealloc_cache.
2800         (dwarf2_signal_frame_unwind): Do not install dwarf2_frame_dealloc_cache.
2801         (dwarf2_append_unwinders): Add dwarf2_tailcall_frame_unwind.
2802         (dwarf2_frame_cfa): Support also dwarf2_tailcall_frame_unwind.
2803         * dwarf2loc.c (func_addr_to_tail_call_list)
2804         (tailcall_dump, call_sitep, VEC (call_sitep), chain_candidate)
2805         (call_site_find_chain_1, call_site_find_chain): New.
2806         * dwarf2loc.h (struct call_site_chain): New.
2807         (call_site_find_chain): New declaration.
2808         * frame.c (get_frame_address_in_block): Support also TAILCALL_FRAME.
2809         * frame.h (enum frame_type): New entry TAILCALL_FRAME.
2810         * python/py-frame.c (gdbpy_initialize_frames): Add TAILCALL_FRAME.
2811         * stack.c (frame_info): Support also TAILCALL_FRAME.
2812
2813 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
2814
2815         Tail call sites reader implementation.
2816         * dwarf2read.c (read_call_site_scope): Recognize DW_AT_GNU_tail_call,
2817         fill in TYPE_TAIL_CALL_LIST.
2818         * gdbtypes.h (struct func_type): New field tail_call_list.
2819         (struct call_site): New field tail_call_next.
2820         (TYPE_TAIL_CALL_LIST): New definition.
2821
2822 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
2823
2824         Implement basic support for DW_TAG_GNU_call_site.
2825         * block.c: Include gdbtypes.h and exceptions.h.
2826         (call_site_for_pc): New function.
2827         * block.h (call_site_for_pc): New declaration.
2828         * defs.h: Include hashtab.h.
2829         (make_cleanup_htab_delete, core_addr_hash, core_addr_eq): New
2830         declarations.
2831         * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Install
2832         ctx_no_push_dwarf_reg_entry_value.
2833         * dwarf2expr.c (read_uleb128, read_sleb128): Support R as NULL.
2834         (dwarf_block_to_dwarf_reg): New function.
2835         (execute_stack_op) <DW_OP_GNU_entry_value>: Implement it.
2836         (ctx_no_push_dwarf_reg_entry_value): New function.
2837         * dwarf2expr.h (struct dwarf_expr_context_funcs): New field
2838         push_dwarf_reg_entry_value.
2839         (ctx_no_push_dwarf_reg_entry_value, dwarf_block_to_dwarf_reg): New
2840         declarations.
2841         * dwarf2loc.c: Include gdbcmd.h.
2842         (dwarf_expr_ctx_funcs): New forward declaration.
2843         (entry_values_debug, show_entry_values_debug, call_site_to_target_addr)
2844         (dwarf_expr_reg_to_entry_parameter)
2845         (dwarf_expr_push_dwarf_reg_entry_value): New.
2846         (dwarf_expr_ctx_funcs): Install dwarf_expr_push_dwarf_reg_entry_value.
2847         (dwarf2_evaluate_loc_desc_full): Handle NO_ENTRY_VALUE_ERROR.
2848         (needs_dwarf_reg_entry_value): New function.
2849         (needs_frame_ctx_funcs): Install it.
2850         (_initialize_dwarf2loc): New function.
2851         * dwarf2loc.h (entry_values_debug): New declaration.
2852         * dwarf2read.c (struct dwarf2_cu): New field call_site_htab.
2853         (read_call_site_scope): New forward declaration.
2854         (process_full_comp_unit): Copy call_site_htab.
2855         (process_die): Support DW_TAG_GNU_call_site.
2856         (read_call_site_scope): New function.
2857         (dwarf2_get_pc_bounds): Support NULL HIGHPC.
2858         (dwarf_tag_name): Support DW_TAG_GNU_call_site.
2859         (cleanup_htab): Delete.
2860         (write_psymtabs_to_index): Use make_cleanup_htab_delete instead of it.
2861         * exceptions.h (enum errors): New NO_ENTRY_VALUE_ERROR.
2862         * gdb-gdb.py (StructMainTypePrettyPrinter): Support
2863         FIELD_LOC_KIND_DWARF_BLOCK.
2864         * gdbtypes.h (enum field_loc_kind): New entry
2865         FIELD_LOC_KIND_DWARF_BLOCK.
2866         (struct main_type): New loc entry dwarf_block.
2867         (struct call_site, FIELD_DWARF_BLOCK, SET_FIELD_DWARF_BLOCK)
2868         (TYPE_FIELD_DWARF_BLOCK): New.
2869         * python/py-type.c: Include dwarf2loc.h.
2870         (check_types_equal): Support FIELD_LOC_KIND_DWARF_BLOCK.  New
2871         internal_error call on unknown FIELD_LOC_KIND.
2872         * symtab.h (struct symtab): New field call_site_htab.
2873         * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete)
2874         (core_addr_hash, core_addr_eq): New functions.
2875
2876 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
2877
2878         Code reshuffle.
2879         * gdb-gdb.py (StructMainTypePrettyPrinter): Change
2880         TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC.  Move
2881         calling_convention under func_stuff there.
2882         * gdbtypes.c (make_function_type): Call INIT_FUNC_SPECIFIC.
2883         (init_type) <TYPE_CODE_FUNC>: Likewise.
2884         (recursive_dump_type): Change TYPE_SPECIFIC_CALLING_CONVENTION to
2885         TYPE_SPECIFIC_FUNC.  New comment for tail_call_list.
2886         * gdbtypes.h (enum type_specific_kind): Change
2887         TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC.
2888         (struct main_type) <type_specific>: Change calling_convention to
2889         func_stuff.  Move calling_convention to ...
2890         (struct func_type): ... this new struct.
2891         (INIT_FUNC_SPECIFIC): New #define.
2892         (TYPE_CALLING_CONVENTION): Change calling_convention to func_stuff.
2893
2894 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
2895
2896         Fix DW_OP_GNU_implicit_pointer for DWARF32 v3+ on 64-bit arches.
2897         * dwarf2-frame.c (execute_stack_op): Initialize ctx->ref_addr_size.
2898         * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Use
2899         ctx->ref_addr_size.  Handle its invalid value.
2900         * dwarf2expr.h (struct dwarf_expr_context): New field ref_addr_size.
2901         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
2902         (dwarf2_loc_desc_needs_frame): Initialize ctx->ref_addr_size.
2903         * dwarf2loc.h (dwarf2_per_cu_ref_addr_size): New declaration.
2904         * dwarf2read.c (decode_locdesc): Initialize ctx->ref_addr_size.
2905         (dwarf2_per_cu_ref_addr_size): New function.
2906
2907 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
2908
2909         Code cleanup.
2910         * dwarf2read.c (per_cu_header_read_in): New function.
2911         (dwarf2_per_cu_addr_size, dwarf2_per_cu_offset_size): Use it, with new
2912         variables cu_header_local and cu_headerp.
2913
2914 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
2915
2916         Fix initial language detection with -readnow.
2917         * dwarf2read.c (dw2_find_symbol_file): Handle OBJF_READNOW case.
2918         * symfile.h (struct quick_symbol_functions): State find_symbol_file
2919         searches only for global symbols.
2920
2921 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
2922
2923         Fix printed anonymous struct name.
2924         * dwarf2read.c (fixup_partial_die): Handle for anonymous structs also
2925         DW_TAG_interface_type.  Strip for anonymous structs any prefixes.
2926         (anonymous_struct_prefix): New function.
2927         (determine_prefix): New variables retval.  Call anonymous_struct_prefix.
2928         (dwarf2_name): Strip for anonymous structs any prefixes.
2929
2930 2011-10-07  Doug Evans  <dje@google.com>
2931
2932         * python/lib/gdb/printing.py (register_pretty_printer): New argument
2933         `replace'.
2934
2935         * python/lib/gdb/printing.py: Whitespace cleanup.
2936
2937         * python/py-value.c (valpy_call): Initialize ftype to avoid compiler
2938         warning.
2939
2940 2011-10-07  Pedro Alves  <pedro@codesourcery.com>
2941
2942         * linux-nat.h (ALL_LWPS): Remove the ptid parameter.
2943         * amd64-linux-nat.c (amd64_linux_dr_set_control)
2944         (amd64_linux_dr_set_addr, amd64_linux_dr_unset_status): Adjust.
2945         * arm-linux-nat.c (arm_linux_insert_hw_breakpoint)
2946         (arm_linux_remove_hw_breakpoint, arm_linux_insert_watchpoint)
2947         (arm_linux_remove_watchpoint): Adjust.
2948         * i386-linux-nat.c (i386_linux_dr_set_control)
2949         (i386_linux_dr_set_addr, i386_linux_dr_unset_status): Adjust.
2950         * ia64-linux-nat.c (ia64_linux_insert_watchpoint)
2951         (ia64_linux_remove_watchpoint): Adjust.
2952         * mips-linux-nat.c (write_watchpoint_regs): Adjust.
2953         * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint)
2954         (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
2955         (ppc_linux_insert_mask_watchpoint)
2956         (ppc_linux_remove_mask_watchpoint, ppc_linux_insert_watchpoint)
2957         (ppc_linux_remove_watchpoint): Adjust.
2958         * s390-nat.c (s390_insert_watchpoint, s390_remove_watchpoint):
2959         Adjust.
2960
2961 2011-10-07  Corinna Vinschen  <vinschen@redhat.com>
2962
2963         * windows-nat.c: Include wchar.h to avoid compiler warnings.
2964         (clear_win32_environment): New function for Cygwin to clear out
2965         Win32 environment.
2966         (windows_create_inferior): Prepare new environment from in_env
2967         for Cygwin, too.
2968
2969 2011-10-07  Phil Muldoon  <pmuldoon@redhat.com>
2970
2971         PR python/13264
2972         * python/py-value.c (valpy_call): Check that arguments are
2973         a tuple.
2974         (is_intlike): Remove call to CHECK_TYPEDEF.
2975         (valpy_nonzero): Catch GDB exceptions.
2976         (valpy_absolute): Ditto.
2977         (valpy_lazy_string): Ditto.
2978         (valpy_call): Ditto.
2979         (valpy_get_is_optimized_out): Ditto.
2980         (valpy_long): Ditto.
2981         (valpy_float): Ditto.
2982         (valpy_int): Call CHECK_TYPEDEF.  Catch GDB exceptions.
2983         (valpy_richcompare): Ditto.
2984
2985 2011-10-07  Ulrich Weigand  <ulrich.weigand@linaro.org>
2986
2987         * inferior.h (disable_randomization): Declare.
2988         * infrun.c (disable_randomization): New global variable.
2989         (show_disable_randomization): New function.
2990         (set_disable_randomization): Likewise.
2991         (_initialize_infrun): Install set/show disable-randomization
2992         commands.
2993         * linux-nat.c (disable_randomization): Remove.
2994         (show_disable_randomization): Likewise.
2995         (set_disable_randomization): Likewise.
2996         (_initialize_linux_nat): No longer install set/show
2997         disable-randomization commands here.
2998         (linux_nat_supports_disable_randomization): New function.
2999         (linux_nat_add_target): Install it.
3000         * remote.c (PACKET_QDisableRandomization): New enum value.
3001         (remote_protocol_packets): Support QDisableRandomization.
3002         (_initialize_remote): Likewise.
3003         (remote_supports_disable_randomization): New function.
3004         (init_remote_ops): Install it.
3005         (extended_remote_supports_disable_randomization): New function.
3006         (init_extended_remote_ops): Install it.
3007         (extended_remote_disable_randomization): New function.
3008         (extended_remote_create_inferior_1): Call it.
3009         * target.h (struct target_ops): Add to_supports_disable_randomization.
3010         (target_supports_disable_randomization): Add prototype.
3011         * target.c (target_supports_disable_randomization): New function.
3012         (find_default_supports_disable_randomization): Likewise.
3013         (init_dummy_target): Install it.
3014
3015 2011-10-07  Kevin Pouget  <kevin.pouget@st.com>
3016
3017         Allow Python notification of new object-file loadings.
3018         * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-newobjfilevent.c.
3019         (SUBDIR_PYTHON_OBS): Add py-newobjfileevent.o.
3020         Add build rule for this file.
3021         * python/py-event.h (emit_new_objfile_event): New prototype.
3022         (newobjfile): New Python event emitter.
3023         * python/py-evts.c (gdbpy_initialize_py_events): Add new_objfile to
3024         Python event registry.
3025         * python/py-inferior.c: Include objfiles.h
3026         (python_new_objfile): New function.
3027         (gdbpy_initialize_inferior): Add python_new_objfile to the new objfile
3028         observers.
3029         * python/py-newobjfileevent.c: New file.
3030         * python-internal.h (gdbpy_initialize_new_objfile_event): New
3031         prototype.
3032         * python/python.c (_initialize_python): Add 
3033         gdbpy_initialize_new_objfile_event call.
3034         * NEWS: Add item for new Python event "gdb.newobjfile"
3035
3036 2011-10-05  Tristan Gingold  <gingold@adacore.com>
3037
3038         * ada-tasks.c (read_atcb): Make ravenscar_task_name static.
3039         Extract the ravenscar task name from the symbol for the atcb.
3040
3041 2011-10-04  Paul Koning  <paul_koning@dell.com>
3042
3043         * python/py-type.c (typy_make_iter): Add forward declaration.
3044         (typy_fields_items):  Use the gdb.Type iterator.
3045
3046 2011-10-04  Paul Koning  <paul_koning@dell.com>
3047
3048         * NEWS: Add entry for Python gdb.Type mapping methods.
3049
3050 2011-10-04  Kevin Pouget  <kevin.pouget@st.com>
3051
3052         PR python/12691: Add the inferior to Python exited event
3053         * python/py-exitedevent.c (create_exited_event_object): Add inferior
3054         to exited_event.
3055         * python/py-event.h (emit_exited_event): Likewise
3056         * python/-inferior.c (python_inferior_exit): Likewise
3057
3058 2011-10-03  Joel Brobecker  <brobecker@adacore.com>
3059
3060         * ada-tasks.c (print_ada_task_info): Add "thread-id" field
3061         in output of -ada-task-info GDB/MI command.
3062
3063 2011-10-03  Joel Brobecker  <brobecker@adacore.com>
3064
3065         * ada-lang.h (struct inferior): Declare.
3066         (print_ada_task_info): Add declaration.
3067         * ada-tasks.c (print_ada_task_info): Make non-static.
3068         * mi/mi-cmds.c (mi_cmds): Add "ada-task-info".
3069         * mi/mi-cmds.h (mi_cmd_ada_task_info): Add declaration.
3070         * mi/mi-main.c: #include "ada-lang.h".
3071         (mi_cmd_list_features): Add "ada-task-info" to the list
3072         of supported features.
3073         (mi_cmd_ada_task_info): New function.
3074
3075 2011-10-03  Joel Brobecker  <brobecker@adacore.com>
3076
3077         * python/python.c (python_run_simple_file): New function.
3078         (source_python_script, source_python_script_for_objfile):
3079         Replace call to PyRun_SimpleFile by call to
3080         python_run_simple_file.
3081
3082 2011-10-03  Paul Koning  <paul_koning@dell.com>
3083
3084         * python/py-value.c (valpy_get_address): Use Py_XINCREF.
3085         (value_to_value_object): Fetch value if it was lazy.
3086
3087 2011-10-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3088
3089         Code cleanup.
3090         * solib-svr4.c (svr4_default_sos):  Remove variables head and link_ptr.
3091         Rearrange the code for it.
3092
3093 2011-10-02  Joel Brobecker  <brobecker@adacore.com>
3094
3095         * breakpoint.c (bkpt_print_recreate): Add call to
3096         print_recreate_thread.
3097
3098 2011-09-29  Mike Frysinger  <vapier@gentoo.org>
3099
3100         * common/linux-ptrace.h (PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
3101         PTRACE_GETFDPIC_INTERP): Define.
3102
3103 2011-09-28  Yao Qi  <yao@codesourcery.com>
3104
3105         * symfile.c (add_symbol_file_command): Update message on usage.
3106
3107 2011-09-28  Paul Koning  <paul_koning@dell.com>
3108
3109         * python/py-type.c (make_fielditem, typy_field_names, typy_items)
3110         (typy_length, typy_get, typy_has_key, typy_make_iter)
3111         (typy_iterkeys, typy_iteritems, typy_itervalues, typy_iter)
3112         (typy_iterator_iter, typy_iterator_iternext)
3113         (typy_iterator_dealloc): New functions to implement standard
3114         Python mapping methods on gdb.Type object.
3115         (gdb.TypeIterator): New Python type.
3116         * python/python-internal.h (gdbpy_iter_kind): New enum.
3117
3118 2011-09-28  David S. Miller  <davem@davemloft.net>
3119
3120         * sparc-tdep.h (SPARC_F2_REGNUM, SPARC_F3_REGNUM, SPARC_F4_REGNUM,
3121         SPARC_F5_REGNUM, SPARC_F6_REGNUM, SPARC_F7_REGNUM): New enums.
3122         * sparc-tdep.c (sparc_complex_floating_p): New function.
3123         (sparc32_store_arguments): Handle complex floats.
3124         (sparc32_extract_return_value): Likewise.
3125         (sparc32_store_return_value): Likewise.
3126         (sparc32_stabs_argument_has_addr): Likewise.
3127         * sparc64-tdep.c (sparc64_complex_floating_p): New function.
3128         (sparc64_store_floating_fields): Handle complex floats.
3129         (sparc64_store_arguments): Likewise.
3130         (sparc64_store_return_value): Likewise.
3131
3132 2011-09-28  Eli Zaretskii  <eliz@gnu.org>
3133
3134         * windows-nat.c (env_sort) [!__CYGWIN__]: Function restored from
3135         before the change on 2006-12-09.
3136         (windows_create_inferior) [!__CYGWIN__]: Restore code that
3137         generates the environment block for CreateProcessA, modulo the
3138         Cygwin-specific parts that are not needed here.
3139
3140 2011-09-27  Tristan Gingold  <gingold@adacore.com>
3141
3142         * target.h (enum target_object): Add TARGET_OBJECT_DARWIN_DYLD_INFO.
3143         * solib-darwin.c (DYLD_VERSION_MAX): Update number.
3144         (darwin_solib_get_all_image_info_addr_at_init): New function.
3145         (darwin_solib_read_all_image_info_addr): Likewise.
3146         (darwin_solib_create_inferior_hook): Use the above two functions.
3147         * darwin-nat.c (darwin_execvp): Renames retval to res.
3148         (darwin_read_write_inferior): Update comment.
3149         (darwin_read_dyld_info): New function.
3150         (darwin_xfer_partial): Handle DYLD_INFO.
3151
3152 2011-09-27  Stan Shebs  <stan@codesourcery.com>
3153
3154         Add return address collection for tracepoints.
3155         * tracepoint.c (encode_actions_1): Add case for $_ret.
3156         (validate_actionline): Check for $_ret.
3157         (trace_dump_actions): Ditto.
3158         * ax-gdb.h (gen_trace_for_return_address): Declare.
3159         * ax-gdb.c: Include arch-utils.h.
3160         (gen_trace_for_return_address): New function.
3161         (agent_command): Add return address special case.
3162         * amd64-tdep.c: Include ax.h and ax-gdb.h.
3163         (amd64_gen_return_address): New function.
3164         (amd64_init_abi): Call it.
3165         * i386-tdep.c: Include ax.h and ax-gdb.h.
3166         (i386_gen_return_address): New function.
3167         (i386_init_abi): Call it.
3168         * arch-utils.h (default_gen_return_address): Declare.
3169         * arch-utils.c (default_gen_return_address): New function.
3170         * gdbarch.sh (gen_return_address): New method.
3171         * gdbarch.h, gdbarch.c: Regenerate.
3172
3173 2011-09-23  Joseph Myers  <joseph@codesourcery.com>
3174
3175         PR gdb/13079
3176         * i386-tdep.c (i386_frame_align): New.
3177         (i386_gdbarch_init): Use i386_frame_align.
3178
3179 2011-09-23  Yao Qi  <yao@codesourcery.com>
3180
3181         * i386-linux-nat.c (i386_linux_resume): Use read_memory_unsigned_integer
3182         to get address.
3183
3184 2011-09-22  Tristan Gingold  <gingold@adacore.com>
3185
3186         * fork-child.c (fork_inferior): Add exec_fun parameter.
3187         Call exec_fun or execvp.
3188         * inferior.h: Adjust prototype.
3189         * gnu-nat.c (gnu_create_inferior): Adjust fork_inferior call.
3190         * inf-ttrace.c (inf_ttrace_create_inferior): Ditto.
3191         * inf-ptrace.c (inf_ptrace_create_inferior): Ditto.
3192         * procfs.c (procfs_create_inferior): Ditto.
3193         * darwin-nat.c (darwin_execvp): New function.
3194         (darwin_create_inferior): Use it.
3195
3196 2011-09-22  Yao Qi  <yao@codesourcery.com>
3197
3198         * infrun.c (context_switch): Print debug message when switching to
3199         a different thread.
3200
3201 2011-09-21  Ulrich Weigand  <uweigand@de.ibm.com>
3202
3203         * s390-tdep.c (s390_function_arg_pass_by_reference): Handle
3204         complex and vector types.
3205         (s390_return_value_convention): Likewise.
3206
3207         (s390_value_from_register): Call check_typedef.
3208         (extend_simple_arg): Likewise.
3209         (alignment_of): Likewise.
3210         (s390_push_dummy_call): Likewise.
3211         (s390_return_value): Likewise.
3212
3213 2011-09-21  Joseph Myers  <joseph@codesourcery.com>
3214
3215         * event-top.c (async_disconnect): If an exception is thrown from
3216         quit_cover, call pop_all_targets.  Use TRY_CATCH instead of
3217         catch_errors.
3218         * top.c (quit_cover): Return void and take no arguments.
3219         * top.h (quit_cover): Update prototype.
3220
3221 2011-09-20  Joseph Myers  <joseph@codesourcery.com>
3222
3223         * mi/mi-main.c (mi_load_progress): Restore saved_uiout value to
3224         current_uiout, not uiout.
3225
3226 2011-09-19  Doug Evans  <dje@google.com>
3227
3228         * python/py-auto-load.c (source_section_scripts): Fix file
3229         descriptor leak.
3230         * python/python.c (source_python_script_for_objfile): Tweak comments.
3231
3232 2011-09-18  Yao Qi  <yao@codesourcery.com>
3233             Ulrich Weigand  <ulrich.weigand@linaro.org>
3234
3235         Support displaced stepping for Thumb 16-bit insns.
3236         * arm-tdep.c (THUMB_NOP) Define.
3237         (thumb_copy_unmodified_16bit): New.
3238         (thumb_copy_b, thumb_copy_bx_blx_reg): New.
3239         (thumb_copy_alu_reg): New.
3240         (arm_copy_svc): Move some common code to ...
3241         (install_svc): ... here.  New.
3242         (thumb_copy_svc): New.
3243         (install_pc_relative): New.
3244         (thumb_copy_pc_relative_16bit): New.
3245         (thumb_decode_pc_relative_16bit): New.
3246         (thumb_copy_16bit_ldr_literal): New.
3247         (thumb_copy_cbnz_cbz): New.
3248         (cleanup_pop_pc_16bit_all): New.
3249         (thumb_copy_pop_pc_16bit): New.
3250         (thumb_process_displaced_16bit_insn): New.
3251         (thumb_process_displaced_32bit_insn): New.
3252         (thumb_process_displaced_insn): process thumb instruction.
3253
3254         Support displaced stepping for Thumb 32-bit insns.
3255         * arm-tdep.c (thumb_copy_unmodified_32bit): New.
3256         (thumb2_copy_preload): New.
3257         (thumb2_copy_copro_load_store): New.
3258         (thumb2_copy_b_bl_blx): New.
3259         (thumb2_copy_alu_imm): New.
3260         (thumb2_copy_load_reg_imm): New.
3261         (thumb2_copy_load_literal): New
3262         (thumb2_copy_block_xfer): New.
3263         (thumb_32bit_copy_undef): New.
3264         (thumb_32bit_copy_unpred): New.
3265         (thumb2_decode_ext_reg_ld_st): New.
3266         (thumb2_decode_svc_copro): New.
3267         (decode_thumb_32bit_store_single_data_item): New.
3268         (thumb_copy_pc_relative_32bit): New.
3269         (thumb_decode_pc_relative_32bit): New.
3270         (decode_thumb_32bit_ld_mem_hints): New.
3271         (thumb2_copy_table_branch): New
3272         (thumb_process_displaced_32bit_insn): Process Thumb 32-bit
3273         instructions.
3274
3275 2011-09-18  Yao Qi  <yao@codesourcery.com>
3276
3277         * arm-tdep.c (install_copro_load_store): PC is set 4-byte aligned.
3278         (install_b_bl_blx): Likewise.
3279
3280 2011-09-17  Yao Qi  <yao@codesourcery.com>
3281
3282         * arm-tdep.c (install_ldr_str_ldrb_strb): Renamed to ...
3283         (install_load_store): ... this.  New.
3284         Change parameter BYTE to SIZE.
3285         (arm_copy_ldr_str_ldrb_strb): Update caller.
3286         (arm_decode_ld_st_word_ubyte): Update caller.
3287
3288 2011-09-17  Yao Qi  <yao@codesourcery.com>
3289
3290         * infrun.c (displaced_step_fixup): Move some code ...
3291         (displaced_step_restore): ... here.  New function.
3292         (handle_inferior_event): Cleanup displaced stepping state for both
3293         child and parent when get forked or vforked event.
3294         * regcache.c (get_thread_arch_aspace_regcache): New function.
3295         get_thread_arch_regcache (): Call it.
3296
3297 2011-09-16  Joel Brobecker  <brobecker@adacore.com>
3298
3299         * ada-tasks.c (print_ada_task_info): New function, merging
3300         short_task_info and info_tasks together.  Reimplement using
3301         ui-out instead of printing to stdout directly.  Move the code
3302         building and checking the task list here, instead of leaving it
3303         in info_tasks_command.
3304         (info_task): Move the code building and checking the task
3305         list here, instead of leaving it in info_tasks_command.
3306         (info_tasks_command): Delete code building and checking
3307         the task list - moved elsewhere.  Update calls to info_tasks
3308         and info_task.
3309
3310 2011-09-16  Joel Brobecker  <brobecker@adacore.com>
3311
3312         * ada-tasks.c (info_task): Delete parameter `from_tty'.
3313
3314 2011-09-16  Joel Brobecker  <brobecker@adacore.com>
3315
3316         * ada-tasks.c (info_tasks): Delete parameter `from_tty'.
3317
3318 2011-09-16  Joel Brobecker  <brobecker@adacore.com>
3319
3320         * ada-lang.h (ada_build_task_list): Remove parameter
3321         `warn_if_null'.
3322         * ada-tasks.c (ada_build_task_list): Remove parameter
3323         `warn_if_null'.  Adjust implementation and documentation.
3324         (valid_task_id, ada_get_environment_task)
3325         iterate_over_live_ada_tasks): Adjust call to ada_build_task_list.
3326         (info_tasks_command): Adjust implementation.
3327         (task_command): Likewise.
3328         * ravenscar-thread.c (ravenscar_find_new_threads): Fix call
3329         to ada_build_task_list.
3330
3331 2011-09-16  Joel Brobecker  <brobecker@adacore.com>
3332
3333         * ada-tasks.c (ada_tasks_check_symbol_table, task_list): Delete.
3334         (enum ada_known_tasks_kind, struct ada_tasks_inferior_data): New.
3335         (ada_tasks_inferior_data_handle): New static global.
3336         (get_ada_tasks_inferior_data): New function.
3337         (ada_get_task_number, get_task_number_from_id, valid_task_id)
3338         (ada_get_environment_task, iterate_over_live_ada_tasks)
3339         (add_ada_task, read_known_tasks_array, read_known_tasks_list):
3340         Adjust.
3341         (ada_set_current_inferior_known_tasks_addr): New function.
3342         (read_known_tasks, ada_build_task_list, short_task_info)
3343         (info_tasks, info_task, info_tasks_command, task_command_1)
3344         (task_command, ada_task_list_changed): Adjust.
3345         (ada_tasks_invalidate_inferior_data): New function.
3346         (ada_normal_stop_observer, ada_new_objfile_observer): Adjust.
3347         (_initialize_tasks): Set ada_tasks_inferior_data_handle.
3348         * ada-lang.h (struct inferior): Add declaration.
3349         (ada_task_list_changed): Update profile.
3350         * remote-wtx-pd.c: #include "inferior.h".
3351         (switch_to_pd_internal): Update call to ada_task_list_changed.
3352
3353 2011-09-16  Joel Brobecker  <brobecker@adacore.com>
3354
3355         * ada-tasks.c: #include "progspace.h" and "objfiles.h".
3356         (atcb_type, atcb_common_type, atcb_ll_type, atcb_call_type)
3357         (atcb_fieldno): Delete these static globals.
3358         (struct ada_tasks_pspace_data): New struct.
3359         (ada_tasks_pspace_data_handle): New static global.
3360         (get_ada_tasks_pspace_data): New function.
3361         (ada_tasks_invalidate_pspace_data): New function.
3362         (get_tcb_types_info, ptid_from_atcb_common, read_atcb)
3363         (read_known_tasks_list, ada_new_objfile_observer): Adjust.
3364         (_initialize_tasks): Create this module's per-progspace
3365         data handle.
3366
3367 2011-09-16  Joel Brobecker  <brobecker@adacore.com>
3368
3369         * ada-tasks.c (struct atcb_fieldnos): Renames struct tcb_fieldnos.
3370
3371 2011-09-16  Tristan Gingold  <gingold@adacore.com>
3372
3373         * fork-child.c (fork_inferior): Update comment.  Use alloca
3374         instead of xmalloc for argv.  Move len and shell_command
3375         declarations in the block where they are used.
3376         Only call execvp.  Factorize failure code.
3377
3378 2011-09-16  Abhijit Halder  <abhijit.k.halder@gmail.com>
3379
3380         Code cleanup.
3381         * parse.c (write_exp_elt): Change argument to pass a pointer of union
3382         `exp_element' instead of an element of the same and make the function
3383         static.
3384         (write_exp_elt_opcode, write_exp_elt_sym, write_exp_elt_block)
3385         (write_exp_elt_objfile, write_exp_elt_longcst, write_exp_elt_dblcst)
3386         (write_exp_elt_decfloatcst, write_exp_elt_type, write_exp_elt_intern):
3387         Change argument of `write_exp_elt' function call.
3388         Remove extra spaces from comments.
3389         * parser-defs.h (write_exp_elt): Remove prototype.
3390
3391 2011-09-15  Paul Koning  <paul_koning@dell.com>
3392
3393         * python/py-cmd.c (gdbpy_string_to_argv): Decrement reference
3394         count of item appended to list.
3395         * python/py-type.c (typy_fields): Likewise.
3396
3397 2011-09-15  Paul Koning  <paul_koning@dell.com>
3398
3399         * MAINTAINERS (Write After Approval): Add myself to the list.
3400
3401 2011-09-15  Kevin Pouget  <kevin.pouget@st.com>
3402
3403         PR threads/12628
3404         * linux-fork.c (checkpoint_command): Disallow checkpointing of
3405         processes with multiple threads.
3406         (inf_has_multiple_thread_cb): New function.
3407         (inf_has_multiple_threads): New function.
3408
3409 2011-09-15  Kevin Pouget  <kevin.pouget@st.com>
3410
3411         PR Python/12692 Add gdb.selected_inferior() to Python interface.
3412         * python/py-inferior.c (GdbMethods): New Python method definition.
3413
3414 2011-09-15  Kevin Pouget  <kevin.pouget@st.com>
3415
3416         Handle multiple breakpoint hits in Python interface:
3417         * python/py-bpevent.c (create_breakpoint_event_object): Rename C/Python
3418         variable to breakpoints.
3419         * python/py-stopevent.c (emit_stop_event): Return a Python tuple of
3420         bps instead of single breakpoint. Fix some space typos.
3421         * python/py-stopevent.c (create_breakpoint_event_object): Rename
3422         variable to breakpoints.
3423
3424 2011-09-15  Kevin Pouget  <kevin.pouget@st.com>
3425
3426         * breakpoint.c (describe_other_breakpoints): Do not write 'duplicate'
3427         note if the breakpoint is internal.
3428
3429 2011-09-15  Kevin Pouget  <kevin.pouget@st.com>
3430
3431         * MAINTAINERS (Write After Approval): Add myself to the list
3432
3433 2011-09-14  Pedro Alves  <pedro@codesourcery.com>
3434
3435         * infrun.c (prepare_for_detach, wait_for_inferior)
3436         (fetch_inferior_event): Don't flush the register cache.
3437         * remote.c (struct stop_reply) <regcache>: Add comment.
3438
3439 2011-09-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
3440
3441         Remove excessive DWARF expressions memory duplication.
3442         * dwarf2loc.c (per_cu_dwarf_call): Remove variable back_to and its use
3443         for block.data.
3444         (indirect_pieced_value): Remove variable result.  Remove variable
3445         back_to and its use for baton.data.
3446         (dwarf2_compile_expr_to_ax): Remove variable back_to and its use for
3447         block.data.
3448         * dwarf2read.c (dwarf2_fetch_die_location_block): Remove xmemdup.
3449         Update the function comment.
3450
3451 2011-09-13  Pedro Alves  <pedro@codesourcery.com>
3452
3453         * inferior.h (ALL_INFERIORS): New.
3454         * linux-thread-db.c (thread_db_find_new_threads_2): Remove check
3455         for a stopped thread.
3456         (thread_db_find_new_threads): Look for threads in all inferiors.
3457
3458 2011-09-13  Pedro Alves  <pedro@codesourcery.com>
3459
3460         * breakpoint.c (update_watchpoint): Handle the case of the
3461         watchpoint to update not being in the breakpoint list yet.
3462         (hw_watchpoint_use_count): New, factored out from
3463         hw_watchpoint_used_count.
3464         (hw_watchpoint_used_count): Rename to ...
3465         (hw_watchpoint_used_count_others): ... this.  Add `except'
3466         parameter.  Don't count resources of `except'.  Use
3467         hw_watchpoint_use_count.
3468
3469 2011-09-13  Pedro Alves  <pedro@codesourcery.com>
3470
3471         * gdbthread.h (enum thread_state): Moved here.
3472         (struct thread_info): Rename `executing_' field to `executing' and
3473         `state_' to `state'.
3474         * thread.c (enum thread_state): Moved to gdbthread.h.
3475         (new_thread, add_thread_silent, delete_thread_1)
3476         (any_live_thread_of_process, thread_alive, set_running)
3477         (set_running, is_thread_state, any_running, is_executing)
3478         (set_executing, finish_thread_state, print_thread_info)
3479         (do_captured_thread_select): Adjust.
3480
3481 2011-09-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
3482
3483         Fix compatibility with gcc < 4.3 and non-gcc compilers.
3484         * amd64-tdep.c (amd64_skip_xmm_prologue): Convert 0b constants.
3485
3486 2011-09-12  Pedro Alves  <pedro@codesourcery.com>
3487             Matt Rice  <ratmice@gmail.com>
3488
3489         PR gdb/13175
3490
3491         * interps.c (struct interp) <interpreter_out>: Delete field.
3492         (interp_new): Remove the data and uiout parameters and adjust.
3493         (interp_set): Only set the current_uiout from the interpreter's
3494         uiout after initializing the interpreter.  Adjust call to
3495         init_proc.
3496         (interp_ui_out): Adjust to call procs->ui_out_proc.
3497         (interp_data, interp_name): New.
3498         * interps.h (interp_init_ftype): Add `self' parameter.
3499         (interp_ui_out_ftype): New typedef.
3500         (struct interp_procs) <ui_out_proc>: New method pointer.
3501         (interp_new): Remove the data and uiout parameters.
3502         (interp_data, interp_name): Declare.
3503         * tui/tui-interp.c (tui_init): Adjust prototype.
3504         (tui_ui_out): New.
3505         (_initialize_tui_interp): Install tui_ui_out.  Don't instanciate
3506         tui_out here.  Adjust call to interp_new.
3507         * tui/tui-io.c (tui_initialize_io): Don't set current_uiout here.
3508         * cli/cli-interp.c (cli_interpreter_init): Adjust prototype.
3509         (cli_ui_out): New.
3510         (_initialize_cli_interp): Install it.  Adjust call to interp_new.
3511         * mi/mi-common.h (struct mi_interp) <uiout>: New field.
3512         * mi/mi-interp.c (mi_interpreter_init): Adjust prototype.
3513         Initialize mi->uiout depending on the mi_version as extracted from
3514         the interpreter's name.
3515         (mi_ui_out): New.
3516         (_initialize_mi_interp): Install mi_ui_out.  Adjust calls to
3517         interp_new.  Don't allocate the ui_out's of the interpreters here.
3518
3519 2011-09-12  Aleksandar Ristovski  <aristovski@qnx.com>
3520
3521         * solib.c (solib_used): New function.
3522         (update_solib_list, reload_shared_libraries_1): Check if objfile is used
3523         by another so_list object before freeing it.
3524
3525 2011-09-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
3526
3527         Code cleanup.
3528         * mi/mi-cmd-stack.c (list_args_or_locals): Use enum for the parameter
3529         values.
3530
3531 2011-09-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
3532
3533         Code cleanup.
3534         * amd64-tdep.c (amd64_skip_prologue): Move the XMM code to ...
3535         (amd64_skip_xmm_prologue): ... this new function.  Describe its
3536         parameters.  No longer use amd64_prologue_line_bug.
3537         * defs.h (producer_is_gcc_ge_4): New declaration.
3538         * dwarf2read.c (producer_is_gcc_ge_4): Move to utils.c.
3539         (process_full_comp_unit): Update its caller.  Remove
3540         amd64_prologue_line_bug initialization.
3541         * symtab.h (struct symtab): Remove field amd64_prologue_line_bug.
3542         * utils.c (producer_is_gcc_ge_4): Moved here from dwarf2read.c.
3543
3544 2011-09-09  Pedro Alves  <pedro@codesourcery.com>
3545
3546         * linux-nat.h (enum resume_kind): New.
3547         (struct lwp_info) <last_resume_kind>: New field.
3548         * linux-nat.c (linux_child_follow_fork): Set last_resume_kind to
3549         resume_stop on the new lwp.
3550         (add_lwp): Set last_resume_kind as resume_continue by default.
3551         (lin_lwp_attach_lwp): Set last_resume_kind as resume_stop.
3552         (resume_lwp): New, factored out from resume_callback.  Also check
3553         for pending status in lp->waitstatus.
3554         (resume_callback): Reimplement.
3555         (resume_clear_callback): Set last_resume_kind as resume_stop.
3556         (resume_set_callback): Set last_resume_kind as resume_continue.
3557         (linux_nat_resume, linux_handle_extended_wait): Set
3558         last_resume_kind.
3559         (running_callback): Also check lp->waitstatus for pending events.
3560         (select_singlestep_lwp_callback): Check that lp->last_resume_kind
3561         is resume_step.
3562         (stop_and_resume_callback): Don't re-resume if the core wanted the
3563         lwp stopped.  Use resume_lwp instead of resume_callback.  Avoid
3564         using an invalidated pointer.
3565         (linux_nat_filter_event): Don't discard SIGSTOPs as delayed
3566         SIGSTOPs if the core wanted the LWP to stop.
3567         (linux_nat_wait_1) Don't consume a pending SIGSTOP if the core
3568         wanted the lwp to stop.  If the core wanted the lwp to stop, and
3569         the lwp stopped with a SIGSTOP, report a TARGET_SIGNAL_0 instead
3570         of TARGET_SIGNAL_STOP.
3571         (linux_nat_stop_lwp): Don't synchronously wait for the lwp to stop
3572         here.  Instead, signal the lwp, and set the last_resume_kind to
3573         resume_stop.
3574
3575 2011-09-09  Pedro Alves  <pedro@codesourcery.com>
3576
3577         * linux-nat.c (lin_lwp_attach_lwp): Return 1 (ignore) instead of
3578         -1 (error), if the lwp exits right after attaching.
3579
3580 2011-09-08  Doug Evans  <dje@google.com>
3581
3582         * py-cmd.c: Some minor formatting fixes.
3583         (gdbpy_parse_command_name): Rename text arg to name, make const.
3584         All callers updated.
3585         * python-internal.h (gdbpy_parse_command_name): Update.
3586
3587         * cli/cli-decode.c (add_cmd): Add comment.
3588
3589 2011-09-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
3590
3591         PR breakpoints/12435
3592         * amd64-tdep.c (amd64_skip_prologue): New variables start_pc_sal,
3593         next_sal, buf, offset and xmmreg.  Advance PC if it sees the PR.
3594         * dwarf2read.c (process_full_comp_unit): Initialize
3595         amd64_prologue_line_bug.
3596         * symtab.h (struct symtab): New field amd64_prologue_line_bug.
3597
3598 2011-09-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
3599
3600         Fix TUI screen corruption.
3601         * utils.c (fputs_maybe_filtered): Replace !input_from_terminal_p by
3602         batch_flag.
3603
3604 2011-09-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
3605
3606         * findvar.c (read_var_value): Never return NULL, throw an error
3607         instead.  Update the function comment.  State symbol name in the error
3608         messages.
3609         * python/py-frame.c (frapy_read_var): Remove handling of NULL from
3610         read_var_value.
3611         * stack.c (print_frame_args): Likewise.
3612         * valops.c (value_of_variable): Likewise.
3613
3614 2011-09-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
3615
3616         * stack.c (print_frame_args): New variable except.  Wrap
3617         read_var_value and common_val_print into TRY_CATCH.
3618
3619 2011-09-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
3620
3621         * eval.c (evaluate_subexp_standard) <OP_THIS>: Update the value_of_this
3622         caller to value_of_this.
3623         * p-exp.y: Update the value_of_this caller to value_of_this_silent.
3624         Twice.
3625         * valops.c (value_of_this): Remove parameter complain and variable ret.
3626         Update function comment.  Never return NULL by this code.
3627         (value_of_this_silent): New function.
3628         * value.h (value_of_this): Remove parameter complain.
3629         (value_of_this_silent): New declaration.
3630
3631 2011-09-07  Yao Qi  <yao@codesourcery.com>
3632
3633         * gdbthread.h (struct thread_info): Remove fields
3634         `stepping_through_solib_after_catch' and
3635         `stepping_through_solib_catchpoints'.
3636         * infrun.c (init_thread_stepping_state): Update.
3637         (process_event_stop_test, currently_stepping): Update.
3638         (currently_stepping_or_nexting_callback): Update.
3639
3640 2011-09-07  Yao Qi  <yao@codesourcery.com>
3641
3642         * gdbthread.h (struct thread_info): Comment on field
3643         `step_after_step_resume_breakpoint'.
3644
3645 2011-09-07  Abhijit Halder  <abhijit.k.halder@gmail.com>
3646
3647         * remote.c (remote_console_output): Reindent.
3648
3649 2011-09-06  Luis Machado  <lgustavo@codesourcery.com>
3650
3651         * frame.c (has_stack_frames): Check for currently selected
3652         traceframe.
3653
3654 2011-09-06  Pedro Alves  <pedro@codesourcery.com>
3655
3656         * event-top.h (MAXPROMPTS, struct prompts): Delete.
3657         (set_async_annotation_level, set_async_prompt, pop_prompt)
3658         (push_prompt, new_async_prompt): Delete declarations.
3659         * top.h (get_prompt, set_prompt): Change prototype.
3660         (get_prefix, set_prefix, get_suffix, set_suffix): Delete
3661         declarations.
3662         * top.c (command_loop):
3663         (top_prompt): New global.
3664         (get_prefix, set_prefix, get_suffix, ): Delete.
3665         (get_prompt, set_prompt): Rewrite.
3666         (show_new_async_prompt): Rename to ...
3667         (show_prompt): ... this.
3668         (init_main): Adjust.  Don't handle --annotate=2 here.
3669         * event-top.c (new_async_prompt): Delete.
3670         (the_prompts): Delete.
3671         (more_to_come): Make static.
3672         (display_gdb_prompt): Use top_level_prompt() to compute the top
3673         level prompt, and don't notify the before_prompt observers
3674         directly here.  Always trick readline into not trying to display
3675         the prompt if sync_execution and displaying the primary prompt.
3676         If displaying a local/secondary prompt, always show it, even if
3677         sync_execution is set.
3678         (change_annotation_level): Delete.
3679         (top_level_prompt): New, based on change_annotation_level.
3680         (push_prompt, pop_prompt): Delete.
3681         (async_disable_stdin): No longer pushes prompt.
3682         (command_line_handler): No longer pushes or pops prompt.  If more
3683         input is expected, call display_gdb_prompt with an explicit empty
3684         prompt.
3685         (async_stop_sig): Adjust.
3686         (set_async_annotation_level, set_async_prompt): Delete.
3687         * python/python.c (before_prompt_hook): Adjust.
3688
3689 2011-09-05  Pedro Alves  <pedro@codesourcery.com>
3690
3691         PR cli/13110
3692
3693         * infrun.c (fetch_inferior_event): Check if there's a selected
3694         thread before checking if the selected thread is executing.
3695
3696 2011-09-05  Pedro Alves  <pedro@codesourcery.com>
3697
3698         * inf-loop.c (execute_command): Don't check if the current thread
3699         if running before synchronously waiting for command completion.
3700         * infrun.c (fetch_inferior_event): Handle "set exec-done-display"
3701         here.
3702         (normal_stop): Call async_enable_stdin here.
3703         * inf-loop.c (inferior_event_handler): Don't call
3704         async_enable_stdin, nor handle "set exec-done-display" here.
3705
3706 2011-09-04  Joel Brobecker  <brobecker@adacore.com>
3707
3708         GDB 7.3.1 released.
3709
3710 2011-09-04  Joel Brobecker  <brobecker@adacore.com>
3711
3712         * NEWS: Change `7.3' into `7.3.1' in `Changes since GDB 7.3'.
3713
3714 2011-09-04  Joel Brobecker  <brobecker@adacore.com>
3715
3716         * NEWS: Add entry for OpenBSD/NetBSD build failure.
3717
3718 2011-09-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3719
3720         * config/s390/s390.mh (NATDEPFILES): Add linux-procfs.o dependency.
3721
3722 2011-09-02  Matt Rice  <ratmice@gmail.com>
3723
3724         PR gdb/10720
3725         * event-top.c (cli_command_loop): Replace readline setup with
3726         direct call to display_gdb_prompt.
3727         (display_gdb_prompt): Do not call observer mechanism during
3728         synchronous execution.
3729
3730 2011-09-02  Pedro Alves  <pedro@codesourcery.com>
3731
3732         * linux-nat.c (in_pid_list_p): New.
3733         (linux_record_stopped_pid): Delete.
3734         (lin_lwp_attach_lwp): Check if PTRACE_ATTACH failed because we're
3735         already attached to the LWP.  Return an indication if so.
3736         (linux_nat_filter_event): Adjust.
3737         * linux-thread-db.c (attach_thread): Handle lin_lwp_attach_lwp
3738         returning an indication to ignore this thread.
3739
3740 2011-09-02  Pedro Alves  <pedro@codesourcery.com>
3741
3742         * top.c: Include interps.h.
3743         (execute_command): If the target can async, but the interpreter is
3744         in sync mode, synchronously wait for the command to finish before
3745         returning.
3746         (execute_command_to_string): Force the interpreter to sync mode.
3747         * infrun.c: Include interps.h.
3748         (fetch_inferior_event): Don't restore the prompt yet if the
3749         interpreter is in sync mode.
3750         * interps.c (interpreter_async): New global.
3751         * interps.h (interpreter_async): Declare.
3752         * inf-loop.c: Include interps.h.
3753         (inferior_event_handler): Don't print the language change or run
3754         breakpoint commands yet if the interpreter in is sync mode.
3755         * main.c (captured_command_loop): Flip the interpreter to async
3756         mode.
3757         * cli/cli-script.c: Include interps.h.
3758         (execute_user_command, while_command, if_command): Force the
3759         interpreter to sync mode.
3760         * python/python.c: Include interps.h.
3761         (python_command, execute_gdb_command): Force the interpreter to
3762         sync mode.
3763
3764 2011-09-02  Pedro Alves  <pedro@codesourcery.com>
3765
3766         * value.c (show_convenience): Catch errors thrown while printing
3767         each internal variable.
3768         * infrun.c (validate_siginfo_access): New function.
3769         (siginfo_value_read, siginfo_value_write): Call it.
3770
3771 2011-09-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
3772
3773         Revert:
3774         2010-05-21  Pierre Muller  <muller@ics.u-strasbg.fr>
3775         * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
3776         attribute.
3777
3778 2011-08-29  Yao Qi  <yao@codesourcery.com>
3779
3780         * solib-dsbt.c (bfd_lookup_symbol): Removed.
3781         (cmp_name): New.
3782         (enable_break2): Update caller.
3783         * solib-frv.c (bfd_lookup_symbol): Removed.
3784         (cmp_name): New.
3785         (enable_break2): Update caller.
3786         * solib-pa64.c (bfd_lookup_symbol): Removed.
3787         (cmp_name): New.
3788         * solib-svr4.c (bfd_lookup_symbol): Removed.
3789         (cmp_name_and_sec_flags): New.
3790         (enable_break): Update caller.
3791         * solib.c (gdb_bfd_lookup_symbol_from_symtab): New.
3792         (gdb_bfd_lookup_symbol_from_dyn_symtab): New.
3793         (gdb_bfd_lookup_symbol): New.
3794         * solib.h: Functions declarations.
3795
3796 2011-08-29  Yao Qi  <yao@codesourcery.com>
3797
3798         * Makefile.in (ALL_TARGET_OBS): Add tic6x-tdep.o tic6x-linux-tdep.o
3799         and solib-dsbt.o.
3800
3801 2011-08-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
3802
3803         Fix TUI stepi on code without symbols.
3804         * tui/tui-stack.c (tui_show_frame_info): Remove error, set LOW for
3805         current PC instead.
3806
3807 2011-08-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
3808
3809         Code cleanup.
3810         * mi/mi-cmd-stack.c (list_args_or_locals): Remove stb initialization
3811         and the static keyword.
3812         * mi/mi-cmd-target.c (mi_cmd_target_file_get, mi_cmd_target_file_put):
3813         Make prefix an array.
3814         * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
3815         * mi/mi-main.c (get_register): Remove stb initialization and the static
3816         keyword.
3817
3818 2011-08-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
3819
3820         Code cleanup - make mi_opt const.
3821         * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Make
3822         opts const.
3823         * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
3824         * mi/mi-cmd-env.c (mi_cmd_env_path): Likewise.
3825         (mi_cmd_env_dir): Likewise.
3826         * mi/mi-cmd-target.c (mi_cmd_target_file_get): Likewise.
3827         (mi_cmd_target_file_put): Likewise.
3828         * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
3829         * mi/mi-cmd-var.c (mi_cmd_var_evaluate_expression): Likewise.
3830         * mi/mi-getopt.c (mi_getopt): Make opts and opt const.
3831         (mi_valid_noargs): Make opts const.
3832         * mi/mi-getopt.h (mi_getopt): Make opts and opt const.
3833         * mi/mi-main.c (mi_cmd_list_thread_groups): Make opts const.
3834         (mi_cmd_data_read_memory): Likewise.
3835         (mi_cmd_data_read_memory_bytes): Likewise.
3836         (mi_cmd_data_write_memory): Likewise.
3837
3838 2011-08-26  Matt Rice  <ratmice@gmail.com>
3839
3840         * solib-sunos.c (allocate_rt_common_objfile): Add missing arguments to
3841         bcache_xmalloc,  replace bcache_xmalloc with call to
3842         psymbol_bcache_init for psymbol_cache.
3843         * symfile.c (reread_symbols): Remove extra calls to bcache_xmalloc.
3844
3845 2011-08-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
3846
3847         * inf-loop.c (inferior_event_handler): Add exception_print in
3848         INF_EXEC_COMPLETE.
3849
3850 2011-08-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
3851
3852         * breakpoint.c (bpstat_do_actions): New variable cleanup_if_error, call
3853         make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3854         * defs.h (make_bpstat_clear_actions_cleanup): New declaration.
3855         * exceptions.c (throw_exception): Remove the bpstat_clear_actions call.
3856         * inf-loop.c (inferior_event_handler): New variable cleanup_if_error,
3857         call make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3858         Call bpstat_clear_actions for failed fetch_inferior_event_wrapper.
3859         * infrun.c (fetch_inferior_event): Call
3860         make_bpstat_clear_actions_cleanup.
3861         * top.c (execute_command): New variable cleanup_if_error, call
3862         make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3863         * utils.c (do_bpstat_clear_actions_cleanup)
3864         (make_bpstat_clear_actions_cleanup): New functions.
3865
3866 2011-08-26  Pedro Alves  <pedro@codesourcery.com>
3867
3868         * linux-nat.c (linux_child_follow_fork): Don't set lp->resumed on
3869         either the parent or the child forks.  Rename a couple locals.
3870
3871 2011-08-26  Pedro Alves  <pedro@codesourcery.com>
3872
3873         * linux-nat.c (wait_lwp): Avoid assuming errno is preserved by a
3874         library call.  Avoid reading the `status' local if all waitpid
3875         calls failed.
3876
3877 2011-08-26  Pedro Alves  <pedro@codesourcery.com>
3878
3879         * common/linux-osdata.c (get_cores_used_by_process): Don't assume
3880         opening /proc/PID/task always succeeds.
3881
3882 2011-08-26  Aleksandar Ristovski <aristovski@qnx.com>
3883
3884         * linespec.c (symtab_from_filename): Check for the end of string.
3885
3886 2011-08-26  Marc Khouzam  <marc.khouzam@ericsson.com>
3887
3888         PR mi/11912
3889         * varobj.c (cplus_describe_child): Add the keyword
3890         'class' to the output of the method when dealing 
3891         with a cast to a base class.
3892
3893 2011-08-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
3894
3895         No functionality change.
3896         * breakpoint.c (bpstat_clear_actions): Remove the BS parameter, make
3897         function comment a reference, new variables tp and bs, move here code
3898         from throw_exception.
3899         * breakpoint.h (bpstat_clear_actions): Remove the BS parameter,
3900         describe it in the comment.
3901         * exceptions.c (throw_exception): Remove variable tp, move the code for
3902         bpstat_clear_actions to bpstat_clear_actions.
3903
3904 2011-08-24  Luis Machado  <lgustavo@codesourcery.com>
3905
3906         * linux-nat.h (linux_proc_get_tgid): Remove declaration.
3907         * linux-nat.c: Include linux-procfs.h.
3908         (linux_proc_get_tgid): Move to ...
3909         * common/linux-procfs.c: ... here. New file.
3910         * common/linux-procfs.h: New file.
3911         * linux-thread-db.c: Include linux-procfs.h.
3912         * Makefile.in: Update dependencies.
3913         * config/alpha/alpha-linux.mh: Add linux-procfs.o dependency.
3914         * config/arm/linux.mh: Likewise.
3915         * config/i386/linux.mh: Likewise.
3916         * config/i386/linux64.mh: Likewise.
3917         * config/ia64/linux.mh: Likewise.
3918         * config/m32r/linux.mh: Likewise.
3919         * config/m68k/linux.mh: Likewise.
3920         * config/mips/linux.mh: Likewise.
3921         * config/pa/linux.mh: Likewise.
3922         * config/pa/linux.mh: Likewise.
3923         * config/powerpc/linux.mh: Likewise.
3924         * config/powerpc/ppc64-linux.mh: Likewise.
3925         * config/powerpc/spu-linux.mh: Likewise.
3926         * config/sparc/linux.mh: Likewise.
3927         * config/sparc/linux64.mh: Likewise.
3928         * config/xtensa/linux.mh: Likewise.
3929
3930 2011-08-24  Hui Zhu  <teawater@gmail.com>
3931
3932         * tracepoint.c (cond_string_is_same): New function.
3933         (find_matching_tracepoint): Add condition check
3934         by cond_string_is_same.
3935
3936 2011-08-23  Josh Matthews  <josh@joshmatthews.net>
3937
3938         Fix build error in Darwin port.
3939         * darwin-nat-info.c (darwin_debug_regions_recurse): New variable uiout.
3940
3941 2011-08-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
3942
3943         Code cleanup.
3944         * breakpoint.c (bpstat_clear_actions): Remove clearing of commands_left.
3945         (command_line_is_silent): New function.
3946         (bpstat_do_actions_1): No longer use commands_left, use
3947         command_line_is_silent for commands.
3948         (bpstat_alloc): Remove clearing of commands_left.
3949         (bpstat_stop_status): Remove initialization of commands_left, use
3950         command_line_is_silent.
3951         * breakpoint.h (struct bpstats): Remove commands_left.
3952
3953 2011-08-18  Keith Seitz  <keiths@redhat.com>
3954
3955         PR c++/12266
3956         * cp-name-parser.y (struct demangle_info): Remove unused
3957         member PREV.
3958         (d_grab): Likewise.
3959         (allocate_info): Change return type to struct demangle_info *.
3960         Always allocate a new demangle_info.
3961         Remove unused PREV pointer.
3962         (cp_new_demangle_parse_info): New function.
3963         (cp_demangled_name_parse_free): New function.
3964         (do_demangled_name_parse_free_cleanup): New function.
3965         (make_cleanup_cp_demangled_name_parse_free): New function.
3966         (cp_demangled_name_to_comp): Change return type to
3967         struct demangle_parse_info *.
3968         Allocate a new storage for each call.
3969         (main): Update usage for cp_demangled_name_to_comp
3970         API change.
3971         * cp-support.h (struct demangle_parse_info): New structure.
3972         (cp_demangled_name_to_comp): Update API change for
3973         return type.
3974         (cp_new_demangle_parse_info): Declare.
3975         (make_cleanup_cp_demangled_name_parse_free): New declaration.
3976         (cp_demangled_name_parse_free): Declare.
3977         * cp-support.c (cp_canonicalize_string): Update API
3978         change for cp_demangled_name_to_comp.
3979         (mangled_name_to_comp): Likewise.
3980         Return struct demangle_parse_info, too.
3981         (cp_class_name_from_physname): Update mangled_name_to_comp
3982         API change.
3983         (method_name_from_physname): Likewise.
3984         (cp_func_name): Update API change for cp_demangled_name_to_comp.
3985         (cp_remove_params): Likewise.
3986         * python/py-type.c (typy_legacy_template_argument): Likewise.
3987
3988         * cp-support.h (cp_canonicalize_string_no_typedefs): Declare.
3989         (cp_merge_demangle_parse_infos): Declare.
3990         * cp-support.c (ignore_typedefs): New file global.
3991         (copy_string_to_obstack): New function.
3992         (inspect_type): New function.
3993         (replace_typedefs): New function.
3994         (replace_typedefs_qualified_name): New function.
3995         (cp_canonicalize_string_no_typedefs): New function.
3996         * cp-name-parser.y (cp_merge_demangle_parse_infos): New function.
3997         (cp_new_demangle__parse_info): Allocate and initialize the obstack.
3998         * linespec.c (find_methods): Use cp_canonicalize_string_no_typedefs
3999         instead of cp_canonicalize_string.
4000         (find_method): Likewise.
4001         (decode_compound): Before looking up the name, call
4002         cp_canonicalize_string_no_typedefs.
4003         (decode_variable): Likewise.
4004
4005 2011-08-17  Phil Muldoon  <pmuldoon@redhat.com>
4006             Tom Tromey  <tromey@redhat.com>
4007             Matt Rice <ratmice@gmail.com>
4008
4009         * python/lib/gdb/prompt.py: New file.
4010         * python/lib/gdb/command/prompt.py: New file.
4011         * NEWS: Document set extended-prompt and gdb.prompt library
4012
4013 2011-08-16  Yao Qi  <yao@codesourcery.com>
4014
4015         * tic6x-linux-tdep.c: Move const arrays definition from here...
4016         * tic6x-tdep.c: to here ...
4017
4018 2011-08-14  Yao Qi  <yao@codesourcery.com>
4019
4020         * NEWS: New port to Texas Instruments TMS320C6x.
4021
4022 2011-08-14  Andrew Jenner  <andrew@codesourcery.com>
4023             Bernd Schmidt  <bernds@codesourcery.com>
4024             Yao Qi  <yao@codesourcery.com>
4025
4026         * configure.tgt: Handle tic6x-*-*linux and tic6x-*-*.
4027         * solib-dsbt.c: New file.  Support DSBT shared object.
4028         * tic6x-linux-tdep.c: New file.
4029         * tic6x-tdep.c: New file.
4030         * tic6x-tdep.h: New file.
4031
4032 2011-08-14  Andrew Stubbs <ams@codesourcery.com>
4033             Yao Qi  <yao@codesourcery.com>
4034
4035         * remote.c (PACKET_qXfer_fdpic): New enum value.
4036         (remote_protocol_features): Add qXfer:fdpic:read packet.
4037         (remote_xfer_partial): Support TARGET_OBJECT_FDPIC.
4038         (_initialize_remote): Add set/show remote read-fdpic-loadmap command.
4039         * target.h (enum target_object): Add TARGET_OBJECT_FDPIC.
4040
4041 2011-08-14  Yao Qi  <yao@codesourcery.com>
4042
4043         Target description for tic6x.
4044         * features/Makefile (WHICH): Add tic6x-c64xp tic6x-c64x tic6x-c62x
4045         tic6x-c64xp-linux tic6x-c64x-linux and tic6x-c62x-linux.
4046         * features/tic6x-c6xp.xml, features/tic6x-core.xml: New.
4047         * features/tic6x-gp.xml, features/tic6x-c62x.xml: New.
4048         * features/tic6x-c64x.xml, features/tic6x-c64xp.xml: New.
4049         * features/tic6x-c62x-linux.xml, features/tic6x-c64x-linux.xml: New.
4050         * features/tic6x-c64xp-linux.xml: New.
4051         * features/tic6x-c64xp.c, features/tic6x-c64x.c: Generated.
4052         * features/tic6x-c62x.c, features/tic6x-c64xp-linux.c: Generated.
4053         * features/tic6x-c64x-linux.c, features/tic6x-c62x-linux.c: Generated.
4054         * regformats/tic6x-c62x.dat, regformats/tic6x-c64x.dat: Generated.
4055         * regformats/tic6x-c64xp.dat,
4056         regformats/tic6x-c62x-linux.dat: Generated.
4057         * regformats/tic6x-c64x-linux.dat,
4058         regformats/tic6x-c64xp-linux.dat: Generated.
4059         * config/djgpp/fnchange.lst: Add features/tic6x-*.xml and
4060         features/tic6x-*.c files.
4061         Add regformats/tic6x-*.dat files.
4062
4063 2011-08-12  Doug Evans  <dje@google.com>
4064
4065         * NEWS: Mention new "type" attribute of python gdb.Symbol objects.
4066         * python/py-symbol.c (sympy_get_type): New function.
4067         (symbol_object_getset): Add "type".
4068
4069 2011-08-12  Pedro Alves  <pedro@codesourcery.com>
4070
4071         PR tui/13073
4072
4073         * tui/tui-regs.c (tui_show_register_group): Skip registers with an
4074         empty name.
4075         (tui_show_register_group): Don't store a byte buffer in the data
4076         element's value.
4077         (tui_register_format): Skip registers with an empty name.
4078         (tui_get_register): Store a struct value in the data element's
4079         value field instead of a byte buffer holding the raw register
4080         contents.  Account for optimized-out and unavailable registers
4081         when comparing register contents.
4082
4083 2011-08-09  Pedro Alves  <pedro@codesourcery.com>
4084
4085         * printcmd.c (current_display_number): Update comment.
4086         (disable_current_display_cleanup): Delete.
4087         (do_one_display): Use make_cleanup_restore_integer.  Gracefully
4088         catch errors thrown while evaluating and printing the display.
4089
4090 2011-08-09  Tom Tromey  <tromey@redhat.com>
4091
4092         * mi/mi-cmd-break.c (mi_cmd_break_passcount): Fix typo.
4093
4094 2011-08-09  Pedro Alves  <pedro@codesourcery.com>
4095
4096         * elfread.c (elf_symtab_read): Rework comments.
4097         * maint.c (maintenance_command): Ditto.
4098         * somread.c (som_symtab_read): Ditto.
4099         * solib.c (solib_find, solib_map_sections, update_solib_list)
4100         (solib_add, info_sharedlibrary_command, solib_name_from_address)
4101         (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
4102         (sharedlibrary_command, no_shared_libraries): Ditto.
4103         * solib-irix.c (locate_base, disable_break, enable_break)
4104         (irix_solib_create_inferior_hook, irix_solib_create_inferior_hook)
4105         (irix_current_sos, irix_open_symbol_file_object)
4106         (irix_special_symbol_handling): Ditto.
4107         * solib-sunos.c (locate_base, first_link_map_member)
4108         (sunos_current_sos, disable_break, enable_break)
4109         (sunos_special_symbol_handling, sunos_solib_create_inferior_hook):
4110         Ditto.
4111         * solib-svr4.c (bfd_lookup_symbol, elf_locate_base, locate_base)
4112         (open_symbol_file_object, svr4_current_sos, enable_break)
4113         (svr4_special_symbol_handling, svr4_solib_create_inferior_hook):
4114         Ditto.
4115         * solib-frv.c (bfd_lookup_symbol, open_symbol_file_object)
4116         (frv_current_sos, enable_break, frv_special_symbol_handling)
4117         (frv_solib_create_inferior_hook): Ditto.
4118         * solist.h (struct target_so_ops): Extend the comments of the
4119         special_symbol_handling, current_sos and open_symbol_file_object
4120         methods.
4121
4122 2011-08-09  Phil Muldoon  <pmuldoon@redhat.com>
4123
4124         * python/lib/gdb/__init__.py: Auto-load files in command and
4125         function directories.
4126         * python/python.c (finish_python_initialization): Use
4127         os.path.join.
4128         * python/lib/gdb/command/pretty_printers.py: Self register
4129         command.
4130         * NEWS: Document auto-loading.
4131
4132 2011-08-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
4133
4134         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>
4135         (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_LITERAL>: New variable
4136         objfile_gdbarch.  Fix BFD_ENDIAN_BIG case.
4137
4138 2011-08-08  Tom Tromey  <tromey@redhat.com>
4139
4140         * breakpoint.c (clean_up_filters): Remove.
4141         (catch_syscall_split_args): Use VEC_cleanup.
4142
4143 2011-08-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
4144
4145         * cp-name-parser.y (xfree): Wrap the name free by CONCAT2.
4146         (main): Uncomment "Demangling error\n".
4147
4148 2011-08-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
4149
4150         * solib-target.c (segment_attributes): Make them static.
4151         (section_attributes, library_children, library_attributes): Likewise.
4152         (library_list_children, library_list_attributes): Likesise.
4153         (library_list_elements): Likewise.
4154
4155 2011-08-05  Pedro Alves  <pedro@codesourcery.com>
4156
4157         * exceptions.c (throw_exception): Don't disable the current
4158         display.
4159         * printcmd.c (disable_current_display_cleanup): New function.
4160         (do_one_display): Install a cleanup to disable the current display
4161         if doing the display throws.
4162
4163 2011-08-05  Eli Zaretskii  <eliz@gnu.org>
4164
4165         * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the
4166         initialization of the tp_new member to the corresponding
4167         gdbpy_initialize_* function.
4168         * python/py-cmd.c (gdbpy_initialize_commands): Likewise.
4169         * python/py-frame.c (gdbpy_initialize_frames): Likewise.
4170         * python/py-function.c (gdbpy_initialize_functions): Likewise.
4171         * python/py-inferior.c (gdbpy_initialize_inferior): Likewise.
4172         * python/py-param.c (gdbpy_initialize_parameters): Likewise.
4173
4174 2011-08-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
4175
4176         * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
4177         (info_spu_mailbox_list, info_spu_mailbox_command, info_spu_dma_cmdlist)
4178         (info_spu_dma_command, info_spu_proxydma_command): Rename uiout
4179         references to current_uiout.
4180
4181 2011-08-04  Pedro Alves  <pedro@codesourcery.com>
4182
4183         * event-loop.c (gdb_do_one_event): Remove `data' parameter.
4184         (start_event_loop): Use TRY_CATCH instead of catch_errors.
4185         * event-loop.h (gdb_do_one_event): Remove `data' parameter.
4186         * top.c (gdb_readline_wrapper): Adjust.
4187         * tui/tui-interp.c (tui_command_loop):
4188         (_initialize_tui_interp): Don't install it.
4189
4190 2011-08-04  Pedro Alves  <pedro@codesourcery.com>
4191
4192         * ui-out.h (uiout): Rename to ...
4193         (current_uiout): ... this.
4194         * ui-out.c (uiout): Rename to ...
4195         (current_uiout): ... this.
4196         * ada-lang.c (print_it_exception, print_one_exception)
4197         (print_mention_exception): Adjust.
4198         * breakpoint.c (watchpoint_check): Adjust.
4199         (print_breakpoint_location, print_one_breakpoint, breakpoint_1)
4200         (default_collect_info, watchpoints_info, print_one_catch_fork)
4201         (print_one_catch_vfork, print_one_catch_syscall)
4202         (print_one_catch_exec, mention, print_it_ranged_breakpoint)
4203         (print_one_ranged_breakpoint, print_mention_ranged_breakpoint)
4204         (print_it_watchpoint, print_mention_watchpoint)
4205         (print_it_masked_watchpoint, print_mention_masked_watchpoint)
4206         (print_it_exception_catchpoint, print_one_exception_catchpoint)
4207         (print_mention_exception_catchpoint, say_where, bkpt_print_it)
4208         (bkpt_print_mention, momentary_bkpt_print_it)
4209         (tracepoint_print_mention, update_static_tracepoint)
4210         (tracepoints_info, save_breakpoints): Adjust.
4211         * cli-out.c (field_separator): Adjust.
4212         * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust.
4213         * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust.
4214         * frame.c (get_current_frame): Adjust.
4215         * infcmd.c (run_command_1, print_return_value): Adjust.
4216         * inferior.c (inferior_command, info_inferiors_command): Adjust.
4217         * infrun.c (print_end_stepping_range_reason): Adjust.
4218         (print_signal_exited_reason, print_exited_reason): Adjust.
4219         (print_signal_received_reason, print_no_history_reason): Adjust.
4220         * interps.c (interp_set): Adjust.
4221         * osdata.c (info_osdata_command): Adjust.
4222         * progspace.c (maintenance_info_program_spaces_command): Adjust.
4223         * remote-fileio.c (remote_fileio_request): Adjust.
4224         * remote.c (show_remote_cmd): Adjust.
4225         * solib.c (info_sharedlibrary_command): Adjust.
4226         * source.c (print_source_lines_base): Adjust.
4227         * stack.c (print_stack_frame): Adjust.
4228         (do_gdb_disassembly, print_frame_info, print_frame): Adjust.
4229         * symfile-mem.c (add_vsyscall_page): Adjust.
4230         * symfile.c (load_progress, generic_load)
4231         (print_transfer_performance): Adjust.
4232         * thread.c (info_threads_command, restore_selected_frame)
4233         (thread_command): Adjust.
4234         * top.c (make_cleanup_restore_ui_file): Adjust.
4235         * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1)
4236         (print_one_static_tracepoint_marker): Adjust.
4237         * cli/cli-cmds.c (print_disassembly): Adjust.
4238         * cli/cli-decode.c (print_doc_line): Adjust.
4239         * cli/cli-interp.c (safe_execute_command): Adjust.
4240         * cli/cli-logging.c (set_logging_redirect, pop_output_files)
4241         (handle_redirections): Adjust.
4242         * cli/cli-script.c (show_user_1): Adjust.
4243         * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust.
4244         * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
4245         * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust.
4246         * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path)
4247         (mi_cmd_env_dir): Adjust.
4248         * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
4249         (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust.
4250         * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
4251         (mi_cmd_stack_info_depth, mi_cmd_stack_list_args)
4252         (list_args_or_locals): Adjust.
4253         * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
4254         (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen)
4255         (mi_cmd_var_show_format, mi_cmd_var_info_num_children)
4256         (mi_cmd_var_list_children, mi_cmd_var_info_type)
4257         (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression)
4258         (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression)
4259         (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust.
4260         * mi/mi-interp.c (mi_on_normal_stop): Adjust.
4261         * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select)
4262         (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior)
4263         (list_available_thread_groups, mi_cmd_list_thread_groups)
4264         (mi_cmd_data_list_register_names)
4265         (mi_cmd_data_list_changed_registers)
4266         (mi_cmd_data_list_register_values, get_register)
4267         (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
4268         (mi_cmd_data_read_memory_bytes, mi_cmd_list_features)
4269         (mi_cmd_list_target_features, mi_cmd_add_inferior)
4270         (mi_execute_command, mi_load_progress): Adjust.
4271         * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust.
4272         * python/py-auto-load.c (print_script, info_auto_load_scripts):
4273         Adjust.
4274         * python/py-breakpoint.c (bppy_get_commands): Adjust.
4275         * tui/tui-interp.c (tui_command_loop): Adjust.
4276         * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust.
4277
4278 2011-08-04  Pedro Alves  <pedro@codesourcery.com>
4279
4280         * exceptions.c (struct catcher): Remove saved_uiout field.
4281         (exceptions_state_mc_init): Remove the `func_uiout' parameter, and
4282         no longer save/resvore the global ui_out builder.
4283         (catch_exceptions_with_msg): Save/override/restore the global
4284         ui_out builder manually instead of relying on TRY_CATCH to do it.
4285         (catch_errors): Save/restore the global ui_out builder manually
4286         instead of relying on TRY_CATCH to do it.
4287         * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout'
4288         parameter.
4289         (TRY_CATCH): Adjust.
4290         * cli/cli-interp.c (safe_execute_command): Save/override/restore
4291         the global ui_out builder manually instead of relying on TRY_CATCH
4292         to do it.
4293
4294 2011-08-03  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
4295
4296         * breakpoint.c (update_global_location_list): Ensure
4297         invariant 'first loc marked not duplicated and inserted,
4298         following locs marked duplicated/not inserted' is respected
4299         for multiple locations at the same address.
4300         (unduplicated_should_be_inserted) New function.
4301         (swap_insertion) New function.
4302
4303 2011-08-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
4304
4305         * stack.c (print_frame_arguments_choices): Comment typo fix.
4306
4307 2011-08-01  Thiago Jung Bauermann  <bauerman@br.ibm.com>
4308
4309         Revert:
4310         2011-07-31  Thiago Jung Bauermann  <bauerman@br.ibm.com>
4311         * breakpoint.c (insert_bp_location): Remove disabled_breaks
4312         argument.  Update callers.
4313
4314 2011-08-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
4315
4316         PR gdb/13045
4317         * doublest.c (convert_doublest_to_floatformat): Pass correct
4318         mantissa length to put_field.
4319
4320 2011-08-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
4321
4322         * stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the
4323         exception_print code path.
4324         (backtrace_command): Remove variable e.  Protect arg by make_cleanup in
4325         advance.  Simplify memset.  Remove TRY_CATCH.  Remove explicit xfree.
4326         (backtrace_full_command):  Remove variable e.  Remove TRY_CATCH.
4327
4328 2011-08-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
4329
4330         Code cleanup.
4331         * stack.c (struct print_stack_frame_args, print_stack_frame_stub):
4332         Remove, merge them into ...
4333         (print_stack_frame): ... here with a TRY_CATCH.  New variable e, remove
4334         variable args and its initialization.
4335         (struct print_args_args, print_args_stub): Remove, merge them into
4336         print_frame.
4337         (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge
4338         them into ...
4339         (do_gdb_disassembly): ... here.  Remove variable args and its
4340         initialization.
4341         (print_frame): Remove variable args and its initialization, new
4342         variable gdbarch and numargs (from print_args_stub), inline here
4343         print_args_stub with a TRY_CATCH.
4344         (struct backtrace_command_args, backtrace_command_stub): Remove, merge
4345         them into ...
4346         (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH.
4347         New variable e, remove variable btargs and its initialization.
4348
4349 2011-08-01  Tristan Gingold  <gingold@adacore.com>
4350
4351         * darwin-nat.c (darwin_decode_exception_message): Adjust assertion.
4352
4353 2011-07-31  Thiago Jung Bauermann  <bauerman@br.ibm.com>
4354
4355         * breakpoint.c (insert_bp_location): Document return value.
4356         (insert_breakpoint_locations): Fix documentation.
4357         (remove_breakpoints): Add documentation.
4358
4359 2011-07-31  Thiago Jung Bauermann  <bauerman@br.ibm.com>
4360
4361         * breakpoint.c (insert_bp_location): Remove disabled_breaks
4362         argument.  Update callers.
4363
4364 2011-07-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
4365
4366         * stack.c (print_frame_info): Comment typo fix.
4367
4368 2011-07-29  Sterling Augustine  <saugustine@google.com>
4369
4370         * MAINTAINERS (Write After Approval): Add myself to the list.
4371
4372 2011-07-29  Tom Tromey  <tromey@redhat.com>
4373
4374         * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O.
4375         (library_list_start_segment): Update.
4376         (library_list_start_section): Update.
4377
4378 2011-07-28  Phil Muldoon  <pmuldoon@redhat.com>
4379
4380         * varobj.c (value_get_print_value): Move hint check later into the
4381         function.  Comment function.  Free thevalue before reusing it.
4382
4383 2011-07-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
4384             Pedro Alves  <pedro@codesourcery.com>
4385
4386         * eval.c (evaluate_subexp_standard): Remove not_lval from all calls of
4387         value_one.
4388         * valops.c (value_one): Remove parameter lv.  Do not pass it to itself.
4389         Assert the result kind.
4390         * value.h (value_one): Remove parameter lv.
4391
4392 2011-07-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
4393
4394         Fix crash on lval_computed values.
4395         * valops.c (value_zero): Use not_lval for lval_computed.
4396
4397 2011-07-27  Tom Tromey  <tromey@redhat.com>
4398
4399         * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for
4400         gdb_assert.h, gdb_locale.h, gdb_dirent.h.
4401
4402 2011-07-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
4403
4404         * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and
4405         "ptype" by their typedefs difference.
4406
4407 2011-07-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
4408
4409         * dwarf2expr.c (ctx_no_read_reg): New function.
4410         * dwarf2expr.h (ctx_no_read_reg): New declaration.
4411         * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
4412         (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
4413         (decode_locdesc): Replace by a caller of dwarf_expr_eval.
4414
4415 2011-07-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
4416
4417         * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc)
4418         (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other
4419         file.
4420         (dwarf2_frame_ctx_funcs): Reference the renamed functions.
4421         * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
4422         (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
4423         (ctx_no_get_base_type): Move the functions here.
4424         * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
4425         (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
4426         (ctx_no_get_base_type): New declarations.
4427
4428 2011-07-27  Tom Tromey  <tromey@redhat.com>
4429
4430         * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
4431         entries.
4432         * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field.
4433         * dwarf2read.c (dwarf2_elf_names): Add sentinel entry.
4434
4435 2011-07-26  Sterling Augustine  <saugustine@google.com>
4436
4437         * cli/cli-dump.c (dump_binary_file): Change parameter type to
4438         ULONGEST.
4439         (dump_bfd_file): Likewise.
4440
4441 2011-07-26  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
4442
4443         * remote.c (remote_region_ok_for_hw_watchpoint): New function.
4444         (remote_hw_watchpoint_length_limit): New variable.
4445         (_initialize_remote) add set,show cmds for this new variable.
4446         * gdb.texinfo: document these new commands.
4447         * NEWS: Mention these new commands.
4448
4449 2011-07-26  Pedro Alves  <pedro@codesourcery.com>
4450
4451         * breakpoint.c (works_in_software_mode_watchpoint): Also return
4452         true for software watchpoints.
4453
4454 2011-07-26  Joel Brobecker  <brobecker@adacore.com>
4455
4456         GDB 7.3 released.
4457
4458 2011-07-26  Tom Tromey  <tromey@redhat.com>
4459
4460         * symfile.h (struct dwarf2_debug_sections) <macro>: New field.
4461         * dwarf2read.c (read_indirect_string_at_offset): New function.
4462         (read_indirect_string): Use it.
4463         (dwarf_decode_macro_bytes): New function, taken from
4464         dwarf_decode_macros.  Handle DW_MACRO_GNU_*.
4465         (dwarf_decode_macros): Use it.  handle DW_MACRO_GNU_*.
4466         (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode):
4467         New functions.
4468         (struct dwarf2_per_objfile) <macro>: New field.
4469         (dwarf2_elf_names): Add .debug_macro.
4470         (dwarf2_macros_too_long_complaint): Add 'section' argument.
4471         (dwarf2_locate_sections): Handle new section.
4472         (read_file_scope): Handle DW_AT_GNU_macros.
4473         (dwarf2_per_objfile_free): Unmap the .debug_macro section.
4474
4475 2011-07-26  Paul Pluzhnikov  <ppluzhnikov@google.com>
4476
4477         * NEWS: Mention dcache configuration.
4478         * dcache.c (dcache_set_list, dcache_show_list): New variables.
4479         (dcache_size, dcache_line_size): New variables.
4480         (LINE_SIZE_MASK, XFORM, MASK): Adjust.
4481         (struct dcache_block): Make it expandable.
4482         (struct dcache_struct): New field.
4483         (dcache_invalidate): Discard freelist upon dcache_line_size changes.
4484         (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust.
4485         (dcache_poke_byte, dcache_print_line): Adjust.
4486         (set_dcache_size, set_dcache_line_size): New functions.
4487         (set_dcache_command, show_dcache_command): New functions.
4488         (_initialize_dcache): Add new commands.
4489
4490 2011-07-26  Paul Pluzhnikov  <ppluzhnikov@google.com>
4491
4492         * progspace.h (struct program_space): Add solib_add_generation.
4493         * infcmd.c (post_create_inferior): Only call solib_add if not
4494         already done.
4495         * solib.c (solib_add): Increment solib_add_generation.
4496
4497 2011-07-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
4498
4499         Fix implicit pointer offsets.
4500         * dwarf2loc.c (indirect_pieced_value): Comment byte_offset.  Use also
4501         ptr.OFFSET.
4502
4503 2011-07-25  Tom Tromey  <tromey@redhat.com>
4504
4505         * ada-lang.c (ada_exception_breakpoint_ops): Make return type
4506         const.
4507         (ada_exception_sal): Make 'ops' const.
4508         (ada_decode_exception_location): Likewise.
4509         (ada_decode_assert_location): Likewise.
4510         (catch_assert_command): Update.
4511         (catch_ada_exception_command): Update.
4512         (create_ada_exception_catchpoint): Make 'ops' const.
4513         * breakpoint.c (set_raw_breakpoint_without_location)
4514         (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops'
4515         const.
4516         (create_internal_breakpoint): Update.
4517         (init_raw_breakpoint_without_location): Make 'ops' const.
4518         (init_raw_breakpoint, init_catchpoint)
4519         (create_fork_vfork_event_catchpoint)
4520         (create_syscall_event_catchpoint, init_breakpoint_sal)
4521         (create_breakpoint_sal, create_breakpoints_sal)
4522         (create_breakpoint, init_ada_exception_breakpoint): Likewise.
4523         * breakpoint.h (struct breakpoint) <ops>: Now const.
4524         (init_ada_exception_breakpoint, create_breakpoint): Make 'ops'
4525         const.
4526
4527 2011-07-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
4528
4529         * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
4530
4531 2011-07-25  Pedro Alves  <pedro@codesourcery.com>
4532
4533         * breakpoint.h (print_recreate_thread): Declare.
4534         (struct breakpoint): Move step_count, pass_count,
4535         number_on_target, static_trace_marker_id,
4536         static_trace_marker_id_idx ...
4537         (struct tracepoint): ... to this new struct.
4538         (get_tracepoint, get_tracepoint_by_number_on_target)
4539         (get_tracepoint_by_number): Change return type to struct
4540         tracepoint pointer.
4541         * breakpoint.c (is_tracepoint_type): New, factored out from
4542         is_tracepoint.
4543         (is_tracepoint): Adjust.
4544         (print_one_breakpoint_location): Cast to struct tracepoint as
4545         necessary, and adjust.
4546         (print_recreate_catch_fork, print_recreate_catch_vfork)
4547         (print_recreate_catch_syscall, print_recreate_catch_exec): Call
4548         print_recreate_thread.
4549         (init_breakpoint_sal): New, factored out from
4550         create_breakpoint_sal.
4551         (create_breakpoint_sal): Reimplement.
4552         (create_breakpoint): Allocate a struct tracecepoint if the caller
4553         wanted a tracepoint.  Use init_breakpoint_sal and
4554         install_breakpoint.
4555         (print_recreate_ranged_breakpoint, print_recreate_watchpoint)
4556         (print_recreate_masked_watchpoint)
4557         (print_recreate_exception_catchpoint): Call print_recreate_thread.
4558         (tracepoint_print_one_detail): Adjust.
4559         (tracepoint_print_recreate): Adjust.  Call print_recreate_thread.
4560         Dump the pass count here.
4561         (update_static_tracepoint): Adjust.
4562         (addr_string_to_sals): Adjust.
4563         (create_tracepoint_from_upload): Adjust.  Change return type to
4564         struct tracepoint pointer.
4565         (trace_pass_set_count): Change parameter type to struct tracepoint
4566         pointer, and adjust.
4567         (trace_pass_command): Adjust.
4568         (get_tracepoint, get_tracepoint_by_number_on_target)
4569         (get_tracepoint_by_number): Change return type to struct
4570         tracepoint pointer, and adjust.
4571         (print_recreate_thread): New, factored out from save_breakpoints.
4572         (save_breakpoints): Don't print thread and task and passcount
4573         recreation here.
4574         * remote.c (remote_download_tracepoint): Adjust.
4575         * tracepoint.c (trace_actions_command, validate_actionline)
4576         (start_tracing, tfind_1, trace_find_tracepoint_command)
4577         (trace_dump_command): Adjust.
4578         (find_matching_tracepoint): Change return type to struct
4579         tracepoint pointer, and adjust.
4580         (merge_uploaded_tracepoints, tfile_get_traceframe_address)
4581         (tfile_trace_find, tfile_fetch_registers): Adjust.
4582         * tracepoint.h (create_tracepoint_from_upload): Change return type
4583         to struct tracepoint pointer.
4584         * ada-lang.c (print_recreate_exception): Call
4585         print_recreate_thread.
4586         * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust.
4587
4588 2011-07-25  Pedro Alves  <pedro@codesourcery.com>
4589
4590         * breakpoint.h (struct breakpoint): Move ops as first field.  Move
4591         exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp,
4592         cond_exp_valid_block, val, val_valid, watchpoint_frame,
4593         watchpoint_thread, watchpoint_triggered ...
4594         (struct watchpoint): ... to this new struct.
4595         (is_watchpoint): Declare.
4596         (install_breakpoint): Add new `internal' parameter.
4597         * breakpoint.c (is_watchpoint): Delete declaration.
4598         (set_breakpoint_condition): Handle watchpoints.
4599         (is_watchpoint): Make public.
4600         (watchpoint_in_thread_scope): Change parameter type to struct
4601         watchpoint.
4602         (watchpoint_del_at_next_stop): Change parameter type to struct
4603         watchpoint.  Remove assertion.  Adjust.
4604         (update_watchpoint): Ditto.
4605         (insert_breakpoints, breakpoint_init_inferior)
4606         (watchpoints_triggered, watchpoint_check)
4607         (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
4608         (bpstat_stop_status, print_one_breakpoint_location)
4609         (print_one_breakpoint_location, watchpoint_locations_match): Cast
4610         to struct watchpoint as necessary, and adjust.
4611         (install_breakpoint): Add `internal' argument.  If true, don't
4612         mention the new breakpoint.  Use set_breakpoint_number.
4613         (create_fork_vfork_event_catchpoint)
4614         (create_syscall_event_catchpoint): Adjust.
4615         (dtor_watchpoint): New.
4616         (re_set_watchpoint, insert_watchpoint, remove_watchpoint)
4617         (breakpoint_hit_watchpoint, resources_needed_watchpoint)
4618         (print_it_watchpoint, print_mention_watchpoint)
4619         (print_recreate_watchpoint, insert_masked_watchpoint)
4620         (remove_masked_watchpoint, resources_needed_masked_watchpoint)
4621         (print_one_detail_masked_watchpoint)
4622         (print_mention_masked_watchpoint)
4623         (print_recreate_masked_watchpoint): Cast to struct watchpoint as
4624         necessary, and adjust.
4625         (watch_command_1): Allocate and initialize a struct watchpoint
4626         instead of a struct breakpoint.  Use install_breakpoint.
4627         (catch_exec_command_1): Adjust.
4628         (base_breakpoint_dtor): Delete accesses to watchpoint specific
4629         fields.
4630         (delete_breakpoint, enable_breakpoint_disp)
4631         (invalidate_bp_value_on_memory_change): Cast to struct watchpoint
4632         as necessary, and adjust.
4633         (initialize_breakpoint_ops): Install dtor_watchpoint as
4634         watchpoints' dtor method.
4635         * ada-lang.c (create_ada_exception_catchpoint): Adjust.
4636         * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint.
4637         to struct watchpoint as necessary, and adjust.
4638
4639 2011-07-25  Pedro Alves  <pedro@codesourcery.com>
4640
4641         * ada-lang.c (dtor_exception, re_set_exception): Indirect through
4642         the the base class ops table.
4643         (catch_exception_breakpoint_ops)
4644         (catch_exception_unhandled_breakpoint_ops)
4645         (catch_assert_breakpoint_ops): Don't statically initialize.
4646         (initialize_ada_catchpoint_ops): New.
4647         (_initialize_ada_language): Call it.
4648         * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops)
4649         (bkpt_breakpoint_ops): Forward declare.
4650         (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
4651         (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops)
4652         (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
4653         (masked_watchpoint_breakpoint_ops)
4654         (gnu_v3_exception_catchpoint_ops): Don't statically initialize.
4655         (dtor_catch_syscall, dtor_catch_exec): Indirect through the the
4656         base class ops table.
4657         (null_re_set, null_check_status, null_works_in_software_mode)
4658         (null_resources_needed, null_print_one_detail): Delete.
4659         (bkpt_dtor): Rename to ...
4660         (base_breakpoint_dtor): ... this.  Make static.
4661         (bkpt_allocate_location): Rename to ...
4662         (base_breakpoint_allocate_location): ... this.  Make static.
4663         (base_breakpoint_re_set): New.
4664         (internal_error_pure_virtual_called): New.
4665         (base_breakpoint_insert_location, base_breakpoint_remove_location)
4666         (base_breakpoint_breakpoint_hit, base_breakpoint_check_status)
4667         (base_breakpoint_works_in_software_mode)
4668         (base_breakpoint_resources_needed, base_breakpoint_print_it)
4669         (base_breakpoint_print_one_detail, base_breakpoint_print_mention)
4670         (base_breakpoint_print_recreate): New functions.
4671         (base_breakpoint_ops): New global.
4672         (bkpt_re_set, bkpt_insert_location, bkpt_remove_location)
4673         (bkpt_breakpoint_hit): Make static.
4674         (bkpt_check_status): Delete.
4675         (bkpt_resources_needed): Make static.
4676         (bkpt_works_in_software_mode): Delete.
4677         (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make
4678         static.
4679         (bkpt_breakpoint_ops, internal_breakpoint_ops)
4680         (momentary_breakpoint_ops): Don't statically initialize.
4681         (internal_bkpt_print_recreate, momentary_bkpt_print_recreate):
4682         Delete.
4683         (tracepoint_insert_location, tracepoint_remove_location)
4684         (tracepoint_check_status, tracepoint_works_in_software_mode)
4685         (tracepoint_print_it): Delete.
4686         (tracepoint_breakpoint_ops): Don't statically initialize.
4687         (initialize_breakpoint_ops): New.
4688         (_initialize_breakpoint): Call it.
4689         * breakpoint.h (null_re_set, null_works_in_software_mode)
4690         (null_resources_needed, null_check_status, null_print_one_detail):
4691         (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4692         (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4693         (bkpt_check_status, bkpt_resources_needed)
4694         (bkpt_works_in_software_mode, bkpt_print_it)
4695         (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
4696         Delete declarations.
4697         (initialize_breakpoint_ops): Declare.
4698
4699 2011-07-25  Pedro Alves  <pedro@codesourcery.com>
4700
4701         * breakpoint.c (bkpt_print_it, internal_bkpt_print_it)
4702         (momentary_bkpt_print_it): Simplify.
4703
4704 2011-07-25  Pedro Alves  <pedro@codesourcery.com>
4705
4706         Split internal, momentary and user breakpoints breakpoint_ops
4707         tables.
4708
4709         * breakpoint.c (internal_breakpoint_ops)
4710         (momentary_breakpoint_ops): Forward declare.
4711         (create_internal_breakpoint): Add new breakpoint_ops parameter.
4712         Pass it down, rather than hardcoding bkpt_breakpoint_ops.
4713         (create_overlay_event_breakpoint)
4714         (create_std_terminate_master_breakpoint)
4715         (create_exception_master_breakpoint): Create breakpoints with
4716         internal_breakpoint_ops vtable.
4717         (set_longjmp_breakpoint): Create momentary breakpoints with
4718         momentary_breakpoint_ops vtable, using
4719         momentary_breakpoint_from_master.
4720         (create_thread_event_breakpoint, create_jit_event_breakpoint)
4721         (create_solib_event_breakpoint): Create breakpoints with
4722         internal_breakpoint_ops vtable.
4723         (set_momentary_breakpoint): Create breakpoints with
4724         momentary_breakpoint_ops vtable.
4725         (momentary_breakpoint_from_master): New, factored out from
4726         clone_momentary_breakpoint.
4727         (clone_momentary_breakpoint): Adjust.
4728         (watch_command_1): Create scope breakpoints with
4729         momentary_breakpoint_ops vtable.
4730         (bkpt_re_set): Remove handling of internal and momentary
4731         breakpoints.
4732         (bkpt_print_mention, bkpt_print_recreate): New.
4733         (bkpt_breakpoint_ops): Adjust.
4734         (internal_bkpt_re_set, internal_bkpt_check_status)
4735         (internal_bkpt_print_it, internal_bkpt_print_mention)
4736         (internal_bkpt_print_recreate, internal_breakpoint_ops): New.
4737         (momentary_bkpt_re_set, momentary_bkpt_check_status)
4738         (momentary_bkpt_print_it, momentary_bkpt_print_mention)
4739         (momentary_bkpt_print_recreate): New.
4740         (momentary_breakpoint_ops): New.
4741
4742 2011-07-25  Pedro Alves  <pedro@codesourcery.com>
4743
4744         Implement most breakpoint_ops methods for all breakpoint types,
4745         and move the default handlings to the proper callbacks.
4746
4747         * breakpoint.c (update_watchpoint): Always call the breakpoint's
4748         works_in_software_mode method.
4749         (insert_bp_location): Go through breakpoint_ops->insert_location
4750         for software and hardware watchpoints.
4751         (create_internal_breakpoint): Pass bkpt_breakpoint_ops as
4752         breakpoint_ops.
4753         (remove_breakpoint_1): Go through breakpoint_ops->remove_location
4754         for software and hardware watchpoints.
4755         (print_it_typical): Delete.
4756         (print_bp_stop_message): Always call the breakpoint_ops->print_it
4757         method.
4758         (watchpoint_check): Adjust comment.
4759         (bpstat_check_location): Simply always call the breakpoint's
4760         breakpoint_hit method.
4761         (bpstat_stop_status): Always call the breakpoint's check_status
4762         method.  Remove special cases for watchpoints and internal event
4763         breakpoints from here (moved to the check_status implementations).
4764         (print_one_breakpoint_location): Assume b->ops is never NULL.
4765         Remove static tracepoint marker id printing from here (moved to
4766         the print_one_detail callback implementation of tracepoints).
4767         (init_bp_location): Assert OPS is never NULL.
4768         (allocate_bp_location): Always call the breakpoint's
4769         allocate_location method, and remove the default code from here.
4770         (free_bp_location): Always call the location's dtor method, and
4771         remove the default code from here.
4772         (init_raw_breakpoint_without_location): Assert OPS is never NULL.
4773         (set_raw_breakpoint_without_location): Add new breakpoint_ops
4774         parameter.  Pass it down.
4775         (set_raw_breakpoint): Ditto.
4776         (print_it_catch_fork): Adjust to take a bpstat as argument.
4777         (catch_fork_breakpoint_ops): Install methods.
4778         (print_it_catch_vfork): Adjust to take a bpstat as argument.
4779         (catch_vfork_breakpoint_ops): Install methods.
4780         (dtor_catch_syscall): Call the base dtor.
4781         (print_it_catch_syscall): Adjust to take a bpstat as argument.
4782         (catch_syscall_breakpoint_ops): Install methods.
4783         (dtor_catch_exec): Call the base dtor.
4784         (print_it_catch_exec): Adjust to take a bpstat as argument.
4785         (catch_exec_breakpoint_ops): Install methods.
4786         (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call
4787         the breakpoint's resources_needed method, and remove the default
4788         code from here.
4789         (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as
4790         breakpoint_ops.
4791         (clone_momentary_breakpoint): Clone the original's ops.
4792         (mention): Always call the breakpoint's print_mention method, and
4793         remove the default code from here.
4794         (create_breakpoint_sal): Adjust to pass the ops to
4795         set_raw_breakpoint rather than setting it manually.
4796         (create_breakpoint): Assert ops is never NULL.  Adjust to pass the
4797         ops to set_raw_breakpoint_without_location rather than setting it
4798         manually.
4799         (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops.
4800         (print_it_ranged_breakpoint): Adjust to take a bpstat as argument.
4801         (ranged_breakpoint_ops): Install methods.
4802         (break_range_command): Adjust to pass the ops to
4803         set_raw_breakpoint rather than setting it manually.
4804         (re_set_watchpoint, breakpoint_hit_watchpoint)
4805         (check_status_watchpoint, resources_needed_watchpoint)
4806         (works_in_software_mode_watchpoint, print_it_watchpoint)
4807         (print_mention_watchpoint, print_recreate_watchpoint): New
4808         functions.
4809         (watchpoint_breakpoint_ops): Install new methods.
4810         (print_it_masked_watchpoint): New function.
4811         (masked_watchpoint_breakpoint_ops): Install new methods.
4812         (watch_command_1): Adjust to pass the right breakpoint_ops to
4813         set_raw_breakpoint_without_location rather than setting it
4814         manually later.  Record the current pspace.
4815         (print_it_exception_catchpoint): Adjust to take a bpstat as
4816         argument.
4817         (gnu_v3_exception_catchpoint_ops): Install new methods.
4818         (say_where): New function.
4819         (null_re_set, null_check_status, null_works_in_software_mode)
4820         (null_resources_needed, null_print_one_detail, bp_location_dtor):
4821         New functions.
4822         (bp_location_ops): New global.
4823         (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4824         (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4825         (bkpt_check_status, bkpt_resources_needed)
4826         (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention)
4827         (bkpt_print_recreate): New functions.
4828         (bkpt_breakpoint_ops): New global.
4829         (tracepoint_re_set, tracepoint_insert_location)
4830         (tracepoint_remove_location, tracepoint_breakpoint_hit)
4831         (tracepoint_check_status, tracepoint_works_in_software_mode)
4832         (tracepoint_print_it, tracepoint_print_one_detail)
4833         (tracepoint_print_mention, tracepoint_print_recreate): New
4834         functions.
4835         (tracepoint_breakpoint_ops): New global.
4836         (delete_breakpoint): Always call the breakpoint's dtor method, and
4837         remove the default handling from here.
4838         (breakpoint_re_set_default): Make static.
4839         (breakpoint_re_set_one): Always call the breakpoints re_set
4840         method, and remove the default handling from here.
4841         (trace_command, ftrace_command, strace_command)
4842         (create_tracepoint_from_upload): Pass appropriate breakpoints_ops
4843         to create_breakpoint.
4844         (save_breakpoints): Always call the breakpoint's print_recreate
4845         method, and remove the default handling from here.
4846
4847         * ada-lang.c (dtor_exception): Call the base dtor.
4848         (re_set_exception): Call the base method.
4849         (print_it_exception, print_it_catch_exception): Adjust to take a
4850         bpstat as argument.
4851         (catch_exception_breakpoint_ops): Install methods.
4852         (print_it_catch_exception_unhandled): Adjust to take a bpstat as
4853         argument.
4854         (catch_exception_unhandled_breakpoint_ops): Install methods.
4855         (print_it_catch_assert): Adjust to take a bpstat as argument.
4856         (catch_assert_breakpoint_ops): Install methods.
4857
4858         * breakpoint.h (struct breakpoint_ops): Adjust the print_it method
4859         to take a bpstat as argument.
4860         (enum print_stop_action): Add describing comments to each enum
4861         value.
4862         (breakpoint_re_set_default): Delete declaration.
4863         (null_re_set, null_works_in_software_mode, null_resources_needed)
4864         (null_check_status, null_print_one_detail): Declare.
4865         (bkpt_breakpoint_ops): Declare.
4866         (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4867         (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4868         (bkpt_check_status, bkpt_resources_needed)
4869         (bkpt_works_in_software_mode, bkpt_print_it)
4870         (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
4871         Declare.
4872
4873         * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass
4874         bkpt_breakpoint_ops.
4875         * python/py-breakpoint.c (bppy_init): Ditto.
4876
4877 2011-07-15  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
4878
4879         * MAINTAINERS (Write After Approval): Add myself to the list.
4880
4881 2011-07-23  Paul Pluzhnikov  <ppluzhnikov@google.com>
4882
4883         * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
4884
4885 2011-07-22  Pedro Alves  <pedro@codesourcery.com>
4886
4887         * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
4888         (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
4889         (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
4890         adjust.
4891         (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
4892         (struct i386_debug_reg_state): New.
4893         (i386_init_dregs): New.
4894         (dr_mirror): New.
4895         (i386_cleanup_dregs): Use i386_init_dregs.
4896         (i386_show_dr): Add state parameter and adjust.
4897         (i386_insert_aligned_watchpoint): Ditto.  Don't pass the info to
4898         the inferior here.
4899         (i386_remove_aligned_watchpoint): Likewise.
4900         (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
4901         (i386_update_inferior_debug_regs): New.
4902         (i386_insert_watchpoint): Work on a local mirror of the debug
4903         registers, and only update the inferior on success.
4904         (i386_remove_watchpoint): Ditto.
4905         (i386_region_ok_for_watchpoint): Adjust.
4906         (i386_stopped_data_address): Adjust.
4907         (i386_insert_hw_breakpoint): Adjust.
4908         (i386_remove_hw_breakpoint): Adjust.
4909
4910 2011-07-22  Tom Tromey  <tromey@redhat.com>
4911
4912         * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
4913         from amd64_pseudo_register_read.  Change arguments.  Call
4914         mark_value_bytes_unavailable when needed.
4915         (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
4916         set_gdbarch_pseudo_register_read.
4917         * sentinel-frame.c (sentinel_frame_prev_register): Use
4918         regcache_cooked_read_value.
4919         * regcache.h (regcache_cooked_read_value): Declare.
4920         * regcache.c (regcache_cooked_read_value): New function.
4921         (regcache_cooked_read): Call
4922         gdbarch_pseudo_register_read_value if available.
4923         * i386-tdep.h (i386_pseudo_register_read_value): Declare.
4924         (i386_pseudo_register_read): Remove.
4925         * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
4926         i386_pseudo_register_read.  Change arguments.  Call
4927         mark_value_bytes_unavailable when needed.
4928         (i386_pseudo_register_read_value): New function.
4929         (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
4930         not set_gdbarch_pseudo_register_read.
4931         * gdbarch.sh (pseudo_register_read_value): New method.
4932         * gdbarch.c, gdbarch.h: Rebuild.
4933         * findvar.c (value_from_register): Call get_frame_register_value.
4934
4935 2011-07-22  Phil Muldoon  <pmuldoon@redhat.com>
4936
4937         * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
4938         get_prefix.
4939         (display_gdb_prompt): Likewise.
4940         (change_annotation_level): Likewise.
4941         (push_prompt): Likewise.
4942         (pop_prompt): Likewise.
4943         (handle_stop_sig): Use get_prompt with a level.
4944         * top.c (command_loop): Use get_prompt with a level.
4945         (set_async_annotation_level): Use set_prompt with a level.
4946         (get_prefix): New function.
4947         (set_prefix): Ditto.
4948         (set_suffix): Ditto.
4949         (get_suffix): Ditto.
4950         (get_prompt): Accept a level argument.
4951         (set_prompt): Accept a level argument.  Free old prompts.  Set
4952         new_async_prompt if level is 0.
4953         (init_main): Use set_prompt with a level.  Do not set
4954         new_async_prompt.
4955         * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
4956         * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
4957         Modify set_prompt, get_prompt to account for levels.
4958         * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
4959         level.
4960         * python/python.c (before_prompt_hook): Use set_prompt.
4961         
4962 2011-07-22  Kwok Cheung Yeung  <kcy@codesourcery.com>
4963
4964         * defs.h: Add guard against inclusion in gdbserver.
4965         (struct ptid, ptid_t): Move to common/ptid.h.
4966         (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
4967         xsnprintf, internal_error): Move to common/common-utils.h.
4968         (nomem): Delete.
4969         * gdb_assert.h: Move into common/ sub-directory.
4970         * gdb_locale.h: Ditto.
4971         * gdb_dirent.h: Ditto.
4972         * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
4973         ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
4974         Move into common/ptid.h.
4975         * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
4976         (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
4977         Change nomem to malloc_failure.
4978         * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
4979         * utils.c (nomem): Rename to malloc_failure.
4980         (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
4981         xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
4982         (gdb_buildargv): Change nomem to malloc_failure.
4983         * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
4984         ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
4985         ptid_is_pid): Move into common/ptid.c.
4986         (initialize_infrun): Delete initialization of null_ptid and
4987         minus_one_ptid.
4988         * linux-nat.c (linux_nat_xfer_osdata): Defer to
4989         linux_common_xfer_osdata.
4990         * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
4991         common/ptid.c and common/buffer.c.
4992         (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
4993         common/ptid.h, common/buffer.h and common/linux-osdata.h.
4994         (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
4995         (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
4996         rules.
4997         * common/gdb_assert.h: New.
4998         * common/gdb_dirent.h: New.
4999         * common/gdb_locale.h: New.
5000         * common/buffer.c: New.
5001         * common/buffer.h: New.
5002         * common/ptid.c: New.
5003         * common/ptid.h: New.
5004         * common/xml-utils.c: New.
5005         * common/xml-utils.h: New.
5006         * common/common-utils.c: New.
5007         * common/common-utils.h: New.
5008         * common/linux-osdata.c: New.
5009         * common/linux-osdata.h: New.
5010         * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
5011         * config/arm/linux.mh (NATDEPFILES): Ditto.
5012         * config/i386/linux.mh (NATDEPFILES): Ditto.
5013         * config/i386/linux64.mh (NATDEPFILES): Ditto.
5014         * config/ia64/linux.mh (NATDEPFILES): Ditto.
5015         * config/m32r/linux.mh (NATDEPFILES): Ditto.
5016         * config/m68k/linux.mh (NATDEPFILES): Ditto.
5017         * config/mips/linux.mh (NATDEPFILES): Ditto.
5018         * config/pa/linux.mh (NATDEPFILES): Ditto.
5019         * config/powerpc/linux.mh (NATDEPFILES): Ditto.
5020         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
5021         * config/s390/s390.mh (NATDEPFILES): Ditto.
5022         * config/sparc/linux.mh (NATDEPFILES): Ditto.
5023         * config/sparc/linux64.mh (NATDEPFILES): Ditto.
5024         * config/xtensa/linux.mh (NATDEPFILES): Ditto.
5025
5026 2011-07-21  Matt Rice  <ratmice@gmail.com>
5027
5028         * NEWS: Add info macros and info definitions commands.
5029
5030 2011-07-21  Phil Muldoon  <pmuldoon@redhat.com>
5031
5032         * NEWS: Document Python prompt substitution hook.
5033
5034 2011-07-18  Matt Rice  <ratmice@gmail.com>
5035
5036         PR macros/12999
5037         * macrotab.h (macro_callback_fn): Add new arguments to callback.
5038         * macrotab.c (foreach_macro): Ditto.
5039         (foreach_macro_in_scope): Ditto.
5040         * macrocmd.c (print_macro_callback): New function.
5041         (info_macro_command): Move some code to print_macro_definition.
5042         (print_macro_definition): New function.
5043         (print_one_macro): Add new arguments to callback.
5044         (info_definitions_command): New function.
5045         (info_macros_command): Ditto.
5046         (_initialize_macrocmd): Add info macros and info definitions commands.
5047         * symtab.c (add_macro_name): Add new arguments to callback.
5048
5049 2011-07-21  Phil Muldoon  <pmuldoon@redhat.com>
5050             Tom Tromey  <tromey@redhat.com>
5051
5052         * top.c (set_prompt): Rewrite to free previous prompt, free
5053         asynch_new_prompt and set both on new prompts.
5054         * event-top.c (display_gdb_prompt): Add prompt substitution
5055         logic.
5056         * python/python.c (before_prompt_hook): New function.
5057
5058 2011-07-20  Matt Rice  <ratmice@gmail.com>
5059
5060         * bfin-tdep.c (bfin_extract_return_value): Fix swapped
5061         arguments to store_unsigned_integer.
5062
5063 2011-07-20  Tom Tromey  <tromey@redhat.com>
5064
5065         * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
5066         in some declaration-only cases.
5067
5068 2011-07-18  Tom Tromey  <tromey@redhat.com>
5069
5070         PR symtab/12984:
5071         * dwarf2read.c (dwarf2_section_info_def): New typedef.
5072         (struct dwarf2_per_objfile) <types>: Change to a VEC.
5073         (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
5074         <debug_type_section>: New field.
5075         (dwarf2_locate_sections): Push .debug_types sections onto VEC.
5076         (load_cu): Use appropriate section.
5077         (create_signatured_type_table_from_index): Add 'section'
5078         argument.
5079         (dwarf2_read_index): Only allow a single .debug_types section.
5080         (dw2_get_file_names): Use appropriate section.
5081         (read_type_comp_unit_head): Add 'section' argument.
5082         (create_debug_types_hash_table): Loop over all .debug_types
5083         sections.
5084         (init_cu_die_reader): Use appropriate section.
5085         (process_psymtab_comp_unit, load_partial_comp_unit)
5086         (load_full_comp_unit, read_die_and_children, find_partial_die)
5087         (lookup_die_type, determine_prefix, follow_die_offset): Update.
5088         (lookup_signatured_type_at_offset): Add 'section' argument.
5089         (read_signatured_type_at_offset): Add 'sect' argument.
5090         (read_signatured_type): Use appropriate section.
5091         (set_die_type, get_die_type_at_offset): Update.
5092         (dwarf2_per_objfile_free): Free all .debug_types sections, and
5093         VEC.
5094         (write_psymtabs_to_index): Don't allow index with more than one
5095         .debug_types section.
5096
5097 2011-07-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
5098
5099         Fix crash if referenced CU is aged out.
5100         * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
5101         xfree of block.data.
5102         (indirect_pieced_value): New variable back_to, use to for xfree of
5103         baton.data.
5104         (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
5105         block.data.
5106         * dwarf2read.c (dwarf2_find_base_address): New prototype.
5107         (load_cu): New function from ...
5108         (dw2_do_instantiate_symtab): ... the code here ...
5109         (process_full_comp_unit): ... and here.
5110         (dwarf2_fetch_die_location_block): Call load_cu first.  Call xmemdup on
5111         retval.data.
5112
5113 2011-07-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
5114
5115         * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
5116         type.
5117
5118 2011-07-19  Gary Benson  <gbenson@redhat.com>
5119
5120         * infrun.c (struct execution_control_state): New member
5121         stop_func_filled_in.
5122         (clear_stop_func, fill_in_stop_func): New functions.
5123         (handle_inferior_event): Call clear_stop_func rather than
5124         manipulating the execution control state directly.
5125         Call fill_in_stop_func lazily as required rather than
5126         directly calling find_pc_partial_function in all cases.
5127
5128 2011-07-18  Tom Tromey  <tromey@redhat.com>
5129
5130         * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
5131         checking for variable-sized array.
5132
5133 2011-07-18  Jean-Charles Delay  <delay@adacore.com>
5134
5135         * varobj.h (varobj_languages): Add vlang_ada definition to the list
5136         of supported languages.
5137         * varobj.c: Add top definitions and basic implementation of the
5138         following callbacks: ada_number_of_children, ada_name_of_variable,
5139         ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
5140         ada_value_of_child, ada_type_of_child, ada_value_of_variable.
5141         (languages): Register Ada-specific callbacks.
5142         (variable_language): Add the Ada case in the language setter switch.
5143
5144 2011-07-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
5145
5146         * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
5147
5148 2011-07-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
5149
5150         Code cleanup.
5151         * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
5152         (execute_stack_op): Use dwarf2_frame_ctx_funcs
5153         * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
5154         (execute_stack_op): Access read_reg, get_frame_base, read_mem,
5155         get_frame_cfa, get_tls_address and dwarf_call via funcs.
5156         * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
5157         (struct dwarf_expr_context_funcs): New, move here methods from ...
5158         (struct dwarf_expr_context): ... here.  New fields funcs.
5159         * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
5160         (dwarf_expr_ctx_funcs): New.
5161         (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
5162         (needs_frame_dwarf_call): Access get_frame_pc via funcs.
5163         (needs_frame_ctx_funcs): New.
5164         (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
5165
5166 2011-07-15  Fawzi Mohamed  <fawzi.mohamed@nokia.com>
5167
5168         * MAINTAINERS (Write After Approval): Add myself to the list.
5169
5170 2011-07-15  Fawzi Mohamed  <fawzi.mohamed@nokia.com>
5171
5172         * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
5173         that CIE pointer of an FDE really points to a CIE .
5174
5175 2011-07-15  Hui Zhu  <teawater@gmail.com>
5176
5177         * remote.c (remote_get_trace_status): Add comments.
5178
5179 2011-07-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
5180
5181         Code cleanup - constify struct lval_funcs.
5182         * dwarf2loc.c (pieced_value_funcs): Make it const.
5183         * infrun.c (siginfo_value_funcs): Likewise.
5184         * opencl-lang.c (opencl_value_funcs): Likewise.
5185         * valops.c (value_assign, value_ind): Make the funcs variable const.
5186         * value.c (struct value): Make location.computed.funcs target const.
5187         Rearrange the comments.
5188         (allocate_computed_value): Make the funcs parameter target const.
5189         (value_computed_funcs): Return the funcs target const.
5190         (value_free, value_copy, set_value_component_location): Make the funcs
5191         variable const.
5192         * value.h (allocate_computed_value): Make the funcs parameter target
5193         const.
5194         (value_computed_funcs): Return the funcs target const.
5195         * windows-tdep.c (tlb_value_funcs): Make it const.
5196
5197 2011-07-14  Hui Zhu  <teawater@gmail.com>
5198
5199         * remote.c (remote_get_trace_status): Initialize p.
5200
5201 2011-07-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
5202
5203         Work around kgdb.
5204         * remote.c (remote_get_trace_status): New variable ex.  Put
5205         remote_get_noisy_reply into TRY_CATCH.  Call exception_fprintf for it.
5206
5207 2011-07-13  Tom Tromey  <tromey@redhat.com>
5208
5209         * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
5210         value_from_contents for final conversion.
5211
5212 2011-07-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
5213
5214         Code cleanup.
5215         * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
5216         Indent prototypes so they do not get into tags.
5217
5218 2011-07-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
5219
5220         Code cleanup making also optimized out values lazy.
5221         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
5222         allocate_optimized_out_value.  Twice.
5223         (loclist_read_variable)  Use allocate_optimized_out_value.  Once.
5224         * findvar.c (read_var_value): Likewise.
5225         * value.c (allocate_optimized_out_value): New function.
5226         * value.h (allocate_optimized_out_value): New declaration.
5227
5228 2011-07-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
5229
5230         Fix occasional crash of CTRL-C during DWARF read in.
5231         * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
5232
5233 2011-07-11  Tom Tromey  <tromey@redhat.com>
5234
5235         * regcache.c (struct regcache_descr): Fix typo.
5236         * i387-tdep.c (i387_supply_xsave): Fix typo.
5237
5238 2011-07-11  Tom Tromey  <tromey@redhat.com>
5239
5240         * dwarf2read.c (handle_DW_AT_stmt_list): New function.
5241         (read_file_scope, read_type_unit_scope): Use it.
5242
5243 2011-07-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
5244
5245         * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
5246         `int'.
5247
5248 2011-07-11  Phil Muldoon  <pmuldoon@redhat.com>
5249
5250         PR python/12438
5251         * python/python.c: Set gdbpy_should_print_stack default to off.
5252         (set_python): Deprecate maint set python print-stack to
5253         class_deprecate.
5254         (_initialize_python): Deprecate maint set/show python print-stack.
5255         Add new prefix command, python.  Add new setting, print-backtrace.
5256         * NEWS: Document set python print-stack.  Document default change.
5257
5258 2011-07-11  Phil Muldoon  <pmuldoon@redhat.com>
5259
5260         * python/py-inferior.c (infpy_dealloc): New function.
5261         (inferior_to_inferior_object): Return a new object, or a
5262         new reference to the existing object.
5263         (find_thread_object): Cleanup references to inferior.
5264         (delete_thread_object): Ditto.
5265         * python/py-infthread.c (create_thread_object): Do not increment
5266         inferior reference count.
5267
5268 2011-07-08  Tom Tromey  <tromey@redhat.com>
5269
5270         * dwarf2loc.c (locexpr_regname): New function.
5271         (locexpr_describe_location_piece): Use it.
5272         (disassemble_dwarf_expression): Add per_cu argument.  Use
5273         locexpr_regname.
5274         <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
5275         DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
5276         New cases.
5277         (locexpr_describe_location_1): Add per_cu argument.
5278         (locexpr_describe_location): Update.
5279         (loclist_describe_location): Update.
5280
5281 2011-07-08  Tom Tromey  <tromey@redhat.com>
5282
5283         * dwarf2expr.c (execute_stack_op): Add QUIT.
5284
5285 2011-07-07  Hui Zhu  <teawater@gmail.com>
5286
5287         Revert:
5288         2011-07-06  Hui Zhu  <teawater@gmail.com>
5289         * remote.c (remote_start_remote): Add TRY_CATCH for
5290         remote_get_trace_status.
5291         * tracepoint.c (disconnect_tracing): Ditto.
5292
5293 2011-07-07  Andrew Burgess  <aburgess@broadcom.com>
5294
5295         * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
5296         variables as signed, not unsigned.
5297
5298 2011-07-06  Joel Brobecker  <brobecker@adacore.com>
5299
5300         * jit.c (jit_inferior_init): Reformat forward declaration.
5301
5302 2011-07-06  Matt Rice  <ratmice@gmail.com>
5303
5304         * MAINTAINERS (Write After Approval): Add myself to the list.
5305
5306 2011-07-06  Hui Zhu  <teawater@gmail.com>
5307
5308         * remote.c (remote_start_remote): Add TRY_CATCH for
5309         remote_get_trace_status.
5310         * tracepoint.c (disconnect_tracing): Ditto.
5311
5312 2011-07-05  Tom Tromey  <tromey@redhat.com>
5313
5314         * symtab.c (operator_chars): Now static.
5315         * linespec.c (operator_chars): Don't declare.
5316
5317 2011-07-05  Thiago Jung Bauermann  <bauerman@br.ibm.com>
5318
5319         * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
5320
5321 2011-07-05  Tom Tromey  <tromey@redhat.com>
5322
5323         * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
5324         * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
5325         (TYPE_CPLUS_REALLY_JAVA): New macro.
5326         * dwarf2read.c (process_structure_scope): Set
5327         TYPE_CPLUS_REALLY_JAVA.
5328
5329 2011-07-05  Thiago Jung Bauermann  <bauerman@br.ibm.com>
5330
5331         * ada-lang.c: Fix typos.
5332         * amd64-tdep.c: Likewise.
5333         * breakpoint.c: Likewise.
5334         * cli/cli-decode.c: Likewise.
5335         * findcmd.c: Likewise.
5336         * inline-frame.c: Likewise.
5337         * mi/mi-main.c: Likewise.
5338         * minsyms.c: Likewise.
5339         * monitor.c: Likewise.
5340         * monitor.h: Likewise.
5341         * prologue-value.c: Likewise.
5342         * reverse.c: Likewise.
5343         * s390-tdep.c: Likewise.
5344
5345 2011-07-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
5346
5347         * jit.c (jit_inferior_init): Forward declare.
5348         (jit_breakpoint_re_set_internal): Call jit_inferior_init.
5349
5350 2011-07-04  Joel Brobecker  <brobecker@adacore.com>
5351
5352         * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
5353
5354 2011-07-04  Tristan Gingold  <gingold@adacore.com>
5355
5356         * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
5357         (tcb_fieldno): Add activation_link field.
5358         (get_known_tasks_addr): Moved and rewritten.
5359         (get_tcb_types_info): Set activation_link field.
5360         (read_known_tasks_array): Add parameter.  Rewritten.
5361         (read_known_tasks_list): New function.
5362         (read_known_tasks): New function.
5363         (ada_build_task_list): Call read_known_tasks instead of
5364         read_known_tasks_array.
5365         * ravenscar-thread.c: Add first_task_name constant.
5366         (has_ravenscar_runtime): Check for task list too.
5367
5368 2011-07-04  Tristan Gingold  <gingold@adacore.com>
5369
5370         * ada-tasks.c: Renames fieldno to actb_fieldno.
5371         (ada_get_task_number): Indentation.
5372         (get_tcb_types_info): Remove all parameters.  Write directly
5373         the globals.
5374         (ptid_from_atcb_common): Adjust.
5375         (read_atcb): Adjust.
5376
5377 2011-07-04  Thiago Jung Bauermann  <bauerman@br.ibm.com>
5378
5379         * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
5380
5381 2011-07-04  Thiago Jung Bauermann  <bauerman@br.ibm.com>
5382
5383         * ui-out.c (ui_out_field_core_addr): Mention that the function
5384         description is in the header file.
5385         * ui-out.h (ui_out_field_core_addr): Document function.
5386
5387 2011-07-04  Thiago Jung Bauermann  <bauerman@br.ibm.com>
5388
5389         * ui-out.c (ui_out_get_field_separator): Remove unused function.
5390         * ui-out.h (ui_out_get_field_separator): Remove prototype.
5391
5392 2011-07-04  Thiago Jung Bauermann  <bauerman@br.ibm.com>
5393
5394         * symtab.c (expand_line_sal): Remove empty line.
5395
5396 2011-07-04  Thomas Schwinge  <thomas@schwinge.name>
5397
5398         * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
5399         same way as ELFOSABI_NONE.
5400         <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
5401
5402 2011-07-04  Thiago Jung Bauermann  <bauerman@br.ibm.com>
5403
5404         * breakpoint.c: Fix typos in comments.
5405         * linespec.c: Likewise.
5406         * symtab.c: Likewise.
5407
5408 2011-07-04  Joel Brobecker  <brobecker@adacore.com>
5409
5410         * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
5411         section in separate object files.
5412
5413 2011-07-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
5414
5415         Fix false GCC warning.
5416         * linespec.c (decode_line_1): Initialize values.
5417
5418 2011-07-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
5419
5420         * linespec.c (find_method): Accept the function type automatically only
5421         if it was specified with parameter types.
5422
5423 2011-07-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
5424
5425         Stop on first linespec terminator instead of eating what we can.
5426         * linespec.c (is_linespec_boundary): New function.
5427         (name_end): Remove function.
5428         (keep_name_info): New parameter on_boundary, replace the body.
5429         (decode_line_1): Provide the parameter to keep_name_info.
5430         (decode_compound): Likewise.  Drop the trailing java return type
5431         handling.  Twice.
5432
5433 2011-07-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
5434
5435         Fall back linespec to minimal symbols.
5436         * linespec.c (decode_line_1): New variable ex, saved_argptr.  Protect
5437         decode_compound by TRY_CATCH, fall back on minsyms if it failed.
5438         (find_method, symbol_found): Change error to cplusplus_error.
5439
5440 2011-07-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
5441
5442         * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
5443
5444 2011-07-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
5445             Tom Tromey  <tromey@redhat.com>
5446
5447         * dwarf2read.c (check_physname): New variable.
5448         (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
5449         (show_check_physname): New function.
5450         (_initialize_dwarf2_read): Add `check-physname' for check_physname.
5451
5452 2011-07-01  Joel Brobecker  <brobecker@adacore.com>
5453
5454         * machoread.c (macho_symfile_read): Delete OBE comment.
5455
5456 2011-07-01  Joel Brobecker  <brobecker@adacore.com>
5457
5458         * machoread.c (struct macho_oso_data): Delete.
5459         (current_oso): Delete.
5460         (macho_relocate_common_syms): New function, mostly extracted
5461         out of
5462         (macho_add_oso_symfile): Call macho_relocate_common_syms.
5463         Remove code that sets and unset current_oso.
5464         (macho_symfile_relocate): Delete handling of common symbols,
5465         now moved to macho_relocate_common_syms.
5466
5467 2011-07-01  Joel Brobecker  <brobecker@adacore.com>
5468
5469         * darwin-nat.c (darwin_ptrace): Add documentation.
5470         Set errno to zero before calling ptrace.  If ptrace returns
5471         -1 and errno is zero, then change then return zero.
5472         (darwin_kill_inferior): Issue a warning instead of triggering
5473         a failed assertion when the PT_KILL ptrace operations returned
5474         nonzero.
5475
5476 2011-07-01  Joel Brobecker  <brobecker@adacore.com>
5477
5478         * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
5479         only when inf->private->no_ptrace.
5480
5481 2011-07-01  Joel Brobecker  <brobecker@adacore.com>
5482
5483         * ada-lang.c (print_it_exception): Print temporary catchpoints
5484         as "Temporary catchpoint".
5485         (print_mention_exception): Likewise.
5486
5487 2011-07-01  Tom Tromey  <tromey@redhat.com>
5488
5489         * jv-lang.c (java_language_defn): Use java_printchar,
5490         java_printstr.
5491         (java_get_encoding): New function.
5492         (java_emit_char): Use generic_emit_char.
5493         (java_printchar): New function.
5494         (java_printstr): Likewise.
5495
5496 2011-07-01  Joel Brobecker  <brobecker@adacore.com>
5497
5498         * ada-typeprint.c (print_record_type): If unable to decode
5499         the name of the parent type, use the encoded name.
5500
5501 2011-07-01  Jean-Charles Delay  <delay@adacore.com>
5502
5503         * ada-typeprint.c (ada_print_type): Fix both PAD type and
5504         pointer to constrained packed array type output.
5505         * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
5506         packed array output.
5507
5508 2011-07-01  Jean-Charles Delay  <delay@adacore.com>
5509
5510         * ada-typeprint.c (print_array_type): removed if condition on show
5511         being negative for bounds printing.
5512
5513 2011-07-01  Joel Brobecker  <brobecker@adacore.com>
5514
5515         * ada-lang.c (ada_identical_enum_types_p): New function.
5516         (symbols_are_identical_enums): New function.
5517         (remove_extra_symbols): Do nothing if NSYMS < 2.
5518         Use symbols_are_identical_enums.
5519
5520 2011-07-01  Joel Brobecker  <brobecker@adacore.com>
5521
5522         * ada-valprint.c (ada_value_print): Handle typedefs.
5523
5524 2011-07-01  Joel Brobecker  <brobecker@adacore.com>
5525
5526         * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
5527
5528 2011-07-01  Eric Botcazou  <ebotcazou@adacore.com>
5529
5530         * ada-lang.c (thin_descriptor_type): Deal with typedefs.
5531         (decode_constrained_packed_array): Likewise.
5532         (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
5533
5534 2011-07-01  Joel Brobecker  <brobecker@adacore.com>
5535
5536         * ada-exp.y (convert_char_literal): Handle typedef types.
5537
5538 2011-07-01  Joel Brobecker  <brobecker@adacore.com>
5539
5540         * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
5541
5542 2011-06-30  Tom Tromey  <tromey@redhat.com>
5543
5544         * varobj.c (varobj_create): Call do_cleanups on early exit path.
5545         * valops.c (find_overload_match): Call do_cleanups on early exit
5546         path.
5547         * solib.c (solib_find): Call do_cleanups on early exit path.
5548
5549 2011-06-30  Tom Tromey  <tromey@redhat.com>
5550
5551         * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
5552         * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
5553         return paths.  Defer final do_cleanups until last return.
5554         * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
5555         early return.
5556
5557 2011-06-30  Tom Tromey  <tromey@redhat.com>
5558
5559         * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
5560
5561 2011-06-30  Andrew Burgess  <aburgess@broadcom.com>
5562
5563         * MAINTAINERS (Write After Approval): Add myself to the list.
5564
5565 2011-06-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
5566
5567         Disable epilogue unwinders on recent GCCs.
5568         * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
5569         initialize it, return 0 on EPILOGUE_UNWIND_VALID.
5570         * dwarf2read.c (process_full_comp_unit): Initialize
5571         EPILOGUE_UNWIND_VALID.
5572         * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
5573         initialize it, return 0 on EPILOGUE_UNWIND_VALID.
5574         * symtab.h (struct symtab): New field epilogue_unwind_valid.
5575
5576 2011-06-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
5577
5578         Code cleanup - reformatting.
5579         * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
5580         (producer_is_gcc_ge_4): ... here, change the return value.
5581         (process_full_comp_unit): New variable gcc_4_minor, adjust the value
5582         interpretation.
5583
5584 2011-06-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
5585
5586         Fix non-only rename list for Fortran modules import.
5587         * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
5588         cp_add_using_directive caller.
5589         (cp_add_using_directive): New parameter excludes, describe it.  New
5590         variables ix and param.  Compare if also excludes match.  Allocate NEW
5591         with variable size, initialize EXCLUDES there.
5592         (cp_lookup_symbol_imports): New variable excludep, test
5593         current->EXCLUDES with it.
5594         * cp-support.h: Include vec.h.
5595         (struct using_direct): New field excludes, describe it.
5596         (DEF_VEC_P (const_char_ptr)): New.
5597         (cp_add_using_directive): New parameter excludes.
5598         * defs.h (const_char_ptr): New typedef.
5599         * dwarf2read.c (read_import_statement): New variables child_die,
5600         excludes and cleanups, read in excludes.
5601         (read_namespace): Adjust the cp_add_using_directive caller.
5602
5603 2011-06-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
5604
5605         Code cleanup.
5606         * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
5607         negative comparisons.
5608
5609 2011-06-29  André Pönitz  <andre.poenitz@nokia.com>
5610
5611         * mi/mi-main.c (mi_cmd_list_features): Emit
5612         breakpoint-notifications.
5613
5614 2011-06-29  Tom Tromey  <tromey@redhat.com>
5615
5616         PR fortran/10036:
5617         * valprint.h (generic_emit_char, generic_printstr): Declare.
5618         * valprint.c (wchar_printable, append_string_as_wide)
5619         (print_wchar): Move from c-lang.c.
5620         (generic_emit_char): New function; mostly taken from c_emit_char.
5621         (generic_printstr): New function; mostly taken from c_printstr.
5622         * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
5623         represented as arrays.
5624         <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
5625         type.
5626         * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
5627         identically to TYPE_CODE_INT.
5628         * f-lang.c (f_get_encoding): New function.
5629         (f_emit_char): Use generic_emit_char.
5630         (f_printchar): Replace comment.
5631         (f_printstr): Use generic_printstr.
5632         * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
5633         "character" types specially.
5634         <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
5635         for Fortran.
5636         * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
5637         Move to valprint.c
5638         (c_emit_char): Call generic_emit_char.
5639         (c_printstr): Call generic_printstr.
5640
5641 2011-06-29  Gary Benson  <gbenson@redhat.com>
5642
5643         * breakpoint.c (bpstat_what): Removed duplicated case.
5644
5645 2011-06-28  Tom Tromey  <tromey@redhat.com>
5646
5647         * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
5648
5649 2011-06-27  Tom Tromey  <tromey@redhat.com>
5650
5651         * valops.c (find_overload_match): Call do_cleanups before early
5652         return.
5653         * top.c (execute_command): Call do_cleanups before early return.
5654         (command_loop): Likewise.
5655         * stack.c (backtrace_command): Make a null cleanup early.  Don't
5656         conditionally call do_cleanups.
5657         * python/py-value.c (TRY_CATCH): Move cleanup handling into
5658         TRY_CATCH.
5659         * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
5660         so cleanups are always run.
5661         * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
5662         * findcmd.c (parse_find_args): Call do_cleanups on early return
5663         path.
5664         * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
5665         Don't conditionally call do_cleanups.
5666         * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
5667         later.
5668
5669 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
5670
5671         * MAINTAINERS (Write After Approval): Use default email address.
5672
5673 2011-06-27  Joel Brobecker  <brobecker@adacore.com>
5674
5675         * MAINTAINERS (Write After Approval): Add Eric Botcazou.
5676
5677 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
5678
5679         * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
5680         saved_regs_mask and copied_regs_mask fields.
5681         (sparc_record_save_insn): New prototype.
5682         * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
5683         (sparc_record_save_insn): New function.
5684         (sparc_analyze_prologue): Add head comment.  Recognize store insns
5685         of call-saved registers.  Use OFFSET consistently.  Recognize flat
5686         frames and cache their settings.
5687         (sparc32_skip_prologue): Handle flat frames.
5688         (sparc_frame_cache): Add frame_offset to the base address.
5689         (sparc32_frame_cache): Adjust to new frame description.
5690         (sparc32_frame_prev_register): Likewise.
5691         * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
5692         * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
5693         * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
5694         * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
5695         frame by calling sparc_record_save_insn.
5696         * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
5697         * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
5698         * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
5699
5700 2011-06-27  Tristan Gingold  <gingold@adacore.com>
5701
5702         * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
5703         field by map_addr and map_len.
5704         (dwarf2_read_section): Adjust for the new bfd_mmap api.
5705         (munmap_section_buffer): Likewise.
5706
5707 2011-06-24  Tom Tromey  <tromey@redhat.com>
5708
5709         * varobj.c (update_dynamic_varobj_children): Make 'name' const.
5710         * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
5711         * python/python.c (gdbpy_parameter): Make 'arg' const.
5712         (execute_gdb_command): Likewise.
5713         (gdbpy_decode_line): Likewise.  Copy it.
5714         (gdbpy_parse_and_eval): Make 'expr_string' const.  Copy it.
5715         (gdbpy_write): Make 'arg' const.
5716         * python/py-type.c (typy_lookup_typename): Make 'type_name'
5717         const.
5718         (gdbpy_lookup_type): Likewise.
5719         * python/py-prettyprint.c (print_children): Make 'name' const.
5720         * python/py-param.c (parmpy_init): Make 'name' const.  Copy it.
5721         * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
5722         Py_ssize_t.
5723         * python/py-function.c (fnpy_init): Make 'name' const.
5724         * python/py-cmd.c (cmdpy_init): Make 'name' const.  Copy it.
5725         (gdbpy_string_to_argv): Make 'input' const.
5726         * python/py-breakpoint.c (bppy_init): Make 'spec' const.  Copy
5727         it.
5728         * gdbtypes.h (lookup_typename): Update.
5729         * gdbtypes.c (lookup_typename): Make 'name' const.
5730         (lookup_struct): Likewise.
5731         (lookup_union): Likewise.
5732         (lookup_enum): Likewise.
5733
5734 2011-06-24  Tom Tromey  <tromey@redhat.com>
5735
5736         * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
5737         gdb_thread_db.h.  Move all common/ entries to be together.
5738         (TAGS): Don't depend on DEPFILES.
5739
5740 2011-06-23  Yao Qi  <yao@codesourcery.com>
5741
5742         * infrun.c (start_remote): Move call init_wait_for_inferior to ...
5743         * remote.c (remote_start_remote): ... here.
5744         * monitor.c (monitor_open): ... here.
5745
5746 2011-06-23  Andrew Burgess  <aburgess@broadcom.com>
5747
5748         * gdbtypes.c (append_composite_type_field_aligned): Fix
5749         calculation of bit position based on alignment.
5750
5751 2011-06-22  Pedro Alves  <pedro@codesourcery.com>
5752
5753         * breakpoint.c (bpstat_stop_status): Call the check_status
5754         breakpoint_ops method.
5755         (print_one_breakpoint_location): Also print the condition for Ada
5756         exception catchpoints.
5757         (allocate_bp_location): New, factored out from
5758         allocate_bp_location.
5759         (allocate_bp_location): Adjust.  Call the owner breakpoint's
5760         allocate_location method, if there is one.
5761         (free_bp_location): Call the locations's dtor method, if there is
5762         one.
5763         (init_raw_breakpoint_without_location): New breakpoint_ops
5764         parameter.  Use it.
5765         (set_raw_breakpoint_without_location): Adjust.
5766         (init_raw_breakpoint): New breakpoint_ops parameter.  Pass it down.
5767         (set_raw_breakpoint): Adjust.
5768         (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
5769         (catch_syscall_breakpoint_ops): Install NULL allocate_location,
5770         re_set and check_status methods.
5771         (init_catchpoint): Don't memset, initialize thread, addr_string
5772         and enable_state.  Pass the ops down to init_raw_breakpoint.
5773         (install_catchpoint): Rename to ...
5774         (install_breakpoint): ... this, and make extern.
5775         (create_fork_vfork_event_catchpoint): Adjust.
5776         (catch_exec_breakpoint_ops): Install NULL allocate_location,
5777         re_set and check_status methods.
5778         (create_syscall_event_catchpoint): Adjust.
5779         (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
5780         (masked_watchpoint_breakpoint_ops): Install NULL
5781         allocate_location, re_set and check_status methods.
5782         (catch_exec_command_1): Adjust.
5783         (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
5784         re_set and check_status methods.
5785         (create_ada_exception_breakpoint): Rename to ...
5786         (init_ada_exception_breakpoint): ... this.  Add a struct
5787         breakpoint parameter, and delete the exp_string, cond_string and
5788         cond parameters.  Use init_raw_breakpoint, and don't install or
5789         mention the breakpoint yet.  Don't clear breakpoint fields that
5790         init_raw_breakpoint already clears.
5791         (re_set_breakpoint): Delete, split into ...
5792         (breakpoint_re_set_default, prepare_re_set_context): ... these new
5793         functions.
5794         (breakpoint_re_set_one): Call the breakpoint's
5795         breakpoint_ops->re_set implementation, if there's one.  Adjust.
5796         * breakpoint.h: Forward declare struct bpstats and struct bp_location.
5797         (struct bp_location_ops): New type.
5798         (struct bp_location): New field `ops'.
5799         (struct breakpoint_ops): New `allocate_location', `re_set' and
5800         `check_status' fields.  Make `breakpoint_hit''s description match
5801         reality.
5802         (init_bp_location): Declare.
5803         (breakpoint_re_set_default): Declare.
5804         (create_ada_exception_breakpoint): Rename to ...
5805         (init_ada_exception_breakpoint): ... this.  Add a struct
5806         breakpoint parameter, and delete the exp_string, cond_string and
5807         cond parameters.
5808         (install_breakpoint): Declare.
5809         * ada-lang.c: Include exceptions.h.
5810         <Ada exceptions description>: Update.
5811         (struct ada_catchpoint_location): New type.
5812         (ada_catchpoint_location_dtor): New function.
5813         (ada_catchpoint_location_ops): New global.
5814         (ada_catchpoint): New type.
5815         (create_excep_cond_exprs): New function.
5816         (dtor_exception, allocate_location_exception, re_set_exception)
5817         (should_stop_exception, check_status_exception): New functions.
5818         (print_one_exception, print_mention_exception)
5819         (print_recreate_exception): Adjust.
5820         (dtor_catch_exception, allocate_location_catch_exception)
5821         (re_set_catch_exception, check_status_catch_exception): New
5822         functions.
5823         (catch_exception_breakpoint_ops): Install them.
5824         (dtor_catch_exception_unhandled)
5825         (allocate_location_catch_exception_unhandled)
5826         (re_set_catch_exception_unhandled)
5827         (check_status_catch_exception_unhandled): New functions.
5828         (catch_exception_unhandled_breakpoint_ops): Install them.
5829         (dtor_catch_assert, allocate_location_catch_assert)
5830         (re_set_catch_assert, check_status_catch_assert): New functions.
5831         (catch_assert_breakpoint_ops): Install them.
5832         (ada_exception_catchpoint_p): Delete.
5833         (catch_ada_exception_command_split)
5834         (ada_exception_catchpoint_cond_string): Rename exp_string
5835         parameter to excep_string.  Adjust.
5836         (ada_parse_catchpoint_condition): Delete.
5837         (ada_exception_sal): Rename the exp_string parameter to
5838         excep_string.  Delete the cond_string and cond parameters.
5839         Adjust.
5840         (ada_decode_exception_location): Rename the exp_string parameter
5841         to excep_string.  Delete the cond_string and cond parameters.
5842         Adjust.
5843         (create_ada_exception_catchpoint): New function.
5844         (catch_ada_exception_command, ada_decode_assert_location)
5845         (catch_assert_command): Adjust.
5846         * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
5847
5848 2011-06-22  Pedro Alves  <pedro@codesourcery.com>
5849
5850         * ada-lang.c: Include arch-utils.h.
5851         (ada_decode_exception_location): Make static.
5852         (catch_ada_exception_command): Moved here from breakpoint.c.
5853         (ada_decode_assert_location): Make static.
5854         (catch_assert_command): Moved here from breakpoint.c.
5855         (_initialize_ada_lang): Install the exception and assert
5856         catchpoint commands here.
5857         * ada-lang.h (ada_decode_exception_location)
5858         (ada_decode_assert_location): Delete declarations.
5859         * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
5860         breakpoint.h.
5861         (create_ada_exception_breakpoint): Make extern.
5862         (catch_ada_exception_command, catch_assert_command): Moved to
5863         ada-lang.c.
5864         (add_catch_command): Make extern.
5865         (_initilize_breakpoint): Don't install the exception and assert
5866         catchpoint commands here.
5867         * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
5868         breakpoint.c
5869         (add_catch_command, create_ada_exception_breakpoint): Declare.
5870
5871 2011-06-22  Pedro Alves  <pedro@codesourcery.com>
5872
5873         * breakpoint.c (init_raw_breakpoint_without_location): Don't add
5874         the breakpoint to the breakpoint chain here.
5875         (set_raw_breakpoint_without_location): Add the breakpoint to the
5876         breakpoint chain here.
5877         (init_raw_breakpoint): Adjust comments.
5878         (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
5879         here.
5880         (init_catchpoint): Don't set the catchpoint's breakpoint number
5881         here.
5882         (install_catchpoint): New function.
5883         (create_fork_vfork_event_catchpoint)
5884         (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
5885         use install_catchpoint.
5886
5887 2011-06-22  Pedro Alves  <pedro@codesourcery.com>
5888
5889         * breakpoint.c (create_catchpoint_without_mention)
5890         (create_catchpoint): Delete.
5891
5892 2011-06-22  Pedro Alves  <pedro@codesourcery.com>
5893
5894         * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
5895         * breakpoint.c (init_raw_breakpoint_without_location): Remove
5896         reference to exec_pathname.
5897         (struct exec_catchpoint): New type.
5898         (dtor_catch_exec): New function.
5899         (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
5900         (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
5901         (catch_exec_command_1): Adjust to use init_catchpoint.
5902         (delete_breakpoint): Remove reference to exec_pathname.
5903
5904 2011-06-22  Pedro Alves  <pedro@codesourcery.com>
5905
5906         * breakpoint.h (struct breakpoint_ops): New field `dtor'.
5907         (struct breakpoint): Delete field `syscalls_to_be_caught'.
5908         * breakpoint.c (init_raw_breakpoint_without_location): Remove
5909         reference to syscalls_to_be_caught.
5910         (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
5911         NULL `dtor'.
5912         (struct syscall_catchpoint): New type.
5913         (dtor_catch_syscall): New function.
5914         (insert_catch_syscall, remove_catch_syscall)
5915         (breakpoint_hit_catch_syscall, print_one_catch_syscall)
5916         (print_recreate_catch_syscall): Adjust.
5917         (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
5918         (catch_exec_breakpoint_ops): Install a NULL `dtor'.
5919         (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
5920         (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
5921         (masked_watchpoint_breakpoint_ops)
5922         (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
5923         (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
5924         there is one.  Remove references to syscalls_to_be_caught.
5925         (catching_syscall_number): Adjust.
5926         * ada-lang.c (catch_exception_breakpoint_ops)
5927         (catch_exception_unhandled_breakpoint_ops)
5928         (catch_assert_breakpoint_ops): Install a NULL `dtor'.
5929
5930 2011-06-22  Pedro Alves  <pedro@codesourcery.com>
5931
5932         * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
5933         field.
5934         * breakpoint.c (init_raw_breakpoint_without_location): Remove
5935         reference to forked_inferior_pid.
5936         (struct fork_catchpoint): New type.
5937         (breakpoint_hit_catch_fork, print_it_catch_fork)
5938         (print_one_catch_fork, breakpoint_hit_catch_vfork)
5939         (print_it_catch_vfork, print_one_catch_vfork): Adjust.
5940         (create_fork_vfork_event_catchpoint): Adjust to use
5941         init_catchpoint.
5942
5943 2011-06-22  Pedro Alves  <pedro@codesourcery.com>
5944
5945         * breakpoint.c (add_to_breakpoint_chain)
5946         (init_raw_breakpoint_without_location): New functions, factored
5947         out from ...
5948         (set_raw_breakpoint_without_location): ... this one.
5949         (init_raw_breakpoint): New function, factored out from
5950         set_raw_breakpoint and adjusted to use
5951         init_raw_breakpoint_without_location.
5952         (set_raw_breakpoint): Adjust.
5953         (init_catchpoint): New function, factored out from
5954         create_catchpoint_without_mention and adjusted to use
5955         init_raw_breakpoint.
5956         (create_catchpoint_without_mention): Adjust.
5957
5958 2011-06-22  Tom Tromey  <tromey@redhat.com>
5959
5960         * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
5961         argument of 0 specially.
5962
5963 2011-06-22  Yao Qi  <yao@codesourcery.com>
5964
5965         * infrun.c (handle_inferior_event): Remove write-only local variable
5966         `sw_single_step_trap_p'.
5967
5968 2011-06-20  Tom Tromey  <tromey@redhat.com>
5969
5970         * symtab.c (lookup_language_this): End loop if block is NULL.
5971
5972 2011-06-17  Tom Tromey  <tromey@redhat.com>
5973
5974         * valops.c (value_of_this): Use lookup_language_this.
5975         * symtab.h (lookup_language_this): Declare.
5976         * symtab.c (lookup_language_this): New function.
5977         (lookup_symbol_aux): Use lookup_language_this.
5978         * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
5979
5980 2011-06-17  Tom Tromey  <tromey@redhat.com>
5981
5982         * value.h (value_of_this): Update.
5983         (value_of_local): Remove.
5984         * valops.c (value_of_this): Rename from value_of_local.  Change
5985         parameters.
5986         * p-exp.y (exp): Update.
5987         (variable): Likewise.
5988         * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
5989
5990 2011-06-17  Tom Tromey  <tromey@redhat.com>
5991
5992         * valops.c (value_of_local): Complain if NAME is NULL.
5993         * std-operator.def (OP_OBJC_SELF): Remove.
5994         * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
5995         * objc-exp.y (name_not_typename): Use OP_THIS.
5996         * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
5997         name for "this".
5998         <OP_OBJC_SELF>: Remove.
5999         * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
6000
6001 2011-06-16  Tristan Gingold  <gingold@adacore.com>
6002
6003         * python/py-events.h (gdb_py_events): Make it extern.
6004         * python/py-evtregistry.c (gdb_py_events): Declare.
6005
6006 2011-06-16  Hui Zhu  <teawater@gmail.com>
6007
6008         * remote.c (remote_trace_set_readonly_regions): Add check for
6009         remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
6010         output warning.
6011
6012 2011-06-15  Ulrich Weigand  <ulrich.weigand@linaro.org>
6013
6014         * arm-linux-tdep.c: Include "auxv.h".
6015         (AT_HWCAP): Define.
6016         (ARM_LINUX_SIZEOF_VFP): Define.
6017         (arm_linux_supply_vfp): New function.
6018         (arm_linux_collect_vfp): Likewise.
6019         (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
6020         (arm_linux_fpa_regset_sections): New variable.
6021         (arm_linux_vfp_regset_sections): Likewise.
6022         (arm_linux_core_read_description): New function.
6023         (arm_linux_init_abi): Install arm_linux_core_read_description and
6024         arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
6025         appropriate for the architecture.
6026         * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
6027         (tdesc_arm_with_m): Declare.
6028         (tdesc_arm_with_iwmmxt): Likewise.
6029         (tdesc_arm_with_vfpv2): Likewise.
6030         (tdesc_arm_with_vfpv3): Likewise.
6031         (tdesc_arm_with_neon): Likewise.
6032         * arm-linux-nat.c: Move features/*.c includes ...
6033         * arm-tdep.c: ... here.
6034         * arm-linux-nat.c (arm_linux_read_description): Move initializing
6035         target description data structures ...
6036         * arm-tdep.c (_initialize_arm_tdep): ... here.
6037         * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
6038         HWCAP_VFPv3D16): Move definitions ...
6039         * arm-linux-tdep.h: ... here.
6040
6041 2011-06-15  Hui Zhu  <teawater@gmail.com>
6042
6043         * remote.c (remote_trace_set_readonly_regions): Add a check for
6044         target_buf_size.
6045
6046 2011-06-14  Tom Tromey  <tromey@redhat.com>
6047
6048         * coffread.c (coffread_objfile): Rename from current_objfile.
6049         * dbxread.c (dbxread_objfile): Rename from current_objfile.
6050         * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
6051
6052 2011-06-14  Tom Tromey  <tromey@redhat.com>
6053
6054         * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
6055         (class_symtab): Remove.
6056         (jv_dynamics_progspace_key): New global.
6057         (jv_per_objfile_free): Reset program space data.  Update assert.
6058         Don't clear globals.
6059         (get_dynamics_objfile): Use and set program space data.
6060         (get_java_class_symtab): Use get_dynamics_objfile.
6061         (add_class_symbol): Likewise.
6062         (java_link_class_type): Likewise.
6063         (java_object_type, jv_clear_object_type, set_java_object_type):
6064         Remove.
6065         (get_java_object_type): Update.  Don't cache result.
6066         (is_object_type): Don't call set_java_object_type.
6067         (_initialize_java_language): Don't set jv_type_objfile_data_key;
6068         initialize jv_dynamics_progspace_key.
6069
6070 2011-06-14  Tom Tromey  <tromey@redhat.com>
6071
6072         * symtab.h (current_objfile): Don't declare.
6073         * objfiles.h (current_objfile): Don't declare.
6074         * objfiles.c (current_objfile): Remove.
6075         * mdebugread.c (current_objfile): New file-scope global.
6076         * dbxread.c (current_objfile): New file-scope global.
6077         * coffread.c (current_objfile): New file-scope global.
6078
6079 2011-06-13  Pedro Alves  <pedro@codesourcery.com>
6080
6081         * top.h (line): Rename to ...
6082         (saved_command_line): ... this.
6083         (linesize): Rename to ...
6084         (saved_command_line_size): ... this.
6085         * top.c (line): Rename to ...
6086         (saved_command_line): ... this.
6087         (linesize): Rename to ...
6088         (saved_command_line_size): ... this.
6089         (dont_repeat, command_line_input, dont_repeat_command): Adjust.
6090         * event-top.c (command_line_handler): Adjust.
6091         * main.c (captured_main): Adjust.
6092
6093 2011-06-12  Mark Kettenis  <kettenis@gnu.org>
6094
6095         * i386-tdep.c (i386_epilogue_frame_cache): Simplify code.  Call
6096         get_frame_func instead of get_frame_pc to determine the code
6097         address used to construct the frame ID.
6098         (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
6099         (i386_epilogue_frame_this_id): Likewise.
6100         (i386_epilogue_frame_prev_register): New function.
6101         (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
6102         (i386_stack_tramp_frame_sniffer): Fix coding style.
6103         (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
6104         (i386_gdbarch_init): Fix comments.
6105
6106 2011-06-12  Mark Kettenis  <kettenis@gnu.org>
6107
6108         * i386-tdep.c (i386_match_insn_block): Use length of the proper
6109         instruction when walking back through the instruction stream.
6110
6111 2011-06-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
6112
6113         * symtab.c (output_partial_symbol_filename): Exchange the filename and
6114         fullname parameters order.
6115
6116 2011-06-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
6117
6118         Code cleanup.
6119         * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
6120         for fun.
6121         * psymtab.c (map_symbol_filenames_psymtab)
6122         (map_partial_symbol_filenames): Likewise.
6123         * psymtab.h: Include symfile.h.
6124         (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
6125         * symfile.h (symbol_filename_ftype): New.
6126         (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
6127         map_symbol_filenames, clarify more the naming in comment.
6128
6129 2011-06-07  Doug Evans  <dje@google.com>
6130
6131         * cc-with-index.sh: Fix typos in comment.
6132         Look for ../../gdb, for fullname.exp.
6133
6134 2011-06-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
6135             Pedro Alves  <pedro@codesourcery.com>
6136
6137         * cli/cli-cmds.c (shell_escape): Use waitpid.
6138         * rs6000-nat.c (exec_one_dummy_insn): Likewise.
6139
6140 2011-06-07  Tristan Gingold  <gingold@adacore.com>
6141
6142         * xcoffread.c (dwarf2_xcoff_names): New variable.
6143         (aix_process_linenos): Add a guard.
6144         (xcoff_symfile_finish): Free dwarf2.
6145         (xcoff_initial_scan): Add dwarf2 support.
6146
6147 2011-06-06  Pedro Alves  <pedro@codesourcery.com>
6148
6149         * infcall.c (run_inferior_call): Don't mask async.  Instead force
6150         a synchronous wait, if the target can async.
6151
6152         * target.h (struct target_ops): Delete to_async_mask.
6153         (target_async_mask): Delete.
6154         * target.c (update_current_target): Delete references to to_async_mask.
6155         * linux-nat.c (linux_nat_async_mask_value): Delete.
6156         (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
6157         to linux_nat_async_mask_value.
6158         (linux_nat_async_mask): Delete.
6159         (linux_nat_async, linux_nat_close): Remove references to
6160         linux_nat_async_mask_value.
6161         * record.c (record_async_mask_value): Delete.
6162         (record_async): Remove references to record_async_mask_value.
6163         (record_async_mask): Delete.
6164         (record_can_async_p, record_is_async_p): Remove references to
6165         record_async_mask_value.
6166         (init_record_ops, init_record_core_ops): Remove references to
6167         record_async_mask.
6168         * remote.c (remote_async_mask_value): Delete.
6169         (init_remote_ops): Remove reference to remote_async_mask.
6170         (remote_can_async_p, remote_is_async_p): Remove references to
6171         remote_async_mask_value.
6172         (remote_async): Remove references to remote_async_mask_value.
6173         (remote_async_mask): Delete.
6174
6175         * infrun.c (fetch_inferior_event): Don't claim registers changed
6176         if the current thread is already not executing.
6177
6178 2011-06-03  Joel Brobecker  <brobecker@adacore.com>  (obvious fix)
6179
6180         From Stephen Kitt  <steve@sk2.org>
6181         * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
6182         gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
6183
6184 2011-06-03  Joel Brobecker  <brobecker@adacore.com>
6185
6186         * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
6187         the case where ADDR_SIZE is different from TYPE_LENGTH (type).
6188
6189 2011-06-03  Tom Tromey  <tromey@redhat.com>
6190
6191         * python/py-inferior.c (python_inferior_exit): Use inferior's exit
6192         code fields.
6193         * python/py-exitedevent.c (create_exited_event_object): Change
6194         type of 'exit_code'.  Optionally add exit_code attribute.
6195         (emit_exited_event): Change type of 'exit_code'.
6196         * python/py-event.h (emit_exited_event): Update.
6197         * mi/mi-interp.c (mi_inferior_exit): Print exit code.
6198         * infrun.c (handle_inferior_event): Set exit code fields on
6199         inferior.
6200         * inferior.h (struct inferior) <has_exit_code, exit_code>: New
6201         fields.
6202         * inferior.c (exit_inferior_1): Initialize new fields.
6203
6204 2011-06-03  Tom Tromey  <tromey@redhat.com>
6205
6206         * dwarf2expr.c (get_signed_type): New function.
6207         (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
6208
6209 2011-06-02  Keith Seitz  <keiths@redhat.com>
6210
6211         * objc-lang.c (find_methods): Increment objfile_csym earlier.
6212
6213 2011-06-02  Pedro Alves  <pedro@codesourcery.com>
6214
6215         * top.h (simplified_command_loop): Delete declaration.
6216
6217 2011-06-01  Mike Frysinger  <vapier@gentoo.org>
6218
6219         * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
6220         gdb_sysroot to the "len" variable.  Append both to "arg_buf".
6221
6222 2011-06-01  Yao Qi  <yao@codesourcery.com>
6223
6224         * objfiles.h (obj_section_addr): Update reference to objfile from
6225         `abfd' to `obfd'.
6226         (obj_section_endaddr): Likewise.
6227
6228 2011-06-01  Daniel Jacobowitz  <drow@false.org>
6229
6230         * MAINTAINERS: Update my email address and affiliation.  Also
6231         update Ian Lance Taylor's affiliation.  Use UTF-8 for ludo@gnu.org.
6232
6233 2010-05-31  Keith Seitz  <keiths@redhat.com>
6234
6235         PR c++/12750
6236         * linespec.c (get_search_block): New function.
6237         (find_methods): Add FILE_SYMTATB parameter and use it and
6238         get_search_block to pass an appropriate block to
6239         lookup_symbol_in_namespace.
6240         (decode_line_1): Record if *ARGPTR is single-quote enclosed.
6241         Check if *ARGPTR starts with a filename first.
6242         If it does, call locate_first_half again to locate the next
6243         "first half" of the linespec.
6244         Pass FILE_SYMTATB to decode_objc and decode_compound.
6245         Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
6246         (locate_first_half): Stop on the first colon seen.
6247         (decode_compound): Add FILE_SYMTAB parameter.
6248         Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
6249         (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
6250         get_search_block with lookup_symbol.
6251         (find_method): Add FILE_SYMTAB parameter and pass it to
6252         find_methods.
6253         (decode_objc): Use get_search_block.
6254
6255 2010-05-31  Keith Seitz  <keiths@redhat.com>
6256
6257         PR symtab/12704
6258         * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
6259         (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
6260         and CP_ANONYMOUS_NAMESPACE_LEN.
6261         (cp_is_anonymous): Likewise.
6262         * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
6263         (CP_ANONYMOUS_NAMESPACE_LEN): Define.
6264         * dwarf2read.c (namespace_name): Likewise.
6265         (fixup_partial_die): Likewise.
6266         * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
6267         seen in the input, keep it.
6268
6269 2011-05-30  Pedro Alves  <pedro@codesourcery.com>
6270
6271         * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
6272         * inf-loop.h (inferior_event_handler_wrapper): Delete.
6273         * inf-loop.c (inferior_event_handler_wrapper): Delete.
6274         (inferior_event_handler): Don't handle INF_QUIT_REQ.
6275         * remote.c (_initialize_remote): Register
6276         async_remote_interrupt_twice directly as
6277         sigint_remote_twice_token event.
6278
6279 2011-05-30  Pedro Alves  <pedro@codesourcery.com>
6280
6281         * target.h (enum inferior_event_type): Delete INF_ERROR.
6282         * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
6283
6284 2011-05-30  Pedro Alves  <pedro@codesourcery.com>
6285
6286         * interps.c (interp_set): Don't cancel continuations.
6287
6288 2011-05-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
6289
6290         * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
6291
6292 2011-05-30  Pedro Alves  <pedro@codesourcery.com>
6293
6294         * continuations.h (continuation_ftype): Add `err' parameter.
6295         Document parameters.
6296         (do_all_continuations, do_all_continuations_thread)
6297         (do_all_intermediate_continuations)
6298         (do_all_intermediate_continuations_thread)
6299         (do_all_inferior_continuations): Add `err' parameter.
6300         * continuations.c (do_my_continuations_1, do_my_continuations)
6301         (do_all_inferior_continuations, do_all_continuations_ptid)
6302         (do_all_continuations_thread_callback)
6303         (do_all_continuations_thread, do_all_continuations)
6304         (do_all_intermediate_continuations_thread_callback)
6305         (do_all_intermediate_continuations_thread)
6306         (do_all_intermediate_continuations): Add `err' parameter, and pass
6307         it down all the way to the continuations proper.
6308         * inf-loop.c (inferior_event_handler): If fetching an inferior
6309         event throws an error, don't pop the target, and still call the
6310         continuations, but with `err' set.  Adjust all other continuation
6311         calls.
6312         * breakpoint.c (until_break_command_continuation): Add `err'
6313         parameter.
6314         * infcmd.c (step_1_continuation): Add `err' parameter.  Don't
6315         issue another step if `err' is set.
6316         (struct until_next_continuation_args): New.
6317         (until_next_continuation): Add `err' parameter.  Adjust.
6318         (until_next_command): Adjust.
6319         (struct finish_command_continuation_args): Add `thread' field.
6320         (finish_command_continuation): Add `err' parameter.  Handle it.
6321         (finish_forward): Adjust.
6322         (attach_command_continuation): Add `err' parameter.  Handle it.
6323         * infrun.c (infrun_thread_stop_requested_callback): Adjust to
6324         cancel the continuations.
6325         * interps.c (interp_set): Adjust to cancel the continuations.
6326         * thread.c (clear_thread_inferior_resources): Adjust to cancel the
6327         continuations rather than discarding.
6328         (free_thread): Don't clear thread inferior resources here.
6329         (delete_thread_1): Do it here instead.  And do it before removing
6330         the thread from the threads list.  Tag the thread as exited before
6331         clearing thread inferior resources.
6332
6333 2011-05-30  Joel Brobecker  <brobecker@adacore.com>
6334
6335         * infcall.c (call_function_by_hand): Rephrase error message.
6336
6337 2011-05-27  Pedro Alves  <pedro@codesourcery.com>
6338
6339         * defs.h (struct thread_info, struct inferior): Delete forward
6340         declarations.
6341         * breakpoint.h (struct thread_info): New forward declaration.
6342         * observer.sh (struct inferior): New forward declaration.
6343         * python/python-internal.h (struct inferior): New forward
6344         declaration.
6345
6346 2011-05-27  Pedro Alves  <pedro@codesourcery.com>
6347
6348         * defs.h (struct continuation, continuation_ftype)
6349         (continuation_free_arg_ftype, add_continuation)
6350         (do_all_continuations, do_all_continuations_thread)
6351         (discard_all_continuations, discard_all_continuations_thread)
6352         (add_intermediate_continuation, do_all_intermediate_continuations)
6353         (do_all_intermediate_continuations_thread)
6354         (discard_all_intermediate_continuations)
6355         (discard_all_intermediate_continuations_thread)
6356         (add_inferior_continuation, do_all_inferior_continuations)
6357         (discard_all_inferior_continuations): Move to ...
6358         * continuations.h: ... this new file.
6359         * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
6360         infcmd.c, inferior.c, infrun.c, interps.c: Include
6361         continuations.h.
6362
6363 2011-05-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
6364             Doug Evans  <dje@google.com>
6365
6366         Fix PR 10970, PR 12702.
6367         * linux-nat.c (linux_lwp_is_zombie): New function.
6368         (wait_lwp): Initialize status.  New variable prev_mask.  Block signals.
6369         Check for linux_lwp_is_zombie.  Use WNOHANG and sigsuspend.
6370
6371 2011-05-27  Pedro Alves  <pedro@codesourcery.com>
6372
6373         * defs.h (continuation_ftype, continuation_free_arg_ftype): New
6374         typedefs.
6375         (add_continuation, add_intermediate_continuation)
6376         (add_inferior_continuation): Use them.
6377         * continuations.c (struct continuation): Use them.
6378         (make_continuation_ftype): Delete.
6379         (make_continuation, add_inferior_continuation, add_continuation)
6380         (add_intermediate_continuation): Use continuation_ftype and
6381         continuation_free_arg_ftype.  Rename parameters to shorter names.
6382
6383 2011-05-27  Pedro Alves  <pedro@codesourcery.com>
6384
6385         * continuations.c (make_continuation): Make it return void.
6386         (do_my_continuations): Rename to ...
6387         (do_my_continuations_1): ... this.  Remove old_chain parameter and
6388         adjust.
6389         (do_my_continuations): New.
6390         (discard_my_continuations): Rename to ...
6391         (discard_my_continuations_1): ... this.  Remove old_chain
6392         parameter and adjust.
6393         (discard_my_continuations): New.
6394         (add_inferior_continuation): Simplify.
6395         (do_all_inferior_continuations): Reimplement on top
6396         do_my_continuations.
6397         (discard_all_inferior_continuations): Simplify.
6398         (add_continuation): Simplify.
6399         (do_all_continuations_ptid): Simplify.
6400         (discard_all_continuations_thread_callback): Simplify.
6401         (add_intermediate_continuation): Simplify.
6402         (discard_all_intermediate_continuations_thread_callback):
6403         Simplify.
6404
6405 2011-05-27  Pedro Alves  <pedro@codesourcery.com>
6406
6407         * utils.c (struct continuation, add_continuation)
6408         (add_inferior_continuation)
6409         (do_all_inferior_continuations, discard_all_inferior_continuations)
6410         (restore_thread_cleanup, do_all_continuations_ptid)
6411         (do_all_continuations_thread_callback)
6412         (do_all_continuations_thread, do_all_continuations)
6413         (discard_all_continuations_thread_callback)
6414         (discard_all_continuations_thread, discard_all_continuations)
6415         (add_intermediate_continuation)
6416         (do_all_intermediate_continuations_thread_callback)
6417         (do_all_intermediate_continuations_thread)
6418         (do_all_intermediate_continuations)
6419         (discard_all_intermediate_continuations_thread_callback)
6420         (discard_all_intermediate_continuations_thread)
6421         (discard_all_intermediate_continuations): Move to ...
6422         * continuations.c: ... this new file, and adjust to no longer
6423         implement continuations on top of cleanups.
6424         * Makefile.in (SFILES): Add continuations.c.
6425         (COMMON_OBS): Add continuations.o.
6426
6427 2011-05-26  Pedro Alves  <pedro@codesourcery.com>
6428
6429         * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
6430         * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
6431         Internal error on invalid values.
6432         * reverse.c: Don't handle EXEC_ERROR.
6433         * mi/mi-main.c: Don't handle EXEC_ERROR.
6434
6435 2011-05-26  Pedro Alves  <pedro@codesourcery.com>
6436
6437         * record.c: Include event-loop.h, inf-loop.h.
6438         (record_beneath_to_async): New global.
6439         (tmp_to_async): New global.
6440         (record_async_inferior_event_token): New global.
6441         (record_open_1): Don't error out if async is enabled.
6442         (record_open): Handle to_async.  Create an async event source in
6443         the event loop.
6444         (record_close): Delete the async event source.
6445         (record_resumed): New global.
6446         (record_execution_dir): New global.
6447         (record_resume, record_core_resume): Set them.  Register the
6448         target on the event loop.
6449         (record_wait): Rename to ...
6450         (record_wait_1): ... this.  Add more debug output.  Handle
6451         TARGET_WNOHANG, and the target beneath returning
6452         TARGET_WAITKIND_IGNORE.
6453         (record_wait): Reimplement on top of record_wait_1.
6454         (record_async_mask_value): New global.
6455         (record_async, record_async_mask, record_can_async_p)
6456         (record_is_async_p, record_execution_direction): New functions.
6457         (init_record_ops, init_record_core_ops): Install new methods.
6458         * infrun.c (fetch_inferior_event): Temporarily switch the global
6459         execution direction to the direction the target was going.
6460         (execution_direction): Change type to int.
6461         * target.c (default_execution_direction): New function.
6462         (update_current_target): Inherit and de_fault
6463         to_execution_direction.
6464         * target.h (struct target_ops) <to_execution_direction>: New
6465         field.
6466         (target_execution_direction): New macro.
6467         * inferior.h (execution_direction): Change type to int.
6468
6469 2011-05-26  Pedro Alves  <pedro@codesourcery.com>
6470
6471         * infcall.c (call_function_by_hand): Don't allow calling functions
6472         in reverse execution mode.
6473
6474 2011-05-26  Pedro Alves  <pedro@codesourcery.com>
6475
6476         * infcmd.c (finish_command): Allow async finish in reverse.
6477
6478 2011-05-26  Yao Qi  <yao@codesourcery.com>
6479
6480         * gdb_thread_db.h: Delete.  Move to ...
6481         * common/gdb_thread_db.h: ... here.
6482
6483 2011-05-26  Pedro Alves  <pedro@codesourcery.com>
6484
6485         * infcmd.c (finish_backward): Set a step-resume breakpoint at the
6486         function's entry point instead of a manually managed momentary
6487         breakpoint, and only ever issue one proceed call.
6488         * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
6489         doing a reverse-finish, switch to stepi mode, to do another step.
6490         (insert_step_resume_breakpoint_at_sal): Make public.
6491         (normal_stop): No need to save function value return registers if
6492         going reverse.
6493         * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
6494
6495 2011-05-26  Pedro Alves  <pedro@codesourcery.com>
6496
6497         * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
6498         (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
6499         before BPSTAT_WHAT_STOP_SILENT.  Add BPSTAT_WHAT_HP_STEP_RESUME
6500         at the end.
6501         * breakpoint.c (update_breakpoints_after_exec): Also delete hp
6502         step-resume breakpoints.
6503         (print_it_typical): Handle bp_hp_step_resume.
6504         (bpstat_what): Ditto.
6505         (bptype_string): Ditto.
6506         (print_one_breakpoint_location): Ditto.
6507         (allocate_bp_location): Ditto.
6508         (mention): Ditto.
6509         (breakpoint_re_set_one): Ditto.
6510         * infrun.c (handle_inferior_event): Adjust.  Split
6511         BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
6512         BPSTAT_WHAT_HP_STEP_RESUME.
6513         (insert_step_resume_breakpoint_at_sal): Rename to ...
6514         (insert_step_resume_breakpoint_at_sal_1): ... this.  Add bptype
6515         parameter.  Handle it.
6516         (insert_step_resume_breakpoint_at_sal): Reimplement on top of
6517         insert_step_resume_breakpoint_at_sal_1.
6518         (insert_step_resume_breakpoint_at_frame): Rename to ...
6519         (insert_hp_step_resume_breakpoint_at_frame): ... this.  Adjust to
6520         set a high-priority step-resume breakpoint.
6521         (insert_step_resume_breakpoint_at_frame): Adjust comment.
6522         (insert_step_resume_breakpoint_at_caller): Ditto.
6523
6524 2011-05-26  Pedro Alves  <pedro@codesourcery.com>
6525
6526         * breakpoint.c (iterate_over_related_breakpoints): New.
6527         (do_map_delete_breakpoint): New.
6528         (delete_command): Pass do_map_delete_breakpoint to
6529         map_breakpoint_numbers.
6530         (do_disable_breakpoint): New.
6531         (do_map_disable_breakpoint): Iterate over the breakpoint's related
6532         breakpoints.
6533         (do_enable_breakpoint): Rename to ...
6534         (enable_breakpoint_disp): ... this.
6535         (enable_breakpoint): Adjust.
6536         (do_enable_breakpoint): New.
6537         (enable_once_breakpoint): Delete.
6538         (do_map_enable_breakpoint): New.
6539         (do_map_enable_once_breakpoint): New.
6540         (enable_once_command, enable_delete_command)
6541         (delete_trace_command): Iterate over the breakpoint's related
6542         breakpoints.
6543
6544 2011-05-26  Pedro Alves  <pedro@codesourcery.com>
6545
6546         * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
6547         for ALPHA_ZERO_REGNUM.
6548         (alpha_supply_int_regs): Explicitly supply zero as the value for
6549         ALPHA_ZERO_REGNUM in the register cache.
6550         * alpha-nat.c (fetch_osf_core_registers): Ditto.
6551
6552 2011-05-26  Yao Qi  <yao@codesourcery.com>
6553
6554         * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
6555
6556 2011-05-26  Tristan Gingold  <gingold@adacore.com>
6557
6558         * symfile.h (struct dwarf2_section_names): New type.
6559         (struct dwarf2_debug_sections): New type.
6560         (dwarf2_has_info): Add parameter.
6561         * dwarf2read.c (dwarf2_elf_names): New variable.
6562         (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
6563         (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
6564         (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
6565         (dwarf2_has_info): Add names parameter.  Pass names
6566         to dwarf2_locate_sections.
6567         (section_is_p): Rewrite using the names parameter.
6568         (dwarf2_locate_sections): Use section names from the names parameter.
6569         * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
6570         * elfread.c (read_psyms): Ditto.
6571         * machoread.c (macho_symfile_read): Ditto.
6572
6573 2011-05-25  Andreas Schwab  <schwab@redhat.com>
6574
6575         PR gdb/8677
6576         * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
6577
6578 2011-05-24  Keith Seitz  <keiths@redhat.com>
6579
6580         PR breakpoint/12803
6581         * linespec.c (keep_name_info): Add handling for "volatile" keyword.
6582         (decode_compound): Unconditionally call keep_name_info.
6583
6584 2011-05-24  Pedro Alves  <pedro@codesourcery.com>
6585
6586         * breakpoint.c (watchpoint_check): If the watchpoint went out of
6587         scope, clear its command list.
6588         (map_breakpoint_numbers): Don't walk the related breakpoints list
6589         of each breakpoint.
6590
6591 2011-05-24  Tom Tromey  <tromey@redhat.com>
6592
6593         * MAINTAINERS: Move Jim Blandy to past maintainers.
6594
6595 2011-05-24  Tristan Gingold  <gingold@adacore.com>
6596
6597         * symfile.h (enum dwarf2_section_enum): New type.
6598         (dwarf2_get_section_info): New prototype.
6599         * dwarf2read.c (dwarf2_get_section_info): Replace parameter
6600         section_name by sect.  Use a switch to select the info.
6601         * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
6602         (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
6603
6604 2011-05-24  Pedro Alves  <pedro@codesourcery.com>
6605
6606         * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
6607         shared library event breakpoint if there's no execution.
6608
6609 2011-05-24  Thiago Jung Bauermann  <bauerman@br.ibm.com>
6610
6611         * breakpont.c (remove_hw_watchpoints): Remove unused function.
6612         * breakpoint.h remove_hw_watchpoints(): Remove prototype.
6613
6614 2011-05-23  Tom Tromey  <tromey@redhat.com>
6615
6616         * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
6617         NULL.
6618
6619 2011-05-23  Doug Evans  <dje@google.com>
6620
6621         * python/lib/gdb/printing.py (register_pretty_printer): Add missing
6622         entry for RuntimeError to doc string.
6623
6624 2011-05-23  Jerome Guitton  <guitton@adacore.com>
6625
6626         * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
6627         sequence for probing loops.
6628
6629 2011-05-23  Pedro Alves  <pedro@codesourcery.com>
6630
6631         * infrun.c (user_visible_resume_ptid): Fix typos in describing
6632         comment.
6633
6634 2011-05-21  Mark Kettenis  <kettenis@gnu.org>
6635
6636         * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
6637         zero as the value for %g0 in the register cache.
6638         * sparc-tdep.c (sparc32_supply_gregset): Likewise.
6639         * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
6640
6641 2011-05-20  Pedro Alves  <pedro@codesourcery.com>
6642
6643         * infrun.c (proceed): Set previous_inferior_ptid here.
6644         (init_wait_for_inferior): Initialize previous_inferior_ptid from
6645         inferior_ptid, not null_ptid.
6646         (wait_for_inferior): Don't initialize previous_inferior_ptid here.
6647         (fetch_inferior_event): Nor here.
6648
6649 2011-05-20  Pedro Alves  <pedro@codesourcery.com>
6650
6651         * inf-loop.c (inferior_event_handler): Only output a message if
6652         verbose.
6653
6654 2011-05-20  Luis Machado  <lgustavo@codesourcery.com>
6655
6656         * MAINTAINERS: Update my e-mail address.
6657
6658 2011-05-20  Pedro Alves  <pedro@codesourcery.com>
6659
6660         * infrun.c (proceed): Switch the inferior event loop to
6661         INF_EXEC_COMPLETE if the target refused to resume from a
6662         vfork/fork.
6663
6664 2011-05-20  Pedro Alves  <pedro@codesourcery.com>
6665
6666         * infcmd.c: Include "inf-loop.h".
6667         (step_once): When stepping into an inline subroutine, pretend the
6668         target has run.  If the target can async, switch the inferior
6669         event loop to INF_EXEC_COMPLETE.
6670         * inferior.h (user_visible_resume_ptid): Declare.
6671         * infrun.c (user_visible_resume_ptid): New function, factored out
6672         from `resume'.
6673         (resume): Use it.
6674         * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
6675         that the current thread is running.  Merge async and sync
6676         branches.
6677
6678 2011-05-20  Pedro Alves  <pedro@codesourcery.com>
6679
6680         * infcmd.c (step_1): Simplify synchronous case.
6681
6682 2011-05-20  Pedro Alves  <pedro@codesourcery.com>
6683
6684         * tracepoint.c: Include exceptions.h.
6685         (TFILE_PID): Move higher in file.
6686         (tfile_open): Delay pushing the tfile target until we're assured
6687         the tfile header is present in the file.  Wrap reading the initial
6688         newline-terminated lines in TRY_CATCH.  Pop the target if the
6689         initial setup failed.  Add the tfile's thread immediately
6690         aftwards, before any non-essential setup.  Don't skip
6691         post_create_inferior if there are no traceframes present in the
6692         file.
6693         (tfile_close): Remove redundant check for null before xfree call.
6694         (tfile_thread_alive): New function.
6695         (init_tfile_ops): Register it as to_thread_alive callback.
6696
6697 2011-05-20  Pedro Alves  <pedro@codesourcery.com>
6698
6699         * tracepoint.c (tfile_open): Delete #if 0'd code.
6700
6701 2011-05-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
6702
6703         Fix -readnow for -gdwarf-4 unused type units.
6704         * dwarf2read.c (struct signatured_type): Remove the field offset.
6705         (create_signatured_type_table_from_index): Remove its initialization.
6706         (create_debug_types_hash_table): Likewise.  Initialize per_cu.offset
6707         instead.  Add a complaint call.
6708         (process_psymtab_comp_unit): Change assignment to gdb_assert.
6709         (process_type_comp_unit, lookup_die_type, dump_die_shallow)
6710         (lookup_signatured_type_at_offset, read_signatured_type)
6711         (write_one_signatured_type): Update the field for per_cu.
6712
6713 2011-05-19  Tom Tromey  <tromey@redhat.com>
6714
6715         * python/py-inferior.c (python_inferior_exit): Use
6716         target_gdbarch.
6717         (python_on_resume): Likewise.
6718
6719 2011-05-19  Matt Rice  <ratmice@gmail.com>
6720
6721         * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
6722
6723 2011-05-19  Hui Zhu  <teawater@gmail.com>
6724
6725         * tracepoint.c (tfile_trace_find): Return directly when num is -1.
6726
6727 2011-05-19  Hui Zhu  <teawater@gmail.com>
6728
6729         * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
6730
6731 2011-05-18  Tom Tromey  <tromey@redhat.com>
6732
6733         * dwarf2read.c (dwarf2_add_field): Constify.
6734         * value.c (value_static_field): Constify.
6735         * gdbtypes.h (struct main_type) <field.field_location.physname>:
6736         Now const.
6737         * ax-gdb.c (gen_static_field): Constify
6738
6739 2011-05-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
6740
6741         * linux-nat.c (kill_callback): Use SIGKILL first.
6742
6743 2011-05-18  Joel Brobecker  <brobecker@adacore.com>
6744
6745         * ada-lang.c (print_it_exception): Avoid use of sprintf.
6746
6747 2011-05-18  Tom Tromey  <tromey@redhat.com>
6748
6749         * value.c (value_fn_field): Constify.
6750         * symtab.c (gdb_mangle_name): Constify.
6751         * stabsread.c (update_method_name_from_physname): Make 'physname'
6752         argument const.
6753         * p-typeprint.c (pascal_type_print_method_args): Make arguments
6754         const.  Use explicit fputc_filtered loop.
6755         (pascal_type_print_base): Constify.
6756         * p-lang.h (pascal_type_print_method_args): Update.
6757         * linespec.c (add_matching_methods): Constify.
6758         (add_constructors): Likewise.
6759         * jv-typeprint.c (java_type_print_base): Constify.
6760         * gdbtypes.h (struct cplus_struct_type)
6761         <fn_fieldlist.fn_field.physname>: Now const.
6762         * dwarf2read.c (compute_delayed_physnames): Constify.
6763         (dwarf2_add_member_fn): Likewise.
6764         * c-typeprint.c (c_type_print_base): Constify.  Use cleanups.
6765
6766 2011-05-18  Pedro Alves  <pedro@codesourcery.com>
6767
6768         * infrun.c (resume): Mention which is the current thread, and its
6769         current PC in debug output.
6770         (prepare_to_proceed): Mention the thread switching in debug
6771         output.
6772
6773 2011-05-18  Tom Tromey  <tromey@redhat.com>
6774
6775         * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
6776         path check.  Use xmalloc and cleanups.
6777         (try_thread_db_load_from_dir): Use xmalloc and cleanups.
6778
6779 2011-05-17  Tom Tromey  <tromey@redhat.com>
6780
6781         * cp-valprint.c (cp_print_value_fields): Catch errors from
6782         value_static_field.
6783
6784 2011-05-17  Tom Tromey  <tromey@redhat.com>
6785
6786         * dwarf2read.c (dwarf2_get_die_type): Call
6787         get_die_type_at_offset.
6788         * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
6789         get_base_type function.
6790
6791 2011-05-17  Tomas Martinec  <fyzmat@gmail.com>
6792
6793         * infrun.c (handle_inferior_event) <handling deferred step>: Clear
6794         trap_expected.
6795
6796 2011-05-16  Doug Evans  <dje@google.com>
6797
6798         * python/py-auto-load.c (source_section_scripts): Mention objfile
6799         name in warning.
6800
6801 2011-05-15  Doug Evans  <dje@google.com>
6802
6803         * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
6804         (try_thread_db_load_from_pdir): Call it.  If unable to find
6805         libthread_db in directory of libpthread, see if we're looking at
6806         the separate-debug-info copy.
6807
6808         * python/py-autoload.c (print_script): Print "Missing" instead of
6809         "No" for missing scripts.
6810         (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
6811
6812 2011-05-13  Doug Evans  <dje@google.com>
6813
6814         * ui-file.c (stdio_file_write_async_safe): Add comment.
6815
6816 2011-05-14  Hui Zhu  <teawater@gmail.com>
6817
6818         * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
6819
6820 2011-05-13  Doug Evans  <dje@google.com>
6821
6822         Support $pdir and $sdir in libthread-db-search-path.
6823         * NEWS: Mention $sdir,$pdir.
6824         * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
6825         * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
6826         (try_thread_db_load_from_sdir): New function.
6827         (try_thread_db_load_from_dir): New function.
6828         (thread_db_load_search): Handle $pdir, $sdir.  Remove trying of
6829         system directories if search of libthread-db-search-path fails,
6830         that is now done via $sdir.
6831         (has_libpthread): New function.
6832         (thread_db_load): Remove search for libthread_db in directory of
6833         libpthread, that is now done via $pdir.
6834
6835         * NEWS: Mention "info auto-load-scripts".
6836         * python/py-auto-load.c (struct auto_load_pspace_info): New member
6837         script_not_found_warning_printed.
6838         (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
6839         all callers updated.  Initialize script_not_found_warning_printed.
6840         (get_auto_load_pspace_data_for_loading): New function.
6841         (maybe_add_script): New function.
6842         (source_section_scripts): Simplify.  Only print one warning regardless
6843         of the number of auto-load scripts not found.
6844         (clear_section_scripts): Clear script_not_found_warning_printed.
6845         (auto_load_objfile_script): Record script in hash table.
6846         (count_matching_scripts): New function.
6847         (maybe_print_script): Renamed from maybe_print_section_script, all
6848         callers updated.  Rewrite to use ui_out_*.
6849         (info_auto_load_scripts): Renamed from
6850         maintenance_print_section_scripts, all callers updated.
6851         (gdbpy_initialize_auto_load): "maintenance print section-scripts"
6852         renamed as "info auto-load-scripts".
6853
6854 2011-05-13  Tom Tromey  <tromey@redhat.com>
6855
6856         * dwarf2expr.c (read_uleb128): Cast intermediate result.
6857         (read_sleb128): Likewise.
6858
6859 2011-05-13  Tom Tromey  <tromey@redhat.com>
6860
6861         * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
6862         offset display.
6863
6864 2011-05-13  Doug Evans  <dje@google.com>
6865
6866         * linux-nat.c (debug_linux_nat_async): Delete.
6867         Replace all references to use debug_linux_nat instead.
6868         (show_debug_linux_nat_async): Delete.
6869         (sigchld_handler): Call ui_file_write_async_safe instead of
6870         fprintf_unfiltered.
6871         (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
6872         * ui-file.c (struct ui_file): New member to_write_async_safe.
6873         (null_file_write_async_safe): New function.
6874         (ui_file_write_async_safe): New function.
6875         (set_ui_file_write_async_safe): New function.
6876         (ui_file_new): Initialize to_write_async_safe.
6877         (stdio_file_write_async_safe): New function.
6878         (struct stdio_file): New member fd.
6879         (stdio_file_new): Initialize to_write_async_safe, fd.
6880         (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
6881         fileno.
6882         * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
6883         (set_ui_file_write_async_safe): Declare.
6884         (ui_file_write_async_safe): Declare.
6885
6886 2011-05-13  Tom Tromey  <tromey@redhat.com>
6887
6888         * utils.c (do_value_free): New function.
6889         (make_cleanup_value_free): Likewise.
6890         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
6891         freeing correctly.
6892         (dwarf2_loc_desc_needs_frame): Call
6893         make_cleanup_value_free_to_mark.
6894         * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
6895         * dwarf2expr.c (free_dwarf_expr_context): Don't call
6896         value_free_to_mark.
6897         (new_dwarf_expr_context): Don't call value_mark.
6898         * dwarf2-frame.c (execute_stack_op): Call
6899         make_cleanup_value_free_to_mark.
6900         * defs.h (make_cleanup_value_free): Declare.
6901
6902 2011-05-13  Thiago Jung Bauermann  <bauerman@br.ibm.com>
6903
6904         * mi/mi-main.c (mi_cmd_execute): Use cleanup from
6905         prepare_execute_command.
6906         * top.c (prepare_execute_command): Return cleanup.
6907         (execute_command): Use cleanup from prepare_execute_command.
6908         * top.h (prepare_execute_command): Change prototype to return
6909         cleanup.
6910         * defs.h (struct value): Add opaque declaration.
6911         (make_cleanup_value_free_to_mark): Add prototype.
6912         * utils.c (do_value_free_to_mark): New function.
6913         (make_cleanup_value_free_to_mark): Likewise.
6914
6915 2011-05-12  Tom Tromey  <tromey@redhat.com>
6916
6917         * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
6918         cast left-hand-side to unsigned.
6919
6920 2011-05-12  Tom Tromey  <tromey@redhat.com>
6921
6922         PR gdb/12617:
6923         * value.h (value_from_contents): Declare.
6924         * value.c (value_from_contents): New function.
6925         * dwarf2read.c (dwarf_stack_op_name): Add new values.
6926         (dwarf2_get_die_type): New function.
6927         * dwarf2loc.c (dwarf_expr_get_base_type): New function.
6928         (allocate_piece_closure): Acquire reference to values.
6929         (read_pieced_value): Update for value-based expressions.
6930         (write_pieced_value): Likewise.
6931         (free_pieced_value_closure): Call value_free as needed.
6932         (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
6933         Update for value-based expressions.
6934         * dwarf2loc.h (dwarf2_get_die_type): Declare.
6935         * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
6936         <get_base_type>: New field.
6937         (struct dwarf_expr_piece) <v.value>: Change type.
6938         <v.regno>: New field.
6939         (struct dwarf_expr_context) <mark>: New field.
6940         (dwarf_expr_piece, dwarf_expr_fetch): Update.
6941         (dwarf_expr_pop, dwarf_expr_push): Remove.
6942         (dwarf_expr_push_address): Declare.
6943         * dwarf2expr.c (dwarf_arch_cookie): New global.
6944         (struct dwarf_gdbarch_types): New.
6945         (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
6946         functions.
6947         (dwarf_expr_push): Change type of 'value' argument.  Update.  Now
6948         static.
6949         (dwarf_expr_push_address): New function.
6950         (dwarf_expr_pop): Now static.
6951         (dwarf_expr_fetch): Change return type.
6952         (dwarf_require_integral): New function.
6953         (dwarf_expr_fetch): Simplify.
6954         (add_piece): Update.
6955         (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
6956         functions.
6957         (execute_stack_op) <sign_ext>: Remove.
6958         Use values for DWARF stack.
6959         <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
6960         DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
6961         New cases.
6962         (_initialize_dwarf2expr): New function.
6963         (add_piece): Update.
6964         (new_dwarf_expr_context): Set new field.
6965         (free_dwarf_expr_context): Call value_free_to_mark.
6966         * dwarf2-frame.c (no_base_type): New function.
6967         (execute_stack_op): Set get_base_type field.  Update.
6968
6969 2011-05-12  Tom Tromey  <tromey@redhat.com>
6970
6971         * dwarf2read.c (read_common_block): Fix formatting.
6972
6973 2011-05-12  Kwok Cheung Yeung  <kcy@codesourcery.com>
6974
6975         * breakpoint.c (disable_breakpoint): Disable all locations
6976         associated with a tracepoint on target if a trace experiment is
6977         running.
6978         (disable_command): Disable a specific tracepoint location on target if
6979         a trace experiment is running.
6980         (do_enable_breakpoint): Enable all locations associated with a
6981         tracepoint on target if a trace experiment is running.
6982         (enable_command) Enable a specific tracepoint location on target if a
6983         trace experiment is running.
6984         * target.c (update_current_target): Add INHERIT and de_fault clauses for
6985         to_supports_enable_disable_tracepoint, to_enable_tracepoint and
6986         to_disable_tracepoint.
6987         * target.h: Add declaration of struct bp_location.
6988         (struct target_ops): Add new functions
6989         to_supports_enable_disable_tracepoint, to_enable_tracepoint and
6990         to_disable_tracepoint to target operations.
6991         (target_supports_enable_disable_tracepoint): New macro.
6992         (target_enable_tracepoint): New macro.
6993         (target_disable_tracepoint): New macro.
6994         * remote.c (struct remote_state): Add new field.
6995         (remote_enable_disable_tracepoint_feature): New.
6996         (remote_protocol_features): Add new entry.
6997         (remote_supports_enable_disable_tracepoint): New.
6998         (remote_enable_tracepoint): New.
6999         (remote_disable_tracepoint): New.
7000         (init_remote_ops): Add remote_enable_tracepoint,
7001         remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
7002         to remote operations.
7003         * tracepoint.c (start_tracing): Allow tracing to start without any
7004         tracepoints enabled with just a warning if they can be re-enabled
7005         later.
7006         * NEWS: Add news item for the new behaviour of the enable and disable
7007         GDB commands when applied to tracepoints.
7008         Add news items for the new remote packets QTEnable and QTDisable.
7009
7010 2011-05-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
7011
7012         * config.in: Regenerate.
7013         * configure: Regenerate.
7014         * configure.ac <--with-system-readline> (for readline_echoing_p):
7015         Remove the test.
7016         * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
7017         (tui_old_rl_echoing_p): ... here.
7018         (tui_setup_io): Rename extern declaration readline_echoing_p to
7019         _rl_echoing_p.  Adjust assignments for the both renames.
7020
7021 2011-05-11  Thiago Jung Bauermann  <bauerman@br.ibm.com>
7022
7023         * symtab.c (lookup_symtab): Run cleanup before returning.
7024
7025 2011-05-11  Tom Tromey  <tromey@redhat.com>
7026
7027         * dwarf2read.c (handle_data_member_location): New function.
7028         (dwarf2_add_field): Use it.
7029         (read_common_block): Likewise.
7030
7031 2011-05-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
7032
7033         Make addrs->SECTINDEX always defined.
7034         * symfile.c (relative_addr_info_to_section_offsets): Check for
7035         SECTINDEX -1, not for zero ADDR.
7036         (addrs_section_compar): Remove checking for invalid SECTINDEX.
7037         (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
7038         * symfile.h (struct section_addr_info) <sectindex>: Update the comment
7039         on its validity.
7040
7041 2011-05-10  Doug Evans  <dje@google.com>
7042
7043         * linux-thread-db.c: Whitespace cleanup.
7044         (try_thread_db_load_1): Fix comment.
7045
7046         * linux-thread-db.c (set_libthread_db_search_path): New function.
7047         (_initialize_thread_db): Add setter for libthread-db-search-path.
7048
7049 2011-05-09  Doug Evans  <dje@google.com>
7050
7051         * NEWS: Mention --with-iconv-bin.
7052         * configure.ac: New option --with-iconv-bin.
7053         * configure: Regenerate.
7054         * config.in: Regenerate.
7055         * defs.h (relocate_gdb_directory): Declare.
7056         * main.c (relocate_gdb_directory): Renamed from relocate_directory,
7057         removed progname parameter, and exported.  All callers updated.
7058         * charset.c (find_charset_names): Use --with-iconv-bin if specified.
7059
7060         * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
7061         adding missing call to restore_child_signals_mask.
7062
7063 2011-05-09  Pedro Alves  <pedro@codesourcery.com>
7064
7065         * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
7066         parameter.
7067         * infrun.c (proceed, start_remote): Adjust.
7068         (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
7069         and adjust to not handle it.
7070         * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
7071         * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
7072         * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
7073         * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
7074         * windows-nat.c (do_initial_windows_stuff): Adjust.
7075         * infcmd.c (attach_command): Adjust.
7076         (notice_new_inferior): Adjust.
7077
7078 2011-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
7079
7080         * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
7081         (ppu2spu_unwind_register): Mark pseudo registers unavailable.
7082         * spu-tdep.c (op_selb): Use correct value.
7083
7084 2011-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
7085
7086         * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
7087         "parent" parameter to symbol_file_add_from_bfd call.
7088
7089 2011-05-06  Sergio Durigan Junior  <sergiodj@linux.vnet.ibm.com>
7090             Thiago Jung Bauermann  <bauerman@br.ibm.com>
7091
7092         Implement support for PowerPC BookE masked watchpoints.
7093         * NEWS: Mention masked watchpoint support.  Create "Changed commands"
7094         section.
7095         * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
7096         method.  Initialize to NULL in all existing breakpoint_ops instances.
7097         (struct breakpoint) <hw_wp_mask>: New field.
7098         * breakpoint.c (is_masked_watchpoint): Add prototype.
7099         (update_watchpoint): Don't set b->val for masked watchpoints.  Call
7100         breakpoint's breakpoint_ops.works_in_software_mode if available.
7101         (watchpoints_triggered): Handle the case of a hardware masked
7102         watchpoint trigger.
7103         (watchpoint_check): Likewise.
7104         (works_in_software_mode_watchpoint): New function.
7105         (insert_masked_watchpoint, remove_masked_watchpoint)
7106         (resources_needed_masked_watchpoint)
7107         (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
7108         (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
7109         (print_recreate_masked_watchpoint, is_masked_watchpoint): New
7110         functions.
7111         (masked_watchpoint_breakpoint_ops): New structure.
7112         (watch_command_1): Check for the existence of the `mask' parameter.
7113         Set b->ops according to the type of hardware watchpoint being created.
7114         * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
7115         (ppc_linux_remove_mask_watchpoint)
7116         (ppc_linux_masked_watch_num_registers): New functions.
7117         (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
7118         to_remove_mask_watchpoint and to_masked_watch_num_registers.
7119         * target.c (update_current_target): Mention to_insert_mask_watchpoint,
7120         to_remove_mask_watchpoint, and to_masked_watch_num_registers.
7121         (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
7122         (target_masked_watch_num_registers): New functions.
7123         * target.h (struct target_ops) <to_insert_mask_watchpoint>,
7124         <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
7125         methods.
7126         (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
7127         (target_masked_watch_num_registers): Add prototypes.
7128
7129 2011-05-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
7130
7131         PR 12573
7132         * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
7133         (producer_is_gcc_ge_4_0): New function.
7134         (process_full_comp_unit): Set also symtab->locations_valid.  Move the
7135         symtab->language code.
7136         (var_decode_location): Set cu->has_loclist.
7137         * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
7138         skip.  Intialize force_skip from locations_valid.  Move the prologue
7139         skipping code into two passes.
7140         * symtab.h (struct symtab): Make the primary field a bitfield.  New
7141         field locations_valid.
7142
7143 2011-05-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
7144
7145         * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
7146         (classify_inner_name): Call cp_lookup_nested_type with
7147         yylval.tsym.type.
7148         * cp-namespace.c (cp_lookup_nested_type): New variable
7149         saved_parent_type.  Call CHECK_TYPEDEF for parent_type.  Call
7150         type_name_no_tag_or_error with saved_parent_type.
7151         * dwarf2read.c (load_partial_dies): Read in any children of
7152         DW_TAG_typedef with complaint in such case.
7153         * gdbtypes.c (type_name_no_tag_or_error): New function.
7154         * gdbtypes.h (type_name_no_tag_or_error): New prototype.
7155         * valops.c (destructor_name_p): New comment for parameter type.  Remove
7156         type const.  Make dname and cp const.  Call type_name_no_tag_or_error.
7157         * value.h (destructor_name_p): Remove type const.
7158
7159 2011-05-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
7160
7161         * symtab.c (compare_symbol_name): New function.
7162         (completion_list_add_name, expand_partial_symbol_name): Call it,
7163         remove the variable ncmp.
7164         (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
7165         gdb_assert it.
7166
7167 2011-05-05  Thiago Jung Bauermann  <bauerman@br.ibm.com>
7168
7169         Demote to sw watchpoint only in update_watchpoint.
7170         * breakpoint.c (update_watchpoint): Change between software and
7171         hardware watchpoint for all kinds of watchpoints, not just
7172         read/write ones.  Determine b->exact value here instead of
7173         in watch_command_1.  Error out if there are not enough resources
7174         for a read or access hardware watchpoint.
7175         (watch_command_1): Remove logic of checking whether there are
7176         enough resources available, since update_watchpoint will do that
7177         work now.  Don't set b->exact here.  Catch exceptions thrown by
7178         update_watchpoint and delete the watchpoint.
7179         (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
7180         Use target_exact_watchpoints instead.
7181         (delete_breakpoint): Notify observers only if deleted watchpoint
7182         has a breakpoint number assigned to it.
7183
7184 2011-05-05  Janis Johnson  <janisjo@codesourcery.com>
7185
7186         * MAINTAINERS: Add myself as a write-after-approval maintainer.
7187
7188 2011-05-05  Jerome Guitton  <guitton@adacore.com>
7189
7190         * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
7191         New functions.
7192         (i386_stack_tramp_frame_unwind): New static global.
7193         (i386_match_pattern): New function, extracted from i386_match_insn.
7194         (i386_match_insn): Use i386_match_pattern.
7195         (i386_match_insn_block): New function.
7196         (i386_tramp_chain_in_reg_insns)
7197         (i386_tramp_chain_on_stack_insns): New static variables.
7198         (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
7199         of unwinders.
7200
7201 2011-05-04  Joseph Myers  <joseph@codesourcery.com>
7202
7203         * configure.host (xscale*): Don't handle target.
7204         * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
7205         handle targets.
7206
7207 2011-05-04  Yao Qi  <yao@codesourcery.com>
7208
7209         * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
7210
7211 2011-05-03  Joel Brobecker <brobecker@adacore.com>
7212
7213         Revert:
7214         | 2011-03-07  Michael Snyder  <msnyder@vmware.com>
7215         | * elfread.c (elf_symtab_read): Stop memory leak.
7216
7217 2011-05-03  Pierre Muller  <muller@ics.u-strasbg.fr>
7218
7219         * nto-tdep.c (nto_target): Replace deprecated call to
7220         cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
7221
7222 2011-05-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
7223
7224         Fix false GCC warning.
7225         * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
7226
7227 2011-05-03  Thiago Jung Bauermann  <bauerman@br.ibm.com>
7228
7229         * breakpoint.c (update_watchpoint): Move code to change
7230         the enable state of breakpoint from here ...
7231         (do_enable_breakpoint): ... to here.
7232
7233 2011-04-26  Andrew Gontarek  <andrewg@cray.com>
7234
7235         * valprint.c (val_print_array_elements): Fixed poor performance
7236         of printing very large arrays with repeat_count_threshold set
7237         to unlimited.  New comment.
7238
7239 2011-04-29  Tom Tromey  <tromey@redhat.com>
7240
7241         * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
7242         (mi_parse): Likewise.
7243         * breakpoint.c (break_range_command): Use sizeof char*, not
7244         char**.
7245         (create_breakpoint): Likewise.
7246         (parse_breakpoint_sals): Likewise.
7247
7248 2011-04-29  Pedro Alves  <pedro@codesourcery.com>
7249
7250         * linux-nat.c (linux_child_remove_fork_catchpoint)
7251         (linux_child_remove_vfork_catchpoint)
7252         (linux_child_remove_exec_catchpoint): New functions.
7253         (linux_target_install_ops): Install them.
7254
7255 2011-04-29  Phil Muldoon  <pmuldoon@redhat.com>
7256
7257         PR mi/12531
7258
7259         * varobj.c (install_default_visualizer): Do not install a
7260         visualizer if the varobj is CPLUS_FAKE_CHILD.
7261         (construct_visualizer): Likewise.
7262
7263 2011-04-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
7264
7265         * symtab.c (expand_partial_symbol_name): New variable NCMP.  Support
7266         case insensitive comparison.
7267
7268 2011-04-28  Ulrich Weigand  <ulrich.weigand@linaro.org>
7269
7270         * infrun.c (proceed): Revert previous change.
7271         (resume): Instead, handle the case of signal delivery while stepping
7272         off a breakpoint location here, and only if software single-stepping
7273         is used.  Handle nested signals.
7274
7275 2011-04-28  Yao Qi  <yao@codesourcery.com>
7276
7277         * arm-tdep.c (copy_unmodified): Rename to ...
7278         (arm_copy_unmodified): .. this.  New.
7279         (copy_preload): Move common part to ...
7280         (install_preload): .. this.  New.
7281         (arm_copy_preload): New.
7282         (copy_preload_reg): Move common part to ...
7283         (install_preload_reg): ... this.  New.
7284         (arm_copy_preload_reg): New.
7285         (copy_b_bl_blx): Move common part to ...
7286         (install_b_bl_blx): .. this.  New.
7287         (arm_copy_b_bl_blx): New.
7288         (copy_bx_blx_reg): Move common part to ...
7289         (install_bx_blx_reg): ... this. New.
7290         (arm_copy_bx_blx_reg): New.
7291         (copy_alu_reg): Move common part to ...
7292         (install_alu_reg): ... this.  New.
7293         (arm_copy_alu_reg): New.
7294         (copy_alu_shifted_reg): Move common part to ...
7295         (install_alu_shifted_reg): ... this.  New.
7296         (copy_ldr_str_ldrb_strb): Move common part to ...
7297         (install_ldr_str_ldrb_strb): ... this.  New.
7298         (arm_copy_ldr_str_ldrb_strb): New.
7299         (copy_copro_load_store): Move some common part to ...
7300         (install_copy_copro_load_store): ... this.  New.
7301         (arm_copy_copro_load_store): New.
7302         (copy_svc): Delete.
7303         (arm_copy_svc): Renamed from copy_svc.
7304         (copy_undef): Delete.
7305         (arm_copy_undef): Renamed from copy_undef.
7306         (decode_ext_reg_ld_st): Delete.
7307         (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
7308         (decode_svc_copro): Delete.
7309         (arm_decode_svc_copro): Renamed from decode_svc_copro.
7310         (copy_copro_load_store, copy_alu_imm): update callers.
7311         (copy_extra_ld_st, copy_block_xfer): Likewise.
7312         (decode_misc_memhint_neon, decode_unconditional): Likewise.
7313         (decode_miscellaneous, decode_dp_misc): Likewise.
7314         (decode_ld_st_word_ubyte, decode_media): Likewise.
7315         (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
7316         (decode_svc_copro, decode_misc_memhint_neon): Likewise.
7317         (decode_unconditional, decode_miscellaneous): Likewise.
7318         (decode_media, decode_b_bl_ldmstm): Likewise.
7319         (arm_process_displaced_insn): Likewise..
7320         (decode_misc_memhint_neon): Delete.
7321         (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
7322         (decode_miscellaneous): Delete.
7323         (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
7324         (decode_dp_misc): Delete.
7325         (arm_decode_dp_misc): Renamed from decode_dp_misc.
7326         (decode_ld_st_word_ubyte): Delete.
7327         (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
7328         (decode_media): Delete.
7329         (arm_decode_media): Renamed from decode_media.
7330         (decode_b_bl_ldmstm): Delete.
7331         (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
7332         (decode_ext_reg_ld_st): Delete.
7333         (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
7334         (decode_unconditional): Delete.
7335         (arm_decode_unconditional): Renamed from decode_unconditional.
7336
7337 2011-04-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
7338
7339         Case insensitive lookups implementation.
7340         * dwarf2read.c: Include ctype.h.
7341         (struct mapped_index): New field version.
7342         (mapped_index_string_hash): New parameter index_version.  New comment
7343         for it.  Call tolower appropriately.
7344         (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
7345         Choose the right index version for mapped_index_string_hash.
7346         (dwarf2_read_index): Support also the index version 5.  Initialize the
7347         new struct mapped_index field version.
7348         (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
7349         (find_slot): Explain the version needs.  Pass INT_MAX for the new
7350         parameter.
7351         (write_psymtabs_to_index): Produce version 5.
7352         * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
7353         use it.  New comment for SYMBOL_MATCHES_SEARCH_NAME.
7354         * psymtab.c (lookup_partial_symbol): Find the
7355         SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
7356         entries.
7357         * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
7358         NAME lowercasing.
7359         (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
7360         (completion_list_add_name): New variable ncmp, initialize it, use it.
7361         * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
7362         * utils.c (strcmp_iw): Support case_sensitive_off.
7363         (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
7364         New function comment part.  New variables saved_string1,
7365         saved_string2 and case_pass.  Add a proper second pass.
7366
7367 2011-04-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
7368
7369         Replace re_comp/re_exec by regcomp/regexec.
7370         * symtab.c (struct search_symbols_data): New fields preg, preg_p.
7371         (search_symbols_name_matches): Use them, use regexec.
7372         (search_symbols): New variable retval_chain, adjust the use of
7373         old_chain against it.  Replace re_comp by regcomp.  Use the new struct
7374         search_symbols_data fields, use regexec instead of re_exec.
7375
7376 2011-04-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
7377
7378         Format the code for the next patch.
7379         * dwarf2read.c (struct mapped_index): Include delimiting newlines.
7380         * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
7381         New variables c1 and c2.
7382
7383 2011-04-27  Ulrich Weigand  <ulrich.weigand@linaro.org>
7384
7385         * infrun.c (proceed): Do not single-step into signal delivery
7386         when stepping off a breakpoint location.
7387         (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
7388         (insert_step_resume_breakpoint_at_caller): Likewise.
7389         (insert_step_resume_breakpoint_at_sal): Likewise.
7390         (insert_longjmp_resume_breakpoint): Likewise.
7391
7392 2011-04-27  Yao Qi  <yao@codesourcery.com>
7393
7394         * common/linux-ptrace.h: Remove include <sys/wait.h>.
7395
7396 2011-04-27  Joel Brobecker  <brobecker@adacore.com>
7397
7398         * procfs.c (procfs_pass_signals): Fix advance declaration.
7399
7400 2011-04-27  Ulrich Weigand  <ulrich.weigand@linaro.org>
7401
7402         * target.h (struct target_ops): Remove to_notice_signals;
7403         add to_pass_signals.
7404         (target_notice_signals): Remove.
7405         (target_pass_signals): Add prototype.
7406         * target.c (update_current_target): Remove to_notice_signals;
7407         mention to_pass_signals.
7408         (target_pass_signals): New function.
7409         (debug_to_notice_signals): Remove.
7410         (setup_target_debug): Do not install debug_to_notice_signals.
7411
7412         * infrun.c (signal_pass): New global.
7413         (resume): Call target_pass_signals.
7414         (handle_inferior_event): Report all signals while stepping over
7415         non-steppable watchpoint.  Reset trap_expected to ensure breakpoints
7416         are re-inserted when stepping over a signal handler.
7417         (signal_cache_update): New function.
7418         (signal_stop_update): Call it.
7419         (signal_print_update): Likewise.
7420         (signal_pass_update): Likewise.
7421         (handle_command): Call signal_cache_update and target_pass_signals
7422         instead of target_notice_signals.
7423         (_initialize_infrun): Initialize signal_pass.
7424
7425         * linux-nat.c (pass_mask): New global.
7426         (linux_nat_pass_signals): New function.
7427         (linux_nat_create_inferior): Report all signals initially.
7428         (linux_nat_attach): Likewise.
7429         (linux_nat_resume): Use pass_mask to decide whether to directly
7430         handle an inferior signal.
7431         (linux_nat_wait_1): Likewise.
7432         (linux_nat_add_target): Install to_pass_signals callback.
7433
7434         * nto-procfs.c (notice_signals): Remove.
7435         (procfs_resume): Do not call notice_signals.
7436         (procfs_notice_signals): Remove.
7437         (procfs_pass_signals): New function.
7438         (init_procfs_ops): Install to_pass_signals callback instead of
7439         to_notice_signals callback.
7440         (_initialize_procfs): Report all signals initially.
7441
7442         * procfs.c (procfs_notice_signals): Remove.
7443         (procfs_pass_signals): New function.
7444         (procfs_target): Install to_pass_signals callback instead of
7445         to_notice_signals callback.
7446         (register_gdb_signals): Remove.
7447         (procfs_debug_inferior): Report all signals initially.
7448         (procfs_init_inferior): Remove redundant register_gdb_signals call.
7449
7450         * remote.c (remote_pass_signals): Add numsigs and pass_signals
7451         parameters; use them instead of calling signal_..._state routines.
7452         (remote_notice_signals): Remove.
7453         (remote_start_remote): Report all signals initially.
7454         (remote_resume): Do not call remote_pass_signals.
7455         (_initialize_remote): Install to_pass_signals callback instead of
7456         to_notice_signals callback.
7457
7458 2011-04-27  Pedro Alves  <pedro@codesourcery.com>
7459
7460         * breakpoint.c (user_settable_breakpoint): Delete.
7461         (user_breakpoint_p): Remove check on user_settable_breakpoint.
7462         (delete_command): Check user_breakpoint_p instead of looking at
7463         the breakpoint's type.
7464         (disable_command): Ditto.
7465         (enable_command): Ditto.
7466         (delete_trace_command): Use user_breakpoint_p instead of looking
7467         at the breakpoint number directly.  When checking if there are
7468         user visible tracepoints, in order to know whether to ask the user
7469         for confirmation, check whether the breakpoint is actually a
7470         tracepoint.
7471
7472 2011-04-27  Vladimir Prus  <vladimir@codesourcery.com>
7473
7474         * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
7475         compilation.
7476
7477 2011-04-27  Vladimir Prus  <vladimir@codesourcery.com>
7478
7479         MI breakpoint notifications.
7480
7481         * annotate.c (breakpoint_changed): Adjust parameter type.
7482         * breakpoint.c (set_breakpoint_condition): Adjust to change
7483         in breakpoint_modified type.
7484         (breakpoint_set_commands): Likewise.
7485         (do_map_commands_command): Likewise.
7486         (bpstat_check_breakpoint_conditions): Notify that breakpoint has
7487         changed after bumping hit count.
7488         (bpstat_stop_status): Likewise.
7489         (print_one_breakpoint_location): Don't wrap in tuple here.
7490         (print_one_breakpoint): Always print individual locations.
7491         For locations, use unnamed tuple.
7492         (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
7493         has changed.
7494         (create_catchpoint, create_syscall_event_catchpoint): Call
7495         breakpoint_created obsever.
7496         (mention): Don't call breakpoint_created observer.
7497         (create_breakpoint_sal): Call breakpoint_created observer.
7498         (create_breakpoint, watch_command_1): Likewise.
7499         (create_ada_exception_breakpoint): Likewise.
7500         (delete_breakpoint): Call breakpoint_deleted breakpoint.
7501         (locations_are_equal): New.
7502         (update_breakpoint_locations): If locations were changed, notify.
7503         (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
7504         Call breakpoint_modified observer.
7505
7506         * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
7507         (mi_cmd_break_insert): Don't set observers for modify and delete.
7508         * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
7509         (mi_breakpoint_created, mi_breakpoint_deleted)
7510         (mi_breakpoint_modified): New.
7511         (mi_interpreter_init): Hook the above.
7512         * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
7513         while -break-* commands are executing.
7514         * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
7515         * mi/mi-out.c (struct ui_out_data): New field original_buffer.
7516         (mi_redirect): New.
7517         (mi_ui_out_impl): Hook in mi_redirect.
7518         (mi_field_skip): True to the name, skip the field, don't output
7519         a field with an empty value.
7520
7521         * python/py-breakpoint.c (gdbpy_breakpoint_created)
7522         (gdbpy_breakpoint_deleted): Adjust.
7523         * tui/tui-hooks.c (tui_event_create_breakpoint)
7524         (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
7525
7526 2011-04-26  Aleksandar Ristovski  <aristovski@qnx.com>
7527
7528         * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
7529         (procfs_remove_hw_watchpoint): Likewise.
7530
7531 2011-04-26  Michael Walle  <michael@walle.cc>
7532
7533         * remote.c (remote_start_remote): Ack packet after sending the
7534         interrupt sequence.
7535
7536 2011-04-26  Yao Qi  <yao@codesourcery.com>
7537
7538         * linux-nat.c: Move common macros to ...
7539         Include linux-ptrace.h.
7540         * common/linux-ptrace.h: ... here.  New.
7541
7542 2011-04-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
7543
7544         * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
7545         !objfile_has_partial_symbols.  New comment.
7546         * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
7547         SYM_READ_PSYMBOLS is not present. Extend the comment.
7548         * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
7549
7550 2011-04-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
7551
7552         * defs.h (ENUM_BITFIELD): Remove.
7553
7554 2011-04-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
7555             Eli Zaretskii  <eliz@gnu.org>
7556
7557         * NEWS: Document the new gdbserver --once option.
7558
7559 2011-04-21  Jie Zhang  <jzhang918@gmail.com>
7560
7561         * MAINTAINERS: Update my email address.
7562
7563 2011-04-21  Pierre Muller  <muller@ics.u-strasbg.fr>
7564
7565         * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
7566         (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
7567         function call if __STDC_ISO_10646__ macro is defined.
7568         (intermediate_encoding): New prototype.
7569         * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
7570         to generate compile time error for unsupported gdb_wchar_t size.
7571         (ENDIAN_SUFFIX): New macro.
7572         (intermediate_encoding): New function.
7573
7574 2011-04-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
7575
7576         * ada-lang.c (struct add_partial_datum): Update the comment for
7577         expand_partial_symbol_name.
7578         (ada_add_partial_symbol_completions): Rename to ...
7579         (ada_expand_partial_symbol_name): ... here, change return type, update
7580         function comment, call symbol_completion_match instead of
7581         symbol_completion_add.
7582         (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
7583         and ada_expand_partial_symbol_name.
7584         * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
7585         FILE_MATCHER.
7586         (dw2_map_symbol_names): Remove.
7587         (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
7588         * psymtab.c (map_symbol_names_psymtab): Remove.
7589         (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
7590         Support KIND == ALL_DOMAIN.  Exchange the NAME_MATCHER and KIND check
7591         order.
7592         (psym_functions): Unlist map_symbol_names_psymtab.
7593         (map_partial_symbol_names): Rename to ...
7594         (expand_partial_symbol_names): ... here, change the FUN type, call
7595         expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
7596         * psymtab.h (map_partial_symbol_names): Rename to ...
7597         (expand_partial_symbol_names): ... here, change the FUN type.
7598         * symfile.h (struct quick_symbol_functions): Update the description of
7599         expand_symtabs_matching.  Remove map_symbol_names.
7600         * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
7601         (struct add_name_data): Update the comment for
7602         expand_partial_symbol_name.
7603         (add_partial_symbol_name): Rename to ...
7604         (expand_partial_symbol_name): ... here.  Replace
7605         completion_list_add_name call by strncmp.
7606         (default_make_symbol_completion_list_break_on): Use now
7607         expand_partial_symbol_names and expand_partial_symbol_name.
7608         * symtab.h (enum search_domain): New element ALL_DOMAIN.
7609
7610 2011-04-20  Tom Tromey  <tromey@redhat.com>
7611
7612         * dwarf2read.c (save_gdb_index_command): Replace format
7613         documentation with a pointer to the manual.
7614
7615 2011-04-20  Pedro Alves  <pedro@codesourcery.com>
7616
7617         * regcache.c: Include remote.h.
7618         (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
7619         (regcache_dump): Handle regcache_dump_remote.
7620         (maintenance_print_remote_registers): New function.
7621         (_initialize_regcache): Install "maint print remote-registers"
7622         command.
7623         * remote.c (map_regcache_remote_table): New function, factored out
7624         from ...
7625         (init_remote_state): ... here.
7626         (remote_register_number_and_offset): New.
7627         * remote.h (remote_register_number_and_offset): Declare.
7628
7629 2011-04-20  Pedro Alves  <pedro@codesourcery.com>
7630
7631         * regcache.c (get_thread_arch_regcache): If creating a regcache for
7632         null_ptid, assume and allow a NULL address space, instead of
7633         asking the target for the ptid's address space.
7634         * infrun.c (ptid_is_pid): Remove assertion.
7635
7636 2011-04-19  Tom Tromey  <tromey@redhat.com>
7637
7638         * windows-tdep.c (windows_xfer_shared_library):
7639         * windows-nat.c (get_module_name, windows_make_so):
7640         * v850-tdep.c (v850_handle_pushm):
7641         * utils.c (null_cleanup, gdb_realpath):
7642         * ui-out.c (get_next_header):
7643         * tracepoint.c (clear_traceframe_info):
7644         * symtab.c (lookup_symtab):
7645         * serial.h (struct serial_ops):
7646         * mipsread.c (read_alphacoff_dynamic_symtab):
7647         * infcmd.c (print_return_value):
7648         * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
7649         * f-exp.y (parse_number):
7650         * exceptions.c (catch_exceptions):
7651         * dummy-frame.c (dummy_frame_this_id):
7652         * defs.h (struct cleanup):
7653         * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
7654         * arm-tdep.c (arm_push_dummy_call):
7655         * amd64-tdep.h (amd64_collect_xsave):
7656         * amd64-tdep.c (amd64_collect_xsave):
7657         * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
7658         * README (typing): Remove duplicate words.
7659         * cli/cli-decode.c (lookup_cmd_composition): Add comma.
7660         * infrun.c (siginfo_value_read): Fix typo.
7661         * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
7662         * top.c (source_line_number): Add comma.
7663
7664 2011-04-19  Marc Khouzam  <marc.khouzam@ericsson.com>
7665
7666         * thread.c (any_live_thread_of_process): Prioritize threads
7667         that are not executing.
7668         * gdbthread.h (any_live_thread_of_process): Update comment
7669         as per above change.
7670
7671 2011-04-19  Andreas Schwab  <schwab@linux-m68k.org>
7672
7673         * xcoffread.c (process_xcoff_symbol): Remove useless cast.
7674         (scan_xcoff_symtab): Likewise.
7675
7676 2011-04-19  Pierre Muller  <muller@ics.u-strasbg.fr>
7677
7678         * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
7679         inside if clause.
7680
7681 2011-04-19  Pierre Muller  <muller@ics.u-strasbg.fr>
7682             Pedro Alves  <pedro@codesourcery.com>
7683
7684         * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
7685         variables to simplify code and avoid == operator at end of
7686         line as this is against GNU coding standards.
7687
7688 2011-04-19  Pierre Muller  <muller@ics.u-strasbg.fr>
7689
7690         * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
7691         lm_name to name_lm to avoid conflict with lm_name function.
7692
7693 2011-04-19  Pierre Muller  <muller@ics.u-strasbg.fr>
7694
7695         ARI fixes: Use only lowercase function name for static functions.
7696         * nto-tdep.c (LM_ADDR): Rename to...
7697         (lm_addr): New function name.
7698         (nto_relocate_section_addresses): Adapt to change above.
7699         * solib-sunos.c (LM_ADDR): Rename to...
7700         (lm_addr): New function name.
7701         (LM_NEXT): Rename to...
7702         (lm_next): New function name.
7703         (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
7704         function name changes above.
7705         * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
7706         (lm_addr_from_link_map): New function name.
7707         (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
7708         (has_lm_dynamic_from_link_map): New function name.
7709         (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
7710         (lm_dynamic_from_link_map): New function name.
7711         (LM_ADDR_CHECK): Rename to...
7712         (lm_addr_check): New function name.
7713         (LM_NEXT): Rename to...
7714         (lm_next): New function name.
7715         (LM_PREV): Rename to...
7716         (lm_prev): New function name.
7717         (LM_NAME): Rename to...
7718         (lm_name): New function name.
7719         (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
7720         (ignore_first_link_map_entry): New function name.
7721         (svr4_keep_data_in_core): Adapt to function name changes above.
7722         (svr4_current_sos): Likewise.
7723         (enable_break): Likewise.
7724         (svr4_relocate_section_addresses): Likewise.
7725
7726 2011-04-19  Pierre Muller  <muller@ics.u-strasbg.fr>
7727
7728         ARI cleanup.
7729         * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
7730         sprintf. Simplify code and avoid loosing memory.
7731         (xtensa_register_reggroup_p): Extract assignment out of IF clause.
7732         (call0_frame_cache): Remove && operator from end of line.
7733
7734 2011-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
7735
7736         Fix libraries displacement if they change whether they were prelinked.
7737         * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
7738         does not match.  Comment why.
7739
7740 2011-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
7741
7742         * corelow.c: Include wrapper.h.
7743         (core_open): Call now gdb_target_find_new_threads.
7744         * wrapper.c: Include target.h.
7745         (gdb_target_find_new_threads): New.
7746         * wrapper.h (gdb_target_find_new_threads): New declaration.
7747
7748 2011-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
7749
7750         * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
7751         even if !TARGET_HAS_EXECUTION.
7752
7753 2011-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
7754
7755         Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
7756         * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
7757         bfd_get_synthetic_symtab.
7758         * jit.c (jit_register_code): Pass NULL to the new parameter parent.
7759         * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
7760         parameter parent, remove the call to add_separate_debug_objfile.
7761         * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
7762         * symfile-mem.c (symbol_file_add_from_memory): Likewise.
7763         * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
7764         parent, new comment for it, call add_separate_debug_objfile for it.
7765         (symbol_file_add_separate): Pass objfile as the parameter parent,
7766         remove the call to add_separate_debug_objfile.
7767         (symbol_file_add_from_bfd): New parameter parent, pass it.
7768         (symbol_file_add): Pass NULL to the new parameter parent.
7769         * symfile.h (symbol_file_add_from_bfd): New parameter parent.
7770
7771 2011-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
7772
7773         * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
7774         BSF_SYNTHETIC.
7775
7776 2011-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
7777
7778         Fix Python access to inlined frames.
7779         * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
7780         * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
7781
7782 2011-04-15  Tom Tromey  <tromey@redhat.com>
7783
7784         * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
7785
7786 2011-04-15  Gary Benson  <gbenson@redhat.com>
7787
7788         * MAINTAINERS: Add myself to write-after-approval section.
7789
7790 2011-04-14  Mike Frysinger  <vapier@gentoo.org>
7791
7792         * remote-sim.c (sim_command_completer): New function.
7793         (_initialize_remote_sim): Set completer to sim_command_completer.
7794
7795 2011-04-13  Thiago Jung Bauermann  <bauerman@br.ibm.com>
7796
7797         * breakpoint.c (print_exception_catchpoint): Rename to ...
7798         (print_it_exception_catchpoint): ... this.
7799         (gnu_v3_exception_catchpoint_ops): Update with new name
7800         for print_it_exception_catchpoint.
7801
7802 2011-04-13  Edjunior Machado  <emachado@linux.vnet.ibm.com>
7803
7804         * MAINTAINERS: Add myself for write after approval privileges.
7805
7806 2011-04-13  Marek Polacek  <mpolacek@redhat.com>
7807
7808         * MAINTAINERS: Add myself as a write-after-approval maintainer.
7809
7810 2011-04-13  Thiago Jung Bauermann  <bauerman@br.ibm.com>
7811
7812         * breakpoint.c (watch_command_1): Remove colon from exp_string.
7813
7814 2011-04-13  Thiago Jung Bauermann  <bauerman@br.ibm.com>
7815
7816         * breakpoint.c (save_breakpoints): Verify whether
7817         breakpoint_ops.print_recreate is defined before calling it.
7818
7819 2011-04-11  Gary Benson  <gbenson@redhat.com>
7820
7821         Fix failure with --enable-maintainer-mode.
7822         * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
7823
7824 2011-04-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
7825
7826         Code cleanup.
7827         * symtab.c (search_symbols): Reorder the KIND description in the
7828         function comment.  Remove the unused 4th element of types, types2,
7829         types3 and types4.  New gdb_assert on KIND.
7830         (symtab_symbol_info): Remove the unused 4th element of classnames.
7831         New gdb_assert on KIND.
7832         * symtab.h (enum search_domain): New warning in the enum comment.
7833         Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
7834         TYPES_DOMAIN.
7835
7836 2011-04-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
7837
7838         Fix crash of gdb save-index on a STABS file.
7839         * dwarf2read.c (write_psymtabs_to_index): Return also on no
7840         PSYMTABS_ADDRMAP.
7841
7842 2011-04-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
7843
7844         Fix DW_AT_accessibility compatibility with gcc-4.6+.
7845         * dwarf2read.c: Include ctype.h.
7846         (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
7847         functions.
7848         (dwarf2_add_field): Fix new_field->accessibility by calling
7849         dwarf2_default_access_attribute.  Restructure setting accessibility
7850         vs. virtuality.
7851         (dwarf2_add_member_fn): New variable accessibility.  Fix fnp
7852         is_private and is_protected by calling
7853         dwarf2_default_access_attribute.
7854
7855 2011-04-08  Kevin Buettner  <kevinb@redhat.com>
7856
7857         * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
7858         to the initialization.
7859
7860 2011-04-08  Steve Ellcey  <sje@cup.hp.com>
7861
7862         * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
7863         initalization.
7864
7865 2011-04-07  Pierre Muller  <muller@ics.u-strasbg.fr>
7866
7867         Remove support for old Cygwin 1.5 versions.
7868         * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
7869         function on old Cygwin version.
7870         * windows-nat.c: Remove cygwin version check and always define
7871         __USEWIDE for Cygwin compilation.
7872
7873 2011-04-07  Yao Qi  <yao@codesourcery.com>
7874
7875         * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
7876         and TO.
7877         * arm-tdep.c (cleanup_svc): Handle variable instruction size.
7878         (arm_copy_svc): Remove parameters INSN and TO.
7879         (decode_svc_copro): Update caller.
7880         * arm-tdep.h (struct displaced_step_closure): Remove parameters
7881         from function pointer `copy_svc_os'.
7882
7883 2011-04-07  Yao Qi  <yao@codesourcery.com>
7884
7885         * arm-tdep.c (cleanup_branch): Set a correct return address in
7886         LR for ARM and Thumb.
7887
7888 2011-04-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
7889
7890         Code cleanup.
7891         * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
7892         * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
7893         in the function comment, a new note on values compatibility.
7894         * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
7895         * symtab.h (SYMBOL_HASH_NEXT): New.
7896
7897 2011-04-06  Thiago Jung Bauermann  <bauerman@br.ibm.com>
7898
7899         * ppc-linux-nat.c (check_condition): Add len output parameter.
7900         Set it based on the memory region referenced in the condition
7901         expression.  Update all callers.
7902
7903 2011-04-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
7904
7905         Fix crash regression on systems featuring .gdb_index.
7906         * objfiles.c (free_objfile): Move the
7907         forget_cached_source_info_for_objfile call earlier.  Comment it.
7908         Extend the comment for objfile_free_data.
7909
7910 2011-04-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
7911
7912         Fix regression of displaying the debug format.
7913         * buildsym.c (end_symtab): Set symtab's debugformat and producer from
7914         subfile.
7915
7916 2011-04-04  Tom Tromey  <tromey@redhat.com>
7917
7918         * cli/cli-interp.c (struct captured_execute_command_args):
7919         Remove.
7920         (do_captured_execute_command): Remove.
7921         (safe_execute_command): Use TRY_CATCH.
7922         * cli/cli-script.c (struct wrapped_read_command_file_args):
7923         Remove.
7924         (wrapped_read_command_file): Remove.
7925         (script_from_file): Use TRY_CATCH.
7926         * exceptions.c (catch_exception): Remove.
7927         * exceptions.h (catch_exception): Remove.
7928         (deprecated_throw_reason): Update comment.
7929         * mi/mi-main.c (captured_mi_execute_command): Change 'data'
7930         argument to 'context'.
7931         (mi_execute_command): Use TRY_CATCH.
7932         * remote.c (struct start_remote_args): Remove.
7933         (remote_start_remote): Update; change arguments.
7934         (remote_open_1): Use TRY_CATCH.
7935
7936 2011-04-04  Tom Tromey  <tromey@redhat.com>
7937
7938         * tracepoint.c (scope_info): Update.
7939         * symtab.c (decode_line_spec): Update.
7940         * python/python.c (gdbpy_decode_line): Update.
7941         * linespec.h (decode_line_1): Update.
7942         * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
7943         (decode_compound, find_method, symtab_from_filename)
7944         (decode_variable): Likewise.
7945         * cli/cli-cmds.c (edit_command): Update.
7946         (list_command): Update.
7947         * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
7948         argument.
7949         (create_breakpoint): Update.
7950         (until_break_command): Update.
7951         (addr_string_to_sals): Update.
7952         (decode_line_spec_1): Update.
7953
7954 2011-04-04  Tom Tromey  <tromey@redhat.com>
7955
7956         * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
7957         (do_captured_parse_breakpoint): Remove.
7958         (create_breakpoint): `e' is now volatile.  Remove `parse_args'.
7959         Use TRY_CATCH directly.
7960
7961 2011-04-04  Tom Tromey  <tromey@redhat.com>
7962
7963         * symtab.h (free_symtab): Remove.
7964         (forget_cached_source_info_for_objfile): Declare.
7965         * symmisc.c (free_symtab): Remove.
7966         * source.c (forget_cached_source_info_for_objfile): New function.
7967         (forget_cached_source_info): Use it.
7968         * objfiles.c (free_objfile): Simplify check before calling
7969         clear_current_source_symtab_and_line.  Call
7970         forget_cached_source_info_for_objfile.
7971
7972 2011-04-04  Tom Tromey  <tromey@redhat.com>
7973
7974         * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
7975         (new_symtab): Don't set `free_code' on symtab.
7976         (new_linetable): Properly handle size==0.
7977         * symtab.h (struct symtab) <free_code, free_func>: Remove.
7978         * symmisc.c (free_symtab): Don't free the linetable.  Don't call
7979         free_func.
7980         * jv-lang.c (struct jv_per_objfile_data): New.
7981         (jv_per_objfile_free): Free the data.
7982         (get_dynamics_objfile): Allocate a jv_per_objfile_data.
7983         (get_java_class_symtab): Set the `dict' field on the
7984         jv_per_objfile_data.
7985         (free_class_block): Remove.
7986         * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
7987         the symtab.
7988
7989 2011-04-04  Tom Tromey  <tromey@redhat.com>
7990
7991         * symfile.c (reread_symbols): Update.
7992         * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
7993         field.
7994         * objfiles.c (allocate_objfile): Update.
7995         * cp-support.h (cp_check_possible_namespace_symbols): Don't
7996         declare.
7997         * cp-namespace.c (lookup_symbol_file): Don't call
7998         lookup_possible_namespace_symbol.
7999         (initialize_namespace_symtab, get_possible_namespace_block)
8000         (free_namespace_block, cp_check_possible_namespace_symbols)
8001         (check_possible_namespace_symbols_loop)
8002         (check_one_possible_namespace_symbol)
8003         (lookup_possible_namespace_symbol): Remove.
8004         (maintenance_cplus_namespace): Replace with notice.
8005         (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
8006
8007 2011-04-04  Tom Tromey  <tromey@redhat.com>
8008
8009         * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
8010         * symtab.h (struct symtab) <producer, debugformat>: Now const.
8011         * symmisc.c (free_symtab): Don't free debugformat.
8012         * buildsym.h (struct subfile) <producer, debugformat>: Now const.
8013         (record_debugformat, record_producer): Document.
8014         * buildsym.c (end_symtab): Don't save debugformat and producer
8015         names on obstack.
8016         (end_symtab): Don't free debugformat and producer fields.
8017         (record_debugformat): Don't call xstrdup.
8018         (record_producer): Likewise.
8019
8020 2011-04-04  Tom Tromey  <tromey@redhat.com>
8021
8022         * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
8023         (source_line_charpos, source_charpos_line): Remove.
8024
8025 2011-04-04  Tom Tromey  <tromey@redhat.com>
8026
8027         * symtab.h (domain_enum): Split in two...
8028         (enum search_domain): New.
8029         (search_symbols): Update.
8030         * symtab.c (print_symbol_info, symtab_symbol_info): Remove
8031         redundant declarations.
8032         (search_symbols): Change 'kind' argument to search_domain.
8033         Update.
8034         (print_symbol_info): Likewise.
8035         (symtab_symbol_info): Likewise.
8036         * symfile.h (struct quick_symbol_functions)
8037         <pre_expand_symtabs_matching>: Change type of 'kind' argument.
8038         <expand_symtabs_matching>: Likewise.
8039         * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
8040         (expand_symtabs_matching_via_partial): Update.
8041         * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
8042         (dw2_expand_symtabs_for_function): Update.
8043         * block.h: Moved anonymous enum...
8044         * defs.h (enum block_enum): ... here.  Now named.
8045
8046 2011-04-03  Joel Brobecker  <brobecker@adacore.com>
8047
8048         GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
8049         * version.in: Bump version to 7.3.50.20110403-cvs.
8050
8051 2011-04-03  Joel Brobecker  <brobecker@adacore.com>
8052
8053         * NEWS: Create a new section for the next release branch.
8054         Rename the section of the current branch, now that it has
8055         been cut.
8056
8057 2011-04-01  Ulrich Weigand  <ulrich.weigand@linaro.org>
8058
8059         * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
8060         for "fpscr" in target description.
8061
8062 2011-04-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
8063
8064         * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
8065         initialize it.  Delay HASH initialization.  Strip the part after open
8066         parenthesis for languages with qualifiers.  Call do_cleanups.
8067
8068 2011-04-01  Tom Tromey  <tromey@redhat.com>
8069
8070         * utils.c (report_command_stats): Don't print `-' for negative
8071         number.
8072
8073 2011-04-01  Eric Botcazou  <ebotcazou@adacore.com>
8074
8075         * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
8076         (ada_value_slice, empty_array, to_fixed_array_type): Deal with
8077         typedefs.
8078
8079 2011-04-01  Joel Brobecker  <brobecker@adacore.com>
8080
8081         * breakpoint.h (bpdisp_text): Add declaration.
8082         * breakpoint.c (bpdisp_text): Make non-static.
8083         * ada-lang.c: #include "mi/mi-common.h".
8084         (print_it_exception): Rewrite to improve GDB/MI output.
8085
8086 2011-04-01  Pedro Alves  <pedro@codesourcery.com>
8087
8088         * arm-tdep.h (struct address_space): Add forward declaration.
8089
8090 2011-04-01  Ulrich Weigand  <ulrich.weigand@linaro.org>
8091
8092         * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
8093         * arm-tdep.c (arm_override_mode): New global.
8094         (arm_pc_is_thumb): Respect arm_override_mode.  Remove single-step
8095         execution mode heuristics.
8096         (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
8097         second single-step breakpoint if needed, using
8098         arm_insert_single_step_breakpoint.
8099         (arm_get_next_pc_raw): Remove INSERT_BKTP argument.  Only handle
8100         ARM execution mode, do not call thumb_get_next_pc_raw.
8101         (arm_get_next_pc): Encode execution mode in return value.  Call
8102         either arm_get_next_pc_raw or thumb_get_next_pc_raw.
8103         (arm_insert_single_step_breakpoint): New function.
8104         (arm_software_single_step): Call it.
8105         * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
8106         argument to return execution mode of sigreturn target.
8107         (arm_linux_syscall_next_pc): Use it.
8108         (arm_linux_copy_svc): Update call.
8109         (arm_linux_software_single_step): Call
8110         arm_insert_single_step_breakpoint.
8111
8112 2011-03-31  Jan Kratochvil  <jan.kratochvil@redhat.com>
8113
8114         * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
8115         the comment.
8116
8117 2011-03-31  Tom Tromey  <tromey@redhat.com>
8118
8119         * varobj.c (update_dynamic_varobj_children): Properly handle
8120         errors from iterator.
8121
8122 2011-03-31  Jan Kratochvil  <jan.kratochvil@redhat.com>
8123
8124         * dwarf2read.c (dwarf2_name): Initialize DEMANGLED.  Avoid demangling
8125         struct linkage name twice.
8126
8127 2011-03-31  Tom Tromey  <tromey@redhat.com>
8128
8129         * python/py-prettyprint.c (print_stack_unless_memory_error): Add
8130         missing ">" to message.
8131
8132 2011-03-31  Tom Tromey  <tromey@redhat.com>
8133
8134         * varobj.c (instantiate_pretty_printer): Remove duplicate
8135         'return'.
8136
8137 2011-03-31  Ulrich Weigand  <ulrich.weigand@linaro.org>
8138
8139         * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
8140         if neither saved value nor register available (e.g. signal frame).
8141
8142 2011-03-31  Thiago Jung Bauermann  <bauerman@br.ibm.com>
8143
8144         * macroexp.c (expand): Avoid uninitialized variable
8145         compiler warning.
8146
8147 2011-03-31  Thiago Jung Bauermann  <bauerman@br.ibm.com>
8148
8149         * breakpoint.c (break_range_command): Fix typo in comment.
8150
8151 2011-03-31  Thiago Jung Bauermann  <bauerman@br.ibm.com>
8152             Sergio Durigan Junior  <sergiodj@linux.vnet.ibm.com>
8153
8154         Implement support for PowerPC BookE ranged breakpoints.
8155         * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
8156         * breakpoint.h (struct bp_target_info) <length>: New member
8157         variable.
8158         (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
8159         instead of struct breakpoint as argument, and also add ASPACE
8160         and BP_ADDR arguments.  Update all callers.
8161         (struct breakpoint_ops) <print_one_detail>: New method.
8162         (struct breakpoint) <addr_string_range_end>: New member variable.
8163         * breakpoint.c (breakpoint_location_address_match): Add function
8164         prototype.
8165         (insert_bp_location): Set bl->target_info.length.
8166         (breakpoint_here_p): Call breakpoint_location_address_match.
8167         (moribund_breakpoint_here_p): Likewise.
8168         (regular_breakpoint_inserted_here_p): Likewise.
8169         (breakpoint_thread_match): Likewise.
8170         (bpstat_stop_status): Likewise.
8171         (bpstat_check_location): Move call to
8172         breakpoint_ops.breakpoint_hit to the top.
8173         (print_one_breakpoint_location): Call
8174         breakpoint_ops.print_one_detail if available.
8175         (breakpoint_address_match_range): New function.
8176         (breakpoint_location_address_match): Likewise.
8177         (breakpoint_locations_match): Compare the length field of the
8178         locations too.
8179         (hw_breakpoint_used_count): Count resources used by all locations
8180         in a breakpoint, and use breakpoint_ops.resources_needed if
8181         available.
8182         (breakpoint_hit_ranged_breakpoint): New function.
8183         (resources_needed_ranged_breakpoint): Likewise.
8184         (print_it_ranged_breakpoint): Likewise.
8185         (print_one_ranged_breakpoint): Likewise.
8186         (print_one_detail_ranged_breakpoint): Likewise.
8187         (print_mention_ranged_breakpoint): Likewise.
8188         (print_recreate_ranged_breakpoint): Likewise.
8189         (ranged_breakpoint_ops): New structure.
8190         (find_breakpoint_range_end): New function.
8191         (break_range_command): Likewise.
8192         (delete_breakpoint): Free addr_string_range_end.
8193         (update_breakpoint_locations): Add SALS_END argument.  Update
8194         all callers.  Calculate breakpoint length if a non-zero SALS_END
8195         is given.  Call breakpoint_locations_match instead of
8196         breakpoint_address_match.
8197         (reset_breakpoint): Find SaL of the end of the range if B is a
8198         ranged breakpoint.
8199         (_initialize_breakpoint): Register break-range command.
8200         * defs.h (print_core_address): Add function prototype.
8201         * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
8202         function.
8203         (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
8204         (ppc_linux_remove_hw_breakpoint): Likewise.
8205         (_initialize_ppc_linux_nat): Initialize
8206         to_ranged_break_num_registers.
8207         * target.c (update_current_target): Add comment about
8208         to_ranged_break_num_registers.
8209         (target_ranged_break_num_registers): New function.
8210         * target.h (struct target_ops) <to_ranged_break_num_registers>:
8211         New method.
8212         (target_ranged_break_num_registers): Add function prototype.
8213         * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
8214         * utils.c (print_core_address): ... here.
8215
8216 2011-03-31  Ulrich Weigand  <uweigand@de.ibm.com>
8217
8218         * breakpoint.c (addr_string_to_sals): Avoid uninitialized
8219         variable compiler warning.
8220
8221 2011-03-30  Thiago Jung Bauermann  <bauerman@br.ibm.com>
8222
8223         * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
8224         code from here ...
8225         (re_set_breakpoint): ... to here ...
8226         (addr_string_to_sals): ... and here.
8227
8228 2011-03-29  Pierre Muller  <muller@ics.u-strasbg.fr>
8229
8230         * Makefile.in (SFILES): Add missing C sources.
8231         (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
8232         Add missing headers.
8233
8234 2011-03-29  Mike Frysinger  <vapier@gentoo.org>
8235
8236         * .gitignore: New file.
8237
8238 2011-03-29  Mike Frysinger  <vapier@gentoo.org>
8239
8240         * NEWS: Mention new cfi device simulation.
8241
8242 2011-03-29  Tom Tromey  <tromey@redhat.com>
8243
8244         * dwarf2read.c (fixup_partial_die): Handle linkage name on
8245         otherwise anonymous types.
8246         (dwarf2_name): Likewise.
8247         * valops.c (value_struct_elt_for_reference): Refine artificial
8248         type logic.  Call error if j==-1.
8249
8250 2011-03-29  Andreas Tobler  <andreast-list@fgznet.ch>
8251
8252         Fix false GCC warning.
8253         * infcall.c (find_function_addr): Initialize funaddr.
8254
8255 2011-03-29  Pierre Muller  <muller@ics.u-strasbg.fr>
8256
8257         Fix mingw compilation with --enable-targets=all.
8258         * remote-mips.c (gdb_usleep.h): Include header.
8259         (mips_enter_debug): Use gdb_usleep instead of sleep.
8260
8261 2011-03-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
8262
8263         Support resolution of STT_GNU_IFUNC via breakpoints.
8264         * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
8265         bp_gnu_ifunc_resolver_return.
8266         (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
8267         the loop.  Support bp_gnu_ifunc_resolver and
8268         bp_gnu_ifunc_resolver_return.  New comment after the loop.  New loop
8269         for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
8270         breakpoints.
8271         (bptype_string, print_one_breakpoint_location): Support
8272         bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
8273         (user_settable_breakpoint): Return true also for
8274         bp_gnu_ifunc_resolver.
8275         (allocate_bp_location): Support bp_gnu_ifunc_resolver and
8276         bp_gnu_ifunc_resolver_return.
8277         (set_breakpoint_location_function): New parameter explicit_loc,
8278         describe it.  Call find_pc_partial_function_gnu_ifunc with new
8279         variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
8280         EXPLICIT_LOC is not set.
8281         (set_raw_breakpoint): Set EXPLICIT_LOC for
8282         set_breakpoint_location_function.
8283         (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
8284         set_breakpoint_location_function.
8285         (mention): Support bp_gnu_ifunc_resolver and
8286         bp_gnu_ifunc_resolver_return.
8287         (add_location_to_breakpoint): Set EXPLICIT_LOC for
8288         set_breakpoint_location_function.
8289         (update_breakpoint_locations): Remove static.
8290         (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
8291         bp_gnu_ifunc_resolver_return.
8292         * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
8293         bp_gnu_ifunc_resolver_return.
8294         (update_breakpoint_locations): New declaration.
8295         * elfread.c: Include gdbthread.h and regcache.h.
8296         (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
8297         functions.
8298         (elf_gnu_ifunc_fns): Install them.
8299         * minsyms.c (stub_gnu_ifunc_resolver_stop)
8300         (stub_gnu_ifunc_resolver_return_stop): New functions.
8301         (stub_gnu_ifunc_fns): Install them.
8302         * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
8303         and gnu_ifunc_resolver_return_stop.
8304         (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
8305
8306 2011-03-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
8307
8308         STT_GNU_IFUNC reader implementation.
8309         * elfread.c: Include gdbtypes.h, value.h and infcall.h.
8310         (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
8311         (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
8312         (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
8313         (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
8314         (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
8315         (elf_gnu_ifunc_resolve_addr): New.
8316         (elf_symfile_read): Call elf_rel_plt_read.
8317         (elf_gnu_ifunc_fns): New.
8318         (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
8319         Install elf_gnu_ifunc_fns.
8320         * infcall.c (find_function_return_type): New function.
8321         (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
8322         * minsyms.c (stub_gnu_ifunc_resolve_addr)
8323         (stub_gnu_ifunc_resolve_name): New functions.
8324         (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
8325         * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
8326         (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
8327
8328 2011-03-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
8329
8330         Code cleanup for later STT_GNU_IFUNC support.
8331         * infcall.c (find_function_addr): Remove variable code, use explicit
8332         dereferences for it.  Move VALUE_TYPE initialization later.
8333
8334 2011-03-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
8335
8336         GDB find_pc_partial_function support for STT_GNU_IFUNC.
8337         * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
8338         (clear_pc_function_cache): Clear it.
8339         (find_pc_partial_function): Rename to ...
8340         (find_pc_partial_function_gnu_ifunc): ... this function.  New
8341         parameter is_gnu_ifunc_p, describe it.  Set *IS_GNU_IFUNC_P.
8342         (find_pc_partial_function): New wrapper for this function.
8343         * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
8344
8345 2011-03-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
8346
8347         GDB internal type support for STT_GNU_IFUNC.
8348         * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
8349         (elf_symtab_read): Set mst_text_gnu_ifunc for
8350         BSF_GNU_INDIRECT_FUNCTION.
8351         * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
8352         * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
8353         builtin_func_func, nodebug_text_gnu_ifunc_symbol and
8354         nodebug_got_plt_symbol.
8355         * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
8356         (TYPE_GNU_IFUNC): New.
8357         (struct main_type): New field flag_gnu_ifunc.
8358         (struct builtin_type): New field builtin_func_func.
8359         (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
8360         nodebug_got_plt_symbol.
8361         * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
8362         (in_gnu_ifunc_stub): New.
8363         (prim_record_minimal_symbol, find_solib_trampoline_target): Support
8364         mst_text_gnu_ifunc.
8365         * parse.c (write_exp_msymbol): New variable ifunc_msym.  Detect and
8366         support mst_text_gnu_ifunc.  Support mst_slot_got_plt.
8367         * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
8368         in_gnu_ifunc_stub.
8369         * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
8370         * symtab.c (search_symbols): Likewise.
8371         * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
8372         and mst_slot_got_plt.
8373         (in_gnu_ifunc_stub): New declaration.
8374
8375 2011-03-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
8376
8377         Support a ring of related breakpoints.
8378         * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
8379         other functions, add gdb_assert.
8380         (update_watchpoint, watchpoint_check): Add gdb_assert.  Use
8381         watchpoint_del_at_next_stop.
8382         (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
8383         (bpstat_stop_status): Handle ring in related_breakpoint.
8384         (set_raw_breakpoint_without_location): Initialize ring in
8385         related_breakpoint.
8386         (delete_breakpoint): Handle ring in related_breakpoint, use
8387         watchpoint_del_at_next_stop.
8388         (map_breakpoint_numbers): Handle ring in related_breakpoint.
8389
8390 2011-03-28  Tom Tromey  <tromey@redhat.com>
8391
8392         PR symtab/12441:
8393         * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
8394         with `language_minimal'.
8395
8396 2011-03-25  Ulrich Weigand  <ulrich.weigand@linaro.org>
8397
8398         * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
8399         instead of checking for STT_ARM_TFUNC symbol type.
8400
8401 2011-03-25  Tom Tromey  <tromey@redhat.com>
8402
8403         * linespec.c (symbol_found): Restore line-based result for
8404         non-LOC_LABEL symbols.
8405
8406 2011-03-25  Kai Tietz  <ktietz@redhat.com>
8407
8408         * tui/tui-source.c (tui_set_source_content): Use filename_cmp
8409         instead of strcmp for comparison.
8410         (tui_source_is_displayed): Likewise.
8411         * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
8412
8413 2011-03-24  Mark Wielaard  <mjw@redhat.com>
8414
8415         * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
8416         complaint.
8417         (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
8418         (find_partial_die_in_comp_unit): Likewise in comment.
8419         (read_attribute_value): Likewise.
8420         (lookup_die_type): Likewise.
8421         (dwarf_form_name): Likewise.
8422         (dump_die_shallow): Likewise.
8423         (follow_die_ref_or_sig): Likewise.
8424
8425 2011-03-24  Tom Tromey  <tromey@redhat.com>
8426
8427         PR breakpoints/11816:
8428         * linespec.c (decode_line_1): Parse `function:label' linespecs.
8429         (decode_compound): Update.
8430         (find_function_symbol): New function.
8431         (decode_dollar): Update.
8432         (decode_label): Add 'function_symbol' parameter.  Handle
8433         function-relative labels.
8434         (decode_variable): Update.
8435         (symbol_found): Add 'function_symbol' parameter.  Use label's PC,
8436         not its line.  Set `special_display' and canonical name for
8437         labels.
8438
8439 2011-03-24  Tom Tromey  <tromey@redhat.com>
8440
8441         * linespec.h (struct linespec_result) <special_display>: New
8442         field.
8443         * breakpoint.h (struct breakpoint) <display_canonical>: New
8444         field.
8445         * breakpoint.c (print_breakpoint_location): Respect
8446         display_canonical.
8447         (create_breakpoint_sal): Add 'display_canonical' parameter.
8448         (create_breakpoints_sal): Update.
8449         (create_breakpoint): Update.
8450
8451 2011-03-24  Tom Tromey  <tromey@redhat.com>
8452
8453         * symtab.c (decode_line_spec): Update.
8454         * linespec.c (build_canonical_line_spec): Change type of
8455         'canonical'.
8456         (decode_line_2, decode_line_1, decode_objc, decode_compound)
8457         (find_method, decode_all_digits, decode_dollar, decode_label)
8458         (symbol_found): Likewise.
8459         (init_linespec_result): New function.
8460         * breakpoint.c (struct captured_parse_breakpoint_args)
8461         <canonical_p>: New field, replaces addr_string_p.
8462         (create_breakpoints_sal): Add 'canonical' parameter, replacing
8463         'addr_string'.
8464         (parse_breakpoint_sals): Likewise.
8465         (do_captured_parse_breakpoint): Update.
8466         (create_breakpoint): Use struct linespec_result.
8467         (until_break_command): Update.
8468         (breakpoint_re_set_one): Update.
8469         (decode_line_spec_1): Update.
8470         * linespec.h (struct linespec_result): New.
8471         (init_linespec_result): Declare.
8472
8473 2011-03-23  Pedro Alves  <pedro@codesourcery.com>
8474
8475         * regcache.c (regcache_raw_read): If the target didn't supply a
8476         given raw register, mark it as unavailable.
8477
8478 2011-03-23  Kai Tietz  <ktietz@redhat.com>
8479
8480         * breakpoint.c (clear_command): Use filename_cmp
8481         instead of strcmp for comparison.
8482         * buildsym.c (watch_main_source_file_lossage): Likewise.
8483         (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
8484         checking just for slash.
8485         * dbxread.c (read_dbx_symtab): Use lbasename instead of
8486         strrchr and filename_cmp instead of strcmp for filenames.
8487         (add_old_header_file): Use filename_cmp
8488         instead of strcmp for comparison.
8489         * exec.c (exec_set_section_address): Likewise.
8490         * macrotab.c (macro_lookup_inclusion): Likewise.
8491         (macro_lookup_inclusion): Likewise.
8492         * elfread.c (_initialize_elfread): Likewise.
8493         (elfstab_offset_sections): Likewise.
8494         (elfstab_offset_sections): Use lbasename instead of
8495         strrchr.
8496         * mdebugread.c (parse_partial_symbols): Likewise.
8497         (arse_partial_symbols): Use filename_(n)cmp instead of
8498         str(n)cmp for comparison.
8499         * minsyms.c (lookup_minimal_symbol): Likewise.
8500         * psymtab.c (read_psymtabs_with_filename): Likewise.
8501         * solib.c (solib_read_symbols): Likewise.
8502         (reload_shared_libraries_1): Likewise.
8503         * symmisc.c (maintenance_print_symbols): Likewise.
8504         * symfile.c (separate_debug_file_exists): Likewise.
8505         (reread_symbols): Likewise.
8506         (find_separate_debug_file_by_debuglink): Likewise.
8507         * remote-fileio.c (remote_fileio_func_rename): Likewise.
8508         * source.c (add_path): Likewise.
8509         * symtab.c (filename_seen): Likewise.
8510         (file_matches): Likewise.
8511         (print_symbol_info): Likewise.
8512         (maybe_add_partial_symtab_filename): Likewise.
8513         (make_source_files_completion_list): Likewise.
8514         * xml-syscall.c (init_sysinfo): Likewise.
8515         * windows-nat.c (_initialize_check_for_gdb_ini): Use
8516         IS_DIR_SEPARATOR for checking for trailing path separator.
8517
8518 2011-03-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
8519
8520         * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value.  New
8521         label abort_expression.
8522         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
8523         DWARF_VALUE_OPTIMIZED_OUT.
8524
8525 2011-03-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
8526
8527         Code cleanup.
8528         * c-typeprint.c (c_type_print_args): Change parameter show_artificial
8529         to linkage_name.  Invert its value.  Update the function comment.
8530         (c_type_print_varspec_suffix): Invert it at the caller.
8531         * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
8532
8533 2011-03-22  Pedro Alves  <pedro@codesourcery.com>
8534
8535         * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
8536         errors when reading the `stop_pc'.
8537         * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
8538         get_frame_pc.
8539
8540 2011-03-22  Phil Muldoon  <pmuldoon@redhat.com>
8541
8542         * NEWS: Document gdb.Write stream keyword.
8543
8544 2011-03-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
8545
8546         Revert:
8547         2011-03-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
8548         * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
8549         (dwarf2_add_field): Fix new_field->accessibility for
8550         cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
8551
8552 2011-03-22  Phil Muldoon  <pmuldoon@redhat.com>
8553
8554         PR python/12183
8555
8556         * python/py-function.c (fnpy_call): Treat GdbErrors differently to
8557         other error classes.  Do not print stack trace.
8558
8559 2011-03-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
8560
8561         * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
8562         (dwarf2_add_field): Fix new_field->accessibility for
8563         cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
8564
8565 2011-03-21  Ulrich Weigand  <ulrich.weigand@linaro.org>
8566
8567         * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
8568         encountering a load via a non-SP register.
8569
8570 2011-03-21  Ulrich Weigand  <uweigand@de.ibm.com>
8571
8572         * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
8573         field in returned unwinder.
8574
8575 2012-03-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
8576
8577         * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
8578
8579 2012-03-21  Joel Brobecker  <brobecker@adacore.com>
8580
8581         * ada-lang.c (replace_operator_with_call): Use xzalloc instead
8582         of xmalloc.
8583
8584 2012-03-18  Pedro Alves  <pedro@codesourcery.com>
8585
8586         * frame.c (frame_unwind_register): Throw an error if unwinding the
8587         register failed.
8588         * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
8589         an unwind stop reason.
8590         (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
8591         * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
8592         UNWIND_UNAVAILABLE>: New.
8593         * inline-frame.c (inline_frame_unwind): Install
8594         default_frame_unwind_stop_reason.
8595         * frame-unwind.c: Include "exceptions.h".
8596         (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
8597         (default_frame_unwind_stop_reason): New.
8598         * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
8599         (default_frame_unwind_stop_reason): Declare.
8600         (struct frame_unwind) <stop_reason>: New function pointer.
8601
8602         * dummy-frame.c: Install default_frame_unwind_stop_reason.
8603         * dwarf2-frame.c: Include exceptions.h.
8604         (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
8605         (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
8606         computing the CFA.  If such an error was thrown, set
8607         unavailable_retaddr.
8608         (dwarf2_frame_unwind_stop_reason): New.
8609         (dwarf2_frame_this_id): Don't build a frame id if the CFA was
8610         unavailable.
8611         (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
8612         (dwarf2_signal_frame_unwind): Ditto.
8613
8614         * amd64-tdep.c: Include "exceptions.h".
8615         (struct amd64_frame_cache): New field "base_p".
8616         (amd64_init_frame_cache): Clear it.
8617         (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
8618         Avoid reading registers with functions that throw if the register
8619         is not necessary to compute the frame base.
8620         (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
8621         swallowing NOT_AVAILABLE_ERROR.
8622         (amd64_frame_unwind_stop_reason): New.
8623         (amd64_frame_this_id): Don't build a frame id if the frame base
8624         was unavailable.
8625         (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
8626         (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8627         base_p if the frame base was computable.
8628         (amd64_sigtramp_frame_unwind_stop_reason): New.
8629         (amd64_sigtramp_frame_this_id): Don't build a frame id if the
8630         frame base was unavailable.
8631         (amd64_sigtramp_frame_unwind): Install
8632         amd64_sigtramp_frame_unwind_stop_reason.
8633         (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8634         base_p if the frame base was computable.
8635         (amd64_epilogue_frame_unwind_stop_reason): New.
8636         (amd64_epilogue_frame_this_id): Don't build a frame id if the
8637         frame base was unavailable.
8638         (amd64_epilogue_frame_unwind): Install
8639         amd64_epilogue_frame_unwind_stop_reason.
8640         * i386-tdep.c: Include "exceptions.h".
8641         (struct i386_frame_cache): New field "base_p".
8642         (i386_init_frame_cache): Clear it.
8643         (i386_frame_cache_1): New, factored out from amd64_frame_cache.
8644         Avoid reading registers with functions that throw if the register
8645         is not necessary to compute the frame base.
8646         (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
8647         swallowing NOT_AVAILABLE_ERROR.
8648         (i386_frame_unwind_stop_reason): New.
8649         (i386_frame_this_id): Don't build a frame id if the frame base was
8650         unavailable.
8651         (i386_frame_prev_register): Handle unavailable SP.
8652         (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
8653         (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8654         base_p if the frame base was computable.
8655         (i386_epilogue_frame_unwind_stop_reason): New.
8656         (i386_epilogue_frame_this_id): Don't build a frame id if the frame
8657         base was unavailable.
8658         (i386_epilogue_frame_unwind): Install
8659         i386_epilogue_frame_unwind_stop_reason.
8660         (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8661         base_p if the frame base was computable.
8662         (i386_sigtramp_frame_unwind_stop_reason): New.
8663         (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
8664         base was unavailable.
8665         (i386_sigtramp_frame_unwind): Install
8666         i386_sigtramp_frame_unwind_stop_reason.
8667         * sentinel-frame.c (sentinel_frame_prev_register): Use the value
8668         type's size, not the register's.
8669         (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
8670
8671         * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
8672         default_frame_unwind_stop_reason.
8673         * alpha-tdep.c (alpha_sigtramp_frame_unwind)
8674         (alpha_heuristic_frame_unwind): Ditto.
8675         * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
8676         * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
8677         * avr-tdep.c (avr_frame_unwind): Ditto.
8678         * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
8679         Ditto.
8680         * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
8681         * frv-tdep.c (frv_frame_unwind): Ditto.
8682         * h8300-tdep.c (h8300_frame_unwind): Ditto.
8683         * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
8684         * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
8685         * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
8686         (hppa_stub_frame_unwind): Ditto.
8687         * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
8688         * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
8689         (ia64_libunwind_frame_unwind)
8690         (ia64_libunwind_sigtramp_frame_unwind): Ditto.
8691         * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
8692         * lm32-tdep.c (lm32_frame_unwind): Ditto.
8693         * m32c-tdep.c (m32c_unwind): Ditto.
8694         * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
8695         * m32r-tdep.c (m32r_frame_unwind): Ditto.
8696         * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
8697         * m68k-tdep.c (m68k_frame_unwind): Ditto.
8698         * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
8699         * m88k-tdep.c (m88k_frame_unwind): Ditto.
8700         * mep-tdep.c (mep_frame_unwind): Ditto.
8701         * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
8702         * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
8703         (mips_stub_frame_unwind): Ditto.
8704         * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
8705         * moxie-tdep.c (moxie_frame_unwind): Ditto.
8706         * mt-tdep.c (mt_frame_unwind): Ditto.
8707         * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
8708         * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
8709         * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
8710         * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
8711         (s390_sigtramp_frame_unwind): Ditto.
8712         * score-tdep.c (score_prologue_unwind): Ditto.
8713         * sh-tdep.c (sh_frame_unwind): Ditto.
8714         * sh64-tdep.c (sh64_frame_unwind): Ditto.
8715         * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
8716         * sparc-tdep.c (sparc32_frame_unwind): Ditto.
8717         * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
8718         * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
8719         * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
8720         * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
8721         * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
8722         (sparc64obsd_trapframe_unwind): Ditto.
8723         * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
8724         * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
8725         * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
8726         * v850-tdep.c (v850_frame_unwind): Ditto.
8727         * vax-tdep.c (vax_frame_unwind): Ditto.
8728         * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
8729         * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
8730         * xtensa-tdep.c (xtensa_unwind): Ditto.
8731
8732 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
8733
8734         * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
8735         there's always a frame.  Use get_frame_pc_if_available instead of
8736         get_frame_pc, and if there's no PC available, don't look up a
8737         symtab.
8738
8739 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
8740
8741         * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
8742         unavailable PC.
8743
8744 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
8745
8746         * tracepoint.c (set_traceframe_context): Handle unavailable PC
8747         gracefully.
8748
8749 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
8750
8751         * frame.h (frame_unwind_caller_pc_if_available): Declare.
8752         * frame.c (frame_unwind_caller_pc_if_available): New.
8753         * stack.c (frame_info): Handle unavailable PC.
8754
8755 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
8756
8757         * frame.c (frame_unwind_pc): Rename to ...
8758         (frame_unwind_pc_if_available): ... this.  New `pc' output
8759         parameter.  Change return type to int.  Gracefully handle
8760         gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR.  Return 0 if that
8761         happened, or 1 otherwise.
8762         (frame_unwind_pc): Reimplement on top of
8763         frame_unwind_pc_if_available.
8764         (get_frame_func): Rename to ...
8765         (get_frame_func_if_available): New `pc' output parameter.  Change
8766         return type to int.  Gracefully handle the PC not being available.
8767         (get_frame_func): Reimplement on top of
8768         get_frame_func_if_available.
8769         (select_frame): Handle the PC being unavailable.
8770         (get_prev_frame): Handle the PC being unavailable.
8771         (get_frame_pc_if_available): New.
8772         (get_frame_address_in_block_if_available): New.
8773         (find_frame_sal): Handle the frame PC not being available.
8774         * frame.h (get_frame_pc_if_available): Declare.
8775         (get_frame_address_in_block_if_available): Declare.
8776         (get_frame_func_if_available): Declare.
8777         * stack.c (print_frame_info): Handle the PC being unavailable.
8778         (find_frame_funname): Ditto.
8779         (print_frame): Handle the PC being unavailable.
8780         (get_frame_language): Ditto.
8781         * blockframe.c (get_frame_block): Ditto.
8782         * macroscope.c (default_macro_scope): Ditto.
8783         * tui/tui-stack.c (tui_show_frame_info): Ditto.
8784
8785 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
8786
8787         * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
8788         NOT_AVAILABLE_ERROR when evaluating the location expression.
8789
8790 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
8791
8792         * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
8793         returning that the register piece is unavailable/optimized out.
8794         (write_pieced_value): Handle get_frame_register_bytes returning
8795         that the register piece is unavailable/optimized out when doing a
8796         read-modify write of a bitfield.
8797         * findvar.c (value_from_register): Handle get_frame_register_bytes
8798         returning that the register piece is unavailable/optimized out.
8799         * frame.c (get_frame_register_bytes): New parameters `optimizedp'
8800         and `unavailablep'.  Throw error on bad debug info.  Use
8801         frame_register instead of frame_register_read, to fill in the new
8802         arguments.
8803         * frame.h (get_frame_register_bytes): New parameters `optimizedp'
8804         and `unavailablep'.
8805         * valops.c: (value_assign): Adjust, and handle
8806         get_frame_register_bytes failing.
8807         * spu-tdep.c: Include exceptions.h.
8808         (spu_software_single_step): Adjust, and handle
8809         get_frame_register_bytes failing.
8810         (spu_get_longjmp_target): Ditto.
8811         * gdbarch.sh (register_to_value): Change to return int.  New
8812         parameters `optimizedp' and `unavailablep'.
8813         * gdbarch.h, gdbarch.c: Regenerate.
8814         * i386-tdep.c (i386_register_to_value): Adjust to new
8815         gdbarch_register_to_value interface.
8816         * i387-tdep.c (i387_register_to_value): Ditto.
8817         * i387-tdep.h (i387_register_to_value): Ditto.
8818         * alpha-tdep.c (alpha_register_to_value): Ditto.
8819         * ia64-tdep.c (ia64_register_to_value): Ditto.
8820         * m68k-tdep.c (m68k_register_to_value): Ditto.
8821         * mips-tdep.c (mips_register_to_value): Ditto.
8822         * rs6000-tdep.c (rs6000_register_to_value): Ditto.
8823
8824 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
8825
8826         * findvar.c (value_of_register): Mark the value as unavailable, if
8827         the register is unavailable.
8828         * frame.h (frame_register_unwind): New `unavailablep' parameter.
8829         (frame_register): New `unavailablep' parameter.
8830         (frame_register_read): Update comment.
8831         * frame.c (frame_register_unwind): New `unavailablep' parameter.
8832         Set it if the register is unavailable.  If the register is
8833         unavailable, clear the output buffer.
8834         (frame_register): New `unavailablep' parameter.  Pass it down.
8835         (frame_unwind_register): Adjust.
8836         (put_frame_register): Adjust.
8837         (frame_register_read): Adjust.  Also return false if the register
8838         is not available.
8839         (frame_register_unwind_location): Adjust.
8840         * sentinel-frame.c (sentinel_frame_prev_register): If the register
8841         is unavailable, mark the value accordingly.
8842         * stack.c (frame_info): Handle unavailable registers.
8843
8844 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
8845
8846         * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
8847         simplify, using regcache_cooked_read.
8848
8849 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
8850
8851         * regcache.h (regcache_raw_read, regcache_raw_read_signed)
8852         (regcache_raw_read_unsigned, regcache_raw_read_signed)
8853         (regcache_raw_read_unsigned, regcache_raw_read_part)
8854         (regcache_cooked_read, regcache_cooked_read_signed)
8855         (regcache_cooked_read_unsigned, regcache_cooked_read_part)
8856         (regcache_cooked_read_ftype): Change return to enum
8857         register_status.
8858         * regcache.c: Include exceptions.h
8859         (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
8860         (do_cooked_read): Change return to enum register_status.  Always
8861         forward to regcache_cooked_read.
8862         (regcache_raw_read): Change return to enum register_status.  If
8863         the register is not REG_VALID, memset the buffer.  Return the
8864         register's status.
8865         (regcache_raw_read_signed): Handle non-REG_VALID registers and
8866         return the register's status.
8867         (regcache_raw_read_unsigned): Ditto.
8868         (regcache_cooked_read): Change return to enum register_status.
8869         Assert that with read-only regcaches, the register's status must
8870         be known.  If the regcache is read-only, and the register is not
8871         REG_VALID, memset the buffer.  Return the register's status.
8872         (regcache_cooked_read_signed): Change return to enum
8873         register_status.  Handle non-REG_VALID registers and return the
8874         register's status.
8875         (regcache_cooked_read_unsigned): Change return to enum
8876         register_status.  Handle non-REG_VALID registers and return the
8877         register's status.
8878         (regcache_xfer_part, regcache_raw_read_part)
8879         (regcache_cooked_read_part): Change return to enum
8880         register_status.  Return the register's status.
8881         (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
8882         unavailable.
8883         (regcache_dump): Handle unavailable cooked registers.
8884         * frame.c (do_frame_register_read): Adjust interface to match
8885         regcache_cooked_read_ftype.
8886         * gdbarch.sh (pseudo_register_read): Change return to enum
8887         register_status.
8888         * gdbarch.h, gdbarch.c: Regenerate.
8889
8890         * i386-tdep.h (i386_pseudo_register_read): Change return to enum
8891         register_status.
8892         * i386-tdep.c (i386_pseudo_register_read): Change return to enum
8893         register_status.  If reading a raw register indicates the raw
8894         register is not valid, return the raw register's status,
8895         otherwise, return REG_VALID.
8896         * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
8897         register_status.  Handle non-REG_VALID raw registers and return
8898         the register's status.
8899         * arm-tdep.c (arm_neon_quad_read)
8900         (arm_pseudo_read): Change return to enum register_status.  Handle
8901         non-REG_VALID raw registers and return the register's status.
8902         * avr-tdep.c (avr_pseudo_register_read): Ditto.
8903         * frv-tdep.c (frv_pseudo_register_read): Ditto.
8904         * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
8905         * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
8906         * m32c-tdep.c (m32c_move_reg_t): Change return to enum
8907         register_status.
8908         (m32c_raw_read, m32c_raw_write, m32c_banked_read)
8909         (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
8910         (m32c_part_write, m32c_cat_read, m32c_cat_write)
8911         (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
8912         (m32c_pseudo_register_read): Change return to enum
8913         register_status.  Adjust.
8914         * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
8915         enum register_status.  Return the register's status.
8916         * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
8917         register_status.  Return the register's status.
8918         (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
8919         * mips-tdep.c (mips_pseudo_register_read): Ditto.
8920         * mt-tdep.c (mt_pseudo_register_read): Ditto.
8921         * rs6000-tdep.c (move_ev_register_func): New typedef.
8922         (e500_move_ev_register): Use it.  Change return to enum
8923         register_status.  Return the register's status.
8924         (do_regcache_raw_read): New function.
8925         (do_regcache_raw_write): New function.
8926         (e500_pseudo_register_read): Change return to enum
8927         register_status.  Return the register's status.  Use
8928         do_regcache_raw_read.
8929         (e500_pseudo_register_write): Adjust.  Use do_regcache_raw_write.
8930         (dfp_pseudo_register_read): Change return to enum register_status.
8931         Return the register's status.
8932         (vsx_pseudo_register_read): Ditto.
8933         (efpr_pseudo_register_read): Ditto.
8934         (rs6000_pseudo_register_read): Ditto.
8935         * s390-tdep.c (s390_pseudo_register_read): Change return to enum
8936         register_status.  Return the register's status.
8937         * sh64-tdep.c (pseudo_register_read_portions): New function.
8938         (sh64_pseudo_register_read): Change return to enum
8939         register_status.  Use pseudo_register_read_portions.  Return the
8940         register's status.
8941         * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
8942         register_status.  Return the register's status.
8943         * sh-tdep.c (pseudo_register_read_portions): New function.
8944         (sh_pseudo_register_read): Change return to enum register_status.
8945         Use pseudo_register_read_portions.  Return the register's status.
8946         * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
8947         enum register_status.  Return the register's status.
8948         * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
8949         * spu-tdep.c (spu_pseudo_register_read_spu)
8950         (spu_pseudo_register_read): Ditto.
8951         * xtensa-tdep.c (xtensa_register_read_masked)
8952         (xtensa_pseudo_register_read): Ditto.
8953         * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
8954
8955 2011-03-18  Pierre Muller  <muller@ics.u-strasbg.fr>
8956
8957         * python/py-value.c (valpy_getitem): Fix formatting of error function
8958         call.
8959
8960 2011-03-18  Pierre Muller  <muller@ics.u-strasbg.fr>
8961
8962         ARI fixes: Add missing internationalization markups throughout
8963         C source files.
8964         * darwin-nat-info.c: Ditto.
8965         * record.c: Ditto.
8966         * remote.c: Ditto.
8967         * mi/mi-main.c: Ditto.
8968
8969 2011-03-18  Pierre Muller  <muller@ics.u-strasbg.fr>
8970
8971         ARI fixes: Add missing internationalization markups throughout
8972         yacc files.
8973         * c-exp.y: Ditto.
8974         * cp-name-parser.y: Ditto.
8975         * f-exp.y: Ditto.
8976         * m2-exp.y: Ditto.
8977         * objc-exp.y: Ditto.
8978         * p-exp.y: Ditto.
8979
8980 2011-03-18  Pierre Muller  <muller@ics.u-strasbg.fr>
8981
8982         ARI fixes: Messages should have no trailing new lines.
8983         * darwin-nat.c (mach_check_error): Remove trailing new line from
8984         warning function call message.
8985         * record.c (bfdcore_read): Idem for error call.
8986
8987 2011-03-18  Pierre Muller  <muller@ics.u-strasbg.fr>
8988
8989         * common/signals.c (target_signal_from_host): Add _ markup to error
8990         function call message.
8991         (target_signal_to_host): Add _ markup and remove trailing new line
8992         from warning call message.
8993         (target_signal_from_command): Add _ markup to error function call
8994         message.
8995
8996 2011-03-18  Phil Muldoon  <pmuldoon@redhat.com>
8997
8998         PR python/12149
8999
9000         * python/python.c (gdbpy_write): Accept a stream argument and
9001         operate to the appropriate stream.
9002         (gdbpy_flush): Likewise.
9003         (_initialize_python): Add stream constants.
9004         (finish_python_initialization): Add GdbOutputErrorFile class.
9005
9006 2011-03-18  Kwok Cheung Yeung  <kcy@codesourcery.com>
9007
9008         * MAINTAINERS: Add myself as a write-after-approval maintainer.
9009
9010 2011-03-18  Kwok Cheung Yeung  <kcy@codesourcery.com>
9011
9012         * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
9013         to store_signed_integer.  Add debug message when relocating CALL
9014         instructions.  Fix formatting of debug message.
9015         * i386-tdep.c (i386_relocate_instruction): Ditto.
9016
9017 2011-03-17  Joel Brobecker  <brobecker@gnat.com>
9018
9019         * target.h (struct target_ops): Remove to_lookup_symbol field.
9020         (target_lookup_symbol): Delete macro.
9021         * target.c (nosymbol, debug_to_lookup_symbol): Delete.
9022         (update_current_target, setup_target_debug): Remove handling
9023         of to_lookup_symbol target_ops field.
9024         * ada-tasks.c (get_known_tasks_addr): Remove use of
9025         target_lookup_symbol.
9026         * coffread.c (coff_symtab_read): Likewise.
9027         * dbxread.c (read_dbx_symtab): Ditto.
9028
9029 2011-03-17  Joel Brobecker  <brobecker@gnat.com>
9030
9031         PR gdb/12116:
9032         * configure.ac: Add getthrds declaration check.
9033         * configure, config.in: Regenerate.
9034         * aix-thread.c (getthrds): Declare only if not already declared
9035         in procinfo.h.  More declaration out of get_signaled_thread to
9036         global scope.
9037
9038 2011-03-17  Phil Muldoon  <pmuldoon@redhat.com>
9039
9040         * python/py-symtab.c: Populate symtab_object_methods,
9041         sal_object_methods.
9042         (stpy_is_valid): New function.
9043         (salpy_is_valid): Ditto.
9044         * python/py-symbol.c: Declare symbol_object_methods.  Populate.
9045         (sympy_is_valid): New function.
9046         * python/py-objfile.c: Declare objfile_object_methods.  Populate.
9047         (objfpy_is_valid): New function.
9048         * python/py-inferior.c: Populate inferior_object_methods.
9049         (infpy_is_valid): New function.
9050         * python/py-infthread.c: Populate thread_object_methods.
9051         (thpy_is_valid): New function.
9052         * python/py-block.c: Declare block_object_methods.  Populate.  Declare
9053         block_iterator_object_methods.  Populate.
9054         (blpy_is_valid): New function.
9055         (blpy_iter_is_valid): Ditto.
9056
9057 2011-03-16  Keith Seitz  <keiths@redhat.com>
9058
9059         * linespec.c (find_methods): Canonicalize NAME before looking
9060         up the symbol.
9061         (name_end): New function.
9062         (keep_name_info): New function.
9063         (decode_line_1): Use keep_name_info.
9064         (decode_compound): Likewise.
9065         * cli/cli-utils.h (remove_trailing_whitespace): New function.
9066         * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
9067
9068         PR c++/12273
9069         * linespec.c (locate_first_half): Keep overload information, too.
9070         (decode_compound): Use a string to represent break characters
9071         to escape the loop.
9072         If P points to a break character, do not increment it.
9073         For C++ and Java, keep overload information and relevant keywords.
9074         If we cannot find a symbol, search the minimal symbols.
9075
9076         PR c++/11734
9077         * linespec.c (decode_compound): Rename SAVED_ARG to
9078         THE_REAL_SAVED_ARG.
9079         Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
9080         single-quotes.
9081         Pass a valid block to lookup_symbol.
9082         (lookup_prefix_sym): Likewise.
9083         (find_method): Construct search name based on SYM_CLASS instead
9084         of SAVED_ARG.
9085         * psymtab.c (lookup_partial_symbol): Add language parameter.
9086         (lookup_symbol_aux_psymtabs): Likewise.
9087         Don't assume that the psymtab we found was the right one. Search
9088         for the desired symbol in the symtab to be certain.
9089         (psymtab_search_name): New function.
9090         (lookup_partial_symbol): Use psymtab_search_name.
9091         Add language parameter.
9092         (read_symtabs_for_function): Add language parameter and pass to
9093         lookup_partial_symbol.
9094         (find_symbol_file_from_partial): Likewise.
9095
9096 2011-03-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
9097
9098         PR gdb/12528
9099         * dwarf2read.c (noop_record_line): New function.
9100         (dwarf_decode_lines): Ignore line tables for GCd functions.
9101
9102 2011-03-16  Pierre Muller  <muller@ics.u-strasbg.fr>
9103
9104         Fix ARI warnings about new lines at the end of messages, which
9105         are unneeded as there is a new line added at the end of the message
9106         automatically.
9107         * darwin-nat.c (darwin_stop_inferior): Ditto.
9108         * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
9109         * dfp.c (decimal_to_number): Ditto.
9110         * exec.c (print_section_info): Ditto.
9111         * i386-darwin-nat.c (darwin_set_sstep): Ditto.
9112         * osdata.c (get_osdata): Ditto.
9113         * record.c (bfdcore_write): Ditto.
9114         * remote-mips.c (mips_readchar): Ditto.
9115         * remote.c (read_ptid): Ditto.
9116         * ser-mingw.c (ser_windows_raw): Ditto.
9117         * tracepoint.c (add_local_symbols): Ditto.
9118         * windows-nat.c (fake_create_process): Ditto.
9119
9120 2011-03-16  Tom Tromey  <tromey@redhat.com>
9121
9122         * tracepoint.c (stop_tracing): Don't declare.
9123         * event-top.c (after_char_processing_hook): Add `(void)'.
9124
9125 2011-03-16  Phil Muldoon  <pmuldoon@redhat.com>
9126
9127         * NEWS: Add Parameter sub-classing description.
9128
9129 2011-03-16  Kai Tietz  <ktietz@redhat.com>
9130
9131         * MAINTAINERS: Update my e-mail address.
9132
9133 2011-03-15  Andreas Tobler  <andreast@fgznet.ch>
9134
9135         * MAINTAINERS: Add myself for write after approval privileges.
9136
9137 2011-03-15  Michael Snyder  <msnyder@vmware.com>
9138
9139         * frame.c (find_frame_sal): Assert sym is not null.
9140
9141         * dbxread.c (process_one_symbol): Assert 'name' is not null.
9142
9143         * objc-lang.c (selectors_info): Check strchr for null result.
9144
9145         * stabsread.c (define_symbol): Guard against bad stabstring input.
9146
9147 2011-03-15  Pierre Muller  <muller@ics.u-strasbg.fr>
9148
9149         Remove trailing spaces and tabulations from pascal language
9150         support sources.
9151         p-exp.y: Ditto.
9152         p-lang.c: Ditto.
9153         p-lang.h: Ditto.
9154         p-valprint.c: Ditto.
9155
9156 2011-03-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
9157
9158         * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
9159         than LOW.  Comment it.
9160         (read_partial_die): Call complaint for inappropriate zero LOWPC or
9161         HIGHPC not strictly higher than LOWPC.
9162
9163 2011-03-15  Pierre Muller  <muller@ics.u-strasbg.fr>
9164
9165         Fix formatting of function declarations returning a pointer in
9166         previous commit.
9167         * varobj.c (varobj_add_child): Ditto.
9168         * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
9169         * inferior.h (get_displaced_step_closure_by_addr): Ditto.
9170
9171 2011-03-15  Ulrich Weigand  <uweigand@de.ibm.com>
9172
9173         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
9174         for the "generic" vector ABI used with GCC 4.3 and later.
9175         (ppc64_sysv_abi_return_value): Likewise.
9176
9177 2011-03-15  Ulrich Weigand  <uweigand@de.ibm.com>
9178
9179         * infcall.c (call_function_by_hand): Function return value is
9180         always a non_lval, even when using struct_return.
9181
9182 2011-03-15  Pedro Alves  <pedro@codesourcery.com>
9183
9184         * printcmd.c (ALL_DISPLAYS_SAFE): New.
9185         (map_display_numbers): New.
9186         (do_delete_display): New.
9187         (undisplay_command): Use map_display_numbers.
9188         (do_enable_disable_display): New.
9189         (enable_disable_display_command): New function.
9190         (enable_display): Delete.
9191         (enable_display_command): New.
9192         (disable_display_command): Reimplement.
9193         (_initialize_printcmd): Adjust "enable display" command to use
9194         `enable_display_command' as callback.
9195
9196 2011-03-14  Phil Muldoon  <pmuldoon@redhat.com>
9197
9198         * NEWS: Add Python breakpoint 'stop' operation.
9199
9200 2011-03-14  Phil Muldoon  <pmuldoon@redhat.com>
9201
9202         * NEWS: Delete duplicate entry. Fix typo.
9203
9204 2011-03-14  Pierre Muller  <muller@ics.u-strasbg.fr>
9205
9206         Fix ARI warning about function names in first column.
9207         Put prototype declaration on same line as return type.
9208         * objc-exp.y: Ditto.
9209         * p-exp.y: Ditto.
9210         * python/py-stopevent.h: Ditto.
9211         For long function names, split parameters to
9212         allow function name on same line as return type.
9213         * solib-pa64.c: Ditto.
9214         * varobj.c: Ditto.
9215         * varobj.h: Ditto.
9216         For long function declaration, use single line.
9217         * hppa-tdep.h: Ditto.
9218         * inferior.h: Ditto.
9219
9220 2011-03-14  Phil Muldoon  <pmuldoon@redhat.com>
9221
9222         * python/python.h: Declare gdbpy_should_stop and
9223         gdbpy_breakpoint_has_py_cond.
9224         * python/python.c: Add python.h to includes.  Remove python.h from
9225         HAVE_PYTHON definition
9226         (gdbpy_should_stop): New dummy function.
9227         (gdbpy_breakpoint_has_py_cond): New dummy function.
9228         * python/py-breakpoint.c (bppy_init): Rewrite to allow
9229         sub-classing capabilities.
9230         (gdbpy_should_stop): New function.
9231         (gdbpy_breakpoint_has_py_cond): New function.
9232         (local_setattro): New function.
9233         * breakpoint.c (condition_command): Add check for Python 'stop'
9234         operation.
9235         (bpstat_check_breakpoint_conditions): Execute Python 'stop'
9236         operation function as part of stop/continue tests.
9237
9238 2011-03-14  Tom Tromey  <tromey@redhat.com>
9239
9240         PR gdb/12576:
9241         * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
9242         (needs_frame_dwarf_call): Likewise.
9243
9244 2011-03-14  Pierre Muller  <muller@ics.u-strasbg.fr>
9245
9246         Fix ARI warning about functions without parameters that do not
9247         use (void).
9248         * breakpoint.c (all_tracepoints): Replace () by (void).
9249         * f-exp.y (match_string_literal): Ditto.
9250         (yylex): Ditto.
9251         * m2-exp.y (yylex): Ditto.
9252         * mep-tdep.c (current_me_module): Ditto.
9253         (current_options): Ditto.
9254         (current_cop_data_bus_width): Ditto.
9255         (current_cr_names): Ditto.
9256         (current_cr_is_float): Ditto.
9257         (current_ccr_names): Ditto.
9258         * objc-exp.y (yylex): Ditto.
9259         * p-exp.y (yylex): Ditto.
9260         * remote.c (send_interrupt_sequence): Ditto.
9261         * tracepoint.c (current_trace_status): Ditto.
9262         * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
9263         * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
9264
9265 2011-03-11  Michael Snyder  <msnyder@vmware.com>
9266
9267         * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
9268         * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
9269         (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
9270         * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
9271         * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
9272
9273         * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
9274         (delete_async_event_handler): Ditto.
9275
9276         * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
9277
9278         * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
9279
9280         * top.c (set_verbose): Assert showcmd was found.
9281
9282 2011-03-11  Maxim Grigoriev  <maxim2405@gmail.com>
9283
9284         * xtensa-tdep.c (warning_once): Correct style issues.
9285
9286 2011-03-11  Yao Qi  <yao@codesourcery.com>
9287
9288         * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
9289
9290 2011-03-11  Andreas Schwab  <schwab@redhat.com>
9291
9292         * common/aclocal.m4: Remove.
9293
9294 2011-03-10  Maxim Grigoriev  <maxim2405@gmail.com>
9295
9296         * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
9297         (xtensa_write_register, xtensa_read_register): Likewise.
9298         (xtensa_hextochar): Removed.
9299         (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
9300
9301 2011-03-10  Maxim Grigoriev  <maxim2405@gmail.com>
9302
9303         * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
9304         (xtensa_call0_frame_cache_t): Update comments.  New fields added.
9305         (xtensa_alloc_frame_cache): Add initialization for new fields.
9306         (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
9307         (warning_once): New function.
9308         (xtensa_insn_kind): New item c0opc_and.
9309         (call0_classify_opcode): Add the case for AND instruction.
9310         (call0_track_op): Change arguments.  New local variable litbase.
9311         Add the case to handle c0opc_and.  Update algorithms for c0opc_mov,
9312         c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
9313         in the prologue.
9314         Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
9315         (call0_analyze_prologue): Update the comments.  Change arguments.
9316         Add the variety of updates to handle extended prologues, which now can
9317         conduct dynamic stack adjustments.
9318         (call0_frame_cache): Likewise.
9319         (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
9320         (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
9321
9322 2011-03-10  Michael Snyder  <msnyder@vmware.com>
9323
9324         * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
9325         (cmd_qtframe): Ditto.
9326         (cmd_qtbuffer): Ditto.
9327         (cmd_bigqtbuffer): Ditto.
9328
9329 2011-03-10  Tom Tromey  <tromey@redhat.com>
9330
9331         * tracepoint.c (trace_actions_command): Update.
9332         * thread.c (thread_apply_command): Update.
9333         * reverse.c (delete_bookmark_command): Update.
9334         (bookmarks_info): Update.
9335         * printcmd.c (undisplay_command): Update.
9336         * memattr.c (mem_enable_command): Update.
9337         (mem_disable_command): Update.
9338         (mem_delete_command): Update.
9339         * inferior.c (detach_inferior_command): Update.
9340         (kill_inferior_command): Update.
9341         (remove_inferior_command): Update.
9342         * cli/cli-utils.h (struct get_number_or_range_state): New.
9343         (init_number_or_range): Declare.
9344         (get_number_or_range): Update.
9345         * cli/cli-utils.c (init_number_or_range): New function.
9346         (get_number_or_range): Change 'pp' parameter to 'state'.  Remove
9347         static variables.
9348         (number_is_in_list): Update.
9349         * breakpoint.h (get_tracepoint_by_number): Update.
9350         * breakpoint.c (map_breakpoint_numbers): Update for change to
9351         get_number_or_range.
9352         (find_location_by_number): Use get_number, not
9353         get_number_or_range.
9354         (trace_pass_set_count): New function.
9355         (trace_pass_command): Update for change to get_number_or_range.
9356         Rework loop logic.
9357         (get_tracepoint_by_number): Remove 'multi_p' parameter; add
9358         'state' parameter.
9359
9360 2011-03-10  Phil Muldoon  <pmuldoon@redhat.com>
9361
9362         * python/py-param.c (add_setshow_generic): Add set/show callback
9363         parameters.  Register Python object context.
9364         (get_show_value): New function.
9365         (get_set_value): New function.
9366         (call_doc_function): New function.
9367         (get_doc_string): Move behind get_show_value/get_set_value.
9368
9369 2011-03-10  Andreas Tobler  <andreast-list@fgznet.ch>
9370
9371         * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
9372
9373 2011-03-09  Maxim Grigoriev  <maxim2405@gmail.com>
9374
9375         * xtensa-tdep.c (xtensa_read_register): Add comment.
9376         (xtensa_write_register): Likewise.
9377         (xtensa_hextochar): Add comment and update to match coding conventions.
9378         (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
9379         (execute_l32e, execute_s32e, execute_code): Update comments.
9380         (xtensa_exception_handler_t): Update to match coding conventions.
9381         (xtensa_insn_kind): Likewise.
9382
9383 2011-03-09  Michael Snyder  <msnyder@vmware.com>
9384
9385         * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
9386
9387 2011-03-09  Pedro Alves  <pedro@codesourcery.com>
9388
9389         * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
9390
9391 2011-03-09  Tom Tromey  <tromey@redhat.com>
9392
9393         * thread.c (restore_selected_frame): Handle frame_level == -1.
9394         (make_cleanup_restore_current_thread): Use
9395         get_selected_frame_if_set.
9396         * frame.h (get_selected_frame_if_set): Declare.
9397         * frame.c (get_selected_frame_if_set): New function.
9398
9399 2011-03-09  Pedro Alves  <pedro@codesourcery.com>
9400
9401         * cli/cli-cmds.c (shell_escape): Use lbasename.
9402         * coffread.c (coff_start_symtab): Constify parameter.
9403         (complete_symtab): Constify `name' parameter.
9404         (coff_symtab_read): Constify `filestring' local.
9405         (coff_getfilename): Constify return and `result' local.
9406         Use lbasename.
9407         * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
9408         * linux-fork.c (info_checkpoints_command): Use lbasename.
9409         * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
9410         * minsyms.c (lookup_minimal_symbol): Use lbasename.
9411         * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
9412         * procfs.c (procfs_make_note_section): Use lbasename.
9413         * tui/tui-io.c (printable_part): Constity return and parameter.
9414         Use lbasename.
9415         (print_filename): Constify parameters, and local `s'.
9416         (tui_rl_display_match_list): Constify local `temp'.
9417
9418 2011-03-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
9419
9420         Revert:
9421         2011-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
9422         Fix DWARF-3+ DW_AT_accessibility default assumption.
9423         * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
9424         cu->header.version >= 3.
9425
9426 2011-03-09  Yao Qi  <yao@codesourcery.com>
9427
9428         * common/Makefile.in: Remove.
9429         * common/configure: Remove.
9430         * common/configure.ac: Remove.
9431
9432 2011-03-09  Yao Qi  <yao@codesourcery.com>
9433
9434         Revert:
9435         2011-02-11  Yao Qi  <yao@codesourcery.com>
9436
9437         * common/Makefile.in: Add copyright header.
9438
9439         2011-02-11  Yao Qi  <yao@codesourcery.com>
9440
9441         * Makefile.in: Remove signals.o from COMMON_OBS.  Link
9442         libcommon.a.
9443         * configure.ac: Add common to sub dir.
9444         * configure: Regenerate.
9445
9446 2011-03-08  Maxim Grigoriev  <maxim2405@gmail.com>
9447
9448         * xtensa-tdep.c (call0_ret): New function.
9449         (xtensa_skip_prologue): Speed up analysis.
9450
9451 2011-03-08  Maxim Grigoriev  <maxim2405@gmail.com>
9452
9453         * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
9454         while executing MI command -data-list-changed-registers.
9455
9456 2011-03-08  Maxim Grigoriev  <maxim2405@gmail.com>
9457
9458         * xtensa-tdep.c (xtensa_read_register): New function.
9459         (xtensa_write_register): New function.
9460         (xtensa_find_register_by_name): New function.
9461         (xtensa_windowed_frame_cache): Update comments in type description.
9462         (xtensa_frame_cache): Likewise.
9463         (xtensa_window_interrupt_insn): New function.
9464         (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
9465         (xtensa_insn_kind): Add new instructions.
9466         (rwx_special_register): New function.
9467         (call0_classify_opcode): Add new instructions to the analysis.
9468         (a0_saved, a7_saved, a11_saved): New variables.
9469         (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
9470         (execute_l32e): New function.
9471         (execute_s32e): New function.
9472         (xtensa_exception_handler_t): New type.
9473         (execute_code): New function.
9474         (xtensa_window_interrupt_frame_cache): New function to conduct frame
9475         analysis for Xtensa Window Exception handlers.
9476
9477 2011-03-08  Maxim Grigoriev  <maxim2405@gmail.com>
9478
9479         * xtensa-tdep.c (TX_PS): New.
9480         (windowing_enabled): Update to count for Call0 ABI.
9481         (xtensa_hextochar): New.
9482         (xtensa_init_reggroups): Make algorithm generic.
9483         (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
9484
9485 2011-03-08  Maxim Grigoriev  <maxim2405@gmail.com>
9486
9487         * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
9488
9489 2011-03-08  Michael Snyder  <msnyder@vmware.com>
9490
9491         * i386-tdep.c (i386_follow_jump): Check return value of
9492         target_read_memory.
9493         (i386_analyze_struct_return): Ditto.
9494         (i386_skip_probe): Ditto.
9495         (i386_match_insn): Ditto.
9496         (i386_skip_noop): Ditto.
9497         (i386_analyze_frame_setup): Ditto.
9498         (i386_analyze_register_saves): Ditto.
9499         (i386_skip_prologue): Ditto.
9500         (i386_skip_main_prologue): Ditto.
9501
9502         * target.c (read_whatever_is_readable): Fix memory leak.
9503
9504         * i386-tdep.c (i386_process_record): Document fall through.
9505
9506 2011-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
9507
9508         Fix DWARF-3+ DW_AT_accessibility default assumption.
9509         * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
9510         cu->header.version >= 3.
9511
9512 2011-03-08  Pedro Alves  <pedro@codesourcery.com>
9513
9514         * remote.c (remote_check_symbols): Skip if the target has no
9515         execution.
9516
9517 2011-03-08  Joel Brobecker  <brobecker@adacore.com>
9518
9519         * target.c (read_whatever_is_readable): Reformat comment,
9520         with a minor typo fix. Minor reformatting of the code.
9521
9522 2011-03-08  Yao Qi  <yao@codesourcery.com>
9523
9524         * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
9525         (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
9526         Use cached result instead of calling displaced_in_arm_mode again.
9527         (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
9528         (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
9529         (cleanup_copro_load_store, copy_copro_load_store): Likewise.
9530         (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
9531         (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
9532         (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
9533         (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
9534         (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
9535         (cleanup_block_load_pc, copy_block_xfer): Likewise.
9536         * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
9537         (arm_catch_kernel_helper_return): Likewise.
9538         * gdb/arm-tdep.h : Update function declarations.
9539
9540 2011-03-07  Michael Snyder  <msnyder@vmware.com>
9541
9542         * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
9543
9544         * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
9545
9546         * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
9547
9548         * elfread.c (elf_symtab_read): Stop memory leak.
9549
9550         * main.c (captured_main): Fix memory leak.
9551
9552 2011-03-07  Andreas Schwab  <schwab@linux-m68k.org>
9553
9554         * ada-lang.c (compare_names): Call is_name_suffix with string1
9555         instead of string2.
9556
9557 2011-03-07  Tom Tromey  <tromey@redhat.com>
9558
9559         * xcoffread.c (xcoff_sym_fns): Update.
9560         * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
9561         (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
9562         * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
9563         (symbol_file_add_with_addrs_or_offsets): Likewise.
9564         (reread_symbols): Handle OBJF_PSYMTABS_READ.
9565         * somread.c (som_sym_fns): Update.
9566         * psymtab.h (require_partial_symbols): Declare.
9567         * psymtab.c (require_partial_symbols): New function.
9568         (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
9569         (ALL_OBJFILE_PSYMTABS): Undef.
9570         (ALL_PSYMTABS): Move from psympriv.h.
9571         (lookup_partial_symtab, find_pc_sect_psymtab)
9572         (lookup_symbol_aux_psymtabs, relocate_psymtabs)
9573         (find_last_source_symtab_from_partial)
9574         (forget_cached_source_info_partial)
9575         (print_psymtab_stats_for_objfile, read_symtabs_for_function)
9576         (expand_partial_symbol_tables, read_psymtabs_with_filename)
9577         (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
9578         (find_symbol_file_from_partial, map_matching_symbols_psymtab)
9579         (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
9580         Use ALL_OBJFILE_PSYMTABS_REQUIRED.
9581         * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
9582         * objfiles.h (OBJF_PSYMTABS_READ): New macro.
9583         * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
9584         psymtabs.
9585         * mipsread.c (ecoff_sym_fns): Update.
9586         * machoread.c (macho_sym_fns): Update.
9587         * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
9588         (read_psyms): New function.
9589         (elf_sym_fns, elf_sym_fns_gdb_index): Update.
9590         (elf_sym_fns_lazy_psyms): New global.
9591         * dwarf2read.c (dwarf2_initialize_objfile): Don't call
9592         dwarf2_build_psymtabs.
9593         * dbxread.c (aout_sym_fns): Update.
9594         * coffread.c (coff_sym_fns): Update.
9595
9596 2011-03-07  Tom Tromey  <tromey@redhat.com>
9597
9598         * infrun.c (print_exited_reason): Include inferior id and pid in
9599         message.
9600
9601 2011-03-07  Tom Tromey  <tromey@redhat.com>
9602
9603         * target.h (struct target_ops) <to_has_execution>: Add ptid_t
9604         parameter.
9605         (target_has_execution_1): Update.
9606         (target_has_execution_current): Declare.
9607         (target_has_execution): Call target_has_execution_current.
9608         (default_child_has_execution): Update.
9609         * target.c (default_child_has_execution): Add 'the_ptid'
9610         parameter.
9611         (target_has_execution_1): Likewise.
9612         (target_has_execution_current): New function.
9613         (add_target): Update.
9614         (init_dummy_target): Update.
9615         * remote-m32r-sdi.c (m32r_has_execution): New function.
9616         (init_m32r_ops): Use it.
9617         * record.c (record_core_has_execution): Now static.  Add
9618         'the_ptid' parameter.
9619         * inferior.c (have_live_inferiors): Don't save current thread.
9620         Use target_has_execution_1.
9621
9622 2011-03-07  Yao Qi  <yao@codesourcery.com>
9623
9624         * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
9625
9626 2011-03-07  Joel Brobecker  <brobecker@adacore.com>
9627
9628         * elfread.c (elf_symtab_read): Minor reformatting.
9629
9630 2011-03-07  Joel Brobecker  <brobecker@adacore.com>
9631
9632         * objc-lang.c (selectors_info): Minor reformatting.
9633
9634 2011-03-07  Joel Brobecker  <brobecker@adacore.com>
9635
9636         * ada-lang.c (compare_names): Add FALLTHROUGH comment.
9637
9638 2011-03-07  Joel Brobecker  <brobecker@adacore.com>
9639             Michael Snyder  <msnyder@vmware.com>
9640
9641         * ada-valprint.c (ada_val_print_array): Move the declaration of
9642         "byte_order" and "elttype" inside the block where these variables
9643         are actually used.  Remove some special handling for the case
9644         where "elttype" and "eltlen" are null.  Replace by a comment
9645         and a couple of assertion checks.
9646
9647 2011-03-05  Michael Snyder  <msnyder@vmware.com>
9648
9649         * source.c (add_path): Replace semicolon at end of block.
9650         * dwarf2expr.c (execute_stack_op): Ditto.
9651
9652 2011-03-05  Mike Frysinger  <vapier@gentoo.org>
9653
9654         * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
9655         * configure.tgt (bfin-*-*linux*): Define gdb_sim.
9656         (bfin-*-*): Likewise.
9657
9658 2011-03-05  Michael Snyder  <msnyder@vmware.com>
9659
9660         * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
9661         * mdebugread.c (parse_symbol): Ditto.
9662         * parse.c (parse_exp_in_context): Ditto.
9663         * source.c (add_path): Ditto.
9664         * utils.c (gnu_debuglink_crc32): Ditto.
9665         * varobj.c (variable_language): Ditto.
9666
9667         * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
9668
9669 2011-03-04  Michael Snyder  <msnyder@vmware.com>
9670
9671         * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
9672
9673         * symfile.c (simple_overlay_update): Check for null return value
9674         from lookup_minimal_symbol.
9675
9676         * xml-syscall.c (syscall_start_syscall): Assert name is non null.
9677
9678 2011-03-04  Thiago Jung Bauermann  <bauerman@br.ibm.com>
9679
9680         * eval.c (parse_and_eval_address_1): Remove function.
9681         * linespec.c (decode_indirect): Call parse_to_comma_and_eval
9682         instead of parse_and_eval_address_1.
9683         * value.h (parse_and_eval_address_1): Remove prototype.
9684
9685 2011-03-04  Michael Snyder  <msnyder@vmware.com>
9686
9687         * remote.c (putpkt_binary): Document that case stmt falls through.
9688
9689 2011-03-04  Thiago Jung Bauermann  <bauerman@br.ibm.com>
9690
9691         * breakpointc (print_it_typical): Move NULL check from here...
9692         (print_bp_stop_message): ... to here.
9693
9694 2011-03-04  Michael Snyder  <msnyder@msnyder-server.eng.vmware.com>
9695
9696         * breakpoint.c (enable_command): Use break instead of continue,
9697         and fill in a missing break.
9698         (disable_command): Ditto.
9699
9700 2011-03-04  Ulrich Weigand  <ulrich.weigand@linaro.org>
9701
9702         * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
9703         (terminal_save_ours): Remove misleading comment.
9704         (inflow_inferior_data_cleanup): Free ttystate.
9705         (inflow_inferior_exit): Likewise.
9706         (copy_terminal_info): Copy ttystate.
9707
9708         * serial.c (serial_copy_tty_state): New function.
9709         * serial.h (serial_copy_tty_state): Add prototype.
9710         (struct serial_ops): Add copy_tty_state callback.
9711         * ser-base.c (ser_base_copy_tty_state): New function.
9712         * ser-base.h (ser_base_copy_tty_state): Add prototype.
9713         * ser-go32.c (dos_copy_tty_state): New function.
9714         (dos_ops): Install copy_tty_state callback.
9715         * ser-mingw.c (_initialize_ser_windows): Likewise.
9716         * ser-pipe.c (_initialize_ser_pipe): Likewise.
9717         * ser-unix.c (hardwire_copy_tty_state): New function.
9718         (_initialize_ser_hardwire): Install it.
9719
9720 2011-03-04  Michael Snyder  <msnyder@vmware.com>
9721
9722         * breakpoint.c (create_breakpoint): Add missing break statement.
9723
9724         Reverting this patch:
9725         * infcall.c (call_function_by_hand): Add break statements for lint.
9726
9727         Reverting this patch:
9728         * cli/cli-script.c (script_from_file): Add break for lint.
9729
9730 2011-03-04  Michael Snyder  <msnyder@vmware.com>
9731
9732         * solib.c (reload_shared_libraries_1): Close memory leak.
9733
9734 2011-03-03  Tom Tromey  <tromey@redhat.com>
9735
9736         PR gdb/12538:
9737         * dwarf2read.c (process_psymtab_comp_unit): Handle case where
9738         DW_STRING is NULL.
9739
9740 2011-03-03  Michael Snyder  <msnyder@vmware.com>
9741
9742         * remote-fileio.c (remote_fileio_func_fstat): Initialize all
9743         fields of struct 'st' to zero.
9744
9745         * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
9746         sal.pspace before calling set_current_source_symtab_and_line.
9747
9748 2011-03-03  Yao Qi  <yao@codesourcery.com>
9749
9750         * Makefile.in (configure-common): Remove.  Let Makefile
9751         in dir common to rebuild itself.
9752         (common/Makefile): Likewise.
9753
9754 2011-03-03  Joel Brobecker  <brobecker@adacore.com>
9755
9756         * utils.c (parse_escape): Add i18n markup in error message.
9757
9758 2011-03-03  Yao Qi  <yao@codesourcery.com>
9759
9760         * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
9761         ARM_PC_REGNUM.
9762         (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
9763         (displaced_write_reg, displaced_read_reg): Likewise.
9764         (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
9765         (cleanup_block_load_pc, copy_block_xfer): Likewise.
9766         (cleanup_branch): Replace magic number 14 and 15 with
9767         ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
9768
9769 2011-03-02  Michael Snyder  <msnyder@vmware.com>
9770
9771         * maint.c (maintenance_do_deprecate): No need to check for NULL.
9772
9773         * cli/cli-script.c (script_from_file): Add break for lint.
9774
9775         * mdebugread.c (parse_partial_symbols): Fix indent.
9776
9777         * target-descriptions.c (tdesc_gdb_type): No need to call
9778         xstrdup, callee saves a copy.
9779
9780         * printcmd.c (print_scalar_formatted): Use strncpy for safety.
9781
9782         * infcall.c (call_function_by_hand): Add break statements for lint.
9783
9784         * utils.c (parse_escape): Escape the escape char.
9785
9786         * python/py-inferior.c (build_inferior_list): Error out if
9787         PyList_Append fails.
9788         (gdbpy_inferiors): Error out if build_inferior_list fails.
9789
9790         * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
9791         a function call.
9792
9793         * record.c (record_restore): Move printf to before error return.
9794
9795 2011-03-02  Yao Qi  <yao@codesourcery.com>
9796
9797         * arm-tdep.h (struct displaced_step_closure): Add two new fields
9798         is_thumb and insn_size.
9799         * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
9800         on both ARM and Thumb mode.
9801         (arm_process_displaced_insn): Set is_thumb and insn_size.
9802         (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
9803         (arm_displaced_step_fixup): Likewise.
9804
9805 2011-03-01  Michael Snyder  <msnyder@vmware.com>
9806
9807         * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
9808
9809         * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
9810
9811         * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
9812
9813         * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
9814
9815         * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
9816         with xmalloc.
9817
9818         * ada-lang.c (aggregate_assign_others): Rename inner scope variable
9819         which shadows function parameter.
9820
9821         * tracepoint.c (create_tsv_from_upload): Superfluous call
9822         to xstrdup.  Callee already calls xstrdup.
9823
9824         * linespec.c (decode_line_1): Remove unnecessary null check.
9825
9826         * tracepoint.c (scope_info): Fix mem leak, remove underused
9827         variable.
9828
9829         * python/py-prettyprint.c (apply_val_pretty_printer): Remove
9830         superfluous null check.
9831
9832         * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
9833         (value_of_builtin_frame_fp_reg): Ditto.
9834
9835         * event-top.c (display_gdb_prompt): Remove superfluous null check.
9836
9837         * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
9838         be null.
9839
9840         * linespec.c (decode_line_1): Check for null before dereference.
9841
9842         * reverse.c (record_restore): Move null-check to before pointer
9843         dereference.
9844
9845         * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
9846
9847         * objc-lang.c (selectors_info): Add explanitory comment.
9848         (classes_info): Ditto.
9849
9850 2011-03-01  Ulrich Weigand  <ulrich.weigand@linaro.org>
9851
9852         * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
9853         (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
9854         versions of the trampoline.  Handle Thumb vs. ARM addresses.
9855         (arm_kernel_linux_restart_syscall_tramp_frame): New global.
9856         (arm_linux_init_abi): Install it.
9857         * arm-tdep.c (arm_psr_thumb_bit): Make global.
9858         * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
9859
9860 2011-02-28  Michael Snyder  <msnyder@vmware.com>
9861
9862         * ui-out.c (ui_out_field_core_addr): Make local char buffer
9863         a little bigger, to avoid possibility of an overflow.
9864
9865         * breakpoint.c (breakpoint_adjustment_warning): Make local char
9866         buffers a little bigger, to avoid possibility of an overflow.
9867
9868         * coffread.c (coff_getfilename): Add check to avoid overflow.
9869
9870         * objc-lang.c (selectors_info): Add a small safety margin to
9871         avoid overflow.
9872         (classes_info): Error out on too long REGEXP.
9873
9874         * infrun.c (handle_inferior_event): Remove unused function call.
9875
9876         * fork-child.c (fork_inferior): Remove ifdef'd code and
9877         unused variable.
9878
9879         * linux-thread-db.c (attach_thread): Discard unused value.
9880
9881         * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
9882
9883         * remote.c (remote_get_noisy_reply): Discard unused value.
9884         (remote_vcont_resume): Ditto.
9885         (remote_stop_ns): Ditto.
9886
9887         * linespec.c (decode_objc): Delete unused variable.
9888
9889         * tui/tui-regs.c (tui_register_format): Delete unused variable.
9890
9891         * dwarf2read.c (add_partial_symbol): Discard unused values.
9892         (read_base_type): Delete unused variable.
9893
9894         * dbxread.c (read_dbx_symtab): Discard unused value.
9895
9896         * eval.c (evaluate_subexp_standard): Delete unused variable,
9897         and discard unused values.
9898
9899         * infcmd.c (_initialize_infcmd): Discard unused values.
9900
9901         * stabsread.c (rs6000_builtin_type): Missing break statement.
9902
9903         * dbxread.c (process_one_symbol): Discard unused value.
9904
9905         * coffread.c (coff_end_symtab): Delete unused variable.
9906
9907         * dwarf2read.c (dw2_get_file_names): Discard unused value.
9908         (dwarf2_add_typedef): Delete unused variable.
9909         (read_namespace): Ditto.
9910         (dwarf_decode_macros): Ditto.
9911
9912         * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
9913
9914         * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
9915
9916         * p-valprint.c (pascal_val_print): Discard unused value.
9917
9918         * utils.c (nquery): Call va_end before return;
9919         (yquery): Ditto.
9920         (query): Ditto.
9921
9922         * proc-service.c (ps_plog): Call va_end before return.
9923
9924 2011-02-28  Tom Tromey  <tromey@redhat.com>
9925
9926         * python/python.c (gdbpy_value_cst): New global.
9927         (_initialize_python): Initialize it.
9928         * python/python-internal.h (gdbpy_value_cst): Declare.
9929         * python/py-value.c (convert_value_from_python): Use
9930         gdbpy_value_cst.
9931
9932 2011-02-28  Michael Snyder  <msnyder@vmware.com>
9933
9934         * python/py-cmd.c (cmdpy_init): Fix memory leak.
9935
9936         * breakpoint.c (catch_syscall_completer): Free malloced list.
9937
9938         * jv-lang.c (java_primitive_type_from_name): Add missing break.
9939
9940         * opencl-lang.c (lval_func_check_validity): Rename inner variables.
9941         (lval_func_check_synthetic_pointer): Ditto.
9942         (lval_func_free_closure): Fix use-after-free.
9943
9944 2011-02-28  Tom Tromey  <tromey@redhat.com>
9945
9946         * psymtab.c (expand_partial_symbol_tables): Use
9947         ALL_OBJFILE_PSYMTABS.
9948
9949 2011-02-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
9950
9951         * objc-lang.c (selectors_info): Error on too long REGEXP.
9952
9953 2011-02-28  Michael Snyder  <msnyder@vmware.com>
9954
9955         * python/py-param.c (set_parameter_value): Add missing
9956         break statement.
9957
9958         * linux-record.c (record_linux_system_call): Add missing
9959         break statement.
9960
9961 2011-02-28  Ulrich Weigand  <uweigand@de.ibm.com>
9962
9963         * breakpoint.c (print_one_breakpoint_location): Remove unused
9964         argument PRINT_ADDRESS_BITS.  Update callers.
9965         (print_one_breakpoint): Likewise.
9966
9967 2011-02-28  Ulrich Weigand  <uweigand@de.ibm.com>
9968
9969         * breakpoint.c (wrap_indent_at_field): New function.
9970         (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
9971         Allocate ui_stream locally instead of using STB argument.
9972         (print_one_breakpoint_location): Update call.
9973         * ui-out.c (ui_out_query_field): New function.
9974         * ui-out.h (ui_out_query_field): Add prototype.
9975
9976 2011-02-28  Joel Brobecker  <brobecker@adacore.com>
9977
9978         From Michael Snyder  <msnyder@vmware.com>
9979         * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
9980
9981 2011-02-27  Michael Snyder  <msnyder@vmware.com>
9982
9983         * objc-lang.c (selectors_info): Prevent string overrun.
9984
9985         * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
9986         error in strncpy.
9987
9988         * symtab.c (rbreak_command): Move variable 'file_name' to
9989         outer scope.
9990
9991         * d-valprint.c (dynamic_array_type): Avoid shadowing a function
9992         param with a local variable of the same name.
9993
9994 2011-02-27  Michael Snyder  <msnyder@vmware.com>
9995
9996         * value.c (value_from_history_ref): New function.
9997         * value.h (value_from_history_ref): Export.
9998         * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
9999         to parse value history references.
10000         * cli/cli-utils.h (get_number_trailer): Update comment.
10001
10002 2011-02-27  Michael Snyder  <msnyder@vmware.com>
10003
10004         * inferior.c (detach_inferior_command): Use get_number_or_range.
10005         (kill_inferior_command): Ditto.
10006         (remove_inferior_command): Ditto.
10007         (initialize_inferiors): Make command names plural.
10008         Update help strings.
10009
10010 2011-02-27  Michael Snyder  <msnyder@vmware.com>
10011
10012         * darwin-nat-info.c: Fix comment typo.
10013         * dwarf2expr.h: Ditto.
10014         * fbsd-nat.c: Ditto.
10015         * fbsd-nat.h: Ditto.
10016         * frame-unwind.h: Ditto.
10017         * frame.h: Ditto.
10018         * hppa-hpux-tdep.c: Ditto.
10019         * i386-linux-nat.c: Ditto.
10020         * linux-nat.c: Ditto.
10021         * nbsd-nat.c: Ditto.
10022         * nbsd-nat.h: Ditto.
10023         * ppc-linux-tdep.c: Ditto.
10024         * serial.c: Ditto.
10025         * ui-file.h: Ditto.
10026         * tui/tui-winsource.c: Ditto.
10027
10028 2011-02-26  Michael Snyder  <msnyder@vmware.com>
10029
10030         * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
10031
10032         * maint.c (maintenance_do_deprecate): Plug a memory leak.
10033
10034         * dwarf2loc.c (insert_bits): Avoid shadowing a function param
10035         with a local variable of the same name.
10036
10037         * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
10038         param with a local variable of the same name.
10039         (i387_supply_xsave): Ditto.
10040
10041         * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
10042         that it does not shadow a function parameter.
10043
10044         * i386-nat.c (i386_length_and_rw_bits): Document that case
10045         statement is meant to fall through.
10046
10047         * expprint.c (dump_subexp_body_standard): Document that case
10048         statement is meant to fall through.
10049
10050         * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
10051         dead if statement.  Condition can't be false.
10052
10053 2011-02-25  Michael Snyder  <msnyder@vmware.com>
10054
10055         * arm-tdep.c: Fix typos in comments.
10056         * bsd-uthread.c: Ditto.
10057         * completer.c: Ditto.
10058         * corelow.c: Ditto.
10059         * cp-namespace.c: Ditto.
10060         * cp-support.c: Ditto.
10061         * cris-tdep.c: Ditto.
10062         * dbxread.c: Ditto.
10063         * dwarf2read.c: Ditto.
10064         * frame.h: Ditto.
10065         * gdbtypes.h: Ditto.
10066         * inferior.h: Ditto.
10067         * mdebugread.c: Ditto.
10068         * mips-tdep.c: Ditto.
10069         * ppc-linux-nat.c: Ditto.
10070         * ppc-linux-tdep.c: Ditto.
10071         * printcmd.c: Ditto.
10072         * sol-thread.c: Ditto.
10073         * solib-frv.c: Ditto.
10074         * solist.h: Ditto.
10075         * sparc64-tdep.c: Ditto.
10076         * spu-tdep.c: Ditto.
10077         * stabsread.c: Ditto.
10078         * symfile.c: Ditto.
10079         * valops.c: Ditto.
10080         * varobj.c: Ditto.
10081         * vax-nat.c: Ditto.
10082         * python/py-block.c: Ditto.
10083         * python/py-symbol.c: Ditto.
10084         * python/py-symtab.c: Ditto.
10085         * python/py-value.c: Ditto.
10086         * tui/tui-win.c: Ditto.
10087
10088 2011-02-25  Michael Snyder  <msnyder@vmware.com>
10089
10090         * inferior.c (print_inferior): Accept a string instead of an int
10091         for requested_inferiors, and use get_number_or_range to parse it.
10092         (info_inferiors_command): Pass args string to print_inferior.
10093         (initialize_inferiors): Change help string for info inferiors.
10094         * inferior.h (print_inferior): Export prototype change.
10095
10096 2011-02-25  Tom Tromey  <tromey@redhat.com>
10097
10098         * common/ax.def (invalid2): Set to 0x31.
10099
10100 2011-02-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
10101
10102         * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
10103         L and plongest.
10104         (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
10105         use L and plongest.
10106         (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
10107
10108 2011-02-24  Michael Snyder  <msnyder@vmware.com>
10109
10110         * Makefile.in (clean): Make clean should remove generated files
10111         observer.h and observer.inc.
10112
10113 2011-02-24  Joel Brobecker  <brobecker@adacore.com>
10114
10115         Revert the following patch (not approved yet):
10116         2011-02-21  Hui Zhu  <teawater@gmail.com>
10117         * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
10118         * ax-gdb.c (gen_printf_expr_callback): New function.
10119         * ax-gdb.h (gen_printf_expr_callback): Forward declare.
10120         * ax-general.c (ax_memcpy): New function.
10121         (ax_print): Handle "printf".
10122         (ax_reqs): Ditto.
10123         * ax.h (ax_memcpy): Forward declare.
10124         * common/ax.def (invalid2): Removed.
10125         (printf): New entry.
10126         * printcmd.c (printcmd.h): New include.
10127         (string_printf): New function.
10128         (ui_printf): Removed.
10129         (printf_command): Remove static.  Call string_printf.
10130         (eval_command): Call string_printf.
10131         * printcmd.h: New file.
10132         * tracepoint.c (validate_actionline,
10133         encode_actions_1): handle printf_command.
10134
10135 2011-02-23  Tom Tromey  <tromey@redhat.com>
10136
10137         * ax-general.c (ax_pick): Add missing newline.
10138
10139 2011-02-23  Michael Snyder  <msnyder@vmware.com>
10140
10141         * breakpoint.c (breakpoint_1): Change first argument from an int
10142         to a char pointer, so that the function now accepts a list of
10143         breakpoints rather than just one.  Use new function
10144         'number_is_in_list' to implement.
10145         (breakpoints_info): Pass char * instead of int to breakpoint_1.
10146         (watchpoints_info): Ditto.
10147         (tracepoints_info): Ditto.
10148         (maintenance_info_breakpoints): Ditto.
10149         (_initialize_breakpoint): Update help strings to reflect the fact
10150         that these functions can now take more than one argument.
10151         * cli/cli-utils.c (number_is_in_list): New function.
10152         * cli/cli-utils.h (number_is_in_list): Export.
10153
10154 2011-02-23  Michael Snyder  <msnyder@vmware.com>
10155
10156         * memattr.c (mem_enable_command): Use get_number_or_range.
10157         (mem_disable_command): Ditto.
10158         (mem_delete_command): Ditto.
10159         (_initialize_mem): Tweak usage message to reflect multiple
10160         arguments.
10161
10162 2011-02-22  Doug Evans  <dje@google.com>
10163
10164         Add gdb.lookup_global_symbol python function.
10165         * NEWS: Add entry.
10166         * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
10167         * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
10168         * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
10169
10170 2011-02-22  Tom Tromey  <tromey@redhat.com>
10171
10172         * language.c (language_class_name_from_physname): Rename
10173         'curr_language' argument to 'lang'; use in body.
10174
10175 2011-02-22  Michael Snyder  <msnyder@vmware.com>
10176
10177         * cli/cli-utils.c (number_is_in_list): Check for zero return.
10178
10179 2011-02-22  Pedro Alves  <pedro@codesourcery.com>
10180
10181         * frame-unwind.h: Fix comment to mention the this frame, not the
10182         next.
10183
10184 2011-02-22  Tom Tromey  <tromey@redhat.com>
10185
10186         * symfile.c (auto_solib_limit): Remove.
10187         * symfile.h (auto_solib_limit): Remove.
10188
10189 2011-02-22  Joel Brobecker  <brobecker@adacore.com>
10190
10191         * Makefile.in (INSTALLED_LIBS): Delete.  Update comment.
10192
10193 2011-02-21  Michael Snyder  <msnyder@vmware.com>
10194
10195         * gdbthread.h (print_thread_info): Change prototype.
10196         * thread.c (print_thread_info): Accept char* instead of int for
10197         requested_threads argument.  Use new function number_is_in_list
10198         to determine which threads to list.
10199         (info_threads_command): Pass char* to print_thread_info.
10200         * cli/cli-utils.c (number_is_in_list): New function.
10201         * cli/cli-utils.h (number_is_in_list): Export.
10202         * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
10203         print_thread_info.
10204         (print_one_inferior): Ditto.
10205         (mi_cmd_list_thread_groups): Ditto.
10206
10207 2011-02-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
10208
10209         * common/Makefile.in (CFLAGS): New.
10210         (COMPILE): Add $(CFLAGS).
10211
10212 2011-02-21  Tom Tromey  <tromey@redhat.com>
10213
10214         * breakpoint.c (catch_syscall_command_1): Fix typo.
10215
10216 2011-02-21  Tom Tromey  <tromey@redhat.com>
10217
10218         * reverse.c: Include cli-utils.h.
10219         * printcmd.c: Include cli-utils.h.
10220         (string_printf): Use skip_spaces.
10221         * cli/cli-utils.h: New file.
10222         * cli/cli-utils.c: New file.
10223         * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
10224         * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
10225         * breakpoint.h (get_number, get_number_or_range): Move to
10226         cli-utils.h.
10227         * breakpoint.c: Include cli-utils.h.
10228         (get_number_trailer, get_number, get_number_or_range)
10229         (ep_skip_leading_whitespace): Move to cli-utils.c.
10230         (create_breakpoint_sal, find_condition_and_thread)
10231         (decode_static_tracepoint_spec, watch_command_1)
10232         (watch_maybe_just_location, ep_parse_optional_if_clause)
10233         (catch_fork_command_1, catch_exec_command_1)
10234         (catch_syscall_command_1): Use skip_spaces, skip_to_space.
10235         * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
10236         (SUBDIR_CLI_SRCS): Add cli-utils.c.
10237         (HFILES_NO_SRCDIR): Add cli-utils.h.
10238         (cli-utils.o): New target.
10239
10240 2011-02-18  Pierre Muller  <muller@ics.u-strasbg.fr>
10241
10242         * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
10243         before calling discard_all_inferiors.
10244
10245 2011-02-21  Ulrich Weigand  <uweigand@de.ibm.com>
10246
10247         * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
10248         (struct builtin_opencl_type): Remove.
10249         (builtin_opencl_type): Change return type to "struct type **".
10250         (lookup_opencl_vector_type): Update caller.
10251         (opencl_language_arch_info): Copy primitive type vector from gdbarch.
10252         (build_opencl_types): Install plain array of "struct type *"
10253         instead of "struct builtin_opencl_type".
10254
10255 2011-02-21  Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
10256             Ulrich Weigand  <uweigand@de.ibm.com>
10257
10258         * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
10259         (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
10260         (struct arm_linux_hwbp_cap): New type.
10261         (arm_linux_get_hwbp_cap): New function.
10262         (arm_linux_get_hw_breakpoint_count): Likewise.
10263         (arm_linux_get_hw_watchpoint_count): Likewise.
10264         (arm_linux_can_use_hw_breakpoint): Likewise.
10265         (arm_hwbp_type): New type.
10266         (arm_hwbp_control_t): Likewise.
10267         (struct arm_linux_hw_breakpoint): Likewise.
10268         (struct arm_linux_thread_points): Likewise.
10269         (arm_threads): New global variable.
10270         (arm_linux_find_breakpoints_by_tid): New function.
10271         (arm_hwbp_control_initialize): Likewise.
10272         (arm_hwbp_control_is_enabled): Likewise.
10273         (arm_hwbp_control_disable): Likewise.
10274         (arm_linux_hw_breakpoint_initialize): Likewise.
10275         (arm_linux_get_hwbp_type): Likewise.
10276         (arm_linux_hw_watchpoint_initialize): Likewise.
10277         (arm_linux_hw_breakpoint_equal): Likewise.
10278         (arm_linux_insert_hw_breakpoint1): Likewise.
10279         (arm_linux_remove_hw_breakpoint1): Likewise.
10280         (arm_linux_insert_hw_breakpoint): Likewise.
10281         (arm_linux_remove_hw_breakpoint): Likewise.
10282         (arm_linux_region_ok_for_hw_watchpoint): Likewise.
10283         (arm_linux_insert_watchpoint): Likewise.
10284         (arm_linux_remove_watchpoint): Likewise.
10285         (arm_linux_stopped_data_address): Likewise.
10286         (arm_linux_stopped_by_watchpoint): Likewise.
10287         (arm_linux_watchpoint_addr_within_range): Likewise.
10288         (arm_linux_new_thread): Likewise.
10289         (arm_linux_thread_exit): Likewise.
10290         (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
10291         related target callbacks.  Register arm_linux_new_thread and
10292         arm_linux_thread_exit.
10293         * arm-tdep.h (arm_pc_is_thumb): Add prototype.
10294         * arm-tdep.c (arm_pc_is_thumb): Make global.
10295         (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
10296
10297 2011-02-21  Ulrich Weigand  <uweigand@de.ibm.com>
10298
10299         * breakpoint.c (update_watchpoint): Do not attempt to recreate
10300         per-frame locations while within a function epilogue.
10301
10302 2011-02-21  Pierre Muller  <muller@ics.u-strasbg.fr>
10303
10304         * ser-mingw.c (ser_windows_close): Reformat comment to better conform
10305         to GNU coding standards.
10306
10307 2011-02-21  Pierre Muller  <muller@ics.u-strasbg.fr>
10308
10309         Allow use of mingw native on Windows 95 OS.
10310         * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
10311         (ser_windows_close): Only call CancelIo if function exists.
10312         (_initialize_ser_windows): Use LoadLirary/GetProcAddress
10313         to check for existence of CancelIo function in kernel32 DLL.
10314
10315 2011-02-21  Hui Zhu  <teawater@gmail.com>
10316
10317         * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
10318         * ax-gdb.c (gen_printf_expr_callback): New function.
10319         * ax-gdb.h (gen_printf_expr_callback): Forward declare.
10320         * ax-general.c (ax_memcpy): New function.
10321         (ax_print): Handle "printf".
10322         (ax_reqs): Ditto.
10323         * ax.h (ax_memcpy): Forward declare.
10324         * common/ax.def (invalid2): Removed.
10325         (printf): New entry.
10326         * printcmd.c (printcmd.h): New include.
10327         (string_printf): New function.
10328         (ui_printf): Removed.
10329         (printf_command): Remove static.  Call string_printf.
10330         (eval_command): Call string_printf.
10331         * printcmd.h: New file.
10332         * tracepoint.c (validate_actionline,
10333         encode_actions_1): handle printf_command.
10334
10335 2011-02-19  Michael Snyder  <msnyder@vmware.com>
10336
10337         * reverse.c (delete_one_bookmark): Argument is now bookmark
10338         id rather than pointer to bookmark struct.
10339         (delete_bookmark_command): Use get_number_or_range.
10340         (goto_bookmark_command): Parse with get_number instead of strtoul.
10341         (bookmark_1): New function.  Print info for one bookmark.
10342         (bookmarks_info): Use get_number_or_range and bookmark_1.
10343
10344 2011-02-18  Michael Snyder  <msnyder@vmware.com>
10345
10346         * thread.c (info_threads_command): Re-implement using
10347         get_number_or_range.
10348         (thread_apply_command): Ditto.
10349
10350 2011-02-18  Tom Tromey  <tromey@redhat.com>
10351
10352         * common/ax.def: New file.
10353         * ax.h (enum agent_op): Use ax.def.
10354         * ax-general.c (aop_map): Use ax.def.
10355
10356 2011-02-18  Tom Tromey  <tromey@redhat.com>
10357
10358         * ax-general.c (aop_map): Add pick and rot.
10359         * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
10360         <DW_OP_rot>: Implement.
10361         * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
10362         (ax_pick): Declare.
10363         * ax-general.c (ax_pick): New function.
10364
10365 2011-02-18  Tom Tromey  <tromey@redhat.com>
10366
10367         * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
10368
10369 2011-02-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
10370             Tom Tromey  <tromey@redhat.com>
10371
10372         * cp-support.c (make_symbol_overload_list_namespace): Do not call
10373         make_symbol_overload_list_block with NULL BLOCK.
10374         * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
10375
10376 2011-02-18  Pedro Alves  <pedro@codesourcery.com>
10377
10378         * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
10379         * breakpoint.h (get_number_or_range): Declare.
10380         * printcmd.c (ALL_DISPLAYS): Declare.
10381         (delete_display): Reimplement taking a display pointer.
10382         (undisplay_command): Accept a range of displays to delete, using
10383         get_number_or_range.
10384
10385 2011-02-18  Pierre Muller  <muller@ics.u-strasbg.fr>
10386
10387         * c-valprint.c (c_val_print): Add embedded_offset to address
10388         for arrays of unspecified length.
10389         * p-valprint.c (pascal_val_print): Likewise.
10390
10391 2011-02-18  Yao Qi  <yao@codesourcery.com>
10392
10393         * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
10394         (arm_process_displaced_insn): .. here. Remove parameter INSN.
10395         (thumb_process_displaced_insn): New.
10396         * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
10397         call to arm_process_displaced_insn.
10398         * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
10399
10400 2011-02-17  Tom Tromey  <tromey@redhat.com>
10401
10402         * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
10403         * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
10404         compile_dwarf_to_ax.  No longer static.  Call
10405         dwarf2_compile_cfa_to_ax.
10406         (locexpr_tracepoint_var_ref): Update.
10407         (loclist_tracepoint_var_ref): Update.
10408         * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
10409         * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
10410         argument; add 'gdbarch' and 'pc'.
10411         (dwarf2_compile_cfa_to_ax): New function.
10412         (dwarf2_frame_cache): Update.
10413
10414 2011-02-17  Joel Brobecker  <brobecker@adacore.com>
10415
10416         * ada-lang.c (ada_type_of_array): Fix the size of the array
10417         in the case of an unconstrained packed array.
10418
10419 2011-02-17  Yao Qi  <yao@codesourcery.com>
10420
10421         * common/Makefile.in: Add more targets for make.
10422
10423 2011-02-16  Tom Tromey  <tromey@redhat.com>
10424
10425         * dwarf2loc.c (unimplemented): Fix typo.
10426
10427 2011-02-16  Tom Tromey  <tromey@redhat.com>
10428
10429         * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
10430         (compile_dwarf_to_ax) <default>: Use unimplemented.
10431         <DW_OP_deref>: Update.
10432         (disassemble_dwarf_expression): Update.
10433         * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
10434         (decode_locdesc): Update.
10435         * dwarf2expr.h (dwarf_stack_op_name): Update.
10436
10437 2011-02-16  Tom Tromey  <tromey@redhat.com>
10438
10439         * ax.h (struct aop_map) <name>: Now const.
10440
10441 2011-02-16  Tom Tromey  <tromey@redhat.com>
10442
10443         * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
10444         than axs_rvalue.
10445
10446 2011-02-16  Yao Qi  <yao@codesourcery.com>
10447
10448         * infrun.c (get_displaced_step_closure_by_addr): New.
10449         * inferior.h: Declare it.
10450         * arm-tdep.c: (arm_pc_is_thumb): Call
10451         get_displaced_step_closure_by_addr.  Adjust MEMADDR if it
10452         returns non-NULL.
10453
10454 2011-02-16  Pedro Alves  <pedro@codesourcery.com>
10455             Jan Kratochvil  <jan.kratochvil@redhat.com>
10456
10457         gdb/
10458         * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
10459
10460 2011-02-16  Pedro Alves  <pedro@codesourcery.com>
10461             Jan Kratochvil  <jan.kratochvil@redhat.com>
10462
10463         * value.c (value_contents_copy_raw): Extend describing comment.
10464         Assert that the destination contents we're overwriting are wholly
10465         available.
10466         (value_contents_copy): Extend describing comment.
10467
10468 2011-02-16  Pedro Alves  <pedro@codesourcery.com>
10469             Jan Kratochvil  <jan.kratochvil@redhat.com>
10470
10471         * value.c (value_available_contents_eq): Remove redundant local
10472         variables.  Fix available contents comparision.
10473         * value.h (value_available_contents_eq): Extend describing
10474         comment.
10475
10476 2011-02-16  Yao Qi  <yao@codesourcery.com>
10477
10478         * thread.c (info_threads_command): Add missing i18n markup and remove
10479         trailing newline.
10480
10481 2011-02-15  Paul Pluzhnikov  <ppluzhnikov@google.com>
10482
10483         * breakpoint.c (longjmp_names): New variable.
10484         (struct breakpoint_objfile_data): New type.
10485         (breakpoint_objfile_key): New variable.
10486         (msym_not_found): New variable.
10487         (msym_not_found_p): New predicate.
10488         (get_breakpoint_objfile_data): New function.
10489         (create_overlay_event_breakpoint): Check per-objfile cache for
10490         symbols first.
10491         (create_longjmp_master_breakpoint): Likewise.
10492         (create_std_terminate_master_breakpoint): Likewise.
10493         (create_exception_master_breakpoint): Likewise.
10494         (_initialize_breakpoint): Register per-objfile data key.
10495
10496 2011-02-15  Paul Pluzhnikov  <ppluzhnikov@google.com>
10497
10498         * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
10499         parameter value.
10500         (create_longjmp_master_breakpoint): Loop over longjmp names.
10501         (create_std_terminate_master_breakpoint): Const-propagate parameter
10502         value.
10503         (update_breakpoints_after_exec): Adjust.
10504         (breakpoint_re_set): Adjust.
10505
10506 2011-02-15  Michael Snyder  <msnyder@vmware.com>
10507
10508         * thread.c (info_threads_command): Process arg as thread id,
10509         or list of thread ids.
10510         (thread_find_command): New command.
10511         (_initialize_thread): Document argument for info threads.
10512         Document 'thread find' command.
10513         * NEWS: Document new command "thread find".
10514
10515 2011-02-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
10516
10517         * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
10518         * aclocal.m4: Regenerated with aclocal-1.11.1.
10519         * common/configure: Regenerate with autoconf-2.64.
10520
10521 2011-02-15  Ken Werner  <ken.werner@de.ibm.com>
10522
10523         * opencl-lang.c (build_opencl_types): Set the size of the built-in
10524         bool data type to a size of one byte.
10525
10526 2011-02-15  Pedro Alves  <pedro@codesourcery.com>
10527             Jan Kratochvil  <jan.kratochvil@redhat.com>
10528
10529         * target.c (memory_xfer_live_readonly_partial): Document where to
10530         look for interface description.
10531
10532 2011-02-15  Yao Qi  <yao@codesourcery.com>
10533
10534         PR tdep/12352
10535         * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
10536         order to store PC value on stack instead of text section.
10537
10538 2011-02-15  Thiago Jung Bauermann  <bauerman@br.ibm.com>
10539
10540         * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
10541         the EFP register set size.
10542         (efpr_pseudo_register_read): Use regcache_raw_read_part to read
10543         data from the VMX register.
10544         (efpr_pseudo_register_write): Use regcache_raw_write_part to read
10545         and write data from/to the VMX register.
10546
10547 2011-02-14  Michael Snyder  <msnyder@vmware.com>
10548
10549         * command.h (enum command_class): New class 'no_set_class', for
10550         "show" commands without a corresponding "set" command.
10551         * value.c (_initialize_values): Use 'no_set_class' for "show values".
10552         * copying.c (_initialize_copying): Ditto for "show copying" and
10553         "show warranty".
10554         * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
10555         "show version".
10556         * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
10557         which there is no corresponding "set" command (eg. "show copying").
10558
10559 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
10560             Jan Kratochvil  <jan.kratochvil@redhat.com>
10561
10562         * exec.c (section_table_available_memory): Change `len' parameter
10563         type to ULONGEST.
10564         * exec.h (section_table_available_memory): Ditto.
10565         * value.h (read_value_memory): Rename the `offset' parameter to
10566         `embedded_offset'.
10567
10568 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
10569             Jan Kratochvil  <jan.kratochvil@redhat.com>
10570
10571         * memrange.c (compare_mem_ranges): Mention sort order in
10572         describing comment.
10573         (normalize_mem_ranges): Add comment.  Fix ra->length calculation.
10574         * tracepoint.c (traceframe_available_memory): Extend comment to
10575         mention what happens to RESULT when the target does not support
10576         the query.
10577
10578 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
10579             Jan Kratochvil  <jan.kratochvil@redhat.com>
10580
10581         * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
10582         range.
10583
10584 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
10585
10586         * value.c (value_bits_valid, value_bits_synthetic_pointer):
10587         No longer handle NULL values.
10588
10589 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
10590
10591         * exceptions.h (NOT_AVAILABLE_ERROR): New error.
10592         * value.c: Include "exceptions.h".
10593         (require_available): Throw NOT_AVAILABLE_ERROR instead of a
10594         generic error.
10595         * cp-abi.c: Include gdb_assert.h.
10596         (baseclass_offset): Add `embedded_offset' and `val' parameters.
10597         Assert the method is implemented.  Wrap NOT_AVAILABLE_ERROR
10598         errors.
10599         * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
10600         parameters.  No longer returns -1 on error.
10601         (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
10602         `val' parameters.
10603         * cp-valprint.c: Include exceptions.h.
10604         (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
10605         the baseclass_offset.  Handle unavailable base classes.  Use
10606         val_print_invalid_address.
10607         * p-valprint.c: Include exceptions.h.
10608         (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
10609         when fetching the baseclass_offset.  No longer expect
10610         baseclass_offset returning -1.  Handle unavailable base classes.
10611         Use val_print_invalid_address.
10612         * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
10613         `valaddr' parameter, and change its type to gdb_byte pointer.  Add
10614         `embedded_offset' and `val' parameters.  Adjust.
10615         (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
10616         parameter, and change its type to gdb_byte pointer.  Add
10617         `embedded_offset' and `val' parameters.  Adjust.  No longer expect
10618         baseclass_offset returning -1.
10619         (value_dynamic_cast): Use value_contents_for_printing rather than
10620         value_contents.  Adjust.
10621         (search_struct_field): No longer expect baseclass_offset returning
10622         -1.
10623         (search_struct_method): If reading memory from the target is
10624         necessary, wrap it in a new value to pass to baseclass_offset.  No
10625         longer expect baseclass_offset returning -1.
10626         (find_method_list): No longer expect baseclass_offset returning
10627         -1.  Use value_contents_for_printing rather than value_contents.
10628         * valprint.c (val_print_invalid_address): New function.
10629         * valprint.h (val_print_invalid_address): Declare.
10630         * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
10631         and `val' parameters.  No longer expect baseclass_offset returning
10632         -1.  Adjust.
10633         * gnu-v2-abi.c: Include "exceptions.h".
10634         (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
10635         parameters.  Handle unavailable memory.  Recurse through
10636         gnuv2_baseclass_offset directly, rather than through
10637         baseclass_offset.  No longer returns -1 on not found, instead
10638         throw an error.
10639         * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
10640         `val' parameters.  Adjust.
10641
10642 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
10643
10644         * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
10645         almost but not quite adjacent.
10646
10647 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
10648
10649         * value.h (value_entirely_available): Declare.
10650         * value.c (value_entirely_available): New function.
10651         * c-valprint.c (c_value_print): Don't try fetching the pointer's
10652         real type if the pointer is unavailable.
10653
10654 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
10655
10656         * valops.c (value_repeat): Use read_value_memory instead of
10657         read_memory.
10658
10659 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
10660
10661         * value.h (value_contents_copy, value_contents_copy_raw): Declare.
10662         * value.c (value_contents_copy_raw, value_contents_copy): New
10663         functions.
10664         (value_primitive_field): Use value_contents_copy_raw instead of
10665         memcpy.
10666         * valops.c (value_fetch_lazy): Use value_contents_copy instead of
10667         memcpy.
10668         (value_array, value_slice): Ditto.
10669         * valarith.c (value_subscripted_rvalue): Use
10670         value_contents_copy_raw instead of memcpy.
10671
10672 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
10673
10674         <unavailable> references.
10675
10676         * valops.c (get_value_at): Use value_from_contents_and_address,
10677         avoiding read_memory.
10678
10679 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
10680
10681         * c-valprint.c (c_val_print): Print a string with unavailable
10682         contents as an array.
10683
10684 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
10685
10686         * value.h (unpack_bits_as_long): Delete declaration.
10687         (unpack_value_bits_as_long): Declare.
10688         (unpack_value_field_as_long): Declare.
10689         (value_field_bitfield): Declare.
10690         * value.c (unpack_bits_as_long): Rename to...
10691         (unpack_value_bits_as_long_1): ... this.  Add embedded_offset and
10692         value parameters.  Return the extracted result in a new output
10693         parameter.  If the value contents are unavailable, return false,
10694         otherwise return true.
10695         (unpack_value_bits_as_long): New.
10696         (unpack_field_as_long): Rename to...
10697         (unpack_value_field_as_long_1): ... this.  Add embedded_offset and
10698         Add embedded_offset and value parameters.  Return the extracted
10699         result in a new output parameter. If the value contents are
10700         unavailable, return false, otherwise return true.
10701         (unpack_value_field_as_long): New.
10702         (unpack_field_as_long_1): New.
10703         (unpack_field_as_long): Reimplement as wrapper around
10704         unpack_value_field_as_long_1.
10705         (value_field_bitfield): New function.
10706         * valops.c (value_fetch_lazy): When fetching a bitfield, use
10707         unpack_value_bits_as_long.  Mark the value as unavailable, if it
10708         is unavailable.
10709         * jv-valprint.c (java_print_value_fields): Use
10710         value_field_bitfield.
10711         * p-valprint.c (pascal_object_print_value_fields): Use
10712         value_field_bitfield.
10713         * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
10714
10715 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
10716
10717         * value.c (get_internalvar_integer): Also return the int value of
10718         TYPE_CODE_INT INTERNALVAR_VALUE values.
10719         (set_internalvar): Don't special case TYPE_CODE_INT.
10720
10721 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
10722
10723         * value.c (struct internalvar) <enum internalvar_kind>: Remove
10724         INTERNALVAR_POINTER.
10725         <pointer>: Delete.
10726         (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
10727         (set_internalvar): Remove special TYPE_CODE_PTR handling.
10728         (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
10729
10730 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
10731
10732         * value.h (value_available_contents_eq): Declare.
10733         * value.c (find_first_range_overlap): New function.
10734         (value_available_contents_eq): New function.
10735         * valprint.c (val_print_array_elements): Use
10736         value_available_contents_eq.
10737         * ada-valprint.c (val_print_packed_array_elements): Use
10738         value_available_contents_eq.
10739         * jv-valprint.c (java_value_print): Use
10740         value_available_contents_eq.
10741
10742 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
10743
10744         * target.c (target_read_live_memory): New function.
10745         (memory_xfer_live_readonly_partial): New.
10746         (memory_xfer_partial): If reading from a traceframe, fallback to
10747         reading unavailable read-only memory from read-only regions of
10748         live target memory.
10749         * tracepoint.c (disconnect_tracing): Adjust.
10750         (set_current_traceframe): New, factored out from
10751         set_traceframe_number.
10752         (set_traceframe_number): Reimplement to only change the traceframe
10753         number on the GDB side.
10754         (do_restore_current_traceframe_cleanup): Adjust.
10755         (make_cleanup_restore_traceframe_number): New.
10756         (cur_traceframe_number): New global.
10757         (tfile_open): Set cur_traceframe_number to no traceframe.
10758         (set_tfile_traceframe): New function.
10759         (tfile_trace_find): If looking up a traceframe using any method
10760         other than by number, make sure the current tfile traceframe
10761         matches gdb's current traceframe.  Update the current tfile
10762         traceframe if the lookup succeeded.
10763         (tfile_fetch_registers, tfile_xfer_partial)
10764         (tfile_get_trace_state_variable_value): Make sure the remote
10765         traceframe matches gdb's current traceframe.
10766         * remote.c (remote_traceframe_number): New global.
10767         (remote_open_1): Set it to -1.
10768         (set_remote_traceframe): New function.
10769         (remote_fetch_registers, remote_store_registers)
10770         (remote_xfer_memory, remote_xfer_partial)
10771         (remote_get_trace_state_variable_value): Make sure the remote
10772         traceframe matches gdb's current traceframe.
10773         (remote_trace_find): If looking up a traceframe using any method
10774         other than by number, make sure the current remote traceframe
10775         matches gdb's current traceframe.  Update the current remote
10776         traceframe if the lookup succeeded.
10777         * infrun.c (fetch_inferior_event): Adjust.
10778         * tracepoint.h (set_current_traceframe): Declare.
10779         (get_traceframe_number, set_traceframe_number): Add describing
10780         comments.
10781
10782 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
10783
10784         Mark pieces of values as unavailable if the corresponding memory
10785         is unavailable.
10786
10787         * valops.c: Include tracepoint.h.
10788         (value_fetch_lazy): Use read_value_memory.
10789         (read_value_memory): New.
10790         * value.h (read_value_memory): Declare.
10791         * dwarf2loc.c (read_pieced_value): Use read_value_memory.
10792         * exec.c (section_table_available_memory): New function.
10793         * exec.h (section_table_available_memory): Declare.
10794
10795 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
10796
10797         * Makefile.in (SFILES): Add memrange.c.
10798         (HFILES_NO_SRCDIR): Add memrange.h.
10799         (COMMON_OBS): Add memrange.o.
10800         * memrange.c: New file.
10801         * memrange.h: New file.
10802         * tracepoint.c: Include memrange.h.
10803         (struct mem_range): Delete.
10804         (mem_range_s): Delete.
10805         (traceframe_available_memory): New function.
10806         * tracepoint.h (traceframe_available_memory): Declare.
10807
10808 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
10809
10810         * target.h (struct traceframe_info): Forward declare.
10811         (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
10812         (struct target_ops) <to_traceframe_info>: New field.
10813         (target_traceframe_info): New.
10814         * target.c (update_current_target): Inherit and default
10815         to_traceframe_info.
10816         * remote.c (PACKET_qXfer_traceframe_info): New.
10817         (remote_protocol_features): Register qXfer:traceframe-info:read.
10818         (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
10819         (remote_traceframe_info): New.
10820         (init_remote_ops): Install it.
10821         (_initialize_remote): Install "set/show remote traceframe-info"
10822         commands.
10823         * tracepoint.h (parse_traceframe_info): Declare.
10824         * tracepoint.c (struct mem_range): New.
10825         (mem_range_s): New typedef.
10826         (struct traceframe_info): New.
10827         (traceframe_info): New global.
10828         (free_traceframe_info): New function.
10829         (clear_traceframe_info): New function.
10830         (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
10831         info.
10832         (build_traceframe_info): New function.
10833         (tfile_traceframe_info): New function.
10834         (init_tfile_ops): Install tfile_traceframe_info.
10835         (traceframe_info_start_memory, free_result): New functions.
10836         (memory_attributes, traceframe_info_elements): New globals.
10837         (parse_traceframe_info, get_traceframe_info): New functions.
10838         * features/traceframe-info.dtd: New file.
10839         * Makefile.in (XMLFILES): Add traceframe-info.dtd.
10840
10841 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
10842
10843         Base support for <unavailable> value contents.
10844
10845         * value.h (value_bytes_available): Declare.
10846         (mark_value_bytes_unavailable): Declare.
10847         * value.c (struct range): New struct.
10848         (range_s): New typedef.
10849         (ranges_overlap): New function.
10850         (range_lessthan): New function.
10851         (ranges_contain_p): New function.
10852         (struct value) <unavailable>: New field.
10853         (value_bytes_available): New function.
10854         (mark_value_bytes_unavailable): New function.
10855         (require_not_optimized_out): Constify parameter.
10856         (require_available): New function.
10857         (value_contents_all, value_contents): Require all bytes be
10858         available.
10859         (value_free): Free `unavailable'.
10860         (value_copy): Copy `unavailable'.
10861         * valprint.h (val_print_unavailable): Declare.
10862         * valprint.c (valprint_check_validity): Rename `offset' parameter
10863         to `embedded_offset'.  If printing a scalar, check whether the
10864         value chunk is available.
10865         (val_print_unavailable): New.
10866         (val_print_scalar_formatted): Check whether the value is
10867         available.
10868         * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
10869         pretty-printing unavailable values.
10870
10871 2011-02-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
10872
10873         Fix const/volatile qualifiers of C++ types, PR c++/12328.
10874         * c-typeprint.c (c_type_print_args): Update the function comment.  New
10875         variable param_type, initialize it.  Remove const/volatile qualifiers
10876         for language_cplus and !show_artificial.  Use param_type.
10877
10878 2011-02-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
10879
10880         * symtab.c (find_pc_sect_line): New variable objfile, initialize it
10881         from S.  Iterate S using ALL_OBJFILE_SYMTABS.  Verify BV for each S.
10882         * symtab.h (struct symtab) <next>: Comment extension.
10883
10884 2011-02-12  Yao Qi  <yao@codesourcery.com>
10885
10886         * Makefile.in (CLEANDIRS): Remove duplicated common dir.
10887
10888 2011-02-11  Yao Qi  <yao@codesourcery.com>
10889
10890         * common/Makefile.in: Add copyright header.
10891
10892 2011-02-11  Pedro Alves  <pedro@codesourcery.com>
10893
10894         * infrun.c (proceed): Move switching out and in of tfind mode from
10895         here ...
10896         (fetch_inferior_event): ... to here.
10897
10898 2011-02-11  Yao Qi  <yao@codesourcery.com>
10899
10900         * Makefile.in: Remove signals.o from COMMON_OBS.  Link
10901         libcommon.a.
10902         * configure.ac: Add common to sub dir.
10903         * configure: Regenerate.
10904
10905 2011-02-11  Yao Qi  <yao@codesourcery.com>
10906
10907         Build libcommon.a.
10908
10909         * common/Makefile.in: New.
10910         * common/configure.ac: New.
10911         * common/aclocal.m4: New.
10912         * common/configure: Generate.
10913
10914 2011-02-10  Pedro Alves  <pedro@codesourcery.com>
10915
10916         * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
10917         side of the parenthesis.
10918
10919         Merge from GCC:
10920         2010-07-13  Jakub Jelinek  <jakub@redhat.com>
10921         * vec.h (VEC_block_remove): Fix comment.
10922
10923 2011-02-08  Michael Snyder  <msnyder@vmware.com>
10924
10925         * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
10926
10927 2011-02-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
10928
10929         * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
10930         in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
10931         psubd and paddd.
10932
10933 2011-02-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
10934
10935         PR 12361.
10936         * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
10937         phsubsw.
10938         (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
10939         (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
10940
10941 2011-02-08  Ulrich Weigand  <uweigand@de.ibm.com>
10942
10943         * dwarf2read.c (read_subroutine_type): Set special calling
10944         convention flag for functions compiled by IBM XL C for OpenCL.
10945         * ppc-sysv-tdep.c: Include "dwarf2.h"
10946         (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
10947         calling convention.
10948         (do_ppc_sysv_return_value): Add FUNC_TYPE argument.  Implement
10949         IBM OpenCL vector types calling convention.
10950         (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
10951         (ppc_sysv_abi_broken_return_value): Likewise.
10952         (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
10953         types calling convention.
10954         (ppc64_sysv_abi_return_value): Likewise.
10955         * spu-tdep.c: Include "dwarf2.h"
10956         (spu_return_value): Implement IBM OpenCL vector types calling
10957         convention.
10958
10959 2011-02-08  Ulrich Weigand  <uweigand@de.ibm.com>
10960
10961         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
10962         correct ABI for AltiVec vector arguments.
10963
10964 2011-02-07  Pedro Alves  <pedro@codesourcery.com>
10965
10966         * valprint.c (val_print): Extend comment.
10967         * ada-valprint.c (ada_valprint): Rewrite comment deferring
10968         interface explanation to val_print.
10969         (ada_val_print_array): Adjust comment to current interface.
10970         (print_field_values): Adjust comment to current interface.
10971         * c-valprint.c (c_val_print): Rewrite comment deferring interface
10972         explanation to val_print.
10973         * f-valprint.c (f_val_print): Ditto.
10974         * jv-valprint.c (java_val_print): Ditto.
10975         * m2-valprint.c (m2_val_print): Ditto.
10976         * p-valprint.c (pascal_val_print): Ditto.
10977
10978 2011-02-07  Thiago Jung Bauermann  <bauerman@br.ibm.com>
10979
10980         * breakpoint.c (parse_breakpoint_sals): Fix description.
10981
10982 2011-02-04  Sami Wagiaalla  <swagiaal@redhat.com>
10983             Oguz Kayral <oguzkayral@gmail.com>
10984
10985         * python/py-inferior.c (python_on_normal_stop): New function.
10986         (python_on_resume): New function.
10987         (python_inferior_exit): New function.
10988         (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
10989         inferior_exit observers.
10990         * python/py-evtregistry.c: New file.
10991         * python/py-threadevent.c : New file.
10992         * python/py-event.c: New file.
10993         * python/py-evts.c: New file.
10994         * python/py-continueevent.c: New file.
10995         * python/py-bpevent.c: New file.
10996         * python/py-signalevent.c: New file.
10997         * python/py-exetiedevent.c: New file.
10998         * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
10999         Move struct breakpoint_object from here...
11000         * python/python-internal.h: ... to here.
11001         * python/py-event.h: New file.
11002         * python/py-events.h: New file.
11003         * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
11004         py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
11005         py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
11006         (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
11007         py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
11008         py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
11009         Add build rules for all the above.
11010
11011 2011-02-04  Tom Tromey  <tromey@redhat.com>
11012
11013         * dwarf2read.c (dwarf2_section_empty_p): New function.
11014         (dwarf2_read_section): Use dwarf2_section_empty_p.
11015         (dwarf2_section_size): New function.
11016         (dwarf2_get_section_info): Unconditionally read section.
11017         (dwarf2_read_index): Use dwarf2_section_empty_p.
11018         (partial_read_comp_unit_head): Use dwarf2_section_size.
11019         (dwarf2_symbol_mark_computed): Likewise.
11020
11021 2011-02-04 David Daney <ddaney@caviumnetworks.com>
11022
11023         * NEWS: Add item for "catch syscall" on mips*-linux* targets.
11024
11025 2011-02-04 David Daney <ddaney@caviumnetworks.com>
11026
11027         * mips-linux-tdep.c: Include xml-syscall.h.
11028         (mips_linux_get_syscall_number): New function.
11029         (mips_linux_init_abi): Add calls to
11030         mips_linux_get_syscall_number() and set_xml_syscall_file_name().
11031         * data-directory/Makefile.in (SYSCALLS_FILES): Add
11032         mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
11033         * syscalls/mips-n32-linux.xml: New file.
11034         * syscalls/mips-n64-linux.xml: New file.
11035         * syscalls/mips-o32-linux.xml: New file.
11036
11037 2011-02-04  Ulrich Weigand  <ulrich.weigand@linaro.org>
11038
11039         * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
11040         Complain about inverted range entries.
11041         (dwarf2_record_block_ranges): Likewise.
11042
11043 2011-02-04  Thiago Jung Bauermann  <bauerman@br.ibm.com>
11044
11045         Fix some typos.
11046         * breakpoint.c (update_watchpoint): Fix name of the
11047         update_global_location_list function.
11048         (print_one_breakpoint): Fix typo.
11049         (_initialize_breakpoint): Remove extra space in hbreak help
11050         string.
11051         * breakpoint.h (struct bp_location) <length>: Fix field
11052         description.
11053
11054 2011-02-04  Pedro Alves  <pedro@codesourcery.com>
11055
11056         * regcache.c (registers_changed_ptid): Don't explictly always
11057         clear `current_regcache'.  Only clear current_thread_ptid and
11058         current_thread_arch when PTID matches.  Only reinit the frame
11059         cache if PTID matches the current inferior_ptid.  Move alloca(0)
11060         call to ...
11061         (registers_changed): ... here.
11062
11063 2011-02-03  Ulrich Weigand  <ulrich.weigand@linaro.org>
11064
11065         * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
11066         starts with __stack_chk_guard as stack guard symbol.
11067
11068 2011-02-03  Andrew Burgess  <aburgess@broadcom.com>
11069
11070         * disasm.c (compare_lines): Handle the end of sequence markers
11071         within the line table to better support disassembling over
11072         compilation unit boundaries.
11073
11074 2011-02-02  Ulrich Weigand  <ulrich.weigand@linaro.org>
11075
11076         * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
11077         arguments.  Skip in-prologue calls to glibc __aeabi_read_tp
11078         implementation even if no symbols are available.
11079         (thumb_analyze_prologue): Update call to skip_prologue_function.
11080         (arm_analyze_prologue): Likewise.
11081
11082 2011-02-02  Ulrich Weigand  <ulrich.weigand@linaro.org>
11083
11084         * arm-tdep.c: Include "observer.h".
11085         (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
11086         (arm_exidx_data_key): New static variable.
11087         (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
11088         (struct arm_exidx_data): Likewise.
11089         (arm_exidx_data_free): New function.
11090         (arm_compare_exidx_entries): Likewise.
11091         (arm_obj_section_from_vma): Likewise.
11092         (arm_exidx_new_objfile): Likewise.
11093         (arm_find_exidx_entry): Likewise.
11094         (arm_exidx_fill_cache): Likewise.
11095         (arm_exidx_unwind_sniffer): Likewise.
11096         (arm_exidx_unwind): New global variable.
11097         (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
11098         (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
11099         observer.  Register arm_exidx_data_key as objfile data.
11100
11101 2011-02-02  Ulrich Weigand  <ulrich.weigand@linaro.org>
11102
11103         * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
11104         due to accessing uninitialized variable.  Fix indentation.
11105
11106 2011-02-02  Pedro Alves  <pedro@codesourcery.com>
11107
11108         * c-valprint.c (c_value_print): When doing virtual base pointer
11109         adjustment, create a new value with adjusted contents rather than
11110         changing the contents of the value being printed (and getting it
11111         wrong).
11112
11113 2011-02-02  Pedro Alves  <pedro@codesourcery.com>
11114
11115         * xml-support.c (xml_find_attribute): New.
11116         (xinclude_start_include): Use it.
11117         * xml-support.h (xml_find_attribute): Declare.
11118         * memory-map.c (memory_map_start_memory)
11119         (memory_map_start_property): Use xml_find_attribute.
11120         * osdata.c (osdata_start_osdata, osdata_start_column): Use
11121         xml_find_attribute.
11122         * remote.c (start_thread): Use xml_find_attribute.
11123         * solib-target.c (library_list_start_segment)
11124         (library_list_start_section, library_list_start_library)
11125         (library_list_start_list): Use xml_find_attribute.
11126         * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
11127         (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
11128         (tdesc_start_field): Use xml_find_attribute.
11129
11130 2011-02-02  Ulrich Weigand  <uweigand@de.ibm.com>
11131
11132         * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
11133         (BUILD_OCL_VTYPES): Update.
11134
11135 2011-02-02  Joel Brobecker  <brobecker@adacore.com>
11136
11137         * configure.ac: Work around non-GNU sed limitation when computing
11138         python version number.
11139         * configure: Regenerate.
11140
11141 2011-02-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
11142
11143         Fix debug printing of TYPE_INSTANCE.
11144         * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
11145         (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
11146
11147 2011-02-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
11148
11149         Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
11150         OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
11151         OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
11152         * ada-operator.inc: Rename the file to ...
11153         * ada-operator.def: ... here, wrap all the entries by macro OP.
11154         * expprint.c (op_name_standard): Remove all the entries.  Include
11155         "std-operator.def" instead.
11156         * expression.h (enum exp_opcode): Include "std-operator.def" and
11157         "ada-operator.def".  Move all the entries ...
11158         * std-operator.def: ... here, wrap all the entries by macro OP.
11159
11160 2011-01-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
11161
11162         * breakpoint.h (remove_jit_event_breakpoints): New prototype.
11163         * breakpoint.c (remove_jit_event_breakpoints): New function.
11164         * jit.c (jit_descriptor_addr): Delete.
11165         (registering_code): Delete.
11166         (clear_int): Delete.
11167         (jit_inferior_data): New variable.
11168         (struct jit_inferior_data): New type.
11169         (get_jit_inferior_data): New function.
11170         (jit_inferior_data_cleanup): New function.
11171         (jit_read_descriptor): Adjust.
11172         (jit_register_code): Adjust.
11173         (jit_breakpoint_re_set_internal): New function; move code here ...
11174         (jit_inferior_init): ... from here.
11175         (jit_breakpoint_re_set): Adjust.
11176         (jit_reset_inferior_data_and_breakpoints): New function.
11177         (jit_inferior_created_observer): Adjust.
11178         (jit_inferior_exit_hook): Adjust.
11179         (jit_executable_changed_observer): New function.
11180         (jit_event_handler): Adjust.
11181         (_initialize_jit): Adjust.
11182
11183 2011-01-31  Michael Snyder  <msnyder@vmware.com>
11184
11185         * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
11186         line.
11187
11188 2011-01-31  Tom Tromey  <tromey@redhat.com>
11189
11190         PR python/12216:
11191         * python/python.c (execute_gdb_command): Call
11192         prevent_dont_repeat.
11193         * top.c (suppress_dont_repeat): New global.
11194         (dont_repeat): Use it.
11195         (prevent_dont_repeat): New function.
11196         * command.h (prevent_dont_repeat): Declare.
11197
11198 2011-01-31  Tom Tromey  <tromey@redhat.com>
11199
11200         * infcmd.c (finish_backward): Use breakpoint_set_silent.
11201         * python/py-breakpoint.c (bppy_set_silent): Use
11202         breakpoint_set_silent.
11203         (bppy_set_thread): Use breakpoint_set_thread.
11204         (bppy_set_task): Use breakpoint_set_task.
11205         * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
11206         (breakpoint_set_task): Declare.
11207         (make_breakpoint_silent): Remove.
11208         * breakpoint.c (breakpoint_set_silent): New function.
11209         (breakpoint_set_thread): Likewise.
11210         (breakpoint_set_task): Likewise.
11211         (make_breakpoint_silent): Remove.
11212
11213 2011-01-31  Tom Tromey  <tromey@redhat.com>
11214
11215         * breakpoint.h (user_breakpoint_p): Declare.
11216         * breakpoint.c (user_breakpoint_p): New function.
11217         (breakpoint_1): Use it.
11218         (save_breakpoints): Likewise.
11219
11220 2011-01-31  Joel Brobecker  <brobecker@adacore.com>
11221
11222         * configure.ac: Add handling of Python distribution on Windows.
11223         * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
11224         sysconfig variables are not defined, then do not use them.
11225         On Windows, if LIBPL is not defined, then use prefix + '/libs'
11226         instead.  On Windows, return all paths using forward-slashes
11227         rather than backslashes.
11228
11229 2011-01-31  Joel Brobecker  <brobecker@adacore.com>
11230
11231         * configure.ac: Remove fallback behavior for building
11232         against Python.  Remove tweaking of Python include path.
11233         Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
11234         (AC_TRY_LIBPYTHON):  Adjust program used in linking test.
11235         If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
11236         Always restore CPPFLAGS and LIBS after linking test.
11237         * configure: Regenerated.
11238         * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
11239         (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
11240         * python/python-internal.h: Adjust includes of Python .h files.
11241
11242 2011-01-31  Joel Brobecker  <brobecker@adacore.com>
11243
11244         * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
11245         in error message.
11246
11247 2011-01-31  Joel Brobecker  <brobecker@adacore.com>
11248
11249         * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
11250         value test.
11251
11252 2011-01-31  Yao Qi  <yao@codesourcery.com>
11253
11254         * arm-linux-nat.c: Update calls to regcache_register_status
11255         instead of regcache_valid_p.
11256         * aix-thread.c: Likewise.
11257         * i386gnu-nat.c: Likewise.
11258
11259 2011-01-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
11260
11261         Fix crash.
11262         * valops.c (compare_parameters): Verify TYPE_NFIELDS before
11263         touching TYPE_FIELD_ARTIFICIAL.
11264
11265 2011-01-28  Richard Earnshaw  <rearnsha@arm.com>
11266
11267         * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
11268         Committers.
11269
11270 2011-01-28  Pedro Alves  <pedro@codesourcery.com>
11271
11272         * tracepoint.c (tfile_xfer_partial): If there's no traceframe
11273         selected, don't try iterating over the traceframe's blocks.
11274         (tfile_has_stack): If there's no traceframe selected, then there's
11275         no stack.
11276         (tfile_has_registers): If there's no traceframe selected, then
11277         there's no registers.
11278
11279 2011-01-28  Pedro Alves  <pedro@codesourcery.com>
11280
11281         * target.c (memory_xfer_partial): No need to restore shadows if we
11282         haven't read anything.
11283
11284 2011-01-28  Pedro Alves  <pedro@codesourcery.com>
11285
11286         * mips-tdep.c (mips_print_register): Use get_frame_register_value
11287         and val_print_scalar_formatted.
11288
11289 2011-01-27  Pedro Alves  <pedro@codesourcery.com>
11290
11291         * tracepoint.c (tfile_read): New.
11292         (tfile_open): Use it.
11293         (tfile_get_traceframe_address): Use it.
11294         (tfile_trace_find): Use it.
11295         (walk_blocks_callback_func): New typedef.
11296         (match_blocktype): New function.
11297         (traceframe_walk_blocks): New function.
11298         (traceframe_find_block_type): New function.
11299         (tfile_fetch_registers, tfile_xfer_partial)
11300         (tfile_get_trace_state_variable_value): Use
11301         traceframe_find_block_type and tfile_read.
11302
11303 2011-01-26  Kevin Buettner  <kevinb@redhat.com>
11304
11305         * remote-mips.c: Add internationalization mark ups.  Remove
11306         trailing \n from already marked up strings.
11307
11308 2011-01-26  Tom Tromey  <tromey@redhat.com>
11309
11310         * python/py-prettyprint.c (print_string_repr): Clear
11311         'addressprint' option when calling val_print_string.
11312         (print_children): Handle Val_pretty_default.  Clear 'addressprint'
11313         option when calling val_print_string.
11314
11315 2011-01-26  Tom Tromey  <tromey@redhat.com>
11316
11317         * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
11318         GDB_PY_LL_ARG.
11319         * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
11320         macros.
11321         (gdb_py_longest, gdb_py_ulongest): New typedefs.
11322         (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
11323         (gdb_py_long_as_ulongest): New defines.
11324         (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
11325         (gdb_py_int_as_long): Declare.
11326         * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
11327         GDB_PY_LL_ARG, gdb_py_object_from_longest.
11328         (valpy_long): Add comment.
11329         * python/py-utils.c (get_addr_from_python): Use
11330         gdb_py_long_as_ulongest.  Handle overflow properly.
11331         (gdb_py_object_from_longest): New function.
11332         (gdb_py_object_from_ulongest): Likewise.
11333         (gdb_py_int_as_long): Likewise.
11334         * python/py-type.c (typy_array): Use gdb_py_int_as_long.
11335         * python/py-symtab.c (salpy_get_pc): Use
11336         gdb_py_long_from_ulongest.
11337         (salpy_get_line): Use PyInt_FromLong.
11338         * python/py-param.c (set_parameter_value): Use
11339         gdb_py_int_as_long.
11340         * python/py-lazy-string.c (stpy_get_address): Use
11341         gdb_py_long_from_ulongest.
11342         * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
11343         * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
11344         * python/py-breakpoint.c (bppy_set_thread): Use
11345         gdb_py_int_as_long.
11346         (bppy_set_task): Likewise.
11347         (bppy_set_ignore_count): Likewise.
11348         (bppy_set_hit_count): Likewise.
11349         * python/py-block.c (blpy_get_start): Use
11350         gdb_py_object_from_ulongest.
11351         (blpy_get_end): Likewise.
11352         (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
11353
11354 2011-01-25  Mathieu Lacage  <mathieu.lacage@inria.fr>
11355
11356         PR/symtab 11766:
11357         * gdb/objfiles.h (struct objfile) <addr_low>: New field.
11358         * gdb/solib.c (solib_read_symbols): Check for addr_low in
11359         equality test for objfile, initialize addr_low if needed.
11360
11361 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
11362
11363         * tui/tui-regs.c (tui_register_format): Remove dead code.
11364
11365 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
11366
11367         * printcmd.c (print_formatted): Use val_print_scalar_formatted
11368         instead of print_scalar_formatted.
11369         (print_scalar_formatted): Don't handle 's' format strings here,
11370         and add an assertion that we never see such format here.
11371         * valprint.h (val_print_scalar_formatted): Declare.
11372         * valprint.c (val_print_scalar_formatted): New.
11373         * c-valprint.c (c_val_print): Use val_print_scalar_formatted
11374         instead of print_scalar_formatted.
11375         * jv-valprint.c (java_val_print): Ditto.
11376         * p-valprint.c (pascal_val_print): Ditto.
11377         * ada-valprint.c (ada_val_print_1): Ditto.
11378         * f-valprint.c (f_val_print): Ditto.
11379         * infcmd.c (registers_info): Ditto.
11380         * m2-valprint.c (m2_val_print): Ditto.
11381
11382 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
11383
11384         * m2-valprint.c (print_unbounded_array): Pass
11385         value_contents_for_printing rather than value_contents, to
11386         m2_print_array_contents.  Also pass in the value.
11387
11388 2011-01-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
11389
11390         * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
11391         (save_gdb_index_command): Switch to .gdb_index version 4.
11392
11393 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
11394
11395         * mi/mi-main.c (get_register): Use get_frame_register_value rather
11396         than frame_register, and always pass a valid value to val_print.
11397
11398 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
11399
11400         Centralize printing "<optimized out>".
11401
11402         * valprint.h (val_print_optimized_out): Declare.
11403         * cp-valprint.c (cp_print_value_fields): Use
11404         val_print_optimized_out.
11405         * jv-valprint.c (java_print_value_fields): Ditto.
11406         * p-valprint.c (pascal_object_print_value_fields): Ditto.
11407         * printcmd.c (print_formatted): Ditto.
11408         * valprint.c (valprint_check_validity): Ditto.
11409         (value_check_printable): Ditto.
11410         (val_print_optimized_out): New.
11411
11412 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
11413
11414         * infcmd.c (default_print_registers_info): Allocate values so to
11415         never pass a NULL value to val_print.
11416
11417 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
11418
11419         * cp-valprint.c (cp_print_value): Treat the 'skip' local as
11420         boolean.  Make sure to always pass a value that matches the
11421         contents buffer to callees.  Preserve `address' for following
11422         iterations.
11423         * value.c (value_contents_for_printing_const): New.
11424         (value_address): Constify value argument.
11425         * value.h (value_contents_for_printing_const): Declare.
11426         (value_address): Constify value argument.
11427
11428 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
11429
11430         * regcache.c (struct regcache_descr): Rename
11431         sizeof_raw_register_valid_p field to sizeof_raw_register_status,
11432         and sizeof_cooked_register_valid_p to
11433         sizeof_cooked_register_status.
11434         (init_regcache_descr): Adjust.
11435         (struct regcache): Rename register_valid_p field to
11436         register_status.
11437         (regcache_xmalloc_1, regcache_xfree, regcache_save)
11438         (do_cooked_read): Adjust.
11439         (regcache_valid_p): Rename to ...
11440         (regcache_register_status): ... this.  Adjust.
11441         (regcache_invalidate): Adjust.
11442         (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
11443         Adjust.
11444         (regcache_raw_supply): Adjust.  If buf i NULL, mark the register
11445         as unavailable, not valid.
11446         (regcache_dump): Adjust.
11447         * regcache.h (enum register_status): New.
11448         (regcache_register_status): Declare.
11449         (regcache_invalidate): Delete declaration.
11450         * corelow.c (get_core_registers): Adjust.
11451         * tracepoint.c (tfile_fetch_registers): Adjust.
11452         * trad-frame.c (REG_VALUE): Rename to ...
11453         (TF_REG_VALUE): ... this.
11454         (REG_UNKNOWN): Rename to ...
11455         (TF_REG_UNKNOWN): ... this.
11456         (trad_frame_set_value, trad_frame_set_unknown): Adjust.
11457         * mi/mi-main.c (register_changed_p): Adjust.
11458
11459 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
11460
11461         * regcache.c (struct regcache_descr): Remove outdated comment.
11462         (init_regcache_descr): Remove sizeof_raw_register_valid_p
11463         overallocate hack.
11464         (regcache_xmalloc): Rename to ...
11465         (regcache_xmalloc_1): ... this.  Add `readonly_p' parameter.
11466         Allocate the regcache type accordingly.
11467         (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
11468         (regcache_xfree): Asser the source is also readonly.  Copy sizeof
11469         cooked registers, not raw.
11470         (regcache_dup_no_passthrough): Delete.
11471         (get_thread_arch_regcache): Use regcache_xmalloc_1.
11472         * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
11473         mention obsolete write_register_bytes.
11474         * regcache.h (regcache_dup_no_passthrough): Delete declaration.
11475
11476 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
11477
11478         Stop remote_read_bytes from handling partial reads itself.
11479
11480         * remote-fileio.c: Include target.h.
11481         (remote_fileio_write_bytes): Delete.
11482         (remote_fileio_func_open, remote_fileio_func_write)
11483         (remote_fileio_func_rename, remote_fileio_func_unlink): Use
11484         target_read_memory.
11485         (remote_fileio_func_stat): Use target_read_memory and
11486         target_write_memory.
11487         (remote_fileio_func_gettimeofday): Use target_write_memory.
11488         (remote_fileio_func_system): Use target_read_memory.
11489         * remote.c (remote_write_bytes): Make it static.
11490         (remote_read_bytes): Don't handle partial reads here.
11491         * remote.h (remote_read_bytes): Delete declaration.
11492
11493 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
11494
11495         Simplify XML parsing a bit.
11496
11497         * xml-support.h (gdb_xml_parse_quick): Declare.
11498         * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
11499         from gdb_xml_create_parser_and_cleanup, and added `old_chain'
11500         parameter.
11501         (gdb_xml_create_parser_and_cleanup): Reimplement on top of
11502         gdb_xml_create_parser_and_cleanup_1.
11503         (gdb_xml_parse_quick): New.
11504         * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
11505         * osdata.c (osdata_parse): Ditto.
11506         * remote.c (remote_threads_info): Ditto.
11507         * solib-target.c (solib_target_parse_libraries): Ditto.
11508         * xml-syscall.c (syscall_parse_xml): Ditto.
11509         * xml-tdesc.c (tdesc_parse_xml): Ditto.
11510
11511 2011-01-24  Kevin Buettner  <kevinb@redhat.com>
11512
11513         * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
11514         with remote-mips.o added to gdb_target_obs.
11515         * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
11516
11517 2011-01-24  Pedro Alves  <pedro@codesourcery.com>
11518
11519         * ada-valprint.c (val_print_packed_array_elements): Pass the
11520         correct struct value to val_print.
11521         (ada_val_print_1): Ditto.
11522
11523 2011-01-24  Pedro Alves  <pedro@codesourcery.com>
11524
11525         Don't lose embedded_offset in printing routines throughout.
11526
11527         * valprint.h (val_print_array_elements): Change prototype.
11528         * valprint.c (val_print_array_elements): Add `embedded_offset'
11529         parameter, and adjust to pass it down to val_print, while passing
11530         `valaddr' or `address' unmodified.  Take embedded_offset into
11531         account when checking repetitions.
11532         * c-valprint.c (c_val_print): Pass embedded_offset to
11533         val_print_array_elements instead of adjusting `valaddr' and
11534         `address'.
11535         * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
11536         embedded_offset to val_print_array_elements instead of adjusting
11537         `valaddr'.
11538         * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
11539         * p-valprint.c (pascal_val_print): Pass embedded_offset to
11540         val_print_array_elements and pascal_object_print_value_fields
11541         instead of adjusting `valaddr'.
11542         (pascal_object_print_value_fields): Add `offset' parameter, and
11543         adjust to use it.
11544         (pascal_object_print_value): Add `offset' parameter, and adjust to
11545         use it.
11546         (pascal_object_print_static_field): Use
11547         value_contents_for_printing/value_embedded_offset, rather than
11548         value_contents.
11549         * ada-valprint.c (val_print_packed_array_elements): Add `offset'
11550         parameter, and adjust to use it.  Use
11551         value_contents_for_printing/value_embedded_offset, rather than
11552         value_contents.
11553         (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
11554         (ada_val_print_array): Add `offset' parameter, and adjust to use
11555         it.
11556         (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
11557         `embedded_offset' to `offset'.  Don't re-adjust `valaddr'.
11558         Instead work with offsets.  Use
11559         value_contents_for_printing/value_embedded_offset, rather than
11560         value_contents.  Change `defer_val_int' local type to CORE_ADDR,
11561         and use value_from_pointer to extract a target pointer, rather
11562         than value_from_longest.
11563         (print_variant_part): Add `offset' parameter.  Replace
11564         `outer_valaddr' parameter by a new `outer_offset' parameter.
11565         Don't re-adjust `valaddr'.  Instead pass down adjusted offsets.
11566         (ada_value_print): Use
11567         value_contents_for_printing/value_embedded_offset, rather than
11568         value_contents.
11569         (print_record): Add `offset' parameter, and adjust to pass it
11570         down.
11571         (print_field_values): Add `offset' parameter.  Replace
11572         `outer_valaddr' parameter by a new `outer_offset' parameter.
11573         Don't re-adjust `valaddr'.  Instead pass down adjusted offsets.
11574         Use value_contents_for_printing/value_embedded_offset, rather than
11575         value_contents.
11576         * d-valprint.c (dynamic_array_type): Use
11577         value_contents_for_printing/value_embedded_offset, rather than
11578         value_contents.
11579         * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
11580         Don't re-adjust `valaddr'.  Instead pass down adjusted offsets.
11581         (java_print_value_fields): Take `offset' into account.  Don't
11582         re-adjust `valaddr'.  Instead pass down adjusted offsets.
11583         (java_val_print): Take `embedded_offset' into account.  Pass it to
11584         java_print_value_fields.
11585         * f-valprint.c (f77_print_array_1): Add `embedded_offset'
11586         parameter.  Don't re-adjust `valaddr' or `address'.  Instead pass
11587         down adjusted offsets.
11588         (f77_print_array): Add `embedded_offset' parameter.  Pass it down.
11589         (f_val_print): Take `embedded_offset' into account.
11590
11591 2011-01-21  Joel Brobecker  <brobecker@adacore.com>
11592
11593         * inflow.c: Include "gdbcmd.h".
11594         (interactive_mode): New static global, moved here from top.c.
11595         (show_interactive_mode): New function, moved here from top.c.
11596         use gdb_has_a_terminal instead of input_from_terminal_p to
11597         determine the current mode.
11598         (gdb_has_a_terminal): Add handling of the "iteractive-mode"
11599         setting.
11600         (_initialize_inflow): Add the "set/show interactive-mode"
11601         commands.  Moved here from top.c, after having adjusted slightly
11602         the help text.
11603         * top.c (interactive_mode, show_interactive_mode): Delete, moved
11604         to inflow.c.
11605         (input_from_terminal_p): Remove handling of "interactive-mode"
11606         setting, moved to infow.c.
11607         (init_main): Remove creation of the "set/show interactive-mode"
11608         commands, moved to inflow.c.
11609
11610 2011-01-19  Joel Brobecker  <brobecker@adacore.com>
11611
11612         * NEWS: Add entry for native ia64-hpux support.
11613
11614 2011-01-19  Tom Tromey  <tromey@redhat.com>
11615
11616         PR mi/8618:
11617         * thread.c (free_thread): Free 'name'.
11618         (print_thread_info): Emit thread name.  Change CLI output.
11619         (thread_name_command): New function.
11620         (do_captured_thread_select): Emit newline.
11621         (_initialize_thread): Register 'thread name' command.
11622         * target.h (struct target_ops) <to_thread_name>: New field.
11623         (target_thread_name): New macro.
11624         * target.c (update_current_target): Handle to_thread_name.
11625         * python/py-infthread.c (thpy_get_name): New function.
11626         (thpy_set_name): Likewise.
11627         (thread_object_getset): Add "name".
11628         * linux-nat.c (linux_nat_thread_name): New function.
11629         (linux_nat_add_target): Set to_thread_name.
11630         * gdbthread.h (struct thread_info) <name>: New field.
11631
11632 2011-01-18  Joel Brobecker  <brobecker@adacore.com>
11633
11634         * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
11635         (ada_val_print_1): Likewise.
11636
11637 2011-01-18  Joel Brobecker  <brobecker@adacore.com>
11638
11639         * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
11640         upper limit address is not greater than the function end address
11641         when the upper limit could not be computed using the debugging
11642         info.
11643
11644 2011-01-17  Tom Tromey  <tromey@redhat.com>
11645
11646         * cli/cli-cmds.c (apropos_command): Free the compiled regex.  Use
11647         get_regcomp_error.
11648         * utils.c: Include gdb_regex.h.
11649         (do_regfree_cleanup): New function.
11650         (make_regfree_cleanup): Likewise.
11651         (get_regcomp_error): Likewise.
11652         * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
11653
11654 2011-01-17  Tom Tromey  <tromey@redhat.com>
11655
11656         * cli/cli-cmds.c (apropos_command): Fix formatting.  Don't call
11657         re_compile_fastmap.
11658
11659 2011-01-17  Pierre Muller  <muller@ics.u-strasbg.fr>
11660
11661         * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
11662         for internal variables.
11663         (last_was_structop): New static variable.
11664         (COMPLETE): New token.
11665         (field_exp): New rule to group all '.' suffix handling.
11666         Add mark_struct_expression calls when approriate to be able
11667         to correctly find fields for completion.
11668         (yylex): Adapt to handle field completion and set INTVAR when
11669         required.
11670
11671 2011-01-14  Yao Qi  <yao@codesourcery.com>
11672
11673         * arm-tdep.c (arm_register_reggroup_p): FPS register is in
11674         save_reggroup, restore_reggroup and all_reggroup.
11675
11676 2011-01-14  Joel Brobecker  <brobecker@adacore.com>
11677
11678         * ada-valprint. (ada_printchar): Use the correct type length
11679         in call to ada_emit_char.
11680         * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
11681
11682 2011-01-14  Pierre Muller  <muller@ics.u-strasbg.fr>
11683
11684         * solib-som.h (hpux_major_release): Declare variable here.
11685         * solib-som.c:  Remove <sys/utsname.h> header.
11686         (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
11687         (hpux_major_release): Make global, change default value to
11688         DEFAULT_HPUX_MAJOR_RELEASE.
11689         (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
11690         * hppa-hpux-nat.c: Add <sys/utsname.h> include.
11691         Add "solib-som.h" header.
11692         (set_hpux_major_release): New function.
11693         (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
11694
11695 2011-01-14  Mike Frysinger  <vapier@gentoo.org>
11696
11697         * configure.tgt (*-*-uclinux*): Match more Linux os targets
11698
11699 2011-01-14  Joel Brobecker  <brobecker@adacore.com>
11700
11701         * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
11702         new-line at end of warning message.
11703         (ia64_hpux_store_register): Remove trailing new-line at end of
11704         error message.
11705         * ia64-hpux-tdep.c: Rephrase comment.
11706         * solib-ia64-hpux.c (struct dld_info): Change type of field
11707         dld_flags from "long long" to ULONGEST.
11708
11709 2011-01-14  Pedro Alves  <pedro@codesourcery.com>
11710
11711         * target.h (deprecated_child_ops): Delete declaration.
11712         * target.c (deprecated_child_ops): Delete definition.
11713
11714 2011-01-14  Pedro Alves  <pedro@codesourcery.com>
11715
11716         * Makefile.in (hpux-thread.o): Delete rule.
11717         * configure.ac: Don't check for HPUX DCE threads support.
11718         * configure, config.in: Regenerate.
11719         * hppa-hpux-nat.c (child_suppress_run): Delete.
11720         (hppa_hpux_child_can_run): Delete.
11721         (_initialize_hppa_hpux_nat): Don't override to_can_run.
11722         * hpux-thread.c: Delete.
11723
11724 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
11725
11726         * hpux-thread.c (hpux_pid_to_str): Delete.
11727
11728 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
11729
11730         * ada-valprint.c (ada_emit_char): Remove strange code.
11731         Check that c is <= UCHAR_MAX before passing it to isascii.
11732         (char_at): Do not assume that TYPE_LEN is either 1 or 2.
11733
11734 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
11735
11736         * top.c (input_from_terminal_p): Restrict the use of interactive_mode
11737         to the case where instream is stdin.
11738
11739 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
11740
11741         * ia64-tdep.h (struct regcache): Forward declare.
11742         (struct ia64_infcall_ops): New struct type.
11743         (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
11744         and "infcall_ops".
11745         * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
11746         Renames ia64_find_global_pointer.
11747         (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
11748         (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
11749         (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
11750         methods.
11751         (ia64_infcall_ops): New static global constant.
11752         (ia64_gdbarch_init): Set tdep->infcall_ops.
11753         * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
11754         (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
11755         * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
11756         (ia64_hpux_dummy_code): New static global constant.
11757         (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
11758         (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
11759         (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
11760         New function.
11761         (ia64_hpux_infcall_ops): New static global constant.
11762         (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
11763         for inferior function calls to work properly on ia64-hpux.
11764
11765 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
11766
11767         * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
11768         * ia64-tdep.h (struct frame_info): forward declaration.
11769         (struct gdbarch_tdep): Add field size_of_register_frame.
11770         * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
11771         to determine the size of the register frame.
11772         (ia64_size_of_register_frame): New function.
11773         (ia64_gdbarch_init): Set tdep->size_of_register_frame.
11774         * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
11775         (IA64_HPUX_UREG_REASON): New macro.
11776         (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
11777         New functions.
11778         (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
11779         * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
11780         (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
11781         objects.
11782
11783 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
11784
11785         Add support for ia64-hpux.
11786         * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
11787         ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
11788
11789         * configure.host: Add handling for ia64-hpux hosts.  Add associated
11790         floatformats.
11791         * configure.tgt: Add handling for ia64-hpux targets.
11792         * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
11793         (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
11794         (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
11795
11796 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
11797
11798         [ttrace] Compute thread list immediately after attach.
11799         * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
11800         New subprogram.
11801         (inf_ttrace_attach): Use it.
11802
11803 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
11804
11805         * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
11806         if we could not determine the frame's function address.  Instead,
11807         use the frame's PC, and then continue.
11808
11809 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
11810
11811         * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
11812         not already defined.
11813
11814 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
11815
11816         * ia64-tdep.c (ia64_struct_type_p): New function.
11817         (ia64_extract_return_value): Handle integral values that are
11818         less than 8 bytes long.
11819         (ia64_push_dummy_call): Likewise.
11820
11821 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
11822
11823         * ia64-tdep.c (floatformat_ia64_ext_little): Renames
11824         floatformat_ia64_ext.
11825         (floatformat_ia64_ext_big): New static const.
11826         (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
11827
11828 2011-01-12  Tom Tromey  <tromey@redhat.com>
11829
11830         * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
11831         messages.
11832         * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
11833         (mi_cmd_thread_list_ids): Likewise.
11834         (mi_cmd_data_list_changed_registers): Likewise.
11835         (mi_cmd_data_list_register_values): Likewise.
11836         (mi_cmd_data_write_register_values): Likewise.
11837         (mi_cmd_data_evaluate_expression): Likewise.
11838         (mi_cmd_data_read_memory): Likewise.
11839         (mi_cmd_data_read_memory_bytes): Likewise.
11840         (mi_cmd_data_write_memory): Likewise.
11841         (mi_cmd_enable_timings): Likewise.
11842         * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
11843         * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
11844         (mi_cmd_var_delete): Likewise.
11845         (mi_cmd_var_set_format): Likewise.
11846         (mi_cmd_var_show_format): Likewise.
11847         (mi_cmd_var_info_num_children): Likewise.
11848         (mi_cmd_var_list_children): Likewise.
11849         (mi_cmd_var_info_type): Likewise.
11850         (mi_cmd_var_info_expression): Likewise.
11851         (mi_cmd_var_show_attributes): Likewise.
11852         (mi_cmd_var_assign): Likewise.
11853         (mi_cmd_var_update): Likewise.
11854         (mi_cmd_enable_pretty_printing): Likewise.
11855         (mi_cmd_var_set_update_range): Likewise.
11856         * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
11857         messages.
11858         (mi_cmd_target_file_put): Likewise.
11859         (mi_cmd_target_file_delete): Likewise.
11860         * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
11861         messages.
11862         (mi_cmd_stack_info_depth): Likewise.
11863         (mi_cmd_stack_list_locals): Likewise.
11864         (mi_cmd_stack_list_args): Likewise.
11865         (mi_cmd_stack_select_frame): Likewise.
11866         (mi_cmd_stack_select_frame): Likewise.
11867         (mi_cmd_stack_info_frame): Likewise.
11868         * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
11869         messages.
11870         (mi_cmd_file_list_exec_source_files): Likewise.
11871         * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
11872         (mi_cmd_env_cd): Likewise.
11873         (mi_cmd_env_path): Likewise.
11874         (mi_cmd_env_dir): Likewise.
11875         (mi_cmd_inferior_tty_show): Likewise.
11876         * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
11877         * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
11878         (mi_cmd_break_watch): Likewise.
11879
11880 2011-01-12  Thiago Jung Bauermann  <bauerman@br.ibm.com>
11881
11882         * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
11883         (ppc_linux_insert_hw_breakpoint): Likewise.
11884         (ppc_linux_remove_hw_breakpoint): Likewise.
11885         (ppc_linux_insert_watchpoint): Likewise.
11886
11887 2011-01-12  Andrew Burgess  <aburgess@broadcom.com>
11888             Jan Kratochvil  <jan.kratochvil@redhat.com>
11889
11890         PR fortran/11104 and DWARF unbound arrays detection.
11891         * dwarf2read.c (read_subrange_type): Set zero length on unspecified
11892         upper bound.  Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
11893         unspecified upper bound.
11894         * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
11895         variables array_size_array, tmp_type and offset_item.  New variable
11896         array.  Remove call to f77_get_upperbound.  New variables array_type
11897         and index.  Call value_subscripted_rvalue for each dimenasion.  Remove
11898         the final call to deprecated_set_value_type.
11899
11900 2011-01-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
11901
11902         Make value allocations more lazy.
11903         * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
11904         instead of allocate_value and set_value_lazy when possible.
11905         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
11906         instead of allocate_value and set_value_lazy.
11907         * findvar.c (value_of_register_lazy): Likewise.
11908         (read_var_value): Remove V preallocation, call just check_typedef in
11909         advance.  Move allocate_value to LOC_CONST, LOC_LABEL,
11910         LOC_CONST_BYTES.  Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
11911         LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK.  Set ADDR instead of
11912         set_value_address and break in LOC_BLOCK.  Use allocate_value_lazy and
11913         remove lval_memory set in LOC_REGPARM_ADDR.  Use allocate_value_lazy
11914         in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT.  Add setting lval_memory at
11915         the end, remove set_value_lazy there.
11916         * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
11917         instead of allocate_value and set_value_lazy when possible.
11918         * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
11919         * value.c (allocate_computed_value): Use allocate_value_lazy instead
11920         of allocate_value and set_value_lazy.
11921         (value_from_contents_and_address): Use allocate_value_lazy instead of
11922         allocate_value and set_value_lazy when possible.
11923
11924 2011-01-12  Andrew Burgess  <aburgess@broadcom.com>
11925
11926         * disasm.c (dump_insns): Support dumping opcodes for MI.
11927         * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
11928         dumping of instruction opcodes.
11929
11930 2011-01-09  Robert Millan  <rmh@gnu.org>  (tiny patch)
11931
11932         * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
11933         appropiately.
11934
11935 2011-01-11  Tom Tromey  <tromey@redhat.com>
11936
11937         * thread.c (do_captured_thread_select): Emit newline before
11938         printing frame.
11939
11940 2011-01-11  Michael Snyder  <msnyder@vmware.com>
11941
11942         * s390-tdep.c: Comment cleanup, mostly periods and spaces.
11943         * score-tdep.c: Ditto.
11944         * score-tdep.h: Ditto.
11945         * ser-base.c: Ditto.
11946         * ser-go32.c: Ditto.
11947         * serial.c: Ditto.
11948         * serial.h: Ditto.
11949         * ser-mingw.c: Ditto.
11950         * ser-pipe.c: Ditto.
11951         * ser-tcp.c: Ditto.
11952         * ser-unix.c: Ditto.
11953         * sh64-tdep.c: Ditto.
11954         * shnbsd-nat.c: Ditto.
11955         * sh-tdep.c: Ditto.
11956         * sh-tdep.h: Ditto.
11957         * solib.c: Ditto.
11958         * solib-darwin.c: Ditto.
11959         * solib-frv.c: Ditto.
11960         * solib.h: Ditto.
11961         * solib-irix.c: Ditto.
11962         * solib-osf.c: Ditto.
11963         * solib-pa64.c: Ditto.
11964         * solib-som.c: Ditto.
11965         * solib-spu.c: Ditto.
11966         * solib-sunos.c: Ditto.
11967         * solib-svr4.c: Ditto.
11968         * solist.h: Ditto.
11969         * sol-thread.c: Ditto.
11970         * somread.c: Ditto.
11971         * source.c: Ditto.
11972         * source.h: Ditto.
11973         * sparc64-linux-tdep.c: Ditto.
11974         * sparc64-tdep.c: Ditto.
11975         * sparc-linux-nat.c: Ditto.
11976         * sparc-linux-tdep.c: Ditto.
11977         * sparc-sol2-nat.c: Ditto.
11978         * sparc-sol2-tdep.c: Ditto.
11979         * sparc-tdep.c: Ditto.
11980         * sparc-tdep.h: Ditto.
11981         * spu-tdep.c: Ditto.
11982         * stabsread.c: Ditto.
11983         * stabsread.h: Ditto.
11984         * stack.c: Ditto.
11985         * symfile.c: Ditto.
11986         * symfile.h: Ditto.
11987         * symmisc.c: Ditto.
11988         * symtab.c: Ditto.
11989         * symtab.h: Ditto.
11990         * target.c: Ditto.
11991         * target-descriptions.c: Ditto.
11992         * target-descriptions.h: Ditto.
11993         * target.h: Ditto.
11994         * target-memory.c: Ditto.
11995         * terminal.h: Ditto.
11996         * thread.c: Ditto.
11997         * top.c: Ditto.
11998         * tracepoint.c: Ditto.
11999         * tracepoint.h: Ditto.
12000         * trad-frame.h: Ditto.
12001         * typeprint.c: Ditto.
12002
12003 2011-01-11  Michael Snyder  <msnyder@vmware.com>
12004
12005         * ui-file.c: Comment cleanup, mostly periods and spaces.
12006         * ui-file.h: Ditto.
12007         * ui-out.c: Ditto.
12008         * ui-out.h: Ditto.
12009         * utils.c: Ditto.
12010         * v850-tdep.c: Ditto.
12011         * valarith.c: Ditto.
12012         * valops.c: Ditto.
12013         * valprint.c: Ditto.
12014         * valprint.h: Ditto.
12015         * value.c: Ditto.
12016         * value.h: Ditto.
12017         * varobj.c: Ditto.
12018         * varobj.h: Ditto.
12019         * vax-tdep.c: Ditto.
12020         * vec.c: Ditto.
12021         * vec.h: Ditto.
12022         * version.h: Ditto.
12023         * windows-nat.c: Ditto.
12024         * windows-tdep.c: Ditto.
12025         * xcoffread.c: Ditto.
12026         * xcoffsolib.c: Ditto.
12027         * xml-support.c: Ditto.
12028         * xstormy16-tdep.c: Ditto.
12029         * xtensa-tdep.c: Ditto.
12030         * xtensa-tdep.h: Ditto.
12031
12032 2011-01-11  Thiago Jung Bauermann  <bauerman@br.ibm.com>
12033
12034         * breakpoint.c (resources_needed_watchpoint): Fix indentation.
12035         * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
12036
12037 2011-01-11  Sergio Durigan Junior  <sergiodj@linux.vnet.ibm.com>
12038             Thiago Jung Bauermann  <bauerman@br.ibm.com>
12039
12040         Implement support for PowerPC BookE ranged watchpoints.
12041         * breakpoint.h
12042         (struct breakpoint_ops) <resources_needed>: New method.
12043         Initialize to NULL in all existing breakpoint_ops instances.
12044         (struct breakpoint) <exact>: New field.
12045         (target_exact_watchpoints): Declare external global.
12046         * breakpoint.c (target_exact_watchpoints): New global flag.
12047         (update_watchpoint): Set b->type to bp_hardware_watchpoint and
12048         b->enable_state to bp_enabled before calling
12049         hw_watchpoint_used_count.
12050         (hw_watchpoint_used_count): Iterate over all bp_locations in a
12051         watchpoint.  Call breakpoint's breakpoint_ops.resources_needed
12052         if available.
12053         (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
12054         if the watchpoint is exact.
12055         (resources_needed_watchpoint): New function.
12056         (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
12057         (watch_command_1): Set b->exact if the user asked for an exact
12058         watchpoint and one can be set.
12059         (can_use_hardware_watchpoint): Add exact_watchpoints argument.
12060         Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
12061         the user asks for an exact watchpoint and one can be set.  Return
12062         number of needed debug registers to watch the expression.
12063         * gdbtypes.c (is_scalar_type): New function, based on
12064         valprint.c:scalar_type_p.
12065         (is_scalar_type_recursive): New function.
12066         * gdbtypes.h (is_scalar_type_recursive): Declare.
12067         * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
12068         handle regions when ranged watchpoints are available.
12069         (create_watchpoint_request): New function.
12070         (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
12071         create_watchpoint_request.
12072         * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
12073         (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
12074         `set powerpc' and `show powerpc' commands.
12075         * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
12076         Mention documentation comment in the target macro.
12077         (target_region_ok_for_hw_watchpoint): Document return value.
12078
12079 2011-01-11  Thiago Jung Bauermann  <bauerman@br.ibm.com>
12080
12081         * breakpoint.c (update_watchpoint): Decide on using a software or
12082         hardware watchpoint after the bp_locations are created.
12083
12084 2010-01-11  Thiago Jung Bauermann  <bauerman@br.ibm.com>
12085
12086         Convert hardware watchpoints to use breakpoint_ops.
12087         * breakpoint.h (breakpoint_ops) <insert>: Rename to...
12088         <insert_location>: ... this.  Return int instead of void.
12089         Accept pointer to struct bp_location instead of pointer to
12090         struct breakpoint.  Adapt all implementations.
12091         (breakpoint_ops) <remove>: Rename to...
12092         <remove_location>: ... this.  Accept pointer to struct bp_location
12093         instead of pointer to struct breakpoint.  Adapt all implementations.
12094         * breakpoint.c (insert_catchpoint): Delete function.
12095         (insert_bp_location): Call the watchpoint or catchpoint's
12096         breakpoint_ops.insert method.
12097         (remove_breakpoint_1): Call the watchpoint or catchpoint's
12098         breakpoint_ops.remove method.
12099         (insert_watchpoint, remove_watchpoint): New functions.
12100         (watchpoint_breakpoint_ops): New structure.
12101         (watch_command_1): Initialize the OPS field.
12102         * inf-child.c (inf_child_insert_fork_catchpoint)
12103         (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
12104         (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
12105         (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
12106         Delete functions.
12107         (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
12108         to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
12109         to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
12110         to_remove_exec_catchpoint and to_set_syscall_catchpoint.
12111         * target.c (update_current_target): Change default implementation of
12112         to_insert_fork_catchpoint, to_remove_fork_catchpoint,
12113         to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
12114         to_insert_exec_catchpoint, to_remove_exec_catchpoint and
12115         to_set_syscall_catchpoint to return_one.
12116         (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
12117         (debug_to_insert_exec_catchpoint): Report return value.
12118         * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
12119         (to_insert_exec_catchpoint): Change declaration to return int instead
12120         of void.
12121
12122 2011-01-11  Michael Snyder  <msnyder@vmware.com>
12123
12124         * arm-tdep.c: Internationalization.
12125         * c-lang.c: Ditto.
12126         * charset.c: Ditto.
12127         * fork-child.c: Ditto.
12128         * nto-procfs.c: Ditto.
12129         * ppc-sysv-tdep.c: Ditto.
12130         * procfs.c: Ditto.
12131         * remote-mips.c: Ditto.
12132         * remote.c: Ditto.
12133         * rs6000-nat.c: Ditto.
12134         * rs6000-tdep.c: Ditto.
12135         * target.c: Ditto.
12136         * valops.c: Ditto.
12137         * value.c: Ditto.
12138         * xml-support.c: Ditto.
12139         * mi/mi-cmd-break.c: Ditto.
12140         * mi/mi-cmd-var.c: Ditto.
12141         * mi/mi-interp.c: Ditto.
12142         * mi/mi-main.c: Ditto.
12143
12144 2011-01-11  Andrew Burgess  <aburgess@broadcom.com>
12145
12146         * remote-sim.c (gdbsim_store_register): Update API to
12147         sim_store_register to check more error conditions.
12148
12149 2011-01-10  Michael Snyder  <msnyder@vmware.com>
12150
12151         * nto-procfs.c: Comment cleanup, mostly periods and spaces.
12152         * nto-tdep.c: Ditto.
12153         * nto-tdep.h: Ditto.
12154         * objc-exp.y: Ditto.
12155         * objc-lang.c: Ditto.
12156         * objfiles.c: Ditto.
12157         * objfiles.h: Ditto.
12158         * observer.c: Ditto.
12159         * opencl-lang.c: Ditto.
12160         * osabi.c: Ditto.
12161         * parse.c: Ditto.
12162         * parser-defs.h: Ditto.
12163         * p-exp.y: Ditto.
12164         * p-lang.c: Ditto.
12165         * posix-hdep.c: Ditto.
12166         * ppcbug-rom.c: Ditto.
12167         * ppc-linux-nat.c: Ditto.
12168         * ppc-linux-tdep.c: Ditto.
12169         * ppc-linux-tdep.h: Ditto.
12170         * ppcnbsd-tdep.c: Ditto.
12171         * ppcobsd-tdep.c: Ditto.
12172         * ppcobsd-tdep.h: Ditto.
12173         * ppc-sysv-tdep.c: Ditto.
12174         * ppc-tdep.h: Ditto.
12175         * printcmd.c: Ditto.
12176         * proc-abi.c: Ditto.
12177         * proc-flags.c: Ditto.
12178         * procfs.c: Ditto.
12179         * proc-utils.h: Ditto.
12180         * progspace.h: Ditto.
12181         * prologue-value.c: Ditto.
12182         * prologue-value.h: Ditto.
12183         * psympriv.h: Ditto.
12184         * psymtab.c: Ditto.
12185         * p-typeprint.c: Ditto.
12186         * p-valprint.c: Ditto.
12187         * ravenscar-sparc-thread.c: Ditto.
12188         * ravenscar-thread.c: Ditto.
12189         * ravenscar-thread.h: Ditto.
12190         * record.c: Ditto.
12191         * regcache.c: Ditto.
12192         * regcache.h: Ditto.
12193         * remote.c: Ditto.
12194         * remote-fileio.c: Ditto.
12195         * remote-fileio.h: Ditto.
12196         * remote.h: Ditto.
12197         * remote-m32r-sdi.c: Ditto.
12198         * remote-mips.c: Ditto.
12199         * remote-sim.c: Ditto.
12200         * rs6000-aix-tdep.c: Ditto.
12201         * rs6000-nat.c: Ditto.
12202         * rs6000-tdep.c: Ditto.
12203
12204 2011-01-10  Michael Snyder  <msnyder@vmware.com>
12205
12206         * charset.c (validate): Internationalization.
12207         * coffread.c (read_one_sym): Ditto.
12208         * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
12209         * h8300-tdep.c (H8300_extract_return_value): Ditto.
12210         * inflow.c (new_tty): Ditto.
12211         * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
12212         * m32c-tdep.c (m32c_return_value): Ditto.
12213         * mep-tdep.c (mep_store_return_value): Ditto.
12214         * score-tdep.c (score7_fetch_insn): Ditto.
12215         * ser-mingw.c (pipe_windows_open): Ditto.
12216         * sh64-tdep.c (sh64_extract_return_value): Ditto.
12217         * spu-tdep.c (spu_register_type): Ditto.
12218         * tracepoint.c (trace_find_command): Ditto.
12219         * valarith.c (value_pos): Ditto.
12220
12221 2011-01-10  Joel Brobecker  <brobecker@adacore.com>
12222
12223         * ada-valprint.c (printstr): Minor comment reformatting.
12224
12225 2011-01-08  Michael Snyder  <msnyder@vmware.com>
12226
12227         * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
12228         markup.
12229
12230 2011-01-08  Michael Snyder  <msnyder@vmware.com>
12231
12232         * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
12233         * hppa-hpux-tdep.c: Ditto.
12234         * hppa-linux-nat.c: Ditto.
12235         * hppa-linux-tdep.c: Ditto.
12236         * hppanbsd-tdep.c: Ditto.
12237         * hppa-tdep.c: Ditto.
12238         * hppa-tdep.h: Ditto.
12239         * hpux-thread.c: Ditto.
12240         * i386-cygwin-tdep.c: Ditto.
12241         * i386-darwin-nat.c: Ditto.
12242         * i386gnu-nat.c: Ditto.
12243         * i386-linux-nat.c: Ditto.
12244         * i386-linux-tdep.c: Ditto.
12245         * i386-nat.c: Ditto.
12246         * i386-nat.h: Ditto.
12247         * i386nbsd-tdep.c: Ditto.
12248         * i386-sol2-nat.c: Ditto.
12249         * i386-stub.c: Ditto.
12250         * i386-tdep.c: Ditto.
12251         * i386-tdep.h: Ditto.
12252         * i387-tdep.c: Ditto.
12253         * ia64-linux-nat.c: Ditto.
12254         * ia64-linux-tdep.c: Ditto.
12255         * ia64-tdep.c: Ditto.
12256         * infcall.c: Ditto.
12257         * infcall.h: Ditto.
12258         * infcmd.c: Ditto.
12259         * inferior.c: Ditto.
12260         * inferior.h: Ditto.
12261         * infloop.c: Ditto.
12262         * inflow.c: Ditto.
12263         * infrun.c: Ditto.
12264         * interps.c: Ditto.
12265         * interps.h: Ditto.
12266         * iq2000-tdep.c: Ditto.
12267         * irix5-nat.c: Ditto.
12268         * jit.c: Ditto.
12269         * jit.h: Ditto.
12270         * jv-exp.y: Ditto.
12271         * jv-lang.c: Ditto.
12272         * jv-lang.h: Ditto.
12273         * jv-typeprint.c: Ditto.
12274         * jv-valprint.c: Ditto.
12275         * language.c: Ditto.
12276         * language.h: Ditto.
12277         * linespec.c: Ditto.
12278         * linux-fork.c: Ditto.
12279         * linux-nat.c: Ditto.
12280         * linux-thread-db.c: Ditto.
12281         * lm32-tdep.c: Ditto.
12282
12283 2011-01-08  Michael Snyder  <msnyder@vmware.com>
12284
12285         * m2-exp.y: Comment cleanup, mostly periods and spaces.
12286         * m2-lang.c: Ditto.
12287         * m2-typeprint.c: Ditto.
12288         * m2-valprint.c: Ditto.
12289         * m32c-tdep.c: Ditto.
12290         * m32r-linux-nat.c: Ditto.
12291         * m32r-rom.c: Ditto.
12292         * m32r-tdep.c: Ditto.
12293         * m32r-tdep.h: Ditto.
12294         * m68hc11-tdep.c: Ditto.
12295         * m58klinux-nat.c: Ditto.
12296         * m68k-tdep.c: Ditto.
12297         * m88k-tdep.c: Ditto.
12298         * m88k-tdep.h: Ditto.
12299         * machoread.c: Ditto.
12300         * macrocmd.c: Ditto.
12301         * macroexp.c: Ditto.
12302         * macrotab.c: Ditto.
12303         * main.c: Ditto.
12304         * maint.c: Ditto.
12305         * mdebugread.c: Ditto.
12306         * mdebugread.h: Ditto.
12307         * memattr.c: Ditto.
12308         * memattr.h: Ditto.
12309         * memory-map.h: Ditto.
12310         * mep-tdep.c: Ditto.
12311         * microblaze-rom.c: Ditto.
12312         * microblaze-tdep.c: Ditto.
12313         * minsyms.c: Ditto.
12314         * mips-irix-tdep.c: Ditto.
12315         * mips-linux-nat.c: Ditto.
12316         * mips-linux-tdep.c: Ditto.
12317         * mips-linux-tdep.h: Ditto.
12318         * mipsnbsd-nat.c: Ditto.
12319         * mipsnbsd-tdep.c: Ditto.
12320         * mipsread.c: Ditto.
12321         * mips-tdep.c: Ditto.
12322         * mips-tdep.h: Ditto.
12323         * mn10300-linux-tdep.c: Ditto.
12324         * mn10300-tdep.c: Ditto.
12325         * mn10300-tdep.h: Ditto.
12326         * monitor.c: Ditto.
12327         * monitor.h: Ditto.
12328         * moxie-tdep.c: Ditto.
12329         * moxie-tdep.h: Ditto.
12330         * mt-tdep.c: Ditto.
12331
12332 2011-01-08  Mike Frysinger  <vapier@gentoo.org>
12333
12334         * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
12335
12336 2011-01-08  Robert Millan  <rmh@gnu.org>
12337
12338         * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
12339
12340 2011-01-07  Michael Snyder  <msnyder@vmware.com>
12341
12342         * charset.c (_initialize_charset): Fix typo in string.
12343
12344 2011-01-07  Michael Snyder  <msnyder@vmware.com>
12345
12346         * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
12347         for i18n.
12348         * tui/tui-layout.c (tui_set_layout_for_display_command):
12349         Split line so that operator goes to beginning of line.
12350         * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
12351         assignment out of if statement.
12352
12353 2011-01-07  Michael Snyder  <msnyder@vmware.com>
12354
12355         * ada-lang.c: Comment cleanup, mostly periods and spaces.
12356         * ada-lang.h: Ditto.
12357         * ada-tasks.c: Ditto.
12358         * ada-valprint.c: Ditto.
12359         * aix-threads.c: Ditto.
12360         * alpha-linux-nat.c: Ditto.
12361         * alpha-linux-tdep.c: Ditto.
12362         * alpha-mdebug-tdep.c: Ditto.
12363         * alpha-nat.c: Ditto.
12364         * alpha-osf1-tdep.c: Ditto.
12365         * alpha-tdep.c: Ditto.
12366         * alphabsd-nat.c: Ditto.
12367         * alphabsd-tdep.c: Ditto.
12368         * amd64-darwin-tdep.c: Ditto.
12369         * amd64-linux-nat.c: Ditto.
12370         * amd64-linux-tdep.c: Ditto.
12371         * amd64-sol2-tdep.c: Ditto.
12372         * amd64-tdep.c: Ditto.
12373         * amd64-fbsd-tdep.c: Ditto.
12374         * amd64-nbsd-tdep.c: Ditto.
12375         * amd64-obsd-tdep.c: Ditto.
12376         * amd64-linux-nat.c: Ditto.
12377         * amd64-linux-tdep.c: Ditto.
12378         * arm-tdep.c: Ditto.
12379         * arm-tdep.h: Ditto.
12380         * armnbsd-nat.c: Ditto.
12381         * avr-tdep.c: Ditto.
12382         * bfin-tdep.c: Ditto.
12383         * bsd-kvm.c: Ditto.
12384         * c-typeprintc: Ditto.
12385         * c-valprint.c: Ditto.
12386         * coff-pe-read.h: Ditto.
12387         * coffreead.c: Ditto.
12388         * cris-tdep.c: Ditto.
12389         * d-lang.c: Ditto.
12390         * darwin-nat-info.c: Ditto.
12391         * darwin-nat.c: Ditto.
12392         * dbug-rom.c: Ditto.
12393         * dbxread.c: Ditto.
12394         * dcache.c: Ditto.
12395         * dcache.h: Ditto.
12396         * dec-thread.c: Ditto.
12397         * defs.h: Ditto.
12398         * demangle.c: Ditto.
12399         * dicos-tdep.c: Ditto.
12400         * dictionary.c: Ditto.
12401         * dictionary.h: Ditto.
12402         * dink32-rom.c: Ditto.
12403         * disasm.c: Ditto.
12404         * doublest.c: Ditto.
12405         * dsrec.c: Ditto.
12406         * dummy-frame.c: Ditto.
12407         * dwarf2-frame.c: Ditto.
12408         * dwarf2expr.c: Ditto.
12409         * dwarf2loc.c: Ditto.
12410         * dwarf2read.c: Ditto.
12411         * elfread.c: Ditto.
12412         * environ.c: Ditto.
12413         * eval.c: Ditto.
12414         * event-top.h: Ditto.
12415         * exceptions.c: Ditto.
12416         * exceptions.h: Ditto.
12417         * exec.c: Ditto.
12418         * expprint.c: Ditto.
12419         * expression.h: Ditto.
12420         * f-exp.y: Ditto.
12421         * f-lang.c: Ditto.
12422         * f-lang.h: Ditto.
12423         * f-typeprint.c: Ditto.
12424         * f-valprint.c: Ditto.
12425         * fbsd-nat.c: Ditto.
12426         * findvar.c: Ditto.
12427         * fork-child.c: Ditto.
12428         * frame.c: Ditto.
12429         * frame.h: Ditto.
12430         * frv-linux-tdep.c: Ditto.
12431         * frv-tdep.c: Ditto.
12432         * gcore.c: Ditto.
12433         * gdb-stabs.h: Ditto.
12434         * gdb_assert.h: Ditto.
12435         * gdb_string.h: Ditto.
12436         * gdb_thread_db.h: Ditto.
12437         * gdb_wait.h: Ditto.
12438         * gdbarch.sh: Ditto.
12439         * gdbcore.h: Ditto.
12440         * gdbthread.h: Ditto.
12441         * gdbtypes.c: Ditto.
12442         * gdbtypes.h: Ditto.
12443         * gnu-nat.c: Ditto.
12444         * gnu-nat.h: Ditto.
12445         * gnu-v2-abi.c: Ditto.
12446         * gnu-v3-abi.c: Ditto.
12447         * go32-nat.c: Ditto.
12448         * gdbarch.c: Regenerate.
12449         * gdbarch.h: Regenerate.
12450
12451 2011-01-07  Michael Snyder  <msnyder@vmware.com>
12452
12453         * ax-gdb.c: Adjust some long output strings.
12454         * breakpoint.c: Ditto.
12455         * charset.c: Ditto.
12456         * cp-abi.c: Ditto.
12457         * infcall.c: Ditto.
12458         * infrun.c: Ditto.
12459         * linux-nat.c: Ditto.
12460         * solib-pa64.c: Ditto.
12461         * solib-som.c: Ditto.
12462
12463 2011-01-06  Tom Tromey  <tromey@redhat.com>
12464
12465         PR python/12367:
12466         * NEWS: Add item.
12467         * python/python.c (GdbMethods): Add "newest_frame" method.
12468         * python/python-internal.h (gdbpy_newest_frame): Declare.
12469         * python/py-frame.c (gdbpy_newest_frame): New function.
12470
12471 2010-01-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
12472
12473         * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
12474         * jit.c (jit_debug): New variable.
12475         (show_jit_debug): New function.
12476         (struct target_buffer): Use ULONGEST.
12477         (bfd_open_from_target_memory): Likewise.
12478         (jit_register_code, jit_inferior_init): Add debug output.
12479         (_initialize_jit): Register "debug jit" command.
12480
12481 2011-01-06  Tom Tromey  <tromey@redhat.com>
12482
12483         * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
12484         * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
12485         and ARCH_FRAME.
12486
12487 2011-01-06  Tom Tromey  <tromey@redhat.com>
12488
12489         * python/py-frame.c (frapy_block): Use get_frame_block.
12490
12491 2011-01-06  Joel Brobecker  <brobecker@adacore.com>
12492
12493         Do not stop on SIGPRIO signals by default
12494         * infrun.c (_initialize_infrun): Unset signal_stop and
12495         signal_print for TARGET_SIGNAL_PRIO.
12496
12497 2011-01-06  Joel Brobecker  <brobecker@adacore.com>
12498
12499         * ada-tasks.c: Fix style violation in comment.
12500
12501 2011-01-06  Joel Brobecker  <brobecker@adacore.com>
12502
12503         * linespec.c (decode_compound, find_method): Remove trailing \n
12504         at end of error string.
12505         * solib-irix.c (irix_current_sos): Likewise.
12506         * varobj.c (uninstall_variable): Likewise.
12507
12508 2011-01-06  Joel Brobecker  <brobecker@adacore.com>
12509
12510         * copyright.py: New script.
12511         * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
12512         Launch emacs without exec'ing. Call copyright.py afterwards.
12513
12514 2011-01-05  Michael Snyder  <msnyder@vmware.com>
12515
12516         * addrmap.c: Shorten lines of >= 80 columns.
12517         * arch-utils.c: Ditto.
12518         * arch-utils.h: Ditto.
12519         * ax-gdb.c: Ditto.
12520         * ax-general.c: Ditto.
12521         * bcache.c: Ditto.
12522         * blockframe.c: Ditto.
12523         * breakpoint.c: Ditto.
12524         * buildsym.c: Ditto.
12525         * c-lang.c: Ditto.
12526         * c-typeprint.c: Ditto.
12527         * charset.c: Ditto.
12528         * coffread.c: Ditto.
12529         * command.h: Ditto.
12530         * corelow.c: Ditto.
12531         * cp-abi.c: Ditto.
12532         * cp-namespace.c: Ditto.
12533         * cp-support.c: Ditto.
12534         * dbug-rom.c: Ditto.
12535         * dbxread.c: Ditto.
12536         * defs.h: Ditto.
12537         * dfp.c: Ditto.
12538         * dfp.h: Ditto.
12539         * dictionary.c: Ditto.
12540         * disasm.c: Ditto.
12541         * doublest.c: Ditto.
12542         * dwarf2-frame.c: Ditto.
12543         * dwarf2expr.c: Ditto.
12544         * dwarf2loc.c: Ditto.
12545         * dwarf2read.c: Ditto.
12546         * elfread.c: Ditto.
12547         * eval.c: Ditto.
12548         * event-loop.c: Ditto.
12549         * event-loop.h: Ditto.
12550         * exceptions.h: Ditto.
12551         * exec.c: Ditto.
12552         * expprint.c: Ditto.
12553         * expression.h: Ditto.
12554         * f-lang.c: Ditto.
12555         * f-valprint.c: Ditto.
12556         * findcmd.c: Ditto.
12557         * frame-base.c: Ditto.
12558         * frame-unwind.c: Ditto.
12559         * frame-unwind.h: Ditto.
12560         * frame.c: Ditto.
12561         * frame.h: Ditto.
12562         * gcore.c: Ditto.
12563         * gdb-stabs.h: Ditto.
12564         * gdb_assert.h: Ditto.
12565         * gdb_dirent.h: Ditto.
12566         * gdb_obstack.h: Ditto.
12567         * gdbcore.h: Ditto.
12568         * gdbtypes.c: Ditto.
12569         * gdbtypes.h: Ditto.
12570         * inf-ttrace.c: Ditto.
12571         * infcall.c: Ditto.
12572         * infcmd.c: Ditto.
12573         * inflow.c: Ditto.
12574         * infrun.c: Ditto.
12575         * inline-frame.h: Ditto.
12576         * language.c: Ditto.
12577         * language.h: Ditto.
12578         * libunwind-frame.c: Ditto.
12579         * libunwind-frame.h: Ditto.
12580         * linespec.c: Ditto.
12581         * linux-nat.c: Ditto.
12582         * linux-nat.h: Ditto.
12583         * linux-thread-db.c: Ditto.
12584         * machoread.c: Ditto.
12585         * macroexp.c: Ditto.
12586         * macrotab.c: Ditto.
12587         * main.c: Ditto.
12588         * maint.c: Ditto.
12589         * mdebugread.c: Ditto.
12590         * memattr.c: Ditto.
12591         * minsyms.c: Ditto.
12592         * monitor.c: Ditto.
12593         * monitor.h: Ditto.
12594         * objfiles.c: Ditto.
12595         * objfiles.h: Ditto.
12596         * osabi.c: Ditto.
12597         * p-typeprint.c: Ditto.
12598         * p-valprint.c: Ditto.
12599         * parse.c: Ditto.
12600         * printcmd.c: Ditto.
12601         * proc-events.c: Ditto.
12602         * procfs.c: Ditto.
12603         * progspace.c: Ditto.
12604         * progspace.h: Ditto.
12605         * psympriv.h: Ditto.
12606         * psymtab.c: Ditto.
12607         * record.c: Ditto.
12608         * regcache.c: Ditto.
12609         * regcache.h: Ditto.
12610         * remote-fileio.c: Ditto.
12611         * remote.c: Ditto.
12612         * ser-mingw.c: Ditto.
12613         * ser-tcp.c: Ditto.
12614         * ser-unix.c: Ditto.
12615         * serial.c: Ditto.
12616         * serial.h: Ditto.
12617         * solib-frv.c: Ditto.
12618         * solib-irix.c: Ditto.
12619         * solib-osf.c: Ditto.
12620         * solib-pa64.c: Ditto.
12621         * solib-som.c: Ditto.
12622         * solib-sunos.c: Ditto.
12623         * solib-svr4.c: Ditto.
12624         * solib-target.c: Ditto.
12625         * solib.c: Ditto.
12626         * somread.c: Ditto.
12627         * source.c: Ditto.
12628         * stabsread.c: Ditto.
12629         * stabsread.c: Ditto.
12630         * stack.c: Ditto.
12631         * stack.h: Ditto.
12632         * symfile-mem.c: Ditto.
12633         * symfile.c: Ditto.
12634         * symfile.h: Ditto.
12635         * symmisc.c: Ditto.
12636         * symtab.c: Ditto.
12637         * symtab.h: Ditto.
12638         * target-descriptions.c: Ditto.
12639         * target-memory.c: Ditto.
12640         * target.c: Ditto.
12641         * target.h: Ditto.
12642         * terminal.h: Ditto.
12643         * thread.c: Ditto.
12644         * top.c: Ditto.
12645         * tracepoint.c: Ditto.
12646         * tracepoint.h: Ditto.
12647         * ui-file.c: Ditto.
12648         * ui-file.h: Ditto.
12649         * ui-out.h: Ditto.
12650         * user-regs.c: Ditto.
12651         * user-regs.h: Ditto.
12652         * utils.c: Ditto.
12653         * valarith.c: Ditto.
12654         * valops.c: Ditto.
12655         * valprint.c: Ditto.
12656         * valprint.h: Ditto.
12657         * value.c: Ditto.
12658         * varobj.c: Ditto.
12659         * varobj.h: Ditto.
12660         * vec.h: Ditto.
12661         * xcoffread.c: Ditto.
12662         * xcoffsolib.c: Ditto.
12663         * xcoffsolib.h: Ditto.
12664         * xml-syscall.c: Ditto.
12665         * xml-tdesc.c: Ditto.
12666
12667 2011-01-05  Michael Snyder  <msnyder@vmware.com>
12668
12669         * cli/cli-cmds.c: Shorten lines of >= 80 columns.
12670         * cli/cli-decode.c: Ditto.
12671         * cli/cli-dump.c: Ditto.
12672         * cli/cli-logging.c: Ditto.
12673         * cli/cli-script.c: Ditto.
12674         * cli/cli-setshow.c: Ditto.
12675         * common/signals.c: Ditto.
12676         * mi/mi-cmd-break.c: Ditto.
12677         * mi/mi-cmd-disas.c: Ditto.
12678         * mi/mi-cmd-stack.c: Ditto.
12679         * mi/mi-cmd-var.c: Ditto.
12680         * mi/mi-cmds.c: Ditto.
12681         * mi/mi-common.h: Ditto.
12682         * mi/mi-console.c: Ditto.
12683         * mi/mi-interp.c: Ditto.
12684         * mi/mi-main.c: Ditto.
12685         * osf-share/cma_attr.c: Ditto.
12686         * osf-share/cma_deb_core.h: Ditto.
12687         * osf-share/cma_debug_client.h: Ditto.
12688         * osf-share/cma_handle.h: Ditto.
12689         * osf-share/cma_mutex.h: Ditto.
12690         * osf-share/cma_stack_int.h: Ditto.
12691         * osf-share/cma_tcb_defs.h: Ditto.
12692         * python/py-auto-load.c: Ditto.
12693         * python/py-breakpoint.c: Ditto.
12694         * python/py-cmd.c: Ditto.
12695         * python/py-frame.c: Ditto.
12696         * python/py-objfile.c: Ditto.
12697         * python/py-param.c: Ditto.
12698         * python/py-progspace.c: Ditto.
12699         * python/py-symbol.c: Ditto.
12700         * python/py-value.c: Ditto.
12701         * python/python-internal.h: Ditto.
12702         * python/python.c: Ditto.
12703         * tui/tui-data.c: Ditto.
12704         * tui/tui-disasm.c: Ditto.
12705         * tui/tui-hooks.c: Ditto.
12706         * tui/tui-io.c: Ditto.
12707         * tui/tui-layout.c: Ditto.
12708         * tui/tui-regs.c: Ditto.
12709         * tui/tui-source.c: Ditto.
12710         * tui/tui-stack.c: Ditto.
12711         * tui/tui-win.c: Ditto.
12712         * tui/tui-windata.c: Ditto.
12713         * tui/tui-winsource.c: Ditto.
12714
12715 2011-01-05  Joel Brobecker  <brobecker@adacore.com>
12716
12717         * configure.ac, gdb.1: Copyright year update.
12718
12719 2011-01-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
12720
12721         * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
12722         this_pc_in_block, morestack_msym and morestack_name.  Check for
12723         "__morestack" minimal symbol there.
12724
12725 2011-01-03  Joel Brobecker  <brobecker@adacore.com>
12726
12727         * symfile.c (find_sym_fns): Add call to dont_repeat.
12728
12729 2011-01-01  Joel Brobecker  <brobecker@adacore.com>
12730
12731         Copyright year update in most files (performed by copyright.sh).
12732
12733 2011-01-01  Joel Brobecker  <brobecker@adacore.com>
12734
12735         * top.c (print_gdb_version): Update copyright year in version output.
12736
12737 For older changes see ChangeLog-2010.
12738 \f
12739 Local Variables:
12740 mode: change-log
12741 left-margin: 8
12742 fill-column: 74
12743 version-control: never
12744 coding: utf-8
12745 End: