Add AArch64 Pointer Authentication to the NEWS file
[external/binutils.git] / gdb / ChangeLog-2011
1 2011-12-30  Doug Evans  <dje@google.com>
2
3         * dwarf2read.c (read_typedef): Guard against self-referential typedefs.
4
5 2011-12-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
6
7         * gdbarch.sh (max_insn_length): Extend the comment by unit.
8         * gdbarch.h: Regenerate.
9
10 2011-12-28  Joel Brobecker  <brobecker@adacore.com>
11
12         * varobj.c (varobj_update): Minor reformatting, putting the function
13         name at the start of the next line.
14
15 2011-12-27  Doug Evans  <dje@google.com>
16
17         * dwarf2read.c (struct dwarf2_cu): Delete members first_fn, last_fn,
18         cached_fn.
19         (struct function_range): Delete.
20         (initialize_cu_func_list, add_to_cu_func_list): Delete.  All callers
21         updated.
22         (check_cu_functions): Ditto.
23
24 2011-12-27  Mark Kettenis  <kettenis@gnu.org>
25
26         * inf-ptrace.c [PT_IO && PIOD_READ_AUXV]
27         (inf_ptrace_xfer_partial): Implement TARGET_OBJECT_AUXV.
28         (inf_ptrace_auxv_parse): New function.
29         (inf_ptrace_target): Initialize to_auxv_parse field.
30
31 2011-12-27  Joel Brobecker  <brobecker@adacore.com>
32
33         * ada-lang.c (should_use_wild_match): New function.
34         (ada_lookup_simple_minsym): Use should_use_wild_match.
35         Minor simplification.  Add comment.
36         (ada_lookup_symbol_list): Use should_use_wild_match.
37         Minor simplification.
38
39 2011-12-27  Joel Brobecker  <brobecker@adacore.com>
40
41         * py-finishbreakpoint.c (bpfinishpy_init): Replace call to
42         sprintf by call to xsnprintf.
43
44 2011-12-27  Joel Brobecker  <brobecker@adacore.com>
45
46         * linespec.c (struct collect_minsyms) [list_mode]: New field.
47         (add_minsym): Ignore data symbols if not in list mode.
48         (search_minsyms_for_name): Set local.list_mode.
49
50 2011-12-27  Joel Brobecker  <brobecker@adacore.com>
51
52         * utils.c (gdb_realpath): Add better support for Windows hosts.
53
54 2011-12-23  Kevin Pouget  <kevin.pouget@st.com>
55
56         Introduce gdb.FinishBreakpoint in Python.
57         * NEWS: Add entry for FinishBreakpoint.
58         * Makefile.in (SUBDIR_PYTHON_OBS): Add py-finishbreakpoint.o.
59         (SUBDIR_PYTHON_SRCS): Add python/py-finishbreakpoint.c.
60         Add build rule for this file.
61         * infcmd.c (print_return_value): Split to create get_return_value.
62         (get_return_value): New function based on print_return_value. Handle
63         case where stop_registers are not set.
64         * inferior.h (get_return_value): New prototype.
65         * python/py-breakpoint.c (bppy_pending_object): Make non-static.
66         (gdbpy_breakpoint_created): Set is_py_finish_bp is necessary.
67         (struct breakpoint_object): Move to python-internal.h
68         (BPPY_REQUIRE_VALID): Likewise.
69         (BPPY_SET_REQUIRE_VALID): Likewise.
70         (gdbpy_breakpoint_created): Initialize is_finish_bp.
71         (gdbpy_should_stop): Add  pre/post hooks before/after calling stop
72         method.
73         * python/python-internal.h (breakpoint_object_type): Add as extern.
74         (bppy_pending_object): Likewise.
75         (typedef struct breakpoint_object) Removed.
76         (struct breakpoint_object): Moved from py-breakpoint.c.
77         Add field is_finish_bp.
78         (BPPY_REQUIRE_VALID): Moved from py-breakpoint.c.
79         (BPPY_SET_REQUIRE_VALID): Likewise.
80         (frame_object_to_frame_info): New prototype.
81         (gdbpy_initialize_finishbreakpoints): New prototype.
82         (bpfinishpy_is_finish_bp): Likewise.
83         (bpfinishpy_pre_stop_hook): Likewise.
84         (bpfinishpy_post_stop_hook): Likewise.
85         * python/py-finishbreakpoint.c: New file.
86         * python/py-frame.c(frame_object_to_frame_info): Make non-static and
87         accept PyObject instead of frame_object.
88         (frapy_is_valid): Don't cast to frame_object.
89         (frapy_name): Likewise.
90         (frapy_type): Likewise.
91         (frapy_unwind_stop_reason): Likewise.
92         (frapy_pc): Likewise.
93         (frapy_block): Likewise.
94         (frapy_function): Likewise.
95         (frapy_older): Likewise.
96         (frapy_newer): Likewise.
97         (frapy_find_sal): Likewise.
98         (frapy_read_var): Likewise.
99         (frapy_select): Likewise.
100         * python/python.c (gdbpy_is_stopped_at_finish_bp): New noop function.
101         (_initialize_python): Add gdbpy_initialize_finishbreakpoints.
102         * python/python.h: Include breakpoint.h
103         (gdbpy_is_stopped_at_finish_bp): New prototype.
104
105 2011-12-22  Tom Tromey  <tromey@redhat.com>
106
107         PR python/12533:
108         * value.h (release_value_or_incref): Declare.
109         * value.c (struct value) <released>: New field.
110         (free_all_values, release_value, value_release_to_mark): Update
111         'released'.
112         (release_value_or_incref): New function.
113         * python/py-value.c (valpy_new): Use release_value_or_incref.
114         (value_to_value_object): Likewise.
115         * varobj.c (install_new_value): Move value_incref earlier.
116
117 2011-12-22  Tom Tromey  <tromey@redhat.com>
118
119         * value.c (struct value) <modifiable, lazy, optimized_out,
120         initialized, stack>: Now bitfields.  Move to top.
121         <reference_count>: Move earlier.
122
123 2011-12-21  Tom Tromey  <tromey@redhat.com>
124
125         * minsyms.h: Rearrange.  Document header and all functions.
126         * minsyms.c: Move some comments to minsyms.h.
127
128 2011-12-21  Tom Tromey  <tromey@redhat.com>
129
130         * symtab.h: Include minsyms.h.
131         (prim_record_minimal_symbol, prim_record_minimal_symbol_full)
132         (prim_record_minimal_symbol_and_info, msymbol_hash_iw)
133         (msymbol_hash, SYMBOL_HASH_NEXT, msymbol_objfile)
134         (lookup_minimal_symbol, lookup_minimal_symbol_text)
135         (lookup_minimal_symbol_solib_trampoline)
136         (lookup_minimal_symbol_by_pc_name, lookup_minimal_symbol_by_pc)
137         (iterate_over_minimal_symbols, lookup_minimal_symbol_and_objfile)
138         (lookup_minimal_symbol_by_pc_section)
139         (lookup_solib_trampoline_symbol_by_pc)
140         (init_minimal_symbol_collection)
141         (make_cleanup_discard_minimal_symbols, install_minimal_symbols)
142         (msymbols_sort): Move to minsyms.h.
143         * objfiles.c (terminate_minimal_symbol_table): Move to minsyms.c.
144         * minsyms.c (terminate_minimal_symbol_table): Move from
145         objfiles.c.
146         * minsyms.h: New file.
147
148 2011-12-21  Tom Tromey  <tromey@redhat.com>
149
150         * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence): Use
151         ALL_OBJFILE_MSYMBOLS.
152         (hppa_hpux_find_dummy_bpaddr): Likewise.
153         * jit.c (jit_object_close_impl): Use
154         terminate_minimal_symbol_table.
155
156 2011-12-21  Tom Tromey  <tromey@redhat.com>
157
158         * elfread.c (elf_symtab_read): Put the filename in the filename
159         bcache.
160
161 2011-12-21  Tom Tromey  <tromey@redhat.com>
162
163         * symtab.h (struct minimal_symbol) <filename>: Now const.
164
165 2011-12-21  Ulrich Weigand  <ulrich.weigand@linaro.org>
166
167         PR tdep/12797
168         * arm-tdep.c (arm_return_value): Handle complex types.
169
170 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
171
172         * ppc-linux-nat.c (create_watchpoint_request): Only use ranged
173         watchpoints when supported.
174
175 2011-12-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
176
177         * symfile.c (objfilep): New typedef and new DEF_VEC_P.
178         (reread_symbols): Remove variable reread_one, new variables
179         new_objfiles, all_cleanups and ix.  Use new_objfiles instead of
180         reread_one.  Push changed objfiles to new_objfiles, call
181         observer_notify_new_objfile for them later.
182
183 2011-12-21  Joel Brobecker  <brobecker@adacore.com>
184
185         * psymtab.c (expand_symtabs_matching_via_partial): Match
186         the partial symbols using their SYMBOL_SEARCH_NAME.
187         * symfile.h (struct quick_symbol_functions): Udate the
188         documentation of expand_symtabs_matching.
189         * dwarf2read.c (write_psymbols): Use SYMBOL_SEARCH_NAME instead
190         of SYMBOL_NATURAL_NAME in index entry.
191
192 2011-12-21  Joel Brobecker  <brobecker@adacore.com>
193
194         * linespec.c (locate_first_half): Add handling of Ada operators
195         when the current language is Ada.
196
197 2011-12-21  Joel Brobecker  <brobecker@adacore.com>
198
199         * objfiles.c (insert_section_p): Do not detect overlay sections
200         if overlay debugging is off.
201
202 2011-12-21  Joel Brobecker  <brobecker@adacore.com>
203
204         * ada-lang.c (is_name_suffix): Add handling of "TKB" suffixes.
205         Update function documentation.
206         * dictionary.c (dict_hash): Ignore "TKB" suffixes in hash
207         computation.
208
209 2011-12-20  Pedro Alves  <alves.ped@gmail.com>
210             Jan Kratochvil  <jan.kratochvil@redhat.com>
211
212         * linux-nat.c (add_lwp): Don't call linux_nat_new_thread on the
213         first LWP.
214         * amd64-linux-nat.c (update_debug_registers_callback): Instantiate
215         `lwp->arch_private' if NULL.
216         (amd64_linux_prepare_to_resume): Do nothing if `lwp->arch_private'
217         is NULL.
218         * i386-linux-nat.c (update_debug_registers_callback): Instantiate
219         `lwp->arch_private' if NULL.
220         (i386_linux_prepare_to_resume): Do nothing if `lwp->arch_private'
221         is NULL.
222
223 2011-12-19  Doug Evans  <dje@google.com>
224
225         * python/py-auto-load.c (info_auto_load_scripts): Pass address of
226         scripts vector to collect_matching_scripts.
227         (collect_matching_scripts): Update.
228
229 2011-12-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
230
231         * symfile.c (reread_symbols): Move free_objfile_separate_debug,
232         preserve_values, sym_finish and clear_objfile_data calls before BFD
233         close.  Move free_objfile_separate_debug as the very first call.  New
234         comment on the ordering.
235
236 2011-12-19  Ulrich Weigand  <uweigand@de.ibm.com>
237
238         * s390-tdep.c (s390_push_dummy_call): Set addressing mode bit
239         in return PSWA.
240
241 2011-12-19  Tom Tromey  <tromey@redhat.com>
242
243         * symtab.h (add_minsym_to_hash_table): Don't declare.
244         * minsyms.c (add_minsym_to_hash_table): Now static.
245
246 2011-12-19  Joel Brobecker  <brobecker@adacore.com>
247
248         * elfread.c (elf_symtab_read): Ignore undefined symbols with
249         nonzero addresses if they do not correspond to a .plt section
250         when one is available in the objfile.
251
252 2011-12-17  Andreas Schwab  <schwab@linux-m68k.org>
253
254         * cp-name-parser.y (cp_merge_demangle_parse_infos): Don't use
255         obstack_empty_p.
256
257 2011-12-17  Mark Kettenis  <kettenis@gnu.org>
258
259         * amd64obsd-tdep.c (amd64obsd_init_abi): Don't set
260         regset_from_core_section.
261         (amd64obsd_core_init_abi): New function that sets
262         regset_from_core_section.
263         (_initialize_amd64obsd_tdep): Use amd64obsd_core_init_abi for
264         traditional core dumps.
265
266 2011-12-17  Mark Kettenis  <kettenis@gnu.org>
267
268         * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Detect new signal
269         trampoline to be introduced in OpenBSD 5.0.
270
271 2011-12-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
272
273         Fix build regression from the PR threads/10729 fix.
274         * s390-nat.c (s390_insert_watchpoint, s390_remove_watchpoint): Use LP,
275         not LP->PTID.
276
277 2011-12-16  Andrey Smirnov  <andrew.smirnov@gmail.com>
278
279         * mi/mi-main.c (mi_cmd_list_thread_groups): Rename `optind' and
280         `optarg' to `oind' and `oarg', respectively(-Wshadow).
281         (mi_cmd_data_read_memory): Ditto.
282         (mi_cmd_data_read_memory_bytes): Ditto.
283         (mi_cmd_data_write_memory): Ditto.
284
285 2011-12-16  Andrey Smirnov  <andrew.smirnov@gmail.com>
286
287         * mi/mi-getopt.c (mi_getopt): Rename `optind' and `optarg' to
288         `oind' and `oarg', respectively(-Wshadow).
289         (mi_valid_noargs): Ditto.
290
291 2011-12-16  Andrey Smirnov  <andrew.smirnov@gmail.com>
292
293         * mi/mi-cmd-var.c (print_varobj): Rename `optind' and `optarg' to
294         `oind' and `oarg', respectively(-Wshadow).
295
296 2011-12-16  Andrey Smirnov  <andrew.smirnov@gmail.com>
297
298         * mi/mi-cmd-target.c (mi_cmd_target_file_get): Rename `optind' and
299         `optarg' to `oind' and `oarg', respectively(-Wshadow).
300         (mi_cmd_target_file_put): Ditto.
301         (mi_cmd_target_file_delete): Ditto.
302
303 2011-12-16  Andrey Smirnov  <andrew.smirnov@gmail.com>
304
305         * mi/mi-cmd-env.c (mi_cmd_env_path): Rename `optind' and
306         `optarg' to `oind' and `oarg', respectively(-Wshadow).
307         (mi_cmd_env_dir): Ditto.
308
309 2011-12-16  Andrey Smirnov  <andrew.smirnov@gmail.com>
310
311         * mi/mi-cmd-disas.c (mi_cmd_disassemble): Rename `optind' and
312         `optarg' to `oind' and `oarg', respectively(-Wshadow).
313
314 2011-12-16  Andrey Smirnov  <andrew.smirnov@gmail.com>
315
316         * mi/mi-cmd-break.c (mi_cmd_break_insert): Rename `optind' and
317         `optparg' to `oind' and `oarg', respectively(-Wshadow).
318         (mi_cmd_break_watch): Ditto.
319
320 2011-12-16  Tom Tromey  <tromey@redhat.com>
321
322         * linespec.c (collect_symbols): Call maybe_add_address after
323         calling symbol_to_sal.
324         (minsym_found): Call maybe_add_address here.
325         (search_minsyms_for_name): Don't call maybe_add_address.
326
327 2011-12-16  Tom Tromey  <tromey@redhat.com>
328
329         * linespec.c (struct collect_info) <objfile>: Remove field.
330         (decode_objc): Update.
331         (find_method): Update.
332         (decode_variable): Update.
333         (struct minsym_and_objfile): New.
334         (struct collect_minsyms): New.
335         (classify_mtype): New function.
336         (compare_msyms): Likewise.
337         (add_minsym): Likewise.
338         (check_minsym): Remove.
339         (search_minsyms_for_name): Sort minsyms and apply only those with
340         top priority.
341
342 2011-12-16  Tom Tromey  <tromey@redhat.com>
343
344         * cli/cli-cmds.c (filter_sals): Filter out sals with NULL symtab.
345
346 2011-12-16  Pedro Alves  <pedro@codesourcery.com>
347
348         * inf-loop.c: Include top.h.
349         (inferior_event_handler): Call check_frame_language.
350         * top.c (check_frame_language_change): New, factored out from ...
351         (execute_command): ... this.  Use check_frame_language_change.
352         * top.h (check_frame_language_change): Declare.
353
354 2011-12-16  asmwarrior  <asmwarrior@gmail.com>  (obvious fix)
355
356         * windows-nat.c (cygwin_get_dr, cygwin_get_dr7): Add missing
357         prototypes.
358
359 2011-12-16  Doug Evans  <dje@google.com>
360
361         * NEWS: Add entry for stdio gdbserver.
362
363 2011-12-16  Phil Muldoon  <pmuldoon@redhat.com>
364
365         * python/python.c: Define python_excp_enums.
366         (eval_python_from_control_command): Do not call gdbpy_print_stack.
367         (python_command): Ditto.
368         (gdbpy_print_stack): Rewrite to use new enum constants.
369         (maint_set_python): Remove function.
370         (maint_show_python): Ditto.
371         (_initialize_python): Do not add "maint" commands.  Add "set/show
372         python print-stack commands".
373         * NEWS: Update to reflect removal for "maint set/show
374         print-stack"
375
376 2011-12-15  Doug Evans  <dje@google.com>
377
378         * exceptions.c (catcher_list_size): New function.
379         (last_message): Delete.
380         (exception_messages, exception_messages_size): New static globals.
381         (throw_it): Use exception_messages array to handle nested calls.
382
383 2011-12-15  Tom Tromey  <tromey@redhat.com>
384
385         * symfile.c (symbol_file_add_with_addrs_or_offsets): Remove bad
386         do_cleanups call.
387
388 2011-12-14  Doug Evans  <dje@google.com>
389
390         * defs.h (wait_to_die_with_timeout): Declare.
391         * utils.c: #include "gdb_wait.h".
392         (sigalrm_handler, wait_to_die_with_timeout): New functions.
393         * ser-pipe.c: Don't #include "gdb_wait.h".
394         (pipe_close): Give child a chance to die on its own after closing
395         its stdin before SIGTERM'ing it.
396
397 2011-12-14  Joel Brobecker  <brobecker@adacore.com>
398             Tom Tromey  <tromey@redhat.com>
399
400         * ada-lang.c (add_nonlocal_symbols): Initialize data to
401         all zeros.  Remove setting of data.arg_sym to NULL.
402
403 2011-12-14  Pedro Alves  <pedro@codesourcery.com>
404
405         PR threads/10729
406
407         * linux-nat.c (linux_nat_new_thread): Change parameter to an lwp
408         pointer.
409         (linux_nat_prepare_to_resume): New global.
410         (lwp_free): New.
411         (purge_lwp_list): Use it.
412         (add_lwp): Call linux_nat_new_thread even on the first LWP.
413         Adjust to interface change.
414         (delete_lwp): Call lwp_free instead of xfree.
415         (detach_callback, linux_nat_detach, resume_lwp, linux_nat_resume)
416         (linux_handle_syscall_trap, linux_handle_extended_wait)
417         (linux_nat_filter_event, resume_stopped_resumed_lwps): Call
418         linux_nat_prepare_to_resume before resuming.
419         (linux_stop_lwp): New.
420         (linux_nat_set_new_thread): Adjust.
421         (linux_nat_set_prepare_to_resume): New.
422         * linux-nat.h (struct arch_lwp_info): Forward declare.
423         (struct lwp_info) <arch_private>: New field.
424         (linux_stop_lwp): Declare.
425         (linux_nat_set_new_thread): Adjust.
426         (linux_nat_set_prepare_to_resume): New.
427
428         * i386-nat.c (DR_NADDR, DR_STATUS, DR_CONTROL)
429         (struct i386_debug_reg_state): Move to i386-nat.h.
430         (dr_mirror): Comment.
431         (i386_debug_reg_state): New.
432         (i386_update_inferior_debug_regs): Simplify.
433         (i386_stopped_data_address): Use the debug register state from the
434         inferior, not from the local cache.
435         * i386-nat.h (struct i386_dr_low_type): Delete reset_addr and
436         unset_status fields.  New get_addr and get_control fields.
437         (DR_FIRSTADDR, DR_LASTADDR, DR_CONTROL): Moved from i386-nat.c.
438         (DR_NADDR, DR_STATUS): New.
439         (struct i386_debug_reg_state): Moved from i386-nat.c.
440
441         * amd64-linux-nat.c (struct arch_lwp_info): New.
442         (amd64_linux_dr): Delete global.
443         (amd64_linux_dr_get_addr): New.
444         (amd64_linux_dr_get_control): New.
445         (amd64_linux_dr_unset_status): Delete.
446         (amd64_linux_dr_set_addr): Reimplement.
447         (amd64_linux_dr_reset_addr): Delete.
448         (update_debug_registers_callback): New.
449         (amd64_linux_dr_set_control): Reimplement.
450         (amd64_linux_dr_set_addr): Reimplement.
451         (amd64_linux_prepare_to_resume): New.
452         (amd64_linux_new_thread): Change parameter to an lwp pointer.
453         Reimplement.
454         (_initialize_amd64_linux_nat): No longer install
455         i386_dr_low.reset_addr and i386_dr_low.unset_status.  Install
456         amd64_linux_dr_get_control as i386_dr_low.get_control.  Install
457         amd64_linux_dr_get_addr as i386_dr_low.get_addr.  Install
458         amd64_linux_prepare_to_resume.
459         * i386-linux-nat.c (DR_FIRSTADDR, DR_LASTADDR, DR_STATUS)
460         (DR_CONTROL): Delete.
461         (struct arch_lwp_info): New.
462         (i386_linux_dr): Delete global.
463         (i386_linux_dr_set_control): Reimplement.
464         (i386_linux_dr_get_addr): New.
465         (i386_linux_dr_set_addr): Reimplement.
466         (i386_linux_dr_get_control): New.
467         (update_debug_registers_callback): New.
468         (i386_linux_dr_unset_status): Delete.
469         (i386_linux_dr_set_addr): Reimplement.
470         (i386_linux_prepare_to_resume): New.
471         (i386_linux_new_thread): Change parameter to an lwp pointer.
472         Reimplement.
473         (_initialize_i386_linux_nat): No longer install
474         i386_dr_low.reset_addr and i386_dr_low.unset_status.  Install
475         i386_linux_dr_get_control as i386_dr_low.get_control.  Install
476         i386_linux_dr_get_addr as i386_dr_low.get_addr.  Install
477         i386_linux_prepare_to_resume.
478
479         * arm-linux-nat.c (arm_linux_new_thread): Change parameter to an
480         lwp pointer.  Adjust.
481         * ia64-linux-nat.c (ia64_linux_new_thread): Likewise.
482         * mips-linux-nat.c (mips_linux_new_thread): Likewise.
483         * ppc-linux-nat.c (ppc_linux_new_thread): Likewise.
484         * s390-nat.c (s390_fix_watch_points): Likewise.
485
486         * i386-darwin-nat.c (DR_FIRSTADDR, DR_LASTADDR, DR_STATUS)
487         (DR_CONTROL): Delete.
488         (i386_darwin_dr_reset_addr): Delete.
489         (i386_darwin_dr_get_addr): New.
490         (i386_darwin_dr_get_control): New.
491         * go32-nat.c
492         (go32_get_dr7, go32_get_dr): New.
493         (init_go32_ops): No longer install i386_dr_low.reset_addr.
494         Install go32_get_dr7 as i386_dr_low.get_control.  Install
495         go32_get_dr as i386_dr_low.get_addr.
496         * i386bsd-nat.c (i386bsd_dr_get): New.
497         (i386bsd_dr_reset_addr): Delete.
498         (i386bsd_dr_get_addr): New.
499         (i386bsd_dr_get_status): Use i386bsd_dr_get.
500         (i386bsd_dr_get_control): New.
501         * i386bsd-nat.h (i386bsd_dr_reset_addr): Delete.
502         (i386bsd_dr_get_addr): New.
503         (i386bsd_dr_get_control): New.
504         * i386fbsd-nat.c (_initialize_i386fbsd_nat): No longer install
505         i386_dr_low.reset_addr and i386_dr_low.unset_status.  Install
506         i386bsd_dr_get_control as i386_dr_low.get_control.  Install
507         i386bsd_dr_get_addr as i386_dr_low.get_addr.
508         * windows-nat.c (init_windows_ops): No longer install
509         i386_dr_low.reset_addr and i386_dr_low.unset_status.  Install
510         cygwin_get_dr7 as i386_dr_low.get_control.  Install cygwin_get_dr
511         as i386_dr_low.get_addr.
512         (cygwin_get_dr): New.
513         (cygwin_get_dr7): New.
514
515 2011-12-14  Pedro Alves  <pedro@codesourcery.com>
516
517         * ia64-tdep.c (ia64_memory_remove_breakpoint): Use
518         target_write_raw_memory.
519         * m32r-tdep.c (m32r_memory_remove_breakpoint): Use
520         target_write_raw_memory.
521         * microblaze-linux-tdep.c
522         (microblaze_linux_memory_remove_breakpoint): Use
523         target_write_raw_memory.
524         * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Use
525         target_write_raw_memory.
526
527 2011-12-14  Joel Brobecker  <brobecker@adacore.com>
528
529         * linespec.c (decode_line_internal): Make static.
530
531 2011-12-14  Yao Qi  <yao@codesourcery.com>
532
533         * breakpoint.c (create_breakpoint): Set canonical.addr_string
534         for static tracepoint.
535
536 2011-12-13  Joel Brobecker  <brobecker@adacore.com>
537
538         GDB 7.4 branch created (branch timestamp: 2011-12-13 13:00 UTC)
539         * version.in: Bump version to 7.4.50.20111213-cvs.
540
541 2011-12-13  Joel Brobecker  <brobecker@adacore.com>
542
543         * NEWS: Create a new section for the next release branch.
544         Rename the section of the current branch, now that it has
545         been cut.
546
547 2011-12-11  Joel Brobecker  <brobecker@adacore.com>
548
549         * ada-lang.c (ada_exception_support_info_sniffer): Improve
550         error message.
551
552 2011-12-11  Joel Brobecker  <brobecker@adacore.com>
553
554         * ada-lang.c (struct ada_inferior_data) [exception_info]:
555         New field.
556         (exception_info): Delete.
557         (ada_exception_support_info_sniffer): Get exception_support_info
558         data from our per-inferior data.  Adjust code accordingly.
559         (ada_unhandled_exception_name_addr_from_raise): Likewise.
560         (ada_exception_name_addr_1, ada_exception_sym_name): Ditto.
561         (ada_executable_changed_observer): Delete.
562         (_initialize_ada_language): Remove call to
563         observer_attach_executable_changed.
564
565 2011-12-11  Joel Brobecker  <brobecker@adacore.com>
566
567         * ada-lang.c (ada_has_this_exception_support): Raise an error
568         if we could find the Ada exception hook in the Ada runtime,
569         but no debugging info for that hook.
570
571 2011-12-11  Joel Brobecker  <brobecker@adacore.com>
572
573         * ada-lang.c (ada_has_this_exception_support): New function,
574         extracted out of ada_exception_sal and ada_exception_sal.
575         (ada_exception_support_info_sniffer): Simplify by using
576         ada_has_this_exception_support.
577         (ada_exception_sal): Replace unnecessary checks by assertions.
578         Minor simplifications.
579
580 2011-12-10  Andrey Smirnov  <andrew.smirnov@gmail.com>
581
582         * breakpoint.c (update_global_location_list): Remove nested
583         definition of `b'(-Wshadow).
584
585 2011-12-10  Andrey Smirnov  <andrew.smirnov@gmail.com>
586
587         * breakpoint.c (insert_breakpoint_locations): Rename `error' to
588         `error_flag'(-Wshadow).
589
590 2011-12-10  Andrey Smirnov  <andrew.smirnov@gmail.com>
591
592         * bfd-target.c (target_bfd_reopen): Rename `bfd' to
593         `abfd'(-Wshadow).
594
595 2011-12-10  Andrey Smirnov  <andrew.smirnov@gmail.com>
596
597         * annotate.c (annotate_array_section_begin): Rename `index' to
598         `idx'(-Wshadow).
599
600 2011-12-10  Andrey Smirnov  <andrew.smirnov@gmail.com>
601
602         * amd64-tdep.c (amd64_get_unused_input_int_reg): Rename `index' to
603         `idx'(-Wshadow).
604
605 2011-12-10  Andrey Smirnov  <andrew.smirnov@gmail.com>
606
607         * amd64-linux-tdep.c (amd64_canonicalize_syscall): Rename
608         `syscall' to `syscall_number'(-Wshadow).
609
610 2011-12-10  Andrey Smirnov  <andrew.smirnov@gmail.com>
611
612         * ada-lang.c (remove_extra_symbols): Rename `remove' to
613         `remove_p'(-Wshadow).
614
615 2011-12-10  Andrey Smirnov  <andrew.smirnov@gmail.com>
616
617         * ada-exp.y (write_var_or_type): Rename nested `renaming' to
618         `ren_sym'(-Wshadow).
619
620 2011-12-10  Doug Evans  <dje@google.com>
621
622         * dwarf2read.c (dwarf2_per_cu_data): Rename debug_type_section to
623         debug_types_section.  All uses updated.
624         (partial_read_comp_unit_head): Rename parameter is_debug_type_section
625         to is_debug_types_section.
626
627         * python/py-auto-load.c (source_section_scripts): Call xfree
628         instead of free.
629
630 2011-12-10  Hui Zhu  <teawater@gmail.com>
631             Yao Qi  <yao@codesourcery.com>
632
633         * tracepoint.c (start_tracing): Clear `inserted' flag.
634
635 2011-12-10  Hui Zhu  <teawater@gmail.com>
636
637         * tracepoint.c (create_tsv_from_upload): Change sprintf to xstrprintf.
638
639 2011-12-09  Andrey Smirnov  <andrew.smirnov@gmail.com>
640
641         * breakpoint.c (bp_loc_is_permanent): Rename `brk' to
642         `bpoint'(-Wshadow).
643
644 2011-12-09  Andrey Smirnov  <andrew.smirnov@gmail.com>
645
646         * breakpoint.c (update_static_tracepoint): Rename nested `sal' and
647         `marker' variables to `sal2' and `tpmarker' respectively
648         (-Wshadow).
649
650 2011-12-09  Andrew Pinski  <apinski@cavium.com>
651
652         * linespec.c (hash_address_entry): Use iterative_hash_object on each
653         field rather than the struct itself.
654
655 2011-12-09  Tom Tromey  <tromey@redhat.com>
656
657         * breakpoint.c (compare_breakpoints): New function.
658         (clear_command): Remove duplicate breakpoints.  Properly clean
659         up.
660
661 2011-12-08  Maciej W. Rozycki  <macro@mips.com>
662             Maciej W. Rozycki  <macro@codesourcery.com>
663
664         * mips-tdep.c (mips_skip_mips16_trampoline_code): Sign-extend
665         address chunks retrieved from decoded lui/addiu pairs.
666
667 2011-12-08  Maciej W. Rozycki  <macro@codesourcery.com>
668
669         * mips-tdep.c (extended_offset): Correct calculation.
670         (unpack_mips16): Correct bitfield positions used for extraction
671         of the immediate argument; fix sign-extension of same.
672         (extended_mips16_next_pc): Correct B instruction's offset
673         calculation.  Correct register decoding of the BEQZ and BNEZ
674         as well as jump-register instructions.  Handle compact jumps.
675
676 2011-12-08  Tom Tromey  <tromey@redhat.com>
677
678         * objfiles.h (struct objfile): Remove obsolete comment.
679         * objfiles.c (build_objfile_section_table): Remove obsolete
680         comment.
681
682 2011-12-07  Stan Shebs  <stan@codesourcery.com>
683
684         * MAINTAINERS (Responsible Maintainers): Add Yao Qi as
685         maintainer of the tic6x target.
686
687 2011-12-07  Ulrich Weigand  <ulrich.weigand@linaro.org>
688
689         * arm-tdep.h (arm_deal_with_atomic_sequence): Add prototype.
690         * arm-tdep.c (thumb_deal_with_atomic_sequence_raw): New function.
691         (arm_deal_with_atomic_sequence_raw): Likewise.
692         (arm_deal_with_atomic_sequence): Likewise.
693         (arm_software_single_step): Call it.
694         * arm-linux-tdep.c (arm_linux_software_single_step): Likewise.
695
696 2011-12-07  Ulrich Weigand  <uweigand@de.ibm.com>
697
698         * s390-tdep.c: Replace "Linux" by "GNU/Linux" in comments
699         where appropriate.
700         * s390-tdep.h: Likewise.
701
702 2011-12-07  Tristan Gingold  <gingold@adacore.com>
703
704         * machoread.c (macho_symtab_read): Do not consider N_OPT as
705         a debugging stab.  Improve complaint message.
706
707 2011-12-07  Maciej W. Rozycki  <macro@codesourcery.com>
708
709         * mips-tdep.c (mips32_scan_prologue): Only update the immediate
710         load adjustment if still within the prologue.
711
712 2011-12-06  Maciej W. Rozycki  <macro@codesourcery.com>
713
714         * mips-tdep.c (mips32_next_pc): Fix floating point condition
715         code mask.
716
717 2011-12-06  Maciej W. Rozycki  <macro@codesourcery.com>
718
719         * mips-tdep.c (deal_with_atomic_sequence): Fix the handling
720         of BLTZ* and BGEZ* instructions.
721
722 2011-12-06  Maciej W. Rozycki  <macro@codesourcery.com>
723
724         * mips-tdep.c (mips_pc_is_mips16): Reverse the order of checks
725         performed to determine whether an address refers to standard
726         MIPS or MIPS16 code.
727         (mips16_next_pc): Use mips_pc_is_mips16 instead of
728         is_mips16_addr.
729
730 2011-12-06  Pedro Alves  <pedro@codesourcery.com>
731
732         * breakpoint.c (breakpoint_restore_shadows): Rename to ...
733         (breakpoint_xfer_memory): ... this.  Change prototype.  Handle
734         memory writes too.
735         * breakpoint.h (breakpoint_restore_shadows): Delete.
736         (breakpoint_xfer_memory): Declare.
737         * mem-break.c (default_memory_insert_breakpoint)
738         (default_memory_remove_breakpoint): Use target_write_raw_memory.
739         (memory_xfer_partial): Rename to ...
740         (memory_xfer_partial_1): ... this.  Don't mask out breakpoints
741         here.
742         (memory_xfer_partial): New.
743         (target_write_raw_memory): New.
744         * target.h (target_write_raw_memory): New.
745
746 2011-12-06  Doug Evans  <dje@google.com>
747
748         * linespec.c (decode_dollar): Avoid "may be used uninitialized" warning.
749
750 2011-12-06  Joel Brobecker  <brobecker@acacore.com>
751
752         * language.h (struct language_defn): Add new component
753         la_symbol_name_compare.
754         * symfile.h (struct quick_symbol_functions): Update the profile
755         of parameter "name_matcher" for the expand_symtabs_matching
756         method.  Update the documentation accordingly.
757         * ada-lang.h (ada_name_for_lookup): Add declaration.
758         * ada-lang.c (ada_name_for_lookup): New function, extracted out
759         from ada_iterate_over_symbols.
760         (ada_iterate_over_symbols): Do not encode symbol name anymore.
761         (ada_expand_partial_symbol_name): Adjust profile.
762         (ada_language_defn): Add value for la_symbol_name_compare field.
763         * linespec.c: #include "ada-lang.h".
764         (iterate_name_matcher): Add language parameter. Replace call
765         to strcmp_iw by call to language->la_symbol_name_compare.
766         (decode_variable): Encode COPY if current language is Ada.
767         * dwarf2read.c (dw2_expand_symtabs_matching): Adjust profile
768         of name_matcher parameter.  Adjust call to name_matcher.
769         * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
770         (expand_partial_symbol_names): Update profile of parameter "fun".
771         * psymtab.h (expand_partial_symbol_names): Update profile of
772         parameter "fun".
773         * symtab.c (demangle_for_lookup): Update function documentation.
774         (search_symbols_name_matches): Add language parameter.
775         (expand_partial_symbol_name): Likewise.
776         * c-lang.c (c_language_defn, cplus_language_defn)
777         (asm_language_defn, minimal_language_defn): Add value for
778         la_symbol_name_compare field.
779         * d-lang.c (d_language_defn): Likewise.
780         * f-lang.c (f_language_defn): Ditto.
781         * jv-lang.c (java_language_defn): Ditto.
782         * m2-lang.c (m2_language_defn): Ditto.
783         * objc-lang.c (objc_language_defn): Ditto.
784         * opencl-lang.c (opencl_language_defn): Ditto.
785         * p-lang.c (pascal_language_defn): Ditto.
786         * language.c (unknown_language_defn, auto_language_defn)
787         (local_language_defn): Ditto.
788
789 2011-12-06  Tom Tromey  <tromey@redhat.com>
790
791         * linespec.c (iterate_over_all_matching_symtabs): Use
792         LA_ITERATE_OVER_SYMBOLS.
793         (lookup_prefix_sym, add_matching_symbols_to_info): Likewise.
794         (find_function_symbols, decode_variable): Remove Ada special
795         case.
796         * language.h (struct language_defn) <la_iterate_over_symbols>: New
797         field.
798         (LA_ITERATE_OVER_SYMBOLS): New macro.
799         * language.c (unknown_language_defn, auto_language_defn)
800         (local_language_defn): Update.
801         * c-lang.c (c_language_defn, cplus_language_defn)
802         (asm_language_defn, minimal_language_defn): Update.
803         * d-lang.c (d_language_defn): Update.
804         * f-lang.c (f_language_defn): Update.
805         * jv-lang.c (java_language_defn): Update.
806         * m2-lang.c (m2_language_defn): Update.
807         * objc-lang.c (objc_language_defn): Update.
808         * opencl-lang.c (opencl_language_defn): Update.
809         * p-lang.c (pascal_language_defn): Update.
810         * ada-lang.c (ada_iterate_over_symbols): New function.
811         (ada_language_defn): Update.
812
813 2011-12-06  Tom Tromey  <tromey@redhat.com>
814             Joel Brobecker  <brobecker@acacore.com>
815
816         PR breakpoints/13105, PR objc/8341, PR objc/8343, PR objc/8366,
817         PR objc/8535, PR breakpoints/11657, PR breakpoints/11970,
818         PR breakpoints/12023, PR breakpoints/12334, PR breakpoints/12856,
819         PR shlibs/8929, PR shlibs/7393:
820         * python/py-type.c (compare_maybe_null_strings): Rename from
821         compare_strings.
822         (check_types_equal): Update.
823         * utils.c (compare_strings): New function.
824         * tui/tui-winsource.c (tui_update_breakpoint_info): Update for
825         location changes.
826         * tracepoint.c (scope_info): Update.
827         (trace_find_line_command): Use DECODE_LINE_FUNFIRSTLINE.
828         * symtab.h (iterate_over_minimal_symbols)
829         (iterate_over_some_symtabs, iterate_over_symtabs)
830         (find_pcs_for_symtab_line, iterate_over_symbols)
831         (demangle_for_lookup): Declare.
832         (expand_line_sal): Remove.
833         * symtab.c (iterate_over_some_symtabs, iterate_over_symtabs)
834         (lookup_symtab_callback): New functions.
835         (lookup_symtab): Rewrite.
836         (demangle_for_lookup): New function, extract from
837         lookup_symbol_in_language.
838         (lookup_symbol_in_language): Use it.
839         (iterate_over_symbols): New function.
840         (find_line_symtab): Update.
841         (find_pcs_for_symtab_line): New functions.
842         (find_line_common): Add 'start' argument.
843         (decode_line_spec): Update.  Change argument to 'flags', change
844         interpretation.
845         (append_expanded_sal): Remove.
846         (append_exact_match_to_sals): Remove.
847         (expand_line_sal): Remove.
848         * symfile.h (struct quick_symbol_functions) <lookup_symtab>:
849         Remove.
850         <map_symtabs_matching_filename>: New field.
851         * stack.c (func_command): Only look in the current program space.
852         Use DECODE_LINE_FUNFIRSTLINE.
853         * source.c (line_info): Set pspace on sal.  Check program space in
854         the loop.  Use DECODE_LINE_LIST_MODE.
855         (select_source_symtab): Use DECODE_LINE_FUNFIRSTLINE.
856         * solib-target.c: Remove DEF_VEC_I(CORE_ADDR).
857         * python/python.c (gdbpy_decode_line): Update.
858         * psymtab.c (partial_map_expand_apply): New function.
859         (partial_map_symtabs_matching_filename): Rename from
860         lookup_partial_symbol.  Update arguments.
861         (lookup_symtab_via_partial_symtab): Remove.
862         (psym_functions): Update.
863         * objc-lang.h (parse_selector, parse_method): Don't declare.
864         (find_imps): Update.
865         * objc-lang.c (parse_selector, parse_method): Now static.
866         (find_methods): Change arguments.  Fill in a vector of symbol
867         names.
868         (uniquify_strings): New function.
869         (find_imps): Change arguments.
870         * minsyms.c (iterate_over_minimal_symbols): New function.
871         * linespec.h (enum decode_line_flags): New.
872         (struct linespec_sals): New.
873         (struct linespec_result) <canonical>: Remove.
874         <pre_expanded, addr_string, sals>: New fields.
875         (destroy_linespec_result, make_cleanup_destroy_linespec_result)
876         (decode_line_full): Declare.
877         (decode_line_1): Update.
878         * linespec.c (struct address_entry, struct linespec_state, struct
879         collect_info): New types.
880         (add_sal_to_sals_basic, add_sal_to_sals, hash_address_entry)
881         (eq_address_entry, maybe_add_address): New functions.
882         (total_number_of_methods): Remove.
883         (iterate_name_matcher, iterate_over_all_matching_symtabs): New
884         functions.
885         (find_methods): Change arguments.  Don't canonicalize input.
886         Simplify logic.
887         (add_matching_methods, add_constructors)
888         (build_canonical_line_spec): Remove.
889         (filter_results, convert_results_to_lsals): New functions.
890         (decode_line_2): Change arguments.  Rewrite for new data
891         structures.
892         (decode_line_internal): Rename from decode_line_1.  Change
893         arguments.  Add cleanups.  Update for new data structures.
894         (linespec_state_constructor, linespec_state_destructor)
895         (decode_line_full, decode_line_1): New functions.
896         (decode_indirect): Change arguments.  Update.
897         (locate_first_half): Use skip_spaces.
898         (decode_objc): Change arguments.  Update for new data structures.
899         Simplify logic.
900         (decode_compound): Change arguments.  Add cleanups.  Remove
901         fallback code, replace with error.
902         (struct decode_compound_collector): New type.
903         (collect_one_symbol): New function.
904         (lookup_prefix_sym): Change arguments.  Update.
905         (compare_symbol_name, add_all_symbol_names_from_pspace)
906         (find_superclass_methods ): New functions.
907         (find_method): Rewrite.
908         (struct symtab_collector): New type.
909         (add_symtabs_to_list, collect_symtabs_from_filename): New
910         functions.
911         (symtabs_from_filename): Change API.  Rename from
912         symtab_from_filename.
913         (collect_function_symbols): New function.
914         (find_function_symbols): Change API.  Rename from
915         find_function_symbol.  Rewrite.
916         (decode_all_digits): Change arguments.  Rewrite.
917         (decode_dollar): Change arguments.  Use decode_variable.
918         (decode_label): Change arguments.  Rewrite.
919         (collect_symbols): New function.
920         (minsym_found): Change arguments.  Rewrite.
921         (check_minsym, search_minsyms_for_name)
922         (add_matching_symbols_to_info): New function.
923         (decode_variable): Change arguments.  Iterate over all symbols.
924         (symbol_found): Remove.
925         (symbol_to_sal): New function.
926         (init_linespec_result, destroy_linespec_result)
927         (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
928         New functions.
929         (decode_digits_list_mode, decode_digits_ordinary): New functions.
930         * dwarf2read.c (dw2_map_expand_apply): New function.
931         (dw2_map_symtabs_matching_filename): Rename from
932         dw2_lookup_symtab.  Change arguments.
933         (dwarf2_gdb_index_functions): Update.
934         * dwarf2loc.c: Remove DEF_VEC_I(CORE_ADDR).
935         * defs.h (compare_strings): Declare.
936         * cli/cli-cmds.c (compare_strings): Move to utils.c.
937         (edit_command, list_command): Use DECODE_LINE_LIST_MODE.  Call
938         filter_sals.
939         (compare_symtabs, filter_sals): New functions.
940         * breakpoint.h (struct bp_location) <line_number, source_file>:
941         New fields.
942         (struct breakpoint) <line_number, source_file>: Remove.
943         <filter>: New field.
944         * breakpoint.c (print_breakpoint_location, init_raw_breakpoint)
945         (momentary_breakpoint_from_master, add_location_to_breakpoint):
946         Update for changes to locations.
947         (init_breakpoint_sal): Add 'filter' argument.  Set 'filter' on
948         breakpoint.
949         (create_breakpoint_sal): Add 'filter' argument.
950         (remove_sal, expand_line_sal_maybe): Remove.
951         (create_breakpoints_sal): Remove 'sals' argument.  Handle
952         pre-expanded sals and the filter.
953         (parse_breakpoint_sals): Use decode_line_full.
954         (check_fast_tracepoint_sals): Use get_sal_arch.
955         (create_breakpoint): Create a linespec_sals.  Update.
956         (break_range_command): Use decode_line_full.  Update.
957         (until_break_command): Update.
958         (clear_command): Update match conditions for linespec.c changes.
959         Use DECODE_LINE_LIST_MODE.
960         (say_where): Update for changes to locations.
961         (bp_location_dtor): Free 'source_file'.
962         (base_breakpoint_dtor): Free 'filter'.  Don't free 'source_file'.
963         (update_static_tracepoint): Update for changes to locations.
964         (update_breakpoint_locations): Disable ranged breakpoint if too
965         many locations match.  Update.
966         (addr_string_to_sals): Use decode_line_full.  Resolve all sal
967         PCs.
968         (breakpoint_re_set_default): Don't call expand_line_sal_maybe.
969         (decode_line_spec_1): Update.  Change argument name to 'flags',
970         change interpretation.
971         * block.h (block_containing_function): Declare.
972         * block.c (block_containing_function): New function.
973         * skip.c (skip_function_command): Update.
974         (skip_re_set): Update.
975         * infcmd.c (jump_command): Use DECODE_LINE_FUNFIRSTLINE.
976         * mi/mi-main.c (mi_cmd_trace_find): Use DECODE_LINE_FUNFIRSTLINE.
977         * NEWS: Add entry.
978
979 2011-12-06  Tom Tromey  <tromey@redhat.com>
980
981         * elfread.c (elf_gnu_ifunc_resolver_return_stop): Allow
982         breakpoint's pspace to be NULL.
983         * breakpoint.h (struct breakpoint) <pspace>: Update comment.
984         * breakpoint.c (init_raw_breakpoint): Conditionally set
985         breakpoint's pspace.
986         (init_breakpoint_sal): Don't set breakpoint's pspace.
987         (prepare_re_set_context): Conditionally switch program space.
988         (addr_string_to_sals): Check executing_startup on location's
989         program space.
990
991 2011-12-06  Tom Tromey  <tromey@redhat.com>
992
993         * breakpoint.h (enum enable_state) <bp_startup_disabled>: Remove.
994         * breakpoint.c (should_be_inserted): Explicitly check if program
995         space is executing startup.
996         (describe_other_breakpoints): Update.
997         (disable_breakpoints_before_startup): Change executing_startup
998         earlier.  Remove loop.
999         (enable_breakpoints_after_startup): Likewise.
1000         (init_breakpoint_sal): Don't use bp_startup_disabled.
1001         (create_breakpoint): Don't use bp_startup_disabled.
1002         (update_global_location_list): Use should_be_inserted.
1003         (bkpt_re_set): Update.
1004
1005 2011-12-06  Tom Tromey  <tromey@redhat.com>
1006
1007         * python/lib/gdb/command/pretty_printers.py
1008         (InfoPrettyPrinter.invoke1): Remove extra double quote.
1009
1010 2011-12-06  Tom Tromey  <tromey@redhat.com>
1011
1012         * NEWS: Add MI news.
1013
1014 2011-12-06  Ulrich Weigand  <uweigand@de.ibm.com>
1015
1016         * s390-tdep.h (S390_ORIG_R2_REGNUM): Define.
1017         (S390_LAST_BREAK_REGNUM): Likewise.
1018         (S390_SYSTEM_CALL_REGNUM): Likewise.
1019         (S390_NUM_REGS): Update.
1020
1021         (s390_regmap_last_break): Add declaration.
1022         (s390x_regmap_last_break): Likewise.
1023         (s390_regmap_system_call): Likewise.
1024
1025         (tdesc_s390_linux32v1): Add declaration.
1026         (tdesc_s390_linux32v2): Likewise.
1027         (tdesc_s390_linux64v1): Likewise.
1028         (tdesc_s390_linux64v2): Likewise.
1029         (tdesc_s390x_linux64v1): Likewise.
1030         (tdesc_s390x_linux64v2): Likewise.
1031
1032         * s390-tdep.c: Include new target description files
1033         "features/s390-linux32v1.c", "features/s390-linux32v2.c",
1034         "features/s390-linux64v1.c", "features/s390-linux64v2.c",
1035         "features/s390x-linux64v1.c", and "features/s390x-linux64v2.c".
1036         (s390_cannot_store_register): New function.
1037         (s390_write_pc): Likewise.
1038         (s390_dwarf_regmap): Add fields for new registers.
1039         (s390_regmap_gregset): Likewise.
1040         (s390x_regmap_gregset): Likewise.
1041         (s390_regmap_fpregset): Likewise.
1042         (s390_regmap_upper): Likewise.
1043         (s390_regmap_last_break): New variable.
1044         (s390x_regmap_last_break): Likewise.
1045         (s390_regmap_system_call): Likewise.
1046         (s390_last_break_regset): Likewise.
1047         (s390x_last_break_regset): Likewise.
1048         (s390_system_call_regset): Likewise.
1049         (s390_upper_regset_sections): Rename to ...
1050         (s390_linux64_regset_sections): ... this.
1051         (s390_linux32_regset_sections): New variable.
1052         (s390x_linux64_regset_sections): Likewise.
1053         (s390_linux32v1_regset_sections): Likewise.
1054         (s390_linux32v2_regset_sections): Likewise.
1055         (s390_linux64v1_regset_sections): Likewise.
1056         (s390_linux64v2_regset_sections): Likewise.
1057         (s390x_linux64v1_regset_sections): Likewise.
1058         (s390x_linux64v2_regset_sections): Likewise.
1059         (s390_regset_from_core_section): Handle .reg-s390-last-break and
1060         .reg-s390-system-call core file sections.
1061         (s390_core_read_description): Check for presence of
1062         .reg-s390-last-break and .reg-s390-system-call core file
1063         sections and return appropriate target description.
1064         (s390_gdbarch_init): Detect Linux-specific registers "orig_r2",
1065         "last_break" and "system_call" in target description.  Install
1066         appropriate gdbarch_core_regset_sections array.
1067         Call set_gdbarch_cannot_store_register and set_gdbarch_write_pc.
1068         (_initialize_s390_tdep): Initialize additional target descriptions.
1069
1070         * s390-nat.c: Include "elf/common.h".
1071         (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
1072         (have_regset_last_break): New static variable.
1073         (have_regset_system_call): Likewise.
1074         (s390_native_supply): Handle S390_ORIG_R2_REGNUM.
1075         (s390_native_collect): Likewise.
1076         (fetch_regset, store_regset, check_regset): New functions.
1077         (s390_linux_fetch_inferior_registers): Handle S390_LAST_BREAK_REGNUM
1078         and S390_SYSTEM_CALL_REGNUM.
1079         (s390_linux_store_inferior_registers): Likewise.
1080         (s390_read_description): Check for presence of NT_S390_LAST_BREAK
1081         and NT_S390_SYSTEM_CALL regsets and use appropriate description.
1082
1083         * features/Makefile (WHICH): Add s390-linux32v1, s390-linux64v1,
1084         s390x-linux64v1, s390-linux32v2, s390-linux64v2, and s390x-linux64v2.
1085         (s390-linux32v1-expedite): Define.
1086         (s390-linux32v2-expedite): Likewise.
1087         (s390-linux64v1-expedite): Likewise.
1088         (s390-linux64v2-expedite): Likewise.
1089         (s390x-linux64v1-expedite): Likewise.
1090         (s390x-linux64v2-expedite): Likewise.
1091
1092         * features/s390-linux32.xml: Add orig_r2 register.
1093         * features/s390-linux64.xml: Likewise.
1094         * features/s390x-linux64.xml: Likewise.
1095         * features/s390-linux32v1.xml: New file.
1096         * features/s390-linux32v2.xml: Likewise.
1097         * features/s390-linux64v1.xml: Likewise.
1098         * features/s390-linux64v2.xml: Likewise.
1099         * features/s390x-linux64v1.xml: Likewise.
1100         * features/s390x-linux64v2.xml: Likewise.
1101
1102         * features/s390-linux32.c: Regenerate.
1103         * features/s390-linux64.c: Likewise.
1104         * features/s390x-linux64.c: Likewise.
1105         * features/s390-linux32v1.c: New generated file.
1106         * features/s390-linux32v2.c: Likewise.
1107         * features/s390-linux64v1.c: Likewise.
1108         * features/s390-linux64v2.c: Likewise.
1109         * features/s390x-linux64v1.c: Likewise.
1110         * features/s390x-linux64v2.c: Likewise.
1111
1112         * regformats/s390-linux32.dat: Regenerate.
1113         * regformats/s390-linux64.dat: Regenerate.
1114         * regformats/s390x-linux64.dat: Regenerate.
1115         * regformats/s390-linux32v1.dat: New generated file.
1116         * regformats/s390-linux32v2.dat: Likewise.
1117         * regformats/s390-linux64v1.dat: Likewise.
1118         * regformats/s390-linux64v2.dat: Likewise.
1119         * regformats/s390x-linux64v1.dat: Likewise.
1120         * regformats/s390x-linux64v2.dat: Likewise.
1121
1122 2011-12-05  Pedro Alves  <pedro@codesourcery.com>
1123
1124         * linux-nat.c (resume_stopped_resumed_lwps): Call
1125         registers_changed.
1126
1127 2011-12-05  Pedro Alves  <pedro@codesourcery.com>
1128
1129         * breakpoint.c: Include record.h.
1130         (breakpoints_always_inserted_mode): Return false when the record
1131         target is in use.
1132
1133 2011-12-05  Pedro Alves  <pedro@codesourcery.com>
1134
1135         * amd64-linux-nat.c (amd64_linux_dr_get): Remove FIXME comment.
1136         Reinstate perror_with_name call on ptrace error.  Remove #if 0.
1137         * i386-linux-nat.c (i386_linux_dr_get): Likewise.
1138         * i386bsd-nat.c (i386bsd_dr_get_status): Likewise.
1139
1140 2011-12-05  Andrey Smirnov  <andrew.smirnov@gmail.com>
1141
1142         * breakpoint.c (init_breakpoint_sal): Remove nested definitions of
1143         `i'(-Wshadow).
1144
1145 2011-12-05  Andrey Smirnov  <andrew.smirnov@gmail.com>
1146
1147         * bcache.c (bcache): Rename `bcache' to `cache'(-Wshadow).
1148
1149 2011-12-05  Andrey Smirnov  <andrew.smirnov@gmail.com>
1150
1151         * amd64-tdep.c (amd64_push_dummy_call): Remove nested definition
1152         of `tdep'(-Wshadow).
1153
1154 2011-12-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
1155
1156         Fix compilation --without-expat.
1157         * solib-svr4.c (svr4_free_so, svr4_free_library_list): Move them here
1158         from ...
1159         [HAVE_LIBEXPAT] (svr4_free_so, svr4_free_library_list): ... here.
1160
1161 2011-12-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
1162             Jan Kratochvil  <jan.kratochvil@redhat.com>
1163
1164         * Makefile.in (XMLFILES): Add library-list-svr4.dtd.
1165         * features/library-list-svr4.dtd: New file.
1166         * remote.c (PACKET_qXfer_libraries_svr4): New.
1167         (remote_protocol_features): new entry for PACKET_qXfer_libraries_svr4.
1168         (remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES_SVR4.
1169         * solib-svr4.c (struct svr4_library_list): New.
1170         [HAVE_LIBEXPAT]: Include xml-support.h.
1171         [HAVE_LIBEXPAT] (svr4_library_list_start_library)
1172         [HAVE_LIBEXPAT] (svr4_library_list_start_list, svr4_library_attributes)
1173         [HAVE_LIBEXPAT] (svr4_library_list_children)
1174         [HAVE_LIBEXPAT] (svr4_library_list_attributes)
1175         [HAVE_LIBEXPAT] (svr4_library_list_elements, svr4_parse_libraries)
1176         [HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries)
1177         [!HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries): New.
1178         (svr4_read_so_list): Extend the corruption message by addresses.
1179         (svr4_current_sos): New variable library_list, call
1180         svr4_current_sos_via_xfer_libraries.
1181         * target.h (enum target_object): New TARGET_OBJECT_LIBRARIES_SVR4.
1182
1183 2011-12-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
1184
1185         PR threads/13448
1186         * dwarf2read.c (decode_locdesc): Handle DW_OP_const8u.
1187         For DW_OP_GNU_push_tls_address increment the value, new comment for it.
1188
1189 2011-12-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
1190
1191         PR breakpoints/13346
1192         * dwarf2read.c (process_psymtab_comp_unit): Set
1193         PSYMTABS_ADDRMAP_SUPPORTED.
1194         * psympriv.h (struct partial_symtab): Comment textlow and texthigh
1195         validity.  New field psymtabs_addrmap_supported.
1196         * psymtab.c (find_pc_sect_psymtab_closer): New gdb_assert on
1197         psymtabs_addrmap_supported.
1198         (find_pc_sect_psymtab): Do not fallback to TEXTLOW and TEXTHIGH for
1199         !PSYMTABS_ADDRMAP_SUPPORTED.
1200         (dump_psymtab, maintenance_info_psymtabs): Print also
1201         psymtabs_addrmap_supported.
1202
1203 2011-12-01  Doug Evans  <dje@google.com>
1204
1205         * python/py-type.c (type_object_methods): Fix "array" doc string.
1206
1207 2011-12-01  Andrew Burgess  <aburgess@broadcom.com>
1208
1209         * source.c (print_source_lines_base): Fix missing braces on else
1210         clause leading to additional output.
1211
1212 2011-11-30  Ulrich Weigand  <uweigand@de.ibm.com>
1213
1214         * s390-nat.c (SUBOFF): Remove.
1215         (s390_native_supply, s390_native_collect): New functions.
1216         (supply_gregset, supply_fpregset): Use s390_native_supply.
1217         (fill_gregset, fill_fpregset): Use s390_native_collect.
1218
1219         * s390-tdep.c (s390_pseudo_register_reggroup_p): Update comment.
1220         (s390_unwind_pseudo_register): New function.
1221         (s390_prologue_frame_unwind_cache): Unwind PSW address and mask
1222         registers instead of PC and CC.
1223         (s390_backchain_frame_unwind_cache): Likewise.
1224         (s390_sigtramp_frame_unwind_cache): Do not unwind PC, CC, or
1225         full GPR pseudos.
1226         (s390_trad_frame_prev_register): New function.
1227         (s390_frame_prev_register): Use it.
1228         (s390_sigtramp_frame_prev_register): Likewise.
1229         (s390_dwarf2_prev_register): Use s390_unwind_pseudo_register.
1230         (s390_dwarf2_frame_init_reg): Unwind PSW address and mask.  Use
1231         special callback to unwind any pseudo.
1232
1233         * features/s390-core32.xml: Add pswm/pswa to save/restore group.
1234         * features/s390-core64.xml: Likewise.
1235         * features/s390x-core64.xml: Likewise.
1236         * features/s390-linux32.c: Regenerate.
1237         * features/s390-linux64.c: Likewise.
1238         * features/s390x-linux64.c: Likewise.
1239
1240 2011-11-30  Ulrich Weigand  <uweigand@de.ibm.com>
1241
1242         * s390-tdep.c (s390_gdbarch_init): Call set_gdbarch_get_siginfo_type.
1243
1244 2011-11-30  Ulrich Weigand  <uweigand@de.ibm.com>
1245
1246         * s390-tdep.c (s390_displaced_step_fixup): Fix processing of LARL
1247         instruction.  Add more diagnostic output.
1248
1249 2011-11-29  Andrey Smirnov  <andrew.smirnov@gmail.com>
1250
1251         * MAINTAINERS (Write After Approval): Add myself to the list.
1252
1253 2011-11-29  Sanjoy Das  <sdas@igalia.com>
1254
1255         * jit.c (add_objfile_entry, jit_reader_try_read_symtab)
1256         (jit_bfd_try_read_symtab): Fix comments.
1257
1258 2011-11-28  DJ Delorie  <dj@redhat.com>
1259
1260         * NEWS: Mention RL78 simulator.
1261
1262 2011-11-28  Joel Brobecker  <brobecker@adacore.com>
1263
1264         * symfile.h (struct quick_symbol_functions): Fix the documentation
1265         of field map_matching_symbols, as symbols are sorted using
1266         strcmp_iw_ordered, not strcmp_iw.
1267
1268 2011-11-28  Paul Hilfinger  <hilfinger@adacore.com>
1269
1270         * symfile.h (struct quick_symbol_functions): Update the
1271         documentation for field map_matching_symbols.
1272
1273 2011-11-28  Joel Brobecker  <brobecker@adacore.com>
1274
1275         * ada-lang.c (compare_names): Fix wrong return value in case
1276         string1 starts with the same contents as string2, followed
1277         by an underscore that do not start a symbol name suffix.
1278
1279 2011-11-28  Phil Muldoon  <pmuldoon@redhat.com>
1280
1281         PR python/13369
1282         PR python/13374
1283
1284         * python/python.c (gdbpy_decode_line): Do not acquire GIL.
1285         * python/py-inferior.c (inferior_to_inferior_object): Ditto.
1286         * python/py-value.c (valpy_nonzero): Use TRY_CATCH to catch GDB
1287         exceptions.
1288         * python/py-type.c (typy_strip_typedefs): Ditto.
1289         (typy_legacy_template_argument): Ditto.
1290         * python/py-inferior.c (inferior_to_inferior_object): Ditto.
1291         * python/py-breakpoint.c (bppy_set_ignore_count): Ditto.
1292
1293 2011-11-27  Joel Brobecker  <brobecker@acacore.com>
1294
1295         * remote.c (remote_get_tracepoint_status): Delete addrbuf
1296         local variable.  Avoid use of sprintf_vma.
1297
1298 2011-11-27  Sanjoy Das  <sdas@igalia.com>
1299
1300         Fix regression in jit.exp.
1301         * jit.c (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
1302         (jit_register_code): Set the jit_objfile_data field to the correct
1303         value.
1304
1305 2011-11-25 Â Uros Bizjak Â <ubizjak@gmail.com>
1306
1307         * alpha-tdep.c (br_opcode): New.
1308         (ldl_l_opcode, ldq_l_opcode, stl_c_opcode, stq_c_opcode): Ditto.
1309         (alpha_deal_with_atomic_sequence): New function.
1310         (alpha_gdbarch_init): Handle single stepping of atomic sequences
1311         with alpha_deal_with_atomic_sequence.
1312
1313 2011-11-24  Tristan Gingold  <gingold@adacore.com>
1314
1315         * machoread.c (oso_el): Remove num_Sections, symbols, offsets
1316         fields.  Add oso_sym, end_sym and nbr_syms.
1317         (macho_register_oso): Change interface.
1318         (macho_symtab_add_minsym): New function.
1319         (macho_symtab_read): Rewritten.
1320         (get_archive_prefix_len): Remove trailing blanks.
1321         (oso_el_compare_name): Add comment.
1322         (struct macho_sym_hash_entry): New structure.
1323         (macho_relocate_common_syms): Remove.
1324         (macho_sym_hash_newfunc): New function.
1325         (macho_resolve_oso_sym_with_minsym): Likewise.
1326         (macho_add_oso_symfile): Rewritten.
1327         (macho_symfile_read_all_oso): Remove trailing blanks.
1328         Adjust code to free oso vector.
1329         (macho_symfile_read): Likewise.
1330         Move code to initialize minimal symbol
1331
1332 2011-11-24  Maciej W. Rozycki  <macro@codesourcery.com>
1333
1334         * mips-tdep.c (extended_offset): Fix formatting.
1335
1336 2011-11-23  Doug Evans  <dje@google.com>
1337
1338         * dwarf2read.c (dw2_lookup_symtab): Add comment.
1339         (dw2_expand_symtabs_with_filename): Ditto.
1340         (dw2_expand_symtabs_matching): Ditto.
1341         (dw2_map_symbol_filenames): Ditto.
1342
1343 2011-11-23  Andrey Smirnov  <andrew.smirnov@gmail.com>
1344
1345         * ada-lang.c (assign_aggregate): Minor reformatting.
1346
1347 2011-11-23  Andrey Smirnov  <andrew.smirnov@gmail.com>
1348
1349         * ada-lang.c (assign_aggregate): Remove declaration of local
1350         variable `i' which is shadowing another variable with the same
1351         name declared in the outer scope.
1352
1353 2011-11-23  Joel Brobecker  <brobecker@adacore.com>
1354
1355         * ada-lang.c (get_base_type): Renames base_type.  Adjust all
1356         calls throughout this file.
1357
1358 2011-11-23  Joel Brobecker  <brobecker@adacore.com>
1359
1360         * gdb-dlfcn.c (gdb_dlopen): Add missing coma in call to
1361         FormatMessage.
1362
1363 2011-11-22  Tom Tromey  <tromey@redhat.com>
1364
1365         PR mi/8444:
1366         * mi/mi-common.h (EXEC_ASYNC_SOLIB_EVENT, EXEC_ASYNC_FORK)
1367         (EXEC_ASYNC_VFORK, EXEC_ASYNC_SYSCALL_ENTRY)
1368         (EXEC_ASYNC_SYSCALL_RETURN, EXEC_ASYNC_EXEC): New constants.
1369         * mi/mi-common.c (async_reason_string_lookup): Add new reasons.
1370         * breakpoint.c (print_it_catch_fork, print_it_catch_vfork)
1371         (print_it_catch_syscall, print_it_catch_exec)
1372         (internal_bkpt_print_it): Use ui_out.  Emit stop reason.
1373         (bpstat_print): Add 'kind' argument.  Handle
1374         TARGET_WAITKIND_LOADED.
1375         * infrun.c (normal_stop): Update for bpstat_print change.  Don't
1376         handle TARGET_WAITKIND_LOADED here.
1377         * breakpoint.h (bpstat_print): Update.
1378
1379 2011-11-22  Tom Tromey  <tromey@redhat.com>
1380
1381         * mi/mi-interp.c (mi_on_normal_stop): Call bpstat_print.
1382
1383 2011-11-22  Tom Tromey  <tromey@redhat.com>
1384
1385         * mi/mi-common.c (_initialize_gdb_mi_common): Remove.
1386         Use static_assert to check the size of
1387         async_reason_string_lookup.
1388         * common/gdb_assert.h (static_assert): New macro.
1389
1390 2011-11-22  Alan Modra  <amodra@gmail.com>
1391
1392         * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Correct branch
1393         destination calculation.  Don't expect >> to sign extend.  Don't
1394         add a break if branch lands inside the sequence anywhere.
1395
1396 2011-11-21  Keith Seitz  <keiths@redhat.com>
1397
1398         * gdb.mi/mi-var-display.exp: Remove XFAIL for c_variable-7.51,
1399         -var-evaluate-expression of an enumeration and fix expected result.
1400         * gdb.mi/mi2-varvdisplay.exp: Likewise.
1401
1402 2011-11-21  Kwok Cheung Yeung  <kcy@codesourcery.com>
1403
1404         * osdata.c (info_osdata_command): Rename nprocs to nrows.  Handle
1405         the case where osdata->items is empty.  Rename column names to a
1406         canonical form to avoid problems with unusual column names.
1407
1408 2011-11-21  Yao Qi  <yao@codesourcery.com>
1409
1410         * MAINTAINERS (Write After Approval): Keep list in alphabetical order.
1411
1412 2011-11-20  Stan Shebs  <stan@codesourcery.com>
1413
1414         * NEWS: Mention tracepoint additions.
1415         * breakpoint.h (struct tracepoint): New field traceframe_usage.
1416         * breakpoint.c (print_one_breakpoint_location): Identify
1417         tracepoints as such when reporting hit counts, report
1418         trace buffer usage.
1419         (create_tracepoint_from_upload): Copy status info.
1420         * tracepoint.h (struct trace_status): Rename error_desc to stop_desc,
1421         add fields user_name, notes, start_time, stop_time.
1422         (struct uploaded_tp): Add fields hit_count, traceframe_usage.
1423         * tracepoint.c (trace_user): New global.
1424         (trace_notes): New global.
1425         (trace_stop_notes): New global.
1426         (start_tracing): Add argument and trace note handling.
1427         (stop_tracing): Ditto.
1428         (trace_start_command): Add notes argument.
1429         (trace_stop_command): Ditto.
1430         (trace_status_command): Report additional status info.
1431         (trace_status_mi): Similarly.
1432         (trace_save): Update, record tracepoint status.
1433         (set_disconnected_tracing): Call target method directly.
1434         (send_disconnected_tracing_value): Remove.
1435         (set_trace_user): New function.
1436         (set_trace_notes): New function.
1437         (set_trace_stop_notes): New function.
1438         (parse_trace_status): Handle additional status.
1439         (parse_tracepoint_status): New function.
1440         (parse_tracepoint_definition): Call it.
1441         (tfile_get_tracepoint_status): New function.
1442         (init_tfile_ops): Use it.
1443         (_initialize_tracepoint): Add new setshows.
1444         * target.h (struct target_ops): New methods to_get_tracepoint_status
1445         and to_set_trace_notes.
1446         (target_get_tracepoint_status): New macro.
1447         (target_set_trace_notes): New macro.
1448         * target.c (update_current_target): Add new methods.
1449         * remote.c (remote_get_tracepoint_status): New function.
1450         (remote_set_trace_notes): New function.
1451         (init_remote_ops): Add them.
1452         * mi/mi-main.c (mi_cmd_trace_start): Add argument to call.
1453         (mi_cmd_trace_stop): Ditto.
1454
1455 2011-11-20  Sanjoy Das  <sdas@igalia.com>
1456
1457         * jit.c: Include regcache.h.
1458         (jit_gdbarch_data, jit_frame_unwind): New static variables.
1459         (jit_unwind_reg_set_impl, free_reg_value_impl)
1460         (jit_unwind_reg_get_impl, jit_frame_sniffer)
1461         (jit_frame_unwind_stop_reason, jit_frame_this_id)
1462         (jit_frame_prev_register, jit_dealloc_cache)
1463         (jit_prepend_unwinder, jit_gdbarch_data_init): New functions.
1464         (jit_inferior_init): Prepend (new) pseudo unwinder by calling
1465         jit_prepend_unwinder.
1466         (_initialize_jit): Register new gdbarch data jit_gdbarch_data.
1467
1468 2011-11-20  Sanjoy Das  <sdas@igalia.com>
1469
1470         * jit.c: Include block.h, dictionary.h and frame-unwind.h.
1471         (add_objfile_entry, jit_target_read_impl, jit_object_open_impl)
1472         (jit_symtab_open_impl, compare_block, jit_block_open_impl)
1473         (jit_symtab_line_mapping_add_impl, jit_symtab_close_impl)
1474         (finalize_symtab, jit_object_close_impl)
1475         (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
1476         (free_objfile_data): New functions.
1477         (_initialize_jit): Register jit_objfile_data with a proper cleanup
1478         function.
1479
1480 2011-11-20  Sanjoy Das  <sdas@igalia.com>
1481
1482         * jit.c: Include gdb-dlfcn.h.
1483         (loaded_jit_reader, reader_init_fn_sym): New static variables.
1484         (jit_reader_load, jit_reader_load_command)
1485         (jit_reader_unload_command): New functions.
1486         (_initialize_jit): Add commands "jit-reader-load" and
1487         "jit-reader-unload".
1488
1489 2011-11-20  Sanjoy Das  <sdas@igalia.com>
1490
1491         * Makefile.in: Add gdb-dlfcn.c and gdb-dlfcn.h to build system.
1492         * config.in: Add new #define HAVE_LIBDL.
1493         * configure.ac: Add check for -ldl.
1494         * configure: Re-generated by autoconf.
1495         * gdb-dlfcn.c: New file.
1496         * gdb-dlfcn.h: New file.
1497
1498 2011-11-20  Sanjoy Das  <sdas@igalia.com>
1499
1500         * config.in: Add new #defines: JIT_READER_DIR and
1501         JIT_READER_DIR_RELOCATABLE.
1502         * configure.ac: New GDB directory entry for jit-reader-dir.
1503         * configure: Re-generated by autoconf.
1504         * jit.c: New static variable: const char *jit_reader_dir.
1505         (_initialize_jit): Relocate jit_reader_dir.
1506
1507 2011-11-20  Sanjoy Das  <sdas@igalia.com>
1508
1509         * Makefile.in: Add jit-reader.h as a header.  Have it installed in
1510         $(includedir)/gdb.
1511         * configure.ac: Generate a correct value for TARGET_PTR for
1512         jit-reader.h.  Tell configure to generate jit-reader.h from
1513         jit-reader.in.
1514         * configure: Re-generated by autoconf.
1515         * jit-reader.in: New file.
1516         * jit.c: Include jit-reader.h.
1517
1518 2011-11-20  Sanjoy Das  <sdas@igalia.com>
1519
1520         * MAINTAINERS (Write After Approval): Add myself to the list.
1521
1522 2011-11-18  Ulrich Weigand  <uweigand@de.ibm.com>
1523
1524         * findvar.c (read_frame_register_value): Respect value_offset
1525         of the register value.  Remove big-endian special case.
1526
1527 2011-11-18  Tom Tromey  <tromey@redhat.com>
1528
1529         PR build/7196:
1530         * remote.c (putpkt_for_catch_errors): New function.
1531         (remote_kill): Use it.
1532
1533 2011-11-18  Yao Qi  <yao@codesourcery.com>
1534
1535         * breakpoint.c (create_breakpoint): Produce query message according to
1536         breakpoint's type.
1537         Allocate tracepoint per correct type.
1538         Don't check SALs for pending fast tracepoints.
1539         * tracepoint.c (process_tracepoint_on_disconnect): New.
1540         (disconnect_tracing): Call process_tracepoint_on_disconnect.
1541
1542 2011-11-18  Yao Qi  <yao@codesourcery.com>
1543
1544         * breakpoint.c (install_breakpoint):  Add one more parameter so that
1545         update_global_location_list is called conditionally.
1546         (create_fork_vfork_event_catchpoint): Update.
1547         (create_syscall_event_catchpoint): Update.
1548         (create_breakpoint_sal): Update.
1549         (create_breakpoint_sal): Update. Call do_cleanups before
1550         install_breakpoint.
1551         * ada-lang.c (create_ada_exception_catchpoint): Update.
1552         * breakpoint.h (install_breakpoint): Update declaration.
1553
1554 2011-11-16  Ulrich Weigand  <uweigand@de.ibm.com>
1555
1556         * spu-tdep.c (spu_return_value): Fix handling of
1557         TYPE_CALLING_CONVENTION annotation.
1558
1559 2011-11-16  Ulrich Weigand  <uweigand@de.ibm.com>
1560
1561         * skip.c (skip_function_command): Work around uninitialized
1562         variable warning.
1563
1564 2011-11-16  David S. Miller  <davem@davemloft.net>
1565
1566         * utils.c (report_command_stats): Cast delta_wall_time 'tv_sec' and
1567         'tv_usec' to long for printf since these fields have a type which
1568         varies.
1569
1570 2011-11-15  Doug Evans  <dje@google.com>
1571
1572         * buildsym.c (add_symbol_to_list): Delete outdated comment.
1573
1574 2011-11-15  Paul Koning  <paul_koning@dell.com>
1575
1576         * python/py-type.c (typy_get_composite): New function.
1577         (typy_nonzero): New function.
1578         (typy_values): Rename from typy_fields.
1579         (typy_fields): New function.
1580         (typy_length): Raise exception if not struct, union, or enum type.
1581         (typy_getitem): Ditto.
1582         (typy_has_key): Ditto.
1583         (typy_make_iter): Ditto.
1584
1585 2011-11-15  Doug Evans  <dje@google.com>
1586
1587         PR gdb/8367
1588         * NEWS: Mention new parameter basenames-may-differ.
1589         * dwarf2read.c (dw2_lookup_symtab): Avoid calling gdb_realpath if
1590         ! basenames_may_differ.
1591         * psymtab.c (lookup_partial_symtab): Ditto.
1592         * symtab.c (lookup_symtab): Ditto.
1593         (basenames_may_differ): New global.
1594         (_initialize_symtab): New parameter basenames-may-differ.
1595         * symtab.h (basenames_may_differ): Declare.
1596
1597 2011-11-15  Pedro Alves  <pedro@codesourcery.com>
1598             Luis Machado  <lgustavo@codesourcery.com>
1599
1600         * auxv.c: Include observer.h.
1601         (auxv_inferior_data_cleanup): New.
1602         (invalidate_auxv_cache_inf): New.
1603         (invalidate_auxv_cache): New.
1604         (get_auxv_inferior_data): New.
1605         (auxv_inferior_data): New static global.
1606         (auxv_info): New structure.
1607         (target_auxv_search): Use get_auxv_inferior_data instead of
1608         target_read_alloc and don't free cached buffers.
1609         (fprint_target_auxv): Likewise
1610         (_initialize_auxv): Register per-inferior auxv cache and register
1611         observers to invalidate auxv cache when needed.
1612
1613 2011-11-14  Doug Evans  <dje@google.com>
1614
1615         PR gdb/7200 Make "!" an alias for "shell".
1616         * NEWS: Add mention.
1617         * cli/cli-cmds.c (init_cli_cmds): Remove xdb_commands condition on
1618         adding "!" command, always add it.
1619         * cli/cli-decode.c (find_command_name_length): Recognize "!" as a
1620         command of length one.
1621
1622 2011-11-14  Stan Shebs  <stan@codesourcery.com>
1623             Kwok Cheung Yeung  <kcy@codesourcery.com>
1624
1625         * NEWS: Document shorter fast tracepoints and qTMinFTPILen packet.
1626         * i386-tdep.c (i386_fast_tracepoint_valid_at): Query target for
1627         the minimum instruction size for fast tracepoints.
1628         * target.h (struct target_ops): Add new method
1629         to_get_min_fast_tracepoint_insn_len.
1630         (target_get_min_fast_tracepoint_insn_len): New.
1631         * target.c (update_current_target): Set up new target operation.
1632         * remote.c (remote_write_bytes_aux): Fix typo.
1633         (remote_get_min_fast_tracepoint_insn_len): New.
1634         (init_remote_ops): Initialize new field.
1635
1636 2011-11-14  Tom Tromey  <tromey@redhat.com>
1637
1638         * tracepoint.c (encode_actions_1): Use the location's gdbarch.
1639         (encode_actions): Likewise.
1640
1641 2011-11-14  Yao Qi  <yao@codesourcery.com>
1642
1643         * remote.c (struct remote_state): <install_in_trace> new field.
1644         (PACKET_InstallInTrace): New enum value.
1645         (remote_install_in_trace_feature): Support InstallInTrace.
1646         (remote_supports_install_in_trace): Likewise.
1647         (remote_protocol_features): Likewise.
1648         (_initialize_remote): Likewise.
1649         (remote_can_download_tracepoint): New.
1650         * target.h (struct target): New field
1651         `to_can_download_tracepoint'.
1652         (target_can_download_tracepoint): New macro.
1653         * target.c (update_current_target): Update.
1654         * breakpoint.h (struct bp_location): Add comment on field
1655         `duplicate'.
1656         * breakpoint.c (should_be_inserted): Don't differentiate breakpoint
1657         and tracepoint.
1658         (remove_breakpoints): Don't remove tracepoints.
1659         (tracepoint_locations_match ): New.
1660         (breakpoint_locations_match): Call it.
1661         (disable_breakpoints_in_unloaded_shlib): Handle tracepoint.
1662         (download_tracepoint_locations): New.
1663         (update_global_location_list): Call it.
1664         * tracepoint.c (find_matching_tracepoint): Delete.
1665         (find_matching_tracepoint_location): Renamed from
1666         find_matching_tracepoint.  Return bp_location rather than
1667         tracepoint.
1668         (merge_uploaded_tracepoints): Set `inserted' field to 1 if
1669         tracepoint is found.
1670
1671 2011-11-14  Yao Qi  <yao@codesourcery.com>
1672
1673         * target.h (struct target): <to_download_tracepoint> Change type
1674         of parameter from tracepoint to bp_location.
1675         * target.c (update_current_target): Update.
1676         * tracepoint.c (start_tracing): Update.
1677         * remote.c (remote_download_tracepoint): Remove loop for each location
1678         of a tracepoint.
1679
1680 2011-11-14  Maciej W. Rozycki  <macro@codesourcery.com>
1681
1682         * i386-nat.c (i386_insert_hw_breakpoint): Call
1683         i386_update_inferior_debug_regs.
1684         (i386_remove_hw_breakpoint): Likewise.
1685
1686 2011-11-14  Yao Qi  <yao@codesourcery.com>
1687
1688         * breakpoint.c (init_raw_breakpoint): Call
1689         add_location_to_breakpoint to replace duplicated code.
1690         (add_location_to_breakpoint): Adjust the breakpoint's
1691         address prior to allocating a location.
1692
1693 2011-11-12  Matt Rice  <ratmice@gmail.com>
1694
1695         * macrocmd.c (macro_no_macro_info): New function.
1696         (macro_expand_command): Use macro_no_macro_info.
1697         (macro_expand_once_command): Ditto.
1698         (info_macro_command): Add argument processing,
1699         move info_definitions_command here.
1700         (_initialize_macrocmd): Remove info definitions command.
1701         Add arguments to info macro help text.
1702         * NEWS: Replace info definitions command with new info macro options.
1703
1704 2011-11-11  Keith Seitz  <keiths@redhat.com>
1705
1706         PR gdb/12843
1707         * linespec.c (locate_first_half): Keep ':' if it looks
1708         like it could be part of a Windows path starting with
1709         a drive letter.
1710
1711 2011-11-10  Pedro Alves  <pedro@codesourcery.com>
1712
1713         * linux-nat.c (linux_nat_wait): Don't force waking up the event
1714         loop when returning a TARGET_WAITKIND_NO_RESUMED.
1715
1716 2011-11-10  Pedro Alves  <pedro@codesourcery.com>
1717
1718         * target.c (target_waitstatus_to_string): Handle
1719         TARGET_WAITKIND_NO_RESUMED.
1720
1721 2011-11-10  Doug Evans  <dje@google.com>
1722
1723         * dwarf2read.c (dw2_map_symbol_filenames): New parameter
1724         `need_fullname'.
1725         * psymtab.c (map_symbol_filenames_psymtab): Ditto.
1726         (map_partial_symbol_filenames): Ditto.  All callers updated.
1727         * psymtab.h (map_partial_symbol_filenames): Update prototype.
1728         * symfile.h (struct quick_symbol_functions, map_symbol_filenames): New
1729         parameter need_fullname.
1730
1731         * psymtab.c (psymtab_to_fullname): Use cached copy if it exists.
1732         * source.c (symtab_to_fullname): Ditto.
1733
1734         * defs.h (is_cplus_marker, set_demangling_style): Moved to ...
1735         * gdb-demangle.h: ... here.  New file.
1736         * demangle.c: #include "gdb-demangle.h".
1737         (_initialize_demangler): Use initialize_file_ftype for prototype.
1738         Move "set demangle" and "set asm-demangle" parameters here from utils.c
1739         (demangle, show_demangle, asm_demangle, show_asm_demangle): Move here
1740         from utils.c
1741         * utils.c: Update. #include "gdb-demangle.h".
1742         * symtab.h (asm_demangle): Delete.
1743         (demangle): Move declaration next to use.
1744         * breakpoint.c: #include "gdb-demangle.h" instead of "demangle.h".
1745         * dwarf2read.c: #include "gdb-demangle.h".
1746         * gnu-v2-abi.c: Ditto.
1747         * jv-typeprint.c: Ditto.
1748         * mdebugread.c: Ditto.
1749         * p-typeprint.c: Ditto.
1750         * stabsread.c: Ditto.
1751         * printcmd.c: Ditto.
1752         (asm_demangle): Delete declaration.
1753         * tui/tui-stack.c: #include "gdb-demangle.h".
1754
1755         * python/py-type.c (typy_fields_items): Call check_typedef.
1756
1757 2011-11-10  Joel Brobecker  <brobecker@adacore.com>
1758
1759         * findvar.c (read_frame_register_value): Read the correct bytes
1760         from registers on big-endian architectures.
1761
1762 2011-11-10  Tom Tromey  <tromey@redhat.com>
1763
1764         * procfs.c (load_syscalls): Make a cleanup.
1765         (open_procinfo_files): fd==0 is ok.
1766
1767 2011-11-10  Joel Brobecker  <brobecker@adacore.com>
1768
1769         * procfs.c (iterate_over_mappings): Call do_cleanups before
1770         returning.
1771
1772 2011-11-09  Doug Evans  <dje@google.com>
1773
1774         * gdbtypes.c (check_typedef): Document that this function can
1775         throw an exception.
1776
1777 2011-11-09  Tom Tromey  <tromey@redhat.com>
1778
1779         PR c++/13342:
1780         * valops.c (value_full_object): Return early if real type is
1781         smaller than the enclosing type.
1782
1783 2011-11-08  Yao Qi  <yao@codesourcery.com>
1784
1785         * amd64-tdep.c (amd64_relocate_instruction): Make it static.
1786
1787 2011-11-08  Meador Inge  <meadori@codesourcery.com>
1788
1789         * arm-tdep.c (thumb_analyze_prologue): Always fallback on the SP
1790         register when the frame can't be determined.
1791         * arm-tdep.c (arm_analyze_prologue): Ditto.
1792
1793 2011-11-07  Stan Shebs  <stan@codesourcery.com>
1794
1795         * MAINTAINERS: Move Michael Snyder to Past Maintainers.
1796
1797 2011-11-07  Joel Brobecker  <brobecker@adacore.com>
1798
1799         * infrun.c (handle_inferior_event): Minor reformatting.
1800
1801 2011-11-05  Doug Evans  <dje@google.com>
1802
1803         * source.c (forget_cached_source_info_for_objfile): Move call to
1804         objfile->sf->qf->forget_cached_source_info outside of
1805         ALL_OBJFILE_SYMTABS loop.
1806         (forget_cached_source_info): Delete unused variable `s'.
1807
1808 2011-11-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
1809
1810         * i386-nat.c (dr_ref_count): Remove unused variable.
1811
1812 2011-11-05  Doug Evans  <dje@google.com>
1813
1814         * main.c (captured_main): Set lim_at_start before calling
1815         make_command_stats_cleanup.
1816
1817 2011-11-04  Doug Evans  <dje@google.com>
1818
1819         * utils.c: #include "timeval-utils.h".
1820         (cmd_stats): Rename start_time to start_cpu_time.
1821         New member start_wall_time.
1822         (report_command_stats): Report wall time.
1823         (make_command_stats_cleanup): Record start wall time.
1824
1825 2011-11-04  Tom Tromey  <tromey@redhat.com>
1826
1827         * cp-namespace.c (cp_lookup_symbol_imports): Reindent.
1828
1829 2011-11-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1830
1831         * coff-pe-read.c: Include defs.h before bfd.h.
1832
1833 2011-11-04  Phil Muldoon  <pmuldoon@redhat.com>
1834
1835         PR Python/13345
1836
1837         * python/python.c (python_run_simple_file): Expand tilde in path.
1838
1839 2011-11-04  Phil Muldoon  <pmuldoon@redhat.com>
1840
1841         PR Python/13363
1842
1843         * python/py-type.c (typy_lookup_type): Do not return a type in
1844           an exception handler.
1845
1846 2011-11-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
1847             Eli Zaretskii  <eliz@gnu.org>
1848
1849         * linux-nat.c (_initialize_linux_nat): Improve help
1850         for `info proc stat', `info proc status', `info proc cwd',
1851         `info proc cmdline' and `info proc exe'.
1852
1853 2011-11-02  Stan Shebs  <stan@codesourcery.com>
1854
1855         String collection for tracepoints.
1856         * NEWS: Mention string collection.
1857         * common/ax.def (tracenz): New bytecode.
1858         * ax-gdb.h (trace_string_kludge): Declare.
1859         * ax-gdb.c: Include valprint.h and c-lang.h.
1860         (trace_string_kludge): New global.
1861         (gen_traced_pop): Add string case.
1862         (agent_command): Add string case.
1863         * tracepoint.h (decode_agent_options): Declare.
1864         * tracepoint.c: Include cli-utils.h.
1865         (decode_agent_options): New function.
1866         (validate_actionline): Call it.
1867         (encode_actions_1): Ditto.
1868         * target.h (struct target_ops): New method to_supports_string_tracing.
1869         (target_supports_string_tracing): New macro.
1870         * target.c (update_current_target): Add to_supports_string_tracing.
1871         * remote.c (struct remote_state): New field string_tracing.
1872         (remote_string_tracing_feature): New function.
1873         (remote_protocol_features): New feature tracenz.
1874         (remote_supports_string_tracing): New function.
1875         (init_remote_ops): Set to_supports_string_tracing.
1876
1877 2011-11-02  Pedro Alves  <pedro@codesourcery.com>
1878             Jan Kratochvil  <jan.kratochvil@redhat.com>
1879
1880         * linux-nat.c: Include cli/cli-utils.h.
1881         (enum info_proc_what): New.
1882         (linux_nat_info_proc_cmd): Rename to ...
1883         (linux_nat_info_proc_cmd_1): ... here.  Remove variables argv and all.
1884         New parameter what.  Initialize cmdline_f, cwd_f, exe_f, mappings_f,
1885         status_f and stat_f from WHAT.  Throw error on extra parameters.
1886         (linux_nat_info_proc_cmd, linux_nat_info_proc_cmd_mappings)
1887         (linux_nat_info_proc_cmd_stat, linux_nat_info_proc_cmd_status)
1888         (linux_nat_info_proc_cmd_cwd, linux_nat_info_proc_cmd_cmdline)
1889         (linux_nat_info_proc_cmd_exe, linux_nat_info_proc_cmd_all): New.
1890         (_initialize_linux_nat): New variable info_proc_cmdlist.  Install `info
1891         proc mappings', `info proc stat`, `info proc status', `info proc cwd',
1892         `info proc cmdline', `info proc exe' and `info proc all' as real
1893         subcommands of `info proc'.
1894
1895 2011-11-01  Justin Lebar  <justin.lebar@gmail.com>
1896
1897         * Makefile.in: (SFILES): Add skip.c.
1898         (HFILES_NO_SRCDIR): Add skip.h.
1899         (COMMON_OBS): Add skip.o.
1900         * skip.h, skip.c: New.
1901         * breakpoint.h (set_default_breakpoint): Remove.
1902         (get_sal_arch): Declare.
1903         * breakpoint.c: Remove default_breakpoint_valid,
1904         default_breakpoint_address, default_breakpoint_symtab,
1905         default_breakpoint_line, default_breakpoint_pspace variables.
1906         (get_sal_arch): Make public.
1907         (set_default_breakpoint): Remove.
1908         (parse_breakpoint_sals, create_breakpoint, clear_command,
1909         decode_line_spec_1): Remove uses of default_breakpoint variables;
1910         replaced with function calls into stack.c.
1911         * cli/cli-cmds.h: Add cmd_list_element *skiplist.
1912         * cli/cli-cmds.c: Add skiplist.
1913         (init_cmd_lists): Initialize skiplist.
1914         (init_cli_cmds): Fix comment (classes of commands appear in
1915         alphabetical order).
1916         * infrun.c (handle_inferior_event): Add check that we don't step into
1917         a function whose pc is marked for skip.
1918         * stack.c: Declare last_displayed_sal_valid, last_displayed_pspace,
1919         last_displayed_addr, last_displayed_symtab, last_displayed_line
1920         variables.
1921         (set_last_displayed_sal): New static function.
1922         (print_frame_info): Switch call to set_default_breakpoint to call to
1923         set_last_displayed_sal.
1924         (clear_last_displayed_sal, last_displayed_sal_is_valid,
1925         get_last_displayed_pspace, get_last_displayed_addr,
1926         get_last_displayed_symtab, get_last_displayed_line,
1927         get_last_displayed_sal): New public functions.
1928         * stack.h (clear_last_displayed_sal, last_displayed_sal_is_valid,
1929         get_last_displayed_pspace, get_last_displayed_addr,
1930         get_last_displayed_symtab, get_last_displayed_line,
1931         get_last_displayed_sal): Declare.
1932
1933 2011-11-01  Justin Lebar <justin.lebar@gmail.com>
1934
1935         * MAINTAINERS (Write After Approval): Add myself to the list.
1936
1937 2011-10-29  Yao Qi  <yao@codesourcery.com>
1938
1939         * infcmd.c (disconnect_command): Call disconnect_tracing.
1940
1941 2011-10-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
1942
1943         Code cleanup.
1944         * symtab.c (skip_prologue_sal): Code reformatting.
1945
1946 2011-10-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
1947
1948         PR symtab/13208
1949         * jit.c (jit_register_code): Remove unused variable my_cleanups.  Check
1950         for NULL from bfd_open_from_target_memory.  Fix ownership of NBFD and
1951         SAI.
1952
1953 2011-10-28  Pedro Alves  <pedro@codesourcery.com>
1954
1955         * linux-nat.c (linux_nat_filter_event): Remove `options'
1956         parameter, and dead code that used it.  If we're handling a
1957         PTRACE_EVENT_EXEC event, and the thread group leader is no longer
1958         in our lwp list, re-add it.
1959         (check_zombie_leaders): New.
1960         (linux_nat_wait_1): Remove `options' and `pid' locals.  Always
1961         wait for children with WNOHANG, and always wait for all children.
1962         Don't check for no resumed children upfront.  Simplify wait loop.
1963         Check for zombie thread group leaders after handling all wait
1964         statuses.  Return TARGET_WAITKIND_NO_RESUMED if there no
1965         unwaited-for children left.
1966         * infrun.c (fetch_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
1967         (handle_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
1968         (normal_stop): Handle TARGET_WAITKIND_NO_RESUMED.
1969         * target.h (enum target_waitkind) <TARGET_WAITKIND_NO_RESUMED>: New.
1970
1971 2011-10-28  Sterling Augustine  <saugustine@google.com>
1972
1973         * psymtab.c (map_symbol_filenames_psymtab): Call QUIT.
1974         * symtab.c (free_completion_list): New function.
1975         (do_free_completion_list): Likewise.
1976         (default_make_symbol_completion_list_break_on): New variable
1977         back_to. Call make_cleanup and discard_cleanups.
1978         (make_source_files_completion_list): Likewise.
1979
1980 2011-10-28  Paul Koning  <paul_koning@dell.com>
1981
1982         * python/lib/gdb/types.py (deep_items): Rename from deepitems.
1983         * NEWS: Mention deep_items.
1984
1985 2011-10-28  Alen Skondro  <askondro@gmail.com>
1986
1987         * ser-tcp.c [USE_WIN32API] (ETIMEDOUT): Don't define if already
1988         defined.
1989
1990 2011-10-27  Meador Inge  <meadori@codesourcery.com>
1991
1992         * MAINTAINERS (Write After Approval): Add myself to the list.
1993
1994 2011-10-27  Joel Brobecker  <brobecker@adacore.com>
1995
1996         * value.h (read_frame_register_value): Add declaration.
1997         * findvar.c (read_frame_register_value): New function.
1998         (value_from_register): Use read_frame_register_value
1999         instead of get_frame_register_value + value_contents_copy
2000         to get value contents.
2001
2002 2011-10-27  Doug Evans  <dje@google.com>
2003
2004         * cli/cli-cmds.c (source_script_with_search): Pass full path to
2005         source_script_from_stream if it may have been found on the search path.
2006         * python/py-auto-load.c (source_section_scripts): Pass full path to
2007         source_python_script_for_objfile.
2008         * python/python.c (source_python_script): Delete stream parameter.
2009         All callers updated.
2010         (source_python_script_for_objfile): Ditto.
2011         * python/python-internal.h (source_python_script_for_objfile): Update.
2012         * python/python.h (source_python_script): Update.
2013
2014 2011-10-27  Tom Tromey  <tromey@redhat.com>
2015
2016         * ada-lang.h (ada_start_decode_line_1, ada_finish_decode_line_1)
2017         (ada_sals_for_line): Remove declarations.
2018
2019 2011-10-27  Kevin Pouget  <kevin.pouget@st.com>
2020
2021         Move unwind reasons to an external .def file
2022         * frame.c (frame_stop_reason_string): Rewrite using
2023         unwind_stop_reasons.def.
2024         * frame.h (enum unwind_stop_reason): Likewise.
2025         * python/py-frame.c (gdbpy_initialize_frames): Likewise.
2026         (gdbpy_frame_stop_reason_string): Use new enum unwind_stop_reason
2027         constants for bound-checking.
2028         * unwind_stop_reasons.def: New file.
2029         * stack.c (backtrace_command_1): Handle UNWIND_FIRST_ERROR as an alias
2030         instead of a distinct value.
2031
2032 2011-10-27  Phil Muldoon  <pmuldoon@redhat.com>
2033
2034         PR python/13331
2035
2036         * python/py-function.c (fnpy_call): Check 'args' is not NULL.
2037         (convert_values_to_python): Return on Python tuple allocation
2038         failure.  Return NULL on value conversion error.
2039
2040 2011-10-27  Phil Muldoon  <pmuldoon@redhat.com>
2041
2042         * python/py-breakpoint.c (bppy_set_enabled): Use TRY_CATCH.
2043         (bppy_set_task): Ditto.
2044         (bppy_delete_breakpoint): Ditto.
2045         * python/py-symbol.c (gdbpy_lookup_symbol): Ditto.
2046         (gdbpy_lookup_global_symbol): Ditto.
2047         * python/py-lazy-string.c (stpy_convert_to_value): Ditto.
2048         * python/py-frame.c (frapy_is_valid): Ditto.
2049         (frame_info_to_frame_object): Ditto.
2050         * python/py-type.c (typy_lookup_type): Ditto.
2051         (typy_getitem): Ditto.
2052         (typy_has_key): Ditto.
2053         (typy_richcompare): Use TRY_CATCH.  Do not return Py_NE on error.
2054
2055 2011-10-26  Joel Brobecker  <brobecker@adacore.com>
2056
2057         * gdbarch.h: Regenerate.
2058
2059 2011-10-26  Meador Inge  <meadori@codesourcery.com>
2060
2061         * gdbarch.sh (function_list): Use 'pstring' when printing
2062         'gcore_bfd_target'.
2063         * gdbarch.c: Regenerate.
2064
2065 2011-10-26  Ulrich Weigand  <uweigand@de.ibm.com>
2066
2067         * regcache.c (registers_changed_ptid): Invalidate thread architecture
2068         and frame caches if PTID refers to all threads of a process.
2069
2070 2011-10-26  Ulrich Weigand  <uweigand@de.ibm.com>
2071
2072         * spu-tdep.c (spu_catch_start): Pass non-NULL breakpoint ops
2073         to create_breakpoint.
2074
2075 2011-10-26  Ulrich Weigand  <uweigand@de.ibm.com>
2076
2077         * ppc-sysv-tdep.c (ppc_sysv_use_opencl_abi): New function.
2078         (ppc_sysv_abi_push_dummy_call): Use it.
2079         (do_ppc_sysv_return_value): Likewise.
2080         (ppc64_sysv_abi_push_dummy_call): Likewise.
2081         (ppc64_sysv_abi_return_value): Likewise.
2082
2083 2011-10-26  Paul Koning  <paul_koning@dell.com>
2084
2085         * python/lib/gdb/types.py (deepitems): New function.
2086         
2087 2011-10-25  Paul Koning  <paul_koning@dell.com>
2088
2089         PR python/13327
2090         
2091         * python/py-value.c (value_to_value_object): Remove fetching of
2092         the value if it was lazy.
2093         (valpy_get_is_lazy): New function.
2094         (valpy_fetch_lazy): New function.
2095
2096 2011-10-24  Joel Brobecker  <brobecker@adacore.com>
2097
2098         * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Do not check
2099         FUNC_TYPE's calling convention if FUNC_TYPE is not a function.
2100
2101 2011-10-24  Pedro Alves  <pedro@codesourcery.com>
2102
2103         * linux-nat.c (linux_handle_extended_wait): When handling a clone
2104         event, in non-stop, if not stopping, make sure the new lwp has
2105         last_resume_kind set to resume_continue.  Assert that when we're
2106         resuming the new lwp, its last_resume_kind is resume_continue.
2107
2108 2011-10-24  Pedro Alves  <pedro@codesourcery.com>
2109
2110         * infrun.c (handle_inferior_event): Don't assume inferior_ptid is
2111         already set when marking the event thread as not executing in
2112         non-stop mode.
2113
2114 2011-10-24  Pedro Alves  <pedro@codesourcery.com>
2115
2116         * infrun.c (handle_inferior_event): Add debug output for
2117         TARGET_WAITKIND_NO_HISTORY.
2118
2119 2011-10-24  Phil Muldoon  <pmuldoon@redhat.com>
2120
2121         * NEWS: Move set/show extended-prompt to "New Options". Expand
2122         description. Fix typos.
2123
2124 2011-10-24  Phil Muldoon  <pmuldoon@redhat.com>
2125
2126         PR python/13310
2127
2128         * python/py-param.c (call_doc_function): Correctly deference on
2129         function exit.
2130
2131 2011-10-21  Joel Brobecker  <brobecker@adacore.com>
2132
2133         * ada-tasks.c (print_ada_task_info): Fix computation of
2134         number of tasks displayed in command output.
2135
2136 2011-10-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
2137             Ulrich Weigand  <uweigand@de.ibm.com>
2138
2139         * dwarf2-frame-tailcall.c: Include dwarf2-frame.h.
2140         (dwarf2_tailcall_prev_register_first): Use dwarf2_frame_cfa.
2141         (dwarf2_tailcall_sniffer_first): Remove variable pc_regnum.  Replace
2142         gdbarch_pc_regnum and frame_unwind_register_unsigned by
2143         gdbarch_unwind_pc.
2144
2145 2011-10-20  Cary Coutant  <ccoutant@google.com>
2146
2147         * dwarf2read.c (dw2_get_file_names): Move adjustment for type
2148         section to...
2149         (partial_read_comp_unit_head): ...here.  Add is_debug_type_section
2150         flag.  Adjust all callers.
2151         (process_psymtab_comp_unit): Remove adjustment for type section.
2152
2153 2011-10-20  Aleksandar Ristovski  <aristovski@qnx.com>
2154
2155         * cp-namespace.c (cp_scan_for_anonymous_namespaces): Changed function
2156         arguments by adding OBJFILE.  Instead of getting objfile from
2157         symbol's symtab, use new argument OBJFILE.
2158         * cp-support.h (cp_scan_for_anonymous_namespaces): Changed function
2159         arguments by adding OBJFILE.
2160         * gdb/dwarf2read.c (new_symbol_full): Change call to
2161         cp_scan_for_anonymous_namespaces to match new signature.
2162         * gdb/stabsread.c (define_symbol): Change call to
2163         cp_scan_for_anonymous_namespaces to match new signature.
2164
2165 2011-10-20  Phil Muldoon  <pmuldoon@redhat.com>
2166
2167         PR python/13308
2168         PR python/13309
2169
2170         * python/py-breakpoint.c (gdbpy_breakpoints): Fix List reference
2171         leak.
2172         * python/py-inferior.c (gdbpy_inferiors): Fix List reference
2173         leak.  Delete unused variables.
2174
2175 2011-10-20  Phil Muldoon  <pmuldoon@redhat.com>
2176
2177         PR python/12656
2178
2179         * python/py-frame.c (frapy_read_var): Use const struct *block.
2180         * python/py-type.c (typy_lookup_typename): Likewise.
2181         (typy_lookup_type): Likewise.
2182         (typy_legacy_template_argument): Likewise.
2183         (typy_template_argument): Likewise.
2184         (gdbpy_lookup_type): Likewise.
2185         * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
2186         * python/py-block.c (blpy_block_object): Likewise.
2187         (blpy_iter): Likewise.
2188         (blpy_get_start): Likewise.
2189         (blpy_get_end): Likewise.
2190         (blpy_get_function): Likewise.
2191         (blpy_get_superblock): Likewise.
2192         (set_block):  Likewise.
2193         (block_to_block_object): Likewise.
2194         (block_object_to_block): Likewise.
2195         (blpy_is_valid): Likewise.
2196         (blpy_get_global_block): New function.
2197         (blpy_get_static_block): New function.
2198         (blpy_is_global): New function.
2199         (blpy_is_static): New function.
2200         * blockframe.c (block_innermost_frame): Likewise.
2201         * valops.c (value_of_variable): Likewise.
2202         * frame.h: Update prototypes.
2203         * python/python-internal.h: Likewise.
2204         * value.h: Likewise.
2205
2206 2011-10-19  Cary Coutant  <ccoutant@google.com>
2207
2208         * dwarf2read.c (create_debug_types_hash_table): Fix size of
2209         type_offset field.
2210
2211 2011-10-19  Cary Coutant  <ccoutant@google.com>
2212
2213         * dwarf2read.c (peek_abbrev_code): New function.
2214         (dw2_get_file_names): Check for dummy compilation units.
2215         (create_debug_types_hash_table): Likewise.
2216         (process_psymtab_comp_unit): Likewise.
2217         (load_partial_comp_unit): Likewise.
2218         (load_full_comp_unit): Likewise.
2219
2220 2011-10-18  Aleksandar Ristovski  <aristovski@qnx.com>
2221
2222         * solib-svr4.c (read_program_header): New variables pt_phdr, pt_phdr_p,
2223         initialize them from target PT_PHDR p_vaddr, relocate sect_addr by
2224         pt_phdr if PT_PHDR was found.
2225
2226 2011-10-17  Joost van der Sluis  <joost@cnoc.nl>
2227
2228         * gdbtypes.h: Added TYPE_SAFE_NAME macro to get the name of a
2229         type or "<unnamed type"> when there is no name assigned.
2230         * gnu-v3-abi.c (gnuv3_rtti_type): Use TYPE_SAFE_NAME macro to
2231         avoid a sigint when no name is assigned.
2232
2233 2011-10-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
2234
2235         Revert:
2236         2011-07-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
2237         * dwarf2expr.c (ctx_no_read_reg): New function.
2238         * dwarf2expr.h (ctx_no_read_reg): New declaration.
2239         * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
2240         (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
2241         (decode_locdesc): Replace by a caller of dwarf_expr_eval.
2242
2243 2011-10-16  Doug Evans  <dje@google.com>
2244
2245         * NEWS: Document python gdb.printing.register_pretty_printer's new
2246         `replace' parameter.
2247
2248 2011-10-14  Keith Seitz  <keiths@redhat.com>
2249
2250         PR c++/13225
2251         * eval.c (evaluate_subexp_standard): Do not construct
2252         an array of types; pass the value array directly to
2253         find_overload_match.
2254         * gdbtypes.h (NULL_POINTER_CONVERSION_BADNESS): Declare.
2255         (rank_function): Take an array of values instead of types.
2256         (rank_one_type): Add struct value * parameter.
2257         * gdbtypes.c (NULL_POINTER_CONVERSION_BADNESS): Define.
2258         (rank_function): For each argument, pass the argument's
2259         value to rank_one_type.
2260         (rank_one_type): Add VALUE parameter.
2261         If the parameter type is a pointer and the argument type
2262         is an integer, return NULL_POINTER_CONVERSION_BADNESS if
2263         VALUE is zero.
2264         Update all calls to rank_one_type, passing NULL for new
2265         VALUE parameter.
2266         * valarith.c (value_user_defined_cpp_op): Do not construct
2267         an array of types; pass the value array directly to
2268         find_overload_match.
2269         * valops.c (find_overload_method_list): Take an array of
2270         values instead of types.
2271         Save the type of OBJP for later use.
2272         Update calls to find_oload_champ, and find_oload_champ_namespace.
2273         (find_oload_champ_namespace): Take an array of values instead
2274         of types.
2275         (find_oload_champ_namespace_loop): Likewise.
2276         (find_oload_champ): Likewise.
2277         (classify_oload_match): Inspect all arguments
2278         until INCOMPATIBLE is found. Return the worst badness found
2279         otherwise.
2280         (compare_parameters): Update call to rank_one_type.
2281         * value.h (find_overload_match): Take an array of values instead
2282         of types.
2283
2284 2011-10-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
2285
2286         Drop lazy lm_info reading.
2287         * solib-svr4.c (struct lm_info): Remove field lm.  New fields l_addr_p,
2288         l_addr_inferior, l_ld, l_next, l_prev and l_name.
2289         (lm_info_read): New function.
2290         (lm_addr_from_link_map, lm_dynamic_from_link_map): Remove.
2291         (lm_addr_check): Use l_addr_p.  No longer use lm_addr_from_link_map and
2292         lm_dynamic_from_link_map.
2293         (lm_next, lm_prev, lm_name): Remove.
2294         (svr4_keep_data_in_core): Use lm_info_read, drop the lm_info entries
2295         initialization incl. read_memory.  No longer use lm_name.
2296         (svr4_free_so): Drop lm_info->lm freeing.
2297         (svr4_default_sos): Initialize lminfo with zeroes.  Use l_addr_p.  Drop
2298         explicit lm_addr and lm initialization.
2299         (svr4_read_so_list): Use lm_info_read, drop the initailization of
2300         fields by hand, incl. read_memory.  No longer use lm_next, lm_prev and
2301         lm_name.
2302
2303 2011-10-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
2304             Paul Pluzhnikov  <ppluzhnikov@google.com>
2305
2306         * defs.h (struct so_list): New forward declaration.
2307         (make_cleanup_free_so): New declaration.
2308         * solib-svr4.c (ignore_first_link_map_entry): Remove.
2309         (svr4_free_so): Move the function here from downwards.  Handle NULL
2310         so->lm_info.
2311         (svr4_free_library_list): New.
2312         (svr4_read_so_list): New, moved here code from svr4_current_sos.
2313         Use more cleanups.  Use new parameter ignore_first instead of
2314         ignore_first_link_map_entry.
2315         (svr4_current_sos): New variable ignore_first, initialize it.  New
2316         variable back_to, use it for svr4_free_library_list protection.
2317         (svr4_free_so): Remove - move upwards.
2318         * utils.c: Include solist.h.
2319         (do_free_so, make_cleanup_free_so): New functions.
2320
2321 2011-10-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
2322
2323         Fix internal error regression.
2324         * value.c (value_primitive_field): Handle value_optimized_out.  Move
2325         packed bitfields comment.
2326
2327 2011-10-13  Tom Tromey  <tromey@redhat.com>
2328
2329         * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Ensure GIL is
2330         always released.
2331
2332 2011-10-13  Tom Tromey  <tromey@redhat.com>
2333
2334         * python/py-type.c (typy_has_key): Make 'field' const.
2335
2336 2011-10-13  Luis Machado  <lgustavo@codesourcery.com>
2337
2338         * remote.c (remote_save_trace_data): Invert comparison.
2339
2340 2011-10-13  Luis Machado  <lgustavo@codesourcery.com>
2341
2342         * tracepoint.c (trace_save_command): Use filename instead of
2343         args when printing.
2344
2345 2011-10-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
2346
2347         * dwarf2read.c (dwarf2_fetch_die_location_block): Initialize .data even
2348         if .size is 0.
2349
2350 2011-10-13  Yao Qi  <yao@codesourcery.com>
2351
2352         PR gdb/12703
2353         * arm-tdep.c (thumb_analyze_prologue): Call thumb_insn_size to check
2354         whether insn is a 32-bit Thumb-2 instruction.
2355         (thumb_in_function_epilogue_p): Likewise.
2356         (thumb_get_next_pc_raw): Likewise.
2357         (arm_breakpoint_from_pc): Likewise.
2358
2359 2011-10-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
2360
2361         Fix empty DWARF expressions DATA vs. SIZE conditionals.
2362         * dwarf2loc.c (dwarf2_find_location_expression): Clear *LOCEXPR_LENGTH.
2363         (dwarf_expr_frame_base_1): Indicate unavailability via zero *LENGTH.
2364         (locexpr_tracepoint_var_ref): Check only zero SIZE, not zero DATA.
2365         (loclist_read_variable, loclist_tracepoint_var_ref): Do not check for
2366         zero DATA.
2367         * dwarf2loc.h (struct dwarf2_locexpr_baton): Comment DATA vs. SIZE
2368         validity.
2369         * dwarf2read.c (struct dwarf_block): Comment DATA validity.
2370         (dwarf2_fetch_die_location_block, dwarf2_symbol_mark_computed): Do not
2371         clear DATA on zero SIZE.
2372
2373 2011-10-12  Doug Evans  <dje@google.com>
2374
2375         * dwarf2read.c (partial_read_comp_unit_head): Set header->offset,
2376         header->first_die_offset here.  All callers updated.
2377
2378 2011-10-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
2379
2380         Fix compatibility with texinfo versions older than 4.12.
2381         * Makefile.in (MAKEINFO): Set to @MAKEINFO@.
2382         (MAKEINFOFLAGS, MAKEINFO_EXTRA_FLAGS, MAKEINFO_CMD): New.
2383         (MAKEHTMLFLAGS): Use MAKEINFO_CMD.
2384         (FLAGS_TO_PASS): Add MAKEINFOFLAGS and MAKEINFO_EXTRA_FLAGS.
2385         * configure: Regenerate.
2386         * configure.ac (MAKEINFO): Find it, from libiberty/configure.ac.
2387         (MAKEINFOFLAGS): Pre-set it to --split-size=5000000.
2388         (MAKEINFO_EXTRA_FLAGS): New test for -DHAVE_MAKEINFO_CLICK.
2389
2390 2011-10-12  Gary Benson  <gbenson@redhat.com>
2391
2392         * breakpoint.h (pc_at_non_inline_function): Declare.
2393         * breakpoint.c (is_non_inline_function,
2394         pc_at_non_inline_function): New functions.
2395         * infrun.c (handle_inferior_event): Don't call skip_inline_frames
2396         if the stop is at a location where functions cannot be inlined.
2397
2398 2011-10-12  Pedro Alves  <pedro@codesourcery.com>
2399
2400         * linux-nat.c (stop_and_resume_callback): Don't re-resume LWPs if
2401         the core wanted them stopped, or if they now have a pending event
2402         to report.
2403         (linux_nat_filter_event): New parameter `new_pending_p'.  Pass it
2404         down to stop_and_resume_callback.
2405         (linux_nat_wait_1): Always clear `options' when retrying.  Handle
2406         having new pending events after calling linux_nat_filter_event.
2407
2408 2011-10-11  Sterling Augustine  <saugustine@google.com>
2409
2410         * dwarf2read.c: Undo inadvertent changes in previous commit.
2411
2412 2011-10-11  Sterling Augustine  <saugustine@google.com>
2413
2414         * dwarf2read.c (partial_die_parent_scope): Rearrange conditional
2415         logic.
2416
2417 2011-10-11  Ulrich Weigand  <ulrich.weigand@linaro.org>
2418
2419         * symfile.c (separate_debug_file_exists): Fix condition.
2420
2421 2011-10-11  David S. Miller  <davem@davemloft.net>
2422
2423         * regcache.c (regcache_restore): Do not write unavailable regs, mark
2424         static.
2425         * regcache.h (regcache_restore): Remove declaration.
2426
2427         * gdbarch.sh: New field 'long_long_align_bit'.
2428         * gdbarch.c, gdbarch.h: Regenerate.
2429         * i386-tdep.c (i386_gdbarch_init): Set long_long_align_bit to 32.
2430         * jit.c (jit_read_code_entry): Use it to determine correct size offset.
2431
2432 2011-10-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
2433
2434         Revert this part of:
2435         2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
2436         Support @entry in input expressions.
2437         * c-exp.y (ENTRY, unknown_cpp_name): New.
2438         (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
2439         (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
2440         (variable: name_not_typename '@' ENTRY, name: ENTRY)
2441         (name_not_typename: ENTRY): New.
2442         (yylex): Recognize ENTRY.
2443
2444         Reimplement @entry in input expressions.
2445         * c-exp.y (ENTRY): New.
2446         (variable: name_not_typename ENTRY): New.
2447         (lex_one_token): Optionally return ENTRY instead of the '@' lex.
2448
2449 2011-10-11  Pedro Alves  <pedro@codesourcery.com>
2450
2451         * linux-nat.c (linux_handle_extended_wait): Always dump both the
2452         parent and child's pids as soon as we detect a clone event.
2453         Adjust another debug message.
2454
2455 2011-10-11  Pedro Alves  <pedro@codesourcery.com>
2456
2457         * linux-nat.c (linux_lwp_is_zombie): Return early if the LWP is
2458         not zombie instead of reading the whole file.
2459
2460 2011-10-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
2461
2462         Fix separate debuginfo warning with "remote:" access.
2463         * objfiles.h (struct objfile): New fields crc32 and crc32_p.
2464         * symfile.c (get_file_crc): New function with the code moved from ...
2465         (separate_debug_file_exists): ... this function, specifically variables
2466         buffer and count.  New variable verified_as_different, set it.  Remove
2467         file_crc initialization.  Verify also if both files are not the same
2468         manually, if needed.
2469
2470 2011-10-11  Yao Qi  <yao@codesourcery.com>
2471
2472         * arm-tdep.c (arm_get_next_pc_raw): Use read_memory_unsigned_integer
2473         to get address.
2474
2475 2011-10-10  Doug Evans  <dje@google.com>
2476
2477         * linux-thread-db.c (thread_db_new_objfile): Only try to load
2478         libthread_db when we load libpthread or the main symbol file.
2479         (thread_db_inferior_created): New function.
2480         (_initialize_thread_db): Attach inferior_created observer.
2481         * linux-nat.c (linux_child_post_attach): Remove call to
2482         check_for_thread_db.
2483         (linux_child_post_startup_inferior): Ditto.
2484         * objfiles.h (OBJF_MAINLINE): Define.
2485         * symfile.c (symbol_file_add_with_addrs_or_offsets): Pass it to
2486         allocate_objfile when appropriate.
2487
2488 2011-10-10  Ulrich Weigand  <ulrich.weigand@linaro.org>
2489
2490         PR gdb/13218
2491         * arm-linux-nat.c (os_version, os_major, os_minor, os_release):
2492         Remove unused variables.
2493         (get_linux_version): Remove function.
2494         (_initialize_arm_linux_nat): Do not call it.
2495
2496 2011-10-10  Pedro Alves  <pedro@codesourcery.com>
2497
2498         * linux-nat.c (linux_handle_extended_wait): Don't resume the new
2499         new clone lwp if the core asked it to stop.  Don't pass on
2500         unexpected signals to the new clone; leave them pending instead.
2501
2502 2011-10-10  Pedro Alves  <pedro@codesourcery.com>
2503
2504         * linux-nat.c (resume_lwp): Remove redundant debug output.
2505
2506 2011-10-10  Pedro Alves  <pedro@codesourcery.com>
2507
2508         * linux-nat.c (linux_nat_wait_1): Copy the event lwp's
2509         last_resume_kind before clearing it, and use the copy instead to
2510         determine whether to report a SIGSTOP as TARGET_SIGNAL_0.  Use
2511         resume_clear_callback in the non-stop path too.
2512
2513 2011-10-09  Yao Qi  <yao@codesourcery.com>
2514
2515         * valprint.c (value_check_printable): Add one parameter OPTIONS.
2516         Honor OPTIONS and VAL's type.
2517         (common_val_print, value_print): Update to pass one more parameter.
2518
2519 2011-10-09  Doug Evans  <dje@google.com>
2520
2521         Add new "alias" command.
2522         * NEWS: Mention new command.
2523         * command.h (valid_user_defined_cmd_name_p): Declare.
2524         * defs.h (make_cleanup_dyn_string_delete): Declare.
2525         * utils.c: #include "dyn-string.h".
2526         (do_dyn_string_delete, make_cleanup_dyn_string_delete): New functions.
2527         * cli/cli-cmds.c: #include "dyn-string.h".
2528         (argv_to_dyn_string, valid_command_p, alias_command): New functions.
2529         (init_cli_cmds): Add new command.
2530         * cli/cli-decode.c (valid_user_defined_cmd_name_p): New function.
2531
2532 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
2533
2534         Fix compatibility with older GCCs.
2535         * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Initialize parameter.
2536         * stack.c (read_frame_arg): Initialize val_deref.
2537
2538 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
2539
2540         Entry values NEWS entries, DWARF disassembly support.
2541         * NEWS: New entry values entry.
2542         (set print entry-values, show print entry-values)
2543         (set debug entry-values, show debug entry-values): New entries.
2544         * dwarf2loc.c (disassemble_dwarf_expression): New parameters start and
2545         indent.  Remove variable start.  Move header printing out.  Respect
2546         INDENT.  Support DW_OP_GNU_entry_value.
2547         (locexpr_describe_location_1): Move the header printing here, extend
2548         the disassemble_dwarf_expression passed parameters.
2549
2550 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
2551
2552         Display @entry parameter values even for references.
2553         * ada-valprint.c (ada_val_print_1) <TYPE_CODE_REF>: Try also
2554         coerce_ref_if_computed.
2555         * c-valprint.c (c_val_print) <TYPE_CODE_REF>: Likewise.
2556         * dwarf2expr.c (dwarf_block_to_dwarf_reg_deref): New function.
2557         (execute_stack_op) <DW_OP_GNU_entry_value>: Add -1 deref_size to the
2558         existing push_dwarf_reg_entry_value call.  Add new detection calling
2559         dwarf_block_to_dwarf_reg_deref.  Update the error message.
2560         (ctx_no_push_dwarf_reg_entry_value): New parameter deref_size.
2561         * dwarf2expr.h
2562         (struct dwarf_expr_context_funcs) <push_dwarf_reg_entry_value>: Add new
2563         parameter deref_size, describe it in the comment.
2564         (ctx_no_push_dwarf_reg_entry_value): Add new parameter deref_size.
2565         (dwarf_block_to_dwarf_reg_deref): New declaration.
2566         * dwarf2loc.c (dwarf_entry_parameter_to_value): Add new parameter
2567         deref_size, describe it in the function comment.  New variables
2568         data_src and size, fetch the alternative block accoring to DEREF_SIZE.
2569         (dwarf_expr_push_dwarf_reg_entry_value): Add new parameter deref_size,
2570         describe it in the function comment.  Fetch the alternative block
2571         accoring to DEREF_SIZE.
2572         (entry_data_value_coerce_ref, entry_data_value_copy_closure)
2573         (entry_data_value_free_closure, entry_data_value_funcs): New.
2574         (value_of_dwarf_reg_entry): New variables checked_type, target_type,
2575         outer_val, target_val, val and addr.  Try to fetch and create also
2576         referenced value content.
2577         (pieced_value_funcs): NULL value for coerce_ref.
2578         (needs_dwarf_reg_entry_value): Add new parameter deref_size.
2579         * f-valprint.c (f_val_print) <TYPE_CODE_REF>: Try also
2580         coerce_ref_if_computed.
2581         * opencl-lang.c (opencl_value_funcs): NULL value for coerce_ref.
2582         * p-valprint.c (pascal_val_print) <TYPE_CODE_REF>: Likewise.
2583         * stack.c (read_frame_arg): Compare also dereferenced values.
2584         * value.c (value_computed_funcs): Make the parameter v const, use
2585         value_lval_const for it.
2586         (value_lval_const, coerce_ref_if_computed): New function.
2587         (coerce_ref): New variable retval.  Call also coerce_ref_if_computed.
2588         * value.h (struct lval_funcs): New field coerce_ref.
2589         (value_computed_funcs): Make the parameter v const.
2590         (value_lval_const, coerce_ref_if_computed): New declarations.
2591
2592 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
2593
2594         Support @entry in input expressions.
2595         * c-exp.y (ENTRY, unknown_cpp_name): New.
2596         (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
2597         (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
2598         (variable: name_not_typename '@' ENTRY, name: ENTRY)
2599         (name_not_typename: ENTRY): New.
2600         (yylex): Recognize ENTRY.
2601         * eval.c (evaluate_subexp_standard): Support also OP_VAR_ENTRY_VALUE.
2602         * expprint.c (print_subexp_standard, dump_subexp_body_standard):
2603         Likewise.
2604         * parse.c (operator_length_standard): Likewise.
2605         * std-operator.def: New operator OP_VAR_ENTRY_VALUE.
2606
2607 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
2608
2609         Display referenced values in backtraces.
2610         * printcmd.c (print_variable_and_value): Set OPTS.DEREF_REF to 1.
2611         * stack.c (print_frame_arg): Likewise.
2612
2613 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
2614
2615         Make some lval_funcs methods to default on NULL.
2616         * valops.c (value_fetch_lazy): Check if lval_computed read method is
2617         NULL.
2618         (value_assign): Check if lval_computed write method is NULL.
2619         * value.h (struct lval_funcs): Comment NULL values for read and write
2620         methods.
2621
2622 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
2623
2624         Display @entry parameter values (without references).
2625         * dwarf2expr.c (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
2626         New functions.
2627         * dwarf2expr.h (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
2628         New declarations.
2629         * dwarf2loc.c (dwarf2_find_location_expression): Support location list
2630         entry record.
2631         (dwarf_entry_parameter_to_value, value_of_dwarf_reg_entry)
2632         (value_of_dwarf_block_entry, locexpr_read_variable_at_entry): New
2633         functions.
2634         (dwarf2_locexpr_funcs): Install locexpr_read_variable_at_entry.
2635         (loclist_read_variable_at_entry): New function.
2636         (dwarf2_loclist_funcs): Install loclist_read_variable_at_entry.
2637         * dwarf2read.c (read_call_site_scope): Support also DW_OP_fbreg in
2638         DW_AT_location, call dwarf_block_to_sp_offset for it.
2639         * frame.h (print_entry_values_no, print_entry_values_only)
2640         (print_entry_values_preferred, print_entry_values_if_needed)
2641         (print_entry_values_both, print_entry_values_compact)
2642         (print_entry_values_default, print_entry_values): New declarations.
2643         (struct frame_arg): New field entry_kind.
2644         (read_frame_arg): New parameter entryargp.
2645         * mi/mi-cmd-stack.c (list_arg_or_local): New gdb_assert for
2646         arg->entry_kind.  Optionally print the `@entry' suffix.
2647         (list_args_or_locals): New variable entryarg, initialize it.
2648         Initialize also entry_kind of arg and entryarg.  Conditionalize
2649         list_arg_or_local for arg, add list_arg_or_local for entryarg.  Call
2650         xfree for entryarg.error.
2651         * stack.c (print_entry_values_no, print_entry_values_only)
2652         (print_entry_values_preferred, print_entry_values_if_needed)
2653         (print_entry_values_both, print_entry_values_compact)
2654         (print_entry_values_default, print_entry_values_choices)
2655         (print_entry_values): New variables.
2656         (print_frame_arg): New gdb_assert for arg->entry_kind.  Optionally
2657         print the `@entry' suffix, possibly in combination for
2658         print_entry_values_compact.
2659         (read_frame_arg): New parameter entryargp, new variables entryval,
2660         entryval_error and val_equal.  Read in also entryargp, respect
2661         print_entry_values, compare the values using val_equal, fill in also
2662         argp->entry_kind (together with entryargp->entry_kind).
2663         (print_frame_args): New variable entryarg, initialize it.
2664         Conditionalize print_frame_arg for arg, add print_frame_arg for
2665         entryarg.  Call xfree for entryarg.error.
2666         (_initialize_stack): Call add_setshow_enum_cmd for `entry-values'.
2667         * symtab.h (struct symbol_computed_ops): New field
2668         read_variable_at_entry.
2669
2670 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
2671
2672         Code reshuffle.
2673         * frame.h (struct frame_arg): New definition.
2674         (read_frame_arg): New declaration.
2675         * mi/mi-cmd-stack.c (list_arg_or_local): New functiom from ...
2676         (list_args_or_locals): ... the code here.  New variable arg, call
2677         read_frame_arg and list_arg_or_local with it.  Unify the
2678         PRINT_SIMPLE_VALUES and PRINT_ALL_VALUES cases.  Call xfree for
2679         arg.error.
2680         * stack.c (print_frame_arg): New functiom from the code of
2681         print_frame_args.
2682         (read_frame_arg): New function.
2683         (print_frame_args): Remove variable val.  New variable arg, call
2684         read_frame_arg and print_frame_arg with it.  Call xfree for arg.error.
2685
2686 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
2687
2688         Protect entry values against self tail calls.
2689         * dwarf2loc.c (VEC (CORE_ADDR), func_verify_no_selftailcall): New.
2690         (dwarf_expr_dwarf_reg_entry_value): Call func_verify_no_selftailcall.
2691
2692 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
2693
2694         Recognize virtual tail call frames.
2695         * Makefile.in (SFILES): Add dwarf2-frame-tailcall.c.
2696         (HFILES_NO_SRCDIR): Add dwarf2-frame-tailcall.h.
2697         (COMMON_OBS): Add dwarf2-frame-tailcall.o.
2698         * dwarf2-frame-tailcall.c: New file.
2699         * dwarf2-frame-tailcall.h: New file.
2700         * dwarf2-frame.c: Include dwarf2-frame-tailcall.h.
2701         (execute_cfa_program): New function comment.  Return INSN_PTR.  Reset
2702         REGS.PREV only after CIE execution.
2703         (struct dwarf2_frame_cache): New field tailcall_cache.
2704         (dwarf2_frame_cache): New variables entry_pc, entry_cfa_sp_offset,
2705         entry_cfa_sp_offset_p and instr.  Execute FDE instructions in two
2706         parts, try to find entry_cfa_sp_offset.  Call
2707         dwarf2_tailcall_sniffer_first.
2708         (dwarf2_frame_prev_register): Call dwarf2_tailcall_prev_register_first
2709         when appropriate.
2710         (dwarf2_frame_dealloc_cache): New function.
2711         (dwarf2_frame_sniffer): Preinitialize cache by dwarf2_frame_cache.
2712         (dwarf2_frame_unwind): Install dwarf2_frame_dealloc_cache.
2713         (dwarf2_signal_frame_unwind): Do not install dwarf2_frame_dealloc_cache.
2714         (dwarf2_append_unwinders): Add dwarf2_tailcall_frame_unwind.
2715         (dwarf2_frame_cfa): Support also dwarf2_tailcall_frame_unwind.
2716         * dwarf2loc.c (func_addr_to_tail_call_list)
2717         (tailcall_dump, call_sitep, VEC (call_sitep), chain_candidate)
2718         (call_site_find_chain_1, call_site_find_chain): New.
2719         * dwarf2loc.h (struct call_site_chain): New.
2720         (call_site_find_chain): New declaration.
2721         * frame.c (get_frame_address_in_block): Support also TAILCALL_FRAME.
2722         * frame.h (enum frame_type): New entry TAILCALL_FRAME.
2723         * python/py-frame.c (gdbpy_initialize_frames): Add TAILCALL_FRAME.
2724         * stack.c (frame_info): Support also TAILCALL_FRAME.
2725
2726 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
2727
2728         Tail call sites reader implementation.
2729         * dwarf2read.c (read_call_site_scope): Recognize DW_AT_GNU_tail_call,
2730         fill in TYPE_TAIL_CALL_LIST.
2731         * gdbtypes.h (struct func_type): New field tail_call_list.
2732         (struct call_site): New field tail_call_next.
2733         (TYPE_TAIL_CALL_LIST): New definition.
2734
2735 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
2736
2737         Implement basic support for DW_TAG_GNU_call_site.
2738         * block.c: Include gdbtypes.h and exceptions.h.
2739         (call_site_for_pc): New function.
2740         * block.h (call_site_for_pc): New declaration.
2741         * defs.h: Include hashtab.h.
2742         (make_cleanup_htab_delete, core_addr_hash, core_addr_eq): New
2743         declarations.
2744         * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Install
2745         ctx_no_push_dwarf_reg_entry_value.
2746         * dwarf2expr.c (read_uleb128, read_sleb128): Support R as NULL.
2747         (dwarf_block_to_dwarf_reg): New function.
2748         (execute_stack_op) <DW_OP_GNU_entry_value>: Implement it.
2749         (ctx_no_push_dwarf_reg_entry_value): New function.
2750         * dwarf2expr.h (struct dwarf_expr_context_funcs): New field
2751         push_dwarf_reg_entry_value.
2752         (ctx_no_push_dwarf_reg_entry_value, dwarf_block_to_dwarf_reg): New
2753         declarations.
2754         * dwarf2loc.c: Include gdbcmd.h.
2755         (dwarf_expr_ctx_funcs): New forward declaration.
2756         (entry_values_debug, show_entry_values_debug, call_site_to_target_addr)
2757         (dwarf_expr_reg_to_entry_parameter)
2758         (dwarf_expr_push_dwarf_reg_entry_value): New.
2759         (dwarf_expr_ctx_funcs): Install dwarf_expr_push_dwarf_reg_entry_value.
2760         (dwarf2_evaluate_loc_desc_full): Handle NO_ENTRY_VALUE_ERROR.
2761         (needs_dwarf_reg_entry_value): New function.
2762         (needs_frame_ctx_funcs): Install it.
2763         (_initialize_dwarf2loc): New function.
2764         * dwarf2loc.h (entry_values_debug): New declaration.
2765         * dwarf2read.c (struct dwarf2_cu): New field call_site_htab.
2766         (read_call_site_scope): New forward declaration.
2767         (process_full_comp_unit): Copy call_site_htab.
2768         (process_die): Support DW_TAG_GNU_call_site.
2769         (read_call_site_scope): New function.
2770         (dwarf2_get_pc_bounds): Support NULL HIGHPC.
2771         (dwarf_tag_name): Support DW_TAG_GNU_call_site.
2772         (cleanup_htab): Delete.
2773         (write_psymtabs_to_index): Use make_cleanup_htab_delete instead of it.
2774         * exceptions.h (enum errors): New NO_ENTRY_VALUE_ERROR.
2775         * gdb-gdb.py (StructMainTypePrettyPrinter): Support
2776         FIELD_LOC_KIND_DWARF_BLOCK.
2777         * gdbtypes.h (enum field_loc_kind): New entry
2778         FIELD_LOC_KIND_DWARF_BLOCK.
2779         (struct main_type): New loc entry dwarf_block.
2780         (struct call_site, FIELD_DWARF_BLOCK, SET_FIELD_DWARF_BLOCK)
2781         (TYPE_FIELD_DWARF_BLOCK): New.
2782         * python/py-type.c: Include dwarf2loc.h.
2783         (check_types_equal): Support FIELD_LOC_KIND_DWARF_BLOCK.  New
2784         internal_error call on unknown FIELD_LOC_KIND.
2785         * symtab.h (struct symtab): New field call_site_htab.
2786         * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete)
2787         (core_addr_hash, core_addr_eq): New functions.
2788
2789 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
2790
2791         Code reshuffle.
2792         * gdb-gdb.py (StructMainTypePrettyPrinter): Change
2793         TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC.  Move
2794         calling_convention under func_stuff there.
2795         * gdbtypes.c (make_function_type): Call INIT_FUNC_SPECIFIC.
2796         (init_type) <TYPE_CODE_FUNC>: Likewise.
2797         (recursive_dump_type): Change TYPE_SPECIFIC_CALLING_CONVENTION to
2798         TYPE_SPECIFIC_FUNC.  New comment for tail_call_list.
2799         * gdbtypes.h (enum type_specific_kind): Change
2800         TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC.
2801         (struct main_type) <type_specific>: Change calling_convention to
2802         func_stuff.  Move calling_convention to ...
2803         (struct func_type): ... this new struct.
2804         (INIT_FUNC_SPECIFIC): New #define.
2805         (TYPE_CALLING_CONVENTION): Change calling_convention to func_stuff.
2806
2807 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
2808
2809         Fix DW_OP_GNU_implicit_pointer for DWARF32 v3+ on 64-bit arches.
2810         * dwarf2-frame.c (execute_stack_op): Initialize ctx->ref_addr_size.
2811         * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Use
2812         ctx->ref_addr_size.  Handle its invalid value.
2813         * dwarf2expr.h (struct dwarf_expr_context): New field ref_addr_size.
2814         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
2815         (dwarf2_loc_desc_needs_frame): Initialize ctx->ref_addr_size.
2816         * dwarf2loc.h (dwarf2_per_cu_ref_addr_size): New declaration.
2817         * dwarf2read.c (decode_locdesc): Initialize ctx->ref_addr_size.
2818         (dwarf2_per_cu_ref_addr_size): New function.
2819
2820 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
2821
2822         Code cleanup.
2823         * dwarf2read.c (per_cu_header_read_in): New function.
2824         (dwarf2_per_cu_addr_size, dwarf2_per_cu_offset_size): Use it, with new
2825         variables cu_header_local and cu_headerp.
2826
2827 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
2828
2829         Fix initial language detection with -readnow.
2830         * dwarf2read.c (dw2_find_symbol_file): Handle OBJF_READNOW case.
2831         * symfile.h (struct quick_symbol_functions): State find_symbol_file
2832         searches only for global symbols.
2833
2834 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
2835
2836         Fix printed anonymous struct name.
2837         * dwarf2read.c (fixup_partial_die): Handle for anonymous structs also
2838         DW_TAG_interface_type.  Strip for anonymous structs any prefixes.
2839         (anonymous_struct_prefix): New function.
2840         (determine_prefix): New variables retval.  Call anonymous_struct_prefix.
2841         (dwarf2_name): Strip for anonymous structs any prefixes.
2842
2843 2011-10-07  Doug Evans  <dje@google.com>
2844
2845         * python/lib/gdb/printing.py (register_pretty_printer): New argument
2846         `replace'.
2847
2848         * python/lib/gdb/printing.py: Whitespace cleanup.
2849
2850         * python/py-value.c (valpy_call): Initialize ftype to avoid compiler
2851         warning.
2852
2853 2011-10-07  Pedro Alves  <pedro@codesourcery.com>
2854
2855         * linux-nat.h (ALL_LWPS): Remove the ptid parameter.
2856         * amd64-linux-nat.c (amd64_linux_dr_set_control)
2857         (amd64_linux_dr_set_addr, amd64_linux_dr_unset_status): Adjust.
2858         * arm-linux-nat.c (arm_linux_insert_hw_breakpoint)
2859         (arm_linux_remove_hw_breakpoint, arm_linux_insert_watchpoint)
2860         (arm_linux_remove_watchpoint): Adjust.
2861         * i386-linux-nat.c (i386_linux_dr_set_control)
2862         (i386_linux_dr_set_addr, i386_linux_dr_unset_status): Adjust.
2863         * ia64-linux-nat.c (ia64_linux_insert_watchpoint)
2864         (ia64_linux_remove_watchpoint): Adjust.
2865         * mips-linux-nat.c (write_watchpoint_regs): Adjust.
2866         * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint)
2867         (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
2868         (ppc_linux_insert_mask_watchpoint)
2869         (ppc_linux_remove_mask_watchpoint, ppc_linux_insert_watchpoint)
2870         (ppc_linux_remove_watchpoint): Adjust.
2871         * s390-nat.c (s390_insert_watchpoint, s390_remove_watchpoint):
2872         Adjust.
2873
2874 2011-10-07  Corinna Vinschen  <vinschen@redhat.com>
2875
2876         * windows-nat.c: Include wchar.h to avoid compiler warnings.
2877         (clear_win32_environment): New function for Cygwin to clear out
2878         Win32 environment.
2879         (windows_create_inferior): Prepare new environment from in_env
2880         for Cygwin, too.
2881
2882 2011-10-07  Phil Muldoon  <pmuldoon@redhat.com>
2883
2884         PR python/13264
2885         * python/py-value.c (valpy_call): Check that arguments are
2886         a tuple.
2887         (is_intlike): Remove call to CHECK_TYPEDEF.
2888         (valpy_nonzero): Catch GDB exceptions.
2889         (valpy_absolute): Ditto.
2890         (valpy_lazy_string): Ditto.
2891         (valpy_call): Ditto.
2892         (valpy_get_is_optimized_out): Ditto.
2893         (valpy_long): Ditto.
2894         (valpy_float): Ditto.
2895         (valpy_int): Call CHECK_TYPEDEF.  Catch GDB exceptions.
2896         (valpy_richcompare): Ditto.
2897
2898 2011-10-07  Ulrich Weigand  <ulrich.weigand@linaro.org>
2899
2900         * inferior.h (disable_randomization): Declare.
2901         * infrun.c (disable_randomization): New global variable.
2902         (show_disable_randomization): New function.
2903         (set_disable_randomization): Likewise.
2904         (_initialize_infrun): Install set/show disable-randomization
2905         commands.
2906         * linux-nat.c (disable_randomization): Remove.
2907         (show_disable_randomization): Likewise.
2908         (set_disable_randomization): Likewise.
2909         (_initialize_linux_nat): No longer install set/show
2910         disable-randomization commands here.
2911         (linux_nat_supports_disable_randomization): New function.
2912         (linux_nat_add_target): Install it.
2913         * remote.c (PACKET_QDisableRandomization): New enum value.
2914         (remote_protocol_packets): Support QDisableRandomization.
2915         (_initialize_remote): Likewise.
2916         (remote_supports_disable_randomization): New function.
2917         (init_remote_ops): Install it.
2918         (extended_remote_supports_disable_randomization): New function.
2919         (init_extended_remote_ops): Install it.
2920         (extended_remote_disable_randomization): New function.
2921         (extended_remote_create_inferior_1): Call it.
2922         * target.h (struct target_ops): Add to_supports_disable_randomization.
2923         (target_supports_disable_randomization): Add prototype.
2924         * target.c (target_supports_disable_randomization): New function.
2925         (find_default_supports_disable_randomization): Likewise.
2926         (init_dummy_target): Install it.
2927
2928 2011-10-07  Kevin Pouget  <kevin.pouget@st.com>
2929
2930         Allow Python notification of new object-file loadings.
2931         * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-newobjfilevent.c.
2932         (SUBDIR_PYTHON_OBS): Add py-newobjfileevent.o.
2933         Add build rule for this file.
2934         * python/py-event.h (emit_new_objfile_event): New prototype.
2935         (newobjfile): New Python event emitter.
2936         * python/py-evts.c (gdbpy_initialize_py_events): Add new_objfile to
2937         Python event registry.
2938         * python/py-inferior.c: Include objfiles.h
2939         (python_new_objfile): New function.
2940         (gdbpy_initialize_inferior): Add python_new_objfile to the new objfile
2941         observers.
2942         * python/py-newobjfileevent.c: New file.
2943         * python-internal.h (gdbpy_initialize_new_objfile_event): New
2944         prototype.
2945         * python/python.c (_initialize_python): Add 
2946         gdbpy_initialize_new_objfile_event call.
2947         * NEWS: Add item for new Python event "gdb.newobjfile"
2948
2949 2011-10-05  Tristan Gingold  <gingold@adacore.com>
2950
2951         * ada-tasks.c (read_atcb): Make ravenscar_task_name static.
2952         Extract the ravenscar task name from the symbol for the atcb.
2953
2954 2011-10-04  Paul Koning  <paul_koning@dell.com>
2955
2956         * python/py-type.c (typy_make_iter): Add forward declaration.
2957         (typy_fields_items):  Use the gdb.Type iterator.
2958
2959 2011-10-04  Paul Koning  <paul_koning@dell.com>
2960
2961         * NEWS: Add entry for Python gdb.Type mapping methods.
2962
2963 2011-10-04  Kevin Pouget  <kevin.pouget@st.com>
2964
2965         PR python/12691: Add the inferior to Python exited event
2966         * python/py-exitedevent.c (create_exited_event_object): Add inferior
2967         to exited_event.
2968         * python/py-event.h (emit_exited_event): Likewise
2969         * python/-inferior.c (python_inferior_exit): Likewise
2970
2971 2011-10-03  Joel Brobecker  <brobecker@adacore.com>
2972
2973         * ada-tasks.c (print_ada_task_info): Add "thread-id" field
2974         in output of -ada-task-info GDB/MI command.
2975
2976 2011-10-03  Joel Brobecker  <brobecker@adacore.com>
2977
2978         * ada-lang.h (struct inferior): Declare.
2979         (print_ada_task_info): Add declaration.
2980         * ada-tasks.c (print_ada_task_info): Make non-static.
2981         * mi/mi-cmds.c (mi_cmds): Add "ada-task-info".
2982         * mi/mi-cmds.h (mi_cmd_ada_task_info): Add declaration.
2983         * mi/mi-main.c: #include "ada-lang.h".
2984         (mi_cmd_list_features): Add "ada-task-info" to the list
2985         of supported features.
2986         (mi_cmd_ada_task_info): New function.
2987
2988 2011-10-03  Joel Brobecker  <brobecker@adacore.com>
2989
2990         * python/python.c (python_run_simple_file): New function.
2991         (source_python_script, source_python_script_for_objfile):
2992         Replace call to PyRun_SimpleFile by call to
2993         python_run_simple_file.
2994
2995 2011-10-03  Paul Koning  <paul_koning@dell.com>
2996
2997         * python/py-value.c (valpy_get_address): Use Py_XINCREF.
2998         (value_to_value_object): Fetch value if it was lazy.
2999
3000 2011-10-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3001
3002         Code cleanup.
3003         * solib-svr4.c (svr4_default_sos):  Remove variables head and link_ptr.
3004         Rearrange the code for it.
3005
3006 2011-10-02  Joel Brobecker  <brobecker@adacore.com>
3007
3008         * breakpoint.c (bkpt_print_recreate): Add call to
3009         print_recreate_thread.
3010
3011 2011-09-29  Mike Frysinger  <vapier@gentoo.org>
3012
3013         * common/linux-ptrace.h (PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
3014         PTRACE_GETFDPIC_INTERP): Define.
3015
3016 2011-09-28  Yao Qi  <yao@codesourcery.com>
3017
3018         * symfile.c (add_symbol_file_command): Update message on usage.
3019
3020 2011-09-28  Paul Koning  <paul_koning@dell.com>
3021
3022         * python/py-type.c (make_fielditem, typy_field_names, typy_items)
3023         (typy_length, typy_get, typy_has_key, typy_make_iter)
3024         (typy_iterkeys, typy_iteritems, typy_itervalues, typy_iter)
3025         (typy_iterator_iter, typy_iterator_iternext)
3026         (typy_iterator_dealloc): New functions to implement standard
3027         Python mapping methods on gdb.Type object.
3028         (gdb.TypeIterator): New Python type.
3029         * python/python-internal.h (gdbpy_iter_kind): New enum.
3030
3031 2011-09-28  David S. Miller  <davem@davemloft.net>
3032
3033         * sparc-tdep.h (SPARC_F2_REGNUM, SPARC_F3_REGNUM, SPARC_F4_REGNUM,
3034         SPARC_F5_REGNUM, SPARC_F6_REGNUM, SPARC_F7_REGNUM): New enums.
3035         * sparc-tdep.c (sparc_complex_floating_p): New function.
3036         (sparc32_store_arguments): Handle complex floats.
3037         (sparc32_extract_return_value): Likewise.
3038         (sparc32_store_return_value): Likewise.
3039         (sparc32_stabs_argument_has_addr): Likewise.
3040         * sparc64-tdep.c (sparc64_complex_floating_p): New function.
3041         (sparc64_store_floating_fields): Handle complex floats.
3042         (sparc64_store_arguments): Likewise.
3043         (sparc64_store_return_value): Likewise.
3044
3045 2011-09-28  Eli Zaretskii  <eliz@gnu.org>
3046
3047         * windows-nat.c (env_sort) [!__CYGWIN__]: Function restored from
3048         before the change on 2006-12-09.
3049         (windows_create_inferior) [!__CYGWIN__]: Restore code that
3050         generates the environment block for CreateProcessA, modulo the
3051         Cygwin-specific parts that are not needed here.
3052
3053 2011-09-27  Tristan Gingold  <gingold@adacore.com>
3054
3055         * target.h (enum target_object): Add TARGET_OBJECT_DARWIN_DYLD_INFO.
3056         * solib-darwin.c (DYLD_VERSION_MAX): Update number.
3057         (darwin_solib_get_all_image_info_addr_at_init): New function.
3058         (darwin_solib_read_all_image_info_addr): Likewise.
3059         (darwin_solib_create_inferior_hook): Use the above two functions.
3060         * darwin-nat.c (darwin_execvp): Renames retval to res.
3061         (darwin_read_write_inferior): Update comment.
3062         (darwin_read_dyld_info): New function.
3063         (darwin_xfer_partial): Handle DYLD_INFO.
3064
3065 2011-09-27  Stan Shebs  <stan@codesourcery.com>
3066
3067         Add return address collection for tracepoints.
3068         * tracepoint.c (encode_actions_1): Add case for $_ret.
3069         (validate_actionline): Check for $_ret.
3070         (trace_dump_actions): Ditto.
3071         * ax-gdb.h (gen_trace_for_return_address): Declare.
3072         * ax-gdb.c: Include arch-utils.h.
3073         (gen_trace_for_return_address): New function.
3074         (agent_command): Add return address special case.
3075         * amd64-tdep.c: Include ax.h and ax-gdb.h.
3076         (amd64_gen_return_address): New function.
3077         (amd64_init_abi): Call it.
3078         * i386-tdep.c: Include ax.h and ax-gdb.h.
3079         (i386_gen_return_address): New function.
3080         (i386_init_abi): Call it.
3081         * arch-utils.h (default_gen_return_address): Declare.
3082         * arch-utils.c (default_gen_return_address): New function.
3083         * gdbarch.sh (gen_return_address): New method.
3084         * gdbarch.h, gdbarch.c: Regenerate.
3085
3086 2011-09-23  Joseph Myers  <joseph@codesourcery.com>
3087
3088         PR gdb/13079
3089         * i386-tdep.c (i386_frame_align): New.
3090         (i386_gdbarch_init): Use i386_frame_align.
3091
3092 2011-09-23  Yao Qi  <yao@codesourcery.com>
3093
3094         * i386-linux-nat.c (i386_linux_resume): Use read_memory_unsigned_integer
3095         to get address.
3096
3097 2011-09-22  Tristan Gingold  <gingold@adacore.com>
3098
3099         * fork-child.c (fork_inferior): Add exec_fun parameter.
3100         Call exec_fun or execvp.
3101         * inferior.h: Adjust prototype.
3102         * gnu-nat.c (gnu_create_inferior): Adjust fork_inferior call.
3103         * inf-ttrace.c (inf_ttrace_create_inferior): Ditto.
3104         * inf-ptrace.c (inf_ptrace_create_inferior): Ditto.
3105         * procfs.c (procfs_create_inferior): Ditto.
3106         * darwin-nat.c (darwin_execvp): New function.
3107         (darwin_create_inferior): Use it.
3108
3109 2011-09-22  Yao Qi  <yao@codesourcery.com>
3110
3111         * infrun.c (context_switch): Print debug message when switching to
3112         a different thread.
3113
3114 2011-09-21  Ulrich Weigand  <uweigand@de.ibm.com>
3115
3116         * s390-tdep.c (s390_function_arg_pass_by_reference): Handle
3117         complex and vector types.
3118         (s390_return_value_convention): Likewise.
3119
3120         (s390_value_from_register): Call check_typedef.
3121         (extend_simple_arg): Likewise.
3122         (alignment_of): Likewise.
3123         (s390_push_dummy_call): Likewise.
3124         (s390_return_value): Likewise.
3125
3126 2011-09-21  Joseph Myers  <joseph@codesourcery.com>
3127
3128         * event-top.c (async_disconnect): If an exception is thrown from
3129         quit_cover, call pop_all_targets.  Use TRY_CATCH instead of
3130         catch_errors.
3131         * top.c (quit_cover): Return void and take no arguments.
3132         * top.h (quit_cover): Update prototype.
3133
3134 2011-09-20  Joseph Myers  <joseph@codesourcery.com>
3135
3136         * mi/mi-main.c (mi_load_progress): Restore saved_uiout value to
3137         current_uiout, not uiout.
3138
3139 2011-09-19  Doug Evans  <dje@google.com>
3140
3141         * python/py-auto-load.c (source_section_scripts): Fix file
3142         descriptor leak.
3143         * python/python.c (source_python_script_for_objfile): Tweak comments.
3144
3145 2011-09-18  Yao Qi  <yao@codesourcery.com>
3146             Ulrich Weigand  <ulrich.weigand@linaro.org>
3147
3148         Support displaced stepping for Thumb 16-bit insns.
3149         * arm-tdep.c (THUMB_NOP) Define.
3150         (thumb_copy_unmodified_16bit): New.
3151         (thumb_copy_b, thumb_copy_bx_blx_reg): New.
3152         (thumb_copy_alu_reg): New.
3153         (arm_copy_svc): Move some common code to ...
3154         (install_svc): ... here.  New.
3155         (thumb_copy_svc): New.
3156         (install_pc_relative): New.
3157         (thumb_copy_pc_relative_16bit): New.
3158         (thumb_decode_pc_relative_16bit): New.
3159         (thumb_copy_16bit_ldr_literal): New.
3160         (thumb_copy_cbnz_cbz): New.
3161         (cleanup_pop_pc_16bit_all): New.
3162         (thumb_copy_pop_pc_16bit): New.
3163         (thumb_process_displaced_16bit_insn): New.
3164         (thumb_process_displaced_32bit_insn): New.
3165         (thumb_process_displaced_insn): process thumb instruction.
3166
3167         Support displaced stepping for Thumb 32-bit insns.
3168         * arm-tdep.c (thumb_copy_unmodified_32bit): New.
3169         (thumb2_copy_preload): New.
3170         (thumb2_copy_copro_load_store): New.
3171         (thumb2_copy_b_bl_blx): New.
3172         (thumb2_copy_alu_imm): New.
3173         (thumb2_copy_load_reg_imm): New.
3174         (thumb2_copy_load_literal): New
3175         (thumb2_copy_block_xfer): New.
3176         (thumb_32bit_copy_undef): New.
3177         (thumb_32bit_copy_unpred): New.
3178         (thumb2_decode_ext_reg_ld_st): New.
3179         (thumb2_decode_svc_copro): New.
3180         (decode_thumb_32bit_store_single_data_item): New.
3181         (thumb_copy_pc_relative_32bit): New.
3182         (thumb_decode_pc_relative_32bit): New.
3183         (decode_thumb_32bit_ld_mem_hints): New.
3184         (thumb2_copy_table_branch): New
3185         (thumb_process_displaced_32bit_insn): Process Thumb 32-bit
3186         instructions.
3187
3188 2011-09-18  Yao Qi  <yao@codesourcery.com>
3189
3190         * arm-tdep.c (install_copro_load_store): PC is set 4-byte aligned.
3191         (install_b_bl_blx): Likewise.
3192
3193 2011-09-17  Yao Qi  <yao@codesourcery.com>
3194
3195         * arm-tdep.c (install_ldr_str_ldrb_strb): Renamed to ...
3196         (install_load_store): ... this.  New.
3197         Change parameter BYTE to SIZE.
3198         (arm_copy_ldr_str_ldrb_strb): Update caller.
3199         (arm_decode_ld_st_word_ubyte): Update caller.
3200
3201 2011-09-17  Yao Qi  <yao@codesourcery.com>
3202
3203         * infrun.c (displaced_step_fixup): Move some code ...
3204         (displaced_step_restore): ... here.  New function.
3205         (handle_inferior_event): Cleanup displaced stepping state for both
3206         child and parent when get forked or vforked event.
3207         * regcache.c (get_thread_arch_aspace_regcache): New function.
3208         get_thread_arch_regcache (): Call it.
3209
3210 2011-09-16  Joel Brobecker  <brobecker@adacore.com>
3211
3212         * ada-tasks.c (print_ada_task_info): New function, merging
3213         short_task_info and info_tasks together.  Reimplement using
3214         ui-out instead of printing to stdout directly.  Move the code
3215         building and checking the task list here, instead of leaving it
3216         in info_tasks_command.
3217         (info_task): Move the code building and checking the task
3218         list here, instead of leaving it in info_tasks_command.
3219         (info_tasks_command): Delete code building and checking
3220         the task list - moved elsewhere.  Update calls to info_tasks
3221         and info_task.
3222
3223 2011-09-16  Joel Brobecker  <brobecker@adacore.com>
3224
3225         * ada-tasks.c (info_task): Delete parameter `from_tty'.
3226
3227 2011-09-16  Joel Brobecker  <brobecker@adacore.com>
3228
3229         * ada-tasks.c (info_tasks): Delete parameter `from_tty'.
3230
3231 2011-09-16  Joel Brobecker  <brobecker@adacore.com>
3232
3233         * ada-lang.h (ada_build_task_list): Remove parameter
3234         `warn_if_null'.
3235         * ada-tasks.c (ada_build_task_list): Remove parameter
3236         `warn_if_null'.  Adjust implementation and documentation.
3237         (valid_task_id, ada_get_environment_task)
3238         iterate_over_live_ada_tasks): Adjust call to ada_build_task_list.
3239         (info_tasks_command): Adjust implementation.
3240         (task_command): Likewise.
3241         * ravenscar-thread.c (ravenscar_find_new_threads): Fix call
3242         to ada_build_task_list.
3243
3244 2011-09-16  Joel Brobecker  <brobecker@adacore.com>
3245
3246         * ada-tasks.c (ada_tasks_check_symbol_table, task_list): Delete.
3247         (enum ada_known_tasks_kind, struct ada_tasks_inferior_data): New.
3248         (ada_tasks_inferior_data_handle): New static global.
3249         (get_ada_tasks_inferior_data): New function.
3250         (ada_get_task_number, get_task_number_from_id, valid_task_id)
3251         (ada_get_environment_task, iterate_over_live_ada_tasks)
3252         (add_ada_task, read_known_tasks_array, read_known_tasks_list):
3253         Adjust.
3254         (ada_set_current_inferior_known_tasks_addr): New function.
3255         (read_known_tasks, ada_build_task_list, short_task_info)
3256         (info_tasks, info_task, info_tasks_command, task_command_1)
3257         (task_command, ada_task_list_changed): Adjust.
3258         (ada_tasks_invalidate_inferior_data): New function.
3259         (ada_normal_stop_observer, ada_new_objfile_observer): Adjust.
3260         (_initialize_tasks): Set ada_tasks_inferior_data_handle.
3261         * ada-lang.h (struct inferior): Add declaration.
3262         (ada_task_list_changed): Update profile.
3263         * remote-wtx-pd.c: #include "inferior.h".
3264         (switch_to_pd_internal): Update call to ada_task_list_changed.
3265
3266 2011-09-16  Joel Brobecker  <brobecker@adacore.com>
3267
3268         * ada-tasks.c: #include "progspace.h" and "objfiles.h".
3269         (atcb_type, atcb_common_type, atcb_ll_type, atcb_call_type)
3270         (atcb_fieldno): Delete these static globals.
3271         (struct ada_tasks_pspace_data): New struct.
3272         (ada_tasks_pspace_data_handle): New static global.
3273         (get_ada_tasks_pspace_data): New function.
3274         (ada_tasks_invalidate_pspace_data): New function.
3275         (get_tcb_types_info, ptid_from_atcb_common, read_atcb)
3276         (read_known_tasks_list, ada_new_objfile_observer): Adjust.
3277         (_initialize_tasks): Create this module's per-progspace
3278         data handle.
3279
3280 2011-09-16  Joel Brobecker  <brobecker@adacore.com>
3281
3282         * ada-tasks.c (struct atcb_fieldnos): Renames struct tcb_fieldnos.
3283
3284 2011-09-16  Tristan Gingold  <gingold@adacore.com>
3285
3286         * fork-child.c (fork_inferior): Update comment.  Use alloca
3287         instead of xmalloc for argv.  Move len and shell_command
3288         declarations in the block where they are used.
3289         Only call execvp.  Factorize failure code.
3290
3291 2011-09-16  Abhijit Halder  <abhijit.k.halder@gmail.com>
3292
3293         Code cleanup.
3294         * parse.c (write_exp_elt): Change argument to pass a pointer of union
3295         `exp_element' instead of an element of the same and make the function
3296         static.
3297         (write_exp_elt_opcode, write_exp_elt_sym, write_exp_elt_block)
3298         (write_exp_elt_objfile, write_exp_elt_longcst, write_exp_elt_dblcst)
3299         (write_exp_elt_decfloatcst, write_exp_elt_type, write_exp_elt_intern):
3300         Change argument of `write_exp_elt' function call.
3301         Remove extra spaces from comments.
3302         * parser-defs.h (write_exp_elt): Remove prototype.
3303
3304 2011-09-15  Paul Koning  <paul_koning@dell.com>
3305
3306         * python/py-cmd.c (gdbpy_string_to_argv): Decrement reference
3307         count of item appended to list.
3308         * python/py-type.c (typy_fields): Likewise.
3309
3310 2011-09-15  Paul Koning  <paul_koning@dell.com>
3311
3312         * MAINTAINERS (Write After Approval): Add myself to the list.
3313
3314 2011-09-15  Kevin Pouget  <kevin.pouget@st.com>
3315
3316         PR threads/12628
3317         * linux-fork.c (checkpoint_command): Disallow checkpointing of
3318         processes with multiple threads.
3319         (inf_has_multiple_thread_cb): New function.
3320         (inf_has_multiple_threads): New function.
3321
3322 2011-09-15  Kevin Pouget  <kevin.pouget@st.com>
3323
3324         PR Python/12692 Add gdb.selected_inferior() to Python interface.
3325         * python/py-inferior.c (GdbMethods): New Python method definition.
3326
3327 2011-09-15  Kevin Pouget  <kevin.pouget@st.com>
3328
3329         Handle multiple breakpoint hits in Python interface:
3330         * python/py-bpevent.c (create_breakpoint_event_object): Rename C/Python
3331         variable to breakpoints.
3332         * python/py-stopevent.c (emit_stop_event): Return a Python tuple of
3333         bps instead of single breakpoint. Fix some space typos.
3334         * python/py-stopevent.c (create_breakpoint_event_object): Rename
3335         variable to breakpoints.
3336
3337 2011-09-15  Kevin Pouget  <kevin.pouget@st.com>
3338
3339         * breakpoint.c (describe_other_breakpoints): Do not write 'duplicate'
3340         note if the breakpoint is internal.
3341
3342 2011-09-15  Kevin Pouget  <kevin.pouget@st.com>
3343
3344         * MAINTAINERS (Write After Approval): Add myself to the list
3345
3346 2011-09-14  Pedro Alves  <pedro@codesourcery.com>
3347
3348         * infrun.c (prepare_for_detach, wait_for_inferior)
3349         (fetch_inferior_event): Don't flush the register cache.
3350         * remote.c (struct stop_reply) <regcache>: Add comment.
3351
3352 2011-09-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
3353
3354         Remove excessive DWARF expressions memory duplication.
3355         * dwarf2loc.c (per_cu_dwarf_call): Remove variable back_to and its use
3356         for block.data.
3357         (indirect_pieced_value): Remove variable result.  Remove variable
3358         back_to and its use for baton.data.
3359         (dwarf2_compile_expr_to_ax): Remove variable back_to and its use for
3360         block.data.
3361         * dwarf2read.c (dwarf2_fetch_die_location_block): Remove xmemdup.
3362         Update the function comment.
3363
3364 2011-09-13  Pedro Alves  <pedro@codesourcery.com>
3365
3366         * inferior.h (ALL_INFERIORS): New.
3367         * linux-thread-db.c (thread_db_find_new_threads_2): Remove check
3368         for a stopped thread.
3369         (thread_db_find_new_threads): Look for threads in all inferiors.
3370
3371 2011-09-13  Pedro Alves  <pedro@codesourcery.com>
3372
3373         * breakpoint.c (update_watchpoint): Handle the case of the
3374         watchpoint to update not being in the breakpoint list yet.
3375         (hw_watchpoint_use_count): New, factored out from
3376         hw_watchpoint_used_count.
3377         (hw_watchpoint_used_count): Rename to ...
3378         (hw_watchpoint_used_count_others): ... this.  Add `except'
3379         parameter.  Don't count resources of `except'.  Use
3380         hw_watchpoint_use_count.
3381
3382 2011-09-13  Pedro Alves  <pedro@codesourcery.com>
3383
3384         * gdbthread.h (enum thread_state): Moved here.
3385         (struct thread_info): Rename `executing_' field to `executing' and
3386         `state_' to `state'.
3387         * thread.c (enum thread_state): Moved to gdbthread.h.
3388         (new_thread, add_thread_silent, delete_thread_1)
3389         (any_live_thread_of_process, thread_alive, set_running)
3390         (set_running, is_thread_state, any_running, is_executing)
3391         (set_executing, finish_thread_state, print_thread_info)
3392         (do_captured_thread_select): Adjust.
3393
3394 2011-09-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
3395
3396         Fix compatibility with gcc < 4.3 and non-gcc compilers.
3397         * amd64-tdep.c (amd64_skip_xmm_prologue): Convert 0b constants.
3398
3399 2011-09-12  Pedro Alves  <pedro@codesourcery.com>
3400             Matt Rice  <ratmice@gmail.com>
3401
3402         PR gdb/13175
3403
3404         * interps.c (struct interp) <interpreter_out>: Delete field.
3405         (interp_new): Remove the data and uiout parameters and adjust.
3406         (interp_set): Only set the current_uiout from the interpreter's
3407         uiout after initializing the interpreter.  Adjust call to
3408         init_proc.
3409         (interp_ui_out): Adjust to call procs->ui_out_proc.
3410         (interp_data, interp_name): New.
3411         * interps.h (interp_init_ftype): Add `self' parameter.
3412         (interp_ui_out_ftype): New typedef.
3413         (struct interp_procs) <ui_out_proc>: New method pointer.
3414         (interp_new): Remove the data and uiout parameters.
3415         (interp_data, interp_name): Declare.
3416         * tui/tui-interp.c (tui_init): Adjust prototype.
3417         (tui_ui_out): New.
3418         (_initialize_tui_interp): Install tui_ui_out.  Don't instanciate
3419         tui_out here.  Adjust call to interp_new.
3420         * tui/tui-io.c (tui_initialize_io): Don't set current_uiout here.
3421         * cli/cli-interp.c (cli_interpreter_init): Adjust prototype.
3422         (cli_ui_out): New.
3423         (_initialize_cli_interp): Install it.  Adjust call to interp_new.
3424         * mi/mi-common.h (struct mi_interp) <uiout>: New field.
3425         * mi/mi-interp.c (mi_interpreter_init): Adjust prototype.
3426         Initialize mi->uiout depending on the mi_version as extracted from
3427         the interpreter's name.
3428         (mi_ui_out): New.
3429         (_initialize_mi_interp): Install mi_ui_out.  Adjust calls to
3430         interp_new.  Don't allocate the ui_out's of the interpreters here.
3431
3432 2011-09-12  Aleksandar Ristovski  <aristovski@qnx.com>
3433
3434         * solib.c (solib_used): New function.
3435         (update_solib_list, reload_shared_libraries_1): Check if objfile is used
3436         by another so_list object before freeing it.
3437
3438 2011-09-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
3439
3440         Code cleanup.
3441         * mi/mi-cmd-stack.c (list_args_or_locals): Use enum for the parameter
3442         values.
3443
3444 2011-09-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
3445
3446         Code cleanup.
3447         * amd64-tdep.c (amd64_skip_prologue): Move the XMM code to ...
3448         (amd64_skip_xmm_prologue): ... this new function.  Describe its
3449         parameters.  No longer use amd64_prologue_line_bug.
3450         * defs.h (producer_is_gcc_ge_4): New declaration.
3451         * dwarf2read.c (producer_is_gcc_ge_4): Move to utils.c.
3452         (process_full_comp_unit): Update its caller.  Remove
3453         amd64_prologue_line_bug initialization.
3454         * symtab.h (struct symtab): Remove field amd64_prologue_line_bug.
3455         * utils.c (producer_is_gcc_ge_4): Moved here from dwarf2read.c.
3456
3457 2011-09-09  Pedro Alves  <pedro@codesourcery.com>
3458
3459         * linux-nat.h (enum resume_kind): New.
3460         (struct lwp_info) <last_resume_kind>: New field.
3461         * linux-nat.c (linux_child_follow_fork): Set last_resume_kind to
3462         resume_stop on the new lwp.
3463         (add_lwp): Set last_resume_kind as resume_continue by default.
3464         (lin_lwp_attach_lwp): Set last_resume_kind as resume_stop.
3465         (resume_lwp): New, factored out from resume_callback.  Also check
3466         for pending status in lp->waitstatus.
3467         (resume_callback): Reimplement.
3468         (resume_clear_callback): Set last_resume_kind as resume_stop.
3469         (resume_set_callback): Set last_resume_kind as resume_continue.
3470         (linux_nat_resume, linux_handle_extended_wait): Set
3471         last_resume_kind.
3472         (running_callback): Also check lp->waitstatus for pending events.
3473         (select_singlestep_lwp_callback): Check that lp->last_resume_kind
3474         is resume_step.
3475         (stop_and_resume_callback): Don't re-resume if the core wanted the
3476         lwp stopped.  Use resume_lwp instead of resume_callback.  Avoid
3477         using an invalidated pointer.
3478         (linux_nat_filter_event): Don't discard SIGSTOPs as delayed
3479         SIGSTOPs if the core wanted the LWP to stop.
3480         (linux_nat_wait_1) Don't consume a pending SIGSTOP if the core
3481         wanted the lwp to stop.  If the core wanted the lwp to stop, and
3482         the lwp stopped with a SIGSTOP, report a TARGET_SIGNAL_0 instead
3483         of TARGET_SIGNAL_STOP.
3484         (linux_nat_stop_lwp): Don't synchronously wait for the lwp to stop
3485         here.  Instead, signal the lwp, and set the last_resume_kind to
3486         resume_stop.
3487
3488 2011-09-09  Pedro Alves  <pedro@codesourcery.com>
3489
3490         * linux-nat.c (lin_lwp_attach_lwp): Return 1 (ignore) instead of
3491         -1 (error), if the lwp exits right after attaching.
3492
3493 2011-09-08  Doug Evans  <dje@google.com>
3494
3495         * py-cmd.c: Some minor formatting fixes.
3496         (gdbpy_parse_command_name): Rename text arg to name, make const.
3497         All callers updated.
3498         * python-internal.h (gdbpy_parse_command_name): Update.
3499
3500         * cli/cli-decode.c (add_cmd): Add comment.
3501
3502 2011-09-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
3503
3504         PR breakpoints/12435
3505         * amd64-tdep.c (amd64_skip_prologue): New variables start_pc_sal,
3506         next_sal, buf, offset and xmmreg.  Advance PC if it sees the PR.
3507         * dwarf2read.c (process_full_comp_unit): Initialize
3508         amd64_prologue_line_bug.
3509         * symtab.h (struct symtab): New field amd64_prologue_line_bug.
3510
3511 2011-09-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
3512
3513         Fix TUI screen corruption.
3514         * utils.c (fputs_maybe_filtered): Replace !input_from_terminal_p by
3515         batch_flag.
3516
3517 2011-09-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
3518
3519         * findvar.c (read_var_value): Never return NULL, throw an error
3520         instead.  Update the function comment.  State symbol name in the error
3521         messages.
3522         * python/py-frame.c (frapy_read_var): Remove handling of NULL from
3523         read_var_value.
3524         * stack.c (print_frame_args): Likewise.
3525         * valops.c (value_of_variable): Likewise.
3526
3527 2011-09-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
3528
3529         * stack.c (print_frame_args): New variable except.  Wrap
3530         read_var_value and common_val_print into TRY_CATCH.
3531
3532 2011-09-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
3533
3534         * eval.c (evaluate_subexp_standard) <OP_THIS>: Update the value_of_this
3535         caller to value_of_this.
3536         * p-exp.y: Update the value_of_this caller to value_of_this_silent.
3537         Twice.
3538         * valops.c (value_of_this): Remove parameter complain and variable ret.
3539         Update function comment.  Never return NULL by this code.
3540         (value_of_this_silent): New function.
3541         * value.h (value_of_this): Remove parameter complain.
3542         (value_of_this_silent): New declaration.
3543
3544 2011-09-07  Yao Qi  <yao@codesourcery.com>
3545
3546         * gdbthread.h (struct thread_info): Remove fields
3547         `stepping_through_solib_after_catch' and
3548         `stepping_through_solib_catchpoints'.
3549         * infrun.c (init_thread_stepping_state): Update.
3550         (process_event_stop_test, currently_stepping): Update.
3551         (currently_stepping_or_nexting_callback): Update.
3552
3553 2011-09-07  Yao Qi  <yao@codesourcery.com>
3554
3555         * gdbthread.h (struct thread_info): Comment on field
3556         `step_after_step_resume_breakpoint'.
3557
3558 2011-09-07  Abhijit Halder  <abhijit.k.halder@gmail.com>
3559
3560         * remote.c (remote_console_output): Reindent.
3561
3562 2011-09-06  Luis Machado  <lgustavo@codesourcery.com>
3563
3564         * frame.c (has_stack_frames): Check for currently selected
3565         traceframe.
3566
3567 2011-09-06  Pedro Alves  <pedro@codesourcery.com>
3568
3569         * event-top.h (MAXPROMPTS, struct prompts): Delete.
3570         (set_async_annotation_level, set_async_prompt, pop_prompt)
3571         (push_prompt, new_async_prompt): Delete declarations.
3572         * top.h (get_prompt, set_prompt): Change prototype.
3573         (get_prefix, set_prefix, get_suffix, set_suffix): Delete
3574         declarations.
3575         * top.c (command_loop):
3576         (top_prompt): New global.
3577         (get_prefix, set_prefix, get_suffix, ): Delete.
3578         (get_prompt, set_prompt): Rewrite.
3579         (show_new_async_prompt): Rename to ...
3580         (show_prompt): ... this.
3581         (init_main): Adjust.  Don't handle --annotate=2 here.
3582         * event-top.c (new_async_prompt): Delete.
3583         (the_prompts): Delete.
3584         (more_to_come): Make static.
3585         (display_gdb_prompt): Use top_level_prompt() to compute the top
3586         level prompt, and don't notify the before_prompt observers
3587         directly here.  Always trick readline into not trying to display
3588         the prompt if sync_execution and displaying the primary prompt.
3589         If displaying a local/secondary prompt, always show it, even if
3590         sync_execution is set.
3591         (change_annotation_level): Delete.
3592         (top_level_prompt): New, based on change_annotation_level.
3593         (push_prompt, pop_prompt): Delete.
3594         (async_disable_stdin): No longer pushes prompt.
3595         (command_line_handler): No longer pushes or pops prompt.  If more
3596         input is expected, call display_gdb_prompt with an explicit empty
3597         prompt.
3598         (async_stop_sig): Adjust.
3599         (set_async_annotation_level, set_async_prompt): Delete.
3600         * python/python.c (before_prompt_hook): Adjust.
3601
3602 2011-09-05  Pedro Alves  <pedro@codesourcery.com>
3603
3604         PR cli/13110
3605
3606         * infrun.c (fetch_inferior_event): Check if there's a selected
3607         thread before checking if the selected thread is executing.
3608
3609 2011-09-05  Pedro Alves  <pedro@codesourcery.com>
3610
3611         * inf-loop.c (execute_command): Don't check if the current thread
3612         if running before synchronously waiting for command completion.
3613         * infrun.c (fetch_inferior_event): Handle "set exec-done-display"
3614         here.
3615         (normal_stop): Call async_enable_stdin here.
3616         * inf-loop.c (inferior_event_handler): Don't call
3617         async_enable_stdin, nor handle "set exec-done-display" here.
3618
3619 2011-09-04  Joel Brobecker  <brobecker@adacore.com>
3620
3621         GDB 7.3.1 released.
3622
3623 2011-09-04  Joel Brobecker  <brobecker@adacore.com>
3624
3625         * NEWS: Change `7.3' into `7.3.1' in `Changes since GDB 7.3'.
3626
3627 2011-09-04  Joel Brobecker  <brobecker@adacore.com>
3628
3629         * NEWS: Add entry for OpenBSD/NetBSD build failure.
3630
3631 2011-09-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3632
3633         * config/s390/s390.mh (NATDEPFILES): Add linux-procfs.o dependency.
3634
3635 2011-09-02  Matt Rice  <ratmice@gmail.com>
3636
3637         PR gdb/10720
3638         * event-top.c (cli_command_loop): Replace readline setup with
3639         direct call to display_gdb_prompt.
3640         (display_gdb_prompt): Do not call observer mechanism during
3641         synchronous execution.
3642
3643 2011-09-02  Pedro Alves  <pedro@codesourcery.com>
3644
3645         * linux-nat.c (in_pid_list_p): New.
3646         (linux_record_stopped_pid): Delete.
3647         (lin_lwp_attach_lwp): Check if PTRACE_ATTACH failed because we're
3648         already attached to the LWP.  Return an indication if so.
3649         (linux_nat_filter_event): Adjust.
3650         * linux-thread-db.c (attach_thread): Handle lin_lwp_attach_lwp
3651         returning an indication to ignore this thread.
3652
3653 2011-09-02  Pedro Alves  <pedro@codesourcery.com>
3654
3655         * top.c: Include interps.h.
3656         (execute_command): If the target can async, but the interpreter is
3657         in sync mode, synchronously wait for the command to finish before
3658         returning.
3659         (execute_command_to_string): Force the interpreter to sync mode.
3660         * infrun.c: Include interps.h.
3661         (fetch_inferior_event): Don't restore the prompt yet if the
3662         interpreter is in sync mode.
3663         * interps.c (interpreter_async): New global.
3664         * interps.h (interpreter_async): Declare.
3665         * inf-loop.c: Include interps.h.
3666         (inferior_event_handler): Don't print the language change or run
3667         breakpoint commands yet if the interpreter in is sync mode.
3668         * main.c (captured_command_loop): Flip the interpreter to async
3669         mode.
3670         * cli/cli-script.c: Include interps.h.
3671         (execute_user_command, while_command, if_command): Force the
3672         interpreter to sync mode.
3673         * python/python.c: Include interps.h.
3674         (python_command, execute_gdb_command): Force the interpreter to
3675         sync mode.
3676
3677 2011-09-02  Pedro Alves  <pedro@codesourcery.com>
3678
3679         * value.c (show_convenience): Catch errors thrown while printing
3680         each internal variable.
3681         * infrun.c (validate_siginfo_access): New function.
3682         (siginfo_value_read, siginfo_value_write): Call it.
3683
3684 2011-09-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
3685
3686         Revert:
3687         2010-05-21  Pierre Muller  <muller@ics.u-strasbg.fr>
3688         * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
3689         attribute.
3690
3691 2011-08-29  Yao Qi  <yao@codesourcery.com>
3692
3693         * solib-dsbt.c (bfd_lookup_symbol): Removed.
3694         (cmp_name): New.
3695         (enable_break2): Update caller.
3696         * solib-frv.c (bfd_lookup_symbol): Removed.
3697         (cmp_name): New.
3698         (enable_break2): Update caller.
3699         * solib-pa64.c (bfd_lookup_symbol): Removed.
3700         (cmp_name): New.
3701         * solib-svr4.c (bfd_lookup_symbol): Removed.
3702         (cmp_name_and_sec_flags): New.
3703         (enable_break): Update caller.
3704         * solib.c (gdb_bfd_lookup_symbol_from_symtab): New.
3705         (gdb_bfd_lookup_symbol_from_dyn_symtab): New.
3706         (gdb_bfd_lookup_symbol): New.
3707         * solib.h: Functions declarations.
3708
3709 2011-08-29  Yao Qi  <yao@codesourcery.com>
3710
3711         * Makefile.in (ALL_TARGET_OBS): Add tic6x-tdep.o tic6x-linux-tdep.o
3712         and solib-dsbt.o.
3713
3714 2011-08-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
3715
3716         Fix TUI stepi on code without symbols.
3717         * tui/tui-stack.c (tui_show_frame_info): Remove error, set LOW for
3718         current PC instead.
3719
3720 2011-08-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
3721
3722         Code cleanup.
3723         * mi/mi-cmd-stack.c (list_args_or_locals): Remove stb initialization
3724         and the static keyword.
3725         * mi/mi-cmd-target.c (mi_cmd_target_file_get, mi_cmd_target_file_put):
3726         Make prefix an array.
3727         * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
3728         * mi/mi-main.c (get_register): Remove stb initialization and the static
3729         keyword.
3730
3731 2011-08-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
3732
3733         Code cleanup - make mi_opt const.
3734         * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Make
3735         opts const.
3736         * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
3737         * mi/mi-cmd-env.c (mi_cmd_env_path): Likewise.
3738         (mi_cmd_env_dir): Likewise.
3739         * mi/mi-cmd-target.c (mi_cmd_target_file_get): Likewise.
3740         (mi_cmd_target_file_put): Likewise.
3741         * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
3742         * mi/mi-cmd-var.c (mi_cmd_var_evaluate_expression): Likewise.
3743         * mi/mi-getopt.c (mi_getopt): Make opts and opt const.
3744         (mi_valid_noargs): Make opts const.
3745         * mi/mi-getopt.h (mi_getopt): Make opts and opt const.
3746         * mi/mi-main.c (mi_cmd_list_thread_groups): Make opts const.
3747         (mi_cmd_data_read_memory): Likewise.
3748         (mi_cmd_data_read_memory_bytes): Likewise.
3749         (mi_cmd_data_write_memory): Likewise.
3750
3751 2011-08-26  Matt Rice  <ratmice@gmail.com>
3752
3753         * solib-sunos.c (allocate_rt_common_objfile): Add missing arguments to
3754         bcache_xmalloc,  replace bcache_xmalloc with call to
3755         psymbol_bcache_init for psymbol_cache.
3756         * symfile.c (reread_symbols): Remove extra calls to bcache_xmalloc.
3757
3758 2011-08-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
3759
3760         * inf-loop.c (inferior_event_handler): Add exception_print in
3761         INF_EXEC_COMPLETE.
3762
3763 2011-08-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
3764
3765         * breakpoint.c (bpstat_do_actions): New variable cleanup_if_error, call
3766         make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3767         * defs.h (make_bpstat_clear_actions_cleanup): New declaration.
3768         * exceptions.c (throw_exception): Remove the bpstat_clear_actions call.
3769         * inf-loop.c (inferior_event_handler): New variable cleanup_if_error,
3770         call make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3771         Call bpstat_clear_actions for failed fetch_inferior_event_wrapper.
3772         * infrun.c (fetch_inferior_event): Call
3773         make_bpstat_clear_actions_cleanup.
3774         * top.c (execute_command): New variable cleanup_if_error, call
3775         make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3776         * utils.c (do_bpstat_clear_actions_cleanup)
3777         (make_bpstat_clear_actions_cleanup): New functions.
3778
3779 2011-08-26  Pedro Alves  <pedro@codesourcery.com>
3780
3781         * linux-nat.c (linux_child_follow_fork): Don't set lp->resumed on
3782         either the parent or the child forks.  Rename a couple locals.
3783
3784 2011-08-26  Pedro Alves  <pedro@codesourcery.com>
3785
3786         * linux-nat.c (wait_lwp): Avoid assuming errno is preserved by a
3787         library call.  Avoid reading the `status' local if all waitpid
3788         calls failed.
3789
3790 2011-08-26  Pedro Alves  <pedro@codesourcery.com>
3791
3792         * common/linux-osdata.c (get_cores_used_by_process): Don't assume
3793         opening /proc/PID/task always succeeds.
3794
3795 2011-08-26  Aleksandar Ristovski <aristovski@qnx.com>
3796
3797         * linespec.c (symtab_from_filename): Check for the end of string.
3798
3799 2011-08-26  Marc Khouzam  <marc.khouzam@ericsson.com>
3800
3801         PR mi/11912
3802         * varobj.c (cplus_describe_child): Add the keyword
3803         'class' to the output of the method when dealing 
3804         with a cast to a base class.
3805
3806 2011-08-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
3807
3808         No functionality change.
3809         * breakpoint.c (bpstat_clear_actions): Remove the BS parameter, make
3810         function comment a reference, new variables tp and bs, move here code
3811         from throw_exception.
3812         * breakpoint.h (bpstat_clear_actions): Remove the BS parameter,
3813         describe it in the comment.
3814         * exceptions.c (throw_exception): Remove variable tp, move the code for
3815         bpstat_clear_actions to bpstat_clear_actions.
3816
3817 2011-08-24  Luis Machado  <lgustavo@codesourcery.com>
3818
3819         * linux-nat.h (linux_proc_get_tgid): Remove declaration.
3820         * linux-nat.c: Include linux-procfs.h.
3821         (linux_proc_get_tgid): Move to ...
3822         * common/linux-procfs.c: ... here. New file.
3823         * common/linux-procfs.h: New file.
3824         * linux-thread-db.c: Include linux-procfs.h.
3825         * Makefile.in: Update dependencies.
3826         * config/alpha/alpha-linux.mh: Add linux-procfs.o dependency.
3827         * config/arm/linux.mh: Likewise.
3828         * config/i386/linux.mh: Likewise.
3829         * config/i386/linux64.mh: Likewise.
3830         * config/ia64/linux.mh: Likewise.
3831         * config/m32r/linux.mh: Likewise.
3832         * config/m68k/linux.mh: Likewise.
3833         * config/mips/linux.mh: Likewise.
3834         * config/pa/linux.mh: Likewise.
3835         * config/pa/linux.mh: Likewise.
3836         * config/powerpc/linux.mh: Likewise.
3837         * config/powerpc/ppc64-linux.mh: Likewise.
3838         * config/powerpc/spu-linux.mh: Likewise.
3839         * config/sparc/linux.mh: Likewise.
3840         * config/sparc/linux64.mh: Likewise.
3841         * config/xtensa/linux.mh: Likewise.
3842
3843 2011-08-24  Hui Zhu  <teawater@gmail.com>
3844
3845         * tracepoint.c (cond_string_is_same): New function.
3846         (find_matching_tracepoint): Add condition check
3847         by cond_string_is_same.
3848
3849 2011-08-23  Josh Matthews  <josh@joshmatthews.net>
3850
3851         Fix build error in Darwin port.
3852         * darwin-nat-info.c (darwin_debug_regions_recurse): New variable uiout.
3853
3854 2011-08-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
3855
3856         Code cleanup.
3857         * breakpoint.c (bpstat_clear_actions): Remove clearing of commands_left.
3858         (command_line_is_silent): New function.
3859         (bpstat_do_actions_1): No longer use commands_left, use
3860         command_line_is_silent for commands.
3861         (bpstat_alloc): Remove clearing of commands_left.
3862         (bpstat_stop_status): Remove initialization of commands_left, use
3863         command_line_is_silent.
3864         * breakpoint.h (struct bpstats): Remove commands_left.
3865
3866 2011-08-18  Keith Seitz  <keiths@redhat.com>
3867
3868         PR c++/12266
3869         * cp-name-parser.y (struct demangle_info): Remove unused
3870         member PREV.
3871         (d_grab): Likewise.
3872         (allocate_info): Change return type to struct demangle_info *.
3873         Always allocate a new demangle_info.
3874         Remove unused PREV pointer.
3875         (cp_new_demangle_parse_info): New function.
3876         (cp_demangled_name_parse_free): New function.
3877         (do_demangled_name_parse_free_cleanup): New function.
3878         (make_cleanup_cp_demangled_name_parse_free): New function.
3879         (cp_demangled_name_to_comp): Change return type to
3880         struct demangle_parse_info *.
3881         Allocate a new storage for each call.
3882         (main): Update usage for cp_demangled_name_to_comp
3883         API change.
3884         * cp-support.h (struct demangle_parse_info): New structure.
3885         (cp_demangled_name_to_comp): Update API change for
3886         return type.
3887         (cp_new_demangle_parse_info): Declare.
3888         (make_cleanup_cp_demangled_name_parse_free): New declaration.
3889         (cp_demangled_name_parse_free): Declare.
3890         * cp-support.c (cp_canonicalize_string): Update API
3891         change for cp_demangled_name_to_comp.
3892         (mangled_name_to_comp): Likewise.
3893         Return struct demangle_parse_info, too.
3894         (cp_class_name_from_physname): Update mangled_name_to_comp
3895         API change.
3896         (method_name_from_physname): Likewise.
3897         (cp_func_name): Update API change for cp_demangled_name_to_comp.
3898         (cp_remove_params): Likewise.
3899         * python/py-type.c (typy_legacy_template_argument): Likewise.
3900
3901         * cp-support.h (cp_canonicalize_string_no_typedefs): Declare.
3902         (cp_merge_demangle_parse_infos): Declare.
3903         * cp-support.c (ignore_typedefs): New file global.
3904         (copy_string_to_obstack): New function.
3905         (inspect_type): New function.
3906         (replace_typedefs): New function.
3907         (replace_typedefs_qualified_name): New function.
3908         (cp_canonicalize_string_no_typedefs): New function.
3909         * cp-name-parser.y (cp_merge_demangle_parse_infos): New function.
3910         (cp_new_demangle__parse_info): Allocate and initialize the obstack.
3911         * linespec.c (find_methods): Use cp_canonicalize_string_no_typedefs
3912         instead of cp_canonicalize_string.
3913         (find_method): Likewise.
3914         (decode_compound): Before looking up the name, call
3915         cp_canonicalize_string_no_typedefs.
3916         (decode_variable): Likewise.
3917
3918 2011-08-17  Phil Muldoon  <pmuldoon@redhat.com>
3919             Tom Tromey  <tromey@redhat.com>
3920             Matt Rice <ratmice@gmail.com>
3921
3922         * python/lib/gdb/prompt.py: New file.
3923         * python/lib/gdb/command/prompt.py: New file.
3924         * NEWS: Document set extended-prompt and gdb.prompt library
3925
3926 2011-08-16  Yao Qi  <yao@codesourcery.com>
3927
3928         * tic6x-linux-tdep.c: Move const arrays definition from here...
3929         * tic6x-tdep.c: to here ...
3930
3931 2011-08-14  Yao Qi  <yao@codesourcery.com>
3932
3933         * NEWS: New port to Texas Instruments TMS320C6x.
3934
3935 2011-08-14  Andrew Jenner  <andrew@codesourcery.com>
3936             Bernd Schmidt  <bernds@codesourcery.com>
3937             Yao Qi  <yao@codesourcery.com>
3938
3939         * configure.tgt: Handle tic6x-*-*linux and tic6x-*-*.
3940         * solib-dsbt.c: New file.  Support DSBT shared object.
3941         * tic6x-linux-tdep.c: New file.
3942         * tic6x-tdep.c: New file.
3943         * tic6x-tdep.h: New file.
3944
3945 2011-08-14  Andrew Stubbs <ams@codesourcery.com>
3946             Yao Qi  <yao@codesourcery.com>
3947
3948         * remote.c (PACKET_qXfer_fdpic): New enum value.
3949         (remote_protocol_features): Add qXfer:fdpic:read packet.
3950         (remote_xfer_partial): Support TARGET_OBJECT_FDPIC.
3951         (_initialize_remote): Add set/show remote read-fdpic-loadmap command.
3952         * target.h (enum target_object): Add TARGET_OBJECT_FDPIC.
3953
3954 2011-08-14  Yao Qi  <yao@codesourcery.com>
3955
3956         Target description for tic6x.
3957         * features/Makefile (WHICH): Add tic6x-c64xp tic6x-c64x tic6x-c62x
3958         tic6x-c64xp-linux tic6x-c64x-linux and tic6x-c62x-linux.
3959         * features/tic6x-c6xp.xml, features/tic6x-core.xml: New.
3960         * features/tic6x-gp.xml, features/tic6x-c62x.xml: New.
3961         * features/tic6x-c64x.xml, features/tic6x-c64xp.xml: New.
3962         * features/tic6x-c62x-linux.xml, features/tic6x-c64x-linux.xml: New.
3963         * features/tic6x-c64xp-linux.xml: New.
3964         * features/tic6x-c64xp.c, features/tic6x-c64x.c: Generated.
3965         * features/tic6x-c62x.c, features/tic6x-c64xp-linux.c: Generated.
3966         * features/tic6x-c64x-linux.c, features/tic6x-c62x-linux.c: Generated.
3967         * regformats/tic6x-c62x.dat, regformats/tic6x-c64x.dat: Generated.
3968         * regformats/tic6x-c64xp.dat,
3969         regformats/tic6x-c62x-linux.dat: Generated.
3970         * regformats/tic6x-c64x-linux.dat,
3971         regformats/tic6x-c64xp-linux.dat: Generated.
3972         * config/djgpp/fnchange.lst: Add features/tic6x-*.xml and
3973         features/tic6x-*.c files.
3974         Add regformats/tic6x-*.dat files.
3975
3976 2011-08-12  Doug Evans  <dje@google.com>
3977
3978         * NEWS: Mention new "type" attribute of python gdb.Symbol objects.
3979         * python/py-symbol.c (sympy_get_type): New function.
3980         (symbol_object_getset): Add "type".
3981
3982 2011-08-12  Pedro Alves  <pedro@codesourcery.com>
3983
3984         PR tui/13073
3985
3986         * tui/tui-regs.c (tui_show_register_group): Skip registers with an
3987         empty name.
3988         (tui_show_register_group): Don't store a byte buffer in the data
3989         element's value.
3990         (tui_register_format): Skip registers with an empty name.
3991         (tui_get_register): Store a struct value in the data element's
3992         value field instead of a byte buffer holding the raw register
3993         contents.  Account for optimized-out and unavailable registers
3994         when comparing register contents.
3995
3996 2011-08-09  Pedro Alves  <pedro@codesourcery.com>
3997
3998         * printcmd.c (current_display_number): Update comment.
3999         (disable_current_display_cleanup): Delete.
4000         (do_one_display): Use make_cleanup_restore_integer.  Gracefully
4001         catch errors thrown while evaluating and printing the display.
4002
4003 2011-08-09  Tom Tromey  <tromey@redhat.com>
4004
4005         * mi/mi-cmd-break.c (mi_cmd_break_passcount): Fix typo.
4006
4007 2011-08-09  Pedro Alves  <pedro@codesourcery.com>
4008
4009         * elfread.c (elf_symtab_read): Rework comments.
4010         * maint.c (maintenance_command): Ditto.
4011         * somread.c (som_symtab_read): Ditto.
4012         * solib.c (solib_find, solib_map_sections, update_solib_list)
4013         (solib_add, info_sharedlibrary_command, solib_name_from_address)
4014         (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
4015         (sharedlibrary_command, no_shared_libraries): Ditto.
4016         * solib-irix.c (locate_base, disable_break, enable_break)
4017         (irix_solib_create_inferior_hook, irix_solib_create_inferior_hook)
4018         (irix_current_sos, irix_open_symbol_file_object)
4019         (irix_special_symbol_handling): Ditto.
4020         * solib-sunos.c (locate_base, first_link_map_member)
4021         (sunos_current_sos, disable_break, enable_break)
4022         (sunos_special_symbol_handling, sunos_solib_create_inferior_hook):
4023         Ditto.
4024         * solib-svr4.c (bfd_lookup_symbol, elf_locate_base, locate_base)
4025         (open_symbol_file_object, svr4_current_sos, enable_break)
4026         (svr4_special_symbol_handling, svr4_solib_create_inferior_hook):
4027         Ditto.
4028         * solib-frv.c (bfd_lookup_symbol, open_symbol_file_object)
4029         (frv_current_sos, enable_break, frv_special_symbol_handling)
4030         (frv_solib_create_inferior_hook): Ditto.
4031         * solist.h (struct target_so_ops): Extend the comments of the
4032         special_symbol_handling, current_sos and open_symbol_file_object
4033         methods.
4034
4035 2011-08-09  Phil Muldoon  <pmuldoon@redhat.com>
4036
4037         * python/lib/gdb/__init__.py: Auto-load files in command and
4038         function directories.
4039         * python/python.c (finish_python_initialization): Use
4040         os.path.join.
4041         * python/lib/gdb/command/pretty_printers.py: Self register
4042         command.
4043         * NEWS: Document auto-loading.
4044
4045 2011-08-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
4046
4047         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>
4048         (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_LITERAL>: New variable
4049         objfile_gdbarch.  Fix BFD_ENDIAN_BIG case.
4050
4051 2011-08-08  Tom Tromey  <tromey@redhat.com>
4052
4053         * breakpoint.c (clean_up_filters): Remove.
4054         (catch_syscall_split_args): Use VEC_cleanup.
4055
4056 2011-08-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
4057
4058         * cp-name-parser.y (xfree): Wrap the name free by CONCAT2.
4059         (main): Uncomment "Demangling error\n".
4060
4061 2011-08-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
4062
4063         * solib-target.c (segment_attributes): Make them static.
4064         (section_attributes, library_children, library_attributes): Likewise.
4065         (library_list_children, library_list_attributes): Likesise.
4066         (library_list_elements): Likewise.
4067
4068 2011-08-05  Pedro Alves  <pedro@codesourcery.com>
4069
4070         * exceptions.c (throw_exception): Don't disable the current
4071         display.
4072         * printcmd.c (disable_current_display_cleanup): New function.
4073         (do_one_display): Install a cleanup to disable the current display
4074         if doing the display throws.
4075
4076 2011-08-05  Eli Zaretskii  <eliz@gnu.org>
4077
4078         * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the
4079         initialization of the tp_new member to the corresponding
4080         gdbpy_initialize_* function.
4081         * python/py-cmd.c (gdbpy_initialize_commands): Likewise.
4082         * python/py-frame.c (gdbpy_initialize_frames): Likewise.
4083         * python/py-function.c (gdbpy_initialize_functions): Likewise.
4084         * python/py-inferior.c (gdbpy_initialize_inferior): Likewise.
4085         * python/py-param.c (gdbpy_initialize_parameters): Likewise.
4086
4087 2011-08-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
4088
4089         * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
4090         (info_spu_mailbox_list, info_spu_mailbox_command, info_spu_dma_cmdlist)
4091         (info_spu_dma_command, info_spu_proxydma_command): Rename uiout
4092         references to current_uiout.
4093
4094 2011-08-04  Pedro Alves  <pedro@codesourcery.com>
4095
4096         * event-loop.c (gdb_do_one_event): Remove `data' parameter.
4097         (start_event_loop): Use TRY_CATCH instead of catch_errors.
4098         * event-loop.h (gdb_do_one_event): Remove `data' parameter.
4099         * top.c (gdb_readline_wrapper): Adjust.
4100         * tui/tui-interp.c (tui_command_loop):
4101         (_initialize_tui_interp): Don't install it.
4102
4103 2011-08-04  Pedro Alves  <pedro@codesourcery.com>
4104
4105         * ui-out.h (uiout): Rename to ...
4106         (current_uiout): ... this.
4107         * ui-out.c (uiout): Rename to ...
4108         (current_uiout): ... this.
4109         * ada-lang.c (print_it_exception, print_one_exception)
4110         (print_mention_exception): Adjust.
4111         * breakpoint.c (watchpoint_check): Adjust.
4112         (print_breakpoint_location, print_one_breakpoint, breakpoint_1)
4113         (default_collect_info, watchpoints_info, print_one_catch_fork)
4114         (print_one_catch_vfork, print_one_catch_syscall)
4115         (print_one_catch_exec, mention, print_it_ranged_breakpoint)
4116         (print_one_ranged_breakpoint, print_mention_ranged_breakpoint)
4117         (print_it_watchpoint, print_mention_watchpoint)
4118         (print_it_masked_watchpoint, print_mention_masked_watchpoint)
4119         (print_it_exception_catchpoint, print_one_exception_catchpoint)
4120         (print_mention_exception_catchpoint, say_where, bkpt_print_it)
4121         (bkpt_print_mention, momentary_bkpt_print_it)
4122         (tracepoint_print_mention, update_static_tracepoint)
4123         (tracepoints_info, save_breakpoints): Adjust.
4124         * cli-out.c (field_separator): Adjust.
4125         * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust.
4126         * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust.
4127         * frame.c (get_current_frame): Adjust.
4128         * infcmd.c (run_command_1, print_return_value): Adjust.
4129         * inferior.c (inferior_command, info_inferiors_command): Adjust.
4130         * infrun.c (print_end_stepping_range_reason): Adjust.
4131         (print_signal_exited_reason, print_exited_reason): Adjust.
4132         (print_signal_received_reason, print_no_history_reason): Adjust.
4133         * interps.c (interp_set): Adjust.
4134         * osdata.c (info_osdata_command): Adjust.
4135         * progspace.c (maintenance_info_program_spaces_command): Adjust.
4136         * remote-fileio.c (remote_fileio_request): Adjust.
4137         * remote.c (show_remote_cmd): Adjust.
4138         * solib.c (info_sharedlibrary_command): Adjust.
4139         * source.c (print_source_lines_base): Adjust.
4140         * stack.c (print_stack_frame): Adjust.
4141         (do_gdb_disassembly, print_frame_info, print_frame): Adjust.
4142         * symfile-mem.c (add_vsyscall_page): Adjust.
4143         * symfile.c (load_progress, generic_load)
4144         (print_transfer_performance): Adjust.
4145         * thread.c (info_threads_command, restore_selected_frame)
4146         (thread_command): Adjust.
4147         * top.c (make_cleanup_restore_ui_file): Adjust.
4148         * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1)
4149         (print_one_static_tracepoint_marker): Adjust.
4150         * cli/cli-cmds.c (print_disassembly): Adjust.
4151         * cli/cli-decode.c (print_doc_line): Adjust.
4152         * cli/cli-interp.c (safe_execute_command): Adjust.
4153         * cli/cli-logging.c (set_logging_redirect, pop_output_files)
4154         (handle_redirections): Adjust.
4155         * cli/cli-script.c (show_user_1): Adjust.
4156         * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust.
4157         * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
4158         * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust.
4159         * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path)
4160         (mi_cmd_env_dir): Adjust.
4161         * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
4162         (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust.
4163         * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
4164         (mi_cmd_stack_info_depth, mi_cmd_stack_list_args)
4165         (list_args_or_locals): Adjust.
4166         * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
4167         (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen)
4168         (mi_cmd_var_show_format, mi_cmd_var_info_num_children)
4169         (mi_cmd_var_list_children, mi_cmd_var_info_type)
4170         (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression)
4171         (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression)
4172         (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust.
4173         * mi/mi-interp.c (mi_on_normal_stop): Adjust.
4174         * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select)
4175         (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior)
4176         (list_available_thread_groups, mi_cmd_list_thread_groups)
4177         (mi_cmd_data_list_register_names)
4178         (mi_cmd_data_list_changed_registers)
4179         (mi_cmd_data_list_register_values, get_register)
4180         (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
4181         (mi_cmd_data_read_memory_bytes, mi_cmd_list_features)
4182         (mi_cmd_list_target_features, mi_cmd_add_inferior)
4183         (mi_execute_command, mi_load_progress): Adjust.
4184         * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust.
4185         * python/py-auto-load.c (print_script, info_auto_load_scripts):
4186         Adjust.
4187         * python/py-breakpoint.c (bppy_get_commands): Adjust.
4188         * tui/tui-interp.c (tui_command_loop): Adjust.
4189         * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust.
4190
4191 2011-08-04  Pedro Alves  <pedro@codesourcery.com>
4192
4193         * exceptions.c (struct catcher): Remove saved_uiout field.
4194         (exceptions_state_mc_init): Remove the `func_uiout' parameter, and
4195         no longer save/resvore the global ui_out builder.
4196         (catch_exceptions_with_msg): Save/override/restore the global
4197         ui_out builder manually instead of relying on TRY_CATCH to do it.
4198         (catch_errors): Save/restore the global ui_out builder manually
4199         instead of relying on TRY_CATCH to do it.
4200         * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout'
4201         parameter.
4202         (TRY_CATCH): Adjust.
4203         * cli/cli-interp.c (safe_execute_command): Save/override/restore
4204         the global ui_out builder manually instead of relying on TRY_CATCH
4205         to do it.
4206
4207 2011-08-03  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
4208
4209         * breakpoint.c (update_global_location_list): Ensure
4210         invariant 'first loc marked not duplicated and inserted,
4211         following locs marked duplicated/not inserted' is respected
4212         for multiple locations at the same address.
4213         (unduplicated_should_be_inserted) New function.
4214         (swap_insertion) New function.
4215
4216 2011-08-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
4217
4218         * stack.c (print_frame_arguments_choices): Comment typo fix.
4219
4220 2011-08-01  Thiago Jung Bauermann  <bauerman@br.ibm.com>
4221
4222         Revert:
4223         2011-07-31  Thiago Jung Bauermann  <bauerman@br.ibm.com>
4224         * breakpoint.c (insert_bp_location): Remove disabled_breaks
4225         argument.  Update callers.
4226
4227 2011-08-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
4228
4229         PR gdb/13045
4230         * doublest.c (convert_doublest_to_floatformat): Pass correct
4231         mantissa length to put_field.
4232
4233 2011-08-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
4234
4235         * stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the
4236         exception_print code path.
4237         (backtrace_command): Remove variable e.  Protect arg by make_cleanup in
4238         advance.  Simplify memset.  Remove TRY_CATCH.  Remove explicit xfree.
4239         (backtrace_full_command):  Remove variable e.  Remove TRY_CATCH.
4240
4241 2011-08-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
4242
4243         Code cleanup.
4244         * stack.c (struct print_stack_frame_args, print_stack_frame_stub):
4245         Remove, merge them into ...
4246         (print_stack_frame): ... here with a TRY_CATCH.  New variable e, remove
4247         variable args and its initialization.
4248         (struct print_args_args, print_args_stub): Remove, merge them into
4249         print_frame.
4250         (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge
4251         them into ...
4252         (do_gdb_disassembly): ... here.  Remove variable args and its
4253         initialization.
4254         (print_frame): Remove variable args and its initialization, new
4255         variable gdbarch and numargs (from print_args_stub), inline here
4256         print_args_stub with a TRY_CATCH.
4257         (struct backtrace_command_args, backtrace_command_stub): Remove, merge
4258         them into ...
4259         (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH.
4260         New variable e, remove variable btargs and its initialization.
4261
4262 2011-08-01  Tristan Gingold  <gingold@adacore.com>
4263
4264         * darwin-nat.c (darwin_decode_exception_message): Adjust assertion.
4265
4266 2011-07-31  Thiago Jung Bauermann  <bauerman@br.ibm.com>
4267
4268         * breakpoint.c (insert_bp_location): Document return value.
4269         (insert_breakpoint_locations): Fix documentation.
4270         (remove_breakpoints): Add documentation.
4271
4272 2011-07-31  Thiago Jung Bauermann  <bauerman@br.ibm.com>
4273
4274         * breakpoint.c (insert_bp_location): Remove disabled_breaks
4275         argument.  Update callers.
4276
4277 2011-07-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
4278
4279         * stack.c (print_frame_info): Comment typo fix.
4280
4281 2011-07-29  Sterling Augustine  <saugustine@google.com>
4282
4283         * MAINTAINERS (Write After Approval): Add myself to the list.
4284
4285 2011-07-29  Tom Tromey  <tromey@redhat.com>
4286
4287         * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O.
4288         (library_list_start_segment): Update.
4289         (library_list_start_section): Update.
4290
4291 2011-07-28  Phil Muldoon  <pmuldoon@redhat.com>
4292
4293         * varobj.c (value_get_print_value): Move hint check later into the
4294         function.  Comment function.  Free thevalue before reusing it.
4295
4296 2011-07-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
4297             Pedro Alves  <pedro@codesourcery.com>
4298
4299         * eval.c (evaluate_subexp_standard): Remove not_lval from all calls of
4300         value_one.
4301         * valops.c (value_one): Remove parameter lv.  Do not pass it to itself.
4302         Assert the result kind.
4303         * value.h (value_one): Remove parameter lv.
4304
4305 2011-07-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
4306
4307         Fix crash on lval_computed values.
4308         * valops.c (value_zero): Use not_lval for lval_computed.
4309
4310 2011-07-27  Tom Tromey  <tromey@redhat.com>
4311
4312         * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for
4313         gdb_assert.h, gdb_locale.h, gdb_dirent.h.
4314
4315 2011-07-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
4316
4317         * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and
4318         "ptype" by their typedefs difference.
4319
4320 2011-07-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
4321
4322         * dwarf2expr.c (ctx_no_read_reg): New function.
4323         * dwarf2expr.h (ctx_no_read_reg): New declaration.
4324         * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
4325         (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
4326         (decode_locdesc): Replace by a caller of dwarf_expr_eval.
4327
4328 2011-07-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
4329
4330         * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc)
4331         (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other
4332         file.
4333         (dwarf2_frame_ctx_funcs): Reference the renamed functions.
4334         * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
4335         (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
4336         (ctx_no_get_base_type): Move the functions here.
4337         * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
4338         (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
4339         (ctx_no_get_base_type): New declarations.
4340
4341 2011-07-27  Tom Tromey  <tromey@redhat.com>
4342
4343         * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
4344         entries.
4345         * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field.
4346         * dwarf2read.c (dwarf2_elf_names): Add sentinel entry.
4347
4348 2011-07-26  Sterling Augustine  <saugustine@google.com>
4349
4350         * cli/cli-dump.c (dump_binary_file): Change parameter type to
4351         ULONGEST.
4352         (dump_bfd_file): Likewise.
4353
4354 2011-07-26  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
4355
4356         * remote.c (remote_region_ok_for_hw_watchpoint): New function.
4357         (remote_hw_watchpoint_length_limit): New variable.
4358         (_initialize_remote) add set,show cmds for this new variable.
4359         * gdb.texinfo: document these new commands.
4360         * NEWS: Mention these new commands.
4361
4362 2011-07-26  Pedro Alves  <pedro@codesourcery.com>
4363
4364         * breakpoint.c (works_in_software_mode_watchpoint): Also return
4365         true for software watchpoints.
4366
4367 2011-07-26  Joel Brobecker  <brobecker@adacore.com>
4368
4369         GDB 7.3 released.
4370
4371 2011-07-26  Tom Tromey  <tromey@redhat.com>
4372
4373         * symfile.h (struct dwarf2_debug_sections) <macro>: New field.
4374         * dwarf2read.c (read_indirect_string_at_offset): New function.
4375         (read_indirect_string): Use it.
4376         (dwarf_decode_macro_bytes): New function, taken from
4377         dwarf_decode_macros.  Handle DW_MACRO_GNU_*.
4378         (dwarf_decode_macros): Use it.  handle DW_MACRO_GNU_*.
4379         (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode):
4380         New functions.
4381         (struct dwarf2_per_objfile) <macro>: New field.
4382         (dwarf2_elf_names): Add .debug_macro.
4383         (dwarf2_macros_too_long_complaint): Add 'section' argument.
4384         (dwarf2_locate_sections): Handle new section.
4385         (read_file_scope): Handle DW_AT_GNU_macros.
4386         (dwarf2_per_objfile_free): Unmap the .debug_macro section.
4387
4388 2011-07-26  Paul Pluzhnikov  <ppluzhnikov@google.com>
4389
4390         * NEWS: Mention dcache configuration.
4391         * dcache.c (dcache_set_list, dcache_show_list): New variables.
4392         (dcache_size, dcache_line_size): New variables.
4393         (LINE_SIZE_MASK, XFORM, MASK): Adjust.
4394         (struct dcache_block): Make it expandable.
4395         (struct dcache_struct): New field.
4396         (dcache_invalidate): Discard freelist upon dcache_line_size changes.
4397         (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust.
4398         (dcache_poke_byte, dcache_print_line): Adjust.
4399         (set_dcache_size, set_dcache_line_size): New functions.
4400         (set_dcache_command, show_dcache_command): New functions.
4401         (_initialize_dcache): Add new commands.
4402
4403 2011-07-26  Paul Pluzhnikov  <ppluzhnikov@google.com>
4404
4405         * progspace.h (struct program_space): Add solib_add_generation.
4406         * infcmd.c (post_create_inferior): Only call solib_add if not
4407         already done.
4408         * solib.c (solib_add): Increment solib_add_generation.
4409
4410 2011-07-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
4411
4412         Fix implicit pointer offsets.
4413         * dwarf2loc.c (indirect_pieced_value): Comment byte_offset.  Use also
4414         ptr.OFFSET.
4415
4416 2011-07-25  Tom Tromey  <tromey@redhat.com>
4417
4418         * ada-lang.c (ada_exception_breakpoint_ops): Make return type
4419         const.
4420         (ada_exception_sal): Make 'ops' const.
4421         (ada_decode_exception_location): Likewise.
4422         (ada_decode_assert_location): Likewise.
4423         (catch_assert_command): Update.
4424         (catch_ada_exception_command): Update.
4425         (create_ada_exception_catchpoint): Make 'ops' const.
4426         * breakpoint.c (set_raw_breakpoint_without_location)
4427         (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops'
4428         const.
4429         (create_internal_breakpoint): Update.
4430         (init_raw_breakpoint_without_location): Make 'ops' const.
4431         (init_raw_breakpoint, init_catchpoint)
4432         (create_fork_vfork_event_catchpoint)
4433         (create_syscall_event_catchpoint, init_breakpoint_sal)
4434         (create_breakpoint_sal, create_breakpoints_sal)
4435         (create_breakpoint, init_ada_exception_breakpoint): Likewise.
4436         * breakpoint.h (struct breakpoint) <ops>: Now const.
4437         (init_ada_exception_breakpoint, create_breakpoint): Make 'ops'
4438         const.
4439
4440 2011-07-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
4441
4442         * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
4443
4444 2011-07-25  Pedro Alves  <pedro@codesourcery.com>
4445
4446         * breakpoint.h (print_recreate_thread): Declare.
4447         (struct breakpoint): Move step_count, pass_count,
4448         number_on_target, static_trace_marker_id,
4449         static_trace_marker_id_idx ...
4450         (struct tracepoint): ... to this new struct.
4451         (get_tracepoint, get_tracepoint_by_number_on_target)
4452         (get_tracepoint_by_number): Change return type to struct
4453         tracepoint pointer.
4454         * breakpoint.c (is_tracepoint_type): New, factored out from
4455         is_tracepoint.
4456         (is_tracepoint): Adjust.
4457         (print_one_breakpoint_location): Cast to struct tracepoint as
4458         necessary, and adjust.
4459         (print_recreate_catch_fork, print_recreate_catch_vfork)
4460         (print_recreate_catch_syscall, print_recreate_catch_exec): Call
4461         print_recreate_thread.
4462         (init_breakpoint_sal): New, factored out from
4463         create_breakpoint_sal.
4464         (create_breakpoint_sal): Reimplement.
4465         (create_breakpoint): Allocate a struct tracecepoint if the caller
4466         wanted a tracepoint.  Use init_breakpoint_sal and
4467         install_breakpoint.
4468         (print_recreate_ranged_breakpoint, print_recreate_watchpoint)
4469         (print_recreate_masked_watchpoint)
4470         (print_recreate_exception_catchpoint): Call print_recreate_thread.
4471         (tracepoint_print_one_detail): Adjust.
4472         (tracepoint_print_recreate): Adjust.  Call print_recreate_thread.
4473         Dump the pass count here.
4474         (update_static_tracepoint): Adjust.
4475         (addr_string_to_sals): Adjust.
4476         (create_tracepoint_from_upload): Adjust.  Change return type to
4477         struct tracepoint pointer.
4478         (trace_pass_set_count): Change parameter type to struct tracepoint
4479         pointer, and adjust.
4480         (trace_pass_command): Adjust.
4481         (get_tracepoint, get_tracepoint_by_number_on_target)
4482         (get_tracepoint_by_number): Change return type to struct
4483         tracepoint pointer, and adjust.
4484         (print_recreate_thread): New, factored out from save_breakpoints.
4485         (save_breakpoints): Don't print thread and task and passcount
4486         recreation here.
4487         * remote.c (remote_download_tracepoint): Adjust.
4488         * tracepoint.c (trace_actions_command, validate_actionline)
4489         (start_tracing, tfind_1, trace_find_tracepoint_command)
4490         (trace_dump_command): Adjust.
4491         (find_matching_tracepoint): Change return type to struct
4492         tracepoint pointer, and adjust.
4493         (merge_uploaded_tracepoints, tfile_get_traceframe_address)
4494         (tfile_trace_find, tfile_fetch_registers): Adjust.
4495         * tracepoint.h (create_tracepoint_from_upload): Change return type
4496         to struct tracepoint pointer.
4497         * ada-lang.c (print_recreate_exception): Call
4498         print_recreate_thread.
4499         * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust.
4500
4501 2011-07-25  Pedro Alves  <pedro@codesourcery.com>
4502
4503         * breakpoint.h (struct breakpoint): Move ops as first field.  Move
4504         exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp,
4505         cond_exp_valid_block, val, val_valid, watchpoint_frame,
4506         watchpoint_thread, watchpoint_triggered ...
4507         (struct watchpoint): ... to this new struct.
4508         (is_watchpoint): Declare.
4509         (install_breakpoint): Add new `internal' parameter.
4510         * breakpoint.c (is_watchpoint): Delete declaration.
4511         (set_breakpoint_condition): Handle watchpoints.
4512         (is_watchpoint): Make public.
4513         (watchpoint_in_thread_scope): Change parameter type to struct
4514         watchpoint.
4515         (watchpoint_del_at_next_stop): Change parameter type to struct
4516         watchpoint.  Remove assertion.  Adjust.
4517         (update_watchpoint): Ditto.
4518         (insert_breakpoints, breakpoint_init_inferior)
4519         (watchpoints_triggered, watchpoint_check)
4520         (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
4521         (bpstat_stop_status, print_one_breakpoint_location)
4522         (print_one_breakpoint_location, watchpoint_locations_match): Cast
4523         to struct watchpoint as necessary, and adjust.
4524         (install_breakpoint): Add `internal' argument.  If true, don't
4525         mention the new breakpoint.  Use set_breakpoint_number.
4526         (create_fork_vfork_event_catchpoint)
4527         (create_syscall_event_catchpoint): Adjust.
4528         (dtor_watchpoint): New.
4529         (re_set_watchpoint, insert_watchpoint, remove_watchpoint)
4530         (breakpoint_hit_watchpoint, resources_needed_watchpoint)
4531         (print_it_watchpoint, print_mention_watchpoint)
4532         (print_recreate_watchpoint, insert_masked_watchpoint)
4533         (remove_masked_watchpoint, resources_needed_masked_watchpoint)
4534         (print_one_detail_masked_watchpoint)
4535         (print_mention_masked_watchpoint)
4536         (print_recreate_masked_watchpoint): Cast to struct watchpoint as
4537         necessary, and adjust.
4538         (watch_command_1): Allocate and initialize a struct watchpoint
4539         instead of a struct breakpoint.  Use install_breakpoint.
4540         (catch_exec_command_1): Adjust.
4541         (base_breakpoint_dtor): Delete accesses to watchpoint specific
4542         fields.
4543         (delete_breakpoint, enable_breakpoint_disp)
4544         (invalidate_bp_value_on_memory_change): Cast to struct watchpoint
4545         as necessary, and adjust.
4546         (initialize_breakpoint_ops): Install dtor_watchpoint as
4547         watchpoints' dtor method.
4548         * ada-lang.c (create_ada_exception_catchpoint): Adjust.
4549         * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint.
4550         to struct watchpoint as necessary, and adjust.
4551
4552 2011-07-25  Pedro Alves  <pedro@codesourcery.com>
4553
4554         * ada-lang.c (dtor_exception, re_set_exception): Indirect through
4555         the the base class ops table.
4556         (catch_exception_breakpoint_ops)
4557         (catch_exception_unhandled_breakpoint_ops)
4558         (catch_assert_breakpoint_ops): Don't statically initialize.
4559         (initialize_ada_catchpoint_ops): New.
4560         (_initialize_ada_language): Call it.
4561         * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops)
4562         (bkpt_breakpoint_ops): Forward declare.
4563         (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
4564         (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops)
4565         (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
4566         (masked_watchpoint_breakpoint_ops)
4567         (gnu_v3_exception_catchpoint_ops): Don't statically initialize.
4568         (dtor_catch_syscall, dtor_catch_exec): Indirect through the the
4569         base class ops table.
4570         (null_re_set, null_check_status, null_works_in_software_mode)
4571         (null_resources_needed, null_print_one_detail): Delete.
4572         (bkpt_dtor): Rename to ...
4573         (base_breakpoint_dtor): ... this.  Make static.
4574         (bkpt_allocate_location): Rename to ...
4575         (base_breakpoint_allocate_location): ... this.  Make static.
4576         (base_breakpoint_re_set): New.
4577         (internal_error_pure_virtual_called): New.
4578         (base_breakpoint_insert_location, base_breakpoint_remove_location)
4579         (base_breakpoint_breakpoint_hit, base_breakpoint_check_status)
4580         (base_breakpoint_works_in_software_mode)
4581         (base_breakpoint_resources_needed, base_breakpoint_print_it)
4582         (base_breakpoint_print_one_detail, base_breakpoint_print_mention)
4583         (base_breakpoint_print_recreate): New functions.
4584         (base_breakpoint_ops): New global.
4585         (bkpt_re_set, bkpt_insert_location, bkpt_remove_location)
4586         (bkpt_breakpoint_hit): Make static.
4587         (bkpt_check_status): Delete.
4588         (bkpt_resources_needed): Make static.
4589         (bkpt_works_in_software_mode): Delete.
4590         (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make
4591         static.
4592         (bkpt_breakpoint_ops, internal_breakpoint_ops)
4593         (momentary_breakpoint_ops): Don't statically initialize.
4594         (internal_bkpt_print_recreate, momentary_bkpt_print_recreate):
4595         Delete.
4596         (tracepoint_insert_location, tracepoint_remove_location)
4597         (tracepoint_check_status, tracepoint_works_in_software_mode)
4598         (tracepoint_print_it): Delete.
4599         (tracepoint_breakpoint_ops): Don't statically initialize.
4600         (initialize_breakpoint_ops): New.
4601         (_initialize_breakpoint): Call it.
4602         * breakpoint.h (null_re_set, null_works_in_software_mode)
4603         (null_resources_needed, null_check_status, null_print_one_detail):
4604         (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4605         (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4606         (bkpt_check_status, bkpt_resources_needed)
4607         (bkpt_works_in_software_mode, bkpt_print_it)
4608         (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
4609         Delete declarations.
4610         (initialize_breakpoint_ops): Declare.
4611
4612 2011-07-25  Pedro Alves  <pedro@codesourcery.com>
4613
4614         * breakpoint.c (bkpt_print_it, internal_bkpt_print_it)
4615         (momentary_bkpt_print_it): Simplify.
4616
4617 2011-07-25  Pedro Alves  <pedro@codesourcery.com>
4618
4619         Split internal, momentary and user breakpoints breakpoint_ops
4620         tables.
4621
4622         * breakpoint.c (internal_breakpoint_ops)
4623         (momentary_breakpoint_ops): Forward declare.
4624         (create_internal_breakpoint): Add new breakpoint_ops parameter.
4625         Pass it down, rather than hardcoding bkpt_breakpoint_ops.
4626         (create_overlay_event_breakpoint)
4627         (create_std_terminate_master_breakpoint)
4628         (create_exception_master_breakpoint): Create breakpoints with
4629         internal_breakpoint_ops vtable.
4630         (set_longjmp_breakpoint): Create momentary breakpoints with
4631         momentary_breakpoint_ops vtable, using
4632         momentary_breakpoint_from_master.
4633         (create_thread_event_breakpoint, create_jit_event_breakpoint)
4634         (create_solib_event_breakpoint): Create breakpoints with
4635         internal_breakpoint_ops vtable.
4636         (set_momentary_breakpoint): Create breakpoints with
4637         momentary_breakpoint_ops vtable.
4638         (momentary_breakpoint_from_master): New, factored out from
4639         clone_momentary_breakpoint.
4640         (clone_momentary_breakpoint): Adjust.
4641         (watch_command_1): Create scope breakpoints with
4642         momentary_breakpoint_ops vtable.
4643         (bkpt_re_set): Remove handling of internal and momentary
4644         breakpoints.
4645         (bkpt_print_mention, bkpt_print_recreate): New.
4646         (bkpt_breakpoint_ops): Adjust.
4647         (internal_bkpt_re_set, internal_bkpt_check_status)
4648         (internal_bkpt_print_it, internal_bkpt_print_mention)
4649         (internal_bkpt_print_recreate, internal_breakpoint_ops): New.
4650         (momentary_bkpt_re_set, momentary_bkpt_check_status)
4651         (momentary_bkpt_print_it, momentary_bkpt_print_mention)
4652         (momentary_bkpt_print_recreate): New.
4653         (momentary_breakpoint_ops): New.
4654
4655 2011-07-25  Pedro Alves  <pedro@codesourcery.com>
4656
4657         Implement most breakpoint_ops methods for all breakpoint types,
4658         and move the default handlings to the proper callbacks.
4659
4660         * breakpoint.c (update_watchpoint): Always call the breakpoint's
4661         works_in_software_mode method.
4662         (insert_bp_location): Go through breakpoint_ops->insert_location
4663         for software and hardware watchpoints.
4664         (create_internal_breakpoint): Pass bkpt_breakpoint_ops as
4665         breakpoint_ops.
4666         (remove_breakpoint_1): Go through breakpoint_ops->remove_location
4667         for software and hardware watchpoints.
4668         (print_it_typical): Delete.
4669         (print_bp_stop_message): Always call the breakpoint_ops->print_it
4670         method.
4671         (watchpoint_check): Adjust comment.
4672         (bpstat_check_location): Simply always call the breakpoint's
4673         breakpoint_hit method.
4674         (bpstat_stop_status): Always call the breakpoint's check_status
4675         method.  Remove special cases for watchpoints and internal event
4676         breakpoints from here (moved to the check_status implementations).
4677         (print_one_breakpoint_location): Assume b->ops is never NULL.
4678         Remove static tracepoint marker id printing from here (moved to
4679         the print_one_detail callback implementation of tracepoints).
4680         (init_bp_location): Assert OPS is never NULL.
4681         (allocate_bp_location): Always call the breakpoint's
4682         allocate_location method, and remove the default code from here.
4683         (free_bp_location): Always call the location's dtor method, and
4684         remove the default code from here.
4685         (init_raw_breakpoint_without_location): Assert OPS is never NULL.
4686         (set_raw_breakpoint_without_location): Add new breakpoint_ops
4687         parameter.  Pass it down.
4688         (set_raw_breakpoint): Ditto.
4689         (print_it_catch_fork): Adjust to take a bpstat as argument.
4690         (catch_fork_breakpoint_ops): Install methods.
4691         (print_it_catch_vfork): Adjust to take a bpstat as argument.
4692         (catch_vfork_breakpoint_ops): Install methods.
4693         (dtor_catch_syscall): Call the base dtor.
4694         (print_it_catch_syscall): Adjust to take a bpstat as argument.
4695         (catch_syscall_breakpoint_ops): Install methods.
4696         (dtor_catch_exec): Call the base dtor.
4697         (print_it_catch_exec): Adjust to take a bpstat as argument.
4698         (catch_exec_breakpoint_ops): Install methods.
4699         (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call
4700         the breakpoint's resources_needed method, and remove the default
4701         code from here.
4702         (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as
4703         breakpoint_ops.
4704         (clone_momentary_breakpoint): Clone the original's ops.
4705         (mention): Always call the breakpoint's print_mention method, and
4706         remove the default code from here.
4707         (create_breakpoint_sal): Adjust to pass the ops to
4708         set_raw_breakpoint rather than setting it manually.
4709         (create_breakpoint): Assert ops is never NULL.  Adjust to pass the
4710         ops to set_raw_breakpoint_without_location rather than setting it
4711         manually.
4712         (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops.
4713         (print_it_ranged_breakpoint): Adjust to take a bpstat as argument.
4714         (ranged_breakpoint_ops): Install methods.
4715         (break_range_command): Adjust to pass the ops to
4716         set_raw_breakpoint rather than setting it manually.
4717         (re_set_watchpoint, breakpoint_hit_watchpoint)
4718         (check_status_watchpoint, resources_needed_watchpoint)
4719         (works_in_software_mode_watchpoint, print_it_watchpoint)
4720         (print_mention_watchpoint, print_recreate_watchpoint): New
4721         functions.
4722         (watchpoint_breakpoint_ops): Install new methods.
4723         (print_it_masked_watchpoint): New function.
4724         (masked_watchpoint_breakpoint_ops): Install new methods.
4725         (watch_command_1): Adjust to pass the right breakpoint_ops to
4726         set_raw_breakpoint_without_location rather than setting it
4727         manually later.  Record the current pspace.
4728         (print_it_exception_catchpoint): Adjust to take a bpstat as
4729         argument.
4730         (gnu_v3_exception_catchpoint_ops): Install new methods.
4731         (say_where): New function.
4732         (null_re_set, null_check_status, null_works_in_software_mode)
4733         (null_resources_needed, null_print_one_detail, bp_location_dtor):
4734         New functions.
4735         (bp_location_ops): New global.
4736         (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4737         (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4738         (bkpt_check_status, bkpt_resources_needed)
4739         (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention)
4740         (bkpt_print_recreate): New functions.
4741         (bkpt_breakpoint_ops): New global.
4742         (tracepoint_re_set, tracepoint_insert_location)
4743         (tracepoint_remove_location, tracepoint_breakpoint_hit)
4744         (tracepoint_check_status, tracepoint_works_in_software_mode)
4745         (tracepoint_print_it, tracepoint_print_one_detail)
4746         (tracepoint_print_mention, tracepoint_print_recreate): New
4747         functions.
4748         (tracepoint_breakpoint_ops): New global.
4749         (delete_breakpoint): Always call the breakpoint's dtor method, and
4750         remove the default handling from here.
4751         (breakpoint_re_set_default): Make static.
4752         (breakpoint_re_set_one): Always call the breakpoints re_set
4753         method, and remove the default handling from here.
4754         (trace_command, ftrace_command, strace_command)
4755         (create_tracepoint_from_upload): Pass appropriate breakpoints_ops
4756         to create_breakpoint.
4757         (save_breakpoints): Always call the breakpoint's print_recreate
4758         method, and remove the default handling from here.
4759
4760         * ada-lang.c (dtor_exception): Call the base dtor.
4761         (re_set_exception): Call the base method.
4762         (print_it_exception, print_it_catch_exception): Adjust to take a
4763         bpstat as argument.
4764         (catch_exception_breakpoint_ops): Install methods.
4765         (print_it_catch_exception_unhandled): Adjust to take a bpstat as
4766         argument.
4767         (catch_exception_unhandled_breakpoint_ops): Install methods.
4768         (print_it_catch_assert): Adjust to take a bpstat as argument.
4769         (catch_assert_breakpoint_ops): Install methods.
4770
4771         * breakpoint.h (struct breakpoint_ops): Adjust the print_it method
4772         to take a bpstat as argument.
4773         (enum print_stop_action): Add describing comments to each enum
4774         value.
4775         (breakpoint_re_set_default): Delete declaration.
4776         (null_re_set, null_works_in_software_mode, null_resources_needed)
4777         (null_check_status, null_print_one_detail): Declare.
4778         (bkpt_breakpoint_ops): Declare.
4779         (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4780         (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4781         (bkpt_check_status, bkpt_resources_needed)
4782         (bkpt_works_in_software_mode, bkpt_print_it)
4783         (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
4784         Declare.
4785
4786         * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass
4787         bkpt_breakpoint_ops.
4788         * python/py-breakpoint.c (bppy_init): Ditto.
4789
4790 2011-07-15  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
4791
4792         * MAINTAINERS (Write After Approval): Add myself to the list.
4793
4794 2011-07-23  Paul Pluzhnikov  <ppluzhnikov@google.com>
4795
4796         * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
4797
4798 2011-07-22  Pedro Alves  <pedro@codesourcery.com>
4799
4800         * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
4801         (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
4802         (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
4803         adjust.
4804         (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
4805         (struct i386_debug_reg_state): New.
4806         (i386_init_dregs): New.
4807         (dr_mirror): New.
4808         (i386_cleanup_dregs): Use i386_init_dregs.
4809         (i386_show_dr): Add state parameter and adjust.
4810         (i386_insert_aligned_watchpoint): Ditto.  Don't pass the info to
4811         the inferior here.
4812         (i386_remove_aligned_watchpoint): Likewise.
4813         (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
4814         (i386_update_inferior_debug_regs): New.
4815         (i386_insert_watchpoint): Work on a local mirror of the debug
4816         registers, and only update the inferior on success.
4817         (i386_remove_watchpoint): Ditto.
4818         (i386_region_ok_for_watchpoint): Adjust.
4819         (i386_stopped_data_address): Adjust.
4820         (i386_insert_hw_breakpoint): Adjust.
4821         (i386_remove_hw_breakpoint): Adjust.
4822
4823 2011-07-22  Tom Tromey  <tromey@redhat.com>
4824
4825         * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
4826         from amd64_pseudo_register_read.  Change arguments.  Call
4827         mark_value_bytes_unavailable when needed.
4828         (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
4829         set_gdbarch_pseudo_register_read.
4830         * sentinel-frame.c (sentinel_frame_prev_register): Use
4831         regcache_cooked_read_value.
4832         * regcache.h (regcache_cooked_read_value): Declare.
4833         * regcache.c (regcache_cooked_read_value): New function.
4834         (regcache_cooked_read): Call
4835         gdbarch_pseudo_register_read_value if available.
4836         * i386-tdep.h (i386_pseudo_register_read_value): Declare.
4837         (i386_pseudo_register_read): Remove.
4838         * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
4839         i386_pseudo_register_read.  Change arguments.  Call
4840         mark_value_bytes_unavailable when needed.
4841         (i386_pseudo_register_read_value): New function.
4842         (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
4843         not set_gdbarch_pseudo_register_read.
4844         * gdbarch.sh (pseudo_register_read_value): New method.
4845         * gdbarch.c, gdbarch.h: Rebuild.
4846         * findvar.c (value_from_register): Call get_frame_register_value.
4847
4848 2011-07-22  Phil Muldoon  <pmuldoon@redhat.com>
4849
4850         * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
4851         get_prefix.
4852         (display_gdb_prompt): Likewise.
4853         (change_annotation_level): Likewise.
4854         (push_prompt): Likewise.
4855         (pop_prompt): Likewise.
4856         (handle_stop_sig): Use get_prompt with a level.
4857         * top.c (command_loop): Use get_prompt with a level.
4858         (set_async_annotation_level): Use set_prompt with a level.
4859         (get_prefix): New function.
4860         (set_prefix): Ditto.
4861         (set_suffix): Ditto.
4862         (get_suffix): Ditto.
4863         (get_prompt): Accept a level argument.
4864         (set_prompt): Accept a level argument.  Free old prompts.  Set
4865         new_async_prompt if level is 0.
4866         (init_main): Use set_prompt with a level.  Do not set
4867         new_async_prompt.
4868         * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
4869         * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
4870         Modify set_prompt, get_prompt to account for levels.
4871         * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
4872         level.
4873         * python/python.c (before_prompt_hook): Use set_prompt.
4874         
4875 2011-07-22  Kwok Cheung Yeung  <kcy@codesourcery.com>
4876
4877         * defs.h: Add guard against inclusion in gdbserver.
4878         (struct ptid, ptid_t): Move to common/ptid.h.
4879         (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
4880         xsnprintf, internal_error): Move to common/common-utils.h.
4881         (nomem): Delete.
4882         * gdb_assert.h: Move into common/ sub-directory.
4883         * gdb_locale.h: Ditto.
4884         * gdb_dirent.h: Ditto.
4885         * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
4886         ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
4887         Move into common/ptid.h.
4888         * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
4889         (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
4890         Change nomem to malloc_failure.
4891         * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
4892         * utils.c (nomem): Rename to malloc_failure.
4893         (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
4894         xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
4895         (gdb_buildargv): Change nomem to malloc_failure.
4896         * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
4897         ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
4898         ptid_is_pid): Move into common/ptid.c.
4899         (initialize_infrun): Delete initialization of null_ptid and
4900         minus_one_ptid.
4901         * linux-nat.c (linux_nat_xfer_osdata): Defer to
4902         linux_common_xfer_osdata.
4903         * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
4904         common/ptid.c and common/buffer.c.
4905         (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
4906         common/ptid.h, common/buffer.h and common/linux-osdata.h.
4907         (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
4908         (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
4909         rules.
4910         * common/gdb_assert.h: New.
4911         * common/gdb_dirent.h: New.
4912         * common/gdb_locale.h: New.
4913         * common/buffer.c: New.
4914         * common/buffer.h: New.
4915         * common/ptid.c: New.
4916         * common/ptid.h: New.
4917         * common/xml-utils.c: New.
4918         * common/xml-utils.h: New.
4919         * common/common-utils.c: New.
4920         * common/common-utils.h: New.
4921         * common/linux-osdata.c: New.
4922         * common/linux-osdata.h: New.
4923         * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
4924         * config/arm/linux.mh (NATDEPFILES): Ditto.
4925         * config/i386/linux.mh (NATDEPFILES): Ditto.
4926         * config/i386/linux64.mh (NATDEPFILES): Ditto.
4927         * config/ia64/linux.mh (NATDEPFILES): Ditto.
4928         * config/m32r/linux.mh (NATDEPFILES): Ditto.
4929         * config/m68k/linux.mh (NATDEPFILES): Ditto.
4930         * config/mips/linux.mh (NATDEPFILES): Ditto.
4931         * config/pa/linux.mh (NATDEPFILES): Ditto.
4932         * config/powerpc/linux.mh (NATDEPFILES): Ditto.
4933         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
4934         * config/s390/s390.mh (NATDEPFILES): Ditto.
4935         * config/sparc/linux.mh (NATDEPFILES): Ditto.
4936         * config/sparc/linux64.mh (NATDEPFILES): Ditto.
4937         * config/xtensa/linux.mh (NATDEPFILES): Ditto.
4938
4939 2011-07-21  Matt Rice  <ratmice@gmail.com>
4940
4941         * NEWS: Add info macros and info definitions commands.
4942
4943 2011-07-21  Phil Muldoon  <pmuldoon@redhat.com>
4944
4945         * NEWS: Document Python prompt substitution hook.
4946
4947 2011-07-18  Matt Rice  <ratmice@gmail.com>
4948
4949         PR macros/12999
4950         * macrotab.h (macro_callback_fn): Add new arguments to callback.
4951         * macrotab.c (foreach_macro): Ditto.
4952         (foreach_macro_in_scope): Ditto.
4953         * macrocmd.c (print_macro_callback): New function.
4954         (info_macro_command): Move some code to print_macro_definition.
4955         (print_macro_definition): New function.
4956         (print_one_macro): Add new arguments to callback.
4957         (info_definitions_command): New function.
4958         (info_macros_command): Ditto.
4959         (_initialize_macrocmd): Add info macros and info definitions commands.
4960         * symtab.c (add_macro_name): Add new arguments to callback.
4961
4962 2011-07-21  Phil Muldoon  <pmuldoon@redhat.com>
4963             Tom Tromey  <tromey@redhat.com>
4964
4965         * top.c (set_prompt): Rewrite to free previous prompt, free
4966         asynch_new_prompt and set both on new prompts.
4967         * event-top.c (display_gdb_prompt): Add prompt substitution
4968         logic.
4969         * python/python.c (before_prompt_hook): New function.
4970
4971 2011-07-20  Matt Rice  <ratmice@gmail.com>
4972
4973         * bfin-tdep.c (bfin_extract_return_value): Fix swapped
4974         arguments to store_unsigned_integer.
4975
4976 2011-07-20  Tom Tromey  <tromey@redhat.com>
4977
4978         * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
4979         in some declaration-only cases.
4980
4981 2011-07-18  Tom Tromey  <tromey@redhat.com>
4982
4983         PR symtab/12984:
4984         * dwarf2read.c (dwarf2_section_info_def): New typedef.
4985         (struct dwarf2_per_objfile) <types>: Change to a VEC.
4986         (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
4987         <debug_type_section>: New field.
4988         (dwarf2_locate_sections): Push .debug_types sections onto VEC.
4989         (load_cu): Use appropriate section.
4990         (create_signatured_type_table_from_index): Add 'section'
4991         argument.
4992         (dwarf2_read_index): Only allow a single .debug_types section.
4993         (dw2_get_file_names): Use appropriate section.
4994         (read_type_comp_unit_head): Add 'section' argument.
4995         (create_debug_types_hash_table): Loop over all .debug_types
4996         sections.
4997         (init_cu_die_reader): Use appropriate section.
4998         (process_psymtab_comp_unit, load_partial_comp_unit)
4999         (load_full_comp_unit, read_die_and_children, find_partial_die)
5000         (lookup_die_type, determine_prefix, follow_die_offset): Update.
5001         (lookup_signatured_type_at_offset): Add 'section' argument.
5002         (read_signatured_type_at_offset): Add 'sect' argument.
5003         (read_signatured_type): Use appropriate section.
5004         (set_die_type, get_die_type_at_offset): Update.
5005         (dwarf2_per_objfile_free): Free all .debug_types sections, and
5006         VEC.
5007         (write_psymtabs_to_index): Don't allow index with more than one
5008         .debug_types section.
5009
5010 2011-07-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
5011
5012         Fix crash if referenced CU is aged out.
5013         * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
5014         xfree of block.data.
5015         (indirect_pieced_value): New variable back_to, use to for xfree of
5016         baton.data.
5017         (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
5018         block.data.
5019         * dwarf2read.c (dwarf2_find_base_address): New prototype.
5020         (load_cu): New function from ...
5021         (dw2_do_instantiate_symtab): ... the code here ...
5022         (process_full_comp_unit): ... and here.
5023         (dwarf2_fetch_die_location_block): Call load_cu first.  Call xmemdup on
5024         retval.data.
5025
5026 2011-07-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
5027
5028         * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
5029         type.
5030
5031 2011-07-19  Gary Benson  <gbenson@redhat.com>
5032
5033         * infrun.c (struct execution_control_state): New member
5034         stop_func_filled_in.
5035         (clear_stop_func, fill_in_stop_func): New functions.
5036         (handle_inferior_event): Call clear_stop_func rather than
5037         manipulating the execution control state directly.
5038         Call fill_in_stop_func lazily as required rather than
5039         directly calling find_pc_partial_function in all cases.
5040
5041 2011-07-18  Tom Tromey  <tromey@redhat.com>
5042
5043         * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
5044         checking for variable-sized array.
5045
5046 2011-07-18  Jean-Charles Delay  <delay@adacore.com>
5047
5048         * varobj.h (varobj_languages): Add vlang_ada definition to the list
5049         of supported languages.
5050         * varobj.c: Add top definitions and basic implementation of the
5051         following callbacks: ada_number_of_children, ada_name_of_variable,
5052         ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
5053         ada_value_of_child, ada_type_of_child, ada_value_of_variable.
5054         (languages): Register Ada-specific callbacks.
5055         (variable_language): Add the Ada case in the language setter switch.
5056
5057 2011-07-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
5058
5059         * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
5060
5061 2011-07-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
5062
5063         Code cleanup.
5064         * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
5065         (execute_stack_op): Use dwarf2_frame_ctx_funcs
5066         * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
5067         (execute_stack_op): Access read_reg, get_frame_base, read_mem,
5068         get_frame_cfa, get_tls_address and dwarf_call via funcs.
5069         * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
5070         (struct dwarf_expr_context_funcs): New, move here methods from ...
5071         (struct dwarf_expr_context): ... here.  New fields funcs.
5072         * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
5073         (dwarf_expr_ctx_funcs): New.
5074         (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
5075         (needs_frame_dwarf_call): Access get_frame_pc via funcs.
5076         (needs_frame_ctx_funcs): New.
5077         (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
5078
5079 2011-07-15  Fawzi Mohamed  <fawzi.mohamed@nokia.com>
5080
5081         * MAINTAINERS (Write After Approval): Add myself to the list.
5082
5083 2011-07-15  Fawzi Mohamed  <fawzi.mohamed@nokia.com>
5084
5085         * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
5086         that CIE pointer of an FDE really points to a CIE .
5087
5088 2011-07-15  Hui Zhu  <teawater@gmail.com>
5089
5090         * remote.c (remote_get_trace_status): Add comments.
5091
5092 2011-07-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
5093
5094         Code cleanup - constify struct lval_funcs.
5095         * dwarf2loc.c (pieced_value_funcs): Make it const.
5096         * infrun.c (siginfo_value_funcs): Likewise.
5097         * opencl-lang.c (opencl_value_funcs): Likewise.
5098         * valops.c (value_assign, value_ind): Make the funcs variable const.
5099         * value.c (struct value): Make location.computed.funcs target const.
5100         Rearrange the comments.
5101         (allocate_computed_value): Make the funcs parameter target const.
5102         (value_computed_funcs): Return the funcs target const.
5103         (value_free, value_copy, set_value_component_location): Make the funcs
5104         variable const.
5105         * value.h (allocate_computed_value): Make the funcs parameter target
5106         const.
5107         (value_computed_funcs): Return the funcs target const.
5108         * windows-tdep.c (tlb_value_funcs): Make it const.
5109
5110 2011-07-14  Hui Zhu  <teawater@gmail.com>
5111
5112         * remote.c (remote_get_trace_status): Initialize p.
5113
5114 2011-07-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
5115
5116         Work around kgdb.
5117         * remote.c (remote_get_trace_status): New variable ex.  Put
5118         remote_get_noisy_reply into TRY_CATCH.  Call exception_fprintf for it.
5119
5120 2011-07-13  Tom Tromey  <tromey@redhat.com>
5121
5122         * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
5123         value_from_contents for final conversion.
5124
5125 2011-07-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
5126
5127         Code cleanup.
5128         * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
5129         Indent prototypes so they do not get into tags.
5130
5131 2011-07-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
5132
5133         Code cleanup making also optimized out values lazy.
5134         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
5135         allocate_optimized_out_value.  Twice.
5136         (loclist_read_variable)  Use allocate_optimized_out_value.  Once.
5137         * findvar.c (read_var_value): Likewise.
5138         * value.c (allocate_optimized_out_value): New function.
5139         * value.h (allocate_optimized_out_value): New declaration.
5140
5141 2011-07-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
5142
5143         Fix occasional crash of CTRL-C during DWARF read in.
5144         * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
5145
5146 2011-07-11  Tom Tromey  <tromey@redhat.com>
5147
5148         * regcache.c (struct regcache_descr): Fix typo.
5149         * i387-tdep.c (i387_supply_xsave): Fix typo.
5150
5151 2011-07-11  Tom Tromey  <tromey@redhat.com>
5152
5153         * dwarf2read.c (handle_DW_AT_stmt_list): New function.
5154         (read_file_scope, read_type_unit_scope): Use it.
5155
5156 2011-07-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
5157
5158         * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
5159         `int'.
5160
5161 2011-07-11  Phil Muldoon  <pmuldoon@redhat.com>
5162
5163         PR python/12438
5164         * python/python.c: Set gdbpy_should_print_stack default to off.
5165         (set_python): Deprecate maint set python print-stack to
5166         class_deprecate.
5167         (_initialize_python): Deprecate maint set/show python print-stack.
5168         Add new prefix command, python.  Add new setting, print-backtrace.
5169         * NEWS: Document set python print-stack.  Document default change.
5170
5171 2011-07-11  Phil Muldoon  <pmuldoon@redhat.com>
5172
5173         * python/py-inferior.c (infpy_dealloc): New function.
5174         (inferior_to_inferior_object): Return a new object, or a
5175         new reference to the existing object.
5176         (find_thread_object): Cleanup references to inferior.
5177         (delete_thread_object): Ditto.
5178         * python/py-infthread.c (create_thread_object): Do not increment
5179         inferior reference count.
5180
5181 2011-07-08  Tom Tromey  <tromey@redhat.com>
5182
5183         * dwarf2loc.c (locexpr_regname): New function.
5184         (locexpr_describe_location_piece): Use it.
5185         (disassemble_dwarf_expression): Add per_cu argument.  Use
5186         locexpr_regname.
5187         <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
5188         DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
5189         New cases.
5190         (locexpr_describe_location_1): Add per_cu argument.
5191         (locexpr_describe_location): Update.
5192         (loclist_describe_location): Update.
5193
5194 2011-07-08  Tom Tromey  <tromey@redhat.com>
5195
5196         * dwarf2expr.c (execute_stack_op): Add QUIT.
5197
5198 2011-07-07  Hui Zhu  <teawater@gmail.com>
5199
5200         Revert:
5201         2011-07-06  Hui Zhu  <teawater@gmail.com>
5202         * remote.c (remote_start_remote): Add TRY_CATCH for
5203         remote_get_trace_status.
5204         * tracepoint.c (disconnect_tracing): Ditto.
5205
5206 2011-07-07  Andrew Burgess  <aburgess@broadcom.com>
5207
5208         * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
5209         variables as signed, not unsigned.
5210
5211 2011-07-06  Joel Brobecker  <brobecker@adacore.com>
5212
5213         * jit.c (jit_inferior_init): Reformat forward declaration.
5214
5215 2011-07-06  Matt Rice  <ratmice@gmail.com>
5216
5217         * MAINTAINERS (Write After Approval): Add myself to the list.
5218
5219 2011-07-06  Hui Zhu  <teawater@gmail.com>
5220
5221         * remote.c (remote_start_remote): Add TRY_CATCH for
5222         remote_get_trace_status.
5223         * tracepoint.c (disconnect_tracing): Ditto.
5224
5225 2011-07-05  Tom Tromey  <tromey@redhat.com>
5226
5227         * symtab.c (operator_chars): Now static.
5228         * linespec.c (operator_chars): Don't declare.
5229
5230 2011-07-05  Thiago Jung Bauermann  <bauerman@br.ibm.com>
5231
5232         * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
5233
5234 2011-07-05  Tom Tromey  <tromey@redhat.com>
5235
5236         * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
5237         * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
5238         (TYPE_CPLUS_REALLY_JAVA): New macro.
5239         * dwarf2read.c (process_structure_scope): Set
5240         TYPE_CPLUS_REALLY_JAVA.
5241
5242 2011-07-05  Thiago Jung Bauermann  <bauerman@br.ibm.com>
5243
5244         * ada-lang.c: Fix typos.
5245         * amd64-tdep.c: Likewise.
5246         * breakpoint.c: Likewise.
5247         * cli/cli-decode.c: Likewise.
5248         * findcmd.c: Likewise.
5249         * inline-frame.c: Likewise.
5250         * mi/mi-main.c: Likewise.
5251         * minsyms.c: Likewise.
5252         * monitor.c: Likewise.
5253         * monitor.h: Likewise.
5254         * prologue-value.c: Likewise.
5255         * reverse.c: Likewise.
5256         * s390-tdep.c: Likewise.
5257
5258 2011-07-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
5259
5260         * jit.c (jit_inferior_init): Forward declare.
5261         (jit_breakpoint_re_set_internal): Call jit_inferior_init.
5262
5263 2011-07-04  Joel Brobecker  <brobecker@adacore.com>
5264
5265         * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
5266
5267 2011-07-04  Tristan Gingold  <gingold@adacore.com>
5268
5269         * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
5270         (tcb_fieldno): Add activation_link field.
5271         (get_known_tasks_addr): Moved and rewritten.
5272         (get_tcb_types_info): Set activation_link field.
5273         (read_known_tasks_array): Add parameter.  Rewritten.
5274         (read_known_tasks_list): New function.
5275         (read_known_tasks): New function.
5276         (ada_build_task_list): Call read_known_tasks instead of
5277         read_known_tasks_array.
5278         * ravenscar-thread.c: Add first_task_name constant.
5279         (has_ravenscar_runtime): Check for task list too.
5280
5281 2011-07-04  Tristan Gingold  <gingold@adacore.com>
5282
5283         * ada-tasks.c: Renames fieldno to actb_fieldno.
5284         (ada_get_task_number): Indentation.
5285         (get_tcb_types_info): Remove all parameters.  Write directly
5286         the globals.
5287         (ptid_from_atcb_common): Adjust.
5288         (read_atcb): Adjust.
5289
5290 2011-07-04  Thiago Jung Bauermann  <bauerman@br.ibm.com>
5291
5292         * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
5293
5294 2011-07-04  Thiago Jung Bauermann  <bauerman@br.ibm.com>
5295
5296         * ui-out.c (ui_out_field_core_addr): Mention that the function
5297         description is in the header file.
5298         * ui-out.h (ui_out_field_core_addr): Document function.
5299
5300 2011-07-04  Thiago Jung Bauermann  <bauerman@br.ibm.com>
5301
5302         * ui-out.c (ui_out_get_field_separator): Remove unused function.
5303         * ui-out.h (ui_out_get_field_separator): Remove prototype.
5304
5305 2011-07-04  Thiago Jung Bauermann  <bauerman@br.ibm.com>
5306
5307         * symtab.c (expand_line_sal): Remove empty line.
5308
5309 2011-07-04  Thomas Schwinge  <thomas@schwinge.name>
5310
5311         * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
5312         same way as ELFOSABI_NONE.
5313         <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
5314
5315 2011-07-04  Thiago Jung Bauermann  <bauerman@br.ibm.com>
5316
5317         * breakpoint.c: Fix typos in comments.
5318         * linespec.c: Likewise.
5319         * symtab.c: Likewise.
5320
5321 2011-07-04  Joel Brobecker  <brobecker@adacore.com>
5322
5323         * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
5324         section in separate object files.
5325
5326 2011-07-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
5327
5328         Fix false GCC warning.
5329         * linespec.c (decode_line_1): Initialize values.
5330
5331 2011-07-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
5332
5333         * linespec.c (find_method): Accept the function type automatically only
5334         if it was specified with parameter types.
5335
5336 2011-07-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
5337
5338         Stop on first linespec terminator instead of eating what we can.
5339         * linespec.c (is_linespec_boundary): New function.
5340         (name_end): Remove function.
5341         (keep_name_info): New parameter on_boundary, replace the body.
5342         (decode_line_1): Provide the parameter to keep_name_info.
5343         (decode_compound): Likewise.  Drop the trailing java return type
5344         handling.  Twice.
5345
5346 2011-07-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
5347
5348         Fall back linespec to minimal symbols.
5349         * linespec.c (decode_line_1): New variable ex, saved_argptr.  Protect
5350         decode_compound by TRY_CATCH, fall back on minsyms if it failed.
5351         (find_method, symbol_found): Change error to cplusplus_error.
5352
5353 2011-07-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
5354
5355         * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
5356
5357 2011-07-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
5358             Tom Tromey  <tromey@redhat.com>
5359
5360         * dwarf2read.c (check_physname): New variable.
5361         (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
5362         (show_check_physname): New function.
5363         (_initialize_dwarf2_read): Add `check-physname' for check_physname.
5364
5365 2011-07-01  Joel Brobecker  <brobecker@adacore.com>
5366
5367         * machoread.c (macho_symfile_read): Delete OBE comment.
5368
5369 2011-07-01  Joel Brobecker  <brobecker@adacore.com>
5370
5371         * machoread.c (struct macho_oso_data): Delete.
5372         (current_oso): Delete.
5373         (macho_relocate_common_syms): New function, mostly extracted
5374         out of
5375         (macho_add_oso_symfile): Call macho_relocate_common_syms.
5376         Remove code that sets and unset current_oso.
5377         (macho_symfile_relocate): Delete handling of common symbols,
5378         now moved to macho_relocate_common_syms.
5379
5380 2011-07-01  Joel Brobecker  <brobecker@adacore.com>
5381
5382         * darwin-nat.c (darwin_ptrace): Add documentation.
5383         Set errno to zero before calling ptrace.  If ptrace returns
5384         -1 and errno is zero, then change then return zero.
5385         (darwin_kill_inferior): Issue a warning instead of triggering
5386         a failed assertion when the PT_KILL ptrace operations returned
5387         nonzero.
5388
5389 2011-07-01  Joel Brobecker  <brobecker@adacore.com>
5390
5391         * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
5392         only when inf->private->no_ptrace.
5393
5394 2011-07-01  Joel Brobecker  <brobecker@adacore.com>
5395
5396         * ada-lang.c (print_it_exception): Print temporary catchpoints
5397         as "Temporary catchpoint".
5398         (print_mention_exception): Likewise.
5399
5400 2011-07-01  Tom Tromey  <tromey@redhat.com>
5401
5402         * jv-lang.c (java_language_defn): Use java_printchar,
5403         java_printstr.
5404         (java_get_encoding): New function.
5405         (java_emit_char): Use generic_emit_char.
5406         (java_printchar): New function.
5407         (java_printstr): Likewise.
5408
5409 2011-07-01  Joel Brobecker  <brobecker@adacore.com>
5410
5411         * ada-typeprint.c (print_record_type): If unable to decode
5412         the name of the parent type, use the encoded name.
5413
5414 2011-07-01  Jean-Charles Delay  <delay@adacore.com>
5415
5416         * ada-typeprint.c (ada_print_type): Fix both PAD type and
5417         pointer to constrained packed array type output.
5418         * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
5419         packed array output.
5420
5421 2011-07-01  Jean-Charles Delay  <delay@adacore.com>
5422
5423         * ada-typeprint.c (print_array_type): removed if condition on show
5424         being negative for bounds printing.
5425
5426 2011-07-01  Joel Brobecker  <brobecker@adacore.com>
5427
5428         * ada-lang.c (ada_identical_enum_types_p): New function.
5429         (symbols_are_identical_enums): New function.
5430         (remove_extra_symbols): Do nothing if NSYMS < 2.
5431         Use symbols_are_identical_enums.
5432
5433 2011-07-01  Joel Brobecker  <brobecker@adacore.com>
5434
5435         * ada-valprint.c (ada_value_print): Handle typedefs.
5436
5437 2011-07-01  Joel Brobecker  <brobecker@adacore.com>
5438
5439         * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
5440
5441 2011-07-01  Eric Botcazou  <ebotcazou@adacore.com>
5442
5443         * ada-lang.c (thin_descriptor_type): Deal with typedefs.
5444         (decode_constrained_packed_array): Likewise.
5445         (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
5446
5447 2011-07-01  Joel Brobecker  <brobecker@adacore.com>
5448
5449         * ada-exp.y (convert_char_literal): Handle typedef types.
5450
5451 2011-07-01  Joel Brobecker  <brobecker@adacore.com>
5452
5453         * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
5454
5455 2011-06-30  Tom Tromey  <tromey@redhat.com>
5456
5457         * varobj.c (varobj_create): Call do_cleanups on early exit path.
5458         * valops.c (find_overload_match): Call do_cleanups on early exit
5459         path.
5460         * solib.c (solib_find): Call do_cleanups on early exit path.
5461
5462 2011-06-30  Tom Tromey  <tromey@redhat.com>
5463
5464         * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
5465         * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
5466         return paths.  Defer final do_cleanups until last return.
5467         * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
5468         early return.
5469
5470 2011-06-30  Tom Tromey  <tromey@redhat.com>
5471
5472         * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
5473
5474 2011-06-30  Andrew Burgess  <aburgess@broadcom.com>
5475
5476         * MAINTAINERS (Write After Approval): Add myself to the list.
5477
5478 2011-06-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
5479
5480         Disable epilogue unwinders on recent GCCs.
5481         * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
5482         initialize it, return 0 on EPILOGUE_UNWIND_VALID.
5483         * dwarf2read.c (process_full_comp_unit): Initialize
5484         EPILOGUE_UNWIND_VALID.
5485         * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
5486         initialize it, return 0 on EPILOGUE_UNWIND_VALID.
5487         * symtab.h (struct symtab): New field epilogue_unwind_valid.
5488
5489 2011-06-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
5490
5491         Code cleanup - reformatting.
5492         * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
5493         (producer_is_gcc_ge_4): ... here, change the return value.
5494         (process_full_comp_unit): New variable gcc_4_minor, adjust the value
5495         interpretation.
5496
5497 2011-06-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
5498
5499         Fix non-only rename list for Fortran modules import.
5500         * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
5501         cp_add_using_directive caller.
5502         (cp_add_using_directive): New parameter excludes, describe it.  New
5503         variables ix and param.  Compare if also excludes match.  Allocate NEW
5504         with variable size, initialize EXCLUDES there.
5505         (cp_lookup_symbol_imports): New variable excludep, test
5506         current->EXCLUDES with it.
5507         * cp-support.h: Include vec.h.
5508         (struct using_direct): New field excludes, describe it.
5509         (DEF_VEC_P (const_char_ptr)): New.
5510         (cp_add_using_directive): New parameter excludes.
5511         * defs.h (const_char_ptr): New typedef.
5512         * dwarf2read.c (read_import_statement): New variables child_die,
5513         excludes and cleanups, read in excludes.
5514         (read_namespace): Adjust the cp_add_using_directive caller.
5515
5516 2011-06-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
5517
5518         Code cleanup.
5519         * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
5520         negative comparisons.
5521
5522 2011-06-29  André Pönitz  <andre.poenitz@nokia.com>
5523
5524         * mi/mi-main.c (mi_cmd_list_features): Emit
5525         breakpoint-notifications.
5526
5527 2011-06-29  Tom Tromey  <tromey@redhat.com>
5528
5529         PR fortran/10036:
5530         * valprint.h (generic_emit_char, generic_printstr): Declare.
5531         * valprint.c (wchar_printable, append_string_as_wide)
5532         (print_wchar): Move from c-lang.c.
5533         (generic_emit_char): New function; mostly taken from c_emit_char.
5534         (generic_printstr): New function; mostly taken from c_printstr.
5535         * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
5536         represented as arrays.
5537         <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
5538         type.
5539         * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
5540         identically to TYPE_CODE_INT.
5541         * f-lang.c (f_get_encoding): New function.
5542         (f_emit_char): Use generic_emit_char.
5543         (f_printchar): Replace comment.
5544         (f_printstr): Use generic_printstr.
5545         * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
5546         "character" types specially.
5547         <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
5548         for Fortran.
5549         * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
5550         Move to valprint.c
5551         (c_emit_char): Call generic_emit_char.
5552         (c_printstr): Call generic_printstr.
5553
5554 2011-06-29  Gary Benson  <gbenson@redhat.com>
5555
5556         * breakpoint.c (bpstat_what): Removed duplicated case.
5557
5558 2011-06-28  Tom Tromey  <tromey@redhat.com>
5559
5560         * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
5561
5562 2011-06-27  Tom Tromey  <tromey@redhat.com>
5563
5564         * valops.c (find_overload_match): Call do_cleanups before early
5565         return.
5566         * top.c (execute_command): Call do_cleanups before early return.
5567         (command_loop): Likewise.
5568         * stack.c (backtrace_command): Make a null cleanup early.  Don't
5569         conditionally call do_cleanups.
5570         * python/py-value.c (TRY_CATCH): Move cleanup handling into
5571         TRY_CATCH.
5572         * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
5573         so cleanups are always run.
5574         * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
5575         * findcmd.c (parse_find_args): Call do_cleanups on early return
5576         path.
5577         * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
5578         Don't conditionally call do_cleanups.
5579         * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
5580         later.
5581
5582 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
5583
5584         * MAINTAINERS (Write After Approval): Use default email address.
5585
5586 2011-06-27  Joel Brobecker  <brobecker@adacore.com>
5587
5588         * MAINTAINERS (Write After Approval): Add Eric Botcazou.
5589
5590 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
5591
5592         * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
5593         saved_regs_mask and copied_regs_mask fields.
5594         (sparc_record_save_insn): New prototype.
5595         * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
5596         (sparc_record_save_insn): New function.
5597         (sparc_analyze_prologue): Add head comment.  Recognize store insns
5598         of call-saved registers.  Use OFFSET consistently.  Recognize flat
5599         frames and cache their settings.
5600         (sparc32_skip_prologue): Handle flat frames.
5601         (sparc_frame_cache): Add frame_offset to the base address.
5602         (sparc32_frame_cache): Adjust to new frame description.
5603         (sparc32_frame_prev_register): Likewise.
5604         * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
5605         * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
5606         * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
5607         * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
5608         frame by calling sparc_record_save_insn.
5609         * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
5610         * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
5611         * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
5612
5613 2011-06-27  Tristan Gingold  <gingold@adacore.com>
5614
5615         * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
5616         field by map_addr and map_len.
5617         (dwarf2_read_section): Adjust for the new bfd_mmap api.
5618         (munmap_section_buffer): Likewise.
5619
5620 2011-06-24  Tom Tromey  <tromey@redhat.com>
5621
5622         * varobj.c (update_dynamic_varobj_children): Make 'name' const.
5623         * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
5624         * python/python.c (gdbpy_parameter): Make 'arg' const.
5625         (execute_gdb_command): Likewise.
5626         (gdbpy_decode_line): Likewise.  Copy it.
5627         (gdbpy_parse_and_eval): Make 'expr_string' const.  Copy it.
5628         (gdbpy_write): Make 'arg' const.
5629         * python/py-type.c (typy_lookup_typename): Make 'type_name'
5630         const.
5631         (gdbpy_lookup_type): Likewise.
5632         * python/py-prettyprint.c (print_children): Make 'name' const.
5633         * python/py-param.c (parmpy_init): Make 'name' const.  Copy it.
5634         * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
5635         Py_ssize_t.
5636         * python/py-function.c (fnpy_init): Make 'name' const.
5637         * python/py-cmd.c (cmdpy_init): Make 'name' const.  Copy it.
5638         (gdbpy_string_to_argv): Make 'input' const.
5639         * python/py-breakpoint.c (bppy_init): Make 'spec' const.  Copy
5640         it.
5641         * gdbtypes.h (lookup_typename): Update.
5642         * gdbtypes.c (lookup_typename): Make 'name' const.
5643         (lookup_struct): Likewise.
5644         (lookup_union): Likewise.
5645         (lookup_enum): Likewise.
5646
5647 2011-06-24  Tom Tromey  <tromey@redhat.com>
5648
5649         * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
5650         gdb_thread_db.h.  Move all common/ entries to be together.
5651         (TAGS): Don't depend on DEPFILES.
5652
5653 2011-06-23  Yao Qi  <yao@codesourcery.com>
5654
5655         * infrun.c (start_remote): Move call init_wait_for_inferior to ...
5656         * remote.c (remote_start_remote): ... here.
5657         * monitor.c (monitor_open): ... here.
5658
5659 2011-06-23  Andrew Burgess  <aburgess@broadcom.com>
5660
5661         * gdbtypes.c (append_composite_type_field_aligned): Fix
5662         calculation of bit position based on alignment.
5663
5664 2011-06-22  Pedro Alves  <pedro@codesourcery.com>
5665
5666         * breakpoint.c (bpstat_stop_status): Call the check_status
5667         breakpoint_ops method.
5668         (print_one_breakpoint_location): Also print the condition for Ada
5669         exception catchpoints.
5670         (allocate_bp_location): New, factored out from
5671         allocate_bp_location.
5672         (allocate_bp_location): Adjust.  Call the owner breakpoint's
5673         allocate_location method, if there is one.
5674         (free_bp_location): Call the locations's dtor method, if there is
5675         one.
5676         (init_raw_breakpoint_without_location): New breakpoint_ops
5677         parameter.  Use it.
5678         (set_raw_breakpoint_without_location): Adjust.
5679         (init_raw_breakpoint): New breakpoint_ops parameter.  Pass it down.
5680         (set_raw_breakpoint): Adjust.
5681         (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
5682         (catch_syscall_breakpoint_ops): Install NULL allocate_location,
5683         re_set and check_status methods.
5684         (init_catchpoint): Don't memset, initialize thread, addr_string
5685         and enable_state.  Pass the ops down to init_raw_breakpoint.
5686         (install_catchpoint): Rename to ...
5687         (install_breakpoint): ... this, and make extern.
5688         (create_fork_vfork_event_catchpoint): Adjust.
5689         (catch_exec_breakpoint_ops): Install NULL allocate_location,
5690         re_set and check_status methods.
5691         (create_syscall_event_catchpoint): Adjust.
5692         (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
5693         (masked_watchpoint_breakpoint_ops): Install NULL
5694         allocate_location, re_set and check_status methods.
5695         (catch_exec_command_1): Adjust.
5696         (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
5697         re_set and check_status methods.
5698         (create_ada_exception_breakpoint): Rename to ...
5699         (init_ada_exception_breakpoint): ... this.  Add a struct
5700         breakpoint parameter, and delete the exp_string, cond_string and
5701         cond parameters.  Use init_raw_breakpoint, and don't install or
5702         mention the breakpoint yet.  Don't clear breakpoint fields that
5703         init_raw_breakpoint already clears.
5704         (re_set_breakpoint): Delete, split into ...
5705         (breakpoint_re_set_default, prepare_re_set_context): ... these new
5706         functions.
5707         (breakpoint_re_set_one): Call the breakpoint's
5708         breakpoint_ops->re_set implementation, if there's one.  Adjust.
5709         * breakpoint.h: Forward declare struct bpstats and struct bp_location.
5710         (struct bp_location_ops): New type.
5711         (struct bp_location): New field `ops'.
5712         (struct breakpoint_ops): New `allocate_location', `re_set' and
5713         `check_status' fields.  Make `breakpoint_hit''s description match
5714         reality.
5715         (init_bp_location): Declare.
5716         (breakpoint_re_set_default): Declare.
5717         (create_ada_exception_breakpoint): Rename to ...
5718         (init_ada_exception_breakpoint): ... this.  Add a struct
5719         breakpoint parameter, and delete the exp_string, cond_string and
5720         cond parameters.
5721         (install_breakpoint): Declare.
5722         * ada-lang.c: Include exceptions.h.
5723         <Ada exceptions description>: Update.
5724         (struct ada_catchpoint_location): New type.
5725         (ada_catchpoint_location_dtor): New function.
5726         (ada_catchpoint_location_ops): New global.
5727         (ada_catchpoint): New type.
5728         (create_excep_cond_exprs): New function.
5729         (dtor_exception, allocate_location_exception, re_set_exception)
5730         (should_stop_exception, check_status_exception): New functions.
5731         (print_one_exception, print_mention_exception)
5732         (print_recreate_exception): Adjust.
5733         (dtor_catch_exception, allocate_location_catch_exception)
5734         (re_set_catch_exception, check_status_catch_exception): New
5735         functions.
5736         (catch_exception_breakpoint_ops): Install them.
5737         (dtor_catch_exception_unhandled)
5738         (allocate_location_catch_exception_unhandled)
5739         (re_set_catch_exception_unhandled)
5740         (check_status_catch_exception_unhandled): New functions.
5741         (catch_exception_unhandled_breakpoint_ops): Install them.
5742         (dtor_catch_assert, allocate_location_catch_assert)
5743         (re_set_catch_assert, check_status_catch_assert): New functions.
5744         (catch_assert_breakpoint_ops): Install them.
5745         (ada_exception_catchpoint_p): Delete.
5746         (catch_ada_exception_command_split)
5747         (ada_exception_catchpoint_cond_string): Rename exp_string
5748         parameter to excep_string.  Adjust.
5749         (ada_parse_catchpoint_condition): Delete.
5750         (ada_exception_sal): Rename the exp_string parameter to
5751         excep_string.  Delete the cond_string and cond parameters.
5752         Adjust.
5753         (ada_decode_exception_location): Rename the exp_string parameter
5754         to excep_string.  Delete the cond_string and cond parameters.
5755         Adjust.
5756         (create_ada_exception_catchpoint): New function.
5757         (catch_ada_exception_command, ada_decode_assert_location)
5758         (catch_assert_command): Adjust.
5759         * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
5760
5761 2011-06-22  Pedro Alves  <pedro@codesourcery.com>
5762
5763         * ada-lang.c: Include arch-utils.h.
5764         (ada_decode_exception_location): Make static.
5765         (catch_ada_exception_command): Moved here from breakpoint.c.
5766         (ada_decode_assert_location): Make static.
5767         (catch_assert_command): Moved here from breakpoint.c.
5768         (_initialize_ada_lang): Install the exception and assert
5769         catchpoint commands here.
5770         * ada-lang.h (ada_decode_exception_location)
5771         (ada_decode_assert_location): Delete declarations.
5772         * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
5773         breakpoint.h.
5774         (create_ada_exception_breakpoint): Make extern.
5775         (catch_ada_exception_command, catch_assert_command): Moved to
5776         ada-lang.c.
5777         (add_catch_command): Make extern.
5778         (_initilize_breakpoint): Don't install the exception and assert
5779         catchpoint commands here.
5780         * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
5781         breakpoint.c
5782         (add_catch_command, create_ada_exception_breakpoint): Declare.
5783
5784 2011-06-22  Pedro Alves  <pedro@codesourcery.com>
5785
5786         * breakpoint.c (init_raw_breakpoint_without_location): Don't add
5787         the breakpoint to the breakpoint chain here.
5788         (set_raw_breakpoint_without_location): Add the breakpoint to the
5789         breakpoint chain here.
5790         (init_raw_breakpoint): Adjust comments.
5791         (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
5792         here.
5793         (init_catchpoint): Don't set the catchpoint's breakpoint number
5794         here.
5795         (install_catchpoint): New function.
5796         (create_fork_vfork_event_catchpoint)
5797         (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
5798         use install_catchpoint.
5799
5800 2011-06-22  Pedro Alves  <pedro@codesourcery.com>
5801
5802         * breakpoint.c (create_catchpoint_without_mention)
5803         (create_catchpoint): Delete.
5804
5805 2011-06-22  Pedro Alves  <pedro@codesourcery.com>
5806
5807         * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
5808         * breakpoint.c (init_raw_breakpoint_without_location): Remove
5809         reference to exec_pathname.
5810         (struct exec_catchpoint): New type.
5811         (dtor_catch_exec): New function.
5812         (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
5813         (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
5814         (catch_exec_command_1): Adjust to use init_catchpoint.
5815         (delete_breakpoint): Remove reference to exec_pathname.
5816
5817 2011-06-22  Pedro Alves  <pedro@codesourcery.com>
5818
5819         * breakpoint.h (struct breakpoint_ops): New field `dtor'.
5820         (struct breakpoint): Delete field `syscalls_to_be_caught'.
5821         * breakpoint.c (init_raw_breakpoint_without_location): Remove
5822         reference to syscalls_to_be_caught.
5823         (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
5824         NULL `dtor'.
5825         (struct syscall_catchpoint): New type.
5826         (dtor_catch_syscall): New function.
5827         (insert_catch_syscall, remove_catch_syscall)
5828         (breakpoint_hit_catch_syscall, print_one_catch_syscall)
5829         (print_recreate_catch_syscall): Adjust.
5830         (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
5831         (catch_exec_breakpoint_ops): Install a NULL `dtor'.
5832         (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
5833         (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
5834         (masked_watchpoint_breakpoint_ops)
5835         (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
5836         (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
5837         there is one.  Remove references to syscalls_to_be_caught.
5838         (catching_syscall_number): Adjust.
5839         * ada-lang.c (catch_exception_breakpoint_ops)
5840         (catch_exception_unhandled_breakpoint_ops)
5841         (catch_assert_breakpoint_ops): Install a NULL `dtor'.
5842
5843 2011-06-22  Pedro Alves  <pedro@codesourcery.com>
5844
5845         * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
5846         field.
5847         * breakpoint.c (init_raw_breakpoint_without_location): Remove
5848         reference to forked_inferior_pid.
5849         (struct fork_catchpoint): New type.
5850         (breakpoint_hit_catch_fork, print_it_catch_fork)
5851         (print_one_catch_fork, breakpoint_hit_catch_vfork)
5852         (print_it_catch_vfork, print_one_catch_vfork): Adjust.
5853         (create_fork_vfork_event_catchpoint): Adjust to use
5854         init_catchpoint.
5855
5856 2011-06-22  Pedro Alves  <pedro@codesourcery.com>
5857
5858         * breakpoint.c (add_to_breakpoint_chain)
5859         (init_raw_breakpoint_without_location): New functions, factored
5860         out from ...
5861         (set_raw_breakpoint_without_location): ... this one.
5862         (init_raw_breakpoint): New function, factored out from
5863         set_raw_breakpoint and adjusted to use
5864         init_raw_breakpoint_without_location.
5865         (set_raw_breakpoint): Adjust.
5866         (init_catchpoint): New function, factored out from
5867         create_catchpoint_without_mention and adjusted to use
5868         init_raw_breakpoint.
5869         (create_catchpoint_without_mention): Adjust.
5870
5871 2011-06-22  Tom Tromey  <tromey@redhat.com>
5872
5873         * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
5874         argument of 0 specially.
5875
5876 2011-06-22  Yao Qi  <yao@codesourcery.com>
5877
5878         * infrun.c (handle_inferior_event): Remove write-only local variable
5879         `sw_single_step_trap_p'.
5880
5881 2011-06-20  Tom Tromey  <tromey@redhat.com>
5882
5883         * symtab.c (lookup_language_this): End loop if block is NULL.
5884
5885 2011-06-17  Tom Tromey  <tromey@redhat.com>
5886
5887         * valops.c (value_of_this): Use lookup_language_this.
5888         * symtab.h (lookup_language_this): Declare.
5889         * symtab.c (lookup_language_this): New function.
5890         (lookup_symbol_aux): Use lookup_language_this.
5891         * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
5892
5893 2011-06-17  Tom Tromey  <tromey@redhat.com>
5894
5895         * value.h (value_of_this): Update.
5896         (value_of_local): Remove.
5897         * valops.c (value_of_this): Rename from value_of_local.  Change
5898         parameters.
5899         * p-exp.y (exp): Update.
5900         (variable): Likewise.
5901         * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
5902
5903 2011-06-17  Tom Tromey  <tromey@redhat.com>
5904
5905         * valops.c (value_of_local): Complain if NAME is NULL.
5906         * std-operator.def (OP_OBJC_SELF): Remove.
5907         * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
5908         * objc-exp.y (name_not_typename): Use OP_THIS.
5909         * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
5910         name for "this".
5911         <OP_OBJC_SELF>: Remove.
5912         * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
5913
5914 2011-06-16  Tristan Gingold  <gingold@adacore.com>
5915
5916         * python/py-events.h (gdb_py_events): Make it extern.
5917         * python/py-evtregistry.c (gdb_py_events): Declare.
5918
5919 2011-06-16  Hui Zhu  <teawater@gmail.com>
5920
5921         * remote.c (remote_trace_set_readonly_regions): Add check for
5922         remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
5923         output warning.
5924
5925 2011-06-15  Ulrich Weigand  <ulrich.weigand@linaro.org>
5926
5927         * arm-linux-tdep.c: Include "auxv.h".
5928         (AT_HWCAP): Define.
5929         (ARM_LINUX_SIZEOF_VFP): Define.
5930         (arm_linux_supply_vfp): New function.
5931         (arm_linux_collect_vfp): Likewise.
5932         (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
5933         (arm_linux_fpa_regset_sections): New variable.
5934         (arm_linux_vfp_regset_sections): Likewise.
5935         (arm_linux_core_read_description): New function.
5936         (arm_linux_init_abi): Install arm_linux_core_read_description and
5937         arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
5938         appropriate for the architecture.
5939         * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
5940         (tdesc_arm_with_m): Declare.
5941         (tdesc_arm_with_iwmmxt): Likewise.
5942         (tdesc_arm_with_vfpv2): Likewise.
5943         (tdesc_arm_with_vfpv3): Likewise.
5944         (tdesc_arm_with_neon): Likewise.
5945         * arm-linux-nat.c: Move features/*.c includes ...
5946         * arm-tdep.c: ... here.
5947         * arm-linux-nat.c (arm_linux_read_description): Move initializing
5948         target description data structures ...
5949         * arm-tdep.c (_initialize_arm_tdep): ... here.
5950         * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
5951         HWCAP_VFPv3D16): Move definitions ...
5952         * arm-linux-tdep.h: ... here.
5953
5954 2011-06-15  Hui Zhu  <teawater@gmail.com>
5955
5956         * remote.c (remote_trace_set_readonly_regions): Add a check for
5957         target_buf_size.
5958
5959 2011-06-14  Tom Tromey  <tromey@redhat.com>
5960
5961         * coffread.c (coffread_objfile): Rename from current_objfile.
5962         * dbxread.c (dbxread_objfile): Rename from current_objfile.
5963         * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
5964
5965 2011-06-14  Tom Tromey  <tromey@redhat.com>
5966
5967         * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
5968         (class_symtab): Remove.
5969         (jv_dynamics_progspace_key): New global.
5970         (jv_per_objfile_free): Reset program space data.  Update assert.
5971         Don't clear globals.
5972         (get_dynamics_objfile): Use and set program space data.
5973         (get_java_class_symtab): Use get_dynamics_objfile.
5974         (add_class_symbol): Likewise.
5975         (java_link_class_type): Likewise.
5976         (java_object_type, jv_clear_object_type, set_java_object_type):
5977         Remove.
5978         (get_java_object_type): Update.  Don't cache result.
5979         (is_object_type): Don't call set_java_object_type.
5980         (_initialize_java_language): Don't set jv_type_objfile_data_key;
5981         initialize jv_dynamics_progspace_key.
5982
5983 2011-06-14  Tom Tromey  <tromey@redhat.com>
5984
5985         * symtab.h (current_objfile): Don't declare.
5986         * objfiles.h (current_objfile): Don't declare.
5987         * objfiles.c (current_objfile): Remove.
5988         * mdebugread.c (current_objfile): New file-scope global.
5989         * dbxread.c (current_objfile): New file-scope global.
5990         * coffread.c (current_objfile): New file-scope global.
5991
5992 2011-06-13  Pedro Alves  <pedro@codesourcery.com>
5993
5994         * top.h (line): Rename to ...
5995         (saved_command_line): ... this.
5996         (linesize): Rename to ...
5997         (saved_command_line_size): ... this.
5998         * top.c (line): Rename to ...
5999         (saved_command_line): ... this.
6000         (linesize): Rename to ...
6001         (saved_command_line_size): ... this.
6002         (dont_repeat, command_line_input, dont_repeat_command): Adjust.
6003         * event-top.c (command_line_handler): Adjust.
6004         * main.c (captured_main): Adjust.
6005
6006 2011-06-12  Mark Kettenis  <kettenis@gnu.org>
6007
6008         * i386-tdep.c (i386_epilogue_frame_cache): Simplify code.  Call
6009         get_frame_func instead of get_frame_pc to determine the code
6010         address used to construct the frame ID.
6011         (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
6012         (i386_epilogue_frame_this_id): Likewise.
6013         (i386_epilogue_frame_prev_register): New function.
6014         (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
6015         (i386_stack_tramp_frame_sniffer): Fix coding style.
6016         (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
6017         (i386_gdbarch_init): Fix comments.
6018
6019 2011-06-12  Mark Kettenis  <kettenis@gnu.org>
6020
6021         * i386-tdep.c (i386_match_insn_block): Use length of the proper
6022         instruction when walking back through the instruction stream.
6023
6024 2011-06-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
6025
6026         * symtab.c (output_partial_symbol_filename): Exchange the filename and
6027         fullname parameters order.
6028
6029 2011-06-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
6030
6031         Code cleanup.
6032         * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
6033         for fun.
6034         * psymtab.c (map_symbol_filenames_psymtab)
6035         (map_partial_symbol_filenames): Likewise.
6036         * psymtab.h: Include symfile.h.
6037         (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
6038         * symfile.h (symbol_filename_ftype): New.
6039         (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
6040         map_symbol_filenames, clarify more the naming in comment.
6041
6042 2011-06-07  Doug Evans  <dje@google.com>
6043
6044         * cc-with-index.sh: Fix typos in comment.
6045         Look for ../../gdb, for fullname.exp.
6046
6047 2011-06-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
6048             Pedro Alves  <pedro@codesourcery.com>
6049
6050         * cli/cli-cmds.c (shell_escape): Use waitpid.
6051         * rs6000-nat.c (exec_one_dummy_insn): Likewise.
6052
6053 2011-06-07  Tristan Gingold  <gingold@adacore.com>
6054
6055         * xcoffread.c (dwarf2_xcoff_names): New variable.
6056         (aix_process_linenos): Add a guard.
6057         (xcoff_symfile_finish): Free dwarf2.
6058         (xcoff_initial_scan): Add dwarf2 support.
6059
6060 2011-06-06  Pedro Alves  <pedro@codesourcery.com>
6061
6062         * infcall.c (run_inferior_call): Don't mask async.  Instead force
6063         a synchronous wait, if the target can async.
6064
6065         * target.h (struct target_ops): Delete to_async_mask.
6066         (target_async_mask): Delete.
6067         * target.c (update_current_target): Delete references to to_async_mask.
6068         * linux-nat.c (linux_nat_async_mask_value): Delete.
6069         (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
6070         to linux_nat_async_mask_value.
6071         (linux_nat_async_mask): Delete.
6072         (linux_nat_async, linux_nat_close): Remove references to
6073         linux_nat_async_mask_value.
6074         * record.c (record_async_mask_value): Delete.
6075         (record_async): Remove references to record_async_mask_value.
6076         (record_async_mask): Delete.
6077         (record_can_async_p, record_is_async_p): Remove references to
6078         record_async_mask_value.
6079         (init_record_ops, init_record_core_ops): Remove references to
6080         record_async_mask.
6081         * remote.c (remote_async_mask_value): Delete.
6082         (init_remote_ops): Remove reference to remote_async_mask.
6083         (remote_can_async_p, remote_is_async_p): Remove references to
6084         remote_async_mask_value.
6085         (remote_async): Remove references to remote_async_mask_value.
6086         (remote_async_mask): Delete.
6087
6088         * infrun.c (fetch_inferior_event): Don't claim registers changed
6089         if the current thread is already not executing.
6090
6091 2011-06-03  Joel Brobecker  <brobecker@adacore.com>  (obvious fix)
6092
6093         From Stephen Kitt  <steve@sk2.org>
6094         * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
6095         gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
6096
6097 2011-06-03  Joel Brobecker  <brobecker@adacore.com>
6098
6099         * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
6100         the case where ADDR_SIZE is different from TYPE_LENGTH (type).
6101
6102 2011-06-03  Tom Tromey  <tromey@redhat.com>
6103
6104         * python/py-inferior.c (python_inferior_exit): Use inferior's exit
6105         code fields.
6106         * python/py-exitedevent.c (create_exited_event_object): Change
6107         type of 'exit_code'.  Optionally add exit_code attribute.
6108         (emit_exited_event): Change type of 'exit_code'.
6109         * python/py-event.h (emit_exited_event): Update.
6110         * mi/mi-interp.c (mi_inferior_exit): Print exit code.
6111         * infrun.c (handle_inferior_event): Set exit code fields on
6112         inferior.
6113         * inferior.h (struct inferior) <has_exit_code, exit_code>: New
6114         fields.
6115         * inferior.c (exit_inferior_1): Initialize new fields.
6116
6117 2011-06-03  Tom Tromey  <tromey@redhat.com>
6118
6119         * dwarf2expr.c (get_signed_type): New function.
6120         (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
6121
6122 2011-06-02  Keith Seitz  <keiths@redhat.com>
6123
6124         * objc-lang.c (find_methods): Increment objfile_csym earlier.
6125
6126 2011-06-02  Pedro Alves  <pedro@codesourcery.com>
6127
6128         * top.h (simplified_command_loop): Delete declaration.
6129
6130 2011-06-01  Mike Frysinger  <vapier@gentoo.org>
6131
6132         * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
6133         gdb_sysroot to the "len" variable.  Append both to "arg_buf".
6134
6135 2011-06-01  Yao Qi  <yao@codesourcery.com>
6136
6137         * objfiles.h (obj_section_addr): Update reference to objfile from
6138         `abfd' to `obfd'.
6139         (obj_section_endaddr): Likewise.
6140
6141 2011-06-01  Daniel Jacobowitz  <drow@false.org>
6142
6143         * MAINTAINERS: Update my email address and affiliation.  Also
6144         update Ian Lance Taylor's affiliation.  Use UTF-8 for ludo@gnu.org.
6145
6146 2010-05-31  Keith Seitz  <keiths@redhat.com>
6147
6148         PR c++/12750
6149         * linespec.c (get_search_block): New function.
6150         (find_methods): Add FILE_SYMTATB parameter and use it and
6151         get_search_block to pass an appropriate block to
6152         lookup_symbol_in_namespace.
6153         (decode_line_1): Record if *ARGPTR is single-quote enclosed.
6154         Check if *ARGPTR starts with a filename first.
6155         If it does, call locate_first_half again to locate the next
6156         "first half" of the linespec.
6157         Pass FILE_SYMTATB to decode_objc and decode_compound.
6158         Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
6159         (locate_first_half): Stop on the first colon seen.
6160         (decode_compound): Add FILE_SYMTAB parameter.
6161         Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
6162         (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
6163         get_search_block with lookup_symbol.
6164         (find_method): Add FILE_SYMTAB parameter and pass it to
6165         find_methods.
6166         (decode_objc): Use get_search_block.
6167
6168 2010-05-31  Keith Seitz  <keiths@redhat.com>
6169
6170         PR symtab/12704
6171         * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
6172         (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
6173         and CP_ANONYMOUS_NAMESPACE_LEN.
6174         (cp_is_anonymous): Likewise.
6175         * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
6176         (CP_ANONYMOUS_NAMESPACE_LEN): Define.
6177         * dwarf2read.c (namespace_name): Likewise.
6178         (fixup_partial_die): Likewise.
6179         * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
6180         seen in the input, keep it.
6181
6182 2011-05-30  Pedro Alves  <pedro@codesourcery.com>
6183
6184         * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
6185         * inf-loop.h (inferior_event_handler_wrapper): Delete.
6186         * inf-loop.c (inferior_event_handler_wrapper): Delete.
6187         (inferior_event_handler): Don't handle INF_QUIT_REQ.
6188         * remote.c (_initialize_remote): Register
6189         async_remote_interrupt_twice directly as
6190         sigint_remote_twice_token event.
6191
6192 2011-05-30  Pedro Alves  <pedro@codesourcery.com>
6193
6194         * target.h (enum inferior_event_type): Delete INF_ERROR.
6195         * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
6196
6197 2011-05-30  Pedro Alves  <pedro@codesourcery.com>
6198
6199         * interps.c (interp_set): Don't cancel continuations.
6200
6201 2011-05-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
6202
6203         * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
6204
6205 2011-05-30  Pedro Alves  <pedro@codesourcery.com>
6206
6207         * continuations.h (continuation_ftype): Add `err' parameter.
6208         Document parameters.
6209         (do_all_continuations, do_all_continuations_thread)
6210         (do_all_intermediate_continuations)
6211         (do_all_intermediate_continuations_thread)
6212         (do_all_inferior_continuations): Add `err' parameter.
6213         * continuations.c (do_my_continuations_1, do_my_continuations)
6214         (do_all_inferior_continuations, do_all_continuations_ptid)
6215         (do_all_continuations_thread_callback)
6216         (do_all_continuations_thread, do_all_continuations)
6217         (do_all_intermediate_continuations_thread_callback)
6218         (do_all_intermediate_continuations_thread)
6219         (do_all_intermediate_continuations): Add `err' parameter, and pass
6220         it down all the way to the continuations proper.
6221         * inf-loop.c (inferior_event_handler): If fetching an inferior
6222         event throws an error, don't pop the target, and still call the
6223         continuations, but with `err' set.  Adjust all other continuation
6224         calls.
6225         * breakpoint.c (until_break_command_continuation): Add `err'
6226         parameter.
6227         * infcmd.c (step_1_continuation): Add `err' parameter.  Don't
6228         issue another step if `err' is set.
6229         (struct until_next_continuation_args): New.
6230         (until_next_continuation): Add `err' parameter.  Adjust.
6231         (until_next_command): Adjust.
6232         (struct finish_command_continuation_args): Add `thread' field.
6233         (finish_command_continuation): Add `err' parameter.  Handle it.
6234         (finish_forward): Adjust.
6235         (attach_command_continuation): Add `err' parameter.  Handle it.
6236         * infrun.c (infrun_thread_stop_requested_callback): Adjust to
6237         cancel the continuations.
6238         * interps.c (interp_set): Adjust to cancel the continuations.
6239         * thread.c (clear_thread_inferior_resources): Adjust to cancel the
6240         continuations rather than discarding.
6241         (free_thread): Don't clear thread inferior resources here.
6242         (delete_thread_1): Do it here instead.  And do it before removing
6243         the thread from the threads list.  Tag the thread as exited before
6244         clearing thread inferior resources.
6245
6246 2011-05-30  Joel Brobecker  <brobecker@adacore.com>
6247
6248         * infcall.c (call_function_by_hand): Rephrase error message.
6249
6250 2011-05-27  Pedro Alves  <pedro@codesourcery.com>
6251
6252         * defs.h (struct thread_info, struct inferior): Delete forward
6253         declarations.
6254         * breakpoint.h (struct thread_info): New forward declaration.
6255         * observer.sh (struct inferior): New forward declaration.
6256         * python/python-internal.h (struct inferior): New forward
6257         declaration.
6258
6259 2011-05-27  Pedro Alves  <pedro@codesourcery.com>
6260
6261         * defs.h (struct continuation, continuation_ftype)
6262         (continuation_free_arg_ftype, add_continuation)
6263         (do_all_continuations, do_all_continuations_thread)
6264         (discard_all_continuations, discard_all_continuations_thread)
6265         (add_intermediate_continuation, do_all_intermediate_continuations)
6266         (do_all_intermediate_continuations_thread)
6267         (discard_all_intermediate_continuations)
6268         (discard_all_intermediate_continuations_thread)
6269         (add_inferior_continuation, do_all_inferior_continuations)
6270         (discard_all_inferior_continuations): Move to ...
6271         * continuations.h: ... this new file.
6272         * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
6273         infcmd.c, inferior.c, infrun.c, interps.c: Include
6274         continuations.h.
6275
6276 2011-05-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
6277             Doug Evans  <dje@google.com>
6278
6279         Fix PR 10970, PR 12702.
6280         * linux-nat.c (linux_lwp_is_zombie): New function.
6281         (wait_lwp): Initialize status.  New variable prev_mask.  Block signals.
6282         Check for linux_lwp_is_zombie.  Use WNOHANG and sigsuspend.
6283
6284 2011-05-27  Pedro Alves  <pedro@codesourcery.com>
6285
6286         * defs.h (continuation_ftype, continuation_free_arg_ftype): New
6287         typedefs.
6288         (add_continuation, add_intermediate_continuation)
6289         (add_inferior_continuation): Use them.
6290         * continuations.c (struct continuation): Use them.
6291         (make_continuation_ftype): Delete.
6292         (make_continuation, add_inferior_continuation, add_continuation)
6293         (add_intermediate_continuation): Use continuation_ftype and
6294         continuation_free_arg_ftype.  Rename parameters to shorter names.
6295
6296 2011-05-27  Pedro Alves  <pedro@codesourcery.com>
6297
6298         * continuations.c (make_continuation): Make it return void.
6299         (do_my_continuations): Rename to ...
6300         (do_my_continuations_1): ... this.  Remove old_chain parameter and
6301         adjust.
6302         (do_my_continuations): New.
6303         (discard_my_continuations): Rename to ...
6304         (discard_my_continuations_1): ... this.  Remove old_chain
6305         parameter and adjust.
6306         (discard_my_continuations): New.
6307         (add_inferior_continuation): Simplify.
6308         (do_all_inferior_continuations): Reimplement on top
6309         do_my_continuations.
6310         (discard_all_inferior_continuations): Simplify.
6311         (add_continuation): Simplify.
6312         (do_all_continuations_ptid): Simplify.
6313         (discard_all_continuations_thread_callback): Simplify.
6314         (add_intermediate_continuation): Simplify.
6315         (discard_all_intermediate_continuations_thread_callback):
6316         Simplify.
6317
6318 2011-05-27  Pedro Alves  <pedro@codesourcery.com>
6319
6320         * utils.c (struct continuation, add_continuation)
6321         (add_inferior_continuation)
6322         (do_all_inferior_continuations, discard_all_inferior_continuations)
6323         (restore_thread_cleanup, do_all_continuations_ptid)
6324         (do_all_continuations_thread_callback)
6325         (do_all_continuations_thread, do_all_continuations)
6326         (discard_all_continuations_thread_callback)
6327         (discard_all_continuations_thread, discard_all_continuations)
6328         (add_intermediate_continuation)
6329         (do_all_intermediate_continuations_thread_callback)
6330         (do_all_intermediate_continuations_thread)
6331         (do_all_intermediate_continuations)
6332         (discard_all_intermediate_continuations_thread_callback)
6333         (discard_all_intermediate_continuations_thread)
6334         (discard_all_intermediate_continuations): Move to ...
6335         * continuations.c: ... this new file, and adjust to no longer
6336         implement continuations on top of cleanups.
6337         * Makefile.in (SFILES): Add continuations.c.
6338         (COMMON_OBS): Add continuations.o.
6339
6340 2011-05-26  Pedro Alves  <pedro@codesourcery.com>
6341
6342         * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
6343         * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
6344         Internal error on invalid values.
6345         * reverse.c: Don't handle EXEC_ERROR.
6346         * mi/mi-main.c: Don't handle EXEC_ERROR.
6347
6348 2011-05-26  Pedro Alves  <pedro@codesourcery.com>
6349
6350         * record.c: Include event-loop.h, inf-loop.h.
6351         (record_beneath_to_async): New global.
6352         (tmp_to_async): New global.
6353         (record_async_inferior_event_token): New global.
6354         (record_open_1): Don't error out if async is enabled.
6355         (record_open): Handle to_async.  Create an async event source in
6356         the event loop.
6357         (record_close): Delete the async event source.
6358         (record_resumed): New global.
6359         (record_execution_dir): New global.
6360         (record_resume, record_core_resume): Set them.  Register the
6361         target on the event loop.
6362         (record_wait): Rename to ...
6363         (record_wait_1): ... this.  Add more debug output.  Handle
6364         TARGET_WNOHANG, and the target beneath returning
6365         TARGET_WAITKIND_IGNORE.
6366         (record_wait): Reimplement on top of record_wait_1.
6367         (record_async_mask_value): New global.
6368         (record_async, record_async_mask, record_can_async_p)
6369         (record_is_async_p, record_execution_direction): New functions.
6370         (init_record_ops, init_record_core_ops): Install new methods.
6371         * infrun.c (fetch_inferior_event): Temporarily switch the global
6372         execution direction to the direction the target was going.
6373         (execution_direction): Change type to int.
6374         * target.c (default_execution_direction): New function.
6375         (update_current_target): Inherit and de_fault
6376         to_execution_direction.
6377         * target.h (struct target_ops) <to_execution_direction>: New
6378         field.
6379         (target_execution_direction): New macro.
6380         * inferior.h (execution_direction): Change type to int.
6381
6382 2011-05-26  Pedro Alves  <pedro@codesourcery.com>
6383
6384         * infcall.c (call_function_by_hand): Don't allow calling functions
6385         in reverse execution mode.
6386
6387 2011-05-26  Pedro Alves  <pedro@codesourcery.com>
6388
6389         * infcmd.c (finish_command): Allow async finish in reverse.
6390
6391 2011-05-26  Yao Qi  <yao@codesourcery.com>
6392
6393         * gdb_thread_db.h: Delete.  Move to ...
6394         * common/gdb_thread_db.h: ... here.
6395
6396 2011-05-26  Pedro Alves  <pedro@codesourcery.com>
6397
6398         * infcmd.c (finish_backward): Set a step-resume breakpoint at the
6399         function's entry point instead of a manually managed momentary
6400         breakpoint, and only ever issue one proceed call.
6401         * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
6402         doing a reverse-finish, switch to stepi mode, to do another step.
6403         (insert_step_resume_breakpoint_at_sal): Make public.
6404         (normal_stop): No need to save function value return registers if
6405         going reverse.
6406         * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
6407
6408 2011-05-26  Pedro Alves  <pedro@codesourcery.com>
6409
6410         * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
6411         (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
6412         before BPSTAT_WHAT_STOP_SILENT.  Add BPSTAT_WHAT_HP_STEP_RESUME
6413         at the end.
6414         * breakpoint.c (update_breakpoints_after_exec): Also delete hp
6415         step-resume breakpoints.
6416         (print_it_typical): Handle bp_hp_step_resume.
6417         (bpstat_what): Ditto.
6418         (bptype_string): Ditto.
6419         (print_one_breakpoint_location): Ditto.
6420         (allocate_bp_location): Ditto.
6421         (mention): Ditto.
6422         (breakpoint_re_set_one): Ditto.
6423         * infrun.c (handle_inferior_event): Adjust.  Split
6424         BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
6425         BPSTAT_WHAT_HP_STEP_RESUME.
6426         (insert_step_resume_breakpoint_at_sal): Rename to ...
6427         (insert_step_resume_breakpoint_at_sal_1): ... this.  Add bptype
6428         parameter.  Handle it.
6429         (insert_step_resume_breakpoint_at_sal): Reimplement on top of
6430         insert_step_resume_breakpoint_at_sal_1.
6431         (insert_step_resume_breakpoint_at_frame): Rename to ...
6432         (insert_hp_step_resume_breakpoint_at_frame): ... this.  Adjust to
6433         set a high-priority step-resume breakpoint.
6434         (insert_step_resume_breakpoint_at_frame): Adjust comment.
6435         (insert_step_resume_breakpoint_at_caller): Ditto.
6436
6437 2011-05-26  Pedro Alves  <pedro@codesourcery.com>
6438
6439         * breakpoint.c (iterate_over_related_breakpoints): New.
6440         (do_map_delete_breakpoint): New.
6441         (delete_command): Pass do_map_delete_breakpoint to
6442         map_breakpoint_numbers.
6443         (do_disable_breakpoint): New.
6444         (do_map_disable_breakpoint): Iterate over the breakpoint's related
6445         breakpoints.
6446         (do_enable_breakpoint): Rename to ...
6447         (enable_breakpoint_disp): ... this.
6448         (enable_breakpoint): Adjust.
6449         (do_enable_breakpoint): New.
6450         (enable_once_breakpoint): Delete.
6451         (do_map_enable_breakpoint): New.
6452         (do_map_enable_once_breakpoint): New.
6453         (enable_once_command, enable_delete_command)
6454         (delete_trace_command): Iterate over the breakpoint's related
6455         breakpoints.
6456
6457 2011-05-26  Pedro Alves  <pedro@codesourcery.com>
6458
6459         * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
6460         for ALPHA_ZERO_REGNUM.
6461         (alpha_supply_int_regs): Explicitly supply zero as the value for
6462         ALPHA_ZERO_REGNUM in the register cache.
6463         * alpha-nat.c (fetch_osf_core_registers): Ditto.
6464
6465 2011-05-26  Yao Qi  <yao@codesourcery.com>
6466
6467         * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
6468
6469 2011-05-26  Tristan Gingold  <gingold@adacore.com>
6470
6471         * symfile.h (struct dwarf2_section_names): New type.
6472         (struct dwarf2_debug_sections): New type.
6473         (dwarf2_has_info): Add parameter.
6474         * dwarf2read.c (dwarf2_elf_names): New variable.
6475         (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
6476         (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
6477         (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
6478         (dwarf2_has_info): Add names parameter.  Pass names
6479         to dwarf2_locate_sections.
6480         (section_is_p): Rewrite using the names parameter.
6481         (dwarf2_locate_sections): Use section names from the names parameter.
6482         * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
6483         * elfread.c (read_psyms): Ditto.
6484         * machoread.c (macho_symfile_read): Ditto.
6485
6486 2011-05-25  Andreas Schwab  <schwab@redhat.com>
6487
6488         PR gdb/8677
6489         * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
6490
6491 2011-05-24  Keith Seitz  <keiths@redhat.com>
6492
6493         PR breakpoint/12803
6494         * linespec.c (keep_name_info): Add handling for "volatile" keyword.
6495         (decode_compound): Unconditionally call keep_name_info.
6496
6497 2011-05-24  Pedro Alves  <pedro@codesourcery.com>
6498
6499         * breakpoint.c (watchpoint_check): If the watchpoint went out of
6500         scope, clear its command list.
6501         (map_breakpoint_numbers): Don't walk the related breakpoints list
6502         of each breakpoint.
6503
6504 2011-05-24  Tom Tromey  <tromey@redhat.com>
6505
6506         * MAINTAINERS: Move Jim Blandy to past maintainers.
6507
6508 2011-05-24  Tristan Gingold  <gingold@adacore.com>
6509
6510         * symfile.h (enum dwarf2_section_enum): New type.
6511         (dwarf2_get_section_info): New prototype.
6512         * dwarf2read.c (dwarf2_get_section_info): Replace parameter
6513         section_name by sect.  Use a switch to select the info.
6514         * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
6515         (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
6516
6517 2011-05-24  Pedro Alves  <pedro@codesourcery.com>
6518
6519         * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
6520         shared library event breakpoint if there's no execution.
6521
6522 2011-05-24  Thiago Jung Bauermann  <bauerman@br.ibm.com>
6523
6524         * breakpont.c (remove_hw_watchpoints): Remove unused function.
6525         * breakpoint.h remove_hw_watchpoints(): Remove prototype.
6526
6527 2011-05-23  Tom Tromey  <tromey@redhat.com>
6528
6529         * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
6530         NULL.
6531
6532 2011-05-23  Doug Evans  <dje@google.com>
6533
6534         * python/lib/gdb/printing.py (register_pretty_printer): Add missing
6535         entry for RuntimeError to doc string.
6536
6537 2011-05-23  Jerome Guitton  <guitton@adacore.com>
6538
6539         * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
6540         sequence for probing loops.
6541
6542 2011-05-23  Pedro Alves  <pedro@codesourcery.com>
6543
6544         * infrun.c (user_visible_resume_ptid): Fix typos in describing
6545         comment.
6546
6547 2011-05-21  Mark Kettenis  <kettenis@gnu.org>
6548
6549         * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
6550         zero as the value for %g0 in the register cache.
6551         * sparc-tdep.c (sparc32_supply_gregset): Likewise.
6552         * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
6553
6554 2011-05-20  Pedro Alves  <pedro@codesourcery.com>
6555
6556         * infrun.c (proceed): Set previous_inferior_ptid here.
6557         (init_wait_for_inferior): Initialize previous_inferior_ptid from
6558         inferior_ptid, not null_ptid.
6559         (wait_for_inferior): Don't initialize previous_inferior_ptid here.
6560         (fetch_inferior_event): Nor here.
6561
6562 2011-05-20  Pedro Alves  <pedro@codesourcery.com>
6563
6564         * inf-loop.c (inferior_event_handler): Only output a message if
6565         verbose.
6566
6567 2011-05-20  Luis Machado  <lgustavo@codesourcery.com>
6568
6569         * MAINTAINERS: Update my e-mail address.
6570
6571 2011-05-20  Pedro Alves  <pedro@codesourcery.com>
6572
6573         * infrun.c (proceed): Switch the inferior event loop to
6574         INF_EXEC_COMPLETE if the target refused to resume from a
6575         vfork/fork.
6576
6577 2011-05-20  Pedro Alves  <pedro@codesourcery.com>
6578
6579         * infcmd.c: Include "inf-loop.h".
6580         (step_once): When stepping into an inline subroutine, pretend the
6581         target has run.  If the target can async, switch the inferior
6582         event loop to INF_EXEC_COMPLETE.
6583         * inferior.h (user_visible_resume_ptid): Declare.
6584         * infrun.c (user_visible_resume_ptid): New function, factored out
6585         from `resume'.
6586         (resume): Use it.
6587         * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
6588         that the current thread is running.  Merge async and sync
6589         branches.
6590
6591 2011-05-20  Pedro Alves  <pedro@codesourcery.com>
6592
6593         * infcmd.c (step_1): Simplify synchronous case.
6594
6595 2011-05-20  Pedro Alves  <pedro@codesourcery.com>
6596
6597         * tracepoint.c: Include exceptions.h.
6598         (TFILE_PID): Move higher in file.
6599         (tfile_open): Delay pushing the tfile target until we're assured
6600         the tfile header is present in the file.  Wrap reading the initial
6601         newline-terminated lines in TRY_CATCH.  Pop the target if the
6602         initial setup failed.  Add the tfile's thread immediately
6603         aftwards, before any non-essential setup.  Don't skip
6604         post_create_inferior if there are no traceframes present in the
6605         file.
6606         (tfile_close): Remove redundant check for null before xfree call.
6607         (tfile_thread_alive): New function.
6608         (init_tfile_ops): Register it as to_thread_alive callback.
6609
6610 2011-05-20  Pedro Alves  <pedro@codesourcery.com>
6611
6612         * tracepoint.c (tfile_open): Delete #if 0'd code.
6613
6614 2011-05-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
6615
6616         Fix -readnow for -gdwarf-4 unused type units.
6617         * dwarf2read.c (struct signatured_type): Remove the field offset.
6618         (create_signatured_type_table_from_index): Remove its initialization.
6619         (create_debug_types_hash_table): Likewise.  Initialize per_cu.offset
6620         instead.  Add a complaint call.
6621         (process_psymtab_comp_unit): Change assignment to gdb_assert.
6622         (process_type_comp_unit, lookup_die_type, dump_die_shallow)
6623         (lookup_signatured_type_at_offset, read_signatured_type)
6624         (write_one_signatured_type): Update the field for per_cu.
6625
6626 2011-05-19  Tom Tromey  <tromey@redhat.com>
6627
6628         * python/py-inferior.c (python_inferior_exit): Use
6629         target_gdbarch.
6630         (python_on_resume): Likewise.
6631
6632 2011-05-19  Matt Rice  <ratmice@gmail.com>
6633
6634         * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
6635
6636 2011-05-19  Hui Zhu  <teawater@gmail.com>
6637
6638         * tracepoint.c (tfile_trace_find): Return directly when num is -1.
6639
6640 2011-05-19  Hui Zhu  <teawater@gmail.com>
6641
6642         * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
6643
6644 2011-05-18  Tom Tromey  <tromey@redhat.com>
6645
6646         * dwarf2read.c (dwarf2_add_field): Constify.
6647         * value.c (value_static_field): Constify.
6648         * gdbtypes.h (struct main_type) <field.field_location.physname>:
6649         Now const.
6650         * ax-gdb.c (gen_static_field): Constify
6651
6652 2011-05-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
6653
6654         * linux-nat.c (kill_callback): Use SIGKILL first.
6655
6656 2011-05-18  Joel Brobecker  <brobecker@adacore.com>
6657
6658         * ada-lang.c (print_it_exception): Avoid use of sprintf.
6659
6660 2011-05-18  Tom Tromey  <tromey@redhat.com>
6661
6662         * value.c (value_fn_field): Constify.
6663         * symtab.c (gdb_mangle_name): Constify.
6664         * stabsread.c (update_method_name_from_physname): Make 'physname'
6665         argument const.
6666         * p-typeprint.c (pascal_type_print_method_args): Make arguments
6667         const.  Use explicit fputc_filtered loop.
6668         (pascal_type_print_base): Constify.
6669         * p-lang.h (pascal_type_print_method_args): Update.
6670         * linespec.c (add_matching_methods): Constify.
6671         (add_constructors): Likewise.
6672         * jv-typeprint.c (java_type_print_base): Constify.
6673         * gdbtypes.h (struct cplus_struct_type)
6674         <fn_fieldlist.fn_field.physname>: Now const.
6675         * dwarf2read.c (compute_delayed_physnames): Constify.
6676         (dwarf2_add_member_fn): Likewise.
6677         * c-typeprint.c (c_type_print_base): Constify.  Use cleanups.
6678
6679 2011-05-18  Pedro Alves  <pedro@codesourcery.com>
6680
6681         * infrun.c (resume): Mention which is the current thread, and its
6682         current PC in debug output.
6683         (prepare_to_proceed): Mention the thread switching in debug
6684         output.
6685
6686 2011-05-18  Tom Tromey  <tromey@redhat.com>
6687
6688         * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
6689         path check.  Use xmalloc and cleanups.
6690         (try_thread_db_load_from_dir): Use xmalloc and cleanups.
6691
6692 2011-05-17  Tom Tromey  <tromey@redhat.com>
6693
6694         * cp-valprint.c (cp_print_value_fields): Catch errors from
6695         value_static_field.
6696
6697 2011-05-17  Tom Tromey  <tromey@redhat.com>
6698
6699         * dwarf2read.c (dwarf2_get_die_type): Call
6700         get_die_type_at_offset.
6701         * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
6702         get_base_type function.
6703
6704 2011-05-17  Tomas Martinec  <fyzmat@gmail.com>
6705
6706         * infrun.c (handle_inferior_event) <handling deferred step>: Clear
6707         trap_expected.
6708
6709 2011-05-16  Doug Evans  <dje@google.com>
6710
6711         * python/py-auto-load.c (source_section_scripts): Mention objfile
6712         name in warning.
6713
6714 2011-05-15  Doug Evans  <dje@google.com>
6715
6716         * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
6717         (try_thread_db_load_from_pdir): Call it.  If unable to find
6718         libthread_db in directory of libpthread, see if we're looking at
6719         the separate-debug-info copy.
6720
6721         * python/py-autoload.c (print_script): Print "Missing" instead of
6722         "No" for missing scripts.
6723         (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
6724
6725 2011-05-13  Doug Evans  <dje@google.com>
6726
6727         * ui-file.c (stdio_file_write_async_safe): Add comment.
6728
6729 2011-05-14  Hui Zhu  <teawater@gmail.com>
6730
6731         * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
6732
6733 2011-05-13  Doug Evans  <dje@google.com>
6734
6735         Support $pdir and $sdir in libthread-db-search-path.
6736         * NEWS: Mention $sdir,$pdir.
6737         * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
6738         * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
6739         (try_thread_db_load_from_sdir): New function.
6740         (try_thread_db_load_from_dir): New function.
6741         (thread_db_load_search): Handle $pdir, $sdir.  Remove trying of
6742         system directories if search of libthread-db-search-path fails,
6743         that is now done via $sdir.
6744         (has_libpthread): New function.
6745         (thread_db_load): Remove search for libthread_db in directory of
6746         libpthread, that is now done via $pdir.
6747
6748         * NEWS: Mention "info auto-load-scripts".
6749         * python/py-auto-load.c (struct auto_load_pspace_info): New member
6750         script_not_found_warning_printed.
6751         (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
6752         all callers updated.  Initialize script_not_found_warning_printed.
6753         (get_auto_load_pspace_data_for_loading): New function.
6754         (maybe_add_script): New function.
6755         (source_section_scripts): Simplify.  Only print one warning regardless
6756         of the number of auto-load scripts not found.
6757         (clear_section_scripts): Clear script_not_found_warning_printed.
6758         (auto_load_objfile_script): Record script in hash table.
6759         (count_matching_scripts): New function.
6760         (maybe_print_script): Renamed from maybe_print_section_script, all
6761         callers updated.  Rewrite to use ui_out_*.
6762         (info_auto_load_scripts): Renamed from
6763         maintenance_print_section_scripts, all callers updated.
6764         (gdbpy_initialize_auto_load): "maintenance print section-scripts"
6765         renamed as "info auto-load-scripts".
6766
6767 2011-05-13  Tom Tromey  <tromey@redhat.com>
6768
6769         * dwarf2expr.c (read_uleb128): Cast intermediate result.
6770         (read_sleb128): Likewise.
6771
6772 2011-05-13  Tom Tromey  <tromey@redhat.com>
6773
6774         * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
6775         offset display.
6776
6777 2011-05-13  Doug Evans  <dje@google.com>
6778
6779         * linux-nat.c (debug_linux_nat_async): Delete.
6780         Replace all references to use debug_linux_nat instead.
6781         (show_debug_linux_nat_async): Delete.
6782         (sigchld_handler): Call ui_file_write_async_safe instead of
6783         fprintf_unfiltered.
6784         (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
6785         * ui-file.c (struct ui_file): New member to_write_async_safe.
6786         (null_file_write_async_safe): New function.
6787         (ui_file_write_async_safe): New function.
6788         (set_ui_file_write_async_safe): New function.
6789         (ui_file_new): Initialize to_write_async_safe.
6790         (stdio_file_write_async_safe): New function.
6791         (struct stdio_file): New member fd.
6792         (stdio_file_new): Initialize to_write_async_safe, fd.
6793         (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
6794         fileno.
6795         * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
6796         (set_ui_file_write_async_safe): Declare.
6797         (ui_file_write_async_safe): Declare.
6798
6799 2011-05-13  Tom Tromey  <tromey@redhat.com>
6800
6801         * utils.c (do_value_free): New function.
6802         (make_cleanup_value_free): Likewise.
6803         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
6804         freeing correctly.
6805         (dwarf2_loc_desc_needs_frame): Call
6806         make_cleanup_value_free_to_mark.
6807         * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
6808         * dwarf2expr.c (free_dwarf_expr_context): Don't call
6809         value_free_to_mark.
6810         (new_dwarf_expr_context): Don't call value_mark.
6811         * dwarf2-frame.c (execute_stack_op): Call
6812         make_cleanup_value_free_to_mark.
6813         * defs.h (make_cleanup_value_free): Declare.
6814
6815 2011-05-13  Thiago Jung Bauermann  <bauerman@br.ibm.com>
6816
6817         * mi/mi-main.c (mi_cmd_execute): Use cleanup from
6818         prepare_execute_command.
6819         * top.c (prepare_execute_command): Return cleanup.
6820         (execute_command): Use cleanup from prepare_execute_command.
6821         * top.h (prepare_execute_command): Change prototype to return
6822         cleanup.
6823         * defs.h (struct value): Add opaque declaration.
6824         (make_cleanup_value_free_to_mark): Add prototype.
6825         * utils.c (do_value_free_to_mark): New function.
6826         (make_cleanup_value_free_to_mark): Likewise.
6827
6828 2011-05-12  Tom Tromey  <tromey@redhat.com>
6829
6830         * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
6831         cast left-hand-side to unsigned.
6832
6833 2011-05-12  Tom Tromey  <tromey@redhat.com>
6834
6835         PR gdb/12617:
6836         * value.h (value_from_contents): Declare.
6837         * value.c (value_from_contents): New function.
6838         * dwarf2read.c (dwarf_stack_op_name): Add new values.
6839         (dwarf2_get_die_type): New function.
6840         * dwarf2loc.c (dwarf_expr_get_base_type): New function.
6841         (allocate_piece_closure): Acquire reference to values.
6842         (read_pieced_value): Update for value-based expressions.
6843         (write_pieced_value): Likewise.
6844         (free_pieced_value_closure): Call value_free as needed.
6845         (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
6846         Update for value-based expressions.
6847         * dwarf2loc.h (dwarf2_get_die_type): Declare.
6848         * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
6849         <get_base_type>: New field.
6850         (struct dwarf_expr_piece) <v.value>: Change type.
6851         <v.regno>: New field.
6852         (struct dwarf_expr_context) <mark>: New field.
6853         (dwarf_expr_piece, dwarf_expr_fetch): Update.
6854         (dwarf_expr_pop, dwarf_expr_push): Remove.
6855         (dwarf_expr_push_address): Declare.
6856         * dwarf2expr.c (dwarf_arch_cookie): New global.
6857         (struct dwarf_gdbarch_types): New.
6858         (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
6859         functions.
6860         (dwarf_expr_push): Change type of 'value' argument.  Update.  Now
6861         static.
6862         (dwarf_expr_push_address): New function.
6863         (dwarf_expr_pop): Now static.
6864         (dwarf_expr_fetch): Change return type.
6865         (dwarf_require_integral): New function.
6866         (dwarf_expr_fetch): Simplify.
6867         (add_piece): Update.
6868         (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
6869         functions.
6870         (execute_stack_op) <sign_ext>: Remove.
6871         Use values for DWARF stack.
6872         <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
6873         DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
6874         New cases.
6875         (_initialize_dwarf2expr): New function.
6876         (add_piece): Update.
6877         (new_dwarf_expr_context): Set new field.
6878         (free_dwarf_expr_context): Call value_free_to_mark.
6879         * dwarf2-frame.c (no_base_type): New function.
6880         (execute_stack_op): Set get_base_type field.  Update.
6881
6882 2011-05-12  Tom Tromey  <tromey@redhat.com>
6883
6884         * dwarf2read.c (read_common_block): Fix formatting.
6885
6886 2011-05-12  Kwok Cheung Yeung  <kcy@codesourcery.com>
6887
6888         * breakpoint.c (disable_breakpoint): Disable all locations
6889         associated with a tracepoint on target if a trace experiment is
6890         running.
6891         (disable_command): Disable a specific tracepoint location on target if
6892         a trace experiment is running.
6893         (do_enable_breakpoint): Enable all locations associated with a
6894         tracepoint on target if a trace experiment is running.
6895         (enable_command) Enable a specific tracepoint location on target if a
6896         trace experiment is running.
6897         * target.c (update_current_target): Add INHERIT and de_fault clauses for
6898         to_supports_enable_disable_tracepoint, to_enable_tracepoint and
6899         to_disable_tracepoint.
6900         * target.h: Add declaration of struct bp_location.
6901         (struct target_ops): Add new functions
6902         to_supports_enable_disable_tracepoint, to_enable_tracepoint and
6903         to_disable_tracepoint to target operations.
6904         (target_supports_enable_disable_tracepoint): New macro.
6905         (target_enable_tracepoint): New macro.
6906         (target_disable_tracepoint): New macro.
6907         * remote.c (struct remote_state): Add new field.
6908         (remote_enable_disable_tracepoint_feature): New.
6909         (remote_protocol_features): Add new entry.
6910         (remote_supports_enable_disable_tracepoint): New.
6911         (remote_enable_tracepoint): New.
6912         (remote_disable_tracepoint): New.
6913         (init_remote_ops): Add remote_enable_tracepoint,
6914         remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
6915         to remote operations.
6916         * tracepoint.c (start_tracing): Allow tracing to start without any
6917         tracepoints enabled with just a warning if they can be re-enabled
6918         later.
6919         * NEWS: Add news item for the new behaviour of the enable and disable
6920         GDB commands when applied to tracepoints.
6921         Add news items for the new remote packets QTEnable and QTDisable.
6922
6923 2011-05-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
6924
6925         * config.in: Regenerate.
6926         * configure: Regenerate.
6927         * configure.ac <--with-system-readline> (for readline_echoing_p):
6928         Remove the test.
6929         * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
6930         (tui_old_rl_echoing_p): ... here.
6931         (tui_setup_io): Rename extern declaration readline_echoing_p to
6932         _rl_echoing_p.  Adjust assignments for the both renames.
6933
6934 2011-05-11  Thiago Jung Bauermann  <bauerman@br.ibm.com>
6935
6936         * symtab.c (lookup_symtab): Run cleanup before returning.
6937
6938 2011-05-11  Tom Tromey  <tromey@redhat.com>
6939
6940         * dwarf2read.c (handle_data_member_location): New function.
6941         (dwarf2_add_field): Use it.
6942         (read_common_block): Likewise.
6943
6944 2011-05-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
6945
6946         Make addrs->SECTINDEX always defined.
6947         * symfile.c (relative_addr_info_to_section_offsets): Check for
6948         SECTINDEX -1, not for zero ADDR.
6949         (addrs_section_compar): Remove checking for invalid SECTINDEX.
6950         (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
6951         * symfile.h (struct section_addr_info) <sectindex>: Update the comment
6952         on its validity.
6953
6954 2011-05-10  Doug Evans  <dje@google.com>
6955
6956         * linux-thread-db.c: Whitespace cleanup.
6957         (try_thread_db_load_1): Fix comment.
6958
6959         * linux-thread-db.c (set_libthread_db_search_path): New function.
6960         (_initialize_thread_db): Add setter for libthread-db-search-path.
6961
6962 2011-05-09  Doug Evans  <dje@google.com>
6963
6964         * NEWS: Mention --with-iconv-bin.
6965         * configure.ac: New option --with-iconv-bin.
6966         * configure: Regenerate.
6967         * config.in: Regenerate.
6968         * defs.h (relocate_gdb_directory): Declare.
6969         * main.c (relocate_gdb_directory): Renamed from relocate_directory,
6970         removed progname parameter, and exported.  All callers updated.
6971         * charset.c (find_charset_names): Use --with-iconv-bin if specified.
6972
6973         * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
6974         adding missing call to restore_child_signals_mask.
6975
6976 2011-05-09  Pedro Alves  <pedro@codesourcery.com>
6977
6978         * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
6979         parameter.
6980         * infrun.c (proceed, start_remote): Adjust.
6981         (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
6982         and adjust to not handle it.
6983         * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
6984         * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
6985         * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
6986         * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
6987         * windows-nat.c (do_initial_windows_stuff): Adjust.
6988         * infcmd.c (attach_command): Adjust.
6989         (notice_new_inferior): Adjust.
6990
6991 2011-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
6992
6993         * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
6994         (ppu2spu_unwind_register): Mark pseudo registers unavailable.
6995         * spu-tdep.c (op_selb): Use correct value.
6996
6997 2011-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
6998
6999         * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
7000         "parent" parameter to symbol_file_add_from_bfd call.
7001
7002 2011-05-06  Sergio Durigan Junior  <sergiodj@linux.vnet.ibm.com>
7003             Thiago Jung Bauermann  <bauerman@br.ibm.com>
7004
7005         Implement support for PowerPC BookE masked watchpoints.
7006         * NEWS: Mention masked watchpoint support.  Create "Changed commands"
7007         section.
7008         * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
7009         method.  Initialize to NULL in all existing breakpoint_ops instances.
7010         (struct breakpoint) <hw_wp_mask>: New field.
7011         * breakpoint.c (is_masked_watchpoint): Add prototype.
7012         (update_watchpoint): Don't set b->val for masked watchpoints.  Call
7013         breakpoint's breakpoint_ops.works_in_software_mode if available.
7014         (watchpoints_triggered): Handle the case of a hardware masked
7015         watchpoint trigger.
7016         (watchpoint_check): Likewise.
7017         (works_in_software_mode_watchpoint): New function.
7018         (insert_masked_watchpoint, remove_masked_watchpoint)
7019         (resources_needed_masked_watchpoint)
7020         (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
7021         (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
7022         (print_recreate_masked_watchpoint, is_masked_watchpoint): New
7023         functions.
7024         (masked_watchpoint_breakpoint_ops): New structure.
7025         (watch_command_1): Check for the existence of the `mask' parameter.
7026         Set b->ops according to the type of hardware watchpoint being created.
7027         * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
7028         (ppc_linux_remove_mask_watchpoint)
7029         (ppc_linux_masked_watch_num_registers): New functions.
7030         (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
7031         to_remove_mask_watchpoint and to_masked_watch_num_registers.
7032         * target.c (update_current_target): Mention to_insert_mask_watchpoint,
7033         to_remove_mask_watchpoint, and to_masked_watch_num_registers.
7034         (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
7035         (target_masked_watch_num_registers): New functions.
7036         * target.h (struct target_ops) <to_insert_mask_watchpoint>,
7037         <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
7038         methods.
7039         (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
7040         (target_masked_watch_num_registers): Add prototypes.
7041
7042 2011-05-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
7043
7044         PR 12573
7045         * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
7046         (producer_is_gcc_ge_4_0): New function.
7047         (process_full_comp_unit): Set also symtab->locations_valid.  Move the
7048         symtab->language code.
7049         (var_decode_location): Set cu->has_loclist.
7050         * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
7051         skip.  Intialize force_skip from locations_valid.  Move the prologue
7052         skipping code into two passes.
7053         * symtab.h (struct symtab): Make the primary field a bitfield.  New
7054         field locations_valid.
7055
7056 2011-05-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
7057
7058         * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
7059         (classify_inner_name): Call cp_lookup_nested_type with
7060         yylval.tsym.type.
7061         * cp-namespace.c (cp_lookup_nested_type): New variable
7062         saved_parent_type.  Call CHECK_TYPEDEF for parent_type.  Call
7063         type_name_no_tag_or_error with saved_parent_type.
7064         * dwarf2read.c (load_partial_dies): Read in any children of
7065         DW_TAG_typedef with complaint in such case.
7066         * gdbtypes.c (type_name_no_tag_or_error): New function.
7067         * gdbtypes.h (type_name_no_tag_or_error): New prototype.
7068         * valops.c (destructor_name_p): New comment for parameter type.  Remove
7069         type const.  Make dname and cp const.  Call type_name_no_tag_or_error.
7070         * value.h (destructor_name_p): Remove type const.
7071
7072 2011-05-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
7073
7074         * symtab.c (compare_symbol_name): New function.
7075         (completion_list_add_name, expand_partial_symbol_name): Call it,
7076         remove the variable ncmp.
7077         (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
7078         gdb_assert it.
7079
7080 2011-05-05  Thiago Jung Bauermann  <bauerman@br.ibm.com>
7081
7082         Demote to sw watchpoint only in update_watchpoint.
7083         * breakpoint.c (update_watchpoint): Change between software and
7084         hardware watchpoint for all kinds of watchpoints, not just
7085         read/write ones.  Determine b->exact value here instead of
7086         in watch_command_1.  Error out if there are not enough resources
7087         for a read or access hardware watchpoint.
7088         (watch_command_1): Remove logic of checking whether there are
7089         enough resources available, since update_watchpoint will do that
7090         work now.  Don't set b->exact here.  Catch exceptions thrown by
7091         update_watchpoint and delete the watchpoint.
7092         (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
7093         Use target_exact_watchpoints instead.
7094         (delete_breakpoint): Notify observers only if deleted watchpoint
7095         has a breakpoint number assigned to it.
7096
7097 2011-05-05  Janis Johnson  <janisjo@codesourcery.com>
7098
7099         * MAINTAINERS: Add myself as a write-after-approval maintainer.
7100
7101 2011-05-05  Jerome Guitton  <guitton@adacore.com>
7102
7103         * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
7104         New functions.
7105         (i386_stack_tramp_frame_unwind): New static global.
7106         (i386_match_pattern): New function, extracted from i386_match_insn.
7107         (i386_match_insn): Use i386_match_pattern.
7108         (i386_match_insn_block): New function.
7109         (i386_tramp_chain_in_reg_insns)
7110         (i386_tramp_chain_on_stack_insns): New static variables.
7111         (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
7112         of unwinders.
7113
7114 2011-05-04  Joseph Myers  <joseph@codesourcery.com>
7115
7116         * configure.host (xscale*): Don't handle target.
7117         * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
7118         handle targets.
7119
7120 2011-05-04  Yao Qi  <yao@codesourcery.com>
7121
7122         * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
7123
7124 2011-05-03  Joel Brobecker <brobecker@adacore.com>
7125
7126         Revert:
7127         | 2011-03-07  Michael Snyder  <msnyder@vmware.com>
7128         | * elfread.c (elf_symtab_read): Stop memory leak.
7129
7130 2011-05-03  Pierre Muller  <muller@ics.u-strasbg.fr>
7131
7132         * nto-tdep.c (nto_target): Replace deprecated call to
7133         cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
7134
7135 2011-05-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
7136
7137         Fix false GCC warning.
7138         * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
7139
7140 2011-05-03  Thiago Jung Bauermann  <bauerman@br.ibm.com>
7141
7142         * breakpoint.c (update_watchpoint): Move code to change
7143         the enable state of breakpoint from here ...
7144         (do_enable_breakpoint): ... to here.
7145
7146 2011-04-26  Andrew Gontarek  <andrewg@cray.com>
7147
7148         * valprint.c (val_print_array_elements): Fixed poor performance
7149         of printing very large arrays with repeat_count_threshold set
7150         to unlimited.  New comment.
7151
7152 2011-04-29  Tom Tromey  <tromey@redhat.com>
7153
7154         * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
7155         (mi_parse): Likewise.
7156         * breakpoint.c (break_range_command): Use sizeof char*, not
7157         char**.
7158         (create_breakpoint): Likewise.
7159         (parse_breakpoint_sals): Likewise.
7160
7161 2011-04-29  Pedro Alves  <pedro@codesourcery.com>
7162
7163         * linux-nat.c (linux_child_remove_fork_catchpoint)
7164         (linux_child_remove_vfork_catchpoint)
7165         (linux_child_remove_exec_catchpoint): New functions.
7166         (linux_target_install_ops): Install them.
7167
7168 2011-04-29  Phil Muldoon  <pmuldoon@redhat.com>
7169
7170         PR mi/12531
7171
7172         * varobj.c (install_default_visualizer): Do not install a
7173         visualizer if the varobj is CPLUS_FAKE_CHILD.
7174         (construct_visualizer): Likewise.
7175
7176 2011-04-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
7177
7178         * symtab.c (expand_partial_symbol_name): New variable NCMP.  Support
7179         case insensitive comparison.
7180
7181 2011-04-28  Ulrich Weigand  <ulrich.weigand@linaro.org>
7182
7183         * infrun.c (proceed): Revert previous change.
7184         (resume): Instead, handle the case of signal delivery while stepping
7185         off a breakpoint location here, and only if software single-stepping
7186         is used.  Handle nested signals.
7187
7188 2011-04-28  Yao Qi  <yao@codesourcery.com>
7189
7190         * arm-tdep.c (copy_unmodified): Rename to ...
7191         (arm_copy_unmodified): .. this.  New.
7192         (copy_preload): Move common part to ...
7193         (install_preload): .. this.  New.
7194         (arm_copy_preload): New.
7195         (copy_preload_reg): Move common part to ...
7196         (install_preload_reg): ... this.  New.
7197         (arm_copy_preload_reg): New.
7198         (copy_b_bl_blx): Move common part to ...
7199         (install_b_bl_blx): .. this.  New.
7200         (arm_copy_b_bl_blx): New.
7201         (copy_bx_blx_reg): Move common part to ...
7202         (install_bx_blx_reg): ... this. New.
7203         (arm_copy_bx_blx_reg): New.
7204         (copy_alu_reg): Move common part to ...
7205         (install_alu_reg): ... this.  New.
7206         (arm_copy_alu_reg): New.
7207         (copy_alu_shifted_reg): Move common part to ...
7208         (install_alu_shifted_reg): ... this.  New.
7209         (copy_ldr_str_ldrb_strb): Move common part to ...
7210         (install_ldr_str_ldrb_strb): ... this.  New.
7211         (arm_copy_ldr_str_ldrb_strb): New.
7212         (copy_copro_load_store): Move some common part to ...
7213         (install_copy_copro_load_store): ... this.  New.
7214         (arm_copy_copro_load_store): New.
7215         (copy_svc): Delete.
7216         (arm_copy_svc): Renamed from copy_svc.
7217         (copy_undef): Delete.
7218         (arm_copy_undef): Renamed from copy_undef.
7219         (decode_ext_reg_ld_st): Delete.
7220         (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
7221         (decode_svc_copro): Delete.
7222         (arm_decode_svc_copro): Renamed from decode_svc_copro.
7223         (copy_copro_load_store, copy_alu_imm): update callers.
7224         (copy_extra_ld_st, copy_block_xfer): Likewise.
7225         (decode_misc_memhint_neon, decode_unconditional): Likewise.
7226         (decode_miscellaneous, decode_dp_misc): Likewise.
7227         (decode_ld_st_word_ubyte, decode_media): Likewise.
7228         (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
7229         (decode_svc_copro, decode_misc_memhint_neon): Likewise.
7230         (decode_unconditional, decode_miscellaneous): Likewise.
7231         (decode_media, decode_b_bl_ldmstm): Likewise.
7232         (arm_process_displaced_insn): Likewise..
7233         (decode_misc_memhint_neon): Delete.
7234         (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
7235         (decode_miscellaneous): Delete.
7236         (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
7237         (decode_dp_misc): Delete.
7238         (arm_decode_dp_misc): Renamed from decode_dp_misc.
7239         (decode_ld_st_word_ubyte): Delete.
7240         (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
7241         (decode_media): Delete.
7242         (arm_decode_media): Renamed from decode_media.
7243         (decode_b_bl_ldmstm): Delete.
7244         (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
7245         (decode_ext_reg_ld_st): Delete.
7246         (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
7247         (decode_unconditional): Delete.
7248         (arm_decode_unconditional): Renamed from decode_unconditional.
7249
7250 2011-04-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
7251
7252         Case insensitive lookups implementation.
7253         * dwarf2read.c: Include ctype.h.
7254         (struct mapped_index): New field version.
7255         (mapped_index_string_hash): New parameter index_version.  New comment
7256         for it.  Call tolower appropriately.
7257         (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
7258         Choose the right index version for mapped_index_string_hash.
7259         (dwarf2_read_index): Support also the index version 5.  Initialize the
7260         new struct mapped_index field version.
7261         (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
7262         (find_slot): Explain the version needs.  Pass INT_MAX for the new
7263         parameter.
7264         (write_psymtabs_to_index): Produce version 5.
7265         * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
7266         use it.  New comment for SYMBOL_MATCHES_SEARCH_NAME.
7267         * psymtab.c (lookup_partial_symbol): Find the
7268         SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
7269         entries.
7270         * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
7271         NAME lowercasing.
7272         (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
7273         (completion_list_add_name): New variable ncmp, initialize it, use it.
7274         * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
7275         * utils.c (strcmp_iw): Support case_sensitive_off.
7276         (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
7277         New function comment part.  New variables saved_string1,
7278         saved_string2 and case_pass.  Add a proper second pass.
7279
7280 2011-04-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
7281
7282         Replace re_comp/re_exec by regcomp/regexec.
7283         * symtab.c (struct search_symbols_data): New fields preg, preg_p.
7284         (search_symbols_name_matches): Use them, use regexec.
7285         (search_symbols): New variable retval_chain, adjust the use of
7286         old_chain against it.  Replace re_comp by regcomp.  Use the new struct
7287         search_symbols_data fields, use regexec instead of re_exec.
7288
7289 2011-04-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
7290
7291         Format the code for the next patch.
7292         * dwarf2read.c (struct mapped_index): Include delimiting newlines.
7293         * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
7294         New variables c1 and c2.
7295
7296 2011-04-27  Ulrich Weigand  <ulrich.weigand@linaro.org>
7297
7298         * infrun.c (proceed): Do not single-step into signal delivery
7299         when stepping off a breakpoint location.
7300         (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
7301         (insert_step_resume_breakpoint_at_caller): Likewise.
7302         (insert_step_resume_breakpoint_at_sal): Likewise.
7303         (insert_longjmp_resume_breakpoint): Likewise.
7304
7305 2011-04-27  Yao Qi  <yao@codesourcery.com>
7306
7307         * common/linux-ptrace.h: Remove include <sys/wait.h>.
7308
7309 2011-04-27  Joel Brobecker  <brobecker@adacore.com>
7310
7311         * procfs.c (procfs_pass_signals): Fix advance declaration.
7312
7313 2011-04-27  Ulrich Weigand  <ulrich.weigand@linaro.org>
7314
7315         * target.h (struct target_ops): Remove to_notice_signals;
7316         add to_pass_signals.
7317         (target_notice_signals): Remove.
7318         (target_pass_signals): Add prototype.
7319         * target.c (update_current_target): Remove to_notice_signals;
7320         mention to_pass_signals.
7321         (target_pass_signals): New function.
7322         (debug_to_notice_signals): Remove.
7323         (setup_target_debug): Do not install debug_to_notice_signals.
7324
7325         * infrun.c (signal_pass): New global.
7326         (resume): Call target_pass_signals.
7327         (handle_inferior_event): Report all signals while stepping over
7328         non-steppable watchpoint.  Reset trap_expected to ensure breakpoints
7329         are re-inserted when stepping over a signal handler.
7330         (signal_cache_update): New function.
7331         (signal_stop_update): Call it.
7332         (signal_print_update): Likewise.
7333         (signal_pass_update): Likewise.
7334         (handle_command): Call signal_cache_update and target_pass_signals
7335         instead of target_notice_signals.
7336         (_initialize_infrun): Initialize signal_pass.
7337
7338         * linux-nat.c (pass_mask): New global.
7339         (linux_nat_pass_signals): New function.
7340         (linux_nat_create_inferior): Report all signals initially.
7341         (linux_nat_attach): Likewise.
7342         (linux_nat_resume): Use pass_mask to decide whether to directly
7343         handle an inferior signal.
7344         (linux_nat_wait_1): Likewise.
7345         (linux_nat_add_target): Install to_pass_signals callback.
7346
7347         * nto-procfs.c (notice_signals): Remove.
7348         (procfs_resume): Do not call notice_signals.
7349         (procfs_notice_signals): Remove.
7350         (procfs_pass_signals): New function.
7351         (init_procfs_ops): Install to_pass_signals callback instead of
7352         to_notice_signals callback.
7353         (_initialize_procfs): Report all signals initially.
7354
7355         * procfs.c (procfs_notice_signals): Remove.
7356         (procfs_pass_signals): New function.
7357         (procfs_target): Install to_pass_signals callback instead of
7358         to_notice_signals callback.
7359         (register_gdb_signals): Remove.
7360         (procfs_debug_inferior): Report all signals initially.
7361         (procfs_init_inferior): Remove redundant register_gdb_signals call.
7362
7363         * remote.c (remote_pass_signals): Add numsigs and pass_signals
7364         parameters; use them instead of calling signal_..._state routines.
7365         (remote_notice_signals): Remove.
7366         (remote_start_remote): Report all signals initially.
7367         (remote_resume): Do not call remote_pass_signals.
7368         (_initialize_remote): Install to_pass_signals callback instead of
7369         to_notice_signals callback.
7370
7371 2011-04-27  Pedro Alves  <pedro@codesourcery.com>
7372
7373         * breakpoint.c (user_settable_breakpoint): Delete.
7374         (user_breakpoint_p): Remove check on user_settable_breakpoint.
7375         (delete_command): Check user_breakpoint_p instead of looking at
7376         the breakpoint's type.
7377         (disable_command): Ditto.
7378         (enable_command): Ditto.
7379         (delete_trace_command): Use user_breakpoint_p instead of looking
7380         at the breakpoint number directly.  When checking if there are
7381         user visible tracepoints, in order to know whether to ask the user
7382         for confirmation, check whether the breakpoint is actually a
7383         tracepoint.
7384
7385 2011-04-27  Vladimir Prus  <vladimir@codesourcery.com>
7386
7387         * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
7388         compilation.
7389
7390 2011-04-27  Vladimir Prus  <vladimir@codesourcery.com>
7391
7392         MI breakpoint notifications.
7393
7394         * annotate.c (breakpoint_changed): Adjust parameter type.
7395         * breakpoint.c (set_breakpoint_condition): Adjust to change
7396         in breakpoint_modified type.
7397         (breakpoint_set_commands): Likewise.
7398         (do_map_commands_command): Likewise.
7399         (bpstat_check_breakpoint_conditions): Notify that breakpoint has
7400         changed after bumping hit count.
7401         (bpstat_stop_status): Likewise.
7402         (print_one_breakpoint_location): Don't wrap in tuple here.
7403         (print_one_breakpoint): Always print individual locations.
7404         For locations, use unnamed tuple.
7405         (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
7406         has changed.
7407         (create_catchpoint, create_syscall_event_catchpoint): Call
7408         breakpoint_created obsever.
7409         (mention): Don't call breakpoint_created observer.
7410         (create_breakpoint_sal): Call breakpoint_created observer.
7411         (create_breakpoint, watch_command_1): Likewise.
7412         (create_ada_exception_breakpoint): Likewise.
7413         (delete_breakpoint): Call breakpoint_deleted breakpoint.
7414         (locations_are_equal): New.
7415         (update_breakpoint_locations): If locations were changed, notify.
7416         (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
7417         Call breakpoint_modified observer.
7418
7419         * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
7420         (mi_cmd_break_insert): Don't set observers for modify and delete.
7421         * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
7422         (mi_breakpoint_created, mi_breakpoint_deleted)
7423         (mi_breakpoint_modified): New.
7424         (mi_interpreter_init): Hook the above.
7425         * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
7426         while -break-* commands are executing.
7427         * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
7428         * mi/mi-out.c (struct ui_out_data): New field original_buffer.
7429         (mi_redirect): New.
7430         (mi_ui_out_impl): Hook in mi_redirect.
7431         (mi_field_skip): True to the name, skip the field, don't output
7432         a field with an empty value.
7433
7434         * python/py-breakpoint.c (gdbpy_breakpoint_created)
7435         (gdbpy_breakpoint_deleted): Adjust.
7436         * tui/tui-hooks.c (tui_event_create_breakpoint)
7437         (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
7438
7439 2011-04-26  Aleksandar Ristovski  <aristovski@qnx.com>
7440
7441         * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
7442         (procfs_remove_hw_watchpoint): Likewise.
7443
7444 2011-04-26  Michael Walle  <michael@walle.cc>
7445
7446         * remote.c (remote_start_remote): Ack packet after sending the
7447         interrupt sequence.
7448
7449 2011-04-26  Yao Qi  <yao@codesourcery.com>
7450
7451         * linux-nat.c: Move common macros to ...
7452         Include linux-ptrace.h.
7453         * common/linux-ptrace.h: ... here.  New.
7454
7455 2011-04-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
7456
7457         * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
7458         !objfile_has_partial_symbols.  New comment.
7459         * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
7460         SYM_READ_PSYMBOLS is not present. Extend the comment.
7461         * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
7462
7463 2011-04-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
7464
7465         * defs.h (ENUM_BITFIELD): Remove.
7466
7467 2011-04-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
7468             Eli Zaretskii  <eliz@gnu.org>
7469
7470         * NEWS: Document the new gdbserver --once option.
7471
7472 2011-04-21  Jie Zhang  <jzhang918@gmail.com>
7473
7474         * MAINTAINERS: Update my email address.
7475
7476 2011-04-21  Pierre Muller  <muller@ics.u-strasbg.fr>
7477
7478         * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
7479         (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
7480         function call if __STDC_ISO_10646__ macro is defined.
7481         (intermediate_encoding): New prototype.
7482         * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
7483         to generate compile time error for unsupported gdb_wchar_t size.
7484         (ENDIAN_SUFFIX): New macro.
7485         (intermediate_encoding): New function.
7486
7487 2011-04-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
7488
7489         * ada-lang.c (struct add_partial_datum): Update the comment for
7490         expand_partial_symbol_name.
7491         (ada_add_partial_symbol_completions): Rename to ...
7492         (ada_expand_partial_symbol_name): ... here, change return type, update
7493         function comment, call symbol_completion_match instead of
7494         symbol_completion_add.
7495         (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
7496         and ada_expand_partial_symbol_name.
7497         * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
7498         FILE_MATCHER.
7499         (dw2_map_symbol_names): Remove.
7500         (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
7501         * psymtab.c (map_symbol_names_psymtab): Remove.
7502         (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
7503         Support KIND == ALL_DOMAIN.  Exchange the NAME_MATCHER and KIND check
7504         order.
7505         (psym_functions): Unlist map_symbol_names_psymtab.
7506         (map_partial_symbol_names): Rename to ...
7507         (expand_partial_symbol_names): ... here, change the FUN type, call
7508         expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
7509         * psymtab.h (map_partial_symbol_names): Rename to ...
7510         (expand_partial_symbol_names): ... here, change the FUN type.
7511         * symfile.h (struct quick_symbol_functions): Update the description of
7512         expand_symtabs_matching.  Remove map_symbol_names.
7513         * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
7514         (struct add_name_data): Update the comment for
7515         expand_partial_symbol_name.
7516         (add_partial_symbol_name): Rename to ...
7517         (expand_partial_symbol_name): ... here.  Replace
7518         completion_list_add_name call by strncmp.
7519         (default_make_symbol_completion_list_break_on): Use now
7520         expand_partial_symbol_names and expand_partial_symbol_name.
7521         * symtab.h (enum search_domain): New element ALL_DOMAIN.
7522
7523 2011-04-20  Tom Tromey  <tromey@redhat.com>
7524
7525         * dwarf2read.c (save_gdb_index_command): Replace format
7526         documentation with a pointer to the manual.
7527
7528 2011-04-20  Pedro Alves  <pedro@codesourcery.com>
7529
7530         * regcache.c: Include remote.h.
7531         (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
7532         (regcache_dump): Handle regcache_dump_remote.
7533         (maintenance_print_remote_registers): New function.
7534         (_initialize_regcache): Install "maint print remote-registers"
7535         command.
7536         * remote.c (map_regcache_remote_table): New function, factored out
7537         from ...
7538         (init_remote_state): ... here.
7539         (remote_register_number_and_offset): New.
7540         * remote.h (remote_register_number_and_offset): Declare.
7541
7542 2011-04-20  Pedro Alves  <pedro@codesourcery.com>
7543
7544         * regcache.c (get_thread_arch_regcache): If creating a regcache for
7545         null_ptid, assume and allow a NULL address space, instead of
7546         asking the target for the ptid's address space.
7547         * infrun.c (ptid_is_pid): Remove assertion.
7548
7549 2011-04-19  Tom Tromey  <tromey@redhat.com>
7550
7551         * windows-tdep.c (windows_xfer_shared_library):
7552         * windows-nat.c (get_module_name, windows_make_so):
7553         * v850-tdep.c (v850_handle_pushm):
7554         * utils.c (null_cleanup, gdb_realpath):
7555         * ui-out.c (get_next_header):
7556         * tracepoint.c (clear_traceframe_info):
7557         * symtab.c (lookup_symtab):
7558         * serial.h (struct serial_ops):
7559         * mipsread.c (read_alphacoff_dynamic_symtab):
7560         * infcmd.c (print_return_value):
7561         * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
7562         * f-exp.y (parse_number):
7563         * exceptions.c (catch_exceptions):
7564         * dummy-frame.c (dummy_frame_this_id):
7565         * defs.h (struct cleanup):
7566         * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
7567         * arm-tdep.c (arm_push_dummy_call):
7568         * amd64-tdep.h (amd64_collect_xsave):
7569         * amd64-tdep.c (amd64_collect_xsave):
7570         * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
7571         * README (typing): Remove duplicate words.
7572         * cli/cli-decode.c (lookup_cmd_composition): Add comma.
7573         * infrun.c (siginfo_value_read): Fix typo.
7574         * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
7575         * top.c (source_line_number): Add comma.
7576
7577 2011-04-19  Marc Khouzam  <marc.khouzam@ericsson.com>
7578
7579         * thread.c (any_live_thread_of_process): Prioritize threads
7580         that are not executing.
7581         * gdbthread.h (any_live_thread_of_process): Update comment
7582         as per above change.
7583
7584 2011-04-19  Andreas Schwab  <schwab@linux-m68k.org>
7585
7586         * xcoffread.c (process_xcoff_symbol): Remove useless cast.
7587         (scan_xcoff_symtab): Likewise.
7588
7589 2011-04-19  Pierre Muller  <muller@ics.u-strasbg.fr>
7590
7591         * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
7592         inside if clause.
7593
7594 2011-04-19  Pierre Muller  <muller@ics.u-strasbg.fr>
7595             Pedro Alves  <pedro@codesourcery.com>
7596
7597         * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
7598         variables to simplify code and avoid == operator at end of
7599         line as this is against GNU coding standards.
7600
7601 2011-04-19  Pierre Muller  <muller@ics.u-strasbg.fr>
7602
7603         * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
7604         lm_name to name_lm to avoid conflict with lm_name function.
7605
7606 2011-04-19  Pierre Muller  <muller@ics.u-strasbg.fr>
7607
7608         ARI fixes: Use only lowercase function name for static functions.
7609         * nto-tdep.c (LM_ADDR): Rename to...
7610         (lm_addr): New function name.
7611         (nto_relocate_section_addresses): Adapt to change above.
7612         * solib-sunos.c (LM_ADDR): Rename to...
7613         (lm_addr): New function name.
7614         (LM_NEXT): Rename to...
7615         (lm_next): New function name.
7616         (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
7617         function name changes above.
7618         * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
7619         (lm_addr_from_link_map): New function name.
7620         (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
7621         (has_lm_dynamic_from_link_map): New function name.
7622         (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
7623         (lm_dynamic_from_link_map): New function name.
7624         (LM_ADDR_CHECK): Rename to...
7625         (lm_addr_check): New function name.
7626         (LM_NEXT): Rename to...
7627         (lm_next): New function name.
7628         (LM_PREV): Rename to...
7629         (lm_prev): New function name.
7630         (LM_NAME): Rename to...
7631         (lm_name): New function name.
7632         (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
7633         (ignore_first_link_map_entry): New function name.
7634         (svr4_keep_data_in_core): Adapt to function name changes above.
7635         (svr4_current_sos): Likewise.
7636         (enable_break): Likewise.
7637         (svr4_relocate_section_addresses): Likewise.
7638
7639 2011-04-19  Pierre Muller  <muller@ics.u-strasbg.fr>
7640
7641         ARI cleanup.
7642         * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
7643         sprintf. Simplify code and avoid loosing memory.
7644         (xtensa_register_reggroup_p): Extract assignment out of IF clause.
7645         (call0_frame_cache): Remove && operator from end of line.
7646
7647 2011-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
7648
7649         Fix libraries displacement if they change whether they were prelinked.
7650         * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
7651         does not match.  Comment why.
7652
7653 2011-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
7654
7655         * corelow.c: Include wrapper.h.
7656         (core_open): Call now gdb_target_find_new_threads.
7657         * wrapper.c: Include target.h.
7658         (gdb_target_find_new_threads): New.
7659         * wrapper.h (gdb_target_find_new_threads): New declaration.
7660
7661 2011-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
7662
7663         * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
7664         even if !TARGET_HAS_EXECUTION.
7665
7666 2011-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
7667
7668         Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
7669         * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
7670         bfd_get_synthetic_symtab.
7671         * jit.c (jit_register_code): Pass NULL to the new parameter parent.
7672         * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
7673         parameter parent, remove the call to add_separate_debug_objfile.
7674         * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
7675         * symfile-mem.c (symbol_file_add_from_memory): Likewise.
7676         * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
7677         parent, new comment for it, call add_separate_debug_objfile for it.
7678         (symbol_file_add_separate): Pass objfile as the parameter parent,
7679         remove the call to add_separate_debug_objfile.
7680         (symbol_file_add_from_bfd): New parameter parent, pass it.
7681         (symbol_file_add): Pass NULL to the new parameter parent.
7682         * symfile.h (symbol_file_add_from_bfd): New parameter parent.
7683
7684 2011-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
7685
7686         * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
7687         BSF_SYNTHETIC.
7688
7689 2011-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
7690
7691         Fix Python access to inlined frames.
7692         * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
7693         * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
7694
7695 2011-04-15  Tom Tromey  <tromey@redhat.com>
7696
7697         * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
7698
7699 2011-04-15  Gary Benson  <gbenson@redhat.com>
7700
7701         * MAINTAINERS: Add myself to write-after-approval section.
7702
7703 2011-04-14  Mike Frysinger  <vapier@gentoo.org>
7704
7705         * remote-sim.c (sim_command_completer): New function.
7706         (_initialize_remote_sim): Set completer to sim_command_completer.
7707
7708 2011-04-13  Thiago Jung Bauermann  <bauerman@br.ibm.com>
7709
7710         * breakpoint.c (print_exception_catchpoint): Rename to ...
7711         (print_it_exception_catchpoint): ... this.
7712         (gnu_v3_exception_catchpoint_ops): Update with new name
7713         for print_it_exception_catchpoint.
7714
7715 2011-04-13  Edjunior Machado  <emachado@linux.vnet.ibm.com>
7716
7717         * MAINTAINERS: Add myself for write after approval privileges.
7718
7719 2011-04-13  Marek Polacek  <mpolacek@redhat.com>
7720
7721         * MAINTAINERS: Add myself as a write-after-approval maintainer.
7722
7723 2011-04-13  Thiago Jung Bauermann  <bauerman@br.ibm.com>
7724
7725         * breakpoint.c (watch_command_1): Remove colon from exp_string.
7726
7727 2011-04-13  Thiago Jung Bauermann  <bauerman@br.ibm.com>
7728
7729         * breakpoint.c (save_breakpoints): Verify whether
7730         breakpoint_ops.print_recreate is defined before calling it.
7731
7732 2011-04-11  Gary Benson  <gbenson@redhat.com>
7733
7734         Fix failure with --enable-maintainer-mode.
7735         * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
7736
7737 2011-04-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
7738
7739         Code cleanup.
7740         * symtab.c (search_symbols): Reorder the KIND description in the
7741         function comment.  Remove the unused 4th element of types, types2,
7742         types3 and types4.  New gdb_assert on KIND.
7743         (symtab_symbol_info): Remove the unused 4th element of classnames.
7744         New gdb_assert on KIND.
7745         * symtab.h (enum search_domain): New warning in the enum comment.
7746         Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
7747         TYPES_DOMAIN.
7748
7749 2011-04-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
7750
7751         Fix crash of gdb save-index on a STABS file.
7752         * dwarf2read.c (write_psymtabs_to_index): Return also on no
7753         PSYMTABS_ADDRMAP.
7754
7755 2011-04-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
7756
7757         Fix DW_AT_accessibility compatibility with gcc-4.6+.
7758         * dwarf2read.c: Include ctype.h.
7759         (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
7760         functions.
7761         (dwarf2_add_field): Fix new_field->accessibility by calling
7762         dwarf2_default_access_attribute.  Restructure setting accessibility
7763         vs. virtuality.
7764         (dwarf2_add_member_fn): New variable accessibility.  Fix fnp
7765         is_private and is_protected by calling
7766         dwarf2_default_access_attribute.
7767
7768 2011-04-08  Kevin Buettner  <kevinb@redhat.com>
7769
7770         * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
7771         to the initialization.
7772
7773 2011-04-08  Steve Ellcey  <sje@cup.hp.com>
7774
7775         * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
7776         initalization.
7777
7778 2011-04-07  Pierre Muller  <muller@ics.u-strasbg.fr>
7779
7780         Remove support for old Cygwin 1.5 versions.
7781         * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
7782         function on old Cygwin version.
7783         * windows-nat.c: Remove cygwin version check and always define
7784         __USEWIDE for Cygwin compilation.
7785
7786 2011-04-07  Yao Qi  <yao@codesourcery.com>
7787
7788         * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
7789         and TO.
7790         * arm-tdep.c (cleanup_svc): Handle variable instruction size.
7791         (arm_copy_svc): Remove parameters INSN and TO.
7792         (decode_svc_copro): Update caller.
7793         * arm-tdep.h (struct displaced_step_closure): Remove parameters
7794         from function pointer `copy_svc_os'.
7795
7796 2011-04-07  Yao Qi  <yao@codesourcery.com>
7797
7798         * arm-tdep.c (cleanup_branch): Set a correct return address in
7799         LR for ARM and Thumb.
7800
7801 2011-04-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
7802
7803         Code cleanup.
7804         * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
7805         * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
7806         in the function comment, a new note on values compatibility.
7807         * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
7808         * symtab.h (SYMBOL_HASH_NEXT): New.
7809
7810 2011-04-06  Thiago Jung Bauermann  <bauerman@br.ibm.com>
7811
7812         * ppc-linux-nat.c (check_condition): Add len output parameter.
7813         Set it based on the memory region referenced in the condition
7814         expression.  Update all callers.
7815
7816 2011-04-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
7817
7818         Fix crash regression on systems featuring .gdb_index.
7819         * objfiles.c (free_objfile): Move the
7820         forget_cached_source_info_for_objfile call earlier.  Comment it.
7821         Extend the comment for objfile_free_data.
7822
7823 2011-04-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
7824
7825         Fix regression of displaying the debug format.
7826         * buildsym.c (end_symtab): Set symtab's debugformat and producer from
7827         subfile.
7828
7829 2011-04-04  Tom Tromey  <tromey@redhat.com>
7830
7831         * cli/cli-interp.c (struct captured_execute_command_args):
7832         Remove.
7833         (do_captured_execute_command): Remove.
7834         (safe_execute_command): Use TRY_CATCH.
7835         * cli/cli-script.c (struct wrapped_read_command_file_args):
7836         Remove.
7837         (wrapped_read_command_file): Remove.
7838         (script_from_file): Use TRY_CATCH.
7839         * exceptions.c (catch_exception): Remove.
7840         * exceptions.h (catch_exception): Remove.
7841         (deprecated_throw_reason): Update comment.
7842         * mi/mi-main.c (captured_mi_execute_command): Change 'data'
7843         argument to 'context'.
7844         (mi_execute_command): Use TRY_CATCH.
7845         * remote.c (struct start_remote_args): Remove.
7846         (remote_start_remote): Update; change arguments.
7847         (remote_open_1): Use TRY_CATCH.
7848
7849 2011-04-04  Tom Tromey  <tromey@redhat.com>
7850
7851         * tracepoint.c (scope_info): Update.
7852         * symtab.c (decode_line_spec): Update.
7853         * python/python.c (gdbpy_decode_line): Update.
7854         * linespec.h (decode_line_1): Update.
7855         * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
7856         (decode_compound, find_method, symtab_from_filename)
7857         (decode_variable): Likewise.
7858         * cli/cli-cmds.c (edit_command): Update.
7859         (list_command): Update.
7860         * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
7861         argument.
7862         (create_breakpoint): Update.
7863         (until_break_command): Update.
7864         (addr_string_to_sals): Update.
7865         (decode_line_spec_1): Update.
7866
7867 2011-04-04  Tom Tromey  <tromey@redhat.com>
7868
7869         * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
7870         (do_captured_parse_breakpoint): Remove.
7871         (create_breakpoint): `e' is now volatile.  Remove `parse_args'.
7872         Use TRY_CATCH directly.
7873
7874 2011-04-04  Tom Tromey  <tromey@redhat.com>
7875
7876         * symtab.h (free_symtab): Remove.
7877         (forget_cached_source_info_for_objfile): Declare.
7878         * symmisc.c (free_symtab): Remove.
7879         * source.c (forget_cached_source_info_for_objfile): New function.
7880         (forget_cached_source_info): Use it.
7881         * objfiles.c (free_objfile): Simplify check before calling
7882         clear_current_source_symtab_and_line.  Call
7883         forget_cached_source_info_for_objfile.
7884
7885 2011-04-04  Tom Tromey  <tromey@redhat.com>
7886
7887         * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
7888         (new_symtab): Don't set `free_code' on symtab.
7889         (new_linetable): Properly handle size==0.
7890         * symtab.h (struct symtab) <free_code, free_func>: Remove.
7891         * symmisc.c (free_symtab): Don't free the linetable.  Don't call
7892         free_func.
7893         * jv-lang.c (struct jv_per_objfile_data): New.
7894         (jv_per_objfile_free): Free the data.
7895         (get_dynamics_objfile): Allocate a jv_per_objfile_data.
7896         (get_java_class_symtab): Set the `dict' field on the
7897         jv_per_objfile_data.
7898         (free_class_block): Remove.
7899         * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
7900         the symtab.
7901
7902 2011-04-04  Tom Tromey  <tromey@redhat.com>
7903
7904         * symfile.c (reread_symbols): Update.
7905         * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
7906         field.
7907         * objfiles.c (allocate_objfile): Update.
7908         * cp-support.h (cp_check_possible_namespace_symbols): Don't
7909         declare.
7910         * cp-namespace.c (lookup_symbol_file): Don't call
7911         lookup_possible_namespace_symbol.
7912         (initialize_namespace_symtab, get_possible_namespace_block)
7913         (free_namespace_block, cp_check_possible_namespace_symbols)
7914         (check_possible_namespace_symbols_loop)
7915         (check_one_possible_namespace_symbol)
7916         (lookup_possible_namespace_symbol): Remove.
7917         (maintenance_cplus_namespace): Replace with notice.
7918         (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
7919
7920 2011-04-04  Tom Tromey  <tromey@redhat.com>
7921
7922         * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
7923         * symtab.h (struct symtab) <producer, debugformat>: Now const.
7924         * symmisc.c (free_symtab): Don't free debugformat.
7925         * buildsym.h (struct subfile) <producer, debugformat>: Now const.
7926         (record_debugformat, record_producer): Document.
7927         * buildsym.c (end_symtab): Don't save debugformat and producer
7928         names on obstack.
7929         (end_symtab): Don't free debugformat and producer fields.
7930         (record_debugformat): Don't call xstrdup.
7931         (record_producer): Likewise.
7932
7933 2011-04-04  Tom Tromey  <tromey@redhat.com>
7934
7935         * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
7936         (source_line_charpos, source_charpos_line): Remove.
7937
7938 2011-04-04  Tom Tromey  <tromey@redhat.com>
7939
7940         * symtab.h (domain_enum): Split in two...
7941         (enum search_domain): New.
7942         (search_symbols): Update.
7943         * symtab.c (print_symbol_info, symtab_symbol_info): Remove
7944         redundant declarations.
7945         (search_symbols): Change 'kind' argument to search_domain.
7946         Update.
7947         (print_symbol_info): Likewise.
7948         (symtab_symbol_info): Likewise.
7949         * symfile.h (struct quick_symbol_functions)
7950         <pre_expand_symtabs_matching>: Change type of 'kind' argument.
7951         <expand_symtabs_matching>: Likewise.
7952         * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
7953         (expand_symtabs_matching_via_partial): Update.
7954         * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
7955         (dw2_expand_symtabs_for_function): Update.
7956         * block.h: Moved anonymous enum...
7957         * defs.h (enum block_enum): ... here.  Now named.
7958
7959 2011-04-03  Joel Brobecker  <brobecker@adacore.com>
7960
7961         GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
7962         * version.in: Bump version to 7.3.50.20110403-cvs.
7963
7964 2011-04-03  Joel Brobecker  <brobecker@adacore.com>
7965
7966         * NEWS: Create a new section for the next release branch.
7967         Rename the section of the current branch, now that it has
7968         been cut.
7969
7970 2011-04-01  Ulrich Weigand  <ulrich.weigand@linaro.org>
7971
7972         * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
7973         for "fpscr" in target description.
7974
7975 2011-04-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
7976
7977         * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
7978         initialize it.  Delay HASH initialization.  Strip the part after open
7979         parenthesis for languages with qualifiers.  Call do_cleanups.
7980
7981 2011-04-01  Tom Tromey  <tromey@redhat.com>
7982
7983         * utils.c (report_command_stats): Don't print `-' for negative
7984         number.
7985
7986 2011-04-01  Eric Botcazou  <ebotcazou@adacore.com>
7987
7988         * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
7989         (ada_value_slice, empty_array, to_fixed_array_type): Deal with
7990         typedefs.
7991
7992 2011-04-01  Joel Brobecker  <brobecker@adacore.com>
7993
7994         * breakpoint.h (bpdisp_text): Add declaration.
7995         * breakpoint.c (bpdisp_text): Make non-static.
7996         * ada-lang.c: #include "mi/mi-common.h".
7997         (print_it_exception): Rewrite to improve GDB/MI output.
7998
7999 2011-04-01  Pedro Alves  <pedro@codesourcery.com>
8000
8001         * arm-tdep.h (struct address_space): Add forward declaration.
8002
8003 2011-04-01  Ulrich Weigand  <ulrich.weigand@linaro.org>
8004
8005         * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
8006         * arm-tdep.c (arm_override_mode): New global.
8007         (arm_pc_is_thumb): Respect arm_override_mode.  Remove single-step
8008         execution mode heuristics.
8009         (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
8010         second single-step breakpoint if needed, using
8011         arm_insert_single_step_breakpoint.
8012         (arm_get_next_pc_raw): Remove INSERT_BKTP argument.  Only handle
8013         ARM execution mode, do not call thumb_get_next_pc_raw.
8014         (arm_get_next_pc): Encode execution mode in return value.  Call
8015         either arm_get_next_pc_raw or thumb_get_next_pc_raw.
8016         (arm_insert_single_step_breakpoint): New function.
8017         (arm_software_single_step): Call it.
8018         * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
8019         argument to return execution mode of sigreturn target.
8020         (arm_linux_syscall_next_pc): Use it.
8021         (arm_linux_copy_svc): Update call.
8022         (arm_linux_software_single_step): Call
8023         arm_insert_single_step_breakpoint.
8024
8025 2011-03-31  Jan Kratochvil  <jan.kratochvil@redhat.com>
8026
8027         * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
8028         the comment.
8029
8030 2011-03-31  Tom Tromey  <tromey@redhat.com>
8031
8032         * varobj.c (update_dynamic_varobj_children): Properly handle
8033         errors from iterator.
8034
8035 2011-03-31  Jan Kratochvil  <jan.kratochvil@redhat.com>
8036
8037         * dwarf2read.c (dwarf2_name): Initialize DEMANGLED.  Avoid demangling
8038         struct linkage name twice.
8039
8040 2011-03-31  Tom Tromey  <tromey@redhat.com>
8041
8042         * python/py-prettyprint.c (print_stack_unless_memory_error): Add
8043         missing ">" to message.
8044
8045 2011-03-31  Tom Tromey  <tromey@redhat.com>
8046
8047         * varobj.c (instantiate_pretty_printer): Remove duplicate
8048         'return'.
8049
8050 2011-03-31  Ulrich Weigand  <ulrich.weigand@linaro.org>
8051
8052         * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
8053         if neither saved value nor register available (e.g. signal frame).
8054
8055 2011-03-31  Thiago Jung Bauermann  <bauerman@br.ibm.com>
8056
8057         * macroexp.c (expand): Avoid uninitialized variable
8058         compiler warning.
8059
8060 2011-03-31  Thiago Jung Bauermann  <bauerman@br.ibm.com>
8061
8062         * breakpoint.c (break_range_command): Fix typo in comment.
8063
8064 2011-03-31  Thiago Jung Bauermann  <bauerman@br.ibm.com>
8065             Sergio Durigan Junior  <sergiodj@linux.vnet.ibm.com>
8066
8067         Implement support for PowerPC BookE ranged breakpoints.
8068         * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
8069         * breakpoint.h (struct bp_target_info) <length>: New member
8070         variable.
8071         (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
8072         instead of struct breakpoint as argument, and also add ASPACE
8073         and BP_ADDR arguments.  Update all callers.
8074         (struct breakpoint_ops) <print_one_detail>: New method.
8075         (struct breakpoint) <addr_string_range_end>: New member variable.
8076         * breakpoint.c (breakpoint_location_address_match): Add function
8077         prototype.
8078         (insert_bp_location): Set bl->target_info.length.
8079         (breakpoint_here_p): Call breakpoint_location_address_match.
8080         (moribund_breakpoint_here_p): Likewise.
8081         (regular_breakpoint_inserted_here_p): Likewise.
8082         (breakpoint_thread_match): Likewise.
8083         (bpstat_stop_status): Likewise.
8084         (bpstat_check_location): Move call to
8085         breakpoint_ops.breakpoint_hit to the top.
8086         (print_one_breakpoint_location): Call
8087         breakpoint_ops.print_one_detail if available.
8088         (breakpoint_address_match_range): New function.
8089         (breakpoint_location_address_match): Likewise.
8090         (breakpoint_locations_match): Compare the length field of the
8091         locations too.
8092         (hw_breakpoint_used_count): Count resources used by all locations
8093         in a breakpoint, and use breakpoint_ops.resources_needed if
8094         available.
8095         (breakpoint_hit_ranged_breakpoint): New function.
8096         (resources_needed_ranged_breakpoint): Likewise.
8097         (print_it_ranged_breakpoint): Likewise.
8098         (print_one_ranged_breakpoint): Likewise.
8099         (print_one_detail_ranged_breakpoint): Likewise.
8100         (print_mention_ranged_breakpoint): Likewise.
8101         (print_recreate_ranged_breakpoint): Likewise.
8102         (ranged_breakpoint_ops): New structure.
8103         (find_breakpoint_range_end): New function.
8104         (break_range_command): Likewise.
8105         (delete_breakpoint): Free addr_string_range_end.
8106         (update_breakpoint_locations): Add SALS_END argument.  Update
8107         all callers.  Calculate breakpoint length if a non-zero SALS_END
8108         is given.  Call breakpoint_locations_match instead of
8109         breakpoint_address_match.
8110         (reset_breakpoint): Find SaL of the end of the range if B is a
8111         ranged breakpoint.
8112         (_initialize_breakpoint): Register break-range command.
8113         * defs.h (print_core_address): Add function prototype.
8114         * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
8115         function.
8116         (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
8117         (ppc_linux_remove_hw_breakpoint): Likewise.
8118         (_initialize_ppc_linux_nat): Initialize
8119         to_ranged_break_num_registers.
8120         * target.c (update_current_target): Add comment about
8121         to_ranged_break_num_registers.
8122         (target_ranged_break_num_registers): New function.
8123         * target.h (struct target_ops) <to_ranged_break_num_registers>:
8124         New method.
8125         (target_ranged_break_num_registers): Add function prototype.
8126         * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
8127         * utils.c (print_core_address): ... here.
8128
8129 2011-03-31  Ulrich Weigand  <uweigand@de.ibm.com>
8130
8131         * breakpoint.c (addr_string_to_sals): Avoid uninitialized
8132         variable compiler warning.
8133
8134 2011-03-30  Thiago Jung Bauermann  <bauerman@br.ibm.com>
8135
8136         * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
8137         code from here ...
8138         (re_set_breakpoint): ... to here ...
8139         (addr_string_to_sals): ... and here.
8140
8141 2011-03-29  Pierre Muller  <muller@ics.u-strasbg.fr>
8142
8143         * Makefile.in (SFILES): Add missing C sources.
8144         (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
8145         Add missing headers.
8146
8147 2011-03-29  Mike Frysinger  <vapier@gentoo.org>
8148
8149         * .gitignore: New file.
8150
8151 2011-03-29  Mike Frysinger  <vapier@gentoo.org>
8152
8153         * NEWS: Mention new cfi device simulation.
8154
8155 2011-03-29  Tom Tromey  <tromey@redhat.com>
8156
8157         * dwarf2read.c (fixup_partial_die): Handle linkage name on
8158         otherwise anonymous types.
8159         (dwarf2_name): Likewise.
8160         * valops.c (value_struct_elt_for_reference): Refine artificial
8161         type logic.  Call error if j==-1.
8162
8163 2011-03-29  Andreas Tobler  <andreast-list@fgznet.ch>
8164
8165         Fix false GCC warning.
8166         * infcall.c (find_function_addr): Initialize funaddr.
8167
8168 2011-03-29  Pierre Muller  <muller@ics.u-strasbg.fr>
8169
8170         Fix mingw compilation with --enable-targets=all.
8171         * remote-mips.c (gdb_usleep.h): Include header.
8172         (mips_enter_debug): Use gdb_usleep instead of sleep.
8173
8174 2011-03-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
8175
8176         Support resolution of STT_GNU_IFUNC via breakpoints.
8177         * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
8178         bp_gnu_ifunc_resolver_return.
8179         (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
8180         the loop.  Support bp_gnu_ifunc_resolver and
8181         bp_gnu_ifunc_resolver_return.  New comment after the loop.  New loop
8182         for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
8183         breakpoints.
8184         (bptype_string, print_one_breakpoint_location): Support
8185         bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
8186         (user_settable_breakpoint): Return true also for
8187         bp_gnu_ifunc_resolver.
8188         (allocate_bp_location): Support bp_gnu_ifunc_resolver and
8189         bp_gnu_ifunc_resolver_return.
8190         (set_breakpoint_location_function): New parameter explicit_loc,
8191         describe it.  Call find_pc_partial_function_gnu_ifunc with new
8192         variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
8193         EXPLICIT_LOC is not set.
8194         (set_raw_breakpoint): Set EXPLICIT_LOC for
8195         set_breakpoint_location_function.
8196         (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
8197         set_breakpoint_location_function.
8198         (mention): Support bp_gnu_ifunc_resolver and
8199         bp_gnu_ifunc_resolver_return.
8200         (add_location_to_breakpoint): Set EXPLICIT_LOC for
8201         set_breakpoint_location_function.
8202         (update_breakpoint_locations): Remove static.
8203         (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
8204         bp_gnu_ifunc_resolver_return.
8205         * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
8206         bp_gnu_ifunc_resolver_return.
8207         (update_breakpoint_locations): New declaration.
8208         * elfread.c: Include gdbthread.h and regcache.h.
8209         (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
8210         functions.
8211         (elf_gnu_ifunc_fns): Install them.
8212         * minsyms.c (stub_gnu_ifunc_resolver_stop)
8213         (stub_gnu_ifunc_resolver_return_stop): New functions.
8214         (stub_gnu_ifunc_fns): Install them.
8215         * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
8216         and gnu_ifunc_resolver_return_stop.
8217         (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
8218
8219 2011-03-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
8220
8221         STT_GNU_IFUNC reader implementation.
8222         * elfread.c: Include gdbtypes.h, value.h and infcall.h.
8223         (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
8224         (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
8225         (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
8226         (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
8227         (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
8228         (elf_gnu_ifunc_resolve_addr): New.
8229         (elf_symfile_read): Call elf_rel_plt_read.
8230         (elf_gnu_ifunc_fns): New.
8231         (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
8232         Install elf_gnu_ifunc_fns.
8233         * infcall.c (find_function_return_type): New function.
8234         (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
8235         * minsyms.c (stub_gnu_ifunc_resolve_addr)
8236         (stub_gnu_ifunc_resolve_name): New functions.
8237         (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
8238         * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
8239         (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
8240
8241 2011-03-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
8242
8243         Code cleanup for later STT_GNU_IFUNC support.
8244         * infcall.c (find_function_addr): Remove variable code, use explicit
8245         dereferences for it.  Move VALUE_TYPE initialization later.
8246
8247 2011-03-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
8248
8249         GDB find_pc_partial_function support for STT_GNU_IFUNC.
8250         * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
8251         (clear_pc_function_cache): Clear it.
8252         (find_pc_partial_function): Rename to ...
8253         (find_pc_partial_function_gnu_ifunc): ... this function.  New
8254         parameter is_gnu_ifunc_p, describe it.  Set *IS_GNU_IFUNC_P.
8255         (find_pc_partial_function): New wrapper for this function.
8256         * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
8257
8258 2011-03-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
8259
8260         GDB internal type support for STT_GNU_IFUNC.
8261         * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
8262         (elf_symtab_read): Set mst_text_gnu_ifunc for
8263         BSF_GNU_INDIRECT_FUNCTION.
8264         * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
8265         * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
8266         builtin_func_func, nodebug_text_gnu_ifunc_symbol and
8267         nodebug_got_plt_symbol.
8268         * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
8269         (TYPE_GNU_IFUNC): New.
8270         (struct main_type): New field flag_gnu_ifunc.
8271         (struct builtin_type): New field builtin_func_func.
8272         (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
8273         nodebug_got_plt_symbol.
8274         * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
8275         (in_gnu_ifunc_stub): New.
8276         (prim_record_minimal_symbol, find_solib_trampoline_target): Support
8277         mst_text_gnu_ifunc.
8278         * parse.c (write_exp_msymbol): New variable ifunc_msym.  Detect and
8279         support mst_text_gnu_ifunc.  Support mst_slot_got_plt.
8280         * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
8281         in_gnu_ifunc_stub.
8282         * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
8283         * symtab.c (search_symbols): Likewise.
8284         * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
8285         and mst_slot_got_plt.
8286         (in_gnu_ifunc_stub): New declaration.
8287
8288 2011-03-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
8289
8290         Support a ring of related breakpoints.
8291         * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
8292         other functions, add gdb_assert.
8293         (update_watchpoint, watchpoint_check): Add gdb_assert.  Use
8294         watchpoint_del_at_next_stop.
8295         (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
8296         (bpstat_stop_status): Handle ring in related_breakpoint.
8297         (set_raw_breakpoint_without_location): Initialize ring in
8298         related_breakpoint.
8299         (delete_breakpoint): Handle ring in related_breakpoint, use
8300         watchpoint_del_at_next_stop.
8301         (map_breakpoint_numbers): Handle ring in related_breakpoint.
8302
8303 2011-03-28  Tom Tromey  <tromey@redhat.com>
8304
8305         PR symtab/12441:
8306         * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
8307         with `language_minimal'.
8308
8309 2011-03-25  Ulrich Weigand  <ulrich.weigand@linaro.org>
8310
8311         * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
8312         instead of checking for STT_ARM_TFUNC symbol type.
8313
8314 2011-03-25  Tom Tromey  <tromey@redhat.com>
8315
8316         * linespec.c (symbol_found): Restore line-based result for
8317         non-LOC_LABEL symbols.
8318
8319 2011-03-25  Kai Tietz  <ktietz@redhat.com>
8320
8321         * tui/tui-source.c (tui_set_source_content): Use filename_cmp
8322         instead of strcmp for comparison.
8323         (tui_source_is_displayed): Likewise.
8324         * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
8325
8326 2011-03-24  Mark Wielaard  <mjw@redhat.com>
8327
8328         * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
8329         complaint.
8330         (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
8331         (find_partial_die_in_comp_unit): Likewise in comment.
8332         (read_attribute_value): Likewise.
8333         (lookup_die_type): Likewise.
8334         (dwarf_form_name): Likewise.
8335         (dump_die_shallow): Likewise.
8336         (follow_die_ref_or_sig): Likewise.
8337
8338 2011-03-24  Tom Tromey  <tromey@redhat.com>
8339
8340         PR breakpoints/11816:
8341         * linespec.c (decode_line_1): Parse `function:label' linespecs.
8342         (decode_compound): Update.
8343         (find_function_symbol): New function.
8344         (decode_dollar): Update.
8345         (decode_label): Add 'function_symbol' parameter.  Handle
8346         function-relative labels.
8347         (decode_variable): Update.
8348         (symbol_found): Add 'function_symbol' parameter.  Use label's PC,
8349         not its line.  Set `special_display' and canonical name for
8350         labels.
8351
8352 2011-03-24  Tom Tromey  <tromey@redhat.com>
8353
8354         * linespec.h (struct linespec_result) <special_display>: New
8355         field.
8356         * breakpoint.h (struct breakpoint) <display_canonical>: New
8357         field.
8358         * breakpoint.c (print_breakpoint_location): Respect
8359         display_canonical.
8360         (create_breakpoint_sal): Add 'display_canonical' parameter.
8361         (create_breakpoints_sal): Update.
8362         (create_breakpoint): Update.
8363
8364 2011-03-24  Tom Tromey  <tromey@redhat.com>
8365
8366         * symtab.c (decode_line_spec): Update.
8367         * linespec.c (build_canonical_line_spec): Change type of
8368         'canonical'.
8369         (decode_line_2, decode_line_1, decode_objc, decode_compound)
8370         (find_method, decode_all_digits, decode_dollar, decode_label)
8371         (symbol_found): Likewise.
8372         (init_linespec_result): New function.
8373         * breakpoint.c (struct captured_parse_breakpoint_args)
8374         <canonical_p>: New field, replaces addr_string_p.
8375         (create_breakpoints_sal): Add 'canonical' parameter, replacing
8376         'addr_string'.
8377         (parse_breakpoint_sals): Likewise.
8378         (do_captured_parse_breakpoint): Update.
8379         (create_breakpoint): Use struct linespec_result.
8380         (until_break_command): Update.
8381         (breakpoint_re_set_one): Update.
8382         (decode_line_spec_1): Update.
8383         * linespec.h (struct linespec_result): New.
8384         (init_linespec_result): Declare.
8385
8386 2011-03-23  Pedro Alves  <pedro@codesourcery.com>
8387
8388         * regcache.c (regcache_raw_read): If the target didn't supply a
8389         given raw register, mark it as unavailable.
8390
8391 2011-03-23  Kai Tietz  <ktietz@redhat.com>
8392
8393         * breakpoint.c (clear_command): Use filename_cmp
8394         instead of strcmp for comparison.
8395         * buildsym.c (watch_main_source_file_lossage): Likewise.
8396         (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
8397         checking just for slash.
8398         * dbxread.c (read_dbx_symtab): Use lbasename instead of
8399         strrchr and filename_cmp instead of strcmp for filenames.
8400         (add_old_header_file): Use filename_cmp
8401         instead of strcmp for comparison.
8402         * exec.c (exec_set_section_address): Likewise.
8403         * macrotab.c (macro_lookup_inclusion): Likewise.
8404         (macro_lookup_inclusion): Likewise.
8405         * elfread.c (_initialize_elfread): Likewise.
8406         (elfstab_offset_sections): Likewise.
8407         (elfstab_offset_sections): Use lbasename instead of
8408         strrchr.
8409         * mdebugread.c (parse_partial_symbols): Likewise.
8410         (arse_partial_symbols): Use filename_(n)cmp instead of
8411         str(n)cmp for comparison.
8412         * minsyms.c (lookup_minimal_symbol): Likewise.
8413         * psymtab.c (read_psymtabs_with_filename): Likewise.
8414         * solib.c (solib_read_symbols): Likewise.
8415         (reload_shared_libraries_1): Likewise.
8416         * symmisc.c (maintenance_print_symbols): Likewise.
8417         * symfile.c (separate_debug_file_exists): Likewise.
8418         (reread_symbols): Likewise.
8419         (find_separate_debug_file_by_debuglink): Likewise.
8420         * remote-fileio.c (remote_fileio_func_rename): Likewise.
8421         * source.c (add_path): Likewise.
8422         * symtab.c (filename_seen): Likewise.
8423         (file_matches): Likewise.
8424         (print_symbol_info): Likewise.
8425         (maybe_add_partial_symtab_filename): Likewise.
8426         (make_source_files_completion_list): Likewise.
8427         * xml-syscall.c (init_sysinfo): Likewise.
8428         * windows-nat.c (_initialize_check_for_gdb_ini): Use
8429         IS_DIR_SEPARATOR for checking for trailing path separator.
8430
8431 2011-03-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
8432
8433         * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value.  New
8434         label abort_expression.
8435         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
8436         DWARF_VALUE_OPTIMIZED_OUT.
8437
8438 2011-03-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
8439
8440         Code cleanup.
8441         * c-typeprint.c (c_type_print_args): Change parameter show_artificial
8442         to linkage_name.  Invert its value.  Update the function comment.
8443         (c_type_print_varspec_suffix): Invert it at the caller.
8444         * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
8445
8446 2011-03-22  Pedro Alves  <pedro@codesourcery.com>
8447
8448         * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
8449         errors when reading the `stop_pc'.
8450         * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
8451         get_frame_pc.
8452
8453 2011-03-22  Phil Muldoon  <pmuldoon@redhat.com>
8454
8455         * NEWS: Document gdb.Write stream keyword.
8456
8457 2011-03-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
8458
8459         Revert:
8460         2011-03-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
8461         * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
8462         (dwarf2_add_field): Fix new_field->accessibility for
8463         cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
8464
8465 2011-03-22  Phil Muldoon  <pmuldoon@redhat.com>
8466
8467         PR python/12183
8468
8469         * python/py-function.c (fnpy_call): Treat GdbErrors differently to
8470         other error classes.  Do not print stack trace.
8471
8472 2011-03-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
8473
8474         * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
8475         (dwarf2_add_field): Fix new_field->accessibility for
8476         cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
8477
8478 2011-03-21  Ulrich Weigand  <ulrich.weigand@linaro.org>
8479
8480         * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
8481         encountering a load via a non-SP register.
8482
8483 2011-03-21  Ulrich Weigand  <uweigand@de.ibm.com>
8484
8485         * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
8486         field in returned unwinder.
8487
8488 2012-03-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
8489
8490         * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
8491
8492 2012-03-21  Joel Brobecker  <brobecker@adacore.com>
8493
8494         * ada-lang.c (replace_operator_with_call): Use xzalloc instead
8495         of xmalloc.
8496
8497 2012-03-18  Pedro Alves  <pedro@codesourcery.com>
8498
8499         * frame.c (frame_unwind_register): Throw an error if unwinding the
8500         register failed.
8501         * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
8502         an unwind stop reason.
8503         (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
8504         * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
8505         UNWIND_UNAVAILABLE>: New.
8506         * inline-frame.c (inline_frame_unwind): Install
8507         default_frame_unwind_stop_reason.
8508         * frame-unwind.c: Include "exceptions.h".
8509         (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
8510         (default_frame_unwind_stop_reason): New.
8511         * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
8512         (default_frame_unwind_stop_reason): Declare.
8513         (struct frame_unwind) <stop_reason>: New function pointer.
8514
8515         * dummy-frame.c: Install default_frame_unwind_stop_reason.
8516         * dwarf2-frame.c: Include exceptions.h.
8517         (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
8518         (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
8519         computing the CFA.  If such an error was thrown, set
8520         unavailable_retaddr.
8521         (dwarf2_frame_unwind_stop_reason): New.
8522         (dwarf2_frame_this_id): Don't build a frame id if the CFA was
8523         unavailable.
8524         (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
8525         (dwarf2_signal_frame_unwind): Ditto.
8526
8527         * amd64-tdep.c: Include "exceptions.h".
8528         (struct amd64_frame_cache): New field "base_p".
8529         (amd64_init_frame_cache): Clear it.
8530         (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
8531         Avoid reading registers with functions that throw if the register
8532         is not necessary to compute the frame base.
8533         (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
8534         swallowing NOT_AVAILABLE_ERROR.
8535         (amd64_frame_unwind_stop_reason): New.
8536         (amd64_frame_this_id): Don't build a frame id if the frame base
8537         was unavailable.
8538         (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
8539         (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8540         base_p if the frame base was computable.
8541         (amd64_sigtramp_frame_unwind_stop_reason): New.
8542         (amd64_sigtramp_frame_this_id): Don't build a frame id if the
8543         frame base was unavailable.
8544         (amd64_sigtramp_frame_unwind): Install
8545         amd64_sigtramp_frame_unwind_stop_reason.
8546         (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8547         base_p if the frame base was computable.
8548         (amd64_epilogue_frame_unwind_stop_reason): New.
8549         (amd64_epilogue_frame_this_id): Don't build a frame id if the
8550         frame base was unavailable.
8551         (amd64_epilogue_frame_unwind): Install
8552         amd64_epilogue_frame_unwind_stop_reason.
8553         * i386-tdep.c: Include "exceptions.h".
8554         (struct i386_frame_cache): New field "base_p".
8555         (i386_init_frame_cache): Clear it.
8556         (i386_frame_cache_1): New, factored out from amd64_frame_cache.
8557         Avoid reading registers with functions that throw if the register
8558         is not necessary to compute the frame base.
8559         (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
8560         swallowing NOT_AVAILABLE_ERROR.
8561         (i386_frame_unwind_stop_reason): New.
8562         (i386_frame_this_id): Don't build a frame id if the frame base was
8563         unavailable.
8564         (i386_frame_prev_register): Handle unavailable SP.
8565         (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
8566         (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8567         base_p if the frame base was computable.
8568         (i386_epilogue_frame_unwind_stop_reason): New.
8569         (i386_epilogue_frame_this_id): Don't build a frame id if the frame
8570         base was unavailable.
8571         (i386_epilogue_frame_unwind): Install
8572         i386_epilogue_frame_unwind_stop_reason.
8573         (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8574         base_p if the frame base was computable.
8575         (i386_sigtramp_frame_unwind_stop_reason): New.
8576         (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
8577         base was unavailable.
8578         (i386_sigtramp_frame_unwind): Install
8579         i386_sigtramp_frame_unwind_stop_reason.
8580         * sentinel-frame.c (sentinel_frame_prev_register): Use the value
8581         type's size, not the register's.
8582         (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
8583
8584         * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
8585         default_frame_unwind_stop_reason.
8586         * alpha-tdep.c (alpha_sigtramp_frame_unwind)
8587         (alpha_heuristic_frame_unwind): Ditto.
8588         * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
8589         * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
8590         * avr-tdep.c (avr_frame_unwind): Ditto.
8591         * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
8592         Ditto.
8593         * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
8594         * frv-tdep.c (frv_frame_unwind): Ditto.
8595         * h8300-tdep.c (h8300_frame_unwind): Ditto.
8596         * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
8597         * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
8598         * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
8599         (hppa_stub_frame_unwind): Ditto.
8600         * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
8601         * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
8602         (ia64_libunwind_frame_unwind)
8603         (ia64_libunwind_sigtramp_frame_unwind): Ditto.
8604         * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
8605         * lm32-tdep.c (lm32_frame_unwind): Ditto.
8606         * m32c-tdep.c (m32c_unwind): Ditto.
8607         * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
8608         * m32r-tdep.c (m32r_frame_unwind): Ditto.
8609         * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
8610         * m68k-tdep.c (m68k_frame_unwind): Ditto.
8611         * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
8612         * m88k-tdep.c (m88k_frame_unwind): Ditto.
8613         * mep-tdep.c (mep_frame_unwind): Ditto.
8614         * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
8615         * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
8616         (mips_stub_frame_unwind): Ditto.
8617         * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
8618         * moxie-tdep.c (moxie_frame_unwind): Ditto.
8619         * mt-tdep.c (mt_frame_unwind): Ditto.
8620         * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
8621         * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
8622         * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
8623         * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
8624         (s390_sigtramp_frame_unwind): Ditto.
8625         * score-tdep.c (score_prologue_unwind): Ditto.
8626         * sh-tdep.c (sh_frame_unwind): Ditto.
8627         * sh64-tdep.c (sh64_frame_unwind): Ditto.
8628         * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
8629         * sparc-tdep.c (sparc32_frame_unwind): Ditto.
8630         * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
8631         * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
8632         * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
8633         * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
8634         * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
8635         (sparc64obsd_trapframe_unwind): Ditto.
8636         * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
8637         * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
8638         * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
8639         * v850-tdep.c (v850_frame_unwind): Ditto.
8640         * vax-tdep.c (vax_frame_unwind): Ditto.
8641         * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
8642         * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
8643         * xtensa-tdep.c (xtensa_unwind): Ditto.
8644
8645 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
8646
8647         * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
8648         there's always a frame.  Use get_frame_pc_if_available instead of
8649         get_frame_pc, and if there's no PC available, don't look up a
8650         symtab.
8651
8652 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
8653
8654         * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
8655         unavailable PC.
8656
8657 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
8658
8659         * tracepoint.c (set_traceframe_context): Handle unavailable PC
8660         gracefully.
8661
8662 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
8663
8664         * frame.h (frame_unwind_caller_pc_if_available): Declare.
8665         * frame.c (frame_unwind_caller_pc_if_available): New.
8666         * stack.c (frame_info): Handle unavailable PC.
8667
8668 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
8669
8670         * frame.c (frame_unwind_pc): Rename to ...
8671         (frame_unwind_pc_if_available): ... this.  New `pc' output
8672         parameter.  Change return type to int.  Gracefully handle
8673         gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR.  Return 0 if that
8674         happened, or 1 otherwise.
8675         (frame_unwind_pc): Reimplement on top of
8676         frame_unwind_pc_if_available.
8677         (get_frame_func): Rename to ...
8678         (get_frame_func_if_available): New `pc' output parameter.  Change
8679         return type to int.  Gracefully handle the PC not being available.
8680         (get_frame_func): Reimplement on top of
8681         get_frame_func_if_available.
8682         (select_frame): Handle the PC being unavailable.
8683         (get_prev_frame): Handle the PC being unavailable.
8684         (get_frame_pc_if_available): New.
8685         (get_frame_address_in_block_if_available): New.
8686         (find_frame_sal): Handle the frame PC not being available.
8687         * frame.h (get_frame_pc_if_available): Declare.
8688         (get_frame_address_in_block_if_available): Declare.
8689         (get_frame_func_if_available): Declare.
8690         * stack.c (print_frame_info): Handle the PC being unavailable.
8691         (find_frame_funname): Ditto.
8692         (print_frame): Handle the PC being unavailable.
8693         (get_frame_language): Ditto.
8694         * blockframe.c (get_frame_block): Ditto.
8695         * macroscope.c (default_macro_scope): Ditto.
8696         * tui/tui-stack.c (tui_show_frame_info): Ditto.
8697
8698 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
8699
8700         * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
8701         NOT_AVAILABLE_ERROR when evaluating the location expression.
8702
8703 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
8704
8705         * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
8706         returning that the register piece is unavailable/optimized out.
8707         (write_pieced_value): Handle get_frame_register_bytes returning
8708         that the register piece is unavailable/optimized out when doing a
8709         read-modify write of a bitfield.
8710         * findvar.c (value_from_register): Handle get_frame_register_bytes
8711         returning that the register piece is unavailable/optimized out.
8712         * frame.c (get_frame_register_bytes): New parameters `optimizedp'
8713         and `unavailablep'.  Throw error on bad debug info.  Use
8714         frame_register instead of frame_register_read, to fill in the new
8715         arguments.
8716         * frame.h (get_frame_register_bytes): New parameters `optimizedp'
8717         and `unavailablep'.
8718         * valops.c: (value_assign): Adjust, and handle
8719         get_frame_register_bytes failing.
8720         * spu-tdep.c: Include exceptions.h.
8721         (spu_software_single_step): Adjust, and handle
8722         get_frame_register_bytes failing.
8723         (spu_get_longjmp_target): Ditto.
8724         * gdbarch.sh (register_to_value): Change to return int.  New
8725         parameters `optimizedp' and `unavailablep'.
8726         * gdbarch.h, gdbarch.c: Regenerate.
8727         * i386-tdep.c (i386_register_to_value): Adjust to new
8728         gdbarch_register_to_value interface.
8729         * i387-tdep.c (i387_register_to_value): Ditto.
8730         * i387-tdep.h (i387_register_to_value): Ditto.
8731         * alpha-tdep.c (alpha_register_to_value): Ditto.
8732         * ia64-tdep.c (ia64_register_to_value): Ditto.
8733         * m68k-tdep.c (m68k_register_to_value): Ditto.
8734         * mips-tdep.c (mips_register_to_value): Ditto.
8735         * rs6000-tdep.c (rs6000_register_to_value): Ditto.
8736
8737 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
8738
8739         * findvar.c (value_of_register): Mark the value as unavailable, if
8740         the register is unavailable.
8741         * frame.h (frame_register_unwind): New `unavailablep' parameter.
8742         (frame_register): New `unavailablep' parameter.
8743         (frame_register_read): Update comment.
8744         * frame.c (frame_register_unwind): New `unavailablep' parameter.
8745         Set it if the register is unavailable.  If the register is
8746         unavailable, clear the output buffer.
8747         (frame_register): New `unavailablep' parameter.  Pass it down.
8748         (frame_unwind_register): Adjust.
8749         (put_frame_register): Adjust.
8750         (frame_register_read): Adjust.  Also return false if the register
8751         is not available.
8752         (frame_register_unwind_location): Adjust.
8753         * sentinel-frame.c (sentinel_frame_prev_register): If the register
8754         is unavailable, mark the value accordingly.
8755         * stack.c (frame_info): Handle unavailable registers.
8756
8757 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
8758
8759         * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
8760         simplify, using regcache_cooked_read.
8761
8762 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
8763
8764         * regcache.h (regcache_raw_read, regcache_raw_read_signed)
8765         (regcache_raw_read_unsigned, regcache_raw_read_signed)
8766         (regcache_raw_read_unsigned, regcache_raw_read_part)
8767         (regcache_cooked_read, regcache_cooked_read_signed)
8768         (regcache_cooked_read_unsigned, regcache_cooked_read_part)
8769         (regcache_cooked_read_ftype): Change return to enum
8770         register_status.
8771         * regcache.c: Include exceptions.h
8772         (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
8773         (do_cooked_read): Change return to enum register_status.  Always
8774         forward to regcache_cooked_read.
8775         (regcache_raw_read): Change return to enum register_status.  If
8776         the register is not REG_VALID, memset the buffer.  Return the
8777         register's status.
8778         (regcache_raw_read_signed): Handle non-REG_VALID registers and
8779         return the register's status.
8780         (regcache_raw_read_unsigned): Ditto.
8781         (regcache_cooked_read): Change return to enum register_status.
8782         Assert that with read-only regcaches, the register's status must
8783         be known.  If the regcache is read-only, and the register is not
8784         REG_VALID, memset the buffer.  Return the register's status.
8785         (regcache_cooked_read_signed): Change return to enum
8786         register_status.  Handle non-REG_VALID registers and return the
8787         register's status.
8788         (regcache_cooked_read_unsigned): Change return to enum
8789         register_status.  Handle non-REG_VALID registers and return the
8790         register's status.
8791         (regcache_xfer_part, regcache_raw_read_part)
8792         (regcache_cooked_read_part): Change return to enum
8793         register_status.  Return the register's status.
8794         (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
8795         unavailable.
8796         (regcache_dump): Handle unavailable cooked registers.
8797         * frame.c (do_frame_register_read): Adjust interface to match
8798         regcache_cooked_read_ftype.
8799         * gdbarch.sh (pseudo_register_read): Change return to enum
8800         register_status.
8801         * gdbarch.h, gdbarch.c: Regenerate.
8802
8803         * i386-tdep.h (i386_pseudo_register_read): Change return to enum
8804         register_status.
8805         * i386-tdep.c (i386_pseudo_register_read): Change return to enum
8806         register_status.  If reading a raw register indicates the raw
8807         register is not valid, return the raw register's status,
8808         otherwise, return REG_VALID.
8809         * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
8810         register_status.  Handle non-REG_VALID raw registers and return
8811         the register's status.
8812         * arm-tdep.c (arm_neon_quad_read)
8813         (arm_pseudo_read): Change return to enum register_status.  Handle
8814         non-REG_VALID raw registers and return the register's status.
8815         * avr-tdep.c (avr_pseudo_register_read): Ditto.
8816         * frv-tdep.c (frv_pseudo_register_read): Ditto.
8817         * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
8818         * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
8819         * m32c-tdep.c (m32c_move_reg_t): Change return to enum
8820         register_status.
8821         (m32c_raw_read, m32c_raw_write, m32c_banked_read)
8822         (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
8823         (m32c_part_write, m32c_cat_read, m32c_cat_write)
8824         (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
8825         (m32c_pseudo_register_read): Change return to enum
8826         register_status.  Adjust.
8827         * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
8828         enum register_status.  Return the register's status.
8829         * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
8830         register_status.  Return the register's status.
8831         (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
8832         * mips-tdep.c (mips_pseudo_register_read): Ditto.
8833         * mt-tdep.c (mt_pseudo_register_read): Ditto.
8834         * rs6000-tdep.c (move_ev_register_func): New typedef.
8835         (e500_move_ev_register): Use it.  Change return to enum
8836         register_status.  Return the register's status.
8837         (do_regcache_raw_read): New function.
8838         (do_regcache_raw_write): New function.
8839         (e500_pseudo_register_read): Change return to enum
8840         register_status.  Return the register's status.  Use
8841         do_regcache_raw_read.
8842         (e500_pseudo_register_write): Adjust.  Use do_regcache_raw_write.
8843         (dfp_pseudo_register_read): Change return to enum register_status.
8844         Return the register's status.
8845         (vsx_pseudo_register_read): Ditto.
8846         (efpr_pseudo_register_read): Ditto.
8847         (rs6000_pseudo_register_read): Ditto.
8848         * s390-tdep.c (s390_pseudo_register_read): Change return to enum
8849         register_status.  Return the register's status.
8850         * sh64-tdep.c (pseudo_register_read_portions): New function.
8851         (sh64_pseudo_register_read): Change return to enum
8852         register_status.  Use pseudo_register_read_portions.  Return the
8853         register's status.
8854         * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
8855         register_status.  Return the register's status.
8856         * sh-tdep.c (pseudo_register_read_portions): New function.
8857         (sh_pseudo_register_read): Change return to enum register_status.
8858         Use pseudo_register_read_portions.  Return the register's status.
8859         * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
8860         enum register_status.  Return the register's status.
8861         * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
8862         * spu-tdep.c (spu_pseudo_register_read_spu)
8863         (spu_pseudo_register_read): Ditto.
8864         * xtensa-tdep.c (xtensa_register_read_masked)
8865         (xtensa_pseudo_register_read): Ditto.
8866         * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
8867
8868 2011-03-18  Pierre Muller  <muller@ics.u-strasbg.fr>
8869
8870         * python/py-value.c (valpy_getitem): Fix formatting of error function
8871         call.
8872
8873 2011-03-18  Pierre Muller  <muller@ics.u-strasbg.fr>
8874
8875         ARI fixes: Add missing internationalization markups throughout
8876         C source files.
8877         * darwin-nat-info.c: Ditto.
8878         * record.c: Ditto.
8879         * remote.c: Ditto.
8880         * mi/mi-main.c: Ditto.
8881
8882 2011-03-18  Pierre Muller  <muller@ics.u-strasbg.fr>
8883
8884         ARI fixes: Add missing internationalization markups throughout
8885         yacc files.
8886         * c-exp.y: Ditto.
8887         * cp-name-parser.y: Ditto.
8888         * f-exp.y: Ditto.
8889         * m2-exp.y: Ditto.
8890         * objc-exp.y: Ditto.
8891         * p-exp.y: Ditto.
8892
8893 2011-03-18  Pierre Muller  <muller@ics.u-strasbg.fr>
8894
8895         ARI fixes: Messages should have no trailing new lines.
8896         * darwin-nat.c (mach_check_error): Remove trailing new line from
8897         warning function call message.
8898         * record.c (bfdcore_read): Idem for error call.
8899
8900 2011-03-18  Pierre Muller  <muller@ics.u-strasbg.fr>
8901
8902         * common/signals.c (target_signal_from_host): Add _ markup to error
8903         function call message.
8904         (target_signal_to_host): Add _ markup and remove trailing new line
8905         from warning call message.
8906         (target_signal_from_command): Add _ markup to error function call
8907         message.
8908
8909 2011-03-18  Phil Muldoon  <pmuldoon@redhat.com>
8910
8911         PR python/12149
8912
8913         * python/python.c (gdbpy_write): Accept a stream argument and
8914         operate to the appropriate stream.
8915         (gdbpy_flush): Likewise.
8916         (_initialize_python): Add stream constants.
8917         (finish_python_initialization): Add GdbOutputErrorFile class.
8918
8919 2011-03-18  Kwok Cheung Yeung  <kcy@codesourcery.com>
8920
8921         * MAINTAINERS: Add myself as a write-after-approval maintainer.
8922
8923 2011-03-18  Kwok Cheung Yeung  <kcy@codesourcery.com>
8924
8925         * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
8926         to store_signed_integer.  Add debug message when relocating CALL
8927         instructions.  Fix formatting of debug message.
8928         * i386-tdep.c (i386_relocate_instruction): Ditto.
8929
8930 2011-03-17  Joel Brobecker  <brobecker@gnat.com>
8931
8932         * target.h (struct target_ops): Remove to_lookup_symbol field.
8933         (target_lookup_symbol): Delete macro.
8934         * target.c (nosymbol, debug_to_lookup_symbol): Delete.
8935         (update_current_target, setup_target_debug): Remove handling
8936         of to_lookup_symbol target_ops field.
8937         * ada-tasks.c (get_known_tasks_addr): Remove use of
8938         target_lookup_symbol.
8939         * coffread.c (coff_symtab_read): Likewise.
8940         * dbxread.c (read_dbx_symtab): Ditto.
8941
8942 2011-03-17  Joel Brobecker  <brobecker@gnat.com>
8943
8944         PR gdb/12116:
8945         * configure.ac: Add getthrds declaration check.
8946         * configure, config.in: Regenerate.
8947         * aix-thread.c (getthrds): Declare only if not already declared
8948         in procinfo.h.  More declaration out of get_signaled_thread to
8949         global scope.
8950
8951 2011-03-17  Phil Muldoon  <pmuldoon@redhat.com>
8952
8953         * python/py-symtab.c: Populate symtab_object_methods,
8954         sal_object_methods.
8955         (stpy_is_valid): New function.
8956         (salpy_is_valid): Ditto.
8957         * python/py-symbol.c: Declare symbol_object_methods.  Populate.
8958         (sympy_is_valid): New function.
8959         * python/py-objfile.c: Declare objfile_object_methods.  Populate.
8960         (objfpy_is_valid): New function.
8961         * python/py-inferior.c: Populate inferior_object_methods.
8962         (infpy_is_valid): New function.
8963         * python/py-infthread.c: Populate thread_object_methods.
8964         (thpy_is_valid): New function.
8965         * python/py-block.c: Declare block_object_methods.  Populate.  Declare
8966         block_iterator_object_methods.  Populate.
8967         (blpy_is_valid): New function.
8968         (blpy_iter_is_valid): Ditto.
8969
8970 2011-03-16  Keith Seitz  <keiths@redhat.com>
8971
8972         * linespec.c (find_methods): Canonicalize NAME before looking
8973         up the symbol.
8974         (name_end): New function.
8975         (keep_name_info): New function.
8976         (decode_line_1): Use keep_name_info.
8977         (decode_compound): Likewise.
8978         * cli/cli-utils.h (remove_trailing_whitespace): New function.
8979         * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
8980
8981         PR c++/12273
8982         * linespec.c (locate_first_half): Keep overload information, too.
8983         (decode_compound): Use a string to represent break characters
8984         to escape the loop.
8985         If P points to a break character, do not increment it.
8986         For C++ and Java, keep overload information and relevant keywords.
8987         If we cannot find a symbol, search the minimal symbols.
8988
8989         PR c++/11734
8990         * linespec.c (decode_compound): Rename SAVED_ARG to
8991         THE_REAL_SAVED_ARG.
8992         Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
8993         single-quotes.
8994         Pass a valid block to lookup_symbol.
8995         (lookup_prefix_sym): Likewise.
8996         (find_method): Construct search name based on SYM_CLASS instead
8997         of SAVED_ARG.
8998         * psymtab.c (lookup_partial_symbol): Add language parameter.
8999         (lookup_symbol_aux_psymtabs): Likewise.
9000         Don't assume that the psymtab we found was the right one. Search
9001         for the desired symbol in the symtab to be certain.
9002         (psymtab_search_name): New function.
9003         (lookup_partial_symbol): Use psymtab_search_name.
9004         Add language parameter.
9005         (read_symtabs_for_function): Add language parameter and pass to
9006         lookup_partial_symbol.
9007         (find_symbol_file_from_partial): Likewise.
9008
9009 2011-03-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
9010
9011         PR gdb/12528
9012         * dwarf2read.c (noop_record_line): New function.
9013         (dwarf_decode_lines): Ignore line tables for GCd functions.
9014
9015 2011-03-16  Pierre Muller  <muller@ics.u-strasbg.fr>
9016
9017         Fix ARI warnings about new lines at the end of messages, which
9018         are unneeded as there is a new line added at the end of the message
9019         automatically.
9020         * darwin-nat.c (darwin_stop_inferior): Ditto.
9021         * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
9022         * dfp.c (decimal_to_number): Ditto.
9023         * exec.c (print_section_info): Ditto.
9024         * i386-darwin-nat.c (darwin_set_sstep): Ditto.
9025         * osdata.c (get_osdata): Ditto.
9026         * record.c (bfdcore_write): Ditto.
9027         * remote-mips.c (mips_readchar): Ditto.
9028         * remote.c (read_ptid): Ditto.
9029         * ser-mingw.c (ser_windows_raw): Ditto.
9030         * tracepoint.c (add_local_symbols): Ditto.
9031         * windows-nat.c (fake_create_process): Ditto.
9032
9033 2011-03-16  Tom Tromey  <tromey@redhat.com>
9034
9035         * tracepoint.c (stop_tracing): Don't declare.
9036         * event-top.c (after_char_processing_hook): Add `(void)'.
9037
9038 2011-03-16  Phil Muldoon  <pmuldoon@redhat.com>
9039
9040         * NEWS: Add Parameter sub-classing description.
9041
9042 2011-03-16  Kai Tietz  <ktietz@redhat.com>
9043
9044         * MAINTAINERS: Update my e-mail address.
9045
9046 2011-03-15  Andreas Tobler  <andreast@fgznet.ch>
9047
9048         * MAINTAINERS: Add myself for write after approval privileges.
9049
9050 2011-03-15  Michael Snyder  <msnyder@vmware.com>
9051
9052         * frame.c (find_frame_sal): Assert sym is not null.
9053
9054         * dbxread.c (process_one_symbol): Assert 'name' is not null.
9055
9056         * objc-lang.c (selectors_info): Check strchr for null result.
9057
9058         * stabsread.c (define_symbol): Guard against bad stabstring input.
9059
9060 2011-03-15  Pierre Muller  <muller@ics.u-strasbg.fr>
9061
9062         Remove trailing spaces and tabulations from pascal language
9063         support sources.
9064         p-exp.y: Ditto.
9065         p-lang.c: Ditto.
9066         p-lang.h: Ditto.
9067         p-valprint.c: Ditto.
9068
9069 2011-03-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
9070
9071         * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
9072         than LOW.  Comment it.
9073         (read_partial_die): Call complaint for inappropriate zero LOWPC or
9074         HIGHPC not strictly higher than LOWPC.
9075
9076 2011-03-15  Pierre Muller  <muller@ics.u-strasbg.fr>
9077
9078         Fix formatting of function declarations returning a pointer in
9079         previous commit.
9080         * varobj.c (varobj_add_child): Ditto.
9081         * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
9082         * inferior.h (get_displaced_step_closure_by_addr): Ditto.
9083
9084 2011-03-15  Ulrich Weigand  <uweigand@de.ibm.com>
9085
9086         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
9087         for the "generic" vector ABI used with GCC 4.3 and later.
9088         (ppc64_sysv_abi_return_value): Likewise.
9089
9090 2011-03-15  Ulrich Weigand  <uweigand@de.ibm.com>
9091
9092         * infcall.c (call_function_by_hand): Function return value is
9093         always a non_lval, even when using struct_return.
9094
9095 2011-03-15  Pedro Alves  <pedro@codesourcery.com>
9096
9097         * printcmd.c (ALL_DISPLAYS_SAFE): New.
9098         (map_display_numbers): New.
9099         (do_delete_display): New.
9100         (undisplay_command): Use map_display_numbers.
9101         (do_enable_disable_display): New.
9102         (enable_disable_display_command): New function.
9103         (enable_display): Delete.
9104         (enable_display_command): New.
9105         (disable_display_command): Reimplement.
9106         (_initialize_printcmd): Adjust "enable display" command to use
9107         `enable_display_command' as callback.
9108
9109 2011-03-14  Phil Muldoon  <pmuldoon@redhat.com>
9110
9111         * NEWS: Add Python breakpoint 'stop' operation.
9112
9113 2011-03-14  Phil Muldoon  <pmuldoon@redhat.com>
9114
9115         * NEWS: Delete duplicate entry. Fix typo.
9116
9117 2011-03-14  Pierre Muller  <muller@ics.u-strasbg.fr>
9118
9119         Fix ARI warning about function names in first column.
9120         Put prototype declaration on same line as return type.
9121         * objc-exp.y: Ditto.
9122         * p-exp.y: Ditto.
9123         * python/py-stopevent.h: Ditto.
9124         For long function names, split parameters to
9125         allow function name on same line as return type.
9126         * solib-pa64.c: Ditto.
9127         * varobj.c: Ditto.
9128         * varobj.h: Ditto.
9129         For long function declaration, use single line.
9130         * hppa-tdep.h: Ditto.
9131         * inferior.h: Ditto.
9132
9133 2011-03-14  Phil Muldoon  <pmuldoon@redhat.com>
9134
9135         * python/python.h: Declare gdbpy_should_stop and
9136         gdbpy_breakpoint_has_py_cond.
9137         * python/python.c: Add python.h to includes.  Remove python.h from
9138         HAVE_PYTHON definition
9139         (gdbpy_should_stop): New dummy function.
9140         (gdbpy_breakpoint_has_py_cond): New dummy function.
9141         * python/py-breakpoint.c (bppy_init): Rewrite to allow
9142         sub-classing capabilities.
9143         (gdbpy_should_stop): New function.
9144         (gdbpy_breakpoint_has_py_cond): New function.
9145         (local_setattro): New function.
9146         * breakpoint.c (condition_command): Add check for Python 'stop'
9147         operation.
9148         (bpstat_check_breakpoint_conditions): Execute Python 'stop'
9149         operation function as part of stop/continue tests.
9150
9151 2011-03-14  Tom Tromey  <tromey@redhat.com>
9152
9153         PR gdb/12576:
9154         * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
9155         (needs_frame_dwarf_call): Likewise.
9156
9157 2011-03-14  Pierre Muller  <muller@ics.u-strasbg.fr>
9158
9159         Fix ARI warning about functions without parameters that do not
9160         use (void).
9161         * breakpoint.c (all_tracepoints): Replace () by (void).
9162         * f-exp.y (match_string_literal): Ditto.
9163         (yylex): Ditto.
9164         * m2-exp.y (yylex): Ditto.
9165         * mep-tdep.c (current_me_module): Ditto.
9166         (current_options): Ditto.
9167         (current_cop_data_bus_width): Ditto.
9168         (current_cr_names): Ditto.
9169         (current_cr_is_float): Ditto.
9170         (current_ccr_names): Ditto.
9171         * objc-exp.y (yylex): Ditto.
9172         * p-exp.y (yylex): Ditto.
9173         * remote.c (send_interrupt_sequence): Ditto.
9174         * tracepoint.c (current_trace_status): Ditto.
9175         * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
9176         * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
9177
9178 2011-03-11  Michael Snyder  <msnyder@vmware.com>
9179
9180         * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
9181         * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
9182         (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
9183         * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
9184         * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
9185
9186         * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
9187         (delete_async_event_handler): Ditto.
9188
9189         * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
9190
9191         * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
9192
9193         * top.c (set_verbose): Assert showcmd was found.
9194
9195 2011-03-11  Maxim Grigoriev  <maxim2405@gmail.com>
9196
9197         * xtensa-tdep.c (warning_once): Correct style issues.
9198
9199 2011-03-11  Yao Qi  <yao@codesourcery.com>
9200
9201         * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
9202
9203 2011-03-11  Andreas Schwab  <schwab@redhat.com>
9204
9205         * common/aclocal.m4: Remove.
9206
9207 2011-03-10  Maxim Grigoriev  <maxim2405@gmail.com>
9208
9209         * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
9210         (xtensa_write_register, xtensa_read_register): Likewise.
9211         (xtensa_hextochar): Removed.
9212         (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
9213
9214 2011-03-10  Maxim Grigoriev  <maxim2405@gmail.com>
9215
9216         * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
9217         (xtensa_call0_frame_cache_t): Update comments.  New fields added.
9218         (xtensa_alloc_frame_cache): Add initialization for new fields.
9219         (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
9220         (warning_once): New function.
9221         (xtensa_insn_kind): New item c0opc_and.
9222         (call0_classify_opcode): Add the case for AND instruction.
9223         (call0_track_op): Change arguments.  New local variable litbase.
9224         Add the case to handle c0opc_and.  Update algorithms for c0opc_mov,
9225         c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
9226         in the prologue.
9227         Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
9228         (call0_analyze_prologue): Update the comments.  Change arguments.
9229         Add the variety of updates to handle extended prologues, which now can
9230         conduct dynamic stack adjustments.
9231         (call0_frame_cache): Likewise.
9232         (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
9233         (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
9234
9235 2011-03-10  Michael Snyder  <msnyder@vmware.com>
9236
9237         * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
9238         (cmd_qtframe): Ditto.
9239         (cmd_qtbuffer): Ditto.
9240         (cmd_bigqtbuffer): Ditto.
9241
9242 2011-03-10  Tom Tromey  <tromey@redhat.com>
9243
9244         * tracepoint.c (trace_actions_command): Update.
9245         * thread.c (thread_apply_command): Update.
9246         * reverse.c (delete_bookmark_command): Update.
9247         (bookmarks_info): Update.
9248         * printcmd.c (undisplay_command): Update.
9249         * memattr.c (mem_enable_command): Update.
9250         (mem_disable_command): Update.
9251         (mem_delete_command): Update.
9252         * inferior.c (detach_inferior_command): Update.
9253         (kill_inferior_command): Update.
9254         (remove_inferior_command): Update.
9255         * cli/cli-utils.h (struct get_number_or_range_state): New.
9256         (init_number_or_range): Declare.
9257         (get_number_or_range): Update.
9258         * cli/cli-utils.c (init_number_or_range): New function.
9259         (get_number_or_range): Change 'pp' parameter to 'state'.  Remove
9260         static variables.
9261         (number_is_in_list): Update.
9262         * breakpoint.h (get_tracepoint_by_number): Update.
9263         * breakpoint.c (map_breakpoint_numbers): Update for change to
9264         get_number_or_range.
9265         (find_location_by_number): Use get_number, not
9266         get_number_or_range.
9267         (trace_pass_set_count): New function.
9268         (trace_pass_command): Update for change to get_number_or_range.
9269         Rework loop logic.
9270         (get_tracepoint_by_number): Remove 'multi_p' parameter; add
9271         'state' parameter.
9272
9273 2011-03-10  Phil Muldoon  <pmuldoon@redhat.com>
9274
9275         * python/py-param.c (add_setshow_generic): Add set/show callback
9276         parameters.  Register Python object context.
9277         (get_show_value): New function.
9278         (get_set_value): New function.
9279         (call_doc_function): New function.
9280         (get_doc_string): Move behind get_show_value/get_set_value.
9281
9282 2011-03-10  Andreas Tobler  <andreast-list@fgznet.ch>
9283
9284         * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
9285
9286 2011-03-09  Maxim Grigoriev  <maxim2405@gmail.com>
9287
9288         * xtensa-tdep.c (xtensa_read_register): Add comment.
9289         (xtensa_write_register): Likewise.
9290         (xtensa_hextochar): Add comment and update to match coding conventions.
9291         (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
9292         (execute_l32e, execute_s32e, execute_code): Update comments.
9293         (xtensa_exception_handler_t): Update to match coding conventions.
9294         (xtensa_insn_kind): Likewise.
9295
9296 2011-03-09  Michael Snyder  <msnyder@vmware.com>
9297
9298         * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
9299
9300 2011-03-09  Pedro Alves  <pedro@codesourcery.com>
9301
9302         * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
9303
9304 2011-03-09  Tom Tromey  <tromey@redhat.com>
9305
9306         * thread.c (restore_selected_frame): Handle frame_level == -1.
9307         (make_cleanup_restore_current_thread): Use
9308         get_selected_frame_if_set.
9309         * frame.h (get_selected_frame_if_set): Declare.
9310         * frame.c (get_selected_frame_if_set): New function.
9311
9312 2011-03-09  Pedro Alves  <pedro@codesourcery.com>
9313
9314         * cli/cli-cmds.c (shell_escape): Use lbasename.
9315         * coffread.c (coff_start_symtab): Constify parameter.
9316         (complete_symtab): Constify `name' parameter.
9317         (coff_symtab_read): Constify `filestring' local.
9318         (coff_getfilename): Constify return and `result' local.
9319         Use lbasename.
9320         * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
9321         * linux-fork.c (info_checkpoints_command): Use lbasename.
9322         * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
9323         * minsyms.c (lookup_minimal_symbol): Use lbasename.
9324         * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
9325         * procfs.c (procfs_make_note_section): Use lbasename.
9326         * tui/tui-io.c (printable_part): Constity return and parameter.
9327         Use lbasename.
9328         (print_filename): Constify parameters, and local `s'.
9329         (tui_rl_display_match_list): Constify local `temp'.
9330
9331 2011-03-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
9332
9333         Revert:
9334         2011-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
9335         Fix DWARF-3+ DW_AT_accessibility default assumption.
9336         * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
9337         cu->header.version >= 3.
9338
9339 2011-03-09  Yao Qi  <yao@codesourcery.com>
9340
9341         * common/Makefile.in: Remove.
9342         * common/configure: Remove.
9343         * common/configure.ac: Remove.
9344
9345 2011-03-09  Yao Qi  <yao@codesourcery.com>
9346
9347         Revert:
9348         2011-02-11  Yao Qi  <yao@codesourcery.com>
9349
9350         * common/Makefile.in: Add copyright header.
9351
9352         2011-02-11  Yao Qi  <yao@codesourcery.com>
9353
9354         * Makefile.in: Remove signals.o from COMMON_OBS.  Link
9355         libcommon.a.
9356         * configure.ac: Add common to sub dir.
9357         * configure: Regenerate.
9358
9359 2011-03-08  Maxim Grigoriev  <maxim2405@gmail.com>
9360
9361         * xtensa-tdep.c (call0_ret): New function.
9362         (xtensa_skip_prologue): Speed up analysis.
9363
9364 2011-03-08  Maxim Grigoriev  <maxim2405@gmail.com>
9365
9366         * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
9367         while executing MI command -data-list-changed-registers.
9368
9369 2011-03-08  Maxim Grigoriev  <maxim2405@gmail.com>
9370
9371         * xtensa-tdep.c (xtensa_read_register): New function.
9372         (xtensa_write_register): New function.
9373         (xtensa_find_register_by_name): New function.
9374         (xtensa_windowed_frame_cache): Update comments in type description.
9375         (xtensa_frame_cache): Likewise.
9376         (xtensa_window_interrupt_insn): New function.
9377         (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
9378         (xtensa_insn_kind): Add new instructions.
9379         (rwx_special_register): New function.
9380         (call0_classify_opcode): Add new instructions to the analysis.
9381         (a0_saved, a7_saved, a11_saved): New variables.
9382         (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
9383         (execute_l32e): New function.
9384         (execute_s32e): New function.
9385         (xtensa_exception_handler_t): New type.
9386         (execute_code): New function.
9387         (xtensa_window_interrupt_frame_cache): New function to conduct frame
9388         analysis for Xtensa Window Exception handlers.
9389
9390 2011-03-08  Maxim Grigoriev  <maxim2405@gmail.com>
9391
9392         * xtensa-tdep.c (TX_PS): New.
9393         (windowing_enabled): Update to count for Call0 ABI.
9394         (xtensa_hextochar): New.
9395         (xtensa_init_reggroups): Make algorithm generic.
9396         (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
9397
9398 2011-03-08  Maxim Grigoriev  <maxim2405@gmail.com>
9399
9400         * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
9401
9402 2011-03-08  Michael Snyder  <msnyder@vmware.com>
9403
9404         * i386-tdep.c (i386_follow_jump): Check return value of
9405         target_read_memory.
9406         (i386_analyze_struct_return): Ditto.
9407         (i386_skip_probe): Ditto.
9408         (i386_match_insn): Ditto.
9409         (i386_skip_noop): Ditto.
9410         (i386_analyze_frame_setup): Ditto.
9411         (i386_analyze_register_saves): Ditto.
9412         (i386_skip_prologue): Ditto.
9413         (i386_skip_main_prologue): Ditto.
9414
9415         * target.c (read_whatever_is_readable): Fix memory leak.
9416
9417         * i386-tdep.c (i386_process_record): Document fall through.
9418
9419 2011-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
9420
9421         Fix DWARF-3+ DW_AT_accessibility default assumption.
9422         * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
9423         cu->header.version >= 3.
9424
9425 2011-03-08  Pedro Alves  <pedro@codesourcery.com>
9426
9427         * remote.c (remote_check_symbols): Skip if the target has no
9428         execution.
9429
9430 2011-03-08  Joel Brobecker  <brobecker@adacore.com>
9431
9432         * target.c (read_whatever_is_readable): Reformat comment,
9433         with a minor typo fix. Minor reformatting of the code.
9434
9435 2011-03-08  Yao Qi  <yao@codesourcery.com>
9436
9437         * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
9438         (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
9439         Use cached result instead of calling displaced_in_arm_mode again.
9440         (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
9441         (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
9442         (cleanup_copro_load_store, copy_copro_load_store): Likewise.
9443         (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
9444         (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
9445         (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
9446         (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
9447         (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
9448         (cleanup_block_load_pc, copy_block_xfer): Likewise.
9449         * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
9450         (arm_catch_kernel_helper_return): Likewise.
9451         * gdb/arm-tdep.h : Update function declarations.
9452
9453 2011-03-07  Michael Snyder  <msnyder@vmware.com>
9454
9455         * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
9456
9457         * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
9458
9459         * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
9460
9461         * elfread.c (elf_symtab_read): Stop memory leak.
9462
9463         * main.c (captured_main): Fix memory leak.
9464
9465 2011-03-07  Andreas Schwab  <schwab@linux-m68k.org>
9466
9467         * ada-lang.c (compare_names): Call is_name_suffix with string1
9468         instead of string2.
9469
9470 2011-03-07  Tom Tromey  <tromey@redhat.com>
9471
9472         * xcoffread.c (xcoff_sym_fns): Update.
9473         * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
9474         (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
9475         * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
9476         (symbol_file_add_with_addrs_or_offsets): Likewise.
9477         (reread_symbols): Handle OBJF_PSYMTABS_READ.
9478         * somread.c (som_sym_fns): Update.
9479         * psymtab.h (require_partial_symbols): Declare.
9480         * psymtab.c (require_partial_symbols): New function.
9481         (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
9482         (ALL_OBJFILE_PSYMTABS): Undef.
9483         (ALL_PSYMTABS): Move from psympriv.h.
9484         (lookup_partial_symtab, find_pc_sect_psymtab)
9485         (lookup_symbol_aux_psymtabs, relocate_psymtabs)
9486         (find_last_source_symtab_from_partial)
9487         (forget_cached_source_info_partial)
9488         (print_psymtab_stats_for_objfile, read_symtabs_for_function)
9489         (expand_partial_symbol_tables, read_psymtabs_with_filename)
9490         (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
9491         (find_symbol_file_from_partial, map_matching_symbols_psymtab)
9492         (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
9493         Use ALL_OBJFILE_PSYMTABS_REQUIRED.
9494         * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
9495         * objfiles.h (OBJF_PSYMTABS_READ): New macro.
9496         * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
9497         psymtabs.
9498         * mipsread.c (ecoff_sym_fns): Update.
9499         * machoread.c (macho_sym_fns): Update.
9500         * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
9501         (read_psyms): New function.
9502         (elf_sym_fns, elf_sym_fns_gdb_index): Update.
9503         (elf_sym_fns_lazy_psyms): New global.
9504         * dwarf2read.c (dwarf2_initialize_objfile): Don't call
9505         dwarf2_build_psymtabs.
9506         * dbxread.c (aout_sym_fns): Update.
9507         * coffread.c (coff_sym_fns): Update.
9508
9509 2011-03-07  Tom Tromey  <tromey@redhat.com>
9510
9511         * infrun.c (print_exited_reason): Include inferior id and pid in
9512         message.
9513
9514 2011-03-07  Tom Tromey  <tromey@redhat.com>
9515
9516         * target.h (struct target_ops) <to_has_execution>: Add ptid_t
9517         parameter.
9518         (target_has_execution_1): Update.
9519         (target_has_execution_current): Declare.
9520         (target_has_execution): Call target_has_execution_current.
9521         (default_child_has_execution): Update.
9522         * target.c (default_child_has_execution): Add 'the_ptid'
9523         parameter.
9524         (target_has_execution_1): Likewise.
9525         (target_has_execution_current): New function.
9526         (add_target): Update.
9527         (init_dummy_target): Update.
9528         * remote-m32r-sdi.c (m32r_has_execution): New function.
9529         (init_m32r_ops): Use it.
9530         * record.c (record_core_has_execution): Now static.  Add
9531         'the_ptid' parameter.
9532         * inferior.c (have_live_inferiors): Don't save current thread.
9533         Use target_has_execution_1.
9534
9535 2011-03-07  Yao Qi  <yao@codesourcery.com>
9536
9537         * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
9538
9539 2011-03-07  Joel Brobecker  <brobecker@adacore.com>
9540
9541         * elfread.c (elf_symtab_read): Minor reformatting.
9542
9543 2011-03-07  Joel Brobecker  <brobecker@adacore.com>
9544
9545         * objc-lang.c (selectors_info): Minor reformatting.
9546
9547 2011-03-07  Joel Brobecker  <brobecker@adacore.com>
9548
9549         * ada-lang.c (compare_names): Add FALLTHROUGH comment.
9550
9551 2011-03-07  Joel Brobecker  <brobecker@adacore.com>
9552             Michael Snyder  <msnyder@vmware.com>
9553
9554         * ada-valprint.c (ada_val_print_array): Move the declaration of
9555         "byte_order" and "elttype" inside the block where these variables
9556         are actually used.  Remove some special handling for the case
9557         where "elttype" and "eltlen" are null.  Replace by a comment
9558         and a couple of assertion checks.
9559
9560 2011-03-05  Michael Snyder  <msnyder@vmware.com>
9561
9562         * source.c (add_path): Replace semicolon at end of block.
9563         * dwarf2expr.c (execute_stack_op): Ditto.
9564
9565 2011-03-05  Mike Frysinger  <vapier@gentoo.org>
9566
9567         * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
9568         * configure.tgt (bfin-*-*linux*): Define gdb_sim.
9569         (bfin-*-*): Likewise.
9570
9571 2011-03-05  Michael Snyder  <msnyder@vmware.com>
9572
9573         * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
9574         * mdebugread.c (parse_symbol): Ditto.
9575         * parse.c (parse_exp_in_context): Ditto.
9576         * source.c (add_path): Ditto.
9577         * utils.c (gnu_debuglink_crc32): Ditto.
9578         * varobj.c (variable_language): Ditto.
9579
9580         * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
9581
9582 2011-03-04  Michael Snyder  <msnyder@vmware.com>
9583
9584         * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
9585
9586         * symfile.c (simple_overlay_update): Check for null return value
9587         from lookup_minimal_symbol.
9588
9589         * xml-syscall.c (syscall_start_syscall): Assert name is non null.
9590
9591 2011-03-04  Thiago Jung Bauermann  <bauerman@br.ibm.com>
9592
9593         * eval.c (parse_and_eval_address_1): Remove function.
9594         * linespec.c (decode_indirect): Call parse_to_comma_and_eval
9595         instead of parse_and_eval_address_1.
9596         * value.h (parse_and_eval_address_1): Remove prototype.
9597
9598 2011-03-04  Michael Snyder  <msnyder@vmware.com>
9599
9600         * remote.c (putpkt_binary): Document that case stmt falls through.
9601
9602 2011-03-04  Thiago Jung Bauermann  <bauerman@br.ibm.com>
9603
9604         * breakpointc (print_it_typical): Move NULL check from here...
9605         (print_bp_stop_message): ... to here.
9606
9607 2011-03-04  Michael Snyder  <msnyder@msnyder-server.eng.vmware.com>
9608
9609         * breakpoint.c (enable_command): Use break instead of continue,
9610         and fill in a missing break.
9611         (disable_command): Ditto.
9612
9613 2011-03-04  Ulrich Weigand  <ulrich.weigand@linaro.org>
9614
9615         * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
9616         (terminal_save_ours): Remove misleading comment.
9617         (inflow_inferior_data_cleanup): Free ttystate.
9618         (inflow_inferior_exit): Likewise.
9619         (copy_terminal_info): Copy ttystate.
9620
9621         * serial.c (serial_copy_tty_state): New function.
9622         * serial.h (serial_copy_tty_state): Add prototype.
9623         (struct serial_ops): Add copy_tty_state callback.
9624         * ser-base.c (ser_base_copy_tty_state): New function.
9625         * ser-base.h (ser_base_copy_tty_state): Add prototype.
9626         * ser-go32.c (dos_copy_tty_state): New function.
9627         (dos_ops): Install copy_tty_state callback.
9628         * ser-mingw.c (_initialize_ser_windows): Likewise.
9629         * ser-pipe.c (_initialize_ser_pipe): Likewise.
9630         * ser-unix.c (hardwire_copy_tty_state): New function.
9631         (_initialize_ser_hardwire): Install it.
9632
9633 2011-03-04  Michael Snyder  <msnyder@vmware.com>
9634
9635         * breakpoint.c (create_breakpoint): Add missing break statement.
9636
9637         Reverting this patch:
9638         * infcall.c (call_function_by_hand): Add break statements for lint.
9639
9640         Reverting this patch:
9641         * cli/cli-script.c (script_from_file): Add break for lint.
9642
9643 2011-03-04  Michael Snyder  <msnyder@vmware.com>
9644
9645         * solib.c (reload_shared_libraries_1): Close memory leak.
9646
9647 2011-03-03  Tom Tromey  <tromey@redhat.com>
9648
9649         PR gdb/12538:
9650         * dwarf2read.c (process_psymtab_comp_unit): Handle case where
9651         DW_STRING is NULL.
9652
9653 2011-03-03  Michael Snyder  <msnyder@vmware.com>
9654
9655         * remote-fileio.c (remote_fileio_func_fstat): Initialize all
9656         fields of struct 'st' to zero.
9657
9658         * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
9659         sal.pspace before calling set_current_source_symtab_and_line.
9660
9661 2011-03-03  Yao Qi  <yao@codesourcery.com>
9662
9663         * Makefile.in (configure-common): Remove.  Let Makefile
9664         in dir common to rebuild itself.
9665         (common/Makefile): Likewise.
9666
9667 2011-03-03  Joel Brobecker  <brobecker@adacore.com>
9668
9669         * utils.c (parse_escape): Add i18n markup in error message.
9670
9671 2011-03-03  Yao Qi  <yao@codesourcery.com>
9672
9673         * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
9674         ARM_PC_REGNUM.
9675         (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
9676         (displaced_write_reg, displaced_read_reg): Likewise.
9677         (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
9678         (cleanup_block_load_pc, copy_block_xfer): Likewise.
9679         (cleanup_branch): Replace magic number 14 and 15 with
9680         ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
9681
9682 2011-03-02  Michael Snyder  <msnyder@vmware.com>
9683
9684         * maint.c (maintenance_do_deprecate): No need to check for NULL.
9685
9686         * cli/cli-script.c (script_from_file): Add break for lint.
9687
9688         * mdebugread.c (parse_partial_symbols): Fix indent.
9689
9690         * target-descriptions.c (tdesc_gdb_type): No need to call
9691         xstrdup, callee saves a copy.
9692
9693         * printcmd.c (print_scalar_formatted): Use strncpy for safety.
9694
9695         * infcall.c (call_function_by_hand): Add break statements for lint.
9696
9697         * utils.c (parse_escape): Escape the escape char.
9698
9699         * python/py-inferior.c (build_inferior_list): Error out if
9700         PyList_Append fails.
9701         (gdbpy_inferiors): Error out if build_inferior_list fails.
9702
9703         * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
9704         a function call.
9705
9706         * record.c (record_restore): Move printf to before error return.
9707
9708 2011-03-02  Yao Qi  <yao@codesourcery.com>
9709
9710         * arm-tdep.h (struct displaced_step_closure): Add two new fields
9711         is_thumb and insn_size.
9712         * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
9713         on both ARM and Thumb mode.
9714         (arm_process_displaced_insn): Set is_thumb and insn_size.
9715         (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
9716         (arm_displaced_step_fixup): Likewise.
9717
9718 2011-03-01  Michael Snyder  <msnyder@vmware.com>
9719
9720         * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
9721
9722         * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
9723
9724         * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
9725
9726         * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
9727
9728         * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
9729         with xmalloc.
9730
9731         * ada-lang.c (aggregate_assign_others): Rename inner scope variable
9732         which shadows function parameter.
9733
9734         * tracepoint.c (create_tsv_from_upload): Superfluous call
9735         to xstrdup.  Callee already calls xstrdup.
9736
9737         * linespec.c (decode_line_1): Remove unnecessary null check.
9738
9739         * tracepoint.c (scope_info): Fix mem leak, remove underused
9740         variable.
9741
9742         * python/py-prettyprint.c (apply_val_pretty_printer): Remove
9743         superfluous null check.
9744
9745         * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
9746         (value_of_builtin_frame_fp_reg): Ditto.
9747
9748         * event-top.c (display_gdb_prompt): Remove superfluous null check.
9749
9750         * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
9751         be null.
9752
9753         * linespec.c (decode_line_1): Check for null before dereference.
9754
9755         * reverse.c (record_restore): Move null-check to before pointer
9756         dereference.
9757
9758         * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
9759
9760         * objc-lang.c (selectors_info): Add explanitory comment.
9761         (classes_info): Ditto.
9762
9763 2011-03-01  Ulrich Weigand  <ulrich.weigand@linaro.org>
9764
9765         * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
9766         (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
9767         versions of the trampoline.  Handle Thumb vs. ARM addresses.
9768         (arm_kernel_linux_restart_syscall_tramp_frame): New global.
9769         (arm_linux_init_abi): Install it.
9770         * arm-tdep.c (arm_psr_thumb_bit): Make global.
9771         * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
9772
9773 2011-02-28  Michael Snyder  <msnyder@vmware.com>
9774
9775         * ui-out.c (ui_out_field_core_addr): Make local char buffer
9776         a little bigger, to avoid possibility of an overflow.
9777
9778         * breakpoint.c (breakpoint_adjustment_warning): Make local char
9779         buffers a little bigger, to avoid possibility of an overflow.
9780
9781         * coffread.c (coff_getfilename): Add check to avoid overflow.
9782
9783         * objc-lang.c (selectors_info): Add a small safety margin to
9784         avoid overflow.
9785         (classes_info): Error out on too long REGEXP.
9786
9787         * infrun.c (handle_inferior_event): Remove unused function call.
9788
9789         * fork-child.c (fork_inferior): Remove ifdef'd code and
9790         unused variable.
9791
9792         * linux-thread-db.c (attach_thread): Discard unused value.
9793
9794         * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
9795
9796         * remote.c (remote_get_noisy_reply): Discard unused value.
9797         (remote_vcont_resume): Ditto.
9798         (remote_stop_ns): Ditto.
9799
9800         * linespec.c (decode_objc): Delete unused variable.
9801
9802         * tui/tui-regs.c (tui_register_format): Delete unused variable.
9803
9804         * dwarf2read.c (add_partial_symbol): Discard unused values.
9805         (read_base_type): Delete unused variable.
9806
9807         * dbxread.c (read_dbx_symtab): Discard unused value.
9808
9809         * eval.c (evaluate_subexp_standard): Delete unused variable,
9810         and discard unused values.
9811
9812         * infcmd.c (_initialize_infcmd): Discard unused values.
9813
9814         * stabsread.c (rs6000_builtin_type): Missing break statement.
9815
9816         * dbxread.c (process_one_symbol): Discard unused value.
9817
9818         * coffread.c (coff_end_symtab): Delete unused variable.
9819
9820         * dwarf2read.c (dw2_get_file_names): Discard unused value.
9821         (dwarf2_add_typedef): Delete unused variable.
9822         (read_namespace): Ditto.
9823         (dwarf_decode_macros): Ditto.
9824
9825         * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
9826
9827         * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
9828
9829         * p-valprint.c (pascal_val_print): Discard unused value.
9830
9831         * utils.c (nquery): Call va_end before return;
9832         (yquery): Ditto.
9833         (query): Ditto.
9834
9835         * proc-service.c (ps_plog): Call va_end before return.
9836
9837 2011-02-28  Tom Tromey  <tromey@redhat.com>
9838
9839         * python/python.c (gdbpy_value_cst): New global.
9840         (_initialize_python): Initialize it.
9841         * python/python-internal.h (gdbpy_value_cst): Declare.
9842         * python/py-value.c (convert_value_from_python): Use
9843         gdbpy_value_cst.
9844
9845 2011-02-28  Michael Snyder  <msnyder@vmware.com>
9846
9847         * python/py-cmd.c (cmdpy_init): Fix memory leak.
9848
9849         * breakpoint.c (catch_syscall_completer): Free malloced list.
9850
9851         * jv-lang.c (java_primitive_type_from_name): Add missing break.
9852
9853         * opencl-lang.c (lval_func_check_validity): Rename inner variables.
9854         (lval_func_check_synthetic_pointer): Ditto.
9855         (lval_func_free_closure): Fix use-after-free.
9856
9857 2011-02-28  Tom Tromey  <tromey@redhat.com>
9858
9859         * psymtab.c (expand_partial_symbol_tables): Use
9860         ALL_OBJFILE_PSYMTABS.
9861
9862 2011-02-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
9863
9864         * objc-lang.c (selectors_info): Error on too long REGEXP.
9865
9866 2011-02-28  Michael Snyder  <msnyder@vmware.com>
9867
9868         * python/py-param.c (set_parameter_value): Add missing
9869         break statement.
9870
9871         * linux-record.c (record_linux_system_call): Add missing
9872         break statement.
9873
9874 2011-02-28  Ulrich Weigand  <uweigand@de.ibm.com>
9875
9876         * breakpoint.c (print_one_breakpoint_location): Remove unused
9877         argument PRINT_ADDRESS_BITS.  Update callers.
9878         (print_one_breakpoint): Likewise.
9879
9880 2011-02-28  Ulrich Weigand  <uweigand@de.ibm.com>
9881
9882         * breakpoint.c (wrap_indent_at_field): New function.
9883         (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
9884         Allocate ui_stream locally instead of using STB argument.
9885         (print_one_breakpoint_location): Update call.
9886         * ui-out.c (ui_out_query_field): New function.
9887         * ui-out.h (ui_out_query_field): Add prototype.
9888
9889 2011-02-28  Joel Brobecker  <brobecker@adacore.com>
9890
9891         From Michael Snyder  <msnyder@vmware.com>
9892         * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
9893
9894 2011-02-27  Michael Snyder  <msnyder@vmware.com>
9895
9896         * objc-lang.c (selectors_info): Prevent string overrun.
9897
9898         * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
9899         error in strncpy.
9900
9901         * symtab.c (rbreak_command): Move variable 'file_name' to
9902         outer scope.
9903
9904         * d-valprint.c (dynamic_array_type): Avoid shadowing a function
9905         param with a local variable of the same name.
9906
9907 2011-02-27  Michael Snyder  <msnyder@vmware.com>
9908
9909         * value.c (value_from_history_ref): New function.
9910         * value.h (value_from_history_ref): Export.
9911         * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
9912         to parse value history references.
9913         * cli/cli-utils.h (get_number_trailer): Update comment.
9914
9915 2011-02-27  Michael Snyder  <msnyder@vmware.com>
9916
9917         * inferior.c (detach_inferior_command): Use get_number_or_range.
9918         (kill_inferior_command): Ditto.
9919         (remove_inferior_command): Ditto.
9920         (initialize_inferiors): Make command names plural.
9921         Update help strings.
9922
9923 2011-02-27  Michael Snyder  <msnyder@vmware.com>
9924
9925         * darwin-nat-info.c: Fix comment typo.
9926         * dwarf2expr.h: Ditto.
9927         * fbsd-nat.c: Ditto.
9928         * fbsd-nat.h: Ditto.
9929         * frame-unwind.h: Ditto.
9930         * frame.h: Ditto.
9931         * hppa-hpux-tdep.c: Ditto.
9932         * i386-linux-nat.c: Ditto.
9933         * linux-nat.c: Ditto.
9934         * nbsd-nat.c: Ditto.
9935         * nbsd-nat.h: Ditto.
9936         * ppc-linux-tdep.c: Ditto.
9937         * serial.c: Ditto.
9938         * ui-file.h: Ditto.
9939         * tui/tui-winsource.c: Ditto.
9940
9941 2011-02-26  Michael Snyder  <msnyder@vmware.com>
9942
9943         * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
9944
9945         * maint.c (maintenance_do_deprecate): Plug a memory leak.
9946
9947         * dwarf2loc.c (insert_bits): Avoid shadowing a function param
9948         with a local variable of the same name.
9949
9950         * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
9951         param with a local variable of the same name.
9952         (i387_supply_xsave): Ditto.
9953
9954         * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
9955         that it does not shadow a function parameter.
9956
9957         * i386-nat.c (i386_length_and_rw_bits): Document that case
9958         statement is meant to fall through.
9959
9960         * expprint.c (dump_subexp_body_standard): Document that case
9961         statement is meant to fall through.
9962
9963         * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
9964         dead if statement.  Condition can't be false.
9965
9966 2011-02-25  Michael Snyder  <msnyder@vmware.com>
9967
9968         * arm-tdep.c: Fix typos in comments.
9969         * bsd-uthread.c: Ditto.
9970         * completer.c: Ditto.
9971         * corelow.c: Ditto.
9972         * cp-namespace.c: Ditto.
9973         * cp-support.c: Ditto.
9974         * cris-tdep.c: Ditto.
9975         * dbxread.c: Ditto.
9976         * dwarf2read.c: Ditto.
9977         * frame.h: Ditto.
9978         * gdbtypes.h: Ditto.
9979         * inferior.h: Ditto.
9980         * mdebugread.c: Ditto.
9981         * mips-tdep.c: Ditto.
9982         * ppc-linux-nat.c: Ditto.
9983         * ppc-linux-tdep.c: Ditto.
9984         * printcmd.c: Ditto.
9985         * sol-thread.c: Ditto.
9986         * solib-frv.c: Ditto.
9987         * solist.h: Ditto.
9988         * sparc64-tdep.c: Ditto.
9989         * spu-tdep.c: Ditto.
9990         * stabsread.c: Ditto.
9991         * symfile.c: Ditto.
9992         * valops.c: Ditto.
9993         * varobj.c: Ditto.
9994         * vax-nat.c: Ditto.
9995         * python/py-block.c: Ditto.
9996         * python/py-symbol.c: Ditto.
9997         * python/py-symtab.c: Ditto.
9998         * python/py-value.c: Ditto.
9999         * tui/tui-win.c: Ditto.
10000
10001 2011-02-25  Michael Snyder  <msnyder@vmware.com>
10002
10003         * inferior.c (print_inferior): Accept a string instead of an int
10004         for requested_inferiors, and use get_number_or_range to parse it.
10005         (info_inferiors_command): Pass args string to print_inferior.
10006         (initialize_inferiors): Change help string for info inferiors.
10007         * inferior.h (print_inferior): Export prototype change.
10008
10009 2011-02-25  Tom Tromey  <tromey@redhat.com>
10010
10011         * common/ax.def (invalid2): Set to 0x31.
10012
10013 2011-02-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
10014
10015         * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
10016         L and plongest.
10017         (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
10018         use L and plongest.
10019         (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
10020
10021 2011-02-24  Michael Snyder  <msnyder@vmware.com>
10022
10023         * Makefile.in (clean): Make clean should remove generated files
10024         observer.h and observer.inc.
10025
10026 2011-02-24  Joel Brobecker  <brobecker@adacore.com>
10027
10028         Revert the following patch (not approved yet):
10029         2011-02-21  Hui Zhu  <teawater@gmail.com>
10030         * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
10031         * ax-gdb.c (gen_printf_expr_callback): New function.
10032         * ax-gdb.h (gen_printf_expr_callback): Forward declare.
10033         * ax-general.c (ax_memcpy): New function.
10034         (ax_print): Handle "printf".
10035         (ax_reqs): Ditto.
10036         * ax.h (ax_memcpy): Forward declare.
10037         * common/ax.def (invalid2): Removed.
10038         (printf): New entry.
10039         * printcmd.c (printcmd.h): New include.
10040         (string_printf): New function.
10041         (ui_printf): Removed.
10042         (printf_command): Remove static.  Call string_printf.
10043         (eval_command): Call string_printf.
10044         * printcmd.h: New file.
10045         * tracepoint.c (validate_actionline,
10046         encode_actions_1): handle printf_command.
10047
10048 2011-02-23  Tom Tromey  <tromey@redhat.com>
10049
10050         * ax-general.c (ax_pick): Add missing newline.
10051
10052 2011-02-23  Michael Snyder  <msnyder@vmware.com>
10053
10054         * breakpoint.c (breakpoint_1): Change first argument from an int
10055         to a char pointer, so that the function now accepts a list of
10056         breakpoints rather than just one.  Use new function
10057         'number_is_in_list' to implement.
10058         (breakpoints_info): Pass char * instead of int to breakpoint_1.
10059         (watchpoints_info): Ditto.
10060         (tracepoints_info): Ditto.
10061         (maintenance_info_breakpoints): Ditto.
10062         (_initialize_breakpoint): Update help strings to reflect the fact
10063         that these functions can now take more than one argument.
10064         * cli/cli-utils.c (number_is_in_list): New function.
10065         * cli/cli-utils.h (number_is_in_list): Export.
10066
10067 2011-02-23  Michael Snyder  <msnyder@vmware.com>
10068
10069         * memattr.c (mem_enable_command): Use get_number_or_range.
10070         (mem_disable_command): Ditto.
10071         (mem_delete_command): Ditto.
10072         (_initialize_mem): Tweak usage message to reflect multiple
10073         arguments.
10074
10075 2011-02-22  Doug Evans  <dje@google.com>
10076
10077         Add gdb.lookup_global_symbol python function.
10078         * NEWS: Add entry.
10079         * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
10080         * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
10081         * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
10082
10083 2011-02-22  Tom Tromey  <tromey@redhat.com>
10084
10085         * language.c (language_class_name_from_physname): Rename
10086         'curr_language' argument to 'lang'; use in body.
10087
10088 2011-02-22  Michael Snyder  <msnyder@vmware.com>
10089
10090         * cli/cli-utils.c (number_is_in_list): Check for zero return.
10091
10092 2011-02-22  Pedro Alves  <pedro@codesourcery.com>
10093
10094         * frame-unwind.h: Fix comment to mention the this frame, not the
10095         next.
10096
10097 2011-02-22  Tom Tromey  <tromey@redhat.com>
10098
10099         * symfile.c (auto_solib_limit): Remove.
10100         * symfile.h (auto_solib_limit): Remove.
10101
10102 2011-02-22  Joel Brobecker  <brobecker@adacore.com>
10103
10104         * Makefile.in (INSTALLED_LIBS): Delete.  Update comment.
10105
10106 2011-02-21  Michael Snyder  <msnyder@vmware.com>
10107
10108         * gdbthread.h (print_thread_info): Change prototype.
10109         * thread.c (print_thread_info): Accept char* instead of int for
10110         requested_threads argument.  Use new function number_is_in_list
10111         to determine which threads to list.
10112         (info_threads_command): Pass char* to print_thread_info.
10113         * cli/cli-utils.c (number_is_in_list): New function.
10114         * cli/cli-utils.h (number_is_in_list): Export.
10115         * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
10116         print_thread_info.
10117         (print_one_inferior): Ditto.
10118         (mi_cmd_list_thread_groups): Ditto.
10119
10120 2011-02-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
10121
10122         * common/Makefile.in (CFLAGS): New.
10123         (COMPILE): Add $(CFLAGS).
10124
10125 2011-02-21  Tom Tromey  <tromey@redhat.com>
10126
10127         * breakpoint.c (catch_syscall_command_1): Fix typo.
10128
10129 2011-02-21  Tom Tromey  <tromey@redhat.com>
10130
10131         * reverse.c: Include cli-utils.h.
10132         * printcmd.c: Include cli-utils.h.
10133         (string_printf): Use skip_spaces.
10134         * cli/cli-utils.h: New file.
10135         * cli/cli-utils.c: New file.
10136         * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
10137         * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
10138         * breakpoint.h (get_number, get_number_or_range): Move to
10139         cli-utils.h.
10140         * breakpoint.c: Include cli-utils.h.
10141         (get_number_trailer, get_number, get_number_or_range)
10142         (ep_skip_leading_whitespace): Move to cli-utils.c.
10143         (create_breakpoint_sal, find_condition_and_thread)
10144         (decode_static_tracepoint_spec, watch_command_1)
10145         (watch_maybe_just_location, ep_parse_optional_if_clause)
10146         (catch_fork_command_1, catch_exec_command_1)
10147         (catch_syscall_command_1): Use skip_spaces, skip_to_space.
10148         * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
10149         (SUBDIR_CLI_SRCS): Add cli-utils.c.
10150         (HFILES_NO_SRCDIR): Add cli-utils.h.
10151         (cli-utils.o): New target.
10152
10153 2011-02-18  Pierre Muller  <muller@ics.u-strasbg.fr>
10154
10155         * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
10156         before calling discard_all_inferiors.
10157
10158 2011-02-21  Ulrich Weigand  <uweigand@de.ibm.com>
10159
10160         * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
10161         (struct builtin_opencl_type): Remove.
10162         (builtin_opencl_type): Change return type to "struct type **".
10163         (lookup_opencl_vector_type): Update caller.
10164         (opencl_language_arch_info): Copy primitive type vector from gdbarch.
10165         (build_opencl_types): Install plain array of "struct type *"
10166         instead of "struct builtin_opencl_type".
10167
10168 2011-02-21  Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
10169             Ulrich Weigand  <uweigand@de.ibm.com>
10170
10171         * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
10172         (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
10173         (struct arm_linux_hwbp_cap): New type.
10174         (arm_linux_get_hwbp_cap): New function.
10175         (arm_linux_get_hw_breakpoint_count): Likewise.
10176         (arm_linux_get_hw_watchpoint_count): Likewise.
10177         (arm_linux_can_use_hw_breakpoint): Likewise.
10178         (arm_hwbp_type): New type.
10179         (arm_hwbp_control_t): Likewise.
10180         (struct arm_linux_hw_breakpoint): Likewise.
10181         (struct arm_linux_thread_points): Likewise.
10182         (arm_threads): New global variable.
10183         (arm_linux_find_breakpoints_by_tid): New function.
10184         (arm_hwbp_control_initialize): Likewise.
10185         (arm_hwbp_control_is_enabled): Likewise.
10186         (arm_hwbp_control_disable): Likewise.
10187         (arm_linux_hw_breakpoint_initialize): Likewise.
10188         (arm_linux_get_hwbp_type): Likewise.
10189         (arm_linux_hw_watchpoint_initialize): Likewise.
10190         (arm_linux_hw_breakpoint_equal): Likewise.
10191         (arm_linux_insert_hw_breakpoint1): Likewise.
10192         (arm_linux_remove_hw_breakpoint1): Likewise.
10193         (arm_linux_insert_hw_breakpoint): Likewise.
10194         (arm_linux_remove_hw_breakpoint): Likewise.
10195         (arm_linux_region_ok_for_hw_watchpoint): Likewise.
10196         (arm_linux_insert_watchpoint): Likewise.
10197         (arm_linux_remove_watchpoint): Likewise.
10198         (arm_linux_stopped_data_address): Likewise.
10199         (arm_linux_stopped_by_watchpoint): Likewise.
10200         (arm_linux_watchpoint_addr_within_range): Likewise.
10201         (arm_linux_new_thread): Likewise.
10202         (arm_linux_thread_exit): Likewise.
10203         (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
10204         related target callbacks.  Register arm_linux_new_thread and
10205         arm_linux_thread_exit.
10206         * arm-tdep.h (arm_pc_is_thumb): Add prototype.
10207         * arm-tdep.c (arm_pc_is_thumb): Make global.
10208         (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
10209
10210 2011-02-21  Ulrich Weigand  <uweigand@de.ibm.com>
10211
10212         * breakpoint.c (update_watchpoint): Do not attempt to recreate
10213         per-frame locations while within a function epilogue.
10214
10215 2011-02-21  Pierre Muller  <muller@ics.u-strasbg.fr>
10216
10217         * ser-mingw.c (ser_windows_close): Reformat comment to better conform
10218         to GNU coding standards.
10219
10220 2011-02-21  Pierre Muller  <muller@ics.u-strasbg.fr>
10221
10222         Allow use of mingw native on Windows 95 OS.
10223         * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
10224         (ser_windows_close): Only call CancelIo if function exists.
10225         (_initialize_ser_windows): Use LoadLirary/GetProcAddress
10226         to check for existence of CancelIo function in kernel32 DLL.
10227
10228 2011-02-21  Hui Zhu  <teawater@gmail.com>
10229
10230         * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
10231         * ax-gdb.c (gen_printf_expr_callback): New function.
10232         * ax-gdb.h (gen_printf_expr_callback): Forward declare.
10233         * ax-general.c (ax_memcpy): New function.
10234         (ax_print): Handle "printf".
10235         (ax_reqs): Ditto.
10236         * ax.h (ax_memcpy): Forward declare.
10237         * common/ax.def (invalid2): Removed.
10238         (printf): New entry.
10239         * printcmd.c (printcmd.h): New include.
10240         (string_printf): New function.
10241         (ui_printf): Removed.
10242         (printf_command): Remove static.  Call string_printf.
10243         (eval_command): Call string_printf.
10244         * printcmd.h: New file.
10245         * tracepoint.c (validate_actionline,
10246         encode_actions_1): handle printf_command.
10247
10248 2011-02-19  Michael Snyder  <msnyder@vmware.com>
10249
10250         * reverse.c (delete_one_bookmark): Argument is now bookmark
10251         id rather than pointer to bookmark struct.
10252         (delete_bookmark_command): Use get_number_or_range.
10253         (goto_bookmark_command): Parse with get_number instead of strtoul.
10254         (bookmark_1): New function.  Print info for one bookmark.
10255         (bookmarks_info): Use get_number_or_range and bookmark_1.
10256
10257 2011-02-18  Michael Snyder  <msnyder@vmware.com>
10258
10259         * thread.c (info_threads_command): Re-implement using
10260         get_number_or_range.
10261         (thread_apply_command): Ditto.
10262
10263 2011-02-18  Tom Tromey  <tromey@redhat.com>
10264
10265         * common/ax.def: New file.
10266         * ax.h (enum agent_op): Use ax.def.
10267         * ax-general.c (aop_map): Use ax.def.
10268
10269 2011-02-18  Tom Tromey  <tromey@redhat.com>
10270
10271         * ax-general.c (aop_map): Add pick and rot.
10272         * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
10273         <DW_OP_rot>: Implement.
10274         * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
10275         (ax_pick): Declare.
10276         * ax-general.c (ax_pick): New function.
10277
10278 2011-02-18  Tom Tromey  <tromey@redhat.com>
10279
10280         * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
10281
10282 2011-02-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
10283             Tom Tromey  <tromey@redhat.com>
10284
10285         * cp-support.c (make_symbol_overload_list_namespace): Do not call
10286         make_symbol_overload_list_block with NULL BLOCK.
10287         * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
10288
10289 2011-02-18  Pedro Alves  <pedro@codesourcery.com>
10290
10291         * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
10292         * breakpoint.h (get_number_or_range): Declare.
10293         * printcmd.c (ALL_DISPLAYS): Declare.
10294         (delete_display): Reimplement taking a display pointer.
10295         (undisplay_command): Accept a range of displays to delete, using
10296         get_number_or_range.
10297
10298 2011-02-18  Pierre Muller  <muller@ics.u-strasbg.fr>
10299
10300         * c-valprint.c (c_val_print): Add embedded_offset to address
10301         for arrays of unspecified length.
10302         * p-valprint.c (pascal_val_print): Likewise.
10303
10304 2011-02-18  Yao Qi  <yao@codesourcery.com>
10305
10306         * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
10307         (arm_process_displaced_insn): .. here. Remove parameter INSN.
10308         (thumb_process_displaced_insn): New.
10309         * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
10310         call to arm_process_displaced_insn.
10311         * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
10312
10313 2011-02-17  Tom Tromey  <tromey@redhat.com>
10314
10315         * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
10316         * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
10317         compile_dwarf_to_ax.  No longer static.  Call
10318         dwarf2_compile_cfa_to_ax.
10319         (locexpr_tracepoint_var_ref): Update.
10320         (loclist_tracepoint_var_ref): Update.
10321         * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
10322         * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
10323         argument; add 'gdbarch' and 'pc'.
10324         (dwarf2_compile_cfa_to_ax): New function.
10325         (dwarf2_frame_cache): Update.
10326
10327 2011-02-17  Joel Brobecker  <brobecker@adacore.com>
10328
10329         * ada-lang.c (ada_type_of_array): Fix the size of the array
10330         in the case of an unconstrained packed array.
10331
10332 2011-02-17  Yao Qi  <yao@codesourcery.com>
10333
10334         * common/Makefile.in: Add more targets for make.
10335
10336 2011-02-16  Tom Tromey  <tromey@redhat.com>
10337
10338         * dwarf2loc.c (unimplemented): Fix typo.
10339
10340 2011-02-16  Tom Tromey  <tromey@redhat.com>
10341
10342         * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
10343         (compile_dwarf_to_ax) <default>: Use unimplemented.
10344         <DW_OP_deref>: Update.
10345         (disassemble_dwarf_expression): Update.
10346         * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
10347         (decode_locdesc): Update.
10348         * dwarf2expr.h (dwarf_stack_op_name): Update.
10349
10350 2011-02-16  Tom Tromey  <tromey@redhat.com>
10351
10352         * ax.h (struct aop_map) <name>: Now const.
10353
10354 2011-02-16  Tom Tromey  <tromey@redhat.com>
10355
10356         * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
10357         than axs_rvalue.
10358
10359 2011-02-16  Yao Qi  <yao@codesourcery.com>
10360
10361         * infrun.c (get_displaced_step_closure_by_addr): New.
10362         * inferior.h: Declare it.
10363         * arm-tdep.c: (arm_pc_is_thumb): Call
10364         get_displaced_step_closure_by_addr.  Adjust MEMADDR if it
10365         returns non-NULL.
10366
10367 2011-02-16  Pedro Alves  <pedro@codesourcery.com>
10368             Jan Kratochvil  <jan.kratochvil@redhat.com>
10369
10370         gdb/
10371         * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
10372
10373 2011-02-16  Pedro Alves  <pedro@codesourcery.com>
10374             Jan Kratochvil  <jan.kratochvil@redhat.com>
10375
10376         * value.c (value_contents_copy_raw): Extend describing comment.
10377         Assert that the destination contents we're overwriting are wholly
10378         available.
10379         (value_contents_copy): Extend describing comment.
10380
10381 2011-02-16  Pedro Alves  <pedro@codesourcery.com>
10382             Jan Kratochvil  <jan.kratochvil@redhat.com>
10383
10384         * value.c (value_available_contents_eq): Remove redundant local
10385         variables.  Fix available contents comparision.
10386         * value.h (value_available_contents_eq): Extend describing
10387         comment.
10388
10389 2011-02-16  Yao Qi  <yao@codesourcery.com>
10390
10391         * thread.c (info_threads_command): Add missing i18n markup and remove
10392         trailing newline.
10393
10394 2011-02-15  Paul Pluzhnikov  <ppluzhnikov@google.com>
10395
10396         * breakpoint.c (longjmp_names): New variable.
10397         (struct breakpoint_objfile_data): New type.
10398         (breakpoint_objfile_key): New variable.
10399         (msym_not_found): New variable.
10400         (msym_not_found_p): New predicate.
10401         (get_breakpoint_objfile_data): New function.
10402         (create_overlay_event_breakpoint): Check per-objfile cache for
10403         symbols first.
10404         (create_longjmp_master_breakpoint): Likewise.
10405         (create_std_terminate_master_breakpoint): Likewise.
10406         (create_exception_master_breakpoint): Likewise.
10407         (_initialize_breakpoint): Register per-objfile data key.
10408
10409 2011-02-15  Paul Pluzhnikov  <ppluzhnikov@google.com>
10410
10411         * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
10412         parameter value.
10413         (create_longjmp_master_breakpoint): Loop over longjmp names.
10414         (create_std_terminate_master_breakpoint): Const-propagate parameter
10415         value.
10416         (update_breakpoints_after_exec): Adjust.
10417         (breakpoint_re_set): Adjust.
10418
10419 2011-02-15  Michael Snyder  <msnyder@vmware.com>
10420
10421         * thread.c (info_threads_command): Process arg as thread id,
10422         or list of thread ids.
10423         (thread_find_command): New command.
10424         (_initialize_thread): Document argument for info threads.
10425         Document 'thread find' command.
10426         * NEWS: Document new command "thread find".
10427
10428 2011-02-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
10429
10430         * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
10431         * aclocal.m4: Regenerated with aclocal-1.11.1.
10432         * common/configure: Regenerate with autoconf-2.64.
10433
10434 2011-02-15  Ken Werner  <ken.werner@de.ibm.com>
10435
10436         * opencl-lang.c (build_opencl_types): Set the size of the built-in
10437         bool data type to a size of one byte.
10438
10439 2011-02-15  Pedro Alves  <pedro@codesourcery.com>
10440             Jan Kratochvil  <jan.kratochvil@redhat.com>
10441
10442         * target.c (memory_xfer_live_readonly_partial): Document where to
10443         look for interface description.
10444
10445 2011-02-15  Yao Qi  <yao@codesourcery.com>
10446
10447         PR tdep/12352
10448         * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
10449         order to store PC value on stack instead of text section.
10450
10451 2011-02-15  Thiago Jung Bauermann  <bauerman@br.ibm.com>
10452
10453         * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
10454         the EFP register set size.
10455         (efpr_pseudo_register_read): Use regcache_raw_read_part to read
10456         data from the VMX register.
10457         (efpr_pseudo_register_write): Use regcache_raw_write_part to read
10458         and write data from/to the VMX register.
10459
10460 2011-02-14  Michael Snyder  <msnyder@vmware.com>
10461
10462         * command.h (enum command_class): New class 'no_set_class', for
10463         "show" commands without a corresponding "set" command.
10464         * value.c (_initialize_values): Use 'no_set_class' for "show values".
10465         * copying.c (_initialize_copying): Ditto for "show copying" and
10466         "show warranty".
10467         * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
10468         "show version".
10469         * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
10470         which there is no corresponding "set" command (eg. "show copying").
10471
10472 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
10473             Jan Kratochvil  <jan.kratochvil@redhat.com>
10474
10475         * exec.c (section_table_available_memory): Change `len' parameter
10476         type to ULONGEST.
10477         * exec.h (section_table_available_memory): Ditto.
10478         * value.h (read_value_memory): Rename the `offset' parameter to
10479         `embedded_offset'.
10480
10481 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
10482             Jan Kratochvil  <jan.kratochvil@redhat.com>
10483
10484         * memrange.c (compare_mem_ranges): Mention sort order in
10485         describing comment.
10486         (normalize_mem_ranges): Add comment.  Fix ra->length calculation.
10487         * tracepoint.c (traceframe_available_memory): Extend comment to
10488         mention what happens to RESULT when the target does not support
10489         the query.
10490
10491 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
10492             Jan Kratochvil  <jan.kratochvil@redhat.com>
10493
10494         * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
10495         range.
10496
10497 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
10498
10499         * value.c (value_bits_valid, value_bits_synthetic_pointer):
10500         No longer handle NULL values.
10501
10502 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
10503
10504         * exceptions.h (NOT_AVAILABLE_ERROR): New error.
10505         * value.c: Include "exceptions.h".
10506         (require_available): Throw NOT_AVAILABLE_ERROR instead of a
10507         generic error.
10508         * cp-abi.c: Include gdb_assert.h.
10509         (baseclass_offset): Add `embedded_offset' and `val' parameters.
10510         Assert the method is implemented.  Wrap NOT_AVAILABLE_ERROR
10511         errors.
10512         * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
10513         parameters.  No longer returns -1 on error.
10514         (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
10515         `val' parameters.
10516         * cp-valprint.c: Include exceptions.h.
10517         (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
10518         the baseclass_offset.  Handle unavailable base classes.  Use
10519         val_print_invalid_address.
10520         * p-valprint.c: Include exceptions.h.
10521         (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
10522         when fetching the baseclass_offset.  No longer expect
10523         baseclass_offset returning -1.  Handle unavailable base classes.
10524         Use val_print_invalid_address.
10525         * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
10526         `valaddr' parameter, and change its type to gdb_byte pointer.  Add
10527         `embedded_offset' and `val' parameters.  Adjust.
10528         (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
10529         parameter, and change its type to gdb_byte pointer.  Add
10530         `embedded_offset' and `val' parameters.  Adjust.  No longer expect
10531         baseclass_offset returning -1.
10532         (value_dynamic_cast): Use value_contents_for_printing rather than
10533         value_contents.  Adjust.
10534         (search_struct_field): No longer expect baseclass_offset returning
10535         -1.
10536         (search_struct_method): If reading memory from the target is
10537         necessary, wrap it in a new value to pass to baseclass_offset.  No
10538         longer expect baseclass_offset returning -1.
10539         (find_method_list): No longer expect baseclass_offset returning
10540         -1.  Use value_contents_for_printing rather than value_contents.
10541         * valprint.c (val_print_invalid_address): New function.
10542         * valprint.h (val_print_invalid_address): Declare.
10543         * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
10544         and `val' parameters.  No longer expect baseclass_offset returning
10545         -1.  Adjust.
10546         * gnu-v2-abi.c: Include "exceptions.h".
10547         (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
10548         parameters.  Handle unavailable memory.  Recurse through
10549         gnuv2_baseclass_offset directly, rather than through
10550         baseclass_offset.  No longer returns -1 on not found, instead
10551         throw an error.
10552         * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
10553         `val' parameters.  Adjust.
10554
10555 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
10556
10557         * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
10558         almost but not quite adjacent.
10559
10560 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
10561
10562         * value.h (value_entirely_available): Declare.
10563         * value.c (value_entirely_available): New function.
10564         * c-valprint.c (c_value_print): Don't try fetching the pointer's
10565         real type if the pointer is unavailable.
10566
10567 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
10568
10569         * valops.c (value_repeat): Use read_value_memory instead of
10570         read_memory.
10571
10572 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
10573
10574         * value.h (value_contents_copy, value_contents_copy_raw): Declare.
10575         * value.c (value_contents_copy_raw, value_contents_copy): New
10576         functions.
10577         (value_primitive_field): Use value_contents_copy_raw instead of
10578         memcpy.
10579         * valops.c (value_fetch_lazy): Use value_contents_copy instead of
10580         memcpy.
10581         (value_array, value_slice): Ditto.
10582         * valarith.c (value_subscripted_rvalue): Use
10583         value_contents_copy_raw instead of memcpy.
10584
10585 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
10586
10587         <unavailable> references.
10588
10589         * valops.c (get_value_at): Use value_from_contents_and_address,
10590         avoiding read_memory.
10591
10592 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
10593
10594         * c-valprint.c (c_val_print): Print a string with unavailable
10595         contents as an array.
10596
10597 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
10598
10599         * value.h (unpack_bits_as_long): Delete declaration.
10600         (unpack_value_bits_as_long): Declare.
10601         (unpack_value_field_as_long): Declare.
10602         (value_field_bitfield): Declare.
10603         * value.c (unpack_bits_as_long): Rename to...
10604         (unpack_value_bits_as_long_1): ... this.  Add embedded_offset and
10605         value parameters.  Return the extracted result in a new output
10606         parameter.  If the value contents are unavailable, return false,
10607         otherwise return true.
10608         (unpack_value_bits_as_long): New.
10609         (unpack_field_as_long): Rename to...
10610         (unpack_value_field_as_long_1): ... this.  Add embedded_offset and
10611         Add embedded_offset and value parameters.  Return the extracted
10612         result in a new output parameter. If the value contents are
10613         unavailable, return false, otherwise return true.
10614         (unpack_value_field_as_long): New.
10615         (unpack_field_as_long_1): New.
10616         (unpack_field_as_long): Reimplement as wrapper around
10617         unpack_value_field_as_long_1.
10618         (value_field_bitfield): New function.
10619         * valops.c (value_fetch_lazy): When fetching a bitfield, use
10620         unpack_value_bits_as_long.  Mark the value as unavailable, if it
10621         is unavailable.
10622         * jv-valprint.c (java_print_value_fields): Use
10623         value_field_bitfield.
10624         * p-valprint.c (pascal_object_print_value_fields): Use
10625         value_field_bitfield.
10626         * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
10627
10628 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
10629
10630         * value.c (get_internalvar_integer): Also return the int value of
10631         TYPE_CODE_INT INTERNALVAR_VALUE values.
10632         (set_internalvar): Don't special case TYPE_CODE_INT.
10633
10634 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
10635
10636         * value.c (struct internalvar) <enum internalvar_kind>: Remove
10637         INTERNALVAR_POINTER.
10638         <pointer>: Delete.
10639         (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
10640         (set_internalvar): Remove special TYPE_CODE_PTR handling.
10641         (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
10642
10643 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
10644
10645         * value.h (value_available_contents_eq): Declare.
10646         * value.c (find_first_range_overlap): New function.
10647         (value_available_contents_eq): New function.
10648         * valprint.c (val_print_array_elements): Use
10649         value_available_contents_eq.
10650         * ada-valprint.c (val_print_packed_array_elements): Use
10651         value_available_contents_eq.
10652         * jv-valprint.c (java_value_print): Use
10653         value_available_contents_eq.
10654
10655 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
10656
10657         * target.c (target_read_live_memory): New function.
10658         (memory_xfer_live_readonly_partial): New.
10659         (memory_xfer_partial): If reading from a traceframe, fallback to
10660         reading unavailable read-only memory from read-only regions of
10661         live target memory.
10662         * tracepoint.c (disconnect_tracing): Adjust.
10663         (set_current_traceframe): New, factored out from
10664         set_traceframe_number.
10665         (set_traceframe_number): Reimplement to only change the traceframe
10666         number on the GDB side.
10667         (do_restore_current_traceframe_cleanup): Adjust.
10668         (make_cleanup_restore_traceframe_number): New.
10669         (cur_traceframe_number): New global.
10670         (tfile_open): Set cur_traceframe_number to no traceframe.
10671         (set_tfile_traceframe): New function.
10672         (tfile_trace_find): If looking up a traceframe using any method
10673         other than by number, make sure the current tfile traceframe
10674         matches gdb's current traceframe.  Update the current tfile
10675         traceframe if the lookup succeeded.
10676         (tfile_fetch_registers, tfile_xfer_partial)
10677         (tfile_get_trace_state_variable_value): Make sure the remote
10678         traceframe matches gdb's current traceframe.
10679         * remote.c (remote_traceframe_number): New global.
10680         (remote_open_1): Set it to -1.
10681         (set_remote_traceframe): New function.
10682         (remote_fetch_registers, remote_store_registers)
10683         (remote_xfer_memory, remote_xfer_partial)
10684         (remote_get_trace_state_variable_value): Make sure the remote
10685         traceframe matches gdb's current traceframe.
10686         (remote_trace_find): If looking up a traceframe using any method
10687         other than by number, make sure the current remote traceframe
10688         matches gdb's current traceframe.  Update the current remote
10689         traceframe if the lookup succeeded.
10690         * infrun.c (fetch_inferior_event): Adjust.
10691         * tracepoint.h (set_current_traceframe): Declare.
10692         (get_traceframe_number, set_traceframe_number): Add describing
10693         comments.
10694
10695 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
10696
10697         Mark pieces of values as unavailable if the corresponding memory
10698         is unavailable.
10699
10700         * valops.c: Include tracepoint.h.
10701         (value_fetch_lazy): Use read_value_memory.
10702         (read_value_memory): New.
10703         * value.h (read_value_memory): Declare.
10704         * dwarf2loc.c (read_pieced_value): Use read_value_memory.
10705         * exec.c (section_table_available_memory): New function.
10706         * exec.h (section_table_available_memory): Declare.
10707
10708 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
10709
10710         * Makefile.in (SFILES): Add memrange.c.
10711         (HFILES_NO_SRCDIR): Add memrange.h.
10712         (COMMON_OBS): Add memrange.o.
10713         * memrange.c: New file.
10714         * memrange.h: New file.
10715         * tracepoint.c: Include memrange.h.
10716         (struct mem_range): Delete.
10717         (mem_range_s): Delete.
10718         (traceframe_available_memory): New function.
10719         * tracepoint.h (traceframe_available_memory): Declare.
10720
10721 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
10722
10723         * target.h (struct traceframe_info): Forward declare.
10724         (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
10725         (struct target_ops) <to_traceframe_info>: New field.
10726         (target_traceframe_info): New.
10727         * target.c (update_current_target): Inherit and default
10728         to_traceframe_info.
10729         * remote.c (PACKET_qXfer_traceframe_info): New.
10730         (remote_protocol_features): Register qXfer:traceframe-info:read.
10731         (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
10732         (remote_traceframe_info): New.
10733         (init_remote_ops): Install it.
10734         (_initialize_remote): Install "set/show remote traceframe-info"
10735         commands.
10736         * tracepoint.h (parse_traceframe_info): Declare.
10737         * tracepoint.c (struct mem_range): New.
10738         (mem_range_s): New typedef.
10739         (struct traceframe_info): New.
10740         (traceframe_info): New global.
10741         (free_traceframe_info): New function.
10742         (clear_traceframe_info): New function.
10743         (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
10744         info.
10745         (build_traceframe_info): New function.
10746         (tfile_traceframe_info): New function.
10747         (init_tfile_ops): Install tfile_traceframe_info.
10748         (traceframe_info_start_memory, free_result): New functions.
10749         (memory_attributes, traceframe_info_elements): New globals.
10750         (parse_traceframe_info, get_traceframe_info): New functions.
10751         * features/traceframe-info.dtd: New file.
10752         * Makefile.in (XMLFILES): Add traceframe-info.dtd.
10753
10754 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
10755
10756         Base support for <unavailable> value contents.
10757
10758         * value.h (value_bytes_available): Declare.
10759         (mark_value_bytes_unavailable): Declare.
10760         * value.c (struct range): New struct.
10761         (range_s): New typedef.
10762         (ranges_overlap): New function.
10763         (range_lessthan): New function.
10764         (ranges_contain_p): New function.
10765         (struct value) <unavailable>: New field.
10766         (value_bytes_available): New function.
10767         (mark_value_bytes_unavailable): New function.
10768         (require_not_optimized_out): Constify parameter.
10769         (require_available): New function.
10770         (value_contents_all, value_contents): Require all bytes be
10771         available.
10772         (value_free): Free `unavailable'.
10773         (value_copy): Copy `unavailable'.
10774         * valprint.h (val_print_unavailable): Declare.
10775         * valprint.c (valprint_check_validity): Rename `offset' parameter
10776         to `embedded_offset'.  If printing a scalar, check whether the
10777         value chunk is available.
10778         (val_print_unavailable): New.
10779         (val_print_scalar_formatted): Check whether the value is
10780         available.
10781         * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
10782         pretty-printing unavailable values.
10783
10784 2011-02-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
10785
10786         Fix const/volatile qualifiers of C++ types, PR c++/12328.
10787         * c-typeprint.c (c_type_print_args): Update the function comment.  New
10788         variable param_type, initialize it.  Remove const/volatile qualifiers
10789         for language_cplus and !show_artificial.  Use param_type.
10790
10791 2011-02-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
10792
10793         * symtab.c (find_pc_sect_line): New variable objfile, initialize it
10794         from S.  Iterate S using ALL_OBJFILE_SYMTABS.  Verify BV for each S.
10795         * symtab.h (struct symtab) <next>: Comment extension.
10796
10797 2011-02-12  Yao Qi  <yao@codesourcery.com>
10798
10799         * Makefile.in (CLEANDIRS): Remove duplicated common dir.
10800
10801 2011-02-11  Yao Qi  <yao@codesourcery.com>
10802
10803         * common/Makefile.in: Add copyright header.
10804
10805 2011-02-11  Pedro Alves  <pedro@codesourcery.com>
10806
10807         * infrun.c (proceed): Move switching out and in of tfind mode from
10808         here ...
10809         (fetch_inferior_event): ... to here.
10810
10811 2011-02-11  Yao Qi  <yao@codesourcery.com>
10812
10813         * Makefile.in: Remove signals.o from COMMON_OBS.  Link
10814         libcommon.a.
10815         * configure.ac: Add common to sub dir.
10816         * configure: Regenerate.
10817
10818 2011-02-11  Yao Qi  <yao@codesourcery.com>
10819
10820         Build libcommon.a.
10821
10822         * common/Makefile.in: New.
10823         * common/configure.ac: New.
10824         * common/aclocal.m4: New.
10825         * common/configure: Generate.
10826
10827 2011-02-10  Pedro Alves  <pedro@codesourcery.com>
10828
10829         * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
10830         side of the parenthesis.
10831
10832         Merge from GCC:
10833         2010-07-13  Jakub Jelinek  <jakub@redhat.com>
10834         * vec.h (VEC_block_remove): Fix comment.
10835
10836 2011-02-08  Michael Snyder  <msnyder@vmware.com>
10837
10838         * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
10839
10840 2011-02-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
10841
10842         * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
10843         in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
10844         psubd and paddd.
10845
10846 2011-02-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
10847
10848         PR 12361.
10849         * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
10850         phsubsw.
10851         (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
10852         (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
10853
10854 2011-02-08  Ulrich Weigand  <uweigand@de.ibm.com>
10855
10856         * dwarf2read.c (read_subroutine_type): Set special calling
10857         convention flag for functions compiled by IBM XL C for OpenCL.
10858         * ppc-sysv-tdep.c: Include "dwarf2.h"
10859         (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
10860         calling convention.
10861         (do_ppc_sysv_return_value): Add FUNC_TYPE argument.  Implement
10862         IBM OpenCL vector types calling convention.
10863         (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
10864         (ppc_sysv_abi_broken_return_value): Likewise.
10865         (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
10866         types calling convention.
10867         (ppc64_sysv_abi_return_value): Likewise.
10868         * spu-tdep.c: Include "dwarf2.h"
10869         (spu_return_value): Implement IBM OpenCL vector types calling
10870         convention.
10871
10872 2011-02-08  Ulrich Weigand  <uweigand@de.ibm.com>
10873
10874         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
10875         correct ABI for AltiVec vector arguments.
10876
10877 2011-02-07  Pedro Alves  <pedro@codesourcery.com>
10878
10879         * valprint.c (val_print): Extend comment.
10880         * ada-valprint.c (ada_valprint): Rewrite comment deferring
10881         interface explanation to val_print.
10882         (ada_val_print_array): Adjust comment to current interface.
10883         (print_field_values): Adjust comment to current interface.
10884         * c-valprint.c (c_val_print): Rewrite comment deferring interface
10885         explanation to val_print.
10886         * f-valprint.c (f_val_print): Ditto.
10887         * jv-valprint.c (java_val_print): Ditto.
10888         * m2-valprint.c (m2_val_print): Ditto.
10889         * p-valprint.c (pascal_val_print): Ditto.
10890
10891 2011-02-07  Thiago Jung Bauermann  <bauerman@br.ibm.com>
10892
10893         * breakpoint.c (parse_breakpoint_sals): Fix description.
10894
10895 2011-02-04  Sami Wagiaalla  <swagiaal@redhat.com>
10896             Oguz Kayral <oguzkayral@gmail.com>
10897
10898         * python/py-inferior.c (python_on_normal_stop): New function.
10899         (python_on_resume): New function.
10900         (python_inferior_exit): New function.
10901         (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
10902         inferior_exit observers.
10903         * python/py-evtregistry.c: New file.
10904         * python/py-threadevent.c : New file.
10905         * python/py-event.c: New file.
10906         * python/py-evts.c: New file.
10907         * python/py-continueevent.c: New file.
10908         * python/py-bpevent.c: New file.
10909         * python/py-signalevent.c: New file.
10910         * python/py-exetiedevent.c: New file.
10911         * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
10912         Move struct breakpoint_object from here...
10913         * python/python-internal.h: ... to here.
10914         * python/py-event.h: New file.
10915         * python/py-events.h: New file.
10916         * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
10917         py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
10918         py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
10919         (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
10920         py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
10921         py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
10922         Add build rules for all the above.
10923
10924 2011-02-04  Tom Tromey  <tromey@redhat.com>
10925
10926         * dwarf2read.c (dwarf2_section_empty_p): New function.
10927         (dwarf2_read_section): Use dwarf2_section_empty_p.
10928         (dwarf2_section_size): New function.
10929         (dwarf2_get_section_info): Unconditionally read section.
10930         (dwarf2_read_index): Use dwarf2_section_empty_p.
10931         (partial_read_comp_unit_head): Use dwarf2_section_size.
10932         (dwarf2_symbol_mark_computed): Likewise.
10933
10934 2011-02-04 David Daney <ddaney@caviumnetworks.com>
10935
10936         * NEWS: Add item for "catch syscall" on mips*-linux* targets.
10937
10938 2011-02-04 David Daney <ddaney@caviumnetworks.com>
10939
10940         * mips-linux-tdep.c: Include xml-syscall.h.
10941         (mips_linux_get_syscall_number): New function.
10942         (mips_linux_init_abi): Add calls to
10943         mips_linux_get_syscall_number() and set_xml_syscall_file_name().
10944         * data-directory/Makefile.in (SYSCALLS_FILES): Add
10945         mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
10946         * syscalls/mips-n32-linux.xml: New file.
10947         * syscalls/mips-n64-linux.xml: New file.
10948         * syscalls/mips-o32-linux.xml: New file.
10949
10950 2011-02-04  Ulrich Weigand  <ulrich.weigand@linaro.org>
10951
10952         * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
10953         Complain about inverted range entries.
10954         (dwarf2_record_block_ranges): Likewise.
10955
10956 2011-02-04  Thiago Jung Bauermann  <bauerman@br.ibm.com>
10957
10958         Fix some typos.
10959         * breakpoint.c (update_watchpoint): Fix name of the
10960         update_global_location_list function.
10961         (print_one_breakpoint): Fix typo.
10962         (_initialize_breakpoint): Remove extra space in hbreak help
10963         string.
10964         * breakpoint.h (struct bp_location) <length>: Fix field
10965         description.
10966
10967 2011-02-04  Pedro Alves  <pedro@codesourcery.com>
10968
10969         * regcache.c (registers_changed_ptid): Don't explictly always
10970         clear `current_regcache'.  Only clear current_thread_ptid and
10971         current_thread_arch when PTID matches.  Only reinit the frame
10972         cache if PTID matches the current inferior_ptid.  Move alloca(0)
10973         call to ...
10974         (registers_changed): ... here.
10975
10976 2011-02-03  Ulrich Weigand  <ulrich.weigand@linaro.org>
10977
10978         * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
10979         starts with __stack_chk_guard as stack guard symbol.
10980
10981 2011-02-03  Andrew Burgess  <aburgess@broadcom.com>
10982
10983         * disasm.c (compare_lines): Handle the end of sequence markers
10984         within the line table to better support disassembling over
10985         compilation unit boundaries.
10986
10987 2011-02-02  Ulrich Weigand  <ulrich.weigand@linaro.org>
10988
10989         * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
10990         arguments.  Skip in-prologue calls to glibc __aeabi_read_tp
10991         implementation even if no symbols are available.
10992         (thumb_analyze_prologue): Update call to skip_prologue_function.
10993         (arm_analyze_prologue): Likewise.
10994
10995 2011-02-02  Ulrich Weigand  <ulrich.weigand@linaro.org>
10996
10997         * arm-tdep.c: Include "observer.h".
10998         (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
10999         (arm_exidx_data_key): New static variable.
11000         (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
11001         (struct arm_exidx_data): Likewise.
11002         (arm_exidx_data_free): New function.
11003         (arm_compare_exidx_entries): Likewise.
11004         (arm_obj_section_from_vma): Likewise.
11005         (arm_exidx_new_objfile): Likewise.
11006         (arm_find_exidx_entry): Likewise.
11007         (arm_exidx_fill_cache): Likewise.
11008         (arm_exidx_unwind_sniffer): Likewise.
11009         (arm_exidx_unwind): New global variable.
11010         (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
11011         (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
11012         observer.  Register arm_exidx_data_key as objfile data.
11013
11014 2011-02-02  Ulrich Weigand  <ulrich.weigand@linaro.org>
11015
11016         * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
11017         due to accessing uninitialized variable.  Fix indentation.
11018
11019 2011-02-02  Pedro Alves  <pedro@codesourcery.com>
11020
11021         * c-valprint.c (c_value_print): When doing virtual base pointer
11022         adjustment, create a new value with adjusted contents rather than
11023         changing the contents of the value being printed (and getting it
11024         wrong).
11025
11026 2011-02-02  Pedro Alves  <pedro@codesourcery.com>
11027
11028         * xml-support.c (xml_find_attribute): New.
11029         (xinclude_start_include): Use it.
11030         * xml-support.h (xml_find_attribute): Declare.
11031         * memory-map.c (memory_map_start_memory)
11032         (memory_map_start_property): Use xml_find_attribute.
11033         * osdata.c (osdata_start_osdata, osdata_start_column): Use
11034         xml_find_attribute.
11035         * remote.c (start_thread): Use xml_find_attribute.
11036         * solib-target.c (library_list_start_segment)
11037         (library_list_start_section, library_list_start_library)
11038         (library_list_start_list): Use xml_find_attribute.
11039         * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
11040         (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
11041         (tdesc_start_field): Use xml_find_attribute.
11042
11043 2011-02-02  Ulrich Weigand  <uweigand@de.ibm.com>
11044
11045         * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
11046         (BUILD_OCL_VTYPES): Update.
11047
11048 2011-02-02  Joel Brobecker  <brobecker@adacore.com>
11049
11050         * configure.ac: Work around non-GNU sed limitation when computing
11051         python version number.
11052         * configure: Regenerate.
11053
11054 2011-02-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
11055
11056         Fix debug printing of TYPE_INSTANCE.
11057         * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
11058         (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
11059
11060 2011-02-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
11061
11062         Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
11063         OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
11064         OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
11065         * ada-operator.inc: Rename the file to ...
11066         * ada-operator.def: ... here, wrap all the entries by macro OP.
11067         * expprint.c (op_name_standard): Remove all the entries.  Include
11068         "std-operator.def" instead.
11069         * expression.h (enum exp_opcode): Include "std-operator.def" and
11070         "ada-operator.def".  Move all the entries ...
11071         * std-operator.def: ... here, wrap all the entries by macro OP.
11072
11073 2011-01-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
11074
11075         * breakpoint.h (remove_jit_event_breakpoints): New prototype.
11076         * breakpoint.c (remove_jit_event_breakpoints): New function.
11077         * jit.c (jit_descriptor_addr): Delete.
11078         (registering_code): Delete.
11079         (clear_int): Delete.
11080         (jit_inferior_data): New variable.
11081         (struct jit_inferior_data): New type.
11082         (get_jit_inferior_data): New function.
11083         (jit_inferior_data_cleanup): New function.
11084         (jit_read_descriptor): Adjust.
11085         (jit_register_code): Adjust.
11086         (jit_breakpoint_re_set_internal): New function; move code here ...
11087         (jit_inferior_init): ... from here.
11088         (jit_breakpoint_re_set): Adjust.
11089         (jit_reset_inferior_data_and_breakpoints): New function.
11090         (jit_inferior_created_observer): Adjust.
11091         (jit_inferior_exit_hook): Adjust.
11092         (jit_executable_changed_observer): New function.
11093         (jit_event_handler): Adjust.
11094         (_initialize_jit): Adjust.
11095
11096 2011-01-31  Michael Snyder  <msnyder@vmware.com>
11097
11098         * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
11099         line.
11100
11101 2011-01-31  Tom Tromey  <tromey@redhat.com>
11102
11103         PR python/12216:
11104         * python/python.c (execute_gdb_command): Call
11105         prevent_dont_repeat.
11106         * top.c (suppress_dont_repeat): New global.
11107         (dont_repeat): Use it.
11108         (prevent_dont_repeat): New function.
11109         * command.h (prevent_dont_repeat): Declare.
11110
11111 2011-01-31  Tom Tromey  <tromey@redhat.com>
11112
11113         * infcmd.c (finish_backward): Use breakpoint_set_silent.
11114         * python/py-breakpoint.c (bppy_set_silent): Use
11115         breakpoint_set_silent.
11116         (bppy_set_thread): Use breakpoint_set_thread.
11117         (bppy_set_task): Use breakpoint_set_task.
11118         * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
11119         (breakpoint_set_task): Declare.
11120         (make_breakpoint_silent): Remove.
11121         * breakpoint.c (breakpoint_set_silent): New function.
11122         (breakpoint_set_thread): Likewise.
11123         (breakpoint_set_task): Likewise.
11124         (make_breakpoint_silent): Remove.
11125
11126 2011-01-31  Tom Tromey  <tromey@redhat.com>
11127
11128         * breakpoint.h (user_breakpoint_p): Declare.
11129         * breakpoint.c (user_breakpoint_p): New function.
11130         (breakpoint_1): Use it.
11131         (save_breakpoints): Likewise.
11132
11133 2011-01-31  Joel Brobecker  <brobecker@adacore.com>
11134
11135         * configure.ac: Add handling of Python distribution on Windows.
11136         * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
11137         sysconfig variables are not defined, then do not use them.
11138         On Windows, if LIBPL is not defined, then use prefix + '/libs'
11139         instead.  On Windows, return all paths using forward-slashes
11140         rather than backslashes.
11141
11142 2011-01-31  Joel Brobecker  <brobecker@adacore.com>
11143
11144         * configure.ac: Remove fallback behavior for building
11145         against Python.  Remove tweaking of Python include path.
11146         Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
11147         (AC_TRY_LIBPYTHON):  Adjust program used in linking test.
11148         If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
11149         Always restore CPPFLAGS and LIBS after linking test.
11150         * configure: Regenerated.
11151         * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
11152         (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
11153         * python/python-internal.h: Adjust includes of Python .h files.
11154
11155 2011-01-31  Joel Brobecker  <brobecker@adacore.com>
11156
11157         * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
11158         in error message.
11159
11160 2011-01-31  Joel Brobecker  <brobecker@adacore.com>
11161
11162         * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
11163         value test.
11164
11165 2011-01-31  Yao Qi  <yao@codesourcery.com>
11166
11167         * arm-linux-nat.c: Update calls to regcache_register_status
11168         instead of regcache_valid_p.
11169         * aix-thread.c: Likewise.
11170         * i386gnu-nat.c: Likewise.
11171
11172 2011-01-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
11173
11174         Fix crash.
11175         * valops.c (compare_parameters): Verify TYPE_NFIELDS before
11176         touching TYPE_FIELD_ARTIFICIAL.
11177
11178 2011-01-28  Richard Earnshaw  <rearnsha@arm.com>
11179
11180         * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
11181         Committers.
11182
11183 2011-01-28  Pedro Alves  <pedro@codesourcery.com>
11184
11185         * tracepoint.c (tfile_xfer_partial): If there's no traceframe
11186         selected, don't try iterating over the traceframe's blocks.
11187         (tfile_has_stack): If there's no traceframe selected, then there's
11188         no stack.
11189         (tfile_has_registers): If there's no traceframe selected, then
11190         there's no registers.
11191
11192 2011-01-28  Pedro Alves  <pedro@codesourcery.com>
11193
11194         * target.c (memory_xfer_partial): No need to restore shadows if we
11195         haven't read anything.
11196
11197 2011-01-28  Pedro Alves  <pedro@codesourcery.com>
11198
11199         * mips-tdep.c (mips_print_register): Use get_frame_register_value
11200         and val_print_scalar_formatted.
11201
11202 2011-01-27  Pedro Alves  <pedro@codesourcery.com>
11203
11204         * tracepoint.c (tfile_read): New.
11205         (tfile_open): Use it.
11206         (tfile_get_traceframe_address): Use it.
11207         (tfile_trace_find): Use it.
11208         (walk_blocks_callback_func): New typedef.
11209         (match_blocktype): New function.
11210         (traceframe_walk_blocks): New function.
11211         (traceframe_find_block_type): New function.
11212         (tfile_fetch_registers, tfile_xfer_partial)
11213         (tfile_get_trace_state_variable_value): Use
11214         traceframe_find_block_type and tfile_read.
11215
11216 2011-01-26  Kevin Buettner  <kevinb@redhat.com>
11217
11218         * remote-mips.c: Add internationalization mark ups.  Remove
11219         trailing \n from already marked up strings.
11220
11221 2011-01-26  Tom Tromey  <tromey@redhat.com>
11222
11223         * python/py-prettyprint.c (print_string_repr): Clear
11224         'addressprint' option when calling val_print_string.
11225         (print_children): Handle Val_pretty_default.  Clear 'addressprint'
11226         option when calling val_print_string.
11227
11228 2011-01-26  Tom Tromey  <tromey@redhat.com>
11229
11230         * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
11231         GDB_PY_LL_ARG.
11232         * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
11233         macros.
11234         (gdb_py_longest, gdb_py_ulongest): New typedefs.
11235         (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
11236         (gdb_py_long_as_ulongest): New defines.
11237         (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
11238         (gdb_py_int_as_long): Declare.
11239         * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
11240         GDB_PY_LL_ARG, gdb_py_object_from_longest.
11241         (valpy_long): Add comment.
11242         * python/py-utils.c (get_addr_from_python): Use
11243         gdb_py_long_as_ulongest.  Handle overflow properly.
11244         (gdb_py_object_from_longest): New function.
11245         (gdb_py_object_from_ulongest): Likewise.
11246         (gdb_py_int_as_long): Likewise.
11247         * python/py-type.c (typy_array): Use gdb_py_int_as_long.
11248         * python/py-symtab.c (salpy_get_pc): Use
11249         gdb_py_long_from_ulongest.
11250         (salpy_get_line): Use PyInt_FromLong.
11251         * python/py-param.c (set_parameter_value): Use
11252         gdb_py_int_as_long.
11253         * python/py-lazy-string.c (stpy_get_address): Use
11254         gdb_py_long_from_ulongest.
11255         * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
11256         * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
11257         * python/py-breakpoint.c (bppy_set_thread): Use
11258         gdb_py_int_as_long.
11259         (bppy_set_task): Likewise.
11260         (bppy_set_ignore_count): Likewise.
11261         (bppy_set_hit_count): Likewise.
11262         * python/py-block.c (blpy_get_start): Use
11263         gdb_py_object_from_ulongest.
11264         (blpy_get_end): Likewise.
11265         (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
11266
11267 2011-01-25  Mathieu Lacage  <mathieu.lacage@inria.fr>
11268
11269         PR/symtab 11766:
11270         * gdb/objfiles.h (struct objfile) <addr_low>: New field.
11271         * gdb/solib.c (solib_read_symbols): Check for addr_low in
11272         equality test for objfile, initialize addr_low if needed.
11273
11274 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
11275
11276         * tui/tui-regs.c (tui_register_format): Remove dead code.
11277
11278 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
11279
11280         * printcmd.c (print_formatted): Use val_print_scalar_formatted
11281         instead of print_scalar_formatted.
11282         (print_scalar_formatted): Don't handle 's' format strings here,
11283         and add an assertion that we never see such format here.
11284         * valprint.h (val_print_scalar_formatted): Declare.
11285         * valprint.c (val_print_scalar_formatted): New.
11286         * c-valprint.c (c_val_print): Use val_print_scalar_formatted
11287         instead of print_scalar_formatted.
11288         * jv-valprint.c (java_val_print): Ditto.
11289         * p-valprint.c (pascal_val_print): Ditto.
11290         * ada-valprint.c (ada_val_print_1): Ditto.
11291         * f-valprint.c (f_val_print): Ditto.
11292         * infcmd.c (registers_info): Ditto.
11293         * m2-valprint.c (m2_val_print): Ditto.
11294
11295 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
11296
11297         * m2-valprint.c (print_unbounded_array): Pass
11298         value_contents_for_printing rather than value_contents, to
11299         m2_print_array_contents.  Also pass in the value.
11300
11301 2011-01-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
11302
11303         * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
11304         (save_gdb_index_command): Switch to .gdb_index version 4.
11305
11306 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
11307
11308         * mi/mi-main.c (get_register): Use get_frame_register_value rather
11309         than frame_register, and always pass a valid value to val_print.
11310
11311 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
11312
11313         Centralize printing "<optimized out>".
11314
11315         * valprint.h (val_print_optimized_out): Declare.
11316         * cp-valprint.c (cp_print_value_fields): Use
11317         val_print_optimized_out.
11318         * jv-valprint.c (java_print_value_fields): Ditto.
11319         * p-valprint.c (pascal_object_print_value_fields): Ditto.
11320         * printcmd.c (print_formatted): Ditto.
11321         * valprint.c (valprint_check_validity): Ditto.
11322         (value_check_printable): Ditto.
11323         (val_print_optimized_out): New.
11324
11325 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
11326
11327         * infcmd.c (default_print_registers_info): Allocate values so to
11328         never pass a NULL value to val_print.
11329
11330 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
11331
11332         * cp-valprint.c (cp_print_value): Treat the 'skip' local as
11333         boolean.  Make sure to always pass a value that matches the
11334         contents buffer to callees.  Preserve `address' for following
11335         iterations.
11336         * value.c (value_contents_for_printing_const): New.
11337         (value_address): Constify value argument.
11338         * value.h (value_contents_for_printing_const): Declare.
11339         (value_address): Constify value argument.
11340
11341 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
11342
11343         * regcache.c (struct regcache_descr): Rename
11344         sizeof_raw_register_valid_p field to sizeof_raw_register_status,
11345         and sizeof_cooked_register_valid_p to
11346         sizeof_cooked_register_status.
11347         (init_regcache_descr): Adjust.
11348         (struct regcache): Rename register_valid_p field to
11349         register_status.
11350         (regcache_xmalloc_1, regcache_xfree, regcache_save)
11351         (do_cooked_read): Adjust.
11352         (regcache_valid_p): Rename to ...
11353         (regcache_register_status): ... this.  Adjust.
11354         (regcache_invalidate): Adjust.
11355         (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
11356         Adjust.
11357         (regcache_raw_supply): Adjust.  If buf i NULL, mark the register
11358         as unavailable, not valid.
11359         (regcache_dump): Adjust.
11360         * regcache.h (enum register_status): New.
11361         (regcache_register_status): Declare.
11362         (regcache_invalidate): Delete declaration.
11363         * corelow.c (get_core_registers): Adjust.
11364         * tracepoint.c (tfile_fetch_registers): Adjust.
11365         * trad-frame.c (REG_VALUE): Rename to ...
11366         (TF_REG_VALUE): ... this.
11367         (REG_UNKNOWN): Rename to ...
11368         (TF_REG_UNKNOWN): ... this.
11369         (trad_frame_set_value, trad_frame_set_unknown): Adjust.
11370         * mi/mi-main.c (register_changed_p): Adjust.
11371
11372 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
11373
11374         * regcache.c (struct regcache_descr): Remove outdated comment.
11375         (init_regcache_descr): Remove sizeof_raw_register_valid_p
11376         overallocate hack.
11377         (regcache_xmalloc): Rename to ...
11378         (regcache_xmalloc_1): ... this.  Add `readonly_p' parameter.
11379         Allocate the regcache type accordingly.
11380         (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
11381         (regcache_xfree): Asser the source is also readonly.  Copy sizeof
11382         cooked registers, not raw.
11383         (regcache_dup_no_passthrough): Delete.
11384         (get_thread_arch_regcache): Use regcache_xmalloc_1.
11385         * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
11386         mention obsolete write_register_bytes.
11387         * regcache.h (regcache_dup_no_passthrough): Delete declaration.
11388
11389 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
11390
11391         Stop remote_read_bytes from handling partial reads itself.
11392
11393         * remote-fileio.c: Include target.h.
11394         (remote_fileio_write_bytes): Delete.
11395         (remote_fileio_func_open, remote_fileio_func_write)
11396         (remote_fileio_func_rename, remote_fileio_func_unlink): Use
11397         target_read_memory.
11398         (remote_fileio_func_stat): Use target_read_memory and
11399         target_write_memory.
11400         (remote_fileio_func_gettimeofday): Use target_write_memory.
11401         (remote_fileio_func_system): Use target_read_memory.
11402         * remote.c (remote_write_bytes): Make it static.
11403         (remote_read_bytes): Don't handle partial reads here.
11404         * remote.h (remote_read_bytes): Delete declaration.
11405
11406 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
11407
11408         Simplify XML parsing a bit.
11409
11410         * xml-support.h (gdb_xml_parse_quick): Declare.
11411         * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
11412         from gdb_xml_create_parser_and_cleanup, and added `old_chain'
11413         parameter.
11414         (gdb_xml_create_parser_and_cleanup): Reimplement on top of
11415         gdb_xml_create_parser_and_cleanup_1.
11416         (gdb_xml_parse_quick): New.
11417         * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
11418         * osdata.c (osdata_parse): Ditto.
11419         * remote.c (remote_threads_info): Ditto.
11420         * solib-target.c (solib_target_parse_libraries): Ditto.
11421         * xml-syscall.c (syscall_parse_xml): Ditto.
11422         * xml-tdesc.c (tdesc_parse_xml): Ditto.
11423
11424 2011-01-24  Kevin Buettner  <kevinb@redhat.com>
11425
11426         * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
11427         with remote-mips.o added to gdb_target_obs.
11428         * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
11429
11430 2011-01-24  Pedro Alves  <pedro@codesourcery.com>
11431
11432         * ada-valprint.c (val_print_packed_array_elements): Pass the
11433         correct struct value to val_print.
11434         (ada_val_print_1): Ditto.
11435
11436 2011-01-24  Pedro Alves  <pedro@codesourcery.com>
11437
11438         Don't lose embedded_offset in printing routines throughout.
11439
11440         * valprint.h (val_print_array_elements): Change prototype.
11441         * valprint.c (val_print_array_elements): Add `embedded_offset'
11442         parameter, and adjust to pass it down to val_print, while passing
11443         `valaddr' or `address' unmodified.  Take embedded_offset into
11444         account when checking repetitions.
11445         * c-valprint.c (c_val_print): Pass embedded_offset to
11446         val_print_array_elements instead of adjusting `valaddr' and
11447         `address'.
11448         * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
11449         embedded_offset to val_print_array_elements instead of adjusting
11450         `valaddr'.
11451         * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
11452         * p-valprint.c (pascal_val_print): Pass embedded_offset to
11453         val_print_array_elements and pascal_object_print_value_fields
11454         instead of adjusting `valaddr'.
11455         (pascal_object_print_value_fields): Add `offset' parameter, and
11456         adjust to use it.
11457         (pascal_object_print_value): Add `offset' parameter, and adjust to
11458         use it.
11459         (pascal_object_print_static_field): Use
11460         value_contents_for_printing/value_embedded_offset, rather than
11461         value_contents.
11462         * ada-valprint.c (val_print_packed_array_elements): Add `offset'
11463         parameter, and adjust to use it.  Use
11464         value_contents_for_printing/value_embedded_offset, rather than
11465         value_contents.
11466         (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
11467         (ada_val_print_array): Add `offset' parameter, and adjust to use
11468         it.
11469         (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
11470         `embedded_offset' to `offset'.  Don't re-adjust `valaddr'.
11471         Instead work with offsets.  Use
11472         value_contents_for_printing/value_embedded_offset, rather than
11473         value_contents.  Change `defer_val_int' local type to CORE_ADDR,
11474         and use value_from_pointer to extract a target pointer, rather
11475         than value_from_longest.
11476         (print_variant_part): Add `offset' parameter.  Replace
11477         `outer_valaddr' parameter by a new `outer_offset' parameter.
11478         Don't re-adjust `valaddr'.  Instead pass down adjusted offsets.
11479         (ada_value_print): Use
11480         value_contents_for_printing/value_embedded_offset, rather than
11481         value_contents.
11482         (print_record): Add `offset' parameter, and adjust to pass it
11483         down.
11484         (print_field_values): Add `offset' parameter.  Replace
11485         `outer_valaddr' parameter by a new `outer_offset' parameter.
11486         Don't re-adjust `valaddr'.  Instead pass down adjusted offsets.
11487         Use value_contents_for_printing/value_embedded_offset, rather than
11488         value_contents.
11489         * d-valprint.c (dynamic_array_type): Use
11490         value_contents_for_printing/value_embedded_offset, rather than
11491         value_contents.
11492         * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
11493         Don't re-adjust `valaddr'.  Instead pass down adjusted offsets.
11494         (java_print_value_fields): Take `offset' into account.  Don't
11495         re-adjust `valaddr'.  Instead pass down adjusted offsets.
11496         (java_val_print): Take `embedded_offset' into account.  Pass it to
11497         java_print_value_fields.
11498         * f-valprint.c (f77_print_array_1): Add `embedded_offset'
11499         parameter.  Don't re-adjust `valaddr' or `address'.  Instead pass
11500         down adjusted offsets.
11501         (f77_print_array): Add `embedded_offset' parameter.  Pass it down.
11502         (f_val_print): Take `embedded_offset' into account.
11503
11504 2011-01-21  Joel Brobecker  <brobecker@adacore.com>
11505
11506         * inflow.c: Include "gdbcmd.h".
11507         (interactive_mode): New static global, moved here from top.c.
11508         (show_interactive_mode): New function, moved here from top.c.
11509         use gdb_has_a_terminal instead of input_from_terminal_p to
11510         determine the current mode.
11511         (gdb_has_a_terminal): Add handling of the "iteractive-mode"
11512         setting.
11513         (_initialize_inflow): Add the "set/show interactive-mode"
11514         commands.  Moved here from top.c, after having adjusted slightly
11515         the help text.
11516         * top.c (interactive_mode, show_interactive_mode): Delete, moved
11517         to inflow.c.
11518         (input_from_terminal_p): Remove handling of "interactive-mode"
11519         setting, moved to infow.c.
11520         (init_main): Remove creation of the "set/show interactive-mode"
11521         commands, moved to inflow.c.
11522
11523 2011-01-19  Joel Brobecker  <brobecker@adacore.com>
11524
11525         * NEWS: Add entry for native ia64-hpux support.
11526
11527 2011-01-19  Tom Tromey  <tromey@redhat.com>
11528
11529         PR mi/8618:
11530         * thread.c (free_thread): Free 'name'.
11531         (print_thread_info): Emit thread name.  Change CLI output.
11532         (thread_name_command): New function.
11533         (do_captured_thread_select): Emit newline.
11534         (_initialize_thread): Register 'thread name' command.
11535         * target.h (struct target_ops) <to_thread_name>: New field.
11536         (target_thread_name): New macro.
11537         * target.c (update_current_target): Handle to_thread_name.
11538         * python/py-infthread.c (thpy_get_name): New function.
11539         (thpy_set_name): Likewise.
11540         (thread_object_getset): Add "name".
11541         * linux-nat.c (linux_nat_thread_name): New function.
11542         (linux_nat_add_target): Set to_thread_name.
11543         * gdbthread.h (struct thread_info) <name>: New field.
11544
11545 2011-01-18  Joel Brobecker  <brobecker@adacore.com>
11546
11547         * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
11548         (ada_val_print_1): Likewise.
11549
11550 2011-01-18  Joel Brobecker  <brobecker@adacore.com>
11551
11552         * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
11553         upper limit address is not greater than the function end address
11554         when the upper limit could not be computed using the debugging
11555         info.
11556
11557 2011-01-17  Tom Tromey  <tromey@redhat.com>
11558
11559         * cli/cli-cmds.c (apropos_command): Free the compiled regex.  Use
11560         get_regcomp_error.
11561         * utils.c: Include gdb_regex.h.
11562         (do_regfree_cleanup): New function.
11563         (make_regfree_cleanup): Likewise.
11564         (get_regcomp_error): Likewise.
11565         * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
11566
11567 2011-01-17  Tom Tromey  <tromey@redhat.com>
11568
11569         * cli/cli-cmds.c (apropos_command): Fix formatting.  Don't call
11570         re_compile_fastmap.
11571
11572 2011-01-17  Pierre Muller  <muller@ics.u-strasbg.fr>
11573
11574         * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
11575         for internal variables.
11576         (last_was_structop): New static variable.
11577         (COMPLETE): New token.
11578         (field_exp): New rule to group all '.' suffix handling.
11579         Add mark_struct_expression calls when approriate to be able
11580         to correctly find fields for completion.
11581         (yylex): Adapt to handle field completion and set INTVAR when
11582         required.
11583
11584 2011-01-14  Yao Qi  <yao@codesourcery.com>
11585
11586         * arm-tdep.c (arm_register_reggroup_p): FPS register is in
11587         save_reggroup, restore_reggroup and all_reggroup.
11588
11589 2011-01-14  Joel Brobecker  <brobecker@adacore.com>
11590
11591         * ada-valprint. (ada_printchar): Use the correct type length
11592         in call to ada_emit_char.
11593         * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
11594
11595 2011-01-14  Pierre Muller  <muller@ics.u-strasbg.fr>
11596
11597         * solib-som.h (hpux_major_release): Declare variable here.
11598         * solib-som.c:  Remove <sys/utsname.h> header.
11599         (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
11600         (hpux_major_release): Make global, change default value to
11601         DEFAULT_HPUX_MAJOR_RELEASE.
11602         (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
11603         * hppa-hpux-nat.c: Add <sys/utsname.h> include.
11604         Add "solib-som.h" header.
11605         (set_hpux_major_release): New function.
11606         (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
11607
11608 2011-01-14  Mike Frysinger  <vapier@gentoo.org>
11609
11610         * configure.tgt (*-*-uclinux*): Match more Linux os targets
11611
11612 2011-01-14  Joel Brobecker  <brobecker@adacore.com>
11613
11614         * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
11615         new-line at end of warning message.
11616         (ia64_hpux_store_register): Remove trailing new-line at end of
11617         error message.
11618         * ia64-hpux-tdep.c: Rephrase comment.
11619         * solib-ia64-hpux.c (struct dld_info): Change type of field
11620         dld_flags from "long long" to ULONGEST.
11621
11622 2011-01-14  Pedro Alves  <pedro@codesourcery.com>
11623
11624         * target.h (deprecated_child_ops): Delete declaration.
11625         * target.c (deprecated_child_ops): Delete definition.
11626
11627 2011-01-14  Pedro Alves  <pedro@codesourcery.com>
11628
11629         * Makefile.in (hpux-thread.o): Delete rule.
11630         * configure.ac: Don't check for HPUX DCE threads support.
11631         * configure, config.in: Regenerate.
11632         * hppa-hpux-nat.c (child_suppress_run): Delete.
11633         (hppa_hpux_child_can_run): Delete.
11634         (_initialize_hppa_hpux_nat): Don't override to_can_run.
11635         * hpux-thread.c: Delete.
11636
11637 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
11638
11639         * hpux-thread.c (hpux_pid_to_str): Delete.
11640
11641 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
11642
11643         * ada-valprint.c (ada_emit_char): Remove strange code.
11644         Check that c is <= UCHAR_MAX before passing it to isascii.
11645         (char_at): Do not assume that TYPE_LEN is either 1 or 2.
11646
11647 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
11648
11649         * top.c (input_from_terminal_p): Restrict the use of interactive_mode
11650         to the case where instream is stdin.
11651
11652 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
11653
11654         * ia64-tdep.h (struct regcache): Forward declare.
11655         (struct ia64_infcall_ops): New struct type.
11656         (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
11657         and "infcall_ops".
11658         * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
11659         Renames ia64_find_global_pointer.
11660         (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
11661         (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
11662         (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
11663         methods.
11664         (ia64_infcall_ops): New static global constant.
11665         (ia64_gdbarch_init): Set tdep->infcall_ops.
11666         * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
11667         (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
11668         * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
11669         (ia64_hpux_dummy_code): New static global constant.
11670         (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
11671         (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
11672         (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
11673         New function.
11674         (ia64_hpux_infcall_ops): New static global constant.
11675         (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
11676         for inferior function calls to work properly on ia64-hpux.
11677
11678 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
11679
11680         * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
11681         * ia64-tdep.h (struct frame_info): forward declaration.
11682         (struct gdbarch_tdep): Add field size_of_register_frame.
11683         * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
11684         to determine the size of the register frame.
11685         (ia64_size_of_register_frame): New function.
11686         (ia64_gdbarch_init): Set tdep->size_of_register_frame.
11687         * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
11688         (IA64_HPUX_UREG_REASON): New macro.
11689         (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
11690         New functions.
11691         (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
11692         * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
11693         (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
11694         objects.
11695
11696 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
11697
11698         Add support for ia64-hpux.
11699         * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
11700         ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
11701
11702         * configure.host: Add handling for ia64-hpux hosts.  Add associated
11703         floatformats.
11704         * configure.tgt: Add handling for ia64-hpux targets.
11705         * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
11706         (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
11707         (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
11708
11709 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
11710
11711         [ttrace] Compute thread list immediately after attach.
11712         * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
11713         New subprogram.
11714         (inf_ttrace_attach): Use it.
11715
11716 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
11717
11718         * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
11719         if we could not determine the frame's function address.  Instead,
11720         use the frame's PC, and then continue.
11721
11722 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
11723
11724         * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
11725         not already defined.
11726
11727 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
11728
11729         * ia64-tdep.c (ia64_struct_type_p): New function.
11730         (ia64_extract_return_value): Handle integral values that are
11731         less than 8 bytes long.
11732         (ia64_push_dummy_call): Likewise.
11733
11734 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
11735
11736         * ia64-tdep.c (floatformat_ia64_ext_little): Renames
11737         floatformat_ia64_ext.
11738         (floatformat_ia64_ext_big): New static const.
11739         (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
11740
11741 2011-01-12  Tom Tromey  <tromey@redhat.com>
11742
11743         * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
11744         messages.
11745         * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
11746         (mi_cmd_thread_list_ids): Likewise.
11747         (mi_cmd_data_list_changed_registers): Likewise.
11748         (mi_cmd_data_list_register_values): Likewise.
11749         (mi_cmd_data_write_register_values): Likewise.
11750         (mi_cmd_data_evaluate_expression): Likewise.
11751         (mi_cmd_data_read_memory): Likewise.
11752         (mi_cmd_data_read_memory_bytes): Likewise.
11753         (mi_cmd_data_write_memory): Likewise.
11754         (mi_cmd_enable_timings): Likewise.
11755         * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
11756         * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
11757         (mi_cmd_var_delete): Likewise.
11758         (mi_cmd_var_set_format): Likewise.
11759         (mi_cmd_var_show_format): Likewise.
11760         (mi_cmd_var_info_num_children): Likewise.
11761         (mi_cmd_var_list_children): Likewise.
11762         (mi_cmd_var_info_type): Likewise.
11763         (mi_cmd_var_info_expression): Likewise.
11764         (mi_cmd_var_show_attributes): Likewise.
11765         (mi_cmd_var_assign): Likewise.
11766         (mi_cmd_var_update): Likewise.
11767         (mi_cmd_enable_pretty_printing): Likewise.
11768         (mi_cmd_var_set_update_range): Likewise.
11769         * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
11770         messages.
11771         (mi_cmd_target_file_put): Likewise.
11772         (mi_cmd_target_file_delete): Likewise.
11773         * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
11774         messages.
11775         (mi_cmd_stack_info_depth): Likewise.
11776         (mi_cmd_stack_list_locals): Likewise.
11777         (mi_cmd_stack_list_args): Likewise.
11778         (mi_cmd_stack_select_frame): Likewise.
11779         (mi_cmd_stack_select_frame): Likewise.
11780         (mi_cmd_stack_info_frame): Likewise.
11781         * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
11782         messages.
11783         (mi_cmd_file_list_exec_source_files): Likewise.
11784         * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
11785         (mi_cmd_env_cd): Likewise.
11786         (mi_cmd_env_path): Likewise.
11787         (mi_cmd_env_dir): Likewise.
11788         (mi_cmd_inferior_tty_show): Likewise.
11789         * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
11790         * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
11791         (mi_cmd_break_watch): Likewise.
11792
11793 2011-01-12  Thiago Jung Bauermann  <bauerman@br.ibm.com>
11794
11795         * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
11796         (ppc_linux_insert_hw_breakpoint): Likewise.
11797         (ppc_linux_remove_hw_breakpoint): Likewise.
11798         (ppc_linux_insert_watchpoint): Likewise.
11799
11800 2011-01-12  Andrew Burgess  <aburgess@broadcom.com>
11801             Jan Kratochvil  <jan.kratochvil@redhat.com>
11802
11803         PR fortran/11104 and DWARF unbound arrays detection.
11804         * dwarf2read.c (read_subrange_type): Set zero length on unspecified
11805         upper bound.  Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
11806         unspecified upper bound.
11807         * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
11808         variables array_size_array, tmp_type and offset_item.  New variable
11809         array.  Remove call to f77_get_upperbound.  New variables array_type
11810         and index.  Call value_subscripted_rvalue for each dimenasion.  Remove
11811         the final call to deprecated_set_value_type.
11812
11813 2011-01-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
11814
11815         Make value allocations more lazy.
11816         * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
11817         instead of allocate_value and set_value_lazy when possible.
11818         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
11819         instead of allocate_value and set_value_lazy.
11820         * findvar.c (value_of_register_lazy): Likewise.
11821         (read_var_value): Remove V preallocation, call just check_typedef in
11822         advance.  Move allocate_value to LOC_CONST, LOC_LABEL,
11823         LOC_CONST_BYTES.  Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
11824         LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK.  Set ADDR instead of
11825         set_value_address and break in LOC_BLOCK.  Use allocate_value_lazy and
11826         remove lval_memory set in LOC_REGPARM_ADDR.  Use allocate_value_lazy
11827         in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT.  Add setting lval_memory at
11828         the end, remove set_value_lazy there.
11829         * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
11830         instead of allocate_value and set_value_lazy when possible.
11831         * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
11832         * value.c (allocate_computed_value): Use allocate_value_lazy instead
11833         of allocate_value and set_value_lazy.
11834         (value_from_contents_and_address): Use allocate_value_lazy instead of
11835         allocate_value and set_value_lazy when possible.
11836
11837 2011-01-12  Andrew Burgess  <aburgess@broadcom.com>
11838
11839         * disasm.c (dump_insns): Support dumping opcodes for MI.
11840         * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
11841         dumping of instruction opcodes.
11842
11843 2011-01-09  Robert Millan  <rmh@gnu.org>  (tiny change)
11844
11845         * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
11846         appropiately.
11847
11848 2011-01-11  Tom Tromey  <tromey@redhat.com>
11849
11850         * thread.c (do_captured_thread_select): Emit newline before
11851         printing frame.
11852
11853 2011-01-11  Michael Snyder  <msnyder@vmware.com>
11854
11855         * s390-tdep.c: Comment cleanup, mostly periods and spaces.
11856         * score-tdep.c: Ditto.
11857         * score-tdep.h: Ditto.
11858         * ser-base.c: Ditto.
11859         * ser-go32.c: Ditto.
11860         * serial.c: Ditto.
11861         * serial.h: Ditto.
11862         * ser-mingw.c: Ditto.
11863         * ser-pipe.c: Ditto.
11864         * ser-tcp.c: Ditto.
11865         * ser-unix.c: Ditto.
11866         * sh64-tdep.c: Ditto.
11867         * shnbsd-nat.c: Ditto.
11868         * sh-tdep.c: Ditto.
11869         * sh-tdep.h: Ditto.
11870         * solib.c: Ditto.
11871         * solib-darwin.c: Ditto.
11872         * solib-frv.c: Ditto.
11873         * solib.h: Ditto.
11874         * solib-irix.c: Ditto.
11875         * solib-osf.c: Ditto.
11876         * solib-pa64.c: Ditto.
11877         * solib-som.c: Ditto.
11878         * solib-spu.c: Ditto.
11879         * solib-sunos.c: Ditto.
11880         * solib-svr4.c: Ditto.
11881         * solist.h: Ditto.
11882         * sol-thread.c: Ditto.
11883         * somread.c: Ditto.
11884         * source.c: Ditto.
11885         * source.h: Ditto.
11886         * sparc64-linux-tdep.c: Ditto.
11887         * sparc64-tdep.c: Ditto.
11888         * sparc-linux-nat.c: Ditto.
11889         * sparc-linux-tdep.c: Ditto.
11890         * sparc-sol2-nat.c: Ditto.
11891         * sparc-sol2-tdep.c: Ditto.
11892         * sparc-tdep.c: Ditto.
11893         * sparc-tdep.h: Ditto.
11894         * spu-tdep.c: Ditto.
11895         * stabsread.c: Ditto.
11896         * stabsread.h: Ditto.
11897         * stack.c: Ditto.
11898         * symfile.c: Ditto.
11899         * symfile.h: Ditto.
11900         * symmisc.c: Ditto.
11901         * symtab.c: Ditto.
11902         * symtab.h: Ditto.
11903         * target.c: Ditto.
11904         * target-descriptions.c: Ditto.
11905         * target-descriptions.h: Ditto.
11906         * target.h: Ditto.
11907         * target-memory.c: Ditto.
11908         * terminal.h: Ditto.
11909         * thread.c: Ditto.
11910         * top.c: Ditto.
11911         * tracepoint.c: Ditto.
11912         * tracepoint.h: Ditto.
11913         * trad-frame.h: Ditto.
11914         * typeprint.c: Ditto.
11915
11916 2011-01-11  Michael Snyder  <msnyder@vmware.com>
11917
11918         * ui-file.c: Comment cleanup, mostly periods and spaces.
11919         * ui-file.h: Ditto.
11920         * ui-out.c: Ditto.
11921         * ui-out.h: Ditto.
11922         * utils.c: Ditto.
11923         * v850-tdep.c: Ditto.
11924         * valarith.c: Ditto.
11925         * valops.c: Ditto.
11926         * valprint.c: Ditto.
11927         * valprint.h: Ditto.
11928         * value.c: Ditto.
11929         * value.h: Ditto.
11930         * varobj.c: Ditto.
11931         * varobj.h: Ditto.
11932         * vax-tdep.c: Ditto.
11933         * vec.c: Ditto.
11934         * vec.h: Ditto.
11935         * version.h: Ditto.
11936         * windows-nat.c: Ditto.
11937         * windows-tdep.c: Ditto.
11938         * xcoffread.c: Ditto.
11939         * xcoffsolib.c: Ditto.
11940         * xml-support.c: Ditto.
11941         * xstormy16-tdep.c: Ditto.
11942         * xtensa-tdep.c: Ditto.
11943         * xtensa-tdep.h: Ditto.
11944
11945 2011-01-11  Thiago Jung Bauermann  <bauerman@br.ibm.com>
11946
11947         * breakpoint.c (resources_needed_watchpoint): Fix indentation.
11948         * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
11949
11950 2011-01-11  Sergio Durigan Junior  <sergiodj@linux.vnet.ibm.com>
11951             Thiago Jung Bauermann  <bauerman@br.ibm.com>
11952
11953         Implement support for PowerPC BookE ranged watchpoints.
11954         * breakpoint.h
11955         (struct breakpoint_ops) <resources_needed>: New method.
11956         Initialize to NULL in all existing breakpoint_ops instances.
11957         (struct breakpoint) <exact>: New field.
11958         (target_exact_watchpoints): Declare external global.
11959         * breakpoint.c (target_exact_watchpoints): New global flag.
11960         (update_watchpoint): Set b->type to bp_hardware_watchpoint and
11961         b->enable_state to bp_enabled before calling
11962         hw_watchpoint_used_count.
11963         (hw_watchpoint_used_count): Iterate over all bp_locations in a
11964         watchpoint.  Call breakpoint's breakpoint_ops.resources_needed
11965         if available.
11966         (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
11967         if the watchpoint is exact.
11968         (resources_needed_watchpoint): New function.
11969         (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
11970         (watch_command_1): Set b->exact if the user asked for an exact
11971         watchpoint and one can be set.
11972         (can_use_hardware_watchpoint): Add exact_watchpoints argument.
11973         Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
11974         the user asks for an exact watchpoint and one can be set.  Return
11975         number of needed debug registers to watch the expression.
11976         * gdbtypes.c (is_scalar_type): New function, based on
11977         valprint.c:scalar_type_p.
11978         (is_scalar_type_recursive): New function.
11979         * gdbtypes.h (is_scalar_type_recursive): Declare.
11980         * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
11981         handle regions when ranged watchpoints are available.
11982         (create_watchpoint_request): New function.
11983         (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
11984         create_watchpoint_request.
11985         * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
11986         (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
11987         `set powerpc' and `show powerpc' commands.
11988         * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11989         Mention documentation comment in the target macro.
11990         (target_region_ok_for_hw_watchpoint): Document return value.
11991
11992 2011-01-11  Thiago Jung Bauermann  <bauerman@br.ibm.com>
11993
11994         * breakpoint.c (update_watchpoint): Decide on using a software or
11995         hardware watchpoint after the bp_locations are created.
11996
11997 2010-01-11  Thiago Jung Bauermann  <bauerman@br.ibm.com>
11998
11999         Convert hardware watchpoints to use breakpoint_ops.
12000         * breakpoint.h (breakpoint_ops) <insert>: Rename to...
12001         <insert_location>: ... this.  Return int instead of void.
12002         Accept pointer to struct bp_location instead of pointer to
12003         struct breakpoint.  Adapt all implementations.
12004         (breakpoint_ops) <remove>: Rename to...
12005         <remove_location>: ... this.  Accept pointer to struct bp_location
12006         instead of pointer to struct breakpoint.  Adapt all implementations.
12007         * breakpoint.c (insert_catchpoint): Delete function.
12008         (insert_bp_location): Call the watchpoint or catchpoint's
12009         breakpoint_ops.insert method.
12010         (remove_breakpoint_1): Call the watchpoint or catchpoint's
12011         breakpoint_ops.remove method.
12012         (insert_watchpoint, remove_watchpoint): New functions.
12013         (watchpoint_breakpoint_ops): New structure.
12014         (watch_command_1): Initialize the OPS field.
12015         * inf-child.c (inf_child_insert_fork_catchpoint)
12016         (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
12017         (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
12018         (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
12019         Delete functions.
12020         (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
12021         to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
12022         to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
12023         to_remove_exec_catchpoint and to_set_syscall_catchpoint.
12024         * target.c (update_current_target): Change default implementation of
12025         to_insert_fork_catchpoint, to_remove_fork_catchpoint,
12026         to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
12027         to_insert_exec_catchpoint, to_remove_exec_catchpoint and
12028         to_set_syscall_catchpoint to return_one.
12029         (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
12030         (debug_to_insert_exec_catchpoint): Report return value.
12031         * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
12032         (to_insert_exec_catchpoint): Change declaration to return int instead
12033         of void.
12034
12035 2011-01-11  Michael Snyder  <msnyder@vmware.com>
12036
12037         * arm-tdep.c: Internationalization.
12038         * c-lang.c: Ditto.
12039         * charset.c: Ditto.
12040         * fork-child.c: Ditto.
12041         * nto-procfs.c: Ditto.
12042         * ppc-sysv-tdep.c: Ditto.
12043         * procfs.c: Ditto.
12044         * remote-mips.c: Ditto.
12045         * remote.c: Ditto.
12046         * rs6000-nat.c: Ditto.
12047         * rs6000-tdep.c: Ditto.
12048         * target.c: Ditto.
12049         * valops.c: Ditto.
12050         * value.c: Ditto.
12051         * xml-support.c: Ditto.
12052         * mi/mi-cmd-break.c: Ditto.
12053         * mi/mi-cmd-var.c: Ditto.
12054         * mi/mi-interp.c: Ditto.
12055         * mi/mi-main.c: Ditto.
12056
12057 2011-01-11  Andrew Burgess  <aburgess@broadcom.com>
12058
12059         * remote-sim.c (gdbsim_store_register): Update API to
12060         sim_store_register to check more error conditions.
12061
12062 2011-01-10  Michael Snyder  <msnyder@vmware.com>
12063
12064         * nto-procfs.c: Comment cleanup, mostly periods and spaces.
12065         * nto-tdep.c: Ditto.
12066         * nto-tdep.h: Ditto.
12067         * objc-exp.y: Ditto.
12068         * objc-lang.c: Ditto.
12069         * objfiles.c: Ditto.
12070         * objfiles.h: Ditto.
12071         * observer.c: Ditto.
12072         * opencl-lang.c: Ditto.
12073         * osabi.c: Ditto.
12074         * parse.c: Ditto.
12075         * parser-defs.h: Ditto.
12076         * p-exp.y: Ditto.
12077         * p-lang.c: Ditto.
12078         * posix-hdep.c: Ditto.
12079         * ppcbug-rom.c: Ditto.
12080         * ppc-linux-nat.c: Ditto.
12081         * ppc-linux-tdep.c: Ditto.
12082         * ppc-linux-tdep.h: Ditto.
12083         * ppcnbsd-tdep.c: Ditto.
12084         * ppcobsd-tdep.c: Ditto.
12085         * ppcobsd-tdep.h: Ditto.
12086         * ppc-sysv-tdep.c: Ditto.
12087         * ppc-tdep.h: Ditto.
12088         * printcmd.c: Ditto.
12089         * proc-abi.c: Ditto.
12090         * proc-flags.c: Ditto.
12091         * procfs.c: Ditto.
12092         * proc-utils.h: Ditto.
12093         * progspace.h: Ditto.
12094         * prologue-value.c: Ditto.
12095         * prologue-value.h: Ditto.
12096         * psympriv.h: Ditto.
12097         * psymtab.c: Ditto.
12098         * p-typeprint.c: Ditto.
12099         * p-valprint.c: Ditto.
12100         * ravenscar-sparc-thread.c: Ditto.
12101         * ravenscar-thread.c: Ditto.
12102         * ravenscar-thread.h: Ditto.
12103         * record.c: Ditto.
12104         * regcache.c: Ditto.
12105         * regcache.h: Ditto.
12106         * remote.c: Ditto.
12107         * remote-fileio.c: Ditto.
12108         * remote-fileio.h: Ditto.
12109         * remote.h: Ditto.
12110         * remote-m32r-sdi.c: Ditto.
12111         * remote-mips.c: Ditto.
12112         * remote-sim.c: Ditto.
12113         * rs6000-aix-tdep.c: Ditto.
12114         * rs6000-nat.c: Ditto.
12115         * rs6000-tdep.c: Ditto.
12116
12117 2011-01-10  Michael Snyder  <msnyder@vmware.com>
12118
12119         * charset.c (validate): Internationalization.
12120         * coffread.c (read_one_sym): Ditto.
12121         * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
12122         * h8300-tdep.c (H8300_extract_return_value): Ditto.
12123         * inflow.c (new_tty): Ditto.
12124         * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
12125         * m32c-tdep.c (m32c_return_value): Ditto.
12126         * mep-tdep.c (mep_store_return_value): Ditto.
12127         * score-tdep.c (score7_fetch_insn): Ditto.
12128         * ser-mingw.c (pipe_windows_open): Ditto.
12129         * sh64-tdep.c (sh64_extract_return_value): Ditto.
12130         * spu-tdep.c (spu_register_type): Ditto.
12131         * tracepoint.c (trace_find_command): Ditto.
12132         * valarith.c (value_pos): Ditto.
12133
12134 2011-01-10  Joel Brobecker  <brobecker@adacore.com>
12135
12136         * ada-valprint.c (printstr): Minor comment reformatting.
12137
12138 2011-01-08  Michael Snyder  <msnyder@vmware.com>
12139
12140         * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
12141         markup.
12142
12143 2011-01-08  Michael Snyder  <msnyder@vmware.com>
12144
12145         * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
12146         * hppa-hpux-tdep.c: Ditto.
12147         * hppa-linux-nat.c: Ditto.
12148         * hppa-linux-tdep.c: Ditto.
12149         * hppanbsd-tdep.c: Ditto.
12150         * hppa-tdep.c: Ditto.
12151         * hppa-tdep.h: Ditto.
12152         * hpux-thread.c: Ditto.
12153         * i386-cygwin-tdep.c: Ditto.
12154         * i386-darwin-nat.c: Ditto.
12155         * i386gnu-nat.c: Ditto.
12156         * i386-linux-nat.c: Ditto.
12157         * i386-linux-tdep.c: Ditto.
12158         * i386-nat.c: Ditto.
12159         * i386-nat.h: Ditto.
12160         * i386nbsd-tdep.c: Ditto.
12161         * i386-sol2-nat.c: Ditto.
12162         * i386-stub.c: Ditto.
12163         * i386-tdep.c: Ditto.
12164         * i386-tdep.h: Ditto.
12165         * i387-tdep.c: Ditto.
12166         * ia64-linux-nat.c: Ditto.
12167         * ia64-linux-tdep.c: Ditto.
12168         * ia64-tdep.c: Ditto.
12169         * infcall.c: Ditto.
12170         * infcall.h: Ditto.
12171         * infcmd.c: Ditto.
12172         * inferior.c: Ditto.
12173         * inferior.h: Ditto.
12174         * infloop.c: Ditto.
12175         * inflow.c: Ditto.
12176         * infrun.c: Ditto.
12177         * interps.c: Ditto.
12178         * interps.h: Ditto.
12179         * iq2000-tdep.c: Ditto.
12180         * irix5-nat.c: Ditto.
12181         * jit.c: Ditto.
12182         * jit.h: Ditto.
12183         * jv-exp.y: Ditto.
12184         * jv-lang.c: Ditto.
12185         * jv-lang.h: Ditto.
12186         * jv-typeprint.c: Ditto.
12187         * jv-valprint.c: Ditto.
12188         * language.c: Ditto.
12189         * language.h: Ditto.
12190         * linespec.c: Ditto.
12191         * linux-fork.c: Ditto.
12192         * linux-nat.c: Ditto.
12193         * linux-thread-db.c: Ditto.
12194         * lm32-tdep.c: Ditto.
12195
12196 2011-01-08  Michael Snyder  <msnyder@vmware.com>
12197
12198         * m2-exp.y: Comment cleanup, mostly periods and spaces.
12199         * m2-lang.c: Ditto.
12200         * m2-typeprint.c: Ditto.
12201         * m2-valprint.c: Ditto.
12202         * m32c-tdep.c: Ditto.
12203         * m32r-linux-nat.c: Ditto.
12204         * m32r-rom.c: Ditto.
12205         * m32r-tdep.c: Ditto.
12206         * m32r-tdep.h: Ditto.
12207         * m68hc11-tdep.c: Ditto.
12208         * m58klinux-nat.c: Ditto.
12209         * m68k-tdep.c: Ditto.
12210         * m88k-tdep.c: Ditto.
12211         * m88k-tdep.h: Ditto.
12212         * machoread.c: Ditto.
12213         * macrocmd.c: Ditto.
12214         * macroexp.c: Ditto.
12215         * macrotab.c: Ditto.
12216         * main.c: Ditto.
12217         * maint.c: Ditto.
12218         * mdebugread.c: Ditto.
12219         * mdebugread.h: Ditto.
12220         * memattr.c: Ditto.
12221         * memattr.h: Ditto.
12222         * memory-map.h: Ditto.
12223         * mep-tdep.c: Ditto.
12224         * microblaze-rom.c: Ditto.
12225         * microblaze-tdep.c: Ditto.
12226         * minsyms.c: Ditto.
12227         * mips-irix-tdep.c: Ditto.
12228         * mips-linux-nat.c: Ditto.
12229         * mips-linux-tdep.c: Ditto.
12230         * mips-linux-tdep.h: Ditto.
12231         * mipsnbsd-nat.c: Ditto.
12232         * mipsnbsd-tdep.c: Ditto.
12233         * mipsread.c: Ditto.
12234         * mips-tdep.c: Ditto.
12235         * mips-tdep.h: Ditto.
12236         * mn10300-linux-tdep.c: Ditto.
12237         * mn10300-tdep.c: Ditto.
12238         * mn10300-tdep.h: Ditto.
12239         * monitor.c: Ditto.
12240         * monitor.h: Ditto.
12241         * moxie-tdep.c: Ditto.
12242         * moxie-tdep.h: Ditto.
12243         * mt-tdep.c: Ditto.
12244
12245 2011-01-08  Mike Frysinger  <vapier@gentoo.org>
12246
12247         * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
12248
12249 2011-01-08  Robert Millan  <rmh@gnu.org>
12250
12251         * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
12252
12253 2011-01-07  Michael Snyder  <msnyder@vmware.com>
12254
12255         * charset.c (_initialize_charset): Fix typo in string.
12256
12257 2011-01-07  Michael Snyder  <msnyder@vmware.com>
12258
12259         * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
12260         for i18n.
12261         * tui/tui-layout.c (tui_set_layout_for_display_command):
12262         Split line so that operator goes to beginning of line.
12263         * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
12264         assignment out of if statement.
12265
12266 2011-01-07  Michael Snyder  <msnyder@vmware.com>
12267
12268         * ada-lang.c: Comment cleanup, mostly periods and spaces.
12269         * ada-lang.h: Ditto.
12270         * ada-tasks.c: Ditto.
12271         * ada-valprint.c: Ditto.
12272         * aix-threads.c: Ditto.
12273         * alpha-linux-nat.c: Ditto.
12274         * alpha-linux-tdep.c: Ditto.
12275         * alpha-mdebug-tdep.c: Ditto.
12276         * alpha-nat.c: Ditto.
12277         * alpha-osf1-tdep.c: Ditto.
12278         * alpha-tdep.c: Ditto.
12279         * alphabsd-nat.c: Ditto.
12280         * alphabsd-tdep.c: Ditto.
12281         * amd64-darwin-tdep.c: Ditto.
12282         * amd64-linux-nat.c: Ditto.
12283         * amd64-linux-tdep.c: Ditto.
12284         * amd64-sol2-tdep.c: Ditto.
12285         * amd64-tdep.c: Ditto.
12286         * amd64-fbsd-tdep.c: Ditto.
12287         * amd64-nbsd-tdep.c: Ditto.
12288         * amd64-obsd-tdep.c: Ditto.
12289         * amd64-linux-nat.c: Ditto.
12290         * amd64-linux-tdep.c: Ditto.
12291         * arm-tdep.c: Ditto.
12292         * arm-tdep.h: Ditto.
12293         * armnbsd-nat.c: Ditto.
12294         * avr-tdep.c: Ditto.
12295         * bfin-tdep.c: Ditto.
12296         * bsd-kvm.c: Ditto.
12297         * c-typeprintc: Ditto.
12298         * c-valprint.c: Ditto.
12299         * coff-pe-read.h: Ditto.
12300         * coffreead.c: Ditto.
12301         * cris-tdep.c: Ditto.
12302         * d-lang.c: Ditto.
12303         * darwin-nat-info.c: Ditto.
12304         * darwin-nat.c: Ditto.
12305         * dbug-rom.c: Ditto.
12306         * dbxread.c: Ditto.
12307         * dcache.c: Ditto.
12308         * dcache.h: Ditto.
12309         * dec-thread.c: Ditto.
12310         * defs.h: Ditto.
12311         * demangle.c: Ditto.
12312         * dicos-tdep.c: Ditto.
12313         * dictionary.c: Ditto.
12314         * dictionary.h: Ditto.
12315         * dink32-rom.c: Ditto.
12316         * disasm.c: Ditto.
12317         * doublest.c: Ditto.
12318         * dsrec.c: Ditto.
12319         * dummy-frame.c: Ditto.
12320         * dwarf2-frame.c: Ditto.
12321         * dwarf2expr.c: Ditto.
12322         * dwarf2loc.c: Ditto.
12323         * dwarf2read.c: Ditto.
12324         * elfread.c: Ditto.
12325         * environ.c: Ditto.
12326         * eval.c: Ditto.
12327         * event-top.h: Ditto.
12328         * exceptions.c: Ditto.
12329         * exceptions.h: Ditto.
12330         * exec.c: Ditto.
12331         * expprint.c: Ditto.
12332         * expression.h: Ditto.
12333         * f-exp.y: Ditto.
12334         * f-lang.c: Ditto.
12335         * f-lang.h: Ditto.
12336         * f-typeprint.c: Ditto.
12337         * f-valprint.c: Ditto.
12338         * fbsd-nat.c: Ditto.
12339         * findvar.c: Ditto.
12340         * fork-child.c: Ditto.
12341         * frame.c: Ditto.
12342         * frame.h: Ditto.
12343         * frv-linux-tdep.c: Ditto.
12344         * frv-tdep.c: Ditto.
12345         * gcore.c: Ditto.
12346         * gdb-stabs.h: Ditto.
12347         * gdb_assert.h: Ditto.
12348         * gdb_string.h: Ditto.
12349         * gdb_thread_db.h: Ditto.
12350         * gdb_wait.h: Ditto.
12351         * gdbarch.sh: Ditto.
12352         * gdbcore.h: Ditto.
12353         * gdbthread.h: Ditto.
12354         * gdbtypes.c: Ditto.
12355         * gdbtypes.h: Ditto.
12356         * gnu-nat.c: Ditto.
12357         * gnu-nat.h: Ditto.
12358         * gnu-v2-abi.c: Ditto.
12359         * gnu-v3-abi.c: Ditto.
12360         * go32-nat.c: Ditto.
12361         * gdbarch.c: Regenerate.
12362         * gdbarch.h: Regenerate.
12363
12364 2011-01-07  Michael Snyder  <msnyder@vmware.com>
12365
12366         * ax-gdb.c: Adjust some long output strings.
12367         * breakpoint.c: Ditto.
12368         * charset.c: Ditto.
12369         * cp-abi.c: Ditto.
12370         * infcall.c: Ditto.
12371         * infrun.c: Ditto.
12372         * linux-nat.c: Ditto.
12373         * solib-pa64.c: Ditto.
12374         * solib-som.c: Ditto.
12375
12376 2011-01-06  Tom Tromey  <tromey@redhat.com>
12377
12378         PR python/12367:
12379         * NEWS: Add item.
12380         * python/python.c (GdbMethods): Add "newest_frame" method.
12381         * python/python-internal.h (gdbpy_newest_frame): Declare.
12382         * python/py-frame.c (gdbpy_newest_frame): New function.
12383
12384 2010-01-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
12385
12386         * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
12387         * jit.c (jit_debug): New variable.
12388         (show_jit_debug): New function.
12389         (struct target_buffer): Use ULONGEST.
12390         (bfd_open_from_target_memory): Likewise.
12391         (jit_register_code, jit_inferior_init): Add debug output.
12392         (_initialize_jit): Register "debug jit" command.
12393
12394 2011-01-06  Tom Tromey  <tromey@redhat.com>
12395
12396         * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
12397         * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
12398         and ARCH_FRAME.
12399
12400 2011-01-06  Tom Tromey  <tromey@redhat.com>
12401
12402         * python/py-frame.c (frapy_block): Use get_frame_block.
12403
12404 2011-01-06  Joel Brobecker  <brobecker@adacore.com>
12405
12406         Do not stop on SIGPRIO signals by default
12407         * infrun.c (_initialize_infrun): Unset signal_stop and
12408         signal_print for TARGET_SIGNAL_PRIO.
12409
12410 2011-01-06  Joel Brobecker  <brobecker@adacore.com>
12411
12412         * ada-tasks.c: Fix style violation in comment.
12413
12414 2011-01-06  Joel Brobecker  <brobecker@adacore.com>
12415
12416         * linespec.c (decode_compound, find_method): Remove trailing \n
12417         at end of error string.
12418         * solib-irix.c (irix_current_sos): Likewise.
12419         * varobj.c (uninstall_variable): Likewise.
12420
12421 2011-01-06  Joel Brobecker  <brobecker@adacore.com>
12422
12423         * copyright.py: New script.
12424         * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
12425         Launch emacs without exec'ing. Call copyright.py afterwards.
12426
12427 2011-01-05  Michael Snyder  <msnyder@vmware.com>
12428
12429         * addrmap.c: Shorten lines of >= 80 columns.
12430         * arch-utils.c: Ditto.
12431         * arch-utils.h: Ditto.
12432         * ax-gdb.c: Ditto.
12433         * ax-general.c: Ditto.
12434         * bcache.c: Ditto.
12435         * blockframe.c: Ditto.
12436         * breakpoint.c: Ditto.
12437         * buildsym.c: Ditto.
12438         * c-lang.c: Ditto.
12439         * c-typeprint.c: Ditto.
12440         * charset.c: Ditto.
12441         * coffread.c: Ditto.
12442         * command.h: Ditto.
12443         * corelow.c: Ditto.
12444         * cp-abi.c: Ditto.
12445         * cp-namespace.c: Ditto.
12446         * cp-support.c: Ditto.
12447         * dbug-rom.c: Ditto.
12448         * dbxread.c: Ditto.
12449         * defs.h: Ditto.
12450         * dfp.c: Ditto.
12451         * dfp.h: Ditto.
12452         * dictionary.c: Ditto.
12453         * disasm.c: Ditto.
12454         * doublest.c: Ditto.
12455         * dwarf2-frame.c: Ditto.
12456         * dwarf2expr.c: Ditto.
12457         * dwarf2loc.c: Ditto.
12458         * dwarf2read.c: Ditto.
12459         * elfread.c: Ditto.
12460         * eval.c: Ditto.
12461         * event-loop.c: Ditto.
12462         * event-loop.h: Ditto.
12463         * exceptions.h: Ditto.
12464         * exec.c: Ditto.
12465         * expprint.c: Ditto.
12466         * expression.h: Ditto.
12467         * f-lang.c: Ditto.
12468         * f-valprint.c: Ditto.
12469         * findcmd.c: Ditto.
12470         * frame-base.c: Ditto.
12471         * frame-unwind.c: Ditto.
12472         * frame-unwind.h: Ditto.
12473         * frame.c: Ditto.
12474         * frame.h: Ditto.
12475         * gcore.c: Ditto.
12476         * gdb-stabs.h: Ditto.
12477         * gdb_assert.h: Ditto.
12478         * gdb_dirent.h: Ditto.
12479         * gdb_obstack.h: Ditto.
12480         * gdbcore.h: Ditto.
12481         * gdbtypes.c: Ditto.
12482         * gdbtypes.h: Ditto.
12483         * inf-ttrace.c: Ditto.
12484         * infcall.c: Ditto.
12485         * infcmd.c: Ditto.
12486         * inflow.c: Ditto.
12487         * infrun.c: Ditto.
12488         * inline-frame.h: Ditto.
12489         * language.c: Ditto.
12490         * language.h: Ditto.
12491         * libunwind-frame.c: Ditto.
12492         * libunwind-frame.h: Ditto.
12493         * linespec.c: Ditto.
12494         * linux-nat.c: Ditto.
12495         * linux-nat.h: Ditto.
12496         * linux-thread-db.c: Ditto.
12497         * machoread.c: Ditto.
12498         * macroexp.c: Ditto.
12499         * macrotab.c: Ditto.
12500         * main.c: Ditto.
12501         * maint.c: Ditto.
12502         * mdebugread.c: Ditto.
12503         * memattr.c: Ditto.
12504         * minsyms.c: Ditto.
12505         * monitor.c: Ditto.
12506         * monitor.h: Ditto.
12507         * objfiles.c: Ditto.
12508         * objfiles.h: Ditto.
12509         * osabi.c: Ditto.
12510         * p-typeprint.c: Ditto.
12511         * p-valprint.c: Ditto.
12512         * parse.c: Ditto.
12513         * printcmd.c: Ditto.
12514         * proc-events.c: Ditto.
12515         * procfs.c: Ditto.
12516         * progspace.c: Ditto.
12517         * progspace.h: Ditto.
12518         * psympriv.h: Ditto.
12519         * psymtab.c: Ditto.
12520         * record.c: Ditto.
12521         * regcache.c: Ditto.
12522         * regcache.h: Ditto.
12523         * remote-fileio.c: Ditto.
12524         * remote.c: Ditto.
12525         * ser-mingw.c: Ditto.
12526         * ser-tcp.c: Ditto.
12527         * ser-unix.c: Ditto.
12528         * serial.c: Ditto.
12529         * serial.h: Ditto.
12530         * solib-frv.c: Ditto.
12531         * solib-irix.c: Ditto.
12532         * solib-osf.c: Ditto.
12533         * solib-pa64.c: Ditto.
12534         * solib-som.c: Ditto.
12535         * solib-sunos.c: Ditto.
12536         * solib-svr4.c: Ditto.
12537         * solib-target.c: Ditto.
12538         * solib.c: Ditto.
12539         * somread.c: Ditto.
12540         * source.c: Ditto.
12541         * stabsread.c: Ditto.
12542         * stabsread.c: Ditto.
12543         * stack.c: Ditto.
12544         * stack.h: Ditto.
12545         * symfile-mem.c: Ditto.
12546         * symfile.c: Ditto.
12547         * symfile.h: Ditto.
12548         * symmisc.c: Ditto.
12549         * symtab.c: Ditto.
12550         * symtab.h: Ditto.
12551         * target-descriptions.c: Ditto.
12552         * target-memory.c: Ditto.
12553         * target.c: Ditto.
12554         * target.h: Ditto.
12555         * terminal.h: Ditto.
12556         * thread.c: Ditto.
12557         * top.c: Ditto.
12558         * tracepoint.c: Ditto.
12559         * tracepoint.h: Ditto.
12560         * ui-file.c: Ditto.
12561         * ui-file.h: Ditto.
12562         * ui-out.h: Ditto.
12563         * user-regs.c: Ditto.
12564         * user-regs.h: Ditto.
12565         * utils.c: Ditto.
12566         * valarith.c: Ditto.
12567         * valops.c: Ditto.
12568         * valprint.c: Ditto.
12569         * valprint.h: Ditto.
12570         * value.c: Ditto.
12571         * varobj.c: Ditto.
12572         * varobj.h: Ditto.
12573         * vec.h: Ditto.
12574         * xcoffread.c: Ditto.
12575         * xcoffsolib.c: Ditto.
12576         * xcoffsolib.h: Ditto.
12577         * xml-syscall.c: Ditto.
12578         * xml-tdesc.c: Ditto.
12579
12580 2011-01-05  Michael Snyder  <msnyder@vmware.com>
12581
12582         * cli/cli-cmds.c: Shorten lines of >= 80 columns.
12583         * cli/cli-decode.c: Ditto.
12584         * cli/cli-dump.c: Ditto.
12585         * cli/cli-logging.c: Ditto.
12586         * cli/cli-script.c: Ditto.
12587         * cli/cli-setshow.c: Ditto.
12588         * common/signals.c: Ditto.
12589         * mi/mi-cmd-break.c: Ditto.
12590         * mi/mi-cmd-disas.c: Ditto.
12591         * mi/mi-cmd-stack.c: Ditto.
12592         * mi/mi-cmd-var.c: Ditto.
12593         * mi/mi-cmds.c: Ditto.
12594         * mi/mi-common.h: Ditto.
12595         * mi/mi-console.c: Ditto.
12596         * mi/mi-interp.c: Ditto.
12597         * mi/mi-main.c: Ditto.
12598         * osf-share/cma_attr.c: Ditto.
12599         * osf-share/cma_deb_core.h: Ditto.
12600         * osf-share/cma_debug_client.h: Ditto.
12601         * osf-share/cma_handle.h: Ditto.
12602         * osf-share/cma_mutex.h: Ditto.
12603         * osf-share/cma_stack_int.h: Ditto.
12604         * osf-share/cma_tcb_defs.h: Ditto.
12605         * python/py-auto-load.c: Ditto.
12606         * python/py-breakpoint.c: Ditto.
12607         * python/py-cmd.c: Ditto.
12608         * python/py-frame.c: Ditto.
12609         * python/py-objfile.c: Ditto.
12610         * python/py-param.c: Ditto.
12611         * python/py-progspace.c: Ditto.
12612         * python/py-symbol.c: Ditto.
12613         * python/py-value.c: Ditto.
12614         * python/python-internal.h: Ditto.
12615         * python/python.c: Ditto.
12616         * tui/tui-data.c: Ditto.
12617         * tui/tui-disasm.c: Ditto.
12618         * tui/tui-hooks.c: Ditto.
12619         * tui/tui-io.c: Ditto.
12620         * tui/tui-layout.c: Ditto.
12621         * tui/tui-regs.c: Ditto.
12622         * tui/tui-source.c: Ditto.
12623         * tui/tui-stack.c: Ditto.
12624         * tui/tui-win.c: Ditto.
12625         * tui/tui-windata.c: Ditto.
12626         * tui/tui-winsource.c: Ditto.
12627
12628 2011-01-05  Joel Brobecker  <brobecker@adacore.com>
12629
12630         * configure.ac, gdb.1: Copyright year update.
12631
12632 2011-01-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
12633
12634         * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
12635         this_pc_in_block, morestack_msym and morestack_name.  Check for
12636         "__morestack" minimal symbol there.
12637
12638 2011-01-03  Joel Brobecker  <brobecker@adacore.com>
12639
12640         * symfile.c (find_sym_fns): Add call to dont_repeat.
12641
12642 2011-01-01  Joel Brobecker  <brobecker@adacore.com>
12643
12644         Copyright year update in most files (performed by copyright.sh).
12645
12646 2011-01-01  Joel Brobecker  <brobecker@adacore.com>
12647
12648         * top.c (print_gdb_version): Update copyright year in version output.
12649
12650 For older changes see ChangeLog-2010.
12651 \f
12652 Local Variables:
12653 mode: change-log
12654 left-margin: 8
12655 fill-column: 74
12656 version-control: never
12657 coding: utf-8
12658 End: